@carbon/charts-vue 1.5.2 → 1.5.7

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.
@@ -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")}},"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={};n.r(r),n.d(r,"Chart",(function(){return s})),n.d(r,"Modal",(function(){return u})),n.d(r,"Model",(function(){return c})),n.d(r,"Toolbar",(function(){return l})),n.d(r,"ZoomBar",(function(){return h})),n.d(r,"ZoomDomain",(function(){return f})),n.d(r,"CanvasZoom",(function(){return p})),n.d(r,"Axis",(function(){return d})),n.d(r,"Area",(function(){return v})),n.d(r,"WordCloud",(function(){return g})),n.d(r,"Pie",(function(){return m})),n.d(r,"Gauge",(function(){return y})),n.d(r,"Bar",(function(){return _})),n.d(r,"Boxplot",(function(){return b})),n.d(r,"Scatter",(function(){return O})),n.d(r,"Line",(function(){return w})),n.d(r,"Radar",(function(){return x})),n.d(r,"Tree",(function(){return E})),n.d(r,"Treemap",(function(){return S})),n.d(r,"Tooltip",(function(){return T})),n.d(r,"Threshold",(function(){return M})),n.d(r,"Legend",(function(){return C})),n.d(r,"CirclePack",(function(){return A})),n.d(r,"Alluvial",(function(){return P})),n.d(r,"Meter",(function(){return L})),n.d(r,"Heatmap",(function(){return D}));var i,o={};(n.r(o),n.d(o,"grid",(function(){return Cd})),n.d(o,"ruler",(function(){return Ad})),n.d(o,"baseTooltip",(function(){return Pd})),n.d(o,"timeScale",(function(){return Dd})),n.d(o,"options",(function(){return uv})),n.d(o,"carbonPrefix",(function(){return dt})),n.d(o,"area",(function(){return vt})),n.d(o,"axis",(function(){return gt})),n.d(o,"canvasZoomSettings",(function(){return mt})),n.d(o,"circlePack",(function(){return yt})),n.d(o,"color",(function(){return _t})),n.d(o,"boxplot",(function(){return bt})),n.d(o,"histogram",(function(){return Ot})),n.d(o,"legend",(function(){return wt})),n.d(o,"lines",(function(){return xt})),n.d(o,"meter",(function(){return Et})),n.d(o,"pie",(function(){return St})),n.d(o,"radar",(function(){return Tt})),n.d(o,"alluvial",(function(){return Mt})),n.d(o,"heatmap",(function(){return Ct})),n.d(o,"spacers",(function(){return At})),n.d(o,"tooltips",(function(){return Pt})),n.d(o,"transitions",(function(){return Lt})),n.d(o,"toolbar",(function(){return Dt})),n.d(o,"zoomBar",(function(){return kt})),n.d(o,"defaultLegendAdditionalItems",(function(){return Rt})),"undefined"!==typeof window)&&(n("4141"),(i=window.document.currentScript)&&(i=i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=i[1]));n("d6de"),n("8d0f"),n("68b8"),n("8d0d"),n("9531"),n("868d"),n("ef1f"),n("c78b"),n("f3b8"),n("918c");var a,s,u,c,l,h,f,p,d,v,g,m,y,_,b,O,w,x,E,S,T,M,C,A,P,L,D,k=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-area-chart"})},R=[];(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"})(a||(a={})),function(t){t["RENDER_FINISHED"]="render-finished",t["RESIZE"]="chart-resize",t["MOUSEOVER"]="chart-mouseover",t["MOUSEOUT"]="chart-mouseout"}(s||(s={})),function(t){t["SHOW"]="show-modal",t["HIDE"]="hide-modal"}(u||(u={})),function(t){t["UPDATE"]="model-update"}(c||(c={})),function(t){t["SHOW_OVERFLOW_MENU"]="show-toolbar-overflow-menu",t["HIDE_OVERFLOW_MENU"]="hide-toolbar-overflow-menu",t["BUTTON_CLICK"]="toolbar-button-click"}(l||(l={})),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"}(h||(h={})),function(t){t["CHANGE"]="zoom-domain-change"}(f||(f={})),function(t){t["CANVAS_ZOOM_IN"]="canvas-zoom-in",t["CANVAS_ZOOM_OUT"]="canvas-zoom-out"}(p||(p={})),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",t["LABEL_FOCUS"]="axis-label-focus",t["LABEL_BLUR"]="axis-label-blur",t["RENDER_COMPLETE"]="axis-render-complete"}(d||(d={})),function(t){t["POINT_MOUSEOVER"]="scatter-mouseover",t["POINT_MOUSEMOVE"]="scatter-mousemove",t["POINT_CLICK"]="scatter-click",t["POINT_MOUSEOUT"]="scatter-mouseout"}(v||(v={})),function(t){t["WORD_MOUSEOVER"]="wordcloud-word-mouseover",t["WORD_MOUSEMOVE"]="wordcloud-word-mousemove",t["WORD_CLICK"]="wordcloud-word-click",t["WORD_MOUSEOUT"]="wordcloud-word-mouseout"}(g||(g={})),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"}(m||(m={})),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"}(y||(y={})),function(t){t["BAR_MOUSEOVER"]="bar-mouseover",t["BAR_MOUSEMOVE"]="bar-mousemove",t["BAR_CLICK"]="bar-click",t["BAR_MOUSEOUT"]="bar-mouseout"}(_||(_={})),function(t){t["BOX_MOUSEOVER"]="box-mouseover",t["BOX_MOUSEMOVE"]="box-mousemove",t["BOX_CLICK"]="box-click",t["BOX_MOUSEOUT"]="box-mouseout",t["OUTLIER_MOUSEOVER"]="outlier-mouseover",t["OUTLIER_MOUSEMOVE"]="outlier-mousemove",t["OUTLIER_CLICK"]="outlier-click",t["OUTLIER_MOUSEOUT"]="outlier-mouseout"}(b||(b={})),function(t){t["SCATTER_MOUSEOVER"]="scatter-mouseover",t["SCATTER_MOUSEMOVE"]="scatter-mousemove",t["SCATTER_CLICK"]="scatter-click",t["SCATTER_MOUSEOUT"]="scatter-mouseout"}(O||(O={})),function(t){t["POINT_MOUSEOVER"]="scatter-mouseover",t["POINT_MOUSEMOVE"]="scatter-mousemove",t["POINT_CLICK"]="scatter-click",t["POINT_MOUSEOUT"]="scatter-mouseout"}(w||(w={})),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"}(x||(x={})),function(t){t["NODE_MOUSEOVER"]="tree-node-mouseover",t["NODE_CLICK"]="tree-node-click",t["NODE_MOUSEOUT"]="tree-node-mouseout"}(E||(E={})),function(t){t["LEAF_MOUSEOVER"]="leaf-mouseover",t["LEAF_MOUSEMOVE"]="leaf-mousemove",t["LEAF_CLICK"]="leaf-click",t["LEAF_MOUSEOUT"]="leaf-mouseout"}(S||(S={})),function(t){t["SHOW"]="show-tooltip",t["MOVE"]="move-tooltip",t["HIDE"]="hide-tooltip"}(T||(T={})),function(t){t["SHOW"]="show-threshold",t["HIDE"]="hide-threshold"}(M||(M={})),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"}(C||(C={})),function(t){t["CIRCLE_MOUSEOVER"]="circle-leaf-mouseover",t["CIRCLE_CLICK"]="circle-leaf-click",t["CIRCLE_MOUSEOUT"]="circle-leaf-mouseout",t["CIRCLE_MOUSEMOVE"]="circle-leaf-mousemove"}(A||(A={})),function(t){t["NODE_MOUSEOVER"]="alluvial-node-mouseover",t["NODE_CLICK"]="alluvial-node-click",t["NODE_MOUSEOUT"]="alluvial-node-mouseout",t["NODE_MOUSEMOVE"]="alluvial-node-mousemove",t["LINE_MOUSEOVER"]="alluvial-line-mouseover",t["LINE_CLICK"]="alluvial-line-click",t["LINE_MOUSEOUT"]="alluvial-line-mouseout",t["LINE_MOUSEMOVE"]="alluvial-line-mousemove"}(P||(P={})),function(t){t["METER_MOUSEOVER"]="meter-mouseover",t["METER_CLICK"]="meter-click",t["METER_MOUSEOUT"]="meter-mouseout",t["METER_MOUSEMOVE"]="meter-mousemove"}(L||(L={})),function(t){t["HEATMAP_MOUSEOVER"]="heatmap-mouseover",t["HEATMAP_CLICK"]="heatmap-click",t["HEATMAP_MOUSEOUT"]="heatmap-mouseout",t["HEATMAP_MOUSEMOVE"]="hetmap-mousemove"}(D||(D={}));var I,N,j,B,U,V,G,H,z,F,W,q,Y,Z,X,K,$,Q,J,tt,et,nt,rt,it,ot,at,st,ut,ct,lt,ht,ft=r;function pt(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}(function(t){t["HTML"]="html",t["SVG"]="svg"})(I||(I={})),function(t){t["WHITE"]="white",t["G100"]="g100",t["G90"]="g90",t["G10"]="g10"}(N||(N={})),function(t){t["BACKGROUND"]="background",t["FILL"]="fill",t["STROKE"]="stroke",t["TOOLTIP"]="tooltip"}(j||(j={})),function(t){t["LEFT"]="left",t["RIGHT"]="right",t["TOP"]="top",t["BOTTOM"]="bottom"}(B||(B={})),function(t){t["GRAPH_VIEW"]="graph_view",t["SLIDER_VIEW"]="slider_view"}(U||(U={})),function(t){t["END_LINE"]="end_line",t["MID_LINE"]="mid_line",t["FRONT_LINE"]="front_line",t["NONE"]="none"}(V||(V={})),function(t){t["VERTICAL"]="vertical",t["HORIZONTAL"]="horizontal"}(G||(G={})),function(t){t["TIME"]="time",t["LINEAR"]="linear",t["LOG"]="log",t["LABELS"]="labels",t["LABELS_RATIO"]="labels-ratio"}(H||(H={})),function(t){t["RIGHT"]="right",t["LEFT"]="left",t["TOP"]="top",t["BOTTOM"]="bottom"}(z||(z={})),function(t){t["LEFT"]="left",t["CENTER"]="center",t["RIGHT"]="right"}(F||(F={})),function(t){t["HORIZONTAL"]="horizontal",t["VERTICAL"]="vertical"}(W||(W={})),function(t){t["TREE"]="tree",t["DENDROGRAM"]="dendrogram"}(q||(q={})),function(t){t["ROW"]="row",t["COLUMN"]="column",t["ROW_REVERSE"]="row-reverse",t["COLUMN_REVERSE"]="column-reverse"}(Y||(Y={})),function(t){t["FIXED"]="fixed",t["PREFERRED"]="preferred",t["STRETCH"]="stretch"}(Z||(Z={})),function(t){t["CENTER"]="center"}(X||(X={})),function(t){t["LEFT"]="left",t["RIGHT"]="right"}(K||(K={})),function(t){t["GRID"]="grid",t["VERT_OR_HORIZ"]="vertOrHoriz",t["PIE"]="pie",t["DONUT"]="donut"}($||($={})),function(t){t["START"]="start",t["MIDDLE"]="middle",t["END"]="end"}(Q||(Q={})),function(t){t["BASELINE"]="baseline",t["MIDDLE"]="middle",t["HANGING"]="hanging"}(J||(J={})),function(t){t["SEMI"]="semi",t["FULL"]="full"}(tt||(tt={})),function(t){t["UP"]="up",t["DOWN"]="down"}(et||(et={})),function(t){t["SUCCESS"]="success",t["WARNING"]="warning",t["DANGER"]="danger"}(nt||(nt={})),function(t){t["ALWAYS"]="always",t["AUTO"]="auto",t["NEVER"]="never"}(rt||(rt={})),function(t){t["SCATTER"]="scatter",t["LINE"]="line",t["SIMPLE_BAR"]="simple-bar",t["STACKED_BAR"]="stacked-bar",t["GROUPED_BAR"]="grouped-bar",t["AREA"]="area",t["STACKED_AREA"]="stacked-area"}(it||(it={})),function(t){t["EXPORT_CSV"]="Export as CSV",t["EXPORT_PNG"]="Export as PNG",t["EXPORT_JPG"]="Export as JPG",t["ZOOM_IN"]="Zoom in",t["ZOOM_OUT"]="Zoom out",t["RESET_ZOOM"]="Reset zoom",t["MAKE_FULLSCREEN"]="Make fullscreen",t["SHOW_AS_DATATABLE"]="Show as data-table",t["CUSTOM"]="Custom"}(ot||(ot={})),function(t){t["LEFT"]="left",t["RIGHT"]="right"}(at||(at={})),function(t){t["CHECKBOX"]="checkbox",t["RADIUS"]="radius",t["AREA"]="area",t["SIZE"]="size",t["LINE"]="line",t["QUARTILE"]="quartile",t["ZOOM"]="zoom"}(st||(st={})),function(t){t["LINEAR"]="linear",t["QUANTIZE"]="quantize"}(ut||(ut={})),function(t){t["ON"]="on",t["AUTO"]="auto",t["OFF"]="off"}(ct||(ct={})),function(t){t["DEFAULT"]="default",t["HOVERABLE"]="hoverable"}(lt||(lt={}));var dt="cds",vt={opacity:{unselected:.05,selected:.4}},gt={ticks:{number:7,rotateIfSmallerThan:30,verticalSpaceRatio:2.5,horizontalSpaceRatio:3.5},ratio:{reference:"value",compareTo:"marker"},paddingRatio:.1,hover:{rectanglePadding:4}},mt={duration:1e3,ease:pt,zoomLevel:3},yt={circles:{fillOpacity:.3,hover:{stroke:"#FFF"}},padding:{mainGroup:4,children:2},hierarchyLevel:2},_t={pairingOptions:{"1-color":4,"2-color":5,"3-color":5,"4-color":3,"5-color":2,"14-color":1}},bt={circle:{radius:4,opacity:{hovered:1,default:.3}},box:{opacity:{hovered:.5,default:.3}},strokeWidth:{default:1,thicker:2}},Ot={defaultBins:10},wt={items:{status:{ACTIVE:1,DISABLED:0},horizontalSpace:12,verticalSpace:24,textYOffset:8,spaceAfter:4},checkbox:{radius:6.5},radius:{iconData:[{cx:7,cy:7,r:6.5},{cx:7,cy:10,r:3.5}],fill:null,stroke:"#8c8c8c"},line:{yPosition:6,width:24,strokeWidth:1.4,fill:null,stroke:"#999999"},area:{width:24,height:14,fill:"#6f6f6f",stroke:null},size:{iconData:[{width:23,height:12},{width:13,height:6}],fill:null,stroke:"#8D8D8D"},quartile:{iconData:[{x:0,y:0,width:24,height:13},{x:11,y:4,width:1,height:4}]},zoom:{iconData:[{x:0,y:0,width:12,height:12}],color:"#8D8D8D"},color:{barWidth:300,barHeight:8,axisYTranslation:10}},xt={opacity:{unselected:.3,selected:1},weight:{selected:2,unselected:1}},Et={statusBar:{paddingRight:5},status:{indicatorSize:16,paddingLeft:15},total:{paddingLeft:36,paddingRight:24},height:{default:8,proportional:16},dividerWidth:2},St={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}},Tt={opacity:{unselected:.1,selected:.3},xLabelPadding:10,yLabelPadding:8,yTicksNumber:4,minRange:10,xAxisRectHeight:50,dotsRadius:5},Mt={nodeWidth:4,nodeHoveredWidth:8,minNodePadding:24,opacity:{unfocus:.3,default:.8,selected:1}},Ct={minCellDividerDimension:16,chartPadding:.5},At={default:{size:24}},Pt={horizontalOffset:10},Lt={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}},Dt={buttonSize:32,iconSize:20,height:32,spacerHeight:10,iconPadding:6},kt={height:(ht={},ht[U.GRAPH_VIEW]=32,ht[U.SLIDER_VIEW]=10,ht),spacerHeight:8,handleWidth:5,handleBarWidth:1,handleBarHeight:12},Rt=[{type:st.RADIUS,name:"Radius"},{type:st.AREA,name:"Poor area"},{type:st.AREA,name:"Satisfactory area"},{type:st.AREA,name:"Great area"},{type:st.QUARTILE,name:"Quartiles"}];function It(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}var Nt=It,jt=n("7f0d"),Bt=function(){return jt["a"].Date.now()},Ut=Bt,Vt=/\s/;function Gt(t){var e=t.length;while(e--&&Vt.test(t.charAt(e)));return e}var Ht=Gt,zt=/^\s+/;function Ft(t){return t?t.slice(0,Ht(t)+1).replace(zt,""):t}var Wt=Ft,qt=jt["a"].Symbol,Yt=qt,Zt=Object.prototype,Xt=Zt.hasOwnProperty,Kt=Zt.toString,$t=Yt?Yt.toStringTag:void 0;function Qt(t){var e=Xt.call(t,$t),n=t[$t];try{t[$t]=void 0;var r=!0}catch(o){}var i=Kt.call(t);return r&&(e?t[$t]=n:delete t[$t]),i}var Jt=Qt,te=Object.prototype,ee=te.toString;function ne(t){return ee.call(t)}var re=ne,ie="[object Null]",oe="[object Undefined]",ae=Yt?Yt.toStringTag:void 0;function se(t){return null==t?void 0===t?oe:ie:ae&&ae in Object(t)?Jt(t):re(t)}var ue=se;function ce(t){return null!=t&&"object"==typeof t}var le=ce,he="[object Symbol]";function fe(t){return"symbol"==typeof t||le(t)&&ue(t)==he}var pe=fe,de=NaN,ve=/^[-+]0x[0-9a-f]+$/i,ge=/^0b[01]+$/i,me=/^0o[0-7]+$/i,ye=parseInt;function _e(t){if("number"==typeof t)return t;if(pe(t))return de;if(Nt(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Nt(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Wt(t);var n=ge.test(t);return n||me.test(t)?ye(t.slice(2),n?2:8):ve.test(t)?de:+t}var be=_e,Oe="Expected a function",we=Math.max,xe=Math.min;function Ee(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(Oe);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?xe(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=Ut();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(Ut())}function O(){var t=Ut(),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=be(e)||0,Nt(n)&&(l=!!n.leading,h="maxWait"in n,o=h?we(be(n.maxWait)||0,e):o,f="trailing"in n?!!n.trailing:f),O.cancel=_,O.flush=b,O}var Se=Ee;function Te(){this.__data__=[],this.size=0}var Me=Te;function Ce(t,e){return t===e||t!==t&&e!==e}var Ae=Ce;function Pe(t,e){var n=t.length;while(n--)if(Ae(t[n][0],e))return n;return-1}var Le=Pe,De=Array.prototype,ke=De.splice;function Re(t){var e=this.__data__,n=Le(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():ke.call(e,n,1),--this.size,!0}var Ie=Re;function Ne(t){var e=this.__data__,n=Le(e,t);return n<0?void 0:e[n][1]}var je=Ne;function Be(t){return Le(this.__data__,t)>-1}var Ue=Be;function Ve(t,e){var n=this.__data__,r=Le(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}var Ge=Ve;function He(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])}}He.prototype.clear=Me,He.prototype["delete"]=Ie,He.prototype.get=je,He.prototype.has=Ue,He.prototype.set=Ge;var ze=He;function Fe(){this.__data__=new ze,this.size=0}var We=Fe;function qe(t){var e=this.__data__,n=e["delete"](t);return this.size=e.size,n}var Ye=qe;function Ze(t){return this.__data__.get(t)}var Xe=Ze;function Ke(t){return this.__data__.has(t)}var $e=Ke,Qe="[object AsyncFunction]",Je="[object Function]",tn="[object GeneratorFunction]",en="[object Proxy]";function nn(t){if(!Nt(t))return!1;var e=ue(t);return e==Je||e==tn||e==Qe||e==en}var rn=nn,on=jt["a"]["__core-js_shared__"],an=on,sn=function(){var t=/[^.]+$/.exec(an&&an.keys&&an.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function un(t){return!!sn&&sn in t}var cn=un,ln=Function.prototype,hn=ln.toString;function fn(t){if(null!=t){try{return hn.call(t)}catch(e){}try{return t+""}catch(e){}}return""}var pn=fn,dn=/[\\^$.*+?()[\]{}|]/g,vn=/^\[object .+?Constructor\]$/,gn=Function.prototype,mn=Object.prototype,yn=gn.toString,_n=mn.hasOwnProperty,bn=RegExp("^"+yn.call(_n).replace(dn,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function On(t){if(!Nt(t)||cn(t))return!1;var e=rn(t)?bn:vn;return e.test(pn(t))}var wn=On;function xn(t,e){return null==t?void 0:t[e]}var En=xn;function Sn(t,e){var n=En(t,e);return wn(n)?n:void 0}var Tn=Sn,Mn=Tn(jt["a"],"Map"),Cn=Mn,An=Tn(Object,"create"),Pn=An;function Ln(){this.__data__=Pn?Pn(null):{},this.size=0}var Dn=Ln;function kn(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var Rn=kn,In="__lodash_hash_undefined__",Nn=Object.prototype,jn=Nn.hasOwnProperty;function Bn(t){var e=this.__data__;if(Pn){var n=e[t];return n===In?void 0:n}return jn.call(e,t)?e[t]:void 0}var Un=Bn,Vn=Object.prototype,Gn=Vn.hasOwnProperty;function Hn(t){var e=this.__data__;return Pn?void 0!==e[t]:Gn.call(e,t)}var zn=Hn,Fn="__lodash_hash_undefined__";function Wn(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Pn&&void 0===e?Fn:e,this}var qn=Wn;function Yn(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])}}Yn.prototype.clear=Dn,Yn.prototype["delete"]=Rn,Yn.prototype.get=Un,Yn.prototype.has=zn,Yn.prototype.set=qn;var Zn=Yn;function Xn(){this.size=0,this.__data__={hash:new Zn,map:new(Cn||ze),string:new Zn}}var Kn=Xn;function $n(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}var Qn=$n;function Jn(t,e){var n=t.__data__;return Qn(e)?n["string"==typeof e?"string":"hash"]:n.map}var tr=Jn;function er(t){var e=tr(this,t)["delete"](t);return this.size-=e?1:0,e}var nr=er;function rr(t){return tr(this,t).get(t)}var ir=rr;function or(t){return tr(this,t).has(t)}var ar=or;function sr(t,e){var n=tr(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}var ur=sr;function cr(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])}}cr.prototype.clear=Kn,cr.prototype["delete"]=nr,cr.prototype.get=ir,cr.prototype.has=ar,cr.prototype.set=ur;var lr=cr,hr=200;function fr(t,e){var n=this.__data__;if(n instanceof ze){var r=n.__data__;if(!Cn||r.length<hr-1)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new lr(r)}return n.set(t,e),this.size=n.size,this}var pr=fr;function dr(t){var e=this.__data__=new ze(t);this.size=e.size}dr.prototype.clear=We,dr.prototype["delete"]=Ye,dr.prototype.get=Xe,dr.prototype.has=$e,dr.prototype.set=pr;var vr=dr;function gr(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 mr=gr,yr=function(){try{var t=Tn(Object,"defineProperty");return t({},"",{}),t}catch(e){}}(),_r=yr;function br(t,e,n){"__proto__"==e&&_r?_r(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}var Or=br,wr=Object.prototype,xr=wr.hasOwnProperty;function Er(t,e,n){var r=t[e];xr.call(t,e)&&Ae(r,n)&&(void 0!==n||e in t)||Or(t,e,n)}var Sr=Er;function Tr(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?Or(n,s,u):Sr(n,s,u)}return n}var Mr=Tr;function Cr(t,e){var n=-1,r=Array(t);while(++n<t)r[n]=e(n);return r}var Ar=Cr,Pr="[object Arguments]";function Lr(t){return le(t)&&ue(t)==Pr}var Dr=Lr,kr=Object.prototype,Rr=kr.hasOwnProperty,Ir=kr.propertyIsEnumerable,Nr=Dr(function(){return arguments}())?Dr:function(t){return le(t)&&Rr.call(t,"callee")&&!Ir.call(t,"callee")},jr=Nr,Br=Array.isArray,Ur=Br,Vr=n("4cf0"),Gr=9007199254740991,Hr=/^(?:0|[1-9]\d*)$/;function zr(t,e){var n=typeof t;return e=null==e?Gr:e,!!e&&("number"==n||"symbol"!=n&&Hr.test(t))&&t>-1&&t%1==0&&t<e}var Fr=zr,Wr=9007199254740991;function qr(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=Wr}var Yr=qr,Zr="[object Arguments]",Xr="[object Array]",Kr="[object Boolean]",$r="[object Date]",Qr="[object Error]",Jr="[object Function]",ti="[object Map]",ei="[object Number]",ni="[object Object]",ri="[object RegExp]",ii="[object Set]",oi="[object String]",ai="[object WeakMap]",si="[object ArrayBuffer]",ui="[object DataView]",ci="[object Float32Array]",li="[object Float64Array]",hi="[object Int8Array]",fi="[object Int16Array]",pi="[object Int32Array]",di="[object Uint8Array]",vi="[object Uint8ClampedArray]",gi="[object Uint16Array]",mi="[object Uint32Array]",yi={};function _i(t){return le(t)&&Yr(t.length)&&!!yi[ue(t)]}yi[ci]=yi[li]=yi[hi]=yi[fi]=yi[pi]=yi[di]=yi[vi]=yi[gi]=yi[mi]=!0,yi[Zr]=yi[Xr]=yi[si]=yi[Kr]=yi[ui]=yi[$r]=yi[Qr]=yi[Jr]=yi[ti]=yi[ei]=yi[ni]=yi[ri]=yi[ii]=yi[oi]=yi[ai]=!1;var bi=_i;function Oi(t){return function(e){return t(e)}}var wi=Oi,xi=n("01ff"),Ei=xi["a"]&&xi["a"].isTypedArray,Si=Ei?wi(Ei):bi,Ti=Si,Mi=Object.prototype,Ci=Mi.hasOwnProperty;function Ai(t,e){var n=Ur(t),r=!n&&jr(t),i=!n&&!r&&Object(Vr["a"])(t),o=!n&&!r&&!i&&Ti(t),a=n||r||i||o,s=a?Ar(t.length,String):[],u=s.length;for(var c in t)!e&&!Ci.call(t,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Fr(c,u))||s.push(c);return s}var Pi=Ai,Li=Object.prototype;function Di(t){var e=t&&t.constructor,n="function"==typeof e&&e.prototype||Li;return t===n}var ki=Di;function Ri(t,e){return function(n){return t(e(n))}}var Ii=Ri,Ni=Ii(Object.keys,Object),ji=Ni,Bi=Object.prototype,Ui=Bi.hasOwnProperty;function Vi(t){if(!ki(t))return ji(t);var e=[];for(var n in Object(t))Ui.call(t,n)&&"constructor"!=n&&e.push(n);return e}var Gi=Vi;function Hi(t){return null!=t&&Yr(t.length)&&!rn(t)}var zi=Hi;function Fi(t){return zi(t)?Pi(t):Gi(t)}var Wi=Fi;function qi(t,e){return t&&Mr(e,Wi(e),t)}var Yi=qi;function Zi(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}var Xi=Zi,Ki=Object.prototype,$i=Ki.hasOwnProperty;function Qi(t){if(!Nt(t))return Xi(t);var e=ki(t),n=[];for(var r in t)("constructor"!=r||!e&&$i.call(t,r))&&n.push(r);return n}var Ji=Qi;function to(t){return zi(t)?Pi(t,!0):Ji(t)}var eo=to;function no(t,e){return t&&Mr(e,eo(e),t)}var ro=no,io=n("d6f0");function oo(t,e){var n=-1,r=t.length;e||(e=Array(r));while(++n<r)e[n]=t[n];return e}var ao=oo;function so(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 uo=so;function co(){return[]}var lo=co,ho=Object.prototype,fo=ho.propertyIsEnumerable,po=Object.getOwnPropertySymbols,vo=po?function(t){return null==t?[]:(t=Object(t),uo(po(t),(function(e){return fo.call(t,e)})))}:lo,go=vo;function mo(t,e){return Mr(t,go(t),e)}var yo=mo;function _o(t,e){var n=-1,r=e.length,i=t.length;while(++n<r)t[i+n]=e[n];return t}var bo=_o,Oo=Ii(Object.getPrototypeOf,Object),wo=Oo,xo=Object.getOwnPropertySymbols,Eo=xo?function(t){var e=[];while(t)bo(e,go(t)),t=wo(t);return e}:lo,So=Eo;function To(t,e){return Mr(t,So(t),e)}var Mo=To;function Co(t,e,n){var r=e(t);return Ur(t)?r:bo(r,n(t))}var Ao=Co;function Po(t){return Ao(t,Wi,go)}var Lo=Po;function Do(t){return Ao(t,eo,So)}var ko=Do,Ro=Tn(jt["a"],"DataView"),Io=Ro,No=Tn(jt["a"],"Promise"),jo=No,Bo=Tn(jt["a"],"Set"),Uo=Bo,Vo=Tn(jt["a"],"WeakMap"),Go=Vo,Ho="[object Map]",zo="[object Object]",Fo="[object Promise]",Wo="[object Set]",qo="[object WeakMap]",Yo="[object DataView]",Zo=pn(Io),Xo=pn(Cn),Ko=pn(jo),$o=pn(Uo),Qo=pn(Go),Jo=ue;(Io&&Jo(new Io(new ArrayBuffer(1)))!=Yo||Cn&&Jo(new Cn)!=Ho||jo&&Jo(jo.resolve())!=Fo||Uo&&Jo(new Uo)!=Wo||Go&&Jo(new Go)!=qo)&&(Jo=function(t){var e=ue(t),n=e==zo?t.constructor:void 0,r=n?pn(n):"";if(r)switch(r){case Zo:return Yo;case Xo:return Ho;case Ko:return Fo;case $o:return Wo;case Qo:return qo}return e});var ta=Jo,ea=Object.prototype,na=ea.hasOwnProperty;function ra(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&na.call(t,"index")&&(n.index=t.index,n.input=t.input),n}var ia=ra,oa=jt["a"].Uint8Array,aa=oa;function sa(t){var e=new t.constructor(t.byteLength);return new aa(e).set(new aa(t)),e}var ua=sa;function ca(t,e){var n=e?ua(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}var la=ca,ha=/\w*$/;function fa(t){var e=new t.constructor(t.source,ha.exec(t));return e.lastIndex=t.lastIndex,e}var pa=fa,da=Yt?Yt.prototype:void 0,va=da?da.valueOf:void 0;function ga(t){return va?Object(va.call(t)):{}}var ma=ga;function ya(t,e){var n=e?ua(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}var _a=ya,ba="[object Boolean]",Oa="[object Date]",wa="[object Map]",xa="[object Number]",Ea="[object RegExp]",Sa="[object Set]",Ta="[object String]",Ma="[object Symbol]",Ca="[object ArrayBuffer]",Aa="[object DataView]",Pa="[object Float32Array]",La="[object Float64Array]",Da="[object Int8Array]",ka="[object Int16Array]",Ra="[object Int32Array]",Ia="[object Uint8Array]",Na="[object Uint8ClampedArray]",ja="[object Uint16Array]",Ba="[object Uint32Array]";function Ua(t,e,n){var r=t.constructor;switch(e){case Ca:return ua(t);case ba:case Oa:return new r(+t);case Aa:return la(t,n);case Pa:case La:case Da:case ka:case Ra:case Ia:case Na:case ja:case Ba:return _a(t,n);case wa:return new r;case xa:case Ta:return new r(t);case Ea:return pa(t);case Sa:return new r;case Ma:return ma(t)}}var Va=Ua,Ga=Object.create,Ha=function(){function t(){}return function(e){if(!Nt(e))return{};if(Ga)return Ga(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}(),za=Ha;function Fa(t){return"function"!=typeof t.constructor||ki(t)?{}:za(wo(t))}var Wa=Fa,qa="[object Map]";function Ya(t){return le(t)&&ta(t)==qa}var Za=Ya,Xa=xi["a"]&&xi["a"].isMap,Ka=Xa?wi(Xa):Za,$a=Ka,Qa="[object Set]";function Ja(t){return le(t)&&ta(t)==Qa}var ts=Ja,es=xi["a"]&&xi["a"].isSet,ns=es?wi(es):ts,rs=ns,is=1,os=2,as=4,ss="[object Arguments]",us="[object Array]",cs="[object Boolean]",ls="[object Date]",hs="[object Error]",fs="[object Function]",ps="[object GeneratorFunction]",ds="[object Map]",vs="[object Number]",gs="[object Object]",ms="[object RegExp]",ys="[object Set]",_s="[object String]",bs="[object Symbol]",Os="[object WeakMap]",ws="[object ArrayBuffer]",xs="[object DataView]",Es="[object Float32Array]",Ss="[object Float64Array]",Ts="[object Int8Array]",Ms="[object Int16Array]",Cs="[object Int32Array]",As="[object Uint8Array]",Ps="[object Uint8ClampedArray]",Ls="[object Uint16Array]",Ds="[object Uint32Array]",ks={};function Rs(t,e,n,r,i,o){var a,s=e&is,u=e&os,c=e&as;if(n&&(a=i?n(t,r,i,o):n(t)),void 0!==a)return a;if(!Nt(t))return t;var l=Ur(t);if(l){if(a=ia(t),!s)return ao(t,a)}else{var h=ta(t),f=h==fs||h==ps;if(Object(Vr["a"])(t))return Object(io["a"])(t,s);if(h==gs||h==ss||f&&!i){if(a=u||f?{}:Wa(t),!s)return u?Mo(t,ro(a,t)):yo(t,Yi(a,t))}else{if(!ks[h])return i?t:{};a=Va(t,h,s)}}o||(o=new vr);var p=o.get(t);if(p)return p;o.set(t,a),rs(t)?t.forEach((function(r){a.add(Rs(r,e,n,r,t,o))})):$a(t)&&t.forEach((function(r,i){a.set(i,Rs(r,e,n,i,t,o))}));var d=c?u?ko:Lo:u?eo:Wi,v=l?void 0:d(t);return mr(v||t,(function(r,i){v&&(i=r,r=t[i]),Sr(a,i,Rs(r,e,n,i,t,o))})),a}ks[ss]=ks[us]=ks[ws]=ks[xs]=ks[cs]=ks[ls]=ks[Es]=ks[Ss]=ks[Ts]=ks[Ms]=ks[Cs]=ks[ds]=ks[vs]=ks[gs]=ks[ms]=ks[ys]=ks[_s]=ks[bs]=ks[As]=ks[Ps]=ks[Ls]=ks[Ds]=!0,ks[hs]=ks[fs]=ks[Os]=!1;var Is=Rs,Ns=1,js=4;function Bs(t){return Is(t,Ns|js)}var Us=Bs;function Vs(t,e,n){(void 0===n||Ae(t[e],n))&&(void 0!==n||e in t)||Or(t,e,n)}var Gs=Vs;function Hs(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 zs=Hs,Fs=zs(),Ws=Fs;function qs(t){return le(t)&&zi(t)}var Ys=qs,Zs="[object Object]",Xs=Function.prototype,Ks=Object.prototype,$s=Xs.toString,Qs=Ks.hasOwnProperty,Js=$s.call(Object);function tu(t){if(!le(t)||ue(t)!=Zs)return!1;var e=wo(t);if(null===e)return!0;var n=Qs.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&$s.call(n)==Js}var eu=tu;function nu(t,e){if(("constructor"!==e||"function"!==typeof t[e])&&"__proto__"!=e)return t[e]}var ru=nu;function iu(t){return Mr(t,eo(t))}var ou=iu;function au(t,e,n,r,i,o,a){var s=ru(t,n),u=ru(e,n),c=a.get(u);if(c)Gs(t,n,c);else{var l=o?o(s,u,n+"",t,e,a):void 0,h=void 0===l;if(h){var f=Ur(u),p=!f&&Object(Vr["a"])(u),d=!f&&!p&&Ti(u);l=u,f||p||d?Ur(s)?l=s:Ys(s)?l=ao(s):p?(h=!1,l=Object(io["a"])(u,!0)):d?(h=!1,l=_a(u,!0)):l=[]:eu(u)||jr(u)?(l=s,jr(s)?l=ou(s):Nt(s)&&!rn(s)||(l=Wa(u))):h=!1}h&&(a.set(u,l),i(l,u,r,o,a),a["delete"](u)),Gs(t,n,l)}}var su=au;function uu(t,e,n,r,i){t!==e&&Ws(e,(function(o,a){if(i||(i=new vr),Nt(o))su(t,e,a,n,uu,r,i);else{var s=r?r(ru(t,a),o,a+"",t,e,i):void 0;void 0===s&&(s=o),Gs(t,a,s)}}),eo)}var cu=uu;function lu(t){return t}var hu=lu;function fu(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 pu=fu,du=Math.max;function vu(t,e,n){return e=du(void 0===e?t.length-1:e,0),function(){var r=arguments,i=-1,o=du(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),pu(t,this,s)}}var gu=vu;function mu(t){return function(){return t}}var yu=mu,_u=_r?function(t,e){return _r(t,"toString",{configurable:!0,enumerable:!1,value:yu(e),writable:!0})}:hu,bu=_u,Ou=800,wu=16,xu=Date.now;function Eu(t){var e=0,n=0;return function(){var r=xu(),i=wu-(r-n);if(n=r,i>0){if(++e>=Ou)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var Su=Eu,Tu=Su(bu),Mu=Tu;function Cu(t,e){return Mu(gu(t,e,hu),t+"")}var Au=Cu;function Pu(t,e,n){if(!Nt(n))return!1;var r=typeof e;return!!("number"==r?zi(n)&&Fr(e,n.length):"string"==r&&e in n)&&Ae(n[e],t)}var Lu=Pu;function Du(t){return Au((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&&Lu(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 ku=Du,Ru=ku((function(t,e,n){cu(t,e,n)})),Iu=Ru,Nu=Yt?Yt.isConcatSpreadable:void 0;function ju(t){return Ur(t)||jr(t)||!!(Nu&&t&&t[Nu])}var Bu=ju;function Uu(t,e,n,r,i){var o=-1,a=t.length;n||(n=Bu),i||(i=[]);while(++o<a){var s=t[o];e>0&&n(s)?e>1?Uu(s,e-1,n,r,i):bo(i,s):r||(i[i.length]=s)}return i}var Vu=Uu,Gu="__lodash_hash_undefined__";function Hu(t){return this.__data__.set(t,Gu),this}var zu=Hu;function Fu(t){return this.__data__.has(t)}var Wu=Fu;function qu(t){var e=-1,n=null==t?0:t.length;this.__data__=new lr;while(++e<n)this.add(t[e])}qu.prototype.add=qu.prototype.push=zu,qu.prototype.has=Wu;var Yu=qu;function Zu(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 Xu=Zu;function Ku(t,e){return t.has(e)}var $u=Ku,Qu=1,Ju=2;function tc(t,e,n,r,i,o){var a=n&Qu,s=t.length,u=e.length;if(s!=u&&!(a&&u>s))return!1;var c=o.get(t),l=o.get(e);if(c&&l)return c==e&&l==t;var h=-1,f=!0,p=n&Ju?new Yu:void 0;o.set(t,e),o.set(e,t);while(++h<s){var d=t[h],v=e[h];if(r)var g=a?r(v,d,h,e,t,o):r(d,v,h,t,e,o);if(void 0!==g){if(g)continue;f=!1;break}if(p){if(!Xu(e,(function(t,e){if(!$u(p,e)&&(d===t||i(d,t,n,r,o)))return p.push(e)}))){f=!1;break}}else if(d!==v&&!i(d,v,n,r,o)){f=!1;break}}return o["delete"](t),o["delete"](e),f}var ec=tc;function nc(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}var rc=nc;function ic(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}var oc=ic,ac=1,sc=2,uc="[object Boolean]",cc="[object Date]",lc="[object Error]",hc="[object Map]",fc="[object Number]",pc="[object RegExp]",dc="[object Set]",vc="[object String]",gc="[object Symbol]",mc="[object ArrayBuffer]",yc="[object DataView]",_c=Yt?Yt.prototype:void 0,bc=_c?_c.valueOf:void 0;function Oc(t,e,n,r,i,o,a){switch(n){case yc:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case mc:return!(t.byteLength!=e.byteLength||!o(new aa(t),new aa(e)));case uc:case cc:case fc:return Ae(+t,+e);case lc:return t.name==e.name&&t.message==e.message;case pc:case vc:return t==e+"";case hc:var s=rc;case dc:var u=r&ac;if(s||(s=oc),t.size!=e.size&&!u)return!1;var c=a.get(t);if(c)return c==e;r|=sc,a.set(t,e);var l=ec(s(t),s(e),r,i,o,a);return a["delete"](t),l;case gc:if(bc)return bc.call(t)==bc.call(e)}return!1}var wc=Oc,xc=1,Ec=Object.prototype,Sc=Ec.hasOwnProperty;function Tc(t,e,n,r,i,o){var a=n&xc,s=Lo(t),u=s.length,c=Lo(e),l=c.length;if(u!=l&&!a)return!1;var h=u;while(h--){var f=s[h];if(!(a?f in e:Sc.call(e,f)))return!1}var p=o.get(t),d=o.get(e);if(p&&d)return p==e&&d==t;var v=!0;o.set(t,e),o.set(e,t);var g=a;while(++h<u){f=s[h];var m=t[f],y=e[f];if(r)var _=a?r(y,m,f,e,t,o):r(m,y,f,t,e,o);if(!(void 0===_?m===y||i(m,y,n,r,o):_)){v=!1;break}g||(g="constructor"==f)}if(v&&!g){var b=t.constructor,O=e.constructor;b!=O&&"constructor"in t&&"constructor"in e&&!("function"==typeof b&&b instanceof b&&"function"==typeof O&&O instanceof O)&&(v=!1)}return o["delete"](t),o["delete"](e),v}var Mc=Tc,Cc=1,Ac="[object Arguments]",Pc="[object Array]",Lc="[object Object]",Dc=Object.prototype,kc=Dc.hasOwnProperty;function Rc(t,e,n,r,i,o){var a=Ur(t),s=Ur(e),u=a?Pc:ta(t),c=s?Pc:ta(e);u=u==Ac?Lc:u,c=c==Ac?Lc:c;var l=u==Lc,h=c==Lc,f=u==c;if(f&&Object(Vr["a"])(t)){if(!Object(Vr["a"])(e))return!1;a=!0,l=!1}if(f&&!l)return o||(o=new vr),a||Ti(t)?ec(t,e,n,r,i,o):wc(t,e,u,n,r,i,o);if(!(n&Cc)){var p=l&&kc.call(t,"__wrapped__"),d=h&&kc.call(e,"__wrapped__");if(p||d){var v=p?t.value():t,g=d?e.value():e;return o||(o=new vr),i(v,g,n,r,o)}}return!!f&&(o||(o=new vr),Mc(t,e,n,r,i,o))}var Ic=Rc;function Nc(t,e,n,r,i){return t===e||(null==t||null==e||!le(t)&&!le(e)?t!==t&&e!==e:Ic(t,e,n,r,Nc,i))}var jc=Nc,Bc=1,Uc=2;function Vc(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 vr;if(r)var f=r(c,l,u,t,e,h);if(!(void 0===f?jc(l,c,Bc|Uc,r,h):f))return!1}}return!0}var Gc=Vc;function Hc(t){return t===t&&!Nt(t)}var zc=Hc;function Fc(t){var e=Wi(t),n=e.length;while(n--){var r=e[n],i=t[r];e[n]=[r,i,zc(i)]}return e}var Wc=Fc;function qc(t,e){return function(n){return null!=n&&(n[t]===e&&(void 0!==e||t in Object(n)))}}var Yc=qc;function Zc(t){var e=Wc(t);return 1==e.length&&e[0][2]?Yc(e[0][0],e[0][1]):function(n){return n===t||Gc(n,t,e)}}var Xc=Zc,Kc=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,$c=/^\w*$/;function Qc(t,e){if(Ur(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!pe(t))||($c.test(t)||!Kc.test(t)||null!=e&&t in Object(e))}var Jc=Qc,tl="Expected a function";function el(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError(tl);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(el.Cache||lr),n}el.Cache=lr;var nl=el,rl=500;function il(t){var e=nl(t,(function(t){return n.size===rl&&n.clear(),t})),n=e.cache;return e}var ol=il,al=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,sl=/\\(\\)?/g,ul=ol((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(al,(function(t,n,r,i){e.push(r?i.replace(sl,"$1"):n||t)})),e})),cl=ul;function ll(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 hl=ll,fl=1/0,pl=Yt?Yt.prototype:void 0,dl=pl?pl.toString:void 0;function vl(t){if("string"==typeof t)return t;if(Ur(t))return hl(t,vl)+"";if(pe(t))return dl?dl.call(t):"";var e=t+"";return"0"==e&&1/t==-fl?"-0":e}var gl=vl;function ml(t){return null==t?"":gl(t)}var yl=ml;function _l(t,e){return Ur(t)?t:Jc(t,e)?[t]:cl(yl(t))}var bl=_l,Ol=1/0;function wl(t){if("string"==typeof t||pe(t))return t;var e=t+"";return"0"==e&&1/t==-Ol?"-0":e}var xl=wl;function El(t,e){e=bl(e,t);var n=0,r=e.length;while(null!=t&&n<r)t=t[xl(e[n++])];return n&&n==r?t:void 0}var Sl=El;function Tl(t,e,n){var r=null==t?void 0:Sl(t,e);return void 0===r?n:r}var Ml=Tl;function Cl(t,e){return null!=t&&e in Object(t)}var Al=Cl;function Pl(t,e,n){e=bl(e,t);var r=-1,i=e.length,o=!1;while(++r<i){var a=xl(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&&Yr(i)&&Fr(a,i)&&(Ur(t)||jr(t)))}var Ll=Pl;function Dl(t,e){return null!=t&&Ll(t,e,Al)}var kl=Dl,Rl=1,Il=2;function Nl(t,e){return Jc(t)&&zc(e)?Yc(xl(t),e):function(n){var r=Ml(n,t);return void 0===r&&r===e?kl(n,t):jc(e,r,Rl|Il)}}var jl=Nl;function Bl(t){return function(e){return null==e?void 0:e[t]}}var Ul=Bl;function Vl(t){return function(e){return Sl(e,t)}}var Gl=Vl;function Hl(t){return Jc(t)?Ul(xl(t)):Gl(t)}var zl=Hl;function Fl(t){return"function"==typeof t?t:null==t?hu:"object"==typeof t?Ur(t)?jl(t[0],t[1]):Xc(t):zl(t)}var Wl=Fl;function ql(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 Yl=ql;function Zl(t){return t!==t}var Xl=Zl;function Kl(t,e,n){var r=n-1,i=t.length;while(++r<i)if(t[r]===e)return r;return-1}var $l=Kl;function Ql(t,e,n){return e===e?$l(t,e,n):Yl(t,Xl,n)}var Jl=Ql;function th(t,e){var n=null==t?0:t.length;return!!n&&Jl(t,e,0)>-1}var eh=th;function nh(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 rh=nh;function ih(){}var oh=ih,ah=1/0,sh=Uo&&1/oc(new Uo([,-0]))[1]==ah?function(t){return new Uo(t)}:oh,uh=sh,ch=200;function lh(t,e,n){var r=-1,i=eh,o=t.length,a=!0,s=[],u=s;if(n)a=!1,i=rh;else if(o>=ch){var c=e?null:uh(t);if(c)return oc(c);a=!1,i=$u,u=new Yu}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 hh=lh;function fh(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}var ph=fh,dh=Au((function(t){var e=ph(t);return Ys(e)&&(e=void 0),hh(Vu(t,1,Ys,!0),Wl(e,2))})),vh=dh;function gh(t){return t&&t.length?hh(t):[]}var mh=gh;function yh(t,e,n){return t===t&&(void 0!==n&&(t=t<=n?t:n),void 0!==e&&(t=t>=e?t:e)),t}var _h=yh;function bh(t,e,n){return void 0===n&&(n=e,e=void 0),void 0!==n&&(n=be(n),n=n===n?n:0),void 0!==e&&(e=be(e),e=e===e?e:0),_h(be(t),e,n)}var Oh=bh;function wh(t){var e=null==t?0:t.length;return e?Vu(t,1):[]}var xh=wh;function Eh(t,e,n,r){var i=-1,o=null==t?0:t.length;while(++i<o){var a=t[i];e(r,a,n(a),t)}return r}var Sh=Eh;function Th(t,e){return t&&Ws(t,e,Wi)}var Mh=Th;function Ch(t,e){return function(n,r){if(null==n)return n;if(!zi(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 Ah=Ch,Ph=Ah(Mh),Lh=Ph;function Dh(t,e,n,r){return Lh(t,(function(t,i,o){e(r,t,n(t),o)})),r}var kh=Dh;function Rh(t,e){return function(n,r){var i=Ur(n)?Sh:kh,o=e?e():{};return i(n,t,Wl(r,2),o)}}var Ih=Rh,Nh=Object.prototype,jh=Nh.hasOwnProperty,Bh=Ih((function(t,e,n){jh.call(t,n)?t[n].push(e):Or(t,n,[e])})),Uh=Bh;function Vh(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),n=n>i?i:n,n<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;var o=Array(i);while(++r<i)o[r]=t[r+e];return o}var Gh=Vh;function Hh(t,e,n){var r=t.length;return n=void 0===n?r:n,!e&&n>=r?t:Gh(t,e,n)}var zh=Hh,Fh="\\ud800-\\udfff",Wh="\\u0300-\\u036f",qh="\\ufe20-\\ufe2f",Yh="\\u20d0-\\u20ff",Zh=Wh+qh+Yh,Xh="\\ufe0e\\ufe0f",Kh="\\u200d",$h=RegExp("["+Kh+Fh+Zh+Xh+"]");function Qh(t){return $h.test(t)}var Jh=Qh;function tf(t){return t.split("")}var ef=tf,nf="\\ud800-\\udfff",rf="\\u0300-\\u036f",of="\\ufe20-\\ufe2f",af="\\u20d0-\\u20ff",sf=rf+of+af,uf="\\ufe0e\\ufe0f",cf="["+nf+"]",lf="["+sf+"]",hf="\\ud83c[\\udffb-\\udfff]",ff="(?:"+lf+"|"+hf+")",pf="[^"+nf+"]",df="(?:\\ud83c[\\udde6-\\uddff]){2}",vf="[\\ud800-\\udbff][\\udc00-\\udfff]",gf="\\u200d",mf=ff+"?",yf="["+uf+"]?",_f="(?:"+gf+"(?:"+[pf,df,vf].join("|")+")"+yf+mf+")*",bf=yf+mf+_f,Of="(?:"+[pf+lf+"?",lf,df,vf,cf].join("|")+")",wf=RegExp(hf+"(?="+hf+")|"+Of+bf,"g");function xf(t){return t.match(wf)||[]}var Ef=xf;function Sf(t){return Jh(t)?Ef(t):ef(t)}var Tf=Sf;function Mf(t){return function(e){e=yl(e);var n=Jh(e)?Tf(e):void 0,r=n?n[0]:e.charAt(0),i=n?zh(n,1).join(""):e.slice(1);return r[t]()+i}}var Cf=Mf,Af=Cf("toUpperCase"),Pf=Af;function Lf(t){return Pf(yl(t).toLowerCase())}var Df=Lf;function kf(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 Rf=kf;function If(t){return function(e){return null==t?void 0:t[e]}}var Nf=If,jf={"À":"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"},Bf=Nf(jf),Uf=Bf,Vf=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Gf="\\u0300-\\u036f",Hf="\\ufe20-\\ufe2f",zf="\\u20d0-\\u20ff",Ff=Gf+Hf+zf,Wf="["+Ff+"]",qf=RegExp(Wf,"g");function Yf(t){return t=yl(t),t&&t.replace(Vf,Uf).replace(qf,"")}var Zf=Yf,Xf=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function Kf(t){return t.match(Xf)||[]}var $f=Kf,Qf=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function Jf(t){return Qf.test(t)}var tp=Jf,ep="\\ud800-\\udfff",np="\\u0300-\\u036f",rp="\\ufe20-\\ufe2f",ip="\\u20d0-\\u20ff",op=np+rp+ip,ap="\\u2700-\\u27bf",sp="a-z\\xdf-\\xf6\\xf8-\\xff",up="\\xac\\xb1\\xd7\\xf7",cp="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",lp="\\u2000-\\u206f",hp=" \\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",fp="A-Z\\xc0-\\xd6\\xd8-\\xde",pp="\\ufe0e\\ufe0f",dp=up+cp+lp+hp,vp="['’]",gp="["+dp+"]",mp="["+op+"]",yp="\\d+",_p="["+ap+"]",bp="["+sp+"]",Op="[^"+ep+dp+yp+ap+sp+fp+"]",wp="\\ud83c[\\udffb-\\udfff]",xp="(?:"+mp+"|"+wp+")",Ep="[^"+ep+"]",Sp="(?:\\ud83c[\\udde6-\\uddff]){2}",Tp="[\\ud800-\\udbff][\\udc00-\\udfff]",Mp="["+fp+"]",Cp="\\u200d",Ap="(?:"+bp+"|"+Op+")",Pp="(?:"+Mp+"|"+Op+")",Lp="(?:"+vp+"(?:d|ll|m|re|s|t|ve))?",Dp="(?:"+vp+"(?:D|LL|M|RE|S|T|VE))?",kp=xp+"?",Rp="["+pp+"]?",Ip="(?:"+Cp+"(?:"+[Ep,Sp,Tp].join("|")+")"+Rp+kp+")*",Np="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",jp="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Bp=Rp+kp+Ip,Up="(?:"+[_p,Sp,Tp].join("|")+")"+Bp,Vp=RegExp([Mp+"?"+bp+"+"+Lp+"(?="+[gp,Mp,"$"].join("|")+")",Pp+"+"+Dp+"(?="+[gp,Mp+Ap,"$"].join("|")+")",Mp+"?"+Ap+"+"+Lp,Mp+"+"+Dp,jp,Np,yp,Up].join("|"),"g");function Gp(t){return t.match(Vp)||[]}var Hp=Gp;function zp(t,e,n){return t=yl(t),e=n?void 0:e,void 0===e?tp(t)?Hp(t):$f(t):t.match(e)||[]}var Fp=zp,Wp="['’]",qp=RegExp(Wp,"g");function Yp(t){return function(e){return Rf(Fp(Zf(e).replace(qp,"")),t,"")}}var Zp=Yp,Xp=Zp((function(t,e,n){return e=e.toLowerCase(),t+(n?Df(e):e)})),Kp=Xp,$p="[object Map]",Qp="[object Set]",Jp=Object.prototype,td=Jp.hasOwnProperty;function ed(t){if(null==t)return!0;if(zi(t)&&(Ur(t)||"string"==typeof t||"function"==typeof t.splice||Object(Vr["a"])(t)||Ti(t)||jr(t)))return!t.length;var e=ta(t);if(e==$p||e==Qp)return!t.size;if(ki(t))return!Gi(t).length;for(var n in t)if(td.call(t,n))return!1;return!0}var nd=ed;function rd(t,e){return jc(t,e)}var id=rd;function od(t,e){var n=-1,r=zi(t)?Array(t.length):[];return Lh(t,(function(t,i,o){r[++n]=e(t,i,o)})),r}var ad=od;function sd(t,e){var n=Ur(t)?hl:ad;return n(t,Wl(e,3))}var ud=sd,cd=1/0;function ld(t,e){return Vu(ud(t,e),cd)}var hd=ld,fd=Zp((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()})),pd=fd;function dd(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 vd=dd;function gd(t,e){var n;return Lh(t,(function(t,r,i){return n=e(t,r,i),!n})),!!n}var md=gd;function yd(t,e,n){var r=Ur(t)?Xu:md;return n&&Lu(t,e,n)&&(e=void 0),r(t,Wl(e,3))}var _d,bd=yd,Od=function(t){let e;while(e=t.sourceEvent)t=e;return t},wd=function(t,e){if(t=Od(t),void 0===e&&(e=t.currentTarget),e){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=t.clientX,r.y=t.clientY,r=r.matrixTransform(e.getScreenCTM().inverse()),[r.x,r.y]}if(e.getBoundingClientRect){var i=e.getBoundingClientRect();return[t.clientX-i.left-e.clientLeft,t.clientY-i.top-e.clientTop]}}return[t.pageX,t.pageY]};(function(t){function e(t,e,n){var r=null;return function(){var i=this,o=arguments;i.mousePosition=wd(o[0],n),clearTimeout(r),r=setTimeout((function(){t.apply(i,o)}),e)}}function n(e,n){var r,i,o=t.clone(e),a=Object.keys(n.axes||{});for(var s in(null===(i=null===(r=n)||void 0===r?void 0:r.toolbar)||void 0===i?void 0:i.controls)&&delete o.toolbar.controls,0===a.length&&delete o.axes,o.axes)if(a.includes(s)){var u=n.axes[s];(u["primary"]||u["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/docs-tutorials--tabular-data-format");var c=u["mapsTo"];if(void 0===c||null===c){var h=u["scaleType"];void 0===h||null===h?u["mapsTo"]="value":h===H.TIME?u["mapsTo"]="date":h===H.LABELS&&(u["mapsTo"]="key")}}else delete o.axes[s];return l(o,n),t.merge(o,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,n){void 0===n&&(n="value");var r=t/e.reduce((function(t,e){return t+e[n]}),0)*100;return r%1!==0?parseFloat(r.toFixed(1)):r}function c(t,e,n){return n>t.length?t:e===V.MID_LINE?t.substr(0,n/2)+"..."+t.substr(-n/2):e===V.FRONT_LINE?"..."+t.substr(-n):e===V.END_LINE?t.substr(0,n)+"...":void 0}function l(e,n){var r=t.getProperty(e,"legend","additionalItems"),i=t.getProperty(n,"legend","additionalItems");if(r&&i){var o=i.map((function(t){return t.type})),a=r.map((function(t){return t.type})),s=Rt.filter((function(t){return a.includes(t.type)&&!o.includes(t.type)}));e.legend.additionalItems=s,n.legend.additionalItems=t.unionBy(s,i,"name")}}function h(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 f(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 p(t){return t.each((function(){this.parentNode.appendChild(this)}))}function d(t,e,n){return n===G.VERTICAL?[t,e]:[e,t]}t.debounce=Se,t.clone=Us,t.merge=Iu,t.unionBy=vh,t.removeArrayDuplicates=mh,t.clamp=Oh,t.flatten=xh,t.groupBy=Uh,t.camelCase=Kp,t.isEmpty=nd,t.isEqual=id,t.flatMapDeep=hd,t.kebabCase=pd,t.fromPairs=vd,t.some=bd,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.updateLegendAdditionalItems=l,t.arrayDifferences=h,t.getDuplicateValues=f,t.moveToFront=p,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===G.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=d,t.compareNumeric=function(t,e){return Number(t)===Number(e)}})(_d||(_d={}));var xd=n("39ba"),Ed=n.n(xd),Sd=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},Td={type:V.END_LINE,threshold:16,numCharacter:14},Md={enabled:!0,position:z.BOTTOM,clickable:!0,truncation:Td,alignment:F.LEFT,order:null,additionalItems:[]},Cd={x:{enabled:!0,numberOfTicks:15,alignWithAxisTicks:!1},y:{enabled:!0,numberOfTicks:5,alignWithAxisTicks:!1}},Ad={enabled:!0},Pd={enabled:!0,showTotal:!0,truncation:Td,groupLabel:"Group"},Ld={top:{visible:!0,includeZero:!0,truncation:Td},bottom:{visible:!0,includeZero:!0,truncation:Td},left:{visible:!0,includeZero:!0,truncation:Td},right:{visible:!0,includeZero:!0,truncation:Td}},Dd={addSpaceOnEdges:1,showDayName:!1,localeObject:Ed.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"}}},kd="undefined"!==typeof document&&(document["fullscreenEnabled"]||document["webkitFullscreenEnabled"]||document["mozFullScreenEnabled"]||document["msFullscreenEnabled"]),Rd={width:null,height:null,resizable:!0,theme:N.WHITE,tooltip:Pd,legend:Md,style:{prefix:"cc"},data:{groupMapsTo:"group",loading:!1,selectedGroups:[]},color:{scale:null,pairing:{numberOfVariants:null,option:1},gradient:{enabled:!1}},toolbar:{enabled:!0,numberOfIcons:3,controls:Sd([{type:ot.SHOW_AS_DATATABLE}],kd?[{type:ot.MAKE_FULLSCREEN}]:[],[{type:ot.EXPORT_CSV},{type:ot.EXPORT_PNG},{type:ot.EXPORT_JPG}])}},Id=_d.merge({},Rd,{axes:Ld,timeScale:Dd,grid:Cd,ruler:Ad,zoomBar:{zoomRatio:.4,minZoomRatio:.01,top:{enabled:!1,type:U.GRAPH_VIEW}}}),Nd=_d.merge({},Id,{bars:{maxWidth:16,spacingFactor:.25},timeScale:_d.merge(Dd,{addSpaceOnEdges:1})}),jd=_d.merge({},Nd,{}),Bd=_d.merge({},Nd,{}),Ud=_d.merge({},Nd,{bars:_d.merge({},Nd.bars,{dividerSize:1.5})}),Vd=_d.merge({},Nd,{}),Gd=_d.merge({},Id,{points:{radius:4,fillOpacity:.3,filled:!0,enabled:!0}}),Hd=Gd,zd=_d.merge({},Gd,{points:{radius:3,filled:!1,enabled:!0}}),Fd=_d.merge({},zd,{timeScale:_d.merge(Dd,{addSpaceOnEdges:0})}),Wd=Fd,qd=_d.merge({},Id,{bubble:{radiusMapsTo:"radius",radiusLabel:"Radius",radiusRange:function(t,e){var n=Math.min(t.width,t.height);return[3*n/400,25*n/400]},fillOpacity:.2,enabled:!0},points:{filled:!0},legend:{additionalItems:[{type:st.RADIUS,name:"Radius"}]}}),Yd=_d.merge({},Id,{bullet:{performanceAreaTitles:["Poor","Satisfactory","Great"]},grid:{x:{enabled:!1},y:{enabled:!1}},legend:{additionalItems:[{type:st.AREA,name:"Poor area"},{type:st.AREA,name:"Satisfactory area"},{type:st.AREA,name:"Great area"},{type:st.QUARTILE,name:"Quartiles"}]}}),Zd=_d.merge({},Nd,{bars:{dividerSize:1.5},timeScale:_d.merge(Dd,{addSpaceOnEdges:0})}),Xd=_d.merge({},Rd,{tooltip:_d.merge({},Pd,{wordLabel:"Word",valueLabel:"Value"}),wordCloud:{fontSizeMapsTo:"value",fontSizeRange:function(t,e){var n=Math.min(t.width,t.height);return[20*n/400,75*n/400]},wordMapsTo:"word"}}),Kd=_d.merge({},Rd,{pie:{labels:{formatter:null,enabled:!0},alignment:F.LEFT,sortFunction:null,valueMapsTo:"value"}}),$d=_d.merge({},Rd,{legend:{enabled:!1},gauge:{type:tt.SEMI,arcWidth:16,deltaArrow:{size:function(t){return t/8},enabled:!0},showPercentageSymbol:!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:F.LEFT}}),Qd=_d.merge({},Kd,{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:F.LEFT}}),Jd=_d.merge({},Rd,{legend:{enabled:!1,clickable:!1},meter:{showLabels:!0,proportional:null,statusBar:{percentageIndicator:{enabled:!0}}}}),tv=_d.merge({},Jd,{legend:{enabled:!0}}),ev=_d.merge({},Rd,{radar:{axes:{angle:"key",value:"value"},alignment:F.LEFT},tooltip:{gridline:{enabled:!0},valueFormatter:function(t){return null!==t&&void 0!==t?t:"N/A"}}}),nv=_d.merge({},Nd,{comboChartTypes:[]}),rv=_d.merge({tree:{type:q.TREE}},Rd,{}),iv=_d.merge({},Rd,{data:_d.merge(Rd.data,{groupMapsTo:"name"})}),ov=_d.merge({},Rd,yt,{data:_d.merge(Rd.data,{groupMapsTo:"name"})}),av=_d.merge({},Rd,{alluvial:{data:_d.merge(Rd.data,{groupMapsTo:"source"}),nodeAlignment:F.CENTER,nodePadding:24,monochrome:!1,nodes:[]}}),sv=_d.merge({},Rd,{axes:Ld,heatmap:{divider:{state:ct.AUTO},colorLegend:{type:"linear"}}}),uv={chart:Rd,axisChart:Id,simpleBarChart:jd,groupedBarChart:Bd,stackedBarChart:Ud,boxplotChart:Vd,bubbleChart:qd,bulletChart:Yd,histogramChart:Zd,lineChart:zd,areaChart:Fd,stackedAreaChart:Wd,scatterChart:Gd,lollipopChart:Hd,pieChart:Kd,donutChart:Qd,meterChart:Jd,proportionalMeterChart:tv,radarChart:ev,gaugeChart:$d,comboChart:nv,treeChart:rv,treemapChart:iv,circlePackChart:ov,wordCloudChart:Xd,alluvialChart:av,heatmapChart:sv};class cv extends Map{constructor(t,e=pv){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(const[n,r]of t)this.set(n,r)}get(t){return super.get(lv(this,t))}has(t){return super.has(lv(this,t))}set(t,e){return super.set(hv(this,t),e)}delete(t){return super.delete(fv(this,t))}}Set;function lv({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):n}function hv({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):(t.set(r,n),n)}function fv({_intern:t,_key:e},n){const r=e(n);return t.has(r)&&(n=t.get(n),t.delete(r)),n}function pv(t){return null!==t&&"object"===typeof t?t.valueOf():t}function dv(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}const vv=Symbol("implicit");function gv(){var t=new cv,e=[],n=[],r=vv;function i(i){let o=t.get(i);if(void 0===o){if(r!==vv)return r;t.set(i,o=e.push(i)-1)}return n[o%n.length]}return i.domain=function(n){if(!arguments.length)return e.slice();e=[],t=new cv;for(const r of n)t.has(r)||t.set(r,e.push(r)-1);return i},i.range=function(t){return arguments.length?(n=Array.from(t),i):n.slice()},i.unknown=function(t){return arguments.length?(r=t,i):r},i.copy=function(){return gv(e,n).unknown(r)},dv.apply(i,arguments),i}var mv=Array.prototype.slice,yv=function(t){return"object"===typeof t&&"length"in t?t:Array.from(t)},_v=function(t){return function(){return t}},bv=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]},Ov=function(t){var e=t.length,n=new Array(e);while(--e>=0)n[e]=e;return n};function wv(t,e){return t[e]}function xv(t){const e=[];return e.key=t,e}var Ev=function(){var t=_v([]),e=Ov,n=bv,r=wv;function i(i){var o,a,s=Array.from(t.apply(this,arguments),xv),u=s.length,c=-1;for(const t of i)for(o=0,++c;o<u;++o)(s[o][c]=[0,+r(t,s[o].key,c,i)]).data=t;for(o=0,a=yv(e(s));o<u;++o)s[a[o]].index=o;return n(s,a),s}return i.keys=function(e){return arguments.length?(t="function"===typeof e?e:_v(Array.from(e)),i):t},i.value=function(t){return arguments.length?(r="function"===typeof t?t:_v(+t),i):r},i.order=function(t){return arguments.length?(e=null==t?Ov:"function"===typeof t?t:_v(Array.from(t)),i):e},i.offset=function(t){return arguments.length?(n=null==t?bv:t,i):n},i},Sv=function(t,e){if((s=t.length)>0)for(var n,r,i,o,a,s,u=0,c=t[e[0]].length;u<c;++u)for(o=a=0,n=0;n<s;++n)(i=(r=t[e[n]][u])[1]-r[0])>0?(r[0]=o,r[1]=o+=i):i<0?(r[1]=a,r[0]=a+=i):(r[0]=0,r[1]=i)},Tv=Array.prototype,Mv=Tv.slice,Cv=(Tv.map,function(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}),Av=function(t){let e=t,n=t;function r(t,e,r,i){null==r&&(r=0),null==i&&(i=t.length);while(r<i){const o=r+i>>>1;n(t[o],e)<0?r=o+1:i=o}return r}function i(t,e,r,i){null==r&&(r=0),null==i&&(i=t.length);while(r<i){const o=r+i>>>1;n(t[o],e)>0?i=o:r=o+1}return r}function o(t,n,i,o){null==i&&(i=0),null==o&&(o=t.length);const a=r(t,n,i,o-1);return a>i&&e(t[a-1],n)>-e(t[a],n)?a-1:a}return 1===t.length&&(e=(e,n)=>t(e)-n,n=Pv(t)),{left:r,center:o,right:i}};function Pv(t){return(e,n)=>Cv(t(e),n)}var Lv=function(t){return null===t?NaN:+t};function*Dv(t,e){if(void 0===e)for(let n of t)null!=n&&(n=+n)>=n&&(yield n);else{let n=-1;for(let r of t)null!=(r=e(r,++n,t))&&(r=+r)>=r&&(yield r)}}const kv=Av(Cv),Rv=kv.right;kv.left,Av(Lv).center;var Iv=Rv,Nv=function(t){return function(){return t}},jv=function(t,e){let n,r;if(void 0===e)for(const i of t)null!=i&&(void 0===n?i>=i&&(n=r=i):(n>i&&(n=i),r<i&&(r=i)));else{let i=-1;for(let o of t)null!=(o=e(o,++i,t))&&(void 0===n?o>=o&&(n=r=o):(n>o&&(n=o),r<o&&(r=o)))}return[n,r]},Bv=function(t){return t},Uv=Math.sqrt(50),Vv=Math.sqrt(10),Gv=Math.sqrt(2),Hv=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=zv(t,e,n))||!isFinite(a))return[];if(a>0){let n=Math.round(t/a),r=Math.round(e/a);n*a<t&&++n,r*a>e&&--r,o=new Array(i=r-n+1);while(++s<i)o[s]=(n+s)*a}else{a=-a;let n=Math.round(t*a),r=Math.round(e*a);n/a<t&&++n,r/a>e&&--r,o=new Array(i=r-n+1);while(++s<i)o[s]=(n+s)/a}return r&&o.reverse(),o};function zv(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>=Uv?10:o>=Vv?5:o>=Gv?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=Uv?10:o>=Vv?5:o>=Gv?2:1)}function Fv(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>=Uv?i*=10:o>=Vv?i*=5:o>=Gv&&(i*=2),e<t?-i:i}function Wv(t,e,n){let r;while(1){const i=zv(t,e,n);if(i===r||0===i||!isFinite(i))return[t,e];i>0?(t=Math.floor(t/i)*i,e=Math.ceil(e/i)*i):i<0&&(t=Math.ceil(t*i)/i,e=Math.floor(e*i)/i),r=i}}function qv(t,e){let n=0;if(void 0===e)for(let r of t)null!=r&&(r=+r)>=r&&++n;else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(i=+i)>=i&&++n}return n}var Yv=function(t){return Math.ceil(Math.log(qv(t))/Math.LN2)+1},Zv=function(){var t=Bv,e=jv,n=Yv;function r(r){Array.isArray(r)||(r=Array.from(r));var i,o,a=r.length,s=new Array(a);for(i=0;i<a;++i)s[i]=t(r[i],i,r);var u=e(s),c=u[0],l=u[1],h=n(s,c,l);if(!Array.isArray(h)){const t=l,n=+h;if(e===jv&&([c,l]=Wv(c,l,n)),h=Hv(c,l,n),h[h.length-1]>=l)if(t>=l&&e===jv){const t=zv(c,l,n);isFinite(t)&&(t>0?l=(Math.floor(l/t)+1)*t:t<0&&(l=(Math.ceil(l*-t)+1)/-t))}else h.pop()}var f=h.length;while(h[0]<=c)h.shift(),--f;while(h[f-1]>l)h.pop(),--f;var p,d=new Array(f+1);for(i=0;i<=f;++i)p=d[i]=[],p.x0=i>0?h[i-1]:c,p.x1=i<f?h[i]:l;for(i=0;i<a;++i)o=s[i],null!=o&&c<=o&&o<=l&&d[Iv(h,o,0,f)].push(r[i]);return d}return r.value=function(e){return arguments.length?(t="function"===typeof e?e:Nv(e),r):t},r.domain=function(t){return arguments.length?(e="function"===typeof t?t:Nv([t[0],t[1]]),r):e},r.thresholds=function(t){return arguments.length?(n="function"===typeof t?t:Array.isArray(t)?Nv(Mv.call(t)):Nv(t),r):n},r};function Xv(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 Kv(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=Xv(t);return!isNaN(e)}var $v={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 Qv(t,e,n){var r;return n=n||{},r="string"===typeof $v[t]?$v[t]:1===e?$v[t].one:$v[t].other.replace("{{count}}",e),n.addSuffix?n.comparison>0?"in "+r:r+" ago":r}function Jv(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 tg={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},eg={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},ng={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},rg={date:Jv({formats:tg,defaultWidth:"full"}),time:Jv({formats:eg,defaultWidth:"full"}),dateTime:Jv({formats:ng,defaultWidth:"full"})},ig=rg,og={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function ag(t,e,n,r){return og[t]}function sg(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 ug={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},cg={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},lg={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"]},hg={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"]},fg={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"}},pg={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 dg(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 vg={ordinalNumber:dg,era:sg({values:ug,defaultWidth:"wide"}),quarter:sg({values:cg,defaultWidth:"wide",argumentCallback:function(t){return Number(t)-1}}),month:sg({values:lg,defaultWidth:"wide"}),day:sg({values:hg,defaultWidth:"wide"}),dayPeriod:sg({values:fg,defaultWidth:"wide",formattingValues:pg,defaultFormattingWidth:"wide"})},gg=vg;function mg(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 yg(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)?bg(l,(function(t){return t.test(r)})):_g(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 _g(t,e){for(var n in t)if(t.hasOwnProperty(n)&&e(t[n]))return n}function bg(t,e){for(var n=0;n<t.length;n++)if(e(t[n]))return n}var Og=/^(\d+)(th|st|nd|rd)?/i,wg=/\d+/i,xg={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},Eg={any:[/^b/i,/^(a|c)/i]},Sg={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Tg={any:[/1/i,/2/i,/3/i,/4/i]},Mg={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},Cg={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]},Ag={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},Pg={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]},Lg={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},Dg={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}},kg={ordinalNumber:mg({matchPattern:Og,parsePattern:wg,valueCallback:function(t){return parseInt(t,10)}}),era:yg({matchPatterns:xg,defaultMatchWidth:"wide",parsePatterns:Eg,defaultParseWidth:"any"}),quarter:yg({matchPatterns:Sg,defaultMatchWidth:"wide",parsePatterns:Tg,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:yg({matchPatterns:Mg,defaultMatchWidth:"wide",parsePatterns:Cg,defaultParseWidth:"any"}),day:yg({matchPatterns:Ag,defaultMatchWidth:"wide",parsePatterns:Pg,defaultParseWidth:"any"}),dayPeriod:yg({matchPatterns:Lg,defaultMatchWidth:"any",parsePatterns:Dg,defaultParseWidth:"any"})},Rg=kg,Ig={code:"en-US",formatDistance:Qv,formatLong:ig,formatRelative:ag,localize:gg,match:Rg,options:{weekStartsOn:0,firstWeekContainsDate:1}},Ng=Ig;function jg(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 Bg(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Xv(t).getTime(),r=jg(e);return new Date(n+r)}function Ug(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=jg(e);return Bg(t,-n)}function Vg(t,e){var n=t<0?"-":"",r=Math.abs(t).toString();while(r.length<e)r="0"+r;return n+r}var Gg={y:function(t,e){var n=t.getUTCFullYear(),r=n>0?n:1-n;return Vg("yy"===e?r%100:r,e.length)},M:function(t,e){var n=t.getUTCMonth();return"M"===e?String(n+1):Vg(n+1,2)},d:function(t,e){return Vg(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 Vg(t.getUTCHours()%12||12,e.length)},H:function(t,e){return Vg(t.getUTCHours(),e.length)},m:function(t,e){return Vg(t.getUTCMinutes(),e.length)},s:function(t,e){return Vg(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 Vg(i,e.length)}},Hg=Gg,zg=864e5;function Fg(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=Xv(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/zg)+1}function Wg(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=1,n=Xv(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 qg(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=Xv(t),n=e.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var i=Wg(r),o=new Date(0);o.setUTCFullYear(n,0,4),o.setUTCHours(0,0,0,0);var a=Wg(o);return e.getTime()>=i.getTime()?n+1:e.getTime()>=a.getTime()?n:n-1}function Yg(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=qg(t),n=new Date(0);n.setUTCFullYear(e,0,4),n.setUTCHours(0,0,0,0);var r=Wg(n);return r}var Zg=6048e5;function Xg(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=Xv(t),n=Wg(e).getTime()-Yg(e).getTime();return Math.round(n/Zg)+1}function Kg(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:jg(i),a=null==n.weekStartsOn?o:jg(n.weekStartsOn);if(!(a>=0&&a<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var s=Xv(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 $g(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=Xv(t,e),r=n.getUTCFullYear(),i=e||{},o=i.locale,a=o&&o.options&&o.options.firstWeekContainsDate,s=null==a?1:jg(a),u=null==i.firstWeekContainsDate?s:jg(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=Kg(c,e),h=new Date(0);h.setUTCFullYear(r,0,u),h.setUTCHours(0,0,0,0);var f=Kg(h,e);return n.getTime()>=l.getTime()?r+1:n.getTime()>=f.getTime()?r:r-1}function Qg(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:jg(i),a=null==n.firstWeekContainsDate?o:jg(n.firstWeekContainsDate),s=$g(t,e),u=new Date(0);u.setUTCFullYear(s,0,a),u.setUTCHours(0,0,0,0);var c=Kg(u,e);return c}var Jg=6048e5;function tm(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=Xv(t),r=Kg(n,e).getTime()-Qg(n,e).getTime();return Math.round(r/Jg)+1}var em={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},nm={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 Hg.y(t,e)},Y:function(t,e,n,r){var i=$g(t,r),o=i>0?i:1-i;if("YY"===e){var a=o%100;return Vg(a,2)}return"Yo"===e?n.ordinalNumber(o,{unit:"year"}):Vg(o,e.length)},R:function(t,e){var n=qg(t);return Vg(n,e.length)},u:function(t,e){var n=t.getUTCFullYear();return Vg(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 Vg(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 Vg(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 Hg.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 Vg(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=tm(t,r);return"wo"===e?n.ordinalNumber(i,{unit:"week"}):Vg(i,e.length)},I:function(t,e,n){var r=Xg(t);return"Io"===e?n.ordinalNumber(r,{unit:"week"}):Vg(r,e.length)},d:function(t,e,n){return"do"===e?n.ordinalNumber(t.getUTCDate(),{unit:"date"}):Hg.d(t,e)},D:function(t,e,n){var r=Fg(t);return"Do"===e?n.ordinalNumber(r,{unit:"dayOfYear"}):Vg(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 Vg(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 Vg(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 Vg(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?em.noon:0===i?em.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?em.evening:i>=12?em.afternoon:i>=4?em.morning:em.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 Hg.h(t,e)},H:function(t,e,n){return"Ho"===e?n.ordinalNumber(t.getUTCHours(),{unit:"hour"}):Hg.H(t,e)},K:function(t,e,n){var r=t.getUTCHours()%12;return"Ko"===e?n.ordinalNumber(r,{unit:"hour"}):Vg(r,e.length)},k:function(t,e,n){var r=t.getUTCHours();return 0===r&&(r=24),"ko"===e?n.ordinalNumber(r,{unit:"hour"}):Vg(r,e.length)},m:function(t,e,n){return"mo"===e?n.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):Hg.m(t,e)},s:function(t,e,n){return"so"===e?n.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):Hg.s(t,e)},S:function(t,e){return Hg.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 im(o);case"XXXX":case"XX":return om(o);case"XXXXX":case"XXX":default:return om(o,":")}},x:function(t,e,n,r){var i=r._originalDate||t,o=i.getTimezoneOffset();switch(e){case"x":return im(o);case"xxxx":case"xx":return om(o);case"xxxxx":case"xxx":default:return om(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"+rm(o,":");case"OOOO":default:return"GMT"+om(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"+rm(o,":");case"zzzz":default:return"GMT"+om(o,":")}},t:function(t,e,n,r){var i=r._originalDate||t,o=Math.floor(i.getTime()/1e3);return Vg(o,e.length)},T:function(t,e,n,r){var i=r._originalDate||t,o=i.getTime();return Vg(o,e.length)}};function rm(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+Vg(o,2)}function im(t,e){if(t%60===0){var n=t>0?"-":"+";return n+Vg(Math.abs(t)/60,2)}return om(t,e)}function om(t,e){var n=e||"",r=t>0?"-":"+",i=Math.abs(t),o=Vg(Math.floor(i/60),2),a=Vg(i%60,2);return r+o+n+a}var am=nm;function sm(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 um(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 cm(t,e){var n,r=t.match(/(P+)(p+)?/),i=r[1],o=r[2];if(!o)return sm(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}}",sm(i,e)).replace("{{time}}",um(o,e))}var lm={p:um,P:cm},hm=lm,fm=6e4;function pm(t){var e=new Date(t.getTime()),n=Math.ceil(e.getTimezoneOffset());e.setSeconds(0,0);var r=e.getTime()%fm;return n*fm+r}var dm=["D","DD"],vm=["YY","YYYY"];function gm(t){return-1!==dm.indexOf(t)}function mm(t){return-1!==vm.indexOf(t)}function ym(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 _m=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,bm=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Om=/^'([^]*?)'?$/,wm=/''/g,xm=/[a-zA-Z]/;function Em(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||Ng,a=o.options&&o.options.firstWeekContainsDate,s=null==a?1:jg(a),u=null==i.firstWeekContainsDate?s:jg(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:jg(c),h=null==i.weekStartsOn?l:jg(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=Xv(t);if(!Kv(f))throw new RangeError("Invalid time value");var p=pm(f),d=Ug(f,p),v={firstWeekContainsDate:u,weekStartsOn:h,locale:o,_originalDate:f},g=r.match(bm).map((function(t){var e=t[0];if("p"===e||"P"===e){var n=hm[e];return n(t,o.formatLong,v)}return t})).join("").match(_m).map((function(t){if("''"===t)return"'";var e=t[0];if("'"===e)return Sm(t);var n=am[e];if(n)return!i.useAdditionalWeekYearTokens&&mm(t)&&ym(t),!i.useAdditionalDayOfYearTokens&&gm(t)&&ym(t),n(d,t,o.localize,v);if(e.match(xm))throw new RangeError("Format string contains an unescaped latin alphabet character `"+e+"`");return t})).join("");return g}function Sm(t){return t.match(Om)[1].replace(wm,"'")}function Tm(t,e){let n;if(void 0===e)for(const r of t)null!=r&&(n>r||void 0===n&&r>=r)&&(n=r);else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(n>i||void 0===n&&i>=i)&&(n=i)}return n}var Mm=[["15seconds",15e3],["minute",6e4],["30minutes",18e5],["hourly",36e5],["daily",864e5],["monthly",2592e6],["quarterly",7776e6],["yearly",31104e6]];function Cm(t,e,n,r,i){var o=0===e,a=2===Number(Em(new Date(t),"c")),s=1===Number(Em(new Date(t),"q")),u=0!==e?n[e-1]:null;switch(r){case"15seconds":return o||Rm(t)||Im(t,u)||Nm(t);case"minute":return o||Rm(t)||Im(t,u)||Nm(t);case"30minutes":return o||Rm(t)||Im(t,u)||Nm(t);case"hourly":return o||Rm(t)||Im(t,u)||Nm(t);case"daily":return i?o||a||Nm(t):o||Im(t,u)||Nm(t);case"monthly":return o||Nm(t);case"quarterly":return o||s;case"yearly":return!1;default:throw new Error(r+" is not a valid time interval.")}}function Am(t,e,n,r,i){var o=i.showDayName,a="daily"===r&&o?"weekly":r,s=new Date(t),u=_d.getProperty(i,"timeIntervalFormats")[a],c=_d.getProperty(u,"primary"),l=_d.getProperty(u,"secondary"),h=Cm(t,e,n,r,o)?c:l;"15seconds"===r&&0!==s.getMilliseconds()&&(h=h.replace("pp","h:mm:ss.SSS a"));var f=i.localeObject;return Em(s,h,{locale:f})}function Pm(t){var e=new Date(t);return{M:e.getMonth()+1,d:e.getDate(),H:e.getHours(),m:e.getMinutes(),s:e.getSeconds()}}function Lm(t){if(t)return t.slice(1).map((function(e,n){return e-t[n]}))}function Dm(t){var e=Mm.reduce((function(e,n,r){n[0];var i=n[1],o=Mm[e][1],a=Math.abs(o-t),s=Math.abs(i-t);return a<s?e:r}),0);return Mm[e][0]}function km(t){if(1===t.length)return"15seconds";var e=Lm(t),n=Tm(e);return Dm(n)}function Rm(t){var e=Pm(t),n=e.s,r=e.m,i=e.H;return 0===i&&0===r&&0===n}function Im(t,e){var n=Pm(t).M,r=Pm(e).M;return n!==r}function Nm(t){var e=Pm(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}function jm(t){return void 0===t?"":t.toISOString()}var Bm=function(){return Bm=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},Bm.apply(this,arguments)},Um=function(){function t(t){this.state={options:{}},this.colorScale={},this.colorClassNames={},this.services=t}return t.prototype.getAllDataFromDomain=function(t){if(!this.getData())return null;var e=this.getOptions(),n=this.getData(),r=this.getDataGroups(),i=_d.getProperty(e,"data").groupMapsTo,o=_d.getProperty(e,"axes");return t&&(n=n.filter((function(e){return t.includes(e[i])}))),o&&Object.keys(o).forEach((function(t){var e=o[t].mapsTo,r=o[t].scaleType;if(r!==H.LINEAR&&r!==H.LOG||(n=n.map((function(t){var n;return Bm(Bm({},t),(n={},n[e]=null===t[e]?t[e]:Number(t[e]),n))}))),e&&o[t].domain)if(r===H.LABELS)n=n.filter((function(n){return o[t].domain.includes(n[e])}));else{var i=o[t].domain,a=i[0],s=i[1];n=n.filter((function(t){return!(e in t)||t[e]>=a&&t[e]<=s}))}})),n.filter((function(t){return r.find((function(e){return e.name===t[i]}))}))},t.prototype.getDisplayData=function(t){if(!this.get("data"))return null;var e=wt.items.status.ACTIVE,n=this.getDataGroups(t),r=this.getOptions().data.groupMapsTo,i=this.getAllDataFromDomain(t);return i.filter((function(t){return n.find((function(n){return n.name===t[r]&&n.status===e}))}))},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(_d.clone(t)),n=this.generateDataGroups(e);return this.set({data:e,dataGroups:n}),e},t.prototype.getDataGroups=function(t){var e=_d.getProperty(this.getOptions(),"data","loading");return e?[]:t?this.get("dataGroups").filter((function(e){return t.includes(e.name)})):this.get("dataGroups")},t.prototype.getActiveDataGroups=function(t){var e=wt.items.status.ACTIVE;return this.getDataGroups(t).filter((function(t){return t.status===e}))},t.prototype.getDataGroupNames=function(t){var e=this.getDataGroups(t);return e.map((function(t){return t.name}))},t.prototype.getActiveDataGroupNames=function(t){var e=this.getActiveDataGroups(t);return e.map((function(t){return t.name}))},t.prototype.aggregateBinDataByGroup=function(t){return _d.groupBy(t,"group")},t.prototype.getBinConfigurations=function(){var t=this,e=this.getDisplayData(),n=this.getOptions(),r=this.services.cartesianScales.getMainXAxisPosition(),i=this.services.cartesianScales.getDomainIdentifier(),o=n.axes[r],a=n.data.groupMapsTo,s=o.bins,u=void 0===s?Ot.defaultBins:s,c=Array.isArray(u),l=Zv().value((function(t){return t[i]})).thresholds(u)(e);if(c)l[l.length-1].x1=u[u.length-1];else{var h=l[0].x1-l[0].x0;l[l.length-1].x1=+l[l.length-1].x0+h}var f=c?[u[0],u[u.length-1]]:[l[0].x0,l[l.length-1].x1],p=Array.from(new Set(e.map((function(t){return t[a]})))),d=[];return l.forEach((function(e){var n=e.x0+"-"+e.x1,r=t.aggregateBinDataByGroup(e);p.forEach((function(t){d.push({group:t,key:n,value:r[t]||0,bin:e.x0})}))})),{bins:l,binsDomain:f}},t.prototype.getBinnedStackedData=function(){var t=this.getOptions(),e=t.data.groupMapsTo,n=this.getActiveDataGroupNames(),r=this.getBinConfigurations().bins,i=this.getDataValuesGroupedByKeys({bins:r});return Ev().keys(n)(i).map((function(t,r){return Object.keys(t).filter((function(t){return!isNaN(t)})).map((function(i){var o=t[i];return o[e]=n[r],o}))}))},t.prototype.getGroupedData=function(t){var e=this.getDisplayData(t),n={},r=this.getOptions().data.groupMapsTo;return e.map((function(t){var e=t[r];null!==n[e]&&void 0!==n[e]?n[e].push(t):n[e]=[t]})),Object.keys(n).map((function(t){return{name:t,data:n[t]}}))},t.prototype.getStackKeys=function(t){var e,n=this,r=void 0===t?{bins:null,groups:null}:t,i=r.bins,o=void 0===i?null:i,a=r.groups,s=void 0===a?null:a,u=this.getOptions(),c=this.getDisplayData(s);e=o?o.map((function(t){return t.x0+"-"+t.x1})):_d.removeArrayDuplicates(c.map((function(t){var e=n.services.cartesianScales.getDomainIdentifier(t);return t[e]instanceof Date?jm(t[e]):t[e]&&"function"===typeof t[e].toString?t[e].toString():t[e]})));var l=this.services.cartesianScales.domainAxisPosition,h=u.axes[l].scaleType;return h===H.TIME?e.sort((function(t,e){var n=new Date(t),r=new Date(e);return n-r})):h!==H.LOG&&h!==H.LINEAR||e.sort((function(t,e){return t-e})),e},t.prototype.getDataValuesGroupedByKeys=function(t){var e=this,n=t.bins,r=void 0===n?null:n,i=t.groups,o=void 0===i?null:i,a=this.getOptions(),s=a.data.groupMapsTo,u=this.getDisplayData(o),c=this.getDataGroupNames(),l=this.getStackKeys({bins:r,groups:o});return r?l.map((function(t){var e=t.split("-"),n=e[0],i=e[1],o={x0:n,x1:i},a=r.find((function(t){return t.x0.toString()===n.toString()}));return c.forEach((function(t){o[t]=a.filter((function(e){return e[s]===t})).length})),o})):l.map((function(t){var n={sharedStackKey:t};return c.forEach((function(r){var i=u.find((function(n){var i=e.services.cartesianScales.getDomainIdentifier(n);return n[s]===r&&n.hasOwnProperty(i)&&(n[i]instanceof Date?jm(n[i])===t:n[i].toString()===t)})),o=e.services.cartesianScales.getRangeIdentifier(n);n[r]=i?i[o]:null})),n}))},t.prototype.getStackedData=function(t){var e=t.percentage,n=void 0!==e&&e,r=t.groups,i=void 0===r?null:r,o=t.divergent,a=void 0!==o&&o,s=this.getOptions(),u=s.data.groupMapsTo,c=this.getActiveDataGroupNames(i),l=this.getDataValuesGroupedByKeys({groups:i});if(n){var h=_d.fromPairs(l.map((function(t){return[t.sharedStackKey,0]})));l.forEach((function(t){c.forEach((function(e){h[t.sharedStackKey]+=t[e]}))})),l.forEach((function(t){c.forEach((function(e){h[t.sharedStackKey]?t[e]=t[e]/h[t.sharedStackKey]*100:t[e]=0}))}))}var f=a?Ev().offset(Sv):Ev();return f.keys(c)(l).map((function(t,e){return Object.keys(t).filter((function(t){return!isNaN(t)})).map((function(n){var r=t[n];return r[u]=c[e],r}))}))},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){var e=this.getOptions();_d.updateLegendAdditionalItems(e,t),this.set({options:_d.merge(e,t)})},t.prototype.update=function(t){void 0===t&&(t=!0),this.getDisplayData()&&(this.updateAllDataGroups(),this.setCustomColorScale(),this.setColorClassNames(),this.services.events.dispatchEvent(ft.Model.UPDATE,{animate:t}))},t.prototype.toggleDataLabel=function(t){var e=wt.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(ft.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){var r=this.getOptions(),i=_d.getProperty(this.colorScale,t);return r.getFillColor?r.getFillColor(t,e,n,i):i},t.prototype.getStrokeColor=function(t,e,n){var r=this.getOptions(),i=_d.getProperty(this.colorScale,t);return r.getStrokeColor?r.getStrokeColor(t,e,n,i):i},t.prototype.isUserProvidedColorScaleValid=function(){var t=_d.getProperty(this.getOptions(),"color","scale"),e=this.getDataGroups();return null!=t&&0!=Object.keys(t).length&&e.some((function(e){return Object.keys(t).includes(e.name)}))},t.prototype.getColorClassName=function(t){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/docs-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=_d.getProperty(t,"label");if(null===a){var s=_d.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.getTabularDataArray=function(){return[]},t.prototype.exportToCSV=function(){var t=this.getTabularDataArray().map((function(t){return t.map((function(t){return'"'+t+'"'}))})),e="",n="";t.forEach((function(r,i){n=r.join(","),e+=i<t.length?n+"\n":n})),this.services.files.downloadCSV(e,"myChart.csv")},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=wt.items.status,r=n.ACTIVE,i=n.DISABLED,o=this.getOptions(),a=_d.removeArrayDuplicates(t.map((function(t){return t[e]})));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(){var t=this;if(this.isUserProvidedColorScaleValid()){var e=this.getOptions(),n=_d.getProperty(e,"color","scale");Object.keys(n).forEach((function(e){t.allDataGroups.includes(e)||console.warn('"'+e+'" does not exist in data groups.')}));var r=this.allDataGroups.filter((function(t){return n[t]}));r.forEach((function(e){return t.colorScale[e]=n[e]}))}},t.prototype.setColorClassNames=function(){var t=_d.getProperty(this.getOptions(),"color","pairing"),e=_d.getProperty(t,"numberOfVariants");(!e||e<this.allDataGroups.length)&&(e=this.allDataGroups.length);var n=_d.getProperty(t,"option"),r=_t.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.colorClassNames=gv().range(o).domain(this.allDataGroups)},t}(),Vm=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 Gm(){}var Hm=function(t){return null==t?Gm:function(){return this.querySelector(t)}},zm=function(t){"function"!==typeof t&&(t=Hm(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 j_(r,this._parents)};function Fm(t){return null==t?[]:Array.isArray(t)?t:Array.from(t)}function Wm(){return[]}var qm=function(t){return null==t?Wm:function(){return this.querySelectorAll(t)}};function Ym(t){return function(){return Fm(t.apply(this,arguments))}}var Zm=function(t){t="function"===typeof t?Ym(t):qm(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 j_(r,i)},Xm=function(t){return function(){return this.matches(t)}};function Km(t){return function(e){return e.matches(t)}}var $m=Array.prototype.find;function Qm(t){return function(){return $m.call(this.children,t)}}function Jm(){return this.firstElementChild}var ty=function(t){return this.select(null==t?Jm:Qm("function"===typeof t?t:Km(t)))},ey=Array.prototype.filter;function ny(){return Array.from(this.children)}function ry(t){return function(){return ey.call(this.children,t)}}var iy=function(t){return this.selectAll(null==t?ny:ry("function"===typeof t?t:Km(t)))},oy=function(t){"function"!==typeof t&&(t=Xm(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 j_(r,this._parents)},ay=function(t){return new Array(t.length)},sy=function(){return new j_(this._enter||this._groups.map(ay),this._parents)};function uy(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}uy.prototype={constructor:uy,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 cy=function(t){return function(){return t}};function ly(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 uy(t,o[s]);for(;s<u;++s)(a=e[s])&&(i[s]=a)}function hy(t,e,n,r,i,o,a){var s,u,c,l=new Map,h=e.length,f=o.length,p=new Array(h);for(s=0;s<h;++s)(u=e[s])&&(p[s]=c=a.call(u,u.__data__,s,e)+"",l.has(c)?i[s]=u:l.set(c,u));for(s=0;s<f;++s)c=a.call(t,o[s],s,o)+"",(u=l.get(c))?(r[s]=u,u.__data__=o[s],l.delete(c)):n[s]=new uy(t,o[s]);for(s=0;s<h;++s)(u=e[s])&&l.get(p[s])===u&&(i[s]=u)}function fy(t){return t.__data__}var py=function(t,e){if(!arguments.length)return Array.from(this,fy);var n=e?hy:ly,r=this._parents,i=this._groups;"function"!==typeof t&&(t=cy(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=dy(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,O=0;b<d;++b)if(y=v[b]){b>=O&&(O=b+1);while(!(_=g[O])&&++O<d);y._next=_||null}}return a=new j_(a,r),a._enter=s,a._exit=u,a};function dy(t){return"object"===typeof t&&"length"in t?t:Array.from(t)}var vy=function(){return new j_(this._exit||this._groups.map(ay),this._parents)},gy=function(t,e,n){var r=this.enter(),i=this,o=this.exit();return"function"===typeof t?(r=t(r),r&&(r=r.selection())):r=r.append(t+""),null!=e&&(i=e(i),i&&(i=i.selection())),null==n?o.remove():n(o),r&&i?r.merge(i).order():i},my=function(t){for(var e=t.selection?t.selection():t,n=this._groups,r=e._groups,i=n.length,o=r.length,a=Math.min(i,o),s=new Array(i),u=0;u<a;++u)for(var c,l=n[u],h=r[u],f=l.length,p=s[u]=new Array(f),d=0;d<f;++d)(c=l[d]||h[d])&&(p[d]=c);for(;u<i;++u)s[u]=n[u];return new j_(s,this._parents)},yy=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},_y=function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=by);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 j_(i,this._parents).order()};function by(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}var Oy=function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},wy=function(){return Array.from(this)},xy=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},Ey=function(){let t=0;for(const e of this)++t;return t},Sy=function(){return!this.node()},Ty=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},My="http://www.w3.org/1999/xhtml",Cy={svg:"http://www.w3.org/2000/svg",xhtml:My,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},Ay=function(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),Cy.hasOwnProperty(e)?{space:Cy[e],local:t}:t};function Py(t){return function(){this.removeAttribute(t)}}function Ly(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Dy(t,e){return function(){this.setAttribute(t,e)}}function ky(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function Ry(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function Iy(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 Ny=function(t,e){var n=Ay(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?Ly:Py:"function"===typeof e?n.local?Iy:Ry:n.local?ky:Dy)(n,e))},jy=function(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView};function By(t){return function(){this.style.removeProperty(t)}}function Uy(t,e,n){return function(){this.style.setProperty(t,e,n)}}function Vy(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}var Gy=function(t,e,n){return arguments.length>1?this.each((null==e?By:"function"===typeof e?Vy:Uy)(t,e,null==n?"":n)):Hy(this.node(),t)};function Hy(t,e){return t.style.getPropertyValue(e)||jy(t).getComputedStyle(t,null).getPropertyValue(e)}function zy(t){return function(){delete this[t]}}function Fy(t,e){return function(){this[t]=e}}function Wy(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}var qy=function(t,e){return arguments.length>1?this.each((null==e?zy:"function"===typeof e?Wy:Fy)(t,e)):this.node()[t]};function Yy(t){return t.trim().split(/^|\s+/)}function Zy(t){return t.classList||new Xy(t)}function Xy(t){this._node=t,this._names=Yy(t.getAttribute("class")||"")}function Ky(t,e){var n=Zy(t),r=-1,i=e.length;while(++r<i)n.add(e[r])}function $y(t,e){var n=Zy(t),r=-1,i=e.length;while(++r<i)n.remove(e[r])}function Qy(t){return function(){Ky(this,t)}}function Jy(t){return function(){$y(this,t)}}function t_(t,e){return function(){(e.apply(this,arguments)?Ky:$y)(this,t)}}Xy.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 e_=function(t,e){var n=Yy(t+"");if(arguments.length<2){var r=Zy(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?t_:e?Qy:Jy)(n,e))};function n_(){this.textContent=""}function r_(t){return function(){this.textContent=t}}function i_(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}var o_=function(t){return arguments.length?this.each(null==t?n_:("function"===typeof t?i_:r_)(t)):this.node().textContent};function a_(){this.innerHTML=""}function s_(t){return function(){this.innerHTML=t}}function u_(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}var c_=function(t){return arguments.length?this.each(null==t?a_:("function"===typeof t?u_:s_)(t)):this.node().innerHTML};function l_(){this.nextSibling&&this.parentNode.appendChild(this)}var h_=function(){return this.each(l_)};function f_(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}var p_=function(){return this.each(f_)};function d_(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===My&&e.documentElement.namespaceURI===My?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=Ay(t);return(e.local?v_:d_)(e)},m_=function(t){var e="function"===typeof t?t:g_(t);return this.select((function(){return this.appendChild(e.apply(this,arguments))}))};function y_(){return null}var __=function(t,e){var n="function"===typeof t?t:g_(t),r=null==e?y_:"function"===typeof e?e:Hm(e);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))};function b_(){var t=this.parentNode;t&&t.removeChild(this)}var O_=function(){return this.each(b_)};function w_(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function x_(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}var E_=function(t){return this.select(t?x_:w_)},S_=function(t){return arguments.length?this.property("__data__",t):this.node().__data__};function T_(t){return function(e){t.call(this,e,this.__data__)}}function M_(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 C_(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.options);++i?e.length=i:delete this.__on}}}function A_(t,e,n){return function(){var r,i=this.__on,o=T_(e);if(i)for(var a=0,s=i.length;a<s;++a)if((r=i[a]).type===t.type&&r.name===t.name)return this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=o,r.options=n),void(r.value=e);this.addEventListener(t.type,o,n),r={type:t.type,name:t.name,value:e,listener:o,options:n},i?i.push(r):this.__on=[r]}}var P_=function(t,e,n){var r,i,o=M_(t+""),a=o.length;if(!(arguments.length<2)){for(s=e?A_:C_,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 L_(t,e,n){var r=jy(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 D_(t,e){return function(){return L_(this,t,e)}}function k_(t,e){return function(){return L_(this,t,e.apply(this,arguments))}}var R_=function(t,e){return this.each(("function"===typeof e?k_:D_)(t,e))},I_=function*(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r,i=t[e],o=0,a=i.length;o<a;++o)(r=i[o])&&(yield r)},N_=[null];function j_(t,e){this._groups=t,this._parents=e}function B_(){return new j_([[document.documentElement]],N_)}function U_(){return this}j_.prototype=B_.prototype={constructor:j_,select:zm,selectAll:Zm,selectChild:ty,selectChildren:iy,filter:oy,data:py,enter:sy,exit:vy,join:gy,merge:my,selection:U_,order:yy,sort:_y,call:Oy,nodes:wy,node:xy,size:Ey,empty:Sy,each:Ty,attr:Ny,style:Gy,property:qy,classed:e_,text:o_,html:c_,raise:h_,lower:p_,append:m_,insert:__,remove:O_,clone:E_,datum:S_,on:P_,dispatch:R_,[Symbol.iterator]:I_};var V_=B_,G_=function(t){return"string"===typeof t?new j_([[document.querySelector(t)]],[document.documentElement]):new j_([[t]],N_)},H_=n("2da1"),z_=n("b1b0"),F_=n.n(z_),W_=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)}}(),q_="DONT_STYLE_ME_css_styles_verifier",Y_=function(t){function e(e,n){return t.call(this,e,n)||this}return W_(e,t),e.getHTMLElementSize=function(t){return{width:t.clientWidth,height:t.clientHeight}},e.getSVGElementSize=function(t,e){void 0===e&&(e={useAttrs:!1,useClientDimensions:!1,useBBox:!1,useBoundingRect:!1}),t.attr||(t=G_(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:_d.getProperty(t.node(),"width","baseVal","value"),height:_d.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=t.select(""+e);if(n.empty()){var r=e.split("#"),i=void 0,o=void 0;return 2===r.length?(i=r[0],r=r[1].split("."),o=r[0]):(r=e.split("."),i=r[0]),t.append(i).attr("id",o).attr("class",r.slice(1).join(" "))}return n},e.prototype.init=function(){this.styleHolderElement(),this.initializeID(),this.addMainContainer(),this.verifyCSSStylesBeingApplied(),this.model.getOptions().resizable&&this.addResizeListener(),this.addHolderListeners(),this.handleFullscreenChange()},e.prototype.getChartID=function(){return this.chartID},e.prototype.generateElementIDString=function(t){return"chart-"+this.chartID+"-"+t},e.prototype.initializeID=function(){this.chartID=Math.floor(281474976710656*(1+Math.random())).toString(16)},e.prototype.addMainContainer=function(){var t=this.model.getOptions(),e=_d.getProperty(t,"style","prefix"),n=G_(this.getHolder()).append("div").classed(dt+"--"+e+"--chart-wrapper",!0).attr("id","chart-"+this.getChartID()).style("height","100%").style("width","100%");n.append("g").attr("class",q_),this.mainContainer=n.node()},e.prototype.update=function(){this.styleHolderElement()},e.prototype.styleHolderElement=function(){var t=this.getHolder(),e=this.model.getOptions(),n=e.width,r=e.height,i=e.theme;n!==this.width&&(t.style.width=n,this.width=n),r!==this.height&&(t.style.height=r,this.height=r),G_(this.getHolder()).classed(dt+"--chart-holder",!0).attr("data-carbon-theme",i)},e.prototype.getHolder=function(){return this.model.get("holder")},e.prototype.exportToJPG=function(){var t=this,e=this.getHolder(),n=G_(e);n.classed("filled",!0),F_.a.toJpeg(this.getMainContainer(),{bgcolor:"undefined"!==typeof window?window.getComputedStyle(e).getPropertyValue("background-color"):void 0,quality:1,filter:function(t){return!t.classList||!t.classList.contains("cds--cc--toolbar")}}).then((function(e){t.services.files.downloadImage(e,"myChart.jpg"),n.classed("filled",!1)}))},e.prototype.exportToPNG=function(){var t=this,e=this.getHolder(),n=G_(e);n.classed("filled",!0),F_.a.toPng(this.getMainContainer(),{bgcolor:"undefined"!==typeof window?window.getComputedStyle(e).getPropertyValue("background-color"):void 0,quality:1,filter:function(t){return!t.classList||!t.classList.contains("cds--cc--toolbar")}}).then((function(e){t.services.files.downloadImage(e,"myChart.png"),n.classed("filled",!1)})).catch((function(t){console.error("oops, something went wrong!",t)}))},e.prototype.toggleFullscreen=function(){var t=this.getHolder(),e=G_(t),n=e.classed("fullscreen");n&&(document.fullscreenElement||document["webkitFullscreenElement"]||document["mozFullScreenElement"]||document["msFullscreenElement"])?document.exitFullscreen?document.exitFullscreen():document["webkitExitFullscreen"]?document["webkitExitFullscreen"]():document["mozCancelFullScreen"]?document["mozCancelFullScreen"]():document["msExitFullscreen"]&&document["msExitFullscreen"]():t.requestFullscreen?t.requestFullscreen():t.webkitRequestFullscreen?t.webkitRequestFullscreen():t.mozRequestFullScreen?t.mozRequestFullScreen():t.msRequestFullscreen&&t.msRequestFullscreen()},e.prototype.handleFullscreenChange=function(){var t=this;document.addEventListener("fullscreenchange",(function(){var e=G_(t.getHolder()),n=e.classed("fullscreen");e.classed("fullscreen",!n)}))},e.prototype.verifyCSSStylesBeingApplied=function(){var t=this;setTimeout((function(){var e=G_(t.mainContainer).select("g."+q_).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(G_(this.mainContainer),{useBBox:!0}).height,n=G_(this.mainContainer).attr("class"),r=G_(this.mainContainer).selectAll("."+n+" > svg"),i=0;r.nodes().forEach((function(t){i+=Number(e.getSVGElementSize(G_(t),{useBBox:!0}).height)})),i<=t?G_(this.mainContainer).attr("height",i):G_(this.mainContainer).attr("height","100%")}},e.prototype.getMainContainer=function(){return this.mainContainer},e.prototype.addHolderListeners=function(){var t=this,e=this.getHolder();e&&G_(e).on("mouseover",(function(){t.services.events.dispatchEvent(ft.Chart.MOUSEOVER)})).on("mouseout",(function(){t.services.events.dispatchEvent(ft.Chart.MOUSEOUT)}))},e.prototype.addResizeListener=function(){var t=this,e=this.getHolder();if(e){var n=e.clientWidth,r=e.clientHeight,i=_d.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(ft.Chart.RESIZE))}),12.5),o=new H_["a"](i);o.observe(e)}},e}(Vm),Z_=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)}}(),X_=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Z_(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}(Vm),K_=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(t){function e(e,n){return t.call(this,e,n)||this}return K_(e,t),e.prototype.downloadCSV=function(t,e){var n=document.createElement("a"),r="text/csv;encoding:utf-8";if(navigator["msSaveBlob"])navigator["msSaveBlob"](new Blob([t],{type:r}),e);else if(URL&&"download"in n){var i=URL.createObjectURL(new Blob([t],{type:r}));n.href=i,n.setAttribute("download",e),document.body.appendChild(n),n.click(),document.body.removeChild(n),URL.revokeObjectURL(i)}else location.href="data:application/octet-stream,"+encodeURIComponent(t)},e.prototype.downloadImage=function(t,e){var n=document.createElement("a");n.download=e,n.href=t,document.body.appendChild(n),n.click(),document.body.removeChild(n)},e}(Vm),Q_=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)}}(),J_=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.pendingTransitions={},e}return Q_(e,t),e.prototype.init=function(){var t=this;this.services.events.addEventListener(ft.Model.UPDATE,(function(){t.pendingTransitions={}}))},e.prototype.setupTransition=function(t){var e=this,n=t.transition,r=t.name,i=t.animate;return this.pendingTransitions[n._id]=n,n.on("end interrupt cancel",(function(){delete e.pendingTransitions[n._id]})),!1===this.model.getOptions().animations||!1===i?n.duration(0):n.duration(_d.getProperty(Lt,r,"duration")||Lt.default.duration)},e.prototype.getPendingTransitions=function(){return this.pendingTransitions},e}(Vm),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.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").remove(),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}(Vm);const nb=1e3,rb=60*nb,ib=60*rb,ob=24*ib,ab=7*ob,sb=30*ob,ub=365*ob;var cb=new Date,lb=new Date;function hb(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 hb((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 cb.setTime(+e),lb.setTime(+r),t(cb),t(lb),Math.floor(n(cb,lb))},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 fb=hb((function(){}),(function(t,e){t.setTime(+t+e)}),(function(t,e){return e-t}));fb.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?hb((function(e){e.setTime(Math.floor(e/t)*t)}),(function(e,n){e.setTime(+e+n*t)}),(function(e,n){return(n-e)/t})):fb:null};var pb=fb,db=(fb.range,hb((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,e){t.setTime(+t+e*nb)}),(function(t,e){return(e-t)/nb}),(function(t){return t.getUTCSeconds()}))),vb=db,gb=(db.range,hb((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*nb)}),(function(t,e){t.setTime(+t+e*rb)}),(function(t,e){return(e-t)/rb}),(function(t){return t.getMinutes()}))),mb=gb,yb=(gb.range,hb((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*nb-t.getMinutes()*rb)}),(function(t,e){t.setTime(+t+e*ib)}),(function(t,e){return(e-t)/ib}),(function(t){return t.getHours()}))),_b=yb,bb=(yb.range,hb(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*rb)/ob,t=>t.getDate()-1)),Ob=bb;bb.range;function wb(t){return hb((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())*rb)/ab}))}var xb=wb(0),Eb=wb(1),Sb=wb(2),Tb=wb(3),Mb=wb(4),Cb=wb(5),Ab=wb(6),Pb=(xb.range,Eb.range,Sb.range,Tb.range,Mb.range,Cb.range,Ab.range,hb((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()}))),Lb=Pb,Db=(Pb.range,hb((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()})));Db.every=function(t){return isFinite(t=Math.floor(t))&&t>0?hb((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 kb=Db,Rb=(Db.range,hb((function(t){t.setUTCSeconds(0,0)}),(function(t,e){t.setTime(+t+e*rb)}),(function(t,e){return(e-t)/rb}),(function(t){return t.getUTCMinutes()}))),Ib=Rb,Nb=(Rb.range,hb((function(t){t.setUTCMinutes(0,0,0)}),(function(t,e){t.setTime(+t+e*ib)}),(function(t,e){return(e-t)/ib}),(function(t){return t.getUTCHours()}))),jb=Nb,Bb=(Nb.range,hb((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/ob}),(function(t){return t.getUTCDate()-1}))),Ub=Bb;Bb.range;function Vb(t){return hb((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)/ab}))}var Gb=Vb(0),Hb=Vb(1),zb=Vb(2),Fb=Vb(3),Wb=Vb(4),qb=Vb(5),Yb=Vb(6),Zb=(Gb.range,Hb.range,zb.range,Fb.range,Wb.range,qb.range,Yb.range,hb((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()}))),Xb=Zb,Kb=(Zb.range,hb((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()})));Kb.every=function(t){return isFinite(t=Math.floor(t))&&t>0?hb((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 $b=Kb;Kb.range;function Qb(t,e,n,r,i,o){const a=[[vb,1,nb],[vb,5,5*nb],[vb,15,15*nb],[vb,30,30*nb],[o,1,rb],[o,5,5*rb],[o,15,15*rb],[o,30,30*rb],[i,1,ib],[i,3,3*ib],[i,6,6*ib],[i,12,12*ib],[r,1,ob],[r,2,2*ob],[n,1,ab],[e,1,sb],[e,3,3*sb],[t,1,ub]];function s(t,e,n){const r=e<t;r&&([t,e]=[e,t]);const i=n&&"function"===typeof n.range?n:u(t,e,n),o=i?i.range(t,+e+1):[];return r?o.reverse():o}function u(e,n,r){const i=Math.abs(n-e)/r,o=Av(([,,t])=>t).right(a,i);if(o===a.length)return t.every(Fv(e/ub,n/ub,r));if(0===o)return pb.every(Math.max(Fv(e,n,r),1));const[s,u]=a[i/a[o-1][2]<a[o][2]/i?o-1:o];return s.every(u)}return[s,u]}const[Jb,tO]=Qb($b,Xb,Gb,Ub,jb,Ib),[eO,nO]=Qb(kb,Lb,xb,Ob,_b,mb);function rO(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 iO(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 oO(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}function aO(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=vO(i),l=gO(i),h=vO(o),f=gO(o),p=vO(a),d=gO(a),v=vO(s),g=gO(s),m=vO(u),y=gO(u),_={a:k,A:R,b:I,B:N,c:null,d:jO,e:jO,f:HO,g:JO,G:ew,H:BO,I:UO,j:VO,L:GO,m:zO,M:FO,p:j,q:B,Q:Ew,s:Sw,S:WO,u:qO,U:YO,V:XO,w:KO,W:$O,x:null,X:null,y:QO,Y:tw,Z:nw,"%":xw},b={a:U,A:V,b:G,B:H,c:null,d:rw,e:rw,f:uw,g:_w,G:Ow,H:iw,I:ow,j:aw,L:sw,m:cw,M:lw,p:z,q:F,Q:Ew,s:Sw,S:hw,u:fw,U:pw,V:vw,w:gw,W:mw,x:null,X:null,y:yw,Y:bw,Z:ww,"%":xw},O={a:T,A:M,b:C,B:A,c:P,d:MO,e:MO,f:kO,g:xO,G:wO,H:AO,I:AO,j:CO,L:DO,m:TO,M:PO,p:S,q:SO,Q:IO,s:NO,S:LO,u:yO,U:_O,V:bO,w:mO,W:OO,x:L,X:D,y:xO,Y:wO,Z:EO,"%":RO};function w(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=cO[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 x(t,e){return function(n){var r,i,o=oO(1900,void 0,1),a=E(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=iO(oO(o.y,0,1)),i=r.getUTCDay(),r=i>4||0===i?Hb.ceil(r):Hb(r),r=Ub.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(r=rO(oO(o.y,0,1)),i=r.getDay(),r=i>4||0===i?Eb.ceil(r):Eb(r),r=Ob.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?iO(oO(o.y,0,1)).getUTCDay():rO(oO(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,iO(o)):rO(o)}}function E(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=O[i in cO?e.charAt(a++):i],!o||(r=o(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}function S(t,e,n){var r=c.exec(e.slice(n));return r?(t.p=l.get(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.get(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.get(r[0].toLowerCase()),n+r[0].length):-1}function C(t,e,n){var r=m.exec(e.slice(n));return r?(t.m=y.get(r[0].toLowerCase()),n+r[0].length):-1}function A(t,e,n){var r=v.exec(e.slice(n));return r?(t.m=g.get(r[0].toLowerCase()),n+r[0].length):-1}function P(t,n,r){return E(t,e,n,r)}function L(t,e,r){return E(t,n,e,r)}function D(t,e,n){return E(t,r,e,n)}function k(t){return a[t.getDay()]}function R(t){return o[t.getDay()]}function I(t){return u[t.getMonth()]}function N(t){return s[t.getMonth()]}function j(t){return i[+(t.getHours()>=12)]}function B(t){return 1+~~(t.getMonth()/3)}function U(t){return a[t.getUTCDay()]}function V(t){return o[t.getUTCDay()]}function G(t){return u[t.getUTCMonth()]}function H(t){return s[t.getUTCMonth()]}function z(t){return i[+(t.getUTCHours()>=12)]}function F(t){return 1+~~(t.getUTCMonth()/3)}return(_.x=w(n,_),_.X=w(r,_),_.c=w(e,_),b.x=w(n,b),b.X=w(r,b),b.c=w(e,b),{format:function(t){var e=w(t+="",_);return e.toString=function(){return t},e},parse:function(t){var e=x(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=w(t+="",b);return e.toString=function(){return t},e},utcParse:function(t){var e=x(t+="",!0);return e.toString=function(){return t},e}})}var sO,uO,cO={"-":"",_:" ",0:"0"},lO=/^\s*\d+/,hO=/^%/,fO=/[\\^$*+?|[\]().{}]/g;function pO(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 dO(t){return t.replace(fO,"\\$&")}function vO(t){return new RegExp("^(?:"+t.map(dO).join("|")+")","i")}function gO(t){return new Map(t.map((t,e)=>[t.toLowerCase(),e]))}function mO(t,e,n){var r=lO.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function yO(t,e,n){var r=lO.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function _O(t,e,n){var r=lO.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function bO(t,e,n){var r=lO.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function OO(t,e,n){var r=lO.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function wO(t,e,n){var r=lO.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function xO(t,e,n){var r=lO.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function EO(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 SO(t,e,n){var r=lO.exec(e.slice(n,n+1));return r?(t.q=3*r[0]-3,n+r[0].length):-1}function TO(t,e,n){var r=lO.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function MO(t,e,n){var r=lO.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function CO(t,e,n){var r=lO.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function AO(t,e,n){var r=lO.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function PO(t,e,n){var r=lO.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function LO(t,e,n){var r=lO.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function DO(t,e,n){var r=lO.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function kO(t,e,n){var r=lO.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function RO(t,e,n){var r=hO.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function IO(t,e,n){var r=lO.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function NO(t,e,n){var r=lO.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function jO(t,e){return pO(t.getDate(),e,2)}function BO(t,e){return pO(t.getHours(),e,2)}function UO(t,e){return pO(t.getHours()%12||12,e,2)}function VO(t,e){return pO(1+Ob.count(kb(t),t),e,3)}function GO(t,e){return pO(t.getMilliseconds(),e,3)}function HO(t,e){return GO(t,e)+"000"}function zO(t,e){return pO(t.getMonth()+1,e,2)}function FO(t,e){return pO(t.getMinutes(),e,2)}function WO(t,e){return pO(t.getSeconds(),e,2)}function qO(t){var e=t.getDay();return 0===e?7:e}function YO(t,e){return pO(xb.count(kb(t)-1,t),e,2)}function ZO(t){var e=t.getDay();return e>=4||0===e?Mb(t):Mb.ceil(t)}function XO(t,e){return t=ZO(t),pO(Mb.count(kb(t),t)+(4===kb(t).getDay()),e,2)}function KO(t){return t.getDay()}function $O(t,e){return pO(Eb.count(kb(t)-1,t),e,2)}function QO(t,e){return pO(t.getFullYear()%100,e,2)}function JO(t,e){return t=ZO(t),pO(t.getFullYear()%100,e,2)}function tw(t,e){return pO(t.getFullYear()%1e4,e,4)}function ew(t,e){var n=t.getDay();return t=n>=4||0===n?Mb(t):Mb.ceil(t),pO(t.getFullYear()%1e4,e,4)}function nw(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+pO(e/60|0,"0",2)+pO(e%60,"0",2)}function rw(t,e){return pO(t.getUTCDate(),e,2)}function iw(t,e){return pO(t.getUTCHours(),e,2)}function ow(t,e){return pO(t.getUTCHours()%12||12,e,2)}function aw(t,e){return pO(1+Ub.count($b(t),t),e,3)}function sw(t,e){return pO(t.getUTCMilliseconds(),e,3)}function uw(t,e){return sw(t,e)+"000"}function cw(t,e){return pO(t.getUTCMonth()+1,e,2)}function lw(t,e){return pO(t.getUTCMinutes(),e,2)}function hw(t,e){return pO(t.getUTCSeconds(),e,2)}function fw(t){var e=t.getUTCDay();return 0===e?7:e}function pw(t,e){return pO(Gb.count($b(t)-1,t),e,2)}function dw(t){var e=t.getUTCDay();return e>=4||0===e?Wb(t):Wb.ceil(t)}function vw(t,e){return t=dw(t),pO(Wb.count($b(t),t)+(4===$b(t).getUTCDay()),e,2)}function gw(t){return t.getUTCDay()}function mw(t,e){return pO(Hb.count($b(t)-1,t),e,2)}function yw(t,e){return pO(t.getUTCFullYear()%100,e,2)}function _w(t,e){return t=dw(t),pO(t.getUTCFullYear()%100,e,2)}function bw(t,e){return pO(t.getUTCFullYear()%1e4,e,4)}function Ow(t,e){var n=t.getUTCDay();return t=n>=4||0===n?Wb(t):Wb.ceil(t),pO(t.getUTCFullYear()%1e4,e,4)}function ww(){return"+0000"}function xw(){return"%"}function Ew(t){return+t}function Sw(t){return Math.floor(+t/1e3)}function Tw(t){return sO=aO(t),uO=sO.format,sO.parse,sO.utcFormat,sO.utcParse,sO}Tw({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 Mw=function(t,e,n){t.prototype=e.prototype=n,n.constructor=t};function Cw(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function Aw(){}var Pw=.7,Lw=1/Pw,Dw="\\s*([+-]?\\d+)\\s*",kw="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Rw="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Iw=/^#([0-9a-f]{3,8})$/,Nw=new RegExp("^rgb\\("+[Dw,Dw,Dw]+"\\)$"),jw=new RegExp("^rgb\\("+[Rw,Rw,Rw]+"\\)$"),Bw=new RegExp("^rgba\\("+[Dw,Dw,Dw,kw]+"\\)$"),Uw=new RegExp("^rgba\\("+[Rw,Rw,Rw,kw]+"\\)$"),Vw=new RegExp("^hsl\\("+[kw,Rw,Rw]+"\\)$"),Gw=new RegExp("^hsla\\("+[kw,Rw,Rw,kw]+"\\)$"),Hw={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 zw(){return this.rgb().formatHex()}function Fw(){return nx(this).formatHsl()}function Ww(){return this.rgb().formatRgb()}function qw(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=Iw.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?Yw(e):3===n?new $w(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?Zw(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?Zw(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=Nw.exec(t))?new $w(e[1],e[2],e[3],1):(e=jw.exec(t))?new $w(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Bw.exec(t))?Zw(e[1],e[2],e[3],e[4]):(e=Uw.exec(t))?Zw(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Vw.exec(t))?ex(e[1],e[2]/100,e[3]/100,1):(e=Gw.exec(t))?ex(e[1],e[2]/100,e[3]/100,e[4]):Hw.hasOwnProperty(t)?Yw(Hw[t]):"transparent"===t?new $w(NaN,NaN,NaN,0):null}function Yw(t){return new $w(t>>16&255,t>>8&255,255&t,1)}function Zw(t,e,n,r){return r<=0&&(t=e=n=NaN),new $w(t,e,n,r)}function Xw(t){return t instanceof Aw||(t=qw(t)),t?(t=t.rgb(),new $w(t.r,t.g,t.b,t.opacity)):new $w}function Kw(t,e,n,r){return 1===arguments.length?Xw(t):new $w(t,e,n,null==r?1:r)}function $w(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function Qw(){return"#"+tx(this.r)+tx(this.g)+tx(this.b)}function Jw(){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 tx(t){return t=Math.max(0,Math.min(255,Math.round(t)||0)),(t<16?"0":"")+t.toString(16)}function ex(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new ix(t,e,n,r)}function nx(t){if(t instanceof ix)return new ix(t.h,t.s,t.l,t.opacity);if(t instanceof Aw||(t=qw(t)),!t)return new ix;if(t instanceof ix)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 ix(a,s,u,t.opacity)}function rx(t,e,n,r){return 1===arguments.length?nx(t):new ix(t,e,n,null==r?1:r)}function ix(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function ox(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 ax(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}Mw(Aw,qw,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:zw,formatHex:zw,formatHsl:Fw,formatRgb:Ww,toString:Ww}),Mw($w,Kw,Cw(Aw,{brighter:function(t){return t=null==t?Lw:Math.pow(Lw,t),new $w(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?Pw:Math.pow(Pw,t),new $w(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:Qw,formatHex:Qw,formatRgb:Jw,toString:Jw})),Mw(ix,rx,Cw(Aw,{brighter:function(t){return t=null==t?Lw:Math.pow(Lw,t),new ix(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?Pw:Math.pow(Pw,t),new ix(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 $w(ox(t>=240?t-240:t+120,i,r),ox(t,i,r),ox(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 sx=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 ax((n-r/e)*e,a,i,o,s)}},ux=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 ax((n-r/e)*e,i,o,a,s)}},cx=t=>()=>t;function lx(t,e){return function(n){return t+n*e}}function hx(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 fx(t){return 1===(t=+t)?px:function(e,n){return n-e?hx(e,n,t):cx(isNaN(e)?n:e)}}function px(t,e){var n=e-t;return n?lx(t,n):cx(isNaN(t)?e:t)}var dx=function t(e){var n=fx(e);function r(t,e){var r=n((t=Kw(t)).r,(e=Kw(e)).r),i=n(t.g,e.g),o=n(t.b,e.b),a=px(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 vx(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=Kw(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+""}}}vx(sx),vx(ux);var gx=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 mx(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function yx(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]=Mx(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 _x=function(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}},bx=function(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}},Ox=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]=Mx(t[n],e[n]):i[n]=e[n];return function(t){for(n in r)i[n]=r[n](t);return i}},wx=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,xx=new RegExp(wx.source,"g");function Ex(t){return function(){return t}}function Sx(t){return function(e){return t(e)+""}}var Tx=function(t,e){var n,r,i,o=wx.lastIndex=xx.lastIndex=0,a=-1,s=[],u=[];t+="",e+="";while((n=wx.exec(t))&&(r=xx.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:bx(n,r)})),o=xx.lastIndex;return o<e.length&&(i=e.slice(o),s[a]?s[a]+=i:s[++a]=i),s.length<2?u[0]?Sx(u[0].x):Ex(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("")})},Mx=function(t,e){var n,r=typeof e;return null==e||"boolean"===r?cx(e):("number"===r?bx:"string"===r?(n=qw(e))?(e=n,dx):Tx:e instanceof qw?dx:e instanceof Date?_x:mx(e)?gx:Array.isArray(e)?yx:"function"!==typeof e.valueOf&&"function"!==typeof e.toString||isNaN(e)?Ox:bx)(t,e)},Cx=function(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}};function Ax(t){return function(){return t}}function Px(t){return+t}var Lx=[0,1];function Dx(t){return t}function kx(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:Ax(isNaN(e)?NaN:.5)}function Rx(t,e){var n;return t>e&&(n=t,t=e,e=n),function(n){return Math.max(t,Math.min(e,n))}}function Ix(t,e,n){var r=t[0],i=t[1],o=e[0],a=e[1];return i<r?(r=kx(i,r),o=n(a,o)):(r=kx(r,i),o=n(o,a)),function(t){return o(r(t))}}function Nx(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]=kx(t[a],t[a+1]),o[a]=n(e[a],e[a+1]);return function(e){var n=Iv(t,e,1,r)-1;return o[n](i[n](e))}}function jx(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function Bx(){var t,e,n,r,i,o,a=Lx,s=Lx,u=Mx,c=Dx;function l(){var t=Math.min(a.length,s.length);return c!==Dx&&(c=Rx(a[0],a[t-1])),r=t>2?Nx:Ix,i=o=null,h}function h(e){return null==e||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),bx)))(n)))},h.domain=function(t){return arguments.length?(a=Array.from(t,Px),l()):a.slice()},h.range=function(t){return arguments.length?(s=Array.from(t),l()):s.slice()},h.rangeRound=function(t){return s=Array.from(t),u=Cx,l()},h.clamp=function(t){return arguments.length?(c=!!t||Dx,l()):c!==Dx},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 Ux(){return Bx()(Dx,Dx)}function Vx(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 Gx(t){return new Date(t)}function Hx(t){return t instanceof Date?+t:+new Date(+t)}function zx(t,e,n,r,i,o,a,s,u,c){var l=Ux(),h=l.invert,f=l.domain,p=c(".%L"),d=c(":%S"),v=c("%I:%M"),g=c("%I %p"),m=c("%a %d"),y=c("%b %d"),_=c("%B"),b=c("%Y");function O(t){return(u(t)<t?p:s(t)<t?d:a(t)<t?v:o(t)<t?g:r(t)<t?i(t)<t?m:y:n(t)<t?_:b)(t)}return l.invert=function(t){return new Date(h(t))},l.domain=function(t){return arguments.length?f(Array.from(t,Hx)):f().map(Gx)},l.ticks=function(e){var n=f();return t(n[0],n[n.length-1],null==e?10:e)},l.tickFormat=function(t,e){return null==e?O:c(e)},l.nice=function(t){var n=f();return t&&"function"===typeof t.range||(t=e(n[0],n[n.length-1],null==t?10:t)),t?f(Vx(n,t)):l},l.copy=function(){return jx(l,zx(t,e,n,r,i,o,a,s,u,c))},l}function Fx(){return dv.apply(zx(eO,nO,kb,Lb,xb,Ob,_b,mb,vb,uO).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}var Wx=function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)};function qx(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)]}var Yx=function(t){return t=qx(Math.abs(t)),t?t[1]:NaN},Zx=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)}},Xx=function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}},Kx=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function $x(t){if(!(e=Kx.exec(t)))throw new Error("invalid format: "+t);var e;return new Qx({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 Qx(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+""}$x.prototype=Qx.prototype,Qx.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 Jx,tE,eE,nE,rE=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},iE=function(t,e){var n=qx(t,e);if(!n)return t+"";var r=n[0],i=n[1],o=i-(Jx=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")+qx(t,Math.max(0,e+o-1))[0]},oE=function(t,e){var n=qx(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")},aE={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:Wx,e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>oE(100*t,e),r:oE,s:iE,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)},sE=function(t){return t},uE=Array.prototype.map,cE=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"],lE=function(t){var e=void 0===t.grouping||void 0===t.thousands?sE:Zx(uE.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?sE:Xx(uE.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=$x(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"):aE[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:"",O=aE[y],w=/[defgprs%]/.test(y);function x(t){var n,r,a,f=_,x=b;if("c"===y)x=O(t)+x,t="";else{t=+t;var E=t<0||1/t<0;if(t=isNaN(t)?u:O(Math.abs(t),g),m&&(t=rE(t)),E&&0===+t&&"+"!==h&&(E=!1),f=(E?"("===h?h:s:"-"===h||"("===h?"":h)+f,x=("s"===y?cE[8+Jx/3]:"")+x+(E&&"("===h?")":""),w){n=-1,r=t.length;while(++n<r)if(a=t.charCodeAt(n),48>a||a>57){x=(46===a?i+t.slice(n+1):t.slice(n))+x,t=t.slice(0,n);break}}}v&&!p&&(t=e(t,1/0));var S=f.length+t.length+x.length,T=S<d?new Array(d-S+1).join(c):"";switch(v&&p&&(t=e(T+t,T.length?d-x.length:1/0),T=""),l){case"<":t=f+t+x+T;break;case"=":t=f+T+t+x;break;case"^":t=T.slice(0,S=T.length>>1)+f+t+x+T.slice(S);break;default:t=T+f+t+x;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)),x.toString=function(){return t+""},x}function l(t,e){var n=c((t=$x(t),t.type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(Yx(e)/3))),i=Math.pow(10,-r),o=cE[8+r/3];return function(t){return n(i*t)+o}}return{format:c,formatPrefix:l}};function hE(t){return tE=lE(t),eE=tE.format,nE=tE.formatPrefix,tE}function fE(t){return Math.log(t)}function pE(t){return Math.exp(t)}function dE(t){return-Math.log(-t)}function vE(t){return-Math.exp(-t)}function gE(t){return isFinite(t)?+("1e"+t):t<0?0:t}function mE(t){return 10===t?gE:t===Math.E?Math.exp:function(e){return Math.pow(t,e)}}function yE(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 _E(t){return function(e){return-t(-e)}}function bE(t){var e,n,r=t(fE,pE),i=r.domain,o=10;function a(){return e=yE(o),n=mE(o),i()[0]<0?(e=_E(e),n=_E(n),t(dE,vE)):t(fE,pE),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.floor(f),p=Math.ceil(p),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)}2*v.length<d&&(v=Hv(s,u,d))}else v=Hv(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=eE(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(Vx(i(),{floor:function(t){return n(Math.floor(e(t)))},ceil:function(t){return n(Math.ceil(e(t)))}}))},r}function OE(){var t=bE(Bx()).domain([1,10]);return t.copy=function(){return jx(t,OE()).base(t.base())},dv.apply(t,arguments),t}hE({thousands:",",grouping:[3],currency:["$",""]});var wE=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};function xE(){var t,e,n=gv().unknown(void 0),r=n.domain,i=n.range,o=0,a=1,s=!1,u=0,c=0,l=.5;function h(){var n=r().length,h=a<o,f=h?a:o,p=h?o:a;t=(p-f)/Math.max(1,n-u+2*c),s&&(t=Math.floor(t)),f+=(p-f-t*(n-u))*l,e=t*(1-u),s&&(f=Math.round(f),e=Math.round(e));var d=wE(n).map((function(e){return f+t*e}));return i(h?d.reverse():d)}return delete n.unknown,n.domain=function(t){return arguments.length?(r(t),h()):r()},n.range=function(t){return arguments.length?([o,a]=t,o=+o,a=+a,h()):[o,a]},n.rangeRound=function(t){return[o,a]=t,o=+o,a=+a,s=!0,h()},n.bandwidth=function(){return e},n.step=function(){return t},n.round=function(t){return arguments.length?(s=!!t,h()):s},n.padding=function(t){return arguments.length?(u=Math.min(1,c=+t),h()):u},n.paddingInner=function(t){return arguments.length?(u=Math.min(1,t),h()):u},n.paddingOuter=function(t){return arguments.length?(c=+t,h()):c},n.align=function(t){return arguments.length?(l=Math.max(0,Math.min(1,t)),h()):l},n.copy=function(){return xE(r(),[o,a]).round(s).paddingInner(u).paddingOuter(c).align(l)},dv.apply(h(),arguments)}var EE=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Yx(e)/3)))-Yx(Math.abs(t)))},SE=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,Yx(e)-Yx(t))+1},TE=function(t){return Math.max(0,-Yx(Math.abs(t)))};function ME(t,e,n,r){var i,o=Fv(t,e,n);switch(r=$x(null==r?",f":r),r.type){case"s":var a=Math.max(Math.abs(t),Math.abs(e));return null!=r.precision||isNaN(i=EE(o,a))||(r.precision=i),nE(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=SE(o,Math.max(Math.abs(t),Math.abs(e))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=TE(o))||(r.precision=i-2*("%"===r.type));break}return eE(r)}function CE(t){var e=t.domain;return t.ticks=function(t){var n=e();return Hv(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var r=e();return ME(r[0],r[r.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10);var r,i,o=e(),a=0,s=o.length-1,u=o[a],c=o[s],l=10;c<u&&(i=u,u=c,c=i,i=a,a=s,s=i);while(l-- >0){if(i=zv(u,c,n),i===r)return o[a]=u,o[s]=c,e(o);if(i>0)u=Math.floor(u/i)*i,c=Math.ceil(c/i)*i;else{if(!(i<0))break;u=Math.ceil(u*i)/i,c=Math.floor(c*i)/i}r=i}return t},t}function AE(){var t=Ux();return t.copy=function(){return jx(t,AE())},dv.apply(t,arguments),CE(t)}function PE(t,e){let n;if(void 0===e)for(const r of t)null!=r&&(n<r||void 0===n&&r>=r)&&(n=r);else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(n<i||void 0===n&&i>=i)&&(n=i)}return n}function LE(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Xv(t),r=Xv(e);return n.getFullYear()-r.getFullYear()}function DE(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Xv(t),r=Xv(e),i=n.getTime()-r.getTime();return i<0?-1:i>0?1:i}function kE(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Xv(t),r=Xv(e),i=DE(n,r),o=Math.abs(LE(n,r));n.setFullYear(n.getFullYear()-i*o);var a=DE(n,r)===-i,s=i*(o-a);return 0===s?0:s}function RE(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=Xv(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 IE(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Xv(t),r=jg(e),i=n.getMonth()+r,o=new Date(0);o.setFullYear(n.getFullYear(),i,1),o.setHours(0,0,0,0);var a=RE(o);return n.setMonth(i,Math.min(a,n.getDate())),n}function NE(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=jg(e);return IE(t,12*n)}function jE(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=jg(e);return NE(t,-n)}function BE(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Xv(t),r=Xv(e),i=n.getFullYear()-r.getFullYear(),o=n.getMonth()-r.getMonth();return 12*i+o}function UE(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Xv(t),r=Xv(e),i=DE(n,r),o=Math.abs(BE(n,r));n.setMonth(n.getMonth()-i*o);var a=DE(n,r)===-i,s=i*(o-a);return 0===s?0:s}function VE(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=jg(e);return IE(t,-n)}function GE(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=Xv(t);return e.setHours(0,0,0,0),e}var HE=864e5;function zE(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=GE(t),r=GE(e),i=n.getTime()-pm(n),o=r.getTime()-pm(r);return Math.round((i-o)/HE)}function FE(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Xv(t),r=Xv(e),i=DE(n,r),o=Math.abs(zE(n,r));n.setDate(n.getDate()-i*o);var a=DE(n,r)===-i,s=i*(o-a);return 0===s?0:s}function WE(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Xv(t),r=jg(e);return n.setDate(n.getDate()+r),n}function qE(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=jg(e);return WE(t,-n)}function YE(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Xv(t),r=Xv(e);return n.getTime()-r.getTime()}var ZE=36e5;function XE(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=YE(t,e)/ZE;return n>0?Math.floor(n):Math.ceil(n)}var KE=36e5;function $E(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=jg(e);return Bg(t,n*KE)}function QE(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=jg(e);return $E(t,-n)}var JE=6e4;function tS(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=YE(t,e)/JE;return n>0?Math.floor(n):Math.ceil(n)}var eS=6e4;function nS(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=jg(e);return Bg(t,n*eS)}function rS(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=jg(e);return nS(t,-n)}function iS(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=YE(t,e)/1e3;return n>0?Math.floor(n):Math.ceil(n)}function oS(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=jg(e);return Bg(t,1e3*n)}function aS(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=jg(e);return oS(t,-n)}var sS=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)}}(),uS=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n},cS=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},lS=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 sS(e,t),e.prototype.getDomainAxisPosition=function(t){var e,n=(void 0===t?{}:t).datum,r=void 0===n?null:n;if(this.dualAxes&&r){var i=this.model.getOptions(),o=i.data.groupMapsTo,a=_d.getProperty(i,"axes",this.secondaryDomainAxisPosition),s=r[o];if((null===(e=a)||void 0===e?void 0:e.correspondingDatasets)&&a.correspondingDatasets.includes(s))return this.secondaryDomainAxisPosition}return this.domainAxisPosition},e.prototype.getRangeAxisPosition=function(t){var e,n=void 0===t?{}:t,r=n.datum,i=void 0===r?null:r,o=n.groups,a=void 0===o?null:o;if(this.dualAxes){var s=this.model.getOptions(),u=s.data.groupMapsTo,c=_d.getProperty(s,"axes",this.secondaryRangeAxisPosition),l=void 0;if(null!==i?l=i[u]:a&&a.length>0&&(l=a[0]),(null===(e=c)||void 0===e?void 0:e.correspondingDatasets)&&c.correspondingDatasets.includes(l))return this.secondaryRangeAxisPosition}return this.rangeAxisPosition},e.prototype.getAxisOptions=function(t){return _d.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.getScaleLabel=function(t){var e=this.getAxisOptions(t),n=e.title;return n||(t===B.BOTTOM||t===B.TOP?"x-value":"y-value")},e.prototype.getDomainLabel=function(){return this.getScaleLabel(this.getDomainAxisPosition())},e.prototype.getRangeLabel=function(){return this.getScaleLabel(this.getRangeAxisPosition())},e.prototype.update=function(t){var e=this;void 0===t&&(t=!0),this.determineAxisDuality(),this.findDomainAndRangeAxes(),this.determineOrientation();var n=Object.keys(B).map((function(t){return B[t]}));n.forEach((function(t){e.scales[t]=e.createScale(t)}))},e.prototype.findDomainAndRangeAxes=function(){var t=this.findVerticalAxesPositions(),e=this.findHorizontalAxesPositions(),n=this.findDomainAndRangeAxesPositions(t,e);this.domainAxisPosition=n.primaryDomainAxisPosition,this.rangeAxisPosition=n.primaryRangeAxisPosition,this.isDualAxes()&&(this.secondaryDomainAxisPosition=n.secondaryDomainAxisPosition,this.secondaryRangeAxisPosition=n.secondaryRangeAxisPosition)},e.prototype.determineOrientation=function(){this.rangeAxisPosition!==B.LEFT&&this.rangeAxisPosition!==B.RIGHT||this.domainAxisPosition!==B.BOTTOM&&this.domainAxisPosition!==B.TOP?this.orientation=G.HORIZONTAL:this.orientation=G.VERTICAL},e.prototype.isDualAxes=function(){return this.dualAxes},e.prototype.determineAxisDuality=function(){var t,e,n,r,i=this.model.getOptions(),o=_d.getProperty(i,"axes");((null===(t=o[B.LEFT])||void 0===t?void 0:t.correspondingDatasets)&&o[B.RIGHT]||(null===(e=o[B.RIGHT])||void 0===e?void 0:e.correspondingDatasets)&&o[B.LEFT]||(null===(n=o[B.TOP])||void 0===n?void 0:n.correspondingDatasets)&&o[B.BOTTOM]||(null===(r=o[B.BOTTOM])||void 0===r?void 0:r.correspondingDatasets)&&o[B.TOP])&&(this.dualAxes=!0)},e.prototype.getCustomDomainValuesByposition=function(t){var e=_d.getProperty(this.model.getOptions(),"axes",t,"domain");if(e&&!Array.isArray(e))throw new Error("Domain in "+t+" axis is not a valid array");if(Array.isArray(e)&&(this.scaleTypes[t]===H.LINEAR||this.scaleTypes[t]===H.TIME)&&2!==e.length)throw new Error("There can only be 2 elements in domain for scale type: "+this.scaleTypes[t]);return e},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=[B.BOTTOM,B.TOP];return[this.domainAxisPosition,this.rangeAxisPosition].find((function(e){return t.indexOf(e)>-1}))},e.prototype.getMainYAxisPosition=function(){var t=[B.LEFT,B.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=_d.getProperty(a,"axes"),u=s[n],c=u.mapsTo,l=null!==_d.getProperty(r,c)?r[c]:r;switch(e){case H.LABELS:o=t(l)+t.step()/2;break;case H.TIME:o=t(new Date(l));break;default:o=t(l)}return o},e.prototype.getBoundedScaledValues=function(t,e){var n=this.model.getOptions().bounds,r=this.getRangeAxisPosition({datum:t}),i=this.scales[r],o=this.model.getOptions(),a=_d.getProperty(o,"axes"),s=a[r],u=s.mapsTo,c=void 0!==t[u]?t[u]:t,l=[i(null!==_d.getProperty(t,n.upperBoundMapsTo)?t[n.upperBoundMapsTo]:c),i(null!==_d.getProperty(t,n.lowerBoundMapsTo)?t[n.lowerBoundMapsTo]:c)];return l},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){var n=this.getDomainAxisPosition({datum:t});return this.getValueThroughAxisPosition(n,t,e)},e.prototype.getRangeValue=function(t,e){var n=this.getRangeAxisPosition({datum:t});return this.getValueThroughAxisPosition(n,t,e)},e.prototype.getMainXScaleType=function(){return this.getScaleTypeByPosition(this.getMainXAxisPosition())},e.prototype.getMainYScaleType=function(){return this.getScaleTypeByPosition(this.getMainYAxisPosition())},e.prototype.getDomainIdentifier=function(t){var e=this.model.getOptions();return _d.getProperty(e,"axes",this.getDomainAxisPosition({datum:t}),"mapsTo")},e.prototype.getRangeIdentifier=function(t){var e=this.model.getOptions();return _d.getProperty(e,"axes",this.getRangeAxisPosition({datum:t}),"mapsTo")},e.prototype.extendsDomain=function(t,e){var n=this.model.getOptions(),r=_d.getProperty(n,"axes",t);if(r.scaleType===H.TIME){var i=_d.getProperty(n,"timeScale","addSpaceOnEdges");return hS(e,i)}return fS(e,gt.paddingRatio,r.scaleType)},e.prototype.findVerticalAxesPositions=function(){var t=this.model.getOptions(),e=_d.getProperty(t,"axes"),n=this.isDualAxes();return null===_d.getProperty(e,B.LEFT)&&null!==_d.getProperty(e,B.RIGHT)||!0===_d.getProperty(e,B.RIGHT,"main")||n&&_d.getProperty(e,B.LEFT,"correspondingDatasets")?{primary:B.RIGHT,secondary:B.LEFT}:{primary:B.LEFT,secondary:B.RIGHT}},e.prototype.findHorizontalAxesPositions=function(){var t=this.model.getOptions(),e=_d.getProperty(t,"axes"),n=this.isDualAxes();return null===_d.getProperty(e,B.BOTTOM)&&null!==_d.getProperty(e,B.TOP)||!0===_d.getProperty(e,B.TOP,"main")||n&&_d.getProperty(e,B.BOTTOM,"correspondingDatasets")?{primary:B.TOP,secondary:B.BOTTOM}:{primary:B.BOTTOM,secondary:B.TOP}},e.prototype.findDomainAndRangeAxesPositions=function(t,e){var n=this.model.getOptions(),r=_d.getProperty(n,"axes",t.primary),i=_d.getProperty(n,"axes",e.primary),o=r.scaleType||H.LINEAR,a=i.scaleType||H.LINEAR,s={primaryDomainAxisPosition:null,secondaryDomainAxisPosition:null,primaryRangeAxisPosition:null,secondaryRangeAxisPosition:null};return s.primaryDomainAxisPosition=e.primary,s.primaryRangeAxisPosition=t.primary,s.secondaryDomainAxisPosition=e.secondary,s.secondaryRangeAxisPosition=t.secondary,(a!==H.LABELS&&a!==H.TIME&&o===H.LABELS||o===H.TIME)&&(s.primaryDomainAxisPosition=t.primary,s.primaryRangeAxisPosition=e.primary,s.secondaryDomainAxisPosition=t.secondary,s.secondaryRangeAxisPosition=e.secondary),s},e.prototype.getScaleDomain=function(t){var e=this.model.getOptions(),n=_d.getProperty(e,"axes",t),r=_d.getProperty(e,"bounds"),i=n.includeZero,o=_d.getProperty(n,"scaleType")||H.LINEAR;if(this.model.isDataEmpty())return[];if(n.binned){var a=this.model.getBinConfigurations().bins;return[0,PE(a,(function(t){return t.length}))]}if(n.limitDomainToBins){a=this.model.getBinConfigurations().bins;var s=this.model.getStackKeys({bins:a});return[s[0].split("-")[0],s[s.length-1].split("-")[1]]}var u,c,l=this.model.getDisplayData(),h=n.extendLinearDomainBy,f=n.mapsTo,p=n.percentage,d=n.thresholds,v=gt.ratio,g=v.reference,m=v.compareTo;if(n.domain)return o===H.LABELS?n.domain:(o===H.TIME&&(n.domain=n.domain.map((function(t){return void 0===t.getTime?new Date(t):t}))),this.extendsDomain(t,n.domain));if(p)return[0,100];if(n&&o===H.LABELS)return _d.removeArrayDuplicates(l.map((function(t){return t[f]})));var y=this.model.getDataGroupNames();if(o===H.LABELS_RATIO)return l.map((function(t){return t[g]+"/"+t[m]}));if(o===H.TIME)c=l.map((function(t){return+new Date(t[f])}));else if(r&&e.axes)c=[],l.forEach((function(t){c.push(t[f]),t[r.upperBoundMapsTo]&&c.push(t[r.upperBoundMapsTo]),t[r.lowerBoundMapsTo]&&c.push(t[r.lowerBoundMapsTo])}));else if(!0===n.stacked&&y&&t===this.getRangeAxisPosition()){var _=e.data.groupMapsTo,b=this.model.getDataValuesGroupedByKeys({groups:y}),O=l.filter((function(t){return!y.includes(t[_])})),w=[];b.forEach((function(t){t.sharedStackKey;var e=uS(t,["sharedStackKey"]),n=0,r=0;Object.values(e).forEach((function(t){isNaN(t)||(t<0?r+=t:n+=t)})),w.push([r,n])})),c=cS(_d.flatten(w),O.map((function(t){return t[f]})))}else c=[],l.forEach((function(t){var e=t[f];Array.isArray(e)&&2===e.length?(c.push(e[0]),c.push(e[1])):(h&&c.push(Math.max(t[f],t[h])),c.push(e))}));return o!==H.TIME&&o!==H.LOG&&i&&c.push(0),d&&d.length>0&&d.forEach((function(t){var e=_d.getProperty(t,"value");null!==e&&c.push(e)})),u=jv(c),u=this.extendsDomain(t,u),u},e.prototype.createScale=function(t){var e=this.model.getOptions(),n=_d.getProperty(e,"axes",t);if(!n)return null;var r,i=_d.getProperty(n,"scaleType")||H.LINEAR;return this.scaleTypes[t]=i,r=i===H.TIME?Fx():i===H.LOG?OE().base(n.base||10):i===H.LABELS||i===H.LABELS_RATIO?xE():AE(),r.domain(this.getScaleDomain(t)),r},e.prototype.getHighestDomainThreshold=function(){var t=_d.getProperty(this.model.getOptions(),"axes"),e=this.getDomainAxisPosition(),n=t[e].thresholds;if(!Array.isArray(n)||Array.isArray(n)&&!n.length)return null;var r=this.getDomainScale(),i=n.sort((function(t,e){return e.value-t.value}))[0],o=this.getScaleTypeByPosition(e);return o!==H.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=_d.getProperty(this.model.getOptions(),"axes"),e=this.getRangeAxisPosition(),n=t[e].thresholds;if(!Array.isArray(n)||Array.isArray(n)&&!n.length)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}(Vm);function hS(t,e){var n=new Date(t[0]),r=new Date(t[1]);return kE(r,n)>1?[jE(n,e),NE(r,e)]:UE(r,n)>1?[VE(n,e),IE(r,e)]:FE(r,n)>1?[qE(n,e),WE(r,e)]:XE(r,n)>1?[QE(n,e),$E(r,e)]:tS(r,n)>30?[rS(n,30*e),nS(r,30*e)]:tS(r,n)>1?[rS(n,e),nS(r,e)]:iS(r,n)>15?[aS(n,15*e),oS(r,15*e)]:iS(r,n)>1?[aS(n,e),oS(r,e)]:[n,r]}function fS(t,e,n){var r=t[0],i=t[1],o=i-r,a=o*e,s=i<=0&&i+a>0?0:i+a,u=r>=0&&r-a<0?0:r-a;if(n===H.LOG&&u<=0){if(r<=0)throw Error("Data must have values greater than 0 if log scale type is used.");u=r}return[u,s]}function pS(t){this._context=t}pS.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 dS=function(t){return new pS(t)},vS=function(){};function gS(t){this._context=t}gS.prototype={areaStart:vS,areaEnd:vS,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 mS=function(t){return new gS(t)};function yS(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 _S(t){this._context=t}_S.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:yS(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:yS(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};var bS=function(t){return new _S(t)};function OS(t){this._context=t}OS.prototype={areaStart:vS,areaEnd:vS,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:yS(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};var wS=function(t){return new OS(t)};function xS(t){this._context=t}xS.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:yS(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};var ES=function(t){return new xS(t)};function SS(t,e){this._basis=new _S(t),this._beta=e}SS.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 TS=function t(e){function n(t){return 1===e?new _S(t):new SS(t,e)}return n.beta=function(e){return t(+e)},n}(.85);function MS(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 CS(t,e){this._context=t,this._k=(1-e)/6}CS.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:MS(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:MS(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 AS=function t(e){function n(t){return new CS(t,e)}return n.tension=function(e){return t(+e)},n}(0);function PS(t,e){this._context=t,this._k=(1-e)/6}PS.prototype={areaStart:vS,areaEnd:vS,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:MS(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 LS=function t(e){function n(t){return new PS(t,e)}return n.tension=function(e){return t(+e)},n}(0);function DS(t,e){this._context=t,this._k=(1-e)/6}DS.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:MS(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 kS=function t(e){function n(t){return new DS(t,e)}return n.tension=function(e){return t(+e)},n}(0),RS=Math.abs,IS=Math.atan2,NS=Math.cos,jS=Math.max,BS=Math.min,US=Math.sin,VS=Math.sqrt,GS=1e-12,HS=Math.PI,zS=HS/2,FS=2*HS;function WS(t){return t>1?0:t<-1?HS:Math.acos(t)}function qS(t){return t>=1?zS:t<=-1?-zS:Math.asin(t)}function YS(t,e,n){var r=t._x1,i=t._y1,o=t._x2,a=t._y2;if(t._l01_a>GS){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>GS){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 ZS(t,e){this._context=t,this._alpha=e}ZS.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:YS(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 XS=function t(e){function n(t){return e?new ZS(t,e):new CS(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function KS(t,e){this._context=t,this._alpha=e}KS.prototype={areaStart:vS,areaEnd:vS,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:YS(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 $S=function t(e){function n(t){return e?new KS(t,e):new PS(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function QS(t,e){this._context=t,this._alpha=e}QS.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:YS(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 JS=function t(e){function n(t){return e?new QS(t,e):new DS(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function tT(t){return t<0?-1:1}function eT(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(tT(o)+tT(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function nT(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function rT(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 iT(t){this._context=t}function oT(t){this._context=new aT(t)}function aT(t){this._context=t}function sT(t){return new iT(t)}function uT(t){return new oT(t)}function cT(t){this._context=t}function lT(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]}iT.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:rT(this,this._t0,nT(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,rT(this,nT(this,n=eT(this,t,e)),n);break;default:rT(this,this._t0,n=eT(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}},(oT.prototype=Object.create(iT.prototype)).point=function(t,e){iT.prototype.point.call(this,e,t)},aT.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)}},cT.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=lT(t),i=lT(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 hT=function(t){return new cT(t)};function fT(t,e){this._context=t,this._t=e}fT.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 pT=function(t){return new fT(t,.5)};function dT(t){return new fT(t,0)}function vT(t){return new fT(t,1)}var 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(){var e=null!==t&&t.apply(this,arguments)||this;return e.curveTypes={curveLinear:dS,curveLinearClosed:mS,curveBasis:bS,curveBasisClosed:wS,curveBasisOpen:ES,curveBundle:TS,curveCardinal:AS,curveCardinalClosed:LS,curveCardinalOpen:kS,curveCatmullRom:XS,curveCatmullRomClosed:$S,curveCatmullRomOpen:JS,curveMonotoneX:sT,curveMonotoneY:uT,curveNatural:hT,curveStep:pT,curveStepAfter:vT,curveStepBefore:dT},e}return gT(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}(Vm),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.isZoomBarEnabled=function(){if(!this.services.cartesianScales)return!1;if(!_d.getProperty(this.model.getOptions(),"zoomBar","top","enabled"))return!1;this.services.cartesianScales.findDomainAndRangeAxes();var t=this.services.cartesianScales.getMainXAxisPosition(),e=_d.getProperty(this.model.getOptions(),"axes",t,"scaleType");return t===B.BOTTOM&&e===H.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(),o=_d.getProperty(this.model.getOptions(),"axes",r,"domain");return Array.isArray(o)&&2===o.length?o:n.extendsDomain(r,jv(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(ft.ZoomDomain.CHANGE,{newDomain:t})},e.prototype.getZoomRatio=function(){return _d.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=_d.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=kt.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=_d.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 _d.getProperty(this.model.getOptions(),"zoomBar",t,"loading")},e.prototype.isZoomBarLocked=function(t){return _d.getProperty(this.model.getOptions(),"zoomBar",t,"locked")},e}(Vm),bT=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(){return null!==t&&t.apply(this,arguments)||this}return bT(e,t),e.prototype.zoomIn=function(t,e,n){var r,i,o,a=n||mt;t&&(r=t.x,i=t.y,o=2);var s=Y_.getSVGElementSize(this.services.domUtils.getHolder(),{useClientDimensions:!0}),u=s.width,c=s.height;e.transition().duration(a.duration).ease(a.ease).attr("transform","translate("+u/2+", "+c/2+") scale("+o+") translate("+-r+","+-i+")"),this.services.events.dispatchEvent(ft.CanvasZoom.CANVAS_ZOOM_IN,{element:G_(t)})},e.prototype.zoomOut=function(t,e){var n=e||mt;t.transition().duration(n.duration).ease(n.ease).attr("transform",""),this.services.events.dispatchEvent(ft.CanvasZoom.CANVAS_ZOOM_OUT)},e}(Vm),wT=function(){function t(t,e,n){if(this.renderType=I.HTML,this.configs={},this.model=t,this.services=e,n&&(this.configs=n,this.configs.id)){var r=_d.getProperty(this.model.getOptions(),"style","prefix");this.id=r+"--"+this.configs.id}this.parent||this.setParent(G_(this.services.domUtils.getMainContainer()))}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=_d.getProperty(this.model.getOptions(),"style","prefix");this.parent.classed(dt+"--"+n+"--"+this.type,!0),e&&e.classed(dt+"--"+n+"--"+this.type,!1)}},t.prototype.getParent=function(){return this.parent},t.prototype.getComponentContainer=function(t){if(void 0===t&&(t={withinChartClip:!1}),this.type){var e=_d.getProperty(this.model.getOptions(),"style","prefix"),n=this.id?"#"+this.id:"",r=Y_.appendOrSelect(this.parent,(this.renderType===I.SVG?"svg":"div")+n+"."+dt+"--"+e+"--"+this.type);if(t.withinChartClip){var i=this.model.get("chartClipId");if(i){var o=G_("#"+i),a=o.select("rect");0!==a.size()&&parseFloat(a.attr("height"))>0&&r.attr("clip-path","url(#"+i+")")}}return r.attr("width","100%").attr("height","100%")}return this.parent},t.prototype.getOptions=function(){if(this.configs.options){var t=_d.merge({},this.model.getOptions(),this.configs.options);return t}return this.model.getOptions()},t}(),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)}}(),ET=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="legend",e.renderType=I.HTML,e}return xT(e,t),e.prototype.render=function(){var t=this,e=this.getOptions(),n=_d.getProperty(e,"legend"),r=_d.getProperty(n,"alignment"),i=_d.getProperty(e,"legend","orientation"),o=this.model.getDataGroups(),s=wt.items.status.DISABLED,u=o.some((function(t){return t.status===s})),c=_d.getProperty(n,"order"),l=this.getComponentContainer().classed("center-aligned",r===F.CENTER).classed("right-aligned",r===F.RIGHT).classed(i,!0).classed("has-deactivated-items",u).attr("role",a.GROUP).attr("aria-label","Data groups").attr("data-name","legend-items");c&&(o=this.sortDataGroups(o,c));var h=l.selectAll("div.legend-item").data(o,(function(t){return t.name})),f=h.enter().append("div").attr("class","legend-item");f.merge(l.selectAll("div.legend-item")).classed("active",(function(t,e){return t.status===wt.items.status.ACTIVE}));var p=_d.getProperty(this.getOptions(),"legend","clickable");l.classed("clickable",p&&o.length>1);var d=wt.checkbox.radius,v=f.append("div").classed("checkbox",!0),g=v.merge(h.select("div.checkbox")).attr("role",a.CHECKBOX).attr("tabindex",p?0:-1).attr("aria-labelledby",(function(e,n){return t.services.domUtils.generateElementIDString("legend-datagroup-"+n+"-title")})).attr("aria-checked",(function(t){var e=t.status;return e===wt.items.status.ACTIVE})).attr("width",2*d).attr("height",2*d).attr("class",(function(e,n){return t.model.getColorClassName({classNameTypes:[j.BACKGROUND],dataGroupName:e.name,originalClassName:"checkbox"})})).style("background",(function(e){return e.status===wt.items.status.ACTIVE?t.model.getFillColor(e.name)||t.model.getStrokeColor(e.name):null})).classed("active",(function(t,e){return t.status===wt.items.status.ACTIVE})),m=(v.append("svg").attr("focusable",!1).attr("preserveAspectRatio","xMidYMid meet").attr("xmlns","http://www.w3.org/2000/svg").attr("width","11").attr("height","11").attr("viewBox","0 0 31 28").attr("aria-hidden",!0).style("will-change","transform").append("path").attr("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"),f.append("p").merge(h.select("p")),_d.getProperty(e,"legend","additionalItems"));if(m&&o.length){var y=this,_=l.selectAll("div.additional-item").data(m);_.exit().remove();var b,O=_.enter().append("div").merge(_).classed("legend-item",!0).classed("additional",!0).attr("aria-labelledby",(function(e,n){return t.services.domUtils.generateElementIDString("legend-datagroup-"+(g.size()+n)+"-title")}));O.selectAll("*").remove();var w=1;O.append("svg").classed("icon",!0).each((function(t,e){var n=G_(this);b&&b==t.type?w++:(b=t.type,w=1),y.addAdditionalItem(n,t,w)}));O.append("p").merge(O.select("p"));this.truncateLegendText()}h.exit().on("mouseover",null).on("click",null).on("mouseout",null).remove(),p&&f.size()>1&&this.addEventListeners()},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.addAdditionalItem=function(t,e,n){var r=wt.area,i=r.width,s=r.height;if(e.type===st.RADIUS?t.style("width",s+"px").style("height",s+"px"):t.style("width",i+"px").style("height",s+"px"),e.type===st.RADIUS){var u=wt.radius,c=u.iconData,l=u.fill,h=u.stroke,f=t.attr("fill","none").selectAll("circle").data(c).enter();f.append("circle").classed("radius",!0).attr("role",a.IMG).attr("aria-label","radius").attr("cx",(function(t){return t.cx})).attr("cy",(function(t){return t.cy})).attr("r",(function(t){return t.r})).style("fill",e.fill?e.fill:l).style("stroke",e.stroke?e.stroke:h)}else if(e.type===st.LINE){var p=wt.line;t.select("line.line").empty()&&t.append("line").classed("line-"+n,!0).attr("role",a.IMG).attr("aria-label","line").attr("x1",0).attr("y1",p.yPosition).attr("x2",i).attr("y2",p.yPosition).style("stroke",e.stroke?e.stroke:p.stroke).style("stroke-width",p.strokeWidth)}else if(e.type===st.AREA)t.select("rect.area").empty()&&t.append("rect").classed("area-"+n,!0).attr("role",a.IMG).attr("aria-label","area").attr("width",i).attr("height",s).style("fill",n>3&&!e.fill?wt.area.fill:e.fill).style("stroke",e.stroke);else if(e.type===st.SIZE){var d=wt.size,v=(c=d.iconData,l=d.fill,h=d.stroke,t.attr("fill","none").attr("role",a.IMG).attr("aria-label","size").selectAll("rect").data(c).enter());v.append("rect").classed("size",!0).attr("width",(function(t){return t.width})).attr("height",(function(t){return t.height})).attr("y",(function(t){return 0})).style("fill",e.fill?e.fill:l).style("stroke",e.stroke?e.stroke:h).style("stroke-width",1)}else if(e.type===st.QUARTILE){c=wt.quartile.iconData;var g=t.selectAll("rect").attr("role",a.IMG).attr("aria-label","quartile").data(c).enter();g.append("rect").attr("class",(function(t,e){return"quartile-"+(0===e?"wrapper":"line")})).attr("x",(function(t){return t.x})).attr("y",(function(t){return t.y})).attr("width",(function(t){return t.width})).attr("height",(function(t){return t.height}))}else if(e.type===st.ZOOM){var m=_d.getProperty(o,"legend","zoom"),y=(c=m.iconData,m.color),_=t.attr("role",a.IMG).attr("aria-label","zoom").selectAll("g.icon").data(c).enter();_.append("g").attr("x",(function(t){return t.x})).attr("y",(function(t){return t.y})).attr("width",(function(t){return t.width})).attr("height",(function(t){return t.height})).append("polygon").attr("points","7.7 4.82 5.78 4.82 5.78 2.89 4.82 2.89 4.82 4.82 2.89 4.82 2.89 5.78 4.82 5.78 4.82 7.7 5.78 7.7 5.78 5.78 7.7 5.78 7.7 4.82").attr("fill",(function(t){return e.color?e.color:y})),_.append("path").attr("d","M9.36,8.67A5.22,5.22,0,0,0,10.59,5.3,5.3,5.3,0,1,0,5.3,10.59,5.22,5.22,0,0,0,8.67,9.36L12.32,13l.68-.68Zm-4.06,1A4.34,4.34,0,1,1,9.63,5.3,4.33,4.33,0,0,1,5.3,9.63Z").attr("fill",(function(t){return e.color?e.color:y}))}},e.prototype.truncateLegendText=function(){var t=this.getComponentContainer(),e=_d.getProperty(this.getOptions(),"legend","truncation"),n=_d.getProperty(e,"type"),r=_d.getProperty(e,"threshold"),i=_d.getProperty(e,"numCharacter"),o=t.selectAll("div.legend-item p");o.attr("id",(function(t,e){var n=this.parentNode.querySelector("div.checkbox")||this.parentNode;return n.getAttribute("aria-labelledby")})),n!==V.NONE?o.html((function(t){return t.name.length>r?_d.truncateLabel(t.name,n,i):t.name})):o.html((function(t){return t.name}))},e.prototype.addEventListeners=function(){var t=this,e=this.getComponentContainer(),n=this.getOptions(),r=_d.getProperty(n,"legend"),i=_d.getProperty(r,"truncation","threshold");e.selectAll("div.legend-item").on("mouseover",(function(e){t.services.events.dispatchEvent(ft.Legend.ITEM_HOVER,{hoveredElement:G_(this)});var n=G_(this);n.select("div.checkbox").classed("hovered",!0);var r=n.datum();r.name.length>i&&t.services.events.dispatchEvent(ft.Tooltip.SHOW,{event:e,hoveredElement:n,content:r.name})})).on("mousemove",(function(e){t.services.events.dispatchEvent(ft.Tooltip.MOVE,{event:e})})).on("click",(function(){t.services.events.dispatchEvent(ft.Legend.ITEM_CLICK,{clickedElement:G_(this)});var e=G_(this),n=e.datum();t.model.toggleDataLabel(n.name)})).on("mouseout",(function(){var e=G_(this);e.select("div.checkbox").classed("hovered",!1),t.services.events.dispatchEvent(ft.Tooltip.HIDE),t.services.events.dispatchEvent(ft.Legend.ITEM_MOUSEOUT,{hoveredElement:e})})),e.selectAll("div.legend-item div.checkbox").on("keyup",(function(e){e.key&&"Tab"===e.key&&t.services.events.dispatchEvent(ft.Legend.ITEM_HOVER,{hoveredElement:G_(this)})})),e.selectAll("div.legend-item div.checkbox").on("keydown",(function(e,n){e.key&&" "===e.key?(e.preventDefault(),t.model.toggleDataLabel(n.name)):e.key&&"Tab"===e.key&&t.services.events.dispatchEvent(ft.Legend.ITEM_MOUSEOUT,{hoveredElement:G_(this)})})),e.selectAll("g.additional-item").on("mouseover",(function(e){var n=G_(this),r=n.datum();r.name.length>i&&t.services.events.dispatchEvent(ft.Tooltip.SHOW,{event:e,hoveredElement:n,content:r.name})}))},e}(wT),ST=function(t){return t},TT=1,MT=2,CT=3,AT=4,PT=1e-6;function LT(t){return"translate("+t+",0)"}function DT(t){return"translate(0,"+t+")"}function kT(t){return e=>+t(e)}function RT(t,e){return e=Math.max(0,t.bandwidth()-2*e)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function IT(){return!this.__axis}function NT(t,e){var n=[],r=null,i=null,o=6,a=6,s=3,u="undefined"!==typeof window&&window.devicePixelRatio>1?0:.5,c=t===TT||t===AT?-1:1,l=t===AT||t===MT?"x":"y",h=t===TT||t===CT?LT:DT;function f(f){var p=null==r?e.ticks?e.ticks.apply(e,n):e.domain():r,d=null==i?e.tickFormat?e.tickFormat.apply(e,n):ST:i,v=Math.max(o,0)+s,g=e.range(),m=+g[0]+u,y=+g[g.length-1]+u,_=(e.bandwidth?RT:kT)(e.copy(),u),b=f.selection?f.selection():f,O=b.selectAll(".domain").data([null]),w=b.selectAll(".tick").data(p,e).order(),x=w.exit(),E=w.enter().append("g").attr("class","tick"),S=w.select("line"),T=w.select("text");O=O.merge(O.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),w=w.merge(E),S=S.merge(E.append("line").attr("stroke","currentColor").attr(l+"2",c*o)),T=T.merge(E.append("text").attr("fill","currentColor").attr(l,c*v).attr("dy",t===TT?"0em":t===CT?"0.71em":"0.32em")),f!==b&&(O=O.transition(f),w=w.transition(f),S=S.transition(f),T=T.transition(f),x=x.transition(f).attr("opacity",PT).attr("transform",(function(t){return isFinite(t=_(t))?h(t+u):this.getAttribute("transform")})),E.attr("opacity",PT).attr("transform",(function(t){var e=this.parentNode.__axis;return h((e&&isFinite(e=e(t))?e:_(t))+u)}))),x.remove(),O.attr("d",t===AT||t===MT?a?"M"+c*a+","+m+"H"+u+"V"+y+"H"+c*a:"M"+u+","+m+"V"+y:a?"M"+m+","+c*a+"V"+u+"H"+y+"V"+c*a:"M"+m+","+u+"H"+y),w.attr("opacity",1).attr("transform",(function(t){return h(_(t)+u)})),S.attr(l+"2",c*o),T.attr(l,c*v).text(d),b.filter(IT).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===MT?"start":t===AT?"end":"middle"),b.each((function(){this.__axis=_}))}return f.scale=function(t){return arguments.length?(e=t,f):e},f.ticks=function(){return n=Array.from(arguments),f},f.tickArguments=function(t){return arguments.length?(n=null==t?[]:Array.from(t),f):n.slice()},f.tickValues=function(t){return arguments.length?(r=null==t?null:Array.from(t),f):r&&r.slice()},f.tickFormat=function(t){return arguments.length?(i=t,f):i},f.tickSize=function(t){return arguments.length?(o=a=+t,f):o},f.tickSizeInner=function(t){return arguments.length?(o=+t,f):o},f.tickSizeOuter=function(t){return arguments.length?(a=+t,f):a},f.tickPadding=function(t){return arguments.length?(s=+t,f):s},f.offset=function(t){return arguments.length?(u=+t,f):u},f}function jT(t){return NT(TT,t)}function BT(t){return NT(MT,t)}function UT(t){return NT(CT,t)}function VT(t){return NT(AT,t)}var GT=function(t,e){for(var n=new Array(e),r=0;r<e;++r)n[r]=t(r/(e-1));return n},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)}}(),zT=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="color-legend",e.renderType=I.SVG,e.gradient_id="gradient-id-"+Math.floor(99999999999*Math.random()),e.handleAxisCompleteEvent=function(t){var n=e.getComponentContainer(),r=Y_.getSVGElementSize(n,{useAttrs:!0}).width,i=_d.getProperty(e.getOptions(),"data","loading");if(r>wt.color.barWidth&&!i){var o=_d.getProperty(e.getOptions(),"heatmap","colorLegend","title"),a=e.services.cartesianScales,s=a.getMainXScale(),u=s.range();if(u[0]>1&&(n.select("g.legend").attr("transform","translate("+u[0]+", 0)"),o)){var c=Y_.getSVGElementSize(n.select("g.legend-title").select("text"),{useBBox:!0}).width,l=u[0]-c-9;l>1?n.select("g.legend-title").attr("transform","translate("+l+", 0)"):(n.select("g.legend").attr("transform","translate("+u[0]+", 16)"),n.select("g.legend-title").attr("transform","translate("+u[0]+", 0)"))}}else n.select("g.legend-title").attr("transform","translate(0, 0)")},e}return HT(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(ft.Axis.RENDER_COMPLETE,this.handleAxisCompleteEvent)},e.prototype.render=function(t){void 0===t&&(t=!1);var e=this.getOptions(),n=this.getComponentContainer(),r=Y_.getSVGElementSize(n,{useAttrs:!0}).width,i=_d.getProperty(e,"color","gradient","colors"),o=_d.getProperty(e,"heatmap","colorLegend","type"),a=_d.getProperty(e,"color","pairing","option"),s=_d.getProperty(e,"heatmap","colorLegend","title"),u=_d.getProperty(this.getOptions(),"data","loading");if(u)n.html("");else{var c=!_d.isEmpty(i),l=this.model.getValueDomain(),h=!(r<=wt.color.barWidth),f=h?wt.color.barWidth:r,p=Y_.appendOrSelect(n,"g.legend"),d=Y_.appendOrSelect(p,"g.legend-axis");if(s){var v=Y_.appendOrSelect(n,"g.legend-title"),g=Y_.appendOrSelect(v,"text");g.text(s).attr("dy","0.7em"),p.attr("transform","translate(0, 16)")}var m=l[0]<0&&l[1]>0?"diverge":"mono";a<1&&a>4&&"mono"===m?a=1:a<1&&a>2&&"diverge"===m&&(a=1);var y=[],_="diverge"===m?17:11;if(c)y=i;else for(var b=1;b<_+1;b++)y.push(o===ut.LINEAR?"stop-color-"+m+"-"+a+"-"+b:"fill-"+m+"-"+a+"-"+b);var O=bx(l[0],l[1]),w=GT(O,3),x=AE().domain(l).range([0,f]),E=UT(x).tickSize(0).tickValues(w);switch(o){case ut.LINEAR:this.drawLinear(y,p,f);break;case ut.QUANTIZE:var S=this.drawQuantize(y,m,c,p,f);x.range([S,f]);break;default:throw Error("Entered color legend type is not supported.")}d.attr("transform","translate(0,"+wt.color.axisYTranslation+")").call(E),d.select(".domain").remove(),d.select("g.tick:last-of-type text").style("text-anchor",h?"middle":"end"),d.select("g.tick:first-of-type text").style("text-anchor",h?"middle":"start")}},e.prototype.drawLinear=function(t,e,n){var r=100/(t.length-1),i=Y_.appendOrSelect(e,"linearGradient");i.attr("id",this.gradient_id+"-legend").selectAll("stop").data(t).enter().append("stop").attr("offset",(function(t,e){return e*r+"%"})).attr("class",(function(e,n){return t[n]})).attr("stop-color",(function(t){return t}));var o=Y_.appendOrSelect(e,"rect");o.attr("width",n).attr("height",wt.color.barHeight).style("fill","url(#"+this.gradient_id+"-legend)")},e.prototype.drawQuantize=function(t,e,n,r,i){n||"diverge"!==e||t.splice(t.length/2,1);var o=xE().domain(t).range([0,i]),a=Y_.appendOrSelect(r,"g.quantized-rect");return a.selectAll("rect").data(o.domain()).join("rect").attr("x",(function(t){return o(t)})).attr("y",0).attr("width",Math.max(0,o.bandwidth()-1)).attr("height",wt.color.barHeight).attr("class",(function(t){return t})).attr("fill",(function(t){return t})),"mono"===(!n&&e)?o.bandwidth()-1:0},e.prototype.destroy=function(){var t=this.services.events;t.removeEventListener(ft.Axis.RENDER_COMPLETE,this.handleAxisCompleteEvent)},e}(ET),FT=(n("9b04"),{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 ",selectorFocusable:"\n a[href], area[href], input:not([disabled]),\n button:not([disabled]),select:not([disabled]),\n textarea:not([disabled]),\n iframe, object, embed, *[tabindex], *[contenteditable=true]\n "}),WT=FT;function qT(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function YT(t,e,n){return e&&qT(t.prototype,e),n&&qT(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function ZT(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function XT(t){return JT(t)||QT(t)||$T(t)||KT()}function KT(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function $T(t,e){if(t){if("string"===typeof t)return tM(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?tM(t,e):void 0}}function QT(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function JT(t){if(Array.isArray(t))return tM(t)}function tM(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function eM(t){return t.reduce((function(t,e){return Array.isArray(e)?t.push.apply(t,XT(eM(e))):t.push(e),t}),[])}function nM(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return eM(e).reduce((function(t,e){return e(t)}),function(){function t(){ZT(this,t)}return YT(t)}())}function rM(t){return rM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rM(t)}function iM(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function oM(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function aM(t,e,n){return e&&oM(t.prototype,e),n&&oM(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function sM(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&uM(t,e)}function uM(t,e){return uM=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},uM(t,e)}function cM(t){var e=fM();return function(){var n,r=pM(t);if(e){var i=pM(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return lM(this,n)}}function lM(t,e){if(e&&("object"===rM(e)||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return hM(t)}function hM(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function fM(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function pM(t){return pM=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},pM(t)}var dM=function(t){var e=function(t){sM(n,t);var e=cM(n);function n(t){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(iM(this,n),r=e.call(this,t,i),r.children=[],!t||t.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");return r.element=t,r.options=Object.assign(Object.create(r.constructor.options),i),r.constructor.components.set(r.element,hM(r)),r}return aM(n,[{key:"release",value:function(){for(var t=this.children.pop();t;t=this.children.pop())t.release();return this.constructor.components.delete(this.element),null}}],[{key:"create",value:function(t,e){return this.components.get(t)||new this(t,e)}}]),n}(t);return e};function vM(t,e){var n=t.target,r=t.currentTarget;if("function"===typeof n.matches){if(n.matches(e))return n;if(n.matches("".concat(e," *"))){var i=n.closest(e);if((r.nodeType===Node.DOCUMENT_NODE?r.documentElement:r).contains(i))return i}}}function gM(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return t.addEventListener.apply(t,n),{release:function(){return t.removeEventListener.apply(t,n),null}}}function mM(t){return mM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mM(t)}function yM(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _M(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function bM(t,e,n){return e&&_M(t.prototype,e),n&&_M(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function OM(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&wM(t,e)}function wM(t,e){return wM=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},wM(t,e)}function xM(t){var e=TM();return function(){var n,r=MM(t);if(e){var i=MM(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return EM(this,n)}}function EM(t,e){if(e&&("object"===mM(e)||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return SM(t)}function SM(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function TM(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function MM(t){return MM=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},MM(t)}var CM=function(t){var e=function(t){OM(n,t);var e=xM(n);function n(){return yM(this,n),e.apply(this,arguments)}return bM(n,null,[{key:"init",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=Object.assign(Object.create(this.options),n);if(!e||e.nodeType!==Node.ELEMENT_NODE&&e.nodeType!==Node.DOCUMENT_NODE)throw new TypeError("DOM document or DOM element should be given to search for and initialize this widget.");if(e.nodeType!==Node.ELEMENT_NODE||!e.matches(r.selectorInit)){var i=r.initEventNames.map((function(i){return gM(e,i,(function(e){var i=vM(e,"[".concat(r.attribInitTarget,"]"));if(i){e.delegateTarget=i;var o=i.ownerDocument.querySelectorAll(i.getAttribute(r.attribInitTarget));if(o.length>1)throw new Error("Target widget must be unique.");if(1===o.length){"A"===i.tagName&&e.preventDefault();var a=t.create(o[0],n);"function"===typeof a.createdByLauncher&&a.createdByLauncher(e)}}}))}));return{release:function(){for(var t=i.pop();t;t=i.pop())t.release()}}}return this.create(e,n),""}}]),n.forLazyInit=!0,n}(t);return e};function AM(t){return AM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},AM(t)}function PM(t){return RM(t)||kM(t)||DM(t)||LM()}function LM(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function DM(t,e){if(t){if("string"===typeof t)return IM(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?IM(t,e):void 0}}function kM(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function RM(t){if(Array.isArray(t))return IM(t)}function IM(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function NM(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function jM(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function BM(t,e,n){return e&&jM(t.prototype,e),n&&jM(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function UM(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&VM(t,e)}function VM(t,e){return VM=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},VM(t,e)}function GM(t){var e=FM();return function(){var n,r=WM(t);if(e){var i=WM(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return HM(this,n)}}function HM(t,e){if(e&&("object"===AM(e)||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return zM(t)}function zM(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function FM(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function WM(t){return WM=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},WM(t)}var qM=function(t){var e=function(t){UM(n,t);var e=GM(n);function n(){return NM(this,n),e.apply(this,arguments)}return BM(n,[{key:"_changeState",value:function(){throw new Error("_changeState() should be overridden to perform actual change in state.")}},{key:"changeState",value:function(){for(var t=this,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var i="string"===typeof n[0]?n.shift():void 0,o=Object(n[0])===n[0]&&"function"!==typeof n[0]?n.shift():void 0,a="function"===typeof n[0]?n.shift():void 0;if("function"!==typeof this.shouldStateBeChanged||this.shouldStateBeChanged(i,o)){var s={group:o&&o.group,state:i},u=[s.group,i].filter(Boolean).join("-").split("-").map((function(t){return t[0].toUpperCase()+t.substr(1)})).join(""),c=new CustomEvent(this.options["eventBefore".concat(u)],{bubbles:!0,cancelable:!0,detail:o}),l=o&&o.delegatorNode||this.element,h=!l.dispatchEvent(c);if(h){if(a){var f=new Error("Changing state (".concat(JSON.stringify(s),") has been canceled."));f.canceled=!0,a(f)}}else{var p=[i,o].filter(Boolean);this._changeState.apply(this,PM(p).concat([function(){l.dispatchEvent(new CustomEvent(t.options["eventAfter".concat(u)],{bubbles:!0,cancelable:!0,detail:o})),a&&a()}]))}}else a&&a(null,!0)}}]),n}(t);return e};function YM(t){if(!t||"function"===typeof t)return{launchingElement:null,launchingEvent:null};var e=t.delegateTarget||t.currentTarget||t,n=t.currentTarget&&t;if(e&&!e.nodeType)throw new TypeError("DOM Node should be given for launching element.");if(n&&!n.type)throw new TypeError("DOM event should be given for launching event.");return{launchingElement:e,launchingEvent:n}}function ZM(t){return ZM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ZM(t)}function XM(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function KM(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function $M(t,e,n){return e&&KM(t.prototype,e),n&&KM(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function QM(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&JM(t,e)}function JM(t,e){return JM=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},JM(t,e)}function tC(t){var e=rC();return function(){var n,r=iC(t);if(e){var i=iC(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return eC(this,n)}}function eC(t,e){if(e&&("object"===ZM(e)||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return nC(t)}function nC(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function rC(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function iC(t){return iC=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},iC(t)}function oC(t){var e=function(t){QM(n,t);var e=tC(n);function n(){return XM(this,n),e.apply(this,arguments)}return $M(n,[{key:"show",value:function(t,e){t&&"function"!==typeof t||(e=t),this.changeState("shown",YM(t),e)}},{key:"hide",value:function(t,e){t&&"function"!==typeof t||(e=t),this.changeState("hidden",YM(t),e)}}]),n}(t);return e}var aC=[qM,oC],sC=aC;function uC(t){return uC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},uC(t)}function cC(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function lC(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function hC(t,e,n){return e&&lC(t.prototype,e),n&&lC(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function fC(){return fC="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=pC(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(arguments.length<3?t:n):i.value}},fC.apply(this,arguments)}function pC(t,e){while(!Object.prototype.hasOwnProperty.call(t,e))if(t=bC(t),null===t)break;return t}function dC(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&vC(t,e)}function vC(t,e){return vC=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},vC(t,e)}function gC(t){var e=_C();return function(){var n,r=bC(t);if(e){var i=bC(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return mC(this,n)}}function mC(t,e){if(e&&("object"===uC(e)||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return yC(t)}function yC(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _C(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function bC(t){return bC=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},bC(t)}var OC=function(t){var e=function(t){dC(n,t);var e=gC(n);function n(){var t;cC(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return t=e.call.apply(e,[this].concat(i)),t.handles=new Set,t}return hC(n,[{key:"manage",value:function(t){return this.handles.add(t),t}},{key:"unmanage",value:function(t){return this.handles.delete(t),t}},{key:"release",value:function(){var t=this;return this.handles.forEach((function(e){e.release(),t.handles.delete(e)})),fC(bC(n.prototype),"release",this).call(this)}}]),n}(t);return e};function wC(t){return wC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wC(t)}function xC(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function EC(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function SC(t,e,n){return e&&EC(t.prototype,e),n&&EC(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function TC(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&MC(t,e)}function MC(t,e){return MC=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},MC(t,e)}function CC(t){var e=LC();return function(){var n,r=DC(t);if(e){var i=DC(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return AC(this,n)}}function AC(t,e){if(e&&("object"===wC(e)||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return PC(t)}function PC(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function LC(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function DC(t){return DC=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},DC(t)}var kC,RC,IC=function(t){TC(n,t);var e=CC(n);function n(t,r){var i;return xC(this,n),i=e.call(this,t,r),i._handleFocusinListener=void 0,i._handleKeydownListener=void 0,i._handleFocusin=function(t){var e=i.element.querySelector(i.options.selectorModalContainer)||i.element;i.element.classList.contains(i.options.classVisible)&&!e.contains(t.target)&&i.options.selectorsFloatingMenus.every((function(e){return!vM(t,e)}))&&i.element.querySelector(WT.selectorTabbable).focus()},i._hookCloseActions(),i}return SC(n,[{key:"createdByLauncher",value:function(t){this.show(t)}},{key:"shouldStateBeChanged",value:function(t){return"shown"===t?!this.element.classList.contains(this.options.classVisible):this.element.classList.contains(this.options.classVisible)}},{key:"_changeState",value:function(t,e,n){var r,i=this,o=function(){if(r&&(r=i.unmanage(r).release()),"shown"===t&&i.element.offsetWidth>0&&i.element.offsetHeight>0){i.previouslyFocusedNode=i.element.ownerDocument.activeElement;var e=i.element.querySelector(i.options.selectorPrimaryFocus)||i.element.querySelector(WT.selectorTabbable);e.focus()}n()};if(this._handleFocusinListener&&(this._handleFocusinListener=this.unmanage(this._handleFocusinListener).release()),"shown"===t){var a="onfocusin"in this.element.ownerDocument.defaultView,s=a?"focusin":"focus";this._handleFocusinListener=this.manage(gM(this.element.ownerDocument,s,this._handleFocusin,!a))}"hidden"===t?(this.element.classList.toggle(this.options.classVisible,!1),this.element.ownerDocument.body.classList.toggle(this.options.classBody,!1),(this.options.selectorFocusOnClose||this.previouslyFocusedNode)&&(this.element.ownerDocument.querySelector(this.options.selectorFocusOnClose)||this.previouslyFocusedNode).focus()):"shown"===t&&(this.element.classList.toggle(this.options.classVisible,!0),this.element.ownerDocument.body.classList.toggle(this.options.classBody,!0)),r=this.manage(gM(this.element,"transitionend",o))}},{key:"_hookCloseActions",value:function(){var t=this;this.manage(gM(this.element,"click",(function(e){var n=vM(e,t.options.selectorModalClose);n&&(e.delegateTarget=n),(n||e.target===t.element)&&t.hide(e)}))),this._handleKeydownListener&&(this._handleKeydownListener=this.unmanage(this._handleKeydownListener).release()),this._handleKeydownListener=this.manage(gM(this.element.ownerDocument.body,"keydown",(function(e){27===e.which&&t.shouldStateBeChanged("hidden")&&(e.stopPropagation(),t.hide(e))})))}}],[{key:"options",get:function(){var t=WT.prefix;return{selectorInit:"[data-modal]",selectorModalClose:"[data-modal-close]",selectorPrimaryFocus:"[data-modal-primary-focus]",selectorsFloatingMenus:[".".concat(t,"--overflow-menu-options"),".".concat(t,"--tooltip"),".flatpickr-calendar"],selectorModalContainer:".".concat(t,"--modal-container"),classVisible:"is-visible",classBody:"".concat(t,"--body--with-modal-open"),attribInitTarget:"data-modal-target",initEventNames:["click"],eventBeforeShown:"modal-beingshown",eventAfterShown:"modal-shown",eventBeforeHidden:"modal-beinghidden",eventAfterHidden:"modal-hidden"}}}]),n.components=new WeakMap,n}(nM(dM,CM,sC,OC)),NC=IC,jC=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,r){var i=t.call(this,e,n,r)||this;return i.type="modal",i.isEventListenerAdded=!1,i.handleShowModal=function(){i.modal.html(i.getModalHTML()),i.modal.select("div.cds--modal-footer button.cds--btn").on("click",(function(){return i.model.exportToCSV()}));var t=NC.create(i.modal.node());t.show()},i.init(),i}return jC(e,t),e.prototype.addEventListeners=function(){this.services.events.addEventListener(ft.Modal.SHOW,this.handleShowModal)},e.prototype.removeEventListeners=function(){this.services.events.removeEventListener(ft.Modal.SHOW,this.handleShowModal)},e.prototype.getModalHTML=function(){var t=this.model.getOptions(),e=_d.getProperty(t,"style","prefix"),n=this.model.getTabularDataArray();return'\n\t\t<div class="cds--modal-container cds--modal-container">\n\t\t\t<div class="cds--modal-header cds--modal-header">\n\t\t\t\t<p class="cds--modal-header__label cds--type-delta cds--modal-header__label cds--type-delta" id="modal-title">Tabular representation</p>\n\n\t\t\t\t<p class="cds--modal-header__heading cds--type-beta cds--modal-header__heading cds--type-beta" id="modal-description">'+t.title+'</p>\n\n\t\t\t\t<button class="cds--modal-close cds--modal-close" type="button" data-modal-close aria-label="close modal" data-modal-primary-focus>\n\t\t\t\t\t<svg focusable="false" preserveAspectRatio="xMidYMid meet" xmlns="http://www.w3.org/2000/svg" fill="currentColor" aria-label="Close" width="20" height="20" viewBox="0 0 32 32" role="img" class="cds--modal-close__icon cds--modal-close__icon">\n\t\t\t\t\t\t<path d="M24 9.4L22.6 8 16 14.6 9.4 8 8 9.4 14.6 16 8 22.6 9.4 24 16 17.4 22.6 24 24 22.6 17.4 16 24 9.4z"></path>\n\t\t\t\t\t</svg>\n\t\t\t\t</button>\n\t\t\t</div>\n\n\t\t\t<div class="cds--modal-content cds--modal-content">\n\t\t\t\t<table class="cds--data-table cds--data-table--no-border cds--data-table cds--data-table--no-border">\n\t\t\t\t\t<thead>\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t'+Ml(n,0).map((function(t){return'<th scope="col">\n\t\t\t\t\t\t\t\t<div class="cds--table-header-label cds--table-header-label">'+t+"</div>\n\t\t\t\t\t\t\t</th>"})).join("")+"\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t</thead>\n\n\t\t\t\t\t<tbody>"+n.slice(1).map((function(t){return"\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t"+t.map((function(t){return"<td>"+t+"</td>"})).join("")+"\n\t\t\t\t\t\t\t</tr>"})).join("")+'\n\t\t\t\t\t</tbody>\n\t\t\t\t</table>\n\t\t\t</div>\n\n\t\t\t<div class="cds--modal-footer cds--modal-footer">\n\t\t\t <div class="'+dt+"--"+e+'-modal-footer-spacer"></div>\n\t\t\t <button class="cds--btn cds--btn--primary cds--btn cds--btn--primary" type="button" data-modal-primary-focus>Download as CSV</button>\n\t\t\t</div>\n\t\t</div>'},e.prototype.render=function(){var t=this.model.getOptions();if(!this.isEventListenerAdded){var e=G_(this.services.domUtils.getHolder()),n=_d.getProperty(t,"style","prefix");this.modal=Y_.appendOrSelect(e,"div."+dt+"--"+n+"--modal"),this.addEventListeners(),this.isEventListenerAdded=!0,this.modal.attr("data-modal",!0).attr("class","cds--modal cds--modal").attr("role","dialog").attr("aria-modal",!0).attr("aria-labelledby","modal-title").attr("aria-describedby","modal-description").attr("tabindex",-1)}},e.prototype.destroy=function(){this.removeEventListeners(),this.isEventListenerAdded=!1},e}(wT);(function(t){t["LEFT"]="left",t["RIGHT"]="right",t["TOP"]="top",t["BOTTOM"]="bottom"})(RC||(RC={}));var UC=(kC={},kC[RC.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)}},kC[RC.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)}},kC[RC.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)}},kC[RC.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)}},kC),VC="undefined"!==typeof window?window:{innerHeight:0,scrollY:0,innerWidth:0,scrollX:0},GC=function(){function t(t){void 0===t&&(t={}),this.positions=UC,this.positions=Object.assign({},UC,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:VC.innerHeight-VC.scrollY,height:VC.innerWidth-VC.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}(),HC=(new GC,GC),zC=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.type="threshold",r.renderType=I.SVG,r.positionService=new HC,r}return zC(e,t),e.prototype.render=function(t){var e=this;void 0===t&&(t=!1);var n=_d.getProperty(this.getOptions(),"axes"),r=[];Object.keys(n).forEach((function(t){var e,i;if(Object.values(B).includes(t)){var o=n[t];o.thresholds&&o.thresholds.length>0&&r.push({axisPosition:t,thresholds:o.thresholds,correspondingDatasets:null===(e=o)||void 0===e?void 0:e.correspondingDatasets,mapsTo:null===(i=o)||void 0===i?void 0:i.mapsTo})}}));var i=this.getComponentContainer({withinChartClip:!0}),o=i.selectAll("g.axis-thresholds").data(r,(function(t){return t.axisPosition}));o.exit().attr("opacity",0).remove();var a=o.enter().append("g"),s=a.merge(o);s.attr("class",(function(t){return"axis-thresholds "+t.axisPosition}));var u=s.selectAll("g.threshold-group").data((function(t){return t.thresholds.map((function(n){return n.axisPosition=t.axisPosition,n.datum=e.constructDatumObj(t,n),n}))}));u.exit().attr("opacity",0).remove();var c=u.enter().append("g");c.append("line").attr("class","threshold-line"),c.append("rect").attr("class","threshold-hoverable-area");var l=c.merge(u);l.attr("class","threshold-group");var h=this;s.each((function(e){var n=e.axisPosition,r=h.services.cartesianScales.getScaleByPosition(n),i=h.services.cartesianScales.getScaleTypeByPosition(n),o=null,a=null;n===B.LEFT||n===B.RIGHT?(a=r,o=h.services.cartesianScales.getMainXScale()):(o=r,a=h.services.cartesianScales.getMainYScale());var s=i===H.LABELS,u=o.range(),c=u[0],l=u[1],f=a.range(),p=f[0],d=f[1],v=h.services.cartesianScales,g=v.getOrientation(),m=function(t){return v.getDomainValue(t)},y=function(t){return v.getRangeValue(t)},_=_d.flipDomainAndRangeBasedOnOrientation(m,y,g),b=_[0],O=_[1],w=G_(this);n===B.TOP||n===B.BOTTOM?(w.selectAll("line.threshold-line").transition().call((function(e){return h.services.transitions.setupTransition({transition:e,name:"threshold-line-update",animate:t})})).attr("y1",d).attr("y2",p).attr("x1",(function(t){var e=t.datum;return b(e)+(s?r.step()/2:0)})).attr("x2",(function(t){var e=t.datum;return b(e)+(s?r.step()/2:0)})).style("stroke",(function(t){var e=t.fillColor;return e})),w.selectAll("rect.threshold-hoverable-area").attr("x",0).attr("y",(function(t){var e=t.datum;return-b(e)})).attr("width",Math.abs(p-d)).classed("rotate",!0)):(w.selectAll("line.threshold-line").transition().call((function(e){return h.services.transitions.setupTransition({transition:e,name:"threshold-line-update",animate:t})})).attr("x1",c).attr("x2",l).attr("y1",(function(t){var e=t.datum;return O(e)+(s?r.step()/2:0)})).attr("y2",(function(t){var e=t.datum;return O(e)+(s?r.step()/2:0)})).style("stroke",(function(t){var e=t.fillColor;return e})),w.selectAll("rect.threshold-hoverable-area").attr("x",c).attr("y",(function(t){var e=t.datum;return O(e)})).attr("width",Math.abs(l-c)).classed("rotate",!1))})),this.services.events.addEventListener(ft.Threshold.SHOW,(function(t){e.setThresholdLabelPosition(t.detail),e.label.classed("hidden",!1)})),this.services.events.addEventListener(ft.Threshold.HIDE,(function(t){e.label.classed("hidden",!0)})),this.appendThresholdLabel(),this.addEventListeners()},e.prototype.getFormattedValue=function(t){var e=t.value,n=t.axisPosition,r=this.getOptions(),i=this.services.cartesianScales.getScaleTypeByPosition(n);if(i===H.TIME){var o=[B.LEFT,B.RIGHT].includes(n),a=this.services.cartesianScales.getMainXScale(),s=this.services.cartesianScales.getMainYScale(),u=o?s:a,c=_d.getProperty(r,"timeScale"),l=km(u.ticks());return Am(e,0,u.ticks(),l,c)}return e.toLocaleString("en")},e.prototype.appendThresholdLabel=function(){var t=G_(this.services.domUtils.getHolder()),e=_d.getProperty(this.getOptions(),"style","prefix");this.label=Y_.appendOrSelect(t,"div."+dt+"--"+e+"--threshold--label").classed("hidden",!0)},e.prototype.setThresholdLabelPosition=function(t){var e=t.event,n=t.datum,r=this.services.domUtils.getHolder(),i=wd(e,r),o=n.valueFormatter?n.valueFormatter(n.value):this.getFormattedValue(n);this.label.html((n.label||"Threshold")+": "+o).style("background-color",n.fillColor);var a=this.label.node(),s=this.positionService.findBestPlacementAt({left:i[0],top:i[1]},a,[RC.RIGHT,RC.LEFT,RC.TOP,RC.BOTTOM],(function(){return{width:r.offsetWidth,height:r.offsetHeight}})),u=this.positionService.findPositionAt({left:i[0],top:i[1]},a,s);this.positionService.setElement(a,u)},e.prototype.constructDatumObj=function(t,e){var n={};return t.correspondingDatasets&&(n["group"]=_d.getProperty(t,"correspondingDatasets",0)),n[t["mapsTo"]]=e.value,n},e.prototype.addEventListeners=function(){var t=this,e=this.getComponentContainer({withinChartClip:!0});e.selectAll("rect.threshold-hoverable-area").on("mouseover mousemove",(function(e){G_(this.parentNode).select("line.threshold-line").classed("active",!0),t.services.events.dispatchEvent(ft.Threshold.SHOW,{event:e,hoveredElement:G_(this),datum:G_(this).datum()})})).on("mouseout",(function(e){G_(this.parentNode).select("line.threshold-line").classed("active",!1),t.services.events.dispatchEvent(ft.Threshold.HIDE,{event:e,hoveredElement:G_(this),datum:G_(this).datum()})}))},e}(wT),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)}}(),qC=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="title",e.renderType=I.HTML,e}return WC(e,t),e.prototype.render=function(){var t=this.getComponentContainer(),e=_d.getProperty(this.getOptions(),"title"),n=t.selectAll("p.title").data([e]);if(n.enter().append("p").classed("title",!0).attr("role","heading").attr("aria-level",2).merge(n).html((function(t){return t})),n.node()&&n.node().offsetWidth<n.node().scrollWidth){var r=this;n.on("mouseover",(function(t){r.services.events.dispatchEvent(ft.Tooltip.SHOW,{event:t,hoveredElement:n,content:n.text()})})).on("mousemove",(function(t){r.services.events.dispatchEvent(ft.Tooltip.MOVE,{event:t})})).on("mouseout",(function(){r.services.events.dispatchEvent(ft.Tooltip.HIDE)}))}n.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=Y_.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(e){a.services.events.dispatchEvent(ft.Tooltip.SHOW,{event:e,hoveredElement:t,content:n})})).on("mousemove",(function(t){a.services.events.dispatchEvent(ft.Tooltip.MOVE,{event:t})})).on("mouseout",(function(){a.services.events.dispatchEvent(ft.Tooltip.HIDE)}))}}},e.prototype.getMaxTitleWidth=function(){return Y_.getSVGElementSize(this.parent.node(),{useAttrs:!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}(wT),YC=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-title",e.renderType=I.SVG,e}return YC(e,t),e.prototype.render=function(){var t=_d.getProperty(this.model.getDisplayData(),0),e=this.getOptions(),n=this.getComponentContainer(),r=e.data.groupMapsTo,i=_d.getProperty(e,"meter","proportional");if(i)this.displayTotal(),this.displayBreakdownTitle();else{var o=n.selectAll("text.meter-title").data([t[r]]);o.enter().append("text").classed("meter-title",!0).merge(o).attr("x",0).attr("y","1em").text((function(t){return t})),o.exit().remove(),this.appendPercentage()}this.displayStatus();var a=this.getMaxTitleWidth(),s=Y_.appendOrSelect(n,"text.meter-title");a>0&&s.node().getComputedTextLength()>a&&this.truncateTitle(s,a)},e.prototype.displayBreakdownTitle=function(){var t,e=this.getComponentContainer(),n=this.getOptions(),r=this.model.getMaximumDomain(this.model.getDisplayData()),i=_d.getProperty(n,"meter","proportional","total"),o=_d.getProperty(n,"meter","proportional","unit")?_d.getProperty(n,"meter","proportional","unit"):"";if(r===i)t=null;else{var a=null!==i?i-r:r,s=_d.getProperty(n,"meter","proportional","breakdownFormatter");t=null!==s?s({datasetsTotal:r,total:i}):r+" "+o+" used ("+a+" "+o+" available)"}var u=e.selectAll("text.proportional-meter-title").data([t]);u.enter().append("text").classed("proportional-meter-title",!0).merge(u).attr("x",0).attr("y","1em").text((function(t){return t})),u.exit().remove();var c=this.getMaxTitleWidth(),l=Y_.appendOrSelect(e,"text.proportional-meter-title");c>0&&l.node().getComputedTextLength()>c&&this.truncateTitle(l,c)},e.prototype.displayTotal=function(){var t=this.getComponentContainer(),e=this.getOptions(),n=_d.getProperty(e,"meter","proportional","total"),r=n?_d.getProperty(e,"meter","proportional","total"):this.model.getMaximumDomain(this.model.getDisplayData()),i=_d.getProperty(e,"meter","proportional","unit")?_d.getProperty(e,"meter","proportional","unit"):"",o=_d.getProperty(e,"meter","proportional","totalFormatter"),a=null!==o?o(r):n+" "+i+" total",s=Y_.getHTMLElementSize(this.services.domUtils.getMainContainer()),u=s.width?s.width:this.parent.node().getAttribute("width"),c=t.selectAll("text.proportional-meter-total").data([a]);c.enter().append("text").classed("proportional-meter-total",!0).merge(c).attr("x",this.model.getStatus()?u-Et.total.paddingRight:u).attr("y","1em").attr("text-anchor","end").text((function(t){return t})),c.exit().remove()},e.prototype.displayStatus=function(){var t=this,e=this.getComponentContainer(),n=Y_.getHTMLElementSize(this.services.domUtils.getMainContainer()),r=n.width?n.width:0,i=this.model.getStatus(),o=Et.status.indicatorSize/2,a=Y_.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=_d.getProperty(this.model.getDisplayData(),0,"value"),e=this.getComponentContainer(),n=Y_.appendOrSelect(e,"text.meter-title"),r=!0===_d.getProperty(this.getOptions(),"meter","statusBar","percentageIndicator","enabled")?[t]:[],i=e.selectAll("text.percent-value").data(r),o=Et.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=Y_.appendOrSelect(this.parent,"tspan"),i=Et.statusBar.paddingRight,o=Math.ceil(r.node().getComputedTextLength()),a=Y_.appendOrSelect(this.parent,"text.percent-value");a.attr("x",+e.attr("x")+e.node().getComputedTextLength()+o+i)},e.prototype.getMaxTitleWidth=function(){var t=Y_.getHTMLElementSize(this.services.domUtils.getMainContainer()),e=_d.getProperty(this.getOptions(),"meter","proportional"),n=t.width?t.width:this.parent.node().getAttribute("width");if(null!==e){var r=Y_.appendOrSelect(this.parent,"text.proportional-meter-total").node(),i=Y_.getSVGElementSize(r,{useBBox:!0}).width;return n-i-Et.total.paddingLeft}var o=Y_.appendOrSelect(this.parent,"text.percent-value"),a=Et.statusBar.paddingRight,s=o.node().getComputedTextLength(),u=Y_.appendOrSelect(this.parent,"g.status-indicator").node(),c=Y_.getSVGElementSize(u,{useBBox:!0}).width+Et.status.paddingLeft;return n-s-a-c},e.prototype.getStatusIconPathString=function(t){switch(t){case nt.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 nt.DANGER:return"M10.7 11.5 4.5 5.3 5.3 4.5 11.5 10.7 Z";case nt.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}(qC),XC=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)}}(),KC=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.type="tooltip",i.renderType=I.HTML,i.isEventListenerAdded=!1,i.positionService=new HC,i.handleShowTooltip=function(t){var e=t.detail.data||t.detail.items,n=i.getTooltipHTML(t),r=Y_.appendOrSelect(i.tooltip,"div.content-box");if(_d.getProperty(i.getOptions(),"tooltip","customHTML"))if(t.detail.content){var o='<div class="title-tooltip"><p>'+t.detail.content+"</p></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 XC(e,t),e.prototype.addTooltipEventListener=function(){var t=this;this.services.events.addEventListener(ft.Tooltip.MOVE,(function(e){!1===t.tooltip.classed("hidden")&&t.positionTooltip(e)})),this.services.events.addEventListener(ft.Tooltip.SHOW,this.handleShowTooltip),this.services.events.addEventListener(ft.Tooltip.HIDE,this.handleHideTooltip),this.services.events.addEventListener(ft.Chart.MOUSEOUT,this.handleHideTooltip)},e.prototype.removeTooltipEventListener=function(){this.services.events.removeEventListener(ft.Tooltip.MOVE,null),this.services.events.removeEventListener(ft.Tooltip.SHOW,this.handleShowTooltip),this.services.events.removeEventListener(ft.Tooltip.HIDE,this.handleHideTooltip),this.services.events.removeEventListener(ft.Chart.MOUSEOUT,this.handleHideTooltip)},e.prototype.getItems=function(t){return t.detail.items?t.detail.items:[]},e.prototype.formatItems=function(t){var e=this,n=this.getOptions(),r=_d.getProperty(n,"tooltip","truncation","type"),i=_d.getProperty(n,"tooltip","truncation","threshold"),o=_d.getProperty(n,"tooltip","truncation","numCharacter");return r!==V.NONE?t.map((function(t){var n=t.labelIcon?12:0;return t.value=t.value?e.valueFormatter(t.value,t.label):t.value,t.label&&t.label.length+n>i&&(t.label=_d.truncateLabel(t.label,r,o)),t.value&&t.value.length>i&&(t.value=_d.truncateLabel(t.value,r,o)),t})):t},e.prototype.getTooltipHTML=function(t){var e;if(t.detail.content)e='<div class="title-tooltip"><p>'+t.detail.content+"</p></div>";else{var n=this.getItems(t),r=this.formatItems(n);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?'<div class="tooltip-color '+t.class+'"></div>':"")+"\n\t\t\t\t\t\t\t\t"+(t.color?'<div style="background-color: '+t.color+'" class="tooltip-color"></div>':"")+'\n\t\t\t\t\t\t\t\t<div class="label">\n\t\t\t\t\t\t\t\t<p>'+(t.label||"")+"</p>\n\t\t\t\t\t\t\t\t"+(t.labelIcon?'<span class="label-icon"/>'+t.labelIcon+"</span>":"")+"\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t"+(void 0===t.value||null===t.value?"":'<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,e){var n=this.getOptions(),r=_d.getProperty(n,"tooltip","valueFormatter");if(r)return r(t,e);if("function"===typeof t.getTime)return Em(t,"MMM d, yyyy");try{if("string"===typeof t&&/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z/.test(t))return Em(Date.parse(t),"MMM d, yyyy")}catch(i){}return t.toLocaleString()},e.prototype.render=function(){var t=this.getOptions(),e=_d.getProperty(t,"tooltip","enabled");if(e){var n=G_(this.services.domUtils.getHolder()),r=_d.getProperty(t,"style","prefix");this.tooltip=Y_.appendOrSelect(n,"div."+dt+"--"+r+"--tooltip"),this.tooltip.style("max-width",null).attr("role","tooltip"),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.getOptions(),o=_d.getProperty(i,"zoomBar","top","enabled"),a=_d.getProperty(t,"detail","mousePosition");if(a){var s=_d.getProperty(i,"zoomBar","top","type"),u=kt.height[s];o&&(a[1]+=u+kt.spacerHeight)}else a=wd(_d.getProperty(t,"detail","event"),n);var c,l=n.offsetWidth,h=n.offsetHeight;c=a[0]/l>.9?RC.LEFT:a[0]/l<.1?RC.RIGHT:this.positionService.findBestPlacementAt({left:a[0],top:a[1]},r,[RC.RIGHT,RC.LEFT,RC.TOP,RC.BOTTOM],(function(){return{width:l,height:h}}));var f=Pt.horizontalOffset;c===RC.LEFT&&(f*=-1),e=this.positionService.findPositionAt({left:a[0]+f,top:a[1]},r,c),this.positionService.setElement(r,e)},e}(wT),$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)}}(),QC=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},JC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return $C(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,i=this.getOptions(),o=this.services.cartesianScales,a=o.getDomainIdentifier(),s=o.isDualAxes(),u=i.data.groupMapsTo,c=o.getDomainLabel(),l=o.getRangeLabel(),h=n[0][a];if(1===n.length){var f=n[0],p=o.getRangeIdentifier(f);if(s){var d=o.getRangeAxisPosition({datum:f,groups:[f[u]]});l=o.getScaleLabel(d)}var v=f[p];r=QC([{label:c,value:h}],Array.isArray(v)&&2===v.length?[{label:"Start",value:v[0]},{label:"End",value:v[1]}]:[{label:l,value:f[p]}]),t.detail.additionalItems&&t.detail.additionalItems.forEach((function(t){return r.push({label:t.label,value:t.value})})),r.push({label:i.tooltip.groupLabel,value:f[u],color:this.model.getFillColor(f[u]),class:this.model.getColorClassName({classNameTypes:[j.TOOLTIP],dataGroupName:f[u]})})}else if(n.length>1&&(r=[{label:c,value:h}],r=r.concat(n.map((function(t){var n=t[o.getRangeIdentifier(t)];return{label:t[u],value:Array.isArray(n)&&2===n.length?n[0]+" - "+n[1]:n,color:e.model.getFillColor(t[u]),class:e.model.getColorClassName({classNameTypes:[j.TOOLTIP],dataGroupName:t[u]})}})).sort((function(t,e){return e.value-t.value}))),!s&&!0===_d.getProperty(i,"tooltip","showTotal"))){var g=o.getRangeIdentifier();r.push({label:Ml(i,"tooltip.totalLabel")||"Total",value:n.reduce((function(t,e){return t+e[g]}),0),bold:!0})}return r},e}(KC),tA=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)}}(),eA=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.type="chart-clip",i.renderType=I.SVG,i.chartClipId="chart-clip-id-"+Math.floor(99999999999*Math.random()),i.init(),i}return tA(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=Y_.appendOrSelect(t,"clipPath."+this.type).attr("id",this.chartClipId);var l=Y_.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}(wT),nA=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)}}(),rA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="canvas-chart-clip",e.chartClipId="canvas-chart-clip-id-"+Math.floor(99999999999*Math.random()),e}return nA(e,t),e.prototype.createClipPath=function(){var t=this.parent,e=Y_.getSVGElementSize(this.parent,{useAttrs:!0}),n=e.width,r=e.height;this.chartClipPath=Y_.appendOrSelect(t,"clipPath."+this.type).attr("id",this.chartClipId);var i=Y_.appendOrSelect(this.chartClipPath,"rect."+this.type);i.attr("x",0).attr("y",0).attr("width",n).attr("height",r),this.chartClipPath.merge(i).lower()},e}(eA),iA=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)}}(),oA=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n},aA=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.type="highlight",r.renderType=I.SVG,r.positionService=new HC,r.highlightStrokeWidth=1,r}return iA(e,t),e.prototype.render=function(t){void 0===t&&(t=!1);var e=_d.getProperty(this.getOptions(),"axes"),n=[];Object.keys(e).forEach((function(t){if(Object.values(B).includes(t)){var r=e[t];r.highlights&&r.highlights.data.length>0&&n.push({axisPosition:t,highlightStartMapsTo:r.highlights.highlightStartMapsTo,highlightEndMapsTo:r.highlights.highlightEndMapsTo,labelMapsTo:r.highlights.labelMapsTo,highlight:r.highlights.data,color:r.highlights.color})}}));var r=this.getComponentContainer({withinChartClip:!0}),i=r.selectAll("g.axis-highlight").data(n,(function(t){return t.axisPosition}));i.exit().attr("opacity",0).remove();var o=i.enter().append("g"),a=o.merge(i);a.attr("class",(function(t){return"axis-highlight "+t.axisPosition}));var s=a.selectAll("g.highlight-group").data((function(t){return t.highlight.map((function(e){return e.axisPosition=t.axisPosition,e.highlightStartMapsTo=t.highlightStartMapsTo,e.labelMapsTo=t.labelMapsTo,e.color=t.color,e.highlightEndMapsTo=t.highlightEndMapsTo,e}))}));s.exit().attr("opacity",0).remove();var u=s.enter().append("g");u.append("rect").attr("class","highlight-bar"),u.append("line").attr("class","highlight-line");var c=u.merge(s);c.attr("class","highlight-group");var l=this;a.each((function(e){var n=e.axisPosition,r=l.services.cartesianScales.getMainXScale(),i=l.services.cartesianScales.getMainYScale(),o=r.range(),a=o[0],s=o[1],u=i.range(),c=u[0],h=u[1],f=l.services.cartesianScales,p=f.getOrientation(),d=function(t){return f.getDomainValue(t)},v=function(t){return f.getRangeValue(t)},g=_d.flipDomainAndRangeBasedOnOrientation(d,v,p),m=g[0],y=g[1],_=G_(this);n===B.TOP||n===B.BOTTOM?_.selectAll("rect.highlight-bar").transition().call((function(e){return l.services.transitions.setupTransition({transition:e,name:"highlight-bar-update",animate:t})})).attr("y",Math.max(h+l.highlightStrokeWidth,0)).attr("height",Math.max(c-2*l.highlightStrokeWidth,0)).attr("x",(function(t){var e=t.highlightStartMapsTo,n=oA(t,["highlightStartMapsTo"]);return m(n[e])})).attr("width",(function(t){var e=t.highlightStartMapsTo,n=t.highlightEndMapsTo,r=oA(t,["highlightStartMapsTo","highlightEndMapsTo"]);return Math.max(m(r[n])-m(r[e]),0)})).style("stroke",(function(t){var e=t.color,n=t.labelMapsTo,r=oA(t,["color","labelMapsTo"]);return e&&e.scale[r[n]]?e.scale[r[n]]:null})).style("stroke-dasharray","2, 2").attr("stroke-width",l.highlightStrokeWidth+"px").style("fill-opacity",.1).style("fill",(function(t){var e=t.color,n=t.labelMapsTo,r=oA(t,["color","labelMapsTo"]);return e&&e.scale[r[n]]?e.scale[r[n]]:null})):_.selectAll("rect.highlight-bar").transition().call((function(e){return l.services.transitions.setupTransition({transition:e,name:"highlight-bar-update",animate:t})})).attr("x",a).attr("width",Math.max(s-a,0)).attr("y",(function(t){var e=t.highlightEndMapsTo,n=oA(t,["highlightEndMapsTo"]);return y(n[e])})).attr("height",(function(t){var e=t.highlightStartMapsTo,n=t.highlightEndMapsTo,r=oA(t,["highlightStartMapsTo","highlightEndMapsTo"]);return Math.max(y(r[e])-y(r[n]),0)})).style("stroke",(function(t){var e=t.color,n=t.labelMapsTo,r=oA(t,["color","labelMapsTo"]);return e&&e.scale[r[n]]?e.scale[r[n]]:null})).style("stroke-dasharray","2, 2").attr("stroke-width",l.highlightStrokeWidth+"px").style("fill-opacity",.1).style("fill",(function(t){var e=t.color,n=t.labelMapsTo,r=oA(t,["color","labelMapsTo"]);return e&&e.scale[r[n]]?e.scale[r[n]]:null}))}))},e}(wT);const sA=Math.PI,uA=2*sA,cA=1e-6,lA=uA-cA;function hA(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function fA(){return new hA}hA.prototype=fA.prototype={constructor:hA,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>cA)if(Math.abs(l*s-u*c)>cA&&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((sA-Math.acos((d+h-v)/(2*g*m)))/2),_=y/m,b=y/g;Math.abs(_-1)>cA&&(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)>cA||Math.abs(this._y1-c)>cA)&&(this._+="L"+u+","+c),n&&(h<0&&(h=h%uA+uA),h>lA?this._+="A"+n+","+n+",0,1,"+l+","+(t-a)+","+(e-s)+"A"+n+","+n+",0,1,"+l+","+(this._x1=u)+","+(this._y1=c):h>cA&&(this._+="A"+n+","+n+",0,"+ +(h>=sA)+","+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 pA=fA;function dA(t){return t[0]}function vA(t){return t[1]}var gA=function(t,e){var n=_v(!0),r=null,i=dS,o=null;function a(a){var s,u,c,l=(a=yv(a)).length,h=!1;for(null==r&&(o=i(c=pA())),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 t="function"===typeof t?t:void 0===t?dA:_v(t),e="function"===typeof e?e:void 0===e?vA:_v(e),a.x=function(e){return arguments.length?(t="function"===typeof e?e:_v(+e),a):t},a.y=function(t){return arguments.length?(e="function"===typeof t?t:_v(+t),a):e},a.defined=function(t){return arguments.length?(n="function"===typeof t?t:_v(!!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},mA=function(t,e,n){var r=null,i=_v(!0),o=null,a=dS,s=null;function u(u){var c,l,h,f,p,d=(u=yv(u)).length,v=!1,g=new Array(d),m=new Array(d);for(null==o&&(s=a(p=pA())),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]=+e(f,c,u),s.point(r?+r(f,c,u):g[c],n?+n(f,c,u):m[c]))}if(p)return s=null,p+""||null}function c(){return gA().defined(i).curve(a).context(o)}return t="function"===typeof t?t:void 0===t?dA:_v(+t),e="function"===typeof e?e:_v(void 0===e?0:+e),n="function"===typeof n?n:void 0===n?vA:_v(+n),u.x=function(e){return arguments.length?(t="function"===typeof e?e:_v(+e),r=null,u):t},u.x0=function(e){return arguments.length?(t="function"===typeof e?e:_v(+e),u):t},u.x1=function(t){return arguments.length?(r=null==t?null:"function"===typeof t?t:_v(+t),u):r},u.y=function(t){return arguments.length?(e="function"===typeof t?t:_v(+t),n=null,u):e},u.y0=function(t){return arguments.length?(e="function"===typeof t?t:_v(+t),u):e},u.y1=function(t){return arguments.length?(n=null==t?null:"function"===typeof t?t:_v(+t),u):n},u.lineX0=u.lineY0=function(){return c().x(t).y(e)},u.lineY1=function(){return c().x(t).y(n)},u.lineX1=function(){return c().x(r).y(e)},u.defined=function(t){return arguments.length?(i="function"===typeof t?t:_v(!!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},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)}}(),_A=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="area",e.renderType=I.SVG,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("legend-hover-area").call((function(t){return e.services.transitions.setupTransition({transition:t,name:"legend-hover-area"})})).attr("opacity",(function(t){return t.name!==n.datum()["name"]?vt.opacity.unselected:vt.opacity.selected}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("path.area").transition("legend-mouseout-area").call((function(t){return e.services.transitions.setupTransition({transition:t,name:"legend-mouseout-area"})})).attr("opacity",vt.opacity.selected)},e}return yA(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(ft.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(ft.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this.getComponentContainer({withinChartClip:!0}),r=this.getOptions(),i=[0,0],o=this.services.cartesianScales,a=o.getOrientation(),s=mA().curve(this.services.curves.getD3Curve()).defined((function(t,e){var n=o.getRangeIdentifier(),r=t[n];return null!==r&&void 0!==r})),u=this.model.getGroupedData(this.configs.groups),c=_d.getProperty(r,"bounds"),l=c&&u&&1===u.length;!l&&c&&console.warn("Bounds can only be shown when having 1 single datagroup, you've supplied "+u.length);var h=0,f=function(t,e){!1===_d.getProperty(r,"axes",t,"includeZero")&&e[0]>0&&e[1]>0&&(h=e[0])},p=function(t,e){return l?o.getBoundedScaledValues(t,e)[0]:o.getRangeValue(h)},d=function(t,e){return l?o.getBoundedScaledValues(t,e)[1]:o.getRangeValue(t,e)};a===G.VERTICAL?(i=o.getMainYScale().domain(),f(o.getMainYAxisPosition(),i),s.x((function(t,e){return o.getDomainValue(t,e)})).y0((function(t,e){return p(t,e)})).y1((function(t,e){return d(t,e)}))):(i=o.getMainXScale().domain(),f(o.getMainXAxisPosition(),i),s.x0((function(t,e){return p(t,e)})).x1((function(t,e){return d(t,e)})).y((function(t,e){return o.getDomainValue(t,e)})));var v=_d.getProperty(r,"color","gradient","enabled"),g=u&&1===u.length&&v;u.length>1&&v&&console.error("Gradients can only be enabled when having 1 single dataset");var m=n.selectAll("path.area").data(u,(function(t){return t.name})),y=G_(this.services.domUtils.getMainContainer());if(m.exit().attr("opacity",0).remove(),u.length){if(g){var _=y.select("path."+this.model.getColorClassName({classNameTypes:[j.STROKE],dataGroupName:u[0].name})).node(),b=void 0;if(_)b=getComputedStyle(_,null).getPropertyValue("stroke");else{var O=_d.getProperty(this.model.getOptions(),"color","scale");if(null!==O){var w=Object.keys(O);b=O[w[0]]}}eb.appendOrUpdateLinearGradient({svg:this.parent,id:this.services.domUtils.generateElementIDString(u[0].name.replace(" ","")+"_"+this.gradient_id),x1:"0%",x2:"0%",y1:"0%",y2:"100%",stops:eb.getStops(i,b)})}else this.parent.selectAll("defs linearGradient").empty()||this.parent.selectAll("defs linearGradient").each((function(){this.parentNode.remove()}));var x=this,E=m.enter().append("path");g?E.merge(m).style("fill",(function(t){return"url(#"+e.services.domUtils.generateElementIDString(t.name.replace(" ","")+"_"+e.gradient_id)+")"})).attr("class","area").attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[j.FILL],dataGroupName:t.name,originalClassName:"area"})})).attr("d",(function(t){var e=t.data;return s(e)})):(E.attr("opacity",0).merge(m).attr("class","area").attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[j.FILL,j.STROKE],dataGroupName:t.name,originalClassName:"area"})})).style("fill",(function(t){return x.model.getFillColor(t.name)})).transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"area-update-enter",animate:t})})).attr("opacity",l?1:vt.opacity.selected).attr("d",(function(t){var e=t.data;return s(e)})),l&&E.attr("fill-opacity",vt.opacity.selected).style("stroke",(function(t){return x.model.getStrokeColor(t.name)})).style("stroke-dasharray","2, 2").attr("stroke-width","0.7px"))}},e.prototype.destroy=function(){var t=this.services.events;t.removeEventListener(ft.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(ft.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e}(wT),bA=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)}}(),OA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="area-stacked",e.renderType=I.SVG,e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement,r=e.getOptions(),i=r.data.groupMapsTo;e.parent.selectAll("path.area").transition("legend-hover-area").call((function(t){return e.services.transitions.setupTransition({transition:t,name:"legend-hover-area"})})).attr("opacity",(function(t){return _d.getProperty(t,0,i)!==n.datum().name?vt.opacity.unselected:vt.opacity.selected}))},e.handleLegendMouseOut=function(){e.parent.selectAll("path.area").transition("legend-mouseout-area").call((function(t){return e.services.transitions.setupTransition({transition:t,name:"legend-mouseout-area"})})).attr("opacity",vt.opacity.selected)},e}return bA(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(ft.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(ft.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this.getComponentContainer({withinChartClip:!0}),r=this,i=this.getOptions(),o=i.data.groupMapsTo,s=Object.keys(i.axes).some((function(t){return i.axes[t].percentage})),u=this.model.getStackedData({percentage:s,groups:this.configs.groups}),c=_d.getProperty(u,0,0),l=this.services.cartesianScales.getDomainAxisPosition({firstDatum:c}),h=this.services.cartesianScales.getRangeAxisPosition({firstDatum:c}),f=this.services.cartesianScales.getScaleByPosition(h),p=n.selectAll("path.area").data(u,(function(t){return _d.getProperty(t,0,o)}));this.areaGenerator=mA().x((function(t,n){return e.services.cartesianScales.getValueThroughAxisPosition(l,t.data.sharedStackKey,n)})).y0((function(t){return f(t[0])})).y1((function(t){return f(t[1])})).curve(this.services.curves.getD3Curve()),p.exit().attr("opacity",0).remove();var d=p.enter().append("path").attr("opacity",0);d.merge(p).data(u,(function(t){return _d.getProperty(t,0,o)})).attr("class","area").attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[j.FILL],dataGroupName:_d.getProperty(t,0,o),originalClassName:"area"})})).style("fill",(function(t){return r.model.getFillColor(_d.getProperty(t,0,o))})).attr("role",a.GRAPHICS_SYMBOL).attr("aria-roledescription","area").attr("aria-label",(function(t){return _d.getProperty(t,0,o)})).transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"area-update-enter",animate:t})})).attr("opacity",vt.opacity.selected).attr("d",this.areaGenerator)},e}(wT),wA=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(){return null!==t&&t.apply(this,arguments)||this}return wA(e,t),e.prototype.getBarWidth=function(t){var e=this.getOptions();if(e.bars.width)return e.bars.width;var n=this.model.getDisplayData().length,r=this.services.cartesianScales.getMainXScale(),i=Y_.getSVGElementSize(this.parent,{useAttrs:!0}).width;if(!r.step){var o=_d.getProperty(e,"bars","spacingFactor");return Math.min(e.bars.maxWidth,i*o/n)}return Math.min(e.bars.maxWidth,r.step()/2)},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}(wT),EA=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)}}(),SA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="simple-bar",e.renderType=I.SVG,e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement,r=e.getOptions().data.groupMapsTo;e.parent.selectAll("path.bar").transition("legend-hover-simple-bar").call((function(t){return e.services.transitions.setupTransition({transition:t,name:"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("legend-mouseout-simple-bar").call((function(t){return e.services.transitions.setupTransition({transition:t,name:"legend-mouseout-simple-bar"})})).attr("opacity",1)},e}return EA(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(ft.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(ft.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this,n=this.getOptions(),r=n.data.groupMapsTo,i=this.getComponentContainer({withinChartClip:!0}),o=this.model.getDisplayData(this.configs.groups),s=this.services.cartesianScales.getOrientation(),u=i.selectAll("path.bar").data(o,(function(t){return t[r]}));u.exit().attr("opacity",0).remove();var c=u.enter().append("path").attr("opacity",0);c.merge(u).classed("bar",!0).attr("width",this.getBarWidth.bind(this)).transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"bar-update-enter",animate:t})})).attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[j.FILL],dataGroupName:t[r],originalClassName:"bar"})})).style("fill",(function(t){return e.model.getFillColor(t[r])})).attr("d",(function(t,n){var r,i,o=e.services.cartesianScales.getRangeIdentifier(),a=e.getBarWidth(),u=t[o],c=e.services.cartesianScales.getDomainValue(t,n)-a/2,l=c+a;if(Array.isArray(u)&&2===u.length)r=e.services.cartesianScales.getRangeValue(u[0]),i=e.services.cartesianScales.getRangeValue(u[1],n);else{var h=e.services.cartesianScales.getRangeScale(),f=h.domain()[0];r=e.services.cartesianScales.getRangeValue(Math.max(0,f)),i=e.services.cartesianScales.getRangeValue(t,n)}var p=Math.abs(i-r);if(0!==p&&p<2&&(i=u>0&&s===G.VERTICAL||u<0&&s===G.HORIZONTAL?r-2:r+2),!e.isOutsideZoomedDomain(c,l))return _d.generateSVGPathString({x0:c,x1:l,y0:r,y1:i},s)})).attr("opacity",1).attr("role",a.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,n){var r=G_(this);r.classed("hovered",!0),t.services.events.dispatchEvent(ft.Bar.BAR_MOUSEOVER,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(ft.Tooltip.SHOW,{event:e,hoveredElement:r,data:[n]})})).on("mousemove",(function(e,n){t.services.events.dispatchEvent(ft.Bar.BAR_MOUSEMOVE,{event:e,element:G_(this),datum:n}),t.services.events.dispatchEvent(ft.Tooltip.MOVE,{event:e})})).on("click",(function(e,n){t.services.events.dispatchEvent(ft.Bar.BAR_CLICK,{event:e,element:G_(this),datum:n})})).on("mouseout",(function(e,n){var r=G_(this);r.classed("hovered",!1),t.services.events.dispatchEvent(ft.Bar.BAR_MOUSEOUT,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(ft.Tooltip.HIDE,{hoveredElement:r})}))},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(ft.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(ft.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e}(xA),TA=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)}}(),MA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="grouped-bar",e.renderType=I.SVG,e.padding=5,e.defaultStepFactor=70,e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement,r=e.getOptions().data.groupMapsTo;e.parent.selectAll("path.bar").transition("legend-hover-bar").call((function(t){return e.services.transitions.setupTransition({transition:t,name:"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("legend-mouseout-bar").call((function(t){return e.services.transitions.setupTransition({transition:t,name:"legend-mouseout-bar"})})).attr("opacity",1)},e}return TA(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(ft.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(ft.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this,n=this.model.getDisplayData(this.configs.groups),r=this.getOptions(),i=r.data.groupMapsTo;this.setGroupScale();var o=this.getComponentContainer({withinChartClip:!0}),s=_d.removeArrayDuplicates(n.map((function(t){var n=e.services.cartesianScales.getDomainIdentifier(t);return t[n]&&"function"===typeof t[n].toString?t[n].toString():t[n]}))),u=o.selectAll("g.bars").data(s,(function(t){return t}));u.exit().attr("opacity",0).remove();var c=u.enter().append("g").classed("bars",!0).attr("role",a.GROUP).attr("data-name","bars"),l=c.merge(u);l.transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"bar-group-update-enter",animate:t})})).attr("transform",(function(t,n){var r=e.services.cartesianScales.getDomainValue(t,n),i=r-e.getGroupWidth()/2;return e.services.cartesianScales.getOrientation()===G.VERTICAL?"translate("+i+", 0)":"translate(0, "+i+")"}));var h=l.selectAll("path.bar").data((function(t){return e.getDataCorrespondingToLabel(t)}),(function(t){return t[i]}));h.exit().attr("opacity",0).remove();var f=h.enter().append("path").attr("opacity",0);f.merge(h).classed("bar",!0).transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"bar-update-enter",animate:t})})).attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[j.FILL],dataGroupName:t[i],originalClassName:"bar"})})).style("fill",(function(t){return e.model.getFillColor(t[i])})).attr("d",(function(t,n){var r=e.groupScale(t[i]),o=e.getBarWidth(),a=r,s=r+o,u=e.services.cartesianScales.getRangeAxisPosition({datum:t}),c=e.services.cartesianScales.getValueThroughAxisPosition(u,0),l=e.services.cartesianScales.getRangeValue(t),h=e.services.cartesianScales.getDomainValue(t,n)-o/2,f=h+o;if(!e.isOutsideZoomedDomain(h,f))return _d.generateSVGPathString({x0:a,x1:s,y0:c,y1:l},e.services.cartesianScales.getOrientation())})).attr("opacity",1).attr("role",a.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,n){var r=G_(this);r.classed("hovered",!0),t.services.events.dispatchEvent(ft.Bar.BAR_MOUSEOVER,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(ft.Tooltip.SHOW,{event:e,hoveredElement:r,data:[n]})})).on("mousemove",(function(e,n){var r=G_(this);t.services.events.dispatchEvent(ft.Bar.BAR_MOUSEMOVE,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(ft.Tooltip.MOVE,{event:e})})).on("click",(function(e,n){t.services.events.dispatchEvent(ft.Bar.BAR_CLICK,{event:e,element:G_(this),datum:n})})).on("mouseout",(function(e,n){var r=G_(this);r.classed("hovered",!1),t.services.events.dispatchEvent(ft.Bar.BAR_MOUSEOUT,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(ft.Tooltip.HIDE,{hoveredElement:r})}))},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(ft.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(ft.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.getDataCorrespondingToLabel=function(t){var e=this,n=this.model.getDisplayData(this.configs.groups);return n.filter((function(n){var r=e.services.cartesianScales.getDomainIdentifier(n);return n[r].toString()===t}))},e.prototype.getGroupWidth=function(){var t=this.model.getGroupedData(this.configs.groups),e=this.getTotalGroupPadding();return this.getBarWidth()*t.length+e},e.prototype.getDomainScaleStep=function(){var t=this.services.cartesianScales.getDomainScale(),e=this.model.getGroupedData(this.configs.groups),n=this.defaultStepFactor;if("function"===typeof t.step)n=t.step();else if(e.length>0){var r=e.find((function(t){var e;return(null===(e=t.data)||void 0===e?void 0:e.length)>1}));if(r){var i=this.services.cartesianScales.getDomainIdentifier(r.data[0]);n=Math.abs(t(r.data[1][i])-t(r.data[0][i]))}}return n},e.prototype.getTotalGroupPadding=function(){var t=this.model.getGroupedData(this.configs.groups);if(1===t.length)return 0;var e=Math.min(5,this.getDomainScaleStep()/this.defaultStepFactor*5);return e*(t.length-1)},e.prototype.getBarWidth=function(){var t=this.getOptions(),e=_d.getProperty(t,"bars","width"),n=_d.getProperty(t,"bars","maxWidth");if(null!==e&&(null===n||e<=n))return e;var r=this.model.getGroupedData(this.configs.groups),i=r.length,o=this.getTotalGroupPadding();return Math.min(n,(this.getDomainScaleStep()-o)/i)},e.prototype.setGroupScale=function(){var t=this.model.getActiveDataGroupNames(this.configs.groups);this.groupScale=xE().domain(t).rangeRound([0,this.getGroupWidth()])},e}(xA),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)}}(),AA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="stacked-bar",e.renderType=I.SVG,e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement,r=e.model.getOptions().data.groupMapsTo;e.parent.selectAll("path.bar").transition("legend-hover-bar").call((function(t){return e.services.transitions.setupTransition({transition:t,name:"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("legend-mouseout-bar").call((function(t){return e.services.transitions.setupTransition({transition:t,name:"legend-mouseout-bar"})})).attr("opacity",1)},e}return CA(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(ft.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(ft.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this,n=this.getComponentContainer({withinChartClip:!0}),r=this.getOptions(),i=r.data.groupMapsTo,o=this.model.getStackedData({groups:this.configs.groups,divergent:!0}),s=this.model.getActiveDataGroupNames(),u=n.selectAll("g.bars").data(o,(function(t){return _d.getProperty(t,0,i)}));u.exit().attr("opacity",0).remove(),u.enter().append("g").classed("bars",!0).attr("role",a.GROUP).attr("data-name","bars");var c=n.selectAll("g.bars").selectAll("path.bar").data((function(t){return t}),(function(t){return t.data.sharedStackKey}));c.exit().remove(),c.enter().append("path").merge(c).classed("bar",!0).transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"bar-update-enter",animate:t})})).attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[j.FILL],dataGroupName:t[i],originalClassName:"bar"})})).style("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,u=a+o,c=e.services.cartesianScales.getRangeValue(t[0],n),l=e.services.cartesianScales.getRangeValue(t[1],n);if(!e.isOutsideZoomedDomain(a,u)){if(Math.abs(l-c)>0&&Math.abs(l-c)>r.bars.dividerSize){var h=t[0]<0&&t[1]<=0;h&&s.length>1?e.services.cartesianScales.getOrientation()===G.VERTICAL?l+=0===t[1]?2:1:l-=1:h||(e.services.cartesianScales.getOrientation()===G.VERTICAL?l+=1:l-=1)}return _d.generateSVGPathString({x0:a,x1:u,y0:c,y1:l},e.services.cartesianScales.getOrientation())}})).attr("opacity",1).attr("role",a.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.getOptions(),e=t.data.groupMapsTo,n=this;this.parent.selectAll("path.bar").on("mouseover",(function(t,r){var i,o=G_(this);o.classed("hovered",!0),n.services.events.dispatchEvent(ft.Bar.BAR_MOUSEOVER,{event:t,element:o,datum:r});var a=n.model.getDisplayData(n.configs.groups),s=a.find((function(t){var i=n.services.cartesianScales.getDomainIdentifier(t),o=n.services.cartesianScales.getRangeIdentifier(t);return t[o]===r.data[r[e]]&&t[i].toString()===r.data.sharedStackKey&&t[e]===r[e]}));if(void 0===s){var u=n.services.cartesianScales.getDomainIdentifier(),c=n.services.cartesianScales.getRangeIdentifier();i={},i[u]=r.data.sharedStackKey,i[c]=r.data[r[e]],i[e]=r[e],s=i}n.services.events.dispatchEvent(ft.Tooltip.SHOW,{event:t,hoveredElement:o,data:[s]})})).on("mousemove",(function(t,e){var r=G_(this);n.services.events.dispatchEvent(ft.Bar.BAR_MOUSEMOVE,{event:t,element:r,datum:e}),n.services.events.dispatchEvent(ft.Tooltip.MOVE,{event:t})})).on("click",(function(t,e){n.services.events.dispatchEvent(ft.Bar.BAR_CLICK,{event:t,element:G_(this),datum:e})})).on("mouseout",(function(t,e){var r=G_(this);r.classed("hovered",!1),n.services.events.dispatchEvent(ft.Bar.BAR_MOUSEOUT,{event:t,element:r,datum:e}),n.services.events.dispatchEvent(ft.Tooltip.HIDE,{hoveredElement:r})}))},e.prototype.getBarWidth=function(){var t=this.getOptions();if(_d.getProperty(t,"bars","width"))return t.bars.width;var e=this.services.cartesianScales.getMainXScale(),n=Y_.getSVGElementSize(this.parent,{useAttrs:!0}).width,r=this.model.getStackKeys().length,i=_d.getProperty(t,"bars","spacingFactor");return e.step?Math.min(t.bars.maxWidth,e.step()/2):Math.min(t.bars.maxWidth,n*i/r)},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(ft.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(ft.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e}(xA),PA=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(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="boxplot",e.renderType=I.SVG,e}return PA(e,t),e.prototype.render=function(t){var e=this,n=this.getComponentContainer({withinChartClip:!0}),r=this.getOptions(),i=r.data.groupMapsTo,o=this.model.getDataGroupNames(),s=this.services.cartesianScales.getMainXScale(),u=this.services.cartesianScales.getMainYScale(),c=s.range(),l=c[0],h=c[1],f=u.range(),p=f[0],d=f[1],v=h-l,g=p-d;if(0!==v){var m=this.services.cartesianScales,y=m.getOrientation(),_=y===G.VERTICAL,b=_d.flipDomainAndRangeBasedOnOrientation((function(t,n){return e.services.cartesianScales.getDomainValue(t,n)}),(function(t,n){return e.services.cartesianScales.getRangeValue(t,n)}),y),O=b[0],w=b[1],x=Math.floor((_?v:g)/o.length),E=Math.min(x/2,16),S=this.model.getBoxplotData(),T=n.selectAll(".box-group").data(S);T.exit().remove();var M=T.enter().append("g").attr("class","box-group"),C=T.merge(M);M.append("path").merge(T.select("path.vertical-line.start")).attr("class",(function(){return e.model.getColorClassName({classNameTypes:[j.STROKE],originalClassName:"vertical-line start"})})).attr("stroke-width",bt.strokeWidth.default).attr("fill","none").transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"boxplot-update-verticalstartline",animate:t})})).attr("d",(function(t){var e=m.getDomainValue(t[i]),n=e,r=m.getRangeValue(t.whiskers.min),o=m.getRangeValue(t.quartiles.q_25);return _d.generateSVGPathString({x0:e,x1:n,y0:r,y1:o},y)})),M.append("path").merge(T.select("path.vertical-line.end")).attr("class",(function(){return e.model.getColorClassName({classNameTypes:[j.STROKE],originalClassName:"vertical-line end"})})).attr("stroke-width",bt.strokeWidth.default).attr("fill","none").transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"boxplot-update-verticalendline",animate:t})})).attr("d",(function(t){var e=m.getDomainValue(t[i]),n=e,r=m.getRangeValue(t.whiskers.max),o=m.getRangeValue(t.quartiles.q_75);return _d.generateSVGPathString({x0:e,x1:n,y0:r,y1:o},y)})),M.append("path").merge(T.select("path.box")).attr("class",(function(){return e.model.getColorClassName({classNameTypes:[j.FILL,j.STROKE],originalClassName:"box"})})).attr("fill-opacity",bt.box.opacity.default).attr("stroke-width",bt.strokeWidth.default).attr("role",a.GRAPHICS_SYMBOL).attr("aria-roledescription","box").attr("aria-label",(function(t){return t[i]})).transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"boxplot-update-quartiles",animate:t})})).attr("d",(function(t){var e=m.getDomainValue(t[i])-E/2,n=e+E,r=m.getRangeValue(Math[_?"max":"min"](t.quartiles.q_75,t.quartiles.q_25)),o=r+Math.abs(m.getRangeValue(t.quartiles.q_75)-m.getRangeValue(t.quartiles.q_25));return _d.generateSVGPathString({x0:e,x1:n,y0:r,y1:o},y)})),M.append("path").merge(T.select("path.highlight-area")).attr("class","highlight-area").attr("opacity",0).attr("d",(function(t){var e=m.getDomainValue(t[i])-E/2,n=e+E,r=m.getRangeValue(t.whiskers.min),o=m.getRangeValue(t.whiskers.max);return _d.generateSVGPathString({x0:e,x1:n,y0:r,y1:o},y)})),M.append("path").merge(T.select("path.whisker.start")).attr("class",(function(){return e.model.getColorClassName({classNameTypes:[j.STROKE],originalClassName:"whisker start"})})).attr("stroke-width",bt.strokeWidth.thicker).attr("fill","none").transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"boxplot-update-startingwhisker",animate:t})})).attr("d",(function(t){var e=m.getDomainValue(t[i])-E/4,n=e+E/2,r=m.getRangeValue(t.whiskers.min),o=m.getRangeValue(t.whiskers.min);return _d.generateSVGPathString({x0:e,x1:n,y0:r,y1:o},y)})),M.append("path").merge(T.select("path.median")).attr("fill","none").attr("class",(function(){return e.model.getColorClassName({classNameTypes:[j.STROKE],originalClassName:"median"})})).attr("stroke-width",2).transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"boxplot-update-median",animate:t})})).attr("d",(function(t){var e=m.getDomainValue(t[i])-E/2,n=e+E,r=m.getRangeValue(t.quartiles.q_50),o=r;return _d.generateSVGPathString({x0:e,x1:n,y0:r,y1:o},y)})),M.append("path").merge(T.select("path.whisker.end")).attr("class",(function(){return e.model.getColorClassName({classNameTypes:[j.STROKE],originalClassName:"whisker end"})})).attr("stroke-width",bt.strokeWidth.thicker).attr("fill","none").transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"boxplot-update-endingwhisker",animate:t})})).attr("d",(function(t){var e=m.getDomainValue(t[i])-E/4,n=e+E/2,r=m.getRangeValue(t.whiskers.max),o=m.getRangeValue(t.whiskers.max);return _d.generateSVGPathString({x0:e,x1:n,y0:r,y1:o},y)}));var A=C.selectAll("circle.outlier").data((function(t){return t.outliers.map((function(e){var n;return n={min:t.whiskers.min,max:t.whiskers.max},n[i]=t[i],n.value=e,n}))}));A.exit().remove();var P=A.enter().append("circle");A.merge(P).attr("r",bt.circle.radius).attr("class",(function(){return e.model.getColorClassName({classNameTypes:[j.FILL,j.STROKE],originalClassName:"outlier"})})).attr("fill-opacity",bt.circle.opacity.default).attr("cx",O).transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"boxplot-update-circles",animate:t})})).attr("cy",w),this.addBoxEventListeners(),this.addCircleEventListeners()}},e.prototype.addBoxEventListeners=function(){var t=this,e=this.getOptions(),n=e.data.groupMapsTo;this.parent.selectAll("path.highlight-area").on("mouseover",(function(r,i){var o=G_(this),a=G_(this.parentNode);a.select("path.box").classed("hovered",!0).attr("fill-opacity",bt.box.opacity.hovered),t.services.events.dispatchEvent(ft.Tooltip.SHOW,{event:r,hoveredElement:o,items:[{label:e.tooltip.groupLabel,value:i[n],class:t.model.getColorClassName({classNameTypes:[j.TOOLTIP]})},{label:"Minimum",value:i.whiskers.min},{label:"Q1",value:i.quartiles.q_25},{label:"Median",value:i.quartiles.q_50},{label:"Q3",value:i.quartiles.q_75},{label:"Maximum",value:i.whiskers.max},{label:"IQR",value:i.quartiles.q_75-i.quartiles.q_25}]}),t.services.events.dispatchEvent(ft.Boxplot.BOX_MOUSEOVER,{event:r,element:o,datum:i})})).on("mousemove",(function(e,n){var r=G_(this);t.services.events.dispatchEvent(ft.Boxplot.BOX_MOUSEMOVE,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(ft.Tooltip.MOVE,{event:e})})).on("click",(function(e,n){t.services.events.dispatchEvent(ft.Boxplot.BOX_CLICK,{event:e,element:G_(this),datum:n})})).on("mouseout",(function(e,n){var r=G_(this),i=G_(this.parentNode);i.select("path.box").classed("hovered",!1).attr("fill-opacity",bt.box.opacity.default),t.services.events.dispatchEvent(ft.Boxplot.BOX_MOUSEOUT,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(ft.Tooltip.HIDE,{hoveredElement:r})}))},e.prototype.addCircleEventListeners=function(){var t=this,e=this.getOptions(),n=e.data.groupMapsTo,r=this.services.cartesianScales.getRangeIdentifier();this.parent.selectAll("circle").on("mouseover",(function(i,o){var a=G_(this);a.classed("hovered",!0).attr("fill-opacity",bt.circle.opacity.hovered).classed("unfilled",!1),t.services.events.dispatchEvent(ft.Tooltip.SHOW,{event:i,hoveredElement:a,items:[{label:e.tooltip.groupLabel,value:o[n],class:t.model.getColorClassName({classNameTypes:[j.TOOLTIP]})},{label:"Outlier",value:o[r]}]}),t.services.events.dispatchEvent(ft.Boxplot.OUTLIER_MOUSEOVER,{event:i,element:a,datum:o})})).on("mousemove",(function(e,n){var r=G_(this);t.services.events.dispatchEvent(ft.Boxplot.OUTLIER_MOUSEMOVE,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(ft.Tooltip.MOVE,{event:e})})).on("click",(function(e,n){t.services.events.dispatchEvent(ft.Boxplot.OUTLIER_CLICK,{event:e,element:G_(this),datum:n})})).on("mouseout",(function(e,n){var r=G_(this);r.classed("hovered",!1).attr("fill-opacity",bt.circle.opacity.default),t.services.events.dispatchEvent(ft.Boxplot.OUTLIER_MOUSEOUT,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(ft.Tooltip.HIDE,{hoveredElement:r})}))},e}(wT),DA=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=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="scatter",e.renderType=I.SVG,e.handleChartHolderOnHover=function(t){e.parent.selectAll("circle.dot").transition("chart-holder-hover-scatter").call((function(t){return e.services.transitions.setupTransition({transition:t,name:"chart-holder-hover-scatter"})})).attr("opacity",1)},e.handleChartHolderOnMouseOut=function(t){e.parent.selectAll("circle.dot").transition("chart-holder-mouseout-scatter").call((function(t){return e.services.transitions.setupTransition({transition:t,name:"chart-holder-mouseout-scatter"})})).attr("opacity",0)},e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement,r=e.getOptions().data.groupMapsTo;e.parent.selectAll("circle.dot").transition("legend-hover-scatter").call((function(t){return e.services.transitions.setupTransition({transition:t,name:"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("legend-mouseout-scatter").call((function(t){return e.services.transitions.setupTransition({transition:t,name:"legend-mouseout-scatter"})})).attr("opacity",1)},e}return DA(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(ft.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(ft.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut);var e=this.configs.fadeInOnChartHolderMouseover;e&&(t.addEventListener(ft.Chart.MOUSEOVER,this.handleChartHolderOnHover),t.addEventListener(ft.Chart.MOUSEOUT,this.handleChartHolderOnMouseOut))},e.prototype.filterBasedOnZoomDomain=function(t){var e=this.services.cartesianScales.getDomainIdentifier(t),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.getScatterData=function(){var t,e=this,n=this.getOptions(),r=this.configs.stacked;if(r){var i=Object.keys(n.axes).some((function(t){return n.axes[t].percentage}));t=this.model.getStackedData({groups:this.configs.groups,percentage:i})}else t=this.model.getDisplayData(this.configs.groups).filter((function(t){var n=e.services.cartesianScales.getRangeIdentifier(t);return void 0!==t[n]&&null!==t[n]}));return this.filterBasedOnZoomDomain(t)},e.prototype.render=function(t){var e=_d.getProperty(this.getOptions(),"points","enabled")||_d.getProperty(this.getOptions(),"bubble","enabled");if(e){var n=this.getComponentContainer({withinChartClip:!0}),r=this.getOptions(),i=r.data.groupMapsTo,o=this.services.cartesianScales.getDomainIdentifier(),a=n.selectAll("circle.dot").data(this.getScatterData(),(function(t){return t[i]+"-"+t[o]}));a.exit().attr("opacity",0).remove();var s=a.enter().append("circle").classed("dot",!0).attr("opacity",0),u=s.merge(a);this.styleCircles(u,t),this.addEventListeners()}},e.prototype.isDatapointThresholdAnomaly=function(t,e){var n=this,r=this.configs.handleThresholds;if(!r)return!1;var i=this.services.cartesianScales,o=i.getOrientation(),a=_d.flipDomainAndRangeBasedOnOrientation(this.services.cartesianScales.getHighestDomainThreshold(),this.services.cartesianScales.getHighestRangeThreshold(),o),s=a[0],u=a[1],c=_d.flipDomainAndRangeBasedOnOrientation((function(t,e){return n.services.cartesianScales.getDomainValue(t,e)}),(function(t,e){return n.services.cartesianScales.getRangeValue(t,e)}),o),l=c[0],h=c[1],f=l(t,e),p=h(t,e);return u&&s?p<=u.scaleValue&&f>=s.scaleValue:u?p<=u.scaleValue:s?f>=s.scaleValue:void 0},e.prototype.styleCircles=function(t,e){var n=this,r=this.getOptions(),i=r.points,o=i.filled,s=i.fillOpacity,u=this.services,c=u.cartesianScales,l=(u.transitions,r.data.groupMapsTo),h=function(t,e){return c.getDomainValue(t,e)},f=function(t,e){return c.getRangeValue(t,e)},p=_d.flipDomainAndRangeBasedOnOrientation(h,f,c.getOrientation()),d=p[0],v=p[1],g=this.configs.fadeInOnChartHolderMouseover;t.raise().classed("dot",!0).attr("class",(function(t){var e=c.getDomainIdentifier(t),r=n.model.getIsFilled(t[l],t[e],t,o),i=r?[j.FILL,j.STROKE]:[j.STROKE];return n.model.getColorClassName({classNameTypes:i,dataGroupName:t[l],originalClassName:"dot"})})).classed("threshold-anomaly",(function(t,e){return n.isDatapointThresholdAnomaly(t,e)})).classed("filled",(function(t){var e=c.getDomainIdentifier(t);return n.model.getIsFilled(t[l],t[e],t,o)})).classed("unfilled",(function(t){var e=c.getDomainIdentifier(t);return!n.model.getIsFilled(t[l],t[e],t,o)})).transition().call((function(t){return n.services.transitions.setupTransition({transition:t,name:"scatter-update-enter",animate:e})})).attr("cx",d).attr("cy",v).attr("r",r.points.radius).style("fill",(function(t){var e=c.getDomainIdentifier(t);if(n.model.getIsFilled(t[l],t[e],t,o))return n.model.getFillColor(t[l],t[e],t)})).style("stroke",(function(t){var e=c.getDomainIdentifier(t);return n.model.getStrokeColor(t[l],t[e],t)})).attr("fill-opacity",o?s:1).attr("opacity",g?0:1).attr("role",a.GRAPHICS_SYMBOL).attr("aria-roledescription","point").attr("aria-label",(function(t){var e=c.getRangeIdentifier(t);return t[e]})),this.addEventListeners()},e.prototype.getTooltipAdditionalItems=function(t){return null},e.prototype.addEventListeners=function(){var t=this,e=t.getOptions().data.groupMapsTo;this.parent.selectAll("circle").on("mouseover",(function(n,r){var i=G_(this);i.classed("hovered",!0).attr("class",(function(n){return t.model.getColorClassName({classNameTypes:[j.FILL],dataGroupName:n[e],originalClassName:i.attr("class")})})).style("fill",(function(n){var r=t.services.cartesianScales.getDomainIdentifier(n);return t.model.getFillColor(n[e],n[r],n)})).classed("unfilled",!1),t.services.events.dispatchEvent(ft.Tooltip.SHOW,{event:n,hoveredElement:i,data:[r],additionalItems:t.getTooltipAdditionalItems(r)}),t.services.events.dispatchEvent(ft.Scatter.SCATTER_MOUSEOVER,{event:n,element:i,datum:r})})).on("mousemove",(function(e,n){var r=G_(this);t.services.events.dispatchEvent(ft.Scatter.SCATTER_MOUSEMOVE,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(ft.Tooltip.MOVE,{event:e})})).on("click",(function(e,n){t.services.events.dispatchEvent(ft.Scatter.SCATTER_CLICK,{event:e,element:G_(this),datum:n})})).on("mouseout",(function(n,r){var i=G_(this);if(i.classed("hovered",!1),!t.configs.filled){var o=t.getOptions().points.filled,a=t.services.cartesianScales.getDomainIdentifier(r),s=t.model.getIsFilled(r[e],r[a],r,o);i.classed("unfilled",!s).style("fill",(function(n){return s||o?t.model.getFillColor(n[e],n[a],n):null}))}t.services.events.dispatchEvent(ft.Scatter.SCATTER_MOUSEOUT,{event:n,element:i,datum:r}),t.services.events.dispatchEvent(ft.Tooltip.HIDE,{hoveredElement:i})}))},e.prototype.destroy=function(){this.parent.selectAll("circle").on("mousemove",null).on("mouseout",null);var t=this.services.events;t.removeEventListener(ft.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(ft.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut),t.removeEventListener(ft.Chart.MOUSEOVER,this.handleChartHolderOnHover),t.removeEventListener(ft.Chart.MOUSEOUT,this.handleChartHolderOnMouseOut)},e}(wT),RA=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)}}(),IA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="bubble",e.renderType=I.SVG,e}return RA(e,t),e.prototype.getRadiusScale=function(t){var e=this.getOptions(),n=e.bubble.radiusMapsTo,r=t.data(),i=r.map((function(t){return t[n]})).filter((function(t){return t})),o=Y_.getHTMLElementSize(this.services.domUtils.getMainContainer()),a=i.length>0,s=a?jv(i):[1,1];return AE().domain(s).range(a?e.bubble.radiusRange(o,r):[4,4])},e.prototype.styleCircles=function(t,e){var n=this,r=this.getOptions(),i=r.bubble.radiusMapsTo,o=this.getRadiusScale(t),s=r.data.groupMapsTo,u=this.services.cartesianScales,c=function(t,e){return u.getDomainValue(t,e)},l=function(t,e){return u.getRangeValue(t,e)},h=_d.flipDomainAndRangeBasedOnOrientation(c,l,u.getOrientation()),f=h[0],p=h[1];t.raise().classed("dot",!0).attr("role",a.GRAPHICS_SYMBOL).attr("aria-label",(function(t){var e=u.getRangeIdentifier(t);return t[e]})).transition().call((function(t){return n.services.transitions.setupTransition({transition:t,name:"bubble-update-enter",animate:e})})).attr("cx",f).attr("cy",p).attr("r",(function(t){return o(t[i]||1)})).attr("class",(function(t){return n.model.getColorClassName({classNameTypes:[j.FILL,j.STROKE],dataGroupName:t[s],originalClassName:"dot"})})).style("fill",(function(t){var e=n.services.cartesianScales.getDomainIdentifier(t);return n.model.getFillColor(t[s],t[e],t)})).style("stroke",(function(t){var e=n.services.cartesianScales.getDomainIdentifier(t);return n.model.getStrokeColor(t[s],t[e],t)})).attr("fill-opacity",r.bubble.fillOpacity).attr("opacity",1)},e.prototype.getTooltipAdditionalItems=function(t){var e=_d.getProperty(this.getOptions(),"bubble");return[{label:_d.getProperty(e,"radiusLabel"),value:t[_d.getProperty(e,"radiusMapsTo")]}]},e}(kA),NA=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)}}(),jA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="bullet",e.renderType=I.SVG,e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement,r=e.getOptions().data.groupMapsTo;e.parent.selectAll("path.bar").transition("legend-hover-simple-bar").call((function(t){return e.services.transitions.setupTransition({transition:t,name:"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("legend-mouseout-simple-bar").call((function(t){return e.services.transitions.setupTransition({transition:t,name:"legend-mouseout-simple-bar"})})).attr("opacity",1)},e}return NA(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(ft.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(ft.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this,n=this.getOptions(),r=n.data.groupMapsTo,i=this.getComponentContainer({withinChartClip:!0}),o=this.model.getDisplayData(this.configs.groups),s=this.services.cartesianScales.getRangeScale(),u=this.services.cartesianScales.getRangeIdentifier(),c=s.range(),l=c[0],h=c[1],f=s.domain(),p=(f[0],f[1]),d=function(){var n=[];o.forEach((function(t){t.ranges?t.ranges.forEach((function(e,r){null!==e&&void 0!==e&&e<p&&n.push({datum:t,value:e,order:r+1})})):n.push({datum:t,order:1})}));var a=Y_.appendOrSelect(i,"g.range-boxes").selectAll("path.range-box").data(n,(function(t){return t[r]+"-"+t.order}));a.exit().attr("opacity",0).remove();var s=a.enter().append("path").attr("opacity",0);s.merge(a).attr("class",(function(t){return"range-box order-"+t.order})).transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"bullet-range-box-update-enter",animate:t})})).attr("d",(function(t,n){var r,i,o,a,s=16;return 1===t.order?(r=e.services.cartesianScales.getDomainValue(t.datum,n)-s/2,i=r+s,o=h-2,a=l+1):(r=e.services.cartesianScales.getDomainValue(t.datum,n)-s/2,i=r+s,o=e.services.cartesianScales.getRangeValue(t.value,n),a=h),_d.generateSVGPathString({x0:r,x1:i,y0:o,y1:a},e.services.cartesianScales.getOrientation())})).attr("opacity",1)},v=function(){var n=Y_.appendOrSelect(i,"g.bars").selectAll("path.bar").data(o,(function(t){return t[r]}));n.exit().attr("opacity",0).remove();var s=n.enter().append("path").attr("opacity",0);s.merge(n).classed("bar",!0).transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"bullet-bar-update-enter",animate:t})})).attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[j.FILL],dataGroupName:t[r],originalClassName:"bar"})})).style("fill",(function(t){return e.model.getFillColor(t[r])})).attr("d",(function(t,n){var r=8,i=e.services.cartesianScales.getDomainValue(t,n)-r/2,o=i+r,a=e.services.cartesianScales.getRangeValue(0)+1,s=e.services.cartesianScales.getRangeValue(t,n);return _d.generateSVGPathString({x0:i,x1:o,y0:a,y1:s},e.services.cartesianScales.getOrientation())})).attr("opacity",1).attr("role",a.GRAPHICS_SYMBOL).attr("aria-roledescription","bar").attr("aria-label",(function(t){return t.value}))},g=function(){var n=Y_.appendOrSelect(i,"g.markers").selectAll("path.marker").data(o.filter((function(t){return null!==_d.getProperty(t,"marker")})),(function(t){return t[r]}));n.exit().attr("opacity",0).remove();var a=n.enter().append("path").attr("opacity",0);a.merge(n).classed("marker",!0).transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"bullet-marker-update-enter",animate:t})})).attr("d",(function(t,n){var r=24,i=e.services.cartesianScales.getDomainValue(t,n)-r/2,o=i+r,a=e.services.cartesianScales.getRangeValue(t.marker,n),s=a;return _d.generateSVGPathString({x0:i,x1:o,y0:a,y1:s},e.services.cartesianScales.getOrientation())})).attr("opacity",1)},m=function(){var n=[];o.filter((function(t){return null!==_d.getProperty(t,"marker")})).forEach((function(t){var e=t.marker,r=t[u];n=n.concat([{datum:t,value:.25*e,barValue:r},{datum:t,value:.5*e,barValue:r},{datum:t,value:.75*e,barValue:r}])}));var a=Y_.appendOrSelect(i,"g.quartiles").selectAll("path.quartile").data(n,(function(t){return t[r]}));a.exit().attr("opacity",0).remove();var s=a.enter().append("path").attr("opacity",0);s.merge(a).attr("class",(function(t){return"quartile "+(t.value<=t.barValue?"over-bar":"")})).transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"bullet-quartile-update-enter",animate:t})})).attr("d",(function(t,n){var r=t.datum,i=t.value,o=4;r.ranges&&-1!==r.ranges.indexOf(i)&&(o=8);var a=e.services.cartesianScales.getDomainValue(r,n)-o/2,s=a+o,u=e.services.cartesianScales.getRangeValue(i,n),c=u;return _d.generateSVGPathString({x0:a,x1:s,y0:u,y1:c},e.services.cartesianScales.getOrientation())})).attr("opacity",1)};d(),v(),g(),m(),this.addEventListeners()},e.prototype.addEventListeners=function(){var t=this,e=this.getOptions(),n=e.data.groupMapsTo,r=this.services.cartesianScales.getRangeIdentifier();this.parent.selectAll("path.bar").on("mouseover",(function(i,o){var a=G_(this);a.classed("hovered",!0),t.services.events.dispatchEvent(ft.Bar.BAR_MOUSEOVER,{event:i,element:a,datum:o});var s=_d.getProperty(e,"bullet","performanceAreaTitles"),u=t.model.getMatchingRangeIndexForDatapoint(o);t.services.events.dispatchEvent(ft.Tooltip.SHOW,{event:i,hoveredElement:a,items:[{label:e.tooltip.groupLabel||"Group",value:o[n],class:t.model.getColorClassName({classNameTypes:[j.TOOLTIP],dataGroupName:o[n]})},{label:"Value",value:o[r]},{label:"Target",value:o.marker},{label:"Percentage",value:Math.floor(o[r]/o.marker*100)+"%"},{label:"Performance",value:s[u]}]})})).on("mousemove",(function(e,n){t.services.events.dispatchEvent(ft.Bar.BAR_MOUSEMOVE,{event:e,element:G_(this),datum:n}),t.services.events.dispatchEvent(ft.Tooltip.MOVE,{event:e})})).on("click",(function(e,n){t.services.events.dispatchEvent(ft.Bar.BAR_CLICK,{event:e,element:G_(this),datum:n})})).on("mouseout",(function(e,n){var r=G_(this);r.classed("hovered",!1),t.services.events.dispatchEvent(ft.Bar.BAR_MOUSEOUT,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(ft.Tooltip.HIDE,{hoveredElement:r})}))},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(ft.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(ft.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e}(wT),BA=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)}}(),UA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="histogram",e.renderType=I.SVG,e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement,r=e.getOptions(),i=r.data.groupMapsTo;e.parent.selectAll("path.bar").transition("legend-hover-bar").call((function(t){return e.services.transitions.setupTransition({transition:t,name:"legend-hover-bar"})})).attr("opacity",(function(t){return t[i]!==n.datum()["name"]?.3:1}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("path.bar").transition("legend-mouseout-bar").call((function(t){return e.services.transitions.setupTransition({transition:t,name:"legend-mouseout-bar"})})).attr("opacity",1)},e}return BA(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(ft.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(ft.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this,n=this.getComponentContainer(),r=this.model.getOptions(),i=r.groupIdentifier,o=r.data.groupMapsTo,s=this.model.getBinnedStackedData(),u=this.services.cartesianScales.getMainXScale(),c=n.selectAll("g.bars").data(s,(function(t){return Ml(t,"0."+o)}));c.exit().attr("opacity",0).remove(),c.enter().append("g").classed("bars",!0).attr("role",a.GROUP);var l=n.selectAll("g.bars").selectAll("path.bar").data((function(t){return t}));l.exit().remove(),l.enter().append("path").merge(l).classed("bar",!0).attr(i,(function(t,e){return e})).transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"histogram-bar-update-enter",animate:t})})).attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[j.FILL],dataGroupName:t[o],originalClassName:"bar"})})).style("fill",(function(t){return e.model.getFillColor(t[o])})).attr("d",(function(t,n){var i=Ml(t,"data");if(i){var o=u(i.x1)-u(i.x0)-1,a=e.services.cartesianScales.getDomainValue(i.x0,n),s=a+o,c=e.services.cartesianScales.getRangeValue(t[0],n),l=e.services.cartesianScales.getRangeValue(t[1],n);return Math.abs(l-c)>0&&Math.abs(l-c)>r.bars.dividerSize&&(e.services.cartesianScales.getOrientation()===G.VERTICAL?l+=1:l-=1),_d.generateSVGPathString({x0:a,x1:s,y0:c,y1:l},e.services.cartesianScales.getOrientation())}})).attr("opacity",1).attr("role",a.GRAPHICS_SYMBOL).attr("aria-roledescription","bar").attr("aria-label",(function(t){return _d.getProperty(t,"data",t[o])})),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(r,i){var o=G_(this);o.classed("hovered",!0);var a=parseFloat(Ml(i,"data.x0")),s=parseFloat(Ml(i,"data.x1")),u=n.services.cartesianScales.getRangeAxisPosition(),c=n.services.cartesianScales.getScaleLabel(u);n.services.events.dispatchEvent(ft.Tooltip.SHOW,{event:r,hoveredElement:o,items:[{label:Ml(t,"bins.rangeLabel")||"Range",value:a+" – "+s},{label:t.tooltip.groupLabel||"Group",value:i[e],class:n.model.getColorClassName({classNameTypes:[j.TOOLTIP],dataGroupName:i[e]})},{label:c,value:Ml(i,"data."+i[e])}]})})).on("mousemove",(function(t,e){n.services.events.dispatchEvent(ft.Tooltip.MOVE,{event:t})})).on("mouseout",(function(t,e){var r=G_(this);r.classed("hovered",!1),n.services.events.dispatchEvent(ft.Tooltip.HIDE)}))},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(ft.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(ft.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e}(wT),VA=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)}}(),GA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="line",e.renderType=I.SVG,e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement;e.parent.selectAll("path.line").transition("legend-hover-line").call((function(t){return e.services.transitions.setupTransition({transition:t,name:"legend-hover-line"})})).attr("opacity",(function(t){return t.name!==n.datum()["name"]?xt.opacity.unselected:xt.opacity.selected}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("path.line").transition("legend-mouseout-line").call((function(t){return e.services.transitions.setupTransition({transition:t,name:"legend-mouseout-line"})})).attr("opacity",xt.opacity.selected)},e}return VA(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(ft.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(ft.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this.getComponentContainer({withinChartClip:!0}),r=this.services,i=r.cartesianScales,o=r.curves,s=function(t,e){return i.getDomainValue(t,e)},u=function(t,e){return i.getRangeValue(t,e)},c=_d.flipDomainAndRangeBasedOnOrientation(s,u,i.getOrientation()),l=c[0],h=c[1],f=this.getOptions(),p=gA().x(l).y(h).curve(o.getD3Curve()).defined((function(t,e){var n=i.getRangeIdentifier(t),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({groups:this.configs.groups,percentage:v});d=m.map((function(t){var n=e.services.cartesianScales.getDomainIdentifier(t),r=e.services.cartesianScales.getRangeIdentifier(t);return{name:_d.getProperty(t,0,g),data:t.map((function(t){var e;return e={},e[n]=t.data.sharedStackKey,e[g]=t[g],e[r]=t[1],e})),hidden:!_d.some(t,(function(t){return t[0]!==t[1]}))}}))}else d=this.model.getGroupedData(this.configs.groups);var y=n.selectAll("path.line").data(d,(function(t){return t.name}));y.exit().attr("opacity",0).remove();var _=y.enter().append("path").classed("line",!0).attr("opacity",0);_.merge(y).data(d,(function(t){return t.name})).attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[j.STROKE],dataGroupName:t.name,originalClassName:"line"})})).style("stroke",(function(t){return e.model.getStrokeColor(t.name)})).attr("role",a.GRAPHICS_SYMBOL).attr("aria-roledescription","line").attr("aria-label",(function(t){var n=t.data;return n.map((function(t){var n=e.services.cartesianScales.getRangeIdentifier(t);return t[n]})).join(",")})).transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"line-update-enter",animate:t})})).attr("opacity",(function(t){return t.hidden?0:1})).attr("d",(function(t){var e=t.data;return p(e)}))},e.prototype.destroy=function(){var t=this.services.events;t.removeEventListener(ft.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(ft.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e}(wT),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)}}(),zA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="lollipop",e.renderType=I.SVG,e.handleScatterOnHover=function(t){var n=t.detail,r=e.getOptions(),i=r.data.groupMapsTo;e.parent.selectAll("line.line").attr("stroke-width",(function(t){return t[i]!==n.datum[i]?xt.weight.unselected:xt.weight.selected}))},e.handleScatterOnMouseOut=function(t){e.parent.selectAll("line.line").attr("stroke-width",xt.weight.unselected)},e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement,r=e.getOptions(),i=r.data.groupMapsTo;e.parent.selectAll("line.line").transition("legend-hover-line").call((function(t){return e.services.transitions.setupTransition({transition:t,name:"legend-hover-line"})})).attr("opacity",(function(t){return t[i]!==n.datum()["name"]?xt.opacity.unselected:xt.opacity.selected}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("line.line").transition("legend-mouseout-line").call((function(t){return e.services.transitions.setupTransition({transition:t,name:"legend-mouseout-line"})})).attr("opacity",xt.opacity.selected)},e}return HA(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(ft.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(ft.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this,n=this.getComponentContainer({withinChartClip:!0}),r=this.model.getOptions(),i=r.data.groupMapsTo,o=this.services.cartesianScales,a=o.getMainXScale(),s=o.getMainYScale(),u=o.getDomainIdentifier(),c=function(t,e){return o.getDomainValue(t,e)},l=function(t,e){return o.getRangeValue(t,e)},h=o.getOrientation(),f=_d.flipDomainAndRangeBasedOnOrientation(c,l,h),p=f[0],d=f[1],v=n.selectAll("line.line").data(this.getScatterData(),(function(t){return t[i]+"-"+t[u]}));v.exit().attr("opacity",0).remove();var g=v.enter().append("line").attr("opacity",0),m=g.merge(v).classed("line",!0).attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[j.STROKE],dataGroupName:t[i],originalClassName:"line"})})).transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"lollipop-line-update-enter",animate:t})})).style("stroke",(function(t){return e.model.getFillColor(t[i],t[u],t)})).attr("opacity",1);h===G.HORIZONTAL?m.attr("y1",d).attr("y2",d).attr("x1",a.range()[0]).attr("x2",(function(t,e){return p(t,e)-r.points.radius})):m.attr("x1",p).attr("x2",p).attr("y1",s.range()[0]).attr("y2",(function(t,e){return d(t,e)+r.points.radius})),this.addScatterPointEventListeners()},e.prototype.addScatterPointEventListeners=function(){this.services.events.addEventListener(ft.Scatter.SCATTER_MOUSEOVER,this.handleScatterOnHover),this.services.events.addEventListener(ft.Scatter.SCATTER_MOUSEOUT,this.handleScatterOnMouseOut)},e.prototype.destroy=function(){var t=this.services.events;t.removeEventListener(ft.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(ft.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut),t.removeEventListener(ft.Scatter.SCATTER_MOUSEOVER,this.handleScatterOnHover),t.removeEventListener(ft.Scatter.SCATTER_MOUSEOUT,this.handleScatterOnMouseOut)},e}(kA),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="scatter-stacked",e.renderType=I.SVG,e}return FA(e,t),e.prototype.render=function(t){var e=this,n=_d.getProperty(this.getOptions(),"points","enabled");if(n){var r=this.getComponentContainer({withinChartClip:!0}),i=this.getOptions(),o=i.data.groupMapsTo,s=Object.keys(i.axes).some((function(t){return i.axes[t].percentage})),u=this.model.getStackedData({groups:this.configs.groups,percentage:s}),c=r.selectAll("g.dots").data(u,(function(t){return _d.getProperty(t,0,o)}));c.exit().attr("opacity",0).remove();var l=c.enter().append("g").classed("dots",!0).attr("role",a.GROUP),h=l.merge(c).selectAll("circle.dot").data((function(t){return t}));h.exit().attr("opacity",0).remove();var f=h.enter().append("circle").classed("dot",!0).attr("opacity",0),p=f.merge(h).datum((function(t){var n,r=t[o],i=e.services.cartesianScales.getDomainIdentifier(t),a=e.services.cartesianScales.getRangeIdentifier(t);return n={},n[o]=r,n[i]=t["data"]["sharedStackKey"],n[a]=t[1],n}));this.styleCircles(p,t),this.addEventListeners()}},e.prototype.getTooltipData=function(t,e){var n=this,r=this.getOptions(),i=r.data.groupMapsTo,o=Object.keys(r.axes).some((function(t){return r.axes[t].percentage})),a=this.model.getStackedData({groups:this.configs.groups,percentage:o}),s=[];return a.forEach((function(r,a){r.forEach((function(r,u){var c,l=r[i],h=r["data"]["sharedStackKey"],f=r["data"][l],p=r[1],d=n.services.cartesianScales.getDomainIdentifier(r),v=n.services.cartesianScales.getRangeIdentifier(r);null!==f&&void 0!==f&&t===n.services.cartesianScales.getDomainValue(h)&&e===n.services.cartesianScales.getRangeValue(p)&&(o&&(f=n.model.getStackedData({groups:n.configs.groups})[a][u]["data"][l]),null!==f&&s.push((c={},c[i]=l,c[d]=h,c[v]=f,c)))}))})),this.model.getDisplayData(this.configs.groups).filter((function(t){var e=n.services.cartesianScales.getDomainIdentifier(t),r=n.services.cartesianScales.getRangeIdentifier(t);return void 0!==s.find((function(n){return n[i]==t[i]&&n[e]==t[e]&&n[r]==t[r]}))}))},e}(kA);function qA(t){return t.innerRadius}function YA(t){return t.outerRadius}function ZA(t){return t.startAngle}function XA(t){return t.endAngle}function KA(t){return t&&t.padAngle}function $A(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<GS))return f=(l*(e-o)-h*(t-i))/f,[t+f*u,e+f*c]}function QA(t,e,n,r,i,o,a){var s=t-n,u=e-r,c=(a?o:-o)/VS(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+_*_,O=i-o,w=f*v-d*p,x=(_<0?-1:1)*VS(jS(0,O*O*b-w*w)),E=(w*_-y*x)/b,S=(-w*y-_*x)/b,T=(w*_+y*x)/b,M=(-w*y+_*x)/b,C=E-g,A=S-m,P=T-g,L=M-m;return C*C+A*A>P*P+L*L&&(E=T,S=M),{cx:E,cy:S,x01:-l,y01:-h,x11:E*(i/O-1),y11:S*(i/O-1)}}var JA=function(){var t=qA,e=YA,n=_v(0),r=null,i=ZA,o=XA,a=KA,s=null;function u(){var u,c,l=+t.apply(this,arguments),h=+e.apply(this,arguments),f=i.apply(this,arguments)-zS,p=o.apply(this,arguments)-zS,d=RS(p-f),v=p>f;if(s||(s=u=pA()),h<l&&(c=h,h=l,l=c),h>GS)if(d>FS-GS)s.moveTo(h*NS(f),h*US(f)),s.arc(0,0,h,f,p,!v),l>GS&&(s.moveTo(l*NS(p),l*US(p)),s.arc(0,0,l,p,f,v));else{var g,m,y=f,_=p,b=f,O=p,w=d,x=d,E=a.apply(this,arguments)/2,S=E>GS&&(r?+r.apply(this,arguments):VS(l*l+h*h)),T=BS(RS(h-l)/2,+n.apply(this,arguments)),M=T,C=T;if(S>GS){var A=qS(S/l*US(E)),P=qS(S/h*US(E));(w-=2*A)>GS?(A*=v?1:-1,b+=A,O-=A):(w=0,b=O=(f+p)/2),(x-=2*P)>GS?(P*=v?1:-1,y+=P,_-=P):(x=0,y=_=(f+p)/2)}var L=h*NS(y),D=h*US(y),k=l*NS(O),R=l*US(O);if(T>GS){var I,N=h*NS(_),j=h*US(_),B=l*NS(b),U=l*US(b);if(d<HS&&(I=$A(L,D,B,U,N,j,k,R))){var V=L-I[0],G=D-I[1],H=N-I[0],z=j-I[1],F=1/US(WS((V*H+G*z)/(VS(V*V+G*G)*VS(H*H+z*z)))/2),W=VS(I[0]*I[0]+I[1]*I[1]);M=BS(T,(l-W)/(F-1)),C=BS(T,(h-W)/(F+1))}}x>GS?C>GS?(g=QA(B,U,L,D,h,C,v),m=QA(N,j,k,R,h,C,v),s.moveTo(g.cx+g.x01,g.cy+g.y01),C<T?s.arc(g.cx,g.cy,C,IS(g.y01,g.x01),IS(m.y01,m.x01),!v):(s.arc(g.cx,g.cy,C,IS(g.y01,g.x01),IS(g.y11,g.x11),!v),s.arc(0,0,h,IS(g.cy+g.y11,g.cx+g.x11),IS(m.cy+m.y11,m.cx+m.x11),!v),s.arc(m.cx,m.cy,C,IS(m.y11,m.x11),IS(m.y01,m.x01),!v))):(s.moveTo(L,D),s.arc(0,0,h,y,_,!v)):s.moveTo(L,D),l>GS&&w>GS?M>GS?(g=QA(k,R,N,j,l,-M,v),m=QA(L,D,B,U,l,-M,v),s.lineTo(g.cx+g.x01,g.cy+g.y01),M<T?s.arc(g.cx,g.cy,M,IS(g.y01,g.x01),IS(m.y01,m.x01),!v):(s.arc(g.cx,g.cy,M,IS(g.y01,g.x01),IS(g.y11,g.x11),!v),s.arc(0,0,l,IS(g.cy+g.y11,g.cx+g.x11),IS(m.cy+m.y11,m.cx+m.x11),v),s.arc(m.cx,m.cy,M,IS(m.y11,m.x11),IS(m.y01,m.x01),!v))):s.arc(0,0,l,O,b,v):s.lineTo(k,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-HS/2;return[NS(r)*n,US(r)*n]},u.innerRadius=function(e){return arguments.length?(t="function"===typeof e?e:_v(+e),u):t},u.outerRadius=function(t){return arguments.length?(e="function"===typeof t?t:_v(+t),u):e},u.cornerRadius=function(t){return arguments.length?(n="function"===typeof t?t:_v(+t),u):n},u.padRadius=function(t){return arguments.length?(r=null==t?null:"function"===typeof t?t:_v(+t),u):r},u.startAngle=function(t){return arguments.length?(i="function"===typeof t?t:_v(+t),u):i},u.endAngle=function(t){return arguments.length?(o="function"===typeof t?t:_v(+t),u):o},u.padAngle=function(t){return arguments.length?(a="function"===typeof t?t:_v(+t),u):a},u.context=function(t){return arguments.length?(s=null==t?null:t,u):s},u},tP=function(t,e){return e<t?-1:e>t?1:e>=t?0:NaN},eP=function(t){return t},nP=function(){var t=eP,e=tP,n=null,r=_v(0),i=_v(FS),o=_v(0);function a(a){var s,u,c,l,h,f=(a=yv(a)).length,p=0,d=new Array(f),v=new Array(f),g=+r.apply(this,arguments),m=Math.min(FS,Math.max(-FS,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:_v(+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:_v(+t),a):r},a.endAngle=function(t){return arguments.length?(i="function"===typeof t?t:_v(+t),a):i},a.padAngle=function(t){return arguments.length?(o="function"===typeof t?t:_v(+t),a):o},a},rP=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 iP(t,e){var n=this,r=Mx(this._current,t);return function(t){return n._current=r(t),e(n._current)}}var oP=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="pie",e.renderType=I.SVG,e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement,r=e.getOptions().data.groupMapsTo;e.parent.selectAll("path.slice").transition("legend-hover-bar").call((function(t){return e.services.transitions.setupTransition({transition:t,name:"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("legend-mouseout-bar").call((function(t){return e.services.transitions.setupTransition({transition:t,name:"legend-mouseout-bar"})})).attr("opacity",1)},e}return rP(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(ft.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(ft.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.getInnerRadius=function(){return St.innerRadius},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this,r=this.getComponentContainer(),i=this.getOptions(),o=i.data.groupMapsTo,s=i.pie.valueMapsTo,u=this.model.getDisplayData().filter((function(t){return t[s]>0})),c=this.computeRadius();this.arc=JA().innerRadius(this.getInnerRadius()).outerRadius(c),this.hoverArc=JA().innerRadius(this.getInnerRadius()).outerRadius(c+St.hoverArc.outerRadiusOffset);var l=nP().value((function(t){return t[s]})).sort(_d.getProperty(i,"pie","sortFunction")).padAngle(St.padAngle),h=l(u),f=Y_.appendOrSelect(r,"g.slices").attr("role",a.GROUP).attr("data-name","slices"),p=f.selectAll("path.slice").data(h,(function(t){return t.data[o]}));p.exit().attr("opacity",0).remove();var d=p.enter().append("path").classed("slice",!0).attr("opacity",0),v=d.merge(p).attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[j.FILL],dataGroupName:t.data[o],originalClassName:"slice"})})).style("fill",(function(t){return n.model.getFillColor(t.data[o])})).attr("d",this.arc);v.transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"pie_slice_enter_update",animate:t})})).attr("opacity",1).attr("role",a.GRAPHICS_SYMBOL).attr("aria-roledescription","slice").attr("aria-label",(function(t){return t[s]+", "+_d.convertValueToPercentage(t.data[s],u,s)+"%"})).attrTween("d",(function(t){return iP.bind(this)(t,n.arc)}));var g=i.pie.labels.enabled,m=g?h.filter((function(t){return t.data[s]>0})):[],y=Y_.appendOrSelect(r,"g.labels").attr("role",a.GROUP).attr("data-name","labels"),_=y.selectAll("text.pie-label").data(m,(function(t){return t.data[o]}));_.exit().attr("opacity",0).remove();var b=_.enter().append("text").classed("pie-label",!0),O=[];b.merge(_).style("text-anchor","middle").text((function(t){return i.pie.labels.formatter?i.pie.labels.formatter(t):_d.convertValueToPercentage(t.data[s],u,s)+"%"})).datum((function(t){var e=c+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=m.length,r=(t.endAngle-t.startAngle)*(180/Math.PI);if(e>=n-2&&r<St.callout.minSliceDegree){var i=void 0,o=void 0;return t.index===n-1?(i=t.xPosition+St.callout.offsetX+St.callout.textMargin+t.textOffsetX,o=t.yPosition-St.callout.offsetY,t.direction=K.RIGHT,O.push(t)):(i=t.xPosition-St.callout.offsetX-t.textOffsetX-St.callout.textMargin,o=t.yPosition-St.callout.offsetY,t.direction=K.LEFT,O.push(t)),"translate("+i+", "+o+")"}return"translate("+t.xPosition+", "+t.yPosition+")"})),this.renderCallouts(O);var w=_d.getProperty(i,"donut")?"donut":"pie",x=_d.getProperty(i,w,"alignment"),E=Y_.getSVGElementSize(this.getParent(),{useAttrs:!0}).width,S=g?St.xOffset:0,T=g?St.yOffset:0,M=c+S;x===F.CENTER?M=E/2:x===F.RIGHT&&(M=E-c-St.xOffset);var C=c+T;O.length>0&&(C+=St.yOffsetCallout),r.attr("x",M+7).attr("y",C),this.addEventListeners()},e.prototype.renderCallouts=function(t){var e=Y_.appendOrSelect(this.getComponentContainer(),"g.callouts").attr("role",a.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",a.GROUP).attr("aria-roledescription","label callout");r.merge(n).datum((function(t){var e=t.xPosition,n=t.yPosition,r=t.direction;return r===K.RIGHT?(t.startPos={x:e,y:n+t.textOffsetY},t.endPos={x:e+St.callout.offsetX,y:n-St.callout.offsetY+t.textOffsetY},t.intersectPointX=t.endPos.x-St.callout.horizontalLineLength):(t.startPos={x:e,y:n+t.textOffsetY},t.endPos={x:e-St.callout.offsetX,y:n-St.callout.offsetY+t.textOffsetY},t.intersectPointX=t.endPos.x+St.callout.horizontalLineLength),t}));var i=r.append("line").classed("vertical-line",!0);i.merge(e.selectAll("line.vertical-line")).datum((function(t){return G_(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 o=r.append("line").classed("horizontal-line",!0);o.merge(e.selectAll("line.horizontal-line")).datum((function(t){return G_(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,n){var r=G_(this);r.classed("hovered",!0).transition("pie_slice_mouseover").call((function(e){return t.services.transitions.setupTransition({transition:e,name:"pie_slice_mouseover"})})).attr("d",t.hoverArc),t.services.events.dispatchEvent(ft.Pie.SLICE_MOUSEOVER,{event:e,element:G_(this),datum:n});var i=t.getOptions().data.groupMapsTo,o=t.getOptions().pie.valueMapsTo;t.services.events.dispatchEvent(ft.Tooltip.SHOW,{event:e,hoveredElement:r,items:[{label:n.data[i],value:n.data[o]}]})})).on("mousemove",(function(e,n){var r=G_(this);t.services.events.dispatchEvent(ft.Pie.SLICE_MOUSEMOVE,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(ft.Tooltip.MOVE,{event:e})})).on("click",(function(e,n){t.services.events.dispatchEvent(ft.Pie.SLICE_CLICK,{event:e,element:G_(this),datum:n})})).on("mouseout",(function(e,n){var r=G_(this);r.classed("hovered",!1).transition("pie_slice_mouseout").call((function(e){return t.services.transitions.setupTransition({transition:e,name:"pie_slice_mouseout"})})).attr("d",t.arc),t.services.events.dispatchEvent(ft.Pie.SLICE_MOUSEOUT,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(ft.Tooltip.HIDE,{hoveredElement:r})}))},e.prototype.computeRadius=function(){var t=Y_.getSVGElementSize(this.parent,{useAttrs:!0}),e=t.width,n=t.height,r=this.getOptions(),i=Math.min(e,n)/2,o=r.pie.labels.enabled;return o?i+St.radiusOffset:i},e}(wT),aP=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)}}(),sP="4,10 8,6 12,10",uP="12,6 8,10 4,6",cP=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="gauge",e.renderType=I.SVG,e}return aP(e,t),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=_d.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.getOptions(),e=_d.getProperty(t,"gauge","type"),n=e===tt.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.getOptions(),n=_d.getProperty(e,"gauge","deltaArrow","direction");switch(n){case et.UP:return sP;case et.DOWN:return uP;default:return t>0?sP:uP}},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this.getComponentContainer().attr("width","100%").attr("height","100%"),r=this.getOptions(),i=this.getValue(),o=this.getValueRatio(),s=this.getArcSize(),u=this.getStartAngle(),c=o*s,l=u+c,h=u+s,f=this.computeRadius(),p=this.getInnerRadius();this.backgroundArc=JA().innerRadius(p).outerRadius(f).startAngle(l).endAngle(h),this.arc=JA().innerRadius(p).outerRadius(f).startAngle(u).endAngle(l),Y_.appendOrSelect(n,"path.arc-background").attr("d",this.backgroundArc);var d=n.selectAll("path.arc-foreground").data([i]),v=d.enter().append("path");v.merge(d).attr("class",this.model.getColorClassName({classNameTypes:[j.FILL],dataGroupName:"value",originalClassName:"arc-foreground"})).style("fill",(function(t){return _d.getProperty(e.getOptions(),"color","scale","value")})).attr("d",this.arc).attr("role",a.GRAPHICS_SYMBOL).attr("aria-roledescription","value").attr("aria-label",(function(t){return t})),this.drawValueNumber(),this.drawDelta(),d.exit().remove();var g=_d.getProperty(r,"gauge","alignment"),m=Y_.getSVGElementSize(this.getParent(),{useAttrs:!0}).width,y=f;g===F.CENTER?y=m/2:g===F.RIGHT&&(y=m-f),n.attr("x",y).attr("y",f),this.addEventListeners()},e.prototype.drawValueNumber=function(){var t=this.getComponentContainer(),e=this.getOptions(),n=_d.getProperty(e,"gauge","type"),r=this.getValue(),i=this.getDelta(),o=this.computeRadius(),a=_d.getProperty(e,"gauge","valueFontSize"),s=_d.getProperty(e,"gauge","deltaFontSize"),u=_d.getProperty(e,"gauge","numberSpacing"),c=_d.getProperty(e,"gauge","showPercentageSymbol"),l=0;n!==tt.FULL||i?n===tt.SEMI&&i&&(l=-(s(o)+u)):l=s(o);var h=Y_.appendOrSelect(t,"g.gauge-numbers").attr("transform","translate(0, "+l+")"),f=a(o),p=Y_.appendOrSelect(h,"g.gauge-value-number"),d=_d.getProperty(e,"gauge","numberFormatter"),v=p.selectAll("text.gauge-value-number").data([r]);v.enter().append("text").attr("class","gauge-value-number").merge(v).style("font-size",f+"px").attr("text-anchor","middle").text((function(t){return d(t)}));var g=Y_.getSVGElementSize(Y_.appendOrSelect(t,"text.gauge-value-number"),{useBBox:!0}).width,m=f/2,y=c?"%":"",_=Y_.appendOrSelect(p,"text.gauge-value-symbol").style("font-size",m+"px").attr("x",g/2).text(y),b=Y_.getSVGElementSize(_,{useBBox:!0}),O=b.width,w=b.height;_.attr("y","-"+w/2+"px"),p.attr("transform","translate(-"+O/2+", 0)")},e.prototype.drawDelta=function(){var t=this,e=this.getComponentContainer(),n=this.getOptions(),r=this.getDelta(),i=this.computeRadius(),o=r?_d.getProperty(n,"gauge","deltaFontSize"):function(){return 0},a=r?_d.getProperty(n,"gauge","numberFormatter"):function(){return null},s=_d.getProperty(n,"gauge","deltaArrow","size"),u=_d.getProperty(n,"gauge","numberSpacing"),c=_d.getProperty(n,"gauge","showPercentageSymbol"),l=Y_.appendOrSelect(e,"g.gauge-numbers"),h=Y_.appendOrSelect(l,"g.gauge-delta").attr("transform","translate(0, "+(o(i)+u)+")"),f=Y_.appendOrSelect(h,"text.gauge-delta-number"),p=c?"%":"";f.data(null===r?[]:[r]),f.enter().append("text").classed("gauge-delta-number",!0).merge(f).attr("text-anchor","middle").style("font-size",o(i)+"px").text((function(t){return""+a(t)+p}));var d=Y_.getSVGElementSize(Y_.appendOrSelect(e,".gauge-delta-number"),{useBBox:!0}).width,v=_d.getProperty(n,"gauge","deltaArrow","enabled"),g=h.selectAll("svg.gauge-delta-arrow").data(null!==r&&v?[r]:[]);g.enter().append("svg").merge(g).attr("class","gauge-delta-arrow").attr("x",-s(i)-d/2).attr("y",-s(i)/2-.35*o(i)).attr("width",s(i)).attr("height",s(i)).attr("viewBox","0 0 16 16").each((function(){var e=G_(this);Y_.appendOrSelect(e,"rect.gauge-delta-arrow-backdrop").attr("width","16").attr("height","16").attr("fill","none");var i=_d.getProperty(n,"gauge","status");Y_.appendOrSelect(e,"polygon.gauge-delta-arrow").attr("class",null!==i?"gauge-delta-arrow status--"+i:"").attr("points",t.getArrow(r))})),g.exit().remove(),f.exit().remove()},e.prototype.getInnerRadius=function(){var t=this.computeRadius(),e=_d.getProperty(this.getOptions(),"gauge","arcWidth");return t-e},e.prototype.addEventListeners=function(){var t=this;this.parent.selectAll("path.arc-foreground").on("mouseover",(function(e,n){t.services.events.dispatchEvent(ft.Gauge.ARC_MOUSEOVER,{event:e,element:G_(this),datum:n})})).on("mousemove",(function(e,n){var r=G_(this);t.services.events.dispatchEvent(ft.Gauge.ARC_MOUSEMOVE,{event:e,element:r,datum:n})})).on("click",(function(e,n){t.services.events.dispatchEvent(ft.Gauge.ARC_CLICK,{event:e,element:G_(this),datum:n})})).on("mouseout",(function(e,n){var r=G_(this);t.services.events.dispatchEvent(ft.Gauge.ARC_MOUSEOUT,{event:e,element:r,datum:n})}))},e.prototype.computeRadius=function(){var t=this.getOptions(),e=_d.getProperty(t,"gauge","type"),n=Y_.getSVGElementSize(this.parent,{useAttrs:!0}),r=n.width,i=n.height,o=e===tt.SEMI?Math.min(r/2,i):Math.min(r/2,i/2);return o},e}(wT),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)}}(),hP=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="donut",e.renderType=I.SVG,e}return lP(e,t),e.prototype.render=function(e){var n=this;void 0===e&&(e=!0),t.prototype.render.call(this,e);var r=this;if(this.model.isDataEmpty())this.getComponentContainer().select("g.center").remove();else{var i=Y_.appendOrSelect(this.getComponentContainer(),"g.center"),o=this.getOptions(),a=this.computeRadius(),s=_d.getProperty(o,"donut","center","label");Y_.appendOrSelect(i,"text.donut-figure").attr("text-anchor","middle").style("dominant-baseline",(function(){return null===s||""===s?"central":"initial"})).style("font-size",(function(){return o.donut.center.numberFontSize(a)})).transition().call((function(t){return n.services.transitions.setupTransition({transition:t,name:"donut-figure-enter-update",animate:e})})).tween("text",(function(){return r.centerNumberTween(G_(this))})),null!==s&&""!==s&&Y_.appendOrSelect(i,"text.donut-title").attr("text-anchor","middle").style("font-size",(function(){return o.donut.center.titleFontSize(a)})).attr("y",o.donut.center.titleYPosition(a)).text(s)}},e.prototype.getInnerRadius=function(){var t=this.computeRadius();return.75*t},e.prototype.centerNumberTween=function(t){var e=this.getOptions(),n=_d.getProperty(e,"donut","center","number");null===n&&(n=this.model.getDisplayData().reduce((function(t,n){return t+n[e.pie.valueMapsTo]}),0));var r,i=parseInt(t.text().replace(/[, ]+/g,""),10)||0;r=i%1===0&&n%1===0?Cx:bx;var o=r(i,n);return function(n){var r=e.donut.center.numberFormatter;t.text(r(o(n)))}},e}(oP);const fP=t=>+t;var pP=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)}}(),dP=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="skeleton",e}return pP(e,t),e.prototype.render=function(){var t=_d.getProperty(this.getOptions(),"data","loading");t?this.renderSkeleton(t):this.removeSkeleton()},e.prototype.renderSkeleton=function(t){if(this.configs.skeleton===$.GRID)this.renderGridSkeleton(t);else if(this.configs.skeleton===$.VERT_OR_HORIZ)this.renderVertOrHorizSkeleton(t);else if(this.configs.skeleton===$.PIE)this.renderPieSkeleton(t);else{if(this.configs.skeleton!==$.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===G.VERTICAL&&this.drawYGrid(t),e===G.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=AE().domain([0,1]).range(t),this.yScale=AE().domain([0,1]).range(e)},e.prototype.drawBackdrop=function(t){var e=this.parent,n=Y_.getSVGElementSize(e,{useAttrs:!0}),r=n.width,i=n.height;this.backdrop=Y_.appendOrSelect(e,"svg.chart-skeleton.DAII").attr("width",r).attr("height",i);var o=Y_.appendOrSelect(this.backdrop,"rect.chart-skeleton-backdrop");o.attr("width","100%").attr("height","100%");var a=this.xScale.range(),s=a[0],u=(a[1],this.yScale.range()),c=(u[0],u[1]);this.backdrop.merge(o).attr("x",s).attr("y",c),o.classed("shimmer-effect-lines",t).classed("empty-state-lines",!t).style("stroke",t?"url(#"+this.services.domUtils.generateElementIDString("shimmer-lines")+")":null)},e.prototype.drawXGrid=function(t){var e=this.backdrop.attr("width"),n=_d.getProperty(this.getOptions(),"grid","x","numberOfTicks"),r=this.xScale.ticks(n).map((function(t){return t*e})),i=Y_.appendOrSelect(this.backdrop,"g.x.skeleton"),o=i.selectAll("line").data(r);o.enter().append("line").merge(o).attr("x1",(function(t){return t})).attr("x2",(function(t){return t})).attr("y1",0).attr("y2","100%"),i.selectAll("line").classed("shimmer-effect-lines",t).classed("empty-state-lines",!t).style("stroke",t?"url(#"+this.services.domUtils.generateElementIDString("shimmer-lines")+")":null)},e.prototype.drawYGrid=function(t){var e=this.backdrop.attr("height"),n=this.backdrop.attr("width"),r=_d.getProperty(this.getOptions(),"grid","y","numberOfTicks"),i=this.xScale.ticks(r).map((function(t){return t*e})),o=Y_.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).style("stroke",t?"url(#"+this.services.domUtils.generateElementIDString("shimmer-lines")+")":null)},e.prototype.drawRing=function(t,e,n){void 0===n&&(n=!0);var r=this.parent,i=Y_.getSVGElementSize(r,{useAttrs:!0}),o=i.width,a=i.height,s=Y_.appendOrSelect(r,"svg.chart-skeleton").attr("width",o).attr("height",a),u=0===e?"pie":"donut",c=_d.getProperty(this.getOptions(),u,"alignment");Y_.appendOrSelect(s,"rect.chart-skeleton-area-container").attr("width",o).attr("height",a).attr("fill","none");var l=JA().innerRadius(e).outerRadius(t).startAngle(0).endAngle(2*Math.PI),h=t+Math.abs(St.radiusOffset),f=t+(Math.min(o,a)-2*t)/2,p=Y_.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).style("fill",n?"url(#"+this.services.domUtils.generateElementIDString("shimmer-areas")+")":null),d=t+St.xOffset;c===F.CENTER?d=o/2:c===F.RIGHT&&(d=o-t-St.xOffset);var v=t+St.yOffset;p.attr("transform","translate("+d+", "+v+")")},e.prototype.computeOuterRadius=function(){var t=Y_.getSVGElementSize(this.parent,{useAttrs:!0}),e=t.width,n=t.height,r=Math.min(e,n)/2;return r+St.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=Y_.getSVGElementSize(this.parent,{useAttrs:!0}).width,u=0,c=s,l=Y_.appendOrSelect(a,"defs").lower(),h=Y_.appendOrSelect(l,"linearGradient").attr("id",this.services.domUtils.generateElementIDString(t)).attr("class",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(fP).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}(wT),vP=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)}}(),gP=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="skeleton-lines",e}return vP(e,t),e.prototype.render=function(){var e=_d.getProperty(this.getOptions(),"data","loading"),n=!_d.getProperty(this.getOptions(),"grid","x","enabled")&&!_d.getProperty(this.getOptions(),"grid","y","enabled")&&!_d.getProperty(this.getOptions(),"axes","bottom","visible")&&!_d.getProperty(this.getOptions(),"axes","left","visible");e&&!n?t.prototype.renderGridSkeleton.call(this,e):e&&n?this.renderSparklineSkeleton(e):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=Y_.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).style("stroke",t?"url(#"+this.services.domUtils.generateElementIDString("shimmer-lines")+")":null)},e.prototype.updateBackdropStyle=function(){var t=this.parent;this.backdrop=Y_.appendOrSelect(t,"svg.chart-skeleton.DAII");var e=Y_.appendOrSelect(this.backdrop,"rect.chart-skeleton-backdrop");e.classed("shimmer-effect-lines",!1).classed("shimmer-effect-sparkline",!0).style("stroke",null)},e}(dP);function mP(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 yP=function(){return this.eachAfter(mP)},_P=function(t,e){let n=-1;for(const r of this)t.call(e,r,++n,this);return this},bP=function(t,e){var n,r,i=this,o=[i],a=-1;while(i=o.pop())if(t.call(e,i,++a,this),n=i.children)for(r=n.length-1;r>=0;--r)o.push(n[r]);return this},OP=function(t,e){var n,r,i,o=this,a=[o],s=[],u=-1;while(o=a.pop())if(s.push(o),n=o.children)for(r=0,i=n.length;r<i;++r)a.push(n[r]);while(o=s.pop())t.call(e,o,++u,this);return this},wP=function(t,e){let n=-1;for(const r of this)if(t.call(e,r,++n,this))return r},xP=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}))},EP=function(t){return this.eachBefore((function(e){e.children&&e.children.sort(t)}))},SP=function(t){var e=this,n=TP(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 TP(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 MP=function(){var t=this,e=[t];while(t=t.parent)e.push(t);return e},CP=function(){return Array.from(this)},AP=function(){var t=[];return this.eachBefore((function(e){e.children||t.push(e)})),t},PP=function(){var t=this,e=[];return t.each((function(n){n!==t&&e.push({source:n.parent,target:n})})),e},LP=function*(){var t,e,n,r,i=this,o=[i];do{t=o.reverse(),o=[];while(i=t.pop())if(yield i,e=i.children)for(n=0,r=e.length;n<r;++n)o.push(e[n])}while(o.length)};function DP(t,e){t instanceof Map?(t=[void 0,t],void 0===e&&(e=IP)):void 0===e&&(e=RP);var n,r,i,o,a,s=new BP(t),u=[s];while(n=u.pop())if((i=e(n.data))&&(a=(i=Array.from(i)).length))for(n.children=i,o=a-1;o>=0;--o)u.push(r=i[o]=new BP(i[o])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(jP)}function kP(){return DP(this).eachBefore(NP)}function RP(t){return t.children}function IP(t){return Array.isArray(t)?t[1]:null}function NP(t){void 0!==t.data.value&&(t.value=t.data.value),t.data=t.data.data}function jP(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function BP(t){this.data=t,this.depth=this.height=0,this.parent=null}function UP(t,e){return t.parent===e.parent?1:2}function VP(t){return t.reduce(GP,0)/t.length}function GP(t,e){return t+e.x}function HP(t){return 1+t.reduce(zP,0)}function zP(t,e){return Math.max(t,e.y)}function FP(t){var e;while(e=t.children)t=e[0];return t}function WP(t){var e;while(e=t.children)t=e[e.length-1];return t}BP.prototype=DP.prototype={constructor:BP,count:yP,each:_P,eachAfter:OP,eachBefore:bP,find:wP,sum:xP,sort:EP,path:SP,ancestors:MP,descendants:CP,leaves:AP,links:PP,copy:kP,[Symbol.iterator]:LP};var qP=function(){var t=UP,e=1,n=1,r=!1;function i(i){var o,a=0;i.eachAfter((function(e){var n=e.children;n?(e.x=VP(n),e.y=HP(n)):(e.x=o?a+=t(e,o):0,e.y=0,o=e)}));var s=FP(i),u=WP(i),c=s.x-t(s,u)/2,l=u.x+t(u,s)/2;return i.eachAfter(r?function(t){t.x=(t.x-i.x)*e,t.y=(i.y-t.y)*n}:function(t){t.x=(t.x-c)/(l-c)*e,t.y=(1-(i.y?t.y/i.y:1))*n})}return i.separation=function(e){return arguments.length?(t=e,i):t},i.size=function(t){return arguments.length?(r=!1,e=+t[0],n=+t[1],i):r?null:[e,n]},i.nodeSize=function(t){return arguments.length?(r=!0,e=+t[0],n=+t[1],i):r?[e,n]:null},i};function YP(t,e){return t.parent===e.parent?1:2}function ZP(t){var e=t.children;return e?e[0]:t.t}function XP(t){var e=t.children;return e?e[e.length-1]:t.t}function KP(t,e,n){var r=n/(e.i-t.i);e.c-=r,e.s+=n,t.c+=r,e.z+=n,e.m+=n}function $P(t){var e,n=0,r=0,i=t.children,o=i.length;while(--o>=0)e=i[o],e.z+=n,e.m+=n,n+=e.s+(r+=e.c)}function QP(t,e,n){return t.a.parent===e.parent?t.a:n}function JP(t,e){this._=t,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=e}function tL(t){var e,n,r,i,o,a=new JP(t,0),s=[a];while(e=s.pop())if(r=e._.children)for(e.children=new Array(o=r.length),i=o-1;i>=0;--i)s.push(n=e.children[i]=new JP(r[i],i)),n.parent=e;return(a.parent=new JP(null,0)).children=[a],a}JP.prototype=Object.create(BP.prototype);var eL=function(){var t=YP,e=1,n=1,r=null;function i(i){var s=tL(i);if(s.eachAfter(o),s.parent.m=-s.z,s.eachBefore(a),r)i.eachBefore(u);else{var c=i,l=i,h=i;i.eachBefore((function(t){t.x<c.x&&(c=t),t.x>l.x&&(l=t),t.depth>h.depth&&(h=t)}));var f=c===l?1:t(c,l)/2,p=f-c.x,d=e/(l.x+f+p),v=n/(h.depth||1);i.eachBefore((function(t){t.x=(t.x+p)*d,t.y=t.depth*v}))}return i}function o(e){var n=e.children,r=e.parent.children,i=e.i?r[e.i-1]:null;if(n){$P(e);var o=(n[0].z+n[n.length-1].z)/2;i?(e.z=i.z+t(e._,i._),e.m=e.z-o):e.z=o}else i&&(e.z=i.z+t(e._,i._));e.parent.A=s(e,i,e.parent.A||r[0])}function a(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function s(e,n,r){if(n){var i,o=e,a=e,s=n,u=o.parent.children[0],c=o.m,l=a.m,h=s.m,f=u.m;while(s=XP(s),o=ZP(o),s&&o)u=ZP(u),a=XP(a),a.a=e,i=s.z+h-o.z-c+t(s._,o._),i>0&&(KP(QP(s,e,r),e,i),c+=i,l+=i),h+=s.m,c+=o.m,f+=u.m,l+=a.m;s&&!XP(a)&&(a.t=s,a.m+=h-l),o&&!ZP(u)&&(u.t=o,u.m+=c-f,r=e)}return r}function u(t){t.x*=e,t.y=t.depth*n}return i.separation=function(e){return arguments.length?(t=e,i):t},i.size=function(t){return arguments.length?(r=!1,e=+t[0],n=+t[1],i):r?null:[e,n]},i.nodeSize=function(t){return arguments.length?(r=!0,e=+t[0],n=+t[1],i):r?[e,n]:null},i};function nL(t){return t.source}function rL(t){return t.target}function iL(t){var e=nL,n=rL,r=dA,i=vA,o=null;function a(){var a,s=mv.call(arguments),u=e.apply(this,s),c=n.apply(this,s);if(o||(o=a=pA()),t(o,+r.apply(this,(s[0]=u,s)),+i.apply(this,s),+r.apply(this,(s[0]=c,s)),+i.apply(this,s)),a)return o=null,a+""||null}return a.source=function(t){return arguments.length?(e=t,a):e},a.target=function(t){return arguments.length?(n=t,a):n},a.x=function(t){return arguments.length?(r="function"===typeof t?t:_v(+t),a):r},a.y=function(t){return arguments.length?(i="function"===typeof t?t:_v(+t),a):i},a.context=function(t){return arguments.length?(o=null==t?null:t,a):o},a}function oL(t,e,n,r,i){t.moveTo(e,n),t.bezierCurveTo(e=(e+r)/2,n,e,i,r,i)}function aL(){return iL(oL)}var sL=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)}}(),uL=6,cL=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="tree",e.renderType=I.SVG,e}return sL(e,t),e.prototype.getLongestLabel=function(t){var e=this,n="";return t.forEach((function(t){var r=t.children?e.getLongestLabel(t.children):"";(r.length>n.length||t.name.length>n.length)&&(n=r.length>t.name.length?r:t.name)})),n},e.prototype.getMockLabelWidth=function(t,e){var n=t.append("text").attr("dy","0.31em").attr("x",0).attr("text-anchor","end").text(e),r=Y_.getSVGElementSize(n.node(),{useBBox:!0}).width;return n.remove(),r},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this.getComponentContainer();n.html("");var r=Y_.getSVGElementSize(this.parent,{useAttrs:!0}),i=r.width,o=r.height;if(!(i<1||o<1)){var a=this.model.getOptions(),s=this.model.getDisplayData(),u=_d.getProperty(a,"tree","rootTitle")||"Tree",c=this.getMockLabelWidth(n,u),l=this.getLongestLabel(s),h=this.getMockLabelWidth(n,l),f={top:0,right:0,bottom:0,left:c>0?c+uL:30-uL},p=DP({name:u,children:s}),d=10,v=i/6,g=function(t){var r=p.descendants().reverse(),o=p.links(),a=p,s=p;p.eachBefore((function(t){t.x<a.x&&(a=t),t.x>s.x&&(s=t)}));var u=s.x-a.x,c=n.transition().call((function(t){return e.services.transitions.setupTransition({transition:t,name:"tree-update-viewbox",animate:!0})})).attr("viewBox",[-f.left,a.x,i,u]),l=w.selectAll("g").data(r,(function(t){return t.id})),h=e,d=l.enter().append("g").attr("transform",(function(){return"translate("+t.y0+","+t.x0+")"})).attr("class",(function(t){return 0!==t.depth&&t.children&&t.children.length>0?"clickable":null})).on("mouseover",(function(t,e){h.services.events.dispatchEvent(ft.Tree.NODE_MOUSEOVER,{event:t,element:G_(this),datum:e})})).on("click",(function(t,e){0!==e.depth&&(e.children=e.children?null:e._children,g(e)),h.services.events.dispatchEvent(ft.Tree.NODE_CLICK,{event:t,element:G_(this),datum:e})})).on("mouseout",(function(t,e){h.services.events.dispatchEvent(ft.Tree.NODE_MOUSEOUT,{event:t,element:G_(this),datum:e})}));d.append("circle").attr("r",2.5).attr("class",(function(t){return t._children?"parent":"child"})).attr("stroke-width",10),d.append("text").attr("dy","0.31em").attr("x",(function(t){return t._children?-uL:uL})).attr("text-anchor",(function(t){return t._children?"end":"start"})).text((function(t){return t.data.name})).clone(!0).attr("class","text-stroke").lower(),l.merge(d).transition(c).attr("transform",(function(t){return"translate("+t.y+","+t.x+")"})).attr("fill-opacity",1).attr("stroke-opacity",1),l.exit().transition(c).remove().attr("transform",(function(){return"translate("+t.y+","+t.x+")"})).attr("fill-opacity",0).attr("stroke-opacity",0);var v=O.selectAll("path").data(o,(function(t){return t.target.id})),m=v.enter().append("path").attr("d",(function(e){var n={x:t.x0,y:t.y0};return b({source:n,target:n})}));v.merge(m).transition(c).attr("d",b),v.exit().transition(c).remove().attr("d",(function(){var e={x:t.x,y:t.y};return b({source:e,target:e})})),p.eachBefore((function(t){t.x0=t.x,t.y0=t.y}))},m=p.descendants(),y=m[m.length-1].depth,_=_d.getProperty(a,"tree","type")===q.DENDROGRAM?qP().size([o,i-h-y*uL-c]):eL().nodeSize([d,v]).size([o,i-h-y*uL-c]),b=aL().x((function(t){return t.y})).y((function(t){return t.x}));p.x0=v/2,p.y0=0,p.descendants().forEach((function(t,e){t.id=e,t._children=t.children})),_(p),n.attr("viewBox",[-f.left,-f.top,i,d]).style("user-select","none");var O=n.append("g").attr("class","links"),w=n.append("g").attr("class","nodes");g(p)}},e}(wT),lL=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)},hL=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},fL=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},pL=(1+Math.sqrt(5))/2;function dL(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,O=y.length,w=e.value;while(_<O){u=i-n,c=o-r;do{l=y[b++].value}while(!l&&b<O);for(h=f=l,v=Math.max(c/u,u/c)/(w*t),g=l*l*v,d=Math.max(f/g,g/h);b<O;++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?hL(a,n,r,i,w?r+=c*l/w:o):fL(a,n,r,w?n+=u*l/w:i,o),w-=l,_=b}return m}var vL=function t(e){function n(t,n,r,i,o){dL(e,t,n,r,i,o)}return n.ratio=function(e){return t((e=+e)>1?e:1)},n}(pL);function gL(t){return null==t?null:mL(t)}function mL(t){if("function"!==typeof t)throw new Error;return t}function yL(){return 0}var _L=function(t){return function(){return t}},bL=function(){var t=vL,e=!1,n=1,r=1,i=[0],o=yL,a=yL,s=yL,u=yL,c=yL;function l(t){return t.x0=t.y0=0,t.x1=n,t.y1=r,t.eachBefore(h),i=[0],e&&t.eachBefore(lL),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=mL(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:_L(+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:_L(+t),l):a},l.paddingRight=function(t){return arguments.length?(s="function"===typeof t?t:_L(+t),l):s},l.paddingBottom=function(t){return arguments.length?(u="function"===typeof t?t:_L(+t),l):u},l.paddingLeft=function(t){return arguments.length?(c="function"===typeof t?t:_L(+t),l):c},l},OL="#000000",wL="#ffffff",xL="#fcf4d6",EL="#fddc69",SL="#f1c21b",TL="#d2a106",ML="#b28600",CL="#8e6a00",AL="#684e00",PL="#483700",LL="#302400",DL="#1c1500",kL={10:xL,20:EL,30:SL,40:TL,50:ML,60:CL,70:AL,80:PL,90:LL,100:DL},RL="#fff2e8",IL="#ffd9be",NL="#ffb784",jL="#ff832b",BL="#eb6200",UL="#ba4e00",VL="#8a3800",GL="#5e2900",HL="#3e1a00",zL="#231000",FL={10:RL,20:IL,30:NL,40:jL,50:BL,60:UL,70:VL,80:GL,90:HL,100:zL},WL="#fff1f1",qL="#ffd7d9",YL="#ffb3b8",ZL="#ff8389",XL="#fa4d56",KL="#da1e28",$L="#a2191f",QL="#750e13",JL="#520408",tD="#2d0709",eD={10:WL,20:qL,30:YL,40:ZL,50:XL,60:KL,70:$L,80:QL,90:JL,100:tD},nD="#fff0f7",rD="#ffd6e8",iD="#ffafd2",oD="#ff7eb6",aD="#ee5396",sD="#d02670",uD="#9f1853",cD="#740937",lD="#510224",hD="#2a0a18",fD={10:nD,20:rD,30:iD,40:oD,50:aD,60:sD,70:uD,80:cD,90:lD,100:hD},pD="#f6f2ff",dD="#e8daff",vD="#d4bbff",gD="#be95ff",mD="#a56eff",yD="#8a3ffc",_D="#6929c4",bD="#491d8b",OD="#31135e",wD="#1c0f30",xD={10:pD,20:dD,30:vD,40:gD,50:mD,60:yD,70:_D,80:bD,90:OD,100:wD},ED="#edf5ff",SD="#d0e2ff",TD="#a6c8ff",MD="#78a9ff",CD="#4589ff",AD="#0f62fe",PD="#0043ce",LD="#002d9c",DD="#001d6c",kD="#001141",RD={10:ED,20:SD,30:TD,40:MD,50:CD,60:AD,70:PD,80:LD,90:DD,100:kD},ID="#e5f6ff",ND="#bae6ff",jD="#82cfff",BD="#33b1ff",UD="#1192e8",VD="#0072c3",GD="#00539a",HD="#003a6d",zD="#012749",FD="#061727",WD={10:ID,20:ND,30:jD,40:BD,50:UD,60:VD,70:GD,80:HD,90:zD,100:FD},qD="#d9fbfb",YD="#9ef0f0",ZD="#3ddbd9",XD="#08bdba",KD="#009d9a",$D="#007d79",QD="#005d5d",JD="#004144",tk="#022b30",ek="#081a1c",nk={10:qD,20:YD,30:ZD,40:XD,50:KD,60:$D,70:QD,80:JD,90:tk,100:ek},rk="#defbe6",ik="#a7f0ba",ok="#6fdc8c",ak="#42be65",sk="#24a148",uk="#198038",ck="#0e6027",lk="#044317",hk="#022d0d",fk="#071908",pk={10:rk,20:ik,30:ok,40:ak,50:sk,60:uk,70:ck,80:lk,90:hk,100:fk},dk="#f2f4f8",vk="#dde1e6",gk="#c1c7cd",mk="#a2a9b0",yk="#878d96",_k="#697077",bk="#4d5358",Ok="#343a3f",wk="#21272a",xk="#121619",Ek={10:dk,20:vk,30:gk,40:mk,50:yk,60:_k,70:bk,80:Ok,90:wk,100:xk},Sk="#f4f4f4",Tk="#e0e0e0",Mk="#c6c6c6",Ck="#a8a8a8",Ak="#8d8d8d",Pk="#6f6f6f",Lk="#525252",Dk="#393939",kk="#262626",Rk="#161616",Ik={10:Sk,20:Tk,30:Mk,40:Ck,50:Ak,60:Pk,70:Lk,80:Dk,90:kk,100:Rk},Nk="#f7f3f2",jk="#e5e0df",Bk="#cac5c4",Uk="#ada8a8",Vk="#8f8b8b",Gk="#726e6e",Hk="#565151",zk="#3c3838",Fk="#272525",Wk="#171414",qk={10:Nk,20:jk,30:Bk,40:Uk,50:Vk,60:Gk,70:Hk,80:zk,90:Fk,100:Wk},Yk={black:{100:OL},blue:RD,coolGray:Ek,cyan:WD,gray:Ik,green:pk,magenta:fD,orange:FL,purple:xD,red:eD,teal:nk,warmGray:qk,white:{0:wL},yellow:kL};var 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)}}(),Xk=function(t){if(!t)return null;for(var e=0,n=Object.keys(Yk);e<n.length;e++)for(var r=n[e],i=Yk[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},Kk=function(){var t,e=G_(this.parentNode).select("rect.leaf"),n=getComputedStyle(e.node(),null).getPropertyValue("fill"),r=qw(n);if(r&&(t=Xk(r?r.hex():null)),null===t||void 0===t){var i=rx(r).l;t=Math.abs(100*i-100)}return t>50?"white":"black"},$k=0,Qk=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="treemap",e.renderType=I.SVG,e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement;e.parent.selectAll("g[data-name='leaf']").transition("legend-hover-treemap").call((function(t){return e.services.transitions.setupTransition({transition:t,name:"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("legend-mouseout-treemap").call((function(t){return e.services.transitions.setupTransition({transition:t,name:"legend-mouseout-treemap"})})).attr("opacity",1)},e}return Zk(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(ft.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(ft.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this.getComponentContainer(),r=(this.model.getData(),this.model.getDisplayData()),i=this.model.getOptions(),o=_d.getProperty(window,"location"),a=Y_.getSVGElementSize(n,{useAttrs:!0}),s=a.width,u=a.height,c=DP({name:i.title||"Treemap",children:r}).sum((function(t){return t.value})).sort((function(t,e){return e.value-t.value})),l=bL().size([s,u]).paddingInner(1).paddingOuter(0).round(!0)(c),h=(this.services.transitions,n.selectAll("g[data-name='leaf']").data(l.leaves(),(function(t){return t.data.name})));h.exit().attr("opacity",0).remove();var f=h.enter().append("g").attr("data-name","leaf").attr("data-uid",(function(){return $k++})),p=f.merge(h);p.attr("data-name","leaf").transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"treemap-group-update",animate:t})})).attr("transform",(function(t){return"translate("+t.x0+","+t.y0+")"}));var d=p.selectAll("rect.leaf").data((function(t){return[t]}));d.exit().attr("width",0).attr("height",0).remove();var v=d.enter().append("rect").classed("leaf",!0);v.merge(d).attr("width",0).attr("height",0).attr("id",(function(){var t=G_(this.parentNode).attr("data-uid");return i.style.prefix+"-leaf-"+t})).attr("class",(function(t){while(t.depth>1)t=t.parent;return e.model.getColorClassName({classNameTypes:[j.FILL],dataGroupName:t.data.name,originalClassName:"leaf"})})).transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"treemap-leaf-update-enter",animate:t})})).attr("width",(function(t){return t.x1-t.x0})).attr("height",(function(t){return t.y1-t.y0})).style("fill",(function(t){while(t.depth>1)t=t.parent;return e.model.getFillColor(t.data.name)})),p.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=G_(this.parentNode).attr("data-uid");return i.style.prefix+"-clip-"+t})).append("use").attr("xlink:href",(function(){var t=G_(this.parentNode.parentNode).attr("data-uid"),e=i.style.prefix+"-leaf-"+t;return new URL("#"+e,o)+""}))}),(function(t){return null}),(function(t){return t.remove()})),p.selectAll("text").data((function(t){if(!0!==t.data.showLabel)return[];var n=t;while(n.depth>1)n=n.parent;var r=rx(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",Kk).attr("x",7).attr("y",18);o&&e.attr("clip-path",(function(){var t=G_(this.parentNode).attr("data-uid"),e=i.style.prefix+"-clip-"+t;return"url("+new URL("#"+e,o)+")"}))}),(function(t){return t.text((function(t){return t.text})).style("fill",Kk)}),(function(t){return t.remove()})),this.addEventListeners()},e.prototype.addEventListeners=function(){var t=this;this.parent.selectAll("rect.leaf").on("mouseover",(function(e,n){var r=G_(this),i=getComputedStyle(this,null).getPropertyValue("fill"),o=n;while(o.depth>1)o=o.parent;r.transition("graph_element_mouseover_fill_update").call((function(e){return t.services.transitions.setupTransition({transition:e,name:"graph_element_mouseover_fill_update"})})).style("fill",(function(e){var n=t.model.getFillColor(e.parent.data.name);return n&&(i=n),qw(i).darker(.7).toString()})),t.services.events.dispatchEvent(ft.Tooltip.SHOW,{event:e,hoveredElement:r,items:[{color:i,label:o.data.name,bold:!0},{label:n.data.name,value:n.data.value}]}),t.services.events.dispatchEvent(ft.Treemap.LEAF_MOUSEOVER,{event:e,element:r,datum:n})})).on("mousemove",(function(e,n){var r=G_(this);t.services.events.dispatchEvent(ft.Treemap.LEAF_MOUSEMOVE,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(ft.Tooltip.MOVE,{event:e})})).on("click",(function(e,n){t.services.events.dispatchEvent(ft.Treemap.LEAF_CLICK,{event:e,element:G_(this),datum:n})})).on("mouseout",(function(e,n){var r=G_(this);r.classed("hovered",!1);var i=n;while(i.depth>1)i=i.parent;r.transition().call((function(e){return t.services.transitions.setupTransition({transition:e,name:"graph_element_mouseout_fill_update"})})).style("fill",(function(e){return t.model.getFillColor(e.parent.data.name)})),t.services.events.dispatchEvent(ft.Treemap.LEAF_MOUSEOUT,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(ft.Tooltip.HIDE,{hoveredElement:r})}))},e}(wT);function Jk(t){var e=tR(nR(t),360);return eR(e,[0,10])||eR(e,[350,0])?{textAnchor:Q.START,dominantBaseline:J.MIDDLE}:eR(e,[10,80])?{textAnchor:Q.START,dominantBaseline:J.HANGING}:eR(e,[80,100])?{textAnchor:Q.MIDDLE,dominantBaseline:J.HANGING}:eR(e,[100,170])?{textAnchor:Q.END,dominantBaseline:J.HANGING}:eR(e,[170,190])?{textAnchor:Q.END,dominantBaseline:J.MIDDLE}:eR(e,[190,260])?{textAnchor:Q.END,dominantBaseline:J.BASELINE}:eR(e,[260,280])?{textAnchor:Q.MIDDLE,dominantBaseline:J.BASELINE}:{textAnchor:Q.START,dominantBaseline:J.BASELINE}}function tR(t,e){return(t%e+e)%e}function eR(t,e){var n=e[0],r=e[1];return t>=n&&t<=r}function nR(t){return t*(180/Math.PI)}function rR(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:isNaN(r)?0:r,y:isNaN(i)?0:i}}function iR(t,e){return e*Math.sin(t-Math.PI/2)}var oR=sR(dS);function aR(t){this._curve=t}function sR(t){function e(e){return new aR(t(e))}return e._curve=t,e}function uR(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(sR(t)):e()._curve},t}aR.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 cR=function(){return uR(gA().curve(oR))},lR=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)}}(),hR=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="radar",e.renderType=I.SVG,e.getLabelDimensions=function(t){var n=Y_.appendOrSelect(e.getComponentContainer(),"g.tmp-tick"),r=Y_.appendOrSelect(n,"text").text(t),i=Y_.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.getOptions(),r=_d.getProperty(n,"radar","axes"),i=r.angle,o=r.value,a=_d.getProperty(n,"data","groupMapsTo"),s=_d.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 _d.merge(s,t)},e.normalizeGroupedData=function(t){var n=e.getOptions(),r=_d.getProperty(n,"radar","axes"),i=r.angle,o=r.value,a=_d.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:_d.merge(s,r)}}))},e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement;e.parent.selectAll("g.blobs path").transition("legend-hover-blob").call((function(t){return e.services.transitions.setupTransition({transition:t,name:"legend-hover-blob"})})).style("fill-opacity",(function(t){return t.name!==n.datum().name?Tt.opacity.unselected:Tt.opacity.selected})).style("stroke-opacity",(function(t){return t.name!==n.datum().name?Tt.opacity.unselected:1}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("g.blobs path").transition("legend-mouseout-blob").call((function(t){return e.services.transitions.setupTransition({transition:t,name:"legend-mouseout-blob"})})).style("fill-opacity",Tt.opacity.selected).style("stroke-opacity",1)},e}return lR(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(ft.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(ft.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this.getComponentContainer(),r=Y_.getSVGElementSize(n,{useAttrs:!0}),i=r.width,o=r.height,s=this.model.getData(),u=this.model.getGroupedData(),c=this.getOptions(),l=_d.getProperty(c,"data","groupMapsTo"),h=_d.getProperty(c,"radar","axes","value"),f=_d.getProperty(c,"radar","axes"),p=f.angle,d=f.value,v=Tt,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[p]})))),this.uniqueGroups=Array.from(new Set(s.map((function(t){return t[l]})))),this.fullDataNormalized=this.normalizeFlatData(s),this.groupedDataNormalized=this.normalizeGroupedData(u);var O=this.getLabelDimensions(this.uniqueKeys[0]).height,w=2*(O+m),x=Math.min(i,o),E=x-w,S=E/2;if(!(S<=0)){var T=xE().domain(this.fullDataNormalized.map((function(t){return t[p]}))).range([0,2*Math.PI].map((function(t){return t-Math.PI/2}))),M=Tm(this.fullDataNormalized.map((function(t){return t[d]}))),C=AE().domain([M>=0?0:M,PE(this.fullDataNormalized.map((function(t){return t[d]})))]).range([_,S]).nice(y),A=C.ticks(y),P=function(t){return e.model.getFillColor(t)},L=cR().angle((function(t){return T(t[p])+Math.PI/2})).radius((function(t){return C(t[d])})).curve(mS),D=this.uniqueKeys.map((function(t){var n=e.getLabelDimensions(t).width,r=iR(T(t),S);return n+r})),k=PE(D),R={x:k+g,y:o/2},I=Y_.appendOrSelect(n,"g.y-axes").attr("role",a.GROUP),N=I.selectAll("path").data(A,(function(t){return t})),B=function(t){return e.uniqueKeys.map((function(e){var n;return n={},n[p]=e,n[d]=t,n}))};N.join((function(n){return n.append("path").attr("opacity",0).attr("transform","translate("+R.x+", "+R.y+")").attr("fill","none").call((function(n){return n.transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"radar_y_axes_enter",animate:t})})).attr("opacity",1).attr("d",(function(t){return L(B(t))}))}))}),(function(n){return n.call((function(n){return n.transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"radar_y_axes_update",animate:t})})).attr("opacity",1).attr("transform","translate("+R.x+", "+R.y+")").attr("d",(function(t){return L(B(t))}))}))}),(function(n){return n.call((function(n){return n.transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"radar_y_axes_exit",animate:t})})).attr("d",(function(t){return L(B(t))})).attr("opacity",0).remove()}))}));var U=Y_.appendOrSelect(n,"g.x-axes").attr("role",a.GROUP),V=U.selectAll("line").data(this.uniqueKeys,(function(t){return t}));V.join((function(n){return n.append("line").attr("opacity",0).attr("class",(function(t){return"x-axis-"+_d.kebabCase(t)})).attr("stroke-dasharray","0").attr("x1",(function(t){return rR(T(t),0,R).x})).attr("y1",(function(t){return rR(T(t),0,R).y})).attr("x2",(function(t){return rR(T(t),0,R).x})).attr("y2",(function(t){return rR(T(t),0,R).y})).call((function(n){return n.transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"radar_x_axes_enter",animate:t})})).attr("opacity",1).attr("x1",(function(t){return rR(T(t),C.range()[0],R).x})).attr("y1",(function(t){return rR(T(t),C.range()[0],R).y})).attr("x2",(function(t){return rR(T(t),C.range()[1],R).x})).attr("y2",(function(t){return rR(T(t),C.range()[1],R).y}))}))}),(function(n){return n.call((function(n){return n.transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"radar_x_axes_update",animate:t})})).attr("opacity",1).attr("x1",(function(t){return rR(T(t),C.range()[0],R).x})).attr("y1",(function(t){return rR(T(t),C.range()[0],R).y})).attr("x2",(function(t){return rR(T(t),C.range()[1],R).x})).attr("y2",(function(t){return rR(T(t),C.range()[1],R).y}))}))}),(function(n){return n.call((function(n){return n.transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"radar_x_axes_exit",animate:t})})).attr("opacity",0).remove()}))}));var G=Y_.appendOrSelect(n,"g.x-labels").attr("role",a.GROUP),H=G.selectAll("text").data(this.uniqueKeys);H.join((function(n){return n.append("text").text((function(t){return t})).attr("opacity",0).attr("x",(function(t){return rR(T(t),C.range()[1]+g,R).x})).attr("y",(function(t){return rR(T(t),C.range()[1]+g,R).y})).style("text-anchor",(function(t){return Jk(T(t)).textAnchor})).style("dominant-baseline",(function(t){return Jk(T(t)).dominantBaseline})).call((function(n){return n.transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"radar_x_labels_enter",animate:t})})).attr("opacity",1)}))}),(function(r){return r.call((function(r){return r.transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"radar_x_labels_update",animate:t})})).attr("opacity",1).attr("x",(function(t){return rR(T(t),C.range()[1]+g,R).x})).attr("y",(function(t){return rR(T(t),C.range()[1]+g,R).y})).end().finally((function(){var t=_d.getProperty(c,"radar","alignment"),r=e.getAlignmentXOffset(t,n,e.getParent());n.attr("x",r)}))}))}),(function(n){return n.call((function(n){return n.transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"radar_x_labels_exit",animate:t})})).attr("opacity",0).remove()}))}));var z=Y_.appendOrSelect(n,"g.blobs").attr("role",a.GROUP),F=z.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:[j.FILL,j.STROKE],dataGroupName:t.name,originalClassName:"blob"})})).attr("role",a.GRAPHICS_SYMBOL).attr("aria-label",(function(t){return t["name"]})).attr("opacity",0).attr("transform",t?function(){return"translate("+R.x+", "+R.y+") scale("+(1+.35*Math.random())+")"}:"translate("+R.x+", "+R.y+")").style("fill",(function(t){return P(t.name)})).style("fill-opacity",Tt.opacity.selected).style("stroke",(function(t){return P(t.name)})).call((function(n){var r=n.transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"radar_blobs_enter",animate:t})}));t&&r.delay((function(){return 30*Math.random()})).attr("transform","translate("+R.x+", "+R.y+")"),r.attr("opacity",1).attr("d",(function(t){return L(t.data)}))}))}),(function(n){n.attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[j.FILL,j.STROKE],dataGroupName:t.name,originalClassName:"blob"})})).style("fill",(function(t){return P(t.name)})).style("stroke",(function(t){return P(t.name)})),n.call((function(n){return n.transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"radar_blobs_update",animate:t})})).attr("opacity",1).attr("transform","translate("+R.x+", "+R.y+")").attr("d",(function(t){return L(t.data)}))}))}),(function(n){return n.call((function(n){var r=n.transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"radar_blobs_exit",animate:t})}));t&&r.delay((function(){return 30*Math.random()})).attr("transform",(function(){return"translate("+R.x+", "+R.y+") scale("+(1+.35*Math.random())+")"})),r.attr("opacity",0).remove()}))}));var W=Y_.appendOrSelect(n,"g.dots").attr("role",a.GROUP),q=W.selectAll("circle").data(this.fullDataNormalized.filter((function(t){return null!==_d.getProperty(t,d)})));q.join((function(t){return t.append("circle").attr("role",a.GRAPHICS_SYMBOL).attr("aria-label",(function(t){return t[h]}))}),(function(t){return t}),(function(t){return t.remove()})).attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[j.FILL],dataGroupName:t[l],originalClassName:_d.kebabCase(t[p])})})).attr("cx",(function(t){return rR(T(t[p]),C(t[d]),R).x})).attr("cy",(function(t){return rR(T(t[p]),C(t[d]),R).y})).attr("r",0).attr("opacity",0).style("fill",(function(t){return P(t[l])}));var Y=Y_.appendOrSelect(n,"g.x-axes-rect").attr("role",a.GROUP),Z=Y.selectAll("rect").data(this.uniqueKeys);Z.join((function(t){return t.append("rect")}),(function(t){return t}),(function(t){return t.remove()})).attr("x",R.x).attr("y",R.y-b/2).attr("width",C.range()[1]).attr("height",b).style("fill","red").style("fill-opacity",0).attr("transform",(function(t){return"rotate("+nR(T(t))+", "+R.x+", "+R.y+")"}));var X=Y_.appendOrSelect(n,"g.y-labels").attr("role",a.GROUP),K=X.selectAll("text").data(jv(A));K.join((function(n){return n.append("text").attr("opacity",0).text((function(t){return t})).attr("x",(function(t){return rR(-Math.PI/2,C(t),R).x+m})).attr("y",(function(t){return rR(-Math.PI/2,C(t),R).y})).style("text-anchor","start").style("dominant-baseline","middle").call((function(n){return n.transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"radar_y_labels_enter",animate:t})})).attr("opacity",1)}))}),(function(n){return n.call((function(n){return n.transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"radar_y_labels_update",animate:t})})).text((function(t){return t})).attr("opacity",1).attr("x",(function(t){return rR(-Math.PI/2,C(t),R).x+m})).attr("y",(function(t){return rR(-Math.PI/2,C(t),R).y}))}))}),(function(n){return n.call((function(n){return n.transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"radar_y_labels_exit",animate:t})})).attr("opacity",0).remove()}))})),this.addEventListeners()}},e.prototype.getAlignmentXOffset=function(t,e,n){var r=Y_.getSVGElementSize(e,{useBBox:!0}),i=Y_.getSVGElementSize(n,{useAttrs:!0}).width,o=0;return t===F.CENTER?o=Math.floor((i-r.width)/2):t===F.RIGHT&&(o=i-r.width),o},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(ft.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(ft.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.addEventListeners=function(){var t=this,e=_d.getProperty(this.getOptions(),"radar").axes.angle;this.parent.selectAll(".x-axes-rect > rect").on("mouseover",(function(n,r){var i=G_(this);t.services.events.dispatchEvent(ft.Radar.X_AXIS_MOUSEOVER,{event:n,element:i,datum:r});var o=t.parent.select(".x-axes .x-axis-"+_d.kebabCase(r)),a=t.parent.selectAll(".dots circle."+_d.kebabCase(r)),s=t.model.getActiveDataGroupNames(),u=t.getOptions(),c=u.data.groupMapsTo,l=_d.getProperty(u,"radar","axes","value");o.classed("hovered",!0).attr("stroke-dasharray","4 4"),a.classed("hovered",!0).attr("opacity",(function(t){return-1!==s.indexOf(t[c])?1:0})).attr("r",Tt.dotsRadius);var h=t.fullDataNormalized.filter((function(t){return t[e]===r&&-1!==s.indexOf(t[c])}));t.services.events.dispatchEvent(ft.Tooltip.SHOW,{event:n,hoveredElement:i,items:h.filter((function(t){return"number"===typeof t[l]})).map((function(e){return{label:e[c],value:e[l],color:t.model.getFillColor(e[c]),class:t.model.getColorClassName({classNameTypes:[j.TOOLTIP],dataGroupName:e[c]})}}))})})).on("mousemove",(function(e,n){var r=G_(this);t.services.events.dispatchEvent(ft.Radar.X_AXIS_MOUSEMOVE,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(ft.Tooltip.MOVE,{event:e})})).on("click",(function(e,n){t.services.events.dispatchEvent(ft.Radar.X_AXIS_CLICK,{event:e,element:G_(this),datum:n})})).on("mouseout",(function(e,n){var r=G_(this),i=t.parent.select(".x-axes .x-axis-"+_d.kebabCase(n)),o=t.parent.selectAll(".dots circle."+_d.kebabCase(n));i.classed("hovered",!1).attr("stroke-dasharray","0"),o.classed("hovered",!1).attr("opacity",0).attr("r",0),t.services.events.dispatchEvent(ft.Radar.X_AXIS_MOUSEOUT,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(ft.Tooltip.HIDE)}))},e}(wT),fR=function(t){return"object"===typeof t&&"length"in t?t:Array.from(t)};function pR(t){var e,n,r=t.length;while(r)n=Math.random()*r--|0,e=t[r],t[r]=t[n],t[n]=e;return t}var dR=function(t){var e,n,r=0,i=(t=pR(Array.from(t))).length,o=[];while(r<i)e=t[r],n&&mR(n,e)?++r:(n=_R(o=vR(o,e)),r=0);return n};function vR(t,e){var n,r;if(yR(e,t))return[e];for(n=0;n<t.length;++n)if(gR(e,t[n])&&yR(OR(t[n],e),t))return[t[n],e];for(n=0;n<t.length-1;++n)for(r=n+1;r<t.length;++r)if(gR(OR(t[n],t[r]),e)&&gR(OR(t[n],e),t[r])&&gR(OR(t[r],e),t[n])&&yR(wR(t[n],t[r],e),t))return[t[n],t[r],e];throw new Error}function gR(t,e){var n=t.r-e.r,r=e.x-t.x,i=e.y-t.y;return n<0||n*n<r*r+i*i}function mR(t,e){var n=t.r-e.r+1e-9*Math.max(t.r,e.r,1),r=e.x-t.x,i=e.y-t.y;return n>0&&n*n>r*r+i*i}function yR(t,e){for(var n=0;n<e.length;++n)if(!mR(t,e[n]))return!1;return!0}function _R(t){switch(t.length){case 1:return bR(t[0]);case 2:return OR(t[0],t[1]);case 3:return wR(t[0],t[1],t[2])}}function bR(t){return{x:t.x,y:t.y,r:t.r}}function OR(t,e){var n=t.x,r=t.y,i=t.r,o=e.x,a=e.y,s=e.r,u=o-n,c=a-r,l=s-i,h=Math.sqrt(u*u+c*c);return{x:(n+o+u/h*l)/2,y:(r+a+c/h*l)/2,r:(h+i+s)/2}}function wR(t,e,n){var r=t.x,i=t.y,o=t.r,a=e.x,s=e.y,u=e.r,c=n.x,l=n.y,h=n.r,f=r-a,p=r-c,d=i-s,v=i-l,g=u-o,m=h-o,y=r*r+i*i-o*o,_=y-a*a-s*s+u*u,b=y-c*c-l*l+h*h,O=p*d-f*v,w=(d*b-v*_)/(2*O)-r,x=(v*g-d*m)/O,E=(p*_-f*b)/(2*O)-i,S=(f*m-p*g)/O,T=x*x+S*S-1,M=2*(o+w*x+E*S),C=w*w+E*E-o*o,A=-(T?(M+Math.sqrt(M*M-4*T*C))/(2*T):C/M);return{x:r+w+x*A,y:i+E+S*A,r:A}}function xR(t,e,n){var r,i,o,a,s=t.x-e.x,u=t.y-e.y,c=s*s+u*u;c?(i=e.r+n.r,i*=i,a=t.r+n.r,a*=a,i>a?(r=(c+a-i)/(2*c),o=Math.sqrt(Math.max(0,a/c-r*r)),n.x=t.x-r*s-o*u,n.y=t.y-r*u+o*s):(r=(c+i-a)/(2*c),o=Math.sqrt(Math.max(0,i/c-r*r)),n.x=e.x+r*s-o*u,n.y=e.y+r*u+o*s)):(n.x=e.x+n.r,n.y=e.y)}function ER(t,e){var n=t.r+e.r-1e-6,r=e.x-t.x,i=e.y-t.y;return n>0&&n*n>r*r+i*i}function SR(t){var e=t._,n=t.next._,r=e.r+n.r,i=(e.x*n.r+n.x*e.r)/r,o=(e.y*n.r+n.y*e.r)/r;return i*i+o*o}function TR(t){this._=t,this.next=null,this.previous=null}function MR(t){if(!(i=(t=fR(t)).length))return 0;var e,n,r,i,o,a,s,u,c,l,h;if(e=t[0],e.x=0,e.y=0,!(i>1))return e.r;if(n=t[1],e.x=-n.r,n.x=e.r,n.y=0,!(i>2))return e.r+n.r;xR(n,e,r=t[2]),e=new TR(e),n=new TR(n),r=new TR(r),e.next=r.previous=n,n.next=e.previous=r,r.next=n.previous=e;t:for(s=3;s<i;++s){xR(e._,n._,r=t[s]),r=new TR(r),u=n.next,c=e.previous,l=n._.r,h=e._.r;do{if(l<=h){if(ER(u._,r._)){n=u,e.next=n,n.previous=e,--s;continue t}l+=u._.r,u=u.next}else{if(ER(c._,r._)){e=c,e.next=n,n.previous=e,--s;continue t}h+=c._.r,c=c.previous}}while(u!==c.next);r.previous=e,r.next=n,e.next=n.previous=n=r,o=SR(e);while((r=r.next)!==n)(a=SR(r))<o&&(e=r,o=a);n=e.next}e=[n._],r=n;while((r=r.next)!==n)e.push(r._);for(r=dR(e),s=0;s<i;++s)e=t[s],e.x-=r.x,e.y-=r.y;return r.r}function CR(t){return Math.sqrt(t.value)}var AR=function(){var t=null,e=1,n=1,r=yL;function i(i){return i.x=e/2,i.y=n/2,t?i.eachBefore(PR(t)).eachAfter(LR(r,.5)).eachBefore(DR(1)):i.eachBefore(PR(CR)).eachAfter(LR(yL,1)).eachAfter(LR(r,i.r/Math.min(e,n))).eachBefore(DR(Math.min(e,n)/(2*i.r))),i}return i.radius=function(e){return arguments.length?(t=gL(e),i):t},i.size=function(t){return arguments.length?(e=+t[0],n=+t[1],i):[e,n]},i.padding=function(t){return arguments.length?(r="function"===typeof t?t:_L(+t),i):r},i};function PR(t){return function(e){e.children||(e.r=Math.max(0,+t(e)||0))}}function LR(t,e){return function(n){if(r=n.children){var r,i,o,a=r.length,s=t(n)*e||0;if(s)for(i=0;i<a;++i)r[i].r+=s;if(o=MR(r),s)for(i=0;i<a;++i)r[i].r-=s;n.r=o+s}}}function DR(t){return function(e){var n=e.parent;e.r*=t,n&&(e.x=n.x+t*e.x,e.y=n.y+t*e.y)}}var kR=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)}}(),RR=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},IR=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="circle-pack",e.renderType=I.SVG,e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement;e.parent.selectAll("circle.node").transition("legend-hover-circlepack").call((function(t){return e.services.transitions.setupTransition({transition:t,name:"legend-hover-circlepack"})})).attr("opacity",(function(t){return t.data.dataGroupName===n.datum()["name"]?1:yt.circles.fillOpacity}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("circle.node").transition("legend-mouseout-circlepack").call((function(t){return e.services.transitions.setupTransition({transition:t,name:"legend-mouseout-circlepack"})})).attr("opacity",1)},e}return kR(e,t),e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this.getComponentContainer({withinChartClip:!0}),r=Y_.getSVGElementSize(this.parent,{useAttrs:!0}),i=r.width,o=r.height;if(!(i<1||o<1)){var a=this.model.getDisplayData(),s=this.model.hasParentNode(),u=this.model.getHierarchyLevel(),c=this.getOptions(),l=_d.getProperty(c,"canvasZoom","enabled");s&&_d.getProperty(a,0,"children")&&(a=_d.getProperty(a,0,"children"));var h=DP({children:a}).sum((function(t){return t.value})).sort((function(t,e){return e.value-t.value})),f=AR().size([i,o]).padding((function(t){return t.depth>=1?yt.padding.children+3:yt.padding.mainGroup+3})),p=f(h).descendants().splice(1).filter((function(t){return t.depth<=u})),d=n.selectAll("circle.node").data(p);d.exit().attr("width",0).attr("height",0).remove();var v=d.enter().append("circle").classed("node",!0);v.merge(d).attr("class",(function(t){var n=l&&3===u?e.getZoomClass(t):"";return e.model.getColorClassName({classNameTypes:[j.FILL,j.STROKE],dataGroupName:t.data.dataGroupName,originalClassName:t.children?"node "+n:"node node-leaf "+n})})).style("fill",(function(t){return e.model.getFillColor(t.data.dataGroupName)})).style("stroke",(function(t){return e.model.getFillColor(t.data.dataGroupName)})).attr("cx",(function(t){return t.x})).attr("cy",(function(t){return t.y})).transition("circlepack-leaf-update-enter").call((function(t){return e.services.transitions.setupTransition({transition:t,name:"circlepack-leaf-update-enter"})})).attr("r",(function(t){return t.r})).attr("opacity",1).attr("fill-opacity",yt.circles.fillOpacity),!0===l&&this.focal&&(this.services.canvasZoom.zoomIn(this.focal,v,mt),this.setBackgroundListeners()),s||this.addLegendListeners(),this.addEventListeners()}},e.prototype.unhighlightChildren=function(t){var e=this,n=t.map((function(t){return t.data}));this.parent.selectAll("circle.node").filter((function(t){return n.some((function(e){return e===t.data}))&&t.depth>1})).style("stroke",(function(t){return e.model.getFillColor(t.data.dataGroupName)}))},e.prototype.highlightChildren=function(t){var e=t.map((function(t){return t.data}));this.parent.selectAll("circle.node").filter((function(t){return e.some((function(e){return e===t.data}))&&t.depth>1})).style("stroke",yt.circles.hover.stroke)},e.prototype.getZoomClass=function(t){return 3===this.model.getHierarchyLevel()&&this.focal&&(t.data===this.focal.data||this.focal.children.some((function(e){return e.data===t.data})))?"focal":"non-focal"},e.prototype.addLegendListeners=function(){var t=this.services.events;t.addEventListener(ft.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(ft.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.removeBackgroundListeners=function(){var t=G_(this.services.domUtils.getMainContainer());t.on("click",(function(){return null}))},e.prototype.setBackgroundListeners=function(){var t=G_(this.services.domUtils.getMainContainer()),e=this,n=this.parent.selectAll("circle.node"),r=_d.getProperty(o,"canvasZoomSettings");t.on("click",(function(){e.focal=null,e.model.updateHierarchyLevel(2),t.classed("zoomed-in",!1),e.services.canvasZoom.zoomOut(n,r)}))},e.prototype.getZoomIcon=function(){return'\n\t\t<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 10">\n\t\t\t<polygon points="5.93 3.71 4.45 3.71 4.45 2.23 3.71 2.23 3.71 3.71 2.23 3.71 2.23 4.45 3.71 4.45 3.71 5.93 4.45 5.93 4.45 4.45 5.93 4.45 5.93 3.71"/>\n\t\t\t<path d="M7.2,6.67a4,4,0,0,0,1-2.59A4.08,4.08,0,1,0,4.07,8.15h0a4,4,0,0,0,2.59-1L9.48,10,10,9.48Zm-3.12.77A3.34,3.34,0,1,1,7.41,4.08,3.34,3.34,0,0,1,4.08,7.44Z"/>\n\t\t</svg>'},e.prototype.addEventListeners=function(){var t=this;this.parent.selectAll("circle.node").on("mouseover",(function(e,n){var r=G_(this);r.classed("hovered",!0);var i=t.model.getHierarchyLevel(),o=i>2&&!r.classed("focal"),a=_d.getProperty(t.model.getOptions(),"canvasZoom","enabled"),s=!1;if(!o){var u=[],c=[],l=null;if(n.children){n.depth>1&&a&&(s=!0,r.classed("clickable",!0)),u=n.children.map((function(e){if(null!==e)return"number"===typeof e.data.value?{label:e.data.name,value:e.data.value}:{label:e.data.name,labelIcon:a&&i<=2?t.getZoomIcon():null,value:e.value}}));var h=t.model.getOptions();c=[{label:Ml(h,"tooltip.totalLabel")||"Total",value:n.value,bold:!0}],t.highlightChildren(n.children)}else l=n.value;var f=getComputedStyle(this,null).getPropertyValue("fill");t.services.events.dispatchEvent(ft.Tooltip.SHOW,{event:e,hoveredElement:r,items:RR([{color:f,label:n.data.name,labelIcon:s&&a&&i<=2?t.getZoomIcon():null,value:l}],u,c)})}t.services.events.dispatchEvent(ft.CirclePack.CIRCLE_MOUSEOVER,{event:e,element:r,datum:n})})).on("mousemove",(function(e,n){var r=G_(this);t.services.events.dispatchEvent(ft.CirclePack.CIRCLE_MOUSEMOVE,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(ft.Tooltip.MOVE,{event:e})})).on("mouseout",(function(e,n){var r=G_(this);r.classed("hovered",!1),n.children&&t.unhighlightChildren(n.children),t.services.events.dispatchEvent(ft.CirclePack.CIRCLE_MOUSEOUT,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(ft.Tooltip.HIDE,{hoveredElement:r})})).on("click",(function(e,n){var r=G_(this),i=r.classed("non-focal"),o=_d.getProperty(t.model.getOptions(),"canvasZoom","enabled");if(o&&t.model.getHierarchyLevel()>2){var a=t.parent.selectAll("circle.node"),s=G_(t.services.domUtils.getMainContainer());s.classed("zoomed-in",!1),t.focal=null,t.model.updateHierarchyLevel(2),t.services.canvasZoom.zoomOut(a,mt)}else if(2===n.depth&&n.children&&!i&&o){a=t.parent.selectAll("circle.node"),s=G_(t.services.domUtils.getMainContainer());s.classed("zoomed-in",!0),t.focal=n,t.model.updateHierarchyLevel(3),t.services.canvasZoom.zoomIn(n,a,mt),e.stopPropagation()}t.services.events.dispatchEvent(ft.CirclePack.CIRCLE_CLICK,{event:e,element:r,datum:n})}))},e.prototype.destroy=function(){this.parent.selectAll("circle.node").on("mouseover",null).on("mousemove",null).on("mouseout",null).on("click",null);var t=this.services.events;t.removeEventListener(ft.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(ft.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut),this.removeBackgroundListeners()},e}(wT),NR=n("2a60"),jR=n.n(NR),BR=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)}}(),UR=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="wordcloud",e.renderType=I.SVG,e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement,r=e.getOptions().data.groupMapsTo;e.parent.selectAll("text.word").transition("legend-hover-wordcloud").call((function(t){return e.services.transitions.setupTransition({transition:t,name:"legend-hover-wordcloud"})})).attr("opacity",(function(t){return t[r]!==n.datum()["name"]?.3:1}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("text.word").transition("legend-mouseout-wordcloud").call((function(t){return e.services.transitions.setupTransition({transition:t,name:"legend-mouseout-wordcloud"})})).attr("opacity",1)},e}return BR(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(ft.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(ft.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){void 0===t&&(t=!0);var e=this,n=this.getComponentContainer().attr("width","100%").attr("height","100%"),r=this.model.getDisplayData(),i=this.getFontSizeScale(r),o=this.getOptions(),a=o.wordCloud,s=a.fontSizeMapsTo,u=a.wordMapsTo,c=o.data.groupMapsTo,l=Y_.getSVGElementSize(n,{useAttrs:!0}),h=l.width,f=l.height;if(0!==h&&0!==f){var p=jR()().size([h,f]).words(r.map((function(t){var e;return e={},e[c]=t[c],e.text=t[u],e.size=t[s],e.value=t[s],e}))).padding(5).rotate(0).fontSize((function(t){return i(t.size)})).on("end",d);p.start(),this.addEventListeners()}function d(r){var i=Y_.appendOrSelect(n,"g.words");i.attr("transform","translate("+p.size()[0]/2+", "+p.size()[1]/2+")");var o=i.selectAll("text").data(r,(function(t){return t[c]+"-"+t.text}));o.exit().attr("opacity",0).remove();var a=o.enter().append("text").attr("opacity",0);a.merge(o).style("font-size",(function(t){return t.size+"px"})).text((function(t){return t.text})).attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[j.FILL],dataGroupName:t[c],originalClassName:"word "+(t.size>32?"light":"")})})).style("fill",(function(t){return e.model.getFillColor(t[c],t.text,t)})).attr("text-anchor","middle").transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"wordcloud-text-update-enter",animate:t})})).attr("transform",(function(t){return"translate("+t.x+", "+t.y+")"})).attr("opacity",1)}},e.prototype.getFontSizeScale=function(t){var e=this.getOptions(),n=e.wordCloud.fontSizeMapsTo,r=t.map((function(t){return t[n]})).filter((function(t){return t})),i=Y_.getHTMLElementSize(this.services.domUtils.getMainContainer()),o=r.length>0,a=o?jv(r):[1,1];return AE().domain(a).range(o?e.wordCloud.fontSizeRange(i,t):[4,4])},e.prototype.addEventListeners=function(){var t=this.getOptions(),e=t.data.groupMapsTo,n=this,r=_d.debounce((function(t){var e=n.parent.selectAll("text.word").transition("wordcloud-word-mouse-highlight").call((function(t){return n.services.transitions.setupTransition({transition:t,name:"wordcloud-word-mouse-highlight"})}));null===t?e.attr("opacity",1):e.attr("opacity",(function(){return t===this?1:.3}))}),6);this.parent.selectAll("text.word").on("mouseover",(function(i,o){var a=this;r(a),n.services.events.dispatchEvent(ft.WordCloud.WORD_MOUSEOVER,{event:i,element:G_(this),datum:o}),n.services.events.dispatchEvent(ft.Tooltip.SHOW,{event:i,hoveredElement:a,items:[{label:t.tooltip.wordLabel,value:o.text},{label:t.tooltip.valueLabel,value:o.value},{label:t.tooltip.groupLabel,value:o[e],class:n.model.getColorClassName({classNameTypes:[j.TOOLTIP],dataGroupName:o[e]})}]})})).on("mousemove",(function(t,e){var r=G_(this);n.services.events.dispatchEvent(ft.WordCloud.WORD_MOUSEMOVE,{element:r,datum:e}),n.services.events.dispatchEvent(ft.Tooltip.MOVE,{event:t})})).on("click",(function(t,e){n.services.events.dispatchEvent(ft.WordCloud.WORD_CLICK,{event:t,element:G_(this),datum:e})})).on("mouseout",(function(t,e){var i=G_(this);r(null),n.services.events.dispatchEvent(ft.WordCloud.WORD_MOUSEOUT,{event:t,element:i,datum:e}),n.services.events.dispatchEvent(ft.Tooltip.HIDE,{hoveredElement:i})}))},e}(wT);function VR(t,e){let n=0;if(void 0===e)for(let r of t)(r=+r)&&(n+=r);else{let r=-1;for(let i of t)(i=+e(i,++r,t))&&(n+=i)}return n}function GR(t,e){let n;if(void 0===e)for(const r of t)null!=r&&(n<r||void 0===n&&r>=r)&&(n=r);else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(n<i||void 0===n&&i>=i)&&(n=i)}return n}function HR(t,e){let n;if(void 0===e)for(const r of t)null!=r&&(n>r||void 0===n&&r>=r)&&(n=r);else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(n>i||void 0===n&&i>=i)&&(n=i)}return n}function zR(t){return t.depth}function FR(t,e){return e-1-t.height}function WR(t,e){return t.sourceLinks.length?t.depth:e-1}function qR(t){return function(){return t}}function YR(t,e){return XR(t.source,e.source)||t.index-e.index}function ZR(t,e){return XR(t.target,e.target)||t.index-e.index}function XR(t,e){return t.y0-e.y0}function KR(t){return t.value}function $R(t){return t.index}function QR(t){return t.nodes}function JR(t){return t.links}function tI(t,e){const n=t.get(e);if(!n)throw new Error("missing: "+e);return n}function eI({nodes:t}){for(const e of t){let t=e.y0,n=t;for(const r of e.sourceLinks)r.y0=t+r.width/2,t+=r.width;for(const r of e.targetLinks)r.y1=n+r.width/2,n+=r.width}}function nI(){let t,e,n,r=0,i=0,o=1,a=1,s=24,u=8,c=$R,l=WR,h=QR,f=JR,p=6;function d(){const t={nodes:h.apply(null,arguments),links:f.apply(null,arguments)};return v(t),g(t),m(t),y(t),O(t),eI(t),t}function v({nodes:t,links:e}){for(const[n,i]of t.entries())i.index=n,i.sourceLinks=[],i.targetLinks=[];const r=new Map(t.map((e,n)=>[c(e,n,t),e]));for(const[n,i]of e.entries()){i.index=n;let{source:t,target:e}=i;"object"!==typeof t&&(t=i.source=tI(r,t)),"object"!==typeof e&&(e=i.target=tI(r,e)),t.sourceLinks.push(i),e.targetLinks.push(i)}if(null!=n)for(const{sourceLinks:i,targetLinks:o}of t)i.sort(n),o.sort(n)}function g({nodes:t}){for(const e of t)e.value=void 0===e.fixedValue?Math.max(VR(e.sourceLinks,KR),VR(e.targetLinks,KR)):e.fixedValue}function m({nodes:t}){const e=t.length;let n=new Set(t),r=new Set,i=0;while(n.size){for(const t of n){t.depth=i;for(const{target:e}of t.sourceLinks)r.add(e)}if(++i>e)throw new Error("circular link");n=r,r=new Set}}function y({nodes:t}){const e=t.length;let n=new Set(t),r=new Set,i=0;while(n.size){for(const t of n){t.height=i;for(const{source:e}of t.targetLinks)r.add(e)}if(++i>e)throw new Error("circular link");n=r,r=new Set}}function _({nodes:t}){const n=GR(t,t=>t.depth)+1,i=(o-r-s)/(n-1),a=new Array(n);for(const e of t){const t=Math.max(0,Math.min(n-1,Math.floor(l.call(null,e,n))));e.layer=t,e.x0=r+t*i,e.x1=e.x0+s,a[t]?a[t].push(e):a[t]=[e]}if(e)for(const r of a)r.sort(e);return a}function b(e){const n=HR(e,e=>(a-i-(e.length-1)*t)/VR(e,KR));for(const r of e){let e=i;for(const i of r){i.y0=e,i.y1=e+i.value*n,e=i.y1+t;for(const t of i.sourceLinks)t.width=t.value*n}e=(a-e+t)/(r.length+1);for(let t=0;t<r.length;++t){const n=r[t];n.y0+=e*(t+1),n.y1+=e*(t+1)}C(r)}}function O(e){const n=_(e);t=Math.min(u,(a-i)/(GR(n,t=>t.length)-1)),b(n);for(let t=0;t<p;++t){const e=Math.pow(.99,t),r=Math.max(1-e,(t+1)/p);x(n,e,r),w(n,e,r)}}function w(t,n,r){for(let i=1,o=t.length;i<o;++i){const o=t[i];for(const t of o){let e=0,r=0;for(const{source:n,value:o}of t.targetLinks){let i=o*(t.layer-n.layer);e+=A(n,t)*i,r+=i}if(!(r>0))continue;let i=(e/r-t.y0)*n;t.y0+=i,t.y1+=i,M(t)}void 0===e&&o.sort(XR),E(o,r)}}function x(t,n,r){for(let i=t.length,o=i-2;o>=0;--o){const i=t[o];for(const t of i){let e=0,r=0;for(const{target:n,value:o}of t.sourceLinks){let i=o*(n.layer-t.layer);e+=P(t,n)*i,r+=i}if(!(r>0))continue;let i=(e/r-t.y0)*n;t.y0+=i,t.y1+=i,M(t)}void 0===e&&i.sort(XR),E(i,r)}}function E(e,n){const r=e.length>>1,o=e[r];T(e,o.y0-t,r-1,n),S(e,o.y1+t,r+1,n),T(e,a,e.length-1,n),S(e,i,0,n)}function S(e,n,r,i){for(;r<e.length;++r){const o=e[r],a=(n-o.y0)*i;a>1e-6&&(o.y0+=a,o.y1+=a),n=o.y1+t}}function T(e,n,r,i){for(;r>=0;--r){const o=e[r],a=(o.y1-n)*i;a>1e-6&&(o.y0-=a,o.y1-=a),n=o.y0-t}}function M({sourceLinks:t,targetLinks:e}){if(void 0===n){for(const{source:{sourceLinks:t}}of e)t.sort(ZR);for(const{target:{targetLinks:e}}of t)e.sort(YR)}}function C(t){if(void 0===n)for(const{sourceLinks:e,targetLinks:n}of t)e.sort(ZR),n.sort(YR)}function A(e,n){let r=e.y0-(e.sourceLinks.length-1)*t/2;for(const{target:i,width:o}of e.sourceLinks){if(i===n)break;r+=o+t}for(const{source:t,width:i}of n.targetLinks){if(t===e)break;r-=i}return r}function P(e,n){let r=n.y0-(n.targetLinks.length-1)*t/2;for(const{source:i,width:o}of n.targetLinks){if(i===e)break;r+=o+t}for(const{target:t,width:i}of e.sourceLinks){if(t===n)break;r-=i}return r}return d.update=function(t){return eI(t),t},d.nodeId=function(t){return arguments.length?(c="function"===typeof t?t:qR(t),d):c},d.nodeAlign=function(t){return arguments.length?(l="function"===typeof t?t:qR(t),d):l},d.nodeSort=function(t){return arguments.length?(e=t,d):e},d.nodeWidth=function(t){return arguments.length?(s=+t,d):s},d.nodePadding=function(e){return arguments.length?(u=t=+e,d):u},d.nodes=function(t){return arguments.length?(h="function"===typeof t?t:qR(t),d):h},d.links=function(t){return arguments.length?(f="function"===typeof t?t:qR(t),d):f},d.linkSort=function(t){return arguments.length?(n=t,d):n},d.size=function(t){return arguments.length?(r=i=0,o=+t[0],a=+t[1],d):[o-r,a-i]},d.extent=function(t){return arguments.length?(r=+t[0][0],o=+t[1][0],i=+t[0][1],a=+t[1][1],d):[[r,i],[o,a]]},d.iterations=function(t){return arguments.length?(p=+t,d):p},d}var rI=Math.PI,iI=2*rI,oI=1e-6,aI=iI-oI;function sI(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function uI(){return new sI}sI.prototype=uI.prototype={constructor:sI,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>oI)if(Math.abs(l*s-u*c)>oI&&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((rI-Math.acos((d+h-v)/(2*g*m)))/2),_=y/m,b=y/g;Math.abs(_-1)>oI&&(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)>oI||Math.abs(this._y1-c)>oI)&&(this._+="L"+u+","+c),n&&(h<0&&(h=h%iI+iI),h>aI?this._+="A"+n+","+n+",0,1,"+l+","+(t-a)+","+(e-s)+"A"+n+","+n+",0,1,"+l+","+(this._x1=u)+","+(this._y1=c):h>oI&&(this._+="A"+n+","+n+",0,"+ +(h>=rI)+","+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 cI=uI,lI=Array.prototype.slice,hI=function(t){return function(){return t}};function fI(t){return t[0]}function pI(t){return t[1]}function dI(t){return t.source}function vI(t){return t.target}function gI(t){var e=dI,n=vI,r=fI,i=pI,o=null;function a(){var a,s=lI.call(arguments),u=e.apply(this,s),c=n.apply(this,s);if(o||(o=a=cI()),t(o,+r.apply(this,(s[0]=u,s)),+i.apply(this,s),+r.apply(this,(s[0]=c,s)),+i.apply(this,s)),a)return o=null,a+""||null}return a.source=function(t){return arguments.length?(e=t,a):e},a.target=function(t){return arguments.length?(n=t,a):n},a.x=function(t){return arguments.length?(r="function"===typeof t?t:hI(+t),a):r},a.y=function(t){return arguments.length?(i="function"===typeof t?t:hI(+t),a):i},a.context=function(t){return arguments.length?(o=null==t?null:t,a):o},a}function mI(t,e,n,r,i){t.moveTo(e,n),t.bezierCurveTo(e=(e+r)/2,n,e,i,r,i)}function yI(){return gI(mI)}function _I(t){return[t.source.x1,t.y0]}function bI(t){return[t.target.x0,t.y1]}var OI=function(){return yI().source(_I).target(bI)},wI=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)}}(),xI=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="alluvial",e.renderType=I.SVG,e.gradient_id="gradient-id-"+Math.floor(99999999999*Math.random()),e}return wI(e,t),e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this.getComponentContainer({withinChartClip:!0});n.html("");var r=Y_.getSVGElementSize(n,{useAttrs:!0}),i=r.width,o=r.height;if(!(i<1||o<1)){var a=this.model.getOptions(),s=this.model.getDisplayData(),u=_d.getProperty(this.getOptions(),"color","gradient","enabled"),c=Mt.minNodePadding;a.alluvial.nodePadding>Mt.minNodePadding&&(c=a.alluvial.nodePadding);var l=_d.getProperty(a,"alluvial","nodeAlignment"),h=WR;l===F.LEFT?h=zR:l===F.RIGHT&&(h=FR);var f=nI().nodeId((function(t){return t.name})).nodeWidth(Mt.nodeWidth).nodePadding(c).nodeAlign(h).extent([[2,30],[i-2,o]]);this.graph=f({nodes:a.alluvial.nodes.map((function(t){return Object.assign({},t)})),links:s.map((function(t){return Object.assign({},t)}))}),this.graph.nodes=this.graph.nodes.filter((function(t){return 0!==t.value}));var p={};this.graph.nodes.forEach((function(t){var e,n=t.x0;t.category&&(p[n]=null===(e=t)||void 0===e?void 0:e.category)}));var d=n.append("g").classed("header-arrows",!0).selectAll("g").data(Object.keys(p)).join("g").attr("transform",(function(t){return"translate("+t+", 0)"}));d.append("text").attr("id",(function(t,n){return e.services.domUtils.generateElementIDString("alluvial-category-"+n)})).style("font-size","14px").text((function(t){return p[t]?p[t]:""})).attr("y",20).attr("x",(function(t,n){var r=e.services.domUtils.generateElementIDString("alluvial-category-"+n),i=Y_.getSVGElementSize(G_("text#"+r),{useBBox:!0}).width,o=0;return t+o>=i&&(o=4-i),o}));var v=n.append("g").attr("fill","none").selectAll("g").data(this.graph.links);if(v.exit().remove(),u){var g=_d.getProperty(this.getOptions(),"color","scale");g&&v.enter().append("linearGradient").attr("id",(function(t){return e.gradient_id+"-link-"+t.index})).attr("gradientUnits","userSpaceOnUse").call((function(t){return t.append("stop").attr("offset","0%").attr("stop-color",(function(t){return g[t.source.name]}))})).call((function(t){return t.append("stop").attr("offset","100%").attr("stop-color",(function(t){return g[t.target.name]}))})),v.exit().remove()}v.enter().append("path").classed("link",!0).attr("d",OI()).attr("id",(function(t){return e.services.domUtils.generateElementIDString("alluvial-line-"+t.index)})).attr("class",(function(t){return a.alluvial.monochrome?e.model.getColorClassName({classNameTypes:[j.STROKE],dataGroupName:0,originalClassName:"link"}):e.model.getColorClassName({classNameTypes:[j.STROKE],dataGroupName:t.source.index,originalClassName:"link"})})).style("stroke",(function(t){return u?"url(#"+e.gradient_id+"-link-"+t.index+")":e.model.getFillColor(t.source.name)})).attr("stroke-width",(function(t){return Math.max(1,t.width)})).style("stroke-opacity",Mt.opacity.default).attr("aria-label",(function(t){return t.source.name+" → "+t.target.name+" ("+t.value+(a.alluvial.units?" "+a.alluvial.units:"")+")"}));var m=n.append("g").selectAll("g").data(this.graph.nodes).enter().append("g").attr("id",(function(t){return e.services.domUtils.generateElementIDString("alluvial-node-"+t.index)})).classed("node-group",!0).attr("transform",(function(t){return"translate("+t.x0+", "+t.y0+")"}));m.append("rect").classed("node",!0).attr("height",(function(t){return t.y1-t.y0})).attr("width",(function(t){return t.x1-t.x0})).attr("fill","black");var y=m.append("g").attr("id",(function(t){return e.services.domUtils.generateElementIDString("alluvial-node-title-"+t.index)}));y.append("text").attr("id",(function(t){return e.services.domUtils.generateElementIDString("alluvial-node-text-"+t.index)})).attr("class","node-text").style("font-size","12px").attr("text-anchor","start").attr("fill","white").attr("x",4).attr("dy",13).text((function(t){return t.name+" ("+t.value+")"})).attr("aria-label",(function(t){return t.name+" ("+t.value+")"})),y.append("rect").classed("node-text-bg",!0).attr("width",(function(t,n){var r=e.services.domUtils.generateElementIDString("alluvial-node-text-"+n),i=Y_.getSVGElementSize(G_("text#"+r),{useBBox:!0}).width;return i+8})).attr("height",18).attr("stroke-width",2).lower(),y.attr("transform",(function(t,n){var r=e.services.domUtils.generateElementIDString("alluvial-node-text-"+n),i=Y_.getSVGElementSize(G_("text#"+r),{useBBox:!0}).width,o=(t.y1-t.y0)/2-9,a=t.x1-t.x0;return t.x1>=i?a-=i+16:a+=4,"translate("+a+", "+o+")"})),this.addLineEventListener(),this.addNodeEventListener()}},e.prototype.addLineEventListener=function(){var t=this.getOptions(),e=this,n=_d.debounce((function(t,n){void 0===n&&(n="mouseover");var r=e.parent.selectAll("path.link").transition().call((function(t){return e.services.transitions.setupTransition({transition:t,name:"alluvial-links-mouse-highlight"})}));"mouseout"===n?(G_(t).lower(),r.style("stroke-opacity",Mt.opacity.default)):r.style("stroke-opacity",(function(){return t===this?(G_(this).raise(),Mt.opacity.selected):Mt.opacity.unfocus}))}),33);this.parent.selectAll("path.link").on("mouseover",(function(r,i){var o=G_(this);n(this,"mouseover"),o.classed("link-hovered",!0);var a=getComputedStyle(this).getPropertyValue("stroke");e.services.events.dispatchEvent(ft.Alluvial.LINE_MOUSEOVER,{event:r,element:o,datum:i}),e.services.events.dispatchEvent(ft.Tooltip.SHOW,{event:r,hoveredElement:o,items:[{label:i.target.name,value:i.value+(t.alluvial.units?" "+t.alluvial.units:""),color:a,labelIcon:e.getRightArrowIcon()}]})})).on("mousemove",(function(t,n){e.services.events.dispatchEvent(ft.Alluvial.LINE_MOUSEMOVE,{event:t,element:G_(this),datum:n}),e.services.events.dispatchEvent(ft.Tooltip.MOVE,{event:t})})).on("click",(function(t,n){e.services.events.dispatchEvent(ft.Alluvial.LINE_CLICK,{event:t,element:G_(this),datum:n})})).on("mouseout",(function(t,r){var i=G_(this);n(this,"mouseout"),i.classed("link-hovered",!1),e.services.events.dispatchEvent(ft.Alluvial.LINE_MOUSEOUT,{event:t,element:i,datum:r}),e.services.events.dispatchEvent(ft.Tooltip.HIDE,{event:t,hoveredElement:i})}))},e.prototype.addNodeEventListener=function(){var t=this,e=this,n=_d.debounce((function(n,r){if(void 0===n&&(n=[]),void 0===r&&(r="mouseover"),"mouseout"!==r&&0!==n.length){var i=e.parent.selectAll("path.link").transition().call((function(e){return t.services.transitions.setupTransition({transition:e,name:"alluvial-link-mouse-highlight"})}));i.style("stroke-opacity",(function(t){return n.some((function(e){return e===t.index}))?(G_(this).classed("link-hovered",!0).raise(),Mt.opacity.selected):Mt.opacity.unfocus}))}else e.parent.selectAll("path.link").classed("link-hovered",!1).data(t.graph.links,(function(t){return t.index})).order().style("stroke-opacity",Mt.opacity.default)}),66);e.parent.selectAll(".node-group").on("mouseover",(function(t,r){var i=G_(this),o=[];if(e.traverse({link:"sourceLinks",node:"target"},r,o),e.traverse({link:"targetLinks",node:"source"},r,o),o.length){var a=_d.getTranformOffsets(i.attr("transform"));if(i.attr("transform","translate("+(a.x-2)+", "+a.y+")"),i.classed("node-hovered",!0).selectAll("rect.node").attr("width",8),r.x0-2===0){var s=e.services.domUtils.generateElementIDString("alluvial-node-title-"+r.index),u=e.parent.select("g#"+s),c=_d.getTranformOffsets(u.attr("transform"));u.attr("transform","translate("+(c.x+4)+","+c.y+")")}var l=e.services.domUtils.generateElementIDString("alluvial-node-text-"+r.index);e.parent.select("text#"+l).style("font-weight","bold"),n(o,"mouseover"),e.services.events.dispatchEvent(ft.Alluvial.NODE_MOUSEOVER,{event:t,element:i,datum:r})}})).on("mousemove",(function(t,n){e.services.events.dispatchEvent(ft.Alluvial.NODE_MOUSEMOVE,{event:t,element:G_(this),datum:n}),e.services.events.dispatchEvent(ft.Tooltip.MOVE,{event:t})})).on("click",(function(t,n){e.services.events.dispatchEvent(ft.Alluvial.NODE_CLICK,{event:t,element:G_(this),datum:n})})).on("mouseout",(function(t,r){var i=G_(this),o=_d.getTranformOffsets(i.attr("transform"));if(i.classed("node-hovered",!1).attr("transform","translate("+(o.x+2)+", "+o.y+")").select("rect.node").attr("width",Mt.nodeWidth),r.x0-2===0){var a=e.services.domUtils.generateElementIDString("alluvial-node-title-"+r.index),s=e.parent.select("g#"+a),u=_d.getTranformOffsets(s.attr("transform"));s.attr("transform","translate("+(u.x-4)+","+u.y+")")}var c=e.services.domUtils.generateElementIDString("alluvial-node-text-"+r.index);e.parent.select("text#"+c).style("font-weight","normal"),n([],"mouseout"),e.services.events.dispatchEvent(ft.Alluvial.NODE_MOUSEOUT,{event:t,element:i,datum:r}),e.services.events.dispatchEvent(ft.Tooltip.HIDE,{hoveredElement:i})}))},e.prototype.traverse=function(t,e,n){var r=this;void 0===n&&(n=[]);var i=e[t.link].map((function(e){return n.push(e.index),e[t.node]}));i.forEach((function(e){return r.traverse(t,e,n)}))},e.prototype.getRightArrowIcon=function(){return'\n\t\t<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">\n\t\t\t<polygon points="18 6 16.57 7.393 24.15 15 4 15 4 17 24.15 17 16.57 24.573 18 26 28 16 18 6"/>\n\t\t\t<rect data-name="&lt;Transparent Rectangle&gt;" style="fill: none;" width="32" height="32"/>\n\t\t</svg>'},e.prototype.destroy=function(){this.parent.selectAll("path.line,.node-group").on("mouseover",null).on("mousemove",null).on("click",null).on("mouseout",null)},e}(wT),EI=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)}}(),SI=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="heatmap",e.renderType=I.SVG,e.matrix={},e.xBandwidth=0,e.yBandwidth=0,e.translationUnits={x:0,y:0},e.handleAxisOnHover=function(t){var n=t.detail,r=n.datum,i=e.model.getUniqueRanges(),o=e.model.getUniqueDomain(),a=e.services.cartesianScales.getDomainLabel(),s=e.services.cartesianScales.getRangeLabel(),u=e.services.cartesianScales.getMainXScale(),c=e.services.cartesianScales.getMainYScale(),l="",h=0,f=0,p=0;void 0!==e.matrix[r]?(l=a,i.forEach((function(t){var n=e.matrix[r][t].value||0;h+=n,f=n<f?n:f,p=n>p?n:p}))):(l=s,o.forEach((function(t){var n=e.matrix[t][r].value||0;h+=n,f=n<f?n:f,p=n>p?n:p}))),void 0!==u(r)?e.parent.select("g.multi-cell.column-highlight").classed("highlighter-hidden",!1).attr("transform","translate("+u(r)+", "+Tm(c.range())+")"):void 0!==c(r)&&e.parent.select("g.multi-cell.row-highlight").classed("highlighter-hidden",!1).attr("transform","translate("+Tm(u.range())+","+c(r)+")"),e.services.events.dispatchEvent(ft.Tooltip.SHOW,{event:n.event,hoveredElement:G_(t.detail.element),items:[{label:l,value:r,bold:!0},{label:"Min",value:f},{label:"Max",value:p},{label:"Average",value:h/o.length}]})},e.handleAxisMouseOut=function(t){e.parent.selectAll("g.multi-cell").classed("highlighter-hidden",!0),e.services.events.dispatchEvent(ft.Tooltip.HIDE,{event:t})},e}return EI(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(ft.Axis.LABEL_MOUSEOVER,this.handleAxisOnHover),t.addEventListener(ft.Axis.LABEL_MOUSEOUT,this.handleAxisMouseOut),t.addEventListener(ft.Axis.LABEL_FOCUS,this.handleAxisOnHover),t.addEventListener(ft.Axis.LABEL_BLUR,this.handleAxisMouseOut)},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this.getComponentContainer({withinChartClip:!0});n.lower();var r=this.services.cartesianScales;if(this.matrix=this.model.getMatrix(),n.html(""),!_d.getProperty(this.getOptions(),"data","loading")){var i=r.getMainXScale(),o=r.getMainYScale(),a=r.getDomainIdentifier(),s=r.getRangeIdentifier(),u=this.model.getUniqueDomain(),c=this.model.getUniqueRanges(),l=this.model.getMatrixAsArray(),h=i.range(),f=o.range();this.xBandwidth=Math.abs((h[1]-h[0])/u.length),this.yBandwidth=Math.abs((f[1]-f[0])/c.length);var p=this.services.domUtils.generateElementIDString("heatmap-pattern-stripes");n.append("defs").append("pattern").attr("id",p).attr("width",3).attr("height",3).attr("patternUnits","userSpaceOnUse").attr("patternTransform","rotate(45)").append("rect").classed("pattern-fill",!0).attr("width",.5).attr("height",8);var d=n.selectAll().data(l).enter().append("g").attr("class",(function(t){return"heat-"+t.index})).classed("cell",!0).attr("transform",(function(t){return"translate("+i(t[a])+", "+o(t[s])+")"})).append("rect").attr("class",(function(t){return e.model.getColorClassName({value:t.value,originalClassName:"heat-"+t.index})})).classed("heat",!0).classed("null-state",(function(t){return-1===t.index||null===t.value})).attr("width",this.xBandwidth).attr("height",this.yBandwidth).style("fill",(function(t){return-1===t.index||null===t.value?"url(#"+p+")":e.model.getFillColor(Number(t.value))})).attr("aria-label",(function(t){return t.value}));this.createOuterBox("g.cell-highlight",this.xBandwidth,this.yBandwidth),this.createOuterBox("g.multi-cell.column-highlight",this.xBandwidth,Math.abs(f[1]-f[0])),this.createOuterBox("g.multi-cell.row-highlight",Math.abs(h[1]-h[0]),this.yBandwidth),this.determineDividerStatus()&&(d.style("stroke-width","1px"),this.parent.select("g.cell-highlight").classed("cell-2",!0)),this.addEventListener()}},e.prototype.createOuterBox=function(t,e,n){var r=Y_.appendOrSelect(this.parent,t).classed("shadows",!0).classed("highlighter-hidden",!0);Y_.appendOrSelect(r,"line.top").attr("x1",-1).attr("x2",e+1),Y_.appendOrSelect(r,"line.left").attr("x1",0).attr("y1",-1).attr("x2",0).attr("y2",n+1),Y_.appendOrSelect(r,"line.down").attr("x1",-1).attr("x2",e+1).attr("y1",n).attr("y2",n),Y_.appendOrSelect(r,"line.right").attr("x1",e).attr("x2",e).attr("y1",-1).attr("y2",n+1)},e.prototype.determineDividerStatus=function(){var t=_d.getProperty(this.getOptions(),"heatmap","divider","state");return t!==ct.OFF&&(t===ct.AUTO&&Ct.minCellDividerDimension<=this.xBandwidth&&Ct.minCellDividerDimension<=this.yBandwidth||t===ct.ON)},e.prototype.addEventListener=function(){var t=this,e=this.services.cartesianScales,n=this.getOptions(),r=Ml(n,"tooltip.totalLabel"),i=e.getDomainIdentifier(),o=e.getRangeIdentifier(),a=e.getDomainLabel(),s=e.getRangeLabel();this.parent.selectAll("g.cell").on("mouseover",(function(e,n){var u=G_(this),c=u.select("rect.heat"),l=c.classed("null-state");if(!l){var h=_d.getTranformOffsets(u.attr("transform"));G_("g.cell-highlight").attr("transform","translate("+(h.x+t.translationUnits.x)+", "+(h.y+t.translationUnits.y)+")").classed("highlighter-hidden",!1),t.services.events.dispatchEvent(ft.Heatmap.HEATMAP_MOUSEOVER,{event:e,element:c,datum:n}),t.services.events.dispatchEvent(ft.Tooltip.SHOW,{event:e,items:[{label:a,value:n[i]},{label:s,value:n[o]},{label:r||"Total",value:n["value"],color:c.style("fill")}]})}})).on("mousemove",(function(e,n){t.services.events.dispatchEvent(ft.Heatmap.HEATMAP_MOUSEMOVE,{event:e,element:G_(this),datum:n}),t.services.events.dispatchEvent(ft.Tooltip.MOVE,{event:e})})).on("click",(function(e,n){t.services.events.dispatchEvent(ft.Heatmap.HEATMAP_CLICK,{event:e,element:G_(this),datum:n})})).on("mouseout",(function(e,n){var r=G_(this),i=r.select("rect.heat"),o=i.classed("null-state");G_("g.cell-highlight").classed("highlighter-hidden",!0),o||(t.services.events.dispatchEvent(ft.Heatmap.HEATMAP_MOUSEOUT,{event:e,element:i,datum:n}),t.services.events.dispatchEvent(ft.Tooltip.HIDE,{event:e,hoveredElement:i}))}))},e.prototype.destroy=function(){this.parent.selectAll("rect.heat").on("mouseover",null).on("mousemove",null).on("click",null).on("mouseout",null);var t=this.services.events;t.removeEventListener(ft.Legend.ITEM_HOVER,this.handleAxisOnHover),t.removeEventListener(ft.Legend.ITEM_MOUSEOUT,this.handleAxisMouseOut)},e}(wT),TI=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)}}(),MI=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="spacer",e}return TI(e,t),e.prototype.render=function(){this.getComponentContainer().style("width",(this.configs.size||At.default.size)+"px").style("height",(this.configs.size||At.default.size)+"px").attr("opacity",0)},e}(wT),CI=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)}}(),AI=function(t){function e(n,r,i,o){var a=t.call(this,n,r,o)||this;return a.type="layout",a.configs=o,a.children=i,a._instanceID=e.instanceID++,a.init(),a}return CI(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("div.layout-child-"+this._instanceID).filter((function(t){var e=_d.getProperty(t,"growth");return e===Z.PREFERRED||e===Z.FIXED})).each((function(t){e+=t.size})),e},e.prototype.getNumOfStretchChildren=function(){var t=this.parent;return t.selectAll("div.layout-child-"+this._instanceID).filter((function(t){return _d.getProperty(t,"growth")===Z.STRETCH})).size()},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this.parent,r=Y_.getHTMLElementSize(n.node()),i=r.width,o=r.height,a=this.configs.direction===Y.ROW||this.configs.direction===Y.ROW_REVERSE,s=_d.getProperty(this.model.getOptions(),"style","prefix"),u=n.classed(dt+"--"+s+"--layout-row",this.configs.direction===Y.ROW).classed(dt+"--"+s+"--layout-row-reverse",this.configs.direction===Y.ROW_REVERSE).classed(dt+"--"+s+"--layout-column",this.configs.direction===Y.COLUMN).classed(dt+"--"+s+"--layout-column-reverse",this.configs.direction===Y.COLUMN_REVERSE).classed(dt+"--"+s+"--layout-alignitems-center",this.configs.alignItems===X.CENTER).selectAll("div.layout-child-"+this._instanceID).data(this.children,(function(t){return t.id})),c=u.enter().append("div");c.merge(n.selectAll("div.layout-child-"+this._instanceID)).attr("class",(function(t){return"layout-child layout-child-"+e._instanceID+" "+t.id})).each((function(e){var n=this;e.components.forEach((function(r){var i=G_(n),o=_d.getProperty(e,"renderType"),a=o===I.SVG;r.setParent(a?Y_.appendOrSelect(i,"svg.layout-svg-wrapper").attr("width","100%").attr("height","100%"):i);var s=_d.getProperty(e,"growth");s!==Z.PREFERRED&&s!==Z.FIXED||r.render(t)}))})),n.selectAll("div.layout-child-"+this._instanceID).style("height",null).style("width",null).each((function(t){var e=_d.getProperty(t,"growth"),n=_d.getProperty(t,"renderType"),r=n===I.SVG?Y_.getSVGElementSize(G_(this).select("svg.layout-svg-wrapper"),{useBBox:!0}):Y_.getHTMLElementSize(this);if(e===Z.PREFERRED){var s=a?r.width:r.height,u=a?i:o;t.size=s/u*100}})),u.exit().remove(),this.children.filter((function(t){var e=_d.getProperty(t,"growth");return e===Z.STRETCH})).forEach((function(t,n){t.size=(100-+e.getPreferedAndFixedSizeSum())/+e.getNumOfStretchChildren()}));var l=n.selectAll("div.layout-child-"+this._instanceID).data(this.children,(function(t){return t.id}));a?l.style("width",(function(t){return t.size/100*i+"px"})).style("height","100%"):l.style("height",(function(t){return t.size/100*o+"px"})).style("width","100%"),l.each((function(e,n){e.components.forEach((function(n){var r=_d.getProperty(e,"growth");r===Z.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}(wT),PI=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)}}(),LI=function(t){function e(e,n,r){var i,o=t.call(this,e,n,r)||this;return o.type="axes",o.renderType=I.SVG,o.truncation=(i={},i[B.LEFT]=!1,i[B.RIGHT]=!1,i[B.TOP]=!1,i[B.BOTTOM]=!1,i),r&&(o.configs=r),o.margins=o.configs.margins,o}return PI(e,t),e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n,r,i=this.configs.position,o=this.getOptions(),s=_d.getProperty(o,"axes",i,"visible"),u=this.getComponentContainer(),c=Y_.getSVGElementSize(u,{useAttrs:!0}),l=c.width,h=c.height,f=Y_.appendOrSelect(u,"g.axis."+i);i===B.BOTTOM||i===B.TOP?(n=this.configs.axes[B.LEFT]?this.margins.left:0,r=this.configs.axes[B.RIGHT]?l-this.margins.right:l):(n=h-this.margins.bottom,r=this.margins.top);var p,d=this.services.cartesianScales.getScaleByPosition(i);switch(this.scaleType===H.LABELS||this.scaleType===H.LABELS_RATIO?d.rangeRound([n,r]):d.range([n,r]),i){case B.LEFT:p=VT;break;case B.BOTTOM:p=UT;break;case B.RIGHT:p=BT;break;case B.TOP:p=jT;break}f.attr("aria-label",i+" axis");var v=!f.select("g.ticks").empty(),g=Y_.appendOrSelect(f,"g.ticks");v||(g.attr("role",a.GRAPHICS_OBJECT+" "+a.GROUP),g.attr("aria-label",i+" ticks"));var m=Y_.appendOrSelect(f,"g.ticks.invisible").style("opacity","0").style("pointer-events","none").attr("aria-hidden",!0).attr("aria-label","invisible "+i+" ticks"),y=_d.getProperty(o,"axes",i),_=this.scaleType===H.TIME||y.scaleType===H.TIME,b=i===B.LEFT||i===B.RIGHT,O=this.model.get("zoomDomain");if(O&&_&&!b&&d.domain(O),s){var w=_d.getProperty(y,"scaleType"),x=_d.getProperty(o,"data","loading"),E=_d.getProperty(y,"ticks","number"),S=_d.getProperty(y,"ticks","values"),T=_d.getProperty(y,"truncation","type"),M=_d.getProperty(y,"truncation","threshold"),C=_d.getProperty(y,"truncation","numCharacter"),A=null!==E,P=_d.getProperty(o,"timeScale"),L=Y_.appendOrSelect(m,"g.tick"),D=Y_.appendOrSelect(L,"text").text("0"),k=Y_.getSVGElementSize(D.node(),{useBBox:!0}).height;L.remove();var R,I=this.scaleType||y.scaleType||H.LINEAR,N=p(d).tickSizeOuter(0);if(d.ticks){var j=void 0;if(A?j=E:(j=gt.ticks.number,b&&(j=this.getNumberOfFittingTicks(h,k,gt.ticks.verticalSpaceRatio))),1===d.ticks().length&&0===d.ticks()[0]&&(j=0),N.ticks(j),_)if(d.ticks(j).length){var U=_d.getProperty(o,"timeScale","addSpaceOnEdges"),G=_d.getProperty(o,"axes",i,"domain"),z=void 0,F=d.copy();U&&!G&&F.nice(j),z=F.ticks(j),U&&z.length>2&&!G&&(z.splice(z.length-1,1),z.splice(0,1)),N.tickValues(z)}else N.tickValues([])}var W=_d.getProperty(y,"ticks","formatter");if(_){var q=km(N.tickValues());R=null===W?function(t,e){return Am(t,e,N.tickValues(),q,P)}:function(t,e){var n=Am(t,e,N.tickValues(),q,P);return W(t,e,n)}}else null===W?I===H.LINEAR&&(R=function(t){return t.toLocaleString()}):R=W;N.tickFormat(R);var Y,Z=this.services.cartesianScales.getScaleByPosition(i).domain(),X=Z[0],K=Z[1];if(S){if(_)S.forEach((function(t,e){void 0===t.getTime&&(S[e]=new Date(t))})),Y=S.filter((function(t){var e=t.getTime();return e>=new Date(X).getTime()&&e<=new Date(K).getTime()}));else if(w===H.LABELS){var $=this.services.cartesianScales.getScaleByPosition(i).domain();Y=S.filter((function(t){return $.includes(t)}))}else Y=S.filter((function(t){return t>=X&&t<=K}));N.tickValues(Y)}switch(i){case B.LEFT:g.attr("transform","translate("+this.margins.left+", 0)");break;case B.BOTTOM:g.attr("transform","translate(0, "+(h-this.margins.bottom)+")");break;case B.RIGHT:g.attr("transform","translate("+(l-this.margins.right)+", 0)");break;case B.TOP:g.attr("transform","translate(0, "+this.margins.top+")");break}var Q=this.model.isDataEmpty();if(y.title){var J=Y_.appendOrSelect(f,"text.axis-title").html(Q||x?"":y.title),tt=_d.getProperty(y,"titleOrientation");switch(i){case B.LEFT:tt===at.RIGHT?J.attr("transform","rotate(90)").attr("y",0).attr("x",d.range()[0]/2).attr("dy","-0.5em").style("text-anchor","middle"):J.attr("transform","rotate(-90)").attr("y",0).attr("x",-d.range()[0]/2).attr("dy","0.75em").style("text-anchor","middle");break;case B.BOTTOM:J.attr("transform","translate("+(this.margins.left/2+d.range()[1]/2)+", "+(h+4)+")").style("text-anchor","middle");break;case B.RIGHT:tt===at.LEFT?J.attr("transform","rotate(-90)").attr("y",l).attr("x",-d.range()[0]/2).style("text-anchor","middle"):J.attr("transform","rotate(90)").attr("y",-l).attr("x",d.range()[0]/2).attr("dy","0.75em").style("text-anchor","middle");break;case B.TOP:var et=Y_.getSVGElementSize(J,{useBBox:!0}).height;J.attr("transform","translate("+(this.margins.left/2+d.range()[1]/2)+", "+et/2+")").style("text-anchor","middle");break}}if(_){var nt=km(N.tickValues()),it=P.showDayName,ot=g;t&&(g=g.transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"axis-update",animate:t})}))),g=g.call(N);var st=ot.selectAll(".tick").data(N.tickValues(),d).order().select("text");st.style("font-weight",(function(t,e){return Cm(t,e,N.tickValues(),nt,it)?"bold":"normal"}))}else g=t&&v?g.transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"axis-update",animate:t})})).call(N):g.call(N);if(m.call(N),i===B.BOTTOM||i===B.TOP){var ut=!1,ct=_d.getProperty(y,"ticks","rotation");if(ct===rt.ALWAYS)ut=!0;else if(ct===rt.NEVER)ut=!1;else if(!ct||ct===rt.AUTO)if(d.step){var lt=m.selectAll("g.tick text").nodes();ut=lt.some((function(t){return Y_.getSVGElementSize(t,{useBBox:!0}).width>=d.step()}))}else{ut=!1;var ht,ft=m.append("text").text("A"),pt=Y_.getSVGElementSize(ft.node(),{useBBox:!0}).width;m.selectAll("g.tick").each((function(){var t=G_(this),e=parseFloat(_d.getProperty(_d.getTranslationValues(this),"tx"));null!==e&&ht+t.text().length*pt*.8>=e&&(ut=!0),ht=e})),ft.remove()}ut?(A||(N.ticks(this.getNumberOfFittingTicks(l,k,gt.ticks.horizontalSpaceRatio)),m.call(N),g.call(N)),f.selectAll("g.ticks g.tick text").attr("transform","rotate(-45)").style("text-anchor",i===B.TOP?"start":"end")):f.selectAll("g.ticks g.tick text").attr("transform",null).style("text-anchor",null)}if(x?f.attr("opacity",0):f.attr("opacity",1),g.selectAll("g.tick").attr("aria-label",(function(t){return t})),m.selectAll("g.tick").attr("aria-label",(function(t){return t})),T!==V.NONE&&w===H.LABELS&&!S){var dt=this.services.cartesianScales.getScaleDomain(i);if(dt.length>0){var vt=u.select("g.axis."+i+" g.ticks g.tick").html();f.selectAll("g.ticks g.tick").html(vt);var mt=this;f.selectAll("g.tick text").data(dt).text((function(t){return t.length>M?(mt.truncation[i]=!0,_d.truncateLabel(t,T,C)):t})),this.getInvisibleAxisRef().selectAll("g.tick text").data(dt).text((function(t){return t.length>M?_d.truncateLabel(t,T,C):t})),f.selectAll("g.ticks").html(this.getInvisibleAxisRef().html()),f.selectAll("g.tick text").data(dt)}}this.addEventListeners()}else g.attr("aria-hidden",!0)},e.prototype.addEventListeners=function(){var t=this.getComponentContainer(),e=this.configs.position,n=Y_.appendOrSelect(t,"g.axis."+e),r=this.getOptions(),i=_d.getProperty(r,"axes",e),o=_d.getProperty(i,"scaleType"),a=_d.getProperty(i,"truncation","threshold"),s=this;n.selectAll("g.tick text").on("mouseover",(function(t,e){s.services.events.dispatchEvent(ft.Axis.LABEL_MOUSEOVER,{event:t,element:G_(this),datum:e}),o===H.LABELS&&e.length>a&&s.services.events.dispatchEvent(ft.Tooltip.SHOW,{event:t,hoveredElement:G_(this),content:e})})).on("mousemove",(function(t,e){s.services.events.dispatchEvent(ft.Axis.LABEL_MOUSEMOVE,{event:t,element:G_(this),datum:e}),o===H.LABELS&&e.length>a&&s.services.events.dispatchEvent(ft.Tooltip.MOVE,{event:t})})).on("click",(function(t,e){s.services.events.dispatchEvent(ft.Axis.LABEL_CLICK,{event:t,element:G_(this),datum:e})})).on("mouseout",(function(t,e){s.services.events.dispatchEvent(ft.Axis.LABEL_MOUSEOUT,{event:t,element:G_(this),datum:e}),o===H.LABELS&&s.services.events.dispatchEvent(ft.Tooltip.HIDE)}))},e.prototype.getInvisibleAxisRef=function(){var t=this.configs.position;return this.getComponentContainer().select("g.axis."+t+" g.ticks.invisible")},e.prototype.getTitleRef=function(){var t=this.configs.position;return this.getComponentContainer().select("g.axis."+t+" text.axis-title")},e.prototype.getNumberOfFittingTicks=function(t,e,n){var r=Math.floor(t/(e*n));return _d.clamp(r,2,gt.ticks.number)},e.prototype.destroy=function(){var t=this.getComponentContainer(),e=this.configs.position,n=Y_.appendOrSelect(t,"g.axis."+e);n.selectAll("g.tick text").on("mouseover",null).on("mousemove",null).on("mouseout",null)},e}(wT),DI=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)}}(),kI=function(){return kI=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},kI.apply(this,arguments)},RI=function(t){function e(e,n,r){return t.call(this,e,n,r)||this}return DI(e,t),e.prototype.render=function(e){void 0===e&&(e=!0),t.prototype.render.call(this,e),t.prototype.destroy.call(this);var n=this.configs.position,r=this.getComponentContainer(),i=Y_.appendOrSelect(r,"g.axis."+n),o=this;i.selectAll("g.tick").each((function(t,e){var r=G_(this);r.classed("tick-hover",!0).attr("tabindex",0===e?0:-1);var i=r.select("text"),a=Y_.getSVGElementSize(i,{useBBox:!0}),s=a.width,u=a.height,c=Y_.appendOrSelect(r,"rect.axis-holder"),l=0,h=0;switch(n){case B.LEFT:l=-s+Number(i.attr("x")),h=-u/2;break;case B.RIGHT:l=Math.abs(Number(i.attr("x"))),h=-u/2;break;case B.TOP:l=-s/2,h=-u+Number(i.attr("y"))/2,o.truncation[n]&&(l=0,c.attr("transform","rotate(-45)"));break;case B.BOTTOM:l=-s/2,h=u/2-2,o.truncation[n]&&(l=-s,c.attr("transform","rotate(-45)"));break}c.attr("x",l-gt.hover.rectanglePadding).attr("y",h).attr("width",s+2*gt.hover.rectanglePadding).attr("height",u).lower(),r.on("keydown",(function(t){n===B.LEFT||n===B.RIGHT?t.key&&"ArrowUp"===t.key?o.goNext(this,t):t.key&&"ArrowDown"===t.key&&o.goPrevious(this,t):t.key&&"ArrowLeft"===t.key?o.goPrevious(this,t):t.key&&"ArrowRight"===t.key&&o.goNext(this,t)}))})),this.addEventListeners()},e.prototype.addEventListeners=function(){var t=this.getComponentContainer(),e=this.configs.position,n=Y_.appendOrSelect(t,"g.axis."+e),r=this.getOptions(),i=_d.getProperty(r,"axes",e),o=_d.getProperty(i,"scaleType"),a=_d.getProperty(i,"truncation","threshold"),s=this;n.selectAll("g.tick.tick-hover").on("mouseover",(function(t){var e=G_(this).select("text"),n=e.datum();s.services.events.dispatchEvent(ft.Axis.LABEL_MOUSEOVER,{event:t,element:e,datum:n}),o===H.LABELS&&n.length>a&&s.services.events.dispatchEvent(ft.Tooltip.SHOW,{event:t,element:e,datum:n})})).on("mousemove",(function(t){var e=G_(this).select("text"),n=e.datum();s.services.events.dispatchEvent(ft.Axis.LABEL_MOUSEMOVE,{event:t,element:e,datum:n}),s.services.events.dispatchEvent(ft.Tooltip.MOVE,{event:t})})).on("click",(function(t){s.services.events.dispatchEvent(ft.Axis.LABEL_CLICK,{event:t,element:G_(this).select("text"),datum:G_(this).select("text").datum()})})).on("mouseout",(function(t){s.services.events.dispatchEvent(ft.Axis.LABEL_MOUSEOUT,{event:t,element:G_(this).select("text"),datum:G_(this).select("text").datum()}),o===H.LABELS&&s.services.events.dispatchEvent(ft.Tooltip.HIDE)})).on("focus",(function(t){var e={clientX:0,clientY:0};if(t.target){t.target.focus();var n=t.target.getBoundingClientRect();e.clientX=n.x,e.clientY=n.y}s.services.events.dispatchEvent(ft.Axis.LABEL_FOCUS,{event:kI(kI({},t),e),element:G_(this),datum:G_(this).select("text").datum()})})).on("blur",(function(t){s.services.events.dispatchEvent(ft.Axis.LABEL_BLUR,{event:t,element:G_(this),datum:G_(this).select("text").datum()})}))},e.prototype.goNext=function(t,e){t.nextElementSibling&&"path"!==t.nextElementSibling.tagName&&t.nextElementSibling.dispatchEvent(new Event("focus")),e.preventDefault()},e.prototype.goPrevious=function(t,e){t.previousElementSibling&&"path"!==t.previousElementSibling.tagName&&t.previousElementSibling.dispatchEvent(new Event("focus")),e.preventDefault()},e.prototype.destroy=function(){var t=this.getComponentContainer(),e=this.configs.position,n=Y_.appendOrSelect(t,"g.axis."+e);n.selectAll("g.tick.tick-hover").on("mouseover",null).on("mousemove",null).on("mouseout",null).on("focus",null).on("blur",null)},e}(LI),II=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)}}(),NI=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="2D-axes",e.renderType=I.SVG,e.children={},e.thresholds=[],e.margins={top:0,right:0,bottom:0,left:0},e}return II(e,t),e.prototype.render=function(t){var e=this;void 0===t&&(t=!1);var n={},r=Object.keys(B),i=_d.getProperty(this.getOptions(),"axes");r.forEach((function(t){var e=i[B[t]];e&&(n[B[t]]=!0)})),this.configs.axes=n,r.forEach((function(t){var n=B[t];if(e.configs.axes[n]&&!e.children[n]){var r={position:n,axes:e.configs.axes,margins:e.margins},i=e.model.axisFlavor===lt.DEFAULT?new LI(e.model,e.services,r):new RI(e.model,e.services,r);i.setModel(e.model),i.setServices(e.services),i.setParent(e.parent),e.children[n]=i}})),Object.keys(this.children).forEach((function(n){var r=e.children[n];r.render(t)}));var o={};Object.keys(this.children).forEach((function(t){var n,r=e.children[t],i=r.configs.position,a=r.getInvisibleAxisRef(),s=Y_.getSVGElementSize(a,{useBBox:!0}),u=s.width,c=s.height;switch(r.getTitleRef().empty()?n=0:(n=Y_.getSVGElementSize(r.getTitleRef(),{useBBox:!0}).height,i!==B.LEFT&&i!==B.RIGHT||(n+=5)),i){case B.TOP:o.top=c+n;break;case B.BOTTOM:o.bottom=c+n;break;case B.LEFT:o.left=u+n;break;case B.RIGHT:o.right=u+n;break}})),this.services.events.dispatchEvent(ft.Axis.RENDER_COMPLETE);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(ft.ZoomBar.UPDATE),Object.keys(this.children).forEach((function(t){var n=e.children[t];n.margins=e.margins})),this.render(!0))},e}(wT),jI={value:()=>{}};function BI(){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 UI(r)}function UI(t){this._=t}function VI(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 GI(t,e){for(var n,r=0,i=t.length;r<i;++r)if((n=t[r]).name===e)return n.value}function HI(t,e,n){for(var r=0,i=t.length;r<i;++r)if(t[r].name===e){t[r]=jI,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=n&&t.push({name:e,value:n}),t}UI.prototype=BI.prototype={constructor:UI,on:function(t,e){var n,r=this._,i=VI(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]=HI(r[n],t.name,e);else if(null==e)for(n in r)r[n]=HI(r[n],t.name,null);return this}while(++o<a)if((n=(t=i[o]).type)&&(n=GI(r[n],t.name)))return n},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new UI(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 zI=BI;const FI={capture:!0,passive:!1};var WI=function(t){t.preventDefault(),t.stopImmediatePropagation()},qI=function(t){var e=t.document.documentElement,n=G_(t).on("dragstart.drag",WI,FI);"onselectstart"in e?n.on("selectstart.drag",WI,FI):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")};function YI(t,e){var n=t.document.documentElement,r=G_(t).on("dragstart.drag",null);e&&(r.on("click.drag",WI,FI),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 ZI,XI,KI=0,$I=0,QI=0,JI=1e3,tN=0,eN=0,nN=0,rN="object"===typeof performance&&performance.now?performance:Date,iN="object"===typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function oN(){return eN||(iN(aN),eN=rN.now()+nN)}function aN(){eN=0}function sN(){this._call=this._time=this._next=null}function uN(t,e,n){var r=new sN;return r.restart(t,e,n),r}function cN(){oN(),++KI;var t,e=ZI;while(e)(t=eN-e._time)>=0&&e._call.call(void 0,t),e=e._next;--KI}function lN(){eN=(tN=rN.now())+nN,KI=$I=0;try{cN()}finally{KI=0,fN(),eN=0}}function hN(){var t=rN.now(),e=t-tN;e>JI&&(nN-=e,tN=t)}function fN(){var t,e,n=ZI,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:ZI=e);XI=t,pN(r)}function pN(t){if(!KI){$I&&($I=clearTimeout($I));var e=t-eN;e>24?(t<1/0&&($I=setTimeout(lN,t-rN.now()-nN)),QI&&(QI=clearInterval(QI))):(QI||(tN=rN.now(),QI=setInterval(hN,JI)),KI=1,iN(lN))}}sN.prototype=uN.prototype={constructor:sN,restart:function(t,e,n){if("function"!==typeof t)throw new TypeError("callback is not a function");n=(null==n?oN():+n)+(null==e?0:+e),this._next||XI===this||(XI?XI._next=this:ZI=this,XI=this),this._call=t,this._time=n,pN()},stop:function(){this._call&&(this._call=null,this._time=1/0,pN())}};var dN=function(t,e,n){var r=new sN;return e=null==e?0:+e,r.restart(n=>{r.stop(),t(n+e)},e,n),r},vN=zI("start","end","cancel","interrupt"),gN=[],mN=0,yN=1,_N=2,bN=3,ON=4,wN=5,xN=6,EN=function(t,e,n,r,i,o){var a=t.__transition;if(a){if(n in a)return}else t.__transition={};CN(t,n,{name:e,index:r,group:i,on:vN,tween:gN,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:mN})};function SN(t,e){var n=MN(t,e);if(n.state>mN)throw new Error("too late; already scheduled");return n}function TN(t,e){var n=MN(t,e);if(n.state>bN)throw new Error("too late; already running");return n}function MN(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function CN(t,e,n){var r,i=t.__transition;function o(t){n.state=yN,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!==yN)return u();for(c in i)if(f=i[c],f.name===n.name){if(f.state===bN)return dN(a);f.state===ON?(f.state=xN,f.timer.stop(),f.on.call("interrupt",t,t.__data__,f.index,f.group),delete i[c]):+c<e&&(f.state=xN,f.timer.stop(),f.on.call("cancel",t,t.__data__,f.index,f.group),delete i[c])}if(dN((function(){n.state===bN&&(n.state=ON,n.timer.restart(s,n.delay,n.time),s(o))})),n.state=_N,n.on.call("start",t,t.__data__,n.index,n.group),n.state===_N){for(n.state=bN,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=wN,1),o=-1,a=r.length;while(++o<a)r[o].call(t,i);n.state===wN&&(n.on.call("end",t,t.__data__,n.index,n.group),u())}function u(){for(var r in n.state=xN,n.timer.stop(),delete i[e],i)return;delete t.__transition}i[e]=n,n.timer=uN(o,0,n.time)}var AN,PN=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>_N&&n.state<wN,n.state=xN,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}},LN=function(t){return this.each((function(){PN(this,t)}))},DN=180/Math.PI,kN={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},RN=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)*DN,skewX:Math.atan(u)*DN,scaleX:a,scaleY:s}};function IN(t){const e=new("function"===typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?kN:RN(e.a,e.b,e.c,e.d,e.e,e.f)}function NN(t){return null==t?kN:(AN||(AN=document.createElementNS("http://www.w3.org/2000/svg","g")),AN.setAttribute("transform",t),(t=AN.transform.baseVal.consolidate())?(t=t.matrix,RN(t.a,t.b,t.c,t.d,t.e,t.f)):kN)}function jN(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:bx(t,i)},{i:u-2,x:bx(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:bx(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:bx(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:bx(t,n)},{i:s-2,x:bx(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 BN=jN(IN,"px, ","px)","deg)"),UN=jN(NN,", ",")",")");function VN(t,e){var n,r;return function(){var i=TN(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 GN(t,e,n){var r,i;if("function"!==typeof n)throw new Error;return function(){var o=TN(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 HN=function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r,i=MN(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?VN:GN)(n,t,e))};function zN(t,e,n){var r=t._id;return t.each((function(){var t=TN(this,r);(t.value||(t.value={}))[e]=n.apply(this,arguments)})),function(t){return MN(t,r).value[e]}}var FN=function(t,e){var n;return("number"===typeof e?bx:e instanceof qw?dx:(n=qw(e))?(e=n,dx):Tx)(t,e)};function WN(t){return function(){this.removeAttribute(t)}}function qN(t){return function(){this.removeAttributeNS(t.space,t.local)}}function YN(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 ZN(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 XN(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 KN(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 $N=function(t,e){var n=Ay(t),r="transform"===n?UN:FN;return this.attrTween(t,"function"===typeof e?(n.local?KN:XN)(n,r,zN(this,"attr."+t,e)):null==e?(n.local?qN:WN)(n):(n.local?ZN:YN)(n,r,e))};function QN(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function JN(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function tj(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&JN(t,i)),n}return i._value=e,i}function ej(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&QN(t,i)),n}return i._value=e,i}var nj=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=Ay(t);return this.tween(n,(r.local?tj:ej)(r,e))};function rj(t,e){return function(){SN(this,t).delay=+e.apply(this,arguments)}}function ij(t,e){return e=+e,function(){SN(this,t).delay=e}}var oj=function(t){var e=this._id;return arguments.length?this.each(("function"===typeof t?rj:ij)(e,t)):MN(this.node(),e).delay};function aj(t,e){return function(){TN(this,t).duration=+e.apply(this,arguments)}}function sj(t,e){return e=+e,function(){TN(this,t).duration=e}}var uj=function(t){var e=this._id;return arguments.length?this.each(("function"===typeof t?aj:sj)(e,t)):MN(this.node(),e).duration};function cj(t,e){if("function"!==typeof e)throw new Error;return function(){TN(this,t).ease=e}}var lj=function(t){var e=this._id;return arguments.length?this.each(cj(e,t)):MN(this.node(),e).ease};function hj(t,e){return function(){var n=e.apply(this,arguments);if("function"!==typeof n)throw new Error;TN(this,t).ease=n}}var fj=function(t){if("function"!==typeof t)throw new Error;return this.each(hj(this._id,t))},pj=function(t){"function"!==typeof t&&(t=Xm(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 Hj(r,this._parents,this._name,this._id)},dj=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 Hj(a,this._parents,this._name,this._id)};function vj(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 gj(t,e,n){var r,i,o=vj(e)?SN:TN;return function(){var a=o(this,t),s=a.on;s!==r&&(i=(r=s).copy()).on(e,n),a.on=i}}var mj=function(t,e){var n=this._id;return arguments.length<2?MN(this.node(),n).on.on(t):this.each(gj(n,t,e))};function yj(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}var _j=function(){return this.on("end.remove",yj(this._id))},bj=function(t){var e=this._name,n=this._id;"function"!==typeof t&&(t=Hm(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,EN(h[f],e,n,f,h,MN(s,n)));return new Hj(o,this._parents,e,n)},Oj=function(t){var e=this._name,n=this._id;"function"!==typeof t&&(t=qm(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=MN(u,n),v=0,g=p.length;v<g;++v)(f=p[v])&&EN(f,e,n,v,p,d);o.push(p),a.push(u)}return new Hj(o,a,e,n)},wj=V_.prototype.constructor,xj=function(){return new wj(this._groups,this._parents)};function Ej(t,e){var n,r,i;return function(){var o=Hy(this,t),a=(this.style.removeProperty(t),Hy(this,t));return o===a?null:o===n&&a===r?i:i=e(n=o,r=a)}}function Sj(t){return function(){this.style.removeProperty(t)}}function Tj(t,e,n){var r,i,o=n+"";return function(){var a=Hy(this,t);return a===o?null:a===r?i:i=e(r=a,n)}}function Mj(t,e,n){var r,i,o;return function(){var a=Hy(this,t),s=n(this),u=s+"";return null==s&&(this.style.removeProperty(t),u=s=Hy(this,t)),a===u?null:a===r&&u===i?o:(i=u,o=e(r=a,s))}}function Cj(t,e){var n,r,i,o,a="style."+e,s="end."+a;return function(){var u=TN(this,t),c=u.on,l=null==u.value[a]?o||(o=Sj(e)):void 0;c===n&&i===l||(r=(n=c).copy()).on(s,i=l),u.on=r}}var Aj=function(t,e,n){var r="transform"===(t+="")?BN:FN;return null==e?this.styleTween(t,Ej(t,r)).on("end.style."+t,Sj(t)):"function"===typeof e?this.styleTween(t,Mj(t,r,zN(this,"style."+t,e))).each(Cj(this._id,t)):this.styleTween(t,Tj(t,r,e),n).on("end.style."+t,null)};function Pj(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function Lj(t,e,n){var r,i;function o(){var o=e.apply(this,arguments);return o!==i&&(r=(i=o)&&Pj(t,o,n)),r}return o._value=e,o}var Dj=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,Lj(t,e,null==n?"":n))};function kj(t){return function(){this.textContent=t}}function Rj(t){return function(){var e=t(this);this.textContent=null==e?"":e}}var Ij=function(t){return this.tween("text","function"===typeof t?Rj(zN(this,"text",t)):kj(null==t?"":t+""))};function Nj(t){return function(e){this.textContent=t.call(this,e)}}function jj(t){var e,n;function r(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&Nj(r)),e}return r._value=t,r}var Bj=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,jj(t))},Uj=function(){for(var t=this._name,e=this._id,n=Fj(),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=MN(a,e);EN(a,t,n,c,s,{time:l.time+l.delay+l.duration,delay:0,duration:l.duration,ease:l.ease})}return new Hj(r,this._parents,t,n)},Vj=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=TN(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})),0===i&&o()}))},Gj=0;function Hj(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function zj(t){return V_().transition(t)}function Fj(){return++Gj}var Wj=V_.prototype;Hj.prototype=zj.prototype={constructor:Hj,select:bj,selectAll:Oj,selectChild:Wj.selectChild,selectChildren:Wj.selectChildren,filter:pj,merge:dj,selection:xj,transition:Uj,call:Wj.call,nodes:Wj.nodes,node:Wj.node,size:Wj.size,empty:Wj.empty,each:Wj.each,on:mj,attr:$N,attrTween:nj,style:Aj,styleTween:Dj,text:Ij,textTween:Bj,remove:_j,tween:HN,delay:oj,duration:uj,ease:lj,easeVarying:fj,end:Vj,[Symbol.iterator]:Wj[Symbol.iterator]};var qj={time:null,delay:0,duration:250,ease:pt};function Yj(t,e){var n;while(!(n=t.__transition)||!(n=n[e]))if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return n}var Zj=function(t){var e,n;t instanceof Hj?(e=t._id,t=t._name):(e=Fj(),(n=qj).time=oN(),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])&&EN(a,t,e,c,s,n||Yj(a,e));return new Hj(r,this._parents,t,e)};V_.prototype.interrupt=LN,V_.prototype.transition=Zj;var Xj=t=>()=>t;function Kj(t,{sourceEvent:e,target:n,selection:r,mode:i,dispatch:o}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},selection:{value:r,enumerable:!0,configurable:!0},mode:{value:i,enumerable:!0,configurable:!0},_:{value:o}})}function $j(t){t.stopImmediatePropagation()}var Qj=function(t){t.preventDefault(),t.stopImmediatePropagation()},Jj={name:"drag"},tB={name:"space"},eB={name:"handle"},nB={name:"center"};const{abs:rB,max:iB,min:oB}=Math;function aB(t){return[+t[0],+t[1]]}function sB(t){return[aB(t[0]),aB(t[1])]}var uB={name:"x",handles:["w","e"].map(vB),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]]}},cB={name:"y",handles:["n","s"].map(vB),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]]}},lB=(["n","w","e","s","nw","ne","sw","se"].map(vB),{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"}),hB={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},fB={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},pB={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},dB={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function vB(t){return{type:t}}function gB(t){return!t.ctrlKey&&!t.button}function mB(){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 yB(){return navigator.maxTouchPoints||"ontouchstart"in this}function _B(t){while(!t.__brush)if(!(t=t.parentNode))return;return t.__brush}function bB(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}function OB(){return wB(uB)}function wB(t){var e,n=mB,r=gB,i=yB,o=!0,a=zI("start","brush","end"),s=6;function u(e){var n=e.property("__brush",v).selectAll(".overlay").data([vB("overlay")]);n.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",lB.overlay).merge(n).each((function(){var t=_B(this).extent;G_(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([vB("selection")]).enter().append("rect").attr("class","selection").attr("cursor",lB.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 lB[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=G_(this),e=_B(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){var r=t.__brush.emitter;return!r||n&&r.clean?new h(t,e,n):r}function h(t,e,n){this.that=t,this.args=e,this.state=t.__brush,this.active=0,this.clean=n}function f(n){if((!e||n.touches)&&r.apply(this,arguments)){var i,a,s,u,h,f,p,d,v,g,m,y=this,_=n.target.__data__.type,b="selection"===(o&&n.metaKey?_="overlay":_)?Jj:o&&n.altKey?nB:eB,O=t===cB?null:pB[_],w=t===uB?null:dB[_],x=_B(y),E=x.extent,S=x.selection,T=E[0][0],M=E[0][1],C=E[1][0],A=E[1][1],P=0,L=0,D=O&&w&&o&&n.shiftKey,k=Array.from(n.touches||[n],t=>{const e=t.identifier;return t=wd(t,y),t.point0=t.slice(),t.identifier=e,t});PN(y);var R=l(y,arguments,!0).beforestart();if("overlay"===_){S&&(v=!0);const e=[k[0],k[1]||k[0]];x.selection=S=[[i=t===cB?T:oB(e[0][0],e[1][0]),s=t===uB?M:oB(e[0][1],e[1][1])],[h=t===cB?C:iB(e[0][0],e[1][0]),p=t===uB?A:iB(e[0][1],e[1][1])]],k.length>1&&U(n)}else i=S[0][0],s=S[0][1],h=S[1][0],p=S[1][1];a=i,u=s,f=h,d=p;var I=G_(y).attr("pointer-events","none"),N=I.selectAll(".overlay").attr("cursor",lB[_]);if(n.touches)R.moved=B,R.ended=V;else{var j=G_(n.view).on("mousemove.brush",B,!0).on("mouseup.brush",V,!0);o&&j.on("keydown.brush",G,!0).on("keyup.brush",H,!0),qI(n.view)}c.call(y),R.start(n,b.name)}function B(t){for(const e of t.changedTouches||[t])for(const t of k)t.identifier===e.identifier&&(t.cur=wd(e,y));if(D&&!g&&!m&&1===k.length){const t=k[0];rB(t.cur[0]-t[0])>rB(t.cur[1]-t[1])?m=!0:g=!0}for(const e of k)e.cur&&(e[0]=e.cur[0],e[1]=e.cur[1]);v=!0,Qj(t),U(t)}function U(t){const e=k[0],n=e.point0;var r;switch(P=e[0]-n[0],L=e[1]-n[1],b){case tB:case Jj:O&&(P=iB(T-i,oB(C-h,P)),a=i+P,f=h+P),w&&(L=iB(M-s,oB(A-p,L)),u=s+L,d=p+L);break;case eB:k[1]?(O&&(a=iB(T,oB(C,k[0][0])),f=iB(T,oB(C,k[1][0])),O=1),w&&(u=iB(M,oB(A,k[0][1])),d=iB(M,oB(A,k[1][1])),w=1)):(O<0?(P=iB(T-i,oB(C-i,P)),a=i+P,f=h):O>0&&(P=iB(T-h,oB(C-h,P)),a=i,f=h+P),w<0?(L=iB(M-s,oB(A-s,L)),u=s+L,d=p):w>0&&(L=iB(M-p,oB(A-p,L)),u=s,d=p+L));break;case nB:O&&(a=iB(T,oB(C,i-P*O)),f=iB(T,oB(C,h+P*O))),w&&(u=iB(M,oB(A,s-L*w)),d=iB(M,oB(A,p+L*w)));break}f<a&&(O*=-1,r=i,i=h,h=r,r=a,a=f,f=r,_ in hB&&N.attr("cursor",lB[_=hB[_]])),d<u&&(w*=-1,r=s,s=p,p=r,r=u,u=d,d=r,_ in fB&&N.attr("cursor",lB[_=fB[_]])),x.selection&&(S=x.selection),g&&(a=S[0][0],f=S[1][0]),m&&(u=S[0][1],d=S[1][1]),S[0][0]===a&&S[0][1]===u&&S[1][0]===f&&S[1][1]===d||(x.selection=[[a,u],[f,d]],c.call(y),R.brush(t,b.name))}function V(t){if($j(t),t.touches){if(t.touches.length)return;e&&clearTimeout(e),e=setTimeout((function(){e=null}),500)}else YI(t.view,v),j.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);I.attr("pointer-events","all"),N.attr("cursor",lB.overlay),x.selection&&(S=x.selection),bB(S)&&(x.selection=null,c.call(y)),R.end(t,b.name)}function G(t){switch(t.keyCode){case 16:D=O&&w;break;case 18:b===eB&&(O&&(h=f-P*O,i=a+P*O),w&&(p=d-L*w,s=u+L*w),b=nB,U(t));break;case 32:b!==eB&&b!==nB||(O<0?h=f-P:O>0&&(i=a-P),w<0?p=d-L:w>0&&(s=u-L),b=tB,N.attr("cursor",lB.selection),U(t));break;default:return}Qj(t)}function H(t){switch(t.keyCode){case 16:D&&(g=m=D=!1,U(t));break;case 18:b===nB&&(O<0?h=f:O>0&&(i=a),w<0?p=d:w>0&&(s=u),b=eB,U(t));break;case 32:b===tB&&(t.altKey?(O&&(h=f-P*O,i=a+P*O),w&&(p=d-L*w,s=u+L*w),b=nB):(O<0?h=f:O>0&&(i=a),w<0?p=d:w>0&&(s=u),b=eB),N.attr("cursor",lB[_]),U(t));break;default:return}Qj(t)}}function p(t){l(this,arguments).moved(t)}function d(t){l(this,arguments).ended(t)}function v(){var e=this.__brush||{selection:null};return e.extent=sB(n.apply(this,arguments)),e.dim=t,e}return u.move=function(e,n,r){e.tween?e.on("start.brush",(function(t){l(this,arguments).beforestart().start(t)})).on("interrupt.brush end.brush",(function(t){l(this,arguments).end(t)})).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=Mx(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,i=arguments,o=e.__brush,a=t.input("function"===typeof n?n.apply(e,i):n,o.extent),s=l(e,i).beforestart();PN(e),o.selection=null===a?null:a,c.call(e),s.start(r).brush(r).end(r)}))},u.clear=function(t,e){u.move(t,null,e)},h.prototype={beforestart:function(){return 1===++this.active&&(this.state.emitter=this,this.starting=!0),this},start:function(t,e){return this.starting?(this.starting=!1,this.emit("start",t,e)):this.emit("brush",t),this},brush:function(t,e){return this.emit("brush",t,e),this},end:function(t,e){return 0===--this.active&&(delete this.state.emitter,this.emit("end",t,e)),this},emit:function(e,n,r){var i=G_(this.that).datum();a.call(e,this.that,new Kj(e,{sourceEvent:n,target:u,selection:t.output(this.state.selection),mode:r,dispatch:a}),i)}},u.extent=function(t){return arguments.length?(n="function"===typeof t?t:Xj(sB(t)),u):n},u.filter=function(t){return arguments.length?(r="function"===typeof t?t:Xj(!!t),u):r},u.touchable=function(t){return arguments.length?(i="function"===typeof t?t:Xj(!!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 xB=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(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="grid-brush",e.renderType=I.SVG,e.selectionSelector="rect.selection",e.frontSelectionSelector="rect.frontSelection",e}return xB(e,t),e.prototype.render=function(t){var n=this;void 0===t&&(t=!0);var r=this.parent,i=this.getComponentContainer(),o=Y_.appendOrSelect(r,"svg.chart-grid-backdrop"),a=Y_.appendOrSelect(o,"g."+this.type),s=Y_.appendOrSelect(a,this.selectionSelector),u=Y_.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=Y_.appendOrSelect(i,this.frontSelectionSelector);if(p&&f===H.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(t){var e=t.selection;null!==e&&e[0]!==e[1]&&(g.attr("x",parseFloat(s.attr("x"))+parseFloat(o.attr("x"))).attr("y",s.attr("y")).attr("width",s.attr("width")).attr("height",s.attr("height")).style("cursor","pointer").style("display",null),y(e))},b=function(t,e){var r=Fx().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)},O=function(t){var e=t.selection;null!==e&&(b(e[0],e[1]),a.call(w.move,null),g.style("display","none"))},w=OB().extent([[0,0],[c-1,l]]).on("start brush end",_).on("end.brushed",O);a.call(w);var x=this.services.zoom.getZoomRatio();o.on("click",(function(t){if(t.shiftKey){var e=this.services.domUtils.getHolder(),n=wd(a.node(),e)[0],r=n-c*x/2;r<0&&(r=0);var i=n+c*x/2;i>c&&(i=c),b(r,i)}}))}},e.DASH_LENGTH=4,e}(wT),SB=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)}}(),TB=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="grid",e.renderType=I.SVG,e}return SB(e,t),e.prototype.render=function(t){void 0===t&&(t=!0);var e=_d.getProperty(this.getOptions(),"grid","x","enabled"),n=_d.getProperty(this.getOptions(),"grid","y","enabled");this.drawBackdrop(e,n),(e||n)&&(e&&(Y_.appendOrSelect(this.backdrop,"g.x.grid"),this.drawXGrid(t)),n&&(Y_.appendOrSelect(this.backdrop,"g.y.grid"),this.drawYGrid(t)))},e.prototype.drawXGrid=function(t){var e=this,n=this.parent,r=this.backdrop.attr("height"),i=this.services.cartesianScales.getMainXScale(),o=UT(i).tickSizeInner(-r).tickSizeOuter(0),a=_d.getProperty(this.getOptions(),"grid","x","alignWithAxisTicks");if(a){var s=this.services.cartesianScales.getDomainAxisPosition(),u=_d.getProperty(this.getOptions(),"axes",s,"ticks","values");u&&o.tickValues(u)}else{var c=_d.getProperty(this.getOptions(),"grid","x","numberOfTicks");o.ticks(c)}var l=n.select(".x.grid").attr("transform","translate("+-this.backdrop.attr("x")+", "+r+")");t?l.transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"grid-update",animate:t})})).call(o):l.call(o),this.cleanGrid(l)},e.prototype.drawYGrid=function(t){var e=this,n=this.parent,r=this.backdrop.attr("width"),i=this.services.cartesianScales.getMainYScale(),o=VT(i).tickSizeInner(-r).tickSizeOuter(0),a=_d.getProperty(this.getOptions(),"grid","y","alignWithAxisTicks");if(a){var s=this.services.cartesianScales.getRangeAxisPosition(),u=_d.getProperty(this.getOptions(),"axes",s,"ticks","values");u&&o.tickValues(u)}else{var c=_d.getProperty(this.getOptions(),"grid","y","numberOfTicks");o.ticks(c)}var l=n.select(".y.grid").attr("transform","translate(0, "+-this.backdrop.attr("y")+")");t?l.transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"grid-update",animate:t})})).call(o):l.call(o),this.cleanGrid(l)},e.prototype.getGridlineThreshold=function(t){var e,n=this.parent,r=n.selectAll(".x.grid .tick").nodes().sort((function(t,e){return Number(_d.getTranslationValues(t).tx)-Number(_d.getTranslationValues(e).tx)})),i=-1;if(r.length){r.forEach((function(e,n){t[0]>=+_d.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=+_d.getTranslationValues(s).tx-+_d.getTranslationValues(a).tx;else{var u=n.select("rect.chart-grid-backdrop").node(),c=Y_.getSVGElementSize(u).width;o=c-+_d.getTranslationValues(a).tx}else o=+_d.getTranslationValues(s).tx;var l=this.getOptions().tooltip.gridline.threshold;return o*l}},e.prototype.getActiveGridline=function(t){var e=_d.getProperty(this.getOptions,"tooltip","gridline","threshold"),n=e||this.getGridlineThreshold(t),r=this.parent,i=r.selectAll(".x.grid .tick").filter((function(){var e=_d.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=Y_.appendOrSelect(n,"svg.chart-grid-backdrop");var h=Y_.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",Math.abs(s-a)).attr("height",Math.abs(c-l)).lower(),h.attr("width","100%").attr("height","100%")},e.prototype.cleanGrid=function(t){t.selectAll("text").remove(),t.select(".domain").remove()},e}(wT),MB=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=5;function AB(t,e){return t>e-CB&&t<e+CB}var PB=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="ruler",e.renderType=I.SVG,e.isXGridEnabled=_d.getProperty(e.getOptions(),"grid","x","enabled"),e.isYGridEnabled=_d.getProperty(e.getOptions(),"grid","y","enabled"),e.isEventListenerAdded=!1,e}return MB(e,t),e.prototype.render=function(){var t=_d.getProperty(this.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,e){var n=this,r=e[0],i=e[1],o=this.parent,a=this.services.cartesianScales.getOrientation(),s=this.model.getDisplayData(),u=this.services.cartesianScales.getRangeScale(),c=u.range(),l=c[0],h=c[1],f=a===G.HORIZONTAL?i:r,p=Y_.appendOrSelect(o,"g.ruler").attr("aria-label","ruler"),d=Y_.appendOrSelect(p,"line.ruler-line"),v=o.selectAll("[role=graphics-symbol]"),g=s.map((function(t){return{domainValue:n.services.cartesianScales.getDomainValue(t),originalData:t}})).filter((function(t){return AB(t.domainValue,f)}));if(this.pointsWithinLine&&g.length===this.pointsWithinLine.length&&g.map((function(t){return t.domainValue})).join()===this.pointsWithinLine.map((function(t){return t.domainValue})).join())return this.pointsWithinLine=g,this.services.events.dispatchEvent(ft.Tooltip.MOVE,{mousePosition:[r,i]});this.pointsWithinLine=g;var m=this.pointsWithinLine.reduce((function(t,e){if(0===t.length)return t.push(e),t;var n=t[0].domainValue,r=Math.abs(f-e.domainValue),i=Math.abs(f-n);return r>i?t:(r<i?t=[e]:t.push(e),t)}),[]);if(m.length>0){var y=m.map((function(t){return t.originalData})).filter((function(t){var e=n.services.cartesianScales.getRangeIdentifier(t),r=t[e];return null!==r&&void 0!==r})),_=m.map((function(t){return t.domainValue})),b=v.filter((function(t){var e=n.services.cartesianScales.getDomainValue(t);return _.includes(e)}));this.elementsToHighlight&&this.elementsToHighlight.size()>0&&!_d.isEqual(this.elementsToHighlight,b)&&this.hideRuler(),b.dispatch("mouseover"),this.elementsToHighlight=b,this.services.events.dispatchEvent(ft.Tooltip.SHOW,{mousePosition:[r,i],hoveredElement:d,data:this.formatTooltipData(y)}),p.attr("opacity",1);var O=m[0];"horizontal"===a?d.attr("x1",h).attr("x2",l).attr("y1",O.domainValue).attr("y2",O.domainValue):d.attr("y1",h).attr("y2",l).attr("x1",O.domainValue).attr("x2",O.domainValue)}else this.hideRuler()},e.prototype.hideRuler=function(){var t=this.parent,e=Y_.appendOrSelect(t,"g.ruler"),n=t.selectAll("[role=graphics-symbol]");n.dispatch("mouseout"),this.services.events.dispatchEvent(ft.Tooltip.HIDE),e.attr("opacity",0)},e.prototype.addBackdropEventListeners=function(){this.isEventListenerAdded=!0;var t=this,e=this.services.domUtils.getHolder(),n=this.model.getDisplayData(),r=function(e){var n=wd(e,t.parent.node());t.showRuler(e,n)};if(n.length>100){var i=n.length%50*12.5;r=_d.debounceWithD3MousePosition((function(e){var n=this.mousePosition;t.showRuler(e,n)}),i,e)}this.backdrop.on("mousemove mouseover",r).on("mouseout",this.hideRuler.bind(this))},e.prototype.drawBackdrop=function(){var t=this.parent;this.backdrop=Y_.appendOrSelect(t,"svg.chart-grid-backdrop")},e}(wT),LB=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)}}(),DB=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},kB=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="ruler-binned",e.renderType=I.SVG,e}return LB(e,t),e.prototype.showRuler=function(t,e){var n=this,r=e[0],i=e[1],o=this.parent,a=this.model.getOptions(),s=this.services.cartesianScales.getOrientation(),u=this.services.cartesianScales.getRangeScale(),c=u.range(),l=c[0],h=c[1],f=this.services.cartesianScales.getDomainScale(),p=f.invert(s===G.VERTICAL?r:i),d=Y_.appendOrSelect(o,"g.ruler").attr("aria-label","ruler"),v=Y_.appendOrSelect(d,"line.ruler-line"),g=o.selectAll("[role=graphics-symbol]"),m=g.filter((function(t){if(parseFloat(Ml(t,"data.x0"))<=p&&parseFloat(Ml(t,"data.x1"))>=p)return!0}));if(m.size()>0){this.elementsToHighlight&&this.elementsToHighlight.size()>0&&!_d.isEqual(this.elementsToHighlight,m)&&this.hideRuler(),m.dispatch("mouseover"),this.elementsToHighlight=m;var y=G_(m.nodes()[0]).datum(),_=parseFloat(Ml(y,"data.x0")),b=parseFloat(Ml(y,"data.x1")),O=this.model.getActiveDataGroupNames(),w=O.reverse().map((function(t){return{label:t,value:Ml(y,"data."+t),class:n.model.getColorClassName({classNameTypes:[j.TOOLTIP],dataGroupName:t})}})).filter((function(t){return 0!==t.value})),x=w.length>0;if(x){this.services.events.dispatchEvent(ft.Tooltip.SHOW,{mousePosition:[r,i],hoveredElement:v,items:DB([{label:Ml(a,"bins.rangeLabel")||"Range",value:_+" – "+b}],w,!0===_d.getProperty(a,"tooltip","showTotal")?[{label:Ml(a,"tooltip.totalLabel")||"Total",value:O.reduce((function(t,e){return t+parseFloat(Ml(y,"data."+e))}),0)}]:[])}),d.attr("opacity",1);var E=f((_+b)/2);"horizontal"===s?v.attr("x1",h).attr("x2",l).attr("y1",E).attr("y2",E):v.attr("y1",h).attr("y2",l).attr("x1",E).attr("x2",E)}else this.hideRuler()}else this.hideRuler()},e}(PB),RB=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)}}(),IB=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return RB(e,t),e.prototype.formatTooltipData=function(t){return t.reverse()},e}(PB),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)}}(),jB=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="toolbar",e.renderType=I.HTML,e}return NB(e,t),e.prototype.init=function(){var t=this,e=function(){return t.updateOverflowMenu(!1)};this.services.events.addEventListener(ft.Toolbar.SHOW_OVERFLOW_MENU,(function(){t.renderOverflowMenu(),document.body.addEventListener("click",e)})),this.services.events.addEventListener(ft.Toolbar.HIDE_OVERFLOW_MENU,(function(){document.body.removeEventListener("click",e)}))},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this.getComponentContainer().attr("role","toolbar").attr("aria-label","chart-"+this.services.domUtils.getChartID()+" toolbar"),r=_d.getProperty(this.getOptions(),"data","loading");if(r)n.html(""),this.overflowMenu=null;else{this.overflowMenu||(this.overflowMenu=n.append("div").attr("class","cds--overflow-menu-options cds--overflow-menu--flip cds--overflow-menu-options cds--overflow-menu--flip").attr("tabindex",-1).attr("role","menu").html("<ul></ul>"));var i=this.getControlConfigs(),o=i.buttonList,a=i.overflowMenuItemList;a&&o.push(this.getOverflowButtonConfig());var s=n.selectAll("div.toolbar-control").data(o,(function(t){return t.id}));s.exit().remove();var u=s.enter().append("div").attr("class","toolbar-control cds--overflow-menu cds--overflow-menu").attr("role","button"),c=this;u.merge(s).classed("disabled",(function(t){return t.shouldBeDisabled()})).attr("aria-disabled",(function(t){return t.shouldBeDisabled()})).attr("aria-label",(function(t){return t.title})).html((function(t){return'\n\t\t\t<button\n\t\t\t\tclass="cds--overflow-menu__trigger cds--overflow-menu__trigger"\n\t\t\t\taria-haspopup="true" aria-expanded="false" id="'+e.services.domUtils.generateElementIDString("control-"+t.id)+'" aria-label="'+t.title+'">\n\t\t\t\t<svg focusable="false" preserveAspectRatio="xMidYMid meet" style="will-change: transform; width: '+(void 0!==t.iconSVG.width?t.iconSVG.width:"20px")+"; height: "+(void 0!==t.iconSVG.height?t.iconSVG.height:"20px")+'" xmlns="http://www.w3.org/2000/svg" class="cds--overflow-menu__icon cds--overflow-menu__icon" viewBox="0 0 32 32" aria-hidden="true">\n\t\t\t\t\t'+t.iconSVG.content+"\n\t\t\t\t</svg>\n\t\t\t</button>"})).each((function(t,e){var n=this;G_(this).select("button").on("click",(function(e){t.shouldBeDisabled()||c.triggerFunctionAndEvent(t,e,n)})).on("keydown",(function(r){r.key&&"Enter"===r.key||" "===r.key?(r.preventDefault(),c.triggerFunctionAndEvent(t,r,n)):r.key&&"ArrowLeft"===r.key?c.focusOnPreviousEnabledToolbarItem(e):r.key&&"ArrowRight"===r.key&&c.focusOnNextEnabledToolbarItem(e)}))}));this.overflowButton=this.getComponentContainer().select("button.cds--overflow-menu__trigger#"+this.services.domUtils.generateElementIDString("control-toolbar-overflow-menu"))}},e.prototype.renderOverflowMenu=function(){var t=this,e=this.getControlConfigs().overflowMenuItemList,n=this.overflowMenu.select("ul").selectAll("li.cds--overflow-menu-options__option").data(e,(function(t){return _d.getProperty(t,"id")}));n.exit().remove();var r=n.enter().append("li").attr("id",(function(e){return t.services.domUtils.generateElementIDString("control-"+e.id)})).attr("class","cds--overflow-menu-options__option cds--overflow-menu-options__option").attr("role","menuitem");r.append("button").attr("class","cds--overflow-menu-options__btn cds--overflow-menu-options__btn"),r.merge(n).classed("cds--overflow-menu-options__option--disabled",(function(t){return t.shouldBeDisabled()})).classed("cds--overflow-menu-options__option--disabled",(function(t){return t.shouldBeDisabled()})).attr("aria-disabled",(function(t){return t.shouldBeDisabled()})).selectAll("button").text((function(t){return t.text}))},e.prototype.isOverflowMenuOpen=function(){return this.overflowMenu.classed("is-open")},e.prototype.updateOverflowMenu=function(t){this.overflowMenu&&(this.overflowMenu.classed("is-open",t),this.overflowButton&&(this.overflowButton.attr("aria-expanded",t),G_(this.overflowButton.node().parentNode).classed("cds--overflow-menu--open",t).classed("cds--overflow-menu--open",t)),t?this.services.events.dispatchEvent(ft.Toolbar.SHOW_OVERFLOW_MENU):this.services.events.dispatchEvent(ft.Toolbar.HIDE_OVERFLOW_MENU))},e.prototype.focusOnPreviousEnabledToolbarItem=function(t){for(var e=this.getToolbarButtonItems(),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=G_("button#"+this.services.domUtils.generateElementIDString("control-"+e[n].id)).node();"focus"in o&&o.focus()}},e.prototype.focusOnNextEnabledToolbarItem=function(t){for(var e=this.getToolbarButtonItems(),n=-1,r=t+1;r<e.length;r++){var i=e[r];if(!i.shouldBeDisabled()){n=r;break}}if(n>-1){var o=G_("button#"+this.services.domUtils.generateElementIDString("control-"+e[n].id)).node();"focus"in o&&o.focus()}},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=G_("#"+this.services.domUtils.generateElementIDString("control-"+e[n].id)+" button").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=G_("#"+this.services.domUtils.generateElementIDString("control-"+e[n].id)+" button").node();"focus"in o&&o.focus()}},e.prototype.toggleOverflowMenu=function(t){var e=this;if(this.isOverflowMenuOpen())this.updateOverflowMenu(!1);else{this.updateOverflowMenu(!0);var n=this,r=this.getOverflowMenuItems();r.forEach((function(r,i){var o=G_("#"+e.services.domUtils.generateElementIDString("control-"+r.id));null!==o&&(o.on("click",(function(){n.triggerFunctionAndEvent(r,t,o.node()),n.updateOverflowMenu(!1)})),o.on("keydown",(function(e){e&&"Enter"===e.key?n.triggerFunctionAndEvent(r,t,o.node()):e&&"ArrowUp"===e.key?n.focusOnPreviousEnabledMenuItem(i):e&&"ArrowDown"===e.key?n.focusOnNextEnabledMenuItem(i):e&&"Escape"===e.key&&n.updateOverflowMenu(!1),e.preventDefault()})))})),n.focusOnNextEnabledMenuItem(-1)}t&&t.stopImmediatePropagation()},e.prototype.triggerFunctionAndEvent=function(t,e,n){"function"===typeof t.shouldBeDisabled&&t.shouldBeDisabled()||("function"===typeof t.clickFunction&&t.clickFunction(e),this.services.events.dispatchEvent(ft.Toolbar.BUTTON_CLICK,{control:t,event:e,element:n}))},e.prototype.getControlConfigs=function(){var t=this,n=_d.getProperty(this.getOptions(),"toolbar","numberOfIcons")-1,r=_d.getProperty(this.getOptions(),"toolbar","controls"),i=[],o=[],a=[];return r.forEach((function(r){var s=null;r.type===ot.CUSTOM?(null===_d.getProperty(r,"id")&&(r.id="toolbar-button-"+e.buttonID++),null===_d.getProperty(r,"shouldBeDisabled")&&(r.shouldBeDisabled=function(){return!1}),s=r):s=t.getControlConfigByType(r.type),s&&(s.text=r.text?r.text:r.type,-1!==s.id.indexOf("toolbar-export")?i.push(s):o.length<n?null===_d.getProperty(s,"iconSVG","content")?a.push(s):o.push(s):a.push(s))})),a.push.apply(a,i),a.length?{buttonList:o,overflowMenuItemList:a}:{buttonList:o}},e.prototype.getToolbarButtonItems=function(){var t=this.getControlConfigs(),e=t.buttonList,n=t.overflowMenuItemList;return n&&e.push(this.getOverflowButtonConfig()),e||[]},e.prototype.getOverflowMenuItems=function(){var t=this.getControlConfigs().overflowMenuItemList;return t||[]},e.prototype.getOverflowButtonConfig=function(){var t=this;return{id:"toolbar-overflow-menu",title:"More options",shouldBeDisabled:function(){return!1},iconSVG:{content:'<circle cx="16" cy="8" r="2"></circle>\n\t\t\t\t<circle cx="16" cy="16" r="2"></circle>\n\t\t\t\t<circle cx="16" cy="24" r="2"></circle>'},clickFunction:function(e){return t.toggleOverflowMenu(e)}}},e.prototype.getControlConfigByType=function(t){var e,n=this,r=this.services.zoom&&this.services.zoom.isZoomBarEnabled()&&!this.services.zoom.isEmptyState(),i=this.model.getDisplayData();switch(t){case ot.ZOOM_IN:r&&(e={id:"toolbar-zoomIn",title:"Zoom in",shouldBeDisabled:function(){return n.services.zoom.isMinZoomDomain()},iconSVG:{content:this.getControlIconByType(t)},clickFunction:function(){return n.services.zoom.zoomIn()}});break;case ot.ZOOM_OUT:r&&(e={id:"toolbar-zoomOut",title:"Zoom out",shouldBeDisabled:function(){return n.services.zoom.isMaxZoomDomain()},iconSVG:{content:this.getControlIconByType(t)},clickFunction:function(){return n.services.zoom.zoomOut()}});break;case ot.RESET_ZOOM:r&&(e={id:"toolbar-resetZoom",title:"Reset zoom",shouldBeDisabled:function(){return n.services.zoom.isMaxZoomDomain()},iconSVG:{content:this.getControlIconByType(t)},clickFunction:function(){return n.services.zoom.resetZoomDomain()}});break;case ot.MAKE_FULLSCREEN:e={id:"toolbar-makefullscreen",iconSVG:{content:this.getControlIconByType(t),width:"15px",height:"15px"},title:"Make fullscreen",shouldBeDisabled:function(){return!1},clickFunction:function(){n.services.domUtils.toggleFullscreen()}};break;case ot.SHOW_AS_DATATABLE:e={id:"toolbar-showasdatatable",iconSVG:{content:this.getControlIconByType(t)},title:"Show as table",shouldBeDisabled:function(){return 0===i.length},clickFunction:function(){return n.services.events.dispatchEvent(ft.Modal.SHOW)}};break;case ot.EXPORT_CSV:e={id:"toolbar-export-CSV",title:"Export as CSV",shouldBeDisabled:function(){return!1},iconSVG:{content:this.getControlIconByType(t)},clickFunction:function(){return n.model.exportToCSV()}};break;case ot.EXPORT_PNG:e={id:"toolbar-export-PNG",title:"Export as PNG",shouldBeDisabled:function(){return!1},iconSVG:{content:this.getControlIconByType(t)},clickFunction:function(){return n.services.domUtils.exportToPNG()}};break;case ot.EXPORT_JPG:e={id:"toolbar-export-JPG",title:"Export as JPG",shouldBeDisabled:function(){return!1},iconSVG:{content:this.getControlIconByType(t)},clickFunction:function(){return n.services.domUtils.exportToJPG()}};break;default:throw Error("Not supported toolbar control type: "+t)}return e},e.prototype.getControlIconByType=function(t){switch(t){case ot.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\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 ot.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 ot.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"/>';case ot.MAKE_FULLSCREEN:return'<polygon points="21 2 21 4 26.59 4 17 13.58 18.41 15 28 5.41 28 11 30 11 30 2 21 2"/><polygon points="15 18.42 13.59 17 4 26.59 4 21 2 21 2 30 11 30 11 28 5.41 28 15 18.42"/>';case ot.SHOW_AS_DATATABLE:return'<rect x="4" y="6" width="18" height="2"/><rect x="4" y="12" width="18" height="2"/><rect x="4" y="18" width="18" height="2"/><rect x="4" y="24" width="18" height="2"/><rect x="26" y="6" width="2" height="2"/><rect x="26" y="12" width="2" height="2"/><rect x="26" y="18" width="2" height="2"/><rect x="26" y="24" width="2" height="2"/>';case ot.EXPORT_CSV: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"/>';case ot.EXPORT_JPG: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"/>';case ot.EXPORT_PNG: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.buttonID=0,e}(wT),BB=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)}}(),UB=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="zero-line",e.renderType=I.SVG,e}return BB(e,t),e.prototype.render=function(t){var e=this,n=this.services.cartesianScales.getRangeAxisPosition({groups:this.configs.groups}),r=this.services.cartesianScales.getScaleByPosition(n),i=r.domain(),o=i[0],a=i[1],s=o>0&&a<0||o<0&&a>0,u=this.getComponentContainer();if(s){var c=this.services.cartesianScales.getDomainScale().range(),l=c[0],h=c[1],f=+r(0)+.5;f||(f=r.range()[0]);var p=_d.flipSVGCoordinatesBasedOnOrientation({x0:l,x1:h,y0:f,y1:f},this.services.cartesianScales.getOrientation()),d=Y_.appendOrSelect(u,"line.domain");d.transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"zero-line-update",animate:t})})).attr("y1",p.y0).attr("y2",p.y1).attr("x1",p.x0).attr("x2",p.x1)}else u.selectAll("line.domain").remove()},e}(wT),VB=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)}}(),GB=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="zoom-bar",e.renderType=I.SVG,e.MIN_SELECTION_DIFF=9e-10,e.brushSelector="g.zoom-bar-brush",e.clipId="zoomBarClip-"+Math.floor(99999999999*Math.random()),e.brush=OB(),e.highlightStrokeWidth=1,e}return VB(e,t),e.prototype.init=function(){this.services.events.addEventListener(ft.ZoomBar.UPDATE,this.render.bind(this));var t=_d.getProperty(this.getOptions(),"zoomBar",B.TOP,"data");this.model.setZoomBarData(t)},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this.getComponentContainer(),r=this.services.zoom.isZoomBarLoading(B.TOP),i=this.services.zoom.isZoomBarLocked(B.TOP),o=_d.getProperty(this.getOptions(),"zoomBar",B.TOP,"type"),a=_d.getProperty(this.getOptions(),"axes",B.BOTTOM,"highlights"),s=kt.height[o],u=Y_.getSVGElementSize(this.parent,{useAttrs:!0}).width;if(0!==u){var c=0,l=this.model.get("axesMargins");l&&l.left&&(c=l.left);var h=Y_.appendOrSelect(n,"svg.zoom-container").attr("width","100%").attr("height",s).attr("opacity",1);Y_.appendOrSelect(n,"rect.zoom-spacer").attr("x",0).attr("y",s).attr("width","100%").attr("height",kt.spacerHeight).attr("opacity",1).attr("fill","none");if(o===U.GRAPH_VIEW?Y_.appendOrSelect(h,"rect.zoom-bg").attr("x",c).attr("y",0).attr("width",u-c).attr("height","100%").classed("zoom-bg-skeleton",r).style("stroke",r?"url(#"+this.services.domUtils.generateElementIDString("shimmer-lines")+")":null):o===U.SLIDER_VIEW&&Y_.appendOrSelect(h,"rect.zoom-slider-bg").attr("x",c).attr("y",s/2-1).attr("width",u-c).attr("height",2).classed("zoom-slider-bg-skeleton",r).style("stroke",r?"url(#"+this.services.domUtils.generateElementIDString("shimmer-lines")+")":null),r)this.renderSkeleton(h,c,u);else{var f=this.services.cartesianScales,p=f.getMainXScale(),d=f.getMainYScale(),v=f.getMainXScaleType();if(p&&v===H.TIME){var g=this.services.zoom.getZoomBarData();if(_d.isEmpty(g)||1===g.length)return;this.xScale=p.copy(),this.yScale=d.copy();var m=this.services.zoom.getDefaultZoomBarDomain(g);g=this.compensateDataForDefaultDomain(g,m);var y=this.model.get("initialZoomDomain"),_=_d.getProperty(this.getOptions(),"zoomBar",B.TOP,"initialZoomDomain");_&&_[0]&&_[1]&&(_[0]=new Date(_[0]),_[1]=new Date(_[1])),!_||y&&y[0].valueOf()===_[0].valueOf()&&y[1].valueOf()===_[1].valueOf()?null===_&&null!==y&&this.model.set({initialZoomDomain:null,zoomDomain:_d.merge([],m)},{skipUpdate:!0}):this.model.set({initialZoomDomain:_d.merge([],_),zoomDomain:_?_d.merge([],_):m},{skipUpdate:!0}),this.xScale.range([c,u]).domain(m),this.maxSelectionRange=this.xScale.range(),this.yScale.range([0,s-6]).domain(jv(g,(function(t){return t.value})));var b=this.model.get("zoomDomain");if(o===U.GRAPH_VIEW&&(this.renderZoomBarArea(h,"path.zoom-graph-area-unselected",g,null),this.updateClipPath(n,this.clipId,0,0,0,0),this.renderZoomBarArea(h,"path.zoom-graph-area",g,this.clipId),this.renderZoomBarBaseline(h,c,u),a)){var O=a.highlightStartMapsTo,w=a.highlightEndMapsTo,x=a.color,E=a.labelMapsTo;a.data.forEach((function(t,n){Y_.appendOrSelect(h,"rect.highlight-"+n).attr("height",s-2*e.highlightStrokeWidth).attr("y",e.highlightStrokeWidth).attr("x",e.xScale(t[O])).attr("width",e.xScale(t[w])-e.xScale(t[O])).style("fill",x&&x.scale[t[E]]?x.scale[t[E]]:null).style("fill-opacity",.1).style("stroke",x&&x.scale[t[E]]?x.scale[t[E]]:null).style("stroke-dasharray","2, 2").attr("stroke-width","1px")}))}this.addBrushEventListener(b,c,u);var S=Y_.appendOrSelect(n,this.brushSelector).call(this.brush);if(void 0===b);else if(b[0].valueOf()===b[1].valueOf())S.call(this.brush.move,this.xScale.range()),this.updateBrushHandle(this.getComponentContainer(),this.xScale.range(),this.xScale.domain());else{var T=b.map((function(t){return e.xScale(t)}));T[1]-T[0]<this.MIN_SELECTION_DIFF||(S.call(this.brush.move,T),this.updateBrushHandle(this.getComponentContainer(),T,b))}i&&(this.brush.filter((function(){return!1})),S.selectAll("rect").attr("cursor","auto"))}}}},e.prototype.addBrushEventListener=function(t,e,n){var r=this,i=function(e){var n=e.selection;null===n?r.handleBrushedEvent(e,t,r.xScale,r.xScale.range()):n[0]===n[1]||r.handleBrushedEvent(e,t,r.xScale,n)},o=_d.getProperty(this.getOptions(),"zoomBar",B.TOP,"type"),a=kt.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,r){var i=[n.invert(r[0]),n.invert(r[1])];if(this.updateBrushHandle(this.getComponentContainer(),r,i),null!=t.sourceEvent&&("mousemove"===t.sourceEvent.type||"mouseup"===t.sourceEvent.type||"mousedown"===t.sourceEvent.type||"touchstart"===t.sourceEvent.type||"touchmove"===t.sourceEvent.type||"touchend"===t.sourceEvent.type)){void 0!==e&&e[0]===i[0]&&e[1]===i[1]||this.services.zoom.handleDomainChange(i,{dispatchEvent:!1});var o=void 0;"start"===t.type?o=ft.ZoomBar.SELECTION_START:"brush"===t.type?o=ft.ZoomBar.SELECTION_IN_PROGRESS:"end"===t.type&&(o=ft.ZoomBar.SELECTION_END,this.services.events.dispatchEvent(ft.ZoomDomain.CHANGE,{newDomain:i})),this.services.events.dispatchEvent(o,{selection:r,newDomain:i})}},e.prototype.updateBrushHandle=function(t,e,n){var r=this,i=kt.handleWidth,o=_d.getProperty(this.getOptions(),"zoomBar",B.TOP,"type"),a=kt.height[o],s=-i/2,u=kt.handleBarWidth,c=o===U.GRAPH_VIEW?kt.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===U.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=_d.getProperty(this.getOptions(),"zoomBar",B.TOP,"type"),n=kt.height[e],r=(Y_.getSVGElementSize(this.parent,{useAttrs:!0}).width,this.model.get("axesMargins"));r&&r.left&&r.left;var i=this.getComponentContainer(),o=i.select("svg.zoom-container");Y_.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=_d.getProperty(this.getOptions(),"zoomBar",B.TOP,"type"),p=kt.height[f],d=mA().x((function(t,e){return l(t,e)})).y0(p).y1((function(t,e){return p-h(t,e)})),v=Y_.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=Y_.appendOrSelect(t,"clipPath").attr("id",e);Y_.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=_d.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.renderZoomBarBaseline=function(t,e,n,r){void 0===r&&(r=!1);var i=_d.getProperty(this.model.getOptions(),"zoomBar",B.TOP,"type"),o=kt.height[i],a=gA()([[e,o],[n,o]]);Y_.appendOrSelect(t,"path.zoom-bg-baseline").attr("d",a).classed("zoom-bg-baseline-skeleton",r).style("stroke",r?"url(#"+this.services.domUtils.generateElementIDString("shimmer-lines")+")":null)},e.prototype.renderSkeleton=function(t,e,n){this.renderZoomBarArea(t,"path.zoom-graph-area-unselected",[],null),this.renderZoomBarArea(t,"path.zoom-graph-area",[],this.clipId),this.brush.on("start brush end",null),Y_.appendOrSelect(this.getComponentContainer(),this.brushSelector).html(null);var r=_d.getProperty(this.getOptions(),"zoomBar",B.TOP,"type");r===U.GRAPH_VIEW&&this.renderZoomBarBaseline(t,e,n,!0)},e.prototype.destroy=function(){this.brush.on("start brush end",null),this.services.events.removeEventListener(ft.ZoomBar.UPDATE,this.render.bind(this))},e}(wT),HB=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},zB=function(){function t(t,e){this.services={domUtils:Y_,files:$_,events:X_,gradientUtils:eb,transitions:J_,canvasZoom:OT},this.model=new Um(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(ft.Model.UPDATE,(function(t){var e=!!_d.getProperty(t,"detail","animate");n.update(e)})),this.model.setData(e.data),this.services.events.addEventListener(ft.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(ft.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,e){var n=this.model.getOptions(),r=_d.getProperty(n,"toolbar","enabled"),i={id:"legend",components:[new ET(this.model,this.services)],growth:Z.PREFERRED},o=_d.getProperty(n,"canvasZoom","enabled");o&&!0===o&&t.push(new rA(this.model,this.services));var a=!!this.model.getOptions().title,s={id:"title",components:[new qC(this.model,this.services)],growth:Z.STRETCH},u={id:"toolbar",components:[new jB(this.model,this.services)],growth:Z.PREFERRED},c={id:"header",components:[new AI(this.model,this.services,HB([s],r?[u]:[]),{direction:Y.ROW,alignItems:X.CENTER})],growth:Z.PREFERRED},l={id:"graph-frame",components:t,growth:Z.STRETCH,renderType:_d.getProperty(e,"graphFrameRenderType")||I.SVG},h=!0!==_d.getProperty(e,"excludeLegend")&&!1!==n.legend.enabled,f=Y.COLUMN;if(h){var p=_d.getProperty(n,"legend","position");"left"===p?(f=Y.ROW,n.legend.orientation||(n.legend.orientation=W.VERTICAL)):"right"===p?(f=Y.ROW_REVERSE,n.legend.orientation||(n.legend.orientation=W.VERTICAL)):"bottom"===p&&(f=Y.COLUMN_REVERSE)}var d={id:"spacer",components:[new MI(this.model,this.services)],growth:Z.PREFERRED},v={id:"full-frame",components:[new AI(this.model,this.services,HB(h?[i]:[],h?[d]:[],[l]),{direction:f})],growth:Z.STRETCH},g=[];if(a||r){g.push(c);var m={id:"spacer",components:[new MI(this.model,this.services,r?{size:15}:void 0)],growth:Z.PREFERRED};g.push(m)}return g.push(v),[new KC(this.model,this.services),new BC(this.model,this.services),new AI(this.model,this.services,g,{direction:Y.COLUMN})]},t}(),FB=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)}}(),WB=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},qB=function(t){function e(e){var n=t.call(this,e)||this;return n.axisFlavor=lt.DEFAULT,n}return FB(e,t),e.prototype.assignRangeAndDomains=function(){var t=this.services.cartesianScales,e=this.getOptions(),n=t.isDualAxes(),r={primaryDomain:t.domainAxisPosition,primaryRange:t.rangeAxisPosition,secondaryDomain:null,secondaryRange:null};return n&&(r.secondaryDomain=t.secondaryDomainAxisPosition,r.secondaryRange=t.secondaryRangeAxisPosition),Object.keys(r).forEach((function(n){var i=r[n];t.scales[i]?r[n]={position:i,label:t.getScaleLabel(i),identifier:_d.getProperty(e,"axes",i,"mapsTo")}:r[n]=null})),r},e.prototype.getTabularDataArray=function(){var t,e=this.getDisplayData(),n=this.getOptions(),r=n.data.groupMapsTo,i=this.services.cartesianScales,o=this.assignRangeAndDomains(),a=o.primaryDomain,s=o.primaryRange,u=o.secondaryDomain,c=o.secondaryRange,l=i.getDomainAxisScaleType();l===H.TIME&&(t=function(t){return Em(t,"MMM d, yyyy")});var h=WB([WB(["Group",a.label,s.label],u?[u.label]:[],c?[c.label]:[])],e.map((function(e){return WB([e[r],null===e[a.identifier]?"&ndash;":t?t(e[a.identifier]):e[a.identifier],null===e[s.identifier]||isNaN(e[s.identifier])?"&ndash;":e[s.identifier].toLocaleString()],u?[null===e[u.identifier]?"&ndash;":e[u.identifier]]:[],c?[null===e[c.identifier]||isNaN(e[c.identifier])?"&ndash;":e[c.identifier]]:[])})));return h},e.prototype.setData=function(e){var n;if(e&&(n=t.prototype.setData.call(this,e),_d.getProperty(this.getOptions(),"zoomBar",B.TOP,"enabled"))){var r=_d.getProperty(this.getOptions(),"zoomBar",B.TOP,"data");this.setZoomBarData(r)}return n},e.prototype.setZoomBarData=function(t){var e=t?this.sanitize(_d.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=_d.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(B).forEach((function(t){var r=B[t],i=e.axes[r];if(i&&i.scaleType===H.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===_d.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}(Um),YB=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)}}(),ZB=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},XB=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.services=Object.assign(r.services,{cartesianScales:lS,curves:mT,zoom:_T}),r.model=new qB(r.services),r}return YB(e,t),e.prototype.getAxisChartComponents=function(t,e){var n=this.model.getOptions(),r=_d.getProperty(n,"zoomBar",B.TOP,"enabled"),i=_d.getProperty(n,"toolbar","enabled");this.services.cartesianScales.determineAxisDuality(),this.services.cartesianScales.findDomainAndRangeAxes(),this.services.cartesianScales.determineOrientation();var o=this.services.cartesianScales.getMainXAxisPosition(),a=_d.getProperty(n,"axes",o,"scaleType"),s=r&&o===B.BOTTOM&&a===H.TIME,u=this.services.zoom.isZoomBarLocked(B.TOP),c=!!this.model.getOptions().title,l={id:"title",components:[new qC(this.model,this.services)],growth:Z.STRETCH},h={id:"toolbar",components:[new jB(this.model,this.services)],growth:Z.PREFERRED},f={id:"header",components:[new AI(this.model,this.services,ZB([l],i?[h]:[]),{direction:Y.ROW,alignItems:X.CENTER})],growth:Z.PREFERRED},p={id:"legend",components:[new ET(this.model,this.services)],growth:Z.PREFERRED};s&&!u&&t.push(new eA(this.model,this.services),new EB(this.model,this.services)),t.push(new FC(this.model,this.services)),t.push(new aA(this.model,this.services));var d={id:"graph-frame",components:t,growth:Z.STRETCH,renderType:I.SVG},v=!1!==_d.getProperty(e,"legend","enabled")&&!1!==this.model.getOptions().legend.enabled,g=Y.COLUMN;if(v){var m=_d.getProperty(this.model.getOptions(),"legend","position");m===z.LEFT?(g=Y.ROW,this.model.getOptions().legend.orientation||(this.model.getOptions().legend.orientation=W.VERTICAL)):m===z.RIGHT?(g=Y.ROW_REVERSE,this.model.getOptions().legend.orientation||(this.model.getOptions().legend.orientation=W.VERTICAL)):m===z.BOTTOM&&(g=Y.COLUMN_REVERSE)}var y={id:"spacer",components:[new MI(this.model,this.services)],growth:Z.PREFERRED},_={id:"full-frame",components:[new AI(this.model,this.services,ZB(v?[p]:[],v?[y]:[],[d]),{direction:g})],growth:Z.STRETCH},b={id:"zoom-bar",components:[new GB(this.model,this.services)],growth:Z.PREFERRED,renderType:I.SVG},O=[];if(c||i){O.push(f);var w={id:"spacer",components:[new MI(this.model,this.services,i?{size:15}:void 0)],growth:Z.PREFERRED};O.push(w)}return s&&O.push(b),O.push(_),[new JC(this.model,this.services),new BC(this.model,this.services),new AI(this.model,this.services,O,{direction:Y.COLUMN})]},e}(zB),KB=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)}}(),$B=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(_d.mergeDefaultChartOptions(_d.clone(uv.areaChart),n.options)),r.init(e,n),r}return KB(e,t),e.prototype.getComponents=function(){var t=[new NI(this.model,this.services),new TB(this.model,this.services),new PB(this.model,this.services),new GA(this.model,this.services),new _A(this.model,this.services),new kA(this.model,this.services,{fadeInOnChartHolderMouseover:!0,handleThresholds:!0}),new dP(this.model,this.services,{skeleton:$.GRID})],e=this.getAxisChartComponents(t);return e},e}(XB),QB=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)}}(),JB=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(_d.mergeDefaultChartOptions(uv.stackedAreaChart,n.options)),r.init(e,n),r}return QB(e,t),e.prototype.getComponents=function(){var t=[new NI(this.model,this.services),new TB(this.model,this.services),new IB(this.model,this.services),new OA(this.model,this.services),new GA(this.model,this.services,{stacked:!0}),new WA(this.model,this.services,{fadeInOnChartHolderMouseover:!0,handleThresholds:!0,stacked:!0}),new dP(this.model,this.services,{skeleton:$.GRID})],e=this.getAxisChartComponents(t);return e},e}(XB),tU=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)}}(),eU=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(_d.mergeDefaultChartOptions(uv.simpleBarChart,n.options)),r.init(e,n),r}return tU(e,t),e.prototype.getComponents=function(){var t=[new NI(this.model,this.services),new TB(this.model,this.services),new SA(this.model,this.services),new UB(this.model,this.services),new dP(this.model,this.services,{skeleton:$.VERT_OR_HORIZ})],e=this.getAxisChartComponents(t);return e},e}(XB),nU=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)}}(),rU=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(_d.mergeDefaultChartOptions(uv.groupedBarChart,n.options)),r.init(e,n),r}return nU(e,t),e.prototype.getComponents=function(){var t=[new NI(this.model,this.services),new TB(this.model,this.services),new MA(this.model,this.services),new UB(this.model,this.services),new dP(this.model,this.services,{skeleton:$.VERT_OR_HORIZ})],e=this.getAxisChartComponents(t);return e},e}(XB),iU=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)}}(),oU=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(_d.mergeDefaultChartOptions(uv.stackedBarChart,n.options)),r.init(e,n),r}return iU(e,t),e.prototype.getComponents=function(){var t=[new NI(this.model,this.services),new TB(this.model,this.services),new IB(this.model,this.services),new AA(this.model,this.services),new dP(this.model,this.services,{skeleton:$.VERT_OR_HORIZ}),new UB(this.model,this.services)],e=this.getAxisChartComponents(t);return e},e}(XB);function aU(t,e,n=0,r=t.length-1,i=Cv){while(r>n){if(r-n>600){const o=r-n+1,a=e-n+1,s=Math.log(o),u=.5*Math.exp(2*s/3),c=.5*Math.sqrt(s*u*(o-u)/o)*(a-o/2<0?-1:1),l=Math.max(n,Math.floor(e-a*u/o+c)),h=Math.min(r,Math.floor(e+(o-a)*u/o+c));aU(t,e,l,h,i)}const o=t[e];let a=n,s=r;sU(t,n,e),i(t[r],o)>0&&sU(t,n,r);while(a<s){sU(t,a,s),++a,--s;while(i(t[a],o)<0)++a;while(i(t[s],o)>0)--s}0===i(t[n],o)?sU(t,n,s):(++s,sU(t,s,r)),s<=e&&(n=s+1),e<=s&&(r=s-1)}return t}function sU(t,e,n){const r=t[e];t[e]=t[n],t[n]=r}function uU(t,e,n){if(t=Float64Array.from(Dv(t,n)),r=t.length){if((e=+e)<=0||r<2)return Tm(t);if(e>=1)return PE(t);var r,i=(r-1)*e,o=Math.floor(i),a=PE(aU(t,o).subarray(0,o+1)),s=Tm(t.subarray(o+1));return a+(s-a)*(i-o)}}var cU,lU=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)}}(),hU=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},fU=function(t){function e(e){return t.call(this,e)||this}return lU(e,t),e.prototype.getBoxQuartiles=function(t){return{q_25:uU(t,.25),q_50:uU(t,.5),q_75:uU(t,.75)}},e.prototype.getBoxplotData=function(){for(var t=this.getOptions(),e=t.data.groupMapsTo,n=this.getGroupedData(),r=[],i=function(t,n){for(var i,a=o.services.cartesianScales.getRangeIdentifier(),s=n.map((function(t){return t[a]})).sort(Cv),u=(i={},i[e]=t,i.counts=s,i.quartiles=o.getBoxQuartiles(s),i.outliers=null,i.whiskers=null,i),c=u.quartiles.q_25,l=u.quartiles.q_75,h=1.5*(l-c),f=c-h,p=l+h,d=[],v=[],g=0,m=s;g<m.length;g++){var y=m[g];y<f?d.push(y):y>p?d.push(y):v.push(y)}u.outliers=d;var _=Tm(v),b=PE(v);u.whiskers={min:_||Tm([u.quartiles.q_25,u.quartiles.q_50,u.quartiles.q_75]),max:b||PE([u.quartiles.q_25,u.quartiles.q_50,u.quartiles.q_75])},r.push(u)},o=this,a=0,s=n;a<s.length;a++){var u=s[a],c=u.name,l=u.data;i(c,l)}return r},e.prototype.getTabularDataArray=function(){var t=this.getOptions(),e=t.data.groupMapsTo,n=this.getBoxplotData(),r=hU([["Group","Minimum","Q1","Median","Q3","Maximum","IQR","Outlier(s)"]],n.map((function(t){var n=_d.getProperty(t,"outliers");return null!==n&&0!==n.length||(n=["&ndash;"]),[t[e],null!==_d.getProperty(t,"whiskers","min")?_d.getProperty(t,"whiskers","min").toLocaleString():"&ndash;",null!==_d.getProperty(t,"quartiles","q_25")?_d.getProperty(t,"quartiles","q_25").toLocaleString():"&ndash;",null!==_d.getProperty(t,"quartiles","q_50")?_d.getProperty(t,"quartiles","q_50").toLocaleString():"&ndash;",null!==_d.getProperty(t,"quartiles","q_75")?_d.getProperty(t,"quartiles","q_75").toLocaleString():"&ndash;",null!==_d.getProperty(t,"whiskers","max")?_d.getProperty(t,"whiskers","max").toLocaleString():"&ndash;",null!==_d.getProperty(t,"quartiles","q_75")&&null!==_d.getProperty(t,"quartiles","q_25")?(_d.getProperty(t,"quartiles","q_75")-_d.getProperty(t,"quartiles","q_25")).toLocaleString():"&ndash;",n.map((function(t){return t.toLocaleString()})).join(",")]})));return r},e.prototype.setColorClassNames=function(){var t=1,e=_d.getProperty(this.getOptions(),"color","pairing"),n=_d.getProperty(e,"option"),r=_t.pairingOptions;n=n<=r[t+"-color"]?n:1;var i=this.allDataGroups.map((function(e,r){return t+"-"+n+"-1"}));this.colorClassNames=gv().range(i).domain(this.allDataGroups)},e}(qB),pU=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)}}(),dU=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model=new fU(r.services),r.model.setOptions(_d.mergeDefaultChartOptions(uv.boxplotChart,n.options)),r.init(e,n),r}return pU(e,t),e.prototype.getComponents=function(){var t=[new NI(this.model,this.services),new TB(this.model,this.services),new LA(this.model,this.services),new UB(this.model,this.services),new dP(this.model,this.services,{skeleton:$.VERT_OR_HORIZ})],e=this.getAxisChartComponents(t,{legend:{enabled:!1}});return e},e}(XB),vU=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)}}(),gU=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(_d.mergeDefaultChartOptions(uv.bubbleChart,n.options)),r.init(e,n),r}return vU(e,t),e.prototype.getComponents=function(){var t=[new NI(this.model,this.services),new TB(this.model,this.services),new PB(this.model,this.services),new IA(this.model,this.services),new dP(this.model,this.services,{skeleton:$.GRID})],e=this.getAxisChartComponents(t);return e},e}(XB),mU=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)}}(),yU=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},_U=function(t){function e(e){return t.call(this,e)||this}return mU(e,t),e.prototype.getMatchingRangeIndexForDatapoint=function(t){for(var e,n=t.ranges.length-1;n>0;n--){var r=t.ranges[n];if(t.value>=r)return e=n,e}return 0},e.prototype.getTabularDataArray=function(){var t=this,e=this.getDisplayData(),n=this.getOptions(),r=n.data.groupMapsTo,i=this.services.cartesianScales.getRangeIdentifier(),o=_d.getProperty(n,"bullet","performanceAreaTitles"),a=yU([["Title","Group","Value","Target","Percentage","Performance"]],e.map((function(e){return[e["title"],e[r],null===e["value"]?"&ndash;":e["value"],null===_d.getProperty(e,"marker")?"&ndash;":e["marker"],null===_d.getProperty(e,"marker")?"&ndash;":Math.floor(e[i]/e.marker*100)+"%",o[t.getMatchingRangeIndexForDatapoint(e)]]})));return a},e}(qB),bU=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)}}(),OU=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model=new _U(r.services),r.model.setOptions(_d.mergeDefaultChartOptions(uv.bulletChart,n.options)),r.init(e,n),r}return bU(e,t),e.prototype.getComponents=function(){var t=[new NI(this.model,this.services),new TB(this.model,this.services),new jA(this.model,this.services),new dP(this.model,this.services,{skeleton:$.GRID})],e=this.getAxisChartComponents(t);return e},e}(XB),wU=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)}}(),xU=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},EU=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return wU(e,t),e.prototype.getTabularDataArray=function(){var t=this.getOptions(),e=t.data.groupMapsTo,n=this.getBinnedStackedData(),r=xU([xU([Ml(t,"bins.rangeLabel")||"Range"],n.map((function(t){return Ml(t,"0."+e)})))],Ml(n,0).map((function(t,r){return xU([Ml(t,"data.x0")+" – "+Ml(t,"data.x1")],n.map((function(t){return Ml(t[r],"data."+Ml(t[r],e))})))})));return r},e}(qB),SU=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)}}(),TU=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model=new EU(r.services),r.model.setOptions(_d.mergeDefaultChartOptions(uv.histogramChart,n.options)),r.init(e,n),r.update(),r}return SU(e,t),e.prototype.getComponents=function(){var t=[new NI(this.model,this.services),new TB(this.model,this.services),new kB(this.model,this.services),new UA(this.model,this.services)],e=this.getAxisChartComponents(t);return e},e}(XB),MU=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)}}(),CU=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(_d.mergeDefaultChartOptions(uv.lineChart,n.options)),r.init(e,n),r}return MU(e,t),e.prototype.getComponents=function(){var t=[new NI(this.model,this.services),new TB(this.model,this.services),new PB(this.model,this.services),new GA(this.model,this.services),new kA(this.model,this.services,{handleThresholds:!0}),new gP(this.model,this.services),new UB(this.model,this.services)],e=this.getAxisChartComponents(t);return e},e}(XB),AU=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)}}(),PU=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(_d.mergeDefaultChartOptions(uv.lollipopChart,n.options)),r.init(e,n),r}return AU(e,t),e.prototype.getComponents=function(){var t=[new NI(this.model,this.services),new TB(this.model,this.services),new PB(this.model,this.services),new zA(this.model,this.services),new kA(this.model,this.services),new dP(this.model,this.services,{skeleton:$.GRID})],e=this.getAxisChartComponents(t);return e},e}(XB),LU=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)}}(),DU=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(_d.mergeDefaultChartOptions(uv.scatterChart,n.options)),r.init(e,n),r}return LU(e,t),e.prototype.getComponents=function(){var t=[new NI(this.model,this.services),new TB(this.model,this.services),new PB(this.model,this.services),new kA(this.model,this.services),new dP(this.model,this.services,{skeleton:$.GRID})],e=this.getAxisChartComponents(t);return e},e}(XB),kU=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)}}(),RU=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},IU=function(t){function e(e){return t.call(this,e)||this}return kU(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.getTabularDataArray=function(){var t=this.getDisplayData(),e=this.getOptions(),n=e.data.groupMapsTo,r=RU([["Group","Value"]],t.map((function(t){return[t[n],null===t["value"]?"&ndash;":t["value"].toLocaleString()]})));return r},e.prototype.sanitize=function(t){var e=this.getTabularData(t);return e.sort((function(t,e){return e.value-t.value}))},e}(Um),NU=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)}}(),jU=function(t){function e(e,n,r){void 0===r&&(r=!1);var i=t.call(this,e,n)||this;return i.model=new IU(i.services),r?i:(i.model.setOptions(_d.mergeDefaultChartOptions(uv.pieChart,n.options)),i.init(e,n),i)}return NU(e,t),e.prototype.getComponents=function(){var t=[new oP(this.model,this.services),new dP(this.model,this.services,{skeleton:$.PIE})],e=this.getChartComponents(t);return e},e}(zB),BU=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)}}(),UU=function(t){function e(e,n){var r=t.call(this,e,n,!0)||this;return r.model.setOptions(_d.mergeDefaultChartOptions(uv.donutChart,n.options)),r.init(e,n),r}return BU(e,t),e.prototype.getComponents=function(){var t=[new hP(this.model,this.services),new dP(this.model,this.services,{skeleton:$.DONUT})],e=this.getChartComponents(t);return e},e}(jU),VU=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)}}(),GU=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},HU=function(t){function e(e){return t.call(this,e)||this}return VU(e,t),e.prototype.getMaximumDomain=function(t){var e=t.reduce((function(t,e){return t+e.value}),0);return e},e.prototype.getFillColor=function(e){var n=this.getOptions(),r=_d.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=_d.getProperty(this.getDisplayData()),n=(e?e.reduce((function(t,e){return{value:t.value+e.value}})):0).value,r=_d.getProperty(t,"meter","proportional")?n:n>100?100:n,i=_d.getProperty(t,"meter","status","ranges");if(i){var o=i.filter((function(t){return t.range[0]<=r&&r<=t.range[1]}));if(o.length>0)return o[0].status}return null},e.prototype.getTabularDataArray=function(){var t,e=this.getDisplayData(),n=this.getOptions(),r=n.data.groupMapsTo,i=this.getStatus(),o=_d.getProperty(n,"meter","proportional"),a=[];if(null===o){t=100;var s=e[0];a=[GU(["Group","Value"],i?["Status"]:[]),GU([s[r],s["value"]],i?[i]:[])]}else{var u=_d.getProperty(o,"total");t=u||this.getMaximumDomain(e),a=GU([["Group","Value","Percentage of total"]],e.map((function(e){return[e[r],e["value"],(e["value"]/t*100).toFixed(2)+" %"]})))}return a},e}(Um),zU=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)}}(),FU=function(){return FU=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},FU.apply(this,arguments)},WU=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="meter",e.renderType=I.SVG,e}return zU(e,t),e.prototype.getStackedBounds=function(t,e){var n=0,r=t.map((function(t,r){return 0!==r?(n+=e(t.value),FU(FU({},t),{width:Math.abs(e(t.value)-Et.dividerWidth),x:n-e(t.value)})):(n=e(t.value),FU(FU({},t),{width:Math.abs(e(t.value)-Et.dividerWidth),x:0}))}));return r},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n,r=this,i=this.getComponentContainer(),o=this.getOptions(),s=_d.getProperty(o,"meter","proportional"),u=this.model.getDisplayData(),c=this.model.getStatus(),l=Y_.getSVGElementSize(i,{useAttrs:!0}).width,h=o.data.groupMapsTo;if(null===_d.getProperty(o,"meter","proportional"))n=100;else{var f=_d.getProperty(o,"meter","proportional","total");n=f||this.model.getMaximumDomain(this.model.getDisplayData())}var p=AE().domain([0,n]).range([0,l]),d=this.getStackedBounds(u,p),v=_d.getProperty(o,"meter","height");Y_.appendOrSelect(i,"rect.container").attr("x",0).attr("y",0).attr("width",l).attr("height",v||(s?Et.height.proportional:Et.height.default)),Y_.appendOrSelect(i,"line.rangeIndicator").attr("x1",l).attr("x2",l).attr("y1",0).attr("y2",v||(s?Et.height.proportional:Et.height.default));var g=i.selectAll("rect.value").data(d),m=null==c||r.model.isUserProvidedColorScaleValid()||s?"value":"value status--"+c;g.enter().append("rect").classed("value",!0).merge(g).attr("x",(function(t){return t.x})).attr("y",0).attr("height",(function(){var t=_d.getProperty(o,"meter","height");return t||(s?Et.height.proportional:Et.height.default)})).attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[j.FILL],dataGroupName:t[h],originalClassName:m})})).transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"meter-bar-update",animate:t})})).attr("width",(function(t,e){return t.value>n?p(n):t.width})).style("fill",(function(t){return r.model.getFillColor(t[h])})).attr("role",a.GRAPHICS_SYMBOL).attr("aria-roledescription","value").attr("aria-label",(function(t){return t.value})),g.exit().remove();var y=_d.getProperty(o,"meter","peak"),_=y;null!==y&&(y>n?_=n:y<u[0].value&&(_=u[0].value>n?n:u[0].value));var b=i.selectAll("line.peak").data(null==_?[]:[_]);b.enter().append("line").classed("peak",!0).merge(b).attr("y1",0).attr("y2",(function(){var t=_d.getProperty(o,"meter","height");return t||(s?Et.height.proportional:Et.height.default)})).transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"peak-line-update",animate:t})})).attr("x1",(function(t){return p(t)})).attr("x2",(function(t){return p(t)})).attr("role",a.GRAPHICS_SYMBOL).attr("aria-roledescription","peak").attr("aria-label",(function(t){return t})),b.exit().remove(),this.services.domUtils.setSVGMaxHeight(),this.addEventListeners()},e.prototype.addEventListeners=function(){var t=this.getOptions(),e=t.data.groupMapsTo,n=this,r=_d.getProperty(t,"meter","proportional");this.parent.selectAll("rect.value").on("mouseover",(function(t,i){var o=G_(this);n.services.events.dispatchEvent(ft.Meter.METER_MOUSEOVER,{event:t,element:o,datum:i}),r&&(o.classed("hovered",!0),n.services.events.dispatchEvent(ft.Tooltip.SHOW,{event:t,hoveredElement:o,items:[{label:i[e],value:i.value}]}))})).on("mousemove",(function(t,e){var i=G_(this);n.services.events.dispatchEvent(ft.Meter.METER_MOUSEMOVE,{event:t,element:i,datum:e}),r&&n.services.events.dispatchEvent(ft.Tooltip.MOVE,{event:t})})).on("click",(function(t,e){n.services.events.dispatchEvent(ft.Meter.METER_CLICK,{event:t,element:G_(this),datum:e})})).on("mouseout",(function(t,e){var i=G_(this);n.services.events.dispatchEvent(ft.Meter.METER_MOUSEOUT,{event:t,element:i,datum:e}),r&&(i.classed("hovered",!1),n.services.events.dispatchEvent(ft.Tooltip.HIDE,{hoveredElement:i}))}))},e.prototype.destroy=function(){this.parent.selectAll("rect.value").on("mouseover",null).on("mousemove",null).on("mouseout",null).on("click",null)},e}(wT),qU=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)}}(),YU=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},ZU=function(t){function e(e,n){var r=t.call(this,e,n)||this;r.model=new HU(r.services);var i=n.options.meter.proportional?_d.merge(_d.clone(uv.proportionalMeterChart),n.options):_d.merge(_d.clone(uv.meterChart),n.options);return r.model.setOptions(i),r.init(e,n),r}return qU(e,t),e.prototype.getComponents=function(){var t=_d.getProperty(this.model.getOptions(),"meter","showLabels"),e=YU(t?[{id:"meter-title",components:[new ZC(this.model,this.services)],growth:Z.STRETCH,renderType:I.SVG},{id:"spacer",components:[new MI(this.model,this.services,{size:8})],growth:Z.STRETCH}]:[],[{id:"meter-graph",components:[new WU(this.model,this.services)],growth:Z.STRETCH,renderType:I.SVG}]),n=[new AI(this.model,this.services,e,{direction:Y.COLUMN})],r=this.getChartComponents(n,{graphFrameRenderType:I.HTML});return r},e}(zB),XU=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)}}(),KU=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},$U=function(t){function e(e){return t.call(this,e)||this}return XU(e,t),e.prototype.getTabularDataArray=function(){var t=this.getOptions(),e=this.getGroupedData(),n=_d.getProperty(t,"radar","axes"),r=n.angle,i=n.value,o=_d.getProperty(e,"0","data").map((function(t){return t[r]})),a=KU([KU(["Group"],o)],e.map((function(t){return KU([t["name"]],o.map((function(e,n){return null!==_d.getProperty(t,"data",n,i)?_d.getProperty(t,"data",n,i).toLocaleString():"&ndash;"})))})));return a},e}(qB),QU=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)}}(),JU=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model=new $U(r.services),r.model.setOptions(_d.mergeDefaultChartOptions(uv.radarChart,n.options)),r.init(e,n),r}return QU(e,t),e.prototype.getComponents=function(){var t=[new hR(this.model,this.services)],e=this.getChartComponents(t);return e},e}(zB),tV=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)}}(),eV=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},nV=function(t){function e(e){return t.call(this,e)||this}return tV(e,t),e.prototype.getDataGroups=function(){return t.prototype.getDataGroups.call(this).filter((function(t){return"delta"!==t.name}))},e.prototype.getTabularDataArray=function(){var t=this.getDisplayData(),e=this.getOptions(),n=e.data.groupMapsTo,r=eV([["Group","Value"]],t.map((function(t){return[t[n],null===t["value"]?"&ndash;":t["value"].toLocaleString()]})));return r},e}(Um),rV=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)}}(),iV=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model=new nV(r.services),r.model.setOptions(_d.mergeDefaultChartOptions(uv.gaugeChart,n.options)),r.init(e,n),r}return rV(e,t),e.prototype.getComponents=function(){var t=[new cP(this.model,this.services)],e=this.getChartComponents(t);return e},e}(zB),oV=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)}}(),aV=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},sV=(cU={},cU[it.LINE]=[GA,kA],cU[it.SCATTER]=[kA],cU[it.AREA]=[_A,GA,kA],cU[it.STACKED_AREA]=[OA,GA,WA,IB],cU[it.SIMPLE_BAR]=[SA],cU[it.GROUPED_BAR]=[MA,UB],cU[it.STACKED_BAR]=[AA,IB],cU),uV=function(t){function e(e,n){var r=t.call(this,e,n)||this,i=_d.mergeDefaultChartOptions(uv.comboChart,n.options);return n.options.comboChartTypes||(console.error("No comboChartTypes defined for the Combo Chart!"),i.comboChartTypes=[{type:it.LINE,correspondingDatasets:[]}]),r.model.setOptions(i),r.init(e,n),r}return oV(e,t),e.prototype.getGraphComponents=function(){var t=this,e=this.model.getOptions().comboChartTypes,n=0,r=e.map((function(e){var r,i,o=e.type;return"string"===typeof e.type?Object.keys(sV).includes(e.type)?(r=_d.merge({},uv[_d.camelCase(e.type)+"Chart"],t.model.getOptions(),e.options),e.type===it.STACKED_AREA&&(i=!0),sV[e.type].map((function(o,a){return new o(t.model,t.services,{groups:e.correspondingDatasets,id:n++,options:r,stacked:i})}))):(console.error('Invalid chart type "'+e.type+'" specified for combo chart. Please refer to the ComboChart tutorial for more guidance.'),null):(r=_d.merge({},t.model.getOptions(),e.options),new o(t.model,t.services,{groups:e.correspondingDatasets,id:n++,options:r}))})).filter((function(t){return null!==t}));return _d.flatten(r)},e.prototype.getComponents=function(){var t=this.model.getOptions().comboChartTypes,e=t.some((function(t){return t.type===it.STACKED_BAR||t.type===it.STACKED_AREA})),n=aV([new NI(this.model,this.services),new TB(this.model,this.services),new dP(this.model,this.services,{skeleton:$.GRID})],e?[]:[new PB(this.model,this.services)],this.getGraphComponents()),r=this.getAxisChartComponents(n);return r},e}(XB),cV=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)}}(),lV=function(t){function e(e){return t.call(this,e)||this}return cV(e,t),e.prototype.getTabularDataArray=function(){var t=this,e=this.getDisplayData(),n=[["Child","Parent"]];return e.forEach((function(e){t.getChildrenDatums(e,n),n.push([e.name,"&ndash;"])})),n},e.prototype.getChildrenDatums=function(t,e){var n=this;void 0===e&&(e=[]),t.children&&t.children.length>0&&t.children.forEach((function(r){n.getChildrenDatums(r,e),e.push([r.name,t.name])}))},e}(Um),hV=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)}}(),fV=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model=new lV(r.services),r.model.setOptions(_d.mergeDefaultChartOptions(uv.treeChart,n.options)),r.init(e,n),r}return hV(e,t),e.prototype.getComponents=function(){var t=[new cL(this.model,this.services)],e=this.getChartComponents(t,{excludeLegend:!0});return e},e}(zB),pV=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)}}(),dV=function(t){function e(e){return t.call(this,e)||this}return pV(e,t),e.prototype.getTabularDataArray=function(){var t=this.getDisplayData(),e=[["Child","Group","Value"]];return t.forEach((function(t){Array.isArray(t.children)?t.children.forEach((function(n){e.push([n.name,t.name,n.value])})):null!==_d.getProperty(t.name)&&_d.getProperty(t.value)&&e.push(["–",t.name,t.value])})),e},e}(Um),vV=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)}}(),gV=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model=new dV(r.services),r.model.setOptions(_d.mergeDefaultChartOptions(uv.treemapChart,n.options)),r.init(e,n),r}return vV(e,t),e.prototype.getComponents=function(){var t=[new Qk(this.model,this.services)],e=this.getChartComponents(t);return e},e}(zB),mV=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)}}(),yV=function(){return yV=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},yV.apply(this,arguments)},_V=function(t){function e(e){var n=t.call(this,e)||this;return n.parentNode=!1,n.set({depth:2},{skipUpdate:!0}),n}return mV(e,t),e.prototype.setData=function(e){t.prototype.setData.call(this,e),this.setDataGroups(),1===e.length&&(this.parentNode=!0),this.setZoom()},e.prototype.setOptions=function(t){var e=this.getOptions(),n=_d.merge({},t,this.getZoomOptions(t));_d.updateLegendAdditionalItems(e,n);var r=this.getHierarchyLevel(),i=_d.getProperty(e,"circlePack","hierarchyLevel");this.set({options:_d.merge(e,n),depth:i&&i<4?i:r})},e.prototype.getZoomOptions=function(t){if(!this.getDisplayData())return{};var e=this.getDisplayData(),n=t||this.getOptions(),r=1===e.length&&_d.getProperty(e,0,"children")?_d.getProperty(e,0,"children"):e,i=this.getHierarchyLevel();return r.some((function(t){if(t.children&&t.children.some((function(t){return t.children})))return i=3,!1})),!0===_d.getProperty(n,"canvasZoom","enabled")&&i>2?{legend:{additionalItems:[{type:st.ZOOM,name:"Click to zoom"}]}}:null},e.prototype.setZoom=function(t){this.setOptions(this.getZoomOptions(t))},e.prototype.updateHierarchyLevel=function(t){this.set({depth:t})},e.prototype.getHierarchyLevel=function(){return this.get("depth")},e.prototype.hasParentNode=function(){return this.parentNode},e.prototype.setDataGroups=function(){var t=this,e=this.getData(),n=this.getOptions(),r=n.data.groupMapsTo,i=e.map((function(e){var n=e[r];return t.setChildrenDataGroup(e,n)}));this.set({data:i},{skipUpdate:!0})},e.prototype.setChildrenDataGroup=function(t,e){var n=this;return t.children?yV(yV({},t),{dataGroupName:e,children:t.children.map((function(t,r){return n.setChildrenDataGroup(t,e)}))}):yV(yV({},t),{dataGroupName:e})},e.prototype.getTabularDataArray=function(){var t=this,e=this.getDisplayData(),n=[["Child","Parent","Value"]];return e.forEach((function(e){var r=e.value?e.value:0;e.children&&(r+=t.getChildrenDatums(e.children,e.name,n,0)),n.push(["&ndash;",e.name,r])})),n},e.prototype.getChildrenDatums=function(t,e,n,r){var i=this;void 0===n&&(n=[]),void 0===r&&(r=0);var o=e;return t.forEach((function(t){var e=t.name,a=0;if(t.children)t.children.length>0&&("number"===typeof t.value&&(r+=t.value),a+=i.getChildrenDatums(t.children,e,n,a),n.push([e,o,a]),r+=a);else{var s=0;"number"===typeof t.value&&(s=t.value,r+=t.value),n.push([t.name,o,s])}})),r},e}(Um),bV=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)}}(),OV=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model=new _V(r.services),r.model.setOptions(_d.mergeDefaultChartOptions(uv.circlePackChart,n.options)),r.init(e,n),r}return bV(e,t),e.prototype.getComponents=function(){var t=[new IR(this.model,this.services)],e=this.getChartComponents(t);return e},e}(zB),wV=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)}}(),xV=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},EV=function(t){function e(e){return t.call(this,e)||this}return wV(e,t),e.prototype.getTabularDataArray=function(){var t=this.getDisplayData(),e=this.getOptions(),n=e.wordCloud,r=n.fontSizeMapsTo,i=n.wordMapsTo,o=e.data.groupMapsTo,a=xV([[e.tooltip.wordLabel,"Group",e.tooltip.valueLabel]],t.map((function(t){return[t[i],t[o],t[r]]})));return a},e}(Um),SV=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)}}(),TV=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model=new EV(r.services),r.model.setOptions(_d.mergeDefaultChartOptions(uv.wordCloudChart,n.options)),r.init(e,n),r}return SV(e,t),e.prototype.getComponents=function(){var t=[new UR(this.model,this.services),new dP(this.model,this.services,{skeleton:$.PIE})],e=this.getChartComponents(t);return e},e}(zB),MV=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)}}(),CV=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},AV=function(t){function e(e){return t.call(this,e)||this}return MV(e,t),e.prototype.getTabularDataArray=function(){var t=this.getDisplayData();t.sort((function(t,e){return t["source"].localeCompare(e["source"])}));var e=CV([["Source","Target","Value"]],t.map((function(t){return[t["source"],t["target"],t["value"]]})));return e},e}(qB),PV=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)}}(),LV=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model=new AV(r.services),r.model.setOptions(_d.mergeDefaultChartOptions(uv.alluvialChart,n.options)),r.init(e,n),r}return PV(e,t),e.prototype.getComponents=function(){var t=[new xI(this.model,this.services)],e=this.getChartComponents(t,{excludeLegend:!0});return e},e}(zB);function DV(){var t,e=0,n=1,r=1,i=[.5],o=[0,1];function a(e){return null!=e&&e<=e?o[Iv(i,e,0,r)]:t}function s(){var t=-1;i=new Array(r);while(++t<r)i[t]=((t+1)*n-(t-r)*e)/(r+1);return a}return a.domain=function(t){return arguments.length?([e,n]=t,e=+e,n=+n,s()):[e,n]},a.range=function(t){return arguments.length?(r=(o=Array.from(t)).length-1,s()):o.slice()},a.invertExtent=function(t){var a=o.indexOf(t);return a<0?[NaN,NaN]:a<1?[e,i[0]]:a>=r?[i[r-1],n]:[i[a-1],i[a]]},a.unknown=function(e){return arguments.length?(t=e,a):a},a.thresholds=function(){return i.slice()},a.copy=function(){return DV().domain([e,n]).range(o).unknown(t)},dv.apply(CE(a),arguments)}var kV,RV,IV=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)}}(),NV=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},jV=function(t){function e(e){var n=t.call(this,e)||this;n.axisFlavor=lt.HOVERABLE,n._colorScale=void 0,n._domains=[],n._ranges=[],n._matrix={};var r=_d.getProperty(n.getOptions(),"axes");if(_d.getProperty(r,"left","scaleType")&&_d.getProperty(r,"left","scaleType")!==H.LABELS||_d.getProperty(r,"right","scaleType")&&_d.getProperty(r,"right","scaleType")!==H.LABELS||_d.getProperty(r,"top","scaleType")&&_d.getProperty(r,"top","scaleType")!==H.LABELS||_d.getProperty(r,"bottom","scaleType")&&_d.getProperty(r,"bottom","scaleType")!==H.LABELS)throw Error("Heatmap only supports label scaletypes.");return n}return IV(e,t),e.prototype.getValueDomain=function(){var t=jv(this.getDisplayData(),(function(t){return t.value})),e=AE().domain(t).nice().domain();if(e[0]>0)e[0]=0;else if(0===e[0]&&0===e[1])return[0,1];return e[0]<0&&e[1]>0&&(Math.abs(e[0])>e[1]?e[1]=Math.abs(e[0]):e[0]=-e[1]),e},e.prototype.getFillColor=function(t){return this._colorScale(t)},e.prototype.getUniqueDomain=function(){if(_d.isEmpty(this._domains)){var t=this.getDisplayData(),e=this.services.cartesianScales,n=e.getDomainIdentifier(),r=e.getMainXAxisPosition(),i=e.getCustomDomainValuesByposition(r);if(i)return i;this._domains=Array.from(new Set(t.map((function(t){return t[n]}))))}return this._domains},e.prototype.getUniqueRanges=function(){if(_d.isEmpty(this._ranges)){var t=this.getDisplayData(),e=this.services.cartesianScales,n=e.getRangeIdentifier(),r=e.getMainYAxisPosition(),i=e.getCustomDomainValuesByposition(r);if(i)return i;this._ranges=Array.from(new Set(t.map((function(t){return t[n]}))))}return this._ranges},e.prototype.getMatrix=function(){var t=this;if(_d.isEmpty(this._matrix)){var e=this.getUniqueDomain(),n=this.getUniqueRanges(),r=this.services.cartesianScales.getDomainIdentifier(),i=this.services.cartesianScales.getRangeIdentifier(),o={};n.forEach((function(t){o[t]={value:null,index:-1}})),e.forEach((function(e){t._matrix[e]=_d.clone(o)})),this.getDisplayData().forEach((function(e,n){t._matrix[e[r]][e[i]]={value:e["value"],index:n}}))}return this._matrix},e.prototype.setData=function(t){var e=this.sanitize(_d.clone(t)),n=this.generateDataGroups(e);return this.set({data:e,dataGroups:n}),this._domains=[],this._ranges=[],this._matrix={},e},e.prototype.getMatrixAsArray=function(){var t=this;_d.isEmpty(this._matrix)&&this.getMatrix();var e=this.getUniqueDomain(),n=this.getUniqueRanges(),r=this.services.cartesianScales.getDomainIdentifier(),i=this.services.cartesianScales.getRangeIdentifier(),o=[];return e.forEach((function(e){n.forEach((function(n){var a={value:t._matrix[e][n].value,index:t._matrix[e][n].index};a[r]=e,a[i]=n,o.push(a)}))})),o},e.prototype.getTabularDataArray=function(){var t,e=this.getDisplayData(),n=this.assignRangeAndDomains(),r=n.primaryDomain,i=n.primaryRange,o=NV([[r.label,i.label,"Value"]],e.map((function(e){return[null===e[r.identifier]?"&ndash;":t?t(e[r.identifier]):e[r.identifier],null===e[i.identifier]?"&ndash;":e[i.identifier].toLocaleString(),e["value"]]})));return o},e.prototype.getColorClassName=function(t){return t.originalClassName+" "+this._colorScale(t.value)},e.prototype.setColorClassNames=function(){var t=this.getOptions(),e=_d.getProperty(t,"color","gradient","colors"),n=!_d.isEmpty(e),r=_d.getProperty(t,"color","pairing","option"),i=this.getValueDomain(),o=i[0]<0&&i[1]>0?"diverge":"mono";r<1&&r>4&&"mono"===o?r=1:r<1&&r>2&&"diverge"===o&&(r=1);var a=n?e:[];if(!n)for(var s="diverge"===o?17:11,u=1;u<s+1;u++)a.push("fill-"+o+"-"+r+"-"+u);this._colorScale=DV().domain(i).range(a)},e}(qB),BV=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)}}(),UV=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},VV=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model=new jV(r.services),r.model.setOptions(_d.mergeDefaultChartOptions(uv.heatmapChart,n.options)),r.init(e,n),r}return BV(e,t),e.prototype.getAxisChartComponents=function(t,e){var n=this.model.getOptions(),r=_d.getProperty(n,"toolbar","enabled");this.services.cartesianScales.determineAxisDuality(),this.services.cartesianScales.findDomainAndRangeAxes(),this.services.cartesianScales.determineOrientation();var i=!!this.model.getOptions().title,o={id:"title",components:[new qC(this.model,this.services)],growth:Z.STRETCH},a={id:"toolbar",components:[new jB(this.model,this.services)],growth:Z.PREFERRED},s={id:"header",components:[new AI(this.model,this.services,UV([o],r?[a]:[]),{direction:Y.ROW,alignItems:X.CENTER})],growth:Z.PREFERRED},u={id:"legend",components:[new zT(this.model,this.services)],growth:Z.PREFERRED,renderType:I.SVG},c={id:"graph-frame",components:t,growth:Z.STRETCH,renderType:I.SVG},l=!1!==_d.getProperty(e,"legend","enabled")&&!1!==this.model.getOptions().legend.enabled,h=Y.COLUMN_REVERSE,f={id:"spacer",components:[new MI(this.model,this.services,{size:15})],growth:Z.PREFERRED},p={id:"full-frame",components:[new AI(this.model,this.services,UV(l?[u]:[],l?[f]:[],[c]),{direction:h})],growth:Z.STRETCH},d=[];if(i||r){d.push(s);var v={id:"spacer",components:[new MI(this.model,this.services,r?{size:15}:void 0)],growth:Z.PREFERRED};d.push(v)}return d.push(p),[new JC(this.model,this.services),new BC(this.model,this.services),new AI(this.model,this.services,d,{direction:Y.COLUMN})]},e.prototype.getComponents=function(){var t=[new NI(this.model,this.services),new SI(this.model,this.services)],e=this.getAxisChartComponents(t);return e},e}(XB),GV={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}}},HV=GV;function zV(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 FV=zV(HV,kV,RV,!1,null,null,null),WV=FV.exports,qV={name:"CcvAreaChart",extends:WV,mounted:function(){this.coreChart=new $B(this.$el,{data:this.data,options:this.options})}},YV=qV,ZV=zV(YV,k,R,!1,null,null,null),XV=ZV.exports,KV=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-stacked-area-chart"})},$V=[],QV={name:"CcvStackedAreaChart",extends:WV,mounted:function(){this.coreChart=new JB(this.$el,{data:this.data,options:this.options})}},JV=QV,tG=zV(JV,KV,$V,!1,null,null,null),eG=tG.exports,nG=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-simple-bar-chart"})},rG=[],iG={name:"CcvSimpleBarChart",extends:WV,mounted:function(){this.coreChart=new eU(this.$el,{data:this.data,options:this.options})}},oG=iG,aG=zV(oG,nG,rG,!1,null,null,null),sG=aG.exports,uG=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-grouped-bar-chart"})},cG=[],lG={name:"CcvGroupedBarChart",extends:WV,mounted:function(){this.coreChart=new rU(this.$el,{data:this.data,options:this.options})}},hG=lG,fG=zV(hG,uG,cG,!1,null,null,null),pG=fG.exports,dG=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-stacked-bar-chart"})},vG=[],gG={name:"CcvStackedBarChart",extends:WV,mounted:function(){this.coreChart=new oU(this.$el,{data:this.data,options:this.options})}},mG=gG,yG=zV(mG,dG,vG,!1,null,null,null),_G=yG.exports,bG=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-boxplot-chart"})},OG=[],wG={name:"CcvBoxplotChart",extends:WV,mounted:function(){this.coreChart=new dU(this.$el,{data:this.data,options:this.options})}},xG=wG,EG=zV(xG,bG,OG,!1,null,null,null),SG=EG.exports,TG=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-bubble-chart"})},MG=[],CG={name:"CcvBubbleChart",extends:WV,mounted:function(){this.coreChart=new gU(this.$el,{data:this.data,options:this.options})}},AG=CG,PG=zV(AG,TG,MG,!1,null,null,null),LG=PG.exports,DG=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-bullet-chart"})},kG=[],RG={name:"CcvBulletChart",extends:WV,mounted:function(){this.coreChart=new OU(this.$el,{data:this.data,options:this.options})}},IG=RG,NG=zV(IG,DG,kG,!1,null,null,null),jG=NG.exports,BG=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-donut-chart"})},UG=[],VG={name:"CcvDonutChart",extends:WV,mounted:function(){this.coreChart=new UU(this.$el,{data:this.data,options:this.options})}},GG=VG,HG=zV(GG,BG,UG,!1,null,null,null),zG=HG.exports,FG=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-gauge-chart"})},WG=[],qG={name:"CcvGaugeChart",extends:WV,mounted:function(){this.coreChart=new iV(this.$el,{data:this.data,options:this.options})}},YG=qG,ZG=zV(YG,FG,WG,!1,null,null,null),XG=ZG.exports,KG=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-histogram-chart"})},$G=[],QG={name:"CcvHistogramChart",extends:WV,mounted:function(){this.coreChart=new TU(this.$el,{data:this.data,options:this.options})}},JG=QG,tH=zV(JG,KG,$G,!1,null,null,null),eH=tH.exports,nH=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-line-chart"})},rH=[],iH={name:"CcvLineChart",extends:WV,mounted:function(){this.coreChart=new CU(this.$el,{data:this.data,options:this.options})}},oH=iH,aH=zV(oH,nH,rH,!1,null,null,null),sH=aH.exports,uH=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-lollipop-chart"})},cH=[],lH={name:"CcvLollipopChart",extends:WV,mounted:function(){this.coreChart=new PU(this.$el,{data:this.data,options:this.options})}},hH=lH,fH=zV(hH,uH,cH,!1,null,null,null),pH=fH.exports,dH=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-pie-chart"})},vH=[],gH={name:"CcvPieChart",extends:WV,mounted:function(){this.coreChart=new jU(this.$el,{data:this.data,options:this.options})}},mH=gH,yH=zV(mH,dH,vH,!1,null,null,null),_H=yH.exports,bH=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-scatter-chart"})},OH=[],wH={name:"CcvScatterChart",extends:WV,mounted:function(){this.coreChart=new DU(this.$el,{data:this.data,options:this.options})}},xH=wH,EH=zV(xH,bH,OH,!1,null,null,null),SH=EH.exports,TH=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-meter-chart"})},MH=[],CH={name:"CcvMeterChart",extends:WV,mounted:function(){this.coreChart=new ZU(this.$el,{data:this.data,options:this.options})}},AH=CH,PH=zV(AH,TH,MH,!1,null,null,null),LH=PH.exports,DH=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-radar-chart"})},kH=[],RH={name:"CcvRadarChart",extends:WV,mounted:function(){this.coreChart=new JU(this.$el,{data:this.data,options:this.options})}},IH=RH,NH=zV(IH,DH,kH,!1,null,null,null),jH=NH.exports,BH=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-combo-chart"})},UH=[],VH={name:"CcvComboChart",extends:WV,mounted:function(){this.coreChart=new uV(this.$el,{data:this.data,options:this.options})}},GH=VH,HH=zV(GH,BH,UH,!1,null,null,null),zH=HH.exports,FH=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-tree-chart"})},WH=[],qH={name:"CcvTreeChart",extends:WV,mounted:function(){this.coreChart=new fV(this.$el,{data:this.data,options:this.options})}},YH=qH,ZH=zV(YH,FH,WH,!1,null,null,null),XH=ZH.exports,KH=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-treemap-chart"})},$H=[],QH={name:"CcvTreemapChart",extends:WV,mounted:function(){this.coreChart=new gV(this.$el,{data:this.data,options:this.options})}},JH=QH,tz=zV(JH,KH,$H,!1,null,null,null),ez=tz.exports,nz=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-circle-pack-chart"})},rz=[],iz={name:"CcvCirclePackChart",extends:WV,mounted:function(){this.coreChart=new OV(this.$el,{data:this.data,options:this.options})}},oz=iz,az=zV(oz,nz,rz,!1,null,null,null),sz=az.exports,uz=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-wordcloud-chart"})},cz=[],lz={name:"CcvWordCloudChart",extends:WV,mounted:function(){this.coreChart=new TV(this.$el,{data:this.data,options:this.options})}},hz=lz,fz=zV(hz,uz,cz,!1,null,null,null),pz=fz.exports,dz=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-alluvial-chart"})},vz=[],gz={name:"CcvAlluvialChart",extends:WV,mounted:function(){this.coreChart=new LV(this.$el,{data:this.data,options:this.options})}},mz=gz,yz=zV(mz,dz,vz,!1,null,null,null),_z=yz.exports,bz=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-heatmap-chart"})},Oz=[],wz={name:"CcvHeatmapChart",extends:WV,mounted:function(){this.coreChart=new VV(this.$el,{data:this.data,options:this.options})}},xz=wz,Ez=zV(xz,bz,Oz,!1,null,null,null),Sz=Ez.exports,Tz=[XV,eG,sG,pG,_G,SG,LG,jG,zG,XG,eH,sH,pH,_H,SH,LH,jH,zH,XH,ez,sz,pz,_z,Sz],Mz={install:function(t,e){if("undefined"===typeof e){var n=!0,r=!1,i=void 0;try{for(var o,a=Tz[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=Tz[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 XV})),n.d(e,"CcvStackedAreaChart",(function(){return eG})),n.d(e,"CcvSimpleBarChart",(function(){return sG})),n.d(e,"CcvGroupedBarChart",(function(){return pG})),n.d(e,"CcvStackedBarChart",(function(){return _G})),n.d(e,"CcvBoxplotChart",(function(){return SG})),n.d(e,"CcvBubbleChart",(function(){return LG})),n.d(e,"CcvBulletChart",(function(){return jG})),n.d(e,"CcvDonutChart",(function(){return zG})),n.d(e,"CcvGaugeChart",(function(){return XG})),n.d(e,"CcvHistogramChart",(function(){return eH})),n.d(e,"CcvLineChart",(function(){return sH})),n.d(e,"CcvLollipopChart",(function(){return pH})),n.d(e,"CcvPieChart",(function(){return _H})),n.d(e,"CcvScatterChart",(function(){return SH})),n.d(e,"CcvMeterChart",(function(){return LH})),n.d(e,"CcvRadarChart",(function(){return jH})),n.d(e,"CcvComboChart",(function(){return zH})),n.d(e,"CcvTreeChart",(function(){return XH})),n.d(e,"CcvTreemapChart",(function(){return ez})),n.d(e,"CcvCirclePackChart",(function(){return sz})),n.d(e,"CcvWordCloudChart",(function(){return pz})),n.d(e,"CcvAlluvialChart",(function(){return _z})),n.d(e,"CcvHeatmapChart",(function(){return Sz}));e["default"]=Mz},"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},"2a60":function(t,e,n){var r=n("8320").dispatch,i=Math.PI/180,o=64,a=2048;function s(t){return t.text}function u(){return"serif"}function c(){return"normal"}function l(t){return Math.sqrt(t.value)}function h(){return 30*(~~(6*Math.random())-3)}function f(){return 1}function p(t,e,n,r){if(!e.sprite){var s=t.context,u=t.ratio;s.clearRect(0,0,(o<<5)/u,a/u);var c=0,l=0,h=0,f=n.length;--r;while(++r<f){e=n[r],s.save(),s.font=e.style+" "+e.weight+" "+~~((e.size+1)/u)+"px "+e.font;var p=s.measureText(e.text+"m").width*u,d=e.size<<1;if(e.rotate){var v=Math.sin(e.rotate*i),g=Math.cos(e.rotate*i),m=p*g,y=p*v,_=d*g,b=d*v;p=Math.max(Math.abs(m+b),Math.abs(m-b))+31>>5<<5,d=~~Math.max(Math.abs(y+_),Math.abs(y-_))}else p=p+31>>5<<5;if(d>h&&(h=d),c+p>=o<<5&&(c=0,l+=h,h=0),l+d>=a)break;s.translate((c+(p>>1))/u,(l+(d>>1))/u),e.rotate&&s.rotate(e.rotate*i),s.fillText(e.text,0,0),e.padding&&(s.lineWidth=2*e.padding,s.strokeText(e.text,0,0)),s.restore(),e.width=p,e.height=d,e.xoff=c,e.yoff=l,e.x1=p>>1,e.y1=d>>1,e.x0=-e.x1,e.y0=-e.y1,e.hasText=!0,c+=p}var O=s.getImageData(0,0,(o<<5)/u,a/u).data,w=[];while(--r>=0)if(e=n[r],e.hasText){p=e.width;for(var x=p>>5,E=(d=e.y1-e.y0,0);E<d*x;E++)w[E]=0;if(c=e.xoff,null==c)return;l=e.yoff;for(var S=0,T=-1,M=0;M<d;M++){for(E=0;E<p;E++){var C=x*M+(E>>5),A=O[(l+M)*(o<<5)+(c+E)<<2]?1<<31-E%32:0;w[C]|=A,S|=A}S?T=M:(e.y0++,d--,M--,l++)}e.y1=e.y0+T,e.sprite=w.slice(0,(e.y1-e.y0)*x)}}}function d(t,e,n){n>>=5;for(var r,i=t.sprite,o=t.width>>5,a=t.x-(o<<4),s=127&a,u=32-s,c=t.y1-t.y0,l=(t.y+t.y0)*n+(a>>5),h=0;h<c;h++){r=0;for(var f=0;f<=o;f++)if((r<<u|(f<o?(r=i[h*o+f])>>>s:0))&e[l+f])return!0;l+=n}return!1}function v(t,e){var n=t[0],r=t[1];e.x+e.x0<n.x&&(n.x=e.x+e.x0),e.y+e.y0<n.y&&(n.y=e.y+e.y0),e.x+e.x1>r.x&&(r.x=e.x+e.x1),e.y+e.y1>r.y&&(r.y=e.y+e.y1)}function g(t,e){return t.x+t.x1>e[0].x&&t.x+t.x0<e[1].x&&t.y+t.y1>e[0].y&&t.y+t.y0<e[1].y}function m(t){var e=t[0]/t[1];return function(t){return[e*(t*=.1)*Math.cos(t),t*Math.sin(t)]}}function y(t){var e=4,n=e*t[0]/t[1],r=0,i=0;return function(t){var o=t<0?-1:1;switch(Math.sqrt(1+4*o*t)-o&3){case 0:r+=n;break;case 1:i+=e;break;case 2:r-=n;break;default:i-=e;break}return[r,i]}}function _(t){var e=[],n=-1;while(++n<t)e[n]=0;return e}function b(){return document.createElement("canvas")}function O(t){return"function"===typeof t?t:function(){return t}}t.exports=function(){var t=[256,256],e=s,n=u,i=l,y=c,x=c,E=h,S=f,T=m,M=[],C=1/0,A=r("word","end"),P=null,L=Math.random,D={},k=b;function R(t){t.width=t.height=1;var e=Math.sqrt(t.getContext("2d").getImageData(0,0,1,1).data.length>>2);t.width=(o<<5)/e,t.height=a/e;var n=t.getContext("2d");return n.fillStyle=n.strokeStyle="red",n.textAlign="center",{context:n,ratio:e}}function I(e,n,r){t[0],t[1];var i,o,a,s=n.x,u=n.y,c=Math.sqrt(t[0]*t[0]+t[1]*t[1]),l=T(t),h=L()<.5?1:-1,f=-h;while(i=l(f+=h)){if(o=~~i[0],a=~~i[1],Math.min(Math.abs(o),Math.abs(a))>=c)break;if(n.x=s+o,n.y=u+a,!(n.x+n.x0<0||n.y+n.y0<0||n.x+n.x1>t[0]||n.y+n.y1>t[1])&&(!r||!d(n,e,t[0]))&&(!r||g(n,r))){for(var p,v=n.sprite,m=n.width>>5,y=t[0]>>5,_=n.x-(m<<4),b=127&_,O=32-b,w=n.y1-n.y0,x=(n.y+n.y0)*y+(_>>5),E=0;E<w;E++){p=0;for(var S=0;S<=m;S++)e[x+S]|=p<<O|(S<m?(p=v[E*m+S])>>>b:0);x+=y}return delete n.sprite,!0}}return!1}return D.canvas=function(t){return arguments.length?(k=O(t),D):k},D.start=function(){var r=R(k()),o=_((t[0]>>5)*t[1]),a=null,s=M.length,u=-1,c=[],l=M.map((function(t,r){return t.text=e.call(this,t,r),t.font=n.call(this,t,r),t.style=y.call(this,t,r),t.weight=x.call(this,t,r),t.rotate=E.call(this,t,r),t.size=~~i.call(this,t,r),t.padding=S.call(this,t,r),t})).sort((function(t,e){return e.size-t.size}));return P&&clearInterval(P),P=setInterval(h,0),h(),D;function h(){var e=Date.now();while(Date.now()-e<C&&++u<s&&P){var n=l[u];n.x=t[0]*(L()+.5)>>1,n.y=t[1]*(L()+.5)>>1,p(r,n,l,u),n.hasText&&I(o,n,a)&&(c.push(n),A.call("word",D,n),a?v(a,n):a=[{x:n.x+n.x0,y:n.y+n.y0},{x:n.x+n.x1,y:n.y+n.y1}],n.x-=t[0]>>1,n.y-=t[1]>>1)}u>=s&&(D.stop(),A.call("end",D,c,a))}},D.stop=function(){return P&&(clearInterval(P),P=null),D},D.timeInterval=function(t){return arguments.length?(C=null==t?1/0:t,D):C},D.words=function(t){return arguments.length?(M=t,D):M},D.size=function(e){return arguments.length?(t=[+e[0],+e[1]],D):t},D.font=function(t){return arguments.length?(n=O(t),D):n},D.fontStyle=function(t){return arguments.length?(y=O(t),D):y},D.fontWeight=function(t){return arguments.length?(x=O(t),D):x},D.rotate=function(t){return arguments.length?(E=O(t),D):E},D.text=function(t){return arguments.length?(e=O(t),D):e},D.spiral=function(t){return arguments.length?(T=w[t]||t,D):T},D.fontSize=function(t){return arguments.length?(i=O(t),D):i},D.padding=function(t){return arguments.length?(S=O(t),D):S},D.random=function(t){return arguments.length?(L=t,D):L},D.on=function(){var t=A.on.apply(A,arguments);return t===A?D:t},D};var w={archimedean:m,rectangular:y}},"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=E(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 E(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)),!O(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 E(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 O(t){return t===p(t).document.documentElement}function w(t){return r?b(t)?y(t):_(t):d}function x(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 E(t,e,n,r){return{x:t,y:e,width:n,height:r}}var S=function(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=E(0,0,0,0),this.target=t};S.prototype.isActive=function(){var t=w(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},S.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t};var T=function(t,e){var n=x(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 S(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 C="undefined"!==typeof WeakMap?new WeakMap:new n,A=function(t){if(!(this instanceof A))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);C.set(this,n)};["observe","unobserve","disconnect"].forEach((function(t){A.prototype[t]=function(){return(e=C.get(this))[t].apply(e,arguments);var e}}));var P=function(){return"undefined"!==typeof i.ResizeObserver?i.ResizeObserver:A}();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,O,w){i(n,e,l);var x,E,S,T=function(t){if(t===p&&L)return L;if(!v&&t in A)return A[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",C=!1,A=t.prototype,P=A[g]||A["@@iterator"]||p&&A[p],L=!v&&P||T(p),D="Array"==e&&A.entries||P;if(D&&(x=o(D.call(new t)),d!==Object.prototype&&x.next&&(h||o(x)===d||(a?a(x,d):"function"!=typeof x[g]&&u(x,g,b)),s(x,M,!0,!0),h&&(f[M]=b))),p==y&&P&&P.name!==y&&(C=!0,L=function(){return P.call(this)}),h&&!w||A[g]===L||u(A,g,L),f[e]=L,p)if(E={values:T(y),keys:O?L:T(m),entries:T(_)},w)for(S in E)!v&&!C&&S in A||c(A,S,E[S]);else r({target:e,proto:!0,forced:v||C},E);return E}},"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)}},8320:function(t,e,n){"use strict";n.r(e);var r={value:function(){}};function i(){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 o(r)}function o(t){this._=t}function a(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 s(t,e){for(var n,r=0,i=t.length;r<i;++r)if((n=t[r]).name===e)return n.value}function u(t,e,n){for(var i=0,o=t.length;i<o;++i)if(t[i].name===e){t[i]=r,t=t.slice(0,i).concat(t.slice(i+1));break}return null!=n&&t.push({name:e,value:n}),t}o.prototype=i.prototype={constructor:o,on:function(t,e){var n,r=this._,i=a(t+"",r),o=-1,c=i.length;if(!(arguments.length<2)){if(null!=e&&"function"!==typeof e)throw new Error("invalid callback: "+e);while(++o<c)if(n=(t=i[o]).type)r[n]=u(r[n],t.name,e);else if(null==e)for(n in r)r[n]=u(r[n],t.name,null);return this}while(++o<c)if((n=(t=i[o]).type)&&(n=s(r[n],t.name)))return n},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new o(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 c=i;n.d(e,"dispatch",(function(){return c}))},"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)}},"9b04":function(t,e,n){"use strict";var r=function(){};t.exports=r},"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"]},b1b0:function(t,e,n){(function(e){"use strict";var n=_(),r=b(),i=O(),o=w(),a={imagePlaceholder:void 0,cacheBust:!1},s={toSvg:u,toPng:l,toJpeg:h,toBlob:f,toPixelData:c,impl:{fontFaces:i,images:o,util:n,inliner:r,options:{}}};function u(t,e){return e=e||{},p(e),Promise.resolve(t).then((function(t){return v(t,e.filter,!0)})).then(g).then(m).then(r).then((function(r){return y(r,e.width||n.width(t),e.height||n.height(t))}));function r(t){return e.bgcolor&&(t.style.backgroundColor=e.bgcolor),e.width&&(t.style.width=e.width+"px"),e.height&&(t.style.height=e.height+"px"),e.style&&Object.keys(e.style).forEach((function(n){t.style[n]=e.style[n]})),t}}function c(t,e){return d(t,e||{}).then((function(e){return e.getContext("2d").getImageData(0,0,n.width(t),n.height(t)).data}))}function l(t,e){return d(t,e||{}).then((function(t){return t.toDataURL()}))}function h(t,e){return e=e||{},d(t,e).then((function(t){return t.toDataURL("image/jpeg",e.quality||1)}))}function f(t,e){return d(t,e||{}).then(n.canvasToBlob)}function p(t){"undefined"===typeof t.imagePlaceholder?s.impl.options.imagePlaceholder=a.imagePlaceholder:s.impl.options.imagePlaceholder=t.imagePlaceholder,"undefined"===typeof t.cacheBust?s.impl.options.cacheBust=a.cacheBust:s.impl.options.cacheBust=t.cacheBust}function d(t,e){return u(t,e).then(n.makeImage).then(n.delay(100)).then((function(e){var n=r(t);return n.getContext("2d").drawImage(e,0,0),n}));function r(t){var r=document.createElement("canvas");if(r.width=e.width||n.width(t),r.height=e.height||n.height(t),e.bgcolor){var i=r.getContext("2d");i.fillStyle=e.bgcolor,i.fillRect(0,0,r.width,r.height)}return r}}function v(t,e,r){return r||!e||e(t)?Promise.resolve(t).then(i).then((function(n){return o(t,n,e)})).then((function(e){return a(t,e)})):Promise.resolve();function i(t){return t instanceof HTMLCanvasElement?n.makeImage(t.toDataURL()):t.cloneNode(!1)}function o(t,e,r){var i=t.childNodes;return 0===i.length?Promise.resolve(e):o(e,n.asArray(i),r).then((function(){return e}));function o(t,e,n){var r=Promise.resolve();return e.forEach((function(e){r=r.then((function(){return v(e,n)})).then((function(e){e&&t.appendChild(e)}))})),r}}function a(t,e){return e instanceof Element?Promise.resolve().then(r).then(i).then(o).then(a).then((function(){return e})):e;function r(){function r(t,e){function r(t,e){n.asArray(t).forEach((function(n){e.setProperty(n,t.getPropertyValue(n),t.getPropertyPriority(n))}))}t.cssText?e.cssText=t.cssText:r(t,e)}r(window.getComputedStyle(t),e.style)}function i(){function r(r){var i=window.getComputedStyle(t,r),o=i.getPropertyValue("content");if(""!==o&&"none"!==o){var a=n.uid();e.className=e.className+" "+a;var s=document.createElement("style");s.appendChild(u(a,r,i)),e.appendChild(s)}function u(t,e,r){var i="."+t+":"+e,o=r.cssText?a(r):s(r);return document.createTextNode(i+"{"+o+"}");function a(t){var e=t.getPropertyValue("content");return t.cssText+" content: "+e+";"}function s(t){return n.asArray(t).map(e).join("; ")+";";function e(e){return e+": "+t.getPropertyValue(e)+(t.getPropertyPriority(e)?" !important":"")}}}}[":before",":after"].forEach((function(t){r(t)}))}function o(){t instanceof HTMLTextAreaElement&&(e.innerHTML=t.value),t instanceof HTMLInputElement&&e.setAttribute("value",t.value)}function a(){e instanceof SVGElement&&(e.setAttribute("xmlns","http://www.w3.org/2000/svg"),e instanceof SVGRectElement&&["width","height"].forEach((function(t){var n=e.getAttribute(t);n&&e.style.setProperty(t,n)})))}}}function g(t){return i.resolveAll().then((function(e){var n=document.createElement("style");return t.appendChild(n),n.appendChild(document.createTextNode(e)),t}))}function m(t){return o.inlineAll(t).then((function(){return t}))}function y(t,e,r){return Promise.resolve(t).then((function(t){return t.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),(new XMLSerializer).serializeToString(t)})).then(n.escapeXhtml).then((function(t){return'<foreignObject x="0" y="0" width="100%" height="100%">'+t+"</foreignObject>"})).then((function(t){return'<svg xmlns="http://www.w3.org/2000/svg" width="'+e+'" height="'+r+'">'+t+"</svg>"})).then((function(t){return"data:image/svg+xml;charset=utf-8,"+t}))}function _(){return{escape:f,parseExtension:e,mimeType:n,dataAsUrl:h,isDataUrl:r,canvasToBlob:o,resolveUrl:a,getAndEncode:l,uid:u(),delay:p,asArray:d,escapeXhtml:v,makeImage:c,width:g,height:m};function t(){var t="application/font-woff",e="image/jpeg";return{woff:t,woff2:t,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:e,jpeg:e,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml"}}function e(t){var e=/\.([^\.\/]*?)$/g.exec(t);return e?e[1]:""}function n(n){var r=e(n).toLowerCase();return t()[r]||""}function r(t){return-1!==t.search(/^(data:)/)}function i(t){return new Promise((function(e){for(var n=window.atob(t.toDataURL().split(",")[1]),r=n.length,i=new Uint8Array(r),o=0;o<r;o++)i[o]=n.charCodeAt(o);e(new Blob([i],{type:"image/png"}))}))}function o(t){return t.toBlob?new Promise((function(e){t.toBlob(e)})):i(t)}function a(t,e){var n=document.implementation.createHTMLDocument(),r=n.createElement("base");n.head.appendChild(r);var i=n.createElement("a");return n.body.appendChild(i),r.href=e,i.href=t,i.href}function u(){var t=0;return function(){return"u"+e()+t++;function e(){return("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4)}}}function c(t){return new Promise((function(e,n){var r=new Image;r.onload=function(){e(r)},r.onerror=n,r.src=t}))}function l(t){var e=3e4;return s.impl.options.cacheBust&&(t+=(/\?/.test(t)?"&":"?")+(new Date).getTime()),new Promise((function(n){var r,i=new XMLHttpRequest;if(i.onreadystatechange=a,i.ontimeout=u,i.responseType="blob",i.timeout=e,i.open("GET",t,!0),i.send(),s.impl.options.imagePlaceholder){var o=s.impl.options.imagePlaceholder.split(/,/);o&&o[1]&&(r=o[1])}function a(){if(4===i.readyState)if(200===i.status){var e=new FileReader;e.onloadend=function(){var t=e.result.split(/,/)[1];n(t)},e.readAsDataURL(i.response)}else r?n(r):c("cannot fetch resource: "+t+", status: "+i.status)}function u(){r?n(r):c("timeout of "+e+"ms occured while fetching resource: "+t)}function c(t){console.error(t),n("")}}))}function h(t,e){return"data:"+e+";base64,"+t}function f(t){return t.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1")}function p(t){return function(e){return new Promise((function(n){setTimeout((function(){n(e)}),t)}))}}function d(t){for(var e=[],n=t.length,r=0;r<n;r++)e.push(t[r]);return e}function v(t){return t.replace(/#/g,"%23").replace(/\n/g,"%0A")}function g(t){var e=y(t,"border-left-width"),n=y(t,"border-right-width");return t.scrollWidth+e+n}function m(t){var e=y(t,"border-top-width"),n=y(t,"border-bottom-width");return t.scrollHeight+e+n}function y(t,e){var n=window.getComputedStyle(t).getPropertyValue(e);return parseFloat(n.replace("px",""))}}function b(){var t=/url\(['"]?([^'"]+?)['"]?\)/g;return{inlineAll:o,shouldProcess:e,impl:{readUrls:r,inline:i}};function e(e){return-1!==e.search(t)}function r(e){var r,i=[];while(null!==(r=t.exec(e)))i.push(r[1]);return i.filter((function(t){return!n.isDataUrl(t)}))}function i(t,e,r,i){return Promise.resolve(e).then((function(t){return r?n.resolveUrl(t,r):t})).then(i||n.getAndEncode).then((function(t){return n.dataAsUrl(t,n.mimeType(e))})).then((function(n){return t.replace(o(e),"$1"+n+"$3")}));function o(t){return new RegExp("(url\\(['\"]?)("+n.escape(t)+")(['\"]?\\))","g")}}function o(t,n,o){return a()?Promise.resolve(t):Promise.resolve(t).then(r).then((function(e){var r=Promise.resolve(t);return e.forEach((function(t){r=r.then((function(e){return i(e,t,n,o)}))})),r}));function a(){return!e(t)}}}function O(){return{resolveAll:t,impl:{readAll:e}};function t(){return e(document).then((function(t){return Promise.all(t.map((function(t){return t.resolve()})))})).then((function(t){return t.join("\n")}))}function e(){return Promise.resolve(n.asArray(document.styleSheets)).then(e).then(t).then((function(t){return t.map(i)}));function t(t){return t.filter((function(t){return t.type===CSSRule.FONT_FACE_RULE})).filter((function(t){return r.shouldProcess(t.style.getPropertyValue("src"))}))}function e(t){var e=[];return t.forEach((function(t){try{n.asArray(t.cssRules||[]).forEach(e.push.bind(e))}catch(r){console.log("Error while reading CSS rules from "+t.href,r.toString())}})),e}function i(t){return{resolve:function(){var e=(t.parentStyleSheet||{}).href;return r.inlineAll(t.cssText,e)},src:function(){return t.style.getPropertyValue("src")}}}}}function w(){return{inlineAll:e,impl:{newImage:t}};function t(t){return{inline:e};function e(e){return n.isDataUrl(t.src)?Promise.resolve():Promise.resolve(t.src).then(e||n.getAndEncode).then((function(e){return n.dataAsUrl(e,n.mimeType(t.src))})).then((function(e){return new Promise((function(n,r){t.onload=n,t.onerror=r,t.src=e}))}))}}function e(i){return i instanceof Element?o(i).then((function(){return i instanceof HTMLImageElement?t(i).inline():Promise.all(n.asArray(i.childNodes).map((function(t){return e(t)})))})):Promise.resolve(i);function o(t){var e=t.style.getPropertyValue("background");return e?r.inlineAll(e).then((function(e){t.style.setProperty("background",e,t.style.getPropertyPriority("background"))})).then((function(){return t})):Promise.resolve(t)}}}t.exports=s})()},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(_),O=r(d,v,3),w=a(b.length),x=0,E=g||s,S=e?E(p,w):n?E(p,0):void 0;w>x;x++)if((f||x in b)&&(m=b[x],y=O(m,x,_),t))if(e)S[x]=y;else if(y)switch(t){case 3:return!0;case 5:return m;case 6:return x;case 2:u.call(S,m)}else if(l)return!1;return h?-1:c||l?l:S}};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"),O=n("65d0"),w=n("ee58"),x=n("2402"),E=n("185a"),S=n("abdf"),T=n("e129"),M=n("5b12"),C=n("b8ba"),A=n("4cdd"),P=n("332c"),L=n("d687"),D=n("1d8a"),k=n("7d53"),R=n("4e41"),I=n("6a89"),N=n("fa46"),j=n("cdcd"),B=n("d054").forEach,U=P("hidden"),V="Symbol",G="prototype",H=k("toPrimitive"),z=j.set,F=j.getterFor(V),W=Object[G],q=i.Symbol,Y=o("JSON","stringify"),Z=E.f,X=S.f,K=w.f,$=T.f,Q=A("symbols"),J=A("op-symbols"),tt=A("string-to-symbol-registry"),et=A("symbol-to-string-registry"),nt=A("wks"),rt=i.QObject,it=!rt||!rt[G]||!rt[G].findChild,ot=s&&l((function(){return 7!=_(X({},"a",{get:function(){return X(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=Z(W,e);r&&delete W[e],X(t,e,n),r&&t!==W&&X(W,e,r)}:X,at=function(t,e){var n=Q[t]=_(q[G]);return z(n,{type:V,tag:t,description:e}),s||(n.description=e),n},st=c?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof q},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,U)&&t[U][r]&&(t[U][r]=!1),n=_(n,{enumerable:y(0,!1)})):(h(t,U)||X(t,U,y(1,{})),t[U][r]=!0),ot(t,r,n)):X(t,r,n)},ct=function(t,e){d(t);var n=g(e),r=b(n).concat(dt(n));return B(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=$.call(this,e);return!(this===W&&h(Q,e)&&!h(J,e))&&(!(n||!h(this,e)||!h(Q,e)||h(this,U)&&this[U][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=Z(n,r);return!i||!h(Q,r)||h(n,U)&&n[U][r]||(i.enumerable=!0),i}},pt=function(t){var e=K(g(t)),n=[];return B(e,(function(t){h(Q,t)||h(L,t)||n.push(t)})),n},dt=function(t){var e=t===W,n=K(e?J:g(t)),r=[];return B(n,(function(t){!h(Q,t)||e&&!h(W,t)||r.push(Q[t])})),r};if(u||(q=function(){if(this instanceof q)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,U)&&h(this[U],e)&&(this[U][e]=!1),ot(this,e,y(1,t))};return s&&it&&ot(W,e,{configurable:!0,set:n}),at(e,t)},C(q[G],"toString",(function(){return F(this).tag})),C(q,"withoutSetter",(function(t){return at(D(t),t)})),T.f=ht,S.f=ut,E.f=ft,O.f=w.f=pt,x.f=dt,R.f=function(t){return at(k(t),t)},s&&(X(q[G],"description",{configurable:!0,get:function(){return F(this).description}}),a||C(W,"propertyIsEnumerable",ht,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!u,sham:!u},{Symbol:q}),B(b(nt),(function(t){I(t)})),r({target:V,stat:!0,forced:!u},{for:function(t){var e=String(t);if(h(tt,e))return tt[e];var n=q(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(){x.f(1)}))},{getOwnPropertySymbols:function(t){return x.f(v(t))}}),Y){var vt=!u||l((function(){var t=q();return"[null]"!=Y([t])||"{}"!=Y({a:t})||"{}"!=Y(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,Y.apply(null,i)}})}q[G][H]||M(q[G],H,q[G].valueOf),N(q,V),L[U]=!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}}})}));
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={};n.r(r),n.d(r,"Chart",(function(){return s})),n.d(r,"Modal",(function(){return u})),n.d(r,"Model",(function(){return c})),n.d(r,"Toolbar",(function(){return l})),n.d(r,"ZoomBar",(function(){return h})),n.d(r,"ZoomDomain",(function(){return f})),n.d(r,"CanvasZoom",(function(){return p})),n.d(r,"Axis",(function(){return d})),n.d(r,"Area",(function(){return v})),n.d(r,"WordCloud",(function(){return g})),n.d(r,"Pie",(function(){return m})),n.d(r,"Gauge",(function(){return y})),n.d(r,"Bar",(function(){return _})),n.d(r,"Boxplot",(function(){return b})),n.d(r,"Scatter",(function(){return O})),n.d(r,"Line",(function(){return w})),n.d(r,"Radar",(function(){return x})),n.d(r,"Tree",(function(){return E})),n.d(r,"Treemap",(function(){return S})),n.d(r,"Tooltip",(function(){return T})),n.d(r,"Threshold",(function(){return M})),n.d(r,"Legend",(function(){return C})),n.d(r,"CirclePack",(function(){return A})),n.d(r,"Alluvial",(function(){return P})),n.d(r,"Meter",(function(){return L})),n.d(r,"Heatmap",(function(){return D}));var i,o={};(n.r(o),n.d(o,"grid",(function(){return Cd})),n.d(o,"ruler",(function(){return Ad})),n.d(o,"baseTooltip",(function(){return Pd})),n.d(o,"timeScale",(function(){return Dd})),n.d(o,"options",(function(){return uv})),n.d(o,"carbonPrefix",(function(){return dt})),n.d(o,"area",(function(){return vt})),n.d(o,"axis",(function(){return gt})),n.d(o,"canvasZoomSettings",(function(){return mt})),n.d(o,"circlePack",(function(){return yt})),n.d(o,"color",(function(){return _t})),n.d(o,"boxplot",(function(){return bt})),n.d(o,"histogram",(function(){return Ot})),n.d(o,"legend",(function(){return wt})),n.d(o,"lines",(function(){return xt})),n.d(o,"meter",(function(){return Et})),n.d(o,"pie",(function(){return St})),n.d(o,"radar",(function(){return Tt})),n.d(o,"alluvial",(function(){return Mt})),n.d(o,"heatmap",(function(){return Ct})),n.d(o,"spacers",(function(){return At})),n.d(o,"tooltips",(function(){return Pt})),n.d(o,"transitions",(function(){return Lt})),n.d(o,"toolbar",(function(){return Dt})),n.d(o,"zoomBar",(function(){return kt})),n.d(o,"defaultLegendAdditionalItems",(function(){return Rt})),"undefined"!==typeof window)&&(n("4141"),(i=window.document.currentScript)&&(i=i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=i[1]));n("d6de"),n("8d0f"),n("68b8"),n("8d0d"),n("9531"),n("868d"),n("ef1f"),n("c78b"),n("f3b8"),n("918c");var a,s,u,c,l,h,f,p,d,v,g,m,y,_,b,O,w,x,E,S,T,M,C,A,P,L,D,k=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-area-chart"})},R=[];(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"})(a||(a={})),function(t){t["RENDER_FINISHED"]="render-finished",t["RESIZE"]="chart-resize",t["MOUSEOVER"]="chart-mouseover",t["MOUSEOUT"]="chart-mouseout"}(s||(s={})),function(t){t["SHOW"]="show-modal",t["HIDE"]="hide-modal"}(u||(u={})),function(t){t["UPDATE"]="model-update"}(c||(c={})),function(t){t["SHOW_OVERFLOW_MENU"]="show-toolbar-overflow-menu",t["HIDE_OVERFLOW_MENU"]="hide-toolbar-overflow-menu",t["BUTTON_CLICK"]="toolbar-button-click"}(l||(l={})),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"}(h||(h={})),function(t){t["CHANGE"]="zoom-domain-change"}(f||(f={})),function(t){t["CANVAS_ZOOM_IN"]="canvas-zoom-in",t["CANVAS_ZOOM_OUT"]="canvas-zoom-out"}(p||(p={})),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",t["LABEL_FOCUS"]="axis-label-focus",t["LABEL_BLUR"]="axis-label-blur",t["RENDER_COMPLETE"]="axis-render-complete"}(d||(d={})),function(t){t["POINT_MOUSEOVER"]="scatter-mouseover",t["POINT_MOUSEMOVE"]="scatter-mousemove",t["POINT_CLICK"]="scatter-click",t["POINT_MOUSEOUT"]="scatter-mouseout"}(v||(v={})),function(t){t["WORD_MOUSEOVER"]="wordcloud-word-mouseover",t["WORD_MOUSEMOVE"]="wordcloud-word-mousemove",t["WORD_CLICK"]="wordcloud-word-click",t["WORD_MOUSEOUT"]="wordcloud-word-mouseout"}(g||(g={})),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"}(m||(m={})),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"}(y||(y={})),function(t){t["BAR_MOUSEOVER"]="bar-mouseover",t["BAR_MOUSEMOVE"]="bar-mousemove",t["BAR_CLICK"]="bar-click",t["BAR_MOUSEOUT"]="bar-mouseout"}(_||(_={})),function(t){t["BOX_MOUSEOVER"]="box-mouseover",t["BOX_MOUSEMOVE"]="box-mousemove",t["BOX_CLICK"]="box-click",t["BOX_MOUSEOUT"]="box-mouseout",t["OUTLIER_MOUSEOVER"]="outlier-mouseover",t["OUTLIER_MOUSEMOVE"]="outlier-mousemove",t["OUTLIER_CLICK"]="outlier-click",t["OUTLIER_MOUSEOUT"]="outlier-mouseout"}(b||(b={})),function(t){t["SCATTER_MOUSEOVER"]="scatter-mouseover",t["SCATTER_MOUSEMOVE"]="scatter-mousemove",t["SCATTER_CLICK"]="scatter-click",t["SCATTER_MOUSEOUT"]="scatter-mouseout"}(O||(O={})),function(t){t["POINT_MOUSEOVER"]="scatter-mouseover",t["POINT_MOUSEMOVE"]="scatter-mousemove",t["POINT_CLICK"]="scatter-click",t["POINT_MOUSEOUT"]="scatter-mouseout"}(w||(w={})),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"}(x||(x={})),function(t){t["NODE_MOUSEOVER"]="tree-node-mouseover",t["NODE_CLICK"]="tree-node-click",t["NODE_MOUSEOUT"]="tree-node-mouseout"}(E||(E={})),function(t){t["LEAF_MOUSEOVER"]="leaf-mouseover",t["LEAF_MOUSEMOVE"]="leaf-mousemove",t["LEAF_CLICK"]="leaf-click",t["LEAF_MOUSEOUT"]="leaf-mouseout"}(S||(S={})),function(t){t["SHOW"]="show-tooltip",t["MOVE"]="move-tooltip",t["HIDE"]="hide-tooltip"}(T||(T={})),function(t){t["SHOW"]="show-threshold",t["HIDE"]="hide-threshold"}(M||(M={})),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"}(C||(C={})),function(t){t["CIRCLE_MOUSEOVER"]="circle-leaf-mouseover",t["CIRCLE_CLICK"]="circle-leaf-click",t["CIRCLE_MOUSEOUT"]="circle-leaf-mouseout",t["CIRCLE_MOUSEMOVE"]="circle-leaf-mousemove"}(A||(A={})),function(t){t["NODE_MOUSEOVER"]="alluvial-node-mouseover",t["NODE_CLICK"]="alluvial-node-click",t["NODE_MOUSEOUT"]="alluvial-node-mouseout",t["NODE_MOUSEMOVE"]="alluvial-node-mousemove",t["LINE_MOUSEOVER"]="alluvial-line-mouseover",t["LINE_CLICK"]="alluvial-line-click",t["LINE_MOUSEOUT"]="alluvial-line-mouseout",t["LINE_MOUSEMOVE"]="alluvial-line-mousemove"}(P||(P={})),function(t){t["METER_MOUSEOVER"]="meter-mouseover",t["METER_CLICK"]="meter-click",t["METER_MOUSEOUT"]="meter-mouseout",t["METER_MOUSEMOVE"]="meter-mousemove"}(L||(L={})),function(t){t["HEATMAP_MOUSEOVER"]="heatmap-mouseover",t["HEATMAP_CLICK"]="heatmap-click",t["HEATMAP_MOUSEOUT"]="heatmap-mouseout",t["HEATMAP_MOUSEMOVE"]="hetmap-mousemove"}(D||(D={}));var I,N,j,B,U,V,G,H,z,F,W,q,Y,Z,X,K,$,Q,J,tt,et,nt,rt,it,ot,at,st,ut,ct,lt,ht,ft=r;function pt(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}(function(t){t["HTML"]="html",t["SVG"]="svg"})(I||(I={})),function(t){t["WHITE"]="white",t["G100"]="g100",t["G90"]="g90",t["G10"]="g10"}(N||(N={})),function(t){t["BACKGROUND"]="background",t["FILL"]="fill",t["STROKE"]="stroke",t["TOOLTIP"]="tooltip"}(j||(j={})),function(t){t["LEFT"]="left",t["RIGHT"]="right",t["TOP"]="top",t["BOTTOM"]="bottom"}(B||(B={})),function(t){t["GRAPH_VIEW"]="graph_view",t["SLIDER_VIEW"]="slider_view"}(U||(U={})),function(t){t["END_LINE"]="end_line",t["MID_LINE"]="mid_line",t["FRONT_LINE"]="front_line",t["NONE"]="none"}(V||(V={})),function(t){t["VERTICAL"]="vertical",t["HORIZONTAL"]="horizontal"}(G||(G={})),function(t){t["TIME"]="time",t["LINEAR"]="linear",t["LOG"]="log",t["LABELS"]="labels",t["LABELS_RATIO"]="labels-ratio"}(H||(H={})),function(t){t["RIGHT"]="right",t["LEFT"]="left",t["TOP"]="top",t["BOTTOM"]="bottom"}(z||(z={})),function(t){t["LEFT"]="left",t["CENTER"]="center",t["RIGHT"]="right"}(F||(F={})),function(t){t["HORIZONTAL"]="horizontal",t["VERTICAL"]="vertical"}(W||(W={})),function(t){t["TREE"]="tree",t["DENDROGRAM"]="dendrogram"}(q||(q={})),function(t){t["ROW"]="row",t["COLUMN"]="column",t["ROW_REVERSE"]="row-reverse",t["COLUMN_REVERSE"]="column-reverse"}(Y||(Y={})),function(t){t["FIXED"]="fixed",t["PREFERRED"]="preferred",t["STRETCH"]="stretch"}(Z||(Z={})),function(t){t["CENTER"]="center"}(X||(X={})),function(t){t["LEFT"]="left",t["RIGHT"]="right"}(K||(K={})),function(t){t["GRID"]="grid",t["VERT_OR_HORIZ"]="vertOrHoriz",t["PIE"]="pie",t["DONUT"]="donut"}($||($={})),function(t){t["START"]="start",t["MIDDLE"]="middle",t["END"]="end"}(Q||(Q={})),function(t){t["BASELINE"]="baseline",t["MIDDLE"]="middle",t["HANGING"]="hanging"}(J||(J={})),function(t){t["SEMI"]="semi",t["FULL"]="full"}(tt||(tt={})),function(t){t["UP"]="up",t["DOWN"]="down"}(et||(et={})),function(t){t["SUCCESS"]="success",t["WARNING"]="warning",t["DANGER"]="danger"}(nt||(nt={})),function(t){t["ALWAYS"]="always",t["AUTO"]="auto",t["NEVER"]="never"}(rt||(rt={})),function(t){t["SCATTER"]="scatter",t["LINE"]="line",t["SIMPLE_BAR"]="simple-bar",t["STACKED_BAR"]="stacked-bar",t["GROUPED_BAR"]="grouped-bar",t["AREA"]="area",t["STACKED_AREA"]="stacked-area"}(it||(it={})),function(t){t["EXPORT_CSV"]="Export as CSV",t["EXPORT_PNG"]="Export as PNG",t["EXPORT_JPG"]="Export as JPG",t["ZOOM_IN"]="Zoom in",t["ZOOM_OUT"]="Zoom out",t["RESET_ZOOM"]="Reset zoom",t["MAKE_FULLSCREEN"]="Make fullscreen",t["SHOW_AS_DATATABLE"]="Show as data-table",t["CUSTOM"]="Custom"}(ot||(ot={})),function(t){t["LEFT"]="left",t["RIGHT"]="right"}(at||(at={})),function(t){t["CHECKBOX"]="checkbox",t["RADIUS"]="radius",t["AREA"]="area",t["SIZE"]="size",t["LINE"]="line",t["QUARTILE"]="quartile",t["ZOOM"]="zoom"}(st||(st={})),function(t){t["LINEAR"]="linear",t["QUANTIZE"]="quantize"}(ut||(ut={})),function(t){t["ON"]="on",t["AUTO"]="auto",t["OFF"]="off"}(ct||(ct={})),function(t){t["DEFAULT"]="default",t["HOVERABLE"]="hoverable"}(lt||(lt={}));var dt="cds",vt={opacity:{unselected:.05,selected:.4}},gt={ticks:{number:7,rotateIfSmallerThan:30,verticalSpaceRatio:2.5,horizontalSpaceRatio:3.5},ratio:{reference:"value",compareTo:"marker"},paddingRatio:.1,hover:{rectanglePadding:4}},mt={duration:1e3,ease:pt,zoomLevel:3},yt={circles:{fillOpacity:.3,hover:{stroke:"#FFF"}},padding:{mainGroup:4,children:2},hierarchyLevel:2},_t={pairingOptions:{"1-color":4,"2-color":5,"3-color":5,"4-color":3,"5-color":2,"14-color":1}},bt={circle:{radius:4,opacity:{hovered:1,default:.3}},box:{opacity:{hovered:.5,default:.3}},strokeWidth:{default:1,thicker:2}},Ot={defaultBins:10},wt={items:{status:{ACTIVE:1,DISABLED:0},horizontalSpace:12,verticalSpace:24,textYOffset:8,spaceAfter:4},checkbox:{radius:6.5},radius:{iconData:[{cx:7,cy:7,r:6.5},{cx:7,cy:10,r:3.5}],fill:null,stroke:"#8c8c8c"},line:{yPosition:6,width:24,strokeWidth:1.4,fill:null,stroke:"#999999"},area:{width:24,height:14,fill:"#6f6f6f",stroke:null},size:{iconData:[{width:23,height:12},{width:13,height:6}],fill:null,stroke:"#8D8D8D"},quartile:{iconData:[{x:0,y:0,width:24,height:13},{x:11,y:4,width:1,height:4}]},zoom:{iconData:[{x:0,y:0,width:12,height:12}],color:"#8D8D8D"},color:{barWidth:300,barHeight:8,axisYTranslation:10}},xt={opacity:{unselected:.3,selected:1},weight:{selected:2,unselected:1}},Et={statusBar:{paddingRight:5},status:{indicatorSize:16,paddingLeft:15},total:{paddingLeft:36,paddingRight:24},height:{default:8,proportional:16},dividerWidth:2},St={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}},Tt={opacity:{unselected:.1,selected:.3},xLabelPadding:10,yLabelPadding:8,yTicksNumber:4,minRange:10,xAxisRectHeight:50,dotsRadius:5},Mt={nodeWidth:4,nodeHoveredWidth:8,minNodePadding:24,opacity:{unfocus:.3,default:.8,selected:1}},Ct={minCellDividerDimension:16,chartPadding:.5},At={default:{size:24}},Pt={horizontalOffset:10},Lt={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}},Dt={buttonSize:32,iconSize:20,height:32,spacerHeight:10,iconPadding:6},kt={height:(ht={},ht[U.GRAPH_VIEW]=32,ht[U.SLIDER_VIEW]=10,ht),spacerHeight:8,handleWidth:5,handleBarWidth:1,handleBarHeight:12},Rt=[{type:st.RADIUS,name:"Radius"},{type:st.AREA,name:"Poor area"},{type:st.AREA,name:"Satisfactory area"},{type:st.AREA,name:"Great area"},{type:st.QUARTILE,name:"Quartiles"}];function It(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}var Nt=It,jt=n("7f0d"),Bt=function(){return jt["a"].Date.now()},Ut=Bt,Vt=/\s/;function Gt(t){var e=t.length;while(e--&&Vt.test(t.charAt(e)));return e}var Ht=Gt,zt=/^\s+/;function Ft(t){return t?t.slice(0,Ht(t)+1).replace(zt,""):t}var Wt=Ft,qt=jt["a"].Symbol,Yt=qt,Zt=Object.prototype,Xt=Zt.hasOwnProperty,Kt=Zt.toString,$t=Yt?Yt.toStringTag:void 0;function Qt(t){var e=Xt.call(t,$t),n=t[$t];try{t[$t]=void 0;var r=!0}catch(o){}var i=Kt.call(t);return r&&(e?t[$t]=n:delete t[$t]),i}var Jt=Qt,te=Object.prototype,ee=te.toString;function ne(t){return ee.call(t)}var re=ne,ie="[object Null]",oe="[object Undefined]",ae=Yt?Yt.toStringTag:void 0;function se(t){return null==t?void 0===t?oe:ie:ae&&ae in Object(t)?Jt(t):re(t)}var ue=se;function ce(t){return null!=t&&"object"==typeof t}var le=ce,he="[object Symbol]";function fe(t){return"symbol"==typeof t||le(t)&&ue(t)==he}var pe=fe,de=NaN,ve=/^[-+]0x[0-9a-f]+$/i,ge=/^0b[01]+$/i,me=/^0o[0-7]+$/i,ye=parseInt;function _e(t){if("number"==typeof t)return t;if(pe(t))return de;if(Nt(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Nt(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Wt(t);var n=ge.test(t);return n||me.test(t)?ye(t.slice(2),n?2:8):ve.test(t)?de:+t}var be=_e,Oe="Expected a function",we=Math.max,xe=Math.min;function Ee(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(Oe);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?xe(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=Ut();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(Ut())}function O(){var t=Ut(),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=be(e)||0,Nt(n)&&(l=!!n.leading,h="maxWait"in n,o=h?we(be(n.maxWait)||0,e):o,f="trailing"in n?!!n.trailing:f),O.cancel=_,O.flush=b,O}var Se=Ee;function Te(){this.__data__=[],this.size=0}var Me=Te;function Ce(t,e){return t===e||t!==t&&e!==e}var Ae=Ce;function Pe(t,e){var n=t.length;while(n--)if(Ae(t[n][0],e))return n;return-1}var Le=Pe,De=Array.prototype,ke=De.splice;function Re(t){var e=this.__data__,n=Le(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():ke.call(e,n,1),--this.size,!0}var Ie=Re;function Ne(t){var e=this.__data__,n=Le(e,t);return n<0?void 0:e[n][1]}var je=Ne;function Be(t){return Le(this.__data__,t)>-1}var Ue=Be;function Ve(t,e){var n=this.__data__,r=Le(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}var Ge=Ve;function He(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])}}He.prototype.clear=Me,He.prototype["delete"]=Ie,He.prototype.get=je,He.prototype.has=Ue,He.prototype.set=Ge;var ze=He;function Fe(){this.__data__=new ze,this.size=0}var We=Fe;function qe(t){var e=this.__data__,n=e["delete"](t);return this.size=e.size,n}var Ye=qe;function Ze(t){return this.__data__.get(t)}var Xe=Ze;function Ke(t){return this.__data__.has(t)}var $e=Ke,Qe="[object AsyncFunction]",Je="[object Function]",tn="[object GeneratorFunction]",en="[object Proxy]";function nn(t){if(!Nt(t))return!1;var e=ue(t);return e==Je||e==tn||e==Qe||e==en}var rn=nn,on=jt["a"]["__core-js_shared__"],an=on,sn=function(){var t=/[^.]+$/.exec(an&&an.keys&&an.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function un(t){return!!sn&&sn in t}var cn=un,ln=Function.prototype,hn=ln.toString;function fn(t){if(null!=t){try{return hn.call(t)}catch(e){}try{return t+""}catch(e){}}return""}var pn=fn,dn=/[\\^$.*+?()[\]{}|]/g,vn=/^\[object .+?Constructor\]$/,gn=Function.prototype,mn=Object.prototype,yn=gn.toString,_n=mn.hasOwnProperty,bn=RegExp("^"+yn.call(_n).replace(dn,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function On(t){if(!Nt(t)||cn(t))return!1;var e=rn(t)?bn:vn;return e.test(pn(t))}var wn=On;function xn(t,e){return null==t?void 0:t[e]}var En=xn;function Sn(t,e){var n=En(t,e);return wn(n)?n:void 0}var Tn=Sn,Mn=Tn(jt["a"],"Map"),Cn=Mn,An=Tn(Object,"create"),Pn=An;function Ln(){this.__data__=Pn?Pn(null):{},this.size=0}var Dn=Ln;function kn(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var Rn=kn,In="__lodash_hash_undefined__",Nn=Object.prototype,jn=Nn.hasOwnProperty;function Bn(t){var e=this.__data__;if(Pn){var n=e[t];return n===In?void 0:n}return jn.call(e,t)?e[t]:void 0}var Un=Bn,Vn=Object.prototype,Gn=Vn.hasOwnProperty;function Hn(t){var e=this.__data__;return Pn?void 0!==e[t]:Gn.call(e,t)}var zn=Hn,Fn="__lodash_hash_undefined__";function Wn(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Pn&&void 0===e?Fn:e,this}var qn=Wn;function Yn(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])}}Yn.prototype.clear=Dn,Yn.prototype["delete"]=Rn,Yn.prototype.get=Un,Yn.prototype.has=zn,Yn.prototype.set=qn;var Zn=Yn;function Xn(){this.size=0,this.__data__={hash:new Zn,map:new(Cn||ze),string:new Zn}}var Kn=Xn;function $n(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}var Qn=$n;function Jn(t,e){var n=t.__data__;return Qn(e)?n["string"==typeof e?"string":"hash"]:n.map}var tr=Jn;function er(t){var e=tr(this,t)["delete"](t);return this.size-=e?1:0,e}var nr=er;function rr(t){return tr(this,t).get(t)}var ir=rr;function or(t){return tr(this,t).has(t)}var ar=or;function sr(t,e){var n=tr(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}var ur=sr;function cr(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])}}cr.prototype.clear=Kn,cr.prototype["delete"]=nr,cr.prototype.get=ir,cr.prototype.has=ar,cr.prototype.set=ur;var lr=cr,hr=200;function fr(t,e){var n=this.__data__;if(n instanceof ze){var r=n.__data__;if(!Cn||r.length<hr-1)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new lr(r)}return n.set(t,e),this.size=n.size,this}var pr=fr;function dr(t){var e=this.__data__=new ze(t);this.size=e.size}dr.prototype.clear=We,dr.prototype["delete"]=Ye,dr.prototype.get=Xe,dr.prototype.has=$e,dr.prototype.set=pr;var vr=dr;function gr(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 mr=gr,yr=function(){try{var t=Tn(Object,"defineProperty");return t({},"",{}),t}catch(e){}}(),_r=yr;function br(t,e,n){"__proto__"==e&&_r?_r(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}var Or=br,wr=Object.prototype,xr=wr.hasOwnProperty;function Er(t,e,n){var r=t[e];xr.call(t,e)&&Ae(r,n)&&(void 0!==n||e in t)||Or(t,e,n)}var Sr=Er;function Tr(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?Or(n,s,u):Sr(n,s,u)}return n}var Mr=Tr;function Cr(t,e){var n=-1,r=Array(t);while(++n<t)r[n]=e(n);return r}var Ar=Cr,Pr="[object Arguments]";function Lr(t){return le(t)&&ue(t)==Pr}var Dr=Lr,kr=Object.prototype,Rr=kr.hasOwnProperty,Ir=kr.propertyIsEnumerable,Nr=Dr(function(){return arguments}())?Dr:function(t){return le(t)&&Rr.call(t,"callee")&&!Ir.call(t,"callee")},jr=Nr,Br=Array.isArray,Ur=Br,Vr=n("4cf0"),Gr=9007199254740991,Hr=/^(?:0|[1-9]\d*)$/;function zr(t,e){var n=typeof t;return e=null==e?Gr:e,!!e&&("number"==n||"symbol"!=n&&Hr.test(t))&&t>-1&&t%1==0&&t<e}var Fr=zr,Wr=9007199254740991;function qr(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=Wr}var Yr=qr,Zr="[object Arguments]",Xr="[object Array]",Kr="[object Boolean]",$r="[object Date]",Qr="[object Error]",Jr="[object Function]",ti="[object Map]",ei="[object Number]",ni="[object Object]",ri="[object RegExp]",ii="[object Set]",oi="[object String]",ai="[object WeakMap]",si="[object ArrayBuffer]",ui="[object DataView]",ci="[object Float32Array]",li="[object Float64Array]",hi="[object Int8Array]",fi="[object Int16Array]",pi="[object Int32Array]",di="[object Uint8Array]",vi="[object Uint8ClampedArray]",gi="[object Uint16Array]",mi="[object Uint32Array]",yi={};function _i(t){return le(t)&&Yr(t.length)&&!!yi[ue(t)]}yi[ci]=yi[li]=yi[hi]=yi[fi]=yi[pi]=yi[di]=yi[vi]=yi[gi]=yi[mi]=!0,yi[Zr]=yi[Xr]=yi[si]=yi[Kr]=yi[ui]=yi[$r]=yi[Qr]=yi[Jr]=yi[ti]=yi[ei]=yi[ni]=yi[ri]=yi[ii]=yi[oi]=yi[ai]=!1;var bi=_i;function Oi(t){return function(e){return t(e)}}var wi=Oi,xi=n("01ff"),Ei=xi["a"]&&xi["a"].isTypedArray,Si=Ei?wi(Ei):bi,Ti=Si,Mi=Object.prototype,Ci=Mi.hasOwnProperty;function Ai(t,e){var n=Ur(t),r=!n&&jr(t),i=!n&&!r&&Object(Vr["a"])(t),o=!n&&!r&&!i&&Ti(t),a=n||r||i||o,s=a?Ar(t.length,String):[],u=s.length;for(var c in t)!e&&!Ci.call(t,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Fr(c,u))||s.push(c);return s}var Pi=Ai,Li=Object.prototype;function Di(t){var e=t&&t.constructor,n="function"==typeof e&&e.prototype||Li;return t===n}var ki=Di;function Ri(t,e){return function(n){return t(e(n))}}var Ii=Ri,Ni=Ii(Object.keys,Object),ji=Ni,Bi=Object.prototype,Ui=Bi.hasOwnProperty;function Vi(t){if(!ki(t))return ji(t);var e=[];for(var n in Object(t))Ui.call(t,n)&&"constructor"!=n&&e.push(n);return e}var Gi=Vi;function Hi(t){return null!=t&&Yr(t.length)&&!rn(t)}var zi=Hi;function Fi(t){return zi(t)?Pi(t):Gi(t)}var Wi=Fi;function qi(t,e){return t&&Mr(e,Wi(e),t)}var Yi=qi;function Zi(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}var Xi=Zi,Ki=Object.prototype,$i=Ki.hasOwnProperty;function Qi(t){if(!Nt(t))return Xi(t);var e=ki(t),n=[];for(var r in t)("constructor"!=r||!e&&$i.call(t,r))&&n.push(r);return n}var Ji=Qi;function to(t){return zi(t)?Pi(t,!0):Ji(t)}var eo=to;function no(t,e){return t&&Mr(e,eo(e),t)}var ro=no,io=n("d6f0");function oo(t,e){var n=-1,r=t.length;e||(e=Array(r));while(++n<r)e[n]=t[n];return e}var ao=oo;function so(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 uo=so;function co(){return[]}var lo=co,ho=Object.prototype,fo=ho.propertyIsEnumerable,po=Object.getOwnPropertySymbols,vo=po?function(t){return null==t?[]:(t=Object(t),uo(po(t),(function(e){return fo.call(t,e)})))}:lo,go=vo;function mo(t,e){return Mr(t,go(t),e)}var yo=mo;function _o(t,e){var n=-1,r=e.length,i=t.length;while(++n<r)t[i+n]=e[n];return t}var bo=_o,Oo=Ii(Object.getPrototypeOf,Object),wo=Oo,xo=Object.getOwnPropertySymbols,Eo=xo?function(t){var e=[];while(t)bo(e,go(t)),t=wo(t);return e}:lo,So=Eo;function To(t,e){return Mr(t,So(t),e)}var Mo=To;function Co(t,e,n){var r=e(t);return Ur(t)?r:bo(r,n(t))}var Ao=Co;function Po(t){return Ao(t,Wi,go)}var Lo=Po;function Do(t){return Ao(t,eo,So)}var ko=Do,Ro=Tn(jt["a"],"DataView"),Io=Ro,No=Tn(jt["a"],"Promise"),jo=No,Bo=Tn(jt["a"],"Set"),Uo=Bo,Vo=Tn(jt["a"],"WeakMap"),Go=Vo,Ho="[object Map]",zo="[object Object]",Fo="[object Promise]",Wo="[object Set]",qo="[object WeakMap]",Yo="[object DataView]",Zo=pn(Io),Xo=pn(Cn),Ko=pn(jo),$o=pn(Uo),Qo=pn(Go),Jo=ue;(Io&&Jo(new Io(new ArrayBuffer(1)))!=Yo||Cn&&Jo(new Cn)!=Ho||jo&&Jo(jo.resolve())!=Fo||Uo&&Jo(new Uo)!=Wo||Go&&Jo(new Go)!=qo)&&(Jo=function(t){var e=ue(t),n=e==zo?t.constructor:void 0,r=n?pn(n):"";if(r)switch(r){case Zo:return Yo;case Xo:return Ho;case Ko:return Fo;case $o:return Wo;case Qo:return qo}return e});var ta=Jo,ea=Object.prototype,na=ea.hasOwnProperty;function ra(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&na.call(t,"index")&&(n.index=t.index,n.input=t.input),n}var ia=ra,oa=jt["a"].Uint8Array,aa=oa;function sa(t){var e=new t.constructor(t.byteLength);return new aa(e).set(new aa(t)),e}var ua=sa;function ca(t,e){var n=e?ua(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}var la=ca,ha=/\w*$/;function fa(t){var e=new t.constructor(t.source,ha.exec(t));return e.lastIndex=t.lastIndex,e}var pa=fa,da=Yt?Yt.prototype:void 0,va=da?da.valueOf:void 0;function ga(t){return va?Object(va.call(t)):{}}var ma=ga;function ya(t,e){var n=e?ua(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}var _a=ya,ba="[object Boolean]",Oa="[object Date]",wa="[object Map]",xa="[object Number]",Ea="[object RegExp]",Sa="[object Set]",Ta="[object String]",Ma="[object Symbol]",Ca="[object ArrayBuffer]",Aa="[object DataView]",Pa="[object Float32Array]",La="[object Float64Array]",Da="[object Int8Array]",ka="[object Int16Array]",Ra="[object Int32Array]",Ia="[object Uint8Array]",Na="[object Uint8ClampedArray]",ja="[object Uint16Array]",Ba="[object Uint32Array]";function Ua(t,e,n){var r=t.constructor;switch(e){case Ca:return ua(t);case ba:case Oa:return new r(+t);case Aa:return la(t,n);case Pa:case La:case Da:case ka:case Ra:case Ia:case Na:case ja:case Ba:return _a(t,n);case wa:return new r;case xa:case Ta:return new r(t);case Ea:return pa(t);case Sa:return new r;case Ma:return ma(t)}}var Va=Ua,Ga=Object.create,Ha=function(){function t(){}return function(e){if(!Nt(e))return{};if(Ga)return Ga(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}(),za=Ha;function Fa(t){return"function"!=typeof t.constructor||ki(t)?{}:za(wo(t))}var Wa=Fa,qa="[object Map]";function Ya(t){return le(t)&&ta(t)==qa}var Za=Ya,Xa=xi["a"]&&xi["a"].isMap,Ka=Xa?wi(Xa):Za,$a=Ka,Qa="[object Set]";function Ja(t){return le(t)&&ta(t)==Qa}var ts=Ja,es=xi["a"]&&xi["a"].isSet,ns=es?wi(es):ts,rs=ns,is=1,os=2,as=4,ss="[object Arguments]",us="[object Array]",cs="[object Boolean]",ls="[object Date]",hs="[object Error]",fs="[object Function]",ps="[object GeneratorFunction]",ds="[object Map]",vs="[object Number]",gs="[object Object]",ms="[object RegExp]",ys="[object Set]",_s="[object String]",bs="[object Symbol]",Os="[object WeakMap]",ws="[object ArrayBuffer]",xs="[object DataView]",Es="[object Float32Array]",Ss="[object Float64Array]",Ts="[object Int8Array]",Ms="[object Int16Array]",Cs="[object Int32Array]",As="[object Uint8Array]",Ps="[object Uint8ClampedArray]",Ls="[object Uint16Array]",Ds="[object Uint32Array]",ks={};function Rs(t,e,n,r,i,o){var a,s=e&is,u=e&os,c=e&as;if(n&&(a=i?n(t,r,i,o):n(t)),void 0!==a)return a;if(!Nt(t))return t;var l=Ur(t);if(l){if(a=ia(t),!s)return ao(t,a)}else{var h=ta(t),f=h==fs||h==ps;if(Object(Vr["a"])(t))return Object(io["a"])(t,s);if(h==gs||h==ss||f&&!i){if(a=u||f?{}:Wa(t),!s)return u?Mo(t,ro(a,t)):yo(t,Yi(a,t))}else{if(!ks[h])return i?t:{};a=Va(t,h,s)}}o||(o=new vr);var p=o.get(t);if(p)return p;o.set(t,a),rs(t)?t.forEach((function(r){a.add(Rs(r,e,n,r,t,o))})):$a(t)&&t.forEach((function(r,i){a.set(i,Rs(r,e,n,i,t,o))}));var d=c?u?ko:Lo:u?eo:Wi,v=l?void 0:d(t);return mr(v||t,(function(r,i){v&&(i=r,r=t[i]),Sr(a,i,Rs(r,e,n,i,t,o))})),a}ks[ss]=ks[us]=ks[ws]=ks[xs]=ks[cs]=ks[ls]=ks[Es]=ks[Ss]=ks[Ts]=ks[Ms]=ks[Cs]=ks[ds]=ks[vs]=ks[gs]=ks[ms]=ks[ys]=ks[_s]=ks[bs]=ks[As]=ks[Ps]=ks[Ls]=ks[Ds]=!0,ks[hs]=ks[fs]=ks[Os]=!1;var Is=Rs,Ns=1,js=4;function Bs(t){return Is(t,Ns|js)}var Us=Bs;function Vs(t,e,n){(void 0===n||Ae(t[e],n))&&(void 0!==n||e in t)||Or(t,e,n)}var Gs=Vs;function Hs(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 zs=Hs,Fs=zs(),Ws=Fs;function qs(t){return le(t)&&zi(t)}var Ys=qs,Zs="[object Object]",Xs=Function.prototype,Ks=Object.prototype,$s=Xs.toString,Qs=Ks.hasOwnProperty,Js=$s.call(Object);function tu(t){if(!le(t)||ue(t)!=Zs)return!1;var e=wo(t);if(null===e)return!0;var n=Qs.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&$s.call(n)==Js}var eu=tu;function nu(t,e){if(("constructor"!==e||"function"!==typeof t[e])&&"__proto__"!=e)return t[e]}var ru=nu;function iu(t){return Mr(t,eo(t))}var ou=iu;function au(t,e,n,r,i,o,a){var s=ru(t,n),u=ru(e,n),c=a.get(u);if(c)Gs(t,n,c);else{var l=o?o(s,u,n+"",t,e,a):void 0,h=void 0===l;if(h){var f=Ur(u),p=!f&&Object(Vr["a"])(u),d=!f&&!p&&Ti(u);l=u,f||p||d?Ur(s)?l=s:Ys(s)?l=ao(s):p?(h=!1,l=Object(io["a"])(u,!0)):d?(h=!1,l=_a(u,!0)):l=[]:eu(u)||jr(u)?(l=s,jr(s)?l=ou(s):Nt(s)&&!rn(s)||(l=Wa(u))):h=!1}h&&(a.set(u,l),i(l,u,r,o,a),a["delete"](u)),Gs(t,n,l)}}var su=au;function uu(t,e,n,r,i){t!==e&&Ws(e,(function(o,a){if(i||(i=new vr),Nt(o))su(t,e,a,n,uu,r,i);else{var s=r?r(ru(t,a),o,a+"",t,e,i):void 0;void 0===s&&(s=o),Gs(t,a,s)}}),eo)}var cu=uu;function lu(t){return t}var hu=lu;function fu(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 pu=fu,du=Math.max;function vu(t,e,n){return e=du(void 0===e?t.length-1:e,0),function(){var r=arguments,i=-1,o=du(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),pu(t,this,s)}}var gu=vu;function mu(t){return function(){return t}}var yu=mu,_u=_r?function(t,e){return _r(t,"toString",{configurable:!0,enumerable:!1,value:yu(e),writable:!0})}:hu,bu=_u,Ou=800,wu=16,xu=Date.now;function Eu(t){var e=0,n=0;return function(){var r=xu(),i=wu-(r-n);if(n=r,i>0){if(++e>=Ou)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var Su=Eu,Tu=Su(bu),Mu=Tu;function Cu(t,e){return Mu(gu(t,e,hu),t+"")}var Au=Cu;function Pu(t,e,n){if(!Nt(n))return!1;var r=typeof e;return!!("number"==r?zi(n)&&Fr(e,n.length):"string"==r&&e in n)&&Ae(n[e],t)}var Lu=Pu;function Du(t){return Au((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&&Lu(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 ku=Du,Ru=ku((function(t,e,n){cu(t,e,n)})),Iu=Ru,Nu=Yt?Yt.isConcatSpreadable:void 0;function ju(t){return Ur(t)||jr(t)||!!(Nu&&t&&t[Nu])}var Bu=ju;function Uu(t,e,n,r,i){var o=-1,a=t.length;n||(n=Bu),i||(i=[]);while(++o<a){var s=t[o];e>0&&n(s)?e>1?Uu(s,e-1,n,r,i):bo(i,s):r||(i[i.length]=s)}return i}var Vu=Uu,Gu="__lodash_hash_undefined__";function Hu(t){return this.__data__.set(t,Gu),this}var zu=Hu;function Fu(t){return this.__data__.has(t)}var Wu=Fu;function qu(t){var e=-1,n=null==t?0:t.length;this.__data__=new lr;while(++e<n)this.add(t[e])}qu.prototype.add=qu.prototype.push=zu,qu.prototype.has=Wu;var Yu=qu;function Zu(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 Xu=Zu;function Ku(t,e){return t.has(e)}var $u=Ku,Qu=1,Ju=2;function tc(t,e,n,r,i,o){var a=n&Qu,s=t.length,u=e.length;if(s!=u&&!(a&&u>s))return!1;var c=o.get(t),l=o.get(e);if(c&&l)return c==e&&l==t;var h=-1,f=!0,p=n&Ju?new Yu:void 0;o.set(t,e),o.set(e,t);while(++h<s){var d=t[h],v=e[h];if(r)var g=a?r(v,d,h,e,t,o):r(d,v,h,t,e,o);if(void 0!==g){if(g)continue;f=!1;break}if(p){if(!Xu(e,(function(t,e){if(!$u(p,e)&&(d===t||i(d,t,n,r,o)))return p.push(e)}))){f=!1;break}}else if(d!==v&&!i(d,v,n,r,o)){f=!1;break}}return o["delete"](t),o["delete"](e),f}var ec=tc;function nc(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}var rc=nc;function ic(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}var oc=ic,ac=1,sc=2,uc="[object Boolean]",cc="[object Date]",lc="[object Error]",hc="[object Map]",fc="[object Number]",pc="[object RegExp]",dc="[object Set]",vc="[object String]",gc="[object Symbol]",mc="[object ArrayBuffer]",yc="[object DataView]",_c=Yt?Yt.prototype:void 0,bc=_c?_c.valueOf:void 0;function Oc(t,e,n,r,i,o,a){switch(n){case yc:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case mc:return!(t.byteLength!=e.byteLength||!o(new aa(t),new aa(e)));case uc:case cc:case fc:return Ae(+t,+e);case lc:return t.name==e.name&&t.message==e.message;case pc:case vc:return t==e+"";case hc:var s=rc;case dc:var u=r&ac;if(s||(s=oc),t.size!=e.size&&!u)return!1;var c=a.get(t);if(c)return c==e;r|=sc,a.set(t,e);var l=ec(s(t),s(e),r,i,o,a);return a["delete"](t),l;case gc:if(bc)return bc.call(t)==bc.call(e)}return!1}var wc=Oc,xc=1,Ec=Object.prototype,Sc=Ec.hasOwnProperty;function Tc(t,e,n,r,i,o){var a=n&xc,s=Lo(t),u=s.length,c=Lo(e),l=c.length;if(u!=l&&!a)return!1;var h=u;while(h--){var f=s[h];if(!(a?f in e:Sc.call(e,f)))return!1}var p=o.get(t),d=o.get(e);if(p&&d)return p==e&&d==t;var v=!0;o.set(t,e),o.set(e,t);var g=a;while(++h<u){f=s[h];var m=t[f],y=e[f];if(r)var _=a?r(y,m,f,e,t,o):r(m,y,f,t,e,o);if(!(void 0===_?m===y||i(m,y,n,r,o):_)){v=!1;break}g||(g="constructor"==f)}if(v&&!g){var b=t.constructor,O=e.constructor;b!=O&&"constructor"in t&&"constructor"in e&&!("function"==typeof b&&b instanceof b&&"function"==typeof O&&O instanceof O)&&(v=!1)}return o["delete"](t),o["delete"](e),v}var Mc=Tc,Cc=1,Ac="[object Arguments]",Pc="[object Array]",Lc="[object Object]",Dc=Object.prototype,kc=Dc.hasOwnProperty;function Rc(t,e,n,r,i,o){var a=Ur(t),s=Ur(e),u=a?Pc:ta(t),c=s?Pc:ta(e);u=u==Ac?Lc:u,c=c==Ac?Lc:c;var l=u==Lc,h=c==Lc,f=u==c;if(f&&Object(Vr["a"])(t)){if(!Object(Vr["a"])(e))return!1;a=!0,l=!1}if(f&&!l)return o||(o=new vr),a||Ti(t)?ec(t,e,n,r,i,o):wc(t,e,u,n,r,i,o);if(!(n&Cc)){var p=l&&kc.call(t,"__wrapped__"),d=h&&kc.call(e,"__wrapped__");if(p||d){var v=p?t.value():t,g=d?e.value():e;return o||(o=new vr),i(v,g,n,r,o)}}return!!f&&(o||(o=new vr),Mc(t,e,n,r,i,o))}var Ic=Rc;function Nc(t,e,n,r,i){return t===e||(null==t||null==e||!le(t)&&!le(e)?t!==t&&e!==e:Ic(t,e,n,r,Nc,i))}var jc=Nc,Bc=1,Uc=2;function Vc(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 vr;if(r)var f=r(c,l,u,t,e,h);if(!(void 0===f?jc(l,c,Bc|Uc,r,h):f))return!1}}return!0}var Gc=Vc;function Hc(t){return t===t&&!Nt(t)}var zc=Hc;function Fc(t){var e=Wi(t),n=e.length;while(n--){var r=e[n],i=t[r];e[n]=[r,i,zc(i)]}return e}var Wc=Fc;function qc(t,e){return function(n){return null!=n&&(n[t]===e&&(void 0!==e||t in Object(n)))}}var Yc=qc;function Zc(t){var e=Wc(t);return 1==e.length&&e[0][2]?Yc(e[0][0],e[0][1]):function(n){return n===t||Gc(n,t,e)}}var Xc=Zc,Kc=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,$c=/^\w*$/;function Qc(t,e){if(Ur(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!pe(t))||($c.test(t)||!Kc.test(t)||null!=e&&t in Object(e))}var Jc=Qc,tl="Expected a function";function el(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError(tl);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(el.Cache||lr),n}el.Cache=lr;var nl=el,rl=500;function il(t){var e=nl(t,(function(t){return n.size===rl&&n.clear(),t})),n=e.cache;return e}var ol=il,al=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,sl=/\\(\\)?/g,ul=ol((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(al,(function(t,n,r,i){e.push(r?i.replace(sl,"$1"):n||t)})),e})),cl=ul;function ll(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 hl=ll,fl=1/0,pl=Yt?Yt.prototype:void 0,dl=pl?pl.toString:void 0;function vl(t){if("string"==typeof t)return t;if(Ur(t))return hl(t,vl)+"";if(pe(t))return dl?dl.call(t):"";var e=t+"";return"0"==e&&1/t==-fl?"-0":e}var gl=vl;function ml(t){return null==t?"":gl(t)}var yl=ml;function _l(t,e){return Ur(t)?t:Jc(t,e)?[t]:cl(yl(t))}var bl=_l,Ol=1/0;function wl(t){if("string"==typeof t||pe(t))return t;var e=t+"";return"0"==e&&1/t==-Ol?"-0":e}var xl=wl;function El(t,e){e=bl(e,t);var n=0,r=e.length;while(null!=t&&n<r)t=t[xl(e[n++])];return n&&n==r?t:void 0}var Sl=El;function Tl(t,e,n){var r=null==t?void 0:Sl(t,e);return void 0===r?n:r}var Ml=Tl;function Cl(t,e){return null!=t&&e in Object(t)}var Al=Cl;function Pl(t,e,n){e=bl(e,t);var r=-1,i=e.length,o=!1;while(++r<i){var a=xl(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&&Yr(i)&&Fr(a,i)&&(Ur(t)||jr(t)))}var Ll=Pl;function Dl(t,e){return null!=t&&Ll(t,e,Al)}var kl=Dl,Rl=1,Il=2;function Nl(t,e){return Jc(t)&&zc(e)?Yc(xl(t),e):function(n){var r=Ml(n,t);return void 0===r&&r===e?kl(n,t):jc(e,r,Rl|Il)}}var jl=Nl;function Bl(t){return function(e){return null==e?void 0:e[t]}}var Ul=Bl;function Vl(t){return function(e){return Sl(e,t)}}var Gl=Vl;function Hl(t){return Jc(t)?Ul(xl(t)):Gl(t)}var zl=Hl;function Fl(t){return"function"==typeof t?t:null==t?hu:"object"==typeof t?Ur(t)?jl(t[0],t[1]):Xc(t):zl(t)}var Wl=Fl;function ql(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 Yl=ql;function Zl(t){return t!==t}var Xl=Zl;function Kl(t,e,n){var r=n-1,i=t.length;while(++r<i)if(t[r]===e)return r;return-1}var $l=Kl;function Ql(t,e,n){return e===e?$l(t,e,n):Yl(t,Xl,n)}var Jl=Ql;function th(t,e){var n=null==t?0:t.length;return!!n&&Jl(t,e,0)>-1}var eh=th;function nh(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 rh=nh;function ih(){}var oh=ih,ah=1/0,sh=Uo&&1/oc(new Uo([,-0]))[1]==ah?function(t){return new Uo(t)}:oh,uh=sh,ch=200;function lh(t,e,n){var r=-1,i=eh,o=t.length,a=!0,s=[],u=s;if(n)a=!1,i=rh;else if(o>=ch){var c=e?null:uh(t);if(c)return oc(c);a=!1,i=$u,u=new Yu}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 hh=lh;function fh(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}var ph=fh,dh=Au((function(t){var e=ph(t);return Ys(e)&&(e=void 0),hh(Vu(t,1,Ys,!0),Wl(e,2))})),vh=dh;function gh(t){return t&&t.length?hh(t):[]}var mh=gh;function yh(t,e,n){return t===t&&(void 0!==n&&(t=t<=n?t:n),void 0!==e&&(t=t>=e?t:e)),t}var _h=yh;function bh(t,e,n){return void 0===n&&(n=e,e=void 0),void 0!==n&&(n=be(n),n=n===n?n:0),void 0!==e&&(e=be(e),e=e===e?e:0),_h(be(t),e,n)}var Oh=bh;function wh(t){var e=null==t?0:t.length;return e?Vu(t,1):[]}var xh=wh;function Eh(t,e,n,r){var i=-1,o=null==t?0:t.length;while(++i<o){var a=t[i];e(r,a,n(a),t)}return r}var Sh=Eh;function Th(t,e){return t&&Ws(t,e,Wi)}var Mh=Th;function Ch(t,e){return function(n,r){if(null==n)return n;if(!zi(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 Ah=Ch,Ph=Ah(Mh),Lh=Ph;function Dh(t,e,n,r){return Lh(t,(function(t,i,o){e(r,t,n(t),o)})),r}var kh=Dh;function Rh(t,e){return function(n,r){var i=Ur(n)?Sh:kh,o=e?e():{};return i(n,t,Wl(r,2),o)}}var Ih=Rh,Nh=Object.prototype,jh=Nh.hasOwnProperty,Bh=Ih((function(t,e,n){jh.call(t,n)?t[n].push(e):Or(t,n,[e])})),Uh=Bh;function Vh(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),n=n>i?i:n,n<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;var o=Array(i);while(++r<i)o[r]=t[r+e];return o}var Gh=Vh;function Hh(t,e,n){var r=t.length;return n=void 0===n?r:n,!e&&n>=r?t:Gh(t,e,n)}var zh=Hh,Fh="\\ud800-\\udfff",Wh="\\u0300-\\u036f",qh="\\ufe20-\\ufe2f",Yh="\\u20d0-\\u20ff",Zh=Wh+qh+Yh,Xh="\\ufe0e\\ufe0f",Kh="\\u200d",$h=RegExp("["+Kh+Fh+Zh+Xh+"]");function Qh(t){return $h.test(t)}var Jh=Qh;function tf(t){return t.split("")}var ef=tf,nf="\\ud800-\\udfff",rf="\\u0300-\\u036f",of="\\ufe20-\\ufe2f",af="\\u20d0-\\u20ff",sf=rf+of+af,uf="\\ufe0e\\ufe0f",cf="["+nf+"]",lf="["+sf+"]",hf="\\ud83c[\\udffb-\\udfff]",ff="(?:"+lf+"|"+hf+")",pf="[^"+nf+"]",df="(?:\\ud83c[\\udde6-\\uddff]){2}",vf="[\\ud800-\\udbff][\\udc00-\\udfff]",gf="\\u200d",mf=ff+"?",yf="["+uf+"]?",_f="(?:"+gf+"(?:"+[pf,df,vf].join("|")+")"+yf+mf+")*",bf=yf+mf+_f,Of="(?:"+[pf+lf+"?",lf,df,vf,cf].join("|")+")",wf=RegExp(hf+"(?="+hf+")|"+Of+bf,"g");function xf(t){return t.match(wf)||[]}var Ef=xf;function Sf(t){return Jh(t)?Ef(t):ef(t)}var Tf=Sf;function Mf(t){return function(e){e=yl(e);var n=Jh(e)?Tf(e):void 0,r=n?n[0]:e.charAt(0),i=n?zh(n,1).join(""):e.slice(1);return r[t]()+i}}var Cf=Mf,Af=Cf("toUpperCase"),Pf=Af;function Lf(t){return Pf(yl(t).toLowerCase())}var Df=Lf;function kf(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 Rf=kf;function If(t){return function(e){return null==t?void 0:t[e]}}var Nf=If,jf={"À":"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"},Bf=Nf(jf),Uf=Bf,Vf=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Gf="\\u0300-\\u036f",Hf="\\ufe20-\\ufe2f",zf="\\u20d0-\\u20ff",Ff=Gf+Hf+zf,Wf="["+Ff+"]",qf=RegExp(Wf,"g");function Yf(t){return t=yl(t),t&&t.replace(Vf,Uf).replace(qf,"")}var Zf=Yf,Xf=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function Kf(t){return t.match(Xf)||[]}var $f=Kf,Qf=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function Jf(t){return Qf.test(t)}var tp=Jf,ep="\\ud800-\\udfff",np="\\u0300-\\u036f",rp="\\ufe20-\\ufe2f",ip="\\u20d0-\\u20ff",op=np+rp+ip,ap="\\u2700-\\u27bf",sp="a-z\\xdf-\\xf6\\xf8-\\xff",up="\\xac\\xb1\\xd7\\xf7",cp="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",lp="\\u2000-\\u206f",hp=" \\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",fp="A-Z\\xc0-\\xd6\\xd8-\\xde",pp="\\ufe0e\\ufe0f",dp=up+cp+lp+hp,vp="['’]",gp="["+dp+"]",mp="["+op+"]",yp="\\d+",_p="["+ap+"]",bp="["+sp+"]",Op="[^"+ep+dp+yp+ap+sp+fp+"]",wp="\\ud83c[\\udffb-\\udfff]",xp="(?:"+mp+"|"+wp+")",Ep="[^"+ep+"]",Sp="(?:\\ud83c[\\udde6-\\uddff]){2}",Tp="[\\ud800-\\udbff][\\udc00-\\udfff]",Mp="["+fp+"]",Cp="\\u200d",Ap="(?:"+bp+"|"+Op+")",Pp="(?:"+Mp+"|"+Op+")",Lp="(?:"+vp+"(?:d|ll|m|re|s|t|ve))?",Dp="(?:"+vp+"(?:D|LL|M|RE|S|T|VE))?",kp=xp+"?",Rp="["+pp+"]?",Ip="(?:"+Cp+"(?:"+[Ep,Sp,Tp].join("|")+")"+Rp+kp+")*",Np="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",jp="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Bp=Rp+kp+Ip,Up="(?:"+[_p,Sp,Tp].join("|")+")"+Bp,Vp=RegExp([Mp+"?"+bp+"+"+Lp+"(?="+[gp,Mp,"$"].join("|")+")",Pp+"+"+Dp+"(?="+[gp,Mp+Ap,"$"].join("|")+")",Mp+"?"+Ap+"+"+Lp,Mp+"+"+Dp,jp,Np,yp,Up].join("|"),"g");function Gp(t){return t.match(Vp)||[]}var Hp=Gp;function zp(t,e,n){return t=yl(t),e=n?void 0:e,void 0===e?tp(t)?Hp(t):$f(t):t.match(e)||[]}var Fp=zp,Wp="['’]",qp=RegExp(Wp,"g");function Yp(t){return function(e){return Rf(Fp(Zf(e).replace(qp,"")),t,"")}}var Zp=Yp,Xp=Zp((function(t,e,n){return e=e.toLowerCase(),t+(n?Df(e):e)})),Kp=Xp,$p="[object Map]",Qp="[object Set]",Jp=Object.prototype,td=Jp.hasOwnProperty;function ed(t){if(null==t)return!0;if(zi(t)&&(Ur(t)||"string"==typeof t||"function"==typeof t.splice||Object(Vr["a"])(t)||Ti(t)||jr(t)))return!t.length;var e=ta(t);if(e==$p||e==Qp)return!t.size;if(ki(t))return!Gi(t).length;for(var n in t)if(td.call(t,n))return!1;return!0}var nd=ed;function rd(t,e){return jc(t,e)}var id=rd;function od(t,e){var n=-1,r=zi(t)?Array(t.length):[];return Lh(t,(function(t,i,o){r[++n]=e(t,i,o)})),r}var ad=od;function sd(t,e){var n=Ur(t)?hl:ad;return n(t,Wl(e,3))}var ud=sd,cd=1/0;function ld(t,e){return Vu(ud(t,e),cd)}var hd=ld,fd=Zp((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()})),pd=fd;function dd(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 vd=dd;function gd(t,e){var n;return Lh(t,(function(t,r,i){return n=e(t,r,i),!n})),!!n}var md=gd;function yd(t,e,n){var r=Ur(t)?Xu:md;return n&&Lu(t,e,n)&&(e=void 0),r(t,Wl(e,3))}var _d,bd=yd,Od=function(t){let e;while(e=t.sourceEvent)t=e;return t},wd=function(t,e){if(t=Od(t),void 0===e&&(e=t.currentTarget),e){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=t.clientX,r.y=t.clientY,r=r.matrixTransform(e.getScreenCTM().inverse()),[r.x,r.y]}if(e.getBoundingClientRect){var i=e.getBoundingClientRect();return[t.clientX-i.left-e.clientLeft,t.clientY-i.top-e.clientTop]}}return[t.pageX,t.pageY]};(function(t){function e(t,e,n){var r=null;return function(){var i=this,o=arguments;i.mousePosition=wd(o[0],n),clearTimeout(r),r=setTimeout((function(){t.apply(i,o)}),e)}}function n(e,n){var r,i,o=t.clone(e),a=Object.keys(n.axes||{});for(var s in(null===(i=null===(r=n)||void 0===r?void 0:r.toolbar)||void 0===i?void 0:i.controls)&&delete o.toolbar.controls,0===a.length&&delete o.axes,o.axes)if(a.includes(s)){var u=n.axes[s];(u["primary"]||u["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/docs-tutorials--tabular-data-format");var c=u["mapsTo"];if(void 0===c||null===c){var h=u["scaleType"];void 0===h||null===h?u["mapsTo"]="value":h===H.TIME?u["mapsTo"]="date":h===H.LABELS&&(u["mapsTo"]="key")}}else delete o.axes[s];return l(o,n),t.merge(o,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,n){void 0===n&&(n="value");var r=t/e.reduce((function(t,e){return t+e[n]}),0)*100;return r%1!==0?parseFloat(r.toFixed(1)):r}function c(t,e,n){return n>t.length?t:e===V.MID_LINE?t.substr(0,n/2)+"..."+t.substr(-n/2):e===V.FRONT_LINE?"..."+t.substr(-n):e===V.END_LINE?t.substr(0,n)+"...":void 0}function l(e,n){var r=t.getProperty(e,"legend","additionalItems"),i=t.getProperty(n,"legend","additionalItems");if(r&&i){var o=i.map((function(t){return t.type})),a=r.map((function(t){return t.type})),s=Rt.filter((function(t){return a.includes(t.type)&&!o.includes(t.type)}));e.legend.additionalItems=s,n.legend.additionalItems=t.unionBy(s,i,"name")}}function h(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 f(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 p(t){return t.each((function(){this.parentNode.appendChild(this)}))}function d(t,e,n){return n===G.VERTICAL?[t,e]:[e,t]}t.debounce=Se,t.clone=Us,t.merge=Iu,t.unionBy=vh,t.removeArrayDuplicates=mh,t.clamp=Oh,t.flatten=xh,t.groupBy=Uh,t.camelCase=Kp,t.isEmpty=nd,t.isEqual=id,t.flatMapDeep=hd,t.kebabCase=pd,t.fromPairs=vd,t.some=bd,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.updateLegendAdditionalItems=l,t.arrayDifferences=h,t.getDuplicateValues=f,t.moveToFront=p,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===G.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=d,t.compareNumeric=function(t,e){return Number(t)===Number(e)}})(_d||(_d={}));var xd=n("39ba"),Ed=n.n(xd),Sd=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},Td={type:V.END_LINE,threshold:16,numCharacter:14},Md={enabled:!0,position:z.BOTTOM,clickable:!0,truncation:Td,alignment:F.LEFT,order:null,additionalItems:[]},Cd={x:{enabled:!0,numberOfTicks:15,alignWithAxisTicks:!1},y:{enabled:!0,numberOfTicks:5,alignWithAxisTicks:!1}},Ad={enabled:!0},Pd={enabled:!0,showTotal:!0,truncation:Td,groupLabel:"Group"},Ld={top:{visible:!0,includeZero:!0,truncation:Td},bottom:{visible:!0,includeZero:!0,truncation:Td},left:{visible:!0,includeZero:!0,truncation:Td},right:{visible:!0,includeZero:!0,truncation:Td}},Dd={addSpaceOnEdges:1,showDayName:!1,localeObject:Ed.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"}}},kd="undefined"!==typeof document&&(document["fullscreenEnabled"]||document["webkitFullscreenEnabled"]||document["mozFullScreenEnabled"]||document["msFullscreenEnabled"]),Rd={width:null,height:null,resizable:!0,theme:N.WHITE,tooltip:Pd,legend:Md,style:{prefix:"cc"},data:{groupMapsTo:"group",loading:!1,selectedGroups:[]},color:{scale:null,pairing:{numberOfVariants:null,option:1},gradient:{enabled:!1}},toolbar:{enabled:!0,numberOfIcons:3,controls:Sd([{type:ot.SHOW_AS_DATATABLE}],kd?[{type:ot.MAKE_FULLSCREEN}]:[],[{type:ot.EXPORT_CSV},{type:ot.EXPORT_PNG},{type:ot.EXPORT_JPG}])}},Id=_d.merge({},Rd,{axes:Ld,timeScale:Dd,grid:Cd,ruler:Ad,zoomBar:{zoomRatio:.4,minZoomRatio:.01,top:{enabled:!1,type:U.GRAPH_VIEW}}}),Nd=_d.merge({},Id,{bars:{maxWidth:16,spacingFactor:.25},timeScale:_d.merge(Dd,{addSpaceOnEdges:1})}),jd=_d.merge({},Nd,{}),Bd=_d.merge({},Nd,{}),Ud=_d.merge({},Nd,{bars:_d.merge({},Nd.bars,{dividerSize:1.5})}),Vd=_d.merge({},Nd,{}),Gd=_d.merge({},Id,{points:{radius:4,fillOpacity:.3,filled:!0,enabled:!0}}),Hd=Gd,zd=_d.merge({},Gd,{points:{radius:3,filled:!1,enabled:!0}}),Fd=_d.merge({},zd,{timeScale:_d.merge(Dd,{addSpaceOnEdges:0})}),Wd=Fd,qd=_d.merge({},Id,{bubble:{radiusMapsTo:"radius",radiusLabel:"Radius",radiusRange:function(t,e){var n=Math.min(t.width,t.height);return[3*n/400,25*n/400]},fillOpacity:.2,enabled:!0},points:{filled:!0},legend:{additionalItems:[{type:st.RADIUS,name:"Radius"}]}}),Yd=_d.merge({},Id,{bullet:{performanceAreaTitles:["Poor","Satisfactory","Great"]},grid:{x:{enabled:!1},y:{enabled:!1}},legend:{additionalItems:[{type:st.AREA,name:"Poor area"},{type:st.AREA,name:"Satisfactory area"},{type:st.AREA,name:"Great area"},{type:st.QUARTILE,name:"Quartiles"}]}}),Zd=_d.merge({},Nd,{bars:{dividerSize:1.5},timeScale:_d.merge(Dd,{addSpaceOnEdges:0})}),Xd=_d.merge({},Rd,{tooltip:_d.merge({},Pd,{wordLabel:"Word",valueLabel:"Value"}),wordCloud:{fontSizeMapsTo:"value",fontSizeRange:function(t,e){var n=Math.min(t.width,t.height);return[20*n/400,75*n/400]},wordMapsTo:"word"}}),Kd=_d.merge({},Rd,{pie:{labels:{formatter:null,enabled:!0},alignment:F.LEFT,sortFunction:null,valueMapsTo:"value"}}),$d=_d.merge({},Rd,{legend:{enabled:!1},gauge:{type:tt.SEMI,arcWidth:16,deltaArrow:{size:function(t){return t/8},enabled:!0},showPercentageSymbol:!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:F.LEFT}}),Qd=_d.merge({},Kd,{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:F.LEFT}}),Jd=_d.merge({},Rd,{legend:{enabled:!1,clickable:!1},meter:{showLabels:!0,proportional:null,statusBar:{percentageIndicator:{enabled:!0}}}}),tv=_d.merge({},Jd,{legend:{enabled:!0}}),ev=_d.merge({},Rd,{radar:{axes:{angle:"key",value:"value"},alignment:F.LEFT},tooltip:{gridline:{enabled:!0},valueFormatter:function(t){return null!==t&&void 0!==t?t:"N/A"}}}),nv=_d.merge({},Nd,{comboChartTypes:[]}),rv=_d.merge({tree:{type:q.TREE}},Rd,{}),iv=_d.merge({},Rd,{data:_d.merge(Rd.data,{groupMapsTo:"name"})}),ov=_d.merge({},Rd,yt,{data:_d.merge(Rd.data,{groupMapsTo:"name"})}),av=_d.merge({},Rd,{alluvial:{data:_d.merge(Rd.data,{groupMapsTo:"source"}),nodeAlignment:F.CENTER,nodePadding:24,monochrome:!1,nodes:[]}}),sv=_d.merge({},Rd,{axes:Ld,heatmap:{divider:{state:ct.AUTO},colorLegend:{type:"linear"}}}),uv={chart:Rd,axisChart:Id,simpleBarChart:jd,groupedBarChart:Bd,stackedBarChart:Ud,boxplotChart:Vd,bubbleChart:qd,bulletChart:Yd,histogramChart:Zd,lineChart:zd,areaChart:Fd,stackedAreaChart:Wd,scatterChart:Gd,lollipopChart:Hd,pieChart:Kd,donutChart:Qd,meterChart:Jd,proportionalMeterChart:tv,radarChart:ev,gaugeChart:$d,comboChart:nv,treeChart:rv,treemapChart:iv,circlePackChart:ov,wordCloudChart:Xd,alluvialChart:av,heatmapChart:sv};class cv extends Map{constructor(t,e=pv){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(const[n,r]of t)this.set(n,r)}get(t){return super.get(lv(this,t))}has(t){return super.has(lv(this,t))}set(t,e){return super.set(hv(this,t),e)}delete(t){return super.delete(fv(this,t))}}Set;function lv({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):n}function hv({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):(t.set(r,n),n)}function fv({_intern:t,_key:e},n){const r=e(n);return t.has(r)&&(n=t.get(n),t.delete(r)),n}function pv(t){return null!==t&&"object"===typeof t?t.valueOf():t}function dv(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}const vv=Symbol("implicit");function gv(){var t=new cv,e=[],n=[],r=vv;function i(i){let o=t.get(i);if(void 0===o){if(r!==vv)return r;t.set(i,o=e.push(i)-1)}return n[o%n.length]}return i.domain=function(n){if(!arguments.length)return e.slice();e=[],t=new cv;for(const r of n)t.has(r)||t.set(r,e.push(r)-1);return i},i.range=function(t){return arguments.length?(n=Array.from(t),i):n.slice()},i.unknown=function(t){return arguments.length?(r=t,i):r},i.copy=function(){return gv(e,n).unknown(r)},dv.apply(i,arguments),i}var mv=Array.prototype.slice,yv=function(t){return"object"===typeof t&&"length"in t?t:Array.from(t)},_v=function(t){return function(){return t}},bv=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]},Ov=function(t){var e=t.length,n=new Array(e);while(--e>=0)n[e]=e;return n};function wv(t,e){return t[e]}function xv(t){const e=[];return e.key=t,e}var Ev=function(){var t=_v([]),e=Ov,n=bv,r=wv;function i(i){var o,a,s=Array.from(t.apply(this,arguments),xv),u=s.length,c=-1;for(const t of i)for(o=0,++c;o<u;++o)(s[o][c]=[0,+r(t,s[o].key,c,i)]).data=t;for(o=0,a=yv(e(s));o<u;++o)s[a[o]].index=o;return n(s,a),s}return i.keys=function(e){return arguments.length?(t="function"===typeof e?e:_v(Array.from(e)),i):t},i.value=function(t){return arguments.length?(r="function"===typeof t?t:_v(+t),i):r},i.order=function(t){return arguments.length?(e=null==t?Ov:"function"===typeof t?t:_v(Array.from(t)),i):e},i.offset=function(t){return arguments.length?(n=null==t?bv:t,i):n},i},Sv=function(t,e){if((s=t.length)>0)for(var n,r,i,o,a,s,u=0,c=t[e[0]].length;u<c;++u)for(o=a=0,n=0;n<s;++n)(i=(r=t[e[n]][u])[1]-r[0])>0?(r[0]=o,r[1]=o+=i):i<0?(r[1]=a,r[0]=a+=i):(r[0]=0,r[1]=i)},Tv=Array.prototype,Mv=Tv.slice,Cv=(Tv.map,function(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}),Av=function(t){let e=t,n=t;function r(t,e,r,i){null==r&&(r=0),null==i&&(i=t.length);while(r<i){const o=r+i>>>1;n(t[o],e)<0?r=o+1:i=o}return r}function i(t,e,r,i){null==r&&(r=0),null==i&&(i=t.length);while(r<i){const o=r+i>>>1;n(t[o],e)>0?i=o:r=o+1}return r}function o(t,n,i,o){null==i&&(i=0),null==o&&(o=t.length);const a=r(t,n,i,o-1);return a>i&&e(t[a-1],n)>-e(t[a],n)?a-1:a}return 1===t.length&&(e=(e,n)=>t(e)-n,n=Pv(t)),{left:r,center:o,right:i}};function Pv(t){return(e,n)=>Cv(t(e),n)}var Lv=function(t){return null===t?NaN:+t};function*Dv(t,e){if(void 0===e)for(let n of t)null!=n&&(n=+n)>=n&&(yield n);else{let n=-1;for(let r of t)null!=(r=e(r,++n,t))&&(r=+r)>=r&&(yield r)}}const kv=Av(Cv),Rv=kv.right;kv.left,Av(Lv).center;var Iv=Rv,Nv=function(t){return function(){return t}},jv=function(t,e){let n,r;if(void 0===e)for(const i of t)null!=i&&(void 0===n?i>=i&&(n=r=i):(n>i&&(n=i),r<i&&(r=i)));else{let i=-1;for(let o of t)null!=(o=e(o,++i,t))&&(void 0===n?o>=o&&(n=r=o):(n>o&&(n=o),r<o&&(r=o)))}return[n,r]},Bv=function(t){return t},Uv=Math.sqrt(50),Vv=Math.sqrt(10),Gv=Math.sqrt(2),Hv=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=zv(t,e,n))||!isFinite(a))return[];if(a>0){let n=Math.round(t/a),r=Math.round(e/a);n*a<t&&++n,r*a>e&&--r,o=new Array(i=r-n+1);while(++s<i)o[s]=(n+s)*a}else{a=-a;let n=Math.round(t*a),r=Math.round(e*a);n/a<t&&++n,r/a>e&&--r,o=new Array(i=r-n+1);while(++s<i)o[s]=(n+s)/a}return r&&o.reverse(),o};function zv(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>=Uv?10:o>=Vv?5:o>=Gv?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=Uv?10:o>=Vv?5:o>=Gv?2:1)}function Fv(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>=Uv?i*=10:o>=Vv?i*=5:o>=Gv&&(i*=2),e<t?-i:i}function Wv(t,e,n){let r;while(1){const i=zv(t,e,n);if(i===r||0===i||!isFinite(i))return[t,e];i>0?(t=Math.floor(t/i)*i,e=Math.ceil(e/i)*i):i<0&&(t=Math.ceil(t*i)/i,e=Math.floor(e*i)/i),r=i}}function qv(t,e){let n=0;if(void 0===e)for(let r of t)null!=r&&(r=+r)>=r&&++n;else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(i=+i)>=i&&++n}return n}var Yv=function(t){return Math.ceil(Math.log(qv(t))/Math.LN2)+1},Zv=function(){var t=Bv,e=jv,n=Yv;function r(r){Array.isArray(r)||(r=Array.from(r));var i,o,a=r.length,s=new Array(a);for(i=0;i<a;++i)s[i]=t(r[i],i,r);var u=e(s),c=u[0],l=u[1],h=n(s,c,l);if(!Array.isArray(h)){const t=l,n=+h;if(e===jv&&([c,l]=Wv(c,l,n)),h=Hv(c,l,n),h[h.length-1]>=l)if(t>=l&&e===jv){const t=zv(c,l,n);isFinite(t)&&(t>0?l=(Math.floor(l/t)+1)*t:t<0&&(l=(Math.ceil(l*-t)+1)/-t))}else h.pop()}var f=h.length;while(h[0]<=c)h.shift(),--f;while(h[f-1]>l)h.pop(),--f;var p,d=new Array(f+1);for(i=0;i<=f;++i)p=d[i]=[],p.x0=i>0?h[i-1]:c,p.x1=i<f?h[i]:l;for(i=0;i<a;++i)o=s[i],null!=o&&c<=o&&o<=l&&d[Iv(h,o,0,f)].push(r[i]);return d}return r.value=function(e){return arguments.length?(t="function"===typeof e?e:Nv(e),r):t},r.domain=function(t){return arguments.length?(e="function"===typeof t?t:Nv([t[0],t[1]]),r):e},r.thresholds=function(t){return arguments.length?(n="function"===typeof t?t:Array.isArray(t)?Nv(Mv.call(t)):Nv(t),r):n},r};function Xv(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 Kv(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=Xv(t);return!isNaN(e)}var $v={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 Qv(t,e,n){var r;return n=n||{},r="string"===typeof $v[t]?$v[t]:1===e?$v[t].one:$v[t].other.replace("{{count}}",e),n.addSuffix?n.comparison>0?"in "+r:r+" ago":r}function Jv(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 tg={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},eg={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},ng={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},rg={date:Jv({formats:tg,defaultWidth:"full"}),time:Jv({formats:eg,defaultWidth:"full"}),dateTime:Jv({formats:ng,defaultWidth:"full"})},ig=rg,og={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function ag(t,e,n,r){return og[t]}function sg(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 ug={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},cg={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},lg={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"]},hg={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"]},fg={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"}},pg={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 dg(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 vg={ordinalNumber:dg,era:sg({values:ug,defaultWidth:"wide"}),quarter:sg({values:cg,defaultWidth:"wide",argumentCallback:function(t){return Number(t)-1}}),month:sg({values:lg,defaultWidth:"wide"}),day:sg({values:hg,defaultWidth:"wide"}),dayPeriod:sg({values:fg,defaultWidth:"wide",formattingValues:pg,defaultFormattingWidth:"wide"})},gg=vg;function mg(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 yg(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)?bg(l,(function(t){return t.test(r)})):_g(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 _g(t,e){for(var n in t)if(t.hasOwnProperty(n)&&e(t[n]))return n}function bg(t,e){for(var n=0;n<t.length;n++)if(e(t[n]))return n}var Og=/^(\d+)(th|st|nd|rd)?/i,wg=/\d+/i,xg={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},Eg={any:[/^b/i,/^(a|c)/i]},Sg={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Tg={any:[/1/i,/2/i,/3/i,/4/i]},Mg={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},Cg={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]},Ag={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},Pg={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]},Lg={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},Dg={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}},kg={ordinalNumber:mg({matchPattern:Og,parsePattern:wg,valueCallback:function(t){return parseInt(t,10)}}),era:yg({matchPatterns:xg,defaultMatchWidth:"wide",parsePatterns:Eg,defaultParseWidth:"any"}),quarter:yg({matchPatterns:Sg,defaultMatchWidth:"wide",parsePatterns:Tg,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:yg({matchPatterns:Mg,defaultMatchWidth:"wide",parsePatterns:Cg,defaultParseWidth:"any"}),day:yg({matchPatterns:Ag,defaultMatchWidth:"wide",parsePatterns:Pg,defaultParseWidth:"any"}),dayPeriod:yg({matchPatterns:Lg,defaultMatchWidth:"any",parsePatterns:Dg,defaultParseWidth:"any"})},Rg=kg,Ig={code:"en-US",formatDistance:Qv,formatLong:ig,formatRelative:ag,localize:gg,match:Rg,options:{weekStartsOn:0,firstWeekContainsDate:1}},Ng=Ig;function jg(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 Bg(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Xv(t).getTime(),r=jg(e);return new Date(n+r)}function Ug(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=jg(e);return Bg(t,-n)}function Vg(t,e){var n=t<0?"-":"",r=Math.abs(t).toString();while(r.length<e)r="0"+r;return n+r}var Gg={y:function(t,e){var n=t.getUTCFullYear(),r=n>0?n:1-n;return Vg("yy"===e?r%100:r,e.length)},M:function(t,e){var n=t.getUTCMonth();return"M"===e?String(n+1):Vg(n+1,2)},d:function(t,e){return Vg(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 Vg(t.getUTCHours()%12||12,e.length)},H:function(t,e){return Vg(t.getUTCHours(),e.length)},m:function(t,e){return Vg(t.getUTCMinutes(),e.length)},s:function(t,e){return Vg(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 Vg(i,e.length)}},Hg=Gg,zg=864e5;function Fg(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=Xv(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/zg)+1}function Wg(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=1,n=Xv(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 qg(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=Xv(t),n=e.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var i=Wg(r),o=new Date(0);o.setUTCFullYear(n,0,4),o.setUTCHours(0,0,0,0);var a=Wg(o);return e.getTime()>=i.getTime()?n+1:e.getTime()>=a.getTime()?n:n-1}function Yg(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=qg(t),n=new Date(0);n.setUTCFullYear(e,0,4),n.setUTCHours(0,0,0,0);var r=Wg(n);return r}var Zg=6048e5;function Xg(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=Xv(t),n=Wg(e).getTime()-Yg(e).getTime();return Math.round(n/Zg)+1}function Kg(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:jg(i),a=null==n.weekStartsOn?o:jg(n.weekStartsOn);if(!(a>=0&&a<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var s=Xv(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 $g(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=Xv(t,e),r=n.getUTCFullYear(),i=e||{},o=i.locale,a=o&&o.options&&o.options.firstWeekContainsDate,s=null==a?1:jg(a),u=null==i.firstWeekContainsDate?s:jg(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=Kg(c,e),h=new Date(0);h.setUTCFullYear(r,0,u),h.setUTCHours(0,0,0,0);var f=Kg(h,e);return n.getTime()>=l.getTime()?r+1:n.getTime()>=f.getTime()?r:r-1}function Qg(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:jg(i),a=null==n.firstWeekContainsDate?o:jg(n.firstWeekContainsDate),s=$g(t,e),u=new Date(0);u.setUTCFullYear(s,0,a),u.setUTCHours(0,0,0,0);var c=Kg(u,e);return c}var Jg=6048e5;function tm(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=Xv(t),r=Kg(n,e).getTime()-Qg(n,e).getTime();return Math.round(r/Jg)+1}var em={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},nm={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 Hg.y(t,e)},Y:function(t,e,n,r){var i=$g(t,r),o=i>0?i:1-i;if("YY"===e){var a=o%100;return Vg(a,2)}return"Yo"===e?n.ordinalNumber(o,{unit:"year"}):Vg(o,e.length)},R:function(t,e){var n=qg(t);return Vg(n,e.length)},u:function(t,e){var n=t.getUTCFullYear();return Vg(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 Vg(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 Vg(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 Hg.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 Vg(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=tm(t,r);return"wo"===e?n.ordinalNumber(i,{unit:"week"}):Vg(i,e.length)},I:function(t,e,n){var r=Xg(t);return"Io"===e?n.ordinalNumber(r,{unit:"week"}):Vg(r,e.length)},d:function(t,e,n){return"do"===e?n.ordinalNumber(t.getUTCDate(),{unit:"date"}):Hg.d(t,e)},D:function(t,e,n){var r=Fg(t);return"Do"===e?n.ordinalNumber(r,{unit:"dayOfYear"}):Vg(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 Vg(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 Vg(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 Vg(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?em.noon:0===i?em.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?em.evening:i>=12?em.afternoon:i>=4?em.morning:em.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 Hg.h(t,e)},H:function(t,e,n){return"Ho"===e?n.ordinalNumber(t.getUTCHours(),{unit:"hour"}):Hg.H(t,e)},K:function(t,e,n){var r=t.getUTCHours()%12;return"Ko"===e?n.ordinalNumber(r,{unit:"hour"}):Vg(r,e.length)},k:function(t,e,n){var r=t.getUTCHours();return 0===r&&(r=24),"ko"===e?n.ordinalNumber(r,{unit:"hour"}):Vg(r,e.length)},m:function(t,e,n){return"mo"===e?n.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):Hg.m(t,e)},s:function(t,e,n){return"so"===e?n.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):Hg.s(t,e)},S:function(t,e){return Hg.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 im(o);case"XXXX":case"XX":return om(o);case"XXXXX":case"XXX":default:return om(o,":")}},x:function(t,e,n,r){var i=r._originalDate||t,o=i.getTimezoneOffset();switch(e){case"x":return im(o);case"xxxx":case"xx":return om(o);case"xxxxx":case"xxx":default:return om(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"+rm(o,":");case"OOOO":default:return"GMT"+om(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"+rm(o,":");case"zzzz":default:return"GMT"+om(o,":")}},t:function(t,e,n,r){var i=r._originalDate||t,o=Math.floor(i.getTime()/1e3);return Vg(o,e.length)},T:function(t,e,n,r){var i=r._originalDate||t,o=i.getTime();return Vg(o,e.length)}};function rm(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+Vg(o,2)}function im(t,e){if(t%60===0){var n=t>0?"-":"+";return n+Vg(Math.abs(t)/60,2)}return om(t,e)}function om(t,e){var n=e||"",r=t>0?"-":"+",i=Math.abs(t),o=Vg(Math.floor(i/60),2),a=Vg(i%60,2);return r+o+n+a}var am=nm;function sm(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 um(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 cm(t,e){var n,r=t.match(/(P+)(p+)?/),i=r[1],o=r[2];if(!o)return sm(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}}",sm(i,e)).replace("{{time}}",um(o,e))}var lm={p:um,P:cm},hm=lm,fm=6e4;function pm(t){var e=new Date(t.getTime()),n=Math.ceil(e.getTimezoneOffset());e.setSeconds(0,0);var r=e.getTime()%fm;return n*fm+r}var dm=["D","DD"],vm=["YY","YYYY"];function gm(t){return-1!==dm.indexOf(t)}function mm(t){return-1!==vm.indexOf(t)}function ym(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 _m=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,bm=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Om=/^'([^]*?)'?$/,wm=/''/g,xm=/[a-zA-Z]/;function Em(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||Ng,a=o.options&&o.options.firstWeekContainsDate,s=null==a?1:jg(a),u=null==i.firstWeekContainsDate?s:jg(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:jg(c),h=null==i.weekStartsOn?l:jg(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=Xv(t);if(!Kv(f))throw new RangeError("Invalid time value");var p=pm(f),d=Ug(f,p),v={firstWeekContainsDate:u,weekStartsOn:h,locale:o,_originalDate:f},g=r.match(bm).map((function(t){var e=t[0];if("p"===e||"P"===e){var n=hm[e];return n(t,o.formatLong,v)}return t})).join("").match(_m).map((function(t){if("''"===t)return"'";var e=t[0];if("'"===e)return Sm(t);var n=am[e];if(n)return!i.useAdditionalWeekYearTokens&&mm(t)&&ym(t),!i.useAdditionalDayOfYearTokens&&gm(t)&&ym(t),n(d,t,o.localize,v);if(e.match(xm))throw new RangeError("Format string contains an unescaped latin alphabet character `"+e+"`");return t})).join("");return g}function Sm(t){return t.match(Om)[1].replace(wm,"'")}function Tm(t,e){let n;if(void 0===e)for(const r of t)null!=r&&(n>r||void 0===n&&r>=r)&&(n=r);else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(n>i||void 0===n&&i>=i)&&(n=i)}return n}var Mm=[["15seconds",15e3],["minute",6e4],["30minutes",18e5],["hourly",36e5],["daily",864e5],["monthly",2592e6],["quarterly",7776e6],["yearly",31104e6]];function Cm(t,e,n,r,i){var o=0===e,a=2===Number(Em(new Date(t),"c")),s=1===Number(Em(new Date(t),"q")),u=0!==e?n[e-1]:null;switch(r){case"15seconds":return o||Rm(t)||Im(t,u)||Nm(t);case"minute":return o||Rm(t)||Im(t,u)||Nm(t);case"30minutes":return o||Rm(t)||Im(t,u)||Nm(t);case"hourly":return o||Rm(t)||Im(t,u)||Nm(t);case"daily":return i?o||a||Nm(t):o||Im(t,u)||Nm(t);case"monthly":return o||Nm(t);case"quarterly":return o||s;case"yearly":return!1;default:throw new Error(r+" is not a valid time interval.")}}function Am(t,e,n,r,i){var o=i.showDayName,a="daily"===r&&o?"weekly":r,s=new Date(t),u=_d.getProperty(i,"timeIntervalFormats")[a],c=_d.getProperty(u,"primary"),l=_d.getProperty(u,"secondary"),h=Cm(t,e,n,r,o)?c:l;"15seconds"===r&&0!==s.getMilliseconds()&&(h=h.replace("pp","h:mm:ss.SSS a"));var f=i.localeObject;return Em(s,h,{locale:f})}function Pm(t){var e=new Date(t);return{M:e.getMonth()+1,d:e.getDate(),H:e.getHours(),m:e.getMinutes(),s:e.getSeconds()}}function Lm(t){if(t)return t.slice(1).map((function(e,n){return e-t[n]}))}function Dm(t){var e=Mm.reduce((function(e,n,r){n[0];var i=n[1],o=Mm[e][1],a=Math.abs(o-t),s=Math.abs(i-t);return a<s?e:r}),0);return Mm[e][0]}function km(t){if(1===t.length)return"15seconds";var e=Lm(t),n=Tm(e);return Dm(n)}function Rm(t){var e=Pm(t),n=e.s,r=e.m,i=e.H;return 0===i&&0===r&&0===n}function Im(t,e){var n=Pm(t).M,r=Pm(e).M;return n!==r}function Nm(t){var e=Pm(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}function jm(t){return void 0===t?"":t.toISOString()}var Bm=function(){return Bm=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},Bm.apply(this,arguments)},Um=function(){function t(t){this.state={options:{}},this.colorScale={},this.colorClassNames={},this.services=t}return t.prototype.getAllDataFromDomain=function(t){if(!this.getData())return null;var e=this.getOptions(),n=this.getData(),r=this.getDataGroups(),i=_d.getProperty(e,"data").groupMapsTo,o=_d.getProperty(e,"axes");return t&&(n=n.filter((function(e){return t.includes(e[i])}))),o&&Object.keys(o).forEach((function(t){var e=o[t].mapsTo,r=o[t].scaleType;if(r!==H.LINEAR&&r!==H.LOG||(n=n.map((function(t){var n;return Bm(Bm({},t),(n={},n[e]=null===t[e]?t[e]:Number(t[e]),n))}))),e&&o[t].domain)if(r===H.LABELS)n=n.filter((function(n){return o[t].domain.includes(n[e])}));else{var i=o[t].domain,a=i[0],s=i[1];n=n.filter((function(t){return!(e in t)||t[e]>=a&&t[e]<=s}))}})),n.filter((function(t){return r.find((function(e){return e.name===t[i]}))}))},t.prototype.getDisplayData=function(t){if(!this.get("data"))return null;var e=wt.items.status.ACTIVE,n=this.getDataGroups(t),r=this.getOptions().data.groupMapsTo,i=this.getAllDataFromDomain(t);return i.filter((function(t){return n.find((function(n){return n.name===t[r]&&n.status===e}))}))},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(_d.clone(t)),n=this.generateDataGroups(e);return this.set({data:e,dataGroups:n}),e},t.prototype.getDataGroups=function(t){var e=_d.getProperty(this.getOptions(),"data","loading");return e?[]:t?this.get("dataGroups").filter((function(e){return t.includes(e.name)})):this.get("dataGroups")},t.prototype.getActiveDataGroups=function(t){var e=wt.items.status.ACTIVE;return this.getDataGroups(t).filter((function(t){return t.status===e}))},t.prototype.getDataGroupNames=function(t){var e=this.getDataGroups(t);return e.map((function(t){return t.name}))},t.prototype.getActiveDataGroupNames=function(t){var e=this.getActiveDataGroups(t);return e.map((function(t){return t.name}))},t.prototype.aggregateBinDataByGroup=function(t){return _d.groupBy(t,"group")},t.prototype.getBinConfigurations=function(){var t=this,e=this.getDisplayData(),n=this.getOptions(),r=this.services.cartesianScales.getMainXAxisPosition(),i=this.services.cartesianScales.getDomainIdentifier(),o=n.axes[r],a=n.data.groupMapsTo,s=o.bins,u=void 0===s?Ot.defaultBins:s,c=Array.isArray(u),l=Zv().value((function(t){return t[i]})).thresholds(u)(e);if(c)l[l.length-1].x1=u[u.length-1];else{var h=l[0].x1-l[0].x0;l[l.length-1].x1=+l[l.length-1].x0+h}var f=c?[u[0],u[u.length-1]]:[l[0].x0,l[l.length-1].x1],p=Array.from(new Set(e.map((function(t){return t[a]})))),d=[];return l.forEach((function(e){var n=e.x0+"-"+e.x1,r=t.aggregateBinDataByGroup(e);p.forEach((function(t){d.push({group:t,key:n,value:r[t]||0,bin:e.x0})}))})),{bins:l,binsDomain:f}},t.prototype.getBinnedStackedData=function(){var t=this.getOptions(),e=t.data.groupMapsTo,n=this.getActiveDataGroupNames(),r=this.getBinConfigurations().bins,i=this.getDataValuesGroupedByKeys({bins:r});return Ev().keys(n)(i).map((function(t,r){return Object.keys(t).filter((function(t){return!isNaN(t)})).map((function(i){var o=t[i];return o[e]=n[r],o}))}))},t.prototype.getGroupedData=function(t){var e=this.getDisplayData(t),n={},r=this.getOptions().data.groupMapsTo;return e.map((function(t){var e=t[r];null!==n[e]&&void 0!==n[e]?n[e].push(t):n[e]=[t]})),Object.keys(n).map((function(t){return{name:t,data:n[t]}}))},t.prototype.getStackKeys=function(t){var e,n=this,r=void 0===t?{bins:null,groups:null}:t,i=r.bins,o=void 0===i?null:i,a=r.groups,s=void 0===a?null:a,u=this.getOptions(),c=this.getDisplayData(s);e=o?o.map((function(t){return t.x0+"-"+t.x1})):_d.removeArrayDuplicates(c.map((function(t){var e=n.services.cartesianScales.getDomainIdentifier(t);return t[e]instanceof Date?jm(t[e]):t[e]&&"function"===typeof t[e].toString?t[e].toString():t[e]})));var l=this.services.cartesianScales.domainAxisPosition,h=u.axes[l].scaleType;return h===H.TIME?e.sort((function(t,e){var n=new Date(t),r=new Date(e);return n-r})):h!==H.LOG&&h!==H.LINEAR||e.sort((function(t,e){return t-e})),e},t.prototype.getDataValuesGroupedByKeys=function(t){var e=this,n=t.bins,r=void 0===n?null:n,i=t.groups,o=void 0===i?null:i,a=this.getOptions(),s=a.data.groupMapsTo,u=this.getDisplayData(o),c=this.getDataGroupNames(),l=this.getStackKeys({bins:r,groups:o});return r?l.map((function(t){var e=t.split("-"),n=e[0],i=e[1],o={x0:n,x1:i},a=r.find((function(t){return t.x0.toString()===n.toString()}));return c.forEach((function(t){o[t]=a.filter((function(e){return e[s]===t})).length})),o})):l.map((function(t){var n={sharedStackKey:t};return c.forEach((function(r){var i=u.find((function(n){var i=e.services.cartesianScales.getDomainIdentifier(n);return n[s]===r&&n.hasOwnProperty(i)&&(n[i]instanceof Date?jm(n[i])===t:n[i].toString()===t)})),o=e.services.cartesianScales.getRangeIdentifier(n);n[r]=i?i[o]:null})),n}))},t.prototype.getStackedData=function(t){var e=t.percentage,n=void 0!==e&&e,r=t.groups,i=void 0===r?null:r,o=t.divergent,a=void 0!==o&&o,s=this.getOptions(),u=s.data.groupMapsTo,c=this.getActiveDataGroupNames(i),l=this.getDataValuesGroupedByKeys({groups:i});if(n){var h=_d.fromPairs(l.map((function(t){return[t.sharedStackKey,0]})));l.forEach((function(t){c.forEach((function(e){h[t.sharedStackKey]+=t[e]}))})),l.forEach((function(t){c.forEach((function(e){h[t.sharedStackKey]?t[e]=t[e]/h[t.sharedStackKey]*100:t[e]=0}))}))}var f=a?Ev().offset(Sv):Ev();return f.keys(c)(l).map((function(t,e){return Object.keys(t).filter((function(t){return!isNaN(t)})).map((function(n){var r=t[n];return r[u]=c[e],r}))}))},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){var e=this.getOptions();_d.updateLegendAdditionalItems(e,t),this.set({options:_d.merge(e,t)})},t.prototype.update=function(t){void 0===t&&(t=!0),this.getDisplayData()&&(this.updateAllDataGroups(),this.setCustomColorScale(),this.setColorClassNames(),this.services.events.dispatchEvent(ft.Model.UPDATE,{animate:t}))},t.prototype.toggleDataLabel=function(t){var e=wt.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(ft.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){var r=this.getOptions(),i=_d.getProperty(this.colorScale,t);return r.getFillColor?r.getFillColor(t,e,n,i):i},t.prototype.getStrokeColor=function(t,e,n){var r=this.getOptions(),i=_d.getProperty(this.colorScale,t);return r.getStrokeColor?r.getStrokeColor(t,e,n,i):i},t.prototype.isUserProvidedColorScaleValid=function(){var t=_d.getProperty(this.getOptions(),"color","scale"),e=this.getDataGroups();return null!=t&&0!=Object.keys(t).length&&e.some((function(e){return Object.keys(t).includes(e.name)}))},t.prototype.getColorClassName=function(t){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/docs-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=_d.getProperty(t,"label");if(null===a){var s=_d.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.getTabularDataArray=function(){return[]},t.prototype.exportToCSV=function(){var t=this.getTabularDataArray().map((function(t){return t.map((function(t){return'"'+t+'"'}))})),e="",n="";t.forEach((function(r,i){n=r.join(","),e+=i<t.length?n+"\n":n})),this.services.files.downloadCSV(e,"myChart.csv")},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=wt.items.status,r=n.ACTIVE,i=n.DISABLED,o=this.getOptions(),a=_d.removeArrayDuplicates(t.map((function(t){return t[e]})));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(){var t=this;if(this.isUserProvidedColorScaleValid()){var e=this.getOptions(),n=_d.getProperty(e,"color","scale");Object.keys(n).forEach((function(e){t.allDataGroups.includes(e)||console.warn('"'+e+'" does not exist in data groups.')}));var r=this.allDataGroups.filter((function(t){return n[t]}));r.forEach((function(e){return t.colorScale[e]=n[e]}))}},t.prototype.setColorClassNames=function(){var t=_d.getProperty(this.getOptions(),"color","pairing"),e=_d.getProperty(t,"numberOfVariants");(!e||e<this.allDataGroups.length)&&(e=this.allDataGroups.length);var n=_d.getProperty(t,"option"),r=_t.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.colorClassNames=gv().range(o).domain(this.allDataGroups)},t}(),Vm=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 Gm(){}var Hm=function(t){return null==t?Gm:function(){return this.querySelector(t)}},zm=function(t){"function"!==typeof t&&(t=Hm(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 j_(r,this._parents)};function Fm(t){return null==t?[]:Array.isArray(t)?t:Array.from(t)}function Wm(){return[]}var qm=function(t){return null==t?Wm:function(){return this.querySelectorAll(t)}};function Ym(t){return function(){return Fm(t.apply(this,arguments))}}var Zm=function(t){t="function"===typeof t?Ym(t):qm(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 j_(r,i)},Xm=function(t){return function(){return this.matches(t)}};function Km(t){return function(e){return e.matches(t)}}var $m=Array.prototype.find;function Qm(t){return function(){return $m.call(this.children,t)}}function Jm(){return this.firstElementChild}var ty=function(t){return this.select(null==t?Jm:Qm("function"===typeof t?t:Km(t)))},ey=Array.prototype.filter;function ny(){return Array.from(this.children)}function ry(t){return function(){return ey.call(this.children,t)}}var iy=function(t){return this.selectAll(null==t?ny:ry("function"===typeof t?t:Km(t)))},oy=function(t){"function"!==typeof t&&(t=Xm(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 j_(r,this._parents)},ay=function(t){return new Array(t.length)},sy=function(){return new j_(this._enter||this._groups.map(ay),this._parents)};function uy(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}uy.prototype={constructor:uy,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 cy=function(t){return function(){return t}};function ly(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 uy(t,o[s]);for(;s<u;++s)(a=e[s])&&(i[s]=a)}function hy(t,e,n,r,i,o,a){var s,u,c,l=new Map,h=e.length,f=o.length,p=new Array(h);for(s=0;s<h;++s)(u=e[s])&&(p[s]=c=a.call(u,u.__data__,s,e)+"",l.has(c)?i[s]=u:l.set(c,u));for(s=0;s<f;++s)c=a.call(t,o[s],s,o)+"",(u=l.get(c))?(r[s]=u,u.__data__=o[s],l.delete(c)):n[s]=new uy(t,o[s]);for(s=0;s<h;++s)(u=e[s])&&l.get(p[s])===u&&(i[s]=u)}function fy(t){return t.__data__}var py=function(t,e){if(!arguments.length)return Array.from(this,fy);var n=e?hy:ly,r=this._parents,i=this._groups;"function"!==typeof t&&(t=cy(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=dy(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,O=0;b<d;++b)if(y=v[b]){b>=O&&(O=b+1);while(!(_=g[O])&&++O<d);y._next=_||null}}return a=new j_(a,r),a._enter=s,a._exit=u,a};function dy(t){return"object"===typeof t&&"length"in t?t:Array.from(t)}var vy=function(){return new j_(this._exit||this._groups.map(ay),this._parents)},gy=function(t,e,n){var r=this.enter(),i=this,o=this.exit();return"function"===typeof t?(r=t(r),r&&(r=r.selection())):r=r.append(t+""),null!=e&&(i=e(i),i&&(i=i.selection())),null==n?o.remove():n(o),r&&i?r.merge(i).order():i},my=function(t){for(var e=t.selection?t.selection():t,n=this._groups,r=e._groups,i=n.length,o=r.length,a=Math.min(i,o),s=new Array(i),u=0;u<a;++u)for(var c,l=n[u],h=r[u],f=l.length,p=s[u]=new Array(f),d=0;d<f;++d)(c=l[d]||h[d])&&(p[d]=c);for(;u<i;++u)s[u]=n[u];return new j_(s,this._parents)},yy=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},_y=function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=by);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 j_(i,this._parents).order()};function by(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}var Oy=function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},wy=function(){return Array.from(this)},xy=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},Ey=function(){let t=0;for(const e of this)++t;return t},Sy=function(){return!this.node()},Ty=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},My="http://www.w3.org/1999/xhtml",Cy={svg:"http://www.w3.org/2000/svg",xhtml:My,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},Ay=function(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),Cy.hasOwnProperty(e)?{space:Cy[e],local:t}:t};function Py(t){return function(){this.removeAttribute(t)}}function Ly(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Dy(t,e){return function(){this.setAttribute(t,e)}}function ky(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function Ry(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function Iy(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 Ny=function(t,e){var n=Ay(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?Ly:Py:"function"===typeof e?n.local?Iy:Ry:n.local?ky:Dy)(n,e))},jy=function(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView};function By(t){return function(){this.style.removeProperty(t)}}function Uy(t,e,n){return function(){this.style.setProperty(t,e,n)}}function Vy(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}var Gy=function(t,e,n){return arguments.length>1?this.each((null==e?By:"function"===typeof e?Vy:Uy)(t,e,null==n?"":n)):Hy(this.node(),t)};function Hy(t,e){return t.style.getPropertyValue(e)||jy(t).getComputedStyle(t,null).getPropertyValue(e)}function zy(t){return function(){delete this[t]}}function Fy(t,e){return function(){this[t]=e}}function Wy(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}var qy=function(t,e){return arguments.length>1?this.each((null==e?zy:"function"===typeof e?Wy:Fy)(t,e)):this.node()[t]};function Yy(t){return t.trim().split(/^|\s+/)}function Zy(t){return t.classList||new Xy(t)}function Xy(t){this._node=t,this._names=Yy(t.getAttribute("class")||"")}function Ky(t,e){var n=Zy(t),r=-1,i=e.length;while(++r<i)n.add(e[r])}function $y(t,e){var n=Zy(t),r=-1,i=e.length;while(++r<i)n.remove(e[r])}function Qy(t){return function(){Ky(this,t)}}function Jy(t){return function(){$y(this,t)}}function t_(t,e){return function(){(e.apply(this,arguments)?Ky:$y)(this,t)}}Xy.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 e_=function(t,e){var n=Yy(t+"");if(arguments.length<2){var r=Zy(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?t_:e?Qy:Jy)(n,e))};function n_(){this.textContent=""}function r_(t){return function(){this.textContent=t}}function i_(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}var o_=function(t){return arguments.length?this.each(null==t?n_:("function"===typeof t?i_:r_)(t)):this.node().textContent};function a_(){this.innerHTML=""}function s_(t){return function(){this.innerHTML=t}}function u_(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}var c_=function(t){return arguments.length?this.each(null==t?a_:("function"===typeof t?u_:s_)(t)):this.node().innerHTML};function l_(){this.nextSibling&&this.parentNode.appendChild(this)}var h_=function(){return this.each(l_)};function f_(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}var p_=function(){return this.each(f_)};function d_(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===My&&e.documentElement.namespaceURI===My?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=Ay(t);return(e.local?v_:d_)(e)},m_=function(t){var e="function"===typeof t?t:g_(t);return this.select((function(){return this.appendChild(e.apply(this,arguments))}))};function y_(){return null}var __=function(t,e){var n="function"===typeof t?t:g_(t),r=null==e?y_:"function"===typeof e?e:Hm(e);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))};function b_(){var t=this.parentNode;t&&t.removeChild(this)}var O_=function(){return this.each(b_)};function w_(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function x_(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}var E_=function(t){return this.select(t?x_:w_)},S_=function(t){return arguments.length?this.property("__data__",t):this.node().__data__};function T_(t){return function(e){t.call(this,e,this.__data__)}}function M_(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 C_(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.options);++i?e.length=i:delete this.__on}}}function A_(t,e,n){return function(){var r,i=this.__on,o=T_(e);if(i)for(var a=0,s=i.length;a<s;++a)if((r=i[a]).type===t.type&&r.name===t.name)return this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=o,r.options=n),void(r.value=e);this.addEventListener(t.type,o,n),r={type:t.type,name:t.name,value:e,listener:o,options:n},i?i.push(r):this.__on=[r]}}var P_=function(t,e,n){var r,i,o=M_(t+""),a=o.length;if(!(arguments.length<2)){for(s=e?A_:C_,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 L_(t,e,n){var r=jy(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 D_(t,e){return function(){return L_(this,t,e)}}function k_(t,e){return function(){return L_(this,t,e.apply(this,arguments))}}var R_=function(t,e){return this.each(("function"===typeof e?k_:D_)(t,e))},I_=function*(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r,i=t[e],o=0,a=i.length;o<a;++o)(r=i[o])&&(yield r)},N_=[null];function j_(t,e){this._groups=t,this._parents=e}function B_(){return new j_([[document.documentElement]],N_)}function U_(){return this}j_.prototype=B_.prototype={constructor:j_,select:zm,selectAll:Zm,selectChild:ty,selectChildren:iy,filter:oy,data:py,enter:sy,exit:vy,join:gy,merge:my,selection:U_,order:yy,sort:_y,call:Oy,nodes:wy,node:xy,size:Ey,empty:Sy,each:Ty,attr:Ny,style:Gy,property:qy,classed:e_,text:o_,html:c_,raise:h_,lower:p_,append:m_,insert:__,remove:O_,clone:E_,datum:S_,on:P_,dispatch:R_,[Symbol.iterator]:I_};var V_=B_,G_=function(t){return"string"===typeof t?new j_([[document.querySelector(t)]],[document.documentElement]):new j_([[t]],N_)},H_=n("2da1"),z_=n("b1b0"),F_=n.n(z_),W_=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)}}(),q_="DONT_STYLE_ME_css_styles_verifier",Y_=function(t){function e(e,n){return t.call(this,e,n)||this}return W_(e,t),e.getHTMLElementSize=function(t){return{width:t.clientWidth,height:t.clientHeight}},e.getSVGElementSize=function(t,e){void 0===e&&(e={useAttrs:!1,useClientDimensions:!1,useBBox:!1,useBoundingRect:!1}),t.attr||(t=G_(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:_d.getProperty(t.node(),"width","baseVal","value"),height:_d.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=t.select(""+e);if(n.empty()){var r=e.split("#"),i=void 0,o=void 0;return 2===r.length?(i=r[0],r=r[1].split("."),o=r[0]):(r=e.split("."),i=r[0]),t.append(i).attr("id",o).attr("class",r.slice(1).join(" "))}return n},e.prototype.init=function(){this.styleHolderElement(),this.initializeID(),this.addMainContainer(),this.verifyCSSStylesBeingApplied(),this.model.getOptions().resizable&&this.addResizeListener(),this.addHolderListeners(),this.handleFullscreenChange()},e.prototype.getChartID=function(){return this.chartID},e.prototype.generateElementIDString=function(t){return"chart-"+this.chartID+"-"+t},e.prototype.initializeID=function(){this.chartID=Math.floor(281474976710656*(1+Math.random())).toString(16)},e.prototype.addMainContainer=function(){var t=this.model.getOptions(),e=_d.getProperty(t,"style","prefix"),n=G_(this.getHolder()).append("div").classed(dt+"--"+e+"--chart-wrapper",!0).attr("id","chart-"+this.getChartID()).style("height","100%").style("width","100%");n.append("g").attr("class",q_),this.mainContainer=n.node()},e.prototype.update=function(){this.styleHolderElement()},e.prototype.styleHolderElement=function(){var t=this.getHolder(),e=this.model.getOptions(),n=e.width,r=e.height,i=e.theme;n!==this.width&&(t.style.width=n,this.width=n),r!==this.height&&(t.style.height=r,this.height=r),G_(this.getHolder()).classed(dt+"--chart-holder",!0).attr("data-carbon-theme",i)},e.prototype.getHolder=function(){return this.model.get("holder")},e.prototype.exportToJPG=function(){var t=this,e=this.getHolder(),n=G_(e);n.classed("filled",!0),F_.a.toJpeg(this.getMainContainer(),{bgcolor:"undefined"!==typeof window?window.getComputedStyle(e).getPropertyValue("background-color"):void 0,quality:1,filter:function(t){return!t.classList||!t.classList.contains("cds--cc--toolbar")}}).then((function(e){t.services.files.downloadImage(e,"myChart.jpg"),n.classed("filled",!1)}))},e.prototype.exportToPNG=function(){var t=this,e=this.getHolder(),n=G_(e);n.classed("filled",!0),F_.a.toPng(this.getMainContainer(),{bgcolor:"undefined"!==typeof window?window.getComputedStyle(e).getPropertyValue("background-color"):void 0,quality:1,filter:function(t){return!t.classList||!t.classList.contains("cds--cc--toolbar")}}).then((function(e){t.services.files.downloadImage(e,"myChart.png"),n.classed("filled",!1)})).catch((function(t){console.error("oops, something went wrong!",t)}))},e.prototype.toggleFullscreen=function(){var t=this.getHolder(),e=G_(t),n=e.classed("fullscreen");n&&(document.fullscreenElement||document["webkitFullscreenElement"]||document["mozFullScreenElement"]||document["msFullscreenElement"])?document.exitFullscreen?document.exitFullscreen():document["webkitExitFullscreen"]?document["webkitExitFullscreen"]():document["mozCancelFullScreen"]?document["mozCancelFullScreen"]():document["msExitFullscreen"]&&document["msExitFullscreen"]():t.requestFullscreen?t.requestFullscreen():t.webkitRequestFullscreen?t.webkitRequestFullscreen():t.mozRequestFullScreen?t.mozRequestFullScreen():t.msRequestFullscreen&&t.msRequestFullscreen()},e.prototype.handleFullscreenChange=function(){var t=this;document.addEventListener("fullscreenchange",(function(){var e=G_(t.getHolder()),n=e.classed("fullscreen");e.classed("fullscreen",!n)}))},e.prototype.verifyCSSStylesBeingApplied=function(){var t=this;setTimeout((function(){var e=G_(t.mainContainer).select("g."+q_).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(G_(this.mainContainer),{useBBox:!0}).height,n=G_(this.mainContainer).attr("class"),r=G_(this.mainContainer).selectAll("."+n+" > svg"),i=0;r.nodes().forEach((function(t){i+=Number(e.getSVGElementSize(G_(t),{useBBox:!0}).height)})),i<=t?G_(this.mainContainer).attr("height",i):G_(this.mainContainer).attr("height","100%")}},e.prototype.getMainContainer=function(){return this.mainContainer},e.prototype.addHolderListeners=function(){var t=this,e=this.getHolder();e&&G_(e).on("mouseover",(function(){t.services.events.dispatchEvent(ft.Chart.MOUSEOVER)})).on("mouseout",(function(){t.services.events.dispatchEvent(ft.Chart.MOUSEOUT)}))},e.prototype.addResizeListener=function(){var t=this,e=this.getHolder();if(e){var n=e.clientWidth,r=e.clientHeight,i=_d.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(ft.Chart.RESIZE))}),12.5),o=new H_["a"](i);o.observe(e)}},e}(Vm),Z_=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)}}(),X_=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Z_(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}(Vm),K_=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(t){function e(e,n){return t.call(this,e,n)||this}return K_(e,t),e.prototype.downloadCSV=function(t,e){var n=document.createElement("a"),r="text/csv;encoding:utf-8";if(navigator["msSaveBlob"])navigator["msSaveBlob"](new Blob([t],{type:r}),e);else if(URL&&"download"in n){var i=URL.createObjectURL(new Blob([t],{type:r}));n.href=i,n.setAttribute("download",e),document.body.appendChild(n),n.click(),document.body.removeChild(n),URL.revokeObjectURL(i)}else location.href="data:application/octet-stream,"+encodeURIComponent(t)},e.prototype.downloadImage=function(t,e){var n=document.createElement("a");n.download=e,n.href=t,document.body.appendChild(n),n.click(),document.body.removeChild(n)},e}(Vm),Q_=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)}}(),J_=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.pendingTransitions={},e}return Q_(e,t),e.prototype.init=function(){var t=this;this.services.events.addEventListener(ft.Model.UPDATE,(function(){t.pendingTransitions={}}))},e.prototype.setupTransition=function(t){var e=this,n=t.transition,r=t.name,i=t.animate;return this.pendingTransitions[n._id]=n,n.on("end interrupt cancel",(function(){delete e.pendingTransitions[n._id]})),!1===this.model.getOptions().animations||!1===i?n.duration(0):n.duration(_d.getProperty(Lt,r,"duration")||Lt.default.duration)},e.prototype.getPendingTransitions=function(){return this.pendingTransitions},e}(Vm),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.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").remove(),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}(Vm);const nb=1e3,rb=60*nb,ib=60*rb,ob=24*ib,ab=7*ob,sb=30*ob,ub=365*ob;var cb=new Date,lb=new Date;function hb(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 hb((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 cb.setTime(+e),lb.setTime(+r),t(cb),t(lb),Math.floor(n(cb,lb))},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 fb=hb((function(){}),(function(t,e){t.setTime(+t+e)}),(function(t,e){return e-t}));fb.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?hb((function(e){e.setTime(Math.floor(e/t)*t)}),(function(e,n){e.setTime(+e+n*t)}),(function(e,n){return(n-e)/t})):fb:null};var pb=fb,db=(fb.range,hb((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,e){t.setTime(+t+e*nb)}),(function(t,e){return(e-t)/nb}),(function(t){return t.getUTCSeconds()}))),vb=db,gb=(db.range,hb((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*nb)}),(function(t,e){t.setTime(+t+e*rb)}),(function(t,e){return(e-t)/rb}),(function(t){return t.getMinutes()}))),mb=gb,yb=(gb.range,hb((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*nb-t.getMinutes()*rb)}),(function(t,e){t.setTime(+t+e*ib)}),(function(t,e){return(e-t)/ib}),(function(t){return t.getHours()}))),_b=yb,bb=(yb.range,hb(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*rb)/ob,t=>t.getDate()-1)),Ob=bb;bb.range;function wb(t){return hb((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())*rb)/ab}))}var xb=wb(0),Eb=wb(1),Sb=wb(2),Tb=wb(3),Mb=wb(4),Cb=wb(5),Ab=wb(6),Pb=(xb.range,Eb.range,Sb.range,Tb.range,Mb.range,Cb.range,Ab.range,hb((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()}))),Lb=Pb,Db=(Pb.range,hb((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()})));Db.every=function(t){return isFinite(t=Math.floor(t))&&t>0?hb((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 kb=Db,Rb=(Db.range,hb((function(t){t.setUTCSeconds(0,0)}),(function(t,e){t.setTime(+t+e*rb)}),(function(t,e){return(e-t)/rb}),(function(t){return t.getUTCMinutes()}))),Ib=Rb,Nb=(Rb.range,hb((function(t){t.setUTCMinutes(0,0,0)}),(function(t,e){t.setTime(+t+e*ib)}),(function(t,e){return(e-t)/ib}),(function(t){return t.getUTCHours()}))),jb=Nb,Bb=(Nb.range,hb((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/ob}),(function(t){return t.getUTCDate()-1}))),Ub=Bb;Bb.range;function Vb(t){return hb((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)/ab}))}var Gb=Vb(0),Hb=Vb(1),zb=Vb(2),Fb=Vb(3),Wb=Vb(4),qb=Vb(5),Yb=Vb(6),Zb=(Gb.range,Hb.range,zb.range,Fb.range,Wb.range,qb.range,Yb.range,hb((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()}))),Xb=Zb,Kb=(Zb.range,hb((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()})));Kb.every=function(t){return isFinite(t=Math.floor(t))&&t>0?hb((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 $b=Kb;Kb.range;function Qb(t,e,n,r,i,o){const a=[[vb,1,nb],[vb,5,5*nb],[vb,15,15*nb],[vb,30,30*nb],[o,1,rb],[o,5,5*rb],[o,15,15*rb],[o,30,30*rb],[i,1,ib],[i,3,3*ib],[i,6,6*ib],[i,12,12*ib],[r,1,ob],[r,2,2*ob],[n,1,ab],[e,1,sb],[e,3,3*sb],[t,1,ub]];function s(t,e,n){const r=e<t;r&&([t,e]=[e,t]);const i=n&&"function"===typeof n.range?n:u(t,e,n),o=i?i.range(t,+e+1):[];return r?o.reverse():o}function u(e,n,r){const i=Math.abs(n-e)/r,o=Av(([,,t])=>t).right(a,i);if(o===a.length)return t.every(Fv(e/ub,n/ub,r));if(0===o)return pb.every(Math.max(Fv(e,n,r),1));const[s,u]=a[i/a[o-1][2]<a[o][2]/i?o-1:o];return s.every(u)}return[s,u]}const[Jb,tO]=Qb($b,Xb,Gb,Ub,jb,Ib),[eO,nO]=Qb(kb,Lb,xb,Ob,_b,mb);function rO(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 iO(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 oO(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}function aO(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=vO(i),l=gO(i),h=vO(o),f=gO(o),p=vO(a),d=gO(a),v=vO(s),g=gO(s),m=vO(u),y=gO(u),_={a:k,A:R,b:I,B:N,c:null,d:jO,e:jO,f:HO,g:JO,G:ew,H:BO,I:UO,j:VO,L:GO,m:zO,M:FO,p:j,q:B,Q:Ew,s:Sw,S:WO,u:qO,U:YO,V:XO,w:KO,W:$O,x:null,X:null,y:QO,Y:tw,Z:nw,"%":xw},b={a:U,A:V,b:G,B:H,c:null,d:rw,e:rw,f:uw,g:_w,G:Ow,H:iw,I:ow,j:aw,L:sw,m:cw,M:lw,p:z,q:F,Q:Ew,s:Sw,S:hw,u:fw,U:pw,V:vw,w:gw,W:mw,x:null,X:null,y:yw,Y:bw,Z:ww,"%":xw},O={a:T,A:M,b:C,B:A,c:P,d:MO,e:MO,f:kO,g:xO,G:wO,H:AO,I:AO,j:CO,L:DO,m:TO,M:PO,p:S,q:SO,Q:IO,s:NO,S:LO,u:yO,U:_O,V:bO,w:mO,W:OO,x:L,X:D,y:xO,Y:wO,Z:EO,"%":RO};function w(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=cO[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 x(t,e){return function(n){var r,i,o=oO(1900,void 0,1),a=E(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=iO(oO(o.y,0,1)),i=r.getUTCDay(),r=i>4||0===i?Hb.ceil(r):Hb(r),r=Ub.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(r=rO(oO(o.y,0,1)),i=r.getDay(),r=i>4||0===i?Eb.ceil(r):Eb(r),r=Ob.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?iO(oO(o.y,0,1)).getUTCDay():rO(oO(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,iO(o)):rO(o)}}function E(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=O[i in cO?e.charAt(a++):i],!o||(r=o(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}function S(t,e,n){var r=c.exec(e.slice(n));return r?(t.p=l.get(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.get(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.get(r[0].toLowerCase()),n+r[0].length):-1}function C(t,e,n){var r=m.exec(e.slice(n));return r?(t.m=y.get(r[0].toLowerCase()),n+r[0].length):-1}function A(t,e,n){var r=v.exec(e.slice(n));return r?(t.m=g.get(r[0].toLowerCase()),n+r[0].length):-1}function P(t,n,r){return E(t,e,n,r)}function L(t,e,r){return E(t,n,e,r)}function D(t,e,n){return E(t,r,e,n)}function k(t){return a[t.getDay()]}function R(t){return o[t.getDay()]}function I(t){return u[t.getMonth()]}function N(t){return s[t.getMonth()]}function j(t){return i[+(t.getHours()>=12)]}function B(t){return 1+~~(t.getMonth()/3)}function U(t){return a[t.getUTCDay()]}function V(t){return o[t.getUTCDay()]}function G(t){return u[t.getUTCMonth()]}function H(t){return s[t.getUTCMonth()]}function z(t){return i[+(t.getUTCHours()>=12)]}function F(t){return 1+~~(t.getUTCMonth()/3)}return(_.x=w(n,_),_.X=w(r,_),_.c=w(e,_),b.x=w(n,b),b.X=w(r,b),b.c=w(e,b),{format:function(t){var e=w(t+="",_);return e.toString=function(){return t},e},parse:function(t){var e=x(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=w(t+="",b);return e.toString=function(){return t},e},utcParse:function(t){var e=x(t+="",!0);return e.toString=function(){return t},e}})}var sO,uO,cO={"-":"",_:" ",0:"0"},lO=/^\s*\d+/,hO=/^%/,fO=/[\\^$*+?|[\]().{}]/g;function pO(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 dO(t){return t.replace(fO,"\\$&")}function vO(t){return new RegExp("^(?:"+t.map(dO).join("|")+")","i")}function gO(t){return new Map(t.map((t,e)=>[t.toLowerCase(),e]))}function mO(t,e,n){var r=lO.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function yO(t,e,n){var r=lO.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function _O(t,e,n){var r=lO.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function bO(t,e,n){var r=lO.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function OO(t,e,n){var r=lO.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function wO(t,e,n){var r=lO.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function xO(t,e,n){var r=lO.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function EO(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 SO(t,e,n){var r=lO.exec(e.slice(n,n+1));return r?(t.q=3*r[0]-3,n+r[0].length):-1}function TO(t,e,n){var r=lO.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function MO(t,e,n){var r=lO.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function CO(t,e,n){var r=lO.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function AO(t,e,n){var r=lO.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function PO(t,e,n){var r=lO.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function LO(t,e,n){var r=lO.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function DO(t,e,n){var r=lO.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function kO(t,e,n){var r=lO.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function RO(t,e,n){var r=hO.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function IO(t,e,n){var r=lO.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function NO(t,e,n){var r=lO.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function jO(t,e){return pO(t.getDate(),e,2)}function BO(t,e){return pO(t.getHours(),e,2)}function UO(t,e){return pO(t.getHours()%12||12,e,2)}function VO(t,e){return pO(1+Ob.count(kb(t),t),e,3)}function GO(t,e){return pO(t.getMilliseconds(),e,3)}function HO(t,e){return GO(t,e)+"000"}function zO(t,e){return pO(t.getMonth()+1,e,2)}function FO(t,e){return pO(t.getMinutes(),e,2)}function WO(t,e){return pO(t.getSeconds(),e,2)}function qO(t){var e=t.getDay();return 0===e?7:e}function YO(t,e){return pO(xb.count(kb(t)-1,t),e,2)}function ZO(t){var e=t.getDay();return e>=4||0===e?Mb(t):Mb.ceil(t)}function XO(t,e){return t=ZO(t),pO(Mb.count(kb(t),t)+(4===kb(t).getDay()),e,2)}function KO(t){return t.getDay()}function $O(t,e){return pO(Eb.count(kb(t)-1,t),e,2)}function QO(t,e){return pO(t.getFullYear()%100,e,2)}function JO(t,e){return t=ZO(t),pO(t.getFullYear()%100,e,2)}function tw(t,e){return pO(t.getFullYear()%1e4,e,4)}function ew(t,e){var n=t.getDay();return t=n>=4||0===n?Mb(t):Mb.ceil(t),pO(t.getFullYear()%1e4,e,4)}function nw(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+pO(e/60|0,"0",2)+pO(e%60,"0",2)}function rw(t,e){return pO(t.getUTCDate(),e,2)}function iw(t,e){return pO(t.getUTCHours(),e,2)}function ow(t,e){return pO(t.getUTCHours()%12||12,e,2)}function aw(t,e){return pO(1+Ub.count($b(t),t),e,3)}function sw(t,e){return pO(t.getUTCMilliseconds(),e,3)}function uw(t,e){return sw(t,e)+"000"}function cw(t,e){return pO(t.getUTCMonth()+1,e,2)}function lw(t,e){return pO(t.getUTCMinutes(),e,2)}function hw(t,e){return pO(t.getUTCSeconds(),e,2)}function fw(t){var e=t.getUTCDay();return 0===e?7:e}function pw(t,e){return pO(Gb.count($b(t)-1,t),e,2)}function dw(t){var e=t.getUTCDay();return e>=4||0===e?Wb(t):Wb.ceil(t)}function vw(t,e){return t=dw(t),pO(Wb.count($b(t),t)+(4===$b(t).getUTCDay()),e,2)}function gw(t){return t.getUTCDay()}function mw(t,e){return pO(Hb.count($b(t)-1,t),e,2)}function yw(t,e){return pO(t.getUTCFullYear()%100,e,2)}function _w(t,e){return t=dw(t),pO(t.getUTCFullYear()%100,e,2)}function bw(t,e){return pO(t.getUTCFullYear()%1e4,e,4)}function Ow(t,e){var n=t.getUTCDay();return t=n>=4||0===n?Wb(t):Wb.ceil(t),pO(t.getUTCFullYear()%1e4,e,4)}function ww(){return"+0000"}function xw(){return"%"}function Ew(t){return+t}function Sw(t){return Math.floor(+t/1e3)}function Tw(t){return sO=aO(t),uO=sO.format,sO.parse,sO.utcFormat,sO.utcParse,sO}Tw({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 Mw=function(t,e,n){t.prototype=e.prototype=n,n.constructor=t};function Cw(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function Aw(){}var Pw=.7,Lw=1/Pw,Dw="\\s*([+-]?\\d+)\\s*",kw="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Rw="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Iw=/^#([0-9a-f]{3,8})$/,Nw=new RegExp("^rgb\\("+[Dw,Dw,Dw]+"\\)$"),jw=new RegExp("^rgb\\("+[Rw,Rw,Rw]+"\\)$"),Bw=new RegExp("^rgba\\("+[Dw,Dw,Dw,kw]+"\\)$"),Uw=new RegExp("^rgba\\("+[Rw,Rw,Rw,kw]+"\\)$"),Vw=new RegExp("^hsl\\("+[kw,Rw,Rw]+"\\)$"),Gw=new RegExp("^hsla\\("+[kw,Rw,Rw,kw]+"\\)$"),Hw={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 zw(){return this.rgb().formatHex()}function Fw(){return nx(this).formatHsl()}function Ww(){return this.rgb().formatRgb()}function qw(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=Iw.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?Yw(e):3===n?new $w(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?Zw(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?Zw(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=Nw.exec(t))?new $w(e[1],e[2],e[3],1):(e=jw.exec(t))?new $w(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Bw.exec(t))?Zw(e[1],e[2],e[3],e[4]):(e=Uw.exec(t))?Zw(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Vw.exec(t))?ex(e[1],e[2]/100,e[3]/100,1):(e=Gw.exec(t))?ex(e[1],e[2]/100,e[3]/100,e[4]):Hw.hasOwnProperty(t)?Yw(Hw[t]):"transparent"===t?new $w(NaN,NaN,NaN,0):null}function Yw(t){return new $w(t>>16&255,t>>8&255,255&t,1)}function Zw(t,e,n,r){return r<=0&&(t=e=n=NaN),new $w(t,e,n,r)}function Xw(t){return t instanceof Aw||(t=qw(t)),t?(t=t.rgb(),new $w(t.r,t.g,t.b,t.opacity)):new $w}function Kw(t,e,n,r){return 1===arguments.length?Xw(t):new $w(t,e,n,null==r?1:r)}function $w(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function Qw(){return"#"+tx(this.r)+tx(this.g)+tx(this.b)}function Jw(){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 tx(t){return t=Math.max(0,Math.min(255,Math.round(t)||0)),(t<16?"0":"")+t.toString(16)}function ex(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new ix(t,e,n,r)}function nx(t){if(t instanceof ix)return new ix(t.h,t.s,t.l,t.opacity);if(t instanceof Aw||(t=qw(t)),!t)return new ix;if(t instanceof ix)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 ix(a,s,u,t.opacity)}function rx(t,e,n,r){return 1===arguments.length?nx(t):new ix(t,e,n,null==r?1:r)}function ix(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function ox(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 ax(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}Mw(Aw,qw,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:zw,formatHex:zw,formatHsl:Fw,formatRgb:Ww,toString:Ww}),Mw($w,Kw,Cw(Aw,{brighter:function(t){return t=null==t?Lw:Math.pow(Lw,t),new $w(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?Pw:Math.pow(Pw,t),new $w(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:Qw,formatHex:Qw,formatRgb:Jw,toString:Jw})),Mw(ix,rx,Cw(Aw,{brighter:function(t){return t=null==t?Lw:Math.pow(Lw,t),new ix(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?Pw:Math.pow(Pw,t),new ix(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 $w(ox(t>=240?t-240:t+120,i,r),ox(t,i,r),ox(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 sx=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 ax((n-r/e)*e,a,i,o,s)}},ux=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 ax((n-r/e)*e,i,o,a,s)}},cx=t=>()=>t;function lx(t,e){return function(n){return t+n*e}}function hx(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 fx(t){return 1===(t=+t)?px:function(e,n){return n-e?hx(e,n,t):cx(isNaN(e)?n:e)}}function px(t,e){var n=e-t;return n?lx(t,n):cx(isNaN(t)?e:t)}var dx=function t(e){var n=fx(e);function r(t,e){var r=n((t=Kw(t)).r,(e=Kw(e)).r),i=n(t.g,e.g),o=n(t.b,e.b),a=px(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 vx(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=Kw(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+""}}}vx(sx),vx(ux);var gx=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 mx(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function yx(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]=Mx(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 _x=function(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}},bx=function(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}},Ox=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]=Mx(t[n],e[n]):i[n]=e[n];return function(t){for(n in r)i[n]=r[n](t);return i}},wx=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,xx=new RegExp(wx.source,"g");function Ex(t){return function(){return t}}function Sx(t){return function(e){return t(e)+""}}var Tx=function(t,e){var n,r,i,o=wx.lastIndex=xx.lastIndex=0,a=-1,s=[],u=[];t+="",e+="";while((n=wx.exec(t))&&(r=xx.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:bx(n,r)})),o=xx.lastIndex;return o<e.length&&(i=e.slice(o),s[a]?s[a]+=i:s[++a]=i),s.length<2?u[0]?Sx(u[0].x):Ex(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("")})},Mx=function(t,e){var n,r=typeof e;return null==e||"boolean"===r?cx(e):("number"===r?bx:"string"===r?(n=qw(e))?(e=n,dx):Tx:e instanceof qw?dx:e instanceof Date?_x:mx(e)?gx:Array.isArray(e)?yx:"function"!==typeof e.valueOf&&"function"!==typeof e.toString||isNaN(e)?Ox:bx)(t,e)},Cx=function(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}};function Ax(t){return function(){return t}}function Px(t){return+t}var Lx=[0,1];function Dx(t){return t}function kx(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:Ax(isNaN(e)?NaN:.5)}function Rx(t,e){var n;return t>e&&(n=t,t=e,e=n),function(n){return Math.max(t,Math.min(e,n))}}function Ix(t,e,n){var r=t[0],i=t[1],o=e[0],a=e[1];return i<r?(r=kx(i,r),o=n(a,o)):(r=kx(r,i),o=n(o,a)),function(t){return o(r(t))}}function Nx(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]=kx(t[a],t[a+1]),o[a]=n(e[a],e[a+1]);return function(e){var n=Iv(t,e,1,r)-1;return o[n](i[n](e))}}function jx(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function Bx(){var t,e,n,r,i,o,a=Lx,s=Lx,u=Mx,c=Dx;function l(){var t=Math.min(a.length,s.length);return c!==Dx&&(c=Rx(a[0],a[t-1])),r=t>2?Nx:Ix,i=o=null,h}function h(e){return null==e||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),bx)))(n)))},h.domain=function(t){return arguments.length?(a=Array.from(t,Px),l()):a.slice()},h.range=function(t){return arguments.length?(s=Array.from(t),l()):s.slice()},h.rangeRound=function(t){return s=Array.from(t),u=Cx,l()},h.clamp=function(t){return arguments.length?(c=!!t||Dx,l()):c!==Dx},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 Ux(){return Bx()(Dx,Dx)}function Vx(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 Gx(t){return new Date(t)}function Hx(t){return t instanceof Date?+t:+new Date(+t)}function zx(t,e,n,r,i,o,a,s,u,c){var l=Ux(),h=l.invert,f=l.domain,p=c(".%L"),d=c(":%S"),v=c("%I:%M"),g=c("%I %p"),m=c("%a %d"),y=c("%b %d"),_=c("%B"),b=c("%Y");function O(t){return(u(t)<t?p:s(t)<t?d:a(t)<t?v:o(t)<t?g:r(t)<t?i(t)<t?m:y:n(t)<t?_:b)(t)}return l.invert=function(t){return new Date(h(t))},l.domain=function(t){return arguments.length?f(Array.from(t,Hx)):f().map(Gx)},l.ticks=function(e){var n=f();return t(n[0],n[n.length-1],null==e?10:e)},l.tickFormat=function(t,e){return null==e?O:c(e)},l.nice=function(t){var n=f();return t&&"function"===typeof t.range||(t=e(n[0],n[n.length-1],null==t?10:t)),t?f(Vx(n,t)):l},l.copy=function(){return jx(l,zx(t,e,n,r,i,o,a,s,u,c))},l}function Fx(){return dv.apply(zx(eO,nO,kb,Lb,xb,Ob,_b,mb,vb,uO).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}var Wx=function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)};function qx(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)]}var Yx=function(t){return t=qx(Math.abs(t)),t?t[1]:NaN},Zx=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)}},Xx=function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}},Kx=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function $x(t){if(!(e=Kx.exec(t)))throw new Error("invalid format: "+t);var e;return new Qx({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 Qx(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+""}$x.prototype=Qx.prototype,Qx.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 Jx,tE,eE,nE,rE=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},iE=function(t,e){var n=qx(t,e);if(!n)return t+"";var r=n[0],i=n[1],o=i-(Jx=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")+qx(t,Math.max(0,e+o-1))[0]},oE=function(t,e){var n=qx(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")},aE={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:Wx,e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>oE(100*t,e),r:oE,s:iE,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)},sE=function(t){return t},uE=Array.prototype.map,cE=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"],lE=function(t){var e=void 0===t.grouping||void 0===t.thousands?sE:Zx(uE.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?sE:Xx(uE.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=$x(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"):aE[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:"",O=aE[y],w=/[defgprs%]/.test(y);function x(t){var n,r,a,f=_,x=b;if("c"===y)x=O(t)+x,t="";else{t=+t;var E=t<0||1/t<0;if(t=isNaN(t)?u:O(Math.abs(t),g),m&&(t=rE(t)),E&&0===+t&&"+"!==h&&(E=!1),f=(E?"("===h?h:s:"-"===h||"("===h?"":h)+f,x=("s"===y?cE[8+Jx/3]:"")+x+(E&&"("===h?")":""),w){n=-1,r=t.length;while(++n<r)if(a=t.charCodeAt(n),48>a||a>57){x=(46===a?i+t.slice(n+1):t.slice(n))+x,t=t.slice(0,n);break}}}v&&!p&&(t=e(t,1/0));var S=f.length+t.length+x.length,T=S<d?new Array(d-S+1).join(c):"";switch(v&&p&&(t=e(T+t,T.length?d-x.length:1/0),T=""),l){case"<":t=f+t+x+T;break;case"=":t=f+T+t+x;break;case"^":t=T.slice(0,S=T.length>>1)+f+t+x+T.slice(S);break;default:t=T+f+t+x;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)),x.toString=function(){return t+""},x}function l(t,e){var n=c((t=$x(t),t.type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(Yx(e)/3))),i=Math.pow(10,-r),o=cE[8+r/3];return function(t){return n(i*t)+o}}return{format:c,formatPrefix:l}};function hE(t){return tE=lE(t),eE=tE.format,nE=tE.formatPrefix,tE}function fE(t){return Math.log(t)}function pE(t){return Math.exp(t)}function dE(t){return-Math.log(-t)}function vE(t){return-Math.exp(-t)}function gE(t){return isFinite(t)?+("1e"+t):t<0?0:t}function mE(t){return 10===t?gE:t===Math.E?Math.exp:function(e){return Math.pow(t,e)}}function yE(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 _E(t){return function(e){return-t(-e)}}function bE(t){var e,n,r=t(fE,pE),i=r.domain,o=10;function a(){return e=yE(o),n=mE(o),i()[0]<0?(e=_E(e),n=_E(n),t(dE,vE)):t(fE,pE),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.floor(f),p=Math.ceil(p),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)}2*v.length<d&&(v=Hv(s,u,d))}else v=Hv(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=eE(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(Vx(i(),{floor:function(t){return n(Math.floor(e(t)))},ceil:function(t){return n(Math.ceil(e(t)))}}))},r}function OE(){var t=bE(Bx()).domain([1,10]);return t.copy=function(){return jx(t,OE()).base(t.base())},dv.apply(t,arguments),t}hE({thousands:",",grouping:[3],currency:["$",""]});var wE=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};function xE(){var t,e,n=gv().unknown(void 0),r=n.domain,i=n.range,o=0,a=1,s=!1,u=0,c=0,l=.5;function h(){var n=r().length,h=a<o,f=h?a:o,p=h?o:a;t=(p-f)/Math.max(1,n-u+2*c),s&&(t=Math.floor(t)),f+=(p-f-t*(n-u))*l,e=t*(1-u),s&&(f=Math.round(f),e=Math.round(e));var d=wE(n).map((function(e){return f+t*e}));return i(h?d.reverse():d)}return delete n.unknown,n.domain=function(t){return arguments.length?(r(t),h()):r()},n.range=function(t){return arguments.length?([o,a]=t,o=+o,a=+a,h()):[o,a]},n.rangeRound=function(t){return[o,a]=t,o=+o,a=+a,s=!0,h()},n.bandwidth=function(){return e},n.step=function(){return t},n.round=function(t){return arguments.length?(s=!!t,h()):s},n.padding=function(t){return arguments.length?(u=Math.min(1,c=+t),h()):u},n.paddingInner=function(t){return arguments.length?(u=Math.min(1,t),h()):u},n.paddingOuter=function(t){return arguments.length?(c=+t,h()):c},n.align=function(t){return arguments.length?(l=Math.max(0,Math.min(1,t)),h()):l},n.copy=function(){return xE(r(),[o,a]).round(s).paddingInner(u).paddingOuter(c).align(l)},dv.apply(h(),arguments)}var EE=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Yx(e)/3)))-Yx(Math.abs(t)))},SE=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,Yx(e)-Yx(t))+1},TE=function(t){return Math.max(0,-Yx(Math.abs(t)))};function ME(t,e,n,r){var i,o=Fv(t,e,n);switch(r=$x(null==r?",f":r),r.type){case"s":var a=Math.max(Math.abs(t),Math.abs(e));return null!=r.precision||isNaN(i=EE(o,a))||(r.precision=i),nE(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=SE(o,Math.max(Math.abs(t),Math.abs(e))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=TE(o))||(r.precision=i-2*("%"===r.type));break}return eE(r)}function CE(t){var e=t.domain;return t.ticks=function(t){var n=e();return Hv(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var r=e();return ME(r[0],r[r.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10);var r,i,o=e(),a=0,s=o.length-1,u=o[a],c=o[s],l=10;c<u&&(i=u,u=c,c=i,i=a,a=s,s=i);while(l-- >0){if(i=zv(u,c,n),i===r)return o[a]=u,o[s]=c,e(o);if(i>0)u=Math.floor(u/i)*i,c=Math.ceil(c/i)*i;else{if(!(i<0))break;u=Math.ceil(u*i)/i,c=Math.floor(c*i)/i}r=i}return t},t}function AE(){var t=Ux();return t.copy=function(){return jx(t,AE())},dv.apply(t,arguments),CE(t)}function PE(t,e){let n;if(void 0===e)for(const r of t)null!=r&&(n<r||void 0===n&&r>=r)&&(n=r);else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(n<i||void 0===n&&i>=i)&&(n=i)}return n}function LE(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Xv(t),r=Xv(e);return n.getFullYear()-r.getFullYear()}function DE(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Xv(t),r=Xv(e),i=n.getTime()-r.getTime();return i<0?-1:i>0?1:i}function kE(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Xv(t),r=Xv(e),i=DE(n,r),o=Math.abs(LE(n,r));n.setFullYear(n.getFullYear()-i*o);var a=DE(n,r)===-i,s=i*(o-a);return 0===s?0:s}function RE(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=Xv(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 IE(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Xv(t),r=jg(e),i=n.getMonth()+r,o=new Date(0);o.setFullYear(n.getFullYear(),i,1),o.setHours(0,0,0,0);var a=RE(o);return n.setMonth(i,Math.min(a,n.getDate())),n}function NE(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=jg(e);return IE(t,12*n)}function jE(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=jg(e);return NE(t,-n)}function BE(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Xv(t),r=Xv(e),i=n.getFullYear()-r.getFullYear(),o=n.getMonth()-r.getMonth();return 12*i+o}function UE(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Xv(t),r=Xv(e),i=DE(n,r),o=Math.abs(BE(n,r));n.setMonth(n.getMonth()-i*o);var a=DE(n,r)===-i,s=i*(o-a);return 0===s?0:s}function VE(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=jg(e);return IE(t,-n)}function GE(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=Xv(t);return e.setHours(0,0,0,0),e}var HE=864e5;function zE(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=GE(t),r=GE(e),i=n.getTime()-pm(n),o=r.getTime()-pm(r);return Math.round((i-o)/HE)}function FE(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Xv(t),r=Xv(e),i=DE(n,r),o=Math.abs(zE(n,r));n.setDate(n.getDate()-i*o);var a=DE(n,r)===-i,s=i*(o-a);return 0===s?0:s}function WE(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Xv(t),r=jg(e);return n.setDate(n.getDate()+r),n}function qE(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=jg(e);return WE(t,-n)}function YE(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Xv(t),r=Xv(e);return n.getTime()-r.getTime()}var ZE=36e5;function XE(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=YE(t,e)/ZE;return n>0?Math.floor(n):Math.ceil(n)}var KE=36e5;function $E(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=jg(e);return Bg(t,n*KE)}function QE(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=jg(e);return $E(t,-n)}var JE=6e4;function tS(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=YE(t,e)/JE;return n>0?Math.floor(n):Math.ceil(n)}var eS=6e4;function nS(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=jg(e);return Bg(t,n*eS)}function rS(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=jg(e);return nS(t,-n)}function iS(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=YE(t,e)/1e3;return n>0?Math.floor(n):Math.ceil(n)}function oS(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=jg(e);return Bg(t,1e3*n)}function aS(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=jg(e);return oS(t,-n)}var sS=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)}}(),uS=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n},cS=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},lS=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 sS(e,t),e.prototype.getDomainAxisPosition=function(t){var e,n=(void 0===t?{}:t).datum,r=void 0===n?null:n;if(this.dualAxes&&r){var i=this.model.getOptions(),o=i.data.groupMapsTo,a=_d.getProperty(i,"axes",this.secondaryDomainAxisPosition),s=r[o];if((null===(e=a)||void 0===e?void 0:e.correspondingDatasets)&&a.correspondingDatasets.includes(s))return this.secondaryDomainAxisPosition}return this.domainAxisPosition},e.prototype.getRangeAxisPosition=function(t){var e,n=void 0===t?{}:t,r=n.datum,i=void 0===r?null:r,o=n.groups,a=void 0===o?null:o;if(this.dualAxes){var s=this.model.getOptions(),u=s.data.groupMapsTo,c=_d.getProperty(s,"axes",this.secondaryRangeAxisPosition),l=void 0;if(null!==i?l=i[u]:a&&a.length>0&&(l=a[0]),(null===(e=c)||void 0===e?void 0:e.correspondingDatasets)&&c.correspondingDatasets.includes(l))return this.secondaryRangeAxisPosition}return this.rangeAxisPosition},e.prototype.getAxisOptions=function(t){return _d.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.getScaleLabel=function(t){var e=this.getAxisOptions(t),n=e.title;return n||(t===B.BOTTOM||t===B.TOP?"x-value":"y-value")},e.prototype.getDomainLabel=function(){return this.getScaleLabel(this.getDomainAxisPosition())},e.prototype.getRangeLabel=function(){return this.getScaleLabel(this.getRangeAxisPosition())},e.prototype.update=function(t){var e=this;void 0===t&&(t=!0),this.determineAxisDuality(),this.findDomainAndRangeAxes(),this.determineOrientation();var n=Object.keys(B).map((function(t){return B[t]}));n.forEach((function(t){e.scales[t]=e.createScale(t)}))},e.prototype.findDomainAndRangeAxes=function(){var t=this.findVerticalAxesPositions(),e=this.findHorizontalAxesPositions(),n=this.findDomainAndRangeAxesPositions(t,e);this.domainAxisPosition=n.primaryDomainAxisPosition,this.rangeAxisPosition=n.primaryRangeAxisPosition,this.isDualAxes()&&(this.secondaryDomainAxisPosition=n.secondaryDomainAxisPosition,this.secondaryRangeAxisPosition=n.secondaryRangeAxisPosition)},e.prototype.determineOrientation=function(){this.rangeAxisPosition!==B.LEFT&&this.rangeAxisPosition!==B.RIGHT||this.domainAxisPosition!==B.BOTTOM&&this.domainAxisPosition!==B.TOP?this.orientation=G.HORIZONTAL:this.orientation=G.VERTICAL},e.prototype.isDualAxes=function(){return this.dualAxes},e.prototype.determineAxisDuality=function(){var t,e,n,r,i=this.model.getOptions(),o=_d.getProperty(i,"axes");((null===(t=o[B.LEFT])||void 0===t?void 0:t.correspondingDatasets)&&o[B.RIGHT]||(null===(e=o[B.RIGHT])||void 0===e?void 0:e.correspondingDatasets)&&o[B.LEFT]||(null===(n=o[B.TOP])||void 0===n?void 0:n.correspondingDatasets)&&o[B.BOTTOM]||(null===(r=o[B.BOTTOM])||void 0===r?void 0:r.correspondingDatasets)&&o[B.TOP])&&(this.dualAxes=!0)},e.prototype.getCustomDomainValuesByposition=function(t){var e=_d.getProperty(this.model.getOptions(),"axes",t,"domain");if(e&&!Array.isArray(e))throw new Error("Domain in "+t+" axis is not a valid array");if(Array.isArray(e)&&(this.scaleTypes[t]===H.LINEAR||this.scaleTypes[t]===H.TIME)&&2!==e.length)throw new Error("There can only be 2 elements in domain for scale type: "+this.scaleTypes[t]);return e},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=[B.BOTTOM,B.TOP];return[this.domainAxisPosition,this.rangeAxisPosition].find((function(e){return t.indexOf(e)>-1}))},e.prototype.getMainYAxisPosition=function(){var t=[B.LEFT,B.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=_d.getProperty(a,"axes"),u=s[n],c=u.mapsTo,l=null!==_d.getProperty(r,c)?r[c]:r;switch(e){case H.LABELS:o=t(l)+t.step()/2;break;case H.TIME:o=t(new Date(l));break;default:o=t(l)}return o},e.prototype.getBoundedScaledValues=function(t,e){var n=this.model.getOptions().bounds,r=this.getRangeAxisPosition({datum:t}),i=this.scales[r],o=this.model.getOptions(),a=_d.getProperty(o,"axes"),s=a[r],u=s.mapsTo,c=void 0!==t[u]?t[u]:t,l=[i(null!==_d.getProperty(t,n.upperBoundMapsTo)?t[n.upperBoundMapsTo]:c),i(null!==_d.getProperty(t,n.lowerBoundMapsTo)?t[n.lowerBoundMapsTo]:c)];return l},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){var n=this.getDomainAxisPosition({datum:t});return this.getValueThroughAxisPosition(n,t,e)},e.prototype.getRangeValue=function(t,e){var n=this.getRangeAxisPosition({datum:t});return this.getValueThroughAxisPosition(n,t,e)},e.prototype.getMainXScaleType=function(){return this.getScaleTypeByPosition(this.getMainXAxisPosition())},e.prototype.getMainYScaleType=function(){return this.getScaleTypeByPosition(this.getMainYAxisPosition())},e.prototype.getDomainIdentifier=function(t){var e=this.model.getOptions();return _d.getProperty(e,"axes",this.getDomainAxisPosition({datum:t}),"mapsTo")},e.prototype.getRangeIdentifier=function(t){var e=this.model.getOptions();return _d.getProperty(e,"axes",this.getRangeAxisPosition({datum:t}),"mapsTo")},e.prototype.extendsDomain=function(t,e){var n=this.model.getOptions(),r=_d.getProperty(n,"axes",t);if(r.scaleType===H.TIME){var i=_d.getProperty(n,"timeScale","addSpaceOnEdges");return hS(e,i)}return fS(e,gt.paddingRatio,r.scaleType)},e.prototype.findVerticalAxesPositions=function(){var t=this.model.getOptions(),e=_d.getProperty(t,"axes"),n=this.isDualAxes();return null===_d.getProperty(e,B.LEFT)&&null!==_d.getProperty(e,B.RIGHT)||!0===_d.getProperty(e,B.RIGHT,"main")||n&&_d.getProperty(e,B.LEFT,"correspondingDatasets")?{primary:B.RIGHT,secondary:B.LEFT}:{primary:B.LEFT,secondary:B.RIGHT}},e.prototype.findHorizontalAxesPositions=function(){var t=this.model.getOptions(),e=_d.getProperty(t,"axes"),n=this.isDualAxes();return null===_d.getProperty(e,B.BOTTOM)&&null!==_d.getProperty(e,B.TOP)||!0===_d.getProperty(e,B.TOP,"main")||n&&_d.getProperty(e,B.BOTTOM,"correspondingDatasets")?{primary:B.TOP,secondary:B.BOTTOM}:{primary:B.BOTTOM,secondary:B.TOP}},e.prototype.findDomainAndRangeAxesPositions=function(t,e){var n=this.model.getOptions(),r=_d.getProperty(n,"axes",t.primary),i=_d.getProperty(n,"axes",e.primary),o=r.scaleType||H.LINEAR,a=i.scaleType||H.LINEAR,s={primaryDomainAxisPosition:null,secondaryDomainAxisPosition:null,primaryRangeAxisPosition:null,secondaryRangeAxisPosition:null};return s.primaryDomainAxisPosition=e.primary,s.primaryRangeAxisPosition=t.primary,s.secondaryDomainAxisPosition=e.secondary,s.secondaryRangeAxisPosition=t.secondary,(a!==H.LABELS&&a!==H.TIME&&o===H.LABELS||o===H.TIME)&&(s.primaryDomainAxisPosition=t.primary,s.primaryRangeAxisPosition=e.primary,s.secondaryDomainAxisPosition=t.secondary,s.secondaryRangeAxisPosition=e.secondary),s},e.prototype.getScaleDomain=function(t){var e=this.model.getOptions(),n=_d.getProperty(e,"axes",t),r=_d.getProperty(e,"bounds"),i=n.includeZero,o=_d.getProperty(n,"scaleType")||H.LINEAR;if(this.model.isDataEmpty())return[];if(n.binned){var a=this.model.getBinConfigurations().bins;return[0,PE(a,(function(t){return t.length}))]}if(n.limitDomainToBins){a=this.model.getBinConfigurations().bins;var s=this.model.getStackKeys({bins:a});return[s[0].split("-")[0],s[s.length-1].split("-")[1]]}var u,c,l=this.model.getDisplayData(),h=n.extendLinearDomainBy,f=n.mapsTo,p=n.percentage,d=n.thresholds,v=gt.ratio,g=v.reference,m=v.compareTo;if(n.domain)return o===H.LABELS?n.domain:(o===H.TIME&&(n.domain=n.domain.map((function(t){return void 0===t.getTime?new Date(t):t}))),this.extendsDomain(t,n.domain));if(p)return[0,100];if(n&&o===H.LABELS)return _d.removeArrayDuplicates(l.map((function(t){return t[f]})));var y=this.model.getDataGroupNames();if(o===H.LABELS_RATIO)return l.map((function(t){return t[g]+"/"+t[m]}));if(o===H.TIME)c=l.map((function(t){return+new Date(t[f])}));else if(r&&e.axes)c=[],l.forEach((function(t){c.push(t[f]),t[r.upperBoundMapsTo]&&c.push(t[r.upperBoundMapsTo]),t[r.lowerBoundMapsTo]&&c.push(t[r.lowerBoundMapsTo])}));else if(!0===n.stacked&&y&&t===this.getRangeAxisPosition()){var _=e.data.groupMapsTo,b=this.model.getDataValuesGroupedByKeys({groups:y}),O=l.filter((function(t){return!y.includes(t[_])})),w=[];b.forEach((function(t){t.sharedStackKey;var e=uS(t,["sharedStackKey"]),n=0,r=0;Object.values(e).forEach((function(t){isNaN(t)||(t<0?r+=t:n+=t)})),w.push([r,n])})),c=cS(_d.flatten(w),O.map((function(t){return t[f]})))}else c=[],l.forEach((function(t){var e=t[f];Array.isArray(e)&&2===e.length?(c.push(e[0]),c.push(e[1])):(h&&c.push(Math.max(t[f],t[h])),c.push(e))}));return o!==H.TIME&&o!==H.LOG&&i&&c.push(0),d&&d.length>0&&d.forEach((function(t){var e=_d.getProperty(t,"value");null!==e&&c.push(e)})),u=jv(c),u=this.extendsDomain(t,u),u},e.prototype.createScale=function(t){var e=this.model.getOptions(),n=_d.getProperty(e,"axes",t);if(!n)return null;var r,i=_d.getProperty(n,"scaleType")||H.LINEAR;return this.scaleTypes[t]=i,r=i===H.TIME?Fx():i===H.LOG?OE().base(n.base||10):i===H.LABELS||i===H.LABELS_RATIO?xE():AE(),r.domain(this.getScaleDomain(t)),r},e.prototype.getHighestDomainThreshold=function(){var t=_d.getProperty(this.model.getOptions(),"axes"),e=this.getDomainAxisPosition(),n=t[e].thresholds;if(!Array.isArray(n)||Array.isArray(n)&&!n.length)return null;var r=this.getDomainScale(),i=n.sort((function(t,e){return e.value-t.value}))[0],o=this.getScaleTypeByPosition(e);return o!==H.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=_d.getProperty(this.model.getOptions(),"axes"),e=this.getRangeAxisPosition(),n=t[e].thresholds;if(!Array.isArray(n)||Array.isArray(n)&&!n.length)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}(Vm);function hS(t,e){var n=new Date(t[0]),r=new Date(t[1]);return kE(r,n)>1?[jE(n,e),NE(r,e)]:UE(r,n)>1?[VE(n,e),IE(r,e)]:FE(r,n)>1?[qE(n,e),WE(r,e)]:XE(r,n)>1?[QE(n,e),$E(r,e)]:tS(r,n)>30?[rS(n,30*e),nS(r,30*e)]:tS(r,n)>1?[rS(n,e),nS(r,e)]:iS(r,n)>15?[aS(n,15*e),oS(r,15*e)]:iS(r,n)>1?[aS(n,e),oS(r,e)]:[n,r]}function fS(t,e,n){var r=t[0],i=t[1],o=i-r,a=o*e,s=i<=0&&i+a>0?0:i+a,u=r>=0&&r-a<0?0:r-a;if(n===H.LOG&&u<=0){if(r<=0)throw Error("Data must have values greater than 0 if log scale type is used.");u=r}return[u,s]}function pS(t){this._context=t}pS.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 dS=function(t){return new pS(t)},vS=function(){};function gS(t){this._context=t}gS.prototype={areaStart:vS,areaEnd:vS,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 mS=function(t){return new gS(t)};function yS(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 _S(t){this._context=t}_S.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:yS(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:yS(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};var bS=function(t){return new _S(t)};function OS(t){this._context=t}OS.prototype={areaStart:vS,areaEnd:vS,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:yS(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};var wS=function(t){return new OS(t)};function xS(t){this._context=t}xS.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:yS(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};var ES=function(t){return new xS(t)};function SS(t,e){this._basis=new _S(t),this._beta=e}SS.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 TS=function t(e){function n(t){return 1===e?new _S(t):new SS(t,e)}return n.beta=function(e){return t(+e)},n}(.85);function MS(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 CS(t,e){this._context=t,this._k=(1-e)/6}CS.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:MS(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:MS(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 AS=function t(e){function n(t){return new CS(t,e)}return n.tension=function(e){return t(+e)},n}(0);function PS(t,e){this._context=t,this._k=(1-e)/6}PS.prototype={areaStart:vS,areaEnd:vS,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:MS(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 LS=function t(e){function n(t){return new PS(t,e)}return n.tension=function(e){return t(+e)},n}(0);function DS(t,e){this._context=t,this._k=(1-e)/6}DS.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:MS(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 kS=function t(e){function n(t){return new DS(t,e)}return n.tension=function(e){return t(+e)},n}(0),RS=Math.abs,IS=Math.atan2,NS=Math.cos,jS=Math.max,BS=Math.min,US=Math.sin,VS=Math.sqrt,GS=1e-12,HS=Math.PI,zS=HS/2,FS=2*HS;function WS(t){return t>1?0:t<-1?HS:Math.acos(t)}function qS(t){return t>=1?zS:t<=-1?-zS:Math.asin(t)}function YS(t,e,n){var r=t._x1,i=t._y1,o=t._x2,a=t._y2;if(t._l01_a>GS){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>GS){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 ZS(t,e){this._context=t,this._alpha=e}ZS.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:YS(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 XS=function t(e){function n(t){return e?new ZS(t,e):new CS(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function KS(t,e){this._context=t,this._alpha=e}KS.prototype={areaStart:vS,areaEnd:vS,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:YS(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 $S=function t(e){function n(t){return e?new KS(t,e):new PS(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function QS(t,e){this._context=t,this._alpha=e}QS.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:YS(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 JS=function t(e){function n(t){return e?new QS(t,e):new DS(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function tT(t){return t<0?-1:1}function eT(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(tT(o)+tT(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function nT(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function rT(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 iT(t){this._context=t}function oT(t){this._context=new aT(t)}function aT(t){this._context=t}function sT(t){return new iT(t)}function uT(t){return new oT(t)}function cT(t){this._context=t}function lT(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]}iT.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:rT(this,this._t0,nT(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,rT(this,nT(this,n=eT(this,t,e)),n);break;default:rT(this,this._t0,n=eT(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}},(oT.prototype=Object.create(iT.prototype)).point=function(t,e){iT.prototype.point.call(this,e,t)},aT.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)}},cT.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=lT(t),i=lT(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 hT=function(t){return new cT(t)};function fT(t,e){this._context=t,this._t=e}fT.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 pT=function(t){return new fT(t,.5)};function dT(t){return new fT(t,0)}function vT(t){return new fT(t,1)}var 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(){var e=null!==t&&t.apply(this,arguments)||this;return e.curveTypes={curveLinear:dS,curveLinearClosed:mS,curveBasis:bS,curveBasisClosed:wS,curveBasisOpen:ES,curveBundle:TS,curveCardinal:AS,curveCardinalClosed:LS,curveCardinalOpen:kS,curveCatmullRom:XS,curveCatmullRomClosed:$S,curveCatmullRomOpen:JS,curveMonotoneX:sT,curveMonotoneY:uT,curveNatural:hT,curveStep:pT,curveStepAfter:vT,curveStepBefore:dT},e}return gT(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}(Vm),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.isZoomBarEnabled=function(){if(!this.services.cartesianScales)return!1;if(!_d.getProperty(this.model.getOptions(),"zoomBar","top","enabled"))return!1;this.services.cartesianScales.findDomainAndRangeAxes();var t=this.services.cartesianScales.getMainXAxisPosition(),e=_d.getProperty(this.model.getOptions(),"axes",t,"scaleType");return t===B.BOTTOM&&e===H.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(),o=_d.getProperty(this.model.getOptions(),"axes",r,"domain");return Array.isArray(o)&&2===o.length?o:n.extendsDomain(r,jv(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(ft.ZoomDomain.CHANGE,{newDomain:t})},e.prototype.getZoomRatio=function(){return _d.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=_d.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=kt.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=_d.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 _d.getProperty(this.model.getOptions(),"zoomBar",t,"loading")},e.prototype.isZoomBarLocked=function(t){return _d.getProperty(this.model.getOptions(),"zoomBar",t,"locked")},e}(Vm),bT=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(){return null!==t&&t.apply(this,arguments)||this}return bT(e,t),e.prototype.zoomIn=function(t,e,n){var r,i,o,a=n||mt;t&&(r=t.x,i=t.y,o=2);var s=Y_.getSVGElementSize(this.services.domUtils.getHolder(),{useClientDimensions:!0}),u=s.width,c=s.height;e.transition().duration(a.duration).ease(a.ease).attr("transform","translate("+u/2+", "+c/2+") scale("+o+") translate("+-r+","+-i+")"),this.services.events.dispatchEvent(ft.CanvasZoom.CANVAS_ZOOM_IN,{element:G_(t)})},e.prototype.zoomOut=function(t,e){var n=e||mt;t.transition().duration(n.duration).ease(n.ease).attr("transform",""),this.services.events.dispatchEvent(ft.CanvasZoom.CANVAS_ZOOM_OUT)},e}(Vm),wT=function(){function t(t,e,n){if(this.renderType=I.HTML,this.configs={},this.model=t,this.services=e,n&&(this.configs=n,this.configs.id)){var r=_d.getProperty(this.model.getOptions(),"style","prefix");this.id=r+"--"+this.configs.id}this.parent||this.setParent(G_(this.services.domUtils.getMainContainer()))}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=_d.getProperty(this.model.getOptions(),"style","prefix");this.parent.classed(dt+"--"+n+"--"+this.type,!0),e&&e.classed(dt+"--"+n+"--"+this.type,!1)}},t.prototype.getParent=function(){return this.parent},t.prototype.getComponentContainer=function(t){if(void 0===t&&(t={withinChartClip:!1}),this.type){var e=_d.getProperty(this.model.getOptions(),"style","prefix"),n=this.id?"#"+this.id:"",r=Y_.appendOrSelect(this.parent,(this.renderType===I.SVG?"svg":"div")+n+"."+dt+"--"+e+"--"+this.type);if(t.withinChartClip){var i=this.model.get("chartClipId");if(i){var o=G_("#"+i),a=o.select("rect");0!==a.size()&&parseFloat(a.attr("height"))>0&&r.attr("clip-path","url(#"+i+")")}}return r.attr("width","100%").attr("height","100%")}return this.parent},t.prototype.getOptions=function(){if(this.configs.options){var t=_d.merge({},this.model.getOptions(),this.configs.options);return t}return this.model.getOptions()},t}(),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)}}(),ET=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="legend",e.renderType=I.HTML,e}return xT(e,t),e.prototype.render=function(){var t=this,e=this.getOptions(),n=_d.getProperty(e,"legend"),r=_d.getProperty(n,"alignment"),i=_d.getProperty(e,"legend","orientation"),o=this.model.getDataGroups(),s=wt.items.status.DISABLED,u=o.some((function(t){return t.status===s})),c=_d.getProperty(n,"order"),l=this.getComponentContainer().classed("center-aligned",r===F.CENTER).classed("right-aligned",r===F.RIGHT).classed(i,!0).classed("has-deactivated-items",u).attr("role",a.GROUP).attr("aria-label","Data groups").attr("data-name","legend-items");c&&(o=this.sortDataGroups(o,c));var h=l.selectAll("div.legend-item").data(o,(function(t){return t.name})),f=h.enter().append("div").attr("class","legend-item");f.merge(l.selectAll("div.legend-item")).classed("active",(function(t,e){return t.status===wt.items.status.ACTIVE}));var p=_d.getProperty(this.getOptions(),"legend","clickable");l.classed("clickable",p&&o.length>1);var d=wt.checkbox.radius,v=f.append("div").classed("checkbox",!0),g=v.merge(h.select("div.checkbox")).attr("role",a.CHECKBOX).attr("tabindex",p?0:-1).attr("aria-labelledby",(function(e,n){return t.services.domUtils.generateElementIDString("legend-datagroup-"+n+"-title")})).attr("aria-checked",(function(t){var e=t.status;return e===wt.items.status.ACTIVE})).attr("width",2*d).attr("height",2*d).attr("class",(function(e,n){return t.model.getColorClassName({classNameTypes:[j.BACKGROUND],dataGroupName:e.name,originalClassName:"checkbox"})})).style("background",(function(e){return e.status===wt.items.status.ACTIVE?t.model.getFillColor(e.name)||t.model.getStrokeColor(e.name):null})).classed("active",(function(t,e){return t.status===wt.items.status.ACTIVE})),m=(v.append("svg").attr("focusable",!1).attr("preserveAspectRatio","xMidYMid meet").attr("xmlns","http://www.w3.org/2000/svg").attr("width","11").attr("height","11").attr("viewBox","0 0 31 28").attr("aria-hidden",!0).style("will-change","transform").append("path").attr("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"),f.append("p").merge(h.select("p")),_d.getProperty(e,"legend","additionalItems"));if(m&&o.length){var y=this,_=l.selectAll("div.additional-item").data(m);_.exit().remove();var b,O=_.enter().append("div").merge(_).classed("legend-item",!0).classed("additional",!0).attr("aria-labelledby",(function(e,n){return t.services.domUtils.generateElementIDString("legend-datagroup-"+(g.size()+n)+"-title")}));O.selectAll("*").remove();var w=1;O.append("svg").classed("icon",!0).each((function(t,e){var n=G_(this);b&&b==t.type?w++:(b=t.type,w=1),y.addAdditionalItem(n,t,w)}));O.append("p").merge(O.select("p"));this.truncateLegendText()}h.exit().on("mouseover",null).on("click",null).on("mouseout",null).remove(),p&&f.size()>1&&this.addEventListeners()},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.addAdditionalItem=function(t,e,n){var r=wt.area,i=r.width,s=r.height;if(e.type===st.RADIUS?t.style("width",s+"px").style("height",s+"px"):t.style("width",i+"px").style("height",s+"px"),e.type===st.RADIUS){var u=wt.radius,c=u.iconData,l=u.fill,h=u.stroke,f=t.attr("fill","none").selectAll("circle").data(c).enter();f.append("circle").classed("radius",!0).attr("role",a.IMG).attr("aria-label","radius").attr("cx",(function(t){return t.cx})).attr("cy",(function(t){return t.cy})).attr("r",(function(t){return t.r})).style("fill",e.fill?e.fill:l).style("stroke",e.stroke?e.stroke:h)}else if(e.type===st.LINE){var p=wt.line;t.select("line.line").empty()&&t.append("line").classed("line-"+n,!0).attr("role",a.IMG).attr("aria-label","line").attr("x1",0).attr("y1",p.yPosition).attr("x2",i).attr("y2",p.yPosition).style("stroke",e.stroke?e.stroke:p.stroke).style("stroke-width",p.strokeWidth)}else if(e.type===st.AREA)t.select("rect.area").empty()&&t.append("rect").classed("area-"+n,!0).attr("role",a.IMG).attr("aria-label","area").attr("width",i).attr("height",s).style("fill",n>3&&!e.fill?wt.area.fill:e.fill).style("stroke",e.stroke);else if(e.type===st.SIZE){var d=wt.size,v=(c=d.iconData,l=d.fill,h=d.stroke,t.attr("fill","none").attr("role",a.IMG).attr("aria-label","size").selectAll("rect").data(c).enter());v.append("rect").classed("size",!0).attr("width",(function(t){return t.width})).attr("height",(function(t){return t.height})).attr("y",(function(t){return 0})).style("fill",e.fill?e.fill:l).style("stroke",e.stroke?e.stroke:h).style("stroke-width",1)}else if(e.type===st.QUARTILE){c=wt.quartile.iconData;var g=t.selectAll("rect").attr("role",a.IMG).attr("aria-label","quartile").data(c).enter();g.append("rect").attr("class",(function(t,e){return"quartile-"+(0===e?"wrapper":"line")})).attr("x",(function(t){return t.x})).attr("y",(function(t){return t.y})).attr("width",(function(t){return t.width})).attr("height",(function(t){return t.height}))}else if(e.type===st.ZOOM){var m=_d.getProperty(o,"legend","zoom"),y=(c=m.iconData,m.color),_=t.attr("role",a.IMG).attr("aria-label","zoom").selectAll("g.icon").data(c).enter();_.append("g").attr("x",(function(t){return t.x})).attr("y",(function(t){return t.y})).attr("width",(function(t){return t.width})).attr("height",(function(t){return t.height})).append("polygon").attr("points","7.7 4.82 5.78 4.82 5.78 2.89 4.82 2.89 4.82 4.82 2.89 4.82 2.89 5.78 4.82 5.78 4.82 7.7 5.78 7.7 5.78 5.78 7.7 5.78 7.7 4.82").attr("fill",(function(t){return e.color?e.color:y})),_.append("path").attr("d","M9.36,8.67A5.22,5.22,0,0,0,10.59,5.3,5.3,5.3,0,1,0,5.3,10.59,5.22,5.22,0,0,0,8.67,9.36L12.32,13l.68-.68Zm-4.06,1A4.34,4.34,0,1,1,9.63,5.3,4.33,4.33,0,0,1,5.3,9.63Z").attr("fill",(function(t){return e.color?e.color:y}))}},e.prototype.truncateLegendText=function(){var t=this.getComponentContainer(),e=_d.getProperty(this.getOptions(),"legend","truncation"),n=_d.getProperty(e,"type"),r=_d.getProperty(e,"threshold"),i=_d.getProperty(e,"numCharacter"),o=t.selectAll("div.legend-item p");o.attr("id",(function(t,e){var n=this.parentNode.querySelector("div.checkbox")||this.parentNode;return n.getAttribute("aria-labelledby")})),n!==V.NONE?o.html((function(t){return t.name.length>r?_d.truncateLabel(t.name,n,i):t.name})):o.html((function(t){return t.name}))},e.prototype.addEventListeners=function(){var t=this,e=this.getComponentContainer(),n=this.getOptions(),r=_d.getProperty(n,"legend"),i=_d.getProperty(r,"truncation","threshold");e.selectAll("div.legend-item").on("mouseover",(function(e){t.services.events.dispatchEvent(ft.Legend.ITEM_HOVER,{hoveredElement:G_(this)});var n=G_(this);n.select("div.checkbox").classed("hovered",!0);var r=n.datum();r.name.length>i&&t.services.events.dispatchEvent(ft.Tooltip.SHOW,{event:e,hoveredElement:n,content:r.name})})).on("mousemove",(function(e){t.services.events.dispatchEvent(ft.Tooltip.MOVE,{event:e})})).on("click",(function(){t.services.events.dispatchEvent(ft.Legend.ITEM_CLICK,{clickedElement:G_(this)});var e=G_(this),n=e.datum();t.model.toggleDataLabel(n.name)})).on("mouseout",(function(){var e=G_(this);e.select("div.checkbox").classed("hovered",!1),t.services.events.dispatchEvent(ft.Tooltip.HIDE),t.services.events.dispatchEvent(ft.Legend.ITEM_MOUSEOUT,{hoveredElement:e})})),e.selectAll("div.legend-item div.checkbox").on("keyup",(function(e){e.key&&"Tab"===e.key&&t.services.events.dispatchEvent(ft.Legend.ITEM_HOVER,{hoveredElement:G_(this)})})),e.selectAll("div.legend-item div.checkbox").on("keydown",(function(e,n){e.key&&" "===e.key?(e.preventDefault(),t.model.toggleDataLabel(n.name)):e.key&&"Tab"===e.key&&t.services.events.dispatchEvent(ft.Legend.ITEM_MOUSEOUT,{hoveredElement:G_(this)})})),e.selectAll("g.additional-item").on("mouseover",(function(e){var n=G_(this),r=n.datum();r.name.length>i&&t.services.events.dispatchEvent(ft.Tooltip.SHOW,{event:e,hoveredElement:n,content:r.name})}))},e}(wT),ST=function(t){return t},TT=1,MT=2,CT=3,AT=4,PT=1e-6;function LT(t){return"translate("+t+",0)"}function DT(t){return"translate(0,"+t+")"}function kT(t){return e=>+t(e)}function RT(t,e){return e=Math.max(0,t.bandwidth()-2*e)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function IT(){return!this.__axis}function NT(t,e){var n=[],r=null,i=null,o=6,a=6,s=3,u="undefined"!==typeof window&&window.devicePixelRatio>1?0:.5,c=t===TT||t===AT?-1:1,l=t===AT||t===MT?"x":"y",h=t===TT||t===CT?LT:DT;function f(f){var p=null==r?e.ticks?e.ticks.apply(e,n):e.domain():r,d=null==i?e.tickFormat?e.tickFormat.apply(e,n):ST:i,v=Math.max(o,0)+s,g=e.range(),m=+g[0]+u,y=+g[g.length-1]+u,_=(e.bandwidth?RT:kT)(e.copy(),u),b=f.selection?f.selection():f,O=b.selectAll(".domain").data([null]),w=b.selectAll(".tick").data(p,e).order(),x=w.exit(),E=w.enter().append("g").attr("class","tick"),S=w.select("line"),T=w.select("text");O=O.merge(O.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),w=w.merge(E),S=S.merge(E.append("line").attr("stroke","currentColor").attr(l+"2",c*o)),T=T.merge(E.append("text").attr("fill","currentColor").attr(l,c*v).attr("dy",t===TT?"0em":t===CT?"0.71em":"0.32em")),f!==b&&(O=O.transition(f),w=w.transition(f),S=S.transition(f),T=T.transition(f),x=x.transition(f).attr("opacity",PT).attr("transform",(function(t){return isFinite(t=_(t))?h(t+u):this.getAttribute("transform")})),E.attr("opacity",PT).attr("transform",(function(t){var e=this.parentNode.__axis;return h((e&&isFinite(e=e(t))?e:_(t))+u)}))),x.remove(),O.attr("d",t===AT||t===MT?a?"M"+c*a+","+m+"H"+u+"V"+y+"H"+c*a:"M"+u+","+m+"V"+y:a?"M"+m+","+c*a+"V"+u+"H"+y+"V"+c*a:"M"+m+","+u+"H"+y),w.attr("opacity",1).attr("transform",(function(t){return h(_(t)+u)})),S.attr(l+"2",c*o),T.attr(l,c*v).text(d),b.filter(IT).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===MT?"start":t===AT?"end":"middle"),b.each((function(){this.__axis=_}))}return f.scale=function(t){return arguments.length?(e=t,f):e},f.ticks=function(){return n=Array.from(arguments),f},f.tickArguments=function(t){return arguments.length?(n=null==t?[]:Array.from(t),f):n.slice()},f.tickValues=function(t){return arguments.length?(r=null==t?null:Array.from(t),f):r&&r.slice()},f.tickFormat=function(t){return arguments.length?(i=t,f):i},f.tickSize=function(t){return arguments.length?(o=a=+t,f):o},f.tickSizeInner=function(t){return arguments.length?(o=+t,f):o},f.tickSizeOuter=function(t){return arguments.length?(a=+t,f):a},f.tickPadding=function(t){return arguments.length?(s=+t,f):s},f.offset=function(t){return arguments.length?(u=+t,f):u},f}function jT(t){return NT(TT,t)}function BT(t){return NT(MT,t)}function UT(t){return NT(CT,t)}function VT(t){return NT(AT,t)}var GT=function(t,e){for(var n=new Array(e),r=0;r<e;++r)n[r]=t(r/(e-1));return n},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)}}(),zT=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="color-legend",e.renderType=I.SVG,e.gradient_id="gradient-id-"+Math.floor(99999999999*Math.random()),e.handleAxisCompleteEvent=function(t){var n=e.getComponentContainer(),r=Y_.getSVGElementSize(n,{useAttrs:!0}).width,i=_d.getProperty(e.getOptions(),"data","loading");if(r>wt.color.barWidth&&!i){var o=_d.getProperty(e.getOptions(),"heatmap","colorLegend","title"),a=e.services.cartesianScales,s=a.getMainXScale(),u=s.range();if(u[0]>1&&(n.select("g.legend").attr("transform","translate("+u[0]+", 0)"),o)){var c=Y_.getSVGElementSize(n.select("g.legend-title").select("text"),{useBBox:!0}).width,l=u[0]-c-9;l>1?n.select("g.legend-title").attr("transform","translate("+l+", 0)"):(n.select("g.legend").attr("transform","translate("+u[0]+", 16)"),n.select("g.legend-title").attr("transform","translate("+u[0]+", 0)"))}}else n.select("g.legend-title").attr("transform","translate(0, 0)")},e}return HT(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(ft.Axis.RENDER_COMPLETE,this.handleAxisCompleteEvent)},e.prototype.render=function(t){void 0===t&&(t=!1);var e=this.getOptions(),n=this.getComponentContainer(),r=Y_.getSVGElementSize(n,{useAttrs:!0}).width,i=_d.getProperty(e,"color","gradient","colors"),o=_d.getProperty(e,"heatmap","colorLegend","type"),a=_d.getProperty(e,"color","pairing","option"),s=_d.getProperty(e,"heatmap","colorLegend","title"),u=_d.getProperty(this.getOptions(),"data","loading");if(u)n.html("");else{var c=!_d.isEmpty(i),l=this.model.getValueDomain(),h=!(r<=wt.color.barWidth),f=h?wt.color.barWidth:r,p=Y_.appendOrSelect(n,"g.legend"),d=Y_.appendOrSelect(p,"g.legend-axis");if(s){var v=Y_.appendOrSelect(n,"g.legend-title"),g=Y_.appendOrSelect(v,"text");g.text(s).attr("dy","0.7em"),p.attr("transform","translate(0, 16)")}var m=l[0]<0&&l[1]>0?"diverge":"mono";a<1&&a>4&&"mono"===m?a=1:a<1&&a>2&&"diverge"===m&&(a=1);var y=[],_="diverge"===m?17:11;if(c)y=i;else for(var b=1;b<_+1;b++)y.push(o===ut.LINEAR?"stop-color-"+m+"-"+a+"-"+b:"fill-"+m+"-"+a+"-"+b);var O=bx(l[0],l[1]),w=GT(O,3),x=AE().domain(l).range([0,f]),E=UT(x).tickSize(0).tickValues(w);switch(o){case ut.LINEAR:this.drawLinear(y,p,f);break;case ut.QUANTIZE:var S=this.drawQuantize(y,m,c,p,f);x.range([S,f]);break;default:throw Error("Entered color legend type is not supported.")}d.attr("transform","translate(0,"+wt.color.axisYTranslation+")").call(E),d.select(".domain").remove(),d.select("g.tick:last-of-type text").style("text-anchor",h?"middle":"end"),d.select("g.tick:first-of-type text").style("text-anchor",h?"middle":"start")}},e.prototype.drawLinear=function(t,e,n){var r=100/(t.length-1),i=Y_.appendOrSelect(e,"linearGradient");i.attr("id",this.gradient_id+"-legend").selectAll("stop").data(t).enter().append("stop").attr("offset",(function(t,e){return e*r+"%"})).attr("class",(function(e,n){return t[n]})).attr("stop-color",(function(t){return t}));var o=Y_.appendOrSelect(e,"rect");o.attr("width",n).attr("height",wt.color.barHeight).style("fill","url(#"+this.gradient_id+"-legend)")},e.prototype.drawQuantize=function(t,e,n,r,i){n||"diverge"!==e||t.splice(t.length/2,1);var o=xE().domain(t).range([0,i]),a=Y_.appendOrSelect(r,"g.quantized-rect");return a.selectAll("rect").data(o.domain()).join("rect").attr("x",(function(t){return o(t)})).attr("y",0).attr("width",Math.max(0,o.bandwidth()-1)).attr("height",wt.color.barHeight).attr("class",(function(t){return t})).attr("fill",(function(t){return t})),"mono"===(!n&&e)?o.bandwidth()-1:0},e.prototype.destroy=function(){var t=this.services.events;t.removeEventListener(ft.Axis.RENDER_COMPLETE,this.handleAxisCompleteEvent)},e}(ET),FT=(n("9b04"),{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 ",selectorFocusable:"\n a[href], area[href], input:not([disabled]),\n button:not([disabled]),select:not([disabled]),\n textarea:not([disabled]),\n iframe, object, embed, *[tabindex], *[contenteditable=true]\n "}),WT=FT;function qT(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function YT(t,e,n){return e&&qT(t.prototype,e),n&&qT(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function ZT(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function XT(t){return JT(t)||QT(t)||$T(t)||KT()}function KT(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function $T(t,e){if(t){if("string"===typeof t)return tM(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?tM(t,e):void 0}}function QT(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function JT(t){if(Array.isArray(t))return tM(t)}function tM(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function eM(t){return t.reduce((function(t,e){return Array.isArray(e)?t.push.apply(t,XT(eM(e))):t.push(e),t}),[])}function nM(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return eM(e).reduce((function(t,e){return e(t)}),function(){function t(){ZT(this,t)}return YT(t)}())}function rM(t){return rM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rM(t)}function iM(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function oM(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function aM(t,e,n){return e&&oM(t.prototype,e),n&&oM(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function sM(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&uM(t,e)}function uM(t,e){return uM=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},uM(t,e)}function cM(t){var e=fM();return function(){var n,r=pM(t);if(e){var i=pM(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return lM(this,n)}}function lM(t,e){if(e&&("object"===rM(e)||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return hM(t)}function hM(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function fM(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function pM(t){return pM=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},pM(t)}var dM=function(t){var e=function(t){sM(n,t);var e=cM(n);function n(t){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(iM(this,n),r=e.call(this,t,i),r.children=[],!t||t.nodeType!==Node.ELEMENT_NODE)throw new TypeError("DOM element should be given to initialize this widget.");return r.element=t,r.options=Object.assign(Object.create(r.constructor.options),i),r.constructor.components.set(r.element,hM(r)),r}return aM(n,[{key:"release",value:function(){for(var t=this.children.pop();t;t=this.children.pop())t.release();return this.constructor.components.delete(this.element),null}}],[{key:"create",value:function(t,e){return this.components.get(t)||new this(t,e)}}]),n}(t);return e};function vM(t,e){var n=t.target,r=t.currentTarget;if("function"===typeof n.matches){if(n.matches(e))return n;if(n.matches("".concat(e," *"))){var i=n.closest(e);if((r.nodeType===Node.DOCUMENT_NODE?r.documentElement:r).contains(i))return i}}}function gM(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return t.addEventListener.apply(t,n),{release:function(){return t.removeEventListener.apply(t,n),null}}}function mM(t){return mM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mM(t)}function yM(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _M(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function bM(t,e,n){return e&&_M(t.prototype,e),n&&_M(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function OM(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&wM(t,e)}function wM(t,e){return wM=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},wM(t,e)}function xM(t){var e=TM();return function(){var n,r=MM(t);if(e){var i=MM(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return EM(this,n)}}function EM(t,e){if(e&&("object"===mM(e)||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return SM(t)}function SM(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function TM(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function MM(t){return MM=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},MM(t)}var CM=function(t){var e=function(t){OM(n,t);var e=xM(n);function n(){return yM(this,n),e.apply(this,arguments)}return bM(n,null,[{key:"init",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=Object.assign(Object.create(this.options),n);if(!e||e.nodeType!==Node.ELEMENT_NODE&&e.nodeType!==Node.DOCUMENT_NODE)throw new TypeError("DOM document or DOM element should be given to search for and initialize this widget.");if(e.nodeType!==Node.ELEMENT_NODE||!e.matches(r.selectorInit)){var i=r.initEventNames.map((function(i){return gM(e,i,(function(e){var i=vM(e,"[".concat(r.attribInitTarget,"]"));if(i){e.delegateTarget=i;var o=i.ownerDocument.querySelectorAll(i.getAttribute(r.attribInitTarget));if(o.length>1)throw new Error("Target widget must be unique.");if(1===o.length){"A"===i.tagName&&e.preventDefault();var a=t.create(o[0],n);"function"===typeof a.createdByLauncher&&a.createdByLauncher(e)}}}))}));return{release:function(){for(var t=i.pop();t;t=i.pop())t.release()}}}return this.create(e,n),""}}]),n.forLazyInit=!0,n}(t);return e};function AM(t){return AM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},AM(t)}function PM(t){return RM(t)||kM(t)||DM(t)||LM()}function LM(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function DM(t,e){if(t){if("string"===typeof t)return IM(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?IM(t,e):void 0}}function kM(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function RM(t){if(Array.isArray(t))return IM(t)}function IM(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function NM(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function jM(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function BM(t,e,n){return e&&jM(t.prototype,e),n&&jM(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function UM(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&VM(t,e)}function VM(t,e){return VM=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},VM(t,e)}function GM(t){var e=FM();return function(){var n,r=WM(t);if(e){var i=WM(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return HM(this,n)}}function HM(t,e){if(e&&("object"===AM(e)||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return zM(t)}function zM(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function FM(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function WM(t){return WM=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},WM(t)}var qM=function(t){var e=function(t){UM(n,t);var e=GM(n);function n(){return NM(this,n),e.apply(this,arguments)}return BM(n,[{key:"_changeState",value:function(){throw new Error("_changeState() should be overridden to perform actual change in state.")}},{key:"changeState",value:function(){for(var t=this,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var i="string"===typeof n[0]?n.shift():void 0,o=Object(n[0])===n[0]&&"function"!==typeof n[0]?n.shift():void 0,a="function"===typeof n[0]?n.shift():void 0;if("function"!==typeof this.shouldStateBeChanged||this.shouldStateBeChanged(i,o)){var s={group:o&&o.group,state:i},u=[s.group,i].filter(Boolean).join("-").split("-").map((function(t){return t[0].toUpperCase()+t.substr(1)})).join(""),c=new CustomEvent(this.options["eventBefore".concat(u)],{bubbles:!0,cancelable:!0,detail:o}),l=o&&o.delegatorNode||this.element,h=!l.dispatchEvent(c);if(h){if(a){var f=new Error("Changing state (".concat(JSON.stringify(s),") has been canceled."));f.canceled=!0,a(f)}}else{var p=[i,o].filter(Boolean);this._changeState.apply(this,PM(p).concat([function(){l.dispatchEvent(new CustomEvent(t.options["eventAfter".concat(u)],{bubbles:!0,cancelable:!0,detail:o})),a&&a()}]))}}else a&&a(null,!0)}}]),n}(t);return e};function YM(t){if(!t||"function"===typeof t)return{launchingElement:null,launchingEvent:null};var e=t.delegateTarget||t.currentTarget||t,n=t.currentTarget&&t;if(e&&!e.nodeType)throw new TypeError("DOM Node should be given for launching element.");if(n&&!n.type)throw new TypeError("DOM event should be given for launching event.");return{launchingElement:e,launchingEvent:n}}function ZM(t){return ZM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ZM(t)}function XM(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function KM(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function $M(t,e,n){return e&&KM(t.prototype,e),n&&KM(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function QM(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&JM(t,e)}function JM(t,e){return JM=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},JM(t,e)}function tC(t){var e=rC();return function(){var n,r=iC(t);if(e){var i=iC(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return eC(this,n)}}function eC(t,e){if(e&&("object"===ZM(e)||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return nC(t)}function nC(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function rC(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function iC(t){return iC=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},iC(t)}function oC(t){var e=function(t){QM(n,t);var e=tC(n);function n(){return XM(this,n),e.apply(this,arguments)}return $M(n,[{key:"show",value:function(t,e){t&&"function"!==typeof t||(e=t),this.changeState("shown",YM(t),e)}},{key:"hide",value:function(t,e){t&&"function"!==typeof t||(e=t),this.changeState("hidden",YM(t),e)}}]),n}(t);return e}var aC=[qM,oC],sC=aC;function uC(t){return uC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},uC(t)}function cC(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function lC(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function hC(t,e,n){return e&&lC(t.prototype,e),n&&lC(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function fC(){return fC="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=pC(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(arguments.length<3?t:n):i.value}},fC.apply(this,arguments)}function pC(t,e){while(!Object.prototype.hasOwnProperty.call(t,e))if(t=bC(t),null===t)break;return t}function dC(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&vC(t,e)}function vC(t,e){return vC=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},vC(t,e)}function gC(t){var e=_C();return function(){var n,r=bC(t);if(e){var i=bC(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return mC(this,n)}}function mC(t,e){if(e&&("object"===uC(e)||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return yC(t)}function yC(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _C(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function bC(t){return bC=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},bC(t)}var OC=function(t){var e=function(t){dC(n,t);var e=gC(n);function n(){var t;cC(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return t=e.call.apply(e,[this].concat(i)),t.handles=new Set,t}return hC(n,[{key:"manage",value:function(t){return this.handles.add(t),t}},{key:"unmanage",value:function(t){return this.handles.delete(t),t}},{key:"release",value:function(){var t=this;return this.handles.forEach((function(e){e.release(),t.handles.delete(e)})),fC(bC(n.prototype),"release",this).call(this)}}]),n}(t);return e};function wC(t){return wC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wC(t)}function xC(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function EC(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function SC(t,e,n){return e&&EC(t.prototype,e),n&&EC(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function TC(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&MC(t,e)}function MC(t,e){return MC=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},MC(t,e)}function CC(t){var e=LC();return function(){var n,r=DC(t);if(e){var i=DC(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return AC(this,n)}}function AC(t,e){if(e&&("object"===wC(e)||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return PC(t)}function PC(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function LC(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function DC(t){return DC=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},DC(t)}var kC,RC,IC=function(t){TC(n,t);var e=CC(n);function n(t,r){var i;return xC(this,n),i=e.call(this,t,r),i._handleFocusinListener=void 0,i._handleKeydownListener=void 0,i._handleFocusin=function(t){var e=i.element.querySelector(i.options.selectorModalContainer)||i.element;i.element.classList.contains(i.options.classVisible)&&!e.contains(t.target)&&i.options.selectorsFloatingMenus.every((function(e){return!vM(t,e)}))&&i.element.querySelector(WT.selectorTabbable).focus()},i._hookCloseActions(),i}return SC(n,[{key:"createdByLauncher",value:function(t){this.show(t)}},{key:"shouldStateBeChanged",value:function(t){return"shown"===t?!this.element.classList.contains(this.options.classVisible):this.element.classList.contains(this.options.classVisible)}},{key:"_changeState",value:function(t,e,n){var r,i=this,o=function(){if(r&&(r=i.unmanage(r).release()),"shown"===t&&i.element.offsetWidth>0&&i.element.offsetHeight>0){i.previouslyFocusedNode=i.element.ownerDocument.activeElement;var e=i.element.querySelector(i.options.selectorPrimaryFocus)||i.element.querySelector(WT.selectorTabbable);e.focus()}n()};if(this._handleFocusinListener&&(this._handleFocusinListener=this.unmanage(this._handleFocusinListener).release()),"shown"===t){var a="onfocusin"in this.element.ownerDocument.defaultView,s=a?"focusin":"focus";this._handleFocusinListener=this.manage(gM(this.element.ownerDocument,s,this._handleFocusin,!a))}"hidden"===t?(this.element.classList.toggle(this.options.classVisible,!1),this.element.ownerDocument.body.classList.toggle(this.options.classBody,!1),(this.options.selectorFocusOnClose||this.previouslyFocusedNode)&&(this.element.ownerDocument.querySelector(this.options.selectorFocusOnClose)||this.previouslyFocusedNode).focus()):"shown"===t&&(this.element.classList.toggle(this.options.classVisible,!0),this.element.ownerDocument.body.classList.toggle(this.options.classBody,!0)),r=this.manage(gM(this.element,"transitionend",o))}},{key:"_hookCloseActions",value:function(){var t=this;this.manage(gM(this.element,"click",(function(e){var n=vM(e,t.options.selectorModalClose);n&&(e.delegateTarget=n),(n||e.target===t.element)&&t.hide(e)}))),this._handleKeydownListener&&(this._handleKeydownListener=this.unmanage(this._handleKeydownListener).release()),this._handleKeydownListener=this.manage(gM(this.element.ownerDocument.body,"keydown",(function(e){27===e.which&&t.shouldStateBeChanged("hidden")&&(e.stopPropagation(),t.hide(e))})))}}],[{key:"options",get:function(){var t=WT.prefix;return{selectorInit:"[data-modal]",selectorModalClose:"[data-modal-close]",selectorPrimaryFocus:"[data-modal-primary-focus]",selectorsFloatingMenus:[".".concat(t,"--overflow-menu-options"),".".concat(t,"--tooltip"),".flatpickr-calendar"],selectorModalContainer:".".concat(t,"--modal-container"),classVisible:"is-visible",classBody:"".concat(t,"--body--with-modal-open"),attribInitTarget:"data-modal-target",initEventNames:["click"],eventBeforeShown:"modal-beingshown",eventAfterShown:"modal-shown",eventBeforeHidden:"modal-beinghidden",eventAfterHidden:"modal-hidden"}}}]),n.components=new WeakMap,n}(nM(dM,CM,sC,OC)),NC=IC,jC=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,r){var i=t.call(this,e,n,r)||this;return i.type="modal",i.isEventListenerAdded=!1,i.handleShowModal=function(){i.modal.html(i.getModalHTML()),i.modal.select("div.cds--modal-footer button.cds--btn").on("click",(function(){return i.model.exportToCSV()}));var t=NC.create(i.modal.node());t.show()},i.init(),i}return jC(e,t),e.prototype.addEventListeners=function(){this.services.events.addEventListener(ft.Modal.SHOW,this.handleShowModal)},e.prototype.removeEventListeners=function(){this.services.events.removeEventListener(ft.Modal.SHOW,this.handleShowModal)},e.prototype.getModalHTML=function(){var t=this.model.getOptions(),e=_d.getProperty(t,"style","prefix"),n=this.model.getTabularDataArray();return'\n\t\t<div class="cds--modal-container cds--modal-container">\n\t\t\t<div class="cds--modal-header cds--modal-header">\n\t\t\t\t<p class="cds--modal-header__label cds--type-delta cds--modal-header__label cds--type-delta" id="modal-title">Tabular representation</p>\n\n\t\t\t\t<p class="cds--modal-header__heading cds--type-beta cds--modal-header__heading cds--type-beta" id="modal-description">'+t.title+'</p>\n\n\t\t\t\t<button class="cds--modal-close cds--modal-close" type="button" data-modal-close aria-label="close modal" data-modal-primary-focus>\n\t\t\t\t\t<svg focusable="false" preserveAspectRatio="xMidYMid meet" xmlns="http://www.w3.org/2000/svg" fill="currentColor" aria-label="Close" width="20" height="20" viewBox="0 0 32 32" role="img" class="cds--modal-close__icon cds--modal-close__icon">\n\t\t\t\t\t\t<path d="M24 9.4L22.6 8 16 14.6 9.4 8 8 9.4 14.6 16 8 22.6 9.4 24 16 17.4 22.6 24 24 22.6 17.4 16 24 9.4z"></path>\n\t\t\t\t\t</svg>\n\t\t\t\t</button>\n\t\t\t</div>\n\n\t\t\t<div class="cds--modal-content cds--modal-content">\n\t\t\t\t<table class="cds--data-table cds--data-table--no-border cds--data-table cds--data-table--no-border">\n\t\t\t\t\t<thead>\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t'+Ml(n,0).map((function(t){return'<th scope="col">\n\t\t\t\t\t\t\t\t<div class="cds--table-header-label cds--table-header-label">'+t+"</div>\n\t\t\t\t\t\t\t</th>"})).join("")+"\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t</thead>\n\n\t\t\t\t\t<tbody>"+n.slice(1).map((function(t){return"\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t"+t.map((function(t){return"<td>"+t+"</td>"})).join("")+"\n\t\t\t\t\t\t\t</tr>"})).join("")+'\n\t\t\t\t\t</tbody>\n\t\t\t\t</table>\n\t\t\t</div>\n\n\t\t\t<div class="cds--modal-footer cds--modal-footer">\n\t\t\t <div class="'+dt+"--"+e+'-modal-footer-spacer"></div>\n\t\t\t <button class="cds--btn cds--btn--primary cds--btn cds--btn--primary" type="button" data-modal-primary-focus>Download as CSV</button>\n\t\t\t</div>\n\t\t</div>'},e.prototype.render=function(){var t=this.model.getOptions();if(!this.isEventListenerAdded){var e=G_(this.services.domUtils.getHolder()),n=_d.getProperty(t,"style","prefix");this.modal=Y_.appendOrSelect(e,"div."+dt+"--"+n+"--modal"),this.addEventListeners(),this.isEventListenerAdded=!0,this.modal.attr("data-modal",!0).attr("class","cds--modal cds--modal").attr("role","dialog").attr("aria-modal",!0).attr("aria-labelledby","modal-title").attr("aria-describedby","modal-description").attr("tabindex",-1)}},e.prototype.destroy=function(){this.removeEventListeners(),this.isEventListenerAdded=!1},e}(wT);(function(t){t["LEFT"]="left",t["RIGHT"]="right",t["TOP"]="top",t["BOTTOM"]="bottom"})(RC||(RC={}));var UC=(kC={},kC[RC.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)}},kC[RC.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)}},kC[RC.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)}},kC[RC.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)}},kC),VC="undefined"!==typeof window?window:{innerHeight:0,scrollY:0,innerWidth:0,scrollX:0},GC=function(){function t(t){void 0===t&&(t={}),this.positions=UC,this.positions=Object.assign({},UC,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:VC.innerHeight-VC.scrollY,height:VC.innerWidth-VC.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}(),HC=(new GC,GC),zC=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.type="threshold",r.renderType=I.SVG,r.positionService=new HC,r}return zC(e,t),e.prototype.render=function(t){var e=this;void 0===t&&(t=!1);var n=_d.getProperty(this.getOptions(),"axes"),r=[];Object.keys(n).forEach((function(t){var e,i;if(Object.values(B).includes(t)){var o=n[t];o.thresholds&&o.thresholds.length>0&&r.push({axisPosition:t,thresholds:o.thresholds,correspondingDatasets:null===(e=o)||void 0===e?void 0:e.correspondingDatasets,mapsTo:null===(i=o)||void 0===i?void 0:i.mapsTo})}}));var i=this.getComponentContainer({withinChartClip:!0}),o=i.selectAll("g.axis-thresholds").data(r,(function(t){return t.axisPosition}));o.exit().attr("opacity",0).remove();var a=o.enter().append("g"),s=a.merge(o);s.attr("class",(function(t){return"axis-thresholds "+t.axisPosition}));var u=s.selectAll("g.threshold-group").data((function(t){return t.thresholds.map((function(n){return n.axisPosition=t.axisPosition,n.datum=e.constructDatumObj(t,n),n}))}));u.exit().attr("opacity",0).remove();var c=u.enter().append("g");c.append("line").attr("class","threshold-line"),c.append("rect").attr("class","threshold-hoverable-area");var l=c.merge(u);l.attr("class","threshold-group");var h=this;s.each((function(e){var n=e.axisPosition,r=h.services.cartesianScales.getScaleByPosition(n),i=h.services.cartesianScales.getScaleTypeByPosition(n),o=null,a=null;n===B.LEFT||n===B.RIGHT?(a=r,o=h.services.cartesianScales.getMainXScale()):(o=r,a=h.services.cartesianScales.getMainYScale());var s=i===H.LABELS,u=o.range(),c=u[0],l=u[1],f=a.range(),p=f[0],d=f[1],v=h.services.cartesianScales,g=v.getOrientation(),m=function(t){return v.getDomainValue(t)},y=function(t){return v.getRangeValue(t)},_=_d.flipDomainAndRangeBasedOnOrientation(m,y,g),b=_[0],O=_[1],w=G_(this);n===B.TOP||n===B.BOTTOM?(w.selectAll("line.threshold-line").transition().call((function(e){return h.services.transitions.setupTransition({transition:e,name:"threshold-line-update",animate:t})})).attr("y1",d).attr("y2",p).attr("x1",(function(t){var e=t.datum;return b(e)+(s?r.step()/2:0)})).attr("x2",(function(t){var e=t.datum;return b(e)+(s?r.step()/2:0)})).style("stroke",(function(t){var e=t.fillColor;return e})),w.selectAll("rect.threshold-hoverable-area").attr("x",0).attr("y",(function(t){var e=t.datum;return-b(e)})).attr("width",Math.abs(p-d)).classed("rotate",!0)):(w.selectAll("line.threshold-line").transition().call((function(e){return h.services.transitions.setupTransition({transition:e,name:"threshold-line-update",animate:t})})).attr("x1",c).attr("x2",l).attr("y1",(function(t){var e=t.datum;return O(e)+(s?r.step()/2:0)})).attr("y2",(function(t){var e=t.datum;return O(e)+(s?r.step()/2:0)})).style("stroke",(function(t){var e=t.fillColor;return e})),w.selectAll("rect.threshold-hoverable-area").attr("x",c).attr("y",(function(t){var e=t.datum;return O(e)})).attr("width",Math.abs(l-c)).classed("rotate",!1))})),this.services.events.addEventListener(ft.Threshold.SHOW,(function(t){e.setThresholdLabelPosition(t.detail),e.label.classed("hidden",!1)})),this.services.events.addEventListener(ft.Threshold.HIDE,(function(t){e.label.classed("hidden",!0)})),this.appendThresholdLabel(),this.addEventListeners()},e.prototype.getFormattedValue=function(t){var e=t.value,n=t.axisPosition,r=this.getOptions(),i=this.services.cartesianScales.getScaleTypeByPosition(n);if(i===H.TIME){var o=[B.LEFT,B.RIGHT].includes(n),a=this.services.cartesianScales.getMainXScale(),s=this.services.cartesianScales.getMainYScale(),u=o?s:a,c=_d.getProperty(r,"timeScale"),l=km(u.ticks());return Am(e,0,u.ticks(),l,c)}return e.toLocaleString("en")},e.prototype.appendThresholdLabel=function(){var t=G_(this.services.domUtils.getHolder()),e=_d.getProperty(this.getOptions(),"style","prefix");this.label=Y_.appendOrSelect(t,"div."+dt+"--"+e+"--threshold--label").classed("hidden",!0)},e.prototype.setThresholdLabelPosition=function(t){var e=t.event,n=t.datum,r=this.services.domUtils.getHolder(),i=wd(e,r),o=n.valueFormatter?n.valueFormatter(n.value):this.getFormattedValue(n);this.label.html((n.label||"Threshold")+": "+o).style("background-color",n.fillColor);var a=this.label.node(),s=this.positionService.findBestPlacementAt({left:i[0],top:i[1]},a,[RC.RIGHT,RC.LEFT,RC.TOP,RC.BOTTOM],(function(){return{width:r.offsetWidth,height:r.offsetHeight}})),u=this.positionService.findPositionAt({left:i[0],top:i[1]},a,s);this.positionService.setElement(a,u)},e.prototype.constructDatumObj=function(t,e){var n={};return t.correspondingDatasets&&(n["group"]=_d.getProperty(t,"correspondingDatasets",0)),n[t["mapsTo"]]=e.value,n},e.prototype.addEventListeners=function(){var t=this,e=this.getComponentContainer({withinChartClip:!0});e.selectAll("rect.threshold-hoverable-area").on("mouseover mousemove",(function(e){G_(this.parentNode).select("line.threshold-line").classed("active",!0),t.services.events.dispatchEvent(ft.Threshold.SHOW,{event:e,hoveredElement:G_(this),datum:G_(this).datum()})})).on("mouseout",(function(e){G_(this.parentNode).select("line.threshold-line").classed("active",!1),t.services.events.dispatchEvent(ft.Threshold.HIDE,{event:e,hoveredElement:G_(this),datum:G_(this).datum()})}))},e}(wT),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)}}(),qC=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="title",e.renderType=I.HTML,e}return WC(e,t),e.prototype.render=function(){var t=this.getComponentContainer(),e=_d.getProperty(this.getOptions(),"title"),n=t.selectAll("p.title").data([e]);if(n.enter().append("p").classed("title",!0).attr("role","heading").attr("aria-level",2).merge(n).html((function(t){return t})),n.node()&&n.node().offsetWidth<n.node().scrollWidth){var r=this;n.on("mouseover",(function(t){r.services.events.dispatchEvent(ft.Tooltip.SHOW,{event:t,hoveredElement:n,content:n.text()})})).on("mousemove",(function(t){r.services.events.dispatchEvent(ft.Tooltip.MOVE,{event:t})})).on("mouseout",(function(){r.services.events.dispatchEvent(ft.Tooltip.HIDE)}))}n.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=Y_.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(e){a.services.events.dispatchEvent(ft.Tooltip.SHOW,{event:e,hoveredElement:t,content:n})})).on("mousemove",(function(t){a.services.events.dispatchEvent(ft.Tooltip.MOVE,{event:t})})).on("mouseout",(function(){a.services.events.dispatchEvent(ft.Tooltip.HIDE)}))}}},e.prototype.getMaxTitleWidth=function(){return Y_.getSVGElementSize(this.parent.node(),{useAttrs:!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}(wT),YC=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-title",e.renderType=I.SVG,e}return YC(e,t),e.prototype.render=function(){var t=_d.getProperty(this.model.getDisplayData(),0),e=this.getOptions(),n=this.getComponentContainer(),r=e.data.groupMapsTo,i=_d.getProperty(e,"meter","proportional");if(i)this.displayTotal(),this.displayBreakdownTitle();else{var o=n.selectAll("text.meter-title").data([t[r]]);o.enter().append("text").classed("meter-title",!0).merge(o).attr("x",0).attr("y","1em").text((function(t){return t})),o.exit().remove(),this.appendPercentage()}this.displayStatus();var a=this.getMaxTitleWidth(),s=Y_.appendOrSelect(n,"text.meter-title");a>0&&s.node().getComputedTextLength()>a&&this.truncateTitle(s,a)},e.prototype.displayBreakdownTitle=function(){var t,e=this.getComponentContainer(),n=this.getOptions(),r=this.model.getMaximumDomain(this.model.getDisplayData()),i=_d.getProperty(n,"meter","proportional","total"),o=_d.getProperty(n,"meter","proportional","unit")?_d.getProperty(n,"meter","proportional","unit"):"";if(r===i)t=null;else{var a=null!==i?i-r:r,s=_d.getProperty(n,"meter","proportional","breakdownFormatter");t=null!==s?s({datasetsTotal:r,total:i}):r+" "+o+" used ("+a+" "+o+" available)"}var u=e.selectAll("text.proportional-meter-title").data([t]);u.enter().append("text").classed("proportional-meter-title",!0).merge(u).attr("x",0).attr("y","1em").text((function(t){return t})),u.exit().remove();var c=this.getMaxTitleWidth(),l=Y_.appendOrSelect(e,"text.proportional-meter-title");c>0&&l.node().getComputedTextLength()>c&&this.truncateTitle(l,c)},e.prototype.displayTotal=function(){var t=this.getComponentContainer(),e=this.getOptions(),n=_d.getProperty(e,"meter","proportional","total"),r=n?_d.getProperty(e,"meter","proportional","total"):this.model.getMaximumDomain(this.model.getDisplayData()),i=_d.getProperty(e,"meter","proportional","unit")?_d.getProperty(e,"meter","proportional","unit"):"",o=_d.getProperty(e,"meter","proportional","totalFormatter"),a=null!==o?o(r):n+" "+i+" total",s=Y_.getHTMLElementSize(this.services.domUtils.getMainContainer()),u=s.width?s.width:this.parent.node().getAttribute("width"),c=t.selectAll("text.proportional-meter-total").data([a]);c.enter().append("text").classed("proportional-meter-total",!0).merge(c).attr("x",this.model.getStatus()?u-Et.total.paddingRight:u).attr("y","1em").attr("text-anchor","end").text((function(t){return t})),c.exit().remove()},e.prototype.displayStatus=function(){var t=this,e=this.getComponentContainer(),n=Y_.getHTMLElementSize(this.services.domUtils.getMainContainer()),r=n.width?n.width:0,i=this.model.getStatus(),o=Et.status.indicatorSize/2,a=Y_.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=_d.getProperty(this.model.getDisplayData(),0,"value"),e=this.getComponentContainer(),n=Y_.appendOrSelect(e,"text.meter-title"),r=!0===_d.getProperty(this.getOptions(),"meter","statusBar","percentageIndicator","enabled")?[t]:[],i=e.selectAll("text.percent-value").data(r),o=Et.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=Y_.appendOrSelect(this.parent,"tspan"),i=Et.statusBar.paddingRight,o=Math.ceil(r.node().getComputedTextLength()),a=Y_.appendOrSelect(this.parent,"text.percent-value");a.attr("x",+e.attr("x")+e.node().getComputedTextLength()+o+i)},e.prototype.getMaxTitleWidth=function(){var t=Y_.getHTMLElementSize(this.services.domUtils.getMainContainer()),e=_d.getProperty(this.getOptions(),"meter","proportional"),n=t.width?t.width:this.parent.node().getAttribute("width");if(null!==e){var r=Y_.appendOrSelect(this.parent,"text.proportional-meter-total").node(),i=Y_.getSVGElementSize(r,{useBBox:!0}).width;return n-i-Et.total.paddingLeft}var o=Y_.appendOrSelect(this.parent,"text.percent-value"),a=Et.statusBar.paddingRight,s=o.node().getComputedTextLength(),u=Y_.appendOrSelect(this.parent,"g.status-indicator").node(),c=Y_.getSVGElementSize(u,{useBBox:!0}).width+Et.status.paddingLeft;return n-s-a-c},e.prototype.getStatusIconPathString=function(t){switch(t){case nt.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 nt.DANGER:return"M10.7 11.5 4.5 5.3 5.3 4.5 11.5 10.7 Z";case nt.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}(qC),XC=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)}}(),KC=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.type="tooltip",i.renderType=I.HTML,i.isEventListenerAdded=!1,i.positionService=new HC,i.handleShowTooltip=function(t){var e=t.detail.data||t.detail.items,n=i.getTooltipHTML(t),r=Y_.appendOrSelect(i.tooltip,"div.content-box");if(_d.getProperty(i.getOptions(),"tooltip","customHTML"))if(t.detail.content){var o='<div class="title-tooltip"><p>'+t.detail.content+"</p></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 XC(e,t),e.prototype.addTooltipEventListener=function(){var t=this;this.services.events.addEventListener(ft.Tooltip.MOVE,(function(e){!1===t.tooltip.classed("hidden")&&t.positionTooltip(e)})),this.services.events.addEventListener(ft.Tooltip.SHOW,this.handleShowTooltip),this.services.events.addEventListener(ft.Tooltip.HIDE,this.handleHideTooltip),this.services.events.addEventListener(ft.Chart.MOUSEOUT,this.handleHideTooltip)},e.prototype.removeTooltipEventListener=function(){this.services.events.removeEventListener(ft.Tooltip.MOVE,null),this.services.events.removeEventListener(ft.Tooltip.SHOW,this.handleShowTooltip),this.services.events.removeEventListener(ft.Tooltip.HIDE,this.handleHideTooltip),this.services.events.removeEventListener(ft.Chart.MOUSEOUT,this.handleHideTooltip)},e.prototype.getItems=function(t){return t.detail.items?t.detail.items:[]},e.prototype.formatItems=function(t){var e=this,n=this.getOptions(),r=_d.getProperty(n,"tooltip","truncation","type"),i=_d.getProperty(n,"tooltip","truncation","threshold"),o=_d.getProperty(n,"tooltip","truncation","numCharacter");return r!==V.NONE?t.map((function(t){var n=t.labelIcon?12:0;return t.value=t.value?e.valueFormatter(t.value,t.label):t.value,t.label&&t.label.length+n>i&&(t.label=_d.truncateLabel(t.label,r,o)),t.value&&t.value.length>i&&(t.value=_d.truncateLabel(t.value,r,o)),t})):t},e.prototype.getTooltipHTML=function(t){var e;if(t.detail.content)e='<div class="title-tooltip"><p>'+t.detail.content+"</p></div>";else{var n=this.getItems(t),r=this.formatItems(n);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?'<div class="tooltip-color '+t.class+'"></div>':"")+"\n\t\t\t\t\t\t\t\t"+(t.color?'<div style="background-color: '+t.color+'" class="tooltip-color"></div>':"")+'\n\t\t\t\t\t\t\t\t<div class="label">\n\t\t\t\t\t\t\t\t<p>'+(t.label||"")+"</p>\n\t\t\t\t\t\t\t\t"+(t.labelIcon?'<span class="label-icon"/>'+t.labelIcon+"</span>":"")+"\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t"+(void 0===t.value||null===t.value?"":'<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,e){var n=this.getOptions(),r=_d.getProperty(n,"tooltip","valueFormatter");if(r)return r(t,e);if("function"===typeof t.getTime)return Em(t,"MMM d, yyyy");try{if("string"===typeof t&&/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z/.test(t))return Em(Date.parse(t),"MMM d, yyyy")}catch(i){}return t.toLocaleString()},e.prototype.render=function(){var t=this.getOptions(),e=_d.getProperty(t,"tooltip","enabled");if(e){var n=G_(this.services.domUtils.getHolder()),r=_d.getProperty(t,"style","prefix");this.tooltip=Y_.appendOrSelect(n,"div."+dt+"--"+r+"--tooltip"),this.tooltip.style("max-width",null).attr("role","tooltip"),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.getOptions(),o=_d.getProperty(i,"zoomBar","top","enabled"),a=_d.getProperty(t,"detail","mousePosition");if(a){var s=_d.getProperty(i,"zoomBar","top","type"),u=kt.height[s];o&&(a[1]+=u+kt.spacerHeight)}else a=wd(_d.getProperty(t,"detail","event"),n);var c,l=n.offsetWidth,h=n.offsetHeight;c=a[0]/l>.9?RC.LEFT:a[0]/l<.1?RC.RIGHT:this.positionService.findBestPlacementAt({left:a[0],top:a[1]},r,[RC.RIGHT,RC.LEFT,RC.TOP,RC.BOTTOM],(function(){return{width:l,height:h}}));var f=Pt.horizontalOffset;c===RC.LEFT&&(f*=-1),e=this.positionService.findPositionAt({left:a[0]+f,top:a[1]},r,c),this.positionService.setElement(r,e)},e}(wT),$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)}}(),QC=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},JC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return $C(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,i=this.getOptions(),o=this.services.cartesianScales,a=o.getDomainIdentifier(),s=o.isDualAxes(),u=i.data.groupMapsTo,c=o.getDomainLabel(),l=o.getRangeLabel(),h=n[0][a];if(1===n.length){var f=n[0],p=o.getRangeIdentifier(f);if(s){var d=o.getRangeAxisPosition({datum:f,groups:[f[u]]});l=o.getScaleLabel(d)}var v=f[p];r=QC([{label:c,value:h}],Array.isArray(v)&&2===v.length?[{label:"Start",value:v[0]},{label:"End",value:v[1]}]:[{label:l,value:f[p]}]),t.detail.additionalItems&&t.detail.additionalItems.forEach((function(t){return r.push({label:t.label,value:t.value})})),r.push({label:i.tooltip.groupLabel,value:f[u],color:this.model.getFillColor(f[u]),class:this.model.getColorClassName({classNameTypes:[j.TOOLTIP],dataGroupName:f[u]})})}else if(n.length>1&&(r=[{label:c,value:h}],r=r.concat(n.map((function(t){var n=t[o.getRangeIdentifier(t)];return{label:t[u],value:Array.isArray(n)&&2===n.length?n[0]+" - "+n[1]:n,color:e.model.getFillColor(t[u]),class:e.model.getColorClassName({classNameTypes:[j.TOOLTIP],dataGroupName:t[u]})}})).sort((function(t,e){return e.value-t.value}))),!s&&!0===_d.getProperty(i,"tooltip","showTotal"))){var g=o.getRangeIdentifier();r.push({label:Ml(i,"tooltip.totalLabel")||"Total",value:n.reduce((function(t,e){return t+e[g]}),0),bold:!0})}return r},e}(KC),tA=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)}}(),eA=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.type="chart-clip",i.renderType=I.SVG,i.chartClipId="chart-clip-id-"+Math.floor(99999999999*Math.random()),i.init(),i}return tA(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=Y_.appendOrSelect(t,"clipPath."+this.type).attr("id",this.chartClipId);var l=Y_.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}(wT),nA=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)}}(),rA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="canvas-chart-clip",e.chartClipId="canvas-chart-clip-id-"+Math.floor(99999999999*Math.random()),e}return nA(e,t),e.prototype.createClipPath=function(){var t=this.parent,e=Y_.getSVGElementSize(this.parent,{useAttrs:!0}),n=e.width,r=e.height;this.chartClipPath=Y_.appendOrSelect(t,"clipPath."+this.type).attr("id",this.chartClipId);var i=Y_.appendOrSelect(this.chartClipPath,"rect."+this.type);i.attr("x",0).attr("y",0).attr("width",n).attr("height",r),this.chartClipPath.merge(i).lower()},e}(eA),iA=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)}}(),oA=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n},aA=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.type="highlight",r.renderType=I.SVG,r.positionService=new HC,r.highlightStrokeWidth=1,r}return iA(e,t),e.prototype.render=function(t){void 0===t&&(t=!1);var e=_d.getProperty(this.getOptions(),"axes"),n=[];Object.keys(e).forEach((function(t){if(Object.values(B).includes(t)){var r=e[t];r.highlights&&r.highlights.data.length>0&&n.push({axisPosition:t,highlightStartMapsTo:r.highlights.highlightStartMapsTo,highlightEndMapsTo:r.highlights.highlightEndMapsTo,labelMapsTo:r.highlights.labelMapsTo,highlight:r.highlights.data,color:r.highlights.color})}}));var r=this.getComponentContainer({withinChartClip:!0}),i=r.selectAll("g.axis-highlight").data(n,(function(t){return t.axisPosition}));i.exit().attr("opacity",0).remove();var o=i.enter().append("g"),a=o.merge(i);a.attr("class",(function(t){return"axis-highlight "+t.axisPosition}));var s=a.selectAll("g.highlight-group").data((function(t){return t.highlight.map((function(e){return e.axisPosition=t.axisPosition,e.highlightStartMapsTo=t.highlightStartMapsTo,e.labelMapsTo=t.labelMapsTo,e.color=t.color,e.highlightEndMapsTo=t.highlightEndMapsTo,e}))}));s.exit().attr("opacity",0).remove();var u=s.enter().append("g");u.append("rect").attr("class","highlight-bar"),u.append("line").attr("class","highlight-line");var c=u.merge(s);c.attr("class","highlight-group");var l=this;a.each((function(e){var n=e.axisPosition,r=l.services.cartesianScales.getMainXScale(),i=l.services.cartesianScales.getMainYScale(),o=r.range(),a=o[0],s=o[1],u=i.range(),c=u[0],h=u[1],f=l.services.cartesianScales,p=f.getOrientation(),d=function(t){return f.getDomainValue(t)},v=function(t){return f.getRangeValue(t)},g=_d.flipDomainAndRangeBasedOnOrientation(d,v,p),m=g[0],y=g[1],_=G_(this);n===B.TOP||n===B.BOTTOM?_.selectAll("rect.highlight-bar").transition().call((function(e){return l.services.transitions.setupTransition({transition:e,name:"highlight-bar-update",animate:t})})).attr("y",Math.max(h+l.highlightStrokeWidth,0)).attr("height",Math.max(c-2*l.highlightStrokeWidth,0)).attr("x",(function(t){var e=t.highlightStartMapsTo,n=oA(t,["highlightStartMapsTo"]);return m(n[e])})).attr("width",(function(t){var e=t.highlightStartMapsTo,n=t.highlightEndMapsTo,r=oA(t,["highlightStartMapsTo","highlightEndMapsTo"]);return Math.max(m(r[n])-m(r[e]),0)})).style("stroke",(function(t){var e=t.color,n=t.labelMapsTo,r=oA(t,["color","labelMapsTo"]);return e&&e.scale[r[n]]?e.scale[r[n]]:null})).style("stroke-dasharray","2, 2").attr("stroke-width",l.highlightStrokeWidth+"px").style("fill-opacity",.1).style("fill",(function(t){var e=t.color,n=t.labelMapsTo,r=oA(t,["color","labelMapsTo"]);return e&&e.scale[r[n]]?e.scale[r[n]]:null})):_.selectAll("rect.highlight-bar").transition().call((function(e){return l.services.transitions.setupTransition({transition:e,name:"highlight-bar-update",animate:t})})).attr("x",a).attr("width",Math.max(s-a,0)).attr("y",(function(t){var e=t.highlightEndMapsTo,n=oA(t,["highlightEndMapsTo"]);return y(n[e])})).attr("height",(function(t){var e=t.highlightStartMapsTo,n=t.highlightEndMapsTo,r=oA(t,["highlightStartMapsTo","highlightEndMapsTo"]);return Math.max(y(r[e])-y(r[n]),0)})).style("stroke",(function(t){var e=t.color,n=t.labelMapsTo,r=oA(t,["color","labelMapsTo"]);return e&&e.scale[r[n]]?e.scale[r[n]]:null})).style("stroke-dasharray","2, 2").attr("stroke-width",l.highlightStrokeWidth+"px").style("fill-opacity",.1).style("fill",(function(t){var e=t.color,n=t.labelMapsTo,r=oA(t,["color","labelMapsTo"]);return e&&e.scale[r[n]]?e.scale[r[n]]:null}))}))},e}(wT);const sA=Math.PI,uA=2*sA,cA=1e-6,lA=uA-cA;function hA(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function fA(){return new hA}hA.prototype=fA.prototype={constructor:hA,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>cA)if(Math.abs(l*s-u*c)>cA&&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((sA-Math.acos((d+h-v)/(2*g*m)))/2),_=y/m,b=y/g;Math.abs(_-1)>cA&&(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)>cA||Math.abs(this._y1-c)>cA)&&(this._+="L"+u+","+c),n&&(h<0&&(h=h%uA+uA),h>lA?this._+="A"+n+","+n+",0,1,"+l+","+(t-a)+","+(e-s)+"A"+n+","+n+",0,1,"+l+","+(this._x1=u)+","+(this._y1=c):h>cA&&(this._+="A"+n+","+n+",0,"+ +(h>=sA)+","+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 pA=fA;function dA(t){return t[0]}function vA(t){return t[1]}var gA=function(t,e){var n=_v(!0),r=null,i=dS,o=null;function a(a){var s,u,c,l=(a=yv(a)).length,h=!1;for(null==r&&(o=i(c=pA())),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 t="function"===typeof t?t:void 0===t?dA:_v(t),e="function"===typeof e?e:void 0===e?vA:_v(e),a.x=function(e){return arguments.length?(t="function"===typeof e?e:_v(+e),a):t},a.y=function(t){return arguments.length?(e="function"===typeof t?t:_v(+t),a):e},a.defined=function(t){return arguments.length?(n="function"===typeof t?t:_v(!!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},mA=function(t,e,n){var r=null,i=_v(!0),o=null,a=dS,s=null;function u(u){var c,l,h,f,p,d=(u=yv(u)).length,v=!1,g=new Array(d),m=new Array(d);for(null==o&&(s=a(p=pA())),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]=+e(f,c,u),s.point(r?+r(f,c,u):g[c],n?+n(f,c,u):m[c]))}if(p)return s=null,p+""||null}function c(){return gA().defined(i).curve(a).context(o)}return t="function"===typeof t?t:void 0===t?dA:_v(+t),e="function"===typeof e?e:_v(void 0===e?0:+e),n="function"===typeof n?n:void 0===n?vA:_v(+n),u.x=function(e){return arguments.length?(t="function"===typeof e?e:_v(+e),r=null,u):t},u.x0=function(e){return arguments.length?(t="function"===typeof e?e:_v(+e),u):t},u.x1=function(t){return arguments.length?(r=null==t?null:"function"===typeof t?t:_v(+t),u):r},u.y=function(t){return arguments.length?(e="function"===typeof t?t:_v(+t),n=null,u):e},u.y0=function(t){return arguments.length?(e="function"===typeof t?t:_v(+t),u):e},u.y1=function(t){return arguments.length?(n=null==t?null:"function"===typeof t?t:_v(+t),u):n},u.lineX0=u.lineY0=function(){return c().x(t).y(e)},u.lineY1=function(){return c().x(t).y(n)},u.lineX1=function(){return c().x(r).y(e)},u.defined=function(t){return arguments.length?(i="function"===typeof t?t:_v(!!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},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)}}(),_A=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="area",e.renderType=I.SVG,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("legend-hover-area").call((function(t){return e.services.transitions.setupTransition({transition:t,name:"legend-hover-area"})})).attr("opacity",(function(t){return t.name!==n.datum()["name"]?vt.opacity.unselected:vt.opacity.selected}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("path.area").transition("legend-mouseout-area").call((function(t){return e.services.transitions.setupTransition({transition:t,name:"legend-mouseout-area"})})).attr("opacity",vt.opacity.selected)},e}return yA(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(ft.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(ft.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this.getComponentContainer({withinChartClip:!0}),r=this.getOptions(),i=[0,0],o=this.services.cartesianScales,a=o.getOrientation(),s=mA().curve(this.services.curves.getD3Curve()).defined((function(t,e){var n=o.getRangeIdentifier(),r=t[n];return null!==r&&void 0!==r})),u=this.model.getGroupedData(this.configs.groups),c=_d.getProperty(r,"bounds"),l=c&&u&&1===u.length;!l&&c&&console.warn("Bounds can only be shown when having 1 single datagroup, you've supplied "+u.length);var h=0,f=function(t,e){!1===_d.getProperty(r,"axes",t,"includeZero")&&e[0]>0&&e[1]>0&&(h=e[0])},p=function(t,e){return l?o.getBoundedScaledValues(t,e)[0]:o.getRangeValue(h)},d=function(t,e){return l?o.getBoundedScaledValues(t,e)[1]:o.getRangeValue(t,e)};a===G.VERTICAL?(i=o.getMainYScale().domain(),f(o.getMainYAxisPosition(),i),s.x((function(t,e){return o.getDomainValue(t,e)})).y0((function(t,e){return p(t,e)})).y1((function(t,e){return d(t,e)}))):(i=o.getMainXScale().domain(),f(o.getMainXAxisPosition(),i),s.x0((function(t,e){return p(t,e)})).x1((function(t,e){return d(t,e)})).y((function(t,e){return o.getDomainValue(t,e)})));var v=_d.getProperty(r,"color","gradient","enabled"),g=u&&1===u.length&&v;u.length>1&&v&&console.error("Gradients can only be enabled when having 1 single dataset");var m=n.selectAll("path.area").data(u,(function(t){return t.name})),y=G_(this.services.domUtils.getMainContainer());if(m.exit().attr("opacity",0).remove(),u.length){if(g){var _=y.select("path."+this.model.getColorClassName({classNameTypes:[j.STROKE],dataGroupName:u[0].name})).node(),b=void 0;if(_)b=getComputedStyle(_,null).getPropertyValue("stroke");else{var O=_d.getProperty(this.model.getOptions(),"color","scale");if(null!==O){var w=Object.keys(O);b=O[w[0]]}}eb.appendOrUpdateLinearGradient({svg:this.parent,id:this.services.domUtils.generateElementIDString(u[0].name.replace(" ","")+"_"+this.gradient_id),x1:"0%",x2:"0%",y1:"0%",y2:"100%",stops:eb.getStops(i,b)})}else this.parent.selectAll("defs linearGradient").empty()||this.parent.selectAll("defs linearGradient").each((function(){this.parentNode.remove()}));var x=this,E=m.enter().append("path");g?E.merge(m).style("fill",(function(t){return"url(#"+e.services.domUtils.generateElementIDString(t.name.replace(" ","")+"_"+e.gradient_id)+")"})).attr("class","area").attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[j.FILL],dataGroupName:t.name,originalClassName:"area"})})).attr("d",(function(t){var e=t.data;return s(e)})):(E.attr("opacity",0).merge(m).attr("class","area").attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[j.FILL,j.STROKE],dataGroupName:t.name,originalClassName:"area"})})).style("fill",(function(t){return x.model.getFillColor(t.name)})).transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"area-update-enter",animate:t})})).attr("opacity",l?1:vt.opacity.selected).attr("d",(function(t){var e=t.data;return s(e)})),l&&E.attr("fill-opacity",vt.opacity.selected).style("stroke",(function(t){return x.model.getStrokeColor(t.name)})).style("stroke-dasharray","2, 2").attr("stroke-width","0.7px"))}},e.prototype.destroy=function(){var t=this.services.events;t.removeEventListener(ft.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(ft.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e}(wT),bA=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)}}(),OA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="area-stacked",e.renderType=I.SVG,e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement,r=e.getOptions(),i=r.data.groupMapsTo;e.parent.selectAll("path.area").transition("legend-hover-area").call((function(t){return e.services.transitions.setupTransition({transition:t,name:"legend-hover-area"})})).attr("opacity",(function(t){return _d.getProperty(t,0,i)!==n.datum().name?vt.opacity.unselected:vt.opacity.selected}))},e.handleLegendMouseOut=function(){e.parent.selectAll("path.area").transition("legend-mouseout-area").call((function(t){return e.services.transitions.setupTransition({transition:t,name:"legend-mouseout-area"})})).attr("opacity",vt.opacity.selected)},e}return bA(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(ft.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(ft.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this.getComponentContainer({withinChartClip:!0}),r=this,i=this.getOptions(),o=i.data.groupMapsTo,s=Object.keys(i.axes).some((function(t){return i.axes[t].percentage})),u=this.model.getStackedData({percentage:s,groups:this.configs.groups}),c=_d.getProperty(u,0,0),l=this.services.cartesianScales.getDomainAxisPosition({firstDatum:c}),h=this.services.cartesianScales.getRangeAxisPosition({firstDatum:c}),f=this.services.cartesianScales.getScaleByPosition(h),p=n.selectAll("path.area").data(u,(function(t){return _d.getProperty(t,0,o)}));this.areaGenerator=mA().x((function(t,n){return e.services.cartesianScales.getValueThroughAxisPosition(l,t.data.sharedStackKey,n)})).y0((function(t){return f(t[0])})).y1((function(t){return f(t[1])})).curve(this.services.curves.getD3Curve()),p.exit().attr("opacity",0).remove();var d=p.enter().append("path").attr("opacity",0);d.merge(p).data(u,(function(t){return _d.getProperty(t,0,o)})).attr("class","area").attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[j.FILL],dataGroupName:_d.getProperty(t,0,o),originalClassName:"area"})})).style("fill",(function(t){return r.model.getFillColor(_d.getProperty(t,0,o))})).attr("role",a.GRAPHICS_SYMBOL).attr("aria-roledescription","area").attr("aria-label",(function(t){return _d.getProperty(t,0,o)})).transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"area-update-enter",animate:t})})).attr("opacity",vt.opacity.selected).attr("d",this.areaGenerator)},e}(wT),wA=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(){return null!==t&&t.apply(this,arguments)||this}return wA(e,t),e.prototype.getBarWidth=function(t){var e=this.getOptions();if(e.bars.width)return e.bars.width;var n=this.model.getDisplayData().length,r=this.services.cartesianScales.getMainXScale(),i=Y_.getSVGElementSize(this.parent,{useAttrs:!0}).width;if(!r.step){var o=_d.getProperty(e,"bars","spacingFactor");return Math.min(e.bars.maxWidth,i*o/n)}return Math.min(e.bars.maxWidth,r.step()/2)},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}(wT),EA=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)}}(),SA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="simple-bar",e.renderType=I.SVG,e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement,r=e.getOptions().data.groupMapsTo;e.parent.selectAll("path.bar").transition("legend-hover-simple-bar").call((function(t){return e.services.transitions.setupTransition({transition:t,name:"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("legend-mouseout-simple-bar").call((function(t){return e.services.transitions.setupTransition({transition:t,name:"legend-mouseout-simple-bar"})})).attr("opacity",1)},e}return EA(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(ft.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(ft.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this,n=this.getOptions(),r=n.data.groupMapsTo,i=this.getComponentContainer({withinChartClip:!0}),o=this.model.getDisplayData(this.configs.groups),s=this.services.cartesianScales.getOrientation(),u=i.selectAll("path.bar").data(o,(function(t){return t[r]}));u.exit().attr("opacity",0).remove();var c=u.enter().append("path").attr("opacity",0);c.merge(u).classed("bar",!0).attr("width",this.getBarWidth.bind(this)).transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"bar-update-enter",animate:t})})).attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[j.FILL],dataGroupName:t[r],originalClassName:"bar"})})).style("fill",(function(t){return e.model.getFillColor(t[r])})).attr("d",(function(t,n){var r,i,o=e.services.cartesianScales.getRangeIdentifier(),a=e.getBarWidth(),u=t[o],c=e.services.cartesianScales.getDomainValue(t,n)-a/2,l=c+a;if(Array.isArray(u)&&2===u.length)r=e.services.cartesianScales.getRangeValue(u[0]),i=e.services.cartesianScales.getRangeValue(u[1],n);else{var h=e.services.cartesianScales.getRangeScale(),f=h.domain()[0];r=e.services.cartesianScales.getRangeValue(Math.max(0,f)),i=e.services.cartesianScales.getRangeValue(t,n)}var p=Math.abs(i-r);if(0!==p&&p<2&&(i=u>0&&s===G.VERTICAL||u<0&&s===G.HORIZONTAL?r-2:r+2),!e.isOutsideZoomedDomain(c,l))return _d.generateSVGPathString({x0:c,x1:l,y0:r,y1:i},s)})).attr("opacity",1).attr("role",a.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,n){var r=G_(this);r.classed("hovered",!0),t.services.events.dispatchEvent(ft.Bar.BAR_MOUSEOVER,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(ft.Tooltip.SHOW,{event:e,hoveredElement:r,data:[n]})})).on("mousemove",(function(e,n){t.services.events.dispatchEvent(ft.Bar.BAR_MOUSEMOVE,{event:e,element:G_(this),datum:n}),t.services.events.dispatchEvent(ft.Tooltip.MOVE,{event:e})})).on("click",(function(e,n){t.services.events.dispatchEvent(ft.Bar.BAR_CLICK,{event:e,element:G_(this),datum:n})})).on("mouseout",(function(e,n){var r=G_(this);r.classed("hovered",!1),t.services.events.dispatchEvent(ft.Bar.BAR_MOUSEOUT,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(ft.Tooltip.HIDE,{hoveredElement:r})}))},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(ft.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(ft.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e}(xA),TA=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)}}(),MA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="grouped-bar",e.renderType=I.SVG,e.padding=5,e.defaultStepFactor=70,e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement,r=e.getOptions().data.groupMapsTo;e.parent.selectAll("path.bar").transition("legend-hover-bar").call((function(t){return e.services.transitions.setupTransition({transition:t,name:"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("legend-mouseout-bar").call((function(t){return e.services.transitions.setupTransition({transition:t,name:"legend-mouseout-bar"})})).attr("opacity",1)},e}return TA(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(ft.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(ft.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this,n=this.model.getDisplayData(this.configs.groups),r=this.getOptions(),i=r.data.groupMapsTo;this.setGroupScale();var o=this.getComponentContainer({withinChartClip:!0}),s=_d.removeArrayDuplicates(n.map((function(t){var n=e.services.cartesianScales.getDomainIdentifier(t);return t[n]&&"function"===typeof t[n].toString?t[n].toString():t[n]}))),u=o.selectAll("g.bars").data(s,(function(t){return t}));u.exit().attr("opacity",0).remove();var c=u.enter().append("g").classed("bars",!0).attr("role",a.GROUP).attr("data-name","bars"),l=c.merge(u);l.transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"bar-group-update-enter",animate:t})})).attr("transform",(function(t,n){var r=e.services.cartesianScales.getDomainValue(t,n),i=r-e.getGroupWidth()/2;return e.services.cartesianScales.getOrientation()===G.VERTICAL?"translate("+i+", 0)":"translate(0, "+i+")"}));var h=l.selectAll("path.bar").data((function(t){return e.getDataCorrespondingToLabel(t)}),(function(t){return t[i]}));h.exit().attr("opacity",0).remove();var f=h.enter().append("path").attr("opacity",0);f.merge(h).classed("bar",!0).transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"bar-update-enter",animate:t})})).attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[j.FILL],dataGroupName:t[i],originalClassName:"bar"})})).style("fill",(function(t){return e.model.getFillColor(t[i])})).attr("d",(function(t,n){var r=e.groupScale(t[i]),o=e.getBarWidth(),a=r,s=r+o,u=e.services.cartesianScales.getRangeAxisPosition({datum:t}),c=e.services.cartesianScales.getValueThroughAxisPosition(u,0),l=e.services.cartesianScales.getRangeValue(t),h=e.services.cartesianScales.getDomainValue(t,n)-o/2,f=h+o;if(!e.isOutsideZoomedDomain(h,f))return _d.generateSVGPathString({x0:a,x1:s,y0:c,y1:l},e.services.cartesianScales.getOrientation())})).attr("opacity",1).attr("role",a.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,n){var r=G_(this);r.classed("hovered",!0),t.services.events.dispatchEvent(ft.Bar.BAR_MOUSEOVER,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(ft.Tooltip.SHOW,{event:e,hoveredElement:r,data:[n]})})).on("mousemove",(function(e,n){var r=G_(this);t.services.events.dispatchEvent(ft.Bar.BAR_MOUSEMOVE,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(ft.Tooltip.MOVE,{event:e})})).on("click",(function(e,n){t.services.events.dispatchEvent(ft.Bar.BAR_CLICK,{event:e,element:G_(this),datum:n})})).on("mouseout",(function(e,n){var r=G_(this);r.classed("hovered",!1),t.services.events.dispatchEvent(ft.Bar.BAR_MOUSEOUT,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(ft.Tooltip.HIDE,{hoveredElement:r})}))},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(ft.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(ft.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.getDataCorrespondingToLabel=function(t){var e=this,n=this.model.getDisplayData(this.configs.groups);return n.filter((function(n){var r=e.services.cartesianScales.getDomainIdentifier(n);return n[r].toString()===t}))},e.prototype.getGroupWidth=function(){var t=this.model.getGroupedData(this.configs.groups),e=this.getTotalGroupPadding();return this.getBarWidth()*t.length+e},e.prototype.getDomainScaleStep=function(){var t=this.services.cartesianScales.getDomainScale(),e=this.model.getGroupedData(this.configs.groups),n=this.defaultStepFactor;if("function"===typeof t.step)n=t.step();else if(e.length>0){var r=e.find((function(t){var e;return(null===(e=t.data)||void 0===e?void 0:e.length)>1}));if(r){var i=this.services.cartesianScales.getDomainIdentifier(r.data[0]);n=Math.abs(t(r.data[1][i])-t(r.data[0][i]))}}return n},e.prototype.getTotalGroupPadding=function(){var t=this.model.getGroupedData(this.configs.groups);if(1===t.length)return 0;var e=Math.min(5,this.getDomainScaleStep()/this.defaultStepFactor*5);return e*(t.length-1)},e.prototype.getBarWidth=function(){var t=this.getOptions(),e=_d.getProperty(t,"bars","width"),n=_d.getProperty(t,"bars","maxWidth");if(null!==e&&(null===n||e<=n))return e;var r=this.model.getGroupedData(this.configs.groups),i=r.length,o=this.getTotalGroupPadding();return Math.min(n,(this.getDomainScaleStep()-o)/i)},e.prototype.setGroupScale=function(){var t=this.model.getActiveDataGroupNames(this.configs.groups);this.groupScale=xE().domain(t).rangeRound([0,this.getGroupWidth()])},e}(xA),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)}}(),AA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="stacked-bar",e.renderType=I.SVG,e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement,r=e.model.getOptions().data.groupMapsTo;e.parent.selectAll("path.bar").transition("legend-hover-bar").call((function(t){return e.services.transitions.setupTransition({transition:t,name:"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("legend-mouseout-bar").call((function(t){return e.services.transitions.setupTransition({transition:t,name:"legend-mouseout-bar"})})).attr("opacity",1)},e}return CA(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(ft.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(ft.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this,n=this.getComponentContainer({withinChartClip:!0}),r=this.getOptions(),i=r.data.groupMapsTo,o=this.model.getStackedData({groups:this.configs.groups,divergent:!0}),s=this.model.getActiveDataGroupNames(),u=n.selectAll("g.bars").data(o,(function(t){return _d.getProperty(t,0,i)}));u.exit().attr("opacity",0).remove(),u.enter().append("g").classed("bars",!0).attr("role",a.GROUP).attr("data-name","bars");var c=n.selectAll("g.bars").selectAll("path.bar").data((function(t){return t}),(function(t){return t.data.sharedStackKey}));c.exit().remove(),c.enter().append("path").merge(c).classed("bar",!0).transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"bar-update-enter",animate:t})})).attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[j.FILL],dataGroupName:t[i],originalClassName:"bar"})})).style("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,u=a+o,c=e.services.cartesianScales.getRangeValue(t[0],n),l=e.services.cartesianScales.getRangeValue(t[1],n);if(!e.isOutsideZoomedDomain(a,u)){if(Math.abs(l-c)>0&&Math.abs(l-c)>r.bars.dividerSize){var h=t[0]<0&&t[1]<=0;h&&s.length>1?e.services.cartesianScales.getOrientation()===G.VERTICAL?l+=0===t[1]?2:1:l-=1:h||(e.services.cartesianScales.getOrientation()===G.VERTICAL?l+=1:l-=1)}return _d.generateSVGPathString({x0:a,x1:u,y0:c,y1:l},e.services.cartesianScales.getOrientation())}})).attr("opacity",1).attr("role",a.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.getOptions(),e=t.data.groupMapsTo,n=this;this.parent.selectAll("path.bar").on("mouseover",(function(t,r){var i,o=G_(this);o.classed("hovered",!0),n.services.events.dispatchEvent(ft.Bar.BAR_MOUSEOVER,{event:t,element:o,datum:r});var a=n.model.getDisplayData(n.configs.groups),s=a.find((function(t){var i=n.services.cartesianScales.getDomainIdentifier(t),o=n.services.cartesianScales.getRangeIdentifier(t);return t[o]===r.data[r[e]]&&t[i].toString()===r.data.sharedStackKey&&t[e]===r[e]}));if(void 0===s){var u=n.services.cartesianScales.getDomainIdentifier(),c=n.services.cartesianScales.getRangeIdentifier();i={},i[u]=r.data.sharedStackKey,i[c]=r.data[r[e]],i[e]=r[e],s=i}n.services.events.dispatchEvent(ft.Tooltip.SHOW,{event:t,hoveredElement:o,data:[s]})})).on("mousemove",(function(t,e){var r=G_(this);n.services.events.dispatchEvent(ft.Bar.BAR_MOUSEMOVE,{event:t,element:r,datum:e}),n.services.events.dispatchEvent(ft.Tooltip.MOVE,{event:t})})).on("click",(function(t,e){n.services.events.dispatchEvent(ft.Bar.BAR_CLICK,{event:t,element:G_(this),datum:e})})).on("mouseout",(function(t,e){var r=G_(this);r.classed("hovered",!1),n.services.events.dispatchEvent(ft.Bar.BAR_MOUSEOUT,{event:t,element:r,datum:e}),n.services.events.dispatchEvent(ft.Tooltip.HIDE,{hoveredElement:r})}))},e.prototype.getBarWidth=function(){var t=this.getOptions();if(_d.getProperty(t,"bars","width"))return t.bars.width;var e=this.services.cartesianScales.getMainXScale(),n=Y_.getSVGElementSize(this.parent,{useAttrs:!0}).width,r=this.model.getStackKeys().length,i=_d.getProperty(t,"bars","spacingFactor");return e.step?Math.min(t.bars.maxWidth,e.step()/2):Math.min(t.bars.maxWidth,n*i/r)},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(ft.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(ft.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e}(xA),PA=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(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="boxplot",e.renderType=I.SVG,e}return PA(e,t),e.prototype.render=function(t){var e=this,n=this.getComponentContainer({withinChartClip:!0}),r=this.getOptions(),i=r.data.groupMapsTo,o=this.model.getDataGroupNames(),s=this.services.cartesianScales.getMainXScale(),u=this.services.cartesianScales.getMainYScale(),c=s.range(),l=c[0],h=c[1],f=u.range(),p=f[0],d=f[1],v=h-l,g=p-d;if(0!==v){var m=this.services.cartesianScales,y=m.getOrientation(),_=y===G.VERTICAL,b=_d.flipDomainAndRangeBasedOnOrientation((function(t,n){return e.services.cartesianScales.getDomainValue(t,n)}),(function(t,n){return e.services.cartesianScales.getRangeValue(t,n)}),y),O=b[0],w=b[1],x=Math.floor((_?v:g)/o.length),E=Math.min(x/2,16),S=this.model.getBoxplotData(),T=n.selectAll(".box-group").data(S);T.exit().remove();var M=T.enter().append("g").attr("class","box-group"),C=T.merge(M);M.append("path").merge(T.select("path.vertical-line.start")).attr("class",(function(){return e.model.getColorClassName({classNameTypes:[j.STROKE],originalClassName:"vertical-line start"})})).attr("stroke-width",bt.strokeWidth.default).attr("fill","none").transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"boxplot-update-verticalstartline",animate:t})})).attr("d",(function(t){var e=m.getDomainValue(t[i]),n=e,r=m.getRangeValue(t.whiskers.min),o=m.getRangeValue(t.quartiles.q_25);return _d.generateSVGPathString({x0:e,x1:n,y0:r,y1:o},y)})),M.append("path").merge(T.select("path.vertical-line.end")).attr("class",(function(){return e.model.getColorClassName({classNameTypes:[j.STROKE],originalClassName:"vertical-line end"})})).attr("stroke-width",bt.strokeWidth.default).attr("fill","none").transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"boxplot-update-verticalendline",animate:t})})).attr("d",(function(t){var e=m.getDomainValue(t[i]),n=e,r=m.getRangeValue(t.whiskers.max),o=m.getRangeValue(t.quartiles.q_75);return _d.generateSVGPathString({x0:e,x1:n,y0:r,y1:o},y)})),M.append("path").merge(T.select("path.box")).attr("class",(function(){return e.model.getColorClassName({classNameTypes:[j.FILL,j.STROKE],originalClassName:"box"})})).attr("fill-opacity",bt.box.opacity.default).attr("stroke-width",bt.strokeWidth.default).attr("role",a.GRAPHICS_SYMBOL).attr("aria-roledescription","box").attr("aria-label",(function(t){return t[i]})).transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"boxplot-update-quartiles",animate:t})})).attr("d",(function(t){var e=m.getDomainValue(t[i])-E/2,n=e+E,r=m.getRangeValue(Math[_?"max":"min"](t.quartiles.q_75,t.quartiles.q_25)),o=r+Math.abs(m.getRangeValue(t.quartiles.q_75)-m.getRangeValue(t.quartiles.q_25));return _d.generateSVGPathString({x0:e,x1:n,y0:r,y1:o},y)})),M.append("path").merge(T.select("path.highlight-area")).attr("class","highlight-area").attr("opacity",0).attr("d",(function(t){var e=m.getDomainValue(t[i])-E/2,n=e+E,r=m.getRangeValue(t.whiskers.min),o=m.getRangeValue(t.whiskers.max);return _d.generateSVGPathString({x0:e,x1:n,y0:r,y1:o},y)})),M.append("path").merge(T.select("path.whisker.start")).attr("class",(function(){return e.model.getColorClassName({classNameTypes:[j.STROKE],originalClassName:"whisker start"})})).attr("stroke-width",bt.strokeWidth.thicker).attr("fill","none").transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"boxplot-update-startingwhisker",animate:t})})).attr("d",(function(t){var e=m.getDomainValue(t[i])-E/4,n=e+E/2,r=m.getRangeValue(t.whiskers.min),o=m.getRangeValue(t.whiskers.min);return _d.generateSVGPathString({x0:e,x1:n,y0:r,y1:o},y)})),M.append("path").merge(T.select("path.median")).attr("fill","none").attr("class",(function(){return e.model.getColorClassName({classNameTypes:[j.STROKE],originalClassName:"median"})})).attr("stroke-width",2).transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"boxplot-update-median",animate:t})})).attr("d",(function(t){var e=m.getDomainValue(t[i])-E/2,n=e+E,r=m.getRangeValue(t.quartiles.q_50),o=r;return _d.generateSVGPathString({x0:e,x1:n,y0:r,y1:o},y)})),M.append("path").merge(T.select("path.whisker.end")).attr("class",(function(){return e.model.getColorClassName({classNameTypes:[j.STROKE],originalClassName:"whisker end"})})).attr("stroke-width",bt.strokeWidth.thicker).attr("fill","none").transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"boxplot-update-endingwhisker",animate:t})})).attr("d",(function(t){var e=m.getDomainValue(t[i])-E/4,n=e+E/2,r=m.getRangeValue(t.whiskers.max),o=m.getRangeValue(t.whiskers.max);return _d.generateSVGPathString({x0:e,x1:n,y0:r,y1:o},y)}));var A=C.selectAll("circle.outlier").data((function(t){return t.outliers.map((function(e){var n;return n={min:t.whiskers.min,max:t.whiskers.max},n[i]=t[i],n.value=e,n}))}));A.exit().remove();var P=A.enter().append("circle");A.merge(P).attr("r",bt.circle.radius).attr("class",(function(){return e.model.getColorClassName({classNameTypes:[j.FILL,j.STROKE],originalClassName:"outlier"})})).attr("fill-opacity",bt.circle.opacity.default).attr("cx",O).transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"boxplot-update-circles",animate:t})})).attr("cy",w),this.addBoxEventListeners(),this.addCircleEventListeners()}},e.prototype.addBoxEventListeners=function(){var t=this,e=this.getOptions(),n=e.data.groupMapsTo;this.parent.selectAll("path.highlight-area").on("mouseover",(function(r,i){var o=G_(this),a=G_(this.parentNode);a.select("path.box").classed("hovered",!0).attr("fill-opacity",bt.box.opacity.hovered),t.services.events.dispatchEvent(ft.Tooltip.SHOW,{event:r,hoveredElement:o,items:[{label:e.tooltip.groupLabel,value:i[n],class:t.model.getColorClassName({classNameTypes:[j.TOOLTIP]})},{label:"Minimum",value:i.whiskers.min},{label:"Q1",value:i.quartiles.q_25},{label:"Median",value:i.quartiles.q_50},{label:"Q3",value:i.quartiles.q_75},{label:"Maximum",value:i.whiskers.max},{label:"IQR",value:i.quartiles.q_75-i.quartiles.q_25}]}),t.services.events.dispatchEvent(ft.Boxplot.BOX_MOUSEOVER,{event:r,element:o,datum:i})})).on("mousemove",(function(e,n){var r=G_(this);t.services.events.dispatchEvent(ft.Boxplot.BOX_MOUSEMOVE,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(ft.Tooltip.MOVE,{event:e})})).on("click",(function(e,n){t.services.events.dispatchEvent(ft.Boxplot.BOX_CLICK,{event:e,element:G_(this),datum:n})})).on("mouseout",(function(e,n){var r=G_(this),i=G_(this.parentNode);i.select("path.box").classed("hovered",!1).attr("fill-opacity",bt.box.opacity.default),t.services.events.dispatchEvent(ft.Boxplot.BOX_MOUSEOUT,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(ft.Tooltip.HIDE,{hoveredElement:r})}))},e.prototype.addCircleEventListeners=function(){var t=this,e=this.getOptions(),n=e.data.groupMapsTo,r=this.services.cartesianScales.getRangeIdentifier();this.parent.selectAll("circle").on("mouseover",(function(i,o){var a=G_(this);a.classed("hovered",!0).attr("fill-opacity",bt.circle.opacity.hovered).classed("unfilled",!1),t.services.events.dispatchEvent(ft.Tooltip.SHOW,{event:i,hoveredElement:a,items:[{label:e.tooltip.groupLabel,value:o[n],class:t.model.getColorClassName({classNameTypes:[j.TOOLTIP]})},{label:"Outlier",value:o[r]}]}),t.services.events.dispatchEvent(ft.Boxplot.OUTLIER_MOUSEOVER,{event:i,element:a,datum:o})})).on("mousemove",(function(e,n){var r=G_(this);t.services.events.dispatchEvent(ft.Boxplot.OUTLIER_MOUSEMOVE,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(ft.Tooltip.MOVE,{event:e})})).on("click",(function(e,n){t.services.events.dispatchEvent(ft.Boxplot.OUTLIER_CLICK,{event:e,element:G_(this),datum:n})})).on("mouseout",(function(e,n){var r=G_(this);r.classed("hovered",!1).attr("fill-opacity",bt.circle.opacity.default),t.services.events.dispatchEvent(ft.Boxplot.OUTLIER_MOUSEOUT,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(ft.Tooltip.HIDE,{hoveredElement:r})}))},e}(wT),DA=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=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="scatter",e.renderType=I.SVG,e.handleChartHolderOnHover=function(t){e.parent.selectAll("circle.dot").transition("chart-holder-hover-scatter").call((function(t){return e.services.transitions.setupTransition({transition:t,name:"chart-holder-hover-scatter"})})).attr("opacity",1)},e.handleChartHolderOnMouseOut=function(t){e.parent.selectAll("circle.dot").transition("chart-holder-mouseout-scatter").call((function(t){return e.services.transitions.setupTransition({transition:t,name:"chart-holder-mouseout-scatter"})})).attr("opacity",0)},e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement,r=e.getOptions().data.groupMapsTo;e.parent.selectAll("circle.dot").transition("legend-hover-scatter").call((function(t){return e.services.transitions.setupTransition({transition:t,name:"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("legend-mouseout-scatter").call((function(t){return e.services.transitions.setupTransition({transition:t,name:"legend-mouseout-scatter"})})).attr("opacity",1)},e}return DA(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(ft.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(ft.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut);var e=this.configs.fadeInOnChartHolderMouseover;e&&(t.addEventListener(ft.Chart.MOUSEOVER,this.handleChartHolderOnHover),t.addEventListener(ft.Chart.MOUSEOUT,this.handleChartHolderOnMouseOut))},e.prototype.filterBasedOnZoomDomain=function(t){var e=this.services.cartesianScales.getDomainIdentifier(t),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.getScatterData=function(){var t,e=this,n=this.getOptions(),r=this.configs.stacked;if(r){var i=Object.keys(n.axes).some((function(t){return n.axes[t].percentage}));t=this.model.getStackedData({groups:this.configs.groups,percentage:i})}else t=this.model.getDisplayData(this.configs.groups).filter((function(t){var n=e.services.cartesianScales.getRangeIdentifier(t);return void 0!==t[n]&&null!==t[n]}));return this.filterBasedOnZoomDomain(t)},e.prototype.render=function(t){var e=_d.getProperty(this.getOptions(),"points","enabled")||_d.getProperty(this.getOptions(),"bubble","enabled");if(e){var n=this.getComponentContainer({withinChartClip:!0}),r=this.getOptions(),i=r.data.groupMapsTo,o=this.services.cartesianScales.getDomainIdentifier(),a=n.selectAll("circle.dot").data(this.getScatterData(),(function(t){return t[i]+"-"+t[o]}));a.exit().attr("opacity",0).remove();var s=a.enter().append("circle").classed("dot",!0).attr("opacity",0),u=s.merge(a);this.styleCircles(u,t),this.addEventListeners()}},e.prototype.isDatapointThresholdAnomaly=function(t,e){var n=this,r=this.configs.handleThresholds;if(!r)return!1;var i=this.services.cartesianScales,o=i.getOrientation(),a=_d.flipDomainAndRangeBasedOnOrientation(this.services.cartesianScales.getHighestDomainThreshold(),this.services.cartesianScales.getHighestRangeThreshold(),o),s=a[0],u=a[1],c=_d.flipDomainAndRangeBasedOnOrientation((function(t,e){return n.services.cartesianScales.getDomainValue(t,e)}),(function(t,e){return n.services.cartesianScales.getRangeValue(t,e)}),o),l=c[0],h=c[1],f=l(t,e),p=h(t,e);return u&&s?p<=u.scaleValue&&f>=s.scaleValue:u?p<=u.scaleValue:s?f>=s.scaleValue:void 0},e.prototype.styleCircles=function(t,e){var n=this,r=this.getOptions(),i=r.points,o=i.filled,s=i.fillOpacity,u=this.services,c=u.cartesianScales,l=(u.transitions,r.data.groupMapsTo),h=function(t,e){return c.getDomainValue(t,e)},f=function(t,e){return c.getRangeValue(t,e)},p=_d.flipDomainAndRangeBasedOnOrientation(h,f,c.getOrientation()),d=p[0],v=p[1],g=this.configs.fadeInOnChartHolderMouseover;t.raise().classed("dot",!0).attr("class",(function(t){var e=c.getDomainIdentifier(t),r=n.model.getIsFilled(t[l],t[e],t,o),i=r?[j.FILL,j.STROKE]:[j.STROKE];return n.model.getColorClassName({classNameTypes:i,dataGroupName:t[l],originalClassName:"dot"})})).classed("threshold-anomaly",(function(t,e){return n.isDatapointThresholdAnomaly(t,e)})).classed("filled",(function(t){var e=c.getDomainIdentifier(t);return n.model.getIsFilled(t[l],t[e],t,o)})).classed("unfilled",(function(t){var e=c.getDomainIdentifier(t);return!n.model.getIsFilled(t[l],t[e],t,o)})).transition().call((function(t){return n.services.transitions.setupTransition({transition:t,name:"scatter-update-enter",animate:e})})).attr("cx",d).attr("cy",v).attr("r",r.points.radius).style("fill",(function(t){var e=c.getDomainIdentifier(t);if(n.model.getIsFilled(t[l],t[e],t,o))return n.model.getFillColor(t[l],t[e],t)})).style("stroke",(function(t){var e=c.getDomainIdentifier(t);return n.model.getStrokeColor(t[l],t[e],t)})).attr("fill-opacity",o?s:1).attr("opacity",g?0:1).attr("role",a.GRAPHICS_SYMBOL).attr("aria-roledescription","point").attr("aria-label",(function(t){var e=c.getRangeIdentifier(t);return t[e]})),this.addEventListeners()},e.prototype.getTooltipAdditionalItems=function(t){return null},e.prototype.addEventListeners=function(){var t=this,e=t.getOptions().data.groupMapsTo;this.parent.selectAll("circle").on("mouseover",(function(n,r){var i=G_(this);i.classed("hovered",!0).attr("class",(function(n){return t.model.getColorClassName({classNameTypes:[j.FILL],dataGroupName:n[e],originalClassName:i.attr("class")})})).style("fill",(function(n){var r=t.services.cartesianScales.getDomainIdentifier(n);return t.model.getFillColor(n[e],n[r],n)})).classed("unfilled",!1),t.services.events.dispatchEvent(ft.Tooltip.SHOW,{event:n,hoveredElement:i,data:[r],additionalItems:t.getTooltipAdditionalItems(r)}),t.services.events.dispatchEvent(ft.Scatter.SCATTER_MOUSEOVER,{event:n,element:i,datum:r})})).on("mousemove",(function(e,n){var r=G_(this);t.services.events.dispatchEvent(ft.Scatter.SCATTER_MOUSEMOVE,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(ft.Tooltip.MOVE,{event:e})})).on("click",(function(e,n){t.services.events.dispatchEvent(ft.Scatter.SCATTER_CLICK,{event:e,element:G_(this),datum:n})})).on("mouseout",(function(n,r){var i=G_(this);if(i.classed("hovered",!1),!t.configs.filled){var o=t.getOptions().points.filled,a=t.services.cartesianScales.getDomainIdentifier(r),s=t.model.getIsFilled(r[e],r[a],r,o);i.classed("unfilled",!s).style("fill",(function(n){return s||o?t.model.getFillColor(n[e],n[a],n):null}))}t.services.events.dispatchEvent(ft.Scatter.SCATTER_MOUSEOUT,{event:n,element:i,datum:r}),t.services.events.dispatchEvent(ft.Tooltip.HIDE,{hoveredElement:i})}))},e.prototype.destroy=function(){this.parent.selectAll("circle").on("mousemove",null).on("mouseout",null);var t=this.services.events;t.removeEventListener(ft.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(ft.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut),t.removeEventListener(ft.Chart.MOUSEOVER,this.handleChartHolderOnHover),t.removeEventListener(ft.Chart.MOUSEOUT,this.handleChartHolderOnMouseOut)},e}(wT),RA=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)}}(),IA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="bubble",e.renderType=I.SVG,e}return RA(e,t),e.prototype.getRadiusScale=function(t){var e=this.getOptions(),n=e.bubble.radiusMapsTo,r=t.data(),i=r.map((function(t){return t[n]})).filter((function(t){return t})),o=Y_.getHTMLElementSize(this.services.domUtils.getMainContainer()),a=i.length>0,s=a?jv(i):[1,1];return AE().domain(s).range(a?e.bubble.radiusRange(o,r):[4,4])},e.prototype.styleCircles=function(t,e){var n=this,r=this.getOptions(),i=r.bubble.radiusMapsTo,o=this.getRadiusScale(t),s=r.data.groupMapsTo,u=this.services.cartesianScales,c=function(t,e){return u.getDomainValue(t,e)},l=function(t,e){return u.getRangeValue(t,e)},h=_d.flipDomainAndRangeBasedOnOrientation(c,l,u.getOrientation()),f=h[0],p=h[1];t.raise().classed("dot",!0).attr("role",a.GRAPHICS_SYMBOL).attr("aria-label",(function(t){var e=u.getRangeIdentifier(t);return t[e]})).transition().call((function(t){return n.services.transitions.setupTransition({transition:t,name:"bubble-update-enter",animate:e})})).attr("cx",f).attr("cy",p).attr("r",(function(t){return o(t[i]||1)})).attr("class",(function(t){return n.model.getColorClassName({classNameTypes:[j.FILL,j.STROKE],dataGroupName:t[s],originalClassName:"dot"})})).style("fill",(function(t){var e=n.services.cartesianScales.getDomainIdentifier(t);return n.model.getFillColor(t[s],t[e],t)})).style("stroke",(function(t){var e=n.services.cartesianScales.getDomainIdentifier(t);return n.model.getStrokeColor(t[s],t[e],t)})).attr("fill-opacity",r.bubble.fillOpacity).attr("opacity",1)},e.prototype.getTooltipAdditionalItems=function(t){var e=_d.getProperty(this.getOptions(),"bubble");return[{label:_d.getProperty(e,"radiusLabel"),value:t[_d.getProperty(e,"radiusMapsTo")]}]},e}(kA),NA=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)}}(),jA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="bullet",e.renderType=I.SVG,e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement,r=e.getOptions().data.groupMapsTo;e.parent.selectAll("path.bar").transition("legend-hover-simple-bar").call((function(t){return e.services.transitions.setupTransition({transition:t,name:"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("legend-mouseout-simple-bar").call((function(t){return e.services.transitions.setupTransition({transition:t,name:"legend-mouseout-simple-bar"})})).attr("opacity",1)},e}return NA(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(ft.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(ft.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this,n=this.getOptions(),r=n.data.groupMapsTo,i=this.getComponentContainer({withinChartClip:!0}),o=this.model.getDisplayData(this.configs.groups),s=this.services.cartesianScales.getRangeScale(),u=this.services.cartesianScales.getRangeIdentifier(),c=s.range(),l=c[0],h=c[1],f=s.domain(),p=(f[0],f[1]),d=function(){var n=[];o.forEach((function(t){t.ranges?t.ranges.forEach((function(e,r){null!==e&&void 0!==e&&e<p&&n.push({datum:t,value:e,order:r+1})})):n.push({datum:t,order:1})}));var a=Y_.appendOrSelect(i,"g.range-boxes").selectAll("path.range-box").data(n,(function(t){return t[r]+"-"+t.order}));a.exit().attr("opacity",0).remove();var s=a.enter().append("path").attr("opacity",0);s.merge(a).attr("class",(function(t){return"range-box order-"+t.order})).transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"bullet-range-box-update-enter",animate:t})})).attr("d",(function(t,n){var r,i,o,a,s=16;return 1===t.order?(r=e.services.cartesianScales.getDomainValue(t.datum,n)-s/2,i=r+s,o=h-2,a=l+1):(r=e.services.cartesianScales.getDomainValue(t.datum,n)-s/2,i=r+s,o=e.services.cartesianScales.getRangeValue(t.value,n),a=h),_d.generateSVGPathString({x0:r,x1:i,y0:o,y1:a},e.services.cartesianScales.getOrientation())})).attr("opacity",1)},v=function(){var n=Y_.appendOrSelect(i,"g.bars").selectAll("path.bar").data(o,(function(t){return t[r]}));n.exit().attr("opacity",0).remove();var s=n.enter().append("path").attr("opacity",0);s.merge(n).classed("bar",!0).transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"bullet-bar-update-enter",animate:t})})).attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[j.FILL],dataGroupName:t[r],originalClassName:"bar"})})).style("fill",(function(t){return e.model.getFillColor(t[r])})).attr("d",(function(t,n){var r=8,i=e.services.cartesianScales.getDomainValue(t,n)-r/2,o=i+r,a=e.services.cartesianScales.getRangeValue(0)+1,s=e.services.cartesianScales.getRangeValue(t,n);return _d.generateSVGPathString({x0:i,x1:o,y0:a,y1:s},e.services.cartesianScales.getOrientation())})).attr("opacity",1).attr("role",a.GRAPHICS_SYMBOL).attr("aria-roledescription","bar").attr("aria-label",(function(t){return t.value}))},g=function(){var n=Y_.appendOrSelect(i,"g.markers").selectAll("path.marker").data(o.filter((function(t){return null!==_d.getProperty(t,"marker")})),(function(t){return t[r]}));n.exit().attr("opacity",0).remove();var a=n.enter().append("path").attr("opacity",0);a.merge(n).classed("marker",!0).transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"bullet-marker-update-enter",animate:t})})).attr("d",(function(t,n){var r=24,i=e.services.cartesianScales.getDomainValue(t,n)-r/2,o=i+r,a=e.services.cartesianScales.getRangeValue(t.marker,n),s=a;return _d.generateSVGPathString({x0:i,x1:o,y0:a,y1:s},e.services.cartesianScales.getOrientation())})).attr("opacity",1)},m=function(){var n=[];o.filter((function(t){return null!==_d.getProperty(t,"marker")})).forEach((function(t){var e=t.marker,r=t[u];n=n.concat([{datum:t,value:.25*e,barValue:r},{datum:t,value:.5*e,barValue:r},{datum:t,value:.75*e,barValue:r}])}));var a=Y_.appendOrSelect(i,"g.quartiles").selectAll("path.quartile").data(n,(function(t){return t[r]}));a.exit().attr("opacity",0).remove();var s=a.enter().append("path").attr("opacity",0);s.merge(a).attr("class",(function(t){return"quartile "+(t.value<=t.barValue?"over-bar":"")})).transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"bullet-quartile-update-enter",animate:t})})).attr("d",(function(t,n){var r=t.datum,i=t.value,o=4;r.ranges&&-1!==r.ranges.indexOf(i)&&(o=8);var a=e.services.cartesianScales.getDomainValue(r,n)-o/2,s=a+o,u=e.services.cartesianScales.getRangeValue(i,n),c=u;return _d.generateSVGPathString({x0:a,x1:s,y0:u,y1:c},e.services.cartesianScales.getOrientation())})).attr("opacity",1)};d(),v(),g(),m(),this.addEventListeners()},e.prototype.addEventListeners=function(){var t=this,e=this.getOptions(),n=e.data.groupMapsTo,r=this.services.cartesianScales.getRangeIdentifier();this.parent.selectAll("path.bar").on("mouseover",(function(i,o){var a=G_(this);a.classed("hovered",!0),t.services.events.dispatchEvent(ft.Bar.BAR_MOUSEOVER,{event:i,element:a,datum:o});var s=_d.getProperty(e,"bullet","performanceAreaTitles"),u=t.model.getMatchingRangeIndexForDatapoint(o);t.services.events.dispatchEvent(ft.Tooltip.SHOW,{event:i,hoveredElement:a,items:[{label:e.tooltip.groupLabel||"Group",value:o[n],class:t.model.getColorClassName({classNameTypes:[j.TOOLTIP],dataGroupName:o[n]})},{label:"Value",value:o[r]},{label:"Target",value:o.marker},{label:"Percentage",value:Math.floor(o[r]/o.marker*100)+"%"},{label:"Performance",value:s[u]}]})})).on("mousemove",(function(e,n){t.services.events.dispatchEvent(ft.Bar.BAR_MOUSEMOVE,{event:e,element:G_(this),datum:n}),t.services.events.dispatchEvent(ft.Tooltip.MOVE,{event:e})})).on("click",(function(e,n){t.services.events.dispatchEvent(ft.Bar.BAR_CLICK,{event:e,element:G_(this),datum:n})})).on("mouseout",(function(e,n){var r=G_(this);r.classed("hovered",!1),t.services.events.dispatchEvent(ft.Bar.BAR_MOUSEOUT,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(ft.Tooltip.HIDE,{hoveredElement:r})}))},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(ft.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(ft.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e}(wT),BA=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)}}(),UA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="histogram",e.renderType=I.SVG,e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement,r=e.getOptions(),i=r.data.groupMapsTo;e.parent.selectAll("path.bar").transition("legend-hover-bar").call((function(t){return e.services.transitions.setupTransition({transition:t,name:"legend-hover-bar"})})).attr("opacity",(function(t){return t[i]!==n.datum()["name"]?.3:1}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("path.bar").transition("legend-mouseout-bar").call((function(t){return e.services.transitions.setupTransition({transition:t,name:"legend-mouseout-bar"})})).attr("opacity",1)},e}return BA(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(ft.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(ft.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this,n=this.getComponentContainer(),r=this.model.getOptions(),i=r.groupIdentifier,o=r.data.groupMapsTo,s=this.model.getBinnedStackedData(),u=this.services.cartesianScales.getMainXScale(),c=n.selectAll("g.bars").data(s,(function(t){return Ml(t,"0."+o)}));c.exit().attr("opacity",0).remove(),c.enter().append("g").classed("bars",!0).attr("role",a.GROUP);var l=n.selectAll("g.bars").selectAll("path.bar").data((function(t){return t}));l.exit().remove(),l.enter().append("path").merge(l).classed("bar",!0).attr(i,(function(t,e){return e})).transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"histogram-bar-update-enter",animate:t})})).attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[j.FILL],dataGroupName:t[o],originalClassName:"bar"})})).style("fill",(function(t){return e.model.getFillColor(t[o])})).attr("d",(function(t,n){var i=Ml(t,"data");if(i){var o=u(i.x1)-u(i.x0)-1,a=e.services.cartesianScales.getDomainValue(i.x0,n),s=a+o,c=e.services.cartesianScales.getRangeValue(t[0],n),l=e.services.cartesianScales.getRangeValue(t[1],n);return Math.abs(l-c)>0&&Math.abs(l-c)>r.bars.dividerSize&&(e.services.cartesianScales.getOrientation()===G.VERTICAL?l+=1:l-=1),_d.generateSVGPathString({x0:a,x1:s,y0:c,y1:l},e.services.cartesianScales.getOrientation())}})).attr("opacity",1).attr("role",a.GRAPHICS_SYMBOL).attr("aria-roledescription","bar").attr("aria-label",(function(t){return _d.getProperty(t,"data",t[o])})),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(r,i){var o=G_(this);o.classed("hovered",!0);var a=parseFloat(Ml(i,"data.x0")),s=parseFloat(Ml(i,"data.x1")),u=n.services.cartesianScales.getRangeAxisPosition(),c=n.services.cartesianScales.getScaleLabel(u);n.services.events.dispatchEvent(ft.Tooltip.SHOW,{event:r,hoveredElement:o,items:[{label:Ml(t,"bins.rangeLabel")||"Range",value:a+" – "+s},{label:t.tooltip.groupLabel||"Group",value:i[e],class:n.model.getColorClassName({classNameTypes:[j.TOOLTIP],dataGroupName:i[e]})},{label:c,value:Ml(i,"data."+i[e])}]})})).on("mousemove",(function(t,e){n.services.events.dispatchEvent(ft.Tooltip.MOVE,{event:t})})).on("mouseout",(function(t,e){var r=G_(this);r.classed("hovered",!1),n.services.events.dispatchEvent(ft.Tooltip.HIDE)}))},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(ft.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(ft.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e}(wT),VA=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)}}(),GA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="line",e.renderType=I.SVG,e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement;e.parent.selectAll("path.line").transition("legend-hover-line").call((function(t){return e.services.transitions.setupTransition({transition:t,name:"legend-hover-line"})})).attr("opacity",(function(t){return t.name!==n.datum()["name"]?xt.opacity.unselected:xt.opacity.selected}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("path.line").transition("legend-mouseout-line").call((function(t){return e.services.transitions.setupTransition({transition:t,name:"legend-mouseout-line"})})).attr("opacity",xt.opacity.selected)},e}return VA(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(ft.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(ft.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this.getComponentContainer({withinChartClip:!0}),r=this.services,i=r.cartesianScales,o=r.curves,s=function(t,e){return i.getDomainValue(t,e)},u=function(t,e){return i.getRangeValue(t,e)},c=_d.flipDomainAndRangeBasedOnOrientation(s,u,i.getOrientation()),l=c[0],h=c[1],f=this.getOptions(),p=gA().x(l).y(h).curve(o.getD3Curve()).defined((function(t,e){var n=i.getRangeIdentifier(t),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({groups:this.configs.groups,percentage:v});d=m.map((function(t){var n=e.services.cartesianScales.getDomainIdentifier(t),r=e.services.cartesianScales.getRangeIdentifier(t);return{name:_d.getProperty(t,0,g),data:t.map((function(t){var e;return e={},e[n]=t.data.sharedStackKey,e[g]=t[g],e[r]=t[1],e})),hidden:!_d.some(t,(function(t){return t[0]!==t[1]}))}}))}else d=this.model.getGroupedData(this.configs.groups);var y=n.selectAll("path.line").data(d,(function(t){return t.name}));y.exit().attr("opacity",0).remove();var _=y.enter().append("path").classed("line",!0).attr("opacity",0);_.merge(y).data(d,(function(t){return t.name})).attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[j.STROKE],dataGroupName:t.name,originalClassName:"line"})})).style("stroke",(function(t){return e.model.getStrokeColor(t.name)})).attr("role",a.GRAPHICS_SYMBOL).attr("aria-roledescription","line").attr("aria-label",(function(t){var n=t.data;return n.map((function(t){var n=e.services.cartesianScales.getRangeIdentifier(t);return t[n]})).join(",")})).transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"line-update-enter",animate:t})})).attr("opacity",(function(t){return t.hidden?0:1})).attr("d",(function(t){var e=t.data;return p(e)}))},e.prototype.destroy=function(){var t=this.services.events;t.removeEventListener(ft.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(ft.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e}(wT),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)}}(),zA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="lollipop",e.renderType=I.SVG,e.handleScatterOnHover=function(t){var n=t.detail,r=e.getOptions(),i=r.data.groupMapsTo;e.parent.selectAll("line.line").attr("stroke-width",(function(t){return t[i]!==n.datum[i]?xt.weight.unselected:xt.weight.selected}))},e.handleScatterOnMouseOut=function(t){e.parent.selectAll("line.line").attr("stroke-width",xt.weight.unselected)},e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement,r=e.getOptions(),i=r.data.groupMapsTo;e.parent.selectAll("line.line").transition("legend-hover-line").call((function(t){return e.services.transitions.setupTransition({transition:t,name:"legend-hover-line"})})).attr("opacity",(function(t){return t[i]!==n.datum()["name"]?xt.opacity.unselected:xt.opacity.selected}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("line.line").transition("legend-mouseout-line").call((function(t){return e.services.transitions.setupTransition({transition:t,name:"legend-mouseout-line"})})).attr("opacity",xt.opacity.selected)},e}return HA(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(ft.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(ft.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this,n=this.getComponentContainer({withinChartClip:!0}),r=this.model.getOptions(),i=r.data.groupMapsTo,o=this.services.cartesianScales,a=o.getMainXScale(),s=o.getMainYScale(),u=o.getDomainIdentifier(),c=function(t,e){return o.getDomainValue(t,e)},l=function(t,e){return o.getRangeValue(t,e)},h=o.getOrientation(),f=_d.flipDomainAndRangeBasedOnOrientation(c,l,h),p=f[0],d=f[1],v=n.selectAll("line.line").data(this.getScatterData(),(function(t){return t[i]+"-"+t[u]}));v.exit().attr("opacity",0).remove();var g=v.enter().append("line").attr("opacity",0),m=g.merge(v).classed("line",!0).attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[j.STROKE],dataGroupName:t[i],originalClassName:"line"})})).transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"lollipop-line-update-enter",animate:t})})).style("stroke",(function(t){return e.model.getFillColor(t[i],t[u],t)})).attr("opacity",1);h===G.HORIZONTAL?m.attr("y1",d).attr("y2",d).attr("x1",a.range()[0]).attr("x2",(function(t,e){return p(t,e)-r.points.radius})):m.attr("x1",p).attr("x2",p).attr("y1",s.range()[0]).attr("y2",(function(t,e){return d(t,e)+r.points.radius})),this.addScatterPointEventListeners()},e.prototype.addScatterPointEventListeners=function(){this.services.events.addEventListener(ft.Scatter.SCATTER_MOUSEOVER,this.handleScatterOnHover),this.services.events.addEventListener(ft.Scatter.SCATTER_MOUSEOUT,this.handleScatterOnMouseOut)},e.prototype.destroy=function(){var t=this.services.events;t.removeEventListener(ft.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(ft.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut),t.removeEventListener(ft.Scatter.SCATTER_MOUSEOVER,this.handleScatterOnHover),t.removeEventListener(ft.Scatter.SCATTER_MOUSEOUT,this.handleScatterOnMouseOut)},e}(kA),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="scatter-stacked",e.renderType=I.SVG,e}return FA(e,t),e.prototype.render=function(t){var e=this,n=_d.getProperty(this.getOptions(),"points","enabled");if(n){var r=this.getComponentContainer({withinChartClip:!0}),i=this.getOptions(),o=i.data.groupMapsTo,s=Object.keys(i.axes).some((function(t){return i.axes[t].percentage})),u=this.model.getStackedData({groups:this.configs.groups,percentage:s}),c=r.selectAll("g.dots").data(u,(function(t){return _d.getProperty(t,0,o)}));c.exit().attr("opacity",0).remove();var l=c.enter().append("g").classed("dots",!0).attr("role",a.GROUP),h=l.merge(c).selectAll("circle.dot").data((function(t){return t}));h.exit().attr("opacity",0).remove();var f=h.enter().append("circle").classed("dot",!0).attr("opacity",0),p=f.merge(h).datum((function(t){var n,r=t[o],i=e.services.cartesianScales.getDomainIdentifier(t),a=e.services.cartesianScales.getRangeIdentifier(t);return n={},n[o]=r,n[i]=t["data"]["sharedStackKey"],n[a]=t[1],n}));this.styleCircles(p,t),this.addEventListeners()}},e.prototype.getTooltipData=function(t,e){var n=this,r=this.getOptions(),i=r.data.groupMapsTo,o=Object.keys(r.axes).some((function(t){return r.axes[t].percentage})),a=this.model.getStackedData({groups:this.configs.groups,percentage:o}),s=[];return a.forEach((function(r,a){r.forEach((function(r,u){var c,l=r[i],h=r["data"]["sharedStackKey"],f=r["data"][l],p=r[1],d=n.services.cartesianScales.getDomainIdentifier(r),v=n.services.cartesianScales.getRangeIdentifier(r);null!==f&&void 0!==f&&t===n.services.cartesianScales.getDomainValue(h)&&e===n.services.cartesianScales.getRangeValue(p)&&(o&&(f=n.model.getStackedData({groups:n.configs.groups})[a][u]["data"][l]),null!==f&&s.push((c={},c[i]=l,c[d]=h,c[v]=f,c)))}))})),this.model.getDisplayData(this.configs.groups).filter((function(t){var e=n.services.cartesianScales.getDomainIdentifier(t),r=n.services.cartesianScales.getRangeIdentifier(t);return void 0!==s.find((function(n){return n[i]==t[i]&&n[e]==t[e]&&n[r]==t[r]}))}))},e}(kA);function qA(t){return t.innerRadius}function YA(t){return t.outerRadius}function ZA(t){return t.startAngle}function XA(t){return t.endAngle}function KA(t){return t&&t.padAngle}function $A(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<GS))return f=(l*(e-o)-h*(t-i))/f,[t+f*u,e+f*c]}function QA(t,e,n,r,i,o,a){var s=t-n,u=e-r,c=(a?o:-o)/VS(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+_*_,O=i-o,w=f*v-d*p,x=(_<0?-1:1)*VS(jS(0,O*O*b-w*w)),E=(w*_-y*x)/b,S=(-w*y-_*x)/b,T=(w*_+y*x)/b,M=(-w*y+_*x)/b,C=E-g,A=S-m,P=T-g,L=M-m;return C*C+A*A>P*P+L*L&&(E=T,S=M),{cx:E,cy:S,x01:-l,y01:-h,x11:E*(i/O-1),y11:S*(i/O-1)}}var JA=function(){var t=qA,e=YA,n=_v(0),r=null,i=ZA,o=XA,a=KA,s=null;function u(){var u,c,l=+t.apply(this,arguments),h=+e.apply(this,arguments),f=i.apply(this,arguments)-zS,p=o.apply(this,arguments)-zS,d=RS(p-f),v=p>f;if(s||(s=u=pA()),h<l&&(c=h,h=l,l=c),h>GS)if(d>FS-GS)s.moveTo(h*NS(f),h*US(f)),s.arc(0,0,h,f,p,!v),l>GS&&(s.moveTo(l*NS(p),l*US(p)),s.arc(0,0,l,p,f,v));else{var g,m,y=f,_=p,b=f,O=p,w=d,x=d,E=a.apply(this,arguments)/2,S=E>GS&&(r?+r.apply(this,arguments):VS(l*l+h*h)),T=BS(RS(h-l)/2,+n.apply(this,arguments)),M=T,C=T;if(S>GS){var A=qS(S/l*US(E)),P=qS(S/h*US(E));(w-=2*A)>GS?(A*=v?1:-1,b+=A,O-=A):(w=0,b=O=(f+p)/2),(x-=2*P)>GS?(P*=v?1:-1,y+=P,_-=P):(x=0,y=_=(f+p)/2)}var L=h*NS(y),D=h*US(y),k=l*NS(O),R=l*US(O);if(T>GS){var I,N=h*NS(_),j=h*US(_),B=l*NS(b),U=l*US(b);if(d<HS&&(I=$A(L,D,B,U,N,j,k,R))){var V=L-I[0],G=D-I[1],H=N-I[0],z=j-I[1],F=1/US(WS((V*H+G*z)/(VS(V*V+G*G)*VS(H*H+z*z)))/2),W=VS(I[0]*I[0]+I[1]*I[1]);M=BS(T,(l-W)/(F-1)),C=BS(T,(h-W)/(F+1))}}x>GS?C>GS?(g=QA(B,U,L,D,h,C,v),m=QA(N,j,k,R,h,C,v),s.moveTo(g.cx+g.x01,g.cy+g.y01),C<T?s.arc(g.cx,g.cy,C,IS(g.y01,g.x01),IS(m.y01,m.x01),!v):(s.arc(g.cx,g.cy,C,IS(g.y01,g.x01),IS(g.y11,g.x11),!v),s.arc(0,0,h,IS(g.cy+g.y11,g.cx+g.x11),IS(m.cy+m.y11,m.cx+m.x11),!v),s.arc(m.cx,m.cy,C,IS(m.y11,m.x11),IS(m.y01,m.x01),!v))):(s.moveTo(L,D),s.arc(0,0,h,y,_,!v)):s.moveTo(L,D),l>GS&&w>GS?M>GS?(g=QA(k,R,N,j,l,-M,v),m=QA(L,D,B,U,l,-M,v),s.lineTo(g.cx+g.x01,g.cy+g.y01),M<T?s.arc(g.cx,g.cy,M,IS(g.y01,g.x01),IS(m.y01,m.x01),!v):(s.arc(g.cx,g.cy,M,IS(g.y01,g.x01),IS(g.y11,g.x11),!v),s.arc(0,0,l,IS(g.cy+g.y11,g.cx+g.x11),IS(m.cy+m.y11,m.cx+m.x11),v),s.arc(m.cx,m.cy,M,IS(m.y11,m.x11),IS(m.y01,m.x01),!v))):s.arc(0,0,l,O,b,v):s.lineTo(k,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-HS/2;return[NS(r)*n,US(r)*n]},u.innerRadius=function(e){return arguments.length?(t="function"===typeof e?e:_v(+e),u):t},u.outerRadius=function(t){return arguments.length?(e="function"===typeof t?t:_v(+t),u):e},u.cornerRadius=function(t){return arguments.length?(n="function"===typeof t?t:_v(+t),u):n},u.padRadius=function(t){return arguments.length?(r=null==t?null:"function"===typeof t?t:_v(+t),u):r},u.startAngle=function(t){return arguments.length?(i="function"===typeof t?t:_v(+t),u):i},u.endAngle=function(t){return arguments.length?(o="function"===typeof t?t:_v(+t),u):o},u.padAngle=function(t){return arguments.length?(a="function"===typeof t?t:_v(+t),u):a},u.context=function(t){return arguments.length?(s=null==t?null:t,u):s},u},tP=function(t,e){return e<t?-1:e>t?1:e>=t?0:NaN},eP=function(t){return t},nP=function(){var t=eP,e=tP,n=null,r=_v(0),i=_v(FS),o=_v(0);function a(a){var s,u,c,l,h,f=(a=yv(a)).length,p=0,d=new Array(f),v=new Array(f),g=+r.apply(this,arguments),m=Math.min(FS,Math.max(-FS,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:_v(+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:_v(+t),a):r},a.endAngle=function(t){return arguments.length?(i="function"===typeof t?t:_v(+t),a):i},a.padAngle=function(t){return arguments.length?(o="function"===typeof t?t:_v(+t),a):o},a},rP=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 iP(t,e){var n=this,r=Mx(this._current,t);return function(t){return n._current=r(t),e(n._current)}}var oP=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="pie",e.renderType=I.SVG,e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement,r=e.getOptions().data.groupMapsTo;e.parent.selectAll("path.slice").transition("legend-hover-bar").call((function(t){return e.services.transitions.setupTransition({transition:t,name:"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("legend-mouseout-bar").call((function(t){return e.services.transitions.setupTransition({transition:t,name:"legend-mouseout-bar"})})).attr("opacity",1)},e}return rP(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(ft.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(ft.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.getInnerRadius=function(){return St.innerRadius},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this,r=this.getComponentContainer(),i=this.getOptions(),o=i.data.groupMapsTo,s=i.pie.valueMapsTo,u=this.model.getDisplayData().filter((function(t){return t[s]>0})),c=this.computeRadius();this.arc=JA().innerRadius(this.getInnerRadius()).outerRadius(c),this.hoverArc=JA().innerRadius(this.getInnerRadius()).outerRadius(c+St.hoverArc.outerRadiusOffset);var l=nP().value((function(t){return t[s]})).sort(_d.getProperty(i,"pie","sortFunction")).padAngle(St.padAngle),h=l(u),f=Y_.appendOrSelect(r,"g.slices").attr("role",a.GROUP).attr("data-name","slices"),p=f.selectAll("path.slice").data(h,(function(t){return t.data[o]}));p.exit().attr("opacity",0).remove();var d=p.enter().append("path").classed("slice",!0).attr("opacity",0),v=d.merge(p).attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[j.FILL],dataGroupName:t.data[o],originalClassName:"slice"})})).style("fill",(function(t){return n.model.getFillColor(t.data[o])})).attr("d",this.arc);v.transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"pie_slice_enter_update",animate:t})})).attr("opacity",1).attr("role",a.GRAPHICS_SYMBOL).attr("aria-roledescription","slice").attr("aria-label",(function(t){return t[s]+", "+_d.convertValueToPercentage(t.data[s],u,s)+"%"})).attrTween("d",(function(t){return iP.bind(this)(t,n.arc)}));var g=i.pie.labels.enabled,m=g?h.filter((function(t){return t.data[s]>0})):[],y=Y_.appendOrSelect(r,"g.labels").attr("role",a.GROUP).attr("data-name","labels"),_=y.selectAll("text.pie-label").data(m,(function(t){return t.data[o]}));_.exit().attr("opacity",0).remove();var b=_.enter().append("text").classed("pie-label",!0),O=[];b.merge(_).style("text-anchor","middle").text((function(t){return i.pie.labels.formatter?i.pie.labels.formatter(t):_d.convertValueToPercentage(t.data[s],u,s)+"%"})).datum((function(t){var e=c+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=m.length,r=(t.endAngle-t.startAngle)*(180/Math.PI);if(e>=n-2&&r<St.callout.minSliceDegree){var i=void 0,o=void 0;return t.index===n-1?(i=t.xPosition+St.callout.offsetX+St.callout.textMargin+t.textOffsetX,o=t.yPosition-St.callout.offsetY,t.direction=K.RIGHT,O.push(t)):(i=t.xPosition-St.callout.offsetX-t.textOffsetX-St.callout.textMargin,o=t.yPosition-St.callout.offsetY,t.direction=K.LEFT,O.push(t)),"translate("+i+", "+o+")"}return"translate("+t.xPosition+", "+t.yPosition+")"})),this.renderCallouts(O);var w=_d.getProperty(i,"donut")?"donut":"pie",x=_d.getProperty(i,w,"alignment"),E=Y_.getSVGElementSize(this.getParent(),{useAttrs:!0}).width,S=g?St.xOffset:0,T=g?St.yOffset:0,M=c+S;x===F.CENTER?M=E/2:x===F.RIGHT&&(M=E-c-St.xOffset);var C=c+T;O.length>0&&(C+=St.yOffsetCallout),r.attr("x",M+7).attr("y",C),this.addEventListeners()},e.prototype.renderCallouts=function(t){var e=Y_.appendOrSelect(this.getComponentContainer(),"g.callouts").attr("role",a.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",a.GROUP).attr("aria-roledescription","label callout");r.merge(n).datum((function(t){var e=t.xPosition,n=t.yPosition,r=t.direction;return r===K.RIGHT?(t.startPos={x:e,y:n+t.textOffsetY},t.endPos={x:e+St.callout.offsetX,y:n-St.callout.offsetY+t.textOffsetY},t.intersectPointX=t.endPos.x-St.callout.horizontalLineLength):(t.startPos={x:e,y:n+t.textOffsetY},t.endPos={x:e-St.callout.offsetX,y:n-St.callout.offsetY+t.textOffsetY},t.intersectPointX=t.endPos.x+St.callout.horizontalLineLength),t}));var i=r.append("line").classed("vertical-line",!0);i.merge(e.selectAll("line.vertical-line")).datum((function(t){return G_(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 o=r.append("line").classed("horizontal-line",!0);o.merge(e.selectAll("line.horizontal-line")).datum((function(t){return G_(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,n){var r=G_(this);r.classed("hovered",!0).transition("pie_slice_mouseover").call((function(e){return t.services.transitions.setupTransition({transition:e,name:"pie_slice_mouseover"})})).attr("d",t.hoverArc),t.services.events.dispatchEvent(ft.Pie.SLICE_MOUSEOVER,{event:e,element:G_(this),datum:n});var i=t.getOptions().data.groupMapsTo,o=t.getOptions().pie.valueMapsTo;t.services.events.dispatchEvent(ft.Tooltip.SHOW,{event:e,hoveredElement:r,items:[{label:n.data[i],value:n.data[o]}]})})).on("mousemove",(function(e,n){var r=G_(this);t.services.events.dispatchEvent(ft.Pie.SLICE_MOUSEMOVE,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(ft.Tooltip.MOVE,{event:e})})).on("click",(function(e,n){t.services.events.dispatchEvent(ft.Pie.SLICE_CLICK,{event:e,element:G_(this),datum:n})})).on("mouseout",(function(e,n){var r=G_(this);r.classed("hovered",!1).transition("pie_slice_mouseout").call((function(e){return t.services.transitions.setupTransition({transition:e,name:"pie_slice_mouseout"})})).attr("d",t.arc),t.services.events.dispatchEvent(ft.Pie.SLICE_MOUSEOUT,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(ft.Tooltip.HIDE,{hoveredElement:r})}))},e.prototype.computeRadius=function(){var t=Y_.getSVGElementSize(this.parent,{useAttrs:!0}),e=t.width,n=t.height,r=this.getOptions(),i=Math.min(e,n)/2,o=r.pie.labels.enabled;return o?i+St.radiusOffset:i},e}(wT),aP=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)}}(),sP="4,10 8,6 12,10",uP="12,6 8,10 4,6",cP=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="gauge",e.renderType=I.SVG,e}return aP(e,t),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=_d.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.getOptions(),e=_d.getProperty(t,"gauge","type"),n=e===tt.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.getOptions(),n=_d.getProperty(e,"gauge","deltaArrow","direction");switch(n){case et.UP:return sP;case et.DOWN:return uP;default:return t>0?sP:uP}},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this.getComponentContainer().attr("width","100%").attr("height","100%"),r=this.getOptions(),i=this.getValue(),o=this.getValueRatio(),s=this.getArcSize(),u=this.getStartAngle(),c=o*s,l=u+c,h=u+s,f=this.computeRadius(),p=this.getInnerRadius();this.backgroundArc=JA().innerRadius(p).outerRadius(f).startAngle(l).endAngle(h),this.arc=JA().innerRadius(p).outerRadius(f).startAngle(u).endAngle(l),Y_.appendOrSelect(n,"path.arc-background").attr("d",this.backgroundArc);var d=n.selectAll("path.arc-foreground").data([i]),v=d.enter().append("path");v.merge(d).attr("class",this.model.getColorClassName({classNameTypes:[j.FILL],dataGroupName:"value",originalClassName:"arc-foreground"})).style("fill",(function(t){return _d.getProperty(e.getOptions(),"color","scale","value")})).attr("d",this.arc).attr("role",a.GRAPHICS_SYMBOL).attr("aria-roledescription","value").attr("aria-label",(function(t){return t})),this.drawValueNumber(),this.drawDelta(),d.exit().remove();var g=_d.getProperty(r,"gauge","alignment"),m=Y_.getSVGElementSize(this.getParent(),{useAttrs:!0}).width,y=f;g===F.CENTER?y=m/2:g===F.RIGHT&&(y=m-f),n.attr("x",y).attr("y",f),this.addEventListeners()},e.prototype.drawValueNumber=function(){var t=this.getComponentContainer(),e=this.getOptions(),n=_d.getProperty(e,"gauge","type"),r=this.getValue(),i=this.getDelta(),o=this.computeRadius(),a=_d.getProperty(e,"gauge","valueFontSize"),s=_d.getProperty(e,"gauge","deltaFontSize"),u=_d.getProperty(e,"gauge","numberSpacing"),c=_d.getProperty(e,"gauge","showPercentageSymbol"),l=0;n!==tt.FULL||i?n===tt.SEMI&&i&&(l=-(s(o)+u)):l=s(o);var h=Y_.appendOrSelect(t,"g.gauge-numbers").attr("transform","translate(0, "+l+")"),f=a(o),p=Y_.appendOrSelect(h,"g.gauge-value-number"),d=_d.getProperty(e,"gauge","numberFormatter"),v=p.selectAll("text.gauge-value-number").data([r]);v.enter().append("text").attr("class","gauge-value-number").merge(v).style("font-size",f+"px").attr("text-anchor","middle").text((function(t){return d(t)}));var g=Y_.getSVGElementSize(Y_.appendOrSelect(t,"text.gauge-value-number"),{useBBox:!0}).width,m=f/2,y=c?"%":"",_=Y_.appendOrSelect(p,"text.gauge-value-symbol").style("font-size",m+"px").attr("x",g/2).text(y),b=Y_.getSVGElementSize(_,{useBBox:!0}),O=b.width,w=b.height;_.attr("y","-"+w/2+"px"),p.attr("transform","translate(-"+O/2+", 0)")},e.prototype.drawDelta=function(){var t=this,e=this.getComponentContainer(),n=this.getOptions(),r=this.getDelta(),i=this.computeRadius(),o=r?_d.getProperty(n,"gauge","deltaFontSize"):function(){return 0},a=r?_d.getProperty(n,"gauge","numberFormatter"):function(){return null},s=_d.getProperty(n,"gauge","deltaArrow","size"),u=_d.getProperty(n,"gauge","numberSpacing"),c=_d.getProperty(n,"gauge","showPercentageSymbol"),l=Y_.appendOrSelect(e,"g.gauge-numbers"),h=Y_.appendOrSelect(l,"g.gauge-delta").attr("transform","translate(0, "+(o(i)+u)+")"),f=Y_.appendOrSelect(h,"text.gauge-delta-number"),p=c?"%":"";f.data(null===r?[]:[r]),f.enter().append("text").classed("gauge-delta-number",!0).merge(f).attr("text-anchor","middle").style("font-size",o(i)+"px").text((function(t){return""+a(t)+p}));var d=Y_.getSVGElementSize(Y_.appendOrSelect(e,".gauge-delta-number"),{useBBox:!0}).width,v=_d.getProperty(n,"gauge","deltaArrow","enabled"),g=h.selectAll("svg.gauge-delta-arrow").data(null!==r&&v?[r]:[]);g.enter().append("svg").merge(g).attr("class","gauge-delta-arrow").attr("x",-s(i)-d/2).attr("y",-s(i)/2-.35*o(i)).attr("width",s(i)).attr("height",s(i)).attr("viewBox","0 0 16 16").each((function(){var e=G_(this);Y_.appendOrSelect(e,"rect.gauge-delta-arrow-backdrop").attr("width","16").attr("height","16").attr("fill","none");var i=_d.getProperty(n,"gauge","status");Y_.appendOrSelect(e,"polygon.gauge-delta-arrow").attr("class",null!==i?"gauge-delta-arrow status--"+i:"").attr("points",t.getArrow(r))})),g.exit().remove(),f.exit().remove()},e.prototype.getInnerRadius=function(){var t=this.computeRadius(),e=_d.getProperty(this.getOptions(),"gauge","arcWidth");return t-e},e.prototype.addEventListeners=function(){var t=this;this.parent.selectAll("path.arc-foreground").on("mouseover",(function(e,n){t.services.events.dispatchEvent(ft.Gauge.ARC_MOUSEOVER,{event:e,element:G_(this),datum:n})})).on("mousemove",(function(e,n){var r=G_(this);t.services.events.dispatchEvent(ft.Gauge.ARC_MOUSEMOVE,{event:e,element:r,datum:n})})).on("click",(function(e,n){t.services.events.dispatchEvent(ft.Gauge.ARC_CLICK,{event:e,element:G_(this),datum:n})})).on("mouseout",(function(e,n){var r=G_(this);t.services.events.dispatchEvent(ft.Gauge.ARC_MOUSEOUT,{event:e,element:r,datum:n})}))},e.prototype.computeRadius=function(){var t=this.getOptions(),e=_d.getProperty(t,"gauge","type"),n=Y_.getSVGElementSize(this.parent,{useAttrs:!0}),r=n.width,i=n.height,o=e===tt.SEMI?Math.min(r/2,i):Math.min(r/2,i/2);return o},e}(wT),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)}}(),hP=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="donut",e.renderType=I.SVG,e}return lP(e,t),e.prototype.render=function(e){var n=this;void 0===e&&(e=!0),t.prototype.render.call(this,e);var r=this;if(this.model.isDataEmpty())this.getComponentContainer().select("g.center").remove();else{var i=Y_.appendOrSelect(this.getComponentContainer(),"g.center"),o=this.getOptions(),a=this.computeRadius(),s=_d.getProperty(o,"donut","center","label");Y_.appendOrSelect(i,"text.donut-figure").attr("text-anchor","middle").style("dominant-baseline",(function(){return null===s||""===s?"central":"initial"})).style("font-size",(function(){return o.donut.center.numberFontSize(a)})).transition().call((function(t){return n.services.transitions.setupTransition({transition:t,name:"donut-figure-enter-update",animate:e})})).tween("text",(function(){return r.centerNumberTween(G_(this))})),null!==s&&""!==s&&Y_.appendOrSelect(i,"text.donut-title").attr("text-anchor","middle").style("font-size",(function(){return o.donut.center.titleFontSize(a)})).attr("y",o.donut.center.titleYPosition(a)).text(s)}},e.prototype.getInnerRadius=function(){var t=this.computeRadius();return.75*t},e.prototype.centerNumberTween=function(t){var e=this.getOptions(),n=_d.getProperty(e,"donut","center","number");null===n&&(n=this.model.getDisplayData().reduce((function(t,n){return t+n[e.pie.valueMapsTo]}),0));var r,i=parseInt(t.text().replace(/[, ]+/g,""),10)||0;r=i%1===0&&n%1===0?Cx:bx;var o=r(i,n);return function(n){var r=e.donut.center.numberFormatter;t.text(r(o(n)))}},e}(oP);const fP=t=>+t;var pP=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)}}(),dP=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="skeleton",e}return pP(e,t),e.prototype.render=function(){var t=_d.getProperty(this.getOptions(),"data","loading");t?this.renderSkeleton(t):this.removeSkeleton()},e.prototype.renderSkeleton=function(t){if(this.configs.skeleton===$.GRID)this.renderGridSkeleton(t);else if(this.configs.skeleton===$.VERT_OR_HORIZ)this.renderVertOrHorizSkeleton(t);else if(this.configs.skeleton===$.PIE)this.renderPieSkeleton(t);else{if(this.configs.skeleton!==$.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===G.VERTICAL&&this.drawYGrid(t),e===G.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=AE().domain([0,1]).range(t),this.yScale=AE().domain([0,1]).range(e)},e.prototype.drawBackdrop=function(t){var e=this.parent,n=Y_.getSVGElementSize(e,{useAttrs:!0}),r=n.width,i=n.height;this.backdrop=Y_.appendOrSelect(e,"svg.chart-skeleton.DAII").attr("width",r).attr("height",i);var o=Y_.appendOrSelect(this.backdrop,"rect.chart-skeleton-backdrop");o.attr("width","100%").attr("height","100%");var a=this.xScale.range(),s=a[0],u=(a[1],this.yScale.range()),c=(u[0],u[1]);this.backdrop.merge(o).attr("x",s).attr("y",c),o.classed("shimmer-effect-lines",t).classed("empty-state-lines",!t).style("stroke",t?"url(#"+this.services.domUtils.generateElementIDString("shimmer-lines")+")":null)},e.prototype.drawXGrid=function(t){var e=this.backdrop.attr("width"),n=_d.getProperty(this.getOptions(),"grid","x","numberOfTicks"),r=this.xScale.ticks(n).map((function(t){return t*e})),i=Y_.appendOrSelect(this.backdrop,"g.x.skeleton"),o=i.selectAll("line").data(r);o.enter().append("line").merge(o).attr("x1",(function(t){return t})).attr("x2",(function(t){return t})).attr("y1",0).attr("y2","100%"),i.selectAll("line").classed("shimmer-effect-lines",t).classed("empty-state-lines",!t).style("stroke",t?"url(#"+this.services.domUtils.generateElementIDString("shimmer-lines")+")":null)},e.prototype.drawYGrid=function(t){var e=this.backdrop.attr("height"),n=this.backdrop.attr("width"),r=_d.getProperty(this.getOptions(),"grid","y","numberOfTicks"),i=this.xScale.ticks(r).map((function(t){return t*e})),o=Y_.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).style("stroke",t?"url(#"+this.services.domUtils.generateElementIDString("shimmer-lines")+")":null)},e.prototype.drawRing=function(t,e,n){void 0===n&&(n=!0);var r=this.parent,i=Y_.getSVGElementSize(r,{useAttrs:!0}),o=i.width,a=i.height,s=Y_.appendOrSelect(r,"svg.chart-skeleton").attr("width",o).attr("height",a),u=0===e?"pie":"donut",c=_d.getProperty(this.getOptions(),u,"alignment");Y_.appendOrSelect(s,"rect.chart-skeleton-area-container").attr("width",o).attr("height",a).attr("fill","none");var l=JA().innerRadius(e).outerRadius(t).startAngle(0).endAngle(2*Math.PI),h=t+Math.abs(St.radiusOffset),f=t+(Math.min(o,a)-2*t)/2,p=Y_.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).style("fill",n?"url(#"+this.services.domUtils.generateElementIDString("shimmer-areas")+")":null),d=t+St.xOffset;c===F.CENTER?d=o/2:c===F.RIGHT&&(d=o-t-St.xOffset);var v=t+St.yOffset;p.attr("transform","translate("+d+", "+v+")")},e.prototype.computeOuterRadius=function(){var t=Y_.getSVGElementSize(this.parent,{useAttrs:!0}),e=t.width,n=t.height,r=Math.min(e,n)/2;return r+St.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=Y_.getSVGElementSize(this.parent,{useAttrs:!0}).width,u=0,c=s,l=Y_.appendOrSelect(a,"defs").lower(),h=Y_.appendOrSelect(l,"linearGradient").attr("id",this.services.domUtils.generateElementIDString(t)).attr("class",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(fP).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}(wT),vP=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)}}(),gP=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="skeleton-lines",e}return vP(e,t),e.prototype.render=function(){var e=_d.getProperty(this.getOptions(),"data","loading"),n=!_d.getProperty(this.getOptions(),"grid","x","enabled")&&!_d.getProperty(this.getOptions(),"grid","y","enabled")&&!_d.getProperty(this.getOptions(),"axes","bottom","visible")&&!_d.getProperty(this.getOptions(),"axes","left","visible");e&&!n?t.prototype.renderGridSkeleton.call(this,e):e&&n?this.renderSparklineSkeleton(e):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=Y_.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).style("stroke",t?"url(#"+this.services.domUtils.generateElementIDString("shimmer-lines")+")":null)},e.prototype.updateBackdropStyle=function(){var t=this.parent;this.backdrop=Y_.appendOrSelect(t,"svg.chart-skeleton.DAII");var e=Y_.appendOrSelect(this.backdrop,"rect.chart-skeleton-backdrop");e.classed("shimmer-effect-lines",!1).classed("shimmer-effect-sparkline",!0).style("stroke",null)},e}(dP);function mP(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 yP=function(){return this.eachAfter(mP)},_P=function(t,e){let n=-1;for(const r of this)t.call(e,r,++n,this);return this},bP=function(t,e){var n,r,i=this,o=[i],a=-1;while(i=o.pop())if(t.call(e,i,++a,this),n=i.children)for(r=n.length-1;r>=0;--r)o.push(n[r]);return this},OP=function(t,e){var n,r,i,o=this,a=[o],s=[],u=-1;while(o=a.pop())if(s.push(o),n=o.children)for(r=0,i=n.length;r<i;++r)a.push(n[r]);while(o=s.pop())t.call(e,o,++u,this);return this},wP=function(t,e){let n=-1;for(const r of this)if(t.call(e,r,++n,this))return r},xP=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}))},EP=function(t){return this.eachBefore((function(e){e.children&&e.children.sort(t)}))},SP=function(t){var e=this,n=TP(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 TP(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 MP=function(){var t=this,e=[t];while(t=t.parent)e.push(t);return e},CP=function(){return Array.from(this)},AP=function(){var t=[];return this.eachBefore((function(e){e.children||t.push(e)})),t},PP=function(){var t=this,e=[];return t.each((function(n){n!==t&&e.push({source:n.parent,target:n})})),e},LP=function*(){var t,e,n,r,i=this,o=[i];do{t=o.reverse(),o=[];while(i=t.pop())if(yield i,e=i.children)for(n=0,r=e.length;n<r;++n)o.push(e[n])}while(o.length)};function DP(t,e){t instanceof Map?(t=[void 0,t],void 0===e&&(e=IP)):void 0===e&&(e=RP);var n,r,i,o,a,s=new BP(t),u=[s];while(n=u.pop())if((i=e(n.data))&&(a=(i=Array.from(i)).length))for(n.children=i,o=a-1;o>=0;--o)u.push(r=i[o]=new BP(i[o])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(jP)}function kP(){return DP(this).eachBefore(NP)}function RP(t){return t.children}function IP(t){return Array.isArray(t)?t[1]:null}function NP(t){void 0!==t.data.value&&(t.value=t.data.value),t.data=t.data.data}function jP(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function BP(t){this.data=t,this.depth=this.height=0,this.parent=null}function UP(t,e){return t.parent===e.parent?1:2}function VP(t){return t.reduce(GP,0)/t.length}function GP(t,e){return t+e.x}function HP(t){return 1+t.reduce(zP,0)}function zP(t,e){return Math.max(t,e.y)}function FP(t){var e;while(e=t.children)t=e[0];return t}function WP(t){var e;while(e=t.children)t=e[e.length-1];return t}BP.prototype=DP.prototype={constructor:BP,count:yP,each:_P,eachAfter:OP,eachBefore:bP,find:wP,sum:xP,sort:EP,path:SP,ancestors:MP,descendants:CP,leaves:AP,links:PP,copy:kP,[Symbol.iterator]:LP};var qP=function(){var t=UP,e=1,n=1,r=!1;function i(i){var o,a=0;i.eachAfter((function(e){var n=e.children;n?(e.x=VP(n),e.y=HP(n)):(e.x=o?a+=t(e,o):0,e.y=0,o=e)}));var s=FP(i),u=WP(i),c=s.x-t(s,u)/2,l=u.x+t(u,s)/2;return i.eachAfter(r?function(t){t.x=(t.x-i.x)*e,t.y=(i.y-t.y)*n}:function(t){t.x=(t.x-c)/(l-c)*e,t.y=(1-(i.y?t.y/i.y:1))*n})}return i.separation=function(e){return arguments.length?(t=e,i):t},i.size=function(t){return arguments.length?(r=!1,e=+t[0],n=+t[1],i):r?null:[e,n]},i.nodeSize=function(t){return arguments.length?(r=!0,e=+t[0],n=+t[1],i):r?[e,n]:null},i};function YP(t,e){return t.parent===e.parent?1:2}function ZP(t){var e=t.children;return e?e[0]:t.t}function XP(t){var e=t.children;return e?e[e.length-1]:t.t}function KP(t,e,n){var r=n/(e.i-t.i);e.c-=r,e.s+=n,t.c+=r,e.z+=n,e.m+=n}function $P(t){var e,n=0,r=0,i=t.children,o=i.length;while(--o>=0)e=i[o],e.z+=n,e.m+=n,n+=e.s+(r+=e.c)}function QP(t,e,n){return t.a.parent===e.parent?t.a:n}function JP(t,e){this._=t,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=e}function tL(t){var e,n,r,i,o,a=new JP(t,0),s=[a];while(e=s.pop())if(r=e._.children)for(e.children=new Array(o=r.length),i=o-1;i>=0;--i)s.push(n=e.children[i]=new JP(r[i],i)),n.parent=e;return(a.parent=new JP(null,0)).children=[a],a}JP.prototype=Object.create(BP.prototype);var eL=function(){var t=YP,e=1,n=1,r=null;function i(i){var s=tL(i);if(s.eachAfter(o),s.parent.m=-s.z,s.eachBefore(a),r)i.eachBefore(u);else{var c=i,l=i,h=i;i.eachBefore((function(t){t.x<c.x&&(c=t),t.x>l.x&&(l=t),t.depth>h.depth&&(h=t)}));var f=c===l?1:t(c,l)/2,p=f-c.x,d=e/(l.x+f+p),v=n/(h.depth||1);i.eachBefore((function(t){t.x=(t.x+p)*d,t.y=t.depth*v}))}return i}function o(e){var n=e.children,r=e.parent.children,i=e.i?r[e.i-1]:null;if(n){$P(e);var o=(n[0].z+n[n.length-1].z)/2;i?(e.z=i.z+t(e._,i._),e.m=e.z-o):e.z=o}else i&&(e.z=i.z+t(e._,i._));e.parent.A=s(e,i,e.parent.A||r[0])}function a(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function s(e,n,r){if(n){var i,o=e,a=e,s=n,u=o.parent.children[0],c=o.m,l=a.m,h=s.m,f=u.m;while(s=XP(s),o=ZP(o),s&&o)u=ZP(u),a=XP(a),a.a=e,i=s.z+h-o.z-c+t(s._,o._),i>0&&(KP(QP(s,e,r),e,i),c+=i,l+=i),h+=s.m,c+=o.m,f+=u.m,l+=a.m;s&&!XP(a)&&(a.t=s,a.m+=h-l),o&&!ZP(u)&&(u.t=o,u.m+=c-f,r=e)}return r}function u(t){t.x*=e,t.y=t.depth*n}return i.separation=function(e){return arguments.length?(t=e,i):t},i.size=function(t){return arguments.length?(r=!1,e=+t[0],n=+t[1],i):r?null:[e,n]},i.nodeSize=function(t){return arguments.length?(r=!0,e=+t[0],n=+t[1],i):r?[e,n]:null},i};function nL(t){return t.source}function rL(t){return t.target}function iL(t){var e=nL,n=rL,r=dA,i=vA,o=null;function a(){var a,s=mv.call(arguments),u=e.apply(this,s),c=n.apply(this,s);if(o||(o=a=pA()),t(o,+r.apply(this,(s[0]=u,s)),+i.apply(this,s),+r.apply(this,(s[0]=c,s)),+i.apply(this,s)),a)return o=null,a+""||null}return a.source=function(t){return arguments.length?(e=t,a):e},a.target=function(t){return arguments.length?(n=t,a):n},a.x=function(t){return arguments.length?(r="function"===typeof t?t:_v(+t),a):r},a.y=function(t){return arguments.length?(i="function"===typeof t?t:_v(+t),a):i},a.context=function(t){return arguments.length?(o=null==t?null:t,a):o},a}function oL(t,e,n,r,i){t.moveTo(e,n),t.bezierCurveTo(e=(e+r)/2,n,e,i,r,i)}function aL(){return iL(oL)}var sL=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)}}(),uL=6,cL=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="tree",e.renderType=I.SVG,e}return sL(e,t),e.prototype.getLongestLabel=function(t){var e=this,n="";return t.forEach((function(t){var r=t.children?e.getLongestLabel(t.children):"";(r.length>n.length||t.name.length>n.length)&&(n=r.length>t.name.length?r:t.name)})),n},e.prototype.getMockLabelWidth=function(t,e){var n=t.append("text").attr("dy","0.31em").attr("x",0).attr("text-anchor","end").text(e),r=Y_.getSVGElementSize(n.node(),{useBBox:!0}).width;return n.remove(),r},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this.getComponentContainer();n.html("");var r=Y_.getSVGElementSize(this.parent,{useAttrs:!0}),i=r.width,o=r.height;if(!(i<1||o<1)){var a=this.model.getOptions(),s=this.model.getDisplayData(),u=_d.getProperty(a,"tree","rootTitle")||"Tree",c=this.getMockLabelWidth(n,u),l=this.getLongestLabel(s),h=this.getMockLabelWidth(n,l),f={top:0,right:0,bottom:0,left:c>0?c+uL:30-uL},p=DP({name:u,children:s}),d=10,v=i/6,g=function(t){var r=p.descendants().reverse(),o=p.links(),a=p,s=p;p.eachBefore((function(t){t.x<a.x&&(a=t),t.x>s.x&&(s=t)}));var u=s.x-a.x,c=n.transition().call((function(t){return e.services.transitions.setupTransition({transition:t,name:"tree-update-viewbox",animate:!0})})).attr("viewBox",[-f.left,a.x,i,u]),l=w.selectAll("g").data(r,(function(t){return t.id})),h=e,d=l.enter().append("g").attr("transform",(function(){return"translate("+t.y0+","+t.x0+")"})).attr("class",(function(t){return 0!==t.depth&&t.children&&t.children.length>0?"clickable":null})).on("mouseover",(function(t,e){h.services.events.dispatchEvent(ft.Tree.NODE_MOUSEOVER,{event:t,element:G_(this),datum:e})})).on("click",(function(t,e){0!==e.depth&&(e.children=e.children?null:e._children,g(e)),h.services.events.dispatchEvent(ft.Tree.NODE_CLICK,{event:t,element:G_(this),datum:e})})).on("mouseout",(function(t,e){h.services.events.dispatchEvent(ft.Tree.NODE_MOUSEOUT,{event:t,element:G_(this),datum:e})}));d.append("circle").attr("r",2.5).attr("class",(function(t){return t._children?"parent":"child"})).attr("stroke-width",10),d.append("text").attr("dy","0.31em").attr("x",(function(t){return t._children?-uL:uL})).attr("text-anchor",(function(t){return t._children?"end":"start"})).text((function(t){return t.data.name})).clone(!0).attr("class","text-stroke").lower(),l.merge(d).transition(c).attr("transform",(function(t){return"translate("+t.y+","+t.x+")"})).attr("fill-opacity",1).attr("stroke-opacity",1),l.exit().transition(c).remove().attr("transform",(function(){return"translate("+t.y+","+t.x+")"})).attr("fill-opacity",0).attr("stroke-opacity",0);var v=O.selectAll("path").data(o,(function(t){return t.target.id})),m=v.enter().append("path").attr("d",(function(e){var n={x:t.x0,y:t.y0};return b({source:n,target:n})}));v.merge(m).transition(c).attr("d",b),v.exit().transition(c).remove().attr("d",(function(){var e={x:t.x,y:t.y};return b({source:e,target:e})})),p.eachBefore((function(t){t.x0=t.x,t.y0=t.y}))},m=p.descendants(),y=m[m.length-1].depth,_=_d.getProperty(a,"tree","type")===q.DENDROGRAM?qP().size([o,i-h-y*uL-c]):eL().nodeSize([d,v]).size([o,i-h-y*uL-c]),b=aL().x((function(t){return t.y})).y((function(t){return t.x}));p.x0=v/2,p.y0=0,p.descendants().forEach((function(t,e){t.id=e,t._children=t.children})),_(p),n.attr("viewBox",[-f.left,-f.top,i,d]).style("user-select","none");var O=n.append("g").attr("class","links"),w=n.append("g").attr("class","nodes");g(p)}},e}(wT),lL=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)},hL=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},fL=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},pL=(1+Math.sqrt(5))/2;function dL(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,O=y.length,w=e.value;while(_<O){u=i-n,c=o-r;do{l=y[b++].value}while(!l&&b<O);for(h=f=l,v=Math.max(c/u,u/c)/(w*t),g=l*l*v,d=Math.max(f/g,g/h);b<O;++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?hL(a,n,r,i,w?r+=c*l/w:o):fL(a,n,r,w?n+=u*l/w:i,o),w-=l,_=b}return m}var vL=function t(e){function n(t,n,r,i,o){dL(e,t,n,r,i,o)}return n.ratio=function(e){return t((e=+e)>1?e:1)},n}(pL);function gL(t){return null==t?null:mL(t)}function mL(t){if("function"!==typeof t)throw new Error;return t}function yL(){return 0}var _L=function(t){return function(){return t}},bL=function(){var t=vL,e=!1,n=1,r=1,i=[0],o=yL,a=yL,s=yL,u=yL,c=yL;function l(t){return t.x0=t.y0=0,t.x1=n,t.y1=r,t.eachBefore(h),i=[0],e&&t.eachBefore(lL),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=mL(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:_L(+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:_L(+t),l):a},l.paddingRight=function(t){return arguments.length?(s="function"===typeof t?t:_L(+t),l):s},l.paddingBottom=function(t){return arguments.length?(u="function"===typeof t?t:_L(+t),l):u},l.paddingLeft=function(t){return arguments.length?(c="function"===typeof t?t:_L(+t),l):c},l},OL="#000000",wL="#ffffff",xL="#fcf4d6",EL="#fddc69",SL="#f1c21b",TL="#d2a106",ML="#b28600",CL="#8e6a00",AL="#684e00",PL="#483700",LL="#302400",DL="#1c1500",kL={10:xL,20:EL,30:SL,40:TL,50:ML,60:CL,70:AL,80:PL,90:LL,100:DL},RL="#fff2e8",IL="#ffd9be",NL="#ffb784",jL="#ff832b",BL="#eb6200",UL="#ba4e00",VL="#8a3800",GL="#5e2900",HL="#3e1a00",zL="#231000",FL={10:RL,20:IL,30:NL,40:jL,50:BL,60:UL,70:VL,80:GL,90:HL,100:zL},WL="#fff1f1",qL="#ffd7d9",YL="#ffb3b8",ZL="#ff8389",XL="#fa4d56",KL="#da1e28",$L="#a2191f",QL="#750e13",JL="#520408",tD="#2d0709",eD={10:WL,20:qL,30:YL,40:ZL,50:XL,60:KL,70:$L,80:QL,90:JL,100:tD},nD="#fff0f7",rD="#ffd6e8",iD="#ffafd2",oD="#ff7eb6",aD="#ee5396",sD="#d02670",uD="#9f1853",cD="#740937",lD="#510224",hD="#2a0a18",fD={10:nD,20:rD,30:iD,40:oD,50:aD,60:sD,70:uD,80:cD,90:lD,100:hD},pD="#f6f2ff",dD="#e8daff",vD="#d4bbff",gD="#be95ff",mD="#a56eff",yD="#8a3ffc",_D="#6929c4",bD="#491d8b",OD="#31135e",wD="#1c0f30",xD={10:pD,20:dD,30:vD,40:gD,50:mD,60:yD,70:_D,80:bD,90:OD,100:wD},ED="#edf5ff",SD="#d0e2ff",TD="#a6c8ff",MD="#78a9ff",CD="#4589ff",AD="#0f62fe",PD="#0043ce",LD="#002d9c",DD="#001d6c",kD="#001141",RD={10:ED,20:SD,30:TD,40:MD,50:CD,60:AD,70:PD,80:LD,90:DD,100:kD},ID="#e5f6ff",ND="#bae6ff",jD="#82cfff",BD="#33b1ff",UD="#1192e8",VD="#0072c3",GD="#00539a",HD="#003a6d",zD="#012749",FD="#061727",WD={10:ID,20:ND,30:jD,40:BD,50:UD,60:VD,70:GD,80:HD,90:zD,100:FD},qD="#d9fbfb",YD="#9ef0f0",ZD="#3ddbd9",XD="#08bdba",KD="#009d9a",$D="#007d79",QD="#005d5d",JD="#004144",tk="#022b30",ek="#081a1c",nk={10:qD,20:YD,30:ZD,40:XD,50:KD,60:$D,70:QD,80:JD,90:tk,100:ek},rk="#defbe6",ik="#a7f0ba",ok="#6fdc8c",ak="#42be65",sk="#24a148",uk="#198038",ck="#0e6027",lk="#044317",hk="#022d0d",fk="#071908",pk={10:rk,20:ik,30:ok,40:ak,50:sk,60:uk,70:ck,80:lk,90:hk,100:fk},dk="#f2f4f8",vk="#dde1e6",gk="#c1c7cd",mk="#a2a9b0",yk="#878d96",_k="#697077",bk="#4d5358",Ok="#343a3f",wk="#21272a",xk="#121619",Ek={10:dk,20:vk,30:gk,40:mk,50:yk,60:_k,70:bk,80:Ok,90:wk,100:xk},Sk="#f4f4f4",Tk="#e0e0e0",Mk="#c6c6c6",Ck="#a8a8a8",Ak="#8d8d8d",Pk="#6f6f6f",Lk="#525252",Dk="#393939",kk="#262626",Rk="#161616",Ik={10:Sk,20:Tk,30:Mk,40:Ck,50:Ak,60:Pk,70:Lk,80:Dk,90:kk,100:Rk},Nk="#f7f3f2",jk="#e5e0df",Bk="#cac5c4",Uk="#ada8a8",Vk="#8f8b8b",Gk="#726e6e",Hk="#565151",zk="#3c3838",Fk="#272525",Wk="#171414",qk={10:Nk,20:jk,30:Bk,40:Uk,50:Vk,60:Gk,70:Hk,80:zk,90:Fk,100:Wk},Yk={black:{100:OL},blue:RD,coolGray:Ek,cyan:WD,gray:Ik,green:pk,magenta:fD,orange:FL,purple:xD,red:eD,teal:nk,warmGray:qk,white:{0:wL},yellow:kL};var 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)}}(),Xk=function(t){if(!t)return null;for(var e=0,n=Object.keys(Yk);e<n.length;e++)for(var r=n[e],i=Yk[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},Kk=function(){var t,e=G_(this.parentNode).select("rect.leaf"),n=getComputedStyle(e.node(),null).getPropertyValue("fill"),r=qw(n);if(r&&(t=Xk(r?r.hex():null)),null===t||void 0===t){var i=rx(r).l;t=Math.abs(100*i-100)}return t>50?"white":"black"},$k=0,Qk=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="treemap",e.renderType=I.SVG,e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement;e.parent.selectAll("g[data-name='leaf']").transition("legend-hover-treemap").call((function(t){return e.services.transitions.setupTransition({transition:t,name:"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("legend-mouseout-treemap").call((function(t){return e.services.transitions.setupTransition({transition:t,name:"legend-mouseout-treemap"})})).attr("opacity",1)},e}return Zk(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(ft.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(ft.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this.getComponentContainer(),r=(this.model.getData(),this.model.getDisplayData()),i=this.model.getOptions(),o=_d.getProperty(window,"location"),a=Y_.getSVGElementSize(n,{useAttrs:!0}),s=a.width,u=a.height,c=DP({name:i.title||"Treemap",children:r}).sum((function(t){return t.value})).sort((function(t,e){return e.value-t.value})),l=bL().size([s,u]).paddingInner(1).paddingOuter(0).round(!0)(c),h=(this.services.transitions,n.selectAll("g[data-name='leaf']").data(l.leaves(),(function(t){return t.data.name})));h.exit().attr("opacity",0).remove();var f=h.enter().append("g").attr("data-name","leaf").attr("data-uid",(function(){return $k++})),p=f.merge(h);p.attr("data-name","leaf").transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"treemap-group-update",animate:t})})).attr("transform",(function(t){return"translate("+t.x0+","+t.y0+")"}));var d=p.selectAll("rect.leaf").data((function(t){return[t]}));d.exit().attr("width",0).attr("height",0).remove();var v=d.enter().append("rect").classed("leaf",!0);v.merge(d).attr("width",0).attr("height",0).attr("id",(function(){var t=G_(this.parentNode).attr("data-uid");return i.style.prefix+"-leaf-"+t})).attr("class",(function(t){while(t.depth>1)t=t.parent;return e.model.getColorClassName({classNameTypes:[j.FILL],dataGroupName:t.data.name,originalClassName:"leaf"})})).transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"treemap-leaf-update-enter",animate:t})})).attr("width",(function(t){return t.x1-t.x0})).attr("height",(function(t){return t.y1-t.y0})).style("fill",(function(t){while(t.depth>1)t=t.parent;return e.model.getFillColor(t.data.name)})),p.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=G_(this.parentNode).attr("data-uid");return i.style.prefix+"-clip-"+t})).append("use").attr("xlink:href",(function(){var t=G_(this.parentNode.parentNode).attr("data-uid"),e=i.style.prefix+"-leaf-"+t;return new URL("#"+e,o)+""}))}),(function(t){return null}),(function(t){return t.remove()})),p.selectAll("text").data((function(t){if(!0!==t.data.showLabel)return[];var n=t;while(n.depth>1)n=n.parent;var r=rx(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",Kk).attr("x",7).attr("y",18);o&&e.attr("clip-path",(function(){var t=G_(this.parentNode).attr("data-uid"),e=i.style.prefix+"-clip-"+t;return"url("+new URL("#"+e,o)+")"}))}),(function(t){return t.text((function(t){return t.text})).style("fill",Kk)}),(function(t){return t.remove()})),this.addEventListeners()},e.prototype.addEventListeners=function(){var t=this;this.parent.selectAll("rect.leaf").on("mouseover",(function(e,n){var r=G_(this),i=getComputedStyle(this,null).getPropertyValue("fill"),o=n;while(o.depth>1)o=o.parent;r.transition("graph_element_mouseover_fill_update").call((function(e){return t.services.transitions.setupTransition({transition:e,name:"graph_element_mouseover_fill_update"})})).style("fill",(function(e){var n=t.model.getFillColor(e.parent.data.name);return n&&(i=n),qw(i).darker(.7).toString()})),t.services.events.dispatchEvent(ft.Tooltip.SHOW,{event:e,hoveredElement:r,items:[{color:i,label:o.data.name,bold:!0},{label:n.data.name,value:n.data.value}]}),t.services.events.dispatchEvent(ft.Treemap.LEAF_MOUSEOVER,{event:e,element:r,datum:n})})).on("mousemove",(function(e,n){var r=G_(this);t.services.events.dispatchEvent(ft.Treemap.LEAF_MOUSEMOVE,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(ft.Tooltip.MOVE,{event:e})})).on("click",(function(e,n){t.services.events.dispatchEvent(ft.Treemap.LEAF_CLICK,{event:e,element:G_(this),datum:n})})).on("mouseout",(function(e,n){var r=G_(this);r.classed("hovered",!1);var i=n;while(i.depth>1)i=i.parent;r.transition().call((function(e){return t.services.transitions.setupTransition({transition:e,name:"graph_element_mouseout_fill_update"})})).style("fill",(function(e){return t.model.getFillColor(e.parent.data.name)})),t.services.events.dispatchEvent(ft.Treemap.LEAF_MOUSEOUT,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(ft.Tooltip.HIDE,{hoveredElement:r})}))},e}(wT);function Jk(t){var e=tR(nR(t),360);return eR(e,[0,10])||eR(e,[350,0])?{textAnchor:Q.START,dominantBaseline:J.MIDDLE}:eR(e,[10,80])?{textAnchor:Q.START,dominantBaseline:J.HANGING}:eR(e,[80,100])?{textAnchor:Q.MIDDLE,dominantBaseline:J.HANGING}:eR(e,[100,170])?{textAnchor:Q.END,dominantBaseline:J.HANGING}:eR(e,[170,190])?{textAnchor:Q.END,dominantBaseline:J.MIDDLE}:eR(e,[190,260])?{textAnchor:Q.END,dominantBaseline:J.BASELINE}:eR(e,[260,280])?{textAnchor:Q.MIDDLE,dominantBaseline:J.BASELINE}:{textAnchor:Q.START,dominantBaseline:J.BASELINE}}function tR(t,e){return(t%e+e)%e}function eR(t,e){var n=e[0],r=e[1];return t>=n&&t<=r}function nR(t){return t*(180/Math.PI)}function rR(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:isNaN(r)?0:r,y:isNaN(i)?0:i}}function iR(t,e){return e*Math.sin(t-Math.PI/2)}var oR=sR(dS);function aR(t){this._curve=t}function sR(t){function e(e){return new aR(t(e))}return e._curve=t,e}function uR(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(sR(t)):e()._curve},t}aR.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 cR=function(){return uR(gA().curve(oR))},lR=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)}}(),hR=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="radar",e.renderType=I.SVG,e.getLabelDimensions=function(t){var n=Y_.appendOrSelect(e.getComponentContainer(),"g.tmp-tick"),r=Y_.appendOrSelect(n,"text").text(t),i=Y_.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.getOptions(),r=_d.getProperty(n,"radar","axes"),i=r.angle,o=r.value,a=_d.getProperty(n,"data","groupMapsTo"),s=_d.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 _d.merge(s,t)},e.normalizeGroupedData=function(t){var n=e.getOptions(),r=_d.getProperty(n,"radar","axes"),i=r.angle,o=r.value,a=_d.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:_d.merge(s,r)}}))},e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement;e.parent.selectAll("g.blobs path").transition("legend-hover-blob").call((function(t){return e.services.transitions.setupTransition({transition:t,name:"legend-hover-blob"})})).style("fill-opacity",(function(t){return t.name!==n.datum().name?Tt.opacity.unselected:Tt.opacity.selected})).style("stroke-opacity",(function(t){return t.name!==n.datum().name?Tt.opacity.unselected:1}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("g.blobs path").transition("legend-mouseout-blob").call((function(t){return e.services.transitions.setupTransition({transition:t,name:"legend-mouseout-blob"})})).style("fill-opacity",Tt.opacity.selected).style("stroke-opacity",1)},e}return lR(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(ft.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(ft.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this.getComponentContainer(),r=Y_.getSVGElementSize(n,{useAttrs:!0}),i=r.width,o=r.height,s=this.model.getData(),u=this.model.getGroupedData(),c=this.getOptions(),l=_d.getProperty(c,"data","groupMapsTo"),h=_d.getProperty(c,"radar","axes","value"),f=_d.getProperty(c,"radar","axes"),p=f.angle,d=f.value,v=Tt,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[p]})))),this.uniqueGroups=Array.from(new Set(s.map((function(t){return t[l]})))),this.fullDataNormalized=this.normalizeFlatData(s),this.groupedDataNormalized=this.normalizeGroupedData(u);var O=this.getLabelDimensions(this.uniqueKeys[0]).height,w=2*(O+m),x=Math.min(i,o),E=x-w,S=E/2;if(!(S<=0)){var T=xE().domain(this.fullDataNormalized.map((function(t){return t[p]}))).range([0,2*Math.PI].map((function(t){return t-Math.PI/2}))),M=Tm(this.fullDataNormalized.map((function(t){return t[d]}))),C=AE().domain([M>=0?0:M,PE(this.fullDataNormalized.map((function(t){return t[d]})))]).range([_,S]).nice(y),A=C.ticks(y),P=function(t){return e.model.getFillColor(t)},L=cR().angle((function(t){return T(t[p])+Math.PI/2})).radius((function(t){return C(t[d])})).curve(mS),D=this.uniqueKeys.map((function(t){var n=e.getLabelDimensions(t).width,r=iR(T(t),S);return n+r})),k=PE(D),R={x:k+g,y:o/2},I=Y_.appendOrSelect(n,"g.y-axes").attr("role",a.GROUP),N=I.selectAll("path").data(A,(function(t){return t})),B=function(t){return e.uniqueKeys.map((function(e){var n;return n={},n[p]=e,n[d]=t,n}))};N.join((function(n){return n.append("path").attr("opacity",0).attr("transform","translate("+R.x+", "+R.y+")").attr("fill","none").call((function(n){return n.transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"radar_y_axes_enter",animate:t})})).attr("opacity",1).attr("d",(function(t){return L(B(t))}))}))}),(function(n){return n.call((function(n){return n.transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"radar_y_axes_update",animate:t})})).attr("opacity",1).attr("transform","translate("+R.x+", "+R.y+")").attr("d",(function(t){return L(B(t))}))}))}),(function(n){return n.call((function(n){return n.transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"radar_y_axes_exit",animate:t})})).attr("d",(function(t){return L(B(t))})).attr("opacity",0).remove()}))}));var U=Y_.appendOrSelect(n,"g.x-axes").attr("role",a.GROUP),V=U.selectAll("line").data(this.uniqueKeys,(function(t){return t}));V.join((function(n){return n.append("line").attr("opacity",0).attr("class",(function(t){return"x-axis-"+_d.kebabCase(t)})).attr("stroke-dasharray","0").attr("x1",(function(t){return rR(T(t),0,R).x})).attr("y1",(function(t){return rR(T(t),0,R).y})).attr("x2",(function(t){return rR(T(t),0,R).x})).attr("y2",(function(t){return rR(T(t),0,R).y})).call((function(n){return n.transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"radar_x_axes_enter",animate:t})})).attr("opacity",1).attr("x1",(function(t){return rR(T(t),C.range()[0],R).x})).attr("y1",(function(t){return rR(T(t),C.range()[0],R).y})).attr("x2",(function(t){return rR(T(t),C.range()[1],R).x})).attr("y2",(function(t){return rR(T(t),C.range()[1],R).y}))}))}),(function(n){return n.call((function(n){return n.transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"radar_x_axes_update",animate:t})})).attr("opacity",1).attr("x1",(function(t){return rR(T(t),C.range()[0],R).x})).attr("y1",(function(t){return rR(T(t),C.range()[0],R).y})).attr("x2",(function(t){return rR(T(t),C.range()[1],R).x})).attr("y2",(function(t){return rR(T(t),C.range()[1],R).y}))}))}),(function(n){return n.call((function(n){return n.transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"radar_x_axes_exit",animate:t})})).attr("opacity",0).remove()}))}));var G=Y_.appendOrSelect(n,"g.x-labels").attr("role",a.GROUP),H=G.selectAll("text").data(this.uniqueKeys);H.join((function(n){return n.append("text").text((function(t){return t})).attr("opacity",0).attr("x",(function(t){return rR(T(t),C.range()[1]+g,R).x})).attr("y",(function(t){return rR(T(t),C.range()[1]+g,R).y})).style("text-anchor",(function(t){return Jk(T(t)).textAnchor})).style("dominant-baseline",(function(t){return Jk(T(t)).dominantBaseline})).call((function(n){return n.transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"radar_x_labels_enter",animate:t})})).attr("opacity",1)}))}),(function(r){return r.call((function(r){return r.transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"radar_x_labels_update",animate:t})})).attr("opacity",1).attr("x",(function(t){return rR(T(t),C.range()[1]+g,R).x})).attr("y",(function(t){return rR(T(t),C.range()[1]+g,R).y})).end().finally((function(){var t=_d.getProperty(c,"radar","alignment"),r=e.getAlignmentXOffset(t,n,e.getParent());n.attr("x",r)}))}))}),(function(n){return n.call((function(n){return n.transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"radar_x_labels_exit",animate:t})})).attr("opacity",0).remove()}))}));var z=Y_.appendOrSelect(n,"g.blobs").attr("role",a.GROUP),F=z.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:[j.FILL,j.STROKE],dataGroupName:t.name,originalClassName:"blob"})})).attr("role",a.GRAPHICS_SYMBOL).attr("aria-label",(function(t){return t["name"]})).attr("opacity",0).attr("transform",t?function(){return"translate("+R.x+", "+R.y+") scale("+(1+.35*Math.random())+")"}:"translate("+R.x+", "+R.y+")").style("fill",(function(t){return P(t.name)})).style("fill-opacity",Tt.opacity.selected).style("stroke",(function(t){return P(t.name)})).call((function(n){var r=n.transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"radar_blobs_enter",animate:t})}));t&&r.delay((function(){return 30*Math.random()})).attr("transform","translate("+R.x+", "+R.y+")"),r.attr("opacity",1).attr("d",(function(t){return L(t.data)}))}))}),(function(n){n.attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[j.FILL,j.STROKE],dataGroupName:t.name,originalClassName:"blob"})})).style("fill",(function(t){return P(t.name)})).style("stroke",(function(t){return P(t.name)})),n.call((function(n){return n.transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"radar_blobs_update",animate:t})})).attr("opacity",1).attr("transform","translate("+R.x+", "+R.y+")").attr("d",(function(t){return L(t.data)}))}))}),(function(n){return n.call((function(n){var r=n.transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"radar_blobs_exit",animate:t})}));t&&r.delay((function(){return 30*Math.random()})).attr("transform",(function(){return"translate("+R.x+", "+R.y+") scale("+(1+.35*Math.random())+")"})),r.attr("opacity",0).remove()}))}));var W=Y_.appendOrSelect(n,"g.dots").attr("role",a.GROUP),q=W.selectAll("circle").data(this.fullDataNormalized.filter((function(t){return null!==_d.getProperty(t,d)})));q.join((function(t){return t.append("circle").attr("role",a.GRAPHICS_SYMBOL).attr("aria-label",(function(t){return t[h]}))}),(function(t){return t}),(function(t){return t.remove()})).attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[j.FILL],dataGroupName:t[l],originalClassName:_d.kebabCase(t[p])})})).attr("cx",(function(t){return rR(T(t[p]),C(t[d]),R).x})).attr("cy",(function(t){return rR(T(t[p]),C(t[d]),R).y})).attr("r",0).attr("opacity",0).style("fill",(function(t){return P(t[l])}));var Y=Y_.appendOrSelect(n,"g.x-axes-rect").attr("role",a.GROUP),Z=Y.selectAll("rect").data(this.uniqueKeys);Z.join((function(t){return t.append("rect")}),(function(t){return t}),(function(t){return t.remove()})).attr("x",R.x).attr("y",R.y-b/2).attr("width",C.range()[1]).attr("height",b).style("fill","red").style("fill-opacity",0).attr("transform",(function(t){return"rotate("+nR(T(t))+", "+R.x+", "+R.y+")"}));var X=Y_.appendOrSelect(n,"g.y-labels").attr("role",a.GROUP),K=X.selectAll("text").data(jv(A));K.join((function(n){return n.append("text").attr("opacity",0).text((function(t){return t})).attr("x",(function(t){return rR(-Math.PI/2,C(t),R).x+m})).attr("y",(function(t){return rR(-Math.PI/2,C(t),R).y})).style("text-anchor","start").style("dominant-baseline","middle").call((function(n){return n.transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"radar_y_labels_enter",animate:t})})).attr("opacity",1)}))}),(function(n){return n.call((function(n){return n.transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"radar_y_labels_update",animate:t})})).text((function(t){return t})).attr("opacity",1).attr("x",(function(t){return rR(-Math.PI/2,C(t),R).x+m})).attr("y",(function(t){return rR(-Math.PI/2,C(t),R).y}))}))}),(function(n){return n.call((function(n){return n.transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"radar_y_labels_exit",animate:t})})).attr("opacity",0).remove()}))})),this.addEventListeners()}},e.prototype.getAlignmentXOffset=function(t,e,n){var r=Y_.getSVGElementSize(e,{useBBox:!0}),i=Y_.getSVGElementSize(n,{useAttrs:!0}).width,o=0;return t===F.CENTER?o=Math.floor((i-r.width)/2):t===F.RIGHT&&(o=i-r.width),o},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(ft.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(ft.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.addEventListeners=function(){var t=this,e=_d.getProperty(this.getOptions(),"radar").axes.angle;this.parent.selectAll(".x-axes-rect > rect").on("mouseover",(function(n,r){var i=G_(this);t.services.events.dispatchEvent(ft.Radar.X_AXIS_MOUSEOVER,{event:n,element:i,datum:r});var o=t.parent.select(".x-axes .x-axis-"+_d.kebabCase(r)),a=t.parent.selectAll(".dots circle."+_d.kebabCase(r)),s=t.model.getActiveDataGroupNames(),u=t.getOptions(),c=u.data.groupMapsTo,l=_d.getProperty(u,"radar","axes","value");o.classed("hovered",!0).attr("stroke-dasharray","4 4"),a.classed("hovered",!0).attr("opacity",(function(t){return-1!==s.indexOf(t[c])?1:0})).attr("r",Tt.dotsRadius);var h=t.fullDataNormalized.filter((function(t){return t[e]===r&&-1!==s.indexOf(t[c])}));t.services.events.dispatchEvent(ft.Tooltip.SHOW,{event:n,hoveredElement:i,items:h.filter((function(t){return"number"===typeof t[l]})).map((function(e){return{label:e[c],value:e[l],color:t.model.getFillColor(e[c]),class:t.model.getColorClassName({classNameTypes:[j.TOOLTIP],dataGroupName:e[c]})}}))})})).on("mousemove",(function(e,n){var r=G_(this);t.services.events.dispatchEvent(ft.Radar.X_AXIS_MOUSEMOVE,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(ft.Tooltip.MOVE,{event:e})})).on("click",(function(e,n){t.services.events.dispatchEvent(ft.Radar.X_AXIS_CLICK,{event:e,element:G_(this),datum:n})})).on("mouseout",(function(e,n){var r=G_(this),i=t.parent.select(".x-axes .x-axis-"+_d.kebabCase(n)),o=t.parent.selectAll(".dots circle."+_d.kebabCase(n));i.classed("hovered",!1).attr("stroke-dasharray","0"),o.classed("hovered",!1).attr("opacity",0).attr("r",0),t.services.events.dispatchEvent(ft.Radar.X_AXIS_MOUSEOUT,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(ft.Tooltip.HIDE)}))},e}(wT),fR=function(t){return"object"===typeof t&&"length"in t?t:Array.from(t)};function pR(t){var e,n,r=t.length;while(r)n=Math.random()*r--|0,e=t[r],t[r]=t[n],t[n]=e;return t}var dR=function(t){var e,n,r=0,i=(t=pR(Array.from(t))).length,o=[];while(r<i)e=t[r],n&&mR(n,e)?++r:(n=_R(o=vR(o,e)),r=0);return n};function vR(t,e){var n,r;if(yR(e,t))return[e];for(n=0;n<t.length;++n)if(gR(e,t[n])&&yR(OR(t[n],e),t))return[t[n],e];for(n=0;n<t.length-1;++n)for(r=n+1;r<t.length;++r)if(gR(OR(t[n],t[r]),e)&&gR(OR(t[n],e),t[r])&&gR(OR(t[r],e),t[n])&&yR(wR(t[n],t[r],e),t))return[t[n],t[r],e];throw new Error}function gR(t,e){var n=t.r-e.r,r=e.x-t.x,i=e.y-t.y;return n<0||n*n<r*r+i*i}function mR(t,e){var n=t.r-e.r+1e-9*Math.max(t.r,e.r,1),r=e.x-t.x,i=e.y-t.y;return n>0&&n*n>r*r+i*i}function yR(t,e){for(var n=0;n<e.length;++n)if(!mR(t,e[n]))return!1;return!0}function _R(t){switch(t.length){case 1:return bR(t[0]);case 2:return OR(t[0],t[1]);case 3:return wR(t[0],t[1],t[2])}}function bR(t){return{x:t.x,y:t.y,r:t.r}}function OR(t,e){var n=t.x,r=t.y,i=t.r,o=e.x,a=e.y,s=e.r,u=o-n,c=a-r,l=s-i,h=Math.sqrt(u*u+c*c);return{x:(n+o+u/h*l)/2,y:(r+a+c/h*l)/2,r:(h+i+s)/2}}function wR(t,e,n){var r=t.x,i=t.y,o=t.r,a=e.x,s=e.y,u=e.r,c=n.x,l=n.y,h=n.r,f=r-a,p=r-c,d=i-s,v=i-l,g=u-o,m=h-o,y=r*r+i*i-o*o,_=y-a*a-s*s+u*u,b=y-c*c-l*l+h*h,O=p*d-f*v,w=(d*b-v*_)/(2*O)-r,x=(v*g-d*m)/O,E=(p*_-f*b)/(2*O)-i,S=(f*m-p*g)/O,T=x*x+S*S-1,M=2*(o+w*x+E*S),C=w*w+E*E-o*o,A=-(T?(M+Math.sqrt(M*M-4*T*C))/(2*T):C/M);return{x:r+w+x*A,y:i+E+S*A,r:A}}function xR(t,e,n){var r,i,o,a,s=t.x-e.x,u=t.y-e.y,c=s*s+u*u;c?(i=e.r+n.r,i*=i,a=t.r+n.r,a*=a,i>a?(r=(c+a-i)/(2*c),o=Math.sqrt(Math.max(0,a/c-r*r)),n.x=t.x-r*s-o*u,n.y=t.y-r*u+o*s):(r=(c+i-a)/(2*c),o=Math.sqrt(Math.max(0,i/c-r*r)),n.x=e.x+r*s-o*u,n.y=e.y+r*u+o*s)):(n.x=e.x+n.r,n.y=e.y)}function ER(t,e){var n=t.r+e.r-1e-6,r=e.x-t.x,i=e.y-t.y;return n>0&&n*n>r*r+i*i}function SR(t){var e=t._,n=t.next._,r=e.r+n.r,i=(e.x*n.r+n.x*e.r)/r,o=(e.y*n.r+n.y*e.r)/r;return i*i+o*o}function TR(t){this._=t,this.next=null,this.previous=null}function MR(t){if(!(i=(t=fR(t)).length))return 0;var e,n,r,i,o,a,s,u,c,l,h;if(e=t[0],e.x=0,e.y=0,!(i>1))return e.r;if(n=t[1],e.x=-n.r,n.x=e.r,n.y=0,!(i>2))return e.r+n.r;xR(n,e,r=t[2]),e=new TR(e),n=new TR(n),r=new TR(r),e.next=r.previous=n,n.next=e.previous=r,r.next=n.previous=e;t:for(s=3;s<i;++s){xR(e._,n._,r=t[s]),r=new TR(r),u=n.next,c=e.previous,l=n._.r,h=e._.r;do{if(l<=h){if(ER(u._,r._)){n=u,e.next=n,n.previous=e,--s;continue t}l+=u._.r,u=u.next}else{if(ER(c._,r._)){e=c,e.next=n,n.previous=e,--s;continue t}h+=c._.r,c=c.previous}}while(u!==c.next);r.previous=e,r.next=n,e.next=n.previous=n=r,o=SR(e);while((r=r.next)!==n)(a=SR(r))<o&&(e=r,o=a);n=e.next}e=[n._],r=n;while((r=r.next)!==n)e.push(r._);for(r=dR(e),s=0;s<i;++s)e=t[s],e.x-=r.x,e.y-=r.y;return r.r}function CR(t){return Math.sqrt(t.value)}var AR=function(){var t=null,e=1,n=1,r=yL;function i(i){return i.x=e/2,i.y=n/2,t?i.eachBefore(PR(t)).eachAfter(LR(r,.5)).eachBefore(DR(1)):i.eachBefore(PR(CR)).eachAfter(LR(yL,1)).eachAfter(LR(r,i.r/Math.min(e,n))).eachBefore(DR(Math.min(e,n)/(2*i.r))),i}return i.radius=function(e){return arguments.length?(t=gL(e),i):t},i.size=function(t){return arguments.length?(e=+t[0],n=+t[1],i):[e,n]},i.padding=function(t){return arguments.length?(r="function"===typeof t?t:_L(+t),i):r},i};function PR(t){return function(e){e.children||(e.r=Math.max(0,+t(e)||0))}}function LR(t,e){return function(n){if(r=n.children){var r,i,o,a=r.length,s=t(n)*e||0;if(s)for(i=0;i<a;++i)r[i].r+=s;if(o=MR(r),s)for(i=0;i<a;++i)r[i].r-=s;n.r=o+s}}}function DR(t){return function(e){var n=e.parent;e.r*=t,n&&(e.x=n.x+t*e.x,e.y=n.y+t*e.y)}}var kR=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)}}(),RR=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},IR=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="circle-pack",e.renderType=I.SVG,e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement;e.parent.selectAll("circle.node").transition("legend-hover-circlepack").call((function(t){return e.services.transitions.setupTransition({transition:t,name:"legend-hover-circlepack"})})).attr("opacity",(function(t){return t.data.dataGroupName===n.datum()["name"]?1:yt.circles.fillOpacity}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("circle.node").transition("legend-mouseout-circlepack").call((function(t){return e.services.transitions.setupTransition({transition:t,name:"legend-mouseout-circlepack"})})).attr("opacity",1)},e}return kR(e,t),e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this.getComponentContainer({withinChartClip:!0}),r=Y_.getSVGElementSize(this.parent,{useAttrs:!0}),i=r.width,o=r.height;if(!(i<1||o<1)){var a=this.model.getDisplayData(),s=this.model.hasParentNode(),u=this.model.getHierarchyLevel(),c=this.getOptions(),l=_d.getProperty(c,"canvasZoom","enabled");s&&_d.getProperty(a,0,"children")&&(a=_d.getProperty(a,0,"children"));var h=DP({children:a}).sum((function(t){return t.value})).sort((function(t,e){return e.value-t.value})),f=AR().size([i,o]).padding((function(t){return t.depth>=1?yt.padding.children+3:yt.padding.mainGroup+3})),p=f(h).descendants().splice(1).filter((function(t){return t.depth<=u})),d=n.selectAll("circle.node").data(p);d.exit().attr("width",0).attr("height",0).remove();var v=d.enter().append("circle").classed("node",!0);v.merge(d).attr("class",(function(t){var n=l&&3===u?e.getZoomClass(t):"";return e.model.getColorClassName({classNameTypes:[j.FILL,j.STROKE],dataGroupName:t.data.dataGroupName,originalClassName:t.children?"node "+n:"node node-leaf "+n})})).style("fill",(function(t){return e.model.getFillColor(t.data.dataGroupName)})).style("stroke",(function(t){return e.model.getFillColor(t.data.dataGroupName)})).attr("cx",(function(t){return t.x})).attr("cy",(function(t){return t.y})).transition("circlepack-leaf-update-enter").call((function(t){return e.services.transitions.setupTransition({transition:t,name:"circlepack-leaf-update-enter"})})).attr("r",(function(t){return t.r})).attr("opacity",1).attr("fill-opacity",yt.circles.fillOpacity),!0===l&&this.focal&&(this.services.canvasZoom.zoomIn(this.focal,v,mt),this.setBackgroundListeners()),s||this.addLegendListeners(),this.addEventListeners()}},e.prototype.unhighlightChildren=function(t){var e=this,n=t.map((function(t){return t.data}));this.parent.selectAll("circle.node").filter((function(t){return n.some((function(e){return e===t.data}))&&t.depth>1})).style("stroke",(function(t){return e.model.getFillColor(t.data.dataGroupName)}))},e.prototype.highlightChildren=function(t){var e=t.map((function(t){return t.data}));this.parent.selectAll("circle.node").filter((function(t){return e.some((function(e){return e===t.data}))&&t.depth>1})).style("stroke",yt.circles.hover.stroke)},e.prototype.getZoomClass=function(t){return 3===this.model.getHierarchyLevel()&&this.focal&&(t.data===this.focal.data||this.focal.children.some((function(e){return e.data===t.data})))?"focal":"non-focal"},e.prototype.addLegendListeners=function(){var t=this.services.events;t.addEventListener(ft.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(ft.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.removeBackgroundListeners=function(){var t=G_(this.services.domUtils.getMainContainer());t.on("click",(function(){return null}))},e.prototype.setBackgroundListeners=function(){var t=G_(this.services.domUtils.getMainContainer()),e=this,n=this.parent.selectAll("circle.node"),r=_d.getProperty(o,"canvasZoomSettings");t.on("click",(function(){e.focal=null,e.model.updateHierarchyLevel(2),t.classed("zoomed-in",!1),e.services.canvasZoom.zoomOut(n,r)}))},e.prototype.getZoomIcon=function(){return'\n\t\t<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 10">\n\t\t\t<polygon points="5.93 3.71 4.45 3.71 4.45 2.23 3.71 2.23 3.71 3.71 2.23 3.71 2.23 4.45 3.71 4.45 3.71 5.93 4.45 5.93 4.45 4.45 5.93 4.45 5.93 3.71"/>\n\t\t\t<path d="M7.2,6.67a4,4,0,0,0,1-2.59A4.08,4.08,0,1,0,4.07,8.15h0a4,4,0,0,0,2.59-1L9.48,10,10,9.48Zm-3.12.77A3.34,3.34,0,1,1,7.41,4.08,3.34,3.34,0,0,1,4.08,7.44Z"/>\n\t\t</svg>'},e.prototype.addEventListeners=function(){var t=this;this.parent.selectAll("circle.node").on("mouseover",(function(e,n){var r=G_(this);r.classed("hovered",!0);var i=t.model.getHierarchyLevel(),o=i>2&&!r.classed("focal"),a=_d.getProperty(t.model.getOptions(),"canvasZoom","enabled"),s=!1;if(!o){var u=[],c=[],l=null;if(n.children){n.depth>1&&a&&(s=!0,r.classed("clickable",!0)),u=n.children.map((function(e){if(null!==e)return"number"===typeof e.data.value?{label:e.data.name,value:e.data.value}:{label:e.data.name,labelIcon:a&&i<=2?t.getZoomIcon():null,value:e.value}}));var h=t.model.getOptions();c=[{label:Ml(h,"tooltip.totalLabel")||"Total",value:n.value,bold:!0}],t.highlightChildren(n.children)}else l=n.value;var f=getComputedStyle(this,null).getPropertyValue("fill");t.services.events.dispatchEvent(ft.Tooltip.SHOW,{event:e,hoveredElement:r,items:RR([{color:f,label:n.data.name,labelIcon:s&&a&&i<=2?t.getZoomIcon():null,value:l}],u,c)})}t.services.events.dispatchEvent(ft.CirclePack.CIRCLE_MOUSEOVER,{event:e,element:r,datum:n})})).on("mousemove",(function(e,n){var r=G_(this);t.services.events.dispatchEvent(ft.CirclePack.CIRCLE_MOUSEMOVE,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(ft.Tooltip.MOVE,{event:e})})).on("mouseout",(function(e,n){var r=G_(this);r.classed("hovered",!1),n.children&&t.unhighlightChildren(n.children),t.services.events.dispatchEvent(ft.CirclePack.CIRCLE_MOUSEOUT,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(ft.Tooltip.HIDE,{hoveredElement:r})})).on("click",(function(e,n){var r=G_(this),i=r.classed("non-focal"),o=_d.getProperty(t.model.getOptions(),"canvasZoom","enabled");if(o&&t.model.getHierarchyLevel()>2){var a=t.parent.selectAll("circle.node"),s=G_(t.services.domUtils.getMainContainer());s.classed("zoomed-in",!1),t.focal=null,t.model.updateHierarchyLevel(2),t.services.canvasZoom.zoomOut(a,mt)}else if(2===n.depth&&n.children&&!i&&o){a=t.parent.selectAll("circle.node"),s=G_(t.services.domUtils.getMainContainer());s.classed("zoomed-in",!0),t.focal=n,t.model.updateHierarchyLevel(3),t.services.canvasZoom.zoomIn(n,a,mt),e.stopPropagation()}t.services.events.dispatchEvent(ft.CirclePack.CIRCLE_CLICK,{event:e,element:r,datum:n})}))},e.prototype.destroy=function(){this.parent.selectAll("circle.node").on("mouseover",null).on("mousemove",null).on("mouseout",null).on("click",null);var t=this.services.events;t.removeEventListener(ft.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(ft.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut),this.removeBackgroundListeners()},e}(wT),NR=n("2a60"),jR=n.n(NR),BR=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)}}(),UR=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="wordcloud",e.renderType=I.SVG,e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement,r=e.getOptions().data.groupMapsTo;e.parent.selectAll("text.word").transition("legend-hover-wordcloud").call((function(t){return e.services.transitions.setupTransition({transition:t,name:"legend-hover-wordcloud"})})).attr("opacity",(function(t){return t[r]!==n.datum()["name"]?.3:1}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("text.word").transition("legend-mouseout-wordcloud").call((function(t){return e.services.transitions.setupTransition({transition:t,name:"legend-mouseout-wordcloud"})})).attr("opacity",1)},e}return BR(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(ft.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(ft.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){void 0===t&&(t=!0);var e=this,n=this.getComponentContainer().attr("width","100%").attr("height","100%"),r=this.model.getDisplayData(),i=this.getFontSizeScale(r),o=this.getOptions(),a=o.wordCloud,s=a.fontSizeMapsTo,u=a.wordMapsTo,c=o.data.groupMapsTo,l=Y_.getSVGElementSize(n,{useAttrs:!0}),h=l.width,f=l.height;if(0!==h&&0!==f){var p=jR()().size([h,f]).words(r.map((function(t){var e;return e={},e[c]=t[c],e.text=t[u],e.size=t[s],e.value=t[s],e}))).padding(5).rotate(0).fontSize((function(t){return i(t.size)})).on("end",d);p.start(),this.addEventListeners()}function d(r){var i=Y_.appendOrSelect(n,"g.words");i.attr("transform","translate("+p.size()[0]/2+", "+p.size()[1]/2+")");var o=i.selectAll("text").data(r,(function(t){return t[c]+"-"+t.text}));o.exit().attr("opacity",0).remove();var a=o.enter().append("text").attr("opacity",0);a.merge(o).style("font-size",(function(t){return t.size+"px"})).text((function(t){return t.text})).attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[j.FILL],dataGroupName:t[c],originalClassName:"word "+(t.size>32?"light":"")})})).style("fill",(function(t){return e.model.getFillColor(t[c],t.text,t)})).attr("text-anchor","middle").transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"wordcloud-text-update-enter",animate:t})})).attr("transform",(function(t){return"translate("+t.x+", "+t.y+")"})).attr("opacity",1)}},e.prototype.getFontSizeScale=function(t){var e=this.getOptions(),n=e.wordCloud.fontSizeMapsTo,r=t.map((function(t){return t[n]})).filter((function(t){return t})),i=Y_.getHTMLElementSize(this.services.domUtils.getMainContainer()),o=r.length>0,a=o?jv(r):[1,1];return AE().domain(a).range(o?e.wordCloud.fontSizeRange(i,t):[4,4])},e.prototype.addEventListeners=function(){var t=this.getOptions(),e=t.data.groupMapsTo,n=this,r=_d.debounce((function(t){var e=n.parent.selectAll("text.word").transition("wordcloud-word-mouse-highlight").call((function(t){return n.services.transitions.setupTransition({transition:t,name:"wordcloud-word-mouse-highlight"})}));null===t?e.attr("opacity",1):e.attr("opacity",(function(){return t===this?1:.3}))}),6);this.parent.selectAll("text.word").on("mouseover",(function(i,o){var a=this;r(a),n.services.events.dispatchEvent(ft.WordCloud.WORD_MOUSEOVER,{event:i,element:G_(this),datum:o}),n.services.events.dispatchEvent(ft.Tooltip.SHOW,{event:i,hoveredElement:a,items:[{label:t.tooltip.wordLabel,value:o.text},{label:t.tooltip.valueLabel,value:o.value},{label:t.tooltip.groupLabel,value:o[e],class:n.model.getColorClassName({classNameTypes:[j.TOOLTIP],dataGroupName:o[e]})}]})})).on("mousemove",(function(t,e){var r=G_(this);n.services.events.dispatchEvent(ft.WordCloud.WORD_MOUSEMOVE,{element:r,datum:e}),n.services.events.dispatchEvent(ft.Tooltip.MOVE,{event:t})})).on("click",(function(t,e){n.services.events.dispatchEvent(ft.WordCloud.WORD_CLICK,{event:t,element:G_(this),datum:e})})).on("mouseout",(function(t,e){var i=G_(this);r(null),n.services.events.dispatchEvent(ft.WordCloud.WORD_MOUSEOUT,{event:t,element:i,datum:e}),n.services.events.dispatchEvent(ft.Tooltip.HIDE,{hoveredElement:i})}))},e}(wT);function VR(t,e){let n=0;if(void 0===e)for(let r of t)(r=+r)&&(n+=r);else{let r=-1;for(let i of t)(i=+e(i,++r,t))&&(n+=i)}return n}function GR(t,e){let n;if(void 0===e)for(const r of t)null!=r&&(n<r||void 0===n&&r>=r)&&(n=r);else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(n<i||void 0===n&&i>=i)&&(n=i)}return n}function HR(t,e){let n;if(void 0===e)for(const r of t)null!=r&&(n>r||void 0===n&&r>=r)&&(n=r);else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(n>i||void 0===n&&i>=i)&&(n=i)}return n}function zR(t){return t.depth}function FR(t,e){return e-1-t.height}function WR(t,e){return t.sourceLinks.length?t.depth:e-1}function qR(t){return function(){return t}}function YR(t,e){return XR(t.source,e.source)||t.index-e.index}function ZR(t,e){return XR(t.target,e.target)||t.index-e.index}function XR(t,e){return t.y0-e.y0}function KR(t){return t.value}function $R(t){return t.index}function QR(t){return t.nodes}function JR(t){return t.links}function tI(t,e){const n=t.get(e);if(!n)throw new Error("missing: "+e);return n}function eI({nodes:t}){for(const e of t){let t=e.y0,n=t;for(const r of e.sourceLinks)r.y0=t+r.width/2,t+=r.width;for(const r of e.targetLinks)r.y1=n+r.width/2,n+=r.width}}function nI(){let t,e,n,r=0,i=0,o=1,a=1,s=24,u=8,c=$R,l=WR,h=QR,f=JR,p=6;function d(){const t={nodes:h.apply(null,arguments),links:f.apply(null,arguments)};return v(t),g(t),m(t),y(t),O(t),eI(t),t}function v({nodes:t,links:e}){for(const[n,i]of t.entries())i.index=n,i.sourceLinks=[],i.targetLinks=[];const r=new Map(t.map((e,n)=>[c(e,n,t),e]));for(const[n,i]of e.entries()){i.index=n;let{source:t,target:e}=i;"object"!==typeof t&&(t=i.source=tI(r,t)),"object"!==typeof e&&(e=i.target=tI(r,e)),t.sourceLinks.push(i),e.targetLinks.push(i)}if(null!=n)for(const{sourceLinks:i,targetLinks:o}of t)i.sort(n),o.sort(n)}function g({nodes:t}){for(const e of t)e.value=void 0===e.fixedValue?Math.max(VR(e.sourceLinks,KR),VR(e.targetLinks,KR)):e.fixedValue}function m({nodes:t}){const e=t.length;let n=new Set(t),r=new Set,i=0;while(n.size){for(const t of n){t.depth=i;for(const{target:e}of t.sourceLinks)r.add(e)}if(++i>e)throw new Error("circular link");n=r,r=new Set}}function y({nodes:t}){const e=t.length;let n=new Set(t),r=new Set,i=0;while(n.size){for(const t of n){t.height=i;for(const{source:e}of t.targetLinks)r.add(e)}if(++i>e)throw new Error("circular link");n=r,r=new Set}}function _({nodes:t}){const n=GR(t,t=>t.depth)+1,i=(o-r-s)/(n-1),a=new Array(n);for(const e of t){const t=Math.max(0,Math.min(n-1,Math.floor(l.call(null,e,n))));e.layer=t,e.x0=r+t*i,e.x1=e.x0+s,a[t]?a[t].push(e):a[t]=[e]}if(e)for(const r of a)r.sort(e);return a}function b(e){const n=HR(e,e=>(a-i-(e.length-1)*t)/VR(e,KR));for(const r of e){let e=i;for(const i of r){i.y0=e,i.y1=e+i.value*n,e=i.y1+t;for(const t of i.sourceLinks)t.width=t.value*n}e=(a-e+t)/(r.length+1);for(let t=0;t<r.length;++t){const n=r[t];n.y0+=e*(t+1),n.y1+=e*(t+1)}C(r)}}function O(e){const n=_(e);t=Math.min(u,(a-i)/(GR(n,t=>t.length)-1)),b(n);for(let t=0;t<p;++t){const e=Math.pow(.99,t),r=Math.max(1-e,(t+1)/p);x(n,e,r),w(n,e,r)}}function w(t,n,r){for(let i=1,o=t.length;i<o;++i){const o=t[i];for(const t of o){let e=0,r=0;for(const{source:n,value:o}of t.targetLinks){let i=o*(t.layer-n.layer);e+=A(n,t)*i,r+=i}if(!(r>0))continue;let i=(e/r-t.y0)*n;t.y0+=i,t.y1+=i,M(t)}void 0===e&&o.sort(XR),E(o,r)}}function x(t,n,r){for(let i=t.length,o=i-2;o>=0;--o){const i=t[o];for(const t of i){let e=0,r=0;for(const{target:n,value:o}of t.sourceLinks){let i=o*(n.layer-t.layer);e+=P(t,n)*i,r+=i}if(!(r>0))continue;let i=(e/r-t.y0)*n;t.y0+=i,t.y1+=i,M(t)}void 0===e&&i.sort(XR),E(i,r)}}function E(e,n){const r=e.length>>1,o=e[r];T(e,o.y0-t,r-1,n),S(e,o.y1+t,r+1,n),T(e,a,e.length-1,n),S(e,i,0,n)}function S(e,n,r,i){for(;r<e.length;++r){const o=e[r],a=(n-o.y0)*i;a>1e-6&&(o.y0+=a,o.y1+=a),n=o.y1+t}}function T(e,n,r,i){for(;r>=0;--r){const o=e[r],a=(o.y1-n)*i;a>1e-6&&(o.y0-=a,o.y1-=a),n=o.y0-t}}function M({sourceLinks:t,targetLinks:e}){if(void 0===n){for(const{source:{sourceLinks:t}}of e)t.sort(ZR);for(const{target:{targetLinks:e}}of t)e.sort(YR)}}function C(t){if(void 0===n)for(const{sourceLinks:e,targetLinks:n}of t)e.sort(ZR),n.sort(YR)}function A(e,n){let r=e.y0-(e.sourceLinks.length-1)*t/2;for(const{target:i,width:o}of e.sourceLinks){if(i===n)break;r+=o+t}for(const{source:t,width:i}of n.targetLinks){if(t===e)break;r-=i}return r}function P(e,n){let r=n.y0-(n.targetLinks.length-1)*t/2;for(const{source:i,width:o}of n.targetLinks){if(i===e)break;r+=o+t}for(const{target:t,width:i}of e.sourceLinks){if(t===n)break;r-=i}return r}return d.update=function(t){return eI(t),t},d.nodeId=function(t){return arguments.length?(c="function"===typeof t?t:qR(t),d):c},d.nodeAlign=function(t){return arguments.length?(l="function"===typeof t?t:qR(t),d):l},d.nodeSort=function(t){return arguments.length?(e=t,d):e},d.nodeWidth=function(t){return arguments.length?(s=+t,d):s},d.nodePadding=function(e){return arguments.length?(u=t=+e,d):u},d.nodes=function(t){return arguments.length?(h="function"===typeof t?t:qR(t),d):h},d.links=function(t){return arguments.length?(f="function"===typeof t?t:qR(t),d):f},d.linkSort=function(t){return arguments.length?(n=t,d):n},d.size=function(t){return arguments.length?(r=i=0,o=+t[0],a=+t[1],d):[o-r,a-i]},d.extent=function(t){return arguments.length?(r=+t[0][0],o=+t[1][0],i=+t[0][1],a=+t[1][1],d):[[r,i],[o,a]]},d.iterations=function(t){return arguments.length?(p=+t,d):p},d}var rI=Math.PI,iI=2*rI,oI=1e-6,aI=iI-oI;function sI(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function uI(){return new sI}sI.prototype=uI.prototype={constructor:sI,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>oI)if(Math.abs(l*s-u*c)>oI&&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((rI-Math.acos((d+h-v)/(2*g*m)))/2),_=y/m,b=y/g;Math.abs(_-1)>oI&&(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)>oI||Math.abs(this._y1-c)>oI)&&(this._+="L"+u+","+c),n&&(h<0&&(h=h%iI+iI),h>aI?this._+="A"+n+","+n+",0,1,"+l+","+(t-a)+","+(e-s)+"A"+n+","+n+",0,1,"+l+","+(this._x1=u)+","+(this._y1=c):h>oI&&(this._+="A"+n+","+n+",0,"+ +(h>=rI)+","+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 cI=uI,lI=Array.prototype.slice,hI=function(t){return function(){return t}};function fI(t){return t[0]}function pI(t){return t[1]}function dI(t){return t.source}function vI(t){return t.target}function gI(t){var e=dI,n=vI,r=fI,i=pI,o=null;function a(){var a,s=lI.call(arguments),u=e.apply(this,s),c=n.apply(this,s);if(o||(o=a=cI()),t(o,+r.apply(this,(s[0]=u,s)),+i.apply(this,s),+r.apply(this,(s[0]=c,s)),+i.apply(this,s)),a)return o=null,a+""||null}return a.source=function(t){return arguments.length?(e=t,a):e},a.target=function(t){return arguments.length?(n=t,a):n},a.x=function(t){return arguments.length?(r="function"===typeof t?t:hI(+t),a):r},a.y=function(t){return arguments.length?(i="function"===typeof t?t:hI(+t),a):i},a.context=function(t){return arguments.length?(o=null==t?null:t,a):o},a}function mI(t,e,n,r,i){t.moveTo(e,n),t.bezierCurveTo(e=(e+r)/2,n,e,i,r,i)}function yI(){return gI(mI)}function _I(t){return[t.source.x1,t.y0]}function bI(t){return[t.target.x0,t.y1]}var OI=function(){return yI().source(_I).target(bI)},wI=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)}}(),xI=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="alluvial",e.renderType=I.SVG,e.gradient_id="gradient-id-"+Math.floor(99999999999*Math.random()),e}return wI(e,t),e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this.getComponentContainer({withinChartClip:!0});n.html("");var r=Y_.getSVGElementSize(n,{useAttrs:!0}),i=r.width,o=r.height;if(!(i<1||o<1)){var a=this.model.getOptions(),s=this.model.getDisplayData(),u=_d.getProperty(this.getOptions(),"color","gradient","enabled"),c=Mt.minNodePadding;a.alluvial.nodePadding>Mt.minNodePadding&&(c=a.alluvial.nodePadding);var l=_d.getProperty(a,"alluvial","nodeAlignment"),h=WR;l===F.LEFT?h=zR:l===F.RIGHT&&(h=FR);var f=nI().nodeId((function(t){return t.name})).nodeWidth(Mt.nodeWidth).nodePadding(c).nodeAlign(h).extent([[2,30],[i-2,o]]);this.graph=f({nodes:a.alluvial.nodes.map((function(t){return Object.assign({},t)})),links:s.map((function(t){return Object.assign({},t)}))}),this.graph.nodes=this.graph.nodes.filter((function(t){return 0!==t.value}));var p={};this.graph.nodes.forEach((function(t){var e,n=t.x0;t.category&&(p[n]=null===(e=t)||void 0===e?void 0:e.category)}));var d=n.append("g").classed("header-arrows",!0).selectAll("g").data(Object.keys(p)).join("g").attr("transform",(function(t){return"translate("+t+", 0)"}));d.append("text").attr("id",(function(t,n){return e.services.domUtils.generateElementIDString("alluvial-category-"+n)})).style("font-size","14px").text((function(t){return p[t]?p[t]:""})).attr("y",20).attr("x",(function(t,n){var r=e.services.domUtils.generateElementIDString("alluvial-category-"+n),i=Y_.getSVGElementSize(G_("text#"+r),{useBBox:!0}).width,o=0;return t+o>=i&&(o=4-i),o}));var v=n.append("g").attr("fill","none").selectAll("g").data(this.graph.links);if(v.exit().remove(),u){var g=_d.getProperty(this.getOptions(),"color","scale");g&&v.enter().append("linearGradient").attr("id",(function(t){return e.gradient_id+"-link-"+t.index})).attr("gradientUnits","userSpaceOnUse").call((function(t){return t.append("stop").attr("offset","0%").attr("stop-color",(function(t){return g[t.source.name]}))})).call((function(t){return t.append("stop").attr("offset","100%").attr("stop-color",(function(t){return g[t.target.name]}))})),v.exit().remove()}v.enter().append("path").classed("link",!0).attr("d",OI()).attr("id",(function(t){return e.services.domUtils.generateElementIDString("alluvial-line-"+t.index)})).attr("class",(function(t){return a.alluvial.monochrome?e.model.getColorClassName({classNameTypes:[j.STROKE],dataGroupName:0,originalClassName:"link"}):e.model.getColorClassName({classNameTypes:[j.STROKE],dataGroupName:t.source.index,originalClassName:"link"})})).style("stroke",(function(t){return u?"url(#"+e.gradient_id+"-link-"+t.index+")":e.model.getFillColor(t.source.name)})).attr("stroke-width",(function(t){return Math.max(1,t.width)})).style("stroke-opacity",Mt.opacity.default).attr("aria-label",(function(t){return t.source.name+" → "+t.target.name+" ("+t.value+(a.alluvial.units?" "+a.alluvial.units:"")+")"}));var m=n.append("g").selectAll("g").data(this.graph.nodes).enter().append("g").attr("id",(function(t){return e.services.domUtils.generateElementIDString("alluvial-node-"+t.index)})).classed("node-group",!0).attr("transform",(function(t){return"translate("+t.x0+", "+t.y0+")"}));m.append("rect").classed("node",!0).attr("height",(function(t){return t.y1-t.y0})).attr("width",(function(t){return t.x1-t.x0})).attr("fill","black");var y=m.append("g").attr("id",(function(t){return e.services.domUtils.generateElementIDString("alluvial-node-title-"+t.index)}));y.append("text").attr("id",(function(t){return e.services.domUtils.generateElementIDString("alluvial-node-text-"+t.index)})).attr("class","node-text").style("font-size","12px").attr("text-anchor","start").attr("fill","white").attr("x",4).attr("dy",13).text((function(t){return t.name+" ("+t.value+")"})).attr("aria-label",(function(t){return t.name+" ("+t.value+")"})),y.append("rect").classed("node-text-bg",!0).attr("width",(function(t,n){var r=e.services.domUtils.generateElementIDString("alluvial-node-text-"+n),i=Y_.getSVGElementSize(G_("text#"+r),{useBBox:!0}).width;return i+8})).attr("height",18).attr("stroke-width",2).lower(),y.attr("transform",(function(t,n){var r=e.services.domUtils.generateElementIDString("alluvial-node-text-"+n),i=Y_.getSVGElementSize(G_("text#"+r),{useBBox:!0}).width,o=(t.y1-t.y0)/2-9,a=t.x1-t.x0;return t.x1>=i?a-=i+16:a+=4,"translate("+a+", "+o+")"})),this.addLineEventListener(),this.addNodeEventListener()}},e.prototype.addLineEventListener=function(){var t=this.getOptions(),e=this,n=_d.debounce((function(t,n){void 0===n&&(n="mouseover");var r=e.parent.selectAll("path.link").transition().call((function(t){return e.services.transitions.setupTransition({transition:t,name:"alluvial-links-mouse-highlight"})}));"mouseout"===n?(G_(t).lower(),r.style("stroke-opacity",Mt.opacity.default)):r.style("stroke-opacity",(function(){return t===this?(G_(this).raise(),Mt.opacity.selected):Mt.opacity.unfocus}))}),33);this.parent.selectAll("path.link").on("mouseover",(function(r,i){var o=G_(this);n(this,"mouseover"),o.classed("link-hovered",!0);var a=getComputedStyle(this).getPropertyValue("stroke");e.services.events.dispatchEvent(ft.Alluvial.LINE_MOUSEOVER,{event:r,element:o,datum:i}),e.services.events.dispatchEvent(ft.Tooltip.SHOW,{event:r,hoveredElement:o,items:[{label:i.target.name,value:i.value+(t.alluvial.units?" "+t.alluvial.units:""),color:a,labelIcon:e.getRightArrowIcon()}]})})).on("mousemove",(function(t,n){e.services.events.dispatchEvent(ft.Alluvial.LINE_MOUSEMOVE,{event:t,element:G_(this),datum:n}),e.services.events.dispatchEvent(ft.Tooltip.MOVE,{event:t})})).on("click",(function(t,n){e.services.events.dispatchEvent(ft.Alluvial.LINE_CLICK,{event:t,element:G_(this),datum:n})})).on("mouseout",(function(t,r){var i=G_(this);n(this,"mouseout"),i.classed("link-hovered",!1),e.services.events.dispatchEvent(ft.Alluvial.LINE_MOUSEOUT,{event:t,element:i,datum:r}),e.services.events.dispatchEvent(ft.Tooltip.HIDE,{event:t,hoveredElement:i})}))},e.prototype.addNodeEventListener=function(){var t=this,e=this,n=_d.debounce((function(n,r){if(void 0===n&&(n=[]),void 0===r&&(r="mouseover"),"mouseout"!==r&&0!==n.length){var i=e.parent.selectAll("path.link").transition().call((function(e){return t.services.transitions.setupTransition({transition:e,name:"alluvial-link-mouse-highlight"})}));i.style("stroke-opacity",(function(t){return n.some((function(e){return e===t.index}))?(G_(this).classed("link-hovered",!0).raise(),Mt.opacity.selected):Mt.opacity.unfocus}))}else e.parent.selectAll("path.link").classed("link-hovered",!1).data(t.graph.links,(function(t){return t.index})).order().style("stroke-opacity",Mt.opacity.default)}),66);e.parent.selectAll(".node-group").on("mouseover",(function(t,r){var i=G_(this),o=[];if(e.traverse({link:"sourceLinks",node:"target"},r,o),e.traverse({link:"targetLinks",node:"source"},r,o),o.length){var a=_d.getTranformOffsets(i.attr("transform"));if(i.attr("transform","translate("+(a.x-2)+", "+a.y+")"),i.classed("node-hovered",!0).selectAll("rect.node").attr("width",8),r.x0-2===0){var s=e.services.domUtils.generateElementIDString("alluvial-node-title-"+r.index),u=e.parent.select("g#"+s),c=_d.getTranformOffsets(u.attr("transform"));u.attr("transform","translate("+(c.x+4)+","+c.y+")")}var l=e.services.domUtils.generateElementIDString("alluvial-node-text-"+r.index);e.parent.select("text#"+l).style("font-weight","bold"),n(o,"mouseover"),e.services.events.dispatchEvent(ft.Alluvial.NODE_MOUSEOVER,{event:t,element:i,datum:r})}})).on("mousemove",(function(t,n){e.services.events.dispatchEvent(ft.Alluvial.NODE_MOUSEMOVE,{event:t,element:G_(this),datum:n}),e.services.events.dispatchEvent(ft.Tooltip.MOVE,{event:t})})).on("click",(function(t,n){e.services.events.dispatchEvent(ft.Alluvial.NODE_CLICK,{event:t,element:G_(this),datum:n})})).on("mouseout",(function(t,r){var i=G_(this),o=_d.getTranformOffsets(i.attr("transform"));if(i.classed("node-hovered",!1).attr("transform","translate("+(o.x+2)+", "+o.y+")").select("rect.node").attr("width",Mt.nodeWidth),r.x0-2===0){var a=e.services.domUtils.generateElementIDString("alluvial-node-title-"+r.index),s=e.parent.select("g#"+a),u=_d.getTranformOffsets(s.attr("transform"));s.attr("transform","translate("+(u.x-4)+","+u.y+")")}var c=e.services.domUtils.generateElementIDString("alluvial-node-text-"+r.index);e.parent.select("text#"+c).style("font-weight","normal"),n([],"mouseout"),e.services.events.dispatchEvent(ft.Alluvial.NODE_MOUSEOUT,{event:t,element:i,datum:r}),e.services.events.dispatchEvent(ft.Tooltip.HIDE,{hoveredElement:i})}))},e.prototype.traverse=function(t,e,n){var r=this;void 0===n&&(n=[]);var i=e[t.link].map((function(e){return n.push(e.index),e[t.node]}));i.forEach((function(e){return r.traverse(t,e,n)}))},e.prototype.getRightArrowIcon=function(){return'\n\t\t<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32">\n\t\t\t<polygon points="18 6 16.57 7.393 24.15 15 4 15 4 17 24.15 17 16.57 24.573 18 26 28 16 18 6"/>\n\t\t\t<rect data-name="&lt;Transparent Rectangle&gt;" style="fill: none;" width="32" height="32"/>\n\t\t</svg>'},e.prototype.destroy=function(){this.parent.selectAll("path.line,.node-group").on("mouseover",null).on("mousemove",null).on("click",null).on("mouseout",null)},e}(wT),EI=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)}}(),SI=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="heatmap",e.renderType=I.SVG,e.matrix={},e.xBandwidth=0,e.yBandwidth=0,e.translationUnits={x:0,y:0},e.handleAxisOnHover=function(t){var n=t.detail,r=n.datum,i=e.model.getUniqueRanges(),o=e.model.getUniqueDomain(),a=e.services.cartesianScales.getDomainLabel(),s=e.services.cartesianScales.getRangeLabel(),u=e.services.cartesianScales.getMainXScale(),c=e.services.cartesianScales.getMainYScale(),l="",h=null,f=null,p=null;void 0!==e.matrix[r]?(l=a,i.forEach((function(t){if("number"===typeof e.matrix[r][t].value){var n=e.matrix[r][t].value;if(null===h)return h=n,f=n,void(p=n);h+=n,f=n<f?n:f,p=n>p?n:p}}))):(l=s,o.forEach((function(t){if("number"===typeof e.matrix[t][r].value){var n=e.matrix[t][r].value;if(null===h)return h=n,f=n,void(p=n);h+=n,f=n<f?n:f,p=n>p?n:p}}))),void 0!==u(r)?e.parent.select("g.multi-cell.column-highlight").classed("highlighter-hidden",!1).attr("transform","translate("+u(r)+", "+Tm(c.range())+")"):void 0!==c(r)&&e.parent.select("g.multi-cell.row-highlight").classed("highlighter-hidden",!1).attr("transform","translate("+Tm(u.range())+","+c(r)+")"),e.services.events.dispatchEvent(ft.Tooltip.SHOW,{event:n.event,hoveredElement:G_(t.detail.element),items:[{label:l,value:r,bold:!0},{label:"Min",value:null!==f?f:"-"},{label:"Max",value:null!==p?p:"-"},{label:"Average",value:null!==h?h/o.length:"-"}]})},e.handleAxisMouseOut=function(t){e.parent.selectAll("g.multi-cell").classed("highlighter-hidden",!0),e.services.events.dispatchEvent(ft.Tooltip.HIDE,{event:t})},e}return EI(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(ft.Axis.LABEL_MOUSEOVER,this.handleAxisOnHover),t.addEventListener(ft.Axis.LABEL_MOUSEOUT,this.handleAxisMouseOut),t.addEventListener(ft.Axis.LABEL_FOCUS,this.handleAxisOnHover),t.addEventListener(ft.Axis.LABEL_BLUR,this.handleAxisMouseOut)},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this.getComponentContainer({withinChartClip:!0});n.lower();var r=this.services.cartesianScales;if(this.matrix=this.model.getMatrix(),n.html(""),!_d.getProperty(this.getOptions(),"data","loading")){var i=r.getMainXScale(),o=r.getMainYScale(),a=r.getDomainIdentifier(),s=r.getRangeIdentifier(),u=this.model.getUniqueDomain(),c=this.model.getUniqueRanges(),l=this.model.getMatrixAsArray(),h=i.range(),f=o.range();this.xBandwidth=Math.abs((h[1]-h[0])/u.length),this.yBandwidth=Math.abs((f[1]-f[0])/c.length);var p=this.services.domUtils.generateElementIDString("heatmap-pattern-stripes");n.append("defs").append("pattern").attr("id",p).attr("width",3).attr("height",3).attr("patternUnits","userSpaceOnUse").attr("patternTransform","rotate(45)").append("rect").classed("pattern-fill",!0).attr("width",.5).attr("height",8);var d=n.selectAll().data(l).enter().append("g").attr("class",(function(t){return"heat-"+t.index})).classed("cell",!0).attr("transform",(function(t){return"translate("+i(t[a])+", "+o(t[s])+")"})).append("rect").attr("class",(function(t){return e.model.getColorClassName({value:t.value,originalClassName:"heat-"+t.index})})).classed("heat",!0).classed("null-state",(function(t){return-1===t.index||null===t.value})).attr("width",this.xBandwidth).attr("height",this.yBandwidth).style("fill",(function(t){return-1===t.index||null===t.value?"url(#"+p+")":e.model.getFillColor(Number(t.value))})).attr("aria-label",(function(t){return t.value}));this.createOuterBox("g.cell-highlight",this.xBandwidth,this.yBandwidth),this.createOuterBox("g.multi-cell.column-highlight",this.xBandwidth,Math.abs(f[1]-f[0])),this.createOuterBox("g.multi-cell.row-highlight",Math.abs(h[1]-h[0]),this.yBandwidth),this.determineDividerStatus()&&(d.style("stroke-width","1px"),this.parent.select("g.cell-highlight").classed("cell-2",!0)),this.addEventListener()}},e.prototype.createOuterBox=function(t,e,n){var r=Y_.appendOrSelect(this.parent,t).classed("shadows",!0).classed("highlighter-hidden",!0);Y_.appendOrSelect(r,"line.top").attr("x1",-1).attr("x2",e+1),Y_.appendOrSelect(r,"line.left").attr("x1",0).attr("y1",-1).attr("x2",0).attr("y2",n+1),Y_.appendOrSelect(r,"line.down").attr("x1",-1).attr("x2",e+1).attr("y1",n).attr("y2",n),Y_.appendOrSelect(r,"line.right").attr("x1",e).attr("x2",e).attr("y1",-1).attr("y2",n+1)},e.prototype.determineDividerStatus=function(){var t=_d.getProperty(this.getOptions(),"heatmap","divider","state");return t!==ct.OFF&&(t===ct.AUTO&&Ct.minCellDividerDimension<=this.xBandwidth&&Ct.minCellDividerDimension<=this.yBandwidth||t===ct.ON)},e.prototype.addEventListener=function(){var t=this,e=this.services.cartesianScales,n=this.getOptions(),r=Ml(n,"tooltip.totalLabel"),i=e.getDomainIdentifier(),o=e.getRangeIdentifier(),a=e.getDomainLabel(),s=e.getRangeLabel();this.parent.selectAll("g.cell").on("mouseover",(function(e,n){var u=G_(this),c=u.select("rect.heat"),l=c.classed("null-state");if(!l){var h=_d.getTranformOffsets(u.attr("transform"));t.parent.select("g.cell-highlight").attr("transform","translate("+(h.x+t.translationUnits.x)+", "+(h.y+t.translationUnits.y)+")").classed("highlighter-hidden",!1),t.services.events.dispatchEvent(ft.Heatmap.HEATMAP_MOUSEOVER,{event:e,element:c,datum:n}),t.services.events.dispatchEvent(ft.Tooltip.SHOW,{event:e,items:[{label:a,value:n[i]},{label:s,value:n[o]},{label:r||"Total",value:n["value"],color:c.style("fill")}]})}})).on("mousemove",(function(e,n){t.services.events.dispatchEvent(ft.Heatmap.HEATMAP_MOUSEMOVE,{event:e,element:G_(this),datum:n}),t.services.events.dispatchEvent(ft.Tooltip.MOVE,{event:e})})).on("click",(function(e,n){t.services.events.dispatchEvent(ft.Heatmap.HEATMAP_CLICK,{event:e,element:G_(this),datum:n})})).on("mouseout",(function(e,n){var r=G_(this),i=r.select("rect.heat"),o=i.classed("null-state");t.parent.select("g.cell-highlight").classed("highlighter-hidden",!0),o||(t.services.events.dispatchEvent(ft.Heatmap.HEATMAP_MOUSEOUT,{event:e,element:i,datum:n}),t.services.events.dispatchEvent(ft.Tooltip.HIDE,{event:e,hoveredElement:i}))}))},e.prototype.destroy=function(){this.parent.selectAll("rect.heat").on("mouseover",null).on("mousemove",null).on("click",null).on("mouseout",null);var t=this.services.events;t.removeEventListener(ft.Legend.ITEM_HOVER,this.handleAxisOnHover),t.removeEventListener(ft.Legend.ITEM_MOUSEOUT,this.handleAxisMouseOut)},e}(wT),TI=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)}}(),MI=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="spacer",e}return TI(e,t),e.prototype.render=function(){this.getComponentContainer().style("width",(this.configs.size||At.default.size)+"px").style("height",(this.configs.size||At.default.size)+"px").attr("opacity",0)},e}(wT),CI=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)}}(),AI=function(t){function e(n,r,i,o){var a=t.call(this,n,r,o)||this;return a.type="layout",a.configs=o,a.children=i,a._instanceID=e.instanceID++,a.init(),a}return CI(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("div.layout-child-"+this._instanceID).filter((function(t){var e=_d.getProperty(t,"growth");return e===Z.PREFERRED||e===Z.FIXED})).each((function(t){e+=t.size})),e},e.prototype.getNumOfStretchChildren=function(){var t=this.parent;return t.selectAll("div.layout-child-"+this._instanceID).filter((function(t){return _d.getProperty(t,"growth")===Z.STRETCH})).size()},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this.parent,r=Y_.getHTMLElementSize(n.node()),i=r.width,o=r.height,a=this.configs.direction===Y.ROW||this.configs.direction===Y.ROW_REVERSE,s=_d.getProperty(this.model.getOptions(),"style","prefix"),u=n.classed(dt+"--"+s+"--layout-row",this.configs.direction===Y.ROW).classed(dt+"--"+s+"--layout-row-reverse",this.configs.direction===Y.ROW_REVERSE).classed(dt+"--"+s+"--layout-column",this.configs.direction===Y.COLUMN).classed(dt+"--"+s+"--layout-column-reverse",this.configs.direction===Y.COLUMN_REVERSE).classed(dt+"--"+s+"--layout-alignitems-center",this.configs.alignItems===X.CENTER).selectAll("div.layout-child-"+this._instanceID).data(this.children,(function(t){return t.id})),c=u.enter().append("div");c.merge(n.selectAll("div.layout-child-"+this._instanceID)).attr("class",(function(t){return"layout-child layout-child-"+e._instanceID+" "+t.id})).each((function(e){var n=this;e.components.forEach((function(r){var i=G_(n),o=_d.getProperty(e,"renderType"),a=o===I.SVG;r.setParent(a?Y_.appendOrSelect(i,"svg.layout-svg-wrapper").attr("width","100%").attr("height","100%"):i);var s=_d.getProperty(e,"growth");s!==Z.PREFERRED&&s!==Z.FIXED||r.render(t)}))})),n.selectAll("div.layout-child-"+this._instanceID).style("height",null).style("width",null).each((function(t){var e=_d.getProperty(t,"growth"),n=_d.getProperty(t,"renderType"),r=n===I.SVG?Y_.getSVGElementSize(G_(this).select("svg.layout-svg-wrapper"),{useBBox:!0}):Y_.getHTMLElementSize(this);if(e===Z.PREFERRED){var s=a?r.width:r.height,u=a?i:o;t.size=s/u*100}})),u.exit().remove(),this.children.filter((function(t){var e=_d.getProperty(t,"growth");return e===Z.STRETCH})).forEach((function(t,n){t.size=(100-+e.getPreferedAndFixedSizeSum())/+e.getNumOfStretchChildren()}));var l=n.selectAll("div.layout-child-"+this._instanceID).data(this.children,(function(t){return t.id}));a?l.style("width",(function(t){return t.size/100*i+"px"})).style("height","100%"):l.style("height",(function(t){return t.size/100*o+"px"})).style("width","100%"),l.each((function(e,n){e.components.forEach((function(n){var r=_d.getProperty(e,"growth");r===Z.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}(wT),PI=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)}}(),LI=function(t){function e(e,n,r){var i,o=t.call(this,e,n,r)||this;return o.type="axes",o.renderType=I.SVG,o.truncation=(i={},i[B.LEFT]=!1,i[B.RIGHT]=!1,i[B.TOP]=!1,i[B.BOTTOM]=!1,i),r&&(o.configs=r),o.margins=o.configs.margins,o}return PI(e,t),e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n,r,i=this.configs.position,o=this.getOptions(),s=_d.getProperty(o,"axes",i,"visible"),u=this.getComponentContainer(),c=Y_.getSVGElementSize(u,{useAttrs:!0}),l=c.width,h=c.height,f=Y_.appendOrSelect(u,"g.axis."+i);i===B.BOTTOM||i===B.TOP?(n=this.configs.axes[B.LEFT]?this.margins.left:0,r=this.configs.axes[B.RIGHT]?l-this.margins.right:l):(n=h-this.margins.bottom,r=this.margins.top);var p,d=this.services.cartesianScales.getScaleByPosition(i);switch(this.scaleType===H.LABELS||this.scaleType===H.LABELS_RATIO?d.rangeRound([n,r]):d.range([n,r]),i){case B.LEFT:p=VT;break;case B.BOTTOM:p=UT;break;case B.RIGHT:p=BT;break;case B.TOP:p=jT;break}f.attr("aria-label",i+" axis");var v=!f.select("g.ticks").empty(),g=Y_.appendOrSelect(f,"g.ticks");v||(g.attr("role",a.GRAPHICS_OBJECT+" "+a.GROUP),g.attr("aria-label",i+" ticks"));var m=Y_.appendOrSelect(f,"g.ticks.invisible").style("opacity","0").style("pointer-events","none").attr("aria-hidden",!0).attr("aria-label","invisible "+i+" ticks"),y=_d.getProperty(o,"axes",i),_=this.scaleType===H.TIME||y.scaleType===H.TIME,b=i===B.LEFT||i===B.RIGHT,O=this.model.get("zoomDomain");if(O&&_&&!b&&d.domain(O),s){var w=_d.getProperty(y,"scaleType"),x=_d.getProperty(o,"data","loading"),E=_d.getProperty(y,"ticks","number"),S=_d.getProperty(y,"ticks","values"),T=_d.getProperty(y,"truncation","type"),M=_d.getProperty(y,"truncation","threshold"),C=_d.getProperty(y,"truncation","numCharacter"),A=null!==E,P=_d.getProperty(o,"timeScale"),L=Y_.appendOrSelect(m,"g.tick"),D=Y_.appendOrSelect(L,"text").text("0"),k=Y_.getSVGElementSize(D.node(),{useBBox:!0}).height;L.remove();var R,I=this.scaleType||y.scaleType||H.LINEAR,N=p(d).tickSizeOuter(0);if(d.ticks){var j=void 0;if(A?j=E:(j=gt.ticks.number,b&&(j=this.getNumberOfFittingTicks(h,k,gt.ticks.verticalSpaceRatio))),1===d.ticks().length&&0===d.ticks()[0]&&(j=0),N.ticks(j),_)if(d.ticks(j).length){var U=_d.getProperty(o,"timeScale","addSpaceOnEdges"),G=_d.getProperty(o,"axes",i,"domain"),z=void 0,F=d.copy();U&&!G&&F.nice(j),z=F.ticks(j),U&&z.length>2&&!G&&(z.splice(z.length-1,1),z.splice(0,1)),N.tickValues(z)}else N.tickValues([])}var W=_d.getProperty(y,"ticks","formatter");if(_){var q=km(N.tickValues());R=null===W?function(t,e){return Am(t,e,N.tickValues(),q,P)}:function(t,e){var n=Am(t,e,N.tickValues(),q,P);return W(t,e,n)}}else null===W?I===H.LINEAR&&(R=function(t){return t.toLocaleString()}):R=W;N.tickFormat(R);var Y,Z=this.services.cartesianScales.getScaleByPosition(i).domain(),X=Z[0],K=Z[1];if(S){if(_)S.forEach((function(t,e){void 0===t.getTime&&(S[e]=new Date(t))})),Y=S.filter((function(t){var e=t.getTime();return e>=new Date(X).getTime()&&e<=new Date(K).getTime()}));else if(w===H.LABELS){var $=this.services.cartesianScales.getScaleByPosition(i).domain();Y=S.filter((function(t){return $.includes(t)}))}else Y=S.filter((function(t){return t>=X&&t<=K}));N.tickValues(Y)}switch(i){case B.LEFT:g.attr("transform","translate("+this.margins.left+", 0)");break;case B.BOTTOM:g.attr("transform","translate(0, "+(h-this.margins.bottom)+")");break;case B.RIGHT:g.attr("transform","translate("+(l-this.margins.right)+", 0)");break;case B.TOP:g.attr("transform","translate(0, "+this.margins.top+")");break}var Q=this.model.isDataEmpty();if(y.title){var J=Y_.appendOrSelect(f,"text.axis-title").html(Q||x?"":y.title),tt=_d.getProperty(y,"titleOrientation");switch(i){case B.LEFT:tt===at.RIGHT?J.attr("transform","rotate(90)").attr("y",0).attr("x",d.range()[0]/2).attr("dy","-0.5em").style("text-anchor","middle"):J.attr("transform","rotate(-90)").attr("y",0).attr("x",-d.range()[0]/2).attr("dy","0.75em").style("text-anchor","middle");break;case B.BOTTOM:J.attr("transform","translate("+(this.margins.left/2+d.range()[1]/2)+", "+(h+4)+")").style("text-anchor","middle");break;case B.RIGHT:tt===at.LEFT?J.attr("transform","rotate(-90)").attr("y",l).attr("x",-d.range()[0]/2).style("text-anchor","middle"):J.attr("transform","rotate(90)").attr("y",-l).attr("x",d.range()[0]/2).attr("dy","0.75em").style("text-anchor","middle");break;case B.TOP:var et=Y_.getSVGElementSize(J,{useBBox:!0}).height;J.attr("transform","translate("+(this.margins.left/2+d.range()[1]/2)+", "+et/2+")").style("text-anchor","middle");break}}if(_){var nt=km(N.tickValues()),it=P.showDayName,ot=g;t&&(g=g.transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"axis-update",animate:t})}))),g=g.call(N);var st=ot.selectAll(".tick").data(N.tickValues(),d).order().select("text");st.style("font-weight",(function(t,e){return Cm(t,e,N.tickValues(),nt,it)?"bold":"normal"}))}else g=t&&v?g.transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"axis-update",animate:t})})).call(N):g.call(N);if(m.call(N),i===B.BOTTOM||i===B.TOP){var ut=!1,ct=_d.getProperty(y,"ticks","rotation");if(ct===rt.ALWAYS)ut=!0;else if(ct===rt.NEVER)ut=!1;else if(!ct||ct===rt.AUTO)if(d.step){var lt=m.selectAll("g.tick text").nodes();ut=lt.some((function(t){return Y_.getSVGElementSize(t,{useBBox:!0}).width>=d.step()}))}else{ut=!1;var ht,ft=m.append("text").text("A"),pt=Y_.getSVGElementSize(ft.node(),{useBBox:!0}).width;m.selectAll("g.tick").each((function(){var t=G_(this),e=parseFloat(_d.getProperty(_d.getTranslationValues(this),"tx"));null!==e&&ht+t.text().length*pt*.8>=e&&(ut=!0),ht=e})),ft.remove()}ut?(A||(N.ticks(this.getNumberOfFittingTicks(l,k,gt.ticks.horizontalSpaceRatio)),m.call(N),g.call(N)),f.selectAll("g.ticks g.tick text").attr("transform","rotate(-45)").style("text-anchor",i===B.TOP?"start":"end")):f.selectAll("g.ticks g.tick text").attr("transform",null).style("text-anchor",null)}if(x?f.attr("opacity",0):f.attr("opacity",1),g.selectAll("g.tick").attr("aria-label",(function(t){return t})),m.selectAll("g.tick").attr("aria-label",(function(t){return t})),T!==V.NONE&&w===H.LABELS&&!S){var dt=this.services.cartesianScales.getScaleDomain(i);if(dt.length>0){var vt=u.select("g.axis."+i+" g.ticks g.tick").html();f.selectAll("g.ticks g.tick").html(vt);var mt=this;f.selectAll("g.tick text").data(dt).text((function(t){return t.length>M?(mt.truncation[i]=!0,_d.truncateLabel(t,T,C)):t})),this.getInvisibleAxisRef().selectAll("g.tick text").data(dt).text((function(t){return t.length>M?_d.truncateLabel(t,T,C):t})),f.selectAll("g.ticks").html(this.getInvisibleAxisRef().html()),f.selectAll("g.tick text").data(dt)}}this.addEventListeners()}else g.attr("aria-hidden",!0)},e.prototype.addEventListeners=function(){var t=this.getComponentContainer(),e=this.configs.position,n=Y_.appendOrSelect(t,"g.axis."+e),r=this.getOptions(),i=_d.getProperty(r,"axes",e),o=_d.getProperty(i,"scaleType"),a=_d.getProperty(i,"truncation","threshold"),s=this;n.selectAll("g.tick text").on("mouseover",(function(t,e){s.services.events.dispatchEvent(ft.Axis.LABEL_MOUSEOVER,{event:t,element:G_(this),datum:e}),o===H.LABELS&&e.length>a&&s.services.events.dispatchEvent(ft.Tooltip.SHOW,{event:t,hoveredElement:G_(this),content:e})})).on("mousemove",(function(t,e){s.services.events.dispatchEvent(ft.Axis.LABEL_MOUSEMOVE,{event:t,element:G_(this),datum:e}),o===H.LABELS&&e.length>a&&s.services.events.dispatchEvent(ft.Tooltip.MOVE,{event:t})})).on("click",(function(t,e){s.services.events.dispatchEvent(ft.Axis.LABEL_CLICK,{event:t,element:G_(this),datum:e})})).on("mouseout",(function(t,e){s.services.events.dispatchEvent(ft.Axis.LABEL_MOUSEOUT,{event:t,element:G_(this),datum:e}),o===H.LABELS&&s.services.events.dispatchEvent(ft.Tooltip.HIDE)}))},e.prototype.getInvisibleAxisRef=function(){var t=this.configs.position;return this.getComponentContainer().select("g.axis."+t+" g.ticks.invisible")},e.prototype.getTitleRef=function(){var t=this.configs.position;return this.getComponentContainer().select("g.axis."+t+" text.axis-title")},e.prototype.getNumberOfFittingTicks=function(t,e,n){var r=Math.floor(t/(e*n));return _d.clamp(r,2,gt.ticks.number)},e.prototype.destroy=function(){var t=this.getComponentContainer(),e=this.configs.position,n=Y_.appendOrSelect(t,"g.axis."+e);n.selectAll("g.tick text").on("mouseover",null).on("mousemove",null).on("mouseout",null)},e}(wT),DI=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)}}(),kI=function(){return kI=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},kI.apply(this,arguments)},RI=function(t){function e(e,n,r){return t.call(this,e,n,r)||this}return DI(e,t),e.prototype.render=function(e){void 0===e&&(e=!0),t.prototype.render.call(this,e),t.prototype.destroy.call(this);var n=this.configs.position,r=this.getComponentContainer(),i=Y_.appendOrSelect(r,"g.axis."+n),o=this;i.selectAll("g.tick").each((function(t,e){var r=G_(this);r.classed("tick-hover",!0).attr("tabindex",0===e?0:-1);var i=r.select("text"),a=Y_.getSVGElementSize(i,{useBBox:!0}),s=a.width,u=a.height,c=Y_.appendOrSelect(r,"rect.axis-holder"),l=0,h=0;switch(n){case B.LEFT:l=-s+Number(i.attr("x")),h=-u/2;break;case B.RIGHT:l=Math.abs(Number(i.attr("x"))),h=-u/2;break;case B.TOP:l=-s/2,h=-u+Number(i.attr("y"))/2,o.truncation[n]&&(l=0,c.attr("transform","rotate(-45)"));break;case B.BOTTOM:l=-s/2,h=u/2-2,o.truncation[n]&&(l=-s,c.attr("transform","rotate(-45)"));break}c.attr("x",l-gt.hover.rectanglePadding).attr("y",h).attr("width",s+2*gt.hover.rectanglePadding).attr("height",u).lower(),r.on("keydown",(function(t){n===B.LEFT||n===B.RIGHT?t.key&&"ArrowUp"===t.key?o.goNext(this,t):t.key&&"ArrowDown"===t.key&&o.goPrevious(this,t):t.key&&"ArrowLeft"===t.key?o.goPrevious(this,t):t.key&&"ArrowRight"===t.key&&o.goNext(this,t)}))})),this.addEventListeners()},e.prototype.addEventListeners=function(){var t=this.getComponentContainer(),e=this.configs.position,n=Y_.appendOrSelect(t,"g.axis."+e),r=this.getOptions(),i=_d.getProperty(r,"axes",e),o=_d.getProperty(i,"scaleType"),a=_d.getProperty(i,"truncation","threshold"),s=this;n.selectAll("g.tick.tick-hover").on("mouseover",(function(t){var e=G_(this).select("text"),n=e.datum();s.services.events.dispatchEvent(ft.Axis.LABEL_MOUSEOVER,{event:t,element:e,datum:n}),o===H.LABELS&&n.length>a&&s.services.events.dispatchEvent(ft.Tooltip.SHOW,{event:t,element:e,datum:n})})).on("mousemove",(function(t){var e=G_(this).select("text"),n=e.datum();s.services.events.dispatchEvent(ft.Axis.LABEL_MOUSEMOVE,{event:t,element:e,datum:n}),s.services.events.dispatchEvent(ft.Tooltip.MOVE,{event:t})})).on("click",(function(t){s.services.events.dispatchEvent(ft.Axis.LABEL_CLICK,{event:t,element:G_(this).select("text"),datum:G_(this).select("text").datum()})})).on("mouseout",(function(t){s.services.events.dispatchEvent(ft.Axis.LABEL_MOUSEOUT,{event:t,element:G_(this).select("text"),datum:G_(this).select("text").datum()}),o===H.LABELS&&s.services.events.dispatchEvent(ft.Tooltip.HIDE)})).on("focus",(function(t){var e={clientX:0,clientY:0};if(t.target){t.target.focus();var n=t.target.getBoundingClientRect();e.clientX=n.x,e.clientY=n.y}s.services.events.dispatchEvent(ft.Axis.LABEL_FOCUS,{event:kI(kI({},t),e),element:G_(this),datum:G_(this).select("text").datum()})})).on("blur",(function(t){s.services.events.dispatchEvent(ft.Axis.LABEL_BLUR,{event:t,element:G_(this),datum:G_(this).select("text").datum()})}))},e.prototype.goNext=function(t,e){t.nextElementSibling&&"path"!==t.nextElementSibling.tagName&&t.nextElementSibling.dispatchEvent(new Event("focus")),e.preventDefault()},e.prototype.goPrevious=function(t,e){t.previousElementSibling&&"path"!==t.previousElementSibling.tagName&&t.previousElementSibling.dispatchEvent(new Event("focus")),e.preventDefault()},e.prototype.destroy=function(){var t=this.getComponentContainer(),e=this.configs.position,n=Y_.appendOrSelect(t,"g.axis."+e);n.selectAll("g.tick.tick-hover").on("mouseover",null).on("mousemove",null).on("mouseout",null).on("focus",null).on("blur",null)},e}(LI),II=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)}}(),NI=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="2D-axes",e.renderType=I.SVG,e.children={},e.thresholds=[],e.margins={top:0,right:0,bottom:0,left:0},e}return II(e,t),e.prototype.render=function(t){var e=this;void 0===t&&(t=!1);var n={},r=Object.keys(B),i=_d.getProperty(this.getOptions(),"axes");r.forEach((function(t){var e=i[B[t]];e&&(n[B[t]]=!0)})),this.configs.axes=n,r.forEach((function(t){var n=B[t];if(e.configs.axes[n]&&!e.children[n]){var r={position:n,axes:e.configs.axes,margins:e.margins},i=e.model.axisFlavor===lt.DEFAULT?new LI(e.model,e.services,r):new RI(e.model,e.services,r);i.setModel(e.model),i.setServices(e.services),i.setParent(e.parent),e.children[n]=i}})),Object.keys(this.children).forEach((function(n){var r=e.children[n];r.render(t)}));var o={};Object.keys(this.children).forEach((function(t){var n,r=e.children[t],i=r.configs.position,a=r.getInvisibleAxisRef(),s=Y_.getSVGElementSize(a,{useBBox:!0}),u=s.width,c=s.height;switch(r.getTitleRef().empty()?n=0:(n=Y_.getSVGElementSize(r.getTitleRef(),{useBBox:!0}).height,i!==B.LEFT&&i!==B.RIGHT||(n+=5)),i){case B.TOP:o.top=c+n;break;case B.BOTTOM:o.bottom=c+n;break;case B.LEFT:o.left=u+n;break;case B.RIGHT:o.right=u+n;break}})),this.services.events.dispatchEvent(ft.Axis.RENDER_COMPLETE);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(ft.ZoomBar.UPDATE),Object.keys(this.children).forEach((function(t){var n=e.children[t];n.margins=e.margins})),this.render(!0))},e}(wT),jI={value:()=>{}};function BI(){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 UI(r)}function UI(t){this._=t}function VI(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 GI(t,e){for(var n,r=0,i=t.length;r<i;++r)if((n=t[r]).name===e)return n.value}function HI(t,e,n){for(var r=0,i=t.length;r<i;++r)if(t[r].name===e){t[r]=jI,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=n&&t.push({name:e,value:n}),t}UI.prototype=BI.prototype={constructor:UI,on:function(t,e){var n,r=this._,i=VI(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]=HI(r[n],t.name,e);else if(null==e)for(n in r)r[n]=HI(r[n],t.name,null);return this}while(++o<a)if((n=(t=i[o]).type)&&(n=GI(r[n],t.name)))return n},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new UI(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 zI=BI;const FI={capture:!0,passive:!1};var WI=function(t){t.preventDefault(),t.stopImmediatePropagation()},qI=function(t){var e=t.document.documentElement,n=G_(t).on("dragstart.drag",WI,FI);"onselectstart"in e?n.on("selectstart.drag",WI,FI):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")};function YI(t,e){var n=t.document.documentElement,r=G_(t).on("dragstart.drag",null);e&&(r.on("click.drag",WI,FI),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 ZI,XI,KI=0,$I=0,QI=0,JI=1e3,tN=0,eN=0,nN=0,rN="object"===typeof performance&&performance.now?performance:Date,iN="object"===typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function oN(){return eN||(iN(aN),eN=rN.now()+nN)}function aN(){eN=0}function sN(){this._call=this._time=this._next=null}function uN(t,e,n){var r=new sN;return r.restart(t,e,n),r}function cN(){oN(),++KI;var t,e=ZI;while(e)(t=eN-e._time)>=0&&e._call.call(void 0,t),e=e._next;--KI}function lN(){eN=(tN=rN.now())+nN,KI=$I=0;try{cN()}finally{KI=0,fN(),eN=0}}function hN(){var t=rN.now(),e=t-tN;e>JI&&(nN-=e,tN=t)}function fN(){var t,e,n=ZI,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:ZI=e);XI=t,pN(r)}function pN(t){if(!KI){$I&&($I=clearTimeout($I));var e=t-eN;e>24?(t<1/0&&($I=setTimeout(lN,t-rN.now()-nN)),QI&&(QI=clearInterval(QI))):(QI||(tN=rN.now(),QI=setInterval(hN,JI)),KI=1,iN(lN))}}sN.prototype=uN.prototype={constructor:sN,restart:function(t,e,n){if("function"!==typeof t)throw new TypeError("callback is not a function");n=(null==n?oN():+n)+(null==e?0:+e),this._next||XI===this||(XI?XI._next=this:ZI=this,XI=this),this._call=t,this._time=n,pN()},stop:function(){this._call&&(this._call=null,this._time=1/0,pN())}};var dN=function(t,e,n){var r=new sN;return e=null==e?0:+e,r.restart(n=>{r.stop(),t(n+e)},e,n),r},vN=zI("start","end","cancel","interrupt"),gN=[],mN=0,yN=1,_N=2,bN=3,ON=4,wN=5,xN=6,EN=function(t,e,n,r,i,o){var a=t.__transition;if(a){if(n in a)return}else t.__transition={};CN(t,n,{name:e,index:r,group:i,on:vN,tween:gN,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:mN})};function SN(t,e){var n=MN(t,e);if(n.state>mN)throw new Error("too late; already scheduled");return n}function TN(t,e){var n=MN(t,e);if(n.state>bN)throw new Error("too late; already running");return n}function MN(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function CN(t,e,n){var r,i=t.__transition;function o(t){n.state=yN,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!==yN)return u();for(c in i)if(f=i[c],f.name===n.name){if(f.state===bN)return dN(a);f.state===ON?(f.state=xN,f.timer.stop(),f.on.call("interrupt",t,t.__data__,f.index,f.group),delete i[c]):+c<e&&(f.state=xN,f.timer.stop(),f.on.call("cancel",t,t.__data__,f.index,f.group),delete i[c])}if(dN((function(){n.state===bN&&(n.state=ON,n.timer.restart(s,n.delay,n.time),s(o))})),n.state=_N,n.on.call("start",t,t.__data__,n.index,n.group),n.state===_N){for(n.state=bN,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=wN,1),o=-1,a=r.length;while(++o<a)r[o].call(t,i);n.state===wN&&(n.on.call("end",t,t.__data__,n.index,n.group),u())}function u(){for(var r in n.state=xN,n.timer.stop(),delete i[e],i)return;delete t.__transition}i[e]=n,n.timer=uN(o,0,n.time)}var AN,PN=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>_N&&n.state<wN,n.state=xN,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}},LN=function(t){return this.each((function(){PN(this,t)}))},DN=180/Math.PI,kN={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},RN=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)*DN,skewX:Math.atan(u)*DN,scaleX:a,scaleY:s}};function IN(t){const e=new("function"===typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?kN:RN(e.a,e.b,e.c,e.d,e.e,e.f)}function NN(t){return null==t?kN:(AN||(AN=document.createElementNS("http://www.w3.org/2000/svg","g")),AN.setAttribute("transform",t),(t=AN.transform.baseVal.consolidate())?(t=t.matrix,RN(t.a,t.b,t.c,t.d,t.e,t.f)):kN)}function jN(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:bx(t,i)},{i:u-2,x:bx(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:bx(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:bx(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:bx(t,n)},{i:s-2,x:bx(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 BN=jN(IN,"px, ","px)","deg)"),UN=jN(NN,", ",")",")");function VN(t,e){var n,r;return function(){var i=TN(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 GN(t,e,n){var r,i;if("function"!==typeof n)throw new Error;return function(){var o=TN(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 HN=function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r,i=MN(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?VN:GN)(n,t,e))};function zN(t,e,n){var r=t._id;return t.each((function(){var t=TN(this,r);(t.value||(t.value={}))[e]=n.apply(this,arguments)})),function(t){return MN(t,r).value[e]}}var FN=function(t,e){var n;return("number"===typeof e?bx:e instanceof qw?dx:(n=qw(e))?(e=n,dx):Tx)(t,e)};function WN(t){return function(){this.removeAttribute(t)}}function qN(t){return function(){this.removeAttributeNS(t.space,t.local)}}function YN(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 ZN(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 XN(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 KN(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 $N=function(t,e){var n=Ay(t),r="transform"===n?UN:FN;return this.attrTween(t,"function"===typeof e?(n.local?KN:XN)(n,r,zN(this,"attr."+t,e)):null==e?(n.local?qN:WN)(n):(n.local?ZN:YN)(n,r,e))};function QN(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function JN(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function tj(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&JN(t,i)),n}return i._value=e,i}function ej(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&QN(t,i)),n}return i._value=e,i}var nj=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=Ay(t);return this.tween(n,(r.local?tj:ej)(r,e))};function rj(t,e){return function(){SN(this,t).delay=+e.apply(this,arguments)}}function ij(t,e){return e=+e,function(){SN(this,t).delay=e}}var oj=function(t){var e=this._id;return arguments.length?this.each(("function"===typeof t?rj:ij)(e,t)):MN(this.node(),e).delay};function aj(t,e){return function(){TN(this,t).duration=+e.apply(this,arguments)}}function sj(t,e){return e=+e,function(){TN(this,t).duration=e}}var uj=function(t){var e=this._id;return arguments.length?this.each(("function"===typeof t?aj:sj)(e,t)):MN(this.node(),e).duration};function cj(t,e){if("function"!==typeof e)throw new Error;return function(){TN(this,t).ease=e}}var lj=function(t){var e=this._id;return arguments.length?this.each(cj(e,t)):MN(this.node(),e).ease};function hj(t,e){return function(){var n=e.apply(this,arguments);if("function"!==typeof n)throw new Error;TN(this,t).ease=n}}var fj=function(t){if("function"!==typeof t)throw new Error;return this.each(hj(this._id,t))},pj=function(t){"function"!==typeof t&&(t=Xm(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 Hj(r,this._parents,this._name,this._id)},dj=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 Hj(a,this._parents,this._name,this._id)};function vj(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 gj(t,e,n){var r,i,o=vj(e)?SN:TN;return function(){var a=o(this,t),s=a.on;s!==r&&(i=(r=s).copy()).on(e,n),a.on=i}}var mj=function(t,e){var n=this._id;return arguments.length<2?MN(this.node(),n).on.on(t):this.each(gj(n,t,e))};function yj(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}var _j=function(){return this.on("end.remove",yj(this._id))},bj=function(t){var e=this._name,n=this._id;"function"!==typeof t&&(t=Hm(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,EN(h[f],e,n,f,h,MN(s,n)));return new Hj(o,this._parents,e,n)},Oj=function(t){var e=this._name,n=this._id;"function"!==typeof t&&(t=qm(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=MN(u,n),v=0,g=p.length;v<g;++v)(f=p[v])&&EN(f,e,n,v,p,d);o.push(p),a.push(u)}return new Hj(o,a,e,n)},wj=V_.prototype.constructor,xj=function(){return new wj(this._groups,this._parents)};function Ej(t,e){var n,r,i;return function(){var o=Hy(this,t),a=(this.style.removeProperty(t),Hy(this,t));return o===a?null:o===n&&a===r?i:i=e(n=o,r=a)}}function Sj(t){return function(){this.style.removeProperty(t)}}function Tj(t,e,n){var r,i,o=n+"";return function(){var a=Hy(this,t);return a===o?null:a===r?i:i=e(r=a,n)}}function Mj(t,e,n){var r,i,o;return function(){var a=Hy(this,t),s=n(this),u=s+"";return null==s&&(this.style.removeProperty(t),u=s=Hy(this,t)),a===u?null:a===r&&u===i?o:(i=u,o=e(r=a,s))}}function Cj(t,e){var n,r,i,o,a="style."+e,s="end."+a;return function(){var u=TN(this,t),c=u.on,l=null==u.value[a]?o||(o=Sj(e)):void 0;c===n&&i===l||(r=(n=c).copy()).on(s,i=l),u.on=r}}var Aj=function(t,e,n){var r="transform"===(t+="")?BN:FN;return null==e?this.styleTween(t,Ej(t,r)).on("end.style."+t,Sj(t)):"function"===typeof e?this.styleTween(t,Mj(t,r,zN(this,"style."+t,e))).each(Cj(this._id,t)):this.styleTween(t,Tj(t,r,e),n).on("end.style."+t,null)};function Pj(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function Lj(t,e,n){var r,i;function o(){var o=e.apply(this,arguments);return o!==i&&(r=(i=o)&&Pj(t,o,n)),r}return o._value=e,o}var Dj=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,Lj(t,e,null==n?"":n))};function kj(t){return function(){this.textContent=t}}function Rj(t){return function(){var e=t(this);this.textContent=null==e?"":e}}var Ij=function(t){return this.tween("text","function"===typeof t?Rj(zN(this,"text",t)):kj(null==t?"":t+""))};function Nj(t){return function(e){this.textContent=t.call(this,e)}}function jj(t){var e,n;function r(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&Nj(r)),e}return r._value=t,r}var Bj=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,jj(t))},Uj=function(){for(var t=this._name,e=this._id,n=Fj(),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=MN(a,e);EN(a,t,n,c,s,{time:l.time+l.delay+l.duration,delay:0,duration:l.duration,ease:l.ease})}return new Hj(r,this._parents,t,n)},Vj=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=TN(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})),0===i&&o()}))},Gj=0;function Hj(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function zj(t){return V_().transition(t)}function Fj(){return++Gj}var Wj=V_.prototype;Hj.prototype=zj.prototype={constructor:Hj,select:bj,selectAll:Oj,selectChild:Wj.selectChild,selectChildren:Wj.selectChildren,filter:pj,merge:dj,selection:xj,transition:Uj,call:Wj.call,nodes:Wj.nodes,node:Wj.node,size:Wj.size,empty:Wj.empty,each:Wj.each,on:mj,attr:$N,attrTween:nj,style:Aj,styleTween:Dj,text:Ij,textTween:Bj,remove:_j,tween:HN,delay:oj,duration:uj,ease:lj,easeVarying:fj,end:Vj,[Symbol.iterator]:Wj[Symbol.iterator]};var qj={time:null,delay:0,duration:250,ease:pt};function Yj(t,e){var n;while(!(n=t.__transition)||!(n=n[e]))if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return n}var Zj=function(t){var e,n;t instanceof Hj?(e=t._id,t=t._name):(e=Fj(),(n=qj).time=oN(),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])&&EN(a,t,e,c,s,n||Yj(a,e));return new Hj(r,this._parents,t,e)};V_.prototype.interrupt=LN,V_.prototype.transition=Zj;var Xj=t=>()=>t;function Kj(t,{sourceEvent:e,target:n,selection:r,mode:i,dispatch:o}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},selection:{value:r,enumerable:!0,configurable:!0},mode:{value:i,enumerable:!0,configurable:!0},_:{value:o}})}function $j(t){t.stopImmediatePropagation()}var Qj=function(t){t.preventDefault(),t.stopImmediatePropagation()},Jj={name:"drag"},tB={name:"space"},eB={name:"handle"},nB={name:"center"};const{abs:rB,max:iB,min:oB}=Math;function aB(t){return[+t[0],+t[1]]}function sB(t){return[aB(t[0]),aB(t[1])]}var uB={name:"x",handles:["w","e"].map(vB),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]]}},cB={name:"y",handles:["n","s"].map(vB),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]]}},lB=(["n","w","e","s","nw","ne","sw","se"].map(vB),{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"}),hB={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},fB={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},pB={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},dB={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function vB(t){return{type:t}}function gB(t){return!t.ctrlKey&&!t.button}function mB(){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 yB(){return navigator.maxTouchPoints||"ontouchstart"in this}function _B(t){while(!t.__brush)if(!(t=t.parentNode))return;return t.__brush}function bB(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}function OB(){return wB(uB)}function wB(t){var e,n=mB,r=gB,i=yB,o=!0,a=zI("start","brush","end"),s=6;function u(e){var n=e.property("__brush",v).selectAll(".overlay").data([vB("overlay")]);n.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",lB.overlay).merge(n).each((function(){var t=_B(this).extent;G_(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([vB("selection")]).enter().append("rect").attr("class","selection").attr("cursor",lB.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 lB[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=G_(this),e=_B(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){var r=t.__brush.emitter;return!r||n&&r.clean?new h(t,e,n):r}function h(t,e,n){this.that=t,this.args=e,this.state=t.__brush,this.active=0,this.clean=n}function f(n){if((!e||n.touches)&&r.apply(this,arguments)){var i,a,s,u,h,f,p,d,v,g,m,y=this,_=n.target.__data__.type,b="selection"===(o&&n.metaKey?_="overlay":_)?Jj:o&&n.altKey?nB:eB,O=t===cB?null:pB[_],w=t===uB?null:dB[_],x=_B(y),E=x.extent,S=x.selection,T=E[0][0],M=E[0][1],C=E[1][0],A=E[1][1],P=0,L=0,D=O&&w&&o&&n.shiftKey,k=Array.from(n.touches||[n],t=>{const e=t.identifier;return t=wd(t,y),t.point0=t.slice(),t.identifier=e,t});PN(y);var R=l(y,arguments,!0).beforestart();if("overlay"===_){S&&(v=!0);const e=[k[0],k[1]||k[0]];x.selection=S=[[i=t===cB?T:oB(e[0][0],e[1][0]),s=t===uB?M:oB(e[0][1],e[1][1])],[h=t===cB?C:iB(e[0][0],e[1][0]),p=t===uB?A:iB(e[0][1],e[1][1])]],k.length>1&&U(n)}else i=S[0][0],s=S[0][1],h=S[1][0],p=S[1][1];a=i,u=s,f=h,d=p;var I=G_(y).attr("pointer-events","none"),N=I.selectAll(".overlay").attr("cursor",lB[_]);if(n.touches)R.moved=B,R.ended=V;else{var j=G_(n.view).on("mousemove.brush",B,!0).on("mouseup.brush",V,!0);o&&j.on("keydown.brush",G,!0).on("keyup.brush",H,!0),qI(n.view)}c.call(y),R.start(n,b.name)}function B(t){for(const e of t.changedTouches||[t])for(const t of k)t.identifier===e.identifier&&(t.cur=wd(e,y));if(D&&!g&&!m&&1===k.length){const t=k[0];rB(t.cur[0]-t[0])>rB(t.cur[1]-t[1])?m=!0:g=!0}for(const e of k)e.cur&&(e[0]=e.cur[0],e[1]=e.cur[1]);v=!0,Qj(t),U(t)}function U(t){const e=k[0],n=e.point0;var r;switch(P=e[0]-n[0],L=e[1]-n[1],b){case tB:case Jj:O&&(P=iB(T-i,oB(C-h,P)),a=i+P,f=h+P),w&&(L=iB(M-s,oB(A-p,L)),u=s+L,d=p+L);break;case eB:k[1]?(O&&(a=iB(T,oB(C,k[0][0])),f=iB(T,oB(C,k[1][0])),O=1),w&&(u=iB(M,oB(A,k[0][1])),d=iB(M,oB(A,k[1][1])),w=1)):(O<0?(P=iB(T-i,oB(C-i,P)),a=i+P,f=h):O>0&&(P=iB(T-h,oB(C-h,P)),a=i,f=h+P),w<0?(L=iB(M-s,oB(A-s,L)),u=s+L,d=p):w>0&&(L=iB(M-p,oB(A-p,L)),u=s,d=p+L));break;case nB:O&&(a=iB(T,oB(C,i-P*O)),f=iB(T,oB(C,h+P*O))),w&&(u=iB(M,oB(A,s-L*w)),d=iB(M,oB(A,p+L*w)));break}f<a&&(O*=-1,r=i,i=h,h=r,r=a,a=f,f=r,_ in hB&&N.attr("cursor",lB[_=hB[_]])),d<u&&(w*=-1,r=s,s=p,p=r,r=u,u=d,d=r,_ in fB&&N.attr("cursor",lB[_=fB[_]])),x.selection&&(S=x.selection),g&&(a=S[0][0],f=S[1][0]),m&&(u=S[0][1],d=S[1][1]),S[0][0]===a&&S[0][1]===u&&S[1][0]===f&&S[1][1]===d||(x.selection=[[a,u],[f,d]],c.call(y),R.brush(t,b.name))}function V(t){if($j(t),t.touches){if(t.touches.length)return;e&&clearTimeout(e),e=setTimeout((function(){e=null}),500)}else YI(t.view,v),j.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);I.attr("pointer-events","all"),N.attr("cursor",lB.overlay),x.selection&&(S=x.selection),bB(S)&&(x.selection=null,c.call(y)),R.end(t,b.name)}function G(t){switch(t.keyCode){case 16:D=O&&w;break;case 18:b===eB&&(O&&(h=f-P*O,i=a+P*O),w&&(p=d-L*w,s=u+L*w),b=nB,U(t));break;case 32:b!==eB&&b!==nB||(O<0?h=f-P:O>0&&(i=a-P),w<0?p=d-L:w>0&&(s=u-L),b=tB,N.attr("cursor",lB.selection),U(t));break;default:return}Qj(t)}function H(t){switch(t.keyCode){case 16:D&&(g=m=D=!1,U(t));break;case 18:b===nB&&(O<0?h=f:O>0&&(i=a),w<0?p=d:w>0&&(s=u),b=eB,U(t));break;case 32:b===tB&&(t.altKey?(O&&(h=f-P*O,i=a+P*O),w&&(p=d-L*w,s=u+L*w),b=nB):(O<0?h=f:O>0&&(i=a),w<0?p=d:w>0&&(s=u),b=eB),N.attr("cursor",lB[_]),U(t));break;default:return}Qj(t)}}function p(t){l(this,arguments).moved(t)}function d(t){l(this,arguments).ended(t)}function v(){var e=this.__brush||{selection:null};return e.extent=sB(n.apply(this,arguments)),e.dim=t,e}return u.move=function(e,n,r){e.tween?e.on("start.brush",(function(t){l(this,arguments).beforestart().start(t)})).on("interrupt.brush end.brush",(function(t){l(this,arguments).end(t)})).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=Mx(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,i=arguments,o=e.__brush,a=t.input("function"===typeof n?n.apply(e,i):n,o.extent),s=l(e,i).beforestart();PN(e),o.selection=null===a?null:a,c.call(e),s.start(r).brush(r).end(r)}))},u.clear=function(t,e){u.move(t,null,e)},h.prototype={beforestart:function(){return 1===++this.active&&(this.state.emitter=this,this.starting=!0),this},start:function(t,e){return this.starting?(this.starting=!1,this.emit("start",t,e)):this.emit("brush",t),this},brush:function(t,e){return this.emit("brush",t,e),this},end:function(t,e){return 0===--this.active&&(delete this.state.emitter,this.emit("end",t,e)),this},emit:function(e,n,r){var i=G_(this.that).datum();a.call(e,this.that,new Kj(e,{sourceEvent:n,target:u,selection:t.output(this.state.selection),mode:r,dispatch:a}),i)}},u.extent=function(t){return arguments.length?(n="function"===typeof t?t:Xj(sB(t)),u):n},u.filter=function(t){return arguments.length?(r="function"===typeof t?t:Xj(!!t),u):r},u.touchable=function(t){return arguments.length?(i="function"===typeof t?t:Xj(!!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 xB=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(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="grid-brush",e.renderType=I.SVG,e.selectionSelector="rect.selection",e.frontSelectionSelector="rect.frontSelection",e}return xB(e,t),e.prototype.render=function(t){var n=this;void 0===t&&(t=!0);var r=this.parent,i=this.getComponentContainer(),o=Y_.appendOrSelect(r,"svg.chart-grid-backdrop"),a=Y_.appendOrSelect(o,"g."+this.type),s=Y_.appendOrSelect(a,this.selectionSelector),u=Y_.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=Y_.appendOrSelect(i,this.frontSelectionSelector);if(p&&f===H.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(t){var e=t.selection;null!==e&&e[0]!==e[1]&&(g.attr("x",parseFloat(s.attr("x"))+parseFloat(o.attr("x"))).attr("y",s.attr("y")).attr("width",s.attr("width")).attr("height",s.attr("height")).style("cursor","pointer").style("display",null),y(e))},b=function(t,e){var r=Fx().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)},O=function(t){var e=t.selection;null!==e&&(b(e[0],e[1]),a.call(w.move,null),g.style("display","none"))},w=OB().extent([[0,0],[c-1,l]]).on("start brush end",_).on("end.brushed",O);a.call(w);var x=this.services.zoom.getZoomRatio();o.on("click",(function(t){if(t.shiftKey){var e=this.services.domUtils.getHolder(),n=wd(a.node(),e)[0],r=n-c*x/2;r<0&&(r=0);var i=n+c*x/2;i>c&&(i=c),b(r,i)}}))}},e.DASH_LENGTH=4,e}(wT),SB=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)}}(),TB=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="grid",e.renderType=I.SVG,e}return SB(e,t),e.prototype.render=function(t){void 0===t&&(t=!0);var e=_d.getProperty(this.getOptions(),"grid","x","enabled"),n=_d.getProperty(this.getOptions(),"grid","y","enabled");this.drawBackdrop(e,n),(e||n)&&(e&&(Y_.appendOrSelect(this.backdrop,"g.x.grid"),this.drawXGrid(t)),n&&(Y_.appendOrSelect(this.backdrop,"g.y.grid"),this.drawYGrid(t)))},e.prototype.drawXGrid=function(t){var e=this,n=this.parent,r=this.backdrop.attr("height"),i=this.services.cartesianScales.getMainXScale(),o=UT(i).tickSizeInner(-r).tickSizeOuter(0),a=_d.getProperty(this.getOptions(),"grid","x","alignWithAxisTicks");if(a){var s=this.services.cartesianScales.getDomainAxisPosition(),u=_d.getProperty(this.getOptions(),"axes",s,"ticks","values");u&&o.tickValues(u)}else{var c=_d.getProperty(this.getOptions(),"grid","x","numberOfTicks");o.ticks(c)}var l=n.select(".x.grid").attr("transform","translate("+-this.backdrop.attr("x")+", "+r+")");t?l.transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"grid-update",animate:t})})).call(o):l.call(o),this.cleanGrid(l)},e.prototype.drawYGrid=function(t){var e=this,n=this.parent,r=this.backdrop.attr("width"),i=this.services.cartesianScales.getMainYScale(),o=VT(i).tickSizeInner(-r).tickSizeOuter(0),a=_d.getProperty(this.getOptions(),"grid","y","alignWithAxisTicks");if(a){var s=this.services.cartesianScales.getRangeAxisPosition(),u=_d.getProperty(this.getOptions(),"axes",s,"ticks","values");u&&o.tickValues(u)}else{var c=_d.getProperty(this.getOptions(),"grid","y","numberOfTicks");o.ticks(c)}var l=n.select(".y.grid").attr("transform","translate(0, "+-this.backdrop.attr("y")+")");t?l.transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"grid-update",animate:t})})).call(o):l.call(o),this.cleanGrid(l)},e.prototype.getGridlineThreshold=function(t){var e,n=this.parent,r=n.selectAll(".x.grid .tick").nodes().sort((function(t,e){return Number(_d.getTranslationValues(t).tx)-Number(_d.getTranslationValues(e).tx)})),i=-1;if(r.length){r.forEach((function(e,n){t[0]>=+_d.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=+_d.getTranslationValues(s).tx-+_d.getTranslationValues(a).tx;else{var u=n.select("rect.chart-grid-backdrop").node(),c=Y_.getSVGElementSize(u).width;o=c-+_d.getTranslationValues(a).tx}else o=+_d.getTranslationValues(s).tx;var l=this.getOptions().tooltip.gridline.threshold;return o*l}},e.prototype.getActiveGridline=function(t){var e=_d.getProperty(this.getOptions,"tooltip","gridline","threshold"),n=e||this.getGridlineThreshold(t),r=this.parent,i=r.selectAll(".x.grid .tick").filter((function(){var e=_d.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=Y_.appendOrSelect(n,"svg.chart-grid-backdrop");var h=Y_.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",Math.abs(s-a)).attr("height",Math.abs(c-l)).lower(),h.attr("width","100%").attr("height","100%")},e.prototype.cleanGrid=function(t){t.selectAll("text").remove(),t.select(".domain").remove()},e}(wT),MB=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=5;function AB(t,e){return t>e-CB&&t<e+CB}var PB=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="ruler",e.renderType=I.SVG,e.isXGridEnabled=_d.getProperty(e.getOptions(),"grid","x","enabled"),e.isYGridEnabled=_d.getProperty(e.getOptions(),"grid","y","enabled"),e.isEventListenerAdded=!1,e}return MB(e,t),e.prototype.render=function(){var t=_d.getProperty(this.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,e){var n=this,r=e[0],i=e[1],o=this.parent,a=this.services.cartesianScales.getOrientation(),s=this.model.getDisplayData(),u=this.services.cartesianScales.getRangeScale(),c=u.range(),l=c[0],h=c[1],f=a===G.HORIZONTAL?i:r,p=Y_.appendOrSelect(o,"g.ruler").attr("aria-label","ruler"),d=Y_.appendOrSelect(p,"line.ruler-line"),v=o.selectAll("[role=graphics-symbol]"),g=s.map((function(t){return{domainValue:n.services.cartesianScales.getDomainValue(t),originalData:t}})).filter((function(t){return AB(t.domainValue,f)}));if(this.pointsWithinLine&&g.length===this.pointsWithinLine.length&&g.map((function(t){return t.domainValue})).join()===this.pointsWithinLine.map((function(t){return t.domainValue})).join())return this.pointsWithinLine=g,this.services.events.dispatchEvent(ft.Tooltip.MOVE,{mousePosition:[r,i]});this.pointsWithinLine=g;var m=this.pointsWithinLine.reduce((function(t,e){if(0===t.length)return t.push(e),t;var n=t[0].domainValue,r=Math.abs(f-e.domainValue),i=Math.abs(f-n);return r>i?t:(r<i?t=[e]:t.push(e),t)}),[]);if(m.length>0){var y=m.map((function(t){return t.originalData})).filter((function(t){var e=n.services.cartesianScales.getRangeIdentifier(t),r=t[e];return null!==r&&void 0!==r})),_=m.map((function(t){return t.domainValue})),b=v.filter((function(t){var e=n.services.cartesianScales.getDomainValue(t);return _.includes(e)}));this.elementsToHighlight&&this.elementsToHighlight.size()>0&&!_d.isEqual(this.elementsToHighlight,b)&&this.hideRuler(),b.dispatch("mouseover"),this.elementsToHighlight=b,this.services.events.dispatchEvent(ft.Tooltip.SHOW,{mousePosition:[r,i],hoveredElement:d,data:this.formatTooltipData(y)}),p.attr("opacity",1);var O=m[0];"horizontal"===a?d.attr("x1",h).attr("x2",l).attr("y1",O.domainValue).attr("y2",O.domainValue):d.attr("y1",h).attr("y2",l).attr("x1",O.domainValue).attr("x2",O.domainValue)}else this.hideRuler()},e.prototype.hideRuler=function(){var t=this.parent,e=Y_.appendOrSelect(t,"g.ruler"),n=t.selectAll("[role=graphics-symbol]");n.dispatch("mouseout"),this.services.events.dispatchEvent(ft.Tooltip.HIDE),e.attr("opacity",0)},e.prototype.addBackdropEventListeners=function(){this.isEventListenerAdded=!0;var t=this,e=this.services.domUtils.getHolder(),n=this.model.getDisplayData(),r=function(e){var n=wd(e,t.parent.node());t.showRuler(e,n)};if(n.length>100){var i=n.length%50*12.5;r=_d.debounceWithD3MousePosition((function(e){var n=this.mousePosition;t.showRuler(e,n)}),i,e)}this.backdrop.on("mousemove mouseover",r).on("mouseout",this.hideRuler.bind(this))},e.prototype.drawBackdrop=function(){var t=this.parent;this.backdrop=Y_.appendOrSelect(t,"svg.chart-grid-backdrop")},e}(wT),LB=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)}}(),DB=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},kB=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="ruler-binned",e.renderType=I.SVG,e}return LB(e,t),e.prototype.showRuler=function(t,e){var n=this,r=e[0],i=e[1],o=this.parent,a=this.model.getOptions(),s=this.services.cartesianScales.getOrientation(),u=this.services.cartesianScales.getRangeScale(),c=u.range(),l=c[0],h=c[1],f=this.services.cartesianScales.getDomainScale(),p=f.invert(s===G.VERTICAL?r:i),d=Y_.appendOrSelect(o,"g.ruler").attr("aria-label","ruler"),v=Y_.appendOrSelect(d,"line.ruler-line"),g=o.selectAll("[role=graphics-symbol]"),m=g.filter((function(t){if(parseFloat(Ml(t,"data.x0"))<=p&&parseFloat(Ml(t,"data.x1"))>=p)return!0}));if(m.size()>0){this.elementsToHighlight&&this.elementsToHighlight.size()>0&&!_d.isEqual(this.elementsToHighlight,m)&&this.hideRuler(),m.dispatch("mouseover"),this.elementsToHighlight=m;var y=G_(m.nodes()[0]).datum(),_=parseFloat(Ml(y,"data.x0")),b=parseFloat(Ml(y,"data.x1")),O=this.model.getActiveDataGroupNames(),w=O.reverse().map((function(t){return{label:t,value:Ml(y,"data."+t),class:n.model.getColorClassName({classNameTypes:[j.TOOLTIP],dataGroupName:t})}})).filter((function(t){return 0!==t.value})),x=w.length>0;if(x){this.services.events.dispatchEvent(ft.Tooltip.SHOW,{mousePosition:[r,i],hoveredElement:v,items:DB([{label:Ml(a,"bins.rangeLabel")||"Range",value:_+" – "+b}],w,!0===_d.getProperty(a,"tooltip","showTotal")?[{label:Ml(a,"tooltip.totalLabel")||"Total",value:O.reduce((function(t,e){return t+parseFloat(Ml(y,"data."+e))}),0)}]:[])}),d.attr("opacity",1);var E=f((_+b)/2);"horizontal"===s?v.attr("x1",h).attr("x2",l).attr("y1",E).attr("y2",E):v.attr("y1",h).attr("y2",l).attr("x1",E).attr("x2",E)}else this.hideRuler()}else this.hideRuler()},e}(PB),RB=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)}}(),IB=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return RB(e,t),e.prototype.formatTooltipData=function(t){return t.reverse()},e}(PB),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)}}(),jB=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="toolbar",e.renderType=I.HTML,e}return NB(e,t),e.prototype.init=function(){var t=this,e=function(){return t.updateOverflowMenu(!1)};this.services.events.addEventListener(ft.Toolbar.SHOW_OVERFLOW_MENU,(function(){t.renderOverflowMenu(),document.body.addEventListener("click",e)})),this.services.events.addEventListener(ft.Toolbar.HIDE_OVERFLOW_MENU,(function(){document.body.removeEventListener("click",e)}))},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this.getComponentContainer().attr("role","toolbar").attr("aria-label","chart-"+this.services.domUtils.getChartID()+" toolbar"),r=_d.getProperty(this.getOptions(),"data","loading");if(r)n.html(""),this.overflowMenu=null;else{this.overflowMenu||(this.overflowMenu=n.append("div").attr("class","cds--overflow-menu-options cds--overflow-menu--flip cds--overflow-menu-options cds--overflow-menu--flip").attr("tabindex",-1).attr("role","menu").html("<ul></ul>"));var i=this.getControlConfigs(),o=i.buttonList,a=i.overflowMenuItemList;a&&o.push(this.getOverflowButtonConfig());var s=n.selectAll("div.toolbar-control").data(o,(function(t){return t.id}));s.exit().remove();var u=s.enter().append("div").attr("class","toolbar-control cds--overflow-menu cds--overflow-menu").attr("role","button"),c=this;u.merge(s).classed("disabled",(function(t){return t.shouldBeDisabled()})).attr("aria-disabled",(function(t){return t.shouldBeDisabled()})).attr("aria-label",(function(t){return t.title})).html((function(t){return'\n\t\t\t<button\n\t\t\t\tclass="cds--overflow-menu__trigger cds--overflow-menu__trigger"\n\t\t\t\taria-haspopup="true" aria-expanded="false" id="'+e.services.domUtils.generateElementIDString("control-"+t.id)+'" aria-label="'+t.title+'">\n\t\t\t\t<svg focusable="false" preserveAspectRatio="xMidYMid meet" style="will-change: transform; width: '+(void 0!==t.iconSVG.width?t.iconSVG.width:"20px")+"; height: "+(void 0!==t.iconSVG.height?t.iconSVG.height:"20px")+'" xmlns="http://www.w3.org/2000/svg" class="cds--overflow-menu__icon cds--overflow-menu__icon" viewBox="0 0 32 32" aria-hidden="true">\n\t\t\t\t\t'+t.iconSVG.content+"\n\t\t\t\t</svg>\n\t\t\t</button>"})).each((function(t,e){var n=this;G_(this).select("button").on("click",(function(e){t.shouldBeDisabled()||c.triggerFunctionAndEvent(t,e,n)})).on("keydown",(function(r){r.key&&"Enter"===r.key||" "===r.key?(r.preventDefault(),c.triggerFunctionAndEvent(t,r,n)):r.key&&"ArrowLeft"===r.key?c.focusOnPreviousEnabledToolbarItem(e):r.key&&"ArrowRight"===r.key&&c.focusOnNextEnabledToolbarItem(e)}))}));this.overflowButton=this.getComponentContainer().select("button.cds--overflow-menu__trigger#"+this.services.domUtils.generateElementIDString("control-toolbar-overflow-menu"))}},e.prototype.renderOverflowMenu=function(){var t=this,e=this.getControlConfigs().overflowMenuItemList,n=this.overflowMenu.select("ul").selectAll("li.cds--overflow-menu-options__option").data(e,(function(t){return _d.getProperty(t,"id")}));n.exit().remove();var r=n.enter().append("li").attr("id",(function(e){return t.services.domUtils.generateElementIDString("control-"+e.id)})).attr("class","cds--overflow-menu-options__option cds--overflow-menu-options__option").attr("role","menuitem");r.append("button").attr("class","cds--overflow-menu-options__btn cds--overflow-menu-options__btn"),r.merge(n).classed("cds--overflow-menu-options__option--disabled",(function(t){return t.shouldBeDisabled()})).classed("cds--overflow-menu-options__option--disabled",(function(t){return t.shouldBeDisabled()})).attr("aria-disabled",(function(t){return t.shouldBeDisabled()})).selectAll("button").text((function(t){return t.text}))},e.prototype.isOverflowMenuOpen=function(){return this.overflowMenu.classed("is-open")},e.prototype.updateOverflowMenu=function(t){this.overflowMenu&&(this.overflowMenu.classed("is-open",t),this.overflowButton&&(this.overflowButton.attr("aria-expanded",t),G_(this.overflowButton.node().parentNode).classed("cds--overflow-menu--open",t).classed("cds--overflow-menu--open",t)),t?this.services.events.dispatchEvent(ft.Toolbar.SHOW_OVERFLOW_MENU):this.services.events.dispatchEvent(ft.Toolbar.HIDE_OVERFLOW_MENU))},e.prototype.focusOnPreviousEnabledToolbarItem=function(t){for(var e=this.getToolbarButtonItems(),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=G_("button#"+this.services.domUtils.generateElementIDString("control-"+e[n].id)).node();"focus"in o&&o.focus()}},e.prototype.focusOnNextEnabledToolbarItem=function(t){for(var e=this.getToolbarButtonItems(),n=-1,r=t+1;r<e.length;r++){var i=e[r];if(!i.shouldBeDisabled()){n=r;break}}if(n>-1){var o=G_("button#"+this.services.domUtils.generateElementIDString("control-"+e[n].id)).node();"focus"in o&&o.focus()}},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=G_("#"+this.services.domUtils.generateElementIDString("control-"+e[n].id)+" button").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=G_("#"+this.services.domUtils.generateElementIDString("control-"+e[n].id)+" button").node();"focus"in o&&o.focus()}},e.prototype.toggleOverflowMenu=function(t){var e=this;if(this.isOverflowMenuOpen())this.updateOverflowMenu(!1);else{this.updateOverflowMenu(!0);var n=this,r=this.getOverflowMenuItems();r.forEach((function(r,i){var o=G_("#"+e.services.domUtils.generateElementIDString("control-"+r.id));null!==o&&(o.on("click",(function(){n.triggerFunctionAndEvent(r,t,o.node()),n.updateOverflowMenu(!1)})),o.on("keydown",(function(e){e&&"Enter"===e.key?n.triggerFunctionAndEvent(r,t,o.node()):e&&"ArrowUp"===e.key?n.focusOnPreviousEnabledMenuItem(i):e&&"ArrowDown"===e.key?n.focusOnNextEnabledMenuItem(i):e&&"Escape"===e.key&&n.updateOverflowMenu(!1),e.preventDefault()})))})),n.focusOnNextEnabledMenuItem(-1)}t&&t.stopImmediatePropagation()},e.prototype.triggerFunctionAndEvent=function(t,e,n){"function"===typeof t.shouldBeDisabled&&t.shouldBeDisabled()||("function"===typeof t.clickFunction&&t.clickFunction(e),this.services.events.dispatchEvent(ft.Toolbar.BUTTON_CLICK,{control:t,event:e,element:n}))},e.prototype.getControlConfigs=function(){var t=this,n=_d.getProperty(this.getOptions(),"toolbar","numberOfIcons")-1,r=_d.getProperty(this.getOptions(),"toolbar","controls"),i=[],o=[],a=[];return r.forEach((function(r){var s=null;r.type===ot.CUSTOM?(null===_d.getProperty(r,"id")&&(r.id="toolbar-button-"+e.buttonID++),null===_d.getProperty(r,"shouldBeDisabled")&&(r.shouldBeDisabled=function(){return!1}),s=r):s=t.getControlConfigByType(r.type),s&&(s.text=r.text?r.text:r.type,-1!==s.id.indexOf("toolbar-export")?i.push(s):o.length<n?null===_d.getProperty(s,"iconSVG","content")?a.push(s):o.push(s):a.push(s))})),a.push.apply(a,i),a.length?{buttonList:o,overflowMenuItemList:a}:{buttonList:o}},e.prototype.getToolbarButtonItems=function(){var t=this.getControlConfigs(),e=t.buttonList,n=t.overflowMenuItemList;return n&&e.push(this.getOverflowButtonConfig()),e||[]},e.prototype.getOverflowMenuItems=function(){var t=this.getControlConfigs().overflowMenuItemList;return t||[]},e.prototype.getOverflowButtonConfig=function(){var t=this;return{id:"toolbar-overflow-menu",title:"More options",shouldBeDisabled:function(){return!1},iconSVG:{content:'<circle cx="16" cy="8" r="2"></circle>\n\t\t\t\t<circle cx="16" cy="16" r="2"></circle>\n\t\t\t\t<circle cx="16" cy="24" r="2"></circle>'},clickFunction:function(e){return t.toggleOverflowMenu(e)}}},e.prototype.getControlConfigByType=function(t){var e,n=this,r=this.services.zoom&&this.services.zoom.isZoomBarEnabled()&&!this.services.zoom.isEmptyState(),i=this.model.getDisplayData();switch(t){case ot.ZOOM_IN:r&&(e={id:"toolbar-zoomIn",title:"Zoom in",shouldBeDisabled:function(){return n.services.zoom.isMinZoomDomain()},iconSVG:{content:this.getControlIconByType(t)},clickFunction:function(){return n.services.zoom.zoomIn()}});break;case ot.ZOOM_OUT:r&&(e={id:"toolbar-zoomOut",title:"Zoom out",shouldBeDisabled:function(){return n.services.zoom.isMaxZoomDomain()},iconSVG:{content:this.getControlIconByType(t)},clickFunction:function(){return n.services.zoom.zoomOut()}});break;case ot.RESET_ZOOM:r&&(e={id:"toolbar-resetZoom",title:"Reset zoom",shouldBeDisabled:function(){return n.services.zoom.isMaxZoomDomain()},iconSVG:{content:this.getControlIconByType(t)},clickFunction:function(){return n.services.zoom.resetZoomDomain()}});break;case ot.MAKE_FULLSCREEN:e={id:"toolbar-makefullscreen",iconSVG:{content:this.getControlIconByType(t),width:"15px",height:"15px"},title:"Make fullscreen",shouldBeDisabled:function(){return!1},clickFunction:function(){n.services.domUtils.toggleFullscreen()}};break;case ot.SHOW_AS_DATATABLE:e={id:"toolbar-showasdatatable",iconSVG:{content:this.getControlIconByType(t)},title:"Show as table",shouldBeDisabled:function(){return 0===i.length},clickFunction:function(){return n.services.events.dispatchEvent(ft.Modal.SHOW)}};break;case ot.EXPORT_CSV:e={id:"toolbar-export-CSV",title:"Export as CSV",shouldBeDisabled:function(){return!1},iconSVG:{content:this.getControlIconByType(t)},clickFunction:function(){return n.model.exportToCSV()}};break;case ot.EXPORT_PNG:e={id:"toolbar-export-PNG",title:"Export as PNG",shouldBeDisabled:function(){return!1},iconSVG:{content:this.getControlIconByType(t)},clickFunction:function(){return n.services.domUtils.exportToPNG()}};break;case ot.EXPORT_JPG:e={id:"toolbar-export-JPG",title:"Export as JPG",shouldBeDisabled:function(){return!1},iconSVG:{content:this.getControlIconByType(t)},clickFunction:function(){return n.services.domUtils.exportToJPG()}};break;default:throw Error("Not supported toolbar control type: "+t)}return e},e.prototype.getControlIconByType=function(t){switch(t){case ot.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\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 ot.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 ot.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"/>';case ot.MAKE_FULLSCREEN:return'<polygon points="21 2 21 4 26.59 4 17 13.58 18.41 15 28 5.41 28 11 30 11 30 2 21 2"/><polygon points="15 18.42 13.59 17 4 26.59 4 21 2 21 2 30 11 30 11 28 5.41 28 15 18.42"/>';case ot.SHOW_AS_DATATABLE:return'<rect x="4" y="6" width="18" height="2"/><rect x="4" y="12" width="18" height="2"/><rect x="4" y="18" width="18" height="2"/><rect x="4" y="24" width="18" height="2"/><rect x="26" y="6" width="2" height="2"/><rect x="26" y="12" width="2" height="2"/><rect x="26" y="18" width="2" height="2"/><rect x="26" y="24" width="2" height="2"/>';case ot.EXPORT_CSV: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"/>';case ot.EXPORT_JPG: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"/>';case ot.EXPORT_PNG: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.buttonID=0,e}(wT),BB=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)}}(),UB=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="zero-line",e.renderType=I.SVG,e}return BB(e,t),e.prototype.render=function(t){var e=this,n=this.services.cartesianScales.getRangeAxisPosition({groups:this.configs.groups}),r=this.services.cartesianScales.getScaleByPosition(n),i=r.domain(),o=i[0],a=i[1],s=o>0&&a<0||o<0&&a>0,u=this.getComponentContainer();if(s){var c=this.services.cartesianScales.getDomainScale().range(),l=c[0],h=c[1],f=+r(0)+.5;f||(f=r.range()[0]);var p=_d.flipSVGCoordinatesBasedOnOrientation({x0:l,x1:h,y0:f,y1:f},this.services.cartesianScales.getOrientation()),d=Y_.appendOrSelect(u,"line.domain");d.transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"zero-line-update",animate:t})})).attr("y1",p.y0).attr("y2",p.y1).attr("x1",p.x0).attr("x2",p.x1)}else u.selectAll("line.domain").remove()},e}(wT),VB=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)}}(),GB=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="zoom-bar",e.renderType=I.SVG,e.MIN_SELECTION_DIFF=9e-10,e.brushSelector="g.zoom-bar-brush",e.clipId="zoomBarClip-"+Math.floor(99999999999*Math.random()),e.brush=OB(),e.highlightStrokeWidth=1,e}return VB(e,t),e.prototype.init=function(){this.services.events.addEventListener(ft.ZoomBar.UPDATE,this.render.bind(this));var t=_d.getProperty(this.getOptions(),"zoomBar",B.TOP,"data");this.model.setZoomBarData(t)},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this.getComponentContainer(),r=this.services.zoom.isZoomBarLoading(B.TOP),i=this.services.zoom.isZoomBarLocked(B.TOP),o=_d.getProperty(this.getOptions(),"zoomBar",B.TOP,"type"),a=_d.getProperty(this.getOptions(),"axes",B.BOTTOM,"highlights"),s=kt.height[o],u=Y_.getSVGElementSize(this.parent,{useAttrs:!0}).width;if(0!==u){var c=0,l=this.model.get("axesMargins");l&&l.left&&(c=l.left);var h=Y_.appendOrSelect(n,"svg.zoom-container").attr("width","100%").attr("height",s).attr("opacity",1);Y_.appendOrSelect(n,"rect.zoom-spacer").attr("x",0).attr("y",s).attr("width","100%").attr("height",kt.spacerHeight).attr("opacity",1).attr("fill","none");if(o===U.GRAPH_VIEW?Y_.appendOrSelect(h,"rect.zoom-bg").attr("x",c).attr("y",0).attr("width",u-c).attr("height","100%").classed("zoom-bg-skeleton",r).style("stroke",r?"url(#"+this.services.domUtils.generateElementIDString("shimmer-lines")+")":null):o===U.SLIDER_VIEW&&Y_.appendOrSelect(h,"rect.zoom-slider-bg").attr("x",c).attr("y",s/2-1).attr("width",u-c).attr("height",2).classed("zoom-slider-bg-skeleton",r).style("stroke",r?"url(#"+this.services.domUtils.generateElementIDString("shimmer-lines")+")":null),r)this.renderSkeleton(h,c,u);else{var f=this.services.cartesianScales,p=f.getMainXScale(),d=f.getMainYScale(),v=f.getMainXScaleType();if(p&&v===H.TIME){var g=this.services.zoom.getZoomBarData();if(_d.isEmpty(g)||1===g.length)return;this.xScale=p.copy(),this.yScale=d.copy();var m=this.services.zoom.getDefaultZoomBarDomain(g);g=this.compensateDataForDefaultDomain(g,m);var y=this.model.get("initialZoomDomain"),_=_d.getProperty(this.getOptions(),"zoomBar",B.TOP,"initialZoomDomain");_&&_[0]&&_[1]&&(_[0]=new Date(_[0]),_[1]=new Date(_[1])),!_||y&&y[0].valueOf()===_[0].valueOf()&&y[1].valueOf()===_[1].valueOf()?null===_&&null!==y&&this.model.set({initialZoomDomain:null,zoomDomain:_d.merge([],m)},{skipUpdate:!0}):this.model.set({initialZoomDomain:_d.merge([],_),zoomDomain:_?_d.merge([],_):m},{skipUpdate:!0}),this.xScale.range([c,u]).domain(m),this.maxSelectionRange=this.xScale.range(),this.yScale.range([0,s-6]).domain(jv(g,(function(t){return t.value})));var b=this.model.get("zoomDomain");if(o===U.GRAPH_VIEW&&(this.renderZoomBarArea(h,"path.zoom-graph-area-unselected",g,null),this.updateClipPath(n,this.clipId,0,0,0,0),this.renderZoomBarArea(h,"path.zoom-graph-area",g,this.clipId),this.renderZoomBarBaseline(h,c,u),a)){var O=a.highlightStartMapsTo,w=a.highlightEndMapsTo,x=a.color,E=a.labelMapsTo;a.data.forEach((function(t,n){Y_.appendOrSelect(h,"rect.highlight-"+n).attr("height",s-2*e.highlightStrokeWidth).attr("y",e.highlightStrokeWidth).attr("x",e.xScale(t[O])).attr("width",e.xScale(t[w])-e.xScale(t[O])).style("fill",x&&x.scale[t[E]]?x.scale[t[E]]:null).style("fill-opacity",.1).style("stroke",x&&x.scale[t[E]]?x.scale[t[E]]:null).style("stroke-dasharray","2, 2").attr("stroke-width","1px")}))}this.addBrushEventListener(b,c,u);var S=Y_.appendOrSelect(n,this.brushSelector).call(this.brush);if(void 0===b);else if(b[0].valueOf()===b[1].valueOf())S.call(this.brush.move,this.xScale.range()),this.updateBrushHandle(this.getComponentContainer(),this.xScale.range(),this.xScale.domain());else{var T=b.map((function(t){return e.xScale(t)}));T[1]-T[0]<this.MIN_SELECTION_DIFF||(S.call(this.brush.move,T),this.updateBrushHandle(this.getComponentContainer(),T,b))}i&&(this.brush.filter((function(){return!1})),S.selectAll("rect").attr("cursor","auto"))}}}},e.prototype.addBrushEventListener=function(t,e,n){var r=this,i=function(e){var n=e.selection;null===n?r.handleBrushedEvent(e,t,r.xScale,r.xScale.range()):n[0]===n[1]||r.handleBrushedEvent(e,t,r.xScale,n)},o=_d.getProperty(this.getOptions(),"zoomBar",B.TOP,"type"),a=kt.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,r){var i=[n.invert(r[0]),n.invert(r[1])];if(this.updateBrushHandle(this.getComponentContainer(),r,i),null!=t.sourceEvent&&("mousemove"===t.sourceEvent.type||"mouseup"===t.sourceEvent.type||"mousedown"===t.sourceEvent.type||"touchstart"===t.sourceEvent.type||"touchmove"===t.sourceEvent.type||"touchend"===t.sourceEvent.type)){void 0!==e&&e[0]===i[0]&&e[1]===i[1]||this.services.zoom.handleDomainChange(i,{dispatchEvent:!1});var o=void 0;"start"===t.type?o=ft.ZoomBar.SELECTION_START:"brush"===t.type?o=ft.ZoomBar.SELECTION_IN_PROGRESS:"end"===t.type&&(o=ft.ZoomBar.SELECTION_END,this.services.events.dispatchEvent(ft.ZoomDomain.CHANGE,{newDomain:i})),this.services.events.dispatchEvent(o,{selection:r,newDomain:i})}},e.prototype.updateBrushHandle=function(t,e,n){var r=this,i=kt.handleWidth,o=_d.getProperty(this.getOptions(),"zoomBar",B.TOP,"type"),a=kt.height[o],s=-i/2,u=kt.handleBarWidth,c=o===U.GRAPH_VIEW?kt.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===U.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=_d.getProperty(this.getOptions(),"zoomBar",B.TOP,"type"),n=kt.height[e],r=(Y_.getSVGElementSize(this.parent,{useAttrs:!0}).width,this.model.get("axesMargins"));r&&r.left&&r.left;var i=this.getComponentContainer(),o=i.select("svg.zoom-container");Y_.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=_d.getProperty(this.getOptions(),"zoomBar",B.TOP,"type"),p=kt.height[f],d=mA().x((function(t,e){return l(t,e)})).y0(p).y1((function(t,e){return p-h(t,e)})),v=Y_.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=Y_.appendOrSelect(t,"clipPath").attr("id",e);Y_.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=_d.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.renderZoomBarBaseline=function(t,e,n,r){void 0===r&&(r=!1);var i=_d.getProperty(this.model.getOptions(),"zoomBar",B.TOP,"type"),o=kt.height[i],a=gA()([[e,o],[n,o]]);Y_.appendOrSelect(t,"path.zoom-bg-baseline").attr("d",a).classed("zoom-bg-baseline-skeleton",r).style("stroke",r?"url(#"+this.services.domUtils.generateElementIDString("shimmer-lines")+")":null)},e.prototype.renderSkeleton=function(t,e,n){this.renderZoomBarArea(t,"path.zoom-graph-area-unselected",[],null),this.renderZoomBarArea(t,"path.zoom-graph-area",[],this.clipId),this.brush.on("start brush end",null),Y_.appendOrSelect(this.getComponentContainer(),this.brushSelector).html(null);var r=_d.getProperty(this.getOptions(),"zoomBar",B.TOP,"type");r===U.GRAPH_VIEW&&this.renderZoomBarBaseline(t,e,n,!0)},e.prototype.destroy=function(){this.brush.on("start brush end",null),this.services.events.removeEventListener(ft.ZoomBar.UPDATE,this.render.bind(this))},e}(wT),HB=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},zB=function(){function t(t,e){this.services={domUtils:Y_,files:$_,events:X_,gradientUtils:eb,transitions:J_,canvasZoom:OT},this.model=new Um(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(ft.Model.UPDATE,(function(t){var e=!!_d.getProperty(t,"detail","animate");n.update(e)})),this.model.setData(e.data),this.services.events.addEventListener(ft.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(ft.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,e){var n=this.model.getOptions(),r=_d.getProperty(n,"toolbar","enabled"),i={id:"legend",components:[new ET(this.model,this.services)],growth:Z.PREFERRED},o=_d.getProperty(n,"canvasZoom","enabled");o&&!0===o&&t.push(new rA(this.model,this.services));var a=!!this.model.getOptions().title,s={id:"title",components:[new qC(this.model,this.services)],growth:Z.STRETCH},u={id:"toolbar",components:[new jB(this.model,this.services)],growth:Z.PREFERRED},c={id:"header",components:[new AI(this.model,this.services,HB([s],r?[u]:[]),{direction:Y.ROW,alignItems:X.CENTER})],growth:Z.PREFERRED},l={id:"graph-frame",components:t,growth:Z.STRETCH,renderType:_d.getProperty(e,"graphFrameRenderType")||I.SVG},h=!0!==_d.getProperty(e,"excludeLegend")&&!1!==n.legend.enabled,f=Y.COLUMN;if(h){var p=_d.getProperty(n,"legend","position");"left"===p?(f=Y.ROW,n.legend.orientation||(n.legend.orientation=W.VERTICAL)):"right"===p?(f=Y.ROW_REVERSE,n.legend.orientation||(n.legend.orientation=W.VERTICAL)):"bottom"===p&&(f=Y.COLUMN_REVERSE)}var d={id:"spacer",components:[new MI(this.model,this.services)],growth:Z.PREFERRED},v={id:"full-frame",components:[new AI(this.model,this.services,HB(h?[i]:[],h?[d]:[],[l]),{direction:f})],growth:Z.STRETCH},g=[];if(a||r){g.push(c);var m={id:"spacer",components:[new MI(this.model,this.services,r?{size:15}:void 0)],growth:Z.PREFERRED};g.push(m)}return g.push(v),[new KC(this.model,this.services),new BC(this.model,this.services),new AI(this.model,this.services,g,{direction:Y.COLUMN})]},t}(),FB=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)}}(),WB=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},qB=function(t){function e(e){var n=t.call(this,e)||this;return n.axisFlavor=lt.DEFAULT,n}return FB(e,t),e.prototype.assignRangeAndDomains=function(){var t=this.services.cartesianScales,e=this.getOptions(),n=t.isDualAxes(),r={primaryDomain:t.domainAxisPosition,primaryRange:t.rangeAxisPosition,secondaryDomain:null,secondaryRange:null};return n&&(r.secondaryDomain=t.secondaryDomainAxisPosition,r.secondaryRange=t.secondaryRangeAxisPosition),Object.keys(r).forEach((function(n){var i=r[n];t.scales[i]?r[n]={position:i,label:t.getScaleLabel(i),identifier:_d.getProperty(e,"axes",i,"mapsTo")}:r[n]=null})),r},e.prototype.getTabularDataArray=function(){var t,e=this.getDisplayData(),n=this.getOptions(),r=n.data.groupMapsTo,i=this.services.cartesianScales,o=this.assignRangeAndDomains(),a=o.primaryDomain,s=o.primaryRange,u=o.secondaryDomain,c=o.secondaryRange,l=i.getDomainAxisScaleType();l===H.TIME&&(t=function(t){return Em(t,"MMM d, yyyy")});var h=WB([WB(["Group",a.label,s.label],u?[u.label]:[],c?[c.label]:[])],e.map((function(e){return WB([e[r],null===e[a.identifier]?"&ndash;":t?t(e[a.identifier]):e[a.identifier],null===e[s.identifier]||isNaN(e[s.identifier])?"&ndash;":e[s.identifier].toLocaleString()],u?[null===e[u.identifier]?"&ndash;":e[u.identifier]]:[],c?[null===e[c.identifier]||isNaN(e[c.identifier])?"&ndash;":e[c.identifier]]:[])})));return h},e.prototype.setData=function(e){var n;if(e&&(n=t.prototype.setData.call(this,e),_d.getProperty(this.getOptions(),"zoomBar",B.TOP,"enabled"))){var r=_d.getProperty(this.getOptions(),"zoomBar",B.TOP,"data");this.setZoomBarData(r)}return n},e.prototype.setZoomBarData=function(t){var e=t?this.sanitize(_d.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=_d.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(B).forEach((function(t){var r=B[t],i=e.axes[r];if(i&&i.scaleType===H.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===_d.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}(Um),YB=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)}}(),ZB=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},XB=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.services=Object.assign(r.services,{cartesianScales:lS,curves:mT,zoom:_T}),r.model=new qB(r.services),r}return YB(e,t),e.prototype.getAxisChartComponents=function(t,e){var n=this.model.getOptions(),r=_d.getProperty(n,"zoomBar",B.TOP,"enabled"),i=_d.getProperty(n,"toolbar","enabled");this.services.cartesianScales.determineAxisDuality(),this.services.cartesianScales.findDomainAndRangeAxes(),this.services.cartesianScales.determineOrientation();var o=this.services.cartesianScales.getMainXAxisPosition(),a=_d.getProperty(n,"axes",o,"scaleType"),s=r&&o===B.BOTTOM&&a===H.TIME,u=this.services.zoom.isZoomBarLocked(B.TOP),c=!!this.model.getOptions().title,l={id:"title",components:[new qC(this.model,this.services)],growth:Z.STRETCH},h={id:"toolbar",components:[new jB(this.model,this.services)],growth:Z.PREFERRED},f={id:"header",components:[new AI(this.model,this.services,ZB([l],i?[h]:[]),{direction:Y.ROW,alignItems:X.CENTER})],growth:Z.PREFERRED},p={id:"legend",components:[new ET(this.model,this.services)],growth:Z.PREFERRED};s&&!u&&t.push(new eA(this.model,this.services),new EB(this.model,this.services)),t.push(new FC(this.model,this.services)),t.push(new aA(this.model,this.services));var d={id:"graph-frame",components:t,growth:Z.STRETCH,renderType:I.SVG},v=!1!==_d.getProperty(e,"legend","enabled")&&!1!==this.model.getOptions().legend.enabled,g=Y.COLUMN;if(v){var m=_d.getProperty(this.model.getOptions(),"legend","position");m===z.LEFT?(g=Y.ROW,this.model.getOptions().legend.orientation||(this.model.getOptions().legend.orientation=W.VERTICAL)):m===z.RIGHT?(g=Y.ROW_REVERSE,this.model.getOptions().legend.orientation||(this.model.getOptions().legend.orientation=W.VERTICAL)):m===z.BOTTOM&&(g=Y.COLUMN_REVERSE)}var y={id:"spacer",components:[new MI(this.model,this.services)],growth:Z.PREFERRED},_={id:"full-frame",components:[new AI(this.model,this.services,ZB(v?[p]:[],v?[y]:[],[d]),{direction:g})],growth:Z.STRETCH},b={id:"zoom-bar",components:[new GB(this.model,this.services)],growth:Z.PREFERRED,renderType:I.SVG},O=[];if(c||i){O.push(f);var w={id:"spacer",components:[new MI(this.model,this.services,i?{size:15}:void 0)],growth:Z.PREFERRED};O.push(w)}return s&&O.push(b),O.push(_),[new JC(this.model,this.services),new BC(this.model,this.services),new AI(this.model,this.services,O,{direction:Y.COLUMN})]},e}(zB),KB=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)}}(),$B=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(_d.mergeDefaultChartOptions(_d.clone(uv.areaChart),n.options)),r.init(e,n),r}return KB(e,t),e.prototype.getComponents=function(){var t=[new NI(this.model,this.services),new TB(this.model,this.services),new PB(this.model,this.services),new GA(this.model,this.services),new _A(this.model,this.services),new kA(this.model,this.services,{fadeInOnChartHolderMouseover:!0,handleThresholds:!0}),new dP(this.model,this.services,{skeleton:$.GRID})],e=this.getAxisChartComponents(t);return e},e}(XB),QB=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)}}(),JB=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(_d.mergeDefaultChartOptions(uv.stackedAreaChart,n.options)),r.init(e,n),r}return QB(e,t),e.prototype.getComponents=function(){var t=[new NI(this.model,this.services),new TB(this.model,this.services),new IB(this.model,this.services),new OA(this.model,this.services),new GA(this.model,this.services,{stacked:!0}),new WA(this.model,this.services,{fadeInOnChartHolderMouseover:!0,handleThresholds:!0,stacked:!0}),new dP(this.model,this.services,{skeleton:$.GRID})],e=this.getAxisChartComponents(t);return e},e}(XB),tU=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)}}(),eU=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(_d.mergeDefaultChartOptions(uv.simpleBarChart,n.options)),r.init(e,n),r}return tU(e,t),e.prototype.getComponents=function(){var t=[new NI(this.model,this.services),new TB(this.model,this.services),new SA(this.model,this.services),new UB(this.model,this.services),new dP(this.model,this.services,{skeleton:$.VERT_OR_HORIZ})],e=this.getAxisChartComponents(t);return e},e}(XB),nU=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)}}(),rU=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(_d.mergeDefaultChartOptions(uv.groupedBarChart,n.options)),r.init(e,n),r}return nU(e,t),e.prototype.getComponents=function(){var t=[new NI(this.model,this.services),new TB(this.model,this.services),new MA(this.model,this.services),new UB(this.model,this.services),new dP(this.model,this.services,{skeleton:$.VERT_OR_HORIZ})],e=this.getAxisChartComponents(t);return e},e}(XB),iU=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)}}(),oU=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(_d.mergeDefaultChartOptions(uv.stackedBarChart,n.options)),r.init(e,n),r}return iU(e,t),e.prototype.getComponents=function(){var t=[new NI(this.model,this.services),new TB(this.model,this.services),new IB(this.model,this.services),new AA(this.model,this.services),new dP(this.model,this.services,{skeleton:$.VERT_OR_HORIZ}),new UB(this.model,this.services)],e=this.getAxisChartComponents(t);return e},e}(XB);function aU(t,e,n=0,r=t.length-1,i=Cv){while(r>n){if(r-n>600){const o=r-n+1,a=e-n+1,s=Math.log(o),u=.5*Math.exp(2*s/3),c=.5*Math.sqrt(s*u*(o-u)/o)*(a-o/2<0?-1:1),l=Math.max(n,Math.floor(e-a*u/o+c)),h=Math.min(r,Math.floor(e+(o-a)*u/o+c));aU(t,e,l,h,i)}const o=t[e];let a=n,s=r;sU(t,n,e),i(t[r],o)>0&&sU(t,n,r);while(a<s){sU(t,a,s),++a,--s;while(i(t[a],o)<0)++a;while(i(t[s],o)>0)--s}0===i(t[n],o)?sU(t,n,s):(++s,sU(t,s,r)),s<=e&&(n=s+1),e<=s&&(r=s-1)}return t}function sU(t,e,n){const r=t[e];t[e]=t[n],t[n]=r}function uU(t,e,n){if(t=Float64Array.from(Dv(t,n)),r=t.length){if((e=+e)<=0||r<2)return Tm(t);if(e>=1)return PE(t);var r,i=(r-1)*e,o=Math.floor(i),a=PE(aU(t,o).subarray(0,o+1)),s=Tm(t.subarray(o+1));return a+(s-a)*(i-o)}}var cU,lU=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)}}(),hU=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},fU=function(t){function e(e){return t.call(this,e)||this}return lU(e,t),e.prototype.getBoxQuartiles=function(t){return{q_25:uU(t,.25),q_50:uU(t,.5),q_75:uU(t,.75)}},e.prototype.getBoxplotData=function(){for(var t=this.getOptions(),e=t.data.groupMapsTo,n=this.getGroupedData(),r=[],i=function(t,n){for(var i,a=o.services.cartesianScales.getRangeIdentifier(),s=n.map((function(t){return t[a]})).sort(Cv),u=(i={},i[e]=t,i.counts=s,i.quartiles=o.getBoxQuartiles(s),i.outliers=null,i.whiskers=null,i),c=u.quartiles.q_25,l=u.quartiles.q_75,h=1.5*(l-c),f=c-h,p=l+h,d=[],v=[],g=0,m=s;g<m.length;g++){var y=m[g];y<f?d.push(y):y>p?d.push(y):v.push(y)}u.outliers=d;var _=Tm(v),b=PE(v);u.whiskers={min:_||Tm([u.quartiles.q_25,u.quartiles.q_50,u.quartiles.q_75]),max:b||PE([u.quartiles.q_25,u.quartiles.q_50,u.quartiles.q_75])},r.push(u)},o=this,a=0,s=n;a<s.length;a++){var u=s[a],c=u.name,l=u.data;i(c,l)}return r},e.prototype.getTabularDataArray=function(){var t=this.getOptions(),e=t.data.groupMapsTo,n=this.getBoxplotData(),r=hU([["Group","Minimum","Q1","Median","Q3","Maximum","IQR","Outlier(s)"]],n.map((function(t){var n=_d.getProperty(t,"outliers");return null!==n&&0!==n.length||(n=["&ndash;"]),[t[e],null!==_d.getProperty(t,"whiskers","min")?_d.getProperty(t,"whiskers","min").toLocaleString():"&ndash;",null!==_d.getProperty(t,"quartiles","q_25")?_d.getProperty(t,"quartiles","q_25").toLocaleString():"&ndash;",null!==_d.getProperty(t,"quartiles","q_50")?_d.getProperty(t,"quartiles","q_50").toLocaleString():"&ndash;",null!==_d.getProperty(t,"quartiles","q_75")?_d.getProperty(t,"quartiles","q_75").toLocaleString():"&ndash;",null!==_d.getProperty(t,"whiskers","max")?_d.getProperty(t,"whiskers","max").toLocaleString():"&ndash;",null!==_d.getProperty(t,"quartiles","q_75")&&null!==_d.getProperty(t,"quartiles","q_25")?(_d.getProperty(t,"quartiles","q_75")-_d.getProperty(t,"quartiles","q_25")).toLocaleString():"&ndash;",n.map((function(t){return t.toLocaleString()})).join(",")]})));return r},e.prototype.setColorClassNames=function(){var t=1,e=_d.getProperty(this.getOptions(),"color","pairing"),n=_d.getProperty(e,"option"),r=_t.pairingOptions;n=n<=r[t+"-color"]?n:1;var i=this.allDataGroups.map((function(e,r){return t+"-"+n+"-1"}));this.colorClassNames=gv().range(i).domain(this.allDataGroups)},e}(qB),pU=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)}}(),dU=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model=new fU(r.services),r.model.setOptions(_d.mergeDefaultChartOptions(uv.boxplotChart,n.options)),r.init(e,n),r}return pU(e,t),e.prototype.getComponents=function(){var t=[new NI(this.model,this.services),new TB(this.model,this.services),new LA(this.model,this.services),new UB(this.model,this.services),new dP(this.model,this.services,{skeleton:$.VERT_OR_HORIZ})],e=this.getAxisChartComponents(t,{legend:{enabled:!1}});return e},e}(XB),vU=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)}}(),gU=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(_d.mergeDefaultChartOptions(uv.bubbleChart,n.options)),r.init(e,n),r}return vU(e,t),e.prototype.getComponents=function(){var t=[new NI(this.model,this.services),new TB(this.model,this.services),new PB(this.model,this.services),new IA(this.model,this.services),new dP(this.model,this.services,{skeleton:$.GRID})],e=this.getAxisChartComponents(t);return e},e}(XB),mU=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)}}(),yU=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},_U=function(t){function e(e){return t.call(this,e)||this}return mU(e,t),e.prototype.getMatchingRangeIndexForDatapoint=function(t){for(var e,n=t.ranges.length-1;n>0;n--){var r=t.ranges[n];if(t.value>=r)return e=n,e}return 0},e.prototype.getTabularDataArray=function(){var t=this,e=this.getDisplayData(),n=this.getOptions(),r=n.data.groupMapsTo,i=this.services.cartesianScales.getRangeIdentifier(),o=_d.getProperty(n,"bullet","performanceAreaTitles"),a=yU([["Title","Group","Value","Target","Percentage","Performance"]],e.map((function(e){return[e["title"],e[r],null===e["value"]?"&ndash;":e["value"],null===_d.getProperty(e,"marker")?"&ndash;":e["marker"],null===_d.getProperty(e,"marker")?"&ndash;":Math.floor(e[i]/e.marker*100)+"%",o[t.getMatchingRangeIndexForDatapoint(e)]]})));return a},e}(qB),bU=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)}}(),OU=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model=new _U(r.services),r.model.setOptions(_d.mergeDefaultChartOptions(uv.bulletChart,n.options)),r.init(e,n),r}return bU(e,t),e.prototype.getComponents=function(){var t=[new NI(this.model,this.services),new TB(this.model,this.services),new jA(this.model,this.services),new dP(this.model,this.services,{skeleton:$.GRID})],e=this.getAxisChartComponents(t);return e},e}(XB),wU=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)}}(),xU=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},EU=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return wU(e,t),e.prototype.getTabularDataArray=function(){var t=this.getOptions(),e=t.data.groupMapsTo,n=this.getBinnedStackedData(),r=xU([xU([Ml(t,"bins.rangeLabel")||"Range"],n.map((function(t){return Ml(t,"0."+e)})))],Ml(n,0).map((function(t,r){return xU([Ml(t,"data.x0")+" – "+Ml(t,"data.x1")],n.map((function(t){return Ml(t[r],"data."+Ml(t[r],e))})))})));return r},e}(qB),SU=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)}}(),TU=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model=new EU(r.services),r.model.setOptions(_d.mergeDefaultChartOptions(uv.histogramChart,n.options)),r.init(e,n),r.update(),r}return SU(e,t),e.prototype.getComponents=function(){var t=[new NI(this.model,this.services),new TB(this.model,this.services),new kB(this.model,this.services),new UA(this.model,this.services)],e=this.getAxisChartComponents(t);return e},e}(XB),MU=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)}}(),CU=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(_d.mergeDefaultChartOptions(uv.lineChart,n.options)),r.init(e,n),r}return MU(e,t),e.prototype.getComponents=function(){var t=[new NI(this.model,this.services),new TB(this.model,this.services),new PB(this.model,this.services),new GA(this.model,this.services),new kA(this.model,this.services,{handleThresholds:!0}),new gP(this.model,this.services),new UB(this.model,this.services)],e=this.getAxisChartComponents(t);return e},e}(XB),AU=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)}}(),PU=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(_d.mergeDefaultChartOptions(uv.lollipopChart,n.options)),r.init(e,n),r}return AU(e,t),e.prototype.getComponents=function(){var t=[new NI(this.model,this.services),new TB(this.model,this.services),new PB(this.model,this.services),new zA(this.model,this.services),new kA(this.model,this.services),new dP(this.model,this.services,{skeleton:$.GRID})],e=this.getAxisChartComponents(t);return e},e}(XB),LU=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)}}(),DU=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(_d.mergeDefaultChartOptions(uv.scatterChart,n.options)),r.init(e,n),r}return LU(e,t),e.prototype.getComponents=function(){var t=[new NI(this.model,this.services),new TB(this.model,this.services),new PB(this.model,this.services),new kA(this.model,this.services),new dP(this.model,this.services,{skeleton:$.GRID})],e=this.getAxisChartComponents(t);return e},e}(XB),kU=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)}}(),RU=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},IU=function(t){function e(e){return t.call(this,e)||this}return kU(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.getTabularDataArray=function(){var t=this.getDisplayData(),e=this.getOptions(),n=e.data.groupMapsTo,r=RU([["Group","Value"]],t.map((function(t){return[t[n],null===t["value"]?"&ndash;":t["value"].toLocaleString()]})));return r},e.prototype.sanitize=function(t){var e=this.getTabularData(t);return e.sort((function(t,e){return e.value-t.value}))},e}(Um),NU=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)}}(),jU=function(t){function e(e,n,r){void 0===r&&(r=!1);var i=t.call(this,e,n)||this;return i.model=new IU(i.services),r?i:(i.model.setOptions(_d.mergeDefaultChartOptions(uv.pieChart,n.options)),i.init(e,n),i)}return NU(e,t),e.prototype.getComponents=function(){var t=[new oP(this.model,this.services),new dP(this.model,this.services,{skeleton:$.PIE})],e=this.getChartComponents(t);return e},e}(zB),BU=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)}}(),UU=function(t){function e(e,n){var r=t.call(this,e,n,!0)||this;return r.model.setOptions(_d.mergeDefaultChartOptions(uv.donutChart,n.options)),r.init(e,n),r}return BU(e,t),e.prototype.getComponents=function(){var t=[new hP(this.model,this.services),new dP(this.model,this.services,{skeleton:$.DONUT})],e=this.getChartComponents(t);return e},e}(jU),VU=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)}}(),GU=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},HU=function(t){function e(e){return t.call(this,e)||this}return VU(e,t),e.prototype.getMaximumDomain=function(t){var e=t.reduce((function(t,e){return t+e.value}),0);return e},e.prototype.getFillColor=function(e){var n=this.getOptions(),r=_d.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=_d.getProperty(this.getDisplayData()),n=(e?e.reduce((function(t,e){return{value:t.value+e.value}})):0).value,r=_d.getProperty(t,"meter","proportional")?n:n>100?100:n,i=_d.getProperty(t,"meter","status","ranges");if(i){var o=i.filter((function(t){return t.range[0]<=r&&r<=t.range[1]}));if(o.length>0)return o[0].status}return null},e.prototype.getTabularDataArray=function(){var t,e=this.getDisplayData(),n=this.getOptions(),r=n.data.groupMapsTo,i=this.getStatus(),o=_d.getProperty(n,"meter","proportional"),a=[];if(null===o){t=100;var s=e[0];a=[GU(["Group","Value"],i?["Status"]:[]),GU([s[r],s["value"]],i?[i]:[])]}else{var u=_d.getProperty(o,"total");t=u||this.getMaximumDomain(e),a=GU([["Group","Value","Percentage of total"]],e.map((function(e){return[e[r],e["value"],(e["value"]/t*100).toFixed(2)+" %"]})))}return a},e}(Um),zU=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)}}(),FU=function(){return FU=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},FU.apply(this,arguments)},WU=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="meter",e.renderType=I.SVG,e}return zU(e,t),e.prototype.getStackedBounds=function(t,e){var n=0,r=t.map((function(t,r){return 0!==r?(n+=e(t.value),FU(FU({},t),{width:Math.abs(e(t.value)-Et.dividerWidth),x:n-e(t.value)})):(n=e(t.value),FU(FU({},t),{width:Math.abs(e(t.value)-Et.dividerWidth),x:0}))}));return r},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n,r=this,i=this.getComponentContainer(),o=this.getOptions(),s=_d.getProperty(o,"meter","proportional"),u=this.model.getDisplayData(),c=this.model.getStatus(),l=Y_.getSVGElementSize(i,{useAttrs:!0}).width,h=o.data.groupMapsTo;if(null===_d.getProperty(o,"meter","proportional"))n=100;else{var f=_d.getProperty(o,"meter","proportional","total");n=f||this.model.getMaximumDomain(this.model.getDisplayData())}var p=AE().domain([0,n]).range([0,l]),d=this.getStackedBounds(u,p),v=_d.getProperty(o,"meter","height");Y_.appendOrSelect(i,"rect.container").attr("x",0).attr("y",0).attr("width",l).attr("height",v||(s?Et.height.proportional:Et.height.default)),Y_.appendOrSelect(i,"line.rangeIndicator").attr("x1",l).attr("x2",l).attr("y1",0).attr("y2",v||(s?Et.height.proportional:Et.height.default));var g=i.selectAll("rect.value").data(d),m=null==c||r.model.isUserProvidedColorScaleValid()||s?"value":"value status--"+c;g.enter().append("rect").classed("value",!0).merge(g).attr("x",(function(t){return t.x})).attr("y",0).attr("height",(function(){var t=_d.getProperty(o,"meter","height");return t||(s?Et.height.proportional:Et.height.default)})).attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[j.FILL],dataGroupName:t[h],originalClassName:m})})).transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"meter-bar-update",animate:t})})).attr("width",(function(t,e){return t.value>n?p(n):t.width})).style("fill",(function(t){return r.model.getFillColor(t[h])})).attr("role",a.GRAPHICS_SYMBOL).attr("aria-roledescription","value").attr("aria-label",(function(t){return t.value})),g.exit().remove();var y=_d.getProperty(o,"meter","peak"),_=y;null!==y&&(y>n?_=n:y<u[0].value&&(_=u[0].value>n?n:u[0].value));var b=i.selectAll("line.peak").data(null==_?[]:[_]);b.enter().append("line").classed("peak",!0).merge(b).attr("y1",0).attr("y2",(function(){var t=_d.getProperty(o,"meter","height");return t||(s?Et.height.proportional:Et.height.default)})).transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"peak-line-update",animate:t})})).attr("x1",(function(t){return p(t)})).attr("x2",(function(t){return p(t)})).attr("role",a.GRAPHICS_SYMBOL).attr("aria-roledescription","peak").attr("aria-label",(function(t){return t})),b.exit().remove(),this.services.domUtils.setSVGMaxHeight(),this.addEventListeners()},e.prototype.addEventListeners=function(){var t=this.getOptions(),e=t.data.groupMapsTo,n=this,r=_d.getProperty(t,"meter","proportional");this.parent.selectAll("rect.value").on("mouseover",(function(t,i){var o=G_(this);n.services.events.dispatchEvent(ft.Meter.METER_MOUSEOVER,{event:t,element:o,datum:i}),r&&(o.classed("hovered",!0),n.services.events.dispatchEvent(ft.Tooltip.SHOW,{event:t,hoveredElement:o,items:[{label:i[e],value:i.value}]}))})).on("mousemove",(function(t,e){var i=G_(this);n.services.events.dispatchEvent(ft.Meter.METER_MOUSEMOVE,{event:t,element:i,datum:e}),r&&n.services.events.dispatchEvent(ft.Tooltip.MOVE,{event:t})})).on("click",(function(t,e){n.services.events.dispatchEvent(ft.Meter.METER_CLICK,{event:t,element:G_(this),datum:e})})).on("mouseout",(function(t,e){var i=G_(this);n.services.events.dispatchEvent(ft.Meter.METER_MOUSEOUT,{event:t,element:i,datum:e}),r&&(i.classed("hovered",!1),n.services.events.dispatchEvent(ft.Tooltip.HIDE,{hoveredElement:i}))}))},e.prototype.destroy=function(){this.parent.selectAll("rect.value").on("mouseover",null).on("mousemove",null).on("mouseout",null).on("click",null)},e}(wT),qU=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)}}(),YU=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},ZU=function(t){function e(e,n){var r=t.call(this,e,n)||this;r.model=new HU(r.services);var i=n.options.meter.proportional?_d.merge(_d.clone(uv.proportionalMeterChart),n.options):_d.merge(_d.clone(uv.meterChart),n.options);return r.model.setOptions(i),r.init(e,n),r}return qU(e,t),e.prototype.getComponents=function(){var t=_d.getProperty(this.model.getOptions(),"meter","showLabels"),e=YU(t?[{id:"meter-title",components:[new ZC(this.model,this.services)],growth:Z.STRETCH,renderType:I.SVG},{id:"spacer",components:[new MI(this.model,this.services,{size:8})],growth:Z.STRETCH}]:[],[{id:"meter-graph",components:[new WU(this.model,this.services)],growth:Z.STRETCH,renderType:I.SVG}]),n=[new AI(this.model,this.services,e,{direction:Y.COLUMN})],r=this.getChartComponents(n,{graphFrameRenderType:I.HTML});return r},e}(zB),XU=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)}}(),KU=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},$U=function(t){function e(e){return t.call(this,e)||this}return XU(e,t),e.prototype.getTabularDataArray=function(){var t=this.getOptions(),e=this.getGroupedData(),n=_d.getProperty(t,"radar","axes"),r=n.angle,i=n.value,o=_d.getProperty(e,"0","data").map((function(t){return t[r]})),a=KU([KU(["Group"],o)],e.map((function(t){return KU([t["name"]],o.map((function(e,n){return null!==_d.getProperty(t,"data",n,i)?_d.getProperty(t,"data",n,i).toLocaleString():"&ndash;"})))})));return a},e}(qB),QU=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)}}(),JU=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model=new $U(r.services),r.model.setOptions(_d.mergeDefaultChartOptions(uv.radarChart,n.options)),r.init(e,n),r}return QU(e,t),e.prototype.getComponents=function(){var t=[new hR(this.model,this.services)],e=this.getChartComponents(t);return e},e}(zB),tV=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)}}(),eV=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},nV=function(t){function e(e){return t.call(this,e)||this}return tV(e,t),e.prototype.getDataGroups=function(){return t.prototype.getDataGroups.call(this).filter((function(t){return"delta"!==t.name}))},e.prototype.getTabularDataArray=function(){var t=this.getDisplayData(),e=this.getOptions(),n=e.data.groupMapsTo,r=eV([["Group","Value"]],t.map((function(t){return[t[n],null===t["value"]?"&ndash;":t["value"].toLocaleString()]})));return r},e}(Um),rV=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)}}(),iV=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model=new nV(r.services),r.model.setOptions(_d.mergeDefaultChartOptions(uv.gaugeChart,n.options)),r.init(e,n),r}return rV(e,t),e.prototype.getComponents=function(){var t=[new cP(this.model,this.services)],e=this.getChartComponents(t);return e},e}(zB),oV=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)}}(),aV=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},sV=(cU={},cU[it.LINE]=[GA,kA],cU[it.SCATTER]=[kA],cU[it.AREA]=[_A,GA,kA],cU[it.STACKED_AREA]=[OA,GA,WA,IB],cU[it.SIMPLE_BAR]=[SA],cU[it.GROUPED_BAR]=[MA,UB],cU[it.STACKED_BAR]=[AA,IB],cU),uV=function(t){function e(e,n){var r=t.call(this,e,n)||this,i=_d.mergeDefaultChartOptions(uv.comboChart,n.options);return n.options.comboChartTypes||(console.error("No comboChartTypes defined for the Combo Chart!"),i.comboChartTypes=[{type:it.LINE,correspondingDatasets:[]}]),r.model.setOptions(i),r.init(e,n),r}return oV(e,t),e.prototype.getGraphComponents=function(){var t=this,e=this.model.getOptions().comboChartTypes,n=0,r=e.map((function(e){var r,i,o=e.type;return"string"===typeof e.type?Object.keys(sV).includes(e.type)?(r=_d.merge({},uv[_d.camelCase(e.type)+"Chart"],t.model.getOptions(),e.options),e.type===it.STACKED_AREA&&(i=!0),sV[e.type].map((function(o,a){return new o(t.model,t.services,{groups:e.correspondingDatasets,id:n++,options:r,stacked:i})}))):(console.error('Invalid chart type "'+e.type+'" specified for combo chart. Please refer to the ComboChart tutorial for more guidance.'),null):(r=_d.merge({},t.model.getOptions(),e.options),new o(t.model,t.services,{groups:e.correspondingDatasets,id:n++,options:r}))})).filter((function(t){return null!==t}));return _d.flatten(r)},e.prototype.getComponents=function(){var t=this.model.getOptions().comboChartTypes,e=t.some((function(t){return t.type===it.STACKED_BAR||t.type===it.STACKED_AREA})),n=aV([new NI(this.model,this.services),new TB(this.model,this.services),new dP(this.model,this.services,{skeleton:$.GRID})],e?[]:[new PB(this.model,this.services)],this.getGraphComponents()),r=this.getAxisChartComponents(n);return r},e}(XB),cV=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)}}(),lV=function(t){function e(e){return t.call(this,e)||this}return cV(e,t),e.prototype.getTabularDataArray=function(){var t=this,e=this.getDisplayData(),n=[["Child","Parent"]];return e.forEach((function(e){t.getChildrenDatums(e,n),n.push([e.name,"&ndash;"])})),n},e.prototype.getChildrenDatums=function(t,e){var n=this;void 0===e&&(e=[]),t.children&&t.children.length>0&&t.children.forEach((function(r){n.getChildrenDatums(r,e),e.push([r.name,t.name])}))},e}(Um),hV=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)}}(),fV=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model=new lV(r.services),r.model.setOptions(_d.mergeDefaultChartOptions(uv.treeChart,n.options)),r.init(e,n),r}return hV(e,t),e.prototype.getComponents=function(){var t=[new cL(this.model,this.services)],e=this.getChartComponents(t,{excludeLegend:!0});return e},e}(zB),pV=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)}}(),dV=function(t){function e(e){return t.call(this,e)||this}return pV(e,t),e.prototype.getTabularDataArray=function(){var t=this.getDisplayData(),e=[["Child","Group","Value"]];return t.forEach((function(t){Array.isArray(t.children)?t.children.forEach((function(n){e.push([n.name,t.name,n.value])})):null!==_d.getProperty(t.name)&&_d.getProperty(t.value)&&e.push(["–",t.name,t.value])})),e},e}(Um),vV=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)}}(),gV=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model=new dV(r.services),r.model.setOptions(_d.mergeDefaultChartOptions(uv.treemapChart,n.options)),r.init(e,n),r}return vV(e,t),e.prototype.getComponents=function(){var t=[new Qk(this.model,this.services)],e=this.getChartComponents(t);return e},e}(zB),mV=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)}}(),yV=function(){return yV=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},yV.apply(this,arguments)},_V=function(t){function e(e){var n=t.call(this,e)||this;return n.parentNode=!1,n.set({depth:2},{skipUpdate:!0}),n}return mV(e,t),e.prototype.setData=function(e){t.prototype.setData.call(this,e),this.setDataGroups(),1===e.length&&(this.parentNode=!0),this.setZoom()},e.prototype.setOptions=function(t){var e=this.getOptions(),n=_d.merge({},t,this.getZoomOptions(t));_d.updateLegendAdditionalItems(e,n);var r=this.getHierarchyLevel(),i=_d.getProperty(e,"circlePack","hierarchyLevel");this.set({options:_d.merge(e,n),depth:i&&i<4?i:r})},e.prototype.getZoomOptions=function(t){if(!this.getDisplayData())return{};var e=this.getDisplayData(),n=t||this.getOptions(),r=1===e.length&&_d.getProperty(e,0,"children")?_d.getProperty(e,0,"children"):e,i=this.getHierarchyLevel();return r.some((function(t){if(t.children&&t.children.some((function(t){return t.children})))return i=3,!1})),!0===_d.getProperty(n,"canvasZoom","enabled")&&i>2?{legend:{additionalItems:[{type:st.ZOOM,name:"Click to zoom"}]}}:null},e.prototype.setZoom=function(t){this.setOptions(this.getZoomOptions(t))},e.prototype.updateHierarchyLevel=function(t){this.set({depth:t})},e.prototype.getHierarchyLevel=function(){return this.get("depth")},e.prototype.hasParentNode=function(){return this.parentNode},e.prototype.setDataGroups=function(){var t=this,e=this.getData(),n=this.getOptions(),r=n.data.groupMapsTo,i=e.map((function(e){var n=e[r];return t.setChildrenDataGroup(e,n)}));this.set({data:i},{skipUpdate:!0})},e.prototype.setChildrenDataGroup=function(t,e){var n=this;return t.children?yV(yV({},t),{dataGroupName:e,children:t.children.map((function(t,r){return n.setChildrenDataGroup(t,e)}))}):yV(yV({},t),{dataGroupName:e})},e.prototype.getTabularDataArray=function(){var t=this,e=this.getDisplayData(),n=[["Child","Parent","Value"]];return e.forEach((function(e){var r=e.value?e.value:0;e.children&&(r+=t.getChildrenDatums(e.children,e.name,n,0)),n.push(["&ndash;",e.name,r])})),n},e.prototype.getChildrenDatums=function(t,e,n,r){var i=this;void 0===n&&(n=[]),void 0===r&&(r=0);var o=e;return t.forEach((function(t){var e=t.name,a=0;if(t.children)t.children.length>0&&("number"===typeof t.value&&(r+=t.value),a+=i.getChildrenDatums(t.children,e,n,a),n.push([e,o,a]),r+=a);else{var s=0;"number"===typeof t.value&&(s=t.value,r+=t.value),n.push([t.name,o,s])}})),r},e}(Um),bV=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)}}(),OV=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model=new _V(r.services),r.model.setOptions(_d.mergeDefaultChartOptions(uv.circlePackChart,n.options)),r.init(e,n),r}return bV(e,t),e.prototype.getComponents=function(){var t=[new IR(this.model,this.services)],e=this.getChartComponents(t);return e},e}(zB),wV=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)}}(),xV=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},EV=function(t){function e(e){return t.call(this,e)||this}return wV(e,t),e.prototype.getTabularDataArray=function(){var t=this.getDisplayData(),e=this.getOptions(),n=e.wordCloud,r=n.fontSizeMapsTo,i=n.wordMapsTo,o=e.data.groupMapsTo,a=xV([[e.tooltip.wordLabel,"Group",e.tooltip.valueLabel]],t.map((function(t){return[t[i],t[o],t[r]]})));return a},e}(Um),SV=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)}}(),TV=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model=new EV(r.services),r.model.setOptions(_d.mergeDefaultChartOptions(uv.wordCloudChart,n.options)),r.init(e,n),r}return SV(e,t),e.prototype.getComponents=function(){var t=[new UR(this.model,this.services),new dP(this.model,this.services,{skeleton:$.PIE})],e=this.getChartComponents(t);return e},e}(zB),MV=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)}}(),CV=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},AV=function(t){function e(e){return t.call(this,e)||this}return MV(e,t),e.prototype.getTabularDataArray=function(){var t=this.getDisplayData();t.sort((function(t,e){return t["source"].localeCompare(e["source"])}));var e=CV([["Source","Target","Value"]],t.map((function(t){return[t["source"],t["target"],t["value"]]})));return e},e}(qB),PV=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)}}(),LV=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model=new AV(r.services),r.model.setOptions(_d.mergeDefaultChartOptions(uv.alluvialChart,n.options)),r.init(e,n),r}return PV(e,t),e.prototype.getComponents=function(){var t=[new xI(this.model,this.services)],e=this.getChartComponents(t,{excludeLegend:!0});return e},e}(zB);function DV(){var t,e=0,n=1,r=1,i=[.5],o=[0,1];function a(e){return null!=e&&e<=e?o[Iv(i,e,0,r)]:t}function s(){var t=-1;i=new Array(r);while(++t<r)i[t]=((t+1)*n-(t-r)*e)/(r+1);return a}return a.domain=function(t){return arguments.length?([e,n]=t,e=+e,n=+n,s()):[e,n]},a.range=function(t){return arguments.length?(r=(o=Array.from(t)).length-1,s()):o.slice()},a.invertExtent=function(t){var a=o.indexOf(t);return a<0?[NaN,NaN]:a<1?[e,i[0]]:a>=r?[i[r-1],n]:[i[a-1],i[a]]},a.unknown=function(e){return arguments.length?(t=e,a):a},a.thresholds=function(){return i.slice()},a.copy=function(){return DV().domain([e,n]).range(o).unknown(t)},dv.apply(CE(a),arguments)}var kV,RV,IV=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)}}(),NV=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},jV=function(t){function e(e){var n=t.call(this,e)||this;n.axisFlavor=lt.HOVERABLE,n._colorScale=void 0,n._domains=[],n._ranges=[],n._matrix={};var r=_d.getProperty(n.getOptions(),"axes");if(_d.getProperty(r,"left","scaleType")&&_d.getProperty(r,"left","scaleType")!==H.LABELS||_d.getProperty(r,"right","scaleType")&&_d.getProperty(r,"right","scaleType")!==H.LABELS||_d.getProperty(r,"top","scaleType")&&_d.getProperty(r,"top","scaleType")!==H.LABELS||_d.getProperty(r,"bottom","scaleType")&&_d.getProperty(r,"bottom","scaleType")!==H.LABELS)throw Error("Heatmap only supports label scaletypes.");return n}return IV(e,t),e.prototype.getValueDomain=function(){var t=jv(this.getDisplayData(),(function(t){return t.value})),e=AE().domain(t).nice().domain();if(e[0]>0)e[0]=0;else if(0===e[0]&&0===e[1])return[0,1];return e[0]<0&&e[1]>0&&(Math.abs(e[0])>e[1]?e[1]=Math.abs(e[0]):e[0]=-e[1]),e},e.prototype.getFillColor=function(t){return this._colorScale(t)},e.prototype.getUniqueDomain=function(){if(_d.isEmpty(this._domains)){var t=this.getDisplayData(),e=this.services.cartesianScales,n=e.getDomainIdentifier(),r=e.getMainXAxisPosition(),i=e.getCustomDomainValuesByposition(r);if(i)return i;this._domains=Array.from(new Set(t.map((function(t){return t[n]}))))}return this._domains},e.prototype.getUniqueRanges=function(){if(_d.isEmpty(this._ranges)){var t=this.getDisplayData(),e=this.services.cartesianScales,n=e.getRangeIdentifier(),r=e.getMainYAxisPosition(),i=e.getCustomDomainValuesByposition(r);if(i)return i;this._ranges=Array.from(new Set(t.map((function(t){return t[n]}))))}return this._ranges},e.prototype.getMatrix=function(){var t=this;if(_d.isEmpty(this._matrix)){var e=this.getUniqueDomain(),n=this.getUniqueRanges(),r=this.services.cartesianScales.getDomainIdentifier(),i=this.services.cartesianScales.getRangeIdentifier(),o={};n.forEach((function(t){o[t]={value:null,index:-1}})),e.forEach((function(e){t._matrix[e]=_d.clone(o)})),this.getDisplayData().forEach((function(e,n){t._matrix[e[r]][e[i]]={value:e["value"],index:n}}))}return this._matrix},e.prototype.setData=function(t){var e=this.sanitize(_d.clone(t)),n=this.generateDataGroups(e);return this.set({data:e,dataGroups:n}),this._domains=[],this._ranges=[],this._matrix={},e},e.prototype.getMatrixAsArray=function(){var t=this;_d.isEmpty(this._matrix)&&this.getMatrix();var e=this.getUniqueDomain(),n=this.getUniqueRanges(),r=this.services.cartesianScales.getDomainIdentifier(),i=this.services.cartesianScales.getRangeIdentifier(),o=[];return e.forEach((function(e){n.forEach((function(n){var a={value:t._matrix[e][n].value,index:t._matrix[e][n].index};a[r]=e,a[i]=n,o.push(a)}))})),o},e.prototype.getTabularDataArray=function(){var t,e=this.getDisplayData(),n=this.assignRangeAndDomains(),r=n.primaryDomain,i=n.primaryRange,o=NV([[r.label,i.label,"Value"]],e.map((function(e){return[null===e[r.identifier]?"&ndash;":t?t(e[r.identifier]):e[r.identifier],null===e[i.identifier]?"&ndash;":e[i.identifier].toLocaleString(),e["value"]]})));return o},e.prototype.getColorClassName=function(t){return t.originalClassName+" "+this._colorScale(t.value)},e.prototype.setColorClassNames=function(){var t=this.getOptions(),e=_d.getProperty(t,"color","gradient","colors"),n=!_d.isEmpty(e),r=_d.getProperty(t,"color","pairing","option"),i=this.getValueDomain(),o=i[0]<0&&i[1]>0?"diverge":"mono";r<1&&r>4&&"mono"===o?r=1:r<1&&r>2&&"diverge"===o&&(r=1);var a=n?e:[];if(!n)for(var s="diverge"===o?17:11,u=1;u<s+1;u++)a.push("fill-"+o+"-"+r+"-"+u);this._colorScale=DV().domain(i).range(a)},e}(qB),BV=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)}}(),UV=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},VV=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model=new jV(r.services),r.model.setOptions(_d.mergeDefaultChartOptions(uv.heatmapChart,n.options)),r.init(e,n),r}return BV(e,t),e.prototype.getAxisChartComponents=function(t,e){var n=this.model.getOptions(),r=_d.getProperty(n,"toolbar","enabled");this.services.cartesianScales.determineAxisDuality(),this.services.cartesianScales.findDomainAndRangeAxes(),this.services.cartesianScales.determineOrientation();var i=!!this.model.getOptions().title,o={id:"title",components:[new qC(this.model,this.services)],growth:Z.STRETCH},a={id:"toolbar",components:[new jB(this.model,this.services)],growth:Z.PREFERRED},s={id:"header",components:[new AI(this.model,this.services,UV([o],r?[a]:[]),{direction:Y.ROW,alignItems:X.CENTER})],growth:Z.PREFERRED},u={id:"legend",components:[new zT(this.model,this.services)],growth:Z.PREFERRED,renderType:I.SVG},c={id:"graph-frame",components:t,growth:Z.STRETCH,renderType:I.SVG},l=!1!==_d.getProperty(e,"legend","enabled")&&!1!==this.model.getOptions().legend.enabled,h=Y.COLUMN_REVERSE,f={id:"spacer",components:[new MI(this.model,this.services,{size:15})],growth:Z.PREFERRED},p={id:"full-frame",components:[new AI(this.model,this.services,UV(l?[u]:[],l?[f]:[],[c]),{direction:h})],growth:Z.STRETCH},d=[];if(i||r){d.push(s);var v={id:"spacer",components:[new MI(this.model,this.services,r?{size:15}:void 0)],growth:Z.PREFERRED};d.push(v)}return d.push(p),[new JC(this.model,this.services),new BC(this.model,this.services),new AI(this.model,this.services,d,{direction:Y.COLUMN})]},e.prototype.getComponents=function(){var t=[new NI(this.model,this.services),new SI(this.model,this.services)],e=this.getAxisChartComponents(t);return e},e}(XB),GV={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}}},HV=GV;function zV(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 FV=zV(HV,kV,RV,!1,null,null,null),WV=FV.exports,qV={name:"CcvAreaChart",extends:WV,mounted:function(){this.coreChart=new $B(this.$el,{data:this.data,options:this.options})}},YV=qV,ZV=zV(YV,k,R,!1,null,null,null),XV=ZV.exports,KV=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-stacked-area-chart"})},$V=[],QV={name:"CcvStackedAreaChart",extends:WV,mounted:function(){this.coreChart=new JB(this.$el,{data:this.data,options:this.options})}},JV=QV,tG=zV(JV,KV,$V,!1,null,null,null),eG=tG.exports,nG=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-simple-bar-chart"})},rG=[],iG={name:"CcvSimpleBarChart",extends:WV,mounted:function(){this.coreChart=new eU(this.$el,{data:this.data,options:this.options})}},oG=iG,aG=zV(oG,nG,rG,!1,null,null,null),sG=aG.exports,uG=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-grouped-bar-chart"})},cG=[],lG={name:"CcvGroupedBarChart",extends:WV,mounted:function(){this.coreChart=new rU(this.$el,{data:this.data,options:this.options})}},hG=lG,fG=zV(hG,uG,cG,!1,null,null,null),pG=fG.exports,dG=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-stacked-bar-chart"})},vG=[],gG={name:"CcvStackedBarChart",extends:WV,mounted:function(){this.coreChart=new oU(this.$el,{data:this.data,options:this.options})}},mG=gG,yG=zV(mG,dG,vG,!1,null,null,null),_G=yG.exports,bG=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-boxplot-chart"})},OG=[],wG={name:"CcvBoxplotChart",extends:WV,mounted:function(){this.coreChart=new dU(this.$el,{data:this.data,options:this.options})}},xG=wG,EG=zV(xG,bG,OG,!1,null,null,null),SG=EG.exports,TG=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-bubble-chart"})},MG=[],CG={name:"CcvBubbleChart",extends:WV,mounted:function(){this.coreChart=new gU(this.$el,{data:this.data,options:this.options})}},AG=CG,PG=zV(AG,TG,MG,!1,null,null,null),LG=PG.exports,DG=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-bullet-chart"})},kG=[],RG={name:"CcvBulletChart",extends:WV,mounted:function(){this.coreChart=new OU(this.$el,{data:this.data,options:this.options})}},IG=RG,NG=zV(IG,DG,kG,!1,null,null,null),jG=NG.exports,BG=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-donut-chart"})},UG=[],VG={name:"CcvDonutChart",extends:WV,mounted:function(){this.coreChart=new UU(this.$el,{data:this.data,options:this.options})}},GG=VG,HG=zV(GG,BG,UG,!1,null,null,null),zG=HG.exports,FG=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-gauge-chart"})},WG=[],qG={name:"CcvGaugeChart",extends:WV,mounted:function(){this.coreChart=new iV(this.$el,{data:this.data,options:this.options})}},YG=qG,ZG=zV(YG,FG,WG,!1,null,null,null),XG=ZG.exports,KG=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-histogram-chart"})},$G=[],QG={name:"CcvHistogramChart",extends:WV,mounted:function(){this.coreChart=new TU(this.$el,{data:this.data,options:this.options})}},JG=QG,tH=zV(JG,KG,$G,!1,null,null,null),eH=tH.exports,nH=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-line-chart"})},rH=[],iH={name:"CcvLineChart",extends:WV,mounted:function(){this.coreChart=new CU(this.$el,{data:this.data,options:this.options})}},oH=iH,aH=zV(oH,nH,rH,!1,null,null,null),sH=aH.exports,uH=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-lollipop-chart"})},cH=[],lH={name:"CcvLollipopChart",extends:WV,mounted:function(){this.coreChart=new PU(this.$el,{data:this.data,options:this.options})}},hH=lH,fH=zV(hH,uH,cH,!1,null,null,null),pH=fH.exports,dH=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-pie-chart"})},vH=[],gH={name:"CcvPieChart",extends:WV,mounted:function(){this.coreChart=new jU(this.$el,{data:this.data,options:this.options})}},mH=gH,yH=zV(mH,dH,vH,!1,null,null,null),_H=yH.exports,bH=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-scatter-chart"})},OH=[],wH={name:"CcvScatterChart",extends:WV,mounted:function(){this.coreChart=new DU(this.$el,{data:this.data,options:this.options})}},xH=wH,EH=zV(xH,bH,OH,!1,null,null,null),SH=EH.exports,TH=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-meter-chart"})},MH=[],CH={name:"CcvMeterChart",extends:WV,mounted:function(){this.coreChart=new ZU(this.$el,{data:this.data,options:this.options})}},AH=CH,PH=zV(AH,TH,MH,!1,null,null,null),LH=PH.exports,DH=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-radar-chart"})},kH=[],RH={name:"CcvRadarChart",extends:WV,mounted:function(){this.coreChart=new JU(this.$el,{data:this.data,options:this.options})}},IH=RH,NH=zV(IH,DH,kH,!1,null,null,null),jH=NH.exports,BH=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-combo-chart"})},UH=[],VH={name:"CcvComboChart",extends:WV,mounted:function(){this.coreChart=new uV(this.$el,{data:this.data,options:this.options})}},GH=VH,HH=zV(GH,BH,UH,!1,null,null,null),zH=HH.exports,FH=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-tree-chart"})},WH=[],qH={name:"CcvTreeChart",extends:WV,mounted:function(){this.coreChart=new fV(this.$el,{data:this.data,options:this.options})}},YH=qH,ZH=zV(YH,FH,WH,!1,null,null,null),XH=ZH.exports,KH=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-treemap-chart"})},$H=[],QH={name:"CcvTreemapChart",extends:WV,mounted:function(){this.coreChart=new gV(this.$el,{data:this.data,options:this.options})}},JH=QH,tz=zV(JH,KH,$H,!1,null,null,null),ez=tz.exports,nz=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-circle-pack-chart"})},rz=[],iz={name:"CcvCirclePackChart",extends:WV,mounted:function(){this.coreChart=new OV(this.$el,{data:this.data,options:this.options})}},oz=iz,az=zV(oz,nz,rz,!1,null,null,null),sz=az.exports,uz=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-wordcloud-chart"})},cz=[],lz={name:"CcvWordCloudChart",extends:WV,mounted:function(){this.coreChart=new TV(this.$el,{data:this.data,options:this.options})}},hz=lz,fz=zV(hz,uz,cz,!1,null,null,null),pz=fz.exports,dz=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-alluvial-chart"})},vz=[],gz={name:"CcvAlluvialChart",extends:WV,mounted:function(){this.coreChart=new LV(this.$el,{data:this.data,options:this.options})}},mz=gz,yz=zV(mz,dz,vz,!1,null,null,null),_z=yz.exports,bz=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-heatmap-chart"})},Oz=[],wz={name:"CcvHeatmapChart",extends:WV,mounted:function(){this.coreChart=new VV(this.$el,{data:this.data,options:this.options})}},xz=wz,Ez=zV(xz,bz,Oz,!1,null,null,null),Sz=Ez.exports,Tz=[XV,eG,sG,pG,_G,SG,LG,jG,zG,XG,eH,sH,pH,_H,SH,LH,jH,zH,XH,ez,sz,pz,_z,Sz],Mz={install:function(t,e){if("undefined"===typeof e){var n=!0,r=!1,i=void 0;try{for(var o,a=Tz[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=Tz[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 XV})),n.d(e,"CcvStackedAreaChart",(function(){return eG})),n.d(e,"CcvSimpleBarChart",(function(){return sG})),n.d(e,"CcvGroupedBarChart",(function(){return pG})),n.d(e,"CcvStackedBarChart",(function(){return _G})),n.d(e,"CcvBoxplotChart",(function(){return SG})),n.d(e,"CcvBubbleChart",(function(){return LG})),n.d(e,"CcvBulletChart",(function(){return jG})),n.d(e,"CcvDonutChart",(function(){return zG})),n.d(e,"CcvGaugeChart",(function(){return XG})),n.d(e,"CcvHistogramChart",(function(){return eH})),n.d(e,"CcvLineChart",(function(){return sH})),n.d(e,"CcvLollipopChart",(function(){return pH})),n.d(e,"CcvPieChart",(function(){return _H})),n.d(e,"CcvScatterChart",(function(){return SH})),n.d(e,"CcvMeterChart",(function(){return LH})),n.d(e,"CcvRadarChart",(function(){return jH})),n.d(e,"CcvComboChart",(function(){return zH})),n.d(e,"CcvTreeChart",(function(){return XH})),n.d(e,"CcvTreemapChart",(function(){return ez})),n.d(e,"CcvCirclePackChart",(function(){return sz})),n.d(e,"CcvWordCloudChart",(function(){return pz})),n.d(e,"CcvAlluvialChart",(function(){return _z})),n.d(e,"CcvHeatmapChart",(function(){return Sz}));e["default"]=Mz},"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},"2a60":function(t,e,n){var r=n("8320").dispatch,i=Math.PI/180,o=64,a=2048;function s(t){return t.text}function u(){return"serif"}function c(){return"normal"}function l(t){return Math.sqrt(t.value)}function h(){return 30*(~~(6*Math.random())-3)}function f(){return 1}function p(t,e,n,r){if(!e.sprite){var s=t.context,u=t.ratio;s.clearRect(0,0,(o<<5)/u,a/u);var c=0,l=0,h=0,f=n.length;--r;while(++r<f){e=n[r],s.save(),s.font=e.style+" "+e.weight+" "+~~((e.size+1)/u)+"px "+e.font;var p=s.measureText(e.text+"m").width*u,d=e.size<<1;if(e.rotate){var v=Math.sin(e.rotate*i),g=Math.cos(e.rotate*i),m=p*g,y=p*v,_=d*g,b=d*v;p=Math.max(Math.abs(m+b),Math.abs(m-b))+31>>5<<5,d=~~Math.max(Math.abs(y+_),Math.abs(y-_))}else p=p+31>>5<<5;if(d>h&&(h=d),c+p>=o<<5&&(c=0,l+=h,h=0),l+d>=a)break;s.translate((c+(p>>1))/u,(l+(d>>1))/u),e.rotate&&s.rotate(e.rotate*i),s.fillText(e.text,0,0),e.padding&&(s.lineWidth=2*e.padding,s.strokeText(e.text,0,0)),s.restore(),e.width=p,e.height=d,e.xoff=c,e.yoff=l,e.x1=p>>1,e.y1=d>>1,e.x0=-e.x1,e.y0=-e.y1,e.hasText=!0,c+=p}var O=s.getImageData(0,0,(o<<5)/u,a/u).data,w=[];while(--r>=0)if(e=n[r],e.hasText){p=e.width;for(var x=p>>5,E=(d=e.y1-e.y0,0);E<d*x;E++)w[E]=0;if(c=e.xoff,null==c)return;l=e.yoff;for(var S=0,T=-1,M=0;M<d;M++){for(E=0;E<p;E++){var C=x*M+(E>>5),A=O[(l+M)*(o<<5)+(c+E)<<2]?1<<31-E%32:0;w[C]|=A,S|=A}S?T=M:(e.y0++,d--,M--,l++)}e.y1=e.y0+T,e.sprite=w.slice(0,(e.y1-e.y0)*x)}}}function d(t,e,n){n>>=5;for(var r,i=t.sprite,o=t.width>>5,a=t.x-(o<<4),s=127&a,u=32-s,c=t.y1-t.y0,l=(t.y+t.y0)*n+(a>>5),h=0;h<c;h++){r=0;for(var f=0;f<=o;f++)if((r<<u|(f<o?(r=i[h*o+f])>>>s:0))&e[l+f])return!0;l+=n}return!1}function v(t,e){var n=t[0],r=t[1];e.x+e.x0<n.x&&(n.x=e.x+e.x0),e.y+e.y0<n.y&&(n.y=e.y+e.y0),e.x+e.x1>r.x&&(r.x=e.x+e.x1),e.y+e.y1>r.y&&(r.y=e.y+e.y1)}function g(t,e){return t.x+t.x1>e[0].x&&t.x+t.x0<e[1].x&&t.y+t.y1>e[0].y&&t.y+t.y0<e[1].y}function m(t){var e=t[0]/t[1];return function(t){return[e*(t*=.1)*Math.cos(t),t*Math.sin(t)]}}function y(t){var e=4,n=e*t[0]/t[1],r=0,i=0;return function(t){var o=t<0?-1:1;switch(Math.sqrt(1+4*o*t)-o&3){case 0:r+=n;break;case 1:i+=e;break;case 2:r-=n;break;default:i-=e;break}return[r,i]}}function _(t){var e=[],n=-1;while(++n<t)e[n]=0;return e}function b(){return document.createElement("canvas")}function O(t){return"function"===typeof t?t:function(){return t}}t.exports=function(){var t=[256,256],e=s,n=u,i=l,y=c,x=c,E=h,S=f,T=m,M=[],C=1/0,A=r("word","end"),P=null,L=Math.random,D={},k=b;function R(t){t.width=t.height=1;var e=Math.sqrt(t.getContext("2d").getImageData(0,0,1,1).data.length>>2);t.width=(o<<5)/e,t.height=a/e;var n=t.getContext("2d");return n.fillStyle=n.strokeStyle="red",n.textAlign="center",{context:n,ratio:e}}function I(e,n,r){t[0],t[1];var i,o,a,s=n.x,u=n.y,c=Math.sqrt(t[0]*t[0]+t[1]*t[1]),l=T(t),h=L()<.5?1:-1,f=-h;while(i=l(f+=h)){if(o=~~i[0],a=~~i[1],Math.min(Math.abs(o),Math.abs(a))>=c)break;if(n.x=s+o,n.y=u+a,!(n.x+n.x0<0||n.y+n.y0<0||n.x+n.x1>t[0]||n.y+n.y1>t[1])&&(!r||!d(n,e,t[0]))&&(!r||g(n,r))){for(var p,v=n.sprite,m=n.width>>5,y=t[0]>>5,_=n.x-(m<<4),b=127&_,O=32-b,w=n.y1-n.y0,x=(n.y+n.y0)*y+(_>>5),E=0;E<w;E++){p=0;for(var S=0;S<=m;S++)e[x+S]|=p<<O|(S<m?(p=v[E*m+S])>>>b:0);x+=y}return delete n.sprite,!0}}return!1}return D.canvas=function(t){return arguments.length?(k=O(t),D):k},D.start=function(){var r=R(k()),o=_((t[0]>>5)*t[1]),a=null,s=M.length,u=-1,c=[],l=M.map((function(t,r){return t.text=e.call(this,t,r),t.font=n.call(this,t,r),t.style=y.call(this,t,r),t.weight=x.call(this,t,r),t.rotate=E.call(this,t,r),t.size=~~i.call(this,t,r),t.padding=S.call(this,t,r),t})).sort((function(t,e){return e.size-t.size}));return P&&clearInterval(P),P=setInterval(h,0),h(),D;function h(){var e=Date.now();while(Date.now()-e<C&&++u<s&&P){var n=l[u];n.x=t[0]*(L()+.5)>>1,n.y=t[1]*(L()+.5)>>1,p(r,n,l,u),n.hasText&&I(o,n,a)&&(c.push(n),A.call("word",D,n),a?v(a,n):a=[{x:n.x+n.x0,y:n.y+n.y0},{x:n.x+n.x1,y:n.y+n.y1}],n.x-=t[0]>>1,n.y-=t[1]>>1)}u>=s&&(D.stop(),A.call("end",D,c,a))}},D.stop=function(){return P&&(clearInterval(P),P=null),D},D.timeInterval=function(t){return arguments.length?(C=null==t?1/0:t,D):C},D.words=function(t){return arguments.length?(M=t,D):M},D.size=function(e){return arguments.length?(t=[+e[0],+e[1]],D):t},D.font=function(t){return arguments.length?(n=O(t),D):n},D.fontStyle=function(t){return arguments.length?(y=O(t),D):y},D.fontWeight=function(t){return arguments.length?(x=O(t),D):x},D.rotate=function(t){return arguments.length?(E=O(t),D):E},D.text=function(t){return arguments.length?(e=O(t),D):e},D.spiral=function(t){return arguments.length?(T=w[t]||t,D):T},D.fontSize=function(t){return arguments.length?(i=O(t),D):i},D.padding=function(t){return arguments.length?(S=O(t),D):S},D.random=function(t){return arguments.length?(L=t,D):L},D.on=function(){var t=A.on.apply(A,arguments);return t===A?D:t},D};var w={archimedean:m,rectangular:y}},"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=E(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 E(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)),!O(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 E(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 O(t){return t===p(t).document.documentElement}function w(t){return r?b(t)?y(t):_(t):d}function x(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 E(t,e,n,r){return{x:t,y:e,width:n,height:r}}var S=function(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=E(0,0,0,0),this.target=t};S.prototype.isActive=function(){var t=w(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},S.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t};var T=function(t,e){var n=x(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 S(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 C="undefined"!==typeof WeakMap?new WeakMap:new n,A=function(t){if(!(this instanceof A))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);C.set(this,n)};["observe","unobserve","disconnect"].forEach((function(t){A.prototype[t]=function(){return(e=C.get(this))[t].apply(e,arguments);var e}}));var P=function(){return"undefined"!==typeof i.ResizeObserver?i.ResizeObserver:A}();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,O,w){i(n,e,l);var x,E,S,T=function(t){if(t===p&&L)return L;if(!v&&t in A)return A[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",C=!1,A=t.prototype,P=A[g]||A["@@iterator"]||p&&A[p],L=!v&&P||T(p),D="Array"==e&&A.entries||P;if(D&&(x=o(D.call(new t)),d!==Object.prototype&&x.next&&(h||o(x)===d||(a?a(x,d):"function"!=typeof x[g]&&u(x,g,b)),s(x,M,!0,!0),h&&(f[M]=b))),p==y&&P&&P.name!==y&&(C=!0,L=function(){return P.call(this)}),h&&!w||A[g]===L||u(A,g,L),f[e]=L,p)if(E={values:T(y),keys:O?L:T(m),entries:T(_)},w)for(S in E)!v&&!C&&S in A||c(A,S,E[S]);else r({target:e,proto:!0,forced:v||C},E);return E}},"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)}},8320:function(t,e,n){"use strict";n.r(e);var r={value:function(){}};function i(){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 o(r)}function o(t){this._=t}function a(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 s(t,e){for(var n,r=0,i=t.length;r<i;++r)if((n=t[r]).name===e)return n.value}function u(t,e,n){for(var i=0,o=t.length;i<o;++i)if(t[i].name===e){t[i]=r,t=t.slice(0,i).concat(t.slice(i+1));break}return null!=n&&t.push({name:e,value:n}),t}o.prototype=i.prototype={constructor:o,on:function(t,e){var n,r=this._,i=a(t+"",r),o=-1,c=i.length;if(!(arguments.length<2)){if(null!=e&&"function"!==typeof e)throw new Error("invalid callback: "+e);while(++o<c)if(n=(t=i[o]).type)r[n]=u(r[n],t.name,e);else if(null==e)for(n in r)r[n]=u(r[n],t.name,null);return this}while(++o<c)if((n=(t=i[o]).type)&&(n=s(r[n],t.name)))return n},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new o(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 c=i;n.d(e,"dispatch",(function(){return c}))},"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)}},"9b04":function(t,e,n){"use strict";var r=function(){};t.exports=r},"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"]},b1b0:function(t,e,n){(function(e){"use strict";var n=_(),r=b(),i=O(),o=w(),a={imagePlaceholder:void 0,cacheBust:!1},s={toSvg:u,toPng:l,toJpeg:h,toBlob:f,toPixelData:c,impl:{fontFaces:i,images:o,util:n,inliner:r,options:{}}};function u(t,e){return e=e||{},p(e),Promise.resolve(t).then((function(t){return v(t,e.filter,!0)})).then(g).then(m).then(r).then((function(r){return y(r,e.width||n.width(t),e.height||n.height(t))}));function r(t){return e.bgcolor&&(t.style.backgroundColor=e.bgcolor),e.width&&(t.style.width=e.width+"px"),e.height&&(t.style.height=e.height+"px"),e.style&&Object.keys(e.style).forEach((function(n){t.style[n]=e.style[n]})),t}}function c(t,e){return d(t,e||{}).then((function(e){return e.getContext("2d").getImageData(0,0,n.width(t),n.height(t)).data}))}function l(t,e){return d(t,e||{}).then((function(t){return t.toDataURL()}))}function h(t,e){return e=e||{},d(t,e).then((function(t){return t.toDataURL("image/jpeg",e.quality||1)}))}function f(t,e){return d(t,e||{}).then(n.canvasToBlob)}function p(t){"undefined"===typeof t.imagePlaceholder?s.impl.options.imagePlaceholder=a.imagePlaceholder:s.impl.options.imagePlaceholder=t.imagePlaceholder,"undefined"===typeof t.cacheBust?s.impl.options.cacheBust=a.cacheBust:s.impl.options.cacheBust=t.cacheBust}function d(t,e){return u(t,e).then(n.makeImage).then(n.delay(100)).then((function(e){var n=r(t);return n.getContext("2d").drawImage(e,0,0),n}));function r(t){var r=document.createElement("canvas");if(r.width=e.width||n.width(t),r.height=e.height||n.height(t),e.bgcolor){var i=r.getContext("2d");i.fillStyle=e.bgcolor,i.fillRect(0,0,r.width,r.height)}return r}}function v(t,e,r){return r||!e||e(t)?Promise.resolve(t).then(i).then((function(n){return o(t,n,e)})).then((function(e){return a(t,e)})):Promise.resolve();function i(t){return t instanceof HTMLCanvasElement?n.makeImage(t.toDataURL()):t.cloneNode(!1)}function o(t,e,r){var i=t.childNodes;return 0===i.length?Promise.resolve(e):o(e,n.asArray(i),r).then((function(){return e}));function o(t,e,n){var r=Promise.resolve();return e.forEach((function(e){r=r.then((function(){return v(e,n)})).then((function(e){e&&t.appendChild(e)}))})),r}}function a(t,e){return e instanceof Element?Promise.resolve().then(r).then(i).then(o).then(a).then((function(){return e})):e;function r(){function r(t,e){function r(t,e){n.asArray(t).forEach((function(n){e.setProperty(n,t.getPropertyValue(n),t.getPropertyPriority(n))}))}t.cssText?e.cssText=t.cssText:r(t,e)}r(window.getComputedStyle(t),e.style)}function i(){function r(r){var i=window.getComputedStyle(t,r),o=i.getPropertyValue("content");if(""!==o&&"none"!==o){var a=n.uid();e.className=e.className+" "+a;var s=document.createElement("style");s.appendChild(u(a,r,i)),e.appendChild(s)}function u(t,e,r){var i="."+t+":"+e,o=r.cssText?a(r):s(r);return document.createTextNode(i+"{"+o+"}");function a(t){var e=t.getPropertyValue("content");return t.cssText+" content: "+e+";"}function s(t){return n.asArray(t).map(e).join("; ")+";";function e(e){return e+": "+t.getPropertyValue(e)+(t.getPropertyPriority(e)?" !important":"")}}}}[":before",":after"].forEach((function(t){r(t)}))}function o(){t instanceof HTMLTextAreaElement&&(e.innerHTML=t.value),t instanceof HTMLInputElement&&e.setAttribute("value",t.value)}function a(){e instanceof SVGElement&&(e.setAttribute("xmlns","http://www.w3.org/2000/svg"),e instanceof SVGRectElement&&["width","height"].forEach((function(t){var n=e.getAttribute(t);n&&e.style.setProperty(t,n)})))}}}function g(t){return i.resolveAll().then((function(e){var n=document.createElement("style");return t.appendChild(n),n.appendChild(document.createTextNode(e)),t}))}function m(t){return o.inlineAll(t).then((function(){return t}))}function y(t,e,r){return Promise.resolve(t).then((function(t){return t.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),(new XMLSerializer).serializeToString(t)})).then(n.escapeXhtml).then((function(t){return'<foreignObject x="0" y="0" width="100%" height="100%">'+t+"</foreignObject>"})).then((function(t){return'<svg xmlns="http://www.w3.org/2000/svg" width="'+e+'" height="'+r+'">'+t+"</svg>"})).then((function(t){return"data:image/svg+xml;charset=utf-8,"+t}))}function _(){return{escape:f,parseExtension:e,mimeType:n,dataAsUrl:h,isDataUrl:r,canvasToBlob:o,resolveUrl:a,getAndEncode:l,uid:u(),delay:p,asArray:d,escapeXhtml:v,makeImage:c,width:g,height:m};function t(){var t="application/font-woff",e="image/jpeg";return{woff:t,woff2:t,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:e,jpeg:e,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml"}}function e(t){var e=/\.([^\.\/]*?)$/g.exec(t);return e?e[1]:""}function n(n){var r=e(n).toLowerCase();return t()[r]||""}function r(t){return-1!==t.search(/^(data:)/)}function i(t){return new Promise((function(e){for(var n=window.atob(t.toDataURL().split(",")[1]),r=n.length,i=new Uint8Array(r),o=0;o<r;o++)i[o]=n.charCodeAt(o);e(new Blob([i],{type:"image/png"}))}))}function o(t){return t.toBlob?new Promise((function(e){t.toBlob(e)})):i(t)}function a(t,e){var n=document.implementation.createHTMLDocument(),r=n.createElement("base");n.head.appendChild(r);var i=n.createElement("a");return n.body.appendChild(i),r.href=e,i.href=t,i.href}function u(){var t=0;return function(){return"u"+e()+t++;function e(){return("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4)}}}function c(t){return new Promise((function(e,n){var r=new Image;r.onload=function(){e(r)},r.onerror=n,r.src=t}))}function l(t){var e=3e4;return s.impl.options.cacheBust&&(t+=(/\?/.test(t)?"&":"?")+(new Date).getTime()),new Promise((function(n){var r,i=new XMLHttpRequest;if(i.onreadystatechange=a,i.ontimeout=u,i.responseType="blob",i.timeout=e,i.open("GET",t,!0),i.send(),s.impl.options.imagePlaceholder){var o=s.impl.options.imagePlaceholder.split(/,/);o&&o[1]&&(r=o[1])}function a(){if(4===i.readyState)if(200===i.status){var e=new FileReader;e.onloadend=function(){var t=e.result.split(/,/)[1];n(t)},e.readAsDataURL(i.response)}else r?n(r):c("cannot fetch resource: "+t+", status: "+i.status)}function u(){r?n(r):c("timeout of "+e+"ms occured while fetching resource: "+t)}function c(t){console.error(t),n("")}}))}function h(t,e){return"data:"+e+";base64,"+t}function f(t){return t.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1")}function p(t){return function(e){return new Promise((function(n){setTimeout((function(){n(e)}),t)}))}}function d(t){for(var e=[],n=t.length,r=0;r<n;r++)e.push(t[r]);return e}function v(t){return t.replace(/#/g,"%23").replace(/\n/g,"%0A")}function g(t){var e=y(t,"border-left-width"),n=y(t,"border-right-width");return t.scrollWidth+e+n}function m(t){var e=y(t,"border-top-width"),n=y(t,"border-bottom-width");return t.scrollHeight+e+n}function y(t,e){var n=window.getComputedStyle(t).getPropertyValue(e);return parseFloat(n.replace("px",""))}}function b(){var t=/url\(['"]?([^'"]+?)['"]?\)/g;return{inlineAll:o,shouldProcess:e,impl:{readUrls:r,inline:i}};function e(e){return-1!==e.search(t)}function r(e){var r,i=[];while(null!==(r=t.exec(e)))i.push(r[1]);return i.filter((function(t){return!n.isDataUrl(t)}))}function i(t,e,r,i){return Promise.resolve(e).then((function(t){return r?n.resolveUrl(t,r):t})).then(i||n.getAndEncode).then((function(t){return n.dataAsUrl(t,n.mimeType(e))})).then((function(n){return t.replace(o(e),"$1"+n+"$3")}));function o(t){return new RegExp("(url\\(['\"]?)("+n.escape(t)+")(['\"]?\\))","g")}}function o(t,n,o){return a()?Promise.resolve(t):Promise.resolve(t).then(r).then((function(e){var r=Promise.resolve(t);return e.forEach((function(t){r=r.then((function(e){return i(e,t,n,o)}))})),r}));function a(){return!e(t)}}}function O(){return{resolveAll:t,impl:{readAll:e}};function t(){return e(document).then((function(t){return Promise.all(t.map((function(t){return t.resolve()})))})).then((function(t){return t.join("\n")}))}function e(){return Promise.resolve(n.asArray(document.styleSheets)).then(e).then(t).then((function(t){return t.map(i)}));function t(t){return t.filter((function(t){return t.type===CSSRule.FONT_FACE_RULE})).filter((function(t){return r.shouldProcess(t.style.getPropertyValue("src"))}))}function e(t){var e=[];return t.forEach((function(t){try{n.asArray(t.cssRules||[]).forEach(e.push.bind(e))}catch(r){console.log("Error while reading CSS rules from "+t.href,r.toString())}})),e}function i(t){return{resolve:function(){var e=(t.parentStyleSheet||{}).href;return r.inlineAll(t.cssText,e)},src:function(){return t.style.getPropertyValue("src")}}}}}function w(){return{inlineAll:e,impl:{newImage:t}};function t(t){return{inline:e};function e(e){return n.isDataUrl(t.src)?Promise.resolve():Promise.resolve(t.src).then(e||n.getAndEncode).then((function(e){return n.dataAsUrl(e,n.mimeType(t.src))})).then((function(e){return new Promise((function(n,r){t.onload=n,t.onerror=r,t.src=e}))}))}}function e(i){return i instanceof Element?o(i).then((function(){return i instanceof HTMLImageElement?t(i).inline():Promise.all(n.asArray(i.childNodes).map((function(t){return e(t)})))})):Promise.resolve(i);function o(t){var e=t.style.getPropertyValue("background");return e?r.inlineAll(e).then((function(e){t.style.setProperty("background",e,t.style.getPropertyPriority("background"))})).then((function(){return t})):Promise.resolve(t)}}}t.exports=s})()},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(_),O=r(d,v,3),w=a(b.length),x=0,E=g||s,S=e?E(p,w):n?E(p,0):void 0;w>x;x++)if((f||x in b)&&(m=b[x],y=O(m,x,_),t))if(e)S[x]=y;else if(y)switch(t){case 3:return!0;case 5:return m;case 6:return x;case 2:u.call(S,m)}else if(l)return!1;return h?-1:c||l?l:S}};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"),O=n("65d0"),w=n("ee58"),x=n("2402"),E=n("185a"),S=n("abdf"),T=n("e129"),M=n("5b12"),C=n("b8ba"),A=n("4cdd"),P=n("332c"),L=n("d687"),D=n("1d8a"),k=n("7d53"),R=n("4e41"),I=n("6a89"),N=n("fa46"),j=n("cdcd"),B=n("d054").forEach,U=P("hidden"),V="Symbol",G="prototype",H=k("toPrimitive"),z=j.set,F=j.getterFor(V),W=Object[G],q=i.Symbol,Y=o("JSON","stringify"),Z=E.f,X=S.f,K=w.f,$=T.f,Q=A("symbols"),J=A("op-symbols"),tt=A("string-to-symbol-registry"),et=A("symbol-to-string-registry"),nt=A("wks"),rt=i.QObject,it=!rt||!rt[G]||!rt[G].findChild,ot=s&&l((function(){return 7!=_(X({},"a",{get:function(){return X(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=Z(W,e);r&&delete W[e],X(t,e,n),r&&t!==W&&X(W,e,r)}:X,at=function(t,e){var n=Q[t]=_(q[G]);return z(n,{type:V,tag:t,description:e}),s||(n.description=e),n},st=c?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof q},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,U)&&t[U][r]&&(t[U][r]=!1),n=_(n,{enumerable:y(0,!1)})):(h(t,U)||X(t,U,y(1,{})),t[U][r]=!0),ot(t,r,n)):X(t,r,n)},ct=function(t,e){d(t);var n=g(e),r=b(n).concat(dt(n));return B(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=$.call(this,e);return!(this===W&&h(Q,e)&&!h(J,e))&&(!(n||!h(this,e)||!h(Q,e)||h(this,U)&&this[U][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=Z(n,r);return!i||!h(Q,r)||h(n,U)&&n[U][r]||(i.enumerable=!0),i}},pt=function(t){var e=K(g(t)),n=[];return B(e,(function(t){h(Q,t)||h(L,t)||n.push(t)})),n},dt=function(t){var e=t===W,n=K(e?J:g(t)),r=[];return B(n,(function(t){!h(Q,t)||e&&!h(W,t)||r.push(Q[t])})),r};if(u||(q=function(){if(this instanceof q)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,U)&&h(this[U],e)&&(this[U][e]=!1),ot(this,e,y(1,t))};return s&&it&&ot(W,e,{configurable:!0,set:n}),at(e,t)},C(q[G],"toString",(function(){return F(this).tag})),C(q,"withoutSetter",(function(t){return at(D(t),t)})),T.f=ht,S.f=ut,E.f=ft,O.f=w.f=pt,x.f=dt,R.f=function(t){return at(k(t),t)},s&&(X(q[G],"description",{configurable:!0,get:function(){return F(this).description}}),a||C(W,"propertyIsEnumerable",ht,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!u,sham:!u},{Symbol:q}),B(b(nt),(function(t){I(t)})),r({target:V,stat:!0,forced:!u},{for:function(t){var e=String(t);if(h(tt,e))return tt[e];var n=q(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(){x.f(1)}))},{getOwnPropertySymbols:function(t){return x.f(v(t))}}),Y){var vt=!u||l((function(){var t=q();return"[null]"!=Y([t])||"{}"!=Y({a:t})||"{}"!=Y(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,Y.apply(null,i)}})}q[G][H]||M(q[G],H,q[G].valueOf),N(q,V),L[U]=!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