@fluentui/react-charting 5.23.40 → 5.23.42

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.
Files changed (83) hide show
  1. package/CHANGELOG.json +57 -1
  2. package/CHANGELOG.md +23 -2
  3. package/dist/react-charting.d.ts +5 -0
  4. package/dist/react-charting.js +1 -1
  5. package/dist/react-charting.min.js +1 -1
  6. package/etc/react-charting.api.md +1 -0
  7. package/lib/Styling.js +3 -3
  8. package/lib/Styling.js.map +1 -1
  9. package/lib/Utilities.js +1 -19
  10. package/lib/Utilities.js.map +1 -1
  11. package/lib/components/AreaChart/AreaChart.base.d.ts +3 -3
  12. package/lib/components/AreaChart/AreaChart.base.js +53 -30
  13. package/lib/components/AreaChart/AreaChart.base.js.map +1 -1
  14. package/lib/components/AreaChart/AreaChart.types.d.ts +5 -0
  15. package/lib/components/AreaChart/AreaChart.types.js.map +1 -1
  16. package/lib/components/DeclarativeChart/PlotlySchemaAdapter.js +18 -11
  17. package/lib/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -1
  18. package/lib/components/DonutChart/DonutChart.base.js +3 -1
  19. package/lib/components/DonutChart/DonutChart.base.js.map +1 -1
  20. package/lib/components/HorizontalBarChart/HorizontalBarChart.base.js +3 -1
  21. package/lib/components/HorizontalBarChart/HorizontalBarChart.base.js.map +1 -1
  22. package/lib/components/SankeyChart/SankeyChart.base.js +1 -1
  23. package/lib/components/SankeyChart/SankeyChart.base.js.map +1 -1
  24. package/lib/components/StackedBarChart/MultiStackedBarChart.base.js +3 -1
  25. package/lib/components/StackedBarChart/MultiStackedBarChart.base.js.map +1 -1
  26. package/lib/components/StackedBarChart/StackedBarChart.base.js +3 -1
  27. package/lib/components/StackedBarChart/StackedBarChart.base.js.map +1 -1
  28. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +1 -1
  29. package/lib/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +1 -1
  30. package/lib/utilities/SVGTooltipText.js +1 -1
  31. package/lib/utilities/SVGTooltipText.js.map +1 -1
  32. package/lib-amd/Styling.js +3 -3
  33. package/lib-amd/Styling.js.map +1 -1
  34. package/lib-amd/Utilities.js +0 -9
  35. package/lib-amd/Utilities.js.map +1 -1
  36. package/lib-amd/components/AreaChart/AreaChart.base.d.ts +3 -3
  37. package/lib-amd/components/AreaChart/AreaChart.base.js +53 -30
  38. package/lib-amd/components/AreaChart/AreaChart.base.js.map +1 -1
  39. package/lib-amd/components/AreaChart/AreaChart.types.d.ts +5 -0
  40. package/lib-amd/components/AreaChart/AreaChart.types.js.map +1 -1
  41. package/lib-amd/components/DeclarativeChart/PlotlySchemaAdapter.js +17 -11
  42. package/lib-amd/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -1
  43. package/lib-amd/components/DonutChart/DonutChart.base.js +3 -1
  44. package/lib-amd/components/DonutChart/DonutChart.base.js.map +1 -1
  45. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.base.js +3 -1
  46. package/lib-amd/components/HorizontalBarChart/HorizontalBarChart.base.js.map +1 -1
  47. package/lib-amd/components/SankeyChart/SankeyChart.base.js +1 -1
  48. package/lib-amd/components/SankeyChart/SankeyChart.base.js.map +1 -1
  49. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.base.js +3 -1
  50. package/lib-amd/components/StackedBarChart/MultiStackedBarChart.base.js.map +1 -1
  51. package/lib-amd/components/StackedBarChart/StackedBarChart.base.js +3 -1
  52. package/lib-amd/components/StackedBarChart/StackedBarChart.base.js.map +1 -1
  53. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +1 -1
  54. package/lib-amd/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +1 -1
  55. package/lib-amd/utilities/SVGTooltipText.js +1 -1
  56. package/lib-amd/utilities/SVGTooltipText.js.map +1 -1
  57. package/lib-commonjs/Styling.js +3 -3
  58. package/lib-commonjs/Styling.js.map +1 -1
  59. package/lib-commonjs/Utilities.js +0 -9
  60. package/lib-commonjs/Utilities.js.map +1 -1
  61. package/lib-commonjs/components/AreaChart/AreaChart.base.d.ts +3 -3
  62. package/lib-commonjs/components/AreaChart/AreaChart.base.js +53 -30
  63. package/lib-commonjs/components/AreaChart/AreaChart.base.js.map +1 -1
  64. package/lib-commonjs/components/AreaChart/AreaChart.types.d.ts +5 -0
  65. package/lib-commonjs/components/AreaChart/AreaChart.types.js.map +1 -1
  66. package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.js +17 -10
  67. package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -1
  68. package/lib-commonjs/components/DonutChart/DonutChart.base.js +3 -1
  69. package/lib-commonjs/components/DonutChart/DonutChart.base.js.map +1 -1
  70. package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.base.js +3 -1
  71. package/lib-commonjs/components/HorizontalBarChart/HorizontalBarChart.base.js.map +1 -1
  72. package/lib-commonjs/components/SankeyChart/SankeyChart.base.js +1 -1
  73. package/lib-commonjs/components/SankeyChart/SankeyChart.base.js.map +1 -1
  74. package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.base.js +3 -1
  75. package/lib-commonjs/components/StackedBarChart/MultiStackedBarChart.base.js.map +1 -1
  76. package/lib-commonjs/components/StackedBarChart/StackedBarChart.base.js +3 -1
  77. package/lib-commonjs/components/StackedBarChart/StackedBarChart.base.js.map +1 -1
  78. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js +1 -1
  79. package/lib-commonjs/components/VerticalStackedBarChart/VerticalStackedBarChart.base.js.map +1 -1
  80. package/lib-commonjs/utilities/SVGTooltipText.js +1 -1
  81. package/lib-commonjs/utilities/SVGTooltipText.js.map +1 -1
  82. package/package.json +3 -3
  83. package/src/components/AreaChart/AreaChart.types.ts +6 -0
@@ -1 +1 @@
1
- var FluentUIReactCharting;!function(){"use strict";var t={357:function(t,n,i){i.r(n),i.d(n,{ChartHoverCard:function(){return f}});var e=i(566),r=i(823),o=i(594),u=i(873),a=i(607),s=(0,u.Z)(),l=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return(0,r.C6)(n,t),n.prototype.render=function(){var t=this.props,n=t.color,i=t.Legend,e=t.XValue,r=t.YValue,u=t.styles,l=t.theme,c=t.ratio,f=t.descriptionMessage,h=t.culture;return this._classNames=s(u,{theme:l,color:n,XValue:e,isRatioPresent:!!c}),o.createElement("div",{className:this._classNames.calloutContentRoot},o.createElement("div",{className:this._classNames.calloutDateTimeContainer},o.createElement("div",{className:this._classNames.calloutContentX},e," ")),o.createElement("div",{className:this._classNames.calloutInfoContainer},o.createElement("div",{className:this._classNames.calloutBlockContainer},o.createElement("div",{className:this._classNames.calloutlegendText},(0,a.U)(i,h)),o.createElement("div",{className:this._classNames.calloutContentY},(0,a.U)(r,h))),!!c&&o.createElement("div",{className:this._classNames.ratio},o.createElement(o.Fragment,null,o.createElement("span",{className:this._classNames.numerator},(0,a.U)(c[0],h)),"/",o.createElement("span",{className:this._classNames.denominator},(0,a.U)(c[1],h))))),!!f&&o.createElement("div",{className:this._classNames.descriptionMessage},f))},n}(o.Component),c=i(263),f=(0,e.I)(l,c.J)},263:function(t,n,i){i.d(n,{J:function(){return r}});var e=i(419),r=function(t){var n,i,r,o=t.color,u=t.XValue,a=t.theme,s=t.isRatioPresent,l=void 0!==s&&s;return{calloutContentRoot:[{display:"grid",overflow:"hidden",padding:"11px 16px 10px 16px",backgroundColor:a.semanticColors.bodyBackground,backgroundBlendMode:"normal, luminosity"}],calloutDateTimeContainer:{display:"flex",flexDirection:"row",justifyContent:"space-between"},calloutContentX:[a.fonts.small,{lineHeight:"16px",opacity:"0.85",color:a.semanticColors.bodySubtext}],calloutBlockContainer:[a.fonts.xxLarge,{marginTop:u?"13px":"unset",paddingLeft:"8px",lineHeight:"22px",color:a.semanticColors.bodyText,borderLeft:"4px solid ".concat(o),selectors:(n={},n[e.up]={forcedColorAdjust:"none"},n)}],calloutlegendText:[a.fonts.small,{lineHeight:"16px",color:a.semanticColors.bodyText,selectors:(i={},i[e.NK]={color:"rgb(255, 255, 255)"},i)}],calloutContentY:[a.fonts.xxLarge,{color:o||a.semanticColors.bodyText,fontWeight:"bold",lineHeight:"36px",selectors:(r={},r[e.NK]={color:"rgb(255, 255, 255)"},r)}],calloutInfoContainer:[l&&{display:"flex",alignItems:"flex-end"}],ratio:[a.fonts.small,{marginLeft:"6px",color:a.semanticColors.bodyText}],numerator:{fontWeight:e.BO.bold},denominator:{fontWeight:e.BO.semibold},descriptionMessage:[a.fonts.small,{color:a.semanticColors.bodyText,marginTop:"10px",paddingTop:"10px",borderTop:"1px solid ".concat(a.semanticColors.menuDivider)}]}}},607:function(t,n,i){i.d(n,{U:function(){return e}});var e=function(t,n){return t?(n=n||void 0,"number"==typeof t?t.toLocaleString(n):"string"!=typeof t||window.isNaN(Number(t))?t instanceof Date?t.toLocaleDateString(n):t:Number(t).toLocaleString(n)):t}},800:function(t,n,i){i.d(n,{DU:function(){return o},Iy:function(){return a}});var e,r=i(638);function o(t){e!==t&&(e=t)}function u(){return void 0===e&&(e="undefined"!=typeof document&&!!document.documentElement&&"rtl"===document.documentElement.getAttribute("dir")),e}function a(){return{rtl:u(),shadowConfig:r.ou}}e=u()},40:function(t,n,i){i.d(n,{nr:function(){return l}});var e,r=i(823),o=i(638),u="__stylesheet__",a="undefined"!=typeof navigator&&/rv:11.0/.test(navigator.userAgent),s={};try{s=window||{}}catch(t){}var l=function(){function t(t,n){var i,e,o,u,a,s;this._rules=[],this._preservedRules=[],this._counter=0,this._keyToClassName={},this._onInsertRuleCallbacks=[],this._onResetCallbacks=[],this._classNameToArgs={},this._config=(0,r.Cl)({injectionMode:"undefined"==typeof document?0:1,defaultPrefix:"css",namespace:void 0,cspSettings:void 0},t),this._classNameToArgs=null!==(i=null==n?void 0:n.classNameToArgs)&&void 0!==i?i:this._classNameToArgs,this._counter=null!==(e=null==n?void 0:n.counter)&&void 0!==e?e:this._counter,this._keyToClassName=null!==(u=null!==(o=this._config.classNameCache)&&void 0!==o?o:null==n?void 0:n.keyToClassName)&&void 0!==u?u:this._keyToClassName,this._preservedRules=null!==(a=null==n?void 0:n.preservedRules)&&void 0!==a?a:this._preservedRules,this._rules=null!==(s=null==n?void 0:n.rules)&&void 0!==s?s:this._rules}return t.getInstance=function(n){if(e=s[u],s[o.Se])return s[o.Se].getInstance(n);if(!e||e._lastStyleElement&&e._lastStyleElement.ownerDocument!==document){var i=(null==s?void 0:s.FabricConfig)||{},r=new t(i.mergeStyles,i.serializedStylesheet);e=r,s[u]=r}return e},t.prototype.serialize=function(){return JSON.stringify({classNameToArgs:this._classNameToArgs,counter:this._counter,keyToClassName:this._keyToClassName,preservedRules:this._preservedRules,rules:this._rules})},t.prototype.setConfig=function(t){this._config=(0,r.Cl)((0,r.Cl)({},this._config),t)},t.prototype.onReset=function(t){var n=this;return this._onResetCallbacks.push(t),function(){n._onResetCallbacks=n._onResetCallbacks.filter((function(n){return n!==t}))}},t.prototype.onInsertRule=function(t){var n=this;return this._onInsertRuleCallbacks.push(t),function(){n._onInsertRuleCallbacks=n._onInsertRuleCallbacks.filter((function(n){return n!==t}))}},t.prototype.getClassName=function(t){var n=this._config.namespace,i=t||this._config.defaultPrefix;return"".concat(n?n+"-":"").concat(i,"-").concat(this._counter++)},t.prototype.cacheClassName=function(t,n,i,e){this._keyToClassName[this._getCacheKey(n)]=t,this._classNameToArgs[t]={args:i,rules:e}},t.prototype.classNameFromKey=function(t){return this._keyToClassName[this._getCacheKey(t)]},t.prototype.getClassNameCache=function(){return this._keyToClassName},t.prototype.argsFromClassName=function(t){var n=this._classNameToArgs[t];return n&&n.args},t.prototype.insertedRulesFromClassName=function(t){var n=this._classNameToArgs[t];return n&&n.rules},t.prototype.insertRule=function(t,n,i){void 0===i&&(i=o.P6);var e=this._config.injectionMode,r=0!==e?this._getStyleElement():void 0;if(n&&this._preservedRules.push(t),r)switch(e){case 1:this._insertRuleIntoSheet(r.sheet,t);break;case 2:r.appendChild(document.createTextNode(t))}else this._rules.push(t);this._config.onInsertRule&&this._config.onInsertRule(t),this._onInsertRuleCallbacks.forEach((function(n){return n({key:i,sheet:r?r.sheet:void 0,rule:t})}))},t.prototype.getRules=function(t){return(t?this._preservedRules.join(""):"")+this._rules.join("")},t.prototype.reset=function(){this._rules=[],this._counter=0,this._classNameToArgs={},this._keyToClassName={},this._onResetCallbacks.forEach((function(t){return t()}))},t.prototype.resetKeys=function(){this._keyToClassName={}},t.prototype._createStyleElement=function(){var t,n=(null===(t=this._config.window)||void 0===t?void 0:t.document)||document,i=n.head,e=n.createElement("style"),r=null;e.setAttribute("data-merge-styles","true");var o=this._config.cspSettings;if(o&&o.nonce&&e.setAttribute("nonce",o.nonce),this._lastStyleElement)r=this._lastStyleElement.nextElementSibling;else{var u=this._findPlaceholderStyleTag();r=u?u.nextElementSibling:i.childNodes[0]}return i.insertBefore(e,i.contains(r)?r:null),this._lastStyleElement=e,e},t.prototype._insertRuleIntoSheet=function(t,n){if(!t)return!1;try{return t.insertRule(n,t.cssRules.length),!0}catch(t){}return!1},t.prototype._getCacheKey=function(t){return t},t.prototype._getStyleElement=function(){var t=this;return this._styleElement||(this._styleElement=this._createStyleElement(),a||(this._config.window||window).requestAnimationFrame((function(){t._styleElement=void 0}))),this._styleElement},t.prototype._findPlaceholderStyleTag=function(){var t=document.head;return t?t.querySelector("style[data-merge-styles]"):null},t}()},506:function(t,n,i){i.d(n,{T:function(){return o}});var e=i(823),r=i(638);function o(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(t&&1===t.length&&t[0]&&!t[0].subComponentStyles&&!(0,r.db)(t[0]))return t[0];for(var i={},u={},a=0,s=t;a<s.length;a++){var l=s[a];if(l&&!(0,r.db)(l))for(var c in l)if(l.hasOwnProperty(c)){if("subComponentStyles"===c&&void 0!==l.subComponentStyles){var f=l.subComponentStyles;for(var h in f)f.hasOwnProperty(h)&&(u.hasOwnProperty(h)?u[h].push(f[h]):u[h]=[f[h]]);continue}var d=i[c],v=l[c];i[c]=void 0===d?v:(0,e.fX)((0,e.fX)([],Array.isArray(d)?d:[d],!0),Array.isArray(v)?v:[v],!0)}}if(Object.keys(u).length>0){i.subComponentStyles={};var p=i.subComponentStyles,g=function(t){if(u.hasOwnProperty(t)){var n=u[t];p[t]=function(t){return o.apply(void 0,n.map((function(n){return"function"==typeof n?n(t):n})))}}};for(var h in u)g(h)}return i}},962:function(t,n,i){i.d(n,{h:function(){return r}});var e=i(638);function r(t){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var r=[],o=[],u=t;return function t(n){for(var i=0,a=n;i<a.length;i++){var s=a[i];if(s&&!(0,e.db)(s))if("string"==typeof s)if(s.indexOf(" ")>=0)t(s.split(" "));else{var l=u.argsFromClassName(s);l?t(l):-1===r.indexOf(s)&&r.push(s)}else Array.isArray(s)?t(s):"object"==typeof s&&o.push(s)}}(n),{classes:r,objects:o}}},916:function(t,n,i){i.d(n,{Z:function(){return s}});var e=i(962),r=i(638),o=i(800),u=i(40),a=i(289);function s(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return function(t,n){var i=t instanceof Array?t:[t],o=n||{};(0,r.db)(i[0])&&(o.shadowConfig=i[0]),o.stylesheet=u.nr.getInstance(o.shadowConfig);var s=(0,e.h)(o.stylesheet,i),l=s.classes,c=s.objects;return c.length&&l.push((0,a.kG)(o,c)),l.join(" ")}(t,(0,o.Iy)())}},638:function(t,n,i){i.d(n,{P6:function(){return e},Se:function(){return r},db:function(){return u},ou:function(){return o}});var e="__global__",r="__shadow_dom_stylesheet__",o={stylesheetKey:e,inShadow:!1,window:void 0,__isShadowConfig__:!0},u=function(t){return!(!t||!function(t){return null!==t&&"object"==typeof t&&!Array.isArray(t)}(t))&&!0===t.__isShadowConfig__}},289:function(t,n,i){i.d(n,{Ae:function(){return L},bz:function(){return S},kG:function(){return V},GJ:function(){return A}});var e,r=i(823),o=i(40),u={},a={"user-select":1};function s(t,n){var i=function(){var t;if(!e){var n="undefined"!=typeof document?document:void 0,i="undefined"!=typeof navigator?navigator:void 0,r=null===(t=null==i?void 0:i.userAgent)||void 0===t?void 0:t.toLowerCase();e=n?{isWebkit:!(!n||!("WebkitAppearance"in n.documentElement.style)),isMoz:!!(r&&r.indexOf("firefox")>-1),isOpera:!!(r&&r.indexOf("opera")>-1),isMs:!(!i||!/rv:11.0/i.test(i.userAgent)&&!/Edge\/\d./i.test(navigator.userAgent))}:{isWebkit:!0,isMoz:!0,isOpera:!0,isMs:!0}}return e}(),r=t[n];if(a[r]){var o=t[n+1];a[r]&&(i.isWebkit&&t.push("-webkit-"+r,o),i.isMoz&&t.push("-moz-"+r,o),i.isMs&&t.push("-ms-"+r,o),i.isOpera&&t.push("-o-"+r,o))}}var l,c=["column-count","font-weight","flex","flex-grow","flex-shrink","fill-opacity","opacity","order","z-index","zoom"];function f(t,n){var i=t[n],e=t[n+1];if("number"==typeof e){var r=c.indexOf(i)>-1,o=i.indexOf("--")>-1,u=r||o?"":"px";t[n+1]="".concat(e).concat(u)}}var h="left",d="right",v="@noflip",p=((l={})[h]=d,l[d]=h,l),g={"w-resize":"e-resize","sw-resize":"se-resize","nw-resize":"ne-resize"};function m(t,n,i){if(t.rtl){var e=n[i];if(!e)return;var r=n[i+1];if("string"==typeof r&&r.indexOf(v)>=0)n[i+1]=r.replace(/\s*(?:\/\*\s*)?\@noflip\b(?:\s*\*\/)?\s*?/g,"");else if(e.indexOf(h)>=0)n[i]=e.replace(h,d);else if(e.indexOf(d)>=0)n[i]=e.replace(d,h);else if(String(r).indexOf(h)>=0)n[i+1]=r.replace(h,d);else if(String(r).indexOf(d)>=0)n[i+1]=r.replace(d,h);else if(p[e])n[i]=p[e];else if(g[r])n[i+1]=g[r];else switch(e){case"margin":case"padding":n[i+1]=function(t){if("string"==typeof t){var n=t.split(" ");if(4===n.length)return"".concat(n[0]," ").concat(n[3]," ").concat(n[2]," ").concat(n[1])}return t}(r);break;case"box-shadow":n[i+1]=function(t,n){var i=t.split(" "),e=parseInt(i[0],10);return i[0]=i[0].replace(String(e),String(-1*e)),i.join(" ")}(r)}}}var y="displayName",b=/\:global\((.+?)\)/g;function x(t,n){return t.indexOf(":global(")>=0?t.replace(b,"$1"):0===t.indexOf(":host(")?t:0===t.indexOf(":")?n+t:t.indexOf("&")<0?n+" "+t:t}function C(t,n,i,e,r){void 0===n&&(n={__order:[]}),0===i.indexOf("@")?w([e],n,i=i+"{"+t,r):i.indexOf(",")>-1?function(t){if(!b.test(t))return t;for(var n=[],i=/\:global\((.+?)\)/g,e=null;e=i.exec(t);)e[1].indexOf(",")>-1&&n.push([e.index,e.index+e[0].length,e[1].split(",").map((function(t){return":global(".concat(t.trim(),")")})).join(", ")]);return n.reverse().reduce((function(t,n){var i=n[0],e=n[1],r=n[2];return t.slice(0,i)+r+t.slice(e)}),t)}(i).split(",").map((function(t){return t.trim()})).forEach((function(i){return w([e],n,x(i,t),r)})):w([e],n,x(i,t),r)}function w(t,n,i,e){void 0===n&&(n={__order:[]}),void 0===i&&(i="&");var r,o=n[i];o||(o={},n[i]=o,n.__order.push(i));for(var u=0,a=t;u<a.length;u++){var s=a[u];if("string"==typeof s){var l=e.argsFromClassName(s);l&&w(l,n,i,e)}else if(Array.isArray(s))w(s,n,i,e);else for(var c in s)if(s.hasOwnProperty(c)){var f=s[c];if("selectors"===c){var h=s.selectors;for(var d in h)h.hasOwnProperty(d)&&C(i,n,d,h[d],e)}else"object"==typeof f||(r=c).indexOf(":global(")>=0||0===r.indexOf(":")?null!=f&&C(i,n,c,f,e):void 0!==f&&("margin"===c||"padding"===c?M(o,c,f):o[c]=f)}}return n}function M(t,n,i){var e="string"==typeof i?function(t){for(var n=[],i=0,e=0,r=0;r<t.length;r++)switch(t[r]){case"(":e++;break;case")":e&&e--;break;case"\t":case" ":e||(r>i&&n.push(t.substring(i,r)),i=r+1)}return i<t.length&&n.push(t.substring(i)),n}(i):[i];0===e.length&&e.push(i),"!important"===e[e.length-1]&&(e=e.slice(0,-1).map((function(t){return t+" !important"}))),t[n+"Top"]=e[0],t[n+"Right"]=e[1]||e[0],t[n+"Bottom"]=e[2]||e[0],t[n+"Left"]=e[3]||e[1]||e[0]}function k(t,n){return n<=0?"":1===n?t:t+k(t,n-1)}function S(t,n){if(!n)return"";var i,e,r,o=[];for(var a in n)n.hasOwnProperty(a)&&a!==y&&void 0!==n[a]&&o.push(a,n[a]);for(var l=0;l<o.length;l+=2)r=void 0,"-"!==(r=(i=o)[e=l]).charAt(0)&&(i[e]=u[r]=u[r]||r.replace(/([A-Z])/g,"-$1").toLowerCase()),f(o,l),m(t,o,l),s(o,l);for(l=1;l<o.length;l+=4)o.splice(l,1,":",o[l],";");return o.join("")}function A(t){for(var n,i=[],e=1;e<arguments.length;e++)i[e-1]=arguments[e];var r=null!==(n=t.stylesheet)&&void 0!==n?n:o.nr.getInstance(t.shadowConfig),u=w(i,void 0,void 0,r),a=function(t,n){for(var i=[t.rtl?"rtl":"ltr"],e=!1,r=0,o=n.__order;r<o.length;r++){var u=o[r];i.push(u);var a=n[u];for(var s in a)a.hasOwnProperty(s)&&void 0!==a[s]&&(e=!0,i.push(s,a[s]))}return e?i.join(""):void 0}(t,u);if(a){var s={className:r.classNameFromKey(a),key:a,args:i};if(!s.className){s.className=r.getClassName(function(t){var n=t&&t["&"];return n?n.displayName:void 0}(u));for(var l=[],c=0,f=u.__order;c<f.length;c++){var h=f[c];l.push(h,S(t,u[h]))}s.rulesToInsert=l}return s}}function L(t,n,i,e){void 0===n&&(n=1);var r=null!=e?e:o.nr.getInstance(i),u=t.className,a=t.key,s=t.args,l=t.rulesToInsert;if(l){for(var c=0;c<l.length;c+=2){var f=l[c+1];if(f){var h=l[c];h=h.replace(/&/g,k(".".concat(t.className),n));var d="".concat(h,"{").concat(f,"}").concat(0===h.indexOf("@")?"}":"");r.insertRule(d)}}r.cacheClassName(u,a,s,l)}}function V(t){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var e=A.apply(void 0,(0,r.fX)([t],n,!1));return e?(L(e,t.specificityMultiplier,t.shadowConfig,t.stylesheet),e.className):""}},887:function(t,n,i){i.d(n,{v:function(){return o}});var e={},r=void 0;try{r=window}catch(t){}function o(t,n){if(void 0!==r){var i=r.__packages__=r.__packages__||{};i[t]&&e[t]||(e[t]=n,(i[t]=i[t]||[]).push(n))}}o("@fluentui/set-version","6.0.0")},419:function(t,n,i){i.d(n,{lw:function(){return K},bp:function(){return kt.b},s:function(){return St.s},BO:function(){return St.BO},up:function(){return it},NK:function(){return et},nA:function(){return nt},QN:function(){return ut},gm:function(){return ot},Km:function(){return tt},O4:function(){return Mt},dX:function(){return J}});var e=i(916),r=i(800),o=i(40),u=i(289);function a(t){var n=o.nr.getInstance(),i=[];for(var e in t)t.hasOwnProperty(e)&&i.push(e,"{",(0,u.bz)((0,r.Iy)(),t[e]),"}");var a=i.join(""),s=n.classNameFromKey(a);if(s)return s;var l=n.getClassName();return n.insertRule("@keyframes ".concat(l,"{").concat(a,"}"),!0),n.cacheClassName(l,a,[],["keyframes",a]),l}var s="cubic-bezier(.1,.9,.2,1)",l="cubic-bezier(.1,.25,.75,.9)",c="0.167s",f="0.267s",h="0.367s",d="0.467s",v=a({from:{opacity:0},to:{opacity:1}}),p=a({from:{opacity:1},to:{opacity:0,visibility:"hidden"}}),g=G(-10),m=G(-20),y=G(-40),b=G(-400),x=G(10),C=G(20),w=G(40),M=G(400),k=q(10),S=q(20),A=q(-10),L=q(-20),V=U(10),D=U(20),N=U(40),T=U(400),E=U(-10),O=U(-20),P=U(-40),B=U(-400),F=Z(-10),_=Z(-20),H=Z(10),R=Z(20),I=a({from:{transform:"scale3d(.98,.98,1)"},to:{transform:"scale3d(1,1,1)"}}),W=a({from:{transform:"scale3d(1,1,1)"},to:{transform:"scale3d(.98,.98,1)"}}),z=a({from:{transform:"scale3d(1.03,1.03,1)"},to:{transform:"scale3d(1,1,1)"}}),j=a({from:{transform:"scale3d(1,1,1)"},to:{transform:"scale3d(1.03,1.03,1)"}}),Y=a({from:{transform:"rotateZ(0deg)"},to:{transform:"rotateZ(90deg)"}}),$=a({from:{transform:"rotateZ(0deg)"},to:{transform:"rotateZ(-90deg)"}});function X(t,n,i){return{animationName:t,animationDuration:n,animationTimingFunction:i,animationFillMode:"both"}}function G(t){return a({from:{transform:"translate3d(".concat(t,"px,0,0)"),pointerEvents:"none"},to:{transform:"translate3d(0,0,0)",pointerEvents:"auto"}})}function q(t){return a({from:{transform:"translate3d(0,".concat(t,"px,0)"),pointerEvents:"none"},to:{transform:"translate3d(0,0,0)",pointerEvents:"auto"}})}function U(t){return a({from:{transform:"translate3d(0,0,0)"},to:{transform:"translate3d(".concat(t,"px,0,0)")}})}function Z(t){return a({from:{transform:"translate3d(0,0,0)"},to:{transform:"translate3d(0,".concat(t,"px,0)")}})}var K=function(t){var n={},i=function(i){var r;t.hasOwnProperty(i)&&Object.defineProperty(n,i,{get:function(){return void 0===r&&(r=(0,e.Z)(t[i]).toString()),r},enumerable:!0,configurable:!0})};for(var r in t)i(r);return n}({slideRightIn10:X("".concat(v,",").concat(g),h,s),slideRightIn20:X("".concat(v,",").concat(m),h,s),slideRightIn40:X("".concat(v,",").concat(y),h,s),slideRightIn400:X("".concat(v,",").concat(b),h,s),slideLeftIn10:X("".concat(v,",").concat(x),h,s),slideLeftIn20:X("".concat(v,",").concat(C),h,s),slideLeftIn40:X("".concat(v,",").concat(w),h,s),slideLeftIn400:X("".concat(v,",").concat(M),h,s),slideUpIn10:X("".concat(v,",").concat(k),h,s),slideUpIn20:X("".concat(v,",").concat(S),h,s),slideDownIn10:X("".concat(v,",").concat(A),h,s),slideDownIn20:X("".concat(v,",").concat(L),h,s),slideRightOut10:X("".concat(p,",").concat(V),h,s),slideRightOut20:X("".concat(p,",").concat(D),h,s),slideRightOut40:X("".concat(p,",").concat(N),h,s),slideRightOut400:X("".concat(p,",").concat(T),h,s),slideLeftOut10:X("".concat(p,",").concat(E),h,s),slideLeftOut20:X("".concat(p,",").concat(O),h,s),slideLeftOut40:X("".concat(p,",").concat(P),h,s),slideLeftOut400:X("".concat(p,",").concat(B),h,s),slideUpOut10:X("".concat(p,",").concat(F),h,s),slideUpOut20:X("".concat(p,",").concat(_),h,s),slideDownOut10:X("".concat(p,",").concat(H),h,s),slideDownOut20:X("".concat(p,",").concat(R),h,s),scaleUpIn100:X("".concat(v,",").concat(I),h,s),scaleDownIn100:X("".concat(v,",").concat(z),h,s),scaleUpOut103:X("".concat(p,",").concat(j),c,l),scaleDownOut98:X("".concat(p,",").concat(W),c,l),fadeIn100:X(v,c,l),fadeIn200:X(v,f,l),fadeIn400:X(v,h,l),fadeIn500:X(v,d,l),fadeOut100:X(p,c,l),fadeOut200:X(p,f,l),fadeOut400:X(p,h,l),fadeOut500:X(p,d,l),rotate90deg:X(Y,"0.1s",l),rotateN90deg:X($,"0.1s",l)}),J={position:"absolute",width:1,height:1,margin:-1,padding:0,border:0,overflow:"hidden",whiteSpace:"nowrap"},Q=(0,i(753).J9)((function(t,n){var i=o.nr.getInstance();return n?Object.keys(t).reduce((function(n,e){return n[e]=i.getClassName(t[e]),n}),{}):t}));function tt(t,n,i){return Q(t,void 0!==i?i:n.disableGlobalClassNames)}var nt,it="@media screen and (-ms-high-contrast: active), screen and (forced-colors: active)",et="@media screen and (-ms-high-contrast: white-on-black), screen and (forced-colors: active) and (prefers-color-scheme: dark)",rt=i(517);function ot(t,n,i,e,r,o,u,a){return function(t,n){var i,e;void 0===n&&(n={});var r=n.borderRadius,o=n.inset,u=void 0===o?0:o,a=n.width,s=void 0===a?1:a,l=n.position,c=void 0===l?"relative":l,f=n.highContrastStyle,h=n.borderColor,d=void 0===h?t.palette.white:h,v=n.outlineColor,p=void 0===v?t.palette.neutralSecondary:v,g=n.isFocusedOnly,m=void 0===g||g,y=n.pointerEvents;return{outline:"transparent",position:c,selectors:(i={"::-moz-focus-inner":{border:"0"}},i[".".concat(rt.Y2," &").concat(m?":focus":"",":after, :host(.").concat(rt.Y2,") &").concat(m?":focus":"",":after")]={content:'""',position:"absolute",pointerEvents:y,left:u+1,top:u+1,bottom:u+1,right:u+1,border:"".concat(s,"px solid ").concat(d),outline:"".concat(s,"px solid ").concat(p),zIndex:nt.FocusStyle,borderRadius:r,selectors:(e={},e[it]=f,e)},i)}}(t,"number"!=typeof n&&n?n:{inset:n,position:i,highContrastStyle:e,borderColor:r,outlineColor:o,isFocusedOnly:u,borderRadius:a})}function ut(){return{selectors:{"&::-moz-focus-inner":{border:0},"&":{outline:"transparent"}}}}!function(t){t.Nav=1,t.ScrollablePane=1,t.FocusStyle=1,t.Coachmark=1e3,t.Layer=1e6,t.KeytipLayer=1000001}(nt||(nt={}));var at,st=i(823),lt=i(338),ct=i(540),ft=function(){return ft=Object.assign||function(t){for(var n,i=1,e=arguments.length;i<e;i++)for(var r in n=arguments[i])Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);return t},ft.apply(this,arguments)},ht="undefined"==typeof window?i.g:window,dt=ht&&ht.CSPSettings&&ht.CSPSettings.nonce,vt=((at=ht.__themeState__||{theme:void 0,lastStyleElement:void 0,registeredStyles:[]}).runState||(at=ft({},at,{perf:{count:0,duration:0},runState:{flushTimer:0,mode:0,buffer:[]}})),at.registeredThemableStyles||(at=ft({},at,{registeredThemableStyles:[]})),ht.__themeState__=at,at);function pt(t){vt.theme=t,function(){if(vt.theme){for(var t=[],n=0,i=vt.registeredThemableStyles;n<i.length;n++){var e=i[n];t.push(e.themableStyle)}t.length>0&&(void 0===(o=1)&&(o=3),3!==o&&2!==o||(gt(vt.registeredStyles),vt.registeredStyles=[]),3!==o&&1!==o||(gt(vt.registeredThemableStyles),vt.registeredThemableStyles=[]),r=[].concat.apply([],t),vt.loadStyles?vt.loadStyles(mt(r).styleString,r):function(t){if("undefined"!=typeof document){var n=document.getElementsByTagName("head")[0],i=document.createElement("style"),e=mt(t),r=e.styleString,o=e.themable;i.setAttribute("data-load-themed-styles","true"),i.type="text/css",dt&&i.setAttribute("nonce",dt),i.appendChild(document.createTextNode(r)),vt.perf.count++,n.appendChild(i);var u=document.createEvent("HTMLEvents");u.initEvent("styleinsert",!0,!1),u.args={newStyle:i},document.dispatchEvent(u);var a={styleElement:i,themableStyle:t};o?vt.registeredThemableStyles.push(a):vt.registeredStyles.push(a)}}(r))}var r,o}()}function gt(t){t.forEach((function(t){var n=t&&t.styleElement;n&&n.parentElement&&n.parentElement.removeChild(n)}))}function mt(t){var n=vt.theme,i=!1;return{styleString:(t||[]).map((function(t){var e=t.theme;if(e){i=!0;var r=n?n[e]:void 0,o=t.defaultValue||"inherit";return n&&!r&&console&&!(e in n)&&"undefined"!=typeof DEBUG&&DEBUG&&console.warn('Theming value not provided for "'+e+'". Falling back to "'+o+'".'),r||o}return t.rawString})).join(""),themable:i}}var yt=i(143),bt=(0,yt.a)({}),xt=[],Ct="theme";function wt(){var t,n,i,e=(0,lt.z)();(null===(n=null==e?void 0:e.FabricConfig)||void 0===n?void 0:n.legacyTheme)?function(t,n){var i;void 0===n&&(n=!1),bt=(0,yt.a)(t,n),pt((0,st.Cl)((0,st.Cl)((0,st.Cl)((0,st.Cl)({},bt.palette),bt.semanticColors),bt.effects),function(t){for(var n={},i=0,e=Object.keys(t.fonts);i<e.length;i++)for(var r=e[i],o=t.fonts[r],u=0,a=Object.keys(o);u<a.length;u++){var s=a[u],l=r+s.charAt(0).toUpperCase()+s.slice(1),c=o[s];"fontSize"===s&&"number"==typeof c&&(c+="px"),n[l]=c}return n}(bt))),ct.X.applySettings(((i={})[Ct]=bt,i)),xt.forEach((function(t){try{t(bt)}catch(t){}}))}(e.FabricConfig.legacyTheme):ct.X.getSettings([Ct]).theme||((null===(i=null==e?void 0:e.FabricConfig)||void 0===i?void 0:i.theme)&&(bt=(0,yt.a)(e.FabricConfig.theme)),ct.X.applySettings(((t={})[Ct]=bt,t)))}function Mt(t){return void 0===t&&(t=!1),!0===t&&(bt=(0,yt.a)({},t)),bt}wt();var kt=i(302),St=i(41);(0,i(887).v)("@fluentui/style-utilities","8.11.7"),wt()},302:function(t,n,i){i.d(n,{b:function(){return e}});var e={themeDarker:"#004578",themeDark:"#005a9e",themeDarkAlt:"#106ebe",themePrimary:"#0078d4",themeSecondary:"#2b88d8",themeTertiary:"#71afe5",themeLight:"#c7e0f4",themeLighter:"#deecf9",themeLighterAlt:"#eff6fc",black:"#000000",blackTranslucent40:"rgba(0,0,0,.4)",neutralDark:"#201f1e",neutralPrimary:"#323130",neutralPrimaryAlt:"#3b3a39",neutralSecondary:"#605e5c",neutralSecondaryAlt:"#8a8886",neutralTertiary:"#a19f9d",neutralTertiaryAlt:"#c8c6c4",neutralQuaternary:"#d2d0ce",neutralQuaternaryAlt:"#e1dfdd",neutralLight:"#edebe9",neutralLighter:"#f3f2f1",neutralLighterAlt:"#faf9f8",accent:"#0078d4",white:"#ffffff",whiteTranslucent40:"rgba(255,255,255,.4)",yellowDark:"#d29200",yellow:"#ffb900",yellowLight:"#fff100",orange:"#d83b01",orangeLight:"#ea4300",orangeLighter:"#ff8c00",redDark:"#a4262c",red:"#e81123",magentaDark:"#5c005c",magenta:"#b4009e",magentaLight:"#e3008c",purpleDark:"#32145a",purple:"#5c2d91",purpleLight:"#b4a0ff",blueDark:"#002050",blueMid:"#00188f",blue:"#0078d4",blueLight:"#00bcf2",tealDark:"#004b50",teal:"#008272",tealLight:"#00b294",greenDark:"#004b1c",green:"#107c10",greenLight:"#bad80a"}},143:function(t,n,i){i.d(n,{a:function(){return D}});var e,r=i(302);!function(t){t.depth0="0 0 0 0 transparent",t.depth4="0 1.6px 3.6px 0 rgba(0, 0, 0, 0.132), 0 0.3px 0.9px 0 rgba(0, 0, 0, 0.108)",t.depth8="0 3.2px 7.2px 0 rgba(0, 0, 0, 0.132), 0 0.6px 1.8px 0 rgba(0, 0, 0, 0.108)",t.depth16="0 6.4px 14.4px 0 rgba(0, 0, 0, 0.132), 0 1.2px 3.6px 0 rgba(0, 0, 0, 0.108)",t.depth64="0 25.6px 57.6px 0 rgba(0, 0, 0, 0.22), 0 4.8px 14.4px 0 rgba(0, 0, 0, 0.18)"}(e||(e={}));var o={elevation4:e.depth4,elevation8:e.depth8,elevation16:e.depth16,elevation64:e.depth64,roundedCorner2:"2px",roundedCorner4:"4px",roundedCorner6:"6px"},u=i(800),a=i(40),s=i(289),l=i(41),c="'Segoe UI', '".concat(l.Dn.WestEuropean,"'"),f={ar:l.bi.Arabic,bg:l.bi.Cyrillic,cs:l.bi.EastEuropean,el:l.bi.Greek,et:l.bi.EastEuropean,he:l.bi.Hebrew,hi:l.bi.Hindi,hr:l.bi.EastEuropean,hu:l.bi.EastEuropean,ja:l.bi.Japanese,kk:l.bi.EastEuropean,ko:l.bi.Korean,lt:l.bi.EastEuropean,lv:l.bi.EastEuropean,pl:l.bi.EastEuropean,ru:l.bi.Cyrillic,sk:l.bi.EastEuropean,"sr-latn":l.bi.EastEuropean,th:l.bi.Thai,tr:l.bi.EastEuropean,uk:l.bi.Cyrillic,vi:l.bi.Vietnamese,"zh-hans":l.bi.ChineseSimplified,"zh-hant":l.bi.ChineseTraditional,hy:l.bi.Armenian,ka:l.bi.Georgian};function h(t,n,i){return{fontFamily:i,MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontSize:t,fontWeight:n}}var d,v,p,g=i(543),m=i(338),y=i(468),b="language",x=(v=function(t){for(var n in f)if(f.hasOwnProperty(n)&&t&&0===n.indexOf(t))return f[n];return c}(function(t){if(void 0===t&&(t="sessionStorage"),void 0===d){var n=(0,g.Y)(),i="localStorage"===t?function(t){var n=null;try{var i=(0,m.z)();n=i?i.localStorage.getItem(t):null}catch(t){}return n}(b):"sessionStorage"===t?y.G(b):void 0;i&&(d=i),void 0===d&&n&&(d=n.documentElement.getAttribute("lang")),void 0===d&&(d="en")}return d}()),p="".concat(v,", ").concat("'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif"),{tiny:h(l.s.mini,l.BO.regular,p),xSmall:h(l.s.xSmall,l.BO.regular,p),small:h(l.s.small,l.BO.regular,p),smallPlus:h(l.s.smallPlus,l.BO.regular,p),medium:h(l.s.medium,l.BO.regular,p),mediumPlus:h(l.s.mediumPlus,l.BO.regular,p),large:h(l.s.large,l.BO.regular,p),xLarge:h(l.s.xLarge,l.BO.semibold,p),xLargePlus:h(l.s.xLargePlus,l.BO.semibold,p),xxLarge:h(l.s.xxLarge,l.BO.semibold,p),xxLargePlus:h(l.s.xxLargePlus,l.BO.semibold,p),superLarge:h(l.s.superLarge,l.BO.semibold,p),mega:h(l.s.mega,l.BO.semibold,p)});function C(t,n,i,e){!function(t){var n=a.nr.getInstance(),i=(0,s.bz)((0,u.Iy)(),t);if(!n.classNameFromKey(i)){var e=n.getClassName();n.insertRule("@font-face{".concat(i,"}"),!0),n.cacheClassName(e,i,[],["font-face",i])}}({fontFamily:t="'".concat(t,"'"),src:(void 0!==e?"local('".concat(e,"'),"):"")+"url('".concat(n,".woff2') format('woff2'),")+"url('".concat(n,".woff') format('woff')"),fontWeight:i,fontStyle:"normal",fontDisplay:"swap"})}function w(t,n,i,e,r){void 0===e&&(e="segoeui");var o="".concat(t,"/").concat(i,"/").concat(e);C(n,o+"-light",l.BO.light,r&&r+" Light"),C(n,o+"-semilight",l.BO.semilight,r&&r+" SemiLight"),C(n,o+"-regular",l.BO.regular,r),C(n,o+"-semibold",l.BO.semibold,r&&r+" SemiBold"),C(n,o+"-bold",l.BO.bold,r&&r+" Bold")}function M(t){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];for(var e=0,r=n;e<r.length;e++)k(t||{},r[e]);return t}function k(t,n,i){for(var e in void 0===i&&(i=[]),i.push(n),n)if(n.hasOwnProperty(e)&&"__proto__"!==e&&"constructor"!==e&&"prototype"!==e){var r=n[e];if("object"!=typeof r||null===r||Array.isArray(r))t[e]=r;else{var o=i.indexOf(r)>-1;t[e]=o?r:k(t[e]||{},r,i)}}return i.pop(),t}!function(t){if(t){var n="".concat(t,"/fonts");w(n,l.Dn.Thai,"leelawadeeui-thai","leelawadeeui"),w(n,l.Dn.Arabic,"segoeui-arabic"),w(n,l.Dn.Cyrillic,"segoeui-cyrillic"),w(n,l.Dn.EastEuropean,"segoeui-easteuropean"),w(n,l.Dn.Greek,"segoeui-greek"),w(n,l.Dn.Hebrew,"segoeui-hebrew"),w(n,l.Dn.Vietnamese,"segoeui-vietnamese"),w(n,l.Dn.WestEuropean,"segoeui-westeuropean","segoeui","Segoe UI"),w(n,l.bi.Selawik,"selawik","selawik"),w(n,l.Dn.Armenian,"segoeui-armenian"),w(n,l.Dn.Georgian,"segoeui-georgian"),C("Leelawadee UI Web","".concat(n,"/leelawadeeui-thai/leelawadeeui-semilight"),l.BO.light),C("Leelawadee UI Web","".concat(n,"/leelawadeeui-thai/leelawadeeui-bold"),l.BO.semibold)}}(function(){var t,n,i=null===(t=(0,m.z)())||void 0===t?void 0:t.FabricConfig;return null!==(n=null==i?void 0:i.fontBaseUrl)&&void 0!==n?n:"https://res-1.cdn.office.net/files/fabric-cdn-prod_20230815.002/assets"}());var S=i(823);function A(t,n,i,e,r){return void 0===r&&(r=!1),function(t,n){var i="";return!0===n&&(i=" /* @deprecated */"),t.listTextColor=t.listText+i,t.menuItemBackgroundChecked+=i,t.warningHighlight+=i,t.warningText=t.messageText+i,t.successText+=i,t}(L(t,n,(0,S.Cl)({primaryButtonBorder:"transparent",errorText:e?"#F1707B":"#a4262c",messageText:e?"#F3F2F1":"#323130",messageLink:e?"#6CB8F6":"#005A9E",messageLinkHovered:e?"#82C7FF":"#004578",infoIcon:e?"#C8C6C4":"#605e5c",errorIcon:e?"#F1707B":"#A80000",blockingIcon:e?"#442726":"#FDE7E9",warningIcon:e?"#C8C6C4":"#797775",severeWarningIcon:e?"#FCE100":"#D83B01",successIcon:e?"#92C353":"#107C10",infoBackground:e?"#323130":"#f3f2f1",errorBackground:e?"#442726":"#FDE7E9",blockingBackground:e?"#442726":"#FDE7E9",warningBackground:e?"#433519":"#FFF4CE",severeWarningBackground:e?"#4F2A0F":"#FED9CC",successBackground:e?"#393D1B":"#DFF6DD",warningHighlight:e?"#fff100":"#ffb900",successText:e?"#92c353":"#107C10"},i),e),r)}function L(t,n,i,e,r){void 0===r&&(r=!1);var o={},u=t||{},a=u.white,s=u.black,l=u.themePrimary,c=u.themeDark,f=u.themeDarker,h=u.themeDarkAlt,d=u.themeLighter,v=u.neutralLight,p=u.neutralLighter,g=u.neutralDark,m=u.neutralQuaternary,y=u.neutralQuaternaryAlt,b=u.neutralPrimary,x=u.neutralSecondary,C=u.neutralSecondaryAlt,w=u.neutralTertiary,M=u.neutralTertiaryAlt,k=u.neutralLighterAlt,A=u.accent;return a&&(o.bodyBackground=a,o.bodyFrameBackground=a,o.accentButtonText=a,o.buttonBackground=a,o.primaryButtonText=a,o.primaryButtonTextHovered=a,o.primaryButtonTextPressed=a,o.inputBackground=a,o.inputForegroundChecked=a,o.listBackground=a,o.menuBackground=a,o.cardStandoutBackground=a),s&&(o.bodyTextChecked=s,o.buttonTextCheckedHovered=s),l&&(o.link=l,o.primaryButtonBackground=l,o.inputBackgroundChecked=l,o.inputIcon=l,o.inputFocusBorderAlt=l,o.menuIcon=l,o.menuHeader=l,o.accentButtonBackground=l),c&&(o.primaryButtonBackgroundPressed=c,o.inputBackgroundCheckedHovered=c,o.inputIconHovered=c),f&&(o.linkHovered=f),h&&(o.primaryButtonBackgroundHovered=h),d&&(o.inputPlaceholderBackgroundChecked=d),v&&(o.bodyBackgroundChecked=v,o.bodyFrameDivider=v,o.bodyDivider=v,o.variantBorder=v,o.buttonBackgroundCheckedHovered=v,o.buttonBackgroundPressed=v,o.listItemBackgroundChecked=v,o.listHeaderBackgroundPressed=v,o.menuItemBackgroundPressed=v,o.menuItemBackgroundChecked=v),p&&(o.bodyBackgroundHovered=p,o.buttonBackgroundHovered=p,o.buttonBackgroundDisabled=p,o.buttonBorderDisabled=p,o.primaryButtonBackgroundDisabled=p,o.disabledBackground=p,o.listItemBackgroundHovered=p,o.listHeaderBackgroundHovered=p,o.menuItemBackgroundHovered=p),m&&(o.primaryButtonTextDisabled=m,o.disabledSubtext=m),y&&(o.listItemBackgroundCheckedHovered=y),w&&(o.disabledBodyText=w,o.variantBorderHovered=(null==i?void 0:i.variantBorderHovered)||w,o.buttonTextDisabled=w,o.inputIconDisabled=w,o.disabledText=w),b&&(o.bodyText=b,o.actionLink=b,o.buttonText=b,o.inputBorderHovered=b,o.inputText=b,o.listText=b,o.menuItemText=b),k&&(o.bodyStandoutBackground=k,o.defaultStateBackground=k),g&&(o.actionLinkHovered=g,o.buttonTextHovered=g,o.buttonTextChecked=g,o.buttonTextPressed=g,o.inputTextHovered=g,o.menuItemTextHovered=g),x&&(o.bodySubtext=x,o.focusBorder=x,o.inputBorder=x,o.smallInputBorder=x,o.inputPlaceholderText=x),C&&(o.buttonBorder=C),M&&(o.disabledBodySubtext=M,o.disabledBorder=M,o.buttonBackgroundChecked=M,o.menuDivider=M),A&&(o.accentButtonBackground=A),(null==n?void 0:n.elevation4)&&(o.cardShadow=n.elevation4),!e&&(null==n?void 0:n.elevation8)?o.cardShadowHovered=n.elevation8:o.variantBorderHovered&&(o.cardShadowHovered="0 0 1px "+o.variantBorderHovered),(0,S.Cl)((0,S.Cl)({},o),i)}var V={s2:"4px",s1:"8px",m:"16px",l1:"20px",l2:"32px"};function D(t,n){void 0===t&&(t={}),void 0===n&&(n=!1);var i=!!t.isInverted;return function(t,n){var i,e,r;void 0===n&&(n={});var o=M({},t,n,{semanticColors:L(n.palette,n.effects,n.semanticColors,void 0===n.isInverted?t.isInverted:n.isInverted)});if((null===(i=n.palette)||void 0===i?void 0:i.themePrimary)&&!(null===(e=n.palette)||void 0===e?void 0:e.accent)&&(o.palette.accent=n.palette.themePrimary),n.defaultFontStyle)for(var u=0,a=Object.keys(o.fonts);u<a.length;u++){var s=a[u];o.fonts[s]=M(o.fonts[s],n.defaultFontStyle,null===(r=null==n?void 0:n.fonts)||void 0===r?void 0:r[s])}return o}({palette:r.b,effects:o,fonts:x,spacing:V,isInverted:i,disableGlobalClassNames:!1,semanticColors:A(r.b,o,void 0,i,n),rtl:void 0},t)}},41:function(t,n,i){var e,r,o,u,a;i.d(n,{BO:function(){return u},Dn:function(){return e},bi:function(){return r},s:function(){return o}}),function(t){t.Arabic="Segoe UI Web (Arabic)",t.Cyrillic="Segoe UI Web (Cyrillic)",t.EastEuropean="Segoe UI Web (East European)",t.Greek="Segoe UI Web (Greek)",t.Hebrew="Segoe UI Web (Hebrew)",t.Thai="Leelawadee UI Web",t.Vietnamese="Segoe UI Web (Vietnamese)",t.WestEuropean="Segoe UI Web (West European)",t.Selawik="Selawik Web",t.Armenian="Segoe UI Web (Armenian)",t.Georgian="Segoe UI Web (Georgian)"}(e||(e={})),function(t){t.Arabic="'".concat(e.Arabic,"'"),t.ChineseSimplified="'Microsoft Yahei UI', Verdana, Simsun",t.ChineseTraditional="'Microsoft Jhenghei UI', Pmingliu",t.Cyrillic="'".concat(e.Cyrillic,"'"),t.EastEuropean="'".concat(e.EastEuropean,"'"),t.Greek="'".concat(e.Greek,"'"),t.Hebrew="'".concat(e.Hebrew,"'"),t.Hindi="'Nirmala UI'",t.Japanese="'Yu Gothic UI', 'Meiryo UI', Meiryo, 'MS Pgothic', Osaka",t.Korean="'Malgun Gothic', Gulim",t.Selawik="'".concat(e.Selawik,"'"),t.Thai="'Leelawadee UI Web', 'Kmer UI'",t.Vietnamese="'".concat(e.Vietnamese,"'"),t.WestEuropean="'".concat(e.WestEuropean,"'"),t.Armenian="'".concat(e.Armenian,"'"),t.Georgian="'".concat(e.Georgian,"'")}(r||(r={})),function(t){t.size10="10px",t.size12="12px",t.size14="14px",t.size16="16px",t.size18="18px",t.size20="20px",t.size24="24px",t.size28="28px",t.size32="32px",t.size42="42px",t.size68="68px",t.mini="10px",t.xSmall="10px",t.small="12px",t.smallPlus="12px",t.medium="14px",t.mediumPlus="16px",t.icon="16px",t.large="18px",t.xLarge="20px",t.xLargePlus="24px",t.xxLarge="28px",t.xxLargePlus="32px",t.superLarge="42px",t.mega="68px"}(o||(o={})),function(t){t.light=100,t.semilight=300,t.regular=400,t.semibold=600,t.bold=700}(u||(u={})),function(t){t.xSmall="10px",t.small="12px",t.medium="16px",t.large="20px"}(a||(a={}))},873:function(t,n,i){i.d(n,{Z:function(){return g}});var e=i(40),r=i(823),o=i(506),u=i(962),a=i(289),s=i(638);var l=i(259),c=i(338),f=50,h=5,d=0,v=e.nr.getInstance();v&&v.onReset&&v.onReset((function(){return d++}));var p="__retval__";function g(t){void 0===t&&(t={});var n=new Map,i=0,v=0,g=d;return function(m,b){var x;if(void 0===b&&(b={}),t.useStaticStyles&&"function"==typeof m&&m.__noStyleOverride__)return m(b);v++;var C=m?m.__shadowConfig__:void 0,w=C&&C.window?C.window:"__default__";n.has(w)||n.set(w,new Map);var M=n.get(w),k=b.theme,S=k&&void 0!==k.rtl?k.rtl:(0,l.jI)(),A=t.disableCaching;if(g!==d&&(g=d,n.set(w,new Map),M=n.get(w),i=0),t.disableCaching||(M=y(n.get(w),m),M=y(M,b)),!A&&M[p]||(M[p]=void 0===m?{}:function(t,n){var i,l={subComponentStyles:{}},c=void 0;(0,s.db)(t[0])?(c=t[0],i=t[1]):i=t[0],null!=c||(c=null==n?void 0:n.shadowConfig);var f=(0,r.Cl)((0,r.Cl)({},n),{shadowConfig:c});if(!i&&t.length<=1)return{subComponentStyles:{}};var h=e.nr.getInstance(c);f.stylesheet=h;var d=o.T.apply(void 0,t),v=[];for(var p in d)if(d.hasOwnProperty(p)){if("subComponentStyles"===p){l.subComponentStyles=d.subComponentStyles||{};continue}if("__shadowConfig__"===p)continue;var g=d[p],m=(0,u.h)(h,g),y=m.classes,b=m.objects;(null==b?void 0:b.length)?(w=(0,a.GJ)(f||{},{displayName:p},b))&&(v.push(w),l[p]=y.concat([w.className]).join(" ")):l[p]=y.join(" ")}for(var x=0,C=v;x<C.length;x++){var w;(w=C[x])&&(0,a.Ae)(w,null==n?void 0:n.specificityMultiplier,c)}return l}(["function"==typeof m?m(b):m],{shadowConfig:m.__shadowConfig__,rtl:!!S,specificityMultiplier:t.useStaticStyles?h:void 0}),A||i++),i>(t.cacheSize||f)){var L=(0,c.z)();(null===(x=null==L?void 0:L.FabricConfig)||void 0===x?void 0:x.enableClassNameCacheFullWarning)&&(console.warn("Styles are being recalculated too frequently. Cache miss rate is ".concat(i,"/").concat(v,".")),console.trace()),n.get(w).clear(),i=0,t.disableCaching=!0}return M[p]}}function m(t,n){return n=function(t){switch(t){case void 0:return"__undefined__";case null:return"__null__";default:return t}}(n),t.has(n)||t.set(n,new Map),t.get(n)}function y(t,n){if("function"==typeof n)if(n.__cachedInputs__)for(var i=0,e=n.__cachedInputs__;i<e.length;i++)t=m(t,e[i]);else t=m(t,n);else if("object"==typeof n)for(var r in n)n.hasOwnProperty(r)&&(t=m(t,n[r]));return t}},540:function(t,n,i){i.d(n,{X:function(){return v}});var e=i(823),r=i(338),o="__globalSettings__",u="__callbacks__",a=0,s=function(){function t(){}return t.getValue=function(t,n){var i=l();return void 0===i[t]&&(i[t]="function"==typeof n?n():n),i[t]},t.setValue=function(t,n){var i=l(),e=i[u],r=i[t];if(n!==r){i[t]=n;var o={oldValue:r,value:n,key:t};for(var a in e)e.hasOwnProperty(a)&&e[a](o)}return n},t.addChangeListener=function(t){var n=t.__id__,i=c();n||(n=t.__id__=String(a++)),i[n]=t},t.removeChangeListener=function(t){delete c()[t.__id__]},t}();function l(){var t,n=(0,r.z)()||{};return n[o]||(n[o]=((t={})[u]={},t)),n[o]}function c(){return l()[u]}var f={settings:{},scopedSettings:{},inCustomizerContext:!1},h=s.getValue("customizations",{settings:{},scopedSettings:{},inCustomizerContext:!1}),d=[],v=function(){function t(){}return t.reset=function(){h.settings={},h.scopedSettings={}},t.applySettings=function(n){h.settings=(0,e.Cl)((0,e.Cl)({},h.settings),n),t._raiseChange()},t.applyScopedSettings=function(n,i){h.scopedSettings[n]=(0,e.Cl)((0,e.Cl)({},h.scopedSettings[n]),i),t._raiseChange()},t.getSettings=function(t,n,i){void 0===i&&(i=f);for(var e={},r=n&&i.scopedSettings[n]||{},o=n&&h.scopedSettings[n]||{},u=0,a=t;u<a.length;u++){var s=a[u];e[s]=r[s]||i.settings[s]||o[s]||h.settings[s]}return e},t.applyBatchedUpdates=function(n,i){t._suppressUpdates=!0;try{n()}catch(t){}t._suppressUpdates=!1,i||t._raiseChange()},t.observe=function(t){d.push(t)},t.unobserve=function(t){d=d.filter((function(n){return n!==t}))},t._raiseChange=function(){t._suppressUpdates||d.forEach((function(t){return t()}))},t}()},770:function(t,n,i){i.d(n,{z:function(){return e}});var e=i(594).createContext({customizations:{inCustomizerContext:!1,settings:{},scopedSettings:{}}})},927:function(t,n,i){i.d(n,{m:function(){return u}});var e=i(594),r=i(540),o=i(770);function u(t,n){var i,u=(i=e.useState(0)[1],function(){return i((function(t){return++t}))}),a=e.useContext(o.z).customizations,s=a.inCustomizerContext;return e.useEffect((function(){return s||r.X.observe(u),function(){s||r.X.unobserve(u)}}),[s]),r.X.getSettings(t,n,a)}},921:function(t,n,i){function e(){return"undefined"!=typeof window&&!(!window.document||!window.document.createElement)}i.d(n,{S:function(){return e}})},543:function(t,n,i){i.d(n,{Y:function(){return r}});var e=i(921);function r(t){if((0,e.S)()&&"undefined"!=typeof document){var n=t;return n&&n.ownerDocument?n.ownerDocument:document}}},338:function(t,n,i){i.d(n,{z:function(){return o}});var e=i(921),r=void 0;try{r=window}catch(t){}function o(t){if((0,e.S)()&&void 0!==r){var n=t;return n&&n.ownerDocument&&n.ownerDocument.defaultView?n.ownerDocument.defaultView:r}}},753:function(t,n,i){i.d(n,{J5:function(){return f},J9:function(){return c}});var e=i(40),r=!1,o=0,u={empty:!0},a={},s="undefined"==typeof WeakMap?null:WeakMap;function l(){o++}function c(t,n,i){if(void 0===n&&(n=100),void 0===i&&(i=!1),!s)return t;if(!r){var c=e.nr.getInstance();c&&c.onReset&&e.nr.getInstance().onReset(l),r=!0}var f,d=0,v=o;return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var s,l=f;(void 0===f||v!==o||n>0&&d>n)&&(f=h(),d=0,v=o),l=f;for(var c=0;c<e.length;c++){var p=(s=e[c])?"object"==typeof s||"function"==typeof s?s:(a[s]||(a[s]={val:s}),a[s]):u;l.map.has(p)||l.map.set(p,h()),l=l.map.get(p)}return l.hasOwnProperty("value")||(l.value=t.apply(void 0,e),d++),!i||null!==l.value&&void 0!==l.value||(l.value=t.apply(void 0,e)),l.value}}function f(t){if(!s)return t;var n=new s;return function(i){if(!i||"function"!=typeof i&&"object"!=typeof i)return t(i);if(n.has(i))return n.get(i);var e=t(i);return n.set(i,e),e}}function h(){return{map:s?new s:null}}},259:function(t,n,i){i.d(n,{jI:function(){return s}});var e,r=i(543),o=i(468),u=i(800),a="isRTL";function s(t){if(void 0===t&&(t={}),void 0!==t.rtl)return t.rtl;if(void 0===e){var n=(0,o.G)(a);null!==n&&function(t,n){void 0===n&&(n=!1);var i=(0,r.Y)();i&&i.documentElement.setAttribute("dir",t?"rtl":"ltr"),n&&(0,o.S)(a,t?"1":"0"),e=t,(0,u.DU)(e)}(e="1"===n);var i=(0,r.Y)();void 0===e&&i&&(e="rtl"===(i.body&&i.body.getAttribute("dir")||i.documentElement.getAttribute("dir")),(0,u.DU)(e))}return!!e}},468:function(t,n,i){i.d(n,{G:function(){return r},S:function(){return o}});var e=i(338);function r(t){var n=null;try{var i=(0,e.z)();n=i?i.sessionStorage.getItem(t):null}catch(t){}return n}function o(t,n){var i;try{null===(i=(0,e.z)())||void 0===i||i.sessionStorage.setItem(t,n)}catch(t){}}},517:function(t,n,i){i.d(n,{Y2:function(){return e}});var e="ms-Fabric--isFocusVisible"},566:function(t,n,i){i.d(n,{I:function(){return d}});var e=i(823),r=i(594),o=i(506),u=i(638),a=function(){return!1},s=function(){},l=r.createContext({stylesheets:new Map,useAdoptedStylesheetEx:a,useAdoptedStylesheet:a,useShadowConfig:function(){return u.ou},useMergeStylesShadowRootContext:s,useHasMergeStylesShadowRootContext:a,useMergeStylesRootStylesheets:function(){return new Map},useWindow:s,useStyled:s}),c=function(){var t=r.useContext(l);return{useAdoptedStylesheet:t.useAdoptedStylesheet,useAdoptedStylesheetEx:t.useAdoptedStylesheetEx,useShadowConfig:t.useShadowConfig,useMergeStylesShadowRootContext:t.useMergeStylesShadowRootContext,useHasMergeStylesShadowRootContext:t.useHasMergeStylesShadowRootContext,useMergeStylesRootStylesheets:t.useMergeStylesRootStylesheets,useWindow:t.useWindow,useStyled:t.useStyled}},f=i(927),h=["theme","styles"];function d(t,n,i,u,a){var s=(u=u||{scope:"",fields:void 0}).scope,l=u.fields,d=void 0===l?h:l,v=r.forwardRef((function(u,a){var l=r.useRef(),h=(0,f.m)(d,s),v=h.styles,p=(h.dir,(0,e.Tt)(h,["styles","dir"])),g=i?i(u):void 0,m=c().useStyled,y=l.current&&l.current.__cachedInputs__||[],b=u.styles;if(!l.current||v!==y[1]||b!==y[2]){var x=function(t){return function(t){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];for(var e=[],r=0,u=n;r<u.length;r++){var a=u[r];a&&e.push("function"==typeof a?a(t):a)}return 1===e.length?e[0]:e.length?o.T.apply(void 0,e):{}}(t,n,v,b)};x.__cachedInputs__=[n,v,b],x.__noStyleOverride__=!v&&!b,l.current=x}return l.current.__shadowConfig__=m(s),r.createElement(t,(0,e.Cl)({ref:a},p,g,u,{styles:l.current}))}));v.displayName="Styled".concat(t.displayName||t.name);var p=a?r.memo(v):v;return v.displayName&&(p.displayName=v.displayName),p}},594:function(t){t.exports=React},823:function(t,n,i){i.d(n,{C6:function(){return r},Cl:function(){return o},Tt:function(){return u},fX:function(){return a}});var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])},e(t,n)};function r(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}var o=function(){return o=Object.assign||function(t){for(var n,i=1,e=arguments.length;i<e;i++)for(var r in n=arguments[i])Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);return t},o.apply(this,arguments)};function u(t,n){var i={};for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&n.indexOf(e)<0&&(i[e]=t[e]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(e=Object.getOwnPropertySymbols(t);r<e.length;r++)n.indexOf(e[r])<0&&Object.prototype.propertyIsEnumerable.call(t,e[r])&&(i[e[r]]=t[e[r]])}return i}function a(t,n,i){if(i||2===arguments.length)for(var e,r=0,o=n.length;r<o;r++)!e&&r in n||(e||(e=Array.prototype.slice.call(n,0,r)),e[r]=n[r]);return t.concat(e||Array.prototype.slice.call(n))}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError}},n={};function i(e){var r=n[e];if(void 0!==r)return r.exports;var o=n[e]={exports:{}};return t[e](o,o.exports,i),o.exports}i.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(n,{a:n}),n},i.d=function(t,n){for(var e in n)i.o(n,e)&&!i.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:n[e]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),i.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var e={};i.r(e),i.d(e,{AreaChart:function(){return bh},CartesianChart:function(){return _f},ChartHoverCard:function(){return zs.ChartHoverCard},DataVizGradientPalette:function(){return js},DataVizPalette:function(){return ff},DeclarativeChart:function(){return Tv},DonutChart:function(){return Cf},GaugeChart:function(){return av},GaugeChartVariant:function(){return Ud},GaugeValueFormat:function(){return qd},GroupedVerticalBarChart:function(){return Gh},HeatMapChart:function(){return Kh},HorizontalBarChart:function(){return Pl},HorizontalBarChartVariant:function(){return v},HorizontalBarChartWithAxis:function(){return nv},Legends:function(){return Ac},LineChart:function(){return ih},MultiStackedBarChart:function(){return Eh},MultiStackedBarChartVariant:function(){return kh},NodesComposition:function(){return Sd},PieChart:function(){return Vh},SankeyChart:function(){return Dd},Shape:function(){return Mc},Sparkline:function(){return Jd},StackedBarChart:function(){return Bh},Textbox:function(){return Zf},TreeChart:function(){return Xd},TreeTraverse:function(){return Ad},VerticalBarChart:function(){return Ih},VerticalStackedBarChart:function(){return jh},getChartHoverCardStyles:function(){return qh.J},getColorFromToken:function(){return yf},getGradientFromToken:function(){return Zs},getNextColor:function(){return mf},getNextGradient:function(){return Us}});var r=i(566),o=i(823),u=i(594),a=i(873),s=i(259),l=i(338),c=i(40),f="__currentId__",h="id__",d=(0,l.z)()||{};void 0===d[f]&&(d[f]=0);var v,p=!1;function g(t){if(!p){var n=c.nr.getInstance();n&&n.onReset&&n.onReset(m),p=!0}var i=d[f]++;return(void 0===t?h:t)+i}function m(t){void 0===t&&(t=0),d[f]=t}function y(t,n,i){void 0===i&&(i=0);for(var e=-1,r=i;t&&r<t.length;r++)if(n(t[r],r)){e=r;break}return e}function b(t,n){var i=y(t,n);if(!(i<0))return t[i]}!function(t){t.PartToWhole="part-to-whole",t.AbsoluteScale="absolute-scale"}(v||(v={}));var x={topLeftEdge:0,topCenter:1,topRightEdge:2,topAutoEdge:3,bottomLeftEdge:4,bottomCenter:5,bottomRightEdge:6,bottomAutoEdge:7,leftTopEdge:8,leftCenter:9,leftBottomEdge:10,rightTopEdge:11,rightCenter:12,rightBottomEdge:13};function C(t,n){var i,e;if(void 0===n&&(n=!0),!t)return null;var r=n&&function(t){var n,i;return t&&(i=t)&&i._virtual&&(n=t._virtual.parent),n}(t);return r||("function"!=typeof t.assignedElements&&(null===(i=t.assignedSlot)||void 0===i?void 0:i.parentNode)?t.assignedSlot:11===(null===(e=t.parentNode)||void 0===e?void 0:e.nodeType)?t.parentNode.host:t.parentNode)}function w(t,n,i){return null!=i||(i=document),!t||t===i.body||t instanceof Document?null:n(t)?t:w(C(t),n)}function M(t,n,i){void 0===i&&(i=!0);var e=!1;if(t&&n)if(i)if(t===n)e=!0;else for(e=!1;n;){var r=C(n);if(r===t){e=!0;break}n=r}else t.contains&&(e=t.contains(n));return e}var k=i(543),S="data-is-focusable",A="data-is-visible",L="data-focuszone-id",V="data-is-sub-focuszone";function D(t,n,i){var e=T(t,t,!0,!1,!1,!0,void 0,void 0,n,i);return!!e&&(H(e),!0)}function N(t,n,i,e,r,o,u,a,s){var l;if(!n||!u&&n===t)return null;var c=E(n);if(r&&c&&(o||!B(n)&&!F(n))){var f=N(t,n.lastElementChild||s&&(null===(l=n.shadowRoot)||void 0===l?void 0:l.lastElementChild),!0,!0,!0,o,u,a,s);if(f){if(a&&P(f,!0,s)||!a)return f;var h=N(t,f.previousElementSibling,!0,!0,!0,o,u,a,s);if(h)return h;for(var d=f.parentElement;d&&d!==n;){var v=N(t,d.previousElementSibling,!0,!0,!0,o,u,a,s);if(v)return v;d=d.parentElement}}}return i&&c&&P(n,a,s)?n:N(t,n.previousElementSibling,!0,!0,!0,o,u,a,s)||(e?null:N(t,n.parentElement,!0,!1,!1,o,u,a,s))}function T(t,n,i,e,r,o,u,a,s,l){var c;if(!n||n===t&&r&&!u)return null;var f=(s?O:E)(n);if(i&&f&&P(n,a,l))return n;if(!r&&f&&(o||!B(n)&&!F(n))){var h=T(t,n.firstElementChild||l&&(null===(c=n.shadowRoot)||void 0===c?void 0:c.firstElementChild),!0,!0,!1,o,u,a,s,l);if(h)return h}return n===t?null:T(t,n.nextElementSibling,!0,!0,!1,o,u,a,s,l)||(e?null:T(t,n.parentElement,!1,!1,!0,o,u,a,s,l))}function E(t){if(!t||!t.getAttribute)return!1;var n=t.getAttribute(A);return null!=n?"true"===n:0!==t.offsetHeight||null!==t.offsetParent||!0===t.isVisible}function O(t,n){var i=null!=n?n:(0,l.z)();return!!t&&E(t)&&!t.hidden&&"hidden"!==i.getComputedStyle(t).visibility}function P(t,n,i){if(void 0===i&&(i=!0),!t||t.disabled)return!1;var e=0,r=null;t&&t.getAttribute&&(r=t.getAttribute("tabIndex"))&&(e=parseInt(r,10));var o=t.getAttribute?t.getAttribute(S):null,u=null!==r&&e>=0,a=!(!i||!t.shadowRoot||!t.shadowRoot.delegatesFocus),s=!!t&&"false"!==o&&("A"===t.tagName||"BUTTON"===t.tagName||"INPUT"===t.tagName||"TEXTAREA"===t.tagName||"SELECT"===t.tagName||"true"===o||u||a);return n?-1!==e&&s:s}function B(t){return!!(t&&t.getAttribute&&t.getAttribute(L))}function F(t){return!(!t||!t.getAttribute||"true"!==t.getAttribute(V))}var _=void 0;function H(t){if(t){var n=(0,l.z)(t);n&&(void 0!==_&&n.cancelAnimationFrame(_),_=n.requestAnimationFrame((function(){t&&t.focus(),_=void 0})))}}function R(t,n,i,e){return t.addEventListener(n,i,e),function(){return t.removeEventListener(n,i,e)}}function I(t,n){for(var i=(0,o.Cl)({},n),e=0,r=Object.keys(t);e<r.length;e++){var u=r[e];void 0===i[u]&&(i[u]=t[u])}return i}var W=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var i={},e=0,r=t;e<r.length;e++)for(var o=r[e],u=0,a=Array.isArray(o)?o:Object.keys(o);u<a.length;u++)i[a[u]]=1;return i},z=W(["onCopy","onCut","onPaste","onCompositionEnd","onCompositionStart","onCompositionUpdate","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onInput","onSubmit","onLoad","onError","onKeyDown","onKeyDownCapture","onKeyPress","onKeyUp","onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting","onClick","onClickCapture","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onMouseUpCapture","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onScroll","onWheel","onPointerCancel","onPointerDown","onPointerEnter","onPointerLeave","onPointerMove","onPointerOut","onPointerOver","onPointerUp","onGotPointerCapture","onLostPointerCapture"]),j=W(["accessKey","children","className","contentEditable","dir","draggable","hidden","htmlFor","id","lang","ref","role","style","tabIndex","title","translate","spellCheck","name"]),Y=W(j,z),$=(W(Y,["form"]),W(Y,["height","loop","muted","preload","src","width"])),X=(W($,["poster"]),W(Y,["start"]),W(Y,["value"]),W(Y,["download","href","hrefLang","media","rel","target","type"]),W(Y,["autoFocus","disabled","form","formAction","formEncType","formMethod","formNoValidate","formTarget","type","value"])),G=(W(X,["accept","alt","autoCapitalize","autoComplete","checked","dirname","form","height","inputMode","list","max","maxLength","min","minLength","multiple","pattern","placeholder","readOnly","required","src","step","size","type","value","width"]),W(X,["autoCapitalize","cols","dirname","form","maxLength","minLength","placeholder","readOnly","required","rows","wrap"]),W(X,["form","multiple","required"]),W(Y,["selected","value"]),W(Y,["cellPadding","cellSpacing"]),W(Y,["rowSpan","scope"]),W(Y,["colSpan","headers","rowSpan","scope"]),W(Y,["span"]),W(Y,["span"]),W(Y,["acceptCharset","action","encType","encType","method","noValidate","target"]),W(Y,["allow","allowFullScreen","allowPaymentRequest","allowTransparency","csp","height","importance","referrerPolicy","sandbox","src","srcDoc","width"]),W(Y,["alt","crossOrigin","height","src","srcSet","useMap","width"]),Y);function q(t,n,i){for(var e=Array.isArray(n),r={},o=0,u=Object.keys(t);o<u.length;o++){var a=u[o];!(!e&&n[a]||e&&n.indexOf(a)>=0||0===a.indexOf("data-")||0===a.indexOf("aria-"))||i&&-1!==(null==i?void 0:i.indexOf(a))||(r[a]=t[a])}return r}function U(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var i=[],e=0,r=t;e<r.length;e++){var o=r[e];if(o)if("string"==typeof o)i.push(o);else if(o.hasOwnProperty("toString")&&"function"==typeof o.toString)i.push(o.toString());else for(var u in o)o[u]&&i.push(u)}return i.join(" ")}function Z(t){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];return K.apply(this,[null,t].concat(n))}function K(t,n){for(var i=[],e=2;e<arguments.length;e++)i[e-2]=arguments[e];n=n||{};for(var r=0,o=i;r<o.length;r++){var u=o[r];if(u)for(var a in u)!u.hasOwnProperty(a)||t&&!t(a)||(n[a]=u[a])}return n}var J,Q,tt,nt=i(916),it=((0,nt.Z)({overflow:"hidden !important"}),"data-is-scrollable");function et(t){for(var n=t,i=(0,k.Y)(t);n&&n!==i.body;){if("true"===n.getAttribute(it))return n;n=n.parentElement}for(n=t;n&&n!==i.body;){if("false"!==n.getAttribute(it)){var e=getComputedStyle(n),r=e?e.getPropertyValue("overflow-y"):"";if(r&&("scroll"===r||"auto"===r))return n}n=n.parentElement}return n&&n!==i.body||(n=(0,l.z)(t)),n}!function(t){t[t.top=1]="top",t[t.bottom=-1]="bottom",t[t.left=2]="left",t[t.right=-2]="right"}(Q||(Q={})),function(t){t[t.top=0]="top",t[t.bottom=1]="bottom",t[t.start=2]="start",t[t.end=3]="end"}(tt||(tt={}));var rt,ot=function(){function t(t,n,i,e){void 0===t&&(t=0),void 0===n&&(n=0),void 0===i&&(i=0),void 0===e&&(e=0),this.top=i,this.bottom=e,this.left=t,this.right=n}return Object.defineProperty(t.prototype,"width",{get:function(){return this.right-this.left},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.bottom-this.top},enumerable:!1,configurable:!0}),t.prototype.equals=function(t){return parseFloat(this.top.toFixed(4))===parseFloat(t.top.toFixed(4))&&parseFloat(this.bottom.toFixed(4))===parseFloat(t.bottom.toFixed(4))&&parseFloat(this.left.toFixed(4))===parseFloat(t.left.toFixed(4))&&parseFloat(this.right.toFixed(4))===parseFloat(t.right.toFixed(4))},t}();function ut(t,n,i){return{targetEdge:t,alignmentEdge:n,isAuto:i}}var at=((rt={})[x.topLeftEdge]=ut(Q.top,Q.left),rt[x.topCenter]=ut(Q.top),rt[x.topRightEdge]=ut(Q.top,Q.right),rt[x.topAutoEdge]=ut(Q.top,void 0,!0),rt[x.bottomLeftEdge]=ut(Q.bottom,Q.left),rt[x.bottomCenter]=ut(Q.bottom),rt[x.bottomRightEdge]=ut(Q.bottom,Q.right),rt[x.bottomAutoEdge]=ut(Q.bottom,void 0,!0),rt[x.leftTopEdge]=ut(Q.left,Q.top),rt[x.leftCenter]=ut(Q.left),rt[x.leftBottomEdge]=ut(Q.left,Q.bottom),rt[x.rightTopEdge]=ut(Q.right,Q.top),rt[x.rightCenter]=ut(Q.right),rt[x.rightBottomEdge]=ut(Q.right,Q.bottom),rt);function st(t,n){return!(t.top<n.top||t.bottom>n.bottom||t.left<n.left||t.right>n.right)}function lt(t,n){var i=[];return t.top<n.top&&i.push(Q.top),t.bottom>n.bottom&&i.push(Q.bottom),t.left<n.left&&i.push(Q.left),t.right>n.right&&i.push(Q.right),i}function ct(t,n){return t[Q[n]]}function ft(t,n,i){return t[Q[n]]=i,t}function ht(t,n){var i=kt(n);return(ct(t,i.positiveEdge)+ct(t,i.negativeEdge))/2}function dt(t,n){return t>0?n:-1*n}function vt(t,n){return dt(t,ct(n,t))}function pt(t,n,i){return dt(i,ct(t,i)-ct(n,i))}function gt(t,n,i,e){void 0===e&&(e=!0);var r=ct(t,n)-i,o=ft(t,n,i);return e&&(o=ft(t,-1*n,ct(t,-1*n)-r)),o}function mt(t,n,i,e){return void 0===e&&(e=0),gt(t,i,ct(n,i)+dt(i,e))}function yt(t,n,i){return vt(i,t)>vt(i,n)}function bt(t,n){for(var i=0,e=0,r=lt(t,n);e<r.length;e++){var o=r[e];i+=Math.pow(pt(t,n,o),2)}return i}function xt(t,n,i,e){return void 0===e&&(e=200),(i===Q.bottom||i===Q.top)&&pt(t,n,i)>=e}function Ct(t,n,i,e){for(var r=0,o=t;r<o.length;r++){var u=o[r],a=void 0;e&&e===-1*u?(a=gt(n.elementRectangle,u,ct(i,u),!1),n.forcedInBounds=!0):yt(a=mt(n.elementRectangle,i,u),i,-1*u)||(a=gt(a,-1*u,ct(i,-1*u),!1),n.forcedInBounds=!0),n.elementRectangle=a}return n}function wt(t,n,i){var e=kt(n).positiveEdge;return gt(t,e,i-(ht(t,n)-ct(t,e)))}function Mt(t,n,i,e,r){void 0===e&&(e=0);var o=new ot(t.left,t.right,t.top,t.bottom),u=i.alignmentEdge,a=i.targetEdge,s=r?a:-1*a;return o=r?mt(o,n,a,e):function(t,n,i,e){void 0===e&&(e=0);var r=dt(-1*i,e);return gt(t,-1*i,ct(n,i)+r)}(o,n,a,e),o=u?mt(o,n,u):wt(o,s,ht(n,a))}function kt(t){return t===Q.top||t===Q.bottom?{positiveEdge:Q.left,negativeEdge:Q.right}:{positiveEdge:Q.top,negativeEdge:Q.bottom}}function St(t,n,i){return i&&Math.abs(pt(t,i,n))>Math.abs(pt(t,i,-1*n))?-1*n:n}function At(t,n,i,e,r,o,u,a){var s,l={},c=Dt(n),f=o?i:-1*i,h=r||kt(i).positiveEdge;return u&&!function(t,n,i){return void 0!==i&&ct(t,n)===ct(i,n)}(t,(s=h,-1*s),e)||(h=St(t,h,e)),l[Q[f]]=pt(t,c,f),l[Q[h]]=pt(t,c,h),a&&(l[Q[-1*f]]=pt(t,c,-1*f),l[Q[-1*h]]=pt(t,c,-1*h)),l}function Lt(t,n,i){var e=ht(n,t),r=ht(i,t),o=kt(t),u=o.positiveEdge,a=o.negativeEdge;return e<=r?u:a}function Vt(t,n,i,e,r,o,u,a,l){void 0===o&&(o=!1);var c=Mt(t,n,e,r,l);return st(c,i)?{elementRectangle:c,targetEdge:e.targetEdge,alignmentEdge:e.alignmentEdge}:function(t,n,i,e,r,o,u,a,l){void 0===r&&(r=!1),void 0===u&&(u=0);var c=e.alignmentEdge,f=e.alignTargetEdge,h={elementRectangle:t,targetEdge:e.targetEdge,alignmentEdge:c};a||l||(h=function(t,n,i,e,r,o,u){void 0===r&&(r=!1),void 0===u&&(u=0);var a=[Q.left,Q.right,Q.bottom,Q.top];(0,s.jI)()&&(a[0]*=-1,a[1]*=-1);for(var l,c=t,f=e.targetEdge,h=e.alignmentEdge,d=f,v=h,p=0;p<4;p++){if(yt(c,i,f))return{elementRectangle:c,targetEdge:f,alignmentEdge:h};if(r&&xt(n,i,f,o)){switch(f){case Q.bottom:c.bottom=i.bottom;break;case Q.top:c.top=i.top}return{elementRectangle:c,targetEdge:f,alignmentEdge:h,forcedInBounds:!0}}var g=bt(c,i);(!l||g<l)&&(l=g,d=f,v=h),a.splice(a.indexOf(f),1),a.length>0&&(a.indexOf(-1*f)>-1?f*=-1:(h=f,f=a.slice(-1)[0]),c=Mt(t,n,{targetEdge:f,alignmentEdge:h},u))}return{elementRectangle:c=Mt(t,n,{targetEdge:d,alignmentEdge:v},u),targetEdge:d,alignmentEdge:v}}(t,n,i,e,r,o,u));var d=lt(h.elementRectangle,i),v=a?-h.targetEdge:void 0;if(d.length>0)if(f)if(h.alignmentEdge&&d.indexOf(-1*h.alignmentEdge)>-1){var p=function(t,n,i,e){var r=t.alignmentEdge,o=t.targetEdge,u=-1*r;return{elementRectangle:Mt(t.elementRectangle,n,{targetEdge:o,alignmentEdge:u},i,e),targetEdge:o,alignmentEdge:u}}(h,n,u,l);if(st(p.elementRectangle,i))return p;h=Ct(lt(p.elementRectangle,i),h,i,v)}else h=Ct(d,h,i,v);else h=Ct(d,h,i,v);return h}(c,n,i,e,o,u,r,a,l)}function Dt(t){var n=t.getBoundingClientRect();return new ot(n.left,n.right,n.top,n.bottom)}function Nt(t,n,i,e,r,u){void 0===r&&(r=!1);var a=t.gapSpace?t.gapSpace:0,l=function(t,n){var i;if(n){if(n.preventDefault){var e=n;i=new ot(e.clientX,e.clientX,e.clientY,e.clientY)}else if(n.getBoundingClientRect)i=Dt(n);else{var r=n,o=r.left||r.x,u=r.top||r.y,a=r.right||o,s=r.bottom||u;i=new ot(o,a,u,s)}if(!st(i,t))for(var l=0,c=lt(i,t);l<c.length;l++){var f=c[l];i[Q[f]]=t[Q[f]]}}else i=new ot(0,0,0,0);return i}(i,t.target),c=function(t,n,i,e,r){return t.isAuto&&(t.alignmentEdge=Lt(t.targetEdge,n,i)),t.alignTargetEdge=r,t}(function(t,n,i){if(void 0===t&&(t=x.bottomAutoEdge),i)return{alignmentEdge:i.alignmentEdge,isAuto:i.isAuto,targetEdge:i.targetEdge};var e=(0,o.Cl)({},at[t]);return(0,s.jI)()?(e.alignmentEdge&&e.alignmentEdge%2==0&&(e.alignmentEdge=-1*e.alignmentEdge),void 0!==n?at[n]:e):e}(t.directionalHint,t.directionalHintForRTL,e),l,i,t.coverTarget,t.alignTargetEdge),f=Vt(Dt(n),l,i,c,a,r,u,t.directionalHintFixed,t.coverTarget);return(0,o.Cl)((0,o.Cl)({},f),{targetRectangle:l})}function Tt(t,n,i){return void 0===n&&(n=0),void 0===i&&(i=0),function(t){return Math.sqrt(t*t*2)}(t?n:0)/2+i}function Et(t,n,i,e,r,u,a,s){void 0===r&&(r=!1);var c=null!=s?s:(0,l.z)(),f=t.isBeakVisible&&t.beakWidth||0,h=Tt(t.isBeakVisible,t.beakWidth,t.gapSpace),d=t;d.gapSpace=h;var v,p,g,m,y,b,x,C,w,M=t.bounds?(w=t.bounds,new ot(w.left,w.right,w.top,w.bottom)):new ot(0,c.innerWidth-function(t){if(void 0===J){var n=(0,k.Y)(),i=n.createElement("div");i.style.setProperty("width","100px"),i.style.setProperty("height","100px"),i.style.setProperty("overflow","scroll"),i.style.setProperty("position","absolute"),i.style.setProperty("top","-9999px"),n.body.appendChild(i),J=i.offsetWidth-i.clientWidth,n.body.removeChild(i)}return J}(),0,c.innerHeight),S=Nt(d,i,M,e,r,u),A=(v=S,p=function(t,n){var i=n.targetRectangle,e=kt(n.targetEdge),r=e.positiveEdge,o=e.negativeEdge,u=ht(i,n.targetEdge),a=new ot(t/2,n.elementRectangle.width-t/2,t/2,n.elementRectangle.height-t/2),s=new ot(0,t,0,t);return yt(s=wt(s=gt(s,-1*n.targetEdge,-t/2),-1*n.targetEdge,u-vt(r,n.elementRectangle)),a,r)?yt(s,a,o)||(s=mt(s,a,o)):s=mt(s,a,r),s}(f,S),g=M,m=-1*v.targetEdge,y=new ot(0,v.elementRectangle.width,0,v.elementRectangle.height),b={},x=St(v.elementRectangle,v.alignmentEdge?v.alignmentEdge:kt(m).positiveEdge,g),C=pt(v.elementRectangle,v.targetRectangle,m)>Math.abs(ct(p,m)),b[Q[m]]=ct(p,m),b[Q[x]]=pt(p,y,x),{elementPosition:(0,o.Cl)({},b),closestEdge:Lt(v.targetEdge,p,y),targetEdge:m,hideBeak:!C});return(0,o.Cl)((0,o.Cl)({},function(t,n,i,e,r){return{elementPosition:At(t.elementRectangle,n,t.targetEdge,i,t.alignmentEdge,e,r,t.forcedInBounds),targetEdge:t.targetEdge,alignmentEdge:t.alignmentEdge}}(S,n,M,t.coverTarget,a)),{beakPosition:A})}var Ot=["TEMPLATE","STYLE","SCRIPT"];function Pt(t){var n=(0,k.Y)(t);if(!n)return function(){};for(var i=[];t!==n.body&&t.parentElement;){for(var e=0,r=t.parentElement.children;e<r.length;e++){var o=r[e],u=o.getAttribute("aria-hidden");o!==t&&"true"!==(null==u?void 0:u.toLowerCase())&&-1===Ot.indexOf(o.tagName)&&i.push([o,u])}t=t.parentElement}return i.forEach((function(t){t[0].setAttribute("aria-hidden","true")})),function(){!function(t){t.forEach((function(t){var n=t[0],i=t[1];i?n.setAttribute("aria-hidden",i):n.removeAttribute("aria-hidden")}))}(i),i=[]}}var Bt=27,Ft=function(){function t(t,n){this._timeoutIds=null,this._immediateIds=null,this._intervalIds=null,this._animationFrameIds=null,this._isDisposed=!1,this._parent=t||null,this._onErrorHandler=n,this._noop=function(){}}return t.prototype.dispose=function(){var t;if(this._isDisposed=!0,this._parent=null,this._timeoutIds){for(t in this._timeoutIds)this._timeoutIds.hasOwnProperty(t)&&this.clearTimeout(parseInt(t,10));this._timeoutIds=null}if(this._immediateIds){for(t in this._immediateIds)this._immediateIds.hasOwnProperty(t)&&this.clearImmediate(parseInt(t,10));this._immediateIds=null}if(this._intervalIds){for(t in this._intervalIds)this._intervalIds.hasOwnProperty(t)&&this.clearInterval(parseInt(t,10));this._intervalIds=null}if(this._animationFrameIds){for(t in this._animationFrameIds)this._animationFrameIds.hasOwnProperty(t)&&this.cancelAnimationFrame(parseInt(t,10));this._animationFrameIds=null}},t.prototype.setTimeout=function(t,n){var i=this,e=0;return this._isDisposed||(this._timeoutIds||(this._timeoutIds={}),e=setTimeout((function(){try{i._timeoutIds&&delete i._timeoutIds[e],t.apply(i._parent)}catch(t){i._logError(t)}}),n),this._timeoutIds[e]=!0),e},t.prototype.clearTimeout=function(t){this._timeoutIds&&this._timeoutIds[t]&&(clearTimeout(t),delete this._timeoutIds[t])},t.prototype.setImmediate=function(t,n){var i=this,e=0,r=(0,l.z)(n);return this._isDisposed||(this._immediateIds||(this._immediateIds={}),e=r.setTimeout((function(){try{i._immediateIds&&delete i._immediateIds[e],t.apply(i._parent)}catch(t){i._logError(t)}}),0),this._immediateIds[e]=!0),e},t.prototype.clearImmediate=function(t,n){var i=(0,l.z)(n);this._immediateIds&&this._immediateIds[t]&&(i.clearTimeout(t),delete this._immediateIds[t])},t.prototype.setInterval=function(t,n){var i=this,e=0;return this._isDisposed||(this._intervalIds||(this._intervalIds={}),e=setInterval((function(){try{t.apply(i._parent)}catch(t){i._logError(t)}}),n),this._intervalIds[e]=!0),e},t.prototype.clearInterval=function(t){this._intervalIds&&this._intervalIds[t]&&(clearInterval(t),delete this._intervalIds[t])},t.prototype.throttle=function(t,n,i){var e=this;if(this._isDisposed)return this._noop;var r,o,u=n||0,a=!0,s=!0,l=0,c=null;i&&"boolean"==typeof i.leading&&(a=i.leading),i&&"boolean"==typeof i.trailing&&(s=i.trailing);var f=function(n){var i=Date.now(),h=i-l,d=a?u-h:u;return h>=u&&(!n||a)?(l=i,c&&(e.clearTimeout(c),c=null),r=t.apply(e._parent,o)):null===c&&s&&(c=e.setTimeout(f,d)),r};return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return o=t,f(!0)}},t.prototype.debounce=function(t,n,i){var e=this;if(this._isDisposed){var r=function(){};return r.cancel=function(){},r.flush=function(){return null},r.pending=function(){return!1},r}var o,u,a=n||0,s=!1,l=!0,c=null,f=0,h=Date.now(),d=null;i&&"boolean"==typeof i.leading&&(s=i.leading),i&&"boolean"==typeof i.trailing&&(l=i.trailing),i&&"number"==typeof i.maxWait&&!isNaN(i.maxWait)&&(c=i.maxWait);var v=function(t){d&&(e.clearTimeout(d),d=null),h=t},p=function(n){v(n),o=t.apply(e._parent,u)},g=function(t){var n=Date.now(),i=!1;t&&(s&&n-f>=a&&(i=!0),f=n);var r=n-f,u=a-r,v=n-h,m=!1;return null!==c&&(v>=c&&d?m=!0:u=Math.min(u,c-v)),r>=a||m||i?p(n):null!==d&&t||!l||(d=e.setTimeout(g,u)),o},m=function(){return!!d},y=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return u=t,g(!0)};return y.cancel=function(){m()&&v(Date.now())},y.flush=function(){return m()&&p(Date.now()),o},y.pending=m,y},t.prototype.requestAnimationFrame=function(t,n){var i=this,e=0,r=(0,l.z)(n);if(!this._isDisposed){this._animationFrameIds||(this._animationFrameIds={});var o=function(){try{i._animationFrameIds&&delete i._animationFrameIds[e],t.apply(i._parent)}catch(t){i._logError(t)}};e=r.requestAnimationFrame?r.requestAnimationFrame(o):r.setTimeout(o,0),this._animationFrameIds[e]=!0}return e},t.prototype.cancelAnimationFrame=function(t,n){var i=(0,l.z)(n);this._animationFrameIds&&this._animationFrameIds[t]&&(i.cancelAnimationFrame?i.cancelAnimationFrame(t):i.clearTimeout(t),delete this._animationFrameIds[t])},t.prototype._logError=function(t){this._onErrorHandler&&this._onErrorHandler(t)},t}();function _t(){var t=u.useRef();return t.current||(t.current=new Ft),u.useEffect((function(){return function(){var n;null===(n=t.current)||void 0===n||n.dispose(),t.current=void 0}}),[]),t.current}function Ht(t,n,i,e){var r=u.useRef(i);r.current=i,u.useEffect((function(){var i=t&&"current"in t?t.current:t;if(i&&i.addEventListener)return R(i,n,(function(t){return r.current(t)}),e)}),[t,n,e])}function Rt(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var i=u.useCallback((function(n){i.current=n;for(var e=0,r=t;e<r.length;e++){var o=r[e];"function"==typeof o?o(n):o&&(o.current=n)}}),(0,o.fX)([],t,!0));return i}var It=u.createContext({window:"object"==typeof window?window:void 0}),Wt=function(){return u.useContext(It).window},zt=function(){var t;return null===(t=u.useContext(It).window)||void 0===t?void 0:t.document};function jt(t){var n=t.originalElement,i=t.containsFocus;n&&i&&n!==(0,l.z)()&&setTimeout((function(){var t;null===(t=n.focus)||void 0===t||t.call(n)}),0)}var Yt=u.forwardRef((function(t,n){var i=I({shouldRestoreFocus:!0,enableAriaHiddenSiblings:!0},t),e=u.useRef(),r=Rt(e,n);!function(t,n){var i="true"===String(t["aria-modal"]).toLowerCase()&&t.enableAriaHiddenSiblings;u.useEffect((function(){if(i&&n.current)return Pt(n.current)}),[n,i])}(i,e),function(t,n){var i=t.onRestoreFocus,e=void 0===i?jt:i,r=u.useRef(),o=u.useRef(!1);u.useEffect((function(){var t,i,u;return r.current=(0,k.Y)().activeElement,t=n.current,(u=(i=(0,k.Y)(t))&&i.activeElement)&&M(t,u)&&(o.current=!0),function(){var t;null==e||e({originalElement:r.current,containsFocus:o.current,documentContainsFocus:(null===(t=(0,k.Y)())||void 0===t?void 0:t.hasFocus())||!1}),r.current=void 0}}),[]),Ht(n,"focus",u.useCallback((function(){o.current=!0}),[]),!0),Ht(n,"blur",u.useCallback((function(t){n.current&&t.relatedTarget&&!n.current.contains(t.relatedTarget)&&(o.current=!1)}),[]),!0)}(i,e);var a=i.role,s=i.className,l=i.ariaLabel,c=i.ariaLabelledBy,f=i.ariaDescribedBy,h=i.style,d=i.children,v=i.onDismiss,p=function(t,n){var i=_t(),e=u.useState(!1),r=e[0],o=e[1];return u.useEffect((function(){return i.requestAnimationFrame((function(){var i;if(!t.style||!t.style.overflowY){var e=!1;if(n&&n.current&&(null===(i=n.current)||void 0===i?void 0:i.firstElementChild)){var u=n.current.clientHeight,a=n.current.firstElementChild.clientHeight;u>0&&a>u&&(e=a-u>1)}r!==e&&o(e)}})),function(){return i.dispose()}})),r}(i,e),g=u.useCallback((function(t){t.which===Bt&&v&&(v(t),t.preventDefault(),t.stopPropagation())}),[v]);return Ht(Wt(),"keydown",g),u.createElement("div",(0,o.Cl)({ref:r},q(i,G),{className:s,role:a,"aria-label":l,"aria-labelledby":c,"aria-describedby":f,onKeyDown:g,style:(0,o.Cl)({overflowY:p?"scroll":void 0,outline:"none"},h)}),d)}));Yt.displayName="Popup";var $t=i(419);function Xt(t){var n=u.useRef();return void 0===n.current&&(n.current={value:"function"==typeof t?t():t}),n.current.value}var Gt,qt=function(){var t;return null!==(t=Wt())&&void 0!==t?t:"undefined"!=typeof window?window:void 0},Ut=function(t){var n,i;return null!==(i=null===(n=null==t?void 0:t.window)||void 0===n?void 0:n.document)&&void 0!==i?i:"undefined"!=typeof document?document:void 0},Zt=((Gt={})[Q.top]=$t.lw.slideUpIn10,Gt[Q.bottom]=$t.lw.slideDownIn10,Gt[Q.left]=$t.lw.slideLeftIn10,Gt[Q.right]=$t.lw.slideRightIn10,Gt),Kt={opacity:0,filter:"opacity(0)",pointerEvents:"none"},Jt=["role","aria-roledescription"],Qt={preventDismissOnLostFocus:!1,preventDismissOnScroll:!1,preventDismissOnResize:!1,isBeakVisible:!0,beakWidth:16,gapSpace:0,minPagePadding:8,directionalHint:x.bottomAutoEdge},tn=(0,a.Z)({disableCaching:!0});function nn(t,n,i,e){var r,o=t.calloutMaxHeight,a=t.finalHeight,s=t.directionalHint,l=t.directionalHintFixed,c=t.hidden,f=t.gapSpace,h=t.beakWidth,d=t.isBeakVisible,v=t.coverTarget,p=u.useState(),g=p[0],m=p[1],y=null!==(r=null==e?void 0:e.elementPosition)&&void 0!==r?r:{},b=y.top,x=y.bottom,C=(null==i?void 0:i.current)?function(t){var n,i,e,r,o=t,u=t,a=t,s=null!==(n=a.left)&&void 0!==n?n:a.x,l=null!==(i=a.top)&&void 0!==i?i:a.y,c=null!==(e=a.right)&&void 0!==e?e:s,f=null!==(r=a.bottom)&&void 0!==r?r:l;return o.stopPropagation?new ot(o.clientX,o.clientX,o.clientY,o.clientY):void 0!==s&&void 0!==l?new ot(s,c,l,f):Dt(u)}(i.current):void 0;return u.useEffect((function(){var t,i,r=null!==(t=n())&&void 0!==t?t:{},u=r.top,a=r.bottom;(null==e?void 0:e.targetEdge)===Q.top&&(null==C?void 0:C.top)&&!v&&(a=C.top-function(t,n,i){return Tt(t,n,i)}(d,h,f)),"number"==typeof b&&a?i=a-b:"number"==typeof x&&"number"==typeof u&&a&&(i=a-u-x),m(!o&&!c||o&&i&&o>i?i:o||void 0)}),[x,o,a,s,l,n,c,e,b,f,h,d,C,v]),g}function en(t,n,i,e,r,a){var s,c=u.useState(),f=c[0],h=c[1],d=u.useRef(0),v=u.useRef(),p=_t(),g=t.hidden,m=t.target,y=t.finalHeight,b=t.calloutMaxHeight,x=t.onPositioned,C=t.directionalHint,w=t.hideOverflow,M=t.preferScrollResizePositioning,k=qt(),S=u.useRef();S.current!==a.current&&(S.current=a.current,s=a.current?null==k?void 0:k.getComputedStyle(a.current):void 0);var A=null==s?void 0:s.overflowY;return u.useEffect((function(){if(!g){var u=p.requestAnimationFrame((function(){var u,a,s,c;if(n.current&&i){var p=(0,o.Cl)((0,o.Cl)({},t),{target:e.current,bounds:r()}),g=i.cloneNode(!0);g.style.maxHeight=b?"".concat(b):"",g.style.visibility="hidden",null===(u=i.parentElement)||void 0===u||u.appendChild(g);var C=v.current===m?f:void 0,S=M&&!(w||"clip"===A||"hidden"===A),L=y?function(t,n,i,e,r){return function(t,n,i,e,r){return Et(t,n,i,e,!1,void 0,!0,null!=r?r:(0,l.z)())}(t,n,i,e,r)}(p,n.current,g,C,k):function(t,n,i,e,r,o,u){return Et(t,n,i,e,r,void 0,void 0,u)}(p,n.current,g,C,S,0,k);null===(a=i.parentElement)||void 0===a||a.removeChild(g),!f&&L||f&&L&&(c=L,!un((s=f).elementPosition,c.elementPosition)||!un(s.beakPosition.elementPosition,c.beakPosition.elementPosition))&&d.current<5?(d.current++,h(L)):d.current>0&&(d.current=0,null==x||x(f))}}),i);return v.current=m,function(){p.cancelAnimationFrame(u),v.current=void 0}}h(void 0),d.current=0}),[g,C,p,i,b,n,e,y,r,x,f,t,m,w,M,A,k]),f}var rn=u.memo(u.forwardRef((function(t,n){var i=I(Qt,t),e=i.styles,r=i.style,a=i.ariaLabel,s=i.ariaDescribedBy,l=i.ariaLabelledBy,c=i.className,f=i.isBeakVisible,h=i.children,d=i.beakWidth,v=i.calloutWidth,p=i.calloutMaxWidth,g=i.calloutMinWidth,m=i.doNotLayer,y=i.finalHeight,b=i.hideOverflow,x=void 0===b?!!y:b,C=i.backgroundColor,w=i.calloutMaxHeight,S=i.onScroll,A=i.shouldRestoreFocus,L=void 0===A||A,V=i.target,N=i.hidden,T=i.onLayerMounted,E=i.popupProps,O=u.useRef(null),P=Rt(u.useRef(null),null==E?void 0:E.ref),B=u.useState(null),F=B[0],_=B[1],H=u.useCallback((function(t){_(t)}),[]),W=Rt(O,n),z=function(t,n){var i,e,r,o=u.useRef(),a=u.useRef(null),s=Wt();if(!t||t!==o.current||"string"==typeof t){var l=null==n?void 0:n.current;if(t)if("string"==typeof t)if(null===(i=null==l?void 0:l.getRootNode())||void 0===i?void 0:i.host)a.current=null!==(r=null===(e=null==l?void 0:l.getRootNode())||void 0===e?void 0:e.querySelector(t))&&void 0!==r?r:null;else{var c=(0,k.Y)(l);a.current=c?c.querySelector(t):null}else a.current="stopPropagation"in t||"getBoundingClientRect"in t?t:"current"in t?t.current:t;o.current=t}return[a,s]}(i.target,{current:F}),j=z[0],Y=z[1],$=function(t,n,i){var e=t.bounds,r=t.minPagePadding,o=void 0===r?Qt.minPagePadding:r,a=t.target,s=u.useState(!1),l=s[0],c=s[1],f=u.useRef(),h=u.useCallback((function(){if(!f.current||l){var t="function"==typeof e?i?e(a,i):void 0:e;!t&&i&&(t=function(t,n){return function(t,n){var i=void 0;if(n.getWindowSegments&&(i=n.getWindowSegments()),void 0===i||i.length<=1)return{top:0,left:0,right:n.innerWidth,bottom:n.innerHeight,width:n.innerWidth,height:n.innerHeight};var e=0,r=0;if(null!==t&&t.getBoundingClientRect){var o=t.getBoundingClientRect();e=(o.left+o.right)/2,r=(o.top+o.bottom)/2}else null!==t&&(e=t.left||t.x,r=t.top||t.y);for(var u={top:0,left:0,right:0,bottom:0,width:0,height:0},a=0,s=i;a<s.length;a++){var l=s[a];e&&l.left<=e&&l.right>=e&&r&&l.top<=r&&l.bottom>=r&&(u={top:l.top,left:l.left,right:l.right,bottom:l.bottom,width:l.width,height:l.height})}return u}(t,n)}(n.current,i),t={top:t.top+o,left:t.left+o,right:t.right-o,bottom:t.bottom-o,width:t.width-2*o,height:t.height-2*o}),f.current=t,l&&c(!1)}return f.current}),[e,o,a,n,i,l]),d=_t();return Ht(i,"resize",d.debounce((function(){c(!0)}),500,{leading:!0})),h}(i,j,Y),X=en(i,O,F,j,$,P),Z=nn(i,$,j,X),K=function(t,n,i,e,r){var o=t.hidden,a=t.onDismiss,s=t.preventDismissOnScroll,l=t.preventDismissOnResize,c=t.preventDismissOnLostFocus,f=t.dismissOnTargetClick,h=t.shouldDismissOnWindowFocus,d=t.preventDismissOnEvent,v=u.useRef(!1),p=_t(),g=Xt([function(){v.current=!0},function(){v.current=!1}]),m=!!n;return u.useEffect((function(){var t=function(t){m&&!s&&g(t)},n=function(t){l||d&&d(t)||null==a||a(t)},u=function(t){c||g(t)},g=function(t){var n=t.composedPath?t.composedPath():[],o=n.length>0?n[0]:t.target,u=i.current&&!M(i.current,o);if(u&&v.current)v.current=!1;else if(!e.current&&u||t.target!==r&&u&&(!e.current||"stopPropagation"in e.current||f||o!==e.current&&!M(e.current,o))){if(d&&d(t))return;null==a||a(t)}},y=function(t){h&&((!d||d(t))&&(d||c)||(null==r?void 0:r.document.hasFocus())||null!==t.relatedTarget||null==a||a(t))},b=new Promise((function(i){p.setTimeout((function(){if(!o&&r){var e=[R(r,"scroll",t,!0),R(r,"resize",n,!0),R(r.document.documentElement,"focus",u,!0),R(r.document.documentElement,"click",u,!0),R(r,"blur",y,!0)];i((function(){e.forEach((function(t){return t()}))}))}}),0)}));return function(){b.then((function(t){return t()}))}}),[o,p,i,e,r,a,h,f,c,l,s,m,d]),g}(i,X,O,j,Y),J=K[0],Q=K[1],tt=(null==X?void 0:X.elementPosition.top)&&(null==X?void 0:X.elementPosition.bottom),nt=(0,o.Cl)((0,o.Cl)({},null==X?void 0:X.elementPosition),{maxHeight:Z});if(tt&&(nt.bottom=void 0),function(t,n,i){var e=t.hidden,r=t.setInitialFocus,o=_t(),a=!!n;u.useEffect((function(){if(!e&&r&&a&&i){var t=o.requestAnimationFrame((function(){return D(i)}),i);return function(){return o.cancelAnimationFrame(t)}}}),[e,a,o,i,r])}(i,X,F),u.useEffect((function(){N||null==T||T()}),[N]),!Y)return null;var it=x,et=f&&!!V,rt=tn(e,{theme:i.theme,className:c,overflowYHidden:it,calloutWidth:v,positions:X,beakWidth:d,backgroundColor:C,calloutMaxWidth:p,calloutMinWidth:g,doNotLayer:m}),ot=(0,o.Cl)((0,o.Cl)({maxHeight:w||"100%"},r),it&&{overflowY:"hidden"}),ut=i.hidden?{visibility:"hidden"}:void 0;return u.createElement("div",{ref:W,className:rt.container,style:ut},u.createElement("div",(0,o.Cl)({},q(i,G,Jt),{className:U(rt.root,X&&X.targetEdge&&Zt[X.targetEdge]),style:X?(0,o.Cl)({},nt):Kt,tabIndex:-1,ref:H}),et&&u.createElement("div",{className:rt.beak,style:on(X)}),et&&u.createElement("div",{className:rt.beakCurtain}),u.createElement(Yt,(0,o.Cl)({role:i.role,"aria-roledescription":i["aria-roledescription"],ariaDescribedBy:s,ariaLabel:a,ariaLabelledBy:l,className:rt.calloutMain,onDismiss:i.onDismiss,onMouseDown:J,onMouseUp:Q,onRestoreFocus:i.onRestoreFocus,onScroll:S,shouldRestoreFocus:L,style:ot},E,{ref:P}),h)))})),(function(t,n){return!(n.shouldUpdateWhenHidden||!t.hidden||!n.hidden)||function(t,n){if(!t||!n)return!t&&!n;for(var i in t)if(t.hasOwnProperty(i)&&(!n.hasOwnProperty(i)||n[i]!==t[i]))return!1;for(var i in n)if(n.hasOwnProperty(i)&&!t.hasOwnProperty(i))return!1;return!0}(t,n)}));function on(t){var n,i,e=(0,o.Cl)((0,o.Cl)({},null===(n=null==t?void 0:t.beakPosition)||void 0===n?void 0:n.elementPosition),{display:(null===(i=null==t?void 0:t.beakPosition)||void 0===i?void 0:i.hideBeak)?"none":void 0});return e.top||e.bottom||e.left||e.right||(e.left=0,e.top=0),e}function un(t,n){for(var i in n)if(n.hasOwnProperty(i)){var e=t[i],r=n[i];if(void 0===e||void 0===r)return!1;if(e.toFixed(2)!==r.toFixed(2))return!1}return!0}function an(t){return{height:t,width:t}}rn.displayName="CalloutContentBase";var sn={container:"ms-Callout-container",root:"ms-Callout",beak:"ms-Callout-beak",beakCurtain:"ms-Callout-beakCurtain",calloutMain:"ms-Callout-main"},ln=(0,r.I)(rn,(function(t){var n,i=t.theme,e=t.className,r=t.overflowYHidden,o=t.calloutWidth,u=t.beakWidth,a=t.backgroundColor,s=t.calloutMaxWidth,l=t.calloutMinWidth,c=t.doNotLayer,f=(0,$t.Km)(sn,i),h=i.semanticColors,d=i.effects;return{container:[f.container,{position:"relative"}],root:[f.root,i.fonts.medium,{position:"absolute",display:"flex",zIndex:c?$t.nA.Layer:void 0,boxSizing:"border-box",borderRadius:d.roundedCorner2,boxShadow:d.elevation16,selectors:(n={},n[$t.up]={borderWidth:1,borderStyle:"solid",borderColor:"WindowText"},n)},(0,$t.QN)(),e,!!o&&{width:o},!!s&&{maxWidth:s},!!l&&{minWidth:l}],beak:[f.beak,{position:"absolute",backgroundColor:h.menuBackground,boxShadow:"inherit",border:"inherit",boxSizing:"border-box",transform:"rotate(45deg)"},an(u),a&&{backgroundColor:a}],beakCurtain:[f.beakCurtain,{position:"absolute",top:0,right:0,bottom:0,left:0,backgroundColor:h.menuBackground,borderRadius:d.roundedCorner2}],calloutMain:[f.calloutMain,{backgroundColor:h.menuBackground,overflowX:"hidden",overflowY:"auto",position:"relative",width:"100%",borderRadius:d.roundedCorner2},r&&{overflowY:"hidden"},a&&{backgroundColor:a}]}}),void 0,{scope:"CalloutContent"}),cn=u.createContext(void 0),fn=function(){return function(){}};cn.Provider;var hn=ReactDOM,dn=i(753);new WeakMap,new WeakMap;var vn=u.createContext(void 0),pn=function(t){var n=t.providerRef,i=t.layerRoot,e=u.useState([])[0],r=u.useContext(vn),o=void 0!==r&&!i,a=u.useMemo((function(){return o?void 0:{providerRef:n,registeredProviders:e,registerProvider:function(t){e.push(t),null==r||r.registerProvider(t)},unregisterProvider:function(t){null==r||r.unregisterProvider(t);var n=e.indexOf(t);n>=0&&e.splice(n,1)}}}),[n,e,r,o]);return u.useEffect((function(){if(a)return a.registerProvider(a.providerRef),function(){return a.unregisterProvider(a.providerRef)}}),[a]),a?u.createElement(vn.Provider,{value:a},t.children):u.createElement(u.Fragment,null,t.children)},gn=i(540),mn=i(770);function yn(t,n){void 0===t&&(t={});var i=bn(n)?n:function(t){return function(n){return t?(0,o.Cl)((0,o.Cl)({},n),t):n}}(n);return i(t)}function bn(t){return"function"==typeof t}var xn=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n._onCustomizationChange=function(){return n.forceUpdate()},n}return(0,o.C6)(n,t),n.prototype.componentDidMount=function(){gn.X.observe(this._onCustomizationChange)},n.prototype.componentWillUnmount=function(){gn.X.unobserve(this._onCustomizationChange)},n.prototype.render=function(){var t=this,n=this.props.contextTransform;return u.createElement(mn.z.Consumer,null,(function(i){var e=function(t,n){var i,e,r,u=(n||{}).customizations,a=void 0===u?{settings:{},scopedSettings:{}}:u;return{customizations:{settings:yn(a.settings,t.settings),scopedSettings:(i=a.scopedSettings,e=t.scopedSettings,void 0===i&&(i={}),(bn(e)?e:(void 0===(r=e)&&(r={}),function(t){var n=(0,o.Cl)({},t);for(var i in r)r.hasOwnProperty(i)&&(n[i]=(0,o.Cl)((0,o.Cl)({},t[i]),r[i]));return n}))(i)),inCustomizerContext:!0}}}(t.props,i);return n&&(e=n(e)),u.createElement(mn.z.Provider,{value:e},t.props.children)}))},n}(u.Component),Cn=i(143),wn=(0,a.Z)(),Mn=(0,dn.J9)((function(t,n){return(0,Cn.a)((0,o.Cl)((0,o.Cl)({},t),{rtl:n}))})),kn=u.forwardRef((function(t,n){var i=t.className,e=t.theme,r=t.applyTheme,a=t.applyThemeToBody,l=t.styles,c=wn(l,{theme:e,applyTheme:r,className:i}),f=u.useRef(null);return function(t,n,i){var e=n.bodyThemed;u.useEffect((function(){if(t){var n=(0,k.Y)(i.current);if(n)return n.body.classList.add(e),function(){n.body.classList.remove(e)}}}),[e,t,i])}(a,c,f),u.createElement(u.Fragment,null,function(t,n,i,e){var r=n.root,a=t.as,l=void 0===a?"div":a,c=t.dir,f=t.theme,h=q(t,G,["dir"]),d=function(t){var n=t.theme,i=t.dir,e=(0,s.jI)(n)?"rtl":"ltr",r=(0,s.jI)()?"rtl":"ltr",o=i||e;return{rootDir:o!==e||o!==r?o:i,needsTheme:o!==e}}(t),v=d.rootDir,p=d.needsTheme,g=u.createElement(pn,{providerRef:i},u.createElement(l,(0,o.Cl)({dir:v},h,{className:r,ref:Rt(i,e)})));return p&&(g=u.createElement(xn,{settings:{theme:Mn(f,"rtl"===c)}},g)),g}(t,c,f,n))}));kn.displayName="FabricBase";var Sn,An={fontFamily:"inherit"},Ln={root:"ms-Fabric",bodyThemed:"ms-Fabric-bodyThemed"},Vn=(0,r.I)(kn,(function(t){var n=t.applyTheme,i=t.className,e=t.preventBlanketFontInheritance,r=t.theme;return{root:[(0,$t.Km)(Ln,r).root,r.fonts.medium,{color:r.palette.neutralPrimary},!e&&{"& button":An,"& input":An,"& textarea":An},n&&{color:r.semanticColors.bodyText,backgroundColor:r.semanticColors.bodyBackground},i],bodyThemed:[{backgroundColor:r.semanticColors.bodyBackground}]}}),void 0,{scope:"Fabric"}),Dn=i(517),Nn="data-portal-element",Tn={},En={},On="fluent-default-layer-host",Pn="#".concat(On),Bn=i(921),Fn=(0,Bn.S)()?u.useLayoutEffect:u.useEffect,_n=void 0;function Hn(t){_n?_n(t):console&&console.warn&&console.warn(t)}function Rn(t,n,i,e,r){if(!0===r)for(var o=0,u=i;o<u.length;o++){var a=u[o];a in n||Hn("".concat(t," property '").concat(a,"' is required when '").concat(e,"' is used.'"))}}function In(t,n,i){for(var e in i)if(n&&e in n){var r="".concat(t," property '").concat(e,"' was used but has been deprecated."),o=i[e];o&&(r+=" Use '".concat(o,"' instead.")),Hn(r)}}function Wn(t,n){return void 0!==t[n]&&null!==t[n]}function zn(t){var n=u.useRef();return u.useEffect((function(){n.current=t})),n.current}Sn={valueOnChange:{},valueDefaultValue:{},controlledToUncontrolled:{},uncontrolledToControlled:{}};var jn=0;function Yn(t){var n=t.name,i=t.props,e=t.other,r=void 0===e?[]:e,a=t.conditionallyRequired,s=t.deprecations,l=t.mutuallyExclusive,c=t.controlledUsage,f=u.useRef(!1),h=Xt((function(){return"useWarnings_".concat(jn++)})),d=zn(i);if(!f.current){f.current=!0;for(var v=0,p=r;v<p.length;v++)Hn(p[v]);if(a)for(var g=0,m=a;g<m.length;g++){var y=m[g];Rn(n,i,y.requiredProps,y.conditionalPropName,y.condition)}s&&In(n,i,s),l&&function(t,n,i){for(var e in i)if(n&&void 0!==n[e]){var r=i[e];r&&void 0!==n[r]&&Hn("".concat(t," property '").concat(e,"' is mutually exclusive with '").concat(i[e],"'. ")+"Use one or the other.")}}(n,i,l)}c&&function(t){var n=t.componentId,i=t.componentName,e=t.defaultValueProp,r=t.props,o=t.oldProps,u=t.onChangeProp,a=t.readOnlyProp,s=t.valueProp,l=o?Wn(o,s):void 0,c=Wn(r,s);if(c){var f=!!r[u],h=!(!a||!r[a]);f||h||Sn.valueOnChange[n]||(Sn.valueOnChange[n]=!0,Hn("Warning: You provided a '".concat(String(s),"' prop to a ").concat(String(i)," without an '").concat(String(u),"' handler. ")+"This will render a read-only field. If the field should be mutable use '".concat(String(e),"'. ")+"Otherwise, set '".concat(String(u),"'").concat(a?" or '".concat(String(a),"'"):"","."))),null==r[e]||Sn.valueDefaultValue[n]||(Sn.valueDefaultValue[n]=!0,Hn("Warning: You provided both '".concat(String(s),"' and '").concat(String(e),"' to a ").concat(i,". ")+"Form fields must be either controlled or uncontrolled (specify either the '".concat(String(s),"' prop, ")+"or the '".concat(String(e),"' prop, but not both). Decide between using a controlled or uncontrolled ")+"".concat(i," and remove one of these props. More info: https://fb.me/react-controlled-components")))}if(o&&c!==l){var d=l?"a controlled":"an uncontrolled",v=l?"uncontrolled":"controlled",p=l?Sn.controlledToUncontrolled:Sn.uncontrolledToControlled;p[n]||(p[n]=!0,Hn("Warning: A component is changing ".concat(d," ").concat(i," to be ").concat(v,". ")+"".concat(i,"s should not switch from controlled to uncontrolled (or vice versa). ")+"Decide between using controlled or uncontrolled for the lifetime of the component. More info: https://fb.me/react-controlled-components"))}}((0,o.Cl)((0,o.Cl)({},c),{componentId:h,props:i,componentName:n,oldProps:d}))}var $n,Xn=(0,a.Z)(),Gn=u.forwardRef((function(t,n){var i,e=null!==(i=u.useContext(cn))&&void 0!==i?i:fn,r=u.useRef(null),a=Rt(r,n),s=u.useRef(),l=u.useRef(null),c=u.useContext(vn),f=u.useState(!1),h=f[0],d=f[1],v=u.useCallback((function(t){var n,i=!!(null==(n=null==c?void 0:c.providerRef)?void 0:n.current)&&n.current.classList.contains(Dn.Y2);t&&i&&t.classList.add(Dn.Y2)}),[c]),p=t.children,g=t.className,m=t.eventBubblingEnabled,y=t.fabricProps,b=t.hostId,x=t.insertFirst,C=t.onLayerDidMount,w=void 0===C?function(){}:C,M=t.onLayerMounted,S=void 0===M?function(){}:M,A=t.onLayerWillUnmount,L=t.styles,V=t.theme,D=Rt(l,null==y?void 0:y.ref,v),N=Xn(L,{theme:V,className:g,isNotHost:!b}),T=function(){null==A||A();var t=s.current;s.current=void 0,t&&t.parentNode&&t.parentNode.removeChild(t)},E=function(){var t,n,i,e,o=(0,k.Y)(r.current),u=(null===(n=null===(t=r.current)||void 0===t?void 0:t.getRootNode())||void 0===n?void 0:n.host)?null===(i=null==r?void 0:r.current)||void 0===i?void 0:i.getRootNode():void 0;if(o&&(o||u)){var a=function(t,n){var i,e;void 0===n&&(n=null);var r=null!=n?n:t;if(b){var o=function(t){var n=En[t];return n&&n[0]||void 0}(b);return o?null!==(i=o.rootRef.current)&&void 0!==i?i:null:null!==(e=r.getElementById(b))&&void 0!==e?e:null}var u=Pn,a=u?r.querySelector(u):null;return a||(a=function(t,n){void 0===n&&(n=null);var i=t.createElement("div");return i.setAttribute("id",On),i.style.cssText="position:fixed;z-index:1000000",n?n.appendChild(i):null==t||t.body.appendChild(i),i}(t,n)),a}(o,u);if(a){a.__tabsterElementFlags||(a.__tabsterElementFlags={}),a.__tabsterElementFlags.noDirectAriaHidden=!0,T();var l=(null!==(e=a.ownerDocument)&&void 0!==e?e:o).createElement("div");l.className=N.root,l.setAttribute(Nn,"true"),function(t,n){var i=t,e=n;i._virtual||(i._virtual={children:[]});var r=i._virtual.parent;if(r&&r!==n){var o=r._virtual.children.indexOf(i);o>-1&&r._virtual.children.splice(o,1)}i._virtual.parent=e||void 0,e&&(e._virtual||(e._virtual={children:[]}),e._virtual.children.push(i))}(l,r.current),x?a.insertBefore(l,a.firstChild):a.appendChild(l),s.current=l,d(!0)}}};return Fn((function(){E(),b&&function(t,n){Tn[t]||(Tn[t]=[]),Tn[t].push(n);var i=En[t];if(i)for(var e=0,r=i;e<r.length;e++)r[e].notifyLayersChanged()}(b,E);var t=s.current?e(s.current):void 0;return function(){t&&t(),T(),b&&function(t,n){var i=Tn[t];if(i){var e=i.indexOf(n);e>=0&&(i.splice(e,1),0===i.length&&delete Tn[t])}var r=En[t];if(r)for(var o=0,u=r;o<u.length;o++)u[o].notifyLayersChanged()}(b,E)}}),[b]),u.useEffect((function(){s.current&&h&&(null==S||S(),null==w||w(),d(!1))}),[h,S,w]),function(t){Yn({name:"Layer",props:t,deprecations:{onLayerMounted:"onLayerDidMount"}})}(t),u.createElement("span",{className:"ms-layer",ref:a},s.current&&hn.createPortal(u.createElement(pn,{layerRoot:!0,providerRef:D},u.createElement(Vn,(0,o.Cl)({},!m&&($n||($n={},["onClick","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOver","onMouseOut","onMouseUp","onTouchMove","onTouchStart","onTouchCancel","onTouchEnd","onKeyDown","onKeyPress","onKeyUp","onFocus","onBlur","onChange","onInput","onInvalid","onSubmit"].forEach((function(t){return $n[t]=qn}))),$n),y,{className:U(N.content,null==y?void 0:y.className),ref:D}),p)),s.current))}));Gn.displayName="LayerBase";var qn=function(t){t.eventPhase===Event.BUBBLING_PHASE&&"mouseenter"!==t.type&&"mouseleave"!==t.type&&"touchstart"!==t.type&&"touchend"!==t.type&&t.stopPropagation()},Un={root:"ms-Layer",rootNoHost:"ms-Layer--fixed",content:"ms-Layer-content"},Zn=(0,r.I)(Gn,(function(t){var n=t.className,i=t.isNotHost,e=t.theme,r=(0,$t.Km)(Un,e);return{root:[r.root,e.fonts.medium,i&&[r.rootNoHost,{position:"fixed",zIndex:$t.nA.Layer,top:0,left:0,bottom:0,right:0,visibility:"hidden"}],n],content:[r.content,{visibility:"visible"}]}}),void 0,{scope:"Layer",fields:["hostId","theme","styles"]}),Kn=u.forwardRef((function(t,n){var i=t.layerProps,e=t.doNotLayer,r=(0,o.Tt)(t,["layerProps","doNotLayer"]),a=u.createElement(ln,(0,o.Cl)({},r,{doNotLayer:e,ref:n}));return e?a:u.createElement(Zn,(0,o.Cl)({},i),a)}));Kn.displayName="Callout";var Jn=i(607);function Qn(t){return t}var ti=1,ni=2,ii=3,ei=4,ri=1e-6;function oi(t){return"translate("+t+",0)"}function ui(t){return"translate(0,"+t+")"}function ai(t){return n=>+t(n)}function si(t,n){return n=Math.max(0,t.bandwidth()-2*n)/2,t.round()&&(n=Math.round(n)),i=>+t(i)+n}function li(){return!this.__axis}function ci(t,n){var i=[],e=null,r=null,o=6,u=6,a=3,s="undefined"!=typeof window&&window.devicePixelRatio>1?0:.5,l=t===ti||t===ei?-1:1,c=t===ei||t===ni?"x":"y",f=t===ti||t===ii?oi:ui;function h(h){var d=null==e?n.ticks?n.ticks.apply(n,i):n.domain():e,v=null==r?n.tickFormat?n.tickFormat.apply(n,i):Qn:r,p=Math.max(o,0)+a,g=n.range(),m=+g[0]+s,y=+g[g.length-1]+s,b=(n.bandwidth?si:ai)(n.copy(),s),x=h.selection?h.selection():h,C=x.selectAll(".domain").data([null]),w=x.selectAll(".tick").data(d,n).order(),M=w.exit(),k=w.enter().append("g").attr("class","tick"),S=w.select("line"),A=w.select("text");C=C.merge(C.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),w=w.merge(k),S=S.merge(k.append("line").attr("stroke","currentColor").attr(c+"2",l*o)),A=A.merge(k.append("text").attr("fill","currentColor").attr(c,l*p).attr("dy",t===ti?"0em":t===ii?"0.71em":"0.32em")),h!==x&&(C=C.transition(h),w=w.transition(h),S=S.transition(h),A=A.transition(h),M=M.transition(h).attr("opacity",ri).attr("transform",(function(t){return isFinite(t=b(t))?f(t+s):this.getAttribute("transform")})),k.attr("opacity",ri).attr("transform",(function(t){var n=this.parentNode.__axis;return f((n&&isFinite(n=n(t))?n:b(t))+s)}))),M.remove(),C.attr("d",t===ei||t===ni?u?"M"+l*u+","+m+"H"+s+"V"+y+"H"+l*u:"M"+s+","+m+"V"+y:u?"M"+m+","+l*u+"V"+s+"H"+y+"V"+l*u:"M"+m+","+s+"H"+y),w.attr("opacity",1).attr("transform",(function(t){return f(b(t)+s)})),S.attr(c+"2",l*o),A.attr(c,l*p).text(v),x.filter(li).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===ni?"start":t===ei?"end":"middle"),x.each((function(){this.__axis=b}))}return h.scale=function(t){return arguments.length?(n=t,h):n},h.ticks=function(){return i=Array.from(arguments),h},h.tickArguments=function(t){return arguments.length?(i=null==t?[]:Array.from(t),h):i.slice()},h.tickValues=function(t){return arguments.length?(e=null==t?null:Array.from(t),h):e&&e.slice()},h.tickFormat=function(t){return arguments.length?(r=t,h):r},h.tickSize=function(t){return arguments.length?(o=u=+t,h):o},h.tickSizeInner=function(t){return arguments.length?(o=+t,h):o},h.tickSizeOuter=function(t){return arguments.length?(u=+t,h):u},h.tickPadding=function(t){return arguments.length?(a=+t,h):a},h.offset=function(t){return arguments.length?(s=+t,h):s},h}function fi(t){return ci(ni,t)}function hi(t){return ci(ii,t)}function di(t){return ci(ei,t)}function vi(t,n){let i;if(void 0===n)for(const n of t)null!=n&&(i>n||void 0===i&&n>=n)&&(i=n);else{let e=-1;for(let r of t)null!=(r=n(r,++e,t))&&(i>r||void 0===i&&r>=r)&&(i=r)}return i}function pi(t,n){let i;if(void 0===n)for(const n of t)null!=n&&(i<n||void 0===i&&n>=n)&&(i=n);else{let e=-1;for(let r of t)null!=(r=n(r,++e,t))&&(i<r||void 0===i&&r>=r)&&(i=r)}return i}const gi=Math.sqrt(50),mi=Math.sqrt(10),yi=Math.sqrt(2);function bi(t,n,i){const e=(n-t)/Math.max(0,i),r=Math.floor(Math.log10(e)),o=e/Math.pow(10,r),u=o>=gi?10:o>=mi?5:o>=yi?2:1;let a,s,l;return r<0?(l=Math.pow(10,-r)/u,a=Math.round(t*l),s=Math.round(n*l),a/l<t&&++a,s/l>n&&--s,l=-l):(l=Math.pow(10,r)*u,a=Math.round(t/l),s=Math.round(n/l),a*l<t&&++a,s*l>n&&--s),s<a&&.5<=i&&i<2?bi(t,n,2*i):[a,s,l]}function xi(t,n,i){if(!((i=+i)>0))return[];if((t=+t)==(n=+n))return[t];const e=n<t,[r,o,u]=e?bi(n,t,i):bi(t,n,i);if(!(o>=r))return[];const a=o-r+1,s=new Array(a);if(e)if(u<0)for(let t=0;t<a;++t)s[t]=(o-t)/-u;else for(let t=0;t<a;++t)s[t]=(o-t)*u;else if(u<0)for(let t=0;t<a;++t)s[t]=(r+t)/-u;else for(let t=0;t<a;++t)s[t]=(r+t)*u;return s}function Ci(t,n,i){return bi(t=+t,n=+n,i=+i)[2]}function wi(t,n,i){i=+i;const e=(n=+n)<(t=+t),r=e?Ci(n,t,i):Ci(t,n,i);return(e?-1:1)*(r<0?1/-r:r)}function Mi(t,n){return null==t||null==n?NaN:t<n?-1:t>n?1:t>=n?0:NaN}function ki(t,n){return null==t||null==n?NaN:n<t?-1:n>t?1:n>=t?0:NaN}function Si(t){let n,i,e;function r(t,e,r=0,o=t.length){if(r<o){if(0!==n(e,e))return o;do{const n=r+o>>>1;i(t[n],e)<0?r=n+1:o=n}while(r<o)}return r}return 2!==t.length?(n=Mi,i=(n,i)=>Mi(t(n),i),e=(n,i)=>t(n)-i):(n=t===Mi||t===ki?t:Ai,i=t,e=t),{left:r,center:function(t,n,i=0,o=t.length){const u=r(t,n,i,o-1);return u>i&&e(t[u-1],n)>-e(t[u],n)?u-1:u},right:function(t,e,r=0,o=t.length){if(r<o){if(0!==n(e,e))return o;do{const n=r+o>>>1;i(t[n],e)<=0?r=n+1:o=n}while(r<o)}return r}}}function Ai(){return 0}const Li=Si(Mi),Vi=Li.right;Li.left,Si((function(t){return null===t?NaN:+t})).center;var Di=Vi;function Ni(t,n,i){t.prototype=n.prototype=i,i.constructor=t}function Ti(t,n){var i=Object.create(t.prototype);for(var e in n)i[e]=n[e];return i}function Ei(){}var Oi=.7,Pi=1/Oi,Bi="\\s*([+-]?\\d+)\\s*",Fi="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",_i="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Hi=/^#([0-9a-f]{3,8})$/,Ri=new RegExp(`^rgb\\(${Bi},${Bi},${Bi}\\)$`),Ii=new RegExp(`^rgb\\(${_i},${_i},${_i}\\)$`),Wi=new RegExp(`^rgba\\(${Bi},${Bi},${Bi},${Fi}\\)$`),zi=new RegExp(`^rgba\\(${_i},${_i},${_i},${Fi}\\)$`),ji=new RegExp(`^hsl\\(${Fi},${_i},${_i}\\)$`),Yi=new RegExp(`^hsla\\(${Fi},${_i},${_i},${Fi}\\)$`),$i={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 Xi(){return this.rgb().formatHex()}function Gi(){return this.rgb().formatRgb()}function qi(t){var n,i;return t=(t+"").trim().toLowerCase(),(n=Hi.exec(t))?(i=n[1].length,n=parseInt(n[1],16),6===i?Ui(n):3===i?new Ji(n>>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):8===i?Zi(n>>24&255,n>>16&255,n>>8&255,(255&n)/255):4===i?Zi(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|240&n,((15&n)<<4|15&n)/255):null):(n=Ri.exec(t))?new Ji(n[1],n[2],n[3],1):(n=Ii.exec(t))?new Ji(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=Wi.exec(t))?Zi(n[1],n[2],n[3],n[4]):(n=zi.exec(t))?Zi(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=ji.exec(t))?re(n[1],n[2]/100,n[3]/100,1):(n=Yi.exec(t))?re(n[1],n[2]/100,n[3]/100,n[4]):$i.hasOwnProperty(t)?Ui($i[t]):"transparent"===t?new Ji(NaN,NaN,NaN,0):null}function Ui(t){return new Ji(t>>16&255,t>>8&255,255&t,1)}function Zi(t,n,i,e){return e<=0&&(t=n=i=NaN),new Ji(t,n,i,e)}function Ki(t,n,i,e){return 1===arguments.length?((r=t)instanceof Ei||(r=qi(r)),r?new Ji((r=r.rgb()).r,r.g,r.b,r.opacity):new Ji):new Ji(t,n,i,null==e?1:e);var r}function Ji(t,n,i,e){this.r=+t,this.g=+n,this.b=+i,this.opacity=+e}function Qi(){return`#${ee(this.r)}${ee(this.g)}${ee(this.b)}`}function te(){const t=ne(this.opacity);return`${1===t?"rgb(":"rgba("}${ie(this.r)}, ${ie(this.g)}, ${ie(this.b)}${1===t?")":`, ${t})`}`}function ne(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function ie(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function ee(t){return((t=ie(t))<16?"0":"")+t.toString(16)}function re(t,n,i,e){return e<=0?t=n=i=NaN:i<=0||i>=1?t=n=NaN:n<=0&&(t=NaN),new ue(t,n,i,e)}function oe(t){if(t instanceof ue)return new ue(t.h,t.s,t.l,t.opacity);if(t instanceof Ei||(t=qi(t)),!t)return new ue;if(t instanceof ue)return t;var n=(t=t.rgb()).r/255,i=t.g/255,e=t.b/255,r=Math.min(n,i,e),o=Math.max(n,i,e),u=NaN,a=o-r,s=(o+r)/2;return a?(u=n===o?(i-e)/a+6*(i<e):i===o?(e-n)/a+2:(n-i)/a+4,a/=s<.5?o+r:2-o-r,u*=60):a=s>0&&s<1?0:u,new ue(u,a,s,t.opacity)}function ue(t,n,i,e){this.h=+t,this.s=+n,this.l=+i,this.opacity=+e}function ae(t){return(t=(t||0)%360)<0?t+360:t}function se(t){return Math.max(0,Math.min(1,t||0))}function le(t,n,i){return 255*(t<60?n+(i-n)*t/60:t<180?i:t<240?n+(i-n)*(240-t)/60:n)}function ce(t,n,i,e,r){var o=t*t,u=o*t;return((1-3*t+3*o-u)*n+(4-6*o+3*u)*i+(1+3*t+3*o-3*u)*e+u*r)/6}Ni(Ei,qi,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:Xi,formatHex:Xi,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return oe(this).formatHsl()},formatRgb:Gi,toString:Gi}),Ni(Ji,Ki,Ti(Ei,{brighter(t){return t=null==t?Pi:Math.pow(Pi,t),new Ji(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?Oi:Math.pow(Oi,t),new Ji(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Ji(ie(this.r),ie(this.g),ie(this.b),ne(this.opacity))},displayable(){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:Qi,formatHex:Qi,formatHex8:function(){return`#${ee(this.r)}${ee(this.g)}${ee(this.b)}${ee(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:te,toString:te})),Ni(ue,(function(t,n,i,e){return 1===arguments.length?oe(t):new ue(t,n,i,null==e?1:e)}),Ti(Ei,{brighter(t){return t=null==t?Pi:Math.pow(Pi,t),new ue(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?Oi:Math.pow(Oi,t),new ue(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),n=isNaN(t)||isNaN(this.s)?0:this.s,i=this.l,e=i+(i<.5?i:1-i)*n,r=2*i-e;return new Ji(le(t>=240?t-240:t+120,r,e),le(t,r,e),le(t<120?t+240:t-120,r,e),this.opacity)},clamp(){return new ue(ae(this.h),se(this.s),se(this.l),ne(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=ne(this.opacity);return`${1===t?"hsl(":"hsla("}${ae(this.h)}, ${100*se(this.s)}%, ${100*se(this.l)}%${1===t?")":`, ${t})`}`}}));var fe=t=>()=>t;function he(t,n){var i=n-t;return i?function(t,n){return function(i){return t+i*n}}(t,i):fe(isNaN(t)?n:t)}var de=function t(n){var i=function(t){return 1==(t=+t)?he:function(n,i){return i-n?function(t,n,i){return t=Math.pow(t,i),n=Math.pow(n,i)-t,i=1/i,function(e){return Math.pow(t+e*n,i)}}(n,i,t):fe(isNaN(n)?i:n)}}(n);function e(t,n){var e=i((t=Ki(t)).r,(n=Ki(n)).r),r=i(t.g,n.g),o=i(t.b,n.b),u=he(t.opacity,n.opacity);return function(n){return t.r=e(n),t.g=r(n),t.b=o(n),t.opacity=u(n),t+""}}return e.gamma=t,e}(1);function ve(t){return function(n){var i,e,r=n.length,o=new Array(r),u=new Array(r),a=new Array(r);for(i=0;i<r;++i)e=Ki(n[i]),o[i]=e.r||0,u[i]=e.g||0,a[i]=e.b||0;return o=t(o),u=t(u),a=t(a),e.opacity=1,function(t){return e.r=o(t),e.g=u(t),e.b=a(t),e+""}}}function pe(t,n){var i,e=n?n.length:0,r=t?Math.min(e,t.length):0,o=new Array(r),u=new Array(e);for(i=0;i<r;++i)o[i]=Me(t[i],n[i]);for(;i<e;++i)u[i]=n[i];return function(t){for(i=0;i<r;++i)u[i]=o[i](t);return u}}function ge(t,n){var i=new Date;return t=+t,n=+n,function(e){return i.setTime(t*(1-e)+n*e),i}}function me(t,n){return t=+t,n=+n,function(i){return t*(1-i)+n*i}}function ye(t,n){var i,e={},r={};for(i in null!==t&&"object"==typeof t||(t={}),null!==n&&"object"==typeof n||(n={}),n)i in t?e[i]=Me(t[i],n[i]):r[i]=n[i];return function(t){for(i in e)r[i]=e[i](t);return r}}ve((function(t){var n=t.length-1;return function(i){var e=i<=0?i=0:i>=1?(i=1,n-1):Math.floor(i*n),r=t[e],o=t[e+1],u=e>0?t[e-1]:2*r-o,a=e<n-1?t[e+2]:2*o-r;return ce((i-e/n)*n,u,r,o,a)}})),ve((function(t){var n=t.length;return function(i){var e=Math.floor(((i%=1)<0?++i:i)*n),r=t[(e+n-1)%n],o=t[e%n],u=t[(e+1)%n],a=t[(e+2)%n];return ce((i-e/n)*n,r,o,u,a)}}));var be=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,xe=new RegExp(be.source,"g");function Ce(t,n){var i,e,r,o=be.lastIndex=xe.lastIndex=0,u=-1,a=[],s=[];for(t+="",n+="";(i=be.exec(t))&&(e=xe.exec(n));)(r=e.index)>o&&(r=n.slice(o,r),a[u]?a[u]+=r:a[++u]=r),(i=i[0])===(e=e[0])?a[u]?a[u]+=e:a[++u]=e:(a[++u]=null,s.push({i:u,x:me(i,e)})),o=xe.lastIndex;return o<n.length&&(r=n.slice(o),a[u]?a[u]+=r:a[++u]=r),a.length<2?s[0]?function(t){return function(n){return t(n)+""}}(s[0].x):function(t){return function(){return t}}(n):(n=s.length,function(t){for(var i,e=0;e<n;++e)a[(i=s[e]).i]=i.x(t);return a.join("")})}function we(t,n){n||(n=[]);var i,e=t?Math.min(n.length,t.length):0,r=n.slice();return function(o){for(i=0;i<e;++i)r[i]=t[i]*(1-o)+n[i]*o;return r}}function Me(t,n){var i,e,r=typeof n;return null==n||"boolean"===r?fe(n):("number"===r?me:"string"===r?(i=qi(n))?(n=i,de):Ce:n instanceof qi?de:n instanceof Date?ge:(e=n,!ArrayBuffer.isView(e)||e instanceof DataView?Array.isArray(n)?pe:"function"!=typeof n.valueOf&&"function"!=typeof n.toString||isNaN(n)?ye:me:we))(t,n)}function ke(t,n){return t=+t,n=+n,function(i){return Math.round(t*(1-i)+n*i)}}function Se(t){return+t}var Ae=[0,1];function Le(t){return t}function Ve(t,n){return(n-=t=+t)?function(i){return(i-t)/n}:(i=isNaN(n)?NaN:.5,function(){return i});var i}function De(t,n,i){var e=t[0],r=t[1],o=n[0],u=n[1];return r<e?(e=Ve(r,e),o=i(u,o)):(e=Ve(e,r),o=i(o,u)),function(t){return o(e(t))}}function Ne(t,n,i){var e=Math.min(t.length,n.length)-1,r=new Array(e),o=new Array(e),u=-1;for(t[e]<t[0]&&(t=t.slice().reverse(),n=n.slice().reverse());++u<e;)r[u]=Ve(t[u],t[u+1]),o[u]=i(n[u],n[u+1]);return function(n){var i=Di(t,n,1,e)-1;return o[i](r[i](n))}}function Te(t,n){return n.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function Ee(){return function(){var t,n,i,e,r,o,u=Ae,a=Ae,s=Me,l=Le;function c(){var t,n,i,s=Math.min(u.length,a.length);return l!==Le&&(t=u[0],n=u[s-1],t>n&&(i=t,t=n,n=i),l=function(i){return Math.max(t,Math.min(n,i))}),e=s>2?Ne:De,r=o=null,f}function f(n){return null==n||isNaN(n=+n)?i:(r||(r=e(u.map(t),a,s)))(t(l(n)))}return f.invert=function(i){return l(n((o||(o=e(a,u.map(t),me)))(i)))},f.domain=function(t){return arguments.length?(u=Array.from(t,Se),c()):u.slice()},f.range=function(t){return arguments.length?(a=Array.from(t),c()):a.slice()},f.rangeRound=function(t){return a=Array.from(t),s=ke,c()},f.clamp=function(t){return arguments.length?(l=!!t||Le,c()):l!==Le},f.interpolate=function(t){return arguments.length?(s=t,c()):s},f.unknown=function(t){return arguments.length?(i=t,f):i},function(i,e){return t=i,n=e,c()}}()(Le,Le)}function Oe(t,n){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(n).domain(t)}return this}var Pe,Be=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Fe(t){if(!(n=Be.exec(t)))throw new Error("invalid format: "+t);var n;return new _e({fill:n[1],align:n[2],sign:n[3],symbol:n[4],zero:n[5],width:n[6],comma:n[7],precision:n[8]&&n[8].slice(1),trim:n[9],type:n[10]})}function _e(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+""}function He(t,n){if((i=(t=n?t.toExponential(n-1):t.toExponential()).indexOf("e"))<0)return null;var i,e=t.slice(0,i);return[e.length>1?e[0]+e.slice(2):e,+t.slice(i+1)]}function Re(t){return(t=He(Math.abs(t)))?t[1]:NaN}function Ie(t,n){var i=He(t,n);if(!i)return t+"";var e=i[0],r=i[1];return r<0?"0."+new Array(-r).join("0")+e:e.length>r+1?e.slice(0,r+1)+"."+e.slice(r+1):e+new Array(r-e.length+2).join("0")}Fe.prototype=_e.prototype,_e.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 We={"%":(t,n)=>(100*t).toFixed(n),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,n)=>t.toExponential(n),f:(t,n)=>t.toFixed(n),g:(t,n)=>t.toPrecision(n),o:t=>Math.round(t).toString(8),p:(t,n)=>Ie(100*t,n),r:Ie,s:function(t,n){var i=He(t,n);if(!i)return t+"";var e=i[0],r=i[1],o=r-(Pe=3*Math.max(-8,Math.min(8,Math.floor(r/3))))+1,u=e.length;return o===u?e:o>u?e+new Array(o-u+1).join("0"):o>0?e.slice(0,o)+"."+e.slice(o):"0."+new Array(1-o).join("0")+He(t,Math.max(0,n+o-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function ze(t){return t}var je,Ye,$e,Xe=Array.prototype.map,Ge=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function qe(t){return Math.max(0,-Re(Math.abs(t)))}function Ue(){var t=Ee();return t.copy=function(){return Te(t,Ue())},Oe.apply(t,arguments),function(t){var n=t.domain;return t.ticks=function(t){var i=n();return xi(i[0],i[i.length-1],null==t?10:t)},t.tickFormat=function(t,i){var e=n();return function(t,n,i,e){var r,o=wi(t,n,i);switch((e=Fe(null==e?",f":e)).type){case"s":var u=Math.max(Math.abs(t),Math.abs(n));return null!=e.precision||isNaN(r=function(t,n){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Re(n)/3)))-Re(Math.abs(t)))}(o,u))||(e.precision=r),$e(e,u);case"":case"e":case"g":case"p":case"r":null!=e.precision||isNaN(r=function(t,n){return t=Math.abs(t),n=Math.abs(n)-t,Math.max(0,Re(n)-Re(t))+1}(o,Math.max(Math.abs(t),Math.abs(n))))||(e.precision=r-("e"===e.type));break;case"f":case"%":null!=e.precision||isNaN(r=qe(o))||(e.precision=r-2*("%"===e.type))}return Ye(e)}(e[0],e[e.length-1],null==t?10:t,i)},t.nice=function(i){null==i&&(i=10);var e,r,o=n(),u=0,a=o.length-1,s=o[u],l=o[a],c=10;for(l<s&&(r=s,s=l,l=r,r=u,u=a,a=r);c-- >0;){if((r=Ci(s,l,i))===e)return o[u]=s,o[a]=l,n(o);if(r>0)s=Math.floor(s/r)*r,l=Math.ceil(l/r)*r;else{if(!(r<0))break;s=Math.ceil(s*r)/r,l=Math.floor(l*r)/r}e=r}return t},t}(t)}je=function(t){var n,i,e=void 0===t.grouping||void 0===t.thousands?ze:(n=Xe.call(t.grouping,Number),i=t.thousands+"",function(t,e){for(var r=t.length,o=[],u=0,a=n[0],s=0;r>0&&a>0&&(s+a+1>e&&(a=Math.max(1,e-s)),o.push(t.substring(r-=a,r+a)),!((s+=a+1)>e));)a=n[u=(u+1)%n.length];return o.reverse().join(i)}),r=void 0===t.currency?"":t.currency[0]+"",o=void 0===t.currency?"":t.currency[1]+"",u=void 0===t.decimal?".":t.decimal+"",a=void 0===t.numerals?ze:function(t){return function(n){return n.replace(/[0-9]/g,(function(n){return t[+n]}))}}(Xe.call(t.numerals,String)),s=void 0===t.percent?"%":t.percent+"",l=void 0===t.minus?"−":t.minus+"",c=void 0===t.nan?"NaN":t.nan+"";function f(t){var n=(t=Fe(t)).fill,i=t.align,f=t.sign,h=t.symbol,d=t.zero,v=t.width,p=t.comma,g=t.precision,m=t.trim,y=t.type;"n"===y?(p=!0,y="g"):We[y]||(void 0===g&&(g=12),m=!0,y="g"),(d||"0"===n&&"="===i)&&(d=!0,n="0",i="=");var b="$"===h?r:"#"===h&&/[boxX]/.test(y)?"0"+y.toLowerCase():"",x="$"===h?o:/[%p]/.test(y)?s:"",C=We[y],w=/[defgprs%]/.test(y);function M(t){var r,o,s,h=b,M=x;if("c"===y)M=C(t)+M,t="";else{var k=(t=+t)<0||1/t<0;if(t=isNaN(t)?c:C(Math.abs(t),g),m&&(t=function(t){t:for(var n,i=t.length,e=1,r=-1;e<i;++e)switch(t[e]){case".":r=n=e;break;case"0":0===r&&(r=e),n=e;break;default:if(!+t[e])break t;r>0&&(r=0)}return r>0?t.slice(0,r)+t.slice(n+1):t}(t)),k&&0==+t&&"+"!==f&&(k=!1),h=(k?"("===f?f:l:"-"===f||"("===f?"":f)+h,M=("s"===y?Ge[8+Pe/3]:"")+M+(k&&"("===f?")":""),w)for(r=-1,o=t.length;++r<o;)if(48>(s=t.charCodeAt(r))||s>57){M=(46===s?u+t.slice(r+1):t.slice(r))+M,t=t.slice(0,r);break}}p&&!d&&(t=e(t,1/0));var S=h.length+t.length+M.length,A=S<v?new Array(v-S+1).join(n):"";switch(p&&d&&(t=e(A+t,A.length?v-M.length:1/0),A=""),i){case"<":t=h+t+M+A;break;case"=":t=h+A+t+M;break;case"^":t=A.slice(0,S=A.length>>1)+h+t+M+A.slice(S);break;default:t=A+h+t+M}return a(t)}return g=void 0===g?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),M.toString=function(){return t+""},M}return{format:f,formatPrefix:function(t,n){var i=f(((t=Fe(t)).type="f",t)),e=3*Math.max(-8,Math.min(8,Math.floor(Re(n)/3))),r=Math.pow(10,-e),o=Ge[8+e/3];return function(t){return i(r*t)+o}}}}({thousands:",",grouping:[3],currency:["$",""]}),Ye=je.format,$e=je.formatPrefix;const Ze=1e3,Ke=6e4,Je=36e5,Qe=864e5,tr=6048e5,nr=31536e6,ir=new Date,er=new Date;function rr(t,n,i,e){function r(n){return t(n=0===arguments.length?new Date:new Date(+n)),n}return r.floor=n=>(t(n=new Date(+n)),n),r.ceil=i=>(t(i=new Date(i-1)),n(i,1),t(i),i),r.round=t=>{const n=r(t),i=r.ceil(t);return t-n<i-t?n:i},r.offset=(t,i)=>(n(t=new Date(+t),null==i?1:Math.floor(i)),t),r.range=(i,e,o)=>{const u=[];if(i=r.ceil(i),o=null==o?1:Math.floor(o),!(i<e&&o>0))return u;let a;do{u.push(a=new Date(+i)),n(i,o),t(i)}while(a<i&&i<e);return u},r.filter=i=>rr((n=>{if(n>=n)for(;t(n),!i(n);)n.setTime(n-1)}),((t,e)=>{if(t>=t)if(e<0)for(;++e<=0;)for(;n(t,-1),!i(t););else for(;--e>=0;)for(;n(t,1),!i(t););})),i&&(r.count=(n,e)=>(ir.setTime(+n),er.setTime(+e),t(ir),t(er),Math.floor(i(ir,er))),r.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?r.filter(e?n=>e(n)%t==0:n=>r.count(0,n)%t==0):r:null)),r}const or=rr((()=>{}),((t,n)=>{t.setTime(+t+n)}),((t,n)=>n-t));or.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?rr((n=>{n.setTime(Math.floor(n/t)*t)}),((n,i)=>{n.setTime(+n+i*t)}),((n,i)=>(i-n)/t)):or:null),or.range;const ur=rr((t=>{t.setTime(t-t.getMilliseconds())}),((t,n)=>{t.setTime(+t+n*Ze)}),((t,n)=>(n-t)/Ze),(t=>t.getUTCSeconds())),ar=(ur.range,rr((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Ze)}),((t,n)=>{t.setTime(+t+n*Ke)}),((t,n)=>(n-t)/Ke),(t=>t.getMinutes()))),sr=(ar.range,rr((t=>{t.setUTCSeconds(0,0)}),((t,n)=>{t.setTime(+t+n*Ke)}),((t,n)=>(n-t)/Ke),(t=>t.getUTCMinutes()))),lr=(sr.range,rr((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Ze-t.getMinutes()*Ke)}),((t,n)=>{t.setTime(+t+n*Je)}),((t,n)=>(n-t)/Je),(t=>t.getHours()))),cr=(lr.range,rr((t=>{t.setUTCMinutes(0,0,0)}),((t,n)=>{t.setTime(+t+n*Je)}),((t,n)=>(n-t)/Je),(t=>t.getUTCHours()))),fr=(cr.range,rr((t=>t.setHours(0,0,0,0)),((t,n)=>t.setDate(t.getDate()+n)),((t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Ke)/Qe),(t=>t.getDate()-1))),hr=(fr.range,rr((t=>{t.setUTCHours(0,0,0,0)}),((t,n)=>{t.setUTCDate(t.getUTCDate()+n)}),((t,n)=>(n-t)/Qe),(t=>t.getUTCDate()-1))),dr=(hr.range,rr((t=>{t.setUTCHours(0,0,0,0)}),((t,n)=>{t.setUTCDate(t.getUTCDate()+n)}),((t,n)=>(n-t)/Qe),(t=>Math.floor(t/Qe))));function vr(t){return rr((n=>{n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)}),((t,n)=>{t.setDate(t.getDate()+7*n)}),((t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Ke)/tr))}dr.range;const pr=vr(0),gr=vr(1),mr=vr(2),yr=vr(3),br=vr(4),xr=vr(5),Cr=vr(6);function wr(t){return rr((n=>{n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7),n.setUTCHours(0,0,0,0)}),((t,n)=>{t.setUTCDate(t.getUTCDate()+7*n)}),((t,n)=>(n-t)/tr))}pr.range,gr.range,mr.range,yr.range,br.range,xr.range,Cr.range;const Mr=wr(0),kr=wr(1),Sr=wr(2),Ar=wr(3),Lr=wr(4),Vr=wr(5),Dr=wr(6),Nr=(Mr.range,kr.range,Sr.range,Ar.range,Lr.range,Vr.range,Dr.range,rr((t=>{t.setDate(1),t.setHours(0,0,0,0)}),((t,n)=>{t.setMonth(t.getMonth()+n)}),((t,n)=>n.getMonth()-t.getMonth()+12*(n.getFullYear()-t.getFullYear())),(t=>t.getMonth()))),Tr=(Nr.range,rr((t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),((t,n)=>{t.setUTCMonth(t.getUTCMonth()+n)}),((t,n)=>n.getUTCMonth()-t.getUTCMonth()+12*(n.getUTCFullYear()-t.getUTCFullYear())),(t=>t.getUTCMonth()))),Er=(Tr.range,rr((t=>{t.setMonth(0,1),t.setHours(0,0,0,0)}),((t,n)=>{t.setFullYear(t.getFullYear()+n)}),((t,n)=>n.getFullYear()-t.getFullYear()),(t=>t.getFullYear())));Er.every=t=>isFinite(t=Math.floor(t))&&t>0?rr((n=>{n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)}),((n,i)=>{n.setFullYear(n.getFullYear()+i*t)})):null,Er.range;const Or=rr((t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),((t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n)}),((t,n)=>n.getUTCFullYear()-t.getUTCFullYear()),(t=>t.getUTCFullYear()));function Pr(t,n,i,e,r,o){const u=[[ur,1,Ze],[ur,5,5e3],[ur,15,15e3],[ur,30,3e4],[o,1,Ke],[o,5,3e5],[o,15,9e5],[o,30,18e5],[r,1,Je],[r,3,108e5],[r,6,216e5],[r,12,432e5],[e,1,Qe],[e,2,1728e5],[i,1,tr],[n,1,2592e6],[n,3,7776e6],[t,1,nr]];function a(n,i,e){const r=Math.abs(i-n)/e,o=Si((([,,t])=>t)).right(u,r);if(o===u.length)return t.every(wi(n/nr,i/nr,e));if(0===o)return or.every(Math.max(wi(n,i,e),1));const[a,s]=u[r/u[o-1][2]<u[o][2]/r?o-1:o];return a.every(s)}return[function(t,n,i){const e=n<t;e&&([t,n]=[n,t]);const r=i&&"function"==typeof i.range?i:a(t,n,i),o=r?r.range(t,+n+1):[];return e?o.reverse():o},a]}Or.every=t=>isFinite(t=Math.floor(t))&&t>0?rr((n=>{n.setUTCFullYear(Math.floor(n.getUTCFullYear()/t)*t),n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)}),((n,i)=>{n.setUTCFullYear(n.getUTCFullYear()+i*t)})):null,Or.range;const[Br,Fr]=Pr(Or,Tr,Mr,dr,cr,sr),[_r,Hr]=Pr(Er,Nr,pr,fr,lr,ar);var Rr=new Date,Ir=new Date;function Wr(t,n,i,e){function r(n){return t(n=0===arguments.length?new Date:new Date(+n)),n}return r.floor=function(n){return t(n=new Date(+n)),n},r.ceil=function(i){return t(i=new Date(i-1)),n(i,1),t(i),i},r.round=function(t){var n=r(t),i=r.ceil(t);return t-n<i-t?n:i},r.offset=function(t,i){return n(t=new Date(+t),null==i?1:Math.floor(i)),t},r.range=function(i,e,o){var u,a=[];if(i=r.ceil(i),o=null==o?1:Math.floor(o),!(i<e&&o>0))return a;do{a.push(u=new Date(+i)),n(i,o),t(i)}while(u<i&&i<e);return a},r.filter=function(i){return Wr((function(n){if(n>=n)for(;t(n),!i(n);)n.setTime(n-1)}),(function(t,e){if(t>=t)if(e<0)for(;++e<=0;)for(;n(t,-1),!i(t););else for(;--e>=0;)for(;n(t,1),!i(t););}))},i&&(r.count=function(n,e){return Rr.setTime(+n),Ir.setTime(+e),t(Rr),t(Ir),Math.floor(i(Rr,Ir))},r.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?r.filter(e?function(n){return e(n)%t==0}:function(n){return r.count(0,n)%t==0}):r:null}),r}const zr=864e5,jr=6048e5;function Yr(t){return Wr((function(n){n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7),n.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCDate(t.getUTCDate()+7*n)}),(function(t,n){return(n-t)/jr}))}var $r=Yr(0),Xr=Yr(1),Gr=Yr(2),qr=Yr(3),Ur=Yr(4),Zr=Yr(5),Kr=Yr(6),Jr=($r.range,Xr.range,Gr.range,qr.range,Ur.range,Zr.range,Kr.range,Wr((function(t){t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCDate(t.getUTCDate()+n)}),(function(t,n){return(n-t)/zr}),(function(t){return t.getUTCDate()-1}))),Qr=Jr;function to(t){return Wr((function(n){n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)}),(function(t,n){t.setDate(t.getDate()+7*n)}),(function(t,n){return(n-t-6e4*(n.getTimezoneOffset()-t.getTimezoneOffset()))/jr}))}Jr.range;var no=to(0),io=to(1),eo=to(2),ro=to(3),oo=to(4),uo=to(5),ao=to(6),so=(no.range,io.range,eo.range,ro.range,oo.range,uo.range,ao.range,Wr((t=>t.setHours(0,0,0,0)),((t,n)=>t.setDate(t.getDate()+n)),((t,n)=>(n-t-6e4*(n.getTimezoneOffset()-t.getTimezoneOffset()))/zr),(t=>t.getDate()-1))),lo=so,co=(so.range,Wr((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n)}),(function(t,n){return n.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()})));co.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Wr((function(n){n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)}),(function(n,i){n.setFullYear(n.getFullYear()+i*t)})):null};var fo=co,ho=(co.range,Wr((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n)}),(function(t,n){return n.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()})));ho.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Wr((function(n){n.setUTCFullYear(Math.floor(n.getUTCFullYear()/t)*t),n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)}),(function(n,i){n.setUTCFullYear(n.getUTCFullYear()+i*t)})):null};var vo=ho;function po(t){if(0<=t.y&&t.y<100){var n=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return n.setFullYear(t.y),n}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function go(t){if(0<=t.y&&t.y<100){var n=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return n.setUTCFullYear(t.y),n}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function mo(t,n,i){return{y:t,m:n,d:i,H:0,M:0,S:0,L:0}}function yo(t){var n=t.dateTime,i=t.date,e=t.time,r=t.periods,o=t.days,u=t.shortDays,a=t.months,s=t.shortMonths,l=Vo(r),c=Do(r),f=Vo(o),h=Do(o),d=Vo(u),v=Do(u),p=Vo(a),g=Do(a),m=Vo(s),y=Do(s),b={a:function(t){return u[t.getDay()]},A:function(t){return o[t.getDay()]},b:function(t){return s[t.getMonth()]},B:function(t){return a[t.getMonth()]},c:null,d:Zo,e:Zo,f:nu,g:hu,G:vu,H:Ko,I:Jo,j:Qo,L:tu,m:iu,M:eu,p:function(t){return r[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:_u,s:Hu,S:ru,u:ou,U:uu,V:su,w:lu,W:cu,x:null,X:null,y:fu,Y:du,Z:pu,"%":Fu},x={a:function(t){return u[t.getUTCDay()]},A:function(t){return o[t.getUTCDay()]},b:function(t){return s[t.getUTCMonth()]},B:function(t){return a[t.getUTCMonth()]},c:null,d:gu,e:gu,f:Cu,g:Eu,G:Pu,H:mu,I:yu,j:bu,L:xu,m:wu,M:Mu,p:function(t){return r[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:_u,s:Hu,S:ku,u:Su,U:Au,V:Vu,w:Du,W:Nu,x:null,X:null,y:Tu,Y:Ou,Z:Bu,"%":Fu},C={a:function(t,n,i){var e=d.exec(n.slice(i));return e?(t.w=v.get(e[0].toLowerCase()),i+e[0].length):-1},A:function(t,n,i){var e=f.exec(n.slice(i));return e?(t.w=h.get(e[0].toLowerCase()),i+e[0].length):-1},b:function(t,n,i){var e=m.exec(n.slice(i));return e?(t.m=y.get(e[0].toLowerCase()),i+e[0].length):-1},B:function(t,n,i){var e=p.exec(n.slice(i));return e?(t.m=g.get(e[0].toLowerCase()),i+e[0].length):-1},c:function(t,i,e){return k(t,n,i,e)},d:Io,e:Io,f:Xo,g:Fo,G:Bo,H:zo,I:zo,j:Wo,L:$o,m:Ro,M:jo,p:function(t,n,i){var e=l.exec(n.slice(i));return e?(t.p=c.get(e[0].toLowerCase()),i+e[0].length):-1},q:Ho,Q:qo,s:Uo,S:Yo,u:To,U:Eo,V:Oo,w:No,W:Po,x:function(t,n,e){return k(t,i,n,e)},X:function(t,n,i){return k(t,e,n,i)},y:Fo,Y:Bo,Z:_o,"%":Go};function w(t,n){return function(i){var e,r,o,u=[],a=-1,s=0,l=t.length;for(i instanceof Date||(i=new Date(+i));++a<l;)37===t.charCodeAt(a)&&(u.push(t.slice(s,a)),null!=(r=wo[e=t.charAt(++a)])?e=t.charAt(++a):r="e"===e?" ":"0",(o=n[e])&&(e=o(i,r)),u.push(e),s=a+1);return u.push(t.slice(s,a)),u.join("")}}function M(t,n){return function(i){var e,r,o=mo(1900,void 0,1);if(k(o,t,i+="",0)!=i.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(n&&!("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=(e=go(mo(o.y,0,1))).getUTCDay(),e=r>4||0===r?Xr.ceil(e):Xr(e),e=Qr.offset(e,7*(o.V-1)),o.y=e.getUTCFullYear(),o.m=e.getUTCMonth(),o.d=e.getUTCDate()+(o.w+6)%7):(r=(e=po(mo(o.y,0,1))).getDay(),e=r>4||0===r?io.ceil(e):io(e),e=lo.offset(e,7*(o.V-1)),o.y=e.getFullYear(),o.m=e.getMonth(),o.d=e.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),r="Z"in o?go(mo(o.y,0,1)).getUTCDay():po(mo(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(r+5)%7:o.w+7*o.U-(r+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,go(o)):po(o)}}function k(t,n,i,e){for(var r,o,u=0,a=n.length,s=i.length;u<a;){if(e>=s)return-1;if(37===(r=n.charCodeAt(u++))){if(r=n.charAt(u++),!(o=C[r in wo?n.charAt(u++):r])||(e=o(t,i,e))<0)return-1}else if(r!=i.charCodeAt(e++))return-1}return e}return b.x=w(i,b),b.X=w(e,b),b.c=w(n,b),x.x=w(i,x),x.X=w(e,x),x.c=w(n,x),{format:function(t){var n=w(t+="",b);return n.toString=function(){return t},n},parse:function(t){var n=M(t+="",!1);return n.toString=function(){return t},n},utcFormat:function(t){var n=w(t+="",x);return n.toString=function(){return t},n},utcParse:function(t){var n=M(t+="",!0);return n.toString=function(){return t},n}}}ho.range;var bo,xo,Co,wo={"-":"",_:" ",0:"0"},Mo=/^\s*\d+/,ko=/^%/,So=/[\\^$*+?|[\]().{}]/g;function Ao(t,n,i){var e=t<0?"-":"",r=(e?-t:t)+"",o=r.length;return e+(o<i?new Array(i-o+1).join(n)+r:r)}function Lo(t){return t.replace(So,"\\$&")}function Vo(t){return new RegExp("^(?:"+t.map(Lo).join("|")+")","i")}function Do(t){return new Map(t.map(((t,n)=>[t.toLowerCase(),n])))}function No(t,n,i){var e=Mo.exec(n.slice(i,i+1));return e?(t.w=+e[0],i+e[0].length):-1}function To(t,n,i){var e=Mo.exec(n.slice(i,i+1));return e?(t.u=+e[0],i+e[0].length):-1}function Eo(t,n,i){var e=Mo.exec(n.slice(i,i+2));return e?(t.U=+e[0],i+e[0].length):-1}function Oo(t,n,i){var e=Mo.exec(n.slice(i,i+2));return e?(t.V=+e[0],i+e[0].length):-1}function Po(t,n,i){var e=Mo.exec(n.slice(i,i+2));return e?(t.W=+e[0],i+e[0].length):-1}function Bo(t,n,i){var e=Mo.exec(n.slice(i,i+4));return e?(t.y=+e[0],i+e[0].length):-1}function Fo(t,n,i){var e=Mo.exec(n.slice(i,i+2));return e?(t.y=+e[0]+(+e[0]>68?1900:2e3),i+e[0].length):-1}function _o(t,n,i){var e=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(n.slice(i,i+6));return e?(t.Z=e[1]?0:-(e[2]+(e[3]||"00")),i+e[0].length):-1}function Ho(t,n,i){var e=Mo.exec(n.slice(i,i+1));return e?(t.q=3*e[0]-3,i+e[0].length):-1}function Ro(t,n,i){var e=Mo.exec(n.slice(i,i+2));return e?(t.m=e[0]-1,i+e[0].length):-1}function Io(t,n,i){var e=Mo.exec(n.slice(i,i+2));return e?(t.d=+e[0],i+e[0].length):-1}function Wo(t,n,i){var e=Mo.exec(n.slice(i,i+3));return e?(t.m=0,t.d=+e[0],i+e[0].length):-1}function zo(t,n,i){var e=Mo.exec(n.slice(i,i+2));return e?(t.H=+e[0],i+e[0].length):-1}function jo(t,n,i){var e=Mo.exec(n.slice(i,i+2));return e?(t.M=+e[0],i+e[0].length):-1}function Yo(t,n,i){var e=Mo.exec(n.slice(i,i+2));return e?(t.S=+e[0],i+e[0].length):-1}function $o(t,n,i){var e=Mo.exec(n.slice(i,i+3));return e?(t.L=+e[0],i+e[0].length):-1}function Xo(t,n,i){var e=Mo.exec(n.slice(i,i+6));return e?(t.L=Math.floor(e[0]/1e3),i+e[0].length):-1}function Go(t,n,i){var e=ko.exec(n.slice(i,i+1));return e?i+e[0].length:-1}function qo(t,n,i){var e=Mo.exec(n.slice(i));return e?(t.Q=+e[0],i+e[0].length):-1}function Uo(t,n,i){var e=Mo.exec(n.slice(i));return e?(t.s=+e[0],i+e[0].length):-1}function Zo(t,n){return Ao(t.getDate(),n,2)}function Ko(t,n){return Ao(t.getHours(),n,2)}function Jo(t,n){return Ao(t.getHours()%12||12,n,2)}function Qo(t,n){return Ao(1+lo.count(fo(t),t),n,3)}function tu(t,n){return Ao(t.getMilliseconds(),n,3)}function nu(t,n){return tu(t,n)+"000"}function iu(t,n){return Ao(t.getMonth()+1,n,2)}function eu(t,n){return Ao(t.getMinutes(),n,2)}function ru(t,n){return Ao(t.getSeconds(),n,2)}function ou(t){var n=t.getDay();return 0===n?7:n}function uu(t,n){return Ao(no.count(fo(t)-1,t),n,2)}function au(t){var n=t.getDay();return n>=4||0===n?oo(t):oo.ceil(t)}function su(t,n){return t=au(t),Ao(oo.count(fo(t),t)+(4===fo(t).getDay()),n,2)}function lu(t){return t.getDay()}function cu(t,n){return Ao(io.count(fo(t)-1,t),n,2)}function fu(t,n){return Ao(t.getFullYear()%100,n,2)}function hu(t,n){return Ao((t=au(t)).getFullYear()%100,n,2)}function du(t,n){return Ao(t.getFullYear()%1e4,n,4)}function vu(t,n){var i=t.getDay();return Ao((t=i>=4||0===i?oo(t):oo.ceil(t)).getFullYear()%1e4,n,4)}function pu(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+Ao(n/60|0,"0",2)+Ao(n%60,"0",2)}function gu(t,n){return Ao(t.getUTCDate(),n,2)}function mu(t,n){return Ao(t.getUTCHours(),n,2)}function yu(t,n){return Ao(t.getUTCHours()%12||12,n,2)}function bu(t,n){return Ao(1+Qr.count(vo(t),t),n,3)}function xu(t,n){return Ao(t.getUTCMilliseconds(),n,3)}function Cu(t,n){return xu(t,n)+"000"}function wu(t,n){return Ao(t.getUTCMonth()+1,n,2)}function Mu(t,n){return Ao(t.getUTCMinutes(),n,2)}function ku(t,n){return Ao(t.getUTCSeconds(),n,2)}function Su(t){var n=t.getUTCDay();return 0===n?7:n}function Au(t,n){return Ao($r.count(vo(t)-1,t),n,2)}function Lu(t){var n=t.getUTCDay();return n>=4||0===n?Ur(t):Ur.ceil(t)}function Vu(t,n){return t=Lu(t),Ao(Ur.count(vo(t),t)+(4===vo(t).getUTCDay()),n,2)}function Du(t){return t.getUTCDay()}function Nu(t,n){return Ao(Xr.count(vo(t)-1,t),n,2)}function Tu(t,n){return Ao(t.getUTCFullYear()%100,n,2)}function Eu(t,n){return Ao((t=Lu(t)).getUTCFullYear()%100,n,2)}function Ou(t,n){return Ao(t.getUTCFullYear()%1e4,n,4)}function Pu(t,n){var i=t.getUTCDay();return Ao((t=i>=4||0===i?Ur(t):Ur.ceil(t)).getUTCFullYear()%1e4,n,4)}function Bu(){return"+0000"}function Fu(){return"%"}function _u(t){return+t}function Hu(t){return Math.floor(+t/1e3)}function Ru(t){return new Date(t)}function Iu(t){return t instanceof Date?+t:+new Date(+t)}function Wu(t,n,i,e,r,o,u,a,s,l){var c=Ee(),f=c.invert,h=c.domain,d=l(".%L"),v=l(":%S"),p=l("%I:%M"),g=l("%I %p"),m=l("%a %d"),y=l("%b %d"),b=l("%B"),x=l("%Y");function C(t){return(s(t)<t?d:a(t)<t?v:u(t)<t?p:o(t)<t?g:e(t)<t?r(t)<t?m:y:i(t)<t?b:x)(t)}return c.invert=function(t){return new Date(f(t))},c.domain=function(t){return arguments.length?h(Array.from(t,Iu)):h().map(Ru)},c.ticks=function(n){var i=h();return t(i[0],i[i.length-1],null==n?10:n)},c.tickFormat=function(t,n){return null==n?C:l(n)},c.nice=function(t){var i=h();return t&&"function"==typeof t.range||(t=n(i[0],i[i.length-1],null==t?10:t)),t?h(function(t,n){var i,e=0,r=(t=t.slice()).length-1,o=t[e],u=t[r];return u<o&&(i=e,e=r,r=i,i=o,o=u,u=i),t[e]=n.floor(o),t[r]=n.ceil(u),t}(i,t)):c},c.copy=function(){return Te(c,Wu(t,n,i,e,r,o,u,a,s,l))},c}function zu(){return Oe.apply(Wu(_r,Hr,Er,Nr,pr,fr,lr,ar,ur,xo).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function ju(){return Oe.apply(Wu(Br,Fr,Or,Tr,Mr,hr,cr,sr,ur,Co).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}bo=yo({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"]}),xo=bo.format,bo.parse,Co=bo.utcFormat,bo.utcParse;class Yu extends Map{constructor(t,n=Xu){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),null!=t)for(const[n,i]of t)this.set(n,i)}get(t){return super.get($u(this,t))}has(t){return super.has($u(this,t))}set(t,n){return super.set(function({_intern:t,_key:n},i){const e=n(i);return t.has(e)?t.get(e):(t.set(e,i),i)}(this,t),n)}delete(t){return super.delete(function({_intern:t,_key:n},i){const e=n(i);return t.has(e)&&(i=t.get(i),t.delete(e)),i}(this,t))}}function $u({_intern:t,_key:n},i){const e=n(i);return t.has(e)?t.get(e):i}function Xu(t){return null!==t&&"object"==typeof t?t.valueOf():t}Set;const Gu=Symbol("implicit");function qu(){var t=new Yu,n=[],i=[],e=Gu;function r(r){let o=t.get(r);if(void 0===o){if(e!==Gu)return e;t.set(r,o=n.push(r)-1)}return i[o%i.length]}return r.domain=function(i){if(!arguments.length)return n.slice();n=[],t=new Yu;for(const e of i)t.has(e)||t.set(e,n.push(e)-1);return r},r.range=function(t){return arguments.length?(i=Array.from(t),r):i.slice()},r.unknown=function(t){return arguments.length?(e=t,r):e},r.copy=function(){return qu(n,i).unknown(e)},Oe.apply(r,arguments),r}function Uu(){var t,n,i=qu().unknown(void 0),e=i.domain,r=i.range,o=0,u=1,a=!1,s=0,l=0,c=.5;function f(){var i=e().length,f=u<o,h=f?u:o,d=f?o:u;t=(d-h)/Math.max(1,i-s+2*l),a&&(t=Math.floor(t)),h+=(d-h-t*(i-s))*c,n=t*(1-s),a&&(h=Math.round(h),n=Math.round(n));var v=function(t,n,i){t=+t,n=+n,i=(r=arguments.length)<2?(n=t,t=0,1):r<3?1:+i;for(var e=-1,r=0|Math.max(0,Math.ceil((n-t)/i)),o=new Array(r);++e<r;)o[e]=t+e*i;return o}(i).map((function(n){return h+t*n}));return r(f?v.reverse():v)}return delete i.unknown,i.domain=function(t){return arguments.length?(e(t),f()):e()},i.range=function(t){return arguments.length?([o,u]=t,o=+o,u=+u,f()):[o,u]},i.rangeRound=function(t){return[o,u]=t,o=+o,u=+u,a=!0,f()},i.bandwidth=function(){return n},i.step=function(){return t},i.round=function(t){return arguments.length?(a=!!t,f()):a},i.padding=function(t){return arguments.length?(s=Math.min(1,l=+t),f()):s},i.paddingInner=function(t){return arguments.length?(s=Math.min(1,t),f()):s},i.paddingOuter=function(t){return arguments.length?(l=+t,f()):l},i.align=function(t){return arguments.length?(c=Math.max(0,Math.min(1,t)),f()):c},i.copy=function(){return Uu(e(),[o,u]).round(a).paddingInner(s).paddingOuter(l).align(c)},Oe.apply(f(),arguments)}function Zu(){}function Ku(t){return null==t?Zu:function(){return this.querySelector(t)}}function Ju(t){return null==t?[]:Array.isArray(t)?t:Array.from(t)}function Qu(){return[]}function ta(t){return function(n){return n.matches(t)}}var na=Array.prototype.find;function ia(){return this.firstElementChild}var ea=Array.prototype.filter;function ra(){return Array.from(this.children)}function oa(t){return new Array(t.length)}function ua(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}function aa(t,n,i,e,r,o){for(var u,a=0,s=n.length,l=o.length;a<l;++a)(u=n[a])?(u.__data__=o[a],e[a]=u):i[a]=new ua(t,o[a]);for(;a<s;++a)(u=n[a])&&(r[a]=u)}function sa(t,n,i,e,r,o,u){var a,s,l,c=new Map,f=n.length,h=o.length,d=new Array(f);for(a=0;a<f;++a)(s=n[a])&&(d[a]=l=u.call(s,s.__data__,a,n)+"",c.has(l)?r[a]=s:c.set(l,s));for(a=0;a<h;++a)l=u.call(t,o[a],a,o)+"",(s=c.get(l))?(e[a]=s,s.__data__=o[a],c.delete(l)):i[a]=new ua(t,o[a]);for(a=0;a<f;++a)(s=n[a])&&c.get(d[a])===s&&(r[a]=s)}function la(t){return t.__data__}function ca(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function fa(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}ua.prototype={constructor:ua,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var ha="http://www.w3.org/1999/xhtml",da={svg:"http://www.w3.org/2000/svg",xhtml:ha,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function va(t){var n=t+="",i=n.indexOf(":");return i>=0&&"xmlns"!==(n=t.slice(0,i))&&(t=t.slice(i+1)),da.hasOwnProperty(n)?{space:da[n],local:t}:t}function pa(t){return function(){this.removeAttribute(t)}}function ga(t){return function(){this.removeAttributeNS(t.space,t.local)}}function ma(t,n){return function(){this.setAttribute(t,n)}}function ya(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function ba(t,n){return function(){var i=n.apply(this,arguments);null==i?this.removeAttribute(t):this.setAttribute(t,i)}}function xa(t,n){return function(){var i=n.apply(this,arguments);null==i?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,i)}}function Ca(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function wa(t){return function(){this.style.removeProperty(t)}}function Ma(t,n,i){return function(){this.style.setProperty(t,n,i)}}function ka(t,n,i){return function(){var e=n.apply(this,arguments);null==e?this.style.removeProperty(t):this.style.setProperty(t,e,i)}}function Sa(t){return function(){delete this[t]}}function Aa(t,n){return function(){this[t]=n}}function La(t,n){return function(){var i=n.apply(this,arguments);null==i?delete this[t]:this[t]=i}}function Va(t){return t.trim().split(/^|\s+/)}function Da(t){return t.classList||new Na(t)}function Na(t){this._node=t,this._names=Va(t.getAttribute("class")||"")}function Ta(t,n){for(var i=Da(t),e=-1,r=n.length;++e<r;)i.add(n[e])}function Ea(t,n){for(var i=Da(t),e=-1,r=n.length;++e<r;)i.remove(n[e])}function Oa(t){return function(){Ta(this,t)}}function Pa(t){return function(){Ea(this,t)}}function Ba(t,n){return function(){(n.apply(this,arguments)?Ta:Ea)(this,t)}}function Fa(){this.textContent=""}function _a(t){return function(){this.textContent=t}}function Ha(t){return function(){var n=t.apply(this,arguments);this.textContent=null==n?"":n}}function Ra(){this.innerHTML=""}function Ia(t){return function(){this.innerHTML=t}}function Wa(t){return function(){var n=t.apply(this,arguments);this.innerHTML=null==n?"":n}}function za(){this.nextSibling&&this.parentNode.appendChild(this)}function ja(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Ya(t){return function(){var n=this.ownerDocument,i=this.namespaceURI;return i===ha&&n.documentElement.namespaceURI===ha?n.createElement(t):n.createElementNS(i,t)}}function $a(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Xa(t){var n=va(t);return(n.local?$a:Ya)(n)}function Ga(){return null}function qa(){var t=this.parentNode;t&&t.removeChild(this)}function Ua(){var t=this.cloneNode(!1),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function Za(){var t=this.cloneNode(!0),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function Ka(t){return function(){var n=this.__on;if(n){for(var i,e=0,r=-1,o=n.length;e<o;++e)i=n[e],t.type&&i.type!==t.type||i.name!==t.name?n[++r]=i:this.removeEventListener(i.type,i.listener,i.options);++r?n.length=r:delete this.__on}}}function Ja(t,n,i){return function(){var e,r=this.__on,o=function(t){return function(n){t.call(this,n,this.__data__)}}(n);if(r)for(var u=0,a=r.length;u<a;++u)if((e=r[u]).type===t.type&&e.name===t.name)return this.removeEventListener(e.type,e.listener,e.options),this.addEventListener(e.type,e.listener=o,e.options=i),void(e.value=n);this.addEventListener(t.type,o,i),e={type:t.type,name:t.name,value:n,listener:o,options:i},r?r.push(e):this.__on=[e]}}function Qa(t,n,i){var e=Ca(t),r=e.CustomEvent;"function"==typeof r?r=new r(n,i):(r=e.document.createEvent("Event"),i?(r.initEvent(n,i.bubbles,i.cancelable),r.detail=i.detail):r.initEvent(n,!1,!1)),t.dispatchEvent(r)}function ts(t,n){return function(){return Qa(this,t,n)}}function ns(t,n){return function(){return Qa(this,t,n.apply(this,arguments))}}Na.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var n=this._names.indexOf(t);n>=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var is,es,rs,os,us=[null];function as(t,n){this._groups=t,this._parents=n}function ss(t){return"string"==typeof t?new as([[document.querySelector(t)]],[document.documentElement]):new as([[t]],us)}function ls(t){return"string"==typeof t?new as([document.querySelectorAll(t)],[document.documentElement]):new as([Ju(t)],us)}function cs(t,n,i){var e=t.domainNRangeValues,r=t.showRoundOffXTickValues,o=void 0!==r&&r,u=t.xAxistickSize,a=void 0===u?6:u,s=t.tickPadding,l=void 0===s?10:s,c=t.xAxisCount,f=void 0===c?6:c,h=t.xAxisElement,d=Ue().domain([e.dStartValue,e.dEndValue]).range([e.rStartValue,e.rEndValue]);o&&d.nice();var v=hi(d).tickSize(a).tickPadding(l).ticks(f).tickFormat((function(t,n){var e="number"==typeof t?t:t.valueOf();return Os(e,i)}));n===es.HorizontalBarChartWithAxis&&v.tickSizeInner(-(t.containerHeight-t.margins.top)),h&&ss(h).call(v).selectAll("text").attr("aria-hidden","true");var p=d.ticks(f).map(v.tickFormat());return{xScale:d,tickValues:p}}function fs(t,n,i){var e=n?i?n.utcFormat:n.format:i?Co:xo,r=e(".%L"),o=e(":%S"),u=e("%I:%M"),a=e("%I %p"),s=e("%a %d"),l=e("%b %d"),c=e("%B"),f=e("%Y"),h=i?sr:ar,d=i?cr:lr,v=i?hr:fr,p=i?Tr:Nr,g=i?Mr:pr,m=i?Or:Er;return(ur(t)<t?r:h(t)<t?o:d(t)<t?u:v(t)<t?a:p(t)<t?g(t)<t?s:l:m(t)<t?c:f)(t)}function hs(t,n){var i=t.yMinMaxValues,e=void 0===i?{startValue:0,endValue:0}:i,r=t.yAxisElement,o=void 0===r?null:r,u=t.yMaxValue,a=void 0===u?0:u,s=t.yMinValue,l=void 0===s?0:s,c=t.containerHeight,f=t.margins,h=t.tickPadding,d=void 0===h?12:h,v=t.maxOfYVal,p=void 0===v?0:v,g=t.yAxisTickFormat,m=t.yAxisTickCount,y=void 0===m?4:m,b=p||e.endValue,x=b>a?b:a,C=e.startValue<l?0:l,w=Ue().domain([C,x]).range([c-f.bottom,f.top]),M=(n?fi(w):di(w)).tickPadding(d).ticks(y);return g?M.tickFormat(g):M.tickFormat(Ye(".2~s")),o&&ss(o).call(M).selectAll("text").attr("aria-hidden","true"),w}function ds(t,n,i,e,r,o){void 0===r&&(r=!1),void 0===o&&(o=!1);var u=t.yMinMaxValues,a=void 0===u?{startValue:0,endValue:0}:u,s=t.yAxisElement,l=void 0===s?null:s,c=t.yMaxValue,f=void 0===c?0:c,h=t.yMinValue,d=void 0===h?0:h,v=t.containerHeight,p=t.containerWidth,g=t.margins,m=t.tickPadding,y=void 0===m?12:m,b=t.maxOfYVal,x=void 0===b?0:b,C=t.yAxisTickFormat,w=t.yAxisTickCount,M=void 0===w?4:w,k=t.eventAnnotationProps,S=t.eventLabelHeight,A=x||a.endValue,L=A>f?A:f,V=o?Math.min(a.startValue,d||0):a.startValue<d?0:d,D=function(t,n,i,e){var r=e||(t-n)/i>=1?Math.ceil((t-n)/i):(t-n)/i,o=[n<0&&t>=0?0:n];if(o[0]===n&&o.push(n+r),n<0&&t>=0){for(;o[o.length-1]>n;)o.push(o[o.length-1]-r);o.reverse()}for(;o[o.length-1]<t;)o.push(o[o.length-1]+r);return o}(L,V,M,e),N=Ue().domain([o?D[0]:V,D[D.length-1]]).range([v-g.bottom,g.top+(k?S:0)]),T=(!n&&r||n&&!r?fi(N):di(N)).tickPadding(y).tickValues(D).tickSizeInner(-(p-g.left-g.right));return C?T.tickFormat(C):T.tickFormat(Ye(".2~s")),l&&ss(l).call(T).selectAll("text").attr("aria-hidden","true"),i.yAxisDomainValues=D,N}as.prototype=function(){return new as([[document.documentElement]],us)}.prototype={constructor:as,select:function(t){"function"!=typeof t&&(t=Ku(t));for(var n=this._groups,i=n.length,e=new Array(i),r=0;r<i;++r)for(var o,u,a=n[r],s=a.length,l=e[r]=new Array(s),c=0;c<s;++c)(o=a[c])&&(u=t.call(o,o.__data__,c,a))&&("__data__"in o&&(u.__data__=o.__data__),l[c]=u);return new as(e,this._parents)},selectAll:function(t){t="function"==typeof t?function(t){return function(){return Ju(t.apply(this,arguments))}}(t):function(t){return null==t?Qu:function(){return this.querySelectorAll(t)}}(t);for(var n=this._groups,i=n.length,e=[],r=[],o=0;o<i;++o)for(var u,a=n[o],s=a.length,l=0;l<s;++l)(u=a[l])&&(e.push(t.call(u,u.__data__,l,a)),r.push(u));return new as(e,r)},selectChild:function(t){return this.select(null==t?ia:function(t){return function(){return na.call(this.children,t)}}("function"==typeof t?t:ta(t)))},selectChildren:function(t){return this.selectAll(null==t?ra:function(t){return function(){return ea.call(this.children,t)}}("function"==typeof t?t:ta(t)))},filter:function(t){"function"!=typeof t&&(t=function(t){return function(){return this.matches(t)}}(t));for(var n=this._groups,i=n.length,e=new Array(i),r=0;r<i;++r)for(var o,u=n[r],a=u.length,s=e[r]=[],l=0;l<a;++l)(o=u[l])&&t.call(o,o.__data__,l,u)&&s.push(o);return new as(e,this._parents)},data:function(t,n){if(!arguments.length)return Array.from(this,la);var i,e=n?sa:aa,r=this._parents,o=this._groups;"function"!=typeof t&&(i=t,t=function(){return i});for(var u=o.length,a=new Array(u),s=new Array(u),l=new Array(u),c=0;c<u;++c){var f=r[c],h=o[c],d=h.length,v=ca(t.call(f,f&&f.__data__,c,r)),p=v.length,g=s[c]=new Array(p),m=a[c]=new Array(p);e(f,h,g,m,l[c]=new Array(d),v,n);for(var y,b,x=0,C=0;x<p;++x)if(y=g[x]){for(x>=C&&(C=x+1);!(b=m[C])&&++C<p;);y._next=b||null}}return(a=new as(a,r))._enter=s,a._exit=l,a},enter:function(){return new as(this._enter||this._groups.map(oa),this._parents)},exit:function(){return new as(this._exit||this._groups.map(oa),this._parents)},join:function(t,n,i){var e=this.enter(),r=this,o=this.exit();return"function"==typeof t?(e=t(e))&&(e=e.selection()):e=e.append(t+""),null!=n&&(r=n(r))&&(r=r.selection()),null==i?o.remove():i(o),e&&r?e.merge(r).order():r},merge:function(t){for(var n=t.selection?t.selection():t,i=this._groups,e=n._groups,r=i.length,o=e.length,u=Math.min(r,o),a=new Array(r),s=0;s<u;++s)for(var l,c=i[s],f=e[s],h=c.length,d=a[s]=new Array(h),v=0;v<h;++v)(l=c[v]||f[v])&&(d[v]=l);for(;s<r;++s)a[s]=i[s];return new as(a,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,n=-1,i=t.length;++n<i;)for(var e,r=t[n],o=r.length-1,u=r[o];--o>=0;)(e=r[o])&&(u&&4^e.compareDocumentPosition(u)&&u.parentNode.insertBefore(e,u),u=e);return this},sort:function(t){function n(n,i){return n&&i?t(n.__data__,i.__data__):!n-!i}t||(t=fa);for(var i=this._groups,e=i.length,r=new Array(e),o=0;o<e;++o){for(var u,a=i[o],s=a.length,l=r[o]=new Array(s),c=0;c<s;++c)(u=a[c])&&(l[c]=u);l.sort(n)}return new as(r,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var t=this._groups,n=0,i=t.length;n<i;++n)for(var e=t[n],r=0,o=e.length;r<o;++r){var u=e[r];if(u)return u}return null},size:function(){let t=0;for(const n of this)++t;return t},empty:function(){return!this.node()},each:function(t){for(var n=this._groups,i=0,e=n.length;i<e;++i)for(var r,o=n[i],u=0,a=o.length;u<a;++u)(r=o[u])&&t.call(r,r.__data__,u,o);return this},attr:function(t,n){var i=va(t);if(arguments.length<2){var e=this.node();return i.local?e.getAttributeNS(i.space,i.local):e.getAttribute(i)}return this.each((null==n?i.local?ga:pa:"function"==typeof n?i.local?xa:ba:i.local?ya:ma)(i,n))},style:function(t,n,i){return arguments.length>1?this.each((null==n?wa:"function"==typeof n?ka:Ma)(t,n,null==i?"":i)):function(t,n){return t.style.getPropertyValue(n)||Ca(t).getComputedStyle(t,null).getPropertyValue(n)}(this.node(),t)},property:function(t,n){return arguments.length>1?this.each((null==n?Sa:"function"==typeof n?La:Aa)(t,n)):this.node()[t]},classed:function(t,n){var i=Va(t+"");if(arguments.length<2){for(var e=Da(this.node()),r=-1,o=i.length;++r<o;)if(!e.contains(i[r]))return!1;return!0}return this.each(("function"==typeof n?Ba:n?Oa:Pa)(i,n))},text:function(t){return arguments.length?this.each(null==t?Fa:("function"==typeof t?Ha:_a)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?Ra:("function"==typeof t?Wa:Ia)(t)):this.node().innerHTML},raise:function(){return this.each(za)},lower:function(){return this.each(ja)},append:function(t){var n="function"==typeof t?t:Xa(t);return this.select((function(){return this.appendChild(n.apply(this,arguments))}))},insert:function(t,n){var i="function"==typeof t?t:Xa(t),e=null==n?Ga:"function"==typeof n?n:Ku(n);return this.select((function(){return this.insertBefore(i.apply(this,arguments),e.apply(this,arguments)||null)}))},remove:function(){return this.each(qa)},clone:function(t){return this.select(t?Za:Ua)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,n,i){var e,r,o=function(t){return t.trim().split(/^|\s+/).map((function(t){var n="",i=t.indexOf(".");return i>=0&&(n=t.slice(i+1),t=t.slice(0,i)),{type:t,name:n}}))}(t+""),u=o.length;if(!(arguments.length<2)){for(a=n?Ja:Ka,e=0;e<u;++e)this.each(a(o[e],n,i));return this}var a=this.node().__on;if(a)for(var s,l=0,c=a.length;l<c;++l)for(e=0,s=a[l];e<u;++e)if((r=o[e]).type===s.type&&r.name===s.name)return s.value},dispatch:function(t,n){return this.each(("function"==typeof n?ns:ts)(t,n))},[Symbol.iterator]:function*(){for(var t=this._groups,n=0,i=t.length;n<i;++n)for(var e,r=t[n],o=0,u=r.length;o<u;++o)(e=r[o])&&(yield e)}},function(t){t[t.AreaChart=0]="AreaChart",t[t.LineChart=1]="LineChart",t[t.VerticalBarChart=2]="VerticalBarChart",t[t.VerticalStackedBarChart=3]="VerticalStackedBarChart",t[t.GroupedVerticalBarChart=4]="GroupedVerticalBarChart",t[t.HeatMapChart=5]="HeatMapChart",t[t.HorizontalBarChartWithAxis=6]="HorizontalBarChartWithAxis"}(es||(es={})),function(t){t[t.NumericAxis=0]="NumericAxis",t[t.DateAxis=1]="DateAxis",t[t.StringAxis=2]="StringAxis"}(rs||(rs={})),function(t){t[t.NumericAxis=0]="NumericAxis",t[t.DateAxis=1]="DateAxis",t[t.StringAxis=2]="StringAxis"}(os||(os={}));var vs=function(t,n,i,e){var r=t.containerHeight,o=t.tickPadding,u=void 0===o?12:o,a=t.margins,s=t.yAxisTickFormat,l=t.yAxisElement,c=Uu().domain(n).range([r-a.bottom-e/2,a.top+e/2]),f=(i?fi(c):di(c)).tickPadding(u).ticks(n);return s&&f.tickFormat(s),l&&ss(l).call(f).selectAll("text"),c},ps=function(t,n,i){var e=t.containerHeight,r=t.tickPadding,o=void 0===r?12:r,u=t.margins,a=t.yAxisTickFormat,s=t.yAxisElement,l=t.yAxisPadding,c=void 0===l?0:l,f=Uu().domain(n).range([e-u.bottom,u.top]).padding(c),h=(i?fi(f):di(f)).tickPadding(o).tickValues(n).tickSize(0);return a&&h.tickFormat(a),s&&ss(s).call(h).selectAll("text"),f};function gs(t){var n=[];t.forEach((function(t){var i=t.data.filter((function(t){return!t.hideCallout})).map((function(n){return(0,o.Cl)((0,o.Cl)({},n),{legend:t.legend,color:t.color,index:t.index})}));n=n.concat(i)}));var i={};return n.forEach((function(t){var n=t.x instanceof Date?t.x.getTime():t.x;n in i?i[n].push({legend:t.legend,y:t.y,color:t.color,xAxisCalloutData:t.xAxisCalloutData,yAxisCalloutData:t.yAxisCalloutData,callOutAccessibilityData:t.callOutAccessibilityData,index:t.index}):i[n]=[{legend:t.legend,y:t.y,color:t.color,xAxisCalloutData:t.xAxisCalloutData,yAxisCalloutData:t.yAxisCalloutData,callOutAccessibilityData:t.callOutAccessibilityData,index:t.index}]})),Object.keys(i).map((function(t){return{x:Number(t),values:i[t]}}))}var ms=function(t,n,i){var e=ss("#".concat(n));if(e.text(t),!e.node())return!1;for(var r=!1,o=e.node().getComputedTextLength();o>i&&t.length>0;)t=t.slice(0,-1),e.text(t+"..."),r=!0,o=e.node().getComputedTextLength();return r},ys=function(t,n){void 0===n&&(n="none");var i=0,e=document.createElement("canvas").getContext("2d");if(e){var r=document.querySelector(n);if(r){var o=window.getComputedStyle(r,null),u=o.getPropertyValue("font-weight"),a=o.getPropertyValue("font-size"),s=o.getPropertyValue("font-family");e.font="".concat(u," ").concat(a," ").concat(s)}else e.font='600 10px "Segoe UI"';t.forEach((function(t){i=Math.max(e.measureText(t.toString()).width,i)}))}return i};function bs(t){var n=t.tooltipCls,i=t.xAxis,e=t.id;if(null===i)return null;for(var r=ss("body").append("div").attr("id",e).attr("class",n).style("opacity",0),o=i.selectAll("#BaseSpan")._groups[0],u=o&&Object.keys(o).length,a=[],s=0;s<u;s++){var l=o[s].dataset&&Object.values(o[s].dataset)[0];a.push(l)}var c=i.selectAll(".tick")._groups[0],f=c&&Object.keys(c).length,h=function(t){ss(c[t]).on("mouseover",(function(n,i){r.style("opacity",.9),r.text(a[t]).style("left",n.pageX+"px").style("top",n.pageY-28+"px")})).on("mouseout",(function(t){r.style("opacity",0)}))};for(s=0;s<f;s++)h(s)}function xs(t){var n=!1;return t&&t.length>0&&t.forEach((function(t){t.data.length>0&&(n=t.data[0].x instanceof Date)})),n}function Cs(t,n,i,e){var r=vi(t,(function(t){return vi(t.data,(function(t){return t.x}))})),o=pi(t,(function(t){return pi(t.data,(function(t){return t.x}))})),u=n.left,a=i-n.right;return e?{dStartValue:o,dEndValue:r,rStartValue:u,rEndValue:a}:{dStartValue:r,dEndValue:o,rStartValue:u,rEndValue:a}}function ws(t,n,i){var e=t.left,r=n-t.right;return i?{dStartValue:0,dEndValue:0,rStartValue:r,rEndValue:e}:{dStartValue:0,dEndValue:0,rStartValue:e,rEndValue:r}}function Ms(t,n,i,e,r,u,a){var s,l;void 0===r&&(r=[]),u===es.AreaChart||u===es.LineChart?(s=vi(t,(function(t){return vi(t.data,(function(t){return t.x}))})),l=pi(t,(function(t){return pi(t.data,(function(t){return t.x}))})),s=vi((0,o.fX)((0,o.fX)([],r,!0),[s],!1)),l=pi((0,o.fX)((0,o.fX)([],r,!0),[l],!1))):(s=vi(t,(function(t){return t.x})),l=pi(t,(function(t){return t.x})));var c=n.left,f=i-n.right;return e?{dStartValue:l,dEndValue:s,rStartValue:c,rEndValue:f}:{dStartValue:s,dEndValue:l,rStartValue:c,rEndValue:f}}function ks(t){var n=pi(t,(function(t){return pi(t.data,(function(t){return t.y}))}));return{startValue:vi(t,(function(t){return vi(t.data,(function(t){return t.y}))})),endValue:n}}function Ss(t){var n=pi(t,(function(t){return t.y}));return{startValue:vi(t,(function(t){return t.y})),endValue:n}}function As(t){var n=pi(t,(function(t){return void 0!==t.lineData?t.y>t.lineData.y?t.y:t.lineData.y:t.y}));return{startValue:vi(t,(function(t){return void 0!==t.lineData?t.y<t.lineData.y?t.y:t.lineData.y:t.y})),endValue:n}}function Ls(t,n){if(void 0!==n&&n===os.NumericAxis){var i=pi(t,(function(t){return t.y}));return{startValue:vi(t,(function(t){return t.y})),endValue:i}}return{startValue:0,endValue:0}}var Vs,Ds,Ns=function(t,n){if(n)switch(typeof t){case"string":return rs.StringAxis;case"number":return rs.NumericAxis;default:return rs.DateAxis}else switch(typeof t){case"string":return os.StringAxis;case"number":return os.NumericAxis;default:return os.DateAxis}};!function(t){t[t.circle=0]="circle",t[t.square=1]="square",t[t.triangle=2]="triangle",t[t.diamond=3]="diamond",t[t.pyramid=4]="pyramid",t[t.hexagon=5]="hexagon",t[t.pentagon=6]="pentagon",t[t.octagon=7]="octagon"}(Vs||(Vs={})),function(t){t[t.dottedLine=0]="dottedLine"}(Ds||(Ds={}));var Ts=((is={})[Vs.circle]={widthRatio:1},is[Vs.square]={widthRatio:1},is[Vs.triangle]={widthRatio:1},is[Vs.diamond]={widthRatio:1},is[Vs.pyramid]={widthRatio:1},is[Vs.hexagon]={widthRatio:2},is[Vs.pentagon]={widthRatio:1.168},is[Vs.octagon]={widthRatio:2.414},is),Es=function(t,n,i){return void 0===n&&(n="text"),void 0===i&&(i=!0),{role:n,"data-is-focusable":i,"aria-label":(t=null!=t?t:{}).ariaLabel,"aria-labelledby":t.ariaLabelledBy,"aria-describedby":t.ariaDescribedBy}},Os=function(t,n){return null==t||Number.isNaN(t)?t:(n=n||void 0,"number"==typeof t?t.toLocaleString(n):"string"!=typeof t||window.isNaN(Number(t))?t instanceof Date?t.toLocaleDateString(n):t:Number(t).toLocaleString(n))};function Ps(t){return $e(t<1e3?".2~":".1",t)(t)}var Bs=function(t,n,i){var e;return void 0===i&&(i=16),e="number"==typeof t?t:"default"===t||void 0===t?Math.min(i,16):i,"number"==typeof n&&(e=Math.min(e,n)),Math.max(e,1)},Fs=function(t,n,i){void 0===i&&(i=0);var e="number"==typeof t?t:"number"==typeof n?n:i;return Math.max(0,Math.min(e,1))},_s=function(t,n){return"number"==typeof t||"number"==typeof n},Hs=function(t,n){return(n?Co:xo)("%-e %b %Y, %H:%M")(t)+(n?" GMT":"")};function Rs(t){return void 0===t&&(t={}),t.dangerouslySetInnerHTML,(0,o.Tt)(t,["dangerouslySetInnerHTML"])}function Is(t,n){if(t===n)return!0;if(!t&&!n)return!0;if(!t||!n||t.length!==n.length)return!1;for(var i=0;i<t.length;i++)if(t[i]!==n[i])return!1;return!0}var Ws,zs=i(357),js={gradient1:"default.1",gradient2:"default.2",gradient3:"default.3",gradient4:"default.4",gradient5:"default.5",gradient6:"default.6",gradient7:"default.7",gradient8:"default.8",gradient9:"default.9",gradient10:"default.10",gradient1Ext:"extended.1",gradient2Ext:"extended.2",gradient3Ext:"extended.3",gradient4Ext:"extended.4",gradient5Ext:"extended.5",gradient6Ext:"extended.6",gradient7Ext:"extended.7",gradient8Ext:"extended.8",gradient9Ext:"extended.9",gradient10Ext:"extended.10",success:"semantic.success",highSuccess:"semantic.highSuccess",warning:"semantic.warning",error:"semantic.error",highError:"semantic.highError",disabled:"semantic.disabled"},Ys={1:[["#4760D5","#637CEF"],["#4F6BED","#637CEF"]],2:[["#795AA6","#9373C0"],["#8764B8","#A083C9"]],3:[["#159195","#2AA0A4"],["#159195","#2AA0A4"]],4:[["#B146C2","#C36BD1"],["#B146C2","#C36BD1"]],5:[["#3487C7","#3A96DD"],["#3487C7","#3A96DD"]],6:[["#0E7A0B","#13A10E"],["#11910D","#27AC22"]],7:[["#E61C99","#EE5FB7"],["#E61C99","#EE5FB7"]],8:[["#CA5010","#D77440"],["#CA5010","#D77440"]],9:[["#57811B","#689920"],["#57811B","#689920"]],10:[["#937700","#AE8C00"],["#937700","#AE8C00"]]},$s={default:Ys,semantic:{success:[["#0C5E0C","#107C10"],["#218C21","#359B35"]],highSuccess:[["#107C10","#359B35"],["#359B35","#9FD89F"]],warning:[["#DE590B","#F7630C"],["#DE590B","#F87528"]],error:[["#B10E1C","#CC2635"],["#D33F4C","#EEACB2"]],highError:[["#6E0811","#B10E1C"],["#D33F4C","#DC626D"]],disabled:[["#E6E6E6","#E6E6E6"],["#E6E6E6","#E6E6E6"]]},extended:{1:[["#2C3C85","#3C51B4"],["#93A4F4","#C8D1FA"]],2:[["#4C3867","#674C8C"],["#A083C9","#B29AD4"]],3:[["#02494C","#038387"],["#4CB4B7","#9BD9DB"]],4:[["#63276D","#863593"],["#C36BD1","#CF87DA"]],5:[["#20547C","#2C72A8"],["#4FA1E1","#83BDEB"]],6:[["#0B5A08","#0E7A0B"],["#27AC22","#5EC75A"]],7:[["#AD006A","#E3008C"],["#EE5FB7","#F7ADDA"]],8:[["#9A3D0C","#CA5010"],["#D77440","#DF8E64"]],9:[["#405F14","#57811B"],["#73AA24","#A4CC6C"]],10:[["#6D5700","#937700"],["#D0B232","#DAC157"]]}},Xs=Object.values(Ys),Gs=Object.values(js),qs=function(t,n){if(0===t.length)return["",""];var i=Number(n);return i<t.length?t[i]:t[0]},Us=function(t,n,i){void 0===n&&(n=0),void 0===i&&(i=!1);var e=Xs[(t+n)%Xs.length];return qs(e,i)},Zs=function(t,n){if(void 0===n&&(n=!1),Gs.indexOf(t)>=0){var i=t.split("."),e=i[0],r=i[1],o=$s[e][r];return qs(o,n)}return[t,t]};function Ks(t){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];return n.length<2?n[0]:function(){for(var i=[],e=0;e<arguments.length;e++)i[e]=arguments[e];n.forEach((function(n){return n&&n.apply(t,i)}))}}function Js(t){!function(t,n){for(var i in n)n.hasOwnProperty(i)&&(t[i]=Ks(t,t[i],n[i]))}(t,{componentDidMount:Qs,componentDidUpdate:tl,componentWillUnmount:nl})}function Qs(){il(this.props.componentRef,this)}function tl(t){t.componentRef!==this.props.componentRef&&(il(t.componentRef,null),il(this.props.componentRef,this))}function nl(){il(this.props.componentRef,null)}function il(t,n){t&&("object"==typeof t?t.current=n:"function"==typeof t&&t(n))}function el(t,n,i){var e,r=w(t,(function(t){var i;return n===t||!!(null===(i=t.hasAttribute)||void 0===i?void 0:i.call(t,Nn))}),i);return null!==r&&!!(null===(e=r.hasAttribute)||void 0===e?void 0:e.call(r,Nn))}!function(t){t[t.vertical=0]="vertical",t[t.horizontal=1]="horizontal",t[t.bidirectional=2]="bidirectional",t[t.domOrder=3]="domOrder"}(Ws||(Ws={}));var rl,ol=u.createContext(void 0),ul="data-is-focusable",al="data-focuszone-id",sl="tabindex",ll="data-no-vertical-wrap",cl="data-no-horizontal-wrap",fl=999999999,hl=-999999999;function dl(t,n){var i;"function"==typeof MouseEvent?i=new MouseEvent("click",{ctrlKey:null==n?void 0:n.ctrlKey,metaKey:null==n?void 0:n.metaKey,shiftKey:null==n?void 0:n.shiftKey,altKey:null==n?void 0:n.altKey,bubbles:null==n?void 0:n.bubbles,cancelable:null==n?void 0:n.cancelable}):(i=document.createEvent("MouseEvents")).initMouseEvent("click",!!n&&n.bubbles,!!n&&n.cancelable,window,0,0,0,0,0,!!n&&n.ctrlKey,!!n&&n.altKey,!!n&&n.shiftKey,!!n&&n.metaKey,0,null),t.dispatchEvent(i)}var vl,pl={},gl=new Set,ml=["text","number","password","email","tel","url","search","textarea"],yl=!1,bl=function(t){function n(i){var e,r,o,a,l,c=t.call(this,i)||this;c._root=u.createRef(),c._mergedRef=(l={refs:[]},function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return l.resolver&&function(t,n){if(t.length!==n.length)return!1;for(var i=0;i<t.length;i++)if(t[i]!==n[i])return!1;return!0}(l.refs,t)||(l.resolver=function(t){return function(n){for(var i=0,e=t.refs;i<e.length;i++){var r=e[i];"function"==typeof r?r(n):r&&(r.current=n)}}}(l)),l.refs=t,l.resolver}),c._onFocus=function(t){if(!c._portalContainsElement(t.target)){var n,i=c.props,e=i.onActiveElementChanged,r=i.doNotAllowFocusEventToPropagate,o=i.stopFocusPropagation,u=i.onFocusNotification,a=i.onFocus,s=i.shouldFocusInnerElementWhenReceivedFocus,l=i.defaultTabbableElement,f=c._isImmediateDescendantOfZone(t.target);if(f)n=t.target;else for(var h=t.target;h&&h!==c._root.current;){if(P(h,void 0,c._inShadowRoot)&&c._isImmediateDescendantOfZone(h)){n=h;break}h=C(h,yl)}if(s&&t.target===c._root.current){var d=l&&"function"==typeof l&&c._root.current&&l(c._root.current);d&&P(d,void 0,c._inShadowRoot)?(n=d,d.focus()):(c.focus(!0),c._activeElement&&(n=null))}var v=!c._activeElement;n&&n!==c._activeElement&&((f||v)&&c._setFocusAlignment(n,!0,!0),c._activeElement=n,v&&c._updateTabIndexes()),e&&e(c._activeElement,t),(o||r)&&t.stopPropagation(),a?a(t):u&&u()}},c._onBlur=function(){c._setParkedFocus(!1)},c._onMouseDown=function(t){if(!c._portalContainsElement(t.target)&&!c.props.disabled){for(var n=t.target,i=[];n&&n!==c._root.current;)i.push(n),n=C(n,yl);for(;i.length&&((n=i.pop())&&P(n,void 0,c._inShadowRoot)&&c._setActiveElement(n,!0),!B(n)););}},c._onKeyDown=function(t,n){if(!c._portalContainsElement(t.target)){var i=c.props,e=i.direction,r=i.disabled,o=i.isInnerZoneKeystroke,u=i.pagingSupportDisabled,a=i.shouldEnterInnerZone;if(!(r||(c.props.onKeyDown&&c.props.onKeyDown(t),t.isDefaultPrevented()||c._getDocument().activeElement===c._root.current&&c._isInnerZone))){if((a&&a(t)||o&&o(t))&&c._isImmediateDescendantOfZone(t.target)){var l=c._getFirstInnerZone();if(l){if(!l.focus(!0))return}else{if(!F(t.target))return;if(!c.focusElement(T(t.target,t.target.firstChild,!0)))return}}else{if(t.altKey)return;switch(t.which){case 32:if(c._shouldRaiseClicksOnSpace&&c._tryInvokeClickForFocusable(t.target,t))break;return;case 37:if(e!==Ws.vertical&&(c._preventDefaultWhenHandled(t),c._moveFocusLeft(n)))break;return;case 39:if(e!==Ws.vertical&&(c._preventDefaultWhenHandled(t),c._moveFocusRight(n)))break;return;case 38:if(e!==Ws.horizontal&&(c._preventDefaultWhenHandled(t),c._moveFocusUp()))break;return;case 40:if(e!==Ws.horizontal&&(c._preventDefaultWhenHandled(t),c._moveFocusDown()))break;return;case 34:if(!u&&c._moveFocusPaging(!0))break;return;case 33:if(!u&&c._moveFocusPaging(!1))break;return;case 9:if(c.props.allowTabKey||1===c.props.handleTabKey||2===c.props.handleTabKey&&c._isElementInput(t.target)){var f=!1;if(c._processingTabKey=!0,f=e!==Ws.vertical&&c._shouldWrapFocus(c._activeElement,cl)?((0,s.jI)(n)?!t.shiftKey:t.shiftKey)?c._moveFocusLeft(n):c._moveFocusRight(n):t.shiftKey?c._moveFocusUp():c._moveFocusDown(),c._processingTabKey=!1,f)break;c.props.shouldResetActiveElementWhenTabFromZone&&(c._activeElement=null)}return;case 36:if(c._isContentEditableElement(t.target)||c._isElementInput(t.target)&&!c._shouldInputLoseFocus(t.target,!1))return!1;var h=c._root.current&&c._root.current.firstChild;if(c._root.current&&h&&c.focusElement(T(c._root.current,h,!0)))break;return;case 35:if(c._isContentEditableElement(t.target)||c._isElementInput(t.target)&&!c._shouldInputLoseFocus(t.target,!0))return!1;var d=c._root.current&&c._root.current.lastChild;if(c._root.current&&c.focusElement(N(c._root.current,d,!0,!0,!0)))break;return;case 13:if(c._shouldRaiseClicksOnEnter&&c._tryInvokeClickForFocusable(t.target,t))break;return;default:return}}t.preventDefault(),t.stopPropagation()}}},c._getHorizontalDistanceFromCenter=function(t,n,i){var e=c._focusAlignment.left||c._focusAlignment.x||0,r=Math.floor(i.top),o=Math.floor(n.bottom),u=Math.floor(i.bottom),a=Math.floor(n.top);return t&&r>o||!t&&u<a?e>=i.left&&e<=i.left+i.width?0:Math.abs(i.left+i.width/2-e):c._shouldWrapFocus(c._activeElement,ll)?fl:hl},Js(c),In("FocusZone",i,{rootProps:void 0,allowTabKey:"handleTabKey",elementType:"as",ariaDescribedBy:"aria-describedby",ariaLabelledBy:"aria-labelledby"}),c._id=g("FocusZone"),c._focusAlignment={left:0,top:0},c._processingTabKey=!1;var f=null===(r=null!==(e=i.shouldRaiseClicks)&&void 0!==e?e:n.defaultProps.shouldRaiseClicks)||void 0===r||r;return c._shouldRaiseClicksOnEnter=null!==(o=i.shouldRaiseClicksOnEnter)&&void 0!==o?o:f,c._shouldRaiseClicksOnSpace=null!==(a=i.shouldRaiseClicksOnSpace)&&void 0!==a?a:f,c}return(0,o.C6)(n,t),n.getOuterZones=function(){return gl.size},n._onKeyDownCapture=function(t){9===t.which&&gl.forEach((function(t){return t._updateTabIndexes()}))},n.prototype.componentDidMount=function(){var t,i=this._root.current;if(this._inShadowRoot=!!(null===(t=this.context)||void 0===t?void 0:t.shadowRoot),pl[this._id]=this,i){for(var e=C(i,yl);e&&e!==this._getDocument().body&&1===e.nodeType;){if(B(e)){this._isInnerZone=!0;break}e=C(e,yl)}this._isInnerZone||(gl.add(this),this._root.current&&this._root.current.addEventListener("keydown",n._onKeyDownCapture,!0)),this._root.current&&this._root.current.addEventListener("blur",this._onBlur,!0),this._updateTabIndexes(),this.props.defaultTabbableElement&&"string"==typeof this.props.defaultTabbableElement?this._activeElement=this._getDocument().querySelector(this.props.defaultTabbableElement):this.props.defaultActiveElement&&(this._activeElement=this._getDocument().querySelector(this.props.defaultActiveElement)),this.props.shouldFocusOnMount&&this.focus()}},n.prototype.componentDidUpdate=function(){var t,n=this._root.current,i=this._getDocument();if(this._inShadowRoot=!!(null===(t=this.context)||void 0===t?void 0:t.shadowRoot),(this._activeElement&&!M(this._root.current,this._activeElement,yl)||this._defaultFocusElement&&!M(this._root.current,this._defaultFocusElement,yl))&&(this._activeElement=null,this._defaultFocusElement=null,this._updateTabIndexes()),!this.props.preventFocusRestoration&&i&&this._lastIndexPath&&(i.activeElement===i.body||null===i.activeElement||i.activeElement===n)){var e=function(t,n){for(var i=t,e=0,r=n;e<r.length;e++){var o=r[e],u=i.children[Math.min(o,i.children.length-1)];if(!u)break;i=u}return P(i)&&E(i)?i:T(t,i,!0)||N(t,i)}(n,this._lastIndexPath);e?(this._setActiveElement(e,!0),e.focus(),this._setParkedFocus(!1)):this._setParkedFocus(!0)}},n.prototype.componentWillUnmount=function(){delete pl[this._id],this._isInnerZone||(gl.delete(this),this._root.current&&this._root.current.removeEventListener("keydown",n._onKeyDownCapture,!0)),this._root.current&&this._root.current.removeEventListener("blur",this._onBlur,!0),this._activeElement=null,this._defaultFocusElement=null},n.prototype.render=function(){var t=this,n=this.props,i=n.as,e=n.elementType,r=n.rootProps,a=n.ariaDescribedBy,s=n.ariaLabelledBy,l=n.className,c=q(this.props,Y),f=i||e||"div";this._evaluateFocusBeforeRender();var h=(0,$t.O4)();return u.createElement(f,(0,o.Cl)({"aria-labelledby":s,"aria-describedby":a},c,r,{className:U((rl||(rl=(0,nt.Z)({selectors:{":focus":{outline:"none"}}},"ms-FocusZone")),rl),l),ref:this._mergedRef(this.props.elementRef,this._root),"data-focuszone-id":this._id,onKeyDown:function(n){return t._onKeyDown(n,h)},onFocus:this._onFocus,onMouseDownCapture:this._onMouseDown}),this.props.children)},n.prototype.focus=function(t,n){if(void 0===t&&(t=!1),void 0===n&&(n=!1),this._root.current){if(!t&&"true"===this._root.current.getAttribute(ul)&&this._isInnerZone){var i=this._getOwnerZone(this._root.current);if(i!==this._root.current){var e=pl[i.getAttribute(al)];return!!e&&e.focusElement(this._root.current)}return!1}if(!t&&this._activeElement&&M(this._root.current,this._activeElement)&&P(this._activeElement,void 0,this._inShadowRoot)&&(!n||O(this._activeElement)))return this._activeElement.focus(),!0;var r=this._root.current.firstChild;return this.focusElement(T(this._root.current,r,!0,void 0,void 0,void 0,void 0,void 0,n))}return!1},n.prototype.focusLast=function(){if(this._root.current){var t=this._root.current&&this._root.current.lastChild;return this.focusElement(N(this._root.current,t,!0,!0,!0))}return!1},n.prototype.focusElement=function(t,n){var i=this.props,e=i.onBeforeFocus,r=i.shouldReceiveFocus;return!(r&&!r(t)||e&&!e(t)||!t||(this._setActiveElement(t,n),this._activeElement&&this._activeElement.focus(),0))},n.prototype.setFocusAlignment=function(t){this._focusAlignment=t},Object.defineProperty(n.prototype,"defaultFocusElement",{get:function(){return this._defaultFocusElement},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"activeElement",{get:function(){return this._activeElement},enumerable:!1,configurable:!0}),n.prototype._evaluateFocusBeforeRender=function(){var t=this._root.current,n=this._getDocument();if(n){var i=n.activeElement;if(i!==t){var e=M(t,i,!1);this._lastIndexPath=e?function(t,n){for(var i=[];n&&t&&n!==t;){var e=C(n,!0);if(null===e)return[];i.unshift(Array.prototype.indexOf.call(e.children,n)),n=e}return i}(t,i):void 0}}},n.prototype._setParkedFocus=function(t){var n=this._root.current;n&&this._isParked!==t&&(this._isParked=t,t?(this.props.allowFocusRoot||(this._parkedTabIndex=n.getAttribute("tabindex"),n.setAttribute("tabindex","-1")),n.focus()):this.props.allowFocusRoot||(this._parkedTabIndex?(n.setAttribute("tabindex",this._parkedTabIndex),this._parkedTabIndex=void 0):n.removeAttribute("tabindex")))},n.prototype._setActiveElement=function(t,n){var i=this._activeElement;this._activeElement=t,i&&(B(i)&&this._updateTabIndexes(i),i.tabIndex=-1),this._activeElement&&(this._focusAlignment&&!n||this._setFocusAlignment(t,!0,!0),this._activeElement.tabIndex=0)},n.prototype._preventDefaultWhenHandled=function(t){this.props.preventDefaultWhenHandled&&t.preventDefault()},n.prototype._tryInvokeClickForFocusable=function(t,n){var i=t;if(i===this._root.current)return!1;do{if("BUTTON"===i.tagName||"A"===i.tagName||"INPUT"===i.tagName||"TEXTAREA"===i.tagName||"SUMMARY"===i.tagName)return!1;if(this._isImmediateDescendantOfZone(i)&&"true"===i.getAttribute(ul)&&"true"!==i.getAttribute("data-disable-click-on-enter"))return dl(i,n),!0;i=C(i,yl)}while(i!==this._root.current);return!1},n.prototype._getFirstInnerZone=function(t){if(!(t=t||this._activeElement||this._root.current))return null;if(B(t))return pl[t.getAttribute(al)];for(var n=t.firstElementChild;n;){if(B(n))return pl[n.getAttribute(al)];var i=this._getFirstInnerZone(n);if(i)return i;n=n.nextElementSibling}return null},n.prototype._moveFocus=function(t,n,i,e){void 0===e&&(e=!0);var r=this._activeElement,o=-1,u=void 0,a=!1,s=this.props.direction===Ws.bidirectional;if(!r||!this._root.current)return!1;if(this._isElementInput(r)&&!this._shouldInputLoseFocus(r,t))return!1;var l=s?r.getBoundingClientRect():null;do{if(r=t?T(this._root.current,r):N(this._root.current,r),!s){u=r;break}if(r){var c=n(l,r.getBoundingClientRect());if(-1===c&&-1===o){u=r;break}if(c>-1&&(-1===o||c<o)&&(o=c,u=r),o>=0&&c<0)break}}while(r);if(u&&u!==this._activeElement)a=!0,this.focusElement(u);else if(this.props.isCircularNavigation&&e)return t?this.focusElement(T(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement(N(this._root.current,this._root.current.lastElementChild,!0,!0,!0));return a},n.prototype._moveFocusDown=function(){var t=this,n=-1,i=this._focusAlignment.left||this._focusAlignment.x||0;return!!this._moveFocus(!0,(function(e,r){var o=-1,u=Math.floor(r.top),a=Math.floor(e.bottom);return u<a?t._shouldWrapFocus(t._activeElement,ll)?fl:hl:((-1===n&&u>=a||u===n)&&(n=u,o=i>=r.left&&i<=r.left+r.width?0:Math.abs(r.left+r.width/2-i)),o)}))&&(this._setFocusAlignment(this._activeElement,!1,!0),!0)},n.prototype._moveFocusUp=function(){var t=this,n=-1,i=this._focusAlignment.left||this._focusAlignment.x||0;return!!this._moveFocus(!1,(function(e,r){var o=-1,u=Math.floor(r.bottom),a=Math.floor(r.top),s=Math.floor(e.top);return u>s?t._shouldWrapFocus(t._activeElement,ll)?fl:hl:((-1===n&&u<=s||a===n)&&(n=a,o=i>=r.left&&i<=r.left+r.width?0:Math.abs(r.left+r.width/2-i)),o)}))&&(this._setFocusAlignment(this._activeElement,!1,!0),!0)},n.prototype._moveFocusLeft=function(t){var n=this,i=this._shouldWrapFocus(this._activeElement,cl);return!!this._moveFocus((0,s.jI)(t),(function(e,r){var o=-1;return((0,s.jI)(t)?parseFloat(r.top.toFixed(3))<parseFloat(e.bottom.toFixed(3)):parseFloat(r.bottom.toFixed(3))>parseFloat(e.top.toFixed(3)))&&r.right<=e.right&&n.props.direction!==Ws.vertical?o=e.right-r.right:i||(o=hl),o}),void 0,i)&&(this._setFocusAlignment(this._activeElement,!0,!1),!0)},n.prototype._moveFocusRight=function(t){var n=this,i=this._shouldWrapFocus(this._activeElement,cl);return!!this._moveFocus(!(0,s.jI)(t),(function(e,r){var o=-1;return((0,s.jI)(t)?parseFloat(r.bottom.toFixed(3))>parseFloat(e.top.toFixed(3)):parseFloat(r.top.toFixed(3))<parseFloat(e.bottom.toFixed(3)))&&r.left>=e.left&&n.props.direction!==Ws.vertical?o=r.left-e.left:i||(o=hl),o}),void 0,i)&&(this._setFocusAlignment(this._activeElement,!0,!1),!0)},n.prototype._moveFocusPaging=function(t,n){void 0===n&&(n=!0);var i=this._activeElement;if(!i||!this._root.current)return!1;if(this._isElementInput(i)&&!this._shouldInputLoseFocus(i,t))return!1;var e=et(i);if(!e)return!1;var r=-1,o=void 0,u=-1,a=-1,s=e.clientHeight,l=i.getBoundingClientRect();do{if(i=t?T(this._root.current,i):N(this._root.current,i)){var c=i.getBoundingClientRect(),f=Math.floor(c.top),h=Math.floor(l.bottom),d=Math.floor(c.bottom),v=Math.floor(l.top),p=this._getHorizontalDistanceFromCenter(t,l,c);if(t&&f>h+s||!t&&d<v-s)break;p>-1&&(t&&f>u?(u=f,r=p,o=i):!t&&d<a?(a=d,r=p,o=i):(-1===r||p<=r)&&(r=p,o=i))}}while(i);var g=!1;if(o&&o!==this._activeElement)g=!0,this.focusElement(o),this._setFocusAlignment(o,!1,!0);else if(this.props.isCircularNavigation&&n)return t?this.focusElement(T(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement(N(this._root.current,this._root.current.lastElementChild,!0,!0,!0));return g},n.prototype._setFocusAlignment=function(t,n,i){if(this.props.direction===Ws.bidirectional&&(!this._focusAlignment||n||i)){var e=t.getBoundingClientRect(),r=e.left+e.width/2,o=e.top+e.height/2;this._focusAlignment||(this._focusAlignment={left:r,top:o}),n&&(this._focusAlignment.left=r),i&&(this._focusAlignment.top=o)}},n.prototype._isImmediateDescendantOfZone=function(t){return this._getOwnerZone(t)===this._root.current},n.prototype._getOwnerZone=function(t){for(var n=C(t,yl);n&&n!==this._root.current&&n!==this._getDocument().body;){if(B(n))return n;n=C(n,yl)}return n},n.prototype._updateTabIndexes=function(t){!this._activeElement&&this.props.defaultTabbableElement&&"function"==typeof this.props.defaultTabbableElement&&(this._activeElement=this.props.defaultTabbableElement(this._root.current)),!t&&this._root.current&&(this._defaultFocusElement=null,t=this._root.current,this._activeElement&&!M(t,this._activeElement)&&(this._activeElement=null)),this._activeElement&&!P(this._activeElement,void 0,this._inShadowRoot)&&(this._activeElement=null);for(var n=t&&t.children,i=0;n&&i<n.length;i++){var e=n[i];B(e)?"true"===e.getAttribute(ul)&&(this._isInnerZone||(this._activeElement||this._defaultFocusElement)&&this._activeElement!==e?"-1"!==e.getAttribute(sl)&&e.setAttribute(sl,"-1"):(this._defaultFocusElement=e,"0"!==e.getAttribute(sl)&&e.setAttribute(sl,"0"))):(e.getAttribute&&"false"===e.getAttribute(ul)&&e.setAttribute(sl,"-1"),P(e,void 0,this._inShadowRoot)?this.props.disabled?e.setAttribute(sl,"-1"):this._isInnerZone||(this._activeElement||this._defaultFocusElement)&&this._activeElement!==e?"-1"!==e.getAttribute(sl)&&e.setAttribute(sl,"-1"):(this._defaultFocusElement=e,"0"!==e.getAttribute(sl)&&e.setAttribute(sl,"0")):"svg"===e.tagName&&"false"!==e.getAttribute("focusable")&&e.setAttribute("focusable","false")),this._updateTabIndexes(e)}},n.prototype._isContentEditableElement=function(t){return t&&"true"===t.getAttribute("contenteditable")},n.prototype._isElementInput=function(t){return!(!t||!t.tagName||"input"!==t.tagName.toLowerCase()&&"textarea"!==t.tagName.toLowerCase())},n.prototype._shouldInputLoseFocus=function(t,n){if(!this._processingTabKey&&t&&t.type&&ml.indexOf(t.type.toLowerCase())>-1){var i=t.selectionStart,e=i!==t.selectionEnd,r=t.value,o=t.readOnly;if(e||i>0&&!n&&!o||i!==r.length&&n&&!o||this.props.handleTabKey&&(!this.props.shouldInputLoseFocusOnArrowKey||!this.props.shouldInputLoseFocusOnArrowKey(t)))return!1}return!0},n.prototype._shouldWrapFocus=function(t,n){return!this.props.checkForNoWrap||function(t,n,i){return"true"!==function(t,n,i){var e=w(t,(function(t){return t.hasAttribute(n)}),i);return e&&e.getAttribute(n)}(t,n,null!=i?i:(0,k.Y)())}(t,n)},n.prototype._portalContainsElement=function(t){return t&&!!this._root.current&&el(t,this._root.current)},n.prototype._getDocument=function(){return(0,k.Y)(this._root.current)},n.contextType=ol,n.defaultProps={isCircularNavigation:!1,direction:Ws.bidirectional,shouldRaiseClicks:!0,"data-tabster":'{"uncontrolled": {}}'},n}(u.Component);function xl(t){return function(t){return t.clientWidth<t.scrollWidth}(t)||function(t){return t.clientHeight<t.scrollHeight}(t)}!function(t){t[t.Parent=0]="Parent",t[t.Self=1]="Self"}(vl||(vl={}));var Cl,wl=(0,a.Z)(),Ml=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n._onRenderContent=function(t){return"string"==typeof t.content?u.createElement("p",{className:n._classNames.subText},t.content):u.createElement("div",{className:n._classNames.subText},t.content)},n}return(0,o.C6)(n,t),n.prototype.render=function(){var t=this.props,n=t.className,i=t.calloutProps,e=t.directionalHint,r=t.directionalHintForRTL,a=t.styles,s=t.id,l=t.maxWidth,c=t.onRenderContent,f=void 0===c?this._onRenderContent:c,h=t.targetElement,d=t.theme;return this._classNames=wl(a,{theme:d,className:n||i&&i.className,beakWidth:i&&i.isBeakVisible?i.beakWidth:0,gapSpace:i&&i.gapSpace,maxWidth:l}),u.createElement(Kn,(0,o.Cl)({target:h,directionalHint:e,directionalHintForRTL:r},i,q(this.props,G,["id"]),{className:this._classNames.root}),u.createElement("div",{className:this._classNames.content,id:s,onFocus:this.props.onFocus,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave},f(this.props,this._onRenderContent)))},n.defaultProps={directionalHint:x.topCenter,maxWidth:"364px",calloutProps:{isBeakVisible:!0,beakWidth:16,gapSpace:0,setInitialFocus:!0,doNotLayer:!1}},n}(u.Component),kl=(0,r.I)(Ml,(function(t){var n=t.className,i=t.beakWidth,e=void 0===i?16:i,r=t.gapSpace,o=void 0===r?0:r,u=t.maxWidth,a=t.theme,s=a.semanticColors,l=a.fonts,c=a.effects,f=-(Math.sqrt(e*e/2)+o)+1/window.devicePixelRatio;return{root:["ms-Tooltip",a.fonts.medium,$t.lw.fadeIn200,{background:s.menuBackground,boxShadow:c.elevation8,padding:"8px",maxWidth:u,selectors:{":after":{content:"''",position:"absolute",bottom:f,left:f,right:f,top:f,zIndex:0}}},n],content:["ms-Tooltip-content",l.small,{position:"relative",zIndex:1,color:s.menuItemText,wordWrap:"break-word",overflowWrap:"break-word",overflow:"hidden"}],subText:["ms-Tooltip-subtext",{fontSize:"inherit",fontWeight:"inherit",color:"inherit",margin:0}]}}),void 0,{scope:"Tooltip"});!function(t){t[t.zero=0]="zero",t[t.medium=1]="medium",t[t.long=2]="long"}(Cl||(Cl={}));var Sl,Al,Ll=(0,a.Z)(),Vl=function(t){function n(i){var e=t.call(this,i)||this;return e._tooltipHost=u.createRef(),e._defaultTooltipId=g("tooltip"),e.show=function(){e._toggleTooltip(!0)},e.dismiss=function(){e._hideTooltip()},e._getTargetElement=function(){if(e._tooltipHost.current){var t=e.props.overflowMode;if(void 0!==t)switch(t){case vl.Parent:return e._tooltipHost.current.parentElement;case vl.Self:return e._tooltipHost.current}return e._tooltipHost.current}},e._onTooltipFocus=function(t){e._ignoreNextFocusEvent?e._ignoreNextFocusEvent=!1:e._onTooltipMouseEnter(t)},e._onTooltipContentFocus=function(t){n._currentVisibleTooltip&&n._currentVisibleTooltip!==e&&n._currentVisibleTooltip.dismiss(),n._currentVisibleTooltip=e,e._clearDismissTimer(),e._clearOpenTimer()},e._onTooltipBlur=function(t){var n;e._ignoreNextFocusEvent=(null===(n=Ut(e.context))||void 0===n?void 0:n.activeElement)===t.target,e._dismissTimerId=e._async.setTimeout((function(){e._hideTooltip()}),0)},e._onTooltipMouseEnter=function(t){var i=e.props,r=i.overflowMode,o=i.delay,u=Ut(e.context);if(n._currentVisibleTooltip&&n._currentVisibleTooltip!==e&&n._currentVisibleTooltip.dismiss(),n._currentVisibleTooltip=e,void 0!==r){var a=e._getTargetElement();if(a&&!xl(a))return}if(!t.target||!el(t.target,e._getTargetElement(),u))if(e._clearDismissTimer(),e._clearOpenTimer(),o!==Cl.zero){var s=e._getDelayTime(o);e._openTimerId=e._async.setTimeout((function(){e._toggleTooltip(!0)}),s)}else e._toggleTooltip(!0)},e._onTooltipMouseLeave=function(t){var i=e.props.closeDelay;e._clearDismissTimer(),e._clearOpenTimer(),i?e._dismissTimerId=e._async.setTimeout((function(){e._toggleTooltip(!1)}),i):e._toggleTooltip(!1),n._currentVisibleTooltip===e&&(n._currentVisibleTooltip=void 0)},e._onTooltipKeyDown=function(t){(t.which===Bt||t.ctrlKey)&&e.state.isTooltipVisible&&(e._hideTooltip(),t.stopPropagation())},e._clearDismissTimer=function(){e._async.clearTimeout(e._dismissTimerId)},e._clearOpenTimer=function(){e._async.clearTimeout(e._openTimerId)},e._hideTooltip=function(){e._clearOpenTimer(),e._clearDismissTimer(),e._toggleTooltip(!1)},e._toggleTooltip=function(t){e.state.isTooltipVisible!==t&&e.setState({isTooltipVisible:t},(function(){return e.props.onTooltipToggle&&e.props.onTooltipToggle(t)}))},e._getDelayTime=function(t){switch(t){case Cl.medium:return 300;case Cl.long:return 500;default:return 0}},Js(e),e.state={isAriaPlaceholderRendered:!1,isTooltipVisible:!1},e}return(0,o.C6)(n,t),n.prototype.render=function(){var t=this.props,n=t.calloutProps,i=t.children,e=t.content,r=t.directionalHint,a=t.directionalHintForRTL,s=t.hostClassName,l=t.id,c=t.setAriaDescribedBy,f=void 0===c||c,h=t.tooltipProps,d=t.styles,v=t.theme;this._classNames=Ll(d,{theme:v,className:s});var p=this.state.isTooltipVisible,g=l||this._defaultTooltipId,m=(0,o.Cl)((0,o.Cl)({id:"".concat(g,"--tooltip"),content:e,targetElement:this._getTargetElement(),directionalHint:r,directionalHintForRTL:a,calloutProps:Z({},n,{onDismiss:this._hideTooltip,onFocus:this._onTooltipContentFocus,onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave}),onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave},q(this.props,G,["id"])),h),y=(null==h?void 0:h.onRenderContent)?h.onRenderContent(m,(function(t){return(null==t?void 0:t.content)?u.createElement(u.Fragment,null,t.content):null})):e,b=p&&!!y,x=f&&p&&y?g:void 0;return u.createElement("div",{className:this._classNames.root,ref:this._tooltipHost,onFocusCapture:this._onTooltipFocus,onBlurCapture:this._onTooltipBlur,onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave,onKeyDown:this._onTooltipKeyDown,role:"none","aria-describedby":x},i,b&&u.createElement(kl,(0,o.Cl)({},m)),u.createElement("div",{hidden:!0,id:g,style:$t.dX},y))},n.prototype.componentDidMount=function(){this._async=new Ft(this)},n.prototype.componentWillUnmount=function(){n._currentVisibleTooltip&&n._currentVisibleTooltip===this&&(n._currentVisibleTooltip=void 0),this._async.dispose()},n.defaultProps={delay:Cl.medium},n.contextType=It,n}(u.Component),Dl={root:"ms-TooltipHost",ariaPlaceholder:"ms-TooltipHost-aria-placeholder"},Nl=(0,r.I)(Vl,(function(t){var n=t.className,i=t.theme;return{root:[(0,$t.Km)(Dl,i).root,{display:"inline"},n]}}),void 0,{scope:"TooltipHost"}),Tl=function(t){function n(n){var i=t.call(this,n)||this;return i._tooltipChild=u.createRef(),i._checkTextOverflow=function(){var t=i._getTargetElement(),n=!!t&&xl(t);n!==i.state.textOverflow&&i.setState({textOverflow:n})},i._getTargetElement=function(){if(i._tooltipChild.current&&i._tooltipChild.current.parentElement)return i._tooltipChild.current.parentElement},i.state={textOverflow:!1},i._async=new Ft(i),i}return(0,o.C6)(n,t),n.prototype.render=function(){var t=this.props,n=t.className,i=t.content,e=t.accessibilityData;return u.createElement(Nl,{overflowMode:vl.Self,hostClassName:n,content:i},u.createElement("span",(0,o.Cl)({},Es(e),{ref:this._tooltipChild,"data-is-focusable":this.state.textOverflow}),i))},n.prototype.componentDidMount=function(){var t=this._getTargetElement();window.ResizeObserver&&t&&(this._resizeObserver=new ResizeObserver(this._async.debounce(this._checkTextOverflow,500)),this._resizeObserver.observe(t))},n.prototype.componentWillUnmount=function(){var t;null===(t=this._resizeObserver)||void 0===t||t.disconnect(),this._async.dispose()},n}(u.Component),El=(0,a.Z)(),Ol=function(t){function n(n){var i=t.call(this,n)||this;return i._isRTL=(0,s.jI)(),i._handleChartMouseLeave=function(){i._calloutAnchorPoint=null,i.state.isCalloutVisible&&i.setState({isCalloutVisible:!1,hoverValue:"",refSelected:null,lineColor:"",legend:""})},i._adjustProps=function(){i._barHeight=i.props.barHeight||12,i._classNames=El(i.props.styles,{theme:i.props.theme,width:i.props.width,className:i.props.className,barHeight:i._barHeight,color:i.state.lineColor,variant:i.props.variant,hideLabels:i.props.hideLabels})},i._getChartDataText=function(t){return i.props.barChartCustomData?u.createElement("div",{role:"text"},i.props.barChartCustomData(t)):i._getDefaultTextData(t)},i._closeCallout=function(){i.setState({isCalloutVisible:!1})},i._getAriaLabel=function(t){var n,i=t.xAxisCalloutData||t.legend,e=t.data,r=t.yAxisCalloutData||(t.horizontalBarChartdata?"".concat(t.horizontalBarChartdata.x,"/").concat(t.horizontalBarChartdata.y):0);return(null===(n=t.callOutAccessibilityData)||void 0===n?void 0:n.ariaLabel)||(i?"".concat(i,", "):"")+"".concat(r,".")+(e?"with benchmark at "+"".concat(e,", "):"")},i.state={isCalloutVisible:!1,hoverValue:"",lineColor:"",legend:"",refSelected:null,color:"",xCalloutValue:"",yCalloutValue:"",barSpacingInPercent:0},i._refArray=[],i._uniqLineText="_HorizontalLine_"+Math.random().toString(36).substring(7),i._hoverOff=i._hoverOff.bind(i),i._calloutId=g("callout"),i._emptyChartId=g("_HBC_empty"),i.barChartSvgRef=u.createRef(),i}return(0,o.C6)(n,t),n.prototype.componentDidMount=function(){var t,n=(null===(t=this.barChartSvgRef.current)||void 0===t?void 0:t.getBoundingClientRect().width)||0;if(n){var i=3/n*100;this.setState({barSpacingInPercent:i})}},n.prototype.render=function(){var t=this,n=this.props,i=n.data,e=n.theme;this._adjustProps();var r=e.palette,a=0;return this._isChartEmpty()?u.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):u.createElement("div",{className:this._classNames.root,onMouseLeave:this._handleChartMouseLeave},i.map((function(n,i){a=n.chartData&&n.chartData[0]&&n.chartData[0].horizontalBarChartdata.x?n.chartData[0].horizontalBarChartdata.x:0,n.chartData[1]={legend:"",horizontalBarChartdata:{x:n.chartData[0].horizontalBarChartdata.y-a,y:n.chartData[0].horizontalBarChartdata.y},color:r.neutralLight};var e=t.props.variant===v.AbsoluteScale?null:t._getChartDataText(n),o=t._createBars(n,r,i),s=t._uniqLineText+"_"+i,l=El(t.props.styles,{theme:t.props.theme,width:t.props.width,showTriangle:!!n.chartData[0].data,variant:t.props.variant});return u.createElement("div",{key:i},u.createElement("div",{className:l.items},u.createElement(bl,{direction:Ws.horizontal},u.createElement("div",{className:t._classNames.chartTitle},n.chartTitle&&u.createElement(Tl,{className:t._classNames.chartTitleLeft,content:n.chartTitle,accessibilityData:n.chartTitleAccessibilityData}),e)),n.chartData[0].data&&t._createBenchmark(n),u.createElement(bl,{direction:Ws.horizontal,className:t._classNames.chartWrapper},u.createElement("svg",{ref:t.barChartSvgRef,className:t._classNames.chart,"aria-label":n.chartTitle},u.createElement("g",{id:s,key:s,ref:function(i){t._refCallback(i,n.chartData[0].legend)},onClick:function(){var t=n.chartData[0];t&&t.onClick&&t.onClick()}},o)))))})),u.createElement(Kn,(0,o.Cl)({target:this.state.refSelected,coverTarget:!0,isBeakVisible:!1,gapSpace:30,hidden:!(!this.props.hideTooltip&&this.state.isCalloutVisible),directionalHint:x.topAutoEdge,id:this._calloutId,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0},this.props.calloutProps,Es(this.state.callOutAccessibilityData)),u.createElement(u.Fragment,null,this.props.onRenderCalloutPerHorizontalBar?this.props.onRenderCalloutPerHorizontalBar(this.state.barCalloutProps):u.createElement(zs.ChartHoverCard,{Legend:this.state.xCalloutValue?this.state.xCalloutValue:this.state.legend,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.hoverValue,color:this.state.lineColor,culture:this.props.culture}))))},n.prototype._refCallback=function(t,n){this._refArray.push({index:n,refElement:t})},n.prototype._hoverOn=function(t,n){var i,e,r,o;if((!this.state.isCalloutVisible||this.state.legend!==n.legend)&&this._calloutAnchorPoint!==n){var u=b(this._refArray,(function(t){return t.index===n.legend}));this._calloutAnchorPoint=n;var a=n.color;if(this.props.enableGradient){var s=Math.max((null===(e=null===(i=this.props.data)||void 0===i?void 0:i.map((function(t){return t.chartData})))||void 0===e?void 0:e.findIndex((function(t){return(null==t?void 0:t[0].data)===n.data&&(null==t?void 0:t[0].legend)===n.legend})))||0,0);a=(null===(r=n.gradient)||void 0===r?void 0:r[0])||Us(s,0,null===(o=this.props.theme)||void 0===o?void 0:o.isInverted)[0]}this.setState({isCalloutVisible:!0,hoverValue:t,lineColor:a,legend:n.legend,refSelected:u.refElement,xCalloutValue:n.xAxisCalloutData,yCalloutValue:n.yAxisCalloutData,barCalloutProps:n,callOutAccessibilityData:n.callOutAccessibilityData})}},n.prototype._hoverOff=function(){},n.prototype._getDefaultTextData=function(t){var n=this.props.culture,i=this.props.chartDataMode||"default",e=t.chartData[0],r=e.horizontalBarChartdata.x,a=e.horizontalBarChartdata.y,s=Es(t.chartDataAccessibilityData,"text",!1);switch(i){case"default":return u.createElement("div",(0,o.Cl)({className:this._classNames.chartTitleRight},s),(0,Jn.U)(r,n));case"fraction":return u.createElement("div",(0,o.Cl)({},s),u.createElement("span",{className:this._classNames.chartTitleRight},(0,Jn.U)(r,n)),u.createElement("span",{className:this._classNames.chartDataTextDenominator}," / "+(0,Jn.U)(a,n)));case"percentage":var l="".concat((0,Jn.U)(Math.round(r/a*100),n),"%");return u.createElement("div",(0,o.Cl)({className:this._classNames.chartTitleRight},s),l)}},n.prototype._createBenchmark=function(t){var n=t.chartData[0].horizontalBarChartdata.y,i=t.chartData[0].data,e={left:"calc("+Math.round((i||0)/n*100)+"% - 4px)"};return u.createElement("div",{className:this._classNames.benchmarkContainer},u.createElement("div",{className:this._classNames.triangle,style:e}))},n.prototype._createBars=function(t,n,i){var e,r=this,o=(null===(e=t.chartData)||void 0===e?void 0:e.reduce((function(t,n){return t+((n.data||0)>0?1:0)}),0))||1,a=this.state.barSpacingInPercent*(o-1),s=[n.blueLight,n.blue,n.blueMid,n.red,n.black],l=[],c=t.chartData.reduce((function(t,n){return t+(n.horizontalBarChartdata.x?n.horizontalBarChartdata.x:0)}),0),f=0,h=0,d=0;t.chartData.map((function(t,n){var i=t.horizontalBarChartdata.x?t.horizontalBarChartdata.x:0;return(h=i/c*100)<0?h=0:h<1&&0!==h&&(h=1),d+=h}));var p=0!==d?(d-a)/100:1,m=t.chartData.map((function(n,e){var o,a,d,m,y=n.color?n.color:s[Math.floor(4*Math.random()+1)],b=y;r.props.enableGradient&&1!==e&&(y=(null===(o=n.gradient)||void 0===o?void 0:o[0])||Us(i,0,null===(a=r.props.theme)||void 0===a?void 0:a.isInverted)[0],b=(null===(d=n.gradient)||void 0===d?void 0:d[1])||Us(i,0,null===(m=r.props.theme)||void 0===m?void 0:m.isInverted)[1]);var x=n.horizontalBarChartdata.x?n.horizontalBarChartdata.x:0;e>0&&(f+=h),(h=x/c*100)<0?h=0:h<1&&0!==h?h=1/p:h/=p,l.push(f);var C=n.horizontalBarChartdata.x;if(1===e&&r.props.variant===v.AbsoluteScale){if(r.props.hideLabels)return u.createElement("text",{key:e});var w=t.chartData[0].horizontalBarChartdata.x;return u.createElement("text",{key:e,x:"".concat(r._isRTL?100-l[e]:l[e],"%"),y:r._barHeight/2,dominantBaseline:"central",transform:"translate(".concat(r._isRTL?-4:4,")"),className:r._classNames.barLabel,"aria-hidden":!0},Ps(w))}var M=g("HBC_Gradient")+"_".concat(i,"_").concat(e);return u.createElement(u.Fragment,{key:e},r.props.enableGradient&&u.createElement("defs",null,u.createElement("linearGradient",{id:M},u.createElement("stop",{offset:"0",stopColor:y}),u.createElement("stop",{offset:"100%",stopColor:b}))),u.createElement("rect",{key:e,x:"".concat(r._isRTL?100-l[e]-h-e*r.state.barSpacingInPercent:l[e]+e*r.state.barSpacingInPercent,"%"),y:0,rx:r.props.roundCorners?3:0,"data-is-focusable":""!==n.legend,width:h+"%",height:r._barHeight,fill:r.props.enableGradient?"url(#".concat(M,")"):y,onMouseOver:""!==n.legend?r._hoverOn.bind(r,C,n):void 0,onFocus:""!==n.legend?r._hoverOn.bind(r,C,n):void 0,role:"img","aria-label":r._getAriaLabel(n),onBlur:r._hoverOff,onMouseLeave:r._hoverOff,className:r._classNames.barWrapper}))}));return m},n.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.length>0)},n}(u.Component),Pl=(0,r.I)(Ol,(function(t){var n=t.className,i=t.theme,e=t.width,r=t.barHeight,u=t.showTriangle,a=t.variant,s=t.hideLabels,l=i.palette;return{root:[{display:"flex",flexDirection:"column",width:e||"100%"},n],items:{marginBottom:u||a===v.AbsoluteScale?"16px":"10px"},chart:{width:"100%",height:r||12,display:"block",overflow:"visible"},barWrapper:{},chartTitle:(0,o.Cl)((0,o.Cl)({},i.fonts.small),{display:"flex",justifyContent:"space-between"}),chartTitleLeft:{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",display:"block",color:i.palette.neutralPrimary,marginBottom:a===v.AbsoluteScale?"4px":"5px"},chartTitleRight:{fontSize:$t.s.medium,fontWeight:$t.BO.semibold,color:i.palette.neutralPrimary},chartDataTextDenominator:{fontSize:$t.s.medium,color:i.palette.neutralPrimary},benchmarkContainer:{position:"relative",height:"7px",marginTop:"-3px",marginBottom:"-1px"},triangle:{width:"0",height:"0",borderLeft:"4px solid transparent",borderRight:"4px solid transparent",borderTop:"7px solid",borderTopColor:l.blue,marginBottom:"4px",position:"absolute"},barLabel:(0,o.Cl)((0,o.Cl)({},i.fonts.small),{fontWeight:$t.BO.semibold,fill:i.palette.neutralPrimary}),chartWrapper:{paddingRight:a!==v.AbsoluteScale||s?0:40}}})),Bl={host:"ms-HoverCard-host"},Fl=function(){function t(n){this._id=t._uniqueId++,this._parent=n,this._eventRecords=[]}return t.raise=function(n,i,e,r,o){var u,a=null!=o?o:(0,k.Y)();if(t._isElement(n)){if(void 0!==a&&a.createEvent){var s=a.createEvent("HTMLEvents");s.initEvent(i,r||!1,!0),Z(s,e),u=n.dispatchEvent(s)}else if(void 0!==a&&a.createEventObject){var l=a.createEventObject(e);n.fireEvent("on"+i,l)}}else for(;n&&!1!==u;){var c=n.__events__,f=c?c[i]:null;if(f)for(var h in f)if(f.hasOwnProperty(h))for(var d=f[h],v=0;!1!==u&&v<d.length;v++){var p=d[v];p.objectCallback&&(u=p.objectCallback.call(p.parent,e))}n=r?n.parent:null}return u},t.isObserved=function(t,n){var i=t&&t.__events__;return!!i&&!!i[n]},t.isDeclared=function(t,n){var i=t&&t.__declaredEvents;return!!i&&!!i[n]},t.stopPropagation=function(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0},t._isElement=function(t){return!!t&&(!!t.addEventListener||"undefined"!=typeof HTMLElement&&t instanceof HTMLElement)},t.prototype.dispose=function(){this._isDisposed||(this._isDisposed=!0,this.off(),this._parent=null)},t.prototype.onAll=function(t,n,i){for(var e in n)n.hasOwnProperty(e)&&this.on(t,e,n[e],i)},t.prototype.on=function(n,i,e,r){var o=this;if(i.indexOf(",")>-1)for(var u=i.split(/[ ,]+/),a=0;a<u.length;a++)this.on(n,u[a],e,r);else{var s=this._parent,l={target:n,eventName:i,parent:s,callback:e,options:r};if((u=n.__events__=n.__events__||{})[i]=u[i]||{count:0},u[i][this._id]=u[i][this._id]||[],u[i][this._id].push(l),u[i].count++,t._isElement(n)){var c=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(!o._isDisposed){var i;try{if(!1===(i=e.apply(s,t))&&t[0]){var r=t[0];r.preventDefault&&r.preventDefault(),r.stopPropagation&&r.stopPropagation(),r.cancelBubble=!0}}catch(r){}return i}};l.elementCallback=c,n.addEventListener?n.addEventListener(i,c,r):n.attachEvent&&n.attachEvent("on"+i,c)}else l.objectCallback=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(!o._isDisposed)return e.apply(s,t)};this._eventRecords.push(l)}},t.prototype.off=function(t,n,i,e){for(var r=0;r<this._eventRecords.length;r++){var o=this._eventRecords[r];if(!(t&&t!==o.target||n&&n!==o.eventName||i&&i!==o.callback||"boolean"==typeof e&&e!==o.options)){var u=o.target.__events__,a=u[o.eventName],s=a?a[this._id]:null;s&&(1!==s.length&&i?(a.count--,s.splice(s.indexOf(o),1)):(a.count-=s.length,delete u[o.eventName][this._id]),a.count||delete u[o.eventName]),o.elementCallback&&(o.target.removeEventListener?o.target.removeEventListener(o.eventName,o.elementCallback,o.options):o.target.detachEvent&&o.target.detachEvent("on"+o.eventName,o.elementCallback)),this._eventRecords.splice(r--,1)}}},t.prototype.raise=function(n,i,e){return t.raise(this._parent,n,i,e)},t.prototype.declare=function(t){var n=this._parent.__declaredEvents=this._parent.__declaredEvents||{};if("string"==typeof t)n[t]=!0;else for(var i=0;i<t.length;i++)n[t[i]]=!0},t._uniqueId=0,t}();!function(t){t[t.hover=0]="hover",t[t.hotKey=1]="hotKey"}(Sl||(Sl={})),function(t){t.plain="PlainCard",t.expanding="ExpandingCard"}(Al||(Al={}));var _l,Hl={root:"ms-ExpandingCard-root",compactCard:"ms-ExpandingCard-compactCard",expandedCard:"ms-ExpandingCard-expandedCard",expandedCardScroll:"ms-ExpandingCard-expandedCardScrollRegion"};!function(t){t[t.compact=0]="compact",t[t.expanded=1]="expanded"}(_l||(_l={}));var Rl=function(t){for(var n=t.activeElement;null==n?void 0:n.shadowRoot;)n=n.shadowRoot.activeElement;return n},Il=function(t){var n=t.target;return n&&n.shadowRoot&&(n=t.composedPath()[0]),n};function Wl(t,n){var i=u.useRef(n);return i.current||(i.current=g(t)),i.current}function zl(t){var n=u.useRef((function(){throw new Error("Cannot call an event handler while rendering")}));return Fn((function(){n.current=t}),[t]),Xt((function(){return function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return n.current.apply(void 0,t)}}))}var jl={disabled:!1,disableFirstFocus:!1,forceFocusInsideTrap:!0,isClickableOutsideFocusTrap:!1,"data-tabster":'{"uncontrolled": {"completely": true}}'},Yl=u.forwardRef((function(t,n){var i,e,r,a=u.useRef(null),s=u.useRef(null),l=u.useRef(null),c=Rt(a,n),f=zt(),h=qt(),d=!!u.useContext(ol),v=null===(i=zn(!1))||void 0===i||i,p=I(jl,t),g=Xt({hasFocus:!1,focusStackId:Wl("ftz-",p.id)}),m=p.children,y=p.componentRef,b=p.disabled,x=p.disableFirstFocus,C=p.forceFocusInsideTrap,w=p.focusPreviouslyFocusedInnerElement,k=p.firstFocusableSelector,S=p.firstFocusableTarget,A=p.disableRestoreFocus,L=void 0===A?p.ignoreExternalFocusing:A,V=p.isClickableOutsideFocusTrap,D=p.enableAriaHiddenSiblings,E={"aria-hidden":!0,style:{pointerEvents:"none",position:"fixed"},tabIndex:b?-1:0,"data-is-visible":!0,"data-is-focus-trap-zone-bumper":!0},O=u.useCallback((function(t){t!==s.current&&t!==l.current&&H(t)}),[]),P=zl((function(){if(a.current){var t=g.previouslyFocusedElementInTrapZone;if(w&&t&&M(a.current,t))O(t);else{var n=null;if("string"==typeof S)n=a.current.querySelector(S);else if(S)n=S(a.current);else if(k){var i="string"==typeof k?k:k();n=a.current.querySelector("."+i)}n||(n=T(a.current,a.current.firstChild,!1,!1,!1,!0,void 0,void 0,void 0,d)),n&&O(n)}}})),B=function(t){if(!b&&a.current){var n,i=t===g.hasFocus?(void 0===(n=!1)&&(n=!0),N(a.current,l.current,n,!1,!0,!0,!1,!0,d)):function(t,n,i,e,r){return void 0===e&&(e=!0),T(t,n,e,!1,!1,!0,!1,!0,void 0,r)}(a.current,s.current,0,!1,d);i&&(i===s.current||i===l.current?P():i.focus())}},F=zl((function(t){if(Yl.focusStack=Yl.focusStack.filter((function(t){return g.focusStackId!==t})),f){var n=f.activeElement;L||"function"!=typeof(null==t?void 0:t.focus)||!M(a.current,n)&&n!==f.body&&!n.shadowRoot||O(t)}})),_=zl((function(t){if(!b&&g.focusStackId===Yl.focusStack.slice(-1)[0]){var n=Il(t);n&&!M(a.current,n)&&(f&&Rl(f)===f.body?setTimeout((function(){f&&Rl(f)===f.body&&(P(),g.hasFocus=!0)}),0):(P(),g.hasFocus=!0),t.preventDefault(),t.stopPropagation())}}));return u.useEffect((function(){var t=[];return C&&t.push(R(h,"focus",_,!0)),V||t.push(R(h,"click",_,!0)),function(){t.forEach((function(t){return t()}))}}),[C,V,h]),u.useEffect((function(){if(!b&&(v||C)&&a.current){Yl.focusStack.push(g.focusStackId);var t=p.elementToFocusOnDismiss||Rl(f);return x||M(a.current,t)||P(),function(){return F(t)}}}),[C,b]),u.useEffect((function(){if(!b&&D)return Pt(a.current)}),[b,D,a]),e=function(){delete g.previouslyFocusedElementInTrapZone},(r=u.useRef(e)).current=e,u.useEffect((function(){return function(){var t;null===(t=r.current)||void 0===t||t.call(r)}}),[]),function(t,n,i){u.useImperativeHandle(t,(function(){return{get previouslyFocusedElement(){return n},focus:i}}),[i,n])}(y,g.previouslyFocusedElementInTrapZone,P),u.createElement("div",(0,o.Cl)({"aria-labelledby":p.ariaLabelledBy},q(p,G),{ref:c,onFocusCapture:function(t){var n;null===(n=p.onFocusCapture)||void 0===n||n.call(p,t),t.target===s.current?B(!0):t.target===l.current&&B(!1),g.hasFocus=!0,t.target!==t.currentTarget&&t.target!==s.current&&t.target!==l.current&&(g.previouslyFocusedElementInTrapZone=Il(t.nativeEvent))},onBlurCapture:function(t){var n;null===(n=p.onBlurCapture)||void 0===n||n.call(p,t);var i=t.relatedTarget;null===t.relatedTarget&&(i=Rl(f)),M(a.current,i)||(g.hasFocus=!1)}}),u.createElement("div",(0,o.Cl)({},E,{ref:s})),m,u.createElement("div",(0,o.Cl)({},E,{ref:l})))}));Yl.displayName="FocusTrapZone",Yl.focusStack=[];var $l,Xl=function(t){return u.createElement(Kn,(0,o.Cl)({},t),u.createElement(Yl,(0,o.Cl)({disabled:t.hidden},t.focusTrapProps),t.children))},Gl=function(t){var n=t.gapSpace,i=void 0===n?0:n,e=t.directionalHint,r=void 0===e?x.bottomLeftEdge:e,a=t.directionalHintFixed,s=t.targetElement,l=t.firstFocus,c=t.trapFocus,f=t.onLeave,h=t.className,d=t.finalHeight,v=t.content,p=t.calloutProps,g=(0,o.Cl)((0,o.Cl)((0,o.Cl)({},q(t,G)),{className:h,target:s,isBeakVisible:!1,directionalHint:r,directionalHintFixed:a,finalHeight:d,minPagePadding:24,onDismiss:f,gapSpace:i}),p);return u.createElement(u.Fragment,null,c?u.createElement(Xl,(0,o.Cl)({},g,{focusTrapProps:{forceFocusInsideTrap:!1,isClickableOutsideFocusTrap:!0,disableFirstFocus:!l}}),v):u.createElement(Kn,(0,o.Cl)({},g),v))},ql=(0,a.Z)(),Ul=function(t){function n(n){var i=t.call(this,n)||this;return i._expandedElem=u.createRef(),i._onKeyDown=function(t){t.which===Bt&&i.props.onLeave&&i.props.onLeave(t)},i._onRenderCompactCard=function(){return u.createElement("div",{className:i._classNames.compactCard},i.props.onRenderCompactCard(i.props.renderData))},i._onRenderExpandedCard=function(){return!i.state.firstFrameRendered&&i._async.requestAnimationFrame((function(){i.setState({firstFrameRendered:!0})})),u.createElement("div",{className:i._classNames.expandedCard,ref:i._expandedElem},u.createElement("div",{className:i._classNames.expandedCardScroll},i.props.onRenderExpandedCard&&i.props.onRenderExpandedCard(i.props.renderData)))},i._checkNeedsScroll=function(){var t=i.props.expandedCardHeight;i._async.requestAnimationFrame((function(){i._expandedElem.current&&i._expandedElem.current.scrollHeight>=t&&i.setState({needsScroll:!0})}))},i._async=new Ft(i),Js(i),i.state={firstFrameRendered:!1,needsScroll:!1},i}return(0,o.C6)(n,t),n.prototype.componentDidMount=function(){this._checkNeedsScroll()},n.prototype.componentWillUnmount=function(){this._async.dispose()},n.prototype.render=function(){var t=this.props,n=t.styles,i=t.compactCardHeight,e=t.expandedCardHeight,r=t.theme,a=t.mode,s=t.className,l=this.state,c=l.needsScroll,f=l.firstFrameRendered,h=i+e;this._classNames=ql(n,{theme:r,compactCardHeight:i,className:s,expandedCardHeight:e,needsScroll:c,expandedCardFirstFrameRendered:a===_l.expanded&&f});var d=u.createElement("div",{onMouseEnter:this.props.onEnter,onMouseLeave:this.props.onLeave,onKeyDown:this._onKeyDown},this._onRenderCompactCard(),this._onRenderExpandedCard());return u.createElement(Gl,(0,o.Cl)({},this.props,{content:d,finalHeight:h,className:this._classNames.root}))},n.defaultProps={compactCardHeight:156,expandedCardHeight:384,directionalHintFixed:!0},n}(u.Component),Zl=(0,r.I)(Ul,(function(t){var n,i=t.theme,e=t.needsScroll,r=t.expandedCardFirstFrameRendered,o=t.compactCardHeight,u=t.expandedCardHeight,a=t.className,s=i.palette,l=(0,$t.Km)(Hl,i);return{root:[l.root,{width:320,pointerEvents:"none",selectors:(n={},n[$t.up]={border:"1px solid WindowText"},n)},a],compactCard:[l.compactCard,{pointerEvents:"auto",position:"relative",height:o}],expandedCard:[l.expandedCard,{height:1,overflowY:"hidden",pointerEvents:"auto",transition:"height 0.467s cubic-bezier(0.5, 0, 0, 1)",selectors:{":before":{content:'""',position:"relative",display:"block",top:0,left:24,width:272,height:1,backgroundColor:s.neutralLighter}}},r&&{height:u}],expandedCardScroll:[l.expandedCardScroll,e&&{height:"100%",boxSizing:"border-box",overflowY:"auto"}]}}),void 0,{scope:"ExpandingCard"}),Kl={root:"ms-PlainCard-root"},Jl=(0,a.Z)(),Ql=function(t){function n(n){var i=t.call(this,n)||this;return i._onKeyDown=function(t){t.which===Bt&&i.props.onLeave&&i.props.onLeave(t)},Js(i),i}return(0,o.C6)(n,t),n.prototype.render=function(){var t=this.props,n=t.styles,i=t.theme,e=t.className;this._classNames=Jl(n,{theme:i,className:e});var r=u.createElement("div",{onMouseEnter:this.props.onEnter,onMouseLeave:this.props.onLeave,onKeyDown:this._onKeyDown},this.props.onRenderPlainCard(this.props.renderData));return u.createElement(Gl,(0,o.Cl)({},this.props,{content:r,className:this._classNames.root}))},n}(u.Component),tc=(0,r.I)(Ql,(function(t){var n,i=t.theme,e=t.className;return{root:[(0,$t.Km)(Kl,i).root,{pointerEvents:"auto",selectors:(n={},n[$t.up]={border:"1px solid WindowText"},n)},e]}}),void 0,{scope:"PlainCard"}),nc=(0,a.Z)(),ic=function(t){function n(n){var i=t.call(this,n)||this;return i._hoverCard=u.createRef(),i.dismiss=function(t){i._async.clearTimeout(i._openTimerId),i._async.clearTimeout(i._dismissTimerId),t?i._dismissTimerId=i._async.setTimeout((function(){i._setDismissedState()}),i.props.cardDismissDelay):i._setDismissedState()},i._cardOpen=function(t){i._shouldBlockHoverCard()||"keydown"===t.type&&t.which!==i.props.openHotKey||(i._async.clearTimeout(i._dismissTimerId),"mouseenter"===t.type&&(i._currentMouseTarget=t.currentTarget),i._executeCardOpen(t))},i._executeCardOpen=function(t){i._async.clearTimeout(i._openTimerId),i._openTimerId=i._async.setTimeout((function(){i.setState((function(n){return n.isHoverCardVisible?n:{isHoverCardVisible:!0,mode:_l.compact,openMode:"keydown"===t.type?Sl.hotKey:Sl.hover}}))}),i.props.cardOpenDelay)},i._cardDismiss=function(t,n){if(t){if(!(n instanceof MouseEvent))return;if("keydown"===n.type&&n.which!==Bt)return;i.props.sticky||i._currentMouseTarget!==n.currentTarget&&n.which!==Bt||i.dismiss(!0)}else{if(i.props.sticky&&!(n instanceof MouseEvent)&&n.nativeEvent instanceof MouseEvent&&"mouseleave"===n.type)return;i.dismiss(!0)}},i._setDismissedState=function(){i.setState({isHoverCardVisible:!1,mode:_l.compact,openMode:Sl.hover})},i._instantOpenAsExpanded=function(t){i._async.clearTimeout(i._dismissTimerId),i.setState((function(t){return t.isHoverCardVisible?t:{isHoverCardVisible:!0,mode:_l.expanded}}))},i._setEventListeners=function(){var t=i.props,n=t.trapFocus,e=t.instantOpenOnClick,r=t.eventListenerTarget,o=r?i._getTargetElement(r):i._getTargetElement(i.props.target),u=i._nativeDismissEvent;o&&(i._events.on(o,"mouseenter",i._cardOpen),i._events.on(o,"mouseleave",u),n?i._events.on(o,"keydown",i._cardOpen):(i._events.on(o,"focus",i._cardOpen),i._events.on(o,"blur",u)),e?i._events.on(o,"click",i._instantOpenAsExpanded):(i._events.on(o,"mousedown",u),i._events.on(o,"keydown",u)))},Js(i),i._async=new Ft(i),i._events=new Fl(i),i._nativeDismissEvent=i._cardDismiss.bind(i,!0),i._childDismissEvent=i._cardDismiss.bind(i,!1),i.state={isHoverCardVisible:!1,mode:_l.compact,openMode:Sl.hover},i}return(0,o.C6)(n,t),n.prototype.componentDidMount=function(){this._setEventListeners()},n.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},n.prototype.componentDidUpdate=function(t,n){var i=this;t.target!==this.props.target&&(this._events.off(),this._setEventListeners()),n.isHoverCardVisible!==this.state.isHoverCardVisible&&(this.state.isHoverCardVisible?(this._async.setTimeout((function(){i.setState({mode:_l.expanded},(function(){i.props.onCardExpand&&i.props.onCardExpand()}))}),this.props.expandedCardOpenDelay),this.props.onCardVisible&&this.props.onCardVisible()):(this.setState({mode:_l.compact}),this.props.onCardHide&&this.props.onCardHide()))},n.prototype.render=function(){var t=this.props,n=t.expandingCardProps,i=t.children,e=t.id,r=t.setAriaDescribedBy,a=void 0===r||r,s=t.styles,l=t.theme,c=t.className,f=t.type,h=t.plainCardProps,d=t.trapFocus,v=t.setInitialFocus,p=this.state,m=p.isHoverCardVisible,y=p.mode,b=p.openMode,x=e||g("hoverCard");this._classNames=nc(s,{theme:l,className:c});var C=(0,o.Cl)((0,o.Cl)({},q(this.props,G)),{id:x,trapFocus:!!d,firstFocus:v||b===Sl.hotKey,targetElement:this._getTargetElement(this.props.target),onEnter:this._cardOpen,onLeave:this._childDismissEvent}),w=(0,o.Cl)((0,o.Cl)((0,o.Cl)({},n),C),{mode:y}),M=(0,o.Cl)((0,o.Cl)({},h),C);return u.createElement("div",{className:this._classNames.host,ref:this._hoverCard,"aria-describedby":a&&m?x:void 0,"data-is-focusable":!this.props.target},i,m&&(f===Al.expanding?u.createElement(Zl,(0,o.Cl)({},w)):u.createElement(tc,(0,o.Cl)({},M))))},n.prototype._getTargetElement=function(t){switch(typeof t){case"string":return(0,k.Y)().querySelector(t);case"object":return t;default:return this._hoverCard.current||void 0}},n.prototype._shouldBlockHoverCard=function(){return!(!this.props.shouldBlockHoverCard||!this.props.shouldBlockHoverCard())},n.defaultProps={cardOpenDelay:500,cardDismissDelay:100,expandedCardOpenDelay:1500,instantOpenOnClick:!1,setInitialFocus:!1,openHotKey:67,type:Al.expanding},n}(u.Component),ec=(0,r.I)(ic,(function(t){var n=t.className,i=t.theme;return{host:[(0,$t.Km)(Bl,i).host,n]}}),void 0,{scope:"HoverCard"});!function(t){t[t.horizontal=0]="horizontal",t[t.vertical=1]="vertical"}($l||($l={}));var rc=function(t){var n;void 0===t&&(n={},t={getCachedMeasurement:function(t){if(t&&t.cacheKey&&n.hasOwnProperty(t.cacheKey))return n[t.cacheKey]},addMeasurementToCache:function(t,i){t.cacheKey&&(n[t.cacheKey]=i)}});var i,e=t;function r(t,n){var i=e.getCachedMeasurement(t);if(void 0!==i)return i;var r=n();return e.addMeasurementToCache(t,r),r}function u(t,n,o){for(var u=t,a=r(t,o);a>i;){var s=n(u);if(void 0===s)return{renderedData:u,resizeDirection:void 0,dataToMeasure:void 0};if(void 0===(a=e.getCachedMeasurement(s)))return{dataToMeasure:s,resizeDirection:"shrink"};u=s}return{renderedData:u,resizeDirection:void 0,dataToMeasure:void 0}}return{getNextState:function(t,n,a,s){if(void 0!==s||void 0!==n.dataToMeasure){if(s){if(i&&n.renderedData&&!n.dataToMeasure)return(0,o.Cl)((0,o.Cl)({},n),function(t,n,e,r){var u;return u=t>i?r?{resizeDirection:"grow",dataToMeasure:r(e)}:{resizeDirection:"shrink",dataToMeasure:n}:{resizeDirection:"shrink",dataToMeasure:e},i=t,(0,o.Cl)((0,o.Cl)({},u),{measureContainer:!1})}(s,t.data,n.renderedData,t.onGrowData));i=s}var l=(0,o.Cl)((0,o.Cl)({},n),{measureContainer:!1});return n.dataToMeasure&&(l="grow"===n.resizeDirection&&t.onGrowData?(0,o.Cl)((0,o.Cl)({},l),function(t,n,a,s){for(var l=t,c=r(t,a);c<i;){var f=n(l);if(void 0===f)return{renderedData:l,resizeDirection:void 0,dataToMeasure:void 0};if(void 0===(c=e.getCachedMeasurement(f)))return{dataToMeasure:f};l=f}return(0,o.Cl)({resizeDirection:"shrink"},u(l,s,a))}(n.dataToMeasure,t.onGrowData,a,t.onReduceData)):(0,o.Cl)((0,o.Cl)({},l),u(n.dataToMeasure,t.onReduceData,a))),l}},shouldRenderDataForMeasurement:function(t){return!(!t||void 0!==e.getCachedMeasurement(t))},getInitialResizeGroupState:function(t){return{dataToMeasure:(0,o.Cl)({},t),resizeDirection:"grow",measureContainer:!0}}}},oc=u.createContext({isMeasured:!1}),uc={position:"fixed",visibility:"hidden"},ac={position:"relative"};function sc(t,n){var i;switch(n.type){case"resizeData":return(0,o.Cl)({},n.value);case"dataToMeasure":return(0,o.Cl)((0,o.Cl)({},t),{dataToMeasure:n.value,resizeDirection:"grow",measureContainer:!0});default:return(0,o.Cl)((0,o.Cl)({},t),((i={})[n.type]=n.value,i))}}var lc={isMeasured:!0},cc=u.forwardRef((function(t,n){var i=u.useRef(null),e=Rt(i,n),r=function(t,n){var i=Xt(rc),e=u.useRef(null),r=u.useRef(null),a=u.useRef(!1),s=_t(),l=function(t,n,i){var e=Xt((function(){return n.getInitialResizeGroupState(t.data)})),r=u.useReducer(sc,e),a=r[0],s=r[1];u.useEffect((function(){s({type:"dataToMeasure",value:t.data})}),[t.data]);var l=u.useRef(e);return l.current=(0,o.Cl)({},a),[l,u.useCallback((function(t){t&&s({type:"resizeData",value:t})}),[]),u.useCallback((function(){i.current&&s({type:"measureContainer",value:!0})}),[i])]}(t,i,n),c=l[0],f=l[1],h=l[2];u.useEffect((function(){var n;c.current.renderedData&&(a.current=!0,null===(n=t.dataDidRender)||void 0===n||n.call(t,c.current.renderedData))})),u.useEffect((function(){s.requestAnimationFrame((function(){var o=void 0;if(c.current.measureContainer&&n.current){var u=n.current.getBoundingClientRect();o=t.direction===$l.vertical?u.height:u.width}var s=i.getNextState(t,c.current,(function(){var n=a.current?r:e;if(!n.current)return 0;var i=n.current.getBoundingClientRect();return t.direction===$l.vertical?i.height:i.width}),o);f(s)}),n.current)})),Ht(Wt(),"resize",s.debounce(h,16,{leading:!0}));var d=i.shouldRenderDataForMeasurement(c.current.dataToMeasure),v=!a.current&&d;return[c.current.dataToMeasure,c.current.renderedData,h,e,r,d,v]}(t,i),a=r[0],s=r[1],l=r[2],c=r[3],f=r[4],h=r[5],d=r[6];u.useImperativeHandle(t.componentRef,(function(){return{remeasure:l}}),[l]),function(t){Yn({name:"ResizeGroup",props:t,deprecations:{styles:"className"}})}(t);var v=t.className,p=t.onRenderData,g=q(t,G,["data"]);return u.createElement("div",(0,o.Cl)({},g,{className:v,ref:e}),u.createElement("div",{style:ac},h&&!d&&u.createElement("div",{style:uc,ref:f},u.createElement(oc.Provider,{value:lc},p(a))),u.createElement("div",{ref:c,style:d?uc:void 0,"data-automation-id":"visibleContent"},d?p(a):s&&p(s))))}));cc.displayName="ResizeGroupBase";var fc,hc=cc;!function(t){t.KEYTIP_ADDED="keytipAdded",t.KEYTIP_REMOVED="keytipRemoved",t.KEYTIP_UPDATED="keytipUpdated",t.PERSISTED_KEYTIP_ADDED="persistedKeytipAdded",t.PERSISTED_KEYTIP_REMOVED="persistedKeytipRemoved",t.PERSISTED_KEYTIP_EXECUTE="persistedKeytipExecute",t.ENTER_KEYTIP_MODE="enterKeytipMode",t.EXIT_KEYTIP_MODE="exitKeytipMode"}(fc||(fc={}));var dc=function(){function t(){this.keytips={},this.persistedKeytips={},this.sequenceMapping={},this.inKeytipMode=!1,this.shouldEnterKeytipMode=!0,this.delayUpdatingKeytipChange=!1}return t.getInstance=function(){return this._instance},t.prototype.init=function(t){this.delayUpdatingKeytipChange=t},t.prototype.register=function(t,n){void 0===n&&(n=!1);var i=t;n||(i=this.addParentOverflow(t),this.sequenceMapping[i.keySequences.toString()]=i);var e=this._getUniqueKtp(i);if(n?this.persistedKeytips[e.uniqueID]=e:this.keytips[e.uniqueID]=e,this.inKeytipMode||!this.delayUpdatingKeytipChange){var r=n?fc.PERSISTED_KEYTIP_ADDED:fc.KEYTIP_ADDED;Fl.raise(this,r,{keytip:i,uniqueID:e.uniqueID})}return e.uniqueID},t.prototype.update=function(t,n){var i=this.addParentOverflow(t),e=this._getUniqueKtp(i,n),r=this.keytips[n];r&&(e.keytip.visible=r.keytip.visible,this.keytips[n]=e,delete this.sequenceMapping[r.keytip.keySequences.toString()],this.sequenceMapping[e.keytip.keySequences.toString()]=e.keytip,!this.inKeytipMode&&this.delayUpdatingKeytipChange||Fl.raise(this,fc.KEYTIP_UPDATED,{keytip:e.keytip,uniqueID:e.uniqueID}))},t.prototype.unregister=function(t,n,i){void 0===i&&(i=!1),i?delete this.persistedKeytips[n]:delete this.keytips[n],!i&&delete this.sequenceMapping[t.keySequences.toString()];var e=i?fc.PERSISTED_KEYTIP_REMOVED:fc.KEYTIP_REMOVED;!this.inKeytipMode&&this.delayUpdatingKeytipChange||Fl.raise(this,e,{keytip:t,uniqueID:n})},t.prototype.enterKeytipMode=function(){Fl.raise(this,fc.ENTER_KEYTIP_MODE)},t.prototype.exitKeytipMode=function(){Fl.raise(this,fc.EXIT_KEYTIP_MODE)},t.prototype.getKeytips=function(){var t=this;return Object.keys(this.keytips).map((function(n){return t.keytips[n].keytip}))},t.prototype.addParentOverflow=function(t){var n=(0,o.fX)([],t.keySequences,!0);if(n.pop(),0!==n.length){var i=this.sequenceMapping[n.toString()];if(i&&i.overflowSetSequence)return(0,o.Cl)((0,o.Cl)({},t),{overflowSetSequence:i.overflowSetSequence})}return t},t.prototype.menuExecute=function(t,n){Fl.raise(this,fc.PERSISTED_KEYTIP_EXECUTE,{overflowButtonSequences:t,keytipSequences:n})},t.prototype._getUniqueKtp=function(t,n){return void 0===n&&(n=g()),{keytip:(0,o.Cl)({},t),uniqueID:n}},t._instance=new t,t}(),vc=function(t,n,i){for(var e=0,r=t;e<r.length;e++){var o=r[e];i[n.register(o,!0)]=o}},pc=function(t,n){for(var i=0,e=Object.keys(n);i<e.length;i++){var r=e[i];t.unregister(n[r],r,!0),delete n[r]}},gc=function(t){var n=dc.getInstance(),i=t.className,e=t.overflowItems,r=t.keytipSequences,a=t.itemSubMenuProvider,s=t.onRenderOverflowButton,l=Xt({}),c=u.useCallback((function(t){return a?a(t):t.subMenuProps?t.subMenuProps.items:void 0}),[a]),f=u.useMemo((function(){var t=[],i=[];return r?null==e||e.forEach((function(e){var u,a=e.keytipProps;if(a){var s={content:a.content,keySequences:a.keySequences,disabled:a.disabled||!(!e.disabled&&!e.isDisabled),hasDynamicChildren:a.hasDynamicChildren,hasMenu:a.hasMenu};a.hasDynamicChildren||c(e)?(s.onExecute=n.menuExecute.bind(n,r,null===(u=null==e?void 0:e.keytipProps)||void 0===u?void 0:u.keySequences),s.hasOverflowSubMenu=!0):s.onExecute=a.onExecute,t.push(s);var l=(0,o.Cl)((0,o.Cl)({},e),{keytipProps:(0,o.Cl)((0,o.Cl)({},a),{overflowSetSequence:r})});null==i||i.push(l)}else null==i||i.push(e)})):i=e,{modifiedOverflowItems:i,keytipsToRegister:t}}),[e,c,n,r]),h=f.modifiedOverflowItems;return function(t,n,i){var e=zn(t);u.useEffect((function(){e&&(pc(i,e),vc(n,i,t))})),u.useEffect((function(){return vc(n,i,t),function(){pc(i,t)}}),[])}(l,f.keytipsToRegister,n),u.createElement("div",{className:i},s(h))},mc=(0,a.Z)(),yc=u.forwardRef((function(t,n){var i=u.useRef(null),e=Rt(i,n);!function(t,n){var i=function(){var t;return null!==(t=zt())&&void 0!==t?t:"undefined"!=typeof document?document:void 0}();u.useImperativeHandle(t.componentRef,(function(){return{focus:function(t,i){var e=!1;return n.current&&(e=D(n.current,i)),e},focusElement:function(t){var e=!1;return!!t&&(n.current&&M(n.current,t)&&(t.focus(),e=(null==i?void 0:i.activeElement)===t),e)}}}),[n,i])}(t,i);var r=t.items,a=t.overflowItems,s=t.className,l=t.styles,c=t.vertical,f=t.role,h=t.overflowSide,d=void 0===h?"end":h,v=t.onRenderItem,p=mc(l,{className:s,vertical:c}),g=!!a&&a.length>0;return u.createElement("div",(0,o.Cl)({},q(t,G),{role:f||"group","aria-orientation":"menubar"===f?!0===c?"vertical":"horizontal":void 0,className:p.root,ref:e}),"start"===d&&g&&u.createElement(gc,(0,o.Cl)({},t,{className:p.overflowButton})),r&&r.map((function(t,n){return u.createElement("div",{className:p.item,key:t.key,role:"none"},v(t))})),"end"===d&&g&&u.createElement(gc,(0,o.Cl)({},t,{className:p.overflowButton})))}));yc.displayName="OverflowSet";var bc,xc={flexShrink:0,display:"inherit"},Cc=(0,r.I)(yc,(function(t){var n=t.className;return{root:["ms-OverflowSet",{position:"relative",display:"flex",flexWrap:"nowrap"},t.vertical&&{flexDirection:"column"},n],item:["ms-OverflowSet-item",xc],overflowButton:["ms-OverflowSet-overflowButton",xc]}}),void 0,{scope:"OverflowSet"}),wc=((bc={})["".concat(Vs[Vs.circle])]="M1 6 A5 5 0 1 0 12 6 M1 6 A5 5 0 0 1 12 6",bc["".concat(Vs[Vs.square])]="M1 1 L12 1 L12 12 L1 12 L1 1 Z",bc["".concat(Vs[Vs.triangle])]="M6 10L8.74228e-07 -1.04907e-06L12 0L6 10Z",bc["".concat(Vs[Vs.pyramid])]="M6 10L8.74228e-07 -1.04907e-06L12 0L6 10Z",bc["".concat(Vs[Vs.diamond])]="M2 2 L10 2 L10 10 L2 10 L2 2 Z",bc["".concat(Vs[Vs.hexagon])]="M9 0H3L0 5L3 10H9L12 5L9 0Z",bc["".concat(Vs[Vs.pentagon])]="M6.06061 0L0 4.21277L2.30303 11H9.69697L12 4.21277L6.06061 0Z",bc["".concat(Vs[Vs.octagon])]="M7.08333 0H2.91667L0 2.91667V7.08333L2.91667 10H7.08333L10 7.08333V2.91667L7.08333 0Z",bc["".concat(Ds[Ds.dottedLine])]="M0 6 H3 M5 6 H8 M10 6 H13",bc),Mc=function(t){var n=t.svgProps,i=t.pathProps,e=t.shape,r=t.classNameForNonSvg;return-1===Object.keys(wc).indexOf(e)?u.createElement("div",{className:r}):u.createElement("svg",(0,o.Cl)({width:14,height:14,viewBox:"-1 -1 14 14"},Rs(n),{transform:"rotate(".concat(e===Vs[Vs.diamond]?45:e===Vs[Vs.pyramid]?180:0,", 0, 0)")}),u.createElement("path",(0,o.Cl)({d:wc[e]},Rs(i))))},kc=(0,a.Z)(),Sc=function(t){function n(n){var i,e,r,a,s=t.call(this,n)||this;s._isLegendSelected=!1,s._onRenderData=function(t){var n=s.props,i=n.overflowProps,e=n.allowFocusOnLegends,r=void 0===e||e,a=n.canSelectMultipleLegends,l=void 0!==a&&a,c={root:{justifyContent:s.props.centerLegends?"center":"unset",flexWrap:"wrap"}};return u.createElement(bl,(0,o.Cl)({},r&&{role:"listbox","aria-label":"Legends","aria-multiselectable":l}),u.createElement(Cc,(0,o.Cl)({items:t.primary,overflowItems:t.overflow,onRenderItem:s._renderButton,onRenderOverflowButton:s._renderOverflowItems},i,{styles:(0,o.Cl)((0,o.Cl)({},c),null==i?void 0:i.styles)})))},s._onReduceData=function(t){if(0!==t.primary.length){var n=(0,o.fX)((0,o.fX)([],t.primary.slice(-1),!0),t.overflow,!0);return{primary:t.primary.slice(0,-1),overflow:n}}},s._onGrowData=function(t){if(0!==t.overflow.length){var n=t.overflow.slice(1);return{primary:(0,o.fX)((0,o.fX)([],t.primary,!0),t.overflow.slice(0,1),!0),overflow:n}}},s._getNewSelectedLegendsForMultiselect=function(t){var n=(0,o.Cl)({},s.state.selectedLegends);return n[t.title]?delete n[t.title]:(n[t.title]=!0,Object.keys(n).length===s.props.legends.length&&(n={})),n},s._getNewSelectedLegendsForSingleSelect=function(t){var n;return s.state.selectedLegends[t.title]?{}:((n={})[t.title]=!0,n)},s._onClick=function(t,n){var i,e,r,o=s.props.canSelectMultipleLegends,u=void 0!==o&&o?s._getNewSelectedLegendsForMultiselect(t):s._getNewSelectedLegendsForSingleSelect(t);s.setState({selectedLegends:u}),null===(e=(i=s.props).onChange)||void 0===e||e.call(i,Object.keys(u),n,t),null===(r=t.action)||void 0===r||r.call(t)},s._onRenderCompactCard=function(t){var n=s.props,i=n.allowFocusOnLegends,e=void 0===i||i,r=n.className,a=n.styles,l=n.theme,c=n.canSelectMultipleLegends,f=void 0!==c&&c,h=[],d=kc(a,{theme:l,className:r});return t.renderData.forEach((function(t,n){var i=s._renderButton(t,n,!0);h.push(i)})),u.createElement(bl,(0,o.Cl)({},e&&{role:"listbox","aria-label":"Legends","aria-multiselectable":f},{direction:Ws.vertical,handleTabKey:1,isCircularNavigation:!0},s.props.focusZonePropsInHoverCard,{className:d.hoverCardRoot}),h)},s._renderOverflowItems=function(t){var n=s.props.allowFocusOnLegends,i=void 0===n||n,e=[];t.forEach((function(t,n){e.push({key:n.toString(),name:t.title,onClick:t.action})}));var r={renderData:t},a=s.props,l=a.theme,c=a.className,f=a.styles,h=a.overflowText,d=kc(f,{theme:l,className:c}),v={onRenderPlainCard:s._onRenderCompactCard,renderData:r},p=h||"more";return u.createElement(ec,{type:Al.plain,plainCardProps:v,instantOpenOnClick:!0,onCardHide:function(){s.setState({isHoverCardVisible:!1});var n=b(t,(function(t){return t.title===s.state.activeLegend}));n&&(s.setState({activeLegend:""}),n.onMouseOutAction&&n.onMouseOutAction())},setInitialFocus:!0,trapFocus:!0,onCardVisible:s._hoverCardVisible,styles:d.subComponentStyles.hoverCardStyles,cardDismissDelay:300,target:s._hoverCardRef},u.createElement("div",{role:"option"},u.createElement("div",(0,o.Cl)({className:d.overflowIndicationTextStyle,ref:function(t){return s._hoverCardRef=t}},i&&{role:"button","aria-expanded":s.state.isHoverCardVisible,"aria-label":"".concat(e.length," ").concat(p)},{"data-is-focusable":i}),e.length," ",p)))},s._hoverCardVisible=function(){s.setState({isHoverCardVisible:!0})},s._onHoverOverLegend=function(t){t.hoverAction&&(s.setState({activeLegend:t.title}),t.hoverAction())},s._onLeave=function(t){t.onMouseOutAction&&(s.setState({activeLegend:""}),t.onMouseOutAction())},s._renderButton=function(t,n,i){var e=s.props.allowFocusOnLegends,r=void 0===e||e,a={title:t.title,color:t.color,shape:t.shape,action:t.action,hoverAction:t.hoverAction,onMouseOutAction:t.onMouseOutAction,stripePattern:t.stripePattern,isLineLegendInBarChart:t.isLineLegendInBarChart,opacity:t.opacity},l=s._getColor(a.title,a.color),c=s.props,f=c.theme,h=c.className,d=c.styles,v=kc(d,{theme:f,className:h,colorOnSelectedState:l,borderColor:a.color,overflow:i,stripePattern:a.stripePattern,isLineLegendInBarChart:a.isLineLegendInBarChart,opacity:a.opacity}),p=function(){s._onHoverOverLegend(a)},g=function(){s._onLeave(a)},m=s._getShape(v,a,l);return u.createElement("button",(0,o.Cl)({},r&&{"aria-selected":!!s.state.selectedLegends[a.title],role:"option","aria-label":"".concat(a.title),"aria-setsize":t["aria-setsize"],"aria-posinset":t["aria-posinset"]},t.nativeButtonProps&&(0,o.Cl)({},t.nativeButtonProps),{key:n,className:v.legend,onClick:function(t){s._onClick(a,t)},onMouseOver:p,onMouseOut:g,onFocus:p,onBlur:g,"data-is-focusable":r}),m,u.createElement("div",{className:v.text},a.title))};var l=null!==(e=n.selectedLegends)&&void 0!==e?e:n.defaultSelectedLegends,c=null!==(r=n.selectedLegend)&&void 0!==r?r:n.defaultSelectedLegend,f={};return n.canSelectMultipleLegends?f=(null===(a=null!=l?l:[])||void 0===a?void 0:a.reduce((function(t,n){var i;return(0,o.Cl)(((i={})[n]=!0,i),t)}),{}))||{}:c&&((i={})[c]=!0,f=i),s.state={activeLegend:"",isHoverCardVisible:!1,selectedLegends:f},s}return(0,o.C6)(n,t),n.getDerivedStateFromProps=function(t,n){var i,e=t.selectedLegend,r=t.selectedLegends;return t.canSelectMultipleLegends&&void 0!==r?(0,o.Cl)((0,o.Cl)({},n),{selectedLegends:r.reduce((function(t,n){var i;return(0,o.Cl)(((i={})[n]=!0,i),t)}),{})}):t.canSelectMultipleLegends||void 0===e?n:(0,o.Cl)((0,o.Cl)({},n),{selectedLegends:(i={},i[e]=!0,i)})},n.prototype.render=function(){var t=this.props,n=t.theme,i=t.className,e=t.styles;this._classNames=kc(e,{theme:n,className:i}),this._isLegendSelected=Object.keys(this.state.selectedLegends).length>0;var r=this._generateData();return u.createElement("div",{className:this._classNames.root},this.props.enabledWrapLines?this._onRenderData(r):u.createElement(hc,{data:r,onReduceData:this._onReduceData,onRenderData:this._onRenderData,onGrowData:this._onGrowData}))},n.prototype._generateData=function(){var t=this,n=this.props,i=n.allowFocusOnLegends,e=void 0===i||i,r=n.shape;return{primary:this.props.legends.map((function(n,i){return(0,o.Cl)((0,o.Cl)({},e&&{nativeButtonProps:q(n,X,["title"]),"aria-setsize":t.props.legends.length,"aria-posinset":i+1}),{title:n.title,action:n.action,hoverAction:n.hoverAction,onMouseOutAction:n.onMouseOutAction,color:n.color,shape:r||n.shape,stripePattern:n.stripePattern,isLineLegendInBarChart:n.isLineLegendInBarChart,opacity:n.opacity,key:i})})),overflow:[]}},n.prototype._getShape=function(t,n,i){var e={className:t.shape},r={fill:i,strokeWidth:2,stroke:n.color};return u.createElement(Mc,{svgProps:e,pathProps:r,shape:n.shape,classNameForNonSvg:t.rect})},n.prototype._getColor=function(t,n){var i=this.props.theme;return this._isLegendSelected?this.state.selectedLegends[t]?n:i.semanticColors.buttonBackground:this.state.activeLegend===t||""===this.state.activeLegend?n:i.semanticColors.buttonBackground},n}(u.Component),Ac=(0,r.I)(Sc,(function(t){var n,i,e=t.className,r=t.theme,u=t.isLineLegendInBarChart,a=void 0!==u&&u,s=r,l=s.palette,c=s.fonts,f={inset:void 0,position:void 0,highContrastStyle:{outlineColor:r.semanticColors.focusBorder},borderColor:"transparent",outlineColor:void 0};return{root:[{whiteSpace:"nowrap",width:"100%",alignItems:"center",margin:"-8px 0 0 -8px"},e],legend:[(0,$t.gm)(r,f),{display:"flex",alignItems:"center",cursor:"pointer",border:"none",padding:"8px",background:"none",textTransform:"capitalize"}],rect:{selectors:(n={},n[$t.up]={content:"linear-gradient(to right, ".concat(t.colorOnSelectedState,", ").concat(t.colorOnSelectedState,")"),opacity:t.colorOnSelectedState===r.semanticColors.buttonBackground?"0.6":""},n),width:"12px",height:a?"4px":"12px",backgroundColor:t.stripePattern?"":t.colorOnSelectedState,marginRight:"8px",border:"1px solid",borderColor:t.borderColor?t.borderColor:null==r?void 0:r.semanticColors.buttonBorder,content:t.stripePattern?"repeating-linear-gradient(135deg, transparent, transparent 3px, ".concat(t.colorOnSelectedState," 1px, ").concat(t.colorOnSelectedState," 4px)"):""},shape:[{marginRight:"8px"}],triangle:{width:"0",height:"0",borderLeft:"6px solid transparent",borderRight:"6px solid transparent",borderTop:"10.4px solid",borderTopColor:t.colorOnSelectedState,marginRight:"8px",opacity:t.colorOnSelectedState===r.semanticColors.buttonBackground?"0.6":t.opacity?t.opacity:"",selectors:(i={},i[$t.up]={border:"0px",height:"10.4px",width:"10.4px",clipPath:"polygon(50% 100%, 0 0, 100% 0)",backgroundImage:"linear-gradient(to right, ".concat(t.colorOnSelectedState,", ").concat(t.colorOnSelectedState,")")},i)},text:(0,o.Cl)((0,o.Cl)({},c.small),{lineHeight:"16px",color:null==r?void 0:r.semanticColors.bodyText,opacity:t.colorOnSelectedState===r.semanticColors.buttonBackground?"0.67":""}),hoverChange:{width:"12px",height:"12px",backgroundColor:r.semanticColors.buttonBackground,marginRight:"8px",border:"1px solid",borderColor:t.borderColor?t.borderColor:l.black},overflowIndicationTextStyle:[(0,$t.gm)(r,f),(0,o.Cl)((0,o.Cl)({cursor:"pointer",color:null==r?void 0:r.semanticColors.bodyText},c.small),{lineHeight:"16px",padding:"8px"})],hoverCardRoot:{padding:"8px"},subComponentStyles:{hoverCardStyles:{host:[(0,$t.gm)(r,f)]}}}}));function Lc(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function Vc(t){return function(){return t}}function Dc(t,n){return n<t?-1:n>t?1:n>=t?0:NaN}function Nc(t){return t}Array.prototype.slice;const Tc=Math.abs,Ec=Math.atan2,Oc=Math.cos,Pc=Math.max,Bc=Math.min,Fc=Math.sin,_c=Math.sqrt,Hc=1e-12,Rc=Math.PI,Ic=Rc/2,Wc=2*Rc;function zc(t){return t>=1?Ic:t<=-1?-Ic:Math.asin(t)}function jc(){var t=Nc,n=Dc,i=null,e=Vc(0),r=Vc(Wc),o=Vc(0);function u(u){var a,s,l,c,f,h=(u=Lc(u)).length,d=0,v=new Array(h),p=new Array(h),g=+e.apply(this,arguments),m=Math.min(Wc,Math.max(-Wc,r.apply(this,arguments)-g)),y=Math.min(Math.abs(m)/h,o.apply(this,arguments)),b=y*(m<0?-1:1);for(a=0;a<h;++a)(f=p[v[a]=a]=+t(u[a],a,u))>0&&(d+=f);for(null!=n?v.sort((function(t,i){return n(p[t],p[i])})):null!=i&&v.sort((function(t,n){return i(u[t],u[n])})),a=0,l=d?(m-h*b)/d:0;a<h;++a,g=c)s=v[a],c=g+((f=p[s])>0?f*l:0)+b,p[s]={data:u[s],index:a,value:f,startAngle:g,endAngle:c,padAngle:y};return p}return u.value=function(n){return arguments.length?(t="function"==typeof n?n:Vc(+n),u):t},u.sortValues=function(t){return arguments.length?(n=t,i=null,u):n},u.sort=function(t){return arguments.length?(i=t,n=null,u):i},u.startAngle=function(t){return arguments.length?(e="function"==typeof t?t:Vc(+t),u):e},u.endAngle=function(t){return arguments.length?(r="function"==typeof t?t:Vc(+t),u):r},u.padAngle=function(t){return arguments.length?(o="function"==typeof t?t:Vc(+t),u):o},u}const Yc=Math.PI,$c=2*Yc,Xc=1e-6,Gc=$c-Xc;function qc(t){this._+=t[0];for(let n=1,i=t.length;n<i;++n)this._+=arguments[n]+t[n]}class Uc{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==t?qc:function(t){let n=Math.floor(t);if(!(n>=0))throw new Error(`invalid digits: ${t}`);if(n>15)return qc;const i=10**n;return function(t){this._+=t[0];for(let n=1,e=t.length;n<e;++n)this._+=Math.round(arguments[n]*i)/i+t[n]}}(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,i,e){this._append`Q${+t},${+n},${this._x1=+i},${this._y1=+e}`}bezierCurveTo(t,n,i,e,r,o){this._append`C${+t},${+n},${+i},${+e},${this._x1=+r},${this._y1=+o}`}arcTo(t,n,i,e,r){if(t=+t,n=+n,i=+i,e=+e,(r=+r)<0)throw new Error(`negative radius: ${r}`);let o=this._x1,u=this._y1,a=i-t,s=e-n,l=o-t,c=u-n,f=l*l+c*c;if(null===this._x1)this._append`M${this._x1=t},${this._y1=n}`;else if(f>Xc)if(Math.abs(c*a-s*l)>Xc&&r){let h=i-o,d=e-u,v=a*a+s*s,p=h*h+d*d,g=Math.sqrt(v),m=Math.sqrt(f),y=r*Math.tan((Yc-Math.acos((v+f-p)/(2*g*m)))/2),b=y/m,x=y/g;Math.abs(b-1)>Xc&&this._append`L${t+b*l},${n+b*c}`,this._append`A${r},${r},0,0,${+(c*h>l*d)},${this._x1=t+x*a},${this._y1=n+x*s}`}else this._append`L${this._x1=t},${this._y1=n}`}arc(t,n,i,e,r,o){if(t=+t,n=+n,o=!!o,(i=+i)<0)throw new Error(`negative radius: ${i}`);let u=i*Math.cos(e),a=i*Math.sin(e),s=t+u,l=n+a,c=1^o,f=o?e-r:r-e;null===this._x1?this._append`M${s},${l}`:(Math.abs(this._x1-s)>Xc||Math.abs(this._y1-l)>Xc)&&this._append`L${s},${l}`,i&&(f<0&&(f=f%$c+$c),f>Gc?this._append`A${i},${i},0,1,${c},${t-u},${n-a}A${i},${i},0,1,${c},${this._x1=s},${this._y1=l}`:f>Xc&&this._append`A${i},${i},0,${+(f>=Yc)},${c},${this._x1=t+i*Math.cos(r)},${this._y1=n+i*Math.sin(r)}`)}rect(t,n,i,e){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${i=+i}v${+e}h${-i}Z`}toString(){return this._}}function Zc(t){let n=3;return t.digits=function(i){if(!arguments.length)return n;if(null==i)n=null;else{const t=Math.floor(i);if(!(t>=0))throw new RangeError(`invalid digits: ${i}`);n=t}return t},()=>new Uc(n)}function Kc(t){return t.innerRadius}function Jc(t){return t.outerRadius}function Qc(t){return t.startAngle}function tf(t){return t.endAngle}function nf(t){return t&&t.padAngle}function ef(t,n,i,e,r,o,u){var a=t-i,s=n-e,l=(u?o:-o)/_c(a*a+s*s),c=l*s,f=-l*a,h=t+c,d=n+f,v=i+c,p=e+f,g=(h+v)/2,m=(d+p)/2,y=v-h,b=p-d,x=y*y+b*b,C=r-o,w=h*p-v*d,M=(b<0?-1:1)*_c(Pc(0,C*C*x-w*w)),k=(w*b-y*M)/x,S=(-w*y-b*M)/x,A=(w*b+y*M)/x,L=(-w*y+b*M)/x,V=k-g,D=S-m,N=A-g,T=L-m;return V*V+D*D>N*N+T*T&&(k=A,S=L),{cx:k,cy:S,x01:-c,y01:-f,x11:k*(r/C-1),y11:S*(r/C-1)}}function rf(){var t=Kc,n=Jc,i=Vc(0),e=null,r=Qc,o=tf,u=nf,a=null,s=Zc(l);function l(){var l,c,f,h=+t.apply(this,arguments),d=+n.apply(this,arguments),v=r.apply(this,arguments)-Ic,p=o.apply(this,arguments)-Ic,g=Tc(p-v),m=p>v;if(a||(a=l=s()),d<h&&(c=d,d=h,h=c),d>Hc)if(g>Wc-Hc)a.moveTo(d*Oc(v),d*Fc(v)),a.arc(0,0,d,v,p,!m),h>Hc&&(a.moveTo(h*Oc(p),h*Fc(p)),a.arc(0,0,h,p,v,m));else{var y,b,x=v,C=p,w=v,M=p,k=g,S=g,A=u.apply(this,arguments)/2,L=A>Hc&&(e?+e.apply(this,arguments):_c(h*h+d*d)),V=Bc(Tc(d-h)/2,+i.apply(this,arguments)),D=V,N=V;if(L>Hc){var T=zc(L/h*Fc(A)),E=zc(L/d*Fc(A));(k-=2*T)>Hc?(w+=T*=m?1:-1,M-=T):(k=0,w=M=(v+p)/2),(S-=2*E)>Hc?(x+=E*=m?1:-1,C-=E):(S=0,x=C=(v+p)/2)}var O=d*Oc(x),P=d*Fc(x),B=h*Oc(M),F=h*Fc(M);if(V>Hc){var _,H=d*Oc(C),R=d*Fc(C),I=h*Oc(w),W=h*Fc(w);if(g<Rc)if(_=function(t,n,i,e,r,o,u,a){var s=i-t,l=e-n,c=u-r,f=a-o,h=f*s-c*l;if(!(h*h<Hc))return[t+(h=(c*(n-o)-f*(t-r))/h)*s,n+h*l]}(O,P,I,W,H,R,B,F)){var z=O-_[0],j=P-_[1],Y=H-_[0],$=R-_[1],X=1/Fc(((f=(z*Y+j*$)/(_c(z*z+j*j)*_c(Y*Y+$*$)))>1?0:f<-1?Rc:Math.acos(f))/2),G=_c(_[0]*_[0]+_[1]*_[1]);D=Bc(V,(h-G)/(X-1)),N=Bc(V,(d-G)/(X+1))}else D=N=0}S>Hc?N>Hc?(y=ef(I,W,O,P,d,N,m),b=ef(H,R,B,F,d,N,m),a.moveTo(y.cx+y.x01,y.cy+y.y01),N<V?a.arc(y.cx,y.cy,N,Ec(y.y01,y.x01),Ec(b.y01,b.x01),!m):(a.arc(y.cx,y.cy,N,Ec(y.y01,y.x01),Ec(y.y11,y.x11),!m),a.arc(0,0,d,Ec(y.cy+y.y11,y.cx+y.x11),Ec(b.cy+b.y11,b.cx+b.x11),!m),a.arc(b.cx,b.cy,N,Ec(b.y11,b.x11),Ec(b.y01,b.x01),!m))):(a.moveTo(O,P),a.arc(0,0,d,x,C,!m)):a.moveTo(O,P),h>Hc&&k>Hc?D>Hc?(y=ef(B,F,H,R,h,-D,m),b=ef(O,P,I,W,h,-D,m),a.lineTo(y.cx+y.x01,y.cy+y.y01),D<V?a.arc(y.cx,y.cy,D,Ec(y.y01,y.x01),Ec(b.y01,b.x01),!m):(a.arc(y.cx,y.cy,D,Ec(y.y01,y.x01),Ec(y.y11,y.x11),!m),a.arc(0,0,h,Ec(y.cy+y.y11,y.cx+y.x11),Ec(b.cy+b.y11,b.cx+b.x11),m),a.arc(b.cx,b.cy,D,Ec(b.y11,b.x11),Ec(b.y01,b.x01),!m))):a.arc(0,0,h,M,w,m):a.lineTo(B,F)}else a.moveTo(0,0);if(a.closePath(),l)return a=null,l+""||null}return l.centroid=function(){var i=(+t.apply(this,arguments)+ +n.apply(this,arguments))/2,e=(+r.apply(this,arguments)+ +o.apply(this,arguments))/2-Rc/2;return[Oc(e)*i,Fc(e)*i]},l.innerRadius=function(n){return arguments.length?(t="function"==typeof n?n:Vc(+n),l):t},l.outerRadius=function(t){return arguments.length?(n="function"==typeof t?t:Vc(+t),l):n},l.cornerRadius=function(t){return arguments.length?(i="function"==typeof t?t:Vc(+t),l):i},l.padRadius=function(t){return arguments.length?(e=null==t?null:"function"==typeof t?t:Vc(+t),l):e},l.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:Vc(+t),l):r},l.endAngle=function(t){return arguments.length?(o="function"==typeof t?t:Vc(+t),l):o},l.padAngle=function(t){return arguments.length?(u="function"==typeof t?t:Vc(+t),l):u},l.context=function(t){return arguments.length?(a=null==t?null:t,l):a},l}Uc.prototype;var of=function(t){var n=t.solidFill,i=t.gradientFill,e=t.href,r=t.theme,o=t.opacity;return{root:{fill:n,cursor:e?"pointer":"default",stroke:r.semanticColors.bodyBackground,outline:"transparent",selectors:{"::-moz-focus-inner":{border:"0"}},opacity:o},gradientArc:{width:"100%",height:"100%",background:i,opacity:o},focusRing:{stroke:r.semanticColors.focusBorder,strokeWidth:4,fill:"transparent"},arcLabel:{fontSize:$t.s.small,fontWeight:$t.BO.semibold,fill:r.palette.neutralPrimary}}},uf=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.state={},n.currentRef=u.createRef(),n._isRTL=(0,s.jI)(),n._hoverOff=function(){n.props.hoverLeaveCallback()},n._onBlur=function(){n.props.onBlurCallback()},n._getAriaLabel=function(){var t,i=n.props.data.data,e=i.xAxisCalloutData||i.legend,r=i.yAxisCalloutData||i.data||0;return(null===(t=i.callOutAccessibilityData)||void 0===t?void 0:t.ariaLabel)||(e?"".concat(e,", "):"")+"".concat(r,".")},n._shouldHighlightArc=function(t){var i=n.props.activeArc;return!i||0===i.length||void 0===t||i.includes(t)},n._renderArcLabel=function(t){var i=n.props,e=i.arc,r=i.data,o=i.innerRadius,a=i.outerRadius,s=i.showLabelsInPercent,l=i.totalValue;if(i.hideLabels||Math.abs(r.endAngle-r.startAngle)<Math.PI/12||!n._shouldHighlightArc(r.data.legend))return null;var c=e.centroid(r),f=c[0],h=c[1],d=Math.sqrt(f*f+h*h),v=Math.max(o,a)+2,p=(r.startAngle+r.endAngle)/2,g=r.value;return u.createElement("text",{x:(0===d?0:f/d)*v,y:(0===d?0:h/d)*v,textAnchor:p>Math.PI!==n._isRTL?"end":"start",dominantBaseline:p>Math.PI/2&&p<3*Math.PI/2?"hanging":"auto",className:t,"aria-hidden":!0},s?Ye(".0%")(0===l?0:g/l):Ps(g))},n}return(0,o.C6)(n,t),n.getDerivedStateFromProps=function(t){return af(t),null},n.prototype.updateChart=function(t){af(t)},n.prototype.render=function(){var t,n,i,e,r,o,s,l=this.props,c=l.arc,f=l.href,h=l.focusedArcId,d=l.activeArc,v=(0,a.Z)(),p=this.props.uniqText+this.props.data.data.legend.replace(/\s+/,"")+this.props.data.data.data,m=d&&d.length>0?d.includes(null===(t=this.props.data)||void 0===t?void 0:t.data.legend)?1:.1:1,y=null!==(i=null===(n=this.props.data)||void 0===n?void 0:n.startAngle)&&void 0!==i?i:0,b=(null!==(r=null===(e=this.props.data)||void 0===e?void 0:e.endAngle)&&void 0!==r?r:0)-y,x=this.props.roundCorners?3:0,C=v(of,{solidFill:this.props.enableGradient?"transparent":this.props.color,gradientFill:"conic-gradient(\n from ".concat(y,"rad,\n ").concat(this.props.color,",\n ").concat(this.props.nextColor," ").concat(b,"rad\n )"),href:f,theme:this.props.theme,opacity:m}),w=g("Arc_clip")+"".concat(this.props.color,"_").concat(this.props.nextColor);return u.createElement("g",{ref:this.currentRef},!!h&&h===p&&u.createElement("path",{id:p+"focusRing",d:c.cornerRadius(x)(this.props.focusData),className:C.focusRing}),u.createElement("path",{id:p,d:c.cornerRadius(x)(this.props.data),onFocus:this._onFocus.bind(this,this.props.data.data,p),className:C.root,"data-is-focusable":this._shouldHighlightArc(this.props.data.data.legend)||0===(null===(o=this.props.activeArc)||void 0===o?void 0:o.length),onMouseOver:this._hoverOn.bind(this,this.props.data.data),onMouseMove:this._hoverOn.bind(this,this.props.data.data),onMouseLeave:this._hoverOff,onBlur:this._onBlur,onClick:f?this._redirectToUrl.bind(this,f):null===(s=this.props.data)||void 0===s?void 0:s.data.onClick,"aria-label":this._getAriaLabel(),role:"img"}),this._renderArcLabel(C.arcLabel),this.props.enableGradient&&u.createElement(u.Fragment,null,u.createElement("clipPath",{id:w},u.createElement("path",{d:c.cornerRadius(x)(this.props.data)})),u.createElement("foreignObject",{x:"-50%",y:"-50%",width:"100%",height:"100%",clipPath:"url(#".concat(w,")")},u.createElement("div",{className:C.gradientArc}))))},n.prototype._onFocus=function(t,n){this.props.onFocusCallback(t,n,this.currentRef.current)},n.prototype._hoverOn=function(t,n){n.persist(),this.props.hoverOnCallback(t,n)},n.prototype._redirectToUrl=function(t){t&&(window.location.href=t)},n.defaultProps={arc:rf()},n}(u.Component);function af(t){t.arc.innerRadius(t.innerRadius),t.arc.outerRadius(t.outerRadius)}var sf=function(t){var n,i=t.theme;return{root:{},insideDonutString:{fontSize:$t.s.xLargePlus,fontWeight:$t.BO.semibold,fill:i.semanticColors.bodyText,selectors:(n={},n[$t.NK]={fill:"rgb(179, 179, 179)"},n)}}},lf=(0,a.Z)(),cf=function(t){function n(n){var i=t.call(this,n)||this;return i.arcGenerator=function(t,n,e,r){var o,a,s,l,c=t&&t.data&&t.data.color,f=c;return i.props.enableGradient&&(c=null!==(a=null===(o=i.props.data[n].gradient)||void 0===o?void 0:o[0])&&void 0!==a?a:Us(n,0,i.props.theme.isInverted)[0],f=null!==(l=null===(s=i.props.data[n].gradient)||void 0===s?void 0:s[1])&&void 0!==l?l:Us(n,0,i.props.theme.isInverted)[1]),u.createElement(uf,{key:n,data:t,focusData:e,innerRadius:i.props.innerRadius,outerRadius:i.props.outerRadius,color:c,nextColor:f,enableGradient:i.props.enableGradient,roundCorners:i.props.roundCorners,onFocusCallback:i._focusCallback,hoverOnCallback:i._hoverCallback,onBlurCallback:i.props.onBlurCallback,hoverLeaveCallback:i.props.hoverLeaveCallback,uniqText:i.props.uniqText,activeArc:i.props.activeArc,href:r,calloutId:i.props.calloutId,valueInsideDonut:i.props.valueInsideDonut,theme:i.props.theme,focusedArcId:i.props.focusedArcId,showLabelsInPercent:i.props.showLabelsInPercent,totalValue:i._totalValue,hideLabels:i.props.hideLabels})},i._focusCallback=function(t,n,e){i.props.onFocusCallback(t,n,e)},i._computeTotalValue=function(){var t=0;return i.props.data.forEach((function(n){t+=n.data})),t},i._hoverCallback=i._hoverCallback.bind(i),i._pieForFocusRing=jc().sort(null).value((function(t){return t.data})).padAngle(0),i}return(0,o.C6)(n,t),n.prototype.render=function(){var t=this,n=this.props,i=n.pie,e=n.data,r=this._pieForFocusRing(e),o=i(e),a="translate(".concat(this.props.width/2,", ").concat(this.props.height/2,")"),s=lf(sf,{theme:this.props.theme});return this._totalValue=this._computeTotalValue(),u.createElement("g",{transform:a},o.map((function(n,i){return t.arcGenerator(n,i,r[i],t.props.href)})),this.props.valueInsideDonut&&u.createElement("text",{y:5,textAnchor:"middle",dominantBaseline:"middle",className:s.insideDonutString},this.props.valueInsideDonut))},n.prototype.componentDidUpdate=function(){var t,n,i;t=lf(sf,{theme:this.props.theme}).insideDonutString,n=2*this.props.innerRadius-5,i=0,ls(".".concat(t)).each((function(){for(var t=ss(this),e=t.text().split(/\s+/).reverse(),r="",o=[],u=0,a=t.attr("y"),s=t.text(null).append("tspan").attr("id","WordBreakId-".concat(i,"-").concat(u)).attr("x",0).attr("y",a).attr("dy",1.1*u+++"em");r=e.pop();)o.push(r),s.text(o.join(" ")+" "),s.node().getComputedTextLength()>n&&o.length>1&&(o.pop(),s.text(o.join(" ")+" "),o=[r],s=t.append("tspan").attr("id","WordBreakId-".concat(i,"-").concat(u)).attr("x",0).attr("y",a).attr("dy",1.1*u+++"em").text(r));i+=1}))},n.prototype._hoverCallback=function(t,n){this.props.hoverOnCallback(t,n)},n.defaultProps={pie:jc().sort(null).value((function(t){return t.data})).padAngle(.02)},n}(u.Component),ff={color1:"qualitative.1",color2:"qualitative.2",color3:"qualitative.3",color4:"qualitative.4",color5:"qualitative.5",color6:"qualitative.6",color7:"qualitative.7",color8:"qualitative.8",color9:"qualitative.9",color10:"qualitative.10",color11:"qualitative.11",color12:"qualitative.12",color13:"qualitative.13",color14:"qualitative.14",color15:"qualitative.15",color16:"qualitative.16",color17:"qualitative.17",color18:"qualitative.18",color19:"qualitative.19",color20:"qualitative.20",color21:"qualitative.21",color22:"qualitative.22",color23:"qualitative.23",color24:"qualitative.24",color25:"qualitative.25",color26:"qualitative.26",color27:"qualitative.27",color28:"qualitative.28",color29:"qualitative.29",color30:"qualitative.30",color31:"qualitative.31",color32:"qualitative.32",color33:"qualitative.33",color34:"qualitative.34",color35:"qualitative.35",color36:"qualitative.36",color37:"qualitative.37",color38:"qualitative.38",color39:"qualitative.39",color40:"qualitative.40",info:"semantic.info",disabled:"semantic.disabled",highError:"semantic.highError",error:"semantic.error",warning:"semantic.warning",success:"semantic.success",highSuccess:"semantic.highSuccess"},hf={1:["#637cef"],2:["#e3008c"],3:["#2aa0a4"],4:["#9373c0"],5:["#13a10e"],6:["#3a96dd"],7:["#ca5010"],8:["#57811b"],9:["#b146c2"],10:["#ae8c00"],11:["#3c51b4","#93a4f4"],12:["#ad006a","#ee5fb7"],13:["#026467","#4cb4b7"],14:["#674c8c","#a083c9"],15:["#0e7a0b","#27ac22"],16:["#2c72a8","#4fa1e1"],17:["#9a3d0c","#d77440"],18:["#405f14","#73aa24"],19:["#863593","#c36bd1"],20:["#6d5700","#d0b232"],21:["#4f6bed"],22:["#ea38a6"],23:["#038387"],24:["#8764b8"],25:["#11910d"],26:["#3487c7"],27:["#d06228"],28:["#689920"],29:["#ba58c9"],30:["#937700","#c19c00"],31:["#2c3c85","#c8d1fa"],32:["#7f004e","#f7adda"],33:["#02494c","#9bd9db"],34:["#4c3867","#b29ad4"],35:["#0b5a08","#a7e3a5"],36:["#20547c","#83bdeb"],37:["#712d09","#df8e64"],38:["#23330b","#a4cc6c"],39:["#63276d","#cf87da"],40:["#3a2f00","#dac157"]},df={qualitative:hf,semantic:{info:["#015cda"],disabled:["#dbdbdb","#4d4d4d"],highError:["#6e0811","#cc2635"],error:["#c50f1f","#dc626d"],warning:["#f7630c","#f87528"],success:["#107c10","#54b054"],highSuccess:["#094509","#218c21"]}},vf=Object.values(hf),pf=Object.values(ff),gf=function(t,n){if(0===t.length)return"";var i=Number(n);return i<t.length?t[i]:t[0]},mf=function(t,n,i){void 0===n&&(n=0),void 0===i&&(i=!1);var e=vf[(t+n)%vf.length];return gf(e,i)},yf=function(t,n){if(void 0===n&&(n=!1),pf.indexOf(t)>=0){var i=t.split("."),e=i[0],r=i[1],o=df[e][r];return gf(o,n)}return t},bf=(0,a.Z)(),xf=function(t){function n(n){var i,e=t.call(this,n)||this;return e._closeCallout=function(){e.setState({showHover:!1})},e._focusCallback=function(t,n,i){e._currentHoverElement=i,e.setState({showHover:e._noLegendsHighlighted()||e._isLegendHighlighted(t.legend),value:t.data.toString(),legend:t.legend,color:t.color,xCalloutValue:t.xAxisCalloutData,yCalloutValue:t.yAxisCalloutData,focusedArcId:n,dataPointCalloutProps:t,callOutAccessibilityData:t.callOutAccessibilityData})},e._hoverCallback=function(t,n){var i,r,o,u;if(e._calloutAnchorPoint!==t){e._calloutAnchorPoint=t,e._currentHoverElement=n;var a=t.color;if(e.props.enableGradient){var s=Math.max((null===(r=null===(i=e.props.data)||void 0===i?void 0:i.chartData)||void 0===r?void 0:r.findIndex((function(n){return n.legend===t.legend})))||0,0);a=(null===(o=t.gradient)||void 0===o?void 0:o[0])||Us(s,0,null===(u=e.props.theme)||void 0===u?void 0:u.isInverted)[0]}e.setState({showHover:e._noLegendsHighlighted()||e._isLegendHighlighted(t.legend),value:t.data.toString(),legend:t.legend,color:a,xCalloutValue:t.xAxisCalloutData,yCalloutValue:t.yAxisCalloutData,dataPointCalloutProps:t,callOutAccessibilityData:t.callOutAccessibilityData})}},e._onBlur=function(){e.setState({focusedArcId:""})},e._handleChartMouseLeave=function(){e._calloutAnchorPoint=null,e.setState({showHover:!1})},e._isLegendHighlighted=function(t){return e._getHighlightedLegend().includes(t)},e._noLegendsHighlighted=function(){return 0===e._getHighlightedLegend().length},e._addDefaultColors=function(t){return t?t.map((function(t,n){var i,r,u;return u=void 0===t.color?mf(n,0,null===(i=e.props.theme)||void 0===i?void 0:i.isInverted):yf(t.color,null===(r=e.props.theme)||void 0===r?void 0:r.isInverted),(0,o.Cl)((0,o.Cl)({},t),{color:u})})):[]},Js(e),e.state={showHover:!1,value:"",legend:"",_width:e.props.width||200,_height:e.props.height||200,activeLegend:void 0,color:"",xCalloutValue:"",yCalloutValue:"",focusedArcId:"",selectedLegends:(null===(i=n.legendProps)||void 0===i?void 0:i.selectedLegends)||[]},e._hoverCallback=e._hoverCallback.bind(e),e._focusCallback=e._focusCallback.bind(e),e._hoverLeave=e._hoverLeave.bind(e),e._calloutId=g("callout"),e._uniqText=g("_Pie_"),e._emptyChartId=g("_DonutChart_empty"),e}return(0,o.C6)(n,t),n.getDerivedStateFromProps=function(t,n){var i,e;return t.width&&t.width!==n._width&&(i={_width:t.width}),t.height&&t.height!==n._height&&(e={_height:t.height-40}),(0,o.Cl)((0,o.Cl)({},i),e)},n.prototype.componentDidMount=function(){this._rootElem&&this.setState({_width:this._rootElem.offsetWidth,_height:this._rootElem.offsetHeight-40})},n.prototype.componentDidUpdate=function(t){var n,i,e;Is(null===(n=t.legendProps)||void 0===n?void 0:n.selectedLegends,null===(i=this.props.legendProps)||void 0===i?void 0:i.selectedLegends)||this.setState({selectedLegends:(null===(e=this.props.legendProps)||void 0===e?void 0:e.selectedLegends)||[]})},n.prototype.render=function(){var t=this,n=this.props,i=n.data,e=n.hideLegend,r=void 0!==e&&e,a=this._addDefaultColors(null==i?void 0:i.chartData);this._classNames=bf(this.props.styles,{theme:this.props.theme,width:this.state._width,height:this.state._height,color:this.state.color,className:this.props.className});var s=this._createLegends(a),l=this.props.hideLabels?0:80,c=this.props.hideLabels?0:40,f=Math.min(this.state._width-l,this.state._height-c)/2,h=this._elevateToMinimums(a.filter((function(t){return t.data>=0}))),d=0!==this.props.innerRadius?this._valueInsideDonut(this.props.valueInsideDonut,h):"";return this._isChartEmpty()?u.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):u.createElement("div",{className:this._classNames.root,ref:function(n){return t._rootElem=n},onMouseLeave:this._handleChartMouseLeave},u.createElement(bl,{direction:Ws.horizontal,handleTabKey:1},u.createElement("div",null,u.createElement("svg",{className:this._classNames.chart,"aria-label":null==i?void 0:i.chartTitle,ref:function(n){return t._setViewBox(n)}},u.createElement(cf,{width:this.state._width,height:this.state._height,outerRadius:f,innerRadius:this.props.innerRadius,data:h,enableGradient:this.props.enableGradient,roundCorners:this.props.roundCorners,onFocusCallback:this._focusCallback,hoverOnCallback:this._hoverCallback,hoverLeaveCallback:this._hoverLeave,uniqText:this._uniqText,onBlurCallback:this._onBlur,activeArc:this._getHighlightedLegend(),focusedArcId:this.state.focusedArcId||"",href:this.props.href,calloutId:this._calloutId,valueInsideDonut:this._toLocaleString(d),theme:this.props.theme,showLabelsInPercent:this.props.showLabelsInPercent,hideLabels:this.props.hideLabels})))),u.createElement(Kn,(0,o.Cl)({target:this._currentHoverElement,alignTargetEdge:!0,isBeakVisible:!1,directionalHint:x.topAutoEdge,gapSpace:15,hidden:!(!this.props.hideTooltip&&this.state.showHover),id:this._calloutId,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0,shouldUpdateWhenHidden:!0},this.props.calloutProps,Es(this.state.callOutAccessibilityData,"text",!1)),this.props.onRenderCalloutPerDataPoint?this.props.onRenderCalloutPerDataPoint(this.state.dataPointCalloutProps):u.createElement(zs.ChartHoverCard,{Legend:this.state.xCalloutValue?this.state.xCalloutValue:this.state.legend,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.value,color:this.state.color,culture:this.props.culture})),!r&&u.createElement("div",{className:this._classNames.legendContainer},s))},Object.defineProperty(n.prototype,"chartContainer",{get:function(){return this._rootElem},enumerable:!1,configurable:!0}),n.prototype._elevateToMinimums=function(t){var n=0,i=[];return t.forEach((function(t){n+=t.data})),t.forEach((function(t){i.push(.01*n>t.data&&t.data>0?(0,o.Cl)((0,o.Cl)({},t),{data:.01*n,yAxisCalloutData:void 0===t.yAxisCalloutData?t.data.toLocaleString():t.yAxisCalloutData}):t)})),i},n.prototype._setViewBox=function(t){var n,i;if(null!==t){var e=t.parentElement?t.parentElement.clientWidth:this.state._width,r=t.parentElement&&(null===(n=t.parentElement)||void 0===n?void 0:n.offsetHeight)>this.state._height?null===(i=t.parentElement)||void 0===i?void 0:i.offsetHeight:this.state._height,o="0 0 ".concat(e," ").concat(r);t.setAttribute("viewBox",o)}},n.prototype._createLegends=function(t){var n=this,i=t.map((function(t,i){var e,r,o=n.props.enableGradient?(null===(e=t.gradient)||void 0===e?void 0:e[0])||Us(i,0,null===(r=n.props.theme)||void 0===r?void 0:r.isInverted)[0]:t.color;return{title:t.legend,color:o,hoverAction:function(){n._handleChartMouseLeave(),n.setState({activeLegend:t.legend})},onMouseOutAction:function(){n.setState({activeLegend:void 0})}}}));return u.createElement(Ac,(0,o.Cl)({legends:i,centerLegends:!0,overflowProps:this.props.legendsOverflowProps,focusZonePropsInHoverCard:this.props.focusZonePropsForLegendsInHoverCard,overflowText:this.props.legendsOverflowText},this.props.legendProps,{onChange:this._onLegendSelectionChange.bind(this)}))},n.prototype._onLegendSelectionChange=function(t,n,i){var e,r;this.props.legendProps&&(null===(e=this.props.legendProps)||void 0===e?void 0:e.canSelectMultipleLegends)?this.setState({selectedLegends:t}):this.setState({selectedLegends:t.slice(-1)}),(null===(r=this.props.legendProps)||void 0===r?void 0:r.onChange)&&this.props.legendProps.onChange(t,n,i)},n.prototype._hoverLeave=function(){},n.prototype._valueInsideDonut=function(t,n){var i=this,e=this._getHighlightedLegend();if(void 0===t||1!==e.length&&!this.state.showHover){if(e.length>0){var r=0;return n.forEach((function(t){e.includes(t.legend)&&(r+=t.data)})),r}return t}var o=n.find((function(t){return i._isLegendHighlighted(t.legend)}));return o?o.yAxisCalloutData?o.yAxisCalloutData:o.data:t},n.prototype._toLocaleString=function(t){var n=(0,Jn.U)(t,this.props.culture);return n?null==n?void 0:n.toString():t},n.prototype._getHighlightedLegend=function(){return this.state.selectedLegends.length>0?this.state.selectedLegends:this.state.activeLegend?[this.state.activeLegend]:[]},n.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.chartData&&this.props.data.chartData.filter((function(t){return t.data>0})).length>0)},n.defaultProps={innerRadius:0,hideLabels:!0},n}(u.Component),Cf=(0,r.I)(xf,(function(t){var n=t.className,i=t.width,e=t.height;return{root:[t.theme.fonts.medium,"ms-DonutChart",{alignItems:"center",display:"flex",flexDirection:"column",width:"100%",height:"100%"},n],chart:{width:i,height:e,boxSizing:"content-box",overflow:"visible",alignmentAdjust:"center",display:"block"},legendContainer:{paddingTop:"16px",width:"".concat(i,"px")}}}));function wf(t,n){if(t=function(t){let n;for(;n=t.sourceEvent;)t=n;return t}(t),void 0===n&&(n=t.currentTarget),n){var i=n.ownerSVGElement||n;if(i.createSVGPoint){var e=i.createSVGPoint();return e.x=t.clientX,e.y=t.clientY,[(e=e.matrixTransform(n.getScreenCTM().inverse())).x,e.y]}if(n.getBoundingClientRect){var r=n.getBoundingClientRect();return[t.clientX-r.left-n.clientLeft,t.clientY-r.top-n.clientTop]}}return[t.pageX,t.pageY]}function Mf(t){this._context=t}function kf(t){return new Mf(t)}function Sf(t){return t[0]}function Af(t){return t[1]}function Lf(t,n){var i=Vc(!0),e=null,r=kf,o=null,u=Zc(a);function a(a){var s,l,c,f=(a=Lc(a)).length,h=!1;for(null==e&&(o=r(c=u())),s=0;s<=f;++s)!(s<f&&i(l=a[s],s,a))===h&&((h=!h)?o.lineStart():o.lineEnd()),h&&o.point(+t(l,s,a),+n(l,s,a));if(c)return o=null,c+""||null}return t="function"==typeof t?t:void 0===t?Sf:Vc(t),n="function"==typeof n?n:void 0===n?Af:Vc(n),a.x=function(n){return arguments.length?(t="function"==typeof n?n:Vc(+n),a):t},a.y=function(t){return arguments.length?(n="function"==typeof t?t:Vc(+t),a):n},a.defined=function(t){return arguments.length?(i="function"==typeof t?t:Vc(!!t),a):i},a.curve=function(t){return arguments.length?(r=t,null!=e&&(o=r(e)),a):r},a.context=function(t){return arguments.length?(null==t?e=o=null:o=r(e=t),a):e},a}Mf.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,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:this._context.lineTo(t,n)}}};var Vf,Df,Nf,Tf=function(t){function n(i){var e=t.call(this,i)||this;return e._tooltipHost=u.createRef(),e._tooltipHostId=g("tooltip-host"),e.show=function(){e._toggleTooltip(!0)},e.dismiss=function(){e._hideTooltip()},e._getTargetElement=function(){if(e._tooltipHost.current)return e._tooltipHost.current},e._onTooltipFocus=function(t){e._ignoreNextFocusEvent?e._ignoreNextFocusEvent=!1:e._onTooltipMouseEnter(t)},e._onTooltipBlur=function(t){e._ignoreNextFocusEvent=(null===document||void 0===document?void 0:document.activeElement)===t.target,e._dismissTimerId=e._async.setTimeout((function(){e._hideTooltip()}),0)},e._onTooltipMouseEnter=function(t){var i=e.props.delay;if(n._currentVisibleTooltip&&n._currentVisibleTooltip!==e&&n._currentVisibleTooltip.dismiss(),n._currentVisibleTooltip=e,e.state.isOverflowing&&(!t.target||!el(t.target,e._getTargetElement())))if(e._clearDismissTimer(),e._clearOpenTimer(),i!==Cl.zero){var r=e._getDelayTime(i);e._openTimerId=e._async.setTimeout((function(){e._toggleTooltip(!0)}),r)}else e._toggleTooltip(!0)},e._onTooltipMouseLeave=function(t){var i=e.props.closeDelay;e._clearDismissTimer(),e._clearOpenTimer(),i?e._dismissTimerId=e._async.setTimeout((function(){e._toggleTooltip(!1)}),i):e._toggleTooltip(!1),n._currentVisibleTooltip===e&&(n._currentVisibleTooltip=void 0)},e._onTooltipKeyDown=function(t){(t.which===Bt||t.ctrlKey)&&e.state.isTooltipVisible&&(e._hideTooltip(),t.stopPropagation())},e._clearDismissTimer=function(){e._async.clearTimeout(e._dismissTimerId)},e._clearOpenTimer=function(){e._async.clearTimeout(e._openTimerId)},e._hideTooltip=function(){e._clearOpenTimer(),e._clearDismissTimer(),e._toggleTooltip(!1)},e._toggleTooltip=function(t){e.state.isTooltipVisible!==t&&e.setState({isTooltipVisible:t})},e._getDelayTime=function(t){switch(t){case Cl.medium:return 300;case Cl.long:return 500;default:return 0}},e._wrapContent=function(){var t=e.props,n=t.content,i=t.wrapContent,r=t.maxWidth,o=void 0===r?Number.POSITIVE_INFINITY:r,u=t.maxHeight,a=!1;n&&i&&i(n,e._tooltipHostId,o,u)&&(a=!0),e.state.isOverflowing!==a&&e.setState({isOverflowing:a})},e.state={isTooltipVisible:!1,isOverflowing:!1},e._async=new Ft(e),e}return(0,o.C6)(n,t),n.prototype.render=function(){var t=this.props,n=t.content,i=t.tooltipProps,e=t.textProps,r=t.shouldReceiveFocus,a=void 0===r||r,s=this.state.isTooltipVisible,l=(0,o.Cl)({content:n,targetElement:this._getTargetElement(),calloutProps:{onDismiss:this._hideTooltip,onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave},onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave},i),c=!!this.props.isTooltipVisibleProp&&this.state.isOverflowing&&!!n||s&&!!n;return u.createElement(u.Fragment,null,u.createElement("text",(0,o.Cl)({},e,{id:this._tooltipHostId,ref:this._tooltipHost,onFocusCapture:this._onTooltipFocus,onBlurCapture:this._onTooltipBlur,onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave,onKeyDown:this._onTooltipKeyDown,"data-is-focusable":a&&this.state.isOverflowing}),n),c&&u.createElement(kl,(0,o.Cl)({},l)))},n.prototype.componentDidMount=function(){this._wrapContent()},n.prototype.componentDidUpdate=function(t){this.props.maxWidth===t.maxWidth&&this.props.maxHeight===t.maxHeight||this._wrapContent()},n.prototype.componentWillUnmount=function(){n._currentVisibleTooltip&&n._currentVisibleTooltip===this&&(n._currentVisibleTooltip=void 0),this._async.dispose()},n.defaultProps={delay:Cl.medium},n}(u.Component),Ef=(0,a.Z)(),Of=u.lazy((function(){return Promise.resolve().then(i.bind(i,357)).then((function(t){return{default:t.ChartHoverCard}}))})),Pf=[es.HorizontalBarChartWithAxis,es.HeatMapChart],Bf=function(t){function n(n){var i,e,r,a,l,c,f,h,d,v,p,m,y,b,x,C,w,M,k,S,A,L,V,D,N,T,E=t.call(this,n)||this;return E.minLegendContainerHeight=32,E._isRtl=(0,s.jI)(),E._isFirstRender=!0,E.isIntegralDataset=!0,E.calculateMaxYAxisLabelLength=function(t,n,i){return t===es.HeatMapChart?ys(n[0].data.map((function(t){return t.y})),".".concat(i," text")):ys(n.map((function(t){return t.y})),".".concat(i," text"))},E._multiValueCallout=function(t){var n=E._yValueHoverSubCountsExists(t.YValueHover);return u.createElement("div",{className:E._classNames.calloutContentRoot},u.createElement("div",{className:E._classNames.calloutDateTimeContainer,style:n?{marginBottom:"11px"}:{}},u.createElement("div",(0,o.Cl)({className:E._classNames.calloutContentX},Es(t.xAxisCalloutAccessibilityData,"text",!1)),(0,Jn.U)(t.hoverXValue,E.props.culture))),u.createElement("div",{className:E._classNames.calloutInfoContainer,style:n?{display:"flex"}:{}},t.YValueHover&&t.YValueHover.map((function(t,i,e){var r=i+1===e.length,a=t.shouldDrawBorderBottom,s=void 0!==a&&a;return u.createElement("div",(0,o.Cl)({},Es(t.callOutAccessibilityData,"text",!1),{key:"callout-content-".concat(i),style:n?(0,o.Cl)({display:"inline-block"},s&&{borderBottom:"1px solid ".concat(E.props.theme.semanticColors.menuDivider),paddingBottom:"10px"}):(0,o.Cl)({},s&&{borderBottom:"1px solid ".concat(E.props.theme.semanticColors.menuDivider),paddingBottom:"10px"})}),E._getCalloutContent(t,i,n,r))})),!!t.descriptionMessage&&u.createElement("div",{className:E._classNames.descriptionMessage},t.descriptionMessage)))},E._getData=function(t,n){E.props.getGraphData&&E.props.getGraphData(t,n,E.state.containerHeight-E.state._removalValueForTextTuncate,E.state.containerWidth,E.xAxisElement,E.yAxisElement)},E._onChartLeave=function(){E.props.onChartMouseLeave&&E.props.onChartMouseLeave()},E._calculateChartMinWidth=function(){var t=10;if(!E.props.wrapXAxisLables&&E.props.rotateXAxisLables&&E.props.xAxisType===rs.StringAxis){var n=ys(E._tickValues,".".concat(E._classNames.xAxis," text"));t+=Math.ceil(n*Math.cos(Math.PI/4))}else if(E.props.showXAxisLablesTooltip){var i=E._tickValues.map((function(t){var n=E.props.noOfCharsToTruncate||4;return t.toString().length>n?"".concat(t.toString().slice(0,n),"..."):t}));n=ys(i,".".concat(E._classNames.xAxis," text")),t+=Math.ceil(n)}else if(E.props.wrapXAxisLables){var e=[];E._tickValues.forEach((function(t){e.push.apply(e,t.toString().split(/\s+/))})),n=ys(e,".".concat(E._classNames.xAxis," text")),t+=Math.max(Math.ceil(n),10)}else n=ys(E._tickValues,".".concat(E._classNames.xAxis," text")),t+=Math.ceil(n);var r=E.margins.left+E.margins.right+t*(E._tickValues.length-1);return[es.GroupedVerticalBarChart,es.VerticalBarChart,es.VerticalStackedBarChart].includes(E.props.chartType)&&(r+=16),r},E._getChartDescription=function(){return(E.props.chartTitle||"Chart. ")+E._getAxisTitle("X",E.props.xAxisTitle,E.props.xAxisType)+E._getAxisTitle("Y",E.props.yAxisTitle,E.props.yAxisType||os.NumericAxis)+(E.props.secondaryYScaleOptions?E._getAxisTitle("secondary Y",E.props.secondaryYAxistitle,os.NumericAxis):"")},E._getAxisTitle=function(t,n,i){return"The ".concat(t," axis displays ")+(n||(i===rs.StringAxis||i===os.StringAxis?"categories":i===rs.DateAxis||i===os.DateAxis?"time":"values"))+". "},E.state={containerHeight:0,containerWidth:0,_width:E.props.width||600,_height:E.props.height||350,_removalValueForTextTuncate:0,isRemoveValCalculated:!0,startFromX:0},E.idForGraph=g("chart_"),E.titleMargin=8,E.idForDefaultTabbableElement=g("defaultTabbableElement_"),E.margins={top:null!==(e=null===(i=E.props.margins)||void 0===i?void 0:i.top)&&void 0!==e?e:20,bottom:null!==(a=null===(r=E.props.margins)||void 0===r?void 0:r.bottom)&&void 0!==a?a:35,right:E._isRtl?null!==(c=null===(l=E.props.margins)||void 0===l?void 0:l.left)&&void 0!==c?c:40:(null!==(h=null===(f=E.props.margins)||void 0===f?void 0:f.right)&&void 0!==h?h:null===(d=E.props)||void 0===d?void 0:d.secondaryYScaleOptions)?40:20,left:E._isRtl?(null!==(p=null===(v=E.props.margins)||void 0===v?void 0:v.right)&&void 0!==p?p:null===(m=E.props)||void 0===m?void 0:m.secondaryYScaleOptions)?40:20:null!==(b=null===(y=E.props.margins)||void 0===y?void 0:y.left)&&void 0!==b?b:40},void 0!==E.props.xAxisTitle&&""!==E.props.xAxisTitle&&(E.margins.bottom=null!==(C=null===(x=E.props.margins)||void 0===x?void 0:x.bottom)&&void 0!==C?C:55),void 0!==E.props.yAxisTitle&&""!==E.props.yAxisTitle&&(E.margins.left=E._isRtl?(null!==(M=null===(w=E.props.margins)||void 0===w?void 0:w.right)&&void 0!==M?M:null===(k=E.props)||void 0===k?void 0:k.secondaryYAxistitle)?60:40:null!==(A=null===(S=E.props.margins)||void 0===S?void 0:S.left)&&void 0!==A?A:60,E.margins.right=E._isRtl?null!==(V=null===(L=E.props.margins)||void 0===L?void 0:L.left)&&void 0!==V?V:60:(null!==(N=null===(D=E.props.margins)||void 0===D?void 0:D.right)&&void 0!==N?N:null===(T=E.props)||void 0===T?void 0:T.secondaryYAxistitle)?60:40),E}return(0,o.C6)(n,t),n.prototype.componentDidMount=function(){if(this._fitParentContainer(),Pf.includes(this.props.chartType)&&this.props.showYAxisLables&&this.yAxisElement){var t=this.calculateMaxYAxisLabelLength(this.props.chartType,this.props.points,this._classNames.yAxis);this.state.startFromX!==t&&this.setState({startFromX:t})}else 0!==this.state.startFromX&&this.setState({startFromX:0});this.isIntegralDataset=!this.props.points.some((function(t){return t.y%1!=0}))},n.prototype.componentWillUnmount=function(){cancelAnimationFrame(this._reqID)},n.prototype.componentDidUpdate=function(t){if(t.height===this.props.height&&t.width===this.props.width||this._fitParentContainer(),!this.props.wrapXAxisLables&&this.props.rotateXAxisLables&&this.props.xAxisType===rs.StringAxis){var n=function(t){var n=t.node,i=t.xAxis;if(null!==n&&null!==i){var e=0,r=[];ss(n).call(i).selectAll(".tick").each((function(){var t=this.getAttribute("transform");if(-1===(null==t?void 0:t.indexOf("rotate"))){var n=t.substring(t.indexOf("(")+1,t.indexOf(")")).split(",");2===n.length&&(r.push(n[0]),this.setAttribute("transform","translate(".concat(n[0],",0)rotate(-45)")))}var i=this.getBoundingClientRect(),o=i&&i.height;o>e&&(e=o)}));var o=0;return ss(n).call(i).selectAll(".tick").each((function(){r.length>o&&(this.setAttribute("transform","translate(".concat(r[o],",").concat(e/2,")rotate(-45)")),o+=1)})),Math.floor(e/1.414)}}({node:this.xAxisElement,xAxis:this._xScale});this.state.isRemoveValCalculated&&this.state._removalValueForTextTuncate!==n+this.margins.bottom&&n>0&&this.setState({_removalValueForTextTuncate:n+this.margins.bottom,isRemoveValCalculated:!1})}if(Pf.includes(this.props.chartType)&&this.props.showYAxisLables&&this.yAxisElement){var i=this.calculateMaxYAxisLabelLength(this.props.chartType,this.props.points,this._classNames.yAxis);this.state.startFromX!==i&&this.setState({startFromX:i})}else 0!==this.state.startFromX&&this.setState({startFromX:0});t.points!==this.props.points&&(this.isIntegralDataset=!this.props.points.some((function(t){return t.y%1!=0})))},n.prototype.render=function(){var t,n,i,e,r,a,s,l,c,f,h=this,d=this.props,v=d.calloutProps,p=d.points,g=d.chartType,m=d.chartHoverProps,y=d.svgFocusZoneProps,b=d.svgProps,x=d.culture,C=d.dateLocalizeOptions,w=d.timeFormatLocale,M=d.customDateTimeFormatter;this.props.parentRef&&this._fitParentContainer();var k=(0,o.Cl)({},this.margins);Pf.includes(this.props.chartType)&&(this._isRtl?k.right+=this.state.startFromX:k.left+=this.state.startFromX),this.props.getmargins&&this.props.getmargins(k);var S,A,L,V,D,N=null,T=null;if(this.props.enableFirstRenderOptimization&&this.chartContainer||!this.props.enableFirstRenderOptimization){this._isFirstRender=!1;var E={domainNRangeValues:this.props.getDomainNRangeValues(p,this.props.getDomainMargins?this.props.getDomainMargins(this.state.containerWidth):this.margins,this.state.containerWidth,g,this._isRtl,this.props.xAxisType,this.props.barwidth,this.props.tickValues,this.state.startFromX),containerHeight:this.state.containerHeight-this.state._removalValueForTextTuncate,margins:this.margins,xAxisElement:this.xAxisElement,showRoundOffXTickValues:!0,xAxisCount:this.props.xAxisTickCount,xAxistickSize:this.props.xAxistickSize,tickPadding:this.props.tickPadding||this.props.showXAxisLablesTooltip?5:10,xAxisPadding:this.props.xAxisPadding,xAxisInnerPadding:this.props.xAxisInnerPadding,xAxisOuterPadding:this.props.xAxisOuterPadding},O={margins:this.margins,containerWidth:this.state.containerWidth,containerHeight:this.state.containerHeight-this.state._removalValueForTextTuncate,yAxisElement:this.yAxisElement,yAxisTickFormat:this.props.yAxisTickFormat,yAxisTickCount:this.props.yAxisTickCount,yMinValue:this.props.yMinValue||0,yMaxValue:this.props.yMaxValue||0,tickPadding:10,maxOfYVal:this.props.maxOfYVal,yMinMaxValues:this.props.getMinMaxOfYAxis(p,this.props.yAxisType),yAxisPadding:this.props.yAxisPadding||0},P=void 0,B=void 0;switch(this.props.xAxisType){case rs.NumericAxis:P=(t=cs(E,this.props.chartType,x)).xScale,B=t.tickValues;break;case rs.DateAxis:n=function(t,n,i,e,r,o,u){var a,s=t.domainNRangeValues,l=t.xAxisElement,c=t.tickPadding,f=void 0===c?6:c,h=t.xAxistickSize,d=void 0===h?6:h,v=t.xAxisCount,p=void 0===v?6:v,g=u?ju():zu();g.domain([s.dStartValue,s.dEndValue]).range([s.rStartValue,s.rEndValue]);var m=hi(g).tickSize(d).tickPadding(f).ticks(p);if(o)m.tickFormat((function(t,n){return o(t)}));else if(i&&e)m.tickFormat((function(t,n){return t.toLocaleString(i,e)}));else if(r){var y=yo(r);m.tickFormat((function(t,n){return fs(t,y,u)}))}n.tickValues&&m.tickValues(n.tickValues),void 0===i&&n.tickFormat&&m.tickFormat(u?Co(n.tickFormat):xo(n.tickFormat)),l&&ss(l).call(m).selectAll("text").attr("aria-hidden","true");var b=(null!==(a=n.tickValues)&&void 0!==a?a:g.ticks(p)).map((function(t,n){var i=m.tickFormat();return i?i(t,n):fs(t,void 0,u)}));return{xScale:g,tickValues:b}}(E,this.props.tickParams,x,C,w,M,this.props.useUTC),P=n.xScale,B=n.tickValues;break;case rs.StringAxis:i=function(t,n,i,e){var r=t.domainNRangeValues,o=t.xAxisCount,u=void 0===o?6:o,a=t.xAxistickSize,s=void 0===a?6:a,l=t.tickPadding,c=void 0===l?10:l,f=t.xAxisPadding,h=void 0===f?.1:f,d=t.xAxisInnerPadding,v=t.xAxisOuterPadding,p=Uu().domain(i).range([r.rStartValue,r.rEndValue]).paddingInner(void 0!==d?d:h).paddingOuter(void 0!==v?v:h),g=hi(p).tickSize(s).tickPadding(c).ticks(u).tickFormat((function(t,n){return Os(i[n],e)}));return t.xAxisElement&&ss(t.xAxisElement).call(g).selectAll("text").attr("aria-hidden","true"),{xScale:p,tickValues:i.map(g.tickFormat())}}(E,this.props.tickParams,this.props.datasetForXAxisDomain,x),P=i.xScale,B=i.tickValues;break;default:P=(e=cs(E,this.props.chartType,x)).xScale,B=e.tickValues}if(this._xScale=P,this._tickValues=B,this.props.wrapXAxisLables||this.props.showXAxisLablesTooltip){var F={node:this.xAxisElement,xAxis:P,showXAxisLablesTooltip:this.props.showXAxisLablesTooltip||!1,noOfCharsToTruncate:this.props.noOfCharsToTruncate||4},_=P&&function(t){var n=t.node,i=t.xAxis,e=t.noOfCharsToTruncate,r=t.showXAxisLablesTooltip;if(null!==n){var o=ss(n).call(i),u=0,a=[];return o.selectAll(".tick text").each((function(){var t=ss(this),n=t.text(),i="".concat(t.text().slice(0,e),"..."),s=t.text().length,l=t.text().split(/\s+/).reverse();a.push(l.length);var c="",f=[],h=0,d=t.attr("y"),v=parseFloat(t.attr("dy")),p=t.text(null).append("tspan").attr("x",0).attr("y",d).attr("id","BaseSpan").attr("dy",v+"em").attr("data-",n);if(r&&s>e)p=t.append("tspan").attr("id","showDots").attr("x",0).attr("y",d).attr("dy",1.1*++h+v+"em").text(i);else if(r&&s<=e)p=t.append("tspan").attr("id","LessLength").attr("x",0).attr("y",d).attr("dy",1.1*++h+v+"em").text(n);else{for(;c=l.pop();)f.push(c),p.text(f.join(" ")),p.node().getComputedTextLength()>10&&f.length>1&&(f.pop(),p.text(f.join(" ")),f=[c],p=t.append("tspan").attr("id","WordBreakId").attr("x",0).attr("y",d).attr("dy",1.1*++h+v+"em").text(c));var g=Math.max.apply(Math,a),m=12;o.selectAll("text").each((function(){var t=document.getElementById("WordBreakId"),n=t&&t.getBoundingClientRect(),i=n&&n.height;i>m&&(m=i)}));var y=4;g<=2?y=1:g>2&&g<=6?y=2:g>6&&g<=9&&(y=3),u=(g-y)*m}})),u>0?u:0}}(F);this.state.isRemoveValCalculated&&this.state._removalValueForTextTuncate!==_&&this.setState({_removalValueForTextTuncate:_,isRemoveValCalculated:!1})}var H=void 0,R=void 0,I={yAxisDomainValues:[]};if(this.props.yAxisType&&this.props.yAxisType===os.StringAxis)H=this.props.createStringYAxis(O,this.props.stringDatasetForYAxisDomain,this._isRtl,this.props.barwidth);else{if(null===(r=this.props)||void 0===r?void 0:r.secondaryYScaleOptions){var W={margins:this.margins,containerWidth:this.state.containerWidth,containerHeight:this.state.containerHeight-this.state._removalValueForTextTuncate,yAxisElement:this.yAxisElementSecondary,yAxisTickFormat:this.props.yAxisTickFormat,yAxisTickCount:this.props.yAxisTickCount,yMinValue:(null===(a=this.props.secondaryYScaleOptions)||void 0===a?void 0:a.yMinValue)||0,yMaxValue:null!==(l=null===(s=this.props.secondaryYScaleOptions)||void 0===s?void 0:s.yMaxValue)&&void 0!==l?l:100,tickPadding:10,maxOfYVal:null!==(f=null===(c=this.props.secondaryYScaleOptions)||void 0===c?void 0:c.yMaxValue)&&void 0!==f?f:100,yMinMaxValues:this.props.getMinMaxOfYAxis(p,this.props.yAxisType),yAxisPadding:this.props.yAxisPadding};R=R=this.props.createYAxis(W,this._isRtl,I,this.isIntegralDataset,!0,this.props.supportNegativeData)}H=this.props.createYAxis(O,this._isRtl,I,this.isIntegralDataset,!1,this.props.supportNegativeData)}Pf.includes(this.props.chartType)&&H&&(S=this.yAxisElement,A=H,L=this.props.noOfCharsToTruncate||4,V=this.props.showYAxisLablesTooltip||!1,D=this._isRtl,null!==S&&ss(S).call(A).selectAll(".tick text").each((function(){var t=ss(this),n=t.text(),i=D?"...".concat(t.text().slice(0,L)):"".concat(t.text().slice(0,L),"..."),e=t.text().length,r=V?1.5:1,o=t.attr("y"),u=t.attr("x"),a=parseFloat(t.attr("dy"));t.text(null).append("tspan").attr("x",u).attr("y",o).attr("id","BaseSpan").attr("dy",a+"em").attr("data-",n),V&&e>L?t.append("tspan").attr("id","showDots").attr("x",D?0:u).attr("y",o).attr("dy",a).attr("dx",r+0+"em").text(i):t.attr("text-align","start").append("tspan").attr("id","LessLength").attr("x",D?0:u).attr("y",o).attr("dx",r+0+"em").text(n)}))),this.props.getAxisData&&this.props.getAxisData(I),this._getData(P,H),T=this.props.children((0,o.Cl)((0,o.Cl)({},this.state),{xScale:P,yScale:H,yScaleSecondary:R})),!this.props.hideTooltip&&v.isCalloutVisible&&(N=this._generateCallout(v,m))}this._classNames=Ef(this.props.styles,{theme:this.props.theme,width:this.state._width,height:this.state._height,className:this.props.className,isRtl:this._isRtl});var z,j={width:this.state.containerWidth,height:this.state.containerHeight};z=this.props.focusZoneDirection===Ws.vertical||this.props.focusZoneDirection?this.props.focusZoneDirection:Ws.horizontal;var Y=j.width-this.margins.left-this.margins.right-this.state.startFromX,$=j.height-this.margins.bottom-this.margins.top-this.state._removalValueForTextTuncate-this.titleMargin;return u.createElement("div",{id:this.idForGraph,className:this._classNames.root,ref:function(t){return h.chartContainer=t},onMouseLeave:this._onChartLeave},!this._isFirstRender&&u.createElement("div",{id:this.idForDefaultTabbableElement}),u.createElement(bl,(0,o.Cl)({direction:z,className:this._classNames.chartWrapper,defaultTabbableElement:"#".concat(this.idForDefaultTabbableElement)},y),this._isFirstRender&&u.createElement("div",{id:this.idForDefaultTabbableElement}),u.createElement("svg",(0,o.Cl)({width:j.width,height:j.height,role:"region","aria-label":this._getChartDescription(),style:{display:"block"}},Rs(b)),u.createElement("g",{ref:function(t){h.xAxisElement=t},id:"xAxisGElement".concat(this.idForGraph),transform:"translate(0, ".concat(j.height-this.margins.bottom-this.state._removalValueForTextTuncate,")"),className:this._classNames.xAxis}),void 0!==this.props.xAxisTitle&&""!==this.props.xAxisTitle&&u.createElement(Tf,{content:this.props.xAxisTitle,textProps:{x:this.margins.left+this.state.startFromX+Y/2,y:j.height-this.titleMargin,className:this._classNames.axisTitle,textAnchor:"middle","aria-hidden":!0},maxWidth:Y,wrapContent:ms}),u.createElement("g",{ref:function(t){h.yAxisElement=t},id:"yAxisGElement".concat(this.idForGraph),transform:"translate(".concat(this._isRtl?j.width-this.margins.right-this.state.startFromX:this.margins.left+this.state.startFromX,", 0)"),className:this._classNames.yAxis}),this.props.secondaryYScaleOptions&&u.createElement("g",null,u.createElement("g",{ref:function(t){h.yAxisElementSecondary=t},id:"yAxisGElementSecondary".concat(this.idForGraph),transform:"translate(".concat(this._isRtl?this.margins.left:j.width-this.margins.right,", 0)"),className:this._classNames.yAxis}),void 0!==this.props.secondaryYAxistitle&&""!==this.props.secondaryYAxistitle&&u.createElement(Tf,{content:this.props.secondaryYAxistitle,textProps:{x:($-this.margins.bottom)/2+this.state._removalValueForTextTuncate,y:this._isRtl?this.state.startFromX-this.titleMargin:j.width-this.margins.right,textAnchor:"middle",transform:"translate(".concat(this._isRtl?this.margins.right/2-this.titleMargin:this.margins.right/2+this.titleMargin,",\n ").concat(j.height-this.margins.bottom-this.margins.top-this.titleMargin,")rotate(-90)"),className:this._classNames.axisTitle,"aria-hidden":!0},maxWidth:$,wrapContent:ms})),T,void 0!==this.props.yAxisTitle&&""!==this.props.yAxisTitle&&u.createElement(Tf,{content:this.props.yAxisTitle,textProps:{x:($-this.margins.bottom)/2+this.state._removalValueForTextTuncate,y:this._isRtl?j.width-this.margins.right/2+this.titleMargin:this.margins.left/2+this.state.startFromX-this.titleMargin,textAnchor:"middle",transform:"translate(0,\n ".concat(j.height-this.margins.bottom-this.margins.top-this.titleMargin,")rotate(-90)"),className:this._classNames.axisTitle,"aria-hidden":!0},maxWidth:$,wrapContent:ms}))),!this.props.hideLegend&&u.createElement("div",{ref:function(t){return h.legendContainer=t},className:this._classNames.legendContainer},this.props.legendBars),N&&u.createElement(u.Suspense,{fallback:u.createElement("div",null,"Loading...")},N))},n.prototype._generateCallout=function(t,n){return u.createElement(Kn,(0,o.Cl)({hidden:!(!this.props.hideTooltip&&t.isCalloutVisible),shouldUpdateWhenHidden:!0},t),this.props.customizedCallout&&this.props.customizedCallout,!this.props.customizedCallout&&this.props.isCalloutForStack&&this._multiValueCallout(t),!this.props.customizedCallout&&!this.props.isCalloutForStack&&u.createElement(Of,(0,o.Cl)({XValue:t.XValue,Legend:t.legend,YValue:t.YValue,color:t.color,culture:this.props.culture},n)))},n.prototype._yValueHoverSubCountsExists=function(t){return!!t&&t.some((function(t){return t.yAxisCalloutData&&"string"!=typeof t.yAxisCalloutData}))},n.prototype._getCalloutContent=function(t,n,i,e){var r,o=e?{}:{marginRight:"16px"},a=void 0!==t.index&&-1!==t.index,s=Ef(this.props.styles,{theme:this.props.theme,width:this.state._width,height:this.state._height,className:this.props.className,isRtl:this._isRtl,lineColor:t.color,toDrawShape:a}),l=this.props.culture,c=(0,Jn.U)(t.y,l);if(t.yAxisCalloutData&&"string"!=typeof t.yAxisCalloutData){var f=t.yAxisCalloutData;return u.createElement("div",{style:o},u.createElement("div",{className:"ms-fontWeight-semibold",style:{fontSize:"12pt"}},t.legend," (",c,")"),Object.keys(f).map((function(t){return u.createElement("div",{key:t,className:s.calloutBlockContainer},u.createElement("div",{className:s.calloutlegendText}," ",(0,Jn.U)(t,l)),u.createElement("div",{className:s.calloutContentY},(0,Jn.U)(f[t],l)))})))}return u.createElement("div",{style:i?o:{}},i&&u.createElement("div",{className:"ms-fontWeight-semibold",style:{fontSize:"12pt"}},t.legend," (",c,")"),u.createElement("div",{id:"".concat(n,"_").concat(t.y),className:s.calloutBlockContainer},a&&u.createElement(Mc,{svgProps:{className:s.shapeStyles},pathProps:{fill:t.color},shape:Vs[t.index%Object.keys(Ts).length]}),u.createElement("div",null,u.createElement("div",{className:s.calloutlegendText}," ",t.legend),u.createElement("div",{className:s.calloutContentY},(0,Jn.U)(t.yAxisCalloutData?t.yAxisCalloutData:null!==(r=t.y)&&void 0!==r?r:t.data,l)))))},n.prototype._fitParentContainer=function(){var t=this,n=this.state,i=n.containerWidth,e=n.containerHeight;this._reqID=requestAnimationFrame((function(){var n;if(t.props.hideLegend)n=0;else{var r=t.legendContainer&&getComputedStyle(t.legendContainer);n=(t.legendContainer&&t.legendContainer.getBoundingClientRect().height||t.minLegendContainerHeight)+parseFloat(r&&r.marginTop||"0")+parseFloat(r&&r.marginBottom||"0")}if(t.props.parentRef||t.chartContainer){var o=t.props.parentRef?t.props.parentRef:t.chartContainer,u=t.props.enableReflow&&!t._isFirstRender?Math.max(o.getBoundingClientRect().width,t._calculateChartMinWidth()):o.getBoundingClientRect().width,a=o.getBoundingClientRect().height>n?o.getBoundingClientRect().height:350;(i!==u||e!==a-n)&&t.setState({containerWidth:u,containerHeight:a-n})}}))},n}(u.Component);!function(t){t.shade30="#004578",t.shade20="#005a9e",t.shade10="#106ebe",t.primary="#0078d4",t.tint10="#2b88d8",t.tint20="#c7e0f4",t.tint30="#deecf9",t.tint40="#eff6fc"}(Vf||(Vf={})),function(t){t.black="#000000",t.gray220="#11100f",t.gray210="#161514",t.gray200="#1b1a19",t.gray190="#201f1e",t.gray180="#252423",t.gray170="#292827",t.gray160="#323130",t.gray150="#3b3a39",t.gray140="#484644",t.gray130="#605e5c",t.gray120="#797775",t.gray110="#8a8886",t.gray100="#979593",t.gray90="#a19f9d",t.gray80="#b3b0ad",t.gray70="#bebbb8",t.gray60="#c8c6c4",t.gray50="#d2d0ce",t.gray40="#e1dfdd",t.gray30="#edebe9",t.gray20="#f3f2f1",t.gray10="#faf9f8",t.white="#ffffff"}(Df||(Df={})),function(t){t.pinkRed10="#750b1c",t.red20="#a4262c",t.red10="#d13438",t.redOrange20="#603d30",t.redOrange10="#da3b01",t.orange30="#8e562e",t.orange20="#ca5010",t.orange10="#ffaa44",t.yellow10="#fce100",t.orangeYellow20="#986f0b",t.orangeYellow10="#c19c00",t.yellowGreen10="#8cbd18",t.green20="#0b6a0b",t.green10="#498205",t.greenCyan10="#00ad56",t.cyan40="#005e50",t.cyan30="#005b70",t.cyan20="#038387",t.cyan10="#00b7c3",t.cyanBlue20="#004e8c",t.cyanBlue10="#0078d4",t.blue10="#4f6bed",t.blueMagenta40="#373277",t.blueMagenta30="#5c2e91",t.blueMagenta20="#8764b8",t.blueMagenta10="#8378de",t.magenta20="#881798",t.magenta10="#c239b3",t.magentaPink20="#9b0062",t.magentaPink10="#e3008c",t.gray40="#393939",t.gray30="#7a7574",t.gray20="#69797e",t.gray10="#a0aeb2"}(Nf||(Nf={}));var Ff=function(){var t,n=(0,l.z)();return!!(null===(t=null==n?void 0:n.navigator)||void 0===t?void 0:t.userAgent)&&n.navigator.userAgent.indexOf("rv:11.0")>-1}(),_f=(0,r.I)(Bf,(function(t){var n,i,e,r,u,a,s,l,c=t.className,f=t.theme,h=t.isRtl,d=t.shouldHighlight,v=t.href,p=t.lineColor,g=void 0===p?"transparent":p,m=t.toDrawShape,y=f.fonts;return{root:[f.fonts.medium,{display:"flex",width:"100%",height:"100%",flexDirection:"column",overflow:"hidden"},c],chartWrapper:{overflow:"auto"},axisTitle:[f.fonts.xSmall,{textAlign:"center",fontWeight:$t.BO.semibold,fontStyle:"normal",lineHeight:$t.s.medium,color:Df.gray160,fill:f.semanticColors.bodyText}],xAxis:{selectors:{text:[f.fonts.tiny,{fill:f.semanticColors.bodyText,fontWeight:"600",selectors:(n={},n[$t.NK]={fill:"rgb(179, 179, 179)"},n)}],line:{opacity:.2,stroke:f.semanticColors.bodyText,width:"1px",selectors:(i={},i[$t.NK]={opacity:.1,stroke:"rgb(179, 179, 179)"},i)},path:{display:"none"}}},yAxis:{selectors:{text:[f.fonts.tiny,{fill:f.semanticColors.bodyText,fontWeight:"600",selectors:(e={},e[$t.NK]={fill:"rgb(179, 179, 179)"},e)}],path:{display:"none"},line:{opacity:.2,stroke:f.semanticColors.bodyText,selectors:(r={},r[$t.NK]={opacity:.1,stroke:"rgb(179, 179, 179)"},r)},g:[h&&!Ff&&{textAnchor:"end"}]}},opacityChangeOnHover:{opacity:d?"":"0.1",cursor:v?"pointer":"default"},legendContainer:[{marginTop:"8px",marginLeft:"20px"}],calloutContentRoot:[{display:"grid",overflow:"hidden",padding:"11px 16px 10px 16px",backgroundColor:f.semanticColors.bodyBackground,backgroundBlendMode:"normal, luminosity"}],calloutDateTimeContainer:{display:"flex",flexDirection:"row",justifyContent:"space-between"},calloutContentX:[(0,o.Cl)((0,o.Cl)({},y.small),{lineHeight:"16px",opacity:"0.85",color:f.semanticColors.bodySubtext})],calloutBlockContainer:[f.fonts.mediumPlus,{marginTop:"13px",color:f.semanticColors.bodyText},!m&&{selectors:(u={},u[$t.up]={forcedColorAdjust:"none"},u),borderLeft:"4px solid ".concat(g),paddingLeft:"8px"},m&&{display:"flex"}],shapeStyles:{marginRight:"8px"},calloutlegendText:(0,o.Cl)((0,o.Cl)({},y.small),{lineHeight:"16px",selectors:(a={},a[$t.NK]={color:"rgb(255, 255, 255)"},a),color:f.semanticColors.bodySubtext}),calloutContentY:[(0,o.Cl)((0,o.Cl)({},y.mediumPlus),{fontWeight:"bold",lineHeight:"22px",selectors:(s={},s[$t.NK]={color:"rgb(255, 255, 255)"},s)})],descriptionMessage:[f.fonts.small,{selectors:(l={},l[$t.NK]={color:"rgb(255, 255, 255)"},l),color:f.semanticColors.bodyText,marginTop:"10px",paddingTop:"10px",borderTop:"1px solid ".concat(f.semanticColors.menuDivider)}]}})),Hf=(0,dn.J5)((function(t){return(0,dn.J5)((function(n){var i=(0,dn.J5)((function(t){return function(i){return n(i,t)}}));return function(e,r){return t(e,r?i(r):n)}}))}));function Rf(t,n){return Hf(t)(n)}var If=function(t){if(void 0===t)return 0;var n=0;return"scrollTop"in t?n=t.scrollTop:"scrollY"in t&&(n=t.scrollY),Math.ceil(n)},Wf=function(t,n){"scrollTop"in t?t.scrollTop=n:"scrollY"in t&&t.scrollTo(t.scrollX,n)},zf="spacer-",jf={top:-1,bottom:-1,left:-1,right:-1,width:0,height:0},Yf=function(t){return t.getBoundingClientRect()},$f=Yf,Xf=Yf,Gf=function(t){function n(n){var i=t.call(this,n)||this;return i._root=u.createRef(),i._surface=u.createRef(),i._pageRefs={},i._getDerivedStateFromProps=function(t,n){return t.items!==i.props.items||t.renderCount!==i.props.renderCount||t.startIndex!==i.props.startIndex||t.version!==i.props.version||!n.hasMounted&&i.props.renderEarly&&(0,Bn.S)()?(i._resetRequiredWindows(),i._requiredRect=null,i._measureVersion++,i._invalidatePageCache(),i._updatePages(t,n)):n},i._onRenderRoot=function(t){var n=t.rootRef,i=t.surfaceElement,e=t.divProps;return u.createElement("div",(0,o.Cl)({ref:n},e),i)},i._onRenderSurface=function(t){var n=t.surfaceRef,i=t.pageElements,e=t.divProps;return u.createElement("div",(0,o.Cl)({ref:n},e),i)},i._onRenderPage=function(t,n){for(var e,r=i.props,a=r.onRenderCell,s=r.onRenderCellConditional,l=r.role,c=t.page,f=c.items,h=void 0===f?[]:f,d=c.startIndex,v=(0,o.Tt)(t,["page"]),p=void 0===l?"listitem":"presentation",g=[],m=0;m<h.length;m++){var y=d+m,b=h[m],x=i.props.getKey?i.props.getKey(b,y):b&&b.key;null==x&&(x=y);var C=null!=s?s:a,w=null!==(e=null==C?void 0:C(b,y,i.props.ignoreScrollingState?void 0:i.state.isScrolling))&&void 0!==e?e:null;s&&!w||g.push(u.createElement("div",{role:p,className:"ms-List-cell",key:x,"data-list-index":y,"data-automationid":"ListCell"},w))}return u.createElement("div",(0,o.Cl)({},v),g)},Js(i),i.state={pages:[],isScrolling:!1,getDerivedStateFromProps:i._getDerivedStateFromProps,hasMounted:!1},i._estimatedPageHeight=0,i._totalEstimates=0,i._requiredWindowsAhead=0,i._requiredWindowsBehind=0,i._measureVersion=0,i._cachedPageHeights={},i._estimatedPageHeight=0,i._focusedIndex=-1,i._pageCache={},i}return(0,o.C6)(n,t),n.getDerivedStateFromProps=function(t,n){return n.getDerivedStateFromProps(t,n)},Object.defineProperty(n.prototype,"pageRefs",{get:function(){return this._pageRefs},enumerable:!1,configurable:!0}),n.prototype.scrollToIndex=function(t,n,i){void 0===i&&(i=0);for(var e=this.props.startIndex,r=e+this._getRenderCount(),o=this._allowedRect,u=0,a=1,s=e;s<r;s+=a){var l=this._getPageSpecification(this.props,s,o),c=l.height;if(a=l.itemCount,s<=t&&s+a>t){if(n&&this._scrollElement){for(var f=Xf(this._scrollElement),h=If(this._scrollElement),d={top:h,bottom:h+f.height},v=t-s,p=0;p<v;++p)u+=n(s+p);var g=u+n(t);switch(i){case 1:return void Wf(this._scrollElement,u);case 2:return void Wf(this._scrollElement,g-f.height);case 3:return void Wf(this._scrollElement,(u+g-f.height)/2)}if(u>=d.top&&g<=d.bottom)return;u<d.top||g>d.bottom&&(u=g-f.height)}return void(this._scrollElement&&Wf(this._scrollElement,u))}u+=c}},n.prototype.getStartItemIndexInView=function(t){for(var n=0,i=this.state.pages||[];n<i.length;n++){var e=i[n];if(!e.isSpacer&&(this._scrollTop||0)>=e.top&&(this._scrollTop||0)<=e.top+e.height){if(!t){var r=Math.floor(e.height/e.itemCount);return e.startIndex+Math.floor((this._scrollTop-e.top)/r)}for(var o=0,u=e.startIndex;u<e.startIndex+e.itemCount;u++){if(r=t(u),e.top+o<=this._scrollTop&&this._scrollTop<e.top+o+r)return u;o+=r}}}return 0},n.prototype.componentDidMount=function(){this._async=new Ft(this),this._events=new Fl(this),this._onAsyncScrollDebounced=this._async.debounce(this._onAsyncScroll,100,{leading:!1,maxWait:500}),this._onAsyncIdleDebounced=this._async.debounce(this._onAsyncIdle,200,{leading:!1}),this._onAsyncResizeDebounced=this._async.debounce(this._onAsyncResize,16,{leading:!1}),this._onScrollingDoneDebounced=this._async.debounce(this._onScrollingDone,500,{leading:!1}),this._scrollElement=et(this._root.current),this._scrollTop=0,this.setState((0,o.Cl)((0,o.Cl)({},this._updatePages(this.props,this.state)),{hasMounted:!0})),this._measureVersion++;var t=function(t){var n;return null!==(n=null==t?void 0:t.window)&&void 0!==n?n:"undefined"!=typeof window?window:void 0}(this.context);this._events.on(t,"resize",this._onAsyncResizeDebounced),this._root.current&&this._events.on(this._root.current,"focus",this._onFocus,!0),this._scrollElement&&(this._events.on(this._scrollElement,"scroll",this._onScroll),this._events.on(this._scrollElement,"scroll",this._onAsyncScrollDebounced))},n.prototype.componentDidUpdate=function(t,n){var i=this.props,e=this.state;this.state.pagesVersion!==n.pagesVersion&&(i.getPageHeight?this._onAsyncIdleDebounced():this._updatePageMeasurements(e.pages)?(this._materializedRect=null,this._hasCompletedFirstRender?this._onAsyncScrollDebounced():(this._hasCompletedFirstRender=!0,this.setState(this._updatePages(i,e)))):this._onAsyncIdleDebounced(),i.onPagesUpdated&&i.onPagesUpdated(e.pages))},n.prototype.componentWillUnmount=function(){var t,n;null===(t=this._async)||void 0===t||t.dispose(),null===(n=this._events)||void 0===n||n.dispose(),delete this._scrollElement},n.prototype.shouldComponentUpdate=function(t,n){var i=this.state.pages,e=n.pages,r=!1;if(!n.isScrolling&&this.state.isScrolling)return!0;if(t.version!==this.props.version)return!0;if(t.className!==this.props.className)return!0;if(t.items===this.props.items&&i.length===e.length)for(var o=0;o<i.length;o++){var u=i[o],a=e[o];if(u.key!==a.key||u.itemCount!==a.itemCount){r=!0;break}}else r=!0;return r},n.prototype.forceUpdate=function(){this._invalidatePageCache(),this._updateRenderRects(this.props,this.state,!0),this.setState(this._updatePages(this.props,this.state)),this._measureVersion++,t.prototype.forceUpdate.call(this)},n.prototype.getTotalListHeight=function(){return this._surfaceRect.height},n.prototype.render=function(){for(var t=this.props,n=t.className,i=t.role,e=void 0===i?"list":i,r=t.onRenderSurface,u=t.onRenderRoot,a=this.state.pages,s=void 0===a?[]:a,l=[],c=q(this.props,G),f=0,h=s;f<h.length;f++){var d=h[f];l.push(this._renderPage(d))}var v=r?Rf(r,this._onRenderSurface):this._onRenderSurface;return(u?Rf(u,this._onRenderRoot):this._onRenderRoot)({rootRef:this._root,pages:s,surfaceElement:v({surfaceRef:this._surface,pages:s,pageElements:l,divProps:{role:"presentation",className:"ms-List-surface"}}),divProps:(0,o.Cl)((0,o.Cl)({},c),{className:U("ms-List",n),role:l.length>0?e:void 0,"aria-label":l.length>0?c["aria-label"]:void 0})})},n.prototype._shouldVirtualize=function(t){void 0===t&&(t=this.props);var n=t.onShouldVirtualize;return!n||n(t)},n.prototype._invalidatePageCache=function(){this._pageCache={}},n.prototype._renderPage=function(t){var n,i=this,e=this.props.usePageCache;if(e&&(n=this._pageCache[t.key])&&n.pageElement)return n.pageElement;var r=this._getPageStyle(t),o=this.props.onRenderPage,u=(void 0===o?this._onRenderPage:o)({page:t,className:"ms-List-page",key:t.key,ref:function(n){i._pageRefs[t.key]=n},style:r,role:"presentation"},this._onRenderPage);return e&&0===t.startIndex&&(this._pageCache[t.key]={page:t,pageElement:u}),u},n.prototype._getPageStyle=function(t){var n=this.props.getPageStyle;return(0,o.Cl)((0,o.Cl)({},n?n(t):{}),t.items?{}:{height:t.height})},n.prototype._onFocus=function(t){for(var n=t.target;n!==this._surface.current;){var i=n.getAttribute("data-list-index");if(i){this._focusedIndex=Number(i);break}n=C(n)}},n.prototype._onScroll=function(){this.state.isScrolling||this.props.ignoreScrollingState||this.setState({isScrolling:!0}),this._resetRequiredWindows(),this._onScrollingDoneDebounced()},n.prototype._resetRequiredWindows=function(){this._requiredWindowsAhead=0,this._requiredWindowsBehind=0},n.prototype._onAsyncScroll=function(){var t,n;this._updateRenderRects(this.props,this.state),this._materializedRect&&(t=this._requiredRect,n=this._materializedRect,t.top>=n.top&&t.left>=n.left&&t.bottom<=n.bottom&&t.right<=n.right)||this.setState(this._updatePages(this.props,this.state))},n.prototype._onAsyncIdle=function(){var t=this.props,n=t.renderedWindowsAhead,i=t.renderedWindowsBehind,e=this._requiredWindowsAhead,r=this._requiredWindowsBehind,o=Math.min(n,e+1),u=Math.min(i,r+1);o===e&&u===r||(this._requiredWindowsAhead=o,this._requiredWindowsBehind=u,this._updateRenderRects(this.props,this.state),this.setState(this._updatePages(this.props,this.state))),(n>o||i>u)&&this._onAsyncIdleDebounced()},n.prototype._onScrollingDone=function(){this.props.ignoreScrollingState||(this.setState({isScrolling:!1}),this._onAsyncIdle())},n.prototype._onAsyncResize=function(){this.forceUpdate()},n.prototype._updatePages=function(t,n){this._requiredRect||this._updateRenderRects(t,n);var i=this._buildPages(t,n),e=n.pages;return this._notifyPageChanges(e,i.pages,this.props),(0,o.Cl)((0,o.Cl)((0,o.Cl)({},n),i),{pagesVersion:{}})},n.prototype._notifyPageChanges=function(t,n,i){var e=i.onPageAdded,r=i.onPageRemoved;if(e||r){for(var o={},u=0,a=t;u<a.length;u++)(c=a[u]).items&&(o[c.startIndex]=c);for(var s=0,l=n;s<l.length;s++){var c;(c=l[s]).items&&(o[c.startIndex]?delete o[c.startIndex]:this._onPageAdded(c))}for(var f in o)o.hasOwnProperty(f)&&this._onPageRemoved(o[f])}},n.prototype._updatePageMeasurements=function(t){var n=!1;if(!this._shouldVirtualize())return n;for(var i=0;i<t.length;i++){var e=t[i];e.items&&(n=this._measurePage(e)||n)}return n},n.prototype._measurePage=function(t){var n=!1,i=this._pageRefs[t.key],e=this._cachedPageHeights[t.startIndex];if(i&&this._shouldVirtualize()&&(!e||e.measureVersion!==this._measureVersion)){var r={width:i.clientWidth,height:i.clientHeight};(r.height||r.width)&&(n=t.height!==r.height,t.height=r.height,this._cachedPageHeights[t.startIndex]={height:r.height,measureVersion:this._measureVersion},this._estimatedPageHeight=Math.round((this._estimatedPageHeight*this._totalEstimates+r.height)/(this._totalEstimates+1)),this._totalEstimates++)}return n},n.prototype._onPageAdded=function(t){var n=this.props.onPageAdded;n&&n(t)},n.prototype._onPageRemoved=function(t){var n=this.props.onPageRemoved;n&&n(t)},n.prototype._buildPages=function(t,n){var i=t.renderCount,e=t.items,r=t.startIndex,u=t.getPageHeight;i=this._getRenderCount(t);for(var a=(0,o.Cl)({},jf),s=[],l=1,c=0,f=null,h=this._focusedIndex,d=r+i,v=this._shouldVirtualize(t),p=0===this._estimatedPageHeight&&!u,g=this._allowedRect,m=function(i){var o=b._getPageSpecification(t,i,g),u=o.height,m=o.data,x=o.key;l=o.itemCount;var C,w,M=c+u-1,k=y(n.pages,(function(t){return!!t.items&&t.startIndex===i}))>-1,S=!g||M>=g.top&&c<=g.bottom,A=!b._requiredRect||M>=b._requiredRect.top&&c<=b._requiredRect.bottom;if(!p&&(A||S&&k)||!v||h>=i&&h<i+l||i===r){f&&(s.push(f),f=null);var L=Math.min(l,d-i),V=b._createPage(x,e.slice(i,i+L),i,void 0,void 0,m);V.top=c,V.height=u,b._visibleRect&&b._visibleRect.bottom&&(V.isVisible=M>=b._visibleRect.top&&c<=b._visibleRect.bottom),s.push(V),A&&b._allowedRect&&(C=a,w={top:c,bottom:M,height:u,left:g.left,right:g.right,width:g.width},C.top=w.top<C.top||-1===C.top?w.top:C.top,C.left=w.left<C.left||-1===C.left?w.left:C.left,C.bottom=w.bottom>C.bottom||-1===C.bottom?w.bottom:C.bottom,C.right=w.right>C.right||-1===C.right?w.right:C.right,C.width=C.right-C.left+1,C.height=C.bottom-C.top+1)}else f||(f=b._createPage(zf+i,void 0,i,0,void 0,m,!0)),f.height=(f.height||0)+(M-c)+1,f.itemCount+=l;if(c+=M-c+1,p&&v)return"break"},b=this,x=r;x<d&&"break"!==m(x);x+=l);return f&&(f.key=zf+"end",s.push(f)),this._materializedRect=a,(0,o.Cl)((0,o.Cl)({},n),{pages:s,measureVersion:this._measureVersion})},n.prototype._getPageSpecification=function(t,n,i){var e=t.getPageSpecification;if(e){var r=e(n,i,t.items),o=r.itemCount,u=void 0===o?this._getItemCountForPage(n,i):o,a=r.height;return{itemCount:u,height:void 0===a?this._getPageHeight(n,i,u):a,data:r.data,key:r.key}}return{itemCount:u=this._getItemCountForPage(n,i),height:this._getPageHeight(n,i,u)}},n.prototype._getPageHeight=function(t,n,i){if(this.props.getPageHeight)return this.props.getPageHeight(t,n,i,this.props.items);var e=this._cachedPageHeights[t];return e?e.height:this._estimatedPageHeight||30},n.prototype._getItemCountForPage=function(t,n){return(this.props.getItemCountForPage?this.props.getItemCountForPage(t,n):10)||10},n.prototype._createPage=function(t,n,i,e,r,o,u){void 0===i&&(i=-1),void 0===e&&(e=n?n.length:0),void 0===r&&(r={}),t=t||"page-"+i;var a=this._pageCache[t];return a&&a.page?a.page:{key:t,startIndex:i,itemCount:e,items:n,style:r,top:0,height:0,data:o,isSpacer:u||!1}},n.prototype._getRenderCount=function(t){var n=t||this.props,i=n.items,e=n.startIndex,r=n.renderCount;return void 0===r?i?i.length-e:0:r},n.prototype._updateRenderRects=function(t,n,i){var e=t.renderedWindowsAhead,r=t.renderedWindowsBehind,u=n.pages;if(this._shouldVirtualize(t)){var a=this._surfaceRect||(0,o.Cl)({},jf),s=function(t){if(void 0===t)return 0;var n=0;return"scrollHeight"in t?n=t.scrollHeight:"document"in t&&(n=t.document.documentElement.scrollHeight),n}(this._scrollElement),c=If(this._scrollElement);this._surface.current&&(i||!u||!this._surfaceRect||!s||s!==this._scrollHeight||Math.abs(this._scrollTop-c)>.3333333333333333*this._estimatedPageHeight)&&(a=this._surfaceRect=$f(this._surface.current),this._scrollTop=c),!i&&s&&s===this._scrollHeight||this._measureVersion++,this._scrollHeight=s||0;var f=Math.max(0,-a.top),h=(0,l.z)(this._root.current),d={top:f,left:a.left,bottom:f+h.innerHeight,right:a.right,width:a.width,height:h.innerHeight};this._requiredRect=qf(d,this._requiredWindowsBehind,this._requiredWindowsAhead),this._allowedRect=qf(d,r,e),this._visibleRect=d}},n.defaultProps={startIndex:0,onRenderCell:function(t,n,i){return u.createElement(u.Fragment,null,t&&t.name||"")},onRenderCellConditional:void 0,renderedWindowsAhead:2,renderedWindowsBehind:2},n.contextType=It,n}(u.Component);function qf(t,n,i){var e=t.top-n*t.height,r=t.height+(n+i)*t.height;return{top:e,bottom:e+r,height:r,left:t.left,right:t.right,width:t.width}}var Uf,Zf=function(t){var n=u.useRef(null);u.useEffect((function(){if(n.current){var i=ss(n.current),e=t.text.split(/\s+/),r=[],o=i.append("tspan"),u=0;return e.forEach((function(n){r.push(n),o.text(r.join(" "));var e=o.node();e&&e.getComputedTextLength()>t.width&&r.length>1&&(u++,r.pop(),o.text(r.join(" ")),r=[n],o=i.append("tspan").text(n).attr("dy",t.lineHeight).attr("x",t.x))})),i.attr("dy",-u*t.lineHeight),function(){i.selectAll("tspan").remove()}}})),t.lineHeight;var i=(0,o.Tt)(t,["lineHeight"]);return u.createElement("text",(0,o.Cl)({ref:n},Rs(i)))},Kf=function(t){var n,i,e,r=u.useRef(null),o=u.useState(!1),a=o[0],s=o[1],l=null;if(a){var c=t.labelDef.aggregatedIdx.map((function(n){return t.lineDefs[n].onRenderCard})).filter((function(t){return!!t}));c.length>0&&(l=u.createElement(Kn,{target:r.current,onDismiss:function(){return s(!1)},setInitialFocus:!0,role:"dialog"},u.createElement(bl,{isCircularNavigation:!0,direction:Ws.vertical},u.createElement(Gf,{items:c,role:"alert","aria-roledescription":" ",onRenderCell:function(t){return u.createElement("div",{"data-is-focusable":!0},t&&t())}}))))}var f=t.textColor?yf(t.textColor,null===(n=t.theme)||void 0===n?void 0:n.isInverted):null===(i=t.theme)||void 0===i?void 0:i.semanticColors.messageText;return e=1===t.labelDef.aggregatedIdx.length?t.lineDefs[t.labelDef.aggregatedIdx[0]].event:t.mergedLabel(t.labelDef.aggregatedIdx.length),u.createElement(u.Fragment,null,u.createElement("g",{ref:r,onClick:function(){return s(!0)},"data-is-focusable":!0,style:{cursor:"pointer"}},u.createElement(Zf,{text:e,x:t.labelDef.x,y:t.textY,width:t.textWidth,lineHeight:t.textLineHeight,textAnchor:t.labelDef.anchor,fontSize:t.textFontSize,fill:f})),l)},Jf=function(t){var n,i,e=t.labelWidth?t.labelWidth:105,r=t.chartYTop-20,a=r+7,s=t.scale.range(),l=t.events.map((function(n){return(0,o.Cl)((0,o.Cl)({},n),{x:t.scale(n.date)})}));l.sort((function(t,n){return+t.date-+n.date}));var c=t.strokeColor?yf(t.strokeColor,null===(n=t.theme)||void 0===n?void 0:n.isInverted):null===(i=t.theme)||void 0===i?void 0:i.palette.black,f=function(t,n){for(var i=[],e=[],r=0,o=t;r<o.length;r++){var u=o[r],a=n(u);-1===i.indexOf(a)&&(e.push(u),i.push(a))}return e}(l,(function(t){return t.date.toString()})).map((function(n,i){return u.createElement("line",{key:i,x1:n.x,x2:n.x,y1:a,y2:t.chartYBottom,stroke:c,strokeDasharray:"8"})})),h=function(t,n,i,e){var r=function(e,r){if(r===t.length)return[];var u=t[r].x,a=u-n;return u<e?[]:r===t.length-1?e<a?[{x:u,anchor:"end",aggregatedIdx:[r]}]:u+n<i?[{x:u,anchor:"start",aggregatedIdx:[r]}]:[]:o(r,e<a?"end":"start")},o=function(e,o){var u="end"===o?t[e].x:t[e].x+n,a=y(t,(function(t){return t.x>u&&(t.x-n>=u||t.x+n<i)}),e+1);-1===a&&(a=t.length);for(var s=[],l=e;l<a;l++)s.push(l);var c=r(u,a);return c.unshift({x:t[e].x,anchor:o,aggregatedIdx:s}),c};return r(e,0)}(l,e+5,s[1],s[0]).map((function(n,i){return u.createElement(Kf,{key:i,theme:t.theme,lineDefs:l,labelDef:n,textY:r,textWidth:e,textLineHeight:18,textFontSize:"10pt",textColor:t.labelColor,mergedLabel:t.mergedLabel})}));return u.createElement(u.Fragment,null,f,h)},Qf=(0,a.Z)();!function(t){t[t.hoverSize=11]="hoverSize",t[t.invisibleSize=1]="invisibleSize"}(Uf||(Uf={}));var th=Si((function(t){return t.x})).left,nh=function(t){function n(n){var i,e,r,a,l,c=t.call(this,n)||this;return c._xAxisScale="",c._yAxisScale="",c.eventLabelHeight=36,c._isRTL=(0,s.jI)(),c._getDomainNRangeValues=function(t,n,i,e,r,o,u,a,s){return o===rs.NumericAxis?Cs(t,n,i,r):o===rs.DateAxis?Ms(t,n,i,r,a,e):{dStartValue:0,dEndValue:0,rStartValue:0,rEndValue:0}},c._injectIndexPropertyInLineChartData=function(t,n){void 0===n&&(n=!1);var i=c.props.allowMultipleShapesForPoints,e=void 0!==i&&i,r=n?null==t?void 0:t.filter((function(t){var n,i,e;return(null===(i=null===(n=c.props.legendProps)||void 0===n?void 0:n.selectedLegends)||void 0===i?void 0:i.includes(t.legend))||(null===(e=c.props.legendProps)||void 0===e?void 0:e.selectedLegend)===t.legend})):t;return r?r.map((function(t,n){var i,r,u;return u=void 0===t.color?mf(n,0,null===(i=c.props.theme)||void 0===i?void 0:i.isInverted):yf(t.color,null===(r=c.props.theme)||void 0===r?void 0:r.isInverted),(0,o.Cl)((0,o.Cl)({},t),{index:e?n:-1,color:u})})):[]},c._getCustomizedCallout=function(){return c.props.onRenderCalloutPerStack?c.props.onRenderCalloutPerStack(c.state.stackCalloutProps):c.props.onRenderCalloutPerDataPoint?c.props.onRenderCalloutPerDataPoint(c.state.dataPointCalloutProps):null},c._getMargins=function(t){c.margins=t},c._initializeLineChartData=function(t,n,i,e,r){c._xAxisScale=t,c._yAxisScale=n,c._renderedColorFillBars=c.props.colorFillBars?c._createColorFillBars(i):[],c.lines=c._createLines(r,i)},c._handleSingleLegendSelectionAction=function(t){c.state.selectedLegend===t.legend?(c.setState({selectedLegend:""}),c._handleLegendClick(t,null)):(c.setState({selectedLegend:t.legend}),c._handleLegendClick(t,t.legend))},c._onHoverCardHide=function(){c.setState({selectedLegendPoints:[],selectedColorBarLegend:[],isSelectedLegend:!1})},c._closeCallout=function(){c.setState({isCalloutVisible:!1})},c._getBoxWidthOfShape=function(t,n,i){var e=c.props,r=e.allowMultipleShapesForPoints,o=void 0!==r&&r,u=e.strokeWidth,a=void 0===u?4:u,s=c.state.activePoint;return o?s===t?Uf.hoverSize:1===n||i?2.5*a:Uf.invisibleSize:s===t?Uf.hoverSize:Uf.invisibleSize},c._getPath=function(t,n,i,e,r,o){var u=c.props.allowMultipleShapesForPoints,a=void 0!==u&&u,s=c._getBoxWidthOfShape(i,e,r),l=a?o%Object.keys(Ts).length:0,f=Ts[l].widthRatio;return function(t,n,i,e){return["M".concat(t-i/2," ").concat(n,"\n A").concat(i/2," ").concat(i/2," 0 1 0 ").concat(t+i/2," ").concat(n,"\n M").concat(t-i/2," ").concat(n,"\n A ").concat(i/2," ").concat(i/2," 0 1 1 ").concat(t+i/2," ").concat(n,"\n "),"M".concat(t-i/2," ").concat(n-i/2,"\n L").concat(t+i/2," ").concat(n-i/2,"\n L").concat(t+i/2," ").concat(n+i/2,"\n L").concat(t-i/2," ").concat(n+i/2,"\n Z"),"M".concat(t-i/2," ").concat(n-.2886*i,"\n H ").concat(t+i/2,"\n L").concat(t," ").concat(n+.5774*i," Z"),"M".concat(t," ").concat(n-i/2,"\n L").concat(t+i/2," ").concat(n,"\n L").concat(t," ").concat(n+i/2,"\n L").concat(t-i/2," ").concat(n,"\n Z"),"M".concat(t," ").concat(n-.5774*i,"\n L").concat(t+i/2," ").concat(n+.2886*i,"\n L").concat(t-i/2," ").concat(n+.2886*i," Z"),"M".concat(t-.5*i," ").concat(n-.866*i,"\n L").concat(t+.5*i," ").concat(n-.866*i,"\n L").concat(t+i," ").concat(n,"\n L").concat(t+.5*i," ").concat(n+.866*i,"\n L").concat(t-.5*i," ").concat(n+.866*i,"\n L").concat(t-i," ").concat(n,"\n Z"),"M".concat(t," ").concat(n-.851*i,"\n L").concat(t+.6884*i," ").concat(n-.2633*i,"\n L").concat(t+.5001*i," ").concat(n+.6884*i,"\n L").concat(t-.5001*i," ").concat(n+.6884*i,"\n L").concat(t-.6884*i," ").concat(n-.2633*i,"\n Z"),"M".concat(t-.5001*i," ").concat(n-1.207*i,"\n L").concat(t+.5001*i," ").concat(n-1.207*i,"\n L").concat(t+1.207*i," ").concat(n-.5001*i,"\n L").concat(t+1.207*i," ").concat(n+.5001*i,"\n L").concat(t+.5001*i," ").concat(n+1.207*i,"\n L").concat(t-.5001*i," ").concat(n+1.207*i,"\n L").concat(t-1.207*i," ").concat(n+.5001*i,"\n L").concat(t-1.207*i," ").concat(n-.5001*i,"\n Z")][e]}(t,n,s=f>1?s/f:s,l)},c._getPointFill=function(t,n,i,e){var r=c.state.activePoint,o=c.props,u=o.theme;return o.allowMultipleShapesForPoints,r===n?u.semanticColors.bodyBackground:t},c._createColorFillBars=function(t){var n,i=[];c.state.isSelectedLegend?c._colorFillBars=c.state.selectedColorBarLegend:c._colorFillBars=c.props.colorFillBars;for(var e=ks(c._points),r=0;r<c._colorFillBars.length;r++){var o=c._colorFillBars[r],a=g(o.legend.replace(/\W/g,"")),s=yf(o.color,null===(n=c.props.theme)||void 0===n?void 0:n.isInverted);o.applyPattern&&i.push(c._getStripePattern(s,r));for(var l=0;l<o.data.length;l++){var f=o.data[l].startX,h=o.data[l].endX,d=c._legendHighlighted(o.legend)||c._noLegendHighlighted()||c.state.isSelectedLegend?c._getColorFillBarOpacity(o):.1;i.push(u.createElement("rect",{fill:o.applyPattern?"url(#".concat(c._colorFillBarPatternId,"_").concat(r,")"):s,fillOpacity:d,x:c._isRTL?c._xAxisScale(h):c._xAxisScale(f),y:c._yAxisScale(e.endValue)-3,width:Math.abs(c._xAxisScale(h)-c._xAxisScale(f)),height:c._yAxisScale(c.props.yMinValue||0)-c._yAxisScale(e.endValue)+3,key:"".concat(a).concat(l)}))}}return i},c._getStripePattern=function(t,n){return u.createElement("pattern",{id:"".concat(c._colorFillBarPatternId,"_").concat(n),width:16,height:16,key:"".concat(c._colorFillBarPatternId,"_").concat(n),patternUnits:"userSpaceOnUse"},u.createElement("path",{d:"M-4,4 l8,-8 M0,16 l16,-16 M12,20 l8,-8",stroke:t,strokeWidth:1.25}))},c._checkInGap=function(t,n,i){for(var e=i,r=!1;e<n.length&&t>n[e].endIndex;)e++;return e<n.length&&t>n[e].startIndex&&t<=n[e].endIndex&&(r=!0),{isInGap:r,gapIndex:e}},c._onMouseOverLargeDataset=function(t,n,i){i.persist();var e=c.props.data.lineChartData,r=c._xAxisScale.invert(wf(i)[0],document.getElementById(c._rectId)),o=th(e[t].data,r),u=e[t].data[o-1],a=e[t].data[o],s=null,l=null;if(void 0===u&&void 0!==a)s=a.x,l=o;else if(void 0!==u&&void 0===a)s=u.x,l=o-1;else{var f=void 0,h=void 0,d=void 0;switch(Ns(e[t].data[0].x,!0)){case rs.DateAxis:f=new Date(r).getTime(),h=u.x.getTime(),d=a.x.getTime(),s=Math.abs(f-h)>Math.abs(f-d)?a.x:u.x,l=Math.abs(f-h)>Math.abs(f-d)?o:o-1;break;case rs.NumericAxis:f=r,h=u.x,d=a.x,s=Math.abs(f-h)>Math.abs(f-d)?a.x:u.x,l=Math.abs(f-h)>Math.abs(f-d)?o:o-1}}var v=e[t].data[l],p=v.xAxisCalloutData,g=v.xAxisCalloutAccessibilityData,m=s instanceof Date?Hs(s,c.props.useUTC):s,y=s instanceof Date?s.getTime():s,x=b(c._calloutPoints,(function(t){return t.x===y})),C=e[t].data[l],w=null===c.state.nearestCircleToHighlight||null!==c.state.nearestCircleToHighlight&&null!==C&&(c.state.nearestCircleToHighlight.x!==C.x||c.state.nearestCircleToHighlight.y!==C.y);x&&w&&(c._uniqueCallOutID="#".concat(c._staticHighlightCircle,"_").concat(t),ss("#".concat(c._staticHighlightCircle,"_").concat(t)).attr("cx","".concat(c._xAxisScale(C.x))).attr("cy","".concat(c._yAxisScale(C.y))).attr("visibility","visibility"),ss("#".concat(c._verticalLine)).attr("transform",(function(){return"translate(".concat(c._xAxisScale(C.x),", ").concat(c._yAxisScale(C.y),")")})).attr("visibility","visibility").attr("y2","".concat(n-c._yAxisScale(C.y))),c.setState({nearestCircleToHighlight:C,isCalloutVisible:!0,refSelected:"#".concat(c._staticHighlightCircle,"_").concat(t),stackCalloutProps:x,YValueHover:x.values,dataPointCalloutProps:x,hoverXValue:p||m,xAxisCalloutAccessibilityData:g,activePoint:"",activeLine:t})),x||c.setState({isCalloutVisible:!1,nearestCircleToHighlight:C,activePoint:"",activeLine:t})},c._handleFocus=function(t,n,i,e,r){c._uniqueCallOutID=e;var o=n instanceof Date?Hs(n,c.props.useUTC):n,u=n instanceof Date?n.getTime():n,a=b(c._calloutPoints,(function(t){return t.x===u}));if(a){var s=c;ss("#".concat(c._verticalLine)).attr("transform",(function(){return"translate(".concat(s._xAxisScale(n),", 0)")})).attr("visibility","visibility"),c._refArray.forEach((function(n){n.index===t&&c.setState({isCalloutVisible:!0,refSelected:n.refElement,hoverXValue:i||""+o,YValueHover:a.values,stackCalloutProps:a,dataPointCalloutProps:a,activePoint:e,xAxisCalloutAccessibilityData:r})}))}else c.setState({activePoint:e})},c._handleHover=function(t,n,i,e,r,o,u){u.persist();var a=t instanceof Date?Hs(t,c.props.useUTC):t,s=t instanceof Date?t.getTime():t,l=c,f=b(c._calloutPoints,(function(t){return t.x===s}));f?(ss("#".concat(c._verticalLine)).attr("transform",(function(){return"translate(".concat(l._xAxisScale(t),", ").concat(l._yAxisScale(n),")")})).attr("visibility","visibility").attr("y2","".concat(i-l._yAxisScale(n))),c._uniqueCallOutID!==r&&(c._uniqueCallOutID=r,c.setState({isCalloutVisible:!0,refSelected:"#".concat(r),hoverXValue:e||""+a,YValueHover:f.values,stackCalloutProps:f,dataPointCalloutProps:f,activePoint:r,xAxisCalloutAccessibilityData:o,nearestCircleToHighlight:null,activeLine:null}))):c.setState({activePoint:r,nearestCircleToHighlight:null,activeLine:null})},c._getClickHandler=function(t){return t?{onClick:t}:{}},c._handleMouseOut=function(){ss("#".concat(c._verticalLine)).attr("visibility","hidden")},c._handleChartMouseLeave=function(){c._uniqueCallOutID=null,c.setState({isCalloutVisible:!1,activePoint:"",activeLine:null})},c._handleLegendClick=function(t,n){t.onLegendClick&&t.onLegendClick(n)},c._handleMultipleLineLegendSelectionAction=function(t){var n,i=c.state.selectedLegendPoints.reduce((function(n,i,e){return n>-1||i.legend!==t.legend?n:e}),-1);n=-1===i?(0,o.fX)((0,o.fX)([],c.state.selectedLegendPoints,!0),[t],!1):c.state.selectedLegendPoints.slice(0,i).concat(c.state.selectedLegendPoints.slice(i+1)),c.props.data&&n.length===c.props.data.lineChartData.length&&(c.props.colorFillBars&&c.props.colorFillBars.length===c.state.selectedColorBarLegend.length||!c.props.colorFillBars)?c._clearMultipleLegendSelections():n.length||c.state.selectedColorBarLegend.length?c.setState({selectedLegendPoints:n,isSelectedLegend:!0}):c._clearMultipleLegendSelections();var e=n.map((function(t){return t.legend}));c._handleLegendClick(t,e)},c._handleMultipleColorFillBarLegendSelectionAction=function(t){var n,i=c.state.selectedColorBarLegend.reduce((function(n,i,e){return n>-1||i.legend!==t.legend?n:e}),-1);(n=-1===i?(0,o.fX)((0,o.fX)([],c.state.selectedColorBarLegend,!0),[t],!1):c.state.selectedColorBarLegend.slice(0,i).concat(c.state.selectedColorBarLegend.slice(i+1))).length===(c.props.colorFillBars&&c.props.colorFillBars.length)&&(c.props.data&&c.props.data.lineChartData.length===c.state.selectedLegendPoints.length||!c.props.data)?c._clearMultipleLegendSelections():n.length||c.state.selectedLegendPoints.length?c.setState({selectedColorBarLegend:n,isSelectedLegend:!0}):c._clearMultipleLegendSelections();var e=n.map((function(t){return t.legend}));c._handleLegendClick(t,e)},c._clearMultipleLegendSelections=function(){c.setState({selectedColorBarLegend:[],selectedLegendPoints:[],isSelectedLegend:!1})},c._legendHighlighted=function(t){return c.state.selectedLegend===t||""===c.state.selectedLegend&&c.state.activeLegend===t},c._noLegendHighlighted=function(){return""===c.state.selectedLegend&&""===c.state.activeLegend},c._getColorFillBarOpacity=function(t){return t.applyPattern?1:.4},c._getAriaLabel=function(t,n){var i,e=c._points[t],r=e.data[n],o=r.x instanceof Date?Hs(r.x,c.props.useUTC):r.x,u=r.xAxisCalloutData||o,a=e.legend,s=r.yAxisCalloutData||r.y;return(null===(i=r.callOutAccessibilityData)||void 0===i?void 0:i.ariaLabel)||"".concat(u,". ").concat(a,", ").concat(s,".")},c._getChartTitle=function(){var t=c.props.data,n=t.chartTitle,i=t.lineChartData;return(n?"".concat(n,". "):"")+"Line chart with ".concat((null==i?void 0:i.length)||0," lines. ")},Js(c),c.state={hoverXValue:"",activeLegend:"",YValueHover:[],refSelected:"",selectedLegend:null!==(e=null===(i=n.legendProps)||void 0===i?void 0:i.selectedLegend)&&void 0!==e?e:"",isCalloutVisible:!1,selectedLegendPoints:c._injectIndexPropertyInLineChartData(c.props.data.lineChartData,!0),selectedColorBarLegend:[],isSelectedLegend:(null!==(l=null===(a=null===(r=c.props.legendProps)||void 0===r?void 0:r.selectedLegends)||void 0===a?void 0:a.length)&&void 0!==l?l:0)>0,activePoint:"",nearestCircleToHighlight:null,activeLine:null},c._refArray=[],c._points=c._injectIndexPropertyInLineChartData(c.props.data.lineChartData),c._colorFillBars=[],c._calloutPoints=gs(c._points)||[],c._circleId=g("circle"),c._lineId=g("lineID"),c._borderId=g("borderID"),c._verticalLine=g("verticalLine"),c._colorFillBarPatternId=g("colorFillBarPattern"),c._tooltipId=g("LineChartTooltipId_"),c._rectId=g("containerRectLD"),c._staticHighlightCircle=g("staticHighlightCircle"),c._createLegendsMemoized=(0,dn.J9)((function(t){return c._createLegends(t)})),c._firstRenderOptimization=!0,c._emptyChartId=g("_LineChart_empty"),c._cartesianChartRef=u.createRef(),n.eventAnnotationProps&&n.eventAnnotationProps.labelHeight&&(c.eventLabelHeight=n.eventAnnotationProps.labelHeight),c}return(0,o.C6)(n,t),n.prototype.componentDidUpdate=function(t){var n,i,e,r,o,u,a,s,l;(null===(n=t.legendProps)||void 0===n?void 0:n.selectedLegend)===(null===(i=this.props.legendProps)||void 0===i?void 0:i.selectedLegend)&&Is(null===(e=t.legendProps)||void 0===e?void 0:e.selectedLegends,null===(r=this.props.legendProps)||void 0===r?void 0:r.selectedLegends)||this.setState({selectedLegend:null!==(u=null===(o=this.props.legendProps)||void 0===o?void 0:o.selectedLegend)&&void 0!==u?u:"",selectedLegendPoints:this._injectIndexPropertyInLineChartData(this.props.data.lineChartData,!0),isSelectedLegend:(null!==(l=null===(s=null===(a=this.props.legendProps)||void 0===a?void 0:a.selectedLegends)||void 0===s?void 0:s.length)&&void 0!==l?l:0)>0}),t.height===this.props.height&&t.width===this.props.width&&t.data===this.props.data||(this._points=this._injectIndexPropertyInLineChartData(this.props.data.lineChartData),this._calloutPoints=gs(this._points)||[])},n.prototype.render=function(){var t=this,n=this.props,i=n.tickValues,e=n.tickFormat,r=n.eventAnnotationProps,a=n.legendProps,s=n.data;this._points=this._injectIndexPropertyInLineChartData(s.lineChartData);var l=xs(this._points),c=this._points;a&&a.canSelectMultipleLegends&&(c=this.state.selectedLegendPoints.length>=1?this.state.selectedLegendPoints:this._points,this._calloutPoints=gs(c));var f=null;this.props.hideLegend||(f=this._createLegendsMemoized(this._points));var h=(0,o.Cl)({isCalloutVisible:this.state.isCalloutVisible,directionalHint:x.topAutoEdge,YValueHover:this.state.YValueHover,hoverXValue:this.state.hoverXValue,id:"toolTip".concat(this._uniqueCallOutID),target:this.state.refSelected,isBeakVisible:!1,gapSpace:15,onDismiss:this._closeCallout,preventDismissOnEvent:function(){return!0},hidden:!(!this.props.hideTooltip&&this.state.isCalloutVisible),descriptionMessage:this.props.getCalloutDescriptionMessage&&this.state.stackCalloutProps?this.props.getCalloutDescriptionMessage(this.state.stackCalloutProps):void 0,"data-is-focusable":!0,xAxisCalloutAccessibilityData:this.state.xAxisCalloutAccessibilityData},this.props.calloutProps),d={tickValues:i,tickFormat:e};return this._isChartEmpty()?u.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):u.createElement(_f,(0,o.Cl)({},this.props,{chartTitle:this._getChartTitle(),points:c,chartType:es.LineChart,isCalloutForStack:!0,calloutProps:h,tickParams:d,legendBars:f,createYAxis:ds,getmargins:this._getMargins,getMinMaxOfYAxis:ks,getGraphData:this._initializeLineChartData,xAxisType:l?rs.DateAxis:rs.NumericAxis,customizedCallout:this._getCustomizedCallout(),getDomainNRangeValues:this._getDomainNRangeValues,createStringYAxis:ps,onChartMouseLeave:this._handleChartMouseLeave,enableFirstRenderOptimization:this.props.enablePerfOptimization&&this._firstRenderOptimization,ref:this._cartesianChartRef,children:function(n){return t._xAxisScale=n.xScale,t._yAxisScale=n.yScale,u.createElement(u.Fragment,null,u.createElement("g",null,u.createElement("line",{x1:0,y1:0,x2:0,y2:n.containerHeight,stroke:"#323130",id:t._verticalLine,visibility:"hidden",strokeDasharray:"5,5"}),t.props.optimizeLargeData?u.createElement("rect",{id:t._rectId,width:n.containerWidth,height:n.containerHeight,fill:"transparent"}):u.createElement(u.Fragment,null),u.createElement("g",null,t._renderedColorFillBars,t.lines),r&&u.createElement(Jf,(0,o.Cl)({theme:t.props.theme},r,{scale:n.xScale,chartYTop:t.margins.top+t.eventLabelHeight,chartYBottom:n.containerHeight-35}))))}}))},Object.defineProperty(n.prototype,"chartContainer",{get:function(){var t;return(null===(t=this._cartesianChartRef.current)||void 0===t?void 0:t.chartContainer)||null},enumerable:!1,configurable:!0}),n.prototype._createLegends=function(t){var n=this,i=this.props,e=i.legendProps,r=i.allowMultipleShapesForPoints,a=void 0!==r&&r,s=!(!e||!e.canSelectMultipleLegends),l=t.map((function(t){var i=t.color;return(0,o.Cl)((0,o.Cl)({title:t.legend,color:i,action:function(){s?n._handleMultipleLineLegendSelectionAction(t):n._handleSingleLegendSelectionAction(t)},onMouseOutAction:function(){n.setState({activeLegend:""})},hoverAction:function(){n._handleChartMouseLeave(),n.setState({activeLegend:t.legend})}},t.legendShape&&{shape:t.legendShape}),a&&{shape:Vs[t.index%Object.keys(Ts).length]})})),c=this.props.colorFillBars?this.props.colorFillBars.map((function(t,i){var e,r=t.legend,o=yf(t.color,null===(e=n.props.theme)||void 0===e?void 0:e.isInverted);return{title:r,color:o,action:function(){s?n._handleMultipleColorFillBarLegendSelectionAction(t):n._handleSingleLegendSelectionAction(t)},onMouseOutAction:function(){n.setState({activeLegend:""})},hoverAction:function(){n._handleChartMouseLeave(),n.setState({activeLegend:r})},opacity:n._getColorFillBarOpacity(t),stripePattern:t.applyPattern}})):[];return u.createElement(Ac,(0,o.Cl)({legends:(0,o.fX)((0,o.fX)([],l,!0),c,!0),enabledWrapLines:this.props.enabledLegendsWrapLines,overflowProps:this.props.legendsOverflowProps,focusZonePropsInHoverCard:this.props.focusZonePropsForLegendsInHoverCard,overflowText:this.props.legendsOverflowText},s&&{onLegendHoverCardLeave:this._onHoverCardHide},this.props.legendProps))},n.prototype._createLines=function(t,n){var i,e,r,a,s,l,c,f,h,d,v,p,g,m,y,b,x,C,w,M,k,S,A,L,V,D,N=this,T=[];this.state.isSelectedLegend?this._points=this.state.selectedLegendPoints:this._points=this._injectIndexPropertyInLineChartData(this.props.data.lineChartData);for(var E=function(t){var E=[],P=[],B=[],F=O._points[t].legend,_=O._points[t].color,H=O.state.activePoint,R=O.props.theme,I=n-O.margins.bottom+6;if(1===O._points[t].data.length){var W=O._points[t].data[0],z=W.x,j=W.y,Y=W.xAxisCalloutData,$=W.xAxisCalloutAccessibilityData,X="".concat(O._circleId,"_").concat(t),G=O._legendHighlighted(F)||O._noLegendHighlighted()||O.state.isSelectedLegend;B.push(u.createElement("circle",(0,o.Cl)({id:X,key:X,r:H===X?5.5:3.5,cx:O._xAxisScale(z),cy:O._yAxisScale(j),fill:H===X?R.semanticColors.bodyBackground:_,opacity:G?1:.1,onMouseOver:O._handleHover.bind(O,z,j,I,Y,X,$),onMouseMove:O._handleHover.bind(O,z,j,I,Y,X,$),onMouseOut:O._handleMouseOut,strokeWidth:H===X?4:0,stroke:H===X?_:"",role:"img","aria-label":O._getAriaLabel(t,0),"data-is-focusable":G,ref:function(t){N._refCallback(t,X)},onFocus:function(){return N._handleFocus(X,z,Y,X,$)},onBlur:O._handleMouseOut},O._getClickHandler(O._points[t].data[0].onDataPointClick))))}var q=0,U=null!==(e=null===(i=O._points[t].gaps)||void 0===i?void 0:i.sort((function(t,n){return t.startIndex-n.startIndex})))&&void 0!==e?e:[];if(O.props.optimizeLargeData&&O._points[t].data.length>1){for(var Z=Lf().x((function(t){return N._xAxisScale(t[0])})).y((function(t){return N._yAxisScale(t[1])})).curve(kf),K="".concat(O._lineId,"_").concat(t),J="".concat(O._borderId,"_").concat(t),Q=(null===(r=O._points[t].lineOptions)||void 0===r?void 0:r.strokeWidth)||O.props.strokeWidth||4,tt=(G=O._legendHighlighted(F)||O._noLegendHighlighted()||O.state.isSelectedLegend,[]),nt=0;nt<O._points[t].data.length;nt++)tt.push([O._points[t].data[nt].x instanceof Date?O._points[t].data[nt].x.getTime():O._points[t].data[nt].x,O._points[t].data[nt].y]);if(G){var it=(null===(a=O._points[t].lineOptions)||void 0===a?void 0:a.lineBorderWidth)?Number.parseFloat(O._points[t].lineOptions.lineBorderWidth.toString()):0;it>0&&P.push(u.createElement("path",{id:J,key:J,d:Z(tt),fill:"transparent",strokeLinecap:null!==(l=null===(s=O._points[t].lineOptions)||void 0===s?void 0:s.strokeLinecap)&&void 0!==l?l:"round",strokeWidth:Number.parseFloat(Q.toString())+it,stroke:(null===(c=O._points[t].lineOptions)||void 0===c?void 0:c.lineBorderColor)||R.semanticColors.bodyBackground,opacity:1})),E.push(u.createElement("path",(0,o.Cl)({id:K,key:K,d:Z(tt),fill:"transparent","data-is-focusable":!0,stroke:_,strokeWidth:Q,strokeLinecap:null!==(h=null===(f=O._points[t].lineOptions)||void 0===f?void 0:f.strokeLinecap)&&void 0!==h?h:"round",strokeDasharray:null===(d=O._points[t].lineOptions)||void 0===d?void 0:d.strokeDasharray,onMouseMove:O._onMouseOverLargeDataset.bind(O,t,I),onMouseOver:O._onMouseOverLargeDataset.bind(O,t,I),onMouseOut:O._handleMouseOut},O._getClickHandler(O._points[t].onLineClick),{opacity:1})))}else E.push(u.createElement("path",{id:K,key:K,d:Z(tt),fill:"transparent","data-is-focusable":!1,stroke:_,strokeWidth:Q,strokeLinecap:null!==(p=null===(v=O._points[t].lineOptions)||void 0===v?void 0:v.strokeLinecap)&&void 0!==p?p:"round",strokeDasharray:null===(g=O._points[t].lineOptions)||void 0===g?void 0:g.strokeDasharray,opacity:.1}));var et=null!==O.state.activeLine&&O.state.activeLine===t;B.push(u.createElement("circle",{id:"".concat(O._staticHighlightCircle,"_").concat(t),key:"".concat(O._staticHighlightCircle,"_").concat(t),r:5.5,cx:0,cy:0,fill:R.semanticColors.bodyBackground,strokeWidth:4,stroke:_,visibility:et?"visibility":"hidden",onMouseMove:O._onMouseOverLargeDataset.bind(O,t,I),onMouseOver:O._onMouseOverLargeDataset.bind(O,t,I),onMouseOut:O._handleMouseOut}))}else if(!O.props.optimizeLargeData)for(var rt=function(n){var i=O._checkInGap(n,U,q),e=i.isInGap;q=i.gapIndex;var r="".concat(O._lineId,"_").concat(t,"_").concat(n),a="".concat(O._borderId,"_").concat(t,"_").concat(n),s="".concat(O._circleId,"_").concat(t,"_").concat(n),l=O._points[t].data[n-1],c=l.x,f=l.y,h=l.xAxisCalloutData,d=l.xAxisCalloutAccessibilityData,v=O._points[t].data[n],p=v.x,g=v.y,T=O._getPath(O._xAxisScale(c),O._yAxisScale(f),s,n,!1,O._points[t].index),W=(null===(m=O._points[t].lineOptions)||void 0===m?void 0:m.strokeWidth)||O.props.strokeWidth||4,z=O._legendHighlighted(F)||O._noLegendHighlighted()||O.state.isSelectedLegend,j=O._points[t].hideNonActiveDots&&H!==s;if(B.push(u.createElement("path",(0,o.Cl)({id:s,key:s,d:T,"data-is-focusable":z,onMouseOver:O._handleHover.bind(O,c,f,I,h,s,d),onMouseMove:O._handleHover.bind(O,c,f,I,h,s,d),onMouseOut:O._handleMouseOut,onFocus:function(){return N._handleFocus(r,c,h,s,d)},onBlur:O._handleMouseOut},O._getClickHandler(O._points[t].data[n-1].onDataPointClick),{opacity:z&&!j?1:.01,fill:O._getPointFill(_,s,n,!1),stroke:_,strokeWidth:W,role:"img","aria-label":O._getAriaLabel(t,n-1)}))),n+1===O._points[t].data.length){var Y="".concat(s).concat(n,"L"),$="".concat(s).concat(n,"D"),X=O._points[t].hideNonActiveDots&&H!==Y;T=O._getPath(O._xAxisScale(p),O._yAxisScale(g),Y,n,!0,O._points[t].index);var G=O._points[t].data[n],Z=G.xAxisCalloutData,K=G.xAxisCalloutAccessibilityData;B.push(u.createElement(u.Fragment,{key:"".concat(Y,"_container")},u.createElement("path",(0,o.Cl)({id:Y,key:Y,d:T,"data-is-focusable":z,onMouseOver:O._handleHover.bind(O,p,g,I,Z,Y,K),onMouseMove:O._handleHover.bind(O,p,g,I,Z,Y,K),onMouseOut:O._handleMouseOut,onFocus:function(){return N._handleFocus(r,p,Z,Y,K)},onBlur:O._handleMouseOut},O._getClickHandler(O._points[t].data[n].onDataPointClick),{opacity:z&&!X?1:.01,fill:O._getPointFill(_,Y,n,!0),stroke:_,strokeWidth:W,role:"img","aria-label":O._getAriaLabel(t,n)})),u.createElement("circle",{id:$,key:$,r:8,cx:O._xAxisScale(p),cy:O._yAxisScale(g),opacity:0,width:0,onMouseOver:O._handleHover.bind(O,p,g,I,Z,Y,K),onMouseMove:O._handleHover.bind(O,p,g,I,Z,Y,K),onMouseOut:O._handleMouseOut,strokeWidth:0,focusable:!1,onBlur:O._handleMouseOut})))}if(z){if(!e){var J=(null===(y=O._points[t].lineOptions)||void 0===y?void 0:y.lineBorderWidth)?Number.parseFloat(O._points[t].lineOptions.lineBorderWidth.toString()):0;J>0&&P.push(u.createElement("line",{id:a,key:a,x1:O._xAxisScale(c),y1:O._yAxisScale(f),x2:O._xAxisScale(p),y2:O._yAxisScale(g),strokeLinecap:null!==(x=null===(b=O._points[t].lineOptions)||void 0===b?void 0:b.strokeLinecap)&&void 0!==x?x:"round",strokeWidth:Number.parseFloat(W.toString())+J,stroke:(null===(C=O._points[t].lineOptions)||void 0===C?void 0:C.lineBorderColor)||R.semanticColors.bodyBackground,opacity:1})),E.push(u.createElement("line",(0,o.Cl)({id:r,key:r,x1:O._xAxisScale(c),y1:O._yAxisScale(f),x2:O._xAxisScale(p),y2:O._yAxisScale(g),strokeWidth:W,ref:function(t){N._refCallback(t,r)},onMouseOver:O._handleHover.bind(O,c,f,I,h,s,d),onMouseMove:O._handleHover.bind(O,c,f,I,h,s,d),onMouseOut:O._handleMouseOut,stroke:_,strokeLinecap:null!==(M=null===(w=O._points[t].lineOptions)||void 0===w?void 0:w.strokeLinecap)&&void 0!==M?M:"round",strokeDasharray:null===(k=O._points[t].lineOptions)||void 0===k?void 0:k.strokeDasharray,strokeDashoffset:null===(S=O._points[t].lineOptions)||void 0===S?void 0:S.strokeDashoffset,opacity:1},O._getClickHandler(O._points[t].onLineClick))))}}else e||E.push(u.createElement("line",{id:r,key:r,x1:O._xAxisScale(c),y1:O._yAxisScale(f),x2:O._xAxisScale(p),y2:O._yAxisScale(g),strokeWidth:W,stroke:_,strokeLinecap:null!==(L=null===(A=O._points[t].lineOptions)||void 0===A?void 0:A.strokeLinecap)&&void 0!==L?L:"round",strokeDasharray:null===(V=O._points[t].lineOptions)||void 0===V?void 0:V.strokeDasharray,strokeDashoffset:null===(D=O._points[t].lineOptions)||void 0===D?void 0:D.strokeDashoffset,opacity:.1}))},ot=1;ot<O._points[t].data.length;ot++)rt(ot);T.push(u.createElement("g",{key:"line_".concat(t),role:"region","aria-label":"".concat(F,", line ").concat(t+1," of ").concat(O._points.length," with ").concat(O._points[t].data.length," data points.")},P,E,B))},O=this,P=this._points.length-1;P>=0;P--)E(P);var B=Qf(this.props.styles,{theme:this.props.theme});if(!this.props.showXAxisLablesTooltip)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}if(!this.props.wrapXAxisLables&&this.props.showXAxisLablesTooltip){var F=ss(t).call(this._xAxisScale);try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}var _={tooltipCls:B.tooltip,id:this._tooltipId,xAxis:F};F&&bs(_)}return T},n.prototype._refCallback=function(t,n){this._refArray.push({index:n,refElement:t})},n.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.lineChartData&&this.props.data.lineChartData.length>0&&this.props.data.lineChartData.filter((function(t){return t.data.length})).length>0)},n.defaultProps={enableReflow:!0,useUTC:!0},n}(u.Component),ih=(0,r.I)(nh,(function(t){return{tooltip:(0,o.Cl)((0,o.Cl)({},t.theme.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:t.theme.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"})}}));function eh(t,n){if((r=t.length)>1)for(var i,e,r,o=1,u=t[n[0]],a=u.length;o<r;++o)for(e=u,u=t[n[o]],i=0;i<a;++i)u[i][1]+=u[i][0]=isNaN(e[i][1])?e[i][0]:e[i][1]}function rh(t){for(var n=t.length,i=new Array(n);--n>=0;)i[n]=n;return i}function oh(t,n){return t[n]}function uh(t){const n=[];return n.key=t,n}function ah(t,n,i){var e=null,r=Vc(!0),o=null,u=kf,a=null,s=Zc(l);function l(l){var c,f,h,d,v,p=(l=Lc(l)).length,g=!1,m=new Array(p),y=new Array(p);for(null==o&&(a=u(v=s())),c=0;c<=p;++c){if(!(c<p&&r(d=l[c],c,l))===g)if(g=!g)f=c,a.areaStart(),a.lineStart();else{for(a.lineEnd(),a.lineStart(),h=c-1;h>=f;--h)a.point(m[h],y[h]);a.lineEnd(),a.areaEnd()}g&&(m[c]=+t(d,c,l),y[c]=+n(d,c,l),a.point(e?+e(d,c,l):m[c],i?+i(d,c,l):y[c]))}if(v)return a=null,v+""||null}function c(){return Lf().defined(r).curve(u).context(o)}return t="function"==typeof t?t:void 0===t?Sf:Vc(+t),n="function"==typeof n?n:Vc(void 0===n?0:+n),i="function"==typeof i?i:void 0===i?Af:Vc(+i),l.x=function(n){return arguments.length?(t="function"==typeof n?n:Vc(+n),e=null,l):t},l.x0=function(n){return arguments.length?(t="function"==typeof n?n:Vc(+n),l):t},l.x1=function(t){return arguments.length?(e=null==t?null:"function"==typeof t?t:Vc(+t),l):e},l.y=function(t){return arguments.length?(n="function"==typeof t?t:Vc(+t),i=null,l):n},l.y0=function(t){return arguments.length?(n="function"==typeof t?t:Vc(+t),l):n},l.y1=function(t){return arguments.length?(i=null==t?null:"function"==typeof t?t:Vc(+t),l):i},l.lineX0=l.lineY0=function(){return c().x(t).y(n)},l.lineY1=function(){return c().x(t).y(i)},l.lineX1=function(){return c().x(e).y(n)},l.defined=function(t){return arguments.length?(r="function"==typeof t?t:Vc(!!t),l):r},l.curve=function(t){return arguments.length?(u=t,null!=o&&(a=u(o)),l):u},l.context=function(t){return arguments.length?(null==t?o=a=null:a=u(o=t),l):o},l}function sh(t){return t<0?-1:1}function lh(t,n,i){var e=t._x1-t._x0,r=n-t._x1,o=(t._y1-t._y0)/(e||r<0&&-0),u=(i-t._y1)/(r||e<0&&-0),a=(o*r+u*e)/(e+r);return(sh(o)+sh(u))*Math.min(Math.abs(o),Math.abs(u),.5*Math.abs(a))||0}function ch(t,n){var i=t._x1-t._x0;return i?(3*(t._y1-t._y0)/i-n)/2:n}function fh(t,n,i){var e=t._x0,r=t._y0,o=t._x1,u=t._y1,a=(o-e)/3;t._context.bezierCurveTo(e+a,r+a*n,o-a,u-a*i,o,u)}function hh(t){this._context=t}function dh(t){this._context=t}function vh(t){return new hh(t)}hh.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:fh(this,this._t0,ch(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){var i=NaN;if(n=+n,(t=+t)!==this._x1||n!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3,fh(this,ch(this,i=lh(this,t,n)),i);break;default:fh(this,this._t0,i=lh(this,t,n))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n,this._t0=i}}},(function(t){this._context=new dh(t)}.prototype=Object.create(hh.prototype)).point=function(t,n){hh.prototype.point.call(this,n,t)},dh.prototype={moveTo:function(t,n){this._context.moveTo(n,t)},closePath:function(){this._context.closePath()},lineTo:function(t,n){this._context.lineTo(n,t)},bezierCurveTo:function(t,n,i,e,r,o){this._context.bezierCurveTo(n,t,e,i,o,r)}};var ph,gh=(0,a.Z)(),mh=Si((function(t){return t.x})).left;!function(t){t.show="visibility",t.hide="hidden"}(ph||(ph={}));var yh=function(t){function n(n){var i,e=t.call(this,n)||this;return e._getDomainNRangeValues=function(t,n,i,e,r,o,u,a){return o===rs.NumericAxis?Cs(t,n,i,r):o===rs.DateAxis?Ms(t,n,i,r,a,e):{dStartValue:0,dEndValue:0,rStartValue:0,rEndValue:0}},e._getMargins=function(t){e.margins=t},e._onRectMouseMove=function(t){t.persist();var n=e.props.data.lineChartData,i=e.state.selectedLegends,r=e._xAxisRectScale.invert(wf(t)[0],document.getElementById(e._rectId)),u=mh(n[0].data,r),a=n[0].data[u-1],s=n[0].data[u],l=null,c=null,f=n[0].data.length>0?Ns(n[0].data[0].x,!0):null;if(void 0===a&&void 0!==s)l=s.x,c=u;else if(void 0!==a&&void 0===s)l=a.x,c=u-1;else{var h=void 0,d=void 0,v=void 0;switch(f){case rs.DateAxis:h=new Date(r).getTime(),d=a.x.getTime(),v=s.x.getTime(),l=Math.abs(h-d)>Math.abs(h-v)?s.x:a.x,c=Math.abs(h-d)>Math.abs(h-v)?u:u-1;break;case rs.NumericAxis:h=r,d=a.x,v=s.x,l=Math.abs(h-d)>Math.abs(h-v)?s.x:a.x,c=Math.abs(h-d)>Math.abs(h-v)?u:u-1}}var p=n[0].data[c],g=p.xAxisCalloutData,m=p.xAxisCalloutAccessibilityData,y=l instanceof Date?Hs(l,e.props.useUTC):l,x=l instanceof Date?l.getTime():l,C=b(e._calloutPoints,(function(t){return t.x===x})),w=f===rs.DateAxis?l.getTime():l,M=e.state.nearestCircleToHighlight!==w;if(C&&M&&!e.state.isShowCalloutPending){var k=i.length>0?C.values.filter((function(t){return i.includes(t.legend)})):C.values;e.setState({nearestCircleToHighlight:w,isCalloutVisible:!1,isShowCalloutPending:!0,lineXValue:e._xAxisRectScale(l),displayOfLine:ph.show,isCircleClicked:!1,stackCalloutProps:(0,o.Cl)((0,o.Cl)({},C),{values:k}),YValueHover:k,dataPointCalloutProps:(0,o.Cl)((0,o.Cl)({},C),{values:k}),hoverXValue:g||y,xAxisCalloutAccessibilityData:m,activePoint:""})}C||e.setState({isCalloutVisible:!1,nearestCircleToHighlight:w,displayOfLine:ph.hide,isCircleClicked:!1})},e._onRectMouseOut=function(){},e._handleChartMouseLeave=function(){e.setState({refSelected:null,isCalloutVisible:!1,nearestCircleToHighlight:null,lineXValue:0,displayOfLine:ph.hide,isCircleClicked:!1,stackCalloutProps:void 0,dataPointCalloutProps:void 0,hoverXValue:void 0,YValueHover:[]})},e._getStackedData=function(t,n){var i=function(){var t=Vc([]),n=rh,i=eh,e=oh;function r(r){var o,u,a=Array.from(t.apply(this,arguments),uh),s=a.length,l=-1;for(const t of r)for(o=0,++l;o<s;++o)(a[o][l]=[0,+e(t,a[o].key,l,r)]).data=t;for(o=0,u=Lc(n(a));o<s;++o)a[u[o]].index=o;return i(a,u),a}return r.keys=function(n){return arguments.length?(t="function"==typeof n?n:Vc(Array.from(n)),r):t},r.value=function(t){return arguments.length?(e="function"==typeof t?t:Vc(+t),r):e},r.order=function(t){return arguments.length?(n=null==t?rh:"function"==typeof t?t:Vc(Array.from(t)),r):n},r.offset=function(t){return arguments.length?(i=null==t?eh:t,r):i},r}().keys(t)(n),r=pi(i[i.length-1],(function(t){return t[1]})),o=[];return i.forEach((function(t){var n=[];t.forEach((function(t){n.push({values:t,xVal:t.data.xVal})})),o.push(n)})),e._isMultiStackChart=!!(o&&o.length>1),{stackedData:o,maxOfYVal:r}},e._createDataSet=function(t){if(e.props.enablePerfOptimization&&e._enableComputationOptimization){var n=[],i=[],r=[],o=[],u=gs(t);t&&t.length&&t.forEach((function(t){r.push(t.color),o.push(t.opacity||1),n.push.apply(n,t.data)}));var a={};n.forEach((function(t){var n=t.x instanceof Date?t.x.toLocaleString():t.x;a[n]?a[n].push(t):a[n]=[t]})),Object.keys(a).forEach((function(t){var n=a[t],e={};n.forEach((function(t,n){e.xVal=t.x,e["chart".concat(n)]=t.y})),i.push(e)}));for(var s=i&&Object.keys(i[0]).length,l=[],c=0;c<s-1;c++){var f="chart".concat(c);l.push(f)}var h=e._getStackedData(l,i);return{colors:r,opacity:o,keys:l,stackedInfo:h,calloutPoints:u}}var d=[],v=[],p=[],g=[];u=gs(t),t&&t.length&&t.forEach((function(t){p.push(t.color),g.push(t.opacity||1),d.push.apply(d,t.data)}));for(var m=d,y=function(){var t=m[0].x instanceof Date?m[0].x.toLocaleString():m[0].x,n=m.filter((function(n){return(n.x instanceof Date?n.x.toLocaleString():n.x)===t})),i={};n.forEach((function(t,n){i.xVal=t.x,i["chart".concat(n)]=t.y})),v.push(i);var e=m[0].x instanceof Date?m[0].x.toLocaleString():m[0].x;m=m.filter((function(t){return(t.x instanceof Date?t.x.toLocaleString():t.x)!==e}))};m.length;)y();for(s=v&&Object.keys(v[0]).length,l=[],c=0;c<s-1;c++)f="chart".concat(c),l.push(f);return h=e._getStackedData(l,v),{colors:p,opacity:g,keys:l,stackedInfo:h,calloutPoints:u}},e._getCustomizedCallout=function(){return e.props.onRenderCalloutPerStack?e.props.onRenderCalloutPerStack(e.state.stackCalloutProps):e.props.onRenderCalloutPerDataPoint?e.props.onRenderCalloutPerDataPoint(e.state.dataPointCalloutProps):null},e._getGraphData=function(t,n,i,r,o){e._chart=e._drawGraph(i,t,n,o)},e._getLegendData=function(t){var n=[];return t.forEach((function(t){var i=t.color;if(!(n.filter((function(n){return n.title===t.legend&&n.color===i})).length>0)){var r={title:t.legend,color:i,hoverAction:function(){e._handleChartMouseLeave(),e._onLegendHover(t.legend)},onMouseOutAction:function(){e._onLegendLeave()}};n.push(r)}})),u.createElement(Ac,(0,o.Cl)({legends:n,overflowProps:e.props.legendsOverflowProps,enabledWrapLines:e.props.enabledLegendsWrapLines,focusZonePropsInHoverCard:e.props.focusZonePropsForLegendsInHoverCard},e.props.legendProps,{onChange:e._onLegendSelectionChange.bind(e)}))},e._onDataPointClick=function(t){t&&t(),e.setState({isCircleClicked:!0})},e._getOpacity=function(t){return e._isMultiStackChart?e._legendHighlighted(t)||e._noLegendHighlighted()?.7:.1:.7},e._getLineOpacity=function(t){if(e._isMultiStackChart){var n=.3;return e.state.isCalloutVisible&&(n=1),e._noLegendHighlighted()||(n=e._legendHighlighted(t)?0:.1),n}return 1},e._updateCircleFillColor=function(t,n,i){var r=n;return e.state.nearestCircleToHighlight!==t&&e.state.activePoint!==i||(e._highlightedCircleId=i,e.state.isCircleClicked||(r=e.props.theme.semanticColors.bodyBackground)),r},e._drawGraph=function(t,n,i,r){var a,s=e._addDefaultColors(e.props.data.lineChartData),l=e.props.data,c=l.pointOptions,f=l.pointLineOptions,h=ah().x((function(t){return n(t.xVal)})).y0((function(t){return i(t.values[0])})).y1((function(t){return i(t.values[1])})).curve(vh),d=Lf().x((function(t){return n(t.xVal)})).y((function(t){return i(t.values[1])})).curve(vh),v=[];e._stackedData.forEach((function(t,r){var a,l,c,f,p;v.push(u.createElement(u.Fragment,{key:"".concat(r,"-graph-").concat(e._uniqueIdForGraph)},e.props.enableGradient&&u.createElement("defs",null,u.createElement("linearGradient",{id:"gradient_".concat(r),x1:"0%",x2:"0%",y1:"0%",y2:"100%"},u.createElement("stop",{offset:"0",stopColor:e._colors[r]}),u.createElement("stop",{offset:"100%",stopColor:"transparent"}))),u.createElement("path",{id:"".concat(r,"-line-").concat(e._uniqueIdForGraph),d:d(t),fill:"transparent",strokeWidth:null!==(l=null===(a=s[r].lineOptions)||void 0===a?void 0:a.strokeWidth)&&void 0!==l?l:3,stroke:e._colors[r],opacity:e._getLineOpacity(s[r].legend),onMouseMove:e._onRectMouseMove,onMouseOut:e._onRectMouseOut,onMouseOver:e._onRectMouseMove,strokeDasharray:null===(c=s[r].lineOptions)||void 0===c?void 0:c.strokeDasharray,strokeDashoffset:null===(f=s[r].lineOptions)||void 0===f?void 0:f.strokeDashoffset,strokeLinecap:null===(p=s[r].lineOptions)||void 0===p?void 0:p.strokeLinecap}),1===t.length?u.createElement("circle",{id:"".concat(r,"-graph-").concat(e._uniqueIdForGraph),cx:n(t[0].xVal),cy:i(t[0].values[1]),r:6,stroke:e._colors[r],strokeWidth:3,fill:e._colors[r],opacity:e._opacity[r],fillOpacity:e._getOpacity(s[r].legend),onMouseMove:e._onRectMouseMove,onMouseOut:e._onRectMouseOut,onMouseOver:e._onRectMouseMove}):u.createElement("path",(0,o.Cl)({id:"".concat(r,"-graph-").concat(e._uniqueIdForGraph),d:h(t),fill:e.props.enableGradient?"url(#gradient_".concat(r,")"):e._colors[r],opacity:e._opacity[r],fillOpacity:e._getOpacity(s[r].legend),onMouseMove:e._onRectMouseMove,onMouseOut:e._onRectMouseOut,onMouseOver:e._onRectMouseMove},e.props.optimizeLargeData&&{"data-is-focusable":e._legendHighlighted(s[r].legend)||e._noLegendHighlighted(),role:"img","aria-label":"".concat(s[r].legend,", series ").concat(r+1," of ").concat(s.length," with ").concat(s[r].data.length," data points.")}))))}));var p=c&&c.r?Number(c.r):8;e._stackedData.forEach((function(t,r){s.length!==r&&(e.props.optimizeLargeData&&1!==t.length?t.forEach((function(t,l){var f=t.xVal instanceof Date?t.xVal.getTime():t.xVal;if(e.state.nearestCircleToHighlight===f){var h="".concat(e._circleId,"_").concat(r*e._stackedData[0].length+l);a=s[r].color;var d=s[r].legend;v.push(u.createElement("circle",(0,o.Cl)({key:h,id:h,cx:n(t.xVal),cy:i(t.values[1]),stroke:a,strokeWidth:3,fill:e._updateCircleFillColor(f,a,h),onMouseOut:e._onRectMouseOut,onMouseOver:e._onRectMouseMove,onClick:e._onDataPointClick.bind(e,s[r].data[l].onDataPointClick)},Rs(c),{r:e._getCircleRadius(f,p,h,d)})))}})):v.push(u.createElement("g",{key:"".concat(r,"-dots-").concat(e._uniqueIdForGraph),d:h(t),clipPath:"url(#clip)",role:"region","aria-label":"".concat(s[r].legend,", series ").concat(r+1," of ").concat(s.length," with ").concat(s[r].data.length," data points.")},t.map((function(t,l){var f="".concat(e._circleId,"_").concat(r*e._stackedData[0].length+l),h=t.xVal instanceof Date?t.xVal.getTime():t.xVal;a=s[r].color;var d=s[r].legend;return u.createElement("circle",(0,o.Cl)({key:f,id:f,"data-is-focusable":e._legendHighlighted(s[r].legend)||e._noLegendHighlighted(),cx:n(t.xVal),cy:i(t.values[1]),stroke:a,strokeWidth:3,fill:e._updateCircleFillColor(h,a,f),onMouseOut:e._onRectMouseOut,onMouseOver:e._onRectMouseMove,onClick:e._onDataPointClick.bind(e,s[r].data[l].onDataPointClick),onFocus:function(){return e._handleFocus(r,l,f)},onBlur:e._handleBlur},Rs(c),{r:e._getCircleRadius(h,p,f,d),role:"img","aria-label":e._getAriaLabel(r,l)}))})))))})),v.push(u.createElement("line",(0,o.Cl)({id:e._verticalLineId,key:e._verticalLineId,x1:e.state.lineXValue,y1:0,x2:e.state.lineXValue,y2:t,strokeWidth:1,strokeDasharray:5.5,stroke:a,opacity:.5,visibility:e.state.displayOfLine},Rs(f))));var g=gh(e.props.styles,{theme:e.props.theme});if(!e.props.showXAxisLablesTooltip)try{document.getElementById(e._tooltipId)&&document.getElementById(e._tooltipId).remove()}catch(t){}if(!e.props.wrapXAxisLables&&e.props.showXAxisLablesTooltip){var m=ss(r).call(n);try{document.getElementById(e._tooltipId)&&document.getElementById(e._tooltipId).remove()}catch(t){}var y={tooltipCls:g.tooltip,id:e._tooltipId,xAxis:m};m&&bs(y)}return v},e._getCircleRadius=function(t,n,i,r){var o=e.state,u=o.isCircleClicked,a=o.nearestCircleToHighlight,s=o.activePoint;return e._legendHighlighted(r)?u&&a===t?1:a===t||s===i?n:0:0},e._closeCallout=function(){e.setState({isCalloutVisible:!1})},e._legendHighlighted=function(t){return e._getHighlightedLegend().includes(t)},e._noLegendHighlighted=function(){return 0===e._getHighlightedLegend().length},e._addDefaultColors=function(t){return t?t.map((function(t,n){var i,r,u;return u=void 0===t.color?mf(n,0,null===(i=e.props.theme)||void 0===i?void 0:i.isInverted):yf(t.color,null===(r=e.props.theme)||void 0===r?void 0:r.isInverted),(0,o.Cl)((0,o.Cl)({},t),{color:u})})):[]},e._handleFocus=function(t,n,i){var r=e.props.data.lineChartData[t].data[n],u=r.x,a=r.y,s=r.xAxisCalloutData,l=u instanceof Date?Hs(u,e.props.useUTC):u,c=u instanceof Date?u.getTime():u,f=e._calloutPoints.find((function(t){return t.x===c}));f.values=f.values.filter((function(t){return t.y===a}));var h=e._getFilteredLegendValues(f.values);e.setState({refSelected:"#".concat(i),isCalloutVisible:!0,hoverXValue:s||l,YValueHover:h,stackCalloutProps:(0,o.Cl)((0,o.Cl)({},f),{values:h}),dataPointCalloutProps:(0,o.Cl)((0,o.Cl)({},f),{values:h}),activePoint:i})},e._getFilteredLegendValues=function(t){e._noLegendHighlighted()||t.filter((function(t){return e._legendHighlighted(t.legend)}))},e._handleBlur=function(){e.setState({refSelected:null,isCalloutVisible:!1,hoverXValue:void 0,YValueHover:[],stackCalloutProps:void 0,dataPointCalloutProps:void 0,activePoint:""})},e._getChartTitle=function(){var t=e.props.data,n=t.chartTitle,i=t.lineChartData;return(n?"".concat(n,". "):"")+"Area chart with ".concat((null==i?void 0:i.length)||0," data series. ")},Js(e),e._createSet=(0,dn.J9)(e._createDataSet),e.state={selectedLegends:(null===(i=n.legendProps)||void 0===i?void 0:i.selectedLegends)||[],activeLegend:void 0,hoverXValue:"",isCalloutVisible:!1,refSelected:null,YValueHover:[],lineXValue:0,displayOfLine:ph.hide,isCircleClicked:!1,nearestCircleToHighlight:null,isShowCalloutPending:!1,activePoint:""},In("AREA CHART",n,{showYAxisGridLines:"Dont use this property. Lines are drawn by default"}),e._uniqueIdForGraph=g("areaChart_"),e._verticalLineId=g("verticalLine_"),e._circleId=g("circle"),e._rectId=g("rectangle"),e._tooltipId=g("AreaChartTooltipID"),e._enableComputationOptimization=!0,e._firstRenderOptimization=!0,e._emptyChartId=g("_AreaChart_empty"),e._cartesianChartRef=u.createRef(),e}return(0,o.C6)(n,t),n.prototype.componentDidUpdate=function(t){var n,i,e;Is(null===(n=t.legendProps)||void 0===n?void 0:n.selectedLegends,null===(i=this.props.legendProps)||void 0===i?void 0:i.selectedLegends)||this.setState({selectedLegends:(null===(e=this.props.legendProps)||void 0===e?void 0:e.selectedLegends)||[]}),this.state.isShowCalloutPending&&this.setState({refSelected:"#".concat(this._highlightedCircleId),isCalloutVisible:!0,isShowCalloutPending:!1})},n.prototype.render=function(){var t=this;if(!this._isChartEmpty()){var n=this.props.data.lineChartData,i=this._addDefaultColors(n),e=this._createSet(i),r=e.colors,a=e.opacity,s=e.stackedInfo,l=e.calloutPoints;this._calloutPoints=l;var c=xs(i);this._colors=r,this._opacity=a,this._stackedData=s.stackedData;var f=this._getLegendData(i),h={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat},d=(0,o.Cl)({target:this.state.refSelected,isCalloutVisible:this.state.isCalloutVisible,directionalHint:x.topAutoEdge,YValueHover:this.state.YValueHover,hoverXValue:this.state.hoverXValue,id:"toolTip".concat(this._uniqueCallOutID),gapSpace:15,isBeakVisible:!1,onDismiss:this._closeCallout,"data-is-focusable":!0,xAxisCalloutAccessibilityData:this.state.xAxisCalloutAccessibilityData},this.props.calloutProps);return u.createElement(_f,(0,o.Cl)({},this.props,{chartTitle:this._getChartTitle(),points:i,chartType:es.AreaChart,calloutProps:d,legendBars:f,createYAxis:ds,isCalloutForStack:!0,xAxisType:c?rs.DateAxis:rs.NumericAxis,tickParams:h,maxOfYVal:s.maxOfYVal,getGraphData:this._getGraphData,getDomainNRangeValues:this._getDomainNRangeValues,createStringYAxis:ps,getmargins:this._getMargins,getMinMaxOfYAxis:ks,customizedCallout:this._getCustomizedCallout(),onChartMouseLeave:this._handleChartMouseLeave,enableFirstRenderOptimization:this.props.enablePerfOptimization&&this._firstRenderOptimization,ref:this._cartesianChartRef,children:function(n){t._xAxisRectScale=n.xScale;var i=t._xAxisRectScale.ticks(),e=t._xAxisRectScale(i[i.length-1]),r=n.containerHeight-t.margins.top;return u.createElement(u.Fragment,null,u.createElement("g",null,u.createElement("rect",{id:t._rectId,width:e,height:r,fill:"transparent",onMouseMove:t._onRectMouseMove,onMouseOut:t._onRectMouseOut,onMouseOver:t._onRectMouseMove})),u.createElement("g",null,t._chart))}}))}return u.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"})},Object.defineProperty(n.prototype,"chartContainer",{get:function(){var t;return(null===(t=this._cartesianChartRef.current)||void 0===t?void 0:t.chartContainer)||null},enumerable:!1,configurable:!0}),n.prototype._onLegendHover=function(t){this.setState({activeLegend:t})},n.prototype._onLegendLeave=function(){this.setState({activeLegend:void 0})},n.prototype._onLegendSelectionChange=function(t,n,i){var e,r;(null===(e=this.props.legendProps)||void 0===e?void 0:e.canSelectMultipleLegends)?this.setState({selectedLegends:t}):this.setState({selectedLegends:t.slice(-1)}),(null===(r=this.props.legendProps)||void 0===r?void 0:r.onChange)&&this.props.legendProps.onChange(t,n,i)},n.prototype._getHighlightedLegend=function(){return this.state.selectedLegends.length>0?this.state.selectedLegends:this.state.activeLegend?[this.state.activeLegend]:[]},n.prototype._getAriaLabel=function(t,n){var i,e=this.props.data.lineChartData[t],r=e.data[n],o=r.x instanceof Date?Hs(r.x,this.props.useUTC):r.x,u=r.xAxisCalloutData||o,a=e.legend,s=r.yAxisCalloutData||r.y;return(null===(i=r.callOutAccessibilityData)||void 0===i?void 0:i.ariaLabel)||"".concat(u,". ").concat(a,", ").concat(s,".")},n.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.lineChartData&&this.props.data.lineChartData.length>0&&0===this.props.data.lineChartData.filter((function(t){return 0===t.data.length})).length)},n.defaultProps={useUTC:!0},n}(u.Component),bh=(0,r.I)(yh,(function(t){return{tooltip:(0,o.Cl)((0,o.Cl)({},t.theme.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:t.theme.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"})}})),xh=function(t,n){var i=t.color;return{arcRoot:{fill:i},arcRootFocussed:{fill:i,stroke:(null==n?void 0:n.palette.black)||$t.bp.black,strokeWidth:2},arc:{outline:"none"},arcText:{fill:(null==n?void 0:n.palette.black)||$t.bp.black,outline:"none"}}},Ch=function(t){function n(n){var i=t.call(this,n)||this;return i.updateChart=function(t){Mh(t)},i._onFocus=function(){i.setState({isArcFocused:!0})},i._onBlur=function(){i.setState({isArcFocused:!1})},i.state={isArcFocused:!1},i._arcId=g("piechart_arc"),i}return(0,o.C6)(n,t),n.getDerivedStateFromProps=function(t){return Mh(t),null},n.prototype.render=function(){var t,n=this,i=this.props.arc,e=(0,a.Z)()((function(t){return xh(t,n.props.theme)}),(0,o.Cl)({},this.props));return u.createElement("path",{d:i(this.props.data),className:"".concat(this.state.isArcFocused?e.arcRootFocussed:e.arcRoot),onClick:null===(t=this.props.data)||void 0===t?void 0:t.data.onClick})},n.defaultProps={arc:rf()},n}(u.Component),wh=function(t){function n(n){var i=t.call(this,n)||this;return i._isRTL=(0,s.jI)(),i._arcId=g("piechart_arc"),i}return(0,o.C6)(n,t),n.prototype.render=function(){var n,i,e=this,r=this.props,o=r.data,s=r.culture,l=rf().centroid({endAngle:(null==o?void 0:o.endAngle)||0,startAngle:(null==o?void 0:o.startAngle)||0,padAngle:null==o?void 0:o.padAngle,innerRadius:(null===(n=this.props)||void 0===n?void 0:n.outerRadius)||0,outerRadius:(null===(i=this.props)||void 0===i?void 0:i.outerRadius)||4}),c=l[0],f=l[1],h=(0,a.Z)()((function(t){return xh(t,e.props.theme)})),d=(((null==o?void 0:o.startAngle)||0)+((null==o?void 0:o.endAngle)||0))/2,v="".concat(null==o?void 0:o.data.x,"-").concat((0,Jn.U)(null==o?void 0:o.data.y,s));return u.createElement("g",{className:"".concat(h.arc," arc"),"data-is-focusable":!0,id:this._arcId,onFocus:this._onFocus,onBlur:this._onBlur,"aria-label":v,role:"img"},t.prototype.render.call(this),u.createElement(Tf,{content:v,textProps:{x:c,y:f,dominantBaseline:d>Math.PI/2&&d<3*Math.PI/2?"hanging":"auto",textAnchor:!this._isRTL&&d>Math.PI||this._isRTL&&d<Math.PI?"end":"start","aria-label":"".concat(null==o?void 0:o.data.x,"-").concat((0,Jn.U)(null==o?void 0:o.data.y,s)),className:h.arcText},isTooltipVisibleProp:this.state.isArcFocused,shouldReceiveFocus:!1,maxWidth:40,wrapContent:ms}))},n}(Ch);function Mh(t){t.arc.innerRadius(t.innerRadius),t.arc.outerRadius(t.outerRadius)}var kh,Sh=function(t){function n(n){var i=t.call(this,n)||this;return i.arcGenerator=function(t,n){return u.createElement(wh,{culture:i.props.culture,key:n,data:t,innerRadius:i.props.innerRadius,outerRadius:i.props.outerRadius,color:"".concat(i.colors(n)),theme:i.props.theme})},i}return(0,o.C6)(n,t),n.prototype.render=function(){var t=this,n=this.props,i=n.pie,e=n.data,r=n.width,o=n.height,a=n.chartTitle,s=n.theme,l=[];if(e&&!this.props.colors)for(var c=0;c<e.length;c++)l.push(mf(c,0,null==s?void 0:s.isInverted));var f=this.props.colors,h=void 0===f?l:f;this.colors=qu().range(h.map((function(t){return yf(t)})));var d=i(e),v="translate(".concat(r/2,", ").concat(o/2,")");return u.createElement(bl,{direction:Ws.domOrder},u.createElement("svg",{width:r,height:o,"aria-label":a},u.createElement("g",{className:"pie",transform:v},d.map((function(n,i){return t.arcGenerator(n,i)})))))},n.defaultProps={pie:jc().padAngle(.01).sort(null).value((function(t){return t.y}))},n}(u.Component),Ah=(0,a.Z)(),Lh=function(t){function n(n){var i=t.call(this,n)||this;return i._emptyChartId=g("_PieChart_empty"),i}return(0,o.C6)(n,t),n.prototype.render=function(){var t=this.props,n=t.data,i=t.width,e=t.height,r=t.colors,o=t.chartTitle,a=this.props,s=a.theme,l=a.className,c=a.styles,f=a.culture;this._classNames=Ah(c,{theme:s,width:i,height:e,className:l});var h=Math.min(i-80,e-32)/2;return this._isChartEmpty()?u.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):u.createElement("div",{className:this._classNames.root},this.props.chartTitle&&u.createElement("p",{className:this._classNames.chartTitle},this.props.chartTitle),u.createElement(Sh,{culture:f,width:i,height:e,outerRadius:h,innerRadius:1,data:n,colors:r,chartTitle:o,theme:s}))},n.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.length>0&&this.props.data.filter((function(t){return t.y>0})).length>0)},n.defaultProps={data:[],width:600,height:350},n}(u.Component),Vh=(0,r.I)(Lh,(function(t){var n=t.className,i=t.theme,e=t.width+30,r=t.height+10;return{root:[i.fonts.medium,"ms-PieChart",n,{width:e+40}],chart:[{padding:20,width:e,height:r,boxSizing:"content-box"}],chartTitle:[(0,o.Cl)({textAlign:"center"},i.fonts.mediumPlus)]}}));!function(t){t.PartToWhole="part-to-whole",t.AbsoluteScale="absolute-scale"}(kh||(kh={}));var Dh,Nh=(0,a.Z)(),Th=function(t){function n(n){var i=t.call(this,n)||this;return i._isRTL=(0,s.jI)(),i._adjustProps=function(){var t=i.props,n=t.theme,e=t.className,r=t.styles,o=t.width,u=t.barHeight;i._classNames=Nh(r,{legendColor:i.state.color,theme:n,width:o,className:e,barHeight:u})},i._getLegendData=function(t,n,e){var r=[e.blueLight,e.blue,e.blueMid,e.red,e.black],a=[];return t.forEach((function(t,e){var o=t.chartData.filter((function(t){return!t.placeHolder}));o.length<3?void 0!==n[e]&&n[e]&&o.forEach((function(t,n){var e,o,u=t.color?t.color:r[Math.floor(4*Math.random()+1)];if(i.props.enableGradient&&(u=(null===(e=t.gradient)||void 0===e?void 0:e[0])||Us(n,0,null===(o=i.props.theme)||void 0===o?void 0:o.isInverted)[0]),!(a.filter((function(n){return n.title===t.legend&&n.color===u})).length>0)){var s={title:t.legend,color:u,action:function(){i._onClick(t.legend)},hoverAction:function(){i._handleChartMouseLeave(),i._onHover(t.legend)},onMouseOutAction:function(){i._onLeave()}};a.push(s)}})):o.forEach((function(t,n){var e,o,u=t.color?t.color:r[Math.floor(4*Math.random()+1)];if(i.props.enableGradient&&(u=(null===(e=t.gradient)||void 0===e?void 0:e[0])||Us(n,0,null===(o=i.props.theme)||void 0===o?void 0:o.isInverted)[0]),!(a.filter((function(n){return n.title===t.legend&&n.color===u})).length>0)){var s={title:t.legend,color:u,action:function(){i._onClick(t.legend)},hoverAction:function(){i._handleChartMouseLeave(),i._onHover(t.legend)},onMouseOutAction:function(){i._onLeave()}};a.push(s)}}))})),u.createElement(Ac,(0,o.Cl)({legends:a,overflowProps:i.props.legendsOverflowProps,focusZonePropsInHoverCard:i.props.focusZonePropsForLegendsInHoverCard,overflowText:i.props.legendsOverflowText},i.props.legendProps))},i._handleChartMouseLeave=function(){i._calloutAnchorPoint=null,i.setState({isCalloutVisible:!1})},i._closeCallout=function(){i.setState({isCalloutVisible:!1})},i._legendHighlighted=function(t){return i.state.selectedLegend===t||""===i.state.selectedLegend&&i.state.activeLegend===t},i._noLegendHighlighted=function(){return""===i.state.selectedLegend&&""===i.state.activeLegend},i._getAriaLabel=function(t){var n,i=t.xAxisCalloutData||t.legend,e=t.yAxisCalloutData||t.data||0;return(null===(n=t.callOutAccessibilityData)||void 0===n?void 0:n.ariaLabel)||(i?"".concat(i,", "):t.placeHolder?"Remaining, ":"")+"".concat(e,".")},i._computeLongestBarTotalValue=function(){var t=0;return i.props.data.forEach((function(n){var i=n.chartData.reduce((function(t,n){return t+(n.data?n.data:0)}),0);t=Math.max(t,i)})),t},i.state={isCalloutVisible:!1,refArray:[],selectedLegend:"",activeLegend:"",refSelected:null,dataForHoverCard:0,color:"",xCalloutValue:"",yCalloutValue:"",calloutLegend:"",barSpacingInPercent:0},i._onLeave=i._onLeave.bind(i),i._onBarLeave=i._onBarLeave.bind(i),i._calloutId=g("callout"),i.barChartSvgRef=u.createRef(),i._emptyChartId=g("_MSBC_empty"),i._barId=g("_MSBC_rect_"),i._barIdPlaceholderPartToWhole=g("_MSBC_rect_partToWhole_"),i._barIdEmpty=g("_MSBC_rect_empty"),i}return(0,o.C6)(n,t),n.prototype.componentDidMount=function(){var t,n=(null===(t=this.barChartSvgRef.current)||void 0===t?void 0:t.getBoundingClientRect().width)||0;if(n){var i=3/n*100;this.setState({barSpacingInPercent:i})}},n.prototype.render=function(){var t=this;if(!this._isChartEmpty()){var n=this.props,i=n.data,e=n.theme,r=n.culture;this._adjustProps();var a=e.palette,s=this._getLegendData(i,this.props.hideRatio,a),l=this.state.isCalloutVisible;this._classNames=Nh(this.props.styles,{legendColor:this.state.color,theme:e,variant:this.props.variant,hideLabels:this.props.hideLabels});var c=this.state.xCalloutValue?this.state.xCalloutValue:this.state.calloutLegend,f=this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard;this._longestBarTotalValue=this._computeLongestBarTotalValue();var h=i.map((function(n,i){var e=t._createBarsAndLegends(n,t.props.barHeight,a,t.props.hideRatio[i],t.props.hideDenominator[i],t.props.href,i);return u.createElement("div",{key:i,id:"_MSBC_bar-".concat(i)},e)}));return u.createElement("div",{className:this._classNames.root,onMouseLeave:this._handleChartMouseLeave},h,!this.props.hideLegend&&u.createElement("div",{className:this._classNames.legendContainer},s),u.createElement(Kn,(0,o.Cl)({gapSpace:15,isBeakVisible:!1,target:this.state.refSelected,setInitialFocus:!0,hidden:!(!this.props.hideTooltip&&l),directionalHint:x.topAutoEdge,id:this._calloutId,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0,shouldUpdateWhenHidden:!0},this.props.calloutProps,Es(this.state.callOutAccessibilityData,"text",!1)),u.createElement(u.Fragment,null,this.props.onRenderCalloutPerDataPoint?this.props.onRenderCalloutPerDataPoint(this.state.dataPointCalloutProps):u.createElement(zs.ChartHoverCard,{Legend:c,YValue:f,color:this.state.color,culture:r}))))}return u.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"})},n.prototype._createBarsAndLegends=function(t,n,i,e,r,a,s){var l,c,f=this,h=(null===(l=t.chartData)||void 0===l?void 0:l.reduce((function(t,n){return t+((n.data||0)>0?1:0)}),0))||1,d=this.state.barSpacingInPercent*(h-1),v=this.props.culture,p=[i.blueLight,i.blue,i.blueMid,i.red,i.black],m=[],y=t.chartData.reduce((function(t,n){return t+(n.data?n.data:0)}),0),b=this.props.variant===kh.AbsoluteScale?this._longestBarTotalValue:y,x=0;if(t.chartData.map((function(t,n){var i=(t.data?t.data:0)/b*100||0;return i<1&&0!==i?i=1:i>99&&100!==i&&(i=99),x+=i})),this.props.variant===kh.AbsoluteScale){var C=0===b?0:(b-y)/b*100;C<1&&0!==C?C=1:C>99&&100!==C&&(C=99),x+=C}var w=0!==x?x/(100-d):1,M=0,k=0,S=t.chartData.map((function(t,e){var r,o,l,c,h=t.color?t.color:t.placeHolder?i.neutralLight:p[Math.floor(4*Math.random()+1)],d=h;f.props.enableGradient&&(h=(null===(r=t.gradient)||void 0===r?void 0:r[0])||Us(e,0,null===(o=f.props.theme)||void 0===o?void 0:o.isInverted)[0],d=(null===(l=t.gradient)||void 0===l?void 0:l[1])||Us(e,0,null===(c=f.props.theme)||void 0===c?void 0:c.isInverted)[1]);var v=t.data?t.data:0;e>0&&(M+=k),(k=v/b*100?v/b*100:0)<1&&0!==k?k=1/w:k>99&&100!==k?k=99/w:k/=w,m.push(M);var y=f.props.styles,x=!(!f._legendHighlighted(t.legend)&&!f._noLegendHighlighted()),C=t.placeHolder?f.props.theme.semanticColors.bodyText:h;f._classNames=Nh(y,{theme:f.props.theme,shouldHighlight:x,href:a,variant:f.props.variant,hideLabels:f.props.hideLabels});var S=g("MSBC_Gradient")+"_".concat(s,"_").concat(e);return u.createElement("g",{key:e,className:t.placeHolder?f._classNames.placeHolderOnHover:f._classNames.opacityChangeOnHover,ref:function(n){f._refCallback(n,t.legend)},"data-is-focusable":!f.props.hideTooltip&&x,onFocus:f._onBarFocus.bind(f,v,C,t),onBlur:f._onBarLeave,role:"img","aria-label":f._getAriaLabel(t),onMouseOver:f._onBarHover.bind(f,v,C,t),onMouseMove:f._onBarHover.bind(f,v,C,t),onMouseLeave:f._onBarLeave,onClick:a?t.placeHolder?void 0:f._redirectToUrl.bind(f,a):t.onClick},f.props.enableGradient&&u.createElement("defs",null,u.createElement("linearGradient",{id:S},u.createElement("stop",{offset:"0",stopColor:h}),u.createElement("stop",{offset:"100%",stopColor:d}))),u.createElement("rect",{key:e,id:"".concat(f._barId,"-").concat(s,"-").concat(e),x:"".concat(f._isRTL?100-m[e]-k-f.state.barSpacingInPercent*e:m[e]+f.state.barSpacingInPercent*e,"%"),y:0,width:k+"%",height:n,rx:f.props.roundCorners?3:0,fill:f.props.enableGradient?"url(#".concat(S,")"):h}))}));if(this.props.variant!==kh.AbsoluteScale||this.props.hideLabels)0===t.chartData.length&&S.push(u.createElement("g",{key:0,className:this._classNames.noData,onClick:this._redirectToUrl.bind(this,a)},u.createElement("rect",{key:0,id:this._barIdPlaceholderPartToWhole,x:"0%",y:0,width:"100%",height:n,fill:i.neutralLight,rx:this.props.roundCorners?3:0}))),0===y&&S.push(u.createElement("g",{key:"empty",className:this._classNames.noData,onClick:this._redirectToUrl.bind(this,a)},u.createElement("rect",{key:0,id:this._barIdEmpty,x:"0%",y:0,width:"100%",height:n,fill:i.neutralLight,rx:this.props.roundCorners?3:0})));else{var A=!1,L=0;this._noLegendHighlighted()?(A=!0,L=y):null===(c=t.chartData)||void 0===c||c.forEach((function(t){f._legendHighlighted(t.legend)&&(A=!0,L+=t.data?t.data:0)})),A&&S.push(u.createElement("text",{key:"text",x:"".concat(this._isRTL?100-(m[m.length-1]||0)-k-d:(m[m.length-1]||0)+k+d,"%"),textAnchor:"start",y:n/2,dominantBaseline:"central",transform:"translate(".concat(this._isRTL?-4:4,")"),className:this._classNames.barLabel,"aria-label":"Total: ".concat(L),role:"img"},Ps(L)))}var V=void 0!==e&&e,D=this.props.variant!==kh.AbsoluteScale&&!V&&2===t.chartData.length,N=this.props.variant!==kh.AbsoluteScale&&!V&&1===t.chartData.length,T=function(){return(0,Jn.U)(t.chartData[0].data?t.chartData[0].data:0,v)};return u.createElement("div",{className:this._classNames.singleChartRoot},u.createElement(bl,{direction:Ws.horizontal},u.createElement("div",{className:this._classNames.chartTitle},t.chartTitle&&u.createElement(Tl,{className:this._classNames.chartTitleLeft,content:t.chartTitle,accessibilityData:t.chartTitleAccessibilityData}),D&&u.createElement("div",(0,o.Cl)({},Es(t.chartDataAccessibilityData,"text",!1)),u.createElement("span",{className:this._classNames.ratioNumerator},T()),!r&&u.createElement("span",{className:this._classNames.ratioDenominator}," / "+(0,Jn.U)(y,v))),N&&u.createElement("div",(0,o.Cl)({className:this._classNames.ratioNumerator},Es(t.chartDataAccessibilityData,"text",!1)),T()))),u.createElement(bl,{direction:Ws.horizontal},u.createElement("div",{className:this._classNames.chartWrapper},u.createElement("svg",{ref:this.barChartSvgRef,className:this._classNames.chart,"aria-label":null==t?void 0:t.chartTitle},S))))},n.prototype._onBarFocus=function(t,n,i){var e=this;this.state.refArray.forEach((function(r){r.legendText===i.legend&&e.setState({refSelected:r.refElement,isCalloutVisible:""===e.state.selectedLegend||e.state.selectedLegend===i.legend,calloutLegend:i.legend,dataForHoverCard:t,color:n,xCalloutValue:i.xAxisCalloutData,yCalloutValue:i.yAxisCalloutData,dataPointCalloutProps:(0,o.Cl)((0,o.Cl)({},i),{color:n}),callOutAccessibilityData:i.callOutAccessibilityData})}))},n.prototype._refCallback=function(t,n){this.state.refArray.push({legendText:n,refElement:t})},n.prototype._onHover=function(t){this.setState({activeLegend:t})},n.prototype._onClick=function(t){this.state.selectedLegend===t?this.setState({selectedLegend:""}):this.setState({selectedLegend:t})},n.prototype._onLeave=function(){this.setState({activeLegend:""})},n.prototype._onBarHover=function(t,n,i,e){e.persist(),this._calloutAnchorPoint!==i&&(this._calloutAnchorPoint=i,this.setState({refSelected:e,isCalloutVisible:""===this.state.selectedLegend||this.state.selectedLegend===i.legend,calloutLegend:i.legend,dataForHoverCard:t,color:n,xCalloutValue:i.xAxisCalloutData,yCalloutValue:i.yAxisCalloutData,dataPointCalloutProps:(0,o.Cl)((0,o.Cl)({},i),{color:n}),callOutAccessibilityData:i.callOutAccessibilityData}))},n.prototype._onBarLeave=function(){},n.prototype._redirectToUrl=function(t){t&&(window.location.href=t)},n.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.length>0&&0===this.props.data.filter((function(t){return t.chartData&&0===t.chartData.length&&(!t.chartTitle||""===t.chartTitle)})).length)},n.defaultProps={barHeight:12,hideRatio:[],hideDenominator:[]},n}(u.Component),Eh=(0,r.I)(Th,(function(t){var n=t.className,i=t.width,e=t.barHeight,r=t.shouldHighlight,u=t.theme,a=t.href,s=t.variant,l=t.hideLabels;return{root:[u.fonts.medium,"ms-StackedBarChart",{display:"flex",flexDirection:"column",width:i||"100%"},n],items:{marginBottom:"11px"},chart:{width:"100%",height:e||12,display:"block",overflow:"visible"},chartTitle:(0,o.Cl)((0,o.Cl)({},u.fonts.small),{display:"flex",justifyContent:"space-between"}),chartTitleLeft:{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",display:"block",color:u.palette.neutralPrimary,marginBottom:s===kh.AbsoluteScale?"4px":"5px"},singleChartRoot:{width:i||"100%",display:"flex",flexDirection:"column",marginBottom:s===kh.AbsoluteScale?"16px":"10px"},opacityChangeOnHover:{opacity:r?"":"0.1",cursor:a?"pointer":"default",selectors:{"&:focus":{stroke:u.palette.black,strokeWidth:"2px"}}},ratioNumerator:{fontSize:$t.s.medium,fontWeight:$t.BO.semibold,color:u.palette.neutralPrimary},ratioDenominator:{fontSize:$t.s.medium,color:u.palette.neutralPrimary},placeHolderOnHover:{opacity:r?"":"0.1",cursor:"default",selectors:{"&:focus":{stroke:u.palette.black,strokeWidth:"2px"}}},legendContainer:{margin:"5px 0px 0px 4px"},noData:{cursor:a?"pointer":"default"},barLabel:{fontSize:$t.s.small,fontWeight:$t.BO.semibold,fill:u.palette.neutralPrimary},chartWrapper:{paddingRight:s!==kh.AbsoluteScale||l?0:40}}})),Oh=(0,a.Z)(),Ph=function(t){function n(n){var i=t.call(this,n)||this;return i._isRTL=(0,s.jI)(),i._handleChartMouseLeave=function(){i._calloutAnchorPoint=null,i.setState({isCalloutVisible:!1})},i._closeCallout=function(){i.setState({isCalloutVisible:!1})},i._legendHighlighted=function(t){return i.state.selectedLegend===t||""===i.state.selectedLegend&&i.state.activeLegend===t},i._noLegendHighlighted=function(){return""===i.state.selectedLegend&&""===i.state.activeLegend},i._getAriaLabel=function(t){var n,i=t.xAxisCalloutData||t.legend,e=t.yAxisCalloutData||t.data||0;return(null===(n=t.callOutAccessibilityData)||void 0===n?void 0:n.ariaLabel)||(i?"".concat(i,", "):"")+"".concat(e,".")},i.state={isCalloutVisible:!1,selectedLegend:"",activeLegend:"",refSelected:null,dataForHoverCard:0,color:"",xCalloutValue:"",yCalloutValue:"",calloutLegend:"",barSpacingInPercent:0},i._refArray=[],i._onLeave=i._onLeave.bind(i),i._refCallback=i._refCallback.bind(i),i._onBarLeave=i._onBarLeave.bind(i),i._calloutId=g("callout"),i._emptyChartId=g("_SBC_empty"),i.barChartSvgRef=u.createRef(),i}return(0,o.C6)(n,t),n.prototype.componentDidMount=function(){var t,n=(null===(t=this.barChartSvgRef.current)||void 0===t?void 0:t.getBoundingClientRect().width)||0;if(n){var i=3/n*100;this.setState({barSpacingInPercent:i})}},n.prototype.render=function(){if(!this._isChartEmpty()){this._adjustProps();var t=this.props,n=t.data,i=t.benchmarkData,e=t.targetData,r=t.hideNumberDisplay,a=t.ignoreFixStyle,s=t.culture,l=this.props.theme.palette,c=a||n.chartData.length>2?this.props.barHeight:12;i&&(i.color=i.color||l.neutralTertiary),e&&(e.color=e.color||l.neutralSecondary);var f=this._createBarsAndLegends(n,c,l,i,e),h=!1===r&&!a&&2===n.chartData.length,d=!1===r&&!a&&1===n.chartData.length,v=n.chartData.reduce((function(t,n){return t+(n.data?n.data:0)}),0),p=0;i&&v&&(p=i.data/v*100);var g=0;e&&v&&(g=e.data/v*100);var m=!1===this.props.hideLegend&&(a||n.chartData.length>2);this._classNames=Oh(this.props.styles,{legendColor:this.state.color,theme:this.props.theme,benchmarkColor:i?i.color:"",benchmarkRatio:p,targetColor:e?e.color:"",targetRatio:g,showTriangle:!(!i&&!e)});var y=function(){return(0,Jn.U)(n.chartData[0].data?n.chartData[0].data:0,s)};return u.createElement("div",{className:this._classNames.root,onMouseLeave:this._handleChartMouseLeave},u.createElement(bl,{direction:Ws.horizontal},u.createElement("div",{className:this._classNames.chartTitle},n.chartTitle&&u.createElement(Tl,{className:this._classNames.chartTitleLeft,content:n.chartTitle,accessibilityData:n.chartTitleAccessibilityData}),h&&u.createElement("div",(0,o.Cl)({},Es(n.chartDataAccessibilityData,"text",!1)),u.createElement("span",{className:this._classNames.ratioNumerator},y()),!this.props.hideDenominator&&u.createElement("span",{className:this._classNames.ratioDenominator}," / "+(0,Jn.U)(v,s))),d&&u.createElement("div",(0,o.Cl)({className:this._classNames.ratioNumerator},Es(n.chartDataAccessibilityData,"text",!1)),y())),(i||e)&&u.createElement("div",{className:this._classNames.benchmarkContainer},i&&u.createElement("div",{className:this._classNames.benchmark,role:"text"}),e&&u.createElement("div",{className:this._classNames.target,role:"text"}))),u.createElement(bl,{direction:Ws.horizontal},u.createElement("div",null,u.createElement("svg",{ref:this.barChartSvgRef,className:this._classNames.chart,"aria-label":null==n?void 0:n.chartTitle},u.createElement("g",null,f[0]),u.createElement(Kn,(0,o.Cl)({gapSpace:15,isBeakVisible:!1,target:this.state.refSelected,setInitialFocus:!0,hidden:!(!this.props.hideTooltip&&this.state.isCalloutVisible),directionalHint:x.topAutoEdge,id:this._calloutId,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0,shouldUpdateWhenHidden:!0},this.props.calloutProps,Es(this.state.callOutAccessibilityData,"text",!1)),u.createElement(u.Fragment,null,this.props.onRenderCalloutPerDataPoint?this.props.onRenderCalloutPerDataPoint(this.state.dataPointCalloutProps):u.createElement(zs.ChartHoverCard,{Legend:this.state.xCalloutValue?this.state.xCalloutValue:this.state.calloutLegend,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard,color:this.state.color,culture:s})))))),m&&u.createElement("div",{className:this._classNames.legendContainer},f[1]))}return u.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"})},n.prototype._adjustProps=function(){this._classNames=Oh(this.props.styles,{legendColor:this.state.color,theme:this.props.theme,width:this.props.width,barHeight:this.props.barHeight,className:this.props.className})},n.prototype._createBarsAndLegends=function(t,n,i,e,r){var a,s=this,l=(null===(a=t.chartData)||void 0===a?void 0:a.reduce((function(t,n){return t+((n.data||0)>0?1:0)}),0))||1,c=this.state.barSpacingInPercent*(l-1),f=[i.blueLight,i.blue,i.blueMid,i.red,i.black],h=[],d=[],v=t.chartData.reduce((function(t,n){return t+(n.data?n.data:0)}),0),p=0,m=0,y=0;t.chartData.map((function(t,n){var i=t.data?t.data:0;return(m=i/v*100)<1&&0!==m?m=1:m>99&&100!==m&&(m=99),y+=m}));var b=0!==y?y/(100-c):1,x=t.chartData.map((function(t,i){var e,r,o,a,l=t.color?t.color:f[Math.floor(4*Math.random()+1)],c=l;s.props.enableGradient&&(l=(null===(e=t.gradient)||void 0===e?void 0:e[0])||Us(i,0,null===(r=s.props.theme)||void 0===r?void 0:r.isInverted)[0],c=(null===(o=t.gradient)||void 0===o?void 0:o[1])||Us(i,0,null===(a=s.props.theme)||void 0===a?void 0:a.isInverted)[1]);var y=t.data?t.data:0,x={title:t.legend,color:l,action:v>0?function(){s._onClick(t.legend)}:void 0,hoverAction:v>0?function(){s._handleChartMouseLeave(),s._onHover(t.legend)}:void 0,onMouseOutAction:v>0?function(){s._onLeave()}:void 0};t.placeHolder||h.push(x),i>0&&(p+=m),(m=y/v*100)<1&&0!==m?m=1/b:m>99&&100!==m?m=99/b:m/=b,d.push(p);var C=s.props.styles,w=!(!s._legendHighlighted(t.legend)&&!s._noLegendHighlighted());s._classNames=Oh(C,{theme:s.props.theme,shouldHighlight:w,href:s.props.href});var M=g("SBC_Gradient")+"_".concat(i);return u.createElement("g",{key:i,className:s._classNames.opacityChangeOnHover,ref:function(t){s._refCallback(t,x.title)},"data-is-focusable":!s.props.hideTooltip&&w,onFocus:s._onBarFocus.bind(s,y,l,t),onBlur:s._onBarLeave,"aria-label":s._getAriaLabel(t),role:"img",onMouseOver:s._onBarHover.bind(s,y,l,t),onMouseMove:s._onBarHover.bind(s,y,l,t),onMouseLeave:s._onBarLeave,pointerEvents:"all",onClick:s.props.href?s._redirectToUrl.bind(s,s.props.href):t.onClick},s.props.enableGradient&&u.createElement("defs",null,u.createElement("linearGradient",{id:M},u.createElement("stop",{offset:"0",stopColor:l}),u.createElement("stop",{offset:"100%",stopColor:c}))),u.createElement("rect",{key:i,id:g("_SBC_bar"),x:"".concat(s._isRTL?100-d[i]-m-s.state.barSpacingInPercent*i:d[i]+s.state.barSpacingInPercent*i,"%"),y:0,width:m+"%",height:n,rx:s.props.roundCorners?3:0,fill:s.props.enableGradient?"url(#".concat(M,")"):l}))}));this._addLegend(h,e),this._addLegend(h,r);var C=u.createElement(Ac,(0,o.Cl)({legends:h,enabledWrapLines:this.props.enabledLegendsWrapLines,overflowProps:this.props.legendsOverflowProps,focusZonePropsInHoverCard:this.props.focusZonePropsForLegendsInHoverCard,overflowText:this.props.legendsOverflowText},this.props.legendProps));return[0===v?[this._generateEmptyBar(n,this.props.barBackgroundColor?this.props.barBackgroundColor:i.neutralLight)]:x,C]},n.prototype._onBarFocus=function(t,n,i){var e=this;this._refArray.forEach((function(r){r.index===i.legend&&e.setState({refSelected:r.refElement,isCalloutVisible:""===e.state.selectedLegend||e.state.selectedLegend===i.legend,calloutLegend:i.legend,dataForHoverCard:t,color:n,xCalloutValue:i.xAxisCalloutData,yCalloutValue:i.yAxisCalloutData,dataPointCalloutProps:(0,o.Cl)((0,o.Cl)({},i),{color:n}),callOutAccessibilityData:i.callOutAccessibilityData})}))},n.prototype._addLegend=function(t,n){if(n){var i={title:n.legend,color:n.color,shape:"triangle"};t.push(i)}},n.prototype._generateEmptyBar=function(t,n){return u.createElement("g",{key:0,className:this._classNames.opacityChangeOnHover},u.createElement("rect",{key:0,id:g("_SBC_empty_bar_"),x:"0%",y:0,width:"100%",height:t,fill:n}))},n.prototype._refCallback=function(t,n){this._refArray.push({index:n,refElement:t})},n.prototype._onClick=function(t){this.state.selectedLegend===t?this.setState({selectedLegend:""}):this.setState({selectedLegend:t})},n.prototype._onHover=function(t){this.setState({activeLegend:t})},n.prototype._onLeave=function(){this.setState({activeLegend:""})},n.prototype._onBarHover=function(t,n,i,e){e.persist(),this._calloutAnchorPoint!==i&&(this._calloutAnchorPoint=i,this.setState({refSelected:e,isCalloutVisible:""===this.state.selectedLegend||this.state.selectedLegend===i.legend,calloutLegend:i.legend,dataForHoverCard:t,color:n,xCalloutValue:i.xAxisCalloutData,yCalloutValue:i.yAxisCalloutData,dataPointCalloutProps:(0,o.Cl)((0,o.Cl)({},i),{color:n}),callOutAccessibilityData:i.callOutAccessibilityData}))},n.prototype._onBarLeave=function(){},n.prototype._redirectToUrl=function(t){t&&(window.location.href=t)},n.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.chartData&&this.props.data.chartData.length>0)},n.defaultProps={barHeight:12,hideNumberDisplay:!1,hideLegend:!1,ignoreFixStyle:!1},n}(u.Component),Bh=(0,r.I)(Ph,(function(t){var n,i,e=t.className,r=t.width,u=t.barHeight,a=t.shouldHighlight,s=t.theme,l=t.href,c=t.benchmarkColor,f=t.benchmarkRatio,h=t.targetColor,d=t.targetRatio,v=t.showTriangle;return{root:[s.fonts.medium,"ms-StackedBarChart",{width:r||"100%",display:"flex",flexDirection:"column"},e],chart:{width:"100%",height:u||12,display:"block",marginBottom:v?"16px":"10px",overflow:"visible"},chartTitle:(0,o.Cl)((0,o.Cl)({},s.fonts.small),{display:"flex",justifyContent:"space-between"}),chartTitleLeft:{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",display:"block",color:s.palette.neutralPrimary,marginBottom:"5px"},legendContainer:{margin:"4px 0px 0px 4px"},opacityChangeOnHover:{opacity:a?"":"0.1",cursor:l?"pointer":"default",selectors:{"&:focus":{stroke:s.palette.black,strokeWidth:"2px"}}},ratioNumerator:{fontSize:$t.s.medium,fontWeight:$t.BO.semibold,color:s.palette.neutralPrimary},ratioDenominator:{fontSize:$t.s.medium,color:s.palette.neutralPrimary},benchmarkContainer:{position:"relative",height:"7px",marginTop:"-3px",marginBottom:"-1px"},benchmark:{position:"absolute",left:"calc("+f+"% - 4px)",width:"0",height:"0",borderLeft:"4px solid transparent",borderRight:"4px solid transparent",borderTop:"7px solid",borderTopColor:c,marginBottom:"4px",selectors:(n={},n[$t.up]={border:"0px",height:"7px",width:"7px",clipPath:"polygon(50% 100%, 0 0, 100% 0)",backgroundImage:"linear-gradient(to right, ".concat(c,", ").concat(c,")")},n)},target:{position:"absolute",left:"calc("+d+"% - 4px)",width:"0",height:"0",borderLeft:"4px solid transparent",borderRight:"4px solid transparent",borderTop:"7px solid",borderTopColor:h,marginBottom:"4px",selectors:(i={},i[$t.up]={border:"0px",height:"7px",width:"7px",clipPath:"polygon(50% 100%, 0 0, 100% 0)",backgroundImage:"linear-gradient(to right, ".concat(h,", ").concat(h,")")},i)}}})),Fh=function(t,n){var i=function(t){if(!(t.length<2)){t=t.sort((function(t,n){return t instanceof Date?t.getTime()-n.getTime():t-n}));for(var n=Number.MAX_VALUE,i=1;i<t.length;i++){var e=t[i]instanceof Date?t[i].getTime()-t[i-1].getTime():t[i]-t[i-1];n=Math.min(n,e)}return[n,t[0]instanceof Date?t[t.length-1].getTime()-t[0].getTime():t[t.length-1]-t[0]]}}(t);if(!i||0===i[1])return 16;var e=i[0],r=i[1];return Math.round(n*e/(2*r+e))};!function(t){t.show="visibility",t.hide="hidden"}(Dh||(Dh={}));var _h,Hh=(0,a.Z)(),Rh=function(t){function n(n){var i,e=t.call(this,n)||this;return e._isRtl=(0,s.jI)(),e._getDomainNRangeValues=function(t,n,i,e,r,o,u,a,s){return o===rs.NumericAxis?function(t,n,i,e,r){var o=pi(t,(function(t){return t.x})),u=vi(t,(function(t){return t.x})),a=n.left,s=i-n.right;return e?{dStartValue:o,dEndValue:u,rStartValue:a,rEndValue:s}:{dStartValue:u,dEndValue:o,rStartValue:a,rEndValue:s}}(t,n,i,r):o===rs.DateAxis?Ms(t,n,i,r,a,e):ws(n,i,r)},e._createLine=function(t,n,i,r,o){var a;void 0===i&&(i=0),void 0===r&&(r=0);var s=e._xAxisType===rs.StringAxis,l=e._getScales(i,r).xBarScale,c=e._createColors(),f=e.props.theme,h=e.props,d=h.data,v=h.lineLegendColor,p=void 0===v?f.palette.yellow:v,m=h.lineLegendText,y=[],b=[];d&&d.forEach((function(t,n){var i;t.lineData&&t.lineData.y&&y.push({x:t.x,y:t.lineData.y,useSecondaryYScale:null!==(i=t.lineData.useSecondaryYScale)&&void 0!==i&&i,point:t,index:n})}));var x=Lf().x((function(n){return s?l(n.x)+.5*l.bandwidth():t(n.x)})).y((function(t){return t.useSecondaryYScale&&o?o(t.y):n(t.y)})),C=!(!e._legendHighlighted(m)&&!e._noLegendHighlighted()),w=(null===(a=e.props.lineOptions)||void 0===a?void 0:a.lineBorderWidth)?Number.parseFloat(e.props.lineOptions.lineBorderWidth.toString()):0;w>0&&b.push(u.createElement("path",{key:g("_VBC_line_"),id:g("_VBC_line_"),opacity:C?1:.1,d:x(y),fill:"transparent",strokeLinecap:"square",strokeWidth:3+2*w,stroke:f.semanticColors.bodyBackground})),b.push(u.createElement("path",{key:g("_VBC_line_"),id:g("_VBC_line_"),opacity:C?1:.1,d:x(y),fill:"transparent",strokeLinecap:"square",strokeWidth:3,stroke:p}));var M=y.map((function(i,r){var a,f={refElement:null};return u.createElement("circle",{key:r,id:g("_VBC_point_"),cx:s?l(i.x)+.5*l.bandwidth():t(i.x),cy:i.useSecondaryYScale&&o?o(i.y):n(i.y),onMouseOver:e._legendHighlighted(m)?e._lineHover.bind(e,i.point):e._onBarHover.bind(e,i.point,c(i.y)),onMouseOut:e._onBarLeave,r:e._getCircleVisibilityAndRadius(i.x,m).radius,stroke:p,fill:e.props.theme.semanticColors.bodyBackground,strokeWidth:3,visibility:e._getCircleVisibilityAndRadius(i.x,m).visibility,onClick:null===(a=i.point.lineData)||void 0===a?void 0:a.onClick,"data-is-focusable":e._legendHighlighted(m),ref:function(t){return f.refElement=t},onFocus:e._lineFocus.bind(e,i.point,f),onBlur:e._handleChartMouseLeave})}));return u.createElement(u.Fragment,null,b,M)},e._getCircleVisibilityAndRadius=function(t,n){var i=e.state.activeXdataPoint;return e._noLegendHighlighted()?{visibility:i===t?Dh.show:Dh.hide,radius:8}:t===i&&e._legendHighlighted(n)?{visibility:Dh.show,radius:8}:e._legendHighlighted(n)?{visibility:Dh.show,radius:.3}:{visibility:Dh.hide,radius:0}},e._checkForLine=function(){return e.props.data.some((function(t){var n;return void 0!==(null===(n=null==t?void 0:t.lineData)||void 0===n?void 0:n.y)}))},e._getMargins=function(t){e.margins=t},e._renderContentForBothLineAndBars=function(t){var n=e._getCalloutContentForLineAndBar(t),i=n.YValueHover,r=n.hoverXValue,a=i.map((function(t,n){return u.createElement(zs.ChartHoverCard,(0,o.Cl)({key:n,Legend:t.legend},0===n&&{XValue:"".concat(r||t.data)},{color:t.color,YValue:t.data||t.y,culture:e.props.culture}))}));return u.createElement(u.Fragment,null,a)},e._renderContentForOnlyBars=function(t){var n=e.props.useSingleColor,i=void 0!==n&&n;return u.createElement(u.Fragment,null,u.createElement(zs.ChartHoverCard,{XValue:t.xAxisCalloutData||t.x,Legend:t.legend,YValue:t.yAxisCalloutData||t.y,color:!i&&t.color?t.color:e._createColors()(t.y),culture:e.props.culture}))},e._renderCallout=function(t){return t?e._isHavingLine?e._renderContentForBothLineAndBars(t):e._renderContentForOnlyBars(t):null},e._getCustomizedCallout=function(){return e.props.onRenderCalloutPerDataPoint?e.props.onRenderCalloutPerDataPoint(e.state.dataPointCalloutProps,e._renderCallout):null},e._getGraphData=function(t,n,i,r,o){return e._bars=e._xAxisType===rs.NumericAxis?e._createNumericBars(i,r,o):e._xAxisType===rs.DateAxis?e._createDateBars(i,r,o):e._createStringBars(i,r,o)},e._refCallback=function(t,n){e._refArray.push({index:n,refElement:t})},e._getCalloutContentForLineAndBar=function(t){var n,i,r,o,u,a=[],s=e.props,l=s.theme,c=s.useSingleColor,f=void 0!==c&&c,h=s.enableGradient,d=e.props,v=d.data,p=d.lineLegendText,g=d.lineLegendColor,m=void 0===g?l.palette.yellow:g,y=v.filter((function(n){return n.x===t.x})),b=v.indexOf(y[0]),x=f?e._createColors()(1):y[0].color?y[0].color:e._createColors()(y[0].y);e._isHavingLine&&void 0!==(null===(n=y[0].lineData)||void 0===n?void 0:n.y)&&(e._legendHighlighted(p)||e._noLegendHighlighted())&&a.push({legend:p,color:m,y:null===(i=y[0].lineData)||void 0===i?void 0:i.y,data:null===(r=y[0].lineData)||void 0===r?void 0:r.yAxisCalloutData,yAxisCalloutData:null===(o=y[0].lineData)||void 0===o?void 0:o.yAxisCalloutData}),(e._legendHighlighted(y[0].legend)||e._noLegendHighlighted())&&a.push({legend:y[0].legend,y:y[0].y,color:h?f?Us(0,0)[0]:(null===(u=y[0].gradient)||void 0===u?void 0:u[0])||Us(b,0)[0]:x,data:y[0].yAxisCalloutData,yAxisCalloutData:y[0].yAxisCalloutData});var C=t.x instanceof Date?Hs(t.x,e.props.useUTC):t.x.toString();return{YValueHover:a,hoverXValue:t.xAxisCalloutData||C}},e._onBarLeave=function(){},e._handleChartMouseLeave=function(){e._calloutAnchorPoint=null,e.setState({isCalloutVisible:!1,activeXdataPoint:null,YValueHover:[],hoverXValue:""})},e._onBarFocus=function(t,n,i){var r=e._getCalloutContentForLineAndBar(t),o=r.YValueHover,u=r.hoverXValue;e._refArray.forEach((function(r,a){r.index===t.legend&&n===a&&e.setState({refSelected:r.refElement,isCalloutVisible:e._noLegendHighlighted()||e._legendHighlighted(t.legend),calloutLegend:t.legend,dataForHoverCard:t.y,color:t.color||i,xCalloutValue:t.xAxisCalloutData||(t.x instanceof Date?Hs(t.x,e.props.useUTC):t.x.toString()),yCalloutValue:t.yAxisCalloutData,dataPointCalloutProps:t,activeXdataPoint:t.x,YValueHover:o,hoverXValue:u,callOutAccessibilityData:t.callOutAccessibilityData})}))},e._lineHover=function(t,n){n.persist(),e._lineHoverFocus(t,n)},e._lineFocus=function(t,n){n.refElement&&e._lineHoverFocus(t,n.refElement)},e._lineHoverFocus=function(t,n){var i=e.props.theme,r=e.props,o=r.lineLegendText,u=void 0===o?"":o,a=r.lineLegendColor,s=void 0===a?i.palette.yellow:a;e.setState({refSelected:n,isCalloutVisible:!0,calloutLegend:u,dataForHoverCard:t.lineData.y,color:s,xCalloutValue:t.xAxisCalloutData||(t.x instanceof Date?Hs(t.x,e.props.useUTC):t.x.toString()),yCalloutValue:t.lineData.yAxisCalloutData,dataPointCalloutProps:t,activeXdataPoint:t.x})},e._getScales=function(t,n){var i,r=Ue().domain([e.props.supportNegativeData?e._yMin:0,e._yMax]).range([0,t-e.margins.bottom-e.margins.top]);if(e._xAxisType===rs.NumericAxis){var o=pi(e._points,(function(t){return t.x})),u=vi(e._points,(function(t){return t.x}));i=Ue().domain(e._isRtl?[o,u]:[u,o]).nice().range([e.margins.left+e._domainMargin,n-e.margins.right-e._domainMargin])}else if(e._xAxisType===rs.DateAxis){var a=vi(e._points,(function(t){return t.x})),s=pi(e._points,(function(t){return t.x}));(i=e.props.useUTC?ju():zu()).domain([a,s]).range(e._isRtl?[n-e.margins.right-e._domainMargin,e.margins.left+e._domainMargin]:[e.margins.left+e._domainMargin,n-e.margins.right-e._domainMargin])}else i=Uu().domain(e._xAxisLabels).range(e._isRtl?[n-e.margins.right-e._domainMargin,e.margins.left+e._domainMargin]:[e.margins.left+e._domainMargin,n-e.margins.right-e._domainMargin]).paddingInner(e._xAxisInnerPadding).paddingOuter(e._xAxisOuterPadding);return{xBarScale:i,yBarScale:r}},e._closeCallout=function(){e.setState({isCalloutVisible:!1})},e._getLegendData=function(t,n){var i=e.props,r=i.theme,a=i.useSingleColor,s=e.props,l=s.lineLegendText,c=s.lineLegendColor,f=void 0===c?r.palette.yellow:c,h=[],d={};if(t.forEach((function(t,n){var i,o,u,s=a?e._createColors()(1):t.color;if(e.props.enableGradient){var l=Math.max((null===(i=e.props.data)||void 0===i?void 0:i.findIndex((function(n){return n.legend===t.legend})))||0,0);s=(null===(o=t.gradient)||void 0===o?void 0:o[0])||Us(l,0,null==r?void 0:r.isInverted)[0],a&&(s=Us(0,0,null===(u=e.props.theme)||void 0===u?void 0:u.isInverted)[0])}d[t.legend]=s})),Object.entries(d).forEach((function(t){var n=t[0],i=t[1],r={title:n,color:i,hoverAction:function(){e._handleChartMouseLeave(),e._onLegendHover(n)},onMouseOutAction:function(){e._onLegendLeave()}};h.push(r)})),e._isHavingLine&&l&&f){var v={title:l,color:f,hoverAction:function(){e._handleChartMouseLeave(),e._onLegendHover(l)},onMouseOutAction:function(){e._onLegendLeave()},isLineLegendInBarChart:!0};h.unshift(v)}return u.createElement(Ac,(0,o.Cl)({legends:h,enabledWrapLines:e.props.enabledLegendsWrapLines,overflowProps:e.props.legendsOverflowProps,focusZonePropsInHoverCard:e.props.focusZonePropsForLegendsInHoverCard,overflowText:e.props.legendsOverflowText},e.props.legendProps,{onChange:e._onLegendSelectionChange.bind(e)}))},e._getAxisData=function(t){if(t&&t.yAxisDomainValues.length){var n=t.yAxisDomainValues;e._yMax=Math.max(n[n.length-1],e.props.yMaxValue||0),e._yMin=Math.min(n[0],e.props.yMinValue||0)}},e._legendHighlighted=function(t){return e._getHighlightedLegend().includes(t)},e._noLegendHighlighted=function(){return 0===e._getHighlightedLegend().length},e._getAriaLabel=function(t){var n,i,r,o=t.xAxisCalloutData?t.xAxisCalloutData:t.x instanceof Date?Hs(t.x,e.props.useUTC):t.x,u=t.legend,a=t.yAxisCalloutData||t.y,s=e.props.lineLegendText||"Line",l=(null===(n=t.lineData)||void 0===n?void 0:n.yAxisCalloutData)||(null===(i=t.lineData)||void 0===i?void 0:i.y);return(null===(r=t.callOutAccessibilityData)||void 0===r?void 0:r.ariaLabel)||"".concat(o,". ")+(u?"".concat(u,", "):"")+"".concat(a,".")+(void 0!==l?" ".concat(s,", ").concat(l,"."):"")},e._getDomainMargins=function(t){var n;e._domainMargin=8;var i=t-(e.margins.left+8)-(e.margins.right+8),r=e._xAxisInnerPadding/(1-e._xAxisInnerPadding);if(e._xAxisType===rs.StringAxis){if(_s(e.props.xAxisOuterPadding,e.props.xAxisPadding))e._domainMargin=0;else if("auto"!==e.props.barWidth)e._barWidth=Bs(e.props.barWidth,e.props.maxBarWidth),i>=(u=(e._xAxisLabels.length+(e._xAxisLabels.length-1)*r)*e._barWidth)&&(e._domainMargin=8+(i-u)/2);else if("plotly"===e.props.mode&&e._xAxisLabels.length>1){var u,a=i/(e._xAxisLabels.length+(e._xAxisLabels.length-1)*r),s=Bs(e.props.barWidth,e.props.maxBarWidth,a),l=(i-(u=(e._xAxisLabels.length+(e._xAxisLabels.length-1)*r)*s))/2,c=ys(e._xAxisLabels)+20,f=(i-(u=(e._xAxisLabels.length-e._xAxisInnerPadding)*c))/2;e._domainMargin=8+Math.max(0,Math.min(l,f))}}else{var h=(null===(n=e.props.data)||void 0===n?void 0:n.map((function(t){return t.x})))||[];e._barWidth=Bs(e.props.barWidth,e.props.maxBarWidth,Fh(h,i)),e._domainMargin=8+e._barWidth/2}return(0,o.Cl)((0,o.Cl)({},e.margins),{left:e.margins.left+e._domainMargin,right:e.margins.right+e._domainMargin})},e._getChartTitle=function(){var t=e.props,n=t.chartTitle,i=t.data;return(n?"".concat(n,". "):"")+"Vertical bar chart with ".concat((null==i?void 0:i.length)||0," bars")+(e._isHavingLine?" and 1 line":"")+". "},Js(e),e.state={color:"",dataForHoverCard:0,isCalloutVisible:!1,refSelected:null,selectedLegends:(null===(i=n.legendProps)||void 0===i?void 0:i.selectedLegends)||[],activeLegend:void 0,xCalloutValue:"",yCalloutValue:"",activeXdataPoint:null,YValueHover:[],hoverXValue:"",calloutLegend:""},e._isHavingLine=e._checkForLine(),e._calloutId=g("callout"),e._tooltipId=g("VCTooltipID_"),e._refArray=[],e._xAxisType=e.props.data&&e.props.data.length>0?Ns(e.props.data[0].x,!0):rs.StringAxis,e._emptyChartId=g("_VBC_empty"),e._domainMargin=8,e._cartesianChartRef=u.createRef(),e}return(0,o.C6)(n,t),n.prototype.componentDidUpdate=function(t){var n,i,e;Is(null===(n=t.legendProps)||void 0===n?void 0:n.selectedLegends,null===(i=this.props.legendProps)||void 0===i?void 0:i.selectedLegends)||this.setState({selectedLegends:(null===(e=this.props.legendProps)||void 0===e?void 0:e.selectedLegends)||[]})},n.prototype.render=function(){var t=this;this._adjustProps(),this._xAxisLabels=this._points.map((function(t){return t.x})),this._yMax=Math.max(pi(this._points,(function(t){return t.y})),this.props.yMaxValue||0),this._yMin=Math.min(vi(this._points,(function(t){return t.y})),this.props.yMinValue||0);var n=this._getLegendData(this._points,this.props.theme.palette);this._classNames=Hh(this.props.styles,{theme:this.props.theme,legendColor:this.state.color});var i=(0,o.Cl)((0,o.Cl)((0,o.Cl)((0,o.Cl)({isCalloutVisible:this.state.isCalloutVisible,directionalHint:x.topAutoEdge,id:"toolTip".concat(this._calloutId),target:this.state.refSelected,isBeakVisible:!1},this._isHavingLine&&{YValueHover:this.state.YValueHover,hoverXValue:this.state.hoverXValue}),{gapSpace:15,color:this.state.color,legend:this.state.calloutLegend,XValue:this.state.xCalloutValue,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0}),this.props.calloutProps),Es(this.state.callOutAccessibilityData)),e={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return this._isChartEmpty()?u.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):u.createElement(_f,(0,o.Cl)({},this.props,{chartTitle:this._getChartTitle(),points:this._points,supportNegativeData:this.props.supportNegativeData,chartType:es.VerticalBarChart,xAxisType:this._xAxisType,createYAxis:ds,calloutProps:i,tickParams:e},this._isHavingLine&&(this._noLegendHighlighted()||this._getHighlightedLegend().length>1)&&{isCalloutForStack:!0},{legendBars:n,datasetForXAxisDomain:this._xAxisLabels,barwidth:this._barWidth,focusZoneDirection:Ws.horizontal,customizedCallout:this._getCustomizedCallout(),createStringYAxis:ps,getmargins:this._getMargins,getMinMaxOfYAxis:As,getGraphData:this._getGraphData,getDomainNRangeValues:this._getDomainNRangeValues,getAxisData:this._getAxisData,onChartMouseLeave:this._handleChartMouseLeave,getDomainMargins:this._getDomainMargins},this._xAxisType===rs.StringAxis&&{xAxisInnerPadding:this._xAxisInnerPadding,xAxisOuterPadding:this._xAxisOuterPadding},{ref:this._cartesianChartRef,children:function(n){return u.createElement(u.Fragment,null,u.createElement("g",null,t._bars),t._isHavingLine&&u.createElement("g",null,t._createLine(n.xScale,n.yScale,n.containerHeight,n.containerWidth,n.yScaleSecondary)))}}))},Object.defineProperty(n.prototype,"chartContainer",{get:function(){var t;return(null===(t=this._cartesianChartRef.current)||void 0===t?void 0:t.chartContainer)||null},enumerable:!1,configurable:!0}),n.prototype._adjustProps=function(){this._points=this.props.data||[],this._barWidth=Bs(this.props.barWidth,this.props.maxBarWidth);var t=this.props.theme.palette;this._colors=this.props.colors||[t.blueLight,t.blue,t.blueMid,t.blueDark],this._isHavingLine=this._checkForLine(),this._xAxisInnerPadding=Fs(this.props.xAxisInnerPadding,this.props.xAxisPadding,2/3),this._xAxisOuterPadding=Fs(this.props.xAxisOuterPadding,this.props.xAxisPadding,0)},n.prototype._createColors=function(){var t=this,n=this._colors.length<=1?1:1/(this._colors.length-1),i=this.props.useSingleColor;if(void 0!==i&&i)return function(n){var i=t.props,e=i.theme,r=i.colors;return r&&r.length>0?r[0]:e.palette.blueLight};for(var e=[],r=0;r<this._colors.length;r++)e.push(n*r*this._yMax);return Ue().domain(e).range(this._colors)},n.prototype._onBarHover=function(t,n,i){i.persist();var e=this._getCalloutContentForLineAndBar(t),r=e.YValueHover,o=e.hoverXValue;this._calloutAnchorPoint!==t&&(this._calloutAnchorPoint=t,this.setState({refSelected:i,isCalloutVisible:this._noLegendHighlighted()||this._legendHighlighted(t.legend),dataForHoverCard:t.y,calloutLegend:t.legend,color:t.color||n,xCalloutValue:t.xAxisCalloutData||(t.x instanceof Date?Hs(t.x,this.props.useUTC):t.x.toString()),yCalloutValue:t.yAxisCalloutData,dataPointCalloutProps:t,activeXdataPoint:this._noLegendHighlighted()||this._legendHighlighted(t.legend)?t.x:null,YValueHover:r,hoverXValue:o,callOutAccessibilityData:t.callOutAccessibilityData}))},n.prototype._calculateMinBarHeight=function(t,n,i,e){var r=n<0?Math.abs(t-i):Math.max(Math.abs(n-i),Math.abs(t-i));return Math.ceil(e(r)/100)},n.prototype._createNumericBars=function(t,n,i){var e=this,r=this.props.useSingleColor,o=void 0!==r&&r,a=this._getScales(t,n),s=a.xBarScale,l=a.yBarScale,c=this._createColors(),f=this._yMax<0?this._yMax:0,h=this._points.map((function(n,i){var r,a,h,d,v,p,m=!(!e._legendHighlighted(n.legend)&&!e._noLegendHighlighted());e._classNames=Hh(e.props.styles,{theme:e.props.theme,legendColor:e.state.color,shouldHighlight:m});var y=l(n.y)-l(f),b=y<0;y=Math.abs(y);var x=e._calculateMinBarHeight(e._yMin,e._yMax,f,l),C=y;if(0===y||b&&!e.props.supportNegativeData)return u.createElement(u.Fragment,{key:n.x}," ");y<=x&&(C=x);var w=s(n.x)-e._barWidth/2,M=t-e.margins.bottom-(b?-1*C:C)-l(f),k=t-e.margins.bottom-l(f),S=n.color&&!o?n.color:c(n.y),A=S;e.props.enableGradient&&(S=(null===(r=n.gradient)||void 0===r?void 0:r[0])||Us(i,0,null===(a=e.props.theme)||void 0===a?void 0:a.isInverted)[0],A=(null===(h=n.gradient)||void 0===h?void 0:h[1])||Us(i,0,null===(d=e.props.theme)||void 0===d?void 0:d.isInverted)[1],o&&(S=Us(0,0,null===(v=e.props.theme)||void 0===v?void 0:v.isInverted)[0],A=Us(0,0,null===(p=e.props.theme)||void 0===p?void 0:p.isInverted)[1]),e._points[i].color=S);var L=g("VBC_Gradient")+"_".concat(i,"_").concat(S);return u.createElement("g",{key:n.x},e.props.enableGradient&&u.createElement("defs",null,u.createElement("linearGradient",{id:L,x1:"0%",y1:"100%",x2:"0%",y2:"0%"},u.createElement("stop",{offset:"0",stopColor:S}),u.createElement("stop",{offset:"100%",stopColor:A}))),u.createElement("rect",{id:g("_VBC_bar_"),x:w,className:e._classNames.opacityChangeOnHover,y:b?k:M,width:e._barWidth,"data-is-focusable":!e.props.hideTooltip&&m,height:C,ref:function(t){e._refCallback(t,n.legend)},onClick:n.onClick,onMouseOver:e._onBarHover.bind(e,n,S),"aria-label":e._getAriaLabel(n),role:"img",onMouseLeave:e._onBarLeave,onFocus:e._onBarFocus.bind(e,n,i,S),onBlur:e._onBarLeave,fill:e.props.enableGradient?"url(#".concat(L,")"):S,rx:e.props.roundCorners?3:0}),e._renderBarLabel(w,M,n.y,n.legend,b))}));if(!this.props.showXAxisLablesTooltip)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}if(!this.props.wrapXAxisLables&&this.props.showXAxisLablesTooltip){var d=ss(i).call(s);try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}var v={tooltipCls:this._classNames.tooltip,id:this._tooltipId,xAxis:d};d&&bs(v)}return h},n.prototype._createStringBars=function(t,n,i){var e=this,r=this.props.useSingleColor,o=void 0!==r&&r,a=this._getScales(t,n),s=a.xBarScale,l=a.yBarScale,c=this._createColors(),f=this._yMax<0?this._yMax:0,h=this._points.map((function(n,i){var r,a,h,d,v,p,m=l(n.y)-l(f),y=m<0;m=Math.abs(m);var b=e._calculateMinBarHeight(e._yMin,e._yMax,f,l),x=m;if(0===m||y&&!e.props.supportNegativeData)return u.createElement(u.Fragment,{key:n.x}," ");m<=b&&(x=b);var C=s(n.x),w=t-e.margins.bottom-(y?-1*x:x)-l(f),M=t-e.margins.bottom-l(f);e._barWidth=Bs(e.props.barWidth,e.props.maxBarWidth,s.bandwidth());var k=n.color?n.color:c(n.y),S=k;e.props.enableGradient&&(k=(null===(r=n.gradient)||void 0===r?void 0:r[0])||Us(i,0,null===(a=e.props.theme)||void 0===a?void 0:a.isInverted)[0],S=(null===(h=n.gradient)||void 0===h?void 0:h[1])||Us(i,0,null===(d=e.props.theme)||void 0===d?void 0:d.isInverted)[1],o&&(k=Us(0,0,null===(v=e.props.theme)||void 0===v?void 0:v.isInverted)[0],S=Us(0,0,null===(p=e.props.theme)||void 0===p?void 0:p.isInverted)[1]),e._points[i].color=k);var A=g("VBC_Gradient")+"_".concat(i,"_").concat(k);return u.createElement("g",{key:n.x instanceof Date?n.x.getTime():n.x,transform:"translate(".concat(.5*(s.bandwidth()-e._barWidth),", 0)")},e.props.enableGradient&&u.createElement("defs",null,u.createElement("linearGradient",{id:A,x1:"0%",y1:"100%",x2:"0%",y2:"0%"},u.createElement("stop",{offset:"0",stopColor:k}),u.createElement("stop",{offset:"100%",stopColor:S}))),u.createElement("rect",{id:g("_VBC_bar_"),x:C,y:y?M:w,width:e._barWidth,height:x,"aria-label":e._getAriaLabel(n),role:"img",ref:function(t){e._refCallback(t,n.legend)},onClick:n.onClick,onMouseOver:e._onBarHover.bind(e,n,k),onMouseLeave:e._onBarLeave,onBlur:e._onBarLeave,"data-is-focusable":!e.props.hideTooltip,onFocus:e._onBarFocus.bind(e,n,i,k),fill:e.props.enableGradient?"url(#".concat(A,")"):k,rx:e.props.roundCorners?3:0}),e._renderBarLabel(C,w,n.y,n.legend,y))}));if(!this.props.showXAxisLablesTooltip)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}if(!this.props.wrapXAxisLables&&this.props.showXAxisLablesTooltip){var d=ss(i).call(s);try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}var v={tooltipCls:this._classNames.tooltip,id:this._tooltipId,xAxis:d,showTooltip:this.props.showXAxisLablesTooltip};d&&bs(v)}return h},n.prototype._createDateBars=function(t,n,i){var e=this,r=this.props.useSingleColor,o=void 0!==r&&r,a=this._getScales(t,n),s=a.xBarScale,l=a.yBarScale,c=this._createColors(),f=this._yMax<0?this._yMax:0,h=this._points.map((function(n,i){var r,a,h,d,v,p,m=!(!e._legendHighlighted(n.legend)&&!e._noLegendHighlighted());e._classNames=Hh(e.props.styles,{theme:e.props.theme,legendColor:e.state.color,shouldHighlight:m});var y=l(n.y)-l(f),b=y<0;y=Math.abs(y);var x=e._calculateMinBarHeight(e._yMin,e._yMax,f,l),C=y;if(0===y||b&&!e.props.supportNegativeData)return u.createElement(u.Fragment,{key:n.x}," ");y<=x&&(C=x);var w=s(n.x)-e._barWidth/2,M=t-e.margins.bottom-(b?-1*C:C)-l(f),k=t-e.margins.bottom-l(f),S=n.color&&!o?n.color:c(n.y),A=S;e.props.enableGradient&&(S=(null===(r=n.gradient)||void 0===r?void 0:r[0])||Us(i,0,null===(a=e.props.theme)||void 0===a?void 0:a.isInverted)[0],A=(null===(h=n.gradient)||void 0===h?void 0:h[1])||Us(i,0,null===(d=e.props.theme)||void 0===d?void 0:d.isInverted)[1],o&&(S=Us(0,0,null===(v=e.props.theme)||void 0===v?void 0:v.isInverted)[0],A=Us(0,0,null===(p=e.props.theme)||void 0===p?void 0:p.isInverted)[1]),e._points[i].color=S);var L=g("VBC_Gradient")+"_".concat(i,"_").concat(S);return u.createElement("g",{key:n.x instanceof Date?n.x.getTime():n.x},e.props.enableGradient&&u.createElement("defs",null,u.createElement("linearGradient",{id:L,x1:"0%",y1:"100%",x2:"0%",y2:"0%"},u.createElement("stop",{offset:"0",stopColor:S}),u.createElement("stop",{offset:"100%",stopColor:A}))),u.createElement("rect",{id:g("_VBC_bar_"),x:w,className:e._classNames.opacityChangeOnHover,y:b?k:M,width:e._barWidth,"data-is-focusable":!e.props.hideTooltip&&m,height:C,ref:function(t){e._refCallback(t,n.legend)},onClick:n.onClick,onMouseOver:e._onBarHover.bind(e,n,S),"aria-label":e._getAriaLabel(n),role:"img",onMouseLeave:e._onBarLeave,onFocus:e._onBarFocus.bind(e,n,i,S),onBlur:e._onBarLeave,fill:e.props.enableGradient?"url(#".concat(L,")"):S,rx:e.props.roundCorners?3:0}),e._renderBarLabel(w,M,n.y,n.legend,b))}));if(!this.props.showXAxisLablesTooltip)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}if(!this.props.wrapXAxisLables&&this.props.showXAxisLablesTooltip){var d=ss(i).call(s);try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}var v={tooltipCls:this._classNames.tooltip,id:this._tooltipId,xAxis:d};d&&bs(v)}return h},n.prototype._onLegendHover=function(t){this.setState({activeLegend:t})},n.prototype._onLegendLeave=function(){this.setState({activeLegend:void 0})},n.prototype._onLegendSelectionChange=function(t,n,i){var e,r;(null===(e=this.props.legendProps)||void 0===e?void 0:e.canSelectMultipleLegends)?this.setState({selectedLegends:t}):this.setState({selectedLegends:t.slice(-1)}),(null===(r=this.props.legendProps)||void 0===r?void 0:r.onChange)&&this.props.legendProps.onChange(t,n,i)},n.prototype._getHighlightedLegend=function(){return this.state.selectedLegends.length>0?this.state.selectedLegends:this.state.activeLegend?[this.state.activeLegend]:[]},n.prototype._renderBarLabel=function(t,n,i,e,r){return this.props.hideLabels||this._barWidth<16||!this._legendHighlighted(e)&&!this._noLegendHighlighted()?null:u.createElement("text",{x:t+this._barWidth/2,y:r?n+12:n-6,textAnchor:"middle",className:this._classNames.barLabel,"aria-hidden":!0},Ps(i))},n.prototype._isChartEmpty=function(){return 0===this._points.length||this._points.every((function(t){return 0===t.y}))&&!this._isHavingLine},n.defaultProps={maxBarWidth:24,useUTC:!0},n}(u.Component),Ih=(0,r.I)(Rh,(function(t){var n=t.shouldHighlight,i=t.theme;return{opacityChangeOnHover:{opacity:n?"":"0.1"},xAxisTicks:[],yAxisTicks:[{transform:"scaleX(-1)"}],yAxisDomain:[{transform:"scaleX(-1)"}],tooltip:(0,o.Cl)((0,o.Cl)({},i.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:i.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"}),barLabel:{fontSize:$t.s.small,fontWeight:$t.BO.semibold,fill:i.palette.neutralPrimary}}})),Wh=(0,a.Z)();!function(t){t.show="visibility",t.hide="hidden"}(_h||(_h={}));var zh=function(t){function n(n){var i,e=t.call(this,n)||this;return e._isRtl=(0,s.jI)(),e._toFocusWholeStack=function(t){var n=e.props.isCalloutForStack,i=void 0!==n&&n;return t?1!==e._getHighlightedLegend().length:i},e._getDomainNRangeValues=function(t,n,i,e,r,o,u,a,s){return o===rs.NumericAxis?function(t,n,i,e,r){var o=vi(t,(function(t){return t.x})),u=pi(t,(function(t){return t.x})),a=n.left,s=i-n.right;return e?{dStartValue:u,dEndValue:o,rStartValue:a,rEndValue:s}:{dStartValue:o,dEndValue:u,rStartValue:a,rEndValue:s}}(t,n,i,r):o===rs.DateAxis?Ms(t,n,i,r,a,e):ws(n,i,r)},e._getFormattedLineData=function(t){var n=[],i={};return t.forEach((function(t,i){t.lineData&&t.lineData.forEach((function(e){n.push((0,o.Cl)((0,o.Cl)({},e),{index:i,xItem:t}))}))})),n.forEach((function(t){i[t.legend]?i[t.legend].push(t):i[t.legend]=[t]})),i},e._getLineLegends=function(t){var n=e._lineObject,i=[];return Object.keys(n).forEach((function(t){i.push({title:t,color:n[t][0].color})})),i},e._createLines=function(t,n,i,r,a){var s,l=e._getFormattedLineData(e.props.data),c=[],f=[],h=[],d=e.props.theme,v=(null===(s=e.props.lineOptions)||void 0===s?void 0:s.lineBorderWidth)?Number.parseFloat(e.props.lineOptions.lineBorderWidth.toString()):0,p=e._xAxisType!==rs.StringAxis?0:t.bandwidth()/2;return Object.keys(l).forEach((function(i,r){for(var s=e._isLegendHighlighted(i)||e._noLegendHighlighted(),h=1;h<l[i].length;h++){var g=t(l[i][h-1].xItem.xAxisPoint),m=l[i][h-1].useSecondaryYScale&&l[i][h].useSecondaryYScale&&a,y=m?a(l[i][h-1].y):n(l[i][h-1].y),b=t(l[i][h].xItem.xAxisPoint),x=m?a(l[i][h].y):n(l[i][h].y);v>0&&f.push(u.createElement("line",{key:"".concat(r,"-").concat(h,"-BorderLine"),x1:g,y1:y,x2:b,y2:x,opacity:s?1:.1,strokeWidth:3+2*v,fill:"transparent",strokeLinecap:"round",stroke:d.semanticColors.bodyBackground,transform:"translate(".concat(p,", 0)")})),c.push(u.createElement("line",(0,o.Cl)({key:"".concat(r,"-").concat(h,"-line"),x1:g,y1:y,x2:b,y2:x,opacity:s?1:.1,strokeWidth:3,strokeLinecap:"round",stroke:l[i][h].color,transform:"translate(".concat(p,", 0)")},e._isLegendHighlighted(i)&&{onMouseOver:e._lineHover.bind(e,l[i][h-1]),onMouseLeave:e._lineHoverOut})))}})),Object.keys(l).forEach((function(i,r){l[i].forEach((function(s,l){var c={refElement:null};h.push(u.createElement("circle",(0,o.Cl)({key:"".concat(r,"-").concat(l,"-dot"),cx:t(s.xItem.xAxisPoint),cy:s.useSecondaryYScale&&a?a(s.y):n(s.y),onMouseOver:e._isLegendHighlighted(i)?e._lineHover.bind(e,s):e._onStackHover.bind(e,s.xItem)},e._isLegendHighlighted(i)&&{onMouseLeave:e._lineHoverOut},{r:e._getCircleVisibilityAndRadius(s.xItem.xAxisPoint,s.legend).radius,stroke:s.color,fill:e.props.theme.semanticColors.bodyBackground,strokeWidth:3,visibility:e._getCircleVisibilityAndRadius(s.xItem.xAxisPoint,s.legend).visibility,transform:"translate(".concat(p,", 0)"),"data-is-focusable":e._isLegendHighlighted(i),ref:function(t){return c.refElement=t},onFocus:e._lineFocus.bind(e,s,c),onBlur:e._lineHoverOut})))}))})),u.createElement(u.Fragment,null,f,c,h)},e._getCircleVisibilityAndRadius=function(t,n){var i=e.state.activeXAxisDataPoint;return e._noLegendHighlighted()?{visibility:i===t?_h.show:_h.hide,radius:8}:t===i&&e._isLegendHighlighted(n)?{visibility:_h.show,radius:8}:e._isLegendHighlighted(n)?{visibility:_h.show,radius:.3}:{visibility:_h.hide,radius:0}},e._getMargins=function(t){e.margins=t},e._getCustomizedCallout=function(){var t=e.props.data.some((function(t){return t.lineData&&t.lineData.length>0}));return e.props.onRenderCalloutPerStack?e.props.onRenderCalloutPerStack(e.state.stackCalloutProps):e.props.onRenderCalloutPerDataPoint&&!t?e.props.onRenderCalloutPerDataPoint(e.state.dataPointCalloutProps,e._renderCallout):null},e._lineHover=function(t,n){n.persist(),e._lineHoverFocus(t,n)},e._lineHoverOut=function(){e.setState({refSelected:null,isCalloutVisible:!1,xCalloutValue:"",yCalloutValue:"",activeXAxisDataPoint:"",color:""})},e._lineFocus=function(t,n){n.refElement&&e._lineHoverFocus(t,n.refElement)},e._lineHoverFocus=function(t,n){e.setState({refSelected:n,isCalloutVisible:!0,xCalloutValue:"".concat(t.xItem.xAxisPoint),yCalloutValue:"".concat(t.yAxisCalloutData||t.data||t.y),activeXAxisDataPoint:t.xItem.xAxisPoint,color:t.color})},e._handleMouseOut=function(){},e._handleChartMouseLeave=function(){e._calloutAnchorPoint=null,e.setState({isCalloutVisible:!1,activeXAxisDataPoint:""})},e._createBar=function(t,n,i,r){var a=e.props,s=a.barCornerRadius,l=void 0===s?0:s,c=a.barMinimumHeight,f=void 0===c?0:c,h=e.props.data.some((function(t){return t.lineData&&t.lineData.length>0})),d=e._toFocusWholeStack(h);e._xAxisType===rs.StringAxis&&(e._barWidth=Bs(e.props.barWidth,e.props.maxBarWidth,t.bandwidth()));var v=e._points.map((function(r,a){var s=i-e.margins.bottom,c=t((e._xAxisType===rs.NumericAxis||(e._xAxisType,rs.DateAxis),r.xAxisPoint)),h=e._xAxisType!==rs.StringAxis?-e._barWidth/2:(t.bandwidth()-e._barWidth)/2,v=0,p=r.chartData.filter((function(t){return t.data>0}));if(p.length){var m=e._getBarGapAndScale(p,n),y=m.gapHeight,b=m.heightValueScale;if(!(b<0)){var x=p.map((function(t,n){var i,m,x,C,w=t.color?t.color:e._colors[n],M=w;e.props.enableGradient&&(w=(null===(i=t.gradient)||void 0===i?void 0:i[0])||Us(n,0,null===(m=e.props.theme)||void 0===m?void 0:m.isInverted)[0],M=(null===(x=t.gradient)||void 0===x?void 0:x[1])||Us(n,0,null===(C=e.props.theme)||void 0===C?void 0:C.isInverted)[1],r.chartData[n].color=w);var k={},S=!(!e._isLegendHighlighted(t.legend)&&!e._noLegendHighlighted());e._classNames=Wh(e.props.styles,{theme:e.props.theme,shouldHighlight:S,href:e.props.href});var A=!d&&{"data-is-focusable":!e.props.hideTooltip&&S,"aria-label":e._getAriaLabel(r,t),onMouseOver:e._onRectHover.bind(e,r.xAxisPoint,t,w),onMouseMove:e._onRectHover.bind(e,r.xAxisPoint,t,w),onMouseLeave:e._handleMouseOut,onFocus:e._onRectFocus.bind(e,t,r.xAxisPoint,w,k),onBlur:e._handleMouseOut,onClick:e._onClick.bind(e,t),role:"img"},L=b*t.data;L<Math.max(Math.ceil(b*e._yMax/100),f)&&(L=Math.max(Math.ceil(b*e._yMax/100),f)),s=s-L-(n?y:0),v+=t.data;var V=g("VSBC_Gradient")+"_".concat(a,"_").concat(n);return l&&L>l&&n===p.length-1?u.createElement(u.Fragment,{key:n+a+"".concat(d)},e.props.enableGradient&&u.createElement("defs",null,u.createElement("linearGradient",{id:V,x1:"0%",y1:"100%",x2:"0%",y2:"0%"},u.createElement("stop",{offset:"0",stopColor:w}),u.createElement("stop",{offset:"100%",stopColor:M}))),u.createElement("path",(0,o.Cl)({className:e._classNames.opacityChangeOnHover,d:"\n M ".concat(c," ").concat(s+l,"\n a ").concat(l," ").concat(l," 0 0 1 ").concat(l," ").concat(-l,"\n h ").concat(e._barWidth-2*l,"\n a ").concat(l," ").concat(l," 0 0 1 ").concat(l," ").concat(l,"\n v ").concat(L-l,"\n h ").concat(-e._barWidth,"\n z\n "),fill:e.props.enableGradient?"url(#".concat(V,")"):w,rx:e.props.roundCorners?3:0,ref:function(t){return k.refElement=t},transform:"translate(".concat(h,", 0)")},A))):L<0?u.createElement(u.Fragment,{key:n+a}," "):u.createElement(u.Fragment,{key:n+a},e.props.enableGradient&&u.createElement("defs",null,u.createElement("linearGradient",{id:V,x1:"0%",y1:"100%",x2:"0%",y2:"0%"},u.createElement("stop",{offset:"0",stopColor:w}),u.createElement("stop",{offset:"100%",stopColor:M}))),u.createElement("rect",(0,o.Cl)({className:e._classNames.opacityChangeOnHover,x:c,y:s,width:e._barWidth,height:L,fill:e.props.enableGradient?"url(#".concat(V,")"):w,rx:e.props.roundCorners?3:0,ref:function(t){return k.refElement=t}},A,{transform:"translate(".concat(h,", 0)")})))})),C={},w=d&&{"data-is-focusable":!e.props.hideTooltip,"aria-label":e._getAriaLabel(r),onMouseOver:e._onStackHover.bind(e,r),onMouseMove:e._onStackHover.bind(e,r),onMouseLeave:e._handleMouseOut,onFocus:e._onStackFocus.bind(e,r,C),onBlur:e._handleMouseOut,onClick:e._onClick.bind(e,r),role:"img"},M=!1,k=0;return e.props.hideLabels||(e._noLegendHighlighted()?(M=!0,k=v):p.forEach((function(t){e._isLegendHighlighted(t.legend)&&(M=!0,k+=t.data)}))),u.createElement("g",{key:a+"".concat(d)},u.createElement("g",(0,o.Cl)({id:"".concat(a,"-singleBar"),ref:function(t){return C.refElement=t}},w),x),!e.props.hideLabels&&e._barWidth>=16&&M&&u.createElement("text",{x:c+e._barWidth/2,y:s-6,textAnchor:"middle",className:e._classNames.barLabel,"aria-label":"Total: ".concat(k),role:"img",transform:"translate(".concat(h,", 0)")},Ps(k)))}}}));if(!e.props.showXAxisLablesTooltip)try{document.getElementById(e._tooltipId)&&document.getElementById(e._tooltipId).remove()}catch(t){}if(!e.props.wrapXAxisLables&&e.props.showXAxisLablesTooltip){var p=ss(r).call(t);try{document.getElementById(e._tooltipId)&&document.getElementById(e._tooltipId).remove()}catch(t){}var m={tooltipCls:e._classNames.tooltip,id:e._tooltipId,xAxis:p};p&&bs(m)}return v.filter((function(t){return!!t}))},e._getScales=function(t,n){var i=e._yMax,r=Ue().domain([0,i]).range([0,t-e.margins.bottom-e.margins.top]);if(e._xAxisType===rs.NumericAxis){var o=pi(e._dataset,(function(t){return t.x})),u=vi(e._dataset,(function(t){return t.x}));return{xBarScale:Ue().domain(e._isRtl?[o,u]:[u,o]).nice().range([e.margins.left+e._domainMargin,n-e.margins.right-e._domainMargin]),yBarScale:r}}if(e._xAxisType===rs.DateAxis){var a=vi(e._dataset,(function(t){return t.x})),s=pi(e._dataset,(function(t){return t.x})),l=e.props.useUTC?ju():zu();return l.domain(e._isRtl?[s,a]:[a,s]).range([e.margins.left+e._domainMargin,n-e.margins.right-e._domainMargin]),{xBarScale:l,yBarScale:r}}return{xBarScale:Uu().domain(e._xAxisLabels).range(e._isRtl?[n-e.margins.right-e._domainMargin,e.margins.left+e._domainMargin]:[e.margins.left+e._domainMargin,n-e.margins.right-e._domainMargin]).paddingInner(e._xAxisInnerPadding).paddingOuter(e._xAxisOuterPadding),yBarScale:r}},e._getGraphData=function(t,n,i,r,o){var u=e._getScales(i,r),a=u.xBarScale,s=u.yBarScale;return e._bars=e._createBar(a,s,i,o)},e._closeCallout=function(){e.setState({isCalloutVisible:!1})},e._getAxisData=function(t){if(t&&t.yAxisDomainValues.length){var n=t.yAxisDomainValues;e._yMax=Math.max(n[n.length-1],e.props.yMaxValue||0)}},e._isLegendHighlighted=function(t){return e._getHighlightedLegend().includes(t)},e._noLegendHighlighted=function(){return 0===e._getHighlightedLegend().length},e._getAriaLabel=function(t,n){var i,e,r;if(!n){var o=t.xAxisCalloutData||(t.xAxisPoint instanceof Date?Hs(t.xAxisPoint):t.xAxisPoint),u=t.chartData.map((function(t){var n=t.legend,i=t.yAxisCalloutData||t.data;return"".concat(n,", ").concat(i,".")})).join(" "),a=null===(i=t.lineData)||void 0===i?void 0:i.map((function(t){var n=t.legend,i=t.yAxisCalloutData||t.data||t.y;return"".concat(n,", ").concat(i,".")})).join(" ");return(null===(e=t.stackCallOutAccessibilityData)||void 0===e?void 0:e.ariaLabel)||"".concat(o,". ").concat(u)+(a?" ".concat(a):"")}var s=t.xAxisCalloutData||n.xAxisCalloutData||(t.xAxisPoint instanceof Date?Hs(t.xAxisPoint):t.xAxisPoint),l=n.legend,c=n.yAxisCalloutData||n.data;return(null===(r=n.callOutAccessibilityData)||void 0===r?void 0:r.ariaLabel)||"".concat(s,". ").concat(l,", ").concat(c,".")},e._getDomainMargins=function(t){var n;e._domainMargin=8;var i=t-(e.margins.left+8)-(e.margins.right+8),r=e._xAxisInnerPadding/(1-e._xAxisInnerPadding);if(e._xAxisType===rs.StringAxis){if(_s(e.props.xAxisOuterPadding,e.props.xAxisPadding))e._domainMargin=0;else if("auto"!==e.props.barWidth)e._barWidth=Bs(e.props.barWidth,e.props.maxBarWidth),i>=(u=(e._xAxisLabels.length+(e._xAxisLabels.length-1)*r)*e._barWidth)&&(e._domainMargin=8+(i-u)/2);else if("plotly"===e.props.mode&&e._xAxisLabels.length>1){var u,a=i/(e._xAxisLabels.length+(e._xAxisLabels.length-1)*r),s=Bs(e.props.barWidth,e.props.maxBarWidth,a),l=(i-(u=(e._xAxisLabels.length+(e._xAxisLabels.length-1)*r)*s))/2,c=ys(e._xAxisLabels)+20,f=(i-(u=(e._xAxisLabels.length-e._xAxisInnerPadding)*c))/2;e._domainMargin=8+Math.max(0,Math.min(l,f))}}else{var h=(null===(n=e.props.data)||void 0===n?void 0:n.map((function(t){return t.xAxisPoint})))||[];e._barWidth=Bs(e.props.barWidth,e.props.maxBarWidth,Fh(h,i)),e._domainMargin=8+e._barWidth/2}return(0,o.Cl)((0,o.Cl)({},e.margins),{left:e.margins.left+e._domainMargin,right:e.margins.right+e._domainMargin})},e._getChartTitle=function(){var t=e.props,n=t.chartTitle,i=t.data,r=Object.keys(e._lineObject).length;return(n?"".concat(n,". "):"")+"Vertical bar chart with ".concat((null==i?void 0:i.length)||0," stacked bars")+(r>0?" and ".concat(r," lines"):"")+". "},Js(e),e.state={isCalloutVisible:!1,selectedLegends:(null===(i=n.legendProps)||void 0===i?void 0:i.selectedLegends)||[],activeLegend:void 0,refSelected:null,dataForHoverCard:0,color:"",hoverXValue:"",YValueHover:[],xCalloutValue:"",yCalloutValue:"",activeXAxisDataPoint:"",calloutLegend:""},In("VERTICAL STACKED BAR CHART",n,{colors:"IVSChartDataPoint.color",chartLabel:"use your own title for chart"}),e._handleMouseOut=e._handleMouseOut.bind(e),e._calloutId=g("callout"),e._tooltipId=g("VSBCTooltipId_"),e._isChartEmpty()||(e._adjustProps(),e._dataset=e._createDataSetLayer()),e._createLegendsForLine=(0,dn.J9)((function(t){return e._getLineLegends(t)})),e._emptyChartId=g("_VSBC_empty"),e._domainMargin=8,e._cartesianChartRef=u.createRef(),e}return(0,o.C6)(n,t),n.prototype.componentDidUpdate=function(t){var n,i,e;Is(null===(n=t.legendProps)||void 0===n?void 0:n.selectedLegends,null===(i=this.props.legendProps)||void 0===i?void 0:i.selectedLegends)||this.setState({selectedLegends:(null===(e=this.props.legendProps)||void 0===e?void 0:e.selectedLegends)||[]}),t.height===this.props.height&&t.width===this.props.width&&t.data===this.props.data||(this._adjustProps(),this._dataset=this._createDataSetLayer())},n.prototype.render=function(){var t=this;if(!this._isChartEmpty()){this._adjustProps();var n=this.props.data.some((function(t){return t.lineData&&t.lineData.length>0})),i=this._toFocusWholeStack(n),e=this.props.isCalloutForStack,r=void 0!==e&&e;this._dataset=this._createDataSetLayer();var a=this._getLegendData(this._points,this.props.theme.palette,this._createLegendsForLine(this.props.data));this._classNames=Wh(this.props.styles,{theme:this.props.theme,href:this.props.href});var s=(0,o.Cl)((0,o.Cl)({isCalloutVisible:this.state.isCalloutVisible,directionalHint:x.topAutoEdge,id:"toolTip".concat(this._calloutId),target:this.state.refSelected,isBeakVisible:!1,gapSpace:15,color:this.state.color,legend:this.state.calloutLegend,XValue:this.state.xCalloutValue,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard,YValueHover:this.state.YValueHover,hoverXValue:this.state.hoverXValue,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0},this.props.calloutProps),Es(this.state.callOutAccessibilityData)),l={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return u.createElement(_f,(0,o.Cl)({},this.props,{chartTitle:this._getChartTitle(),points:this._dataset,chartType:es.VerticalStackedBarChart,xAxisType:this._xAxisType,calloutProps:s,createYAxis:ds,tickParams:l,legendBars:a,getMinMaxOfYAxis:Ss,datasetForXAxisDomain:this._xAxisLabels,isCalloutForStack:i,getDomainNRangeValues:this._getDomainNRangeValues,createStringYAxis:ps,barwidth:this._barWidth,focusZoneDirection:r||n?Ws.horizontal:Ws.vertical,getmargins:this._getMargins,getGraphData:this._getGraphData,getAxisData:this._getAxisData,customizedCallout:this._getCustomizedCallout(),onChartMouseLeave:this._handleChartMouseLeave,getDomainMargins:this._getDomainMargins},this._xAxisType===rs.StringAxis&&{xAxisInnerPadding:this._xAxisInnerPadding,xAxisOuterPadding:this._xAxisOuterPadding},{ref:this._cartesianChartRef,children:function(i){return u.createElement(u.Fragment,null,u.createElement("g",null,t._bars),u.createElement("g",null,n&&t._createLines(i.xScale,i.yScale,i.containerHeight,i.containerWidth,i.yScaleSecondary)))}}))}return u.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"})},Object.defineProperty(n.prototype,"chartContainer",{get:function(){var t;return(null===(t=this._cartesianChartRef.current)||void 0===t?void 0:t.chartContainer)||null},enumerable:!1,configurable:!0}),n.prototype._adjustProps=function(){this._points=this.props.data||[],this._barWidth=Bs(this.props.barWidth,this.props.maxBarWidth);var t=this.props.theme.palette;this._colors=this.props.colors||[t.blueLight,t.blue,t.blueMid,t.red,t.black],this._xAxisType=Ns(this.props.data[0].xAxisPoint,!0),this._lineObject=this._getFormattedLineData(this.props.data),this._xAxisInnerPadding=Fs(this.props.xAxisInnerPadding,this.props.xAxisPadding,2/3),this._xAxisOuterPadding=Fs(this.props.xAxisOuterPadding,this.props.xAxisPadding,0)},n.prototype._createDataSetLayer=function(){var t=[],n=this._points.map((function(n){var i=0;return n.chartData.forEach((function(t){i+=t.data})),t.push(n.xAxisPoint),{x:n.xAxisPoint,y:i}}));return this._xAxisLabels=t,n},n.prototype._renderCallout=function(t){return t?u.createElement(zs.ChartHoverCard,{XValue:t.xAxisCalloutData,Legend:t.legend,YValue:t.yAxisCalloutData,color:t.color,culture:this.props.culture}):null},n.prototype._onLegendHover=function(t){this.setState({activeLegend:t})},n.prototype._onLegendLeave=function(){this.setState({activeLegend:void 0})},n.prototype._getLegendData=function(t,n,i){var e=this;if(this.props.hideLegend)return u.createElement(u.Fragment,null);var r=[n.blueLight,n.blue,n.blueMid,n.red,n.black],a=[],s=this.props,l=s.allowHoverOnLegend,c=void 0===l||l,f=s.theme;t.forEach((function(t){t.chartData.forEach((function(n){var i,o,u=n.color?n.color:r[Math.floor(4*Math.random()+1)];if(e.props.enableGradient){var s=Math.max((null===(i=t.chartData)||void 0===i?void 0:i.findIndex((function(t){return t.legend===n.legend})))||0,0);u=(null===(o=n.gradient)||void 0===o?void 0:o[0])||Us(s,0,null==f?void 0:f.isInverted)[0]}if(!(a.filter((function(t){return t.title===n.legend&&t.color===u})).length>0)){var l={title:n.legend,color:u,hoverAction:c?function(){e._handleChartMouseLeave(),e._onLegendHover(n.legend)}:void 0,onMouseOutAction:c?function(){return e._onLegendLeave()}:void 0};a.push(l)}}))}));var h=[];i&&i.length>0&&i.forEach((function(t){var n={title:t.title,color:t.color,isLineLegendInBarChart:!0,hoverAction:c?function(){e._handleChartMouseLeave(),e._onLegendHover(t.title)}:void 0,onMouseOutAction:c?function(){return e._onLegendLeave()}:void 0};h.push(n)}));var d=h.concat(a);return u.createElement(Ac,(0,o.Cl)({legends:d,overflowProps:this.props.legendsOverflowProps,enabledWrapLines:this.props.enabledLegendsWrapLines,focusZonePropsInHoverCard:this.props.focusZonePropsForLegendsInHoverCard,overflowText:this.props.legendsOverflowText},this.props.legendProps,{onChange:this._onLegendSelectionChange.bind(this)}))},n.prototype._onLegendSelectionChange=function(t,n,i){var e,r;(null===(e=this.props.legendProps)||void 0===e?void 0:e.canSelectMultipleLegends)?this.setState({selectedLegends:t}):this.setState({selectedLegends:t.slice(-1)}),(null===(r=this.props.legendProps)||void 0===r?void 0:r.onChange)&&this.props.legendProps.onChange(t,n,i)},n.prototype._getHighlightedLegend=function(){return this.state.selectedLegends.length>0?this.state.selectedLegends:this.state.activeLegend?[this.state.activeLegend]:[]},n.prototype._onRectHover=function(t,n,i,e){e.persist(),this._onRectFocusHover(t,n,i,e)},n.prototype._onRectFocusHover=function(t,n,i,e){var r,o;(null===(r=this._calloutAnchorPoint)||void 0===r?void 0:r.chartDataPoint)===n&&(null===(o=this._calloutAnchorPoint)||void 0===o?void 0:o.xAxisDataPoint)===t||(this._calloutAnchorPoint={chartDataPoint:n,xAxisDataPoint:t},this.setState({refSelected:e,isCalloutVisible:this._noLegendHighlighted()||this._isLegendHighlighted(n.legend),calloutLegend:n.legend,dataForHoverCard:n.data,color:i,xCalloutValue:n.xAxisCalloutData?n.xAxisCalloutData:t,yCalloutValue:n.yAxisCalloutData,dataPointCalloutProps:n,callOutAccessibilityData:n.callOutAccessibilityData}))},n.prototype._onStackHover=function(t,n){n.persist(),this._onStackHoverFocus(t,n)},n.prototype._onStackHoverFocus=function(t,n){var i,e,r,u=this;this._noLegendHighlighted()||(t=(0,o.Cl)((0,o.Cl)({},t),{chartData:t.chartData.filter((function(t){return u._isLegendHighlighted(t.legend)})),lineData:null===(i=t.lineData)||void 0===i?void 0:i.filter((function(t){return u._isLegendHighlighted(t.legend)}))}));var a=t.lineData,s=void 0!==a&&a.length>0;s&&a.forEach((function(t){t.data=t.data||t.y,t.shouldDrawBorderBottom=!0})),this.setState({refSelected:n,isCalloutVisible:t.chartData.length>0||(null!==(r=null===(e=t.lineData)||void 0===e?void 0:e.length)&&void 0!==r?r:0)>0,YValueHover:s?(0,o.fX)((0,o.fX)([],a.sort((function(t,n){return t.data<n.data?1:-1})),!0),t.chartData.slice().reverse(),!0):t.chartData.slice().reverse(),hoverXValue:t.xAxisPoint instanceof Date?Hs(t.xAxisPoint,this.props.useUTC):t.xAxisPoint,stackCalloutProps:t,activeXAxisDataPoint:t.xAxisPoint,callOutAccessibilityData:t.stackCallOutAccessibilityData})},n.prototype._onRectFocus=function(t,n,i,e){e.refElement&&this._onRectFocusHover(n,t,i,e.refElement)},n.prototype._onStackFocus=function(t,n){n.refElement&&this._onStackHoverFocus(t,n.refElement)},n.prototype._onClick=function(t,n){var i,e;null===(e=(i=this.props).onBarClick)||void 0===e||e.call(i,n,t),this.props.href&&(window.location.href=this.props.href)},n.prototype._getBarGapAndScale=function(t,n,i){var e=this.props.barGapMax,r=void 0===e?0:e,o=t.reduce((function(t,n){return t+n.data}),0),u=null!=i?i:n(o),a=r&&t.length-1,s=a&&Math.max(1,Math.min(r,.2*u/a));return{gapHeight:s,heightValueScale:(u-s*a)/o}},n.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.length>0&&0===this.props.data.filter((function(t){return 0===t.chartData.length})).length)},n.defaultProps={maxBarWidth:24,useUTC:!0},n}(u.Component),jh=(0,r.I)(zh,(function(t){var n=t.shouldHighlight,i=t.href,e=t.theme;return{opacityChangeOnHover:{opacity:n?"":"0.1",cursor:i?"pointer":"default"},tooltip:(0,o.Cl)((0,o.Cl)({},e.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:e.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"}),barLabel:{fontSize:$t.s.small,fontWeight:$t.BO.semibold,fill:e.palette.neutralPrimary}}})),Yh=(0,a.Z)(),$h=.1/.9,Xh=function(t){function n(n){var i,e=t.call(this,n)||this;return e._isRtl=(0,s.jI)(),e._getMinMaxOfYAxis=function(){return{startValue:0,endValue:0}},e._getDomainNRangeValues=function(t,n,i,e,r,o,u,a,s){return o===rs.NumericAxis||o===rs.DateAxis?{dStartValue:0,dEndValue:0,rStartValue:0,rEndValue:0}:ws(n,i,r)},e._getGraphData=function(t,n,i,r,o){var u=e._createX0Scale(r);e._barWidth=Bs(e.props.barwidth,e.props.maxBarWidth,u.bandwidth()/(e._keys.length+(e._keys.length-1)*$h)),e._groupWidth=(e._keys.length+(e._keys.length-1)*$h)*e._barWidth;var a=e._createX1Scale(),s=[];e._datasetForBars.forEach((function(t){s.push(e._buildGraph(t,u,a,i,o))})),e._groupedVerticalBarGraph=s},e._getMargins=function(t){return e.margins=t},e._createDataSetOfGVBC=function(t){var n=[],i=t.map((function(t){return t.name}));t[0].series.forEach((function(t){n.push(t.key)}));var r=e._createDataset(t);return{keys:n,xAxisLabels:i,datasetForBars:r}},e._getCustomizedCallout=function(){return e.props.onRenderCalloutPerDataPoint?e.props.onRenderCalloutPerDataPoint(e.state.dataPointCalloutProps):null},e._getOpacity=function(t){return e._legendHighlighted(t)||e._noLegendHighlighted()?"":"0.1"},e._onBarHover=function(t,n,i){i.persist(),e._calloutAnchorPoint!==t&&(e._calloutAnchorPoint=t,e.setState({refSelected:i,isCalloutVisible:e._noLegendHighlighted()||e._legendHighlighted(t.legend),calloutLegend:t.legend,dataForHoverCard:t.data,color:t.color,xCalloutValue:t.xAxisCalloutData,yCalloutValue:t.yAxisCalloutData,dataPointCalloutProps:t,callOutAccessibilityData:e.props.isCalloutForStack?n.stackCallOutAccessibilityData:t.callOutAccessibilityData,YValueHover:n.groupSeries,hoverXValue:t.xAxisCalloutData}))},e._onBarLeave=function(){},e._handleChartMouseLeave=function(){e._calloutAnchorPoint=null,e.setState({isCalloutVisible:!1})},e._onBarFocus=function(t,n,i){e._refArray.forEach((function(r,o){r.index===t.legend&&i===o&&e.setState({refSelected:r.refElement,isCalloutVisible:e._noLegendHighlighted()||e._legendHighlighted(t.legend),calloutLegend:t.legend,dataForHoverCard:t.data,color:t.color,xCalloutValue:t.xAxisCalloutData,yCalloutValue:t.yAxisCalloutData,dataPointCalloutProps:t,callOutAccessibilityData:e.props.isCalloutForStack?n.stackCallOutAccessibilityData:t.callOutAccessibilityData,YValueHover:n.groupSeries,hoverXValue:t.xAxisCalloutData})}))},e._redirectToUrl=function(t){t&&(window.location.href=t)},e._buildGraph=function(t,n,i,r,o){var a=[],s=[],l=Ue().domain([0,e._yMax]).range([0,r-e.margins.bottom-e.margins.top]),c=Object.keys(e._datasetForBars[0]).splice(0,e._keys.length);if(c.forEach((function(n,o){var f,h,d,v,p,m=t.indexNum*c.length+o,y=t[n],b=i(n)+(i.bandwidth()-e._barWidth)/2,x=Math.max(r-e.margins.bottom-l(y.data),0),C=y.color?y.color:mf(o,0,null===(f=e.props.theme)||void 0===f?void 0:f.isInverted),w=C;e.props.enableGradient&&(C=(null===(h=y.gradient)||void 0===h?void 0:h[0])||Us(o,0,null===(d=e.props.theme)||void 0===d?void 0:d.isInverted)[0],w=(null===(v=y.gradient)||void 0===v?void 0:v[1])||Us(o,0,null===(p=e.props.theme)||void 0===p?void 0:p.isInverted)[1],y.color=C);var M=g("GVBC_Gradient")+"_".concat(t.indexNum,"_").concat(o);y.data&&a.push(u.createElement(u.Fragment,{key:"".concat(t.indexNum,"-").concat(o)},e.props.enableGradient&&u.createElement("defs",null,u.createElement("linearGradient",{id:M,x1:"0%",y1:"100%",x2:"0%",y2:"0%"},u.createElement("stop",{offset:"0",stopColor:C}),u.createElement("stop",{offset:"100%",stopColor:w}))),u.createElement("rect",{className:e._classNames.opacityChangeOnHover,height:Math.max(l(y.data),0),width:e._barWidth,x:b,y:x,"data-is-focusable":!e.props.hideTooltip&&(e._legendHighlighted(y.legend)||e._noLegendHighlighted()),opacity:e._getOpacity(y.legend),ref:function(t){e._refCallback(t,y.legend,m)},fill:e.props.enableGradient?"url(#".concat(M,")"):C,rx:e.props.roundCorners?3:0,onMouseOver:e._onBarHover.bind(e,y,t),onMouseMove:e._onBarHover.bind(e,y,t),onMouseOut:e._onBarLeave,onFocus:e._onBarFocus.bind(e,y,t,m),onBlur:e._onBarLeave,onClick:e.props.href?e._redirectToUrl.bind(e,e.props.href):y.onClick,"aria-label":e._getAriaLabel(y,t.xAxisPoint),role:"img"}))),y.data&&!e.props.hideLabels&&e._barWidth>=16&&(e._legendHighlighted(y.legend)||e._noLegendHighlighted())&&s.push(u.createElement("text",{key:"".concat(t.indexNum,"-").concat(o),x:b+e._barWidth/2,y:x-6,textAnchor:"middle",className:e._classNames.barLabel,"aria-hidden":!0},Ps(y.data)))})),!e.props.wrapXAxisLables&&e.props.showXAxisLablesTooltip){var f=ss(o).call(n);try{document.getElementById(e._tooltipId)&&document.getElementById(e._tooltipId).remove()}catch(t){}var h={tooltipCls:e._classNames.tooltip,id:e._tooltipId,xAxis:f};f&&bs(h)}return u.createElement("g",{key:t.indexNum,transform:"translate(".concat(n(t.xAxisPoint)+(n.bandwidth()-e._groupWidth)/2,", 0)")},a,s)},e._createDataset=function(t){var n=[],i=[];return t.forEach((function(t,r){var u={},a={},s=[];t.series.forEach((function(t,n){var i,r;e.props.enableGradient&&(t.color=(null===(i=t.gradient)||void 0===i?void 0:i[0])||Us(n,0,null===(r=e.props.theme)||void 0===r?void 0:r.isInverted)[0]),u[t.key]=t.data,a[t.key]=(0,o.Cl)({},t),s.push(t)})),a.xAxisPoint=t.name,a.indexNum=r,a.groupSeries=s,a.stackCallOutAccessibilityData=t.stackCallOutAccessibilityData,n.push(a),i.push(u)})),e._dataset=i,n},e._createX0Scale=function(t){return Uu().domain(e._xAxisLabels).range(e._isRtl?[t-e.margins.right-e._domainMargin,e.margins.left+e._domainMargin]:[e.margins.left+e._domainMargin,t-e.margins.right-e._domainMargin]).paddingInner(e._xAxisInnerPadding).paddingOuter(e._xAxisOuterPadding)},e._createX1Scale=function(){return Uu().domain(e._keys).range(e._isRtl?[e._groupWidth,0]:[0,e._groupWidth]).paddingInner(.1)},e._closeCallout=function(){e.setState({isCalloutVisible:!1})},e._getLegendData=function(t,n){var i=t,r=[n.blueLight,n.blue,n.blueMid,n.red,n.black],a=[];return i.forEach((function(t){t.series.forEach((function(n){var i,o,u,s=n.color?n.color:r[Math.floor(4*Math.random()+1)];if(e.props.enableGradient){var l=Math.max((null===(i=t.series)||void 0===i?void 0:i.findIndex((function(t){return t.legend===n.legend})))||0,0);s=(null===(o=n.gradient)||void 0===o?void 0:o[0])||Us(l,0,null===(u=e.props.theme)||void 0===u?void 0:u.isInverted)[0]}if(!(a.filter((function(t){return t.title===n.legend&&t.color===s})).length>0)){var c={title:n.legend,color:s,hoverAction:function(){e._handleChartMouseLeave(),e._onLegendHover(n.legend)},onMouseOutAction:function(){e._onLegendLeave()}};a.push(c)}}))})),u.createElement(Ac,(0,o.Cl)({legends:a,overflowProps:e.props.legendsOverflowProps,enabledWrapLines:e.props.enabledLegendsWrapLines,focusZonePropsInHoverCard:e.props.focusZonePropsForLegendsInHoverCard},e.props.legendProps,{onChange:e._onLegendSelectionChange.bind(e)}))},e._getAxisData=function(t){if(t&&t.yAxisDomainValues.length){var n=t.yAxisDomainValues;e._yMax=Math.max(n[n.length-1],e.props.yMaxValue||0)}},e._legendHighlighted=function(t){return e._getHighlightedLegend().includes(t)},e._noLegendHighlighted=function(){return 0===e._getHighlightedLegend().length},e._getAriaLabel=function(t,n){var i,e=t.xAxisCalloutData||n,r=t.legend,o=t.yAxisCalloutData||t.data;return(null===(i=t.callOutAccessibilityData)||void 0===i?void 0:i.ariaLabel)||"".concat(e,". ").concat(r,", ").concat(o,".")},e._getDomainMargins=function(t){e._domainMargin=8;var n=t-(e.margins.left+8)-(e.margins.right+8),i=e._xAxisInnerPadding/(1-e._xAxisInnerPadding);if(e._xAxisType===rs.StringAxis)if(_s(e.props.xAxisOuterPadding))e._domainMargin=0;else if("auto"!==e.props.barwidth){e._barWidth=Bs(e.props.barwidth,e.props.maxBarWidth);var r=(e._keys.length+(e._keys.length-1)*$h)*e._barWidth;n>=(u=(e._xAxisLabels.length+(e._xAxisLabels.length-1)*i)*r)&&(e._domainMargin=8+(n-u)/2)}else if("plotly"===e.props.mode&&e._xAxisLabels.length>1){var u,a=n/(e._xAxisLabels.length+(e._xAxisLabels.length-1)*i)/(e._keys.length+(e._keys.length-1)*$h),s=Bs(e.props.barwidth,e.props.maxBarWidth,a),l=(r=(e._keys.length+(e._keys.length-1)*$h)*s,(n-(u=(e._xAxisLabels.length+(e._xAxisLabels.length-1)*i)*r))/2),c=ys(e._xAxisLabels)+20,f=(n-(u=(e._xAxisLabels.length-e._xAxisInnerPadding)*c))/2;e._domainMargin=8+Math.max(0,Math.min(l,f))}return(0,o.Cl)((0,o.Cl)({},e.margins),{left:e.margins.left+e._domainMargin,right:e.margins.right+e._domainMargin})},e._getChartTitle=function(){var t=e.props.chartTitle;return(t?"".concat(t,". "):"")+"Vertical bar chart with ".concat(e._xAxisLabels.length," groups of ").concat(e._keys.length," bars each. ")},Js(e),e._createSet=(0,dn.J9)((function(t){return e._createDataSetOfGVBC(t)})),e.state={color:"",dataForHoverCard:0,isCalloutVisible:!1,refSelected:null,selectedLegends:(null===(i=n.legendProps)||void 0===i?void 0:i.selectedLegends)||[],xCalloutValue:"",yCalloutValue:"",YValueHover:[],hoverXValue:"",calloutLegend:"",activeLegend:""},In("GROUPED VERTICAL BAR CHART",n,{showYAxisGridLines:"Dont use this property. Lines are drawn by default",showXAxisPath:"Dont use this property. Axis line removed default.",showYAxisPath:"Dont use this property. No need to display Y axis path. Handling default",showXAxisGridLines:"Dont use this property. Handling with default value.",legendColor:"Dont use this property. colour will pick from given data."}),e._refArray=[],e._calloutId=g("callout"),e._tooltipId=g("GVBCTooltipId_"),e._emptyChartId=g("_GVBC_empty"),e._domainMargin=8,e._cartesianChartRef=u.createRef(),e}return(0,o.C6)(n,t),n.prototype.componentDidUpdate=function(t){var n,i,e;Is(null===(n=t.legendProps)||void 0===n?void 0:n.selectedLegends,null===(i=this.props.legendProps)||void 0===i?void 0:i.selectedLegends)||this.setState({selectedLegends:(null===(e=this.props.legendProps)||void 0===e?void 0:e.selectedLegends)||[]})},n.prototype.render=function(){var t=this,n=this.props.data,i=this._createSet(n),e=i.keys,r=i.xAxisLabels,a=i.datasetForBars;this._keys=e,this._xAxisLabels=r,this._datasetForBars=a,this._xAxisType=Ns(n[0].name,!0);var s=this._getLegendData(n,this.props.theme.palette);this._adjustProps();var l=pi(this._dataset,(function(n){return pi(t._keys,(function(t){return n[t]}))}));this._yMax=Math.max(l,this.props.yMaxValue||0),this._classNames=Yh(this.props.styles,{theme:this.props.theme,href:this.props.href});var c=(0,o.Cl)((0,o.Cl)((0,o.Cl)({target:this.state.refSelected,isCalloutVisible:this.state.isCalloutVisible,directionalHint:x.topAutoEdge,id:"toolTip".concat(this._calloutId),gapSpace:15,isBeakVisible:!1,setInitialFocus:!0,color:this.state.color,Legend:this.state.calloutLegend,XValue:this.state.xCalloutValue,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard,YValueHover:this.state.YValueHover,hoverXValue:this.state.hoverXValue,onDismiss:this._closeCallout},this.props.calloutProps),{preventDismissOnLostFocus:!0}),Es(this.state.callOutAccessibilityData,"text",!1)),f={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return this._isChartEmpty()?u.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):u.createElement(_f,(0,o.Cl)({},this.props,{chartTitle:this._getChartTitle(),points:this._datasetForBars,chartType:es.GroupedVerticalBarChart,calloutProps:c,legendBars:s,xAxisType:this._xAxisType,createYAxis:ds,datasetForXAxisDomain:this._xAxisLabels,tickParams:f,getDomainNRangeValues:this._getDomainNRangeValues,getMinMaxOfYAxis:this._getMinMaxOfYAxis,createStringYAxis:ps,tickPadding:this.props.tickPadding||5,maxOfYVal:this._yMax,svgFocusZoneProps:{direction:Ws.horizontal},customizedCallout:this._getCustomizedCallout(),getmargins:this._getMargins,getGraphData:this._getGraphData,getAxisData:this._getAxisData,onChartMouseLeave:this._handleChartMouseLeave,getDomainMargins:this._getDomainMargins},this._xAxisType===rs.StringAxis&&{xAxisInnerPadding:this._xAxisInnerPadding,xAxisOuterPadding:this._xAxisOuterPadding},{barwidth:this._barWidth,ref:this._cartesianChartRef,children:function(){return u.createElement("g",null,t._groupedVerticalBarGraph)}}))},Object.defineProperty(n.prototype,"chartContainer",{get:function(){var t;return(null===(t=this._cartesianChartRef.current)||void 0===t?void 0:t.chartContainer)||null},enumerable:!1,configurable:!0}),n.prototype._refCallback=function(t,n,i){this._refArray[i]={index:n,refElement:t}},n.prototype._onLegendHover=function(t){this.setState({activeLegend:t})},n.prototype._onLegendLeave=function(){this.setState({activeLegend:""})},n.prototype._onLegendSelectionChange=function(t,n,i){var e,r;(null===(e=this.props.legendProps)||void 0===e?void 0:e.canSelectMultipleLegends)?this.setState({selectedLegends:t}):this.setState({selectedLegends:t.slice(-1)}),(null===(r=this.props.legendProps)||void 0===r?void 0:r.onChange)&&this.props.legendProps.onChange(t,n,i)},n.prototype._getHighlightedLegend=function(){return this.state.selectedLegends.length>0?this.state.selectedLegends:this.state.activeLegend?[this.state.activeLegend]:[]},n.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.length>0&&this.props.data.filter((function(t){return t.series.length})).length>0)},n.prototype._adjustProps=function(){this._barWidth=Bs(this.props.barwidth,this.props.maxBarWidth),this._xAxisInnerPadding=Fs(this.props.xAxisInnerPadding,void 0,2/(2+this._keys.length+(this._keys.length-1)*$h)),this._xAxisOuterPadding=Fs(this.props.xAxisOuterPadding)},n.defaultProps={maxBarWidth:24},n}(u.Component),Gh=(0,r.I)(Xh,(function(t){var n=t.theme;return{opacityChangeOnHover:{cursor:t.href?"pointer":"default"},tooltip:(0,o.Cl)((0,o.Cl)({},n.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:n.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"}),barLabel:{fontSize:$t.s.small,fontWeight:$t.BO.semibold,fill:n.palette.neutralPrimary}}})),qh=i(263),Uh=(0,a.Z)(),Zh=function(t){function n(n){var i,e,r=t.call(this,n)||this;return r._rectRefArray={},r._getMinMaxOfYAxis=function(){return{startValue:0,endValue:0}},r._getDomainNRangeValues=function(t,n,i,e,o,u,a,s,l){return u===rs.NumericAxis||u===rs.DateAxis?{dStartValue:0,dEndValue:0,rStartValue:0,rEndValue:0}:ws(r.margins,i,o)},r._getXandY=function(){var t="",n="";return r.props.data.forEach((function(i){if(i.data&&i.data.length>0)return t=i.data[0].x,n=i.data[0].y,{x:t,y:n}})),{x:t,y:n}},r._getMargins=function(t){r.margins=t},r._getOpacity=function(t){return r._legendHighlighted(t)||r._noLegendHighlighted()?"1":"0.1"},r._rectRefCallback=function(t,n,i){r._rectRefArray[n]={data:i,refElement:t}},r._onRectFocus=function(t,n){r.setState({target:r._rectRefArray[t].refElement,isCalloutVisible:""===r.state.selectedLegend||r.state.selectedLegend===n.legend,calloutYValue:"".concat(n.rectText),calloutTextColor:Number.isNaN(n.value)?r.props.theme.semanticColors.bodyText:r._colorScale(n.value),calloutLegend:n.legend,ratio:n.ratio||null,descriptionMessage:n.descriptionMessage||"",calloutId:t,callOutAccessibilityData:n.callOutAccessibilityData})},r._onRectMouseOver=function(t,n,i){i.persist(),r._calloutAnchorPoint!==n&&(r._calloutAnchorPoint=n,r.setState({target:r._rectRefArray[t].refElement,isCalloutVisible:""===r.state.selectedLegend||r.state.selectedLegend===n.legend,calloutYValue:"".concat(n.rectText),calloutTextColor:Number.isNaN(n.value)?r.props.theme.semanticColors.bodyText:r._colorScale(n.value),calloutLegend:n.legend,ratio:n.ratio||null,descriptionMessage:n.descriptionMessage||"",calloutId:t,callOutAccessibilityData:n.callOutAccessibilityData}))},r._onRectBlurOrMouseOut=function(){},r._handleChartMouseLeave=function(){r._calloutAnchorPoint=null,r.setState({isCalloutVisible:!1})},r._createRectangles=function(){var t=[];return r._stringYAxisDataPoints.slice().reverse().forEach((function(n){var i=0;r._stringXAxisDataPoints.forEach((function(e){var o,a,s="x".concat(e,"y").concat(n);if((null===(o=r._dataSet[n][i])||void 0===o?void 0:o.x)===e){var l=r._dataSet[n][i];a=u.createElement("g",{key:s,role:"img","aria-label":r._getAriaLabel(l),"data-is-focusable":r._legendHighlighted(l.legend)||r._noLegendHighlighted(),fillOpacity:r._getOpacity(l.legend),transform:"translate(".concat(r._xAxisScale(l.x),", ").concat(r._yAxisScale(l.y),")"),ref:function(t){r._rectRefCallback(t,s,l)},onFocus:r._onRectFocus.bind(r,s,l),onBlur:r._onRectBlurOrMouseOut,onMouseOver:r._onRectMouseOver.bind(r,s,l),onMouseOut:r._onRectBlurOrMouseOut},u.createElement("rect",{fill:r._colorScale(l.value),width:r._xAxisScale.bandwidth(),height:r._yAxisScale.bandwidth(),onClick:l.onClick}),u.createElement("text",{dominantBaseline:"middle",textAnchor:"middle",className:r._classNames.text,transform:"translate(".concat(r._xAxisScale.bandwidth()/2,", ").concat(r._yAxisScale.bandwidth()/2,")")},(0,Jn.U)(l.rectText,r.props.culture))),i++}else{var c={x:e,y:n,value:NaN,rectText:"No data available",legend:""};a=u.createElement("g",{key:s,role:"img","aria-label":r._getAriaLabel(c),"data-is-focusable":r._noLegendHighlighted(),transform:"translate(".concat(r._xAxisScale(c.x),", ").concat(r._yAxisScale(c.y),")"),ref:function(t){r._rectRefCallback(t,s,c)},onFocus:r._onRectFocus.bind(r,s,c),onBlur:r._onRectBlurOrMouseOut,onMouseOver:r._onRectMouseOver.bind(r,s,c),onMouseOut:r._onRectBlurOrMouseOut},u.createElement("rect",{fill:r.props.theme.semanticColors.bodyBackground,width:r._xAxisScale.bandwidth(),height:r._yAxisScale.bandwidth()}))}t.push(a)}))})),t},r._createLegendBars=function(){var t=r.props,n=t.data,i=t.legendProps,e=[];return n.forEach((function(t){var n={title:t.legend,color:r._colorScale(t.value),action:function(){r._onLegendClick(t.legend)},hoverAction:function(){r._handleChartMouseLeave(),r._onLegendHover(t.legend)},onMouseOutAction:function(){r._onLegendLeave()}};e.push(n)})),u.createElement(Ac,(0,o.Cl)({},i,{legends:e}))},r._getColorScale=function(){var t=r.props,n=t.domainValuesForColorScale,i=t.rangeValuesForColorScale;return Ue().domain(n).range(i)},r._getXIndex=function(t){return r._xAxisType===rs.DateAxis?"".concat(t.getTime()):r._xAxisType===rs.StringAxis?t:r._xAxisType===rs.NumericAxis?"".concat(t):""},r._getYIndex=function(t){return r._yAxisType===os.DateAxis?"".concat(t.getTime()):r._yAxisType===os.StringAxis?t:r._yAxisType===os.NumericAxis?"".concat(t):""},r._createNewDataSet=function(t,n,i,e,u){var a=[];t.forEach((function(t){t.data.forEach((function(n){a.push((0,o.Cl)((0,o.Cl)({},n),{legend:t.legend}))}))}));var s={},l={},c={};return a.forEach((function(t){var n=r._getXIndex(t.x),i=r._getYIndex(t.y);c[n]="1",l[i]="1",s[i]?s[i]=(0,o.fX)((0,o.fX)([],s[i],!0),[t],!1):s[i]=[t]})),Object.keys(s).forEach((function(t){s[t].sort((function(t,n){return r._xAxisType===rs.StringAxis?"none"===r.props.sortOrder?0:t.x.toLowerCase()>n.x.toLowerCase()?1:-1:r._xAxisType===rs.DateAxis?t.x.getTime()-n.x.getTime():r._xAxisType===rs.NumericAxis?+t.x>+n.x?1:-1:t.x>n.x?1:-1})).forEach((function(t){r._xAxisType===rs.DateAxis&&(t.x=r._getStringFormattedDate(t.x,n)),r._xAxisType===rs.NumericAxis&&(t.x=r._getStringFormattedNumber(t.x,i)),r._xAxisType===rs.StringAxis&&(t.x=r._getFormattedLabelForXAxisDataPoint(t.x)),r._yAxisType===os.DateAxis&&(t.y=r._getStringFormattedDate(t.y,e)),r._yAxisType===os.NumericAxis&&(t.y=r._getStringFormattedNumber(t.y,u)),r._yAxisType===os.StringAxis&&(t.y=r._getFormattedLabelForYAxisDataPoint(t.y))}))})),Object.keys(s).forEach((function(t){r._yAxisType===os.DateAxis?s[r._getStringFormattedDate(t,e)]=s[t]:r._yAxisType===os.NumericAxis?s["".concat(r._getStringFormattedNumber(t,u))]=s[t]:s[r._getFormattedLabelForYAxisDataPoint(t)]=s[t]})),{dataSet:s,yAxisPoints:r._getYAxisDataPoints(l),xAxisPoints:r._getXAxisDataPoints(c)}},r._getXAxisDataPoints=function(t){return Object.keys(t).sort((function(t,n){return r._xAxisType===rs.DateAxis||r._xAxisType===rs.NumericAxis?+t-+n:"none"===r.props.sortOrder?0:t.toLowerCase()>n.toLowerCase()?1:-1})).map((function(t){return r._xAxisType===rs.DateAxis?r._getStringFormattedDate(t,r.props.xAxisDateFormatString):r._xAxisType===rs.NumericAxis?r._getStringFormattedNumber(t,r.props.xAxisNumberFormatString):r._getFormattedLabelForXAxisDataPoint(t)}))},r._getYAxisDataPoints=function(t){return Object.keys(t).sort((function(t,n){return r._yAxisType===os.DateAxis||r._yAxisType===os.NumericAxis?+t-+n:"none"===r.props.sortOrder?0:t.toLowerCase()>n.toLowerCase()?1:-1})).map((function(t){return r._yAxisType===os.DateAxis?r._getStringFormattedDate(t,r.props.yAxisDateFormatString):r._yAxisType===os.NumericAxis?r._getStringFormattedNumber(t,r.props.yAxisNumberFormatString):r._getFormattedLabelForYAxisDataPoint(t)}))},r._getStringFormattedDate=function(t,n){var i=new Date;return i.setTime(+t),xo(n||"%b/%d")(i)},r._getStringFormattedNumber=function(t,n){return Ye(n||".2~s")(+t)},r._getFormattedLabelForXAxisDataPoint=function(t){var n=r.props.xAxisStringFormatter;return n?n(t):t},r._getFormattedLabelForYAxisDataPoint=function(t){var n=r.props.yAxisStringFormatter;return n?n(t):t},r._closeCallout=function(){r.setState({isCalloutVisible:!1})},r._legendHighlighted=function(t){return r.state.selectedLegend===t||""===r.state.selectedLegend&&r.state.activeLegend===t},r._noLegendHighlighted=function(){return""===r.state.selectedLegend&&""===r.state.activeLegend},r._getAriaLabel=function(t){var n,i=t.x,e=t.y,r=t.legend,o=t.ratio?"".concat(t.ratio[0],"/").concat(t.ratio[1]):t.rectText||t.value,u=t.descriptionMessage;return(null===(n=t.callOutAccessibilityData)||void 0===n?void 0:n.ariaLabel)||"".concat(i,", ").concat(e,". ").concat(r,", ").concat(o,".")+(u?" ".concat(u,"."):"")},r._getChartTitle=function(){var t=r.props.chartTitle,n=r.props.data.reduce((function(t,n){return t+n.data.length}),0);return(t?"".concat(t,". "):"")+"Heat map chart with ".concat(n," data points. ")},Js(r),r._createSet=(0,dn.J9)((function(t,n,i,e,o){return r._createNewDataSet(t,n,i,e,o)})),r.state={selectedLegend:null!==(e=null===(i=n.legendProps)||void 0===i?void 0:i.selectedLegend)&&void 0!==e?e:"",activeLegend:"",isCalloutVisible:!1,target:null,calloutLegend:"",calloutTextColor:"",calloutYValue:"",ratio:null,descriptionMessage:"",calloutId:""},r._emptyChartId=g("_HeatMap_empty"),r._cartesianChartRef=u.createRef(),r}return(0,o.C6)(n,t),n.prototype.componentDidUpdate=function(t){var n,i,e,r;(null===(n=t.legendProps)||void 0===n?void 0:n.selectedLegend)!==(null===(i=this.props.legendProps)||void 0===i?void 0:i.selectedLegend)&&this.setState({selectedLegend:null!==(r=null===(e=this.props.legendProps)||void 0===e?void 0:e.selectedLegend)&&void 0!==r?r:""})},n.prototype.render=function(){var t=this,n=this._getXandY(),i=n.x,e=n.y;this._xAxisType=Ns(i,!0),this._yAxisType=Ns(e,!1);var r=this.props,a=r.data,s=r.xAxisDateFormatString,l=r.xAxisNumberFormatString,c=r.yAxisDateFormatString,f=r.yAxisNumberFormatString;this._colorScale=this._getColorScale();var h=this._createSet(a,s,l,c,f),d=h.dataSet,v=h.xAxisPoints,p=h.yAxisPoints;this._dataSet=d,this._stringYAxisDataPoints=p,this._stringXAxisDataPoints=v,this._classNames=Uh(this.props.styles,{theme:this.props.theme});var g=(0,o.Cl)((0,o.Cl)((0,o.Cl)((0,o.Cl)({isBeakVisible:!1,gapSpace:8},this.props.calloutProps),{isCalloutVisible:this.state.isCalloutVisible,id:this.state.calloutId,YValue:this.state.calloutYValue,legend:this.state.calloutLegend,color:this.state.calloutTextColor,target:this.state.target,styles:this._classNames.subComponentStyles.calloutStyles,directionalHint:x.topAutoEdge,onDismiss:this._closeCallout}),Es(this.state.callOutAccessibilityData,"text",!1)),{preventDismissOnLostFocus:!0}),m=(0,o.Cl)((0,o.Cl)({},this.state.ratio&&{ratio:this.state.ratio}),{descriptionMessage:this.state.descriptionMessage});return this._isChartEmpty()?u.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):u.createElement(_f,(0,o.Cl)({},this.props,{chartTitle:this._getChartTitle(),points:a,chartType:es.HeatMapChart,xAxisType:rs.StringAxis,yAxisType:os.StringAxis,calloutProps:g,createYAxis:ds,chartHoverProps:m,styles:this._classNames.subComponentStyles.cartesianStyles,datasetForXAxisDomain:this._stringXAxisDataPoints,stringDatasetForYAxisDomain:this._stringYAxisDataPoints,createStringYAxis:ps,getDomainNRangeValues:this._getDomainNRangeValues,getMinMaxOfYAxis:this._getMinMaxOfYAxis,getmargins:this._getMargins,xAxisTickCount:this._stringXAxisDataPoints.length,xAxistickSize:0,xAxisPadding:.02,yAxisPadding:.02,svgFocusZoneProps:{direction:Ws.bidirectional},legendBars:this._createLegendBars(),onChartMouseLeave:this._handleChartMouseLeave,ref:this._cartesianChartRef,children:function(n){return t._xAxisScale=n.xScale,t._yAxisScale=n.yScale,t._createRectangles()}}))},Object.defineProperty(n.prototype,"chartContainer",{get:function(){var t;return(null===(t=this._cartesianChartRef.current)||void 0===t?void 0:t.chartContainer)||null},enumerable:!1,configurable:!0}),n.prototype._onLegendHover=function(t){this.setState({activeLegend:t})},n.prototype._onLegendLeave=function(){this.setState({activeLegend:""})},n.prototype._onLegendClick=function(t){this.state.selectedLegend===t?this.setState({selectedLegend:""}):this.setState({selectedLegend:t})},n.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.length>0)},n}(u.Component),Kh=(0,r.I)(Zh,(function(t){var n=t.theme;return{root:{},text:[n.fonts.medium,{pointerEvents:"none",fill:n.palette.white,fontWeight:$t.BO.semibold}],subComponentStyles:{cartesianStyles:{},calloutStyles:{root:{maxWidth:"238px"}}}}})),Jh=/[\{\}]/g,Qh=/\{\d+\}/g;function td(t){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var e=n;return t.replace(Qh,(function(t){var n=e[t.replace(Jh,"")];return null==n&&(n=""),n}))}function nd(t,n){let i=0;if(void 0===n)for(let n of t)(n=+n)&&(i+=n);else{let e=-1;for(let r of t)(r=+n(r,++e,t))&&(i+=r)}return i}function id(t,n){let i=0;if(void 0===n)for(let n of t)(n=+n)&&(i+=n);else{let e=-1;for(let r of t)(r=+n(r,++e,t))&&(i+=r)}return i}function ed(t,n){let i;if(void 0===n)for(const n of t)null!=n&&(i<n||void 0===i&&n>=n)&&(i=n);else{let e=-1;for(let r of t)null!=(r=n(r,++e,t))&&(i<r||void 0===i&&r>=r)&&(i=r)}return i}function rd(t,n){return n-1-t.height}function od(t,n){return t.sourceLinks.length?t.depth:n-1}function ud(t){return function(){return t}}function ad(t,n){return ld(t.source,n.source)||t.index-n.index}function sd(t,n){return ld(t.target,n.target)||t.index-n.index}function ld(t,n){return t.y0-n.y0}function cd(t){return t.value}function fd(t){return t.index}function hd(t){return t.nodes}function dd(t){return t.links}function vd(t,n){const i=t.get(n);if(!i)throw new Error("missing: "+n);return i}function pd({nodes:t}){for(const n of t){let t=n.y0,i=t;for(const i of n.sourceLinks)i.y0=t+i.width/2,t+=i.width;for(const t of n.targetLinks)t.y1=i+t.width/2,i+=t.width}}function gd(){let t,n,i,e=0,r=0,o=1,u=1,a=24,s=8,l=fd,c=od,f=hd,h=dd,d=6;function v(){const v={nodes:f.apply(null,arguments),links:h.apply(null,arguments)};return function({nodes:t,links:n}){for(const[n,i]of t.entries())i.index=n,i.sourceLinks=[],i.targetLinks=[];const e=new Map(t.map(((n,i)=>[l(n,i,t),n])));for(const[t,i]of n.entries()){i.index=t;let{source:n,target:r}=i;"object"!=typeof n&&(n=i.source=vd(e,n)),"object"!=typeof r&&(r=i.target=vd(e,r)),n.sourceLinks.push(i),r.targetLinks.push(i)}if(null!=i)for(const{sourceLinks:n,targetLinks:e}of t)n.sort(i),e.sort(i)}(v),function({nodes:t}){for(const n of t)n.value=void 0===n.fixedValue?Math.max(id(n.sourceLinks,cd),id(n.targetLinks,cd)):n.fixedValue}(v),function({nodes:t}){const n=t.length;let i=new Set(t),e=new Set,r=0;for(;i.size;){for(const t of i){t.depth=r;for(const{target:n}of t.sourceLinks)e.add(n)}if(++r>n)throw new Error("circular link");i=e,e=new Set}}(v),function({nodes:t}){const n=t.length;let i=new Set(t),e=new Set,r=0;for(;i.size;){for(const t of i){t.height=r;for(const{source:n}of t.targetLinks)e.add(n)}if(++r>n)throw new Error("circular link");i=e,e=new Set}}(v),function(i){const l=function({nodes:t}){const i=ed(t,(t=>t.depth))+1,r=(o-e-a)/(i-1),u=new Array(i);for(const n of t){const t=Math.max(0,Math.min(i-1,Math.floor(c.call(null,n,i))));n.layer=t,n.x0=e+t*r,n.x1=n.x0+a,u[t]?u[t].push(n):u[t]=[n]}if(n)for(const t of u)t.sort(n);return u}(i);t=Math.min(s,(u-r)/(ed(l,(t=>t.length))-1)),function(n){const i=function(t,n){let i;if(void 0===n)for(const n of t)null!=n&&(i>n||void 0===i&&n>=n)&&(i=n);else{let e=-1;for(let r of t)null!=(r=n(r,++e))&&(i>r||void 0===i&&r>=r)&&(i=r)}return i}(n,(n=>(u-r-(n.length-1)*t)/id(n,cd)));for(const e of n){let n=r;for(const r of e){r.y0=n,r.y1=n+r.value*i,n=r.y1+t;for(const t of r.sourceLinks)t.width=t.value*i}n=(u-n+t)/(e.length+1);for(let t=0;t<e.length;++t){const i=e[t];i.y0+=n*(t+1),i.y1+=n*(t+1)}C(e)}}(l);for(let t=0;t<d;++t){const n=Math.pow(.99,t),i=Math.max(1-n,(t+1)/d);g(l,n,i),p(l,n,i)}}(v),pd(v),v}function p(t,i,e){for(let r=1,o=t.length;r<o;++r){const o=t[r];for(const t of o){let n=0,e=0;for(const{source:i,value:r}of t.targetLinks){let o=r*(t.layer-i.layer);n+=w(i,t)*o,e+=o}if(!(e>0))continue;let r=(n/e-t.y0)*i;t.y0+=r,t.y1+=r,x(t)}void 0===n&&o.sort(ld),m(o,e)}}function g(t,i,e){for(let r=t.length-2;r>=0;--r){const o=t[r];for(const t of o){let n=0,e=0;for(const{target:i,value:r}of t.sourceLinks){let o=r*(i.layer-t.layer);n+=M(t,i)*o,e+=o}if(!(e>0))continue;let r=(n/e-t.y0)*i;t.y0+=r,t.y1+=r,x(t)}void 0===n&&o.sort(ld),m(o,e)}}function m(n,i){const e=n.length>>1,o=n[e];b(n,o.y0-t,e-1,i),y(n,o.y1+t,e+1,i),b(n,u,n.length-1,i),y(n,r,0,i)}function y(n,i,e,r){for(;e<n.length;++e){const o=n[e],u=(i-o.y0)*r;u>1e-6&&(o.y0+=u,o.y1+=u),i=o.y1+t}}function b(n,i,e,r){for(;e>=0;--e){const o=n[e],u=(o.y1-i)*r;u>1e-6&&(o.y0-=u,o.y1-=u),i=o.y0-t}}function x({sourceLinks:t,targetLinks:n}){if(void 0===i){for(const{source:{sourceLinks:t}}of n)t.sort(sd);for(const{target:{targetLinks:n}}of t)n.sort(ad)}}function C(t){if(void 0===i)for(const{sourceLinks:n,targetLinks:i}of t)n.sort(sd),i.sort(ad)}function w(n,i){let e=n.y0-(n.sourceLinks.length-1)*t/2;for(const{target:r,width:o}of n.sourceLinks){if(r===i)break;e+=o+t}for(const{source:t,width:r}of i.targetLinks){if(t===n)break;e-=r}return e}function M(n,i){let e=i.y0-(i.targetLinks.length-1)*t/2;for(const{source:r,width:o}of i.targetLinks){if(r===n)break;e+=o+t}for(const{target:t,width:r}of n.sourceLinks){if(t===i)break;e-=r}return e}return v.update=function(t){return pd(t),t},v.nodeId=function(t){return arguments.length?(l="function"==typeof t?t:ud(t),v):l},v.nodeAlign=function(t){return arguments.length?(c="function"==typeof t?t:ud(t),v):c},v.nodeSort=function(t){return arguments.length?(n=t,v):n},v.nodeWidth=function(t){return arguments.length?(a=+t,v):a},v.nodePadding=function(n){return arguments.length?(s=t=+n,v):s},v.nodes=function(t){return arguments.length?(f="function"==typeof t?t:ud(t),v):f},v.links=function(t){return arguments.length?(h="function"==typeof t?t:ud(t),v):h},v.linkSort=function(t){return arguments.length?(i=t,v):i},v.size=function(t){return arguments.length?(e=r=0,o=+t[0],u=+t[1],v):[o-e,u-r]},v.extent=function(t){return arguments.length?(e=+t[0][0],o=+t[1][0],r=+t[0][1],u=+t[1][1],v):[[e,r],[o,u]]},v.iterations=function(t){return arguments.length?(d=+t,v):d},v}class md{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n)}this._x0=t,this._y0=n}}var yd=(0,a.Z)(),bd="#757575",xd=[{fillColor:"#00758F",borderColor:"#002E39"},{fillColor:"#77004D",borderColor:"#43002C"},{fillColor:"#4F6BED",borderColor:"#3B52B4"},{fillColor:"#937600",borderColor:"#6D5700"},{fillColor:"#286EA8",borderColor:"#00457E"},{fillColor:"#A43FB1",borderColor:"#7C158A"},{fillColor:"#CC3595",borderColor:"#7F215D"},{fillColor:"#0E7878",borderColor:"#004E4E"},{fillColor:"#8764B8",borderColor:"#4B3867"},{fillColor:"#9C663F",borderColor:"#6D4123"}];function Cd(t){return"number"==typeof t?t:t.nodeId}function wd(t,n){return t[Cd(n.source)][Cd(n.target)]}var Md="...";function kd(t,n){var i;try{return t.text(n),null===(i=t.node())||void 0===i?void 0:i.getComputedTextLength()}finally{t.text(null)}}var Sd,Ad,Ld=ah().x((function(t){return t.x})).y0((function(t){return t.y0})).y1((function(t){return t.y1})).curve((function(t){return new md(t,!0)})),Vd=function(t){function n(n){var i=t.call(this,n)||this;return i._isRtl=(0,s.jI)(),i._numColumns=0,i._onCloseCallout=function(){i.setState({isCalloutVisible:!1,refSelected:void 0,descriptionMessage:""})},i._onBlur=function(){},i._fillNodeColors=function(t){var n=i.state;if(!n.selectedState)return t.color;var e=n.selectedNode;return e&&n.selectedNodes.has(t.index)?e.color:e?void 0:t.color},i._fillNodeBorder=function(t){var n=i.state;if(n.selectedState){if(n.selectedNodes.has(t.index)){var e=n.selectedNode;return e?e.borderColor:t.borderColor}return t.borderColor}return t.borderColor},i._calculateChartMinWidth=function(){return i._margins.left+i._margins.right+124*i._numColumns+62*(i._numColumns-1)},Js(i),i.state={containerHeight:468,containerWidth:912,selectedState:!1,selectedLinks:new Set,selectedNodes:new Set,shouldOverflow:!1,isCalloutVisible:!1},i._calloutId=g("callout"),i._linkId=g("link"),i._chartId=g("sankeyChart"),i._emptyChartId=g("_SankeyChart_empty"),i._labelTooltipId=g("tooltip"),i._margins={top:36,right:48,bottom:32,left:48},i._computeClassNamesProps=(0,dn.J9)((function(t,n,i,e,r){return{theme:t,width:e,height:r,pathColor:n,className:i}})),i._computeClassNames=(0,dn.J9)((function(t,n){return yd(t,n)})),i._normalizeData=(0,dn.J9)((function(t,n,e,r,o){return i._normalizeSankeyData(t,n,e,r,o)})),i._fetchTooltip=(0,dn.J9)((function(t){return i._labelTooltipDiv(t)})),i._strings=(0,dn.J9)((function(t){var n=(null==t?void 0:t.linkFrom)||"From {0}";return{linkFrom:function(t){return td(n,t.name)}}}))(n.strings),i._accessibility=(0,dn.J9)((function(t){var n=(null==t?void 0:t.linkAriaLabel)||"link from {0} to {1} with weight {2}",e=(null==t?void 0:t.nodeAriaLabel)||"node {0} with weight {1}";return{emptyAriaLabel:(null==t?void 0:t.emptyAriaLabel)||"Graph has no data to display",linkAriaLabel:function(t){return td(n,t.source.name,t.target.name,t.unnormalizedValue?i._formatNumber(t.unnormalizedValue):t.unnormalizedValue)},nodeAriaLabel:function(t,n){return td(e,t.name,i._formatNumber(n))}}}))(n.accessibility),i._nodeAttributes=(0,dn.J9)((function(t,n){return i._computeNodeAttributes(t,n)})),i._fetchNodes=function(t,n,e,r){return i._createNodes(t,n,e,r)},i._linkAttributes=(0,dn.J9)((function(t,n,i){return function(t,n,i){var e={};return t.forEach((function(t){var r=Cd(t.source),o=e[r];o||(o={},e[r]=o),o[Cd(t.target)]={reactId:g("link"),from:n(t.source),aria:i(t)}})),e}(t,n,i)})),i._fetchLinks=function(t,n){return i._createLinks(t,n)},i}return(0,o.C6)(n,t),n.prototype.componentDidMount=function(){this._fitParentContainer()},n.prototype.componentDidUpdate=function(t){t.shouldResize!==this.props.shouldResize&&this._fitParentContainer()},n.prototype.componentWillUnmount=function(){cancelAnimationFrame(this._reqID)},n.prototype.render=function(){var t=this;if(!this._isChartEmpty()){var n=this.props,i=n.theme,e=n.className,r=n.styles,a=n.pathColor,s=n.colorsForNodes,l=n.borderColorsForNodes,c=this.state,f=this._computeClassNamesProps(i,a,e,c.containerWidth,c.containerHeight),h=this._computeClassNames(r,f),d=this._normalizeData(this.props.data.SankeyChartData,c.containerWidth,c.containerHeight,s,l),v=d.nodes,p=d.links,g=d.width,m=d.height,y=[];v.sort((function(t,n){return t.x0!==n.x0?t.x0-n.x0:t.y0-n.y0})),v.forEach((function(t,n){y.push({layer:t.layer,type:"node",index:n})})),p.sort((function(t,n){var i=t.source.x0,e=n.source.x0;return i!==e?i-e:t.y0-n.y0})),p.forEach((function(t,n){y.push({layer:t.source.layer,type:"link",index:n})})),y.sort((function(t,n){return t.layer!==n.layer?t.layer-n.layer:t.type>n.type?-1:t.type<n.type?1:0}));var b=this._fetchTooltip(h),C=this._nodeAttributes(v,this._accessibility.nodeAriaLabel),w=this._fetchNodes(h,v,C,b),M=this._linkAttributes(p,this._strings.linkFrom,this._accessibility.linkAriaLabel),k=this._fetchLinks(p,M),S=(0,o.Cl)({isCalloutVisible:c.isCalloutVisible,directionalHint:x.topAutoEdge,id:"toolTip".concat(this._calloutId),target:c.refSelected,color:c.color,XValue:c.xCalloutValue,YValue:c.yCalloutValue?c.yCalloutValue:c.dataForHoverCard,descriptionMessage:c.descriptionMessage,isBeakVisible:!1,gapSpace:15,onDismiss:this._onCloseCallout,className:h.calloutContentRoot,preventDismissOnLostFocus:!0},this.props.calloutProps);return u.createElement("div",{className:h.root,role:"presentation",ref:function(n){return t.chartContainer=n},onMouseLeave:this._onCloseCallout},u.createElement(bl,{direction:Ws.vertical,className:h.chartWrapper},u.createElement("svg",{width:g,height:m,id:this._chartId},y.map((function(t){return"node"===t.type?u.createElement("g",{key:v[t.index].nodeId,className:h.nodes},w[t.index]):u.createElement("g",{key:"".concat(p[t.index].source.nodeId,"-").concat(p[t.index].target.nodeId),className:h.links,strokeOpacity:1},k[t.index])})),S.isCalloutVisible&&u.createElement(Kn,(0,o.Cl)({},S),u.createElement(zs.ChartHoverCard,{XValue:S.XValue,YValue:S.YValue,color:S.color,descriptionMessage:S.descriptionMessage?S.descriptionMessage:""})))))}return u.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":this._accessibility.emptyAriaLabel})},n.prototype._computeNodeAttributes=function(t,n){var i=this,e={},r=ss(".nodeName").append("text").attr("class","tempText").append("tspan").text(null),o=ss(".nodeName").append("text").attr("class","tempText").attr("font-size","10").append("tspan").text(null);return t.forEach((function(t){var u=Math.max(t.y1-t.y0,0),a=8,s=0,l=t.actualValue;if(u<36){a+=6;var c=kd(r,i._formatNumber(l));void 0!==c&&(a+=s=c)}var f=function(t,n,i,e){var r=i-e;if(function(t,n,i){var e=kd(t,n);return void 0!==e&&e<=i}(t,n,r))return n;for(var o=function(t){var n=kd(t,Md);return void 0===n?0:n}(t),u="",a=0;a<n.length;a++){u+=n[a],t.text(u);var s=t.node();if(null!==s&&s.getComputedTextLength()>=r-o){u=u.slice(0,-1),u+=Md;break}}return t.text(null),u}(o,t.name,116,a),h=f.slice(-3)===Md;e[t.nodeId]={reactId:g("nodeBar"),gElementId:g("nodeGElement"),name:f,aria:n(t,l),trimmed:h,height:u,weightOffset:s}})),ls(".tempText").remove(),e},n.prototype._linkCalloutAttributes=function(t,n){return{selectedLink:t,isCalloutVisible:!0,color:t.source.color,xCalloutValue:t.target.name,yCalloutValue:this._formatNumber(t.unnormalizedValue),descriptionMessage:n}},n.prototype._normalizeSankeyData=function(t,n,i,e,r){var u=function(t,n,i,e){var r=t.left,o=t.right,u=t.top,a=t.bottom,s=n-o,l=i-a>0?i-a:0;return{sankey:gd().nodeWidth(124).extent([[r,u],[s-1,l-6]]).nodeAlign(e?rd:od),height:l,width:s}}(this._margins,n,i,this._isRtl),a=u.sankey,s=u.height,l=u.width,c=function(t){return{nodes:t.nodes.map((function(t){return(0,o.Cl)({},t)})),links:t.links.map((function(t){return(0,o.Cl)({},t)}))}}(t);a(c);var f=function(t){var n={};return t.nodes.forEach((function(t){var i=t.layer;n[i]?n[i].push(t):n[i]=[t]})),n}(c);this._numColumns=Object.keys(f).length;var h,d,v=(h=c.nodes,d={},h.forEach((function(t){d[t.nodeId]=t.value})),d),p=function(t){var n={};return t.forEach((function(t){var i=Cd(t.source),e=n[i];e||(e={},n[i]=e),e[Cd(t.target)]=t.value})),n}(c.links);return function(t,n,i){Object.values(t).map((function(t){return nd(t,(function(t){return t.value}))})).forEach((function(e,r){var o=0,u=.01*e,a=t[r];a.forEach((function(t){var i=n[t.nodeId],r=i/e*100;t.actualValue=i,r<1?(t.value=u,o+=1):o+=r}));var s=0!==o?o/100:1;s>1&&a.forEach((function(t){var e=t.value=t.value/s;!function(t,n,i,e){var r=function(t){var r=wd(e,t);t.unnormalizedValue=r;var o=r/n;t.value=Math.max(i*o,t.value)};t.sourceLinks.forEach(r),t.targetLinks.forEach(r)}(t,n[t.nodeId],e,i)}))}))}(f,v,p),function(t,n,i){var e=t.nodePadding(),r=.3*n;Object.values(i).forEach((function(t){var i=n-nd(t,(function(t){return t.y1-t.y0}));r<i&&(e=Math.min(e,r/(t.length-1)))})),t.nodePadding(e)}(a,s-6,f),a(c),function(t,n,i){t.links.forEach((function(t){t.unnormalizedValue||(t.unnormalizedValue=wd(i,t))})),t.nodes.forEach((function(t){t.actualValue=n[t.nodeId]}))}(c,v,p),function(t,n,i){var e,r;n&&i?(e=n,r=i):(e=xd.map((function(t){return t.fillColor})),r=xd.map((function(t){return t.borderColor})));var o=0;t.forEach((function(t){t.color||t.borderColor?t.color&&!t.borderColor?t.borderColor="#757575":t.borderColor&&!t.color&&(t.color="#F5F5F5"):(t.color=e[o],t.borderColor=r[o]),o=(o+1)%e.length}))}(c.nodes,e,r),{width:l,height:s,nodes:c.nodes,links:c.links}},n.prototype._labelTooltipDiv=function(t){var n=ss("#".concat(this._labelTooltipId));return n.empty()&&(n=ss("body").append("div").attr("id",this._labelTooltipId).attr("class",t.toolTip).style("opacity",0)),n.attr("class",t.toolTip),n},n.prototype._createLinks=function(t,n){var i=this;if(t){var e=this._linkId;return t.map((function(t,r){var o,a,s,l,c=wd(n,t),f=c.reactId,h=c.from,d=c.aria,v=(a=.5*(o=t).width,s=o.y0,l=o.y1,[{x:o.source.x1,y0:s+a,y1:s-a},{x:o.target.x0,y0:l+a,y1:l-a}]),p="".concat(e,"-").concat(r),g="gradient-".concat(p),m="url(#".concat(g,")"),y=t.source,b=t.target;return u.createElement("g",{key:p},u.createElement("defs",null,u.createElement("linearGradient",{id:g,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},u.createElement("stop",{offset:"0",stopColor:y.color}),u.createElement("stop",{offset:"100%",stopColor:b.color}))),u.createElement("path",{d:Ld(v),id:f,fill:i._fillStreamColors(t,m),stroke:i._fillStreamBorder(t,m),strokeWidth:"2",strokeOpacity:i._getOpacityStreamBorder(t),onMouseOver:function(n){return i._onStreamHover(n,t,h)},onMouseOut:function(){i._onStreamLeave(t)},onFocus:function(n){return i._onFocusLink(n,t,h)},onBlur:i._onBlur,fillOpacity:i._getOpacityStream(t),"data-is-focusable":!0,"aria-label":d,role:"img"}))}))}return[]},n.prototype._createNodes=function(t,n,i,e){var r=this;if(n){var o=this.state,a=this._isRtl?"end":"start";return n.map((function(n,s){var l=i[n.nodeId],c=l.reactId,f=l.gElementId,h=l.height,d=l.trimmed,v=l.name,p=l.weightOffset,g=l.aria,m=h>36,y=n.name,b=n.actualValue,x=n.x0,C=n.x1,w=n.y0,M=function(t,n){return!t.selectedState||t.selectedNodes.has(n.index)&&t.selectedNode||!t.selectedNode?"#FFFFFF":"#323130"}(o,n);return u.createElement("g",{key:s,id:f},u.createElement("rect",{x:x,y:w,height:h,width:C-x,fill:r._fillNodeColors(n),id:c,onMouseOver:r._onHover.bind(r,n),onMouseOut:function(){r._onLeave(n)},onFocus:r._onCloseCallout.bind(r),stroke:r._fillNodeBorder(n),strokeWidth:"2",opacity:"1","data-is-focusable":!0,"aria-label":g,role:"img"}),h>24&&u.createElement("g",{className:t.nodeTextContainer},u.createElement("g",{className:"nodeName"},u.createElement("text",{id:"".concat(c,"-name"),x:x,y:w,dy:"1.2em",dx:"0.4em",textAnchor:a,fontWeight:"regular","aria-hidden":"true",fill:M,fontSize:10,onMouseOver:r._showTooltip.bind(r,y,d,e),onMouseOut:r._hideTooltip.bind(r,e)},v)),u.createElement("text",{x:m?x:C-p-8,y:w,dy:m?"2em":"1em",dx:m?"0.4em":"0em",textAnchor:a,fontWeight:"bold","aria-hidden":"true",fill:M,fontSize:14},b?r._formatNumber(b):b)))}))}},n.prototype._onLeave=function(t){this.state.selectedState&&this.setState({selectedState:!1,selectedNodes:new Set,selectedLinks:new Set,selectedNode:void 0})},n.prototype._onHover=function(t,n){if(n.persist(),this._onCloseCallout(),!this.state.selectedState){var i=function(t){var n=new Array,i=new Set;for(t.sourceLinks.forEach((function(t){n.push(t),i.add(t)}));n.length>0;)(e=n.shift().target)&&e.sourceLinks&&e.sourceLinks.forEach((function(t){i.add(t),n.push(t)}));for(t.targetLinks&&t.targetLinks.forEach((function(t){n.push(t),i.add(t)}));n.length>0;){var e;(e=n.shift().source)&&e.targetLinks&&e.targetLinks.forEach((function(t){i.add(t),n.push(t)}))}return i}(t),e=function(t){var n=[];return t.forEach((function(t){n.push(t.target),-1===n.indexOf(t.source)&&n.push(t.source)})),n}(i);e.push(t),this.setState({selectedState:!0,selectedNodes:new Set(Array.from(e).map((function(t){return t.index}))),selectedLinks:new Set(Array.from(i).map((function(t){return t.index}))),selectedNode:t,refSelected:n,isCalloutVisible:t.y1-t.y0<24,color:t.color,xCalloutValue:t.name,yCalloutValue:this._formatNumber(t.actualValue)})}},n.prototype._formatNumber=function(t){return this.props.formatNumberOptions?t.toLocaleString(void 0,this.props.formatNumberOptions):t.toString()},n.prototype._onStreamHover=function(t,n,i){if(t.persist(),this._onCloseCallout(),!this.state.selectedState){var e=function(t){var n=new Array,i=new Set,e=new Set;for(n.push(t.source),i.add(t);n.length>0;){var r=n.shift();e.add(r),r.targetLinks&&r.targetLinks.length>0&&r.targetLinks.forEach((function(t){n.push(t.source),i.add(t)}))}for(n.push(t.target);n.length>0;)r=n.shift(),e.add(r),r.sourceLinks&&r.sourceLinks.length>0&&r.sourceLinks.forEach((function(t){n.push(t.target),i.add(t)}));return{selectedLinks:i,selectedNodes:e}}(n),r=e.selectedLinks,u=e.selectedNodes;this.setState((0,o.Cl)({selectedState:!0,selectedNodes:new Set(Array.from(u).map((function(t){return t.index}))),selectedLinks:new Set(Array.from(r).map((function(t){return t.index}))),refSelected:t},this._linkCalloutAttributes(n,i)))}},n.prototype._onStreamLeave=function(t){this.state.selectedState&&this.setState({selectedState:!1,selectedNodes:new Set,selectedLinks:new Set,selectedLink:void 0})},n.prototype._onFocusLink=function(t,n,i){t.persist(),this._onCloseCallout(),this.setState((0,o.Cl)({refSelected:t.currentTarget},this._linkCalloutAttributes(n,i)))},n.prototype._fillStreamColors=function(t,n){var i=this.state;if(i.selectedState&&i.selectedLinks.has(t.index)){var e=i.selectedNode;return e?e.color:n}},n.prototype._fillStreamBorder=function(t,n){var i=this.state;if(i.selectedState){if(i.selectedLinks.has(t.index)){var e=i.selectedNode;return e?e.borderColor:n}return bd}return bd},n.prototype._getOpacityStream=function(t){var n=this.state;if(n.selectedState){if(!n.selectedLinks.has(t.index))return 1;if(!n.selectedNode)return.3}return 1},n.prototype._getOpacityStreamBorder=function(t){var n=this.state;return!n.selectedState||n.selectedLinks.has(t.index)||n.selectedNode?1:.5},n.prototype._fitParentContainer=function(){var t=this,n=this.state,i=n.containerWidth,e=n.containerHeight;this._reqID=requestAnimationFrame((function(){var n=t.props.parentRef?t.props.parentRef:t.chartContainer,r=n&&(t.props.enableReflow?Math.max(n.getBoundingClientRect().width,t._calculateChartMinWidth()):n.getBoundingClientRect().width),o=n&&n.getBoundingClientRect().height;(i!==r||e!==o)&&t.setState({containerWidth:r,containerHeight:o})}))},n.prototype._showTooltip=function(t,n,i,e){n&&(i.style("opacity",.9),i.html(t).style("left",e.pageX+"px").style("top",e.pageY-28+"px"))},n.prototype._hideTooltip=function(t){t.style("opacity",0)},n.prototype._isChartEmpty=function(){var t,n=null===(t=this.props.data)||void 0===t?void 0:t.SankeyChartData;return!(n&&n.nodes.length>0&&n.links.length>0)},n.defaultProps={enableReflow:!0},n}(u.Component),Dd=(0,r.I)(Vd,(function(t){var n,i,e,r=t.className,u=t.theme,a=t.pathColor,s=u.effects;return{root:[u.fonts.medium,{display:"flex",width:"100%",height:"100%",flexDirection:"column",overflow:"hidden"},r],links:{stroke:a||u.palette.black,fill:u?u.semanticColors.bodyBackground:"#F5F5F5",strokeWidth:3,selectors:(n={},n[$t.NK]={fill:"#000000"},n)},nodes:{fill:"#F5F5F5",selectors:(i={},i[$t.NK]={fill:"#000000"},i)},toolTip:(0,o.Cl)((0,o.Cl)({},t.theme.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:t.theme.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"}),nodeTextContainer:{selectors:{text:{selectors:(e={},e[$t.NK]={fill:"rgb(179, 179, 179)"},e)}},marginTop:"4px",marginLeft:"8px",marginBottom:"4px",marginRight:"8px"},calloutContentRoot:{boxShadow:s.elevation4},chartWrapper:{overflow:"auto"}}}));function Nd(t){var n=0,i=t.children,e=i&&i.length;if(e)for(;--e>=0;)n+=i[e].value;else n=1;t.value=n}function Td(t,n){t instanceof Map?(t=[void 0,t],void 0===n&&(n=Od)):void 0===n&&(n=Ed);for(var i,e,r,o,u,a=new Fd(t),s=[a];i=s.pop();)if((r=n(i.data))&&(u=(r=Array.from(r)).length))for(i.children=r,o=u-1;o>=0;--o)s.push(e=r[o]=new Fd(r[o])),e.parent=i,e.depth=i.depth+1;return a.eachBefore(Bd)}function Ed(t){return t.children}function Od(t){return Array.isArray(t)?t[1]:null}function Pd(t){void 0!==t.data.value&&(t.value=t.data.value),t.data=t.data.data}function Bd(t){var n=0;do{t.height=n}while((t=t.parent)&&t.height<++n)}function Fd(t){this.data=t,this.depth=this.height=0,this.parent=null}function _d(t,n){return t.parent===n.parent?1:2}function Hd(t){var n=t.children;return n?n[0]:t.t}function Rd(t){var n=t.children;return n?n[n.length-1]:t.t}function Id(t,n,i){var e=i/(n.i-t.i);n.c-=e,n.s+=i,t.c+=e,n.z+=i,n.m+=i}function Wd(t,n,i){return t.a.parent===n.parent?t.a:i}function zd(t,n){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=n}!function(t){t[t.long=1]="long",t[t.compact=0]="compact"}(Sd||(Sd={})),function(t){t[t.preOrder=1]="preOrder",t[t.levelOrder=0]="levelOrder"}(Ad||(Ad={})),Fd.prototype=Td.prototype={constructor:Fd,count:function(){return this.eachAfter(Nd)},each:function(t,n){let i=-1;for(const e of this)t.call(n,e,++i,this);return this},eachAfter:function(t,n){for(var i,e,r,o=this,u=[o],a=[],s=-1;o=u.pop();)if(a.push(o),i=o.children)for(e=0,r=i.length;e<r;++e)u.push(i[e]);for(;o=a.pop();)t.call(n,o,++s,this);return this},eachBefore:function(t,n){for(var i,e,r=this,o=[r],u=-1;r=o.pop();)if(t.call(n,r,++u,this),i=r.children)for(e=i.length-1;e>=0;--e)o.push(i[e]);return this},find:function(t,n){let i=-1;for(const e of this)if(t.call(n,e,++i,this))return e},sum:function(t){return this.eachAfter((function(n){for(var i=+t(n.data)||0,e=n.children,r=e&&e.length;--r>=0;)i+=e[r].value;n.value=i}))},sort:function(t){return this.eachBefore((function(n){n.children&&n.children.sort(t)}))},path:function(t){for(var n=this,i=function(t,n){if(t===n)return t;var i=t.ancestors(),e=n.ancestors(),r=null;for(t=i.pop(),n=e.pop();t===n;)r=t,t=i.pop(),n=e.pop();return r}(n,t),e=[n];n!==i;)n=n.parent,e.push(n);for(var r=e.length;t!==i;)e.splice(r,0,t),t=t.parent;return e},ancestors:function(){for(var t=this,n=[t];t=t.parent;)n.push(t);return n},descendants:function(){return Array.from(this)},leaves:function(){var t=[];return this.eachBefore((function(n){n.children||t.push(n)})),t},links:function(){var t=this,n=[];return t.each((function(i){i!==t&&n.push({source:i.parent,target:i})})),n},copy:function(){return Td(this).eachBefore(Pd)},[Symbol.iterator]:function*(){var t,n,i,e,r=this,o=[r];do{for(t=o.reverse(),o=[];r=t.pop();)if(yield r,n=r.children)for(i=0,e=n.length;i<e;++i)o.push(n[i])}while(o.length)}},zd.prototype=Object.create(Fd.prototype);var jd=(0,a.Z)(),Yd=function(t){function n(n,i,e,r,o,u){void 0===r&&(r=[]),void 0===o&&(o=[]);var a=t.call(this,n,e,r,o)||this;return a.composition=i,a._treeTraversal=u,a}return(0,o.C6)(n,t),n.prototype.C=function(t,n){var i,e,r,o,u,a,s=(t=t<65?65:t>90?90:t)||75,l=Td(this.treeData,(function(t){return t.children})),c=(null==l?void 0:l.height)+1;(function(){var t=_d,n=1,i=1,e=null;function r(r){var s=function(t){for(var n,i,e,r,o,u=new zd(t,0),a=[u];n=a.pop();)if(e=n._.children)for(n.children=new Array(o=e.length),r=o-1;r>=0;--r)a.push(i=n.children[r]=new zd(e[r],r)),i.parent=n;return(u.parent=new zd(null,0)).children=[u],u}(r);if(s.eachAfter(o),s.parent.m=-s.z,s.eachBefore(u),e)r.eachBefore(a);else{var l=r,c=r,f=r;r.eachBefore((function(t){t.x<l.x&&(l=t),t.x>c.x&&(c=t),t.depth>f.depth&&(f=t)}));var h=l===c?1:t(l,c)/2,d=h-l.x,v=n/(c.x+h+d),p=i/(f.depth||1);r.eachBefore((function(t){t.x=(t.x+d)*v,t.y=t.depth*p}))}return r}function o(n){var i=n.children,e=n.parent.children,r=n.i?e[n.i-1]:null;if(i){!function(t){for(var n,i=0,e=0,r=t.children,o=r.length;--o>=0;)(n=r[o]).z+=i,n.m+=i,i+=n.s+(e+=n.c)}(n);var o=(i[0].z+i[i.length-1].z)/2;r?(n.z=r.z+t(n._,r._),n.m=n.z-o):n.z=o}else r&&(n.z=r.z+t(n._,r._));n.parent.A=function(n,i,e){if(i){for(var r,o=n,u=n,a=i,s=o.parent.children[0],l=o.m,c=u.m,f=a.m,h=s.m;a=Rd(a),o=Hd(o),a&&o;)s=Hd(s),(u=Rd(u)).a=n,(r=a.z+f-o.z-l+t(a._,o._))>0&&(Id(Wd(a,n,e),n,r),l+=r,c+=r),f+=a.m,l+=o.m,h+=s.m,c+=u.m;a&&!Rd(u)&&(u.t=a,u.m+=f-c),o&&!Hd(s)&&(s.t=o,s.m+=l-h,e=n)}return e}(n,r,n.parent.A||e[0])}function u(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function a(t){t.x*=n,t.y=t.depth*i}return r.separation=function(n){return arguments.length?(t=n,r):t},r.size=function(t){return arguments.length?(e=!1,n=+t[0],i=+t[1],r):e?null:[n,i]},r.nodeSize=function(t){return arguments.length?(e=!0,n=+t[0],i=+t[1],r):e?[n,i]:null},r})().nodeSize([s,s/1.5]).separation((function(t,n){return t.parent===l&&n.parent===l?3.5:1}))(l).descendants().forEach((function(t){t.y=0===t.depth?10:130*t.depth,t.x+=n/2}));var f=[],h=0,d=function(t){var n,i;t.id=h,f.push({id:h,children:t.children,dataName:t.data.name,subName:t.data.subname,bodyText:t.data.bodytext,metricName:null===(n=t.data)||void 0===n?void 0:n.metric,fill:t.data.fill,x:t.x,y:t.y,parentID:null===(i=t.parent)||void 0===i?void 0:i.id}),h++};0===this._treeTraversal?l.each((function(t){d(t)})):l.eachBefore((function(t){d(t)}));for(var v=3*s,p=v/3.45,g=20,m=new Set,y=0,b=f;y<b.length;y++){var x=b[y],C=0===x.id?"Root Node":"Parent info parentId: ".concat(x.parentID,"\n ").concat(f[x.parentID].dataName,"\n ").concat(f[x.parentID].subName);if(!x.children&&!m.has(x.parentID)&&3===c){var w=(v-g)/2,M=p;m.add(x.parentID),this.k(x.id,f[x.parentID].x,f[x.parentID].y,f[x.id].x,f[x.id].y,!0,v,p,g);for(var k=null===(i=f[x.parentID])||void 0===i?void 0:i.children,S=(null===(e=f[x.parentID])||void 0===e?void 0:e.x)-w/2-10,A=(null===(r=f[x.parentID])||void 0===r?void 0:r.x)+w/2+10,L=null===(o=f[x.parentID])||void 0===o?void 0:o.x,V=null===(u=k[0])||void 0===u?void 0:u.y,D=0;D<k.length;++D){var N=k[D];void 0!==this.composition?0===this.composition?(this.D(N.data.name,N.data.subname,N.data.bodytext,N.data.metricName,D%2==0?1===k.length?L:S:A,V,N.data.fill,1===k.length?v:w,p,N.id,C),D%2==1&&(V+=M+g)):(this.D(N.data.name,N.data.subname,N.data.bodytext,N.data.metricName,L,V,N.data.fill,v,p,N.id,C),V+=M+g):k.length>2?(this.D(N.data.name,N.data.subname,N.data.bodytext,N.data.metricName,D%2==0?S:A,V,N.data.fill,1===k.length?v:w,p,N.id,C),D%2==1&&(V+=M+g)):(this.D(N.data.name,N.data.subname,N.data.bodytext,N.data.metricName,L,V,N.data.fill,v,p,N.id,C),V+=M+g)}}if((x.children||c<=2)&&(this.D(x.dataName,x.subName,x.bodyText,x.metricName,x.x,x.y,x.fill,v,p,x.id,C),0===x.id&&x.children)){var T=vi(k=null===(a=f[x.id])||void 0===a?void 0:a.children,(function(t){return t.x})),E=pi(k,(function(t){return t.x}));this.k(x.id,x.x,x.y,T,x.children[0].y,!1,v,p,g,E)}}},n}(function(){function t(t,n,i,e){void 0===i&&(i=[]),void 0===e&&(e=[]),this._nodeElements=[],this._linkElements=[],this.treeData=t,this.styleClassNames=n,this._nodeElements=i,this._linkElements=e}return t.prototype.N=function(t,n,i,e){var r,o=t.split(/\s+/).reverse(),u="",a=ss(".svgTree").append("text").attr("class","tempText").append("tspan").text(null);e&&a.attr("class",e);for(var s=[];u=o.pop();)if(s.push(u),a.text(s.join(" ")+" "),null!==a.node()&&a.node().getComputedTextLength()>n-i){s.pop(),s.push("...");break}return r=s.join(" ")+" ",a.text(null),ls(".tempText").remove(),r},t.prototype.D=function(t,n,i,e,r,o,a,s,l,c,f){var h="nodeId: ".concat(c," \nnodeMainText: ").concat(t,"\nsubText ").concat(n," ").concat(f),d=r-s/2;!e&&0===c&&i||this._nodeElements.push(u.createElement("rect",{width:s,height:l,x:d,y:o,tabIndex:0,role:"text","data-is-focusable":!0,"aria-label":h,className:this.styleClassNames.rectNode,stroke:a,key:"".concat(c).concat(this.styleClassNames.rectNode)})),n&&(n=this.N(n,s,s/4,this.styleClassNames.rectSubText)),i&&(i=this.N(i,s,s/4,this.styleClassNames.rectBodyText)),e&&(e=this.N(e,s,s/4,this.styleClassNames.rectMetricText)),t=this.N(t,s,s/4,this.styleClassNames.rectText);var v=e?u.createElement("tspan",{className:this.styleClassNames.rectMetricText,dy:"1.4em",x:d+s/2},e):i?u.createElement(u.Fragment,null,u.createElement("tspan",{className:this.styleClassNames.rectSubText,dy:"1.4em",x:d+s/2},n),u.createElement("tspan",{className:this.styleClassNames.rectBodyText,dy:"1.4em",x:d+s/2},i)):u.createElement("tspan",{className:this.styleClassNames.rectSubText,dy:"1.4em",x:d+s/2},n);n||e||i?this._nodeElements.push(u.createElement("text",{textAnchor:"middle",className:e?this.styleClassNames.rectSubText:this.styleClassNames.rectText,dy:e?o+l/2.5:o+l/2,x:d+s/2,key:"".concat(c).concat(this.styleClassNames.rectText),"data-is-focusable":0===c},t,v)):this._nodeElements.push(u.createElement("text",{textAnchor:"middle",className:this.styleClassNames.rectMetricText,dy:o+l/1.6,x:d+s/2,key:"".concat(c).concat(this.styleClassNames.rectText),"data-is-focusable":0===c},t))},t.prototype.O=function(t,n,i,e,r,o,u,a,s){var l="M".concat(i-o/2,",").concat(e-a," H").concat(s+o/2," M").concat(t,",").concat(e-a,"\n V").concat(n+u+a/2),c="M".concat(t,",").concat(n+u+a/2," V").concat(n+5*a,"\n H").concat(t-o/2," H").concat(t+o/2);return r?c:l},t.prototype.k=function(t,n,i,e,r,o,a,s,l,c){void 0===c&&(c=0),this._linkElements.push(u.createElement("path",{className:this.styleClassNames.link,d:this.O(n,i,e,r,o,a,s,l,c),key:"".concat(t).concat(this.styleClassNames.link)}))},t}()),$d=function(t){function n(n){var i,e,r,o,u,a=t.call(this,n)||this;return a._nodeElements=[],a._linkElements=[],a._margin={top:(null===(i=a.props.margins)||void 0===i?void 0:i.top)||30,bottom:(null===(e=a.props.margins)||void 0===e?void 0:e.bottom)||30,left:(null===(r=a.props.margins)||void 0===r?void 0:r.left)||50,right:(null===(o=a.props.margins)||void 0===o?void 0:o.right)||20},a._width=a.props.width||1500,a._height=a.props.height||700,a._treeData=a.props.treeData,a._composition=null===(u=a.props)||void 0===u?void 0:u.composition,a._treeTraversal=a.props.treeTraversal,a.state={_width:a._width,_height:a._height},a}return(0,o.C6)(n,t),n.prototype.componentDidMount=function(){var t=this.props,n=t.theme,i=t.className,e=t.styles;this._classNames=jd(e,{theme:n,className:i}),this.P(),this.setState({_width:this.props.width||1500,_height:this.props.height||700})},n.prototype.componentDidUpdate=function(t){if(t.layoutWidth!==this.props.layoutWidth){var n=ls("text"),i=ls("rect"),e=ls("path");0===this._nodeElements.length&&0===this._linkElements.length&&(n.remove(),i.remove(),e.remove()),this.P()}},n.prototype.P=function(){var t=[],n=[],i=new Yd(this._treeData,this._composition,this._classNames,t,n,this._treeTraversal),e=this.state._width-this._margin.left-this._margin.right;i.C(this.props.layoutWidth,e),this._nodeElements=t,this._linkElements=n},n.prototype.render=function(){var t;return u.createElement(bl,null,u.createElement("div",{className:null===(t=this._classNames)||void 0===t?void 0:t.root},u.createElement("svg",{className:"svgTree",width:this.state._width-this._margin.left-this._margin.right,height:this.state._height-this._margin.top-this._margin.bottom},u.createElement("g",{className:"svgNode"},this._nodeElements.map((function(t){return t}))),u.createElement("g",{className:"svgLink"},this._linkElements.map((function(t){return t}))))))},n}(u.Component),Xd=(0,r.I)($d,(function(t){return{root:[t.theme.spacing,"ms-TreeChart",t.className,{overflow:"scroll"}],link:{fill:"none",stroke:t.theme.palette.neutralSecondary,strokeWidth:"2px"},rectNode:{strokeWidth:"2px",fill:t.theme.semanticColors.bodyBackground,padding:"10px",rx:"2px"},rectText:(0,o.Cl)({fill:t.theme.palette.neutralDark},t.theme.fonts.large),rectSubText:(0,o.Cl)({fill:t.theme.palette.neutralPrimary},t.theme.fonts.medium),rectBodyText:(0,o.Cl)({fill:t.theme.palette.neutralPrimaryAlt},t.theme.fonts.xSmall),rectMetricText:(0,o.Cl)({fill:t.theme.palette.neutralDark},t.theme.fonts.xLarge)}}));function Gd(t,n){let i,e;if(void 0===n)for(const n of t)null!=n&&(void 0===i?n>=n&&(i=e=n):(i>n&&(i=n),e<n&&(e=n)));else{let r=-1;for(let o of t)null!=(o=n(o,++r,t))&&(void 0===i?o>=o&&(i=e=o):(i>o&&(i=o),e<o&&(e=o)))}return[i,e]}var qd,Ud,Zd=(0,a.Z)(),Kd=function(t){function n(n){var i=t.call(this,n)||this;return i.margin={top:2,right:0,bottom:0,left:0},i._isRTL=(0,s.jI)(),i.state={_points:null,_width:i.props.width||80,_height:i.props.height||20,_valueTextWidth:i.props.valueTextWidth||80},i._emptyChartId=g("_SparklineChart_empty"),i}return(0,o.C6)(n,t),n.prototype.componentDidMount=function(){var t=this;if(!this._isChartEmpty()){var n=ah().x((function(n){return t.x(n.x)})).y0(this.state._height).y1((function(n){return t.y(n.y)})).curve(kf);this.area=n;var i=Lf().x((function(n){return t.x(n.x)})).y((function(n){return t.y(n.y)})).curve(kf);this.line=i;var e=this.props.data.lineChartData[0].data,r=Gd(e,(function(t){return t.x})),o=r[0],u=r[1];this.x=Ue().domain([o,u]).range([this.margin.left,this.state._width-this.margin.right]),this.y=Ue().domain([0,pi(e,(function(t){return t.y}))]).range([this.state._height-this.margin.bottom,this.margin.top]),this.setState({_points:e})}},n.prototype.drawSparkline=function(){return u.createElement(u.Fragment,null,u.createElement("path",{className:"line",d:this.line(this.state._points),fill:"transparent",opacity:1,strokeWidth:2,stroke:this.props.data.lineChartData[0].color}),u.createElement("path",{className:"area",d:this.area(this.state._points),opacity:1,fillOpacity:.2,fill:this.props.data.lineChartData[0].color,role:"img","aria-hidden":!0}))},n.prototype.render=function(){var t=Zd(this.props.styles,{theme:this.props.theme});return this._isChartEmpty()?u.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):u.createElement(bl,{direction:Ws.horizontal,isCircularNavigation:!0,className:t.inlineBlock},u.createElement("div",{className:t.inlineBlock},this.state._width>=50&&this.state._height>=16?u.createElement("svg",{width:this.state._width,height:this.state._height,"data-is-focusable":!0,"aria-label":"Sparkline with label ".concat(this.props.data.lineChartData[0].legend)},this.state._points?this.drawSparkline():null):u.createElement(u.Fragment,null),this.props.showLegend&&this.props.data.lineChartData[0].legend?u.createElement("svg",{width:this.state._valueTextWidth,height:this.state._height,"data-is-focusable":!0},u.createElement("text",{x:"0%",textAnchor:this._isRTL?"end":"start",dx:8,y:"100%",dy:-5,className:t.valueText},this.props.data.lineChartData[0].legend)):u.createElement(u.Fragment,null)))},n.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.lineChartData&&this.props.data.lineChartData.length>0&&0===this.props.data.lineChartData.filter((function(t){return 0===t.data.length})).length)},n}(u.Component),Jd=(0,r.I)(Kd,(function(t){return{inlineBlock:{display:"inline"},valueText:(0,o.Cl)((0,o.Cl)({},t.theme.fonts.smallPlus),{fill:t.theme.semanticColors.messageText})}})),Qd=(0,a.Z)(),tv=function(t){function n(n){var i,e,r,a,l=t.call(this,n)||this;return l._isRtl=(0,s.jI)(),l._getDomainNRangeValues=function(t,n,i,e,r,o,u,a,s){var l;return l=o===rs.NumericAxis?function(t,n,i,e,r){var o=pi(t,(function(t){return t.x})),u=e?n.left:n.left+r,a=e?i-n.right-r:i-n.right;return e?{dStartValue:o,dEndValue:0,rStartValue:u,rEndValue:a}:{dStartValue:0,dEndValue:o,rStartValue:u,rEndValue:a}}(t,n,i,r,s):{dStartValue:0,dEndValue:0,rStartValue:0,rEndValue:0},l},l._getMargins=function(t){l.margins=t},l._renderContentForOnlyBars=function(t){var n,i,e,r,o=l.props,a=o.useSingleColor,s=void 0!==a&&a,c=o.enableGradient,f=void 0!==c&&c,h=0;return l.props.data.forEach((function(n,i){n.y===t.y&&(h=i)})),s?(r=l.props.colors?l._createColors()(1):mf(1,0,null===(n=l.props.theme)||void 0===n?void 0:n.isInverted),f&&(r=Us(0,0,null===(i=l.props.theme)||void 0===i?void 0:i.isInverted)[0])):r=t.color?t.color:l.props.colors?l._createColors()(t.x):mf(h,0,null===(e=l.props.theme)||void 0===e?void 0:e.isInverted),u.createElement(u.Fragment,null,u.createElement(zs.ChartHoverCard,{XValue:t.xAxisCalloutData||t.x.toString(),Legend:t.legend,YValue:t.yAxisCalloutData||t.y,color:r,culture:l.props.culture}))},l._renderCallout=function(t){return t?l._renderContentForOnlyBars(t):null},l._getCustomizedCallout=function(){return l.props.onRenderCalloutPerDataPoint?l.props.onRenderCalloutPerDataPoint(l.state.dataPointCalloutProps,l._renderCallout):null},l._getGraphData=function(t,n,i,e,r,o){return l._bars=l._yAxisType===os.NumericAxis?l._createNumericBars(i,e,r,o):l._createStringBars(i,e,r,o)},l._refCallback=function(t,n){l._refArray.push({index:n,refElement:t})},l._getCalloutContentForBar=function(t){var n,i,e,r,o=[],u=l.props,a=u.useSingleColor,s=void 0!==a&&a,c=u.enableGradient,f=void 0!==c&&c,h=l.props.data,d=h.filter((function(n){return n.y===t.y})),v=0;return h.forEach((function(n,i){n.y===t.y&&(v=i)})),s?(r=l.props.colors?l._createColors()(1):mf(1,0,null===(n=l.props.theme)||void 0===n?void 0:n.isInverted),f&&(r=Us(0,0,null===(i=l.props.theme)||void 0===i?void 0:i.isInverted)[0])):r=d[0].color?d[0].color:l.props.colors?l._createColors()(d[0].x):mf(v,0,null===(e=l.props.theme)||void 0===e?void 0:e.isInverted),o.push({legend:d[0].legend,y:d[0].x,color:r,data:d[0].yAxisCalloutData,yAxisCalloutData:d[0].yAxisCalloutData}),{YValueHover:o,hoverXValue:t.yAxisCalloutData||t.y.toString()}},l._onBarLeave=function(){},l._handleChartMouseLeave=function(){l._calloutAnchorPoint=null,l.setState({isCalloutVisible:!1,activeXdataPoint:null,YValueHover:[],hoverXValue:""})},l._onBarFocus=function(t,n,i){if((!1===l.state.isLegendSelected||l._isLegendHighlighted(t.legend))&&l._calloutAnchorPoint!==t){var e=l._getCalloutContentForBar(t),r=e.YValueHover,o=e.hoverXValue;l._refArray.forEach((function(e,u){n===u&&l.setState({refSelected:e.refElement,isCalloutVisible:!0,selectedLegendTitle:t.legend,dataForHoverCard:t.x,color:l.props.useSingleColor?i:t.color,xCalloutValue:t.yAxisCalloutData||t.y.toString(),yCalloutValue:t.xAxisCalloutData||t.x.toString(),dataPointCalloutProps:t,activeXdataPoint:t.x,YValueHover:r,hoverXValue:o,callOutAccessibilityData:t.callOutAccessibilityData})}))}},l._getScales=function(t,n,i){if(i){var e=pi(l._points,(function(t){return t.x})),r=pi(l._points,(function(t){return t.y}));return{xBarScale:Ue().domain(l._isRtl?[e,0]:[0,e]).nice().range([l.margins.left,n-l.margins.right]),yBarScale:o=Ue().domain([0,r]).range([t-l.margins.bottom,l.margins.top])}}e=pi(l._points,(function(t){return t.x}));var o=Uu().domain(l._yAxisLabels).range([t-l.margins.bottom-l._barHeight/2,l.margins.top+l._barHeight/2]).padding(l.props.yAxisPadding||0);return{xBarScale:Ue().domain(l._isRtl?[e,0]:[0,e]).nice().range([l.margins.left,n-l.margins.right]),yBarScale:o}},l._closeCallout=function(){l.setState({isCalloutVisible:!1})},l._getLegendData=function(t,n){var i=l.props.useSingleColor,e=[];return t.forEach((function(t,n){var r,o,u,a,s=i?l.props.colors?l._createColors()(1):mf(1,0,null===(r=l.props.theme)||void 0===r?void 0:r.isInverted):t.color;l.props.enableGradient&&(s=(null===(o=t.gradient)||void 0===o?void 0:o[0])||Us(n,0,null===(u=l.props.theme)||void 0===u?void 0:u.isInverted)[0],i&&(s=Us(0,0,null===(a=l.props.theme)||void 0===a?void 0:a.isInverted)[0]));var c={title:t.legend,color:s,hoverAction:function(){l._handleChartMouseLeave(),l._onLegendHover(t.legend)},onMouseOutAction:function(t){l._onLegendLeave(t)}};e.push(c)})),u.createElement(Ac,(0,o.Cl)({legends:e,enabledWrapLines:l.props.enabledLegendsWrapLines,overflowProps:l.props.legendsOverflowProps,focusZonePropsInHoverCard:l.props.focusZonePropsForLegendsInHoverCard,overflowText:l.props.legendsOverflowText},l.props.legendProps,{onChange:l._onLegendSelectionChange.bind(l)}))},l._isLegendSelected=function(){return l.state.isLegendSelected},l._isLegendHighlighted=function(t){return l._getHighlightedLegend().includes(t)},l._getAxisData=function(t){if(t&&t.yAxisDomainValues.length){var n=t.yAxisDomainValues;l._xMax=Math.max(n[n.length-1],l.props.xMaxValue||0)}},l._getAriaLabel=function(t){var n,i=t.xAxisCalloutData||t.x,e=t.yAxisCalloutData||t.y;return(null===(n=t.callOutAccessibilityData)||void 0===n?void 0:n.ariaLabel)||"".concat(i,". ")+"".concat(e,".")},l._getChartTitle=function(){var t=l.props,n=t.chartTitle,i=t.data;return(n?"".concat(n,". "):"")+"Horizontal bar chart with ".concat((null==i?void 0:i.length)||0," bars. ")},Js(l),l.state={color:"",dataForHoverCard:0,isCalloutVisible:!1,isLegendSelected:void 0!==(null===(i=n.legendProps)||void 0===i?void 0:i.selectedLegend),isLegendHovered:!1,refSelected:null,selectedLegendTitle:null!==(r=null===(e=n.legendProps)||void 0===e?void 0:e.selectedLegend)&&void 0!==r?r:"",xCalloutValue:"",yCalloutValue:"",activeXdataPoint:null,YValueHover:[],hoverXValue:"",selectedLegends:(null===(a=n.legendProps)||void 0===a?void 0:a.selectedLegends)||[]},l._calloutId=g("callout"),l._tooltipId=g("HBCWATooltipID_"),l._refArray=[],l._xAxisType=l.props.data&&l.props.data.length>0?Ns(l.props.data[0].x,!0):rs.NumericAxis,l._yAxisType=l.props.data&&l.props.data.length>0?Ns(l.props.data[0].y,!1):os.StringAxis,l._cartesianChartRef=u.createRef(),l}return(0,o.C6)(n,t),n.prototype.componentDidUpdate=function(t){var n,i,e;Is(null===(n=t.legendProps)||void 0===n?void 0:n.selectedLegends,null===(i=this.props.legendProps)||void 0===i?void 0:i.selectedLegends)||this.setState({selectedLegends:(null===(e=this.props.legendProps)||void 0===e?void 0:e.selectedLegends)||[]})},n.prototype.render=function(){var t=this;this._adjustProps();var n=(0,o.fX)([],this._points,!0).reverse();this._yAxisLabels=n.map((function(t){return t.y})),this._xMax=Math.max(pi(this._points,(function(t){return t.x})),this.props.xMaxValue||0);var i=this._getLegendData(this._points,this.props.theme.palette);this._classNames=Qd(this.props.styles,{theme:this.props.theme,legendColor:this.state.color});var e=(0,o.Cl)((0,o.Cl)({isCalloutVisible:this.state.isCalloutVisible,directionalHint:x.topAutoEdge,id:"toolTip".concat(this._calloutId),target:this.state.refSelected,isBeakVisible:!1,gapSpace:15,color:this.state.color,legend:this.state.selectedLegendTitle,XValue:this.state.xCalloutValue,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0},this.props.calloutProps),Es(this.state.callOutAccessibilityData)),r={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return u.createElement(_f,(0,o.Cl)({},this.props,{chartTitle:this._getChartTitle(),points:this._points,chartType:es.HorizontalBarChartWithAxis,xAxisType:this._xAxisType,yAxisType:this._yAxisType,stringDatasetForYAxisDomain:this._yAxisLabels,calloutProps:e,tickParams:r,legendBars:i,createYAxis:hs,getDomainNRangeValues:this._getDomainNRangeValues,createStringYAxis:vs,getMinMaxOfYAxis:Ls,barwidth:this._barHeight,focusZoneDirection:Ws.vertical,customizedCallout:this._getCustomizedCallout(),getmargins:this._getMargins,getGraphData:this._getGraphData,getAxisData:this._getAxisData,onChartMouseLeave:this._handleChartMouseLeave,ref:this._cartesianChartRef,children:function(n){return u.createElement(u.Fragment,null,u.createElement("g",null,t._bars))}}))},Object.defineProperty(n.prototype,"chartContainer",{get:function(){var t;return(null===(t=this._cartesianChartRef.current)||void 0===t?void 0:t.chartContainer)||null},enumerable:!1,configurable:!0}),n.prototype._adjustProps=function(){this._points=this.props.data||[],this._barHeight=this.props.barHeight||32;var t=this.props.theme.palette;this._colors=this.props.colors||[t.blueLight,t.blue,t.blueMid,t.blueDark]},n.prototype._createColors=function(){var t=this,n=this._colors.length<=1?1:1/(this._colors.length-1),i=this.props.useSingleColor;if(void 0!==i&&i)return function(n){var i=t.props,e=i.theme,r=i.colors;return r&&r.length>0?r[0]:e.palette.blueLight};for(var e=[],r=0;r<this._colors.length;r++)e.push(n*r*this._xMax);return Ue().domain(e).range(this._colors)},n.prototype._onBarHover=function(t,n,i){i.persist();var e=this._getCalloutContentForBar(t),r=e.YValueHover,o=e.hoverXValue;!1!==this.state.isLegendSelected&&!this._isLegendHighlighted(t.legend)||this._calloutAnchorPoint===t||(this._calloutAnchorPoint=t,this.setState({refSelected:i,isCalloutVisible:!0,dataForHoverCard:t.x,selectedLegendTitle:t.legend,color:this.props.useSingleColor||this.props.enableGradient?n:t.color,xCalloutValue:t.yAxisCalloutData||t.y.toString(),yCalloutValue:t.xAxisCalloutData||t.x.toString(),dataPointCalloutProps:t,activeXdataPoint:t.x,YValueHover:r,hoverXValue:o,callOutAccessibilityData:t.callOutAccessibilityData}))},n.prototype._createNumericBars=function(t,n,i,e){var r=this,a=this.props.useSingleColor,s=void 0!==a&&a,l=this._getScales(t,n,!0),c=l.xBarScale,f=l.yBarScale,h=(0,o.fX)([],this._points,!0);h.sort((function(t,n){var i="number"==typeof t.y?t.y:parseFloat(t.y);return("number"==typeof n.y?n.y:parseFloat(n.y))-i}));var d=h.map((function(t,i){var e,o,a,l,h,d,v,p,m,y=!0;if((r.state.isLegendHovered||r.state.isLegendSelected)&&(y=r._isLegendHighlighted(t.legend)),r._classNames=Qd(r.props.styles,{theme:r.props.theme,legendColor:r.state.color,shouldHighlight:y}),Math.max(f(t.y),0)<1)return u.createElement(u.Fragment,{key:t.x}," ");m=s?r.props.colors?r._createColors()(1):mf(1,0,null===(e=r.props.theme)||void 0===e?void 0:e.isInverted):r.props.colors?r._createColors()(t.x):mf(i,0,null===(o=r.props.theme)||void 0===o?void 0:o.isInverted);var b=m=t.color&&!s?t.color:m;if(r.props.enableGradient){var x=Math.max(r._points.findIndex((function(n){return n===t})),0);m=(null===(a=t.gradient)||void 0===a?void 0:a[0])||Us(x,0,null===(l=r.props.theme)||void 0===l?void 0:l.isInverted)[0],b=(null===(h=t.gradient)||void 0===h?void 0:h[1])||Us(x,0,null===(d=r.props.theme)||void 0===d?void 0:d.isInverted)[1],s&&(m=Us(0,0,null===(v=r.props.theme)||void 0===v?void 0:v.isInverted)[0],b=Us(0,0,null===(p=r.props.theme)||void 0===p?void 0:p.isInverted)[1]),r._points[x].color=m}var C=g("HBCWA_Gradient")+"_".concat(i,"_").concat(t.x);return u.createElement(u.Fragment,{key:"".concat(i,"_").concat(t.x)},r.props.enableGradient&&u.createElement("defs",null,u.createElement("linearGradient",{id:C},u.createElement("stop",{offset:"0",stopColor:m}),u.createElement("stop",{offset:"100%",stopColor:b}))),u.createElement("rect",{key:t.y,x:r._isRtl?c(t.x):r.margins.left,className:r._classNames.opacityChangeOnHover,y:f(t.y)-r._barHeight/2,"data-is-focusable":y,width:r._isRtl?n-r.margins.right-Math.max(c(t.x),0):Math.max(c(t.x),0)-r.margins.left,height:r._barHeight,ref:function(n){r._refCallback(n,t.legend)},rx:r.props.roundCorners?3:0,onClick:t.onClick,onMouseOver:r._onBarHover.bind(r,t,m),"aria-label":r._getAriaLabel(t),role:"img","aria-labelledby":"toolTip".concat(r._calloutId),onMouseLeave:r._onBarLeave,onFocus:r._onBarFocus.bind(r,t,i,m),onBlur:r._onBarLeave,fill:r.props.enableGradient?"url(#".concat(C,")"):m}))}));return d},n.prototype._tooltipOfYAxislabels=function(t){var n=this,i=t.tooltipCls,e=t.yAxis,r=t.id;if(null===e)return null;for(var o=ss("body").append("div").attr("id",r).attr("class",i).style("opacity",0),u=e.selectAll("#BaseSpan")._groups[0],a=u&&Object.keys(u).length,s=[],l=0;l<a;l++){var c=u[l].dataset&&Object.values(u[l].dataset)[0];s.push(c)}var f=e.selectAll(".tick")._groups[0],h=f&&Object.keys(f).length,d=function(t){ss(f[t]).on("mouseover",(function(i,e){n.state.tooltipElement||(o.style("opacity",.9),o.text(s[t]).style("left",i.pageX+"px").style("top",i.pageY-28+"px"))})).on("mouseout",(function(t){o.style("opacity",0)}))};for(l=0;l<h;l++)d(l)},n.prototype._createStringBars=function(t,n,i,e){var r=this,o=this._getScales(t,n,!1),a=o.xBarScale,s=o.yBarScale,l=this.props.useSingleColor,c=void 0!==l&&l,f=this._points.map((function(t,i){var e,o,l,f,h,d,v,p,m,y=!0;if((r.state.isLegendHovered||r.state.isLegendSelected)&&(y=r._isLegendHighlighted(t.legend)),r._classNames=Qd(r.props.styles,{theme:r.props.theme,legendColor:r.state.color,shouldHighlight:y}),Math.max(s(t.y),0)<1)return u.createElement(u.Fragment,{key:t.x}," ");m=c?r.props.colors?r._createColors()(1):mf(1,0,null===(e=r.props.theme)||void 0===e?void 0:e.isInverted):r.props.colors?r._createColors()(t.x):mf(i,0,null===(o=r.props.theme)||void 0===o?void 0:o.isInverted);var b=m=t.color&&!c?t.color:m;if(r.props.enableGradient){var x=r._points.findIndex((function(n){return n===t}));m=(null===(l=t.gradient)||void 0===l?void 0:l[0])||Us(x,0,null===(f=r.props.theme)||void 0===f?void 0:f.isInverted)[0],b=(null===(h=t.gradient)||void 0===h?void 0:h[1])||Us(x,0,null===(d=r.props.theme)||void 0===d?void 0:d.isInverted)[1],c&&(m=Us(0,0,null===(v=r.props.theme)||void 0===v?void 0:v.isInverted)[0],b=Us(0,0,null===(p=r.props.theme)||void 0===p?void 0:p.isInverted)[1]),r._points[x].color=m}var C=g("HBCWA_Gradient")+"_".concat(i,"_").concat(t.x);return u.createElement(u.Fragment,{key:"".concat(i,"_").concat(t.x)},r.props.enableGradient&&u.createElement("defs",null,u.createElement("linearGradient",{id:C},u.createElement("stop",{offset:"0",stopColor:m}),u.createElement("stop",{offset:"100%",stopColor:b}))),u.createElement("rect",{transform:"translate(0,".concat(.5*(s.bandwidth()-r._barHeight),")"),key:t.x,className:r._classNames.opacityChangeOnHover,x:r._isRtl?a(t.x):r.margins.left,y:s(t.y),rx:r.props.roundCorners?3:0,width:r._isRtl?n-r.margins.right-Math.max(a(t.x),0):Math.max(a(t.x),0)-r.margins.left,height:r._barHeight,"aria-labelledby":"toolTip".concat(r._calloutId),"aria-label":r._getAriaLabel(t),role:"img",ref:function(n){r._refCallback(n,t.legend)},onClick:t.onClick,onMouseOver:r._onBarHover.bind(r,t,m),onMouseLeave:r._onBarLeave,onBlur:r._onBarLeave,"data-is-focusable":y,onFocus:r._onBarFocus.bind(r,t,i,m),fill:r.props.enableGradient?"url(#".concat(C,")"):m}))}));if(!this.props.showYAxisLablesTooltip)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}if(this.props.showYAxisLablesTooltip){var h=ss(e).call(s);if(!this.state.tooltipElement)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}var d={tooltipCls:this._classNames.tooltip,id:this._tooltipId,yAxis:h};h&&this._tooltipOfYAxislabels(d)}return f},n.prototype._onLegendHover=function(t){this._isLegendSelected()||this.setState({isLegendHovered:!0,selectedLegendTitle:t})},n.prototype._onLegendLeave=function(t){!t&&this._isLegendSelected()||this.setState({isLegendHovered:!1,selectedLegendTitle:"",isLegendSelected:!t&&this._isLegendSelected()})},n.prototype._getHighlightedLegend=function(){return this.state.selectedLegends.length>0?this.state.selectedLegends:this.state.selectedLegendTitle?[this.state.selectedLegendTitle]:[]},n.prototype._onLegendSelectionChange=function(t,n,i){var e,r;(null===(e=this.props.legendProps)||void 0===e?void 0:e.canSelectMultipleLegends)?this.setState({selectedLegends:t,selectedLegendTitle:null==i?void 0:i.title}):this.setState({selectedLegends:t.slice(-1),selectedLegendTitle:null==i?void 0:i.title}),this.setState({isLegendSelected:t.length>0}),(null===(r=this.props.legendProps)||void 0===r?void 0:r.onChange)&&this.props.legendProps.onChange(t,n,i)},n}(u.Component),nv=(0,r.I)(tv,(function(t){var n=t.shouldHighlight,i=t.theme;return{opacityChangeOnHover:{opacity:n?"":"0.1"},xAxisTicks:[],tooltip:(0,o.Cl)((0,o.Cl)({},i.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:i.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"})}}));!function(t){t.Percentage="percentage",t.Fraction="fraction"}(qd||(qd={})),function(t){t.SingleSegment="single-segment",t.MultipleSegments="multiple-segments"}(Ud||(Ud={}));var iv=[{minRadius:52,arcWidth:12,fontSize:20},{minRadius:70,arcWidth:16,fontSize:24},{minRadius:88,arcWidth:20,fontSize:32},{minRadius:106,arcWidth:24,fontSize:32},{minRadius:124,arcWidth:28,fontSize:40},{minRadius:142,arcWidth:32,fontSize:40}],ev=(0,a.Z)(),rv=function(t,n,i,e,r){return void 0===r&&(r=!1),r?0===n&&e===Ud.SingleSegment?"".concat(t.legend,", ").concat(t.size," out of ").concat(i," or ").concat((t.size/i*100).toFixed(),"%"):"".concat(t.legend,", ").concat(t.start," to ").concat(t.end):0===n&&e===Ud.SingleSegment?"".concat(t.size," (").concat((t.size/i*100).toFixed(),"%)"):"".concat(t.start," - ").concat(t.end)},ov=function(t,n,i,e,r){return void 0===r&&(r=!1),r?0!==n?t.toString():e===qd.Fraction?"".concat((t/i*100).toFixed(),"%"):"".concat(t,"/").concat(i):"function"==typeof e?e([t-n,i-n]):0!==n?t.toString():e===qd.Fraction?"".concat(t,"/").concat(i):"".concat((t/i*100).toFixed(),"%")},uv=function(t){function n(n){var i,e=t.call(this,n)||this;return e._getMargins=function(){var t=e.props,n=t.hideMinMax;return{left:16+(n?0:40),right:16+(n?0:40),top:16+(t.chartTitle?27:2),bottom:16+(t.sublabel?20:0)}},e._getStylesBasedOnBreakpoint=function(){for(var t=iv.length-1;t>=0;t-=1)if(e._outerRadius>=iv[t].minRadius)return{arcWidth:iv[t].arcWidth,chartValueSize:iv[t].fontSize};return{arcWidth:iv[0].arcWidth,chartValueSize:iv[0].fontSize}},e._processProps=function(){var t=e.props,n=t.minValue,i=void 0===n?0:n,r=t.maxValue,o=t.theme,u=i,a=e.props.segments.map((function(t,n){var i,e=Math.max(t.size,0);return u+=e,{legend:t.legend,size:e,color:void 0!==t.color?yf(t.color,o.isInverted):mf(n,0,o.isInverted),gradient:null!==(i=t.gradient)&&void 0!==i?i:Us(n,0,o.isInverted),accessibilityData:t.accessibilityData,start:u-e,end:u}}));void 0!==r&&u<r&&(a.push({legend:"Unknown",size:r-u,color:o.palette.neutralLight,start:u,end:r}),u=r);var s=rf().cornerRadius(e.props.roundCorners?3:0).padAngle(2/e._outerRadius).padRadius(e._outerRadius),l=e._isRTL?Array.from(a).reverse():a,c=-Math.PI/2,f=l.map((function(t,n){var r=c+t.size/(u-i)*Math.PI,o=s({innerRadius:e._innerRadius,outerRadius:e._outerRadius,startAngle:c,endAngle:r});return c=r,{d:o,segmentIndex:e._isRTL?a.length-1-n:n,startAngle:c-t.size/(u-i)*Math.PI,endAngle:r}}));return e._minValue=i,e._maxValue=u,e._segments=a,{arcs:f}},e._renderNeedle=function(){var t=function(t,n,i){var e=(t-n)/(i-n)*180;return e<0?e=0:e>180&&(e=180),e}(e.props.chartValue,e._minValue,e._maxValue),n=e._isRTL?180-t:t,i=e._outerRadius-e._innerRadius+4;return u.createElement("g",{transform:"rotate(".concat(n,", 0, 0)")},u.createElement("path",{d:"\n M 0,".concat(-4,"\n L ").concat(-i,",").concat(-2,"\n A ").concat(2,",").concat(2,",0,0,0,").concat(-i,",").concat(2,"\n L 0,").concat(4,"\n A ").concat(4,",").concat(4,",0,0,0,0,").concat(-4,"\n "),strokeWidth:2,className:e._classNames.needle,transform:"translate(".concat(2-e._innerRadius,")"),"data-is-focusable":!0,onFocus:function(t){return e._handleFocus(t,"Needle")},onBlur:e._handleBlur,onMouseEnter:function(t){return e._handleMouseOver(t,"Needle")},onMouseMove:function(t){return e._handleMouseOver(t,"Needle")},role:"img","aria-label":"Current value: "+ov(e.props.chartValue,e._minValue,e._maxValue,e.props.chartValueFormat)}))},e._renderLegends=function(){if(e.props.hideLegend)return null;var t=e._segments.map((function(t,n){var i,r=e.props.enableGradient?(null===(i=t.gradient)||void 0===i?void 0:i[0])||Us(n,0,e.props.theme.isInverted)[0]:t.color||mf(n,0,e.props.theme.isInverted);return{title:t.legend,color:r,hoverAction:function(){e.setState({hoveredLegend:t.legend})},onMouseOutAction:function(){e.setState({hoveredLegend:""})}}}));return u.createElement("div",{className:e._classNames.legendsContainer},u.createElement(Ac,(0,o.Cl)({legends:t,centerLegends:!0},e.props.legendProps,{onChange:e._onLegendSelectionChange.bind(e)})))},e._legendHighlighted=function(t){return e._getHighlightedLegend().includes(t)},e._noLegendHighlighted=function(){return 0===e._getHighlightedLegend().length},e._handleFocus=function(t,n){e._showCallout(t.target,n,!0)},e._handleBlur=function(){e._hideCallout(!0)},e._handleMouseOver=function(t,n){e._showCallout(t.target,n,!1)},e._handleMouseOut=function(){e._hideCallout(!1)},e._handleCalloutDismiss=function(){e._hideCallout(!1)},e._showCallout=function(t,n,i){if(e._calloutAnchor!==n){e._calloutAnchor=n;var r="Current value is "+ov(e.props.chartValue,e._minValue,e._maxValue,e.props.chartValueFormat,!0),u=e._segments.map((function(t){var n;return{legend:t.legend,y:rv(t,e._minValue,e._maxValue,e.props.variant),color:e.props.enableGradient?null===(n=t.gradient)||void 0===n?void 0:n[0]:t.color}}));e.setState((0,o.Cl)({calloutTarget:t,isCalloutVisible:["Needle","Chart value"].includes(n)||e._noLegendHighlighted()||e._legendHighlighted(n),hoverXValue:r,hoverYValues:u},i?{focusedElement:n}:{}))}},e._hideCallout=function(t){e._calloutAnchor="",e.setState((0,o.Cl)({calloutTarget:null,isCalloutVisible:!1,hoverXValue:"",hoverYValues:[]},t?{focusedElement:""}:{}))},e._wrapContent=function(t,n,i){var e=ss("#".concat(n));if(e.text(t),!e.node())return!1;for(var r=!1,o=e.node().getComputedTextLength();o>i&&t.length>0;)t=t.slice(0,-1),e.text(t+"..."),r=!0,o=e.node().getComputedTextLength();return r},e._multiValueCallout=function(t){var n=e._yValueHoverSubCountsExists(t.YValueHover);return u.createElement("div",{className:e._classNames.calloutContentRoot},u.createElement("div",{className:e._classNames.calloutDateTimeContainer,style:n?{marginBottom:"11px"}:{}},u.createElement("div",(0,o.Cl)({className:e._classNames.calloutContentX},Es(t.xAxisCalloutAccessibilityData,"text",!1)),(0,Jn.U)(t.hoverXValue,e.props.culture))),u.createElement("div",{className:e._classNames.calloutInfoContainer,style:n?{display:"flex"}:{}},t.YValueHover&&t.YValueHover.map((function(t,i,r){var a=i+1===r.length,s=t.shouldDrawBorderBottom,l=void 0!==s&&s;return u.createElement("div",(0,o.Cl)({},Es(t.callOutAccessibilityData,"text",!1),{key:"callout-content-".concat(i),style:n?(0,o.Cl)({display:"inline-block"},l&&{borderBottom:"1px solid ".concat(e.props.theme.semanticColors.menuDivider),paddingBottom:"10px"}):(0,o.Cl)({},l&&{borderBottom:"1px solid ".concat(e.props.theme.semanticColors.menuDivider),paddingBottom:"10px"})}),e._getCalloutContent(t,i,n,a))})),!!t.descriptionMessage&&u.createElement("div",{className:e._classNames.descriptionMessage},t.descriptionMessage)))},e._getChartTitle=function(){var t=e.props.chartTitle;return(t?"".concat(t,". "):"")+"Gauge chart with ".concat(e._segments.length," segments. ")},Js(e),e._margins=e._getMargins(),e._legendsHeight=n.hideLegend?0:24,e.state={hoveredLegend:"",selectedLegends:(null===(i=n.legendProps)||void 0===i?void 0:i.selectedLegends)||[],focusedElement:"",calloutTarget:null,isCalloutVisible:!1,hoverXValue:"",hoverYValues:[],width:140+e._margins.left+e._margins.right,height:70+e._margins.top+e._margins.bottom+e._legendsHeight},e._isRTL=(0,s.jI)(n.theme),e._calloutAnchor="",e}return(0,o.C6)(n,t),n.prototype.componentDidMount=function(){this._rootElem&&this.setState({width:this._rootElem.clientWidth,height:this._rootElem.clientHeight})},n.prototype.componentDidUpdate=function(t){var n,i,e;Is(null===(n=t.legendProps)||void 0===n?void 0:n.selectedLegends,null===(i=this.props.legendProps)||void 0===i?void 0:i.selectedLegends)||this.setState({selectedLegends:(null===(e=this.props.legendProps)||void 0===e?void 0:e.selectedLegends)||[]})},n.prototype.render=function(){var t=this;this._margins=this._getMargins(),this._legendsHeight=this.props.hideLegend?0:24;var n=this.props.width||this.state.width,i=this.props.height||this.state.height;this._outerRadius=Math.min((n-(this._margins.left+this._margins.right))/2,i-(this._margins.top+this._margins.bottom+this._legendsHeight));var e=this._getStylesBasedOnBreakpoint(),r=e.arcWidth,a=e.chartValueSize;this._innerRadius=this._outerRadius-r;var s=this._processProps().arcs;return this._classNames=ev(this.props.styles,{theme:this.props.theme,className:this.props.className,chartWidth:n,chartHeight:i-this._legendsHeight,chartValueSize:a}),u.createElement("div",{className:this._classNames.root,ref:function(n){return t._rootElem=n}},u.createElement(bl,{direction:Ws.horizontal},u.createElement("svg",{className:this._classNames.chart,role:"region","aria-label":this._getChartTitle(),onMouseLeave:this._handleMouseOut},u.createElement("g",{transform:"translate(".concat(n/2,", ").concat(i-(this._margins.bottom+this._legendsHeight),")")},this.props.chartTitle&&u.createElement("text",{x:0,y:-(this._outerRadius+11),textAnchor:"middle",className:this._classNames.chartTitle,"aria-hidden":!0},this.props.chartTitle),!this.props.hideMinMax&&u.createElement(u.Fragment,null,u.createElement("text",{x:(this._isRTL?1:-1)*(this._outerRadius+4),y:0,textAnchor:"end",className:this._classNames.limits,role:"img","aria-label":"Min value: ".concat(this._minValue)},Ps(this._minValue)),u.createElement("text",{x:(this._isRTL?-1:1)*(this._outerRadius+4),y:0,textAnchor:"start",className:this._classNames.limits,role:"img","aria-label":"Max value: ".concat(this._maxValue)},Ps(this._maxValue))),s.map((function(n,i){var e,r,a=t._segments[n.segmentIndex],s=g("Arc_clip")+"".concat(i,"_").concat(n.startAngle,"_").concat(n.endAngle),l=ev(t.props.styles,{theme:t.props.theme,solidFill:t.props.enableGradient?"transparent":a.color,gradientFill:"conic-gradient(\n from ".concat(n.startAngle,"rad at 50% 100%,\n ").concat(null===(e=a.gradient)||void 0===e?void 0:e[0],",\n ").concat(null===(r=a.gradient)||void 0===r?void 0:r[1]," ").concat(n.endAngle-n.startAngle,"rad\n )"),opacity:t._legendHighlighted(a.legend)||t._noLegendHighlighted()?1:.1});return u.createElement(u.Fragment,{key:i},u.createElement("path",(0,o.Cl)({d:n.d,strokeWidth:t.state.focusedElement===a.legend?2:0,className:l.segment},Es((0,o.Cl)({ariaLabel:rv(a,t._minValue,t._maxValue,t.props.variant,!0)},a.accessibilityData),"img",!0),{onFocus:function(n){return t._handleFocus(n,a.legend)},onBlur:t._handleBlur,onMouseEnter:function(n){return t._handleMouseOver(n,a.legend)},onMouseMove:function(n){return t._handleMouseOver(n,a.legend)},"data-is-focusable":t._legendHighlighted(a.legend)||t._noLegendHighlighted()})),t.props.enableGradient&&u.createElement(u.Fragment,null,u.createElement("clipPath",{id:s},u.createElement("path",{d:n.d})),u.createElement("foreignObject",{x:"-50%",y:"-100%",width:"100%",height:"100%",clipPath:"url(#".concat(s,")")},u.createElement("div",{className:l.gradientSegment}))))})),this._renderNeedle(),u.createElement("g",{onMouseEnter:function(n){return t._handleMouseOver(n,"Chart value")},onMouseMove:function(n){return t._handleMouseOver(n,"Chart value")}},u.createElement(Tf,{content:ov(this.props.chartValue,this._minValue,this._maxValue,this.props.chartValueFormat),textProps:{x:0,y:0,textAnchor:"middle",className:this._classNames.chartValue,"aria-hidden":"true"},maxWidth:2*this._innerRadius-24,wrapContent:this._wrapContent})),this.props.sublabel&&u.createElement(Tf,{content:this.props.sublabel,textProps:{x:0,y:4,textAnchor:"middle",dominantBaseline:"hanging",className:this._classNames.sublabel},maxWidth:2*this._innerRadius,wrapContent:this._wrapContent})))),this._renderLegends(),!this.props.hideTooltip&&this.state.isCalloutVisible&&u.createElement(Kn,(0,o.Cl)({target:this.state.calloutTarget,directionalHint:x.topAutoEdge,gapSpace:15,isBeakVisible:!1,onDismiss:this._handleCalloutDismiss},this.props.calloutProps),this._multiValueCallout({hoverXValue:this.state.hoverXValue,YValueHover:this.state.hoverYValues})))},Object.defineProperty(n.prototype,"chartContainer",{get:function(){return this._rootElem},enumerable:!1,configurable:!0}),n.prototype._onLegendSelectionChange=function(t,n,i){var e,r;(null===(e=this.props.legendProps)||void 0===e?void 0:e.canSelectMultipleLegends)?this.setState({selectedLegends:t}):this.setState({selectedLegends:t.slice(-1)}),(null===(r=this.props.legendProps)||void 0===r?void 0:r.onChange)&&this.props.legendProps.onChange(t,n,i)},n.prototype._getHighlightedLegend=function(){return this.state.selectedLegends.length>0?this.state.selectedLegends:this.state.hoveredLegend?[this.state.hoveredLegend]:[]},n.prototype._yValueHoverSubCountsExists=function(t){return!!t&&t.some((function(t){return t.yAxisCalloutData&&"string"!=typeof t.yAxisCalloutData}))},n.prototype._getCalloutContent=function(t,n,i,e){var r=e?{}:{marginRight:"16px"},o=void 0!==t.index&&-1!==t.index,a=ev(this.props.styles,{theme:this.props.theme,lineColor:t.color,toDrawShape:o}),s=this.props.culture,l=(0,Jn.U)(t.y,s);if(t.yAxisCalloutData&&"string"!=typeof t.yAxisCalloutData){var c=t.yAxisCalloutData;return u.createElement("div",{style:r},u.createElement("div",{className:"ms-fontWeight-semibold",style:{fontSize:"12pt"}},t.legend," (",l,")"),Object.keys(c).map((function(t){return u.createElement("div",{key:t,className:a.calloutBlockContainer},u.createElement("div",{className:a.calloutlegendText}," ",(0,Jn.U)(t,s)),u.createElement("div",{className:a.calloutContentY},(0,Jn.U)(c[t],s)))})))}return u.createElement("div",{style:i?r:{}},i&&u.createElement("div",{className:"ms-fontWeight-semibold",style:{fontSize:"12pt"}},t.legend," (",l,")"),u.createElement("div",{id:"".concat(n,"_").concat(t.y),className:a.calloutBlockContainer},o&&u.createElement(Mc,{svgProps:{className:a.shapeStyles},pathProps:{fill:t.color},shape:Vs[t.index%Object.keys(Ts).length]}),u.createElement("div",null,u.createElement("div",{className:a.calloutlegendText}," ",t.legend),u.createElement("div",{className:a.calloutContentY},(0,Jn.U)(t.yAxisCalloutData?t.yAxisCalloutData:t.y||t.data,s)))))},n}(u.Component),av=(0,r.I)(uv,(function(t){var n,i,e,r,u=t.theme,a=t.chartValueSize,s=t.chartWidth,l=t.chartHeight,c=t.className,f=t.lineColor,h=t.toDrawShape,d=t.solidFill,v=t.gradientFill,p=t.opacity;return{root:[u.fonts.medium,"ms-GaugeChart",{width:"100%",height:"100%"},c],chart:{display:"block",width:s,height:l},limits:{fontSize:$t.s.small,fontWeight:$t.BO.semibold,fill:u.palette.neutralPrimary},chartValue:{fontSize:a,fontWeight:$t.BO.semibold,fill:u.palette.neutralPrimary},sublabel:{fontSize:$t.s.small,fontWeight:$t.BO.semibold,fill:u.palette.neutralPrimary},needle:{fill:u.palette.black,stroke:u.semanticColors.bodyBackground},chartTitle:{fontSize:$t.s.small,fill:u.palette.neutralPrimary},segment:{outline:"none",stroke:u.semanticColors.focusBorder,fill:d,fillOpacity:p},gradientSegment:{width:"100%",height:"100%",background:v,opacity:p},legendsContainer:{width:s},calloutContentRoot:[{display:"grid",overflow:"hidden",padding:"11px 16px 10px 16px",backgroundColor:u.semanticColors.bodyBackground,backgroundBlendMode:"normal, luminosity"}],calloutDateTimeContainer:{display:"flex",flexDirection:"row",justifyContent:"space-between"},calloutContentX:[(0,o.Cl)((0,o.Cl)({},u.fonts.small),{lineHeight:"16px",opacity:"0.85",color:u.semanticColors.bodySubtext})],calloutBlockContainer:[u.fonts.mediumPlus,{marginTop:"13px",color:u.semanticColors.bodyText},!h&&{selectors:(n={},n[$t.up]={forcedColorAdjust:"none"},n),borderLeft:"4px solid ".concat(f),paddingLeft:"8px"},h&&{display:"flex"}],shapeStyles:{marginRight:"8px"},calloutlegendText:(0,o.Cl)((0,o.Cl)({},u.fonts.small),{lineHeight:"16px",selectors:(i={},i[$t.NK]={color:"rgb(255, 255, 255)"},i),color:u.semanticColors.bodySubtext}),calloutContentY:[(0,o.Cl)((0,o.Cl)({},u.fonts.mediumPlus),{fontWeight:"bold",lineHeight:"22px",selectors:(e={},e[$t.NK]={color:"rgb(255, 255, 255)"},e)})],descriptionMessage:[u.fonts.small,{selectors:(r={},r[$t.NK]={color:"rgb(255, 255, 255)"},r),color:u.semanticColors.bodyText,marginTop:"10px",paddingTop:"10px",borderTop:"1px solid ".concat(u.semanticColors.menuDivider)}]}})),sv=i(927),lv=u.createContext(void 0),cv=Array.prototype,fv=cv.slice;function hv(t){return()=>t}function dv(t){return t}function vv(t){return Math.max(1,Math.ceil(Math.log(function(t,n){let i=0;for(let n of t)null!=n&&(n=+n)>=n&&++i;return i}(t))/Math.LN2)+1)}cv.map;var pv=function(t){return!isNaN(Date.parse(t))},gv=function(t){return!isNaN(parseFloat(t))&&isFinite(t)},mv=function(t){return Av(t)&&t.every(pv)},yv=function(t){return Av(t)&&t.every(gv)};function bv(t){var n,i,e,r,o,u,a,s,l,c,f,h,d;return{chartTitle:"string"==typeof t.title?t.title:"string"==typeof(null===(n=t.title)||void 0===n?void 0:n.text)?t.title.text:"",xAxisTitle:"string"==typeof(null===(i=null==t?void 0:t.xaxis)||void 0===i?void 0:i.title)?null===(e=null==t?void 0:t.xaxis)||void 0===e?void 0:e.title:"string"==typeof(null===(o=null===(r=null==t?void 0:t.xaxis)||void 0===r?void 0:r.title)||void 0===o?void 0:o.text)?null===(a=null===(u=null==t?void 0:t.xaxis)||void 0===u?void 0:u.title)||void 0===a?void 0:a.text:"",yAxisTitle:"string"==typeof(null===(s=null==t?void 0:t.yaxis)||void 0===s?void 0:s.title)?null===(l=null==t?void 0:t.yaxis)||void 0===l?void 0:l.title:"string"==typeof(null===(f=null===(c=null==t?void 0:t.yaxis)||void 0===c?void 0:c.title)||void 0===f?void 0:f.text)?null===(d=null===(h=null==t?void 0:t.yaxis)||void 0===h?void 0:h.title)||void 0===d?void 0:d.text:""}}var xv=function(t){for(var n=(new Date).getFullYear(),i=t.map((function(t){var i="".concat(t," 01, ").concat(n);return pv(i)?new Date(i):null})),e=i.length-1;e>0;e--){var r=i[e].getMonth(),o=i[e-1].getMonth(),u=i[e].getFullYear(),a=i[e-1].getFullYear();o>=r?i[e-1].setFullYear(i[e].getFullYear()-1):a>u&&i[e-1].setFullYear(u)}return t.map((function(t,n){return"".concat(t," 01, ").concat(i[n].getFullYear())}))},Cv=function(t,n,i){if(!n.current.has(t)){var e=mf(n.current.size+1,0,i);return n.current.set(t,e),e}return n.current.get(t)},wv=function(t,n,i){var e=t.data,r=t.layout,o={},u=0;e.forEach((function(t,e){var r;null===(r=t.x)||void 0===r||r.forEach((function(r,a){var s,l,c;o[r]||(o[r]={xAxisPoint:r,chartData:[],lineData:[]});var f=t.name||"Series ".concat(e+1);if("bar"===t.type||"scatter"===t.type){var h=Cv(f,n,i);o[r].chartData.push({legend:f,data:null===(s=t.y)||void 0===s?void 0:s[a],color:h})}else"line"===t.type&&(h=Cv(f,n,i),o[r].lineData.push({legend:f,y:null===(l=t.y)||void 0===l?void 0:l[a],color:h}));u=Math.max(u,null===(c=t.y)||void 0===c?void 0:c[a])}))}));var a=bv(r),s=a.chartTitle,l=a.xAxisTitle,c=a.yAxisTitle;return{data:Object.values(o),barWidth:"auto",yMaxValue:u,chartTitle:s,xAxisTitle:l,yAxisTitle:c,mode:"plotly"}},Mv=function(t,n,i){var e=t.data,r=t.layout,o=[];e.forEach((function(t,e){var r,u,a;if(t.x){var s=Ue().domain(Gd(t.x)).nice().domain(),l=s[0],c=s[1];l="number"==typeof(null===(r=t.xbins)||void 0===r?void 0:r.start)?t.xbins.start:l,c="number"==typeof(null===(u=t.xbins)||void 0===u?void 0:u.end)?t.xbins.end:c;var f=function(){var t=dv,n=Gd,i=vv;function e(e){Array.isArray(e)||(e=Array.from(e));var r,o,u,a=e.length,s=new Array(a);for(r=0;r<a;++r)s[r]=t(e[r],r,e);var l=n(s),c=l[0],f=l[1],h=i(s,c,f);if(!Array.isArray(h)){const t=f,i=+h;if(n===Gd&&([c,f]=function(t,n,i){let e;for(;;){const r=Ci(t,n,i);if(r===e||0===r||!isFinite(r))return[t,n];r>0?(t=Math.floor(t/r)*r,n=Math.ceil(n/r)*r):r<0&&(t=Math.ceil(t*r)/r,n=Math.floor(n*r)/r),e=r}}(c,f,i)),(h=xi(c,f,i))[0]<=c&&(u=Ci(c,f,i)),h[h.length-1]>=f)if(t>=f&&n===Gd){const t=Ci(c,f,i);isFinite(t)&&(t>0?f=(Math.floor(f/t)+1)*t:t<0&&(f=(Math.ceil(f*-t)+1)/-t))}else h.pop()}for(var d=h.length,v=0,p=d;h[v]<=c;)++v;for(;h[p-1]>f;)--p;(v||p<d)&&(h=h.slice(v,p),d=p-v);var g,m=new Array(d+1);for(r=0;r<=d;++r)(g=m[r]=[]).x0=r>0?h[r-1]:c,g.x1=r<d?h[r]:f;if(isFinite(u)){if(u>0)for(r=0;r<a;++r)null!=(o=s[r])&&c<=o&&o<=f&&m[Math.min(d,Math.floor((o-c)/u))].push(e[r]);else if(u<0)for(r=0;r<a;++r)if(null!=(o=s[r])&&c<=o&&o<=f){const t=Math.floor((c-o)*u);m[Math.min(d,t+(h[t]<=o))].push(e[r])}}else for(r=0;r<a;++r)null!=(o=s[r])&&c<=o&&o<=f&&m[Di(h,o,0,d)].push(e[r]);return m}return e.value=function(n){return arguments.length?(t="function"==typeof n?n:hv(n),e):t},e.domain=function(t){return arguments.length?(n="function"==typeof t?t:hv([t[0],t[1]]),e):n},e.thresholds=function(t){return arguments.length?(i="function"==typeof t?t:hv(Array.isArray(t)?fv.call(t):t),e):i},e}().domain([l,c]);if("number"==typeof(null===(a=t.xbins)||void 0===a?void 0:a.size)){for(var h=[],d=l,v=qe(t.xbins.size),p=Ye(".".concat(v,"f"));d<c+t.xbins.size;)h.push(parseFloat(p(d))),d+=t.xbins.size;l=h[0],c=h[h.length-1],f.domain([l,c]).thresholds(h)}var g,m=f(t.x),y=(g=m,Array.from(function*(t){for(const n of t)yield*n}(g))).length;m.forEach((function(r){var u=t.name||"Series ".concat(e+1),a=Cv(u,n,i),s=r.length;"percent"===t.histnorm?s=r.length/y*100:"probability"===t.histnorm?s=r.length/y:"density"===t.histnorm?s=r.x0===r.x1?0:r.length/(r.x1-r.x0):"probability density"===t.histnorm?s=r.x0===r.x1?0:r.length/(y*(r.x1-r.x0)):"sum"===t.histfunc?s=nd(r):"avg"===t.histfunc?s=0===r.length?0:nd(r)/r.length:"min"===t.histfunc?s=vi(r):"max"===t.histfunc&&(s=pi(r)),o.push({x:(r.x1+r.x0)/2,y:s,legend:u,color:a,xAxisCalloutData:"[".concat(r.x0," - ").concat(r.x1,")")})}))}}));var u=bv(r),a=u.chartTitle,s=u.xAxisTitle,l=u.yAxisTitle;return{data:o,barWidth:24,supportNegativeData:!0,chartTitle:a,xAxisTitle:s,yAxisTitle:l,mode:"plotly"}},kv=function(t,n,i,e){var r=t.data,o=t.layout,u=r.map((function(t,n){var r=t.x,o="string"==typeof r[0],u=mv(r),a=yv(r),s=t.name||"Series ".concat(n+1),l=Cv(s,i,e);return{legend:s,data:r.map((function(n,i){return{x:o?u?new Date(n):a?parseFloat(n):n:n,y:t.y[i]}})),color:l}})),a=bv(o);return{data:{chartTitle:a.chartTitle,lineChartData:u},supportNegativeData:!0,xAxisTitle:a.xAxisTitle,yAxisTitle:a.yAxisTitle}},Sv=function(t,n){if(void 0===n&&(n=0),n>8)throw new Error("Maximum json depth exceeded");if("object"==typeof t&&null!==t)for(var i in t)t.hasOwnProperty(i)&&("string"==typeof t[i]?t[i]=t[i].replace(/</g,"&lt;").replace(/>/g,"&gt;"):t[i]=Sv(t[i],n+1));return t};function Av(t){return Array.isArray(t)||function(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}(t)}var Lv=/var\((--[a-zA-Z0-9\-]+)\)/g;function Vv(t,n){var i=getComputedStyle(t);return n.replace(Lv,(function(t,n){return i.getPropertyValue(n)}))}var Dv=/^[\da-f]{2}$/i,Nv=/^[\da-f]{4}$/i,Tv=u.forwardRef((function(t,n){var i,e,r,a,s=Sv(t.chartSchema).plotlySchema,l=s.data,c=s.layout,f=s.selectedLegends,h=l[0].x,d=mv(h),v=yv(h),p=function(t){if(t&&t.length>0){var n=(new Date).getFullYear();return t.every((function(t){return pv("".concat(t," 01, ").concat(n))}))}return!1}(h),g=u.useRef(new Map),m=function(){var t=u.useContext(lv),n=(0,sv.m)(["theme"]).theme;return t||n||(0,Cn.a)({})}(),y=null!==(i=null==m?void 0:m.isInverted)&&void 0!==i&&i,b=u.useRef(null);Av(f)||(f=[]);var x=u.useState(f),C=x[0],w=x[1],M=function(n){w(n),t.onSchemaChange&&t.onSchemaChange({plotlySchema:{data:l,layout:c,selectedLegends:n}})};u.useEffect((function(){var n=Sv(t.chartSchema).plotlySchema.selectedLegends;w(null!=n?n:[])}),[t.chartSchema]);var k={canSelectMultipleLegends:!1,onChange:M,selectedLegend:C.slice(0,1)[0]},S=u.useCallback((function(t){var n;return function(t,n){return void 0===n&&(n={}),new Promise((function(i,e){if(!t)return e(new Error("Chart container is not defined"));try{var r="string"==typeof n.background?Vv(t,n.background):"transparent",o=function(t,n){var i=t.querySelector("svg");if(!i)throw new Error("SVG not found");var e=i.getBoundingClientRect(),r=e.width,o=e.height,u=new Set,a=function(t,n,i,e){var r=t.querySelectorAll('\n button[class^="legend-"],\n [class^="legendContainer-"] div[class^="overflowIndicationTextStyle-"],\n [class^="legendsContainer-"] div[class^="overflowIndicationTextStyle-"]\n ');if(0===r.length)return{node:null,width:0,height:0};for(var o=ss(Xa("svg:g").call(document.documentElement)),u=0,a=8,s=[],l=[],c=[],f=0;f<r.length;f++){var h=r[f].getBoundingClientRect().width,d=o.append("g");s.push(d),u+h>n&&s.length>1&&(s.pop(),l.push(s),c.push(u),s=[d],u=0,a+=32);var v=void 0,p=0;if("button"===r[f].tagName.toLowerCase()){var g=r[f].querySelector('[class^="rect"]'),m=getComputedStyle(g),y=m.backgroundColor,b=m.borderColor;(v=r[f].querySelector('[class^="text"]')).classList.forEach((function(t){return e.add(".".concat(t))})),d.append("rect").attr("x",u+8).attr("y",i+a+8).attr("width",12).attr("height",12).attr("fill",y).attr("stroke-width",1).attr("stroke",b),p=28}else(v=r[f]).classList.forEach((function(t){return e.add(".".concat(t))})),p=8;var x=getComputedStyle(v).color;d.append("text").attr("x",u+p).attr("y",i+a+8).attr("dominant-baseline","hanging").attr("class",v.getAttribute("class")).attr("fill",x).text(v.textContent),u+=h}return l.push(s),c.push(u),a+=32,l.forEach((function(t,i){var e=Math.max((n-c[i])/2,0);t.forEach((function(t){t.attr("transform","translate(".concat(e,", 0)"))}))})),{node:o.node(),width:Math.max.apply(Math,c),height:a}}(t,r,o,u),s=Math.max(r,a.width),l=o+a.height,c=ss(i.cloneNode(!0)).attr("width",null).attr("height",null).attr("viewBox",null);a.node&&c.append((function(){return a.node})),c.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",s).attr("height",l).attr("fill",n);for(var f=i.getElementsByTagName("*"),h=document.styleSheets,d="",v=f.length-1;v--;)f[v].classList.forEach((function(t){u.add(".".concat(t))}));for(v=0;v<h.length;v++)for(var p=h[v].cssRules,g=0;g<p.length;g++)"CSSStyleRule"===p[g].constructor.name&&p[g].selectorText.split(" ").some((function(t){return u.has(t)}))&&(d+=p[g].cssText+" ");d=Vv(t,d);var m=(new DOMParser).parseFromString("<svg></svg>","image/svg+xml").createCDATASection(d);return c.insert("defs",":first-child").append("style").attr("type","text/css").node().appendChild(m),c.attr("width",s).attr("height",l).attr("viewBox","0 0 ".concat(s," ").concat(l)),{node:c.node(),width:s,height:l}}(t,r),u=(new XMLSerializer).serializeToString(o.node);(function(t,n){return void 0===n&&(n={}),new Promise((function(i,e){var r=n.scale||1,o=n.width||300,u=n.height||150,a=r*o,s=r*u,l=document.createElement("canvas"),c=new Image;l.width=a,l.height=s,c.onload=function(){var t=l.getContext("2d");if(!t)return e(new Error("Canvas context is null"));t.clearRect(0,0,a,s),t.drawImage(c,0,0,a,s);var n=l.toDataURL("image/png");i(n)},c.onerror=function(t){e(t)},c.src=t}))})("data:image/svg+xml;base64,"+btoa(function(t){for(var n,i,e="",r=t.length,o=0;o<r;){if("%"===(n=t.charAt(o++)))if("u"===t.charAt(o)){if(i=t.slice(o+1,o+5),Nv.exec(i)){e+=String.fromCharCode(parseInt(i,16)),o+=5;continue}}else if(i=t.slice(o,o+2),Dv.exec(i)){e+=String.fromCharCode(parseInt(i,16)),o+=2;continue}e+=n}return e}(encodeURIComponent(u))),{width:n.width||o.width,height:n.height||o.height,scale:n.scale}).then(i).catch(e)}catch(t){return e(t)}}))}(null===(n=b.current)||void 0===n?void 0:n.chartContainer,(0,o.Cl)({background:m.semanticColors.bodyBackground},t))}),[m]);u.useImperativeHandle(t.componentRef,(function(){return{exportAsImage:S}}),[S]);var A=(0,o.Cl)((0,o.Cl)({},k),{canSelectMultipleLegends:!0,selectedLegends:C});switch(l[0].type){case"pie":return u.createElement(Cf,(0,o.Cl)({},function(t,n,i){var e,r,u=t.data,a=t.layout,s=u[0],l=null===(e=s.labels)||void 0===e?void 0:e.map((function(t,e){var r,o=Cv(t,n,i);return{legend:t,data:null===(r=s.values)||void 0===r?void 0:r[e],color:o}})),c="number"==typeof(null==a?void 0:a.width)?null==a?void 0:a.width:440,f="number"==typeof(null==a?void 0:a.height)?null==a?void 0:a.height:220,h=!!s.textinfo&&!["value","percent","label+percent"].includes(s.textinfo),d=h?0:80,v=40+(h?0:40),p=s.hole?s.hole*(Math.min(c-d,f-v)/2):0,g={root:{'[class^="arcLabel"]':(0,o.Cl)({},"number"==typeof(null===(r=s.textfont)||void 0===r?void 0:r.size)?{fontSize:s.textfont.size}:{})}};return{data:{chartTitle:bv(a).chartTitle,chartData:l},hideLegend:!1===(null==a?void 0:a.showlegend),width:c,height:f,innerRadius:p,hideLabels:h,showLabelsInPercent:!s.textinfo||"percent"===s.textinfo,styles:g}}(s,g,y),{legendProps:A,componentRef:b,calloutProps:{layerProps:{eventBubblingEnabled:!0}}}));case"bar":return"h"===l[0].orientation?u.createElement(nv,(0,o.Cl)({},function(t,n,i){var e,r,o,u,a,s,l,c,f=t.data,h=t.layout,d=f.map((function(t,e){return t.y.map((function(e,r){var o=Cv(e,n,i);return{x:t.x[r],y:e,legend:e,color:o}}))})).flat(),v="number"==typeof h.height?h.height:450,p=v-("number"==typeof(null===(e=h.margin)||void 0===e?void 0:e.l)?null===(r=h.margin)||void 0===r?void 0:r.l:0)-("number"==typeof(null===(o=h.margin)||void 0===o?void 0:o.pad)?null===(u=h.margin)||void 0===u?void 0:u.pad:0),g=f[0].y.length,m=p/(g*(1+1/(1+.01*g))),y=bv(h);return{data:d,chartTitle:y.chartTitle,xAxisTitle:y.xAxisTitle,yAxisTitle:y.yAxisTitle,secondaryYAxistitle:"string"==typeof(null===(a=null==h?void 0:h.yaxis2)||void 0===a?void 0:a.title)?null===(s=null==h?void 0:h.yaxis2)||void 0===s?void 0:s.title:(null===(c=null===(l=null==h?void 0:h.yaxis2)||void 0===l?void 0:l.title)||void 0===c?void 0:c.text)||"",barHeight:m,showYAxisLables:!0,styles:{root:{height:v,width:"number"==typeof h.width?h.width:600}}}}(s,g,y),{legendProps:A,componentRef:b,calloutProps:{layerProps:{eventBubblingEnabled:!0}}})):["group","overlay"].includes(null===(e=null==s?void 0:s.layout)||void 0===e?void 0:e.barmode)?u.createElement(Gh,(0,o.Cl)({},function(t,n,i){var e=t.data,r=t.layout,o={};e.forEach((function(t,e){var r;null===(r=t.x)||void 0===r||r.forEach((function(r,u){var a;if(o[r]||(o[r]={name:r.toString(),series:[]}),"bar"===t.type){var s=t.name||"Series ".concat(e+1),l=Cv(s,n,i);o[r].series.push({key:s,data:null===(a=t.y)||void 0===a?void 0:a[u],xAxisCalloutData:r,color:l,legend:s})}}))}));var u=bv(r),a=u.chartTitle,s=u.xAxisTitle,l=u.yAxisTitle;return{data:Object.values(o),barwidth:"auto",chartTitle:a,xAxisTitle:s,yAxisTitle:l,mode:"plotly"}}(s,g,y),{legendProps:A,componentRef:b,calloutProps:{layerProps:{eventBubblingEnabled:!0}}})):u.createElement(jh,(0,o.Cl)({},wv(s,g,y),{legendProps:A,componentRef:b,calloutProps:{layerProps:{eventBubblingEnabled:!0}}}));case"scatter":var L=l.some((function(t){return"tonexty"===t.fill||"tozeroy"===t.fill})),V=function(t){return L?u.createElement(bh,(0,o.Cl)({},t,{legendProps:(0,o.Cl)((0,o.Cl)({},k),{canSelectMultipleLegends:!0,selectedLegends:C})})):u.createElement(ih,(0,o.Cl)({},t,{legendProps:{onChange:M,canSelectMultipleLegends:!0,selectedLegends:C}}))};if(d||v)return V((0,o.Cl)((0,o.Cl)({},kv({data:l,layout:c},0,g,y)),{legendProps:k,componentRef:b,calloutProps:{layerProps:{eventBubblingEnabled:!0}}}));if(p){var D=l.map((function(t){return(0,o.Cl)((0,o.Cl)({},t),{x:xv(t.x)})}));return V((0,o.Cl)((0,o.Cl)({},kv({data:D,layout:c},0,g,y)),{legendProps:k,componentRef:b,calloutProps:{layerProps:{eventBubblingEnabled:!0}}}))}return u.createElement(jh,(0,o.Cl)({},wv(s,g,y),{legendProps:A,componentRef:b,calloutProps:{layerProps:{eventBubblingEnabled:!0}}}));case"heatmap":return u.createElement(Kh,(0,o.Cl)({},function(t){var n,i=t.data,e=t.layout,r=i[0],o=[],u=Number.POSITIVE_INFINITY,a=Number.NEGATIVE_INFINITY;null===(n=r.x)||void 0===n||n.forEach((function(t,n){var i;null===(i=r.y)||void 0===i||i.forEach((function(i,s){var l,c,f,h,d=null===(c=null===(l=r.z)||void 0===l?void 0:l[s])||void 0===c?void 0:c[n];o.push({x:"date"===(null===(f=e.xaxis)||void 0===f?void 0:f.type)?new Date(t):t,y:"date"===(null===(h=e.yaxis)||void 0===h?void 0:h.type)?new Date(i):i,value:d,rectText:d}),u=Math.min(u,d),a=Math.max(a,d)}))}));var s={legend:"string"==typeof r.name?r.name:"",data:o,value:0},l=r.colorscale?r.colorscale.map((function(t){return t[0]*(a-u)+u})):[],c=r.colorscale?r.colorscale.map((function(t){return t[1]})):[],f=bv(e);return{data:[s],domainValuesForColorScale:l,rangeValuesForColorScale:c,hideLegend:!0,showYAxisLables:!0,chartTitle:f.chartTitle,xAxisTitle:f.xAxisTitle,yAxisTitle:f.yAxisTitle,sortOrder:"none"}}(s),{componentRef:b,calloutProps:{layerProps:{eventBubblingEnabled:!0}}}));case"sankey":return u.createElement(Dd,(0,o.Cl)({},function(t,n,i){var e,r,u=t.data,a=t.layout,s=u[0],l=s.link,c=s.node,f=l.value.map((function(t,n){return{value:t,source:l.source[n],target:l.target[n]}})).filter((function(t){return t.source>=0&&t.target>=0&&t.source!==t.target})),h={nodes:c.label.map((function(t,e){return{nodeId:e,name:t,color:Cv(t,n,i)}})),links:f.map((function(t,n){return(0,o.Cl)({},t)}))},d="number"==typeof(null==a?void 0:a.width)?null==a?void 0:a.width:440,v="number"==typeof(null==a?void 0:a.height)?null==a?void 0:a.height:220,p={root:(0,o.Cl)({},"number"==typeof(null===(e=a.font)||void 0===e?void 0:e.size)?{fontSize:null===(r=a.font)||void 0===r?void 0:r.size}:{})},g=d+v;return{data:{chartTitle:bv(a).chartTitle,SankeyChartData:h},width:d,height:v,styles:p,shouldResize:g,enableReflow:!0}}(s,g,y),{componentRef:b,calloutProps:{layerProps:{eventBubblingEnabled:!0}}}));case"indicator":return(null===(a=null===(r=null==l?void 0:l[0])||void 0===r?void 0:r.mode)||void 0===a?void 0:a.includes("gauge"))?u.createElement(av,(0,o.Cl)({},function(t,n,i){var e,r,o,u,a,s,l,c,f,h,d,v,p,g,m,y,b,x,C,w,M,k,S,A,L,V,D,N,T,E=t.data,O=t.layout,P=E[0],B=(null===(r=null===(e=P.gauge)||void 0===e?void 0:e.steps)||void 0===r?void 0:r.length)?P.gauge.steps.map((function(t,e){var r,o,u=t.name||"Segment ".concat(e+1),a=Cv(u,n,i);return{legend:u,size:(null===(r=t.range)||void 0===r?void 0:r[1])-(null===(o=t.range)||void 0===o?void 0:o[0]),color:a}})):[{legend:"Current",size:null!==(o=P.value)&&void 0!==o?o:0-(null!==(s=null===(a=null===(u=P.gauge)||void 0===u?void 0:u.range)||void 0===a?void 0:a[0])&&void 0!==s?s:0),color:Cv("Current",n,i)},{legend:"Target",size:(null!==(f=null===(c=null===(l=P.gauge)||void 0===l?void 0:l.range)||void 0===c?void 0:c[1])&&void 0!==f?f:100)-(null!==(h=P.value)&&void 0!==h?h:0),color:ff.disabled}];if("number"==typeof(null===(d=P.delta)||void 0===d?void 0:d.reference)){var F=P.value-P.delta.reference;F>=0?(N="▲ ".concat(F),T=Cv((null===(v=P.delta.increasing)||void 0===v?void 0:v.color)||"",n,i)):(N="▼ ".concat(Math.abs(F)),T=Cv((null===(p=P.delta.decreasing)||void 0===p?void 0:p.color)||"",n,i))}var _={sublabel:{fill:T}},H=bv(O).chartTitle;return{segments:B,chartValue:"number"==typeof P.value?P.value:0,chartTitle:H,sublabel:N,minValue:"number"==typeof(null===(y=null===(m=null===(g=P.gauge)||void 0===g?void 0:g.axis)||void 0===m?void 0:m.range)||void 0===y?void 0:y[0])?null===(C=null===(x=null===(b=P.gauge)||void 0===b?void 0:b.axis)||void 0===x?void 0:x.range)||void 0===C?void 0:C[0]:void 0,maxValue:"number"==typeof(null===(k=null===(M=null===(w=P.gauge)||void 0===w?void 0:w.axis)||void 0===M?void 0:M.range)||void 0===k?void 0:k[1])?null===(L=null===(A=null===(S=P.gauge)||void 0===S?void 0:S.axis)||void 0===A?void 0:A.range)||void 0===L?void 0:L[1]:void 0,chartValueFormat:function(){return P.value},width:"number"==typeof(null==O?void 0:O.width)?null==O?void 0:O.width:440,height:"number"==typeof(null==O?void 0:O.height)?null==O?void 0:O.height:220,styles:_,variant:(null===(D=null===(V=P.gauge)||void 0===V?void 0:V.steps)||void 0===D?void 0:D.length)?Ud.MultipleSegments:Ud.SingleSegment}}(s,g,y),{legendProps:A,componentRef:b,calloutProps:{layerProps:{eventBubblingEnabled:!0}}})):u.createElement("div",null,"Unsupported Schema");case"histogram":return u.createElement(Ih,(0,o.Cl)({},Mv(s,g,y),{legendProps:A,componentRef:b,calloutProps:{layerProps:{eventBubblingEnabled:!0}}}));default:throw new Error("Unsupported chart schema")}}));Tv.displayName="DeclarativeChart",(0,i(887).v)("@fluentui/react-charting","0.0.0"),FluentUIReactCharting=e}();
1
+ var FluentUIReactCharting;!function(){"use strict";var t={357:function(t,n,i){i.r(n),i.d(n,{ChartHoverCard:function(){return f}});var e=i(566),r=i(823),o=i(594),u=i(873),a=i(607),s=(0,u.Z)(),l=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return(0,r.C6)(n,t),n.prototype.render=function(){var t=this.props,n=t.color,i=t.Legend,e=t.XValue,r=t.YValue,u=t.styles,l=t.theme,c=t.ratio,f=t.descriptionMessage,h=t.culture;return this._classNames=s(u,{theme:l,color:n,XValue:e,isRatioPresent:!!c}),o.createElement("div",{className:this._classNames.calloutContentRoot},o.createElement("div",{className:this._classNames.calloutDateTimeContainer},o.createElement("div",{className:this._classNames.calloutContentX},e," ")),o.createElement("div",{className:this._classNames.calloutInfoContainer},o.createElement("div",{className:this._classNames.calloutBlockContainer},o.createElement("div",{className:this._classNames.calloutlegendText},(0,a.U)(i,h)),o.createElement("div",{className:this._classNames.calloutContentY},(0,a.U)(r,h))),!!c&&o.createElement("div",{className:this._classNames.ratio},o.createElement(o.Fragment,null,o.createElement("span",{className:this._classNames.numerator},(0,a.U)(c[0],h)),"/",o.createElement("span",{className:this._classNames.denominator},(0,a.U)(c[1],h))))),!!f&&o.createElement("div",{className:this._classNames.descriptionMessage},f))},n}(o.Component),c=i(263),f=(0,e.I)(l,c.J)},263:function(t,n,i){i.d(n,{J:function(){return r}});var e=i(419),r=function(t){var n,i,r,o=t.color,u=t.XValue,a=t.theme,s=t.isRatioPresent,l=void 0!==s&&s;return{calloutContentRoot:[{display:"grid",overflow:"hidden",padding:"11px 16px 10px 16px",backgroundColor:a.semanticColors.bodyBackground,backgroundBlendMode:"normal, luminosity"}],calloutDateTimeContainer:{display:"flex",flexDirection:"row",justifyContent:"space-between"},calloutContentX:[a.fonts.small,{lineHeight:"16px",opacity:"0.85",color:a.semanticColors.bodySubtext}],calloutBlockContainer:[a.fonts.xxLarge,{marginTop:u?"13px":"unset",paddingLeft:"8px",lineHeight:"22px",color:a.semanticColors.bodyText,borderLeft:"4px solid ".concat(o),selectors:(n={},n[e.up]={forcedColorAdjust:"none"},n)}],calloutlegendText:[a.fonts.small,{lineHeight:"16px",color:a.semanticColors.bodyText,selectors:(i={},i[e.NK]={color:"rgb(255, 255, 255)"},i)}],calloutContentY:[a.fonts.xxLarge,{color:o||a.semanticColors.bodyText,fontWeight:"bold",lineHeight:"36px",selectors:(r={},r[e.NK]={color:"rgb(255, 255, 255)"},r)}],calloutInfoContainer:[l&&{display:"flex",alignItems:"flex-end"}],ratio:[a.fonts.small,{marginLeft:"6px",color:a.semanticColors.bodyText}],numerator:{fontWeight:e.BO.bold},denominator:{fontWeight:e.BO.semibold},descriptionMessage:[a.fonts.small,{color:a.semanticColors.bodyText,marginTop:"10px",paddingTop:"10px",borderTop:"1px solid ".concat(a.semanticColors.menuDivider)}]}}},607:function(t,n,i){i.d(n,{U:function(){return e}});var e=function(t,n){return t?(n=n||void 0,"number"==typeof t?t.toLocaleString(n):"string"!=typeof t||window.isNaN(Number(t))?t instanceof Date?t.toLocaleDateString(n):t:Number(t).toLocaleString(n)):t}},800:function(t,n,i){i.d(n,{DU:function(){return o},Iy:function(){return a}});var e,r=i(638);function o(t){e!==t&&(e=t)}function u(){return void 0===e&&(e="undefined"!=typeof document&&!!document.documentElement&&"rtl"===document.documentElement.getAttribute("dir")),e}function a(){return{rtl:u(),shadowConfig:r.ou}}e=u()},40:function(t,n,i){i.d(n,{nr:function(){return l}});var e,r=i(823),o=i(638),u="__stylesheet__",a="undefined"!=typeof navigator&&/rv:11.0/.test(navigator.userAgent),s={};try{s=window||{}}catch(t){}var l=function(){function t(t,n){var i,e,o,u,a,s;this._rules=[],this._preservedRules=[],this._counter=0,this._keyToClassName={},this._onInsertRuleCallbacks=[],this._onResetCallbacks=[],this._classNameToArgs={},this._config=(0,r.Cl)({injectionMode:"undefined"==typeof document?0:1,defaultPrefix:"css",namespace:void 0,cspSettings:void 0},t),this._classNameToArgs=null!==(i=null==n?void 0:n.classNameToArgs)&&void 0!==i?i:this._classNameToArgs,this._counter=null!==(e=null==n?void 0:n.counter)&&void 0!==e?e:this._counter,this._keyToClassName=null!==(u=null!==(o=this._config.classNameCache)&&void 0!==o?o:null==n?void 0:n.keyToClassName)&&void 0!==u?u:this._keyToClassName,this._preservedRules=null!==(a=null==n?void 0:n.preservedRules)&&void 0!==a?a:this._preservedRules,this._rules=null!==(s=null==n?void 0:n.rules)&&void 0!==s?s:this._rules}return t.getInstance=function(n){if(e=s[u],s[o.Se])return s[o.Se].getInstance(n);if(!e||e._lastStyleElement&&e._lastStyleElement.ownerDocument!==document){var i=(null==s?void 0:s.FabricConfig)||{},r=new t(i.mergeStyles,i.serializedStylesheet);e=r,s[u]=r}return e},t.prototype.serialize=function(){return JSON.stringify({classNameToArgs:this._classNameToArgs,counter:this._counter,keyToClassName:this._keyToClassName,preservedRules:this._preservedRules,rules:this._rules})},t.prototype.setConfig=function(t){this._config=(0,r.Cl)((0,r.Cl)({},this._config),t)},t.prototype.onReset=function(t){var n=this;return this._onResetCallbacks.push(t),function(){n._onResetCallbacks=n._onResetCallbacks.filter((function(n){return n!==t}))}},t.prototype.onInsertRule=function(t){var n=this;return this._onInsertRuleCallbacks.push(t),function(){n._onInsertRuleCallbacks=n._onInsertRuleCallbacks.filter((function(n){return n!==t}))}},t.prototype.getClassName=function(t){var n=this._config.namespace,i=t||this._config.defaultPrefix;return"".concat(n?n+"-":"").concat(i,"-").concat(this._counter++)},t.prototype.cacheClassName=function(t,n,i,e){this._keyToClassName[this._getCacheKey(n)]=t,this._classNameToArgs[t]={args:i,rules:e}},t.prototype.classNameFromKey=function(t){return this._keyToClassName[this._getCacheKey(t)]},t.prototype.getClassNameCache=function(){return this._keyToClassName},t.prototype.argsFromClassName=function(t){var n=this._classNameToArgs[t];return n&&n.args},t.prototype.insertedRulesFromClassName=function(t){var n=this._classNameToArgs[t];return n&&n.rules},t.prototype.insertRule=function(t,n,i){void 0===i&&(i=o.P6);var e=this._config.injectionMode,r=0!==e?this._getStyleElement():void 0;if(n&&this._preservedRules.push(t),r)switch(e){case 1:this._insertRuleIntoSheet(r.sheet,t);break;case 2:r.appendChild(document.createTextNode(t))}else this._rules.push(t);this._config.onInsertRule&&this._config.onInsertRule(t),this._onInsertRuleCallbacks.forEach((function(n){return n({key:i,sheet:r?r.sheet:void 0,rule:t})}))},t.prototype.getRules=function(t){return(t?this._preservedRules.join(""):"")+this._rules.join("")},t.prototype.reset=function(){this._rules=[],this._counter=0,this._classNameToArgs={},this._keyToClassName={},this._onResetCallbacks.forEach((function(t){return t()}))},t.prototype.resetKeys=function(){this._keyToClassName={}},t.prototype._createStyleElement=function(){var t,n=(null===(t=this._config.window)||void 0===t?void 0:t.document)||document,i=n.head,e=n.createElement("style"),r=null;e.setAttribute("data-merge-styles","true");var o=this._config.cspSettings;if(o&&o.nonce&&e.setAttribute("nonce",o.nonce),this._lastStyleElement)r=this._lastStyleElement.nextElementSibling;else{var u=this._findPlaceholderStyleTag();r=u?u.nextElementSibling:i.childNodes[0]}return i.insertBefore(e,i.contains(r)?r:null),this._lastStyleElement=e,e},t.prototype._insertRuleIntoSheet=function(t,n){if(!t)return!1;try{return t.insertRule(n,t.cssRules.length),!0}catch(t){}return!1},t.prototype._getCacheKey=function(t){return t},t.prototype._getStyleElement=function(){var t=this;return this._styleElement||(this._styleElement=this._createStyleElement(),a||(this._config.window||window).requestAnimationFrame((function(){t._styleElement=void 0}))),this._styleElement},t.prototype._findPlaceholderStyleTag=function(){var t=document.head;return t?t.querySelector("style[data-merge-styles]"):null},t}()},506:function(t,n,i){i.d(n,{T:function(){return o}});var e=i(823),r=i(638);function o(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(t&&1===t.length&&t[0]&&!t[0].subComponentStyles&&!(0,r.db)(t[0]))return t[0];for(var i={},u={},a=0,s=t;a<s.length;a++){var l=s[a];if(l&&!(0,r.db)(l))for(var c in l)if(l.hasOwnProperty(c)){if("subComponentStyles"===c&&void 0!==l.subComponentStyles){var f=l.subComponentStyles;for(var h in f)f.hasOwnProperty(h)&&(u.hasOwnProperty(h)?u[h].push(f[h]):u[h]=[f[h]]);continue}var d=i[c],v=l[c];i[c]=void 0===d?v:(0,e.fX)((0,e.fX)([],Array.isArray(d)?d:[d],!0),Array.isArray(v)?v:[v],!0)}}if(Object.keys(u).length>0){i.subComponentStyles={};var p=i.subComponentStyles,g=function(t){if(u.hasOwnProperty(t)){var n=u[t];p[t]=function(t){return o.apply(void 0,n.map((function(n){return"function"==typeof n?n(t):n})))}}};for(var h in u)g(h)}return i}},962:function(t,n,i){i.d(n,{h:function(){return r}});var e=i(638);function r(t){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var r=[],o=[],u=t;return function t(n){for(var i=0,a=n;i<a.length;i++){var s=a[i];if(s&&!(0,e.db)(s))if("string"==typeof s)if(s.indexOf(" ")>=0)t(s.split(" "));else{var l=u.argsFromClassName(s);l?t(l):-1===r.indexOf(s)&&r.push(s)}else Array.isArray(s)?t(s):"object"==typeof s&&o.push(s)}}(n),{classes:r,objects:o}}},916:function(t,n,i){i.d(n,{Z:function(){return s}});var e=i(962),r=i(638),o=i(800),u=i(40),a=i(289);function s(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return function(t,n){var i=t instanceof Array?t:[t],o=n||{};(0,r.db)(i[0])&&(o.shadowConfig=i[0]),o.stylesheet=u.nr.getInstance(o.shadowConfig);var s=(0,e.h)(o.stylesheet,i),l=s.classes,c=s.objects;return c.length&&l.push((0,a.kG)(o,c)),l.join(" ")}(t,(0,o.Iy)())}},638:function(t,n,i){i.d(n,{P6:function(){return e},Se:function(){return r},db:function(){return u},ou:function(){return o}});var e="__global__",r="__shadow_dom_stylesheet__",o={stylesheetKey:e,inShadow:!1,window:void 0,__isShadowConfig__:!0},u=function(t){return!(!t||!function(t){return null!==t&&"object"==typeof t&&!Array.isArray(t)}(t))&&!0===t.__isShadowConfig__}},289:function(t,n,i){i.d(n,{Ae:function(){return L},bz:function(){return S},kG:function(){return V},GJ:function(){return A}});var e,r=i(823),o=i(40),u={},a={"user-select":1};function s(t,n){var i=function(){var t;if(!e){var n="undefined"!=typeof document?document:void 0,i="undefined"!=typeof navigator?navigator:void 0,r=null===(t=null==i?void 0:i.userAgent)||void 0===t?void 0:t.toLowerCase();e=n?{isWebkit:!(!n||!("WebkitAppearance"in n.documentElement.style)),isMoz:!!(r&&r.indexOf("firefox")>-1),isOpera:!!(r&&r.indexOf("opera")>-1),isMs:!(!i||!/rv:11.0/i.test(i.userAgent)&&!/Edge\/\d./i.test(navigator.userAgent))}:{isWebkit:!0,isMoz:!0,isOpera:!0,isMs:!0}}return e}(),r=t[n];if(a[r]){var o=t[n+1];a[r]&&(i.isWebkit&&t.push("-webkit-"+r,o),i.isMoz&&t.push("-moz-"+r,o),i.isMs&&t.push("-ms-"+r,o),i.isOpera&&t.push("-o-"+r,o))}}var l,c=["column-count","font-weight","flex","flex-grow","flex-shrink","fill-opacity","opacity","order","z-index","zoom"];function f(t,n){var i=t[n],e=t[n+1];if("number"==typeof e){var r=c.indexOf(i)>-1,o=i.indexOf("--")>-1,u=r||o?"":"px";t[n+1]="".concat(e).concat(u)}}var h="left",d="right",v="@noflip",p=((l={})[h]=d,l[d]=h,l),g={"w-resize":"e-resize","sw-resize":"se-resize","nw-resize":"ne-resize"};function m(t,n,i){if(t.rtl){var e=n[i];if(!e)return;var r=n[i+1];if("string"==typeof r&&r.indexOf(v)>=0)n[i+1]=r.replace(/\s*(?:\/\*\s*)?\@noflip\b(?:\s*\*\/)?\s*?/g,"");else if(e.indexOf(h)>=0)n[i]=e.replace(h,d);else if(e.indexOf(d)>=0)n[i]=e.replace(d,h);else if(String(r).indexOf(h)>=0)n[i+1]=r.replace(h,d);else if(String(r).indexOf(d)>=0)n[i+1]=r.replace(d,h);else if(p[e])n[i]=p[e];else if(g[r])n[i+1]=g[r];else switch(e){case"margin":case"padding":n[i+1]=function(t){if("string"==typeof t){var n=t.split(" ");if(4===n.length)return"".concat(n[0]," ").concat(n[3]," ").concat(n[2]," ").concat(n[1])}return t}(r);break;case"box-shadow":n[i+1]=function(t,n){var i=t.split(" "),e=parseInt(i[0],10);return i[0]=i[0].replace(String(e),String(-1*e)),i.join(" ")}(r)}}}var y="displayName",b=/\:global\((.+?)\)/g;function x(t,n){return t.indexOf(":global(")>=0?t.replace(b,"$1"):0===t.indexOf(":host(")?t:0===t.indexOf(":")?n+t:t.indexOf("&")<0?n+" "+t:t}function C(t,n,i,e,r){void 0===n&&(n={__order:[]}),0===i.indexOf("@")?w([e],n,i=i+"{"+t,r):i.indexOf(",")>-1?function(t){if(!b.test(t))return t;for(var n=[],i=/\:global\((.+?)\)/g,e=null;e=i.exec(t);)e[1].indexOf(",")>-1&&n.push([e.index,e.index+e[0].length,e[1].split(",").map((function(t){return":global(".concat(t.trim(),")")})).join(", ")]);return n.reverse().reduce((function(t,n){var i=n[0],e=n[1],r=n[2];return t.slice(0,i)+r+t.slice(e)}),t)}(i).split(",").map((function(t){return t.trim()})).forEach((function(i){return w([e],n,x(i,t),r)})):w([e],n,x(i,t),r)}function w(t,n,i,e){void 0===n&&(n={__order:[]}),void 0===i&&(i="&");var r,o=n[i];o||(o={},n[i]=o,n.__order.push(i));for(var u=0,a=t;u<a.length;u++){var s=a[u];if("string"==typeof s){var l=e.argsFromClassName(s);l&&w(l,n,i,e)}else if(Array.isArray(s))w(s,n,i,e);else for(var c in s)if(s.hasOwnProperty(c)){var f=s[c];if("selectors"===c){var h=s.selectors;for(var d in h)h.hasOwnProperty(d)&&C(i,n,d,h[d],e)}else"object"==typeof f||(r=c).indexOf(":global(")>=0||0===r.indexOf(":")?null!=f&&C(i,n,c,f,e):void 0!==f&&("margin"===c||"padding"===c?M(o,c,f):o[c]=f)}}return n}function M(t,n,i){var e="string"==typeof i?function(t){for(var n=[],i=0,e=0,r=0;r<t.length;r++)switch(t[r]){case"(":e++;break;case")":e&&e--;break;case"\t":case" ":e||(r>i&&n.push(t.substring(i,r)),i=r+1)}return i<t.length&&n.push(t.substring(i)),n}(i):[i];0===e.length&&e.push(i),"!important"===e[e.length-1]&&(e=e.slice(0,-1).map((function(t){return t+" !important"}))),t[n+"Top"]=e[0],t[n+"Right"]=e[1]||e[0],t[n+"Bottom"]=e[2]||e[0],t[n+"Left"]=e[3]||e[1]||e[0]}function k(t,n){return n<=0?"":1===n?t:t+k(t,n-1)}function S(t,n){if(!n)return"";var i,e,r,o=[];for(var a in n)n.hasOwnProperty(a)&&a!==y&&void 0!==n[a]&&o.push(a,n[a]);for(var l=0;l<o.length;l+=2)r=void 0,"-"!==(r=(i=o)[e=l]).charAt(0)&&(i[e]=u[r]=u[r]||r.replace(/([A-Z])/g,"-$1").toLowerCase()),f(o,l),m(t,o,l),s(o,l);for(l=1;l<o.length;l+=4)o.splice(l,1,":",o[l],";");return o.join("")}function A(t){for(var n,i=[],e=1;e<arguments.length;e++)i[e-1]=arguments[e];var r=null!==(n=t.stylesheet)&&void 0!==n?n:o.nr.getInstance(t.shadowConfig),u=w(i,void 0,void 0,r),a=function(t,n){for(var i=[t.rtl?"rtl":"ltr"],e=!1,r=0,o=n.__order;r<o.length;r++){var u=o[r];i.push(u);var a=n[u];for(var s in a)a.hasOwnProperty(s)&&void 0!==a[s]&&(e=!0,i.push(s,a[s]))}return e?i.join(""):void 0}(t,u);if(a){var s={className:r.classNameFromKey(a),key:a,args:i};if(!s.className){s.className=r.getClassName(function(t){var n=t&&t["&"];return n?n.displayName:void 0}(u));for(var l=[],c=0,f=u.__order;c<f.length;c++){var h=f[c];l.push(h,S(t,u[h]))}s.rulesToInsert=l}return s}}function L(t,n,i,e){void 0===n&&(n=1);var r=null!=e?e:o.nr.getInstance(i),u=t.className,a=t.key,s=t.args,l=t.rulesToInsert;if(l){for(var c=0;c<l.length;c+=2){var f=l[c+1];if(f){var h=l[c];h=h.replace(/&/g,k(".".concat(t.className),n));var d="".concat(h,"{").concat(f,"}").concat(0===h.indexOf("@")?"}":"");r.insertRule(d)}}r.cacheClassName(u,a,s,l)}}function V(t){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var e=A.apply(void 0,(0,r.fX)([t],n,!1));return e?(L(e,t.specificityMultiplier,t.shadowConfig,t.stylesheet),e.className):""}},887:function(t,n,i){i.d(n,{v:function(){return o}});var e={},r=void 0;try{r=window}catch(t){}function o(t,n){if(void 0!==r){var i=r.__packages__=r.__packages__||{};i[t]&&e[t]||(e[t]=n,(i[t]=i[t]||[]).push(n))}}o("@fluentui/set-version","6.0.0")},419:function(t,n,i){i.d(n,{lw:function(){return K},bp:function(){return kt.b},s:function(){return St.s},BO:function(){return St.BO},up:function(){return it},NK:function(){return et},nA:function(){return nt},QN:function(){return ut},gm:function(){return ot},Km:function(){return tt},O4:function(){return Mt},dX:function(){return J}});var e=i(916),r=i(800),o=i(40),u=i(289);function a(t){var n=o.nr.getInstance(),i=[];for(var e in t)t.hasOwnProperty(e)&&i.push(e,"{",(0,u.bz)((0,r.Iy)(),t[e]),"}");var a=i.join(""),s=n.classNameFromKey(a);if(s)return s;var l=n.getClassName();return n.insertRule("@keyframes ".concat(l,"{").concat(a,"}"),!0),n.cacheClassName(l,a,[],["keyframes",a]),l}var s="cubic-bezier(.1,.9,.2,1)",l="cubic-bezier(.1,.25,.75,.9)",c="0.167s",f="0.267s",h="0.367s",d="0.467s",v=a({from:{opacity:0},to:{opacity:1}}),p=a({from:{opacity:1},to:{opacity:0,visibility:"hidden"}}),g=G(-10),m=G(-20),y=G(-40),b=G(-400),x=G(10),C=G(20),w=G(40),M=G(400),k=q(10),S=q(20),A=q(-10),L=q(-20),V=U(10),D=U(20),N=U(40),T=U(400),E=U(-10),O=U(-20),P=U(-40),B=U(-400),F=Z(-10),_=Z(-20),H=Z(10),R=Z(20),I=a({from:{transform:"scale3d(.98,.98,1)"},to:{transform:"scale3d(1,1,1)"}}),W=a({from:{transform:"scale3d(1,1,1)"},to:{transform:"scale3d(.98,.98,1)"}}),z=a({from:{transform:"scale3d(1.03,1.03,1)"},to:{transform:"scale3d(1,1,1)"}}),j=a({from:{transform:"scale3d(1,1,1)"},to:{transform:"scale3d(1.03,1.03,1)"}}),Y=a({from:{transform:"rotateZ(0deg)"},to:{transform:"rotateZ(90deg)"}}),$=a({from:{transform:"rotateZ(0deg)"},to:{transform:"rotateZ(-90deg)"}});function X(t,n,i){return{animationName:t,animationDuration:n,animationTimingFunction:i,animationFillMode:"both"}}function G(t){return a({from:{transform:"translate3d(".concat(t,"px,0,0)"),pointerEvents:"none"},to:{transform:"translate3d(0,0,0)",pointerEvents:"auto"}})}function q(t){return a({from:{transform:"translate3d(0,".concat(t,"px,0)"),pointerEvents:"none"},to:{transform:"translate3d(0,0,0)",pointerEvents:"auto"}})}function U(t){return a({from:{transform:"translate3d(0,0,0)"},to:{transform:"translate3d(".concat(t,"px,0,0)")}})}function Z(t){return a({from:{transform:"translate3d(0,0,0)"},to:{transform:"translate3d(0,".concat(t,"px,0)")}})}var K=function(t){var n={},i=function(i){var r;t.hasOwnProperty(i)&&Object.defineProperty(n,i,{get:function(){return void 0===r&&(r=(0,e.Z)(t[i]).toString()),r},enumerable:!0,configurable:!0})};for(var r in t)i(r);return n}({slideRightIn10:X("".concat(v,",").concat(g),h,s),slideRightIn20:X("".concat(v,",").concat(m),h,s),slideRightIn40:X("".concat(v,",").concat(y),h,s),slideRightIn400:X("".concat(v,",").concat(b),h,s),slideLeftIn10:X("".concat(v,",").concat(x),h,s),slideLeftIn20:X("".concat(v,",").concat(C),h,s),slideLeftIn40:X("".concat(v,",").concat(w),h,s),slideLeftIn400:X("".concat(v,",").concat(M),h,s),slideUpIn10:X("".concat(v,",").concat(k),h,s),slideUpIn20:X("".concat(v,",").concat(S),h,s),slideDownIn10:X("".concat(v,",").concat(A),h,s),slideDownIn20:X("".concat(v,",").concat(L),h,s),slideRightOut10:X("".concat(p,",").concat(V),h,s),slideRightOut20:X("".concat(p,",").concat(D),h,s),slideRightOut40:X("".concat(p,",").concat(N),h,s),slideRightOut400:X("".concat(p,",").concat(T),h,s),slideLeftOut10:X("".concat(p,",").concat(E),h,s),slideLeftOut20:X("".concat(p,",").concat(O),h,s),slideLeftOut40:X("".concat(p,",").concat(P),h,s),slideLeftOut400:X("".concat(p,",").concat(B),h,s),slideUpOut10:X("".concat(p,",").concat(F),h,s),slideUpOut20:X("".concat(p,",").concat(_),h,s),slideDownOut10:X("".concat(p,",").concat(H),h,s),slideDownOut20:X("".concat(p,",").concat(R),h,s),scaleUpIn100:X("".concat(v,",").concat(I),h,s),scaleDownIn100:X("".concat(v,",").concat(z),h,s),scaleUpOut103:X("".concat(p,",").concat(j),c,l),scaleDownOut98:X("".concat(p,",").concat(W),c,l),fadeIn100:X(v,c,l),fadeIn200:X(v,f,l),fadeIn400:X(v,h,l),fadeIn500:X(v,d,l),fadeOut100:X(p,c,l),fadeOut200:X(p,f,l),fadeOut400:X(p,h,l),fadeOut500:X(p,d,l),rotate90deg:X(Y,"0.1s",l),rotateN90deg:X($,"0.1s",l)}),J={position:"absolute",width:1,height:1,margin:-1,padding:0,border:0,overflow:"hidden",whiteSpace:"nowrap"},Q=(0,i(753).J9)((function(t,n){var i=o.nr.getInstance();return n?Object.keys(t).reduce((function(n,e){return n[e]=i.getClassName(t[e]),n}),{}):t}));function tt(t,n,i){return Q(t,void 0!==i?i:n.disableGlobalClassNames)}var nt,it="@media screen and (-ms-high-contrast: active), screen and (forced-colors: active)",et="@media screen and (-ms-high-contrast: white-on-black), screen and (forced-colors: active) and (prefers-color-scheme: dark)",rt=i(517);function ot(t,n,i,e,r,o,u,a){return function(t,n){var i,e;void 0===n&&(n={});var r=n.borderRadius,o=n.inset,u=void 0===o?0:o,a=n.width,s=void 0===a?1:a,l=n.position,c=void 0===l?"relative":l,f=n.highContrastStyle,h=n.borderColor,d=void 0===h?t.palette.white:h,v=n.outlineColor,p=void 0===v?t.palette.neutralSecondary:v,g=n.isFocusedOnly,m=void 0===g||g,y=n.pointerEvents;return{outline:"transparent",position:c,selectors:(i={"::-moz-focus-inner":{border:"0"}},i[".".concat(rt.Y2," &").concat(m?":focus":"",":after, :host(.").concat(rt.Y2,") &").concat(m?":focus":"",":after")]={content:'""',position:"absolute",pointerEvents:y,left:u+1,top:u+1,bottom:u+1,right:u+1,border:"".concat(s,"px solid ").concat(d),outline:"".concat(s,"px solid ").concat(p),zIndex:nt.FocusStyle,borderRadius:r,selectors:(e={},e[it]=f,e)},i)}}(t,"number"!=typeof n&&n?n:{inset:n,position:i,highContrastStyle:e,borderColor:r,outlineColor:o,isFocusedOnly:u,borderRadius:a})}function ut(){return{selectors:{"&::-moz-focus-inner":{border:0},"&":{outline:"transparent"}}}}!function(t){t.Nav=1,t.ScrollablePane=1,t.FocusStyle=1,t.Coachmark=1e3,t.Layer=1e6,t.KeytipLayer=1000001}(nt||(nt={}));var at,st=i(823),lt=i(338),ct=i(540),ft=function(){return ft=Object.assign||function(t){for(var n,i=1,e=arguments.length;i<e;i++)for(var r in n=arguments[i])Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);return t},ft.apply(this,arguments)},ht="undefined"==typeof window?i.g:window,dt=ht&&ht.CSPSettings&&ht.CSPSettings.nonce,vt=((at=ht.__themeState__||{theme:void 0,lastStyleElement:void 0,registeredStyles:[]}).runState||(at=ft({},at,{perf:{count:0,duration:0},runState:{flushTimer:0,mode:0,buffer:[]}})),at.registeredThemableStyles||(at=ft({},at,{registeredThemableStyles:[]})),ht.__themeState__=at,at);function pt(t){vt.theme=t,function(){if(vt.theme){for(var t=[],n=0,i=vt.registeredThemableStyles;n<i.length;n++){var e=i[n];t.push(e.themableStyle)}t.length>0&&(void 0===(o=1)&&(o=3),3!==o&&2!==o||(gt(vt.registeredStyles),vt.registeredStyles=[]),3!==o&&1!==o||(gt(vt.registeredThemableStyles),vt.registeredThemableStyles=[]),r=[].concat.apply([],t),vt.loadStyles?vt.loadStyles(mt(r).styleString,r):function(t){if("undefined"!=typeof document){var n=document.getElementsByTagName("head")[0],i=document.createElement("style"),e=mt(t),r=e.styleString,o=e.themable;i.setAttribute("data-load-themed-styles","true"),i.type="text/css",dt&&i.setAttribute("nonce",dt),i.appendChild(document.createTextNode(r)),vt.perf.count++,n.appendChild(i);var u=document.createEvent("HTMLEvents");u.initEvent("styleinsert",!0,!1),u.args={newStyle:i},document.dispatchEvent(u);var a={styleElement:i,themableStyle:t};o?vt.registeredThemableStyles.push(a):vt.registeredStyles.push(a)}}(r))}var r,o}()}function gt(t){t.forEach((function(t){var n=t&&t.styleElement;n&&n.parentElement&&n.parentElement.removeChild(n)}))}function mt(t){var n=vt.theme,i=!1;return{styleString:(t||[]).map((function(t){var e=t.theme;if(e){i=!0;var r=n?n[e]:void 0,o=t.defaultValue||"inherit";return n&&!r&&console&&!(e in n)&&"undefined"!=typeof DEBUG&&DEBUG&&console.warn('Theming value not provided for "'+e+'". Falling back to "'+o+'".'),r||o}return t.rawString})).join(""),themable:i}}var yt=i(143),bt=(0,yt.a)({}),xt=[],Ct="theme";function wt(){var t,n,i,e=(0,lt.z)();(null===(n=null==e?void 0:e.FabricConfig)||void 0===n?void 0:n.legacyTheme)?function(t,n){var i;void 0===n&&(n=!1),bt=(0,yt.a)(t,n),pt((0,st.Cl)((0,st.Cl)((0,st.Cl)((0,st.Cl)({},bt.palette),bt.semanticColors),bt.effects),function(t){for(var n={},i=0,e=Object.keys(t.fonts);i<e.length;i++)for(var r=e[i],o=t.fonts[r],u=0,a=Object.keys(o);u<a.length;u++){var s=a[u],l=r+s.charAt(0).toUpperCase()+s.slice(1),c=o[s];"fontSize"===s&&"number"==typeof c&&(c+="px"),n[l]=c}return n}(bt))),ct.X.applySettings(((i={})[Ct]=bt,i)),xt.forEach((function(t){try{t(bt)}catch(t){}}))}(e.FabricConfig.legacyTheme):ct.X.getSettings([Ct]).theme||((null===(i=null==e?void 0:e.FabricConfig)||void 0===i?void 0:i.theme)&&(bt=(0,yt.a)(e.FabricConfig.theme)),ct.X.applySettings(((t={})[Ct]=bt,t)))}function Mt(t){return void 0===t&&(t=!1),!0===t&&(bt=(0,yt.a)({},t)),bt}wt();var kt=i(302),St=i(41);(0,i(887).v)("@fluentui/style-utilities","8.11.7"),wt()},302:function(t,n,i){i.d(n,{b:function(){return e}});var e={themeDarker:"#004578",themeDark:"#005a9e",themeDarkAlt:"#106ebe",themePrimary:"#0078d4",themeSecondary:"#2b88d8",themeTertiary:"#71afe5",themeLight:"#c7e0f4",themeLighter:"#deecf9",themeLighterAlt:"#eff6fc",black:"#000000",blackTranslucent40:"rgba(0,0,0,.4)",neutralDark:"#201f1e",neutralPrimary:"#323130",neutralPrimaryAlt:"#3b3a39",neutralSecondary:"#605e5c",neutralSecondaryAlt:"#8a8886",neutralTertiary:"#a19f9d",neutralTertiaryAlt:"#c8c6c4",neutralQuaternary:"#d2d0ce",neutralQuaternaryAlt:"#e1dfdd",neutralLight:"#edebe9",neutralLighter:"#f3f2f1",neutralLighterAlt:"#faf9f8",accent:"#0078d4",white:"#ffffff",whiteTranslucent40:"rgba(255,255,255,.4)",yellowDark:"#d29200",yellow:"#ffb900",yellowLight:"#fff100",orange:"#d83b01",orangeLight:"#ea4300",orangeLighter:"#ff8c00",redDark:"#a4262c",red:"#e81123",magentaDark:"#5c005c",magenta:"#b4009e",magentaLight:"#e3008c",purpleDark:"#32145a",purple:"#5c2d91",purpleLight:"#b4a0ff",blueDark:"#002050",blueMid:"#00188f",blue:"#0078d4",blueLight:"#00bcf2",tealDark:"#004b50",teal:"#008272",tealLight:"#00b294",greenDark:"#004b1c",green:"#107c10",greenLight:"#bad80a"}},143:function(t,n,i){i.d(n,{a:function(){return D}});var e,r=i(302);!function(t){t.depth0="0 0 0 0 transparent",t.depth4="0 1.6px 3.6px 0 rgba(0, 0, 0, 0.132), 0 0.3px 0.9px 0 rgba(0, 0, 0, 0.108)",t.depth8="0 3.2px 7.2px 0 rgba(0, 0, 0, 0.132), 0 0.6px 1.8px 0 rgba(0, 0, 0, 0.108)",t.depth16="0 6.4px 14.4px 0 rgba(0, 0, 0, 0.132), 0 1.2px 3.6px 0 rgba(0, 0, 0, 0.108)",t.depth64="0 25.6px 57.6px 0 rgba(0, 0, 0, 0.22), 0 4.8px 14.4px 0 rgba(0, 0, 0, 0.18)"}(e||(e={}));var o={elevation4:e.depth4,elevation8:e.depth8,elevation16:e.depth16,elevation64:e.depth64,roundedCorner2:"2px",roundedCorner4:"4px",roundedCorner6:"6px"},u=i(800),a=i(40),s=i(289),l=i(41),c="'Segoe UI', '".concat(l.Dn.WestEuropean,"'"),f={ar:l.bi.Arabic,bg:l.bi.Cyrillic,cs:l.bi.EastEuropean,el:l.bi.Greek,et:l.bi.EastEuropean,he:l.bi.Hebrew,hi:l.bi.Hindi,hr:l.bi.EastEuropean,hu:l.bi.EastEuropean,ja:l.bi.Japanese,kk:l.bi.EastEuropean,ko:l.bi.Korean,lt:l.bi.EastEuropean,lv:l.bi.EastEuropean,pl:l.bi.EastEuropean,ru:l.bi.Cyrillic,sk:l.bi.EastEuropean,"sr-latn":l.bi.EastEuropean,th:l.bi.Thai,tr:l.bi.EastEuropean,uk:l.bi.Cyrillic,vi:l.bi.Vietnamese,"zh-hans":l.bi.ChineseSimplified,"zh-hant":l.bi.ChineseTraditional,hy:l.bi.Armenian,ka:l.bi.Georgian};function h(t,n,i){return{fontFamily:i,MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontSize:t,fontWeight:n}}var d,v,p,g=i(543),m=i(338),y=i(468),b="language",x=(v=function(t){for(var n in f)if(f.hasOwnProperty(n)&&t&&0===n.indexOf(t))return f[n];return c}(function(t){if(void 0===t&&(t="sessionStorage"),void 0===d){var n=(0,g.Y)(),i="localStorage"===t?function(t){var n=null;try{var i=(0,m.z)();n=i?i.localStorage.getItem(t):null}catch(t){}return n}(b):"sessionStorage"===t?y.G(b):void 0;i&&(d=i),void 0===d&&n&&(d=n.documentElement.getAttribute("lang")),void 0===d&&(d="en")}return d}()),p="".concat(v,", ").concat("'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif"),{tiny:h(l.s.mini,l.BO.regular,p),xSmall:h(l.s.xSmall,l.BO.regular,p),small:h(l.s.small,l.BO.regular,p),smallPlus:h(l.s.smallPlus,l.BO.regular,p),medium:h(l.s.medium,l.BO.regular,p),mediumPlus:h(l.s.mediumPlus,l.BO.regular,p),large:h(l.s.large,l.BO.regular,p),xLarge:h(l.s.xLarge,l.BO.semibold,p),xLargePlus:h(l.s.xLargePlus,l.BO.semibold,p),xxLarge:h(l.s.xxLarge,l.BO.semibold,p),xxLargePlus:h(l.s.xxLargePlus,l.BO.semibold,p),superLarge:h(l.s.superLarge,l.BO.semibold,p),mega:h(l.s.mega,l.BO.semibold,p)});function C(t,n,i,e){!function(t){var n=a.nr.getInstance(),i=(0,s.bz)((0,u.Iy)(),t);if(!n.classNameFromKey(i)){var e=n.getClassName();n.insertRule("@font-face{".concat(i,"}"),!0),n.cacheClassName(e,i,[],["font-face",i])}}({fontFamily:t="'".concat(t,"'"),src:(void 0!==e?"local('".concat(e,"'),"):"")+"url('".concat(n,".woff2') format('woff2'),")+"url('".concat(n,".woff') format('woff')"),fontWeight:i,fontStyle:"normal",fontDisplay:"swap"})}function w(t,n,i,e,r){void 0===e&&(e="segoeui");var o="".concat(t,"/").concat(i,"/").concat(e);C(n,o+"-light",l.BO.light,r&&r+" Light"),C(n,o+"-semilight",l.BO.semilight,r&&r+" SemiLight"),C(n,o+"-regular",l.BO.regular,r),C(n,o+"-semibold",l.BO.semibold,r&&r+" SemiBold"),C(n,o+"-bold",l.BO.bold,r&&r+" Bold")}function M(t){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];for(var e=0,r=n;e<r.length;e++)k(t||{},r[e]);return t}function k(t,n,i){for(var e in void 0===i&&(i=[]),i.push(n),n)if(n.hasOwnProperty(e)&&"__proto__"!==e&&"constructor"!==e&&"prototype"!==e){var r=n[e];if("object"!=typeof r||null===r||Array.isArray(r))t[e]=r;else{var o=i.indexOf(r)>-1;t[e]=o?r:k(t[e]||{},r,i)}}return i.pop(),t}!function(t){if(t){var n="".concat(t,"/fonts");w(n,l.Dn.Thai,"leelawadeeui-thai","leelawadeeui"),w(n,l.Dn.Arabic,"segoeui-arabic"),w(n,l.Dn.Cyrillic,"segoeui-cyrillic"),w(n,l.Dn.EastEuropean,"segoeui-easteuropean"),w(n,l.Dn.Greek,"segoeui-greek"),w(n,l.Dn.Hebrew,"segoeui-hebrew"),w(n,l.Dn.Vietnamese,"segoeui-vietnamese"),w(n,l.Dn.WestEuropean,"segoeui-westeuropean","segoeui","Segoe UI"),w(n,l.bi.Selawik,"selawik","selawik"),w(n,l.Dn.Armenian,"segoeui-armenian"),w(n,l.Dn.Georgian,"segoeui-georgian"),C("Leelawadee UI Web","".concat(n,"/leelawadeeui-thai/leelawadeeui-semilight"),l.BO.light),C("Leelawadee UI Web","".concat(n,"/leelawadeeui-thai/leelawadeeui-bold"),l.BO.semibold)}}(function(){var t,n,i=null===(t=(0,m.z)())||void 0===t?void 0:t.FabricConfig;return null!==(n=null==i?void 0:i.fontBaseUrl)&&void 0!==n?n:"https://res-1.cdn.office.net/files/fabric-cdn-prod_20230815.002/assets"}());var S=i(823);function A(t,n,i,e,r){return void 0===r&&(r=!1),function(t,n){var i="";return!0===n&&(i=" /* @deprecated */"),t.listTextColor=t.listText+i,t.menuItemBackgroundChecked+=i,t.warningHighlight+=i,t.warningText=t.messageText+i,t.successText+=i,t}(L(t,n,(0,S.Cl)({primaryButtonBorder:"transparent",errorText:e?"#F1707B":"#a4262c",messageText:e?"#F3F2F1":"#323130",messageLink:e?"#6CB8F6":"#005A9E",messageLinkHovered:e?"#82C7FF":"#004578",infoIcon:e?"#C8C6C4":"#605e5c",errorIcon:e?"#F1707B":"#A80000",blockingIcon:e?"#442726":"#FDE7E9",warningIcon:e?"#C8C6C4":"#797775",severeWarningIcon:e?"#FCE100":"#D83B01",successIcon:e?"#92C353":"#107C10",infoBackground:e?"#323130":"#f3f2f1",errorBackground:e?"#442726":"#FDE7E9",blockingBackground:e?"#442726":"#FDE7E9",warningBackground:e?"#433519":"#FFF4CE",severeWarningBackground:e?"#4F2A0F":"#FED9CC",successBackground:e?"#393D1B":"#DFF6DD",warningHighlight:e?"#fff100":"#ffb900",successText:e?"#92c353":"#107C10"},i),e),r)}function L(t,n,i,e,r){void 0===r&&(r=!1);var o={},u=t||{},a=u.white,s=u.black,l=u.themePrimary,c=u.themeDark,f=u.themeDarker,h=u.themeDarkAlt,d=u.themeLighter,v=u.neutralLight,p=u.neutralLighter,g=u.neutralDark,m=u.neutralQuaternary,y=u.neutralQuaternaryAlt,b=u.neutralPrimary,x=u.neutralSecondary,C=u.neutralSecondaryAlt,w=u.neutralTertiary,M=u.neutralTertiaryAlt,k=u.neutralLighterAlt,A=u.accent;return a&&(o.bodyBackground=a,o.bodyFrameBackground=a,o.accentButtonText=a,o.buttonBackground=a,o.primaryButtonText=a,o.primaryButtonTextHovered=a,o.primaryButtonTextPressed=a,o.inputBackground=a,o.inputForegroundChecked=a,o.listBackground=a,o.menuBackground=a,o.cardStandoutBackground=a),s&&(o.bodyTextChecked=s,o.buttonTextCheckedHovered=s),l&&(o.link=l,o.primaryButtonBackground=l,o.inputBackgroundChecked=l,o.inputIcon=l,o.inputFocusBorderAlt=l,o.menuIcon=l,o.menuHeader=l,o.accentButtonBackground=l),c&&(o.primaryButtonBackgroundPressed=c,o.inputBackgroundCheckedHovered=c,o.inputIconHovered=c),f&&(o.linkHovered=f),h&&(o.primaryButtonBackgroundHovered=h),d&&(o.inputPlaceholderBackgroundChecked=d),v&&(o.bodyBackgroundChecked=v,o.bodyFrameDivider=v,o.bodyDivider=v,o.variantBorder=v,o.buttonBackgroundCheckedHovered=v,o.buttonBackgroundPressed=v,o.listItemBackgroundChecked=v,o.listHeaderBackgroundPressed=v,o.menuItemBackgroundPressed=v,o.menuItemBackgroundChecked=v),p&&(o.bodyBackgroundHovered=p,o.buttonBackgroundHovered=p,o.buttonBackgroundDisabled=p,o.buttonBorderDisabled=p,o.primaryButtonBackgroundDisabled=p,o.disabledBackground=p,o.listItemBackgroundHovered=p,o.listHeaderBackgroundHovered=p,o.menuItemBackgroundHovered=p),m&&(o.primaryButtonTextDisabled=m,o.disabledSubtext=m),y&&(o.listItemBackgroundCheckedHovered=y),w&&(o.disabledBodyText=w,o.variantBorderHovered=(null==i?void 0:i.variantBorderHovered)||w,o.buttonTextDisabled=w,o.inputIconDisabled=w,o.disabledText=w),b&&(o.bodyText=b,o.actionLink=b,o.buttonText=b,o.inputBorderHovered=b,o.inputText=b,o.listText=b,o.menuItemText=b),k&&(o.bodyStandoutBackground=k,o.defaultStateBackground=k),g&&(o.actionLinkHovered=g,o.buttonTextHovered=g,o.buttonTextChecked=g,o.buttonTextPressed=g,o.inputTextHovered=g,o.menuItemTextHovered=g),x&&(o.bodySubtext=x,o.focusBorder=x,o.inputBorder=x,o.smallInputBorder=x,o.inputPlaceholderText=x),C&&(o.buttonBorder=C),M&&(o.disabledBodySubtext=M,o.disabledBorder=M,o.buttonBackgroundChecked=M,o.menuDivider=M),A&&(o.accentButtonBackground=A),(null==n?void 0:n.elevation4)&&(o.cardShadow=n.elevation4),!e&&(null==n?void 0:n.elevation8)?o.cardShadowHovered=n.elevation8:o.variantBorderHovered&&(o.cardShadowHovered="0 0 1px "+o.variantBorderHovered),(0,S.Cl)((0,S.Cl)({},o),i)}var V={s2:"4px",s1:"8px",m:"16px",l1:"20px",l2:"32px"};function D(t,n){void 0===t&&(t={}),void 0===n&&(n=!1);var i=!!t.isInverted;return function(t,n){var i,e,r;void 0===n&&(n={});var o=M({},t,n,{semanticColors:L(n.palette,n.effects,n.semanticColors,void 0===n.isInverted?t.isInverted:n.isInverted)});if((null===(i=n.palette)||void 0===i?void 0:i.themePrimary)&&!(null===(e=n.palette)||void 0===e?void 0:e.accent)&&(o.palette.accent=n.palette.themePrimary),n.defaultFontStyle)for(var u=0,a=Object.keys(o.fonts);u<a.length;u++){var s=a[u];o.fonts[s]=M(o.fonts[s],n.defaultFontStyle,null===(r=null==n?void 0:n.fonts)||void 0===r?void 0:r[s])}return o}({palette:r.b,effects:o,fonts:x,spacing:V,isInverted:i,disableGlobalClassNames:!1,semanticColors:A(r.b,o,void 0,i,n),rtl:void 0},t)}},41:function(t,n,i){var e,r,o,u,a;i.d(n,{BO:function(){return u},Dn:function(){return e},bi:function(){return r},s:function(){return o}}),function(t){t.Arabic="Segoe UI Web (Arabic)",t.Cyrillic="Segoe UI Web (Cyrillic)",t.EastEuropean="Segoe UI Web (East European)",t.Greek="Segoe UI Web (Greek)",t.Hebrew="Segoe UI Web (Hebrew)",t.Thai="Leelawadee UI Web",t.Vietnamese="Segoe UI Web (Vietnamese)",t.WestEuropean="Segoe UI Web (West European)",t.Selawik="Selawik Web",t.Armenian="Segoe UI Web (Armenian)",t.Georgian="Segoe UI Web (Georgian)"}(e||(e={})),function(t){t.Arabic="'".concat(e.Arabic,"'"),t.ChineseSimplified="'Microsoft Yahei UI', Verdana, Simsun",t.ChineseTraditional="'Microsoft Jhenghei UI', Pmingliu",t.Cyrillic="'".concat(e.Cyrillic,"'"),t.EastEuropean="'".concat(e.EastEuropean,"'"),t.Greek="'".concat(e.Greek,"'"),t.Hebrew="'".concat(e.Hebrew,"'"),t.Hindi="'Nirmala UI'",t.Japanese="'Yu Gothic UI', 'Meiryo UI', Meiryo, 'MS Pgothic', Osaka",t.Korean="'Malgun Gothic', Gulim",t.Selawik="'".concat(e.Selawik,"'"),t.Thai="'Leelawadee UI Web', 'Kmer UI'",t.Vietnamese="'".concat(e.Vietnamese,"'"),t.WestEuropean="'".concat(e.WestEuropean,"'"),t.Armenian="'".concat(e.Armenian,"'"),t.Georgian="'".concat(e.Georgian,"'")}(r||(r={})),function(t){t.size10="10px",t.size12="12px",t.size14="14px",t.size16="16px",t.size18="18px",t.size20="20px",t.size24="24px",t.size28="28px",t.size32="32px",t.size42="42px",t.size68="68px",t.mini="10px",t.xSmall="10px",t.small="12px",t.smallPlus="12px",t.medium="14px",t.mediumPlus="16px",t.icon="16px",t.large="18px",t.xLarge="20px",t.xLargePlus="24px",t.xxLarge="28px",t.xxLargePlus="32px",t.superLarge="42px",t.mega="68px"}(o||(o={})),function(t){t.light=100,t.semilight=300,t.regular=400,t.semibold=600,t.bold=700}(u||(u={})),function(t){t.xSmall="10px",t.small="12px",t.medium="16px",t.large="20px"}(a||(a={}))},873:function(t,n,i){i.d(n,{Z:function(){return g}});var e=i(40),r=i(823),o=i(506),u=i(962),a=i(289),s=i(638);var l=i(259),c=i(338),f=50,h=5,d=0,v=e.nr.getInstance();v&&v.onReset&&v.onReset((function(){return d++}));var p="__retval__";function g(t){void 0===t&&(t={});var n=new Map,i=0,v=0,g=d;return function(m,b){var x;if(void 0===b&&(b={}),t.useStaticStyles&&"function"==typeof m&&m.__noStyleOverride__)return m(b);v++;var C=m?m.__shadowConfig__:void 0,w=C&&C.window?C.window:"__default__";n.has(w)||n.set(w,new Map);var M=n.get(w),k=b.theme,S=k&&void 0!==k.rtl?k.rtl:(0,l.jI)(),A=t.disableCaching;if(g!==d&&(g=d,n.set(w,new Map),M=n.get(w),i=0),t.disableCaching||(M=y(n.get(w),m),M=y(M,b)),!A&&M[p]||(M[p]=void 0===m?{}:function(t,n){var i,l={subComponentStyles:{}},c=void 0;(0,s.db)(t[0])?(c=t[0],i=t[1]):i=t[0],null!=c||(c=null==n?void 0:n.shadowConfig);var f=(0,r.Cl)((0,r.Cl)({},n),{shadowConfig:c});if(!i&&t.length<=1)return{subComponentStyles:{}};var h=e.nr.getInstance(c);f.stylesheet=h;var d=o.T.apply(void 0,t),v=[];for(var p in d)if(d.hasOwnProperty(p)){if("subComponentStyles"===p){l.subComponentStyles=d.subComponentStyles||{};continue}if("__shadowConfig__"===p)continue;var g=d[p],m=(0,u.h)(h,g),y=m.classes,b=m.objects;(null==b?void 0:b.length)?(w=(0,a.GJ)(f||{},{displayName:p},b))&&(v.push(w),l[p]=y.concat([w.className]).join(" ")):l[p]=y.join(" ")}for(var x=0,C=v;x<C.length;x++){var w;(w=C[x])&&(0,a.Ae)(w,null==n?void 0:n.specificityMultiplier,c)}return l}(["function"==typeof m?m(b):m],{shadowConfig:m.__shadowConfig__,rtl:!!S,specificityMultiplier:t.useStaticStyles?h:void 0}),A||i++),i>(t.cacheSize||f)){var L=(0,c.z)();(null===(x=null==L?void 0:L.FabricConfig)||void 0===x?void 0:x.enableClassNameCacheFullWarning)&&(console.warn("Styles are being recalculated too frequently. Cache miss rate is ".concat(i,"/").concat(v,".")),console.trace()),n.get(w).clear(),i=0,t.disableCaching=!0}return M[p]}}function m(t,n){return n=function(t){switch(t){case void 0:return"__undefined__";case null:return"__null__";default:return t}}(n),t.has(n)||t.set(n,new Map),t.get(n)}function y(t,n){if("function"==typeof n)if(n.__cachedInputs__)for(var i=0,e=n.__cachedInputs__;i<e.length;i++)t=m(t,e[i]);else t=m(t,n);else if("object"==typeof n)for(var r in n)n.hasOwnProperty(r)&&(t=m(t,n[r]));return t}},540:function(t,n,i){i.d(n,{X:function(){return v}});var e=i(823),r=i(338),o="__globalSettings__",u="__callbacks__",a=0,s=function(){function t(){}return t.getValue=function(t,n){var i=l();return void 0===i[t]&&(i[t]="function"==typeof n?n():n),i[t]},t.setValue=function(t,n){var i=l(),e=i[u],r=i[t];if(n!==r){i[t]=n;var o={oldValue:r,value:n,key:t};for(var a in e)e.hasOwnProperty(a)&&e[a](o)}return n},t.addChangeListener=function(t){var n=t.__id__,i=c();n||(n=t.__id__=String(a++)),i[n]=t},t.removeChangeListener=function(t){delete c()[t.__id__]},t}();function l(){var t,n=(0,r.z)()||{};return n[o]||(n[o]=((t={})[u]={},t)),n[o]}function c(){return l()[u]}var f={settings:{},scopedSettings:{},inCustomizerContext:!1},h=s.getValue("customizations",{settings:{},scopedSettings:{},inCustomizerContext:!1}),d=[],v=function(){function t(){}return t.reset=function(){h.settings={},h.scopedSettings={}},t.applySettings=function(n){h.settings=(0,e.Cl)((0,e.Cl)({},h.settings),n),t._raiseChange()},t.applyScopedSettings=function(n,i){h.scopedSettings[n]=(0,e.Cl)((0,e.Cl)({},h.scopedSettings[n]),i),t._raiseChange()},t.getSettings=function(t,n,i){void 0===i&&(i=f);for(var e={},r=n&&i.scopedSettings[n]||{},o=n&&h.scopedSettings[n]||{},u=0,a=t;u<a.length;u++){var s=a[u];e[s]=r[s]||i.settings[s]||o[s]||h.settings[s]}return e},t.applyBatchedUpdates=function(n,i){t._suppressUpdates=!0;try{n()}catch(t){}t._suppressUpdates=!1,i||t._raiseChange()},t.observe=function(t){d.push(t)},t.unobserve=function(t){d=d.filter((function(n){return n!==t}))},t._raiseChange=function(){t._suppressUpdates||d.forEach((function(t){return t()}))},t}()},770:function(t,n,i){i.d(n,{z:function(){return e}});var e=i(594).createContext({customizations:{inCustomizerContext:!1,settings:{},scopedSettings:{}}})},927:function(t,n,i){i.d(n,{m:function(){return u}});var e=i(594),r=i(540),o=i(770);function u(t,n){var i,u=(i=e.useState(0)[1],function(){return i((function(t){return++t}))}),a=e.useContext(o.z).customizations,s=a.inCustomizerContext;return e.useEffect((function(){return s||r.X.observe(u),function(){s||r.X.unobserve(u)}}),[s]),r.X.getSettings(t,n,a)}},921:function(t,n,i){function e(){return"undefined"!=typeof window&&!(!window.document||!window.document.createElement)}i.d(n,{S:function(){return e}})},543:function(t,n,i){i.d(n,{Y:function(){return r}});var e=i(921);function r(t){if((0,e.S)()&&"undefined"!=typeof document){var n=t;return n&&n.ownerDocument?n.ownerDocument:document}}},338:function(t,n,i){i.d(n,{z:function(){return o}});var e=i(921),r=void 0;try{r=window}catch(t){}function o(t){if((0,e.S)()&&void 0!==r){var n=t;return n&&n.ownerDocument&&n.ownerDocument.defaultView?n.ownerDocument.defaultView:r}}},753:function(t,n,i){i.d(n,{J5:function(){return f},J9:function(){return c}});var e=i(40),r=!1,o=0,u={empty:!0},a={},s="undefined"==typeof WeakMap?null:WeakMap;function l(){o++}function c(t,n,i){if(void 0===n&&(n=100),void 0===i&&(i=!1),!s)return t;if(!r){var c=e.nr.getInstance();c&&c.onReset&&e.nr.getInstance().onReset(l),r=!0}var f,d=0,v=o;return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var s,l=f;(void 0===f||v!==o||n>0&&d>n)&&(f=h(),d=0,v=o),l=f;for(var c=0;c<e.length;c++){var p=(s=e[c])?"object"==typeof s||"function"==typeof s?s:(a[s]||(a[s]={val:s}),a[s]):u;l.map.has(p)||l.map.set(p,h()),l=l.map.get(p)}return l.hasOwnProperty("value")||(l.value=t.apply(void 0,e),d++),!i||null!==l.value&&void 0!==l.value||(l.value=t.apply(void 0,e)),l.value}}function f(t){if(!s)return t;var n=new s;return function(i){if(!i||"function"!=typeof i&&"object"!=typeof i)return t(i);if(n.has(i))return n.get(i);var e=t(i);return n.set(i,e),e}}function h(){return{map:s?new s:null}}},259:function(t,n,i){i.d(n,{jI:function(){return s}});var e,r=i(543),o=i(468),u=i(800),a="isRTL";function s(t){if(void 0===t&&(t={}),void 0!==t.rtl)return t.rtl;if(void 0===e){var n=(0,o.G)(a);null!==n&&function(t,n){void 0===n&&(n=!1);var i=(0,r.Y)();i&&i.documentElement.setAttribute("dir",t?"rtl":"ltr"),n&&(0,o.S)(a,t?"1":"0"),e=t,(0,u.DU)(e)}(e="1"===n);var i=(0,r.Y)();void 0===e&&i&&(e="rtl"===(i.body&&i.body.getAttribute("dir")||i.documentElement.getAttribute("dir")),(0,u.DU)(e))}return!!e}},468:function(t,n,i){i.d(n,{G:function(){return r},S:function(){return o}});var e=i(338);function r(t){var n=null;try{var i=(0,e.z)();n=i?i.sessionStorage.getItem(t):null}catch(t){}return n}function o(t,n){var i;try{null===(i=(0,e.z)())||void 0===i||i.sessionStorage.setItem(t,n)}catch(t){}}},517:function(t,n,i){i.d(n,{Y2:function(){return e}});var e="ms-Fabric--isFocusVisible"},566:function(t,n,i){i.d(n,{I:function(){return d}});var e=i(823),r=i(594),o=i(506),u=i(638),a=function(){return!1},s=function(){},l=r.createContext({stylesheets:new Map,useAdoptedStylesheetEx:a,useAdoptedStylesheet:a,useShadowConfig:function(){return u.ou},useMergeStylesShadowRootContext:s,useHasMergeStylesShadowRootContext:a,useMergeStylesRootStylesheets:function(){return new Map},useWindow:s,useStyled:s}),c=function(){var t=r.useContext(l);return{useAdoptedStylesheet:t.useAdoptedStylesheet,useAdoptedStylesheetEx:t.useAdoptedStylesheetEx,useShadowConfig:t.useShadowConfig,useMergeStylesShadowRootContext:t.useMergeStylesShadowRootContext,useHasMergeStylesShadowRootContext:t.useHasMergeStylesShadowRootContext,useMergeStylesRootStylesheets:t.useMergeStylesRootStylesheets,useWindow:t.useWindow,useStyled:t.useStyled}},f=i(927),h=["theme","styles"];function d(t,n,i,u,a){var s=(u=u||{scope:"",fields:void 0}).scope,l=u.fields,d=void 0===l?h:l,v=r.forwardRef((function(u,a){var l=r.useRef(),h=(0,f.m)(d,s),v=h.styles,p=(h.dir,(0,e.Tt)(h,["styles","dir"])),g=i?i(u):void 0,m=c().useStyled,y=l.current&&l.current.__cachedInputs__||[],b=u.styles;if(!l.current||v!==y[1]||b!==y[2]){var x=function(t){return function(t){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];for(var e=[],r=0,u=n;r<u.length;r++){var a=u[r];a&&e.push("function"==typeof a?a(t):a)}return 1===e.length?e[0]:e.length?o.T.apply(void 0,e):{}}(t,n,v,b)};x.__cachedInputs__=[n,v,b],x.__noStyleOverride__=!v&&!b,l.current=x}return l.current.__shadowConfig__=m(s),r.createElement(t,(0,e.Cl)({ref:a},p,g,u,{styles:l.current}))}));v.displayName="Styled".concat(t.displayName||t.name);var p=a?r.memo(v):v;return v.displayName&&(p.displayName=v.displayName),p}},594:function(t){t.exports=React},823:function(t,n,i){i.d(n,{C6:function(){return r},Cl:function(){return o},Tt:function(){return u},fX:function(){return a}});var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])},e(t,n)};function r(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}var o=function(){return o=Object.assign||function(t){for(var n,i=1,e=arguments.length;i<e;i++)for(var r in n=arguments[i])Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);return t},o.apply(this,arguments)};function u(t,n){var i={};for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&n.indexOf(e)<0&&(i[e]=t[e]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(e=Object.getOwnPropertySymbols(t);r<e.length;r++)n.indexOf(e[r])<0&&Object.prototype.propertyIsEnumerable.call(t,e[r])&&(i[e[r]]=t[e[r]])}return i}function a(t,n,i){if(i||2===arguments.length)for(var e,r=0,o=n.length;r<o;r++)!e&&r in n||(e||(e=Array.prototype.slice.call(n,0,r)),e[r]=n[r]);return t.concat(e||Array.prototype.slice.call(n))}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError}},n={};function i(e){var r=n[e];if(void 0!==r)return r.exports;var o=n[e]={exports:{}};return t[e](o,o.exports,i),o.exports}i.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(n,{a:n}),n},i.d=function(t,n){for(var e in n)i.o(n,e)&&!i.o(t,e)&&Object.defineProperty(t,e,{enumerable:!0,get:n[e]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),i.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var e={};i.r(e),i.d(e,{AreaChart:function(){return xh},CartesianChart:function(){return Hf},ChartHoverCard:function(){return js.ChartHoverCard},DataVizGradientPalette:function(){return Ys},DataVizPalette:function(){return hf},DeclarativeChart:function(){return Ev},DonutChart:function(){return wf},GaugeChart:function(){return sv},GaugeChartVariant:function(){return Zd},GaugeValueFormat:function(){return Ud},GroupedVerticalBarChart:function(){return qh},HeatMapChart:function(){return Jh},HorizontalBarChart:function(){return Bl},HorizontalBarChartVariant:function(){return v},HorizontalBarChartWithAxis:function(){return iv},Legends:function(){return Lc},LineChart:function(){return eh},MultiStackedBarChart:function(){return Oh},MultiStackedBarChartVariant:function(){return Sh},NodesComposition:function(){return Ad},PieChart:function(){return Dh},SankeyChart:function(){return Nd},Shape:function(){return kc},Sparkline:function(){return Qd},StackedBarChart:function(){return Fh},Textbox:function(){return Kf},TreeChart:function(){return Gd},TreeTraverse:function(){return Ld},VerticalBarChart:function(){return Wh},VerticalStackedBarChart:function(){return Yh},getChartHoverCardStyles:function(){return Uh.J},getColorFromToken:function(){return bf},getGradientFromToken:function(){return Ks},getNextColor:function(){return yf},getNextGradient:function(){return Zs}});var r=i(566),o=i(823),u=i(594),a=i(873),s=i(259),l=i(338),c=i(40),f="__currentId__",h="id__",d=(0,l.z)()||{};void 0===d[f]&&(d[f]=0);var v,p=!1;function g(t){if(!p){var n=c.nr.getInstance();n&&n.onReset&&n.onReset(m),p=!0}var i=d[f]++;return(void 0===t?h:t)+i}function m(t){void 0===t&&(t=0),d[f]=t}function y(t,n,i){void 0===i&&(i=0);for(var e=-1,r=i;t&&r<t.length;r++)if(n(t[r],r)){e=r;break}return e}function b(t,n){var i=y(t,n);if(!(i<0))return t[i]}!function(t){t.PartToWhole="part-to-whole",t.AbsoluteScale="absolute-scale"}(v||(v={}));var x={topLeftEdge:0,topCenter:1,topRightEdge:2,topAutoEdge:3,bottomLeftEdge:4,bottomCenter:5,bottomRightEdge:6,bottomAutoEdge:7,leftTopEdge:8,leftCenter:9,leftBottomEdge:10,rightTopEdge:11,rightCenter:12,rightBottomEdge:13};function C(t,n){var i,e;if(void 0===n&&(n=!0),!t)return null;var r=n&&function(t){var n,i;return t&&(i=t)&&i._virtual&&(n=t._virtual.parent),n}(t);return r||("function"!=typeof t.assignedElements&&(null===(i=t.assignedSlot)||void 0===i?void 0:i.parentNode)?t.assignedSlot:11===(null===(e=t.parentNode)||void 0===e?void 0:e.nodeType)?t.parentNode.host:t.parentNode)}function w(t,n,i){return null!=i||(i=document),!t||t===i.body||t instanceof Document?null:n(t)?t:w(C(t),n)}function M(t,n,i){void 0===i&&(i=!0);var e=!1;if(t&&n)if(i)if(t===n)e=!0;else for(e=!1;n;){var r=C(n);if(r===t){e=!0;break}n=r}else t.contains&&(e=t.contains(n));return e}var k=i(543),S="data-is-focusable",A="data-is-visible",L="data-focuszone-id",V="data-is-sub-focuszone";function D(t,n,i){var e=T(t,t,!0,!1,!1,!0,void 0,void 0,n,i);return!!e&&(H(e),!0)}function N(t,n,i,e,r,o,u,a,s){var l;if(!n||!u&&n===t)return null;var c=E(n);if(r&&c&&(o||!B(n)&&!F(n))){var f=N(t,n.lastElementChild||s&&(null===(l=n.shadowRoot)||void 0===l?void 0:l.lastElementChild),!0,!0,!0,o,u,a,s);if(f){if(a&&P(f,!0,s)||!a)return f;var h=N(t,f.previousElementSibling,!0,!0,!0,o,u,a,s);if(h)return h;for(var d=f.parentElement;d&&d!==n;){var v=N(t,d.previousElementSibling,!0,!0,!0,o,u,a,s);if(v)return v;d=d.parentElement}}}return i&&c&&P(n,a,s)?n:N(t,n.previousElementSibling,!0,!0,!0,o,u,a,s)||(e?null:N(t,n.parentElement,!0,!1,!1,o,u,a,s))}function T(t,n,i,e,r,o,u,a,s,l){var c;if(!n||n===t&&r&&!u)return null;var f=(s?O:E)(n);if(i&&f&&P(n,a,l))return n;if(!r&&f&&(o||!B(n)&&!F(n))){var h=T(t,n.firstElementChild||l&&(null===(c=n.shadowRoot)||void 0===c?void 0:c.firstElementChild),!0,!0,!1,o,u,a,s,l);if(h)return h}return n===t?null:T(t,n.nextElementSibling,!0,!0,!1,o,u,a,s,l)||(e?null:T(t,n.parentElement,!1,!1,!0,o,u,a,s,l))}function E(t){if(!t||!t.getAttribute)return!1;var n=t.getAttribute(A);return null!=n?"true"===n:0!==t.offsetHeight||null!==t.offsetParent||!0===t.isVisible}function O(t,n){var i=null!=n?n:(0,l.z)();return!!t&&E(t)&&!t.hidden&&"hidden"!==i.getComputedStyle(t).visibility}function P(t,n,i){if(void 0===i&&(i=!0),!t||t.disabled)return!1;var e=0,r=null;t&&t.getAttribute&&(r=t.getAttribute("tabIndex"))&&(e=parseInt(r,10));var o=t.getAttribute?t.getAttribute(S):null,u=null!==r&&e>=0,a=!(!i||!t.shadowRoot||!t.shadowRoot.delegatesFocus),s=!!t&&"false"!==o&&("A"===t.tagName||"BUTTON"===t.tagName||"INPUT"===t.tagName||"TEXTAREA"===t.tagName||"SELECT"===t.tagName||"true"===o||u||a);return n?-1!==e&&s:s}function B(t){return!!(t&&t.getAttribute&&t.getAttribute(L))}function F(t){return!(!t||!t.getAttribute||"true"!==t.getAttribute(V))}var _=void 0;function H(t){if(t){var n=(0,l.z)(t);n&&(void 0!==_&&n.cancelAnimationFrame(_),_=n.requestAnimationFrame((function(){t&&t.focus(),_=void 0})))}}function R(t,n,i,e){return t.addEventListener(n,i,e),function(){return t.removeEventListener(n,i,e)}}function I(t,n){for(var i=(0,o.Cl)({},n),e=0,r=Object.keys(t);e<r.length;e++){var u=r[e];void 0===i[u]&&(i[u]=t[u])}return i}var W=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var i={},e=0,r=t;e<r.length;e++)for(var o=r[e],u=0,a=Array.isArray(o)?o:Object.keys(o);u<a.length;u++)i[a[u]]=1;return i},z=W(["onCopy","onCut","onPaste","onCompositionEnd","onCompositionStart","onCompositionUpdate","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onInput","onSubmit","onLoad","onError","onKeyDown","onKeyDownCapture","onKeyPress","onKeyUp","onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting","onClick","onClickCapture","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onMouseUpCapture","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onScroll","onWheel","onPointerCancel","onPointerDown","onPointerEnter","onPointerLeave","onPointerMove","onPointerOut","onPointerOver","onPointerUp","onGotPointerCapture","onLostPointerCapture"]),j=W(["accessKey","children","className","contentEditable","dir","draggable","hidden","htmlFor","id","lang","ref","role","style","tabIndex","title","translate","spellCheck","name"]),Y=W(j,z),$=(W(Y,["form"]),W(Y,["height","loop","muted","preload","src","width"])),X=(W($,["poster"]),W(Y,["start"]),W(Y,["value"]),W(Y,["download","href","hrefLang","media","rel","target","type"]),W(Y,["autoFocus","disabled","form","formAction","formEncType","formMethod","formNoValidate","formTarget","type","value"])),G=(W(X,["accept","alt","autoCapitalize","autoComplete","checked","dirname","form","height","inputMode","list","max","maxLength","min","minLength","multiple","pattern","placeholder","readOnly","required","src","step","size","type","value","width"]),W(X,["autoCapitalize","cols","dirname","form","maxLength","minLength","placeholder","readOnly","required","rows","wrap"]),W(X,["form","multiple","required"]),W(Y,["selected","value"]),W(Y,["cellPadding","cellSpacing"]),W(Y,["rowSpan","scope"]),W(Y,["colSpan","headers","rowSpan","scope"]),W(Y,["span"]),W(Y,["span"]),W(Y,["acceptCharset","action","encType","encType","method","noValidate","target"]),W(Y,["allow","allowFullScreen","allowPaymentRequest","allowTransparency","csp","height","importance","referrerPolicy","sandbox","src","srcDoc","width"]),W(Y,["alt","crossOrigin","height","src","srcSet","useMap","width"]),Y);function q(t,n,i){for(var e=Array.isArray(n),r={},o=0,u=Object.keys(t);o<u.length;o++){var a=u[o];!(!e&&n[a]||e&&n.indexOf(a)>=0||0===a.indexOf("data-")||0===a.indexOf("aria-"))||i&&-1!==(null==i?void 0:i.indexOf(a))||(r[a]=t[a])}return r}function U(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var i=[],e=0,r=t;e<r.length;e++){var o=r[e];if(o)if("string"==typeof o)i.push(o);else if(o.hasOwnProperty("toString")&&"function"==typeof o.toString)i.push(o.toString());else for(var u in o)o[u]&&i.push(u)}return i.join(" ")}function Z(t){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];return K.apply(this,[null,t].concat(n))}function K(t,n){for(var i=[],e=2;e<arguments.length;e++)i[e-2]=arguments[e];n=n||{};for(var r=0,o=i;r<o.length;r++){var u=o[r];if(u)for(var a in u)!u.hasOwnProperty(a)||t&&!t(a)||(n[a]=u[a])}return n}var J,Q,tt,nt=i(916),it=((0,nt.Z)({overflow:"hidden !important"}),"data-is-scrollable");function et(t){for(var n=t,i=(0,k.Y)(t);n&&n!==i.body;){if("true"===n.getAttribute(it))return n;n=n.parentElement}for(n=t;n&&n!==i.body;){if("false"!==n.getAttribute(it)){var e=getComputedStyle(n),r=e?e.getPropertyValue("overflow-y"):"";if(r&&("scroll"===r||"auto"===r))return n}n=n.parentElement}return n&&n!==i.body||(n=(0,l.z)(t)),n}!function(t){t[t.top=1]="top",t[t.bottom=-1]="bottom",t[t.left=2]="left",t[t.right=-2]="right"}(Q||(Q={})),function(t){t[t.top=0]="top",t[t.bottom=1]="bottom",t[t.start=2]="start",t[t.end=3]="end"}(tt||(tt={}));var rt,ot=function(){function t(t,n,i,e){void 0===t&&(t=0),void 0===n&&(n=0),void 0===i&&(i=0),void 0===e&&(e=0),this.top=i,this.bottom=e,this.left=t,this.right=n}return Object.defineProperty(t.prototype,"width",{get:function(){return this.right-this.left},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.bottom-this.top},enumerable:!1,configurable:!0}),t.prototype.equals=function(t){return parseFloat(this.top.toFixed(4))===parseFloat(t.top.toFixed(4))&&parseFloat(this.bottom.toFixed(4))===parseFloat(t.bottom.toFixed(4))&&parseFloat(this.left.toFixed(4))===parseFloat(t.left.toFixed(4))&&parseFloat(this.right.toFixed(4))===parseFloat(t.right.toFixed(4))},t}();function ut(t,n,i){return{targetEdge:t,alignmentEdge:n,isAuto:i}}var at=((rt={})[x.topLeftEdge]=ut(Q.top,Q.left),rt[x.topCenter]=ut(Q.top),rt[x.topRightEdge]=ut(Q.top,Q.right),rt[x.topAutoEdge]=ut(Q.top,void 0,!0),rt[x.bottomLeftEdge]=ut(Q.bottom,Q.left),rt[x.bottomCenter]=ut(Q.bottom),rt[x.bottomRightEdge]=ut(Q.bottom,Q.right),rt[x.bottomAutoEdge]=ut(Q.bottom,void 0,!0),rt[x.leftTopEdge]=ut(Q.left,Q.top),rt[x.leftCenter]=ut(Q.left),rt[x.leftBottomEdge]=ut(Q.left,Q.bottom),rt[x.rightTopEdge]=ut(Q.right,Q.top),rt[x.rightCenter]=ut(Q.right),rt[x.rightBottomEdge]=ut(Q.right,Q.bottom),rt);function st(t,n){return!(t.top<n.top||t.bottom>n.bottom||t.left<n.left||t.right>n.right)}function lt(t,n){var i=[];return t.top<n.top&&i.push(Q.top),t.bottom>n.bottom&&i.push(Q.bottom),t.left<n.left&&i.push(Q.left),t.right>n.right&&i.push(Q.right),i}function ct(t,n){return t[Q[n]]}function ft(t,n,i){return t[Q[n]]=i,t}function ht(t,n){var i=kt(n);return(ct(t,i.positiveEdge)+ct(t,i.negativeEdge))/2}function dt(t,n){return t>0?n:-1*n}function vt(t,n){return dt(t,ct(n,t))}function pt(t,n,i){return dt(i,ct(t,i)-ct(n,i))}function gt(t,n,i,e){void 0===e&&(e=!0);var r=ct(t,n)-i,o=ft(t,n,i);return e&&(o=ft(t,-1*n,ct(t,-1*n)-r)),o}function mt(t,n,i,e){return void 0===e&&(e=0),gt(t,i,ct(n,i)+dt(i,e))}function yt(t,n,i){return vt(i,t)>vt(i,n)}function bt(t,n){for(var i=0,e=0,r=lt(t,n);e<r.length;e++){var o=r[e];i+=Math.pow(pt(t,n,o),2)}return i}function xt(t,n,i,e){return void 0===e&&(e=200),(i===Q.bottom||i===Q.top)&&pt(t,n,i)>=e}function Ct(t,n,i,e){for(var r=0,o=t;r<o.length;r++){var u=o[r],a=void 0;e&&e===-1*u?(a=gt(n.elementRectangle,u,ct(i,u),!1),n.forcedInBounds=!0):yt(a=mt(n.elementRectangle,i,u),i,-1*u)||(a=gt(a,-1*u,ct(i,-1*u),!1),n.forcedInBounds=!0),n.elementRectangle=a}return n}function wt(t,n,i){var e=kt(n).positiveEdge;return gt(t,e,i-(ht(t,n)-ct(t,e)))}function Mt(t,n,i,e,r){void 0===e&&(e=0);var o=new ot(t.left,t.right,t.top,t.bottom),u=i.alignmentEdge,a=i.targetEdge,s=r?a:-1*a;return o=r?mt(o,n,a,e):function(t,n,i,e){void 0===e&&(e=0);var r=dt(-1*i,e);return gt(t,-1*i,ct(n,i)+r)}(o,n,a,e),o=u?mt(o,n,u):wt(o,s,ht(n,a))}function kt(t){return t===Q.top||t===Q.bottom?{positiveEdge:Q.left,negativeEdge:Q.right}:{positiveEdge:Q.top,negativeEdge:Q.bottom}}function St(t,n,i){return i&&Math.abs(pt(t,i,n))>Math.abs(pt(t,i,-1*n))?-1*n:n}function At(t,n,i,e,r,o,u,a){var s,l={},c=Dt(n),f=o?i:-1*i,h=r||kt(i).positiveEdge;return u&&!function(t,n,i){return void 0!==i&&ct(t,n)===ct(i,n)}(t,(s=h,-1*s),e)||(h=St(t,h,e)),l[Q[f]]=pt(t,c,f),l[Q[h]]=pt(t,c,h),a&&(l[Q[-1*f]]=pt(t,c,-1*f),l[Q[-1*h]]=pt(t,c,-1*h)),l}function Lt(t,n,i){var e=ht(n,t),r=ht(i,t),o=kt(t),u=o.positiveEdge,a=o.negativeEdge;return e<=r?u:a}function Vt(t,n,i,e,r,o,u,a,l){void 0===o&&(o=!1);var c=Mt(t,n,e,r,l);return st(c,i)?{elementRectangle:c,targetEdge:e.targetEdge,alignmentEdge:e.alignmentEdge}:function(t,n,i,e,r,o,u,a,l){void 0===r&&(r=!1),void 0===u&&(u=0);var c=e.alignmentEdge,f=e.alignTargetEdge,h={elementRectangle:t,targetEdge:e.targetEdge,alignmentEdge:c};a||l||(h=function(t,n,i,e,r,o,u){void 0===r&&(r=!1),void 0===u&&(u=0);var a=[Q.left,Q.right,Q.bottom,Q.top];(0,s.jI)()&&(a[0]*=-1,a[1]*=-1);for(var l,c=t,f=e.targetEdge,h=e.alignmentEdge,d=f,v=h,p=0;p<4;p++){if(yt(c,i,f))return{elementRectangle:c,targetEdge:f,alignmentEdge:h};if(r&&xt(n,i,f,o)){switch(f){case Q.bottom:c.bottom=i.bottom;break;case Q.top:c.top=i.top}return{elementRectangle:c,targetEdge:f,alignmentEdge:h,forcedInBounds:!0}}var g=bt(c,i);(!l||g<l)&&(l=g,d=f,v=h),a.splice(a.indexOf(f),1),a.length>0&&(a.indexOf(-1*f)>-1?f*=-1:(h=f,f=a.slice(-1)[0]),c=Mt(t,n,{targetEdge:f,alignmentEdge:h},u))}return{elementRectangle:c=Mt(t,n,{targetEdge:d,alignmentEdge:v},u),targetEdge:d,alignmentEdge:v}}(t,n,i,e,r,o,u));var d=lt(h.elementRectangle,i),v=a?-h.targetEdge:void 0;if(d.length>0)if(f)if(h.alignmentEdge&&d.indexOf(-1*h.alignmentEdge)>-1){var p=function(t,n,i,e){var r=t.alignmentEdge,o=t.targetEdge,u=-1*r;return{elementRectangle:Mt(t.elementRectangle,n,{targetEdge:o,alignmentEdge:u},i,e),targetEdge:o,alignmentEdge:u}}(h,n,u,l);if(st(p.elementRectangle,i))return p;h=Ct(lt(p.elementRectangle,i),h,i,v)}else h=Ct(d,h,i,v);else h=Ct(d,h,i,v);return h}(c,n,i,e,o,u,r,a,l)}function Dt(t){var n=t.getBoundingClientRect();return new ot(n.left,n.right,n.top,n.bottom)}function Nt(t,n,i,e,r,u){void 0===r&&(r=!1);var a=t.gapSpace?t.gapSpace:0,l=function(t,n){var i;if(n){if(n.preventDefault){var e=n;i=new ot(e.clientX,e.clientX,e.clientY,e.clientY)}else if(n.getBoundingClientRect)i=Dt(n);else{var r=n,o=r.left||r.x,u=r.top||r.y,a=r.right||o,s=r.bottom||u;i=new ot(o,a,u,s)}if(!st(i,t))for(var l=0,c=lt(i,t);l<c.length;l++){var f=c[l];i[Q[f]]=t[Q[f]]}}else i=new ot(0,0,0,0);return i}(i,t.target),c=function(t,n,i,e,r){return t.isAuto&&(t.alignmentEdge=Lt(t.targetEdge,n,i)),t.alignTargetEdge=r,t}(function(t,n,i){if(void 0===t&&(t=x.bottomAutoEdge),i)return{alignmentEdge:i.alignmentEdge,isAuto:i.isAuto,targetEdge:i.targetEdge};var e=(0,o.Cl)({},at[t]);return(0,s.jI)()?(e.alignmentEdge&&e.alignmentEdge%2==0&&(e.alignmentEdge=-1*e.alignmentEdge),void 0!==n?at[n]:e):e}(t.directionalHint,t.directionalHintForRTL,e),l,i,t.coverTarget,t.alignTargetEdge),f=Vt(Dt(n),l,i,c,a,r,u,t.directionalHintFixed,t.coverTarget);return(0,o.Cl)((0,o.Cl)({},f),{targetRectangle:l})}function Tt(t,n,i){return void 0===n&&(n=0),void 0===i&&(i=0),function(t){return Math.sqrt(t*t*2)}(t?n:0)/2+i}function Et(t,n,i,e,r,u,a,s){void 0===r&&(r=!1);var c=null!=s?s:(0,l.z)(),f=t.isBeakVisible&&t.beakWidth||0,h=Tt(t.isBeakVisible,t.beakWidth,t.gapSpace),d=t;d.gapSpace=h;var v,p,g,m,y,b,x,C,w,M=t.bounds?(w=t.bounds,new ot(w.left,w.right,w.top,w.bottom)):new ot(0,c.innerWidth-function(t){if(void 0===J){var n=(0,k.Y)(),i=n.createElement("div");i.style.setProperty("width","100px"),i.style.setProperty("height","100px"),i.style.setProperty("overflow","scroll"),i.style.setProperty("position","absolute"),i.style.setProperty("top","-9999px"),n.body.appendChild(i),J=i.offsetWidth-i.clientWidth,n.body.removeChild(i)}return J}(),0,c.innerHeight),S=Nt(d,i,M,e,r,u),A=(v=S,p=function(t,n){var i=n.targetRectangle,e=kt(n.targetEdge),r=e.positiveEdge,o=e.negativeEdge,u=ht(i,n.targetEdge),a=new ot(t/2,n.elementRectangle.width-t/2,t/2,n.elementRectangle.height-t/2),s=new ot(0,t,0,t);return yt(s=wt(s=gt(s,-1*n.targetEdge,-t/2),-1*n.targetEdge,u-vt(r,n.elementRectangle)),a,r)?yt(s,a,o)||(s=mt(s,a,o)):s=mt(s,a,r),s}(f,S),g=M,m=-1*v.targetEdge,y=new ot(0,v.elementRectangle.width,0,v.elementRectangle.height),b={},x=St(v.elementRectangle,v.alignmentEdge?v.alignmentEdge:kt(m).positiveEdge,g),C=pt(v.elementRectangle,v.targetRectangle,m)>Math.abs(ct(p,m)),b[Q[m]]=ct(p,m),b[Q[x]]=pt(p,y,x),{elementPosition:(0,o.Cl)({},b),closestEdge:Lt(v.targetEdge,p,y),targetEdge:m,hideBeak:!C});return(0,o.Cl)((0,o.Cl)({},function(t,n,i,e,r){return{elementPosition:At(t.elementRectangle,n,t.targetEdge,i,t.alignmentEdge,e,r,t.forcedInBounds),targetEdge:t.targetEdge,alignmentEdge:t.alignmentEdge}}(S,n,M,t.coverTarget,a)),{beakPosition:A})}var Ot=["TEMPLATE","STYLE","SCRIPT"];function Pt(t){var n=(0,k.Y)(t);if(!n)return function(){};for(var i=[];t!==n.body&&t.parentElement;){for(var e=0,r=t.parentElement.children;e<r.length;e++){var o=r[e],u=o.getAttribute("aria-hidden");o!==t&&"true"!==(null==u?void 0:u.toLowerCase())&&-1===Ot.indexOf(o.tagName)&&i.push([o,u])}t=t.parentElement}return i.forEach((function(t){t[0].setAttribute("aria-hidden","true")})),function(){!function(t){t.forEach((function(t){var n=t[0],i=t[1];i?n.setAttribute("aria-hidden",i):n.removeAttribute("aria-hidden")}))}(i),i=[]}}var Bt=27,Ft=function(){function t(t,n){this._timeoutIds=null,this._immediateIds=null,this._intervalIds=null,this._animationFrameIds=null,this._isDisposed=!1,this._parent=t||null,this._onErrorHandler=n,this._noop=function(){}}return t.prototype.dispose=function(){var t;if(this._isDisposed=!0,this._parent=null,this._timeoutIds){for(t in this._timeoutIds)this._timeoutIds.hasOwnProperty(t)&&this.clearTimeout(parseInt(t,10));this._timeoutIds=null}if(this._immediateIds){for(t in this._immediateIds)this._immediateIds.hasOwnProperty(t)&&this.clearImmediate(parseInt(t,10));this._immediateIds=null}if(this._intervalIds){for(t in this._intervalIds)this._intervalIds.hasOwnProperty(t)&&this.clearInterval(parseInt(t,10));this._intervalIds=null}if(this._animationFrameIds){for(t in this._animationFrameIds)this._animationFrameIds.hasOwnProperty(t)&&this.cancelAnimationFrame(parseInt(t,10));this._animationFrameIds=null}},t.prototype.setTimeout=function(t,n){var i=this,e=0;return this._isDisposed||(this._timeoutIds||(this._timeoutIds={}),e=setTimeout((function(){try{i._timeoutIds&&delete i._timeoutIds[e],t.apply(i._parent)}catch(t){i._logError(t)}}),n),this._timeoutIds[e]=!0),e},t.prototype.clearTimeout=function(t){this._timeoutIds&&this._timeoutIds[t]&&(clearTimeout(t),delete this._timeoutIds[t])},t.prototype.setImmediate=function(t,n){var i=this,e=0,r=(0,l.z)(n);return this._isDisposed||(this._immediateIds||(this._immediateIds={}),e=r.setTimeout((function(){try{i._immediateIds&&delete i._immediateIds[e],t.apply(i._parent)}catch(t){i._logError(t)}}),0),this._immediateIds[e]=!0),e},t.prototype.clearImmediate=function(t,n){var i=(0,l.z)(n);this._immediateIds&&this._immediateIds[t]&&(i.clearTimeout(t),delete this._immediateIds[t])},t.prototype.setInterval=function(t,n){var i=this,e=0;return this._isDisposed||(this._intervalIds||(this._intervalIds={}),e=setInterval((function(){try{t.apply(i._parent)}catch(t){i._logError(t)}}),n),this._intervalIds[e]=!0),e},t.prototype.clearInterval=function(t){this._intervalIds&&this._intervalIds[t]&&(clearInterval(t),delete this._intervalIds[t])},t.prototype.throttle=function(t,n,i){var e=this;if(this._isDisposed)return this._noop;var r,o,u=n||0,a=!0,s=!0,l=0,c=null;i&&"boolean"==typeof i.leading&&(a=i.leading),i&&"boolean"==typeof i.trailing&&(s=i.trailing);var f=function(n){var i=Date.now(),h=i-l,d=a?u-h:u;return h>=u&&(!n||a)?(l=i,c&&(e.clearTimeout(c),c=null),r=t.apply(e._parent,o)):null===c&&s&&(c=e.setTimeout(f,d)),r};return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return o=t,f(!0)}},t.prototype.debounce=function(t,n,i){var e=this;if(this._isDisposed){var r=function(){};return r.cancel=function(){},r.flush=function(){return null},r.pending=function(){return!1},r}var o,u,a=n||0,s=!1,l=!0,c=null,f=0,h=Date.now(),d=null;i&&"boolean"==typeof i.leading&&(s=i.leading),i&&"boolean"==typeof i.trailing&&(l=i.trailing),i&&"number"==typeof i.maxWait&&!isNaN(i.maxWait)&&(c=i.maxWait);var v=function(t){d&&(e.clearTimeout(d),d=null),h=t},p=function(n){v(n),o=t.apply(e._parent,u)},g=function(t){var n=Date.now(),i=!1;t&&(s&&n-f>=a&&(i=!0),f=n);var r=n-f,u=a-r,v=n-h,m=!1;return null!==c&&(v>=c&&d?m=!0:u=Math.min(u,c-v)),r>=a||m||i?p(n):null!==d&&t||!l||(d=e.setTimeout(g,u)),o},m=function(){return!!d},y=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return u=t,g(!0)};return y.cancel=function(){m()&&v(Date.now())},y.flush=function(){return m()&&p(Date.now()),o},y.pending=m,y},t.prototype.requestAnimationFrame=function(t,n){var i=this,e=0,r=(0,l.z)(n);if(!this._isDisposed){this._animationFrameIds||(this._animationFrameIds={});var o=function(){try{i._animationFrameIds&&delete i._animationFrameIds[e],t.apply(i._parent)}catch(t){i._logError(t)}};e=r.requestAnimationFrame?r.requestAnimationFrame(o):r.setTimeout(o,0),this._animationFrameIds[e]=!0}return e},t.prototype.cancelAnimationFrame=function(t,n){var i=(0,l.z)(n);this._animationFrameIds&&this._animationFrameIds[t]&&(i.cancelAnimationFrame?i.cancelAnimationFrame(t):i.clearTimeout(t),delete this._animationFrameIds[t])},t.prototype._logError=function(t){this._onErrorHandler&&this._onErrorHandler(t)},t}();function _t(){var t=u.useRef();return t.current||(t.current=new Ft),u.useEffect((function(){return function(){var n;null===(n=t.current)||void 0===n||n.dispose(),t.current=void 0}}),[]),t.current}function Ht(t,n,i,e){var r=u.useRef(i);r.current=i,u.useEffect((function(){var i=t&&"current"in t?t.current:t;if(i&&i.addEventListener)return R(i,n,(function(t){return r.current(t)}),e)}),[t,n,e])}function Rt(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var i=u.useCallback((function(n){i.current=n;for(var e=0,r=t;e<r.length;e++){var o=r[e];"function"==typeof o?o(n):o&&(o.current=n)}}),(0,o.fX)([],t,!0));return i}var It=u.createContext({window:"object"==typeof window?window:void 0}),Wt=function(){return u.useContext(It).window},zt=function(){var t;return null===(t=u.useContext(It).window)||void 0===t?void 0:t.document};function jt(t){var n=t.originalElement,i=t.containsFocus;n&&i&&n!==(0,l.z)()&&setTimeout((function(){var t;null===(t=n.focus)||void 0===t||t.call(n)}),0)}var Yt=u.forwardRef((function(t,n){var i=I({shouldRestoreFocus:!0,enableAriaHiddenSiblings:!0},t),e=u.useRef(),r=Rt(e,n);!function(t,n){var i="true"===String(t["aria-modal"]).toLowerCase()&&t.enableAriaHiddenSiblings;u.useEffect((function(){if(i&&n.current)return Pt(n.current)}),[n,i])}(i,e),function(t,n){var i=t.onRestoreFocus,e=void 0===i?jt:i,r=u.useRef(),o=u.useRef(!1);u.useEffect((function(){var t,i,u;return r.current=(0,k.Y)().activeElement,t=n.current,(u=(i=(0,k.Y)(t))&&i.activeElement)&&M(t,u)&&(o.current=!0),function(){var t;null==e||e({originalElement:r.current,containsFocus:o.current,documentContainsFocus:(null===(t=(0,k.Y)())||void 0===t?void 0:t.hasFocus())||!1}),r.current=void 0}}),[]),Ht(n,"focus",u.useCallback((function(){o.current=!0}),[]),!0),Ht(n,"blur",u.useCallback((function(t){n.current&&t.relatedTarget&&!n.current.contains(t.relatedTarget)&&(o.current=!1)}),[]),!0)}(i,e);var a=i.role,s=i.className,l=i.ariaLabel,c=i.ariaLabelledBy,f=i.ariaDescribedBy,h=i.style,d=i.children,v=i.onDismiss,p=function(t,n){var i=_t(),e=u.useState(!1),r=e[0],o=e[1];return u.useEffect((function(){return i.requestAnimationFrame((function(){var i;if(!t.style||!t.style.overflowY){var e=!1;if(n&&n.current&&(null===(i=n.current)||void 0===i?void 0:i.firstElementChild)){var u=n.current.clientHeight,a=n.current.firstElementChild.clientHeight;u>0&&a>u&&(e=a-u>1)}r!==e&&o(e)}})),function(){return i.dispose()}})),r}(i,e),g=u.useCallback((function(t){t.which===Bt&&v&&(v(t),t.preventDefault(),t.stopPropagation())}),[v]);return Ht(Wt(),"keydown",g),u.createElement("div",(0,o.Cl)({ref:r},q(i,G),{className:s,role:a,"aria-label":l,"aria-labelledby":c,"aria-describedby":f,onKeyDown:g,style:(0,o.Cl)({overflowY:p?"scroll":void 0,outline:"none"},h)}),d)}));Yt.displayName="Popup";var $t=i(419);function Xt(t){var n=u.useRef();return void 0===n.current&&(n.current={value:"function"==typeof t?t():t}),n.current.value}var Gt,qt=function(){var t;return null!==(t=Wt())&&void 0!==t?t:"undefined"!=typeof window?window:void 0},Ut=function(t){var n,i;return null!==(i=null===(n=null==t?void 0:t.window)||void 0===n?void 0:n.document)&&void 0!==i?i:"undefined"!=typeof document?document:void 0},Zt=((Gt={})[Q.top]=$t.lw.slideUpIn10,Gt[Q.bottom]=$t.lw.slideDownIn10,Gt[Q.left]=$t.lw.slideLeftIn10,Gt[Q.right]=$t.lw.slideRightIn10,Gt),Kt={opacity:0,filter:"opacity(0)",pointerEvents:"none"},Jt=["role","aria-roledescription"],Qt={preventDismissOnLostFocus:!1,preventDismissOnScroll:!1,preventDismissOnResize:!1,isBeakVisible:!0,beakWidth:16,gapSpace:0,minPagePadding:8,directionalHint:x.bottomAutoEdge},tn=(0,a.Z)({disableCaching:!0});function nn(t,n,i,e){var r,o=t.calloutMaxHeight,a=t.finalHeight,s=t.directionalHint,l=t.directionalHintFixed,c=t.hidden,f=t.gapSpace,h=t.beakWidth,d=t.isBeakVisible,v=t.coverTarget,p=u.useState(),g=p[0],m=p[1],y=null!==(r=null==e?void 0:e.elementPosition)&&void 0!==r?r:{},b=y.top,x=y.bottom,C=(null==i?void 0:i.current)?function(t){var n,i,e,r,o=t,u=t,a=t,s=null!==(n=a.left)&&void 0!==n?n:a.x,l=null!==(i=a.top)&&void 0!==i?i:a.y,c=null!==(e=a.right)&&void 0!==e?e:s,f=null!==(r=a.bottom)&&void 0!==r?r:l;return o.stopPropagation?new ot(o.clientX,o.clientX,o.clientY,o.clientY):void 0!==s&&void 0!==l?new ot(s,c,l,f):Dt(u)}(i.current):void 0;return u.useEffect((function(){var t,i,r=null!==(t=n())&&void 0!==t?t:{},u=r.top,a=r.bottom;(null==e?void 0:e.targetEdge)===Q.top&&(null==C?void 0:C.top)&&!v&&(a=C.top-function(t,n,i){return Tt(t,n,i)}(d,h,f)),"number"==typeof b&&a?i=a-b:"number"==typeof x&&"number"==typeof u&&a&&(i=a-u-x),m(!o&&!c||o&&i&&o>i?i:o||void 0)}),[x,o,a,s,l,n,c,e,b,f,h,d,C,v]),g}function en(t,n,i,e,r,a){var s,c=u.useState(),f=c[0],h=c[1],d=u.useRef(0),v=u.useRef(),p=_t(),g=t.hidden,m=t.target,y=t.finalHeight,b=t.calloutMaxHeight,x=t.onPositioned,C=t.directionalHint,w=t.hideOverflow,M=t.preferScrollResizePositioning,k=qt(),S=u.useRef();S.current!==a.current&&(S.current=a.current,s=a.current?null==k?void 0:k.getComputedStyle(a.current):void 0);var A=null==s?void 0:s.overflowY;return u.useEffect((function(){if(!g){var u=p.requestAnimationFrame((function(){var u,a,s,c;if(n.current&&i){var p=(0,o.Cl)((0,o.Cl)({},t),{target:e.current,bounds:r()}),g=i.cloneNode(!0);g.style.maxHeight=b?"".concat(b):"",g.style.visibility="hidden",null===(u=i.parentElement)||void 0===u||u.appendChild(g);var C=v.current===m?f:void 0,S=M&&!(w||"clip"===A||"hidden"===A),L=y?function(t,n,i,e,r){return function(t,n,i,e,r){return Et(t,n,i,e,!1,void 0,!0,null!=r?r:(0,l.z)())}(t,n,i,e,r)}(p,n.current,g,C,k):function(t,n,i,e,r,o,u){return Et(t,n,i,e,r,void 0,void 0,u)}(p,n.current,g,C,S,0,k);null===(a=i.parentElement)||void 0===a||a.removeChild(g),!f&&L||f&&L&&(c=L,!un((s=f).elementPosition,c.elementPosition)||!un(s.beakPosition.elementPosition,c.beakPosition.elementPosition))&&d.current<5?(d.current++,h(L)):d.current>0&&(d.current=0,null==x||x(f))}}),i);return v.current=m,function(){p.cancelAnimationFrame(u),v.current=void 0}}h(void 0),d.current=0}),[g,C,p,i,b,n,e,y,r,x,f,t,m,w,M,A,k]),f}var rn=u.memo(u.forwardRef((function(t,n){var i=I(Qt,t),e=i.styles,r=i.style,a=i.ariaLabel,s=i.ariaDescribedBy,l=i.ariaLabelledBy,c=i.className,f=i.isBeakVisible,h=i.children,d=i.beakWidth,v=i.calloutWidth,p=i.calloutMaxWidth,g=i.calloutMinWidth,m=i.doNotLayer,y=i.finalHeight,b=i.hideOverflow,x=void 0===b?!!y:b,C=i.backgroundColor,w=i.calloutMaxHeight,S=i.onScroll,A=i.shouldRestoreFocus,L=void 0===A||A,V=i.target,N=i.hidden,T=i.onLayerMounted,E=i.popupProps,O=u.useRef(null),P=Rt(u.useRef(null),null==E?void 0:E.ref),B=u.useState(null),F=B[0],_=B[1],H=u.useCallback((function(t){_(t)}),[]),W=Rt(O,n),z=function(t,n){var i,e,r,o=u.useRef(),a=u.useRef(null),s=Wt();if(!t||t!==o.current||"string"==typeof t){var l=null==n?void 0:n.current;if(t)if("string"==typeof t)if(null===(i=null==l?void 0:l.getRootNode())||void 0===i?void 0:i.host)a.current=null!==(r=null===(e=null==l?void 0:l.getRootNode())||void 0===e?void 0:e.querySelector(t))&&void 0!==r?r:null;else{var c=(0,k.Y)(l);a.current=c?c.querySelector(t):null}else a.current="stopPropagation"in t||"getBoundingClientRect"in t?t:"current"in t?t.current:t;o.current=t}return[a,s]}(i.target,{current:F}),j=z[0],Y=z[1],$=function(t,n,i){var e=t.bounds,r=t.minPagePadding,o=void 0===r?Qt.minPagePadding:r,a=t.target,s=u.useState(!1),l=s[0],c=s[1],f=u.useRef(),h=u.useCallback((function(){if(!f.current||l){var t="function"==typeof e?i?e(a,i):void 0:e;!t&&i&&(t=function(t,n){return function(t,n){var i=void 0;if(n.getWindowSegments&&(i=n.getWindowSegments()),void 0===i||i.length<=1)return{top:0,left:0,right:n.innerWidth,bottom:n.innerHeight,width:n.innerWidth,height:n.innerHeight};var e=0,r=0;if(null!==t&&t.getBoundingClientRect){var o=t.getBoundingClientRect();e=(o.left+o.right)/2,r=(o.top+o.bottom)/2}else null!==t&&(e=t.left||t.x,r=t.top||t.y);for(var u={top:0,left:0,right:0,bottom:0,width:0,height:0},a=0,s=i;a<s.length;a++){var l=s[a];e&&l.left<=e&&l.right>=e&&r&&l.top<=r&&l.bottom>=r&&(u={top:l.top,left:l.left,right:l.right,bottom:l.bottom,width:l.width,height:l.height})}return u}(t,n)}(n.current,i),t={top:t.top+o,left:t.left+o,right:t.right-o,bottom:t.bottom-o,width:t.width-2*o,height:t.height-2*o}),f.current=t,l&&c(!1)}return f.current}),[e,o,a,n,i,l]),d=_t();return Ht(i,"resize",d.debounce((function(){c(!0)}),500,{leading:!0})),h}(i,j,Y),X=en(i,O,F,j,$,P),Z=nn(i,$,j,X),K=function(t,n,i,e,r){var o=t.hidden,a=t.onDismiss,s=t.preventDismissOnScroll,l=t.preventDismissOnResize,c=t.preventDismissOnLostFocus,f=t.dismissOnTargetClick,h=t.shouldDismissOnWindowFocus,d=t.preventDismissOnEvent,v=u.useRef(!1),p=_t(),g=Xt([function(){v.current=!0},function(){v.current=!1}]),m=!!n;return u.useEffect((function(){var t=function(t){m&&!s&&g(t)},n=function(t){l||d&&d(t)||null==a||a(t)},u=function(t){c||g(t)},g=function(t){var n=t.composedPath?t.composedPath():[],o=n.length>0?n[0]:t.target,u=i.current&&!M(i.current,o);if(u&&v.current)v.current=!1;else if(!e.current&&u||t.target!==r&&u&&(!e.current||"stopPropagation"in e.current||f||o!==e.current&&!M(e.current,o))){if(d&&d(t))return;null==a||a(t)}},y=function(t){h&&((!d||d(t))&&(d||c)||(null==r?void 0:r.document.hasFocus())||null!==t.relatedTarget||null==a||a(t))},b=new Promise((function(i){p.setTimeout((function(){if(!o&&r){var e=[R(r,"scroll",t,!0),R(r,"resize",n,!0),R(r.document.documentElement,"focus",u,!0),R(r.document.documentElement,"click",u,!0),R(r,"blur",y,!0)];i((function(){e.forEach((function(t){return t()}))}))}}),0)}));return function(){b.then((function(t){return t()}))}}),[o,p,i,e,r,a,h,f,c,l,s,m,d]),g}(i,X,O,j,Y),J=K[0],Q=K[1],tt=(null==X?void 0:X.elementPosition.top)&&(null==X?void 0:X.elementPosition.bottom),nt=(0,o.Cl)((0,o.Cl)({},null==X?void 0:X.elementPosition),{maxHeight:Z});if(tt&&(nt.bottom=void 0),function(t,n,i){var e=t.hidden,r=t.setInitialFocus,o=_t(),a=!!n;u.useEffect((function(){if(!e&&r&&a&&i){var t=o.requestAnimationFrame((function(){return D(i)}),i);return function(){return o.cancelAnimationFrame(t)}}}),[e,a,o,i,r])}(i,X,F),u.useEffect((function(){N||null==T||T()}),[N]),!Y)return null;var it=x,et=f&&!!V,rt=tn(e,{theme:i.theme,className:c,overflowYHidden:it,calloutWidth:v,positions:X,beakWidth:d,backgroundColor:C,calloutMaxWidth:p,calloutMinWidth:g,doNotLayer:m}),ot=(0,o.Cl)((0,o.Cl)({maxHeight:w||"100%"},r),it&&{overflowY:"hidden"}),ut=i.hidden?{visibility:"hidden"}:void 0;return u.createElement("div",{ref:W,className:rt.container,style:ut},u.createElement("div",(0,o.Cl)({},q(i,G,Jt),{className:U(rt.root,X&&X.targetEdge&&Zt[X.targetEdge]),style:X?(0,o.Cl)({},nt):Kt,tabIndex:-1,ref:H}),et&&u.createElement("div",{className:rt.beak,style:on(X)}),et&&u.createElement("div",{className:rt.beakCurtain}),u.createElement(Yt,(0,o.Cl)({role:i.role,"aria-roledescription":i["aria-roledescription"],ariaDescribedBy:s,ariaLabel:a,ariaLabelledBy:l,className:rt.calloutMain,onDismiss:i.onDismiss,onMouseDown:J,onMouseUp:Q,onRestoreFocus:i.onRestoreFocus,onScroll:S,shouldRestoreFocus:L,style:ot},E,{ref:P}),h)))})),(function(t,n){return!(n.shouldUpdateWhenHidden||!t.hidden||!n.hidden)||function(t,n){if(!t||!n)return!t&&!n;for(var i in t)if(t.hasOwnProperty(i)&&(!n.hasOwnProperty(i)||n[i]!==t[i]))return!1;for(var i in n)if(n.hasOwnProperty(i)&&!t.hasOwnProperty(i))return!1;return!0}(t,n)}));function on(t){var n,i,e=(0,o.Cl)((0,o.Cl)({},null===(n=null==t?void 0:t.beakPosition)||void 0===n?void 0:n.elementPosition),{display:(null===(i=null==t?void 0:t.beakPosition)||void 0===i?void 0:i.hideBeak)?"none":void 0});return e.top||e.bottom||e.left||e.right||(e.left=0,e.top=0),e}function un(t,n){for(var i in n)if(n.hasOwnProperty(i)){var e=t[i],r=n[i];if(void 0===e||void 0===r)return!1;if(e.toFixed(2)!==r.toFixed(2))return!1}return!0}function an(t){return{height:t,width:t}}rn.displayName="CalloutContentBase";var sn={container:"ms-Callout-container",root:"ms-Callout",beak:"ms-Callout-beak",beakCurtain:"ms-Callout-beakCurtain",calloutMain:"ms-Callout-main"},ln=(0,r.I)(rn,(function(t){var n,i=t.theme,e=t.className,r=t.overflowYHidden,o=t.calloutWidth,u=t.beakWidth,a=t.backgroundColor,s=t.calloutMaxWidth,l=t.calloutMinWidth,c=t.doNotLayer,f=(0,$t.Km)(sn,i),h=i.semanticColors,d=i.effects;return{container:[f.container,{position:"relative"}],root:[f.root,i.fonts.medium,{position:"absolute",display:"flex",zIndex:c?$t.nA.Layer:void 0,boxSizing:"border-box",borderRadius:d.roundedCorner2,boxShadow:d.elevation16,selectors:(n={},n[$t.up]={borderWidth:1,borderStyle:"solid",borderColor:"WindowText"},n)},(0,$t.QN)(),e,!!o&&{width:o},!!s&&{maxWidth:s},!!l&&{minWidth:l}],beak:[f.beak,{position:"absolute",backgroundColor:h.menuBackground,boxShadow:"inherit",border:"inherit",boxSizing:"border-box",transform:"rotate(45deg)"},an(u),a&&{backgroundColor:a}],beakCurtain:[f.beakCurtain,{position:"absolute",top:0,right:0,bottom:0,left:0,backgroundColor:h.menuBackground,borderRadius:d.roundedCorner2}],calloutMain:[f.calloutMain,{backgroundColor:h.menuBackground,overflowX:"hidden",overflowY:"auto",position:"relative",width:"100%",borderRadius:d.roundedCorner2},r&&{overflowY:"hidden"},a&&{backgroundColor:a}]}}),void 0,{scope:"CalloutContent"}),cn=u.createContext(void 0),fn=function(){return function(){}};cn.Provider;var hn=ReactDOM,dn=i(753);new WeakMap,new WeakMap;var vn=u.createContext(void 0),pn=function(t){var n=t.providerRef,i=t.layerRoot,e=u.useState([])[0],r=u.useContext(vn),o=void 0!==r&&!i,a=u.useMemo((function(){return o?void 0:{providerRef:n,registeredProviders:e,registerProvider:function(t){e.push(t),null==r||r.registerProvider(t)},unregisterProvider:function(t){null==r||r.unregisterProvider(t);var n=e.indexOf(t);n>=0&&e.splice(n,1)}}}),[n,e,r,o]);return u.useEffect((function(){if(a)return a.registerProvider(a.providerRef),function(){return a.unregisterProvider(a.providerRef)}}),[a]),a?u.createElement(vn.Provider,{value:a},t.children):u.createElement(u.Fragment,null,t.children)},gn=i(540),mn=i(770);function yn(t,n){void 0===t&&(t={});var i=bn(n)?n:function(t){return function(n){return t?(0,o.Cl)((0,o.Cl)({},n),t):n}}(n);return i(t)}function bn(t){return"function"==typeof t}var xn=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n._onCustomizationChange=function(){return n.forceUpdate()},n}return(0,o.C6)(n,t),n.prototype.componentDidMount=function(){gn.X.observe(this._onCustomizationChange)},n.prototype.componentWillUnmount=function(){gn.X.unobserve(this._onCustomizationChange)},n.prototype.render=function(){var t=this,n=this.props.contextTransform;return u.createElement(mn.z.Consumer,null,(function(i){var e=function(t,n){var i,e,r,u=(n||{}).customizations,a=void 0===u?{settings:{},scopedSettings:{}}:u;return{customizations:{settings:yn(a.settings,t.settings),scopedSettings:(i=a.scopedSettings,e=t.scopedSettings,void 0===i&&(i={}),(bn(e)?e:(void 0===(r=e)&&(r={}),function(t){var n=(0,o.Cl)({},t);for(var i in r)r.hasOwnProperty(i)&&(n[i]=(0,o.Cl)((0,o.Cl)({},t[i]),r[i]));return n}))(i)),inCustomizerContext:!0}}}(t.props,i);return n&&(e=n(e)),u.createElement(mn.z.Provider,{value:e},t.props.children)}))},n}(u.Component),Cn=i(143),wn=(0,a.Z)(),Mn=(0,dn.J9)((function(t,n){return(0,Cn.a)((0,o.Cl)((0,o.Cl)({},t),{rtl:n}))})),kn=u.forwardRef((function(t,n){var i=t.className,e=t.theme,r=t.applyTheme,a=t.applyThemeToBody,l=t.styles,c=wn(l,{theme:e,applyTheme:r,className:i}),f=u.useRef(null);return function(t,n,i){var e=n.bodyThemed;u.useEffect((function(){if(t){var n=(0,k.Y)(i.current);if(n)return n.body.classList.add(e),function(){n.body.classList.remove(e)}}}),[e,t,i])}(a,c,f),u.createElement(u.Fragment,null,function(t,n,i,e){var r=n.root,a=t.as,l=void 0===a?"div":a,c=t.dir,f=t.theme,h=q(t,G,["dir"]),d=function(t){var n=t.theme,i=t.dir,e=(0,s.jI)(n)?"rtl":"ltr",r=(0,s.jI)()?"rtl":"ltr",o=i||e;return{rootDir:o!==e||o!==r?o:i,needsTheme:o!==e}}(t),v=d.rootDir,p=d.needsTheme,g=u.createElement(pn,{providerRef:i},u.createElement(l,(0,o.Cl)({dir:v},h,{className:r,ref:Rt(i,e)})));return p&&(g=u.createElement(xn,{settings:{theme:Mn(f,"rtl"===c)}},g)),g}(t,c,f,n))}));kn.displayName="FabricBase";var Sn,An={fontFamily:"inherit"},Ln={root:"ms-Fabric",bodyThemed:"ms-Fabric-bodyThemed"},Vn=(0,r.I)(kn,(function(t){var n=t.applyTheme,i=t.className,e=t.preventBlanketFontInheritance,r=t.theme;return{root:[(0,$t.Km)(Ln,r).root,r.fonts.medium,{color:r.palette.neutralPrimary},!e&&{"& button":An,"& input":An,"& textarea":An},n&&{color:r.semanticColors.bodyText,backgroundColor:r.semanticColors.bodyBackground},i],bodyThemed:[{backgroundColor:r.semanticColors.bodyBackground}]}}),void 0,{scope:"Fabric"}),Dn=i(517),Nn="data-portal-element",Tn={},En={},On="fluent-default-layer-host",Pn="#".concat(On),Bn=i(921),Fn=(0,Bn.S)()?u.useLayoutEffect:u.useEffect,_n=void 0;function Hn(t){_n?_n(t):console&&console.warn&&console.warn(t)}function Rn(t,n,i,e,r){if(!0===r)for(var o=0,u=i;o<u.length;o++){var a=u[o];a in n||Hn("".concat(t," property '").concat(a,"' is required when '").concat(e,"' is used.'"))}}function In(t,n,i){for(var e in i)if(n&&e in n){var r="".concat(t," property '").concat(e,"' was used but has been deprecated."),o=i[e];o&&(r+=" Use '".concat(o,"' instead.")),Hn(r)}}function Wn(t,n){return void 0!==t[n]&&null!==t[n]}function zn(t){var n=u.useRef();return u.useEffect((function(){n.current=t})),n.current}Sn={valueOnChange:{},valueDefaultValue:{},controlledToUncontrolled:{},uncontrolledToControlled:{}};var jn=0;function Yn(t){var n=t.name,i=t.props,e=t.other,r=void 0===e?[]:e,a=t.conditionallyRequired,s=t.deprecations,l=t.mutuallyExclusive,c=t.controlledUsage,f=u.useRef(!1),h=Xt((function(){return"useWarnings_".concat(jn++)})),d=zn(i);if(!f.current){f.current=!0;for(var v=0,p=r;v<p.length;v++)Hn(p[v]);if(a)for(var g=0,m=a;g<m.length;g++){var y=m[g];Rn(n,i,y.requiredProps,y.conditionalPropName,y.condition)}s&&In(n,i,s),l&&function(t,n,i){for(var e in i)if(n&&void 0!==n[e]){var r=i[e];r&&void 0!==n[r]&&Hn("".concat(t," property '").concat(e,"' is mutually exclusive with '").concat(i[e],"'. ")+"Use one or the other.")}}(n,i,l)}c&&function(t){var n=t.componentId,i=t.componentName,e=t.defaultValueProp,r=t.props,o=t.oldProps,u=t.onChangeProp,a=t.readOnlyProp,s=t.valueProp,l=o?Wn(o,s):void 0,c=Wn(r,s);if(c){var f=!!r[u],h=!(!a||!r[a]);f||h||Sn.valueOnChange[n]||(Sn.valueOnChange[n]=!0,Hn("Warning: You provided a '".concat(String(s),"' prop to a ").concat(String(i)," without an '").concat(String(u),"' handler. ")+"This will render a read-only field. If the field should be mutable use '".concat(String(e),"'. ")+"Otherwise, set '".concat(String(u),"'").concat(a?" or '".concat(String(a),"'"):"","."))),null==r[e]||Sn.valueDefaultValue[n]||(Sn.valueDefaultValue[n]=!0,Hn("Warning: You provided both '".concat(String(s),"' and '").concat(String(e),"' to a ").concat(i,". ")+"Form fields must be either controlled or uncontrolled (specify either the '".concat(String(s),"' prop, ")+"or the '".concat(String(e),"' prop, but not both). Decide between using a controlled or uncontrolled ")+"".concat(i," and remove one of these props. More info: https://fb.me/react-controlled-components")))}if(o&&c!==l){var d=l?"a controlled":"an uncontrolled",v=l?"uncontrolled":"controlled",p=l?Sn.controlledToUncontrolled:Sn.uncontrolledToControlled;p[n]||(p[n]=!0,Hn("Warning: A component is changing ".concat(d," ").concat(i," to be ").concat(v,". ")+"".concat(i,"s should not switch from controlled to uncontrolled (or vice versa). ")+"Decide between using controlled or uncontrolled for the lifetime of the component. More info: https://fb.me/react-controlled-components"))}}((0,o.Cl)((0,o.Cl)({},c),{componentId:h,props:i,componentName:n,oldProps:d}))}var $n,Xn=(0,a.Z)(),Gn=u.forwardRef((function(t,n){var i,e=null!==(i=u.useContext(cn))&&void 0!==i?i:fn,r=u.useRef(null),a=Rt(r,n),s=u.useRef(),l=u.useRef(null),c=u.useContext(vn),f=u.useState(!1),h=f[0],d=f[1],v=u.useCallback((function(t){var n,i=!!(null==(n=null==c?void 0:c.providerRef)?void 0:n.current)&&n.current.classList.contains(Dn.Y2);t&&i&&t.classList.add(Dn.Y2)}),[c]),p=t.children,g=t.className,m=t.eventBubblingEnabled,y=t.fabricProps,b=t.hostId,x=t.insertFirst,C=t.onLayerDidMount,w=void 0===C?function(){}:C,M=t.onLayerMounted,S=void 0===M?function(){}:M,A=t.onLayerWillUnmount,L=t.styles,V=t.theme,D=Rt(l,null==y?void 0:y.ref,v),N=Xn(L,{theme:V,className:g,isNotHost:!b}),T=function(){null==A||A();var t=s.current;s.current=void 0,t&&t.parentNode&&t.parentNode.removeChild(t)},E=function(){var t,n,i,e,o=(0,k.Y)(r.current),u=(null===(n=null===(t=r.current)||void 0===t?void 0:t.getRootNode())||void 0===n?void 0:n.host)?null===(i=null==r?void 0:r.current)||void 0===i?void 0:i.getRootNode():void 0;if(o&&(o||u)){var a=function(t,n){var i,e;void 0===n&&(n=null);var r=null!=n?n:t;if(b){var o=function(t){var n=En[t];return n&&n[0]||void 0}(b);return o?null!==(i=o.rootRef.current)&&void 0!==i?i:null:null!==(e=r.getElementById(b))&&void 0!==e?e:null}var u=Pn,a=u?r.querySelector(u):null;return a||(a=function(t,n){void 0===n&&(n=null);var i=t.createElement("div");return i.setAttribute("id",On),i.style.cssText="position:fixed;z-index:1000000",n?n.appendChild(i):null==t||t.body.appendChild(i),i}(t,n)),a}(o,u);if(a){a.__tabsterElementFlags||(a.__tabsterElementFlags={}),a.__tabsterElementFlags.noDirectAriaHidden=!0,T();var l=(null!==(e=a.ownerDocument)&&void 0!==e?e:o).createElement("div");l.className=N.root,l.setAttribute(Nn,"true"),function(t,n){var i=t,e=n;i._virtual||(i._virtual={children:[]});var r=i._virtual.parent;if(r&&r!==n){var o=r._virtual.children.indexOf(i);o>-1&&r._virtual.children.splice(o,1)}i._virtual.parent=e||void 0,e&&(e._virtual||(e._virtual={children:[]}),e._virtual.children.push(i))}(l,r.current),x?a.insertBefore(l,a.firstChild):a.appendChild(l),s.current=l,d(!0)}}};return Fn((function(){E(),b&&function(t,n){Tn[t]||(Tn[t]=[]),Tn[t].push(n);var i=En[t];if(i)for(var e=0,r=i;e<r.length;e++)r[e].notifyLayersChanged()}(b,E);var t=s.current?e(s.current):void 0;return function(){t&&t(),T(),b&&function(t,n){var i=Tn[t];if(i){var e=i.indexOf(n);e>=0&&(i.splice(e,1),0===i.length&&delete Tn[t])}var r=En[t];if(r)for(var o=0,u=r;o<u.length;o++)u[o].notifyLayersChanged()}(b,E)}}),[b]),u.useEffect((function(){s.current&&h&&(null==S||S(),null==w||w(),d(!1))}),[h,S,w]),function(t){Yn({name:"Layer",props:t,deprecations:{onLayerMounted:"onLayerDidMount"}})}(t),u.createElement("span",{className:"ms-layer",ref:a},s.current&&hn.createPortal(u.createElement(pn,{layerRoot:!0,providerRef:D},u.createElement(Vn,(0,o.Cl)({},!m&&($n||($n={},["onClick","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOver","onMouseOut","onMouseUp","onTouchMove","onTouchStart","onTouchCancel","onTouchEnd","onKeyDown","onKeyPress","onKeyUp","onFocus","onBlur","onChange","onInput","onInvalid","onSubmit"].forEach((function(t){return $n[t]=qn}))),$n),y,{className:U(N.content,null==y?void 0:y.className),ref:D}),p)),s.current))}));Gn.displayName="LayerBase";var qn=function(t){t.eventPhase===Event.BUBBLING_PHASE&&"mouseenter"!==t.type&&"mouseleave"!==t.type&&"touchstart"!==t.type&&"touchend"!==t.type&&t.stopPropagation()},Un={root:"ms-Layer",rootNoHost:"ms-Layer--fixed",content:"ms-Layer-content"},Zn=(0,r.I)(Gn,(function(t){var n=t.className,i=t.isNotHost,e=t.theme,r=(0,$t.Km)(Un,e);return{root:[r.root,e.fonts.medium,i&&[r.rootNoHost,{position:"fixed",zIndex:$t.nA.Layer,top:0,left:0,bottom:0,right:0,visibility:"hidden"}],n],content:[r.content,{visibility:"visible"}]}}),void 0,{scope:"Layer",fields:["hostId","theme","styles"]}),Kn=u.forwardRef((function(t,n){var i=t.layerProps,e=t.doNotLayer,r=(0,o.Tt)(t,["layerProps","doNotLayer"]),a=u.createElement(ln,(0,o.Cl)({},r,{doNotLayer:e,ref:n}));return e?a:u.createElement(Zn,(0,o.Cl)({},i),a)}));Kn.displayName="Callout";var Jn=i(607);function Qn(t){return t}var ti=1,ni=2,ii=3,ei=4,ri=1e-6;function oi(t){return"translate("+t+",0)"}function ui(t){return"translate(0,"+t+")"}function ai(t){return n=>+t(n)}function si(t,n){return n=Math.max(0,t.bandwidth()-2*n)/2,t.round()&&(n=Math.round(n)),i=>+t(i)+n}function li(){return!this.__axis}function ci(t,n){var i=[],e=null,r=null,o=6,u=6,a=3,s="undefined"!=typeof window&&window.devicePixelRatio>1?0:.5,l=t===ti||t===ei?-1:1,c=t===ei||t===ni?"x":"y",f=t===ti||t===ii?oi:ui;function h(h){var d=null==e?n.ticks?n.ticks.apply(n,i):n.domain():e,v=null==r?n.tickFormat?n.tickFormat.apply(n,i):Qn:r,p=Math.max(o,0)+a,g=n.range(),m=+g[0]+s,y=+g[g.length-1]+s,b=(n.bandwidth?si:ai)(n.copy(),s),x=h.selection?h.selection():h,C=x.selectAll(".domain").data([null]),w=x.selectAll(".tick").data(d,n).order(),M=w.exit(),k=w.enter().append("g").attr("class","tick"),S=w.select("line"),A=w.select("text");C=C.merge(C.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),w=w.merge(k),S=S.merge(k.append("line").attr("stroke","currentColor").attr(c+"2",l*o)),A=A.merge(k.append("text").attr("fill","currentColor").attr(c,l*p).attr("dy",t===ti?"0em":t===ii?"0.71em":"0.32em")),h!==x&&(C=C.transition(h),w=w.transition(h),S=S.transition(h),A=A.transition(h),M=M.transition(h).attr("opacity",ri).attr("transform",(function(t){return isFinite(t=b(t))?f(t+s):this.getAttribute("transform")})),k.attr("opacity",ri).attr("transform",(function(t){var n=this.parentNode.__axis;return f((n&&isFinite(n=n(t))?n:b(t))+s)}))),M.remove(),C.attr("d",t===ei||t===ni?u?"M"+l*u+","+m+"H"+s+"V"+y+"H"+l*u:"M"+s+","+m+"V"+y:u?"M"+m+","+l*u+"V"+s+"H"+y+"V"+l*u:"M"+m+","+s+"H"+y),w.attr("opacity",1).attr("transform",(function(t){return f(b(t)+s)})),S.attr(c+"2",l*o),A.attr(c,l*p).text(v),x.filter(li).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===ni?"start":t===ei?"end":"middle"),x.each((function(){this.__axis=b}))}return h.scale=function(t){return arguments.length?(n=t,h):n},h.ticks=function(){return i=Array.from(arguments),h},h.tickArguments=function(t){return arguments.length?(i=null==t?[]:Array.from(t),h):i.slice()},h.tickValues=function(t){return arguments.length?(e=null==t?null:Array.from(t),h):e&&e.slice()},h.tickFormat=function(t){return arguments.length?(r=t,h):r},h.tickSize=function(t){return arguments.length?(o=u=+t,h):o},h.tickSizeInner=function(t){return arguments.length?(o=+t,h):o},h.tickSizeOuter=function(t){return arguments.length?(u=+t,h):u},h.tickPadding=function(t){return arguments.length?(a=+t,h):a},h.offset=function(t){return arguments.length?(s=+t,h):s},h}function fi(t){return ci(ni,t)}function hi(t){return ci(ii,t)}function di(t){return ci(ei,t)}function vi(t,n){let i;if(void 0===n)for(const n of t)null!=n&&(i>n||void 0===i&&n>=n)&&(i=n);else{let e=-1;for(let r of t)null!=(r=n(r,++e,t))&&(i>r||void 0===i&&r>=r)&&(i=r)}return i}function pi(t,n){let i;if(void 0===n)for(const n of t)null!=n&&(i<n||void 0===i&&n>=n)&&(i=n);else{let e=-1;for(let r of t)null!=(r=n(r,++e,t))&&(i<r||void 0===i&&r>=r)&&(i=r)}return i}const gi=Math.sqrt(50),mi=Math.sqrt(10),yi=Math.sqrt(2);function bi(t,n,i){const e=(n-t)/Math.max(0,i),r=Math.floor(Math.log10(e)),o=e/Math.pow(10,r),u=o>=gi?10:o>=mi?5:o>=yi?2:1;let a,s,l;return r<0?(l=Math.pow(10,-r)/u,a=Math.round(t*l),s=Math.round(n*l),a/l<t&&++a,s/l>n&&--s,l=-l):(l=Math.pow(10,r)*u,a=Math.round(t/l),s=Math.round(n/l),a*l<t&&++a,s*l>n&&--s),s<a&&.5<=i&&i<2?bi(t,n,2*i):[a,s,l]}function xi(t,n,i){if(!((i=+i)>0))return[];if((t=+t)==(n=+n))return[t];const e=n<t,[r,o,u]=e?bi(n,t,i):bi(t,n,i);if(!(o>=r))return[];const a=o-r+1,s=new Array(a);if(e)if(u<0)for(let t=0;t<a;++t)s[t]=(o-t)/-u;else for(let t=0;t<a;++t)s[t]=(o-t)*u;else if(u<0)for(let t=0;t<a;++t)s[t]=(r+t)/-u;else for(let t=0;t<a;++t)s[t]=(r+t)*u;return s}function Ci(t,n,i){return bi(t=+t,n=+n,i=+i)[2]}function wi(t,n,i){i=+i;const e=(n=+n)<(t=+t),r=e?Ci(n,t,i):Ci(t,n,i);return(e?-1:1)*(r<0?1/-r:r)}function Mi(t,n){return null==t||null==n?NaN:t<n?-1:t>n?1:t>=n?0:NaN}function ki(t,n){return null==t||null==n?NaN:n<t?-1:n>t?1:n>=t?0:NaN}function Si(t){let n,i,e;function r(t,e,r=0,o=t.length){if(r<o){if(0!==n(e,e))return o;do{const n=r+o>>>1;i(t[n],e)<0?r=n+1:o=n}while(r<o)}return r}return 2!==t.length?(n=Mi,i=(n,i)=>Mi(t(n),i),e=(n,i)=>t(n)-i):(n=t===Mi||t===ki?t:Ai,i=t,e=t),{left:r,center:function(t,n,i=0,o=t.length){const u=r(t,n,i,o-1);return u>i&&e(t[u-1],n)>-e(t[u],n)?u-1:u},right:function(t,e,r=0,o=t.length){if(r<o){if(0!==n(e,e))return o;do{const n=r+o>>>1;i(t[n],e)<=0?r=n+1:o=n}while(r<o)}return r}}}function Ai(){return 0}const Li=Si(Mi),Vi=Li.right;Li.left,Si((function(t){return null===t?NaN:+t})).center;var Di=Vi;function Ni(t,n,i){t.prototype=n.prototype=i,i.constructor=t}function Ti(t,n){var i=Object.create(t.prototype);for(var e in n)i[e]=n[e];return i}function Ei(){}var Oi=.7,Pi=1/Oi,Bi="\\s*([+-]?\\d+)\\s*",Fi="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",_i="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Hi=/^#([0-9a-f]{3,8})$/,Ri=new RegExp(`^rgb\\(${Bi},${Bi},${Bi}\\)$`),Ii=new RegExp(`^rgb\\(${_i},${_i},${_i}\\)$`),Wi=new RegExp(`^rgba\\(${Bi},${Bi},${Bi},${Fi}\\)$`),zi=new RegExp(`^rgba\\(${_i},${_i},${_i},${Fi}\\)$`),ji=new RegExp(`^hsl\\(${Fi},${_i},${_i}\\)$`),Yi=new RegExp(`^hsla\\(${Fi},${_i},${_i},${Fi}\\)$`),$i={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 Xi(){return this.rgb().formatHex()}function Gi(){return this.rgb().formatRgb()}function qi(t){var n,i;return t=(t+"").trim().toLowerCase(),(n=Hi.exec(t))?(i=n[1].length,n=parseInt(n[1],16),6===i?Ui(n):3===i?new Ji(n>>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):8===i?Zi(n>>24&255,n>>16&255,n>>8&255,(255&n)/255):4===i?Zi(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|240&n,((15&n)<<4|15&n)/255):null):(n=Ri.exec(t))?new Ji(n[1],n[2],n[3],1):(n=Ii.exec(t))?new Ji(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=Wi.exec(t))?Zi(n[1],n[2],n[3],n[4]):(n=zi.exec(t))?Zi(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=ji.exec(t))?re(n[1],n[2]/100,n[3]/100,1):(n=Yi.exec(t))?re(n[1],n[2]/100,n[3]/100,n[4]):$i.hasOwnProperty(t)?Ui($i[t]):"transparent"===t?new Ji(NaN,NaN,NaN,0):null}function Ui(t){return new Ji(t>>16&255,t>>8&255,255&t,1)}function Zi(t,n,i,e){return e<=0&&(t=n=i=NaN),new Ji(t,n,i,e)}function Ki(t,n,i,e){return 1===arguments.length?((r=t)instanceof Ei||(r=qi(r)),r?new Ji((r=r.rgb()).r,r.g,r.b,r.opacity):new Ji):new Ji(t,n,i,null==e?1:e);var r}function Ji(t,n,i,e){this.r=+t,this.g=+n,this.b=+i,this.opacity=+e}function Qi(){return`#${ee(this.r)}${ee(this.g)}${ee(this.b)}`}function te(){const t=ne(this.opacity);return`${1===t?"rgb(":"rgba("}${ie(this.r)}, ${ie(this.g)}, ${ie(this.b)}${1===t?")":`, ${t})`}`}function ne(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function ie(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function ee(t){return((t=ie(t))<16?"0":"")+t.toString(16)}function re(t,n,i,e){return e<=0?t=n=i=NaN:i<=0||i>=1?t=n=NaN:n<=0&&(t=NaN),new ue(t,n,i,e)}function oe(t){if(t instanceof ue)return new ue(t.h,t.s,t.l,t.opacity);if(t instanceof Ei||(t=qi(t)),!t)return new ue;if(t instanceof ue)return t;var n=(t=t.rgb()).r/255,i=t.g/255,e=t.b/255,r=Math.min(n,i,e),o=Math.max(n,i,e),u=NaN,a=o-r,s=(o+r)/2;return a?(u=n===o?(i-e)/a+6*(i<e):i===o?(e-n)/a+2:(n-i)/a+4,a/=s<.5?o+r:2-o-r,u*=60):a=s>0&&s<1?0:u,new ue(u,a,s,t.opacity)}function ue(t,n,i,e){this.h=+t,this.s=+n,this.l=+i,this.opacity=+e}function ae(t){return(t=(t||0)%360)<0?t+360:t}function se(t){return Math.max(0,Math.min(1,t||0))}function le(t,n,i){return 255*(t<60?n+(i-n)*t/60:t<180?i:t<240?n+(i-n)*(240-t)/60:n)}function ce(t,n,i,e,r){var o=t*t,u=o*t;return((1-3*t+3*o-u)*n+(4-6*o+3*u)*i+(1+3*t+3*o-3*u)*e+u*r)/6}Ni(Ei,qi,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:Xi,formatHex:Xi,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return oe(this).formatHsl()},formatRgb:Gi,toString:Gi}),Ni(Ji,Ki,Ti(Ei,{brighter(t){return t=null==t?Pi:Math.pow(Pi,t),new Ji(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?Oi:Math.pow(Oi,t),new Ji(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Ji(ie(this.r),ie(this.g),ie(this.b),ne(this.opacity))},displayable(){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:Qi,formatHex:Qi,formatHex8:function(){return`#${ee(this.r)}${ee(this.g)}${ee(this.b)}${ee(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:te,toString:te})),Ni(ue,(function(t,n,i,e){return 1===arguments.length?oe(t):new ue(t,n,i,null==e?1:e)}),Ti(Ei,{brighter(t){return t=null==t?Pi:Math.pow(Pi,t),new ue(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?Oi:Math.pow(Oi,t),new ue(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),n=isNaN(t)||isNaN(this.s)?0:this.s,i=this.l,e=i+(i<.5?i:1-i)*n,r=2*i-e;return new Ji(le(t>=240?t-240:t+120,r,e),le(t,r,e),le(t<120?t+240:t-120,r,e),this.opacity)},clamp(){return new ue(ae(this.h),se(this.s),se(this.l),ne(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=ne(this.opacity);return`${1===t?"hsl(":"hsla("}${ae(this.h)}, ${100*se(this.s)}%, ${100*se(this.l)}%${1===t?")":`, ${t})`}`}}));var fe=t=>()=>t;function he(t,n){var i=n-t;return i?function(t,n){return function(i){return t+i*n}}(t,i):fe(isNaN(t)?n:t)}var de=function t(n){var i=function(t){return 1==(t=+t)?he:function(n,i){return i-n?function(t,n,i){return t=Math.pow(t,i),n=Math.pow(n,i)-t,i=1/i,function(e){return Math.pow(t+e*n,i)}}(n,i,t):fe(isNaN(n)?i:n)}}(n);function e(t,n){var e=i((t=Ki(t)).r,(n=Ki(n)).r),r=i(t.g,n.g),o=i(t.b,n.b),u=he(t.opacity,n.opacity);return function(n){return t.r=e(n),t.g=r(n),t.b=o(n),t.opacity=u(n),t+""}}return e.gamma=t,e}(1);function ve(t){return function(n){var i,e,r=n.length,o=new Array(r),u=new Array(r),a=new Array(r);for(i=0;i<r;++i)e=Ki(n[i]),o[i]=e.r||0,u[i]=e.g||0,a[i]=e.b||0;return o=t(o),u=t(u),a=t(a),e.opacity=1,function(t){return e.r=o(t),e.g=u(t),e.b=a(t),e+""}}}function pe(t,n){var i,e=n?n.length:0,r=t?Math.min(e,t.length):0,o=new Array(r),u=new Array(e);for(i=0;i<r;++i)o[i]=Me(t[i],n[i]);for(;i<e;++i)u[i]=n[i];return function(t){for(i=0;i<r;++i)u[i]=o[i](t);return u}}function ge(t,n){var i=new Date;return t=+t,n=+n,function(e){return i.setTime(t*(1-e)+n*e),i}}function me(t,n){return t=+t,n=+n,function(i){return t*(1-i)+n*i}}function ye(t,n){var i,e={},r={};for(i in null!==t&&"object"==typeof t||(t={}),null!==n&&"object"==typeof n||(n={}),n)i in t?e[i]=Me(t[i],n[i]):r[i]=n[i];return function(t){for(i in e)r[i]=e[i](t);return r}}ve((function(t){var n=t.length-1;return function(i){var e=i<=0?i=0:i>=1?(i=1,n-1):Math.floor(i*n),r=t[e],o=t[e+1],u=e>0?t[e-1]:2*r-o,a=e<n-1?t[e+2]:2*o-r;return ce((i-e/n)*n,u,r,o,a)}})),ve((function(t){var n=t.length;return function(i){var e=Math.floor(((i%=1)<0?++i:i)*n),r=t[(e+n-1)%n],o=t[e%n],u=t[(e+1)%n],a=t[(e+2)%n];return ce((i-e/n)*n,r,o,u,a)}}));var be=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,xe=new RegExp(be.source,"g");function Ce(t,n){var i,e,r,o=be.lastIndex=xe.lastIndex=0,u=-1,a=[],s=[];for(t+="",n+="";(i=be.exec(t))&&(e=xe.exec(n));)(r=e.index)>o&&(r=n.slice(o,r),a[u]?a[u]+=r:a[++u]=r),(i=i[0])===(e=e[0])?a[u]?a[u]+=e:a[++u]=e:(a[++u]=null,s.push({i:u,x:me(i,e)})),o=xe.lastIndex;return o<n.length&&(r=n.slice(o),a[u]?a[u]+=r:a[++u]=r),a.length<2?s[0]?function(t){return function(n){return t(n)+""}}(s[0].x):function(t){return function(){return t}}(n):(n=s.length,function(t){for(var i,e=0;e<n;++e)a[(i=s[e]).i]=i.x(t);return a.join("")})}function we(t,n){n||(n=[]);var i,e=t?Math.min(n.length,t.length):0,r=n.slice();return function(o){for(i=0;i<e;++i)r[i]=t[i]*(1-o)+n[i]*o;return r}}function Me(t,n){var i,e,r=typeof n;return null==n||"boolean"===r?fe(n):("number"===r?me:"string"===r?(i=qi(n))?(n=i,de):Ce:n instanceof qi?de:n instanceof Date?ge:(e=n,!ArrayBuffer.isView(e)||e instanceof DataView?Array.isArray(n)?pe:"function"!=typeof n.valueOf&&"function"!=typeof n.toString||isNaN(n)?ye:me:we))(t,n)}function ke(t,n){return t=+t,n=+n,function(i){return Math.round(t*(1-i)+n*i)}}function Se(t){return+t}var Ae=[0,1];function Le(t){return t}function Ve(t,n){return(n-=t=+t)?function(i){return(i-t)/n}:(i=isNaN(n)?NaN:.5,function(){return i});var i}function De(t,n,i){var e=t[0],r=t[1],o=n[0],u=n[1];return r<e?(e=Ve(r,e),o=i(u,o)):(e=Ve(e,r),o=i(o,u)),function(t){return o(e(t))}}function Ne(t,n,i){var e=Math.min(t.length,n.length)-1,r=new Array(e),o=new Array(e),u=-1;for(t[e]<t[0]&&(t=t.slice().reverse(),n=n.slice().reverse());++u<e;)r[u]=Ve(t[u],t[u+1]),o[u]=i(n[u],n[u+1]);return function(n){var i=Di(t,n,1,e)-1;return o[i](r[i](n))}}function Te(t,n){return n.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function Ee(){return function(){var t,n,i,e,r,o,u=Ae,a=Ae,s=Me,l=Le;function c(){var t,n,i,s=Math.min(u.length,a.length);return l!==Le&&(t=u[0],n=u[s-1],t>n&&(i=t,t=n,n=i),l=function(i){return Math.max(t,Math.min(n,i))}),e=s>2?Ne:De,r=o=null,f}function f(n){return null==n||isNaN(n=+n)?i:(r||(r=e(u.map(t),a,s)))(t(l(n)))}return f.invert=function(i){return l(n((o||(o=e(a,u.map(t),me)))(i)))},f.domain=function(t){return arguments.length?(u=Array.from(t,Se),c()):u.slice()},f.range=function(t){return arguments.length?(a=Array.from(t),c()):a.slice()},f.rangeRound=function(t){return a=Array.from(t),s=ke,c()},f.clamp=function(t){return arguments.length?(l=!!t||Le,c()):l!==Le},f.interpolate=function(t){return arguments.length?(s=t,c()):s},f.unknown=function(t){return arguments.length?(i=t,f):i},function(i,e){return t=i,n=e,c()}}()(Le,Le)}function Oe(t,n){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(n).domain(t)}return this}var Pe,Be=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Fe(t){if(!(n=Be.exec(t)))throw new Error("invalid format: "+t);var n;return new _e({fill:n[1],align:n[2],sign:n[3],symbol:n[4],zero:n[5],width:n[6],comma:n[7],precision:n[8]&&n[8].slice(1),trim:n[9],type:n[10]})}function _e(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+""}function He(t,n){if((i=(t=n?t.toExponential(n-1):t.toExponential()).indexOf("e"))<0)return null;var i,e=t.slice(0,i);return[e.length>1?e[0]+e.slice(2):e,+t.slice(i+1)]}function Re(t){return(t=He(Math.abs(t)))?t[1]:NaN}function Ie(t,n){var i=He(t,n);if(!i)return t+"";var e=i[0],r=i[1];return r<0?"0."+new Array(-r).join("0")+e:e.length>r+1?e.slice(0,r+1)+"."+e.slice(r+1):e+new Array(r-e.length+2).join("0")}Fe.prototype=_e.prototype,_e.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 We={"%":(t,n)=>(100*t).toFixed(n),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,n)=>t.toExponential(n),f:(t,n)=>t.toFixed(n),g:(t,n)=>t.toPrecision(n),o:t=>Math.round(t).toString(8),p:(t,n)=>Ie(100*t,n),r:Ie,s:function(t,n){var i=He(t,n);if(!i)return t+"";var e=i[0],r=i[1],o=r-(Pe=3*Math.max(-8,Math.min(8,Math.floor(r/3))))+1,u=e.length;return o===u?e:o>u?e+new Array(o-u+1).join("0"):o>0?e.slice(0,o)+"."+e.slice(o):"0."+new Array(1-o).join("0")+He(t,Math.max(0,n+o-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function ze(t){return t}var je,Ye,$e,Xe=Array.prototype.map,Ge=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function qe(t){return Math.max(0,-Re(Math.abs(t)))}function Ue(){var t=Ee();return t.copy=function(){return Te(t,Ue())},Oe.apply(t,arguments),function(t){var n=t.domain;return t.ticks=function(t){var i=n();return xi(i[0],i[i.length-1],null==t?10:t)},t.tickFormat=function(t,i){var e=n();return function(t,n,i,e){var r,o=wi(t,n,i);switch((e=Fe(null==e?",f":e)).type){case"s":var u=Math.max(Math.abs(t),Math.abs(n));return null!=e.precision||isNaN(r=function(t,n){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Re(n)/3)))-Re(Math.abs(t)))}(o,u))||(e.precision=r),$e(e,u);case"":case"e":case"g":case"p":case"r":null!=e.precision||isNaN(r=function(t,n){return t=Math.abs(t),n=Math.abs(n)-t,Math.max(0,Re(n)-Re(t))+1}(o,Math.max(Math.abs(t),Math.abs(n))))||(e.precision=r-("e"===e.type));break;case"f":case"%":null!=e.precision||isNaN(r=qe(o))||(e.precision=r-2*("%"===e.type))}return Ye(e)}(e[0],e[e.length-1],null==t?10:t,i)},t.nice=function(i){null==i&&(i=10);var e,r,o=n(),u=0,a=o.length-1,s=o[u],l=o[a],c=10;for(l<s&&(r=s,s=l,l=r,r=u,u=a,a=r);c-- >0;){if((r=Ci(s,l,i))===e)return o[u]=s,o[a]=l,n(o);if(r>0)s=Math.floor(s/r)*r,l=Math.ceil(l/r)*r;else{if(!(r<0))break;s=Math.ceil(s*r)/r,l=Math.floor(l*r)/r}e=r}return t},t}(t)}je=function(t){var n,i,e=void 0===t.grouping||void 0===t.thousands?ze:(n=Xe.call(t.grouping,Number),i=t.thousands+"",function(t,e){for(var r=t.length,o=[],u=0,a=n[0],s=0;r>0&&a>0&&(s+a+1>e&&(a=Math.max(1,e-s)),o.push(t.substring(r-=a,r+a)),!((s+=a+1)>e));)a=n[u=(u+1)%n.length];return o.reverse().join(i)}),r=void 0===t.currency?"":t.currency[0]+"",o=void 0===t.currency?"":t.currency[1]+"",u=void 0===t.decimal?".":t.decimal+"",a=void 0===t.numerals?ze:function(t){return function(n){return n.replace(/[0-9]/g,(function(n){return t[+n]}))}}(Xe.call(t.numerals,String)),s=void 0===t.percent?"%":t.percent+"",l=void 0===t.minus?"−":t.minus+"",c=void 0===t.nan?"NaN":t.nan+"";function f(t){var n=(t=Fe(t)).fill,i=t.align,f=t.sign,h=t.symbol,d=t.zero,v=t.width,p=t.comma,g=t.precision,m=t.trim,y=t.type;"n"===y?(p=!0,y="g"):We[y]||(void 0===g&&(g=12),m=!0,y="g"),(d||"0"===n&&"="===i)&&(d=!0,n="0",i="=");var b="$"===h?r:"#"===h&&/[boxX]/.test(y)?"0"+y.toLowerCase():"",x="$"===h?o:/[%p]/.test(y)?s:"",C=We[y],w=/[defgprs%]/.test(y);function M(t){var r,o,s,h=b,M=x;if("c"===y)M=C(t)+M,t="";else{var k=(t=+t)<0||1/t<0;if(t=isNaN(t)?c:C(Math.abs(t),g),m&&(t=function(t){t:for(var n,i=t.length,e=1,r=-1;e<i;++e)switch(t[e]){case".":r=n=e;break;case"0":0===r&&(r=e),n=e;break;default:if(!+t[e])break t;r>0&&(r=0)}return r>0?t.slice(0,r)+t.slice(n+1):t}(t)),k&&0==+t&&"+"!==f&&(k=!1),h=(k?"("===f?f:l:"-"===f||"("===f?"":f)+h,M=("s"===y?Ge[8+Pe/3]:"")+M+(k&&"("===f?")":""),w)for(r=-1,o=t.length;++r<o;)if(48>(s=t.charCodeAt(r))||s>57){M=(46===s?u+t.slice(r+1):t.slice(r))+M,t=t.slice(0,r);break}}p&&!d&&(t=e(t,1/0));var S=h.length+t.length+M.length,A=S<v?new Array(v-S+1).join(n):"";switch(p&&d&&(t=e(A+t,A.length?v-M.length:1/0),A=""),i){case"<":t=h+t+M+A;break;case"=":t=h+A+t+M;break;case"^":t=A.slice(0,S=A.length>>1)+h+t+M+A.slice(S);break;default:t=A+h+t+M}return a(t)}return g=void 0===g?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),M.toString=function(){return t+""},M}return{format:f,formatPrefix:function(t,n){var i=f(((t=Fe(t)).type="f",t)),e=3*Math.max(-8,Math.min(8,Math.floor(Re(n)/3))),r=Math.pow(10,-e),o=Ge[8+e/3];return function(t){return i(r*t)+o}}}}({thousands:",",grouping:[3],currency:["$",""]}),Ye=je.format,$e=je.formatPrefix;const Ze=1e3,Ke=6e4,Je=36e5,Qe=864e5,tr=6048e5,nr=31536e6,ir=new Date,er=new Date;function rr(t,n,i,e){function r(n){return t(n=0===arguments.length?new Date:new Date(+n)),n}return r.floor=n=>(t(n=new Date(+n)),n),r.ceil=i=>(t(i=new Date(i-1)),n(i,1),t(i),i),r.round=t=>{const n=r(t),i=r.ceil(t);return t-n<i-t?n:i},r.offset=(t,i)=>(n(t=new Date(+t),null==i?1:Math.floor(i)),t),r.range=(i,e,o)=>{const u=[];if(i=r.ceil(i),o=null==o?1:Math.floor(o),!(i<e&&o>0))return u;let a;do{u.push(a=new Date(+i)),n(i,o),t(i)}while(a<i&&i<e);return u},r.filter=i=>rr((n=>{if(n>=n)for(;t(n),!i(n);)n.setTime(n-1)}),((t,e)=>{if(t>=t)if(e<0)for(;++e<=0;)for(;n(t,-1),!i(t););else for(;--e>=0;)for(;n(t,1),!i(t););})),i&&(r.count=(n,e)=>(ir.setTime(+n),er.setTime(+e),t(ir),t(er),Math.floor(i(ir,er))),r.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?r.filter(e?n=>e(n)%t==0:n=>r.count(0,n)%t==0):r:null)),r}const or=rr((()=>{}),((t,n)=>{t.setTime(+t+n)}),((t,n)=>n-t));or.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?rr((n=>{n.setTime(Math.floor(n/t)*t)}),((n,i)=>{n.setTime(+n+i*t)}),((n,i)=>(i-n)/t)):or:null),or.range;const ur=rr((t=>{t.setTime(t-t.getMilliseconds())}),((t,n)=>{t.setTime(+t+n*Ze)}),((t,n)=>(n-t)/Ze),(t=>t.getUTCSeconds())),ar=(ur.range,rr((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Ze)}),((t,n)=>{t.setTime(+t+n*Ke)}),((t,n)=>(n-t)/Ke),(t=>t.getMinutes()))),sr=(ar.range,rr((t=>{t.setUTCSeconds(0,0)}),((t,n)=>{t.setTime(+t+n*Ke)}),((t,n)=>(n-t)/Ke),(t=>t.getUTCMinutes()))),lr=(sr.range,rr((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Ze-t.getMinutes()*Ke)}),((t,n)=>{t.setTime(+t+n*Je)}),((t,n)=>(n-t)/Je),(t=>t.getHours()))),cr=(lr.range,rr((t=>{t.setUTCMinutes(0,0,0)}),((t,n)=>{t.setTime(+t+n*Je)}),((t,n)=>(n-t)/Je),(t=>t.getUTCHours()))),fr=(cr.range,rr((t=>t.setHours(0,0,0,0)),((t,n)=>t.setDate(t.getDate()+n)),((t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Ke)/Qe),(t=>t.getDate()-1))),hr=(fr.range,rr((t=>{t.setUTCHours(0,0,0,0)}),((t,n)=>{t.setUTCDate(t.getUTCDate()+n)}),((t,n)=>(n-t)/Qe),(t=>t.getUTCDate()-1))),dr=(hr.range,rr((t=>{t.setUTCHours(0,0,0,0)}),((t,n)=>{t.setUTCDate(t.getUTCDate()+n)}),((t,n)=>(n-t)/Qe),(t=>Math.floor(t/Qe))));function vr(t){return rr((n=>{n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)}),((t,n)=>{t.setDate(t.getDate()+7*n)}),((t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Ke)/tr))}dr.range;const pr=vr(0),gr=vr(1),mr=vr(2),yr=vr(3),br=vr(4),xr=vr(5),Cr=vr(6);function wr(t){return rr((n=>{n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7),n.setUTCHours(0,0,0,0)}),((t,n)=>{t.setUTCDate(t.getUTCDate()+7*n)}),((t,n)=>(n-t)/tr))}pr.range,gr.range,mr.range,yr.range,br.range,xr.range,Cr.range;const Mr=wr(0),kr=wr(1),Sr=wr(2),Ar=wr(3),Lr=wr(4),Vr=wr(5),Dr=wr(6),Nr=(Mr.range,kr.range,Sr.range,Ar.range,Lr.range,Vr.range,Dr.range,rr((t=>{t.setDate(1),t.setHours(0,0,0,0)}),((t,n)=>{t.setMonth(t.getMonth()+n)}),((t,n)=>n.getMonth()-t.getMonth()+12*(n.getFullYear()-t.getFullYear())),(t=>t.getMonth()))),Tr=(Nr.range,rr((t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),((t,n)=>{t.setUTCMonth(t.getUTCMonth()+n)}),((t,n)=>n.getUTCMonth()-t.getUTCMonth()+12*(n.getUTCFullYear()-t.getUTCFullYear())),(t=>t.getUTCMonth()))),Er=(Tr.range,rr((t=>{t.setMonth(0,1),t.setHours(0,0,0,0)}),((t,n)=>{t.setFullYear(t.getFullYear()+n)}),((t,n)=>n.getFullYear()-t.getFullYear()),(t=>t.getFullYear())));Er.every=t=>isFinite(t=Math.floor(t))&&t>0?rr((n=>{n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)}),((n,i)=>{n.setFullYear(n.getFullYear()+i*t)})):null,Er.range;const Or=rr((t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),((t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n)}),((t,n)=>n.getUTCFullYear()-t.getUTCFullYear()),(t=>t.getUTCFullYear()));function Pr(t,n,i,e,r,o){const u=[[ur,1,Ze],[ur,5,5e3],[ur,15,15e3],[ur,30,3e4],[o,1,Ke],[o,5,3e5],[o,15,9e5],[o,30,18e5],[r,1,Je],[r,3,108e5],[r,6,216e5],[r,12,432e5],[e,1,Qe],[e,2,1728e5],[i,1,tr],[n,1,2592e6],[n,3,7776e6],[t,1,nr]];function a(n,i,e){const r=Math.abs(i-n)/e,o=Si((([,,t])=>t)).right(u,r);if(o===u.length)return t.every(wi(n/nr,i/nr,e));if(0===o)return or.every(Math.max(wi(n,i,e),1));const[a,s]=u[r/u[o-1][2]<u[o][2]/r?o-1:o];return a.every(s)}return[function(t,n,i){const e=n<t;e&&([t,n]=[n,t]);const r=i&&"function"==typeof i.range?i:a(t,n,i),o=r?r.range(t,+n+1):[];return e?o.reverse():o},a]}Or.every=t=>isFinite(t=Math.floor(t))&&t>0?rr((n=>{n.setUTCFullYear(Math.floor(n.getUTCFullYear()/t)*t),n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)}),((n,i)=>{n.setUTCFullYear(n.getUTCFullYear()+i*t)})):null,Or.range;const[Br,Fr]=Pr(Or,Tr,Mr,dr,cr,sr),[_r,Hr]=Pr(Er,Nr,pr,fr,lr,ar);var Rr=new Date,Ir=new Date;function Wr(t,n,i,e){function r(n){return t(n=0===arguments.length?new Date:new Date(+n)),n}return r.floor=function(n){return t(n=new Date(+n)),n},r.ceil=function(i){return t(i=new Date(i-1)),n(i,1),t(i),i},r.round=function(t){var n=r(t),i=r.ceil(t);return t-n<i-t?n:i},r.offset=function(t,i){return n(t=new Date(+t),null==i?1:Math.floor(i)),t},r.range=function(i,e,o){var u,a=[];if(i=r.ceil(i),o=null==o?1:Math.floor(o),!(i<e&&o>0))return a;do{a.push(u=new Date(+i)),n(i,o),t(i)}while(u<i&&i<e);return a},r.filter=function(i){return Wr((function(n){if(n>=n)for(;t(n),!i(n);)n.setTime(n-1)}),(function(t,e){if(t>=t)if(e<0)for(;++e<=0;)for(;n(t,-1),!i(t););else for(;--e>=0;)for(;n(t,1),!i(t););}))},i&&(r.count=function(n,e){return Rr.setTime(+n),Ir.setTime(+e),t(Rr),t(Ir),Math.floor(i(Rr,Ir))},r.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?r.filter(e?function(n){return e(n)%t==0}:function(n){return r.count(0,n)%t==0}):r:null}),r}const zr=864e5,jr=6048e5;function Yr(t){return Wr((function(n){n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7),n.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCDate(t.getUTCDate()+7*n)}),(function(t,n){return(n-t)/jr}))}var $r=Yr(0),Xr=Yr(1),Gr=Yr(2),qr=Yr(3),Ur=Yr(4),Zr=Yr(5),Kr=Yr(6),Jr=($r.range,Xr.range,Gr.range,qr.range,Ur.range,Zr.range,Kr.range,Wr((function(t){t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCDate(t.getUTCDate()+n)}),(function(t,n){return(n-t)/zr}),(function(t){return t.getUTCDate()-1}))),Qr=Jr;function to(t){return Wr((function(n){n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)}),(function(t,n){t.setDate(t.getDate()+7*n)}),(function(t,n){return(n-t-6e4*(n.getTimezoneOffset()-t.getTimezoneOffset()))/jr}))}Jr.range;var no=to(0),io=to(1),eo=to(2),ro=to(3),oo=to(4),uo=to(5),ao=to(6),so=(no.range,io.range,eo.range,ro.range,oo.range,uo.range,ao.range,Wr((t=>t.setHours(0,0,0,0)),((t,n)=>t.setDate(t.getDate()+n)),((t,n)=>(n-t-6e4*(n.getTimezoneOffset()-t.getTimezoneOffset()))/zr),(t=>t.getDate()-1))),lo=so,co=(so.range,Wr((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n)}),(function(t,n){return n.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()})));co.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Wr((function(n){n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)}),(function(n,i){n.setFullYear(n.getFullYear()+i*t)})):null};var fo=co,ho=(co.range,Wr((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n)}),(function(t,n){return n.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()})));ho.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Wr((function(n){n.setUTCFullYear(Math.floor(n.getUTCFullYear()/t)*t),n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)}),(function(n,i){n.setUTCFullYear(n.getUTCFullYear()+i*t)})):null};var vo=ho;function po(t){if(0<=t.y&&t.y<100){var n=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return n.setFullYear(t.y),n}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function go(t){if(0<=t.y&&t.y<100){var n=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return n.setUTCFullYear(t.y),n}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function mo(t,n,i){return{y:t,m:n,d:i,H:0,M:0,S:0,L:0}}function yo(t){var n=t.dateTime,i=t.date,e=t.time,r=t.periods,o=t.days,u=t.shortDays,a=t.months,s=t.shortMonths,l=Do(r),c=No(r),f=Do(o),h=No(o),d=Do(u),v=No(u),p=Do(a),g=No(a),m=Do(s),y=No(s),b={a:function(t){return u[t.getDay()]},A:function(t){return o[t.getDay()]},b:function(t){return s[t.getMonth()]},B:function(t){return a[t.getMonth()]},c:null,d:Ko,e:Ko,f:iu,g:du,G:pu,H:Jo,I:Qo,j:tu,L:nu,m:eu,M:ru,p:function(t){return r[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:Hu,s:Ru,S:ou,u:uu,U:au,V:lu,w:cu,W:fu,x:null,X:null,y:hu,Y:vu,Z:gu,"%":_u},x={a:function(t){return u[t.getUTCDay()]},A:function(t){return o[t.getUTCDay()]},b:function(t){return s[t.getUTCMonth()]},B:function(t){return a[t.getUTCMonth()]},c:null,d:mu,e:mu,f:wu,g:Ou,G:Bu,H:yu,I:bu,j:xu,L:Cu,m:Mu,M:ku,p:function(t){return r[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:Hu,s:Ru,S:Su,u:Au,U:Lu,V:Du,w:Nu,W:Tu,x:null,X:null,y:Eu,Y:Pu,Z:Fu,"%":_u},C={a:function(t,n,i){var e=d.exec(n.slice(i));return e?(t.w=v.get(e[0].toLowerCase()),i+e[0].length):-1},A:function(t,n,i){var e=f.exec(n.slice(i));return e?(t.w=h.get(e[0].toLowerCase()),i+e[0].length):-1},b:function(t,n,i){var e=m.exec(n.slice(i));return e?(t.m=y.get(e[0].toLowerCase()),i+e[0].length):-1},B:function(t,n,i){var e=p.exec(n.slice(i));return e?(t.m=g.get(e[0].toLowerCase()),i+e[0].length):-1},c:function(t,i,e){return k(t,n,i,e)},d:Wo,e:Wo,f:Go,g:_o,G:Fo,H:jo,I:jo,j:zo,L:Xo,m:Io,M:Yo,p:function(t,n,i){var e=l.exec(n.slice(i));return e?(t.p=c.get(e[0].toLowerCase()),i+e[0].length):-1},q:Ro,Q:Uo,s:Zo,S:$o,u:Eo,U:Oo,V:Po,w:To,W:Bo,x:function(t,n,e){return k(t,i,n,e)},X:function(t,n,i){return k(t,e,n,i)},y:_o,Y:Fo,Z:Ho,"%":qo};function w(t,n){return function(i){var e,r,o,u=[],a=-1,s=0,l=t.length;for(i instanceof Date||(i=new Date(+i));++a<l;)37===t.charCodeAt(a)&&(u.push(t.slice(s,a)),null!=(r=Mo[e=t.charAt(++a)])?e=t.charAt(++a):r="e"===e?" ":"0",(o=n[e])&&(e=o(i,r)),u.push(e),s=a+1);return u.push(t.slice(s,a)),u.join("")}}function M(t,n){return function(i){var e,r,o=mo(1900,void 0,1);if(k(o,t,i+="",0)!=i.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(n&&!("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=(e=go(mo(o.y,0,1))).getUTCDay(),e=r>4||0===r?Xr.ceil(e):Xr(e),e=Qr.offset(e,7*(o.V-1)),o.y=e.getUTCFullYear(),o.m=e.getUTCMonth(),o.d=e.getUTCDate()+(o.w+6)%7):(r=(e=po(mo(o.y,0,1))).getDay(),e=r>4||0===r?io.ceil(e):io(e),e=lo.offset(e,7*(o.V-1)),o.y=e.getFullYear(),o.m=e.getMonth(),o.d=e.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),r="Z"in o?go(mo(o.y,0,1)).getUTCDay():po(mo(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(r+5)%7:o.w+7*o.U-(r+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,go(o)):po(o)}}function k(t,n,i,e){for(var r,o,u=0,a=n.length,s=i.length;u<a;){if(e>=s)return-1;if(37===(r=n.charCodeAt(u++))){if(r=n.charAt(u++),!(o=C[r in Mo?n.charAt(u++):r])||(e=o(t,i,e))<0)return-1}else if(r!=i.charCodeAt(e++))return-1}return e}return b.x=w(i,b),b.X=w(e,b),b.c=w(n,b),x.x=w(i,x),x.X=w(e,x),x.c=w(n,x),{format:function(t){var n=w(t+="",b);return n.toString=function(){return t},n},parse:function(t){var n=M(t+="",!1);return n.toString=function(){return t},n},utcFormat:function(t){var n=w(t+="",x);return n.toString=function(){return t},n},utcParse:function(t){var n=M(t+="",!0);return n.toString=function(){return t},n}}}ho.range;var bo,xo,Co,wo,Mo={"-":"",_:" ",0:"0"},ko=/^\s*\d+/,So=/^%/,Ao=/[\\^$*+?|[\]().{}]/g;function Lo(t,n,i){var e=t<0?"-":"",r=(e?-t:t)+"",o=r.length;return e+(o<i?new Array(i-o+1).join(n)+r:r)}function Vo(t){return t.replace(Ao,"\\$&")}function Do(t){return new RegExp("^(?:"+t.map(Vo).join("|")+")","i")}function No(t){return new Map(t.map(((t,n)=>[t.toLowerCase(),n])))}function To(t,n,i){var e=ko.exec(n.slice(i,i+1));return e?(t.w=+e[0],i+e[0].length):-1}function Eo(t,n,i){var e=ko.exec(n.slice(i,i+1));return e?(t.u=+e[0],i+e[0].length):-1}function Oo(t,n,i){var e=ko.exec(n.slice(i,i+2));return e?(t.U=+e[0],i+e[0].length):-1}function Po(t,n,i){var e=ko.exec(n.slice(i,i+2));return e?(t.V=+e[0],i+e[0].length):-1}function Bo(t,n,i){var e=ko.exec(n.slice(i,i+2));return e?(t.W=+e[0],i+e[0].length):-1}function Fo(t,n,i){var e=ko.exec(n.slice(i,i+4));return e?(t.y=+e[0],i+e[0].length):-1}function _o(t,n,i){var e=ko.exec(n.slice(i,i+2));return e?(t.y=+e[0]+(+e[0]>68?1900:2e3),i+e[0].length):-1}function Ho(t,n,i){var e=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(n.slice(i,i+6));return e?(t.Z=e[1]?0:-(e[2]+(e[3]||"00")),i+e[0].length):-1}function Ro(t,n,i){var e=ko.exec(n.slice(i,i+1));return e?(t.q=3*e[0]-3,i+e[0].length):-1}function Io(t,n,i){var e=ko.exec(n.slice(i,i+2));return e?(t.m=e[0]-1,i+e[0].length):-1}function Wo(t,n,i){var e=ko.exec(n.slice(i,i+2));return e?(t.d=+e[0],i+e[0].length):-1}function zo(t,n,i){var e=ko.exec(n.slice(i,i+3));return e?(t.m=0,t.d=+e[0],i+e[0].length):-1}function jo(t,n,i){var e=ko.exec(n.slice(i,i+2));return e?(t.H=+e[0],i+e[0].length):-1}function Yo(t,n,i){var e=ko.exec(n.slice(i,i+2));return e?(t.M=+e[0],i+e[0].length):-1}function $o(t,n,i){var e=ko.exec(n.slice(i,i+2));return e?(t.S=+e[0],i+e[0].length):-1}function Xo(t,n,i){var e=ko.exec(n.slice(i,i+3));return e?(t.L=+e[0],i+e[0].length):-1}function Go(t,n,i){var e=ko.exec(n.slice(i,i+6));return e?(t.L=Math.floor(e[0]/1e3),i+e[0].length):-1}function qo(t,n,i){var e=So.exec(n.slice(i,i+1));return e?i+e[0].length:-1}function Uo(t,n,i){var e=ko.exec(n.slice(i));return e?(t.Q=+e[0],i+e[0].length):-1}function Zo(t,n,i){var e=ko.exec(n.slice(i));return e?(t.s=+e[0],i+e[0].length):-1}function Ko(t,n){return Lo(t.getDate(),n,2)}function Jo(t,n){return Lo(t.getHours(),n,2)}function Qo(t,n){return Lo(t.getHours()%12||12,n,2)}function tu(t,n){return Lo(1+lo.count(fo(t),t),n,3)}function nu(t,n){return Lo(t.getMilliseconds(),n,3)}function iu(t,n){return nu(t,n)+"000"}function eu(t,n){return Lo(t.getMonth()+1,n,2)}function ru(t,n){return Lo(t.getMinutes(),n,2)}function ou(t,n){return Lo(t.getSeconds(),n,2)}function uu(t){var n=t.getDay();return 0===n?7:n}function au(t,n){return Lo(no.count(fo(t)-1,t),n,2)}function su(t){var n=t.getDay();return n>=4||0===n?oo(t):oo.ceil(t)}function lu(t,n){return t=su(t),Lo(oo.count(fo(t),t)+(4===fo(t).getDay()),n,2)}function cu(t){return t.getDay()}function fu(t,n){return Lo(io.count(fo(t)-1,t),n,2)}function hu(t,n){return Lo(t.getFullYear()%100,n,2)}function du(t,n){return Lo((t=su(t)).getFullYear()%100,n,2)}function vu(t,n){return Lo(t.getFullYear()%1e4,n,4)}function pu(t,n){var i=t.getDay();return Lo((t=i>=4||0===i?oo(t):oo.ceil(t)).getFullYear()%1e4,n,4)}function gu(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+Lo(n/60|0,"0",2)+Lo(n%60,"0",2)}function mu(t,n){return Lo(t.getUTCDate(),n,2)}function yu(t,n){return Lo(t.getUTCHours(),n,2)}function bu(t,n){return Lo(t.getUTCHours()%12||12,n,2)}function xu(t,n){return Lo(1+Qr.count(vo(t),t),n,3)}function Cu(t,n){return Lo(t.getUTCMilliseconds(),n,3)}function wu(t,n){return Cu(t,n)+"000"}function Mu(t,n){return Lo(t.getUTCMonth()+1,n,2)}function ku(t,n){return Lo(t.getUTCMinutes(),n,2)}function Su(t,n){return Lo(t.getUTCSeconds(),n,2)}function Au(t){var n=t.getUTCDay();return 0===n?7:n}function Lu(t,n){return Lo($r.count(vo(t)-1,t),n,2)}function Vu(t){var n=t.getUTCDay();return n>=4||0===n?Ur(t):Ur.ceil(t)}function Du(t,n){return t=Vu(t),Lo(Ur.count(vo(t),t)+(4===vo(t).getUTCDay()),n,2)}function Nu(t){return t.getUTCDay()}function Tu(t,n){return Lo(Xr.count(vo(t)-1,t),n,2)}function Eu(t,n){return Lo(t.getUTCFullYear()%100,n,2)}function Ou(t,n){return Lo((t=Vu(t)).getUTCFullYear()%100,n,2)}function Pu(t,n){return Lo(t.getUTCFullYear()%1e4,n,4)}function Bu(t,n){var i=t.getUTCDay();return Lo((t=i>=4||0===i?Ur(t):Ur.ceil(t)).getUTCFullYear()%1e4,n,4)}function Fu(){return"+0000"}function _u(){return"%"}function Hu(t){return+t}function Ru(t){return Math.floor(+t/1e3)}function Iu(t){return new Date(t)}function Wu(t){return t instanceof Date?+t:+new Date(+t)}function zu(t,n,i,e,r,o,u,a,s,l){var c=Ee(),f=c.invert,h=c.domain,d=l(".%L"),v=l(":%S"),p=l("%I:%M"),g=l("%I %p"),m=l("%a %d"),y=l("%b %d"),b=l("%B"),x=l("%Y");function C(t){return(s(t)<t?d:a(t)<t?v:u(t)<t?p:o(t)<t?g:e(t)<t?r(t)<t?m:y:i(t)<t?b:x)(t)}return c.invert=function(t){return new Date(f(t))},c.domain=function(t){return arguments.length?h(Array.from(t,Wu)):h().map(Iu)},c.ticks=function(n){var i=h();return t(i[0],i[i.length-1],null==n?10:n)},c.tickFormat=function(t,n){return null==n?C:l(n)},c.nice=function(t){var i=h();return t&&"function"==typeof t.range||(t=n(i[0],i[i.length-1],null==t?10:t)),t?h(function(t,n){var i,e=0,r=(t=t.slice()).length-1,o=t[e],u=t[r];return u<o&&(i=e,e=r,r=i,i=o,o=u,u=i),t[e]=n.floor(o),t[r]=n.ceil(u),t}(i,t)):c},c.copy=function(){return Te(c,zu(t,n,i,e,r,o,u,a,s,l))},c}function ju(){return Oe.apply(zu(_r,Hr,Er,Nr,pr,fr,lr,ar,ur,xo).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Yu(){return Oe.apply(zu(Br,Fr,Or,Tr,Mr,hr,cr,sr,ur,wo).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}bo=yo({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"]}),xo=bo.format,Co=bo.parse,wo=bo.utcFormat,bo.utcParse;class $u extends Map{constructor(t,n=Gu){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),null!=t)for(const[n,i]of t)this.set(n,i)}get(t){return super.get(Xu(this,t))}has(t){return super.has(Xu(this,t))}set(t,n){return super.set(function({_intern:t,_key:n},i){const e=n(i);return t.has(e)?t.get(e):(t.set(e,i),i)}(this,t),n)}delete(t){return super.delete(function({_intern:t,_key:n},i){const e=n(i);return t.has(e)&&(i=t.get(i),t.delete(e)),i}(this,t))}}function Xu({_intern:t,_key:n},i){const e=n(i);return t.has(e)?t.get(e):i}function Gu(t){return null!==t&&"object"==typeof t?t.valueOf():t}Set;const qu=Symbol("implicit");function Uu(){var t=new $u,n=[],i=[],e=qu;function r(r){let o=t.get(r);if(void 0===o){if(e!==qu)return e;t.set(r,o=n.push(r)-1)}return i[o%i.length]}return r.domain=function(i){if(!arguments.length)return n.slice();n=[],t=new $u;for(const e of i)t.has(e)||t.set(e,n.push(e)-1);return r},r.range=function(t){return arguments.length?(i=Array.from(t),r):i.slice()},r.unknown=function(t){return arguments.length?(e=t,r):e},r.copy=function(){return Uu(n,i).unknown(e)},Oe.apply(r,arguments),r}function Zu(){var t,n,i=Uu().unknown(void 0),e=i.domain,r=i.range,o=0,u=1,a=!1,s=0,l=0,c=.5;function f(){var i=e().length,f=u<o,h=f?u:o,d=f?o:u;t=(d-h)/Math.max(1,i-s+2*l),a&&(t=Math.floor(t)),h+=(d-h-t*(i-s))*c,n=t*(1-s),a&&(h=Math.round(h),n=Math.round(n));var v=function(t,n,i){t=+t,n=+n,i=(r=arguments.length)<2?(n=t,t=0,1):r<3?1:+i;for(var e=-1,r=0|Math.max(0,Math.ceil((n-t)/i)),o=new Array(r);++e<r;)o[e]=t+e*i;return o}(i).map((function(n){return h+t*n}));return r(f?v.reverse():v)}return delete i.unknown,i.domain=function(t){return arguments.length?(e(t),f()):e()},i.range=function(t){return arguments.length?([o,u]=t,o=+o,u=+u,f()):[o,u]},i.rangeRound=function(t){return[o,u]=t,o=+o,u=+u,a=!0,f()},i.bandwidth=function(){return n},i.step=function(){return t},i.round=function(t){return arguments.length?(a=!!t,f()):a},i.padding=function(t){return arguments.length?(s=Math.min(1,l=+t),f()):s},i.paddingInner=function(t){return arguments.length?(s=Math.min(1,t),f()):s},i.paddingOuter=function(t){return arguments.length?(l=+t,f()):l},i.align=function(t){return arguments.length?(c=Math.max(0,Math.min(1,t)),f()):c},i.copy=function(){return Zu(e(),[o,u]).round(a).paddingInner(s).paddingOuter(l).align(c)},Oe.apply(f(),arguments)}function Ku(){}function Ju(t){return null==t?Ku:function(){return this.querySelector(t)}}function Qu(t){return null==t?[]:Array.isArray(t)?t:Array.from(t)}function ta(){return[]}function na(t){return function(n){return n.matches(t)}}var ia=Array.prototype.find;function ea(){return this.firstElementChild}var ra=Array.prototype.filter;function oa(){return Array.from(this.children)}function ua(t){return new Array(t.length)}function aa(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}function sa(t,n,i,e,r,o){for(var u,a=0,s=n.length,l=o.length;a<l;++a)(u=n[a])?(u.__data__=o[a],e[a]=u):i[a]=new aa(t,o[a]);for(;a<s;++a)(u=n[a])&&(r[a]=u)}function la(t,n,i,e,r,o,u){var a,s,l,c=new Map,f=n.length,h=o.length,d=new Array(f);for(a=0;a<f;++a)(s=n[a])&&(d[a]=l=u.call(s,s.__data__,a,n)+"",c.has(l)?r[a]=s:c.set(l,s));for(a=0;a<h;++a)l=u.call(t,o[a],a,o)+"",(s=c.get(l))?(e[a]=s,s.__data__=o[a],c.delete(l)):i[a]=new aa(t,o[a]);for(a=0;a<f;++a)(s=n[a])&&c.get(d[a])===s&&(r[a]=s)}function ca(t){return t.__data__}function fa(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function ha(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}aa.prototype={constructor:aa,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var da="http://www.w3.org/1999/xhtml",va={svg:"http://www.w3.org/2000/svg",xhtml:da,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function pa(t){var n=t+="",i=n.indexOf(":");return i>=0&&"xmlns"!==(n=t.slice(0,i))&&(t=t.slice(i+1)),va.hasOwnProperty(n)?{space:va[n],local:t}:t}function ga(t){return function(){this.removeAttribute(t)}}function ma(t){return function(){this.removeAttributeNS(t.space,t.local)}}function ya(t,n){return function(){this.setAttribute(t,n)}}function ba(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function xa(t,n){return function(){var i=n.apply(this,arguments);null==i?this.removeAttribute(t):this.setAttribute(t,i)}}function Ca(t,n){return function(){var i=n.apply(this,arguments);null==i?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,i)}}function wa(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Ma(t){return function(){this.style.removeProperty(t)}}function ka(t,n,i){return function(){this.style.setProperty(t,n,i)}}function Sa(t,n,i){return function(){var e=n.apply(this,arguments);null==e?this.style.removeProperty(t):this.style.setProperty(t,e,i)}}function Aa(t){return function(){delete this[t]}}function La(t,n){return function(){this[t]=n}}function Va(t,n){return function(){var i=n.apply(this,arguments);null==i?delete this[t]:this[t]=i}}function Da(t){return t.trim().split(/^|\s+/)}function Na(t){return t.classList||new Ta(t)}function Ta(t){this._node=t,this._names=Da(t.getAttribute("class")||"")}function Ea(t,n){for(var i=Na(t),e=-1,r=n.length;++e<r;)i.add(n[e])}function Oa(t,n){for(var i=Na(t),e=-1,r=n.length;++e<r;)i.remove(n[e])}function Pa(t){return function(){Ea(this,t)}}function Ba(t){return function(){Oa(this,t)}}function Fa(t,n){return function(){(n.apply(this,arguments)?Ea:Oa)(this,t)}}function _a(){this.textContent=""}function Ha(t){return function(){this.textContent=t}}function Ra(t){return function(){var n=t.apply(this,arguments);this.textContent=null==n?"":n}}function Ia(){this.innerHTML=""}function Wa(t){return function(){this.innerHTML=t}}function za(t){return function(){var n=t.apply(this,arguments);this.innerHTML=null==n?"":n}}function ja(){this.nextSibling&&this.parentNode.appendChild(this)}function Ya(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function $a(t){return function(){var n=this.ownerDocument,i=this.namespaceURI;return i===da&&n.documentElement.namespaceURI===da?n.createElement(t):n.createElementNS(i,t)}}function Xa(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Ga(t){var n=pa(t);return(n.local?Xa:$a)(n)}function qa(){return null}function Ua(){var t=this.parentNode;t&&t.removeChild(this)}function Za(){var t=this.cloneNode(!1),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function Ka(){var t=this.cloneNode(!0),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function Ja(t){return function(){var n=this.__on;if(n){for(var i,e=0,r=-1,o=n.length;e<o;++e)i=n[e],t.type&&i.type!==t.type||i.name!==t.name?n[++r]=i:this.removeEventListener(i.type,i.listener,i.options);++r?n.length=r:delete this.__on}}}function Qa(t,n,i){return function(){var e,r=this.__on,o=function(t){return function(n){t.call(this,n,this.__data__)}}(n);if(r)for(var u=0,a=r.length;u<a;++u)if((e=r[u]).type===t.type&&e.name===t.name)return this.removeEventListener(e.type,e.listener,e.options),this.addEventListener(e.type,e.listener=o,e.options=i),void(e.value=n);this.addEventListener(t.type,o,i),e={type:t.type,name:t.name,value:n,listener:o,options:i},r?r.push(e):this.__on=[e]}}function ts(t,n,i){var e=wa(t),r=e.CustomEvent;"function"==typeof r?r=new r(n,i):(r=e.document.createEvent("Event"),i?(r.initEvent(n,i.bubbles,i.cancelable),r.detail=i.detail):r.initEvent(n,!1,!1)),t.dispatchEvent(r)}function ns(t,n){return function(){return ts(this,t,n)}}function is(t,n){return function(){return ts(this,t,n.apply(this,arguments))}}Ta.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var n=this._names.indexOf(t);n>=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var es,rs,os,us,as=[null];function ss(t,n){this._groups=t,this._parents=n}function ls(t){return"string"==typeof t?new ss([[document.querySelector(t)]],[document.documentElement]):new ss([[t]],as)}function cs(t){return"string"==typeof t?new ss([document.querySelectorAll(t)],[document.documentElement]):new ss([Qu(t)],as)}function fs(t,n,i){var e=t.domainNRangeValues,r=t.showRoundOffXTickValues,o=void 0!==r&&r,u=t.xAxistickSize,a=void 0===u?6:u,s=t.tickPadding,l=void 0===s?10:s,c=t.xAxisCount,f=void 0===c?6:c,h=t.xAxisElement,d=Ue().domain([e.dStartValue,e.dEndValue]).range([e.rStartValue,e.rEndValue]);o&&d.nice();var v=hi(d).tickSize(a).tickPadding(l).ticks(f).tickFormat((function(t,n){var e="number"==typeof t?t:t.valueOf();return Ps(e,i)}));n===rs.HorizontalBarChartWithAxis&&v.tickSizeInner(-(t.containerHeight-t.margins.top)),h&&ls(h).call(v).selectAll("text").attr("aria-hidden","true");var p=d.ticks(f).map(v.tickFormat());return{xScale:d,tickValues:p}}function hs(t,n,i){var e=n?i?n.utcFormat:n.format:i?wo:xo,r=e(".%L"),o=e(":%S"),u=e("%I:%M"),a=e("%I %p"),s=e("%a %d"),l=e("%b %d"),c=e("%B"),f=e("%Y"),h=i?sr:ar,d=i?cr:lr,v=i?hr:fr,p=i?Tr:Nr,g=i?Mr:pr,m=i?Or:Er;return(ur(t)<t?r:h(t)<t?o:d(t)<t?u:v(t)<t?a:p(t)<t?g(t)<t?s:l:m(t)<t?c:f)(t)}function ds(t,n){var i=t.yMinMaxValues,e=void 0===i?{startValue:0,endValue:0}:i,r=t.yAxisElement,o=void 0===r?null:r,u=t.yMaxValue,a=void 0===u?0:u,s=t.yMinValue,l=void 0===s?0:s,c=t.containerHeight,f=t.margins,h=t.tickPadding,d=void 0===h?12:h,v=t.maxOfYVal,p=void 0===v?0:v,g=t.yAxisTickFormat,m=t.yAxisTickCount,y=void 0===m?4:m,b=p||e.endValue,x=b>a?b:a,C=e.startValue<l?0:l,w=Ue().domain([C,x]).range([c-f.bottom,f.top]),M=(n?fi(w):di(w)).tickPadding(d).ticks(y);return g?M.tickFormat(g):M.tickFormat(Ye(".2~s")),o&&ls(o).call(M).selectAll("text").attr("aria-hidden","true"),w}function vs(t,n,i,e,r,o){void 0===r&&(r=!1),void 0===o&&(o=!1);var u=t.yMinMaxValues,a=void 0===u?{startValue:0,endValue:0}:u,s=t.yAxisElement,l=void 0===s?null:s,c=t.yMaxValue,f=void 0===c?0:c,h=t.yMinValue,d=void 0===h?0:h,v=t.containerHeight,p=t.containerWidth,g=t.margins,m=t.tickPadding,y=void 0===m?12:m,b=t.maxOfYVal,x=void 0===b?0:b,C=t.yAxisTickFormat,w=t.yAxisTickCount,M=void 0===w?4:w,k=t.eventAnnotationProps,S=t.eventLabelHeight,A=x||a.endValue,L=A>f?A:f,V=o?Math.min(a.startValue,d||0):a.startValue<d?0:d,D=function(t,n,i,e){var r=e||(t-n)/i>=1?Math.ceil((t-n)/i):(t-n)/i,o=[n<0&&t>=0?0:n];if(o[0]===n&&o.push(n+r),n<0&&t>=0){for(;o[o.length-1]>n;)o.push(o[o.length-1]-r);o.reverse()}for(;o[o.length-1]<t;)o.push(o[o.length-1]+r);return o}(L,V,M,e),N=Ue().domain([o?D[0]:V,D[D.length-1]]).range([v-g.bottom,g.top+(k?S:0)]),T=(!n&&r||n&&!r?fi(N):di(N)).tickPadding(y).tickValues(D).tickSizeInner(-(p-g.left-g.right));return C?T.tickFormat(C):T.tickFormat(Ye(".2~s")),l&&ls(l).call(T).selectAll("text").attr("aria-hidden","true"),i.yAxisDomainValues=D,N}ss.prototype=function(){return new ss([[document.documentElement]],as)}.prototype={constructor:ss,select:function(t){"function"!=typeof t&&(t=Ju(t));for(var n=this._groups,i=n.length,e=new Array(i),r=0;r<i;++r)for(var o,u,a=n[r],s=a.length,l=e[r]=new Array(s),c=0;c<s;++c)(o=a[c])&&(u=t.call(o,o.__data__,c,a))&&("__data__"in o&&(u.__data__=o.__data__),l[c]=u);return new ss(e,this._parents)},selectAll:function(t){t="function"==typeof t?function(t){return function(){return Qu(t.apply(this,arguments))}}(t):function(t){return null==t?ta:function(){return this.querySelectorAll(t)}}(t);for(var n=this._groups,i=n.length,e=[],r=[],o=0;o<i;++o)for(var u,a=n[o],s=a.length,l=0;l<s;++l)(u=a[l])&&(e.push(t.call(u,u.__data__,l,a)),r.push(u));return new ss(e,r)},selectChild:function(t){return this.select(null==t?ea:function(t){return function(){return ia.call(this.children,t)}}("function"==typeof t?t:na(t)))},selectChildren:function(t){return this.selectAll(null==t?oa:function(t){return function(){return ra.call(this.children,t)}}("function"==typeof t?t:na(t)))},filter:function(t){"function"!=typeof t&&(t=function(t){return function(){return this.matches(t)}}(t));for(var n=this._groups,i=n.length,e=new Array(i),r=0;r<i;++r)for(var o,u=n[r],a=u.length,s=e[r]=[],l=0;l<a;++l)(o=u[l])&&t.call(o,o.__data__,l,u)&&s.push(o);return new ss(e,this._parents)},data:function(t,n){if(!arguments.length)return Array.from(this,ca);var i,e=n?la:sa,r=this._parents,o=this._groups;"function"!=typeof t&&(i=t,t=function(){return i});for(var u=o.length,a=new Array(u),s=new Array(u),l=new Array(u),c=0;c<u;++c){var f=r[c],h=o[c],d=h.length,v=fa(t.call(f,f&&f.__data__,c,r)),p=v.length,g=s[c]=new Array(p),m=a[c]=new Array(p);e(f,h,g,m,l[c]=new Array(d),v,n);for(var y,b,x=0,C=0;x<p;++x)if(y=g[x]){for(x>=C&&(C=x+1);!(b=m[C])&&++C<p;);y._next=b||null}}return(a=new ss(a,r))._enter=s,a._exit=l,a},enter:function(){return new ss(this._enter||this._groups.map(ua),this._parents)},exit:function(){return new ss(this._exit||this._groups.map(ua),this._parents)},join:function(t,n,i){var e=this.enter(),r=this,o=this.exit();return"function"==typeof t?(e=t(e))&&(e=e.selection()):e=e.append(t+""),null!=n&&(r=n(r))&&(r=r.selection()),null==i?o.remove():i(o),e&&r?e.merge(r).order():r},merge:function(t){for(var n=t.selection?t.selection():t,i=this._groups,e=n._groups,r=i.length,o=e.length,u=Math.min(r,o),a=new Array(r),s=0;s<u;++s)for(var l,c=i[s],f=e[s],h=c.length,d=a[s]=new Array(h),v=0;v<h;++v)(l=c[v]||f[v])&&(d[v]=l);for(;s<r;++s)a[s]=i[s];return new ss(a,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,n=-1,i=t.length;++n<i;)for(var e,r=t[n],o=r.length-1,u=r[o];--o>=0;)(e=r[o])&&(u&&4^e.compareDocumentPosition(u)&&u.parentNode.insertBefore(e,u),u=e);return this},sort:function(t){function n(n,i){return n&&i?t(n.__data__,i.__data__):!n-!i}t||(t=ha);for(var i=this._groups,e=i.length,r=new Array(e),o=0;o<e;++o){for(var u,a=i[o],s=a.length,l=r[o]=new Array(s),c=0;c<s;++c)(u=a[c])&&(l[c]=u);l.sort(n)}return new ss(r,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var t=this._groups,n=0,i=t.length;n<i;++n)for(var e=t[n],r=0,o=e.length;r<o;++r){var u=e[r];if(u)return u}return null},size:function(){let t=0;for(const n of this)++t;return t},empty:function(){return!this.node()},each:function(t){for(var n=this._groups,i=0,e=n.length;i<e;++i)for(var r,o=n[i],u=0,a=o.length;u<a;++u)(r=o[u])&&t.call(r,r.__data__,u,o);return this},attr:function(t,n){var i=pa(t);if(arguments.length<2){var e=this.node();return i.local?e.getAttributeNS(i.space,i.local):e.getAttribute(i)}return this.each((null==n?i.local?ma:ga:"function"==typeof n?i.local?Ca:xa:i.local?ba:ya)(i,n))},style:function(t,n,i){return arguments.length>1?this.each((null==n?Ma:"function"==typeof n?Sa:ka)(t,n,null==i?"":i)):function(t,n){return t.style.getPropertyValue(n)||wa(t).getComputedStyle(t,null).getPropertyValue(n)}(this.node(),t)},property:function(t,n){return arguments.length>1?this.each((null==n?Aa:"function"==typeof n?Va:La)(t,n)):this.node()[t]},classed:function(t,n){var i=Da(t+"");if(arguments.length<2){for(var e=Na(this.node()),r=-1,o=i.length;++r<o;)if(!e.contains(i[r]))return!1;return!0}return this.each(("function"==typeof n?Fa:n?Pa:Ba)(i,n))},text:function(t){return arguments.length?this.each(null==t?_a:("function"==typeof t?Ra:Ha)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?Ia:("function"==typeof t?za:Wa)(t)):this.node().innerHTML},raise:function(){return this.each(ja)},lower:function(){return this.each(Ya)},append:function(t){var n="function"==typeof t?t:Ga(t);return this.select((function(){return this.appendChild(n.apply(this,arguments))}))},insert:function(t,n){var i="function"==typeof t?t:Ga(t),e=null==n?qa:"function"==typeof n?n:Ju(n);return this.select((function(){return this.insertBefore(i.apply(this,arguments),e.apply(this,arguments)||null)}))},remove:function(){return this.each(Ua)},clone:function(t){return this.select(t?Ka:Za)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,n,i){var e,r,o=function(t){return t.trim().split(/^|\s+/).map((function(t){var n="",i=t.indexOf(".");return i>=0&&(n=t.slice(i+1),t=t.slice(0,i)),{type:t,name:n}}))}(t+""),u=o.length;if(!(arguments.length<2)){for(a=n?Qa:Ja,e=0;e<u;++e)this.each(a(o[e],n,i));return this}var a=this.node().__on;if(a)for(var s,l=0,c=a.length;l<c;++l)for(e=0,s=a[l];e<u;++e)if((r=o[e]).type===s.type&&r.name===s.name)return s.value},dispatch:function(t,n){return this.each(("function"==typeof n?is:ns)(t,n))},[Symbol.iterator]:function*(){for(var t=this._groups,n=0,i=t.length;n<i;++n)for(var e,r=t[n],o=0,u=r.length;o<u;++o)(e=r[o])&&(yield e)}},function(t){t[t.AreaChart=0]="AreaChart",t[t.LineChart=1]="LineChart",t[t.VerticalBarChart=2]="VerticalBarChart",t[t.VerticalStackedBarChart=3]="VerticalStackedBarChart",t[t.GroupedVerticalBarChart=4]="GroupedVerticalBarChart",t[t.HeatMapChart=5]="HeatMapChart",t[t.HorizontalBarChartWithAxis=6]="HorizontalBarChartWithAxis"}(rs||(rs={})),function(t){t[t.NumericAxis=0]="NumericAxis",t[t.DateAxis=1]="DateAxis",t[t.StringAxis=2]="StringAxis"}(os||(os={})),function(t){t[t.NumericAxis=0]="NumericAxis",t[t.DateAxis=1]="DateAxis",t[t.StringAxis=2]="StringAxis"}(us||(us={}));var ps=function(t,n,i,e){var r=t.containerHeight,o=t.tickPadding,u=void 0===o?12:o,a=t.margins,s=t.yAxisTickFormat,l=t.yAxisElement,c=Zu().domain(n).range([r-a.bottom-e/2,a.top+e/2]),f=(i?fi(c):di(c)).tickPadding(u).ticks(n);return s&&f.tickFormat(s),l&&ls(l).call(f).selectAll("text"),c},gs=function(t,n,i){var e=t.containerHeight,r=t.tickPadding,o=void 0===r?12:r,u=t.margins,a=t.yAxisTickFormat,s=t.yAxisElement,l=t.yAxisPadding,c=void 0===l?0:l,f=Zu().domain(n).range([e-u.bottom,u.top]).padding(c),h=(i?fi(f):di(f)).tickPadding(o).tickValues(n).tickSize(0);return a&&h.tickFormat(a),s&&ls(s).call(h).selectAll("text"),f};function ms(t){var n=[];t.forEach((function(t){var i=t.data.filter((function(t){return!t.hideCallout})).map((function(n){return(0,o.Cl)((0,o.Cl)({},n),{legend:t.legend,color:t.color,index:t.index})}));n=n.concat(i)}));var i={};return n.forEach((function(t){var n=t.x instanceof Date?t.x.getTime():t.x;n in i?i[n].push({legend:t.legend,y:t.y,color:t.color,xAxisCalloutData:t.xAxisCalloutData,yAxisCalloutData:t.yAxisCalloutData,callOutAccessibilityData:t.callOutAccessibilityData,index:t.index}):i[n]=[{legend:t.legend,y:t.y,color:t.color,xAxisCalloutData:t.xAxisCalloutData,yAxisCalloutData:t.yAxisCalloutData,callOutAccessibilityData:t.callOutAccessibilityData,index:t.index}]})),Object.keys(i).map((function(t){return{x:Number(t),values:i[t]}}))}var ys=function(t,n,i){var e=ls("#".concat(n));if(e.text(t),!e.node())return!1;for(var r=!1,o=e.node().getComputedTextLength();o>i&&t.length>0;)t=t.slice(0,-1),e.text(t+"..."),r=!0,o=e.node().getComputedTextLength();return r},bs=function(t,n){void 0===n&&(n="none");var i=0,e=document.createElement("canvas").getContext("2d");if(e){var r=document.querySelector(n);if(r){var o=window.getComputedStyle(r,null),u=o.getPropertyValue("font-weight"),a=o.getPropertyValue("font-size"),s=o.getPropertyValue("font-family");e.font="".concat(u," ").concat(a," ").concat(s)}else e.font='600 10px "Segoe UI"';t.forEach((function(t){i=Math.max(e.measureText(t.toString()).width,i)}))}return i};function xs(t){var n=t.tooltipCls,i=t.xAxis,e=t.id;if(null===i)return null;for(var r=ls("body").append("div").attr("id",e).attr("class",n).style("opacity",0),o=i.selectAll("#BaseSpan")._groups[0],u=o&&Object.keys(o).length,a=[],s=0;s<u;s++){var l=o[s].dataset&&Object.values(o[s].dataset)[0];a.push(l)}var c=i.selectAll(".tick")._groups[0],f=c&&Object.keys(c).length,h=function(t){ls(c[t]).on("mouseover",(function(n,i){r.style("opacity",.9),r.text(a[t]).style("left",n.pageX+"px").style("top",n.pageY-28+"px")})).on("mouseout",(function(t){r.style("opacity",0)}))};for(s=0;s<f;s++)h(s)}function Cs(t){var n=!1;return t&&t.length>0&&t.forEach((function(t){t.data.length>0&&(n=t.data[0].x instanceof Date)})),n}function ws(t,n,i,e){var r=vi(t,(function(t){return vi(t.data,(function(t){return t.x}))})),o=pi(t,(function(t){return pi(t.data,(function(t){return t.x}))})),u=n.left,a=i-n.right;return e?{dStartValue:o,dEndValue:r,rStartValue:u,rEndValue:a}:{dStartValue:r,dEndValue:o,rStartValue:u,rEndValue:a}}function Ms(t,n,i){var e=t.left,r=n-t.right;return i?{dStartValue:0,dEndValue:0,rStartValue:r,rEndValue:e}:{dStartValue:0,dEndValue:0,rStartValue:e,rEndValue:r}}function ks(t,n,i,e,r,u,a){var s,l;void 0===r&&(r=[]),u===rs.AreaChart||u===rs.LineChart?(s=vi(t,(function(t){return vi(t.data,(function(t){return t.x}))})),l=pi(t,(function(t){return pi(t.data,(function(t){return t.x}))})),s=vi((0,o.fX)((0,o.fX)([],r,!0),[s],!1)),l=pi((0,o.fX)((0,o.fX)([],r,!0),[l],!1))):(s=vi(t,(function(t){return t.x})),l=pi(t,(function(t){return t.x})));var c=n.left,f=i-n.right;return e?{dStartValue:l,dEndValue:s,rStartValue:c,rEndValue:f}:{dStartValue:s,dEndValue:l,rStartValue:c,rEndValue:f}}function Ss(t){var n=pi(t,(function(t){return pi(t.data,(function(t){return t.y}))}));return{startValue:vi(t,(function(t){return vi(t.data,(function(t){return t.y}))})),endValue:n}}function As(t){var n=pi(t,(function(t){return t.y}));return{startValue:vi(t,(function(t){return t.y})),endValue:n}}function Ls(t){var n=pi(t,(function(t){return void 0!==t.lineData?t.y>t.lineData.y?t.y:t.lineData.y:t.y}));return{startValue:vi(t,(function(t){return void 0!==t.lineData?t.y<t.lineData.y?t.y:t.lineData.y:t.y})),endValue:n}}function Vs(t,n){if(void 0!==n&&n===us.NumericAxis){var i=pi(t,(function(t){return t.y}));return{startValue:vi(t,(function(t){return t.y})),endValue:i}}return{startValue:0,endValue:0}}var Ds,Ns,Ts=function(t,n){if(n)switch(typeof t){case"string":return os.StringAxis;case"number":return os.NumericAxis;default:return os.DateAxis}else switch(typeof t){case"string":return us.StringAxis;case"number":return us.NumericAxis;default:return us.DateAxis}};!function(t){t[t.circle=0]="circle",t[t.square=1]="square",t[t.triangle=2]="triangle",t[t.diamond=3]="diamond",t[t.pyramid=4]="pyramid",t[t.hexagon=5]="hexagon",t[t.pentagon=6]="pentagon",t[t.octagon=7]="octagon"}(Ds||(Ds={})),function(t){t[t.dottedLine=0]="dottedLine"}(Ns||(Ns={}));var Es=((es={})[Ds.circle]={widthRatio:1},es[Ds.square]={widthRatio:1},es[Ds.triangle]={widthRatio:1},es[Ds.diamond]={widthRatio:1},es[Ds.pyramid]={widthRatio:1},es[Ds.hexagon]={widthRatio:2},es[Ds.pentagon]={widthRatio:1.168},es[Ds.octagon]={widthRatio:2.414},es),Os=function(t,n,i){return void 0===n&&(n="text"),void 0===i&&(i=!0),{role:n,"data-is-focusable":i,"aria-label":(t=null!=t?t:{}).ariaLabel,"aria-labelledby":t.ariaLabelledBy,"aria-describedby":t.ariaDescribedBy}},Ps=function(t,n){return null==t||Number.isNaN(t)?t:(n=n||void 0,"number"==typeof t?t.toLocaleString(n):"string"!=typeof t||window.isNaN(Number(t))?t instanceof Date?t.toLocaleDateString(n):t:Number(t).toLocaleString(n))};function Bs(t){return $e(t<1e3?".2~":".1",t)(t)}var Fs=function(t,n,i){var e;return void 0===i&&(i=16),e="number"==typeof t?t:"default"===t||void 0===t?Math.min(i,16):i,"number"==typeof n&&(e=Math.min(e,n)),Math.max(e,1)},_s=function(t,n,i){void 0===i&&(i=0);var e="number"==typeof t?t:"number"==typeof n?n:i;return Math.max(0,Math.min(e,1))},Hs=function(t,n){return"number"==typeof t||"number"==typeof n},Rs=function(t,n){return(n?wo:xo)("%-e %b %Y, %H:%M")(t)+(n?" GMT":"")};function Is(t){return void 0===t&&(t={}),t.dangerouslySetInnerHTML,(0,o.Tt)(t,["dangerouslySetInnerHTML"])}function Ws(t,n){if(t===n)return!0;if(!t&&!n)return!0;if(!t||!n||t.length!==n.length)return!1;for(var i=0;i<t.length;i++)if(t[i]!==n[i])return!1;return!0}var zs,js=i(357),Ys={gradient1:"default.1",gradient2:"default.2",gradient3:"default.3",gradient4:"default.4",gradient5:"default.5",gradient6:"default.6",gradient7:"default.7",gradient8:"default.8",gradient9:"default.9",gradient10:"default.10",gradient1Ext:"extended.1",gradient2Ext:"extended.2",gradient3Ext:"extended.3",gradient4Ext:"extended.4",gradient5Ext:"extended.5",gradient6Ext:"extended.6",gradient7Ext:"extended.7",gradient8Ext:"extended.8",gradient9Ext:"extended.9",gradient10Ext:"extended.10",success:"semantic.success",highSuccess:"semantic.highSuccess",warning:"semantic.warning",error:"semantic.error",highError:"semantic.highError",disabled:"semantic.disabled"},$s={1:[["#4760D5","#637CEF"],["#4F6BED","#637CEF"]],2:[["#795AA6","#9373C0"],["#8764B8","#A083C9"]],3:[["#159195","#2AA0A4"],["#159195","#2AA0A4"]],4:[["#B146C2","#C36BD1"],["#B146C2","#C36BD1"]],5:[["#3487C7","#3A96DD"],["#3487C7","#3A96DD"]],6:[["#0E7A0B","#13A10E"],["#11910D","#27AC22"]],7:[["#E61C99","#EE5FB7"],["#E61C99","#EE5FB7"]],8:[["#CA5010","#D77440"],["#CA5010","#D77440"]],9:[["#57811B","#689920"],["#57811B","#689920"]],10:[["#937700","#AE8C00"],["#937700","#AE8C00"]]},Xs={default:$s,semantic:{success:[["#0C5E0C","#107C10"],["#218C21","#359B35"]],highSuccess:[["#107C10","#359B35"],["#359B35","#9FD89F"]],warning:[["#DE590B","#F7630C"],["#DE590B","#F87528"]],error:[["#B10E1C","#CC2635"],["#D33F4C","#EEACB2"]],highError:[["#6E0811","#B10E1C"],["#D33F4C","#DC626D"]],disabled:[["#E6E6E6","#E6E6E6"],["#E6E6E6","#E6E6E6"]]},extended:{1:[["#2C3C85","#3C51B4"],["#93A4F4","#C8D1FA"]],2:[["#4C3867","#674C8C"],["#A083C9","#B29AD4"]],3:[["#02494C","#038387"],["#4CB4B7","#9BD9DB"]],4:[["#63276D","#863593"],["#C36BD1","#CF87DA"]],5:[["#20547C","#2C72A8"],["#4FA1E1","#83BDEB"]],6:[["#0B5A08","#0E7A0B"],["#27AC22","#5EC75A"]],7:[["#AD006A","#E3008C"],["#EE5FB7","#F7ADDA"]],8:[["#9A3D0C","#CA5010"],["#D77440","#DF8E64"]],9:[["#405F14","#57811B"],["#73AA24","#A4CC6C"]],10:[["#6D5700","#937700"],["#D0B232","#DAC157"]]}},Gs=Object.values($s),qs=Object.values(Ys),Us=function(t,n){if(0===t.length)return["",""];var i=Number(n);return i<t.length?t[i]:t[0]},Zs=function(t,n,i){void 0===n&&(n=0),void 0===i&&(i=!1);var e=Gs[(t+n)%Gs.length];return Us(e,i)},Ks=function(t,n){if(void 0===n&&(n=!1),qs.indexOf(t)>=0){var i=t.split("."),e=i[0],r=i[1],o=Xs[e][r];return Us(o,n)}return[t,t]};function Js(t){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];return n.length<2?n[0]:function(){for(var i=[],e=0;e<arguments.length;e++)i[e]=arguments[e];n.forEach((function(n){return n&&n.apply(t,i)}))}}function Qs(t){!function(t,n){for(var i in n)n.hasOwnProperty(i)&&(t[i]=Js(t,t[i],n[i]))}(t,{componentDidMount:tl,componentDidUpdate:nl,componentWillUnmount:il})}function tl(){el(this.props.componentRef,this)}function nl(t){t.componentRef!==this.props.componentRef&&(el(t.componentRef,null),el(this.props.componentRef,this))}function il(){el(this.props.componentRef,null)}function el(t,n){t&&("object"==typeof t?t.current=n:"function"==typeof t&&t(n))}function rl(t,n,i){var e,r=w(t,(function(t){var i;return n===t||!!(null===(i=t.hasAttribute)||void 0===i?void 0:i.call(t,Nn))}),i);return null!==r&&!!(null===(e=r.hasAttribute)||void 0===e?void 0:e.call(r,Nn))}!function(t){t[t.vertical=0]="vertical",t[t.horizontal=1]="horizontal",t[t.bidirectional=2]="bidirectional",t[t.domOrder=3]="domOrder"}(zs||(zs={}));var ol,ul=u.createContext(void 0),al="data-is-focusable",sl="data-focuszone-id",ll="tabindex",cl="data-no-vertical-wrap",fl="data-no-horizontal-wrap",hl=999999999,dl=-999999999;function vl(t,n){var i;"function"==typeof MouseEvent?i=new MouseEvent("click",{ctrlKey:null==n?void 0:n.ctrlKey,metaKey:null==n?void 0:n.metaKey,shiftKey:null==n?void 0:n.shiftKey,altKey:null==n?void 0:n.altKey,bubbles:null==n?void 0:n.bubbles,cancelable:null==n?void 0:n.cancelable}):(i=document.createEvent("MouseEvents")).initMouseEvent("click",!!n&&n.bubbles,!!n&&n.cancelable,window,0,0,0,0,0,!!n&&n.ctrlKey,!!n&&n.altKey,!!n&&n.shiftKey,!!n&&n.metaKey,0,null),t.dispatchEvent(i)}var pl,gl={},ml=new Set,yl=["text","number","password","email","tel","url","search","textarea"],bl=!1,xl=function(t){function n(i){var e,r,o,a,l,c=t.call(this,i)||this;c._root=u.createRef(),c._mergedRef=(l={refs:[]},function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return l.resolver&&function(t,n){if(t.length!==n.length)return!1;for(var i=0;i<t.length;i++)if(t[i]!==n[i])return!1;return!0}(l.refs,t)||(l.resolver=function(t){return function(n){for(var i=0,e=t.refs;i<e.length;i++){var r=e[i];"function"==typeof r?r(n):r&&(r.current=n)}}}(l)),l.refs=t,l.resolver}),c._onFocus=function(t){if(!c._portalContainsElement(t.target)){var n,i=c.props,e=i.onActiveElementChanged,r=i.doNotAllowFocusEventToPropagate,o=i.stopFocusPropagation,u=i.onFocusNotification,a=i.onFocus,s=i.shouldFocusInnerElementWhenReceivedFocus,l=i.defaultTabbableElement,f=c._isImmediateDescendantOfZone(t.target);if(f)n=t.target;else for(var h=t.target;h&&h!==c._root.current;){if(P(h,void 0,c._inShadowRoot)&&c._isImmediateDescendantOfZone(h)){n=h;break}h=C(h,bl)}if(s&&t.target===c._root.current){var d=l&&"function"==typeof l&&c._root.current&&l(c._root.current);d&&P(d,void 0,c._inShadowRoot)?(n=d,d.focus()):(c.focus(!0),c._activeElement&&(n=null))}var v=!c._activeElement;n&&n!==c._activeElement&&((f||v)&&c._setFocusAlignment(n,!0,!0),c._activeElement=n,v&&c._updateTabIndexes()),e&&e(c._activeElement,t),(o||r)&&t.stopPropagation(),a?a(t):u&&u()}},c._onBlur=function(){c._setParkedFocus(!1)},c._onMouseDown=function(t){if(!c._portalContainsElement(t.target)&&!c.props.disabled){for(var n=t.target,i=[];n&&n!==c._root.current;)i.push(n),n=C(n,bl);for(;i.length&&((n=i.pop())&&P(n,void 0,c._inShadowRoot)&&c._setActiveElement(n,!0),!B(n)););}},c._onKeyDown=function(t,n){if(!c._portalContainsElement(t.target)){var i=c.props,e=i.direction,r=i.disabled,o=i.isInnerZoneKeystroke,u=i.pagingSupportDisabled,a=i.shouldEnterInnerZone;if(!(r||(c.props.onKeyDown&&c.props.onKeyDown(t),t.isDefaultPrevented()||c._getDocument().activeElement===c._root.current&&c._isInnerZone))){if((a&&a(t)||o&&o(t))&&c._isImmediateDescendantOfZone(t.target)){var l=c._getFirstInnerZone();if(l){if(!l.focus(!0))return}else{if(!F(t.target))return;if(!c.focusElement(T(t.target,t.target.firstChild,!0)))return}}else{if(t.altKey)return;switch(t.which){case 32:if(c._shouldRaiseClicksOnSpace&&c._tryInvokeClickForFocusable(t.target,t))break;return;case 37:if(e!==zs.vertical&&(c._preventDefaultWhenHandled(t),c._moveFocusLeft(n)))break;return;case 39:if(e!==zs.vertical&&(c._preventDefaultWhenHandled(t),c._moveFocusRight(n)))break;return;case 38:if(e!==zs.horizontal&&(c._preventDefaultWhenHandled(t),c._moveFocusUp()))break;return;case 40:if(e!==zs.horizontal&&(c._preventDefaultWhenHandled(t),c._moveFocusDown()))break;return;case 34:if(!u&&c._moveFocusPaging(!0))break;return;case 33:if(!u&&c._moveFocusPaging(!1))break;return;case 9:if(c.props.allowTabKey||1===c.props.handleTabKey||2===c.props.handleTabKey&&c._isElementInput(t.target)){var f=!1;if(c._processingTabKey=!0,f=e!==zs.vertical&&c._shouldWrapFocus(c._activeElement,fl)?((0,s.jI)(n)?!t.shiftKey:t.shiftKey)?c._moveFocusLeft(n):c._moveFocusRight(n):t.shiftKey?c._moveFocusUp():c._moveFocusDown(),c._processingTabKey=!1,f)break;c.props.shouldResetActiveElementWhenTabFromZone&&(c._activeElement=null)}return;case 36:if(c._isContentEditableElement(t.target)||c._isElementInput(t.target)&&!c._shouldInputLoseFocus(t.target,!1))return!1;var h=c._root.current&&c._root.current.firstChild;if(c._root.current&&h&&c.focusElement(T(c._root.current,h,!0)))break;return;case 35:if(c._isContentEditableElement(t.target)||c._isElementInput(t.target)&&!c._shouldInputLoseFocus(t.target,!0))return!1;var d=c._root.current&&c._root.current.lastChild;if(c._root.current&&c.focusElement(N(c._root.current,d,!0,!0,!0)))break;return;case 13:if(c._shouldRaiseClicksOnEnter&&c._tryInvokeClickForFocusable(t.target,t))break;return;default:return}}t.preventDefault(),t.stopPropagation()}}},c._getHorizontalDistanceFromCenter=function(t,n,i){var e=c._focusAlignment.left||c._focusAlignment.x||0,r=Math.floor(i.top),o=Math.floor(n.bottom),u=Math.floor(i.bottom),a=Math.floor(n.top);return t&&r>o||!t&&u<a?e>=i.left&&e<=i.left+i.width?0:Math.abs(i.left+i.width/2-e):c._shouldWrapFocus(c._activeElement,cl)?hl:dl},Qs(c),In("FocusZone",i,{rootProps:void 0,allowTabKey:"handleTabKey",elementType:"as",ariaDescribedBy:"aria-describedby",ariaLabelledBy:"aria-labelledby"}),c._id=g("FocusZone"),c._focusAlignment={left:0,top:0},c._processingTabKey=!1;var f=null===(r=null!==(e=i.shouldRaiseClicks)&&void 0!==e?e:n.defaultProps.shouldRaiseClicks)||void 0===r||r;return c._shouldRaiseClicksOnEnter=null!==(o=i.shouldRaiseClicksOnEnter)&&void 0!==o?o:f,c._shouldRaiseClicksOnSpace=null!==(a=i.shouldRaiseClicksOnSpace)&&void 0!==a?a:f,c}return(0,o.C6)(n,t),n.getOuterZones=function(){return ml.size},n._onKeyDownCapture=function(t){9===t.which&&ml.forEach((function(t){return t._updateTabIndexes()}))},n.prototype.componentDidMount=function(){var t,i=this._root.current;if(this._inShadowRoot=!!(null===(t=this.context)||void 0===t?void 0:t.shadowRoot),gl[this._id]=this,i){for(var e=C(i,bl);e&&e!==this._getDocument().body&&1===e.nodeType;){if(B(e)){this._isInnerZone=!0;break}e=C(e,bl)}this._isInnerZone||(ml.add(this),this._root.current&&this._root.current.addEventListener("keydown",n._onKeyDownCapture,!0)),this._root.current&&this._root.current.addEventListener("blur",this._onBlur,!0),this._updateTabIndexes(),this.props.defaultTabbableElement&&"string"==typeof this.props.defaultTabbableElement?this._activeElement=this._getDocument().querySelector(this.props.defaultTabbableElement):this.props.defaultActiveElement&&(this._activeElement=this._getDocument().querySelector(this.props.defaultActiveElement)),this.props.shouldFocusOnMount&&this.focus()}},n.prototype.componentDidUpdate=function(){var t,n=this._root.current,i=this._getDocument();if(this._inShadowRoot=!!(null===(t=this.context)||void 0===t?void 0:t.shadowRoot),(this._activeElement&&!M(this._root.current,this._activeElement,bl)||this._defaultFocusElement&&!M(this._root.current,this._defaultFocusElement,bl))&&(this._activeElement=null,this._defaultFocusElement=null,this._updateTabIndexes()),!this.props.preventFocusRestoration&&i&&this._lastIndexPath&&(i.activeElement===i.body||null===i.activeElement||i.activeElement===n)){var e=function(t,n){for(var i=t,e=0,r=n;e<r.length;e++){var o=r[e],u=i.children[Math.min(o,i.children.length-1)];if(!u)break;i=u}return P(i)&&E(i)?i:T(t,i,!0)||N(t,i)}(n,this._lastIndexPath);e?(this._setActiveElement(e,!0),e.focus(),this._setParkedFocus(!1)):this._setParkedFocus(!0)}},n.prototype.componentWillUnmount=function(){delete gl[this._id],this._isInnerZone||(ml.delete(this),this._root.current&&this._root.current.removeEventListener("keydown",n._onKeyDownCapture,!0)),this._root.current&&this._root.current.removeEventListener("blur",this._onBlur,!0),this._activeElement=null,this._defaultFocusElement=null},n.prototype.render=function(){var t=this,n=this.props,i=n.as,e=n.elementType,r=n.rootProps,a=n.ariaDescribedBy,s=n.ariaLabelledBy,l=n.className,c=q(this.props,Y),f=i||e||"div";this._evaluateFocusBeforeRender();var h=(0,$t.O4)();return u.createElement(f,(0,o.Cl)({"aria-labelledby":s,"aria-describedby":a},c,r,{className:U((ol||(ol=(0,nt.Z)({selectors:{":focus":{outline:"none"}}},"ms-FocusZone")),ol),l),ref:this._mergedRef(this.props.elementRef,this._root),"data-focuszone-id":this._id,onKeyDown:function(n){return t._onKeyDown(n,h)},onFocus:this._onFocus,onMouseDownCapture:this._onMouseDown}),this.props.children)},n.prototype.focus=function(t,n){if(void 0===t&&(t=!1),void 0===n&&(n=!1),this._root.current){if(!t&&"true"===this._root.current.getAttribute(al)&&this._isInnerZone){var i=this._getOwnerZone(this._root.current);if(i!==this._root.current){var e=gl[i.getAttribute(sl)];return!!e&&e.focusElement(this._root.current)}return!1}if(!t&&this._activeElement&&M(this._root.current,this._activeElement)&&P(this._activeElement,void 0,this._inShadowRoot)&&(!n||O(this._activeElement)))return this._activeElement.focus(),!0;var r=this._root.current.firstChild;return this.focusElement(T(this._root.current,r,!0,void 0,void 0,void 0,void 0,void 0,n))}return!1},n.prototype.focusLast=function(){if(this._root.current){var t=this._root.current&&this._root.current.lastChild;return this.focusElement(N(this._root.current,t,!0,!0,!0))}return!1},n.prototype.focusElement=function(t,n){var i=this.props,e=i.onBeforeFocus,r=i.shouldReceiveFocus;return!(r&&!r(t)||e&&!e(t)||!t||(this._setActiveElement(t,n),this._activeElement&&this._activeElement.focus(),0))},n.prototype.setFocusAlignment=function(t){this._focusAlignment=t},Object.defineProperty(n.prototype,"defaultFocusElement",{get:function(){return this._defaultFocusElement},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"activeElement",{get:function(){return this._activeElement},enumerable:!1,configurable:!0}),n.prototype._evaluateFocusBeforeRender=function(){var t=this._root.current,n=this._getDocument();if(n){var i=n.activeElement;if(i!==t){var e=M(t,i,!1);this._lastIndexPath=e?function(t,n){for(var i=[];n&&t&&n!==t;){var e=C(n,!0);if(null===e)return[];i.unshift(Array.prototype.indexOf.call(e.children,n)),n=e}return i}(t,i):void 0}}},n.prototype._setParkedFocus=function(t){var n=this._root.current;n&&this._isParked!==t&&(this._isParked=t,t?(this.props.allowFocusRoot||(this._parkedTabIndex=n.getAttribute("tabindex"),n.setAttribute("tabindex","-1")),n.focus()):this.props.allowFocusRoot||(this._parkedTabIndex?(n.setAttribute("tabindex",this._parkedTabIndex),this._parkedTabIndex=void 0):n.removeAttribute("tabindex")))},n.prototype._setActiveElement=function(t,n){var i=this._activeElement;this._activeElement=t,i&&(B(i)&&this._updateTabIndexes(i),i.tabIndex=-1),this._activeElement&&(this._focusAlignment&&!n||this._setFocusAlignment(t,!0,!0),this._activeElement.tabIndex=0)},n.prototype._preventDefaultWhenHandled=function(t){this.props.preventDefaultWhenHandled&&t.preventDefault()},n.prototype._tryInvokeClickForFocusable=function(t,n){var i=t;if(i===this._root.current)return!1;do{if("BUTTON"===i.tagName||"A"===i.tagName||"INPUT"===i.tagName||"TEXTAREA"===i.tagName||"SUMMARY"===i.tagName)return!1;if(this._isImmediateDescendantOfZone(i)&&"true"===i.getAttribute(al)&&"true"!==i.getAttribute("data-disable-click-on-enter"))return vl(i,n),!0;i=C(i,bl)}while(i!==this._root.current);return!1},n.prototype._getFirstInnerZone=function(t){if(!(t=t||this._activeElement||this._root.current))return null;if(B(t))return gl[t.getAttribute(sl)];for(var n=t.firstElementChild;n;){if(B(n))return gl[n.getAttribute(sl)];var i=this._getFirstInnerZone(n);if(i)return i;n=n.nextElementSibling}return null},n.prototype._moveFocus=function(t,n,i,e){void 0===e&&(e=!0);var r=this._activeElement,o=-1,u=void 0,a=!1,s=this.props.direction===zs.bidirectional;if(!r||!this._root.current)return!1;if(this._isElementInput(r)&&!this._shouldInputLoseFocus(r,t))return!1;var l=s?r.getBoundingClientRect():null;do{if(r=t?T(this._root.current,r):N(this._root.current,r),!s){u=r;break}if(r){var c=n(l,r.getBoundingClientRect());if(-1===c&&-1===o){u=r;break}if(c>-1&&(-1===o||c<o)&&(o=c,u=r),o>=0&&c<0)break}}while(r);if(u&&u!==this._activeElement)a=!0,this.focusElement(u);else if(this.props.isCircularNavigation&&e)return t?this.focusElement(T(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement(N(this._root.current,this._root.current.lastElementChild,!0,!0,!0));return a},n.prototype._moveFocusDown=function(){var t=this,n=-1,i=this._focusAlignment.left||this._focusAlignment.x||0;return!!this._moveFocus(!0,(function(e,r){var o=-1,u=Math.floor(r.top),a=Math.floor(e.bottom);return u<a?t._shouldWrapFocus(t._activeElement,cl)?hl:dl:((-1===n&&u>=a||u===n)&&(n=u,o=i>=r.left&&i<=r.left+r.width?0:Math.abs(r.left+r.width/2-i)),o)}))&&(this._setFocusAlignment(this._activeElement,!1,!0),!0)},n.prototype._moveFocusUp=function(){var t=this,n=-1,i=this._focusAlignment.left||this._focusAlignment.x||0;return!!this._moveFocus(!1,(function(e,r){var o=-1,u=Math.floor(r.bottom),a=Math.floor(r.top),s=Math.floor(e.top);return u>s?t._shouldWrapFocus(t._activeElement,cl)?hl:dl:((-1===n&&u<=s||a===n)&&(n=a,o=i>=r.left&&i<=r.left+r.width?0:Math.abs(r.left+r.width/2-i)),o)}))&&(this._setFocusAlignment(this._activeElement,!1,!0),!0)},n.prototype._moveFocusLeft=function(t){var n=this,i=this._shouldWrapFocus(this._activeElement,fl);return!!this._moveFocus((0,s.jI)(t),(function(e,r){var o=-1;return((0,s.jI)(t)?parseFloat(r.top.toFixed(3))<parseFloat(e.bottom.toFixed(3)):parseFloat(r.bottom.toFixed(3))>parseFloat(e.top.toFixed(3)))&&r.right<=e.right&&n.props.direction!==zs.vertical?o=e.right-r.right:i||(o=dl),o}),void 0,i)&&(this._setFocusAlignment(this._activeElement,!0,!1),!0)},n.prototype._moveFocusRight=function(t){var n=this,i=this._shouldWrapFocus(this._activeElement,fl);return!!this._moveFocus(!(0,s.jI)(t),(function(e,r){var o=-1;return((0,s.jI)(t)?parseFloat(r.bottom.toFixed(3))>parseFloat(e.top.toFixed(3)):parseFloat(r.top.toFixed(3))<parseFloat(e.bottom.toFixed(3)))&&r.left>=e.left&&n.props.direction!==zs.vertical?o=r.left-e.left:i||(o=dl),o}),void 0,i)&&(this._setFocusAlignment(this._activeElement,!0,!1),!0)},n.prototype._moveFocusPaging=function(t,n){void 0===n&&(n=!0);var i=this._activeElement;if(!i||!this._root.current)return!1;if(this._isElementInput(i)&&!this._shouldInputLoseFocus(i,t))return!1;var e=et(i);if(!e)return!1;var r=-1,o=void 0,u=-1,a=-1,s=e.clientHeight,l=i.getBoundingClientRect();do{if(i=t?T(this._root.current,i):N(this._root.current,i)){var c=i.getBoundingClientRect(),f=Math.floor(c.top),h=Math.floor(l.bottom),d=Math.floor(c.bottom),v=Math.floor(l.top),p=this._getHorizontalDistanceFromCenter(t,l,c);if(t&&f>h+s||!t&&d<v-s)break;p>-1&&(t&&f>u?(u=f,r=p,o=i):!t&&d<a?(a=d,r=p,o=i):(-1===r||p<=r)&&(r=p,o=i))}}while(i);var g=!1;if(o&&o!==this._activeElement)g=!0,this.focusElement(o),this._setFocusAlignment(o,!1,!0);else if(this.props.isCircularNavigation&&n)return t?this.focusElement(T(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement(N(this._root.current,this._root.current.lastElementChild,!0,!0,!0));return g},n.prototype._setFocusAlignment=function(t,n,i){if(this.props.direction===zs.bidirectional&&(!this._focusAlignment||n||i)){var e=t.getBoundingClientRect(),r=e.left+e.width/2,o=e.top+e.height/2;this._focusAlignment||(this._focusAlignment={left:r,top:o}),n&&(this._focusAlignment.left=r),i&&(this._focusAlignment.top=o)}},n.prototype._isImmediateDescendantOfZone=function(t){return this._getOwnerZone(t)===this._root.current},n.prototype._getOwnerZone=function(t){for(var n=C(t,bl);n&&n!==this._root.current&&n!==this._getDocument().body;){if(B(n))return n;n=C(n,bl)}return n},n.prototype._updateTabIndexes=function(t){!this._activeElement&&this.props.defaultTabbableElement&&"function"==typeof this.props.defaultTabbableElement&&(this._activeElement=this.props.defaultTabbableElement(this._root.current)),!t&&this._root.current&&(this._defaultFocusElement=null,t=this._root.current,this._activeElement&&!M(t,this._activeElement)&&(this._activeElement=null)),this._activeElement&&!P(this._activeElement,void 0,this._inShadowRoot)&&(this._activeElement=null);for(var n=t&&t.children,i=0;n&&i<n.length;i++){var e=n[i];B(e)?"true"===e.getAttribute(al)&&(this._isInnerZone||(this._activeElement||this._defaultFocusElement)&&this._activeElement!==e?"-1"!==e.getAttribute(ll)&&e.setAttribute(ll,"-1"):(this._defaultFocusElement=e,"0"!==e.getAttribute(ll)&&e.setAttribute(ll,"0"))):(e.getAttribute&&"false"===e.getAttribute(al)&&e.setAttribute(ll,"-1"),P(e,void 0,this._inShadowRoot)?this.props.disabled?e.setAttribute(ll,"-1"):this._isInnerZone||(this._activeElement||this._defaultFocusElement)&&this._activeElement!==e?"-1"!==e.getAttribute(ll)&&e.setAttribute(ll,"-1"):(this._defaultFocusElement=e,"0"!==e.getAttribute(ll)&&e.setAttribute(ll,"0")):"svg"===e.tagName&&"false"!==e.getAttribute("focusable")&&e.setAttribute("focusable","false")),this._updateTabIndexes(e)}},n.prototype._isContentEditableElement=function(t){return t&&"true"===t.getAttribute("contenteditable")},n.prototype._isElementInput=function(t){return!(!t||!t.tagName||"input"!==t.tagName.toLowerCase()&&"textarea"!==t.tagName.toLowerCase())},n.prototype._shouldInputLoseFocus=function(t,n){if(!this._processingTabKey&&t&&t.type&&yl.indexOf(t.type.toLowerCase())>-1){var i=t.selectionStart,e=i!==t.selectionEnd,r=t.value,o=t.readOnly;if(e||i>0&&!n&&!o||i!==r.length&&n&&!o||this.props.handleTabKey&&(!this.props.shouldInputLoseFocusOnArrowKey||!this.props.shouldInputLoseFocusOnArrowKey(t)))return!1}return!0},n.prototype._shouldWrapFocus=function(t,n){return!this.props.checkForNoWrap||function(t,n,i){return"true"!==function(t,n,i){var e=w(t,(function(t){return t.hasAttribute(n)}),i);return e&&e.getAttribute(n)}(t,n,null!=i?i:(0,k.Y)())}(t,n)},n.prototype._portalContainsElement=function(t){return t&&!!this._root.current&&rl(t,this._root.current)},n.prototype._getDocument=function(){return(0,k.Y)(this._root.current)},n.contextType=ul,n.defaultProps={isCircularNavigation:!1,direction:zs.bidirectional,shouldRaiseClicks:!0,"data-tabster":'{"uncontrolled": {}}'},n}(u.Component);function Cl(t){return function(t){return t.clientWidth<t.scrollWidth}(t)||function(t){return t.clientHeight<t.scrollHeight}(t)}!function(t){t[t.Parent=0]="Parent",t[t.Self=1]="Self"}(pl||(pl={}));var wl,Ml=(0,a.Z)(),kl=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n._onRenderContent=function(t){return"string"==typeof t.content?u.createElement("p",{className:n._classNames.subText},t.content):u.createElement("div",{className:n._classNames.subText},t.content)},n}return(0,o.C6)(n,t),n.prototype.render=function(){var t=this.props,n=t.className,i=t.calloutProps,e=t.directionalHint,r=t.directionalHintForRTL,a=t.styles,s=t.id,l=t.maxWidth,c=t.onRenderContent,f=void 0===c?this._onRenderContent:c,h=t.targetElement,d=t.theme;return this._classNames=Ml(a,{theme:d,className:n||i&&i.className,beakWidth:i&&i.isBeakVisible?i.beakWidth:0,gapSpace:i&&i.gapSpace,maxWidth:l}),u.createElement(Kn,(0,o.Cl)({target:h,directionalHint:e,directionalHintForRTL:r},i,q(this.props,G,["id"]),{className:this._classNames.root}),u.createElement("div",{className:this._classNames.content,id:s,onFocus:this.props.onFocus,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave},f(this.props,this._onRenderContent)))},n.defaultProps={directionalHint:x.topCenter,maxWidth:"364px",calloutProps:{isBeakVisible:!0,beakWidth:16,gapSpace:0,setInitialFocus:!0,doNotLayer:!1}},n}(u.Component),Sl=(0,r.I)(kl,(function(t){var n=t.className,i=t.beakWidth,e=void 0===i?16:i,r=t.gapSpace,o=void 0===r?0:r,u=t.maxWidth,a=t.theme,s=a.semanticColors,l=a.fonts,c=a.effects,f=-(Math.sqrt(e*e/2)+o)+1/window.devicePixelRatio;return{root:["ms-Tooltip",a.fonts.medium,$t.lw.fadeIn200,{background:s.menuBackground,boxShadow:c.elevation8,padding:"8px",maxWidth:u,selectors:{":after":{content:"''",position:"absolute",bottom:f,left:f,right:f,top:f,zIndex:0}}},n],content:["ms-Tooltip-content",l.small,{position:"relative",zIndex:1,color:s.menuItemText,wordWrap:"break-word",overflowWrap:"break-word",overflow:"hidden"}],subText:["ms-Tooltip-subtext",{fontSize:"inherit",fontWeight:"inherit",color:"inherit",margin:0}]}}),void 0,{scope:"Tooltip"});!function(t){t[t.zero=0]="zero",t[t.medium=1]="medium",t[t.long=2]="long"}(wl||(wl={}));var Al,Ll,Vl=(0,a.Z)(),Dl=function(t){function n(i){var e=t.call(this,i)||this;return e._tooltipHost=u.createRef(),e._defaultTooltipId=g("tooltip"),e.show=function(){e._toggleTooltip(!0)},e.dismiss=function(){e._hideTooltip()},e._getTargetElement=function(){if(e._tooltipHost.current){var t=e.props.overflowMode;if(void 0!==t)switch(t){case pl.Parent:return e._tooltipHost.current.parentElement;case pl.Self:return e._tooltipHost.current}return e._tooltipHost.current}},e._onTooltipFocus=function(t){e._ignoreNextFocusEvent?e._ignoreNextFocusEvent=!1:e._onTooltipMouseEnter(t)},e._onTooltipContentFocus=function(t){n._currentVisibleTooltip&&n._currentVisibleTooltip!==e&&n._currentVisibleTooltip.dismiss(),n._currentVisibleTooltip=e,e._clearDismissTimer(),e._clearOpenTimer()},e._onTooltipBlur=function(t){var n;e._ignoreNextFocusEvent=(null===(n=Ut(e.context))||void 0===n?void 0:n.activeElement)===t.target,e._dismissTimerId=e._async.setTimeout((function(){e._hideTooltip()}),0)},e._onTooltipMouseEnter=function(t){var i=e.props,r=i.overflowMode,o=i.delay,u=Ut(e.context);if(n._currentVisibleTooltip&&n._currentVisibleTooltip!==e&&n._currentVisibleTooltip.dismiss(),n._currentVisibleTooltip=e,void 0!==r){var a=e._getTargetElement();if(a&&!Cl(a))return}if(!t.target||!rl(t.target,e._getTargetElement(),u))if(e._clearDismissTimer(),e._clearOpenTimer(),o!==wl.zero){var s=e._getDelayTime(o);e._openTimerId=e._async.setTimeout((function(){e._toggleTooltip(!0)}),s)}else e._toggleTooltip(!0)},e._onTooltipMouseLeave=function(t){var i=e.props.closeDelay;e._clearDismissTimer(),e._clearOpenTimer(),i?e._dismissTimerId=e._async.setTimeout((function(){e._toggleTooltip(!1)}),i):e._toggleTooltip(!1),n._currentVisibleTooltip===e&&(n._currentVisibleTooltip=void 0)},e._onTooltipKeyDown=function(t){(t.which===Bt||t.ctrlKey)&&e.state.isTooltipVisible&&(e._hideTooltip(),t.stopPropagation())},e._clearDismissTimer=function(){e._async.clearTimeout(e._dismissTimerId)},e._clearOpenTimer=function(){e._async.clearTimeout(e._openTimerId)},e._hideTooltip=function(){e._clearOpenTimer(),e._clearDismissTimer(),e._toggleTooltip(!1)},e._toggleTooltip=function(t){e.state.isTooltipVisible!==t&&e.setState({isTooltipVisible:t},(function(){return e.props.onTooltipToggle&&e.props.onTooltipToggle(t)}))},e._getDelayTime=function(t){switch(t){case wl.medium:return 300;case wl.long:return 500;default:return 0}},Qs(e),e.state={isAriaPlaceholderRendered:!1,isTooltipVisible:!1},e}return(0,o.C6)(n,t),n.prototype.render=function(){var t=this.props,n=t.calloutProps,i=t.children,e=t.content,r=t.directionalHint,a=t.directionalHintForRTL,s=t.hostClassName,l=t.id,c=t.setAriaDescribedBy,f=void 0===c||c,h=t.tooltipProps,d=t.styles,v=t.theme;this._classNames=Vl(d,{theme:v,className:s});var p=this.state.isTooltipVisible,g=l||this._defaultTooltipId,m=(0,o.Cl)((0,o.Cl)({id:"".concat(g,"--tooltip"),content:e,targetElement:this._getTargetElement(),directionalHint:r,directionalHintForRTL:a,calloutProps:Z({},n,{onDismiss:this._hideTooltip,onFocus:this._onTooltipContentFocus,onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave}),onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave},q(this.props,G,["id"])),h),y=(null==h?void 0:h.onRenderContent)?h.onRenderContent(m,(function(t){return(null==t?void 0:t.content)?u.createElement(u.Fragment,null,t.content):null})):e,b=p&&!!y,x=f&&p&&y?g:void 0;return u.createElement("div",{className:this._classNames.root,ref:this._tooltipHost,onFocusCapture:this._onTooltipFocus,onBlurCapture:this._onTooltipBlur,onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave,onKeyDown:this._onTooltipKeyDown,role:"none","aria-describedby":x},i,b&&u.createElement(Sl,(0,o.Cl)({},m)),u.createElement("div",{hidden:!0,id:g,style:$t.dX},y))},n.prototype.componentDidMount=function(){this._async=new Ft(this)},n.prototype.componentWillUnmount=function(){n._currentVisibleTooltip&&n._currentVisibleTooltip===this&&(n._currentVisibleTooltip=void 0),this._async.dispose()},n.defaultProps={delay:wl.medium},n.contextType=It,n}(u.Component),Nl={root:"ms-TooltipHost",ariaPlaceholder:"ms-TooltipHost-aria-placeholder"},Tl=(0,r.I)(Dl,(function(t){var n=t.className,i=t.theme;return{root:[(0,$t.Km)(Nl,i).root,{display:"inline"},n]}}),void 0,{scope:"TooltipHost"}),El=function(t){function n(n){var i=t.call(this,n)||this;return i._tooltipChild=u.createRef(),i._checkTextOverflow=function(){var t=i._getTargetElement(),n=!!t&&Cl(t);n!==i.state.textOverflow&&i.setState({textOverflow:n})},i._getTargetElement=function(){if(i._tooltipChild.current&&i._tooltipChild.current.parentElement)return i._tooltipChild.current.parentElement},i.state={textOverflow:!1},i._async=new Ft(i),i}return(0,o.C6)(n,t),n.prototype.render=function(){var t=this.props,n=t.className,i=t.content,e=t.accessibilityData;return u.createElement(Tl,{overflowMode:pl.Self,hostClassName:n,content:i},u.createElement("span",(0,o.Cl)({},Os(e),{ref:this._tooltipChild,"data-is-focusable":this.state.textOverflow}),i))},n.prototype.componentDidMount=function(){var t=this._getTargetElement();window.ResizeObserver&&t&&(this._resizeObserver=new ResizeObserver(this._async.debounce(this._checkTextOverflow,500)),this._resizeObserver.observe(t))},n.prototype.componentWillUnmount=function(){var t;null===(t=this._resizeObserver)||void 0===t||t.disconnect(),this._async.dispose()},n}(u.Component),Ol=(0,a.Z)(),Pl=function(t){function n(n){var i=t.call(this,n)||this;return i._isRTL=(0,s.jI)(),i._handleChartMouseLeave=function(){i._calloutAnchorPoint=null,i.state.isCalloutVisible&&i.setState({isCalloutVisible:!1,hoverValue:"",refSelected:null,lineColor:"",legend:""})},i._adjustProps=function(){i._barHeight=i.props.barHeight||12,i._classNames=Ol(i.props.styles,{theme:i.props.theme,width:i.props.width,className:i.props.className,barHeight:i._barHeight,color:i.state.lineColor,variant:i.props.variant,hideLabels:i.props.hideLabels})},i._getChartDataText=function(t){return i.props.barChartCustomData?u.createElement("div",{role:"text"},i.props.barChartCustomData(t)):i._getDefaultTextData(t)},i._closeCallout=function(){i.setState({isCalloutVisible:!1})},i._getAriaLabel=function(t){var n,i=t.xAxisCalloutData||t.legend,e=t.data,r=t.yAxisCalloutData||(t.horizontalBarChartdata?"".concat(t.horizontalBarChartdata.x,"/").concat(t.horizontalBarChartdata.y):0);return(null===(n=t.callOutAccessibilityData)||void 0===n?void 0:n.ariaLabel)||(i?"".concat(i,", "):"")+"".concat(r,".")+(e?"with benchmark at "+"".concat(e,", "):"")},i.state={isCalloutVisible:!1,hoverValue:"",lineColor:"",legend:"",refSelected:null,color:"",xCalloutValue:"",yCalloutValue:"",barSpacingInPercent:0},i._refArray=[],i._uniqLineText="_HorizontalLine_"+Math.random().toString(36).substring(7),i._hoverOff=i._hoverOff.bind(i),i._calloutId=g("callout"),i._emptyChartId=g("_HBC_empty"),i.barChartSvgRef=u.createRef(),i}return(0,o.C6)(n,t),n.prototype.componentDidMount=function(){var t,n=(null===(t=this.barChartSvgRef.current)||void 0===t?void 0:t.getBoundingClientRect().width)||0;if(n){var i=3/n*100;this.setState({barSpacingInPercent:i})}},n.prototype.render=function(){var t=this,n=this.props,i=n.data,e=n.theme;this._adjustProps();var r=e.palette,a=0;return this._isChartEmpty()?u.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):u.createElement("div",{className:this._classNames.root,onMouseLeave:this._handleChartMouseLeave},i.map((function(n,i){a=n.chartData&&n.chartData[0]&&n.chartData[0].horizontalBarChartdata.x?n.chartData[0].horizontalBarChartdata.x:0,n.chartData[1]={legend:"",horizontalBarChartdata:{x:n.chartData[0].horizontalBarChartdata.y-a,y:n.chartData[0].horizontalBarChartdata.y},color:r.neutralLight};var e=t.props.variant===v.AbsoluteScale?null:t._getChartDataText(n),o=t._createBars(n,r,i),s=t._uniqLineText+"_"+i,l=Ol(t.props.styles,{theme:t.props.theme,width:t.props.width,showTriangle:!!n.chartData[0].data,variant:t.props.variant});return u.createElement("div",{key:i},u.createElement("div",{className:l.items},u.createElement(xl,{direction:zs.horizontal},u.createElement("div",{className:t._classNames.chartTitle},n.chartTitle&&u.createElement(El,{className:t._classNames.chartTitleLeft,content:n.chartTitle,accessibilityData:n.chartTitleAccessibilityData}),e)),n.chartData[0].data&&t._createBenchmark(n),u.createElement(xl,{direction:zs.horizontal,className:t._classNames.chartWrapper},u.createElement("svg",{ref:t.barChartSvgRef,className:t._classNames.chart,"aria-label":n.chartTitle},u.createElement("g",{id:s,key:s,ref:function(i){t._refCallback(i,n.chartData[0].legend)},onClick:function(){var t=n.chartData[0];t&&t.onClick&&t.onClick()}},o)))))})),u.createElement(Kn,(0,o.Cl)({target:this.state.refSelected,coverTarget:!0,isBeakVisible:!1,gapSpace:30,hidden:!(!this.props.hideTooltip&&this.state.isCalloutVisible),directionalHint:x.topAutoEdge,id:this._calloutId,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0},this.props.calloutProps,Os(this.state.callOutAccessibilityData)),u.createElement(u.Fragment,null,this.props.onRenderCalloutPerHorizontalBar?this.props.onRenderCalloutPerHorizontalBar(this.state.barCalloutProps):u.createElement(js.ChartHoverCard,{Legend:this.state.xCalloutValue?this.state.xCalloutValue:this.state.legend,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.hoverValue,color:this.state.lineColor,culture:this.props.culture}))))},n.prototype._refCallback=function(t,n){this._refArray.push({index:n,refElement:t})},n.prototype._hoverOn=function(t,n){var i,e,r,o;if((!this.state.isCalloutVisible||this.state.legend!==n.legend)&&this._calloutAnchorPoint!==n){var u=b(this._refArray,(function(t){return t.index===n.legend}));this._calloutAnchorPoint=n;var a=n.color;if(this.props.enableGradient){var s=Math.max((null===(e=null===(i=this.props.data)||void 0===i?void 0:i.map((function(t){return t.chartData})))||void 0===e?void 0:e.findIndex((function(t){return(null==t?void 0:t[0].data)===n.data&&(null==t?void 0:t[0].legend)===n.legend})))||0,0);a=(null===(r=n.gradient)||void 0===r?void 0:r[0])||Zs(s,0,null===(o=this.props.theme)||void 0===o?void 0:o.isInverted)[0]}this.setState({isCalloutVisible:!0,hoverValue:t,lineColor:a,legend:n.legend,refSelected:u.refElement,xCalloutValue:n.xAxisCalloutData,yCalloutValue:n.yAxisCalloutData,barCalloutProps:n,callOutAccessibilityData:n.callOutAccessibilityData})}},n.prototype._hoverOff=function(){},n.prototype._getDefaultTextData=function(t){var n=this.props.culture,i=this.props.chartDataMode||"default",e=t.chartData[0],r=e.horizontalBarChartdata.x,a=e.horizontalBarChartdata.y,s=Os(t.chartDataAccessibilityData,"text",!1);switch(i){case"default":return u.createElement("div",(0,o.Cl)({className:this._classNames.chartTitleRight},s),(0,Jn.U)(r,n));case"fraction":return u.createElement("div",(0,o.Cl)({},s),u.createElement("span",{className:this._classNames.chartTitleRight},(0,Jn.U)(r,n)),u.createElement("span",{className:this._classNames.chartDataTextDenominator}," / "+(0,Jn.U)(a,n)));case"percentage":var l="".concat((0,Jn.U)(Math.round(r/a*100),n),"%");return u.createElement("div",(0,o.Cl)({className:this._classNames.chartTitleRight},s),l)}},n.prototype._createBenchmark=function(t){var n=t.chartData[0].horizontalBarChartdata.y,i=t.chartData[0].data,e={left:"calc("+Math.round((i||0)/n*100)+"% - 4px)"};return u.createElement("div",{className:this._classNames.benchmarkContainer},u.createElement("div",{className:this._classNames.triangle,style:e}))},n.prototype._createBars=function(t,n,i){var e,r=this,o=(null===(e=t.chartData)||void 0===e?void 0:e.reduce((function(t,n){return t+((n.data||0)>0?1:0)}),0))||1,a=this.state.barSpacingInPercent*(o-1),s=[n.blueLight,n.blue,n.blueMid,n.red,n.black],l=[],c=t.chartData.reduce((function(t,n){return t+(n.horizontalBarChartdata.x?n.horizontalBarChartdata.x:0)}),0),f=0,h=0,d=0;t.chartData.map((function(t,n){var i=t.horizontalBarChartdata.x?t.horizontalBarChartdata.x:0;return(h=i/c*100)<0?h=0:h<1&&0!==h&&(h=1),d+=h}));var p=0!==d?(d-a)/100:1,m=t.chartData.map((function(n,e){var o,a,d,m,y=n.color?n.color:s[Math.floor(4*Math.random()+1)],b=y;r.props.enableGradient&&1!==e&&(y=(null===(o=n.gradient)||void 0===o?void 0:o[0])||Zs(i,0,null===(a=r.props.theme)||void 0===a?void 0:a.isInverted)[0],b=(null===(d=n.gradient)||void 0===d?void 0:d[1])||Zs(i,0,null===(m=r.props.theme)||void 0===m?void 0:m.isInverted)[1]);var x=n.horizontalBarChartdata.x?n.horizontalBarChartdata.x:0;e>0&&(f+=h),(h=x/c*100)<0?h=0:h<1&&0!==h?h=1/p:h/=p,l.push(f);var C=n.horizontalBarChartdata.x;if(1===e&&r.props.variant===v.AbsoluteScale){if(r.props.hideLabels)return u.createElement("text",{key:e});var w=t.chartData[0].horizontalBarChartdata.x;return u.createElement("text",{key:e,x:"".concat(r._isRTL?100-l[e]:l[e],"%"),y:r._barHeight/2,dominantBaseline:"central",transform:"translate(".concat(r._isRTL?-4:4,")"),className:r._classNames.barLabel,"aria-hidden":!0},Bs(w))}var M=g("HBC_Gradient")+"_".concat(i,"_").concat(e);return u.createElement(u.Fragment,{key:e},r.props.enableGradient&&u.createElement("defs",null,u.createElement("linearGradient",{id:M},u.createElement("stop",{offset:"0",stopColor:y}),u.createElement("stop",{offset:"100%",stopColor:b}))),u.createElement("rect",{key:e,x:"".concat(r._isRTL?100-l[e]-h-e*r.state.barSpacingInPercent:l[e]+e*r.state.barSpacingInPercent,"%"),y:0,rx:r.props.roundCorners?3:0,"data-is-focusable":""!==n.legend,width:h+"%",height:r._barHeight,fill:r.props.enableGradient?"url(#".concat(M,")"):y,onMouseOver:""!==n.legend?r._hoverOn.bind(r,C,n):void 0,onFocus:""!==n.legend?r._hoverOn.bind(r,C,n):void 0,role:"img","aria-label":r._getAriaLabel(n),onBlur:r._hoverOff,onMouseLeave:r._hoverOff,className:r._classNames.barWrapper}))}));return m},n.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.length>0)},n}(u.Component),Bl=(0,r.I)(Pl,(function(t){var n=t.className,i=t.theme,e=t.width,r=t.barHeight,u=t.showTriangle,a=t.variant,s=t.hideLabels,l=i.palette;return{root:[{display:"flex",flexDirection:"column",width:e||"100%"},n],items:{marginBottom:u||a===v.AbsoluteScale?"16px":"10px"},chart:{width:"100%",height:r||12,display:"block",overflow:"visible"},barWrapper:{},chartTitle:(0,o.Cl)((0,o.Cl)({},i.fonts.small),{display:"flex",justifyContent:"space-between"}),chartTitleLeft:{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",display:"block",color:i.palette.neutralPrimary,marginBottom:a===v.AbsoluteScale?"4px":"5px"},chartTitleRight:{fontSize:$t.s.medium,fontWeight:$t.BO.semibold,color:i.palette.neutralPrimary},chartDataTextDenominator:{fontSize:$t.s.medium,color:i.palette.neutralPrimary},benchmarkContainer:{position:"relative",height:"7px",marginTop:"-3px",marginBottom:"-1px"},triangle:{width:"0",height:"0",borderLeft:"4px solid transparent",borderRight:"4px solid transparent",borderTop:"7px solid",borderTopColor:l.blue,marginBottom:"4px",position:"absolute"},barLabel:(0,o.Cl)((0,o.Cl)({},i.fonts.small),{fontWeight:$t.BO.semibold,fill:i.palette.neutralPrimary}),chartWrapper:{paddingRight:a!==v.AbsoluteScale||s?0:40}}})),Fl={host:"ms-HoverCard-host"},_l=function(){function t(n){this._id=t._uniqueId++,this._parent=n,this._eventRecords=[]}return t.raise=function(n,i,e,r,o){var u,a=null!=o?o:(0,k.Y)();if(t._isElement(n)){if(void 0!==a&&a.createEvent){var s=a.createEvent("HTMLEvents");s.initEvent(i,r||!1,!0),Z(s,e),u=n.dispatchEvent(s)}else if(void 0!==a&&a.createEventObject){var l=a.createEventObject(e);n.fireEvent("on"+i,l)}}else for(;n&&!1!==u;){var c=n.__events__,f=c?c[i]:null;if(f)for(var h in f)if(f.hasOwnProperty(h))for(var d=f[h],v=0;!1!==u&&v<d.length;v++){var p=d[v];p.objectCallback&&(u=p.objectCallback.call(p.parent,e))}n=r?n.parent:null}return u},t.isObserved=function(t,n){var i=t&&t.__events__;return!!i&&!!i[n]},t.isDeclared=function(t,n){var i=t&&t.__declaredEvents;return!!i&&!!i[n]},t.stopPropagation=function(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0},t._isElement=function(t){return!!t&&(!!t.addEventListener||"undefined"!=typeof HTMLElement&&t instanceof HTMLElement)},t.prototype.dispose=function(){this._isDisposed||(this._isDisposed=!0,this.off(),this._parent=null)},t.prototype.onAll=function(t,n,i){for(var e in n)n.hasOwnProperty(e)&&this.on(t,e,n[e],i)},t.prototype.on=function(n,i,e,r){var o=this;if(i.indexOf(",")>-1)for(var u=i.split(/[ ,]+/),a=0;a<u.length;a++)this.on(n,u[a],e,r);else{var s=this._parent,l={target:n,eventName:i,parent:s,callback:e,options:r};if((u=n.__events__=n.__events__||{})[i]=u[i]||{count:0},u[i][this._id]=u[i][this._id]||[],u[i][this._id].push(l),u[i].count++,t._isElement(n)){var c=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(!o._isDisposed){var i;try{if(!1===(i=e.apply(s,t))&&t[0]){var r=t[0];r.preventDefault&&r.preventDefault(),r.stopPropagation&&r.stopPropagation(),r.cancelBubble=!0}}catch(r){}return i}};l.elementCallback=c,n.addEventListener?n.addEventListener(i,c,r):n.attachEvent&&n.attachEvent("on"+i,c)}else l.objectCallback=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(!o._isDisposed)return e.apply(s,t)};this._eventRecords.push(l)}},t.prototype.off=function(t,n,i,e){for(var r=0;r<this._eventRecords.length;r++){var o=this._eventRecords[r];if(!(t&&t!==o.target||n&&n!==o.eventName||i&&i!==o.callback||"boolean"==typeof e&&e!==o.options)){var u=o.target.__events__,a=u[o.eventName],s=a?a[this._id]:null;s&&(1!==s.length&&i?(a.count--,s.splice(s.indexOf(o),1)):(a.count-=s.length,delete u[o.eventName][this._id]),a.count||delete u[o.eventName]),o.elementCallback&&(o.target.removeEventListener?o.target.removeEventListener(o.eventName,o.elementCallback,o.options):o.target.detachEvent&&o.target.detachEvent("on"+o.eventName,o.elementCallback)),this._eventRecords.splice(r--,1)}}},t.prototype.raise=function(n,i,e){return t.raise(this._parent,n,i,e)},t.prototype.declare=function(t){var n=this._parent.__declaredEvents=this._parent.__declaredEvents||{};if("string"==typeof t)n[t]=!0;else for(var i=0;i<t.length;i++)n[t[i]]=!0},t._uniqueId=0,t}();!function(t){t[t.hover=0]="hover",t[t.hotKey=1]="hotKey"}(Al||(Al={})),function(t){t.plain="PlainCard",t.expanding="ExpandingCard"}(Ll||(Ll={}));var Hl,Rl={root:"ms-ExpandingCard-root",compactCard:"ms-ExpandingCard-compactCard",expandedCard:"ms-ExpandingCard-expandedCard",expandedCardScroll:"ms-ExpandingCard-expandedCardScrollRegion"};!function(t){t[t.compact=0]="compact",t[t.expanded=1]="expanded"}(Hl||(Hl={}));var Il=function(t){for(var n=t.activeElement;null==n?void 0:n.shadowRoot;)n=n.shadowRoot.activeElement;return n},Wl=function(t){var n=t.target;return n&&n.shadowRoot&&(n=t.composedPath()[0]),n};function zl(t,n){var i=u.useRef(n);return i.current||(i.current=g(t)),i.current}function jl(t){var n=u.useRef((function(){throw new Error("Cannot call an event handler while rendering")}));return Fn((function(){n.current=t}),[t]),Xt((function(){return function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return n.current.apply(void 0,t)}}))}var Yl={disabled:!1,disableFirstFocus:!1,forceFocusInsideTrap:!0,isClickableOutsideFocusTrap:!1,"data-tabster":'{"uncontrolled": {"completely": true}}'},$l=u.forwardRef((function(t,n){var i,e,r,a=u.useRef(null),s=u.useRef(null),l=u.useRef(null),c=Rt(a,n),f=zt(),h=qt(),d=!!u.useContext(ul),v=null===(i=zn(!1))||void 0===i||i,p=I(Yl,t),g=Xt({hasFocus:!1,focusStackId:zl("ftz-",p.id)}),m=p.children,y=p.componentRef,b=p.disabled,x=p.disableFirstFocus,C=p.forceFocusInsideTrap,w=p.focusPreviouslyFocusedInnerElement,k=p.firstFocusableSelector,S=p.firstFocusableTarget,A=p.disableRestoreFocus,L=void 0===A?p.ignoreExternalFocusing:A,V=p.isClickableOutsideFocusTrap,D=p.enableAriaHiddenSiblings,E={"aria-hidden":!0,style:{pointerEvents:"none",position:"fixed"},tabIndex:b?-1:0,"data-is-visible":!0,"data-is-focus-trap-zone-bumper":!0},O=u.useCallback((function(t){t!==s.current&&t!==l.current&&H(t)}),[]),P=jl((function(){if(a.current){var t=g.previouslyFocusedElementInTrapZone;if(w&&t&&M(a.current,t))O(t);else{var n=null;if("string"==typeof S)n=a.current.querySelector(S);else if(S)n=S(a.current);else if(k){var i="string"==typeof k?k:k();n=a.current.querySelector("."+i)}n||(n=T(a.current,a.current.firstChild,!1,!1,!1,!0,void 0,void 0,void 0,d)),n&&O(n)}}})),B=function(t){if(!b&&a.current){var n,i=t===g.hasFocus?(void 0===(n=!1)&&(n=!0),N(a.current,l.current,n,!1,!0,!0,!1,!0,d)):function(t,n,i,e,r){return void 0===e&&(e=!0),T(t,n,e,!1,!1,!0,!1,!0,void 0,r)}(a.current,s.current,0,!1,d);i&&(i===s.current||i===l.current?P():i.focus())}},F=jl((function(t){if($l.focusStack=$l.focusStack.filter((function(t){return g.focusStackId!==t})),f){var n=f.activeElement;L||"function"!=typeof(null==t?void 0:t.focus)||!M(a.current,n)&&n!==f.body&&!n.shadowRoot||O(t)}})),_=jl((function(t){if(!b&&g.focusStackId===$l.focusStack.slice(-1)[0]){var n=Wl(t);n&&!M(a.current,n)&&(f&&Il(f)===f.body?setTimeout((function(){f&&Il(f)===f.body&&(P(),g.hasFocus=!0)}),0):(P(),g.hasFocus=!0),t.preventDefault(),t.stopPropagation())}}));return u.useEffect((function(){var t=[];return C&&t.push(R(h,"focus",_,!0)),V||t.push(R(h,"click",_,!0)),function(){t.forEach((function(t){return t()}))}}),[C,V,h]),u.useEffect((function(){if(!b&&(v||C)&&a.current){$l.focusStack.push(g.focusStackId);var t=p.elementToFocusOnDismiss||Il(f);return x||M(a.current,t)||P(),function(){return F(t)}}}),[C,b]),u.useEffect((function(){if(!b&&D)return Pt(a.current)}),[b,D,a]),e=function(){delete g.previouslyFocusedElementInTrapZone},(r=u.useRef(e)).current=e,u.useEffect((function(){return function(){var t;null===(t=r.current)||void 0===t||t.call(r)}}),[]),function(t,n,i){u.useImperativeHandle(t,(function(){return{get previouslyFocusedElement(){return n},focus:i}}),[i,n])}(y,g.previouslyFocusedElementInTrapZone,P),u.createElement("div",(0,o.Cl)({"aria-labelledby":p.ariaLabelledBy},q(p,G),{ref:c,onFocusCapture:function(t){var n;null===(n=p.onFocusCapture)||void 0===n||n.call(p,t),t.target===s.current?B(!0):t.target===l.current&&B(!1),g.hasFocus=!0,t.target!==t.currentTarget&&t.target!==s.current&&t.target!==l.current&&(g.previouslyFocusedElementInTrapZone=Wl(t.nativeEvent))},onBlurCapture:function(t){var n;null===(n=p.onBlurCapture)||void 0===n||n.call(p,t);var i=t.relatedTarget;null===t.relatedTarget&&(i=Il(f)),M(a.current,i)||(g.hasFocus=!1)}}),u.createElement("div",(0,o.Cl)({},E,{ref:s})),m,u.createElement("div",(0,o.Cl)({},E,{ref:l})))}));$l.displayName="FocusTrapZone",$l.focusStack=[];var Xl,Gl=function(t){return u.createElement(Kn,(0,o.Cl)({},t),u.createElement($l,(0,o.Cl)({disabled:t.hidden},t.focusTrapProps),t.children))},ql=function(t){var n=t.gapSpace,i=void 0===n?0:n,e=t.directionalHint,r=void 0===e?x.bottomLeftEdge:e,a=t.directionalHintFixed,s=t.targetElement,l=t.firstFocus,c=t.trapFocus,f=t.onLeave,h=t.className,d=t.finalHeight,v=t.content,p=t.calloutProps,g=(0,o.Cl)((0,o.Cl)((0,o.Cl)({},q(t,G)),{className:h,target:s,isBeakVisible:!1,directionalHint:r,directionalHintFixed:a,finalHeight:d,minPagePadding:24,onDismiss:f,gapSpace:i}),p);return u.createElement(u.Fragment,null,c?u.createElement(Gl,(0,o.Cl)({},g,{focusTrapProps:{forceFocusInsideTrap:!1,isClickableOutsideFocusTrap:!0,disableFirstFocus:!l}}),v):u.createElement(Kn,(0,o.Cl)({},g),v))},Ul=(0,a.Z)(),Zl=function(t){function n(n){var i=t.call(this,n)||this;return i._expandedElem=u.createRef(),i._onKeyDown=function(t){t.which===Bt&&i.props.onLeave&&i.props.onLeave(t)},i._onRenderCompactCard=function(){return u.createElement("div",{className:i._classNames.compactCard},i.props.onRenderCompactCard(i.props.renderData))},i._onRenderExpandedCard=function(){return!i.state.firstFrameRendered&&i._async.requestAnimationFrame((function(){i.setState({firstFrameRendered:!0})})),u.createElement("div",{className:i._classNames.expandedCard,ref:i._expandedElem},u.createElement("div",{className:i._classNames.expandedCardScroll},i.props.onRenderExpandedCard&&i.props.onRenderExpandedCard(i.props.renderData)))},i._checkNeedsScroll=function(){var t=i.props.expandedCardHeight;i._async.requestAnimationFrame((function(){i._expandedElem.current&&i._expandedElem.current.scrollHeight>=t&&i.setState({needsScroll:!0})}))},i._async=new Ft(i),Qs(i),i.state={firstFrameRendered:!1,needsScroll:!1},i}return(0,o.C6)(n,t),n.prototype.componentDidMount=function(){this._checkNeedsScroll()},n.prototype.componentWillUnmount=function(){this._async.dispose()},n.prototype.render=function(){var t=this.props,n=t.styles,i=t.compactCardHeight,e=t.expandedCardHeight,r=t.theme,a=t.mode,s=t.className,l=this.state,c=l.needsScroll,f=l.firstFrameRendered,h=i+e;this._classNames=Ul(n,{theme:r,compactCardHeight:i,className:s,expandedCardHeight:e,needsScroll:c,expandedCardFirstFrameRendered:a===Hl.expanded&&f});var d=u.createElement("div",{onMouseEnter:this.props.onEnter,onMouseLeave:this.props.onLeave,onKeyDown:this._onKeyDown},this._onRenderCompactCard(),this._onRenderExpandedCard());return u.createElement(ql,(0,o.Cl)({},this.props,{content:d,finalHeight:h,className:this._classNames.root}))},n.defaultProps={compactCardHeight:156,expandedCardHeight:384,directionalHintFixed:!0},n}(u.Component),Kl=(0,r.I)(Zl,(function(t){var n,i=t.theme,e=t.needsScroll,r=t.expandedCardFirstFrameRendered,o=t.compactCardHeight,u=t.expandedCardHeight,a=t.className,s=i.palette,l=(0,$t.Km)(Rl,i);return{root:[l.root,{width:320,pointerEvents:"none",selectors:(n={},n[$t.up]={border:"1px solid WindowText"},n)},a],compactCard:[l.compactCard,{pointerEvents:"auto",position:"relative",height:o}],expandedCard:[l.expandedCard,{height:1,overflowY:"hidden",pointerEvents:"auto",transition:"height 0.467s cubic-bezier(0.5, 0, 0, 1)",selectors:{":before":{content:'""',position:"relative",display:"block",top:0,left:24,width:272,height:1,backgroundColor:s.neutralLighter}}},r&&{height:u}],expandedCardScroll:[l.expandedCardScroll,e&&{height:"100%",boxSizing:"border-box",overflowY:"auto"}]}}),void 0,{scope:"ExpandingCard"}),Jl={root:"ms-PlainCard-root"},Ql=(0,a.Z)(),tc=function(t){function n(n){var i=t.call(this,n)||this;return i._onKeyDown=function(t){t.which===Bt&&i.props.onLeave&&i.props.onLeave(t)},Qs(i),i}return(0,o.C6)(n,t),n.prototype.render=function(){var t=this.props,n=t.styles,i=t.theme,e=t.className;this._classNames=Ql(n,{theme:i,className:e});var r=u.createElement("div",{onMouseEnter:this.props.onEnter,onMouseLeave:this.props.onLeave,onKeyDown:this._onKeyDown},this.props.onRenderPlainCard(this.props.renderData));return u.createElement(ql,(0,o.Cl)({},this.props,{content:r,className:this._classNames.root}))},n}(u.Component),nc=(0,r.I)(tc,(function(t){var n,i=t.theme,e=t.className;return{root:[(0,$t.Km)(Jl,i).root,{pointerEvents:"auto",selectors:(n={},n[$t.up]={border:"1px solid WindowText"},n)},e]}}),void 0,{scope:"PlainCard"}),ic=(0,a.Z)(),ec=function(t){function n(n){var i=t.call(this,n)||this;return i._hoverCard=u.createRef(),i.dismiss=function(t){i._async.clearTimeout(i._openTimerId),i._async.clearTimeout(i._dismissTimerId),t?i._dismissTimerId=i._async.setTimeout((function(){i._setDismissedState()}),i.props.cardDismissDelay):i._setDismissedState()},i._cardOpen=function(t){i._shouldBlockHoverCard()||"keydown"===t.type&&t.which!==i.props.openHotKey||(i._async.clearTimeout(i._dismissTimerId),"mouseenter"===t.type&&(i._currentMouseTarget=t.currentTarget),i._executeCardOpen(t))},i._executeCardOpen=function(t){i._async.clearTimeout(i._openTimerId),i._openTimerId=i._async.setTimeout((function(){i.setState((function(n){return n.isHoverCardVisible?n:{isHoverCardVisible:!0,mode:Hl.compact,openMode:"keydown"===t.type?Al.hotKey:Al.hover}}))}),i.props.cardOpenDelay)},i._cardDismiss=function(t,n){if(t){if(!(n instanceof MouseEvent))return;if("keydown"===n.type&&n.which!==Bt)return;i.props.sticky||i._currentMouseTarget!==n.currentTarget&&n.which!==Bt||i.dismiss(!0)}else{if(i.props.sticky&&!(n instanceof MouseEvent)&&n.nativeEvent instanceof MouseEvent&&"mouseleave"===n.type)return;i.dismiss(!0)}},i._setDismissedState=function(){i.setState({isHoverCardVisible:!1,mode:Hl.compact,openMode:Al.hover})},i._instantOpenAsExpanded=function(t){i._async.clearTimeout(i._dismissTimerId),i.setState((function(t){return t.isHoverCardVisible?t:{isHoverCardVisible:!0,mode:Hl.expanded}}))},i._setEventListeners=function(){var t=i.props,n=t.trapFocus,e=t.instantOpenOnClick,r=t.eventListenerTarget,o=r?i._getTargetElement(r):i._getTargetElement(i.props.target),u=i._nativeDismissEvent;o&&(i._events.on(o,"mouseenter",i._cardOpen),i._events.on(o,"mouseleave",u),n?i._events.on(o,"keydown",i._cardOpen):(i._events.on(o,"focus",i._cardOpen),i._events.on(o,"blur",u)),e?i._events.on(o,"click",i._instantOpenAsExpanded):(i._events.on(o,"mousedown",u),i._events.on(o,"keydown",u)))},Qs(i),i._async=new Ft(i),i._events=new _l(i),i._nativeDismissEvent=i._cardDismiss.bind(i,!0),i._childDismissEvent=i._cardDismiss.bind(i,!1),i.state={isHoverCardVisible:!1,mode:Hl.compact,openMode:Al.hover},i}return(0,o.C6)(n,t),n.prototype.componentDidMount=function(){this._setEventListeners()},n.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},n.prototype.componentDidUpdate=function(t,n){var i=this;t.target!==this.props.target&&(this._events.off(),this._setEventListeners()),n.isHoverCardVisible!==this.state.isHoverCardVisible&&(this.state.isHoverCardVisible?(this._async.setTimeout((function(){i.setState({mode:Hl.expanded},(function(){i.props.onCardExpand&&i.props.onCardExpand()}))}),this.props.expandedCardOpenDelay),this.props.onCardVisible&&this.props.onCardVisible()):(this.setState({mode:Hl.compact}),this.props.onCardHide&&this.props.onCardHide()))},n.prototype.render=function(){var t=this.props,n=t.expandingCardProps,i=t.children,e=t.id,r=t.setAriaDescribedBy,a=void 0===r||r,s=t.styles,l=t.theme,c=t.className,f=t.type,h=t.plainCardProps,d=t.trapFocus,v=t.setInitialFocus,p=this.state,m=p.isHoverCardVisible,y=p.mode,b=p.openMode,x=e||g("hoverCard");this._classNames=ic(s,{theme:l,className:c});var C=(0,o.Cl)((0,o.Cl)({},q(this.props,G)),{id:x,trapFocus:!!d,firstFocus:v||b===Al.hotKey,targetElement:this._getTargetElement(this.props.target),onEnter:this._cardOpen,onLeave:this._childDismissEvent}),w=(0,o.Cl)((0,o.Cl)((0,o.Cl)({},n),C),{mode:y}),M=(0,o.Cl)((0,o.Cl)({},h),C);return u.createElement("div",{className:this._classNames.host,ref:this._hoverCard,"aria-describedby":a&&m?x:void 0,"data-is-focusable":!this.props.target},i,m&&(f===Ll.expanding?u.createElement(Kl,(0,o.Cl)({},w)):u.createElement(nc,(0,o.Cl)({},M))))},n.prototype._getTargetElement=function(t){switch(typeof t){case"string":return(0,k.Y)().querySelector(t);case"object":return t;default:return this._hoverCard.current||void 0}},n.prototype._shouldBlockHoverCard=function(){return!(!this.props.shouldBlockHoverCard||!this.props.shouldBlockHoverCard())},n.defaultProps={cardOpenDelay:500,cardDismissDelay:100,expandedCardOpenDelay:1500,instantOpenOnClick:!1,setInitialFocus:!1,openHotKey:67,type:Ll.expanding},n}(u.Component),rc=(0,r.I)(ec,(function(t){var n=t.className,i=t.theme;return{host:[(0,$t.Km)(Fl,i).host,n]}}),void 0,{scope:"HoverCard"});!function(t){t[t.horizontal=0]="horizontal",t[t.vertical=1]="vertical"}(Xl||(Xl={}));var oc=function(t){var n;void 0===t&&(n={},t={getCachedMeasurement:function(t){if(t&&t.cacheKey&&n.hasOwnProperty(t.cacheKey))return n[t.cacheKey]},addMeasurementToCache:function(t,i){t.cacheKey&&(n[t.cacheKey]=i)}});var i,e=t;function r(t,n){var i=e.getCachedMeasurement(t);if(void 0!==i)return i;var r=n();return e.addMeasurementToCache(t,r),r}function u(t,n,o){for(var u=t,a=r(t,o);a>i;){var s=n(u);if(void 0===s)return{renderedData:u,resizeDirection:void 0,dataToMeasure:void 0};if(void 0===(a=e.getCachedMeasurement(s)))return{dataToMeasure:s,resizeDirection:"shrink"};u=s}return{renderedData:u,resizeDirection:void 0,dataToMeasure:void 0}}return{getNextState:function(t,n,a,s){if(void 0!==s||void 0!==n.dataToMeasure){if(s){if(i&&n.renderedData&&!n.dataToMeasure)return(0,o.Cl)((0,o.Cl)({},n),function(t,n,e,r){var u;return u=t>i?r?{resizeDirection:"grow",dataToMeasure:r(e)}:{resizeDirection:"shrink",dataToMeasure:n}:{resizeDirection:"shrink",dataToMeasure:e},i=t,(0,o.Cl)((0,o.Cl)({},u),{measureContainer:!1})}(s,t.data,n.renderedData,t.onGrowData));i=s}var l=(0,o.Cl)((0,o.Cl)({},n),{measureContainer:!1});return n.dataToMeasure&&(l="grow"===n.resizeDirection&&t.onGrowData?(0,o.Cl)((0,o.Cl)({},l),function(t,n,a,s){for(var l=t,c=r(t,a);c<i;){var f=n(l);if(void 0===f)return{renderedData:l,resizeDirection:void 0,dataToMeasure:void 0};if(void 0===(c=e.getCachedMeasurement(f)))return{dataToMeasure:f};l=f}return(0,o.Cl)({resizeDirection:"shrink"},u(l,s,a))}(n.dataToMeasure,t.onGrowData,a,t.onReduceData)):(0,o.Cl)((0,o.Cl)({},l),u(n.dataToMeasure,t.onReduceData,a))),l}},shouldRenderDataForMeasurement:function(t){return!(!t||void 0!==e.getCachedMeasurement(t))},getInitialResizeGroupState:function(t){return{dataToMeasure:(0,o.Cl)({},t),resizeDirection:"grow",measureContainer:!0}}}},uc=u.createContext({isMeasured:!1}),ac={position:"fixed",visibility:"hidden"},sc={position:"relative"};function lc(t,n){var i;switch(n.type){case"resizeData":return(0,o.Cl)({},n.value);case"dataToMeasure":return(0,o.Cl)((0,o.Cl)({},t),{dataToMeasure:n.value,resizeDirection:"grow",measureContainer:!0});default:return(0,o.Cl)((0,o.Cl)({},t),((i={})[n.type]=n.value,i))}}var cc={isMeasured:!0},fc=u.forwardRef((function(t,n){var i=u.useRef(null),e=Rt(i,n),r=function(t,n){var i=Xt(oc),e=u.useRef(null),r=u.useRef(null),a=u.useRef(!1),s=_t(),l=function(t,n,i){var e=Xt((function(){return n.getInitialResizeGroupState(t.data)})),r=u.useReducer(lc,e),a=r[0],s=r[1];u.useEffect((function(){s({type:"dataToMeasure",value:t.data})}),[t.data]);var l=u.useRef(e);return l.current=(0,o.Cl)({},a),[l,u.useCallback((function(t){t&&s({type:"resizeData",value:t})}),[]),u.useCallback((function(){i.current&&s({type:"measureContainer",value:!0})}),[i])]}(t,i,n),c=l[0],f=l[1],h=l[2];u.useEffect((function(){var n;c.current.renderedData&&(a.current=!0,null===(n=t.dataDidRender)||void 0===n||n.call(t,c.current.renderedData))})),u.useEffect((function(){s.requestAnimationFrame((function(){var o=void 0;if(c.current.measureContainer&&n.current){var u=n.current.getBoundingClientRect();o=t.direction===Xl.vertical?u.height:u.width}var s=i.getNextState(t,c.current,(function(){var n=a.current?r:e;if(!n.current)return 0;var i=n.current.getBoundingClientRect();return t.direction===Xl.vertical?i.height:i.width}),o);f(s)}),n.current)})),Ht(Wt(),"resize",s.debounce(h,16,{leading:!0}));var d=i.shouldRenderDataForMeasurement(c.current.dataToMeasure),v=!a.current&&d;return[c.current.dataToMeasure,c.current.renderedData,h,e,r,d,v]}(t,i),a=r[0],s=r[1],l=r[2],c=r[3],f=r[4],h=r[5],d=r[6];u.useImperativeHandle(t.componentRef,(function(){return{remeasure:l}}),[l]),function(t){Yn({name:"ResizeGroup",props:t,deprecations:{styles:"className"}})}(t);var v=t.className,p=t.onRenderData,g=q(t,G,["data"]);return u.createElement("div",(0,o.Cl)({},g,{className:v,ref:e}),u.createElement("div",{style:sc},h&&!d&&u.createElement("div",{style:ac,ref:f},u.createElement(uc.Provider,{value:cc},p(a))),u.createElement("div",{ref:c,style:d?ac:void 0,"data-automation-id":"visibleContent"},d?p(a):s&&p(s))))}));fc.displayName="ResizeGroupBase";var hc,dc=fc;!function(t){t.KEYTIP_ADDED="keytipAdded",t.KEYTIP_REMOVED="keytipRemoved",t.KEYTIP_UPDATED="keytipUpdated",t.PERSISTED_KEYTIP_ADDED="persistedKeytipAdded",t.PERSISTED_KEYTIP_REMOVED="persistedKeytipRemoved",t.PERSISTED_KEYTIP_EXECUTE="persistedKeytipExecute",t.ENTER_KEYTIP_MODE="enterKeytipMode",t.EXIT_KEYTIP_MODE="exitKeytipMode"}(hc||(hc={}));var vc=function(){function t(){this.keytips={},this.persistedKeytips={},this.sequenceMapping={},this.inKeytipMode=!1,this.shouldEnterKeytipMode=!0,this.delayUpdatingKeytipChange=!1}return t.getInstance=function(){return this._instance},t.prototype.init=function(t){this.delayUpdatingKeytipChange=t},t.prototype.register=function(t,n){void 0===n&&(n=!1);var i=t;n||(i=this.addParentOverflow(t),this.sequenceMapping[i.keySequences.toString()]=i);var e=this._getUniqueKtp(i);if(n?this.persistedKeytips[e.uniqueID]=e:this.keytips[e.uniqueID]=e,this.inKeytipMode||!this.delayUpdatingKeytipChange){var r=n?hc.PERSISTED_KEYTIP_ADDED:hc.KEYTIP_ADDED;_l.raise(this,r,{keytip:i,uniqueID:e.uniqueID})}return e.uniqueID},t.prototype.update=function(t,n){var i=this.addParentOverflow(t),e=this._getUniqueKtp(i,n),r=this.keytips[n];r&&(e.keytip.visible=r.keytip.visible,this.keytips[n]=e,delete this.sequenceMapping[r.keytip.keySequences.toString()],this.sequenceMapping[e.keytip.keySequences.toString()]=e.keytip,!this.inKeytipMode&&this.delayUpdatingKeytipChange||_l.raise(this,hc.KEYTIP_UPDATED,{keytip:e.keytip,uniqueID:e.uniqueID}))},t.prototype.unregister=function(t,n,i){void 0===i&&(i=!1),i?delete this.persistedKeytips[n]:delete this.keytips[n],!i&&delete this.sequenceMapping[t.keySequences.toString()];var e=i?hc.PERSISTED_KEYTIP_REMOVED:hc.KEYTIP_REMOVED;!this.inKeytipMode&&this.delayUpdatingKeytipChange||_l.raise(this,e,{keytip:t,uniqueID:n})},t.prototype.enterKeytipMode=function(){_l.raise(this,hc.ENTER_KEYTIP_MODE)},t.prototype.exitKeytipMode=function(){_l.raise(this,hc.EXIT_KEYTIP_MODE)},t.prototype.getKeytips=function(){var t=this;return Object.keys(this.keytips).map((function(n){return t.keytips[n].keytip}))},t.prototype.addParentOverflow=function(t){var n=(0,o.fX)([],t.keySequences,!0);if(n.pop(),0!==n.length){var i=this.sequenceMapping[n.toString()];if(i&&i.overflowSetSequence)return(0,o.Cl)((0,o.Cl)({},t),{overflowSetSequence:i.overflowSetSequence})}return t},t.prototype.menuExecute=function(t,n){_l.raise(this,hc.PERSISTED_KEYTIP_EXECUTE,{overflowButtonSequences:t,keytipSequences:n})},t.prototype._getUniqueKtp=function(t,n){return void 0===n&&(n=g()),{keytip:(0,o.Cl)({},t),uniqueID:n}},t._instance=new t,t}(),pc=function(t,n,i){for(var e=0,r=t;e<r.length;e++){var o=r[e];i[n.register(o,!0)]=o}},gc=function(t,n){for(var i=0,e=Object.keys(n);i<e.length;i++){var r=e[i];t.unregister(n[r],r,!0),delete n[r]}},mc=function(t){var n=vc.getInstance(),i=t.className,e=t.overflowItems,r=t.keytipSequences,a=t.itemSubMenuProvider,s=t.onRenderOverflowButton,l=Xt({}),c=u.useCallback((function(t){return a?a(t):t.subMenuProps?t.subMenuProps.items:void 0}),[a]),f=u.useMemo((function(){var t=[],i=[];return r?null==e||e.forEach((function(e){var u,a=e.keytipProps;if(a){var s={content:a.content,keySequences:a.keySequences,disabled:a.disabled||!(!e.disabled&&!e.isDisabled),hasDynamicChildren:a.hasDynamicChildren,hasMenu:a.hasMenu};a.hasDynamicChildren||c(e)?(s.onExecute=n.menuExecute.bind(n,r,null===(u=null==e?void 0:e.keytipProps)||void 0===u?void 0:u.keySequences),s.hasOverflowSubMenu=!0):s.onExecute=a.onExecute,t.push(s);var l=(0,o.Cl)((0,o.Cl)({},e),{keytipProps:(0,o.Cl)((0,o.Cl)({},a),{overflowSetSequence:r})});null==i||i.push(l)}else null==i||i.push(e)})):i=e,{modifiedOverflowItems:i,keytipsToRegister:t}}),[e,c,n,r]),h=f.modifiedOverflowItems;return function(t,n,i){var e=zn(t);u.useEffect((function(){e&&(gc(i,e),pc(n,i,t))})),u.useEffect((function(){return pc(n,i,t),function(){gc(i,t)}}),[])}(l,f.keytipsToRegister,n),u.createElement("div",{className:i},s(h))},yc=(0,a.Z)(),bc=u.forwardRef((function(t,n){var i=u.useRef(null),e=Rt(i,n);!function(t,n){var i=function(){var t;return null!==(t=zt())&&void 0!==t?t:"undefined"!=typeof document?document:void 0}();u.useImperativeHandle(t.componentRef,(function(){return{focus:function(t,i){var e=!1;return n.current&&(e=D(n.current,i)),e},focusElement:function(t){var e=!1;return!!t&&(n.current&&M(n.current,t)&&(t.focus(),e=(null==i?void 0:i.activeElement)===t),e)}}}),[n,i])}(t,i);var r=t.items,a=t.overflowItems,s=t.className,l=t.styles,c=t.vertical,f=t.role,h=t.overflowSide,d=void 0===h?"end":h,v=t.onRenderItem,p=yc(l,{className:s,vertical:c}),g=!!a&&a.length>0;return u.createElement("div",(0,o.Cl)({},q(t,G),{role:f||"group","aria-orientation":"menubar"===f?!0===c?"vertical":"horizontal":void 0,className:p.root,ref:e}),"start"===d&&g&&u.createElement(mc,(0,o.Cl)({},t,{className:p.overflowButton})),r&&r.map((function(t,n){return u.createElement("div",{className:p.item,key:t.key,role:"none"},v(t))})),"end"===d&&g&&u.createElement(mc,(0,o.Cl)({},t,{className:p.overflowButton})))}));bc.displayName="OverflowSet";var xc,Cc={flexShrink:0,display:"inherit"},wc=(0,r.I)(bc,(function(t){var n=t.className;return{root:["ms-OverflowSet",{position:"relative",display:"flex",flexWrap:"nowrap"},t.vertical&&{flexDirection:"column"},n],item:["ms-OverflowSet-item",Cc],overflowButton:["ms-OverflowSet-overflowButton",Cc]}}),void 0,{scope:"OverflowSet"}),Mc=((xc={})["".concat(Ds[Ds.circle])]="M1 6 A5 5 0 1 0 12 6 M1 6 A5 5 0 0 1 12 6",xc["".concat(Ds[Ds.square])]="M1 1 L12 1 L12 12 L1 12 L1 1 Z",xc["".concat(Ds[Ds.triangle])]="M6 10L8.74228e-07 -1.04907e-06L12 0L6 10Z",xc["".concat(Ds[Ds.pyramid])]="M6 10L8.74228e-07 -1.04907e-06L12 0L6 10Z",xc["".concat(Ds[Ds.diamond])]="M2 2 L10 2 L10 10 L2 10 L2 2 Z",xc["".concat(Ds[Ds.hexagon])]="M9 0H3L0 5L3 10H9L12 5L9 0Z",xc["".concat(Ds[Ds.pentagon])]="M6.06061 0L0 4.21277L2.30303 11H9.69697L12 4.21277L6.06061 0Z",xc["".concat(Ds[Ds.octagon])]="M7.08333 0H2.91667L0 2.91667V7.08333L2.91667 10H7.08333L10 7.08333V2.91667L7.08333 0Z",xc["".concat(Ns[Ns.dottedLine])]="M0 6 H3 M5 6 H8 M10 6 H13",xc),kc=function(t){var n=t.svgProps,i=t.pathProps,e=t.shape,r=t.classNameForNonSvg;return-1===Object.keys(Mc).indexOf(e)?u.createElement("div",{className:r}):u.createElement("svg",(0,o.Cl)({width:14,height:14,viewBox:"-1 -1 14 14"},Is(n),{transform:"rotate(".concat(e===Ds[Ds.diamond]?45:e===Ds[Ds.pyramid]?180:0,", 0, 0)")}),u.createElement("path",(0,o.Cl)({d:Mc[e]},Is(i))))},Sc=(0,a.Z)(),Ac=function(t){function n(n){var i,e,r,a,s=t.call(this,n)||this;s._isLegendSelected=!1,s._onRenderData=function(t){var n=s.props,i=n.overflowProps,e=n.allowFocusOnLegends,r=void 0===e||e,a=n.canSelectMultipleLegends,l=void 0!==a&&a,c={root:{justifyContent:s.props.centerLegends?"center":"unset",flexWrap:"wrap"}};return u.createElement(xl,(0,o.Cl)({},r&&{role:"listbox","aria-label":"Legends","aria-multiselectable":l}),u.createElement(wc,(0,o.Cl)({items:t.primary,overflowItems:t.overflow,onRenderItem:s._renderButton,onRenderOverflowButton:s._renderOverflowItems},i,{styles:(0,o.Cl)((0,o.Cl)({},c),null==i?void 0:i.styles)})))},s._onReduceData=function(t){if(0!==t.primary.length){var n=(0,o.fX)((0,o.fX)([],t.primary.slice(-1),!0),t.overflow,!0);return{primary:t.primary.slice(0,-1),overflow:n}}},s._onGrowData=function(t){if(0!==t.overflow.length){var n=t.overflow.slice(1);return{primary:(0,o.fX)((0,o.fX)([],t.primary,!0),t.overflow.slice(0,1),!0),overflow:n}}},s._getNewSelectedLegendsForMultiselect=function(t){var n=(0,o.Cl)({},s.state.selectedLegends);return n[t.title]?delete n[t.title]:(n[t.title]=!0,Object.keys(n).length===s.props.legends.length&&(n={})),n},s._getNewSelectedLegendsForSingleSelect=function(t){var n;return s.state.selectedLegends[t.title]?{}:((n={})[t.title]=!0,n)},s._onClick=function(t,n){var i,e,r,o=s.props.canSelectMultipleLegends,u=void 0!==o&&o?s._getNewSelectedLegendsForMultiselect(t):s._getNewSelectedLegendsForSingleSelect(t);s.setState({selectedLegends:u}),null===(e=(i=s.props).onChange)||void 0===e||e.call(i,Object.keys(u),n,t),null===(r=t.action)||void 0===r||r.call(t)},s._onRenderCompactCard=function(t){var n=s.props,i=n.allowFocusOnLegends,e=void 0===i||i,r=n.className,a=n.styles,l=n.theme,c=n.canSelectMultipleLegends,f=void 0!==c&&c,h=[],d=Sc(a,{theme:l,className:r});return t.renderData.forEach((function(t,n){var i=s._renderButton(t,n,!0);h.push(i)})),u.createElement(xl,(0,o.Cl)({},e&&{role:"listbox","aria-label":"Legends","aria-multiselectable":f},{direction:zs.vertical,handleTabKey:1,isCircularNavigation:!0},s.props.focusZonePropsInHoverCard,{className:d.hoverCardRoot}),h)},s._renderOverflowItems=function(t){var n=s.props.allowFocusOnLegends,i=void 0===n||n,e=[];t.forEach((function(t,n){e.push({key:n.toString(),name:t.title,onClick:t.action})}));var r={renderData:t},a=s.props,l=a.theme,c=a.className,f=a.styles,h=a.overflowText,d=Sc(f,{theme:l,className:c}),v={onRenderPlainCard:s._onRenderCompactCard,renderData:r},p=h||"more";return u.createElement(rc,{type:Ll.plain,plainCardProps:v,instantOpenOnClick:!0,onCardHide:function(){s.setState({isHoverCardVisible:!1});var n=b(t,(function(t){return t.title===s.state.activeLegend}));n&&(s.setState({activeLegend:""}),n.onMouseOutAction&&n.onMouseOutAction())},setInitialFocus:!0,trapFocus:!0,onCardVisible:s._hoverCardVisible,styles:d.subComponentStyles.hoverCardStyles,cardDismissDelay:300,target:s._hoverCardRef},u.createElement("div",{role:"option"},u.createElement("div",(0,o.Cl)({className:d.overflowIndicationTextStyle,ref:function(t){return s._hoverCardRef=t}},i&&{role:"button","aria-expanded":s.state.isHoverCardVisible,"aria-label":"".concat(e.length," ").concat(p)},{"data-is-focusable":i}),e.length," ",p)))},s._hoverCardVisible=function(){s.setState({isHoverCardVisible:!0})},s._onHoverOverLegend=function(t){t.hoverAction&&(s.setState({activeLegend:t.title}),t.hoverAction())},s._onLeave=function(t){t.onMouseOutAction&&(s.setState({activeLegend:""}),t.onMouseOutAction())},s._renderButton=function(t,n,i){var e=s.props.allowFocusOnLegends,r=void 0===e||e,a={title:t.title,color:t.color,shape:t.shape,action:t.action,hoverAction:t.hoverAction,onMouseOutAction:t.onMouseOutAction,stripePattern:t.stripePattern,isLineLegendInBarChart:t.isLineLegendInBarChart,opacity:t.opacity},l=s._getColor(a.title,a.color),c=s.props,f=c.theme,h=c.className,d=c.styles,v=Sc(d,{theme:f,className:h,colorOnSelectedState:l,borderColor:a.color,overflow:i,stripePattern:a.stripePattern,isLineLegendInBarChart:a.isLineLegendInBarChart,opacity:a.opacity}),p=function(){s._onHoverOverLegend(a)},g=function(){s._onLeave(a)},m=s._getShape(v,a,l);return u.createElement("button",(0,o.Cl)({},r&&{"aria-selected":!!s.state.selectedLegends[a.title],role:"option","aria-label":"".concat(a.title),"aria-setsize":t["aria-setsize"],"aria-posinset":t["aria-posinset"]},t.nativeButtonProps&&(0,o.Cl)({},t.nativeButtonProps),{key:n,className:v.legend,onClick:function(t){s._onClick(a,t)},onMouseOver:p,onMouseOut:g,onFocus:p,onBlur:g,"data-is-focusable":r}),m,u.createElement("div",{className:v.text},a.title))};var l=null!==(e=n.selectedLegends)&&void 0!==e?e:n.defaultSelectedLegends,c=null!==(r=n.selectedLegend)&&void 0!==r?r:n.defaultSelectedLegend,f={};return n.canSelectMultipleLegends?f=(null===(a=null!=l?l:[])||void 0===a?void 0:a.reduce((function(t,n){var i;return(0,o.Cl)(((i={})[n]=!0,i),t)}),{}))||{}:c&&((i={})[c]=!0,f=i),s.state={activeLegend:"",isHoverCardVisible:!1,selectedLegends:f},s}return(0,o.C6)(n,t),n.getDerivedStateFromProps=function(t,n){var i,e=t.selectedLegend,r=t.selectedLegends;return t.canSelectMultipleLegends&&void 0!==r?(0,o.Cl)((0,o.Cl)({},n),{selectedLegends:r.reduce((function(t,n){var i;return(0,o.Cl)(((i={})[n]=!0,i),t)}),{})}):t.canSelectMultipleLegends||void 0===e?n:(0,o.Cl)((0,o.Cl)({},n),{selectedLegends:(i={},i[e]=!0,i)})},n.prototype.render=function(){var t=this.props,n=t.theme,i=t.className,e=t.styles;this._classNames=Sc(e,{theme:n,className:i}),this._isLegendSelected=Object.keys(this.state.selectedLegends).length>0;var r=this._generateData();return u.createElement("div",{className:this._classNames.root},this.props.enabledWrapLines?this._onRenderData(r):u.createElement(dc,{data:r,onReduceData:this._onReduceData,onRenderData:this._onRenderData,onGrowData:this._onGrowData}))},n.prototype._generateData=function(){var t=this,n=this.props,i=n.allowFocusOnLegends,e=void 0===i||i,r=n.shape;return{primary:this.props.legends.map((function(n,i){return(0,o.Cl)((0,o.Cl)({},e&&{nativeButtonProps:q(n,X,["title"]),"aria-setsize":t.props.legends.length,"aria-posinset":i+1}),{title:n.title,action:n.action,hoverAction:n.hoverAction,onMouseOutAction:n.onMouseOutAction,color:n.color,shape:r||n.shape,stripePattern:n.stripePattern,isLineLegendInBarChart:n.isLineLegendInBarChart,opacity:n.opacity,key:i})})),overflow:[]}},n.prototype._getShape=function(t,n,i){var e={className:t.shape},r={fill:i,strokeWidth:2,stroke:n.color};return u.createElement(kc,{svgProps:e,pathProps:r,shape:n.shape,classNameForNonSvg:t.rect})},n.prototype._getColor=function(t,n){var i=this.props.theme;return this._isLegendSelected?this.state.selectedLegends[t]?n:i.semanticColors.buttonBackground:this.state.activeLegend===t||""===this.state.activeLegend?n:i.semanticColors.buttonBackground},n}(u.Component),Lc=(0,r.I)(Ac,(function(t){var n,i,e=t.className,r=t.theme,u=t.isLineLegendInBarChart,a=void 0!==u&&u,s=r,l=s.palette,c=s.fonts,f={inset:void 0,position:void 0,highContrastStyle:{outlineColor:r.semanticColors.focusBorder},borderColor:"transparent",outlineColor:void 0};return{root:[{whiteSpace:"nowrap",width:"100%",alignItems:"center",margin:"-8px 0 0 -8px"},e],legend:[(0,$t.gm)(r,f),{display:"flex",alignItems:"center",cursor:"pointer",border:"none",padding:"8px",background:"none",textTransform:"capitalize"}],rect:{selectors:(n={},n[$t.up]={content:"linear-gradient(to right, ".concat(t.colorOnSelectedState,", ").concat(t.colorOnSelectedState,")"),opacity:t.colorOnSelectedState===r.semanticColors.buttonBackground?"0.6":""},n),width:"12px",height:a?"4px":"12px",backgroundColor:t.stripePattern?"":t.colorOnSelectedState,marginRight:"8px",border:"1px solid",borderColor:t.borderColor?t.borderColor:null==r?void 0:r.semanticColors.buttonBorder,content:t.stripePattern?"repeating-linear-gradient(135deg, transparent, transparent 3px, ".concat(t.colorOnSelectedState," 1px, ").concat(t.colorOnSelectedState," 4px)"):""},shape:[{marginRight:"8px"}],triangle:{width:"0",height:"0",borderLeft:"6px solid transparent",borderRight:"6px solid transparent",borderTop:"10.4px solid",borderTopColor:t.colorOnSelectedState,marginRight:"8px",opacity:t.colorOnSelectedState===r.semanticColors.buttonBackground?"0.6":t.opacity?t.opacity:"",selectors:(i={},i[$t.up]={border:"0px",height:"10.4px",width:"10.4px",clipPath:"polygon(50% 100%, 0 0, 100% 0)",backgroundImage:"linear-gradient(to right, ".concat(t.colorOnSelectedState,", ").concat(t.colorOnSelectedState,")")},i)},text:(0,o.Cl)((0,o.Cl)({},c.small),{lineHeight:"16px",color:null==r?void 0:r.semanticColors.bodyText,opacity:t.colorOnSelectedState===r.semanticColors.buttonBackground?"0.67":""}),hoverChange:{width:"12px",height:"12px",backgroundColor:r.semanticColors.buttonBackground,marginRight:"8px",border:"1px solid",borderColor:t.borderColor?t.borderColor:l.black},overflowIndicationTextStyle:[(0,$t.gm)(r,f),(0,o.Cl)((0,o.Cl)({cursor:"pointer",color:null==r?void 0:r.semanticColors.bodyText},c.small),{lineHeight:"16px",padding:"8px"})],hoverCardRoot:{padding:"8px"},subComponentStyles:{hoverCardStyles:{host:[(0,$t.gm)(r,f)]}}}}));function Vc(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function Dc(t){return function(){return t}}function Nc(t,n){return n<t?-1:n>t?1:n>=t?0:NaN}function Tc(t){return t}Array.prototype.slice;const Ec=Math.abs,Oc=Math.atan2,Pc=Math.cos,Bc=Math.max,Fc=Math.min,_c=Math.sin,Hc=Math.sqrt,Rc=1e-12,Ic=Math.PI,Wc=Ic/2,zc=2*Ic;function jc(t){return t>=1?Wc:t<=-1?-Wc:Math.asin(t)}function Yc(){var t=Tc,n=Nc,i=null,e=Dc(0),r=Dc(zc),o=Dc(0);function u(u){var a,s,l,c,f,h=(u=Vc(u)).length,d=0,v=new Array(h),p=new Array(h),g=+e.apply(this,arguments),m=Math.min(zc,Math.max(-zc,r.apply(this,arguments)-g)),y=Math.min(Math.abs(m)/h,o.apply(this,arguments)),b=y*(m<0?-1:1);for(a=0;a<h;++a)(f=p[v[a]=a]=+t(u[a],a,u))>0&&(d+=f);for(null!=n?v.sort((function(t,i){return n(p[t],p[i])})):null!=i&&v.sort((function(t,n){return i(u[t],u[n])})),a=0,l=d?(m-h*b)/d:0;a<h;++a,g=c)s=v[a],c=g+((f=p[s])>0?f*l:0)+b,p[s]={data:u[s],index:a,value:f,startAngle:g,endAngle:c,padAngle:y};return p}return u.value=function(n){return arguments.length?(t="function"==typeof n?n:Dc(+n),u):t},u.sortValues=function(t){return arguments.length?(n=t,i=null,u):n},u.sort=function(t){return arguments.length?(i=t,n=null,u):i},u.startAngle=function(t){return arguments.length?(e="function"==typeof t?t:Dc(+t),u):e},u.endAngle=function(t){return arguments.length?(r="function"==typeof t?t:Dc(+t),u):r},u.padAngle=function(t){return arguments.length?(o="function"==typeof t?t:Dc(+t),u):o},u}const $c=Math.PI,Xc=2*$c,Gc=1e-6,qc=Xc-Gc;function Uc(t){this._+=t[0];for(let n=1,i=t.length;n<i;++n)this._+=arguments[n]+t[n]}class Zc{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==t?Uc:function(t){let n=Math.floor(t);if(!(n>=0))throw new Error(`invalid digits: ${t}`);if(n>15)return Uc;const i=10**n;return function(t){this._+=t[0];for(let n=1,e=t.length;n<e;++n)this._+=Math.round(arguments[n]*i)/i+t[n]}}(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,i,e){this._append`Q${+t},${+n},${this._x1=+i},${this._y1=+e}`}bezierCurveTo(t,n,i,e,r,o){this._append`C${+t},${+n},${+i},${+e},${this._x1=+r},${this._y1=+o}`}arcTo(t,n,i,e,r){if(t=+t,n=+n,i=+i,e=+e,(r=+r)<0)throw new Error(`negative radius: ${r}`);let o=this._x1,u=this._y1,a=i-t,s=e-n,l=o-t,c=u-n,f=l*l+c*c;if(null===this._x1)this._append`M${this._x1=t},${this._y1=n}`;else if(f>Gc)if(Math.abs(c*a-s*l)>Gc&&r){let h=i-o,d=e-u,v=a*a+s*s,p=h*h+d*d,g=Math.sqrt(v),m=Math.sqrt(f),y=r*Math.tan(($c-Math.acos((v+f-p)/(2*g*m)))/2),b=y/m,x=y/g;Math.abs(b-1)>Gc&&this._append`L${t+b*l},${n+b*c}`,this._append`A${r},${r},0,0,${+(c*h>l*d)},${this._x1=t+x*a},${this._y1=n+x*s}`}else this._append`L${this._x1=t},${this._y1=n}`}arc(t,n,i,e,r,o){if(t=+t,n=+n,o=!!o,(i=+i)<0)throw new Error(`negative radius: ${i}`);let u=i*Math.cos(e),a=i*Math.sin(e),s=t+u,l=n+a,c=1^o,f=o?e-r:r-e;null===this._x1?this._append`M${s},${l}`:(Math.abs(this._x1-s)>Gc||Math.abs(this._y1-l)>Gc)&&this._append`L${s},${l}`,i&&(f<0&&(f=f%Xc+Xc),f>qc?this._append`A${i},${i},0,1,${c},${t-u},${n-a}A${i},${i},0,1,${c},${this._x1=s},${this._y1=l}`:f>Gc&&this._append`A${i},${i},0,${+(f>=$c)},${c},${this._x1=t+i*Math.cos(r)},${this._y1=n+i*Math.sin(r)}`)}rect(t,n,i,e){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${i=+i}v${+e}h${-i}Z`}toString(){return this._}}function Kc(t){let n=3;return t.digits=function(i){if(!arguments.length)return n;if(null==i)n=null;else{const t=Math.floor(i);if(!(t>=0))throw new RangeError(`invalid digits: ${i}`);n=t}return t},()=>new Zc(n)}function Jc(t){return t.innerRadius}function Qc(t){return t.outerRadius}function tf(t){return t.startAngle}function nf(t){return t.endAngle}function ef(t){return t&&t.padAngle}function rf(t,n,i,e,r,o,u){var a=t-i,s=n-e,l=(u?o:-o)/Hc(a*a+s*s),c=l*s,f=-l*a,h=t+c,d=n+f,v=i+c,p=e+f,g=(h+v)/2,m=(d+p)/2,y=v-h,b=p-d,x=y*y+b*b,C=r-o,w=h*p-v*d,M=(b<0?-1:1)*Hc(Bc(0,C*C*x-w*w)),k=(w*b-y*M)/x,S=(-w*y-b*M)/x,A=(w*b+y*M)/x,L=(-w*y+b*M)/x,V=k-g,D=S-m,N=A-g,T=L-m;return V*V+D*D>N*N+T*T&&(k=A,S=L),{cx:k,cy:S,x01:-c,y01:-f,x11:k*(r/C-1),y11:S*(r/C-1)}}function of(){var t=Jc,n=Qc,i=Dc(0),e=null,r=tf,o=nf,u=ef,a=null,s=Kc(l);function l(){var l,c,f,h=+t.apply(this,arguments),d=+n.apply(this,arguments),v=r.apply(this,arguments)-Wc,p=o.apply(this,arguments)-Wc,g=Ec(p-v),m=p>v;if(a||(a=l=s()),d<h&&(c=d,d=h,h=c),d>Rc)if(g>zc-Rc)a.moveTo(d*Pc(v),d*_c(v)),a.arc(0,0,d,v,p,!m),h>Rc&&(a.moveTo(h*Pc(p),h*_c(p)),a.arc(0,0,h,p,v,m));else{var y,b,x=v,C=p,w=v,M=p,k=g,S=g,A=u.apply(this,arguments)/2,L=A>Rc&&(e?+e.apply(this,arguments):Hc(h*h+d*d)),V=Fc(Ec(d-h)/2,+i.apply(this,arguments)),D=V,N=V;if(L>Rc){var T=jc(L/h*_c(A)),E=jc(L/d*_c(A));(k-=2*T)>Rc?(w+=T*=m?1:-1,M-=T):(k=0,w=M=(v+p)/2),(S-=2*E)>Rc?(x+=E*=m?1:-1,C-=E):(S=0,x=C=(v+p)/2)}var O=d*Pc(x),P=d*_c(x),B=h*Pc(M),F=h*_c(M);if(V>Rc){var _,H=d*Pc(C),R=d*_c(C),I=h*Pc(w),W=h*_c(w);if(g<Ic)if(_=function(t,n,i,e,r,o,u,a){var s=i-t,l=e-n,c=u-r,f=a-o,h=f*s-c*l;if(!(h*h<Rc))return[t+(h=(c*(n-o)-f*(t-r))/h)*s,n+h*l]}(O,P,I,W,H,R,B,F)){var z=O-_[0],j=P-_[1],Y=H-_[0],$=R-_[1],X=1/_c(((f=(z*Y+j*$)/(Hc(z*z+j*j)*Hc(Y*Y+$*$)))>1?0:f<-1?Ic:Math.acos(f))/2),G=Hc(_[0]*_[0]+_[1]*_[1]);D=Fc(V,(h-G)/(X-1)),N=Fc(V,(d-G)/(X+1))}else D=N=0}S>Rc?N>Rc?(y=rf(I,W,O,P,d,N,m),b=rf(H,R,B,F,d,N,m),a.moveTo(y.cx+y.x01,y.cy+y.y01),N<V?a.arc(y.cx,y.cy,N,Oc(y.y01,y.x01),Oc(b.y01,b.x01),!m):(a.arc(y.cx,y.cy,N,Oc(y.y01,y.x01),Oc(y.y11,y.x11),!m),a.arc(0,0,d,Oc(y.cy+y.y11,y.cx+y.x11),Oc(b.cy+b.y11,b.cx+b.x11),!m),a.arc(b.cx,b.cy,N,Oc(b.y11,b.x11),Oc(b.y01,b.x01),!m))):(a.moveTo(O,P),a.arc(0,0,d,x,C,!m)):a.moveTo(O,P),h>Rc&&k>Rc?D>Rc?(y=rf(B,F,H,R,h,-D,m),b=rf(O,P,I,W,h,-D,m),a.lineTo(y.cx+y.x01,y.cy+y.y01),D<V?a.arc(y.cx,y.cy,D,Oc(y.y01,y.x01),Oc(b.y01,b.x01),!m):(a.arc(y.cx,y.cy,D,Oc(y.y01,y.x01),Oc(y.y11,y.x11),!m),a.arc(0,0,h,Oc(y.cy+y.y11,y.cx+y.x11),Oc(b.cy+b.y11,b.cx+b.x11),m),a.arc(b.cx,b.cy,D,Oc(b.y11,b.x11),Oc(b.y01,b.x01),!m))):a.arc(0,0,h,M,w,m):a.lineTo(B,F)}else a.moveTo(0,0);if(a.closePath(),l)return a=null,l+""||null}return l.centroid=function(){var i=(+t.apply(this,arguments)+ +n.apply(this,arguments))/2,e=(+r.apply(this,arguments)+ +o.apply(this,arguments))/2-Ic/2;return[Pc(e)*i,_c(e)*i]},l.innerRadius=function(n){return arguments.length?(t="function"==typeof n?n:Dc(+n),l):t},l.outerRadius=function(t){return arguments.length?(n="function"==typeof t?t:Dc(+t),l):n},l.cornerRadius=function(t){return arguments.length?(i="function"==typeof t?t:Dc(+t),l):i},l.padRadius=function(t){return arguments.length?(e=null==t?null:"function"==typeof t?t:Dc(+t),l):e},l.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:Dc(+t),l):r},l.endAngle=function(t){return arguments.length?(o="function"==typeof t?t:Dc(+t),l):o},l.padAngle=function(t){return arguments.length?(u="function"==typeof t?t:Dc(+t),l):u},l.context=function(t){return arguments.length?(a=null==t?null:t,l):a},l}Zc.prototype;var uf=function(t){var n=t.solidFill,i=t.gradientFill,e=t.href,r=t.theme,o=t.opacity;return{root:{fill:n,cursor:e?"pointer":"default",stroke:r.semanticColors.bodyBackground,outline:"transparent",selectors:{"::-moz-focus-inner":{border:"0"}},opacity:o},gradientArc:{width:"100%",height:"100%",background:i,opacity:o},focusRing:{stroke:r.semanticColors.focusBorder,strokeWidth:4,fill:"transparent"},arcLabel:{fontSize:$t.s.small,fontWeight:$t.BO.semibold,fill:r.palette.neutralPrimary}}},af=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.state={},n.currentRef=u.createRef(),n._isRTL=(0,s.jI)(),n._hoverOff=function(){n.props.hoverLeaveCallback()},n._onBlur=function(){n.props.onBlurCallback()},n._getAriaLabel=function(){var t,i=n.props.data.data,e=i.xAxisCalloutData||i.legend,r=i.yAxisCalloutData||i.data||0;return(null===(t=i.callOutAccessibilityData)||void 0===t?void 0:t.ariaLabel)||(e?"".concat(e,", "):"")+"".concat(r,".")},n._shouldHighlightArc=function(t){var i=n.props.activeArc;return!i||0===i.length||void 0===t||i.includes(t)},n._renderArcLabel=function(t){var i=n.props,e=i.arc,r=i.data,o=i.innerRadius,a=i.outerRadius,s=i.showLabelsInPercent,l=i.totalValue;if(i.hideLabels||Math.abs(r.endAngle-r.startAngle)<Math.PI/12||!n._shouldHighlightArc(r.data.legend))return null;var c=e.centroid(r),f=c[0],h=c[1],d=Math.sqrt(f*f+h*h),v=Math.max(o,a)+2,p=(r.startAngle+r.endAngle)/2,g=r.value;return u.createElement("text",{x:(0===d?0:f/d)*v,y:(0===d?0:h/d)*v,textAnchor:p>Math.PI!==n._isRTL?"end":"start",dominantBaseline:p>Math.PI/2&&p<3*Math.PI/2?"hanging":"auto",className:t,"aria-hidden":!0},s?Ye(".0%")(0===l?0:g/l):Bs(g))},n}return(0,o.C6)(n,t),n.getDerivedStateFromProps=function(t){return sf(t),null},n.prototype.updateChart=function(t){sf(t)},n.prototype.render=function(){var t,n,i,e,r,o,s,l=this.props,c=l.arc,f=l.href,h=l.focusedArcId,d=l.activeArc,v=(0,a.Z)(),p=this.props.uniqText+this.props.data.data.legend.replace(/\s+/,"")+this.props.data.data.data,m=d&&d.length>0?d.includes(null===(t=this.props.data)||void 0===t?void 0:t.data.legend)?1:.1:1,y=null!==(i=null===(n=this.props.data)||void 0===n?void 0:n.startAngle)&&void 0!==i?i:0,b=(null!==(r=null===(e=this.props.data)||void 0===e?void 0:e.endAngle)&&void 0!==r?r:0)-y,x=this.props.roundCorners?3:0,C=v(uf,{solidFill:this.props.enableGradient?"transparent":this.props.color,gradientFill:"conic-gradient(\n from ".concat(y,"rad,\n ").concat(this.props.color,",\n ").concat(this.props.nextColor," ").concat(b,"rad\n )"),href:f,theme:this.props.theme,opacity:m}),w=g("Arc_clip")+"".concat(this.props.color,"_").concat(this.props.nextColor);return u.createElement("g",{ref:this.currentRef},!!h&&h===p&&u.createElement("path",{id:p+"focusRing",d:c.cornerRadius(x)(this.props.focusData),className:C.focusRing}),u.createElement("path",{id:p,d:c.cornerRadius(x)(this.props.data),onFocus:this._onFocus.bind(this,this.props.data.data,p),className:C.root,"data-is-focusable":this._shouldHighlightArc(this.props.data.data.legend)||0===(null===(o=this.props.activeArc)||void 0===o?void 0:o.length),onMouseOver:this._hoverOn.bind(this,this.props.data.data),onMouseMove:this._hoverOn.bind(this,this.props.data.data),onMouseLeave:this._hoverOff,onBlur:this._onBlur,onClick:f?this._redirectToUrl.bind(this,f):null===(s=this.props.data)||void 0===s?void 0:s.data.onClick,"aria-label":this._getAriaLabel(),role:"img"}),this._renderArcLabel(C.arcLabel),this.props.enableGradient&&u.createElement(u.Fragment,null,u.createElement("clipPath",{id:w},u.createElement("path",{d:c.cornerRadius(x)(this.props.data)})),u.createElement("foreignObject",{x:"-50%",y:"-50%",width:"100%",height:"100%",clipPath:"url(#".concat(w,")")},u.createElement("div",{className:C.gradientArc}))))},n.prototype._onFocus=function(t,n){this.props.onFocusCallback(t,n,this.currentRef.current)},n.prototype._hoverOn=function(t,n){n.persist(),this.props.hoverOnCallback(t,n)},n.prototype._redirectToUrl=function(t){t&&(window.location.href=t)},n.defaultProps={arc:of()},n}(u.Component);function sf(t){t.arc.innerRadius(t.innerRadius),t.arc.outerRadius(t.outerRadius)}var lf=function(t){var n,i=t.theme;return{root:{},insideDonutString:{fontSize:$t.s.xLargePlus,fontWeight:$t.BO.semibold,fill:i.semanticColors.bodyText,selectors:(n={},n[$t.NK]={fill:"rgb(179, 179, 179)"},n)}}},cf=(0,a.Z)(),ff=function(t){function n(n){var i=t.call(this,n)||this;return i.arcGenerator=function(t,n,e,r){var o,a,s,l,c=t&&t.data&&t.data.color,f=c;return i.props.enableGradient&&(c=null!==(a=null===(o=i.props.data[n].gradient)||void 0===o?void 0:o[0])&&void 0!==a?a:Zs(n,0,i.props.theme.isInverted)[0],f=null!==(l=null===(s=i.props.data[n].gradient)||void 0===s?void 0:s[1])&&void 0!==l?l:Zs(n,0,i.props.theme.isInverted)[1]),u.createElement(af,{key:n,data:t,focusData:e,innerRadius:i.props.innerRadius,outerRadius:i.props.outerRadius,color:c,nextColor:f,enableGradient:i.props.enableGradient,roundCorners:i.props.roundCorners,onFocusCallback:i._focusCallback,hoverOnCallback:i._hoverCallback,onBlurCallback:i.props.onBlurCallback,hoverLeaveCallback:i.props.hoverLeaveCallback,uniqText:i.props.uniqText,activeArc:i.props.activeArc,href:r,calloutId:i.props.calloutId,valueInsideDonut:i.props.valueInsideDonut,theme:i.props.theme,focusedArcId:i.props.focusedArcId,showLabelsInPercent:i.props.showLabelsInPercent,totalValue:i._totalValue,hideLabels:i.props.hideLabels})},i._focusCallback=function(t,n,e){i.props.onFocusCallback(t,n,e)},i._computeTotalValue=function(){var t=0;return i.props.data.forEach((function(n){t+=n.data})),t},i._hoverCallback=i._hoverCallback.bind(i),i._pieForFocusRing=Yc().sort(null).value((function(t){return t.data})).padAngle(0),i}return(0,o.C6)(n,t),n.prototype.render=function(){var t=this,n=this.props,i=n.pie,e=n.data,r=this._pieForFocusRing(e),o=i(e),a="translate(".concat(this.props.width/2,", ").concat(this.props.height/2,")"),s=cf(lf,{theme:this.props.theme});return this._totalValue=this._computeTotalValue(),u.createElement("g",{transform:a},o.map((function(n,i){return t.arcGenerator(n,i,r[i],t.props.href)})),this.props.valueInsideDonut&&u.createElement("text",{y:5,textAnchor:"middle",dominantBaseline:"middle",className:s.insideDonutString},this.props.valueInsideDonut))},n.prototype.componentDidUpdate=function(){var t,n,i;t=cf(lf,{theme:this.props.theme}).insideDonutString,n=2*this.props.innerRadius-5,i=0,cs(".".concat(t)).each((function(){for(var t=ls(this),e=t.text().split(/\s+/).reverse(),r="",o=[],u=0,a=t.attr("y"),s=t.text(null).append("tspan").attr("id","WordBreakId-".concat(i,"-").concat(u)).attr("x",0).attr("y",a).attr("dy",1.1*u+++"em");r=e.pop();)o.push(r),s.text(o.join(" ")+" "),s.node().getComputedTextLength()>n&&o.length>1&&(o.pop(),s.text(o.join(" ")+" "),o=[r],s=t.append("tspan").attr("id","WordBreakId-".concat(i,"-").concat(u)).attr("x",0).attr("y",a).attr("dy",1.1*u+++"em").text(r));i+=1}))},n.prototype._hoverCallback=function(t,n){this.props.hoverOnCallback(t,n)},n.defaultProps={pie:Yc().sort(null).value((function(t){return t.data})).padAngle(.02)},n}(u.Component),hf={color1:"qualitative.1",color2:"qualitative.2",color3:"qualitative.3",color4:"qualitative.4",color5:"qualitative.5",color6:"qualitative.6",color7:"qualitative.7",color8:"qualitative.8",color9:"qualitative.9",color10:"qualitative.10",color11:"qualitative.11",color12:"qualitative.12",color13:"qualitative.13",color14:"qualitative.14",color15:"qualitative.15",color16:"qualitative.16",color17:"qualitative.17",color18:"qualitative.18",color19:"qualitative.19",color20:"qualitative.20",color21:"qualitative.21",color22:"qualitative.22",color23:"qualitative.23",color24:"qualitative.24",color25:"qualitative.25",color26:"qualitative.26",color27:"qualitative.27",color28:"qualitative.28",color29:"qualitative.29",color30:"qualitative.30",color31:"qualitative.31",color32:"qualitative.32",color33:"qualitative.33",color34:"qualitative.34",color35:"qualitative.35",color36:"qualitative.36",color37:"qualitative.37",color38:"qualitative.38",color39:"qualitative.39",color40:"qualitative.40",info:"semantic.info",disabled:"semantic.disabled",highError:"semantic.highError",error:"semantic.error",warning:"semantic.warning",success:"semantic.success",highSuccess:"semantic.highSuccess"},df={1:["#637cef"],2:["#e3008c"],3:["#2aa0a4"],4:["#9373c0"],5:["#13a10e"],6:["#3a96dd"],7:["#ca5010"],8:["#57811b"],9:["#b146c2"],10:["#ae8c00"],11:["#3c51b4","#93a4f4"],12:["#ad006a","#ee5fb7"],13:["#026467","#4cb4b7"],14:["#674c8c","#a083c9"],15:["#0e7a0b","#27ac22"],16:["#2c72a8","#4fa1e1"],17:["#9a3d0c","#d77440"],18:["#405f14","#73aa24"],19:["#863593","#c36bd1"],20:["#6d5700","#d0b232"],21:["#4f6bed"],22:["#ea38a6"],23:["#038387"],24:["#8764b8"],25:["#11910d"],26:["#3487c7"],27:["#d06228"],28:["#689920"],29:["#ba58c9"],30:["#937700","#c19c00"],31:["#2c3c85","#c8d1fa"],32:["#7f004e","#f7adda"],33:["#02494c","#9bd9db"],34:["#4c3867","#b29ad4"],35:["#0b5a08","#a7e3a5"],36:["#20547c","#83bdeb"],37:["#712d09","#df8e64"],38:["#23330b","#a4cc6c"],39:["#63276d","#cf87da"],40:["#3a2f00","#dac157"]},vf={qualitative:df,semantic:{info:["#015cda"],disabled:["#dbdbdb","#4d4d4d"],highError:["#6e0811","#cc2635"],error:["#c50f1f","#dc626d"],warning:["#f7630c","#f87528"],success:["#107c10","#54b054"],highSuccess:["#094509","#218c21"]}},pf=Object.values(df),gf=Object.values(hf),mf=function(t,n){if(0===t.length)return"";var i=Number(n);return i<t.length?t[i]:t[0]},yf=function(t,n,i){void 0===n&&(n=0),void 0===i&&(i=!1);var e=pf[(t+n)%pf.length];return mf(e,i)},bf=function(t,n){if(void 0===n&&(n=!1),gf.indexOf(t)>=0){var i=t.split("."),e=i[0],r=i[1],o=vf[e][r];return mf(o,n)}return t},xf=(0,a.Z)(),Cf=function(t){function n(n){var i,e=t.call(this,n)||this;return e._closeCallout=function(){e.setState({showHover:!1})},e._focusCallback=function(t,n,i){e._currentHoverElement=i,e.setState({showHover:e._noLegendsHighlighted()||e._isLegendHighlighted(t.legend),value:t.data.toString(),legend:t.legend,color:t.color,xCalloutValue:t.xAxisCalloutData,yCalloutValue:t.yAxisCalloutData,focusedArcId:n,dataPointCalloutProps:t,callOutAccessibilityData:t.callOutAccessibilityData})},e._hoverCallback=function(t,n){var i,r,o,u;if(e._calloutAnchorPoint!==t){e._calloutAnchorPoint=t,e._currentHoverElement=n;var a=t.color;if(e.props.enableGradient){var s=Math.max((null===(r=null===(i=e.props.data)||void 0===i?void 0:i.chartData)||void 0===r?void 0:r.findIndex((function(n){return n.legend===t.legend})))||0,0);a=(null===(o=t.gradient)||void 0===o?void 0:o[0])||Zs(s,0,null===(u=e.props.theme)||void 0===u?void 0:u.isInverted)[0]}e.setState({showHover:e._noLegendsHighlighted()||e._isLegendHighlighted(t.legend),value:t.data.toString(),legend:t.legend,color:a,xCalloutValue:t.xAxisCalloutData,yCalloutValue:t.yAxisCalloutData,dataPointCalloutProps:t,callOutAccessibilityData:t.callOutAccessibilityData})}},e._onBlur=function(){e.setState({focusedArcId:""})},e._handleChartMouseLeave=function(){e._calloutAnchorPoint=null,e.setState({showHover:!1})},e._isLegendHighlighted=function(t){return e._getHighlightedLegend().includes(t)},e._noLegendsHighlighted=function(){return 0===e._getHighlightedLegend().length},e._addDefaultColors=function(t){return t?t.map((function(t,n){var i,r,u;return u=void 0===t.color?yf(n,0,null===(i=e.props.theme)||void 0===i?void 0:i.isInverted):bf(t.color,null===(r=e.props.theme)||void 0===r?void 0:r.isInverted),(0,o.Cl)((0,o.Cl)({},t),{color:u})})):[]},Qs(e),e.state={showHover:!1,value:"",legend:"",_width:e.props.width||200,_height:e.props.height||200,activeLegend:void 0,color:"",xCalloutValue:"",yCalloutValue:"",focusedArcId:"",selectedLegends:(null===(i=n.legendProps)||void 0===i?void 0:i.selectedLegends)||[]},e._hoverCallback=e._hoverCallback.bind(e),e._focusCallback=e._focusCallback.bind(e),e._hoverLeave=e._hoverLeave.bind(e),e._calloutId=g("callout"),e._uniqText=g("_Pie_"),e._emptyChartId=g("_DonutChart_empty"),e}return(0,o.C6)(n,t),n.getDerivedStateFromProps=function(t,n){var i,e;return t.width&&t.width!==n._width&&(i={_width:t.width}),t.height&&t.height!==n._height&&(e={_height:t.height-40}),(0,o.Cl)((0,o.Cl)({},i),e)},n.prototype.componentDidMount=function(){this._rootElem&&this.setState({_width:this._rootElem.offsetWidth,_height:this._rootElem.offsetHeight-40})},n.prototype.componentDidUpdate=function(t){var n,i,e;Ws(null===(n=t.legendProps)||void 0===n?void 0:n.selectedLegends,null===(i=this.props.legendProps)||void 0===i?void 0:i.selectedLegends)||this.setState({selectedLegends:(null===(e=this.props.legendProps)||void 0===e?void 0:e.selectedLegends)||[]})},n.prototype.render=function(){var t=this,n=this.props,i=n.data,e=n.hideLegend,r=void 0!==e&&e,a=this._addDefaultColors(null==i?void 0:i.chartData);this._classNames=xf(this.props.styles,{theme:this.props.theme,width:this.state._width,height:this.state._height,color:this.state.color,className:this.props.className});var s=this._createLegends(a),l=this.props.hideLabels?0:80,c=this.props.hideLabels?0:40,f=Math.min(this.state._width-l,this.state._height-c)/2,h=this._elevateToMinimums(a.filter((function(t){return t.data>=0}))),d=0!==this.props.innerRadius?this._valueInsideDonut(this.props.valueInsideDonut,h):"";return this._isChartEmpty()?u.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):u.createElement("div",{className:this._classNames.root,ref:function(n){return t._rootElem=n},onMouseLeave:this._handleChartMouseLeave},u.createElement(xl,{direction:zs.horizontal,handleTabKey:1},u.createElement("div",null,u.createElement("svg",{className:this._classNames.chart,"aria-label":null==i?void 0:i.chartTitle,ref:function(n){return t._setViewBox(n)}},u.createElement(ff,{width:this.state._width,height:this.state._height,outerRadius:f,innerRadius:this.props.innerRadius,data:h,enableGradient:this.props.enableGradient,roundCorners:this.props.roundCorners,onFocusCallback:this._focusCallback,hoverOnCallback:this._hoverCallback,hoverLeaveCallback:this._hoverLeave,uniqText:this._uniqText,onBlurCallback:this._onBlur,activeArc:this._getHighlightedLegend(),focusedArcId:this.state.focusedArcId||"",href:this.props.href,calloutId:this._calloutId,valueInsideDonut:this._toLocaleString(d),theme:this.props.theme,showLabelsInPercent:this.props.showLabelsInPercent,hideLabels:this.props.hideLabels})))),u.createElement(Kn,(0,o.Cl)({target:this._currentHoverElement,alignTargetEdge:!0,isBeakVisible:!1,directionalHint:x.topAutoEdge,gapSpace:15,hidden:!(!this.props.hideTooltip&&this.state.showHover),id:this._calloutId,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0,shouldUpdateWhenHidden:!0},this.props.calloutProps,Os(this.state.callOutAccessibilityData,"text",!1)),this.props.onRenderCalloutPerDataPoint?this.props.onRenderCalloutPerDataPoint(this.state.dataPointCalloutProps):u.createElement(js.ChartHoverCard,{Legend:this.state.xCalloutValue?this.state.xCalloutValue:this.state.legend,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.value,color:this.state.color,culture:this.props.culture})),!r&&u.createElement("div",{className:this._classNames.legendContainer},s))},Object.defineProperty(n.prototype,"chartContainer",{get:function(){return this._rootElem},enumerable:!1,configurable:!0}),n.prototype._elevateToMinimums=function(t){var n=0,i=[];return t.forEach((function(t){n+=t.data})),t.forEach((function(t){i.push(.01*n>t.data&&t.data>0?(0,o.Cl)((0,o.Cl)({},t),{data:.01*n,yAxisCalloutData:void 0===t.yAxisCalloutData?t.data.toLocaleString():t.yAxisCalloutData}):t)})),i},n.prototype._setViewBox=function(t){var n,i;if(null!==t){var e=t.parentElement?t.parentElement.clientWidth:this.state._width,r=t.parentElement&&(null===(n=t.parentElement)||void 0===n?void 0:n.offsetHeight)>this.state._height?null===(i=t.parentElement)||void 0===i?void 0:i.offsetHeight:this.state._height,o="0 0 ".concat(e," ").concat(r);t.setAttribute("viewBox",o)}},n.prototype._createLegends=function(t){var n=this,i=t.map((function(t,i){var e,r,o=n.props.enableGradient?(null===(e=t.gradient)||void 0===e?void 0:e[0])||Zs(i,0,null===(r=n.props.theme)||void 0===r?void 0:r.isInverted)[0]:t.color;return{title:t.legend,color:o,hoverAction:function(){n._handleChartMouseLeave(),n.setState({activeLegend:t.legend})},onMouseOutAction:function(){n.setState({activeLegend:void 0})}}}));return u.createElement(Lc,(0,o.Cl)({legends:i,centerLegends:!0,overflowProps:this.props.legendsOverflowProps,focusZonePropsInHoverCard:this.props.focusZonePropsForLegendsInHoverCard,overflowText:this.props.legendsOverflowText},this.props.legendProps,{onChange:this._onLegendSelectionChange.bind(this)}))},n.prototype._onLegendSelectionChange=function(t,n,i){var e,r;this.props.legendProps&&(null===(e=this.props.legendProps)||void 0===e?void 0:e.canSelectMultipleLegends)?this.setState({selectedLegends:t}):this.setState({selectedLegends:t.slice(-1)}),(null===(r=this.props.legendProps)||void 0===r?void 0:r.onChange)&&this.props.legendProps.onChange(t,n,i)},n.prototype._hoverLeave=function(){},n.prototype._valueInsideDonut=function(t,n){var i=this,e=this._getHighlightedLegend();if(void 0===t||1!==e.length&&!this.state.showHover){if(e.length>0){var r=0;return n.forEach((function(t){e.includes(t.legend)&&(r+=t.data)})),r}return t}var o=n.find((function(t){return i._isLegendHighlighted(t.legend)}));return o?o.yAxisCalloutData?o.yAxisCalloutData:o.data:t},n.prototype._toLocaleString=function(t){var n=(0,Jn.U)(t,this.props.culture);return n?null==n?void 0:n.toString():t},n.prototype._getHighlightedLegend=function(){return this.state.selectedLegends.length>0?this.state.selectedLegends:this.state.activeLegend?[this.state.activeLegend]:[]},n.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.chartData&&this.props.data.chartData.filter((function(t){return t.data>0})).length>0)},n.defaultProps={innerRadius:0,hideLabels:!0},n}(u.Component),wf=(0,r.I)(Cf,(function(t){var n=t.className,i=t.width,e=t.height;return{root:[t.theme.fonts.medium,"ms-DonutChart",{alignItems:"center",display:"flex",flexDirection:"column",width:"100%",height:"100%"},n],chart:{width:i,height:e,boxSizing:"content-box",overflow:"visible",alignmentAdjust:"center",display:"block"},legendContainer:{paddingTop:"16px",width:"".concat(i,"px")}}}));function Mf(t,n){if(t=function(t){let n;for(;n=t.sourceEvent;)t=n;return t}(t),void 0===n&&(n=t.currentTarget),n){var i=n.ownerSVGElement||n;if(i.createSVGPoint){var e=i.createSVGPoint();return e.x=t.clientX,e.y=t.clientY,[(e=e.matrixTransform(n.getScreenCTM().inverse())).x,e.y]}if(n.getBoundingClientRect){var r=n.getBoundingClientRect();return[t.clientX-r.left-n.clientLeft,t.clientY-r.top-n.clientTop]}}return[t.pageX,t.pageY]}function kf(t){this._context=t}function Sf(t){return new kf(t)}function Af(t){return t[0]}function Lf(t){return t[1]}function Vf(t,n){var i=Dc(!0),e=null,r=Sf,o=null,u=Kc(a);function a(a){var s,l,c,f=(a=Vc(a)).length,h=!1;for(null==e&&(o=r(c=u())),s=0;s<=f;++s)!(s<f&&i(l=a[s],s,a))===h&&((h=!h)?o.lineStart():o.lineEnd()),h&&o.point(+t(l,s,a),+n(l,s,a));if(c)return o=null,c+""||null}return t="function"==typeof t?t:void 0===t?Af:Dc(t),n="function"==typeof n?n:void 0===n?Lf:Dc(n),a.x=function(n){return arguments.length?(t="function"==typeof n?n:Dc(+n),a):t},a.y=function(t){return arguments.length?(n="function"==typeof t?t:Dc(+t),a):n},a.defined=function(t){return arguments.length?(i="function"==typeof t?t:Dc(!!t),a):i},a.curve=function(t){return arguments.length?(r=t,null!=e&&(o=r(e)),a):r},a.context=function(t){return arguments.length?(null==t?e=o=null:o=r(e=t),a):e},a}kf.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,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:this._context.lineTo(t,n)}}};var Df,Nf,Tf,Ef=function(t){function n(i){var e=t.call(this,i)||this;return e._tooltipHost=u.createRef(),e._tooltipHostId=g("tooltip-host"),e.show=function(){e._toggleTooltip(!0)},e.dismiss=function(){e._hideTooltip()},e._getTargetElement=function(){if(e._tooltipHost.current)return e._tooltipHost.current},e._onTooltipFocus=function(t){e._ignoreNextFocusEvent?e._ignoreNextFocusEvent=!1:e._onTooltipMouseEnter(t)},e._onTooltipBlur=function(t){e._ignoreNextFocusEvent=(null===document||void 0===document?void 0:document.activeElement)===t.target,e._dismissTimerId=e._async.setTimeout((function(){e._hideTooltip()}),0)},e._onTooltipMouseEnter=function(t){var i=e.props.delay;if(n._currentVisibleTooltip&&n._currentVisibleTooltip!==e&&n._currentVisibleTooltip.dismiss(),n._currentVisibleTooltip=e,e.state.isOverflowing&&(!t.target||!rl(t.target,e._getTargetElement())))if(e._clearDismissTimer(),e._clearOpenTimer(),i!==wl.zero){var r=e._getDelayTime(i);e._openTimerId=e._async.setTimeout((function(){e._toggleTooltip(!0)}),r)}else e._toggleTooltip(!0)},e._onTooltipMouseLeave=function(t){var i=e.props.closeDelay;e._clearDismissTimer(),e._clearOpenTimer(),i?e._dismissTimerId=e._async.setTimeout((function(){e._toggleTooltip(!1)}),i):e._toggleTooltip(!1),n._currentVisibleTooltip===e&&(n._currentVisibleTooltip=void 0)},e._onTooltipKeyDown=function(t){(t.which===Bt||t.ctrlKey)&&e.state.isTooltipVisible&&(e._hideTooltip(),t.stopPropagation())},e._clearDismissTimer=function(){e._async.clearTimeout(e._dismissTimerId)},e._clearOpenTimer=function(){e._async.clearTimeout(e._openTimerId)},e._hideTooltip=function(){e._clearOpenTimer(),e._clearDismissTimer(),e._toggleTooltip(!1)},e._toggleTooltip=function(t){e.state.isTooltipVisible!==t&&e.setState({isTooltipVisible:t})},e._getDelayTime=function(t){switch(t){case wl.medium:return 300;case wl.long:return 500;default:return 0}},e._wrapContent=function(){var t=e.props,n=t.content,i=t.wrapContent,r=t.maxWidth,o=void 0===r?Number.POSITIVE_INFINITY:r,u=t.maxHeight,a=!1;n&&i&&i(n,e._tooltipHostId,o,u)&&(a=!0),e.state.isOverflowing!==a&&e.setState({isOverflowing:a})},e.state={isTooltipVisible:!1,isOverflowing:!1},e._async=new Ft(e),e}return(0,o.C6)(n,t),n.prototype.render=function(){var t=this.props,n=t.content,i=t.tooltipProps,e=t.textProps,r=t.shouldReceiveFocus,a=void 0===r||r,s=this.state.isTooltipVisible,l=(0,o.Cl)({content:n,targetElement:this._getTargetElement(),calloutProps:{onDismiss:this._hideTooltip,onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave},onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave},i),c=!!this.props.isTooltipVisibleProp&&this.state.isOverflowing&&!!n||s&&!!n;return u.createElement(u.Fragment,null,u.createElement("text",(0,o.Cl)({},e,{id:this._tooltipHostId,ref:this._tooltipHost,onFocusCapture:this._onTooltipFocus,onBlurCapture:this._onTooltipBlur,onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave,onKeyDown:this._onTooltipKeyDown,"data-is-focusable":a&&this.state.isOverflowing}),n),c&&u.createElement(Sl,(0,o.Cl)({},l)))},n.prototype.componentDidMount=function(){this._wrapContent()},n.prototype.componentDidUpdate=function(t){this.props.maxWidth===t.maxWidth&&this.props.maxHeight===t.maxHeight||this._wrapContent()},n.prototype.componentWillUnmount=function(){n._currentVisibleTooltip&&n._currentVisibleTooltip===this&&(n._currentVisibleTooltip=void 0),this._async.dispose()},n.defaultProps={delay:wl.medium},n}(u.Component),Of=(0,a.Z)(),Pf=u.lazy((function(){return Promise.resolve().then(i.bind(i,357)).then((function(t){return{default:t.ChartHoverCard}}))})),Bf=[rs.HorizontalBarChartWithAxis,rs.HeatMapChart],Ff=function(t){function n(n){var i,e,r,a,l,c,f,h,d,v,p,m,y,b,x,C,w,M,k,S,A,L,V,D,N,T,E=t.call(this,n)||this;return E.minLegendContainerHeight=32,E._isRtl=(0,s.jI)(),E._isFirstRender=!0,E.isIntegralDataset=!0,E.calculateMaxYAxisLabelLength=function(t,n,i){return t===rs.HeatMapChart?bs(n[0].data.map((function(t){return t.y})),".".concat(i," text")):bs(n.map((function(t){return t.y})),".".concat(i," text"))},E._multiValueCallout=function(t){var n=E._yValueHoverSubCountsExists(t.YValueHover);return u.createElement("div",{className:E._classNames.calloutContentRoot},u.createElement("div",{className:E._classNames.calloutDateTimeContainer,style:n?{marginBottom:"11px"}:{}},u.createElement("div",(0,o.Cl)({className:E._classNames.calloutContentX},Os(t.xAxisCalloutAccessibilityData,"text",!1)),(0,Jn.U)(t.hoverXValue,E.props.culture))),u.createElement("div",{className:E._classNames.calloutInfoContainer,style:n?{display:"flex"}:{}},t.YValueHover&&t.YValueHover.map((function(t,i,e){var r=i+1===e.length,a=t.shouldDrawBorderBottom,s=void 0!==a&&a;return u.createElement("div",(0,o.Cl)({},Os(t.callOutAccessibilityData,"text",!1),{key:"callout-content-".concat(i),style:n?(0,o.Cl)({display:"inline-block"},s&&{borderBottom:"1px solid ".concat(E.props.theme.semanticColors.menuDivider),paddingBottom:"10px"}):(0,o.Cl)({},s&&{borderBottom:"1px solid ".concat(E.props.theme.semanticColors.menuDivider),paddingBottom:"10px"})}),E._getCalloutContent(t,i,n,r))})),!!t.descriptionMessage&&u.createElement("div",{className:E._classNames.descriptionMessage},t.descriptionMessage)))},E._getData=function(t,n){E.props.getGraphData&&E.props.getGraphData(t,n,E.state.containerHeight-E.state._removalValueForTextTuncate,E.state.containerWidth,E.xAxisElement,E.yAxisElement)},E._onChartLeave=function(){E.props.onChartMouseLeave&&E.props.onChartMouseLeave()},E._calculateChartMinWidth=function(){var t=10;if(!E.props.wrapXAxisLables&&E.props.rotateXAxisLables&&E.props.xAxisType===os.StringAxis){var n=bs(E._tickValues,".".concat(E._classNames.xAxis," text"));t+=Math.ceil(n*Math.cos(Math.PI/4))}else if(E.props.showXAxisLablesTooltip){var i=E._tickValues.map((function(t){var n=E.props.noOfCharsToTruncate||4;return t.toString().length>n?"".concat(t.toString().slice(0,n),"..."):t}));n=bs(i,".".concat(E._classNames.xAxis," text")),t+=Math.ceil(n)}else if(E.props.wrapXAxisLables){var e=[];E._tickValues.forEach((function(t){e.push.apply(e,t.toString().split(/\s+/))})),n=bs(e,".".concat(E._classNames.xAxis," text")),t+=Math.max(Math.ceil(n),10)}else n=bs(E._tickValues,".".concat(E._classNames.xAxis," text")),t+=Math.ceil(n);var r=E.margins.left+E.margins.right+t*(E._tickValues.length-1);return[rs.GroupedVerticalBarChart,rs.VerticalBarChart,rs.VerticalStackedBarChart].includes(E.props.chartType)&&(r+=16),r},E._getChartDescription=function(){return(E.props.chartTitle||"Chart. ")+E._getAxisTitle("X",E.props.xAxisTitle,E.props.xAxisType)+E._getAxisTitle("Y",E.props.yAxisTitle,E.props.yAxisType||us.NumericAxis)+(E.props.secondaryYScaleOptions?E._getAxisTitle("secondary Y",E.props.secondaryYAxistitle,us.NumericAxis):"")},E._getAxisTitle=function(t,n,i){return"The ".concat(t," axis displays ")+(n||(i===os.StringAxis||i===us.StringAxis?"categories":i===os.DateAxis||i===us.DateAxis?"time":"values"))+". "},E.state={containerHeight:0,containerWidth:0,_width:E.props.width||600,_height:E.props.height||350,_removalValueForTextTuncate:0,isRemoveValCalculated:!0,startFromX:0},E.idForGraph=g("chart_"),E.titleMargin=8,E.idForDefaultTabbableElement=g("defaultTabbableElement_"),E.margins={top:null!==(e=null===(i=E.props.margins)||void 0===i?void 0:i.top)&&void 0!==e?e:20,bottom:null!==(a=null===(r=E.props.margins)||void 0===r?void 0:r.bottom)&&void 0!==a?a:35,right:E._isRtl?null!==(c=null===(l=E.props.margins)||void 0===l?void 0:l.left)&&void 0!==c?c:40:(null!==(h=null===(f=E.props.margins)||void 0===f?void 0:f.right)&&void 0!==h?h:null===(d=E.props)||void 0===d?void 0:d.secondaryYScaleOptions)?40:20,left:E._isRtl?(null!==(p=null===(v=E.props.margins)||void 0===v?void 0:v.right)&&void 0!==p?p:null===(m=E.props)||void 0===m?void 0:m.secondaryYScaleOptions)?40:20:null!==(b=null===(y=E.props.margins)||void 0===y?void 0:y.left)&&void 0!==b?b:40},void 0!==E.props.xAxisTitle&&""!==E.props.xAxisTitle&&(E.margins.bottom=null!==(C=null===(x=E.props.margins)||void 0===x?void 0:x.bottom)&&void 0!==C?C:55),void 0!==E.props.yAxisTitle&&""!==E.props.yAxisTitle&&(E.margins.left=E._isRtl?(null!==(M=null===(w=E.props.margins)||void 0===w?void 0:w.right)&&void 0!==M?M:null===(k=E.props)||void 0===k?void 0:k.secondaryYAxistitle)?60:40:null!==(A=null===(S=E.props.margins)||void 0===S?void 0:S.left)&&void 0!==A?A:60,E.margins.right=E._isRtl?null!==(V=null===(L=E.props.margins)||void 0===L?void 0:L.left)&&void 0!==V?V:60:(null!==(N=null===(D=E.props.margins)||void 0===D?void 0:D.right)&&void 0!==N?N:null===(T=E.props)||void 0===T?void 0:T.secondaryYAxistitle)?60:40),E}return(0,o.C6)(n,t),n.prototype.componentDidMount=function(){if(this._fitParentContainer(),Bf.includes(this.props.chartType)&&this.props.showYAxisLables&&this.yAxisElement){var t=this.calculateMaxYAxisLabelLength(this.props.chartType,this.props.points,this._classNames.yAxis);this.state.startFromX!==t&&this.setState({startFromX:t})}else 0!==this.state.startFromX&&this.setState({startFromX:0});this.isIntegralDataset=!this.props.points.some((function(t){return t.y%1!=0}))},n.prototype.componentWillUnmount=function(){cancelAnimationFrame(this._reqID)},n.prototype.componentDidUpdate=function(t){if(t.height===this.props.height&&t.width===this.props.width||this._fitParentContainer(),!this.props.wrapXAxisLables&&this.props.rotateXAxisLables&&this.props.xAxisType===os.StringAxis){var n=function(t){var n=t.node,i=t.xAxis;if(null!==n&&null!==i){var e=0,r=[];ls(n).call(i).selectAll(".tick").each((function(){var t=this.getAttribute("transform");if(-1===(null==t?void 0:t.indexOf("rotate"))){var n=t.substring(t.indexOf("(")+1,t.indexOf(")")).split(",");2===n.length&&(r.push(n[0]),this.setAttribute("transform","translate(".concat(n[0],",0)rotate(-45)")))}var i=this.getBoundingClientRect(),o=i&&i.height;o>e&&(e=o)}));var o=0;return ls(n).call(i).selectAll(".tick").each((function(){r.length>o&&(this.setAttribute("transform","translate(".concat(r[o],",").concat(e/2,")rotate(-45)")),o+=1)})),Math.floor(e/1.414)}}({node:this.xAxisElement,xAxis:this._xScale});this.state.isRemoveValCalculated&&this.state._removalValueForTextTuncate!==n+this.margins.bottom&&n>0&&this.setState({_removalValueForTextTuncate:n+this.margins.bottom,isRemoveValCalculated:!1})}if(Bf.includes(this.props.chartType)&&this.props.showYAxisLables&&this.yAxisElement){var i=this.calculateMaxYAxisLabelLength(this.props.chartType,this.props.points,this._classNames.yAxis);this.state.startFromX!==i&&this.setState({startFromX:i})}else 0!==this.state.startFromX&&this.setState({startFromX:0});t.points!==this.props.points&&(this.isIntegralDataset=!this.props.points.some((function(t){return t.y%1!=0})))},n.prototype.render=function(){var t,n,i,e,r,a,s,l,c,f,h=this,d=this.props,v=d.calloutProps,p=d.points,g=d.chartType,m=d.chartHoverProps,y=d.svgFocusZoneProps,b=d.svgProps,x=d.culture,C=d.dateLocalizeOptions,w=d.timeFormatLocale,M=d.customDateTimeFormatter;this.props.parentRef&&this._fitParentContainer();var k=(0,o.Cl)({},this.margins);Bf.includes(this.props.chartType)&&(this._isRtl?k.right+=this.state.startFromX:k.left+=this.state.startFromX),this.props.getmargins&&this.props.getmargins(k);var S,A,L,V,D,N=null,T=null;if(this.props.enableFirstRenderOptimization&&this.chartContainer||!this.props.enableFirstRenderOptimization){this._isFirstRender=!1;var E={domainNRangeValues:this.props.getDomainNRangeValues(p,this.props.getDomainMargins?this.props.getDomainMargins(this.state.containerWidth):this.margins,this.state.containerWidth,g,this._isRtl,this.props.xAxisType,this.props.barwidth,this.props.tickValues,this.state.startFromX),containerHeight:this.state.containerHeight-this.state._removalValueForTextTuncate,margins:this.margins,xAxisElement:this.xAxisElement,showRoundOffXTickValues:!0,xAxisCount:this.props.xAxisTickCount,xAxistickSize:this.props.xAxistickSize,tickPadding:this.props.tickPadding||this.props.showXAxisLablesTooltip?5:10,xAxisPadding:this.props.xAxisPadding,xAxisInnerPadding:this.props.xAxisInnerPadding,xAxisOuterPadding:this.props.xAxisOuterPadding},O={margins:this.margins,containerWidth:this.state.containerWidth,containerHeight:this.state.containerHeight-this.state._removalValueForTextTuncate,yAxisElement:this.yAxisElement,yAxisTickFormat:this.props.yAxisTickFormat,yAxisTickCount:this.props.yAxisTickCount,yMinValue:this.props.yMinValue||0,yMaxValue:this.props.yMaxValue||0,tickPadding:10,maxOfYVal:this.props.maxOfYVal,yMinMaxValues:this.props.getMinMaxOfYAxis(p,this.props.yAxisType),yAxisPadding:this.props.yAxisPadding||0},P=void 0,B=void 0;switch(this.props.xAxisType){case os.NumericAxis:P=(t=fs(E,this.props.chartType,x)).xScale,B=t.tickValues;break;case os.DateAxis:n=function(t,n,i,e,r,o,u){var a,s=t.domainNRangeValues,l=t.xAxisElement,c=t.tickPadding,f=void 0===c?6:c,h=t.xAxistickSize,d=void 0===h?6:h,v=t.xAxisCount,p=void 0===v?6:v,g=u?Yu():ju();g.domain([s.dStartValue,s.dEndValue]).range([s.rStartValue,s.rEndValue]);var m=hi(g).tickSize(d).tickPadding(f).ticks(p);if(o)m.tickFormat((function(t,n){return o(t)}));else if(i&&e)m.tickFormat((function(t,n){return t.toLocaleString(i,e)}));else if(r){var y=yo(r);m.tickFormat((function(t,n){return hs(t,y,u)}))}n.tickValues&&m.tickValues(n.tickValues),void 0===i&&n.tickFormat&&m.tickFormat(u?wo(n.tickFormat):xo(n.tickFormat)),l&&ls(l).call(m).selectAll("text").attr("aria-hidden","true");var b=(null!==(a=n.tickValues)&&void 0!==a?a:g.ticks(p)).map((function(t,n){var i=m.tickFormat();return i?i(t,n):hs(t,void 0,u)}));return{xScale:g,tickValues:b}}(E,this.props.tickParams,x,C,w,M,this.props.useUTC),P=n.xScale,B=n.tickValues;break;case os.StringAxis:i=function(t,n,i,e){var r=t.domainNRangeValues,o=t.xAxisCount,u=void 0===o?6:o,a=t.xAxistickSize,s=void 0===a?6:a,l=t.tickPadding,c=void 0===l?10:l,f=t.xAxisPadding,h=void 0===f?.1:f,d=t.xAxisInnerPadding,v=t.xAxisOuterPadding,p=Zu().domain(i).range([r.rStartValue,r.rEndValue]).paddingInner(void 0!==d?d:h).paddingOuter(void 0!==v?v:h),g=hi(p).tickSize(s).tickPadding(c).ticks(u).tickFormat((function(t,n){return Ps(i[n],e)}));return t.xAxisElement&&ls(t.xAxisElement).call(g).selectAll("text").attr("aria-hidden","true"),{xScale:p,tickValues:i.map(g.tickFormat())}}(E,this.props.tickParams,this.props.datasetForXAxisDomain,x),P=i.xScale,B=i.tickValues;break;default:P=(e=fs(E,this.props.chartType,x)).xScale,B=e.tickValues}if(this._xScale=P,this._tickValues=B,this.props.wrapXAxisLables||this.props.showXAxisLablesTooltip){var F={node:this.xAxisElement,xAxis:P,showXAxisLablesTooltip:this.props.showXAxisLablesTooltip||!1,noOfCharsToTruncate:this.props.noOfCharsToTruncate||4},_=P&&function(t){var n=t.node,i=t.xAxis,e=t.noOfCharsToTruncate,r=t.showXAxisLablesTooltip;if(null!==n){var o=ls(n).call(i),u=0,a=[];return o.selectAll(".tick text").each((function(){var t=ls(this),n=t.text(),i="".concat(t.text().slice(0,e),"..."),s=t.text().length,l=t.text().split(/\s+/).reverse();a.push(l.length);var c="",f=[],h=0,d=t.attr("y"),v=parseFloat(t.attr("dy")),p=t.text(null).append("tspan").attr("x",0).attr("y",d).attr("id","BaseSpan").attr("dy",v+"em").attr("data-",n);if(r&&s>e)p=t.append("tspan").attr("id","showDots").attr("x",0).attr("y",d).attr("dy",1.1*++h+v+"em").text(i);else if(r&&s<=e)p=t.append("tspan").attr("id","LessLength").attr("x",0).attr("y",d).attr("dy",1.1*++h+v+"em").text(n);else{for(;c=l.pop();)f.push(c),p.text(f.join(" ")),p.node().getComputedTextLength()>10&&f.length>1&&(f.pop(),p.text(f.join(" ")),f=[c],p=t.append("tspan").attr("id","WordBreakId").attr("x",0).attr("y",d).attr("dy",1.1*++h+v+"em").text(c));var g=Math.max.apply(Math,a),m=12;o.selectAll("text").each((function(){var t=document.getElementById("WordBreakId"),n=t&&t.getBoundingClientRect(),i=n&&n.height;i>m&&(m=i)}));var y=4;g<=2?y=1:g>2&&g<=6?y=2:g>6&&g<=9&&(y=3),u=(g-y)*m}})),u>0?u:0}}(F);this.state.isRemoveValCalculated&&this.state._removalValueForTextTuncate!==_&&this.setState({_removalValueForTextTuncate:_,isRemoveValCalculated:!1})}var H=void 0,R=void 0,I={yAxisDomainValues:[]};if(this.props.yAxisType&&this.props.yAxisType===us.StringAxis)H=this.props.createStringYAxis(O,this.props.stringDatasetForYAxisDomain,this._isRtl,this.props.barwidth);else{if(null===(r=this.props)||void 0===r?void 0:r.secondaryYScaleOptions){var W={margins:this.margins,containerWidth:this.state.containerWidth,containerHeight:this.state.containerHeight-this.state._removalValueForTextTuncate,yAxisElement:this.yAxisElementSecondary,yAxisTickFormat:this.props.yAxisTickFormat,yAxisTickCount:this.props.yAxisTickCount,yMinValue:(null===(a=this.props.secondaryYScaleOptions)||void 0===a?void 0:a.yMinValue)||0,yMaxValue:null!==(l=null===(s=this.props.secondaryYScaleOptions)||void 0===s?void 0:s.yMaxValue)&&void 0!==l?l:100,tickPadding:10,maxOfYVal:null!==(f=null===(c=this.props.secondaryYScaleOptions)||void 0===c?void 0:c.yMaxValue)&&void 0!==f?f:100,yMinMaxValues:this.props.getMinMaxOfYAxis(p,this.props.yAxisType),yAxisPadding:this.props.yAxisPadding};R=R=this.props.createYAxis(W,this._isRtl,I,this.isIntegralDataset,!0,this.props.supportNegativeData)}H=this.props.createYAxis(O,this._isRtl,I,this.isIntegralDataset,!1,this.props.supportNegativeData)}Bf.includes(this.props.chartType)&&H&&(S=this.yAxisElement,A=H,L=this.props.noOfCharsToTruncate||4,V=this.props.showYAxisLablesTooltip||!1,D=this._isRtl,null!==S&&ls(S).call(A).selectAll(".tick text").each((function(){var t=ls(this),n=t.text(),i=D?"...".concat(t.text().slice(0,L)):"".concat(t.text().slice(0,L),"..."),e=t.text().length,r=V?1.5:1,o=t.attr("y"),u=t.attr("x"),a=parseFloat(t.attr("dy"));t.text(null).append("tspan").attr("x",u).attr("y",o).attr("id","BaseSpan").attr("dy",a+"em").attr("data-",n),V&&e>L?t.append("tspan").attr("id","showDots").attr("x",D?0:u).attr("y",o).attr("dy",a).attr("dx",r+0+"em").text(i):t.attr("text-align","start").append("tspan").attr("id","LessLength").attr("x",D?0:u).attr("y",o).attr("dx",r+0+"em").text(n)}))),this.props.getAxisData&&this.props.getAxisData(I),this._getData(P,H),T=this.props.children((0,o.Cl)((0,o.Cl)({},this.state),{xScale:P,yScale:H,yScaleSecondary:R})),!this.props.hideTooltip&&v.isCalloutVisible&&(N=this._generateCallout(v,m))}this._classNames=Of(this.props.styles,{theme:this.props.theme,width:this.state._width,height:this.state._height,className:this.props.className,isRtl:this._isRtl});var z,j={width:this.state.containerWidth,height:this.state.containerHeight};z=this.props.focusZoneDirection===zs.vertical||this.props.focusZoneDirection?this.props.focusZoneDirection:zs.horizontal;var Y=j.width-this.margins.left-this.margins.right-this.state.startFromX,$=j.height-this.margins.bottom-this.margins.top-this.state._removalValueForTextTuncate-this.titleMargin;return u.createElement("div",{id:this.idForGraph,className:this._classNames.root,ref:function(t){return h.chartContainer=t},onMouseLeave:this._onChartLeave},!this._isFirstRender&&u.createElement("div",{id:this.idForDefaultTabbableElement}),u.createElement(xl,(0,o.Cl)({direction:z,className:this._classNames.chartWrapper,defaultTabbableElement:"#".concat(this.idForDefaultTabbableElement)},y),this._isFirstRender&&u.createElement("div",{id:this.idForDefaultTabbableElement}),u.createElement("svg",(0,o.Cl)({width:j.width,height:j.height,role:"region","aria-label":this._getChartDescription(),style:{display:"block"}},Is(b)),u.createElement("g",{ref:function(t){h.xAxisElement=t},id:"xAxisGElement".concat(this.idForGraph),transform:"translate(0, ".concat(j.height-this.margins.bottom-this.state._removalValueForTextTuncate,")"),className:this._classNames.xAxis}),void 0!==this.props.xAxisTitle&&""!==this.props.xAxisTitle&&u.createElement(Ef,{content:this.props.xAxisTitle,textProps:{x:this.margins.left+this.state.startFromX+Y/2,y:j.height-this.titleMargin,className:this._classNames.axisTitle,textAnchor:"middle","aria-hidden":!0},maxWidth:Y,wrapContent:ys}),u.createElement("g",{ref:function(t){h.yAxisElement=t},id:"yAxisGElement".concat(this.idForGraph),transform:"translate(".concat(this._isRtl?j.width-this.margins.right-this.state.startFromX:this.margins.left+this.state.startFromX,", 0)"),className:this._classNames.yAxis}),this.props.secondaryYScaleOptions&&u.createElement("g",null,u.createElement("g",{ref:function(t){h.yAxisElementSecondary=t},id:"yAxisGElementSecondary".concat(this.idForGraph),transform:"translate(".concat(this._isRtl?this.margins.left:j.width-this.margins.right,", 0)"),className:this._classNames.yAxis}),void 0!==this.props.secondaryYAxistitle&&""!==this.props.secondaryYAxistitle&&u.createElement(Ef,{content:this.props.secondaryYAxistitle,textProps:{x:($-this.margins.bottom)/2+this.state._removalValueForTextTuncate,y:this._isRtl?this.state.startFromX-this.titleMargin:j.width-this.margins.right,textAnchor:"middle",transform:"translate(".concat(this._isRtl?this.margins.right/2-this.titleMargin:this.margins.right/2+this.titleMargin,",\n ").concat(j.height-this.margins.bottom-this.margins.top-this.titleMargin,")rotate(-90)"),className:this._classNames.axisTitle,"aria-hidden":!0},maxWidth:$,wrapContent:ys})),T,void 0!==this.props.yAxisTitle&&""!==this.props.yAxisTitle&&u.createElement(Ef,{content:this.props.yAxisTitle,textProps:{x:($-this.margins.bottom)/2+this.state._removalValueForTextTuncate,y:this._isRtl?j.width-this.margins.right/2+this.titleMargin:this.margins.left/2+this.state.startFromX-this.titleMargin,textAnchor:"middle",transform:"translate(0,\n ".concat(j.height-this.margins.bottom-this.margins.top-this.titleMargin,")rotate(-90)"),className:this._classNames.axisTitle,"aria-hidden":!0},maxWidth:$,wrapContent:ys}))),!this.props.hideLegend&&u.createElement("div",{ref:function(t){return h.legendContainer=t},className:this._classNames.legendContainer},this.props.legendBars),N&&u.createElement(u.Suspense,{fallback:u.createElement("div",null,"Loading...")},N))},n.prototype._generateCallout=function(t,n){return u.createElement(Kn,(0,o.Cl)({hidden:!(!this.props.hideTooltip&&t.isCalloutVisible),shouldUpdateWhenHidden:!0},t),this.props.customizedCallout&&this.props.customizedCallout,!this.props.customizedCallout&&this.props.isCalloutForStack&&this._multiValueCallout(t),!this.props.customizedCallout&&!this.props.isCalloutForStack&&u.createElement(Pf,(0,o.Cl)({XValue:t.XValue,Legend:t.legend,YValue:t.YValue,color:t.color,culture:this.props.culture},n)))},n.prototype._yValueHoverSubCountsExists=function(t){return!!t&&t.some((function(t){return t.yAxisCalloutData&&"string"!=typeof t.yAxisCalloutData}))},n.prototype._getCalloutContent=function(t,n,i,e){var r,o=e?{}:{marginRight:"16px"},a=void 0!==t.index&&-1!==t.index,s=Of(this.props.styles,{theme:this.props.theme,width:this.state._width,height:this.state._height,className:this.props.className,isRtl:this._isRtl,lineColor:t.color,toDrawShape:a}),l=this.props.culture,c=(0,Jn.U)(t.y,l);if(t.yAxisCalloutData&&"string"!=typeof t.yAxisCalloutData){var f=t.yAxisCalloutData;return u.createElement("div",{style:o},u.createElement("div",{className:"ms-fontWeight-semibold",style:{fontSize:"12pt"}},t.legend," (",c,")"),Object.keys(f).map((function(t){return u.createElement("div",{key:t,className:s.calloutBlockContainer},u.createElement("div",{className:s.calloutlegendText}," ",(0,Jn.U)(t,l)),u.createElement("div",{className:s.calloutContentY},(0,Jn.U)(f[t],l)))})))}return u.createElement("div",{style:i?o:{}},i&&u.createElement("div",{className:"ms-fontWeight-semibold",style:{fontSize:"12pt"}},t.legend," (",c,")"),u.createElement("div",{id:"".concat(n,"_").concat(t.y),className:s.calloutBlockContainer},a&&u.createElement(kc,{svgProps:{className:s.shapeStyles},pathProps:{fill:t.color},shape:Ds[t.index%Object.keys(Es).length]}),u.createElement("div",null,u.createElement("div",{className:s.calloutlegendText}," ",t.legend),u.createElement("div",{className:s.calloutContentY},(0,Jn.U)(t.yAxisCalloutData?t.yAxisCalloutData:null!==(r=t.y)&&void 0!==r?r:t.data,l)))))},n.prototype._fitParentContainer=function(){var t=this,n=this.state,i=n.containerWidth,e=n.containerHeight;this._reqID=requestAnimationFrame((function(){var n;if(t.props.hideLegend)n=0;else{var r=t.legendContainer&&getComputedStyle(t.legendContainer);n=(t.legendContainer&&t.legendContainer.getBoundingClientRect().height||t.minLegendContainerHeight)+parseFloat(r&&r.marginTop||"0")+parseFloat(r&&r.marginBottom||"0")}if(t.props.parentRef||t.chartContainer){var o=t.props.parentRef?t.props.parentRef:t.chartContainer,u=t.props.enableReflow&&!t._isFirstRender?Math.max(o.getBoundingClientRect().width,t._calculateChartMinWidth()):o.getBoundingClientRect().width,a=o.getBoundingClientRect().height>n?o.getBoundingClientRect().height:350;(i!==u||e!==a-n)&&t.setState({containerWidth:u,containerHeight:a-n})}}))},n}(u.Component);!function(t){t.shade30="#004578",t.shade20="#005a9e",t.shade10="#106ebe",t.primary="#0078d4",t.tint10="#2b88d8",t.tint20="#c7e0f4",t.tint30="#deecf9",t.tint40="#eff6fc"}(Df||(Df={})),function(t){t.black="#000000",t.gray220="#11100f",t.gray210="#161514",t.gray200="#1b1a19",t.gray190="#201f1e",t.gray180="#252423",t.gray170="#292827",t.gray160="#323130",t.gray150="#3b3a39",t.gray140="#484644",t.gray130="#605e5c",t.gray120="#797775",t.gray110="#8a8886",t.gray100="#979593",t.gray90="#a19f9d",t.gray80="#b3b0ad",t.gray70="#bebbb8",t.gray60="#c8c6c4",t.gray50="#d2d0ce",t.gray40="#e1dfdd",t.gray30="#edebe9",t.gray20="#f3f2f1",t.gray10="#faf9f8",t.white="#ffffff"}(Nf||(Nf={})),function(t){t.pinkRed10="#750b1c",t.red20="#a4262c",t.red10="#d13438",t.redOrange20="#603d30",t.redOrange10="#da3b01",t.orange30="#8e562e",t.orange20="#ca5010",t.orange10="#ffaa44",t.yellow10="#fce100",t.orangeYellow20="#986f0b",t.orangeYellow10="#c19c00",t.yellowGreen10="#8cbd18",t.green20="#0b6a0b",t.green10="#498205",t.greenCyan10="#00ad56",t.cyan40="#005e50",t.cyan30="#005b70",t.cyan20="#038387",t.cyan10="#00b7c3",t.cyanBlue20="#004e8c",t.cyanBlue10="#0078d4",t.blue10="#4f6bed",t.blueMagenta40="#373277",t.blueMagenta30="#5c2e91",t.blueMagenta20="#8764b8",t.blueMagenta10="#8378de",t.magenta20="#881798",t.magenta10="#c239b3",t.magentaPink20="#9b0062",t.magentaPink10="#e3008c",t.gray40="#393939",t.gray30="#7a7574",t.gray20="#69797e",t.gray10="#a0aeb2"}(Tf||(Tf={}));var _f=function(){var t,n=(0,l.z)();return!!(null===(t=null==n?void 0:n.navigator)||void 0===t?void 0:t.userAgent)&&n.navigator.userAgent.indexOf("rv:11.0")>-1}(),Hf=(0,r.I)(Ff,(function(t){var n,i,e,r,u,a,s,l,c=t.className,f=t.theme,h=t.isRtl,d=t.shouldHighlight,v=t.href,p=t.lineColor,g=void 0===p?"transparent":p,m=t.toDrawShape,y=f.fonts;return{root:[f.fonts.medium,{display:"flex",width:"100%",height:"100%",flexDirection:"column",overflow:"hidden"},c],chartWrapper:{overflow:"auto"},axisTitle:[f.fonts.xSmall,{textAlign:"center",fontWeight:$t.BO.semibold,fontStyle:"normal",lineHeight:$t.s.medium,color:Nf.gray160,fill:f.semanticColors.bodyText}],xAxis:{selectors:{text:[f.fonts.tiny,{fill:f.semanticColors.bodyText,fontWeight:"600",selectors:(n={},n[$t.NK]={fill:"rgb(179, 179, 179)"},n)}],line:{opacity:.2,stroke:f.semanticColors.bodyText,width:"1px",selectors:(i={},i[$t.NK]={opacity:.1,stroke:"rgb(179, 179, 179)"},i)},path:{display:"none"}}},yAxis:{selectors:{text:[f.fonts.tiny,{fill:f.semanticColors.bodyText,fontWeight:"600",selectors:(e={},e[$t.NK]={fill:"rgb(179, 179, 179)"},e)}],path:{display:"none"},line:{opacity:.2,stroke:f.semanticColors.bodyText,selectors:(r={},r[$t.NK]={opacity:.1,stroke:"rgb(179, 179, 179)"},r)},g:[h&&!_f&&{textAnchor:"end"}]}},opacityChangeOnHover:{opacity:d?"":"0.1",cursor:v?"pointer":"default"},legendContainer:[{marginTop:"8px",marginLeft:"20px"}],calloutContentRoot:[{display:"grid",overflow:"hidden",padding:"11px 16px 10px 16px",backgroundColor:f.semanticColors.bodyBackground,backgroundBlendMode:"normal, luminosity"}],calloutDateTimeContainer:{display:"flex",flexDirection:"row",justifyContent:"space-between"},calloutContentX:[(0,o.Cl)((0,o.Cl)({},y.small),{lineHeight:"16px",opacity:"0.85",color:f.semanticColors.bodySubtext})],calloutBlockContainer:[f.fonts.mediumPlus,{marginTop:"13px",color:f.semanticColors.bodyText},!m&&{selectors:(u={},u[$t.up]={forcedColorAdjust:"none"},u),borderLeft:"4px solid ".concat(g),paddingLeft:"8px"},m&&{display:"flex"}],shapeStyles:{marginRight:"8px"},calloutlegendText:(0,o.Cl)((0,o.Cl)({},y.small),{lineHeight:"16px",selectors:(a={},a[$t.NK]={color:"rgb(255, 255, 255)"},a),color:f.semanticColors.bodySubtext}),calloutContentY:[(0,o.Cl)((0,o.Cl)({},y.mediumPlus),{fontWeight:"bold",lineHeight:"22px",selectors:(s={},s[$t.NK]={color:"rgb(255, 255, 255)"},s)})],descriptionMessage:[f.fonts.small,{selectors:(l={},l[$t.NK]={color:"rgb(255, 255, 255)"},l),color:f.semanticColors.bodyText,marginTop:"10px",paddingTop:"10px",borderTop:"1px solid ".concat(f.semanticColors.menuDivider)}]}})),Rf=(0,dn.J5)((function(t){return(0,dn.J5)((function(n){var i=(0,dn.J5)((function(t){return function(i){return n(i,t)}}));return function(e,r){return t(e,r?i(r):n)}}))}));function If(t,n){return Rf(t)(n)}var Wf=function(t){if(void 0===t)return 0;var n=0;return"scrollTop"in t?n=t.scrollTop:"scrollY"in t&&(n=t.scrollY),Math.ceil(n)},zf=function(t,n){"scrollTop"in t?t.scrollTop=n:"scrollY"in t&&t.scrollTo(t.scrollX,n)},jf="spacer-",Yf={top:-1,bottom:-1,left:-1,right:-1,width:0,height:0},$f=function(t){return t.getBoundingClientRect()},Xf=$f,Gf=$f,qf=function(t){function n(n){var i=t.call(this,n)||this;return i._root=u.createRef(),i._surface=u.createRef(),i._pageRefs={},i._getDerivedStateFromProps=function(t,n){return t.items!==i.props.items||t.renderCount!==i.props.renderCount||t.startIndex!==i.props.startIndex||t.version!==i.props.version||!n.hasMounted&&i.props.renderEarly&&(0,Bn.S)()?(i._resetRequiredWindows(),i._requiredRect=null,i._measureVersion++,i._invalidatePageCache(),i._updatePages(t,n)):n},i._onRenderRoot=function(t){var n=t.rootRef,i=t.surfaceElement,e=t.divProps;return u.createElement("div",(0,o.Cl)({ref:n},e),i)},i._onRenderSurface=function(t){var n=t.surfaceRef,i=t.pageElements,e=t.divProps;return u.createElement("div",(0,o.Cl)({ref:n},e),i)},i._onRenderPage=function(t,n){for(var e,r=i.props,a=r.onRenderCell,s=r.onRenderCellConditional,l=r.role,c=t.page,f=c.items,h=void 0===f?[]:f,d=c.startIndex,v=(0,o.Tt)(t,["page"]),p=void 0===l?"listitem":"presentation",g=[],m=0;m<h.length;m++){var y=d+m,b=h[m],x=i.props.getKey?i.props.getKey(b,y):b&&b.key;null==x&&(x=y);var C=null!=s?s:a,w=null!==(e=null==C?void 0:C(b,y,i.props.ignoreScrollingState?void 0:i.state.isScrolling))&&void 0!==e?e:null;s&&!w||g.push(u.createElement("div",{role:p,className:"ms-List-cell",key:x,"data-list-index":y,"data-automationid":"ListCell"},w))}return u.createElement("div",(0,o.Cl)({},v),g)},Qs(i),i.state={pages:[],isScrolling:!1,getDerivedStateFromProps:i._getDerivedStateFromProps,hasMounted:!1},i._estimatedPageHeight=0,i._totalEstimates=0,i._requiredWindowsAhead=0,i._requiredWindowsBehind=0,i._measureVersion=0,i._cachedPageHeights={},i._estimatedPageHeight=0,i._focusedIndex=-1,i._pageCache={},i}return(0,o.C6)(n,t),n.getDerivedStateFromProps=function(t,n){return n.getDerivedStateFromProps(t,n)},Object.defineProperty(n.prototype,"pageRefs",{get:function(){return this._pageRefs},enumerable:!1,configurable:!0}),n.prototype.scrollToIndex=function(t,n,i){void 0===i&&(i=0);for(var e=this.props.startIndex,r=e+this._getRenderCount(),o=this._allowedRect,u=0,a=1,s=e;s<r;s+=a){var l=this._getPageSpecification(this.props,s,o),c=l.height;if(a=l.itemCount,s<=t&&s+a>t){if(n&&this._scrollElement){for(var f=Gf(this._scrollElement),h=Wf(this._scrollElement),d={top:h,bottom:h+f.height},v=t-s,p=0;p<v;++p)u+=n(s+p);var g=u+n(t);switch(i){case 1:return void zf(this._scrollElement,u);case 2:return void zf(this._scrollElement,g-f.height);case 3:return void zf(this._scrollElement,(u+g-f.height)/2)}if(u>=d.top&&g<=d.bottom)return;u<d.top||g>d.bottom&&(u=g-f.height)}return void(this._scrollElement&&zf(this._scrollElement,u))}u+=c}},n.prototype.getStartItemIndexInView=function(t){for(var n=0,i=this.state.pages||[];n<i.length;n++){var e=i[n];if(!e.isSpacer&&(this._scrollTop||0)>=e.top&&(this._scrollTop||0)<=e.top+e.height){if(!t){var r=Math.floor(e.height/e.itemCount);return e.startIndex+Math.floor((this._scrollTop-e.top)/r)}for(var o=0,u=e.startIndex;u<e.startIndex+e.itemCount;u++){if(r=t(u),e.top+o<=this._scrollTop&&this._scrollTop<e.top+o+r)return u;o+=r}}}return 0},n.prototype.componentDidMount=function(){this._async=new Ft(this),this._events=new _l(this),this._onAsyncScrollDebounced=this._async.debounce(this._onAsyncScroll,100,{leading:!1,maxWait:500}),this._onAsyncIdleDebounced=this._async.debounce(this._onAsyncIdle,200,{leading:!1}),this._onAsyncResizeDebounced=this._async.debounce(this._onAsyncResize,16,{leading:!1}),this._onScrollingDoneDebounced=this._async.debounce(this._onScrollingDone,500,{leading:!1}),this._scrollElement=et(this._root.current),this._scrollTop=0,this.setState((0,o.Cl)((0,o.Cl)({},this._updatePages(this.props,this.state)),{hasMounted:!0})),this._measureVersion++;var t=function(t){var n;return null!==(n=null==t?void 0:t.window)&&void 0!==n?n:"undefined"!=typeof window?window:void 0}(this.context);this._events.on(t,"resize",this._onAsyncResizeDebounced),this._root.current&&this._events.on(this._root.current,"focus",this._onFocus,!0),this._scrollElement&&(this._events.on(this._scrollElement,"scroll",this._onScroll),this._events.on(this._scrollElement,"scroll",this._onAsyncScrollDebounced))},n.prototype.componentDidUpdate=function(t,n){var i=this.props,e=this.state;this.state.pagesVersion!==n.pagesVersion&&(i.getPageHeight?this._onAsyncIdleDebounced():this._updatePageMeasurements(e.pages)?(this._materializedRect=null,this._hasCompletedFirstRender?this._onAsyncScrollDebounced():(this._hasCompletedFirstRender=!0,this.setState(this._updatePages(i,e)))):this._onAsyncIdleDebounced(),i.onPagesUpdated&&i.onPagesUpdated(e.pages))},n.prototype.componentWillUnmount=function(){var t,n;null===(t=this._async)||void 0===t||t.dispose(),null===(n=this._events)||void 0===n||n.dispose(),delete this._scrollElement},n.prototype.shouldComponentUpdate=function(t,n){var i=this.state.pages,e=n.pages,r=!1;if(!n.isScrolling&&this.state.isScrolling)return!0;if(t.version!==this.props.version)return!0;if(t.className!==this.props.className)return!0;if(t.items===this.props.items&&i.length===e.length)for(var o=0;o<i.length;o++){var u=i[o],a=e[o];if(u.key!==a.key||u.itemCount!==a.itemCount){r=!0;break}}else r=!0;return r},n.prototype.forceUpdate=function(){this._invalidatePageCache(),this._updateRenderRects(this.props,this.state,!0),this.setState(this._updatePages(this.props,this.state)),this._measureVersion++,t.prototype.forceUpdate.call(this)},n.prototype.getTotalListHeight=function(){return this._surfaceRect.height},n.prototype.render=function(){for(var t=this.props,n=t.className,i=t.role,e=void 0===i?"list":i,r=t.onRenderSurface,u=t.onRenderRoot,a=this.state.pages,s=void 0===a?[]:a,l=[],c=q(this.props,G),f=0,h=s;f<h.length;f++){var d=h[f];l.push(this._renderPage(d))}var v=r?If(r,this._onRenderSurface):this._onRenderSurface;return(u?If(u,this._onRenderRoot):this._onRenderRoot)({rootRef:this._root,pages:s,surfaceElement:v({surfaceRef:this._surface,pages:s,pageElements:l,divProps:{role:"presentation",className:"ms-List-surface"}}),divProps:(0,o.Cl)((0,o.Cl)({},c),{className:U("ms-List",n),role:l.length>0?e:void 0,"aria-label":l.length>0?c["aria-label"]:void 0})})},n.prototype._shouldVirtualize=function(t){void 0===t&&(t=this.props);var n=t.onShouldVirtualize;return!n||n(t)},n.prototype._invalidatePageCache=function(){this._pageCache={}},n.prototype._renderPage=function(t){var n,i=this,e=this.props.usePageCache;if(e&&(n=this._pageCache[t.key])&&n.pageElement)return n.pageElement;var r=this._getPageStyle(t),o=this.props.onRenderPage,u=(void 0===o?this._onRenderPage:o)({page:t,className:"ms-List-page",key:t.key,ref:function(n){i._pageRefs[t.key]=n},style:r,role:"presentation"},this._onRenderPage);return e&&0===t.startIndex&&(this._pageCache[t.key]={page:t,pageElement:u}),u},n.prototype._getPageStyle=function(t){var n=this.props.getPageStyle;return(0,o.Cl)((0,o.Cl)({},n?n(t):{}),t.items?{}:{height:t.height})},n.prototype._onFocus=function(t){for(var n=t.target;n!==this._surface.current;){var i=n.getAttribute("data-list-index");if(i){this._focusedIndex=Number(i);break}n=C(n)}},n.prototype._onScroll=function(){this.state.isScrolling||this.props.ignoreScrollingState||this.setState({isScrolling:!0}),this._resetRequiredWindows(),this._onScrollingDoneDebounced()},n.prototype._resetRequiredWindows=function(){this._requiredWindowsAhead=0,this._requiredWindowsBehind=0},n.prototype._onAsyncScroll=function(){var t,n;this._updateRenderRects(this.props,this.state),this._materializedRect&&(t=this._requiredRect,n=this._materializedRect,t.top>=n.top&&t.left>=n.left&&t.bottom<=n.bottom&&t.right<=n.right)||this.setState(this._updatePages(this.props,this.state))},n.prototype._onAsyncIdle=function(){var t=this.props,n=t.renderedWindowsAhead,i=t.renderedWindowsBehind,e=this._requiredWindowsAhead,r=this._requiredWindowsBehind,o=Math.min(n,e+1),u=Math.min(i,r+1);o===e&&u===r||(this._requiredWindowsAhead=o,this._requiredWindowsBehind=u,this._updateRenderRects(this.props,this.state),this.setState(this._updatePages(this.props,this.state))),(n>o||i>u)&&this._onAsyncIdleDebounced()},n.prototype._onScrollingDone=function(){this.props.ignoreScrollingState||(this.setState({isScrolling:!1}),this._onAsyncIdle())},n.prototype._onAsyncResize=function(){this.forceUpdate()},n.prototype._updatePages=function(t,n){this._requiredRect||this._updateRenderRects(t,n);var i=this._buildPages(t,n),e=n.pages;return this._notifyPageChanges(e,i.pages,this.props),(0,o.Cl)((0,o.Cl)((0,o.Cl)({},n),i),{pagesVersion:{}})},n.prototype._notifyPageChanges=function(t,n,i){var e=i.onPageAdded,r=i.onPageRemoved;if(e||r){for(var o={},u=0,a=t;u<a.length;u++)(c=a[u]).items&&(o[c.startIndex]=c);for(var s=0,l=n;s<l.length;s++){var c;(c=l[s]).items&&(o[c.startIndex]?delete o[c.startIndex]:this._onPageAdded(c))}for(var f in o)o.hasOwnProperty(f)&&this._onPageRemoved(o[f])}},n.prototype._updatePageMeasurements=function(t){var n=!1;if(!this._shouldVirtualize())return n;for(var i=0;i<t.length;i++){var e=t[i];e.items&&(n=this._measurePage(e)||n)}return n},n.prototype._measurePage=function(t){var n=!1,i=this._pageRefs[t.key],e=this._cachedPageHeights[t.startIndex];if(i&&this._shouldVirtualize()&&(!e||e.measureVersion!==this._measureVersion)){var r={width:i.clientWidth,height:i.clientHeight};(r.height||r.width)&&(n=t.height!==r.height,t.height=r.height,this._cachedPageHeights[t.startIndex]={height:r.height,measureVersion:this._measureVersion},this._estimatedPageHeight=Math.round((this._estimatedPageHeight*this._totalEstimates+r.height)/(this._totalEstimates+1)),this._totalEstimates++)}return n},n.prototype._onPageAdded=function(t){var n=this.props.onPageAdded;n&&n(t)},n.prototype._onPageRemoved=function(t){var n=this.props.onPageRemoved;n&&n(t)},n.prototype._buildPages=function(t,n){var i=t.renderCount,e=t.items,r=t.startIndex,u=t.getPageHeight;i=this._getRenderCount(t);for(var a=(0,o.Cl)({},Yf),s=[],l=1,c=0,f=null,h=this._focusedIndex,d=r+i,v=this._shouldVirtualize(t),p=0===this._estimatedPageHeight&&!u,g=this._allowedRect,m=function(i){var o=b._getPageSpecification(t,i,g),u=o.height,m=o.data,x=o.key;l=o.itemCount;var C,w,M=c+u-1,k=y(n.pages,(function(t){return!!t.items&&t.startIndex===i}))>-1,S=!g||M>=g.top&&c<=g.bottom,A=!b._requiredRect||M>=b._requiredRect.top&&c<=b._requiredRect.bottom;if(!p&&(A||S&&k)||!v||h>=i&&h<i+l||i===r){f&&(s.push(f),f=null);var L=Math.min(l,d-i),V=b._createPage(x,e.slice(i,i+L),i,void 0,void 0,m);V.top=c,V.height=u,b._visibleRect&&b._visibleRect.bottom&&(V.isVisible=M>=b._visibleRect.top&&c<=b._visibleRect.bottom),s.push(V),A&&b._allowedRect&&(C=a,w={top:c,bottom:M,height:u,left:g.left,right:g.right,width:g.width},C.top=w.top<C.top||-1===C.top?w.top:C.top,C.left=w.left<C.left||-1===C.left?w.left:C.left,C.bottom=w.bottom>C.bottom||-1===C.bottom?w.bottom:C.bottom,C.right=w.right>C.right||-1===C.right?w.right:C.right,C.width=C.right-C.left+1,C.height=C.bottom-C.top+1)}else f||(f=b._createPage(jf+i,void 0,i,0,void 0,m,!0)),f.height=(f.height||0)+(M-c)+1,f.itemCount+=l;if(c+=M-c+1,p&&v)return"break"},b=this,x=r;x<d&&"break"!==m(x);x+=l);return f&&(f.key=jf+"end",s.push(f)),this._materializedRect=a,(0,o.Cl)((0,o.Cl)({},n),{pages:s,measureVersion:this._measureVersion})},n.prototype._getPageSpecification=function(t,n,i){var e=t.getPageSpecification;if(e){var r=e(n,i,t.items),o=r.itemCount,u=void 0===o?this._getItemCountForPage(n,i):o,a=r.height;return{itemCount:u,height:void 0===a?this._getPageHeight(n,i,u):a,data:r.data,key:r.key}}return{itemCount:u=this._getItemCountForPage(n,i),height:this._getPageHeight(n,i,u)}},n.prototype._getPageHeight=function(t,n,i){if(this.props.getPageHeight)return this.props.getPageHeight(t,n,i,this.props.items);var e=this._cachedPageHeights[t];return e?e.height:this._estimatedPageHeight||30},n.prototype._getItemCountForPage=function(t,n){return(this.props.getItemCountForPage?this.props.getItemCountForPage(t,n):10)||10},n.prototype._createPage=function(t,n,i,e,r,o,u){void 0===i&&(i=-1),void 0===e&&(e=n?n.length:0),void 0===r&&(r={}),t=t||"page-"+i;var a=this._pageCache[t];return a&&a.page?a.page:{key:t,startIndex:i,itemCount:e,items:n,style:r,top:0,height:0,data:o,isSpacer:u||!1}},n.prototype._getRenderCount=function(t){var n=t||this.props,i=n.items,e=n.startIndex,r=n.renderCount;return void 0===r?i?i.length-e:0:r},n.prototype._updateRenderRects=function(t,n,i){var e=t.renderedWindowsAhead,r=t.renderedWindowsBehind,u=n.pages;if(this._shouldVirtualize(t)){var a=this._surfaceRect||(0,o.Cl)({},Yf),s=function(t){if(void 0===t)return 0;var n=0;return"scrollHeight"in t?n=t.scrollHeight:"document"in t&&(n=t.document.documentElement.scrollHeight),n}(this._scrollElement),c=Wf(this._scrollElement);this._surface.current&&(i||!u||!this._surfaceRect||!s||s!==this._scrollHeight||Math.abs(this._scrollTop-c)>.3333333333333333*this._estimatedPageHeight)&&(a=this._surfaceRect=Xf(this._surface.current),this._scrollTop=c),!i&&s&&s===this._scrollHeight||this._measureVersion++,this._scrollHeight=s||0;var f=Math.max(0,-a.top),h=(0,l.z)(this._root.current),d={top:f,left:a.left,bottom:f+h.innerHeight,right:a.right,width:a.width,height:h.innerHeight};this._requiredRect=Uf(d,this._requiredWindowsBehind,this._requiredWindowsAhead),this._allowedRect=Uf(d,r,e),this._visibleRect=d}},n.defaultProps={startIndex:0,onRenderCell:function(t,n,i){return u.createElement(u.Fragment,null,t&&t.name||"")},onRenderCellConditional:void 0,renderedWindowsAhead:2,renderedWindowsBehind:2},n.contextType=It,n}(u.Component);function Uf(t,n,i){var e=t.top-n*t.height,r=t.height+(n+i)*t.height;return{top:e,bottom:e+r,height:r,left:t.left,right:t.right,width:t.width}}var Zf,Kf=function(t){var n=u.useRef(null);u.useEffect((function(){if(n.current){var i=ls(n.current),e=t.text.split(/\s+/),r=[],o=i.append("tspan"),u=0;return e.forEach((function(n){r.push(n),o.text(r.join(" "));var e=o.node();e&&e.getComputedTextLength()>t.width&&r.length>1&&(u++,r.pop(),o.text(r.join(" ")),r=[n],o=i.append("tspan").text(n).attr("dy",t.lineHeight).attr("x",t.x))})),i.attr("dy",-u*t.lineHeight),function(){i.selectAll("tspan").remove()}}})),t.lineHeight;var i=(0,o.Tt)(t,["lineHeight"]);return u.createElement("text",(0,o.Cl)({ref:n},Is(i)))},Jf=function(t){var n,i,e,r=u.useRef(null),o=u.useState(!1),a=o[0],s=o[1],l=null;if(a){var c=t.labelDef.aggregatedIdx.map((function(n){return t.lineDefs[n].onRenderCard})).filter((function(t){return!!t}));c.length>0&&(l=u.createElement(Kn,{target:r.current,onDismiss:function(){return s(!1)},setInitialFocus:!0,role:"dialog"},u.createElement(xl,{isCircularNavigation:!0,direction:zs.vertical},u.createElement(qf,{items:c,role:"alert","aria-roledescription":" ",onRenderCell:function(t){return u.createElement("div",{"data-is-focusable":!0},t&&t())}}))))}var f=t.textColor?bf(t.textColor,null===(n=t.theme)||void 0===n?void 0:n.isInverted):null===(i=t.theme)||void 0===i?void 0:i.semanticColors.messageText;return e=1===t.labelDef.aggregatedIdx.length?t.lineDefs[t.labelDef.aggregatedIdx[0]].event:t.mergedLabel(t.labelDef.aggregatedIdx.length),u.createElement(u.Fragment,null,u.createElement("g",{ref:r,onClick:function(){return s(!0)},"data-is-focusable":!0,style:{cursor:"pointer"}},u.createElement(Kf,{text:e,x:t.labelDef.x,y:t.textY,width:t.textWidth,lineHeight:t.textLineHeight,textAnchor:t.labelDef.anchor,fontSize:t.textFontSize,fill:f})),l)},Qf=function(t){var n,i,e=t.labelWidth?t.labelWidth:105,r=t.chartYTop-20,a=r+7,s=t.scale.range(),l=t.events.map((function(n){return(0,o.Cl)((0,o.Cl)({},n),{x:t.scale(n.date)})}));l.sort((function(t,n){return+t.date-+n.date}));var c=t.strokeColor?bf(t.strokeColor,null===(n=t.theme)||void 0===n?void 0:n.isInverted):null===(i=t.theme)||void 0===i?void 0:i.palette.black,f=function(t,n){for(var i=[],e=[],r=0,o=t;r<o.length;r++){var u=o[r],a=n(u);-1===i.indexOf(a)&&(e.push(u),i.push(a))}return e}(l,(function(t){return t.date.toString()})).map((function(n,i){return u.createElement("line",{key:i,x1:n.x,x2:n.x,y1:a,y2:t.chartYBottom,stroke:c,strokeDasharray:"8"})})),h=function(t,n,i,e){var r=function(e,r){if(r===t.length)return[];var u=t[r].x,a=u-n;return u<e?[]:r===t.length-1?e<a?[{x:u,anchor:"end",aggregatedIdx:[r]}]:u+n<i?[{x:u,anchor:"start",aggregatedIdx:[r]}]:[]:o(r,e<a?"end":"start")},o=function(e,o){var u="end"===o?t[e].x:t[e].x+n,a=y(t,(function(t){return t.x>u&&(t.x-n>=u||t.x+n<i)}),e+1);-1===a&&(a=t.length);for(var s=[],l=e;l<a;l++)s.push(l);var c=r(u,a);return c.unshift({x:t[e].x,anchor:o,aggregatedIdx:s}),c};return r(e,0)}(l,e+5,s[1],s[0]).map((function(n,i){return u.createElement(Jf,{key:i,theme:t.theme,lineDefs:l,labelDef:n,textY:r,textWidth:e,textLineHeight:18,textFontSize:"10pt",textColor:t.labelColor,mergedLabel:t.mergedLabel})}));return u.createElement(u.Fragment,null,f,h)},th=(0,a.Z)();!function(t){t[t.hoverSize=11]="hoverSize",t[t.invisibleSize=1]="invisibleSize"}(Zf||(Zf={}));var nh=Si((function(t){return t.x})).left,ih=function(t){function n(n){var i,e,r,a,l,c=t.call(this,n)||this;return c._xAxisScale="",c._yAxisScale="",c.eventLabelHeight=36,c._isRTL=(0,s.jI)(),c._getDomainNRangeValues=function(t,n,i,e,r,o,u,a,s){return o===os.NumericAxis?ws(t,n,i,r):o===os.DateAxis?ks(t,n,i,r,a,e):{dStartValue:0,dEndValue:0,rStartValue:0,rEndValue:0}},c._injectIndexPropertyInLineChartData=function(t,n){void 0===n&&(n=!1);var i=c.props.allowMultipleShapesForPoints,e=void 0!==i&&i,r=n?null==t?void 0:t.filter((function(t){var n,i,e;return(null===(i=null===(n=c.props.legendProps)||void 0===n?void 0:n.selectedLegends)||void 0===i?void 0:i.includes(t.legend))||(null===(e=c.props.legendProps)||void 0===e?void 0:e.selectedLegend)===t.legend})):t;return r?r.map((function(t,n){var i,r,u;return u=void 0===t.color?yf(n,0,null===(i=c.props.theme)||void 0===i?void 0:i.isInverted):bf(t.color,null===(r=c.props.theme)||void 0===r?void 0:r.isInverted),(0,o.Cl)((0,o.Cl)({},t),{index:e?n:-1,color:u})})):[]},c._getCustomizedCallout=function(){return c.props.onRenderCalloutPerStack?c.props.onRenderCalloutPerStack(c.state.stackCalloutProps):c.props.onRenderCalloutPerDataPoint?c.props.onRenderCalloutPerDataPoint(c.state.dataPointCalloutProps):null},c._getMargins=function(t){c.margins=t},c._initializeLineChartData=function(t,n,i,e,r){c._xAxisScale=t,c._yAxisScale=n,c._renderedColorFillBars=c.props.colorFillBars?c._createColorFillBars(i):[],c.lines=c._createLines(r,i)},c._handleSingleLegendSelectionAction=function(t){c.state.selectedLegend===t.legend?(c.setState({selectedLegend:""}),c._handleLegendClick(t,null)):(c.setState({selectedLegend:t.legend}),c._handleLegendClick(t,t.legend))},c._onHoverCardHide=function(){c.setState({selectedLegendPoints:[],selectedColorBarLegend:[],isSelectedLegend:!1})},c._closeCallout=function(){c.setState({isCalloutVisible:!1})},c._getBoxWidthOfShape=function(t,n,i){var e=c.props,r=e.allowMultipleShapesForPoints,o=void 0!==r&&r,u=e.strokeWidth,a=void 0===u?4:u,s=c.state.activePoint;return o?s===t?Zf.hoverSize:1===n||i?2.5*a:Zf.invisibleSize:s===t?Zf.hoverSize:Zf.invisibleSize},c._getPath=function(t,n,i,e,r,o){var u=c.props.allowMultipleShapesForPoints,a=void 0!==u&&u,s=c._getBoxWidthOfShape(i,e,r),l=a?o%Object.keys(Es).length:0,f=Es[l].widthRatio;return function(t,n,i,e){return["M".concat(t-i/2," ").concat(n,"\n A").concat(i/2," ").concat(i/2," 0 1 0 ").concat(t+i/2," ").concat(n,"\n M").concat(t-i/2," ").concat(n,"\n A ").concat(i/2," ").concat(i/2," 0 1 1 ").concat(t+i/2," ").concat(n,"\n "),"M".concat(t-i/2," ").concat(n-i/2,"\n L").concat(t+i/2," ").concat(n-i/2,"\n L").concat(t+i/2," ").concat(n+i/2,"\n L").concat(t-i/2," ").concat(n+i/2,"\n Z"),"M".concat(t-i/2," ").concat(n-.2886*i,"\n H ").concat(t+i/2,"\n L").concat(t," ").concat(n+.5774*i," Z"),"M".concat(t," ").concat(n-i/2,"\n L").concat(t+i/2," ").concat(n,"\n L").concat(t," ").concat(n+i/2,"\n L").concat(t-i/2," ").concat(n,"\n Z"),"M".concat(t," ").concat(n-.5774*i,"\n L").concat(t+i/2," ").concat(n+.2886*i,"\n L").concat(t-i/2," ").concat(n+.2886*i," Z"),"M".concat(t-.5*i," ").concat(n-.866*i,"\n L").concat(t+.5*i," ").concat(n-.866*i,"\n L").concat(t+i," ").concat(n,"\n L").concat(t+.5*i," ").concat(n+.866*i,"\n L").concat(t-.5*i," ").concat(n+.866*i,"\n L").concat(t-i," ").concat(n,"\n Z"),"M".concat(t," ").concat(n-.851*i,"\n L").concat(t+.6884*i," ").concat(n-.2633*i,"\n L").concat(t+.5001*i," ").concat(n+.6884*i,"\n L").concat(t-.5001*i," ").concat(n+.6884*i,"\n L").concat(t-.6884*i," ").concat(n-.2633*i,"\n Z"),"M".concat(t-.5001*i," ").concat(n-1.207*i,"\n L").concat(t+.5001*i," ").concat(n-1.207*i,"\n L").concat(t+1.207*i," ").concat(n-.5001*i,"\n L").concat(t+1.207*i," ").concat(n+.5001*i,"\n L").concat(t+.5001*i," ").concat(n+1.207*i,"\n L").concat(t-.5001*i," ").concat(n+1.207*i,"\n L").concat(t-1.207*i," ").concat(n+.5001*i,"\n L").concat(t-1.207*i," ").concat(n-.5001*i,"\n Z")][e]}(t,n,s=f>1?s/f:s,l)},c._getPointFill=function(t,n,i,e){var r=c.state.activePoint,o=c.props,u=o.theme;return o.allowMultipleShapesForPoints,r===n?u.semanticColors.bodyBackground:t},c._createColorFillBars=function(t){var n,i=[];c.state.isSelectedLegend?c._colorFillBars=c.state.selectedColorBarLegend:c._colorFillBars=c.props.colorFillBars;for(var e=Ss(c._points),r=0;r<c._colorFillBars.length;r++){var o=c._colorFillBars[r],a=g(o.legend.replace(/\W/g,"")),s=bf(o.color,null===(n=c.props.theme)||void 0===n?void 0:n.isInverted);o.applyPattern&&i.push(c._getStripePattern(s,r));for(var l=0;l<o.data.length;l++){var f=o.data[l].startX,h=o.data[l].endX,d=c._legendHighlighted(o.legend)||c._noLegendHighlighted()||c.state.isSelectedLegend?c._getColorFillBarOpacity(o):.1;i.push(u.createElement("rect",{fill:o.applyPattern?"url(#".concat(c._colorFillBarPatternId,"_").concat(r,")"):s,fillOpacity:d,x:c._isRTL?c._xAxisScale(h):c._xAxisScale(f),y:c._yAxisScale(e.endValue)-3,width:Math.abs(c._xAxisScale(h)-c._xAxisScale(f)),height:c._yAxisScale(c.props.yMinValue||0)-c._yAxisScale(e.endValue)+3,key:"".concat(a).concat(l)}))}}return i},c._getStripePattern=function(t,n){return u.createElement("pattern",{id:"".concat(c._colorFillBarPatternId,"_").concat(n),width:16,height:16,key:"".concat(c._colorFillBarPatternId,"_").concat(n),patternUnits:"userSpaceOnUse"},u.createElement("path",{d:"M-4,4 l8,-8 M0,16 l16,-16 M12,20 l8,-8",stroke:t,strokeWidth:1.25}))},c._checkInGap=function(t,n,i){for(var e=i,r=!1;e<n.length&&t>n[e].endIndex;)e++;return e<n.length&&t>n[e].startIndex&&t<=n[e].endIndex&&(r=!0),{isInGap:r,gapIndex:e}},c._onMouseOverLargeDataset=function(t,n,i){i.persist();var e=c.props.data.lineChartData,r=c._xAxisScale.invert(Mf(i)[0],document.getElementById(c._rectId)),o=nh(e[t].data,r),u=e[t].data[o-1],a=e[t].data[o],s=null,l=null;if(void 0===u&&void 0!==a)s=a.x,l=o;else if(void 0!==u&&void 0===a)s=u.x,l=o-1;else{var f=void 0,h=void 0,d=void 0;switch(Ts(e[t].data[0].x,!0)){case os.DateAxis:f=new Date(r).getTime(),h=u.x.getTime(),d=a.x.getTime(),s=Math.abs(f-h)>Math.abs(f-d)?a.x:u.x,l=Math.abs(f-h)>Math.abs(f-d)?o:o-1;break;case os.NumericAxis:f=r,h=u.x,d=a.x,s=Math.abs(f-h)>Math.abs(f-d)?a.x:u.x,l=Math.abs(f-h)>Math.abs(f-d)?o:o-1}}var v=e[t].data[l],p=v.xAxisCalloutData,g=v.xAxisCalloutAccessibilityData,m=s instanceof Date?Rs(s,c.props.useUTC):s,y=s instanceof Date?s.getTime():s,x=b(c._calloutPoints,(function(t){return t.x===y})),C=e[t].data[l],w=null===c.state.nearestCircleToHighlight||null!==c.state.nearestCircleToHighlight&&null!==C&&(c.state.nearestCircleToHighlight.x!==C.x||c.state.nearestCircleToHighlight.y!==C.y);x&&w&&(c._uniqueCallOutID="#".concat(c._staticHighlightCircle,"_").concat(t),ls("#".concat(c._staticHighlightCircle,"_").concat(t)).attr("cx","".concat(c._xAxisScale(C.x))).attr("cy","".concat(c._yAxisScale(C.y))).attr("visibility","visibility"),ls("#".concat(c._verticalLine)).attr("transform",(function(){return"translate(".concat(c._xAxisScale(C.x),", ").concat(c._yAxisScale(C.y),")")})).attr("visibility","visibility").attr("y2","".concat(n-c._yAxisScale(C.y))),c.setState({nearestCircleToHighlight:C,isCalloutVisible:!0,refSelected:"#".concat(c._staticHighlightCircle,"_").concat(t),stackCalloutProps:x,YValueHover:x.values,dataPointCalloutProps:x,hoverXValue:p||m,xAxisCalloutAccessibilityData:g,activePoint:"",activeLine:t})),x||c.setState({isCalloutVisible:!1,nearestCircleToHighlight:C,activePoint:"",activeLine:t})},c._handleFocus=function(t,n,i,e,r){c._uniqueCallOutID=e;var o=n instanceof Date?Rs(n,c.props.useUTC):n,u=n instanceof Date?n.getTime():n,a=b(c._calloutPoints,(function(t){return t.x===u}));if(a){var s=c;ls("#".concat(c._verticalLine)).attr("transform",(function(){return"translate(".concat(s._xAxisScale(n),", 0)")})).attr("visibility","visibility"),c._refArray.forEach((function(n){n.index===t&&c.setState({isCalloutVisible:!0,refSelected:n.refElement,hoverXValue:i||""+o,YValueHover:a.values,stackCalloutProps:a,dataPointCalloutProps:a,activePoint:e,xAxisCalloutAccessibilityData:r})}))}else c.setState({activePoint:e})},c._handleHover=function(t,n,i,e,r,o,u){u.persist();var a=t instanceof Date?Rs(t,c.props.useUTC):t,s=t instanceof Date?t.getTime():t,l=c,f=b(c._calloutPoints,(function(t){return t.x===s}));f?(ls("#".concat(c._verticalLine)).attr("transform",(function(){return"translate(".concat(l._xAxisScale(t),", ").concat(l._yAxisScale(n),")")})).attr("visibility","visibility").attr("y2","".concat(i-l._yAxisScale(n))),c._uniqueCallOutID!==r&&(c._uniqueCallOutID=r,c.setState({isCalloutVisible:!0,refSelected:"#".concat(r),hoverXValue:e||""+a,YValueHover:f.values,stackCalloutProps:f,dataPointCalloutProps:f,activePoint:r,xAxisCalloutAccessibilityData:o,nearestCircleToHighlight:null,activeLine:null}))):c.setState({activePoint:r,nearestCircleToHighlight:null,activeLine:null})},c._getClickHandler=function(t){return t?{onClick:t}:{}},c._handleMouseOut=function(){ls("#".concat(c._verticalLine)).attr("visibility","hidden")},c._handleChartMouseLeave=function(){c._uniqueCallOutID=null,c.setState({isCalloutVisible:!1,activePoint:"",activeLine:null})},c._handleLegendClick=function(t,n){t.onLegendClick&&t.onLegendClick(n)},c._handleMultipleLineLegendSelectionAction=function(t){var n,i=c.state.selectedLegendPoints.reduce((function(n,i,e){return n>-1||i.legend!==t.legend?n:e}),-1);n=-1===i?(0,o.fX)((0,o.fX)([],c.state.selectedLegendPoints,!0),[t],!1):c.state.selectedLegendPoints.slice(0,i).concat(c.state.selectedLegendPoints.slice(i+1)),c.props.data&&n.length===c.props.data.lineChartData.length&&(c.props.colorFillBars&&c.props.colorFillBars.length===c.state.selectedColorBarLegend.length||!c.props.colorFillBars)?c._clearMultipleLegendSelections():n.length||c.state.selectedColorBarLegend.length?c.setState({selectedLegendPoints:n,isSelectedLegend:!0}):c._clearMultipleLegendSelections();var e=n.map((function(t){return t.legend}));c._handleLegendClick(t,e)},c._handleMultipleColorFillBarLegendSelectionAction=function(t){var n,i=c.state.selectedColorBarLegend.reduce((function(n,i,e){return n>-1||i.legend!==t.legend?n:e}),-1);(n=-1===i?(0,o.fX)((0,o.fX)([],c.state.selectedColorBarLegend,!0),[t],!1):c.state.selectedColorBarLegend.slice(0,i).concat(c.state.selectedColorBarLegend.slice(i+1))).length===(c.props.colorFillBars&&c.props.colorFillBars.length)&&(c.props.data&&c.props.data.lineChartData.length===c.state.selectedLegendPoints.length||!c.props.data)?c._clearMultipleLegendSelections():n.length||c.state.selectedLegendPoints.length?c.setState({selectedColorBarLegend:n,isSelectedLegend:!0}):c._clearMultipleLegendSelections();var e=n.map((function(t){return t.legend}));c._handleLegendClick(t,e)},c._clearMultipleLegendSelections=function(){c.setState({selectedColorBarLegend:[],selectedLegendPoints:[],isSelectedLegend:!1})},c._legendHighlighted=function(t){return c.state.selectedLegend===t||""===c.state.selectedLegend&&c.state.activeLegend===t},c._noLegendHighlighted=function(){return""===c.state.selectedLegend&&""===c.state.activeLegend},c._getColorFillBarOpacity=function(t){return t.applyPattern?1:.4},c._getAriaLabel=function(t,n){var i,e=c._points[t],r=e.data[n],o=r.x instanceof Date?Rs(r.x,c.props.useUTC):r.x,u=r.xAxisCalloutData||o,a=e.legend,s=r.yAxisCalloutData||r.y;return(null===(i=r.callOutAccessibilityData)||void 0===i?void 0:i.ariaLabel)||"".concat(u,". ").concat(a,", ").concat(s,".")},c._getChartTitle=function(){var t=c.props.data,n=t.chartTitle,i=t.lineChartData;return(n?"".concat(n,". "):"")+"Line chart with ".concat((null==i?void 0:i.length)||0," lines. ")},Qs(c),c.state={hoverXValue:"",activeLegend:"",YValueHover:[],refSelected:"",selectedLegend:null!==(e=null===(i=n.legendProps)||void 0===i?void 0:i.selectedLegend)&&void 0!==e?e:"",isCalloutVisible:!1,selectedLegendPoints:c._injectIndexPropertyInLineChartData(c.props.data.lineChartData,!0),selectedColorBarLegend:[],isSelectedLegend:(null!==(l=null===(a=null===(r=c.props.legendProps)||void 0===r?void 0:r.selectedLegends)||void 0===a?void 0:a.length)&&void 0!==l?l:0)>0,activePoint:"",nearestCircleToHighlight:null,activeLine:null},c._refArray=[],c._points=c._injectIndexPropertyInLineChartData(c.props.data.lineChartData),c._colorFillBars=[],c._calloutPoints=ms(c._points)||[],c._circleId=g("circle"),c._lineId=g("lineID"),c._borderId=g("borderID"),c._verticalLine=g("verticalLine"),c._colorFillBarPatternId=g("colorFillBarPattern"),c._tooltipId=g("LineChartTooltipId_"),c._rectId=g("containerRectLD"),c._staticHighlightCircle=g("staticHighlightCircle"),c._createLegendsMemoized=(0,dn.J9)((function(t){return c._createLegends(t)})),c._firstRenderOptimization=!0,c._emptyChartId=g("_LineChart_empty"),c._cartesianChartRef=u.createRef(),n.eventAnnotationProps&&n.eventAnnotationProps.labelHeight&&(c.eventLabelHeight=n.eventAnnotationProps.labelHeight),c}return(0,o.C6)(n,t),n.prototype.componentDidUpdate=function(t){var n,i,e,r,o,u,a,s,l;(null===(n=t.legendProps)||void 0===n?void 0:n.selectedLegend)===(null===(i=this.props.legendProps)||void 0===i?void 0:i.selectedLegend)&&Ws(null===(e=t.legendProps)||void 0===e?void 0:e.selectedLegends,null===(r=this.props.legendProps)||void 0===r?void 0:r.selectedLegends)||this.setState({selectedLegend:null!==(u=null===(o=this.props.legendProps)||void 0===o?void 0:o.selectedLegend)&&void 0!==u?u:"",selectedLegendPoints:this._injectIndexPropertyInLineChartData(this.props.data.lineChartData,!0),isSelectedLegend:(null!==(l=null===(s=null===(a=this.props.legendProps)||void 0===a?void 0:a.selectedLegends)||void 0===s?void 0:s.length)&&void 0!==l?l:0)>0}),t.height===this.props.height&&t.width===this.props.width&&t.data===this.props.data||(this._points=this._injectIndexPropertyInLineChartData(this.props.data.lineChartData),this._calloutPoints=ms(this._points)||[])},n.prototype.render=function(){var t=this,n=this.props,i=n.tickValues,e=n.tickFormat,r=n.eventAnnotationProps,a=n.legendProps,s=n.data;this._points=this._injectIndexPropertyInLineChartData(s.lineChartData);var l=Cs(this._points),c=this._points;a&&a.canSelectMultipleLegends&&(c=this.state.selectedLegendPoints.length>=1?this.state.selectedLegendPoints:this._points,this._calloutPoints=ms(c));var f=null;this.props.hideLegend||(f=this._createLegendsMemoized(this._points));var h=(0,o.Cl)({isCalloutVisible:this.state.isCalloutVisible,directionalHint:x.topAutoEdge,YValueHover:this.state.YValueHover,hoverXValue:this.state.hoverXValue,id:"toolTip".concat(this._uniqueCallOutID),target:this.state.refSelected,isBeakVisible:!1,gapSpace:15,onDismiss:this._closeCallout,preventDismissOnEvent:function(){return!0},hidden:!(!this.props.hideTooltip&&this.state.isCalloutVisible),descriptionMessage:this.props.getCalloutDescriptionMessage&&this.state.stackCalloutProps?this.props.getCalloutDescriptionMessage(this.state.stackCalloutProps):void 0,"data-is-focusable":!0,xAxisCalloutAccessibilityData:this.state.xAxisCalloutAccessibilityData},this.props.calloutProps),d={tickValues:i,tickFormat:e};return this._isChartEmpty()?u.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):u.createElement(Hf,(0,o.Cl)({},this.props,{chartTitle:this._getChartTitle(),points:c,chartType:rs.LineChart,isCalloutForStack:!0,calloutProps:h,tickParams:d,legendBars:f,createYAxis:vs,getmargins:this._getMargins,getMinMaxOfYAxis:Ss,getGraphData:this._initializeLineChartData,xAxisType:l?os.DateAxis:os.NumericAxis,customizedCallout:this._getCustomizedCallout(),getDomainNRangeValues:this._getDomainNRangeValues,createStringYAxis:gs,onChartMouseLeave:this._handleChartMouseLeave,enableFirstRenderOptimization:this.props.enablePerfOptimization&&this._firstRenderOptimization,ref:this._cartesianChartRef,children:function(n){return t._xAxisScale=n.xScale,t._yAxisScale=n.yScale,u.createElement(u.Fragment,null,u.createElement("g",null,u.createElement("line",{x1:0,y1:0,x2:0,y2:n.containerHeight,stroke:"#323130",id:t._verticalLine,visibility:"hidden",strokeDasharray:"5,5"}),t.props.optimizeLargeData?u.createElement("rect",{id:t._rectId,width:n.containerWidth,height:n.containerHeight,fill:"transparent"}):u.createElement(u.Fragment,null),u.createElement("g",null,t._renderedColorFillBars,t.lines),r&&u.createElement(Qf,(0,o.Cl)({theme:t.props.theme},r,{scale:n.xScale,chartYTop:t.margins.top+t.eventLabelHeight,chartYBottom:n.containerHeight-35}))))}}))},Object.defineProperty(n.prototype,"chartContainer",{get:function(){var t;return(null===(t=this._cartesianChartRef.current)||void 0===t?void 0:t.chartContainer)||null},enumerable:!1,configurable:!0}),n.prototype._createLegends=function(t){var n=this,i=this.props,e=i.legendProps,r=i.allowMultipleShapesForPoints,a=void 0!==r&&r,s=!(!e||!e.canSelectMultipleLegends),l=t.map((function(t){var i=t.color;return(0,o.Cl)((0,o.Cl)({title:t.legend,color:i,action:function(){s?n._handleMultipleLineLegendSelectionAction(t):n._handleSingleLegendSelectionAction(t)},onMouseOutAction:function(){n.setState({activeLegend:""})},hoverAction:function(){n._handleChartMouseLeave(),n.setState({activeLegend:t.legend})}},t.legendShape&&{shape:t.legendShape}),a&&{shape:Ds[t.index%Object.keys(Es).length]})})),c=this.props.colorFillBars?this.props.colorFillBars.map((function(t,i){var e,r=t.legend,o=bf(t.color,null===(e=n.props.theme)||void 0===e?void 0:e.isInverted);return{title:r,color:o,action:function(){s?n._handleMultipleColorFillBarLegendSelectionAction(t):n._handleSingleLegendSelectionAction(t)},onMouseOutAction:function(){n.setState({activeLegend:""})},hoverAction:function(){n._handleChartMouseLeave(),n.setState({activeLegend:r})},opacity:n._getColorFillBarOpacity(t),stripePattern:t.applyPattern}})):[];return u.createElement(Lc,(0,o.Cl)({legends:(0,o.fX)((0,o.fX)([],l,!0),c,!0),enabledWrapLines:this.props.enabledLegendsWrapLines,overflowProps:this.props.legendsOverflowProps,focusZonePropsInHoverCard:this.props.focusZonePropsForLegendsInHoverCard,overflowText:this.props.legendsOverflowText},s&&{onLegendHoverCardLeave:this._onHoverCardHide},this.props.legendProps))},n.prototype._createLines=function(t,n){var i,e,r,a,s,l,c,f,h,d,v,p,g,m,y,b,x,C,w,M,k,S,A,L,V,D,N=this,T=[];this.state.isSelectedLegend?this._points=this.state.selectedLegendPoints:this._points=this._injectIndexPropertyInLineChartData(this.props.data.lineChartData);for(var E=function(t){var E=[],P=[],B=[],F=O._points[t].legend,_=O._points[t].color,H=O.state.activePoint,R=O.props.theme,I=n-O.margins.bottom+6;if(1===O._points[t].data.length){var W=O._points[t].data[0],z=W.x,j=W.y,Y=W.xAxisCalloutData,$=W.xAxisCalloutAccessibilityData,X="".concat(O._circleId,"_").concat(t),G=O._legendHighlighted(F)||O._noLegendHighlighted()||O.state.isSelectedLegend;B.push(u.createElement("circle",(0,o.Cl)({id:X,key:X,r:H===X?5.5:3.5,cx:O._xAxisScale(z),cy:O._yAxisScale(j),fill:H===X?R.semanticColors.bodyBackground:_,opacity:G?1:.1,onMouseOver:O._handleHover.bind(O,z,j,I,Y,X,$),onMouseMove:O._handleHover.bind(O,z,j,I,Y,X,$),onMouseOut:O._handleMouseOut,strokeWidth:H===X?4:0,stroke:H===X?_:"",role:"img","aria-label":O._getAriaLabel(t,0),"data-is-focusable":G,ref:function(t){N._refCallback(t,X)},onFocus:function(){return N._handleFocus(X,z,Y,X,$)},onBlur:O._handleMouseOut},O._getClickHandler(O._points[t].data[0].onDataPointClick))))}var q=0,U=null!==(e=null===(i=O._points[t].gaps)||void 0===i?void 0:i.sort((function(t,n){return t.startIndex-n.startIndex})))&&void 0!==e?e:[];if(O.props.optimizeLargeData&&O._points[t].data.length>1){for(var Z=Vf().x((function(t){return N._xAxisScale(t[0])})).y((function(t){return N._yAxisScale(t[1])})).curve(Sf),K="".concat(O._lineId,"_").concat(t),J="".concat(O._borderId,"_").concat(t),Q=(null===(r=O._points[t].lineOptions)||void 0===r?void 0:r.strokeWidth)||O.props.strokeWidth||4,tt=(G=O._legendHighlighted(F)||O._noLegendHighlighted()||O.state.isSelectedLegend,[]),nt=0;nt<O._points[t].data.length;nt++)tt.push([O._points[t].data[nt].x instanceof Date?O._points[t].data[nt].x.getTime():O._points[t].data[nt].x,O._points[t].data[nt].y]);if(G){var it=(null===(a=O._points[t].lineOptions)||void 0===a?void 0:a.lineBorderWidth)?Number.parseFloat(O._points[t].lineOptions.lineBorderWidth.toString()):0;it>0&&P.push(u.createElement("path",{id:J,key:J,d:Z(tt),fill:"transparent",strokeLinecap:null!==(l=null===(s=O._points[t].lineOptions)||void 0===s?void 0:s.strokeLinecap)&&void 0!==l?l:"round",strokeWidth:Number.parseFloat(Q.toString())+it,stroke:(null===(c=O._points[t].lineOptions)||void 0===c?void 0:c.lineBorderColor)||R.semanticColors.bodyBackground,opacity:1})),E.push(u.createElement("path",(0,o.Cl)({id:K,key:K,d:Z(tt),fill:"transparent","data-is-focusable":!0,stroke:_,strokeWidth:Q,strokeLinecap:null!==(h=null===(f=O._points[t].lineOptions)||void 0===f?void 0:f.strokeLinecap)&&void 0!==h?h:"round",strokeDasharray:null===(d=O._points[t].lineOptions)||void 0===d?void 0:d.strokeDasharray,onMouseMove:O._onMouseOverLargeDataset.bind(O,t,I),onMouseOver:O._onMouseOverLargeDataset.bind(O,t,I),onMouseOut:O._handleMouseOut},O._getClickHandler(O._points[t].onLineClick),{opacity:1})))}else E.push(u.createElement("path",{id:K,key:K,d:Z(tt),fill:"transparent","data-is-focusable":!1,stroke:_,strokeWidth:Q,strokeLinecap:null!==(p=null===(v=O._points[t].lineOptions)||void 0===v?void 0:v.strokeLinecap)&&void 0!==p?p:"round",strokeDasharray:null===(g=O._points[t].lineOptions)||void 0===g?void 0:g.strokeDasharray,opacity:.1}));var et=null!==O.state.activeLine&&O.state.activeLine===t;B.push(u.createElement("circle",{id:"".concat(O._staticHighlightCircle,"_").concat(t),key:"".concat(O._staticHighlightCircle,"_").concat(t),r:5.5,cx:0,cy:0,fill:R.semanticColors.bodyBackground,strokeWidth:4,stroke:_,visibility:et?"visibility":"hidden",onMouseMove:O._onMouseOverLargeDataset.bind(O,t,I),onMouseOver:O._onMouseOverLargeDataset.bind(O,t,I),onMouseOut:O._handleMouseOut}))}else if(!O.props.optimizeLargeData)for(var rt=function(n){var i=O._checkInGap(n,U,q),e=i.isInGap;q=i.gapIndex;var r="".concat(O._lineId,"_").concat(t,"_").concat(n),a="".concat(O._borderId,"_").concat(t,"_").concat(n),s="".concat(O._circleId,"_").concat(t,"_").concat(n),l=O._points[t].data[n-1],c=l.x,f=l.y,h=l.xAxisCalloutData,d=l.xAxisCalloutAccessibilityData,v=O._points[t].data[n],p=v.x,g=v.y,T=O._getPath(O._xAxisScale(c),O._yAxisScale(f),s,n,!1,O._points[t].index),W=(null===(m=O._points[t].lineOptions)||void 0===m?void 0:m.strokeWidth)||O.props.strokeWidth||4,z=O._legendHighlighted(F)||O._noLegendHighlighted()||O.state.isSelectedLegend,j=O._points[t].hideNonActiveDots&&H!==s;if(B.push(u.createElement("path",(0,o.Cl)({id:s,key:s,d:T,"data-is-focusable":z,onMouseOver:O._handleHover.bind(O,c,f,I,h,s,d),onMouseMove:O._handleHover.bind(O,c,f,I,h,s,d),onMouseOut:O._handleMouseOut,onFocus:function(){return N._handleFocus(r,c,h,s,d)},onBlur:O._handleMouseOut},O._getClickHandler(O._points[t].data[n-1].onDataPointClick),{opacity:z&&!j?1:.01,fill:O._getPointFill(_,s,n,!1),stroke:_,strokeWidth:W,role:"img","aria-label":O._getAriaLabel(t,n-1)}))),n+1===O._points[t].data.length){var Y="".concat(s).concat(n,"L"),$="".concat(s).concat(n,"D"),X=O._points[t].hideNonActiveDots&&H!==Y;T=O._getPath(O._xAxisScale(p),O._yAxisScale(g),Y,n,!0,O._points[t].index);var G=O._points[t].data[n],Z=G.xAxisCalloutData,K=G.xAxisCalloutAccessibilityData;B.push(u.createElement(u.Fragment,{key:"".concat(Y,"_container")},u.createElement("path",(0,o.Cl)({id:Y,key:Y,d:T,"data-is-focusable":z,onMouseOver:O._handleHover.bind(O,p,g,I,Z,Y,K),onMouseMove:O._handleHover.bind(O,p,g,I,Z,Y,K),onMouseOut:O._handleMouseOut,onFocus:function(){return N._handleFocus(r,p,Z,Y,K)},onBlur:O._handleMouseOut},O._getClickHandler(O._points[t].data[n].onDataPointClick),{opacity:z&&!X?1:.01,fill:O._getPointFill(_,Y,n,!0),stroke:_,strokeWidth:W,role:"img","aria-label":O._getAriaLabel(t,n)})),u.createElement("circle",{id:$,key:$,r:8,cx:O._xAxisScale(p),cy:O._yAxisScale(g),opacity:0,width:0,onMouseOver:O._handleHover.bind(O,p,g,I,Z,Y,K),onMouseMove:O._handleHover.bind(O,p,g,I,Z,Y,K),onMouseOut:O._handleMouseOut,strokeWidth:0,focusable:!1,onBlur:O._handleMouseOut})))}if(z){if(!e){var J=(null===(y=O._points[t].lineOptions)||void 0===y?void 0:y.lineBorderWidth)?Number.parseFloat(O._points[t].lineOptions.lineBorderWidth.toString()):0;J>0&&P.push(u.createElement("line",{id:a,key:a,x1:O._xAxisScale(c),y1:O._yAxisScale(f),x2:O._xAxisScale(p),y2:O._yAxisScale(g),strokeLinecap:null!==(x=null===(b=O._points[t].lineOptions)||void 0===b?void 0:b.strokeLinecap)&&void 0!==x?x:"round",strokeWidth:Number.parseFloat(W.toString())+J,stroke:(null===(C=O._points[t].lineOptions)||void 0===C?void 0:C.lineBorderColor)||R.semanticColors.bodyBackground,opacity:1})),E.push(u.createElement("line",(0,o.Cl)({id:r,key:r,x1:O._xAxisScale(c),y1:O._yAxisScale(f),x2:O._xAxisScale(p),y2:O._yAxisScale(g),strokeWidth:W,ref:function(t){N._refCallback(t,r)},onMouseOver:O._handleHover.bind(O,c,f,I,h,s,d),onMouseMove:O._handleHover.bind(O,c,f,I,h,s,d),onMouseOut:O._handleMouseOut,stroke:_,strokeLinecap:null!==(M=null===(w=O._points[t].lineOptions)||void 0===w?void 0:w.strokeLinecap)&&void 0!==M?M:"round",strokeDasharray:null===(k=O._points[t].lineOptions)||void 0===k?void 0:k.strokeDasharray,strokeDashoffset:null===(S=O._points[t].lineOptions)||void 0===S?void 0:S.strokeDashoffset,opacity:1},O._getClickHandler(O._points[t].onLineClick))))}}else e||E.push(u.createElement("line",{id:r,key:r,x1:O._xAxisScale(c),y1:O._yAxisScale(f),x2:O._xAxisScale(p),y2:O._yAxisScale(g),strokeWidth:W,stroke:_,strokeLinecap:null!==(L=null===(A=O._points[t].lineOptions)||void 0===A?void 0:A.strokeLinecap)&&void 0!==L?L:"round",strokeDasharray:null===(V=O._points[t].lineOptions)||void 0===V?void 0:V.strokeDasharray,strokeDashoffset:null===(D=O._points[t].lineOptions)||void 0===D?void 0:D.strokeDashoffset,opacity:.1}))},ot=1;ot<O._points[t].data.length;ot++)rt(ot);T.push(u.createElement("g",{key:"line_".concat(t),role:"region","aria-label":"".concat(F,", line ").concat(t+1," of ").concat(O._points.length," with ").concat(O._points[t].data.length," data points.")},P,E,B))},O=this,P=this._points.length-1;P>=0;P--)E(P);var B=th(this.props.styles,{theme:this.props.theme});if(!this.props.showXAxisLablesTooltip)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}if(!this.props.wrapXAxisLables&&this.props.showXAxisLablesTooltip){var F=ls(t).call(this._xAxisScale);try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}var _={tooltipCls:B.tooltip,id:this._tooltipId,xAxis:F};F&&xs(_)}return T},n.prototype._refCallback=function(t,n){this._refArray.push({index:n,refElement:t})},n.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.lineChartData&&this.props.data.lineChartData.length>0&&this.props.data.lineChartData.filter((function(t){return t.data.length})).length>0)},n.defaultProps={enableReflow:!0,useUTC:!0},n}(u.Component),eh=(0,r.I)(ih,(function(t){return{tooltip:(0,o.Cl)((0,o.Cl)({},t.theme.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:t.theme.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"})}}));function rh(t,n){if((r=t.length)>1)for(var i,e,r,o=1,u=t[n[0]],a=u.length;o<r;++o)for(e=u,u=t[n[o]],i=0;i<a;++i)u[i][1]+=u[i][0]=isNaN(e[i][1])?e[i][0]:e[i][1]}function oh(t){for(var n=t.length,i=new Array(n);--n>=0;)i[n]=n;return i}function uh(t,n){return t[n]}function ah(t){const n=[];return n.key=t,n}function sh(t,n,i){var e=null,r=Dc(!0),o=null,u=Sf,a=null,s=Kc(l);function l(l){var c,f,h,d,v,p=(l=Vc(l)).length,g=!1,m=new Array(p),y=new Array(p);for(null==o&&(a=u(v=s())),c=0;c<=p;++c){if(!(c<p&&r(d=l[c],c,l))===g)if(g=!g)f=c,a.areaStart(),a.lineStart();else{for(a.lineEnd(),a.lineStart(),h=c-1;h>=f;--h)a.point(m[h],y[h]);a.lineEnd(),a.areaEnd()}g&&(m[c]=+t(d,c,l),y[c]=+n(d,c,l),a.point(e?+e(d,c,l):m[c],i?+i(d,c,l):y[c]))}if(v)return a=null,v+""||null}function c(){return Vf().defined(r).curve(u).context(o)}return t="function"==typeof t?t:void 0===t?Af:Dc(+t),n="function"==typeof n?n:Dc(void 0===n?0:+n),i="function"==typeof i?i:void 0===i?Lf:Dc(+i),l.x=function(n){return arguments.length?(t="function"==typeof n?n:Dc(+n),e=null,l):t},l.x0=function(n){return arguments.length?(t="function"==typeof n?n:Dc(+n),l):t},l.x1=function(t){return arguments.length?(e=null==t?null:"function"==typeof t?t:Dc(+t),l):e},l.y=function(t){return arguments.length?(n="function"==typeof t?t:Dc(+t),i=null,l):n},l.y0=function(t){return arguments.length?(n="function"==typeof t?t:Dc(+t),l):n},l.y1=function(t){return arguments.length?(i=null==t?null:"function"==typeof t?t:Dc(+t),l):i},l.lineX0=l.lineY0=function(){return c().x(t).y(n)},l.lineY1=function(){return c().x(t).y(i)},l.lineX1=function(){return c().x(e).y(n)},l.defined=function(t){return arguments.length?(r="function"==typeof t?t:Dc(!!t),l):r},l.curve=function(t){return arguments.length?(u=t,null!=o&&(a=u(o)),l):u},l.context=function(t){return arguments.length?(null==t?o=a=null:a=u(o=t),l):o},l}function lh(t){return t<0?-1:1}function ch(t,n,i){var e=t._x1-t._x0,r=n-t._x1,o=(t._y1-t._y0)/(e||r<0&&-0),u=(i-t._y1)/(r||e<0&&-0),a=(o*r+u*e)/(e+r);return(lh(o)+lh(u))*Math.min(Math.abs(o),Math.abs(u),.5*Math.abs(a))||0}function fh(t,n){var i=t._x1-t._x0;return i?(3*(t._y1-t._y0)/i-n)/2:n}function hh(t,n,i){var e=t._x0,r=t._y0,o=t._x1,u=t._y1,a=(o-e)/3;t._context.bezierCurveTo(e+a,r+a*n,o-a,u-a*i,o,u)}function dh(t){this._context=t}function vh(t){this._context=t}function ph(t){return new dh(t)}dh.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:hh(this,this._t0,fh(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){var i=NaN;if(n=+n,(t=+t)!==this._x1||n!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3,hh(this,fh(this,i=ch(this,t,n)),i);break;default:hh(this,this._t0,i=ch(this,t,n))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n,this._t0=i}}},(function(t){this._context=new vh(t)}.prototype=Object.create(dh.prototype)).point=function(t,n){dh.prototype.point.call(this,n,t)},vh.prototype={moveTo:function(t,n){this._context.moveTo(n,t)},closePath:function(){this._context.closePath()},lineTo:function(t,n){this._context.lineTo(n,t)},bezierCurveTo:function(t,n,i,e,r,o){this._context.bezierCurveTo(n,t,e,i,o,r)}};var gh,mh=(0,a.Z)(),yh=Si((function(t){return t.x})).left;!function(t){t.show="visibility",t.hide="hidden"}(gh||(gh={}));var bh=function(t){function n(n){var i,e=t.call(this,n)||this;return e._getDomainNRangeValues=function(t,n,i,e,r,o,u,a){return o===os.NumericAxis?ws(t,n,i,r):o===os.DateAxis?ks(t,n,i,r,a,e):{dStartValue:0,dEndValue:0,rStartValue:0,rEndValue:0}},e._getMargins=function(t){e.margins=t},e._onRectMouseMove=function(t){t.persist();var n=e.props.data.lineChartData,i=e.state.selectedLegends,r=e._xAxisRectScale.invert(Mf(t)[0],document.getElementById(e._rectId)),u=yh(n[0].data,r),a=n[0].data[u-1],s=n[0].data[u],l=null,c=null,f=n[0].data.length>0?Ts(n[0].data[0].x,!0):null;if(void 0===a&&void 0!==s)l=s.x,c=u;else if(void 0!==a&&void 0===s)l=a.x,c=u-1;else{var h=void 0,d=void 0,v=void 0;switch(f){case os.DateAxis:h=new Date(r).getTime(),d=a.x.getTime(),v=s.x.getTime(),l=Math.abs(h-d)>Math.abs(h-v)?s.x:a.x,c=Math.abs(h-d)>Math.abs(h-v)?u:u-1;break;case os.NumericAxis:h=r,d=a.x,v=s.x,l=Math.abs(h-d)>Math.abs(h-v)?s.x:a.x,c=Math.abs(h-d)>Math.abs(h-v)?u:u-1}}var p=n[0].data[c],g=p.xAxisCalloutData,m=p.xAxisCalloutAccessibilityData,y=l instanceof Date?Rs(l,e.props.useUTC):l,x=l instanceof Date?l.getTime():l,C=b(e._calloutPoints,(function(t){return t.x===x})),w=f===os.DateAxis?l.getTime():l,M=e.state.nearestCircleToHighlight!==w;if(C&&M&&!e.state.isShowCalloutPending){var k=i.length>0?C.values.filter((function(t){return i.includes(t.legend)})):C.values;e.setState({nearestCircleToHighlight:w,isCalloutVisible:!1,isShowCalloutPending:!0,lineXValue:e._xAxisRectScale(l),displayOfLine:gh.show,isCircleClicked:!1,stackCalloutProps:(0,o.Cl)((0,o.Cl)({},C),{values:k}),YValueHover:k,dataPointCalloutProps:(0,o.Cl)((0,o.Cl)({},C),{values:k}),hoverXValue:g||y,xAxisCalloutAccessibilityData:m,activePoint:""})}C||e.setState({isCalloutVisible:!1,nearestCircleToHighlight:w,displayOfLine:gh.hide,isCircleClicked:!1})},e._onRectMouseOut=function(){},e._handleChartMouseLeave=function(){e.setState({refSelected:null,isCalloutVisible:!1,nearestCircleToHighlight:null,lineXValue:0,displayOfLine:gh.hide,isCircleClicked:!1,stackCalloutProps:void 0,dataPointCalloutProps:void 0,hoverXValue:void 0,YValueHover:[]})},e._getDataPoints=function(t,n){var i,r=[],o=0;if("tozeroy"===e.props.mode)t.forEach((function(t,i){var e=[];n.forEach((function(n){e.push({values:[0,n[t]],xVal:n.xVal}),n[t]>o&&(o=n[t])})),r.push(e)}));else{var u=function(){var t=Dc([]),n=oh,i=rh,e=uh;function r(r){var o,u,a=Array.from(t.apply(this,arguments),ah),s=a.length,l=-1;for(const t of r)for(o=0,++l;o<s;++o)(a[o][l]=[0,+e(t,a[o].key,l,r)]).data=t;for(o=0,u=Vc(n(a));o<s;++o)a[u[o]].index=o;return i(a,u),a}return r.keys=function(n){return arguments.length?(t="function"==typeof n?n:Dc(Array.from(n)),r):t},r.value=function(t){return arguments.length?(e="function"==typeof t?t:Dc(+t),r):e},r.order=function(t){return arguments.length?(n=null==t?oh:"function"==typeof t?t:Dc(Array.from(t)),r):n},r.offset=function(t){return arguments.length?(i=null==t?rh:t,r):i},r}().keys(t)(n);o=pi(u[u.length-1],(function(t){return t[1]})),u.forEach((function(t){var n=[];t.forEach((function(t){n.push({values:t,xVal:t.data.xVal})})),r.push(n)}))}return e._isMultiStackChart=!!((null===(i=e.props.legendProps)||void 0===i?void 0:i.selectedLegends)?(null==r?void 0:r.length)>=1:(null==r?void 0:r.length)>1),{renderData:r,maxOfYVal:o}},e._createDataSet=function(t){if(e.props.enablePerfOptimization&&e._enableComputationOptimization){var n=[],i=[],r=[],o=[],u=ms(t);t&&t.length&&t.forEach((function(t){r.push(t.color),o.push(t.opacity||1),n.push.apply(n,t.data)}));var a={};n.forEach((function(t){var n=t.x instanceof Date?t.x.toLocaleString():t.x;a[n]?a[n].push(t):a[n]=[t]})),Object.keys(a).forEach((function(t){var n=a[t],e={};n.forEach((function(t,n){e.xVal=t.x,e["chart".concat(n)]=t.y})),i.push(e)}));for(var s=i&&Object.keys(i[0]).length,l=[],c=0;c<s-1;c++){var f="chart".concat(c);l.push(f)}var h=e._getDataPoints(l,i);return{colors:r,opacity:o,keys:l,data:h,calloutPoints:u}}var d=[],v=[],p=[],g=[];u=ms(t),t&&t.length&&t.forEach((function(t){p.push(t.color),g.push(t.opacity||1),d.push.apply(d,t.data)}));for(var m=d,y=function(){var t=m[0].x instanceof Date?m[0].x.toLocaleString():m[0].x,n=m.filter((function(n){return(n.x instanceof Date?n.x.toLocaleString():n.x)===t})),i={};n.forEach((function(t,n){i.xVal=t.x,i["chart".concat(n)]=t.y})),v.push(i);var e=m[0].x instanceof Date?m[0].x.toLocaleString():m[0].x;m=m.filter((function(t){return(t.x instanceof Date?t.x.toLocaleString():t.x)!==e}))};m.length;)y();for(s=v&&Object.keys(v[0]).length,l=[],c=0;c<s-1;c++)f="chart".concat(c),l.push(f);return h=e._getDataPoints(l,v),{colors:p,opacity:g,keys:l,data:h,calloutPoints:u}},e._getCustomizedCallout=function(){return e.props.onRenderCalloutPerStack?e.props.onRenderCalloutPerStack(e.state.stackCalloutProps):e.props.onRenderCalloutPerDataPoint?e.props.onRenderCalloutPerDataPoint(e.state.dataPointCalloutProps):null},e._getGraphData=function(t,n,i,r,o){e._chart=e._drawGraph(i,t,n,o)},e._getLegendData=function(t){var n=[];return t.forEach((function(t){var i=t.color;if(!(n.filter((function(n){return n.title===t.legend&&n.color===i})).length>0)){var r={title:t.legend,color:i,hoverAction:function(){e._handleChartMouseLeave(),e._onLegendHover(t.legend)},onMouseOutAction:function(){e._onLegendLeave()}};n.push(r)}})),u.createElement(Lc,(0,o.Cl)({legends:n,overflowProps:e.props.legendsOverflowProps,enabledWrapLines:e.props.enabledLegendsWrapLines,focusZonePropsInHoverCard:e.props.focusZonePropsForLegendsInHoverCard},e.props.legendProps,{onChange:e._onLegendSelectionChange.bind(e)}))},e._onDataPointClick=function(t){t&&t(),e.setState({isCircleClicked:!0})},e._getOpacity=function(t){return e._isMultiStackChart?e._legendHighlighted(t)||e._noLegendHighlighted()?.7:.1:.7},e._getLineOpacity=function(t){if(e._isMultiStackChart){var n=.3;return e.state.isCalloutVisible&&(n=1),e._noLegendHighlighted()||(n=e._legendHighlighted(t)?0:.1),n}return 1},e._updateCircleFillColor=function(t,n,i){var r=n;return e.state.nearestCircleToHighlight!==t&&e.state.activePoint!==i||(e._highlightedCircleId=i,e.state.isCircleClicked||(r=e.props.theme.semanticColors.bodyBackground)),r},e._drawGraph=function(t,n,i,r){var a,s=e._addDefaultColors(e.props.data.lineChartData),l=e.props.data,c=l.pointOptions,f=l.pointLineOptions,h=sh().x((function(t){return n(t.xVal)})).y0((function(t){return i(t.values[0])})).y1((function(t){return i(t.values[1])})).curve(ph),d=Vf().x((function(t){return n(t.xVal)})).y((function(t){return i(t.values[1])})).curve(ph),v=[];e._data.forEach((function(t,r){var a,l,c,f,p,g="tozeroy"===e.props.mode?.8:e._opacity[r];v.push(u.createElement(u.Fragment,{key:"".concat(r,"-graph-").concat(e._uniqueIdForGraph)},e.props.enableGradient&&u.createElement("defs",null,u.createElement("linearGradient",{id:"gradient_".concat(r),x1:"0%",x2:"0%",y1:"0%",y2:"100%"},u.createElement("stop",{offset:"0",stopColor:e._colors[r]}),u.createElement("stop",{offset:"100%",stopColor:"transparent"}))),u.createElement("path",{id:"".concat(r,"-line-").concat(e._uniqueIdForGraph),d:d(t),fill:"transparent",strokeWidth:null!==(l=null===(a=s[r].lineOptions)||void 0===a?void 0:a.strokeWidth)&&void 0!==l?l:3,stroke:e._colors[r],opacity:e._getLineOpacity(s[r].legend),onMouseMove:e._onRectMouseMove,onMouseOut:e._onRectMouseOut,onMouseOver:e._onRectMouseMove,strokeDasharray:null===(c=s[r].lineOptions)||void 0===c?void 0:c.strokeDasharray,strokeDashoffset:null===(f=s[r].lineOptions)||void 0===f?void 0:f.strokeDashoffset,strokeLinecap:null===(p=s[r].lineOptions)||void 0===p?void 0:p.strokeLinecap}),1===t.length?u.createElement("circle",{id:"".concat(r,"-graph-").concat(e._uniqueIdForGraph),cx:n(t[0].xVal),cy:i(t[0].values[1]),r:6,stroke:e._colors[r],strokeWidth:3,fill:e._colors[r],opacity:g,fillOpacity:e._getOpacity(s[r].legend),onMouseMove:e._onRectMouseMove,onMouseOut:e._onRectMouseOut,onMouseOver:e._onRectMouseMove}):u.createElement("path",(0,o.Cl)({id:"".concat(r,"-graph-").concat(e._uniqueIdForGraph),d:h(t),fill:e.props.enableGradient?"url(#gradient_".concat(r,")"):e._colors[r],opacity:g,fillOpacity:e._getOpacity(s[r].legend),onMouseMove:e._onRectMouseMove,onMouseOut:e._onRectMouseOut,onMouseOver:e._onRectMouseMove},e.props.optimizeLargeData&&{"data-is-focusable":e._legendHighlighted(s[r].legend)||e._noLegendHighlighted(),role:"img","aria-label":"".concat(s[r].legend,", series ").concat(r+1," of ").concat(s.length," with ").concat(s[r].data.length," data points.")}))))}));var p=c&&c.r?Number(c.r):8;e._data.forEach((function(t,r){s.length!==r&&(e.props.optimizeLargeData&&1!==t.length?t.forEach((function(t,l){var f=t.xVal instanceof Date?t.xVal.getTime():t.xVal;if(e.state.nearestCircleToHighlight===f){var h="".concat(e._circleId,"_").concat(r*e._data[0].length+l);a=s[r].color;var d=s[r].legend;v.push(u.createElement("circle",(0,o.Cl)({key:h,id:h,cx:n(t.xVal),cy:i(t.values[1]),stroke:a,strokeWidth:3,fill:e._updateCircleFillColor(f,a,h),onMouseOut:e._onRectMouseOut,onMouseOver:e._onRectMouseMove,onClick:e._onDataPointClick.bind(e,s[r].data[l].onDataPointClick)},Is(c),{r:e._getCircleRadius(f,p,h,d)})))}})):v.push(u.createElement("g",{key:"".concat(r,"-dots-").concat(e._uniqueIdForGraph),d:h(t),clipPath:"url(#clip)",role:"region","aria-label":"".concat(s[r].legend,", series ").concat(r+1," of ").concat(s.length," with ").concat(s[r].data.length," data points.")},t.map((function(t,l){var f="".concat(e._circleId,"_").concat(r*e._data[0].length+l),h=t.xVal instanceof Date?t.xVal.getTime():t.xVal;a=s[r].color;var d=s[r].legend;return u.createElement("circle",(0,o.Cl)({key:f,id:f,"data-is-focusable":e._legendHighlighted(s[r].legend)||e._noLegendHighlighted(),cx:n(t.xVal),cy:i(t.values[1]),stroke:a,strokeWidth:3,fill:e._updateCircleFillColor(h,a,f),onMouseOut:e._onRectMouseOut,onMouseOver:e._onRectMouseMove,onClick:e._onDataPointClick.bind(e,s[r].data[l].onDataPointClick),onFocus:function(){return e._handleFocus(r,l,f)},onBlur:e._handleBlur},Is(c),{r:e._getCircleRadius(h,p,f,d),role:"img","aria-label":e._getAriaLabel(r,l)}))})))))})),v.push(u.createElement("line",(0,o.Cl)({id:e._verticalLineId,key:e._verticalLineId,x1:e.state.lineXValue,y1:0,x2:e.state.lineXValue,y2:t,strokeWidth:1,strokeDasharray:5.5,stroke:a,opacity:.5,visibility:e.state.displayOfLine},Is(f))));var g=mh(e.props.styles,{theme:e.props.theme});if(!e.props.showXAxisLablesTooltip)try{document.getElementById(e._tooltipId)&&document.getElementById(e._tooltipId).remove()}catch(t){}if(!e.props.wrapXAxisLables&&e.props.showXAxisLablesTooltip){var m=ls(r).call(n);try{document.getElementById(e._tooltipId)&&document.getElementById(e._tooltipId).remove()}catch(t){}var y={tooltipCls:g.tooltip,id:e._tooltipId,xAxis:m};m&&xs(y)}return v},e._getCircleRadius=function(t,n,i,r){var o=e.state,u=o.isCircleClicked,a=o.nearestCircleToHighlight,s=o.activePoint;return e._legendHighlighted(r)?u&&a===t?1:a===t||s===i?n:0:0},e._closeCallout=function(){e.setState({isCalloutVisible:!1})},e._legendHighlighted=function(t){return e._getHighlightedLegend().includes(t)},e._noLegendHighlighted=function(){return 0===e._getHighlightedLegend().length},e._addDefaultColors=function(t){return t?t.map((function(t,n){var i,r,u;return u=void 0===t.color?yf(n,0,null===(i=e.props.theme)||void 0===i?void 0:i.isInverted):bf(t.color,null===(r=e.props.theme)||void 0===r?void 0:r.isInverted),(0,o.Cl)((0,o.Cl)({},t),{color:u})})):[]},e._handleFocus=function(t,n,i){var r=e.props.data.lineChartData[t].data[n],u=r.x,a=r.y,s=r.xAxisCalloutData,l=u instanceof Date?Rs(u,e.props.useUTC):u,c=u instanceof Date?u.getTime():u,f=e._calloutPoints.find((function(t){return t.x===c}));f.values=f.values.filter((function(t){return t.y===a}));var h=e._getFilteredLegendValues(f.values);e.setState({refSelected:"#".concat(i),isCalloutVisible:!0,hoverXValue:s||l,YValueHover:h,stackCalloutProps:(0,o.Cl)((0,o.Cl)({},f),{values:h}),dataPointCalloutProps:(0,o.Cl)((0,o.Cl)({},f),{values:h}),activePoint:i})},e._getFilteredLegendValues=function(t){e._noLegendHighlighted()||t.filter((function(t){return e._legendHighlighted(t.legend)}))},e._handleBlur=function(){e.setState({refSelected:null,isCalloutVisible:!1,hoverXValue:void 0,YValueHover:[],stackCalloutProps:void 0,dataPointCalloutProps:void 0,activePoint:""})},e._getChartTitle=function(){var t=e.props.data,n=t.chartTitle,i=t.lineChartData;return(n?"".concat(n,". "):"")+"Area chart with ".concat((null==i?void 0:i.length)||0," data series. ")},Qs(e),e._createSet=(0,dn.J9)(e._createDataSet),e.state={selectedLegends:(null===(i=n.legendProps)||void 0===i?void 0:i.selectedLegends)||[],activeLegend:void 0,hoverXValue:"",isCalloutVisible:!1,refSelected:null,YValueHover:[],lineXValue:0,displayOfLine:gh.hide,isCircleClicked:!1,nearestCircleToHighlight:null,isShowCalloutPending:!1,activePoint:""},In("AREA CHART",n,{showYAxisGridLines:"Dont use this property. Lines are drawn by default"}),e._uniqueIdForGraph=g("areaChart_"),e._verticalLineId=g("verticalLine_"),e._circleId=g("circle"),e._rectId=g("rectangle"),e._tooltipId=g("AreaChartTooltipID"),e._enableComputationOptimization=!0,e._firstRenderOptimization=!0,e._emptyChartId=g("_AreaChart_empty"),e._cartesianChartRef=u.createRef(),e}return(0,o.C6)(n,t),n.prototype.componentDidUpdate=function(t){var n,i,e;Ws(null===(n=t.legendProps)||void 0===n?void 0:n.selectedLegends,null===(i=this.props.legendProps)||void 0===i?void 0:i.selectedLegends)||this.setState({selectedLegends:(null===(e=this.props.legendProps)||void 0===e?void 0:e.selectedLegends)||[]}),this.state.isShowCalloutPending&&this.setState({refSelected:"#".concat(this._highlightedCircleId),isCalloutVisible:!0,isShowCalloutPending:!1})},n.prototype.render=function(){var t=this;if(!this._isChartEmpty()){var n=this.props.data.lineChartData,i=this._addDefaultColors(n),e=this._createSet(i),r=e.colors,a=e.opacity,s=e.data,l=e.calloutPoints;this._calloutPoints=l;var c=Cs(i);this._colors=r,this._opacity=a,this._data=s.renderData;var f=this._getLegendData(i),h={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat},d=(0,o.Cl)({target:this.state.refSelected,isCalloutVisible:this.state.isCalloutVisible,directionalHint:x.topAutoEdge,YValueHover:this.state.YValueHover,hoverXValue:this.state.hoverXValue,id:"toolTip".concat(this._uniqueCallOutID),gapSpace:15,isBeakVisible:!1,onDismiss:this._closeCallout,"data-is-focusable":!0,xAxisCalloutAccessibilityData:this.state.xAxisCalloutAccessibilityData},this.props.calloutProps);return u.createElement(Hf,(0,o.Cl)({},this.props,{chartTitle:this._getChartTitle(),points:i,chartType:rs.AreaChart,calloutProps:d,legendBars:f,createYAxis:vs,isCalloutForStack:!0,xAxisType:c?os.DateAxis:os.NumericAxis,tickParams:h,maxOfYVal:s.maxOfYVal,getGraphData:this._getGraphData,getDomainNRangeValues:this._getDomainNRangeValues,createStringYAxis:gs,getmargins:this._getMargins,getMinMaxOfYAxis:Ss,customizedCallout:this._getCustomizedCallout(),onChartMouseLeave:this._handleChartMouseLeave,enableFirstRenderOptimization:this.props.enablePerfOptimization&&this._firstRenderOptimization,ref:this._cartesianChartRef,children:function(n){t._xAxisRectScale=n.xScale;var i=t._xAxisRectScale.ticks(),e=t._xAxisRectScale(i[i.length-1]),r=n.containerHeight-t.margins.top;return u.createElement(u.Fragment,null,u.createElement("g",null,u.createElement("rect",{id:t._rectId,width:e,height:r,fill:"transparent",onMouseMove:t._onRectMouseMove,onMouseOut:t._onRectMouseOut,onMouseOver:t._onRectMouseMove})),u.createElement("g",null,t._chart))}}))}return u.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"})},Object.defineProperty(n.prototype,"chartContainer",{get:function(){var t;return(null===(t=this._cartesianChartRef.current)||void 0===t?void 0:t.chartContainer)||null},enumerable:!1,configurable:!0}),n.prototype._onLegendHover=function(t){this.setState({activeLegend:t})},n.prototype._onLegendLeave=function(){this.setState({activeLegend:void 0})},n.prototype._onLegendSelectionChange=function(t,n,i){var e,r;(null===(e=this.props.legendProps)||void 0===e?void 0:e.canSelectMultipleLegends)?this.setState({selectedLegends:t}):this.setState({selectedLegends:t.slice(-1)}),(null===(r=this.props.legendProps)||void 0===r?void 0:r.onChange)&&this.props.legendProps.onChange(t,n,i)},n.prototype._getHighlightedLegend=function(){return this.state.selectedLegends.length>0?this.state.selectedLegends:this.state.activeLegend?[this.state.activeLegend]:[]},n.prototype._getAriaLabel=function(t,n){var i,e=this.props.data.lineChartData[t],r=e.data[n],o=r.x instanceof Date?Rs(r.x,this.props.useUTC):r.x,u=r.xAxisCalloutData||o,a=e.legend,s=r.yAxisCalloutData||r.y;return(null===(i=r.callOutAccessibilityData)||void 0===i?void 0:i.ariaLabel)||"".concat(u,". ").concat(a,", ").concat(s,".")},n.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.lineChartData&&this.props.data.lineChartData.length>0&&0===this.props.data.lineChartData.filter((function(t){return 0===t.data.length})).length)},n.defaultProps={useUTC:!0},n}(u.Component),xh=(0,r.I)(bh,(function(t){return{tooltip:(0,o.Cl)((0,o.Cl)({},t.theme.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:t.theme.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"})}})),Ch=function(t,n){var i=t.color;return{arcRoot:{fill:i},arcRootFocussed:{fill:i,stroke:(null==n?void 0:n.palette.black)||$t.bp.black,strokeWidth:2},arc:{outline:"none"},arcText:{fill:(null==n?void 0:n.palette.black)||$t.bp.black,outline:"none"}}},wh=function(t){function n(n){var i=t.call(this,n)||this;return i.updateChart=function(t){kh(t)},i._onFocus=function(){i.setState({isArcFocused:!0})},i._onBlur=function(){i.setState({isArcFocused:!1})},i.state={isArcFocused:!1},i._arcId=g("piechart_arc"),i}return(0,o.C6)(n,t),n.getDerivedStateFromProps=function(t){return kh(t),null},n.prototype.render=function(){var t,n=this,i=this.props.arc,e=(0,a.Z)()((function(t){return Ch(t,n.props.theme)}),(0,o.Cl)({},this.props));return u.createElement("path",{d:i(this.props.data),className:"".concat(this.state.isArcFocused?e.arcRootFocussed:e.arcRoot),onClick:null===(t=this.props.data)||void 0===t?void 0:t.data.onClick})},n.defaultProps={arc:of()},n}(u.Component),Mh=function(t){function n(n){var i=t.call(this,n)||this;return i._isRTL=(0,s.jI)(),i._arcId=g("piechart_arc"),i}return(0,o.C6)(n,t),n.prototype.render=function(){var n,i,e=this,r=this.props,o=r.data,s=r.culture,l=of().centroid({endAngle:(null==o?void 0:o.endAngle)||0,startAngle:(null==o?void 0:o.startAngle)||0,padAngle:null==o?void 0:o.padAngle,innerRadius:(null===(n=this.props)||void 0===n?void 0:n.outerRadius)||0,outerRadius:(null===(i=this.props)||void 0===i?void 0:i.outerRadius)||4}),c=l[0],f=l[1],h=(0,a.Z)()((function(t){return Ch(t,e.props.theme)})),d=(((null==o?void 0:o.startAngle)||0)+((null==o?void 0:o.endAngle)||0))/2,v="".concat(null==o?void 0:o.data.x,"-").concat((0,Jn.U)(null==o?void 0:o.data.y,s));return u.createElement("g",{className:"".concat(h.arc," arc"),"data-is-focusable":!0,id:this._arcId,onFocus:this._onFocus,onBlur:this._onBlur,"aria-label":v,role:"img"},t.prototype.render.call(this),u.createElement(Ef,{content:v,textProps:{x:c,y:f,dominantBaseline:d>Math.PI/2&&d<3*Math.PI/2?"hanging":"auto",textAnchor:!this._isRTL&&d>Math.PI||this._isRTL&&d<Math.PI?"end":"start","aria-label":"".concat(null==o?void 0:o.data.x,"-").concat((0,Jn.U)(null==o?void 0:o.data.y,s)),className:h.arcText},isTooltipVisibleProp:this.state.isArcFocused,shouldReceiveFocus:!1,maxWidth:40,wrapContent:ys}))},n}(wh);function kh(t){t.arc.innerRadius(t.innerRadius),t.arc.outerRadius(t.outerRadius)}var Sh,Ah=function(t){function n(n){var i=t.call(this,n)||this;return i.arcGenerator=function(t,n){return u.createElement(Mh,{culture:i.props.culture,key:n,data:t,innerRadius:i.props.innerRadius,outerRadius:i.props.outerRadius,color:"".concat(i.colors(n)),theme:i.props.theme})},i}return(0,o.C6)(n,t),n.prototype.render=function(){var t=this,n=this.props,i=n.pie,e=n.data,r=n.width,o=n.height,a=n.chartTitle,s=n.theme,l=[];if(e&&!this.props.colors)for(var c=0;c<e.length;c++)l.push(yf(c,0,null==s?void 0:s.isInverted));var f=this.props.colors,h=void 0===f?l:f;this.colors=Uu().range(h.map((function(t){return bf(t)})));var d=i(e),v="translate(".concat(r/2,", ").concat(o/2,")");return u.createElement(xl,{direction:zs.domOrder},u.createElement("svg",{width:r,height:o,"aria-label":a},u.createElement("g",{className:"pie",transform:v},d.map((function(n,i){return t.arcGenerator(n,i)})))))},n.defaultProps={pie:Yc().padAngle(.01).sort(null).value((function(t){return t.y}))},n}(u.Component),Lh=(0,a.Z)(),Vh=function(t){function n(n){var i=t.call(this,n)||this;return i._emptyChartId=g("_PieChart_empty"),i}return(0,o.C6)(n,t),n.prototype.render=function(){var t=this.props,n=t.data,i=t.width,e=t.height,r=t.colors,o=t.chartTitle,a=this.props,s=a.theme,l=a.className,c=a.styles,f=a.culture;this._classNames=Lh(c,{theme:s,width:i,height:e,className:l});var h=Math.min(i-80,e-32)/2;return this._isChartEmpty()?u.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):u.createElement("div",{className:this._classNames.root},this.props.chartTitle&&u.createElement("p",{className:this._classNames.chartTitle},this.props.chartTitle),u.createElement(Ah,{culture:f,width:i,height:e,outerRadius:h,innerRadius:1,data:n,colors:r,chartTitle:o,theme:s}))},n.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.length>0&&this.props.data.filter((function(t){return t.y>0})).length>0)},n.defaultProps={data:[],width:600,height:350},n}(u.Component),Dh=(0,r.I)(Vh,(function(t){var n=t.className,i=t.theme,e=t.width+30,r=t.height+10;return{root:[i.fonts.medium,"ms-PieChart",n,{width:e+40}],chart:[{padding:20,width:e,height:r,boxSizing:"content-box"}],chartTitle:[(0,o.Cl)({textAlign:"center"},i.fonts.mediumPlus)]}}));!function(t){t.PartToWhole="part-to-whole",t.AbsoluteScale="absolute-scale"}(Sh||(Sh={}));var Nh,Th=(0,a.Z)(),Eh=function(t){function n(n){var i=t.call(this,n)||this;return i._isRTL=(0,s.jI)(),i._adjustProps=function(){var t=i.props,n=t.theme,e=t.className,r=t.styles,o=t.width,u=t.barHeight;i._classNames=Th(r,{legendColor:i.state.color,theme:n,width:o,className:e,barHeight:u})},i._getLegendData=function(t,n,e){var r=[e.blueLight,e.blue,e.blueMid,e.red,e.black],a=[];return t.forEach((function(t,e){var o=t.chartData.filter((function(t){return!t.placeHolder}));o.length<3?void 0!==n[e]&&n[e]&&o.forEach((function(t,n){var e,o,u=t.color?t.color:r[Math.floor(4*Math.random()+1)];if(i.props.enableGradient&&(u=(null===(e=t.gradient)||void 0===e?void 0:e[0])||Zs(n,0,null===(o=i.props.theme)||void 0===o?void 0:o.isInverted)[0]),!(a.filter((function(n){return n.title===t.legend&&n.color===u})).length>0)){var s={title:t.legend,color:u,action:function(){i._onClick(t.legend)},hoverAction:function(){i._handleChartMouseLeave(),i._onHover(t.legend)},onMouseOutAction:function(){i._onLeave()}};a.push(s)}})):o.forEach((function(t,n){var e,o,u=t.color?t.color:r[Math.floor(4*Math.random()+1)];if(i.props.enableGradient&&(u=(null===(e=t.gradient)||void 0===e?void 0:e[0])||Zs(n,0,null===(o=i.props.theme)||void 0===o?void 0:o.isInverted)[0]),!(a.filter((function(n){return n.title===t.legend&&n.color===u})).length>0)){var s={title:t.legend,color:u,action:function(){i._onClick(t.legend)},hoverAction:function(){i._handleChartMouseLeave(),i._onHover(t.legend)},onMouseOutAction:function(){i._onLeave()}};a.push(s)}}))})),u.createElement(Lc,(0,o.Cl)({legends:a,overflowProps:i.props.legendsOverflowProps,focusZonePropsInHoverCard:i.props.focusZonePropsForLegendsInHoverCard,overflowText:i.props.legendsOverflowText},i.props.legendProps))},i._handleChartMouseLeave=function(){i._calloutAnchorPoint=null,i.setState({isCalloutVisible:!1})},i._closeCallout=function(){i.setState({isCalloutVisible:!1})},i._legendHighlighted=function(t){return i.state.selectedLegend===t||""===i.state.selectedLegend&&i.state.activeLegend===t},i._noLegendHighlighted=function(){return""===i.state.selectedLegend&&""===i.state.activeLegend},i._getAriaLabel=function(t){var n,i=t.xAxisCalloutData||t.legend,e=t.yAxisCalloutData||t.data||0;return(null===(n=t.callOutAccessibilityData)||void 0===n?void 0:n.ariaLabel)||(i?"".concat(i,", "):t.placeHolder?"Remaining, ":"")+"".concat(e,".")},i._computeLongestBarTotalValue=function(){var t=0;return i.props.data.forEach((function(n){var i=n.chartData.reduce((function(t,n){return t+(n.data?n.data:0)}),0);t=Math.max(t,i)})),t},i.state={isCalloutVisible:!1,refArray:[],selectedLegend:"",activeLegend:"",refSelected:null,dataForHoverCard:0,color:"",xCalloutValue:"",yCalloutValue:"",calloutLegend:"",barSpacingInPercent:0},i._onLeave=i._onLeave.bind(i),i._onBarLeave=i._onBarLeave.bind(i),i._calloutId=g("callout"),i.barChartSvgRef=u.createRef(),i._emptyChartId=g("_MSBC_empty"),i._barId=g("_MSBC_rect_"),i._barIdPlaceholderPartToWhole=g("_MSBC_rect_partToWhole_"),i._barIdEmpty=g("_MSBC_rect_empty"),i}return(0,o.C6)(n,t),n.prototype.componentDidMount=function(){var t,n=(null===(t=this.barChartSvgRef.current)||void 0===t?void 0:t.getBoundingClientRect().width)||0;if(n){var i=3/n*100;this.setState({barSpacingInPercent:i})}},n.prototype.render=function(){var t=this;if(!this._isChartEmpty()){var n=this.props,i=n.data,e=n.theme,r=n.culture;this._adjustProps();var a=e.palette,s=this._getLegendData(i,this.props.hideRatio,a),l=this.state.isCalloutVisible;this._classNames=Th(this.props.styles,{legendColor:this.state.color,theme:e,variant:this.props.variant,hideLabels:this.props.hideLabels});var c=this.state.xCalloutValue?this.state.xCalloutValue:this.state.calloutLegend,f=this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard;this._longestBarTotalValue=this._computeLongestBarTotalValue();var h=i.map((function(n,i){var e=t._createBarsAndLegends(n,t.props.barHeight,a,t.props.hideRatio[i],t.props.hideDenominator[i],t.props.href,i);return u.createElement("div",{key:i,id:"_MSBC_bar-".concat(i)},e)}));return u.createElement("div",{className:this._classNames.root,onMouseLeave:this._handleChartMouseLeave},h,!this.props.hideLegend&&u.createElement("div",{className:this._classNames.legendContainer},s),u.createElement(Kn,(0,o.Cl)({gapSpace:15,isBeakVisible:!1,target:this.state.refSelected,setInitialFocus:!0,hidden:!(!this.props.hideTooltip&&l),directionalHint:x.topAutoEdge,id:this._calloutId,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0,shouldUpdateWhenHidden:!0},this.props.calloutProps,Os(this.state.callOutAccessibilityData,"text",!1)),u.createElement(u.Fragment,null,this.props.onRenderCalloutPerDataPoint?this.props.onRenderCalloutPerDataPoint(this.state.dataPointCalloutProps):u.createElement(js.ChartHoverCard,{Legend:c,YValue:f,color:this.state.color,culture:r}))))}return u.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"})},n.prototype._createBarsAndLegends=function(t,n,i,e,r,a,s){var l,c,f=this,h=(null===(l=t.chartData)||void 0===l?void 0:l.reduce((function(t,n){return t+((n.data||0)>0?1:0)}),0))||1,d=this.state.barSpacingInPercent*(h-1),v=this.props.culture,p=[i.blueLight,i.blue,i.blueMid,i.red,i.black],m=[],y=t.chartData.reduce((function(t,n){return t+(n.data?n.data:0)}),0),b=this.props.variant===Sh.AbsoluteScale?this._longestBarTotalValue:y,x=0;if(t.chartData.map((function(t,n){var i=(t.data?t.data:0)/b*100||0;return i<1&&0!==i?i=1:i>99&&100!==i&&(i=99),x+=i})),this.props.variant===Sh.AbsoluteScale){var C=0===b?0:(b-y)/b*100;C<1&&0!==C?C=1:C>99&&100!==C&&(C=99),x+=C}var w=0!==x?x/(100-d):1,M=0,k=0,S=t.chartData.map((function(t,e){var r,o,l,c,h=t.color?t.color:t.placeHolder?i.neutralLight:p[Math.floor(4*Math.random()+1)],d=h;f.props.enableGradient&&(h=(null===(r=t.gradient)||void 0===r?void 0:r[0])||Zs(e,0,null===(o=f.props.theme)||void 0===o?void 0:o.isInverted)[0],d=(null===(l=t.gradient)||void 0===l?void 0:l[1])||Zs(e,0,null===(c=f.props.theme)||void 0===c?void 0:c.isInverted)[1]);var v=t.data?t.data:0;e>0&&(M+=k),(k=v/b*100?v/b*100:0)<1&&0!==k?k=1/w:k>99&&100!==k?k=99/w:k/=w,m.push(M);var y=f.props.styles,x=!(!f._legendHighlighted(t.legend)&&!f._noLegendHighlighted()),C=t.placeHolder?f.props.theme.semanticColors.bodyText:h;f._classNames=Th(y,{theme:f.props.theme,shouldHighlight:x,href:a,variant:f.props.variant,hideLabels:f.props.hideLabels});var S=g("MSBC_Gradient")+"_".concat(s,"_").concat(e);return u.createElement("g",{key:e,className:t.placeHolder?f._classNames.placeHolderOnHover:f._classNames.opacityChangeOnHover,ref:function(n){f._refCallback(n,t.legend)},"data-is-focusable":!f.props.hideTooltip&&x,onFocus:f._onBarFocus.bind(f,v,C,t),onBlur:f._onBarLeave,role:"img","aria-label":f._getAriaLabel(t),onMouseOver:f._onBarHover.bind(f,v,C,t),onMouseMove:f._onBarHover.bind(f,v,C,t),onMouseLeave:f._onBarLeave,onClick:a?t.placeHolder?void 0:f._redirectToUrl.bind(f,a):t.onClick},f.props.enableGradient&&u.createElement("defs",null,u.createElement("linearGradient",{id:S},u.createElement("stop",{offset:"0",stopColor:h}),u.createElement("stop",{offset:"100%",stopColor:d}))),u.createElement("rect",{key:e,id:"".concat(f._barId,"-").concat(s,"-").concat(e),x:"".concat(f._isRTL?100-m[e]-k-f.state.barSpacingInPercent*e:m[e]+f.state.barSpacingInPercent*e,"%"),y:0,width:k+"%",height:n,rx:f.props.roundCorners?3:0,fill:f.props.enableGradient?"url(#".concat(S,")"):h}))}));if(this.props.variant!==Sh.AbsoluteScale||this.props.hideLabels)0===t.chartData.length&&S.push(u.createElement("g",{key:0,className:this._classNames.noData,onClick:this._redirectToUrl.bind(this,a)},u.createElement("rect",{key:0,id:this._barIdPlaceholderPartToWhole,x:"0%",y:0,width:"100%",height:n,fill:i.neutralLight,rx:this.props.roundCorners?3:0}))),0===y&&S.push(u.createElement("g",{key:"empty",className:this._classNames.noData,onClick:this._redirectToUrl.bind(this,a)},u.createElement("rect",{key:0,id:this._barIdEmpty,x:"0%",y:0,width:"100%",height:n,fill:i.neutralLight,rx:this.props.roundCorners?3:0})));else{var A=!1,L=0;this._noLegendHighlighted()?(A=!0,L=y):null===(c=t.chartData)||void 0===c||c.forEach((function(t){f._legendHighlighted(t.legend)&&(A=!0,L+=t.data?t.data:0)})),A&&S.push(u.createElement("text",{key:"text",x:"".concat(this._isRTL?100-(m[m.length-1]||0)-k-d:(m[m.length-1]||0)+k+d,"%"),textAnchor:"start",y:n/2,dominantBaseline:"central",transform:"translate(".concat(this._isRTL?-4:4,")"),className:this._classNames.barLabel,"aria-label":"Total: ".concat(L),role:"img"},Bs(L)))}var V=void 0!==e&&e,D=this.props.variant!==Sh.AbsoluteScale&&!V&&2===t.chartData.length,N=this.props.variant!==Sh.AbsoluteScale&&!V&&1===t.chartData.length,T=function(){return(0,Jn.U)(t.chartData[0].data?t.chartData[0].data:0,v)};return u.createElement("div",{className:this._classNames.singleChartRoot},u.createElement(xl,{direction:zs.horizontal},u.createElement("div",{className:this._classNames.chartTitle},t.chartTitle&&u.createElement(El,{className:this._classNames.chartTitleLeft,content:t.chartTitle,accessibilityData:t.chartTitleAccessibilityData}),D&&u.createElement("div",(0,o.Cl)({},Os(t.chartDataAccessibilityData,"text",!1)),u.createElement("span",{className:this._classNames.ratioNumerator},T()),!r&&u.createElement("span",{className:this._classNames.ratioDenominator}," / "+(0,Jn.U)(y,v))),N&&u.createElement("div",(0,o.Cl)({className:this._classNames.ratioNumerator},Os(t.chartDataAccessibilityData,"text",!1)),T()))),u.createElement(xl,{direction:zs.horizontal},u.createElement("div",{className:this._classNames.chartWrapper},u.createElement("svg",{ref:this.barChartSvgRef,className:this._classNames.chart,"aria-label":null==t?void 0:t.chartTitle},S))))},n.prototype._onBarFocus=function(t,n,i){var e=this;this.state.refArray.forEach((function(r){r.legendText===i.legend&&e.setState({refSelected:r.refElement,isCalloutVisible:""===e.state.selectedLegend||e.state.selectedLegend===i.legend,calloutLegend:i.legend,dataForHoverCard:t,color:n,xCalloutValue:i.xAxisCalloutData,yCalloutValue:i.yAxisCalloutData,dataPointCalloutProps:(0,o.Cl)((0,o.Cl)({},i),{color:n}),callOutAccessibilityData:i.callOutAccessibilityData})}))},n.prototype._refCallback=function(t,n){this.state.refArray.push({legendText:n,refElement:t})},n.prototype._onHover=function(t){this.setState({activeLegend:t})},n.prototype._onClick=function(t){this.state.selectedLegend===t?this.setState({selectedLegend:""}):this.setState({selectedLegend:t})},n.prototype._onLeave=function(){this.setState({activeLegend:""})},n.prototype._onBarHover=function(t,n,i,e){e.persist(),this._calloutAnchorPoint!==i&&(this._calloutAnchorPoint=i,this.setState({refSelected:e,isCalloutVisible:""===this.state.selectedLegend||this.state.selectedLegend===i.legend,calloutLegend:i.legend,dataForHoverCard:t,color:n,xCalloutValue:i.xAxisCalloutData,yCalloutValue:i.yAxisCalloutData,dataPointCalloutProps:(0,o.Cl)((0,o.Cl)({},i),{color:n}),callOutAccessibilityData:i.callOutAccessibilityData}))},n.prototype._onBarLeave=function(){},n.prototype._redirectToUrl=function(t){t&&(window.location.href=t)},n.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.length>0&&0===this.props.data.filter((function(t){return t.chartData&&0===t.chartData.length&&(!t.chartTitle||""===t.chartTitle)})).length)},n.defaultProps={barHeight:12,hideRatio:[],hideDenominator:[]},n}(u.Component),Oh=(0,r.I)(Eh,(function(t){var n=t.className,i=t.width,e=t.barHeight,r=t.shouldHighlight,u=t.theme,a=t.href,s=t.variant,l=t.hideLabels;return{root:[u.fonts.medium,"ms-StackedBarChart",{display:"flex",flexDirection:"column",width:i||"100%"},n],items:{marginBottom:"11px"},chart:{width:"100%",height:e||12,display:"block",overflow:"visible"},chartTitle:(0,o.Cl)((0,o.Cl)({},u.fonts.small),{display:"flex",justifyContent:"space-between"}),chartTitleLeft:{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",display:"block",color:u.palette.neutralPrimary,marginBottom:s===Sh.AbsoluteScale?"4px":"5px"},singleChartRoot:{width:i||"100%",display:"flex",flexDirection:"column",marginBottom:s===Sh.AbsoluteScale?"16px":"10px"},opacityChangeOnHover:{opacity:r?"":"0.1",cursor:a?"pointer":"default",selectors:{"&:focus":{stroke:u.palette.black,strokeWidth:"2px"}}},ratioNumerator:{fontSize:$t.s.medium,fontWeight:$t.BO.semibold,color:u.palette.neutralPrimary},ratioDenominator:{fontSize:$t.s.medium,color:u.palette.neutralPrimary},placeHolderOnHover:{opacity:r?"":"0.1",cursor:"default",selectors:{"&:focus":{stroke:u.palette.black,strokeWidth:"2px"}}},legendContainer:{margin:"5px 0px 0px 4px"},noData:{cursor:a?"pointer":"default"},barLabel:{fontSize:$t.s.small,fontWeight:$t.BO.semibold,fill:u.palette.neutralPrimary},chartWrapper:{paddingRight:s!==Sh.AbsoluteScale||l?0:40}}})),Ph=(0,a.Z)(),Bh=function(t){function n(n){var i=t.call(this,n)||this;return i._isRTL=(0,s.jI)(),i._handleChartMouseLeave=function(){i._calloutAnchorPoint=null,i.setState({isCalloutVisible:!1})},i._closeCallout=function(){i.setState({isCalloutVisible:!1})},i._legendHighlighted=function(t){return i.state.selectedLegend===t||""===i.state.selectedLegend&&i.state.activeLegend===t},i._noLegendHighlighted=function(){return""===i.state.selectedLegend&&""===i.state.activeLegend},i._getAriaLabel=function(t){var n,i=t.xAxisCalloutData||t.legend,e=t.yAxisCalloutData||t.data||0;return(null===(n=t.callOutAccessibilityData)||void 0===n?void 0:n.ariaLabel)||(i?"".concat(i,", "):"")+"".concat(e,".")},i.state={isCalloutVisible:!1,selectedLegend:"",activeLegend:"",refSelected:null,dataForHoverCard:0,color:"",xCalloutValue:"",yCalloutValue:"",calloutLegend:"",barSpacingInPercent:0},i._refArray=[],i._onLeave=i._onLeave.bind(i),i._refCallback=i._refCallback.bind(i),i._onBarLeave=i._onBarLeave.bind(i),i._calloutId=g("callout"),i._emptyChartId=g("_SBC_empty"),i.barChartSvgRef=u.createRef(),i}return(0,o.C6)(n,t),n.prototype.componentDidMount=function(){var t,n=(null===(t=this.barChartSvgRef.current)||void 0===t?void 0:t.getBoundingClientRect().width)||0;if(n){var i=3/n*100;this.setState({barSpacingInPercent:i})}},n.prototype.render=function(){if(!this._isChartEmpty()){this._adjustProps();var t=this.props,n=t.data,i=t.benchmarkData,e=t.targetData,r=t.hideNumberDisplay,a=t.ignoreFixStyle,s=t.culture,l=this.props.theme.palette,c=a||n.chartData.length>2?this.props.barHeight:12;i&&(i.color=i.color||l.neutralTertiary),e&&(e.color=e.color||l.neutralSecondary);var f=this._createBarsAndLegends(n,c,l,i,e),h=!1===r&&!a&&2===n.chartData.length,d=!1===r&&!a&&1===n.chartData.length,v=n.chartData.reduce((function(t,n){return t+(n.data?n.data:0)}),0),p=0;i&&v&&(p=i.data/v*100);var g=0;e&&v&&(g=e.data/v*100);var m=!1===this.props.hideLegend&&(a||n.chartData.length>2);this._classNames=Ph(this.props.styles,{legendColor:this.state.color,theme:this.props.theme,benchmarkColor:i?i.color:"",benchmarkRatio:p,targetColor:e?e.color:"",targetRatio:g,showTriangle:!(!i&&!e)});var y=function(){return(0,Jn.U)(n.chartData[0].data?n.chartData[0].data:0,s)};return u.createElement("div",{className:this._classNames.root,onMouseLeave:this._handleChartMouseLeave},u.createElement(xl,{direction:zs.horizontal},u.createElement("div",{className:this._classNames.chartTitle},n.chartTitle&&u.createElement(El,{className:this._classNames.chartTitleLeft,content:n.chartTitle,accessibilityData:n.chartTitleAccessibilityData}),h&&u.createElement("div",(0,o.Cl)({},Os(n.chartDataAccessibilityData,"text",!1)),u.createElement("span",{className:this._classNames.ratioNumerator},y()),!this.props.hideDenominator&&u.createElement("span",{className:this._classNames.ratioDenominator}," / "+(0,Jn.U)(v,s))),d&&u.createElement("div",(0,o.Cl)({className:this._classNames.ratioNumerator},Os(n.chartDataAccessibilityData,"text",!1)),y())),(i||e)&&u.createElement("div",{className:this._classNames.benchmarkContainer},i&&u.createElement("div",{className:this._classNames.benchmark,role:"text"}),e&&u.createElement("div",{className:this._classNames.target,role:"text"}))),u.createElement(xl,{direction:zs.horizontal},u.createElement("div",null,u.createElement("svg",{ref:this.barChartSvgRef,className:this._classNames.chart,"aria-label":null==n?void 0:n.chartTitle},u.createElement("g",null,f[0]),u.createElement(Kn,(0,o.Cl)({gapSpace:15,isBeakVisible:!1,target:this.state.refSelected,setInitialFocus:!0,hidden:!(!this.props.hideTooltip&&this.state.isCalloutVisible),directionalHint:x.topAutoEdge,id:this._calloutId,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0,shouldUpdateWhenHidden:!0},this.props.calloutProps,Os(this.state.callOutAccessibilityData,"text",!1)),u.createElement(u.Fragment,null,this.props.onRenderCalloutPerDataPoint?this.props.onRenderCalloutPerDataPoint(this.state.dataPointCalloutProps):u.createElement(js.ChartHoverCard,{Legend:this.state.xCalloutValue?this.state.xCalloutValue:this.state.calloutLegend,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard,color:this.state.color,culture:s})))))),m&&u.createElement("div",{className:this._classNames.legendContainer},f[1]))}return u.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"})},n.prototype._adjustProps=function(){this._classNames=Ph(this.props.styles,{legendColor:this.state.color,theme:this.props.theme,width:this.props.width,barHeight:this.props.barHeight,className:this.props.className})},n.prototype._createBarsAndLegends=function(t,n,i,e,r){var a,s=this,l=(null===(a=t.chartData)||void 0===a?void 0:a.reduce((function(t,n){return t+((n.data||0)>0?1:0)}),0))||1,c=this.state.barSpacingInPercent*(l-1),f=[i.blueLight,i.blue,i.blueMid,i.red,i.black],h=[],d=[],v=t.chartData.reduce((function(t,n){return t+(n.data?n.data:0)}),0),p=0,m=0,y=0;t.chartData.map((function(t,n){var i=t.data?t.data:0;return(m=i/v*100)<1&&0!==m?m=1:m>99&&100!==m&&(m=99),y+=m}));var b=0!==y?y/(100-c):1,x=t.chartData.map((function(t,i){var e,r,o,a,l=t.color?t.color:f[Math.floor(4*Math.random()+1)],c=l;s.props.enableGradient&&(l=(null===(e=t.gradient)||void 0===e?void 0:e[0])||Zs(i,0,null===(r=s.props.theme)||void 0===r?void 0:r.isInverted)[0],c=(null===(o=t.gradient)||void 0===o?void 0:o[1])||Zs(i,0,null===(a=s.props.theme)||void 0===a?void 0:a.isInverted)[1]);var y=t.data?t.data:0,x={title:t.legend,color:l,action:v>0?function(){s._onClick(t.legend)}:void 0,hoverAction:v>0?function(){s._handleChartMouseLeave(),s._onHover(t.legend)}:void 0,onMouseOutAction:v>0?function(){s._onLeave()}:void 0};t.placeHolder||h.push(x),i>0&&(p+=m),(m=y/v*100)<1&&0!==m?m=1/b:m>99&&100!==m?m=99/b:m/=b,d.push(p);var C=s.props.styles,w=!(!s._legendHighlighted(t.legend)&&!s._noLegendHighlighted());s._classNames=Ph(C,{theme:s.props.theme,shouldHighlight:w,href:s.props.href});var M=g("SBC_Gradient")+"_".concat(i);return u.createElement("g",{key:i,className:s._classNames.opacityChangeOnHover,ref:function(t){s._refCallback(t,x.title)},"data-is-focusable":!s.props.hideTooltip&&w,onFocus:s._onBarFocus.bind(s,y,l,t),onBlur:s._onBarLeave,"aria-label":s._getAriaLabel(t),role:"img",onMouseOver:s._onBarHover.bind(s,y,l,t),onMouseMove:s._onBarHover.bind(s,y,l,t),onMouseLeave:s._onBarLeave,pointerEvents:"all",onClick:s.props.href?s._redirectToUrl.bind(s,s.props.href):t.onClick},s.props.enableGradient&&u.createElement("defs",null,u.createElement("linearGradient",{id:M},u.createElement("stop",{offset:"0",stopColor:l}),u.createElement("stop",{offset:"100%",stopColor:c}))),u.createElement("rect",{key:i,id:g("_SBC_bar"),x:"".concat(s._isRTL?100-d[i]-m-s.state.barSpacingInPercent*i:d[i]+s.state.barSpacingInPercent*i,"%"),y:0,width:m+"%",height:n,rx:s.props.roundCorners?3:0,fill:s.props.enableGradient?"url(#".concat(M,")"):l}))}));this._addLegend(h,e),this._addLegend(h,r);var C=u.createElement(Lc,(0,o.Cl)({legends:h,enabledWrapLines:this.props.enabledLegendsWrapLines,overflowProps:this.props.legendsOverflowProps,focusZonePropsInHoverCard:this.props.focusZonePropsForLegendsInHoverCard,overflowText:this.props.legendsOverflowText},this.props.legendProps));return[0===v?[this._generateEmptyBar(n,this.props.barBackgroundColor?this.props.barBackgroundColor:i.neutralLight)]:x,C]},n.prototype._onBarFocus=function(t,n,i){var e=this;this._refArray.forEach((function(r){r.index===i.legend&&e.setState({refSelected:r.refElement,isCalloutVisible:""===e.state.selectedLegend||e.state.selectedLegend===i.legend,calloutLegend:i.legend,dataForHoverCard:t,color:n,xCalloutValue:i.xAxisCalloutData,yCalloutValue:i.yAxisCalloutData,dataPointCalloutProps:(0,o.Cl)((0,o.Cl)({},i),{color:n}),callOutAccessibilityData:i.callOutAccessibilityData})}))},n.prototype._addLegend=function(t,n){if(n){var i={title:n.legend,color:n.color,shape:"triangle"};t.push(i)}},n.prototype._generateEmptyBar=function(t,n){return u.createElement("g",{key:0,className:this._classNames.opacityChangeOnHover},u.createElement("rect",{key:0,id:g("_SBC_empty_bar_"),x:"0%",y:0,width:"100%",height:t,fill:n}))},n.prototype._refCallback=function(t,n){this._refArray.push({index:n,refElement:t})},n.prototype._onClick=function(t){this.state.selectedLegend===t?this.setState({selectedLegend:""}):this.setState({selectedLegend:t})},n.prototype._onHover=function(t){this.setState({activeLegend:t})},n.prototype._onLeave=function(){this.setState({activeLegend:""})},n.prototype._onBarHover=function(t,n,i,e){e.persist(),this._calloutAnchorPoint!==i&&(this._calloutAnchorPoint=i,this.setState({refSelected:e,isCalloutVisible:""===this.state.selectedLegend||this.state.selectedLegend===i.legend,calloutLegend:i.legend,dataForHoverCard:t,color:n,xCalloutValue:i.xAxisCalloutData,yCalloutValue:i.yAxisCalloutData,dataPointCalloutProps:(0,o.Cl)((0,o.Cl)({},i),{color:n}),callOutAccessibilityData:i.callOutAccessibilityData}))},n.prototype._onBarLeave=function(){},n.prototype._redirectToUrl=function(t){t&&(window.location.href=t)},n.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.chartData&&this.props.data.chartData.length>0)},n.defaultProps={barHeight:12,hideNumberDisplay:!1,hideLegend:!1,ignoreFixStyle:!1},n}(u.Component),Fh=(0,r.I)(Bh,(function(t){var n,i,e=t.className,r=t.width,u=t.barHeight,a=t.shouldHighlight,s=t.theme,l=t.href,c=t.benchmarkColor,f=t.benchmarkRatio,h=t.targetColor,d=t.targetRatio,v=t.showTriangle;return{root:[s.fonts.medium,"ms-StackedBarChart",{width:r||"100%",display:"flex",flexDirection:"column"},e],chart:{width:"100%",height:u||12,display:"block",marginBottom:v?"16px":"10px",overflow:"visible"},chartTitle:(0,o.Cl)((0,o.Cl)({},s.fonts.small),{display:"flex",justifyContent:"space-between"}),chartTitleLeft:{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",display:"block",color:s.palette.neutralPrimary,marginBottom:"5px"},legendContainer:{margin:"4px 0px 0px 4px"},opacityChangeOnHover:{opacity:a?"":"0.1",cursor:l?"pointer":"default",selectors:{"&:focus":{stroke:s.palette.black,strokeWidth:"2px"}}},ratioNumerator:{fontSize:$t.s.medium,fontWeight:$t.BO.semibold,color:s.palette.neutralPrimary},ratioDenominator:{fontSize:$t.s.medium,color:s.palette.neutralPrimary},benchmarkContainer:{position:"relative",height:"7px",marginTop:"-3px",marginBottom:"-1px"},benchmark:{position:"absolute",left:"calc("+f+"% - 4px)",width:"0",height:"0",borderLeft:"4px solid transparent",borderRight:"4px solid transparent",borderTop:"7px solid",borderTopColor:c,marginBottom:"4px",selectors:(n={},n[$t.up]={border:"0px",height:"7px",width:"7px",clipPath:"polygon(50% 100%, 0 0, 100% 0)",backgroundImage:"linear-gradient(to right, ".concat(c,", ").concat(c,")")},n)},target:{position:"absolute",left:"calc("+d+"% - 4px)",width:"0",height:"0",borderLeft:"4px solid transparent",borderRight:"4px solid transparent",borderTop:"7px solid",borderTopColor:h,marginBottom:"4px",selectors:(i={},i[$t.up]={border:"0px",height:"7px",width:"7px",clipPath:"polygon(50% 100%, 0 0, 100% 0)",backgroundImage:"linear-gradient(to right, ".concat(h,", ").concat(h,")")},i)}}})),_h=function(t,n){var i=function(t){if(!(t.length<2)){t=t.sort((function(t,n){return t instanceof Date?t.getTime()-n.getTime():t-n}));for(var n=Number.MAX_VALUE,i=1;i<t.length;i++){var e=t[i]instanceof Date?t[i].getTime()-t[i-1].getTime():t[i]-t[i-1];n=Math.min(n,e)}return[n,t[0]instanceof Date?t[t.length-1].getTime()-t[0].getTime():t[t.length-1]-t[0]]}}(t);if(!i||0===i[1])return 16;var e=i[0],r=i[1];return Math.round(n*e/(2*r+e))};!function(t){t.show="visibility",t.hide="hidden"}(Nh||(Nh={}));var Hh,Rh=(0,a.Z)(),Ih=function(t){function n(n){var i,e=t.call(this,n)||this;return e._isRtl=(0,s.jI)(),e._getDomainNRangeValues=function(t,n,i,e,r,o,u,a,s){return o===os.NumericAxis?function(t,n,i,e,r){var o=pi(t,(function(t){return t.x})),u=vi(t,(function(t){return t.x})),a=n.left,s=i-n.right;return e?{dStartValue:o,dEndValue:u,rStartValue:a,rEndValue:s}:{dStartValue:u,dEndValue:o,rStartValue:a,rEndValue:s}}(t,n,i,r):o===os.DateAxis?ks(t,n,i,r,a,e):Ms(n,i,r)},e._createLine=function(t,n,i,r,o){var a;void 0===i&&(i=0),void 0===r&&(r=0);var s=e._xAxisType===os.StringAxis,l=e._getScales(i,r).xBarScale,c=e._createColors(),f=e.props.theme,h=e.props,d=h.data,v=h.lineLegendColor,p=void 0===v?f.palette.yellow:v,m=h.lineLegendText,y=[],b=[];d&&d.forEach((function(t,n){var i;t.lineData&&t.lineData.y&&y.push({x:t.x,y:t.lineData.y,useSecondaryYScale:null!==(i=t.lineData.useSecondaryYScale)&&void 0!==i&&i,point:t,index:n})}));var x=Vf().x((function(n){return s?l(n.x)+.5*l.bandwidth():t(n.x)})).y((function(t){return t.useSecondaryYScale&&o?o(t.y):n(t.y)})),C=!(!e._legendHighlighted(m)&&!e._noLegendHighlighted()),w=(null===(a=e.props.lineOptions)||void 0===a?void 0:a.lineBorderWidth)?Number.parseFloat(e.props.lineOptions.lineBorderWidth.toString()):0;w>0&&b.push(u.createElement("path",{key:g("_VBC_line_"),id:g("_VBC_line_"),opacity:C?1:.1,d:x(y),fill:"transparent",strokeLinecap:"square",strokeWidth:3+2*w,stroke:f.semanticColors.bodyBackground})),b.push(u.createElement("path",{key:g("_VBC_line_"),id:g("_VBC_line_"),opacity:C?1:.1,d:x(y),fill:"transparent",strokeLinecap:"square",strokeWidth:3,stroke:p}));var M=y.map((function(i,r){var a,f={refElement:null};return u.createElement("circle",{key:r,id:g("_VBC_point_"),cx:s?l(i.x)+.5*l.bandwidth():t(i.x),cy:i.useSecondaryYScale&&o?o(i.y):n(i.y),onMouseOver:e._legendHighlighted(m)?e._lineHover.bind(e,i.point):e._onBarHover.bind(e,i.point,c(i.y)),onMouseOut:e._onBarLeave,r:e._getCircleVisibilityAndRadius(i.x,m).radius,stroke:p,fill:e.props.theme.semanticColors.bodyBackground,strokeWidth:3,visibility:e._getCircleVisibilityAndRadius(i.x,m).visibility,onClick:null===(a=i.point.lineData)||void 0===a?void 0:a.onClick,"data-is-focusable":e._legendHighlighted(m),ref:function(t){return f.refElement=t},onFocus:e._lineFocus.bind(e,i.point,f),onBlur:e._handleChartMouseLeave})}));return u.createElement(u.Fragment,null,b,M)},e._getCircleVisibilityAndRadius=function(t,n){var i=e.state.activeXdataPoint;return e._noLegendHighlighted()?{visibility:i===t?Nh.show:Nh.hide,radius:8}:t===i&&e._legendHighlighted(n)?{visibility:Nh.show,radius:8}:e._legendHighlighted(n)?{visibility:Nh.show,radius:.3}:{visibility:Nh.hide,radius:0}},e._checkForLine=function(){return e.props.data.some((function(t){var n;return void 0!==(null===(n=null==t?void 0:t.lineData)||void 0===n?void 0:n.y)}))},e._getMargins=function(t){e.margins=t},e._renderContentForBothLineAndBars=function(t){var n=e._getCalloutContentForLineAndBar(t),i=n.YValueHover,r=n.hoverXValue,a=i.map((function(t,n){return u.createElement(js.ChartHoverCard,(0,o.Cl)({key:n,Legend:t.legend},0===n&&{XValue:"".concat(r||t.data)},{color:t.color,YValue:t.data||t.y,culture:e.props.culture}))}));return u.createElement(u.Fragment,null,a)},e._renderContentForOnlyBars=function(t){var n=e.props.useSingleColor,i=void 0!==n&&n;return u.createElement(u.Fragment,null,u.createElement(js.ChartHoverCard,{XValue:t.xAxisCalloutData||t.x,Legend:t.legend,YValue:t.yAxisCalloutData||t.y,color:!i&&t.color?t.color:e._createColors()(t.y),culture:e.props.culture}))},e._renderCallout=function(t){return t?e._isHavingLine?e._renderContentForBothLineAndBars(t):e._renderContentForOnlyBars(t):null},e._getCustomizedCallout=function(){return e.props.onRenderCalloutPerDataPoint?e.props.onRenderCalloutPerDataPoint(e.state.dataPointCalloutProps,e._renderCallout):null},e._getGraphData=function(t,n,i,r,o){return e._bars=e._xAxisType===os.NumericAxis?e._createNumericBars(i,r,o):e._xAxisType===os.DateAxis?e._createDateBars(i,r,o):e._createStringBars(i,r,o)},e._refCallback=function(t,n){e._refArray.push({index:n,refElement:t})},e._getCalloutContentForLineAndBar=function(t){var n,i,r,o,u,a=[],s=e.props,l=s.theme,c=s.useSingleColor,f=void 0!==c&&c,h=s.enableGradient,d=e.props,v=d.data,p=d.lineLegendText,g=d.lineLegendColor,m=void 0===g?l.palette.yellow:g,y=v.filter((function(n){return n.x===t.x})),b=v.indexOf(y[0]),x=f?e._createColors()(1):y[0].color?y[0].color:e._createColors()(y[0].y);e._isHavingLine&&void 0!==(null===(n=y[0].lineData)||void 0===n?void 0:n.y)&&(e._legendHighlighted(p)||e._noLegendHighlighted())&&a.push({legend:p,color:m,y:null===(i=y[0].lineData)||void 0===i?void 0:i.y,data:null===(r=y[0].lineData)||void 0===r?void 0:r.yAxisCalloutData,yAxisCalloutData:null===(o=y[0].lineData)||void 0===o?void 0:o.yAxisCalloutData}),(e._legendHighlighted(y[0].legend)||e._noLegendHighlighted())&&a.push({legend:y[0].legend,y:y[0].y,color:h?f?Zs(0,0)[0]:(null===(u=y[0].gradient)||void 0===u?void 0:u[0])||Zs(b,0)[0]:x,data:y[0].yAxisCalloutData,yAxisCalloutData:y[0].yAxisCalloutData});var C=t.x instanceof Date?Rs(t.x,e.props.useUTC):t.x.toString();return{YValueHover:a,hoverXValue:t.xAxisCalloutData||C}},e._onBarLeave=function(){},e._handleChartMouseLeave=function(){e._calloutAnchorPoint=null,e.setState({isCalloutVisible:!1,activeXdataPoint:null,YValueHover:[],hoverXValue:""})},e._onBarFocus=function(t,n,i){var r=e._getCalloutContentForLineAndBar(t),o=r.YValueHover,u=r.hoverXValue;e._refArray.forEach((function(r,a){r.index===t.legend&&n===a&&e.setState({refSelected:r.refElement,isCalloutVisible:e._noLegendHighlighted()||e._legendHighlighted(t.legend),calloutLegend:t.legend,dataForHoverCard:t.y,color:t.color||i,xCalloutValue:t.xAxisCalloutData||(t.x instanceof Date?Rs(t.x,e.props.useUTC):t.x.toString()),yCalloutValue:t.yAxisCalloutData,dataPointCalloutProps:t,activeXdataPoint:t.x,YValueHover:o,hoverXValue:u,callOutAccessibilityData:t.callOutAccessibilityData})}))},e._lineHover=function(t,n){n.persist(),e._lineHoverFocus(t,n)},e._lineFocus=function(t,n){n.refElement&&e._lineHoverFocus(t,n.refElement)},e._lineHoverFocus=function(t,n){var i=e.props.theme,r=e.props,o=r.lineLegendText,u=void 0===o?"":o,a=r.lineLegendColor,s=void 0===a?i.palette.yellow:a;e.setState({refSelected:n,isCalloutVisible:!0,calloutLegend:u,dataForHoverCard:t.lineData.y,color:s,xCalloutValue:t.xAxisCalloutData||(t.x instanceof Date?Rs(t.x,e.props.useUTC):t.x.toString()),yCalloutValue:t.lineData.yAxisCalloutData,dataPointCalloutProps:t,activeXdataPoint:t.x})},e._getScales=function(t,n){var i,r=Ue().domain([e.props.supportNegativeData?e._yMin:0,e._yMax]).range([0,t-e.margins.bottom-e.margins.top]);if(e._xAxisType===os.NumericAxis){var o=pi(e._points,(function(t){return t.x})),u=vi(e._points,(function(t){return t.x}));i=Ue().domain(e._isRtl?[o,u]:[u,o]).nice().range([e.margins.left+e._domainMargin,n-e.margins.right-e._domainMargin])}else if(e._xAxisType===os.DateAxis){var a=vi(e._points,(function(t){return t.x})),s=pi(e._points,(function(t){return t.x}));(i=e.props.useUTC?Yu():ju()).domain([a,s]).range(e._isRtl?[n-e.margins.right-e._domainMargin,e.margins.left+e._domainMargin]:[e.margins.left+e._domainMargin,n-e.margins.right-e._domainMargin])}else i=Zu().domain(e._xAxisLabels).range(e._isRtl?[n-e.margins.right-e._domainMargin,e.margins.left+e._domainMargin]:[e.margins.left+e._domainMargin,n-e.margins.right-e._domainMargin]).paddingInner(e._xAxisInnerPadding).paddingOuter(e._xAxisOuterPadding);return{xBarScale:i,yBarScale:r}},e._closeCallout=function(){e.setState({isCalloutVisible:!1})},e._getLegendData=function(t,n){var i=e.props,r=i.theme,a=i.useSingleColor,s=e.props,l=s.lineLegendText,c=s.lineLegendColor,f=void 0===c?r.palette.yellow:c,h=[],d={};if(t.forEach((function(t,n){var i,o,u,s=a?e._createColors()(1):t.color;if(e.props.enableGradient){var l=Math.max((null===(i=e.props.data)||void 0===i?void 0:i.findIndex((function(n){return n.legend===t.legend})))||0,0);s=(null===(o=t.gradient)||void 0===o?void 0:o[0])||Zs(l,0,null==r?void 0:r.isInverted)[0],a&&(s=Zs(0,0,null===(u=e.props.theme)||void 0===u?void 0:u.isInverted)[0])}d[t.legend]=s})),Object.entries(d).forEach((function(t){var n=t[0],i=t[1],r={title:n,color:i,hoverAction:function(){e._handleChartMouseLeave(),e._onLegendHover(n)},onMouseOutAction:function(){e._onLegendLeave()}};h.push(r)})),e._isHavingLine&&l&&f){var v={title:l,color:f,hoverAction:function(){e._handleChartMouseLeave(),e._onLegendHover(l)},onMouseOutAction:function(){e._onLegendLeave()},isLineLegendInBarChart:!0};h.unshift(v)}return u.createElement(Lc,(0,o.Cl)({legends:h,enabledWrapLines:e.props.enabledLegendsWrapLines,overflowProps:e.props.legendsOverflowProps,focusZonePropsInHoverCard:e.props.focusZonePropsForLegendsInHoverCard,overflowText:e.props.legendsOverflowText},e.props.legendProps,{onChange:e._onLegendSelectionChange.bind(e)}))},e._getAxisData=function(t){if(t&&t.yAxisDomainValues.length){var n=t.yAxisDomainValues;e._yMax=Math.max(n[n.length-1],e.props.yMaxValue||0),e._yMin=Math.min(n[0],e.props.yMinValue||0)}},e._legendHighlighted=function(t){return e._getHighlightedLegend().includes(t)},e._noLegendHighlighted=function(){return 0===e._getHighlightedLegend().length},e._getAriaLabel=function(t){var n,i,r,o=t.xAxisCalloutData?t.xAxisCalloutData:t.x instanceof Date?Rs(t.x,e.props.useUTC):t.x,u=t.legend,a=t.yAxisCalloutData||t.y,s=e.props.lineLegendText||"Line",l=(null===(n=t.lineData)||void 0===n?void 0:n.yAxisCalloutData)||(null===(i=t.lineData)||void 0===i?void 0:i.y);return(null===(r=t.callOutAccessibilityData)||void 0===r?void 0:r.ariaLabel)||"".concat(o,". ")+(u?"".concat(u,", "):"")+"".concat(a,".")+(void 0!==l?" ".concat(s,", ").concat(l,"."):"")},e._getDomainMargins=function(t){var n;e._domainMargin=8;var i=t-(e.margins.left+8)-(e.margins.right+8),r=e._xAxisInnerPadding/(1-e._xAxisInnerPadding);if(e._xAxisType===os.StringAxis){if(Hs(e.props.xAxisOuterPadding,e.props.xAxisPadding))e._domainMargin=0;else if("auto"!==e.props.barWidth)e._barWidth=Fs(e.props.barWidth,e.props.maxBarWidth),i>=(u=(e._xAxisLabels.length+(e._xAxisLabels.length-1)*r)*e._barWidth)&&(e._domainMargin=8+(i-u)/2);else if("plotly"===e.props.mode&&e._xAxisLabels.length>1){var u,a=i/(e._xAxisLabels.length+(e._xAxisLabels.length-1)*r),s=Fs(e.props.barWidth,e.props.maxBarWidth,a),l=(i-(u=(e._xAxisLabels.length+(e._xAxisLabels.length-1)*r)*s))/2,c=bs(e._xAxisLabels)+20,f=(i-(u=(e._xAxisLabels.length-e._xAxisInnerPadding)*c))/2;e._domainMargin=8+Math.max(0,Math.min(l,f))}}else{var h=(null===(n=e.props.data)||void 0===n?void 0:n.map((function(t){return t.x})))||[];e._barWidth=Fs(e.props.barWidth,e.props.maxBarWidth,_h(h,i)),e._domainMargin=8+e._barWidth/2}return(0,o.Cl)((0,o.Cl)({},e.margins),{left:e.margins.left+e._domainMargin,right:e.margins.right+e._domainMargin})},e._getChartTitle=function(){var t=e.props,n=t.chartTitle,i=t.data;return(n?"".concat(n,". "):"")+"Vertical bar chart with ".concat((null==i?void 0:i.length)||0," bars")+(e._isHavingLine?" and 1 line":"")+". "},Qs(e),e.state={color:"",dataForHoverCard:0,isCalloutVisible:!1,refSelected:null,selectedLegends:(null===(i=n.legendProps)||void 0===i?void 0:i.selectedLegends)||[],activeLegend:void 0,xCalloutValue:"",yCalloutValue:"",activeXdataPoint:null,YValueHover:[],hoverXValue:"",calloutLegend:""},e._isHavingLine=e._checkForLine(),e._calloutId=g("callout"),e._tooltipId=g("VCTooltipID_"),e._refArray=[],e._xAxisType=e.props.data&&e.props.data.length>0?Ts(e.props.data[0].x,!0):os.StringAxis,e._emptyChartId=g("_VBC_empty"),e._domainMargin=8,e._cartesianChartRef=u.createRef(),e}return(0,o.C6)(n,t),n.prototype.componentDidUpdate=function(t){var n,i,e;Ws(null===(n=t.legendProps)||void 0===n?void 0:n.selectedLegends,null===(i=this.props.legendProps)||void 0===i?void 0:i.selectedLegends)||this.setState({selectedLegends:(null===(e=this.props.legendProps)||void 0===e?void 0:e.selectedLegends)||[]})},n.prototype.render=function(){var t=this;this._adjustProps(),this._xAxisLabels=this._points.map((function(t){return t.x})),this._yMax=Math.max(pi(this._points,(function(t){return t.y})),this.props.yMaxValue||0),this._yMin=Math.min(vi(this._points,(function(t){return t.y})),this.props.yMinValue||0);var n=this._getLegendData(this._points,this.props.theme.palette);this._classNames=Rh(this.props.styles,{theme:this.props.theme,legendColor:this.state.color});var i=(0,o.Cl)((0,o.Cl)((0,o.Cl)((0,o.Cl)({isCalloutVisible:this.state.isCalloutVisible,directionalHint:x.topAutoEdge,id:"toolTip".concat(this._calloutId),target:this.state.refSelected,isBeakVisible:!1},this._isHavingLine&&{YValueHover:this.state.YValueHover,hoverXValue:this.state.hoverXValue}),{gapSpace:15,color:this.state.color,legend:this.state.calloutLegend,XValue:this.state.xCalloutValue,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0}),this.props.calloutProps),Os(this.state.callOutAccessibilityData)),e={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return this._isChartEmpty()?u.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):u.createElement(Hf,(0,o.Cl)({},this.props,{chartTitle:this._getChartTitle(),points:this._points,supportNegativeData:this.props.supportNegativeData,chartType:rs.VerticalBarChart,xAxisType:this._xAxisType,createYAxis:vs,calloutProps:i,tickParams:e},this._isHavingLine&&(this._noLegendHighlighted()||this._getHighlightedLegend().length>1)&&{isCalloutForStack:!0},{legendBars:n,datasetForXAxisDomain:this._xAxisLabels,barwidth:this._barWidth,focusZoneDirection:zs.horizontal,customizedCallout:this._getCustomizedCallout(),createStringYAxis:gs,getmargins:this._getMargins,getMinMaxOfYAxis:Ls,getGraphData:this._getGraphData,getDomainNRangeValues:this._getDomainNRangeValues,getAxisData:this._getAxisData,onChartMouseLeave:this._handleChartMouseLeave,getDomainMargins:this._getDomainMargins},this._xAxisType===os.StringAxis&&{xAxisInnerPadding:this._xAxisInnerPadding,xAxisOuterPadding:this._xAxisOuterPadding},{ref:this._cartesianChartRef,children:function(n){return u.createElement(u.Fragment,null,u.createElement("g",null,t._bars),t._isHavingLine&&u.createElement("g",null,t._createLine(n.xScale,n.yScale,n.containerHeight,n.containerWidth,n.yScaleSecondary)))}}))},Object.defineProperty(n.prototype,"chartContainer",{get:function(){var t;return(null===(t=this._cartesianChartRef.current)||void 0===t?void 0:t.chartContainer)||null},enumerable:!1,configurable:!0}),n.prototype._adjustProps=function(){this._points=this.props.data||[],this._barWidth=Fs(this.props.barWidth,this.props.maxBarWidth);var t=this.props.theme.palette;this._colors=this.props.colors||[t.blueLight,t.blue,t.blueMid,t.blueDark],this._isHavingLine=this._checkForLine(),this._xAxisInnerPadding=_s(this.props.xAxisInnerPadding,this.props.xAxisPadding,2/3),this._xAxisOuterPadding=_s(this.props.xAxisOuterPadding,this.props.xAxisPadding,0)},n.prototype._createColors=function(){var t=this,n=this._colors.length<=1?1:1/(this._colors.length-1),i=this.props.useSingleColor;if(void 0!==i&&i)return function(n){var i=t.props,e=i.theme,r=i.colors;return r&&r.length>0?r[0]:e.palette.blueLight};for(var e=[],r=0;r<this._colors.length;r++)e.push(n*r*this._yMax);return Ue().domain(e).range(this._colors)},n.prototype._onBarHover=function(t,n,i){i.persist();var e=this._getCalloutContentForLineAndBar(t),r=e.YValueHover,o=e.hoverXValue;this._calloutAnchorPoint!==t&&(this._calloutAnchorPoint=t,this.setState({refSelected:i,isCalloutVisible:this._noLegendHighlighted()||this._legendHighlighted(t.legend),dataForHoverCard:t.y,calloutLegend:t.legend,color:t.color||n,xCalloutValue:t.xAxisCalloutData||(t.x instanceof Date?Rs(t.x,this.props.useUTC):t.x.toString()),yCalloutValue:t.yAxisCalloutData,dataPointCalloutProps:t,activeXdataPoint:this._noLegendHighlighted()||this._legendHighlighted(t.legend)?t.x:null,YValueHover:r,hoverXValue:o,callOutAccessibilityData:t.callOutAccessibilityData}))},n.prototype._calculateMinBarHeight=function(t,n,i,e){var r=n<0?Math.abs(t-i):Math.max(Math.abs(n-i),Math.abs(t-i));return Math.ceil(e(r)/100)},n.prototype._createNumericBars=function(t,n,i){var e=this,r=this.props.useSingleColor,o=void 0!==r&&r,a=this._getScales(t,n),s=a.xBarScale,l=a.yBarScale,c=this._createColors(),f=this._yMax<0?this._yMax:0,h=this._points.map((function(n,i){var r,a,h,d,v,p,m=!(!e._legendHighlighted(n.legend)&&!e._noLegendHighlighted());e._classNames=Rh(e.props.styles,{theme:e.props.theme,legendColor:e.state.color,shouldHighlight:m});var y=l(n.y)-l(f),b=y<0;y=Math.abs(y);var x=e._calculateMinBarHeight(e._yMin,e._yMax,f,l),C=y;if(0===y||b&&!e.props.supportNegativeData)return u.createElement(u.Fragment,{key:n.x}," ");y<=x&&(C=x);var w=s(n.x)-e._barWidth/2,M=t-e.margins.bottom-(b?-1*C:C)-l(f),k=t-e.margins.bottom-l(f),S=n.color&&!o?n.color:c(n.y),A=S;e.props.enableGradient&&(S=(null===(r=n.gradient)||void 0===r?void 0:r[0])||Zs(i,0,null===(a=e.props.theme)||void 0===a?void 0:a.isInverted)[0],A=(null===(h=n.gradient)||void 0===h?void 0:h[1])||Zs(i,0,null===(d=e.props.theme)||void 0===d?void 0:d.isInverted)[1],o&&(S=Zs(0,0,null===(v=e.props.theme)||void 0===v?void 0:v.isInverted)[0],A=Zs(0,0,null===(p=e.props.theme)||void 0===p?void 0:p.isInverted)[1]),e._points[i].color=S);var L=g("VBC_Gradient")+"_".concat(i,"_").concat(S);return u.createElement("g",{key:n.x},e.props.enableGradient&&u.createElement("defs",null,u.createElement("linearGradient",{id:L,x1:"0%",y1:"100%",x2:"0%",y2:"0%"},u.createElement("stop",{offset:"0",stopColor:S}),u.createElement("stop",{offset:"100%",stopColor:A}))),u.createElement("rect",{id:g("_VBC_bar_"),x:w,className:e._classNames.opacityChangeOnHover,y:b?k:M,width:e._barWidth,"data-is-focusable":!e.props.hideTooltip&&m,height:C,ref:function(t){e._refCallback(t,n.legend)},onClick:n.onClick,onMouseOver:e._onBarHover.bind(e,n,S),"aria-label":e._getAriaLabel(n),role:"img",onMouseLeave:e._onBarLeave,onFocus:e._onBarFocus.bind(e,n,i,S),onBlur:e._onBarLeave,fill:e.props.enableGradient?"url(#".concat(L,")"):S,rx:e.props.roundCorners?3:0}),e._renderBarLabel(w,M,n.y,n.legend,b))}));if(!this.props.showXAxisLablesTooltip)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}if(!this.props.wrapXAxisLables&&this.props.showXAxisLablesTooltip){var d=ls(i).call(s);try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}var v={tooltipCls:this._classNames.tooltip,id:this._tooltipId,xAxis:d};d&&xs(v)}return h},n.prototype._createStringBars=function(t,n,i){var e=this,r=this.props.useSingleColor,o=void 0!==r&&r,a=this._getScales(t,n),s=a.xBarScale,l=a.yBarScale,c=this._createColors(),f=this._yMax<0?this._yMax:0,h=this._points.map((function(n,i){var r,a,h,d,v,p,m=l(n.y)-l(f),y=m<0;m=Math.abs(m);var b=e._calculateMinBarHeight(e._yMin,e._yMax,f,l),x=m;if(0===m||y&&!e.props.supportNegativeData)return u.createElement(u.Fragment,{key:n.x}," ");m<=b&&(x=b);var C=s(n.x),w=t-e.margins.bottom-(y?-1*x:x)-l(f),M=t-e.margins.bottom-l(f);e._barWidth=Fs(e.props.barWidth,e.props.maxBarWidth,s.bandwidth());var k=n.color?n.color:c(n.y),S=k;e.props.enableGradient&&(k=(null===(r=n.gradient)||void 0===r?void 0:r[0])||Zs(i,0,null===(a=e.props.theme)||void 0===a?void 0:a.isInverted)[0],S=(null===(h=n.gradient)||void 0===h?void 0:h[1])||Zs(i,0,null===(d=e.props.theme)||void 0===d?void 0:d.isInverted)[1],o&&(k=Zs(0,0,null===(v=e.props.theme)||void 0===v?void 0:v.isInverted)[0],S=Zs(0,0,null===(p=e.props.theme)||void 0===p?void 0:p.isInverted)[1]),e._points[i].color=k);var A=g("VBC_Gradient")+"_".concat(i,"_").concat(k);return u.createElement("g",{key:n.x instanceof Date?n.x.getTime():n.x,transform:"translate(".concat(.5*(s.bandwidth()-e._barWidth),", 0)")},e.props.enableGradient&&u.createElement("defs",null,u.createElement("linearGradient",{id:A,x1:"0%",y1:"100%",x2:"0%",y2:"0%"},u.createElement("stop",{offset:"0",stopColor:k}),u.createElement("stop",{offset:"100%",stopColor:S}))),u.createElement("rect",{id:g("_VBC_bar_"),x:C,y:y?M:w,width:e._barWidth,height:x,"aria-label":e._getAriaLabel(n),role:"img",ref:function(t){e._refCallback(t,n.legend)},onClick:n.onClick,onMouseOver:e._onBarHover.bind(e,n,k),onMouseLeave:e._onBarLeave,onBlur:e._onBarLeave,"data-is-focusable":!e.props.hideTooltip,onFocus:e._onBarFocus.bind(e,n,i,k),fill:e.props.enableGradient?"url(#".concat(A,")"):k,rx:e.props.roundCorners?3:0}),e._renderBarLabel(C,w,n.y,n.legend,y))}));if(!this.props.showXAxisLablesTooltip)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}if(!this.props.wrapXAxisLables&&this.props.showXAxisLablesTooltip){var d=ls(i).call(s);try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}var v={tooltipCls:this._classNames.tooltip,id:this._tooltipId,xAxis:d,showTooltip:this.props.showXAxisLablesTooltip};d&&xs(v)}return h},n.prototype._createDateBars=function(t,n,i){var e=this,r=this.props.useSingleColor,o=void 0!==r&&r,a=this._getScales(t,n),s=a.xBarScale,l=a.yBarScale,c=this._createColors(),f=this._yMax<0?this._yMax:0,h=this._points.map((function(n,i){var r,a,h,d,v,p,m=!(!e._legendHighlighted(n.legend)&&!e._noLegendHighlighted());e._classNames=Rh(e.props.styles,{theme:e.props.theme,legendColor:e.state.color,shouldHighlight:m});var y=l(n.y)-l(f),b=y<0;y=Math.abs(y);var x=e._calculateMinBarHeight(e._yMin,e._yMax,f,l),C=y;if(0===y||b&&!e.props.supportNegativeData)return u.createElement(u.Fragment,{key:n.x}," ");y<=x&&(C=x);var w=s(n.x)-e._barWidth/2,M=t-e.margins.bottom-(b?-1*C:C)-l(f),k=t-e.margins.bottom-l(f),S=n.color&&!o?n.color:c(n.y),A=S;e.props.enableGradient&&(S=(null===(r=n.gradient)||void 0===r?void 0:r[0])||Zs(i,0,null===(a=e.props.theme)||void 0===a?void 0:a.isInverted)[0],A=(null===(h=n.gradient)||void 0===h?void 0:h[1])||Zs(i,0,null===(d=e.props.theme)||void 0===d?void 0:d.isInverted)[1],o&&(S=Zs(0,0,null===(v=e.props.theme)||void 0===v?void 0:v.isInverted)[0],A=Zs(0,0,null===(p=e.props.theme)||void 0===p?void 0:p.isInverted)[1]),e._points[i].color=S);var L=g("VBC_Gradient")+"_".concat(i,"_").concat(S);return u.createElement("g",{key:n.x instanceof Date?n.x.getTime():n.x},e.props.enableGradient&&u.createElement("defs",null,u.createElement("linearGradient",{id:L,x1:"0%",y1:"100%",x2:"0%",y2:"0%"},u.createElement("stop",{offset:"0",stopColor:S}),u.createElement("stop",{offset:"100%",stopColor:A}))),u.createElement("rect",{id:g("_VBC_bar_"),x:w,className:e._classNames.opacityChangeOnHover,y:b?k:M,width:e._barWidth,"data-is-focusable":!e.props.hideTooltip&&m,height:C,ref:function(t){e._refCallback(t,n.legend)},onClick:n.onClick,onMouseOver:e._onBarHover.bind(e,n,S),"aria-label":e._getAriaLabel(n),role:"img",onMouseLeave:e._onBarLeave,onFocus:e._onBarFocus.bind(e,n,i,S),onBlur:e._onBarLeave,fill:e.props.enableGradient?"url(#".concat(L,")"):S,rx:e.props.roundCorners?3:0}),e._renderBarLabel(w,M,n.y,n.legend,b))}));if(!this.props.showXAxisLablesTooltip)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}if(!this.props.wrapXAxisLables&&this.props.showXAxisLablesTooltip){var d=ls(i).call(s);try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}var v={tooltipCls:this._classNames.tooltip,id:this._tooltipId,xAxis:d};d&&xs(v)}return h},n.prototype._onLegendHover=function(t){this.setState({activeLegend:t})},n.prototype._onLegendLeave=function(){this.setState({activeLegend:void 0})},n.prototype._onLegendSelectionChange=function(t,n,i){var e,r;(null===(e=this.props.legendProps)||void 0===e?void 0:e.canSelectMultipleLegends)?this.setState({selectedLegends:t}):this.setState({selectedLegends:t.slice(-1)}),(null===(r=this.props.legendProps)||void 0===r?void 0:r.onChange)&&this.props.legendProps.onChange(t,n,i)},n.prototype._getHighlightedLegend=function(){return this.state.selectedLegends.length>0?this.state.selectedLegends:this.state.activeLegend?[this.state.activeLegend]:[]},n.prototype._renderBarLabel=function(t,n,i,e,r){return this.props.hideLabels||this._barWidth<16||!this._legendHighlighted(e)&&!this._noLegendHighlighted()?null:u.createElement("text",{x:t+this._barWidth/2,y:r?n+12:n-6,textAnchor:"middle",className:this._classNames.barLabel,"aria-hidden":!0},Bs(i))},n.prototype._isChartEmpty=function(){return 0===this._points.length||this._points.every((function(t){return 0===t.y}))&&!this._isHavingLine},n.defaultProps={maxBarWidth:24,useUTC:!0},n}(u.Component),Wh=(0,r.I)(Ih,(function(t){var n=t.shouldHighlight,i=t.theme;return{opacityChangeOnHover:{opacity:n?"":"0.1"},xAxisTicks:[],yAxisTicks:[{transform:"scaleX(-1)"}],yAxisDomain:[{transform:"scaleX(-1)"}],tooltip:(0,o.Cl)((0,o.Cl)({},i.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:i.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"}),barLabel:{fontSize:$t.s.small,fontWeight:$t.BO.semibold,fill:i.palette.neutralPrimary}}})),zh=(0,a.Z)();!function(t){t.show="visibility",t.hide="hidden"}(Hh||(Hh={}));var jh=function(t){function n(n){var i,e=t.call(this,n)||this;return e._isRtl=(0,s.jI)(),e._toFocusWholeStack=function(t){var n=e.props.isCalloutForStack,i=void 0!==n&&n;return t?1!==e._getHighlightedLegend().length:i},e._getDomainNRangeValues=function(t,n,i,e,r,o,u,a,s){return o===os.NumericAxis?function(t,n,i,e,r){var o=vi(t,(function(t){return t.x})),u=pi(t,(function(t){return t.x})),a=n.left,s=i-n.right;return e?{dStartValue:u,dEndValue:o,rStartValue:a,rEndValue:s}:{dStartValue:o,dEndValue:u,rStartValue:a,rEndValue:s}}(t,n,i,r):o===os.DateAxis?ks(t,n,i,r,a,e):Ms(n,i,r)},e._getFormattedLineData=function(t){var n=[],i={};return t.forEach((function(t,i){t.lineData&&t.lineData.forEach((function(e){n.push((0,o.Cl)((0,o.Cl)({},e),{index:i,xItem:t}))}))})),n.forEach((function(t){i[t.legend]?i[t.legend].push(t):i[t.legend]=[t]})),i},e._getLineLegends=function(t){var n=e._lineObject,i=[];return Object.keys(n).forEach((function(t){i.push({title:t,color:n[t][0].color})})),i},e._createLines=function(t,n,i,r,a){var s,l=e._getFormattedLineData(e.props.data),c=[],f=[],h=[],d=e.props.theme,v=(null===(s=e.props.lineOptions)||void 0===s?void 0:s.lineBorderWidth)?Number.parseFloat(e.props.lineOptions.lineBorderWidth.toString()):0,p=e._xAxisType!==os.StringAxis?0:t.bandwidth()/2;return Object.keys(l).forEach((function(i,r){for(var s=e._isLegendHighlighted(i)||e._noLegendHighlighted(),h=1;h<l[i].length;h++){var g=t(l[i][h-1].xItem.xAxisPoint),m=l[i][h-1].useSecondaryYScale&&l[i][h].useSecondaryYScale&&a,y=m?a(l[i][h-1].y):n(l[i][h-1].y),b=t(l[i][h].xItem.xAxisPoint),x=m?a(l[i][h].y):n(l[i][h].y);v>0&&f.push(u.createElement("line",{key:"".concat(r,"-").concat(h,"-BorderLine"),x1:g,y1:y,x2:b,y2:x,opacity:s?1:.1,strokeWidth:3+2*v,fill:"transparent",strokeLinecap:"round",stroke:d.semanticColors.bodyBackground,transform:"translate(".concat(p,", 0)")})),c.push(u.createElement("line",(0,o.Cl)({key:"".concat(r,"-").concat(h,"-line"),x1:g,y1:y,x2:b,y2:x,opacity:s?1:.1,strokeWidth:3,strokeLinecap:"round",stroke:l[i][h].color,transform:"translate(".concat(p,", 0)")},e._isLegendHighlighted(i)&&{onMouseOver:e._lineHover.bind(e,l[i][h-1]),onMouseLeave:e._lineHoverOut})))}})),Object.keys(l).forEach((function(i,r){l[i].forEach((function(s,l){var c={refElement:null};h.push(u.createElement("circle",(0,o.Cl)({key:"".concat(r,"-").concat(l,"-dot"),cx:t(s.xItem.xAxisPoint),cy:s.useSecondaryYScale&&a?a(s.y):n(s.y),onMouseOver:e._isLegendHighlighted(i)?e._lineHover.bind(e,s):e._onStackHover.bind(e,s.xItem)},e._isLegendHighlighted(i)&&{onMouseLeave:e._lineHoverOut},{r:e._getCircleVisibilityAndRadius(s.xItem.xAxisPoint,s.legend).radius,stroke:s.color,fill:e.props.theme.semanticColors.bodyBackground,strokeWidth:3,visibility:e._getCircleVisibilityAndRadius(s.xItem.xAxisPoint,s.legend).visibility,transform:"translate(".concat(p,", 0)"),"data-is-focusable":e._isLegendHighlighted(i),ref:function(t){return c.refElement=t},onFocus:e._lineFocus.bind(e,s,c),onBlur:e._lineHoverOut})))}))})),u.createElement(u.Fragment,null,f,c,h)},e._getCircleVisibilityAndRadius=function(t,n){var i=e.state.activeXAxisDataPoint;return e._noLegendHighlighted()?{visibility:i===t?Hh.show:Hh.hide,radius:8}:t===i&&e._isLegendHighlighted(n)?{visibility:Hh.show,radius:8}:e._isLegendHighlighted(n)?{visibility:Hh.show,radius:.3}:{visibility:Hh.hide,radius:0}},e._getMargins=function(t){e.margins=t},e._getCustomizedCallout=function(){var t=e.props.data.some((function(t){return t.lineData&&t.lineData.length>0}));return e.props.onRenderCalloutPerStack?e.props.onRenderCalloutPerStack(e.state.stackCalloutProps):e.props.onRenderCalloutPerDataPoint&&!t?e.props.onRenderCalloutPerDataPoint(e.state.dataPointCalloutProps,e._renderCallout):null},e._lineHover=function(t,n){n.persist(),e._lineHoverFocus(t,n)},e._lineHoverOut=function(){e.setState({refSelected:null,isCalloutVisible:!1,xCalloutValue:"",yCalloutValue:"",activeXAxisDataPoint:"",color:""})},e._lineFocus=function(t,n){n.refElement&&e._lineHoverFocus(t,n.refElement)},e._lineHoverFocus=function(t,n){e.setState({refSelected:n,isCalloutVisible:!0,xCalloutValue:"".concat(t.xItem.xAxisPoint),yCalloutValue:"".concat(t.yAxisCalloutData||t.data||t.y),activeXAxisDataPoint:t.xItem.xAxisPoint,color:t.color})},e._handleMouseOut=function(){},e._handleChartMouseLeave=function(){e._calloutAnchorPoint=null,e.setState({isCalloutVisible:!1,activeXAxisDataPoint:""})},e._createBar=function(t,n,i,r){var a=e.props,s=a.barCornerRadius,l=void 0===s?0:s,c=a.barMinimumHeight,f=void 0===c?0:c,h=e.props.data.some((function(t){return t.lineData&&t.lineData.length>0})),d=e._toFocusWholeStack(h);e._xAxisType===os.StringAxis&&(e._barWidth=Fs(e.props.barWidth,e.props.maxBarWidth,t.bandwidth()));var v=e._points.map((function(r,a){var s=i-e.margins.bottom,c=t((e._xAxisType===os.NumericAxis||(e._xAxisType,os.DateAxis),r.xAxisPoint)),h=e._xAxisType!==os.StringAxis?-e._barWidth/2:(t.bandwidth()-e._barWidth)/2,v=0,p=r.chartData.filter((function(t){return t.data>0}));if(p.length){var m=e._getBarGapAndScale(p,n),y=m.gapHeight,b=m.heightValueScale;if(!(b<0)){var x=p.map((function(t,n){var i,m,x,C,w=t.color?t.color:e._colors[n],M=w;e.props.enableGradient&&(w=(null===(i=t.gradient)||void 0===i?void 0:i[0])||Zs(n,0,null===(m=e.props.theme)||void 0===m?void 0:m.isInverted)[0],M=(null===(x=t.gradient)||void 0===x?void 0:x[1])||Zs(n,0,null===(C=e.props.theme)||void 0===C?void 0:C.isInverted)[1],r.chartData[n].color=w);var k={},S=!(!e._isLegendHighlighted(t.legend)&&!e._noLegendHighlighted());e._classNames=zh(e.props.styles,{theme:e.props.theme,shouldHighlight:S,href:e.props.href});var A=!d&&{"data-is-focusable":!e.props.hideTooltip&&S,"aria-label":e._getAriaLabel(r,t),onMouseOver:e._onRectHover.bind(e,r.xAxisPoint,t,w),onMouseMove:e._onRectHover.bind(e,r.xAxisPoint,t,w),onMouseLeave:e._handleMouseOut,onFocus:e._onRectFocus.bind(e,t,r.xAxisPoint,w,k),onBlur:e._handleMouseOut,onClick:e._onClick.bind(e,t),role:"img"},L=b*t.data;L<Math.max(Math.ceil(b*e._yMax/100),f)&&(L=Math.max(Math.ceil(b*e._yMax/100),f)),s=s-L-(n?y:0),v+=t.data;var V=g("VSBC_Gradient")+"_".concat(a,"_").concat(n);return l&&L>l&&n===p.length-1?u.createElement(u.Fragment,{key:n+a+"".concat(d)},e.props.enableGradient&&u.createElement("defs",null,u.createElement("linearGradient",{id:V,x1:"0%",y1:"100%",x2:"0%",y2:"0%"},u.createElement("stop",{offset:"0",stopColor:w}),u.createElement("stop",{offset:"100%",stopColor:M}))),u.createElement("path",(0,o.Cl)({className:e._classNames.opacityChangeOnHover,d:"\n M ".concat(c," ").concat(s+l,"\n a ").concat(l," ").concat(l," 0 0 1 ").concat(l," ").concat(-l,"\n h ").concat(e._barWidth-2*l,"\n a ").concat(l," ").concat(l," 0 0 1 ").concat(l," ").concat(l,"\n v ").concat(L-l,"\n h ").concat(-e._barWidth,"\n z\n "),fill:e.props.enableGradient?"url(#".concat(V,")"):w,rx:e.props.roundCorners?3:0,ref:function(t){return k.refElement=t},transform:"translate(".concat(h,", 0)")},A))):L<0?u.createElement(u.Fragment,{key:n+a}," "):u.createElement(u.Fragment,{key:n+a},e.props.enableGradient&&u.createElement("defs",null,u.createElement("linearGradient",{id:V,x1:"0%",y1:"100%",x2:"0%",y2:"0%"},u.createElement("stop",{offset:"0",stopColor:w}),u.createElement("stop",{offset:"100%",stopColor:M}))),u.createElement("rect",(0,o.Cl)({className:e._classNames.opacityChangeOnHover,x:c,y:s,width:e._barWidth,height:L,fill:e.props.enableGradient?"url(#".concat(V,")"):w,rx:e.props.roundCorners?3:0,ref:function(t){return k.refElement=t}},A,{transform:"translate(".concat(h,", 0)")})))})),C={},w=d&&{"data-is-focusable":!e.props.hideTooltip,"aria-label":e._getAriaLabel(r),onMouseOver:e._onStackHover.bind(e,r),onMouseMove:e._onStackHover.bind(e,r),onMouseLeave:e._handleMouseOut,onFocus:e._onStackFocus.bind(e,r,C),onBlur:e._handleMouseOut,onClick:e._onClick.bind(e,r),role:"img"},M=!1,k=0;return e.props.hideLabels||(e._noLegendHighlighted()?(M=!0,k=v):p.forEach((function(t){e._isLegendHighlighted(t.legend)&&(M=!0,k+=t.data)}))),u.createElement("g",{key:a+"".concat(d)},u.createElement("g",(0,o.Cl)({id:"".concat(a,"-singleBar"),ref:function(t){return C.refElement=t}},w),x),!e.props.hideLabels&&e._barWidth>=16&&M&&u.createElement("text",{x:c+e._barWidth/2,y:s-6,textAnchor:"middle",className:e._classNames.barLabel,"aria-label":"Total: ".concat(k),role:"img",transform:"translate(".concat(h,", 0)")},Bs(k)))}}}));if(!e.props.showXAxisLablesTooltip)try{document.getElementById(e._tooltipId)&&document.getElementById(e._tooltipId).remove()}catch(t){}if(!e.props.wrapXAxisLables&&e.props.showXAxisLablesTooltip){var p=ls(r).call(t);try{document.getElementById(e._tooltipId)&&document.getElementById(e._tooltipId).remove()}catch(t){}var m={tooltipCls:e._classNames.tooltip,id:e._tooltipId,xAxis:p};p&&xs(m)}return v.filter((function(t){return!!t}))},e._getScales=function(t,n){var i=e._yMax,r=Ue().domain([0,i]).range([0,t-e.margins.bottom-e.margins.top]);if(e._xAxisType===os.NumericAxis){var o=pi(e._dataset,(function(t){return t.x})),u=vi(e._dataset,(function(t){return t.x}));return{xBarScale:Ue().domain(e._isRtl?[o,u]:[u,o]).nice().range([e.margins.left+e._domainMargin,n-e.margins.right-e._domainMargin]),yBarScale:r}}if(e._xAxisType===os.DateAxis){var a=vi(e._dataset,(function(t){return t.x})),s=pi(e._dataset,(function(t){return t.x})),l=e.props.useUTC?Yu():ju();return l.domain(e._isRtl?[s,a]:[a,s]).range([e.margins.left+e._domainMargin,n-e.margins.right-e._domainMargin]),{xBarScale:l,yBarScale:r}}return{xBarScale:Zu().domain(e._xAxisLabels).range(e._isRtl?[n-e.margins.right-e._domainMargin,e.margins.left+e._domainMargin]:[e.margins.left+e._domainMargin,n-e.margins.right-e._domainMargin]).paddingInner(e._xAxisInnerPadding).paddingOuter(e._xAxisOuterPadding),yBarScale:r}},e._getGraphData=function(t,n,i,r,o){var u=e._getScales(i,r),a=u.xBarScale,s=u.yBarScale;return e._bars=e._createBar(a,s,i,o)},e._closeCallout=function(){e.setState({isCalloutVisible:!1})},e._getAxisData=function(t){if(t&&t.yAxisDomainValues.length){var n=t.yAxisDomainValues;e._yMax=Math.max(n[n.length-1],e.props.yMaxValue||0)}},e._isLegendHighlighted=function(t){return e._getHighlightedLegend().includes(t)},e._noLegendHighlighted=function(){return 0===e._getHighlightedLegend().length},e._getAriaLabel=function(t,n){var i,e,r;if(!n){var o=t.xAxisCalloutData||(t.xAxisPoint instanceof Date?Rs(t.xAxisPoint):t.xAxisPoint),u=t.chartData.map((function(t){var n=t.legend,i=t.yAxisCalloutData||t.data;return"".concat(n,", ").concat(i,".")})).join(" "),a=null===(i=t.lineData)||void 0===i?void 0:i.map((function(t){var n=t.legend,i=t.yAxisCalloutData||t.data||t.y;return"".concat(n,", ").concat(i,".")})).join(" ");return(null===(e=t.stackCallOutAccessibilityData)||void 0===e?void 0:e.ariaLabel)||"".concat(o,". ").concat(u)+(a?" ".concat(a):"")}var s=t.xAxisCalloutData||n.xAxisCalloutData||(t.xAxisPoint instanceof Date?Rs(t.xAxisPoint):t.xAxisPoint),l=n.legend,c=n.yAxisCalloutData||n.data;return(null===(r=n.callOutAccessibilityData)||void 0===r?void 0:r.ariaLabel)||"".concat(s,". ").concat(l,", ").concat(c,".")},e._getDomainMargins=function(t){var n;e._domainMargin=8;var i=t-(e.margins.left+8)-(e.margins.right+8),r=e._xAxisInnerPadding/(1-e._xAxisInnerPadding);if(e._xAxisType===os.StringAxis){if(Hs(e.props.xAxisOuterPadding,e.props.xAxisPadding))e._domainMargin=0;else if("auto"!==e.props.barWidth)e._barWidth=Fs(e.props.barWidth,e.props.maxBarWidth),i>=(u=(e._xAxisLabels.length+(e._xAxisLabels.length-1)*r)*e._barWidth)&&(e._domainMargin=8+(i-u)/2);else if("plotly"===e.props.mode&&e._xAxisLabels.length>1){var u,a=i/(e._xAxisLabels.length+(e._xAxisLabels.length-1)*r),s=Fs(e.props.barWidth,e.props.maxBarWidth,a),l=(i-(u=(e._xAxisLabels.length+(e._xAxisLabels.length-1)*r)*s))/2,c=bs(e._xAxisLabels)+20,f=(i-(u=(e._xAxisLabels.length-e._xAxisInnerPadding)*c))/2;e._domainMargin=8+Math.max(0,Math.min(l,f))}}else{var h=(null===(n=e.props.data)||void 0===n?void 0:n.map((function(t){return t.xAxisPoint})))||[];e._barWidth=Fs(e.props.barWidth,e.props.maxBarWidth,_h(h,i)),e._domainMargin=8+e._barWidth/2}return(0,o.Cl)((0,o.Cl)({},e.margins),{left:e.margins.left+e._domainMargin,right:e.margins.right+e._domainMargin})},e._getChartTitle=function(){var t=e.props,n=t.chartTitle,i=t.data,r=Object.keys(e._lineObject).length;return(n?"".concat(n,". "):"")+"Vertical bar chart with ".concat((null==i?void 0:i.length)||0," stacked bars")+(r>0?" and ".concat(r," lines"):"")+". "},Qs(e),e.state={isCalloutVisible:!1,selectedLegends:(null===(i=n.legendProps)||void 0===i?void 0:i.selectedLegends)||[],activeLegend:void 0,refSelected:null,dataForHoverCard:0,color:"",hoverXValue:"",YValueHover:[],xCalloutValue:"",yCalloutValue:"",activeXAxisDataPoint:"",calloutLegend:""},In("VERTICAL STACKED BAR CHART",n,{colors:"IVSChartDataPoint.color",chartLabel:"use your own title for chart"}),e._handleMouseOut=e._handleMouseOut.bind(e),e._calloutId=g("callout"),e._tooltipId=g("VSBCTooltipId_"),e._isChartEmpty()||(e._adjustProps(),e._dataset=e._createDataSetLayer()),e._createLegendsForLine=(0,dn.J9)((function(t){return e._getLineLegends(t)})),e._emptyChartId=g("_VSBC_empty"),e._domainMargin=8,e._cartesianChartRef=u.createRef(),e}return(0,o.C6)(n,t),n.prototype.componentDidUpdate=function(t){var n,i,e;Ws(null===(n=t.legendProps)||void 0===n?void 0:n.selectedLegends,null===(i=this.props.legendProps)||void 0===i?void 0:i.selectedLegends)||this.setState({selectedLegends:(null===(e=this.props.legendProps)||void 0===e?void 0:e.selectedLegends)||[]}),t.height===this.props.height&&t.width===this.props.width&&t.data===this.props.data||(this._adjustProps(),this._dataset=this._createDataSetLayer())},n.prototype.render=function(){var t=this;if(!this._isChartEmpty()){this._adjustProps();var n=this.props.data.some((function(t){return t.lineData&&t.lineData.length>0})),i=this._toFocusWholeStack(n),e=this.props.isCalloutForStack,r=void 0!==e&&e;this._dataset=this._createDataSetLayer();var a=this._getLegendData(this._points,this.props.theme.palette,this._createLegendsForLine(this.props.data));this._classNames=zh(this.props.styles,{theme:this.props.theme,href:this.props.href});var s=(0,o.Cl)((0,o.Cl)({isCalloutVisible:this.state.isCalloutVisible,directionalHint:x.topAutoEdge,id:"toolTip".concat(this._calloutId),target:this.state.refSelected,isBeakVisible:!1,gapSpace:15,color:this.state.color,legend:this.state.calloutLegend,XValue:this.state.xCalloutValue,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard,YValueHover:this.state.YValueHover,hoverXValue:this.state.hoverXValue,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0},this.props.calloutProps),Os(this.state.callOutAccessibilityData)),l={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return u.createElement(Hf,(0,o.Cl)({},this.props,{chartTitle:this._getChartTitle(),points:this._dataset,chartType:rs.VerticalStackedBarChart,xAxisType:this._xAxisType,calloutProps:s,createYAxis:vs,tickParams:l,legendBars:a,getMinMaxOfYAxis:As,datasetForXAxisDomain:this._xAxisLabels,isCalloutForStack:i,getDomainNRangeValues:this._getDomainNRangeValues,createStringYAxis:gs,barwidth:this._barWidth,focusZoneDirection:r||n?zs.horizontal:zs.vertical,getmargins:this._getMargins,getGraphData:this._getGraphData,getAxisData:this._getAxisData,customizedCallout:this._getCustomizedCallout(),onChartMouseLeave:this._handleChartMouseLeave,getDomainMargins:this._getDomainMargins},this._xAxisType===os.StringAxis&&{xAxisInnerPadding:this._xAxisInnerPadding,xAxisOuterPadding:this._xAxisOuterPadding},{ref:this._cartesianChartRef,children:function(i){return u.createElement(u.Fragment,null,u.createElement("g",null,t._bars),u.createElement("g",null,n&&t._createLines(i.xScale,i.yScale,i.containerHeight,i.containerWidth,i.yScaleSecondary)))}}))}return u.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"})},Object.defineProperty(n.prototype,"chartContainer",{get:function(){var t;return(null===(t=this._cartesianChartRef.current)||void 0===t?void 0:t.chartContainer)||null},enumerable:!1,configurable:!0}),n.prototype._adjustProps=function(){this._points=this.props.data||[],this._barWidth=Fs(this.props.barWidth,this.props.maxBarWidth);var t=this.props.theme.palette;this._colors=this.props.colors||[t.blueLight,t.blue,t.blueMid,t.red,t.black],this._xAxisType=Ts(this.props.data[0].xAxisPoint,!0),this._lineObject=this._getFormattedLineData(this.props.data),this._xAxisInnerPadding=_s(this.props.xAxisInnerPadding,this.props.xAxisPadding,2/3),this._xAxisOuterPadding=_s(this.props.xAxisOuterPadding,this.props.xAxisPadding,0)},n.prototype._createDataSetLayer=function(){var t=[],n=this._points.map((function(n){var i=0;return n.chartData.forEach((function(t){i+=t.data})),t.push(n.xAxisPoint),{x:n.xAxisPoint,y:i}}));return this._xAxisLabels=t,n},n.prototype._renderCallout=function(t){return t?u.createElement(js.ChartHoverCard,{XValue:t.xAxisCalloutData,Legend:t.legend,YValue:t.yAxisCalloutData,color:t.color,culture:this.props.culture}):null},n.prototype._onLegendHover=function(t){this.setState({activeLegend:t})},n.prototype._onLegendLeave=function(){this.setState({activeLegend:void 0})},n.prototype._getLegendData=function(t,n,i){var e=this;if(this.props.hideLegend)return u.createElement(u.Fragment,null);var r=[n.blueLight,n.blue,n.blueMid,n.red,n.black],a=[],s=this.props,l=s.allowHoverOnLegend,c=void 0===l||l,f=s.theme;t.forEach((function(t){t.chartData.forEach((function(n){var i,o,u=n.color?n.color:r[Math.floor(4*Math.random()+1)];if(e.props.enableGradient){var s=Math.max((null===(i=t.chartData)||void 0===i?void 0:i.findIndex((function(t){return t.legend===n.legend})))||0,0);u=(null===(o=n.gradient)||void 0===o?void 0:o[0])||Zs(s,0,null==f?void 0:f.isInverted)[0]}if(!(a.filter((function(t){return t.title===n.legend&&t.color===u})).length>0)){var l={title:n.legend,color:u,hoverAction:c?function(){e._handleChartMouseLeave(),e._onLegendHover(n.legend)}:void 0,onMouseOutAction:c?function(){return e._onLegendLeave()}:void 0};a.push(l)}}))}));var h=[];i&&i.length>0&&i.forEach((function(t){var n={title:t.title,color:t.color,isLineLegendInBarChart:!0,hoverAction:c?function(){e._handleChartMouseLeave(),e._onLegendHover(t.title)}:void 0,onMouseOutAction:c?function(){return e._onLegendLeave()}:void 0};h.push(n)}));var d=h.concat(a);return u.createElement(Lc,(0,o.Cl)({legends:d,overflowProps:this.props.legendsOverflowProps,enabledWrapLines:this.props.enabledLegendsWrapLines,focusZonePropsInHoverCard:this.props.focusZonePropsForLegendsInHoverCard,overflowText:this.props.legendsOverflowText},this.props.legendProps,{onChange:this._onLegendSelectionChange.bind(this)}))},n.prototype._onLegendSelectionChange=function(t,n,i){var e,r;(null===(e=this.props.legendProps)||void 0===e?void 0:e.canSelectMultipleLegends)?this.setState({selectedLegends:t}):this.setState({selectedLegends:t.slice(-1)}),(null===(r=this.props.legendProps)||void 0===r?void 0:r.onChange)&&this.props.legendProps.onChange(t,n,i)},n.prototype._getHighlightedLegend=function(){return this.state.selectedLegends.length>0?this.state.selectedLegends:this.state.activeLegend?[this.state.activeLegend]:[]},n.prototype._onRectHover=function(t,n,i,e){e.persist(),this._onRectFocusHover(t,n,i,e)},n.prototype._onRectFocusHover=function(t,n,i,e){var r,o;(null===(r=this._calloutAnchorPoint)||void 0===r?void 0:r.chartDataPoint)===n&&(null===(o=this._calloutAnchorPoint)||void 0===o?void 0:o.xAxisDataPoint)===t||(this._calloutAnchorPoint={chartDataPoint:n,xAxisDataPoint:t},this.setState({refSelected:e,isCalloutVisible:this._noLegendHighlighted()||this._isLegendHighlighted(n.legend),calloutLegend:n.legend,dataForHoverCard:n.data,color:i,xCalloutValue:n.xAxisCalloutData?n.xAxisCalloutData:t,yCalloutValue:n.yAxisCalloutData,dataPointCalloutProps:n,callOutAccessibilityData:n.callOutAccessibilityData}))},n.prototype._onStackHover=function(t,n){n.persist(),this._onStackHoverFocus(t,n)},n.prototype._onStackHoverFocus=function(t,n){var i,e,r,u=this;this._noLegendHighlighted()||(t=(0,o.Cl)((0,o.Cl)({},t),{chartData:t.chartData.filter((function(t){return u._isLegendHighlighted(t.legend)})),lineData:null===(i=t.lineData)||void 0===i?void 0:i.filter((function(t){return u._isLegendHighlighted(t.legend)}))}));var a=t.lineData,s=void 0!==a&&a.length>0;s&&a.forEach((function(t){t.data=t.data||t.y,t.shouldDrawBorderBottom=!0})),this.setState({refSelected:n,isCalloutVisible:t.chartData.length>0||(null!==(r=null===(e=t.lineData)||void 0===e?void 0:e.length)&&void 0!==r?r:0)>0,YValueHover:s?(0,o.fX)((0,o.fX)([],a.sort((function(t,n){return t.data<n.data?1:-1})),!0),t.chartData.slice().reverse(),!0):t.chartData.slice().reverse(),hoverXValue:t.xAxisPoint instanceof Date?Rs(t.xAxisPoint,this.props.useUTC):t.xAxisPoint,stackCalloutProps:t,activeXAxisDataPoint:t.xAxisPoint,callOutAccessibilityData:t.stackCallOutAccessibilityData})},n.prototype._onRectFocus=function(t,n,i,e){e.refElement&&this._onRectFocusHover(n,t,i,e.refElement)},n.prototype._onStackFocus=function(t,n){n.refElement&&this._onStackHoverFocus(t,n.refElement)},n.prototype._onClick=function(t,n){var i,e;null===(e=(i=this.props).onBarClick)||void 0===e||e.call(i,n,t),this.props.href&&(window.location.href=this.props.href)},n.prototype._getBarGapAndScale=function(t,n,i){var e=this.props.barGapMax,r=void 0===e?0:e,o=t.reduce((function(t,n){return t+n.data}),0),u=null!=i?i:n(o),a=r&&t.length-1,s=a&&Math.max(1,Math.min(r,.2*u/a));return{gapHeight:s,heightValueScale:(u-s*a)/o}},n.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.length>0&&0===this.props.data.filter((function(t){return 0===t.chartData.length})).length)},n.defaultProps={maxBarWidth:24,useUTC:!0},n}(u.Component),Yh=(0,r.I)(jh,(function(t){var n=t.shouldHighlight,i=t.href,e=t.theme;return{opacityChangeOnHover:{opacity:n?"":"0.1",cursor:i?"pointer":"default"},tooltip:(0,o.Cl)((0,o.Cl)({},e.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:e.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"}),barLabel:{fontSize:$t.s.small,fontWeight:$t.BO.semibold,fill:e.palette.neutralPrimary}}})),$h=(0,a.Z)(),Xh=.1/.9,Gh=function(t){function n(n){var i,e=t.call(this,n)||this;return e._isRtl=(0,s.jI)(),e._getMinMaxOfYAxis=function(){return{startValue:0,endValue:0}},e._getDomainNRangeValues=function(t,n,i,e,r,o,u,a,s){return o===os.NumericAxis||o===os.DateAxis?{dStartValue:0,dEndValue:0,rStartValue:0,rEndValue:0}:Ms(n,i,r)},e._getGraphData=function(t,n,i,r,o){var u=e._createX0Scale(r);e._barWidth=Fs(e.props.barwidth,e.props.maxBarWidth,u.bandwidth()/(e._keys.length+(e._keys.length-1)*Xh)),e._groupWidth=(e._keys.length+(e._keys.length-1)*Xh)*e._barWidth;var a=e._createX1Scale(),s=[];e._datasetForBars.forEach((function(t){s.push(e._buildGraph(t,u,a,i,o))})),e._groupedVerticalBarGraph=s},e._getMargins=function(t){return e.margins=t},e._createDataSetOfGVBC=function(t){var n=[],i=t.map((function(t){return t.name}));t[0].series.forEach((function(t){n.push(t.key)}));var r=e._createDataset(t);return{keys:n,xAxisLabels:i,datasetForBars:r}},e._getCustomizedCallout=function(){return e.props.onRenderCalloutPerDataPoint?e.props.onRenderCalloutPerDataPoint(e.state.dataPointCalloutProps):null},e._getOpacity=function(t){return e._legendHighlighted(t)||e._noLegendHighlighted()?"":"0.1"},e._onBarHover=function(t,n,i){i.persist(),e._calloutAnchorPoint!==t&&(e._calloutAnchorPoint=t,e.setState({refSelected:i,isCalloutVisible:e._noLegendHighlighted()||e._legendHighlighted(t.legend),calloutLegend:t.legend,dataForHoverCard:t.data,color:t.color,xCalloutValue:t.xAxisCalloutData,yCalloutValue:t.yAxisCalloutData,dataPointCalloutProps:t,callOutAccessibilityData:e.props.isCalloutForStack?n.stackCallOutAccessibilityData:t.callOutAccessibilityData,YValueHover:n.groupSeries,hoverXValue:t.xAxisCalloutData}))},e._onBarLeave=function(){},e._handleChartMouseLeave=function(){e._calloutAnchorPoint=null,e.setState({isCalloutVisible:!1})},e._onBarFocus=function(t,n,i){e._refArray.forEach((function(r,o){r.index===t.legend&&i===o&&e.setState({refSelected:r.refElement,isCalloutVisible:e._noLegendHighlighted()||e._legendHighlighted(t.legend),calloutLegend:t.legend,dataForHoverCard:t.data,color:t.color,xCalloutValue:t.xAxisCalloutData,yCalloutValue:t.yAxisCalloutData,dataPointCalloutProps:t,callOutAccessibilityData:e.props.isCalloutForStack?n.stackCallOutAccessibilityData:t.callOutAccessibilityData,YValueHover:n.groupSeries,hoverXValue:t.xAxisCalloutData})}))},e._redirectToUrl=function(t){t&&(window.location.href=t)},e._buildGraph=function(t,n,i,r,o){var a=[],s=[],l=Ue().domain([0,e._yMax]).range([0,r-e.margins.bottom-e.margins.top]),c=Object.keys(e._datasetForBars[0]).splice(0,e._keys.length);if(c.forEach((function(n,o){var f,h,d,v,p,m=t.indexNum*c.length+o,y=t[n],b=i(n)+(i.bandwidth()-e._barWidth)/2,x=Math.max(r-e.margins.bottom-l(y.data),0),C=y.color?y.color:yf(o,0,null===(f=e.props.theme)||void 0===f?void 0:f.isInverted),w=C;e.props.enableGradient&&(C=(null===(h=y.gradient)||void 0===h?void 0:h[0])||Zs(o,0,null===(d=e.props.theme)||void 0===d?void 0:d.isInverted)[0],w=(null===(v=y.gradient)||void 0===v?void 0:v[1])||Zs(o,0,null===(p=e.props.theme)||void 0===p?void 0:p.isInverted)[1],y.color=C);var M=g("GVBC_Gradient")+"_".concat(t.indexNum,"_").concat(o);y.data&&a.push(u.createElement(u.Fragment,{key:"".concat(t.indexNum,"-").concat(o)},e.props.enableGradient&&u.createElement("defs",null,u.createElement("linearGradient",{id:M,x1:"0%",y1:"100%",x2:"0%",y2:"0%"},u.createElement("stop",{offset:"0",stopColor:C}),u.createElement("stop",{offset:"100%",stopColor:w}))),u.createElement("rect",{className:e._classNames.opacityChangeOnHover,height:Math.max(l(y.data),0),width:e._barWidth,x:b,y:x,"data-is-focusable":!e.props.hideTooltip&&(e._legendHighlighted(y.legend)||e._noLegendHighlighted()),opacity:e._getOpacity(y.legend),ref:function(t){e._refCallback(t,y.legend,m)},fill:e.props.enableGradient?"url(#".concat(M,")"):C,rx:e.props.roundCorners?3:0,onMouseOver:e._onBarHover.bind(e,y,t),onMouseMove:e._onBarHover.bind(e,y,t),onMouseOut:e._onBarLeave,onFocus:e._onBarFocus.bind(e,y,t,m),onBlur:e._onBarLeave,onClick:e.props.href?e._redirectToUrl.bind(e,e.props.href):y.onClick,"aria-label":e._getAriaLabel(y,t.xAxisPoint),role:"img"}))),y.data&&!e.props.hideLabels&&e._barWidth>=16&&(e._legendHighlighted(y.legend)||e._noLegendHighlighted())&&s.push(u.createElement("text",{key:"".concat(t.indexNum,"-").concat(o),x:b+e._barWidth/2,y:x-6,textAnchor:"middle",className:e._classNames.barLabel,"aria-hidden":!0},Bs(y.data)))})),!e.props.wrapXAxisLables&&e.props.showXAxisLablesTooltip){var f=ls(o).call(n);try{document.getElementById(e._tooltipId)&&document.getElementById(e._tooltipId).remove()}catch(t){}var h={tooltipCls:e._classNames.tooltip,id:e._tooltipId,xAxis:f};f&&xs(h)}return u.createElement("g",{key:t.indexNum,transform:"translate(".concat(n(t.xAxisPoint)+(n.bandwidth()-e._groupWidth)/2,", 0)")},a,s)},e._createDataset=function(t){var n=[],i=[];return t.forEach((function(t,r){var u={},a={},s=[];t.series.forEach((function(t,n){var i,r;e.props.enableGradient&&(t.color=(null===(i=t.gradient)||void 0===i?void 0:i[0])||Zs(n,0,null===(r=e.props.theme)||void 0===r?void 0:r.isInverted)[0]),u[t.key]=t.data,a[t.key]=(0,o.Cl)({},t),s.push(t)})),a.xAxisPoint=t.name,a.indexNum=r,a.groupSeries=s,a.stackCallOutAccessibilityData=t.stackCallOutAccessibilityData,n.push(a),i.push(u)})),e._dataset=i,n},e._createX0Scale=function(t){return Zu().domain(e._xAxisLabels).range(e._isRtl?[t-e.margins.right-e._domainMargin,e.margins.left+e._domainMargin]:[e.margins.left+e._domainMargin,t-e.margins.right-e._domainMargin]).paddingInner(e._xAxisInnerPadding).paddingOuter(e._xAxisOuterPadding)},e._createX1Scale=function(){return Zu().domain(e._keys).range(e._isRtl?[e._groupWidth,0]:[0,e._groupWidth]).paddingInner(.1)},e._closeCallout=function(){e.setState({isCalloutVisible:!1})},e._getLegendData=function(t,n){var i=t,r=[n.blueLight,n.blue,n.blueMid,n.red,n.black],a=[];return i.forEach((function(t){t.series.forEach((function(n){var i,o,u,s=n.color?n.color:r[Math.floor(4*Math.random()+1)];if(e.props.enableGradient){var l=Math.max((null===(i=t.series)||void 0===i?void 0:i.findIndex((function(t){return t.legend===n.legend})))||0,0);s=(null===(o=n.gradient)||void 0===o?void 0:o[0])||Zs(l,0,null===(u=e.props.theme)||void 0===u?void 0:u.isInverted)[0]}if(!(a.filter((function(t){return t.title===n.legend&&t.color===s})).length>0)){var c={title:n.legend,color:s,hoverAction:function(){e._handleChartMouseLeave(),e._onLegendHover(n.legend)},onMouseOutAction:function(){e._onLegendLeave()}};a.push(c)}}))})),u.createElement(Lc,(0,o.Cl)({legends:a,overflowProps:e.props.legendsOverflowProps,enabledWrapLines:e.props.enabledLegendsWrapLines,focusZonePropsInHoverCard:e.props.focusZonePropsForLegendsInHoverCard},e.props.legendProps,{onChange:e._onLegendSelectionChange.bind(e)}))},e._getAxisData=function(t){if(t&&t.yAxisDomainValues.length){var n=t.yAxisDomainValues;e._yMax=Math.max(n[n.length-1],e.props.yMaxValue||0)}},e._legendHighlighted=function(t){return e._getHighlightedLegend().includes(t)},e._noLegendHighlighted=function(){return 0===e._getHighlightedLegend().length},e._getAriaLabel=function(t,n){var i,e=t.xAxisCalloutData||n,r=t.legend,o=t.yAxisCalloutData||t.data;return(null===(i=t.callOutAccessibilityData)||void 0===i?void 0:i.ariaLabel)||"".concat(e,". ").concat(r,", ").concat(o,".")},e._getDomainMargins=function(t){e._domainMargin=8;var n=t-(e.margins.left+8)-(e.margins.right+8),i=e._xAxisInnerPadding/(1-e._xAxisInnerPadding);if(e._xAxisType===os.StringAxis)if(Hs(e.props.xAxisOuterPadding))e._domainMargin=0;else if("auto"!==e.props.barwidth){e._barWidth=Fs(e.props.barwidth,e.props.maxBarWidth);var r=(e._keys.length+(e._keys.length-1)*Xh)*e._barWidth;n>=(u=(e._xAxisLabels.length+(e._xAxisLabels.length-1)*i)*r)&&(e._domainMargin=8+(n-u)/2)}else if("plotly"===e.props.mode&&e._xAxisLabels.length>1){var u,a=n/(e._xAxisLabels.length+(e._xAxisLabels.length-1)*i)/(e._keys.length+(e._keys.length-1)*Xh),s=Fs(e.props.barwidth,e.props.maxBarWidth,a),l=(r=(e._keys.length+(e._keys.length-1)*Xh)*s,(n-(u=(e._xAxisLabels.length+(e._xAxisLabels.length-1)*i)*r))/2),c=bs(e._xAxisLabels)+20,f=(n-(u=(e._xAxisLabels.length-e._xAxisInnerPadding)*c))/2;e._domainMargin=8+Math.max(0,Math.min(l,f))}return(0,o.Cl)((0,o.Cl)({},e.margins),{left:e.margins.left+e._domainMargin,right:e.margins.right+e._domainMargin})},e._getChartTitle=function(){var t=e.props.chartTitle;return(t?"".concat(t,". "):"")+"Vertical bar chart with ".concat(e._xAxisLabels.length," groups of ").concat(e._keys.length," bars each. ")},Qs(e),e._createSet=(0,dn.J9)((function(t){return e._createDataSetOfGVBC(t)})),e.state={color:"",dataForHoverCard:0,isCalloutVisible:!1,refSelected:null,selectedLegends:(null===(i=n.legendProps)||void 0===i?void 0:i.selectedLegends)||[],xCalloutValue:"",yCalloutValue:"",YValueHover:[],hoverXValue:"",calloutLegend:"",activeLegend:""},In("GROUPED VERTICAL BAR CHART",n,{showYAxisGridLines:"Dont use this property. Lines are drawn by default",showXAxisPath:"Dont use this property. Axis line removed default.",showYAxisPath:"Dont use this property. No need to display Y axis path. Handling default",showXAxisGridLines:"Dont use this property. Handling with default value.",legendColor:"Dont use this property. colour will pick from given data."}),e._refArray=[],e._calloutId=g("callout"),e._tooltipId=g("GVBCTooltipId_"),e._emptyChartId=g("_GVBC_empty"),e._domainMargin=8,e._cartesianChartRef=u.createRef(),e}return(0,o.C6)(n,t),n.prototype.componentDidUpdate=function(t){var n,i,e;Ws(null===(n=t.legendProps)||void 0===n?void 0:n.selectedLegends,null===(i=this.props.legendProps)||void 0===i?void 0:i.selectedLegends)||this.setState({selectedLegends:(null===(e=this.props.legendProps)||void 0===e?void 0:e.selectedLegends)||[]})},n.prototype.render=function(){var t=this,n=this.props.data,i=this._createSet(n),e=i.keys,r=i.xAxisLabels,a=i.datasetForBars;this._keys=e,this._xAxisLabels=r,this._datasetForBars=a,this._xAxisType=Ts(n[0].name,!0);var s=this._getLegendData(n,this.props.theme.palette);this._adjustProps();var l=pi(this._dataset,(function(n){return pi(t._keys,(function(t){return n[t]}))}));this._yMax=Math.max(l,this.props.yMaxValue||0),this._classNames=$h(this.props.styles,{theme:this.props.theme,href:this.props.href});var c=(0,o.Cl)((0,o.Cl)((0,o.Cl)({target:this.state.refSelected,isCalloutVisible:this.state.isCalloutVisible,directionalHint:x.topAutoEdge,id:"toolTip".concat(this._calloutId),gapSpace:15,isBeakVisible:!1,setInitialFocus:!0,color:this.state.color,Legend:this.state.calloutLegend,XValue:this.state.xCalloutValue,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard,YValueHover:this.state.YValueHover,hoverXValue:this.state.hoverXValue,onDismiss:this._closeCallout},this.props.calloutProps),{preventDismissOnLostFocus:!0}),Os(this.state.callOutAccessibilityData,"text",!1)),f={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return this._isChartEmpty()?u.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):u.createElement(Hf,(0,o.Cl)({},this.props,{chartTitle:this._getChartTitle(),points:this._datasetForBars,chartType:rs.GroupedVerticalBarChart,calloutProps:c,legendBars:s,xAxisType:this._xAxisType,createYAxis:vs,datasetForXAxisDomain:this._xAxisLabels,tickParams:f,getDomainNRangeValues:this._getDomainNRangeValues,getMinMaxOfYAxis:this._getMinMaxOfYAxis,createStringYAxis:gs,tickPadding:this.props.tickPadding||5,maxOfYVal:this._yMax,svgFocusZoneProps:{direction:zs.horizontal},customizedCallout:this._getCustomizedCallout(),getmargins:this._getMargins,getGraphData:this._getGraphData,getAxisData:this._getAxisData,onChartMouseLeave:this._handleChartMouseLeave,getDomainMargins:this._getDomainMargins},this._xAxisType===os.StringAxis&&{xAxisInnerPadding:this._xAxisInnerPadding,xAxisOuterPadding:this._xAxisOuterPadding},{barwidth:this._barWidth,ref:this._cartesianChartRef,children:function(){return u.createElement("g",null,t._groupedVerticalBarGraph)}}))},Object.defineProperty(n.prototype,"chartContainer",{get:function(){var t;return(null===(t=this._cartesianChartRef.current)||void 0===t?void 0:t.chartContainer)||null},enumerable:!1,configurable:!0}),n.prototype._refCallback=function(t,n,i){this._refArray[i]={index:n,refElement:t}},n.prototype._onLegendHover=function(t){this.setState({activeLegend:t})},n.prototype._onLegendLeave=function(){this.setState({activeLegend:""})},n.prototype._onLegendSelectionChange=function(t,n,i){var e,r;(null===(e=this.props.legendProps)||void 0===e?void 0:e.canSelectMultipleLegends)?this.setState({selectedLegends:t}):this.setState({selectedLegends:t.slice(-1)}),(null===(r=this.props.legendProps)||void 0===r?void 0:r.onChange)&&this.props.legendProps.onChange(t,n,i)},n.prototype._getHighlightedLegend=function(){return this.state.selectedLegends.length>0?this.state.selectedLegends:this.state.activeLegend?[this.state.activeLegend]:[]},n.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.length>0&&this.props.data.filter((function(t){return t.series.length})).length>0)},n.prototype._adjustProps=function(){this._barWidth=Fs(this.props.barwidth,this.props.maxBarWidth),this._xAxisInnerPadding=_s(this.props.xAxisInnerPadding,void 0,2/(2+this._keys.length+(this._keys.length-1)*Xh)),this._xAxisOuterPadding=_s(this.props.xAxisOuterPadding)},n.defaultProps={maxBarWidth:24},n}(u.Component),qh=(0,r.I)(Gh,(function(t){var n=t.theme;return{opacityChangeOnHover:{cursor:t.href?"pointer":"default"},tooltip:(0,o.Cl)((0,o.Cl)({},n.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:n.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"}),barLabel:{fontSize:$t.s.small,fontWeight:$t.BO.semibold,fill:n.palette.neutralPrimary}}})),Uh=i(263),Zh=(0,a.Z)(),Kh=function(t){function n(n){var i,e,r=t.call(this,n)||this;return r._rectRefArray={},r._getMinMaxOfYAxis=function(){return{startValue:0,endValue:0}},r._getDomainNRangeValues=function(t,n,i,e,o,u,a,s,l){return u===os.NumericAxis||u===os.DateAxis?{dStartValue:0,dEndValue:0,rStartValue:0,rEndValue:0}:Ms(r.margins,i,o)},r._getXandY=function(){var t="",n="";return r.props.data.forEach((function(i){if(i.data&&i.data.length>0)return t=i.data[0].x,n=i.data[0].y,{x:t,y:n}})),{x:t,y:n}},r._getMargins=function(t){r.margins=t},r._getOpacity=function(t){return r._legendHighlighted(t)||r._noLegendHighlighted()?"1":"0.1"},r._rectRefCallback=function(t,n,i){r._rectRefArray[n]={data:i,refElement:t}},r._onRectFocus=function(t,n){r.setState({target:r._rectRefArray[t].refElement,isCalloutVisible:""===r.state.selectedLegend||r.state.selectedLegend===n.legend,calloutYValue:"".concat(n.rectText),calloutTextColor:Number.isNaN(n.value)?r.props.theme.semanticColors.bodyText:r._colorScale(n.value),calloutLegend:n.legend,ratio:n.ratio||null,descriptionMessage:n.descriptionMessage||"",calloutId:t,callOutAccessibilityData:n.callOutAccessibilityData})},r._onRectMouseOver=function(t,n,i){i.persist(),r._calloutAnchorPoint!==n&&(r._calloutAnchorPoint=n,r.setState({target:r._rectRefArray[t].refElement,isCalloutVisible:""===r.state.selectedLegend||r.state.selectedLegend===n.legend,calloutYValue:"".concat(n.rectText),calloutTextColor:Number.isNaN(n.value)?r.props.theme.semanticColors.bodyText:r._colorScale(n.value),calloutLegend:n.legend,ratio:n.ratio||null,descriptionMessage:n.descriptionMessage||"",calloutId:t,callOutAccessibilityData:n.callOutAccessibilityData}))},r._onRectBlurOrMouseOut=function(){},r._handleChartMouseLeave=function(){r._calloutAnchorPoint=null,r.setState({isCalloutVisible:!1})},r._createRectangles=function(){var t=[];return r._stringYAxisDataPoints.slice().reverse().forEach((function(n){var i=0;r._stringXAxisDataPoints.forEach((function(e){var o,a,s="x".concat(e,"y").concat(n);if((null===(o=r._dataSet[n][i])||void 0===o?void 0:o.x)===e){var l=r._dataSet[n][i];a=u.createElement("g",{key:s,role:"img","aria-label":r._getAriaLabel(l),"data-is-focusable":r._legendHighlighted(l.legend)||r._noLegendHighlighted(),fillOpacity:r._getOpacity(l.legend),transform:"translate(".concat(r._xAxisScale(l.x),", ").concat(r._yAxisScale(l.y),")"),ref:function(t){r._rectRefCallback(t,s,l)},onFocus:r._onRectFocus.bind(r,s,l),onBlur:r._onRectBlurOrMouseOut,onMouseOver:r._onRectMouseOver.bind(r,s,l),onMouseOut:r._onRectBlurOrMouseOut},u.createElement("rect",{fill:r._colorScale(l.value),width:r._xAxisScale.bandwidth(),height:r._yAxisScale.bandwidth(),onClick:l.onClick}),u.createElement("text",{dominantBaseline:"middle",textAnchor:"middle",className:r._classNames.text,transform:"translate(".concat(r._xAxisScale.bandwidth()/2,", ").concat(r._yAxisScale.bandwidth()/2,")")},(0,Jn.U)(l.rectText,r.props.culture))),i++}else{var c={x:e,y:n,value:NaN,rectText:"No data available",legend:""};a=u.createElement("g",{key:s,role:"img","aria-label":r._getAriaLabel(c),"data-is-focusable":r._noLegendHighlighted(),transform:"translate(".concat(r._xAxisScale(c.x),", ").concat(r._yAxisScale(c.y),")"),ref:function(t){r._rectRefCallback(t,s,c)},onFocus:r._onRectFocus.bind(r,s,c),onBlur:r._onRectBlurOrMouseOut,onMouseOver:r._onRectMouseOver.bind(r,s,c),onMouseOut:r._onRectBlurOrMouseOut},u.createElement("rect",{fill:r.props.theme.semanticColors.bodyBackground,width:r._xAxisScale.bandwidth(),height:r._yAxisScale.bandwidth()}))}t.push(a)}))})),t},r._createLegendBars=function(){var t=r.props,n=t.data,i=t.legendProps,e=[];return n.forEach((function(t){var n={title:t.legend,color:r._colorScale(t.value),action:function(){r._onLegendClick(t.legend)},hoverAction:function(){r._handleChartMouseLeave(),r._onLegendHover(t.legend)},onMouseOutAction:function(){r._onLegendLeave()}};e.push(n)})),u.createElement(Lc,(0,o.Cl)({},i,{legends:e}))},r._getColorScale=function(){var t=r.props,n=t.domainValuesForColorScale,i=t.rangeValuesForColorScale;return Ue().domain(n).range(i)},r._getXIndex=function(t){return r._xAxisType===os.DateAxis?"".concat(t.getTime()):r._xAxisType===os.StringAxis?t:r._xAxisType===os.NumericAxis?"".concat(t):""},r._getYIndex=function(t){return r._yAxisType===us.DateAxis?"".concat(t.getTime()):r._yAxisType===us.StringAxis?t:r._yAxisType===us.NumericAxis?"".concat(t):""},r._createNewDataSet=function(t,n,i,e,u){var a=[];t.forEach((function(t){t.data.forEach((function(n){a.push((0,o.Cl)((0,o.Cl)({},n),{legend:t.legend}))}))}));var s={},l={},c={};return a.forEach((function(t){var n=r._getXIndex(t.x),i=r._getYIndex(t.y);c[n]="1",l[i]="1",s[i]?s[i]=(0,o.fX)((0,o.fX)([],s[i],!0),[t],!1):s[i]=[t]})),Object.keys(s).forEach((function(t){s[t].sort((function(t,n){return r._xAxisType===os.StringAxis?"none"===r.props.sortOrder?0:t.x.toLowerCase()>n.x.toLowerCase()?1:-1:r._xAxisType===os.DateAxis?t.x.getTime()-n.x.getTime():r._xAxisType===os.NumericAxis?+t.x>+n.x?1:-1:t.x>n.x?1:-1})).forEach((function(t){r._xAxisType===os.DateAxis&&(t.x=r._getStringFormattedDate(t.x,n)),r._xAxisType===os.NumericAxis&&(t.x=r._getStringFormattedNumber(t.x,i)),r._xAxisType===os.StringAxis&&(t.x=r._getFormattedLabelForXAxisDataPoint(t.x)),r._yAxisType===us.DateAxis&&(t.y=r._getStringFormattedDate(t.y,e)),r._yAxisType===us.NumericAxis&&(t.y=r._getStringFormattedNumber(t.y,u)),r._yAxisType===us.StringAxis&&(t.y=r._getFormattedLabelForYAxisDataPoint(t.y))}))})),Object.keys(s).forEach((function(t){r._yAxisType===us.DateAxis?s[r._getStringFormattedDate(t,e)]=s[t]:r._yAxisType===us.NumericAxis?s["".concat(r._getStringFormattedNumber(t,u))]=s[t]:s[r._getFormattedLabelForYAxisDataPoint(t)]=s[t]})),{dataSet:s,yAxisPoints:r._getYAxisDataPoints(l),xAxisPoints:r._getXAxisDataPoints(c)}},r._getXAxisDataPoints=function(t){return Object.keys(t).sort((function(t,n){return r._xAxisType===os.DateAxis||r._xAxisType===os.NumericAxis?+t-+n:"none"===r.props.sortOrder?0:t.toLowerCase()>n.toLowerCase()?1:-1})).map((function(t){return r._xAxisType===os.DateAxis?r._getStringFormattedDate(t,r.props.xAxisDateFormatString):r._xAxisType===os.NumericAxis?r._getStringFormattedNumber(t,r.props.xAxisNumberFormatString):r._getFormattedLabelForXAxisDataPoint(t)}))},r._getYAxisDataPoints=function(t){return Object.keys(t).sort((function(t,n){return r._yAxisType===us.DateAxis||r._yAxisType===us.NumericAxis?+t-+n:"none"===r.props.sortOrder?0:t.toLowerCase()>n.toLowerCase()?1:-1})).map((function(t){return r._yAxisType===us.DateAxis?r._getStringFormattedDate(t,r.props.yAxisDateFormatString):r._yAxisType===us.NumericAxis?r._getStringFormattedNumber(t,r.props.yAxisNumberFormatString):r._getFormattedLabelForYAxisDataPoint(t)}))},r._getStringFormattedDate=function(t,n){var i=new Date;return i.setTime(+t),xo(n||"%b/%d")(i)},r._getStringFormattedNumber=function(t,n){return Ye(n||".2~s")(+t)},r._getFormattedLabelForXAxisDataPoint=function(t){var n=r.props.xAxisStringFormatter;return n?n(t):t},r._getFormattedLabelForYAxisDataPoint=function(t){var n=r.props.yAxisStringFormatter;return n?n(t):t},r._closeCallout=function(){r.setState({isCalloutVisible:!1})},r._legendHighlighted=function(t){return r.state.selectedLegend===t||""===r.state.selectedLegend&&r.state.activeLegend===t},r._noLegendHighlighted=function(){return""===r.state.selectedLegend&&""===r.state.activeLegend},r._getAriaLabel=function(t){var n,i=t.x,e=t.y,r=t.legend,o=t.ratio?"".concat(t.ratio[0],"/").concat(t.ratio[1]):t.rectText||t.value,u=t.descriptionMessage;return(null===(n=t.callOutAccessibilityData)||void 0===n?void 0:n.ariaLabel)||"".concat(i,", ").concat(e,". ").concat(r,", ").concat(o,".")+(u?" ".concat(u,"."):"")},r._getChartTitle=function(){var t=r.props.chartTitle,n=r.props.data.reduce((function(t,n){return t+n.data.length}),0);return(t?"".concat(t,". "):"")+"Heat map chart with ".concat(n," data points. ")},Qs(r),r._createSet=(0,dn.J9)((function(t,n,i,e,o){return r._createNewDataSet(t,n,i,e,o)})),r.state={selectedLegend:null!==(e=null===(i=n.legendProps)||void 0===i?void 0:i.selectedLegend)&&void 0!==e?e:"",activeLegend:"",isCalloutVisible:!1,target:null,calloutLegend:"",calloutTextColor:"",calloutYValue:"",ratio:null,descriptionMessage:"",calloutId:""},r._emptyChartId=g("_HeatMap_empty"),r._cartesianChartRef=u.createRef(),r}return(0,o.C6)(n,t),n.prototype.componentDidUpdate=function(t){var n,i,e,r;(null===(n=t.legendProps)||void 0===n?void 0:n.selectedLegend)!==(null===(i=this.props.legendProps)||void 0===i?void 0:i.selectedLegend)&&this.setState({selectedLegend:null!==(r=null===(e=this.props.legendProps)||void 0===e?void 0:e.selectedLegend)&&void 0!==r?r:""})},n.prototype.render=function(){var t=this,n=this._getXandY(),i=n.x,e=n.y;this._xAxisType=Ts(i,!0),this._yAxisType=Ts(e,!1);var r=this.props,a=r.data,s=r.xAxisDateFormatString,l=r.xAxisNumberFormatString,c=r.yAxisDateFormatString,f=r.yAxisNumberFormatString;this._colorScale=this._getColorScale();var h=this._createSet(a,s,l,c,f),d=h.dataSet,v=h.xAxisPoints,p=h.yAxisPoints;this._dataSet=d,this._stringYAxisDataPoints=p,this._stringXAxisDataPoints=v,this._classNames=Zh(this.props.styles,{theme:this.props.theme});var g=(0,o.Cl)((0,o.Cl)((0,o.Cl)((0,o.Cl)({isBeakVisible:!1,gapSpace:8},this.props.calloutProps),{isCalloutVisible:this.state.isCalloutVisible,id:this.state.calloutId,YValue:this.state.calloutYValue,legend:this.state.calloutLegend,color:this.state.calloutTextColor,target:this.state.target,styles:this._classNames.subComponentStyles.calloutStyles,directionalHint:x.topAutoEdge,onDismiss:this._closeCallout}),Os(this.state.callOutAccessibilityData,"text",!1)),{preventDismissOnLostFocus:!0}),m=(0,o.Cl)((0,o.Cl)({},this.state.ratio&&{ratio:this.state.ratio}),{descriptionMessage:this.state.descriptionMessage});return this._isChartEmpty()?u.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):u.createElement(Hf,(0,o.Cl)({},this.props,{chartTitle:this._getChartTitle(),points:a,chartType:rs.HeatMapChart,xAxisType:os.StringAxis,yAxisType:us.StringAxis,calloutProps:g,createYAxis:vs,chartHoverProps:m,styles:this._classNames.subComponentStyles.cartesianStyles,datasetForXAxisDomain:this._stringXAxisDataPoints,stringDatasetForYAxisDomain:this._stringYAxisDataPoints,createStringYAxis:gs,getDomainNRangeValues:this._getDomainNRangeValues,getMinMaxOfYAxis:this._getMinMaxOfYAxis,getmargins:this._getMargins,xAxisTickCount:this._stringXAxisDataPoints.length,xAxistickSize:0,xAxisPadding:.02,yAxisPadding:.02,svgFocusZoneProps:{direction:zs.bidirectional},legendBars:this._createLegendBars(),onChartMouseLeave:this._handleChartMouseLeave,ref:this._cartesianChartRef,children:function(n){return t._xAxisScale=n.xScale,t._yAxisScale=n.yScale,t._createRectangles()}}))},Object.defineProperty(n.prototype,"chartContainer",{get:function(){var t;return(null===(t=this._cartesianChartRef.current)||void 0===t?void 0:t.chartContainer)||null},enumerable:!1,configurable:!0}),n.prototype._onLegendHover=function(t){this.setState({activeLegend:t})},n.prototype._onLegendLeave=function(){this.setState({activeLegend:""})},n.prototype._onLegendClick=function(t){this.state.selectedLegend===t?this.setState({selectedLegend:""}):this.setState({selectedLegend:t})},n.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.length>0)},n}(u.Component),Jh=(0,r.I)(Kh,(function(t){var n=t.theme;return{root:{},text:[n.fonts.medium,{pointerEvents:"none",fill:n.palette.white,fontWeight:$t.BO.semibold}],subComponentStyles:{cartesianStyles:{},calloutStyles:{root:{maxWidth:"238px"}}}}})),Qh=/[\{\}]/g,td=/\{\d+\}/g;function nd(t){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var e=n;return t.replace(td,(function(t){var n=e[t.replace(Qh,"")];return null==n&&(n=""),n}))}function id(t,n){let i=0;if(void 0===n)for(let n of t)(n=+n)&&(i+=n);else{let e=-1;for(let r of t)(r=+n(r,++e,t))&&(i+=r)}return i}function ed(t,n){let i=0;if(void 0===n)for(let n of t)(n=+n)&&(i+=n);else{let e=-1;for(let r of t)(r=+n(r,++e,t))&&(i+=r)}return i}function rd(t,n){let i;if(void 0===n)for(const n of t)null!=n&&(i<n||void 0===i&&n>=n)&&(i=n);else{let e=-1;for(let r of t)null!=(r=n(r,++e,t))&&(i<r||void 0===i&&r>=r)&&(i=r)}return i}function od(t,n){return n-1-t.height}function ud(t,n){return t.sourceLinks.length?t.depth:n-1}function ad(t){return function(){return t}}function sd(t,n){return cd(t.source,n.source)||t.index-n.index}function ld(t,n){return cd(t.target,n.target)||t.index-n.index}function cd(t,n){return t.y0-n.y0}function fd(t){return t.value}function hd(t){return t.index}function dd(t){return t.nodes}function vd(t){return t.links}function pd(t,n){const i=t.get(n);if(!i)throw new Error("missing: "+n);return i}function gd({nodes:t}){for(const n of t){let t=n.y0,i=t;for(const i of n.sourceLinks)i.y0=t+i.width/2,t+=i.width;for(const t of n.targetLinks)t.y1=i+t.width/2,i+=t.width}}function md(){let t,n,i,e=0,r=0,o=1,u=1,a=24,s=8,l=hd,c=ud,f=dd,h=vd,d=6;function v(){const v={nodes:f.apply(null,arguments),links:h.apply(null,arguments)};return function({nodes:t,links:n}){for(const[n,i]of t.entries())i.index=n,i.sourceLinks=[],i.targetLinks=[];const e=new Map(t.map(((n,i)=>[l(n,i,t),n])));for(const[t,i]of n.entries()){i.index=t;let{source:n,target:r}=i;"object"!=typeof n&&(n=i.source=pd(e,n)),"object"!=typeof r&&(r=i.target=pd(e,r)),n.sourceLinks.push(i),r.targetLinks.push(i)}if(null!=i)for(const{sourceLinks:n,targetLinks:e}of t)n.sort(i),e.sort(i)}(v),function({nodes:t}){for(const n of t)n.value=void 0===n.fixedValue?Math.max(ed(n.sourceLinks,fd),ed(n.targetLinks,fd)):n.fixedValue}(v),function({nodes:t}){const n=t.length;let i=new Set(t),e=new Set,r=0;for(;i.size;){for(const t of i){t.depth=r;for(const{target:n}of t.sourceLinks)e.add(n)}if(++r>n)throw new Error("circular link");i=e,e=new Set}}(v),function({nodes:t}){const n=t.length;let i=new Set(t),e=new Set,r=0;for(;i.size;){for(const t of i){t.height=r;for(const{source:n}of t.targetLinks)e.add(n)}if(++r>n)throw new Error("circular link");i=e,e=new Set}}(v),function(i){const l=function({nodes:t}){const i=rd(t,(t=>t.depth))+1,r=(o-e-a)/(i-1),u=new Array(i);for(const n of t){const t=Math.max(0,Math.min(i-1,Math.floor(c.call(null,n,i))));n.layer=t,n.x0=e+t*r,n.x1=n.x0+a,u[t]?u[t].push(n):u[t]=[n]}if(n)for(const t of u)t.sort(n);return u}(i);t=Math.min(s,(u-r)/(rd(l,(t=>t.length))-1)),function(n){const i=function(t,n){let i;if(void 0===n)for(const n of t)null!=n&&(i>n||void 0===i&&n>=n)&&(i=n);else{let e=-1;for(let r of t)null!=(r=n(r,++e))&&(i>r||void 0===i&&r>=r)&&(i=r)}return i}(n,(n=>(u-r-(n.length-1)*t)/ed(n,fd)));for(const e of n){let n=r;for(const r of e){r.y0=n,r.y1=n+r.value*i,n=r.y1+t;for(const t of r.sourceLinks)t.width=t.value*i}n=(u-n+t)/(e.length+1);for(let t=0;t<e.length;++t){const i=e[t];i.y0+=n*(t+1),i.y1+=n*(t+1)}C(e)}}(l);for(let t=0;t<d;++t){const n=Math.pow(.99,t),i=Math.max(1-n,(t+1)/d);g(l,n,i),p(l,n,i)}}(v),gd(v),v}function p(t,i,e){for(let r=1,o=t.length;r<o;++r){const o=t[r];for(const t of o){let n=0,e=0;for(const{source:i,value:r}of t.targetLinks){let o=r*(t.layer-i.layer);n+=w(i,t)*o,e+=o}if(!(e>0))continue;let r=(n/e-t.y0)*i;t.y0+=r,t.y1+=r,x(t)}void 0===n&&o.sort(cd),m(o,e)}}function g(t,i,e){for(let r=t.length-2;r>=0;--r){const o=t[r];for(const t of o){let n=0,e=0;for(const{target:i,value:r}of t.sourceLinks){let o=r*(i.layer-t.layer);n+=M(t,i)*o,e+=o}if(!(e>0))continue;let r=(n/e-t.y0)*i;t.y0+=r,t.y1+=r,x(t)}void 0===n&&o.sort(cd),m(o,e)}}function m(n,i){const e=n.length>>1,o=n[e];b(n,o.y0-t,e-1,i),y(n,o.y1+t,e+1,i),b(n,u,n.length-1,i),y(n,r,0,i)}function y(n,i,e,r){for(;e<n.length;++e){const o=n[e],u=(i-o.y0)*r;u>1e-6&&(o.y0+=u,o.y1+=u),i=o.y1+t}}function b(n,i,e,r){for(;e>=0;--e){const o=n[e],u=(o.y1-i)*r;u>1e-6&&(o.y0-=u,o.y1-=u),i=o.y0-t}}function x({sourceLinks:t,targetLinks:n}){if(void 0===i){for(const{source:{sourceLinks:t}}of n)t.sort(ld);for(const{target:{targetLinks:n}}of t)n.sort(sd)}}function C(t){if(void 0===i)for(const{sourceLinks:n,targetLinks:i}of t)n.sort(ld),i.sort(sd)}function w(n,i){let e=n.y0-(n.sourceLinks.length-1)*t/2;for(const{target:r,width:o}of n.sourceLinks){if(r===i)break;e+=o+t}for(const{source:t,width:r}of i.targetLinks){if(t===n)break;e-=r}return e}function M(n,i){let e=i.y0-(i.targetLinks.length-1)*t/2;for(const{source:r,width:o}of i.targetLinks){if(r===n)break;e+=o+t}for(const{target:t,width:r}of n.sourceLinks){if(t===i)break;e-=r}return e}return v.update=function(t){return gd(t),t},v.nodeId=function(t){return arguments.length?(l="function"==typeof t?t:ad(t),v):l},v.nodeAlign=function(t){return arguments.length?(c="function"==typeof t?t:ad(t),v):c},v.nodeSort=function(t){return arguments.length?(n=t,v):n},v.nodeWidth=function(t){return arguments.length?(a=+t,v):a},v.nodePadding=function(n){return arguments.length?(s=t=+n,v):s},v.nodes=function(t){return arguments.length?(f="function"==typeof t?t:ad(t),v):f},v.links=function(t){return arguments.length?(h="function"==typeof t?t:ad(t),v):h},v.linkSort=function(t){return arguments.length?(i=t,v):i},v.size=function(t){return arguments.length?(e=r=0,o=+t[0],u=+t[1],v):[o-e,u-r]},v.extent=function(t){return arguments.length?(e=+t[0][0],o=+t[1][0],r=+t[0][1],u=+t[1][1],v):[[e,r],[o,u]]},v.iterations=function(t){return arguments.length?(d=+t,v):d},v}class yd{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n)}this._x0=t,this._y0=n}}var bd=(0,a.Z)(),xd="#757575",Cd=[{fillColor:"#00758F",borderColor:"#002E39"},{fillColor:"#77004D",borderColor:"#43002C"},{fillColor:"#4F6BED",borderColor:"#3B52B4"},{fillColor:"#937600",borderColor:"#6D5700"},{fillColor:"#286EA8",borderColor:"#00457E"},{fillColor:"#A43FB1",borderColor:"#7C158A"},{fillColor:"#CC3595",borderColor:"#7F215D"},{fillColor:"#0E7878",borderColor:"#004E4E"},{fillColor:"#8764B8",borderColor:"#4B3867"},{fillColor:"#9C663F",borderColor:"#6D4123"}];function wd(t){return"number"==typeof t?t:t.nodeId}function Md(t,n){return t[wd(n.source)][wd(n.target)]}var kd="...";function Sd(t,n){var i;try{return t.text(n),null===(i=t.node())||void 0===i?void 0:i.getComputedTextLength()}finally{t.text(null)}}var Ad,Ld,Vd=sh().x((function(t){return t.x})).y0((function(t){return t.y0})).y1((function(t){return t.y1})).curve((function(t){return new yd(t,!0)})),Dd=function(t){function n(n){var i=t.call(this,n)||this;return i._isRtl=(0,s.jI)(),i._numColumns=0,i._onCloseCallout=function(){i.setState({isCalloutVisible:!1,refSelected:void 0,descriptionMessage:""})},i._onBlur=function(){},i._fillNodeColors=function(t){var n=i.state;if(!n.selectedState)return t.color;var e=n.selectedNode;return e&&n.selectedNodes.has(t.index)?e.color:e?void 0:t.color},i._fillNodeBorder=function(t){var n=i.state;if(n.selectedState){if(n.selectedNodes.has(t.index)){var e=n.selectedNode;return e?e.borderColor:t.borderColor}return t.borderColor}return t.borderColor},i._calculateChartMinWidth=function(){return i._margins.left+i._margins.right+124*i._numColumns+62*(i._numColumns-1)},Qs(i),i.state={containerHeight:468,containerWidth:912,selectedState:!1,selectedLinks:new Set,selectedNodes:new Set,shouldOverflow:!1,isCalloutVisible:!1},i._calloutId=g("callout"),i._linkId=g("link"),i._chartId=g("sankeyChart"),i._emptyChartId=g("_SankeyChart_empty"),i._labelTooltipId=g("tooltip"),i._margins={top:36,right:48,bottom:32,left:48},i._computeClassNamesProps=(0,dn.J9)((function(t,n,i,e,r){return{theme:t,width:e,height:r,pathColor:n,className:i}})),i._computeClassNames=(0,dn.J9)((function(t,n){return bd(t,n)})),i._normalizeData=(0,dn.J9)((function(t,n,e,r,o){return i._normalizeSankeyData(t,n,e,r,o)})),i._fetchTooltip=(0,dn.J9)((function(t){return i._labelTooltipDiv(t)})),i._strings=(0,dn.J9)((function(t){var n=(null==t?void 0:t.linkFrom)||"From {0}";return{linkFrom:function(t){return nd(n,t.name)}}}))(n.strings),i._accessibility=(0,dn.J9)((function(t){var n=(null==t?void 0:t.linkAriaLabel)||"link from {0} to {1} with weight {2}",e=(null==t?void 0:t.nodeAriaLabel)||"node {0} with weight {1}";return{emptyAriaLabel:(null==t?void 0:t.emptyAriaLabel)||"Graph has no data to display",linkAriaLabel:function(t){return nd(n,t.source.name,t.target.name,t.unnormalizedValue?i._formatNumber(t.unnormalizedValue):t.unnormalizedValue)},nodeAriaLabel:function(t,n){return nd(e,t.name,i._formatNumber(n))}}}))(n.accessibility),i._nodeAttributes=(0,dn.J9)((function(t,n){return i._computeNodeAttributes(t,n)})),i._fetchNodes=function(t,n,e,r){return i._createNodes(t,n,e,r)},i._linkAttributes=(0,dn.J9)((function(t,n,i){return function(t,n,i){var e={};return t.forEach((function(t){var r=wd(t.source),o=e[r];o||(o={},e[r]=o),o[wd(t.target)]={reactId:g("link"),from:n(t.source),aria:i(t)}})),e}(t,n,i)})),i._fetchLinks=function(t,n){return i._createLinks(t,n)},i}return(0,o.C6)(n,t),n.prototype.componentDidMount=function(){this._fitParentContainer()},n.prototype.componentDidUpdate=function(t){t.shouldResize!==this.props.shouldResize&&this._fitParentContainer()},n.prototype.componentWillUnmount=function(){cancelAnimationFrame(this._reqID)},n.prototype.render=function(){var t=this;if(!this._isChartEmpty()){var n=this.props,i=n.theme,e=n.className,r=n.styles,a=n.pathColor,s=n.colorsForNodes,l=n.borderColorsForNodes,c=this.state,f=this._computeClassNamesProps(i,a,e,c.containerWidth,c.containerHeight),h=this._computeClassNames(r,f),d=this._normalizeData(this.props.data.SankeyChartData,c.containerWidth,c.containerHeight,s,l),v=d.nodes,p=d.links,g=d.width,m=d.height,y=[];v.sort((function(t,n){return t.x0!==n.x0?t.x0-n.x0:t.y0-n.y0})),v.forEach((function(t,n){y.push({layer:t.layer,type:"node",index:n})})),p.sort((function(t,n){var i=t.source.x0,e=n.source.x0;return i!==e?i-e:t.y0-n.y0})),p.forEach((function(t,n){y.push({layer:t.source.layer,type:"link",index:n})})),y.sort((function(t,n){return t.layer!==n.layer?t.layer-n.layer:t.type>n.type?-1:t.type<n.type?1:0}));var b=this._fetchTooltip(h),C=this._nodeAttributes(v,this._accessibility.nodeAriaLabel),w=this._fetchNodes(h,v,C,b),M=this._linkAttributes(p,this._strings.linkFrom,this._accessibility.linkAriaLabel),k=this._fetchLinks(p,M),S=(0,o.Cl)({isCalloutVisible:c.isCalloutVisible,directionalHint:x.topAutoEdge,id:"toolTip".concat(this._calloutId),target:c.refSelected,color:c.color,XValue:c.xCalloutValue,YValue:c.yCalloutValue?c.yCalloutValue:c.dataForHoverCard,descriptionMessage:c.descriptionMessage,isBeakVisible:!1,gapSpace:15,onDismiss:this._onCloseCallout,className:h.calloutContentRoot,preventDismissOnLostFocus:!0},this.props.calloutProps);return u.createElement("div",{className:h.root,role:"presentation",ref:function(n){return t.chartContainer=n},onMouseLeave:this._onCloseCallout},u.createElement(xl,{direction:zs.vertical,className:h.chartWrapper},u.createElement("svg",{width:g,height:m,id:this._chartId},y.map((function(t){return"node"===t.type?u.createElement("g",{key:v[t.index].nodeId,className:h.nodes},w[t.index]):u.createElement("g",{key:"".concat(p[t.index].source.nodeId,"-").concat(p[t.index].target.nodeId),className:h.links,strokeOpacity:1},k[t.index])})),S.isCalloutVisible&&u.createElement(Kn,(0,o.Cl)({},S),u.createElement(js.ChartHoverCard,{XValue:S.XValue,YValue:S.YValue,color:S.color,descriptionMessage:S.descriptionMessage?S.descriptionMessage:""})))))}return u.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":this._accessibility.emptyAriaLabel})},n.prototype._computeNodeAttributes=function(t,n){var i=this,e={},r=ls(".nodeName").append("text").attr("class","tempText").append("tspan").text(null),o=ls(".nodeName").append("text").attr("class","tempText").attr("font-size","10").append("tspan").text(null);return t.forEach((function(t){var u=Math.max(t.y1-t.y0,0),a=8,s=0,l=t.actualValue;if(u<36){a+=6;var c=Sd(r,i._formatNumber(l));void 0!==c&&(a+=s=c)}var f=function(t,n,i,e){var r=i-e;if(function(t,n,i){var e=Sd(t,n);return void 0!==e&&e<=i}(t,n,r))return n;for(var o=function(t){var n=Sd(t,kd);return void 0===n?0:n}(t),u="",a=0;a<n.length;a++){u+=n[a],t.text(u);var s=t.node();if(null!==s&&s.getComputedTextLength()>=r-o){u=u.slice(0,-1),u+=kd;break}}return t.text(null),u}(o,t.name,116,a),h=f.slice(-3)===kd;e[t.nodeId]={reactId:g("nodeBar"),gElementId:g("nodeGElement"),name:f,aria:n(t,l),trimmed:h,height:u,weightOffset:s}})),cs(".tempText").remove(),e},n.prototype._linkCalloutAttributes=function(t,n){return{selectedLink:t,isCalloutVisible:!0,color:t.source.color,xCalloutValue:t.target.name,yCalloutValue:this._formatNumber(t.unnormalizedValue),descriptionMessage:n}},n.prototype._normalizeSankeyData=function(t,n,i,e,r){var u=function(t,n,i,e){var r=t.left,o=t.right,u=t.top,a=t.bottom,s=n-o,l=i-a>0?i-a:0;return{sankey:md().nodeWidth(124).extent([[r,u],[s-1,l-6]]).nodeAlign(e?od:ud),height:l,width:s}}(this._margins,n,i,this._isRtl),a=u.sankey,s=u.height,l=u.width,c=function(t){return{nodes:t.nodes.map((function(t){return(0,o.Cl)({},t)})),links:t.links.map((function(t){return(0,o.Cl)({},t)}))}}(t);a(c);var f=function(t){var n={};return t.nodes.forEach((function(t){var i=t.layer;n[i]?n[i].push(t):n[i]=[t]})),n}(c);this._numColumns=Object.keys(f).length;var h,d,v=(h=c.nodes,d={},h.forEach((function(t){d[t.nodeId]=t.value})),d),p=function(t){var n={};return t.forEach((function(t){var i=wd(t.source),e=n[i];e||(e={},n[i]=e),e[wd(t.target)]=t.value})),n}(c.links);return function(t,n,i){Object.values(t).map((function(t){return id(t,(function(t){return t.value}))})).forEach((function(e,r){var o=0,u=.01*e,a=t[r];a.forEach((function(t){var i=n[t.nodeId],r=i/e*100;t.actualValue=i,r<1?(t.value=u,o+=1):o+=r}));var s=0!==o?o/100:1;s>1&&a.forEach((function(t){var e=t.value=t.value/s;!function(t,n,i,e){var r=function(t){var r=Md(e,t);t.unnormalizedValue=r;var o=r/n;t.value=Math.max(i*o,t.value)};t.sourceLinks.forEach(r),t.targetLinks.forEach(r)}(t,n[t.nodeId],e,i)}))}))}(f,v,p),function(t,n,i){var e=t.nodePadding(),r=.3*n;Object.values(i).forEach((function(t){var i=n-id(t,(function(t){return t.y1-t.y0}));r<i&&(e=Math.min(e,r/(t.length-1)))})),t.nodePadding(e)}(a,s-6,f),a(c),function(t,n,i){t.links.forEach((function(t){t.unnormalizedValue||(t.unnormalizedValue=Md(i,t))})),t.nodes.forEach((function(t){t.actualValue=n[t.nodeId]}))}(c,v,p),function(t,n,i){var e,r;n&&i?(e=n,r=i):(e=Cd.map((function(t){return t.fillColor})),r=Cd.map((function(t){return t.borderColor})));var o=0;t.forEach((function(t){t.color||t.borderColor?t.color&&!t.borderColor?t.borderColor="#757575":t.borderColor&&!t.color&&(t.color="#F5F5F5"):(t.color=e[o],t.borderColor=r[o]),o=(o+1)%e.length}))}(c.nodes,e,r),{width:l,height:s,nodes:c.nodes,links:c.links}},n.prototype._labelTooltipDiv=function(t){var n=ls("#".concat(this._labelTooltipId));return n.empty()&&(n=ls("body").append("div").attr("id",this._labelTooltipId).attr("class",t.toolTip).style("opacity",0)),n.attr("class",t.toolTip),n},n.prototype._createLinks=function(t,n){var i=this;if(t){var e=this._linkId;return t.map((function(t,r){var o,a,s,l,c=Md(n,t),f=c.reactId,h=c.from,d=c.aria,v=(a=.5*(o=t).width,s=o.y0,l=o.y1,[{x:o.source.x1,y0:s+a,y1:s-a},{x:o.target.x0,y0:l+a,y1:l-a}]),p="".concat(e,"-").concat(r),g="gradient-".concat(p),m="url(#".concat(g,")"),y=t.source,b=t.target;return u.createElement("g",{key:p},u.createElement("defs",null,u.createElement("linearGradient",{id:g,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},u.createElement("stop",{offset:"0",stopColor:y.color}),u.createElement("stop",{offset:"100%",stopColor:b.color}))),u.createElement("path",{d:Vd(v),id:f,fill:i._fillStreamColors(t,m),stroke:i._fillStreamBorder(t,m),strokeWidth:"2",strokeOpacity:i._getOpacityStreamBorder(t),onMouseOver:function(n){return i._onStreamHover(n,t,h)},onMouseOut:function(){i._onStreamLeave(t)},onFocus:function(n){return i._onFocusLink(n,t,h)},onBlur:i._onBlur,fillOpacity:i._getOpacityStream(t),"data-is-focusable":!0,"aria-label":d,role:"img"}))}))}return[]},n.prototype._createNodes=function(t,n,i,e){var r=this;if(n){var o=this.state,a=this._isRtl?"end":"start";return n.map((function(n,s){var l=i[n.nodeId],c=l.reactId,f=l.gElementId,h=l.height,d=l.trimmed,v=l.name,p=l.weightOffset,g=l.aria,m=h>36,y=n.name,b=n.actualValue,x=n.x0,C=n.x1,w=n.y0,M=function(t,n){return!t.selectedState||t.selectedNodes.has(n.index)&&t.selectedNode||!t.selectedNode?"#FFFFFF":"#323130"}(o,n);return u.createElement("g",{key:s,id:f},u.createElement("rect",{x:x,y:w,height:h,width:C-x,fill:r._fillNodeColors(n),id:c,onMouseOver:r._onHover.bind(r,n),onMouseOut:function(){r._onLeave(n)},onFocus:r._onCloseCallout.bind(r),stroke:r._fillNodeBorder(n),strokeWidth:"2",opacity:"1","data-is-focusable":!0,"aria-label":g,role:"img"}),h>24&&u.createElement("g",{className:t.nodeTextContainer},u.createElement("g",{className:"nodeName"},u.createElement("text",{id:"".concat(c,"-name"),x:x,y:w,dy:"1.2em",dx:"0.4em",textAnchor:a,fontWeight:"regular","aria-hidden":"true",fill:M,fontSize:10,onMouseOver:r._showTooltip.bind(r,y,d,e),onMouseOut:r._hideTooltip.bind(r,e)},v)),u.createElement("text",{x:m?x:C-p-8,y:w,dy:m?"2em":"1em",dx:m?"0.4em":"0em",textAnchor:a,fontWeight:"bold","aria-hidden":"true",fill:M,fontSize:14},b?r._formatNumber(b):b)))}))}},n.prototype._onLeave=function(t){this.state.selectedState&&this.setState({selectedState:!1,selectedNodes:new Set,selectedLinks:new Set,selectedNode:void 0})},n.prototype._onHover=function(t,n){if(n.persist(),this._onCloseCallout(),!this.state.selectedState){var i=function(t){var n=new Array,i=new Set;for(t.sourceLinks.forEach((function(t){n.push(t),i.add(t)}));n.length>0;)(e=n.shift().target)&&e.sourceLinks&&e.sourceLinks.forEach((function(t){i.add(t),n.push(t)}));for(t.targetLinks&&t.targetLinks.forEach((function(t){n.push(t),i.add(t)}));n.length>0;){var e;(e=n.shift().source)&&e.targetLinks&&e.targetLinks.forEach((function(t){i.add(t),n.push(t)}))}return i}(t),e=function(t){var n=[];return t.forEach((function(t){n.push(t.target),-1===n.indexOf(t.source)&&n.push(t.source)})),n}(i);e.push(t),this.setState({selectedState:!0,selectedNodes:new Set(Array.from(e).map((function(t){return t.index}))),selectedLinks:new Set(Array.from(i).map((function(t){return t.index}))),selectedNode:t,refSelected:n,isCalloutVisible:t.y1-t.y0<24,color:t.color,xCalloutValue:t.name,yCalloutValue:this._formatNumber(t.actualValue)})}},n.prototype._formatNumber=function(t){return this.props.formatNumberOptions?t.toLocaleString(void 0,this.props.formatNumberOptions):t.toString()},n.prototype._onStreamHover=function(t,n,i){if(t.persist(),this._onCloseCallout(),!this.state.selectedState){var e=function(t){var n=new Array,i=new Set,e=new Set;for(n.push(t.source),i.add(t);n.length>0;){var r=n.shift();e.add(r),r.targetLinks&&r.targetLinks.length>0&&r.targetLinks.forEach((function(t){n.push(t.source),i.add(t)}))}for(n.push(t.target);n.length>0;)r=n.shift(),e.add(r),r.sourceLinks&&r.sourceLinks.length>0&&r.sourceLinks.forEach((function(t){n.push(t.target),i.add(t)}));return{selectedLinks:i,selectedNodes:e}}(n),r=e.selectedLinks,u=e.selectedNodes;this.setState((0,o.Cl)({selectedState:!0,selectedNodes:new Set(Array.from(u).map((function(t){return t.index}))),selectedLinks:new Set(Array.from(r).map((function(t){return t.index}))),refSelected:t},this._linkCalloutAttributes(n,i)))}},n.prototype._onStreamLeave=function(t){this.state.selectedState&&this.setState({selectedState:!1,selectedNodes:new Set,selectedLinks:new Set,selectedLink:void 0})},n.prototype._onFocusLink=function(t,n,i){t.persist(),this._onCloseCallout(),this.setState((0,o.Cl)({refSelected:t.currentTarget},this._linkCalloutAttributes(n,i)))},n.prototype._fillStreamColors=function(t,n){var i=this.state;if(i.selectedState&&i.selectedLinks.has(t.index)){var e=i.selectedNode;return e?e.color:n}},n.prototype._fillStreamBorder=function(t,n){var i=this.state;if(i.selectedState){if(i.selectedLinks.has(t.index)){var e=i.selectedNode;return e?e.borderColor:n}return xd}return xd},n.prototype._getOpacityStream=function(t){var n=this.state;if(n.selectedState){if(!n.selectedLinks.has(t.index))return 1;if(!n.selectedNode)return.3}return 1},n.prototype._getOpacityStreamBorder=function(t){var n=this.state;return!n.selectedState||n.selectedLinks.has(t.index)||n.selectedNode?1:.5},n.prototype._fitParentContainer=function(){var t=this,n=this.state,i=n.containerWidth,e=n.containerHeight;this._reqID=requestAnimationFrame((function(){var n=t.props.parentRef?t.props.parentRef:t.chartContainer,r=n&&(t.props.enableReflow?Math.max(n.getBoundingClientRect().width,t._calculateChartMinWidth()):n.getBoundingClientRect().width),o=n&&n.getBoundingClientRect().height;(i!==r||e!==o)&&t.setState({containerWidth:r,containerHeight:o})}))},n.prototype._showTooltip=function(t,n,i,e){n&&(i.style("opacity",.9).style("color",this.props.theme.palette.neutralPrimary),i.html(t).style("left",e.pageX+"px").style("top",e.pageY-28+"px"))},n.prototype._hideTooltip=function(t){t.style("opacity",0)},n.prototype._isChartEmpty=function(){var t,n=null===(t=this.props.data)||void 0===t?void 0:t.SankeyChartData;return!(n&&n.nodes.length>0&&n.links.length>0)},n.defaultProps={enableReflow:!0},n}(u.Component),Nd=(0,r.I)(Dd,(function(t){var n,i,e,r=t.className,u=t.theme,a=t.pathColor,s=u.effects;return{root:[u.fonts.medium,{display:"flex",width:"100%",height:"100%",flexDirection:"column",overflow:"hidden"},r],links:{stroke:a||u.palette.black,fill:u?u.semanticColors.bodyBackground:"#F5F5F5",strokeWidth:3,selectors:(n={},n[$t.NK]={fill:"#000000"},n)},nodes:{fill:"#F5F5F5",selectors:(i={},i[$t.NK]={fill:"#000000"},i)},toolTip:(0,o.Cl)((0,o.Cl)({},t.theme.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:t.theme.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"}),nodeTextContainer:{selectors:{text:{selectors:(e={},e[$t.NK]={fill:"rgb(179, 179, 179)"},e)}},marginTop:"4px",marginLeft:"8px",marginBottom:"4px",marginRight:"8px"},calloutContentRoot:{boxShadow:s.elevation4},chartWrapper:{overflow:"auto"}}}));function Td(t){var n=0,i=t.children,e=i&&i.length;if(e)for(;--e>=0;)n+=i[e].value;else n=1;t.value=n}function Ed(t,n){t instanceof Map?(t=[void 0,t],void 0===n&&(n=Pd)):void 0===n&&(n=Od);for(var i,e,r,o,u,a=new _d(t),s=[a];i=s.pop();)if((r=n(i.data))&&(u=(r=Array.from(r)).length))for(i.children=r,o=u-1;o>=0;--o)s.push(e=r[o]=new _d(r[o])),e.parent=i,e.depth=i.depth+1;return a.eachBefore(Fd)}function Od(t){return t.children}function Pd(t){return Array.isArray(t)?t[1]:null}function Bd(t){void 0!==t.data.value&&(t.value=t.data.value),t.data=t.data.data}function Fd(t){var n=0;do{t.height=n}while((t=t.parent)&&t.height<++n)}function _d(t){this.data=t,this.depth=this.height=0,this.parent=null}function Hd(t,n){return t.parent===n.parent?1:2}function Rd(t){var n=t.children;return n?n[0]:t.t}function Id(t){var n=t.children;return n?n[n.length-1]:t.t}function Wd(t,n,i){var e=i/(n.i-t.i);n.c-=e,n.s+=i,t.c+=e,n.z+=i,n.m+=i}function zd(t,n,i){return t.a.parent===n.parent?t.a:i}function jd(t,n){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=n}!function(t){t[t.long=1]="long",t[t.compact=0]="compact"}(Ad||(Ad={})),function(t){t[t.preOrder=1]="preOrder",t[t.levelOrder=0]="levelOrder"}(Ld||(Ld={})),_d.prototype=Ed.prototype={constructor:_d,count:function(){return this.eachAfter(Td)},each:function(t,n){let i=-1;for(const e of this)t.call(n,e,++i,this);return this},eachAfter:function(t,n){for(var i,e,r,o=this,u=[o],a=[],s=-1;o=u.pop();)if(a.push(o),i=o.children)for(e=0,r=i.length;e<r;++e)u.push(i[e]);for(;o=a.pop();)t.call(n,o,++s,this);return this},eachBefore:function(t,n){for(var i,e,r=this,o=[r],u=-1;r=o.pop();)if(t.call(n,r,++u,this),i=r.children)for(e=i.length-1;e>=0;--e)o.push(i[e]);return this},find:function(t,n){let i=-1;for(const e of this)if(t.call(n,e,++i,this))return e},sum:function(t){return this.eachAfter((function(n){for(var i=+t(n.data)||0,e=n.children,r=e&&e.length;--r>=0;)i+=e[r].value;n.value=i}))},sort:function(t){return this.eachBefore((function(n){n.children&&n.children.sort(t)}))},path:function(t){for(var n=this,i=function(t,n){if(t===n)return t;var i=t.ancestors(),e=n.ancestors(),r=null;for(t=i.pop(),n=e.pop();t===n;)r=t,t=i.pop(),n=e.pop();return r}(n,t),e=[n];n!==i;)n=n.parent,e.push(n);for(var r=e.length;t!==i;)e.splice(r,0,t),t=t.parent;return e},ancestors:function(){for(var t=this,n=[t];t=t.parent;)n.push(t);return n},descendants:function(){return Array.from(this)},leaves:function(){var t=[];return this.eachBefore((function(n){n.children||t.push(n)})),t},links:function(){var t=this,n=[];return t.each((function(i){i!==t&&n.push({source:i.parent,target:i})})),n},copy:function(){return Ed(this).eachBefore(Bd)},[Symbol.iterator]:function*(){var t,n,i,e,r=this,o=[r];do{for(t=o.reverse(),o=[];r=t.pop();)if(yield r,n=r.children)for(i=0,e=n.length;i<e;++i)o.push(n[i])}while(o.length)}},jd.prototype=Object.create(_d.prototype);var Yd=(0,a.Z)(),$d=function(t){function n(n,i,e,r,o,u){void 0===r&&(r=[]),void 0===o&&(o=[]);var a=t.call(this,n,e,r,o)||this;return a.composition=i,a._treeTraversal=u,a}return(0,o.C6)(n,t),n.prototype.C=function(t,n){var i,e,r,o,u,a,s=(t=t<65?65:t>90?90:t)||75,l=Ed(this.treeData,(function(t){return t.children})),c=(null==l?void 0:l.height)+1;(function(){var t=Hd,n=1,i=1,e=null;function r(r){var s=function(t){for(var n,i,e,r,o,u=new jd(t,0),a=[u];n=a.pop();)if(e=n._.children)for(n.children=new Array(o=e.length),r=o-1;r>=0;--r)a.push(i=n.children[r]=new jd(e[r],r)),i.parent=n;return(u.parent=new jd(null,0)).children=[u],u}(r);if(s.eachAfter(o),s.parent.m=-s.z,s.eachBefore(u),e)r.eachBefore(a);else{var l=r,c=r,f=r;r.eachBefore((function(t){t.x<l.x&&(l=t),t.x>c.x&&(c=t),t.depth>f.depth&&(f=t)}));var h=l===c?1:t(l,c)/2,d=h-l.x,v=n/(c.x+h+d),p=i/(f.depth||1);r.eachBefore((function(t){t.x=(t.x+d)*v,t.y=t.depth*p}))}return r}function o(n){var i=n.children,e=n.parent.children,r=n.i?e[n.i-1]:null;if(i){!function(t){for(var n,i=0,e=0,r=t.children,o=r.length;--o>=0;)(n=r[o]).z+=i,n.m+=i,i+=n.s+(e+=n.c)}(n);var o=(i[0].z+i[i.length-1].z)/2;r?(n.z=r.z+t(n._,r._),n.m=n.z-o):n.z=o}else r&&(n.z=r.z+t(n._,r._));n.parent.A=function(n,i,e){if(i){for(var r,o=n,u=n,a=i,s=o.parent.children[0],l=o.m,c=u.m,f=a.m,h=s.m;a=Id(a),o=Rd(o),a&&o;)s=Rd(s),(u=Id(u)).a=n,(r=a.z+f-o.z-l+t(a._,o._))>0&&(Wd(zd(a,n,e),n,r),l+=r,c+=r),f+=a.m,l+=o.m,h+=s.m,c+=u.m;a&&!Id(u)&&(u.t=a,u.m+=f-c),o&&!Rd(s)&&(s.t=o,s.m+=l-h,e=n)}return e}(n,r,n.parent.A||e[0])}function u(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function a(t){t.x*=n,t.y=t.depth*i}return r.separation=function(n){return arguments.length?(t=n,r):t},r.size=function(t){return arguments.length?(e=!1,n=+t[0],i=+t[1],r):e?null:[n,i]},r.nodeSize=function(t){return arguments.length?(e=!0,n=+t[0],i=+t[1],r):e?[n,i]:null},r})().nodeSize([s,s/1.5]).separation((function(t,n){return t.parent===l&&n.parent===l?3.5:1}))(l).descendants().forEach((function(t){t.y=0===t.depth?10:130*t.depth,t.x+=n/2}));var f=[],h=0,d=function(t){var n,i;t.id=h,f.push({id:h,children:t.children,dataName:t.data.name,subName:t.data.subname,bodyText:t.data.bodytext,metricName:null===(n=t.data)||void 0===n?void 0:n.metric,fill:t.data.fill,x:t.x,y:t.y,parentID:null===(i=t.parent)||void 0===i?void 0:i.id}),h++};0===this._treeTraversal?l.each((function(t){d(t)})):l.eachBefore((function(t){d(t)}));for(var v=3*s,p=v/3.45,g=20,m=new Set,y=0,b=f;y<b.length;y++){var x=b[y],C=0===x.id?"Root Node":"Parent info parentId: ".concat(x.parentID,"\n ").concat(f[x.parentID].dataName,"\n ").concat(f[x.parentID].subName);if(!x.children&&!m.has(x.parentID)&&3===c){var w=(v-g)/2,M=p;m.add(x.parentID),this.k(x.id,f[x.parentID].x,f[x.parentID].y,f[x.id].x,f[x.id].y,!0,v,p,g);for(var k=null===(i=f[x.parentID])||void 0===i?void 0:i.children,S=(null===(e=f[x.parentID])||void 0===e?void 0:e.x)-w/2-10,A=(null===(r=f[x.parentID])||void 0===r?void 0:r.x)+w/2+10,L=null===(o=f[x.parentID])||void 0===o?void 0:o.x,V=null===(u=k[0])||void 0===u?void 0:u.y,D=0;D<k.length;++D){var N=k[D];void 0!==this.composition?0===this.composition?(this.D(N.data.name,N.data.subname,N.data.bodytext,N.data.metricName,D%2==0?1===k.length?L:S:A,V,N.data.fill,1===k.length?v:w,p,N.id,C),D%2==1&&(V+=M+g)):(this.D(N.data.name,N.data.subname,N.data.bodytext,N.data.metricName,L,V,N.data.fill,v,p,N.id,C),V+=M+g):k.length>2?(this.D(N.data.name,N.data.subname,N.data.bodytext,N.data.metricName,D%2==0?S:A,V,N.data.fill,1===k.length?v:w,p,N.id,C),D%2==1&&(V+=M+g)):(this.D(N.data.name,N.data.subname,N.data.bodytext,N.data.metricName,L,V,N.data.fill,v,p,N.id,C),V+=M+g)}}if((x.children||c<=2)&&(this.D(x.dataName,x.subName,x.bodyText,x.metricName,x.x,x.y,x.fill,v,p,x.id,C),0===x.id&&x.children)){var T=vi(k=null===(a=f[x.id])||void 0===a?void 0:a.children,(function(t){return t.x})),E=pi(k,(function(t){return t.x}));this.k(x.id,x.x,x.y,T,x.children[0].y,!1,v,p,g,E)}}},n}(function(){function t(t,n,i,e){void 0===i&&(i=[]),void 0===e&&(e=[]),this._nodeElements=[],this._linkElements=[],this.treeData=t,this.styleClassNames=n,this._nodeElements=i,this._linkElements=e}return t.prototype.N=function(t,n,i,e){var r,o=t.split(/\s+/).reverse(),u="",a=ls(".svgTree").append("text").attr("class","tempText").append("tspan").text(null);e&&a.attr("class",e);for(var s=[];u=o.pop();)if(s.push(u),a.text(s.join(" ")+" "),null!==a.node()&&a.node().getComputedTextLength()>n-i){s.pop(),s.push("...");break}return r=s.join(" ")+" ",a.text(null),cs(".tempText").remove(),r},t.prototype.D=function(t,n,i,e,r,o,a,s,l,c,f){var h="nodeId: ".concat(c," \nnodeMainText: ").concat(t,"\nsubText ").concat(n," ").concat(f),d=r-s/2;!e&&0===c&&i||this._nodeElements.push(u.createElement("rect",{width:s,height:l,x:d,y:o,tabIndex:0,role:"text","data-is-focusable":!0,"aria-label":h,className:this.styleClassNames.rectNode,stroke:a,key:"".concat(c).concat(this.styleClassNames.rectNode)})),n&&(n=this.N(n,s,s/4,this.styleClassNames.rectSubText)),i&&(i=this.N(i,s,s/4,this.styleClassNames.rectBodyText)),e&&(e=this.N(e,s,s/4,this.styleClassNames.rectMetricText)),t=this.N(t,s,s/4,this.styleClassNames.rectText);var v=e?u.createElement("tspan",{className:this.styleClassNames.rectMetricText,dy:"1.4em",x:d+s/2},e):i?u.createElement(u.Fragment,null,u.createElement("tspan",{className:this.styleClassNames.rectSubText,dy:"1.4em",x:d+s/2},n),u.createElement("tspan",{className:this.styleClassNames.rectBodyText,dy:"1.4em",x:d+s/2},i)):u.createElement("tspan",{className:this.styleClassNames.rectSubText,dy:"1.4em",x:d+s/2},n);n||e||i?this._nodeElements.push(u.createElement("text",{textAnchor:"middle",className:e?this.styleClassNames.rectSubText:this.styleClassNames.rectText,dy:e?o+l/2.5:o+l/2,x:d+s/2,key:"".concat(c).concat(this.styleClassNames.rectText),"data-is-focusable":0===c},t,v)):this._nodeElements.push(u.createElement("text",{textAnchor:"middle",className:this.styleClassNames.rectMetricText,dy:o+l/1.6,x:d+s/2,key:"".concat(c).concat(this.styleClassNames.rectText),"data-is-focusable":0===c},t))},t.prototype.O=function(t,n,i,e,r,o,u,a,s){var l="M".concat(i-o/2,",").concat(e-a," H").concat(s+o/2," M").concat(t,",").concat(e-a,"\n V").concat(n+u+a/2),c="M".concat(t,",").concat(n+u+a/2," V").concat(n+5*a,"\n H").concat(t-o/2," H").concat(t+o/2);return r?c:l},t.prototype.k=function(t,n,i,e,r,o,a,s,l,c){void 0===c&&(c=0),this._linkElements.push(u.createElement("path",{className:this.styleClassNames.link,d:this.O(n,i,e,r,o,a,s,l,c),key:"".concat(t).concat(this.styleClassNames.link)}))},t}()),Xd=function(t){function n(n){var i,e,r,o,u,a=t.call(this,n)||this;return a._nodeElements=[],a._linkElements=[],a._margin={top:(null===(i=a.props.margins)||void 0===i?void 0:i.top)||30,bottom:(null===(e=a.props.margins)||void 0===e?void 0:e.bottom)||30,left:(null===(r=a.props.margins)||void 0===r?void 0:r.left)||50,right:(null===(o=a.props.margins)||void 0===o?void 0:o.right)||20},a._width=a.props.width||1500,a._height=a.props.height||700,a._treeData=a.props.treeData,a._composition=null===(u=a.props)||void 0===u?void 0:u.composition,a._treeTraversal=a.props.treeTraversal,a.state={_width:a._width,_height:a._height},a}return(0,o.C6)(n,t),n.prototype.componentDidMount=function(){var t=this.props,n=t.theme,i=t.className,e=t.styles;this._classNames=Yd(e,{theme:n,className:i}),this.P(),this.setState({_width:this.props.width||1500,_height:this.props.height||700})},n.prototype.componentDidUpdate=function(t){if(t.layoutWidth!==this.props.layoutWidth){var n=cs("text"),i=cs("rect"),e=cs("path");0===this._nodeElements.length&&0===this._linkElements.length&&(n.remove(),i.remove(),e.remove()),this.P()}},n.prototype.P=function(){var t=[],n=[],i=new $d(this._treeData,this._composition,this._classNames,t,n,this._treeTraversal),e=this.state._width-this._margin.left-this._margin.right;i.C(this.props.layoutWidth,e),this._nodeElements=t,this._linkElements=n},n.prototype.render=function(){var t;return u.createElement(xl,null,u.createElement("div",{className:null===(t=this._classNames)||void 0===t?void 0:t.root},u.createElement("svg",{className:"svgTree",width:this.state._width-this._margin.left-this._margin.right,height:this.state._height-this._margin.top-this._margin.bottom},u.createElement("g",{className:"svgNode"},this._nodeElements.map((function(t){return t}))),u.createElement("g",{className:"svgLink"},this._linkElements.map((function(t){return t}))))))},n}(u.Component),Gd=(0,r.I)(Xd,(function(t){return{root:[t.theme.spacing,"ms-TreeChart",t.className,{overflow:"scroll"}],link:{fill:"none",stroke:t.theme.palette.neutralSecondary,strokeWidth:"2px"},rectNode:{strokeWidth:"2px",fill:t.theme.semanticColors.bodyBackground,padding:"10px",rx:"2px"},rectText:(0,o.Cl)({fill:t.theme.palette.neutralDark},t.theme.fonts.large),rectSubText:(0,o.Cl)({fill:t.theme.palette.neutralPrimary},t.theme.fonts.medium),rectBodyText:(0,o.Cl)({fill:t.theme.palette.neutralPrimaryAlt},t.theme.fonts.xSmall),rectMetricText:(0,o.Cl)({fill:t.theme.palette.neutralDark},t.theme.fonts.xLarge)}}));function qd(t,n){let i,e;if(void 0===n)for(const n of t)null!=n&&(void 0===i?n>=n&&(i=e=n):(i>n&&(i=n),e<n&&(e=n)));else{let r=-1;for(let o of t)null!=(o=n(o,++r,t))&&(void 0===i?o>=o&&(i=e=o):(i>o&&(i=o),e<o&&(e=o)))}return[i,e]}var Ud,Zd,Kd=(0,a.Z)(),Jd=function(t){function n(n){var i=t.call(this,n)||this;return i.margin={top:2,right:0,bottom:0,left:0},i._isRTL=(0,s.jI)(),i.state={_points:null,_width:i.props.width||80,_height:i.props.height||20,_valueTextWidth:i.props.valueTextWidth||80},i._emptyChartId=g("_SparklineChart_empty"),i}return(0,o.C6)(n,t),n.prototype.componentDidMount=function(){var t=this;if(!this._isChartEmpty()){var n=sh().x((function(n){return t.x(n.x)})).y0(this.state._height).y1((function(n){return t.y(n.y)})).curve(Sf);this.area=n;var i=Vf().x((function(n){return t.x(n.x)})).y((function(n){return t.y(n.y)})).curve(Sf);this.line=i;var e=this.props.data.lineChartData[0].data,r=qd(e,(function(t){return t.x})),o=r[0],u=r[1];this.x=Ue().domain([o,u]).range([this.margin.left,this.state._width-this.margin.right]),this.y=Ue().domain([0,pi(e,(function(t){return t.y}))]).range([this.state._height-this.margin.bottom,this.margin.top]),this.setState({_points:e})}},n.prototype.drawSparkline=function(){return u.createElement(u.Fragment,null,u.createElement("path",{className:"line",d:this.line(this.state._points),fill:"transparent",opacity:1,strokeWidth:2,stroke:this.props.data.lineChartData[0].color}),u.createElement("path",{className:"area",d:this.area(this.state._points),opacity:1,fillOpacity:.2,fill:this.props.data.lineChartData[0].color,role:"img","aria-hidden":!0}))},n.prototype.render=function(){var t=Kd(this.props.styles,{theme:this.props.theme});return this._isChartEmpty()?u.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):u.createElement(xl,{direction:zs.horizontal,isCircularNavigation:!0,className:t.inlineBlock},u.createElement("div",{className:t.inlineBlock},this.state._width>=50&&this.state._height>=16?u.createElement("svg",{width:this.state._width,height:this.state._height,"data-is-focusable":!0,"aria-label":"Sparkline with label ".concat(this.props.data.lineChartData[0].legend)},this.state._points?this.drawSparkline():null):u.createElement(u.Fragment,null),this.props.showLegend&&this.props.data.lineChartData[0].legend?u.createElement("svg",{width:this.state._valueTextWidth,height:this.state._height,"data-is-focusable":!0},u.createElement("text",{x:"0%",textAnchor:this._isRTL?"end":"start",dx:8,y:"100%",dy:-5,className:t.valueText},this.props.data.lineChartData[0].legend)):u.createElement(u.Fragment,null)))},n.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.lineChartData&&this.props.data.lineChartData.length>0&&0===this.props.data.lineChartData.filter((function(t){return 0===t.data.length})).length)},n}(u.Component),Qd=(0,r.I)(Jd,(function(t){return{inlineBlock:{display:"inline"},valueText:(0,o.Cl)((0,o.Cl)({},t.theme.fonts.smallPlus),{fill:t.theme.semanticColors.messageText})}})),tv=(0,a.Z)(),nv=function(t){function n(n){var i,e,r,a,l=t.call(this,n)||this;return l._isRtl=(0,s.jI)(),l._getDomainNRangeValues=function(t,n,i,e,r,o,u,a,s){var l;return l=o===os.NumericAxis?function(t,n,i,e,r){var o=pi(t,(function(t){return t.x})),u=e?n.left:n.left+r,a=e?i-n.right-r:i-n.right;return e?{dStartValue:o,dEndValue:0,rStartValue:u,rEndValue:a}:{dStartValue:0,dEndValue:o,rStartValue:u,rEndValue:a}}(t,n,i,r,s):{dStartValue:0,dEndValue:0,rStartValue:0,rEndValue:0},l},l._getMargins=function(t){l.margins=t},l._renderContentForOnlyBars=function(t){var n,i,e,r,o=l.props,a=o.useSingleColor,s=void 0!==a&&a,c=o.enableGradient,f=void 0!==c&&c,h=0;return l.props.data.forEach((function(n,i){n.y===t.y&&(h=i)})),s?(r=l.props.colors?l._createColors()(1):yf(1,0,null===(n=l.props.theme)||void 0===n?void 0:n.isInverted),f&&(r=Zs(0,0,null===(i=l.props.theme)||void 0===i?void 0:i.isInverted)[0])):r=t.color?t.color:l.props.colors?l._createColors()(t.x):yf(h,0,null===(e=l.props.theme)||void 0===e?void 0:e.isInverted),u.createElement(u.Fragment,null,u.createElement(js.ChartHoverCard,{XValue:t.xAxisCalloutData||t.x.toString(),Legend:t.legend,YValue:t.yAxisCalloutData||t.y,color:r,culture:l.props.culture}))},l._renderCallout=function(t){return t?l._renderContentForOnlyBars(t):null},l._getCustomizedCallout=function(){return l.props.onRenderCalloutPerDataPoint?l.props.onRenderCalloutPerDataPoint(l.state.dataPointCalloutProps,l._renderCallout):null},l._getGraphData=function(t,n,i,e,r,o){return l._bars=l._yAxisType===us.NumericAxis?l._createNumericBars(i,e,r,o):l._createStringBars(i,e,r,o)},l._refCallback=function(t,n){l._refArray.push({index:n,refElement:t})},l._getCalloutContentForBar=function(t){var n,i,e,r,o=[],u=l.props,a=u.useSingleColor,s=void 0!==a&&a,c=u.enableGradient,f=void 0!==c&&c,h=l.props.data,d=h.filter((function(n){return n.y===t.y})),v=0;return h.forEach((function(n,i){n.y===t.y&&(v=i)})),s?(r=l.props.colors?l._createColors()(1):yf(1,0,null===(n=l.props.theme)||void 0===n?void 0:n.isInverted),f&&(r=Zs(0,0,null===(i=l.props.theme)||void 0===i?void 0:i.isInverted)[0])):r=d[0].color?d[0].color:l.props.colors?l._createColors()(d[0].x):yf(v,0,null===(e=l.props.theme)||void 0===e?void 0:e.isInverted),o.push({legend:d[0].legend,y:d[0].x,color:r,data:d[0].yAxisCalloutData,yAxisCalloutData:d[0].yAxisCalloutData}),{YValueHover:o,hoverXValue:t.yAxisCalloutData||t.y.toString()}},l._onBarLeave=function(){},l._handleChartMouseLeave=function(){l._calloutAnchorPoint=null,l.setState({isCalloutVisible:!1,activeXdataPoint:null,YValueHover:[],hoverXValue:""})},l._onBarFocus=function(t,n,i){if((!1===l.state.isLegendSelected||l._isLegendHighlighted(t.legend))&&l._calloutAnchorPoint!==t){var e=l._getCalloutContentForBar(t),r=e.YValueHover,o=e.hoverXValue;l._refArray.forEach((function(e,u){n===u&&l.setState({refSelected:e.refElement,isCalloutVisible:!0,selectedLegendTitle:t.legend,dataForHoverCard:t.x,color:l.props.useSingleColor?i:t.color,xCalloutValue:t.yAxisCalloutData||t.y.toString(),yCalloutValue:t.xAxisCalloutData||t.x.toString(),dataPointCalloutProps:t,activeXdataPoint:t.x,YValueHover:r,hoverXValue:o,callOutAccessibilityData:t.callOutAccessibilityData})}))}},l._getScales=function(t,n,i){if(i){var e=pi(l._points,(function(t){return t.x})),r=pi(l._points,(function(t){return t.y}));return{xBarScale:Ue().domain(l._isRtl?[e,0]:[0,e]).nice().range([l.margins.left,n-l.margins.right]),yBarScale:o=Ue().domain([0,r]).range([t-l.margins.bottom,l.margins.top])}}e=pi(l._points,(function(t){return t.x}));var o=Zu().domain(l._yAxisLabels).range([t-l.margins.bottom-l._barHeight/2,l.margins.top+l._barHeight/2]).padding(l.props.yAxisPadding||0);return{xBarScale:Ue().domain(l._isRtl?[e,0]:[0,e]).nice().range([l.margins.left,n-l.margins.right]),yBarScale:o}},l._closeCallout=function(){l.setState({isCalloutVisible:!1})},l._getLegendData=function(t,n){var i=l.props.useSingleColor,e=[];return t.forEach((function(t,n){var r,o,u,a,s=i?l.props.colors?l._createColors()(1):yf(1,0,null===(r=l.props.theme)||void 0===r?void 0:r.isInverted):t.color;l.props.enableGradient&&(s=(null===(o=t.gradient)||void 0===o?void 0:o[0])||Zs(n,0,null===(u=l.props.theme)||void 0===u?void 0:u.isInverted)[0],i&&(s=Zs(0,0,null===(a=l.props.theme)||void 0===a?void 0:a.isInverted)[0]));var c={title:t.legend,color:s,hoverAction:function(){l._handleChartMouseLeave(),l._onLegendHover(t.legend)},onMouseOutAction:function(t){l._onLegendLeave(t)}};e.push(c)})),u.createElement(Lc,(0,o.Cl)({legends:e,enabledWrapLines:l.props.enabledLegendsWrapLines,overflowProps:l.props.legendsOverflowProps,focusZonePropsInHoverCard:l.props.focusZonePropsForLegendsInHoverCard,overflowText:l.props.legendsOverflowText},l.props.legendProps,{onChange:l._onLegendSelectionChange.bind(l)}))},l._isLegendSelected=function(){return l.state.isLegendSelected},l._isLegendHighlighted=function(t){return l._getHighlightedLegend().includes(t)},l._getAxisData=function(t){if(t&&t.yAxisDomainValues.length){var n=t.yAxisDomainValues;l._xMax=Math.max(n[n.length-1],l.props.xMaxValue||0)}},l._getAriaLabel=function(t){var n,i=t.xAxisCalloutData||t.x,e=t.yAxisCalloutData||t.y;return(null===(n=t.callOutAccessibilityData)||void 0===n?void 0:n.ariaLabel)||"".concat(i,". ")+"".concat(e,".")},l._getChartTitle=function(){var t=l.props,n=t.chartTitle,i=t.data;return(n?"".concat(n,". "):"")+"Horizontal bar chart with ".concat((null==i?void 0:i.length)||0," bars. ")},Qs(l),l.state={color:"",dataForHoverCard:0,isCalloutVisible:!1,isLegendSelected:void 0!==(null===(i=n.legendProps)||void 0===i?void 0:i.selectedLegend),isLegendHovered:!1,refSelected:null,selectedLegendTitle:null!==(r=null===(e=n.legendProps)||void 0===e?void 0:e.selectedLegend)&&void 0!==r?r:"",xCalloutValue:"",yCalloutValue:"",activeXdataPoint:null,YValueHover:[],hoverXValue:"",selectedLegends:(null===(a=n.legendProps)||void 0===a?void 0:a.selectedLegends)||[]},l._calloutId=g("callout"),l._tooltipId=g("HBCWATooltipID_"),l._refArray=[],l._xAxisType=l.props.data&&l.props.data.length>0?Ts(l.props.data[0].x,!0):os.NumericAxis,l._yAxisType=l.props.data&&l.props.data.length>0?Ts(l.props.data[0].y,!1):us.StringAxis,l._cartesianChartRef=u.createRef(),l}return(0,o.C6)(n,t),n.prototype.componentDidUpdate=function(t){var n,i,e;Ws(null===(n=t.legendProps)||void 0===n?void 0:n.selectedLegends,null===(i=this.props.legendProps)||void 0===i?void 0:i.selectedLegends)||this.setState({selectedLegends:(null===(e=this.props.legendProps)||void 0===e?void 0:e.selectedLegends)||[]})},n.prototype.render=function(){var t=this;this._adjustProps();var n=(0,o.fX)([],this._points,!0).reverse();this._yAxisLabels=n.map((function(t){return t.y})),this._xMax=Math.max(pi(this._points,(function(t){return t.x})),this.props.xMaxValue||0);var i=this._getLegendData(this._points,this.props.theme.palette);this._classNames=tv(this.props.styles,{theme:this.props.theme,legendColor:this.state.color});var e=(0,o.Cl)((0,o.Cl)({isCalloutVisible:this.state.isCalloutVisible,directionalHint:x.topAutoEdge,id:"toolTip".concat(this._calloutId),target:this.state.refSelected,isBeakVisible:!1,gapSpace:15,color:this.state.color,legend:this.state.selectedLegendTitle,XValue:this.state.xCalloutValue,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0},this.props.calloutProps),Os(this.state.callOutAccessibilityData)),r={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return u.createElement(Hf,(0,o.Cl)({},this.props,{chartTitle:this._getChartTitle(),points:this._points,chartType:rs.HorizontalBarChartWithAxis,xAxisType:this._xAxisType,yAxisType:this._yAxisType,stringDatasetForYAxisDomain:this._yAxisLabels,calloutProps:e,tickParams:r,legendBars:i,createYAxis:ds,getDomainNRangeValues:this._getDomainNRangeValues,createStringYAxis:ps,getMinMaxOfYAxis:Vs,barwidth:this._barHeight,focusZoneDirection:zs.vertical,customizedCallout:this._getCustomizedCallout(),getmargins:this._getMargins,getGraphData:this._getGraphData,getAxisData:this._getAxisData,onChartMouseLeave:this._handleChartMouseLeave,ref:this._cartesianChartRef,children:function(n){return u.createElement(u.Fragment,null,u.createElement("g",null,t._bars))}}))},Object.defineProperty(n.prototype,"chartContainer",{get:function(){var t;return(null===(t=this._cartesianChartRef.current)||void 0===t?void 0:t.chartContainer)||null},enumerable:!1,configurable:!0}),n.prototype._adjustProps=function(){this._points=this.props.data||[],this._barHeight=this.props.barHeight||32;var t=this.props.theme.palette;this._colors=this.props.colors||[t.blueLight,t.blue,t.blueMid,t.blueDark]},n.prototype._createColors=function(){var t=this,n=this._colors.length<=1?1:1/(this._colors.length-1),i=this.props.useSingleColor;if(void 0!==i&&i)return function(n){var i=t.props,e=i.theme,r=i.colors;return r&&r.length>0?r[0]:e.palette.blueLight};for(var e=[],r=0;r<this._colors.length;r++)e.push(n*r*this._xMax);return Ue().domain(e).range(this._colors)},n.prototype._onBarHover=function(t,n,i){i.persist();var e=this._getCalloutContentForBar(t),r=e.YValueHover,o=e.hoverXValue;!1!==this.state.isLegendSelected&&!this._isLegendHighlighted(t.legend)||this._calloutAnchorPoint===t||(this._calloutAnchorPoint=t,this.setState({refSelected:i,isCalloutVisible:!0,dataForHoverCard:t.x,selectedLegendTitle:t.legend,color:this.props.useSingleColor||this.props.enableGradient?n:t.color,xCalloutValue:t.yAxisCalloutData||t.y.toString(),yCalloutValue:t.xAxisCalloutData||t.x.toString(),dataPointCalloutProps:t,activeXdataPoint:t.x,YValueHover:r,hoverXValue:o,callOutAccessibilityData:t.callOutAccessibilityData}))},n.prototype._createNumericBars=function(t,n,i,e){var r=this,a=this.props.useSingleColor,s=void 0!==a&&a,l=this._getScales(t,n,!0),c=l.xBarScale,f=l.yBarScale,h=(0,o.fX)([],this._points,!0);h.sort((function(t,n){var i="number"==typeof t.y?t.y:parseFloat(t.y);return("number"==typeof n.y?n.y:parseFloat(n.y))-i}));var d=h.map((function(t,i){var e,o,a,l,h,d,v,p,m,y=!0;if((r.state.isLegendHovered||r.state.isLegendSelected)&&(y=r._isLegendHighlighted(t.legend)),r._classNames=tv(r.props.styles,{theme:r.props.theme,legendColor:r.state.color,shouldHighlight:y}),Math.max(f(t.y),0)<1)return u.createElement(u.Fragment,{key:t.x}," ");m=s?r.props.colors?r._createColors()(1):yf(1,0,null===(e=r.props.theme)||void 0===e?void 0:e.isInverted):r.props.colors?r._createColors()(t.x):yf(i,0,null===(o=r.props.theme)||void 0===o?void 0:o.isInverted);var b=m=t.color&&!s?t.color:m;if(r.props.enableGradient){var x=Math.max(r._points.findIndex((function(n){return n===t})),0);m=(null===(a=t.gradient)||void 0===a?void 0:a[0])||Zs(x,0,null===(l=r.props.theme)||void 0===l?void 0:l.isInverted)[0],b=(null===(h=t.gradient)||void 0===h?void 0:h[1])||Zs(x,0,null===(d=r.props.theme)||void 0===d?void 0:d.isInverted)[1],s&&(m=Zs(0,0,null===(v=r.props.theme)||void 0===v?void 0:v.isInverted)[0],b=Zs(0,0,null===(p=r.props.theme)||void 0===p?void 0:p.isInverted)[1]),r._points[x].color=m}var C=g("HBCWA_Gradient")+"_".concat(i,"_").concat(t.x);return u.createElement(u.Fragment,{key:"".concat(i,"_").concat(t.x)},r.props.enableGradient&&u.createElement("defs",null,u.createElement("linearGradient",{id:C},u.createElement("stop",{offset:"0",stopColor:m}),u.createElement("stop",{offset:"100%",stopColor:b}))),u.createElement("rect",{key:t.y,x:r._isRtl?c(t.x):r.margins.left,className:r._classNames.opacityChangeOnHover,y:f(t.y)-r._barHeight/2,"data-is-focusable":y,width:r._isRtl?n-r.margins.right-Math.max(c(t.x),0):Math.max(c(t.x),0)-r.margins.left,height:r._barHeight,ref:function(n){r._refCallback(n,t.legend)},rx:r.props.roundCorners?3:0,onClick:t.onClick,onMouseOver:r._onBarHover.bind(r,t,m),"aria-label":r._getAriaLabel(t),role:"img","aria-labelledby":"toolTip".concat(r._calloutId),onMouseLeave:r._onBarLeave,onFocus:r._onBarFocus.bind(r,t,i,m),onBlur:r._onBarLeave,fill:r.props.enableGradient?"url(#".concat(C,")"):m}))}));return d},n.prototype._tooltipOfYAxislabels=function(t){var n=this,i=t.tooltipCls,e=t.yAxis,r=t.id;if(null===e)return null;for(var o=ls("body").append("div").attr("id",r).attr("class",i).style("opacity",0),u=e.selectAll("#BaseSpan")._groups[0],a=u&&Object.keys(u).length,s=[],l=0;l<a;l++){var c=u[l].dataset&&Object.values(u[l].dataset)[0];s.push(c)}var f=e.selectAll(".tick")._groups[0],h=f&&Object.keys(f).length,d=function(t){ls(f[t]).on("mouseover",(function(i,e){n.state.tooltipElement||(o.style("opacity",.9),o.text(s[t]).style("left",i.pageX+"px").style("top",i.pageY-28+"px"))})).on("mouseout",(function(t){o.style("opacity",0)}))};for(l=0;l<h;l++)d(l)},n.prototype._createStringBars=function(t,n,i,e){var r=this,o=this._getScales(t,n,!1),a=o.xBarScale,s=o.yBarScale,l=this.props.useSingleColor,c=void 0!==l&&l,f=this._points.map((function(t,i){var e,o,l,f,h,d,v,p,m,y=!0;if((r.state.isLegendHovered||r.state.isLegendSelected)&&(y=r._isLegendHighlighted(t.legend)),r._classNames=tv(r.props.styles,{theme:r.props.theme,legendColor:r.state.color,shouldHighlight:y}),Math.max(s(t.y),0)<1)return u.createElement(u.Fragment,{key:t.x}," ");m=c?r.props.colors?r._createColors()(1):yf(1,0,null===(e=r.props.theme)||void 0===e?void 0:e.isInverted):r.props.colors?r._createColors()(t.x):yf(i,0,null===(o=r.props.theme)||void 0===o?void 0:o.isInverted);var b=m=t.color&&!c?t.color:m;if(r.props.enableGradient){var x=r._points.findIndex((function(n){return n===t}));m=(null===(l=t.gradient)||void 0===l?void 0:l[0])||Zs(x,0,null===(f=r.props.theme)||void 0===f?void 0:f.isInverted)[0],b=(null===(h=t.gradient)||void 0===h?void 0:h[1])||Zs(x,0,null===(d=r.props.theme)||void 0===d?void 0:d.isInverted)[1],c&&(m=Zs(0,0,null===(v=r.props.theme)||void 0===v?void 0:v.isInverted)[0],b=Zs(0,0,null===(p=r.props.theme)||void 0===p?void 0:p.isInverted)[1]),r._points[x].color=m}var C=g("HBCWA_Gradient")+"_".concat(i,"_").concat(t.x);return u.createElement(u.Fragment,{key:"".concat(i,"_").concat(t.x)},r.props.enableGradient&&u.createElement("defs",null,u.createElement("linearGradient",{id:C},u.createElement("stop",{offset:"0",stopColor:m}),u.createElement("stop",{offset:"100%",stopColor:b}))),u.createElement("rect",{transform:"translate(0,".concat(.5*(s.bandwidth()-r._barHeight),")"),key:t.x,className:r._classNames.opacityChangeOnHover,x:r._isRtl?a(t.x):r.margins.left,y:s(t.y),rx:r.props.roundCorners?3:0,width:r._isRtl?n-r.margins.right-Math.max(a(t.x),0):Math.max(a(t.x),0)-r.margins.left,height:r._barHeight,"aria-labelledby":"toolTip".concat(r._calloutId),"aria-label":r._getAriaLabel(t),role:"img",ref:function(n){r._refCallback(n,t.legend)},onClick:t.onClick,onMouseOver:r._onBarHover.bind(r,t,m),onMouseLeave:r._onBarLeave,onBlur:r._onBarLeave,"data-is-focusable":y,onFocus:r._onBarFocus.bind(r,t,i,m),fill:r.props.enableGradient?"url(#".concat(C,")"):m}))}));if(!this.props.showYAxisLablesTooltip)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}if(this.props.showYAxisLablesTooltip){var h=ls(e).call(s);if(!this.state.tooltipElement)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}var d={tooltipCls:this._classNames.tooltip,id:this._tooltipId,yAxis:h};h&&this._tooltipOfYAxislabels(d)}return f},n.prototype._onLegendHover=function(t){this._isLegendSelected()||this.setState({isLegendHovered:!0,selectedLegendTitle:t})},n.prototype._onLegendLeave=function(t){!t&&this._isLegendSelected()||this.setState({isLegendHovered:!1,selectedLegendTitle:"",isLegendSelected:!t&&this._isLegendSelected()})},n.prototype._getHighlightedLegend=function(){return this.state.selectedLegends.length>0?this.state.selectedLegends:this.state.selectedLegendTitle?[this.state.selectedLegendTitle]:[]},n.prototype._onLegendSelectionChange=function(t,n,i){var e,r;(null===(e=this.props.legendProps)||void 0===e?void 0:e.canSelectMultipleLegends)?this.setState({selectedLegends:t,selectedLegendTitle:null==i?void 0:i.title}):this.setState({selectedLegends:t.slice(-1),selectedLegendTitle:null==i?void 0:i.title}),this.setState({isLegendSelected:t.length>0}),(null===(r=this.props.legendProps)||void 0===r?void 0:r.onChange)&&this.props.legendProps.onChange(t,n,i)},n}(u.Component),iv=(0,r.I)(nv,(function(t){var n=t.shouldHighlight,i=t.theme;return{opacityChangeOnHover:{opacity:n?"":"0.1"},xAxisTicks:[],tooltip:(0,o.Cl)((0,o.Cl)({},i.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:i.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"})}}));!function(t){t.Percentage="percentage",t.Fraction="fraction"}(Ud||(Ud={})),function(t){t.SingleSegment="single-segment",t.MultipleSegments="multiple-segments"}(Zd||(Zd={}));var ev=[{minRadius:52,arcWidth:12,fontSize:20},{minRadius:70,arcWidth:16,fontSize:24},{minRadius:88,arcWidth:20,fontSize:32},{minRadius:106,arcWidth:24,fontSize:32},{minRadius:124,arcWidth:28,fontSize:40},{minRadius:142,arcWidth:32,fontSize:40}],rv=(0,a.Z)(),ov=function(t,n,i,e,r){return void 0===r&&(r=!1),r?0===n&&e===Zd.SingleSegment?"".concat(t.legend,", ").concat(t.size," out of ").concat(i," or ").concat((t.size/i*100).toFixed(),"%"):"".concat(t.legend,", ").concat(t.start," to ").concat(t.end):0===n&&e===Zd.SingleSegment?"".concat(t.size," (").concat((t.size/i*100).toFixed(),"%)"):"".concat(t.start," - ").concat(t.end)},uv=function(t,n,i,e,r){return void 0===r&&(r=!1),r?0!==n?t.toString():e===Ud.Fraction?"".concat((t/i*100).toFixed(),"%"):"".concat(t,"/").concat(i):"function"==typeof e?e([t-n,i-n]):0!==n?t.toString():e===Ud.Fraction?"".concat(t,"/").concat(i):"".concat((t/i*100).toFixed(),"%")},av=function(t){function n(n){var i,e=t.call(this,n)||this;return e._getMargins=function(){var t=e.props,n=t.hideMinMax;return{left:16+(n?0:40),right:16+(n?0:40),top:16+(t.chartTitle?27:2),bottom:16+(t.sublabel?20:0)}},e._getStylesBasedOnBreakpoint=function(){for(var t=ev.length-1;t>=0;t-=1)if(e._outerRadius>=ev[t].minRadius)return{arcWidth:ev[t].arcWidth,chartValueSize:ev[t].fontSize};return{arcWidth:ev[0].arcWidth,chartValueSize:ev[0].fontSize}},e._processProps=function(){var t=e.props,n=t.minValue,i=void 0===n?0:n,r=t.maxValue,o=t.theme,u=i,a=e.props.segments.map((function(t,n){var i,e=Math.max(t.size,0);return u+=e,{legend:t.legend,size:e,color:void 0!==t.color?bf(t.color,o.isInverted):yf(n,0,o.isInverted),gradient:null!==(i=t.gradient)&&void 0!==i?i:Zs(n,0,o.isInverted),accessibilityData:t.accessibilityData,start:u-e,end:u}}));void 0!==r&&u<r&&(a.push({legend:"Unknown",size:r-u,color:o.palette.neutralLight,start:u,end:r}),u=r);var s=of().cornerRadius(e.props.roundCorners?3:0).padAngle(2/e._outerRadius).padRadius(e._outerRadius),l=e._isRTL?Array.from(a).reverse():a,c=-Math.PI/2,f=l.map((function(t,n){var r=c+t.size/(u-i)*Math.PI,o=s({innerRadius:e._innerRadius,outerRadius:e._outerRadius,startAngle:c,endAngle:r});return c=r,{d:o,segmentIndex:e._isRTL?a.length-1-n:n,startAngle:c-t.size/(u-i)*Math.PI,endAngle:r}}));return e._minValue=i,e._maxValue=u,e._segments=a,{arcs:f}},e._renderNeedle=function(){var t=function(t,n,i){var e=(t-n)/(i-n)*180;return e<0?e=0:e>180&&(e=180),e}(e.props.chartValue,e._minValue,e._maxValue),n=e._isRTL?180-t:t,i=e._outerRadius-e._innerRadius+4;return u.createElement("g",{transform:"rotate(".concat(n,", 0, 0)")},u.createElement("path",{d:"\n M 0,".concat(-4,"\n L ").concat(-i,",").concat(-2,"\n A ").concat(2,",").concat(2,",0,0,0,").concat(-i,",").concat(2,"\n L 0,").concat(4,"\n A ").concat(4,",").concat(4,",0,0,0,0,").concat(-4,"\n "),strokeWidth:2,className:e._classNames.needle,transform:"translate(".concat(2-e._innerRadius,")"),"data-is-focusable":!0,onFocus:function(t){return e._handleFocus(t,"Needle")},onBlur:e._handleBlur,onMouseEnter:function(t){return e._handleMouseOver(t,"Needle")},onMouseMove:function(t){return e._handleMouseOver(t,"Needle")},role:"img","aria-label":"Current value: "+uv(e.props.chartValue,e._minValue,e._maxValue,e.props.chartValueFormat)}))},e._renderLegends=function(){if(e.props.hideLegend)return null;var t=e._segments.map((function(t,n){var i,r=e.props.enableGradient?(null===(i=t.gradient)||void 0===i?void 0:i[0])||Zs(n,0,e.props.theme.isInverted)[0]:t.color||yf(n,0,e.props.theme.isInverted);return{title:t.legend,color:r,hoverAction:function(){e.setState({hoveredLegend:t.legend})},onMouseOutAction:function(){e.setState({hoveredLegend:""})}}}));return u.createElement("div",{className:e._classNames.legendsContainer},u.createElement(Lc,(0,o.Cl)({legends:t,centerLegends:!0},e.props.legendProps,{onChange:e._onLegendSelectionChange.bind(e)})))},e._legendHighlighted=function(t){return e._getHighlightedLegend().includes(t)},e._noLegendHighlighted=function(){return 0===e._getHighlightedLegend().length},e._handleFocus=function(t,n){e._showCallout(t.target,n,!0)},e._handleBlur=function(){e._hideCallout(!0)},e._handleMouseOver=function(t,n){e._showCallout(t.target,n,!1)},e._handleMouseOut=function(){e._hideCallout(!1)},e._handleCalloutDismiss=function(){e._hideCallout(!1)},e._showCallout=function(t,n,i){if(e._calloutAnchor!==n){e._calloutAnchor=n;var r="Current value is "+uv(e.props.chartValue,e._minValue,e._maxValue,e.props.chartValueFormat,!0),u=e._segments.map((function(t){var n;return{legend:t.legend,y:ov(t,e._minValue,e._maxValue,e.props.variant),color:e.props.enableGradient?null===(n=t.gradient)||void 0===n?void 0:n[0]:t.color}}));e.setState((0,o.Cl)({calloutTarget:t,isCalloutVisible:["Needle","Chart value"].includes(n)||e._noLegendHighlighted()||e._legendHighlighted(n),hoverXValue:r,hoverYValues:u},i?{focusedElement:n}:{}))}},e._hideCallout=function(t){e._calloutAnchor="",e.setState((0,o.Cl)({calloutTarget:null,isCalloutVisible:!1,hoverXValue:"",hoverYValues:[]},t?{focusedElement:""}:{}))},e._wrapContent=function(t,n,i){var e=ls("#".concat(n));if(e.text(t),!e.node())return!1;for(var r=!1,o=e.node().getComputedTextLength();o>i&&t.length>0;)t=t.slice(0,-1),e.text(t+"..."),r=!0,o=e.node().getComputedTextLength();return r},e._multiValueCallout=function(t){var n=e._yValueHoverSubCountsExists(t.YValueHover);return u.createElement("div",{className:e._classNames.calloutContentRoot},u.createElement("div",{className:e._classNames.calloutDateTimeContainer,style:n?{marginBottom:"11px"}:{}},u.createElement("div",(0,o.Cl)({className:e._classNames.calloutContentX},Os(t.xAxisCalloutAccessibilityData,"text",!1)),(0,Jn.U)(t.hoverXValue,e.props.culture))),u.createElement("div",{className:e._classNames.calloutInfoContainer,style:n?{display:"flex"}:{}},t.YValueHover&&t.YValueHover.map((function(t,i,r){var a=i+1===r.length,s=t.shouldDrawBorderBottom,l=void 0!==s&&s;return u.createElement("div",(0,o.Cl)({},Os(t.callOutAccessibilityData,"text",!1),{key:"callout-content-".concat(i),style:n?(0,o.Cl)({display:"inline-block"},l&&{borderBottom:"1px solid ".concat(e.props.theme.semanticColors.menuDivider),paddingBottom:"10px"}):(0,o.Cl)({},l&&{borderBottom:"1px solid ".concat(e.props.theme.semanticColors.menuDivider),paddingBottom:"10px"})}),e._getCalloutContent(t,i,n,a))})),!!t.descriptionMessage&&u.createElement("div",{className:e._classNames.descriptionMessage},t.descriptionMessage)))},e._getChartTitle=function(){var t=e.props.chartTitle;return(t?"".concat(t,". "):"")+"Gauge chart with ".concat(e._segments.length," segments. ")},Qs(e),e._margins=e._getMargins(),e._legendsHeight=n.hideLegend?0:24,e.state={hoveredLegend:"",selectedLegends:(null===(i=n.legendProps)||void 0===i?void 0:i.selectedLegends)||[],focusedElement:"",calloutTarget:null,isCalloutVisible:!1,hoverXValue:"",hoverYValues:[],width:140+e._margins.left+e._margins.right,height:70+e._margins.top+e._margins.bottom+e._legendsHeight},e._isRTL=(0,s.jI)(n.theme),e._calloutAnchor="",e}return(0,o.C6)(n,t),n.prototype.componentDidMount=function(){this._rootElem&&this.setState({width:this._rootElem.clientWidth,height:this._rootElem.clientHeight})},n.prototype.componentDidUpdate=function(t){var n,i,e;Ws(null===(n=t.legendProps)||void 0===n?void 0:n.selectedLegends,null===(i=this.props.legendProps)||void 0===i?void 0:i.selectedLegends)||this.setState({selectedLegends:(null===(e=this.props.legendProps)||void 0===e?void 0:e.selectedLegends)||[]})},n.prototype.render=function(){var t=this;this._margins=this._getMargins(),this._legendsHeight=this.props.hideLegend?0:24;var n=this.props.width||this.state.width,i=this.props.height||this.state.height;this._outerRadius=Math.min((n-(this._margins.left+this._margins.right))/2,i-(this._margins.top+this._margins.bottom+this._legendsHeight));var e=this._getStylesBasedOnBreakpoint(),r=e.arcWidth,a=e.chartValueSize;this._innerRadius=this._outerRadius-r;var s=this._processProps().arcs;return this._classNames=rv(this.props.styles,{theme:this.props.theme,className:this.props.className,chartWidth:n,chartHeight:i-this._legendsHeight,chartValueSize:a}),u.createElement("div",{className:this._classNames.root,ref:function(n){return t._rootElem=n}},u.createElement(xl,{direction:zs.horizontal},u.createElement("svg",{className:this._classNames.chart,role:"region","aria-label":this._getChartTitle(),onMouseLeave:this._handleMouseOut},u.createElement("g",{transform:"translate(".concat(n/2,", ").concat(i-(this._margins.bottom+this._legendsHeight),")")},this.props.chartTitle&&u.createElement("text",{x:0,y:-(this._outerRadius+11),textAnchor:"middle",className:this._classNames.chartTitle,"aria-hidden":!0},this.props.chartTitle),!this.props.hideMinMax&&u.createElement(u.Fragment,null,u.createElement("text",{x:(this._isRTL?1:-1)*(this._outerRadius+4),y:0,textAnchor:"end",className:this._classNames.limits,role:"img","aria-label":"Min value: ".concat(this._minValue)},Bs(this._minValue)),u.createElement("text",{x:(this._isRTL?-1:1)*(this._outerRadius+4),y:0,textAnchor:"start",className:this._classNames.limits,role:"img","aria-label":"Max value: ".concat(this._maxValue)},Bs(this._maxValue))),s.map((function(n,i){var e,r,a=t._segments[n.segmentIndex],s=g("Arc_clip")+"".concat(i,"_").concat(n.startAngle,"_").concat(n.endAngle),l=rv(t.props.styles,{theme:t.props.theme,solidFill:t.props.enableGradient?"transparent":a.color,gradientFill:"conic-gradient(\n from ".concat(n.startAngle,"rad at 50% 100%,\n ").concat(null===(e=a.gradient)||void 0===e?void 0:e[0],",\n ").concat(null===(r=a.gradient)||void 0===r?void 0:r[1]," ").concat(n.endAngle-n.startAngle,"rad\n )"),opacity:t._legendHighlighted(a.legend)||t._noLegendHighlighted()?1:.1});return u.createElement(u.Fragment,{key:i},u.createElement("path",(0,o.Cl)({d:n.d,strokeWidth:t.state.focusedElement===a.legend?2:0,className:l.segment},Os((0,o.Cl)({ariaLabel:ov(a,t._minValue,t._maxValue,t.props.variant,!0)},a.accessibilityData),"img",!0),{onFocus:function(n){return t._handleFocus(n,a.legend)},onBlur:t._handleBlur,onMouseEnter:function(n){return t._handleMouseOver(n,a.legend)},onMouseMove:function(n){return t._handleMouseOver(n,a.legend)},"data-is-focusable":t._legendHighlighted(a.legend)||t._noLegendHighlighted()})),t.props.enableGradient&&u.createElement(u.Fragment,null,u.createElement("clipPath",{id:s},u.createElement("path",{d:n.d})),u.createElement("foreignObject",{x:"-50%",y:"-100%",width:"100%",height:"100%",clipPath:"url(#".concat(s,")")},u.createElement("div",{className:l.gradientSegment}))))})),this._renderNeedle(),u.createElement("g",{onMouseEnter:function(n){return t._handleMouseOver(n,"Chart value")},onMouseMove:function(n){return t._handleMouseOver(n,"Chart value")}},u.createElement(Ef,{content:uv(this.props.chartValue,this._minValue,this._maxValue,this.props.chartValueFormat),textProps:{x:0,y:0,textAnchor:"middle",className:this._classNames.chartValue,"aria-hidden":"true"},maxWidth:2*this._innerRadius-24,wrapContent:this._wrapContent})),this.props.sublabel&&u.createElement(Ef,{content:this.props.sublabel,textProps:{x:0,y:4,textAnchor:"middle",dominantBaseline:"hanging",className:this._classNames.sublabel},maxWidth:2*this._innerRadius,wrapContent:this._wrapContent})))),this._renderLegends(),!this.props.hideTooltip&&this.state.isCalloutVisible&&u.createElement(Kn,(0,o.Cl)({target:this.state.calloutTarget,directionalHint:x.topAutoEdge,gapSpace:15,isBeakVisible:!1,onDismiss:this._handleCalloutDismiss},this.props.calloutProps),this._multiValueCallout({hoverXValue:this.state.hoverXValue,YValueHover:this.state.hoverYValues})))},Object.defineProperty(n.prototype,"chartContainer",{get:function(){return this._rootElem},enumerable:!1,configurable:!0}),n.prototype._onLegendSelectionChange=function(t,n,i){var e,r;(null===(e=this.props.legendProps)||void 0===e?void 0:e.canSelectMultipleLegends)?this.setState({selectedLegends:t}):this.setState({selectedLegends:t.slice(-1)}),(null===(r=this.props.legendProps)||void 0===r?void 0:r.onChange)&&this.props.legendProps.onChange(t,n,i)},n.prototype._getHighlightedLegend=function(){return this.state.selectedLegends.length>0?this.state.selectedLegends:this.state.hoveredLegend?[this.state.hoveredLegend]:[]},n.prototype._yValueHoverSubCountsExists=function(t){return!!t&&t.some((function(t){return t.yAxisCalloutData&&"string"!=typeof t.yAxisCalloutData}))},n.prototype._getCalloutContent=function(t,n,i,e){var r=e?{}:{marginRight:"16px"},o=void 0!==t.index&&-1!==t.index,a=rv(this.props.styles,{theme:this.props.theme,lineColor:t.color,toDrawShape:o}),s=this.props.culture,l=(0,Jn.U)(t.y,s);if(t.yAxisCalloutData&&"string"!=typeof t.yAxisCalloutData){var c=t.yAxisCalloutData;return u.createElement("div",{style:r},u.createElement("div",{className:"ms-fontWeight-semibold",style:{fontSize:"12pt"}},t.legend," (",l,")"),Object.keys(c).map((function(t){return u.createElement("div",{key:t,className:a.calloutBlockContainer},u.createElement("div",{className:a.calloutlegendText}," ",(0,Jn.U)(t,s)),u.createElement("div",{className:a.calloutContentY},(0,Jn.U)(c[t],s)))})))}return u.createElement("div",{style:i?r:{}},i&&u.createElement("div",{className:"ms-fontWeight-semibold",style:{fontSize:"12pt"}},t.legend," (",l,")"),u.createElement("div",{id:"".concat(n,"_").concat(t.y),className:a.calloutBlockContainer},o&&u.createElement(kc,{svgProps:{className:a.shapeStyles},pathProps:{fill:t.color},shape:Ds[t.index%Object.keys(Es).length]}),u.createElement("div",null,u.createElement("div",{className:a.calloutlegendText}," ",t.legend),u.createElement("div",{className:a.calloutContentY},(0,Jn.U)(t.yAxisCalloutData?t.yAxisCalloutData:t.y||t.data,s)))))},n}(u.Component),sv=(0,r.I)(av,(function(t){var n,i,e,r,u=t.theme,a=t.chartValueSize,s=t.chartWidth,l=t.chartHeight,c=t.className,f=t.lineColor,h=t.toDrawShape,d=t.solidFill,v=t.gradientFill,p=t.opacity;return{root:[u.fonts.medium,"ms-GaugeChart",{width:"100%",height:"100%"},c],chart:{display:"block",width:s,height:l},limits:{fontSize:$t.s.small,fontWeight:$t.BO.semibold,fill:u.palette.neutralPrimary},chartValue:{fontSize:a,fontWeight:$t.BO.semibold,fill:u.palette.neutralPrimary},sublabel:{fontSize:$t.s.small,fontWeight:$t.BO.semibold,fill:u.palette.neutralPrimary},needle:{fill:u.palette.black,stroke:u.semanticColors.bodyBackground},chartTitle:{fontSize:$t.s.small,fill:u.palette.neutralPrimary},segment:{outline:"none",stroke:u.semanticColors.focusBorder,fill:d,fillOpacity:p},gradientSegment:{width:"100%",height:"100%",background:v,opacity:p},legendsContainer:{width:s},calloutContentRoot:[{display:"grid",overflow:"hidden",padding:"11px 16px 10px 16px",backgroundColor:u.semanticColors.bodyBackground,backgroundBlendMode:"normal, luminosity"}],calloutDateTimeContainer:{display:"flex",flexDirection:"row",justifyContent:"space-between"},calloutContentX:[(0,o.Cl)((0,o.Cl)({},u.fonts.small),{lineHeight:"16px",opacity:"0.85",color:u.semanticColors.bodySubtext})],calloutBlockContainer:[u.fonts.mediumPlus,{marginTop:"13px",color:u.semanticColors.bodyText},!h&&{selectors:(n={},n[$t.up]={forcedColorAdjust:"none"},n),borderLeft:"4px solid ".concat(f),paddingLeft:"8px"},h&&{display:"flex"}],shapeStyles:{marginRight:"8px"},calloutlegendText:(0,o.Cl)((0,o.Cl)({},u.fonts.small),{lineHeight:"16px",selectors:(i={},i[$t.NK]={color:"rgb(255, 255, 255)"},i),color:u.semanticColors.bodySubtext}),calloutContentY:[(0,o.Cl)((0,o.Cl)({},u.fonts.mediumPlus),{fontWeight:"bold",lineHeight:"22px",selectors:(e={},e[$t.NK]={color:"rgb(255, 255, 255)"},e)})],descriptionMessage:[u.fonts.small,{selectors:(r={},r[$t.NK]={color:"rgb(255, 255, 255)"},r),color:u.semanticColors.bodyText,marginTop:"10px",paddingTop:"10px",borderTop:"1px solid ".concat(u.semanticColors.menuDivider)}]}})),lv=i(927),cv=u.createContext(void 0),fv=Array.prototype,hv=fv.slice;function dv(t){return()=>t}function vv(t){return t}function pv(t){return Math.max(1,Math.ceil(Math.log(function(t,n){let i=0;for(let n of t)null!=n&&(n=+n)>=n&&++i;return i}(t))/Math.LN2)+1)}fv.map;var gv=function(t){return!isNaN(Date.parse(t))},mv=function(t){return!isNaN(parseFloat(t))&&isFinite(t)},yv=function(t){return Lv(t)&&t.every(gv)},bv=function(t){return Lv(t)&&t.every(mv)};function xv(t){var n,i,e,r,o,u,a,s,l,c,f,h,d;return{chartTitle:"string"==typeof t.title?t.title:"string"==typeof(null===(n=t.title)||void 0===n?void 0:n.text)?t.title.text:"",xAxisTitle:"string"==typeof(null===(i=null==t?void 0:t.xaxis)||void 0===i?void 0:i.title)?null===(e=null==t?void 0:t.xaxis)||void 0===e?void 0:e.title:"string"==typeof(null===(o=null===(r=null==t?void 0:t.xaxis)||void 0===r?void 0:r.title)||void 0===o?void 0:o.text)?null===(a=null===(u=null==t?void 0:t.xaxis)||void 0===u?void 0:u.title)||void 0===a?void 0:a.text:"",yAxisTitle:"string"==typeof(null===(s=null==t?void 0:t.yaxis)||void 0===s?void 0:s.title)?null===(l=null==t?void 0:t.yaxis)||void 0===l?void 0:l.title:"string"==typeof(null===(f=null===(c=null==t?void 0:t.yaxis)||void 0===c?void 0:c.title)||void 0===f?void 0:f.text)?null===(d=null===(h=null==t?void 0:t.yaxis)||void 0===h?void 0:h.title)||void 0===d?void 0:d.text:""}}var Cv=function(t){for(var n=(new Date).getFullYear(),i=t.map((function(t){var i="".concat(t," 01, ").concat(n);return gv(i)?new Date(i):null})),e=i.length-1;e>0;e--){var r=i[e].getMonth(),o=i[e-1].getMonth(),u=i[e].getFullYear(),a=i[e-1].getFullYear();o>=r?i[e-1].setFullYear(i[e].getFullYear()-1):a>u&&i[e-1].setFullYear(u)}return t.map((function(t,n){return"".concat(t," 01, ").concat(i[n].getFullYear())}))},wv=function(t,n,i){if(!n.current.has(t)){var e=yf(n.current.size+1,0,i);return n.current.set(t,e),e}return n.current.get(t)},Mv=function(t,n,i){var e=t.data,r=t.layout,o={},u=0;e.forEach((function(t,e){var r;null===(r=t.x)||void 0===r||r.forEach((function(r,a){var s,l,c;o[r]||(o[r]={xAxisPoint:r,chartData:[],lineData:[]});var f=t.name||"Series ".concat(e+1);if("bar"===t.type||"scatter"===t.type){var h=wv(f,n,i);o[r].chartData.push({legend:f,data:null===(s=t.y)||void 0===s?void 0:s[a],color:h})}else"line"===t.type&&(h=wv(f,n,i),o[r].lineData.push({legend:f,y:null===(l=t.y)||void 0===l?void 0:l[a],color:h}));u=Math.max(u,null===(c=t.y)||void 0===c?void 0:c[a])}))}));var a=xv(r),s=a.chartTitle,l=a.xAxisTitle,c=a.yAxisTitle;return{data:Object.values(o),barWidth:"auto",yMaxValue:u,chartTitle:s,xAxisTitle:l,yAxisTitle:c,mode:"plotly"}},kv=function(t,n,i){var e=t.data,r=t.layout,o=[];e.forEach((function(t,e){var r,u,a;if(t.x){var s=Ue().domain(qd(t.x)).nice().domain(),l=s[0],c=s[1];l="number"==typeof(null===(r=t.xbins)||void 0===r?void 0:r.start)?t.xbins.start:l,c="number"==typeof(null===(u=t.xbins)||void 0===u?void 0:u.end)?t.xbins.end:c;var f=function(){var t=vv,n=qd,i=pv;function e(e){Array.isArray(e)||(e=Array.from(e));var r,o,u,a=e.length,s=new Array(a);for(r=0;r<a;++r)s[r]=t(e[r],r,e);var l=n(s),c=l[0],f=l[1],h=i(s,c,f);if(!Array.isArray(h)){const t=f,i=+h;if(n===qd&&([c,f]=function(t,n,i){let e;for(;;){const r=Ci(t,n,i);if(r===e||0===r||!isFinite(r))return[t,n];r>0?(t=Math.floor(t/r)*r,n=Math.ceil(n/r)*r):r<0&&(t=Math.ceil(t*r)/r,n=Math.floor(n*r)/r),e=r}}(c,f,i)),(h=xi(c,f,i))[0]<=c&&(u=Ci(c,f,i)),h[h.length-1]>=f)if(t>=f&&n===qd){const t=Ci(c,f,i);isFinite(t)&&(t>0?f=(Math.floor(f/t)+1)*t:t<0&&(f=(Math.ceil(f*-t)+1)/-t))}else h.pop()}for(var d=h.length,v=0,p=d;h[v]<=c;)++v;for(;h[p-1]>f;)--p;(v||p<d)&&(h=h.slice(v,p),d=p-v);var g,m=new Array(d+1);for(r=0;r<=d;++r)(g=m[r]=[]).x0=r>0?h[r-1]:c,g.x1=r<d?h[r]:f;if(isFinite(u)){if(u>0)for(r=0;r<a;++r)null!=(o=s[r])&&c<=o&&o<=f&&m[Math.min(d,Math.floor((o-c)/u))].push(e[r]);else if(u<0)for(r=0;r<a;++r)if(null!=(o=s[r])&&c<=o&&o<=f){const t=Math.floor((c-o)*u);m[Math.min(d,t+(h[t]<=o))].push(e[r])}}else for(r=0;r<a;++r)null!=(o=s[r])&&c<=o&&o<=f&&m[Di(h,o,0,d)].push(e[r]);return m}return e.value=function(n){return arguments.length?(t="function"==typeof n?n:dv(n),e):t},e.domain=function(t){return arguments.length?(n="function"==typeof t?t:dv([t[0],t[1]]),e):n},e.thresholds=function(t){return arguments.length?(i="function"==typeof t?t:dv(Array.isArray(t)?hv.call(t):t),e):i},e}().domain([l,c]);if("number"==typeof(null===(a=t.xbins)||void 0===a?void 0:a.size)){for(var h=[],d=l,v=qe(t.xbins.size),p=Ye(".".concat(v,"f"));d<c+t.xbins.size;)h.push(parseFloat(p(d))),d+=t.xbins.size;l=h[0],c=h[h.length-1],f.domain([l,c]).thresholds(h)}var g,m=f(t.x),y=(g=m,Array.from(function*(t){for(const n of t)yield*n}(g))).length;m.forEach((function(r){var u=t.name||"Series ".concat(e+1),a=wv(u,n,i),s=r.length;"percent"===t.histnorm?s=r.length/y*100:"probability"===t.histnorm?s=r.length/y:"density"===t.histnorm?s=r.x0===r.x1?0:r.length/(r.x1-r.x0):"probability density"===t.histnorm?s=r.x0===r.x1?0:r.length/(y*(r.x1-r.x0)):"sum"===t.histfunc?s=id(r):"avg"===t.histfunc?s=0===r.length?0:id(r)/r.length:"min"===t.histfunc?s=vi(r):"max"===t.histfunc&&(s=pi(r)),o.push({x:(r.x1+r.x0)/2,y:s,legend:u,color:a,xAxisCalloutData:"[".concat(r.x0," - ").concat(r.x1,")")})}))}}));var u=xv(r),a=u.chartTitle,s=u.xAxisTitle,l=u.yAxisTitle;return{data:o,barWidth:24,supportNegativeData:!0,chartTitle:a,xAxisTitle:s,yAxisTitle:l,mode:"plotly"}},Sv=function(t,n,i,e){var r=t.data,o=t.layout,u="tonexty",a=r.map((function(t,n){var r=t.x,o="string"==typeof r[0],a=yv(r),s=bv(r),l=t.name||"Series ".concat(n+1),c=wv(l,i,e);return u="tozeroy"===t.fill?"tozeroy":"tonexty",{legend:l,data:r.map((function(n,i){return{x:o?a?new Date(n):s?parseFloat(n):n:n,y:t.y[i]}})),color:c}})),s=xv(o),l=s.chartTitle,c=s.xAxisTitle,f=s.yAxisTitle,h={chartTitle:l,lineChartData:a};return n?{data:h,supportNegativeData:!0,xAxisTitle:c,yAxisTitle:f,mode:u}:{data:h,supportNegativeData:!0,xAxisTitle:c,yAxisTitle:f}},Av=function(t,n){if(void 0===n&&(n=0),n>8)throw new Error("Maximum json depth exceeded");if("object"==typeof t&&null!==t)for(var i in t)t.hasOwnProperty(i)&&("string"==typeof t[i]?t[i]=t[i].replace(/</g,"&lt;").replace(/>/g,"&gt;"):t[i]=Av(t[i],n+1));return t};function Lv(t){return Array.isArray(t)||function(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}(t)}var Vv=/var\((--[a-zA-Z0-9\-]+)\)/g;function Dv(t,n){var i=getComputedStyle(t);return n.replace(Vv,(function(t,n){return i.getPropertyValue(n)}))}var Nv=/^[\da-f]{2}$/i,Tv=/^[\da-f]{4}$/i,Ev=u.forwardRef((function(t,n){var i,e,r,a,s=Av(t.chartSchema).plotlySchema,l=s.data,c=s.layout,f=s.selectedLegends,h=l[0].x,d=yv(h),v=bv(h),p=function(t){if(t&&t.length>0){var n=Co("%B"),i=Co("%b");return t.every((function(t){return null!==n(t)||null!==i(t)}))}return!1}(h),g=u.useRef(new Map),m=function(){var t=u.useContext(cv),n=(0,lv.m)(["theme"]).theme;return t||n||(0,Cn.a)({})}(),y=null!==(i=null==m?void 0:m.isInverted)&&void 0!==i&&i,b=u.useRef(null);Lv(f)||(f=[]);var x=u.useState(f),C=x[0],w=x[1],M=function(n){w(n),t.onSchemaChange&&t.onSchemaChange({plotlySchema:{data:l,layout:c,selectedLegends:n}})};u.useEffect((function(){var n=Av(t.chartSchema).plotlySchema.selectedLegends;w(null!=n?n:[])}),[t.chartSchema]);var k={canSelectMultipleLegends:!1,onChange:M,selectedLegend:C.slice(0,1)[0]},S=u.useCallback((function(t){var n;return function(t,n){return void 0===n&&(n={}),new Promise((function(i,e){if(!t)return e(new Error("Chart container is not defined"));try{var r="string"==typeof n.background?Dv(t,n.background):"transparent",o=function(t,n){var i=t.querySelector("svg");if(!i)throw new Error("SVG not found");var e=i.getBoundingClientRect(),r=e.width,o=e.height,u=new Set,a=function(t,n,i,e){var r=t.querySelectorAll('\n button[class^="legend-"],\n [class^="legendContainer-"] div[class^="overflowIndicationTextStyle-"],\n [class^="legendsContainer-"] div[class^="overflowIndicationTextStyle-"]\n ');if(0===r.length)return{node:null,width:0,height:0};for(var o=ls(Ga("svg:g").call(document.documentElement)),u=0,a=8,s=[],l=[],c=[],f=0;f<r.length;f++){var h=r[f].getBoundingClientRect().width,d=o.append("g");s.push(d),u+h>n&&s.length>1&&(s.pop(),l.push(s),c.push(u),s=[d],u=0,a+=32);var v=void 0,p=0;if("button"===r[f].tagName.toLowerCase()){var g=r[f].querySelector('[class^="rect"]'),m=getComputedStyle(g),y=m.backgroundColor,b=m.borderColor;(v=r[f].querySelector('[class^="text"]')).classList.forEach((function(t){return e.add(".".concat(t))})),d.append("rect").attr("x",u+8).attr("y",i+a+8).attr("width",12).attr("height",12).attr("fill",y).attr("stroke-width",1).attr("stroke",b),p=28}else(v=r[f]).classList.forEach((function(t){return e.add(".".concat(t))})),p=8;var x=getComputedStyle(v).color;d.append("text").attr("x",u+p).attr("y",i+a+8).attr("dominant-baseline","hanging").attr("class",v.getAttribute("class")).attr("fill",x).text(v.textContent),u+=h}return l.push(s),c.push(u),a+=32,l.forEach((function(t,i){var e=Math.max((n-c[i])/2,0);t.forEach((function(t){t.attr("transform","translate(".concat(e,", 0)"))}))})),{node:o.node(),width:Math.max.apply(Math,c),height:a}}(t,r,o,u),s=Math.max(r,a.width),l=o+a.height,c=ls(i.cloneNode(!0)).attr("width",null).attr("height",null).attr("viewBox",null);a.node&&c.append((function(){return a.node})),c.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",s).attr("height",l).attr("fill",n);for(var f=i.getElementsByTagName("*"),h=document.styleSheets,d="",v=f.length-1;v--;)f[v].classList.forEach((function(t){u.add(".".concat(t))}));for(v=0;v<h.length;v++)for(var p=h[v].cssRules,g=0;g<p.length;g++)"CSSStyleRule"===p[g].constructor.name&&p[g].selectorText.split(" ").some((function(t){return u.has(t)}))&&(d+=p[g].cssText+" ");d=Dv(t,d);var m=(new DOMParser).parseFromString("<svg></svg>","image/svg+xml").createCDATASection(d);return c.insert("defs",":first-child").append("style").attr("type","text/css").node().appendChild(m),c.attr("width",s).attr("height",l).attr("viewBox","0 0 ".concat(s," ").concat(l)),{node:c.node(),width:s,height:l}}(t,r),u=(new XMLSerializer).serializeToString(o.node);(function(t,n){return void 0===n&&(n={}),new Promise((function(i,e){var r=n.scale||1,o=n.width||300,u=n.height||150,a=r*o,s=r*u,l=document.createElement("canvas"),c=new Image;l.width=a,l.height=s,c.onload=function(){var t=l.getContext("2d");if(!t)return e(new Error("Canvas context is null"));t.clearRect(0,0,a,s),t.drawImage(c,0,0,a,s);var n=l.toDataURL("image/png");i(n)},c.onerror=function(t){e(t)},c.src=t}))})("data:image/svg+xml;base64,"+btoa(function(t){for(var n,i,e="",r=t.length,o=0;o<r;){if("%"===(n=t.charAt(o++)))if("u"===t.charAt(o)){if(i=t.slice(o+1,o+5),Tv.exec(i)){e+=String.fromCharCode(parseInt(i,16)),o+=5;continue}}else if(i=t.slice(o,o+2),Nv.exec(i)){e+=String.fromCharCode(parseInt(i,16)),o+=2;continue}e+=n}return e}(encodeURIComponent(u))),{width:n.width||o.width,height:n.height||o.height,scale:n.scale}).then(i).catch(e)}catch(t){return e(t)}}))}(null===(n=b.current)||void 0===n?void 0:n.chartContainer,(0,o.Cl)({background:m.semanticColors.bodyBackground},t))}),[m]);u.useImperativeHandle(t.componentRef,(function(){return{exportAsImage:S}}),[S]);var A=(0,o.Cl)((0,o.Cl)({},k),{canSelectMultipleLegends:!0,selectedLegends:C});switch(l[0].type){case"pie":return u.createElement(wf,(0,o.Cl)({},function(t,n,i){var e,r,u=t.data,a=t.layout,s=u[0],l=null===(e=s.labels)||void 0===e?void 0:e.map((function(t,e){var r,o=wv(t,n,i);return{legend:t,data:null===(r=s.values)||void 0===r?void 0:r[e],color:o}})),c="number"==typeof(null==a?void 0:a.width)?null==a?void 0:a.width:440,f="number"==typeof(null==a?void 0:a.height)?null==a?void 0:a.height:220,h=!!s.textinfo&&!["value","percent","label+percent"].includes(s.textinfo),d=h?0:80,v=40+(h?0:40),p=s.hole?s.hole*(Math.min(c-d,f-v)/2):0,g={root:{'[class^="arcLabel"]':(0,o.Cl)({},"number"==typeof(null===(r=s.textfont)||void 0===r?void 0:r.size)?{fontSize:s.textfont.size}:{})}};return{data:{chartTitle:xv(a).chartTitle,chartData:l},hideLegend:!1===(null==a?void 0:a.showlegend),width:c,height:f,innerRadius:p,hideLabels:h,showLabelsInPercent:!s.textinfo||["percent","label+percent"].includes(s.textinfo),styles:g}}(s,g,y),{legendProps:A,componentRef:b,calloutProps:{layerProps:{eventBubblingEnabled:!0}}}));case"bar":return"h"===l[0].orientation?u.createElement(iv,(0,o.Cl)({},function(t,n,i){var e,r,o,u,a,s,l,c,f=t.data,h=t.layout,d=f.map((function(t,e){return t.y.map((function(e,r){var o=wv(e,n,i);return{x:t.x[r],y:e,legend:e,color:o}}))})).flat().reverse(),v="number"==typeof h.height?h.height:450,p=v-("number"==typeof(null===(e=h.margin)||void 0===e?void 0:e.l)?null===(r=h.margin)||void 0===r?void 0:r.l:0)-("number"==typeof(null===(o=h.margin)||void 0===o?void 0:o.pad)?null===(u=h.margin)||void 0===u?void 0:u.pad:0),g=f[0].y.length,m=p/(g*(1+1/(1+.01*g))),y=xv(h);return{data:d,chartTitle:y.chartTitle,xAxisTitle:y.xAxisTitle,yAxisTitle:y.yAxisTitle,secondaryYAxistitle:"string"==typeof(null===(a=null==h?void 0:h.yaxis2)||void 0===a?void 0:a.title)?null===(s=null==h?void 0:h.yaxis2)||void 0===s?void 0:s.title:(null===(c=null===(l=null==h?void 0:h.yaxis2)||void 0===l?void 0:l.title)||void 0===c?void 0:c.text)||"",barHeight:m,showYAxisLables:!0,styles:{root:{height:v,width:"number"==typeof h.width?h.width:600}}}}(s,g,y),{legendProps:A,componentRef:b,calloutProps:{layerProps:{eventBubblingEnabled:!0}}})):["group","overlay"].includes(null===(e=null==s?void 0:s.layout)||void 0===e?void 0:e.barmode)?u.createElement(qh,(0,o.Cl)({},function(t,n,i){var e=t.data,r=t.layout,o={};e.forEach((function(t,e){var r;null===(r=t.x)||void 0===r||r.forEach((function(r,u){var a;if(o[r]||(o[r]={name:r.toString(),series:[]}),"bar"===t.type){var s=t.name||"Series ".concat(e+1),l=wv(s,n,i);o[r].series.push({key:s,data:null===(a=t.y)||void 0===a?void 0:a[u],xAxisCalloutData:r,color:l,legend:s})}}))}));var u=xv(r),a=u.chartTitle,s=u.xAxisTitle,l=u.yAxisTitle;return{data:Object.values(o),barwidth:"auto",chartTitle:a,xAxisTitle:s,yAxisTitle:l,mode:"plotly"}}(s,g,y),{legendProps:A,componentRef:b,calloutProps:{layerProps:{eventBubblingEnabled:!0}}})):u.createElement(Yh,(0,o.Cl)({},Mv(s,g,y),{legendProps:A,componentRef:b,calloutProps:{layerProps:{eventBubblingEnabled:!0}}}));case"scatter":var L=l.some((function(t){return"tonexty"===t.fill||"tozeroy"===t.fill})),V=function(t){return L?u.createElement(xh,(0,o.Cl)({},t,{legendProps:(0,o.Cl)((0,o.Cl)({},k),{canSelectMultipleLegends:!0,selectedLegends:C})})):u.createElement(eh,(0,o.Cl)({},t,{legendProps:{onChange:M,canSelectMultipleLegends:!0,selectedLegends:C}}))};if(d||v)return V((0,o.Cl)((0,o.Cl)({},Sv({data:l,layout:c},L,g,y)),{legendProps:k,componentRef:b,calloutProps:{layerProps:{eventBubblingEnabled:!0}}}));if(p){var D=l.map((function(t){return(0,o.Cl)((0,o.Cl)({},t),{x:Cv(t.x)})}));return V((0,o.Cl)((0,o.Cl)({},Sv({data:D,layout:c},L,g,y)),{legendProps:k,componentRef:b,calloutProps:{layerProps:{eventBubblingEnabled:!0}}}))}return u.createElement(Yh,(0,o.Cl)({},Mv(s,g,y),{legendProps:A,componentRef:b,calloutProps:{layerProps:{eventBubblingEnabled:!0}}}));case"heatmap":return u.createElement(Jh,(0,o.Cl)({},function(t){var n,i=t.data,e=t.layout,r=i[0],o=[],u=Number.POSITIVE_INFINITY,a=Number.NEGATIVE_INFINITY;null===(n=r.x)||void 0===n||n.forEach((function(t,n){var i;null===(i=r.y)||void 0===i||i.forEach((function(i,s){var l,c,f,h,d=null===(c=null===(l=r.z)||void 0===l?void 0:l[s])||void 0===c?void 0:c[n];o.push({x:"date"===(null===(f=e.xaxis)||void 0===f?void 0:f.type)?new Date(t):t,y:"date"===(null===(h=e.yaxis)||void 0===h?void 0:h.type)?new Date(i):i,value:d,rectText:d}),u=Math.min(u,d),a=Math.max(a,d)}))}));var s={legend:"string"==typeof r.name?r.name:"",data:o,value:0},l=r.colorscale?r.colorscale.map((function(t){return t[0]*(a-u)+u})):[],c=r.colorscale?r.colorscale.map((function(t){return t[1]})):[],f=xv(e);return{data:[s],domainValuesForColorScale:l,rangeValuesForColorScale:c,hideLegend:!0,showYAxisLables:!0,chartTitle:f.chartTitle,xAxisTitle:f.xAxisTitle,yAxisTitle:f.yAxisTitle,sortOrder:"none"}}(s),{componentRef:b,calloutProps:{layerProps:{eventBubblingEnabled:!0}}}));case"sankey":return u.createElement(Nd,(0,o.Cl)({},function(t,n,i){var e,r,u=t.data,a=t.layout,s=u[0],l=s.link,c=s.node,f=l.value.map((function(t,n){return{value:t,source:l.source[n],target:l.target[n]}})).filter((function(t){return t.source>=0&&t.target>=0&&t.source!==t.target})),h={nodes:c.label.map((function(t,e){return{nodeId:e,name:t,color:wv(t,n,i)}})),links:f.map((function(t,n){return(0,o.Cl)({},t)}))},d="number"==typeof(null==a?void 0:a.width)?null==a?void 0:a.width:440,v="number"==typeof(null==a?void 0:a.height)?null==a?void 0:a.height:220,p={root:(0,o.Cl)({},"number"==typeof(null===(e=a.font)||void 0===e?void 0:e.size)?{fontSize:null===(r=a.font)||void 0===r?void 0:r.size}:{})},g=d+v;return{data:{chartTitle:xv(a).chartTitle,SankeyChartData:h},width:d,height:v,styles:p,shouldResize:g,enableReflow:!0}}(s,g,y),{componentRef:b,calloutProps:{layerProps:{eventBubblingEnabled:!0}}}));case"indicator":return(null===(a=null===(r=null==l?void 0:l[0])||void 0===r?void 0:r.mode)||void 0===a?void 0:a.includes("gauge"))?u.createElement(sv,(0,o.Cl)({},function(t,n,i){var e,r,o,u,a,s,l,c,f,h,d,v,p,g,m,y,b,x,C,w,M,k,S,A,L,V,D,N=t.data,T=t.layout,E=N[0],O=(null===(r=null===(e=E.gauge)||void 0===e?void 0:e.steps)||void 0===r?void 0:r.length)?E.gauge.steps.map((function(t,e){var r,o,u=t.name||"Segment ".concat(e+1),a=wv(u,n,i);return{legend:u,size:(null===(r=t.range)||void 0===r?void 0:r[1])-(null===(o=t.range)||void 0===o?void 0:o[0]),color:a}})):[{legend:"Current",size:null!==(o=E.value)&&void 0!==o?o:0-(null!==(s=null===(a=null===(u=E.gauge)||void 0===u?void 0:u.range)||void 0===a?void 0:a[0])&&void 0!==s?s:0),color:wv("Current",n,i)},{legend:"Target",size:(null!==(f=null===(c=null===(l=E.gauge)||void 0===l?void 0:l.range)||void 0===c?void 0:c[1])&&void 0!==f?f:100)-(null!==(h=E.value)&&void 0!==h?h:0),color:hf.disabled}];if("number"==typeof(null===(d=E.delta)||void 0===d?void 0:d.reference)){var P=E.value-E.delta.reference;P>=0?(V="▲ ".concat(P),D=bf(hf.success,i)):(V="▼ ".concat(Math.abs(P)),D=bf(hf.error,i))}var B={sublabel:{fill:D}},F=xv(T).chartTitle;return{segments:O,chartValue:"number"==typeof E.value?E.value:0,chartTitle:F,sublabel:V,minValue:"number"==typeof(null===(g=null===(p=null===(v=E.gauge)||void 0===v?void 0:v.axis)||void 0===p?void 0:p.range)||void 0===g?void 0:g[0])?null===(b=null===(y=null===(m=E.gauge)||void 0===m?void 0:m.axis)||void 0===y?void 0:y.range)||void 0===b?void 0:b[0]:void 0,maxValue:"number"==typeof(null===(w=null===(C=null===(x=E.gauge)||void 0===x?void 0:x.axis)||void 0===C?void 0:C.range)||void 0===w?void 0:w[1])?null===(S=null===(k=null===(M=E.gauge)||void 0===M?void 0:M.axis)||void 0===k?void 0:k.range)||void 0===S?void 0:S[1]:void 0,chartValueFormat:function(){return E.value},width:"number"==typeof(null==T?void 0:T.width)?null==T?void 0:T.width:440,height:"number"==typeof(null==T?void 0:T.height)?null==T?void 0:T.height:220,styles:B,variant:(null===(L=null===(A=E.gauge)||void 0===A?void 0:A.steps)||void 0===L?void 0:L.length)?Zd.MultipleSegments:Zd.SingleSegment}}(s,g,y),{legendProps:A,componentRef:b,calloutProps:{layerProps:{eventBubblingEnabled:!0}}})):u.createElement("div",null,"Unsupported Schema");case"histogram":return u.createElement(Wh,(0,o.Cl)({},kv(s,g,y),{legendProps:A,componentRef:b,calloutProps:{layerProps:{eventBubblingEnabled:!0}}}));default:throw new Error("Unsupported chart schema")}}));Ev.displayName="DeclarativeChart",(0,i(887).v)("@fluentui/react-charting","0.0.0"),FluentUIReactCharting=e}();