@carbon/charts-vue 0.52.1 → 0.53.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +32 -0
- package/charts-vue.common.js +75 -16
- package/charts-vue.common.js.map +1 -1
- package/charts-vue.umd.js +75 -16
- package/charts-vue.umd.js.map +1 -1
- package/charts-vue.umd.min.js +1 -1
- package/charts-vue.umd.min.js.map +1 -1
- package/package.json +2 -2
package/charts-vue.umd.min.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e():"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["charts-vue"]=e():t["charts-vue"]=e()})("undefined"!==typeof self?self:this,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="1c25")}({"01ff":function(t,e,n){"use strict";(function(t){var r=n("92ae"),i="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=i&&"object"==typeof t&&t&&!t.nodeType&&t,a=o&&o.exports===i,s=a&&r["a"].process,u=function(){try{var t=o&&o.require&&o.require("util").types;return t||s&&s.binding&&s.binding("util")}catch(e){}}();e["a"]=u}).call(this,n("7326")(t))},"083f":function(t,e,n){var r=n("7526");t.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},"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 T})),n.d(r,"Tooltip",(function(){return S})),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}));var i,o={};(n.r(o),n.d(o,"grid",(function(){return wd})),n.d(o,"ruler",(function(){return xd})),n.d(o,"baseTooltip",(function(){return Ed})),n.d(o,"timeScale",(function(){return Sd})),n.d(o,"options",(function(){return ev})),n.d(o,"area",(function(){return lt})),n.d(o,"axis",(function(){return ht})),n.d(o,"canvasZoomSettings",(function(){return ft})),n.d(o,"circlePack",(function(){return pt})),n.d(o,"color",(function(){return dt})),n.d(o,"boxplot",(function(){return vt})),n.d(o,"histogram",(function(){return gt})),n.d(o,"legend",(function(){return mt})),n.d(o,"lines",(function(){return yt})),n.d(o,"meter",(function(){return _t})),n.d(o,"pie",(function(){return bt})),n.d(o,"radar",(function(){return Ot})),n.d(o,"alluvial",(function(){return wt})),n.d(o,"spacers",(function(){return xt})),n.d(o,"tooltips",(function(){return Et})),n.d(o,"transitions",(function(){return Tt})),n.d(o,"toolbar",(function(){return St})),n.d(o,"zoomBar",(function(){return Mt})),n.d(o,"defaultLegendAdditionalItems",(function(){return Ct})),"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,T,S,M,C,A,P,L,k=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-area-chart"})},D=[];(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"}(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"}(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"}(T||(T={})),function(t){t["SHOW"]="show-tooltip",t["MOVE"]="move-tooltip",t["HIDE"]="hide-tooltip"}(S||(S={})),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={}));var R,I,N,j,B,U,V,G,H,z,F,W,q,Z,Y,X,K,$,Q,J,tt,et,nt,rt,it,ot,at,st,ut=r;function ct(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}(function(t){t["HTML"]="html",t["SVG"]="svg"})(R||(R={})),function(t){t["DEFAULT"]="default",t["G100"]="g100",t["G90"]="g90",t["G10"]="g10"}(I||(I={})),function(t){t["BACKGROUND"]="background",t["FILL"]="fill",t["STROKE"]="stroke",t["TOOLTIP"]="tooltip"}(N||(N={})),function(t){t["LEFT"]="left",t["RIGHT"]="right",t["TOP"]="top",t["BOTTOM"]="bottom"}(j||(j={})),function(t){t["GRAPH_VIEW"]="graph_view",t["SLIDER_VIEW"]="slider_view"}(B||(B={})),function(t){t["END_LINE"]="end_line",t["MID_LINE"]="mid_line",t["FRONT_LINE"]="front_line",t["NONE"]="none"}(U||(U={})),function(t){t["VERTICAL"]="vertical",t["HORIZONTAL"]="horizontal"}(V||(V={})),function(t){t["TIME"]="time",t["LINEAR"]="linear",t["LOG"]="log",t["LABELS"]="labels",t["LABELS_RATIO"]="labels-ratio"}(G||(G={})),function(t){t["RIGHT"]="right",t["LEFT"]="left",t["TOP"]="top",t["BOTTOM"]="bottom"}(H||(H={})),function(t){t["LEFT"]="left",t["CENTER"]="center",t["RIGHT"]="right"}(z||(z={})),function(t){t["HORIZONTAL"]="horizontal",t["VERTICAL"]="vertical"}(F||(F={})),function(t){t["TREE"]="tree",t["DENDROGRAM"]="dendrogram"}(W||(W={})),function(t){t["ROW"]="row",t["COLUMN"]="column",t["ROW_REVERSE"]="row-reverse",t["COLUMN_REVERSE"]="column-reverse"}(q||(q={})),function(t){t["FIXED"]="fixed",t["PREFERRED"]="preferred",t["STRETCH"]="stretch"}(Z||(Z={})),function(t){t["CENTER"]="center"}(Y||(Y={})),function(t){t["LEFT"]="left",t["RIGHT"]="right"}(X||(X={})),function(t){t["GRID"]="grid",t["VERT_OR_HORIZ"]="vertOrHoriz",t["PIE"]="pie",t["DONUT"]="donut"}(K||(K={})),function(t){t["START"]="start",t["MIDDLE"]="middle",t["END"]="end"}($||($={})),function(t){t["BASELINE"]="baseline",t["MIDDLE"]="middle",t["HANGING"]="hanging"}(Q||(Q={})),function(t){t["SEMI"]="semi",t["FULL"]="full"}(J||(J={})),function(t){t["UP"]="up",t["DOWN"]="down"}(tt||(tt={})),function(t){t["SUCCESS"]="success",t["WARNING"]="warning",t["DANGER"]="danger"}(et||(et={})),function(t){t["ALWAYS"]="always",t["AUTO"]="auto",t["NEVER"]="never"}(nt||(nt={})),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"}(rt||(rt={})),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"}(it||(it={})),function(t){t["LEFT"]="left",t["RIGHT"]="right"}(ot||(ot={})),function(t){t["CHECKBOX"]="checkbox",t["RADIUS"]="radius",t["AREA"]="area",t["SIZE"]="size",t["LINE"]="line",t["QUARTILE"]="quartile",t["ZOOM"]="zoom"}(at||(at={}));var lt={opacity:{unselected:.05,selected:.4}},ht={ticks:{number:7,rotateIfSmallerThan:30,verticalSpaceRatio:2.5,horizontalSpaceRatio:3.5},ratio:{reference:"value",compareTo:"marker"},paddingRatio:.1},ft={duration:1e3,ease:ct,zoomLevel:3},pt={circles:{fillOpacity:.3,hover:{stroke:"#FFF"}},padding:{mainGroup:4,children:2},hierarchyLevel:2},dt={pairingOptions:{"1-color":4,"2-color":5,"3-color":5,"4-color":3,"5-color":2,"14-color":1}},vt={circle:{radius:4,opacity:{hovered:1,default:.3}},box:{opacity:{hovered:.5,default:.3}},strokeWidth:{default:1,thicker:2}},gt={defaultBins:10},mt={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"}},yt={opacity:{unselected:.3,selected:1},weight:{selected:2,unselected:1}},_t={statusBar:{paddingRight:5},status:{indicatorSize:16,paddingLeft:15},total:{paddingLeft:36},height:{default:8,proportional:16},dividerWidth:2},bt={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}},Ot={opacity:{unselected:.1,selected:.3},xLabelPadding:10,yLabelPadding:8,yTicksNumber:4,minRange:10,xAxisRectHeight:50,dotsRadius:5},wt={nodeWidth:4,nodeHoveredWidth:8,minNodePadding:24,opacity:{unfocus:.3,default:.8,selected:1}},xt={default:{size:24}},Et={horizontalOffset:10},Tt={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}},St={buttonSize:32,iconSize:20,height:32,spacerHeight:10,iconPadding:6},Mt={height:(st={},st[B.GRAPH_VIEW]=32,st[B.SLIDER_VIEW]=10,st),spacerHeight:8,handleWidth:5,handleBarWidth:1,handleBarHeight:12},Ct=[{type:at.RADIUS,name:"Radius"},{type:at.AREA,name:"Poor area"},{type:at.AREA,name:"Satisfactory area"},{type:at.AREA,name:"Great area"},{type:at.QUARTILE,name:"Quartiles"}];function At(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}var Pt=At,Lt=n("7f0d"),kt=function(){return Lt["a"].Date.now()},Dt=kt,Rt=/\s/;function It(t){var e=t.length;while(e--&&Rt.test(t.charAt(e)));return e}var Nt=It,jt=/^\s+/;function Bt(t){return t?t.slice(0,Nt(t)+1).replace(jt,""):t}var Ut=Bt,Vt=Lt["a"].Symbol,Gt=Vt,Ht=Object.prototype,zt=Ht.hasOwnProperty,Ft=Ht.toString,Wt=Gt?Gt.toStringTag:void 0;function qt(t){var e=zt.call(t,Wt),n=t[Wt];try{t[Wt]=void 0;var r=!0}catch(o){}var i=Ft.call(t);return r&&(e?t[Wt]=n:delete t[Wt]),i}var Zt=qt,Yt=Object.prototype,Xt=Yt.toString;function Kt(t){return Xt.call(t)}var $t=Kt,Qt="[object Null]",Jt="[object Undefined]",te=Gt?Gt.toStringTag:void 0;function ee(t){return null==t?void 0===t?Jt:Qt:te&&te in Object(t)?Zt(t):$t(t)}var ne=ee;function re(t){return null!=t&&"object"==typeof t}var ie=re,oe="[object Symbol]";function ae(t){return"symbol"==typeof t||ie(t)&&ne(t)==oe}var se=ae,ue=NaN,ce=/^[-+]0x[0-9a-f]+$/i,le=/^0b[01]+$/i,he=/^0o[0-7]+$/i,fe=parseInt;function pe(t){if("number"==typeof t)return t;if(se(t))return ue;if(Pt(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Pt(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Ut(t);var n=le.test(t);return n||he.test(t)?fe(t.slice(2),n?2:8):ce.test(t)?ue:+t}var de=pe,ve="Expected a function",ge=Math.max,me=Math.min;function ye(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(ve);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?me(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=Dt();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(Dt())}function O(){var t=Dt(),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=de(e)||0,Pt(n)&&(l=!!n.leading,h="maxWait"in n,o=h?ge(de(n.maxWait)||0,e):o,f="trailing"in n?!!n.trailing:f),O.cancel=_,O.flush=b,O}var _e=ye;function be(){this.__data__=[],this.size=0}var Oe=be;function we(t,e){return t===e||t!==t&&e!==e}var xe=we;function Ee(t,e){var n=t.length;while(n--)if(xe(t[n][0],e))return n;return-1}var Te=Ee,Se=Array.prototype,Me=Se.splice;function Ce(t){var e=this.__data__,n=Te(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():Me.call(e,n,1),--this.size,!0}var Ae=Ce;function Pe(t){var e=this.__data__,n=Te(e,t);return n<0?void 0:e[n][1]}var Le=Pe;function ke(t){return Te(this.__data__,t)>-1}var De=ke;function Re(t,e){var n=this.__data__,r=Te(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}var Ie=Re;function Ne(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])}}Ne.prototype.clear=Oe,Ne.prototype["delete"]=Ae,Ne.prototype.get=Le,Ne.prototype.has=De,Ne.prototype.set=Ie;var je=Ne;function Be(){this.__data__=new je,this.size=0}var Ue=Be;function Ve(t){var e=this.__data__,n=e["delete"](t);return this.size=e.size,n}var Ge=Ve;function He(t){return this.__data__.get(t)}var ze=He;function Fe(t){return this.__data__.has(t)}var We=Fe,qe="[object AsyncFunction]",Ze="[object Function]",Ye="[object GeneratorFunction]",Xe="[object Proxy]";function Ke(t){if(!Pt(t))return!1;var e=ne(t);return e==Ze||e==Ye||e==qe||e==Xe}var $e=Ke,Qe=Lt["a"]["__core-js_shared__"],Je=Qe,tn=function(){var t=/[^.]+$/.exec(Je&&Je.keys&&Je.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function en(t){return!!tn&&tn in t}var nn=en,rn=Function.prototype,on=rn.toString;function an(t){if(null!=t){try{return on.call(t)}catch(e){}try{return t+""}catch(e){}}return""}var sn=an,un=/[\\^$.*+?()[\]{}|]/g,cn=/^\[object .+?Constructor\]$/,ln=Function.prototype,hn=Object.prototype,fn=ln.toString,pn=hn.hasOwnProperty,dn=RegExp("^"+fn.call(pn).replace(un,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function vn(t){if(!Pt(t)||nn(t))return!1;var e=$e(t)?dn:cn;return e.test(sn(t))}var gn=vn;function mn(t,e){return null==t?void 0:t[e]}var yn=mn;function _n(t,e){var n=yn(t,e);return gn(n)?n:void 0}var bn=_n,On=bn(Lt["a"],"Map"),wn=On,xn=bn(Object,"create"),En=xn;function Tn(){this.__data__=En?En(null):{},this.size=0}var Sn=Tn;function Mn(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var Cn=Mn,An="__lodash_hash_undefined__",Pn=Object.prototype,Ln=Pn.hasOwnProperty;function kn(t){var e=this.__data__;if(En){var n=e[t];return n===An?void 0:n}return Ln.call(e,t)?e[t]:void 0}var Dn=kn,Rn=Object.prototype,In=Rn.hasOwnProperty;function Nn(t){var e=this.__data__;return En?void 0!==e[t]:In.call(e,t)}var jn=Nn,Bn="__lodash_hash_undefined__";function Un(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=En&&void 0===e?Bn:e,this}var Vn=Un;function Gn(t){var e=-1,n=null==t?0:t.length;this.clear();while(++e<n){var r=t[e];this.set(r[0],r[1])}}Gn.prototype.clear=Sn,Gn.prototype["delete"]=Cn,Gn.prototype.get=Dn,Gn.prototype.has=jn,Gn.prototype.set=Vn;var Hn=Gn;function zn(){this.size=0,this.__data__={hash:new Hn,map:new(wn||je),string:new Hn}}var Fn=zn;function Wn(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}var qn=Wn;function Zn(t,e){var n=t.__data__;return qn(e)?n["string"==typeof e?"string":"hash"]:n.map}var Yn=Zn;function Xn(t){var e=Yn(this,t)["delete"](t);return this.size-=e?1:0,e}var Kn=Xn;function $n(t){return Yn(this,t).get(t)}var Qn=$n;function Jn(t){return Yn(this,t).has(t)}var tr=Jn;function er(t,e){var n=Yn(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}var nr=er;function rr(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])}}rr.prototype.clear=Fn,rr.prototype["delete"]=Kn,rr.prototype.get=Qn,rr.prototype.has=tr,rr.prototype.set=nr;var ir=rr,or=200;function ar(t,e){var n=this.__data__;if(n instanceof je){var r=n.__data__;if(!wn||r.length<or-1)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new ir(r)}return n.set(t,e),this.size=n.size,this}var sr=ar;function ur(t){var e=this.__data__=new je(t);this.size=e.size}ur.prototype.clear=Ue,ur.prototype["delete"]=Ge,ur.prototype.get=ze,ur.prototype.has=We,ur.prototype.set=sr;var cr=ur;function lr(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 hr=lr,fr=function(){try{var t=bn(Object,"defineProperty");return t({},"",{}),t}catch(e){}}(),pr=fr;function dr(t,e,n){"__proto__"==e&&pr?pr(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}var vr=dr,gr=Object.prototype,mr=gr.hasOwnProperty;function yr(t,e,n){var r=t[e];mr.call(t,e)&&xe(r,n)&&(void 0!==n||e in t)||vr(t,e,n)}var _r=yr;function br(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?vr(n,s,u):_r(n,s,u)}return n}var Or=br;function wr(t,e){var n=-1,r=Array(t);while(++n<t)r[n]=e(n);return r}var xr=wr,Er="[object Arguments]";function Tr(t){return ie(t)&&ne(t)==Er}var Sr=Tr,Mr=Object.prototype,Cr=Mr.hasOwnProperty,Ar=Mr.propertyIsEnumerable,Pr=Sr(function(){return arguments}())?Sr:function(t){return ie(t)&&Cr.call(t,"callee")&&!Ar.call(t,"callee")},Lr=Pr,kr=Array.isArray,Dr=kr,Rr=n("4cf0"),Ir=9007199254740991,Nr=/^(?:0|[1-9]\d*)$/;function jr(t,e){var n=typeof t;return e=null==e?Ir:e,!!e&&("number"==n||"symbol"!=n&&Nr.test(t))&&t>-1&&t%1==0&&t<e}var Br=jr,Ur=9007199254740991;function Vr(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=Ur}var Gr=Vr,Hr="[object Arguments]",zr="[object Array]",Fr="[object Boolean]",Wr="[object Date]",qr="[object Error]",Zr="[object Function]",Yr="[object Map]",Xr="[object Number]",Kr="[object Object]",$r="[object RegExp]",Qr="[object Set]",Jr="[object String]",ti="[object WeakMap]",ei="[object ArrayBuffer]",ni="[object DataView]",ri="[object Float32Array]",ii="[object Float64Array]",oi="[object Int8Array]",ai="[object Int16Array]",si="[object Int32Array]",ui="[object Uint8Array]",ci="[object Uint8ClampedArray]",li="[object Uint16Array]",hi="[object Uint32Array]",fi={};function pi(t){return ie(t)&&Gr(t.length)&&!!fi[ne(t)]}fi[ri]=fi[ii]=fi[oi]=fi[ai]=fi[si]=fi[ui]=fi[ci]=fi[li]=fi[hi]=!0,fi[Hr]=fi[zr]=fi[ei]=fi[Fr]=fi[ni]=fi[Wr]=fi[qr]=fi[Zr]=fi[Yr]=fi[Xr]=fi[Kr]=fi[$r]=fi[Qr]=fi[Jr]=fi[ti]=!1;var di=pi;function vi(t){return function(e){return t(e)}}var gi=vi,mi=n("01ff"),yi=mi["a"]&&mi["a"].isTypedArray,_i=yi?gi(yi):di,bi=_i,Oi=Object.prototype,wi=Oi.hasOwnProperty;function xi(t,e){var n=Dr(t),r=!n&&Lr(t),i=!n&&!r&&Object(Rr["a"])(t),o=!n&&!r&&!i&&bi(t),a=n||r||i||o,s=a?xr(t.length,String):[],u=s.length;for(var c in t)!e&&!wi.call(t,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Br(c,u))||s.push(c);return s}var Ei=xi,Ti=Object.prototype;function Si(t){var e=t&&t.constructor,n="function"==typeof e&&e.prototype||Ti;return t===n}var Mi=Si;function Ci(t,e){return function(n){return t(e(n))}}var Ai=Ci,Pi=Ai(Object.keys,Object),Li=Pi,ki=Object.prototype,Di=ki.hasOwnProperty;function Ri(t){if(!Mi(t))return Li(t);var e=[];for(var n in Object(t))Di.call(t,n)&&"constructor"!=n&&e.push(n);return e}var Ii=Ri;function Ni(t){return null!=t&&Gr(t.length)&&!$e(t)}var ji=Ni;function Bi(t){return ji(t)?Ei(t):Ii(t)}var Ui=Bi;function Vi(t,e){return t&&Or(e,Ui(e),t)}var Gi=Vi;function Hi(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}var zi=Hi,Fi=Object.prototype,Wi=Fi.hasOwnProperty;function qi(t){if(!Pt(t))return zi(t);var e=Mi(t),n=[];for(var r in t)("constructor"!=r||!e&&Wi.call(t,r))&&n.push(r);return n}var Zi=qi;function Yi(t){return ji(t)?Ei(t,!0):Zi(t)}var Xi=Yi;function Ki(t,e){return t&&Or(e,Xi(e),t)}var $i=Ki,Qi=n("d6f0");function Ji(t,e){var n=-1,r=t.length;e||(e=Array(r));while(++n<r)e[n]=t[n];return e}var to=Ji;function eo(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 no=eo;function ro(){return[]}var io=ro,oo=Object.prototype,ao=oo.propertyIsEnumerable,so=Object.getOwnPropertySymbols,uo=so?function(t){return null==t?[]:(t=Object(t),no(so(t),(function(e){return ao.call(t,e)})))}:io,co=uo;function lo(t,e){return Or(t,co(t),e)}var ho=lo;function fo(t,e){var n=-1,r=e.length,i=t.length;while(++n<r)t[i+n]=e[n];return t}var po=fo,vo=Ai(Object.getPrototypeOf,Object),go=vo,mo=Object.getOwnPropertySymbols,yo=mo?function(t){var e=[];while(t)po(e,co(t)),t=go(t);return e}:io,_o=yo;function bo(t,e){return Or(t,_o(t),e)}var Oo=bo;function wo(t,e,n){var r=e(t);return Dr(t)?r:po(r,n(t))}var xo=wo;function Eo(t){return xo(t,Ui,co)}var To=Eo;function So(t){return xo(t,Xi,_o)}var Mo=So,Co=bn(Lt["a"],"DataView"),Ao=Co,Po=bn(Lt["a"],"Promise"),Lo=Po,ko=bn(Lt["a"],"Set"),Do=ko,Ro=bn(Lt["a"],"WeakMap"),Io=Ro,No="[object Map]",jo="[object Object]",Bo="[object Promise]",Uo="[object Set]",Vo="[object WeakMap]",Go="[object DataView]",Ho=sn(Ao),zo=sn(wn),Fo=sn(Lo),Wo=sn(Do),qo=sn(Io),Zo=ne;(Ao&&Zo(new Ao(new ArrayBuffer(1)))!=Go||wn&&Zo(new wn)!=No||Lo&&Zo(Lo.resolve())!=Bo||Do&&Zo(new Do)!=Uo||Io&&Zo(new Io)!=Vo)&&(Zo=function(t){var e=ne(t),n=e==jo?t.constructor:void 0,r=n?sn(n):"";if(r)switch(r){case Ho:return Go;case zo:return No;case Fo:return Bo;case Wo:return Uo;case qo:return Vo}return e});var Yo=Zo,Xo=Object.prototype,Ko=Xo.hasOwnProperty;function $o(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&Ko.call(t,"index")&&(n.index=t.index,n.input=t.input),n}var Qo=$o,Jo=Lt["a"].Uint8Array,ta=Jo;function ea(t){var e=new t.constructor(t.byteLength);return new ta(e).set(new ta(t)),e}var na=ea;function ra(t,e){var n=e?na(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}var ia=ra,oa=/\w*$/;function aa(t){var e=new t.constructor(t.source,oa.exec(t));return e.lastIndex=t.lastIndex,e}var sa=aa,ua=Gt?Gt.prototype:void 0,ca=ua?ua.valueOf:void 0;function la(t){return ca?Object(ca.call(t)):{}}var ha=la;function fa(t,e){var n=e?na(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}var pa=fa,da="[object Boolean]",va="[object Date]",ga="[object Map]",ma="[object Number]",ya="[object RegExp]",_a="[object Set]",ba="[object String]",Oa="[object Symbol]",wa="[object ArrayBuffer]",xa="[object DataView]",Ea="[object Float32Array]",Ta="[object Float64Array]",Sa="[object Int8Array]",Ma="[object Int16Array]",Ca="[object Int32Array]",Aa="[object Uint8Array]",Pa="[object Uint8ClampedArray]",La="[object Uint16Array]",ka="[object Uint32Array]";function Da(t,e,n){var r=t.constructor;switch(e){case wa:return na(t);case da:case va:return new r(+t);case xa:return ia(t,n);case Ea:case Ta:case Sa:case Ma:case Ca:case Aa:case Pa:case La:case ka:return pa(t,n);case ga:return new r;case ma:case ba:return new r(t);case ya:return sa(t);case _a:return new r;case Oa:return ha(t)}}var Ra=Da,Ia=Object.create,Na=function(){function t(){}return function(e){if(!Pt(e))return{};if(Ia)return Ia(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}(),ja=Na;function Ba(t){return"function"!=typeof t.constructor||Mi(t)?{}:ja(go(t))}var Ua=Ba,Va="[object Map]";function Ga(t){return ie(t)&&Yo(t)==Va}var Ha=Ga,za=mi["a"]&&mi["a"].isMap,Fa=za?gi(za):Ha,Wa=Fa,qa="[object Set]";function Za(t){return ie(t)&&Yo(t)==qa}var Ya=Za,Xa=mi["a"]&&mi["a"].isSet,Ka=Xa?gi(Xa):Ya,$a=Ka,Qa=1,Ja=2,ts=4,es="[object Arguments]",ns="[object Array]",rs="[object Boolean]",is="[object Date]",os="[object Error]",as="[object Function]",ss="[object GeneratorFunction]",us="[object Map]",cs="[object Number]",ls="[object Object]",hs="[object RegExp]",fs="[object Set]",ps="[object String]",ds="[object Symbol]",vs="[object WeakMap]",gs="[object ArrayBuffer]",ms="[object DataView]",ys="[object Float32Array]",_s="[object Float64Array]",bs="[object Int8Array]",Os="[object Int16Array]",ws="[object Int32Array]",xs="[object Uint8Array]",Es="[object Uint8ClampedArray]",Ts="[object Uint16Array]",Ss="[object Uint32Array]",Ms={};function Cs(t,e,n,r,i,o){var a,s=e&Qa,u=e&Ja,c=e&ts;if(n&&(a=i?n(t,r,i,o):n(t)),void 0!==a)return a;if(!Pt(t))return t;var l=Dr(t);if(l){if(a=Qo(t),!s)return to(t,a)}else{var h=Yo(t),f=h==as||h==ss;if(Object(Rr["a"])(t))return Object(Qi["a"])(t,s);if(h==ls||h==es||f&&!i){if(a=u||f?{}:Ua(t),!s)return u?Oo(t,$i(a,t)):ho(t,Gi(a,t))}else{if(!Ms[h])return i?t:{};a=Ra(t,h,s)}}o||(o=new cr);var p=o.get(t);if(p)return p;o.set(t,a),$a(t)?t.forEach((function(r){a.add(Cs(r,e,n,r,t,o))})):Wa(t)&&t.forEach((function(r,i){a.set(i,Cs(r,e,n,i,t,o))}));var d=c?u?Mo:To:u?Xi:Ui,v=l?void 0:d(t);return hr(v||t,(function(r,i){v&&(i=r,r=t[i]),_r(a,i,Cs(r,e,n,i,t,o))})),a}Ms[es]=Ms[ns]=Ms[gs]=Ms[ms]=Ms[rs]=Ms[is]=Ms[ys]=Ms[_s]=Ms[bs]=Ms[Os]=Ms[ws]=Ms[us]=Ms[cs]=Ms[ls]=Ms[hs]=Ms[fs]=Ms[ps]=Ms[ds]=Ms[xs]=Ms[Es]=Ms[Ts]=Ms[Ss]=!0,Ms[os]=Ms[as]=Ms[vs]=!1;var As=Cs,Ps=1,Ls=4;function ks(t){return As(t,Ps|Ls)}var Ds=ks;function Rs(t,e,n){(void 0===n||xe(t[e],n))&&(void 0!==n||e in t)||vr(t,e,n)}var Is=Rs;function Ns(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 js=Ns,Bs=js(),Us=Bs;function Vs(t){return ie(t)&&ji(t)}var Gs=Vs,Hs="[object Object]",zs=Function.prototype,Fs=Object.prototype,Ws=zs.toString,qs=Fs.hasOwnProperty,Zs=Ws.call(Object);function Ys(t){if(!ie(t)||ne(t)!=Hs)return!1;var e=go(t);if(null===e)return!0;var n=qs.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Ws.call(n)==Zs}var Xs=Ys;function Ks(t,e){if(("constructor"!==e||"function"!==typeof t[e])&&"__proto__"!=e)return t[e]}var $s=Ks;function Qs(t){return Or(t,Xi(t))}var Js=Qs;function tu(t,e,n,r,i,o,a){var s=$s(t,n),u=$s(e,n),c=a.get(u);if(c)Is(t,n,c);else{var l=o?o(s,u,n+"",t,e,a):void 0,h=void 0===l;if(h){var f=Dr(u),p=!f&&Object(Rr["a"])(u),d=!f&&!p&&bi(u);l=u,f||p||d?Dr(s)?l=s:Gs(s)?l=to(s):p?(h=!1,l=Object(Qi["a"])(u,!0)):d?(h=!1,l=pa(u,!0)):l=[]:Xs(u)||Lr(u)?(l=s,Lr(s)?l=Js(s):Pt(s)&&!$e(s)||(l=Ua(u))):h=!1}h&&(a.set(u,l),i(l,u,r,o,a),a["delete"](u)),Is(t,n,l)}}var eu=tu;function nu(t,e,n,r,i){t!==e&&Us(e,(function(o,a){if(i||(i=new cr),Pt(o))eu(t,e,a,n,nu,r,i);else{var s=r?r($s(t,a),o,a+"",t,e,i):void 0;void 0===s&&(s=o),Is(t,a,s)}}),Xi)}var ru=nu;function iu(t){return t}var ou=iu;function au(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 su=au,uu=Math.max;function cu(t,e,n){return e=uu(void 0===e?t.length-1:e,0),function(){var r=arguments,i=-1,o=uu(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),su(t,this,s)}}var lu=cu;function hu(t){return function(){return t}}var fu=hu,pu=pr?function(t,e){return pr(t,"toString",{configurable:!0,enumerable:!1,value:fu(e),writable:!0})}:ou,du=pu,vu=800,gu=16,mu=Date.now;function yu(t){var e=0,n=0;return function(){var r=mu(),i=gu-(r-n);if(n=r,i>0){if(++e>=vu)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var _u=yu,bu=_u(du),Ou=bu;function wu(t,e){return Ou(lu(t,e,ou),t+"")}var xu=wu;function Eu(t,e,n){if(!Pt(n))return!1;var r=typeof e;return!!("number"==r?ji(n)&&Br(e,n.length):"string"==r&&e in n)&&xe(n[e],t)}var Tu=Eu;function Su(t){return xu((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&&Tu(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 Mu=Su,Cu=Mu((function(t,e,n){ru(t,e,n)})),Au=Cu,Pu=Gt?Gt.isConcatSpreadable:void 0;function Lu(t){return Dr(t)||Lr(t)||!!(Pu&&t&&t[Pu])}var ku=Lu;function Du(t,e,n,r,i){var o=-1,a=t.length;n||(n=ku),i||(i=[]);while(++o<a){var s=t[o];e>0&&n(s)?e>1?Du(s,e-1,n,r,i):po(i,s):r||(i[i.length]=s)}return i}var Ru=Du,Iu="__lodash_hash_undefined__";function Nu(t){return this.__data__.set(t,Iu),this}var ju=Nu;function Bu(t){return this.__data__.has(t)}var Uu=Bu;function Vu(t){var e=-1,n=null==t?0:t.length;this.__data__=new ir;while(++e<n)this.add(t[e])}Vu.prototype.add=Vu.prototype.push=ju,Vu.prototype.has=Uu;var Gu=Vu;function Hu(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 zu=Hu;function Fu(t,e){return t.has(e)}var Wu=Fu,qu=1,Zu=2;function Yu(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&Zu?new Gu: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(!zu(e,(function(t,e){if(!Wu(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 Xu=Yu;function Ku(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}var $u=Ku;function Qu(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}var Ju=Qu,tc=1,ec=2,nc="[object Boolean]",rc="[object Date]",ic="[object Error]",oc="[object Map]",ac="[object Number]",sc="[object RegExp]",uc="[object Set]",cc="[object String]",lc="[object Symbol]",hc="[object ArrayBuffer]",fc="[object DataView]",pc=Gt?Gt.prototype:void 0,dc=pc?pc.valueOf:void 0;function vc(t,e,n,r,i,o,a){switch(n){case fc:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case hc:return!(t.byteLength!=e.byteLength||!o(new ta(t),new ta(e)));case nc:case rc:case ac:return xe(+t,+e);case ic:return t.name==e.name&&t.message==e.message;case sc:case cc:return t==e+"";case oc:var s=$u;case uc:var u=r&tc;if(s||(s=Ju),t.size!=e.size&&!u)return!1;var c=a.get(t);if(c)return c==e;r|=ec,a.set(t,e);var l=Xu(s(t),s(e),r,i,o,a);return a["delete"](t),l;case lc:if(dc)return dc.call(t)==dc.call(e)}return!1}var gc=vc,mc=1,yc=Object.prototype,_c=yc.hasOwnProperty;function bc(t,e,n,r,i,o){var a=n&mc,s=To(t),u=s.length,c=To(e),l=c.length;if(u!=l&&!a)return!1;var h=u;while(h--){var f=s[h];if(!(a?f in e:_c.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 Oc=bc,wc=1,xc="[object Arguments]",Ec="[object Array]",Tc="[object Object]",Sc=Object.prototype,Mc=Sc.hasOwnProperty;function Cc(t,e,n,r,i,o){var a=Dr(t),s=Dr(e),u=a?Ec:Yo(t),c=s?Ec:Yo(e);u=u==xc?Tc:u,c=c==xc?Tc:c;var l=u==Tc,h=c==Tc,f=u==c;if(f&&Object(Rr["a"])(t)){if(!Object(Rr["a"])(e))return!1;a=!0,l=!1}if(f&&!l)return o||(o=new cr),a||bi(t)?Xu(t,e,n,r,i,o):gc(t,e,u,n,r,i,o);if(!(n&wc)){var p=l&&Mc.call(t,"__wrapped__"),d=h&&Mc.call(e,"__wrapped__");if(p||d){var v=p?t.value():t,g=d?e.value():e;return o||(o=new cr),i(v,g,n,r,o)}}return!!f&&(o||(o=new cr),Oc(t,e,n,r,i,o))}var Ac=Cc;function Pc(t,e,n,r,i){return t===e||(null==t||null==e||!ie(t)&&!ie(e)?t!==t&&e!==e:Ac(t,e,n,r,Pc,i))}var Lc=Pc,kc=1,Dc=2;function Rc(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 cr;if(r)var f=r(c,l,u,t,e,h);if(!(void 0===f?Lc(l,c,kc|Dc,r,h):f))return!1}}return!0}var Ic=Rc;function Nc(t){return t===t&&!Pt(t)}var jc=Nc;function Bc(t){var e=Ui(t),n=e.length;while(n--){var r=e[n],i=t[r];e[n]=[r,i,jc(i)]}return e}var Uc=Bc;function Vc(t,e){return function(n){return null!=n&&(n[t]===e&&(void 0!==e||t in Object(n)))}}var Gc=Vc;function Hc(t){var e=Uc(t);return 1==e.length&&e[0][2]?Gc(e[0][0],e[0][1]):function(n){return n===t||Ic(n,t,e)}}var zc=Hc,Fc=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Wc=/^\w*$/;function qc(t,e){if(Dr(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!se(t))||(Wc.test(t)||!Fc.test(t)||null!=e&&t in Object(e))}var Zc=qc,Yc="Expected a function";function Xc(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError(Yc);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(Xc.Cache||ir),n}Xc.Cache=ir;var Kc=Xc,$c=500;function Qc(t){var e=Kc(t,(function(t){return n.size===$c&&n.clear(),t})),n=e.cache;return e}var Jc=Qc,tl=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,el=/\\(\\)?/g,nl=Jc((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(tl,(function(t,n,r,i){e.push(r?i.replace(el,"$1"):n||t)})),e})),rl=nl;function il(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 ol=il,al=1/0,sl=Gt?Gt.prototype:void 0,ul=sl?sl.toString:void 0;function cl(t){if("string"==typeof t)return t;if(Dr(t))return ol(t,cl)+"";if(se(t))return ul?ul.call(t):"";var e=t+"";return"0"==e&&1/t==-al?"-0":e}var ll=cl;function hl(t){return null==t?"":ll(t)}var fl=hl;function pl(t,e){return Dr(t)?t:Zc(t,e)?[t]:rl(fl(t))}var dl=pl,vl=1/0;function gl(t){if("string"==typeof t||se(t))return t;var e=t+"";return"0"==e&&1/t==-vl?"-0":e}var ml=gl;function yl(t,e){e=dl(e,t);var n=0,r=e.length;while(null!=t&&n<r)t=t[ml(e[n++])];return n&&n==r?t:void 0}var _l=yl;function bl(t,e,n){var r=null==t?void 0:_l(t,e);return void 0===r?n:r}var Ol=bl;function wl(t,e){return null!=t&&e in Object(t)}var xl=wl;function El(t,e,n){e=dl(e,t);var r=-1,i=e.length,o=!1;while(++r<i){var a=ml(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&&Gr(i)&&Br(a,i)&&(Dr(t)||Lr(t)))}var Tl=El;function Sl(t,e){return null!=t&&Tl(t,e,xl)}var Ml=Sl,Cl=1,Al=2;function Pl(t,e){return Zc(t)&&jc(e)?Gc(ml(t),e):function(n){var r=Ol(n,t);return void 0===r&&r===e?Ml(n,t):Lc(e,r,Cl|Al)}}var Ll=Pl;function kl(t){return function(e){return null==e?void 0:e[t]}}var Dl=kl;function Rl(t){return function(e){return _l(e,t)}}var Il=Rl;function Nl(t){return Zc(t)?Dl(ml(t)):Il(t)}var jl=Nl;function Bl(t){return"function"==typeof t?t:null==t?ou:"object"==typeof t?Dr(t)?Ll(t[0],t[1]):zc(t):jl(t)}var Ul=Bl;function Vl(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 Gl=Vl;function Hl(t){return t!==t}var zl=Hl;function Fl(t,e,n){var r=n-1,i=t.length;while(++r<i)if(t[r]===e)return r;return-1}var Wl=Fl;function ql(t,e,n){return e===e?Wl(t,e,n):Gl(t,zl,n)}var Zl=ql;function Yl(t,e){var n=null==t?0:t.length;return!!n&&Zl(t,e,0)>-1}var Xl=Yl;function Kl(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 $l=Kl;function Ql(){}var Jl=Ql,th=1/0,eh=Do&&1/Ju(new Do([,-0]))[1]==th?function(t){return new Do(t)}:Jl,nh=eh,rh=200;function ih(t,e,n){var r=-1,i=Xl,o=t.length,a=!0,s=[],u=s;if(n)a=!1,i=$l;else if(o>=rh){var c=e?null:nh(t);if(c)return Ju(c);a=!1,i=Wu,u=new Gu}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 oh=ih;function ah(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}var sh=ah,uh=xu((function(t){var e=sh(t);return Gs(e)&&(e=void 0),oh(Ru(t,1,Gs,!0),Ul(e,2))})),ch=uh;function lh(t){return t&&t.length?oh(t):[]}var hh=lh;function fh(t,e,n){return t===t&&(void 0!==n&&(t=t<=n?t:n),void 0!==e&&(t=t>=e?t:e)),t}var ph=fh;function dh(t,e,n){return void 0===n&&(n=e,e=void 0),void 0!==n&&(n=de(n),n=n===n?n:0),void 0!==e&&(e=de(e),e=e===e?e:0),ph(de(t),e,n)}var vh=dh;function gh(t){var e=null==t?0:t.length;return e?Ru(t,1):[]}var mh=gh;function yh(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 _h=yh;function bh(t,e){return t&&Us(t,e,Ui)}var Oh=bh;function wh(t,e){return function(n,r){if(null==n)return n;if(!ji(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 xh=wh,Eh=xh(Oh),Th=Eh;function Sh(t,e,n,r){return Th(t,(function(t,i,o){e(r,t,n(t),o)})),r}var Mh=Sh;function Ch(t,e){return function(n,r){var i=Dr(n)?_h:Mh,o=e?e():{};return i(n,t,Ul(r,2),o)}}var Ah=Ch,Ph=Object.prototype,Lh=Ph.hasOwnProperty,kh=Ah((function(t,e,n){Lh.call(t,n)?t[n].push(e):vr(t,n,[e])})),Dh=kh;function Rh(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 Ih=Rh;function Nh(t,e,n){var r=t.length;return n=void 0===n?r:n,!e&&n>=r?t:Ih(t,e,n)}var jh=Nh,Bh="\\ud800-\\udfff",Uh="\\u0300-\\u036f",Vh="\\ufe20-\\ufe2f",Gh="\\u20d0-\\u20ff",Hh=Uh+Vh+Gh,zh="\\ufe0e\\ufe0f",Fh="\\u200d",Wh=RegExp("["+Fh+Bh+Hh+zh+"]");function qh(t){return Wh.test(t)}var Zh=qh;function Yh(t){return t.split("")}var Xh=Yh,Kh="\\ud800-\\udfff",$h="\\u0300-\\u036f",Qh="\\ufe20-\\ufe2f",Jh="\\u20d0-\\u20ff",tf=$h+Qh+Jh,ef="\\ufe0e\\ufe0f",nf="["+Kh+"]",rf="["+tf+"]",of="\\ud83c[\\udffb-\\udfff]",af="(?:"+rf+"|"+of+")",sf="[^"+Kh+"]",uf="(?:\\ud83c[\\udde6-\\uddff]){2}",cf="[\\ud800-\\udbff][\\udc00-\\udfff]",lf="\\u200d",hf=af+"?",ff="["+ef+"]?",pf="(?:"+lf+"(?:"+[sf,uf,cf].join("|")+")"+ff+hf+")*",df=ff+hf+pf,vf="(?:"+[sf+rf+"?",rf,uf,cf,nf].join("|")+")",gf=RegExp(of+"(?="+of+")|"+vf+df,"g");function mf(t){return t.match(gf)||[]}var yf=mf;function _f(t){return Zh(t)?yf(t):Xh(t)}var bf=_f;function Of(t){return function(e){e=fl(e);var n=Zh(e)?bf(e):void 0,r=n?n[0]:e.charAt(0),i=n?jh(n,1).join(""):e.slice(1);return r[t]()+i}}var wf=Of,xf=wf("toUpperCase"),Ef=xf;function Tf(t){return Ef(fl(t).toLowerCase())}var Sf=Tf;function Mf(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 Cf=Mf;function Af(t){return function(e){return null==t?void 0:t[e]}}var Pf=Af,Lf={"À":"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"},kf=Pf(Lf),Df=kf,Rf=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,If="\\u0300-\\u036f",Nf="\\ufe20-\\ufe2f",jf="\\u20d0-\\u20ff",Bf=If+Nf+jf,Uf="["+Bf+"]",Vf=RegExp(Uf,"g");function Gf(t){return t=fl(t),t&&t.replace(Rf,Df).replace(Vf,"")}var Hf=Gf,zf=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function Ff(t){return t.match(zf)||[]}var Wf=Ff,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 Zf(t){return qf.test(t)}var Yf=Zf,Xf="\\ud800-\\udfff",Kf="\\u0300-\\u036f",$f="\\ufe20-\\ufe2f",Qf="\\u20d0-\\u20ff",Jf=Kf+$f+Qf,tp="\\u2700-\\u27bf",ep="a-z\\xdf-\\xf6\\xf8-\\xff",np="\\xac\\xb1\\xd7\\xf7",rp="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ip="\\u2000-\\u206f",op=" \\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",ap="A-Z\\xc0-\\xd6\\xd8-\\xde",sp="\\ufe0e\\ufe0f",up=np+rp+ip+op,cp="['’]",lp="["+up+"]",hp="["+Jf+"]",fp="\\d+",pp="["+tp+"]",dp="["+ep+"]",vp="[^"+Xf+up+fp+tp+ep+ap+"]",gp="\\ud83c[\\udffb-\\udfff]",mp="(?:"+hp+"|"+gp+")",yp="[^"+Xf+"]",_p="(?:\\ud83c[\\udde6-\\uddff]){2}",bp="[\\ud800-\\udbff][\\udc00-\\udfff]",Op="["+ap+"]",wp="\\u200d",xp="(?:"+dp+"|"+vp+")",Ep="(?:"+Op+"|"+vp+")",Tp="(?:"+cp+"(?:d|ll|m|re|s|t|ve))?",Sp="(?:"+cp+"(?:D|LL|M|RE|S|T|VE))?",Mp=mp+"?",Cp="["+sp+"]?",Ap="(?:"+wp+"(?:"+[yp,_p,bp].join("|")+")"+Cp+Mp+")*",Pp="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Lp="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",kp=Cp+Mp+Ap,Dp="(?:"+[pp,_p,bp].join("|")+")"+kp,Rp=RegExp([Op+"?"+dp+"+"+Tp+"(?="+[lp,Op,"$"].join("|")+")",Ep+"+"+Sp+"(?="+[lp,Op+xp,"$"].join("|")+")",Op+"?"+xp+"+"+Tp,Op+"+"+Sp,Lp,Pp,fp,Dp].join("|"),"g");function Ip(t){return t.match(Rp)||[]}var Np=Ip;function jp(t,e,n){return t=fl(t),e=n?void 0:e,void 0===e?Yf(t)?Np(t):Wf(t):t.match(e)||[]}var Bp=jp,Up="['’]",Vp=RegExp(Up,"g");function Gp(t){return function(e){return Cf(Bp(Hf(e).replace(Vp,"")),t,"")}}var Hp=Gp,zp=Hp((function(t,e,n){return e=e.toLowerCase(),t+(n?Sf(e):e)})),Fp=zp,Wp="[object Map]",qp="[object Set]",Zp=Object.prototype,Yp=Zp.hasOwnProperty;function Xp(t){if(null==t)return!0;if(ji(t)&&(Dr(t)||"string"==typeof t||"function"==typeof t.splice||Object(Rr["a"])(t)||bi(t)||Lr(t)))return!t.length;var e=Yo(t);if(e==Wp||e==qp)return!t.size;if(Mi(t))return!Ii(t).length;for(var n in t)if(Yp.call(t,n))return!1;return!0}var Kp=Xp;function $p(t,e){return Lc(t,e)}var Qp=$p;function Jp(t,e){var n=-1,r=ji(t)?Array(t.length):[];return Th(t,(function(t,i,o){r[++n]=e(t,i,o)})),r}var td=Jp;function ed(t,e){var n=Dr(t)?ol:td;return n(t,Ul(e,3))}var nd=ed,rd=1/0;function id(t,e){return Ru(nd(t,e),rd)}var od=id,ad=Hp((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()})),sd=ad;function ud(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 cd=ud;function ld(t,e){var n;return Th(t,(function(t,r,i){return n=e(t,r,i),!n})),!!n}var hd=ld;function fd(t,e,n){var r=Dr(t)?zu:hd;return n&&Tu(t,e,n)&&(e=void 0),r(t,Ul(e,3))}var pd,dd=fd,vd=function(t){let e;while(e=t.sourceEvent)t=e;return t},gd=function(t,e){if(t=vd(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=gd(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===G.TIME?u["mapsTo"]="date":h===G.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===U.MID_LINE?t.substr(0,n/2)+"..."+t.substr(-n/2):e===U.FRONT_LINE?"..."+t.substr(-n):e===U.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=Ct.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===V.VERTICAL?[t,e]:[e,t]}t.debounce=_e,t.clone=Ds,t.merge=Au,t.unionBy=ch,t.removeArrayDuplicates=hh,t.clamp=vh,t.flatten=mh,t.groupBy=Dh,t.camelCase=Fp,t.isEmpty=Kp,t.isEqual=Qp,t.flatMapDeep=od,t.kebabCase=sd,t.fromPairs=cd,t.some=dd,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===V.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)}})(pd||(pd={}));var md=n("39ba"),yd=n.n(md),_d=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},bd={type:U.END_LINE,threshold:16,numCharacter:14},Od={enabled:!0,position:H.BOTTOM,clickable:!0,truncation:bd,alignment:z.LEFT,order:null,additionalItems:[]},wd={x:{enabled:!0,numberOfTicks:15,alignWithAxisTicks:!1},y:{enabled:!0,numberOfTicks:5,alignWithAxisTicks:!1}},xd={enabled:!0},Ed={enabled:!0,showTotal:!0,truncation:bd,groupLabel:"Group"},Td={top:{visible:!0,includeZero:!0,truncation:bd},bottom:{visible:!0,includeZero:!0,truncation:bd},left:{visible:!0,includeZero:!0,truncation:bd},right:{visible:!0,includeZero:!0,truncation:bd}},Sd={addSpaceOnEdges:1,showDayName:!1,localeObject:yd.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"}}},Md="undefined"!==typeof document&&(document["fullscreenEnabled"]||document["webkitFullscreenEnabled"]||document["mozFullScreenEnabled"]||document["msFullscreenEnabled"]),Cd={width:null,height:null,resizable:!0,tooltip:Ed,legend:Od,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:_d([{type:it.SHOW_AS_DATATABLE}],Md?[{type:it.MAKE_FULLSCREEN}]:[],[{type:it.EXPORT_CSV},{type:it.EXPORT_PNG},{type:it.EXPORT_JPG}])}},Ad=pd.merge({},Cd,{axes:Td,timeScale:Sd,grid:wd,ruler:xd,zoomBar:{zoomRatio:.4,minZoomRatio:.01,top:{enabled:!1,type:B.GRAPH_VIEW}}}),Pd=pd.merge({},Ad,{bars:{maxWidth:16},timeScale:pd.merge(Sd,{addSpaceOnEdges:1})}),Ld=pd.merge({},Pd,{}),kd=pd.merge({},Pd,{}),Dd=pd.merge({},Pd,{bars:pd.merge({},Pd.bars,{dividerSize:1.5})}),Rd=pd.merge({},Pd,{}),Id=pd.merge({},Ad,{points:{radius:4,fillOpacity:.3,filled:!0,enabled:!0}}),Nd=Id,jd=pd.merge({},Id,{points:{radius:3,filled:!1,enabled:!0}}),Bd=pd.merge({},jd,{timeScale:pd.merge(Sd,{addSpaceOnEdges:0})}),Ud=Bd,Vd=pd.merge({},Ad,{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:at.RADIUS,name:"Radius"}]}}),Gd=pd.merge({},Ad,{bullet:{performanceAreaTitles:["Poor","Satisfactory","Great"]},grid:{x:{enabled:!1},y:{enabled:!1}},legend:{additionalItems:[{type:at.AREA,name:"Poor area"},{type:at.AREA,name:"Satisfactory area"},{type:at.AREA,name:"Great area"},{type:at.QUARTILE,name:"Quartiles"}]}}),Hd=pd.merge({},Pd,{bars:{dividerSize:1.5},timeScale:pd.merge(Sd,{addSpaceOnEdges:0})}),zd=pd.merge({},Cd,{tooltip:pd.merge({},Ed,{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"}}),Fd=pd.merge({},Cd,{pie:{labels:{formatter:null,enabled:!0},alignment:z.LEFT,sortFunction:null,valueMapsTo:"value"}}),Wd=pd.merge({},Cd,{legend:{enabled:!1},gauge:{type:J.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:z.LEFT}}),qd=pd.merge({},Fd,{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:z.LEFT}}),Zd=pd.merge({},Cd,{legend:{enabled:!1,clickable:!1},meter:{proportional:null,statusBar:{percentageIndicator:{enabled:!0}}}}),Yd=pd.merge({},Zd,{legend:{enabled:!0}}),Xd=pd.merge({},Cd,{radar:{axes:{angle:"key",value:"value"},alignment:z.LEFT},tooltip:{gridline:{enabled:!0},valueFormatter:function(t){return null!==t&&void 0!==t?t:"N/A"}}}),Kd=pd.merge({},Pd,{comboChartTypes:[]}),$d=pd.merge({tree:{type:W.TREE}},Cd,{}),Qd=pd.merge({},Cd,{data:pd.merge(Cd.data,{groupMapsTo:"name"})}),Jd=pd.merge({},Cd,pt,{data:pd.merge(Cd.data,{groupMapsTo:"name"})}),tv=pd.merge({},Cd,{alluvial:{data:pd.merge(Cd.data,{groupMapsTo:"source"}),nodePadding:24,monochrome:!1,nodes:[]}}),ev={chart:Cd,axisChart:Ad,simpleBarChart:Ld,groupedBarChart:kd,stackedBarChart:Dd,boxplotChart:Rd,bubbleChart:Vd,bulletChart:Gd,histogramChart:Hd,lineChart:jd,areaChart:Bd,stackedAreaChart:Ud,scatterChart:Id,lollipopChart:Nd,pieChart:Fd,donutChart:qd,meterChart:Zd,proportionalMeterChart:Yd,radarChart:Xd,gaugeChart:Wd,comboChart:Kd,treeChart:$d,treemapChart:Qd,circlePackChart:Jd,wordCloudChart:zd,alluvialChart:tv};class nv extends Map{constructor(t,e=av){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(rv(this,t))}has(t){return super.has(rv(this,t))}set(t,e){return super.set(iv(this,t),e)}delete(t){return super.delete(ov(this,t))}}Set;function rv({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):n}function iv({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):(t.set(r,n),n)}function ov({_intern:t,_key:e},n){const r=e(n);return t.has(r)&&(n=t.get(n),t.delete(r)),n}function av(t){return null!==t&&"object"===typeof t?t.valueOf():t}function sv(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}const uv=Symbol("implicit");function cv(){var t=new nv,e=[],n=[],r=uv;function i(i){let o=t.get(i);if(void 0===o){if(r!==uv)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 nv;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 cv(e,n).unknown(r)},sv.apply(i,arguments),i}var lv=Array.prototype.slice,hv=function(t){return"object"===typeof t&&"length"in t?t:Array.from(t)},fv=function(t){return function(){return t}},pv=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]},dv=function(t){var e=t.length,n=new Array(e);while(--e>=0)n[e]=e;return n};function vv(t,e){return t[e]}function gv(t){const e=[];return e.key=t,e}var mv=function(){var t=fv([]),e=dv,n=pv,r=vv;function i(i){var o,a,s=Array.from(t.apply(this,arguments),gv),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=hv(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:fv(Array.from(e)),i):t},i.value=function(t){return arguments.length?(r="function"===typeof t?t:fv(+t),i):r},i.order=function(t){return arguments.length?(e=null==t?dv:"function"===typeof t?t:fv(Array.from(t)),i):e},i.offset=function(t){return arguments.length?(n=null==t?pv:t,i):n},i},yv=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)},_v=Array.prototype,bv=_v.slice,Ov=(_v.map,function(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}),wv=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=xv(t)),{left:r,center:o,right:i}};function xv(t){return(e,n)=>Ov(t(e),n)}var Ev=function(t){return null===t?NaN:+t};function*Tv(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 Sv=wv(Ov),Mv=Sv.right;Sv.left,wv(Ev).center;var Cv=Mv,Av=function(t){return function(){return t}},Pv=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]},Lv=function(t){return t},kv=Math.sqrt(50),Dv=Math.sqrt(10),Rv=Math.sqrt(2),Iv=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=Nv(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 Nv(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>=kv?10:o>=Dv?5:o>=Rv?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=kv?10:o>=Dv?5:o>=Rv?2:1)}function jv(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>=kv?i*=10:o>=Dv?i*=5:o>=Rv&&(i*=2),e<t?-i:i}function Bv(t,e,n){let r;while(1){const i=Nv(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 Uv(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 Vv=function(t){return Math.ceil(Math.log(Uv(t))/Math.LN2)+1},Gv=function(){var t=Lv,e=Pv,n=Vv;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===Pv&&([c,l]=Bv(c,l,n)),h=Iv(c,l,n),h[h.length-1]>=l)if(t>=l&&e===Pv){const t=Nv(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[Cv(h,o,0,f)].push(r[i]);return d}return r.value=function(e){return arguments.length?(t="function"===typeof e?e:Av(e),r):t},r.domain=function(t){return arguments.length?(e="function"===typeof t?t:Av([t[0],t[1]]),r):e},r.thresholds=function(t){return arguments.length?(n="function"===typeof t?t:Array.isArray(t)?Av(bv.call(t)):Av(t),r):n},r},Hv=function(){return Hv=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},Hv.apply(this,arguments)},zv=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=pd.getProperty(e,"data").groupMapsTo,o=pd.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!==G.LINEAR&&r!==G.LOG||(n=n.map((function(t){var n;return Hv(Hv({},t),(n={},n[e]=null===t[e]?t[e]:Number(t[e]),n))}))),e&&o[t].domain)if(r===G.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=mt.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(pd.clone(t)),n=this.generateDataGroups(e);return this.set({data:e,dataGroups:n}),e},t.prototype.getDataGroups=function(t){var e=pd.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=mt.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 pd.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?gt.defaultBins:s,c=Array.isArray(u),l=Gv().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 mv().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=t.bins,i=void 0===r?null:r,o=t.groups,a=void 0===o?null:o,s=this.getOptions(),u=this.getDisplayData(a);e=i?i.map((function(t){return t.x0+"-"+t.x1})):pd.removeArrayDuplicates(u.map((function(t){var e=n.services.cartesianScales.getDomainIdentifier(t);return t[e]&&"function"===typeof t[e].toString?t[e].toString():t[e]})));var c=this.services.cartesianScales.domainAxisPosition,l=s.axes[c].scaleType;return l===G.TIME?e.sort((function(t,e){var n=new Date(t),r=new Date(e);return n-r})):l!==G.LOG&&l!==G.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].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.getDataGroupNames(i),l=this.getDataValuesGroupedByKeys({groups:i});if(n){var h=pd.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?mv().offset(yv):mv();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();pd.updateLegendAdditionalItems(e,t),this.set({options:pd.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(ut.Model.UPDATE,{animate:t}))},t.prototype.toggleDataLabel=function(t){var e=mt.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(ut.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=pd.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=pd.getProperty(this.colorScale,t);return r.getStrokeColor?r.getStrokeColor(t,e,n,i):i},t.prototype.isUserProvidedColorScaleValid=function(){var t=pd.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=pd.getProperty(t,"label");if(null===a){var s=pd.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=mt.items.status,r=n.ACTIVE,i=n.DISABLED,o=this.getOptions(),a=pd.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=pd.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=pd.getProperty(this.getOptions(),"color","pairing"),e=pd.getProperty(t,"numberOfVariants");(!e||e<this.allDataGroups.length)&&(e=this.allDataGroups.length);var n=pd.getProperty(t,"option"),r=dt.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=cv().range(o).domain(this.allDataGroups)},t}(),Fv=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 Wv(){}var qv=function(t){return null==t?Wv:function(){return this.querySelector(t)}},Zv=function(t){"function"!==typeof t&&(t=qv(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 Gm(r,this._parents)};function Yv(t){return null==t?[]:Array.isArray(t)?t:Array.from(t)}function Xv(){return[]}var Kv=function(t){return null==t?Xv:function(){return this.querySelectorAll(t)}};function $v(t){return function(){return Yv(t.apply(this,arguments))}}var Qv=function(t){t="function"===typeof t?$v(t):Kv(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 Gm(r,i)},Jv=function(t){return function(){return this.matches(t)}};function tg(t){return function(e){return e.matches(t)}}var eg=Array.prototype.find;function ng(t){return function(){return eg.call(this.children,t)}}function rg(){return this.firstElementChild}var ig=function(t){return this.select(null==t?rg:ng("function"===typeof t?t:tg(t)))},og=Array.prototype.filter;function ag(){return Array.from(this.children)}function sg(t){return function(){return og.call(this.children,t)}}var ug=function(t){return this.selectAll(null==t?ag:sg("function"===typeof t?t:tg(t)))},cg=function(t){"function"!==typeof t&&(t=Jv(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 Gm(r,this._parents)},lg=function(t){return new Array(t.length)},hg=function(){return new Gm(this._enter||this._groups.map(lg),this._parents)};function fg(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}fg.prototype={constructor:fg,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 pg=function(t){return function(){return t}};function dg(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 fg(t,o[s]);for(;s<u;++s)(a=e[s])&&(i[s]=a)}function vg(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 fg(t,o[s]);for(s=0;s<h;++s)(u=e[s])&&l.get(p[s])===u&&(i[s]=u)}function gg(t){return t.__data__}var mg=function(t,e){if(!arguments.length)return Array.from(this,gg);var n=e?vg:dg,r=this._parents,i=this._groups;"function"!==typeof t&&(t=pg(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=yg(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 Gm(a,r),a._enter=s,a._exit=u,a};function yg(t){return"object"===typeof t&&"length"in t?t:Array.from(t)}var _g=function(){return new Gm(this._exit||this._groups.map(lg),this._parents)},bg=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},Og=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 Gm(s,this._parents)},wg=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},xg=function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=Eg);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 Gm(i,this._parents).order()};function Eg(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}var Tg=function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},Sg=function(){return Array.from(this)},Mg=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},Cg=function(){let t=0;for(const e of this)++t;return t},Ag=function(){return!this.node()},Pg=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},Lg="http://www.w3.org/1999/xhtml",kg={svg:"http://www.w3.org/2000/svg",xhtml:Lg,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},Dg=function(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),kg.hasOwnProperty(e)?{space:kg[e],local:t}:t};function Rg(t){return function(){this.removeAttribute(t)}}function Ig(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Ng(t,e){return function(){this.setAttribute(t,e)}}function jg(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function Bg(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function Ug(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 Vg=function(t,e){var n=Dg(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?Ig:Rg:"function"===typeof e?n.local?Ug:Bg:n.local?jg:Ng)(n,e))},Gg=function(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView};function Hg(t){return function(){this.style.removeProperty(t)}}function zg(t,e,n){return function(){this.style.setProperty(t,e,n)}}function Fg(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}var Wg=function(t,e,n){return arguments.length>1?this.each((null==e?Hg:"function"===typeof e?Fg:zg)(t,e,null==n?"":n)):qg(this.node(),t)};function qg(t,e){return t.style.getPropertyValue(e)||Gg(t).getComputedStyle(t,null).getPropertyValue(e)}function Zg(t){return function(){delete this[t]}}function Yg(t,e){return function(){this[t]=e}}function Xg(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}var Kg=function(t,e){return arguments.length>1?this.each((null==e?Zg:"function"===typeof e?Xg:Yg)(t,e)):this.node()[t]};function $g(t){return t.trim().split(/^|\s+/)}function Qg(t){return t.classList||new Jg(t)}function Jg(t){this._node=t,this._names=$g(t.getAttribute("class")||"")}function tm(t,e){var n=Qg(t),r=-1,i=e.length;while(++r<i)n.add(e[r])}function em(t,e){var n=Qg(t),r=-1,i=e.length;while(++r<i)n.remove(e[r])}function nm(t){return function(){tm(this,t)}}function rm(t){return function(){em(this,t)}}function im(t,e){return function(){(e.apply(this,arguments)?tm:em)(this,t)}}Jg.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 om=function(t,e){var n=$g(t+"");if(arguments.length<2){var r=Qg(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?im:e?nm:rm)(n,e))};function am(){this.textContent=""}function sm(t){return function(){this.textContent=t}}function um(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}var cm=function(t){return arguments.length?this.each(null==t?am:("function"===typeof t?um:sm)(t)):this.node().textContent};function lm(){this.innerHTML=""}function hm(t){return function(){this.innerHTML=t}}function fm(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}var pm=function(t){return arguments.length?this.each(null==t?lm:("function"===typeof t?fm:hm)(t)):this.node().innerHTML};function dm(){this.nextSibling&&this.parentNode.appendChild(this)}var vm=function(){return this.each(dm)};function gm(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}var mm=function(){return this.each(gm)};function ym(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===Lg&&e.documentElement.namespaceURI===Lg?e.createElement(t):e.createElementNS(n,t)}}function _m(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}var bm=function(t){var e=Dg(t);return(e.local?_m:ym)(e)},Om=function(t){var e="function"===typeof t?t:bm(t);return this.select((function(){return this.appendChild(e.apply(this,arguments))}))};function wm(){return null}var xm=function(t,e){var n="function"===typeof t?t:bm(t),r=null==e?wm:"function"===typeof e?e:qv(e);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))};function Em(){var t=this.parentNode;t&&t.removeChild(this)}var Tm=function(){return this.each(Em)};function Sm(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Mm(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}var Cm=function(t){return this.select(t?Mm:Sm)},Am=function(t){return arguments.length?this.property("__data__",t):this.node().__data__};function Pm(t){return function(e){t.call(this,e,this.__data__)}}function Lm(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 km(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 Dm(t,e,n){return function(){var r,i=this.__on,o=Pm(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 Rm=function(t,e,n){var r,i,o=Lm(t+""),a=o.length;if(!(arguments.length<2)){for(s=e?Dm:km,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 Im(t,e,n){var r=Gg(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 Nm(t,e){return function(){return Im(this,t,e)}}function jm(t,e){return function(){return Im(this,t,e.apply(this,arguments))}}var Bm=function(t,e){return this.each(("function"===typeof e?jm:Nm)(t,e))},Um=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)},Vm=[null];function Gm(t,e){this._groups=t,this._parents=e}function Hm(){return new Gm([[document.documentElement]],Vm)}function zm(){return this}Gm.prototype=Hm.prototype={constructor:Gm,select:Zv,selectAll:Qv,selectChild:ig,selectChildren:ug,filter:cg,data:mg,enter:hg,exit:_g,join:bg,merge:Og,selection:zm,order:wg,sort:xg,call:Tg,nodes:Sg,node:Mg,size:Cg,empty:Ag,each:Pg,attr:Vg,style:Wg,property:Kg,classed:om,text:cm,html:pm,raise:vm,lower:mm,append:Om,insert:xm,remove:Tm,clone:Cm,datum:Am,on:Rm,dispatch:Bm,[Symbol.iterator]:Um};var Fm=Hm,Wm=function(t){return"string"===typeof t?new Gm([[document.querySelector(t)]],[document.documentElement]):new Gm([[t]],Vm)},qm={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 "},Zm=qm,Ym=Zm,Xm=n("2da1"),Km=n("eeea"),$m=n.n(Km),Qm=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Jm="DONT_STYLE_ME_css_styles_verifier",ty=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.chartID=Math.floor(281474976710656*(1+Math.random())).toString(16),r}return Qm(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=Wm(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:pd.getProperty(t.node(),"width","baseVal","value"),height:pd.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.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.addMainContainer=function(){var t=this.model.getOptions(),e=pd.getProperty(t,"style","prefix"),n=Wm(this.getHolder()).append("div").classed(Ym.prefix+"--"+e+"--chart-wrapper",!0).style("height","100%").style("width","100%");n.append("g").attr("class",Jm),this.mainContainer=n.node()},e.prototype.update=function(){this.styleHolderElement()},e.prototype.styleHolderElement=function(){var t=this.getHolder();Wm(this.getHolder()).classed(Ym.prefix+"--chart-holder",!0);var e=this.model.getOptions(),n=e.width,r=e.height;n!==this.width&&(t.style.width=n,this.width=n),r!==this.height&&(t.style.height=r,this.height=r)},e.prototype.getHolder=function(){return this.model.get("holder")},e.prototype.exportToJPG=function(){var t=this,e=this.getHolder(),n=Wm(e);n.classed("filled",!0),$m.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("bx--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=Wm(e);n.classed("filled",!0),$m.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("bx--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=Wm(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=Wm(t.getHolder()),n=e.classed("fullscreen");e.classed("fullscreen",!n)}))},e.prototype.verifyCSSStylesBeingApplied=function(){var t=this;setTimeout((function(){var e=Wm(t.mainContainer).select("g."+Jm).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(Wm(this.mainContainer),{useBBox:!0}).height,n=Wm(this.mainContainer).attr("class"),r=Wm(this.mainContainer).selectAll("."+n+" > svg"),i=0;r.nodes().forEach((function(t){i+=Number(e.getSVGElementSize(Wm(t),{useBBox:!0}).height)})),i<=t?Wm(this.mainContainer).attr("height",i):Wm(this.mainContainer).attr("height","100%")}},e.prototype.getMainContainer=function(){return this.mainContainer},e.prototype.addHolderListeners=function(){var t=this,e=this.getHolder();e&&Wm(e).on("mouseover",(function(){t.services.events.dispatchEvent(ut.Chart.MOUSEOVER)})).on("mouseout",(function(){t.services.events.dispatchEvent(ut.Chart.MOUSEOUT)}))},e.prototype.addResizeListener=function(){var t=this,e=this.getHolder();if(e){var n=e.clientWidth,r=e.clientHeight,i=pd.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(ut.Chart.RESIZE))}),12.5),o=new Xm["a"](i);o.observe(e)}},e}(Fv),ey=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ny=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ey(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}(Fv),ry=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),iy=function(t){function e(e,n){return t.call(this,e,n)||this}return ry(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}(Fv),oy=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ay=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.pendingTransitions={},e}return oy(e,t),e.prototype.init=function(){var t=this;this.services.events.addEventListener(ut.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(pd.getProperty(Tt,r,"duration")||Tt.default.duration)},e.prototype.getPendingTransitions=function(){return this.pendingTransitions},e}(Fv),sy=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),uy=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return sy(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}(Fv);const cy=1e3,ly=60*cy,hy=60*ly,fy=24*hy,py=7*fy,dy=30*fy,vy=365*fy;var gy=new Date,my=new Date;function yy(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 yy((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 gy.setTime(+e),my.setTime(+r),t(gy),t(my),Math.floor(n(gy,my))},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 _y=yy((function(){}),(function(t,e){t.setTime(+t+e)}),(function(t,e){return e-t}));_y.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?yy((function(e){e.setTime(Math.floor(e/t)*t)}),(function(e,n){e.setTime(+e+n*t)}),(function(e,n){return(n-e)/t})):_y:null};var by=_y,Oy=(_y.range,yy((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,e){t.setTime(+t+e*cy)}),(function(t,e){return(e-t)/cy}),(function(t){return t.getUTCSeconds()}))),wy=Oy,xy=(Oy.range,yy((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*cy)}),(function(t,e){t.setTime(+t+e*ly)}),(function(t,e){return(e-t)/ly}),(function(t){return t.getMinutes()}))),Ey=xy,Ty=(xy.range,yy((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*cy-t.getMinutes()*ly)}),(function(t,e){t.setTime(+t+e*hy)}),(function(t,e){return(e-t)/hy}),(function(t){return t.getHours()}))),Sy=Ty,My=(Ty.range,yy(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*ly)/fy,t=>t.getDate()-1)),Cy=My;My.range;function Ay(t){return yy((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())*ly)/py}))}var Py=Ay(0),Ly=Ay(1),ky=Ay(2),Dy=Ay(3),Ry=Ay(4),Iy=Ay(5),Ny=Ay(6),jy=(Py.range,Ly.range,ky.range,Dy.range,Ry.range,Iy.range,Ny.range,yy((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()}))),By=jy,Uy=(jy.range,yy((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()})));Uy.every=function(t){return isFinite(t=Math.floor(t))&&t>0?yy((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 Vy=Uy,Gy=(Uy.range,yy((function(t){t.setUTCSeconds(0,0)}),(function(t,e){t.setTime(+t+e*ly)}),(function(t,e){return(e-t)/ly}),(function(t){return t.getUTCMinutes()}))),Hy=Gy,zy=(Gy.range,yy((function(t){t.setUTCMinutes(0,0,0)}),(function(t,e){t.setTime(+t+e*hy)}),(function(t,e){return(e-t)/hy}),(function(t){return t.getUTCHours()}))),Fy=zy,Wy=(zy.range,yy((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/fy}),(function(t){return t.getUTCDate()-1}))),qy=Wy;Wy.range;function Zy(t){return yy((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)/py}))}var Yy=Zy(0),Xy=Zy(1),Ky=Zy(2),$y=Zy(3),Qy=Zy(4),Jy=Zy(5),t_=Zy(6),e_=(Yy.range,Xy.range,Ky.range,$y.range,Qy.range,Jy.range,t_.range,yy((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()}))),n_=e_,r_=(e_.range,yy((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()})));r_.every=function(t){return isFinite(t=Math.floor(t))&&t>0?yy((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 i_=r_;r_.range;function o_(t,e,n,r,i,o){const a=[[wy,1,cy],[wy,5,5*cy],[wy,15,15*cy],[wy,30,30*cy],[o,1,ly],[o,5,5*ly],[o,15,15*ly],[o,30,30*ly],[i,1,hy],[i,3,3*hy],[i,6,6*hy],[i,12,12*hy],[r,1,fy],[r,2,2*fy],[n,1,py],[e,1,dy],[e,3,3*dy],[t,1,vy]];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=wv(([,,t])=>t).right(a,i);if(o===a.length)return t.every(jv(e/vy,n/vy,r));if(0===o)return by.every(Math.max(jv(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[a_,s_]=o_(i_,n_,Yy,qy,Fy,Hy),[u_,c_]=o_(Vy,By,Py,Cy,Sy,Ey);function l_(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 h_(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 f_(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}function p_(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=w_(i),l=x_(i),h=w_(o),f=x_(o),p=w_(a),d=x_(a),v=w_(s),g=x_(s),m=w_(u),y=x_(u),_={a:D,A:R,b:I,B:N,c:null,d:F_,e:F_,f:X_,g:ab,G:ub,H:W_,I:q_,j:Z_,L:Y_,m:K_,M:$_,p:j,q:B,Q:Lb,s:kb,S:Q_,u:J_,U:tb,V:nb,w:rb,W:ib,x:null,X:null,y:ob,Y:sb,Z:cb,"%":Pb},b={a:U,A:V,b:G,B:H,c:null,d:lb,e:lb,f:vb,g:Sb,G:Cb,H:hb,I:fb,j:pb,L:db,m:gb,M:mb,p:z,q:F,Q:Lb,s:kb,S:yb,u:_b,U:bb,V:wb,w:xb,W:Eb,x:null,X:null,y:Tb,Y:Mb,Z:Ab,"%":Pb},O={a:S,A:M,b:C,B:A,c:P,d:R_,e:R_,f:V_,g:P_,G:A_,H:N_,I:N_,j:I_,L:U_,m:D_,M:j_,p:T,q:k_,Q:H_,s:z_,S:B_,u:T_,U:S_,V:M_,w:E_,W:C_,x:L,X:k,y:P_,Y:A_,Z:L_,"%":G_};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=g_[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=f_(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=h_(f_(o.y,0,1)),i=r.getUTCDay(),r=i>4||0===i?Xy.ceil(r):Xy(r),r=qy.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(r=l_(f_(o.y,0,1)),i=r.getDay(),r=i>4||0===i?Ly.ceil(r):Ly(r),r=Cy.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?h_(f_(o.y,0,1)).getUTCDay():l_(f_(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,h_(o)):l_(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 g_?e.charAt(a++):i],!o||(r=o(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}function T(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 S(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 k(t,e,n){return E(t,r,e,n)}function D(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 d_,v_,g_={"-":"",_:" ",0:"0"},m_=/^\s*\d+/,y_=/^%/,__=/[\\^$*+?|[\]().{}]/g;function b_(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 O_(t){return t.replace(__,"\\$&")}function w_(t){return new RegExp("^(?:"+t.map(O_).join("|")+")","i")}function x_(t){return new Map(t.map((t,e)=>[t.toLowerCase(),e]))}function E_(t,e,n){var r=m_.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function T_(t,e,n){var r=m_.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function S_(t,e,n){var r=m_.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function M_(t,e,n){var r=m_.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function C_(t,e,n){var r=m_.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function A_(t,e,n){var r=m_.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function P_(t,e,n){var r=m_.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function L_(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 k_(t,e,n){var r=m_.exec(e.slice(n,n+1));return r?(t.q=3*r[0]-3,n+r[0].length):-1}function D_(t,e,n){var r=m_.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function R_(t,e,n){var r=m_.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function I_(t,e,n){var r=m_.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function N_(t,e,n){var r=m_.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function j_(t,e,n){var r=m_.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function B_(t,e,n){var r=m_.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function U_(t,e,n){var r=m_.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function V_(t,e,n){var r=m_.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function G_(t,e,n){var r=y_.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function H_(t,e,n){var r=m_.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function z_(t,e,n){var r=m_.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function F_(t,e){return b_(t.getDate(),e,2)}function W_(t,e){return b_(t.getHours(),e,2)}function q_(t,e){return b_(t.getHours()%12||12,e,2)}function Z_(t,e){return b_(1+Cy.count(Vy(t),t),e,3)}function Y_(t,e){return b_(t.getMilliseconds(),e,3)}function X_(t,e){return Y_(t,e)+"000"}function K_(t,e){return b_(t.getMonth()+1,e,2)}function $_(t,e){return b_(t.getMinutes(),e,2)}function Q_(t,e){return b_(t.getSeconds(),e,2)}function J_(t){var e=t.getDay();return 0===e?7:e}function tb(t,e){return b_(Py.count(Vy(t)-1,t),e,2)}function eb(t){var e=t.getDay();return e>=4||0===e?Ry(t):Ry.ceil(t)}function nb(t,e){return t=eb(t),b_(Ry.count(Vy(t),t)+(4===Vy(t).getDay()),e,2)}function rb(t){return t.getDay()}function ib(t,e){return b_(Ly.count(Vy(t)-1,t),e,2)}function ob(t,e){return b_(t.getFullYear()%100,e,2)}function ab(t,e){return t=eb(t),b_(t.getFullYear()%100,e,2)}function sb(t,e){return b_(t.getFullYear()%1e4,e,4)}function ub(t,e){var n=t.getDay();return t=n>=4||0===n?Ry(t):Ry.ceil(t),b_(t.getFullYear()%1e4,e,4)}function cb(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+b_(e/60|0,"0",2)+b_(e%60,"0",2)}function lb(t,e){return b_(t.getUTCDate(),e,2)}function hb(t,e){return b_(t.getUTCHours(),e,2)}function fb(t,e){return b_(t.getUTCHours()%12||12,e,2)}function pb(t,e){return b_(1+qy.count(i_(t),t),e,3)}function db(t,e){return b_(t.getUTCMilliseconds(),e,3)}function vb(t,e){return db(t,e)+"000"}function gb(t,e){return b_(t.getUTCMonth()+1,e,2)}function mb(t,e){return b_(t.getUTCMinutes(),e,2)}function yb(t,e){return b_(t.getUTCSeconds(),e,2)}function _b(t){var e=t.getUTCDay();return 0===e?7:e}function bb(t,e){return b_(Yy.count(i_(t)-1,t),e,2)}function Ob(t){var e=t.getUTCDay();return e>=4||0===e?Qy(t):Qy.ceil(t)}function wb(t,e){return t=Ob(t),b_(Qy.count(i_(t),t)+(4===i_(t).getUTCDay()),e,2)}function xb(t){return t.getUTCDay()}function Eb(t,e){return b_(Xy.count(i_(t)-1,t),e,2)}function Tb(t,e){return b_(t.getUTCFullYear()%100,e,2)}function Sb(t,e){return t=Ob(t),b_(t.getUTCFullYear()%100,e,2)}function Mb(t,e){return b_(t.getUTCFullYear()%1e4,e,4)}function Cb(t,e){var n=t.getUTCDay();return t=n>=4||0===n?Qy(t):Qy.ceil(t),b_(t.getUTCFullYear()%1e4,e,4)}function Ab(){return"+0000"}function Pb(){return"%"}function Lb(t){return+t}function kb(t){return Math.floor(+t/1e3)}function Db(t){return d_=p_(t),v_=d_.format,d_.parse,d_.utcFormat,d_.utcParse,d_}Db({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 Rb=function(t,e,n){t.prototype=e.prototype=n,n.constructor=t};function Ib(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function Nb(){}var jb=.7,Bb=1/jb,Ub="\\s*([+-]?\\d+)\\s*",Vb="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Gb="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Hb=/^#([0-9a-f]{3,8})$/,zb=new RegExp("^rgb\\("+[Ub,Ub,Ub]+"\\)$"),Fb=new RegExp("^rgb\\("+[Gb,Gb,Gb]+"\\)$"),Wb=new RegExp("^rgba\\("+[Ub,Ub,Ub,Vb]+"\\)$"),qb=new RegExp("^rgba\\("+[Gb,Gb,Gb,Vb]+"\\)$"),Zb=new RegExp("^hsl\\("+[Vb,Gb,Gb]+"\\)$"),Yb=new RegExp("^hsla\\("+[Vb,Gb,Gb,Vb]+"\\)$"),Xb={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 Kb(){return this.rgb().formatHex()}function $b(){return cO(this).formatHsl()}function Qb(){return this.rgb().formatRgb()}function Jb(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=Hb.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?tO(e):3===n?new iO(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?eO(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?eO(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=zb.exec(t))?new iO(e[1],e[2],e[3],1):(e=Fb.exec(t))?new iO(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Wb.exec(t))?eO(e[1],e[2],e[3],e[4]):(e=qb.exec(t))?eO(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Zb.exec(t))?uO(e[1],e[2]/100,e[3]/100,1):(e=Yb.exec(t))?uO(e[1],e[2]/100,e[3]/100,e[4]):Xb.hasOwnProperty(t)?tO(Xb[t]):"transparent"===t?new iO(NaN,NaN,NaN,0):null}function tO(t){return new iO(t>>16&255,t>>8&255,255&t,1)}function eO(t,e,n,r){return r<=0&&(t=e=n=NaN),new iO(t,e,n,r)}function nO(t){return t instanceof Nb||(t=Jb(t)),t?(t=t.rgb(),new iO(t.r,t.g,t.b,t.opacity)):new iO}function rO(t,e,n,r){return 1===arguments.length?nO(t):new iO(t,e,n,null==r?1:r)}function iO(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function oO(){return"#"+sO(this.r)+sO(this.g)+sO(this.b)}function aO(){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 sO(t){return t=Math.max(0,Math.min(255,Math.round(t)||0)),(t<16?"0":"")+t.toString(16)}function uO(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new hO(t,e,n,r)}function cO(t){if(t instanceof hO)return new hO(t.h,t.s,t.l,t.opacity);if(t instanceof Nb||(t=Jb(t)),!t)return new hO;if(t instanceof hO)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 hO(a,s,u,t.opacity)}function lO(t,e,n,r){return 1===arguments.length?cO(t):new hO(t,e,n,null==r?1:r)}function hO(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function fO(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 pO(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}Rb(Nb,Jb,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:Kb,formatHex:Kb,formatHsl:$b,formatRgb:Qb,toString:Qb}),Rb(iO,rO,Ib(Nb,{brighter:function(t){return t=null==t?Bb:Math.pow(Bb,t),new iO(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?jb:Math.pow(jb,t),new iO(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:oO,formatHex:oO,formatRgb:aO,toString:aO})),Rb(hO,lO,Ib(Nb,{brighter:function(t){return t=null==t?Bb:Math.pow(Bb,t),new hO(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?jb:Math.pow(jb,t),new hO(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 iO(fO(t>=240?t-240:t+120,i,r),fO(t,i,r),fO(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 dO=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 pO((n-r/e)*e,a,i,o,s)}},vO=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 pO((n-r/e)*e,i,o,a,s)}},gO=t=>()=>t;function mO(t,e){return function(n){return t+n*e}}function yO(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 _O(t){return 1===(t=+t)?bO:function(e,n){return n-e?yO(e,n,t):gO(isNaN(e)?n:e)}}function bO(t,e){var n=e-t;return n?mO(t,n):gO(isNaN(t)?e:t)}var OO=function t(e){var n=_O(e);function r(t,e){var r=n((t=rO(t)).r,(e=rO(e)).r),i=n(t.g,e.g),o=n(t.b,e.b),a=bO(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 wO(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=rO(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+""}}}wO(dO),wO(vO);var xO=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 EO(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function TO(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]=RO(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 SO=function(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}},MO=function(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}},CO=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]=RO(t[n],e[n]):i[n]=e[n];return function(t){for(n in r)i[n]=r[n](t);return i}},AO=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,PO=new RegExp(AO.source,"g");function LO(t){return function(){return t}}function kO(t){return function(e){return t(e)+""}}var DO=function(t,e){var n,r,i,o=AO.lastIndex=PO.lastIndex=0,a=-1,s=[],u=[];t+="",e+="";while((n=AO.exec(t))&&(r=PO.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:MO(n,r)})),o=PO.lastIndex;return o<e.length&&(i=e.slice(o),s[a]?s[a]+=i:s[++a]=i),s.length<2?u[0]?kO(u[0].x):LO(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("")})},RO=function(t,e){var n,r=typeof e;return null==e||"boolean"===r?gO(e):("number"===r?MO:"string"===r?(n=Jb(e))?(e=n,OO):DO:e instanceof Jb?OO:e instanceof Date?SO:EO(e)?xO:Array.isArray(e)?TO:"function"!==typeof e.valueOf&&"function"!==typeof e.toString||isNaN(e)?CO:MO)(t,e)},IO=function(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}};function NO(t){return function(){return t}}function jO(t){return+t}var BO=[0,1];function UO(t){return t}function VO(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:NO(isNaN(e)?NaN:.5)}function GO(t,e){var n;return t>e&&(n=t,t=e,e=n),function(n){return Math.max(t,Math.min(e,n))}}function HO(t,e,n){var r=t[0],i=t[1],o=e[0],a=e[1];return i<r?(r=VO(i,r),o=n(a,o)):(r=VO(r,i),o=n(o,a)),function(t){return o(r(t))}}function zO(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]=VO(t[a],t[a+1]),o[a]=n(e[a],e[a+1]);return function(e){var n=Cv(t,e,1,r)-1;return o[n](i[n](e))}}function FO(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function WO(){var t,e,n,r,i,o,a=BO,s=BO,u=RO,c=UO;function l(){var t=Math.min(a.length,s.length);return c!==UO&&(c=GO(a[0],a[t-1])),r=t>2?zO:HO,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),MO)))(n)))},h.domain=function(t){return arguments.length?(a=Array.from(t,jO),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=IO,l()},h.clamp=function(t){return arguments.length?(c=!!t||UO,l()):c!==UO},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 qO(){return WO()(UO,UO)}function ZO(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 YO(t){return new Date(t)}function XO(t){return t instanceof Date?+t:+new Date(+t)}function KO(t,e,n,r,i,o,a,s,u,c){var l=qO(),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,XO)):f().map(YO)},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(ZO(n,t)):l},l.copy=function(){return FO(l,KO(t,e,n,r,i,o,a,s,u,c))},l}function $O(){return sv.apply(KO(u_,c_,Vy,By,Py,Cy,Sy,Ey,wy,v_).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}var QO=function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)};function JO(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 tw=function(t){return t=JO(Math.abs(t)),t?t[1]:NaN},ew=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)}},nw=function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}},rw=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function iw(t){if(!(e=rw.exec(t)))throw new Error("invalid format: "+t);var e;return new ow({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 ow(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+""}iw.prototype=ow.prototype,ow.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 aw,sw,uw,cw,lw=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},hw=function(t,e){var n=JO(t,e);if(!n)return t+"";var r=n[0],i=n[1],o=i-(aw=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")+JO(t,Math.max(0,e+o-1))[0]},fw=function(t,e){var n=JO(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")},pw={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:QO,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)=>fw(100*t,e),r:fw,s:hw,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)},dw=function(t){return t},vw=Array.prototype.map,gw=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"],mw=function(t){var e=void 0===t.grouping||void 0===t.thousands?dw:ew(vw.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?dw:nw(vw.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=iw(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"):pw[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=pw[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=lw(t)),E&&0===+t&&"+"!==h&&(E=!1),f=(E?"("===h?h:s:"-"===h||"("===h?"":h)+f,x=("s"===y?gw[8+aw/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 T=f.length+t.length+x.length,S=T<d?new Array(d-T+1).join(c):"";switch(v&&p&&(t=e(S+t,S.length?d-x.length:1/0),S=""),l){case"<":t=f+t+x+S;break;case"=":t=f+S+t+x;break;case"^":t=S.slice(0,T=S.length>>1)+f+t+x+S.slice(T);break;default:t=S+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=iw(t),t.type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(tw(e)/3))),i=Math.pow(10,-r),o=gw[8+r/3];return function(t){return n(i*t)+o}}return{format:c,formatPrefix:l}};function yw(t){return sw=mw(t),uw=sw.format,cw=sw.formatPrefix,sw}function _w(t){return Math.log(t)}function bw(t){return Math.exp(t)}function Ow(t){return-Math.log(-t)}function ww(t){return-Math.exp(-t)}function xw(t){return isFinite(t)?+("1e"+t):t<0?0:t}function Ew(t){return 10===t?xw:t===Math.E?Math.exp:function(e){return Math.pow(t,e)}}function Tw(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 Sw(t){return function(e){return-t(-e)}}function Mw(t){var e,n,r=t(_w,bw),i=r.domain,o=10;function a(){return e=Tw(o),n=Ew(o),i()[0]<0?(e=Sw(e),n=Sw(n),t(Ow,ww)):t(_w,bw),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=Iv(s,u,d))}else v=Iv(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=uw(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(ZO(i(),{floor:function(t){return n(Math.floor(e(t)))},ceil:function(t){return n(Math.ceil(e(t)))}}))},r}function Cw(){var t=Mw(WO()).domain([1,10]);return t.copy=function(){return FO(t,Cw()).base(t.base())},sv.apply(t,arguments),t}yw({thousands:",",grouping:[3],currency:["$",""]});var Aw=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 Pw(){var t,e,n=cv().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=Aw(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 Pw(r(),[o,a]).round(s).paddingInner(u).paddingOuter(c).align(l)},sv.apply(h(),arguments)}var Lw=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(tw(e)/3)))-tw(Math.abs(t)))},kw=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,tw(e)-tw(t))+1},Dw=function(t){return Math.max(0,-tw(Math.abs(t)))};function Rw(t,e,n,r){var i,o=jv(t,e,n);switch(r=iw(null==r?",f":r),r.type){case"s":var a=Math.max(Math.abs(t),Math.abs(e));return null!=r.precision||isNaN(i=Lw(o,a))||(r.precision=i),cw(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=kw(o,Math.max(Math.abs(t),Math.abs(e))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=Dw(o))||(r.precision=i-2*("%"===r.type));break}return uw(r)}function Iw(t){var e=t.domain;return t.ticks=function(t){var n=e();return Iv(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var r=e();return Rw(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=Nv(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 Nw(){var t=qO();return t.copy=function(){return FO(t,Nw())},sv.apply(t,arguments),Iw(t)}function jw(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 Bw(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 Uw(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Bw(t),r=Bw(e);return n.getFullYear()-r.getFullYear()}function Vw(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Bw(t),r=Bw(e),i=n.getTime()-r.getTime();return i<0?-1:i>0?1:i}function Gw(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Bw(t),r=Bw(e),i=Vw(n,r),o=Math.abs(Uw(n,r));n.setFullYear(n.getFullYear()-i*o);var a=Vw(n,r)===-i,s=i*(o-a);return 0===s?0:s}function Hw(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 zw(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=Bw(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 Fw(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Bw(t),r=Hw(e),i=n.getMonth()+r,o=new Date(0);o.setFullYear(n.getFullYear(),i,1),o.setHours(0,0,0,0);var a=zw(o);return n.setMonth(i,Math.min(a,n.getDate())),n}function Ww(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Hw(e);return Fw(t,12*n)}function qw(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Hw(e);return Ww(t,-n)}function Zw(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Bw(t),r=Bw(e),i=n.getFullYear()-r.getFullYear(),o=n.getMonth()-r.getMonth();return 12*i+o}function Yw(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Bw(t),r=Bw(e),i=Vw(n,r),o=Math.abs(Zw(n,r));n.setMonth(n.getMonth()-i*o);var a=Vw(n,r)===-i,s=i*(o-a);return 0===s?0:s}function Xw(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Hw(e);return Fw(t,-n)}var Kw=6e4;function $w(t){var e=new Date(t.getTime()),n=Math.ceil(e.getTimezoneOffset());e.setSeconds(0,0);var r=e.getTime()%Kw;return n*Kw+r}function Qw(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=Bw(t);return e.setHours(0,0,0,0),e}var Jw=864e5;function tx(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Qw(t),r=Qw(e),i=n.getTime()-$w(n),o=r.getTime()-$w(r);return Math.round((i-o)/Jw)}function ex(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Bw(t),r=Bw(e),i=Vw(n,r),o=Math.abs(tx(n,r));n.setDate(n.getDate()-i*o);var a=Vw(n,r)===-i,s=i*(o-a);return 0===s?0:s}function nx(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Bw(t),r=Hw(e);return n.setDate(n.getDate()+r),n}function rx(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Hw(e);return nx(t,-n)}function ix(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Bw(t),r=Bw(e);return n.getTime()-r.getTime()}var ox=36e5;function ax(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=ix(t,e)/ox;return n>0?Math.floor(n):Math.ceil(n)}function sx(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Bw(t).getTime(),r=Hw(e);return new Date(n+r)}var ux=36e5;function cx(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Hw(e);return sx(t,n*ux)}function lx(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Hw(e);return cx(t,-n)}var hx=6e4;function fx(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=ix(t,e)/hx;return n>0?Math.floor(n):Math.ceil(n)}var px=6e4;function dx(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Hw(e);return sx(t,n*px)}function vx(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Hw(e);return dx(t,-n)}function gx(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=ix(t,e)/1e3;return n>0?Math.floor(n):Math.ceil(n)}function mx(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Hw(e);return sx(t,1e3*n)}function yx(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Hw(e);return mx(t,-n)}var _x=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),bx=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},Ox=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},wx=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 _x(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=pd.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=pd.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 pd.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===j.BOTTOM||t===j.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(j).map((function(t){return j[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!==j.LEFT&&this.rangeAxisPosition!==j.RIGHT||this.domainAxisPosition!==j.BOTTOM&&this.domainAxisPosition!==j.TOP?this.orientation=V.HORIZONTAL:this.orientation=V.VERTICAL},e.prototype.isDualAxes=function(){return this.dualAxes},e.prototype.determineAxisDuality=function(){var t,e,n,r,i=this.model.getOptions(),o=pd.getProperty(i,"axes");((null===(t=o[j.LEFT])||void 0===t?void 0:t.correspondingDatasets)&&o[j.RIGHT]||(null===(e=o[j.RIGHT])||void 0===e?void 0:e.correspondingDatasets)&&o[j.LEFT]||(null===(n=o[j.TOP])||void 0===n?void 0:n.correspondingDatasets)&&o[j.BOTTOM]||(null===(r=o[j.BOTTOM])||void 0===r?void 0:r.correspondingDatasets)&&o[j.TOP])&&(this.dualAxes=!0)},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=[j.BOTTOM,j.TOP];return[this.domainAxisPosition,this.rangeAxisPosition].find((function(e){return t.indexOf(e)>-1}))},e.prototype.getMainYAxisPosition=function(){var t=[j.LEFT,j.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=pd.getProperty(a,"axes"),u=s[n],c=u.mapsTo,l=null!==pd.getProperty(r,c)?r[c]:r;switch(e){case G.LABELS:o=t(l)+t.step()/2;break;case G.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.scales[this.rangeAxisPosition],i=this.model.getOptions(),o=pd.getProperty(i,"axes"),a=o[this.rangeAxisPosition],s=a.mapsTo,u=void 0!==t[s]?t[s]:t,c=[r(null!==pd.getProperty(t,n.upperBoundMapsTo)?t[n.upperBoundMapsTo]:u),r(null!==pd.getProperty(t,n.lowerBoundMapsTo)?t[n.lowerBoundMapsTo]:u)];return c},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 pd.getProperty(e,"axes",this.getDomainAxisPosition({datum:t}),"mapsTo")},e.prototype.getRangeIdentifier=function(t){var e=this.model.getOptions();return pd.getProperty(e,"axes",this.getRangeAxisPosition({datum:t}),"mapsTo")},e.prototype.extendsDomain=function(t,e){var n=this.model.getOptions(),r=pd.getProperty(n,"axes",t);if(r.scaleType===G.TIME){var i=pd.getProperty(n,"timeScale","addSpaceOnEdges");return xx(e,i)}return Ex(e,ht.paddingRatio,r.scaleType)},e.prototype.findVerticalAxesPositions=function(){var t=this.model.getOptions(),e=pd.getProperty(t,"axes"),n=this.isDualAxes();return null===pd.getProperty(e,j.LEFT)&&null!==pd.getProperty(e,j.RIGHT)||!0===pd.getProperty(e,j.RIGHT,"main")||n&&pd.getProperty(e,j.LEFT,"correspondingDatasets")?{primary:j.RIGHT,secondary:j.LEFT}:{primary:j.LEFT,secondary:j.RIGHT}},e.prototype.findHorizontalAxesPositions=function(){var t=this.model.getOptions(),e=pd.getProperty(t,"axes"),n=this.isDualAxes();return null===pd.getProperty(e,j.BOTTOM)&&null!==pd.getProperty(e,j.TOP)||!0===pd.getProperty(e,j.TOP,"main")||n&&pd.getProperty(e,j.BOTTOM,"correspondingDatasets")?{primary:j.TOP,secondary:j.BOTTOM}:{primary:j.BOTTOM,secondary:j.TOP}},e.prototype.findDomainAndRangeAxesPositions=function(t,e){var n=this.model.getOptions(),r=pd.getProperty(n,"axes",t.primary),i=pd.getProperty(n,"axes",e.primary),o=r.scaleType||G.LINEAR,a=i.scaleType||G.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!==G.LABELS&&a!==G.TIME&&o===G.LABELS||o===G.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=pd.getProperty(e,"axes",t),r=pd.getProperty(e,"bounds"),i=n.includeZero,o=pd.getProperty(n,"scaleType")||G.LINEAR;if(this.model.isDataEmpty())return[];if(n.binned){var a=this.model.getBinConfigurations().bins;return[0,jw(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=ht.ratio,g=v.reference,m=v.compareTo;if(n.domain)return o===G.LABELS?n.domain:(o===G.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===G.LABELS)return pd.removeArrayDuplicates(l.map((function(t){return t[f]})));var y=this.model.getDataGroupNames();if(o===G.LABELS_RATIO)return l.map((function(t){return t[g]+"/"+t[m]}));if(o===G.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=bx(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=Ox(pd.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!==G.TIME&&o!==G.LOG&&i&&c.push(0),d&&d.length>0&&d.forEach((function(t){var e=pd.getProperty(t,"value");null!==e&&c.push(e)})),u=Pv(c),u=this.extendsDomain(t,u),u},e.prototype.createScale=function(t){var e=this.model.getOptions(),n=pd.getProperty(e,"axes",t);if(!n)return null;var r,i=pd.getProperty(n,"scaleType")||G.LINEAR;return this.scaleTypes[t]=i,r=i===G.TIME?$O():i===G.LOG?Cw().base(n.base||10):i===G.LABELS||i===G.LABELS_RATIO?Pw():Nw(),r.domain(this.getScaleDomain(t)),r},e.prototype.getHighestDomainThreshold=function(){var t=pd.getProperty(this.model.getOptions(),"axes"),e=this.getDomainAxisPosition(),n=t[e].thresholds;if(!n)return null;var r=this.getDomainScale(),i=n.sort((function(t,e){return e.value-t.value}))[0],o=this.getScaleTypeByPosition(e);return o!==G.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=pd.getProperty(this.model.getOptions(),"axes"),e=this.getRangeAxisPosition(),n=t[e].thresholds;if(!n)return null;var r=this.getRangeScale(),i=n.sort((function(t,e){return e.value-t.value}))[0];return{threshold:i,scaleValue:r(i.value)}},e}(Fv);function xx(t,e){var n=new Date(t[0]),r=new Date(t[1]);return Gw(r,n)>1?[qw(n,e),Ww(r,e)]:Yw(r,n)>1?[Xw(n,e),Fw(r,e)]:ex(r,n)>1?[rx(n,e),nx(r,e)]:ax(r,n)>1?[lx(n,e),cx(r,e)]:fx(r,n)>30?[vx(n,30*e),dx(r,30*e)]:fx(r,n)>1?[vx(n,e),dx(r,e)]:gx(r,n)>15?[yx(n,15*e),mx(r,15*e)]:gx(r,n)>1?[yx(n,e),mx(r,e)]:[n,r]}function Ex(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===G.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 Tx(t){this._context=t}Tx.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 Sx=function(t){return new Tx(t)},Mx=function(){};function Cx(t){this._context=t}Cx.prototype={areaStart:Mx,areaEnd:Mx,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 Ax=function(t){return new Cx(t)};function Px(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 Lx(t){this._context=t}Lx.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:Px(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:Px(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};var kx=function(t){return new Lx(t)};function Dx(t){this._context=t}Dx.prototype={areaStart:Mx,areaEnd:Mx,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:Px(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};var Rx=function(t){return new Dx(t)};function Ix(t){this._context=t}Ix.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:Px(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};var Nx=function(t){return new Ix(t)};function jx(t,e){this._basis=new Lx(t),this._beta=e}jx.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 Bx=function t(e){function n(t){return 1===e?new Lx(t):new jx(t,e)}return n.beta=function(e){return t(+e)},n}(.85);function Ux(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 Vx(t,e){this._context=t,this._k=(1-e)/6}Vx.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:Ux(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:Ux(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 Gx=function t(e){function n(t){return new Vx(t,e)}return n.tension=function(e){return t(+e)},n}(0);function Hx(t,e){this._context=t,this._k=(1-e)/6}Hx.prototype={areaStart:Mx,areaEnd:Mx,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:Ux(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 zx=function t(e){function n(t){return new Hx(t,e)}return n.tension=function(e){return t(+e)},n}(0);function Fx(t,e){this._context=t,this._k=(1-e)/6}Fx.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:Ux(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 Wx=function t(e){function n(t){return new Fx(t,e)}return n.tension=function(e){return t(+e)},n}(0),qx=Math.abs,Zx=Math.atan2,Yx=Math.cos,Xx=Math.max,Kx=Math.min,$x=Math.sin,Qx=Math.sqrt,Jx=1e-12,tE=Math.PI,eE=tE/2,nE=2*tE;function rE(t){return t>1?0:t<-1?tE:Math.acos(t)}function iE(t){return t>=1?eE:t<=-1?-eE:Math.asin(t)}function oE(t,e,n){var r=t._x1,i=t._y1,o=t._x2,a=t._y2;if(t._l01_a>Jx){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>Jx){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 aE(t,e){this._context=t,this._alpha=e}aE.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:oE(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 sE=function t(e){function n(t){return e?new aE(t,e):new Vx(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function uE(t,e){this._context=t,this._alpha=e}uE.prototype={areaStart:Mx,areaEnd:Mx,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:oE(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 cE=function t(e){function n(t){return e?new uE(t,e):new Hx(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function lE(t,e){this._context=t,this._alpha=e}lE.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:oE(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 hE=function t(e){function n(t){return e?new lE(t,e):new Fx(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function fE(t){return t<0?-1:1}function pE(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(fE(o)+fE(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function dE(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function vE(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 gE(t){this._context=t}function mE(t){this._context=new yE(t)}function yE(t){this._context=t}function _E(t){return new gE(t)}function bE(t){return new mE(t)}function OE(t){this._context=t}function wE(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]}gE.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:vE(this,this._t0,dE(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,vE(this,dE(this,n=pE(this,t,e)),n);break;default:vE(this,this._t0,n=pE(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}},(mE.prototype=Object.create(gE.prototype)).point=function(t,e){gE.prototype.point.call(this,e,t)},yE.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)}},OE.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=wE(t),i=wE(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 xE=function(t){return new OE(t)};function EE(t,e){this._context=t,this._t=e}EE.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 TE=function(t){return new EE(t,.5)};function SE(t){return new EE(t,0)}function ME(t){return new EE(t,1)}var CE=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),AE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.curveTypes={curveLinear:Sx,curveLinearClosed:Ax,curveBasis:kx,curveBasisClosed:Rx,curveBasisOpen:Nx,curveBundle:Bx,curveCardinal:Gx,curveCardinalClosed:zx,curveCardinalOpen:Wx,curveCatmullRom:sE,curveCatmullRomClosed:cE,curveCatmullRomOpen:hE,curveMonotoneX:_E,curveMonotoneY:bE,curveNatural:xE,curveStep:TE,curveStepAfter:ME,curveStepBefore:SE},e}return CE(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}(Fv),PE=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),LE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return PE(e,t),e.prototype.isZoomBarEnabled=function(){if(!this.services.cartesianScales)return!1;if(!pd.getProperty(this.model.getOptions(),"zoomBar","top","enabled"))return!1;this.services.cartesianScales.findDomainAndRangeAxes();var t=this.services.cartesianScales.getMainXAxisPosition(),e=pd.getProperty(this.model.getOptions(),"axes",t,"scaleType");return t===j.BOTTOM&&e===G.TIME},e.prototype.getZoomBarData=function(){var t=this.model.getZoomBarData();return t&&t.length>1?t:this.model.getDisplayData()},e.prototype.getDefaultZoomBarDomain=function(t){var e=t||this.services.zoom.getZoomBarData(),n=this.services.cartesianScales,r=n.getMainXAxisPosition(),i=n.getDomainIdentifier();return n.extendsDomain(r,Pv(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(ut.ZoomDomain.CHANGE,{newDomain:t})},e.prototype.getZoomRatio=function(){return pd.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=pd.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=Mt.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=pd.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 pd.getProperty(this.model.getOptions(),"zoomBar",t,"loading")},e.prototype.isZoomBarLocked=function(t){return pd.getProperty(this.model.getOptions(),"zoomBar",t,"locked")},e}(Fv),kE=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),DE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return kE(e,t),e.prototype.zoomIn=function(t,e,n){var r,i,o,a=n||ft;t&&(r=t.x,i=t.y,o=2);var s=ty.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(ut.CanvasZoom.CANVAS_ZOOM_IN,{element:Wm(t)})},e.prototype.zoomOut=function(t,e){var n=e||ft;t.transition().duration(n.duration).ease(n.ease).attr("transform",""),this.services.events.dispatchEvent(ut.CanvasZoom.CANVAS_ZOOM_OUT)},e}(Fv),RE=function(){function t(t,e,n){if(this.renderType=R.HTML,this.configs={},this.model=t,this.services=e,n&&(this.configs=n,this.configs.id)){var r=pd.getProperty(this.model.getOptions(),"style","prefix");this.id=r+"--"+this.configs.id}this.parent||this.setParent(Wm(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=pd.getProperty(this.model.getOptions(),"style","prefix");this.parent.classed(Ym.prefix+"--"+n+"--"+this.type,!0),e&&e.classed(Ym.prefix+"--"+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=pd.getProperty(this.model.getOptions(),"style","prefix"),n=this.id?"#"+this.id:"",r=ty.appendOrSelect(this.parent,(this.renderType===R.SVG?"svg":"div")+n+"."+Ym.prefix+"--"+e+"--"+this.type);if(t.withinChartClip){var i=this.model.get("chartClipId");if(i){var o=Wm("#"+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=pd.merge({},this.model.getOptions(),this.configs.options);return t}return this.model.getOptions()},t}(),IE=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),NE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="legend",e.renderType=R.HTML,e}return IE(e,t),e.prototype.render=function(){var t=this,e=this.getOptions(),n=pd.getProperty(e,"legend"),r=pd.getProperty(n,"alignment"),i=pd.getProperty(e,"legend","orientation"),o=this.model.getDataGroups(),s=mt.items.status.DISABLED,u=o.some((function(t){return t.status===s})),c=pd.getProperty(n,"order"),l=this.getComponentContainer().classed("center-aligned",r===z.CENTER).classed("right-aligned",r===z.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===mt.items.status.ACTIVE}));var p=pd.getProperty(this.getOptions(),"legend","clickable");l.classed("clickable",p&&o.length>1);var d=mt.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===mt.items.status.ACTIVE})).attr("width",2*d).attr("height",2*d).attr("class",(function(e,n){return t.model.getColorClassName({classNameTypes:[N.BACKGROUND],dataGroupName:e.name,originalClassName:"checkbox"})})).style("background",(function(e){return e.status===mt.items.status.ACTIVE?t.model.getFillColor(e.name)||t.model.getStrokeColor(e.name):null})).classed("active",(function(t,e){return t.status===mt.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")),pd.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=Wm(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=mt.area,i=r.width,s=r.height;if(e.type===at.RADIUS?t.style("width",s+"px").style("height",s+"px"):t.style("width",i+"px").style("height",s+"px"),e.type===at.RADIUS){var u=mt.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===at.LINE){var p=mt.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===at.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?mt.area.fill:e.fill).style("stroke",e.stroke);else if(e.type===at.SIZE){var d=mt.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===at.QUARTILE){c=mt.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===at.ZOOM){var m=pd.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=pd.getProperty(this.getOptions(),"legend","truncation"),n=pd.getProperty(e,"type"),r=pd.getProperty(e,"threshold"),i=pd.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!==U.NONE?o.html((function(t){return t.name.length>r?pd.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=pd.getProperty(n,"legend"),i=pd.getProperty(r,"truncation","threshold");e.selectAll("div.legend-item").on("mouseover",(function(e){t.services.events.dispatchEvent(ut.Legend.ITEM_HOVER,{hoveredElement:Wm(this)});var n=Wm(this);n.select("div.checkbox").classed("hovered",!0);var r=n.datum();r.name.length>i&&t.services.events.dispatchEvent(ut.Tooltip.SHOW,{event:e,hoveredElement:n,content:r.name})})).on("mousemove",(function(e){t.services.events.dispatchEvent(ut.Tooltip.MOVE,{event:e})})).on("click",(function(){t.services.events.dispatchEvent(ut.Legend.ITEM_CLICK,{clickedElement:Wm(this)});var e=Wm(this),n=e.datum();t.model.toggleDataLabel(n.name)})).on("mouseout",(function(){var e=Wm(this);e.select("div.checkbox").classed("hovered",!1),t.services.events.dispatchEvent(ut.Tooltip.HIDE),t.services.events.dispatchEvent(ut.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(ut.Legend.ITEM_HOVER,{hoveredElement:Wm(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(ut.Legend.ITEM_MOUSEOUT,{hoveredElement:Wm(this)})})),e.selectAll("g.additional-item").on("mouseover",(function(e){var n=Wm(this),r=n.datum();r.name.length>i&&t.services.events.dispatchEvent(ut.Tooltip.SHOW,{event:e,hoveredElement:n,content:r.name})}))},e}(RE);n("9b04");function jE(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function BE(t){return HE(t)||GE(t)||VE(t)||UE()}function UE(){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 VE(t,e){if(t){if("string"===typeof t)return zE(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)?zE(t,e):void 0}}function GE(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function HE(t){if(Array.isArray(t))return zE(t)}function zE(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 FE(t){return t.reduce((function(t,e){return Array.isArray(e)?t.push.apply(t,BE(FE(e))):t.push(e),t}),[])}function WE(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return FE(e).reduce((function(t,e){return e(t)}),function(){function t(){jE(this,t)}return t}())}function qE(t){return qE="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},qE(t)}function ZE(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function YE(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 XE(t,e,n){return e&&YE(t.prototype,e),n&&YE(t,n),t}function KE(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}}),e&&$E(t,e)}function $E(t,e){return $E=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},$E(t,e)}function QE(t){var e=eT();return function(){var n,r=nT(t);if(e){var i=nT(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return JE(this,n)}}function JE(t,e){return!e||"object"!==qE(e)&&"function"!==typeof e?tT(t):e}function tT(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function eT(){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 nT(t){return nT=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},nT(t)}var rT=function(t){var e=function(t){KE(n,t);var e=QE(n);function n(t){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(ZE(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,tT(r)),r}return XE(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 iT(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 oT(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 aT(t){return aT="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},aT(t)}function sT(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function uT(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 cT(t,e,n){return e&&uT(t.prototype,e),n&&uT(t,n),t}function lT(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}}),e&&hT(t,e)}function hT(t,e){return hT=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},hT(t,e)}function fT(t){var e=vT();return function(){var n,r=gT(t);if(e){var i=gT(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return pT(this,n)}}function pT(t,e){return!e||"object"!==aT(e)&&"function"!==typeof e?dT(t):e}function dT(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function vT(){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 gT(t){return gT=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},gT(t)}var mT=function(t){var e=function(t){lT(n,t);var e=fT(n);function n(){return sT(this,n),e.apply(this,arguments)}return cT(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 oT(e,i,(function(e){var i=iT(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 yT(t){return yT="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},yT(t)}function _T(t){return xT(t)||wT(t)||OT(t)||bT()}function bT(){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 OT(t,e){if(t){if("string"===typeof t)return ET(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)?ET(t,e):void 0}}function wT(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function xT(t){if(Array.isArray(t))return ET(t)}function ET(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 TT(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ST(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 MT(t,e,n){return e&&ST(t.prototype,e),n&&ST(t,n),t}function CT(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}}),e&&AT(t,e)}function AT(t,e){return AT=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},AT(t,e)}function PT(t){var e=DT();return function(){var n,r=RT(t);if(e){var i=RT(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return LT(this,n)}}function LT(t,e){return!e||"object"!==yT(e)&&"function"!==typeof e?kT(t):e}function kT(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function DT(){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 RT(t){return RT=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},RT(t)}var IT=function(t){var e=function(t){CT(n,t);var e=PT(n);function n(){return TT(this,n),e.apply(this,arguments)}return MT(n,[{key:"_changeState",value:function(){throw new Error("_changeState() should be overriden 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,_T(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 NT(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 jT(t){return jT="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},jT(t)}function BT(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function UT(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 VT(t,e,n){return e&&UT(t.prototype,e),n&&UT(t,n),t}function GT(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}}),e&&HT(t,e)}function HT(t,e){return HT=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},HT(t,e)}function zT(t){var e=qT();return function(){var n,r=ZT(t);if(e){var i=ZT(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return FT(this,n)}}function FT(t,e){return!e||"object"!==jT(e)&&"function"!==typeof e?WT(t):e}function WT(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function qT(){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 ZT(t){return ZT=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},ZT(t)}function YT(t){var e=function(t){GT(n,t);var e=zT(n);function n(){return BT(this,n),e.apply(this,arguments)}return VT(n,[{key:"show",value:function(t,e){t&&"function"!==typeof t||(e=t),this.changeState("shown",NT(t),e)}},{key:"hide",value:function(t,e){t&&"function"!==typeof t||(e=t),this.changeState("hidden",NT(t),e)}}]),n}(t);return e}var XT=[IT,YT],KT=XT;function $T(t){return $T="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},$T(t)}function QT(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function JT(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 tS(t,e,n){return e&&JT(t.prototype,e),n&&JT(t,n),t}function eS(t,e,n){return eS="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=nS(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(n):i.value}},eS(t,e,n||t)}function nS(t,e){while(!Object.prototype.hasOwnProperty.call(t,e))if(t=cS(t),null===t)break;return t}function rS(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}}),e&&iS(t,e)}function iS(t,e){return iS=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},iS(t,e)}function oS(t){var e=uS();return function(){var n,r=cS(t);if(e){var i=cS(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return aS(this,n)}}function aS(t,e){return!e||"object"!==$T(e)&&"function"!==typeof e?sS(t):e}function sS(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function uS(){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 cS(t){return cS=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},cS(t)}var lS=function(t){var e=function(t){rS(n,t);var e=oS(n);function n(){var t;QT(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 tS(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)})),eS(cS(n.prototype),"release",this).call(this)}}]),n}(t);return e};function hS(t){return hS="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},hS(t)}function fS(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function pS(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 dS(t,e,n){return e&&pS(t.prototype,e),n&&pS(t,n),t}function vS(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}}),e&&gS(t,e)}function gS(t,e){return gS=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},gS(t,e)}function mS(t){var e=bS();return function(){var n,r=OS(t);if(e){var i=OS(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return yS(this,n)}}function yS(t,e){return!e||"object"!==hS(e)&&"function"!==typeof e?_S(t):e}function _S(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function bS(){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 OS(t){return OS=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},OS(t)}var wS,xS,ES=function(t){vS(n,t);var e=mS(n);function n(t,r){var i;return fS(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!iT(t,e)}))&&i.element.querySelector(Ym.selectorTabbable).focus()},i._hookCloseActions(),i}return dS(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(Ym.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(oT(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(oT(this.element,"transitionend",o))}},{key:"_hookCloseActions",value:function(){var t=this;this.manage(oT(this.element,"click",(function(e){var n=iT(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(oT(this.element.ownerDocument.body,"keydown",(function(e){27===e.which&&t.shouldStateBeChanged("hidden")&&(e.stopPropagation(),t.hide(e))})))}}],[{key:"options",get:function(){var t=Ym.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}(WE(rT,mT,KT,lS)),TS=ES,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)}}(),MS=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.bx--modal-footer button.bx--btn").on("click",(function(){return i.model.exportToCSV()}));var t=TS.create(i.modal.node());t.show()},i.init(),i}return SS(e,t),e.prototype.addEventListeners=function(){this.services.events.addEventListener(ut.Modal.SHOW,this.handleShowModal)},e.prototype.removeEventListeners=function(){this.services.events.removeEventListener(ut.Modal.SHOW,this.handleShowModal)},e.prototype.getModalHTML=function(){var t=this.model.getOptions(),e=pd.getProperty(t,"style","prefix"),n=this.model.getTabularDataArray();return'\n\t\t<div class="bx--modal-container">\n\t\t\t<div class="bx--modal-header">\n\t\t\t\t<p class="bx--modal-header__label bx--type-delta" id="modal-title">Tabular representation</p>\n\t\t\t\t<p class="bx--modal-header__heading bx--type-beta" id="modal-description">'+t.title+'</p>\n\t\t\t\t<button class="bx--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="bx--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\t\t\t<div class="bx--modal-content"><table class="bx--data-table bx--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'+Ol(n,0).map((function(t){return'<th scope="col">\n\t\t\t\t\t\t\t\t<div class="bx--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\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\t\t\t<div class="bx--modal-footer">\n\t\t\t <div class="'+Ym.prefix+"--"+e+'-modal-footer-spacer"></div>\n\t\t\t <button class="bx--btn bx--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=Wm(this.services.domUtils.getHolder()),n=pd.getProperty(t,"style","prefix");this.modal=ty.appendOrSelect(e,"div."+Ym.prefix+"--"+n+"--modal"),this.addEventListeners(),this.isEventListenerAdded=!0,this.modal.attr("data-modal",!0).attr("class","bx--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}(RE);(function(t){t["LEFT"]="left",t["RIGHT"]="right",t["TOP"]="top",t["BOTTOM"]="bottom"})(xS||(xS={}));var CS=(wS={},wS[xS.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)}},wS[xS.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)}},wS[xS.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)}},wS[xS.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)}},wS),AS="undefined"!==typeof window?window:{innerHeight:0,scrollY:0,innerWidth:0,scrollX:0},PS=function(){function t(t){void 0===t&&(t={}),this.positions=CS,this.positions=Object.assign({},CS,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:AS.innerHeight-AS.scrollY,height:AS.innerWidth-AS.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}(),LS=(new PS,PS);function kS(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=Bw(t);return!isNaN(e)}var DS={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 RS(t,e,n){var r;return n=n||{},r="string"===typeof DS[t]?DS[t]:1===e?DS[t].one:DS[t].other.replace("{{count}}",e),n.addSuffix?n.comparison>0?"in "+r:r+" ago":r}function IS(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 NS={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},jS={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},BS={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},US={date:IS({formats:NS,defaultWidth:"full"}),time:IS({formats:jS,defaultWidth:"full"}),dateTime:IS({formats:BS,defaultWidth:"full"})},VS=US,GS={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function HS(t,e,n,r){return GS[t]}function zS(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 FS={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},WS={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},qS={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"]},ZS={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"]},YS={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"}},XS={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 KS(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 $S={ordinalNumber:KS,era:zS({values:FS,defaultWidth:"wide"}),quarter:zS({values:WS,defaultWidth:"wide",argumentCallback:function(t){return Number(t)-1}}),month:zS({values:qS,defaultWidth:"wide"}),day:zS({values:ZS,defaultWidth:"wide"}),dayPeriod:zS({values:YS,defaultWidth:"wide",formattingValues:XS,defaultFormattingWidth:"wide"})},QS=$S;function JS(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 tM(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)?nM(l,(function(t){return t.test(r)})):eM(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 eM(t,e){for(var n in t)if(t.hasOwnProperty(n)&&e(t[n]))return n}function nM(t,e){for(var n=0;n<t.length;n++)if(e(t[n]))return n}var rM=/^(\d+)(th|st|nd|rd)?/i,iM=/\d+/i,oM={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},aM={any:[/^b/i,/^(a|c)/i]},sM={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},uM={any:[/1/i,/2/i,/3/i,/4/i]},cM={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},lM={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]},hM={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},fM={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]},pM={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},dM={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}},vM={ordinalNumber:JS({matchPattern:rM,parsePattern:iM,valueCallback:function(t){return parseInt(t,10)}}),era:tM({matchPatterns:oM,defaultMatchWidth:"wide",parsePatterns:aM,defaultParseWidth:"any"}),quarter:tM({matchPatterns:sM,defaultMatchWidth:"wide",parsePatterns:uM,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:tM({matchPatterns:cM,defaultMatchWidth:"wide",parsePatterns:lM,defaultParseWidth:"any"}),day:tM({matchPatterns:hM,defaultMatchWidth:"wide",parsePatterns:fM,defaultParseWidth:"any"}),dayPeriod:tM({matchPatterns:pM,defaultMatchWidth:"any",parsePatterns:dM,defaultParseWidth:"any"})},gM=vM,mM={code:"en-US",formatDistance:RS,formatLong:VS,formatRelative:HS,localize:QS,match:gM,options:{weekStartsOn:0,firstWeekContainsDate:1}},yM=mM;function _M(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Hw(e);return sx(t,-n)}function bM(t,e){var n=t<0?"-":"",r=Math.abs(t).toString();while(r.length<e)r="0"+r;return n+r}var OM={y:function(t,e){var n=t.getUTCFullYear(),r=n>0?n:1-n;return bM("yy"===e?r%100:r,e.length)},M:function(t,e){var n=t.getUTCMonth();return"M"===e?String(n+1):bM(n+1,2)},d:function(t,e){return bM(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 bM(t.getUTCHours()%12||12,e.length)},H:function(t,e){return bM(t.getUTCHours(),e.length)},m:function(t,e){return bM(t.getUTCMinutes(),e.length)},s:function(t,e){return bM(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 bM(i,e.length)}},wM=OM,xM=864e5;function EM(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=Bw(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/xM)+1}function TM(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=1,n=Bw(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 SM(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=Bw(t),n=e.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var i=TM(r),o=new Date(0);o.setUTCFullYear(n,0,4),o.setUTCHours(0,0,0,0);var a=TM(o);return e.getTime()>=i.getTime()?n+1:e.getTime()>=a.getTime()?n:n-1}function MM(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=SM(t),n=new Date(0);n.setUTCFullYear(e,0,4),n.setUTCHours(0,0,0,0);var r=TM(n);return r}var CM=6048e5;function AM(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=Bw(t),n=TM(e).getTime()-MM(e).getTime();return Math.round(n/CM)+1}function PM(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:Hw(i),a=null==n.weekStartsOn?o:Hw(n.weekStartsOn);if(!(a>=0&&a<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var s=Bw(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 LM(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=Bw(t,e),r=n.getUTCFullYear(),i=e||{},o=i.locale,a=o&&o.options&&o.options.firstWeekContainsDate,s=null==a?1:Hw(a),u=null==i.firstWeekContainsDate?s:Hw(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=PM(c,e),h=new Date(0);h.setUTCFullYear(r,0,u),h.setUTCHours(0,0,0,0);var f=PM(h,e);return n.getTime()>=l.getTime()?r+1:n.getTime()>=f.getTime()?r:r-1}function kM(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:Hw(i),a=null==n.firstWeekContainsDate?o:Hw(n.firstWeekContainsDate),s=LM(t,e),u=new Date(0);u.setUTCFullYear(s,0,a),u.setUTCHours(0,0,0,0);var c=PM(u,e);return c}var DM=6048e5;function RM(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=Bw(t),r=PM(n,e).getTime()-kM(n,e).getTime();return Math.round(r/DM)+1}var IM={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 wM.y(t,e)},Y:function(t,e,n,r){var i=LM(t,r),o=i>0?i:1-i;if("YY"===e){var a=o%100;return bM(a,2)}return"Yo"===e?n.ordinalNumber(o,{unit:"year"}):bM(o,e.length)},R:function(t,e){var n=SM(t);return bM(n,e.length)},u:function(t,e){var n=t.getUTCFullYear();return bM(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 bM(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 bM(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 wM.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 bM(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=RM(t,r);return"wo"===e?n.ordinalNumber(i,{unit:"week"}):bM(i,e.length)},I:function(t,e,n){var r=AM(t);return"Io"===e?n.ordinalNumber(r,{unit:"week"}):bM(r,e.length)},d:function(t,e,n){return"do"===e?n.ordinalNumber(t.getUTCDate(),{unit:"date"}):wM.d(t,e)},D:function(t,e,n){var r=EM(t);return"Do"===e?n.ordinalNumber(r,{unit:"dayOfYear"}):bM(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 bM(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 bM(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 bM(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?IM.noon:0===i?IM.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?IM.evening:i>=12?IM.afternoon:i>=4?IM.morning:IM.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 wM.h(t,e)},H:function(t,e,n){return"Ho"===e?n.ordinalNumber(t.getUTCHours(),{unit:"hour"}):wM.H(t,e)},K:function(t,e,n){var r=t.getUTCHours()%12;return"Ko"===e?n.ordinalNumber(r,{unit:"hour"}):bM(r,e.length)},k:function(t,e,n){var r=t.getUTCHours();return 0===r&&(r=24),"ko"===e?n.ordinalNumber(r,{unit:"hour"}):bM(r,e.length)},m:function(t,e,n){return"mo"===e?n.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):wM.m(t,e)},s:function(t,e,n){return"so"===e?n.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):wM.s(t,e)},S:function(t,e){return wM.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 BM(o);case"XXXX":case"XX":return UM(o);case"XXXXX":case"XXX":default:return UM(o,":")}},x:function(t,e,n,r){var i=r._originalDate||t,o=i.getTimezoneOffset();switch(e){case"x":return BM(o);case"xxxx":case"xx":return UM(o);case"xxxxx":case"xxx":default:return UM(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"+jM(o,":");case"OOOO":default:return"GMT"+UM(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"+jM(o,":");case"zzzz":default:return"GMT"+UM(o,":")}},t:function(t,e,n,r){var i=r._originalDate||t,o=Math.floor(i.getTime()/1e3);return bM(o,e.length)},T:function(t,e,n,r){var i=r._originalDate||t,o=i.getTime();return bM(o,e.length)}};function jM(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+bM(o,2)}function BM(t,e){if(t%60===0){var n=t>0?"-":"+";return n+bM(Math.abs(t)/60,2)}return UM(t,e)}function UM(t,e){var n=e||"",r=t>0?"-":"+",i=Math.abs(t),o=bM(Math.floor(i/60),2),a=bM(i%60,2);return r+o+n+a}var VM=NM;function GM(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 HM(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 zM(t,e){var n,r=t.match(/(P+)(p+)?/),i=r[1],o=r[2];if(!o)return GM(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}}",GM(i,e)).replace("{{time}}",HM(o,e))}var FM={p:HM,P:zM},WM=FM,qM=["D","DD"],ZM=["YY","YYYY"];function YM(t){return-1!==qM.indexOf(t)}function XM(t){return-1!==ZM.indexOf(t)}function KM(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,QM=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,JM=/^'([^]*?)'?$/,tC=/''/g,eC=/[a-zA-Z]/;function nC(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||yM,a=o.options&&o.options.firstWeekContainsDate,s=null==a?1:Hw(a),u=null==i.firstWeekContainsDate?s:Hw(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:Hw(c),h=null==i.weekStartsOn?l:Hw(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=Bw(t);if(!kS(f))throw new RangeError("Invalid time value");var p=$w(f),d=_M(f,p),v={firstWeekContainsDate:u,weekStartsOn:h,locale:o,_originalDate:f},g=r.match(QM).map((function(t){var e=t[0];if("p"===e||"P"===e){var n=WM[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 rC(t);var n=VM[e];if(n)return!i.useAdditionalWeekYearTokens&&XM(t)&&KM(t),!i.useAdditionalDayOfYearTokens&&YM(t)&&KM(t),n(d,t,o.localize,v);if(e.match(eC))throw new RangeError("Format string contains an unescaped latin alphabet character `"+e+"`");return t})).join("");return g}function rC(t){return t.match(JM)[1].replace(tC,"'")}function iC(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 oC=[["15seconds",15e3],["minute",6e4],["30minutes",18e5],["hourly",36e5],["daily",864e5],["monthly",2592e6],["quarterly",7776e6],["yearly",31104e6]];function aC(t,e,n,r,i){var o=0===e,a=2===Number(nC(new Date(t),"c")),s=1===Number(nC(new Date(t),"q")),u=0!==e?n[e-1]:null;switch(r){case"15seconds":return o||fC(t)||pC(t,u)||dC(t);case"minute":return o||fC(t)||pC(t,u)||dC(t);case"30minutes":return o||fC(t)||pC(t,u)||dC(t);case"hourly":return o||fC(t)||pC(t,u)||dC(t);case"daily":return i?o||a||dC(t):o||pC(t,u)||dC(t);case"monthly":return o||dC(t);case"quarterly":return o||s;case"yearly":return!1;default:throw new Error(r+" is not a valid time interval.")}}function sC(t,e,n,r,i){var o=i.showDayName,a="daily"===r&&o?"weekly":r,s=new Date(t),u=pd.getProperty(i,"timeIntervalFormats")[a],c=pd.getProperty(u,"primary"),l=pd.getProperty(u,"secondary"),h=aC(t,e,n,r,o)?c:l,f=i.localeObject;return nC(s,h,{locale:f})}function uC(t){var e=new Date(t);return{M:e.getMonth()+1,d:e.getDate(),H:e.getHours(),m:e.getMinutes(),s:e.getSeconds()}}function cC(t){if(t)return t.slice(1).map((function(e,n){return e-t[n]}))}function lC(t){var e=oC.reduce((function(e,n,r){n[0];var i=n[1],o=oC[e][1],a=Math.abs(o-t),s=Math.abs(i-t);return a<s?e:r}),0);return oC[e][0]}function hC(t){if(1===t.length)return"15seconds";var e=cC(t),n=iC(e);return lC(n)}function fC(t){var e=uC(t),n=e.s,r=e.m,i=e.H;return 0===i&&0===r&&0===n}function pC(t,e){var n=uC(t).M,r=uC(e).M;return n!==r}function dC(t){var e=uC(t),n=e.M,r=e.d,i=e.s,o=e.m,a=e.H;return 1===n&&1===r&&0===a&&0===o&&0===i}var vC=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),gC=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.type="threshold",r.renderType=R.SVG,r.positionService=new LS,r}return vC(e,t),e.prototype.render=function(t){var e=this;void 0===t&&(t=!1);var n=pd.getProperty(this.getOptions(),"axes"),r=[];Object.keys(n).forEach((function(t){var e,i;if(Object.values(j).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===j.LEFT||n===j.RIGHT?(a=r,o=h.services.cartesianScales.getMainXScale()):(o=r,a=h.services.cartesianScales.getMainYScale());var s=i===G.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)},_=pd.flipDomainAndRangeBasedOnOrientation(m,y,g),b=_[0],O=_[1],w=Wm(this);n===j.TOP||n===j.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(ut.Threshold.SHOW,(function(t){e.setThresholdLabelPosition(t.detail),e.label.classed("hidden",!1)})),this.services.events.addEventListener(ut.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===G.TIME){var o=[j.LEFT,j.RIGHT].includes(n),a=this.services.cartesianScales.getMainXScale(),s=this.services.cartesianScales.getMainYScale(),u=o?s:a,c=pd.getProperty(r,"timeScale"),l=hC(u.ticks());return sC(e,0,u.ticks(),l,c)}return e.toLocaleString("en")},e.prototype.appendThresholdLabel=function(){var t=Wm(this.services.domUtils.getHolder()),e=pd.getProperty(this.getOptions(),"style","prefix");this.label=ty.appendOrSelect(t,"div."+Ym.prefix+"--"+e+"--threshold--label").classed("hidden",!0)},e.prototype.setThresholdLabelPosition=function(t){var e=t.event,n=t.datum,r=this.services.domUtils.getHolder(),i=gd(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,[xS.RIGHT,xS.LEFT,xS.TOP,xS.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"]=pd.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){Wm(this.parentNode).select("line.threshold-line").classed("active",!0),t.services.events.dispatchEvent(ut.Threshold.SHOW,{event:e,hoveredElement:Wm(this),datum:Wm(this).datum()})})).on("mouseout",(function(e){Wm(this.parentNode).select("line.threshold-line").classed("active",!1),t.services.events.dispatchEvent(ut.Threshold.HIDE,{event:e,hoveredElement:Wm(this),datum:Wm(this).datum()})}))},e}(RE),mC=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),yC=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="title",e.renderType=R.HTML,e}return mC(e,t),e.prototype.render=function(){var t=this.getComponentContainer(),e=pd.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(ut.Tooltip.SHOW,{event:t,hoveredElement:n,content:n.text()})})).on("mousemove",(function(t){r.services.events.dispatchEvent(ut.Tooltip.MOVE,{event:t})})).on("mouseout",(function(){r.services.events.dispatchEvent(ut.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=ty.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(ut.Tooltip.SHOW,{event:e,hoveredElement:t,content:n})})).on("mousemove",(function(t){a.services.events.dispatchEvent(ut.Tooltip.MOVE,{event:t})})).on("mouseout",(function(){a.services.events.dispatchEvent(ut.Tooltip.HIDE)}))}}},e.prototype.getMaxTitleWidth=function(){return ty.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}(RE),_C=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),bC=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="meter-title",e.renderType=R.SVG,e}return _C(e,t),e.prototype.render=function(){var t=pd.getProperty(this.model.getDisplayData(),0),e=this.getOptions(),n=this.getComponentContainer(),r=e.data.groupMapsTo,i=pd.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=ty.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=pd.getProperty(n,"meter","proportional","total"),o=pd.getProperty(n,"meter","proportional","unit")?pd.getProperty(n,"meter","proportional","unit"):"";if(r===i)t=null;else{var a=null!==i?i-r:r,s=pd.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=ty.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=pd.getProperty(e,"meter","proportional","total"),r=n?pd.getProperty(e,"meter","proportional","total"):this.model.getMaximumDomain(this.model.getDisplayData()),i=pd.getProperty(e,"meter","proportional","unit")?pd.getProperty(e,"meter","proportional","unit"):"",o=pd.getProperty(e,"meter","proportional","totalFormatter"),a=null!==o?o(r):n+" "+i+" total",s=ty.getSVGElementSize(this.services.domUtils.getMainContainer(),{useAttrs:!0}),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",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=ty.getHTMLElementSize(this.services.domUtils.getMainContainer()),r=n.width?n.width:0,i=this.model.getStatus(),o=_t.status.indicatorSize/2,a=ty.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=pd.getProperty(this.model.getDisplayData(),0,"value"),e=this.getComponentContainer(),n=ty.appendOrSelect(e,"text.meter-title"),r=!0===pd.getProperty(this.getOptions(),"meter","statusBar","percentageIndicator","enabled")?[t]:[],i=e.selectAll("text.percent-value").data(r),o=_t.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=ty.appendOrSelect(this.parent,"tspan"),i=_t.statusBar.paddingRight,o=Math.ceil(r.node().getComputedTextLength()),a=ty.appendOrSelect(this.parent,"text.percent-value");a.attr("x",+e.attr("x")+e.node().getComputedTextLength()+o+i)},e.prototype.getMaxTitleWidth=function(){var t=ty.getHTMLElementSize(this.services.domUtils.getMainContainer()),e=pd.getProperty(this.getOptions(),"meter","proportional"),n=t.width?t.width:this.parent.node().getAttribute("width");if(null!==e){var r=ty.appendOrSelect(this.parent,"text.proportional-meter-total").node(),i=ty.getSVGElementSize(r,{useBBox:!0}).width;return n-i-_t.total.paddingLeft}var o=ty.appendOrSelect(this.parent,"text.percent-value"),a=_t.statusBar.paddingRight,s=o.node().getComputedTextLength(),u=ty.appendOrSelect(this.parent,"g.status-indicator").node(),c=ty.getSVGElementSize(u,{useBBox:!0}).width+_t.status.paddingLeft;return n-s-a-c},e.prototype.getStatusIconPathString=function(t){switch(t){case et.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 et.DANGER:return"M10.7 11.5 4.5 5.3 5.3 4.5 11.5 10.7 Z";case et.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}(yC),OC=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),wC=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.type="tooltip",i.renderType=R.HTML,i.isEventListenerAdded=!1,i.positionService=new LS,i.handleShowTooltip=function(t){var e=t.detail.data||t.detail.items,n=i.getTooltipHTML(t),r=ty.appendOrSelect(i.tooltip,"div.content-box");if(pd.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 OC(e,t),e.prototype.addTooltipEventListener=function(){var t=this;this.services.events.addEventListener(ut.Tooltip.MOVE,(function(e){!1===t.tooltip.classed("hidden")&&t.positionTooltip(e)})),this.services.events.addEventListener(ut.Tooltip.SHOW,this.handleShowTooltip),this.services.events.addEventListener(ut.Tooltip.HIDE,this.handleHideTooltip),this.services.events.addEventListener(ut.Chart.MOUSEOUT,this.handleHideTooltip)},e.prototype.removeTooltipEventListener=function(){this.services.events.removeEventListener(ut.Tooltip.MOVE,null),this.services.events.removeEventListener(ut.Tooltip.SHOW,this.handleShowTooltip),this.services.events.removeEventListener(ut.Tooltip.HIDE,this.handleHideTooltip),this.services.events.removeEventListener(ut.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=pd.getProperty(n,"tooltip","truncation","type"),i=pd.getProperty(n,"tooltip","truncation","threshold"),o=pd.getProperty(n,"tooltip","truncation","numCharacter");return r!==U.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=pd.truncateLabel(t.label,r,o)),t.value&&t.value.length>i&&(t.value=pd.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=pd.getProperty(n,"tooltip","valueFormatter");return r?r(t,e):"function"===typeof t.getTime?nC(t,"MMM d, yyyy"):t.toLocaleString()},e.prototype.render=function(){var t=this.getOptions(),e=pd.getProperty(t,"tooltip","enabled");if(e){var n=Wm(this.services.domUtils.getHolder()),r=pd.getProperty(t,"style","prefix");this.tooltip=ty.appendOrSelect(n,"div."+Ym.prefix+"--"+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=pd.getProperty(i,"zoomBar","top","enabled"),a=pd.getProperty(t,"detail","mousePosition");if(a){var s=pd.getProperty(i,"zoomBar","top","type"),u=Mt.height[s];o&&(a[1]+=u+Mt.spacerHeight)}else a=gd(pd.getProperty(t,"detail","event"),n);var c,l=n.offsetWidth,h=n.offsetHeight;c=a[0]/l>.9?xS.LEFT:a[0]/l<.1?xS.RIGHT:this.positionService.findBestPlacementAt({left:a[0],top:a[1]},r,[xS.RIGHT,xS.LEFT,xS.TOP,xS.BOTTOM],(function(){return{width:l,height:h}}));var f=Et.horizontalOffset;c===xS.LEFT&&(f*=-1),e=this.positionService.findPositionAt({left:a[0]+f,top:a[1]},r,c),this.positionService.setElement(r,e)},e}(RE),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)}}(),EC=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},TC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return xC(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=i.data.groupMapsTo,u=o.getDomainLabel(),c=o.getRangeLabel(),l=n[0][a];if(1===n.length){var h=n[0],f=o.getRangeIdentifier(h),p=h[f];r=EC([{label:u,value:l}],Array.isArray(p)&&2===p.length?[{label:"Start",value:p[0]},{label:"End",value:p[1]}]:[{label:c,value:h[f]}]),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:h[s],color:this.model.getFillColor(h[s]),class:this.model.getColorClassName({classNameTypes:[N.TOOLTIP],dataGroupName:h[s]})})}else if(n.length>1){r=[{label:u,value:l}],r=r.concat(n.map((function(t){return{label:t[s],value:t[o.getRangeIdentifier(t)],color:e.model.getFillColor(t[s]),class:e.model.getColorClassName({classNameTypes:[N.TOOLTIP],dataGroupName:t[s]})}})).sort((function(t,e){return e.value-t.value})));var d=o.isDualAxes();if(!d&&!0===pd.getProperty(i,"tooltip","showTotal")){var v=o.getRangeIdentifier();r.push({label:Ol(i,"tooltip.totalLabel")||"Total",value:n.reduce((function(t,e){return t+e[v]}),0),bold:!0})}}return r},e}(wC),SC=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),MC=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.type="chart-clip",i.renderType=R.SVG,i.chartClipId="chart-clip-id-"+Math.floor(99999999999*Math.random()),i.init(),i}return SC(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=ty.appendOrSelect(t,"clipPath."+this.type).attr("id",this.chartClipId);var l=ty.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}(RE),CC=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),AC=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 CC(e,t),e.prototype.createClipPath=function(){var t=this.parent,e=ty.getSVGElementSize(this.parent,{useAttrs:!0}),n=e.width,r=e.height;this.chartClipPath=ty.appendOrSelect(t,"clipPath."+this.type).attr("id",this.chartClipId);var i=ty.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}(MC),PC=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),LC=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},kC=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.type="highlight",r.renderType=R.SVG,r.positionService=new LS,r.highlightStrokeWidth=1,r}return PC(e,t),e.prototype.render=function(t){void 0===t&&(t=!1);var e=pd.getProperty(this.getOptions(),"axes"),n=[];Object.keys(e).forEach((function(t){if(Object.values(j).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=pd.flipDomainAndRangeBasedOnOrientation(d,v,p),m=g[0],y=g[1],_=Wm(this);n===j.TOP||n===j.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=LC(t,["highlightStartMapsTo"]);return m(n[e])})).attr("width",(function(t){var e=t.highlightStartMapsTo,n=t.highlightEndMapsTo,r=LC(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=LC(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=LC(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=LC(t,["highlightEndMapsTo"]);return y(n[e])})).attr("height",(function(t){var e=t.highlightStartMapsTo,n=t.highlightEndMapsTo,r=LC(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=LC(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=LC(t,["color","labelMapsTo"]);return e&&e.scale[r[n]]?e.scale[r[n]]:null}))}))},e}(RE);const DC=Math.PI,RC=2*DC,IC=1e-6,NC=RC-IC;function jC(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function BC(){return new jC}jC.prototype=BC.prototype={constructor:jC,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>IC)if(Math.abs(l*s-u*c)>IC&&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((DC-Math.acos((d+h-v)/(2*g*m)))/2),_=y/m,b=y/g;Math.abs(_-1)>IC&&(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)>IC||Math.abs(this._y1-c)>IC)&&(this._+="L"+u+","+c),n&&(h<0&&(h=h%RC+RC),h>NC?this._+="A"+n+","+n+",0,1,"+l+","+(t-a)+","+(e-s)+"A"+n+","+n+",0,1,"+l+","+(this._x1=u)+","+(this._y1=c):h>IC&&(this._+="A"+n+","+n+",0,"+ +(h>=DC)+","+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 UC=BC;function VC(t){return t[0]}function GC(t){return t[1]}var HC=function(t,e){var n=fv(!0),r=null,i=Sx,o=null;function a(a){var s,u,c,l=(a=hv(a)).length,h=!1;for(null==r&&(o=i(c=UC())),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?VC:fv(t),e="function"===typeof e?e:void 0===e?GC:fv(e),a.x=function(e){return arguments.length?(t="function"===typeof e?e:fv(+e),a):t},a.y=function(t){return arguments.length?(e="function"===typeof t?t:fv(+t),a):e},a.defined=function(t){return arguments.length?(n="function"===typeof t?t:fv(!!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},zC=function(t,e,n){var r=null,i=fv(!0),o=null,a=Sx,s=null;function u(u){var c,l,h,f,p,d=(u=hv(u)).length,v=!1,g=new Array(d),m=new Array(d);for(null==o&&(s=a(p=UC())),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 HC().defined(i).curve(a).context(o)}return t="function"===typeof t?t:void 0===t?VC:fv(+t),e="function"===typeof e?e:fv(void 0===e?0:+e),n="function"===typeof n?n:void 0===n?GC:fv(+n),u.x=function(e){return arguments.length?(t="function"===typeof e?e:fv(+e),r=null,u):t},u.x0=function(e){return arguments.length?(t="function"===typeof e?e:fv(+e),u):t},u.x1=function(t){return arguments.length?(r=null==t?null:"function"===typeof t?t:fv(+t),u):r},u.y=function(t){return arguments.length?(e="function"===typeof t?t:fv(+t),n=null,u):e},u.y0=function(t){return arguments.length?(e="function"===typeof t?t:fv(+t),u):e},u.y1=function(t){return arguments.length?(n=null==t?null:"function"===typeof t?t:fv(+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:fv(!!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},FC=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),WC=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="area",e.renderType=R.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"]?lt.opacity.unselected:lt.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",lt.opacity.selected)},e}return FC(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(ut.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(ut.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=[0,0],i=this.services.cartesianScales,o=i.getOrientation(),a=zC().curve(this.services.curves.getD3Curve()).defined((function(t,e){var n=i.getRangeIdentifier(),r=t[n];return null!==r&&void 0!==r})),s=this.model.getGroupedData(this.configs.groups),u=pd.getProperty(this.getOptions(),"bounds"),c=u&&s&&1===s.length;!c&&u&&console.warn("Bounds can only be shown when having 1 single datagroup, you've supplied "+s.length);var l=function(t,e){return c?i.getBoundedScaledValues(t,e)[0]:i.getRangeValue(0)},h=function(t,e){return c?i.getBoundedScaledValues(t,e)[1]:i.getRangeValue(t,e)};o===V.VERTICAL?(r=this.services.cartesianScales.getMainYScale().domain(),a.x((function(t,e){return i.getDomainValue(t,e)})).y0((function(t,e){return l(t,e)})).y1((function(t,e){return h(t,e)}))):(r=this.services.cartesianScales.getMainXScale().domain(),a.x0((function(t,e){return l(t,e)})).x1((function(t,e){return h(t,e)})).y((function(t,e){return i.getDomainValue(t,e)})));var f=pd.getProperty(this.getOptions(),"color","gradient","enabled"),p=s&&1===s.length&&f;s.length>1&&f&&console.error("Gradients can only be enabled when having 1 single dataset");var d=n.selectAll("path.area").data(s,(function(t){return t.name})),v=Wm(this.services.domUtils.getMainContainer());if(d.exit().attr("opacity",0).remove(),s.length){if(p){var g=v.select("path."+this.model.getColorClassName({classNameTypes:[N.STROKE],dataGroupName:s[0].name})).node(),m=void 0;if(g)m=getComputedStyle(g,null).getPropertyValue("stroke");else{var y=pd.getProperty(this.model.getOptions(),"color","scale");if(null!==y){var _=Object.keys(y);m=y[_[0]]}}uy.appendOrUpdateLinearGradient({svg:this.parent,id:this.services.domUtils.generateElementIDString(s[0].name.replace(" ","")+"_"+this.gradient_id),x1:"0%",x2:"0%",y1:"0%",y2:"100%",stops:uy.getStops(r,m)})}else this.parent.selectAll("defs linearGradient").empty()||this.parent.selectAll("defs linearGradient").each((function(){this.parentNode.remove()}));var b=this,O=d.enter().append("path");p?O.merge(d).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:[N.FILL],dataGroupName:t.name,originalClassName:"area"})})).attr("d",(function(t){var e=t.data;return a(e)})):(O.attr("opacity",0).merge(d).attr("class","area").attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[N.FILL,N.STROKE],dataGroupName:t.name,originalClassName:"area"})})).style("fill",(function(t){return b.model.getFillColor(t.name)})).transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"area-update-enter",animate:t})})).attr("opacity",c?1:lt.opacity.selected).attr("d",(function(t){var e=t.data;return a(e)})),c&&O.attr("fill-opacity",lt.opacity.selected).style("stroke",(function(t){return b.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(ut.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(ut.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e}(RE),qC=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return 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="area-stacked",e.renderType=R.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 pd.getProperty(t,0,i)!==n.datum().name?lt.opacity.unselected:lt.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",lt.opacity.selected)},e}return qC(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(ut.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(ut.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=pd.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 pd.getProperty(t,0,o)}));this.areaGenerator=zC().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 pd.getProperty(t,0,o)})).attr("class","area").attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[N.FILL],dataGroupName:pd.getProperty(t,0,o),originalClassName:"area"})})).style("fill",(function(t){return r.model.getFillColor(pd.getProperty(t,0,o))})).attr("role",a.GRAPHICS_SYMBOL).attr("aria-roledescription","area").attr("aria-label",(function(t){return pd.getProperty(t,0,o)})).transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"area-update-enter",animate:t})})).attr("opacity",lt.opacity.selected).attr("d",this.areaGenerator)},e}(RE),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)}}(),XC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return YC(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=ty.getSVGElementSize(this.parent,{useAttrs:!0}).width;return r.step?Math.min(e.bars.maxWidth,r.step()/2):Math.min(e.bars.maxWidth,.25*i/n)},e.prototype.isOutsideZoomedDomain=function(t,e){var n=this.model.getDisplayData().length;if(n<=1)return!1;var r=this.model.get("zoomDomain");if(void 0!==r){var i=this.services.cartesianScales.getDomainScale();return t<i(r[0])||e>i(r[1])}return!1},e}(RE),KC=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),$C=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="simple-bar",e.renderType=R.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 KC(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(ut.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(ut.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:[N.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===V.VERTICAL||u<0&&s===V.HORIZONTAL?r-2:r+2),!e.isOutsideZoomedDomain(c,l))return pd.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=Wm(this);r.classed("hovered",!0),t.services.events.dispatchEvent(ut.Bar.BAR_MOUSEOVER,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(ut.Tooltip.SHOW,{event:e,hoveredElement:r,data:[n]})})).on("mousemove",(function(e,n){t.services.events.dispatchEvent(ut.Bar.BAR_MOUSEMOVE,{event:e,element:Wm(this),datum:n}),t.services.events.dispatchEvent(ut.Tooltip.MOVE,{event:e})})).on("click",(function(e,n){t.services.events.dispatchEvent(ut.Bar.BAR_CLICK,{event:e,element:Wm(this),datum:n})})).on("mouseout",(function(e,n){var r=Wm(this);r.classed("hovered",!1),t.services.events.dispatchEvent(ut.Bar.BAR_MOUSEOUT,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(ut.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(ut.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(ut.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e}(XC),QC=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),JC=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="grouped-bar",e.renderType=R.SVG,e.padding=5,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 QC(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(ut.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(ut.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=pd.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()===V.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:[N.FILL],dataGroupName:t[i],originalClassName:"bar"})})).style("fill",(function(t){return e.model.getFillColor(t[i])})).attr("d",(function(t){var n=e.groupScale(t[i]),r=e.getBarWidth(),o=n,a=n+r,s=e.services.cartesianScales.getRangeAxisPosition({datum:t}),u=e.services.cartesianScales.getValueThroughAxisPosition(s,0),c=e.services.cartesianScales.getRangeValue(t);if(!e.isOutsideZoomedDomain(o,a))return pd.generateSVGPathString({x0:o,x1:a,y0:u,y1:c},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=Wm(this);r.classed("hovered",!0),t.services.events.dispatchEvent(ut.Bar.BAR_MOUSEOVER,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(ut.Tooltip.SHOW,{event:e,hoveredElement:r,data:[n]})})).on("mousemove",(function(e,n){var r=Wm(this);t.services.events.dispatchEvent(ut.Bar.BAR_MOUSEMOVE,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(ut.Tooltip.MOVE,{event:e})})).on("click",(function(e,n){t.services.events.dispatchEvent(ut.Bar.BAR_CLICK,{event:e,element:Wm(this),datum:n})})).on("mouseout",(function(e,n){var r=Wm(this);r.classed("hovered",!1),t.services.events.dispatchEvent(ut.Bar.BAR_MOUSEOUT,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(ut.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(ut.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(ut.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]===t}))},e.prototype.getGroupWidth=function(){var t=this.model.getGroupedData(this.configs.groups),e=this.getTotalGroupPadding();return this.getBarWidth()*t.length+e},e.prototype.getTotalGroupPadding=function(){var t=this.model.getGroupedData(this.configs.groups);if(1===t.length)return 0;var e=this.services.cartesianScales.getDomainScale(),n=Math.min(5,e.step()/70*5);return n*(t.length-1)},e.prototype.getBarWidth=function(){var t=this.getOptions(),e=pd.getProperty(t,"bars","width"),n=pd.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(),a=this.services.cartesianScales.getDomainScale();return Math.min(n,(a.step()-o)/i)},e.prototype.setGroupScale=function(){var t=this.model.getActiveDataGroupNames(this.configs.groups);this.groupScale=Pw().domain(t).rangeRound([0,this.getGroupWidth()])},e}(XC),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(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="stacked-bar",e.renderType=R.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 tA(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(ut.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(ut.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 pd.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:[N.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()===V.VERTICAL?l+=0===t[1]?2:1:l-=1:h||(e.services.cartesianScales.getOrientation()===V.VERTICAL?l+=1:l-=1)}return pd.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=Wm(this);o.classed("hovered",!0),n.services.events.dispatchEvent(ut.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(ut.Tooltip.SHOW,{event:t,hoveredElement:o,data:[s]})})).on("mousemove",(function(t,e){var r=Wm(this);n.services.events.dispatchEvent(ut.Bar.BAR_MOUSEMOVE,{event:t,element:r,datum:e}),n.services.events.dispatchEvent(ut.Tooltip.MOVE,{event:t})})).on("click",(function(t,e){n.services.events.dispatchEvent(ut.Bar.BAR_CLICK,{event:t,element:Wm(this),datum:e})})).on("mouseout",(function(t,e){var r=Wm(this);r.classed("hovered",!1),n.services.events.dispatchEvent(ut.Bar.BAR_MOUSEOUT,{event:t,element:r,datum:e}),n.services.events.dispatchEvent(ut.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(ut.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(ut.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e}(XC),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="boxplot",e.renderType=R.SVG,e}return nA(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===V.VERTICAL,b=pd.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),T=this.model.getBoxplotData(),S=n.selectAll(".box-group").data(T);S.exit().remove();var M=S.enter().append("g").attr("class","box-group"),C=S.merge(M);M.append("path").merge(S.select("path.vertical-line.start")).attr("class",(function(){return e.model.getColorClassName({classNameTypes:[N.STROKE],originalClassName:"vertical-line start"})})).attr("stroke-width",vt.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 pd.generateSVGPathString({x0:e,x1:n,y0:r,y1:o},y)})),M.append("path").merge(S.select("path.vertical-line.end")).attr("class",(function(){return e.model.getColorClassName({classNameTypes:[N.STROKE],originalClassName:"vertical-line end"})})).attr("stroke-width",vt.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 pd.generateSVGPathString({x0:e,x1:n,y0:r,y1:o},y)})),M.append("path").merge(S.select("path.box")).attr("class",(function(){return e.model.getColorClassName({classNameTypes:[N.FILL,N.STROKE],originalClassName:"box"})})).attr("fill-opacity",vt.box.opacity.default).attr("stroke-width",vt.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 pd.generateSVGPathString({x0:e,x1:n,y0:r,y1:o},y)})),M.append("path").merge(S.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 pd.generateSVGPathString({x0:e,x1:n,y0:r,y1:o},y)})),M.append("path").merge(S.select("path.whisker.start")).attr("class",(function(){return e.model.getColorClassName({classNameTypes:[N.STROKE],originalClassName:"whisker start"})})).attr("stroke-width",vt.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 pd.generateSVGPathString({x0:e,x1:n,y0:r,y1:o},y)})),M.append("path").merge(S.select("path.median")).attr("fill","none").attr("class",(function(){return e.model.getColorClassName({classNameTypes:[N.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 pd.generateSVGPathString({x0:e,x1:n,y0:r,y1:o},y)})),M.append("path").merge(S.select("path.whisker.end")).attr("class",(function(){return e.model.getColorClassName({classNameTypes:[N.STROKE],originalClassName:"whisker end"})})).attr("stroke-width",vt.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 pd.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",vt.circle.radius).attr("class",(function(){return e.model.getColorClassName({classNameTypes:[N.FILL,N.STROKE],originalClassName:"outlier"})})).attr("fill-opacity",vt.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=Wm(this),a=Wm(this.parentNode);a.select("path.box").classed("hovered",!0).attr("fill-opacity",vt.box.opacity.hovered),t.services.events.dispatchEvent(ut.Tooltip.SHOW,{event:r,hoveredElement:o,items:[{label:e.tooltip.groupLabel,value:i[n],class:t.model.getColorClassName({classNameTypes:[N.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(ut.Boxplot.BOX_MOUSEOVER,{event:r,element:o,datum:i})})).on("mousemove",(function(e,n){var r=Wm(this);t.services.events.dispatchEvent(ut.Boxplot.BOX_MOUSEMOVE,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(ut.Tooltip.MOVE,{event:e})})).on("click",(function(e,n){t.services.events.dispatchEvent(ut.Boxplot.BOX_CLICK,{event:e,element:Wm(this),datum:n})})).on("mouseout",(function(e,n){var r=Wm(this),i=Wm(this.parentNode);i.select("path.box").classed("hovered",!1).attr("fill-opacity",vt.box.opacity.default),t.services.events.dispatchEvent(ut.Boxplot.BOX_MOUSEOUT,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(ut.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=Wm(this);a.classed("hovered",!0).attr("fill-opacity",vt.circle.opacity.hovered).classed("unfilled",!1),t.services.events.dispatchEvent(ut.Tooltip.SHOW,{event:i,hoveredElement:a,items:[{label:e.tooltip.groupLabel,value:o[n],class:t.model.getColorClassName({classNameTypes:[N.TOOLTIP]})},{label:"Outlier",value:o[r]}]}),t.services.events.dispatchEvent(ut.Boxplot.OUTLIER_MOUSEOVER,{event:i,element:a,datum:o})})).on("mousemove",(function(e,n){var r=Wm(this);t.services.events.dispatchEvent(ut.Boxplot.OUTLIER_MOUSEMOVE,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(ut.Tooltip.MOVE,{event:e})})).on("click",(function(e,n){t.services.events.dispatchEvent(ut.Boxplot.OUTLIER_CLICK,{event:e,element:Wm(this),datum:n})})).on("mouseout",(function(e,n){var r=Wm(this);r.classed("hovered",!1).attr("fill-opacity",vt.circle.opacity.default),t.services.events.dispatchEvent(ut.Boxplot.OUTLIER_MOUSEOUT,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(ut.Tooltip.HIDE,{hoveredElement:r})}))},e}(RE),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){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="scatter",e.renderType=R.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 iA(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(ut.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(ut.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut);var e=this.configs.fadeInOnChartHolderMouseover;e&&(t.addEventListener(ut.Chart.MOUSEOVER,this.handleChartHolderOnHover),t.addEventListener(ut.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=pd.getProperty(this.getOptions(),"points","enabled")||pd.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=pd.flipDomainAndRangeBasedOnOrientation(this.services.cartesianScales.getHighestDomainThreshold(),this.services.cartesianScales.getHighestRangeThreshold(),o),s=a[0],u=a[1],c=pd.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=pd.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?[N.FILL,N.STROKE]:[N.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=Wm(this);i.classed("hovered",!0).attr("class",(function(n){return t.model.getColorClassName({classNameTypes:[N.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(ut.Tooltip.SHOW,{event:n,hoveredElement:i,data:[r],additionalItems:t.getTooltipAdditionalItems(r)}),t.services.events.dispatchEvent(ut.Scatter.SCATTER_MOUSEOVER,{event:n,element:i,datum:r})})).on("mousemove",(function(e,n){var r=Wm(this);t.services.events.dispatchEvent(ut.Scatter.SCATTER_MOUSEMOVE,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(ut.Tooltip.MOVE,{event:e})})).on("click",(function(e,n){t.services.events.dispatchEvent(ut.Scatter.SCATTER_CLICK,{event:e,element:Wm(this),datum:n})})).on("mouseout",(function(n,r){var i=Wm(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(ut.Scatter.SCATTER_MOUSEOUT,{event:n,element:i,datum:r}),t.services.events.dispatchEvent(ut.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(ut.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(ut.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut),t.removeEventListener(ut.Chart.MOUSEOVER,this.handleChartHolderOnHover),t.removeEventListener(ut.Chart.MOUSEOUT,this.handleChartHolderOnMouseOut)},e}(RE),aA=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return 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="bubble",e.renderType=R.SVG,e}return aA(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=ty.getHTMLElementSize(this.services.domUtils.getMainContainer()),a=i.length>0,s=a?Pv(i):[1,1];return Nw().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=pd.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:[N.FILL,N.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=pd.getProperty(this.getOptions(),"bubble");return[{label:pd.getProperty(e,"radiusLabel"),value:t[pd.getProperty(e,"radiusMapsTo")]}]},e}(oA),uA=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),cA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="bullet",e.renderType=R.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 uA(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(ut.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(ut.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=ty.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),pd.generateSVGPathString({x0:r,x1:i,y0:o,y1:a},e.services.cartesianScales.getOrientation())})).attr("opacity",1)},v=function(){var n=ty.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:[N.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 pd.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=ty.appendOrSelect(i,"g.markers").selectAll("path.marker").data(o.filter((function(t){return null!==pd.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 pd.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!==pd.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=ty.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 pd.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=Wm(this);a.classed("hovered",!0),t.services.events.dispatchEvent(ut.Bar.BAR_MOUSEOVER,{event:i,element:a,datum:o});var s=pd.getProperty(e,"bullet","performanceAreaTitles"),u=t.model.getMatchingRangeIndexForDatapoint(o);t.services.events.dispatchEvent(ut.Tooltip.SHOW,{event:i,hoveredElement:a,items:[{label:e.tooltip.groupLabel||"Group",value:o[n],class:t.model.getColorClassName({classNameTypes:[N.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(ut.Bar.BAR_MOUSEMOVE,{event:e,element:Wm(this),datum:n}),t.services.events.dispatchEvent(ut.Tooltip.MOVE,{event:e})})).on("click",(function(e,n){t.services.events.dispatchEvent(ut.Bar.BAR_CLICK,{event:e,element:Wm(this),datum:n})})).on("mouseout",(function(e,n){var r=Wm(this);r.classed("hovered",!1),t.services.events.dispatchEvent(ut.Bar.BAR_MOUSEOUT,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(ut.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(ut.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(ut.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e}(RE),lA=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),hA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="histogram",e.renderType=R.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 lA(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(ut.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(ut.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 Ol(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:[N.FILL],dataGroupName:t[o],originalClassName:"bar"})})).style("fill",(function(t){return e.model.getFillColor(t[o])})).attr("d",(function(t,n){var i=Ol(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()===V.VERTICAL?l+=1:l-=1),pd.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 pd.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=Wm(this);o.classed("hovered",!0);var a=parseFloat(Ol(i,"data.x0")),s=parseFloat(Ol(i,"data.x1")),u=n.services.cartesianScales.getRangeAxisPosition(),c=n.services.cartesianScales.getScaleLabel(u);n.services.events.dispatchEvent(ut.Tooltip.SHOW,{event:r,hoveredElement:o,items:[{label:Ol(t,"bins.rangeLabel")||"Range",value:a+" – "+s},{label:t.tooltip.groupLabel||"Group",value:i[e],class:n.model.getColorClassName({classNameTypes:[N.TOOLTIP],dataGroupName:i[e]})},{label:c,value:Ol(i,"data."+i[e])}]})})).on("mousemove",(function(t,e){n.services.events.dispatchEvent(ut.Tooltip.MOVE,{event:t})})).on("mouseout",(function(t,e){var r=Wm(this);r.classed("hovered",!1),n.services.events.dispatchEvent(ut.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(ut.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(ut.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e}(RE),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)}}(),pA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="line",e.renderType=R.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"]?yt.opacity.unselected:yt.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",yt.opacity.selected)},e}return fA(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(ut.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(ut.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=pd.flipDomainAndRangeBasedOnOrientation(s,u,i.getOrientation()),l=c[0],h=c[1],f=this.getOptions(),p=HC().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:pd.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:!pd.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:[N.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(ut.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(ut.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e}(RE),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)}}(),vA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="lollipop",e.renderType=R.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]?yt.weight.unselected:yt.weight.selected}))},e.handleScatterOnMouseOut=function(t){e.parent.selectAll("line.line").attr("stroke-width",yt.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"]?yt.opacity.unselected:yt.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",yt.opacity.selected)},e}return dA(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(ut.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(ut.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=pd.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:[N.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===V.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(ut.Scatter.SCATTER_MOUSEOVER,this.handleScatterOnHover),this.services.events.addEventListener(ut.Scatter.SCATTER_MOUSEOUT,this.handleScatterOnMouseOut)},e.prototype.destroy=function(){var t=this.services.events;t.removeEventListener(ut.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(ut.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut),t.removeEventListener(ut.Scatter.SCATTER_MOUSEOVER,this.handleScatterOnHover),t.removeEventListener(ut.Scatter.SCATTER_MOUSEOUT,this.handleScatterOnMouseOut)},e}(oA),gA=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return 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="scatter-stacked",e.renderType=R.SVG,e}return gA(e,t),e.prototype.render=function(t){var e=this,n=pd.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 pd.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}(oA);function yA(t){return t.innerRadius}function _A(t){return t.outerRadius}function bA(t){return t.startAngle}function OA(t){return t.endAngle}function wA(t){return t&&t.padAngle}function xA(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<Jx))return f=(l*(e-o)-h*(t-i))/f,[t+f*u,e+f*c]}function EA(t,e,n,r,i,o,a){var s=t-n,u=e-r,c=(a?o:-o)/Qx(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)*Qx(Xx(0,O*O*b-w*w)),E=(w*_-y*x)/b,T=(-w*y-_*x)/b,S=(w*_+y*x)/b,M=(-w*y+_*x)/b,C=E-g,A=T-m,P=S-g,L=M-m;return C*C+A*A>P*P+L*L&&(E=S,T=M),{cx:E,cy:T,x01:-l,y01:-h,x11:E*(i/O-1),y11:T*(i/O-1)}}var TA=function(){var t=yA,e=_A,n=fv(0),r=null,i=bA,o=OA,a=wA,s=null;function u(){var u,c,l=+t.apply(this,arguments),h=+e.apply(this,arguments),f=i.apply(this,arguments)-eE,p=o.apply(this,arguments)-eE,d=qx(p-f),v=p>f;if(s||(s=u=UC()),h<l&&(c=h,h=l,l=c),h>Jx)if(d>nE-Jx)s.moveTo(h*Yx(f),h*$x(f)),s.arc(0,0,h,f,p,!v),l>Jx&&(s.moveTo(l*Yx(p),l*$x(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,T=E>Jx&&(r?+r.apply(this,arguments):Qx(l*l+h*h)),S=Kx(qx(h-l)/2,+n.apply(this,arguments)),M=S,C=S;if(T>Jx){var A=iE(T/l*$x(E)),P=iE(T/h*$x(E));(w-=2*A)>Jx?(A*=v?1:-1,b+=A,O-=A):(w=0,b=O=(f+p)/2),(x-=2*P)>Jx?(P*=v?1:-1,y+=P,_-=P):(x=0,y=_=(f+p)/2)}var L=h*Yx(y),k=h*$x(y),D=l*Yx(O),R=l*$x(O);if(S>Jx){var I,N=h*Yx(_),j=h*$x(_),B=l*Yx(b),U=l*$x(b);if(d<tE&&(I=xA(L,k,B,U,N,j,D,R))){var V=L-I[0],G=k-I[1],H=N-I[0],z=j-I[1],F=1/$x(rE((V*H+G*z)/(Qx(V*V+G*G)*Qx(H*H+z*z)))/2),W=Qx(I[0]*I[0]+I[1]*I[1]);M=Kx(S,(l-W)/(F-1)),C=Kx(S,(h-W)/(F+1))}}x>Jx?C>Jx?(g=EA(B,U,L,k,h,C,v),m=EA(N,j,D,R,h,C,v),s.moveTo(g.cx+g.x01,g.cy+g.y01),C<S?s.arc(g.cx,g.cy,C,Zx(g.y01,g.x01),Zx(m.y01,m.x01),!v):(s.arc(g.cx,g.cy,C,Zx(g.y01,g.x01),Zx(g.y11,g.x11),!v),s.arc(0,0,h,Zx(g.cy+g.y11,g.cx+g.x11),Zx(m.cy+m.y11,m.cx+m.x11),!v),s.arc(m.cx,m.cy,C,Zx(m.y11,m.x11),Zx(m.y01,m.x01),!v))):(s.moveTo(L,k),s.arc(0,0,h,y,_,!v)):s.moveTo(L,k),l>Jx&&w>Jx?M>Jx?(g=EA(D,R,N,j,l,-M,v),m=EA(L,k,B,U,l,-M,v),s.lineTo(g.cx+g.x01,g.cy+g.y01),M<S?s.arc(g.cx,g.cy,M,Zx(g.y01,g.x01),Zx(m.y01,m.x01),!v):(s.arc(g.cx,g.cy,M,Zx(g.y01,g.x01),Zx(g.y11,g.x11),!v),s.arc(0,0,l,Zx(g.cy+g.y11,g.cx+g.x11),Zx(m.cy+m.y11,m.cx+m.x11),v),s.arc(m.cx,m.cy,M,Zx(m.y11,m.x11),Zx(m.y01,m.x01),!v))):s.arc(0,0,l,O,b,v):s.lineTo(D,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-tE/2;return[Yx(r)*n,$x(r)*n]},u.innerRadius=function(e){return arguments.length?(t="function"===typeof e?e:fv(+e),u):t},u.outerRadius=function(t){return arguments.length?(e="function"===typeof t?t:fv(+t),u):e},u.cornerRadius=function(t){return arguments.length?(n="function"===typeof t?t:fv(+t),u):n},u.padRadius=function(t){return arguments.length?(r=null==t?null:"function"===typeof t?t:fv(+t),u):r},u.startAngle=function(t){return arguments.length?(i="function"===typeof t?t:fv(+t),u):i},u.endAngle=function(t){return arguments.length?(o="function"===typeof t?t:fv(+t),u):o},u.padAngle=function(t){return arguments.length?(a="function"===typeof t?t:fv(+t),u):a},u.context=function(t){return arguments.length?(s=null==t?null:t,u):s},u},SA=function(t,e){return e<t?-1:e>t?1:e>=t?0:NaN},MA=function(t){return t},CA=function(){var t=MA,e=SA,n=null,r=fv(0),i=fv(nE),o=fv(0);function a(a){var s,u,c,l,h,f=(a=hv(a)).length,p=0,d=new Array(f),v=new Array(f),g=+r.apply(this,arguments),m=Math.min(nE,Math.max(-nE,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:fv(+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:fv(+t),a):r},a.endAngle=function(t){return arguments.length?(i="function"===typeof t?t:fv(+t),a):i},a.padAngle=function(t){return arguments.length?(o="function"===typeof t?t:fv(+t),a):o},a},AA=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return 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 PA(t,e){var n=this,r=RO(this._current,t);return function(t){return n._current=r(t),e(n._current)}}var LA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="pie",e.renderType=R.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 AA(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(ut.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(ut.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.getInnerRadius=function(){return bt.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=TA().innerRadius(this.getInnerRadius()).outerRadius(c),this.hoverArc=TA().innerRadius(this.getInnerRadius()).outerRadius(c+bt.hoverArc.outerRadiusOffset);var l=CA().value((function(t){return t[s]})).sort(pd.getProperty(i,"pie","sortFunction")).padAngle(bt.padAngle),h=l(u),f=ty.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:[N.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]+", "+pd.convertValueToPercentage(t.data[s],u,s)+"%"})).attrTween("d",(function(t){return PA.bind(this)(t,n.arc)}));var g=i.pie.labels.enabled,m=g?h.filter((function(t){return t.data[s]>0})):[],y=ty.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):pd.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<bt.callout.minSliceDegree){var i=void 0,o=void 0;return t.index===n-1?(i=t.xPosition+bt.callout.offsetX+bt.callout.textMargin+t.textOffsetX,o=t.yPosition-bt.callout.offsetY,t.direction=X.RIGHT,O.push(t)):(i=t.xPosition-bt.callout.offsetX-t.textOffsetX-bt.callout.textMargin,o=t.yPosition-bt.callout.offsetY,t.direction=X.LEFT,O.push(t)),"translate("+i+", "+o+")"}return"translate("+t.xPosition+", "+t.yPosition+")"})),this.renderCallouts(O);var w=pd.getProperty(i,"donut")?"donut":"pie",x=pd.getProperty(i,w,"alignment"),E=ty.getSVGElementSize(this.getParent(),{useAttrs:!0}).width,T=g?bt.xOffset:0,S=g?bt.yOffset:0,M=c+T;x===z.CENTER?M=E/2:x===z.RIGHT&&(M=E-c-bt.xOffset);var C=c+S;O.length>0&&(C+=bt.yOffsetCallout),r.attr("x",M+7).attr("y",C),this.addEventListeners()},e.prototype.renderCallouts=function(t){var e=ty.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===X.RIGHT?(t.startPos={x:e,y:n+t.textOffsetY},t.endPos={x:e+bt.callout.offsetX,y:n-bt.callout.offsetY+t.textOffsetY},t.intersectPointX=t.endPos.x-bt.callout.horizontalLineLength):(t.startPos={x:e,y:n+t.textOffsetY},t.endPos={x:e-bt.callout.offsetX,y:n-bt.callout.offsetY+t.textOffsetY},t.intersectPointX=t.endPos.x+bt.callout.horizontalLineLength),t}));var i=r.append("line").classed("vertical-line",!0);i.merge(e.selectAll("line.vertical-line")).datum((function(t){return Wm(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 Wm(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=Wm(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(ut.Pie.SLICE_MOUSEOVER,{event:e,element:Wm(this),datum:n});var i=t.getOptions().data.groupMapsTo,o=t.getOptions().pie.valueMapsTo;t.services.events.dispatchEvent(ut.Tooltip.SHOW,{event:e,hoveredElement:r,items:[{label:n.data[i],value:n.data[o]}]})})).on("mousemove",(function(e,n){var r=Wm(this);t.services.events.dispatchEvent(ut.Pie.SLICE_MOUSEMOVE,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(ut.Tooltip.MOVE,{event:e})})).on("click",(function(e,n){t.services.events.dispatchEvent(ut.Pie.SLICE_CLICK,{event:e,element:Wm(this),datum:n})})).on("mouseout",(function(e,n){var r=Wm(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(ut.Pie.SLICE_MOUSEOUT,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(ut.Tooltip.HIDE,{hoveredElement:r})}))},e.prototype.computeRadius=function(){var t=ty.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+bt.radiusOffset:i},e}(RE),kA=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),DA="4,10 8,6 12,10",RA="12,6 8,10 4,6",IA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="gauge",e.renderType=R.SVG,e}return kA(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=pd.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=pd.getProperty(t,"gauge","type"),n=e===J.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=pd.getProperty(e,"gauge","deltaArrow","direction");switch(n){case tt.UP:return DA;case tt.DOWN:return RA;default:return t>0?DA:RA}},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=TA().innerRadius(p).outerRadius(f).startAngle(l).endAngle(h),this.arc=TA().innerRadius(p).outerRadius(f).startAngle(u).endAngle(l),ty.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:[N.FILL],dataGroupName:"value",originalClassName:"arc-foreground"})).style("fill",(function(t){return pd.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=pd.getProperty(r,"gauge","alignment"),m=ty.getSVGElementSize(this.getParent(),{useAttrs:!0}).width,y=f;g===z.CENTER?y=m/2:g===z.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=pd.getProperty(e,"gauge","type"),r=this.getValue(),i=this.getDelta(),o=this.computeRadius(),a=pd.getProperty(e,"gauge","valueFontSize"),s=pd.getProperty(e,"gauge","deltaFontSize"),u=pd.getProperty(e,"gauge","numberSpacing"),c=pd.getProperty(e,"gauge","showPercentageSymbol"),l=0;n!==J.FULL||i?n===J.SEMI&&i&&(l=-(s(o)+u)):l=s(o);var h=ty.appendOrSelect(t,"g.gauge-numbers").attr("transform","translate(0, "+l+")"),f=a(o),p=ty.appendOrSelect(h,"g.gauge-value-number"),d=pd.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=ty.getSVGElementSize(ty.appendOrSelect(t,"text.gauge-value-number"),{useBBox:!0}).width,m=f/2,y=c?"%":"",_=ty.appendOrSelect(p,"text.gauge-value-symbol").style("font-size",m+"px").attr("x",g/2).text(y),b=ty.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?pd.getProperty(n,"gauge","deltaFontSize"):function(){return 0},a=r?pd.getProperty(n,"gauge","numberFormatter"):function(){return null},s=pd.getProperty(n,"gauge","deltaArrow","size"),u=pd.getProperty(n,"gauge","numberSpacing"),c=pd.getProperty(n,"gauge","showPercentageSymbol"),l=ty.appendOrSelect(e,"g.gauge-numbers"),h=ty.appendOrSelect(l,"g.gauge-delta").attr("transform","translate(0, "+(o(i)+u)+")"),f=ty.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=ty.getSVGElementSize(ty.appendOrSelect(e,".gauge-delta-number"),{useBBox:!0}).width,v=pd.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=Wm(this);ty.appendOrSelect(e,"rect.gauge-delta-arrow-backdrop").attr("width","16").attr("height","16").attr("fill","none");var i=pd.getProperty(n,"gauge","status");ty.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=pd.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(ut.Gauge.ARC_MOUSEOVER,{event:e,element:Wm(this),datum:n})})).on("mousemove",(function(e,n){var r=Wm(this);t.services.events.dispatchEvent(ut.Gauge.ARC_MOUSEMOVE,{event:e,element:r,datum:n})})).on("click",(function(e,n){t.services.events.dispatchEvent(ut.Gauge.ARC_CLICK,{event:e,element:Wm(this),datum:n})})).on("mouseout",(function(e,n){var r=Wm(this);t.services.events.dispatchEvent(ut.Gauge.ARC_MOUSEOUT,{event:e,element:r,datum:n})}))},e.prototype.computeRadius=function(){var t=this.getOptions(),e=pd.getProperty(t,"gauge","type"),n=ty.getSVGElementSize(this.parent,{useAttrs:!0}),r=n.width,i=n.height,o=e===J.SEMI?Math.min(r/2,i):Math.min(r/2,i/2);return o},e}(RE),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="donut",e.renderType=R.SVG,e}return NA(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=ty.appendOrSelect(this.getComponentContainer(),"g.center"),o=this.getOptions(),a=this.computeRadius(),s=pd.getProperty(o,"donut","center","label");ty.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(Wm(this))})),null!==s&&""!==s&&ty.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=pd.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?IO:MO;var o=r(i,n);return function(n){var r=e.donut.center.numberFormatter;t.text(r(o(n)))}},e}(LA);const BA=t=>+t;var UA=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),VA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="skeleton",e}return UA(e,t),e.prototype.render=function(){var t=pd.getProperty(this.getOptions(),"data","loading");t?this.renderSkeleton(t):this.removeSkeleton()},e.prototype.renderSkeleton=function(t){if(this.configs.skeleton===K.GRID)this.renderGridSkeleton(t);else if(this.configs.skeleton===K.VERT_OR_HORIZ)this.renderVertOrHorizSkeleton(t);else if(this.configs.skeleton===K.PIE)this.renderPieSkeleton(t);else{if(this.configs.skeleton!==K.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===V.VERTICAL&&this.drawYGrid(t),e===V.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=Nw().domain([0,1]).range(t),this.yScale=Nw().domain([0,1]).range(e)},e.prototype.drawBackdrop=function(t){var e=this.parent,n=ty.getSVGElementSize(e,{useAttrs:!0}),r=n.width,i=n.height;this.backdrop=ty.appendOrSelect(e,"svg.chart-skeleton.DAII").attr("width",r).attr("height",i);var o=ty.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=pd.getProperty(this.getOptions(),"grid","x","numberOfTicks"),r=this.xScale.ticks(n).map((function(t){return t*e})),i=ty.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=pd.getProperty(this.getOptions(),"grid","y","numberOfTicks"),i=this.xScale.ticks(r).map((function(t){return t*e})),o=ty.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=ty.getSVGElementSize(r,{useAttrs:!0}),o=i.width,a=i.height,s=ty.appendOrSelect(r,"svg.chart-skeleton").attr("width",o).attr("height",a),u=0===e?"pie":"donut",c=pd.getProperty(this.getOptions(),u,"alignment");ty.appendOrSelect(s,"rect.chart-skeleton-area-container").attr("width",o).attr("height",a).attr("fill","none");var l=TA().innerRadius(e).outerRadius(t).startAngle(0).endAngle(2*Math.PI),h=t+Math.abs(bt.radiusOffset),f=t+(Math.min(o,a)-2*t)/2,p=ty.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+bt.xOffset;c===z.CENTER?d=o/2:c===z.RIGHT&&(d=o-t-bt.xOffset);var v=t+bt.yOffset;p.attr("transform","translate("+d+", "+v+")")},e.prototype.computeOuterRadius=function(){var t=ty.getSVGElementSize(this.parent,{useAttrs:!0}),e=t.width,n=t.height,r=Math.min(e,n)/2;return r+bt.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=ty.getSVGElementSize(this.parent,{useAttrs:!0}).width,u=0,c=s,l=ty.appendOrSelect(a,"defs").lower(),h=ty.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(BA).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}(RE),GA=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),HA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="skeleton-lines",e}return GA(e,t),e.prototype.render=function(){var e=pd.getProperty(this.getOptions(),"data","loading"),n=!pd.getProperty(this.getOptions(),"grid","x","enabled")&&!pd.getProperty(this.getOptions(),"grid","y","enabled")&&!pd.getProperty(this.getOptions(),"axes","bottom","visible")&&!pd.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=ty.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=ty.appendOrSelect(t,"svg.chart-skeleton.DAII");var e=ty.appendOrSelect(this.backdrop,"rect.chart-skeleton-backdrop");e.classed("shimmer-effect-lines",!1).classed("shimmer-effect-sparkline",!0).style("stroke",null)},e}(VA);function zA(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 FA=function(){return this.eachAfter(zA)},WA=function(t,e){let n=-1;for(const r of this)t.call(e,r,++n,this);return this},qA=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},ZA=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},YA=function(t,e){let n=-1;for(const r of this)if(t.call(e,r,++n,this))return r},XA=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}))},KA=function(t){return this.eachBefore((function(e){e.children&&e.children.sort(t)}))},$A=function(t){var e=this,n=QA(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 QA(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 JA=function(){var t=this,e=[t];while(t=t.parent)e.push(t);return e},tP=function(){return Array.from(this)},eP=function(){var t=[];return this.eachBefore((function(e){e.children||t.push(e)})),t},nP=function(){var t=this,e=[];return t.each((function(n){n!==t&&e.push({source:n.parent,target:n})})),e},rP=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 iP(t,e){t instanceof Map?(t=[void 0,t],void 0===e&&(e=sP)):void 0===e&&(e=aP);var n,r,i,o,a,s=new lP(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 lP(i[o])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(cP)}function oP(){return iP(this).eachBefore(uP)}function aP(t){return t.children}function sP(t){return Array.isArray(t)?t[1]:null}function uP(t){void 0!==t.data.value&&(t.value=t.data.value),t.data=t.data.data}function cP(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function lP(t){this.data=t,this.depth=this.height=0,this.parent=null}function hP(t,e){return t.parent===e.parent?1:2}function fP(t){return t.reduce(pP,0)/t.length}function pP(t,e){return t+e.x}function dP(t){return 1+t.reduce(vP,0)}function vP(t,e){return Math.max(t,e.y)}function gP(t){var e;while(e=t.children)t=e[0];return t}function mP(t){var e;while(e=t.children)t=e[e.length-1];return t}lP.prototype=iP.prototype={constructor:lP,count:FA,each:WA,eachAfter:ZA,eachBefore:qA,find:YA,sum:XA,sort:KA,path:$A,ancestors:JA,descendants:tP,leaves:eP,links:nP,copy:oP,[Symbol.iterator]:rP};var yP=function(){var t=hP,e=1,n=1,r=!1;function i(i){var o,a=0;i.eachAfter((function(e){var n=e.children;n?(e.x=fP(n),e.y=dP(n)):(e.x=o?a+=t(e,o):0,e.y=0,o=e)}));var s=gP(i),u=mP(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 _P(t,e){return t.parent===e.parent?1:2}function bP(t){var e=t.children;return e?e[0]:t.t}function OP(t){var e=t.children;return e?e[e.length-1]:t.t}function wP(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 xP(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 EP(t,e,n){return t.a.parent===e.parent?t.a:n}function TP(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 SP(t){var e,n,r,i,o,a=new TP(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 TP(r[i],i)),n.parent=e;return(a.parent=new TP(null,0)).children=[a],a}TP.prototype=Object.create(lP.prototype);var MP=function(){var t=_P,e=1,n=1,r=null;function i(i){var s=SP(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){xP(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=OP(s),o=bP(o),s&&o)u=bP(u),a=OP(a),a.a=e,i=s.z+h-o.z-c+t(s._,o._),i>0&&(wP(EP(s,e,r),e,i),c+=i,l+=i),h+=s.m,c+=o.m,f+=u.m,l+=a.m;s&&!OP(a)&&(a.t=s,a.m+=h-l),o&&!bP(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 CP(t){return t.source}function AP(t){return t.target}function PP(t){var e=CP,n=AP,r=VC,i=GC,o=null;function a(){var a,s=lv.call(arguments),u=e.apply(this,s),c=n.apply(this,s);if(o||(o=a=UC()),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:fv(+t),a):r},a.y=function(t){return arguments.length?(i="function"===typeof t?t:fv(+t),a):i},a.context=function(t){return arguments.length?(o=null==t?null:t,a):o},a}function LP(t,e,n,r,i){t.moveTo(e,n),t.bezierCurveTo(e=(e+r)/2,n,e,i,r,i)}function kP(){return PP(LP)}var DP=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),RP=6,IP=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="tree",e.renderType=R.SVG,e}return DP(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=ty.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=ty.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=pd.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+RP:30-RP},p=iP({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(ut.Tree.NODE_MOUSEOVER,{event:t,element:Wm(this),datum:e})})).on("click",(function(t,e){0!==e.depth&&(e.children=e.children?null:e._children,g(e)),h.services.events.dispatchEvent(ut.Tree.NODE_CLICK,{event:t,element:Wm(this),datum:e})})).on("mouseout",(function(t,e){h.services.events.dispatchEvent(ut.Tree.NODE_MOUSEOUT,{event:t,element:Wm(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?-RP:RP})).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,_=pd.getProperty(a,"tree","type")===W.DENDROGRAM?yP().size([o,i-h-y*RP-c]):MP().nodeSize([d,v]).size([o,i-h-y*RP-c]),b=kP().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}(RE),NP=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)},jP=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},BP=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},UP=(1+Math.sqrt(5))/2;function VP(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?jP(a,n,r,i,w?r+=c*l/w:o):BP(a,n,r,w?n+=u*l/w:i,o),w-=l,_=b}return m}var GP=function t(e){function n(t,n,r,i,o){VP(e,t,n,r,i,o)}return n.ratio=function(e){return t((e=+e)>1?e:1)},n}(UP);function HP(t){return null==t?null:zP(t)}function zP(t){if("function"!==typeof t)throw new Error;return t}function FP(){return 0}var WP=function(t){return function(){return t}},qP=function(){var t=GP,e=!1,n=1,r=1,i=[0],o=FP,a=FP,s=FP,u=FP,c=FP;function l(t){return t.x0=t.y0=0,t.x1=n,t.y1=r,t.eachBefore(h),i=[0],e&&t.eachBefore(NP),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=zP(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:WP(+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:WP(+t),l):a},l.paddingRight=function(t){return arguments.length?(s="function"===typeof t?t:WP(+t),l):s},l.paddingBottom=function(t){return arguments.length?(u="function"===typeof t?t:WP(+t),l):u},l.paddingLeft=function(t){return arguments.length?(c="function"===typeof t?t:WP(+t),l):c},l};function ZP(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}var YP="#000000",XP="#ffffff",KP="#fcf4d6",$P="#fddc69",QP="#f1c21b",JP="#d2a106",tL="#b28600",eL="#8e6a00",nL="#684e00",rL="#483700",iL="#302400",oL="#1c1500",aL={10:KP,20:$P,30:QP,40:JP,50:tL,60:eL,70:nL,80:rL,90:iL,100:oL},sL="#fff2e8",uL="#ffd9be",cL="#ffb784",lL="#ff832b",hL="#eb6200",fL="#ba4e00",pL="#8a3800",dL="#5e2900",vL="#3e1a00",gL="#231000",mL={10:sL,20:uL,30:cL,40:lL,50:hL,60:fL,70:pL,80:dL,90:vL,100:gL},yL="#fff1f1",_L="#ffd7d9",bL="#ffb3b8",OL="#ff8389",wL="#fa4d56",xL="#da1e28",EL="#a2191f",TL="#750e13",SL="#520408",ML="#2d0709",CL={10:yL,20:_L,30:bL,40:OL,50:wL,60:xL,70:EL,80:TL,90:SL,100:ML},AL="#fff0f7",PL="#ffd6e8",LL="#ffafd2",kL="#ff7eb6",DL="#ee5396",RL="#d02670",IL="#9f1853",NL="#740937",jL="#510224",BL="#2a0a18",UL={10:AL,20:PL,30:LL,40:kL,50:DL,60:RL,70:IL,80:NL,90:jL,100:BL},VL="#f6f2ff",GL="#e8daff",HL="#d4bbff",zL="#be95ff",FL="#a56eff",WL="#8a3ffc",qL="#6929c4",ZL="#491d8b",YL="#31135e",XL="#1c0f30",KL={10:VL,20:GL,30:HL,40:zL,50:FL,60:WL,70:qL,80:ZL,90:YL,100:XL},$L="#edf5ff",QL="#d0e2ff",JL="#a6c8ff",tk="#78a9ff",ek="#4589ff",nk="#0f62fe",rk="#0043ce",ik="#002d9c",ok="#001d6c",ak="#001141",sk={10:$L,20:QL,30:JL,40:tk,50:ek,60:nk,70:rk,80:ik,90:ok,100:ak},uk="#e5f6ff",ck="#bae6ff",lk="#82cfff",hk="#33b1ff",fk="#1192e8",pk="#0072c3",dk="#00539a",vk="#003a6d",gk="#012749",mk="#061727",yk={10:uk,20:ck,30:lk,40:hk,50:fk,60:pk,70:dk,80:vk,90:gk,100:mk},_k="#d9fbfb",bk="#9ef0f0",Ok="#3ddbd9",wk="#08bdba",xk="#009d9a",Ek="#007d79",Tk="#005d5d",Sk="#004144",Mk="#022b30",Ck="#081a1c",Ak={10:_k,20:bk,30:Ok,40:wk,50:xk,60:Ek,70:Tk,80:Sk,90:Mk,100:Ck},Pk="#defbe6",Lk="#a7f0ba",kk="#6fdc8c",Dk="#42be65",Rk="#24a148",Ik="#198038",Nk="#0e6027",jk="#044317",Bk="#022d0d",Uk="#071908",Vk={10:Pk,20:Lk,30:kk,40:Dk,50:Rk,60:Ik,70:Nk,80:jk,90:Bk,100:Uk},Gk="#f2f4f8",Hk="#dde1e6",zk="#c1c7cd",Fk="#a2a9b0",Wk="#878d96",qk="#697077",Zk="#4d5358",Yk="#343a3f",Xk="#21272a",Kk="#121619",$k={10:Gk,20:Hk,30:zk,40:Fk,50:Wk,60:qk,70:Zk,80:Yk,90:Xk,100:Kk},Qk="#f4f4f4",Jk="#e0e0e0",tD="#c6c6c6",eD="#a8a8a8",nD="#8d8d8d",rD="#6f6f6f",iD="#525252",oD="#393939",aD="#262626",sD="#161616",uD={10:Qk,20:Jk,30:tD,40:eD,50:nD,60:rD,70:iD,80:oD,90:aD,100:sD},cD="#f7f3f2",lD="#e5e0df",hD="#cac5c4",fD="#ada8a8",pD="#8f8b8b",dD="#726e6e",vD="#565151",gD="#3c3838",mD="#272525",yD="#171414",_D={10:cD,20:lD,30:hD,40:fD,50:pD,60:dD,70:vD,80:gD,90:mD,100:yD},bD={black:{100:YP},blue:sk,coolGray:$k,cyan:yk,gray:uD,green:Vk,magenta:UL,orange:mL,purple:KL,red:CL,teal:Ak,warmGray:_D,white:{0:XP},yellow:aL};var OD=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),wD=function(t){if(!t)return null;for(var e=0,n=Object.keys(bD);e<n.length;e++)for(var r=n[e],i=bD[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},xD=function(){var t,e=Wm(this.parentNode).select("rect.leaf"),n=getComputedStyle(e.node(),null).getPropertyValue("fill"),r=Jb(n);if(r&&(t=wD(r?r.hex():null)),null===t||void 0===t){var i=lO(r).l;t=Math.abs(100*i-100)}return t>50?"white":"black"},ED=0,TD=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="treemap",e.renderType=R.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 OD(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(ut.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(ut.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(),i=this.model.getDisplayData(),o=this.model.getOptions(),a=pd.getProperty(window,"location"),s=ty.getSVGElementSize(n,{useAttrs:!0}),u=s.width,c=s.height,l=iP({name:o.title||"Treemap",children:i}).sum((function(t){return t.value})).sort((function(t,e){return e.value-t.value})),h=(ZP(r,(function(t){return ZP(t.children,(function(t){return t.value}))})),qP().size([u,c]).paddingInner(1).paddingOuter(0).round(!0)(l)),f=(this.services.transitions,n.selectAll("g[data-name='leaf']").data(h.leaves(),(function(t){return t.data.name})));f.exit().attr("opacity",0).remove();var p=f.enter().append("g").attr("data-name","leaf").attr("data-uid",(function(){return ED++})),d=p.merge(f);d.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 v=d.selectAll("rect.leaf").data((function(t){return[t]}));v.exit().attr("width",0).attr("height",0).remove();var g=v.enter().append("rect").classed("leaf",!0);g.merge(v).attr("width",0).attr("height",0).attr("id",(function(){var t=Wm(this.parentNode).attr("data-uid");return o.style.prefix+"-leaf-"+t})).attr("class",(function(t){while(t.depth>1)t=t.parent;return e.model.getColorClassName({classNameTypes:[N.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)})),d.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=Wm(this.parentNode).attr("data-uid");return o.style.prefix+"-clip-"+t})).append("use").attr("xlink:href",(function(){var t=Wm(this.parentNode.parentNode).attr("data-uid"),e=o.style.prefix+"-leaf-"+t;return new URL("#"+e,a)+""}))}),(function(t){return null}),(function(t){return t.remove()})),d.selectAll("text").data((function(t){if(!0!==t.data.showLabel)return[];var n=t;while(n.depth>1)n=n.parent;var r=lO(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",xD).attr("x",7).attr("y",18);a&&e.attr("clip-path",(function(){var t=Wm(this.parentNode).attr("data-uid"),e=o.style.prefix+"-clip-"+t;return"url("+new URL("#"+e,a)+")"}))}),(function(t){return t.text((function(t){return t.text})).style("fill",xD)}),(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=Wm(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),Jb(i).darker(.7).toString()})),t.services.events.dispatchEvent(ut.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(ut.Treemap.LEAF_MOUSEOVER,{event:e,element:r,datum:n})})).on("mousemove",(function(e,n){var r=Wm(this);t.services.events.dispatchEvent(ut.Treemap.LEAF_MOUSEMOVE,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(ut.Tooltip.MOVE,{event:e})})).on("click",(function(e,n){t.services.events.dispatchEvent(ut.Treemap.LEAF_CLICK,{event:e,element:Wm(this),datum:n})})).on("mouseout",(function(e,n){var r=Wm(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(ut.Treemap.LEAF_MOUSEOUT,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(ut.Tooltip.HIDE,{hoveredElement:r})}))},e}(RE);function SD(t){var e=MD(AD(t),360);return CD(e,[0,10])||CD(e,[350,0])?{textAnchor:$.START,dominantBaseline:Q.MIDDLE}:CD(e,[10,80])?{textAnchor:$.START,dominantBaseline:Q.HANGING}:CD(e,[80,100])?{textAnchor:$.MIDDLE,dominantBaseline:Q.HANGING}:CD(e,[100,170])?{textAnchor:$.END,dominantBaseline:Q.HANGING}:CD(e,[170,190])?{textAnchor:$.END,dominantBaseline:Q.MIDDLE}:CD(e,[190,260])?{textAnchor:$.END,dominantBaseline:Q.BASELINE}:CD(e,[260,280])?{textAnchor:$.MIDDLE,dominantBaseline:Q.BASELINE}:{textAnchor:$.START,dominantBaseline:Q.BASELINE}}function MD(t,e){return(t%e+e)%e}function CD(t,e){var n=e[0],r=e[1];return t>=n&&t<=r}function AD(t){return t*(180/Math.PI)}function PD(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 LD(t,e){return e*Math.sin(t-Math.PI/2)}var kD=RD(Sx);function DD(t){this._curve=t}function RD(t){function e(e){return new DD(t(e))}return e._curve=t,e}function ID(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(RD(t)):e()._curve},t}DD.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 ND=function(){return ID(HC().curve(kD))},jD=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),BD=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="radar",e.renderType=R.SVG,e.getLabelDimensions=function(t){var n=ty.appendOrSelect(e.getComponentContainer(),"g.tmp-tick"),r=ty.appendOrSelect(n,"text").text(t),i=ty.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=pd.getProperty(n,"radar","axes"),i=r.angle,o=r.value,a=pd.getProperty(n,"data","groupMapsTo"),s=pd.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 pd.merge(s,t)},e.normalizeGroupedData=function(t){var n=e.getOptions(),r=pd.getProperty(n,"radar","axes"),i=r.angle,o=r.value,a=pd.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:pd.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?Ot.opacity.unselected:Ot.opacity.selected})).style("stroke-opacity",(function(t){return t.name!==n.datum().name?Ot.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",Ot.opacity.selected).style("stroke-opacity",1)},e}return jD(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(ut.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(ut.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this.getComponentContainer(),r=ty.getSVGElementSize(n,{useAttrs:!0}),i=r.width,o=r.height,s=this.model.getData(),u=this.model.getGroupedData(),c=this.getOptions(),l=pd.getProperty(c,"data","groupMapsTo"),h=pd.getProperty(c,"radar","axes","value"),f=pd.getProperty(c,"radar","axes"),p=f.angle,d=f.value,v=Ot,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,T=E/2;if(!(T<=0)){var S=Pw().domain(this.fullDataNormalized.map((function(t){return t[p]}))).range([0,2*Math.PI].map((function(t){return t-Math.PI/2}))),M=iC(this.fullDataNormalized.map((function(t){return t[d]}))),C=Nw().domain([M>=0?0:M,jw(this.fullDataNormalized.map((function(t){return t[d]})))]).range([_,T]).nice(y),A=C.ticks(y),P=function(t){return e.model.getFillColor(t)},L=ND().angle((function(t){return S(t[p])+Math.PI/2})).radius((function(t){return C(t[d])})).curve(Ax),k=this.uniqueKeys.map((function(t){var n=e.getLabelDimensions(t).width,r=LD(S(t),T);return n+r})),D=jw(k),R={x:D+g,y:o/2},I=ty.appendOrSelect(n,"g.y-axes").attr("role",a.GROUP),j=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}))};j.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=ty.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-"+pd.kebabCase(t)})).attr("stroke-dasharray","0").attr("x1",(function(t){return PD(S(t),0,R).x})).attr("y1",(function(t){return PD(S(t),0,R).y})).attr("x2",(function(t){return PD(S(t),0,R).x})).attr("y2",(function(t){return PD(S(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 PD(S(t),C.range()[0],R).x})).attr("y1",(function(t){return PD(S(t),C.range()[0],R).y})).attr("x2",(function(t){return PD(S(t),C.range()[1],R).x})).attr("y2",(function(t){return PD(S(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 PD(S(t),C.range()[0],R).x})).attr("y1",(function(t){return PD(S(t),C.range()[0],R).y})).attr("x2",(function(t){return PD(S(t),C.range()[1],R).x})).attr("y2",(function(t){return PD(S(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=ty.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 PD(S(t),C.range()[1]+g,R).x})).attr("y",(function(t){return PD(S(t),C.range()[1]+g,R).y})).style("text-anchor",(function(t){return SD(S(t)).textAnchor})).style("dominant-baseline",(function(t){return SD(S(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(n){return n.call((function(n){return n.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 PD(S(t),C.range()[1]+g,R).x})).attr("y",(function(t){return PD(S(t),C.range()[1]+g,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_labels_exit",animate:t})})).attr("opacity",0).remove()}))}));var z=ty.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:[N.FILL,N.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",Ot.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:[N.FILL,N.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=ty.appendOrSelect(n,"g.dots").attr("role",a.GROUP),q=W.selectAll("circle").data(this.fullDataNormalized.filter((function(t){return null!==pd.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:[N.FILL],dataGroupName:t[l],originalClassName:pd.kebabCase(t[p])})})).attr("cx",(function(t){return PD(S(t[p]),C(t[d]),R).x})).attr("cy",(function(t){return PD(S(t[p]),C(t[d]),R).y})).attr("r",0).attr("opacity",0).style("fill",(function(t){return P(t[l])}));var Z=ty.appendOrSelect(n,"g.x-axes-rect").attr("role",a.GROUP),Y=Z.selectAll("rect").data(this.uniqueKeys);Y.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("+AD(S(t))+", "+R.x+", "+R.y+")"}));var X=ty.appendOrSelect(n,"g.y-labels").attr("role",a.GROUP),K=X.selectAll("text").data(Pv(A));K.join((function(n){return n.append("text").attr("opacity",0).text((function(t){return t})).attr("x",(function(t){return PD(-Math.PI/2,C(t),R).x+m})).attr("y",(function(t){return PD(-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 PD(-Math.PI/2,C(t),R).x+m})).attr("y",(function(t){return PD(-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()}))}));var $=pd.getProperty(c,"radar","alignment"),Q=this.getAlignmentXOffset($,n,this.getParent());n.attr("x",Q),this.addEventListeners()}},e.prototype.getAlignmentXOffset=function(t,e,n){var r=ty.getSVGElementSize(e,{useBBox:!0}),i=ty.getSVGElementSize(n,{useAttrs:!0}).width,o=0;return t===z.CENTER?o=Math.floor((i-r.width)/2):t===z.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(ut.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(ut.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.addEventListeners=function(){var t=this,e=pd.getProperty(this.getOptions(),"radar").axes.angle;this.parent.selectAll(".x-axes-rect > rect").on("mouseover",(function(n,r){var i=Wm(this);t.services.events.dispatchEvent(ut.Radar.X_AXIS_MOUSEOVER,{event:n,element:i,datum:r});var o=t.parent.select(".x-axes .x-axis-"+pd.kebabCase(r)),a=t.parent.selectAll(".dots circle."+pd.kebabCase(r));o.classed("hovered",!0).attr("stroke-dasharray","4 4"),a.classed("hovered",!0).attr("opacity",1).attr("r",Ot.dotsRadius);var s=t.fullDataNormalized.filter((function(t){return t[e]===r})),u=t.getOptions(),c=u.data.groupMapsTo,l=pd.getProperty(u,"radar","axes","value");t.services.events.dispatchEvent(ut.Tooltip.SHOW,{event:n,hoveredElement:i,items:s.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:[N.TOOLTIP],dataGroupName:e[c]})}}))})})).on("mousemove",(function(e,n){var r=Wm(this);t.services.events.dispatchEvent(ut.Radar.X_AXIS_MOUSEMOVE,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(ut.Tooltip.MOVE,{event:e})})).on("click",(function(e,n){t.services.events.dispatchEvent(ut.Radar.X_AXIS_CLICK,{event:e,element:Wm(this),datum:n})})).on("mouseout",(function(e,n){var r=Wm(this),i=t.parent.select(".x-axes .x-axis-"+pd.kebabCase(n)),o=t.parent.selectAll(".dots circle."+pd.kebabCase(n));i.classed("hovered",!1).attr("stroke-dasharray","0"),o.classed("hovered",!1).attr("opacity",0).attr("r",0),t.services.events.dispatchEvent(ut.Radar.X_AXIS_MOUSEOUT,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(ut.Tooltip.HIDE)}))},e}(RE),UD=function(t){return"object"===typeof t&&"length"in t?t:Array.from(t)};function VD(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 GD=function(t){var e,n,r=0,i=(t=VD(Array.from(t))).length,o=[];while(r<i)e=t[r],n&&FD(n,e)?++r:(n=qD(o=HD(o,e)),r=0);return n};function HD(t,e){var n,r;if(WD(e,t))return[e];for(n=0;n<t.length;++n)if(zD(e,t[n])&&WD(YD(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(zD(YD(t[n],t[r]),e)&&zD(YD(t[n],e),t[r])&&zD(YD(t[r],e),t[n])&&WD(XD(t[n],t[r],e),t))return[t[n],t[r],e];throw new Error}function zD(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 FD(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 WD(t,e){for(var n=0;n<e.length;++n)if(!FD(t,e[n]))return!1;return!0}function qD(t){switch(t.length){case 1:return ZD(t[0]);case 2:return YD(t[0],t[1]);case 3:return XD(t[0],t[1],t[2])}}function ZD(t){return{x:t.x,y:t.y,r:t.r}}function YD(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 XD(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,T=(f*m-p*g)/O,S=x*x+T*T-1,M=2*(o+w*x+E*T),C=w*w+E*E-o*o,A=-(S?(M+Math.sqrt(M*M-4*S*C))/(2*S):C/M);return{x:r+w+x*A,y:i+E+T*A,r:A}}function KD(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 $D(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 QD(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 JD(t){this._=t,this.next=null,this.previous=null}function tR(t){if(!(i=(t=UD(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;KD(n,e,r=t[2]),e=new JD(e),n=new JD(n),r=new JD(r),e.next=r.previous=n,n.next=e.previous=r,r.next=n.previous=e;t:for(s=3;s<i;++s){KD(e._,n._,r=t[s]),r=new JD(r),u=n.next,c=e.previous,l=n._.r,h=e._.r;do{if(l<=h){if($D(u._,r._)){n=u,e.next=n,n.previous=e,--s;continue t}l+=u._.r,u=u.next}else{if($D(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=QD(e);while((r=r.next)!==n)(a=QD(r))<o&&(e=r,o=a);n=e.next}e=[n._],r=n;while((r=r.next)!==n)e.push(r._);for(r=GD(e),s=0;s<i;++s)e=t[s],e.x-=r.x,e.y-=r.y;return r.r}function eR(t){return Math.sqrt(t.value)}var nR=function(){var t=null,e=1,n=1,r=FP;function i(i){return i.x=e/2,i.y=n/2,t?i.eachBefore(rR(t)).eachAfter(iR(r,.5)).eachBefore(oR(1)):i.eachBefore(rR(eR)).eachAfter(iR(FP,1)).eachAfter(iR(r,i.r/Math.min(e,n))).eachBefore(oR(Math.min(e,n)/(2*i.r))),i}return i.radius=function(e){return arguments.length?(t=HP(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:WP(+t),i):r},i};function rR(t){return function(e){e.children||(e.r=Math.max(0,+t(e)||0))}}function iR(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=tR(r),s)for(i=0;i<a;++i)r[i].r-=s;n.r=o+s}}}function oR(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 aR=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),sR=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},uR=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="circle-pack",e.renderType=R.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:pt.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 aR(e,t),e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this.getComponentContainer({withinChartClip:!0}),r=ty.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=pd.getProperty(c,"canvasZoom","enabled");s&&pd.getProperty(a,0,"children")&&(a=pd.getProperty(a,0,"children"));var h=iP({children:a}).sum((function(t){return t.value})).sort((function(t,e){return e.value-t.value})),f=nR().size([i,o]).padding((function(t){return t.depth>=1?pt.padding.children+3:pt.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:[N.FILL,N.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",pt.circles.fillOpacity),!0===l&&this.focal&&(this.services.canvasZoom.zoomIn(this.focal,v,ft),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",pt.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(ut.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(ut.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.removeBackgroundListeners=function(){var t=Wm(this.services.domUtils.getMainContainer());t.on("click",(function(){return null}))},e.prototype.setBackgroundListeners=function(){var t=Wm(this.services.domUtils.getMainContainer()),e=this,n=this.parent.selectAll("circle.node"),r=pd.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=Wm(this);r.classed("hovered",!0);var i=t.model.getHierarchyLevel(),o=i>2&&!r.classed("focal"),a=pd.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:Ol(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(ut.Tooltip.SHOW,{event:e,hoveredElement:r,items:sR([{color:f,label:n.data.name,labelIcon:s&&a&&i<=2?t.getZoomIcon():null,value:l}],u,c)})}t.services.events.dispatchEvent(ut.CirclePack.CIRCLE_MOUSEOVER,{event:e,element:r,datum:n})})).on("mousemove",(function(e,n){var r=Wm(this);t.services.events.dispatchEvent(ut.CirclePack.CIRCLE_MOUSEMOVE,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(ut.Tooltip.MOVE,{event:e})})).on("mouseout",(function(e,n){var r=Wm(this);r.classed("hovered",!1),n.children&&t.unhighlightChildren(n.children),t.services.events.dispatchEvent(ut.CirclePack.CIRCLE_MOUSEOUT,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(ut.Tooltip.HIDE,{hoveredElement:r})})).on("click",(function(e,n){var r=Wm(this),i=r.classed("non-focal"),o=pd.getProperty(t.getOptions(),"canvasZoom","enabled")&&t.model.getHierarchyLevel()>2;if(o){var a=t.parent.selectAll("circle.node"),s=Wm(t.services.domUtils.getMainContainer());s.classed("zoomed-in",!1),t.focal=null,t.model.updateHierarchyLevel(2),t.services.canvasZoom.zoomOut(a,ft)}else if(2===n.depth&&n.children&&!i){a=t.parent.selectAll("circle.node"),s=Wm(t.services.domUtils.getMainContainer());s.classed("zoomed-in",!0),t.focal=n,t.model.updateHierarchyLevel(3),t.services.canvasZoom.zoomIn(n,a,ft),e.stopPropagation()}t.services.events.dispatchEvent(ut.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(ut.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(ut.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut),this.removeBackgroundListeners()},e}(RE),cR=n("2a60"),lR=n.n(cR),hR=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),fR=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="wordcloud",e.renderType=R.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 hR(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(ut.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(ut.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=ty.getSVGElementSize(n,{useAttrs:!0}),h=l.width,f=l.height;if(0!==h&&0!==f){var p=lR()().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=ty.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:[N.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=ty.getHTMLElementSize(this.services.domUtils.getMainContainer()),o=r.length>0,a=o?Pv(r):[1,1];return Nw().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=pd.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(ut.WordCloud.WORD_MOUSEOVER,{event:i,element:Wm(this),datum:o}),n.services.events.dispatchEvent(ut.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:[N.TOOLTIP],dataGroupName:o[e]})}]})})).on("mousemove",(function(t,e){var r=Wm(this);n.services.events.dispatchEvent(ut.WordCloud.WORD_MOUSEMOVE,{element:r,datum:e}),n.services.events.dispatchEvent(ut.Tooltip.MOVE,{event:t})})).on("click",(function(t,e){n.services.events.dispatchEvent(ut.WordCloud.WORD_CLICK,{event:t,element:Wm(this),datum:e})})).on("mouseout",(function(t,e){var i=Wm(this);r(null),n.services.events.dispatchEvent(ut.WordCloud.WORD_MOUSEOUT,{event:t,element:i,datum:e}),n.services.events.dispatchEvent(ut.Tooltip.HIDE,{hoveredElement:i})}))},e}(RE);function pR(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 dR(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 vR(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 gR(t,e){return t.sourceLinks.length?t.depth:e-1}function mR(t){return function(){return t}}function yR(t,e){return bR(t.source,e.source)||t.index-e.index}function _R(t,e){return bR(t.target,e.target)||t.index-e.index}function bR(t,e){return t.y0-e.y0}function OR(t){return t.value}function wR(t){return t.index}function xR(t){return t.nodes}function ER(t){return t.links}function TR(t,e){const n=t.get(e);if(!n)throw new Error("missing: "+e);return n}function SR({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 MR(){let t,e,n,r=0,i=0,o=1,a=1,s=24,u=8,c=wR,l=gR,h=xR,f=ER,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),SR(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=TR(r,t)),"object"!==typeof e&&(e=i.target=TR(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(pR(e.sourceLinks,OR),pR(e.targetLinks,OR)):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=dR(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=vR(e,e=>(a-i-(e.length-1)*t)/pR(e,OR));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)/(dR(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(bR),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(bR),E(i,r)}}function E(e,n){const r=e.length>>1,o=e[r];S(e,o.y0-t,r-1,n),T(e,o.y1+t,r+1,n),S(e,a,e.length-1,n),T(e,i,0,n)}function T(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 S(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(_R);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(_R),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 SR(t),t},d.nodeId=function(t){return arguments.length?(c="function"===typeof t?t:mR(t),d):c},d.nodeAlign=function(t){return arguments.length?(l="function"===typeof t?t:mR(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:mR(t),d):h},d.links=function(t){return arguments.length?(f="function"===typeof t?t:mR(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 CR=Math.PI,AR=2*CR,PR=1e-6,LR=AR-PR;function kR(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function DR(){return new kR}kR.prototype=DR.prototype={constructor:kR,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>PR)if(Math.abs(l*s-u*c)>PR&&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((CR-Math.acos((d+h-v)/(2*g*m)))/2),_=y/m,b=y/g;Math.abs(_-1)>PR&&(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)>PR||Math.abs(this._y1-c)>PR)&&(this._+="L"+u+","+c),n&&(h<0&&(h=h%AR+AR),h>LR?this._+="A"+n+","+n+",0,1,"+l+","+(t-a)+","+(e-s)+"A"+n+","+n+",0,1,"+l+","+(this._x1=u)+","+(this._y1=c):h>PR&&(this._+="A"+n+","+n+",0,"+ +(h>=CR)+","+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 RR=DR,IR=Array.prototype.slice,NR=function(t){return function(){return t}};function jR(t){return t[0]}function BR(t){return t[1]}function UR(t){return t.source}function VR(t){return t.target}function GR(t){var e=UR,n=VR,r=jR,i=BR,o=null;function a(){var a,s=IR.call(arguments),u=e.apply(this,s),c=n.apply(this,s);if(o||(o=a=RR()),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:NR(+t),a):r},a.y=function(t){return arguments.length?(i="function"===typeof t?t:NR(+t),a):i},a.context=function(t){return arguments.length?(o=null==t?null:t,a):o},a}function HR(t,e,n,r,i){t.moveTo(e,n),t.bezierCurveTo(e=(e+r)/2,n,e,i,r,i)}function zR(){return GR(HR)}function FR(t){return[t.source.x1,t.y0]}function WR(t){return[t.target.x0,t.y1]}var qR=function(){return zR().source(FR).target(WR)},ZR=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),YR=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="alluvial",e.renderType=R.SVG,e}return ZR(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=ty.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=wt.minNodePadding;a.alluvial.nodePadding>wt.minNodePadding&&(u=a.alluvial.nodePadding);var c=MR().nodeId((function(t){return t.name})).nodeWidth(wt.nodeWidth).nodePadding(u).extent([[2,30],[i-2,o]]);this.graph=c({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 l={};this.graph.nodes.forEach((function(t){var e,n=t.x0;t.category&&(l[n]=null===(e=t)||void 0===e?void 0:e.category)}));var h=n.append("g").classed("header-arrows",!0).selectAll("g").data(Object.keys(l)).join("g").attr("transform",(function(t){return"translate("+t+", 0)"}));h.append("text").attr("id",(function(t,n){return e.services.domUtils.generateElementIDString("alluvial-category-"+n)})).style("font-size","14px").text((function(t){return l[t]?l[t]:""})).attr("y",20).attr("x",(function(t,n){var r=e.services.domUtils.generateElementIDString("alluvial-category-"+n),i=ty.getSVGElementSize(Wm("text#"+r),{useBBox:!0}).width,o=0;return t+o>=i&&(o=4-i),o})),n.append("g").attr("fill","none").selectAll("g").data(this.graph.links).join("path").classed("link",!0).attr("d",qR()).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:[N.STROKE],dataGroupName:0,originalClassName:"link"}):e.model.getColorClassName({classNameTypes:[N.STROKE],dataGroupName:t.source.index,originalClassName:"link"})})).style("stroke",(function(t){return e.model.getFillColor(t.source.name)})).attr("stroke-width",(function(t){return Math.max(1,t.width)})).style("stroke-opacity",wt.opacity.default).attr("aria-label",(function(t){return t.source.name+" → "+t.target.name+" ("+t.value+(a.alluvial.units?" "+a.alluvial.units:"")+")"}));var f=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+")"}));f.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 p=f.append("g").attr("id",(function(t){return e.services.domUtils.generateElementIDString("alluvial-node-title-"+t.index)}));p.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+")"})),p.append("rect").classed("node-text-bg",!0).attr("width",(function(t,n){var r=e.services.domUtils.generateElementIDString("alluvial-node-text-"+n),i=ty.getSVGElementSize(Wm("text#"+r),{useBBox:!0}).width;return i+8})).attr("height",18).attr("stroke-width",2).lower(),p.attr("transform",(function(t,n){var r=e.services.domUtils.generateElementIDString("alluvial-node-text-"+n),i=ty.getSVGElementSize(Wm("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=pd.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?(Wm(t).lower(),r.style("stroke-opacity",wt.opacity.default)):r.style("stroke-opacity",(function(){return t===this?(Wm(this).raise(),wt.opacity.selected):wt.opacity.unfocus}))}),33);this.parent.selectAll("path.link").on("mouseover",(function(r,i){var o=Wm(this);n(this,"mouseover"),o.classed("link-hovered",!0);var a=getComputedStyle(this).getPropertyValue("stroke");e.services.events.dispatchEvent(ut.Alluvial.LINE_MOUSEOVER,{event:r,element:o,datum:i}),e.services.events.dispatchEvent(ut.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(ut.Alluvial.LINE_MOUSEMOVE,{event:t,element:Wm(this),datum:n}),e.services.events.dispatchEvent(ut.Tooltip.MOVE,{event:t})})).on("click",(function(t,n){e.services.events.dispatchEvent(ut.Alluvial.LINE_CLICK,{event:t,element:Wm(this),datum:n})})).on("mouseout",(function(t,r){var i=Wm(this);n(this,"mouseout"),i.classed("link-hovered",!1),e.services.events.dispatchEvent(ut.Alluvial.LINE_MOUSEOUT,{event:t,element:i,datum:r}),e.services.events.dispatchEvent(ut.Tooltip.HIDE,{event:t,hoveredElement:i})}))},e.prototype.addNodeEventListener=function(){var t=this,e=this,n=pd.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}))?(Wm(this).classed("link-hovered",!0).raise(),wt.opacity.selected):wt.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",wt.opacity.default)}),66);e.parent.selectAll(".node-group").on("mouseover",(function(t,r){var i=Wm(this),o=[];if(e.traverse({link:"sourceLinks",node:"target"},r,o),e.traverse({link:"targetLinks",node:"source"},r,o),o.length){var a=pd.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=pd.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(ut.Alluvial.NODE_MOUSEOVER,{event:t,element:i,datum:r})}})).on("mousemove",(function(t,n){e.services.events.dispatchEvent(ut.Alluvial.NODE_MOUSEMOVE,{event:t,element:Wm(this),datum:n}),e.services.events.dispatchEvent(ut.Tooltip.MOVE,{event:t})})).on("click",(function(t,n){e.services.events.dispatchEvent(ut.Alluvial.NODE_CLICK,{event:t,element:Wm(this),datum:n})})).on("mouseout",(function(t,r){var i=Wm(this),o=pd.getTranformOffsets(i.attr("transform"));if(i.classed("node-hovered",!1).attr("transform","translate("+(o.x+2)+", "+o.y+")").select("rect.node").attr("width",wt.nodeWidth),r.x0-2===0){var a=e.services.domUtils.generateElementIDString("alluvial-node-title-"+r.index),s=e.parent.select("g#"+a),u=pd.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(ut.Alluvial.NODE_MOUSEOUT,{event:t,element:i,datum:r}),e.services.events.dispatchEvent(ut.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="<Transparent Rectangle>" 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}(RE),XR=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),KR=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="spacer",e}return XR(e,t),e.prototype.render=function(){this.getComponentContainer().style("width",(this.configs.size||xt.default.size)+"px").style("height",(this.configs.size||xt.default.size)+"px").attr("opacity",0)},e}(RE),$R=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),QR=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 $R(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=pd.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 pd.getProperty(t,"growth")===Z.STRETCH})).size()},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this.parent,r=ty.getHTMLElementSize(n.node()),i=r.width,o=r.height,a=this.configs.direction===q.ROW||this.configs.direction===q.ROW_REVERSE,s=pd.getProperty(this.model.getOptions(),"style","prefix"),u=n.classed(Ym.prefix+"--"+s+"--layout-row",this.configs.direction===q.ROW).classed(Ym.prefix+"--"+s+"--layout-row-reverse",this.configs.direction===q.ROW_REVERSE).classed(Ym.prefix+"--"+s+"--layout-column",this.configs.direction===q.COLUMN).classed(Ym.prefix+"--"+s+"--layout-column-reverse",this.configs.direction===q.COLUMN_REVERSE).classed(Ym.prefix+"--"+s+"--layout-alignitems-center",this.configs.alignItems===Y.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=Wm(n),o=pd.getProperty(e,"renderType"),a=o===R.SVG;r.setParent(a?ty.appendOrSelect(i,"svg.layout-svg-wrapper").attr("width","100%").attr("height","100%"):i);var s=pd.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=pd.getProperty(t,"growth"),n=pd.getProperty(t,"renderType"),r=n===R.SVG?ty.getSVGElementSize(Wm(this).select("svg.layout-svg-wrapper"),{useBBox:!0}):ty.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=pd.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=pd.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}(RE),JR=function(t){return t},tI=1,eI=2,nI=3,rI=4,iI=1e-6;function oI(t){return"translate("+t+",0)"}function aI(t){return"translate(0,"+t+")"}function sI(t){return e=>+t(e)}function uI(t,e){return e=Math.max(0,t.bandwidth()-2*e)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function cI(){return!this.__axis}function lI(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===tI||t===rI?-1:1,l=t===rI||t===eI?"x":"y",h=t===tI||t===nI?oI:aI;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):JR:i,v=Math.max(o,0)+s,g=e.range(),m=+g[0]+u,y=+g[g.length-1]+u,_=(e.bandwidth?uI:sI)(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"),T=w.select("line"),S=w.select("text");O=O.merge(O.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),w=w.merge(E),T=T.merge(E.append("line").attr("stroke","currentColor").attr(l+"2",c*o)),S=S.merge(E.append("text").attr("fill","currentColor").attr(l,c*v).attr("dy",t===tI?"0em":t===nI?"0.71em":"0.32em")),f!==b&&(O=O.transition(f),w=w.transition(f),T=T.transition(f),S=S.transition(f),x=x.transition(f).attr("opacity",iI).attr("transform",(function(t){return isFinite(t=_(t))?h(t+u):this.getAttribute("transform")})),E.attr("opacity",iI).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===rI||t===eI?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)})),T.attr(l+"2",c*o),S.attr(l,c*v).text(d),b.filter(cI).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===eI?"start":t===rI?"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 hI(t){return lI(tI,t)}function fI(t){return lI(eI,t)}function pI(t){return lI(nI,t)}function dI(t){return lI(rI,t)}var vI=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),gI=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.type="axes",i.renderType=R.SVG,r&&(i.configs=r),i.margins=i.configs.margins,i}return vI(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=pd.getProperty(o,"axes",i,"visible"),u=this.getComponentContainer(),c=ty.getSVGElementSize(u,{useAttrs:!0}),l=c.width,h=c.height,f=ty.appendOrSelect(u,"g.axis."+i);i===j.BOTTOM||i===j.TOP?(n=this.configs.axes[j.LEFT]?this.margins.left:0,r=this.configs.axes[j.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===G.LABELS||this.scaleType===G.LABELS_RATIO?d.rangeRound([n,r]):d.range([n,r]),i){case j.LEFT:p=dI;break;case j.BOTTOM:p=pI;break;case j.RIGHT:p=fI;break;case j.TOP:p=hI;break}f.attr("aria-label",i+" axis");var v=!f.select("g.ticks").empty(),g=ty.appendOrSelect(f,"g.ticks");v||(g.attr("role",a.GRAPHICS_OBJECT+" "+a.GROUP),g.attr("aria-label",i+" ticks"));var m=ty.appendOrSelect(f,"g.ticks.invisible").style("opacity","0").style("pointer-events","none").attr("aria-hidden",!0).attr("aria-label","invisible "+i+" ticks"),y=pd.getProperty(o,"axes",i),_=this.scaleType===G.TIME||y.scaleType===G.TIME,b=i===j.LEFT||i===j.RIGHT,O=this.model.get("zoomDomain");if(O&&_&&!b&&d.domain(O),s){var w=pd.getProperty(y,"scaleType"),x=pd.getProperty(o,"data","loading"),E=pd.getProperty(y,"ticks","number"),T=pd.getProperty(y,"ticks","values"),S=pd.getProperty(y,"truncation","type"),M=pd.getProperty(y,"truncation","threshold"),C=pd.getProperty(y,"truncation","numCharacter"),A=null!==E,P=pd.getProperty(o,"timeScale"),L=ty.appendOrSelect(m,"g.tick"),k=ty.appendOrSelect(L,"text").text("0"),D=ty.getSVGElementSize(k.node(),{useBBox:!0}).height;L.remove();var R,I=this.scaleType||y.scaleType||G.LINEAR,N=p(d).tickSizeOuter(0);if(d.ticks){var B=void 0;if(A?B=E:(B=ht.ticks.number,b&&(B=this.getNumberOfFittingTicks(h,D,ht.ticks.verticalSpaceRatio))),1===d.ticks().length&&0===d.ticks()[0]&&(B=0),N.ticks(B),_)if(d.ticks(B).length){var V=pd.getProperty(o,"timeScale","addSpaceOnEdges"),H=pd.getProperty(o,"axes",i,"domain"),z=void 0,F=d.copy();V&&!H&&F.nice(B),z=F.ticks(B),V&&z.length>2&&!H&&(z.splice(z.length-1,1),z.splice(0,1)),N.tickValues(z)}else N.tickValues([])}var W=pd.getProperty(y,"ticks","formatter");if(_){var q=hC(N.tickValues());R=null===W?function(t,e){return sC(t,e,N.tickValues(),q,P)}:function(t,e){var n=sC(t,e,N.tickValues(),q,P);return W(t,e,n)}}else null===W?I===G.LINEAR&&(R=function(t){return t.toLocaleString()}):R=W;N.tickFormat(R);var Z,Y=this.services.cartesianScales.getScaleByPosition(i).domain(),X=Y[0],K=Y[1];if(T){if(_)T.forEach((function(t,e){void 0===t.getTime&&(T[e]=new Date(t))})),Z=T.filter((function(t){var e=t.getTime();return e>=new Date(X).getTime()&&e<=new Date(K).getTime()}));else if(w===G.LABELS){var $=this.services.cartesianScales.getScaleByPosition(i).domain();Z=T.filter((function(t){return $.includes(t)}))}else Z=T.filter((function(t){return t>=X&&t<=K}));N.tickValues(Z)}switch(i){case j.LEFT:g.attr("transform","translate("+this.margins.left+", 0)");break;case j.BOTTOM:g.attr("transform","translate(0, "+(h-this.margins.bottom)+")");break;case j.RIGHT:g.attr("transform","translate("+(l-this.margins.right)+", 0)");break;case j.TOP:g.attr("transform","translate(0, "+this.margins.top+")");break}var Q=this.model.isDataEmpty();if(y.title){var J=ty.appendOrSelect(f,"text.axis-title").html(Q||x?"":y.title),tt=pd.getProperty(y,"titleOrientation");switch(i){case j.LEFT:tt===ot.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 j.BOTTOM:J.attr("transform","translate("+(this.margins.left/2+d.range()[1]/2)+", "+(h+4)+")").style("text-anchor","middle");break;case j.RIGHT:tt===ot.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 j.TOP:var et=ty.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 rt=hC(N.tickValues()),it=P.showDayName,at=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=at.selectAll(".tick").data(N.tickValues(),d).order().select("text");st.style("font-weight",(function(t,e){return aC(t,e,N.tickValues(),rt,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===j.BOTTOM||i===j.TOP){var ut=!1,ct=pd.getProperty(y,"ticks","rotation");if(ct===nt.ALWAYS)ut=!0;else if(ct===nt.NEVER)ut=!1;else if(!ct||ct===nt.AUTO)if(d.step){var lt=m.selectAll("g.tick text").nodes();ut=lt.some((function(t){return ty.getSVGElementSize(t,{useBBox:!0}).width>=d.step()}))}else{ut=!1;var ft,pt=m.append("text").text("A"),dt=ty.getSVGElementSize(pt.node(),{useBBox:!0}).width;m.selectAll("g.tick").each((function(){var t=Wm(this),e=parseFloat(pd.getProperty(pd.getTranslationValues(this),"tx"));null!==e&&ft+t.text().length*dt*.8>=e&&(ut=!0),ft=e}))}ut?(A||(N.ticks(this.getNumberOfFittingTicks(l,D,ht.ticks.horizontalSpaceRatio)),m.call(N),g.call(N)),f.selectAll("g.ticks g.tick text").attr("transform","rotate(-45)").style("text-anchor",i===j.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})),S!==U.NONE&&w===G.LABELS&&!T){var vt=this.services.cartesianScales.getScaleDomain(i);if(vt.length>0){var gt=u.select("g.axis."+i+" g.ticks g.tick").html();f.selectAll("g.ticks g.tick").html(gt),f.selectAll("g.tick text").data(vt).text((function(t){return t.length>M?pd.truncateLabel(t,S,C):t})),this.getInvisibleAxisRef().selectAll("g.tick text").data(vt).text((function(t){return t.length>M?pd.truncateLabel(t,S,C):t})),f.selectAll("g.ticks").html(this.getInvisibleAxisRef().html()),f.selectAll("g.tick text").data(vt)}}this.addEventListeners()}else g.attr("aria-hidden",!0)},e.prototype.addEventListeners=function(){var t=this.getComponentContainer(),e=this.configs.position,n=ty.appendOrSelect(t,"g.axis."+e),r=this.getOptions(),i=pd.getProperty(r,"axes",e),o=pd.getProperty(i,"scaleType"),a=pd.getProperty(i,"truncation","threshold"),s=(this.scaleType===G.TIME||(i.scaleType,G.TIME),this);n.selectAll("g.tick text").on("mouseover",(function(t,e){s.services.events.dispatchEvent(ut.Axis.LABEL_MOUSEOVER,{event:t,element:Wm(this),datum:e}),o===G.LABELS&&e.length>a&&s.services.events.dispatchEvent(ut.Tooltip.SHOW,{event:t,hoveredElement:Wm(this),content:e})})).on("mousemove",(function(t,e){s.services.events.dispatchEvent(ut.Axis.LABEL_MOUSEMOVE,{event:t,element:Wm(this),datum:e}),o===G.LABELS&&e.length>a&&s.services.events.dispatchEvent(ut.Tooltip.MOVE,{event:t})})).on("click",(function(t,e){s.services.events.dispatchEvent(ut.Axis.LABEL_CLICK,{event:t,element:Wm(this),datum:e})})).on("mouseout",(function(t,e){s.services.events.dispatchEvent(ut.Axis.LABEL_MOUSEOUT,{event:t,element:Wm(this),datum:e}),o===G.LABELS&&s.services.events.dispatchEvent(ut.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 pd.clamp(r,2,ht.ticks.number)},e.prototype.destroy=function(){var t=this.getComponentContainer(),e=this.configs.position,n=ty.appendOrSelect(t,"g.axis."+e);n.selectAll("g.tick text").on("mouseover",null).on("mousemove",null).on("mouseout",null)},e}(RE),mI=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),yI=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="2D-axes",e.renderType=R.SVG,e.children={},e.thresholds=[],e.margins={top:0,right:0,bottom:0,left:0},e}return mI(e,t),e.prototype.render=function(t){var e=this;void 0===t&&(t=!1);var n={},r=Object.keys(j),i=pd.getProperty(this.getOptions(),"axes");r.forEach((function(t){var e=i[j[t]];e&&(n[j[t]]=!0)})),this.configs.axes=n,r.forEach((function(t){var n=j[t];if(e.configs.axes[n]&&!e.children[n]){var r=new gI(e.model,e.services,{position:n,axes:e.configs.axes,margins:e.margins});r.setModel(e.model),r.setServices(e.services),r.setParent(e.parent),e.children[n]=r}})),Object.keys(this.children).forEach((function(n){var r=e.children[n];r.render(t)}));var o={};Object.keys(this.children).forEach((function(t){var n,r=e.children[t],i=r.configs.position,a=r.getInvisibleAxisRef(),s=ty.getSVGElementSize(a,{useBBox:!0}),u=s.width,c=s.height;switch(r.getTitleRef().empty()?n=0:(n=ty.getSVGElementSize(r.getTitleRef(),{useBBox:!0}).height,i!==j.LEFT&&i!==j.RIGHT||(n+=5)),i){case j.TOP:o.top=c+n;break;case j.BOTTOM:o.bottom=c+n;break;case j.LEFT:o.left=u+n;break;case j.RIGHT:o.right=u+n;break}}));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(ut.ZoomBar.UPDATE),Object.keys(this.children).forEach((function(t){var n=e.children[t];n.margins=e.margins})),this.render(!0))},e}(RE),_I={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 OI(r)}function OI(t){this._=t}function wI(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 xI(t,e){for(var n,r=0,i=t.length;r<i;++r)if((n=t[r]).name===e)return n.value}function EI(t,e,n){for(var r=0,i=t.length;r<i;++r)if(t[r].name===e){t[r]=_I,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=n&&t.push({name:e,value:n}),t}OI.prototype=bI.prototype={constructor:OI,on:function(t,e){var n,r=this._,i=wI(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]=EI(r[n],t.name,e);else if(null==e)for(n in r)r[n]=EI(r[n],t.name,null);return this}while(++o<a)if((n=(t=i[o]).type)&&(n=xI(r[n],t.name)))return n},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new OI(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 TI=bI;const SI={capture:!0,passive:!1};var MI=function(t){t.preventDefault(),t.stopImmediatePropagation()},CI=function(t){var e=t.document.documentElement,n=Wm(t).on("dragstart.drag",MI,SI);"onselectstart"in e?n.on("selectstart.drag",MI,SI):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")};function AI(t,e){var n=t.document.documentElement,r=Wm(t).on("dragstart.drag",null);e&&(r.on("click.drag",MI,SI),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 PI,LI,kI=0,DI=0,RI=0,II=1e3,NI=0,jI=0,BI=0,UI="object"===typeof performance&&performance.now?performance:Date,VI="object"===typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function GI(){return jI||(VI(HI),jI=UI.now()+BI)}function HI(){jI=0}function zI(){this._call=this._time=this._next=null}function FI(t,e,n){var r=new zI;return r.restart(t,e,n),r}function WI(){GI(),++kI;var t,e=PI;while(e)(t=jI-e._time)>=0&&e._call.call(void 0,t),e=e._next;--kI}function qI(){jI=(NI=UI.now())+BI,kI=DI=0;try{WI()}finally{kI=0,YI(),jI=0}}function ZI(){var t=UI.now(),e=t-NI;e>II&&(BI-=e,NI=t)}function YI(){var t,e,n=PI,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:PI=e);LI=t,XI(r)}function XI(t){if(!kI){DI&&(DI=clearTimeout(DI));var e=t-jI;e>24?(t<1/0&&(DI=setTimeout(qI,t-UI.now()-BI)),RI&&(RI=clearInterval(RI))):(RI||(NI=UI.now(),RI=setInterval(ZI,II)),kI=1,VI(qI))}}zI.prototype=FI.prototype={constructor:zI,restart:function(t,e,n){if("function"!==typeof t)throw new TypeError("callback is not a function");n=(null==n?GI():+n)+(null==e?0:+e),this._next||LI===this||(LI?LI._next=this:PI=this,LI=this),this._call=t,this._time=n,XI()},stop:function(){this._call&&(this._call=null,this._time=1/0,XI())}};var KI=function(t,e,n){var r=new zI;return e=null==e?0:+e,r.restart(n=>{r.stop(),t(n+e)},e,n),r},$I=TI("start","end","cancel","interrupt"),QI=[],JI=0,tN=1,eN=2,nN=3,rN=4,iN=5,oN=6,aN=function(t,e,n,r,i,o){var a=t.__transition;if(a){if(n in a)return}else t.__transition={};lN(t,n,{name:e,index:r,group:i,on:$I,tween:QI,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:JI})};function sN(t,e){var n=cN(t,e);if(n.state>JI)throw new Error("too late; already scheduled");return n}function uN(t,e){var n=cN(t,e);if(n.state>nN)throw new Error("too late; already running");return n}function cN(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function lN(t,e,n){var r,i=t.__transition;function o(t){n.state=tN,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!==tN)return u();for(c in i)if(f=i[c],f.name===n.name){if(f.state===nN)return KI(a);f.state===rN?(f.state=oN,f.timer.stop(),f.on.call("interrupt",t,t.__data__,f.index,f.group),delete i[c]):+c<e&&(f.state=oN,f.timer.stop(),f.on.call("cancel",t,t.__data__,f.index,f.group),delete i[c])}if(KI((function(){n.state===nN&&(n.state=rN,n.timer.restart(s,n.delay,n.time),s(o))})),n.state=eN,n.on.call("start",t,t.__data__,n.index,n.group),n.state===eN){for(n.state=nN,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=iN,1),o=-1,a=r.length;while(++o<a)r[o].call(t,i);n.state===iN&&(n.on.call("end",t,t.__data__,n.index,n.group),u())}function u(){for(var r in n.state=oN,n.timer.stop(),delete i[e],i)return;delete t.__transition}i[e]=n,n.timer=FI(o,0,n.time)}var hN,fN=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>eN&&n.state<iN,n.state=oN,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}},pN=function(t){return this.each((function(){fN(this,t)}))},dN=180/Math.PI,vN={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},gN=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 mN(t){const e=new("function"===typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?vN:gN(e.a,e.b,e.c,e.d,e.e,e.f)}function yN(t){return null==t?vN:(hN||(hN=document.createElementNS("http://www.w3.org/2000/svg","g")),hN.setAttribute("transform",t),(t=hN.transform.baseVal.consolidate())?(t=t.matrix,gN(t.a,t.b,t.c,t.d,t.e,t.f)):vN)}function _N(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:MO(t,i)},{i:u-2,x:MO(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:MO(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:MO(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:MO(t,n)},{i:s-2,x:MO(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=_N(mN,"px, ","px)","deg)"),ON=_N(yN,", ",")",")");function wN(t,e){var n,r;return function(){var i=uN(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 xN(t,e,n){var r,i;if("function"!==typeof n)throw new Error;return function(){var o=uN(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 EN=function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r,i=cN(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?wN:xN)(n,t,e))};function TN(t,e,n){var r=t._id;return t.each((function(){var t=uN(this,r);(t.value||(t.value={}))[e]=n.apply(this,arguments)})),function(t){return cN(t,r).value[e]}}var SN=function(t,e){var n;return("number"===typeof e?MO:e instanceof Jb?OO:(n=Jb(e))?(e=n,OO):DO)(t,e)};function MN(t){return function(){this.removeAttribute(t)}}function CN(t){return function(){this.removeAttributeNS(t.space,t.local)}}function AN(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 PN(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 LN(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 DN=function(t,e){var n=Dg(t),r="transform"===n?ON:SN;return this.attrTween(t,"function"===typeof e?(n.local?kN:LN)(n,r,TN(this,"attr."+t,e)):null==e?(n.local?CN:MN)(n):(n.local?PN:AN)(n,r,e))};function RN(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function IN(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function NN(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&IN(t,i)),n}return i._value=e,i}function jN(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&RN(t,i)),n}return i._value=e,i}var BN=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=Dg(t);return this.tween(n,(r.local?NN:jN)(r,e))};function UN(t,e){return function(){sN(this,t).delay=+e.apply(this,arguments)}}function VN(t,e){return e=+e,function(){sN(this,t).delay=e}}var GN=function(t){var e=this._id;return arguments.length?this.each(("function"===typeof t?UN:VN)(e,t)):cN(this.node(),e).delay};function HN(t,e){return function(){uN(this,t).duration=+e.apply(this,arguments)}}function zN(t,e){return e=+e,function(){uN(this,t).duration=e}}var FN=function(t){var e=this._id;return arguments.length?this.each(("function"===typeof t?HN:zN)(e,t)):cN(this.node(),e).duration};function WN(t,e){if("function"!==typeof e)throw new Error;return function(){uN(this,t).ease=e}}var qN=function(t){var e=this._id;return arguments.length?this.each(WN(e,t)):cN(this.node(),e).ease};function ZN(t,e){return function(){var n=e.apply(this,arguments);if("function"!==typeof n)throw new Error;uN(this,t).ease=n}}var YN=function(t){if("function"!==typeof t)throw new Error;return this.each(ZN(this._id,t))},XN=function(t){"function"!==typeof t&&(t=Jv(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 Ej(r,this._parents,this._name,this._id)},KN=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 Ej(a,this._parents,this._name,this._id)};function $N(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 QN(t,e,n){var r,i,o=$N(e)?sN:uN;return function(){var a=o(this,t),s=a.on;s!==r&&(i=(r=s).copy()).on(e,n),a.on=i}}var JN=function(t,e){var n=this._id;return arguments.length<2?cN(this.node(),n).on.on(t):this.each(QN(n,t,e))};function tj(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}var ej=function(){return this.on("end.remove",tj(this._id))},nj=function(t){var e=this._name,n=this._id;"function"!==typeof t&&(t=qv(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,aN(h[f],e,n,f,h,cN(s,n)));return new Ej(o,this._parents,e,n)},rj=function(t){var e=this._name,n=this._id;"function"!==typeof t&&(t=Kv(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=cN(u,n),v=0,g=p.length;v<g;++v)(f=p[v])&&aN(f,e,n,v,p,d);o.push(p),a.push(u)}return new Ej(o,a,e,n)},ij=Fm.prototype.constructor,oj=function(){return new ij(this._groups,this._parents)};function aj(t,e){var n,r,i;return function(){var o=qg(this,t),a=(this.style.removeProperty(t),qg(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 uj(t,e,n){var r,i,o=n+"";return function(){var a=qg(this,t);return a===o?null:a===r?i:i=e(r=a,n)}}function cj(t,e,n){var r,i,o;return function(){var a=qg(this,t),s=n(this),u=s+"";return null==s&&(this.style.removeProperty(t),u=s=qg(this,t)),a===u?null:a===r&&u===i?o:(i=u,o=e(r=a,s))}}function lj(t,e){var n,r,i,o,a="style."+e,s="end."+a;return function(){var u=uN(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 hj=function(t,e,n){var r="transform"===(t+="")?bN:SN;return null==e?this.styleTween(t,aj(t,r)).on("end.style."+t,sj(t)):"function"===typeof e?this.styleTween(t,cj(t,r,TN(this,"style."+t,e))).each(lj(this._id,t)):this.styleTween(t,uj(t,r,e),n).on("end.style."+t,null)};function fj(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function pj(t,e,n){var r,i;function o(){var o=e.apply(this,arguments);return o!==i&&(r=(i=o)&&fj(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,pj(t,e,null==n?"":n))};function vj(t){return function(){this.textContent=t}}function gj(t){return function(){var e=t(this);this.textContent=null==e?"":e}}var mj=function(t){return this.tween("text","function"===typeof t?gj(TN(this,"text",t)):vj(null==t?"":t+""))};function yj(t){return function(e){this.textContent=t.call(this,e)}}function _j(t){var e,n;function r(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&yj(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,_j(t))},Oj=function(){for(var t=this._name,e=this._id,n=Sj(),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=cN(a,e);aN(a,t,n,c,s,{time:l.time+l.delay+l.duration,delay:0,duration:l.duration,ease:l.ease})}return new Ej(r,this._parents,t,n)},wj=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=uN(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()}))},xj=0;function Ej(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function Tj(t){return Fm().transition(t)}function Sj(){return++xj}var Mj=Fm.prototype;Ej.prototype=Tj.prototype={constructor:Ej,select:nj,selectAll:rj,selectChild:Mj.selectChild,selectChildren:Mj.selectChildren,filter:XN,merge:KN,selection:oj,transition:Oj,call:Mj.call,nodes:Mj.nodes,node:Mj.node,size:Mj.size,empty:Mj.empty,each:Mj.each,on:JN,attr:DN,attrTween:BN,style:hj,styleTween:dj,text:mj,textTween:bj,remove:ej,tween:EN,delay:GN,duration:FN,ease:qN,easeVarying:YN,end:wj,[Symbol.iterator]:Mj[Symbol.iterator]};var Cj={time:null,delay:0,duration:250,ease:ct};function Aj(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 Pj=function(t){var e,n;t instanceof Ej?(e=t._id,t=t._name):(e=Sj(),(n=Cj).time=GI(),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])&&aN(a,t,e,c,s,n||Aj(a,e));return new Ej(r,this._parents,t,e)};Fm.prototype.interrupt=pN,Fm.prototype.transition=Pj;var Lj=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 Dj(t){t.stopImmediatePropagation()}var Rj=function(t){t.preventDefault(),t.stopImmediatePropagation()},Ij={name:"drag"},Nj={name:"space"},jj={name:"handle"},Bj={name:"center"};const{abs:Uj,max:Vj,min:Gj}=Math;function Hj(t){return[+t[0],+t[1]]}function zj(t){return[Hj(t[0]),Hj(t[1])]}var Fj={name:"x",handles:["w","e"].map($j),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]]}},Wj={name:"y",handles:["n","s"].map($j),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]]}},qj=(["n","w","e","s","nw","ne","sw","se"].map($j),{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"}),Zj={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},Yj={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},Xj={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},Kj={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function $j(t){return{type:t}}function Qj(t){return!t.ctrlKey&&!t.button}function Jj(){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 tB(){return navigator.maxTouchPoints||"ontouchstart"in this}function eB(t){while(!t.__brush)if(!(t=t.parentNode))return;return t.__brush}function nB(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}function rB(){return iB(Fj)}function iB(t){var e,n=Jj,r=Qj,i=tB,o=!0,a=TI("start","brush","end"),s=6;function u(e){var n=e.property("__brush",v).selectAll(".overlay").data([$j("overlay")]);n.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",qj.overlay).merge(n).each((function(){var t=eB(this).extent;Wm(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([$j("selection")]).enter().append("rect").attr("class","selection").attr("cursor",qj.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 qj[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=Wm(this),e=eB(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":_)?Ij:o&&n.altKey?Bj:jj,O=t===Wj?null:Xj[_],w=t===Fj?null:Kj[_],x=eB(y),E=x.extent,T=x.selection,S=E[0][0],M=E[0][1],C=E[1][0],A=E[1][1],P=0,L=0,k=O&&w&&o&&n.shiftKey,D=Array.from(n.touches||[n],t=>{const e=t.identifier;return t=gd(t,y),t.point0=t.slice(),t.identifier=e,t});fN(y);var R=l(y,arguments,!0).beforestart();if("overlay"===_){T&&(v=!0);const e=[D[0],D[1]||D[0]];x.selection=T=[[i=t===Wj?S:Gj(e[0][0],e[1][0]),s=t===Fj?M:Gj(e[0][1],e[1][1])],[h=t===Wj?C:Vj(e[0][0],e[1][0]),p=t===Fj?A:Vj(e[0][1],e[1][1])]],D.length>1&&U(n)}else i=T[0][0],s=T[0][1],h=T[1][0],p=T[1][1];a=i,u=s,f=h,d=p;var I=Wm(y).attr("pointer-events","none"),N=I.selectAll(".overlay").attr("cursor",qj[_]);if(n.touches)R.moved=B,R.ended=V;else{var j=Wm(n.view).on("mousemove.brush",B,!0).on("mouseup.brush",V,!0);o&&j.on("keydown.brush",G,!0).on("keyup.brush",H,!0),CI(n.view)}c.call(y),R.start(n,b.name)}function B(t){for(const e of t.changedTouches||[t])for(const t of D)t.identifier===e.identifier&&(t.cur=gd(e,y));if(k&&!g&&!m&&1===D.length){const t=D[0];Uj(t.cur[0]-t[0])>Uj(t.cur[1]-t[1])?m=!0:g=!0}for(const e of D)e.cur&&(e[0]=e.cur[0],e[1]=e.cur[1]);v=!0,Rj(t),U(t)}function U(t){const e=D[0],n=e.point0;var r;switch(P=e[0]-n[0],L=e[1]-n[1],b){case Nj:case Ij:O&&(P=Vj(S-i,Gj(C-h,P)),a=i+P,f=h+P),w&&(L=Vj(M-s,Gj(A-p,L)),u=s+L,d=p+L);break;case jj:D[1]?(O&&(a=Vj(S,Gj(C,D[0][0])),f=Vj(S,Gj(C,D[1][0])),O=1),w&&(u=Vj(M,Gj(A,D[0][1])),d=Vj(M,Gj(A,D[1][1])),w=1)):(O<0?(P=Vj(S-i,Gj(C-i,P)),a=i+P,f=h):O>0&&(P=Vj(S-h,Gj(C-h,P)),a=i,f=h+P),w<0?(L=Vj(M-s,Gj(A-s,L)),u=s+L,d=p):w>0&&(L=Vj(M-p,Gj(A-p,L)),u=s,d=p+L));break;case Bj:O&&(a=Vj(S,Gj(C,i-P*O)),f=Vj(S,Gj(C,h+P*O))),w&&(u=Vj(M,Gj(A,s-L*w)),d=Vj(M,Gj(A,p+L*w)));break}f<a&&(O*=-1,r=i,i=h,h=r,r=a,a=f,f=r,_ in Zj&&N.attr("cursor",qj[_=Zj[_]])),d<u&&(w*=-1,r=s,s=p,p=r,r=u,u=d,d=r,_ in Yj&&N.attr("cursor",qj[_=Yj[_]])),x.selection&&(T=x.selection),g&&(a=T[0][0],f=T[1][0]),m&&(u=T[0][1],d=T[1][1]),T[0][0]===a&&T[0][1]===u&&T[1][0]===f&&T[1][1]===d||(x.selection=[[a,u],[f,d]],c.call(y),R.brush(t,b.name))}function V(t){if(Dj(t),t.touches){if(t.touches.length)return;e&&clearTimeout(e),e=setTimeout((function(){e=null}),500)}else AI(t.view,v),j.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);I.attr("pointer-events","all"),N.attr("cursor",qj.overlay),x.selection&&(T=x.selection),nB(T)&&(x.selection=null,c.call(y)),R.end(t,b.name)}function G(t){switch(t.keyCode){case 16:k=O&&w;break;case 18:b===jj&&(O&&(h=f-P*O,i=a+P*O),w&&(p=d-L*w,s=u+L*w),b=Bj,U(t));break;case 32:b!==jj&&b!==Bj||(O<0?h=f-P:O>0&&(i=a-P),w<0?p=d-L:w>0&&(s=u-L),b=Nj,N.attr("cursor",qj.selection),U(t));break;default:return}Rj(t)}function H(t){switch(t.keyCode){case 16:k&&(g=m=k=!1,U(t));break;case 18:b===Bj&&(O<0?h=f:O>0&&(i=a),w<0?p=d:w>0&&(s=u),b=jj,U(t));break;case 32:b===Nj&&(t.altKey?(O&&(h=f-P*O,i=a+P*O),w&&(p=d-L*w,s=u+L*w),b=Bj):(O<0?h=f:O>0&&(i=a),w<0?p=d:w>0&&(s=u),b=jj),N.attr("cursor",qj[_]),U(t));break;default:return}Rj(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=zj(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=RO(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();fN(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=Wm(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:Lj(zj(t)),u):n},u.filter=function(t){return arguments.length?(r="function"===typeof t?t:Lj(!!t),u):r},u.touchable=function(t){return arguments.length?(i="function"===typeof t?t:Lj(!!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 oB=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),aB=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="grid-brush",e.renderType=R.SVG,e.selectionSelector="rect.selection",e.frontSelectionSelector="rect.frontSelection",e}return oB(e,t),e.prototype.render=function(t){var n=this;void 0===t&&(t=!0);var r=this.parent,i=this.getComponentContainer(),o=ty.appendOrSelect(r,"svg.chart-grid-backdrop"),a=ty.appendOrSelect(o,"g."+this.type),s=ty.appendOrSelect(a,this.selectionSelector),u=ty.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=ty.appendOrSelect(i,this.frontSelectionSelector);if(p&&f===G.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=$O().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=rB().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=gd(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}(RE),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)}}(),uB=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="grid",e.renderType=R.SVG,e}return sB(e,t),e.prototype.render=function(t){void 0===t&&(t=!0);var e=pd.getProperty(this.getOptions(),"grid","x","enabled"),n=pd.getProperty(this.getOptions(),"grid","y","enabled");this.drawBackdrop(e,n),(e||n)&&(e&&(ty.appendOrSelect(this.backdrop,"g.x.grid"),this.drawXGrid(t)),n&&(ty.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=pI(i).tickSizeInner(-r).tickSizeOuter(0),a=pd.getProperty(this.getOptions(),"grid","x","alignWithAxisTicks");if(a){var s=this.services.cartesianScales.getDomainAxisPosition(),u=pd.getProperty(this.getOptions(),"axes",s,"ticks","values");u&&o.tickValues(u)}else{var c=pd.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=dI(i).tickSizeInner(-r).tickSizeOuter(0),a=pd.getProperty(this.getOptions(),"grid","y","alignWithAxisTicks");if(a){var s=this.services.cartesianScales.getRangeAxisPosition(),u=pd.getProperty(this.getOptions(),"axes",s,"ticks","values");u&&o.tickValues(u)}else{var c=pd.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(pd.getTranslationValues(t).tx)-Number(pd.getTranslationValues(e).tx)})),i=-1;if(r.length){r.forEach((function(e,n){t[0]>=+pd.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=+pd.getTranslationValues(s).tx-+pd.getTranslationValues(a).tx;else{var u=n.select("rect.chart-grid-backdrop").node(),c=ty.getSVGElementSize(u).width;o=c-+pd.getTranslationValues(a).tx}else o=+pd.getTranslationValues(s).tx;var l=this.getOptions().tooltip.gridline.threshold;return o*l}},e.prototype.getActiveGridline=function(t){var e=pd.getProperty(this.getOptions,"tooltip","gridline","threshold"),n=e||this.getGridlineThreshold(t),r=this.parent,i=r.selectAll(".x.grid .tick").filter((function(){var e=pd.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=ty.appendOrSelect(n,"svg.chart-grid-backdrop");var h=ty.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}(RE),cB=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),lB=5;function hB(t,e){return t>e-lB&&t<e+lB}var fB=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="ruler",e.renderType=R.SVG,e.isXGridEnabled=pd.getProperty(e.getOptions(),"grid","x","enabled"),e.isYGridEnabled=pd.getProperty(e.getOptions(),"grid","y","enabled"),e.isEventListenerAdded=!1,e}return cB(e,t),e.prototype.render=function(){var t=pd.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===V.HORIZONTAL?i:r,p=ty.appendOrSelect(o,"g.ruler").attr("aria-label","ruler"),d=ty.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 hB(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(ut.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&&!pd.isEqual(this.elementsToHighlight,b)&&this.hideRuler(),b.dispatch("mouseover"),this.elementsToHighlight=b,this.services.events.dispatchEvent(ut.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=ty.appendOrSelect(t,"g.ruler"),n=t.selectAll("[role=graphics-symbol]");n.dispatch("mouseout"),this.services.events.dispatchEvent(ut.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=gd(e,t.parent.node());t.showRuler(e,n)};if(n.length>100){var i=n.length%50*12.5;r=pd.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=ty.appendOrSelect(t,"svg.chart-grid-backdrop")},e}(RE),pB=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return 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},vB=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="ruler-binned",e.renderType=R.SVG,e}return pB(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===V.VERTICAL?r:i),d=ty.appendOrSelect(o,"g.ruler").attr("aria-label","ruler"),v=ty.appendOrSelect(d,"line.ruler-line"),g=o.selectAll("[role=graphics-symbol]"),m=g.filter((function(t){if(parseFloat(Ol(t,"data.x0"))<=p&&parseFloat(Ol(t,"data.x1"))>=p)return!0}));if(m.size()>0){this.elementsToHighlight&&this.elementsToHighlight.size()>0&&!pd.isEqual(this.elementsToHighlight,m)&&this.hideRuler(),m.dispatch("mouseover"),this.elementsToHighlight=m;var y=Wm(m.nodes()[0]).datum(),_=parseFloat(Ol(y,"data.x0")),b=parseFloat(Ol(y,"data.x1")),O=this.model.getActiveDataGroupNames(),w=O.reverse().map((function(t){return{label:t,value:Ol(y,"data."+t),class:n.model.getColorClassName({classNameTypes:[N.TOOLTIP],dataGroupName:t})}})).filter((function(t){return 0!==t.value})),x=w.length>0;if(x){this.services.events.dispatchEvent(ut.Tooltip.SHOW,{mousePosition:[r,i],hoveredElement:v,items:dB([{label:Ol(a,"bins.rangeLabel")||"Range",value:_+" – "+b}],w,!0===pd.getProperty(a,"tooltip","showTotal")?[{label:Ol(a,"tooltip.totalLabel")||"Total",value:O.reduce((function(t,e){return t+parseFloat(Ol(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}(fB),gB=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),mB=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return gB(e,t),e.prototype.formatTooltipData=function(t){return t.reverse()},e}(fB),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)}}(),_B=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="toolbar",e.renderType=R.HTML,e}return yB(e,t),e.prototype.init=function(){var t=this,e=function(){return t.updateOverflowMenu(!1)};this.services.events.addEventListener(ut.Toolbar.SHOW_OVERFLOW_MENU,(function(){t.renderOverflowMenu(),document.body.addEventListener("click",e)})),this.services.events.addEventListener(ut.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"),r=pd.getProperty(this.getOptions(),"data","loading");if(r)n.html("");else{this.overflowMenu||(this.overflowMenu=n.append("div").attr("class","bx--overflow-menu-options bx--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 bx--overflow-menu").attr("role","button"),c=this;u.merge(s).classed("disabled",(function(t){return!!t.shouldBeDisabled&&t.shouldBeDisabled()})).attr("aria-disabled",(function(t){return!!t.shouldBeDisabled&&t.shouldBeDisabled()})).attr("aria-label",(function(t){return t.title})).html((function(t){return'\n\t\t\t<button\n\t\t\t\tclass="bx--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.iconWidth?t.iconWidth:"20px")+"; height: "+(void 0!==t.iconWidth?t.iconHeight:"20px")+'" xmlns="http://www.w3.org/2000/svg" class="bx--overflow-menu__icon" viewBox="0 0 32 32" aria-hidden="true">\n\t\t\t\t\t'+t.iconSVGContent+"\n\t\t\t\t</svg>\n\t\t\t</button>"})).each((function(t,e){Wm(this).select("button").on("click",t.shouldBeDisabled()?null:t.clickFunction).on("keydown",(function(n){n.key&&"Enter"===n.key||" "===n.key?(n.preventDefault(),t.clickFunction()):n.key&&"ArrowLeft"===n.key?c.focusOnPreviousEnabledToolbarItem(e):n.key&&"ArrowRight"===n.key&&c.focusOnNextEnabledToolbarItem(e)}))}));this.overflowButton=this.getComponentContainer().select("button.bx--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.bx--overflow-menu-options__option").data(e,(function(t){return pd.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","bx--overflow-menu-options__option").attr("role","menuitem");r.append("button").attr("class","bx--overflow-menu-options__btn"),r.merge(n).classed("bx--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.classed("is-open",t),this.overflowButton&&(this.overflowButton.attr("aria-expanded",t),Wm(this.overflowButton.node().parentNode).classed("bx--overflow-menu--open",t)),t?this.services.events.dispatchEvent(ut.Toolbar.SHOW_OVERFLOW_MENU):this.services.events.dispatchEvent(ut.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=Wm("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=Wm("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=Wm("#"+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=Wm("#"+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(t,r){var i=Wm("#"+e.services.domUtils.generateElementIDString("control-"+t.id));null!==i&&(i.on("click",(function(){t.clickFunction(),n.updateOverflowMenu(!1)})),i.on("keydown",(function(e){e&&"Enter"===e.key?t.clickFunction():e&&"ArrowUp"===e.key?n.focusOnPreviousEnabledMenuItem(r):e&&"ArrowDown"===e.key?n.focusOnNextEnabledMenuItem(r):e&&"Escape"===e.key&&n.updateOverflowMenu(!1),e.preventDefault()})))})),n.focusOnNextEnabledMenuItem(-1)}t&&t.stopImmediatePropagation()},e.prototype.getControlConfigs=function(){var t=this,e=pd.getProperty(this.getOptions(),"toolbar","numberOfIcons"),n=pd.getProperty(this.getOptions(),"toolbar","controls"),r=[],i=[];return n.forEach((function(e){var n=t.getControlConfigByType(e.type);n&&(n.text=e.text?e.text:e.type,-1!==n.id.indexOf("toolbar-export")?i.push(n):r.push(n))})),r.length<=e&&0===i.length?{buttonList:r}:{buttonList:r.splice(0,e-1),overflowMenuItemList:r.concat(i)}},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},iconSVGContent:'<circle cx="16" cy="8" r="2"></circle>\n\t\t\t\t\t\t\t <circle cx="16" cy="16" r="2"></circle>\n\t\t\t\t\t\t\t <circle cx="16" cy="24" r="2"></circle>',clickFunction:function(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 it.ZOOM_IN:r&&(e={id:"toolbar-zoomIn",title:"Zoom in",shouldBeDisabled:function(){return n.services.zoom.isMinZoomDomain()},iconSVGContent:this.getControlIconByType(t),clickFunction:function(){return n.services.zoom.zoomIn()}});break;case it.ZOOM_OUT:r&&(e={id:"toolbar-zoomOut",title:"Zoom out",shouldBeDisabled:function(){return n.services.zoom.isMaxZoomDomain()},iconSVGContent:this.getControlIconByType(t),clickFunction:function(){return n.services.zoom.zoomOut()}});break;case it.RESET_ZOOM:r&&(e={id:"toolbar-resetZoom",title:"Reset zoom",shouldBeDisabled:function(){return n.services.zoom.isMaxZoomDomain()},iconSVGContent:this.getControlIconByType(t),clickFunction:function(){return n.services.zoom.resetZoomDomain()}});break;case it.MAKE_FULLSCREEN:e={id:"toolbar-makefullscreen",title:"Make fullscreen",iconSVGContent:this.getControlIconByType(t),iconWidth:"15px",iconHight:"15px",shouldBeDisabled:function(){return!1},clickFunction:function(){n.services.domUtils.toggleFullscreen()}};break;case it.SHOW_AS_DATATABLE:e={id:"toolbar-showasdatatable",title:"Show as table",iconSVGContent:this.getControlIconByType(t),shouldBeDisabled:function(){return 0===i.length},clickFunction:function(){return n.services.events.dispatchEvent(ut.Modal.SHOW)}};break;case it.EXPORT_CSV:e={id:"toolbar-export-CSV",title:"Export as CSV",shouldBeDisabled:function(){return!1},iconSVGContent:this.getControlIconByType(t),clickFunction:function(){return n.model.exportToCSV()}};break;case it.EXPORT_PNG:e={id:"toolbar-export-PNG",title:"Export as PNG",shouldBeDisabled:function(){return!1},iconSVGContent:this.getControlIconByType(t),clickFunction:function(){return n.services.domUtils.exportToPNG()}};break;case it.EXPORT_JPG:e={id:"toolbar-export-JPG",title:"Export as JPG",shouldBeDisabled:function(){return!1},iconSVGContent: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 it.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 it.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 it.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 it.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 it.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 it.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 it.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 it.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}(RE),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)}}(),OB=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="zero-line",e.renderType=R.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=pd.flipSVGCoordinatesBasedOnOrientation({x0:l,x1:h,y0:f,y1:f},this.services.cartesianScales.getOrientation()),d=ty.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}(RE),wB=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),xB=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="zoom-bar",e.renderType=R.SVG,e.MIN_SELECTION_DIFF=9e-10,e.brushSelector="g.zoom-bar-brush",e.clipId="zoomBarClip-"+Math.floor(99999999999*Math.random()),e.brush=rB(),e.highlightStrokeWidth=1,e}return wB(e,t),e.prototype.init=function(){this.services.events.addEventListener(ut.ZoomBar.UPDATE,this.render.bind(this));var t=pd.getProperty(this.getOptions(),"zoomBar",j.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(j.TOP),i=this.services.zoom.isZoomBarLocked(j.TOP),o=pd.getProperty(this.getOptions(),"zoomBar",j.TOP,"type"),a=pd.getProperty(this.getOptions(),"axes",j.BOTTOM,"highlights"),s=Mt.height[o],u=ty.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=ty.appendOrSelect(n,"svg.zoom-container").attr("width","100%").attr("height",s).attr("opacity",1);ty.appendOrSelect(n,"rect.zoom-spacer").attr("x",0).attr("y",s).attr("width","100%").attr("height",Mt.spacerHeight).attr("opacity",1).attr("fill","none");if(o===B.GRAPH_VIEW?ty.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===B.SLIDER_VIEW&&ty.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===G.TIME){var g=this.services.zoom.getZoomBarData();if(pd.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"),_=pd.getProperty(this.getOptions(),"zoomBar",j.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:pd.merge([],m)},{skipUpdate:!0}):this.model.set({initialZoomDomain:pd.merge([],_),zoomDomain:_?pd.merge([],_):m},{skipUpdate:!0}),this.xScale.range([c,u]).domain(m),this.maxSelectionRange=this.xScale.range(),this.yScale.range([0,s-6]).domain(Pv(g,(function(t){return t.value})));var b=this.model.get("zoomDomain");if(o===B.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){ty.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 T=ty.appendOrSelect(n,this.brushSelector).call(this.brush);if(void 0===b);else if(b[0].valueOf()===b[1].valueOf())T.call(this.brush.move,this.xScale.range()),this.updateBrushHandle(this.getComponentContainer(),this.xScale.range(),this.xScale.domain());else{var S=b.map((function(t){return e.xScale(t)}));S[1]-S[0]<this.MIN_SELECTION_DIFF||(T.call(this.brush.move,S),this.updateBrushHandle(this.getComponentContainer(),S,b))}i&&(this.brush.filter((function(){return!1})),T.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=pd.getProperty(this.getOptions(),"zoomBar",j.TOP,"type"),a=Mt.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=ut.ZoomBar.SELECTION_START:"brush"===t.type?o=ut.ZoomBar.SELECTION_IN_PROGRESS:"end"===t.type&&(o=ut.ZoomBar.SELECTION_END,this.services.events.dispatchEvent(ut.ZoomDomain.CHANGE,{newDomain:i})),this.services.events.dispatchEvent(o,{selection:r,newDomain:i})}},e.prototype.updateBrushHandle=function(t,e,n){var r=this,i=Mt.handleWidth,o=pd.getProperty(this.getOptions(),"zoomBar",j.TOP,"type"),a=Mt.height[o],s=-i/2,u=Mt.handleBarWidth,c=o===B.GRAPH_VIEW?Mt.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===B.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=pd.getProperty(this.getOptions(),"zoomBar",j.TOP,"type"),n=Mt.height[e],r=(ty.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");ty.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=pd.getProperty(this.getOptions(),"zoomBar",j.TOP,"type"),p=Mt.height[f],d=zC().x((function(t,e){return l(t,e)})).y0(p).y1((function(t,e){return p-h(t,e)})),v=ty.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=ty.appendOrSelect(t,"clipPath").attr("id",e);ty.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=pd.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=pd.getProperty(this.model.getOptions(),"zoomBar",j.TOP,"type"),o=Mt.height[i],a=HC()([[e,o],[n,o]]);ty.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),ty.appendOrSelect(this.getComponentContainer(),this.brushSelector).html(null);var r=pd.getProperty(this.getOptions(),"zoomBar",j.TOP,"type");r===B.GRAPH_VIEW&&this.renderZoomBarBaseline(t,e,n,!0)},e.prototype.destroy=function(){this.brush.on("start brush end",null),this.services.events.removeEventListener(ut.ZoomBar.UPDATE,this.render.bind(this))},e}(RE),EB=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},TB=function(){function t(t,e){this.services={domUtils:ty,files:iy,events:ny,gradientUtils:uy,transitions:ay,canvasZoom:DE},this.model=new zv(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(ut.Model.UPDATE,(function(t){var e=!!pd.getProperty(t,"detail","animate");n.update(e)})),this.model.setData(e.data),this.services.events.addEventListener(ut.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(ut.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=pd.getProperty(n,"toolbar","enabled"),i={id:"legend",components:[new NE(this.model,this.services)],growth:Z.PREFERRED},o=pd.getProperty(n,"canvasZoom","enabled");o&&!0===o&&t.push(new AC(this.model,this.services));var a=!!this.model.getOptions().title,s={id:"title",components:[new yC(this.model,this.services)],growth:Z.STRETCH},u={id:"toolbar",components:[new _B(this.model,this.services)],growth:Z.PREFERRED},c={id:"header",components:[new QR(this.model,this.services,EB([s],r?[u]:[]),{direction:q.ROW,alignItems:Y.CENTER})],growth:Z.PREFERRED},l={id:"graph-frame",components:t,growth:Z.STRETCH,renderType:pd.getProperty(e,"graphFrameRenderType")||R.SVG},h=!0!==pd.getProperty(e,"excludeLegend")&&!1!==n.legend.enabled,f=q.COLUMN;if(h){var p=pd.getProperty(n,"legend","position");"left"===p?(f=q.ROW,n.legend.orientation||(n.legend.orientation=F.VERTICAL)):"right"===p?(f=q.ROW_REVERSE,n.legend.orientation||(n.legend.orientation=F.VERTICAL)):"bottom"===p&&(f=q.COLUMN_REVERSE)}var d={id:"spacer",components:[new KR(this.model,this.services)],growth:Z.PREFERRED},v={id:"full-frame",components:[new QR(this.model,this.services,EB(h?[i]:[],h?[d]:[],[l]),{direction:f})],growth:Z.STRETCH},g=[];if(a||r){g.push(c);var m={id:"spacer",components:[new KR(this.model,this.services,r?{size:15}:void 0)],growth:Z.PREFERRED};g.push(m)}return g.push(v),[new wC(this.model,this.services),new MS(this.model,this.services),new QR(this.model,this.services,g,{direction:q.COLUMN})]},t}(),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)}}(),MB=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},CB=function(t){function e(e){return t.call(this,e)||this}return SB(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:pd.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===G.TIME&&(t=function(t){return nC(t,"MMM d, yyyy")});var h=MB([MB(["Group",a.label,s.label],u?[u.label]:[],c?[c.label]:[])],e.map((function(e){return MB([e[r],null===e[a.identifier]?"–":t?t(e[a.identifier]):e[a.identifier],null===e[s.identifier]||isNaN(e[s.identifier])?"–":e[s.identifier].toLocaleString()],u?[null===e[u.identifier]?"–":e[u.identifier]]:[],c?[null===e[c.identifier]||isNaN(e[c.identifier])?"–":e[c.identifier]]:[])})));return h},e.prototype.setData=function(e){var n;if(e&&(n=t.prototype.setData.call(this,e),pd.getProperty(this.getOptions(),"zoomBar",j.TOP,"enabled"))){var r=pd.getProperty(this.getOptions(),"zoomBar",j.TOP,"data");this.setZoomBarData(r)}return n},e.prototype.setZoomBarData=function(t){var e=t?this.sanitize(pd.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=pd.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(j).forEach((function(t){var r=j[t],i=e.axes[r];if(i&&i.scaleType===G.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===pd.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}(zv),AB=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),PB=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},LB=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.services=Object.assign(r.services,{cartesianScales:wx,curves:AE,zoom:LE}),r.model=new CB(r.services),r}return AB(e,t),e.prototype.getAxisChartComponents=function(t,e){var n=this.model.getOptions(),r=pd.getProperty(n,"zoomBar",j.TOP,"enabled"),i=pd.getProperty(n,"toolbar","enabled");this.services.cartesianScales.determineAxisDuality(),this.services.cartesianScales.findDomainAndRangeAxes(),this.services.cartesianScales.determineOrientation();var o=this.services.cartesianScales.getMainXAxisPosition(),a=pd.getProperty(n,"axes",o,"scaleType"),s=r&&o===j.BOTTOM&&a===G.TIME,u=this.services.zoom.isZoomBarLocked(j.TOP),c=!!this.model.getOptions().title,l={id:"title",components:[new yC(this.model,this.services)],growth:Z.STRETCH},h={id:"toolbar",components:[new _B(this.model,this.services)],growth:Z.PREFERRED},f={id:"header",components:[new QR(this.model,this.services,PB([l],i?[h]:[]),{direction:q.ROW,alignItems:Y.CENTER})],growth:Z.PREFERRED},p={id:"legend",components:[new NE(this.model,this.services)],growth:Z.PREFERRED};s&&!u&&t.push(new MC(this.model,this.services),new aB(this.model,this.services)),t.push(new gC(this.model,this.services)),t.push(new kC(this.model,this.services));var d={id:"graph-frame",components:t,growth:Z.STRETCH,renderType:R.SVG},v=!1!==pd.getProperty(e,"legend","enabled")&&!1!==this.model.getOptions().legend.enabled,g=q.COLUMN;if(v){var m=pd.getProperty(this.model.getOptions(),"legend","position");m===H.LEFT?(g=q.ROW,this.model.getOptions().legend.orientation||(this.model.getOptions().legend.orientation=F.VERTICAL)):m===H.RIGHT?(g=q.ROW_REVERSE,this.model.getOptions().legend.orientation||(this.model.getOptions().legend.orientation=F.VERTICAL)):m===H.BOTTOM&&(g=q.COLUMN_REVERSE)}var y={id:"spacer",components:[new KR(this.model,this.services)],growth:Z.PREFERRED},_={id:"full-frame",components:[new QR(this.model,this.services,PB(v?[p]:[],v?[y]:[],[d]),{direction:g})],growth:Z.STRETCH},b={id:"zoom-bar",components:[new xB(this.model,this.services)],growth:Z.PREFERRED,renderType:R.SVG},O=[];if(c||i){O.push(f);var w={id:"spacer",components:[new KR(this.model,this.services,i?{size:15}:void 0)],growth:Z.PREFERRED};O.push(w)}return s&&O.push(b),O.push(_),[new TC(this.model,this.services),new MS(this.model,this.services),new QR(this.model,this.services,O,{direction:q.COLUMN})]},e}(TB),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)}}(),DB=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(pd.mergeDefaultChartOptions(pd.clone(ev.areaChart),n.options)),r.init(e,n),r}return kB(e,t),e.prototype.getComponents=function(){var t=[new yI(this.model,this.services),new uB(this.model,this.services),new fB(this.model,this.services),new pA(this.model,this.services),new WC(this.model,this.services),new oA(this.model,this.services,{fadeInOnChartHolderMouseover:!0,handleThresholds:!0}),new VA(this.model,this.services,{skeleton:K.GRID})],e=this.getAxisChartComponents(t);return e},e}(LB),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(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(pd.mergeDefaultChartOptions(ev.stackedAreaChart,n.options)),r.init(e,n),r}return RB(e,t),e.prototype.getComponents=function(){var t=[new yI(this.model,this.services),new uB(this.model,this.services),new mB(this.model,this.services),new ZC(this.model,this.services),new pA(this.model,this.services,{stacked:!0}),new mA(this.model,this.services,{fadeInOnChartHolderMouseover:!0,handleThresholds:!0,stacked:!0}),new VA(this.model,this.services,{skeleton:K.GRID})],e=this.getAxisChartComponents(t);return e},e}(LB),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(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(pd.mergeDefaultChartOptions(ev.simpleBarChart,n.options)),r.init(e,n),r}return NB(e,t),e.prototype.getComponents=function(){var t=[new yI(this.model,this.services),new uB(this.model,this.services),new $C(this.model,this.services),new OB(this.model,this.services),new VA(this.model,this.services,{skeleton:K.VERT_OR_HORIZ})],e=this.getAxisChartComponents(t);return e},e}(LB),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(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(pd.mergeDefaultChartOptions(ev.groupedBarChart,n.options)),r.init(e,n),r}return BB(e,t),e.prototype.getComponents=function(){var t=[new yI(this.model,this.services),new uB(this.model,this.services),new JC(this.model,this.services),new OB(this.model,this.services),new VA(this.model,this.services,{skeleton:K.VERT_OR_HORIZ})],e=this.getAxisChartComponents(t);return e},e}(LB),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(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(pd.mergeDefaultChartOptions(ev.stackedBarChart,n.options)),r.init(e,n),r}return VB(e,t),e.prototype.getComponents=function(){var t=[new yI(this.model,this.services),new uB(this.model,this.services),new mB(this.model,this.services),new eA(this.model,this.services),new VA(this.model,this.services,{skeleton:K.VERT_OR_HORIZ}),new OB(this.model,this.services)],e=this.getAxisChartComponents(t);return e},e}(LB);function HB(t,e,n=0,r=t.length-1,i=Ov){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));HB(t,e,l,h,i)}const o=t[e];let a=n,s=r;zB(t,n,e),i(t[r],o)>0&&zB(t,n,r);while(a<s){zB(t,a,s),++a,--s;while(i(t[a],o)<0)++a;while(i(t[s],o)>0)--s}0===i(t[n],o)?zB(t,n,s):(++s,zB(t,s,r)),s<=e&&(n=s+1),e<=s&&(r=s-1)}return t}function zB(t,e,n){const r=t[e];t[e]=t[n],t[n]=r}function FB(t,e,n){if(t=Float64Array.from(Tv(t,n)),r=t.length){if((e=+e)<=0||r<2)return iC(t);if(e>=1)return jw(t);var r,i=(r-1)*e,o=Math.floor(i),a=jw(HB(t,o).subarray(0,o+1)),s=iC(t.subarray(o+1));return a+(s-a)*(i-o)}}var WB,qB,ZB,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)}}(),XB=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(e){return t.call(this,e)||this}return YB(e,t),e.prototype.getBoxQuartiles=function(t){return{q_25:FB(t,.25),q_50:FB(t,.5),q_75:FB(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(Ov),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 _=iC(v),b=jw(v);u.whiskers={min:_||iC([u.quartiles.q_25,u.quartiles.q_50,u.quartiles.q_75]),max:b||jw([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=XB([["Group","Minimum","Q1","Median","Q3","Maximum","IQR","Outlier(s)"]],n.map((function(t){var n=pd.getProperty(t,"outliers");return null!==n&&0!==n.length||(n=["–"]),[t[e],null!==pd.getProperty(t,"whiskers","min")?pd.getProperty(t,"whiskers","min").toLocaleString():"–",null!==pd.getProperty(t,"quartiles","q_25")?pd.getProperty(t,"quartiles","q_25").toLocaleString():"–",null!==pd.getProperty(t,"quartiles","q_50")?pd.getProperty(t,"quartiles","q_50").toLocaleString():"–",null!==pd.getProperty(t,"quartiles","q_75")?pd.getProperty(t,"quartiles","q_75").toLocaleString():"–",null!==pd.getProperty(t,"whiskers","max")?pd.getProperty(t,"whiskers","max").toLocaleString():"–",null!==pd.getProperty(t,"quartiles","q_75")&&null!==pd.getProperty(t,"quartiles","q_25")?(pd.getProperty(t,"quartiles","q_75")-pd.getProperty(t,"quartiles","q_25")).toLocaleString():"–",n.map((function(t){return t.toLocaleString()})).join(",")]})));return r},e.prototype.setColorClassNames=function(){var t=1,e=pd.getProperty(this.getOptions(),"color","pairing"),n=pd.getProperty(e,"option"),r=dt.pairingOptions;n=n<=r[t+"-color"]?n:1;var i=this.allDataGroups.map((function(e,r){return t+"-"+n+"-1"}));this.colorClassNames=cv().range(i).domain(this.allDataGroups)},e}(CB),$B=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),QB=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model=new KB(r.services),r.model.setOptions(pd.mergeDefaultChartOptions(ev.boxplotChart,n.options)),r.init(e,n),r}return $B(e,t),e.prototype.getComponents=function(){var t=[new yI(this.model,this.services),new uB(this.model,this.services),new rA(this.model,this.services),new OB(this.model,this.services),new VA(this.model,this.services,{skeleton:K.VERT_OR_HORIZ})],e=this.getAxisChartComponents(t,{legend:{enabled:!1}});return e},e}(LB),JB=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return 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.setOptions(pd.mergeDefaultChartOptions(ev.bubbleChart,n.options)),r.init(e,n),r}return JB(e,t),e.prototype.getComponents=function(){var t=[new yI(this.model,this.services),new uB(this.model,this.services),new fB(this.model,this.services),new sA(this.model,this.services),new VA(this.model,this.services,{skeleton:K.GRID})],e=this.getAxisChartComponents(t);return e},e}(LB),eU=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),nU=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},rU=function(t){function e(e){return t.call(this,e)||this}return eU(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=pd.getProperty(n,"bullet","performanceAreaTitles"),a=nU([["Title","Group","Value","Target","Percentage","Performance"]],e.map((function(e){return[e["title"],e[r],null===e["value"]?"–":e["value"],null===pd.getProperty(e,"marker")?"–":e["marker"],null===pd.getProperty(e,"marker")?"–":Math.floor(e[i]/e.marker*100)+"%",o[t.getMatchingRangeIndexForDatapoint(e)]]})));return a},e}(CB),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=new rU(r.services),r.model.setOptions(pd.mergeDefaultChartOptions(ev.bulletChart,n.options)),r.init(e,n),r}return iU(e,t),e.prototype.getComponents=function(){var t=[new yI(this.model,this.services),new uB(this.model,this.services),new cA(this.model,this.services),new VA(this.model,this.services,{skeleton:K.GRID})],e=this.getAxisChartComponents(t);return e},e}(LB),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)}}(),sU=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},uU=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return aU(e,t),e.prototype.getTabularDataArray=function(){var t=this.getOptions(),e=t.data.groupMapsTo,n=this.getBinnedStackedData(),r=sU([sU([Ol(t,"bins.rangeLabel")||"Range"],n.map((function(t){return Ol(t,"0."+e)})))],Ol(n,0).map((function(t,r){return sU([Ol(t,"data.x0")+" – "+Ol(t,"data.x1")],n.map((function(t){return Ol(t[r],"data."+Ol(t[r],e))})))})));return r},e}(CB),cU=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),lU=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model=new uU(r.services),r.model.setOptions(pd.mergeDefaultChartOptions(ev.histogramChart,n.options)),r.init(e,n),r.update(),r}return cU(e,t),e.prototype.getComponents=function(){var t=[new yI(this.model,this.services),new uB(this.model,this.services),new vB(this.model,this.services),new hA(this.model,this.services)],e=this.getAxisChartComponents(t);return e},e}(LB),hU=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return 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(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(pd.mergeDefaultChartOptions(ev.lineChart,n.options)),r.init(e,n),r}return hU(e,t),e.prototype.getComponents=function(){var t=[new yI(this.model,this.services),new uB(this.model,this.services),new fB(this.model,this.services),new pA(this.model,this.services),new oA(this.model,this.services,{handleThresholds:!0}),new HA(this.model,this.services),new OB(this.model,this.services)],e=this.getAxisChartComponents(t);return e},e}(LB),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.setOptions(pd.mergeDefaultChartOptions(ev.lollipopChart,n.options)),r.init(e,n),r}return pU(e,t),e.prototype.getComponents=function(){var t=[new yI(this.model,this.services),new uB(this.model,this.services),new fB(this.model,this.services),new vA(this.model,this.services),new oA(this.model,this.services),new VA(this.model,this.services,{skeleton:K.GRID})],e=this.getAxisChartComponents(t);return e},e}(LB),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(pd.mergeDefaultChartOptions(ev.scatterChart,n.options)),r.init(e,n),r}return vU(e,t),e.prototype.getComponents=function(){var t=[new yI(this.model,this.services),new uB(this.model,this.services),new fB(this.model,this.services),new oA(this.model,this.services),new VA(this.model,this.services,{skeleton:K.GRID})],e=this.getAxisChartComponents(t);return e},e}(LB),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.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=yU([["Group","Value"]],t.map((function(t){return[t[n],null===t["value"]?"–":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}(zv),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,r){void 0===r&&(r=!1);var i=t.call(this,e,n)||this;return i.model=new _U(i.services),r?i:(i.model.setOptions(pd.mergeDefaultChartOptions(ev.pieChart,n.options)),i.init(e,n),i)}return bU(e,t),e.prototype.getComponents=function(){var t=[new LA(this.model,this.services),new VA(this.model,this.services,{skeleton:K.PIE})],e=this.getChartComponents(t);return e},e}(TB),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(t){function e(e,n){var r=t.call(this,e,n,!0)||this;return r.model.setOptions(pd.mergeDefaultChartOptions(ev.donutChart,n.options)),r.init(e,n),r}return wU(e,t),e.prototype.getComponents=function(){var t=[new jA(this.model,this.services),new VA(this.model,this.services,{skeleton:K.DONUT})],e=this.getChartComponents(t);return e},e}(OU),EU=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return 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(){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},SU=function(t){function e(e){return t.call(this,e)||this}return EU(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=pd.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=pd.getProperty(this.getDisplayData(),0,"value"),n=e>100?100:e,r=pd.getProperty(t,"meter","status","ranges");if(r){var i=r.filter((function(t){return t.range[0]<=n&&n<=t.range[1]}));if(i.length>0)return i[0].status}return null},e.prototype.getTabularDataArray=function(){var t,e=this.getDisplayData(),n=this.getOptions(),r=n.data.groupMapsTo,i=this.getStatus(),o=pd.getProperty(n,"meter","proportional"),a=[];if(null===o){t=100;var s=e[0];a=[TU(["Group","Value"],i?["Status"]:[]),TU([s[r],s["value"]],i?[i]:[])]}else{var u=pd.getProperty(o,"total");t=u||this.getMaximumDomain(e),a=TU([["Group","Value","Percentage of total"]],e.map((function(e){return[e[r],e["value"],(e["value"]/t*100).toFixed(2)+" %"]})))}return a},e}(zv),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(){return CU=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},CU.apply(this,arguments)},AU=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="meter",e.renderType=R.SVG,e}return MU(e,t),e.prototype.getStackedBounds=function(t,e){var n=0,r=t.map((function(t,r){return 0!==r?(n+=e(t.value),CU(CU({},t),{width:Math.abs(e(t.value)-_t.dividerWidth),x:n-e(t.value)})):(n=e(t.value),CU(CU({},t),{width:Math.abs(e(t.value)-_t.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=pd.getProperty(o,"meter","proportional"),u=this.model.getDisplayData(),c=this.model.getStatus(),l=ty.getSVGElementSize(i,{useAttrs:!0}).width,h=o.data.groupMapsTo;if(null===pd.getProperty(o,"meter","proportional"))n=100;else{var f=pd.getProperty(o,"meter","proportional","total");n=f||this.model.getMaximumDomain(this.model.getDisplayData())}var p=Nw().domain([0,n]).range([0,l]),d=this.getStackedBounds(u,p),v=pd.getProperty(o,"meter","height");ty.appendOrSelect(i,"rect.container").attr("x",0).attr("y",0).attr("width",l).attr("height",v||(s?_t.height.proportional:_t.height.default)),ty.appendOrSelect(i,"line.rangeIndicator").attr("x1",l).attr("x2",l).attr("y1",0).attr("y2",v||(s?_t.height.proportional:_t.height.default));var g=i.selectAll("rect.value").data(d),m=null==c||r.model.isUserProvidedColorScaleValid()?"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=pd.getProperty(o,"meter","height");return t||(s?_t.height.proportional:_t.height.default)})).attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[N.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=s?null:pd.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=pd.getProperty(o,"meter","height");return t||8})).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=pd.getProperty(t,"meter","proportional");this.parent.selectAll("rect.value").on("mouseover",(function(t,i){var o=Wm(this);n.services.events.dispatchEvent(ut.Meter.METER_MOUSEOVER,{event:t,element:o,datum:i}),r&&(o.classed("hovered",!0),n.services.events.dispatchEvent(ut.Tooltip.SHOW,{event:t,hoveredElement:o,items:[{label:i[e],value:i.value}]}))})).on("mousemove",(function(t,e){var i=Wm(this);n.services.events.dispatchEvent(ut.Meter.METER_MOUSEMOVE,{event:t,element:i,datum:e}),r&&n.services.events.dispatchEvent(ut.Tooltip.MOVE,{event:t})})).on("click",(function(t,e){n.services.events.dispatchEvent(ut.Meter.METER_CLICK,{event:t,element:Wm(this),datum:e})})).on("mouseout",(function(t,e){var i=Wm(this);n.services.events.dispatchEvent(ut.Meter.METER_MOUSEOUT,{event:t,element:i,datum:e}),r&&(i.classed("hovered",!1),n.services.events.dispatchEvent(ut.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}(RE),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)}}(),LU=function(t){function e(e,n){var r=t.call(this,e,n)||this;r.model=new SU(r.services);var i=n.options.meter.proportional?pd.merge(pd.clone(ev.proportionalMeterChart),n.options):pd.merge(pd.clone(ev.meterChart),n.options);return r.model.setOptions(i),r.init(e,n),r}return PU(e,t),e.prototype.getComponents=function(){var t={id:"meter-graph",components:[new AU(this.model,this.services)],growth:Z.STRETCH,renderType:R.SVG},e={id:"meter-title",components:[new bC(this.model,this.services)],growth:Z.STRETCH,renderType:R.SVG},n={id:"spacer",components:[new KR(this.model,this.services,{size:8})],growth:Z.STRETCH},r=[new QR(this.model,this.services,[e,n,t],{direction:q.COLUMN})],i=this.getChartComponents(r,{graphFrameRenderType:R.HTML});return i},e}(TB),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)}}(),DU=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},RU=function(t){function e(e){return t.call(this,e)||this}return kU(e,t),e.prototype.getTabularDataArray=function(){var t=this.getOptions(),e=this.getGroupedData(),n=pd.getProperty(t,"radar","axes"),r=n.angle,i=n.value,o=pd.getProperty(e,"0","data").map((function(t){return t[r]})),a=DU([DU(["Group"],o)],e.map((function(t){return DU([t["name"]],o.map((function(e,n){return null!==pd.getProperty(t,"data",n,i)?pd.getProperty(t,"data",n,i).toLocaleString():"–"})))})));return a},e}(CB),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)}}(),NU=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model=new RU(r.services),r.model.setOptions(pd.mergeDefaultChartOptions(ev.radarChart,n.options)),r.init(e,n),r}return IU(e,t),e.prototype.getComponents=function(){var t=[new BD(this.model,this.services)],e=this.getChartComponents(t);return e},e}(TB),jU=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),BU=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},UU=function(t){function e(e){return t.call(this,e)||this}return jU(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=BU([["Group","Value"]],t.map((function(t){return[t[n],null===t["value"]?"–":t["value"].toLocaleString()]})));return r},e}(zv),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=new UU(r.services),r.model.setOptions(pd.mergeDefaultChartOptions(ev.gaugeChart,n.options)),r.init(e,n),r}return VU(e,t),e.prototype.getComponents=function(){var t=[new IA(this.model,this.services)],e=this.getChartComponents(t);return e},e}(TB),HU=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),zU=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=(WB={},WB[rt.LINE]=[pA,oA],WB[rt.SCATTER]=[oA],WB[rt.AREA]=[WC,pA,oA],WB[rt.STACKED_AREA]=[ZC,pA,mA,mB],WB[rt.SIMPLE_BAR]=[$C],WB[rt.GROUPED_BAR]=[JC,OB],WB[rt.STACKED_BAR]=[eA,mB],WB),WU=function(t){function e(e,n){var r=t.call(this,e,n)||this,i=pd.mergeDefaultChartOptions(ev.comboChart,n.options);return n.options.comboChartTypes||(console.error("No comboChartTypes defined for the Combo Chart!"),i.comboChartTypes=[{type:rt.LINE,correspondingDatasets:[]}]),r.model.setOptions(i),r.init(e,n),r}return HU(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(FU).includes(e.type)?(r=pd.merge({},ev[pd.camelCase(e.type)+"Chart"],t.model.getOptions(),e.options),e.type===rt.STACKED_AREA&&(i=!0),FU[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=pd.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 pd.flatten(r)},e.prototype.getComponents=function(){var t=this.model.getOptions().comboChartTypes,e=t.some((function(t){return t.type===rt.STACKED_BAR||t.type===rt.STACKED_AREA})),n=zU([new yI(this.model,this.services),new uB(this.model,this.services),new VA(this.model,this.services,{skeleton:K.GRID})],e?[]:[new fB(this.model,this.services)],this.getGraphComponents()),r=this.getAxisChartComponents(n);return r},e}(LB),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)}}(),ZU=function(t){function e(e){return t.call(this,e)||this}return qU(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,"–"])})),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}(zv),YU=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return 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(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model=new ZU(r.services),r.model.setOptions(pd.mergeDefaultChartOptions(ev.treeChart,n.options)),r.init(e,n),r}return YU(e,t),e.prototype.getComponents=function(){var t=[new IP(this.model,this.services)],e=this.getChartComponents(t,{excludeLegend:!0});return e},e}(TB),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)}}(),$U=function(t){function e(e){return t.call(this,e)||this}return KU(e,t),e.prototype.getTabularDataArray=function(){var t=this.getDisplayData(),e=[["Child","Group","Value"]];return t.forEach((function(t){t.children.forEach((function(n){e.push([n.name,t.name,n.value])}))})),e},e}(zv),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(pd.mergeDefaultChartOptions(ev.treemapChart,n.options)),r.init(e,n),r}return QU(e,t),e.prototype.getComponents=function(){var t=[new TD(this.model,this.services)],e=this.getChartComponents(t);return e},e}(TB),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(){return eV=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},eV.apply(this,arguments)},nV=function(t){function e(e){var n=t.call(this,e)||this;return n.parentNode=!1,n.set({depth:2},{skipUpdate:!0}),n}return tV(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=pd.merge({},t,this.getZoomOptions(t));pd.updateLegendAdditionalItems(e,n);var r=this.getHierarchyLevel(),i=pd.getProperty(e,"circlePack","hierarchyLevel");this.set({options:pd.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&&pd.getProperty(e,0,"children")?pd.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===pd.getProperty(n,"canvasZoom","enabled")&&i>2?{legend:{additionalItems:[{type:at.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?eV(eV({},t),{dataGroupName:e,children:t.children.map((function(t,r){return n.setChildrenDataGroup(t,e)}))}):eV(eV({},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(["–",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}(zv),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(pd.mergeDefaultChartOptions(ev.circlePackChart,n.options)),r.init(e,n),r}return rV(e,t),e.prototype.getComponents=function(){var t=[new uR(this.model,this.services)],e=this.getChartComponents(t);return e},e}(TB),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=function(t){function e(e){return t.call(this,e)||this}return oV(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=aV([[e.tooltip.wordLabel,"Group",e.tooltip.valueLabel]],t.map((function(t){return[t[i],t[o],t[r]]})));return a},e}(zv),uV=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return 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(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model=new sV(r.services),r.model.setOptions(pd.mergeDefaultChartOptions(ev.wordCloudChart,n.options)),r.init(e,n),r}return uV(e,t),e.prototype.getComponents=function(){var t=[new fR(this.model,this.services),new VA(this.model,this.services,{skeleton:K.PIE})],e=this.getChartComponents(t);return e},e}(TB),lV=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),hV=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},fV=function(t){function e(e){return t.call(this,e)||this}return lV(e,t),e.prototype.getTabularDataArray=function(){var t=this.getDisplayData();t.sort((function(t,e){return t["source"].localeCompare(e["source"])}));var e=hV([["Source","Target","Value"]],t.map((function(t){return[t["source"],t["target"],t["value"]]})));return e},e}(CB),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,n){var r=t.call(this,e,n)||this;return r.model=new fV(r.services),r.model.setOptions(pd.mergeDefaultChartOptions(ev.alluvialChart,n.options)),r.init(e,n),r}return pV(e,t),e.prototype.getComponents=function(){var t=[new YR(this.model,this.services)],e=this.getChartComponents(t,{excludeLegend:!0});return e},e}(TB),vV={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}}},gV=vV;function mV(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 yV=mV(gV,qB,ZB,!1,null,null,null),_V=yV.exports,bV={name:"CcvAreaChart",extends:_V,mounted:function(){this.coreChart=new DB(this.$el,{data:this.data,options:this.options})}},OV=bV,wV=mV(OV,k,D,!1,null,null,null),xV=wV.exports,EV=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-stacked-area-chart"})},TV=[],SV={name:"CcvStackedAreaChart",extends:_V,mounted:function(){this.coreChart=new IB(this.$el,{data:this.data,options:this.options})}},MV=SV,CV=mV(MV,EV,TV,!1,null,null,null),AV=CV.exports,PV=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-simple-bar-chart"})},LV=[],kV={name:"CcvSimpleBarChart",extends:_V,mounted:function(){this.coreChart=new jB(this.$el,{data:this.data,options:this.options})}},DV=kV,RV=mV(DV,PV,LV,!1,null,null,null),IV=RV.exports,NV=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-grouped-bar-chart"})},jV=[],BV={name:"CcvGroupedBarChart",extends:_V,mounted:function(){this.coreChart=new UB(this.$el,{data:this.data,options:this.options})}},UV=BV,VV=mV(UV,NV,jV,!1,null,null,null),GV=VV.exports,HV=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-stacked-bar-chart"})},zV=[],FV={name:"CcvStackedBarChart",extends:_V,mounted:function(){this.coreChart=new GB(this.$el,{data:this.data,options:this.options})}},WV=FV,qV=mV(WV,HV,zV,!1,null,null,null),ZV=qV.exports,YV=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-boxplot-chart"})},XV=[],KV={name:"CcvBoxplotChart",extends:_V,mounted:function(){this.coreChart=new QB(this.$el,{data:this.data,options:this.options})}},$V=KV,QV=mV($V,YV,XV,!1,null,null,null),JV=QV.exports,tG=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-bubble-chart"})},eG=[],nG={name:"CcvBubbleChart",extends:_V,mounted:function(){this.coreChart=new tU(this.$el,{data:this.data,options:this.options})}},rG=nG,iG=mV(rG,tG,eG,!1,null,null,null),oG=iG.exports,aG=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-bullet-chart"})},sG=[],uG={name:"CcvBulletChart",extends:_V,mounted:function(){this.coreChart=new oU(this.$el,{data:this.data,options:this.options})}},cG=uG,lG=mV(cG,aG,sG,!1,null,null,null),hG=lG.exports,fG=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-donut-chart"})},pG=[],dG={name:"CcvDonutChart",extends:_V,mounted:function(){this.coreChart=new xU(this.$el,{data:this.data,options:this.options})}},vG=dG,gG=mV(vG,fG,pG,!1,null,null,null),mG=gG.exports,yG=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-gauge-chart"})},_G=[],bG={name:"CcvGaugeChart",extends:_V,mounted:function(){this.coreChart=new GU(this.$el,{data:this.data,options:this.options})}},OG=bG,wG=mV(OG,yG,_G,!1,null,null,null),xG=wG.exports,EG=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-histogram-chart"})},TG=[],SG={name:"CcvHistogramChart",extends:_V,mounted:function(){this.coreChart=new lU(this.$el,{data:this.data,options:this.options})}},MG=SG,CG=mV(MG,EG,TG,!1,null,null,null),AG=CG.exports,PG=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-line-chart"})},LG=[],kG={name:"CcvLineChart",extends:_V,mounted:function(){this.coreChart=new fU(this.$el,{data:this.data,options:this.options})}},DG=kG,RG=mV(DG,PG,LG,!1,null,null,null),IG=RG.exports,NG=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-lollipop-chart"})},jG=[],BG={name:"CcvLollipopChart",extends:_V,mounted:function(){this.coreChart=new dU(this.$el,{data:this.data,options:this.options})}},UG=BG,VG=mV(UG,NG,jG,!1,null,null,null),GG=VG.exports,HG=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-pie-chart"})},zG=[],FG={name:"CcvPieChart",extends:_V,mounted:function(){this.coreChart=new OU(this.$el,{data:this.data,options:this.options})}},WG=FG,qG=mV(WG,HG,zG,!1,null,null,null),ZG=qG.exports,YG=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-scatter-chart"})},XG=[],KG={name:"CcvScatterChart",extends:_V,mounted:function(){this.coreChart=new gU(this.$el,{data:this.data,options:this.options})}},$G=KG,QG=mV($G,YG,XG,!1,null,null,null),JG=QG.exports,tH=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-meter-chart"})},eH=[],nH={name:"CcvMeterChart",extends:_V,mounted:function(){this.coreChart=new LU(this.$el,{data:this.data,options:this.options})}},rH=nH,iH=mV(rH,tH,eH,!1,null,null,null),oH=iH.exports,aH=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-radar-chart"})},sH=[],uH={name:"CcvRadarChart",extends:_V,mounted:function(){this.coreChart=new NU(this.$el,{data:this.data,options:this.options})}},cH=uH,lH=mV(cH,aH,sH,!1,null,null,null),hH=lH.exports,fH=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-combo-chart"})},pH=[],dH={name:"CcvComboChart",extends:_V,mounted:function(){this.coreChart=new WU(this.$el,{data:this.data,options:this.options})}},vH=dH,gH=mV(vH,fH,pH,!1,null,null,null),mH=gH.exports,yH=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-tree-chart"})},_H=[],bH={name:"CcvTreeChart",extends:_V,mounted:function(){this.coreChart=new XU(this.$el,{data:this.data,options:this.options})}},OH=bH,wH=mV(OH,yH,_H,!1,null,null,null),xH=wH.exports,EH=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-treemap-chart"})},TH=[],SH={name:"CcvTreemapChart",extends:_V,mounted:function(){this.coreChart=new JU(this.$el,{data:this.data,options:this.options})}},MH=SH,CH=mV(MH,EH,TH,!1,null,null,null),AH=CH.exports,PH=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-circle-pack-chart"})},LH=[],kH={name:"CcvCirclePackChart",extends:_V,mounted:function(){this.coreChart=new iV(this.$el,{data:this.data,options:this.options})}},DH=kH,RH=mV(DH,PH,LH,!1,null,null,null),IH=RH.exports,NH=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-wordcloud-chart"})},jH=[],BH={name:"CcvWordCloudChart",extends:_V,mounted:function(){this.coreChart=new cV(this.$el,{data:this.data,options:this.options})}},UH=BH,VH=mV(UH,NH,jH,!1,null,null,null),GH=VH.exports,HH=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-alluvial-chart"})},zH=[],FH={name:"CcvAlluvialChart",extends:_V,mounted:function(){this.coreChart=new dV(this.$el,{data:this.data,options:this.options})}},WH=FH,qH=mV(WH,HH,zH,!1,null,null,null),ZH=qH.exports,YH=[xV,AV,IV,GV,ZV,JV,oG,hG,mG,xG,AG,IG,GG,ZG,JG,oH,hH,mH,xH,AH,IH,GH,ZH],XH={install:function(t,e){if("undefined"===typeof e){var n=!0,r=!1,i=void 0;try{for(var o,a=YH[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=YH[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 AV})),n.d(e,"CcvSimpleBarChart",(function(){return IV})),n.d(e,"CcvGroupedBarChart",(function(){return GV})),n.d(e,"CcvStackedBarChart",(function(){return ZV})),n.d(e,"CcvBoxplotChart",(function(){return JV})),n.d(e,"CcvBubbleChart",(function(){return oG})),n.d(e,"CcvBulletChart",(function(){return hG})),n.d(e,"CcvDonutChart",(function(){return mG})),n.d(e,"CcvGaugeChart",(function(){return xG})),n.d(e,"CcvHistogramChart",(function(){return AG})),n.d(e,"CcvLineChart",(function(){return IG})),n.d(e,"CcvLollipopChart",(function(){return GG})),n.d(e,"CcvPieChart",(function(){return ZG})),n.d(e,"CcvScatterChart",(function(){return JG})),n.d(e,"CcvMeterChart",(function(){return oH})),n.d(e,"CcvRadarChart",(function(){return hH})),n.d(e,"CcvComboChart",(function(){return mH})),n.d(e,"CcvTreeChart",(function(){return xH})),n.d(e,"CcvTreemapChart",(function(){return AH})),n.d(e,"CcvCirclePackChart",(function(){return IH})),n.d(e,"CcvWordCloudChart",(function(){return GH})),n.d(e,"CcvAlluvialChart",(function(){return ZH}));e["default"]=XH},"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 T=0,S=-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,T|=A}T?S=M:(e.y0++,d--,M--,l++)}e.y1=e.y0+S,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,T=f,S=m,M=[],C=1/0,A=r("word","end"),P=null,L=Math.random,k={},D=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=S(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 T=0;T<=m;T++)e[x+T]|=p<<O|(T<m?(p=v[E*m+T])>>>b:0);x+=y}return delete n.sprite,!0}}return!1}return k.canvas=function(t){return arguments.length?(D=O(t),k):D},k.start=function(){var r=R(D()),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=T.call(this,t,r),t})).sort((function(t,e){return e.size-t.size}));return P&&clearInterval(P),P=setInterval(h,0),h(),k;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",k,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&&(k.stop(),A.call("end",k,c,a))}},k.stop=function(){return P&&(clearInterval(P),P=null),k},k.timeInterval=function(t){return arguments.length?(C=null==t?1/0:t,k):C},k.words=function(t){return arguments.length?(M=t,k):M},k.size=function(e){return arguments.length?(t=[+e[0],+e[1]],k):t},k.font=function(t){return arguments.length?(n=O(t),k):n},k.fontStyle=function(t){return arguments.length?(y=O(t),k):y},k.fontWeight=function(t){return arguments.length?(x=O(t),k):x},k.rotate=function(t){return arguments.length?(E=O(t),k):E},k.text=function(t){return arguments.length?(e=O(t),k):e},k.spiral=function(t){return arguments.length?(S=w[t]||t,k):S},k.fontSize=function(t){return arguments.length?(i=O(t),k):i},k.padding=function(t){return arguments.length?(T=O(t),k):T},k.random=function(t){return arguments.length?(L=t,k):L},k.on=function(){var t=A.on.apply(A,arguments);return t===A?k:t},k};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 T=function(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=E(0,0,0,0),this.target=t};T.prototype.isActive=function(){var t=w(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},T.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t};var S=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 T(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 S(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,T,S=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||S(p),k="Array"==e&&A.entries||P;if(k&&(x=o(k.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:S(y),keys:O?L:S(m),entries:S(_)},w)for(T in E)!v&&!C&&T in A||c(A,T,E[T]);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"]},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,T=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)T[x]=y;else if(y)switch(t){case 3:return!0;case 5:return m;case 6:return x;case 2:u.call(T,m)}else if(l)return!1;return h?-1:c||l?l:T}};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"),T=n("abdf"),S=n("e129"),M=n("5b12"),C=n("b8ba"),A=n("4cdd"),P=n("332c"),L=n("d687"),k=n("1d8a"),D=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=D("toPrimitive"),z=j.set,F=j.getterFor(V),W=Object[G],q=i.Symbol,Z=o("JSON","stringify"),Y=E.f,X=T.f,K=w.f,$=S.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=Y(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=Y(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=k(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(k(t),t)})),S.f=ht,T.f=ut,E.f=ft,O.f=w.f=pt,x.f=dt,R.f=function(t){return at(D(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))}}),Z){var vt=!u||l((function(){var t=q();return"[null]"!=Z([t])||"{}"!=Z({a:t})||"{}"!=Z(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,Z.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))}},eeea: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})()},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 T})),n.d(r,"Tooltip",(function(){return S})),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}));var i,o={};(n.r(o),n.d(o,"grid",(function(){return wd})),n.d(o,"ruler",(function(){return xd})),n.d(o,"baseTooltip",(function(){return Ed})),n.d(o,"timeScale",(function(){return Sd})),n.d(o,"options",(function(){return ev})),n.d(o,"area",(function(){return lt})),n.d(o,"axis",(function(){return ht})),n.d(o,"canvasZoomSettings",(function(){return ft})),n.d(o,"circlePack",(function(){return pt})),n.d(o,"color",(function(){return dt})),n.d(o,"boxplot",(function(){return vt})),n.d(o,"histogram",(function(){return gt})),n.d(o,"legend",(function(){return mt})),n.d(o,"lines",(function(){return yt})),n.d(o,"meter",(function(){return _t})),n.d(o,"pie",(function(){return bt})),n.d(o,"radar",(function(){return Ot})),n.d(o,"alluvial",(function(){return wt})),n.d(o,"spacers",(function(){return xt})),n.d(o,"tooltips",(function(){return Et})),n.d(o,"transitions",(function(){return Tt})),n.d(o,"toolbar",(function(){return St})),n.d(o,"zoomBar",(function(){return Mt})),n.d(o,"defaultLegendAdditionalItems",(function(){return Ct})),"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,T,S,M,C,A,P,L,k=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-area-chart"})},D=[];(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"}(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"}(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"}(T||(T={})),function(t){t["SHOW"]="show-tooltip",t["MOVE"]="move-tooltip",t["HIDE"]="hide-tooltip"}(S||(S={})),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={}));var R,I,N,j,B,U,V,G,H,z,F,W,q,Z,Y,X,K,$,Q,J,tt,et,nt,rt,it,ot,at,st,ut=r;function ct(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}(function(t){t["HTML"]="html",t["SVG"]="svg"})(R||(R={})),function(t){t["DEFAULT"]="default",t["G100"]="g100",t["G90"]="g90",t["G10"]="g10"}(I||(I={})),function(t){t["BACKGROUND"]="background",t["FILL"]="fill",t["STROKE"]="stroke",t["TOOLTIP"]="tooltip"}(N||(N={})),function(t){t["LEFT"]="left",t["RIGHT"]="right",t["TOP"]="top",t["BOTTOM"]="bottom"}(j||(j={})),function(t){t["GRAPH_VIEW"]="graph_view",t["SLIDER_VIEW"]="slider_view"}(B||(B={})),function(t){t["END_LINE"]="end_line",t["MID_LINE"]="mid_line",t["FRONT_LINE"]="front_line",t["NONE"]="none"}(U||(U={})),function(t){t["VERTICAL"]="vertical",t["HORIZONTAL"]="horizontal"}(V||(V={})),function(t){t["TIME"]="time",t["LINEAR"]="linear",t["LOG"]="log",t["LABELS"]="labels",t["LABELS_RATIO"]="labels-ratio"}(G||(G={})),function(t){t["RIGHT"]="right",t["LEFT"]="left",t["TOP"]="top",t["BOTTOM"]="bottom"}(H||(H={})),function(t){t["LEFT"]="left",t["CENTER"]="center",t["RIGHT"]="right"}(z||(z={})),function(t){t["HORIZONTAL"]="horizontal",t["VERTICAL"]="vertical"}(F||(F={})),function(t){t["TREE"]="tree",t["DENDROGRAM"]="dendrogram"}(W||(W={})),function(t){t["ROW"]="row",t["COLUMN"]="column",t["ROW_REVERSE"]="row-reverse",t["COLUMN_REVERSE"]="column-reverse"}(q||(q={})),function(t){t["FIXED"]="fixed",t["PREFERRED"]="preferred",t["STRETCH"]="stretch"}(Z||(Z={})),function(t){t["CENTER"]="center"}(Y||(Y={})),function(t){t["LEFT"]="left",t["RIGHT"]="right"}(X||(X={})),function(t){t["GRID"]="grid",t["VERT_OR_HORIZ"]="vertOrHoriz",t["PIE"]="pie",t["DONUT"]="donut"}(K||(K={})),function(t){t["START"]="start",t["MIDDLE"]="middle",t["END"]="end"}($||($={})),function(t){t["BASELINE"]="baseline",t["MIDDLE"]="middle",t["HANGING"]="hanging"}(Q||(Q={})),function(t){t["SEMI"]="semi",t["FULL"]="full"}(J||(J={})),function(t){t["UP"]="up",t["DOWN"]="down"}(tt||(tt={})),function(t){t["SUCCESS"]="success",t["WARNING"]="warning",t["DANGER"]="danger"}(et||(et={})),function(t){t["ALWAYS"]="always",t["AUTO"]="auto",t["NEVER"]="never"}(nt||(nt={})),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"}(rt||(rt={})),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"}(it||(it={})),function(t){t["LEFT"]="left",t["RIGHT"]="right"}(ot||(ot={})),function(t){t["CHECKBOX"]="checkbox",t["RADIUS"]="radius",t["AREA"]="area",t["SIZE"]="size",t["LINE"]="line",t["QUARTILE"]="quartile",t["ZOOM"]="zoom"}(at||(at={}));var lt={opacity:{unselected:.05,selected:.4}},ht={ticks:{number:7,rotateIfSmallerThan:30,verticalSpaceRatio:2.5,horizontalSpaceRatio:3.5},ratio:{reference:"value",compareTo:"marker"},paddingRatio:.1},ft={duration:1e3,ease:ct,zoomLevel:3},pt={circles:{fillOpacity:.3,hover:{stroke:"#FFF"}},padding:{mainGroup:4,children:2},hierarchyLevel:2},dt={pairingOptions:{"1-color":4,"2-color":5,"3-color":5,"4-color":3,"5-color":2,"14-color":1}},vt={circle:{radius:4,opacity:{hovered:1,default:.3}},box:{opacity:{hovered:.5,default:.3}},strokeWidth:{default:1,thicker:2}},gt={defaultBins:10},mt={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"}},yt={opacity:{unselected:.3,selected:1},weight:{selected:2,unselected:1}},_t={statusBar:{paddingRight:5},status:{indicatorSize:16,paddingLeft:15},total:{paddingLeft:36,paddingRight:24},height:{default:8,proportional:16},dividerWidth:2},bt={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}},Ot={opacity:{unselected:.1,selected:.3},xLabelPadding:10,yLabelPadding:8,yTicksNumber:4,minRange:10,xAxisRectHeight:50,dotsRadius:5},wt={nodeWidth:4,nodeHoveredWidth:8,minNodePadding:24,opacity:{unfocus:.3,default:.8,selected:1}},xt={default:{size:24}},Et={horizontalOffset:10},Tt={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}},St={buttonSize:32,iconSize:20,height:32,spacerHeight:10,iconPadding:6},Mt={height:(st={},st[B.GRAPH_VIEW]=32,st[B.SLIDER_VIEW]=10,st),spacerHeight:8,handleWidth:5,handleBarWidth:1,handleBarHeight:12},Ct=[{type:at.RADIUS,name:"Radius"},{type:at.AREA,name:"Poor area"},{type:at.AREA,name:"Satisfactory area"},{type:at.AREA,name:"Great area"},{type:at.QUARTILE,name:"Quartiles"}];function At(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}var Pt=At,Lt=n("7f0d"),kt=function(){return Lt["a"].Date.now()},Dt=kt,Rt=/\s/;function It(t){var e=t.length;while(e--&&Rt.test(t.charAt(e)));return e}var Nt=It,jt=/^\s+/;function Bt(t){return t?t.slice(0,Nt(t)+1).replace(jt,""):t}var Ut=Bt,Vt=Lt["a"].Symbol,Gt=Vt,Ht=Object.prototype,zt=Ht.hasOwnProperty,Ft=Ht.toString,Wt=Gt?Gt.toStringTag:void 0;function qt(t){var e=zt.call(t,Wt),n=t[Wt];try{t[Wt]=void 0;var r=!0}catch(o){}var i=Ft.call(t);return r&&(e?t[Wt]=n:delete t[Wt]),i}var Zt=qt,Yt=Object.prototype,Xt=Yt.toString;function Kt(t){return Xt.call(t)}var $t=Kt,Qt="[object Null]",Jt="[object Undefined]",te=Gt?Gt.toStringTag:void 0;function ee(t){return null==t?void 0===t?Jt:Qt:te&&te in Object(t)?Zt(t):$t(t)}var ne=ee;function re(t){return null!=t&&"object"==typeof t}var ie=re,oe="[object Symbol]";function ae(t){return"symbol"==typeof t||ie(t)&&ne(t)==oe}var se=ae,ue=NaN,ce=/^[-+]0x[0-9a-f]+$/i,le=/^0b[01]+$/i,he=/^0o[0-7]+$/i,fe=parseInt;function pe(t){if("number"==typeof t)return t;if(se(t))return ue;if(Pt(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Pt(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Ut(t);var n=le.test(t);return n||he.test(t)?fe(t.slice(2),n?2:8):ce.test(t)?ue:+t}var de=pe,ve="Expected a function",ge=Math.max,me=Math.min;function ye(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(ve);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?me(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=Dt();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(Dt())}function O(){var t=Dt(),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=de(e)||0,Pt(n)&&(l=!!n.leading,h="maxWait"in n,o=h?ge(de(n.maxWait)||0,e):o,f="trailing"in n?!!n.trailing:f),O.cancel=_,O.flush=b,O}var _e=ye;function be(){this.__data__=[],this.size=0}var Oe=be;function we(t,e){return t===e||t!==t&&e!==e}var xe=we;function Ee(t,e){var n=t.length;while(n--)if(xe(t[n][0],e))return n;return-1}var Te=Ee,Se=Array.prototype,Me=Se.splice;function Ce(t){var e=this.__data__,n=Te(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():Me.call(e,n,1),--this.size,!0}var Ae=Ce;function Pe(t){var e=this.__data__,n=Te(e,t);return n<0?void 0:e[n][1]}var Le=Pe;function ke(t){return Te(this.__data__,t)>-1}var De=ke;function Re(t,e){var n=this.__data__,r=Te(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}var Ie=Re;function Ne(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])}}Ne.prototype.clear=Oe,Ne.prototype["delete"]=Ae,Ne.prototype.get=Le,Ne.prototype.has=De,Ne.prototype.set=Ie;var je=Ne;function Be(){this.__data__=new je,this.size=0}var Ue=Be;function Ve(t){var e=this.__data__,n=e["delete"](t);return this.size=e.size,n}var Ge=Ve;function He(t){return this.__data__.get(t)}var ze=He;function Fe(t){return this.__data__.has(t)}var We=Fe,qe="[object AsyncFunction]",Ze="[object Function]",Ye="[object GeneratorFunction]",Xe="[object Proxy]";function Ke(t){if(!Pt(t))return!1;var e=ne(t);return e==Ze||e==Ye||e==qe||e==Xe}var $e=Ke,Qe=Lt["a"]["__core-js_shared__"],Je=Qe,tn=function(){var t=/[^.]+$/.exec(Je&&Je.keys&&Je.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function en(t){return!!tn&&tn in t}var nn=en,rn=Function.prototype,on=rn.toString;function an(t){if(null!=t){try{return on.call(t)}catch(e){}try{return t+""}catch(e){}}return""}var sn=an,un=/[\\^$.*+?()[\]{}|]/g,cn=/^\[object .+?Constructor\]$/,ln=Function.prototype,hn=Object.prototype,fn=ln.toString,pn=hn.hasOwnProperty,dn=RegExp("^"+fn.call(pn).replace(un,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function vn(t){if(!Pt(t)||nn(t))return!1;var e=$e(t)?dn:cn;return e.test(sn(t))}var gn=vn;function mn(t,e){return null==t?void 0:t[e]}var yn=mn;function _n(t,e){var n=yn(t,e);return gn(n)?n:void 0}var bn=_n,On=bn(Lt["a"],"Map"),wn=On,xn=bn(Object,"create"),En=xn;function Tn(){this.__data__=En?En(null):{},this.size=0}var Sn=Tn;function Mn(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var Cn=Mn,An="__lodash_hash_undefined__",Pn=Object.prototype,Ln=Pn.hasOwnProperty;function kn(t){var e=this.__data__;if(En){var n=e[t];return n===An?void 0:n}return Ln.call(e,t)?e[t]:void 0}var Dn=kn,Rn=Object.prototype,In=Rn.hasOwnProperty;function Nn(t){var e=this.__data__;return En?void 0!==e[t]:In.call(e,t)}var jn=Nn,Bn="__lodash_hash_undefined__";function Un(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=En&&void 0===e?Bn:e,this}var Vn=Un;function Gn(t){var e=-1,n=null==t?0:t.length;this.clear();while(++e<n){var r=t[e];this.set(r[0],r[1])}}Gn.prototype.clear=Sn,Gn.prototype["delete"]=Cn,Gn.prototype.get=Dn,Gn.prototype.has=jn,Gn.prototype.set=Vn;var Hn=Gn;function zn(){this.size=0,this.__data__={hash:new Hn,map:new(wn||je),string:new Hn}}var Fn=zn;function Wn(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}var qn=Wn;function Zn(t,e){var n=t.__data__;return qn(e)?n["string"==typeof e?"string":"hash"]:n.map}var Yn=Zn;function Xn(t){var e=Yn(this,t)["delete"](t);return this.size-=e?1:0,e}var Kn=Xn;function $n(t){return Yn(this,t).get(t)}var Qn=$n;function Jn(t){return Yn(this,t).has(t)}var tr=Jn;function er(t,e){var n=Yn(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}var nr=er;function rr(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])}}rr.prototype.clear=Fn,rr.prototype["delete"]=Kn,rr.prototype.get=Qn,rr.prototype.has=tr,rr.prototype.set=nr;var ir=rr,or=200;function ar(t,e){var n=this.__data__;if(n instanceof je){var r=n.__data__;if(!wn||r.length<or-1)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new ir(r)}return n.set(t,e),this.size=n.size,this}var sr=ar;function ur(t){var e=this.__data__=new je(t);this.size=e.size}ur.prototype.clear=Ue,ur.prototype["delete"]=Ge,ur.prototype.get=ze,ur.prototype.has=We,ur.prototype.set=sr;var cr=ur;function lr(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 hr=lr,fr=function(){try{var t=bn(Object,"defineProperty");return t({},"",{}),t}catch(e){}}(),pr=fr;function dr(t,e,n){"__proto__"==e&&pr?pr(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}var vr=dr,gr=Object.prototype,mr=gr.hasOwnProperty;function yr(t,e,n){var r=t[e];mr.call(t,e)&&xe(r,n)&&(void 0!==n||e in t)||vr(t,e,n)}var _r=yr;function br(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?vr(n,s,u):_r(n,s,u)}return n}var Or=br;function wr(t,e){var n=-1,r=Array(t);while(++n<t)r[n]=e(n);return r}var xr=wr,Er="[object Arguments]";function Tr(t){return ie(t)&&ne(t)==Er}var Sr=Tr,Mr=Object.prototype,Cr=Mr.hasOwnProperty,Ar=Mr.propertyIsEnumerable,Pr=Sr(function(){return arguments}())?Sr:function(t){return ie(t)&&Cr.call(t,"callee")&&!Ar.call(t,"callee")},Lr=Pr,kr=Array.isArray,Dr=kr,Rr=n("4cf0"),Ir=9007199254740991,Nr=/^(?:0|[1-9]\d*)$/;function jr(t,e){var n=typeof t;return e=null==e?Ir:e,!!e&&("number"==n||"symbol"!=n&&Nr.test(t))&&t>-1&&t%1==0&&t<e}var Br=jr,Ur=9007199254740991;function Vr(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=Ur}var Gr=Vr,Hr="[object Arguments]",zr="[object Array]",Fr="[object Boolean]",Wr="[object Date]",qr="[object Error]",Zr="[object Function]",Yr="[object Map]",Xr="[object Number]",Kr="[object Object]",$r="[object RegExp]",Qr="[object Set]",Jr="[object String]",ti="[object WeakMap]",ei="[object ArrayBuffer]",ni="[object DataView]",ri="[object Float32Array]",ii="[object Float64Array]",oi="[object Int8Array]",ai="[object Int16Array]",si="[object Int32Array]",ui="[object Uint8Array]",ci="[object Uint8ClampedArray]",li="[object Uint16Array]",hi="[object Uint32Array]",fi={};function pi(t){return ie(t)&&Gr(t.length)&&!!fi[ne(t)]}fi[ri]=fi[ii]=fi[oi]=fi[ai]=fi[si]=fi[ui]=fi[ci]=fi[li]=fi[hi]=!0,fi[Hr]=fi[zr]=fi[ei]=fi[Fr]=fi[ni]=fi[Wr]=fi[qr]=fi[Zr]=fi[Yr]=fi[Xr]=fi[Kr]=fi[$r]=fi[Qr]=fi[Jr]=fi[ti]=!1;var di=pi;function vi(t){return function(e){return t(e)}}var gi=vi,mi=n("01ff"),yi=mi["a"]&&mi["a"].isTypedArray,_i=yi?gi(yi):di,bi=_i,Oi=Object.prototype,wi=Oi.hasOwnProperty;function xi(t,e){var n=Dr(t),r=!n&&Lr(t),i=!n&&!r&&Object(Rr["a"])(t),o=!n&&!r&&!i&&bi(t),a=n||r||i||o,s=a?xr(t.length,String):[],u=s.length;for(var c in t)!e&&!wi.call(t,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Br(c,u))||s.push(c);return s}var Ei=xi,Ti=Object.prototype;function Si(t){var e=t&&t.constructor,n="function"==typeof e&&e.prototype||Ti;return t===n}var Mi=Si;function Ci(t,e){return function(n){return t(e(n))}}var Ai=Ci,Pi=Ai(Object.keys,Object),Li=Pi,ki=Object.prototype,Di=ki.hasOwnProperty;function Ri(t){if(!Mi(t))return Li(t);var e=[];for(var n in Object(t))Di.call(t,n)&&"constructor"!=n&&e.push(n);return e}var Ii=Ri;function Ni(t){return null!=t&&Gr(t.length)&&!$e(t)}var ji=Ni;function Bi(t){return ji(t)?Ei(t):Ii(t)}var Ui=Bi;function Vi(t,e){return t&&Or(e,Ui(e),t)}var Gi=Vi;function Hi(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}var zi=Hi,Fi=Object.prototype,Wi=Fi.hasOwnProperty;function qi(t){if(!Pt(t))return zi(t);var e=Mi(t),n=[];for(var r in t)("constructor"!=r||!e&&Wi.call(t,r))&&n.push(r);return n}var Zi=qi;function Yi(t){return ji(t)?Ei(t,!0):Zi(t)}var Xi=Yi;function Ki(t,e){return t&&Or(e,Xi(e),t)}var $i=Ki,Qi=n("d6f0");function Ji(t,e){var n=-1,r=t.length;e||(e=Array(r));while(++n<r)e[n]=t[n];return e}var to=Ji;function eo(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 no=eo;function ro(){return[]}var io=ro,oo=Object.prototype,ao=oo.propertyIsEnumerable,so=Object.getOwnPropertySymbols,uo=so?function(t){return null==t?[]:(t=Object(t),no(so(t),(function(e){return ao.call(t,e)})))}:io,co=uo;function lo(t,e){return Or(t,co(t),e)}var ho=lo;function fo(t,e){var n=-1,r=e.length,i=t.length;while(++n<r)t[i+n]=e[n];return t}var po=fo,vo=Ai(Object.getPrototypeOf,Object),go=vo,mo=Object.getOwnPropertySymbols,yo=mo?function(t){var e=[];while(t)po(e,co(t)),t=go(t);return e}:io,_o=yo;function bo(t,e){return Or(t,_o(t),e)}var Oo=bo;function wo(t,e,n){var r=e(t);return Dr(t)?r:po(r,n(t))}var xo=wo;function Eo(t){return xo(t,Ui,co)}var To=Eo;function So(t){return xo(t,Xi,_o)}var Mo=So,Co=bn(Lt["a"],"DataView"),Ao=Co,Po=bn(Lt["a"],"Promise"),Lo=Po,ko=bn(Lt["a"],"Set"),Do=ko,Ro=bn(Lt["a"],"WeakMap"),Io=Ro,No="[object Map]",jo="[object Object]",Bo="[object Promise]",Uo="[object Set]",Vo="[object WeakMap]",Go="[object DataView]",Ho=sn(Ao),zo=sn(wn),Fo=sn(Lo),Wo=sn(Do),qo=sn(Io),Zo=ne;(Ao&&Zo(new Ao(new ArrayBuffer(1)))!=Go||wn&&Zo(new wn)!=No||Lo&&Zo(Lo.resolve())!=Bo||Do&&Zo(new Do)!=Uo||Io&&Zo(new Io)!=Vo)&&(Zo=function(t){var e=ne(t),n=e==jo?t.constructor:void 0,r=n?sn(n):"";if(r)switch(r){case Ho:return Go;case zo:return No;case Fo:return Bo;case Wo:return Uo;case qo:return Vo}return e});var Yo=Zo,Xo=Object.prototype,Ko=Xo.hasOwnProperty;function $o(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&Ko.call(t,"index")&&(n.index=t.index,n.input=t.input),n}var Qo=$o,Jo=Lt["a"].Uint8Array,ta=Jo;function ea(t){var e=new t.constructor(t.byteLength);return new ta(e).set(new ta(t)),e}var na=ea;function ra(t,e){var n=e?na(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}var ia=ra,oa=/\w*$/;function aa(t){var e=new t.constructor(t.source,oa.exec(t));return e.lastIndex=t.lastIndex,e}var sa=aa,ua=Gt?Gt.prototype:void 0,ca=ua?ua.valueOf:void 0;function la(t){return ca?Object(ca.call(t)):{}}var ha=la;function fa(t,e){var n=e?na(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}var pa=fa,da="[object Boolean]",va="[object Date]",ga="[object Map]",ma="[object Number]",ya="[object RegExp]",_a="[object Set]",ba="[object String]",Oa="[object Symbol]",wa="[object ArrayBuffer]",xa="[object DataView]",Ea="[object Float32Array]",Ta="[object Float64Array]",Sa="[object Int8Array]",Ma="[object Int16Array]",Ca="[object Int32Array]",Aa="[object Uint8Array]",Pa="[object Uint8ClampedArray]",La="[object Uint16Array]",ka="[object Uint32Array]";function Da(t,e,n){var r=t.constructor;switch(e){case wa:return na(t);case da:case va:return new r(+t);case xa:return ia(t,n);case Ea:case Ta:case Sa:case Ma:case Ca:case Aa:case Pa:case La:case ka:return pa(t,n);case ga:return new r;case ma:case ba:return new r(t);case ya:return sa(t);case _a:return new r;case Oa:return ha(t)}}var Ra=Da,Ia=Object.create,Na=function(){function t(){}return function(e){if(!Pt(e))return{};if(Ia)return Ia(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}(),ja=Na;function Ba(t){return"function"!=typeof t.constructor||Mi(t)?{}:ja(go(t))}var Ua=Ba,Va="[object Map]";function Ga(t){return ie(t)&&Yo(t)==Va}var Ha=Ga,za=mi["a"]&&mi["a"].isMap,Fa=za?gi(za):Ha,Wa=Fa,qa="[object Set]";function Za(t){return ie(t)&&Yo(t)==qa}var Ya=Za,Xa=mi["a"]&&mi["a"].isSet,Ka=Xa?gi(Xa):Ya,$a=Ka,Qa=1,Ja=2,ts=4,es="[object Arguments]",ns="[object Array]",rs="[object Boolean]",is="[object Date]",os="[object Error]",as="[object Function]",ss="[object GeneratorFunction]",us="[object Map]",cs="[object Number]",ls="[object Object]",hs="[object RegExp]",fs="[object Set]",ps="[object String]",ds="[object Symbol]",vs="[object WeakMap]",gs="[object ArrayBuffer]",ms="[object DataView]",ys="[object Float32Array]",_s="[object Float64Array]",bs="[object Int8Array]",Os="[object Int16Array]",ws="[object Int32Array]",xs="[object Uint8Array]",Es="[object Uint8ClampedArray]",Ts="[object Uint16Array]",Ss="[object Uint32Array]",Ms={};function Cs(t,e,n,r,i,o){var a,s=e&Qa,u=e&Ja,c=e&ts;if(n&&(a=i?n(t,r,i,o):n(t)),void 0!==a)return a;if(!Pt(t))return t;var l=Dr(t);if(l){if(a=Qo(t),!s)return to(t,a)}else{var h=Yo(t),f=h==as||h==ss;if(Object(Rr["a"])(t))return Object(Qi["a"])(t,s);if(h==ls||h==es||f&&!i){if(a=u||f?{}:Ua(t),!s)return u?Oo(t,$i(a,t)):ho(t,Gi(a,t))}else{if(!Ms[h])return i?t:{};a=Ra(t,h,s)}}o||(o=new cr);var p=o.get(t);if(p)return p;o.set(t,a),$a(t)?t.forEach((function(r){a.add(Cs(r,e,n,r,t,o))})):Wa(t)&&t.forEach((function(r,i){a.set(i,Cs(r,e,n,i,t,o))}));var d=c?u?Mo:To:u?Xi:Ui,v=l?void 0:d(t);return hr(v||t,(function(r,i){v&&(i=r,r=t[i]),_r(a,i,Cs(r,e,n,i,t,o))})),a}Ms[es]=Ms[ns]=Ms[gs]=Ms[ms]=Ms[rs]=Ms[is]=Ms[ys]=Ms[_s]=Ms[bs]=Ms[Os]=Ms[ws]=Ms[us]=Ms[cs]=Ms[ls]=Ms[hs]=Ms[fs]=Ms[ps]=Ms[ds]=Ms[xs]=Ms[Es]=Ms[Ts]=Ms[Ss]=!0,Ms[os]=Ms[as]=Ms[vs]=!1;var As=Cs,Ps=1,Ls=4;function ks(t){return As(t,Ps|Ls)}var Ds=ks;function Rs(t,e,n){(void 0===n||xe(t[e],n))&&(void 0!==n||e in t)||vr(t,e,n)}var Is=Rs;function Ns(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 js=Ns,Bs=js(),Us=Bs;function Vs(t){return ie(t)&&ji(t)}var Gs=Vs,Hs="[object Object]",zs=Function.prototype,Fs=Object.prototype,Ws=zs.toString,qs=Fs.hasOwnProperty,Zs=Ws.call(Object);function Ys(t){if(!ie(t)||ne(t)!=Hs)return!1;var e=go(t);if(null===e)return!0;var n=qs.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Ws.call(n)==Zs}var Xs=Ys;function Ks(t,e){if(("constructor"!==e||"function"!==typeof t[e])&&"__proto__"!=e)return t[e]}var $s=Ks;function Qs(t){return Or(t,Xi(t))}var Js=Qs;function tu(t,e,n,r,i,o,a){var s=$s(t,n),u=$s(e,n),c=a.get(u);if(c)Is(t,n,c);else{var l=o?o(s,u,n+"",t,e,a):void 0,h=void 0===l;if(h){var f=Dr(u),p=!f&&Object(Rr["a"])(u),d=!f&&!p&&bi(u);l=u,f||p||d?Dr(s)?l=s:Gs(s)?l=to(s):p?(h=!1,l=Object(Qi["a"])(u,!0)):d?(h=!1,l=pa(u,!0)):l=[]:Xs(u)||Lr(u)?(l=s,Lr(s)?l=Js(s):Pt(s)&&!$e(s)||(l=Ua(u))):h=!1}h&&(a.set(u,l),i(l,u,r,o,a),a["delete"](u)),Is(t,n,l)}}var eu=tu;function nu(t,e,n,r,i){t!==e&&Us(e,(function(o,a){if(i||(i=new cr),Pt(o))eu(t,e,a,n,nu,r,i);else{var s=r?r($s(t,a),o,a+"",t,e,i):void 0;void 0===s&&(s=o),Is(t,a,s)}}),Xi)}var ru=nu;function iu(t){return t}var ou=iu;function au(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 su=au,uu=Math.max;function cu(t,e,n){return e=uu(void 0===e?t.length-1:e,0),function(){var r=arguments,i=-1,o=uu(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),su(t,this,s)}}var lu=cu;function hu(t){return function(){return t}}var fu=hu,pu=pr?function(t,e){return pr(t,"toString",{configurable:!0,enumerable:!1,value:fu(e),writable:!0})}:ou,du=pu,vu=800,gu=16,mu=Date.now;function yu(t){var e=0,n=0;return function(){var r=mu(),i=gu-(r-n);if(n=r,i>0){if(++e>=vu)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var _u=yu,bu=_u(du),Ou=bu;function wu(t,e){return Ou(lu(t,e,ou),t+"")}var xu=wu;function Eu(t,e,n){if(!Pt(n))return!1;var r=typeof e;return!!("number"==r?ji(n)&&Br(e,n.length):"string"==r&&e in n)&&xe(n[e],t)}var Tu=Eu;function Su(t){return xu((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&&Tu(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 Mu=Su,Cu=Mu((function(t,e,n){ru(t,e,n)})),Au=Cu,Pu=Gt?Gt.isConcatSpreadable:void 0;function Lu(t){return Dr(t)||Lr(t)||!!(Pu&&t&&t[Pu])}var ku=Lu;function Du(t,e,n,r,i){var o=-1,a=t.length;n||(n=ku),i||(i=[]);while(++o<a){var s=t[o];e>0&&n(s)?e>1?Du(s,e-1,n,r,i):po(i,s):r||(i[i.length]=s)}return i}var Ru=Du,Iu="__lodash_hash_undefined__";function Nu(t){return this.__data__.set(t,Iu),this}var ju=Nu;function Bu(t){return this.__data__.has(t)}var Uu=Bu;function Vu(t){var e=-1,n=null==t?0:t.length;this.__data__=new ir;while(++e<n)this.add(t[e])}Vu.prototype.add=Vu.prototype.push=ju,Vu.prototype.has=Uu;var Gu=Vu;function Hu(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 zu=Hu;function Fu(t,e){return t.has(e)}var Wu=Fu,qu=1,Zu=2;function Yu(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&Zu?new Gu: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(!zu(e,(function(t,e){if(!Wu(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 Xu=Yu;function Ku(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}var $u=Ku;function Qu(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}var Ju=Qu,tc=1,ec=2,nc="[object Boolean]",rc="[object Date]",ic="[object Error]",oc="[object Map]",ac="[object Number]",sc="[object RegExp]",uc="[object Set]",cc="[object String]",lc="[object Symbol]",hc="[object ArrayBuffer]",fc="[object DataView]",pc=Gt?Gt.prototype:void 0,dc=pc?pc.valueOf:void 0;function vc(t,e,n,r,i,o,a){switch(n){case fc:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case hc:return!(t.byteLength!=e.byteLength||!o(new ta(t),new ta(e)));case nc:case rc:case ac:return xe(+t,+e);case ic:return t.name==e.name&&t.message==e.message;case sc:case cc:return t==e+"";case oc:var s=$u;case uc:var u=r&tc;if(s||(s=Ju),t.size!=e.size&&!u)return!1;var c=a.get(t);if(c)return c==e;r|=ec,a.set(t,e);var l=Xu(s(t),s(e),r,i,o,a);return a["delete"](t),l;case lc:if(dc)return dc.call(t)==dc.call(e)}return!1}var gc=vc,mc=1,yc=Object.prototype,_c=yc.hasOwnProperty;function bc(t,e,n,r,i,o){var a=n&mc,s=To(t),u=s.length,c=To(e),l=c.length;if(u!=l&&!a)return!1;var h=u;while(h--){var f=s[h];if(!(a?f in e:_c.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 Oc=bc,wc=1,xc="[object Arguments]",Ec="[object Array]",Tc="[object Object]",Sc=Object.prototype,Mc=Sc.hasOwnProperty;function Cc(t,e,n,r,i,o){var a=Dr(t),s=Dr(e),u=a?Ec:Yo(t),c=s?Ec:Yo(e);u=u==xc?Tc:u,c=c==xc?Tc:c;var l=u==Tc,h=c==Tc,f=u==c;if(f&&Object(Rr["a"])(t)){if(!Object(Rr["a"])(e))return!1;a=!0,l=!1}if(f&&!l)return o||(o=new cr),a||bi(t)?Xu(t,e,n,r,i,o):gc(t,e,u,n,r,i,o);if(!(n&wc)){var p=l&&Mc.call(t,"__wrapped__"),d=h&&Mc.call(e,"__wrapped__");if(p||d){var v=p?t.value():t,g=d?e.value():e;return o||(o=new cr),i(v,g,n,r,o)}}return!!f&&(o||(o=new cr),Oc(t,e,n,r,i,o))}var Ac=Cc;function Pc(t,e,n,r,i){return t===e||(null==t||null==e||!ie(t)&&!ie(e)?t!==t&&e!==e:Ac(t,e,n,r,Pc,i))}var Lc=Pc,kc=1,Dc=2;function Rc(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 cr;if(r)var f=r(c,l,u,t,e,h);if(!(void 0===f?Lc(l,c,kc|Dc,r,h):f))return!1}}return!0}var Ic=Rc;function Nc(t){return t===t&&!Pt(t)}var jc=Nc;function Bc(t){var e=Ui(t),n=e.length;while(n--){var r=e[n],i=t[r];e[n]=[r,i,jc(i)]}return e}var Uc=Bc;function Vc(t,e){return function(n){return null!=n&&(n[t]===e&&(void 0!==e||t in Object(n)))}}var Gc=Vc;function Hc(t){var e=Uc(t);return 1==e.length&&e[0][2]?Gc(e[0][0],e[0][1]):function(n){return n===t||Ic(n,t,e)}}var zc=Hc,Fc=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Wc=/^\w*$/;function qc(t,e){if(Dr(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!se(t))||(Wc.test(t)||!Fc.test(t)||null!=e&&t in Object(e))}var Zc=qc,Yc="Expected a function";function Xc(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError(Yc);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(Xc.Cache||ir),n}Xc.Cache=ir;var Kc=Xc,$c=500;function Qc(t){var e=Kc(t,(function(t){return n.size===$c&&n.clear(),t})),n=e.cache;return e}var Jc=Qc,tl=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,el=/\\(\\)?/g,nl=Jc((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(tl,(function(t,n,r,i){e.push(r?i.replace(el,"$1"):n||t)})),e})),rl=nl;function il(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 ol=il,al=1/0,sl=Gt?Gt.prototype:void 0,ul=sl?sl.toString:void 0;function cl(t){if("string"==typeof t)return t;if(Dr(t))return ol(t,cl)+"";if(se(t))return ul?ul.call(t):"";var e=t+"";return"0"==e&&1/t==-al?"-0":e}var ll=cl;function hl(t){return null==t?"":ll(t)}var fl=hl;function pl(t,e){return Dr(t)?t:Zc(t,e)?[t]:rl(fl(t))}var dl=pl,vl=1/0;function gl(t){if("string"==typeof t||se(t))return t;var e=t+"";return"0"==e&&1/t==-vl?"-0":e}var ml=gl;function yl(t,e){e=dl(e,t);var n=0,r=e.length;while(null!=t&&n<r)t=t[ml(e[n++])];return n&&n==r?t:void 0}var _l=yl;function bl(t,e,n){var r=null==t?void 0:_l(t,e);return void 0===r?n:r}var Ol=bl;function wl(t,e){return null!=t&&e in Object(t)}var xl=wl;function El(t,e,n){e=dl(e,t);var r=-1,i=e.length,o=!1;while(++r<i){var a=ml(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&&Gr(i)&&Br(a,i)&&(Dr(t)||Lr(t)))}var Tl=El;function Sl(t,e){return null!=t&&Tl(t,e,xl)}var Ml=Sl,Cl=1,Al=2;function Pl(t,e){return Zc(t)&&jc(e)?Gc(ml(t),e):function(n){var r=Ol(n,t);return void 0===r&&r===e?Ml(n,t):Lc(e,r,Cl|Al)}}var Ll=Pl;function kl(t){return function(e){return null==e?void 0:e[t]}}var Dl=kl;function Rl(t){return function(e){return _l(e,t)}}var Il=Rl;function Nl(t){return Zc(t)?Dl(ml(t)):Il(t)}var jl=Nl;function Bl(t){return"function"==typeof t?t:null==t?ou:"object"==typeof t?Dr(t)?Ll(t[0],t[1]):zc(t):jl(t)}var Ul=Bl;function Vl(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 Gl=Vl;function Hl(t){return t!==t}var zl=Hl;function Fl(t,e,n){var r=n-1,i=t.length;while(++r<i)if(t[r]===e)return r;return-1}var Wl=Fl;function ql(t,e,n){return e===e?Wl(t,e,n):Gl(t,zl,n)}var Zl=ql;function Yl(t,e){var n=null==t?0:t.length;return!!n&&Zl(t,e,0)>-1}var Xl=Yl;function Kl(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 $l=Kl;function Ql(){}var Jl=Ql,th=1/0,eh=Do&&1/Ju(new Do([,-0]))[1]==th?function(t){return new Do(t)}:Jl,nh=eh,rh=200;function ih(t,e,n){var r=-1,i=Xl,o=t.length,a=!0,s=[],u=s;if(n)a=!1,i=$l;else if(o>=rh){var c=e?null:nh(t);if(c)return Ju(c);a=!1,i=Wu,u=new Gu}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 oh=ih;function ah(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}var sh=ah,uh=xu((function(t){var e=sh(t);return Gs(e)&&(e=void 0),oh(Ru(t,1,Gs,!0),Ul(e,2))})),ch=uh;function lh(t){return t&&t.length?oh(t):[]}var hh=lh;function fh(t,e,n){return t===t&&(void 0!==n&&(t=t<=n?t:n),void 0!==e&&(t=t>=e?t:e)),t}var ph=fh;function dh(t,e,n){return void 0===n&&(n=e,e=void 0),void 0!==n&&(n=de(n),n=n===n?n:0),void 0!==e&&(e=de(e),e=e===e?e:0),ph(de(t),e,n)}var vh=dh;function gh(t){var e=null==t?0:t.length;return e?Ru(t,1):[]}var mh=gh;function yh(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 _h=yh;function bh(t,e){return t&&Us(t,e,Ui)}var Oh=bh;function wh(t,e){return function(n,r){if(null==n)return n;if(!ji(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 xh=wh,Eh=xh(Oh),Th=Eh;function Sh(t,e,n,r){return Th(t,(function(t,i,o){e(r,t,n(t),o)})),r}var Mh=Sh;function Ch(t,e){return function(n,r){var i=Dr(n)?_h:Mh,o=e?e():{};return i(n,t,Ul(r,2),o)}}var Ah=Ch,Ph=Object.prototype,Lh=Ph.hasOwnProperty,kh=Ah((function(t,e,n){Lh.call(t,n)?t[n].push(e):vr(t,n,[e])})),Dh=kh;function Rh(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 Ih=Rh;function Nh(t,e,n){var r=t.length;return n=void 0===n?r:n,!e&&n>=r?t:Ih(t,e,n)}var jh=Nh,Bh="\\ud800-\\udfff",Uh="\\u0300-\\u036f",Vh="\\ufe20-\\ufe2f",Gh="\\u20d0-\\u20ff",Hh=Uh+Vh+Gh,zh="\\ufe0e\\ufe0f",Fh="\\u200d",Wh=RegExp("["+Fh+Bh+Hh+zh+"]");function qh(t){return Wh.test(t)}var Zh=qh;function Yh(t){return t.split("")}var Xh=Yh,Kh="\\ud800-\\udfff",$h="\\u0300-\\u036f",Qh="\\ufe20-\\ufe2f",Jh="\\u20d0-\\u20ff",tf=$h+Qh+Jh,ef="\\ufe0e\\ufe0f",nf="["+Kh+"]",rf="["+tf+"]",of="\\ud83c[\\udffb-\\udfff]",af="(?:"+rf+"|"+of+")",sf="[^"+Kh+"]",uf="(?:\\ud83c[\\udde6-\\uddff]){2}",cf="[\\ud800-\\udbff][\\udc00-\\udfff]",lf="\\u200d",hf=af+"?",ff="["+ef+"]?",pf="(?:"+lf+"(?:"+[sf,uf,cf].join("|")+")"+ff+hf+")*",df=ff+hf+pf,vf="(?:"+[sf+rf+"?",rf,uf,cf,nf].join("|")+")",gf=RegExp(of+"(?="+of+")|"+vf+df,"g");function mf(t){return t.match(gf)||[]}var yf=mf;function _f(t){return Zh(t)?yf(t):Xh(t)}var bf=_f;function Of(t){return function(e){e=fl(e);var n=Zh(e)?bf(e):void 0,r=n?n[0]:e.charAt(0),i=n?jh(n,1).join(""):e.slice(1);return r[t]()+i}}var wf=Of,xf=wf("toUpperCase"),Ef=xf;function Tf(t){return Ef(fl(t).toLowerCase())}var Sf=Tf;function Mf(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 Cf=Mf;function Af(t){return function(e){return null==t?void 0:t[e]}}var Pf=Af,Lf={"À":"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"},kf=Pf(Lf),Df=kf,Rf=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,If="\\u0300-\\u036f",Nf="\\ufe20-\\ufe2f",jf="\\u20d0-\\u20ff",Bf=If+Nf+jf,Uf="["+Bf+"]",Vf=RegExp(Uf,"g");function Gf(t){return t=fl(t),t&&t.replace(Rf,Df).replace(Vf,"")}var Hf=Gf,zf=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function Ff(t){return t.match(zf)||[]}var Wf=Ff,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 Zf(t){return qf.test(t)}var Yf=Zf,Xf="\\ud800-\\udfff",Kf="\\u0300-\\u036f",$f="\\ufe20-\\ufe2f",Qf="\\u20d0-\\u20ff",Jf=Kf+$f+Qf,tp="\\u2700-\\u27bf",ep="a-z\\xdf-\\xf6\\xf8-\\xff",np="\\xac\\xb1\\xd7\\xf7",rp="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ip="\\u2000-\\u206f",op=" \\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",ap="A-Z\\xc0-\\xd6\\xd8-\\xde",sp="\\ufe0e\\ufe0f",up=np+rp+ip+op,cp="['’]",lp="["+up+"]",hp="["+Jf+"]",fp="\\d+",pp="["+tp+"]",dp="["+ep+"]",vp="[^"+Xf+up+fp+tp+ep+ap+"]",gp="\\ud83c[\\udffb-\\udfff]",mp="(?:"+hp+"|"+gp+")",yp="[^"+Xf+"]",_p="(?:\\ud83c[\\udde6-\\uddff]){2}",bp="[\\ud800-\\udbff][\\udc00-\\udfff]",Op="["+ap+"]",wp="\\u200d",xp="(?:"+dp+"|"+vp+")",Ep="(?:"+Op+"|"+vp+")",Tp="(?:"+cp+"(?:d|ll|m|re|s|t|ve))?",Sp="(?:"+cp+"(?:D|LL|M|RE|S|T|VE))?",Mp=mp+"?",Cp="["+sp+"]?",Ap="(?:"+wp+"(?:"+[yp,_p,bp].join("|")+")"+Cp+Mp+")*",Pp="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Lp="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",kp=Cp+Mp+Ap,Dp="(?:"+[pp,_p,bp].join("|")+")"+kp,Rp=RegExp([Op+"?"+dp+"+"+Tp+"(?="+[lp,Op,"$"].join("|")+")",Ep+"+"+Sp+"(?="+[lp,Op+xp,"$"].join("|")+")",Op+"?"+xp+"+"+Tp,Op+"+"+Sp,Lp,Pp,fp,Dp].join("|"),"g");function Ip(t){return t.match(Rp)||[]}var Np=Ip;function jp(t,e,n){return t=fl(t),e=n?void 0:e,void 0===e?Yf(t)?Np(t):Wf(t):t.match(e)||[]}var Bp=jp,Up="['’]",Vp=RegExp(Up,"g");function Gp(t){return function(e){return Cf(Bp(Hf(e).replace(Vp,"")),t,"")}}var Hp=Gp,zp=Hp((function(t,e,n){return e=e.toLowerCase(),t+(n?Sf(e):e)})),Fp=zp,Wp="[object Map]",qp="[object Set]",Zp=Object.prototype,Yp=Zp.hasOwnProperty;function Xp(t){if(null==t)return!0;if(ji(t)&&(Dr(t)||"string"==typeof t||"function"==typeof t.splice||Object(Rr["a"])(t)||bi(t)||Lr(t)))return!t.length;var e=Yo(t);if(e==Wp||e==qp)return!t.size;if(Mi(t))return!Ii(t).length;for(var n in t)if(Yp.call(t,n))return!1;return!0}var Kp=Xp;function $p(t,e){return Lc(t,e)}var Qp=$p;function Jp(t,e){var n=-1,r=ji(t)?Array(t.length):[];return Th(t,(function(t,i,o){r[++n]=e(t,i,o)})),r}var td=Jp;function ed(t,e){var n=Dr(t)?ol:td;return n(t,Ul(e,3))}var nd=ed,rd=1/0;function id(t,e){return Ru(nd(t,e),rd)}var od=id,ad=Hp((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()})),sd=ad;function ud(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 cd=ud;function ld(t,e){var n;return Th(t,(function(t,r,i){return n=e(t,r,i),!n})),!!n}var hd=ld;function fd(t,e,n){var r=Dr(t)?zu:hd;return n&&Tu(t,e,n)&&(e=void 0),r(t,Ul(e,3))}var pd,dd=fd,vd=function(t){let e;while(e=t.sourceEvent)t=e;return t},gd=function(t,e){if(t=vd(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=gd(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===G.TIME?u["mapsTo"]="date":h===G.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===U.MID_LINE?t.substr(0,n/2)+"..."+t.substr(-n/2):e===U.FRONT_LINE?"..."+t.substr(-n):e===U.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=Ct.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===V.VERTICAL?[t,e]:[e,t]}t.debounce=_e,t.clone=Ds,t.merge=Au,t.unionBy=ch,t.removeArrayDuplicates=hh,t.clamp=vh,t.flatten=mh,t.groupBy=Dh,t.camelCase=Fp,t.isEmpty=Kp,t.isEqual=Qp,t.flatMapDeep=od,t.kebabCase=sd,t.fromPairs=cd,t.some=dd,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===V.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)}})(pd||(pd={}));var md=n("39ba"),yd=n.n(md),_d=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},bd={type:U.END_LINE,threshold:16,numCharacter:14},Od={enabled:!0,position:H.BOTTOM,clickable:!0,truncation:bd,alignment:z.LEFT,order:null,additionalItems:[]},wd={x:{enabled:!0,numberOfTicks:15,alignWithAxisTicks:!1},y:{enabled:!0,numberOfTicks:5,alignWithAxisTicks:!1}},xd={enabled:!0},Ed={enabled:!0,showTotal:!0,truncation:bd,groupLabel:"Group"},Td={top:{visible:!0,includeZero:!0,truncation:bd},bottom:{visible:!0,includeZero:!0,truncation:bd},left:{visible:!0,includeZero:!0,truncation:bd},right:{visible:!0,includeZero:!0,truncation:bd}},Sd={addSpaceOnEdges:1,showDayName:!1,localeObject:yd.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"}}},Md="undefined"!==typeof document&&(document["fullscreenEnabled"]||document["webkitFullscreenEnabled"]||document["mozFullScreenEnabled"]||document["msFullscreenEnabled"]),Cd={width:null,height:null,resizable:!0,tooltip:Ed,legend:Od,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:_d([{type:it.SHOW_AS_DATATABLE}],Md?[{type:it.MAKE_FULLSCREEN}]:[],[{type:it.EXPORT_CSV},{type:it.EXPORT_PNG},{type:it.EXPORT_JPG}])}},Ad=pd.merge({},Cd,{axes:Td,timeScale:Sd,grid:wd,ruler:xd,zoomBar:{zoomRatio:.4,minZoomRatio:.01,top:{enabled:!1,type:B.GRAPH_VIEW}}}),Pd=pd.merge({},Ad,{bars:{maxWidth:16},timeScale:pd.merge(Sd,{addSpaceOnEdges:1})}),Ld=pd.merge({},Pd,{}),kd=pd.merge({},Pd,{}),Dd=pd.merge({},Pd,{bars:pd.merge({},Pd.bars,{dividerSize:1.5})}),Rd=pd.merge({},Pd,{}),Id=pd.merge({},Ad,{points:{radius:4,fillOpacity:.3,filled:!0,enabled:!0}}),Nd=Id,jd=pd.merge({},Id,{points:{radius:3,filled:!1,enabled:!0}}),Bd=pd.merge({},jd,{timeScale:pd.merge(Sd,{addSpaceOnEdges:0})}),Ud=Bd,Vd=pd.merge({},Ad,{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:at.RADIUS,name:"Radius"}]}}),Gd=pd.merge({},Ad,{bullet:{performanceAreaTitles:["Poor","Satisfactory","Great"]},grid:{x:{enabled:!1},y:{enabled:!1}},legend:{additionalItems:[{type:at.AREA,name:"Poor area"},{type:at.AREA,name:"Satisfactory area"},{type:at.AREA,name:"Great area"},{type:at.QUARTILE,name:"Quartiles"}]}}),Hd=pd.merge({},Pd,{bars:{dividerSize:1.5},timeScale:pd.merge(Sd,{addSpaceOnEdges:0})}),zd=pd.merge({},Cd,{tooltip:pd.merge({},Ed,{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"}}),Fd=pd.merge({},Cd,{pie:{labels:{formatter:null,enabled:!0},alignment:z.LEFT,sortFunction:null,valueMapsTo:"value"}}),Wd=pd.merge({},Cd,{legend:{enabled:!1},gauge:{type:J.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:z.LEFT}}),qd=pd.merge({},Fd,{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:z.LEFT}}),Zd=pd.merge({},Cd,{legend:{enabled:!1,clickable:!1},meter:{proportional:null,statusBar:{percentageIndicator:{enabled:!0}}}}),Yd=pd.merge({},Zd,{legend:{enabled:!0}}),Xd=pd.merge({},Cd,{radar:{axes:{angle:"key",value:"value"},alignment:z.LEFT},tooltip:{gridline:{enabled:!0},valueFormatter:function(t){return null!==t&&void 0!==t?t:"N/A"}}}),Kd=pd.merge({},Pd,{comboChartTypes:[]}),$d=pd.merge({tree:{type:W.TREE}},Cd,{}),Qd=pd.merge({},Cd,{data:pd.merge(Cd.data,{groupMapsTo:"name"})}),Jd=pd.merge({},Cd,pt,{data:pd.merge(Cd.data,{groupMapsTo:"name"})}),tv=pd.merge({},Cd,{alluvial:{data:pd.merge(Cd.data,{groupMapsTo:"source"}),nodePadding:24,monochrome:!1,nodes:[]}}),ev={chart:Cd,axisChart:Ad,simpleBarChart:Ld,groupedBarChart:kd,stackedBarChart:Dd,boxplotChart:Rd,bubbleChart:Vd,bulletChart:Gd,histogramChart:Hd,lineChart:jd,areaChart:Bd,stackedAreaChart:Ud,scatterChart:Id,lollipopChart:Nd,pieChart:Fd,donutChart:qd,meterChart:Zd,proportionalMeterChart:Yd,radarChart:Xd,gaugeChart:Wd,comboChart:Kd,treeChart:$d,treemapChart:Qd,circlePackChart:Jd,wordCloudChart:zd,alluvialChart:tv};class nv extends Map{constructor(t,e=av){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(rv(this,t))}has(t){return super.has(rv(this,t))}set(t,e){return super.set(iv(this,t),e)}delete(t){return super.delete(ov(this,t))}}Set;function rv({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):n}function iv({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):(t.set(r,n),n)}function ov({_intern:t,_key:e},n){const r=e(n);return t.has(r)&&(n=t.get(n),t.delete(r)),n}function av(t){return null!==t&&"object"===typeof t?t.valueOf():t}function sv(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}const uv=Symbol("implicit");function cv(){var t=new nv,e=[],n=[],r=uv;function i(i){let o=t.get(i);if(void 0===o){if(r!==uv)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 nv;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 cv(e,n).unknown(r)},sv.apply(i,arguments),i}var lv=Array.prototype.slice,hv=function(t){return"object"===typeof t&&"length"in t?t:Array.from(t)},fv=function(t){return function(){return t}},pv=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]},dv=function(t){var e=t.length,n=new Array(e);while(--e>=0)n[e]=e;return n};function vv(t,e){return t[e]}function gv(t){const e=[];return e.key=t,e}var mv=function(){var t=fv([]),e=dv,n=pv,r=vv;function i(i){var o,a,s=Array.from(t.apply(this,arguments),gv),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=hv(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:fv(Array.from(e)),i):t},i.value=function(t){return arguments.length?(r="function"===typeof t?t:fv(+t),i):r},i.order=function(t){return arguments.length?(e=null==t?dv:"function"===typeof t?t:fv(Array.from(t)),i):e},i.offset=function(t){return arguments.length?(n=null==t?pv:t,i):n},i},yv=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)},_v=Array.prototype,bv=_v.slice,Ov=(_v.map,function(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}),wv=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=xv(t)),{left:r,center:o,right:i}};function xv(t){return(e,n)=>Ov(t(e),n)}var Ev=function(t){return null===t?NaN:+t};function*Tv(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 Sv=wv(Ov),Mv=Sv.right;Sv.left,wv(Ev).center;var Cv=Mv,Av=function(t){return function(){return t}},Pv=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]},Lv=function(t){return t},kv=Math.sqrt(50),Dv=Math.sqrt(10),Rv=Math.sqrt(2),Iv=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=Nv(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 Nv(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>=kv?10:o>=Dv?5:o>=Rv?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=kv?10:o>=Dv?5:o>=Rv?2:1)}function jv(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>=kv?i*=10:o>=Dv?i*=5:o>=Rv&&(i*=2),e<t?-i:i}function Bv(t,e,n){let r;while(1){const i=Nv(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 Uv(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 Vv=function(t){return Math.ceil(Math.log(Uv(t))/Math.LN2)+1},Gv=function(){var t=Lv,e=Pv,n=Vv;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===Pv&&([c,l]=Bv(c,l,n)),h=Iv(c,l,n),h[h.length-1]>=l)if(t>=l&&e===Pv){const t=Nv(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[Cv(h,o,0,f)].push(r[i]);return d}return r.value=function(e){return arguments.length?(t="function"===typeof e?e:Av(e),r):t},r.domain=function(t){return arguments.length?(e="function"===typeof t?t:Av([t[0],t[1]]),r):e},r.thresholds=function(t){return arguments.length?(n="function"===typeof t?t:Array.isArray(t)?Av(bv.call(t)):Av(t),r):n},r},Hv=function(){return Hv=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},Hv.apply(this,arguments)},zv=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=pd.getProperty(e,"data").groupMapsTo,o=pd.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!==G.LINEAR&&r!==G.LOG||(n=n.map((function(t){var n;return Hv(Hv({},t),(n={},n[e]=null===t[e]?t[e]:Number(t[e]),n))}))),e&&o[t].domain)if(r===G.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=mt.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(pd.clone(t)),n=this.generateDataGroups(e);return this.set({data:e,dataGroups:n}),e},t.prototype.getDataGroups=function(t){var e=pd.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=mt.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 pd.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?gt.defaultBins:s,c=Array.isArray(u),l=Gv().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 mv().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=t.bins,i=void 0===r?null:r,o=t.groups,a=void 0===o?null:o,s=this.getOptions(),u=this.getDisplayData(a);e=i?i.map((function(t){return t.x0+"-"+t.x1})):pd.removeArrayDuplicates(u.map((function(t){var e=n.services.cartesianScales.getDomainIdentifier(t);return t[e]&&"function"===typeof t[e].toString?t[e].toString():t[e]})));var c=this.services.cartesianScales.domainAxisPosition,l=s.axes[c].scaleType;return l===G.TIME?e.sort((function(t,e){var n=new Date(t),r=new Date(e);return n-r})):l!==G.LOG&&l!==G.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].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.getDataGroupNames(i),l=this.getDataValuesGroupedByKeys({groups:i});if(n){var h=pd.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?mv().offset(yv):mv();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();pd.updateLegendAdditionalItems(e,t),this.set({options:pd.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(ut.Model.UPDATE,{animate:t}))},t.prototype.toggleDataLabel=function(t){var e=mt.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(ut.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=pd.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=pd.getProperty(this.colorScale,t);return r.getStrokeColor?r.getStrokeColor(t,e,n,i):i},t.prototype.isUserProvidedColorScaleValid=function(){var t=pd.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=pd.getProperty(t,"label");if(null===a){var s=pd.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=mt.items.status,r=n.ACTIVE,i=n.DISABLED,o=this.getOptions(),a=pd.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=pd.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=pd.getProperty(this.getOptions(),"color","pairing"),e=pd.getProperty(t,"numberOfVariants");(!e||e<this.allDataGroups.length)&&(e=this.allDataGroups.length);var n=pd.getProperty(t,"option"),r=dt.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=cv().range(o).domain(this.allDataGroups)},t}(),Fv=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 Wv(){}var qv=function(t){return null==t?Wv:function(){return this.querySelector(t)}},Zv=function(t){"function"!==typeof t&&(t=qv(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 Gm(r,this._parents)};function Yv(t){return null==t?[]:Array.isArray(t)?t:Array.from(t)}function Xv(){return[]}var Kv=function(t){return null==t?Xv:function(){return this.querySelectorAll(t)}};function $v(t){return function(){return Yv(t.apply(this,arguments))}}var Qv=function(t){t="function"===typeof t?$v(t):Kv(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 Gm(r,i)},Jv=function(t){return function(){return this.matches(t)}};function tg(t){return function(e){return e.matches(t)}}var eg=Array.prototype.find;function ng(t){return function(){return eg.call(this.children,t)}}function rg(){return this.firstElementChild}var ig=function(t){return this.select(null==t?rg:ng("function"===typeof t?t:tg(t)))},og=Array.prototype.filter;function ag(){return Array.from(this.children)}function sg(t){return function(){return og.call(this.children,t)}}var ug=function(t){return this.selectAll(null==t?ag:sg("function"===typeof t?t:tg(t)))},cg=function(t){"function"!==typeof t&&(t=Jv(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 Gm(r,this._parents)},lg=function(t){return new Array(t.length)},hg=function(){return new Gm(this._enter||this._groups.map(lg),this._parents)};function fg(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}fg.prototype={constructor:fg,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 pg=function(t){return function(){return t}};function dg(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 fg(t,o[s]);for(;s<u;++s)(a=e[s])&&(i[s]=a)}function vg(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 fg(t,o[s]);for(s=0;s<h;++s)(u=e[s])&&l.get(p[s])===u&&(i[s]=u)}function gg(t){return t.__data__}var mg=function(t,e){if(!arguments.length)return Array.from(this,gg);var n=e?vg:dg,r=this._parents,i=this._groups;"function"!==typeof t&&(t=pg(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=yg(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 Gm(a,r),a._enter=s,a._exit=u,a};function yg(t){return"object"===typeof t&&"length"in t?t:Array.from(t)}var _g=function(){return new Gm(this._exit||this._groups.map(lg),this._parents)},bg=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},Og=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 Gm(s,this._parents)},wg=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},xg=function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=Eg);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 Gm(i,this._parents).order()};function Eg(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}var Tg=function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},Sg=function(){return Array.from(this)},Mg=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},Cg=function(){let t=0;for(const e of this)++t;return t},Ag=function(){return!this.node()},Pg=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},Lg="http://www.w3.org/1999/xhtml",kg={svg:"http://www.w3.org/2000/svg",xhtml:Lg,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},Dg=function(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),kg.hasOwnProperty(e)?{space:kg[e],local:t}:t};function Rg(t){return function(){this.removeAttribute(t)}}function Ig(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Ng(t,e){return function(){this.setAttribute(t,e)}}function jg(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function Bg(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function Ug(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 Vg=function(t,e){var n=Dg(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?Ig:Rg:"function"===typeof e?n.local?Ug:Bg:n.local?jg:Ng)(n,e))},Gg=function(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView};function Hg(t){return function(){this.style.removeProperty(t)}}function zg(t,e,n){return function(){this.style.setProperty(t,e,n)}}function Fg(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}var Wg=function(t,e,n){return arguments.length>1?this.each((null==e?Hg:"function"===typeof e?Fg:zg)(t,e,null==n?"":n)):qg(this.node(),t)};function qg(t,e){return t.style.getPropertyValue(e)||Gg(t).getComputedStyle(t,null).getPropertyValue(e)}function Zg(t){return function(){delete this[t]}}function Yg(t,e){return function(){this[t]=e}}function Xg(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}var Kg=function(t,e){return arguments.length>1?this.each((null==e?Zg:"function"===typeof e?Xg:Yg)(t,e)):this.node()[t]};function $g(t){return t.trim().split(/^|\s+/)}function Qg(t){return t.classList||new Jg(t)}function Jg(t){this._node=t,this._names=$g(t.getAttribute("class")||"")}function tm(t,e){var n=Qg(t),r=-1,i=e.length;while(++r<i)n.add(e[r])}function em(t,e){var n=Qg(t),r=-1,i=e.length;while(++r<i)n.remove(e[r])}function nm(t){return function(){tm(this,t)}}function rm(t){return function(){em(this,t)}}function im(t,e){return function(){(e.apply(this,arguments)?tm:em)(this,t)}}Jg.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 om=function(t,e){var n=$g(t+"");if(arguments.length<2){var r=Qg(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?im:e?nm:rm)(n,e))};function am(){this.textContent=""}function sm(t){return function(){this.textContent=t}}function um(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}var cm=function(t){return arguments.length?this.each(null==t?am:("function"===typeof t?um:sm)(t)):this.node().textContent};function lm(){this.innerHTML=""}function hm(t){return function(){this.innerHTML=t}}function fm(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}var pm=function(t){return arguments.length?this.each(null==t?lm:("function"===typeof t?fm:hm)(t)):this.node().innerHTML};function dm(){this.nextSibling&&this.parentNode.appendChild(this)}var vm=function(){return this.each(dm)};function gm(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}var mm=function(){return this.each(gm)};function ym(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===Lg&&e.documentElement.namespaceURI===Lg?e.createElement(t):e.createElementNS(n,t)}}function _m(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}var bm=function(t){var e=Dg(t);return(e.local?_m:ym)(e)},Om=function(t){var e="function"===typeof t?t:bm(t);return this.select((function(){return this.appendChild(e.apply(this,arguments))}))};function wm(){return null}var xm=function(t,e){var n="function"===typeof t?t:bm(t),r=null==e?wm:"function"===typeof e?e:qv(e);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))};function Em(){var t=this.parentNode;t&&t.removeChild(this)}var Tm=function(){return this.each(Em)};function Sm(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Mm(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}var Cm=function(t){return this.select(t?Mm:Sm)},Am=function(t){return arguments.length?this.property("__data__",t):this.node().__data__};function Pm(t){return function(e){t.call(this,e,this.__data__)}}function Lm(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 km(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 Dm(t,e,n){return function(){var r,i=this.__on,o=Pm(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 Rm=function(t,e,n){var r,i,o=Lm(t+""),a=o.length;if(!(arguments.length<2)){for(s=e?Dm:km,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 Im(t,e,n){var r=Gg(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 Nm(t,e){return function(){return Im(this,t,e)}}function jm(t,e){return function(){return Im(this,t,e.apply(this,arguments))}}var Bm=function(t,e){return this.each(("function"===typeof e?jm:Nm)(t,e))},Um=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)},Vm=[null];function Gm(t,e){this._groups=t,this._parents=e}function Hm(){return new Gm([[document.documentElement]],Vm)}function zm(){return this}Gm.prototype=Hm.prototype={constructor:Gm,select:Zv,selectAll:Qv,selectChild:ig,selectChildren:ug,filter:cg,data:mg,enter:hg,exit:_g,join:bg,merge:Og,selection:zm,order:wg,sort:xg,call:Tg,nodes:Sg,node:Mg,size:Cg,empty:Ag,each:Pg,attr:Vg,style:Wg,property:Kg,classed:om,text:cm,html:pm,raise:vm,lower:mm,append:Om,insert:xm,remove:Tm,clone:Cm,datum:Am,on:Rm,dispatch:Bm,[Symbol.iterator]:Um};var Fm=Hm,Wm=function(t){return"string"===typeof t?new Gm([[document.querySelector(t)]],[document.documentElement]):new Gm([[t]],Vm)},qm={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 "},Zm=qm,Ym=Zm,Xm=n("2da1"),Km=n("eeea"),$m=n.n(Km),Qm=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Jm="DONT_STYLE_ME_css_styles_verifier",ty=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.chartID=Math.floor(281474976710656*(1+Math.random())).toString(16),r}return Qm(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=Wm(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:pd.getProperty(t.node(),"width","baseVal","value"),height:pd.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.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.addMainContainer=function(){var t=this.model.getOptions(),e=pd.getProperty(t,"style","prefix"),n=Wm(this.getHolder()).append("div").classed(Ym.prefix+"--"+e+"--chart-wrapper",!0).style("height","100%").style("width","100%");n.append("g").attr("class",Jm),this.mainContainer=n.node()},e.prototype.update=function(){this.styleHolderElement()},e.prototype.styleHolderElement=function(){var t=this.getHolder();Wm(this.getHolder()).classed(Ym.prefix+"--chart-holder",!0);var e=this.model.getOptions(),n=e.width,r=e.height;n!==this.width&&(t.style.width=n,this.width=n),r!==this.height&&(t.style.height=r,this.height=r)},e.prototype.getHolder=function(){return this.model.get("holder")},e.prototype.exportToJPG=function(){var t=this,e=this.getHolder(),n=Wm(e);n.classed("filled",!0),$m.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("bx--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=Wm(e);n.classed("filled",!0),$m.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("bx--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=Wm(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=Wm(t.getHolder()),n=e.classed("fullscreen");e.classed("fullscreen",!n)}))},e.prototype.verifyCSSStylesBeingApplied=function(){var t=this;setTimeout((function(){var e=Wm(t.mainContainer).select("g."+Jm).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(Wm(this.mainContainer),{useBBox:!0}).height,n=Wm(this.mainContainer).attr("class"),r=Wm(this.mainContainer).selectAll("."+n+" > svg"),i=0;r.nodes().forEach((function(t){i+=Number(e.getSVGElementSize(Wm(t),{useBBox:!0}).height)})),i<=t?Wm(this.mainContainer).attr("height",i):Wm(this.mainContainer).attr("height","100%")}},e.prototype.getMainContainer=function(){return this.mainContainer},e.prototype.addHolderListeners=function(){var t=this,e=this.getHolder();e&&Wm(e).on("mouseover",(function(){t.services.events.dispatchEvent(ut.Chart.MOUSEOVER)})).on("mouseout",(function(){t.services.events.dispatchEvent(ut.Chart.MOUSEOUT)}))},e.prototype.addResizeListener=function(){var t=this,e=this.getHolder();if(e){var n=e.clientWidth,r=e.clientHeight,i=pd.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(ut.Chart.RESIZE))}),12.5),o=new Xm["a"](i);o.observe(e)}},e}(Fv),ey=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ny=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ey(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}(Fv),ry=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),iy=function(t){function e(e,n){return t.call(this,e,n)||this}return ry(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}(Fv),oy=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ay=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.pendingTransitions={},e}return oy(e,t),e.prototype.init=function(){var t=this;this.services.events.addEventListener(ut.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(pd.getProperty(Tt,r,"duration")||Tt.default.duration)},e.prototype.getPendingTransitions=function(){return this.pendingTransitions},e}(Fv),sy=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),uy=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return sy(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}(Fv);const cy=1e3,ly=60*cy,hy=60*ly,fy=24*hy,py=7*fy,dy=30*fy,vy=365*fy;var gy=new Date,my=new Date;function yy(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 yy((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 gy.setTime(+e),my.setTime(+r),t(gy),t(my),Math.floor(n(gy,my))},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 _y=yy((function(){}),(function(t,e){t.setTime(+t+e)}),(function(t,e){return e-t}));_y.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?yy((function(e){e.setTime(Math.floor(e/t)*t)}),(function(e,n){e.setTime(+e+n*t)}),(function(e,n){return(n-e)/t})):_y:null};var by=_y,Oy=(_y.range,yy((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,e){t.setTime(+t+e*cy)}),(function(t,e){return(e-t)/cy}),(function(t){return t.getUTCSeconds()}))),wy=Oy,xy=(Oy.range,yy((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*cy)}),(function(t,e){t.setTime(+t+e*ly)}),(function(t,e){return(e-t)/ly}),(function(t){return t.getMinutes()}))),Ey=xy,Ty=(xy.range,yy((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*cy-t.getMinutes()*ly)}),(function(t,e){t.setTime(+t+e*hy)}),(function(t,e){return(e-t)/hy}),(function(t){return t.getHours()}))),Sy=Ty,My=(Ty.range,yy(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*ly)/fy,t=>t.getDate()-1)),Cy=My;My.range;function Ay(t){return yy((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())*ly)/py}))}var Py=Ay(0),Ly=Ay(1),ky=Ay(2),Dy=Ay(3),Ry=Ay(4),Iy=Ay(5),Ny=Ay(6),jy=(Py.range,Ly.range,ky.range,Dy.range,Ry.range,Iy.range,Ny.range,yy((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()}))),By=jy,Uy=(jy.range,yy((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()})));Uy.every=function(t){return isFinite(t=Math.floor(t))&&t>0?yy((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 Vy=Uy,Gy=(Uy.range,yy((function(t){t.setUTCSeconds(0,0)}),(function(t,e){t.setTime(+t+e*ly)}),(function(t,e){return(e-t)/ly}),(function(t){return t.getUTCMinutes()}))),Hy=Gy,zy=(Gy.range,yy((function(t){t.setUTCMinutes(0,0,0)}),(function(t,e){t.setTime(+t+e*hy)}),(function(t,e){return(e-t)/hy}),(function(t){return t.getUTCHours()}))),Fy=zy,Wy=(zy.range,yy((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/fy}),(function(t){return t.getUTCDate()-1}))),qy=Wy;Wy.range;function Zy(t){return yy((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)/py}))}var Yy=Zy(0),Xy=Zy(1),Ky=Zy(2),$y=Zy(3),Qy=Zy(4),Jy=Zy(5),t_=Zy(6),e_=(Yy.range,Xy.range,Ky.range,$y.range,Qy.range,Jy.range,t_.range,yy((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()}))),n_=e_,r_=(e_.range,yy((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()})));r_.every=function(t){return isFinite(t=Math.floor(t))&&t>0?yy((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 i_=r_;r_.range;function o_(t,e,n,r,i,o){const a=[[wy,1,cy],[wy,5,5*cy],[wy,15,15*cy],[wy,30,30*cy],[o,1,ly],[o,5,5*ly],[o,15,15*ly],[o,30,30*ly],[i,1,hy],[i,3,3*hy],[i,6,6*hy],[i,12,12*hy],[r,1,fy],[r,2,2*fy],[n,1,py],[e,1,dy],[e,3,3*dy],[t,1,vy]];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=wv(([,,t])=>t).right(a,i);if(o===a.length)return t.every(jv(e/vy,n/vy,r));if(0===o)return by.every(Math.max(jv(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[a_,s_]=o_(i_,n_,Yy,qy,Fy,Hy),[u_,c_]=o_(Vy,By,Py,Cy,Sy,Ey);function l_(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 h_(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 f_(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}function p_(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=w_(i),l=x_(i),h=w_(o),f=x_(o),p=w_(a),d=x_(a),v=w_(s),g=x_(s),m=w_(u),y=x_(u),_={a:D,A:R,b:I,B:N,c:null,d:F_,e:F_,f:X_,g:ab,G:ub,H:W_,I:q_,j:Z_,L:Y_,m:K_,M:$_,p:j,q:B,Q:Lb,s:kb,S:Q_,u:J_,U:tb,V:nb,w:rb,W:ib,x:null,X:null,y:ob,Y:sb,Z:cb,"%":Pb},b={a:U,A:V,b:G,B:H,c:null,d:lb,e:lb,f:vb,g:Sb,G:Cb,H:hb,I:fb,j:pb,L:db,m:gb,M:mb,p:z,q:F,Q:Lb,s:kb,S:yb,u:_b,U:bb,V:wb,w:xb,W:Eb,x:null,X:null,y:Tb,Y:Mb,Z:Ab,"%":Pb},O={a:S,A:M,b:C,B:A,c:P,d:R_,e:R_,f:V_,g:P_,G:A_,H:N_,I:N_,j:I_,L:U_,m:D_,M:j_,p:T,q:k_,Q:H_,s:z_,S:B_,u:T_,U:S_,V:M_,w:E_,W:C_,x:L,X:k,y:P_,Y:A_,Z:L_,"%":G_};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=g_[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=f_(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=h_(f_(o.y,0,1)),i=r.getUTCDay(),r=i>4||0===i?Xy.ceil(r):Xy(r),r=qy.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(r=l_(f_(o.y,0,1)),i=r.getDay(),r=i>4||0===i?Ly.ceil(r):Ly(r),r=Cy.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?h_(f_(o.y,0,1)).getUTCDay():l_(f_(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,h_(o)):l_(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 g_?e.charAt(a++):i],!o||(r=o(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}function T(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 S(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 k(t,e,n){return E(t,r,e,n)}function D(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 d_,v_,g_={"-":"",_:" ",0:"0"},m_=/^\s*\d+/,y_=/^%/,__=/[\\^$*+?|[\]().{}]/g;function b_(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 O_(t){return t.replace(__,"\\$&")}function w_(t){return new RegExp("^(?:"+t.map(O_).join("|")+")","i")}function x_(t){return new Map(t.map((t,e)=>[t.toLowerCase(),e]))}function E_(t,e,n){var r=m_.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function T_(t,e,n){var r=m_.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function S_(t,e,n){var r=m_.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function M_(t,e,n){var r=m_.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function C_(t,e,n){var r=m_.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function A_(t,e,n){var r=m_.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function P_(t,e,n){var r=m_.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function L_(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 k_(t,e,n){var r=m_.exec(e.slice(n,n+1));return r?(t.q=3*r[0]-3,n+r[0].length):-1}function D_(t,e,n){var r=m_.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function R_(t,e,n){var r=m_.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function I_(t,e,n){var r=m_.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function N_(t,e,n){var r=m_.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function j_(t,e,n){var r=m_.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function B_(t,e,n){var r=m_.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function U_(t,e,n){var r=m_.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function V_(t,e,n){var r=m_.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function G_(t,e,n){var r=y_.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function H_(t,e,n){var r=m_.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function z_(t,e,n){var r=m_.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function F_(t,e){return b_(t.getDate(),e,2)}function W_(t,e){return b_(t.getHours(),e,2)}function q_(t,e){return b_(t.getHours()%12||12,e,2)}function Z_(t,e){return b_(1+Cy.count(Vy(t),t),e,3)}function Y_(t,e){return b_(t.getMilliseconds(),e,3)}function X_(t,e){return Y_(t,e)+"000"}function K_(t,e){return b_(t.getMonth()+1,e,2)}function $_(t,e){return b_(t.getMinutes(),e,2)}function Q_(t,e){return b_(t.getSeconds(),e,2)}function J_(t){var e=t.getDay();return 0===e?7:e}function tb(t,e){return b_(Py.count(Vy(t)-1,t),e,2)}function eb(t){var e=t.getDay();return e>=4||0===e?Ry(t):Ry.ceil(t)}function nb(t,e){return t=eb(t),b_(Ry.count(Vy(t),t)+(4===Vy(t).getDay()),e,2)}function rb(t){return t.getDay()}function ib(t,e){return b_(Ly.count(Vy(t)-1,t),e,2)}function ob(t,e){return b_(t.getFullYear()%100,e,2)}function ab(t,e){return t=eb(t),b_(t.getFullYear()%100,e,2)}function sb(t,e){return b_(t.getFullYear()%1e4,e,4)}function ub(t,e){var n=t.getDay();return t=n>=4||0===n?Ry(t):Ry.ceil(t),b_(t.getFullYear()%1e4,e,4)}function cb(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+b_(e/60|0,"0",2)+b_(e%60,"0",2)}function lb(t,e){return b_(t.getUTCDate(),e,2)}function hb(t,e){return b_(t.getUTCHours(),e,2)}function fb(t,e){return b_(t.getUTCHours()%12||12,e,2)}function pb(t,e){return b_(1+qy.count(i_(t),t),e,3)}function db(t,e){return b_(t.getUTCMilliseconds(),e,3)}function vb(t,e){return db(t,e)+"000"}function gb(t,e){return b_(t.getUTCMonth()+1,e,2)}function mb(t,e){return b_(t.getUTCMinutes(),e,2)}function yb(t,e){return b_(t.getUTCSeconds(),e,2)}function _b(t){var e=t.getUTCDay();return 0===e?7:e}function bb(t,e){return b_(Yy.count(i_(t)-1,t),e,2)}function Ob(t){var e=t.getUTCDay();return e>=4||0===e?Qy(t):Qy.ceil(t)}function wb(t,e){return t=Ob(t),b_(Qy.count(i_(t),t)+(4===i_(t).getUTCDay()),e,2)}function xb(t){return t.getUTCDay()}function Eb(t,e){return b_(Xy.count(i_(t)-1,t),e,2)}function Tb(t,e){return b_(t.getUTCFullYear()%100,e,2)}function Sb(t,e){return t=Ob(t),b_(t.getUTCFullYear()%100,e,2)}function Mb(t,e){return b_(t.getUTCFullYear()%1e4,e,4)}function Cb(t,e){var n=t.getUTCDay();return t=n>=4||0===n?Qy(t):Qy.ceil(t),b_(t.getUTCFullYear()%1e4,e,4)}function Ab(){return"+0000"}function Pb(){return"%"}function Lb(t){return+t}function kb(t){return Math.floor(+t/1e3)}function Db(t){return d_=p_(t),v_=d_.format,d_.parse,d_.utcFormat,d_.utcParse,d_}Db({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 Rb=function(t,e,n){t.prototype=e.prototype=n,n.constructor=t};function Ib(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function Nb(){}var jb=.7,Bb=1/jb,Ub="\\s*([+-]?\\d+)\\s*",Vb="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Gb="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Hb=/^#([0-9a-f]{3,8})$/,zb=new RegExp("^rgb\\("+[Ub,Ub,Ub]+"\\)$"),Fb=new RegExp("^rgb\\("+[Gb,Gb,Gb]+"\\)$"),Wb=new RegExp("^rgba\\("+[Ub,Ub,Ub,Vb]+"\\)$"),qb=new RegExp("^rgba\\("+[Gb,Gb,Gb,Vb]+"\\)$"),Zb=new RegExp("^hsl\\("+[Vb,Gb,Gb]+"\\)$"),Yb=new RegExp("^hsla\\("+[Vb,Gb,Gb,Vb]+"\\)$"),Xb={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 Kb(){return this.rgb().formatHex()}function $b(){return cO(this).formatHsl()}function Qb(){return this.rgb().formatRgb()}function Jb(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=Hb.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?tO(e):3===n?new iO(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?eO(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?eO(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=zb.exec(t))?new iO(e[1],e[2],e[3],1):(e=Fb.exec(t))?new iO(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Wb.exec(t))?eO(e[1],e[2],e[3],e[4]):(e=qb.exec(t))?eO(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Zb.exec(t))?uO(e[1],e[2]/100,e[3]/100,1):(e=Yb.exec(t))?uO(e[1],e[2]/100,e[3]/100,e[4]):Xb.hasOwnProperty(t)?tO(Xb[t]):"transparent"===t?new iO(NaN,NaN,NaN,0):null}function tO(t){return new iO(t>>16&255,t>>8&255,255&t,1)}function eO(t,e,n,r){return r<=0&&(t=e=n=NaN),new iO(t,e,n,r)}function nO(t){return t instanceof Nb||(t=Jb(t)),t?(t=t.rgb(),new iO(t.r,t.g,t.b,t.opacity)):new iO}function rO(t,e,n,r){return 1===arguments.length?nO(t):new iO(t,e,n,null==r?1:r)}function iO(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function oO(){return"#"+sO(this.r)+sO(this.g)+sO(this.b)}function aO(){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 sO(t){return t=Math.max(0,Math.min(255,Math.round(t)||0)),(t<16?"0":"")+t.toString(16)}function uO(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new hO(t,e,n,r)}function cO(t){if(t instanceof hO)return new hO(t.h,t.s,t.l,t.opacity);if(t instanceof Nb||(t=Jb(t)),!t)return new hO;if(t instanceof hO)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 hO(a,s,u,t.opacity)}function lO(t,e,n,r){return 1===arguments.length?cO(t):new hO(t,e,n,null==r?1:r)}function hO(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function fO(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 pO(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}Rb(Nb,Jb,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:Kb,formatHex:Kb,formatHsl:$b,formatRgb:Qb,toString:Qb}),Rb(iO,rO,Ib(Nb,{brighter:function(t){return t=null==t?Bb:Math.pow(Bb,t),new iO(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?jb:Math.pow(jb,t),new iO(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:oO,formatHex:oO,formatRgb:aO,toString:aO})),Rb(hO,lO,Ib(Nb,{brighter:function(t){return t=null==t?Bb:Math.pow(Bb,t),new hO(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?jb:Math.pow(jb,t),new hO(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 iO(fO(t>=240?t-240:t+120,i,r),fO(t,i,r),fO(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 dO=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 pO((n-r/e)*e,a,i,o,s)}},vO=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 pO((n-r/e)*e,i,o,a,s)}},gO=t=>()=>t;function mO(t,e){return function(n){return t+n*e}}function yO(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 _O(t){return 1===(t=+t)?bO:function(e,n){return n-e?yO(e,n,t):gO(isNaN(e)?n:e)}}function bO(t,e){var n=e-t;return n?mO(t,n):gO(isNaN(t)?e:t)}var OO=function t(e){var n=_O(e);function r(t,e){var r=n((t=rO(t)).r,(e=rO(e)).r),i=n(t.g,e.g),o=n(t.b,e.b),a=bO(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 wO(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=rO(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+""}}}wO(dO),wO(vO);var xO=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 EO(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function TO(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]=RO(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 SO=function(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}},MO=function(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}},CO=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]=RO(t[n],e[n]):i[n]=e[n];return function(t){for(n in r)i[n]=r[n](t);return i}},AO=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,PO=new RegExp(AO.source,"g");function LO(t){return function(){return t}}function kO(t){return function(e){return t(e)+""}}var DO=function(t,e){var n,r,i,o=AO.lastIndex=PO.lastIndex=0,a=-1,s=[],u=[];t+="",e+="";while((n=AO.exec(t))&&(r=PO.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:MO(n,r)})),o=PO.lastIndex;return o<e.length&&(i=e.slice(o),s[a]?s[a]+=i:s[++a]=i),s.length<2?u[0]?kO(u[0].x):LO(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("")})},RO=function(t,e){var n,r=typeof e;return null==e||"boolean"===r?gO(e):("number"===r?MO:"string"===r?(n=Jb(e))?(e=n,OO):DO:e instanceof Jb?OO:e instanceof Date?SO:EO(e)?xO:Array.isArray(e)?TO:"function"!==typeof e.valueOf&&"function"!==typeof e.toString||isNaN(e)?CO:MO)(t,e)},IO=function(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}};function NO(t){return function(){return t}}function jO(t){return+t}var BO=[0,1];function UO(t){return t}function VO(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:NO(isNaN(e)?NaN:.5)}function GO(t,e){var n;return t>e&&(n=t,t=e,e=n),function(n){return Math.max(t,Math.min(e,n))}}function HO(t,e,n){var r=t[0],i=t[1],o=e[0],a=e[1];return i<r?(r=VO(i,r),o=n(a,o)):(r=VO(r,i),o=n(o,a)),function(t){return o(r(t))}}function zO(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]=VO(t[a],t[a+1]),o[a]=n(e[a],e[a+1]);return function(e){var n=Cv(t,e,1,r)-1;return o[n](i[n](e))}}function FO(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function WO(){var t,e,n,r,i,o,a=BO,s=BO,u=RO,c=UO;function l(){var t=Math.min(a.length,s.length);return c!==UO&&(c=GO(a[0],a[t-1])),r=t>2?zO:HO,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),MO)))(n)))},h.domain=function(t){return arguments.length?(a=Array.from(t,jO),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=IO,l()},h.clamp=function(t){return arguments.length?(c=!!t||UO,l()):c!==UO},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 qO(){return WO()(UO,UO)}function ZO(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 YO(t){return new Date(t)}function XO(t){return t instanceof Date?+t:+new Date(+t)}function KO(t,e,n,r,i,o,a,s,u,c){var l=qO(),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,XO)):f().map(YO)},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(ZO(n,t)):l},l.copy=function(){return FO(l,KO(t,e,n,r,i,o,a,s,u,c))},l}function $O(){return sv.apply(KO(u_,c_,Vy,By,Py,Cy,Sy,Ey,wy,v_).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}var QO=function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)};function JO(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 tw=function(t){return t=JO(Math.abs(t)),t?t[1]:NaN},ew=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)}},nw=function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}},rw=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function iw(t){if(!(e=rw.exec(t)))throw new Error("invalid format: "+t);var e;return new ow({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 ow(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+""}iw.prototype=ow.prototype,ow.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 aw,sw,uw,cw,lw=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},hw=function(t,e){var n=JO(t,e);if(!n)return t+"";var r=n[0],i=n[1],o=i-(aw=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")+JO(t,Math.max(0,e+o-1))[0]},fw=function(t,e){var n=JO(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")},pw={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:QO,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)=>fw(100*t,e),r:fw,s:hw,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)},dw=function(t){return t},vw=Array.prototype.map,gw=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"],mw=function(t){var e=void 0===t.grouping||void 0===t.thousands?dw:ew(vw.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?dw:nw(vw.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=iw(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"):pw[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=pw[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=lw(t)),E&&0===+t&&"+"!==h&&(E=!1),f=(E?"("===h?h:s:"-"===h||"("===h?"":h)+f,x=("s"===y?gw[8+aw/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 T=f.length+t.length+x.length,S=T<d?new Array(d-T+1).join(c):"";switch(v&&p&&(t=e(S+t,S.length?d-x.length:1/0),S=""),l){case"<":t=f+t+x+S;break;case"=":t=f+S+t+x;break;case"^":t=S.slice(0,T=S.length>>1)+f+t+x+S.slice(T);break;default:t=S+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=iw(t),t.type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(tw(e)/3))),i=Math.pow(10,-r),o=gw[8+r/3];return function(t){return n(i*t)+o}}return{format:c,formatPrefix:l}};function yw(t){return sw=mw(t),uw=sw.format,cw=sw.formatPrefix,sw}function _w(t){return Math.log(t)}function bw(t){return Math.exp(t)}function Ow(t){return-Math.log(-t)}function ww(t){return-Math.exp(-t)}function xw(t){return isFinite(t)?+("1e"+t):t<0?0:t}function Ew(t){return 10===t?xw:t===Math.E?Math.exp:function(e){return Math.pow(t,e)}}function Tw(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 Sw(t){return function(e){return-t(-e)}}function Mw(t){var e,n,r=t(_w,bw),i=r.domain,o=10;function a(){return e=Tw(o),n=Ew(o),i()[0]<0?(e=Sw(e),n=Sw(n),t(Ow,ww)):t(_w,bw),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=Iv(s,u,d))}else v=Iv(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=uw(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(ZO(i(),{floor:function(t){return n(Math.floor(e(t)))},ceil:function(t){return n(Math.ceil(e(t)))}}))},r}function Cw(){var t=Mw(WO()).domain([1,10]);return t.copy=function(){return FO(t,Cw()).base(t.base())},sv.apply(t,arguments),t}yw({thousands:",",grouping:[3],currency:["$",""]});var Aw=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 Pw(){var t,e,n=cv().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=Aw(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 Pw(r(),[o,a]).round(s).paddingInner(u).paddingOuter(c).align(l)},sv.apply(h(),arguments)}var Lw=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(tw(e)/3)))-tw(Math.abs(t)))},kw=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,tw(e)-tw(t))+1},Dw=function(t){return Math.max(0,-tw(Math.abs(t)))};function Rw(t,e,n,r){var i,o=jv(t,e,n);switch(r=iw(null==r?",f":r),r.type){case"s":var a=Math.max(Math.abs(t),Math.abs(e));return null!=r.precision||isNaN(i=Lw(o,a))||(r.precision=i),cw(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=kw(o,Math.max(Math.abs(t),Math.abs(e))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=Dw(o))||(r.precision=i-2*("%"===r.type));break}return uw(r)}function Iw(t){var e=t.domain;return t.ticks=function(t){var n=e();return Iv(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var r=e();return Rw(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=Nv(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 Nw(){var t=qO();return t.copy=function(){return FO(t,Nw())},sv.apply(t,arguments),Iw(t)}function jw(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 Bw(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 Uw(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Bw(t),r=Bw(e);return n.getFullYear()-r.getFullYear()}function Vw(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Bw(t),r=Bw(e),i=n.getTime()-r.getTime();return i<0?-1:i>0?1:i}function Gw(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Bw(t),r=Bw(e),i=Vw(n,r),o=Math.abs(Uw(n,r));n.setFullYear(n.getFullYear()-i*o);var a=Vw(n,r)===-i,s=i*(o-a);return 0===s?0:s}function Hw(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 zw(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=Bw(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 Fw(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Bw(t),r=Hw(e),i=n.getMonth()+r,o=new Date(0);o.setFullYear(n.getFullYear(),i,1),o.setHours(0,0,0,0);var a=zw(o);return n.setMonth(i,Math.min(a,n.getDate())),n}function Ww(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Hw(e);return Fw(t,12*n)}function qw(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Hw(e);return Ww(t,-n)}function Zw(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Bw(t),r=Bw(e),i=n.getFullYear()-r.getFullYear(),o=n.getMonth()-r.getMonth();return 12*i+o}function Yw(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Bw(t),r=Bw(e),i=Vw(n,r),o=Math.abs(Zw(n,r));n.setMonth(n.getMonth()-i*o);var a=Vw(n,r)===-i,s=i*(o-a);return 0===s?0:s}function Xw(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Hw(e);return Fw(t,-n)}var Kw=6e4;function $w(t){var e=new Date(t.getTime()),n=Math.ceil(e.getTimezoneOffset());e.setSeconds(0,0);var r=e.getTime()%Kw;return n*Kw+r}function Qw(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=Bw(t);return e.setHours(0,0,0,0),e}var Jw=864e5;function tx(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Qw(t),r=Qw(e),i=n.getTime()-$w(n),o=r.getTime()-$w(r);return Math.round((i-o)/Jw)}function ex(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Bw(t),r=Bw(e),i=Vw(n,r),o=Math.abs(tx(n,r));n.setDate(n.getDate()-i*o);var a=Vw(n,r)===-i,s=i*(o-a);return 0===s?0:s}function nx(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Bw(t),r=Hw(e);return n.setDate(n.getDate()+r),n}function rx(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Hw(e);return nx(t,-n)}function ix(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Bw(t),r=Bw(e);return n.getTime()-r.getTime()}var ox=36e5;function ax(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=ix(t,e)/ox;return n>0?Math.floor(n):Math.ceil(n)}function sx(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Bw(t).getTime(),r=Hw(e);return new Date(n+r)}var ux=36e5;function cx(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Hw(e);return sx(t,n*ux)}function lx(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Hw(e);return cx(t,-n)}var hx=6e4;function fx(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=ix(t,e)/hx;return n>0?Math.floor(n):Math.ceil(n)}var px=6e4;function dx(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Hw(e);return sx(t,n*px)}function vx(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Hw(e);return dx(t,-n)}function gx(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=ix(t,e)/1e3;return n>0?Math.floor(n):Math.ceil(n)}function mx(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Hw(e);return sx(t,1e3*n)}function yx(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Hw(e);return mx(t,-n)}var _x=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),bx=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},Ox=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},wx=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 _x(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=pd.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=pd.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 pd.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===j.BOTTOM||t===j.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(j).map((function(t){return j[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!==j.LEFT&&this.rangeAxisPosition!==j.RIGHT||this.domainAxisPosition!==j.BOTTOM&&this.domainAxisPosition!==j.TOP?this.orientation=V.HORIZONTAL:this.orientation=V.VERTICAL},e.prototype.isDualAxes=function(){return this.dualAxes},e.prototype.determineAxisDuality=function(){var t,e,n,r,i=this.model.getOptions(),o=pd.getProperty(i,"axes");((null===(t=o[j.LEFT])||void 0===t?void 0:t.correspondingDatasets)&&o[j.RIGHT]||(null===(e=o[j.RIGHT])||void 0===e?void 0:e.correspondingDatasets)&&o[j.LEFT]||(null===(n=o[j.TOP])||void 0===n?void 0:n.correspondingDatasets)&&o[j.BOTTOM]||(null===(r=o[j.BOTTOM])||void 0===r?void 0:r.correspondingDatasets)&&o[j.TOP])&&(this.dualAxes=!0)},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=[j.BOTTOM,j.TOP];return[this.domainAxisPosition,this.rangeAxisPosition].find((function(e){return t.indexOf(e)>-1}))},e.prototype.getMainYAxisPosition=function(){var t=[j.LEFT,j.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=pd.getProperty(a,"axes"),u=s[n],c=u.mapsTo,l=null!==pd.getProperty(r,c)?r[c]:r;switch(e){case G.LABELS:o=t(l)+t.step()/2;break;case G.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.scales[this.rangeAxisPosition],i=this.model.getOptions(),o=pd.getProperty(i,"axes"),a=o[this.rangeAxisPosition],s=a.mapsTo,u=void 0!==t[s]?t[s]:t,c=[r(null!==pd.getProperty(t,n.upperBoundMapsTo)?t[n.upperBoundMapsTo]:u),r(null!==pd.getProperty(t,n.lowerBoundMapsTo)?t[n.lowerBoundMapsTo]:u)];return c},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 pd.getProperty(e,"axes",this.getDomainAxisPosition({datum:t}),"mapsTo")},e.prototype.getRangeIdentifier=function(t){var e=this.model.getOptions();return pd.getProperty(e,"axes",this.getRangeAxisPosition({datum:t}),"mapsTo")},e.prototype.extendsDomain=function(t,e){var n=this.model.getOptions(),r=pd.getProperty(n,"axes",t);if(r.scaleType===G.TIME){var i=pd.getProperty(n,"timeScale","addSpaceOnEdges");return xx(e,i)}return Ex(e,ht.paddingRatio,r.scaleType)},e.prototype.findVerticalAxesPositions=function(){var t=this.model.getOptions(),e=pd.getProperty(t,"axes"),n=this.isDualAxes();return null===pd.getProperty(e,j.LEFT)&&null!==pd.getProperty(e,j.RIGHT)||!0===pd.getProperty(e,j.RIGHT,"main")||n&&pd.getProperty(e,j.LEFT,"correspondingDatasets")?{primary:j.RIGHT,secondary:j.LEFT}:{primary:j.LEFT,secondary:j.RIGHT}},e.prototype.findHorizontalAxesPositions=function(){var t=this.model.getOptions(),e=pd.getProperty(t,"axes"),n=this.isDualAxes();return null===pd.getProperty(e,j.BOTTOM)&&null!==pd.getProperty(e,j.TOP)||!0===pd.getProperty(e,j.TOP,"main")||n&&pd.getProperty(e,j.BOTTOM,"correspondingDatasets")?{primary:j.TOP,secondary:j.BOTTOM}:{primary:j.BOTTOM,secondary:j.TOP}},e.prototype.findDomainAndRangeAxesPositions=function(t,e){var n=this.model.getOptions(),r=pd.getProperty(n,"axes",t.primary),i=pd.getProperty(n,"axes",e.primary),o=r.scaleType||G.LINEAR,a=i.scaleType||G.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!==G.LABELS&&a!==G.TIME&&o===G.LABELS||o===G.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=pd.getProperty(e,"axes",t),r=pd.getProperty(e,"bounds"),i=n.includeZero,o=pd.getProperty(n,"scaleType")||G.LINEAR;if(this.model.isDataEmpty())return[];if(n.binned){var a=this.model.getBinConfigurations().bins;return[0,jw(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=ht.ratio,g=v.reference,m=v.compareTo;if(n.domain)return o===G.LABELS?n.domain:(o===G.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===G.LABELS)return pd.removeArrayDuplicates(l.map((function(t){return t[f]})));var y=this.model.getDataGroupNames();if(o===G.LABELS_RATIO)return l.map((function(t){return t[g]+"/"+t[m]}));if(o===G.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=bx(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=Ox(pd.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!==G.TIME&&o!==G.LOG&&i&&c.push(0),d&&d.length>0&&d.forEach((function(t){var e=pd.getProperty(t,"value");null!==e&&c.push(e)})),u=Pv(c),u=this.extendsDomain(t,u),u},e.prototype.createScale=function(t){var e=this.model.getOptions(),n=pd.getProperty(e,"axes",t);if(!n)return null;var r,i=pd.getProperty(n,"scaleType")||G.LINEAR;return this.scaleTypes[t]=i,r=i===G.TIME?$O():i===G.LOG?Cw().base(n.base||10):i===G.LABELS||i===G.LABELS_RATIO?Pw():Nw(),r.domain(this.getScaleDomain(t)),r},e.prototype.getHighestDomainThreshold=function(){var t=pd.getProperty(this.model.getOptions(),"axes"),e=this.getDomainAxisPosition(),n=t[e].thresholds;if(!n)return null;var r=this.getDomainScale(),i=n.sort((function(t,e){return e.value-t.value}))[0],o=this.getScaleTypeByPosition(e);return o!==G.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=pd.getProperty(this.model.getOptions(),"axes"),e=this.getRangeAxisPosition(),n=t[e].thresholds;if(!n)return null;var r=this.getRangeScale(),i=n.sort((function(t,e){return e.value-t.value}))[0];return{threshold:i,scaleValue:r(i.value)}},e}(Fv);function xx(t,e){var n=new Date(t[0]),r=new Date(t[1]);return Gw(r,n)>1?[qw(n,e),Ww(r,e)]:Yw(r,n)>1?[Xw(n,e),Fw(r,e)]:ex(r,n)>1?[rx(n,e),nx(r,e)]:ax(r,n)>1?[lx(n,e),cx(r,e)]:fx(r,n)>30?[vx(n,30*e),dx(r,30*e)]:fx(r,n)>1?[vx(n,e),dx(r,e)]:gx(r,n)>15?[yx(n,15*e),mx(r,15*e)]:gx(r,n)>1?[yx(n,e),mx(r,e)]:[n,r]}function Ex(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===G.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 Tx(t){this._context=t}Tx.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 Sx=function(t){return new Tx(t)},Mx=function(){};function Cx(t){this._context=t}Cx.prototype={areaStart:Mx,areaEnd:Mx,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 Ax=function(t){return new Cx(t)};function Px(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 Lx(t){this._context=t}Lx.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:Px(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:Px(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};var kx=function(t){return new Lx(t)};function Dx(t){this._context=t}Dx.prototype={areaStart:Mx,areaEnd:Mx,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:Px(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};var Rx=function(t){return new Dx(t)};function Ix(t){this._context=t}Ix.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:Px(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};var Nx=function(t){return new Ix(t)};function jx(t,e){this._basis=new Lx(t),this._beta=e}jx.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 Bx=function t(e){function n(t){return 1===e?new Lx(t):new jx(t,e)}return n.beta=function(e){return t(+e)},n}(.85);function Ux(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 Vx(t,e){this._context=t,this._k=(1-e)/6}Vx.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:Ux(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:Ux(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 Gx=function t(e){function n(t){return new Vx(t,e)}return n.tension=function(e){return t(+e)},n}(0);function Hx(t,e){this._context=t,this._k=(1-e)/6}Hx.prototype={areaStart:Mx,areaEnd:Mx,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:Ux(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 zx=function t(e){function n(t){return new Hx(t,e)}return n.tension=function(e){return t(+e)},n}(0);function Fx(t,e){this._context=t,this._k=(1-e)/6}Fx.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:Ux(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 Wx=function t(e){function n(t){return new Fx(t,e)}return n.tension=function(e){return t(+e)},n}(0),qx=Math.abs,Zx=Math.atan2,Yx=Math.cos,Xx=Math.max,Kx=Math.min,$x=Math.sin,Qx=Math.sqrt,Jx=1e-12,tE=Math.PI,eE=tE/2,nE=2*tE;function rE(t){return t>1?0:t<-1?tE:Math.acos(t)}function iE(t){return t>=1?eE:t<=-1?-eE:Math.asin(t)}function oE(t,e,n){var r=t._x1,i=t._y1,o=t._x2,a=t._y2;if(t._l01_a>Jx){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>Jx){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 aE(t,e){this._context=t,this._alpha=e}aE.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:oE(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 sE=function t(e){function n(t){return e?new aE(t,e):new Vx(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function uE(t,e){this._context=t,this._alpha=e}uE.prototype={areaStart:Mx,areaEnd:Mx,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:oE(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 cE=function t(e){function n(t){return e?new uE(t,e):new Hx(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function lE(t,e){this._context=t,this._alpha=e}lE.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:oE(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 hE=function t(e){function n(t){return e?new lE(t,e):new Fx(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function fE(t){return t<0?-1:1}function pE(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(fE(o)+fE(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function dE(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function vE(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 gE(t){this._context=t}function mE(t){this._context=new yE(t)}function yE(t){this._context=t}function _E(t){return new gE(t)}function bE(t){return new mE(t)}function OE(t){this._context=t}function wE(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]}gE.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:vE(this,this._t0,dE(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,vE(this,dE(this,n=pE(this,t,e)),n);break;default:vE(this,this._t0,n=pE(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}},(mE.prototype=Object.create(gE.prototype)).point=function(t,e){gE.prototype.point.call(this,e,t)},yE.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)}},OE.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=wE(t),i=wE(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 xE=function(t){return new OE(t)};function EE(t,e){this._context=t,this._t=e}EE.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 TE=function(t){return new EE(t,.5)};function SE(t){return new EE(t,0)}function ME(t){return new EE(t,1)}var CE=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),AE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.curveTypes={curveLinear:Sx,curveLinearClosed:Ax,curveBasis:kx,curveBasisClosed:Rx,curveBasisOpen:Nx,curveBundle:Bx,curveCardinal:Gx,curveCardinalClosed:zx,curveCardinalOpen:Wx,curveCatmullRom:sE,curveCatmullRomClosed:cE,curveCatmullRomOpen:hE,curveMonotoneX:_E,curveMonotoneY:bE,curveNatural:xE,curveStep:TE,curveStepAfter:ME,curveStepBefore:SE},e}return CE(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}(Fv),PE=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),LE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return PE(e,t),e.prototype.isZoomBarEnabled=function(){if(!this.services.cartesianScales)return!1;if(!pd.getProperty(this.model.getOptions(),"zoomBar","top","enabled"))return!1;this.services.cartesianScales.findDomainAndRangeAxes();var t=this.services.cartesianScales.getMainXAxisPosition(),e=pd.getProperty(this.model.getOptions(),"axes",t,"scaleType");return t===j.BOTTOM&&e===G.TIME},e.prototype.getZoomBarData=function(){var t=this.model.getZoomBarData();return t&&t.length>1?t:this.model.getDisplayData()},e.prototype.getDefaultZoomBarDomain=function(t){var e=t||this.services.zoom.getZoomBarData(),n=this.services.cartesianScales,r=n.getMainXAxisPosition(),i=n.getDomainIdentifier();return n.extendsDomain(r,Pv(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(ut.ZoomDomain.CHANGE,{newDomain:t})},e.prototype.getZoomRatio=function(){return pd.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=pd.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=Mt.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=pd.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 pd.getProperty(this.model.getOptions(),"zoomBar",t,"loading")},e.prototype.isZoomBarLocked=function(t){return pd.getProperty(this.model.getOptions(),"zoomBar",t,"locked")},e}(Fv),kE=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),DE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return kE(e,t),e.prototype.zoomIn=function(t,e,n){var r,i,o,a=n||ft;t&&(r=t.x,i=t.y,o=2);var s=ty.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(ut.CanvasZoom.CANVAS_ZOOM_IN,{element:Wm(t)})},e.prototype.zoomOut=function(t,e){var n=e||ft;t.transition().duration(n.duration).ease(n.ease).attr("transform",""),this.services.events.dispatchEvent(ut.CanvasZoom.CANVAS_ZOOM_OUT)},e}(Fv),RE=function(){function t(t,e,n){if(this.renderType=R.HTML,this.configs={},this.model=t,this.services=e,n&&(this.configs=n,this.configs.id)){var r=pd.getProperty(this.model.getOptions(),"style","prefix");this.id=r+"--"+this.configs.id}this.parent||this.setParent(Wm(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=pd.getProperty(this.model.getOptions(),"style","prefix");this.parent.classed(Ym.prefix+"--"+n+"--"+this.type,!0),e&&e.classed(Ym.prefix+"--"+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=pd.getProperty(this.model.getOptions(),"style","prefix"),n=this.id?"#"+this.id:"",r=ty.appendOrSelect(this.parent,(this.renderType===R.SVG?"svg":"div")+n+"."+Ym.prefix+"--"+e+"--"+this.type);if(t.withinChartClip){var i=this.model.get("chartClipId");if(i){var o=Wm("#"+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=pd.merge({},this.model.getOptions(),this.configs.options);return t}return this.model.getOptions()},t}(),IE=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),NE=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="legend",e.renderType=R.HTML,e}return IE(e,t),e.prototype.render=function(){var t=this,e=this.getOptions(),n=pd.getProperty(e,"legend"),r=pd.getProperty(n,"alignment"),i=pd.getProperty(e,"legend","orientation"),o=this.model.getDataGroups(),s=mt.items.status.DISABLED,u=o.some((function(t){return t.status===s})),c=pd.getProperty(n,"order"),l=this.getComponentContainer().classed("center-aligned",r===z.CENTER).classed("right-aligned",r===z.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===mt.items.status.ACTIVE}));var p=pd.getProperty(this.getOptions(),"legend","clickable");l.classed("clickable",p&&o.length>1);var d=mt.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===mt.items.status.ACTIVE})).attr("width",2*d).attr("height",2*d).attr("class",(function(e,n){return t.model.getColorClassName({classNameTypes:[N.BACKGROUND],dataGroupName:e.name,originalClassName:"checkbox"})})).style("background",(function(e){return e.status===mt.items.status.ACTIVE?t.model.getFillColor(e.name)||t.model.getStrokeColor(e.name):null})).classed("active",(function(t,e){return t.status===mt.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")),pd.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=Wm(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=mt.area,i=r.width,s=r.height;if(e.type===at.RADIUS?t.style("width",s+"px").style("height",s+"px"):t.style("width",i+"px").style("height",s+"px"),e.type===at.RADIUS){var u=mt.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===at.LINE){var p=mt.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===at.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?mt.area.fill:e.fill).style("stroke",e.stroke);else if(e.type===at.SIZE){var d=mt.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===at.QUARTILE){c=mt.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===at.ZOOM){var m=pd.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=pd.getProperty(this.getOptions(),"legend","truncation"),n=pd.getProperty(e,"type"),r=pd.getProperty(e,"threshold"),i=pd.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!==U.NONE?o.html((function(t){return t.name.length>r?pd.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=pd.getProperty(n,"legend"),i=pd.getProperty(r,"truncation","threshold");e.selectAll("div.legend-item").on("mouseover",(function(e){t.services.events.dispatchEvent(ut.Legend.ITEM_HOVER,{hoveredElement:Wm(this)});var n=Wm(this);n.select("div.checkbox").classed("hovered",!0);var r=n.datum();r.name.length>i&&t.services.events.dispatchEvent(ut.Tooltip.SHOW,{event:e,hoveredElement:n,content:r.name})})).on("mousemove",(function(e){t.services.events.dispatchEvent(ut.Tooltip.MOVE,{event:e})})).on("click",(function(){t.services.events.dispatchEvent(ut.Legend.ITEM_CLICK,{clickedElement:Wm(this)});var e=Wm(this),n=e.datum();t.model.toggleDataLabel(n.name)})).on("mouseout",(function(){var e=Wm(this);e.select("div.checkbox").classed("hovered",!1),t.services.events.dispatchEvent(ut.Tooltip.HIDE),t.services.events.dispatchEvent(ut.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(ut.Legend.ITEM_HOVER,{hoveredElement:Wm(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(ut.Legend.ITEM_MOUSEOUT,{hoveredElement:Wm(this)})})),e.selectAll("g.additional-item").on("mouseover",(function(e){var n=Wm(this),r=n.datum();r.name.length>i&&t.services.events.dispatchEvent(ut.Tooltip.SHOW,{event:e,hoveredElement:n,content:r.name})}))},e}(RE);n("9b04");function jE(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function BE(t){return HE(t)||GE(t)||VE(t)||UE()}function UE(){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 VE(t,e){if(t){if("string"===typeof t)return zE(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)?zE(t,e):void 0}}function GE(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function HE(t){if(Array.isArray(t))return zE(t)}function zE(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 FE(t){return t.reduce((function(t,e){return Array.isArray(e)?t.push.apply(t,BE(FE(e))):t.push(e),t}),[])}function WE(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return FE(e).reduce((function(t,e){return e(t)}),function(){function t(){jE(this,t)}return t}())}function qE(t){return qE="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},qE(t)}function ZE(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function YE(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 XE(t,e,n){return e&&YE(t.prototype,e),n&&YE(t,n),t}function KE(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}}),e&&$E(t,e)}function $E(t,e){return $E=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},$E(t,e)}function QE(t){var e=eT();return function(){var n,r=nT(t);if(e){var i=nT(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return JE(this,n)}}function JE(t,e){return!e||"object"!==qE(e)&&"function"!==typeof e?tT(t):e}function tT(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function eT(){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 nT(t){return nT=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},nT(t)}var rT=function(t){var e=function(t){KE(n,t);var e=QE(n);function n(t){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(ZE(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,tT(r)),r}return XE(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 iT(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 oT(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 aT(t){return aT="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},aT(t)}function sT(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function uT(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 cT(t,e,n){return e&&uT(t.prototype,e),n&&uT(t,n),t}function lT(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}}),e&&hT(t,e)}function hT(t,e){return hT=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},hT(t,e)}function fT(t){var e=vT();return function(){var n,r=gT(t);if(e){var i=gT(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return pT(this,n)}}function pT(t,e){return!e||"object"!==aT(e)&&"function"!==typeof e?dT(t):e}function dT(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function vT(){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 gT(t){return gT=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},gT(t)}var mT=function(t){var e=function(t){lT(n,t);var e=fT(n);function n(){return sT(this,n),e.apply(this,arguments)}return cT(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 oT(e,i,(function(e){var i=iT(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 yT(t){return yT="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},yT(t)}function _T(t){return xT(t)||wT(t)||OT(t)||bT()}function bT(){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 OT(t,e){if(t){if("string"===typeof t)return ET(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)?ET(t,e):void 0}}function wT(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function xT(t){if(Array.isArray(t))return ET(t)}function ET(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 TT(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ST(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 MT(t,e,n){return e&&ST(t.prototype,e),n&&ST(t,n),t}function CT(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}}),e&&AT(t,e)}function AT(t,e){return AT=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},AT(t,e)}function PT(t){var e=DT();return function(){var n,r=RT(t);if(e){var i=RT(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return LT(this,n)}}function LT(t,e){return!e||"object"!==yT(e)&&"function"!==typeof e?kT(t):e}function kT(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function DT(){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 RT(t){return RT=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},RT(t)}var IT=function(t){var e=function(t){CT(n,t);var e=PT(n);function n(){return TT(this,n),e.apply(this,arguments)}return MT(n,[{key:"_changeState",value:function(){throw new Error("_changeState() should be overriden 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,_T(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 NT(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 jT(t){return jT="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},jT(t)}function BT(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function UT(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 VT(t,e,n){return e&&UT(t.prototype,e),n&&UT(t,n),t}function GT(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}}),e&&HT(t,e)}function HT(t,e){return HT=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},HT(t,e)}function zT(t){var e=qT();return function(){var n,r=ZT(t);if(e){var i=ZT(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return FT(this,n)}}function FT(t,e){return!e||"object"!==jT(e)&&"function"!==typeof e?WT(t):e}function WT(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function qT(){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 ZT(t){return ZT=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},ZT(t)}function YT(t){var e=function(t){GT(n,t);var e=zT(n);function n(){return BT(this,n),e.apply(this,arguments)}return VT(n,[{key:"show",value:function(t,e){t&&"function"!==typeof t||(e=t),this.changeState("shown",NT(t),e)}},{key:"hide",value:function(t,e){t&&"function"!==typeof t||(e=t),this.changeState("hidden",NT(t),e)}}]),n}(t);return e}var XT=[IT,YT],KT=XT;function $T(t){return $T="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},$T(t)}function QT(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function JT(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 tS(t,e,n){return e&&JT(t.prototype,e),n&&JT(t,n),t}function eS(t,e,n){return eS="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=nS(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(n):i.value}},eS(t,e,n||t)}function nS(t,e){while(!Object.prototype.hasOwnProperty.call(t,e))if(t=cS(t),null===t)break;return t}function rS(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}}),e&&iS(t,e)}function iS(t,e){return iS=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},iS(t,e)}function oS(t){var e=uS();return function(){var n,r=cS(t);if(e){var i=cS(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return aS(this,n)}}function aS(t,e){return!e||"object"!==$T(e)&&"function"!==typeof e?sS(t):e}function sS(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function uS(){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 cS(t){return cS=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},cS(t)}var lS=function(t){var e=function(t){rS(n,t);var e=oS(n);function n(){var t;QT(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 tS(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)})),eS(cS(n.prototype),"release",this).call(this)}}]),n}(t);return e};function hS(t){return hS="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},hS(t)}function fS(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function pS(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 dS(t,e,n){return e&&pS(t.prototype,e),n&&pS(t,n),t}function vS(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}}),e&&gS(t,e)}function gS(t,e){return gS=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},gS(t,e)}function mS(t){var e=bS();return function(){var n,r=OS(t);if(e){var i=OS(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return yS(this,n)}}function yS(t,e){return!e||"object"!==hS(e)&&"function"!==typeof e?_S(t):e}function _S(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function bS(){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 OS(t){return OS=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},OS(t)}var wS,xS,ES=function(t){vS(n,t);var e=mS(n);function n(t,r){var i;return fS(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!iT(t,e)}))&&i.element.querySelector(Ym.selectorTabbable).focus()},i._hookCloseActions(),i}return dS(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(Ym.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(oT(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(oT(this.element,"transitionend",o))}},{key:"_hookCloseActions",value:function(){var t=this;this.manage(oT(this.element,"click",(function(e){var n=iT(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(oT(this.element.ownerDocument.body,"keydown",(function(e){27===e.which&&t.shouldStateBeChanged("hidden")&&(e.stopPropagation(),t.hide(e))})))}}],[{key:"options",get:function(){var t=Ym.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}(WE(rT,mT,KT,lS)),TS=ES,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)}}(),MS=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.bx--modal-footer button.bx--btn").on("click",(function(){return i.model.exportToCSV()}));var t=TS.create(i.modal.node());t.show()},i.init(),i}return SS(e,t),e.prototype.addEventListeners=function(){this.services.events.addEventListener(ut.Modal.SHOW,this.handleShowModal)},e.prototype.removeEventListeners=function(){this.services.events.removeEventListener(ut.Modal.SHOW,this.handleShowModal)},e.prototype.getModalHTML=function(){var t=this.model.getOptions(),e=pd.getProperty(t,"style","prefix"),n=this.model.getTabularDataArray();return'\n\t\t<div class="bx--modal-container">\n\t\t\t<div class="bx--modal-header">\n\t\t\t\t<p class="bx--modal-header__label bx--type-delta" id="modal-title">Tabular representation</p>\n\t\t\t\t<p class="bx--modal-header__heading bx--type-beta" id="modal-description">'+t.title+'</p>\n\t\t\t\t<button class="bx--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="bx--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\t\t\t<div class="bx--modal-content"><table class="bx--data-table bx--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'+Ol(n,0).map((function(t){return'<th scope="col">\n\t\t\t\t\t\t\t\t<div class="bx--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\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\t\t\t<div class="bx--modal-footer">\n\t\t\t <div class="'+Ym.prefix+"--"+e+'-modal-footer-spacer"></div>\n\t\t\t <button class="bx--btn bx--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=Wm(this.services.domUtils.getHolder()),n=pd.getProperty(t,"style","prefix");this.modal=ty.appendOrSelect(e,"div."+Ym.prefix+"--"+n+"--modal"),this.addEventListeners(),this.isEventListenerAdded=!0,this.modal.attr("data-modal",!0).attr("class","bx--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}(RE);(function(t){t["LEFT"]="left",t["RIGHT"]="right",t["TOP"]="top",t["BOTTOM"]="bottom"})(xS||(xS={}));var CS=(wS={},wS[xS.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)}},wS[xS.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)}},wS[xS.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)}},wS[xS.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)}},wS),AS="undefined"!==typeof window?window:{innerHeight:0,scrollY:0,innerWidth:0,scrollX:0},PS=function(){function t(t){void 0===t&&(t={}),this.positions=CS,this.positions=Object.assign({},CS,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:AS.innerHeight-AS.scrollY,height:AS.innerWidth-AS.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}(),LS=(new PS,PS);function kS(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=Bw(t);return!isNaN(e)}var DS={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 RS(t,e,n){var r;return n=n||{},r="string"===typeof DS[t]?DS[t]:1===e?DS[t].one:DS[t].other.replace("{{count}}",e),n.addSuffix?n.comparison>0?"in "+r:r+" ago":r}function IS(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 NS={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},jS={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},BS={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},US={date:IS({formats:NS,defaultWidth:"full"}),time:IS({formats:jS,defaultWidth:"full"}),dateTime:IS({formats:BS,defaultWidth:"full"})},VS=US,GS={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function HS(t,e,n,r){return GS[t]}function zS(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 FS={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},WS={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},qS={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"]},ZS={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"]},YS={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"}},XS={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 KS(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 $S={ordinalNumber:KS,era:zS({values:FS,defaultWidth:"wide"}),quarter:zS({values:WS,defaultWidth:"wide",argumentCallback:function(t){return Number(t)-1}}),month:zS({values:qS,defaultWidth:"wide"}),day:zS({values:ZS,defaultWidth:"wide"}),dayPeriod:zS({values:YS,defaultWidth:"wide",formattingValues:XS,defaultFormattingWidth:"wide"})},QS=$S;function JS(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 tM(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)?nM(l,(function(t){return t.test(r)})):eM(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 eM(t,e){for(var n in t)if(t.hasOwnProperty(n)&&e(t[n]))return n}function nM(t,e){for(var n=0;n<t.length;n++)if(e(t[n]))return n}var rM=/^(\d+)(th|st|nd|rd)?/i,iM=/\d+/i,oM={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},aM={any:[/^b/i,/^(a|c)/i]},sM={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},uM={any:[/1/i,/2/i,/3/i,/4/i]},cM={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},lM={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]},hM={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},fM={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]},pM={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},dM={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}},vM={ordinalNumber:JS({matchPattern:rM,parsePattern:iM,valueCallback:function(t){return parseInt(t,10)}}),era:tM({matchPatterns:oM,defaultMatchWidth:"wide",parsePatterns:aM,defaultParseWidth:"any"}),quarter:tM({matchPatterns:sM,defaultMatchWidth:"wide",parsePatterns:uM,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:tM({matchPatterns:cM,defaultMatchWidth:"wide",parsePatterns:lM,defaultParseWidth:"any"}),day:tM({matchPatterns:hM,defaultMatchWidth:"wide",parsePatterns:fM,defaultParseWidth:"any"}),dayPeriod:tM({matchPatterns:pM,defaultMatchWidth:"any",parsePatterns:dM,defaultParseWidth:"any"})},gM=vM,mM={code:"en-US",formatDistance:RS,formatLong:VS,formatRelative:HS,localize:QS,match:gM,options:{weekStartsOn:0,firstWeekContainsDate:1}},yM=mM;function _M(t,e){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Hw(e);return sx(t,-n)}function bM(t,e){var n=t<0?"-":"",r=Math.abs(t).toString();while(r.length<e)r="0"+r;return n+r}var OM={y:function(t,e){var n=t.getUTCFullYear(),r=n>0?n:1-n;return bM("yy"===e?r%100:r,e.length)},M:function(t,e){var n=t.getUTCMonth();return"M"===e?String(n+1):bM(n+1,2)},d:function(t,e){return bM(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 bM(t.getUTCHours()%12||12,e.length)},H:function(t,e){return bM(t.getUTCHours(),e.length)},m:function(t,e){return bM(t.getUTCMinutes(),e.length)},s:function(t,e){return bM(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 bM(i,e.length)}},wM=OM,xM=864e5;function EM(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=Bw(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/xM)+1}function TM(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=1,n=Bw(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 SM(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=Bw(t),n=e.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var i=TM(r),o=new Date(0);o.setUTCFullYear(n,0,4),o.setUTCHours(0,0,0,0);var a=TM(o);return e.getTime()>=i.getTime()?n+1:e.getTime()>=a.getTime()?n:n-1}function MM(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=SM(t),n=new Date(0);n.setUTCFullYear(e,0,4),n.setUTCHours(0,0,0,0);var r=TM(n);return r}var CM=6048e5;function AM(t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var e=Bw(t),n=TM(e).getTime()-MM(e).getTime();return Math.round(n/CM)+1}function PM(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:Hw(i),a=null==n.weekStartsOn?o:Hw(n.weekStartsOn);if(!(a>=0&&a<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var s=Bw(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 LM(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=Bw(t,e),r=n.getUTCFullYear(),i=e||{},o=i.locale,a=o&&o.options&&o.options.firstWeekContainsDate,s=null==a?1:Hw(a),u=null==i.firstWeekContainsDate?s:Hw(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=PM(c,e),h=new Date(0);h.setUTCFullYear(r,0,u),h.setUTCHours(0,0,0,0);var f=PM(h,e);return n.getTime()>=l.getTime()?r+1:n.getTime()>=f.getTime()?r:r-1}function kM(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:Hw(i),a=null==n.firstWeekContainsDate?o:Hw(n.firstWeekContainsDate),s=LM(t,e),u=new Date(0);u.setUTCFullYear(s,0,a),u.setUTCHours(0,0,0,0);var c=PM(u,e);return c}var DM=6048e5;function RM(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=Bw(t),r=PM(n,e).getTime()-kM(n,e).getTime();return Math.round(r/DM)+1}var IM={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 wM.y(t,e)},Y:function(t,e,n,r){var i=LM(t,r),o=i>0?i:1-i;if("YY"===e){var a=o%100;return bM(a,2)}return"Yo"===e?n.ordinalNumber(o,{unit:"year"}):bM(o,e.length)},R:function(t,e){var n=SM(t);return bM(n,e.length)},u:function(t,e){var n=t.getUTCFullYear();return bM(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 bM(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 bM(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 wM.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 bM(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=RM(t,r);return"wo"===e?n.ordinalNumber(i,{unit:"week"}):bM(i,e.length)},I:function(t,e,n){var r=AM(t);return"Io"===e?n.ordinalNumber(r,{unit:"week"}):bM(r,e.length)},d:function(t,e,n){return"do"===e?n.ordinalNumber(t.getUTCDate(),{unit:"date"}):wM.d(t,e)},D:function(t,e,n){var r=EM(t);return"Do"===e?n.ordinalNumber(r,{unit:"dayOfYear"}):bM(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 bM(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 bM(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 bM(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?IM.noon:0===i?IM.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?IM.evening:i>=12?IM.afternoon:i>=4?IM.morning:IM.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 wM.h(t,e)},H:function(t,e,n){return"Ho"===e?n.ordinalNumber(t.getUTCHours(),{unit:"hour"}):wM.H(t,e)},K:function(t,e,n){var r=t.getUTCHours()%12;return"Ko"===e?n.ordinalNumber(r,{unit:"hour"}):bM(r,e.length)},k:function(t,e,n){var r=t.getUTCHours();return 0===r&&(r=24),"ko"===e?n.ordinalNumber(r,{unit:"hour"}):bM(r,e.length)},m:function(t,e,n){return"mo"===e?n.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):wM.m(t,e)},s:function(t,e,n){return"so"===e?n.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):wM.s(t,e)},S:function(t,e){return wM.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 BM(o);case"XXXX":case"XX":return UM(o);case"XXXXX":case"XXX":default:return UM(o,":")}},x:function(t,e,n,r){var i=r._originalDate||t,o=i.getTimezoneOffset();switch(e){case"x":return BM(o);case"xxxx":case"xx":return UM(o);case"xxxxx":case"xxx":default:return UM(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"+jM(o,":");case"OOOO":default:return"GMT"+UM(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"+jM(o,":");case"zzzz":default:return"GMT"+UM(o,":")}},t:function(t,e,n,r){var i=r._originalDate||t,o=Math.floor(i.getTime()/1e3);return bM(o,e.length)},T:function(t,e,n,r){var i=r._originalDate||t,o=i.getTime();return bM(o,e.length)}};function jM(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+bM(o,2)}function BM(t,e){if(t%60===0){var n=t>0?"-":"+";return n+bM(Math.abs(t)/60,2)}return UM(t,e)}function UM(t,e){var n=e||"",r=t>0?"-":"+",i=Math.abs(t),o=bM(Math.floor(i/60),2),a=bM(i%60,2);return r+o+n+a}var VM=NM;function GM(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 HM(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 zM(t,e){var n,r=t.match(/(P+)(p+)?/),i=r[1],o=r[2];if(!o)return GM(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}}",GM(i,e)).replace("{{time}}",HM(o,e))}var FM={p:HM,P:zM},WM=FM,qM=["D","DD"],ZM=["YY","YYYY"];function YM(t){return-1!==qM.indexOf(t)}function XM(t){return-1!==ZM.indexOf(t)}function KM(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,QM=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,JM=/^'([^]*?)'?$/,tC=/''/g,eC=/[a-zA-Z]/;function nC(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||yM,a=o.options&&o.options.firstWeekContainsDate,s=null==a?1:Hw(a),u=null==i.firstWeekContainsDate?s:Hw(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:Hw(c),h=null==i.weekStartsOn?l:Hw(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=Bw(t);if(!kS(f))throw new RangeError("Invalid time value");var p=$w(f),d=_M(f,p),v={firstWeekContainsDate:u,weekStartsOn:h,locale:o,_originalDate:f},g=r.match(QM).map((function(t){var e=t[0];if("p"===e||"P"===e){var n=WM[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 rC(t);var n=VM[e];if(n)return!i.useAdditionalWeekYearTokens&&XM(t)&&KM(t),!i.useAdditionalDayOfYearTokens&&YM(t)&&KM(t),n(d,t,o.localize,v);if(e.match(eC))throw new RangeError("Format string contains an unescaped latin alphabet character `"+e+"`");return t})).join("");return g}function rC(t){return t.match(JM)[1].replace(tC,"'")}function iC(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 oC=[["15seconds",15e3],["minute",6e4],["30minutes",18e5],["hourly",36e5],["daily",864e5],["monthly",2592e6],["quarterly",7776e6],["yearly",31104e6]];function aC(t,e,n,r,i){var o=0===e,a=2===Number(nC(new Date(t),"c")),s=1===Number(nC(new Date(t),"q")),u=0!==e?n[e-1]:null;switch(r){case"15seconds":return o||fC(t)||pC(t,u)||dC(t);case"minute":return o||fC(t)||pC(t,u)||dC(t);case"30minutes":return o||fC(t)||pC(t,u)||dC(t);case"hourly":return o||fC(t)||pC(t,u)||dC(t);case"daily":return i?o||a||dC(t):o||pC(t,u)||dC(t);case"monthly":return o||dC(t);case"quarterly":return o||s;case"yearly":return!1;default:throw new Error(r+" is not a valid time interval.")}}function sC(t,e,n,r,i){var o=i.showDayName,a="daily"===r&&o?"weekly":r,s=new Date(t),u=pd.getProperty(i,"timeIntervalFormats")[a],c=pd.getProperty(u,"primary"),l=pd.getProperty(u,"secondary"),h=aC(t,e,n,r,o)?c:l,f=i.localeObject;return nC(s,h,{locale:f})}function uC(t){var e=new Date(t);return{M:e.getMonth()+1,d:e.getDate(),H:e.getHours(),m:e.getMinutes(),s:e.getSeconds()}}function cC(t){if(t)return t.slice(1).map((function(e,n){return e-t[n]}))}function lC(t){var e=oC.reduce((function(e,n,r){n[0];var i=n[1],o=oC[e][1],a=Math.abs(o-t),s=Math.abs(i-t);return a<s?e:r}),0);return oC[e][0]}function hC(t){if(1===t.length)return"15seconds";var e=cC(t),n=iC(e);return lC(n)}function fC(t){var e=uC(t),n=e.s,r=e.m,i=e.H;return 0===i&&0===r&&0===n}function pC(t,e){var n=uC(t).M,r=uC(e).M;return n!==r}function dC(t){var e=uC(t),n=e.M,r=e.d,i=e.s,o=e.m,a=e.H;return 1===n&&1===r&&0===a&&0===o&&0===i}var vC=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),gC=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.type="threshold",r.renderType=R.SVG,r.positionService=new LS,r}return vC(e,t),e.prototype.render=function(t){var e=this;void 0===t&&(t=!1);var n=pd.getProperty(this.getOptions(),"axes"),r=[];Object.keys(n).forEach((function(t){var e,i;if(Object.values(j).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===j.LEFT||n===j.RIGHT?(a=r,o=h.services.cartesianScales.getMainXScale()):(o=r,a=h.services.cartesianScales.getMainYScale());var s=i===G.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)},_=pd.flipDomainAndRangeBasedOnOrientation(m,y,g),b=_[0],O=_[1],w=Wm(this);n===j.TOP||n===j.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(ut.Threshold.SHOW,(function(t){e.setThresholdLabelPosition(t.detail),e.label.classed("hidden",!1)})),this.services.events.addEventListener(ut.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===G.TIME){var o=[j.LEFT,j.RIGHT].includes(n),a=this.services.cartesianScales.getMainXScale(),s=this.services.cartesianScales.getMainYScale(),u=o?s:a,c=pd.getProperty(r,"timeScale"),l=hC(u.ticks());return sC(e,0,u.ticks(),l,c)}return e.toLocaleString("en")},e.prototype.appendThresholdLabel=function(){var t=Wm(this.services.domUtils.getHolder()),e=pd.getProperty(this.getOptions(),"style","prefix");this.label=ty.appendOrSelect(t,"div."+Ym.prefix+"--"+e+"--threshold--label").classed("hidden",!0)},e.prototype.setThresholdLabelPosition=function(t){var e=t.event,n=t.datum,r=this.services.domUtils.getHolder(),i=gd(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,[xS.RIGHT,xS.LEFT,xS.TOP,xS.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"]=pd.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){Wm(this.parentNode).select("line.threshold-line").classed("active",!0),t.services.events.dispatchEvent(ut.Threshold.SHOW,{event:e,hoveredElement:Wm(this),datum:Wm(this).datum()})})).on("mouseout",(function(e){Wm(this.parentNode).select("line.threshold-line").classed("active",!1),t.services.events.dispatchEvent(ut.Threshold.HIDE,{event:e,hoveredElement:Wm(this),datum:Wm(this).datum()})}))},e}(RE),mC=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),yC=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="title",e.renderType=R.HTML,e}return mC(e,t),e.prototype.render=function(){var t=this.getComponentContainer(),e=pd.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(ut.Tooltip.SHOW,{event:t,hoveredElement:n,content:n.text()})})).on("mousemove",(function(t){r.services.events.dispatchEvent(ut.Tooltip.MOVE,{event:t})})).on("mouseout",(function(){r.services.events.dispatchEvent(ut.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=ty.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(ut.Tooltip.SHOW,{event:e,hoveredElement:t,content:n})})).on("mousemove",(function(t){a.services.events.dispatchEvent(ut.Tooltip.MOVE,{event:t})})).on("mouseout",(function(){a.services.events.dispatchEvent(ut.Tooltip.HIDE)}))}}},e.prototype.getMaxTitleWidth=function(){return ty.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}(RE),_C=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),bC=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="meter-title",e.renderType=R.SVG,e}return _C(e,t),e.prototype.render=function(){var t=pd.getProperty(this.model.getDisplayData(),0),e=this.getOptions(),n=this.getComponentContainer(),r=e.data.groupMapsTo,i=pd.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=ty.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=pd.getProperty(n,"meter","proportional","total"),o=pd.getProperty(n,"meter","proportional","unit")?pd.getProperty(n,"meter","proportional","unit"):"";if(r===i)t=null;else{var a=null!==i?i-r:r,s=pd.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=ty.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=pd.getProperty(e,"meter","proportional","total"),r=n?pd.getProperty(e,"meter","proportional","total"):this.model.getMaximumDomain(this.model.getDisplayData()),i=pd.getProperty(e,"meter","proportional","unit")?pd.getProperty(e,"meter","proportional","unit"):"",o=pd.getProperty(e,"meter","proportional","totalFormatter"),a=null!==o?o(r):n+" "+i+" total",s=ty.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-_t.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=ty.getHTMLElementSize(this.services.domUtils.getMainContainer()),r=n.width?n.width:0,i=this.model.getStatus(),o=_t.status.indicatorSize/2,a=ty.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=pd.getProperty(this.model.getDisplayData(),0,"value"),e=this.getComponentContainer(),n=ty.appendOrSelect(e,"text.meter-title"),r=!0===pd.getProperty(this.getOptions(),"meter","statusBar","percentageIndicator","enabled")?[t]:[],i=e.selectAll("text.percent-value").data(r),o=_t.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=ty.appendOrSelect(this.parent,"tspan"),i=_t.statusBar.paddingRight,o=Math.ceil(r.node().getComputedTextLength()),a=ty.appendOrSelect(this.parent,"text.percent-value");a.attr("x",+e.attr("x")+e.node().getComputedTextLength()+o+i)},e.prototype.getMaxTitleWidth=function(){var t=ty.getHTMLElementSize(this.services.domUtils.getMainContainer()),e=pd.getProperty(this.getOptions(),"meter","proportional"),n=t.width?t.width:this.parent.node().getAttribute("width");if(null!==e){var r=ty.appendOrSelect(this.parent,"text.proportional-meter-total").node(),i=ty.getSVGElementSize(r,{useBBox:!0}).width;return n-i-_t.total.paddingLeft}var o=ty.appendOrSelect(this.parent,"text.percent-value"),a=_t.statusBar.paddingRight,s=o.node().getComputedTextLength(),u=ty.appendOrSelect(this.parent,"g.status-indicator").node(),c=ty.getSVGElementSize(u,{useBBox:!0}).width+_t.status.paddingLeft;return n-s-a-c},e.prototype.getStatusIconPathString=function(t){switch(t){case et.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 et.DANGER:return"M10.7 11.5 4.5 5.3 5.3 4.5 11.5 10.7 Z";case et.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}(yC),OC=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),wC=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.type="tooltip",i.renderType=R.HTML,i.isEventListenerAdded=!1,i.positionService=new LS,i.handleShowTooltip=function(t){var e=t.detail.data||t.detail.items,n=i.getTooltipHTML(t),r=ty.appendOrSelect(i.tooltip,"div.content-box");if(pd.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 OC(e,t),e.prototype.addTooltipEventListener=function(){var t=this;this.services.events.addEventListener(ut.Tooltip.MOVE,(function(e){!1===t.tooltip.classed("hidden")&&t.positionTooltip(e)})),this.services.events.addEventListener(ut.Tooltip.SHOW,this.handleShowTooltip),this.services.events.addEventListener(ut.Tooltip.HIDE,this.handleHideTooltip),this.services.events.addEventListener(ut.Chart.MOUSEOUT,this.handleHideTooltip)},e.prototype.removeTooltipEventListener=function(){this.services.events.removeEventListener(ut.Tooltip.MOVE,null),this.services.events.removeEventListener(ut.Tooltip.SHOW,this.handleShowTooltip),this.services.events.removeEventListener(ut.Tooltip.HIDE,this.handleHideTooltip),this.services.events.removeEventListener(ut.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=pd.getProperty(n,"tooltip","truncation","type"),i=pd.getProperty(n,"tooltip","truncation","threshold"),o=pd.getProperty(n,"tooltip","truncation","numCharacter");return r!==U.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=pd.truncateLabel(t.label,r,o)),t.value&&t.value.length>i&&(t.value=pd.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=pd.getProperty(n,"tooltip","valueFormatter");return r?r(t,e):"function"===typeof t.getTime?nC(t,"MMM d, yyyy"):t.toLocaleString()},e.prototype.render=function(){var t=this.getOptions(),e=pd.getProperty(t,"tooltip","enabled");if(e){var n=Wm(this.services.domUtils.getHolder()),r=pd.getProperty(t,"style","prefix");this.tooltip=ty.appendOrSelect(n,"div."+Ym.prefix+"--"+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=pd.getProperty(i,"zoomBar","top","enabled"),a=pd.getProperty(t,"detail","mousePosition");if(a){var s=pd.getProperty(i,"zoomBar","top","type"),u=Mt.height[s];o&&(a[1]+=u+Mt.spacerHeight)}else a=gd(pd.getProperty(t,"detail","event"),n);var c,l=n.offsetWidth,h=n.offsetHeight;c=a[0]/l>.9?xS.LEFT:a[0]/l<.1?xS.RIGHT:this.positionService.findBestPlacementAt({left:a[0],top:a[1]},r,[xS.RIGHT,xS.LEFT,xS.TOP,xS.BOTTOM],(function(){return{width:l,height:h}}));var f=Et.horizontalOffset;c===xS.LEFT&&(f*=-1),e=this.positionService.findPositionAt({left:a[0]+f,top:a[1]},r,c),this.positionService.setElement(r,e)},e}(RE),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)}}(),EC=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},TC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return xC(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=i.data.groupMapsTo,u=o.getDomainLabel(),c=o.getRangeLabel(),l=n[0][a];if(1===n.length){var h=n[0],f=o.getRangeIdentifier(h),p=h[f];r=EC([{label:u,value:l}],Array.isArray(p)&&2===p.length?[{label:"Start",value:p[0]},{label:"End",value:p[1]}]:[{label:c,value:h[f]}]),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:h[s],color:this.model.getFillColor(h[s]),class:this.model.getColorClassName({classNameTypes:[N.TOOLTIP],dataGroupName:h[s]})})}else if(n.length>1){r=[{label:u,value:l}],r=r.concat(n.map((function(t){return{label:t[s],value:t[o.getRangeIdentifier(t)],color:e.model.getFillColor(t[s]),class:e.model.getColorClassName({classNameTypes:[N.TOOLTIP],dataGroupName:t[s]})}})).sort((function(t,e){return e.value-t.value})));var d=o.isDualAxes();if(!d&&!0===pd.getProperty(i,"tooltip","showTotal")){var v=o.getRangeIdentifier();r.push({label:Ol(i,"tooltip.totalLabel")||"Total",value:n.reduce((function(t,e){return t+e[v]}),0),bold:!0})}}return r},e}(wC),SC=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),MC=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.type="chart-clip",i.renderType=R.SVG,i.chartClipId="chart-clip-id-"+Math.floor(99999999999*Math.random()),i.init(),i}return SC(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=ty.appendOrSelect(t,"clipPath."+this.type).attr("id",this.chartClipId);var l=ty.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}(RE),CC=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),AC=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 CC(e,t),e.prototype.createClipPath=function(){var t=this.parent,e=ty.getSVGElementSize(this.parent,{useAttrs:!0}),n=e.width,r=e.height;this.chartClipPath=ty.appendOrSelect(t,"clipPath."+this.type).attr("id",this.chartClipId);var i=ty.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}(MC),PC=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),LC=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},kC=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.type="highlight",r.renderType=R.SVG,r.positionService=new LS,r.highlightStrokeWidth=1,r}return PC(e,t),e.prototype.render=function(t){void 0===t&&(t=!1);var e=pd.getProperty(this.getOptions(),"axes"),n=[];Object.keys(e).forEach((function(t){if(Object.values(j).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=pd.flipDomainAndRangeBasedOnOrientation(d,v,p),m=g[0],y=g[1],_=Wm(this);n===j.TOP||n===j.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=LC(t,["highlightStartMapsTo"]);return m(n[e])})).attr("width",(function(t){var e=t.highlightStartMapsTo,n=t.highlightEndMapsTo,r=LC(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=LC(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=LC(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=LC(t,["highlightEndMapsTo"]);return y(n[e])})).attr("height",(function(t){var e=t.highlightStartMapsTo,n=t.highlightEndMapsTo,r=LC(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=LC(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=LC(t,["color","labelMapsTo"]);return e&&e.scale[r[n]]?e.scale[r[n]]:null}))}))},e}(RE);const DC=Math.PI,RC=2*DC,IC=1e-6,NC=RC-IC;function jC(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function BC(){return new jC}jC.prototype=BC.prototype={constructor:jC,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>IC)if(Math.abs(l*s-u*c)>IC&&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((DC-Math.acos((d+h-v)/(2*g*m)))/2),_=y/m,b=y/g;Math.abs(_-1)>IC&&(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)>IC||Math.abs(this._y1-c)>IC)&&(this._+="L"+u+","+c),n&&(h<0&&(h=h%RC+RC),h>NC?this._+="A"+n+","+n+",0,1,"+l+","+(t-a)+","+(e-s)+"A"+n+","+n+",0,1,"+l+","+(this._x1=u)+","+(this._y1=c):h>IC&&(this._+="A"+n+","+n+",0,"+ +(h>=DC)+","+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 UC=BC;function VC(t){return t[0]}function GC(t){return t[1]}var HC=function(t,e){var n=fv(!0),r=null,i=Sx,o=null;function a(a){var s,u,c,l=(a=hv(a)).length,h=!1;for(null==r&&(o=i(c=UC())),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?VC:fv(t),e="function"===typeof e?e:void 0===e?GC:fv(e),a.x=function(e){return arguments.length?(t="function"===typeof e?e:fv(+e),a):t},a.y=function(t){return arguments.length?(e="function"===typeof t?t:fv(+t),a):e},a.defined=function(t){return arguments.length?(n="function"===typeof t?t:fv(!!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},zC=function(t,e,n){var r=null,i=fv(!0),o=null,a=Sx,s=null;function u(u){var c,l,h,f,p,d=(u=hv(u)).length,v=!1,g=new Array(d),m=new Array(d);for(null==o&&(s=a(p=UC())),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 HC().defined(i).curve(a).context(o)}return t="function"===typeof t?t:void 0===t?VC:fv(+t),e="function"===typeof e?e:fv(void 0===e?0:+e),n="function"===typeof n?n:void 0===n?GC:fv(+n),u.x=function(e){return arguments.length?(t="function"===typeof e?e:fv(+e),r=null,u):t},u.x0=function(e){return arguments.length?(t="function"===typeof e?e:fv(+e),u):t},u.x1=function(t){return arguments.length?(r=null==t?null:"function"===typeof t?t:fv(+t),u):r},u.y=function(t){return arguments.length?(e="function"===typeof t?t:fv(+t),n=null,u):e},u.y0=function(t){return arguments.length?(e="function"===typeof t?t:fv(+t),u):e},u.y1=function(t){return arguments.length?(n=null==t?null:"function"===typeof t?t:fv(+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:fv(!!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},FC=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),WC=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="area",e.renderType=R.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"]?lt.opacity.unselected:lt.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",lt.opacity.selected)},e}return FC(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(ut.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(ut.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=[0,0],i=this.services.cartesianScales,o=i.getOrientation(),a=zC().curve(this.services.curves.getD3Curve()).defined((function(t,e){var n=i.getRangeIdentifier(),r=t[n];return null!==r&&void 0!==r})),s=this.model.getGroupedData(this.configs.groups),u=pd.getProperty(this.getOptions(),"bounds"),c=u&&s&&1===s.length;!c&&u&&console.warn("Bounds can only be shown when having 1 single datagroup, you've supplied "+s.length);var l=function(t,e){return c?i.getBoundedScaledValues(t,e)[0]:i.getRangeValue(0)},h=function(t,e){return c?i.getBoundedScaledValues(t,e)[1]:i.getRangeValue(t,e)};o===V.VERTICAL?(r=this.services.cartesianScales.getMainYScale().domain(),a.x((function(t,e){return i.getDomainValue(t,e)})).y0((function(t,e){return l(t,e)})).y1((function(t,e){return h(t,e)}))):(r=this.services.cartesianScales.getMainXScale().domain(),a.x0((function(t,e){return l(t,e)})).x1((function(t,e){return h(t,e)})).y((function(t,e){return i.getDomainValue(t,e)})));var f=pd.getProperty(this.getOptions(),"color","gradient","enabled"),p=s&&1===s.length&&f;s.length>1&&f&&console.error("Gradients can only be enabled when having 1 single dataset");var d=n.selectAll("path.area").data(s,(function(t){return t.name})),v=Wm(this.services.domUtils.getMainContainer());if(d.exit().attr("opacity",0).remove(),s.length){if(p){var g=v.select("path."+this.model.getColorClassName({classNameTypes:[N.STROKE],dataGroupName:s[0].name})).node(),m=void 0;if(g)m=getComputedStyle(g,null).getPropertyValue("stroke");else{var y=pd.getProperty(this.model.getOptions(),"color","scale");if(null!==y){var _=Object.keys(y);m=y[_[0]]}}uy.appendOrUpdateLinearGradient({svg:this.parent,id:this.services.domUtils.generateElementIDString(s[0].name.replace(" ","")+"_"+this.gradient_id),x1:"0%",x2:"0%",y1:"0%",y2:"100%",stops:uy.getStops(r,m)})}else this.parent.selectAll("defs linearGradient").empty()||this.parent.selectAll("defs linearGradient").each((function(){this.parentNode.remove()}));var b=this,O=d.enter().append("path");p?O.merge(d).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:[N.FILL],dataGroupName:t.name,originalClassName:"area"})})).attr("d",(function(t){var e=t.data;return a(e)})):(O.attr("opacity",0).merge(d).attr("class","area").attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[N.FILL,N.STROKE],dataGroupName:t.name,originalClassName:"area"})})).style("fill",(function(t){return b.model.getFillColor(t.name)})).transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"area-update-enter",animate:t})})).attr("opacity",c?1:lt.opacity.selected).attr("d",(function(t){var e=t.data;return a(e)})),c&&O.attr("fill-opacity",lt.opacity.selected).style("stroke",(function(t){return b.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(ut.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(ut.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e}(RE),qC=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return 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="area-stacked",e.renderType=R.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 pd.getProperty(t,0,i)!==n.datum().name?lt.opacity.unselected:lt.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",lt.opacity.selected)},e}return qC(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(ut.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(ut.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=pd.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 pd.getProperty(t,0,o)}));this.areaGenerator=zC().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 pd.getProperty(t,0,o)})).attr("class","area").attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[N.FILL],dataGroupName:pd.getProperty(t,0,o),originalClassName:"area"})})).style("fill",(function(t){return r.model.getFillColor(pd.getProperty(t,0,o))})).attr("role",a.GRAPHICS_SYMBOL).attr("aria-roledescription","area").attr("aria-label",(function(t){return pd.getProperty(t,0,o)})).transition().call((function(n){return e.services.transitions.setupTransition({transition:n,name:"area-update-enter",animate:t})})).attr("opacity",lt.opacity.selected).attr("d",this.areaGenerator)},e}(RE),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)}}(),XC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return YC(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=ty.getSVGElementSize(this.parent,{useAttrs:!0}).width;return r.step?Math.min(e.bars.maxWidth,r.step()/2):Math.min(e.bars.maxWidth,.25*i/n)},e.prototype.isOutsideZoomedDomain=function(t,e){var n=this.model.getDisplayData().length;if(n<=1)return!1;var r=this.model.get("zoomDomain");if(void 0!==r){var i=this.services.cartesianScales.getDomainScale();return t<i(r[0])||e>i(r[1])}return!1},e}(RE),KC=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),$C=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="simple-bar",e.renderType=R.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 KC(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(ut.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(ut.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:[N.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===V.VERTICAL||u<0&&s===V.HORIZONTAL?r-2:r+2),!e.isOutsideZoomedDomain(c,l))return pd.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=Wm(this);r.classed("hovered",!0),t.services.events.dispatchEvent(ut.Bar.BAR_MOUSEOVER,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(ut.Tooltip.SHOW,{event:e,hoveredElement:r,data:[n]})})).on("mousemove",(function(e,n){t.services.events.dispatchEvent(ut.Bar.BAR_MOUSEMOVE,{event:e,element:Wm(this),datum:n}),t.services.events.dispatchEvent(ut.Tooltip.MOVE,{event:e})})).on("click",(function(e,n){t.services.events.dispatchEvent(ut.Bar.BAR_CLICK,{event:e,element:Wm(this),datum:n})})).on("mouseout",(function(e,n){var r=Wm(this);r.classed("hovered",!1),t.services.events.dispatchEvent(ut.Bar.BAR_MOUSEOUT,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(ut.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(ut.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(ut.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e}(XC),QC=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),JC=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="grouped-bar",e.renderType=R.SVG,e.padding=5,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 QC(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(ut.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(ut.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=pd.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()===V.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:[N.FILL],dataGroupName:t[i],originalClassName:"bar"})})).style("fill",(function(t){return e.model.getFillColor(t[i])})).attr("d",(function(t){var n=e.groupScale(t[i]),r=e.getBarWidth(),o=n,a=n+r,s=e.services.cartesianScales.getRangeAxisPosition({datum:t}),u=e.services.cartesianScales.getValueThroughAxisPosition(s,0),c=e.services.cartesianScales.getRangeValue(t);if(!e.isOutsideZoomedDomain(o,a))return pd.generateSVGPathString({x0:o,x1:a,y0:u,y1:c},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=Wm(this);r.classed("hovered",!0),t.services.events.dispatchEvent(ut.Bar.BAR_MOUSEOVER,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(ut.Tooltip.SHOW,{event:e,hoveredElement:r,data:[n]})})).on("mousemove",(function(e,n){var r=Wm(this);t.services.events.dispatchEvent(ut.Bar.BAR_MOUSEMOVE,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(ut.Tooltip.MOVE,{event:e})})).on("click",(function(e,n){t.services.events.dispatchEvent(ut.Bar.BAR_CLICK,{event:e,element:Wm(this),datum:n})})).on("mouseout",(function(e,n){var r=Wm(this);r.classed("hovered",!1),t.services.events.dispatchEvent(ut.Bar.BAR_MOUSEOUT,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(ut.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(ut.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(ut.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]===t}))},e.prototype.getGroupWidth=function(){var t=this.model.getGroupedData(this.configs.groups),e=this.getTotalGroupPadding();return this.getBarWidth()*t.length+e},e.prototype.getTotalGroupPadding=function(){var t=this.model.getGroupedData(this.configs.groups);if(1===t.length)return 0;var e=this.services.cartesianScales.getDomainScale(),n=Math.min(5,e.step()/70*5);return n*(t.length-1)},e.prototype.getBarWidth=function(){var t=this.getOptions(),e=pd.getProperty(t,"bars","width"),n=pd.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(),a=this.services.cartesianScales.getDomainScale();return Math.min(n,(a.step()-o)/i)},e.prototype.setGroupScale=function(){var t=this.model.getActiveDataGroupNames(this.configs.groups);this.groupScale=Pw().domain(t).rangeRound([0,this.getGroupWidth()])},e}(XC),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(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="stacked-bar",e.renderType=R.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 tA(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(ut.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(ut.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 pd.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:[N.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()===V.VERTICAL?l+=0===t[1]?2:1:l-=1:h||(e.services.cartesianScales.getOrientation()===V.VERTICAL?l+=1:l-=1)}return pd.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=Wm(this);o.classed("hovered",!0),n.services.events.dispatchEvent(ut.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(ut.Tooltip.SHOW,{event:t,hoveredElement:o,data:[s]})})).on("mousemove",(function(t,e){var r=Wm(this);n.services.events.dispatchEvent(ut.Bar.BAR_MOUSEMOVE,{event:t,element:r,datum:e}),n.services.events.dispatchEvent(ut.Tooltip.MOVE,{event:t})})).on("click",(function(t,e){n.services.events.dispatchEvent(ut.Bar.BAR_CLICK,{event:t,element:Wm(this),datum:e})})).on("mouseout",(function(t,e){var r=Wm(this);r.classed("hovered",!1),n.services.events.dispatchEvent(ut.Bar.BAR_MOUSEOUT,{event:t,element:r,datum:e}),n.services.events.dispatchEvent(ut.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(ut.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(ut.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e}(XC),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="boxplot",e.renderType=R.SVG,e}return nA(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===V.VERTICAL,b=pd.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),T=this.model.getBoxplotData(),S=n.selectAll(".box-group").data(T);S.exit().remove();var M=S.enter().append("g").attr("class","box-group"),C=S.merge(M);M.append("path").merge(S.select("path.vertical-line.start")).attr("class",(function(){return e.model.getColorClassName({classNameTypes:[N.STROKE],originalClassName:"vertical-line start"})})).attr("stroke-width",vt.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 pd.generateSVGPathString({x0:e,x1:n,y0:r,y1:o},y)})),M.append("path").merge(S.select("path.vertical-line.end")).attr("class",(function(){return e.model.getColorClassName({classNameTypes:[N.STROKE],originalClassName:"vertical-line end"})})).attr("stroke-width",vt.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 pd.generateSVGPathString({x0:e,x1:n,y0:r,y1:o},y)})),M.append("path").merge(S.select("path.box")).attr("class",(function(){return e.model.getColorClassName({classNameTypes:[N.FILL,N.STROKE],originalClassName:"box"})})).attr("fill-opacity",vt.box.opacity.default).attr("stroke-width",vt.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 pd.generateSVGPathString({x0:e,x1:n,y0:r,y1:o},y)})),M.append("path").merge(S.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 pd.generateSVGPathString({x0:e,x1:n,y0:r,y1:o},y)})),M.append("path").merge(S.select("path.whisker.start")).attr("class",(function(){return e.model.getColorClassName({classNameTypes:[N.STROKE],originalClassName:"whisker start"})})).attr("stroke-width",vt.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 pd.generateSVGPathString({x0:e,x1:n,y0:r,y1:o},y)})),M.append("path").merge(S.select("path.median")).attr("fill","none").attr("class",(function(){return e.model.getColorClassName({classNameTypes:[N.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 pd.generateSVGPathString({x0:e,x1:n,y0:r,y1:o},y)})),M.append("path").merge(S.select("path.whisker.end")).attr("class",(function(){return e.model.getColorClassName({classNameTypes:[N.STROKE],originalClassName:"whisker end"})})).attr("stroke-width",vt.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 pd.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",vt.circle.radius).attr("class",(function(){return e.model.getColorClassName({classNameTypes:[N.FILL,N.STROKE],originalClassName:"outlier"})})).attr("fill-opacity",vt.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=Wm(this),a=Wm(this.parentNode);a.select("path.box").classed("hovered",!0).attr("fill-opacity",vt.box.opacity.hovered),t.services.events.dispatchEvent(ut.Tooltip.SHOW,{event:r,hoveredElement:o,items:[{label:e.tooltip.groupLabel,value:i[n],class:t.model.getColorClassName({classNameTypes:[N.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(ut.Boxplot.BOX_MOUSEOVER,{event:r,element:o,datum:i})})).on("mousemove",(function(e,n){var r=Wm(this);t.services.events.dispatchEvent(ut.Boxplot.BOX_MOUSEMOVE,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(ut.Tooltip.MOVE,{event:e})})).on("click",(function(e,n){t.services.events.dispatchEvent(ut.Boxplot.BOX_CLICK,{event:e,element:Wm(this),datum:n})})).on("mouseout",(function(e,n){var r=Wm(this),i=Wm(this.parentNode);i.select("path.box").classed("hovered",!1).attr("fill-opacity",vt.box.opacity.default),t.services.events.dispatchEvent(ut.Boxplot.BOX_MOUSEOUT,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(ut.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=Wm(this);a.classed("hovered",!0).attr("fill-opacity",vt.circle.opacity.hovered).classed("unfilled",!1),t.services.events.dispatchEvent(ut.Tooltip.SHOW,{event:i,hoveredElement:a,items:[{label:e.tooltip.groupLabel,value:o[n],class:t.model.getColorClassName({classNameTypes:[N.TOOLTIP]})},{label:"Outlier",value:o[r]}]}),t.services.events.dispatchEvent(ut.Boxplot.OUTLIER_MOUSEOVER,{event:i,element:a,datum:o})})).on("mousemove",(function(e,n){var r=Wm(this);t.services.events.dispatchEvent(ut.Boxplot.OUTLIER_MOUSEMOVE,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(ut.Tooltip.MOVE,{event:e})})).on("click",(function(e,n){t.services.events.dispatchEvent(ut.Boxplot.OUTLIER_CLICK,{event:e,element:Wm(this),datum:n})})).on("mouseout",(function(e,n){var r=Wm(this);r.classed("hovered",!1).attr("fill-opacity",vt.circle.opacity.default),t.services.events.dispatchEvent(ut.Boxplot.OUTLIER_MOUSEOUT,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(ut.Tooltip.HIDE,{hoveredElement:r})}))},e}(RE),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){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="scatter",e.renderType=R.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 iA(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(ut.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(ut.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut);var e=this.configs.fadeInOnChartHolderMouseover;e&&(t.addEventListener(ut.Chart.MOUSEOVER,this.handleChartHolderOnHover),t.addEventListener(ut.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=pd.getProperty(this.getOptions(),"points","enabled")||pd.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=pd.flipDomainAndRangeBasedOnOrientation(this.services.cartesianScales.getHighestDomainThreshold(),this.services.cartesianScales.getHighestRangeThreshold(),o),s=a[0],u=a[1],c=pd.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=pd.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?[N.FILL,N.STROKE]:[N.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=Wm(this);i.classed("hovered",!0).attr("class",(function(n){return t.model.getColorClassName({classNameTypes:[N.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(ut.Tooltip.SHOW,{event:n,hoveredElement:i,data:[r],additionalItems:t.getTooltipAdditionalItems(r)}),t.services.events.dispatchEvent(ut.Scatter.SCATTER_MOUSEOVER,{event:n,element:i,datum:r})})).on("mousemove",(function(e,n){var r=Wm(this);t.services.events.dispatchEvent(ut.Scatter.SCATTER_MOUSEMOVE,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(ut.Tooltip.MOVE,{event:e})})).on("click",(function(e,n){t.services.events.dispatchEvent(ut.Scatter.SCATTER_CLICK,{event:e,element:Wm(this),datum:n})})).on("mouseout",(function(n,r){var i=Wm(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(ut.Scatter.SCATTER_MOUSEOUT,{event:n,element:i,datum:r}),t.services.events.dispatchEvent(ut.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(ut.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(ut.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut),t.removeEventListener(ut.Chart.MOUSEOVER,this.handleChartHolderOnHover),t.removeEventListener(ut.Chart.MOUSEOUT,this.handleChartHolderOnMouseOut)},e}(RE),aA=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return 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="bubble",e.renderType=R.SVG,e}return aA(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=ty.getHTMLElementSize(this.services.domUtils.getMainContainer()),a=i.length>0,s=a?Pv(i):[1,1];return Nw().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=pd.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:[N.FILL,N.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=pd.getProperty(this.getOptions(),"bubble");return[{label:pd.getProperty(e,"radiusLabel"),value:t[pd.getProperty(e,"radiusMapsTo")]}]},e}(oA),uA=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),cA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="bullet",e.renderType=R.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 uA(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(ut.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(ut.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=ty.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),pd.generateSVGPathString({x0:r,x1:i,y0:o,y1:a},e.services.cartesianScales.getOrientation())})).attr("opacity",1)},v=function(){var n=ty.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:[N.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 pd.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=ty.appendOrSelect(i,"g.markers").selectAll("path.marker").data(o.filter((function(t){return null!==pd.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 pd.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!==pd.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=ty.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 pd.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=Wm(this);a.classed("hovered",!0),t.services.events.dispatchEvent(ut.Bar.BAR_MOUSEOVER,{event:i,element:a,datum:o});var s=pd.getProperty(e,"bullet","performanceAreaTitles"),u=t.model.getMatchingRangeIndexForDatapoint(o);t.services.events.dispatchEvent(ut.Tooltip.SHOW,{event:i,hoveredElement:a,items:[{label:e.tooltip.groupLabel||"Group",value:o[n],class:t.model.getColorClassName({classNameTypes:[N.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(ut.Bar.BAR_MOUSEMOVE,{event:e,element:Wm(this),datum:n}),t.services.events.dispatchEvent(ut.Tooltip.MOVE,{event:e})})).on("click",(function(e,n){t.services.events.dispatchEvent(ut.Bar.BAR_CLICK,{event:e,element:Wm(this),datum:n})})).on("mouseout",(function(e,n){var r=Wm(this);r.classed("hovered",!1),t.services.events.dispatchEvent(ut.Bar.BAR_MOUSEOUT,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(ut.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(ut.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(ut.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e}(RE),lA=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),hA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="histogram",e.renderType=R.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 lA(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(ut.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(ut.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 Ol(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:[N.FILL],dataGroupName:t[o],originalClassName:"bar"})})).style("fill",(function(t){return e.model.getFillColor(t[o])})).attr("d",(function(t,n){var i=Ol(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()===V.VERTICAL?l+=1:l-=1),pd.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 pd.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=Wm(this);o.classed("hovered",!0);var a=parseFloat(Ol(i,"data.x0")),s=parseFloat(Ol(i,"data.x1")),u=n.services.cartesianScales.getRangeAxisPosition(),c=n.services.cartesianScales.getScaleLabel(u);n.services.events.dispatchEvent(ut.Tooltip.SHOW,{event:r,hoveredElement:o,items:[{label:Ol(t,"bins.rangeLabel")||"Range",value:a+" – "+s},{label:t.tooltip.groupLabel||"Group",value:i[e],class:n.model.getColorClassName({classNameTypes:[N.TOOLTIP],dataGroupName:i[e]})},{label:c,value:Ol(i,"data."+i[e])}]})})).on("mousemove",(function(t,e){n.services.events.dispatchEvent(ut.Tooltip.MOVE,{event:t})})).on("mouseout",(function(t,e){var r=Wm(this);r.classed("hovered",!1),n.services.events.dispatchEvent(ut.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(ut.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(ut.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e}(RE),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)}}(),pA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="line",e.renderType=R.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"]?yt.opacity.unselected:yt.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",yt.opacity.selected)},e}return fA(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(ut.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(ut.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=pd.flipDomainAndRangeBasedOnOrientation(s,u,i.getOrientation()),l=c[0],h=c[1],f=this.getOptions(),p=HC().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:pd.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:!pd.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:[N.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(ut.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(ut.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e}(RE),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)}}(),vA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="lollipop",e.renderType=R.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]?yt.weight.unselected:yt.weight.selected}))},e.handleScatterOnMouseOut=function(t){e.parent.selectAll("line.line").attr("stroke-width",yt.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"]?yt.opacity.unselected:yt.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",yt.opacity.selected)},e}return dA(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(ut.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(ut.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=pd.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:[N.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===V.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(ut.Scatter.SCATTER_MOUSEOVER,this.handleScatterOnHover),this.services.events.addEventListener(ut.Scatter.SCATTER_MOUSEOUT,this.handleScatterOnMouseOut)},e.prototype.destroy=function(){var t=this.services.events;t.removeEventListener(ut.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(ut.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut),t.removeEventListener(ut.Scatter.SCATTER_MOUSEOVER,this.handleScatterOnHover),t.removeEventListener(ut.Scatter.SCATTER_MOUSEOUT,this.handleScatterOnMouseOut)},e}(oA),gA=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return 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="scatter-stacked",e.renderType=R.SVG,e}return gA(e,t),e.prototype.render=function(t){var e=this,n=pd.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 pd.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}(oA);function yA(t){return t.innerRadius}function _A(t){return t.outerRadius}function bA(t){return t.startAngle}function OA(t){return t.endAngle}function wA(t){return t&&t.padAngle}function xA(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<Jx))return f=(l*(e-o)-h*(t-i))/f,[t+f*u,e+f*c]}function EA(t,e,n,r,i,o,a){var s=t-n,u=e-r,c=(a?o:-o)/Qx(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)*Qx(Xx(0,O*O*b-w*w)),E=(w*_-y*x)/b,T=(-w*y-_*x)/b,S=(w*_+y*x)/b,M=(-w*y+_*x)/b,C=E-g,A=T-m,P=S-g,L=M-m;return C*C+A*A>P*P+L*L&&(E=S,T=M),{cx:E,cy:T,x01:-l,y01:-h,x11:E*(i/O-1),y11:T*(i/O-1)}}var TA=function(){var t=yA,e=_A,n=fv(0),r=null,i=bA,o=OA,a=wA,s=null;function u(){var u,c,l=+t.apply(this,arguments),h=+e.apply(this,arguments),f=i.apply(this,arguments)-eE,p=o.apply(this,arguments)-eE,d=qx(p-f),v=p>f;if(s||(s=u=UC()),h<l&&(c=h,h=l,l=c),h>Jx)if(d>nE-Jx)s.moveTo(h*Yx(f),h*$x(f)),s.arc(0,0,h,f,p,!v),l>Jx&&(s.moveTo(l*Yx(p),l*$x(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,T=E>Jx&&(r?+r.apply(this,arguments):Qx(l*l+h*h)),S=Kx(qx(h-l)/2,+n.apply(this,arguments)),M=S,C=S;if(T>Jx){var A=iE(T/l*$x(E)),P=iE(T/h*$x(E));(w-=2*A)>Jx?(A*=v?1:-1,b+=A,O-=A):(w=0,b=O=(f+p)/2),(x-=2*P)>Jx?(P*=v?1:-1,y+=P,_-=P):(x=0,y=_=(f+p)/2)}var L=h*Yx(y),k=h*$x(y),D=l*Yx(O),R=l*$x(O);if(S>Jx){var I,N=h*Yx(_),j=h*$x(_),B=l*Yx(b),U=l*$x(b);if(d<tE&&(I=xA(L,k,B,U,N,j,D,R))){var V=L-I[0],G=k-I[1],H=N-I[0],z=j-I[1],F=1/$x(rE((V*H+G*z)/(Qx(V*V+G*G)*Qx(H*H+z*z)))/2),W=Qx(I[0]*I[0]+I[1]*I[1]);M=Kx(S,(l-W)/(F-1)),C=Kx(S,(h-W)/(F+1))}}x>Jx?C>Jx?(g=EA(B,U,L,k,h,C,v),m=EA(N,j,D,R,h,C,v),s.moveTo(g.cx+g.x01,g.cy+g.y01),C<S?s.arc(g.cx,g.cy,C,Zx(g.y01,g.x01),Zx(m.y01,m.x01),!v):(s.arc(g.cx,g.cy,C,Zx(g.y01,g.x01),Zx(g.y11,g.x11),!v),s.arc(0,0,h,Zx(g.cy+g.y11,g.cx+g.x11),Zx(m.cy+m.y11,m.cx+m.x11),!v),s.arc(m.cx,m.cy,C,Zx(m.y11,m.x11),Zx(m.y01,m.x01),!v))):(s.moveTo(L,k),s.arc(0,0,h,y,_,!v)):s.moveTo(L,k),l>Jx&&w>Jx?M>Jx?(g=EA(D,R,N,j,l,-M,v),m=EA(L,k,B,U,l,-M,v),s.lineTo(g.cx+g.x01,g.cy+g.y01),M<S?s.arc(g.cx,g.cy,M,Zx(g.y01,g.x01),Zx(m.y01,m.x01),!v):(s.arc(g.cx,g.cy,M,Zx(g.y01,g.x01),Zx(g.y11,g.x11),!v),s.arc(0,0,l,Zx(g.cy+g.y11,g.cx+g.x11),Zx(m.cy+m.y11,m.cx+m.x11),v),s.arc(m.cx,m.cy,M,Zx(m.y11,m.x11),Zx(m.y01,m.x01),!v))):s.arc(0,0,l,O,b,v):s.lineTo(D,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-tE/2;return[Yx(r)*n,$x(r)*n]},u.innerRadius=function(e){return arguments.length?(t="function"===typeof e?e:fv(+e),u):t},u.outerRadius=function(t){return arguments.length?(e="function"===typeof t?t:fv(+t),u):e},u.cornerRadius=function(t){return arguments.length?(n="function"===typeof t?t:fv(+t),u):n},u.padRadius=function(t){return arguments.length?(r=null==t?null:"function"===typeof t?t:fv(+t),u):r},u.startAngle=function(t){return arguments.length?(i="function"===typeof t?t:fv(+t),u):i},u.endAngle=function(t){return arguments.length?(o="function"===typeof t?t:fv(+t),u):o},u.padAngle=function(t){return arguments.length?(a="function"===typeof t?t:fv(+t),u):a},u.context=function(t){return arguments.length?(s=null==t?null:t,u):s},u},SA=function(t,e){return e<t?-1:e>t?1:e>=t?0:NaN},MA=function(t){return t},CA=function(){var t=MA,e=SA,n=null,r=fv(0),i=fv(nE),o=fv(0);function a(a){var s,u,c,l,h,f=(a=hv(a)).length,p=0,d=new Array(f),v=new Array(f),g=+r.apply(this,arguments),m=Math.min(nE,Math.max(-nE,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:fv(+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:fv(+t),a):r},a.endAngle=function(t){return arguments.length?(i="function"===typeof t?t:fv(+t),a):i},a.padAngle=function(t){return arguments.length?(o="function"===typeof t?t:fv(+t),a):o},a},AA=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return 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 PA(t,e){var n=this,r=RO(this._current,t);return function(t){return n._current=r(t),e(n._current)}}var LA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="pie",e.renderType=R.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 AA(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(ut.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(ut.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.getInnerRadius=function(){return bt.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=TA().innerRadius(this.getInnerRadius()).outerRadius(c),this.hoverArc=TA().innerRadius(this.getInnerRadius()).outerRadius(c+bt.hoverArc.outerRadiusOffset);var l=CA().value((function(t){return t[s]})).sort(pd.getProperty(i,"pie","sortFunction")).padAngle(bt.padAngle),h=l(u),f=ty.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:[N.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]+", "+pd.convertValueToPercentage(t.data[s],u,s)+"%"})).attrTween("d",(function(t){return PA.bind(this)(t,n.arc)}));var g=i.pie.labels.enabled,m=g?h.filter((function(t){return t.data[s]>0})):[],y=ty.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):pd.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<bt.callout.minSliceDegree){var i=void 0,o=void 0;return t.index===n-1?(i=t.xPosition+bt.callout.offsetX+bt.callout.textMargin+t.textOffsetX,o=t.yPosition-bt.callout.offsetY,t.direction=X.RIGHT,O.push(t)):(i=t.xPosition-bt.callout.offsetX-t.textOffsetX-bt.callout.textMargin,o=t.yPosition-bt.callout.offsetY,t.direction=X.LEFT,O.push(t)),"translate("+i+", "+o+")"}return"translate("+t.xPosition+", "+t.yPosition+")"})),this.renderCallouts(O);var w=pd.getProperty(i,"donut")?"donut":"pie",x=pd.getProperty(i,w,"alignment"),E=ty.getSVGElementSize(this.getParent(),{useAttrs:!0}).width,T=g?bt.xOffset:0,S=g?bt.yOffset:0,M=c+T;x===z.CENTER?M=E/2:x===z.RIGHT&&(M=E-c-bt.xOffset);var C=c+S;O.length>0&&(C+=bt.yOffsetCallout),r.attr("x",M+7).attr("y",C),this.addEventListeners()},e.prototype.renderCallouts=function(t){var e=ty.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===X.RIGHT?(t.startPos={x:e,y:n+t.textOffsetY},t.endPos={x:e+bt.callout.offsetX,y:n-bt.callout.offsetY+t.textOffsetY},t.intersectPointX=t.endPos.x-bt.callout.horizontalLineLength):(t.startPos={x:e,y:n+t.textOffsetY},t.endPos={x:e-bt.callout.offsetX,y:n-bt.callout.offsetY+t.textOffsetY},t.intersectPointX=t.endPos.x+bt.callout.horizontalLineLength),t}));var i=r.append("line").classed("vertical-line",!0);i.merge(e.selectAll("line.vertical-line")).datum((function(t){return Wm(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 Wm(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=Wm(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(ut.Pie.SLICE_MOUSEOVER,{event:e,element:Wm(this),datum:n});var i=t.getOptions().data.groupMapsTo,o=t.getOptions().pie.valueMapsTo;t.services.events.dispatchEvent(ut.Tooltip.SHOW,{event:e,hoveredElement:r,items:[{label:n.data[i],value:n.data[o]}]})})).on("mousemove",(function(e,n){var r=Wm(this);t.services.events.dispatchEvent(ut.Pie.SLICE_MOUSEMOVE,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(ut.Tooltip.MOVE,{event:e})})).on("click",(function(e,n){t.services.events.dispatchEvent(ut.Pie.SLICE_CLICK,{event:e,element:Wm(this),datum:n})})).on("mouseout",(function(e,n){var r=Wm(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(ut.Pie.SLICE_MOUSEOUT,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(ut.Tooltip.HIDE,{hoveredElement:r})}))},e.prototype.computeRadius=function(){var t=ty.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+bt.radiusOffset:i},e}(RE),kA=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),DA="4,10 8,6 12,10",RA="12,6 8,10 4,6",IA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="gauge",e.renderType=R.SVG,e}return kA(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=pd.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=pd.getProperty(t,"gauge","type"),n=e===J.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=pd.getProperty(e,"gauge","deltaArrow","direction");switch(n){case tt.UP:return DA;case tt.DOWN:return RA;default:return t>0?DA:RA}},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=TA().innerRadius(p).outerRadius(f).startAngle(l).endAngle(h),this.arc=TA().innerRadius(p).outerRadius(f).startAngle(u).endAngle(l),ty.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:[N.FILL],dataGroupName:"value",originalClassName:"arc-foreground"})).style("fill",(function(t){return pd.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=pd.getProperty(r,"gauge","alignment"),m=ty.getSVGElementSize(this.getParent(),{useAttrs:!0}).width,y=f;g===z.CENTER?y=m/2:g===z.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=pd.getProperty(e,"gauge","type"),r=this.getValue(),i=this.getDelta(),o=this.computeRadius(),a=pd.getProperty(e,"gauge","valueFontSize"),s=pd.getProperty(e,"gauge","deltaFontSize"),u=pd.getProperty(e,"gauge","numberSpacing"),c=pd.getProperty(e,"gauge","showPercentageSymbol"),l=0;n!==J.FULL||i?n===J.SEMI&&i&&(l=-(s(o)+u)):l=s(o);var h=ty.appendOrSelect(t,"g.gauge-numbers").attr("transform","translate(0, "+l+")"),f=a(o),p=ty.appendOrSelect(h,"g.gauge-value-number"),d=pd.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=ty.getSVGElementSize(ty.appendOrSelect(t,"text.gauge-value-number"),{useBBox:!0}).width,m=f/2,y=c?"%":"",_=ty.appendOrSelect(p,"text.gauge-value-symbol").style("font-size",m+"px").attr("x",g/2).text(y),b=ty.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?pd.getProperty(n,"gauge","deltaFontSize"):function(){return 0},a=r?pd.getProperty(n,"gauge","numberFormatter"):function(){return null},s=pd.getProperty(n,"gauge","deltaArrow","size"),u=pd.getProperty(n,"gauge","numberSpacing"),c=pd.getProperty(n,"gauge","showPercentageSymbol"),l=ty.appendOrSelect(e,"g.gauge-numbers"),h=ty.appendOrSelect(l,"g.gauge-delta").attr("transform","translate(0, "+(o(i)+u)+")"),f=ty.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=ty.getSVGElementSize(ty.appendOrSelect(e,".gauge-delta-number"),{useBBox:!0}).width,v=pd.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=Wm(this);ty.appendOrSelect(e,"rect.gauge-delta-arrow-backdrop").attr("width","16").attr("height","16").attr("fill","none");var i=pd.getProperty(n,"gauge","status");ty.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=pd.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(ut.Gauge.ARC_MOUSEOVER,{event:e,element:Wm(this),datum:n})})).on("mousemove",(function(e,n){var r=Wm(this);t.services.events.dispatchEvent(ut.Gauge.ARC_MOUSEMOVE,{event:e,element:r,datum:n})})).on("click",(function(e,n){t.services.events.dispatchEvent(ut.Gauge.ARC_CLICK,{event:e,element:Wm(this),datum:n})})).on("mouseout",(function(e,n){var r=Wm(this);t.services.events.dispatchEvent(ut.Gauge.ARC_MOUSEOUT,{event:e,element:r,datum:n})}))},e.prototype.computeRadius=function(){var t=this.getOptions(),e=pd.getProperty(t,"gauge","type"),n=ty.getSVGElementSize(this.parent,{useAttrs:!0}),r=n.width,i=n.height,o=e===J.SEMI?Math.min(r/2,i):Math.min(r/2,i/2);return o},e}(RE),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="donut",e.renderType=R.SVG,e}return NA(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=ty.appendOrSelect(this.getComponentContainer(),"g.center"),o=this.getOptions(),a=this.computeRadius(),s=pd.getProperty(o,"donut","center","label");ty.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(Wm(this))})),null!==s&&""!==s&&ty.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=pd.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?IO:MO;var o=r(i,n);return function(n){var r=e.donut.center.numberFormatter;t.text(r(o(n)))}},e}(LA);const BA=t=>+t;var UA=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),VA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="skeleton",e}return UA(e,t),e.prototype.render=function(){var t=pd.getProperty(this.getOptions(),"data","loading");t?this.renderSkeleton(t):this.removeSkeleton()},e.prototype.renderSkeleton=function(t){if(this.configs.skeleton===K.GRID)this.renderGridSkeleton(t);else if(this.configs.skeleton===K.VERT_OR_HORIZ)this.renderVertOrHorizSkeleton(t);else if(this.configs.skeleton===K.PIE)this.renderPieSkeleton(t);else{if(this.configs.skeleton!==K.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===V.VERTICAL&&this.drawYGrid(t),e===V.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=Nw().domain([0,1]).range(t),this.yScale=Nw().domain([0,1]).range(e)},e.prototype.drawBackdrop=function(t){var e=this.parent,n=ty.getSVGElementSize(e,{useAttrs:!0}),r=n.width,i=n.height;this.backdrop=ty.appendOrSelect(e,"svg.chart-skeleton.DAII").attr("width",r).attr("height",i);var o=ty.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=pd.getProperty(this.getOptions(),"grid","x","numberOfTicks"),r=this.xScale.ticks(n).map((function(t){return t*e})),i=ty.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=pd.getProperty(this.getOptions(),"grid","y","numberOfTicks"),i=this.xScale.ticks(r).map((function(t){return t*e})),o=ty.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=ty.getSVGElementSize(r,{useAttrs:!0}),o=i.width,a=i.height,s=ty.appendOrSelect(r,"svg.chart-skeleton").attr("width",o).attr("height",a),u=0===e?"pie":"donut",c=pd.getProperty(this.getOptions(),u,"alignment");ty.appendOrSelect(s,"rect.chart-skeleton-area-container").attr("width",o).attr("height",a).attr("fill","none");var l=TA().innerRadius(e).outerRadius(t).startAngle(0).endAngle(2*Math.PI),h=t+Math.abs(bt.radiusOffset),f=t+(Math.min(o,a)-2*t)/2,p=ty.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+bt.xOffset;c===z.CENTER?d=o/2:c===z.RIGHT&&(d=o-t-bt.xOffset);var v=t+bt.yOffset;p.attr("transform","translate("+d+", "+v+")")},e.prototype.computeOuterRadius=function(){var t=ty.getSVGElementSize(this.parent,{useAttrs:!0}),e=t.width,n=t.height,r=Math.min(e,n)/2;return r+bt.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=ty.getSVGElementSize(this.parent,{useAttrs:!0}).width,u=0,c=s,l=ty.appendOrSelect(a,"defs").lower(),h=ty.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(BA).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}(RE),GA=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),HA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="skeleton-lines",e}return GA(e,t),e.prototype.render=function(){var e=pd.getProperty(this.getOptions(),"data","loading"),n=!pd.getProperty(this.getOptions(),"grid","x","enabled")&&!pd.getProperty(this.getOptions(),"grid","y","enabled")&&!pd.getProperty(this.getOptions(),"axes","bottom","visible")&&!pd.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=ty.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=ty.appendOrSelect(t,"svg.chart-skeleton.DAII");var e=ty.appendOrSelect(this.backdrop,"rect.chart-skeleton-backdrop");e.classed("shimmer-effect-lines",!1).classed("shimmer-effect-sparkline",!0).style("stroke",null)},e}(VA);function zA(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 FA=function(){return this.eachAfter(zA)},WA=function(t,e){let n=-1;for(const r of this)t.call(e,r,++n,this);return this},qA=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},ZA=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},YA=function(t,e){let n=-1;for(const r of this)if(t.call(e,r,++n,this))return r},XA=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}))},KA=function(t){return this.eachBefore((function(e){e.children&&e.children.sort(t)}))},$A=function(t){var e=this,n=QA(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 QA(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 JA=function(){var t=this,e=[t];while(t=t.parent)e.push(t);return e},tP=function(){return Array.from(this)},eP=function(){var t=[];return this.eachBefore((function(e){e.children||t.push(e)})),t},nP=function(){var t=this,e=[];return t.each((function(n){n!==t&&e.push({source:n.parent,target:n})})),e},rP=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 iP(t,e){t instanceof Map?(t=[void 0,t],void 0===e&&(e=sP)):void 0===e&&(e=aP);var n,r,i,o,a,s=new lP(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 lP(i[o])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(cP)}function oP(){return iP(this).eachBefore(uP)}function aP(t){return t.children}function sP(t){return Array.isArray(t)?t[1]:null}function uP(t){void 0!==t.data.value&&(t.value=t.data.value),t.data=t.data.data}function cP(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function lP(t){this.data=t,this.depth=this.height=0,this.parent=null}function hP(t,e){return t.parent===e.parent?1:2}function fP(t){return t.reduce(pP,0)/t.length}function pP(t,e){return t+e.x}function dP(t){return 1+t.reduce(vP,0)}function vP(t,e){return Math.max(t,e.y)}function gP(t){var e;while(e=t.children)t=e[0];return t}function mP(t){var e;while(e=t.children)t=e[e.length-1];return t}lP.prototype=iP.prototype={constructor:lP,count:FA,each:WA,eachAfter:ZA,eachBefore:qA,find:YA,sum:XA,sort:KA,path:$A,ancestors:JA,descendants:tP,leaves:eP,links:nP,copy:oP,[Symbol.iterator]:rP};var yP=function(){var t=hP,e=1,n=1,r=!1;function i(i){var o,a=0;i.eachAfter((function(e){var n=e.children;n?(e.x=fP(n),e.y=dP(n)):(e.x=o?a+=t(e,o):0,e.y=0,o=e)}));var s=gP(i),u=mP(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 _P(t,e){return t.parent===e.parent?1:2}function bP(t){var e=t.children;return e?e[0]:t.t}function OP(t){var e=t.children;return e?e[e.length-1]:t.t}function wP(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 xP(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 EP(t,e,n){return t.a.parent===e.parent?t.a:n}function TP(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 SP(t){var e,n,r,i,o,a=new TP(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 TP(r[i],i)),n.parent=e;return(a.parent=new TP(null,0)).children=[a],a}TP.prototype=Object.create(lP.prototype);var MP=function(){var t=_P,e=1,n=1,r=null;function i(i){var s=SP(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){xP(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=OP(s),o=bP(o),s&&o)u=bP(u),a=OP(a),a.a=e,i=s.z+h-o.z-c+t(s._,o._),i>0&&(wP(EP(s,e,r),e,i),c+=i,l+=i),h+=s.m,c+=o.m,f+=u.m,l+=a.m;s&&!OP(a)&&(a.t=s,a.m+=h-l),o&&!bP(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 CP(t){return t.source}function AP(t){return t.target}function PP(t){var e=CP,n=AP,r=VC,i=GC,o=null;function a(){var a,s=lv.call(arguments),u=e.apply(this,s),c=n.apply(this,s);if(o||(o=a=UC()),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:fv(+t),a):r},a.y=function(t){return arguments.length?(i="function"===typeof t?t:fv(+t),a):i},a.context=function(t){return arguments.length?(o=null==t?null:t,a):o},a}function LP(t,e,n,r,i){t.moveTo(e,n),t.bezierCurveTo(e=(e+r)/2,n,e,i,r,i)}function kP(){return PP(LP)}var DP=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),RP=6,IP=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="tree",e.renderType=R.SVG,e}return DP(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=ty.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=ty.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=pd.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+RP:30-RP},p=iP({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(ut.Tree.NODE_MOUSEOVER,{event:t,element:Wm(this),datum:e})})).on("click",(function(t,e){0!==e.depth&&(e.children=e.children?null:e._children,g(e)),h.services.events.dispatchEvent(ut.Tree.NODE_CLICK,{event:t,element:Wm(this),datum:e})})).on("mouseout",(function(t,e){h.services.events.dispatchEvent(ut.Tree.NODE_MOUSEOUT,{event:t,element:Wm(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?-RP:RP})).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,_=pd.getProperty(a,"tree","type")===W.DENDROGRAM?yP().size([o,i-h-y*RP-c]):MP().nodeSize([d,v]).size([o,i-h-y*RP-c]),b=kP().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}(RE),NP=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)},jP=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},BP=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},UP=(1+Math.sqrt(5))/2;function VP(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?jP(a,n,r,i,w?r+=c*l/w:o):BP(a,n,r,w?n+=u*l/w:i,o),w-=l,_=b}return m}var GP=function t(e){function n(t,n,r,i,o){VP(e,t,n,r,i,o)}return n.ratio=function(e){return t((e=+e)>1?e:1)},n}(UP);function HP(t){return null==t?null:zP(t)}function zP(t){if("function"!==typeof t)throw new Error;return t}function FP(){return 0}var WP=function(t){return function(){return t}},qP=function(){var t=GP,e=!1,n=1,r=1,i=[0],o=FP,a=FP,s=FP,u=FP,c=FP;function l(t){return t.x0=t.y0=0,t.x1=n,t.y1=r,t.eachBefore(h),i=[0],e&&t.eachBefore(NP),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=zP(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:WP(+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:WP(+t),l):a},l.paddingRight=function(t){return arguments.length?(s="function"===typeof t?t:WP(+t),l):s},l.paddingBottom=function(t){return arguments.length?(u="function"===typeof t?t:WP(+t),l):u},l.paddingLeft=function(t){return arguments.length?(c="function"===typeof t?t:WP(+t),l):c},l};function ZP(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}var YP="#000000",XP="#ffffff",KP="#fcf4d6",$P="#fddc69",QP="#f1c21b",JP="#d2a106",tL="#b28600",eL="#8e6a00",nL="#684e00",rL="#483700",iL="#302400",oL="#1c1500",aL={10:KP,20:$P,30:QP,40:JP,50:tL,60:eL,70:nL,80:rL,90:iL,100:oL},sL="#fff2e8",uL="#ffd9be",cL="#ffb784",lL="#ff832b",hL="#eb6200",fL="#ba4e00",pL="#8a3800",dL="#5e2900",vL="#3e1a00",gL="#231000",mL={10:sL,20:uL,30:cL,40:lL,50:hL,60:fL,70:pL,80:dL,90:vL,100:gL},yL="#fff1f1",_L="#ffd7d9",bL="#ffb3b8",OL="#ff8389",wL="#fa4d56",xL="#da1e28",EL="#a2191f",TL="#750e13",SL="#520408",ML="#2d0709",CL={10:yL,20:_L,30:bL,40:OL,50:wL,60:xL,70:EL,80:TL,90:SL,100:ML},AL="#fff0f7",PL="#ffd6e8",LL="#ffafd2",kL="#ff7eb6",DL="#ee5396",RL="#d02670",IL="#9f1853",NL="#740937",jL="#510224",BL="#2a0a18",UL={10:AL,20:PL,30:LL,40:kL,50:DL,60:RL,70:IL,80:NL,90:jL,100:BL},VL="#f6f2ff",GL="#e8daff",HL="#d4bbff",zL="#be95ff",FL="#a56eff",WL="#8a3ffc",qL="#6929c4",ZL="#491d8b",YL="#31135e",XL="#1c0f30",KL={10:VL,20:GL,30:HL,40:zL,50:FL,60:WL,70:qL,80:ZL,90:YL,100:XL},$L="#edf5ff",QL="#d0e2ff",JL="#a6c8ff",tk="#78a9ff",ek="#4589ff",nk="#0f62fe",rk="#0043ce",ik="#002d9c",ok="#001d6c",ak="#001141",sk={10:$L,20:QL,30:JL,40:tk,50:ek,60:nk,70:rk,80:ik,90:ok,100:ak},uk="#e5f6ff",ck="#bae6ff",lk="#82cfff",hk="#33b1ff",fk="#1192e8",pk="#0072c3",dk="#00539a",vk="#003a6d",gk="#012749",mk="#061727",yk={10:uk,20:ck,30:lk,40:hk,50:fk,60:pk,70:dk,80:vk,90:gk,100:mk},_k="#d9fbfb",bk="#9ef0f0",Ok="#3ddbd9",wk="#08bdba",xk="#009d9a",Ek="#007d79",Tk="#005d5d",Sk="#004144",Mk="#022b30",Ck="#081a1c",Ak={10:_k,20:bk,30:Ok,40:wk,50:xk,60:Ek,70:Tk,80:Sk,90:Mk,100:Ck},Pk="#defbe6",Lk="#a7f0ba",kk="#6fdc8c",Dk="#42be65",Rk="#24a148",Ik="#198038",Nk="#0e6027",jk="#044317",Bk="#022d0d",Uk="#071908",Vk={10:Pk,20:Lk,30:kk,40:Dk,50:Rk,60:Ik,70:Nk,80:jk,90:Bk,100:Uk},Gk="#f2f4f8",Hk="#dde1e6",zk="#c1c7cd",Fk="#a2a9b0",Wk="#878d96",qk="#697077",Zk="#4d5358",Yk="#343a3f",Xk="#21272a",Kk="#121619",$k={10:Gk,20:Hk,30:zk,40:Fk,50:Wk,60:qk,70:Zk,80:Yk,90:Xk,100:Kk},Qk="#f4f4f4",Jk="#e0e0e0",tD="#c6c6c6",eD="#a8a8a8",nD="#8d8d8d",rD="#6f6f6f",iD="#525252",oD="#393939",aD="#262626",sD="#161616",uD={10:Qk,20:Jk,30:tD,40:eD,50:nD,60:rD,70:iD,80:oD,90:aD,100:sD},cD="#f7f3f2",lD="#e5e0df",hD="#cac5c4",fD="#ada8a8",pD="#8f8b8b",dD="#726e6e",vD="#565151",gD="#3c3838",mD="#272525",yD="#171414",_D={10:cD,20:lD,30:hD,40:fD,50:pD,60:dD,70:vD,80:gD,90:mD,100:yD},bD={black:{100:YP},blue:sk,coolGray:$k,cyan:yk,gray:uD,green:Vk,magenta:UL,orange:mL,purple:KL,red:CL,teal:Ak,warmGray:_D,white:{0:XP},yellow:aL};var OD=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),wD=function(t){if(!t)return null;for(var e=0,n=Object.keys(bD);e<n.length;e++)for(var r=n[e],i=bD[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},xD=function(){var t,e=Wm(this.parentNode).select("rect.leaf"),n=getComputedStyle(e.node(),null).getPropertyValue("fill"),r=Jb(n);if(r&&(t=wD(r?r.hex():null)),null===t||void 0===t){var i=lO(r).l;t=Math.abs(100*i-100)}return t>50?"white":"black"},ED=0,TD=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="treemap",e.renderType=R.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 OD(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(ut.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(ut.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(),i=this.model.getDisplayData(),o=this.model.getOptions(),a=pd.getProperty(window,"location"),s=ty.getSVGElementSize(n,{useAttrs:!0}),u=s.width,c=s.height,l=iP({name:o.title||"Treemap",children:i}).sum((function(t){return t.value})).sort((function(t,e){return e.value-t.value})),h=(ZP(r,(function(t){return ZP(t.children,(function(t){return t.value}))})),qP().size([u,c]).paddingInner(1).paddingOuter(0).round(!0)(l)),f=(this.services.transitions,n.selectAll("g[data-name='leaf']").data(h.leaves(),(function(t){return t.data.name})));f.exit().attr("opacity",0).remove();var p=f.enter().append("g").attr("data-name","leaf").attr("data-uid",(function(){return ED++})),d=p.merge(f);d.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 v=d.selectAll("rect.leaf").data((function(t){return[t]}));v.exit().attr("width",0).attr("height",0).remove();var g=v.enter().append("rect").classed("leaf",!0);g.merge(v).attr("width",0).attr("height",0).attr("id",(function(){var t=Wm(this.parentNode).attr("data-uid");return o.style.prefix+"-leaf-"+t})).attr("class",(function(t){while(t.depth>1)t=t.parent;return e.model.getColorClassName({classNameTypes:[N.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)})),d.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=Wm(this.parentNode).attr("data-uid");return o.style.prefix+"-clip-"+t})).append("use").attr("xlink:href",(function(){var t=Wm(this.parentNode.parentNode).attr("data-uid"),e=o.style.prefix+"-leaf-"+t;return new URL("#"+e,a)+""}))}),(function(t){return null}),(function(t){return t.remove()})),d.selectAll("text").data((function(t){if(!0!==t.data.showLabel)return[];var n=t;while(n.depth>1)n=n.parent;var r=lO(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",xD).attr("x",7).attr("y",18);a&&e.attr("clip-path",(function(){var t=Wm(this.parentNode).attr("data-uid"),e=o.style.prefix+"-clip-"+t;return"url("+new URL("#"+e,a)+")"}))}),(function(t){return t.text((function(t){return t.text})).style("fill",xD)}),(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=Wm(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),Jb(i).darker(.7).toString()})),t.services.events.dispatchEvent(ut.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(ut.Treemap.LEAF_MOUSEOVER,{event:e,element:r,datum:n})})).on("mousemove",(function(e,n){var r=Wm(this);t.services.events.dispatchEvent(ut.Treemap.LEAF_MOUSEMOVE,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(ut.Tooltip.MOVE,{event:e})})).on("click",(function(e,n){t.services.events.dispatchEvent(ut.Treemap.LEAF_CLICK,{event:e,element:Wm(this),datum:n})})).on("mouseout",(function(e,n){var r=Wm(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(ut.Treemap.LEAF_MOUSEOUT,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(ut.Tooltip.HIDE,{hoveredElement:r})}))},e}(RE);function SD(t){var e=MD(AD(t),360);return CD(e,[0,10])||CD(e,[350,0])?{textAnchor:$.START,dominantBaseline:Q.MIDDLE}:CD(e,[10,80])?{textAnchor:$.START,dominantBaseline:Q.HANGING}:CD(e,[80,100])?{textAnchor:$.MIDDLE,dominantBaseline:Q.HANGING}:CD(e,[100,170])?{textAnchor:$.END,dominantBaseline:Q.HANGING}:CD(e,[170,190])?{textAnchor:$.END,dominantBaseline:Q.MIDDLE}:CD(e,[190,260])?{textAnchor:$.END,dominantBaseline:Q.BASELINE}:CD(e,[260,280])?{textAnchor:$.MIDDLE,dominantBaseline:Q.BASELINE}:{textAnchor:$.START,dominantBaseline:Q.BASELINE}}function MD(t,e){return(t%e+e)%e}function CD(t,e){var n=e[0],r=e[1];return t>=n&&t<=r}function AD(t){return t*(180/Math.PI)}function PD(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 LD(t,e){return e*Math.sin(t-Math.PI/2)}var kD=RD(Sx);function DD(t){this._curve=t}function RD(t){function e(e){return new DD(t(e))}return e._curve=t,e}function ID(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(RD(t)):e()._curve},t}DD.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 ND=function(){return ID(HC().curve(kD))},jD=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),BD=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="radar",e.renderType=R.SVG,e.getLabelDimensions=function(t){var n=ty.appendOrSelect(e.getComponentContainer(),"g.tmp-tick"),r=ty.appendOrSelect(n,"text").text(t),i=ty.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=pd.getProperty(n,"radar","axes"),i=r.angle,o=r.value,a=pd.getProperty(n,"data","groupMapsTo"),s=pd.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 pd.merge(s,t)},e.normalizeGroupedData=function(t){var n=e.getOptions(),r=pd.getProperty(n,"radar","axes"),i=r.angle,o=r.value,a=pd.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:pd.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?Ot.opacity.unselected:Ot.opacity.selected})).style("stroke-opacity",(function(t){return t.name!==n.datum().name?Ot.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",Ot.opacity.selected).style("stroke-opacity",1)},e}return jD(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(ut.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(ut.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this.getComponentContainer(),r=ty.getSVGElementSize(n,{useAttrs:!0}),i=r.width,o=r.height,s=this.model.getData(),u=this.model.getGroupedData(),c=this.getOptions(),l=pd.getProperty(c,"data","groupMapsTo"),h=pd.getProperty(c,"radar","axes","value"),f=pd.getProperty(c,"radar","axes"),p=f.angle,d=f.value,v=Ot,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,T=E/2;if(!(T<=0)){var S=Pw().domain(this.fullDataNormalized.map((function(t){return t[p]}))).range([0,2*Math.PI].map((function(t){return t-Math.PI/2}))),M=iC(this.fullDataNormalized.map((function(t){return t[d]}))),C=Nw().domain([M>=0?0:M,jw(this.fullDataNormalized.map((function(t){return t[d]})))]).range([_,T]).nice(y),A=C.ticks(y),P=function(t){return e.model.getFillColor(t)},L=ND().angle((function(t){return S(t[p])+Math.PI/2})).radius((function(t){return C(t[d])})).curve(Ax),k=this.uniqueKeys.map((function(t){var n=e.getLabelDimensions(t).width,r=LD(S(t),T);return n+r})),D=jw(k),R={x:D+g,y:o/2},I=ty.appendOrSelect(n,"g.y-axes").attr("role",a.GROUP),j=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}))};j.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=ty.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-"+pd.kebabCase(t)})).attr("stroke-dasharray","0").attr("x1",(function(t){return PD(S(t),0,R).x})).attr("y1",(function(t){return PD(S(t),0,R).y})).attr("x2",(function(t){return PD(S(t),0,R).x})).attr("y2",(function(t){return PD(S(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 PD(S(t),C.range()[0],R).x})).attr("y1",(function(t){return PD(S(t),C.range()[0],R).y})).attr("x2",(function(t){return PD(S(t),C.range()[1],R).x})).attr("y2",(function(t){return PD(S(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 PD(S(t),C.range()[0],R).x})).attr("y1",(function(t){return PD(S(t),C.range()[0],R).y})).attr("x2",(function(t){return PD(S(t),C.range()[1],R).x})).attr("y2",(function(t){return PD(S(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=ty.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 PD(S(t),C.range()[1]+g,R).x})).attr("y",(function(t){return PD(S(t),C.range()[1]+g,R).y})).style("text-anchor",(function(t){return SD(S(t)).textAnchor})).style("dominant-baseline",(function(t){return SD(S(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(n){return n.call((function(n){return n.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 PD(S(t),C.range()[1]+g,R).x})).attr("y",(function(t){return PD(S(t),C.range()[1]+g,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_labels_exit",animate:t})})).attr("opacity",0).remove()}))}));var z=ty.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:[N.FILL,N.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",Ot.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:[N.FILL,N.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=ty.appendOrSelect(n,"g.dots").attr("role",a.GROUP),q=W.selectAll("circle").data(this.fullDataNormalized.filter((function(t){return null!==pd.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:[N.FILL],dataGroupName:t[l],originalClassName:pd.kebabCase(t[p])})})).attr("cx",(function(t){return PD(S(t[p]),C(t[d]),R).x})).attr("cy",(function(t){return PD(S(t[p]),C(t[d]),R).y})).attr("r",0).attr("opacity",0).style("fill",(function(t){return P(t[l])}));var Z=ty.appendOrSelect(n,"g.x-axes-rect").attr("role",a.GROUP),Y=Z.selectAll("rect").data(this.uniqueKeys);Y.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("+AD(S(t))+", "+R.x+", "+R.y+")"}));var X=ty.appendOrSelect(n,"g.y-labels").attr("role",a.GROUP),K=X.selectAll("text").data(Pv(A));K.join((function(n){return n.append("text").attr("opacity",0).text((function(t){return t})).attr("x",(function(t){return PD(-Math.PI/2,C(t),R).x+m})).attr("y",(function(t){return PD(-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 PD(-Math.PI/2,C(t),R).x+m})).attr("y",(function(t){return PD(-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()}))}));var $=pd.getProperty(c,"radar","alignment"),Q=this.getAlignmentXOffset($,n,this.getParent());n.attr("x",Q),this.addEventListeners()}},e.prototype.getAlignmentXOffset=function(t,e,n){var r=ty.getSVGElementSize(e,{useBBox:!0}),i=ty.getSVGElementSize(n,{useAttrs:!0}).width,o=0;return t===z.CENTER?o=Math.floor((i-r.width)/2):t===z.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(ut.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(ut.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.addEventListeners=function(){var t=this,e=pd.getProperty(this.getOptions(),"radar").axes.angle;this.parent.selectAll(".x-axes-rect > rect").on("mouseover",(function(n,r){var i=Wm(this);t.services.events.dispatchEvent(ut.Radar.X_AXIS_MOUSEOVER,{event:n,element:i,datum:r});var o=t.parent.select(".x-axes .x-axis-"+pd.kebabCase(r)),a=t.parent.selectAll(".dots circle."+pd.kebabCase(r));o.classed("hovered",!0).attr("stroke-dasharray","4 4"),a.classed("hovered",!0).attr("opacity",1).attr("r",Ot.dotsRadius);var s=t.fullDataNormalized.filter((function(t){return t[e]===r})),u=t.getOptions(),c=u.data.groupMapsTo,l=pd.getProperty(u,"radar","axes","value");t.services.events.dispatchEvent(ut.Tooltip.SHOW,{event:n,hoveredElement:i,items:s.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:[N.TOOLTIP],dataGroupName:e[c]})}}))})})).on("mousemove",(function(e,n){var r=Wm(this);t.services.events.dispatchEvent(ut.Radar.X_AXIS_MOUSEMOVE,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(ut.Tooltip.MOVE,{event:e})})).on("click",(function(e,n){t.services.events.dispatchEvent(ut.Radar.X_AXIS_CLICK,{event:e,element:Wm(this),datum:n})})).on("mouseout",(function(e,n){var r=Wm(this),i=t.parent.select(".x-axes .x-axis-"+pd.kebabCase(n)),o=t.parent.selectAll(".dots circle."+pd.kebabCase(n));i.classed("hovered",!1).attr("stroke-dasharray","0"),o.classed("hovered",!1).attr("opacity",0).attr("r",0),t.services.events.dispatchEvent(ut.Radar.X_AXIS_MOUSEOUT,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(ut.Tooltip.HIDE)}))},e}(RE),UD=function(t){return"object"===typeof t&&"length"in t?t:Array.from(t)};function VD(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 GD=function(t){var e,n,r=0,i=(t=VD(Array.from(t))).length,o=[];while(r<i)e=t[r],n&&FD(n,e)?++r:(n=qD(o=HD(o,e)),r=0);return n};function HD(t,e){var n,r;if(WD(e,t))return[e];for(n=0;n<t.length;++n)if(zD(e,t[n])&&WD(YD(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(zD(YD(t[n],t[r]),e)&&zD(YD(t[n],e),t[r])&&zD(YD(t[r],e),t[n])&&WD(XD(t[n],t[r],e),t))return[t[n],t[r],e];throw new Error}function zD(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 FD(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 WD(t,e){for(var n=0;n<e.length;++n)if(!FD(t,e[n]))return!1;return!0}function qD(t){switch(t.length){case 1:return ZD(t[0]);case 2:return YD(t[0],t[1]);case 3:return XD(t[0],t[1],t[2])}}function ZD(t){return{x:t.x,y:t.y,r:t.r}}function YD(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 XD(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,T=(f*m-p*g)/O,S=x*x+T*T-1,M=2*(o+w*x+E*T),C=w*w+E*E-o*o,A=-(S?(M+Math.sqrt(M*M-4*S*C))/(2*S):C/M);return{x:r+w+x*A,y:i+E+T*A,r:A}}function KD(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 $D(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 QD(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 JD(t){this._=t,this.next=null,this.previous=null}function tR(t){if(!(i=(t=UD(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;KD(n,e,r=t[2]),e=new JD(e),n=new JD(n),r=new JD(r),e.next=r.previous=n,n.next=e.previous=r,r.next=n.previous=e;t:for(s=3;s<i;++s){KD(e._,n._,r=t[s]),r=new JD(r),u=n.next,c=e.previous,l=n._.r,h=e._.r;do{if(l<=h){if($D(u._,r._)){n=u,e.next=n,n.previous=e,--s;continue t}l+=u._.r,u=u.next}else{if($D(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=QD(e);while((r=r.next)!==n)(a=QD(r))<o&&(e=r,o=a);n=e.next}e=[n._],r=n;while((r=r.next)!==n)e.push(r._);for(r=GD(e),s=0;s<i;++s)e=t[s],e.x-=r.x,e.y-=r.y;return r.r}function eR(t){return Math.sqrt(t.value)}var nR=function(){var t=null,e=1,n=1,r=FP;function i(i){return i.x=e/2,i.y=n/2,t?i.eachBefore(rR(t)).eachAfter(iR(r,.5)).eachBefore(oR(1)):i.eachBefore(rR(eR)).eachAfter(iR(FP,1)).eachAfter(iR(r,i.r/Math.min(e,n))).eachBefore(oR(Math.min(e,n)/(2*i.r))),i}return i.radius=function(e){return arguments.length?(t=HP(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:WP(+t),i):r},i};function rR(t){return function(e){e.children||(e.r=Math.max(0,+t(e)||0))}}function iR(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=tR(r),s)for(i=0;i<a;++i)r[i].r-=s;n.r=o+s}}}function oR(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 aR=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),sR=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},uR=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="circle-pack",e.renderType=R.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:pt.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 aR(e,t),e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this.getComponentContainer({withinChartClip:!0}),r=ty.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=pd.getProperty(c,"canvasZoom","enabled");s&&pd.getProperty(a,0,"children")&&(a=pd.getProperty(a,0,"children"));var h=iP({children:a}).sum((function(t){return t.value})).sort((function(t,e){return e.value-t.value})),f=nR().size([i,o]).padding((function(t){return t.depth>=1?pt.padding.children+3:pt.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:[N.FILL,N.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",pt.circles.fillOpacity),!0===l&&this.focal&&(this.services.canvasZoom.zoomIn(this.focal,v,ft),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",pt.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(ut.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(ut.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut)},e.prototype.removeBackgroundListeners=function(){var t=Wm(this.services.domUtils.getMainContainer());t.on("click",(function(){return null}))},e.prototype.setBackgroundListeners=function(){var t=Wm(this.services.domUtils.getMainContainer()),e=this,n=this.parent.selectAll("circle.node"),r=pd.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=Wm(this);r.classed("hovered",!0);var i=t.model.getHierarchyLevel(),o=i>2&&!r.classed("focal"),a=pd.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:Ol(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(ut.Tooltip.SHOW,{event:e,hoveredElement:r,items:sR([{color:f,label:n.data.name,labelIcon:s&&a&&i<=2?t.getZoomIcon():null,value:l}],u,c)})}t.services.events.dispatchEvent(ut.CirclePack.CIRCLE_MOUSEOVER,{event:e,element:r,datum:n})})).on("mousemove",(function(e,n){var r=Wm(this);t.services.events.dispatchEvent(ut.CirclePack.CIRCLE_MOUSEMOVE,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(ut.Tooltip.MOVE,{event:e})})).on("mouseout",(function(e,n){var r=Wm(this);r.classed("hovered",!1),n.children&&t.unhighlightChildren(n.children),t.services.events.dispatchEvent(ut.CirclePack.CIRCLE_MOUSEOUT,{event:e,element:r,datum:n}),t.services.events.dispatchEvent(ut.Tooltip.HIDE,{hoveredElement:r})})).on("click",(function(e,n){var r=Wm(this),i=r.classed("non-focal"),o=pd.getProperty(t.getOptions(),"canvasZoom","enabled")&&t.model.getHierarchyLevel()>2;if(o){var a=t.parent.selectAll("circle.node"),s=Wm(t.services.domUtils.getMainContainer());s.classed("zoomed-in",!1),t.focal=null,t.model.updateHierarchyLevel(2),t.services.canvasZoom.zoomOut(a,ft)}else if(2===n.depth&&n.children&&!i){a=t.parent.selectAll("circle.node"),s=Wm(t.services.domUtils.getMainContainer());s.classed("zoomed-in",!0),t.focal=n,t.model.updateHierarchyLevel(3),t.services.canvasZoom.zoomIn(n,a,ft),e.stopPropagation()}t.services.events.dispatchEvent(ut.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(ut.Legend.ITEM_HOVER,this.handleLegendOnHover),t.removeEventListener(ut.Legend.ITEM_MOUSEOUT,this.handleLegendMouseOut),this.removeBackgroundListeners()},e}(RE),cR=n("2a60"),lR=n.n(cR),hR=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),fR=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="wordcloud",e.renderType=R.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 hR(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener(ut.Legend.ITEM_HOVER,this.handleLegendOnHover),t.addEventListener(ut.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=ty.getSVGElementSize(n,{useAttrs:!0}),h=l.width,f=l.height;if(0!==h&&0!==f){var p=lR()().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=ty.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:[N.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=ty.getHTMLElementSize(this.services.domUtils.getMainContainer()),o=r.length>0,a=o?Pv(r):[1,1];return Nw().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=pd.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(ut.WordCloud.WORD_MOUSEOVER,{event:i,element:Wm(this),datum:o}),n.services.events.dispatchEvent(ut.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:[N.TOOLTIP],dataGroupName:o[e]})}]})})).on("mousemove",(function(t,e){var r=Wm(this);n.services.events.dispatchEvent(ut.WordCloud.WORD_MOUSEMOVE,{element:r,datum:e}),n.services.events.dispatchEvent(ut.Tooltip.MOVE,{event:t})})).on("click",(function(t,e){n.services.events.dispatchEvent(ut.WordCloud.WORD_CLICK,{event:t,element:Wm(this),datum:e})})).on("mouseout",(function(t,e){var i=Wm(this);r(null),n.services.events.dispatchEvent(ut.WordCloud.WORD_MOUSEOUT,{event:t,element:i,datum:e}),n.services.events.dispatchEvent(ut.Tooltip.HIDE,{hoveredElement:i})}))},e}(RE);function pR(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 dR(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 vR(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 gR(t,e){return t.sourceLinks.length?t.depth:e-1}function mR(t){return function(){return t}}function yR(t,e){return bR(t.source,e.source)||t.index-e.index}function _R(t,e){return bR(t.target,e.target)||t.index-e.index}function bR(t,e){return t.y0-e.y0}function OR(t){return t.value}function wR(t){return t.index}function xR(t){return t.nodes}function ER(t){return t.links}function TR(t,e){const n=t.get(e);if(!n)throw new Error("missing: "+e);return n}function SR({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 MR(){let t,e,n,r=0,i=0,o=1,a=1,s=24,u=8,c=wR,l=gR,h=xR,f=ER,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),SR(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=TR(r,t)),"object"!==typeof e&&(e=i.target=TR(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(pR(e.sourceLinks,OR),pR(e.targetLinks,OR)):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=dR(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=vR(e,e=>(a-i-(e.length-1)*t)/pR(e,OR));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)/(dR(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(bR),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(bR),E(i,r)}}function E(e,n){const r=e.length>>1,o=e[r];S(e,o.y0-t,r-1,n),T(e,o.y1+t,r+1,n),S(e,a,e.length-1,n),T(e,i,0,n)}function T(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 S(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(_R);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(_R),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 SR(t),t},d.nodeId=function(t){return arguments.length?(c="function"===typeof t?t:mR(t),d):c},d.nodeAlign=function(t){return arguments.length?(l="function"===typeof t?t:mR(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:mR(t),d):h},d.links=function(t){return arguments.length?(f="function"===typeof t?t:mR(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 CR=Math.PI,AR=2*CR,PR=1e-6,LR=AR-PR;function kR(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function DR(){return new kR}kR.prototype=DR.prototype={constructor:kR,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>PR)if(Math.abs(l*s-u*c)>PR&&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((CR-Math.acos((d+h-v)/(2*g*m)))/2),_=y/m,b=y/g;Math.abs(_-1)>PR&&(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)>PR||Math.abs(this._y1-c)>PR)&&(this._+="L"+u+","+c),n&&(h<0&&(h=h%AR+AR),h>LR?this._+="A"+n+","+n+",0,1,"+l+","+(t-a)+","+(e-s)+"A"+n+","+n+",0,1,"+l+","+(this._x1=u)+","+(this._y1=c):h>PR&&(this._+="A"+n+","+n+",0,"+ +(h>=CR)+","+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 RR=DR,IR=Array.prototype.slice,NR=function(t){return function(){return t}};function jR(t){return t[0]}function BR(t){return t[1]}function UR(t){return t.source}function VR(t){return t.target}function GR(t){var e=UR,n=VR,r=jR,i=BR,o=null;function a(){var a,s=IR.call(arguments),u=e.apply(this,s),c=n.apply(this,s);if(o||(o=a=RR()),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:NR(+t),a):r},a.y=function(t){return arguments.length?(i="function"===typeof t?t:NR(+t),a):i},a.context=function(t){return arguments.length?(o=null==t?null:t,a):o},a}function HR(t,e,n,r,i){t.moveTo(e,n),t.bezierCurveTo(e=(e+r)/2,n,e,i,r,i)}function zR(){return GR(HR)}function FR(t){return[t.source.x1,t.y0]}function WR(t){return[t.target.x0,t.y1]}var qR=function(){return zR().source(FR).target(WR)},ZR=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),YR=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="alluvial",e.renderType=R.SVG,e.gradient_id="gradient-id-"+Math.floor(99999999999*Math.random()),e}return ZR(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=ty.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=pd.getProperty(this.getOptions(),"color","gradient","enabled"),c=wt.minNodePadding;a.alluvial.nodePadding>wt.minNodePadding&&(c=a.alluvial.nodePadding);var l=MR().nodeId((function(t){return t.name})).nodeWidth(wt.nodeWidth).nodePadding(c).extent([[2,30],[i-2,o]]);this.graph=l({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 h={};this.graph.nodes.forEach((function(t){var e,n=t.x0;t.category&&(h[n]=null===(e=t)||void 0===e?void 0:e.category)}));var f=n.append("g").classed("header-arrows",!0).selectAll("g").data(Object.keys(h)).join("g").attr("transform",(function(t){return"translate("+t+", 0)"}));f.append("text").attr("id",(function(t,n){return e.services.domUtils.generateElementIDString("alluvial-category-"+n)})).style("font-size","14px").text((function(t){return h[t]?h[t]:""})).attr("y",20).attr("x",(function(t,n){var r=e.services.domUtils.generateElementIDString("alluvial-category-"+n),i=ty.getSVGElementSize(Wm("text#"+r),{useBBox:!0}).width,o=0;return t+o>=i&&(o=4-i),o}));var p=n.append("g").attr("fill","none").selectAll("g").data(this.graph.links);if(p.exit().remove(),u){var d=pd.getProperty(this.getOptions(),"color","scale");d&&p.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 d[t.source.name]}))})).call((function(t){return t.append("stop").attr("offset","100%").attr("stop-color",(function(t){return d[t.target.name]}))})),p.exit().remove()}p.enter().append("path").classed("link",!0).attr("d",qR()).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:[N.STROKE],dataGroupName:0,originalClassName:"link"}):e.model.getColorClassName({classNameTypes:[N.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",wt.opacity.default).attr("aria-label",(function(t){return t.source.name+" → "+t.target.name+" ("+t.value+(a.alluvial.units?" "+a.alluvial.units:"")+")"}));var v=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+")"}));v.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 g=v.append("g").attr("id",(function(t){return e.services.domUtils.generateElementIDString("alluvial-node-title-"+t.index)}));g.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+")"})),g.append("rect").classed("node-text-bg",!0).attr("width",(function(t,n){var r=e.services.domUtils.generateElementIDString("alluvial-node-text-"+n),i=ty.getSVGElementSize(Wm("text#"+r),{useBBox:!0}).width;return i+8})).attr("height",18).attr("stroke-width",2).lower(),g.attr("transform",(function(t,n){var r=e.services.domUtils.generateElementIDString("alluvial-node-text-"+n),i=ty.getSVGElementSize(Wm("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=pd.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?(Wm(t).lower(),r.style("stroke-opacity",wt.opacity.default)):r.style("stroke-opacity",(function(){return t===this?(Wm(this).raise(),wt.opacity.selected):wt.opacity.unfocus}))}),33);this.parent.selectAll("path.link").on("mouseover",(function(r,i){var o=Wm(this);n(this,"mouseover"),o.classed("link-hovered",!0);var a=getComputedStyle(this).getPropertyValue("stroke");e.services.events.dispatchEvent(ut.Alluvial.LINE_MOUSEOVER,{event:r,element:o,datum:i}),e.services.events.dispatchEvent(ut.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(ut.Alluvial.LINE_MOUSEMOVE,{event:t,element:Wm(this),datum:n}),e.services.events.dispatchEvent(ut.Tooltip.MOVE,{event:t})})).on("click",(function(t,n){e.services.events.dispatchEvent(ut.Alluvial.LINE_CLICK,{event:t,element:Wm(this),datum:n})})).on("mouseout",(function(t,r){var i=Wm(this);n(this,"mouseout"),i.classed("link-hovered",!1),e.services.events.dispatchEvent(ut.Alluvial.LINE_MOUSEOUT,{event:t,element:i,datum:r}),e.services.events.dispatchEvent(ut.Tooltip.HIDE,{event:t,hoveredElement:i})}))},e.prototype.addNodeEventListener=function(){var t=this,e=this,n=pd.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}))?(Wm(this).classed("link-hovered",!0).raise(),wt.opacity.selected):wt.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",wt.opacity.default)}),66);e.parent.selectAll(".node-group").on("mouseover",(function(t,r){var i=Wm(this),o=[];if(e.traverse({link:"sourceLinks",node:"target"},r,o),e.traverse({link:"targetLinks",node:"source"},r,o),o.length){var a=pd.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=pd.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(ut.Alluvial.NODE_MOUSEOVER,{event:t,element:i,datum:r})}})).on("mousemove",(function(t,n){e.services.events.dispatchEvent(ut.Alluvial.NODE_MOUSEMOVE,{event:t,element:Wm(this),datum:n}),e.services.events.dispatchEvent(ut.Tooltip.MOVE,{event:t})})).on("click",(function(t,n){e.services.events.dispatchEvent(ut.Alluvial.NODE_CLICK,{event:t,element:Wm(this),datum:n})})).on("mouseout",(function(t,r){var i=Wm(this),o=pd.getTranformOffsets(i.attr("transform"));if(i.classed("node-hovered",!1).attr("transform","translate("+(o.x+2)+", "+o.y+")").select("rect.node").attr("width",wt.nodeWidth),r.x0-2===0){var a=e.services.domUtils.generateElementIDString("alluvial-node-title-"+r.index),s=e.parent.select("g#"+a),u=pd.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(ut.Alluvial.NODE_MOUSEOUT,{event:t,element:i,datum:r}),e.services.events.dispatchEvent(ut.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="<Transparent Rectangle>" 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}(RE),XR=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),KR=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="spacer",e}return XR(e,t),e.prototype.render=function(){this.getComponentContainer().style("width",(this.configs.size||xt.default.size)+"px").style("height",(this.configs.size||xt.default.size)+"px").attr("opacity",0)},e}(RE),$R=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),QR=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 $R(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=pd.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 pd.getProperty(t,"growth")===Z.STRETCH})).size()},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this.parent,r=ty.getHTMLElementSize(n.node()),i=r.width,o=r.height,a=this.configs.direction===q.ROW||this.configs.direction===q.ROW_REVERSE,s=pd.getProperty(this.model.getOptions(),"style","prefix"),u=n.classed(Ym.prefix+"--"+s+"--layout-row",this.configs.direction===q.ROW).classed(Ym.prefix+"--"+s+"--layout-row-reverse",this.configs.direction===q.ROW_REVERSE).classed(Ym.prefix+"--"+s+"--layout-column",this.configs.direction===q.COLUMN).classed(Ym.prefix+"--"+s+"--layout-column-reverse",this.configs.direction===q.COLUMN_REVERSE).classed(Ym.prefix+"--"+s+"--layout-alignitems-center",this.configs.alignItems===Y.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=Wm(n),o=pd.getProperty(e,"renderType"),a=o===R.SVG;r.setParent(a?ty.appendOrSelect(i,"svg.layout-svg-wrapper").attr("width","100%").attr("height","100%"):i);var s=pd.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=pd.getProperty(t,"growth"),n=pd.getProperty(t,"renderType"),r=n===R.SVG?ty.getSVGElementSize(Wm(this).select("svg.layout-svg-wrapper"),{useBBox:!0}):ty.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=pd.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=pd.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}(RE),JR=function(t){return t},tI=1,eI=2,nI=3,rI=4,iI=1e-6;function oI(t){return"translate("+t+",0)"}function aI(t){return"translate(0,"+t+")"}function sI(t){return e=>+t(e)}function uI(t,e){return e=Math.max(0,t.bandwidth()-2*e)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function cI(){return!this.__axis}function lI(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===tI||t===rI?-1:1,l=t===rI||t===eI?"x":"y",h=t===tI||t===nI?oI:aI;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):JR:i,v=Math.max(o,0)+s,g=e.range(),m=+g[0]+u,y=+g[g.length-1]+u,_=(e.bandwidth?uI:sI)(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"),T=w.select("line"),S=w.select("text");O=O.merge(O.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),w=w.merge(E),T=T.merge(E.append("line").attr("stroke","currentColor").attr(l+"2",c*o)),S=S.merge(E.append("text").attr("fill","currentColor").attr(l,c*v).attr("dy",t===tI?"0em":t===nI?"0.71em":"0.32em")),f!==b&&(O=O.transition(f),w=w.transition(f),T=T.transition(f),S=S.transition(f),x=x.transition(f).attr("opacity",iI).attr("transform",(function(t){return isFinite(t=_(t))?h(t+u):this.getAttribute("transform")})),E.attr("opacity",iI).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===rI||t===eI?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)})),T.attr(l+"2",c*o),S.attr(l,c*v).text(d),b.filter(cI).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===eI?"start":t===rI?"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 hI(t){return lI(tI,t)}function fI(t){return lI(eI,t)}function pI(t){return lI(nI,t)}function dI(t){return lI(rI,t)}var vI=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),gI=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.type="axes",i.renderType=R.SVG,r&&(i.configs=r),i.margins=i.configs.margins,i}return vI(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=pd.getProperty(o,"axes",i,"visible"),u=this.getComponentContainer(),c=ty.getSVGElementSize(u,{useAttrs:!0}),l=c.width,h=c.height,f=ty.appendOrSelect(u,"g.axis."+i);i===j.BOTTOM||i===j.TOP?(n=this.configs.axes[j.LEFT]?this.margins.left:0,r=this.configs.axes[j.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===G.LABELS||this.scaleType===G.LABELS_RATIO?d.rangeRound([n,r]):d.range([n,r]),i){case j.LEFT:p=dI;break;case j.BOTTOM:p=pI;break;case j.RIGHT:p=fI;break;case j.TOP:p=hI;break}f.attr("aria-label",i+" axis");var v=!f.select("g.ticks").empty(),g=ty.appendOrSelect(f,"g.ticks");v||(g.attr("role",a.GRAPHICS_OBJECT+" "+a.GROUP),g.attr("aria-label",i+" ticks"));var m=ty.appendOrSelect(f,"g.ticks.invisible").style("opacity","0").style("pointer-events","none").attr("aria-hidden",!0).attr("aria-label","invisible "+i+" ticks"),y=pd.getProperty(o,"axes",i),_=this.scaleType===G.TIME||y.scaleType===G.TIME,b=i===j.LEFT||i===j.RIGHT,O=this.model.get("zoomDomain");if(O&&_&&!b&&d.domain(O),s){var w=pd.getProperty(y,"scaleType"),x=pd.getProperty(o,"data","loading"),E=pd.getProperty(y,"ticks","number"),T=pd.getProperty(y,"ticks","values"),S=pd.getProperty(y,"truncation","type"),M=pd.getProperty(y,"truncation","threshold"),C=pd.getProperty(y,"truncation","numCharacter"),A=null!==E,P=pd.getProperty(o,"timeScale"),L=ty.appendOrSelect(m,"g.tick"),k=ty.appendOrSelect(L,"text").text("0"),D=ty.getSVGElementSize(k.node(),{useBBox:!0}).height;L.remove();var R,I=this.scaleType||y.scaleType||G.LINEAR,N=p(d).tickSizeOuter(0);if(d.ticks){var B=void 0;if(A?B=E:(B=ht.ticks.number,b&&(B=this.getNumberOfFittingTicks(h,D,ht.ticks.verticalSpaceRatio))),1===d.ticks().length&&0===d.ticks()[0]&&(B=0),N.ticks(B),_)if(d.ticks(B).length){var V=pd.getProperty(o,"timeScale","addSpaceOnEdges"),H=pd.getProperty(o,"axes",i,"domain"),z=void 0,F=d.copy();V&&!H&&F.nice(B),z=F.ticks(B),V&&z.length>2&&!H&&(z.splice(z.length-1,1),z.splice(0,1)),N.tickValues(z)}else N.tickValues([])}var W=pd.getProperty(y,"ticks","formatter");if(_){var q=hC(N.tickValues());R=null===W?function(t,e){return sC(t,e,N.tickValues(),q,P)}:function(t,e){var n=sC(t,e,N.tickValues(),q,P);return W(t,e,n)}}else null===W?I===G.LINEAR&&(R=function(t){return t.toLocaleString()}):R=W;N.tickFormat(R);var Z,Y=this.services.cartesianScales.getScaleByPosition(i).domain(),X=Y[0],K=Y[1];if(T){if(_)T.forEach((function(t,e){void 0===t.getTime&&(T[e]=new Date(t))})),Z=T.filter((function(t){var e=t.getTime();return e>=new Date(X).getTime()&&e<=new Date(K).getTime()}));else if(w===G.LABELS){var $=this.services.cartesianScales.getScaleByPosition(i).domain();Z=T.filter((function(t){return $.includes(t)}))}else Z=T.filter((function(t){return t>=X&&t<=K}));N.tickValues(Z)}switch(i){case j.LEFT:g.attr("transform","translate("+this.margins.left+", 0)");break;case j.BOTTOM:g.attr("transform","translate(0, "+(h-this.margins.bottom)+")");break;case j.RIGHT:g.attr("transform","translate("+(l-this.margins.right)+", 0)");break;case j.TOP:g.attr("transform","translate(0, "+this.margins.top+")");break}var Q=this.model.isDataEmpty();if(y.title){var J=ty.appendOrSelect(f,"text.axis-title").html(Q||x?"":y.title),tt=pd.getProperty(y,"titleOrientation");switch(i){case j.LEFT:tt===ot.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 j.BOTTOM:J.attr("transform","translate("+(this.margins.left/2+d.range()[1]/2)+", "+(h+4)+")").style("text-anchor","middle");break;case j.RIGHT:tt===ot.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 j.TOP:var et=ty.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 rt=hC(N.tickValues()),it=P.showDayName,at=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=at.selectAll(".tick").data(N.tickValues(),d).order().select("text");st.style("font-weight",(function(t,e){return aC(t,e,N.tickValues(),rt,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===j.BOTTOM||i===j.TOP){var ut=!1,ct=pd.getProperty(y,"ticks","rotation");if(ct===nt.ALWAYS)ut=!0;else if(ct===nt.NEVER)ut=!1;else if(!ct||ct===nt.AUTO)if(d.step){var lt=m.selectAll("g.tick text").nodes();ut=lt.some((function(t){return ty.getSVGElementSize(t,{useBBox:!0}).width>=d.step()}))}else{ut=!1;var ft,pt=m.append("text").text("A"),dt=ty.getSVGElementSize(pt.node(),{useBBox:!0}).width;m.selectAll("g.tick").each((function(){var t=Wm(this),e=parseFloat(pd.getProperty(pd.getTranslationValues(this),"tx"));null!==e&&ft+t.text().length*dt*.8>=e&&(ut=!0),ft=e}))}ut?(A||(N.ticks(this.getNumberOfFittingTicks(l,D,ht.ticks.horizontalSpaceRatio)),m.call(N),g.call(N)),f.selectAll("g.ticks g.tick text").attr("transform","rotate(-45)").style("text-anchor",i===j.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})),S!==U.NONE&&w===G.LABELS&&!T){var vt=this.services.cartesianScales.getScaleDomain(i);if(vt.length>0){var gt=u.select("g.axis."+i+" g.ticks g.tick").html();f.selectAll("g.ticks g.tick").html(gt),f.selectAll("g.tick text").data(vt).text((function(t){return t.length>M?pd.truncateLabel(t,S,C):t})),this.getInvisibleAxisRef().selectAll("g.tick text").data(vt).text((function(t){return t.length>M?pd.truncateLabel(t,S,C):t})),f.selectAll("g.ticks").html(this.getInvisibleAxisRef().html()),f.selectAll("g.tick text").data(vt)}}this.addEventListeners()}else g.attr("aria-hidden",!0)},e.prototype.addEventListeners=function(){var t=this.getComponentContainer(),e=this.configs.position,n=ty.appendOrSelect(t,"g.axis."+e),r=this.getOptions(),i=pd.getProperty(r,"axes",e),o=pd.getProperty(i,"scaleType"),a=pd.getProperty(i,"truncation","threshold"),s=(this.scaleType===G.TIME||(i.scaleType,G.TIME),this);n.selectAll("g.tick text").on("mouseover",(function(t,e){s.services.events.dispatchEvent(ut.Axis.LABEL_MOUSEOVER,{event:t,element:Wm(this),datum:e}),o===G.LABELS&&e.length>a&&s.services.events.dispatchEvent(ut.Tooltip.SHOW,{event:t,hoveredElement:Wm(this),content:e})})).on("mousemove",(function(t,e){s.services.events.dispatchEvent(ut.Axis.LABEL_MOUSEMOVE,{event:t,element:Wm(this),datum:e}),o===G.LABELS&&e.length>a&&s.services.events.dispatchEvent(ut.Tooltip.MOVE,{event:t})})).on("click",(function(t,e){s.services.events.dispatchEvent(ut.Axis.LABEL_CLICK,{event:t,element:Wm(this),datum:e})})).on("mouseout",(function(t,e){s.services.events.dispatchEvent(ut.Axis.LABEL_MOUSEOUT,{event:t,element:Wm(this),datum:e}),o===G.LABELS&&s.services.events.dispatchEvent(ut.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 pd.clamp(r,2,ht.ticks.number)},e.prototype.destroy=function(){var t=this.getComponentContainer(),e=this.configs.position,n=ty.appendOrSelect(t,"g.axis."+e);n.selectAll("g.tick text").on("mouseover",null).on("mousemove",null).on("mouseout",null)},e}(RE),mI=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),yI=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="2D-axes",e.renderType=R.SVG,e.children={},e.thresholds=[],e.margins={top:0,right:0,bottom:0,left:0},e}return mI(e,t),e.prototype.render=function(t){var e=this;void 0===t&&(t=!1);var n={},r=Object.keys(j),i=pd.getProperty(this.getOptions(),"axes");r.forEach((function(t){var e=i[j[t]];e&&(n[j[t]]=!0)})),this.configs.axes=n,r.forEach((function(t){var n=j[t];if(e.configs.axes[n]&&!e.children[n]){var r=new gI(e.model,e.services,{position:n,axes:e.configs.axes,margins:e.margins});r.setModel(e.model),r.setServices(e.services),r.setParent(e.parent),e.children[n]=r}})),Object.keys(this.children).forEach((function(n){var r=e.children[n];r.render(t)}));var o={};Object.keys(this.children).forEach((function(t){var n,r=e.children[t],i=r.configs.position,a=r.getInvisibleAxisRef(),s=ty.getSVGElementSize(a,{useBBox:!0}),u=s.width,c=s.height;switch(r.getTitleRef().empty()?n=0:(n=ty.getSVGElementSize(r.getTitleRef(),{useBBox:!0}).height,i!==j.LEFT&&i!==j.RIGHT||(n+=5)),i){case j.TOP:o.top=c+n;break;case j.BOTTOM:o.bottom=c+n;break;case j.LEFT:o.left=u+n;break;case j.RIGHT:o.right=u+n;break}}));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(ut.ZoomBar.UPDATE),Object.keys(this.children).forEach((function(t){var n=e.children[t];n.margins=e.margins})),this.render(!0))},e}(RE),_I={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 OI(r)}function OI(t){this._=t}function wI(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 xI(t,e){for(var n,r=0,i=t.length;r<i;++r)if((n=t[r]).name===e)return n.value}function EI(t,e,n){for(var r=0,i=t.length;r<i;++r)if(t[r].name===e){t[r]=_I,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=n&&t.push({name:e,value:n}),t}OI.prototype=bI.prototype={constructor:OI,on:function(t,e){var n,r=this._,i=wI(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]=EI(r[n],t.name,e);else if(null==e)for(n in r)r[n]=EI(r[n],t.name,null);return this}while(++o<a)if((n=(t=i[o]).type)&&(n=xI(r[n],t.name)))return n},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new OI(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 TI=bI;const SI={capture:!0,passive:!1};var MI=function(t){t.preventDefault(),t.stopImmediatePropagation()},CI=function(t){var e=t.document.documentElement,n=Wm(t).on("dragstart.drag",MI,SI);"onselectstart"in e?n.on("selectstart.drag",MI,SI):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")};function AI(t,e){var n=t.document.documentElement,r=Wm(t).on("dragstart.drag",null);e&&(r.on("click.drag",MI,SI),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 PI,LI,kI=0,DI=0,RI=0,II=1e3,NI=0,jI=0,BI=0,UI="object"===typeof performance&&performance.now?performance:Date,VI="object"===typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function GI(){return jI||(VI(HI),jI=UI.now()+BI)}function HI(){jI=0}function zI(){this._call=this._time=this._next=null}function FI(t,e,n){var r=new zI;return r.restart(t,e,n),r}function WI(){GI(),++kI;var t,e=PI;while(e)(t=jI-e._time)>=0&&e._call.call(void 0,t),e=e._next;--kI}function qI(){jI=(NI=UI.now())+BI,kI=DI=0;try{WI()}finally{kI=0,YI(),jI=0}}function ZI(){var t=UI.now(),e=t-NI;e>II&&(BI-=e,NI=t)}function YI(){var t,e,n=PI,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:PI=e);LI=t,XI(r)}function XI(t){if(!kI){DI&&(DI=clearTimeout(DI));var e=t-jI;e>24?(t<1/0&&(DI=setTimeout(qI,t-UI.now()-BI)),RI&&(RI=clearInterval(RI))):(RI||(NI=UI.now(),RI=setInterval(ZI,II)),kI=1,VI(qI))}}zI.prototype=FI.prototype={constructor:zI,restart:function(t,e,n){if("function"!==typeof t)throw new TypeError("callback is not a function");n=(null==n?GI():+n)+(null==e?0:+e),this._next||LI===this||(LI?LI._next=this:PI=this,LI=this),this._call=t,this._time=n,XI()},stop:function(){this._call&&(this._call=null,this._time=1/0,XI())}};var KI=function(t,e,n){var r=new zI;return e=null==e?0:+e,r.restart(n=>{r.stop(),t(n+e)},e,n),r},$I=TI("start","end","cancel","interrupt"),QI=[],JI=0,tN=1,eN=2,nN=3,rN=4,iN=5,oN=6,aN=function(t,e,n,r,i,o){var a=t.__transition;if(a){if(n in a)return}else t.__transition={};lN(t,n,{name:e,index:r,group:i,on:$I,tween:QI,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:JI})};function sN(t,e){var n=cN(t,e);if(n.state>JI)throw new Error("too late; already scheduled");return n}function uN(t,e){var n=cN(t,e);if(n.state>nN)throw new Error("too late; already running");return n}function cN(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function lN(t,e,n){var r,i=t.__transition;function o(t){n.state=tN,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!==tN)return u();for(c in i)if(f=i[c],f.name===n.name){if(f.state===nN)return KI(a);f.state===rN?(f.state=oN,f.timer.stop(),f.on.call("interrupt",t,t.__data__,f.index,f.group),delete i[c]):+c<e&&(f.state=oN,f.timer.stop(),f.on.call("cancel",t,t.__data__,f.index,f.group),delete i[c])}if(KI((function(){n.state===nN&&(n.state=rN,n.timer.restart(s,n.delay,n.time),s(o))})),n.state=eN,n.on.call("start",t,t.__data__,n.index,n.group),n.state===eN){for(n.state=nN,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=iN,1),o=-1,a=r.length;while(++o<a)r[o].call(t,i);n.state===iN&&(n.on.call("end",t,t.__data__,n.index,n.group),u())}function u(){for(var r in n.state=oN,n.timer.stop(),delete i[e],i)return;delete t.__transition}i[e]=n,n.timer=FI(o,0,n.time)}var hN,fN=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>eN&&n.state<iN,n.state=oN,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}},pN=function(t){return this.each((function(){fN(this,t)}))},dN=180/Math.PI,vN={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},gN=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 mN(t){const e=new("function"===typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?vN:gN(e.a,e.b,e.c,e.d,e.e,e.f)}function yN(t){return null==t?vN:(hN||(hN=document.createElementNS("http://www.w3.org/2000/svg","g")),hN.setAttribute("transform",t),(t=hN.transform.baseVal.consolidate())?(t=t.matrix,gN(t.a,t.b,t.c,t.d,t.e,t.f)):vN)}function _N(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:MO(t,i)},{i:u-2,x:MO(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:MO(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:MO(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:MO(t,n)},{i:s-2,x:MO(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=_N(mN,"px, ","px)","deg)"),ON=_N(yN,", ",")",")");function wN(t,e){var n,r;return function(){var i=uN(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 xN(t,e,n){var r,i;if("function"!==typeof n)throw new Error;return function(){var o=uN(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 EN=function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r,i=cN(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?wN:xN)(n,t,e))};function TN(t,e,n){var r=t._id;return t.each((function(){var t=uN(this,r);(t.value||(t.value={}))[e]=n.apply(this,arguments)})),function(t){return cN(t,r).value[e]}}var SN=function(t,e){var n;return("number"===typeof e?MO:e instanceof Jb?OO:(n=Jb(e))?(e=n,OO):DO)(t,e)};function MN(t){return function(){this.removeAttribute(t)}}function CN(t){return function(){this.removeAttributeNS(t.space,t.local)}}function AN(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 PN(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 LN(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 DN=function(t,e){var n=Dg(t),r="transform"===n?ON:SN;return this.attrTween(t,"function"===typeof e?(n.local?kN:LN)(n,r,TN(this,"attr."+t,e)):null==e?(n.local?CN:MN)(n):(n.local?PN:AN)(n,r,e))};function RN(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function IN(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function NN(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&IN(t,i)),n}return i._value=e,i}function jN(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&RN(t,i)),n}return i._value=e,i}var BN=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=Dg(t);return this.tween(n,(r.local?NN:jN)(r,e))};function UN(t,e){return function(){sN(this,t).delay=+e.apply(this,arguments)}}function VN(t,e){return e=+e,function(){sN(this,t).delay=e}}var GN=function(t){var e=this._id;return arguments.length?this.each(("function"===typeof t?UN:VN)(e,t)):cN(this.node(),e).delay};function HN(t,e){return function(){uN(this,t).duration=+e.apply(this,arguments)}}function zN(t,e){return e=+e,function(){uN(this,t).duration=e}}var FN=function(t){var e=this._id;return arguments.length?this.each(("function"===typeof t?HN:zN)(e,t)):cN(this.node(),e).duration};function WN(t,e){if("function"!==typeof e)throw new Error;return function(){uN(this,t).ease=e}}var qN=function(t){var e=this._id;return arguments.length?this.each(WN(e,t)):cN(this.node(),e).ease};function ZN(t,e){return function(){var n=e.apply(this,arguments);if("function"!==typeof n)throw new Error;uN(this,t).ease=n}}var YN=function(t){if("function"!==typeof t)throw new Error;return this.each(ZN(this._id,t))},XN=function(t){"function"!==typeof t&&(t=Jv(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 Ej(r,this._parents,this._name,this._id)},KN=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 Ej(a,this._parents,this._name,this._id)};function $N(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 QN(t,e,n){var r,i,o=$N(e)?sN:uN;return function(){var a=o(this,t),s=a.on;s!==r&&(i=(r=s).copy()).on(e,n),a.on=i}}var JN=function(t,e){var n=this._id;return arguments.length<2?cN(this.node(),n).on.on(t):this.each(QN(n,t,e))};function tj(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}var ej=function(){return this.on("end.remove",tj(this._id))},nj=function(t){var e=this._name,n=this._id;"function"!==typeof t&&(t=qv(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,aN(h[f],e,n,f,h,cN(s,n)));return new Ej(o,this._parents,e,n)},rj=function(t){var e=this._name,n=this._id;"function"!==typeof t&&(t=Kv(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=cN(u,n),v=0,g=p.length;v<g;++v)(f=p[v])&&aN(f,e,n,v,p,d);o.push(p),a.push(u)}return new Ej(o,a,e,n)},ij=Fm.prototype.constructor,oj=function(){return new ij(this._groups,this._parents)};function aj(t,e){var n,r,i;return function(){var o=qg(this,t),a=(this.style.removeProperty(t),qg(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 uj(t,e,n){var r,i,o=n+"";return function(){var a=qg(this,t);return a===o?null:a===r?i:i=e(r=a,n)}}function cj(t,e,n){var r,i,o;return function(){var a=qg(this,t),s=n(this),u=s+"";return null==s&&(this.style.removeProperty(t),u=s=qg(this,t)),a===u?null:a===r&&u===i?o:(i=u,o=e(r=a,s))}}function lj(t,e){var n,r,i,o,a="style."+e,s="end."+a;return function(){var u=uN(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 hj=function(t,e,n){var r="transform"===(t+="")?bN:SN;return null==e?this.styleTween(t,aj(t,r)).on("end.style."+t,sj(t)):"function"===typeof e?this.styleTween(t,cj(t,r,TN(this,"style."+t,e))).each(lj(this._id,t)):this.styleTween(t,uj(t,r,e),n).on("end.style."+t,null)};function fj(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function pj(t,e,n){var r,i;function o(){var o=e.apply(this,arguments);return o!==i&&(r=(i=o)&&fj(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,pj(t,e,null==n?"":n))};function vj(t){return function(){this.textContent=t}}function gj(t){return function(){var e=t(this);this.textContent=null==e?"":e}}var mj=function(t){return this.tween("text","function"===typeof t?gj(TN(this,"text",t)):vj(null==t?"":t+""))};function yj(t){return function(e){this.textContent=t.call(this,e)}}function _j(t){var e,n;function r(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&yj(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,_j(t))},Oj=function(){for(var t=this._name,e=this._id,n=Sj(),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=cN(a,e);aN(a,t,n,c,s,{time:l.time+l.delay+l.duration,delay:0,duration:l.duration,ease:l.ease})}return new Ej(r,this._parents,t,n)},wj=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=uN(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()}))},xj=0;function Ej(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function Tj(t){return Fm().transition(t)}function Sj(){return++xj}var Mj=Fm.prototype;Ej.prototype=Tj.prototype={constructor:Ej,select:nj,selectAll:rj,selectChild:Mj.selectChild,selectChildren:Mj.selectChildren,filter:XN,merge:KN,selection:oj,transition:Oj,call:Mj.call,nodes:Mj.nodes,node:Mj.node,size:Mj.size,empty:Mj.empty,each:Mj.each,on:JN,attr:DN,attrTween:BN,style:hj,styleTween:dj,text:mj,textTween:bj,remove:ej,tween:EN,delay:GN,duration:FN,ease:qN,easeVarying:YN,end:wj,[Symbol.iterator]:Mj[Symbol.iterator]};var Cj={time:null,delay:0,duration:250,ease:ct};function Aj(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 Pj=function(t){var e,n;t instanceof Ej?(e=t._id,t=t._name):(e=Sj(),(n=Cj).time=GI(),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])&&aN(a,t,e,c,s,n||Aj(a,e));return new Ej(r,this._parents,t,e)};Fm.prototype.interrupt=pN,Fm.prototype.transition=Pj;var Lj=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 Dj(t){t.stopImmediatePropagation()}var Rj=function(t){t.preventDefault(),t.stopImmediatePropagation()},Ij={name:"drag"},Nj={name:"space"},jj={name:"handle"},Bj={name:"center"};const{abs:Uj,max:Vj,min:Gj}=Math;function Hj(t){return[+t[0],+t[1]]}function zj(t){return[Hj(t[0]),Hj(t[1])]}var Fj={name:"x",handles:["w","e"].map($j),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]]}},Wj={name:"y",handles:["n","s"].map($j),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]]}},qj=(["n","w","e","s","nw","ne","sw","se"].map($j),{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"}),Zj={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},Yj={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},Xj={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},Kj={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function $j(t){return{type:t}}function Qj(t){return!t.ctrlKey&&!t.button}function Jj(){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 tB(){return navigator.maxTouchPoints||"ontouchstart"in this}function eB(t){while(!t.__brush)if(!(t=t.parentNode))return;return t.__brush}function nB(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}function rB(){return iB(Fj)}function iB(t){var e,n=Jj,r=Qj,i=tB,o=!0,a=TI("start","brush","end"),s=6;function u(e){var n=e.property("__brush",v).selectAll(".overlay").data([$j("overlay")]);n.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",qj.overlay).merge(n).each((function(){var t=eB(this).extent;Wm(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([$j("selection")]).enter().append("rect").attr("class","selection").attr("cursor",qj.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 qj[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=Wm(this),e=eB(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":_)?Ij:o&&n.altKey?Bj:jj,O=t===Wj?null:Xj[_],w=t===Fj?null:Kj[_],x=eB(y),E=x.extent,T=x.selection,S=E[0][0],M=E[0][1],C=E[1][0],A=E[1][1],P=0,L=0,k=O&&w&&o&&n.shiftKey,D=Array.from(n.touches||[n],t=>{const e=t.identifier;return t=gd(t,y),t.point0=t.slice(),t.identifier=e,t});fN(y);var R=l(y,arguments,!0).beforestart();if("overlay"===_){T&&(v=!0);const e=[D[0],D[1]||D[0]];x.selection=T=[[i=t===Wj?S:Gj(e[0][0],e[1][0]),s=t===Fj?M:Gj(e[0][1],e[1][1])],[h=t===Wj?C:Vj(e[0][0],e[1][0]),p=t===Fj?A:Vj(e[0][1],e[1][1])]],D.length>1&&U(n)}else i=T[0][0],s=T[0][1],h=T[1][0],p=T[1][1];a=i,u=s,f=h,d=p;var I=Wm(y).attr("pointer-events","none"),N=I.selectAll(".overlay").attr("cursor",qj[_]);if(n.touches)R.moved=B,R.ended=V;else{var j=Wm(n.view).on("mousemove.brush",B,!0).on("mouseup.brush",V,!0);o&&j.on("keydown.brush",G,!0).on("keyup.brush",H,!0),CI(n.view)}c.call(y),R.start(n,b.name)}function B(t){for(const e of t.changedTouches||[t])for(const t of D)t.identifier===e.identifier&&(t.cur=gd(e,y));if(k&&!g&&!m&&1===D.length){const t=D[0];Uj(t.cur[0]-t[0])>Uj(t.cur[1]-t[1])?m=!0:g=!0}for(const e of D)e.cur&&(e[0]=e.cur[0],e[1]=e.cur[1]);v=!0,Rj(t),U(t)}function U(t){const e=D[0],n=e.point0;var r;switch(P=e[0]-n[0],L=e[1]-n[1],b){case Nj:case Ij:O&&(P=Vj(S-i,Gj(C-h,P)),a=i+P,f=h+P),w&&(L=Vj(M-s,Gj(A-p,L)),u=s+L,d=p+L);break;case jj:D[1]?(O&&(a=Vj(S,Gj(C,D[0][0])),f=Vj(S,Gj(C,D[1][0])),O=1),w&&(u=Vj(M,Gj(A,D[0][1])),d=Vj(M,Gj(A,D[1][1])),w=1)):(O<0?(P=Vj(S-i,Gj(C-i,P)),a=i+P,f=h):O>0&&(P=Vj(S-h,Gj(C-h,P)),a=i,f=h+P),w<0?(L=Vj(M-s,Gj(A-s,L)),u=s+L,d=p):w>0&&(L=Vj(M-p,Gj(A-p,L)),u=s,d=p+L));break;case Bj:O&&(a=Vj(S,Gj(C,i-P*O)),f=Vj(S,Gj(C,h+P*O))),w&&(u=Vj(M,Gj(A,s-L*w)),d=Vj(M,Gj(A,p+L*w)));break}f<a&&(O*=-1,r=i,i=h,h=r,r=a,a=f,f=r,_ in Zj&&N.attr("cursor",qj[_=Zj[_]])),d<u&&(w*=-1,r=s,s=p,p=r,r=u,u=d,d=r,_ in Yj&&N.attr("cursor",qj[_=Yj[_]])),x.selection&&(T=x.selection),g&&(a=T[0][0],f=T[1][0]),m&&(u=T[0][1],d=T[1][1]),T[0][0]===a&&T[0][1]===u&&T[1][0]===f&&T[1][1]===d||(x.selection=[[a,u],[f,d]],c.call(y),R.brush(t,b.name))}function V(t){if(Dj(t),t.touches){if(t.touches.length)return;e&&clearTimeout(e),e=setTimeout((function(){e=null}),500)}else AI(t.view,v),j.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);I.attr("pointer-events","all"),N.attr("cursor",qj.overlay),x.selection&&(T=x.selection),nB(T)&&(x.selection=null,c.call(y)),R.end(t,b.name)}function G(t){switch(t.keyCode){case 16:k=O&&w;break;case 18:b===jj&&(O&&(h=f-P*O,i=a+P*O),w&&(p=d-L*w,s=u+L*w),b=Bj,U(t));break;case 32:b!==jj&&b!==Bj||(O<0?h=f-P:O>0&&(i=a-P),w<0?p=d-L:w>0&&(s=u-L),b=Nj,N.attr("cursor",qj.selection),U(t));break;default:return}Rj(t)}function H(t){switch(t.keyCode){case 16:k&&(g=m=k=!1,U(t));break;case 18:b===Bj&&(O<0?h=f:O>0&&(i=a),w<0?p=d:w>0&&(s=u),b=jj,U(t));break;case 32:b===Nj&&(t.altKey?(O&&(h=f-P*O,i=a+P*O),w&&(p=d-L*w,s=u+L*w),b=Bj):(O<0?h=f:O>0&&(i=a),w<0?p=d:w>0&&(s=u),b=jj),N.attr("cursor",qj[_]),U(t));break;default:return}Rj(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=zj(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=RO(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();fN(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=Wm(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:Lj(zj(t)),u):n},u.filter=function(t){return arguments.length?(r="function"===typeof t?t:Lj(!!t),u):r},u.touchable=function(t){return arguments.length?(i="function"===typeof t?t:Lj(!!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 oB=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),aB=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="grid-brush",e.renderType=R.SVG,e.selectionSelector="rect.selection",e.frontSelectionSelector="rect.frontSelection",e}return oB(e,t),e.prototype.render=function(t){var n=this;void 0===t&&(t=!0);var r=this.parent,i=this.getComponentContainer(),o=ty.appendOrSelect(r,"svg.chart-grid-backdrop"),a=ty.appendOrSelect(o,"g."+this.type),s=ty.appendOrSelect(a,this.selectionSelector),u=ty.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=ty.appendOrSelect(i,this.frontSelectionSelector);if(p&&f===G.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=$O().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=rB().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=gd(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}(RE),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)}}(),uB=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="grid",e.renderType=R.SVG,e}return sB(e,t),e.prototype.render=function(t){void 0===t&&(t=!0);var e=pd.getProperty(this.getOptions(),"grid","x","enabled"),n=pd.getProperty(this.getOptions(),"grid","y","enabled");this.drawBackdrop(e,n),(e||n)&&(e&&(ty.appendOrSelect(this.backdrop,"g.x.grid"),this.drawXGrid(t)),n&&(ty.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=pI(i).tickSizeInner(-r).tickSizeOuter(0),a=pd.getProperty(this.getOptions(),"grid","x","alignWithAxisTicks");if(a){var s=this.services.cartesianScales.getDomainAxisPosition(),u=pd.getProperty(this.getOptions(),"axes",s,"ticks","values");u&&o.tickValues(u)}else{var c=pd.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=dI(i).tickSizeInner(-r).tickSizeOuter(0),a=pd.getProperty(this.getOptions(),"grid","y","alignWithAxisTicks");if(a){var s=this.services.cartesianScales.getRangeAxisPosition(),u=pd.getProperty(this.getOptions(),"axes",s,"ticks","values");u&&o.tickValues(u)}else{var c=pd.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(pd.getTranslationValues(t).tx)-Number(pd.getTranslationValues(e).tx)})),i=-1;if(r.length){r.forEach((function(e,n){t[0]>=+pd.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=+pd.getTranslationValues(s).tx-+pd.getTranslationValues(a).tx;else{var u=n.select("rect.chart-grid-backdrop").node(),c=ty.getSVGElementSize(u).width;o=c-+pd.getTranslationValues(a).tx}else o=+pd.getTranslationValues(s).tx;var l=this.getOptions().tooltip.gridline.threshold;return o*l}},e.prototype.getActiveGridline=function(t){var e=pd.getProperty(this.getOptions,"tooltip","gridline","threshold"),n=e||this.getGridlineThreshold(t),r=this.parent,i=r.selectAll(".x.grid .tick").filter((function(){var e=pd.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=ty.appendOrSelect(n,"svg.chart-grid-backdrop");var h=ty.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}(RE),cB=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),lB=5;function hB(t,e){return t>e-lB&&t<e+lB}var fB=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="ruler",e.renderType=R.SVG,e.isXGridEnabled=pd.getProperty(e.getOptions(),"grid","x","enabled"),e.isYGridEnabled=pd.getProperty(e.getOptions(),"grid","y","enabled"),e.isEventListenerAdded=!1,e}return cB(e,t),e.prototype.render=function(){var t=pd.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===V.HORIZONTAL?i:r,p=ty.appendOrSelect(o,"g.ruler").attr("aria-label","ruler"),d=ty.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 hB(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(ut.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&&!pd.isEqual(this.elementsToHighlight,b)&&this.hideRuler(),b.dispatch("mouseover"),this.elementsToHighlight=b,this.services.events.dispatchEvent(ut.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=ty.appendOrSelect(t,"g.ruler"),n=t.selectAll("[role=graphics-symbol]");n.dispatch("mouseout"),this.services.events.dispatchEvent(ut.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=gd(e,t.parent.node());t.showRuler(e,n)};if(n.length>100){var i=n.length%50*12.5;r=pd.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=ty.appendOrSelect(t,"svg.chart-grid-backdrop")},e}(RE),pB=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return 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},vB=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="ruler-binned",e.renderType=R.SVG,e}return pB(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===V.VERTICAL?r:i),d=ty.appendOrSelect(o,"g.ruler").attr("aria-label","ruler"),v=ty.appendOrSelect(d,"line.ruler-line"),g=o.selectAll("[role=graphics-symbol]"),m=g.filter((function(t){if(parseFloat(Ol(t,"data.x0"))<=p&&parseFloat(Ol(t,"data.x1"))>=p)return!0}));if(m.size()>0){this.elementsToHighlight&&this.elementsToHighlight.size()>0&&!pd.isEqual(this.elementsToHighlight,m)&&this.hideRuler(),m.dispatch("mouseover"),this.elementsToHighlight=m;var y=Wm(m.nodes()[0]).datum(),_=parseFloat(Ol(y,"data.x0")),b=parseFloat(Ol(y,"data.x1")),O=this.model.getActiveDataGroupNames(),w=O.reverse().map((function(t){return{label:t,value:Ol(y,"data."+t),class:n.model.getColorClassName({classNameTypes:[N.TOOLTIP],dataGroupName:t})}})).filter((function(t){return 0!==t.value})),x=w.length>0;if(x){this.services.events.dispatchEvent(ut.Tooltip.SHOW,{mousePosition:[r,i],hoveredElement:v,items:dB([{label:Ol(a,"bins.rangeLabel")||"Range",value:_+" – "+b}],w,!0===pd.getProperty(a,"tooltip","showTotal")?[{label:Ol(a,"tooltip.totalLabel")||"Total",value:O.reduce((function(t,e){return t+parseFloat(Ol(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}(fB),gB=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),mB=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return gB(e,t),e.prototype.formatTooltipData=function(t){return t.reverse()},e}(fB),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)}}(),_B=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="toolbar",e.renderType=R.HTML,e}return yB(e,t),e.prototype.init=function(){var t=this,e=function(){return t.updateOverflowMenu(!1)};this.services.events.addEventListener(ut.Toolbar.SHOW_OVERFLOW_MENU,(function(){t.renderOverflowMenu(),document.body.addEventListener("click",e)})),this.services.events.addEventListener(ut.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"),r=pd.getProperty(this.getOptions(),"data","loading");if(r)n.html("");else{this.overflowMenu||(this.overflowMenu=n.append("div").attr("class","bx--overflow-menu-options bx--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 bx--overflow-menu").attr("role","button"),c=this;u.merge(s).classed("disabled",(function(t){return!!t.shouldBeDisabled&&t.shouldBeDisabled()})).attr("aria-disabled",(function(t){return!!t.shouldBeDisabled&&t.shouldBeDisabled()})).attr("aria-label",(function(t){return t.title})).html((function(t){return'\n\t\t\t<button\n\t\t\t\tclass="bx--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.iconWidth?t.iconWidth:"20px")+"; height: "+(void 0!==t.iconWidth?t.iconHeight:"20px")+'" xmlns="http://www.w3.org/2000/svg" class="bx--overflow-menu__icon" viewBox="0 0 32 32" aria-hidden="true">\n\t\t\t\t\t'+t.iconSVGContent+"\n\t\t\t\t</svg>\n\t\t\t</button>"})).each((function(t,e){Wm(this).select("button").on("click",t.shouldBeDisabled()?null:t.clickFunction).on("keydown",(function(n){n.key&&"Enter"===n.key||" "===n.key?(n.preventDefault(),t.clickFunction()):n.key&&"ArrowLeft"===n.key?c.focusOnPreviousEnabledToolbarItem(e):n.key&&"ArrowRight"===n.key&&c.focusOnNextEnabledToolbarItem(e)}))}));this.overflowButton=this.getComponentContainer().select("button.bx--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.bx--overflow-menu-options__option").data(e,(function(t){return pd.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","bx--overflow-menu-options__option").attr("role","menuitem");r.append("button").attr("class","bx--overflow-menu-options__btn"),r.merge(n).classed("bx--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.classed("is-open",t),this.overflowButton&&(this.overflowButton.attr("aria-expanded",t),Wm(this.overflowButton.node().parentNode).classed("bx--overflow-menu--open",t)),t?this.services.events.dispatchEvent(ut.Toolbar.SHOW_OVERFLOW_MENU):this.services.events.dispatchEvent(ut.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=Wm("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=Wm("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=Wm("#"+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=Wm("#"+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(t,r){var i=Wm("#"+e.services.domUtils.generateElementIDString("control-"+t.id));null!==i&&(i.on("click",(function(){t.clickFunction(),n.updateOverflowMenu(!1)})),i.on("keydown",(function(e){e&&"Enter"===e.key?t.clickFunction():e&&"ArrowUp"===e.key?n.focusOnPreviousEnabledMenuItem(r):e&&"ArrowDown"===e.key?n.focusOnNextEnabledMenuItem(r):e&&"Escape"===e.key&&n.updateOverflowMenu(!1),e.preventDefault()})))})),n.focusOnNextEnabledMenuItem(-1)}t&&t.stopImmediatePropagation()},e.prototype.getControlConfigs=function(){var t=this,e=pd.getProperty(this.getOptions(),"toolbar","numberOfIcons"),n=pd.getProperty(this.getOptions(),"toolbar","controls"),r=[],i=[];return n.forEach((function(e){var n=t.getControlConfigByType(e.type);n&&(n.text=e.text?e.text:e.type,-1!==n.id.indexOf("toolbar-export")?i.push(n):r.push(n))})),r.length<=e&&0===i.length?{buttonList:r}:{buttonList:r.splice(0,e-1),overflowMenuItemList:r.concat(i)}},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},iconSVGContent:'<circle cx="16" cy="8" r="2"></circle>\n\t\t\t\t\t\t\t <circle cx="16" cy="16" r="2"></circle>\n\t\t\t\t\t\t\t <circle cx="16" cy="24" r="2"></circle>',clickFunction:function(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 it.ZOOM_IN:r&&(e={id:"toolbar-zoomIn",title:"Zoom in",shouldBeDisabled:function(){return n.services.zoom.isMinZoomDomain()},iconSVGContent:this.getControlIconByType(t),clickFunction:function(){return n.services.zoom.zoomIn()}});break;case it.ZOOM_OUT:r&&(e={id:"toolbar-zoomOut",title:"Zoom out",shouldBeDisabled:function(){return n.services.zoom.isMaxZoomDomain()},iconSVGContent:this.getControlIconByType(t),clickFunction:function(){return n.services.zoom.zoomOut()}});break;case it.RESET_ZOOM:r&&(e={id:"toolbar-resetZoom",title:"Reset zoom",shouldBeDisabled:function(){return n.services.zoom.isMaxZoomDomain()},iconSVGContent:this.getControlIconByType(t),clickFunction:function(){return n.services.zoom.resetZoomDomain()}});break;case it.MAKE_FULLSCREEN:e={id:"toolbar-makefullscreen",title:"Make fullscreen",iconSVGContent:this.getControlIconByType(t),iconWidth:"15px",iconHight:"15px",shouldBeDisabled:function(){return!1},clickFunction:function(){n.services.domUtils.toggleFullscreen()}};break;case it.SHOW_AS_DATATABLE:e={id:"toolbar-showasdatatable",title:"Show as table",iconSVGContent:this.getControlIconByType(t),shouldBeDisabled:function(){return 0===i.length},clickFunction:function(){return n.services.events.dispatchEvent(ut.Modal.SHOW)}};break;case it.EXPORT_CSV:e={id:"toolbar-export-CSV",title:"Export as CSV",shouldBeDisabled:function(){return!1},iconSVGContent:this.getControlIconByType(t),clickFunction:function(){return n.model.exportToCSV()}};break;case it.EXPORT_PNG:e={id:"toolbar-export-PNG",title:"Export as PNG",shouldBeDisabled:function(){return!1},iconSVGContent:this.getControlIconByType(t),clickFunction:function(){return n.services.domUtils.exportToPNG()}};break;case it.EXPORT_JPG:e={id:"toolbar-export-JPG",title:"Export as JPG",shouldBeDisabled:function(){return!1},iconSVGContent: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 it.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 it.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 it.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 it.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 it.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 it.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 it.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 it.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}(RE),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)}}(),OB=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="zero-line",e.renderType=R.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=pd.flipSVGCoordinatesBasedOnOrientation({x0:l,x1:h,y0:f,y1:f},this.services.cartesianScales.getOrientation()),d=ty.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}(RE),wB=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),xB=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="zoom-bar",e.renderType=R.SVG,e.MIN_SELECTION_DIFF=9e-10,e.brushSelector="g.zoom-bar-brush",e.clipId="zoomBarClip-"+Math.floor(99999999999*Math.random()),e.brush=rB(),e.highlightStrokeWidth=1,e}return wB(e,t),e.prototype.init=function(){this.services.events.addEventListener(ut.ZoomBar.UPDATE,this.render.bind(this));var t=pd.getProperty(this.getOptions(),"zoomBar",j.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(j.TOP),i=this.services.zoom.isZoomBarLocked(j.TOP),o=pd.getProperty(this.getOptions(),"zoomBar",j.TOP,"type"),a=pd.getProperty(this.getOptions(),"axes",j.BOTTOM,"highlights"),s=Mt.height[o],u=ty.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=ty.appendOrSelect(n,"svg.zoom-container").attr("width","100%").attr("height",s).attr("opacity",1);ty.appendOrSelect(n,"rect.zoom-spacer").attr("x",0).attr("y",s).attr("width","100%").attr("height",Mt.spacerHeight).attr("opacity",1).attr("fill","none");if(o===B.GRAPH_VIEW?ty.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===B.SLIDER_VIEW&&ty.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===G.TIME){var g=this.services.zoom.getZoomBarData();if(pd.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"),_=pd.getProperty(this.getOptions(),"zoomBar",j.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:pd.merge([],m)},{skipUpdate:!0}):this.model.set({initialZoomDomain:pd.merge([],_),zoomDomain:_?pd.merge([],_):m},{skipUpdate:!0}),this.xScale.range([c,u]).domain(m),this.maxSelectionRange=this.xScale.range(),this.yScale.range([0,s-6]).domain(Pv(g,(function(t){return t.value})));var b=this.model.get("zoomDomain");if(o===B.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){ty.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 T=ty.appendOrSelect(n,this.brushSelector).call(this.brush);if(void 0===b);else if(b[0].valueOf()===b[1].valueOf())T.call(this.brush.move,this.xScale.range()),this.updateBrushHandle(this.getComponentContainer(),this.xScale.range(),this.xScale.domain());else{var S=b.map((function(t){return e.xScale(t)}));S[1]-S[0]<this.MIN_SELECTION_DIFF||(T.call(this.brush.move,S),this.updateBrushHandle(this.getComponentContainer(),S,b))}i&&(this.brush.filter((function(){return!1})),T.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=pd.getProperty(this.getOptions(),"zoomBar",j.TOP,"type"),a=Mt.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=ut.ZoomBar.SELECTION_START:"brush"===t.type?o=ut.ZoomBar.SELECTION_IN_PROGRESS:"end"===t.type&&(o=ut.ZoomBar.SELECTION_END,this.services.events.dispatchEvent(ut.ZoomDomain.CHANGE,{newDomain:i})),this.services.events.dispatchEvent(o,{selection:r,newDomain:i})}},e.prototype.updateBrushHandle=function(t,e,n){var r=this,i=Mt.handleWidth,o=pd.getProperty(this.getOptions(),"zoomBar",j.TOP,"type"),a=Mt.height[o],s=-i/2,u=Mt.handleBarWidth,c=o===B.GRAPH_VIEW?Mt.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===B.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=pd.getProperty(this.getOptions(),"zoomBar",j.TOP,"type"),n=Mt.height[e],r=(ty.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");ty.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=pd.getProperty(this.getOptions(),"zoomBar",j.TOP,"type"),p=Mt.height[f],d=zC().x((function(t,e){return l(t,e)})).y0(p).y1((function(t,e){return p-h(t,e)})),v=ty.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=ty.appendOrSelect(t,"clipPath").attr("id",e);ty.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=pd.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=pd.getProperty(this.model.getOptions(),"zoomBar",j.TOP,"type"),o=Mt.height[i],a=HC()([[e,o],[n,o]]);ty.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),ty.appendOrSelect(this.getComponentContainer(),this.brushSelector).html(null);var r=pd.getProperty(this.getOptions(),"zoomBar",j.TOP,"type");r===B.GRAPH_VIEW&&this.renderZoomBarBaseline(t,e,n,!0)},e.prototype.destroy=function(){this.brush.on("start brush end",null),this.services.events.removeEventListener(ut.ZoomBar.UPDATE,this.render.bind(this))},e}(RE),EB=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},TB=function(){function t(t,e){this.services={domUtils:ty,files:iy,events:ny,gradientUtils:uy,transitions:ay,canvasZoom:DE},this.model=new zv(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(ut.Model.UPDATE,(function(t){var e=!!pd.getProperty(t,"detail","animate");n.update(e)})),this.model.setData(e.data),this.services.events.addEventListener(ut.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(ut.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=pd.getProperty(n,"toolbar","enabled"),i={id:"legend",components:[new NE(this.model,this.services)],growth:Z.PREFERRED},o=pd.getProperty(n,"canvasZoom","enabled");o&&!0===o&&t.push(new AC(this.model,this.services));var a=!!this.model.getOptions().title,s={id:"title",components:[new yC(this.model,this.services)],growth:Z.STRETCH},u={id:"toolbar",components:[new _B(this.model,this.services)],growth:Z.PREFERRED},c={id:"header",components:[new QR(this.model,this.services,EB([s],r?[u]:[]),{direction:q.ROW,alignItems:Y.CENTER})],growth:Z.PREFERRED},l={id:"graph-frame",components:t,growth:Z.STRETCH,renderType:pd.getProperty(e,"graphFrameRenderType")||R.SVG},h=!0!==pd.getProperty(e,"excludeLegend")&&!1!==n.legend.enabled,f=q.COLUMN;if(h){var p=pd.getProperty(n,"legend","position");"left"===p?(f=q.ROW,n.legend.orientation||(n.legend.orientation=F.VERTICAL)):"right"===p?(f=q.ROW_REVERSE,n.legend.orientation||(n.legend.orientation=F.VERTICAL)):"bottom"===p&&(f=q.COLUMN_REVERSE)}var d={id:"spacer",components:[new KR(this.model,this.services)],growth:Z.PREFERRED},v={id:"full-frame",components:[new QR(this.model,this.services,EB(h?[i]:[],h?[d]:[],[l]),{direction:f})],growth:Z.STRETCH},g=[];if(a||r){g.push(c);var m={id:"spacer",components:[new KR(this.model,this.services,r?{size:15}:void 0)],growth:Z.PREFERRED};g.push(m)}return g.push(v),[new wC(this.model,this.services),new MS(this.model,this.services),new QR(this.model,this.services,g,{direction:q.COLUMN})]},t}(),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)}}(),MB=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},CB=function(t){function e(e){return t.call(this,e)||this}return SB(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:pd.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===G.TIME&&(t=function(t){return nC(t,"MMM d, yyyy")});var h=MB([MB(["Group",a.label,s.label],u?[u.label]:[],c?[c.label]:[])],e.map((function(e){return MB([e[r],null===e[a.identifier]?"–":t?t(e[a.identifier]):e[a.identifier],null===e[s.identifier]||isNaN(e[s.identifier])?"–":e[s.identifier].toLocaleString()],u?[null===e[u.identifier]?"–":e[u.identifier]]:[],c?[null===e[c.identifier]||isNaN(e[c.identifier])?"–":e[c.identifier]]:[])})));return h},e.prototype.setData=function(e){var n;if(e&&(n=t.prototype.setData.call(this,e),pd.getProperty(this.getOptions(),"zoomBar",j.TOP,"enabled"))){var r=pd.getProperty(this.getOptions(),"zoomBar",j.TOP,"data");this.setZoomBarData(r)}return n},e.prototype.setZoomBarData=function(t){var e=t?this.sanitize(pd.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=pd.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(j).forEach((function(t){var r=j[t],i=e.axes[r];if(i&&i.scaleType===G.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===pd.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}(zv),AB=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),PB=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},LB=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.services=Object.assign(r.services,{cartesianScales:wx,curves:AE,zoom:LE}),r.model=new CB(r.services),r}return AB(e,t),e.prototype.getAxisChartComponents=function(t,e){var n=this.model.getOptions(),r=pd.getProperty(n,"zoomBar",j.TOP,"enabled"),i=pd.getProperty(n,"toolbar","enabled");this.services.cartesianScales.determineAxisDuality(),this.services.cartesianScales.findDomainAndRangeAxes(),this.services.cartesianScales.determineOrientation();var o=this.services.cartesianScales.getMainXAxisPosition(),a=pd.getProperty(n,"axes",o,"scaleType"),s=r&&o===j.BOTTOM&&a===G.TIME,u=this.services.zoom.isZoomBarLocked(j.TOP),c=!!this.model.getOptions().title,l={id:"title",components:[new yC(this.model,this.services)],growth:Z.STRETCH},h={id:"toolbar",components:[new _B(this.model,this.services)],growth:Z.PREFERRED},f={id:"header",components:[new QR(this.model,this.services,PB([l],i?[h]:[]),{direction:q.ROW,alignItems:Y.CENTER})],growth:Z.PREFERRED},p={id:"legend",components:[new NE(this.model,this.services)],growth:Z.PREFERRED};s&&!u&&t.push(new MC(this.model,this.services),new aB(this.model,this.services)),t.push(new gC(this.model,this.services)),t.push(new kC(this.model,this.services));var d={id:"graph-frame",components:t,growth:Z.STRETCH,renderType:R.SVG},v=!1!==pd.getProperty(e,"legend","enabled")&&!1!==this.model.getOptions().legend.enabled,g=q.COLUMN;if(v){var m=pd.getProperty(this.model.getOptions(),"legend","position");m===H.LEFT?(g=q.ROW,this.model.getOptions().legend.orientation||(this.model.getOptions().legend.orientation=F.VERTICAL)):m===H.RIGHT?(g=q.ROW_REVERSE,this.model.getOptions().legend.orientation||(this.model.getOptions().legend.orientation=F.VERTICAL)):m===H.BOTTOM&&(g=q.COLUMN_REVERSE)}var y={id:"spacer",components:[new KR(this.model,this.services)],growth:Z.PREFERRED},_={id:"full-frame",components:[new QR(this.model,this.services,PB(v?[p]:[],v?[y]:[],[d]),{direction:g})],growth:Z.STRETCH},b={id:"zoom-bar",components:[new xB(this.model,this.services)],growth:Z.PREFERRED,renderType:R.SVG},O=[];if(c||i){O.push(f);var w={id:"spacer",components:[new KR(this.model,this.services,i?{size:15}:void 0)],growth:Z.PREFERRED};O.push(w)}return s&&O.push(b),O.push(_),[new TC(this.model,this.services),new MS(this.model,this.services),new QR(this.model,this.services,O,{direction:q.COLUMN})]},e}(TB),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)}}(),DB=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(pd.mergeDefaultChartOptions(pd.clone(ev.areaChart),n.options)),r.init(e,n),r}return kB(e,t),e.prototype.getComponents=function(){var t=[new yI(this.model,this.services),new uB(this.model,this.services),new fB(this.model,this.services),new pA(this.model,this.services),new WC(this.model,this.services),new oA(this.model,this.services,{fadeInOnChartHolderMouseover:!0,handleThresholds:!0}),new VA(this.model,this.services,{skeleton:K.GRID})],e=this.getAxisChartComponents(t);return e},e}(LB),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(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(pd.mergeDefaultChartOptions(ev.stackedAreaChart,n.options)),r.init(e,n),r}return RB(e,t),e.prototype.getComponents=function(){var t=[new yI(this.model,this.services),new uB(this.model,this.services),new mB(this.model,this.services),new ZC(this.model,this.services),new pA(this.model,this.services,{stacked:!0}),new mA(this.model,this.services,{fadeInOnChartHolderMouseover:!0,handleThresholds:!0,stacked:!0}),new VA(this.model,this.services,{skeleton:K.GRID})],e=this.getAxisChartComponents(t);return e},e}(LB),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(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(pd.mergeDefaultChartOptions(ev.simpleBarChart,n.options)),r.init(e,n),r}return NB(e,t),e.prototype.getComponents=function(){var t=[new yI(this.model,this.services),new uB(this.model,this.services),new $C(this.model,this.services),new OB(this.model,this.services),new VA(this.model,this.services,{skeleton:K.VERT_OR_HORIZ})],e=this.getAxisChartComponents(t);return e},e}(LB),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(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(pd.mergeDefaultChartOptions(ev.groupedBarChart,n.options)),r.init(e,n),r}return BB(e,t),e.prototype.getComponents=function(){var t=[new yI(this.model,this.services),new uB(this.model,this.services),new JC(this.model,this.services),new OB(this.model,this.services),new VA(this.model,this.services,{skeleton:K.VERT_OR_HORIZ})],e=this.getAxisChartComponents(t);return e},e}(LB),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(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(pd.mergeDefaultChartOptions(ev.stackedBarChart,n.options)),r.init(e,n),r}return VB(e,t),e.prototype.getComponents=function(){var t=[new yI(this.model,this.services),new uB(this.model,this.services),new mB(this.model,this.services),new eA(this.model,this.services),new VA(this.model,this.services,{skeleton:K.VERT_OR_HORIZ}),new OB(this.model,this.services)],e=this.getAxisChartComponents(t);return e},e}(LB);function HB(t,e,n=0,r=t.length-1,i=Ov){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));HB(t,e,l,h,i)}const o=t[e];let a=n,s=r;zB(t,n,e),i(t[r],o)>0&&zB(t,n,r);while(a<s){zB(t,a,s),++a,--s;while(i(t[a],o)<0)++a;while(i(t[s],o)>0)--s}0===i(t[n],o)?zB(t,n,s):(++s,zB(t,s,r)),s<=e&&(n=s+1),e<=s&&(r=s-1)}return t}function zB(t,e,n){const r=t[e];t[e]=t[n],t[n]=r}function FB(t,e,n){if(t=Float64Array.from(Tv(t,n)),r=t.length){if((e=+e)<=0||r<2)return iC(t);if(e>=1)return jw(t);var r,i=(r-1)*e,o=Math.floor(i),a=jw(HB(t,o).subarray(0,o+1)),s=iC(t.subarray(o+1));return a+(s-a)*(i-o)}}var WB,qB,ZB,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)}}(),XB=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(e){return t.call(this,e)||this}return YB(e,t),e.prototype.getBoxQuartiles=function(t){return{q_25:FB(t,.25),q_50:FB(t,.5),q_75:FB(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(Ov),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 _=iC(v),b=jw(v);u.whiskers={min:_||iC([u.quartiles.q_25,u.quartiles.q_50,u.quartiles.q_75]),max:b||jw([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=XB([["Group","Minimum","Q1","Median","Q3","Maximum","IQR","Outlier(s)"]],n.map((function(t){var n=pd.getProperty(t,"outliers");return null!==n&&0!==n.length||(n=["–"]),[t[e],null!==pd.getProperty(t,"whiskers","min")?pd.getProperty(t,"whiskers","min").toLocaleString():"–",null!==pd.getProperty(t,"quartiles","q_25")?pd.getProperty(t,"quartiles","q_25").toLocaleString():"–",null!==pd.getProperty(t,"quartiles","q_50")?pd.getProperty(t,"quartiles","q_50").toLocaleString():"–",null!==pd.getProperty(t,"quartiles","q_75")?pd.getProperty(t,"quartiles","q_75").toLocaleString():"–",null!==pd.getProperty(t,"whiskers","max")?pd.getProperty(t,"whiskers","max").toLocaleString():"–",null!==pd.getProperty(t,"quartiles","q_75")&&null!==pd.getProperty(t,"quartiles","q_25")?(pd.getProperty(t,"quartiles","q_75")-pd.getProperty(t,"quartiles","q_25")).toLocaleString():"–",n.map((function(t){return t.toLocaleString()})).join(",")]})));return r},e.prototype.setColorClassNames=function(){var t=1,e=pd.getProperty(this.getOptions(),"color","pairing"),n=pd.getProperty(e,"option"),r=dt.pairingOptions;n=n<=r[t+"-color"]?n:1;var i=this.allDataGroups.map((function(e,r){return t+"-"+n+"-1"}));this.colorClassNames=cv().range(i).domain(this.allDataGroups)},e}(CB),$B=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),QB=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model=new KB(r.services),r.model.setOptions(pd.mergeDefaultChartOptions(ev.boxplotChart,n.options)),r.init(e,n),r}return $B(e,t),e.prototype.getComponents=function(){var t=[new yI(this.model,this.services),new uB(this.model,this.services),new rA(this.model,this.services),new OB(this.model,this.services),new VA(this.model,this.services,{skeleton:K.VERT_OR_HORIZ})],e=this.getAxisChartComponents(t,{legend:{enabled:!1}});return e},e}(LB),JB=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return 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.setOptions(pd.mergeDefaultChartOptions(ev.bubbleChart,n.options)),r.init(e,n),r}return JB(e,t),e.prototype.getComponents=function(){var t=[new yI(this.model,this.services),new uB(this.model,this.services),new fB(this.model,this.services),new sA(this.model,this.services),new VA(this.model,this.services,{skeleton:K.GRID})],e=this.getAxisChartComponents(t);return e},e}(LB),eU=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),nU=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},rU=function(t){function e(e){return t.call(this,e)||this}return eU(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=pd.getProperty(n,"bullet","performanceAreaTitles"),a=nU([["Title","Group","Value","Target","Percentage","Performance"]],e.map((function(e){return[e["title"],e[r],null===e["value"]?"–":e["value"],null===pd.getProperty(e,"marker")?"–":e["marker"],null===pd.getProperty(e,"marker")?"–":Math.floor(e[i]/e.marker*100)+"%",o[t.getMatchingRangeIndexForDatapoint(e)]]})));return a},e}(CB),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=new rU(r.services),r.model.setOptions(pd.mergeDefaultChartOptions(ev.bulletChart,n.options)),r.init(e,n),r}return iU(e,t),e.prototype.getComponents=function(){var t=[new yI(this.model,this.services),new uB(this.model,this.services),new cA(this.model,this.services),new VA(this.model,this.services,{skeleton:K.GRID})],e=this.getAxisChartComponents(t);return e},e}(LB),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)}}(),sU=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},uU=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return aU(e,t),e.prototype.getTabularDataArray=function(){var t=this.getOptions(),e=t.data.groupMapsTo,n=this.getBinnedStackedData(),r=sU([sU([Ol(t,"bins.rangeLabel")||"Range"],n.map((function(t){return Ol(t,"0."+e)})))],Ol(n,0).map((function(t,r){return sU([Ol(t,"data.x0")+" – "+Ol(t,"data.x1")],n.map((function(t){return Ol(t[r],"data."+Ol(t[r],e))})))})));return r},e}(CB),cU=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),lU=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model=new uU(r.services),r.model.setOptions(pd.mergeDefaultChartOptions(ev.histogramChart,n.options)),r.init(e,n),r.update(),r}return cU(e,t),e.prototype.getComponents=function(){var t=[new yI(this.model,this.services),new uB(this.model,this.services),new vB(this.model,this.services),new hA(this.model,this.services)],e=this.getAxisChartComponents(t);return e},e}(LB),hU=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return 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(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(pd.mergeDefaultChartOptions(ev.lineChart,n.options)),r.init(e,n),r}return hU(e,t),e.prototype.getComponents=function(){var t=[new yI(this.model,this.services),new uB(this.model,this.services),new fB(this.model,this.services),new pA(this.model,this.services),new oA(this.model,this.services,{handleThresholds:!0}),new HA(this.model,this.services),new OB(this.model,this.services)],e=this.getAxisChartComponents(t);return e},e}(LB),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.setOptions(pd.mergeDefaultChartOptions(ev.lollipopChart,n.options)),r.init(e,n),r}return pU(e,t),e.prototype.getComponents=function(){var t=[new yI(this.model,this.services),new uB(this.model,this.services),new fB(this.model,this.services),new vA(this.model,this.services),new oA(this.model,this.services),new VA(this.model,this.services,{skeleton:K.GRID})],e=this.getAxisChartComponents(t);return e},e}(LB),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(pd.mergeDefaultChartOptions(ev.scatterChart,n.options)),r.init(e,n),r}return vU(e,t),e.prototype.getComponents=function(){var t=[new yI(this.model,this.services),new uB(this.model,this.services),new fB(this.model,this.services),new oA(this.model,this.services),new VA(this.model,this.services,{skeleton:K.GRID})],e=this.getAxisChartComponents(t);return e},e}(LB),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.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=yU([["Group","Value"]],t.map((function(t){return[t[n],null===t["value"]?"–":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}(zv),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,r){void 0===r&&(r=!1);var i=t.call(this,e,n)||this;return i.model=new _U(i.services),r?i:(i.model.setOptions(pd.mergeDefaultChartOptions(ev.pieChart,n.options)),i.init(e,n),i)}return bU(e,t),e.prototype.getComponents=function(){var t=[new LA(this.model,this.services),new VA(this.model,this.services,{skeleton:K.PIE})],e=this.getChartComponents(t);return e},e}(TB),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(t){function e(e,n){var r=t.call(this,e,n,!0)||this;return r.model.setOptions(pd.mergeDefaultChartOptions(ev.donutChart,n.options)),r.init(e,n),r}return wU(e,t),e.prototype.getComponents=function(){var t=[new jA(this.model,this.services),new VA(this.model,this.services,{skeleton:K.DONUT})],e=this.getChartComponents(t);return e},e}(OU),EU=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return 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(){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},SU=function(t){function e(e){return t.call(this,e)||this}return EU(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=pd.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=pd.getProperty(this.getDisplayData()),n=(e?e.reduce((function(t,e){return{value:t.value+e.value}})):0).value,r=pd.getProperty(t,"meter","proportional")?n:n>100?100:n,i=pd.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=pd.getProperty(n,"meter","proportional"),a=[];if(null===o){t=100;var s=e[0];a=[TU(["Group","Value"],i?["Status"]:[]),TU([s[r],s["value"]],i?[i]:[])]}else{var u=pd.getProperty(o,"total");t=u||this.getMaximumDomain(e),a=TU([["Group","Value","Percentage of total"]],e.map((function(e){return[e[r],e["value"],(e["value"]/t*100).toFixed(2)+" %"]})))}return a},e}(zv),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(){return CU=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},CU.apply(this,arguments)},AU=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="meter",e.renderType=R.SVG,e}return MU(e,t),e.prototype.getStackedBounds=function(t,e){var n=0,r=t.map((function(t,r){return 0!==r?(n+=e(t.value),CU(CU({},t),{width:Math.abs(e(t.value)-_t.dividerWidth),x:n-e(t.value)})):(n=e(t.value),CU(CU({},t),{width:Math.abs(e(t.value)-_t.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=pd.getProperty(o,"meter","proportional"),u=this.model.getDisplayData(),c=this.model.getStatus(),l=ty.getSVGElementSize(i,{useAttrs:!0}).width,h=o.data.groupMapsTo;if(null===pd.getProperty(o,"meter","proportional"))n=100;else{var f=pd.getProperty(o,"meter","proportional","total");n=f||this.model.getMaximumDomain(this.model.getDisplayData())}var p=Nw().domain([0,n]).range([0,l]),d=this.getStackedBounds(u,p),v=pd.getProperty(o,"meter","height");ty.appendOrSelect(i,"rect.container").attr("x",0).attr("y",0).attr("width",l).attr("height",v||(s?_t.height.proportional:_t.height.default)),ty.appendOrSelect(i,"line.rangeIndicator").attr("x1",l).attr("x2",l).attr("y1",0).attr("y2",v||(s?_t.height.proportional:_t.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=pd.getProperty(o,"meter","height");return t||(s?_t.height.proportional:_t.height.default)})).attr("class",(function(t){return e.model.getColorClassName({classNameTypes:[N.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=pd.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=pd.getProperty(o,"meter","height");return t||(s?_t.height.proportional:_t.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=pd.getProperty(t,"meter","proportional");this.parent.selectAll("rect.value").on("mouseover",(function(t,i){var o=Wm(this);n.services.events.dispatchEvent(ut.Meter.METER_MOUSEOVER,{event:t,element:o,datum:i}),r&&(o.classed("hovered",!0),n.services.events.dispatchEvent(ut.Tooltip.SHOW,{event:t,hoveredElement:o,items:[{label:i[e],value:i.value}]}))})).on("mousemove",(function(t,e){var i=Wm(this);n.services.events.dispatchEvent(ut.Meter.METER_MOUSEMOVE,{event:t,element:i,datum:e}),r&&n.services.events.dispatchEvent(ut.Tooltip.MOVE,{event:t})})).on("click",(function(t,e){n.services.events.dispatchEvent(ut.Meter.METER_CLICK,{event:t,element:Wm(this),datum:e})})).on("mouseout",(function(t,e){var i=Wm(this);n.services.events.dispatchEvent(ut.Meter.METER_MOUSEOUT,{event:t,element:i,datum:e}),r&&(i.classed("hovered",!1),n.services.events.dispatchEvent(ut.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}(RE),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)}}(),LU=function(t){function e(e,n){var r=t.call(this,e,n)||this;r.model=new SU(r.services);var i=n.options.meter.proportional?pd.merge(pd.clone(ev.proportionalMeterChart),n.options):pd.merge(pd.clone(ev.meterChart),n.options);return r.model.setOptions(i),r.init(e,n),r}return PU(e,t),e.prototype.getComponents=function(){var t={id:"meter-graph",components:[new AU(this.model,this.services)],growth:Z.STRETCH,renderType:R.SVG},e={id:"meter-title",components:[new bC(this.model,this.services)],growth:Z.STRETCH,renderType:R.SVG},n={id:"spacer",components:[new KR(this.model,this.services,{size:8})],growth:Z.STRETCH},r=[new QR(this.model,this.services,[e,n,t],{direction:q.COLUMN})],i=this.getChartComponents(r,{graphFrameRenderType:R.HTML});return i},e}(TB),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)}}(),DU=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},RU=function(t){function e(e){return t.call(this,e)||this}return kU(e,t),e.prototype.getTabularDataArray=function(){var t=this.getOptions(),e=this.getGroupedData(),n=pd.getProperty(t,"radar","axes"),r=n.angle,i=n.value,o=pd.getProperty(e,"0","data").map((function(t){return t[r]})),a=DU([DU(["Group"],o)],e.map((function(t){return DU([t["name"]],o.map((function(e,n){return null!==pd.getProperty(t,"data",n,i)?pd.getProperty(t,"data",n,i).toLocaleString():"–"})))})));return a},e}(CB),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)}}(),NU=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model=new RU(r.services),r.model.setOptions(pd.mergeDefaultChartOptions(ev.radarChart,n.options)),r.init(e,n),r}return IU(e,t),e.prototype.getComponents=function(){var t=[new BD(this.model,this.services)],e=this.getChartComponents(t);return e},e}(TB),jU=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),BU=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},UU=function(t){function e(e){return t.call(this,e)||this}return jU(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=BU([["Group","Value"]],t.map((function(t){return[t[n],null===t["value"]?"–":t["value"].toLocaleString()]})));return r},e}(zv),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=new UU(r.services),r.model.setOptions(pd.mergeDefaultChartOptions(ev.gaugeChart,n.options)),r.init(e,n),r}return VU(e,t),e.prototype.getComponents=function(){var t=[new IA(this.model,this.services)],e=this.getChartComponents(t);return e},e}(TB),HU=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),zU=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=(WB={},WB[rt.LINE]=[pA,oA],WB[rt.SCATTER]=[oA],WB[rt.AREA]=[WC,pA,oA],WB[rt.STACKED_AREA]=[ZC,pA,mA,mB],WB[rt.SIMPLE_BAR]=[$C],WB[rt.GROUPED_BAR]=[JC,OB],WB[rt.STACKED_BAR]=[eA,mB],WB),WU=function(t){function e(e,n){var r=t.call(this,e,n)||this,i=pd.mergeDefaultChartOptions(ev.comboChart,n.options);return n.options.comboChartTypes||(console.error("No comboChartTypes defined for the Combo Chart!"),i.comboChartTypes=[{type:rt.LINE,correspondingDatasets:[]}]),r.model.setOptions(i),r.init(e,n),r}return HU(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(FU).includes(e.type)?(r=pd.merge({},ev[pd.camelCase(e.type)+"Chart"],t.model.getOptions(),e.options),e.type===rt.STACKED_AREA&&(i=!0),FU[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=pd.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 pd.flatten(r)},e.prototype.getComponents=function(){var t=this.model.getOptions().comboChartTypes,e=t.some((function(t){return t.type===rt.STACKED_BAR||t.type===rt.STACKED_AREA})),n=zU([new yI(this.model,this.services),new uB(this.model,this.services),new VA(this.model,this.services,{skeleton:K.GRID})],e?[]:[new fB(this.model,this.services)],this.getGraphComponents()),r=this.getAxisChartComponents(n);return r},e}(LB),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)}}(),ZU=function(t){function e(e){return t.call(this,e)||this}return qU(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,"–"])})),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}(zv),YU=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return 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(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model=new ZU(r.services),r.model.setOptions(pd.mergeDefaultChartOptions(ev.treeChart,n.options)),r.init(e,n),r}return YU(e,t),e.prototype.getComponents=function(){var t=[new IP(this.model,this.services)],e=this.getChartComponents(t,{excludeLegend:!0});return e},e}(TB),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)}}(),$U=function(t){function e(e){return t.call(this,e)||this}return KU(e,t),e.prototype.getTabularDataArray=function(){var t=this.getDisplayData(),e=[["Child","Group","Value"]];return t.forEach((function(t){t.children.forEach((function(n){e.push([n.name,t.name,n.value])}))})),e},e}(zv),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(pd.mergeDefaultChartOptions(ev.treemapChart,n.options)),r.init(e,n),r}return QU(e,t),e.prototype.getComponents=function(){var t=[new TD(this.model,this.services)],e=this.getChartComponents(t);return e},e}(TB),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(){return eV=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},eV.apply(this,arguments)},nV=function(t){function e(e){var n=t.call(this,e)||this;return n.parentNode=!1,n.set({depth:2},{skipUpdate:!0}),n}return tV(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=pd.merge({},t,this.getZoomOptions(t));pd.updateLegendAdditionalItems(e,n);var r=this.getHierarchyLevel(),i=pd.getProperty(e,"circlePack","hierarchyLevel");this.set({options:pd.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&&pd.getProperty(e,0,"children")?pd.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===pd.getProperty(n,"canvasZoom","enabled")&&i>2?{legend:{additionalItems:[{type:at.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?eV(eV({},t),{dataGroupName:e,children:t.children.map((function(t,r){return n.setChildrenDataGroup(t,e)}))}):eV(eV({},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(["–",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}(zv),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(pd.mergeDefaultChartOptions(ev.circlePackChart,n.options)),r.init(e,n),r}return rV(e,t),e.prototype.getComponents=function(){var t=[new uR(this.model,this.services)],e=this.getChartComponents(t);return e},e}(TB),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=function(t){function e(e){return t.call(this,e)||this}return oV(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=aV([[e.tooltip.wordLabel,"Group",e.tooltip.valueLabel]],t.map((function(t){return[t[i],t[o],t[r]]})));return a},e}(zv),uV=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return 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(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model=new sV(r.services),r.model.setOptions(pd.mergeDefaultChartOptions(ev.wordCloudChart,n.options)),r.init(e,n),r}return uV(e,t),e.prototype.getComponents=function(){var t=[new fR(this.model,this.services),new VA(this.model,this.services,{skeleton:K.PIE})],e=this.getChartComponents(t);return e},e}(TB),lV=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),hV=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},fV=function(t){function e(e){return t.call(this,e)||this}return lV(e,t),e.prototype.getTabularDataArray=function(){var t=this.getDisplayData();t.sort((function(t,e){return t["source"].localeCompare(e["source"])}));var e=hV([["Source","Target","Value"]],t.map((function(t){return[t["source"],t["target"],t["value"]]})));return e},e}(CB),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,n){var r=t.call(this,e,n)||this;return r.model=new fV(r.services),r.model.setOptions(pd.mergeDefaultChartOptions(ev.alluvialChart,n.options)),r.init(e,n),r}return pV(e,t),e.prototype.getComponents=function(){var t=[new YR(this.model,this.services)],e=this.getChartComponents(t,{excludeLegend:!0});return e},e}(TB),vV={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}}},gV=vV;function mV(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 yV=mV(gV,qB,ZB,!1,null,null,null),_V=yV.exports,bV={name:"CcvAreaChart",extends:_V,mounted:function(){this.coreChart=new DB(this.$el,{data:this.data,options:this.options})}},OV=bV,wV=mV(OV,k,D,!1,null,null,null),xV=wV.exports,EV=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-stacked-area-chart"})},TV=[],SV={name:"CcvStackedAreaChart",extends:_V,mounted:function(){this.coreChart=new IB(this.$el,{data:this.data,options:this.options})}},MV=SV,CV=mV(MV,EV,TV,!1,null,null,null),AV=CV.exports,PV=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-simple-bar-chart"})},LV=[],kV={name:"CcvSimpleBarChart",extends:_V,mounted:function(){this.coreChart=new jB(this.$el,{data:this.data,options:this.options})}},DV=kV,RV=mV(DV,PV,LV,!1,null,null,null),IV=RV.exports,NV=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-grouped-bar-chart"})},jV=[],BV={name:"CcvGroupedBarChart",extends:_V,mounted:function(){this.coreChart=new UB(this.$el,{data:this.data,options:this.options})}},UV=BV,VV=mV(UV,NV,jV,!1,null,null,null),GV=VV.exports,HV=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-stacked-bar-chart"})},zV=[],FV={name:"CcvStackedBarChart",extends:_V,mounted:function(){this.coreChart=new GB(this.$el,{data:this.data,options:this.options})}},WV=FV,qV=mV(WV,HV,zV,!1,null,null,null),ZV=qV.exports,YV=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-boxplot-chart"})},XV=[],KV={name:"CcvBoxplotChart",extends:_V,mounted:function(){this.coreChart=new QB(this.$el,{data:this.data,options:this.options})}},$V=KV,QV=mV($V,YV,XV,!1,null,null,null),JV=QV.exports,tG=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-bubble-chart"})},eG=[],nG={name:"CcvBubbleChart",extends:_V,mounted:function(){this.coreChart=new tU(this.$el,{data:this.data,options:this.options})}},rG=nG,iG=mV(rG,tG,eG,!1,null,null,null),oG=iG.exports,aG=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-bullet-chart"})},sG=[],uG={name:"CcvBulletChart",extends:_V,mounted:function(){this.coreChart=new oU(this.$el,{data:this.data,options:this.options})}},cG=uG,lG=mV(cG,aG,sG,!1,null,null,null),hG=lG.exports,fG=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-donut-chart"})},pG=[],dG={name:"CcvDonutChart",extends:_V,mounted:function(){this.coreChart=new xU(this.$el,{data:this.data,options:this.options})}},vG=dG,gG=mV(vG,fG,pG,!1,null,null,null),mG=gG.exports,yG=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-gauge-chart"})},_G=[],bG={name:"CcvGaugeChart",extends:_V,mounted:function(){this.coreChart=new GU(this.$el,{data:this.data,options:this.options})}},OG=bG,wG=mV(OG,yG,_G,!1,null,null,null),xG=wG.exports,EG=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-histogram-chart"})},TG=[],SG={name:"CcvHistogramChart",extends:_V,mounted:function(){this.coreChart=new lU(this.$el,{data:this.data,options:this.options})}},MG=SG,CG=mV(MG,EG,TG,!1,null,null,null),AG=CG.exports,PG=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-line-chart"})},LG=[],kG={name:"CcvLineChart",extends:_V,mounted:function(){this.coreChart=new fU(this.$el,{data:this.data,options:this.options})}},DG=kG,RG=mV(DG,PG,LG,!1,null,null,null),IG=RG.exports,NG=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-lollipop-chart"})},jG=[],BG={name:"CcvLollipopChart",extends:_V,mounted:function(){this.coreChart=new dU(this.$el,{data:this.data,options:this.options})}},UG=BG,VG=mV(UG,NG,jG,!1,null,null,null),GG=VG.exports,HG=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-pie-chart"})},zG=[],FG={name:"CcvPieChart",extends:_V,mounted:function(){this.coreChart=new OU(this.$el,{data:this.data,options:this.options})}},WG=FG,qG=mV(WG,HG,zG,!1,null,null,null),ZG=qG.exports,YG=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-scatter-chart"})},XG=[],KG={name:"CcvScatterChart",extends:_V,mounted:function(){this.coreChart=new gU(this.$el,{data:this.data,options:this.options})}},$G=KG,QG=mV($G,YG,XG,!1,null,null,null),JG=QG.exports,tH=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-meter-chart"})},eH=[],nH={name:"CcvMeterChart",extends:_V,mounted:function(){this.coreChart=new LU(this.$el,{data:this.data,options:this.options})}},rH=nH,iH=mV(rH,tH,eH,!1,null,null,null),oH=iH.exports,aH=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-radar-chart"})},sH=[],uH={name:"CcvRadarChart",extends:_V,mounted:function(){this.coreChart=new NU(this.$el,{data:this.data,options:this.options})}},cH=uH,lH=mV(cH,aH,sH,!1,null,null,null),hH=lH.exports,fH=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-combo-chart"})},pH=[],dH={name:"CcvComboChart",extends:_V,mounted:function(){this.coreChart=new WU(this.$el,{data:this.data,options:this.options})}},vH=dH,gH=mV(vH,fH,pH,!1,null,null,null),mH=gH.exports,yH=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-tree-chart"})},_H=[],bH={name:"CcvTreeChart",extends:_V,mounted:function(){this.coreChart=new XU(this.$el,{data:this.data,options:this.options})}},OH=bH,wH=mV(OH,yH,_H,!1,null,null,null),xH=wH.exports,EH=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-treemap-chart"})},TH=[],SH={name:"CcvTreemapChart",extends:_V,mounted:function(){this.coreChart=new JU(this.$el,{data:this.data,options:this.options})}},MH=SH,CH=mV(MH,EH,TH,!1,null,null,null),AH=CH.exports,PH=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-circle-pack-chart"})},LH=[],kH={name:"CcvCirclePackChart",extends:_V,mounted:function(){this.coreChart=new iV(this.$el,{data:this.data,options:this.options})}},DH=kH,RH=mV(DH,PH,LH,!1,null,null,null),IH=RH.exports,NH=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-wordcloud-chart"})},jH=[],BH={name:"CcvWordCloudChart",extends:_V,mounted:function(){this.coreChart=new cV(this.$el,{data:this.data,options:this.options})}},UH=BH,VH=mV(UH,NH,jH,!1,null,null,null),GH=VH.exports,HH=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-alluvial-chart"})},zH=[],FH={name:"CcvAlluvialChart",extends:_V,mounted:function(){this.coreChart=new dV(this.$el,{data:this.data,options:this.options})}},WH=FH,qH=mV(WH,HH,zH,!1,null,null,null),ZH=qH.exports,YH=[xV,AV,IV,GV,ZV,JV,oG,hG,mG,xG,AG,IG,GG,ZG,JG,oH,hH,mH,xH,AH,IH,GH,ZH],XH={install:function(t,e){if("undefined"===typeof e){var n=!0,r=!1,i=void 0;try{for(var o,a=YH[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=YH[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 AV})),n.d(e,"CcvSimpleBarChart",(function(){return IV})),n.d(e,"CcvGroupedBarChart",(function(){return GV})),n.d(e,"CcvStackedBarChart",(function(){return ZV})),n.d(e,"CcvBoxplotChart",(function(){return JV})),n.d(e,"CcvBubbleChart",(function(){return oG})),n.d(e,"CcvBulletChart",(function(){return hG})),n.d(e,"CcvDonutChart",(function(){return mG})),n.d(e,"CcvGaugeChart",(function(){return xG})),n.d(e,"CcvHistogramChart",(function(){return AG})),n.d(e,"CcvLineChart",(function(){return IG})),n.d(e,"CcvLollipopChart",(function(){return GG})),n.d(e,"CcvPieChart",(function(){return ZG})),n.d(e,"CcvScatterChart",(function(){return JG})),n.d(e,"CcvMeterChart",(function(){return oH})),n.d(e,"CcvRadarChart",(function(){return hH})),n.d(e,"CcvComboChart",(function(){return mH})),n.d(e,"CcvTreeChart",(function(){return xH})),n.d(e,"CcvTreemapChart",(function(){return AH})),n.d(e,"CcvCirclePackChart",(function(){return IH})),n.d(e,"CcvWordCloudChart",(function(){return GH})),n.d(e,"CcvAlluvialChart",(function(){return ZH}));e["default"]=XH},"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 T=0,S=-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,T|=A}T?S=M:(e.y0++,d--,M--,l++)}e.y1=e.y0+S,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,T=f,S=m,M=[],C=1/0,A=r("word","end"),P=null,L=Math.random,k={},D=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=S(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 T=0;T<=m;T++)e[x+T]|=p<<O|(T<m?(p=v[E*m+T])>>>b:0);x+=y}return delete n.sprite,!0}}return!1}return k.canvas=function(t){return arguments.length?(D=O(t),k):D},k.start=function(){var r=R(D()),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=T.call(this,t,r),t})).sort((function(t,e){return e.size-t.size}));return P&&clearInterval(P),P=setInterval(h,0),h(),k;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",k,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&&(k.stop(),A.call("end",k,c,a))}},k.stop=function(){return P&&(clearInterval(P),P=null),k},k.timeInterval=function(t){return arguments.length?(C=null==t?1/0:t,k):C},k.words=function(t){return arguments.length?(M=t,k):M},k.size=function(e){return arguments.length?(t=[+e[0],+e[1]],k):t},k.font=function(t){return arguments.length?(n=O(t),k):n},k.fontStyle=function(t){return arguments.length?(y=O(t),k):y},k.fontWeight=function(t){return arguments.length?(x=O(t),k):x},k.rotate=function(t){return arguments.length?(E=O(t),k):E},k.text=function(t){return arguments.length?(e=O(t),k):e},k.spiral=function(t){return arguments.length?(S=w[t]||t,k):S},k.fontSize=function(t){return arguments.length?(i=O(t),k):i},k.padding=function(t){return arguments.length?(T=O(t),k):T},k.random=function(t){return arguments.length?(L=t,k):L},k.on=function(){var t=A.on.apply(A,arguments);return t===A?k:t},k};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 T=function(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=E(0,0,0,0),this.target=t};T.prototype.isActive=function(){var t=w(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},T.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t};var S=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 T(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 S(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,T,S=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||S(p),k="Array"==e&&A.entries||P;if(k&&(x=o(k.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:S(y),keys:O?L:S(m),entries:S(_)},w)for(T in E)!v&&!C&&T in A||c(A,T,E[T]);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"]},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,T=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)T[x]=y;else if(y)switch(t){case 3:return!0;case 5:return m;case 6:return x;case 2:u.call(T,m)}else if(l)return!1;return h?-1:c||l?l:T}};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"),T=n("abdf"),S=n("e129"),M=n("5b12"),C=n("b8ba"),A=n("4cdd"),P=n("332c"),L=n("d687"),k=n("1d8a"),D=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=D("toPrimitive"),z=j.set,F=j.getterFor(V),W=Object[G],q=i.Symbol,Z=o("JSON","stringify"),Y=E.f,X=T.f,K=w.f,$=S.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=Y(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=Y(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=k(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(k(t),t)})),S.f=ht,T.f=ut,E.f=ft,O.f=w.f=pt,x.f=dt,R.f=function(t){return at(D(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))}}),Z){var vt=!u||l((function(){var t=q();return"[null]"!=Z([t])||"{}"!=Z({a:t})||"{}"!=Z(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,Z.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))}},eeea: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})()},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
|