@fluentui/react-charting 5.23.79 → 5.23.81

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 (65) hide show
  1. package/CHANGELOG.json +43 -1
  2. package/CHANGELOG.md +22 -2
  3. package/dist/react-charting.js +1 -1
  4. package/dist/react-charting.min.js +1 -1
  5. package/lib/components/CommonComponents/CartesianChart.styles.js +15 -15
  6. package/lib/components/CommonComponents/CartesianChart.styles.js.map +1 -1
  7. package/lib/components/DeclarativeChart/DeclarativeChart.js +3 -0
  8. package/lib/components/DeclarativeChart/DeclarativeChart.js.map +1 -1
  9. package/lib/components/DeclarativeChart/PlotlySchemaAdapter.js +39 -20
  10. package/lib/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -1
  11. package/lib/components/DonutChart/Pie/Pie.styles.js +3 -3
  12. package/lib/components/DonutChart/Pie/Pie.styles.js.map +1 -1
  13. package/lib/components/GaugeChart/GaugeChart.styles.js +7 -7
  14. package/lib/components/GaugeChart/GaugeChart.styles.js.map +1 -1
  15. package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js +7 -2
  16. package/lib/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js.map +1 -1
  17. package/lib/components/PieChart/Arc/Arc.styles.js +2 -2
  18. package/lib/components/PieChart/Arc/Arc.styles.js.map +1 -1
  19. package/lib/components/SankeyChart/SankeyChart.styles.js +7 -7
  20. package/lib/components/SankeyChart/SankeyChart.styles.js.map +1 -1
  21. package/lib/utilities/ChartHoverCard/ChartHoverCard.styles.js +5 -5
  22. package/lib/utilities/ChartHoverCard/ChartHoverCard.styles.js.map +1 -1
  23. package/lib/utilities/utilities.js +3 -2
  24. package/lib/utilities/utilities.js.map +1 -1
  25. package/lib-amd/components/CommonComponents/CartesianChart.styles.js +14 -14
  26. package/lib-amd/components/CommonComponents/CartesianChart.styles.js.map +1 -1
  27. package/lib-amd/components/DeclarativeChart/DeclarativeChart.js +3 -0
  28. package/lib-amd/components/DeclarativeChart/DeclarativeChart.js.map +1 -1
  29. package/lib-amd/components/DeclarativeChart/PlotlySchemaAdapter.js +39 -20
  30. package/lib-amd/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -1
  31. package/lib-amd/components/DonutChart/Pie/Pie.styles.js +2 -2
  32. package/lib-amd/components/DonutChart/Pie/Pie.styles.js.map +1 -1
  33. package/lib-amd/components/GaugeChart/GaugeChart.styles.js +6 -6
  34. package/lib-amd/components/GaugeChart/GaugeChart.styles.js.map +1 -1
  35. package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js +6 -1
  36. package/lib-amd/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js.map +1 -1
  37. package/lib-amd/components/PieChart/Arc/Arc.styles.js +1 -1
  38. package/lib-amd/components/PieChart/Arc/Arc.styles.js.map +1 -1
  39. package/lib-amd/components/SankeyChart/SankeyChart.styles.js +6 -6
  40. package/lib-amd/components/SankeyChart/SankeyChart.styles.js.map +1 -1
  41. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.styles.js +4 -4
  42. package/lib-amd/utilities/ChartHoverCard/ChartHoverCard.styles.js.map +1 -1
  43. package/lib-amd/utilities/utilities.js +3 -2
  44. package/lib-amd/utilities/utilities.js.map +1 -1
  45. package/lib-commonjs/components/CommonComponents/CartesianChart.styles.js +14 -14
  46. package/lib-commonjs/components/CommonComponents/CartesianChart.styles.js.map +1 -1
  47. package/lib-commonjs/components/DeclarativeChart/DeclarativeChart.js +3 -0
  48. package/lib-commonjs/components/DeclarativeChart/DeclarativeChart.js.map +1 -1
  49. package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.js +39 -20
  50. package/lib-commonjs/components/DeclarativeChart/PlotlySchemaAdapter.js.map +1 -1
  51. package/lib-commonjs/components/DonutChart/Pie/Pie.styles.js +2 -2
  52. package/lib-commonjs/components/DonutChart/Pie/Pie.styles.js.map +1 -1
  53. package/lib-commonjs/components/GaugeChart/GaugeChart.styles.js +6 -6
  54. package/lib-commonjs/components/GaugeChart/GaugeChart.styles.js.map +1 -1
  55. package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js +6 -1
  56. package/lib-commonjs/components/HorizontalBarChartWithAxis/HorizontalBarChartWithAxis.base.js.map +1 -1
  57. package/lib-commonjs/components/PieChart/Arc/Arc.styles.js +1 -1
  58. package/lib-commonjs/components/PieChart/Arc/Arc.styles.js.map +1 -1
  59. package/lib-commonjs/components/SankeyChart/SankeyChart.styles.js +6 -6
  60. package/lib-commonjs/components/SankeyChart/SankeyChart.styles.js.map +1 -1
  61. package/lib-commonjs/utilities/ChartHoverCard/ChartHoverCard.styles.js +4 -4
  62. package/lib-commonjs/utilities/ChartHoverCard/ChartHoverCard.styles.js.map +1 -1
  63. package/lib-commonjs/utilities/utilities.js +3 -2
  64. package/lib-commonjs/utilities/utilities.js.map +1 -1
  65. package/package.json +1 -1
@@ -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),a=i(873),u=i(607),s=(0,a.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,a=t.styles,l=t.theme,c=t.ratio,f=t.descriptionMessage,h=t.culture;return this._classNames=s(a,{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,u.U)(i,h)),o.createElement("div",{className:this._classNames.calloutContentY},(0,u.U)(r,h))),!!c&&o.createElement("div",{className:this._classNames.ratio},o.createElement(o.Fragment,null,o.createElement("span",{className:this._classNames.numerator},(0,u.U)(c[0],h)),"/",o.createElement("span",{className:this._classNames.denominator},(0,u.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,a=t.XValue,u=t.theme,s=t.isRatioPresent,l=void 0!==s&&s;return{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:[u.fonts.small,{lineHeight:"16px",opacity:"0.85",color:u.semanticColors.bodySubtext}],calloutBlockContainer:[u.fonts.xxLarge,{marginTop:a?"13px":"unset",paddingLeft:"8px",lineHeight:"22px",color:u.semanticColors.bodyText,borderLeft:"4px solid ".concat(o),selectors:(n={},n[e.up]={forcedColorAdjust:"none"},n)}],calloutlegendText:[u.fonts.small,{lineHeight:"16px",color:u.semanticColors.bodyText,selectors:(i={},i[e.NK]={color:"rgb(255, 255, 255)"},i)}],calloutContentY:[u.fonts.xxLarge,{color:o||u.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:[u.fonts.small,{marginLeft:"6px",color:u.semanticColors.bodyText}],numerator:{fontWeight:e.BO.bold},denominator:{fontWeight:e.BO.semibold},descriptionMessage:[u.fonts.small,{color:u.semanticColors.bodyText,marginTop:"10px",paddingTop:"10px",borderTop:"1px solid ".concat(u.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 u}});var e,r=i(638);function o(t){e!==t&&(e=t)}function a(){return void 0===e&&(e="undefined"!=typeof document&&!!document.documentElement&&"rtl"===document.documentElement.getAttribute("dir")),e}function u(){return{rtl:a(),shadowConfig:r.ou}}e=a()},40:function(t,n,i){i.d(n,{nr:function(){return l}});var e,r=i(823),o=i(638),a="__stylesheet__",u="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,a,u,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!==(a=null!==(o=this._config.classNameCache)&&void 0!==o?o:null==n?void 0:n.keyToClassName)&&void 0!==a?a:this._keyToClassName,this._preservedRules=null!==(u=null==n?void 0:n.preservedRules)&&void 0!==u?u: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[a],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[a]=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 a=this._findPlaceholderStyleTag();r=a?a.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(),u||(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={},a={},u=0,s=t;u<s.length;u++){var l=s[u];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)&&(a.hasOwnProperty(h)?a[h].push(f[h]):a[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(a).length>0){i.subComponentStyles={};var p=i.subComponentStyles,g=function(t){if(a.hasOwnProperty(t)){var n=a[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 a)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=[],a=t;return function t(n){for(var i=0,u=n;i<u.length;i++){var s=u[i];if(s&&!(0,e.db)(s))if("string"==typeof s)if(s.indexOf(" ")>=0)t(s.split(" "));else{var l=a.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),a=i(40),u=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=a.nr.getInstance(o.shadowConfig);var s=(0,e.h)(o.stylesheet,i),l=s.classes,c=s.objects;return c.length&&l.push((0,u.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 a},ou:function(){return o}});var e="__global__",r="__shadow_dom_stylesheet__",o={stylesheetKey:e,inShadow:!1,window:void 0,__isShadowConfig__:!0},a=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 V},bz:function(){return A},kG:function(){return L},GJ:function(){return S}});var e,r=i(823),o=i(40),a={},u={"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(u[r]){var o=t[n+1];u[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,a=r||o?"":"px";t[n+1]="".concat(e).concat(a)}}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 w(t,n,i,e,r){void 0===n&&(n={__order:[]}),0===i.indexOf("@")?C([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 C([e],n,x(i,t),r)})):C([e],n,x(i,t),r)}function C(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 a=0,u=t;a<u.length;a++){var s=u[a];if("string"==typeof s){var l=e.argsFromClassName(s);l&&C(l,n,i,e)}else if(Array.isArray(s))C(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)&&w(i,n,d,h[d],e)}else"object"==typeof f||(r=c).indexOf(":global(")>=0||0===r.indexOf(":")?null!=f&&w(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 A(t,n){if(!n)return"";var i,e,r,o=[];for(var u in n)n.hasOwnProperty(u)&&u!==y&&void 0!==n[u]&&o.push(u,n[u]);for(var l=0;l<o.length;l+=2)r=void 0,"-"!==(r=(i=o)[e=l]).charAt(0)&&(i[e]=a[r]=a[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 S(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),a=C(i,void 0,void 0,r),u=function(t,n){for(var i=[t.rtl?"rtl":"ltr"],e=!1,r=0,o=n.__order;r<o.length;r++){var a=o[r];i.push(a);var u=n[a];for(var s in u)u.hasOwnProperty(s)&&void 0!==u[s]&&(e=!0,i.push(s,u[s]))}return e?i.join(""):void 0}(t,a);if(u){var s={className:r.classNameFromKey(u),key:u,args:i};if(!s.className){s.className=r.getClassName(function(t){var n=t&&t["&"];return n?n.displayName:void 0}(a));for(var l=[],c=0,f=a.__order;c<f.length;c++){var h=f[c];l.push(h,A(t,a[h]))}s.rulesToInsert=l}return s}}function V(t,n,i,e){void 0===n&&(n=1);var r=null!=e?e:o.nr.getInstance(i),a=t.className,u=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(a,u,s,l)}}function L(t){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var e=S.apply(void 0,(0,r.fX)([t],n,!1));return e?(V(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 At.s},BO:function(){return At.BO},up:function(){return it},NK:function(){return et},nA:function(){return nt},QN:function(){return at},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),a=i(289);function u(t){var n=o.nr.getInstance(),i=[];for(var e in t)t.hasOwnProperty(e)&&i.push(e,"{",(0,a.bz)((0,r.Iy)(),t[e]),"}");var u=i.join(""),s=n.classNameFromKey(u);if(s)return s;var l=n.getClassName();return n.insertRule("@keyframes ".concat(l,"{").concat(u,"}"),!0),n.cacheClassName(l,u,[],["keyframes",u]),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=u({from:{opacity:0},to:{opacity:1}}),p=u({from:{opacity:1},to:{opacity:0,visibility:"hidden"}}),g=G(-10),m=G(-20),y=G(-40),b=G(-400),x=G(10),w=G(20),C=G(40),M=G(400),k=q(10),A=q(20),S=q(-10),V=q(-20),L=U(10),D=U(20),N=U(40),T=U(400),O=U(-10),E=U(-20),B=U(-40),F=U(-400),P=Z(-10),_=Z(-20),H=Z(10),I=Z(20),W=u({from:{transform:"scale3d(.98,.98,1)"},to:{transform:"scale3d(1,1,1)"}}),R=u({from:{transform:"scale3d(1,1,1)"},to:{transform:"scale3d(.98,.98,1)"}}),z=u({from:{transform:"scale3d(1.03,1.03,1)"},to:{transform:"scale3d(1,1,1)"}}),j=u({from:{transform:"scale3d(1,1,1)"},to:{transform:"scale3d(1.03,1.03,1)"}}),$=u({from:{transform:"rotateZ(0deg)"},to:{transform:"rotateZ(90deg)"}}),Y=u({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 u({from:{transform:"translate3d(".concat(t,"px,0,0)"),pointerEvents:"none"},to:{transform:"translate3d(0,0,0)",pointerEvents:"auto"}})}function q(t){return u({from:{transform:"translate3d(0,".concat(t,"px,0)"),pointerEvents:"none"},to:{transform:"translate3d(0,0,0)",pointerEvents:"auto"}})}function U(t){return u({from:{transform:"translate3d(0,0,0)"},to:{transform:"translate3d(".concat(t,"px,0,0)")}})}function Z(t){return u({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(w),h,s),slideLeftIn40:X("".concat(v,",").concat(C),h,s),slideLeftIn400:X("".concat(v,",").concat(M),h,s),slideUpIn10:X("".concat(v,",").concat(k),h,s),slideUpIn20:X("".concat(v,",").concat(A),h,s),slideDownIn10:X("".concat(v,",").concat(S),h,s),slideDownIn20:X("".concat(v,",").concat(V),h,s),slideRightOut10:X("".concat(p,",").concat(L),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(O),h,s),slideLeftOut20:X("".concat(p,",").concat(E),h,s),slideLeftOut40:X("".concat(p,",").concat(B),h,s),slideLeftOut400:X("".concat(p,",").concat(F),h,s),slideUpOut10:X("".concat(p,",").concat(P),h,s),slideUpOut20:X("".concat(p,",").concat(_),h,s),slideDownOut10:X("".concat(p,",").concat(H),h,s),slideDownOut20:X("".concat(p,",").concat(I),h,s),scaleUpIn100:X("".concat(v,",").concat(W),h,s),scaleDownIn100:X("".concat(v,",").concat(z),h,s),scaleUpOut103:X("".concat(p,",").concat(j),c,l),scaleDownOut98:X("".concat(p,",").concat(R),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($,"0.1s",l),rotateN90deg:X(Y,"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,a,u){return function(t,n){var i,e;void 0===n&&(n={});var r=n.borderRadius,o=n.inset,a=void 0===o?0:o,u=n.width,s=void 0===u?1:u,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:a+1,top:a+1,bottom:a+1,right:a+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:a,borderRadius:u})}function at(){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 ut,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=((ut=ht.__themeState__||{theme:void 0,lastStyleElement:void 0,registeredStyles:[]}).runState||(ut=ft({},ut,{perf:{count:0,duration:0},runState:{flushTimer:0,mode:0,buffer:[]}})),ut.registeredThemableStyles||(ut=ft({},ut,{registeredThemableStyles:[]})),ht.__themeState__=ut,ut);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 a=document.createEvent("HTMLEvents");a.initEvent("styleinsert",!0,!1),a.args={newStyle:i},document.dispatchEvent(a);var u={styleElement:i,themableStyle:t};o?vt.registeredThemableStyles.push(u):vt.registeredStyles.push(u)}}(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=[],wt="theme";function Ct(){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],a=0,u=Object.keys(o);a<u.length;a++){var s=u[a],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={})[wt]=bt,i)),xt.forEach((function(t){try{t(bt)}catch(t){}}))}(e.FabricConfig.legacyTheme):ct.X.getSettings([wt]).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={})[wt]=bt,t)))}function Mt(t){return void 0===t&&(t=!1),!0===t&&(bt=(0,yt.a)({},t)),bt}Ct();var kt=i(302),At=i(41);(0,i(887).v)("@fluentui/style-utilities","8.13.0"),Ct()},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"},a=i(800),u=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 w(t,n,i,e){!function(t){var n=u.nr.getInstance(),i=(0,s.bz)((0,a.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 C(t,n,i,e,r){void 0===e&&(e="segoeui");var o="".concat(t,"/").concat(i,"/").concat(e);w(n,o+"-light",l.BO.light,r&&r+" Light"),w(n,o+"-semilight",l.BO.semilight,r&&r+" SemiLight"),w(n,o+"-regular",l.BO.regular,r),w(n,o+"-semibold",l.BO.semibold,r&&r+" SemiBold"),w(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");C(n,l.Dn.Thai,"leelawadeeui-thai","leelawadeeui"),C(n,l.Dn.Arabic,"segoeui-arabic"),C(n,l.Dn.Cyrillic,"segoeui-cyrillic"),C(n,l.Dn.EastEuropean,"segoeui-easteuropean"),C(n,l.Dn.Greek,"segoeui-greek"),C(n,l.Dn.Hebrew,"segoeui-hebrew"),C(n,l.Dn.Vietnamese,"segoeui-vietnamese"),C(n,l.Dn.WestEuropean,"segoeui-westeuropean","segoeui","Segoe UI"),C(n,l.bi.Selawik,"selawik","selawik"),C(n,l.Dn.Armenian,"segoeui-armenian"),C(n,l.Dn.Georgian,"segoeui-georgian"),w("Leelawadee UI Web","".concat(n,"/leelawadeeui-thai/leelawadeeui-semilight"),l.BO.light),w("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 A=i(823);function S(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}(V(t,n,(0,A.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 V(t,n,i,e,r){void 0===r&&(r=!1);var o={},a=t||{},u=a.white,s=a.black,l=a.themePrimary,c=a.themeDark,f=a.themeDarker,h=a.themeDarkAlt,d=a.themeLighter,v=a.neutralLight,p=a.neutralLighter,g=a.neutralDark,m=a.neutralQuaternary,y=a.neutralQuaternaryAlt,b=a.neutralPrimary,x=a.neutralSecondary,w=a.neutralSecondaryAlt,C=a.neutralTertiary,M=a.neutralTertiaryAlt,k=a.neutralLighterAlt,S=a.accent;return u&&(o.bodyBackground=u,o.bodyFrameBackground=u,o.accentButtonText=u,o.buttonBackground=u,o.primaryButtonText=u,o.primaryButtonTextHovered=u,o.primaryButtonTextPressed=u,o.inputBackground=u,o.inputForegroundChecked=u,o.listBackground=u,o.menuBackground=u,o.cardStandoutBackground=u),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),C&&(o.disabledBodyText=C,o.variantBorderHovered=(null==i?void 0:i.variantBorderHovered)||C,o.buttonTextDisabled=C,o.inputIconDisabled=C,o.disabledText=C),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),w&&(o.buttonBorder=w),M&&(o.disabledBodySubtext=M,o.disabledBorder=M,o.buttonBackgroundChecked=M,o.menuDivider=M),S&&(o.accentButtonBackground=S),(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,A.Cl)((0,A.Cl)({},o),i)}var L={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:V(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 a=0,u=Object.keys(o.fonts);a<u.length;a++){var s=u[a];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:L,isInverted:i,disableGlobalClassNames:!1,semanticColors:S(r.b,o,void 0,i,n),rtl:void 0},t)}},41:function(t,n,i){var e,r,o,a,u;i.d(n,{BO:function(){return a},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}(a||(a={})),function(t){t.xSmall="10px",t.small="12px",t.medium="16px",t.large="20px"}(u||(u={}))},873:function(t,n,i){i.d(n,{Z:function(){return g}});var e=i(40),r=i(823),o=i(506),a=i(962),u=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 w=m?m.__shadowConfig__:void 0,C=w&&w.window?w.window:"__default__";n.has(C)||n.set(C,new Map);var M=n.get(C),k=b.theme,A=k&&void 0!==k.rtl?k.rtl:(0,l.jI)(),S=t.disableCaching;if(g!==d&&(g=d,n.set(C,new Map),M=n.get(C),i=0),t.disableCaching||(M=y(n.get(C),m),M=y(M,b)),!S&&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,a.h)(h,g),y=m.classes,b=m.objects;(null==b?void 0:b.length)?(C=(0,u.GJ)(f||{},{displayName:p},b))&&(v.push(C),l[p]=y.concat([C.className]).join(" ")):l[p]=y.join(" ")}for(var x=0,w=v;x<w.length;x++){var C;(C=w[x])&&(0,u.Ae)(C,null==n?void 0:n.specificityMultiplier,c)}return l}(["function"==typeof m?m(b):m],{shadowConfig:m.__shadowConfig__,rtl:!!A,specificityMultiplier:t.useStaticStyles?h:void 0}),S||i++),i>(t.cacheSize||f)){var V=(0,c.z)();(null===(x=null==V?void 0:V.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(C).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__",a="__callbacks__",u=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[a],r=i[t];if(n!==r){i[t]=n;var o={oldValue:r,value:n,key:t};for(var u in e)e.hasOwnProperty(u)&&e[u](o)}return n},t.addChangeListener=function(t){var n=t.__id__,i=c();n||(n=t.__id__=String(u++)),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={})[a]={},t)),n[o]}function c(){return l()[a]}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]||{},a=0,u=t;a<u.length;a++){var s=u[a];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 a}});var e=i(594),r=i(540),o=i(770);function a(t,n){var i,a=(i=e.useState(0)[1],function(){return i((function(t){return++t}))}),u=e.useContext(o.z).customizations,s=u.inCustomizerContext;return e.useEffect((function(){return s||r.X.observe(a),function(){s||r.X.unobserve(a)}}),[s]),r.X.getSettings(t,n,u)}},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,a={empty:!0},u={},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:(u[s]||(u[s]={val:s}),u[s]):a;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),a=i(800),u="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)(u);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)(u,t?"1":"0"),e=t,(0,a.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,a.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),a=i(638),u=function(){return!1},s=function(){},l=r.createContext({stylesheets:new Map,useAdoptedStylesheetEx:u,useAdoptedStylesheet:u,useShadowConfig:function(){return a.ou},useMergeStylesShadowRootContext:s,useHasMergeStylesShadowRootContext:u,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,a,u){var s=(a=a||{scope:"",fields:void 0}).scope,l=a.fields,d=void 0===l?h:l,v=r.forwardRef((function(a,u){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(a):void 0,m=c().useStyled,y=l.current&&l.current.__cachedInputs__||[],b=a.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,a=n;r<a.length;r++){var u=a[r];u&&e.push("function"==typeof u?u(t):u)}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:u},p,g,a,{styles:l.current}))}));v.displayName="Styled".concat(t.displayName||t.name);var p=u?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 a},fX:function(){return u}});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 a(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 u(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 _h},CartesianChart:function(){return nh},ChartHoverCard:function(){return Js.ChartHoverCard},DataVizGradientPalette:function(){return Qs},DataVizPalette:function(){return Lf},DeclarativeChart:function(){return Tp},DonutChart:function(){return Rf},GaugeChart:function(){return Av},GaugeChartVariant:function(){return dv},GaugeValueFormat:function(){return hv},GroupedVerticalBarChart:function(){return fd},HeatMapChart:function(){return pd},HorizontalBarChart:function(){return $l},HorizontalBarChartVariant:function(){return v},HorizontalBarChartWithAxis:function(){return bv},Legends:function(){return jc},LineChart:function(){return xh},MultiStackedBarChart:function(){return Zh},MultiStackedBarChartVariant:function(){return zh},NodesComposition:function(){return jd},PieChart:function(){return Xh},ResponsiveContainer:function(){return bp},SankeyChart:function(){return Gd},Shape:function(){return Bc},Sparkline:function(){return gv},StackedBarChart:function(){return Qh},Textbox:function(){return vh},TreeChart:function(){return cv},TreeTraverse:function(){return $d},VerticalBarChart:function(){return rd},VerticalStackedBarChart:function(){return ud},getChartHoverCardStyles:function(){return hd.J},getColorFromToken:function(){return Ff},getGradientFromToken:function(){return al},getNextColor:function(){return Bf},getNextGradient:function(){return ol},withResponsiveContainer:function(){return xp}});var r=i(566),o=i(823),a=i(594),u=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 w(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 C(t,n,i){return null!=i||(i=document),!t||t===i.body||t instanceof Document?null:n(t)?t:C(w(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=w(n);if(r===t){e=!0;break}n=r}else t.contains&&(e=t.contains(n));return e}var k=i(543),A="data-is-focusable",S="data-is-visible",V="data-focuszone-id",L="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,a,u,s){var l;if(!n||!a&&n===t)return null;var c=O(n);if(r&&c&&(o||!F(n)&&!P(n))){var f=N(t,n.lastElementChild||s&&(null===(l=n.shadowRoot)||void 0===l?void 0:l.lastElementChild),!0,!0,!0,o,a,u,s);if(f){if(u&&B(f,!0,s)||!u)return f;var h=N(t,f.previousElementSibling,!0,!0,!0,o,a,u,s);if(h)return h;for(var d=f.parentElement;d&&d!==n;){var v=N(t,d.previousElementSibling,!0,!0,!0,o,a,u,s);if(v)return v;d=d.parentElement}}}return i&&c&&B(n,u,s)?n:N(t,n.previousElementSibling,!0,!0,!0,o,a,u,s)||(e?null:N(t,n.parentElement,!0,!1,!1,o,a,u,s))}function T(t,n,i,e,r,o,a,u,s,l){var c;if(!n||n===t&&r&&!a)return null;var f=(s?E:O)(n);if(i&&f&&B(n,u,l))return n;if(!r&&f&&(o||!F(n)&&!P(n))){var h=T(t,n.firstElementChild||l&&(null===(c=n.shadowRoot)||void 0===c?void 0:c.firstElementChild),!0,!0,!1,o,a,u,s,l);if(h)return h}return n===t?null:T(t,n.nextElementSibling,!0,!0,!1,o,a,u,s,l)||(e?null:T(t,n.parentElement,!1,!1,!0,o,a,u,s,l))}function O(t){if(!t||!t.getAttribute)return!1;var n=t.getAttribute(S);return null!=n?"true"===n:0!==t.offsetHeight||null!==t.offsetParent||!0===t.isVisible}function E(t,n){var i=null!=n?n:(0,l.z)();return!!t&&O(t)&&!t.hidden&&"hidden"!==i.getComputedStyle(t).visibility}function B(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(A):null,a=null!==r&&e>=0,u=!(!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||a||u);return n?-1!==e&&s:s}function F(t){return!!(t&&t.getAttribute&&t.getAttribute(V))}function P(t){return!(!t||!t.getAttribute||"true"!==t.getAttribute(L))}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 I(t,n,i,e){return t.addEventListener(n,i,e),function(){return t.removeEventListener(n,i,e)}}function W(t,n){for(var i=(0,o.Cl)({},n),e=0,r=Object.keys(t);e<r.length;e++){var a=r[e];void 0===i[a]&&(i[a]=t[a])}return i}var R=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],a=0,u=Array.isArray(o)?o:Object.keys(o);a<u.length;a++)i[u[a]]=1;return i},z=R(["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=R(["accessKey","children","className","contentEditable","dir","draggable","hidden","htmlFor","id","lang","ref","role","style","tabIndex","title","translate","spellCheck","name"]),$=R(j,z),Y=(R($,["form"]),R($,["height","loop","muted","preload","src","width"])),X=(R(Y,["poster"]),R($,["start"]),R($,["value"]),R($,["download","href","hrefLang","media","rel","target","type"]),R($,["autoFocus","disabled","form","formAction","formEncType","formMethod","formNoValidate","formTarget","type","value"])),G=(R(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"]),R(X,["autoCapitalize","cols","dirname","form","maxLength","minLength","placeholder","readOnly","required","rows","wrap"]),R(X,["form","multiple","required"]),R($,["selected","value"]),R($,["cellPadding","cellSpacing"]),R($,["rowSpan","scope"]),R($,["colSpan","headers","rowSpan","scope"]),R($,["span"]),R($,["span"]),R($,["acceptCharset","action","encType","encType","method","noValidate","target"]),R($,["allow","allowFullScreen","allowPaymentRequest","allowTransparency","csp","height","importance","referrerPolicy","sandbox","src","srcDoc","width"]),R($,["alt","crossOrigin","height","src","srcSet","useMap","width"]),$);function q(t,n,i){for(var e=Array.isArray(n),r={},o=0,a=Object.keys(t);o<a.length;o++){var u=a[o];!(!e&&n[u]||e&&n.indexOf(u)>=0||0===u.indexOf("data-")||0===u.indexOf("aria-"))||i&&-1!==(null==i?void 0:i.indexOf(u))||(r[u]=t[u])}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 a in o)o[a]&&i.push(a)}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 a=o[r];if(a)for(var u in a)!a.hasOwnProperty(u)||t&&!t(u)||(n[u]=a[u])}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 at(t,n,i){return{targetEdge:t,alignmentEdge:n,isAuto:i}}var ut=((rt={})[x.topLeftEdge]=at(Q.top,Q.left),rt[x.topCenter]=at(Q.top),rt[x.topRightEdge]=at(Q.top,Q.right),rt[x.topAutoEdge]=at(Q.top,void 0,!0),rt[x.bottomLeftEdge]=at(Q.bottom,Q.left),rt[x.bottomCenter]=at(Q.bottom),rt[x.bottomRightEdge]=at(Q.bottom,Q.right),rt[x.bottomAutoEdge]=at(Q.bottom,void 0,!0),rt[x.leftTopEdge]=at(Q.left,Q.top),rt[x.leftCenter]=at(Q.left),rt[x.leftBottomEdge]=at(Q.left,Q.bottom),rt[x.rightTopEdge]=at(Q.right,Q.top),rt[x.rightCenter]=at(Q.right),rt[x.rightBottomEdge]=at(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 wt(t,n,i,e){for(var r=0,o=t;r<o.length;r++){var a=o[r],u=void 0;e&&e===-1*a?(u=gt(n.elementRectangle,a,ct(i,a),!1),n.forcedInBounds=!0):yt(u=mt(n.elementRectangle,i,a),i,-1*a)||(u=gt(u,-1*a,ct(i,-1*a),!1),n.forcedInBounds=!0),n.elementRectangle=u}return n}function Ct(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),a=i.alignmentEdge,u=i.targetEdge,s=r?u:-1*u;return o=r?mt(o,n,u,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,u,e),o=a?mt(o,n,a):Ct(o,s,ht(n,u))}function kt(t){return t===Q.top||t===Q.bottom?{positiveEdge:Q.left,negativeEdge:Q.right}:{positiveEdge:Q.top,negativeEdge:Q.bottom}}function At(t,n,i){return i&&Math.abs(pt(t,i,n))>Math.abs(pt(t,i,-1*n))?-1*n:n}function St(t,n,i,e,r,o,a,u){var s,l={},c=Dt(n),f=o?i:-1*i,h=r||kt(i).positiveEdge;return a&&!function(t,n,i){return void 0!==i&&ct(t,n)===ct(i,n)}(t,(s=h,-1*s),e)||(h=At(t,h,e)),l[Q[f]]=pt(t,c,f),l[Q[h]]=pt(t,c,h),u&&(l[Q[-1*f]]=pt(t,c,-1*f),l[Q[-1*h]]=pt(t,c,-1*h)),l}function Vt(t,n,i){var e=ht(n,t),r=ht(i,t),o=kt(t),a=o.positiveEdge,u=o.negativeEdge;return e<=r?a:u}function Lt(t,n,i,e,r,o,a,u,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,a,u,l){void 0===r&&(r=!1),void 0===a&&(a=0);var c=e.alignmentEdge,f=e.alignTargetEdge,h={elementRectangle:t,targetEdge:e.targetEdge,alignmentEdge:c};u||l||(h=function(t,n,i,e,r,o,a){void 0===r&&(r=!1),void 0===a&&(a=0);var u=[Q.left,Q.right,Q.bottom,Q.top];(0,s.jI)()&&(u[0]*=-1,u[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),u.splice(u.indexOf(f),1),u.length>0&&(u.indexOf(-1*f)>-1?f*=-1:(h=f,f=u.slice(-1)[0]),c=Mt(t,n,{targetEdge:f,alignmentEdge:h},a))}return{elementRectangle:c=Mt(t,n,{targetEdge:d,alignmentEdge:v},a),targetEdge:d,alignmentEdge:v}}(t,n,i,e,r,o,a));var d=lt(h.elementRectangle,i),v=u?-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,a=-1*r;return{elementRectangle:Mt(t.elementRectangle,n,{targetEdge:o,alignmentEdge:a},i,e),targetEdge:o,alignmentEdge:a}}(h,n,a,l);if(st(p.elementRectangle,i))return p;h=wt(lt(p.elementRectangle,i),h,i,v)}else h=wt(d,h,i,v);else h=wt(d,h,i,v);return h}(c,n,i,e,o,a,r,u,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,a){void 0===r&&(r=!1);var u=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,a=r.top||r.y,u=r.right||o,s=r.bottom||a;i=new ot(o,u,a,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=Vt(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)({},ut[t]);return(0,s.jI)()?(e.alignmentEdge&&e.alignmentEdge%2==0&&(e.alignmentEdge=-1*e.alignmentEdge),void 0!==n?ut[n]:e):e}(t.directionalHint,t.directionalHintForRTL,e),l,i,t.coverTarget,t.alignTargetEdge),f=Lt(Dt(n),l,i,c,u,r,a,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 Ot(t,n,i,e,r,a,u,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,w,C,M=t.bounds?(C=t.bounds,new ot(C.left,C.right,C.top,C.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),A=Nt(d,i,M,e,r,a),S=(v=A,p=function(t,n){var i=n.targetRectangle,e=kt(n.targetEdge),r=e.positiveEdge,o=e.negativeEdge,a=ht(i,n.targetEdge),u=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=Ct(s=gt(s,-1*n.targetEdge,-t/2),-1*n.targetEdge,a-vt(r,n.elementRectangle)),u,r)?yt(s,u,o)||(s=mt(s,u,o)):s=mt(s,u,r),s}(f,A),g=M,m=-1*v.targetEdge,y=new ot(0,v.elementRectangle.width,0,v.elementRectangle.height),b={},x=At(v.elementRectangle,v.alignmentEdge?v.alignmentEdge:kt(m).positiveEdge,g),w=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:Vt(v.targetEdge,p,y),targetEdge:m,hideBeak:!w});return(0,o.Cl)((0,o.Cl)({},function(t,n,i,e,r){return{elementPosition:St(t.elementRectangle,n,t.targetEdge,i,t.alignmentEdge,e,r,t.forcedInBounds),targetEdge:t.targetEdge,alignmentEdge:t.alignmentEdge}}(A,n,M,t.coverTarget,u)),{beakPosition:S})}var Et=["TEMPLATE","STYLE","SCRIPT"];function Bt(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],a=o.getAttribute("aria-hidden");o!==t&&"true"!==(null==a?void 0:a.toLowerCase())&&-1===Et.indexOf(o.tagName)&&i.push([o,a])}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 Ft=27,Pt=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,a=n||0,u=!0,s=!0,l=0,c=null;i&&"boolean"==typeof i.leading&&(u=i.leading),i&&"boolean"==typeof i.trailing&&(s=i.trailing);var f=function(n){var i=Date.now(),h=i-l,d=u?a-h:a;return h>=a&&(!n||u)?(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,a,u=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,a)},g=function(t){var n=Date.now(),i=!1;t&&(s&&n-f>=u&&(i=!0),f=n);var r=n-f,a=u-r,v=n-h,m=!1;return null!==c&&(v>=c&&d?m=!0:a=Math.min(a,c-v)),r>=u||m||i?p(n):null!==d&&t||!l||(d=e.setTimeout(g,a)),o},m=function(){return!!d},y=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return a=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=a.useRef();return t.current||(t.current=new Pt),a.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=a.useRef(i);r.current=i,a.useEffect((function(){var i=t&&"current"in t?t.current:t;if(i&&i.addEventListener)return I(i,n,(function(t){return r.current(t)}),e)}),[t,n,e])}function It(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var i=a.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 Wt=a.createContext({window:"object"==typeof window?window:void 0}),Rt=function(){return a.useContext(Wt).window},zt=function(){var t;return null===(t=a.useContext(Wt).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 $t=a.forwardRef((function(t,n){var i=W({shouldRestoreFocus:!0,enableAriaHiddenSiblings:!0},t),e=a.useRef(),r=It(e,n);!function(t,n){var i="true"===String(t["aria-modal"]).toLowerCase()&&t.enableAriaHiddenSiblings;a.useEffect((function(){if(i&&n.current)return Bt(n.current)}),[n,i])}(i,e),function(t,n){var i=t.onRestoreFocus,e=void 0===i?jt:i,r=a.useRef(),o=a.useRef(!1);a.useEffect((function(){var t,i,a;return r.current=(0,k.Y)().activeElement,t=n.current,(a=(i=(0,k.Y)(t))&&i.activeElement)&&M(t,a)&&(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",a.useCallback((function(){o.current=!0}),[]),!0),Ht(n,"blur",a.useCallback((function(t){n.current&&t.relatedTarget&&!n.current.contains(t.relatedTarget)&&(o.current=!1)}),[]),!0)}(i,e);var u=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=a.useState(!1),r=e[0],o=e[1];return a.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 a=n.current.clientHeight,u=n.current.firstElementChild.clientHeight;a>0&&u>a&&(e=u-a>1)}r!==e&&o(e)}})),function(){return i.dispose()}})),r}(i,e),g=a.useCallback((function(t){t.which===Ft&&v&&(v(t),t.preventDefault(),t.stopPropagation())}),[v]);return Ht(Rt(),"keydown",g),a.createElement("div",(0,o.Cl)({ref:r},q(i,G),{className:s,role:u,"aria-label":l,"aria-labelledby":c,"aria-describedby":f,onKeyDown:g,style:(0,o.Cl)({overflowY:p?"scroll":void 0,outline:"none"},h)}),d)}));$t.displayName="Popup";var Yt=i(419);function Xt(t){var n=a.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=Rt())&&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]=Yt.lw.slideUpIn10,Gt[Q.bottom]=Yt.lw.slideDownIn10,Gt[Q.left]=Yt.lw.slideLeftIn10,Gt[Q.right]=Yt.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,u.Z)({disableCaching:!0});function nn(t,n,i,e){var r,o=t.calloutMaxHeight,u=t.finalHeight,s=t.directionalHint,l=t.directionalHintFixed,c=t.hidden,f=t.gapSpace,h=t.beakWidth,d=t.isBeakVisible,v=t.coverTarget,p=a.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,w=(null==i?void 0:i.current)?function(t){var n,i,e,r,o=t,a=t,u=t,s=null!==(n=u.left)&&void 0!==n?n:u.x,l=null!==(i=u.top)&&void 0!==i?i:u.y,c=null!==(e=u.right)&&void 0!==e?e:s,f=null!==(r=u.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(a)}(i.current):void 0;return a.useEffect((function(){var t,i,r=null!==(t=n())&&void 0!==t?t:{},a=r.top,u=r.bottom;(null==e?void 0:e.targetEdge)===Q.top&&(null==w?void 0:w.top)&&!v&&(u=w.top-function(t,n,i){return Tt(t,n,i)}(d,h,f)),"number"==typeof b&&u?i=u-b:"number"==typeof x&&"number"==typeof a&&u&&(i=u-a-x),m(!o&&!c||o&&i&&o>i?i:o||void 0)}),[x,o,u,s,l,n,c,e,b,f,h,d,w,v]),g}function en(t,n,i,e,r,u){var s,c=a.useState(),f=c[0],h=c[1],d=a.useRef(0),v=a.useRef(),p=_t(),g=t.hidden,m=t.target,y=t.finalHeight,b=t.calloutMaxHeight,x=t.onPositioned,w=t.directionalHint,C=t.hideOverflow,M=t.preferScrollResizePositioning,k=qt(),A=a.useRef();A.current!==u.current&&(A.current=u.current,s=u.current?null==k?void 0:k.getComputedStyle(u.current):void 0);var S=null==s?void 0:s.overflowY;return a.useEffect((function(){if(!g){var a=p.requestAnimationFrame((function(){var a,u,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===(a=i.parentElement)||void 0===a||a.appendChild(g);var w=v.current===m?f:void 0,A=M&&!(C||"clip"===S||"hidden"===S),V=y?function(t,n,i,e,r){return function(t,n,i,e,r){return Ot(t,n,i,e,!1,void 0,!0,null!=r?r:(0,l.z)())}(t,n,i,e,r)}(p,n.current,g,w,k):function(t,n,i,e,r,o,a){return Ot(t,n,i,e,r,void 0,void 0,a)}(p,n.current,g,w,A,0,k);null===(u=i.parentElement)||void 0===u||u.removeChild(g),!f&&V||f&&V&&(c=V,!an((s=f).elementPosition,c.elementPosition)||!an(s.beakPosition.elementPosition,c.beakPosition.elementPosition))&&d.current<5?(d.current++,h(V)):d.current>0&&(d.current=0,null==x||x(f))}}),i);return v.current=m,function(){p.cancelAnimationFrame(a),v.current=void 0}}h(void 0),d.current=0}),[g,w,p,i,b,n,e,y,r,x,f,t,m,C,M,S,k]),f}var rn=a.memo(a.forwardRef((function(t,n){var i=W(Qt,t),e=i.styles,r=i.style,u=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,w=i.backgroundColor,C=i.calloutMaxHeight,A=i.onScroll,S=i.shouldRestoreFocus,V=void 0===S||S,L=i.target,N=i.hidden,T=i.onLayerMounted,O=i.popupProps,E=a.useRef(null),B=It(a.useRef(null),null==O?void 0:O.ref),F=a.useState(null),P=F[0],_=F[1],H=a.useCallback((function(t){_(t)}),[]),R=It(E,n),z=function(t,n){var i,e,r,o=a.useRef(),u=a.useRef(null),s=Rt();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)u.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);u.current=c?c.querySelector(t):null}else u.current="stopPropagation"in t||"getBoundingClientRect"in t?t:"current"in t?t.current:t;o.current=t}return[u,s]}(i.target,{current:P}),j=z[0],$=z[1],Y=function(t,n,i){var e=t.bounds,r=t.minPagePadding,o=void 0===r?Qt.minPagePadding:r,u=t.target,s=a.useState(!1),l=s[0],c=s[1],f=a.useRef(),h=a.useCallback((function(){if(!f.current||l){var t="function"==typeof e?i?e(u,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 a={top:0,left:0,right:0,bottom:0,width:0,height:0},u=0,s=i;u<s.length;u++){var l=s[u];e&&l.left<=e&&l.right>=e&&r&&l.top<=r&&l.bottom>=r&&(a={top:l.top,left:l.left,right:l.right,bottom:l.bottom,width:l.width,height:l.height})}return a}(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,u,n,i,l]),d=_t();return Ht(i,"resize",d.debounce((function(){c(!0)}),500,{leading:!0})),h}(i,j,$),X=en(i,E,P,j,Y,B),Z=nn(i,Y,j,X),K=function(t,n,i,e,r){var o=t.hidden,u=t.onDismiss,s=t.preventDismissOnScroll,l=t.preventDismissOnResize,c=t.preventDismissOnLostFocus,f=t.dismissOnTargetClick,h=t.shouldDismissOnWindowFocus,d=t.preventDismissOnEvent,v=a.useRef(!1),p=_t(),g=Xt([function(){v.current=!0},function(){v.current=!1}]),m=!!n;return a.useEffect((function(){var t=function(t){m&&!s&&g(t)},n=function(t){l||d&&d(t)||null==u||u(t)},a=function(t){c||g(t)},g=function(t){var n=t.composedPath?t.composedPath():[],o=n.length>0?n[0]:t.target,a=i.current&&!M(i.current,o);if(a&&v.current)v.current=!1;else if(!e.current&&a||t.target!==r&&a&&(!e.current||"stopPropagation"in e.current||f||o!==e.current&&!M(e.current,o))){if(d&&d(t))return;null==u||u(t)}},y=function(t){h&&((!d||d(t))&&(d||c)||(null==r?void 0:r.document.hasFocus())||null!==t.relatedTarget||null==u||u(t))},b=new Promise((function(i){p.setTimeout((function(){if(!o&&r){var e=[I(r,"scroll",t,!0),I(r,"resize",n,!0),I(r.document.documentElement,"focus",a,!0),I(r.document.documentElement,"click",a,!0),I(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,u,h,f,c,l,s,m,d]),g}(i,X,E,j,$),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(),u=!!n;a.useEffect((function(){if(!e&&r&&u&&i){var t=o.requestAnimationFrame((function(){return D(i)}),i);return function(){return o.cancelAnimationFrame(t)}}}),[e,u,o,i,r])}(i,X,P),a.useEffect((function(){N||null==T||T()}),[N]),!$)return null;var it=x,et=f&&!!L,rt=tn(e,{theme:i.theme,className:c,overflowYHidden:it,calloutWidth:v,positions:X,beakWidth:d,backgroundColor:w,calloutMaxWidth:p,calloutMinWidth:g,doNotLayer:m}),ot=(0,o.Cl)((0,o.Cl)({maxHeight:C||"100%"},r),it&&{overflowY:"hidden"}),at=i.hidden?{visibility:"hidden"}:void 0;return a.createElement("div",{ref:R,className:rt.container,style:at},a.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&&a.createElement("div",{className:rt.beak,style:on(X)}),et&&a.createElement("div",{className:rt.beakCurtain}),a.createElement($t,(0,o.Cl)({role:i.role,"aria-roledescription":i["aria-roledescription"],ariaDescribedBy:s,ariaLabel:u,ariaLabelledBy:l,className:rt.calloutMain,onDismiss:i.onDismiss,onMouseDown:J,onMouseUp:Q,onRestoreFocus:i.onRestoreFocus,onScroll:A,shouldRestoreFocus:V,style:ot},O,{ref:B}),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 an(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 un(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,a=t.beakWidth,u=t.backgroundColor,s=t.calloutMaxWidth,l=t.calloutMinWidth,c=t.doNotLayer,f=(0,Yt.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?Yt.nA.Layer:void 0,boxSizing:"border-box",borderRadius:d.roundedCorner2,boxShadow:d.elevation16,selectors:(n={},n[Yt.up]={borderWidth:1,borderStyle:"solid",borderColor:"WindowText"},n)},(0,Yt.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)"},un(a),u&&{backgroundColor:u}],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"},u&&{backgroundColor:u}]}}),void 0,{scope:"CalloutContent"}),cn=a.createContext(void 0),fn=function(){return function(){}};cn.Provider;var hn=ReactDOM,dn=i(753);new WeakMap,new WeakMap;var vn=a.createContext(void 0),pn=function(t){var n=t.providerRef,i=t.layerRoot,e=a.useState([])[0],r=a.useContext(vn),o=void 0!==r&&!i,u=a.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 a.useEffect((function(){if(u)return u.registerProvider(u.providerRef),function(){return u.unregisterProvider(u.providerRef)}}),[u]),u?a.createElement(vn.Provider,{value:u},t.children):a.createElement(a.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 a.createElement(mn.z.Consumer,null,(function(i){var e=function(t,n){var i,e,r,a=(n||{}).customizations,u=void 0===a?{settings:{},scopedSettings:{}}:a;return{customizations:{settings:yn(u.settings,t.settings),scopedSettings:(i=u.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)),a.createElement(mn.z.Provider,{value:e},t.props.children)}))},n}(a.Component),wn=i(143),Cn=(0,u.Z)(),Mn=(0,dn.J9)((function(t,n){return(0,wn.a)((0,o.Cl)((0,o.Cl)({},t),{rtl:n}))})),kn=a.forwardRef((function(t,n){var i=t.className,e=t.theme,r=t.applyTheme,u=t.applyThemeToBody,l=t.styles,c=Cn(l,{theme:e,applyTheme:r,className:i}),f=a.useRef(null);return function(t,n,i){var e=n.bodyThemed;a.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])}(u,c,f),a.createElement(a.Fragment,null,function(t,n,i,e){var r=n.root,u=t.as,l=void 0===u?"div":u,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=a.createElement(pn,{providerRef:i},a.createElement(l,(0,o.Cl)({dir:v},h,{className:r,ref:It(i,e)})));return p&&(g=a.createElement(xn,{settings:{theme:Mn(f,"rtl"===c)}},g)),g}(t,c,f,n))}));kn.displayName="FabricBase";var An,Sn={fontFamily:"inherit"},Vn={root:"ms-Fabric",bodyThemed:"ms-Fabric-bodyThemed"},Ln=(0,r.I)(kn,(function(t){var n=t.applyTheme,i=t.className,e=t.preventBlanketFontInheritance,r=t.theme;return{root:[(0,Yt.Km)(Vn,r).root,r.fonts.medium,{color:r.palette.neutralPrimary},!e&&{"& button":Sn,"& input":Sn,"& textarea":Sn},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={},On={},En="fluent-default-layer-host",Bn="#".concat(En),Fn=i(921),Pn=(0,Fn.S)()?a.useLayoutEffect:a.useEffect,_n=(0,u.Z)(),Hn=a.forwardRef((function(t,n){var i,e=null!==(i=a.useContext(cn))&&void 0!==i?i:fn,r=a.useRef(null),u=It(r,n),s=a.useRef(),l=a.useRef(null),c=a.useContext(vn),f=a.useState(!1),h=f[0],d=f[1],v=a.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,w=t.onLayerDidMount,C=void 0===w?function(){}:w,M=t.onLayerMounted,A=void 0===M?function(){}:M,S=t.onLayerWillUnmount,V=t.styles,L=t.theme,D=It(l,null==y?void 0:y.ref,v),N=_n(V,{theme:L,className:g,isNotHost:!b}),T=function(){null==S||S();var t=s.current;s.current=void 0,t&&t.parentNode&&t.parentNode.removeChild(t)},O=function(){var t,n,i,e,o=(0,k.Y)(r.current),a=(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||a)){var u=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=On[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 a=Bn,u=a?r.querySelector(a):null;return u||(u=function(t,n){void 0===n&&(n=null);var i=t.createElement("div");return i.setAttribute("id",En),i.style.cssText="position:fixed;z-index:1000000",n?n.appendChild(i):null==t||t.body.appendChild(i),i}(t,n)),u}(o,a);if(u){u.__tabsterElementFlags||(u.__tabsterElementFlags={}),u.__tabsterElementFlags.noDirectAriaHidden=!0,T();var l=(null!==(e=u.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?u.insertBefore(l,u.firstChild):u.appendChild(l),s.current=l,d(!0)}}};return Pn((function(){O(),b&&function(t,n){Tn[t]||(Tn[t]=[]),Tn[t].push(n);var i=On[t];if(i)for(var e=0,r=i;e<r.length;e++)r[e].notifyLayersChanged()}(b,O);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=On[t];if(r)for(var o=0,a=r;o<a.length;o++)a[o].notifyLayersChanged()}(b,O)}}),[b]),a.useEffect((function(){s.current&&h&&(null==A||A(),null==C||C(),d(!1))}),[h,A,C]),a.createElement("span",{className:"ms-layer",ref:u},s.current&&hn.createPortal(a.createElement(pn,{layerRoot:!0,providerRef:D},a.createElement(Ln,(0,o.Cl)({},!m&&(An||(An={},["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 An[t]=In}))),An),y,{className:U(N.content,null==y?void 0:y.className),ref:D}),p)),s.current))}));Hn.displayName="LayerBase";var In=function(t){t.eventPhase===Event.BUBBLING_PHASE&&"mouseenter"!==t.type&&"mouseleave"!==t.type&&"touchstart"!==t.type&&"touchend"!==t.type&&t.stopPropagation()},Wn={root:"ms-Layer",rootNoHost:"ms-Layer--fixed",content:"ms-Layer-content"},Rn=(0,r.I)(Hn,(function(t){var n=t.className,i=t.isNotHost,e=t.theme,r=(0,Yt.Km)(Wn,e);return{root:[r.root,e.fonts.medium,i&&[r.rootNoHost,{position:"fixed",zIndex:Yt.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"]}),zn=a.forwardRef((function(t,n){var i=t.layerProps,e=t.doNotLayer,r=(0,o.Tt)(t,["layerProps","doNotLayer"]),u=a.createElement(ln,(0,o.Cl)({},r,{doNotLayer:e,ref:n}));return e?u:a.createElement(Rn,(0,o.Cl)({},i),u)}));zn.displayName="Callout";var jn=i(607);function $n(t){return t}var Yn=1,Xn=2,Gn=3,qn=4,Un=1e-6;function Zn(t){return"translate("+t+",0)"}function Kn(t){return"translate(0,"+t+")"}function Jn(t){return n=>+t(n)}function Qn(t,n){return n=Math.max(0,t.bandwidth()-2*n)/2,t.round()&&(n=Math.round(n)),i=>+t(i)+n}function ti(){return!this.__axis}function ni(t,n){var i=[],e=null,r=null,o=6,a=6,u=3,s="undefined"!=typeof window&&window.devicePixelRatio>1?0:.5,l=t===Yn||t===qn?-1:1,c=t===qn||t===Xn?"x":"y",f=t===Yn||t===Gn?Zn:Kn;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):$n:r,p=Math.max(o,0)+u,g=n.range(),m=+g[0]+s,y=+g[g.length-1]+s,b=(n.bandwidth?Qn:Jn)(n.copy(),s),x=h.selection?h.selection():h,w=x.selectAll(".domain").data([null]),C=x.selectAll(".tick").data(d,n).order(),M=C.exit(),k=C.enter().append("g").attr("class","tick"),A=C.select("line"),S=C.select("text");w=w.merge(w.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),C=C.merge(k),A=A.merge(k.append("line").attr("stroke","currentColor").attr(c+"2",l*o)),S=S.merge(k.append("text").attr("fill","currentColor").attr(c,l*p).attr("dy",t===Yn?"0em":t===Gn?"0.71em":"0.32em")),h!==x&&(w=w.transition(h),C=C.transition(h),A=A.transition(h),S=S.transition(h),M=M.transition(h).attr("opacity",Un).attr("transform",(function(t){return isFinite(t=b(t))?f(t+s):this.getAttribute("transform")})),k.attr("opacity",Un).attr("transform",(function(t){var n=this.parentNode.__axis;return f((n&&isFinite(n=n(t))?n:b(t))+s)}))),M.remove(),w.attr("d",t===qn||t===Xn?a?"M"+l*a+","+m+"H"+s+"V"+y+"H"+l*a:"M"+s+","+m+"V"+y:a?"M"+m+","+l*a+"V"+s+"H"+y+"V"+l*a:"M"+m+","+s+"H"+y),C.attr("opacity",1).attr("transform",(function(t){return f(b(t)+s)})),A.attr(c+"2",l*o),S.attr(c,l*p).text(v),x.filter(ti).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===Xn?"start":t===qn?"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=a=+t,h):o},h.tickSizeInner=function(t){return arguments.length?(o=+t,h):o},h.tickSizeOuter=function(t){return arguments.length?(a=+t,h):a},h.tickPadding=function(t){return arguments.length?(u=+t,h):u},h.offset=function(t){return arguments.length?(s=+t,h):s},h}function ii(t){return ni(Xn,t)}function ei(t){return ni(Gn,t)}function ri(t){return ni(qn,t)}const oi=Math.sqrt(50),ai=Math.sqrt(10),ui=Math.sqrt(2);function si(t,n,i){const e=(n-t)/Math.max(0,i),r=Math.floor(Math.log10(e)),o=e/Math.pow(10,r),a=o>=oi?10:o>=ai?5:o>=ui?2:1;let u,s,l;return r<0?(l=Math.pow(10,-r)/a,u=Math.round(t*l),s=Math.round(n*l),u/l<t&&++u,s/l>n&&--s,l=-l):(l=Math.pow(10,r)*a,u=Math.round(t/l),s=Math.round(n/l),u*l<t&&++u,s*l>n&&--s),s<u&&.5<=i&&i<2?si(t,n,2*i):[u,s,l]}function li(t,n,i){if(!((i=+i)>0))return[];if((t=+t)==(n=+n))return[t];const e=n<t,[r,o,a]=e?si(n,t,i):si(t,n,i);if(!(o>=r))return[];const u=o-r+1,s=new Array(u);if(e)if(a<0)for(let t=0;t<u;++t)s[t]=(o-t)/-a;else for(let t=0;t<u;++t)s[t]=(o-t)*a;else if(a<0)for(let t=0;t<u;++t)s[t]=(r+t)/-a;else for(let t=0;t<u;++t)s[t]=(r+t)*a;return s}function ci(t,n,i){return si(t=+t,n=+n,i=+i)[2]}function fi(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 hi(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}}function di(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 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){return null==t||null==n?NaN:t<n?-1:t>n?1:t>=n?0:NaN}function gi(t,n){return null==t||null==n?NaN:n<t?-1:n>t?1:n>=t?0:NaN}function mi(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=pi,i=(n,i)=>pi(t(n),i),e=(n,i)=>t(n)-i):(n=t===pi||t===gi?t:yi,i=t,e=t),{left:r,center:function(t,n,i=0,o=t.length){const a=r(t,n,i,o-1);return a>i&&e(t[a-1],n)>-e(t[a],n)?a-1:a},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 yi(){return 0}const bi=mi(pi),xi=bi.right;bi.left,mi((function(t){return null===t?NaN:+t})).center;var wi=xi;function Ci(t,n,i){t.prototype=n.prototype=i,i.constructor=t}function Mi(t,n){var i=Object.create(t.prototype);for(var e in n)i[e]=n[e];return i}function ki(){}var Ai=.7,Si=1/Ai,Vi="\\s*([+-]?\\d+)\\s*",Li="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Di="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ni=/^#([0-9a-f]{3,8})$/,Ti=new RegExp(`^rgb\\(${Vi},${Vi},${Vi}\\)$`),Oi=new RegExp(`^rgb\\(${Di},${Di},${Di}\\)$`),Ei=new RegExp(`^rgba\\(${Vi},${Vi},${Vi},${Li}\\)$`),Bi=new RegExp(`^rgba\\(${Di},${Di},${Di},${Li}\\)$`),Fi=new RegExp(`^hsl\\(${Li},${Di},${Di}\\)$`),Pi=new RegExp(`^hsla\\(${Li},${Di},${Di},${Li}\\)$`),_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 Hi(){return this.rgb().formatHex()}function Ii(){return this.rgb().formatRgb()}function Wi(t){var n,i;return t=(t+"").trim().toLowerCase(),(n=Ni.exec(t))?(i=n[1].length,n=parseInt(n[1],16),6===i?Ri(n):3===i?new $i(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=Ti.exec(t))?new $i(n[1],n[2],n[3],1):(n=Oi.exec(t))?new $i(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=Ei.exec(t))?zi(n[1],n[2],n[3],n[4]):(n=Bi.exec(t))?zi(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=Fi.exec(t))?Zi(n[1],n[2]/100,n[3]/100,1):(n=Pi.exec(t))?Zi(n[1],n[2]/100,n[3]/100,n[4]):_i.hasOwnProperty(t)?Ri(_i[t]):"transparent"===t?new $i(NaN,NaN,NaN,0):null}function Ri(t){return new $i(t>>16&255,t>>8&255,255&t,1)}function zi(t,n,i,e){return e<=0&&(t=n=i=NaN),new $i(t,n,i,e)}function ji(t,n,i,e){return 1===arguments.length?((r=t)instanceof ki||(r=Wi(r)),r?new $i((r=r.rgb()).r,r.g,r.b,r.opacity):new $i):new $i(t,n,i,null==e?1:e);var r}function $i(t,n,i,e){this.r=+t,this.g=+n,this.b=+i,this.opacity=+e}function Yi(){return`#${Ui(this.r)}${Ui(this.g)}${Ui(this.b)}`}function Xi(){const t=Gi(this.opacity);return`${1===t?"rgb(":"rgba("}${qi(this.r)}, ${qi(this.g)}, ${qi(this.b)}${1===t?")":`, ${t})`}`}function Gi(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function qi(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Ui(t){return((t=qi(t))<16?"0":"")+t.toString(16)}function Zi(t,n,i,e){return e<=0?t=n=i=NaN:i<=0||i>=1?t=n=NaN:n<=0&&(t=NaN),new Ji(t,n,i,e)}function Ki(t){if(t instanceof Ji)return new Ji(t.h,t.s,t.l,t.opacity);if(t instanceof ki||(t=Wi(t)),!t)return new Ji;if(t instanceof Ji)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),a=NaN,u=o-r,s=(o+r)/2;return u?(a=n===o?(i-e)/u+6*(i<e):i===o?(e-n)/u+2:(n-i)/u+4,u/=s<.5?o+r:2-o-r,a*=60):u=s>0&&s<1?0:a,new Ji(a,u,s,t.opacity)}function Ji(t,n,i,e){this.h=+t,this.s=+n,this.l=+i,this.opacity=+e}function Qi(t){return(t=(t||0)%360)<0?t+360:t}function te(t){return Math.max(0,Math.min(1,t||0))}function ne(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 ie(t,n,i,e,r){var o=t*t,a=o*t;return((1-3*t+3*o-a)*n+(4-6*o+3*a)*i+(1+3*t+3*o-3*a)*e+a*r)/6}Ci(ki,Wi,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:Hi,formatHex:Hi,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Ki(this).formatHsl()},formatRgb:Ii,toString:Ii}),Ci($i,ji,Mi(ki,{brighter(t){return t=null==t?Si:Math.pow(Si,t),new $i(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?Ai:Math.pow(Ai,t),new $i(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new $i(qi(this.r),qi(this.g),qi(this.b),Gi(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:Yi,formatHex:Yi,formatHex8:function(){return`#${Ui(this.r)}${Ui(this.g)}${Ui(this.b)}${Ui(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Xi,toString:Xi})),Ci(Ji,(function(t,n,i,e){return 1===arguments.length?Ki(t):new Ji(t,n,i,null==e?1:e)}),Mi(ki,{brighter(t){return t=null==t?Si:Math.pow(Si,t),new Ji(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?Ai:Math.pow(Ai,t),new Ji(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 $i(ne(t>=240?t-240:t+120,r,e),ne(t,r,e),ne(t<120?t+240:t-120,r,e),this.opacity)},clamp(){return new Ji(Qi(this.h),te(this.s),te(this.l),Gi(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=Gi(this.opacity);return`${1===t?"hsl(":"hsla("}${Qi(this.h)}, ${100*te(this.s)}%, ${100*te(this.l)}%${1===t?")":`, ${t})`}`}}));var ee=t=>()=>t;function re(t,n){var i=n-t;return i?function(t,n){return function(i){return t+i*n}}(t,i):ee(isNaN(t)?n:t)}var oe=function t(n){var i=function(t){return 1==(t=+t)?re: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):ee(isNaN(n)?i:n)}}(n);function e(t,n){var e=i((t=ji(t)).r,(n=ji(n)).r),r=i(t.g,n.g),o=i(t.b,n.b),a=re(t.opacity,n.opacity);return function(n){return t.r=e(n),t.g=r(n),t.b=o(n),t.opacity=a(n),t+""}}return e.gamma=t,e}(1);function ae(t){return function(n){var i,e,r=n.length,o=new Array(r),a=new Array(r),u=new Array(r);for(i=0;i<r;++i)e=ji(n[i]),o[i]=e.r||0,a[i]=e.g||0,u[i]=e.b||0;return o=t(o),a=t(a),u=t(u),e.opacity=1,function(t){return e.r=o(t),e.g=a(t),e.b=u(t),e+""}}}function ue(t,n){var i,e=n?n.length:0,r=t?Math.min(e,t.length):0,o=new Array(r),a=new Array(e);for(i=0;i<r;++i)o[i]=pe(t[i],n[i]);for(;i<e;++i)a[i]=n[i];return function(t){for(i=0;i<r;++i)a[i]=o[i](t);return a}}function se(t,n){var i=new Date;return t=+t,n=+n,function(e){return i.setTime(t*(1-e)+n*e),i}}function le(t,n){return t=+t,n=+n,function(i){return t*(1-i)+n*i}}function ce(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]=pe(t[i],n[i]):r[i]=n[i];return function(t){for(i in e)r[i]=e[i](t);return r}}ae((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],a=e>0?t[e-1]:2*r-o,u=e<n-1?t[e+2]:2*o-r;return ie((i-e/n)*n,a,r,o,u)}})),ae((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],a=t[(e+1)%n],u=t[(e+2)%n];return ie((i-e/n)*n,r,o,a,u)}}));var fe=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,he=new RegExp(fe.source,"g");function de(t,n){var i,e,r,o=fe.lastIndex=he.lastIndex=0,a=-1,u=[],s=[];for(t+="",n+="";(i=fe.exec(t))&&(e=he.exec(n));)(r=e.index)>o&&(r=n.slice(o,r),u[a]?u[a]+=r:u[++a]=r),(i=i[0])===(e=e[0])?u[a]?u[a]+=e:u[++a]=e:(u[++a]=null,s.push({i:a,x:le(i,e)})),o=he.lastIndex;return o<n.length&&(r=n.slice(o),u[a]?u[a]+=r:u[++a]=r),u.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)u[(i=s[e]).i]=i.x(t);return u.join("")})}function ve(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 pe(t,n){var i,e,r=typeof n;return null==n||"boolean"===r?ee(n):("number"===r?le:"string"===r?(i=Wi(n))?(n=i,oe):de:n instanceof Wi?oe:n instanceof Date?se:(e=n,!ArrayBuffer.isView(e)||e instanceof DataView?Array.isArray(n)?ue:"function"!=typeof n.valueOf&&"function"!=typeof n.toString||isNaN(n)?ce:le:ve))(t,n)}function ge(t,n){return t=+t,n=+n,function(i){return Math.round(t*(1-i)+n*i)}}function me(t){return+t}var ye=[0,1];function be(t){return t}function xe(t,n){return(n-=t=+t)?function(i){return(i-t)/n}:(i=isNaN(n)?NaN:.5,function(){return i});var i}function we(t,n,i){var e=t[0],r=t[1],o=n[0],a=n[1];return r<e?(e=xe(r,e),o=i(a,o)):(e=xe(e,r),o=i(o,a)),function(t){return o(e(t))}}function Ce(t,n,i){var e=Math.min(t.length,n.length)-1,r=new Array(e),o=new Array(e),a=-1;for(t[e]<t[0]&&(t=t.slice().reverse(),n=n.slice().reverse());++a<e;)r[a]=xe(t[a],t[a+1]),o[a]=i(n[a],n[a+1]);return function(n){var i=wi(t,n,1,e)-1;return o[i](r[i](n))}}function Me(t,n){return n.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function ke(){return function(){var t,n,i,e,r,o,a=ye,u=ye,s=pe,l=be;function c(){var t,n,i,s=Math.min(a.length,u.length);return l!==be&&(t=a[0],n=a[s-1],t>n&&(i=t,t=n,n=i),l=function(i){return Math.max(t,Math.min(n,i))}),e=s>2?Ce:we,r=o=null,f}function f(n){return null==n||isNaN(n=+n)?i:(r||(r=e(a.map(t),u,s)))(t(l(n)))}return f.invert=function(i){return l(n((o||(o=e(u,a.map(t),le)))(i)))},f.domain=function(t){return arguments.length?(a=Array.from(t,me),c()):a.slice()},f.range=function(t){return arguments.length?(u=Array.from(t),c()):u.slice()},f.rangeRound=function(t){return u=Array.from(t),s=ge,c()},f.clamp=function(t){return arguments.length?(l=!!t||be,c()):l!==be},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()}}()(be,be)}function Ae(t,n){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(n).domain(t)}return this}var Se,Ve=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Le(t){if(!(n=Ve.exec(t)))throw new Error("invalid format: "+t);var n;return new De({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 De(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 Ne(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 Te(t){return(t=Ne(Math.abs(t)))?t[1]:NaN}function Oe(t,n){var i=Ne(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")}Le.prototype=De.prototype,De.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 Ee={"%":(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)=>Oe(100*t,n),r:Oe,s:function(t,n){var i=Ne(t,n);if(!i)return t+"";var e=i[0],r=i[1],o=r-(Se=3*Math.max(-8,Math.min(8,Math.floor(r/3))))+1,a=e.length;return o===a?e:o>a?e+new Array(o-a+1).join("0"):o>0?e.slice(0,o)+"."+e.slice(o):"0."+new Array(1-o).join("0")+Ne(t,Math.max(0,n+o-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function Be(t){return t}var Fe,Pe,_e,He=Array.prototype.map,Ie=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function We(){var t=ke();return t.copy=function(){return Me(t,We())},Ae.apply(t,arguments),function(t){var n=t.domain;return t.ticks=function(t){var i=n();return li(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=fi(t,n,i);switch((e=Le(null==e?",f":e)).type){case"s":var a=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(Te(n)/3)))-Te(Math.abs(t)))}(o,a))||(e.precision=r),_e(e,a);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,Te(n)-Te(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=function(t){return Math.max(0,-Te(Math.abs(t)))}(o))||(e.precision=r-2*("%"===e.type))}return Pe(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(),a=0,u=o.length-1,s=o[a],l=o[u],c=10;for(l<s&&(r=s,s=l,l=r,r=a,a=u,u=r);c-- >0;){if((r=ci(s,l,i))===e)return o[a]=s,o[u]=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)}Fe=function(t){var n,i,e=void 0===t.grouping||void 0===t.thousands?Be:(n=He.call(t.grouping,Number),i=t.thousands+"",function(t,e){for(var r=t.length,o=[],a=0,u=n[0],s=0;r>0&&u>0&&(s+u+1>e&&(u=Math.max(1,e-s)),o.push(t.substring(r-=u,r+u)),!((s+=u+1)>e));)u=n[a=(a+1)%n.length];return o.reverse().join(i)}),r=void 0===t.currency?"":t.currency[0]+"",o=void 0===t.currency?"":t.currency[1]+"",a=void 0===t.decimal?".":t.decimal+"",u=void 0===t.numerals?Be:function(t){return function(n){return n.replace(/[0-9]/g,(function(n){return t[+n]}))}}(He.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=Le(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"):Ee[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:"",w=Ee[y],C=/[defgprs%]/.test(y);function M(t){var r,o,s,h=b,M=x;if("c"===y)M=w(t)+M,t="";else{var k=(t=+t)<0||1/t<0;if(t=isNaN(t)?c:w(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?Ie[8+Se/3]:"")+M+(k&&"("===f?")":""),C)for(r=-1,o=t.length;++r<o;)if(48>(s=t.charCodeAt(r))||s>57){M=(46===s?a+t.slice(r+1):t.slice(r))+M,t=t.slice(0,r);break}}p&&!d&&(t=e(t,1/0));var A=h.length+t.length+M.length,S=A<v?new Array(v-A+1).join(n):"";switch(p&&d&&(t=e(S+t,S.length?v-M.length:1/0),S=""),i){case"<":t=h+t+M+S;break;case"=":t=h+S+t+M;break;case"^":t=S.slice(0,A=S.length>>1)+h+t+M+S.slice(A);break;default:t=S+h+t+M}return u(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=Le(t)).type="f",t)),e=3*Math.max(-8,Math.min(8,Math.floor(Te(n)/3))),r=Math.pow(10,-e),o=Ie[8+e/3];return function(t){return i(r*t)+o}}}}({thousands:",",grouping:[3],currency:["$",""]}),Pe=Fe.format,_e=Fe.formatPrefix;const Re=1e3,ze=6e4,je=36e5,$e=864e5,Ye=6048e5,Xe=31536e6,Ge=new Date,qe=new Date;function Ue(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 a=[];if(i=r.ceil(i),o=null==o?1:Math.floor(o),!(i<e&&o>0))return a;let u;do{a.push(u=new Date(+i)),n(i,o),t(i)}while(u<i&&i<e);return a},r.filter=i=>Ue((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)=>(Ge.setTime(+n),qe.setTime(+e),t(Ge),t(qe),Math.floor(i(Ge,qe))),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 Ze=Ue((()=>{}),((t,n)=>{t.setTime(+t+n)}),((t,n)=>n-t));Ze.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?Ue((n=>{n.setTime(Math.floor(n/t)*t)}),((n,i)=>{n.setTime(+n+i*t)}),((n,i)=>(i-n)/t)):Ze:null),Ze.range;const Ke=Ue((t=>{t.setTime(t-t.getMilliseconds())}),((t,n)=>{t.setTime(+t+n*Re)}),((t,n)=>(n-t)/Re),(t=>t.getUTCSeconds())),Je=(Ke.range,Ue((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Re)}),((t,n)=>{t.setTime(+t+n*ze)}),((t,n)=>(n-t)/ze),(t=>t.getMinutes()))),Qe=(Je.range,Ue((t=>{t.setUTCSeconds(0,0)}),((t,n)=>{t.setTime(+t+n*ze)}),((t,n)=>(n-t)/ze),(t=>t.getUTCMinutes()))),tr=(Qe.range,Ue((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Re-t.getMinutes()*ze)}),((t,n)=>{t.setTime(+t+n*je)}),((t,n)=>(n-t)/je),(t=>t.getHours()))),nr=(tr.range,Ue((t=>{t.setUTCMinutes(0,0,0)}),((t,n)=>{t.setTime(+t+n*je)}),((t,n)=>(n-t)/je),(t=>t.getUTCHours()))),ir=(nr.range,Ue((t=>t.setHours(0,0,0,0)),((t,n)=>t.setDate(t.getDate()+n)),((t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*ze)/$e),(t=>t.getDate()-1))),er=(ir.range,Ue((t=>{t.setUTCHours(0,0,0,0)}),((t,n)=>{t.setUTCDate(t.getUTCDate()+n)}),((t,n)=>(n-t)/$e),(t=>t.getUTCDate()-1))),rr=(er.range,Ue((t=>{t.setUTCHours(0,0,0,0)}),((t,n)=>{t.setUTCDate(t.getUTCDate()+n)}),((t,n)=>(n-t)/$e),(t=>Math.floor(t/$e))));function or(t){return Ue((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())*ze)/Ye))}rr.range;const ar=or(0),ur=or(1),sr=or(2),lr=or(3),cr=or(4),fr=or(5),hr=or(6);function dr(t){return Ue((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)/Ye))}ar.range,ur.range,sr.range,lr.range,cr.range,fr.range,hr.range;const vr=dr(0),pr=dr(1),gr=dr(2),mr=dr(3),yr=dr(4),br=dr(5),xr=dr(6),wr=(vr.range,pr.range,gr.range,mr.range,yr.range,br.range,xr.range,Ue((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()))),Cr=(wr.range,Ue((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()))),Mr=(Cr.range,Ue((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())));Mr.every=t=>isFinite(t=Math.floor(t))&&t>0?Ue((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,Mr.range;const kr=Ue((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 Ar(t,n,i,e,r,o){const a=[[Ke,1,Re],[Ke,5,5e3],[Ke,15,15e3],[Ke,30,3e4],[o,1,ze],[o,5,3e5],[o,15,9e5],[o,30,18e5],[r,1,je],[r,3,108e5],[r,6,216e5],[r,12,432e5],[e,1,$e],[e,2,1728e5],[i,1,Ye],[n,1,2592e6],[n,3,7776e6],[t,1,Xe]];function u(n,i,e){const r=Math.abs(i-n)/e,o=mi((([,,t])=>t)).right(a,r);if(o===a.length)return t.every(fi(n/Xe,i/Xe,e));if(0===o)return Ze.every(Math.max(fi(n,i,e),1));const[u,s]=a[r/a[o-1][2]<a[o][2]/r?o-1:o];return u.every(s)}return[function(t,n,i){const e=n<t;e&&([t,n]=[n,t]);const r=i&&"function"==typeof i.range?i:u(t,n,i),o=r?r.range(t,+n+1):[];return e?o.reverse():o},u]}kr.every=t=>isFinite(t=Math.floor(t))&&t>0?Ue((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,kr.range;const[Sr,Vr]=Ar(kr,Cr,vr,rr,nr,Qe),[Lr,Dr]=Ar(Mr,wr,ar,ir,tr,Je);var Nr=new Date,Tr=new Date;function Or(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 a,u=[];if(i=r.ceil(i),o=null==o?1:Math.floor(o),!(i<e&&o>0))return u;do{u.push(a=new Date(+i)),n(i,o),t(i)}while(a<i&&i<e);return u},r.filter=function(i){return Or((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 Nr.setTime(+n),Tr.setTime(+e),t(Nr),t(Tr),Math.floor(i(Nr,Tr))},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 Er=864e5,Br=6048e5;function Fr(t){return Or((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)/Br}))}var Pr=Fr(0),_r=Fr(1),Hr=Fr(2),Ir=Fr(3),Wr=Fr(4),Rr=Fr(5),zr=Fr(6),jr=(Pr.range,_r.range,Hr.range,Ir.range,Wr.range,Rr.range,zr.range,Or((function(t){t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCDate(t.getUTCDate()+n)}),(function(t,n){return(n-t)/Er}),(function(t){return t.getUTCDate()-1}))),$r=jr;function Yr(t){return Or((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()))/Br}))}jr.range;var Xr=Yr(0),Gr=Yr(1),qr=Yr(2),Ur=Yr(3),Zr=Yr(4),Kr=Yr(5),Jr=Yr(6),Qr=(Xr.range,Gr.range,qr.range,Ur.range,Zr.range,Kr.range,Jr.range,Or((t=>t.setHours(0,0,0,0)),((t,n)=>t.setDate(t.getDate()+n)),((t,n)=>(n-t-6e4*(n.getTimezoneOffset()-t.getTimezoneOffset()))/Er),(t=>t.getDate()-1))),to=Qr,no=(Qr.range,Or((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()})));no.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Or((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 io=no,eo=(no.range,Or((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()})));eo.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Or((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 ro=eo;function oo(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 ao(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 uo(t,n,i){return{y:t,m:n,d:i,H:0,M:0,S:0,L:0}}function so(t){var n=t.dateTime,i=t.date,e=t.time,r=t.periods,o=t.days,a=t.shortDays,u=t.months,s=t.shortMonths,l=xo(r),c=wo(r),f=xo(o),h=wo(o),d=xo(a),v=wo(a),p=xo(u),g=wo(u),m=xo(s),y=wo(s),b={a:function(t){return a[t.getDay()]},A:function(t){return o[t.getDay()]},b:function(t){return s[t.getMonth()]},B:function(t){return u[t.getMonth()]},c:null,d:zo,e:zo,f:Go,g:ra,G:aa,H:jo,I:$o,j:Yo,L:Xo,m:qo,M:Uo,p:function(t){return r[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:Da,s:Na,S:Zo,u:Ko,U:Jo,V:ta,w:na,W:ia,x:null,X:null,y:ea,Y:oa,Z:ua,"%":La},x={a:function(t){return a[t.getUTCDay()]},A:function(t){return o[t.getUTCDay()]},b:function(t){return s[t.getUTCMonth()]},B:function(t){return u[t.getUTCMonth()]},c:null,d:sa,e:sa,f:da,g:ka,G:Sa,H:la,I:ca,j:fa,L:ha,m:va,M:pa,p:function(t){return r[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:Da,s:Na,S:ga,u:ma,U:ya,V:xa,w:wa,W:Ca,x:null,X:null,y:Ma,Y:Aa,Z:Va,"%":La},w={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:Oo,e:Oo,f:Ho,g:Lo,G:Vo,H:Bo,I:Bo,j:Eo,L:_o,m:To,M:Fo,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:No,Q:Wo,s:Ro,S:Po,u:Mo,U:ko,V:Ao,w:Co,W:So,x:function(t,n,e){return k(t,i,n,e)},X:function(t,n,i){return k(t,e,n,i)},y:Lo,Y:Vo,Z:Do,"%":Io};function C(t,n){return function(i){var e,r,o,a=[],u=-1,s=0,l=t.length;for(i instanceof Date||(i=new Date(+i));++u<l;)37===t.charCodeAt(u)&&(a.push(t.slice(s,u)),null!=(r=vo[e=t.charAt(++u)])?e=t.charAt(++u):r="e"===e?" ":"0",(o=n[e])&&(e=o(i,r)),a.push(e),s=u+1);return a.push(t.slice(s,u)),a.join("")}}function M(t,n){return function(i){var e,r,o=uo(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=ao(uo(o.y,0,1))).getUTCDay(),e=r>4||0===r?_r.ceil(e):_r(e),e=$r.offset(e,7*(o.V-1)),o.y=e.getUTCFullYear(),o.m=e.getUTCMonth(),o.d=e.getUTCDate()+(o.w+6)%7):(r=(e=oo(uo(o.y,0,1))).getDay(),e=r>4||0===r?Gr.ceil(e):Gr(e),e=to.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?ao(uo(o.y,0,1)).getUTCDay():oo(uo(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,ao(o)):oo(o)}}function k(t,n,i,e){for(var r,o,a=0,u=n.length,s=i.length;a<u;){if(e>=s)return-1;if(37===(r=n.charCodeAt(a++))){if(r=n.charAt(a++),!(o=w[r in vo?n.charAt(a++):r])||(e=o(t,i,e))<0)return-1}else if(r!=i.charCodeAt(e++))return-1}return e}return b.x=C(i,b),b.X=C(e,b),b.c=C(n,b),x.x=C(i,x),x.X=C(e,x),x.c=C(n,x),{format:function(t){var n=C(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=C(t+="",x);return n.toString=function(){return t},n},utcParse:function(t){var n=M(t+="",!0);return n.toString=function(){return t},n}}}eo.range;var lo,co,fo,ho,vo={"-":"",_:" ",0:"0"},po=/^\s*\d+/,go=/^%/,mo=/[\\^$*+?|[\]().{}]/g;function yo(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 bo(t){return t.replace(mo,"\\$&")}function xo(t){return new RegExp("^(?:"+t.map(bo).join("|")+")","i")}function wo(t){return new Map(t.map(((t,n)=>[t.toLowerCase(),n])))}function Co(t,n,i){var e=po.exec(n.slice(i,i+1));return e?(t.w=+e[0],i+e[0].length):-1}function Mo(t,n,i){var e=po.exec(n.slice(i,i+1));return e?(t.u=+e[0],i+e[0].length):-1}function ko(t,n,i){var e=po.exec(n.slice(i,i+2));return e?(t.U=+e[0],i+e[0].length):-1}function Ao(t,n,i){var e=po.exec(n.slice(i,i+2));return e?(t.V=+e[0],i+e[0].length):-1}function So(t,n,i){var e=po.exec(n.slice(i,i+2));return e?(t.W=+e[0],i+e[0].length):-1}function Vo(t,n,i){var e=po.exec(n.slice(i,i+4));return e?(t.y=+e[0],i+e[0].length):-1}function Lo(t,n,i){var e=po.exec(n.slice(i,i+2));return e?(t.y=+e[0]+(+e[0]>68?1900:2e3),i+e[0].length):-1}function Do(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 No(t,n,i){var e=po.exec(n.slice(i,i+1));return e?(t.q=3*e[0]-3,i+e[0].length):-1}function To(t,n,i){var e=po.exec(n.slice(i,i+2));return e?(t.m=e[0]-1,i+e[0].length):-1}function Oo(t,n,i){var e=po.exec(n.slice(i,i+2));return e?(t.d=+e[0],i+e[0].length):-1}function Eo(t,n,i){var e=po.exec(n.slice(i,i+3));return e?(t.m=0,t.d=+e[0],i+e[0].length):-1}function Bo(t,n,i){var e=po.exec(n.slice(i,i+2));return e?(t.H=+e[0],i+e[0].length):-1}function Fo(t,n,i){var e=po.exec(n.slice(i,i+2));return e?(t.M=+e[0],i+e[0].length):-1}function Po(t,n,i){var e=po.exec(n.slice(i,i+2));return e?(t.S=+e[0],i+e[0].length):-1}function _o(t,n,i){var e=po.exec(n.slice(i,i+3));return e?(t.L=+e[0],i+e[0].length):-1}function Ho(t,n,i){var e=po.exec(n.slice(i,i+6));return e?(t.L=Math.floor(e[0]/1e3),i+e[0].length):-1}function Io(t,n,i){var e=go.exec(n.slice(i,i+1));return e?i+e[0].length:-1}function Wo(t,n,i){var e=po.exec(n.slice(i));return e?(t.Q=+e[0],i+e[0].length):-1}function Ro(t,n,i){var e=po.exec(n.slice(i));return e?(t.s=+e[0],i+e[0].length):-1}function zo(t,n){return yo(t.getDate(),n,2)}function jo(t,n){return yo(t.getHours(),n,2)}function $o(t,n){return yo(t.getHours()%12||12,n,2)}function Yo(t,n){return yo(1+to.count(io(t),t),n,3)}function Xo(t,n){return yo(t.getMilliseconds(),n,3)}function Go(t,n){return Xo(t,n)+"000"}function qo(t,n){return yo(t.getMonth()+1,n,2)}function Uo(t,n){return yo(t.getMinutes(),n,2)}function Zo(t,n){return yo(t.getSeconds(),n,2)}function Ko(t){var n=t.getDay();return 0===n?7:n}function Jo(t,n){return yo(Xr.count(io(t)-1,t),n,2)}function Qo(t){var n=t.getDay();return n>=4||0===n?Zr(t):Zr.ceil(t)}function ta(t,n){return t=Qo(t),yo(Zr.count(io(t),t)+(4===io(t).getDay()),n,2)}function na(t){return t.getDay()}function ia(t,n){return yo(Gr.count(io(t)-1,t),n,2)}function ea(t,n){return yo(t.getFullYear()%100,n,2)}function ra(t,n){return yo((t=Qo(t)).getFullYear()%100,n,2)}function oa(t,n){return yo(t.getFullYear()%1e4,n,4)}function aa(t,n){var i=t.getDay();return yo((t=i>=4||0===i?Zr(t):Zr.ceil(t)).getFullYear()%1e4,n,4)}function ua(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+yo(n/60|0,"0",2)+yo(n%60,"0",2)}function sa(t,n){return yo(t.getUTCDate(),n,2)}function la(t,n){return yo(t.getUTCHours(),n,2)}function ca(t,n){return yo(t.getUTCHours()%12||12,n,2)}function fa(t,n){return yo(1+$r.count(ro(t),t),n,3)}function ha(t,n){return yo(t.getUTCMilliseconds(),n,3)}function da(t,n){return ha(t,n)+"000"}function va(t,n){return yo(t.getUTCMonth()+1,n,2)}function pa(t,n){return yo(t.getUTCMinutes(),n,2)}function ga(t,n){return yo(t.getUTCSeconds(),n,2)}function ma(t){var n=t.getUTCDay();return 0===n?7:n}function ya(t,n){return yo(Pr.count(ro(t)-1,t),n,2)}function ba(t){var n=t.getUTCDay();return n>=4||0===n?Wr(t):Wr.ceil(t)}function xa(t,n){return t=ba(t),yo(Wr.count(ro(t),t)+(4===ro(t).getUTCDay()),n,2)}function wa(t){return t.getUTCDay()}function Ca(t,n){return yo(_r.count(ro(t)-1,t),n,2)}function Ma(t,n){return yo(t.getUTCFullYear()%100,n,2)}function ka(t,n){return yo((t=ba(t)).getUTCFullYear()%100,n,2)}function Aa(t,n){return yo(t.getUTCFullYear()%1e4,n,4)}function Sa(t,n){var i=t.getUTCDay();return yo((t=i>=4||0===i?Wr(t):Wr.ceil(t)).getUTCFullYear()%1e4,n,4)}function Va(){return"+0000"}function La(){return"%"}function Da(t){return+t}function Na(t){return Math.floor(+t/1e3)}function Ta(t){return new Date(t)}function Oa(t){return t instanceof Date?+t:+new Date(+t)}function Ea(t,n,i,e,r,o,a,u,s,l){var c=ke(),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 w(t){return(s(t)<t?d:u(t)<t?v:a(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,Oa)):h().map(Ta)},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?w: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],a=t[r];return a<o&&(i=e,e=r,r=i,i=o,o=a,a=i),t[e]=n.floor(o),t[r]=n.ceil(a),t}(i,t)):c},c.copy=function(){return Me(c,Ea(t,n,i,e,r,o,a,u,s,l))},c}function Ba(){return Ae.apply(Ea(Lr,Dr,Mr,wr,ar,ir,tr,Je,Ke,co).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Fa(){return Ae.apply(Ea(Sr,Vr,kr,Cr,vr,er,nr,Qe,Ke,ho).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Pa(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}lo=so({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"]}),co=lo.format,fo=lo.parse,ho=lo.utcFormat,lo.utcParse;class _a extends Map{constructor(t,n=Ia){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(Ha(this,t))}has(t){return super.has(Ha(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 Ha({_intern:t,_key:n},i){const e=n(i);return t.has(e)?t.get(e):i}function Ia(t){return null!==t&&"object"==typeof t?t.valueOf():t}Set;const Wa=Symbol("implicit");function Ra(){var t=new _a,n=[],i=[],e=Wa;function r(r){let o=t.get(r);if(void 0===o){if(e!==Wa)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 _a;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 Ra(n,i).unknown(e)},Ae.apply(r,arguments),r}function za(){var t,n,i=Ra().unknown(void 0),e=i.domain,r=i.range,o=0,a=1,u=!1,s=0,l=0,c=.5;function f(){var i=e().length,f=a<o,h=f?a:o,d=f?o:a;t=(d-h)/Math.max(1,i-s+2*l),u&&(t=Math.floor(t)),h+=(d-h-t*(i-s))*c,n=t*(1-s),u&&(h=Math.round(h),n=Math.round(n));var v=Pa(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,a]=t,o=+o,a=+a,f()):[o,a]},i.rangeRound=function(t){return[o,a]=t,o=+o,a=+a,u=!0,f()},i.bandwidth=function(){return n},i.step=function(){return t},i.round=function(t){return arguments.length?(u=!!t,f()):u},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 za(e(),[o,a]).round(u).paddingInner(s).paddingOuter(l).align(c)},Ae.apply(f(),arguments)}function ja(){}function $a(t){return null==t?ja:function(){return this.querySelector(t)}}function Ya(t){return null==t?[]:Array.isArray(t)?t:Array.from(t)}function Xa(){return[]}function Ga(t){return function(n){return n.matches(t)}}var qa=Array.prototype.find;function Ua(){return this.firstElementChild}var Za=Array.prototype.filter;function Ka(){return Array.from(this.children)}function Ja(t){return new Array(t.length)}function Qa(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}function tu(t,n,i,e,r,o){for(var a,u=0,s=n.length,l=o.length;u<l;++u)(a=n[u])?(a.__data__=o[u],e[u]=a):i[u]=new Qa(t,o[u]);for(;u<s;++u)(a=n[u])&&(r[u]=a)}function nu(t,n,i,e,r,o,a){var u,s,l,c=new Map,f=n.length,h=o.length,d=new Array(f);for(u=0;u<f;++u)(s=n[u])&&(d[u]=l=a.call(s,s.__data__,u,n)+"",c.has(l)?r[u]=s:c.set(l,s));for(u=0;u<h;++u)l=a.call(t,o[u],u,o)+"",(s=c.get(l))?(e[u]=s,s.__data__=o[u],c.delete(l)):i[u]=new Qa(t,o[u]);for(u=0;u<f;++u)(s=n[u])&&c.get(d[u])===s&&(r[u]=s)}function iu(t){return t.__data__}function eu(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function ru(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}Qa.prototype={constructor:Qa,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 ou="http://www.w3.org/1999/xhtml",au={svg:"http://www.w3.org/2000/svg",xhtml:ou,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function uu(t){var n=t+="",i=n.indexOf(":");return i>=0&&"xmlns"!==(n=t.slice(0,i))&&(t=t.slice(i+1)),au.hasOwnProperty(n)?{space:au[n],local:t}:t}function su(t){return function(){this.removeAttribute(t)}}function lu(t){return function(){this.removeAttributeNS(t.space,t.local)}}function cu(t,n){return function(){this.setAttribute(t,n)}}function fu(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function hu(t,n){return function(){var i=n.apply(this,arguments);null==i?this.removeAttribute(t):this.setAttribute(t,i)}}function du(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 vu(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function pu(t){return function(){this.style.removeProperty(t)}}function gu(t,n,i){return function(){this.style.setProperty(t,n,i)}}function mu(t,n,i){return function(){var e=n.apply(this,arguments);null==e?this.style.removeProperty(t):this.style.setProperty(t,e,i)}}function yu(t){return function(){delete this[t]}}function bu(t,n){return function(){this[t]=n}}function xu(t,n){return function(){var i=n.apply(this,arguments);null==i?delete this[t]:this[t]=i}}function wu(t){return t.trim().split(/^|\s+/)}function Cu(t){return t.classList||new Mu(t)}function Mu(t){this._node=t,this._names=wu(t.getAttribute("class")||"")}function ku(t,n){for(var i=Cu(t),e=-1,r=n.length;++e<r;)i.add(n[e])}function Au(t,n){for(var i=Cu(t),e=-1,r=n.length;++e<r;)i.remove(n[e])}function Su(t){return function(){ku(this,t)}}function Vu(t){return function(){Au(this,t)}}function Lu(t,n){return function(){(n.apply(this,arguments)?ku:Au)(this,t)}}function Du(){this.textContent=""}function Nu(t){return function(){this.textContent=t}}function Tu(t){return function(){var n=t.apply(this,arguments);this.textContent=null==n?"":n}}function Ou(){this.innerHTML=""}function Eu(t){return function(){this.innerHTML=t}}function Bu(t){return function(){var n=t.apply(this,arguments);this.innerHTML=null==n?"":n}}function Fu(){this.nextSibling&&this.parentNode.appendChild(this)}function Pu(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function _u(t){return function(){var n=this.ownerDocument,i=this.namespaceURI;return i===ou&&n.documentElement.namespaceURI===ou?n.createElement(t):n.createElementNS(i,t)}}function Hu(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Iu(t){var n=uu(t);return(n.local?Hu:_u)(n)}function Wu(){return null}function Ru(){var t=this.parentNode;t&&t.removeChild(this)}function zu(){var t=this.cloneNode(!1),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function ju(){var t=this.cloneNode(!0),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function $u(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 Yu(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 a=0,u=r.length;a<u;++a)if((e=r[a]).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 Xu(t,n,i){var e=vu(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 Gu(t,n){return function(){return Xu(this,t,n)}}function qu(t,n){return function(){return Xu(this,t,n.apply(this,arguments))}}Mu.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 Uu,Zu,Ku,Ju,Qu=[null];function ts(t,n){this._groups=t,this._parents=n}function ns(t){return"string"==typeof t?new ts([[document.querySelector(t)]],[document.documentElement]):new ts([[t]],Qu)}function is(t){return"string"==typeof t?new ts([document.querySelectorAll(t)],[document.documentElement]):new ts([Ya(t)],Qu)}function es(t){this._context=t}function rs(t){return new es(t)}function os(t){this._context=t}function as(t){var n,i,e=t.length-1,r=new Array(e),o=new Array(e),a=new Array(e);for(r[0]=0,o[0]=2,a[0]=t[0]+2*t[1],n=1;n<e-1;++n)r[n]=1,o[n]=4,a[n]=4*t[n]+2*t[n+1];for(r[e-1]=2,o[e-1]=7,a[e-1]=8*t[e-1]+t[e],n=1;n<e;++n)i=r[n]/o[n-1],o[n]-=i,a[n]-=i*a[n-1];for(r[e-1]=a[e-1]/o[e-1],n=e-2;n>=0;--n)r[n]=(a[n]-r[n+1])/o[n];for(o[e-1]=(t[e]+r[e-1])/2,n=0;n<e-1;++n)o[n]=2*t[n+1]-r[n+1];return[r,o]}function us(t){return new os(t)}function ss(t,n){this._context=t,this._t=n}function ls(t){return new ss(t,.5)}function cs(t){return new ss(t,0)}function fs(t){return new ss(t,1)}function hs(t,n,i,e){var r,o=t.domainNRangeValues,a=t.showRoundOffXTickValues,u=void 0!==a&&a,s=t.xAxistickSize,l=void 0===s?6:s,c=t.tickPadding,f=void 0===c?10:c,h=t.xAxisCount,d=t.xAxisElement,v=t.hideTickOverlap,p=We().domain([o.dStartValue,o.dEndValue]).range([o.rStartValue,o.rEndValue]);u&&p.nice();var g=null!=h?h:6,m=function(t,i){if(n.tickFormat)return Pe(n.tickFormat)(t);var r="number"==typeof t?t:t.valueOf();return _s(r,e)};if(v&&void 0===h){var y=ws(p.ticks().map(m),'[class^="xAxis-"] text')+20,b=p.range(),x=b[0],w=b[1];g=Math.min(Math.max(1,Math.floor(Math.abs(w-x)/y)),10)}var C=ei(p).tickSize(l).tickPadding(f).ticks(g).tickFormat(m);i===Zu.HorizontalBarChartWithAxis&&C.tickSizeInner(-(t.containerHeight-t.margins.top)),n.tickValues&&C.tickValues(n.tickValues),d&&ns(d).call(C).selectAll("text").attr("aria-hidden","true");var M=(null!==(r=n.tickValues)&&void 0!==r?r:p.ticks(g)).map(C.tickFormat());return{xScale:p,tickValues:M}}function ds(t,n,i){var e=n?i?n.utcFormat:n.format:i?ho:co,r=e(".%L"),o=e(":%S"),a=e("%I:%M"),u=e("%I %p"),s=e("%a %d"),l=e("%b %d"),c=e("%B"),f=e("%Y"),h=i?Qe:Je,d=i?nr:tr,v=i?er:ir,p=i?Cr:wr,g=i?vr:ar,m=i?kr:Mr;return(Ke(t)<t?r:h(t)<t?o:d(t)<t?a:v(t)<t?u:p(t)<t?g(t)<t?s:l:m(t)<t?c:f)(t)}function vs(t,n,i,e,r){if(r)return function(t,n,i){var e,r=t<0&&t===n?0:n,o=hi(t>=0&&t===n?0:t,r,i),a=li(o[0],o[o.length-1],i);return a[a.length-1]>r&&(e=function(t){var n=Math.round(t);return Math.abs(t-n)<1e-6?n:t}(r),Math.log10(e)%1==0)&&a.pop(),a}(n,t,i);var o=e||(t-n)/i>=1?Math.ceil((t-n)/i):(t-n)/i,a=[n<0&&t>=0?0:n];if(a[0]===n&&a.push(n+o),n<0&&t>=0){for(;a[a.length-1]>n;)a.push(a[a.length-1]-o);a.reverse()}for(;a[a.length-1]<t;)a.push(a[a.length-1]+o);return a}function ps(t,n){var i=t.yMinMaxValues,e=void 0===i?{startValue:0,endValue:0}:i,r=t.yAxisElement,o=void 0===r?null:r,a=t.yMaxValue,u=void 0===a?0:a,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>u?b:u,w=e.startValue<l?0:l,C=We().domain([w,x]).range([c-f.bottom,f.top]),M=(n?ii(C):ri(C)).tickPadding(d).ticks(y);return g?M.tickFormat(g):M.tickFormat(Pe(".2~s")),o&&ns(o).call(M).selectAll("text").attr("aria-hidden","true"),C}function gs(t,n,i,e,r,o,a){void 0===r&&(r=!1),void 0===o&&(o=!1),void 0===a&&(a=!1);var u=t.yMinMaxValues,s=void 0===u?{startValue:0,endValue:0}:u,l=t.yAxisElement,c=void 0===l?null:l,f=t.yMaxValue,h=void 0===f?0:f,d=t.yMinValue,v=void 0===d?0:d,p=t.containerHeight,g=t.containerWidth,m=t.margins,y=t.tickPadding,b=void 0===y?12:y,x=t.maxOfYVal,w=void 0===x?0:x,C=t.yAxisTickFormat,M=t.yAxisTickCount,k=void 0===M?4:M,A=t.eventAnnotationProps,S=t.eventLabelHeight,V=w||s.endValue,L=V>h?V:h,D=o?Math.min(s.startValue,v||0):s.startValue<v?0:v,N=vs(L,D,k,e,a),T=We().domain([o?N[0]:D,N[N.length-1]]).range([p-m.bottom,m.top+(A?S:0)]),O=(!n&&r||n&&!r?ii(T):ri(T)).tickPadding(b).tickValues(N).tickSizeInner(-(g-m.left-m.right));return C?O.tickFormat(C):O.tickFormat(Pe(".2~s")),c&&ns(c).call(O).selectAll("text").attr("aria-hidden","true"),i.yAxisDomainValues=N,T}ts.prototype=function(){return new ts([[document.documentElement]],Qu)}.prototype={constructor:ts,select:function(t){"function"!=typeof t&&(t=$a(t));for(var n=this._groups,i=n.length,e=new Array(i),r=0;r<i;++r)for(var o,a,u=n[r],s=u.length,l=e[r]=new Array(s),c=0;c<s;++c)(o=u[c])&&(a=t.call(o,o.__data__,c,u))&&("__data__"in o&&(a.__data__=o.__data__),l[c]=a);return new ts(e,this._parents)},selectAll:function(t){t="function"==typeof t?function(t){return function(){return Ya(t.apply(this,arguments))}}(t):function(t){return null==t?Xa:function(){return this.querySelectorAll(t)}}(t);for(var n=this._groups,i=n.length,e=[],r=[],o=0;o<i;++o)for(var a,u=n[o],s=u.length,l=0;l<s;++l)(a=u[l])&&(e.push(t.call(a,a.__data__,l,u)),r.push(a));return new ts(e,r)},selectChild:function(t){return this.select(null==t?Ua:function(t){return function(){return qa.call(this.children,t)}}("function"==typeof t?t:Ga(t)))},selectChildren:function(t){return this.selectAll(null==t?Ka:function(t){return function(){return Za.call(this.children,t)}}("function"==typeof t?t:Ga(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,a=n[r],u=a.length,s=e[r]=[],l=0;l<u;++l)(o=a[l])&&t.call(o,o.__data__,l,a)&&s.push(o);return new ts(e,this._parents)},data:function(t,n){if(!arguments.length)return Array.from(this,iu);var i,e=n?nu:tu,r=this._parents,o=this._groups;"function"!=typeof t&&(i=t,t=function(){return i});for(var a=o.length,u=new Array(a),s=new Array(a),l=new Array(a),c=0;c<a;++c){var f=r[c],h=o[c],d=h.length,v=eu(t.call(f,f&&f.__data__,c,r)),p=v.length,g=s[c]=new Array(p),m=u[c]=new Array(p);e(f,h,g,m,l[c]=new Array(d),v,n);for(var y,b,x=0,w=0;x<p;++x)if(y=g[x]){for(x>=w&&(w=x+1);!(b=m[w])&&++w<p;);y._next=b||null}}return(u=new ts(u,r))._enter=s,u._exit=l,u},enter:function(){return new ts(this._enter||this._groups.map(Ja),this._parents)},exit:function(){return new ts(this._exit||this._groups.map(Ja),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,a=Math.min(r,o),u=new Array(r),s=0;s<a;++s)for(var l,c=i[s],f=e[s],h=c.length,d=u[s]=new Array(h),v=0;v<h;++v)(l=c[v]||f[v])&&(d[v]=l);for(;s<r;++s)u[s]=i[s];return new ts(u,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,a=r[o];--o>=0;)(e=r[o])&&(a&&4^e.compareDocumentPosition(a)&&a.parentNode.insertBefore(e,a),a=e);return this},sort:function(t){function n(n,i){return n&&i?t(n.__data__,i.__data__):!n-!i}t||(t=ru);for(var i=this._groups,e=i.length,r=new Array(e),o=0;o<e;++o){for(var a,u=i[o],s=u.length,l=r[o]=new Array(s),c=0;c<s;++c)(a=u[c])&&(l[c]=a);l.sort(n)}return new ts(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 a=e[r];if(a)return a}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],a=0,u=o.length;a<u;++a)(r=o[a])&&t.call(r,r.__data__,a,o);return this},attr:function(t,n){var i=uu(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?lu:su:"function"==typeof n?i.local?du:hu:i.local?fu:cu)(i,n))},style:function(t,n,i){return arguments.length>1?this.each((null==n?pu:"function"==typeof n?mu:gu)(t,n,null==i?"":i)):function(t,n){return t.style.getPropertyValue(n)||vu(t).getComputedStyle(t,null).getPropertyValue(n)}(this.node(),t)},property:function(t,n){return arguments.length>1?this.each((null==n?yu:"function"==typeof n?xu:bu)(t,n)):this.node()[t]},classed:function(t,n){var i=wu(t+"");if(arguments.length<2){for(var e=Cu(this.node()),r=-1,o=i.length;++r<o;)if(!e.contains(i[r]))return!1;return!0}return this.each(("function"==typeof n?Lu:n?Su:Vu)(i,n))},text:function(t){return arguments.length?this.each(null==t?Du:("function"==typeof t?Tu:Nu)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?Ou:("function"==typeof t?Bu:Eu)(t)):this.node().innerHTML},raise:function(){return this.each(Fu)},lower:function(){return this.each(Pu)},append:function(t){var n="function"==typeof t?t:Iu(t);return this.select((function(){return this.appendChild(n.apply(this,arguments))}))},insert:function(t,n){var i="function"==typeof t?t:Iu(t),e=null==n?Wu:"function"==typeof n?n:$a(n);return this.select((function(){return this.insertBefore(i.apply(this,arguments),e.apply(this,arguments)||null)}))},remove:function(){return this.each(Ru)},clone:function(t){return this.select(t?ju:zu)},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+""),a=o.length;if(!(arguments.length<2)){for(u=n?Yu:$u,e=0;e<a;++e)this.each(u(o[e],n,i));return this}var u=this.node().__on;if(u)for(var s,l=0,c=u.length;l<c;++l)for(e=0,s=u[l];e<a;++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?qu:Gu)(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,a=r.length;o<a;++o)(e=r[o])&&(yield e)}},es.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)}}},os.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,n=this._y,i=t.length;if(i)if(this._line?this._context.lineTo(t[0],n[0]):this._context.moveTo(t[0],n[0]),2===i)this._context.lineTo(t[1],n[1]);else for(var e=as(t),r=as(n),o=0,a=1;a<i;++o,++a)this._context.bezierCurveTo(e[0][o],r[0][o],e[1][o],r[1][o],t[a],n[a]);(this._line||0!==this._line&&1===i)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,n){this._x.push(+t),this._y.push(+n)}},ss.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,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:if(this._t<=0)this._context.lineTo(this._x,n),this._context.lineTo(t,n);else{var i=this._x*(1-this._t)+t*this._t;this._context.lineTo(i,this._y),this._context.lineTo(i,n)}}this._x=t,this._y=n}},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"}(Zu||(Zu={})),function(t){t[t.NumericAxis=0]="NumericAxis",t[t.DateAxis=1]="DateAxis",t[t.StringAxis=2]="StringAxis"}(Ku||(Ku={})),function(t){t[t.NumericAxis=0]="NumericAxis",t[t.DateAxis=1]="DateAxis",t[t.StringAxis=2]="StringAxis"}(Ju||(Ju={}));var ms=function(t,n,i,e){var r=t.containerHeight,o=t.tickPadding,a=void 0===o?12:o,u=t.margins,s=t.yAxisTickFormat,l=t.yAxisElement,c=za().domain(n).range([r-u.bottom-e/2,u.top+e/2]),f=(i?ii(c):ri(c)).tickPadding(a).ticks(n);return s&&f.tickFormat(s),l&&ns(l).call(f).selectAll("text"),c},ys=function(t,n,i){var e=t.containerHeight,r=t.tickPadding,o=void 0===r?12:r,a=t.margins,u=t.yAxisTickFormat,s=t.yAxisElement,l=t.yAxisPadding,c=void 0===l?0:l,f=za().domain(n).range([e-a.bottom,a.top]).padding(c),h=(i?ii(f):ri(f)).tickPadding(o).tickValues(n).tickSize(0);return u&&h.tickFormat(u),s&&ns(s).call(h).selectAll("text"),f};function bs(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 xs=function(t,n,i){var e=ns("#".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},ws=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),a=o.getPropertyValue("font-weight"),u=o.getPropertyValue("font-size"),s=o.getPropertyValue("font-family");e.font="".concat(a," ").concat(u," ").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 Cs(t){var n=t.tooltipCls,i=t.xAxis,e=t.id;if(null===i)return null;for(var r=ns("body").append("div").attr("id",e).attr("class",n).style("opacity",0),o=i.selectAll("#BaseSpan")._groups[0],a=o&&Object.keys(o).length,u=[],s=0;s<a;s++){var l=o[s].dataset&&Object.values(o[s].dataset)[0];u.push(l)}var c=i.selectAll(".tick")._groups[0],f=c&&Object.keys(c).length,h=function(t){ns(c[t]).on("mouseover",(function(n,i){r.style("opacity",.9),r.text(u[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 Ms(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 ks(t,n,i,e){var r=di(t,(function(t){return di(t.data,(function(t){return t.x}))})),o=vi(t,(function(t){return vi(t.data,(function(t){return t.x}))})),a=n.left,u=i-n.right;return e?{dStartValue:o,dEndValue:r,rStartValue:a,rEndValue:u}:{dStartValue:r,dEndValue:o,rStartValue:a,rEndValue:u}}function As(t){var n={};return t.forEach((function(t){var i=t.y;n[i]||(n[i]=[]),n[i].push(t)})),Object.values(n)}function Ss(t,n){var i=0,e=0;return t.forEach((function(t){var r=t.reduce((function(t,n){return t+(n.x>0?n.x:0)}),n),o=t.reduce((function(t,n){return t+(n.x<0?n.x:0)}),n);i=Math.max(i,r),e=Math.min(e,o)})),{longestPositiveBar:i,longestNegativeBar:e}}function Vs(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 Ls(t,n,i,e,r,a,u){var s,l;void 0===r&&(r=[]),a===Zu.AreaChart||a===Zu.LineChart?(s=di(t,(function(t){return di(t.data,(function(t){return t.x}))})),l=vi(t,(function(t){return vi(t.data,(function(t){return t.x}))})),s=di((0,o.fX)((0,o.fX)([],r,!0),[s],!1)),l=vi((0,o.fX)((0,o.fX)([],r,!0),[l],!1))):(s=di(t,(function(t){return t.x})),l=vi(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 Ds(t,n,i){var e=[];return t.forEach((function(t){!i==!t.useSecondaryYScale&&t.data.forEach((function(t){e.push(t.y)}))})),{startValue:di(e),endValue:vi(e)}}function Ns(t,n,i){var e=[];return t.forEach((function(t){i||e.push(t.y),void 0!==t.lineData&&!i==!t.lineData.useSecondaryYScale&&e.push(t.lineData.y)})),{startValue:di(e),endValue:vi(e)}}function Ts(t,n){if(void 0!==n&&n===Ju.NumericAxis){var i=vi(t,(function(t){return t.y}));return{startValue:di(t,(function(t){return t.y})),endValue:i}}return{startValue:0,endValue:0}}var Os,Es,Bs=function(t,n){if(n)switch(typeof t){case"string":return Ku.StringAxis;case"number":return Ku.NumericAxis;default:return Ku.DateAxis}else switch(typeof t){case"string":return Ju.StringAxis;case"number":return Ju.NumericAxis;default:return Ju.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"}(Os||(Os={})),function(t){t[t.dottedLine=0]="dottedLine"}(Es||(Es={}));var Fs=((Uu={})[Os.circle]={widthRatio:1},Uu[Os.square]={widthRatio:1},Uu[Os.triangle]={widthRatio:1},Uu[Os.diamond]={widthRatio:1},Uu[Os.pyramid]={widthRatio:1},Uu[Os.hexagon]={widthRatio:2},Uu[Os.pentagon]={widthRatio:1.168},Uu[Os.octagon]={widthRatio:2.414},Uu),Ps=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}},_s=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 Hs(t){return _e(t<1e3?".2~":".1",t)(t)}var Is=function(t,n,i,e){var r;return void 0===i&&(i=16),r="auto"===t||"histogram"===e?i:"number"==typeof t?t:Math.min(i,16),"number"==typeof n&&(r=Math.min(r,n)),Math.max(r,1)},Ws=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))},Rs=function(t,n){return"number"==typeof t||"number"==typeof n},zs=function(t,n){return(n?ho:co)("%-e %b %Y, %H:%M")(t)+(n?" GMT":"")};function js(t){return void 0===t&&(t={}),t.dangerouslySetInnerHTML,(0,o.Tt)(t,["dangerouslySetInnerHTML"])}function $s(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 Ys=/var\((--[a-zA-Z0-9\-]+)\)/g;function Xs(t,n){var i=getComputedStyle(t);return n.replace(Ys,(function(t,n){return i.getPropertyValue(n)}))}function Gs(t,n,i){var e=getComputedStyle(n);Array.isArray(t)?t.forEach((function(t){ns(i).style(t,e.getPropertyValue(t))})):Object.entries(t).forEach((function(t){var n=t[0],r=t[1];ns(i).style(r,e.getPropertyValue(n))}))}var qs={position:"absolute",visibility:"hidden",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},Us=g("measurement_span_");function Zs(t,n){if(void 0===n&&(n=rs),"function"==typeof t)return t;switch(t){case"linear":return rs;case"natural":return us;case"step":return ls;case"stepAfter":return fs;case"stepBefore":return cs;default:return n}}var Ks,Js=i(357),Qs={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"},tl={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"]]},nl={default:tl,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"]]}},il=Object.values(tl),el=Object.values(Qs),rl=function(t,n){if(0===t.length)return["",""];var i=Number(n);return i<t.length?t[i]:t[0]},ol=function(t,n,i){void 0===n&&(n=0),void 0===i&&(i=!1);var e=il[(t+n)%il.length];return rl(e,i)},al=function(t,n){if(void 0===n&&(n=!1),el.indexOf(t)>=0){var i=t.split("."),e=i[0],r=i[1],o=nl[e][r];return rl(o,n)}return[t,t]};function ul(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 sl(t){!function(t,n){for(var i in n)n.hasOwnProperty(i)&&(t[i]=ul(t,t[i],n[i]))}(t,{componentDidMount:ll,componentDidUpdate:cl,componentWillUnmount:fl})}function ll(){hl(this.props.componentRef,this)}function cl(t){t.componentRef!==this.props.componentRef&&(hl(t.componentRef,null),hl(this.props.componentRef,this))}function fl(){hl(this.props.componentRef,null)}function hl(t,n){t&&("object"==typeof t?t.current=n:"function"==typeof t&&t(n))}function dl(t,n,i){var e,r=C(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"}(Ks||(Ks={}));var vl,pl=a.createContext(void 0),gl="data-is-focusable",ml="data-focuszone-id",yl="tabindex",bl="data-no-vertical-wrap",xl="data-no-horizontal-wrap",wl=999999999,Cl=-999999999;function Ml(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 kl,Al={},Sl=new Set,Vl=["text","number","password","email","tel","url","search","textarea"],Ll=!1,Dl=function(t){function n(i){var e,r,o,u,l,c=t.call(this,i)||this;c._root=a.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,a=i.onFocusNotification,u=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(B(h,void 0,c._inShadowRoot)&&c._isImmediateDescendantOfZone(h)){n=h;break}h=w(h,Ll)}if(s&&t.target===c._root.current){var d=l&&"function"==typeof l&&c._root.current&&l(c._root.current);d&&B(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(),u?u(t):a&&a()}},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=w(n,Ll);for(;i.length&&((n=i.pop())&&B(n,void 0,c._inShadowRoot)&&c._setActiveElement(n,!0),!F(n)););}},c._onKeyDown=function(t,n){if(!c._portalContainsElement(t.target)){var i=c.props,e=i.direction,r=i.disabled,o=i.isInnerZoneKeystroke,a=i.pagingSupportDisabled,u=i.shouldEnterInnerZone;if(!(r||(c.props.onKeyDown&&c.props.onKeyDown(t),t.isDefaultPrevented()||c._getDocument().activeElement===c._root.current&&c._isInnerZone))){if((u&&u(t)||o&&o(t))&&c._isImmediateDescendantOfZone(t.target)){var l=c._getFirstInnerZone();if(l){if(!l.focus(!0))return}else{if(!P(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!==Ks.vertical&&(c._preventDefaultWhenHandled(t),c._moveFocusLeft(n)))break;return;case 39:if(e!==Ks.vertical&&(c._preventDefaultWhenHandled(t),c._moveFocusRight(n)))break;return;case 38:if(e!==Ks.horizontal&&(c._preventDefaultWhenHandled(t),c._moveFocusUp()))break;return;case 40:if(e!==Ks.horizontal&&(c._preventDefaultWhenHandled(t),c._moveFocusDown()))break;return;case 34:if(!a&&c._moveFocusPaging(!0))break;return;case 33:if(!a&&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!==Ks.vertical&&c._shouldWrapFocus(c._activeElement,xl)?((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),a=Math.floor(i.bottom),u=Math.floor(n.top);return t&&r>o||!t&&a<u?e>=i.left&&e<=i.left+i.width?0:Math.abs(i.left+i.width/2-e):c._shouldWrapFocus(c._activeElement,bl)?wl:Cl},sl(c),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!==(u=i.shouldRaiseClicksOnSpace)&&void 0!==u?u:f,c}return(0,o.C6)(n,t),n.getOuterZones=function(){return Sl.size},n._onKeyDownCapture=function(t){9===t.which&&Sl.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),Al[this._id]=this,i){for(var e=w(i,Ll);e&&e!==this._getDocument().body&&1===e.nodeType;){if(F(e)){this._isInnerZone=!0;break}e=w(e,Ll)}this._isInnerZone||(Sl.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,Ll)||this._defaultFocusElement&&!M(this._root.current,this._defaultFocusElement,Ll))&&(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],a=i.children[Math.min(o,i.children.length-1)];if(!a)break;i=a}return B(i)&&O(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 Al[this._id],this._isInnerZone||(Sl.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,u=n.ariaDescribedBy,s=n.ariaLabelledBy,l=n.className,c=q(this.props,$),f=i||e||"div";this._evaluateFocusBeforeRender();var h=(0,Yt.O4)();return a.createElement(f,(0,o.Cl)({"aria-labelledby":s,"aria-describedby":u},c,r,{className:U((vl||(vl=(0,nt.Z)({selectors:{":focus":{outline:"none"}}},"ms-FocusZone")),vl),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(gl)&&this._isInnerZone){var i=this._getOwnerZone(this._root.current);if(i!==this._root.current){var e=Al[i.getAttribute(ml)];return!!e&&e.focusElement(this._root.current)}return!1}if(!t&&this._activeElement&&M(this._root.current,this._activeElement)&&B(this._activeElement,void 0,this._inShadowRoot)&&(!n||E(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=w(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&&(F(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(gl)&&"true"!==i.getAttribute("data-disable-click-on-enter"))return Ml(i,n),!0;i=w(i,Ll)}while(i!==this._root.current);return!1},n.prototype._getFirstInnerZone=function(t){if(!(t=t||this._activeElement||this._root.current))return null;if(F(t))return Al[t.getAttribute(ml)];for(var n=t.firstElementChild;n;){if(F(n))return Al[n.getAttribute(ml)];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,a=void 0,u=!1,s=this.props.direction===Ks.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){a=r;break}if(r){var c=n(l,r.getBoundingClientRect());if(-1===c&&-1===o){a=r;break}if(c>-1&&(-1===o||c<o)&&(o=c,a=r),o>=0&&c<0)break}}while(r);if(a&&a!==this._activeElement)u=!0,this.focusElement(a);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 u},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,a=Math.floor(r.top),u=Math.floor(e.bottom);return a<u?t._shouldWrapFocus(t._activeElement,bl)?wl:Cl:((-1===n&&a>=u||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._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,a=Math.floor(r.bottom),u=Math.floor(r.top),s=Math.floor(e.top);return a>s?t._shouldWrapFocus(t._activeElement,bl)?wl:Cl:((-1===n&&a<=s||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._moveFocusLeft=function(t){var n=this,i=this._shouldWrapFocus(this._activeElement,xl);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!==Ks.vertical?o=e.right-r.right:i||(o=Cl),o}),void 0,i)&&(this._setFocusAlignment(this._activeElement,!0,!1),!0)},n.prototype._moveFocusRight=function(t){var n=this,i=this._shouldWrapFocus(this._activeElement,xl);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!==Ks.vertical?o=r.left-e.left:i||(o=Cl),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,a=-1,u=-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>a?(a=f,r=p,o=i):!t&&d<u?(u=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===Ks.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=w(t,Ll);n&&n!==this._root.current&&n!==this._getDocument().body;){if(F(n))return n;n=w(n,Ll)}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&&!B(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];F(e)?"true"===e.getAttribute(gl)&&(this._isInnerZone||(this._activeElement||this._defaultFocusElement)&&this._activeElement!==e?"-1"!==e.getAttribute(yl)&&e.setAttribute(yl,"-1"):(this._defaultFocusElement=e,"0"!==e.getAttribute(yl)&&e.setAttribute(yl,"0"))):(e.getAttribute&&"false"===e.getAttribute(gl)&&e.setAttribute(yl,"-1"),B(e,void 0,this._inShadowRoot)?this.props.disabled?e.setAttribute(yl,"-1"):this._isInnerZone||(this._activeElement||this._defaultFocusElement)&&this._activeElement!==e?"-1"!==e.getAttribute(yl)&&e.setAttribute(yl,"-1"):(this._defaultFocusElement=e,"0"!==e.getAttribute(yl)&&e.setAttribute(yl,"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&&Vl.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=C(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&&dl(t,this._root.current)},n.prototype._getDocument=function(){return(0,k.Y)(this._root.current)},n.contextType=pl,n.defaultProps={isCircularNavigation:!1,direction:Ks.bidirectional,shouldRaiseClicks:!0,"data-tabster":'{"uncontrolled": {}}'},n}(a.Component);function Nl(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"}(kl||(kl={}));var Tl,Ol=(0,u.Z)(),El=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n._onRenderContent=function(t){return"string"==typeof t.content?a.createElement("p",{className:n._classNames.subText},t.content):a.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,u=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=Ol(u,{theme:d,className:n||i&&i.className,beakWidth:i&&i.isBeakVisible?i.beakWidth:0,gapSpace:i&&i.gapSpace,maxWidth:l}),a.createElement(zn,(0,o.Cl)({target:h,directionalHint:e,directionalHintForRTL:r},i,q(this.props,G,["id"]),{className:this._classNames.root}),a.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}(a.Component),Bl=(0,r.I)(El,(function(t){var n=t.className,i=t.beakWidth,e=void 0===i?16:i,r=t.gapSpace,o=void 0===r?0:r,a=t.maxWidth,u=t.theme,s=u.semanticColors,l=u.fonts,c=u.effects,f=-(Math.sqrt(e*e/2)+o)+1/window.devicePixelRatio;return{root:["ms-Tooltip",u.fonts.medium,Yt.lw.fadeIn200,{background:s.menuBackground,boxShadow:c.elevation8,padding:"8px",maxWidth:a,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"}(Tl||(Tl={}));var Fl,Pl,_l=(0,u.Z)(),Hl=function(t){function n(i){var e=t.call(this,i)||this;return e._tooltipHost=a.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 kl.Parent:return e._tooltipHost.current.parentElement;case kl.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,a=Ut(e.context);if(n._currentVisibleTooltip&&n._currentVisibleTooltip!==e&&n._currentVisibleTooltip.dismiss(),n._currentVisibleTooltip=e,void 0!==r){var u=e._getTargetElement();if(u&&!Nl(u))return}if(!t.target||!dl(t.target,e._getTargetElement(),a))if(e._clearDismissTimer(),e._clearOpenTimer(),o!==Tl.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===Ft||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 Tl.medium:return 300;case Tl.long:return 500;default:return 0}},sl(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,u=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=_l(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:u,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)?a.createElement(a.Fragment,null,t.content):null})):e,b=p&&!!y,x=f&&p&&y?g:void 0;return a.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&&a.createElement(Bl,(0,o.Cl)({},m)),a.createElement("div",{hidden:!0,id:g,style:Yt.dX},y))},n.prototype.componentDidMount=function(){this._async=new Pt(this)},n.prototype.componentWillUnmount=function(){n._currentVisibleTooltip&&n._currentVisibleTooltip===this&&(n._currentVisibleTooltip=void 0),this._async.dispose()},n.defaultProps={delay:Tl.medium},n.contextType=Wt,n}(a.Component),Il={root:"ms-TooltipHost",ariaPlaceholder:"ms-TooltipHost-aria-placeholder"},Wl=(0,r.I)(Hl,(function(t){var n=t.className,i=t.theme;return{root:[(0,Yt.Km)(Il,i).root,{display:"inline"},n]}}),void 0,{scope:"TooltipHost"}),Rl=function(t){function n(n){var i=t.call(this,n)||this;return i._tooltipChild=a.createRef(),i._checkTextOverflow=function(){var t=i._getTargetElement(),n=!!t&&Nl(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 Pt(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 a.createElement(Wl,{overflowMode:kl.Self,hostClassName:n,content:i},a.createElement("span",(0,o.Cl)({},Ps(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}(a.Component),zl=(0,u.Z)(),jl=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=zl(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?a.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=a.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,u=0;return this._isChartEmpty()?a.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):a.createElement("div",{className:this._classNames.root,onMouseLeave:this._handleChartMouseLeave},i.map((function(n,i){u=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-u,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=zl(t.props.styles,{theme:t.props.theme,width:t.props.width,showTriangle:!!n.chartData[0].data,variant:t.props.variant});return a.createElement("div",{key:i},a.createElement("div",{className:l.items},a.createElement(Dl,{direction:Ks.horizontal},a.createElement("div",{className:t._classNames.chartTitle},n.chartTitle&&a.createElement(Rl,{className:t._classNames.chartTitleLeft,content:n.chartTitle,accessibilityData:n.chartTitleAccessibilityData}),e)),n.chartData[0].data&&t._createBenchmark(n),a.createElement(Dl,{direction:Ks.horizontal,className:t._classNames.chartWrapper},a.createElement("svg",{ref:t.barChartSvgRef,className:t._classNames.chart,"aria-label":n.chartTitle},a.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)))))})),a.createElement(zn,(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,Ps(this.state.callOutAccessibilityData)),a.createElement(a.Fragment,null,this.props.onRenderCalloutPerHorizontalBar?this.props.onRenderCalloutPerHorizontalBar(this.state.barCalloutProps):a.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 a=b(this._refArray,(function(t){return t.index===n.legend}));this._calloutAnchorPoint=n;var u=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);u=(null===(r=n.gradient)||void 0===r?void 0:r[0])||ol(s,0,null===(o=this.props.theme)||void 0===o?void 0:o.isInverted)[0]}this.setState({isCalloutVisible:!0,hoverValue:t,lineColor:u,legend:n.legend,refSelected:a.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,u=e.horizontalBarChartdata.y,s=Ps(t.chartDataAccessibilityData,"text",!1);switch(i){case"default":return a.createElement("div",(0,o.Cl)({className:this._classNames.chartTitleRight},s),(0,jn.U)(r,n));case"fraction":return a.createElement("div",(0,o.Cl)({},s),a.createElement("span",{className:this._classNames.chartTitleRight},(0,jn.U)(r,n)),a.createElement("span",{className:this._classNames.chartDataTextDenominator}," / "+(0,jn.U)(u,n)));case"percentage":var l="".concat((0,jn.U)(Math.round(r/u*100),n),"%");return a.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 a.createElement("div",{className:this._classNames.benchmarkContainer},a.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,u=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-u)/100:1,m=t.chartData.map((function(n,e){var o,u,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])||ol(i,0,null===(u=r.props.theme)||void 0===u?void 0:u.isInverted)[0],b=(null===(d=n.gradient)||void 0===d?void 0:d[1])||ol(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 w=n.horizontalBarChartdata.x;if(1===e&&r.props.variant===v.AbsoluteScale){if(r.props.hideLabels)return a.createElement("text",{key:e});var C=t.chartData[0].horizontalBarChartdata.x;return a.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},Hs(C))}var M=g("HBC_Gradient")+"_".concat(i,"_").concat(e);return a.createElement(a.Fragment,{key:e},r.props.enableGradient&&a.createElement("defs",null,a.createElement("linearGradient",{id:M},a.createElement("stop",{offset:"0",stopColor:y}),a.createElement("stop",{offset:"100%",stopColor:b}))),a.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,w,n):void 0,onFocus:""!==n.legend?r._hoverOn.bind(r,w,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}(a.Component),$l=(0,r.I)(jl,(function(t){var n=t.className,i=t.theme,e=t.width,r=t.barHeight,a=t.showTriangle,u=t.variant,s=t.hideLabels,l=i.palette;return{root:[{display:"flex",flexDirection:"column",width:e||"100%"},n],items:{marginBottom:a||u===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:u===v.AbsoluteScale?"4px":"5px"},chartTitleRight:{fontSize:Yt.s.medium,fontWeight:Yt.BO.semibold,color:i.palette.neutralPrimary},chartDataTextDenominator:{fontSize:Yt.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:Yt.BO.semibold,fill:i.palette.neutralPrimary}),chartWrapper:{paddingRight:u!==v.AbsoluteScale||s?0:40}}})),Yl={host:"ms-HoverCard-host"},Xl=function(){function t(n){this._id=t._uniqueId++,this._parent=n,this._eventRecords=[]}return t.raise=function(n,i,e,r,o){var a,u=null!=o?o:(0,k.Y)();if(t._isElement(n)){if(void 0!==u&&u.createEvent){var s=u.createEvent("HTMLEvents");s.initEvent(i,r||!1,!0),Z(s,e),a=n.dispatchEvent(s)}else if(void 0!==u&&u.createEventObject){var l=u.createEventObject(e);n.fireEvent("on"+i,l)}}else for(;n&&!1!==a;){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!==a&&v<d.length;v++){var p=d[v];p.objectCallback&&(a=p.objectCallback.call(p.parent,e))}n=r?n.parent:null}return a},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 a=i.split(/[ ,]+/),u=0;u<a.length;u++)this.on(n,a[u],e,r);else{var s=this._parent,l={target:n,eventName:i,parent:s,callback:e,options:r};if((a=n.__events__=n.__events__||{})[i]=a[i]||{count:0},a[i][this._id]=a[i][this._id]||[],a[i][this._id].push(l),a[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 a=o.target.__events__,u=a[o.eventName],s=u?u[this._id]:null;s&&(1!==s.length&&i?(u.count--,s.splice(s.indexOf(o),1)):(u.count-=s.length,delete a[o.eventName][this._id]),u.count||delete a[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"}(Fl||(Fl={})),function(t){t.plain="PlainCard",t.expanding="ExpandingCard"}(Pl||(Pl={}));var Gl,ql={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"}(Gl||(Gl={}));var Ul=function(t){for(var n=t.activeElement;null==n?void 0:n.shadowRoot;)n=n.shadowRoot.activeElement;return n},Zl=function(t){var n=t.target;return n&&n.shadowRoot&&(n=t.composedPath()[0]),n};function Kl(t){var n=a.useRef();return a.useEffect((function(){n.current=t})),n.current}function Jl(t,n){var i=a.useRef(n);return i.current||(i.current=g(t)),i.current}function Ql(t){var n=a.useRef((function(){throw new Error("Cannot call an event handler while rendering")}));return Pn((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 tc={disabled:!1,disableFirstFocus:!1,forceFocusInsideTrap:!0,isClickableOutsideFocusTrap:!1,"data-tabster":'{"uncontrolled": {"completely": true}}'},nc=a.forwardRef((function(t,n){var i,e,r,u=a.useRef(null),s=a.useRef(null),l=a.useRef(null),c=It(u,n),f=zt(),h=qt(),d=!!a.useContext(pl),v=null===(i=Kl(!1))||void 0===i||i,p=W(tc,t),g=Xt({hasFocus:!1,focusStackId:Jl("ftz-",p.id)}),m=p.children,y=p.componentRef,b=p.disabled,x=p.disableFirstFocus,w=p.forceFocusInsideTrap,C=p.focusPreviouslyFocusedInnerElement,k=p.firstFocusableSelector,A=p.firstFocusableTarget,S=p.disableRestoreFocus,V=void 0===S?p.ignoreExternalFocusing:S,L=p.isClickableOutsideFocusTrap,D=p.enableAriaHiddenSiblings,O={"aria-hidden":!0,style:{pointerEvents:"none",position:"fixed"},tabIndex:b?-1:0,"data-is-visible":!0,"data-is-focus-trap-zone-bumper":!0},E=a.useCallback((function(t){t!==s.current&&t!==l.current&&H(t)}),[]),B=Ql((function(){if(u.current){var t=g.previouslyFocusedElementInTrapZone;if(C&&t&&M(u.current,t))E(t);else{var n=null;if("string"==typeof A)n=u.current.querySelector(A);else if(A)n=A(u.current);else if(k){var i="string"==typeof k?k:k();n=u.current.querySelector("."+i)}n||(n=T(u.current,u.current.firstChild,!1,!1,!1,!0,void 0,void 0,void 0,d)),n&&E(n)}}})),F=function(t){if(!b&&u.current){var n,i=t===g.hasFocus?(void 0===(n=!1)&&(n=!0),N(u.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)}(u.current,s.current,0,!1,d);i&&(i===s.current||i===l.current?B():i.focus())}},P=Ql((function(t){if(nc.focusStack=nc.focusStack.filter((function(t){return g.focusStackId!==t})),f){var n=f.activeElement;V||"function"!=typeof(null==t?void 0:t.focus)||!M(u.current,n)&&n!==f.body&&!n.shadowRoot||E(t)}})),_=Ql((function(t){if(!b&&g.focusStackId===nc.focusStack.slice(-1)[0]){var n=Zl(t);n&&!M(u.current,n)&&(f&&Ul(f)===f.body?setTimeout((function(){f&&Ul(f)===f.body&&(B(),g.hasFocus=!0)}),0):(B(),g.hasFocus=!0),t.preventDefault(),t.stopPropagation())}}));return a.useEffect((function(){var t=[];return w&&t.push(I(h,"focus",_,!0)),L||t.push(I(h,"click",_,!0)),function(){t.forEach((function(t){return t()}))}}),[w,L,h]),a.useEffect((function(){if(!b&&(v||w)&&u.current){nc.focusStack.push(g.focusStackId);var t=p.elementToFocusOnDismiss||Ul(f);return x||M(u.current,t)||B(),function(){return P(t)}}}),[w,b]),a.useEffect((function(){if(!b&&D)return Bt(u.current)}),[b,D,u]),e=function(){delete g.previouslyFocusedElementInTrapZone},(r=a.useRef(e)).current=e,a.useEffect((function(){return function(){var t;null===(t=r.current)||void 0===t||t.call(r)}}),[]),function(t,n,i){a.useImperativeHandle(t,(function(){return{get previouslyFocusedElement(){return n},focus:i}}),[i,n])}(y,g.previouslyFocusedElementInTrapZone,B),a.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?F(!0):t.target===l.current&&F(!1),g.hasFocus=!0,t.target!==t.currentTarget&&t.target!==s.current&&t.target!==l.current&&(g.previouslyFocusedElementInTrapZone=Zl(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=Ul(f)),M(u.current,i)||(g.hasFocus=!1)}}),a.createElement("div",(0,o.Cl)({},O,{ref:s})),m,a.createElement("div",(0,o.Cl)({},O,{ref:l})))}));nc.displayName="FocusTrapZone",nc.focusStack=[];var ic,ec=function(t){return a.createElement(zn,(0,o.Cl)({},t),a.createElement(nc,(0,o.Cl)({disabled:t.hidden},t.focusTrapProps),t.children))},rc=function(t){var n=t.gapSpace,i=void 0===n?0:n,e=t.directionalHint,r=void 0===e?x.bottomLeftEdge:e,u=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:u,finalHeight:d,minPagePadding:24,onDismiss:f,gapSpace:i}),p);return a.createElement(a.Fragment,null,c?a.createElement(ec,(0,o.Cl)({},g,{focusTrapProps:{forceFocusInsideTrap:!1,isClickableOutsideFocusTrap:!0,disableFirstFocus:!l}}),v):a.createElement(zn,(0,o.Cl)({},g),v))},oc=(0,u.Z)(),ac=function(t){function n(n){var i=t.call(this,n)||this;return i._expandedElem=a.createRef(),i._onKeyDown=function(t){t.which===Ft&&i.props.onLeave&&i.props.onLeave(t)},i._onRenderCompactCard=function(){return a.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})})),a.createElement("div",{className:i._classNames.expandedCard,ref:i._expandedElem},a.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 Pt(i),sl(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,u=t.mode,s=t.className,l=this.state,c=l.needsScroll,f=l.firstFrameRendered,h=i+e;this._classNames=oc(n,{theme:r,compactCardHeight:i,className:s,expandedCardHeight:e,needsScroll:c,expandedCardFirstFrameRendered:u===Gl.expanded&&f});var d=a.createElement("div",{onMouseEnter:this.props.onEnter,onMouseLeave:this.props.onLeave,onKeyDown:this._onKeyDown},this._onRenderCompactCard(),this._onRenderExpandedCard());return a.createElement(rc,(0,o.Cl)({},this.props,{content:d,finalHeight:h,className:this._classNames.root}))},n.defaultProps={compactCardHeight:156,expandedCardHeight:384,directionalHintFixed:!0},n}(a.Component),uc=(0,r.I)(ac,(function(t){var n,i=t.theme,e=t.needsScroll,r=t.expandedCardFirstFrameRendered,o=t.compactCardHeight,a=t.expandedCardHeight,u=t.className,s=i.palette,l=(0,Yt.Km)(ql,i);return{root:[l.root,{width:320,pointerEvents:"none",selectors:(n={},n[Yt.up]={border:"1px solid WindowText"},n)},u],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:a}],expandedCardScroll:[l.expandedCardScroll,e&&{height:"100%",boxSizing:"border-box",overflowY:"auto"}]}}),void 0,{scope:"ExpandingCard"}),sc={root:"ms-PlainCard-root"},lc=(0,u.Z)(),cc=function(t){function n(n){var i=t.call(this,n)||this;return i._onKeyDown=function(t){t.which===Ft&&i.props.onLeave&&i.props.onLeave(t)},sl(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=lc(n,{theme:i,className:e});var r=a.createElement("div",{onMouseEnter:this.props.onEnter,onMouseLeave:this.props.onLeave,onKeyDown:this._onKeyDown},this.props.onRenderPlainCard(this.props.renderData));return a.createElement(rc,(0,o.Cl)({},this.props,{content:r,className:this._classNames.root}))},n}(a.Component),fc=(0,r.I)(cc,(function(t){var n,i=t.theme,e=t.className;return{root:[(0,Yt.Km)(sc,i).root,{pointerEvents:"auto",selectors:(n={},n[Yt.up]={border:"1px solid WindowText"},n)},e]}}),void 0,{scope:"PlainCard"}),hc=(0,u.Z)(),dc=function(t){function n(n){var i=t.call(this,n)||this;return i._hoverCard=a.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:Gl.compact,openMode:"keydown"===t.type?Fl.hotKey:Fl.hover}}))}),i.props.cardOpenDelay)},i._cardDismiss=function(t,n){if(t){if(!(n instanceof MouseEvent))return;if("keydown"===n.type&&n.which!==Ft)return;i.props.sticky||i._currentMouseTarget!==n.currentTarget&&n.which!==Ft||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:Gl.compact,openMode:Fl.hover})},i._instantOpenAsExpanded=function(t){i._async.clearTimeout(i._dismissTimerId),i.setState((function(t){return t.isHoverCardVisible?t:{isHoverCardVisible:!0,mode:Gl.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),a=i._nativeDismissEvent;o&&(i._events.on(o,"mouseenter",i._cardOpen),i._events.on(o,"mouseleave",a),n?i._events.on(o,"keydown",i._cardOpen):(i._events.on(o,"focus",i._cardOpen),i._events.on(o,"blur",a)),e?i._events.on(o,"click",i._instantOpenAsExpanded):(i._events.on(o,"mousedown",a),i._events.on(o,"keydown",a)))},sl(i),i._async=new Pt(i),i._events=new Xl(i),i._nativeDismissEvent=i._cardDismiss.bind(i,!0),i._childDismissEvent=i._cardDismiss.bind(i,!1),i.state={isHoverCardVisible:!1,mode:Gl.compact,openMode:Fl.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:Gl.expanded},(function(){i.props.onCardExpand&&i.props.onCardExpand()}))}),this.props.expandedCardOpenDelay),this.props.onCardVisible&&this.props.onCardVisible()):(this.setState({mode:Gl.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,u=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=hc(s,{theme:l,className:c});var w=(0,o.Cl)((0,o.Cl)({},q(this.props,G)),{id:x,trapFocus:!!d,firstFocus:v||b===Fl.hotKey,targetElement:this._getTargetElement(this.props.target),onEnter:this._cardOpen,onLeave:this._childDismissEvent}),C=(0,o.Cl)((0,o.Cl)((0,o.Cl)({},n),w),{mode:y}),M=(0,o.Cl)((0,o.Cl)({},h),w);return a.createElement("div",{className:this._classNames.host,ref:this._hoverCard,"aria-describedby":u&&m?x:void 0,"data-is-focusable":!this.props.target},i,m&&(f===Pl.expanding?a.createElement(uc,(0,o.Cl)({},C)):a.createElement(fc,(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:Pl.expanding},n}(a.Component),vc=(0,r.I)(dc,(function(t){var n=t.className,i=t.theme;return{host:[(0,Yt.Km)(Yl,i).host,n]}}),void 0,{scope:"HoverCard"});!function(t){t[t.horizontal=0]="horizontal",t[t.vertical=1]="vertical"}(ic||(ic={}));var pc=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 a(t,n,o){for(var a=t,u=r(t,o);u>i;){var s=n(a);if(void 0===s)return{renderedData:a,resizeDirection:void 0,dataToMeasure:void 0};if(void 0===(u=e.getCachedMeasurement(s)))return{dataToMeasure:s,resizeDirection:"shrink"};a=s}return{renderedData:a,resizeDirection:void 0,dataToMeasure:void 0}}return{getNextState:function(t,n,u,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 a;return a=t>i?r?{resizeDirection:"grow",dataToMeasure:r(e)}:{resizeDirection:"shrink",dataToMeasure:n}:{resizeDirection:"shrink",dataToMeasure:e},i=t,(0,o.Cl)((0,o.Cl)({},a),{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,u,s){for(var l=t,c=r(t,u);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"},a(l,s,u))}(n.dataToMeasure,t.onGrowData,u,t.onReduceData)):(0,o.Cl)((0,o.Cl)({},l),a(n.dataToMeasure,t.onReduceData,u))),l}},shouldRenderDataForMeasurement:function(t){return!(!t||void 0!==e.getCachedMeasurement(t))},getInitialResizeGroupState:function(t){return{dataToMeasure:(0,o.Cl)({},t),resizeDirection:"grow",measureContainer:!0}}}},gc=a.createContext({isMeasured:!1}),mc={position:"fixed",visibility:"hidden"},yc={position:"relative"};function bc(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 xc={isMeasured:!0},wc=a.forwardRef((function(t,n){var i=a.useRef(null),e=It(i,n),r=function(t,n){var i=Xt(pc),e=a.useRef(null),r=a.useRef(null),u=a.useRef(!1),s=_t(),l=function(t,n,i){var e=Xt((function(){return n.getInitialResizeGroupState(t.data)})),r=a.useReducer(bc,e),u=r[0],s=r[1];a.useEffect((function(){s({type:"dataToMeasure",value:t.data})}),[t.data]);var l=a.useRef(e);return l.current=(0,o.Cl)({},u),[l,a.useCallback((function(t){t&&s({type:"resizeData",value:t})}),[]),a.useCallback((function(){i.current&&s({type:"measureContainer",value:!0})}),[i])]}(t,i,n),c=l[0],f=l[1],h=l[2];a.useEffect((function(){var n;c.current.renderedData&&(u.current=!0,null===(n=t.dataDidRender)||void 0===n||n.call(t,c.current.renderedData))})),a.useEffect((function(){s.requestAnimationFrame((function(){var o=void 0;if(c.current.measureContainer&&n.current){var a=n.current.getBoundingClientRect();o=t.direction===ic.vertical?a.height:a.width}var s=i.getNextState(t,c.current,(function(){var n=u.current?r:e;if(!n.current)return 0;var i=n.current.getBoundingClientRect();return t.direction===ic.vertical?i.height:i.width}),o);f(s)}),n.current)})),Ht(Rt(),"resize",s.debounce(h,16,{leading:!0}));var d=i.shouldRenderDataForMeasurement(c.current.dataToMeasure),v=!u.current&&d;return[c.current.dataToMeasure,c.current.renderedData,h,e,r,d,v]}(t,i),u=r[0],s=r[1],l=r[2],c=r[3],f=r[4],h=r[5],d=r[6];a.useImperativeHandle(t.componentRef,(function(){return{remeasure:l}}),[l]);var v=t.className,p=t.onRenderData,g=q(t,G,["data"]);return a.createElement("div",(0,o.Cl)({},g,{className:v,ref:e}),a.createElement("div",{style:yc},h&&!d&&a.createElement("div",{style:mc,ref:f},a.createElement(gc.Provider,{value:xc},p(u))),a.createElement("div",{ref:c,style:d?mc:void 0,"data-automation-id":"visibleContent"},d?p(u):s&&p(s))))}));wc.displayName="ResizeGroupBase";var Cc,Mc=wc;!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"}(Cc||(Cc={}));var kc=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?Cc.PERSISTED_KEYTIP_ADDED:Cc.KEYTIP_ADDED;Xl.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||Xl.raise(this,Cc.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?Cc.PERSISTED_KEYTIP_REMOVED:Cc.KEYTIP_REMOVED;!this.inKeytipMode&&this.delayUpdatingKeytipChange||Xl.raise(this,e,{keytip:t,uniqueID:n})},t.prototype.enterKeytipMode=function(){Xl.raise(this,Cc.ENTER_KEYTIP_MODE)},t.prototype.exitKeytipMode=function(){Xl.raise(this,Cc.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){Xl.raise(this,Cc.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}(),Ac=function(t,n,i){for(var e=0,r=t;e<r.length;e++){var o=r[e];i[n.register(o,!0)]=o}},Sc=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]}},Vc=function(t){var n=kc.getInstance(),i=t.className,e=t.overflowItems,r=t.keytipSequences,u=t.itemSubMenuProvider,s=t.onRenderOverflowButton,l=Xt({}),c=a.useCallback((function(t){return u?u(t):t.subMenuProps?t.subMenuProps.items:void 0}),[u]),f=a.useMemo((function(){var t=[],i=[];return r?null==e||e.forEach((function(e){var a,u=e.keytipProps;if(u){var s={content:u.content,keySequences:u.keySequences,disabled:u.disabled||!(!e.disabled&&!e.isDisabled),hasDynamicChildren:u.hasDynamicChildren,hasMenu:u.hasMenu};u.hasDynamicChildren||c(e)?(s.onExecute=n.menuExecute.bind(n,r,null===(a=null==e?void 0:e.keytipProps)||void 0===a?void 0:a.keySequences),s.hasOverflowSubMenu=!0):s.onExecute=u.onExecute,t.push(s);var l=(0,o.Cl)((0,o.Cl)({},e),{keytipProps:(0,o.Cl)((0,o.Cl)({},u),{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=Kl(t);a.useEffect((function(){e&&(Sc(i,e),Ac(n,i,t))})),a.useEffect((function(){return Ac(n,i,t),function(){Sc(i,t)}}),[])}(l,f.keytipsToRegister,n),a.createElement("div",{className:i},s(h))},Lc=(0,u.Z)(),Dc=a.forwardRef((function(t,n){var i=a.useRef(null),e=It(i,n);!function(t,n){var i=function(){var t;return null!==(t=zt())&&void 0!==t?t:"undefined"!=typeof document?document:void 0}();a.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,u=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=Lc(l,{className:s,vertical:c}),g=!!u&&u.length>0;return a.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&&a.createElement(Vc,(0,o.Cl)({},t,{className:p.overflowButton})),r&&r.map((function(t,n){return a.createElement("div",{className:p.item,key:t.key,role:"none"},v(t))})),"end"===d&&g&&a.createElement(Vc,(0,o.Cl)({},t,{className:p.overflowButton})))}));Dc.displayName="OverflowSet";var Nc,Tc={flexShrink:0,display:"inherit"},Oc=(0,r.I)(Dc,(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",Tc],overflowButton:["ms-OverflowSet-overflowButton",Tc]}}),void 0,{scope:"OverflowSet"}),Ec=((Nc={})["".concat(Os[Os.circle])]="M1 6 A5 5 0 1 0 12 6 M1 6 A5 5 0 0 1 12 6",Nc["".concat(Os[Os.square])]="M1 1 L12 1 L12 12 L1 12 L1 1 Z",Nc["".concat(Os[Os.triangle])]="M6 10L8.74228e-07 -1.04907e-06L12 0L6 10Z",Nc["".concat(Os[Os.pyramid])]="M6 10L8.74228e-07 -1.04907e-06L12 0L6 10Z",Nc["".concat(Os[Os.diamond])]="M2 2 L10 2 L10 10 L2 10 L2 2 Z",Nc["".concat(Os[Os.hexagon])]="M9 0H3L0 5L3 10H9L12 5L9 0Z",Nc["".concat(Os[Os.pentagon])]="M6.06061 0L0 4.21277L2.30303 11H9.69697L12 4.21277L6.06061 0Z",Nc["".concat(Os[Os.octagon])]="M7.08333 0H2.91667L0 2.91667V7.08333L2.91667 10H7.08333L10 7.08333V2.91667L7.08333 0Z",Nc["".concat(Es[Es.dottedLine])]="M0 6 H3 M5 6 H8 M10 6 H13",Nc),Bc=function(t){var n=t.svgProps,i=t.pathProps,e=t.shape,r=t.classNameForNonSvg;return-1===Object.keys(Ec).indexOf(e)?a.createElement("div",{className:r}):a.createElement("svg",(0,o.Cl)({width:14,height:14,viewBox:"-1 -1 14 14"},js(n),{transform:"rotate(".concat(e===Os[Os.diamond]?45:e===Os[Os.pyramid]?180:0,", 0, 0)")}),a.createElement("path",(0,o.Cl)({d:Ec[e]},js(i))))};function Fc(t,n,i,e){return void 0===i&&(i=!1),void 0===e&&(e={}),new Promise((function(r,a){if(!t)return a(new Error("Chart container is not defined"));try{var u="string"==typeof e.background?Xs(t,e.background):"transparent",s=function(t,n,i,e){var r=t.querySelector("svg");if(!r)throw new Error("SVG not found");for(var a=ns(r.cloneNode(!0)).attr("width",null).attr("height",null).attr("viewBox",null),u=r.getElementsByTagName("*"),s=a.node().getElementsByTagName("*"),l=0;l<u.length;l++)"text"===u[l].tagName.toLowerCase()?Gs((0,o.fX)((0,o.fX)([],Pc,!0),_c,!0),u[l],s[l]):Gs(Pc,u[l],s[l]);var c=r.getBoundingClientRect(),f=c.width,h=c.height,d="function"==typeof n?n(f,i):{node:null,width:0,height:0},v=Math.max(f,d.width),p=h+d.height;return d.node&&(ns(d.node).attr("transform","translate(0, ".concat(h,")")),a.append((function(){return d.node}))),a.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",v).attr("height",p).attr("fill",e),a.attr("width",v).attr("height",p).attr("viewBox","0 0 ".concat(v," ").concat(p)).attr("direction",i?"rtl":"ltr"),{node:a.node(),width:v,height:p}}(t,n,i,u),l=(new XMLSerializer).serializeToString(s.node);(function(t,n){return void 0===n&&(n={}),new Promise((function(i,e){var r=n.scale||1,o=n.width||300,a=n.height||150,u=r*o,s=r*a,l=document.createElement("canvas"),c=new Image;l.width=u,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,u,s),t.drawImage(c,0,0,u,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),Wc.exec(i)){e+=String.fromCharCode(parseInt(i,16)),o+=5;continue}}else if(i=t.slice(o,o+2),Ic.exec(i)){e+=String.fromCharCode(parseInt(i,16)),o+=2;continue}e+=n}return e}(encodeURIComponent(l))),{width:e.width||s.width,height:e.height||s.height,scale:e.scale}).then(r).catch(a)}catch(t){return a(t)}}))}var Pc=["display","fill","fill-opacity","opacity","stroke","stroke-width","transform"],_c=["font-family","font-size","font-weight","text-anchor"],Hc={color:"fill","font-family":"font-family","font-size":"font-size","font-weight":"font-weight"};var Ic=/^[\da-f]{2}$/i,Wc=/^[\da-f]{4}$/i,Rc=(0,u.Z)(),zc=function(t){function n(n){var i,e,r,u,s=t.call(this,n)||this;s._isLegendSelected=!1,s.toSVG=function(t,n){return void 0===n&&(n=!1),function(t,n,i,e){if(0===t.length)return{node:null,width:0,height:0};for(var r=i.selectedLegends,a=i.centerLegends,u=i.textClassName,s=i.isRTL,l=ns(Iu("svg:g").call(document.documentElement)),c=a?0:12,f=8,h=[],d=[],v=[],p=0===Object.keys(r).length,g=function(i){var o,g,m,y,b=(o=t[i].title,g=u,m=e,(y=document.getElementById(Us))||((y=document.createElement("span")).setAttribute("id",Us),y.setAttribute("aria-hidden","true"),m?m.appendChild(y):document.body.appendChild(y)),y.setAttribute("class",g),Object.assign(y.style,qs),y.textContent="".concat(o),y),x=29+b.getBoundingClientRect().width+8,w=l.append("g");h.push({elem:w,width:x}),c+x>n&&h.length>1&&(h.pop(),d.push(h),v.push(c),h=[{elem:w,width:x}],c=a?0:12,f+=32);var C=r[t[i].title]||p;w.append("rect").attr("x",c+(s?x-8-13:8)).attr("y",f+8).attr("width",13).attr("height",13).style("fill",C?t[i].color:"transparent").style("stroke-width",1).style("stroke",t[i].color),w.append("text").attr("x",c+(s?x-29:29)).attr("y",f+8).attr("dominant-baseline","hanging").style("opacity",C?1:.67).text(t[i].title).call((function(t){return Gs(Hc,b,t.node())})),c+=x},m=0;m<t.length;m++)g(m);if(d.push(h),v.push(c),f+=32,a)d.forEach((function(t,i){var e=Math.max((n-v[i])/2,0),r=v[i],o=0;t.forEach((function(t){var n=e+(s?r-t.width-o:0);t.elem.attr("transform","translate(".concat(n,", 0)")),r-=t.width,o+=t.width}))}));else if(s){var y=Math.max.apply(Math,(0,o.fX)([n],v,!1));d.forEach((function(t){var n=y-12,i=12;t.forEach((function(t){var e=n-t.width-i;t.elem.attr("transform","translate(".concat(e,", 0)")),n-=t.width,i+=t.width}))}))}return{node:l.node(),width:Math.max.apply(Math,v),height:f}}(s.props.legends,t,{selectedLegends:s.state.selectedLegends,centerLegends:!!s.props.centerLegends,textClassName:s._classNames.text,isRTL:n},s._rootElem)},s._onRenderData=function(t){var n=s.props,i=n.overflowProps,e=n.allowFocusOnLegends,r=void 0===e||e,u=n.canSelectMultipleLegends,l=void 0!==u&&u,c={root:{justifyContent:s.props.centerLegends?"center":"unset",flexWrap:"wrap"}};return a.createElement(Dl,(0,o.Cl)({},r&&{role:"listbox","aria-label":"Legends","aria-multiselectable":l}),a.createElement(Oc,(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,a=void 0!==o&&o?s._getNewSelectedLegendsForMultiselect(t):s._getNewSelectedLegendsForSingleSelect(t);s.setState({selectedLegends:a}),null===(e=(i=s.props).onChange)||void 0===e||e.call(i,Object.keys(a),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,u=n.styles,l=n.theme,c=n.canSelectMultipleLegends,f=void 0!==c&&c,h=[],d=Rc(u,{theme:l,className:r});return t.renderData.forEach((function(t,n){var i=s._renderButton(t,n,!0);h.push(i)})),a.createElement(Dl,(0,o.Cl)({},e&&{role:"listbox","aria-label":"Legends","aria-multiselectable":f},{direction:Ks.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},u=s.props,l=u.theme,c=u.className,f=u.styles,h=u.overflowText,d=Rc(f,{theme:l,className:c}),v={onRenderPlainCard:s._onRenderCompactCard,renderData:r},p=h||"more";return a.createElement(vc,{type:Pl.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},a.createElement("div",{role:"option"},a.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,u={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(u.title,u.color),c=s.props,f=c.theme,h=c.className,d=c.styles,v=Rc(d,{theme:f,className:h,colorOnSelectedState:l,borderColor:u.color,overflow:i,stripePattern:u.stripePattern,isLineLegendInBarChart:u.isLineLegendInBarChart,opacity:u.opacity}),p=function(){s._onHoverOverLegend(u)},g=function(){s._onLeave(u)},m=s._getShape(v,u,l);return a.createElement("button",(0,o.Cl)({},r&&{"aria-selected":!!s.state.selectedLegends[u.title],role:"option","aria-label":"".concat(u.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(u,t)},onMouseOver:p,onMouseOut:g,onFocus:p,onBlur:g,"data-is-focusable":r}),m,a.createElement("div",{className:v.text},u.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===(u=null!=l?l:[])||void 0===u?void 0:u.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,n=this.props,i=n.theme,e=n.className,r=n.styles;this._classNames=Rc(r,{theme:i,className:e}),this._isLegendSelected=Object.keys(this.state.selectedLegends).length>0;var o=this._generateData();return a.createElement("div",{className:this._classNames.root,ref:function(n){return t._rootElem=n}},this.props.enabledWrapLines?this._onRenderData(o):a.createElement(Mc,{data:o,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 a.createElement(Bc,{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}(a.Component),jc=(0,r.I)(zc,(function(t){var n,i,e=t.className,r=t.theme,a=t.isLineLegendInBarChart,u=void 0!==a&&a,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,Yt.gm)(r,f),{display:"flex",alignItems:"center",cursor:"pointer",border:"none",padding:"".concat(8,"px"),background:"none",textTransform:"capitalize"}],rect:{selectors:(n={},n[Yt.up]={content:"linear-gradient(to right, ".concat(t.colorOnSelectedState,", ").concat(t.colorOnSelectedState,")"),opacity:t.colorOnSelectedState===r.semanticColors.buttonBackground?"0.6":""},n),width:"".concat(12,"px"),height:u?"4px":"".concat(12,"px"),backgroundColor:t.stripePattern?"":t.colorOnSelectedState,marginRight:"".concat(8,"px"),border:"".concat(1,"px 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:"".concat(8,"px")}],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[Yt.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?"".concat(.67):""}),hoverChange:{width:"12px",height:"12px",backgroundColor:r.semanticColors.buttonBackground,marginRight:"8px",border:"1px solid",borderColor:t.borderColor?t.borderColor:l.black},overflowIndicationTextStyle:[(0,Yt.gm)(r,f),(0,o.Cl)((0,o.Cl)({cursor:"pointer",color:null==r?void 0:r.semanticColors.bodyText},c.small),{lineHeight:"16px",padding:"".concat(8,"px")})],hoverCardRoot:{padding:"8px",position:"relative",overflowY:"auto",maxHeight:"300px"},subComponentStyles:{hoverCardStyles:{host:[(0,Yt.gm)(r,f)]}}}}));function $c(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function Yc(t){return function(){return t}}function Xc(t,n){return n<t?-1:n>t?1:n>=t?0:NaN}function Gc(t){return t}Array.prototype.slice;const qc=Math.abs,Uc=Math.atan2,Zc=Math.cos,Kc=Math.max,Jc=Math.min,Qc=Math.sin,tf=Math.sqrt,nf=1e-12,ef=Math.PI,rf=ef/2,of=2*ef;function af(t){return t>=1?rf:t<=-1?-rf:Math.asin(t)}function uf(){var t=Gc,n=Xc,i=null,e=Yc(0),r=Yc(of),o=Yc(0);function a(a){var u,s,l,c,f,h=(a=$c(a)).length,d=0,v=new Array(h),p=new Array(h),g=+e.apply(this,arguments),m=Math.min(of,Math.max(-of,r.apply(this,arguments)-g)),y=Math.min(Math.abs(m)/h,o.apply(this,arguments)),b=y*(m<0?-1:1);for(u=0;u<h;++u)(f=p[v[u]=u]=+t(a[u],u,a))>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(a[t],a[n])})),u=0,l=d?(m-h*b)/d:0;u<h;++u,g=c)s=v[u],c=g+((f=p[s])>0?f*l:0)+b,p[s]={data:a[s],index:u,value:f,startAngle:g,endAngle:c,padAngle:y};return p}return a.value=function(n){return arguments.length?(t="function"==typeof n?n:Yc(+n),a):t},a.sortValues=function(t){return arguments.length?(n=t,i=null,a):n},a.sort=function(t){return arguments.length?(i=t,n=null,a):i},a.startAngle=function(t){return arguments.length?(e="function"==typeof t?t:Yc(+t),a):e},a.endAngle=function(t){return arguments.length?(r="function"==typeof t?t:Yc(+t),a):r},a.padAngle=function(t){return arguments.length?(o="function"==typeof t?t:Yc(+t),a):o},a}const sf=Math.PI,lf=2*sf,cf=1e-6,ff=lf-cf;function hf(t){this._+=t[0];for(let n=1,i=t.length;n<i;++n)this._+=arguments[n]+t[n]}class df{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==t?hf:function(t){let n=Math.floor(t);if(!(n>=0))throw new Error(`invalid digits: ${t}`);if(n>15)return hf;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,a=this._y1,u=i-t,s=e-n,l=o-t,c=a-n,f=l*l+c*c;if(null===this._x1)this._append`M${this._x1=t},${this._y1=n}`;else if(f>cf)if(Math.abs(c*u-s*l)>cf&&r){let h=i-o,d=e-a,v=u*u+s*s,p=h*h+d*d,g=Math.sqrt(v),m=Math.sqrt(f),y=r*Math.tan((sf-Math.acos((v+f-p)/(2*g*m)))/2),b=y/m,x=y/g;Math.abs(b-1)>cf&&this._append`L${t+b*l},${n+b*c}`,this._append`A${r},${r},0,0,${+(c*h>l*d)},${this._x1=t+x*u},${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 a=i*Math.cos(e),u=i*Math.sin(e),s=t+a,l=n+u,c=1^o,f=o?e-r:r-e;null===this._x1?this._append`M${s},${l}`:(Math.abs(this._x1-s)>cf||Math.abs(this._y1-l)>cf)&&this._append`L${s},${l}`,i&&(f<0&&(f=f%lf+lf),f>ff?this._append`A${i},${i},0,1,${c},${t-a},${n-u}A${i},${i},0,1,${c},${this._x1=s},${this._y1=l}`:f>cf&&this._append`A${i},${i},0,${+(f>=sf)},${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 vf(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 df(n)}function pf(t){return t.innerRadius}function gf(t){return t.outerRadius}function mf(t){return t.startAngle}function yf(t){return t.endAngle}function bf(t){return t&&t.padAngle}function xf(t,n,i,e,r,o,a){var u=t-i,s=n-e,l=(a?o:-o)/tf(u*u+s*s),c=l*s,f=-l*u,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,w=r-o,C=h*p-v*d,M=(b<0?-1:1)*tf(Kc(0,w*w*x-C*C)),k=(C*b-y*M)/x,A=(-C*y-b*M)/x,S=(C*b+y*M)/x,V=(-C*y+b*M)/x,L=k-g,D=A-m,N=S-g,T=V-m;return L*L+D*D>N*N+T*T&&(k=S,A=V),{cx:k,cy:A,x01:-c,y01:-f,x11:k*(r/w-1),y11:A*(r/w-1)}}function wf(){var t=pf,n=gf,i=Yc(0),e=null,r=mf,o=yf,a=bf,u=null,s=vf(l);function l(){var l,c,f,h=+t.apply(this,arguments),d=+n.apply(this,arguments),v=r.apply(this,arguments)-rf,p=o.apply(this,arguments)-rf,g=qc(p-v),m=p>v;if(u||(u=l=s()),d<h&&(c=d,d=h,h=c),d>nf)if(g>of-nf)u.moveTo(d*Zc(v),d*Qc(v)),u.arc(0,0,d,v,p,!m),h>nf&&(u.moveTo(h*Zc(p),h*Qc(p)),u.arc(0,0,h,p,v,m));else{var y,b,x=v,w=p,C=v,M=p,k=g,A=g,S=a.apply(this,arguments)/2,V=S>nf&&(e?+e.apply(this,arguments):tf(h*h+d*d)),L=Jc(qc(d-h)/2,+i.apply(this,arguments)),D=L,N=L;if(V>nf){var T=af(V/h*Qc(S)),O=af(V/d*Qc(S));(k-=2*T)>nf?(C+=T*=m?1:-1,M-=T):(k=0,C=M=(v+p)/2),(A-=2*O)>nf?(x+=O*=m?1:-1,w-=O):(A=0,x=w=(v+p)/2)}var E=d*Zc(x),B=d*Qc(x),F=h*Zc(M),P=h*Qc(M);if(L>nf){var _,H=d*Zc(w),I=d*Qc(w),W=h*Zc(C),R=h*Qc(C);if(g<ef)if(_=function(t,n,i,e,r,o,a,u){var s=i-t,l=e-n,c=a-r,f=u-o,h=f*s-c*l;if(!(h*h<nf))return[t+(h=(c*(n-o)-f*(t-r))/h)*s,n+h*l]}(E,B,W,R,H,I,F,P)){var z=E-_[0],j=B-_[1],$=H-_[0],Y=I-_[1],X=1/Qc(((f=(z*$+j*Y)/(tf(z*z+j*j)*tf($*$+Y*Y)))>1?0:f<-1?ef:Math.acos(f))/2),G=tf(_[0]*_[0]+_[1]*_[1]);D=Jc(L,(h-G)/(X-1)),N=Jc(L,(d-G)/(X+1))}else D=N=0}A>nf?N>nf?(y=xf(W,R,E,B,d,N,m),b=xf(H,I,F,P,d,N,m),u.moveTo(y.cx+y.x01,y.cy+y.y01),N<L?u.arc(y.cx,y.cy,N,Uc(y.y01,y.x01),Uc(b.y01,b.x01),!m):(u.arc(y.cx,y.cy,N,Uc(y.y01,y.x01),Uc(y.y11,y.x11),!m),u.arc(0,0,d,Uc(y.cy+y.y11,y.cx+y.x11),Uc(b.cy+b.y11,b.cx+b.x11),!m),u.arc(b.cx,b.cy,N,Uc(b.y11,b.x11),Uc(b.y01,b.x01),!m))):(u.moveTo(E,B),u.arc(0,0,d,x,w,!m)):u.moveTo(E,B),h>nf&&k>nf?D>nf?(y=xf(F,P,H,I,h,-D,m),b=xf(E,B,W,R,h,-D,m),u.lineTo(y.cx+y.x01,y.cy+y.y01),D<L?u.arc(y.cx,y.cy,D,Uc(y.y01,y.x01),Uc(b.y01,b.x01),!m):(u.arc(y.cx,y.cy,D,Uc(y.y01,y.x01),Uc(y.y11,y.x11),!m),u.arc(0,0,h,Uc(y.cy+y.y11,y.cx+y.x11),Uc(b.cy+b.y11,b.cx+b.x11),m),u.arc(b.cx,b.cy,D,Uc(b.y11,b.x11),Uc(b.y01,b.x01),!m))):u.arc(0,0,h,M,C,m):u.lineTo(F,P)}else u.moveTo(0,0);if(u.closePath(),l)return u=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-ef/2;return[Zc(e)*i,Qc(e)*i]},l.innerRadius=function(n){return arguments.length?(t="function"==typeof n?n:Yc(+n),l):t},l.outerRadius=function(t){return arguments.length?(n="function"==typeof t?t:Yc(+t),l):n},l.cornerRadius=function(t){return arguments.length?(i="function"==typeof t?t:Yc(+t),l):i},l.padRadius=function(t){return arguments.length?(e=null==t?null:"function"==typeof t?t:Yc(+t),l):e},l.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:Yc(+t),l):r},l.endAngle=function(t){return arguments.length?(o="function"==typeof t?t:Yc(+t),l):o},l.padAngle=function(t){return arguments.length?(a="function"==typeof t?t:Yc(+t),l):a},l.context=function(t){return arguments.length?(u=null==t?null:t,l):u},l}df.prototype;var Cf=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:Yt.s.small,fontWeight:Yt.BO.semibold,fill:r.palette.neutralPrimary}}},Mf=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.state={},n.currentRef=a.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,u=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,u)+2,p=(r.startAngle+r.endAngle)/2,g=r.value;return a.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?Pe(".0%")(0===l?0:g/l):Hs(g))},n}return(0,o.C6)(n,t),n.getDerivedStateFromProps=function(t){return kf(t),null},n.prototype.updateChart=function(t){kf(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,u.Z)(),p=this.props.uniqText+("string"==typeof this.props.data.data.legend?this.props.data.data.legend.replace(/\s+/g,""):"")+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,w=v(Cf,{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}),C=g("Arc_clip")+"".concat(this.props.color,"_").concat(this.props.nextColor);return a.createElement("g",{ref:this.currentRef},!!h&&h===p&&a.createElement("path",{id:p+"focusRing",d:c.cornerRadius(x)(this.props.focusData),className:w.focusRing}),a.createElement("path",{id:p,d:c.cornerRadius(x)(this.props.data),onFocus:this._onFocus.bind(this,this.props.data.data,p),className:w.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(w.arcLabel),this.props.enableGradient&&a.createElement(a.Fragment,null,a.createElement("clipPath",{id:C},a.createElement("path",{d:c.cornerRadius(x)(this.props.data)})),a.createElement("foreignObject",{x:"-50%",y:"-50%",width:"100%",height:"100%",clipPath:"url(#".concat(C,")")},a.createElement("div",{className:w.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:wf()},n}(a.Component);function kf(t){t.arc.innerRadius(t.innerRadius),t.arc.outerRadius(t.outerRadius)}var Af=function(t){var n,i=t.theme;return{root:{},insideDonutString:{fontSize:Yt.s.xLargePlus,fontWeight:Yt.BO.semibold,fill:i.semanticColors.bodyText,selectors:(n={},n[Yt.NK]={fill:"rgb(179, 179, 179)"},n)}}},Sf=(0,u.Z)(),Vf=function(t){function n(n){var i=t.call(this,n)||this;return i.arcGenerator=function(t,n,e,r){var o,u,s,l,c=t&&t.data&&t.data.color,f=c;return i.props.enableGradient&&(c=null!==(u=null===(o=i.props.data[n].gradient)||void 0===o?void 0:o[0])&&void 0!==u?u:ol(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:ol(n,0,i.props.theme.isInverted)[1]),a.createElement(Mf,{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=uf().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),u="translate(".concat(this.props.width/2,", ").concat(this.props.height/2,")"),s=Sf(Af,{theme:this.props.theme});return this._totalValue=this._computeTotalValue(),a.createElement("g",{transform:u},o.map((function(n,i){return t.arcGenerator(n,i,r[i],t.props.href)})),this.props.valueInsideDonut&&a.createElement("text",{y:5,textAnchor:"middle",dominantBaseline:"middle",className:s.insideDonutString},this.props.valueInsideDonut))},n.prototype.componentDidUpdate=function(){var t,n,i;t=Sf(Af,{theme:this.props.theme}).insideDonutString,n=2*this.props.innerRadius-5,i=0,is(".".concat(t)).each((function(){for(var t=ns(this),e=t.text().split(/\s+/).reverse(),r="",o=[],a=0,u=t.attr("y"),s=t.text(null).append("tspan").attr("id","WordBreakId-".concat(i,"-").concat(a)).attr("x",0).attr("y",u).attr("dy",1.1*a+++"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(a)).attr("x",0).attr("y",u).attr("dy",1.1*a+++"em").text(r));i+=1}))},n.prototype._hoverCallback=function(t,n){this.props.hoverOnCallback(t,n)},n.defaultProps={pie:uf().sort(null).value((function(t){return t.data})).padAngle(.02)},n}(a.Component),Lf={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"]},Nf={qualitative:Df,semantic:{info:["#015cda"],disabled:["#dbdbdb","#4d4d4d"],highError:["#6e0811","#cc2635"],error:["#c50f1f","#dc626d"],warning:["#f7630c","#f87528"],success:["#107c10","#54b054"],highSuccess:["#094509","#218c21"]}},Tf=Object.values(Df),Of=Object.values(Lf),Ef=function(t,n){if(0===t.length)return"";var i=Number(n);return i<t.length?t[i]:t[0]},Bf=function(t,n,i){void 0===n&&(n=0),void 0===i&&(i=!1);var e=Tf[(t+n)%Tf.length];return Ef(e,i)},Ff=function(t,n){if(void 0===n&&(n=!1),Of.indexOf(t)>=0){var i=t.split("."),e=i[0],r=i[1],o=Nf[e][r];return Ef(o,n)}return t},Pf=function(t){return t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)},_f=function(t){var n=t.r,i=t.g,e=t.b;return{r:Pf(n/255),g:Pf(i/255),b:Pf(e/255)}},Hf=function(t){return.2126*t.r+.7152*t.g+.0722*t.b},If=(0,u.Z)(),Wf=function(t){function n(n){var i,e=t.call(this,n)||this;return e.toImage=function(t){var n;return Fc(e._rootElem,null===(n=e._legendsRef.current)||void 0===n?void 0:n.toSVG,(0,s.jI)(),t)},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,a;if(e._calloutAnchorPoint!==t){e._calloutAnchorPoint=t,e._currentHoverElement=n;var u=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);u=(null===(o=t.gradient)||void 0===o?void 0:o[0])||ol(s,0,null===(a=e.props.theme)||void 0===a?void 0:a.isInverted)[0]}e.setState({showHover:e._noLegendsHighlighted()||e._isLegendHighlighted(t.legend),value:t.data.toString(),legend:t.legend,color:u,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,a;return a=void 0===t.color?Bf(n,0,null===(i=e.props.theme)||void 0===i?void 0:i.isInverted):Ff(t.color,null===(r=e.props.theme)||void 0===r?void 0:r.isInverted),(0,o.Cl)((0,o.Cl)({},t),{color:a})})):[]},sl(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._legendsRef=a.createRef(),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;$s(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,u=this._addDefaultColors(null==i?void 0:i.chartData);this._classNames=If(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(u),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(u.filter((function(t){return t.data>=0}))),d=0!==this.props.innerRadius?this._valueInsideDonut(this.props.valueInsideDonut,h):"";return this._isChartEmpty()?a.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):a.createElement("div",{className:this._classNames.root,ref:function(n){return t._rootElem=n},onMouseLeave:this._handleChartMouseLeave},a.createElement(Dl,{direction:Ks.horizontal,handleTabKey:1},a.createElement("div",null,a.createElement("svg",{className:this._classNames.chart,"aria-label":null==i?void 0:i.chartTitle,ref:function(n){return t._setViewBox(n)}},a.createElement(Vf,{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})))),a.createElement(zn,(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,Ps(this.state.callOutAccessibilityData,"text",!1)),this.props.onRenderCalloutPerDataPoint?this.props.onRenderCalloutPerDataPoint(this.state.dataPointCalloutProps):a.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&&a.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])||ol(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 a.createElement(jc,(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),ref:this._legendsRef}))},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}(a.Component),Rf=(0,r.I)(Wf,(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 zf(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 jf(t){return t[0]}function $f(t){return t[1]}function Yf(t,n){var i=Yc(!0),e=null,r=rs,o=null,a=vf(u);function u(u){var s,l,c,f=(u=$c(u)).length,h=!1;for(null==e&&(o=r(c=a())),s=0;s<=f;++s)!(s<f&&i(l=u[s],s,u))===h&&((h=!h)?o.lineStart():o.lineEnd()),h&&o.point(+t(l,s,u),+n(l,s,u));if(c)return o=null,c+""||null}return t="function"==typeof t?t:void 0===t?jf:Yc(t),n="function"==typeof n?n:void 0===n?$f:Yc(n),u.x=function(n){return arguments.length?(t="function"==typeof n?n:Yc(+n),u):t},u.y=function(t){return arguments.length?(n="function"==typeof t?t:Yc(+t),u):n},u.defined=function(t){return arguments.length?(i="function"==typeof t?t:Yc(!!t),u):i},u.curve=function(t){return arguments.length?(r=t,null!=e&&(o=r(e)),u):r},u.context=function(t){return arguments.length?(null==t?e=o=null:o=r(e=t),u):e},u}var Xf,Gf,qf,Uf=function(t){function n(i){var e=t.call(this,i)||this;return e._tooltipHost=a.createRef(),e._tooltipHostId=g("tooltip-host"),e.show=function(){e._toggleTooltip(!0)},e.dismiss=function(){e._hideTooltip()},e._measureText=function(){if(e._tooltipHost.current&&"function"==typeof e._tooltipHost.current.getBBox){var t=e._tooltipHost.current.getBBox();e.setState({textX:t.x,textY:t.y,textWidth:t.width,textHeight:t.height})}},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||!dl(t.target,e._getTargetElement())))if(e._clearDismissTimer(),e._clearOpenTimer(),i!==Tl.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===Ft||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 Tl.medium:return 300;case Tl.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,a=t.maxHeight,u=!1;n&&i&&i(n,e._tooltipHostId,o,a)&&(u=!0),e.state.isOverflowing!==u&&e.setState({isOverflowing:u})},e.state={isTooltipVisible:!1,isOverflowing:!1},e._async=new Pt(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,u=void 0===r||r,l=t.showBackground,c=void 0!==l&&l,f=this.state,h=f.isTooltipVisible,d=f.textX,v=f.textY,p=f.textWidth,g=f.textHeight,m=(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),y=!!this.props.isTooltipVisibleProp&&this.state.isOverflowing&&!!n||h&&!!n,b=this.props.theme?this.props.theme.semanticColors.bodyBackground:void 0,x=(0,s.jI)()?(null!=d?d:0)+(null!=p?p:0)-4:(null!=d?d:0)-4;return a.createElement(a.Fragment,null,c&&a.createElement("rect",{x:x,y:(null!=v?v:0)-4,width:(null!=p?p:0)+8,height:(null!=g?g:0)+8,fill:b,transform:null==e?void 0:e.transform}),a.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":u&&this.state.isOverflowing}),n),y&&a.createElement(Bl,(0,o.Cl)({},m)))},n.prototype.componentDidMount=function(){this._wrapContent(),this._measureText()},n.prototype.componentDidUpdate=function(t){this.props.maxWidth===t.maxWidth&&this.props.maxHeight===t.maxHeight||(this._wrapContent(),this._measureText())},n.prototype.componentWillUnmount=function(){n._currentVisibleTooltip&&n._currentVisibleTooltip===this&&(n._currentVisibleTooltip=void 0),this._async.dispose()},n.defaultProps={delay:Tl.medium},n}(a.Component),Zf=(0,u.Z)(),Kf=a.lazy((function(){return Promise.resolve().then(i.bind(i,357)).then((function(t){return{default:t.ChartHoverCard}}))})),Jf=[Zu.HorizontalBarChartWithAxis,Zu.HeatMapChart],Qf=function(t){function n(n){var i,e,r,u,l,c,f,h,d,v,p,m,y,b,x,w,C,M,k,A,S,V,L,D,N,T,O=t.call(this,n)||this;return O.minLegendContainerHeight=32,O._isRtl=(0,s.jI)(),O._isFirstRender=!0,O.isIntegralDataset=!0,O.calculateMaxYAxisLabelLength=function(t,n,i){return t===Zu.HeatMapChart?ws(n[0].data.map((function(t){return t.y})),".".concat(i," text")):ws(n.map((function(t){return t.y})),".".concat(i," text"))},O._multiValueCallout=function(t){var n=O._yValueHoverSubCountsExists(t.YValueHover);return a.createElement("div",{className:O._classNames.calloutContentRoot},a.createElement("div",{className:O._classNames.calloutDateTimeContainer,style:n?{marginBottom:"11px"}:{}},a.createElement("div",(0,o.Cl)({className:O._classNames.calloutContentX},Ps(t.xAxisCalloutAccessibilityData,"text",!1)),(0,jn.U)(t.hoverXValue,O.props.culture))),a.createElement("div",{className:O._classNames.calloutInfoContainer,style:n?{display:"flex"}:{}},t.YValueHover&&t.YValueHover.map((function(t,i,e){var r=i+1===e.length,u=t.shouldDrawBorderBottom,s=void 0!==u&&u;return a.createElement("div",(0,o.Cl)({},Ps(t.callOutAccessibilityData,"text",!1),{key:"callout-content-".concat(i),style:n?(0,o.Cl)({display:"inline-block"},s&&{borderBottom:"1px solid ".concat(O.props.theme.semanticColors.menuDivider),paddingBottom:"10px"}):(0,o.Cl)({},s&&{borderBottom:"1px solid ".concat(O.props.theme.semanticColors.menuDivider),paddingBottom:"10px"})}),O._getCalloutContent(t,i,n,r))})),!!t.descriptionMessage&&a.createElement("div",{className:O._classNames.descriptionMessage},t.descriptionMessage)))},O._getData=function(t,n,i){O.props.getGraphData&&O.props.getGraphData(t,n,O.state.containerHeight-O.state._removalValueForTextTuncate,O.state.containerWidth,O.xAxisElement,O.yAxisElement,i)},O._onChartLeave=function(){O.props.onChartMouseLeave&&O.props.onChartMouseLeave()},O._calculateChartMinWidth=function(){var t=10;if(!O.props.wrapXAxisLables&&O.props.rotateXAxisLables&&O.props.xAxisType===Ku.StringAxis){var n=ws(O._tickValues,".".concat(O._classNames.xAxis," text"));t+=Math.ceil(n*Math.cos(Math.PI/4))}else if(O.props.showXAxisLablesTooltip){var i=O._tickValues.map((function(t){var n=O.props.noOfCharsToTruncate||4;return t.toString().length>n?"".concat(t.toString().slice(0,n),"..."):t}));n=ws(i,".".concat(O._classNames.xAxis," text")),t+=Math.ceil(n)}else if(O.props.wrapXAxisLables){var e=[];O._tickValues.forEach((function(t){e.push.apply(e,t.toString().split(/\s+/))})),n=ws(e,".".concat(O._classNames.xAxis," text")),t+=Math.max(Math.ceil(n),10)}else n=ws(O._tickValues,".".concat(O._classNames.xAxis," text")),t+=Math.ceil(n);var r=O.margins.left+O.margins.right+t*(O._tickValues.length-1);return[Zu.GroupedVerticalBarChart,Zu.VerticalBarChart,Zu.VerticalStackedBarChart].includes(O.props.chartType)&&(r+=16),r},O._getChartDescription=function(){return(O.props.chartTitle||"Chart. ")+O._getAxisTitle("X",O.props.xAxisTitle,O.props.xAxisType)+O._getAxisTitle("Y",O.props.yAxisTitle,O.props.yAxisType||Ju.NumericAxis)+(O.props.secondaryYScaleOptions?O._getAxisTitle("secondary Y",O.props.secondaryYAxistitle,Ju.NumericAxis):"")},O._getAxisTitle=function(t,n,i){return"The ".concat(t," axis displays ")+(n||(i===Ku.StringAxis||i===Ju.StringAxis?"categories":i===Ku.DateAxis||i===Ju.DateAxis?"time":"values"))+". "},O.state={containerHeight:0,containerWidth:0,_width:O.props.width||600,_height:O.props.height||350,_removalValueForTextTuncate:0,isRemoveValCalculated:!0,startFromX:0},O.idForGraph=g("chart_"),O.titleMargin=8,O.idForDefaultTabbableElement=g("defaultTabbableElement_"),O.margins={top:null!==(e=null===(i=O.props.margins)||void 0===i?void 0:i.top)&&void 0!==e?e:20,bottom:null!==(u=null===(r=O.props.margins)||void 0===r?void 0:r.bottom)&&void 0!==u?u:35,right:O._isRtl?null!==(c=null===(l=O.props.margins)||void 0===l?void 0:l.left)&&void 0!==c?c:40:(null!==(h=null===(f=O.props.margins)||void 0===f?void 0:f.right)&&void 0!==h?h:null===(d=O.props)||void 0===d?void 0:d.secondaryYScaleOptions)?40:20,left:O._isRtl?(null!==(p=null===(v=O.props.margins)||void 0===v?void 0:v.right)&&void 0!==p?p:null===(m=O.props)||void 0===m?void 0:m.secondaryYScaleOptions)?40:20:null!==(b=null===(y=O.props.margins)||void 0===y?void 0:y.left)&&void 0!==b?b:40},void 0!==O.props.xAxisTitle&&""!==O.props.xAxisTitle&&(O.margins.bottom=null!==(w=null===(x=O.props.margins)||void 0===x?void 0:x.bottom)&&void 0!==w?w:55),void 0!==O.props.yAxisTitle&&""!==O.props.yAxisTitle&&(O.margins.left=O._isRtl?(null!==(M=null===(C=O.props.margins)||void 0===C?void 0:C.right)&&void 0!==M?M:null===(k=O.props)||void 0===k?void 0:k.secondaryYAxistitle)?80:40:null!==(S=null===(A=O.props.margins)||void 0===A?void 0:A.left)&&void 0!==S?S:60,O.margins.right=O._isRtl?null!==(L=null===(V=O.props.margins)||void 0===V?void 0:V.left)&&void 0!==L?L:60:(null!==(N=null===(D=O.props.margins)||void 0===D?void 0:D.right)&&void 0!==N?N:null===(T=O.props)||void 0===T?void 0:T.secondaryYAxistitle)?80:40),O}return(0,o.C6)(n,t),n.prototype.componentDidMount=function(){if(this._fitParentContainer(),Jf.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===Ku.StringAxis){var n=function(t){var n=t.node,i=t.xAxis;if(null!==n&&null!==i){var e=0,r=[];ns(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 ns(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(Jf.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,u,s,l,c,f=this,h=this.props,d=h.calloutProps,v=h.points,p=h.chartType,g=h.chartHoverProps,m=h.svgFocusZoneProps,y=h.svgProps,b=h.culture,x=h.dateLocalizeOptions,w=h.timeFormatLocale,C=h.customDateTimeFormatter;this.props.parentRef&&this._fitParentContainer();var M=(0,o.Cl)({},this.margins);Jf.includes(this.props.chartType)&&(this._isRtl?M.right+=this.state.startFromX:M.left+=this.state.startFromX),this.props.getmargins&&this.props.getmargins(M);var k,A,S,V,L,D=null,N=null;if(this.props.enableFirstRenderOptimization&&this.chartContainer||!this.props.enableFirstRenderOptimization){this._isFirstRender=!1;var T={domainNRangeValues:this.props.getDomainNRangeValues(v,this.props.getDomainMargins?this.props.getDomainMargins(this.state.containerWidth):this.margins,this.state.containerWidth,p,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:null===(r=this.props.showRoundOffXTickValues)||void 0===r||r,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,containerWidth:this.state.containerWidth,hideTickOverlap:this.props.hideTickOverlap&&!this.props.rotateXAxisLables&&!this.props.showXAxisLablesTooltip&&!this.props.wrapXAxisLables},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(v,this.props.yAxisType),yAxisPadding:this.props.yAxisPadding||0},E=void 0,B=void 0;switch(this.props.xAxisType){case Ku.NumericAxis:E=(t=hs(T,this.props.tickParams,this.props.chartType,b)).xScale,B=t.tickValues;break;case Ku.DateAxis:n=function(t,n,i,e,r,o,a){var u,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=t.hideTickOverlap,g=a?Fa():Ba();g.domain([s.dStartValue,s.dEndValue]).range([s.rStartValue,s.rEndValue]);var m=null!=v?v:6,y=function(t,u){return o?o(t):i&&e?t.toLocaleString(i,e):r?ds(t,so(r),a):void 0===i&&n.tickFormat?a?ho(n.tickFormat)(t):co(n.tickFormat)(t):ds(t,void 0,a)};if(p&&void 0===v){var b=ws(g.ticks().map(y),'[class^="xAxis-"] text')+40,x=g.range(),w=x[0],C=x[1];m=Math.min(Math.max(1,Math.floor(Math.abs(C-w)/b)),10)}var M=ei(g).tickSize(d).tickPadding(f).ticks(m).tickFormat(y);n.tickValues&&M.tickValues(n.tickValues),l&&ns(l).call(M).selectAll("text").attr("aria-hidden","true");var k=(null!==(u=n.tickValues)&&void 0!==u?u:g.ticks(m)).map(M.tickFormat());return{xScale:g,tickValues:k}}(T,this.props.tickParams,b,x,w,C,this.props.useUTC),E=n.xScale,B=n.tickValues;break;case Ku.StringAxis:i=function(t,n,i,e){var r,o=t.domainNRangeValues,a=t.xAxistickSize,u=void 0===a?6:a,s=t.tickPadding,l=void 0===s?10:s,c=t.xAxisPadding,f=void 0===c?.1:c,h=t.xAxisInnerPadding,d=t.xAxisOuterPadding,v=t.containerWidth,p=t.hideTickOverlap,g=za().domain(i).range([o.rStartValue,o.rEndValue]).paddingInner(void 0!==h?h:f).paddingOuter(void 0!==d?d:f),m=null!==(r=n.tickValues)&&void 0!==r?r:i;if(p){var y=[],b=m.map((function(t){return ws([t],'[class^="xAxis-"] text')})),x=0,w=v,C=1,M=g.range();M[1]-M[0]<0&&(x=v,w=0,C=-1);for(var k=m.length-1;k>=0;k--){var A=g(m[k]);C*(A-C*b[k]/2-x)>=0&&C*(A+C*b[k]/2-w)<=0&&(y.push(m[k]),w=A-C*(b[k]/2+10))}m=y=y.reverse()}var S=ei(g).tickSize(u).tickPadding(l).tickValues(m);return t.xAxisElement&&ns(t.xAxisElement).call(S).selectAll("text").attr("aria-hidden","true"),{xScale:g,tickValues:m}}(T,this.props.tickParams,this.props.datasetForXAxisDomain),E=i.xScale,B=i.tickValues;break;default:E=(e=hs(T,this.props.tickParams,this.props.chartType,b)).xScale,B=e.tickValues}if(this._xScale=E,this._tickValues=B,this.props.wrapXAxisLables||this.props.showXAxisLablesTooltip){var F={node:this.xAxisElement,xAxis:E,showXAxisLablesTooltip:this.props.showXAxisLablesTooltip||!1,noOfCharsToTruncate:this.props.noOfCharsToTruncate||4},P=E&&function(t){var n=t.node,i=t.xAxis,e=t.noOfCharsToTruncate,r=t.showXAxisLablesTooltip;if(null!==n){var o=ns(n).call(i),a=0,u=[];return o.selectAll(".tick text").each((function(){var t=ns(this),n=t.text(),i="".concat(t.text().slice(0,e),"..."),s=t.text().length,l=t.text().split(/\s+/).reverse();u.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,u),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),a=(g-y)*m}})),a>0?a:0}}(F);this.state.isRemoveValCalculated&&this.state._removalValueForTextTuncate!==P&&this.setState({_removalValueForTextTuncate:P,isRemoveValCalculated:!1})}var _=void 0,H=void 0,I={yAxisDomainValues:[]};if(this.props.yAxisType&&this.props.yAxisType===Ju.StringAxis)_=this.props.createStringYAxis(O,this.props.stringDatasetForYAxisDomain,this._isRtl,this.props.barwidth);else{if(null===(u=this.props)||void 0===u?void 0:u.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===(s=this.props.secondaryYScaleOptions)||void 0===s?void 0:s.yMinValue)||0,yMaxValue:null!==(c=null===(l=this.props.secondaryYScaleOptions)||void 0===l?void 0:l.yMaxValue)&&void 0!==c?c:100,tickPadding:10,yMinMaxValues:this.props.getMinMaxOfYAxis(v,this.props.yAxisType,!0),yAxisPadding:this.props.yAxisPadding};H=this.props.createYAxis(W,this._isRtl,I,this.isIntegralDataset,!0,this.props.supportNegativeData,this.props.roundedTicks)}_=this.props.createYAxis(O,this._isRtl,I,this.isIntegralDataset,!1,this.props.supportNegativeData,this.props.roundedTicks)}Jf.includes(this.props.chartType)&&_&&(k=this.yAxisElement,A=_,S=this.props.noOfCharsToTruncate||4,V=this.props.showYAxisLablesTooltip||!1,L=this._isRtl,null!==k&&ns(k).call(A).selectAll(".tick text").each((function(){var t=ns(this),n=t.text(),i=L?"...".concat(t.text().slice(0,S)):"".concat(t.text().slice(0,S),"..."),e=t.text().length,r=V?1.5:1,o=t.attr("y"),a=t.attr("x"),u=parseFloat(t.attr("dy"));t.text(null).append("tspan").attr("x",a).attr("y",o).attr("id","BaseSpan").attr("dy",u+"em").attr("data-",n),V&&e>S?t.append("tspan").attr("id","showDots").attr("x",L?0:a).attr("y",o).attr("dy",u).attr("dx",r+0+"em").text(i):t.attr("text-align","start").append("tspan").attr("id","LessLength").attr("x",L?0:a).attr("y",o).attr("dx",r+0+"em").text(n)}))),this.props.getAxisData&&this.props.getAxisData(I),this._getData(E,_,H),N=this.props.children((0,o.Cl)((0,o.Cl)({},this.state),{xScale:E,yScalePrimary:_,yScaleSecondary:H})),!this.props.hideTooltip&&d.isCalloutVisible&&(D=this._generateCallout(d,g))}this._classNames=Zf(this.props.styles,{theme:this.props.theme,width:this.state._width,height:this.state._height,className:this.props.className,isRtl:this._isRtl,enableReflow:this.props.enableReflow});var R,z={width:this.state.containerWidth,height:this.state.containerHeight};R=this.props.focusZoneDirection===Ks.vertical||this.props.focusZoneDirection?this.props.focusZoneDirection:Ks.horizontal;var j=z.width-this.margins.left-this.margins.right-this.state.startFromX,$=z.height-this.margins.bottom-this.margins.top-this.state._removalValueForTextTuncate-this.titleMargin;return a.createElement("div",{id:this.idForGraph,className:this._classNames.root,ref:function(t){return f.chartContainer=t},onMouseLeave:this._onChartLeave},!this._isFirstRender&&a.createElement("div",{id:this.idForDefaultTabbableElement}),a.createElement(Dl,(0,o.Cl)({direction:R,className:this._classNames.chartWrapper,defaultTabbableElement:"#".concat(this.idForDefaultTabbableElement)},m),this._isFirstRender&&a.createElement("div",{id:this.idForDefaultTabbableElement}),a.createElement("svg",(0,o.Cl)({width:z.width,height:z.height,role:"region","aria-label":this._getChartDescription(),style:{display:"block"}},js(y)),a.createElement("g",{ref:function(t){f.xAxisElement=t},id:"xAxisGElement".concat(this.idForGraph),transform:"translate(0, ".concat(z.height-this.margins.bottom-this.state._removalValueForTextTuncate,")"),className:this._classNames.xAxis}),void 0!==this.props.xAxisTitle&&""!==this.props.xAxisTitle&&a.createElement(Uf,{content:this.props.xAxisTitle,textProps:{x:this.margins.left+this.state.startFromX+j/2,y:z.height-this.titleMargin,className:this._classNames.axisTitle,textAnchor:"middle","aria-hidden":!0},maxWidth:j,wrapContent:xs,theme:this.props.theme,showBackground:!0}),a.createElement("g",{ref:function(t){f.yAxisElement=t},id:"yAxisGElement".concat(this.idForGraph),transform:"translate(".concat(this._isRtl?z.width-this.margins.right-this.state.startFromX:this.margins.left+this.state.startFromX,", 0)"),className:this._classNames.yAxis}),this.props.secondaryYScaleOptions&&a.createElement("g",null,a.createElement("g",{ref:function(t){f.yAxisElementSecondary=t},id:"yAxisGElementSecondary".concat(this.idForGraph),transform:"translate(".concat(this._isRtl?this.margins.left+this.state.startFromX:z.width-this.margins.right-this.state.startFromX,", 0)"),className:this._classNames.yAxis}),void 0!==this.props.secondaryYAxistitle&&""!==this.props.secondaryYAxistitle&&a.createElement(Uf,{content:this.props.secondaryYAxistitle,textProps:{x:($-this.margins.bottom)/2+this.state._removalValueForTextTuncate,y:this._isRtl?this.state.startFromX-this.titleMargin:z.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(z.height-this.margins.bottom-this.margins.top-this.titleMargin,")rotate(-90)"),className:this._classNames.axisTitle,"aria-hidden":!0},maxWidth:$,wrapContent:xs,theme:this.props.theme,showBackground:!0})),N,void 0!==this.props.yAxisTitle&&""!==this.props.yAxisTitle&&a.createElement(Uf,{content:this.props.yAxisTitle,textProps:{x:($-this.margins.bottom)/2+this.state._removalValueForTextTuncate,y:this._isRtl?z.width-this.margins.right/2+this.titleMargin:this.margins.left/2+this.state.startFromX-this.titleMargin,textAnchor:"middle",transform:"translate(0,\n ".concat(z.height-this.margins.bottom-this.margins.top-this.titleMargin,")rotate(-90)"),className:this._classNames.axisTitle,"aria-hidden":!0},maxWidth:$,wrapContent:xs,theme:this.props.theme,showBackground:!0}))),!this.props.hideLegend&&a.createElement("div",{ref:function(t){return f.legendContainer=t},className:this._classNames.legendContainer},this.props.legendBars),D&&a.createElement(a.Suspense,{fallback:a.createElement("div",null,"Loading...")},D))},n.prototype._generateCallout=function(t,n){return a.createElement(zn,(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&&a.createElement(Kf,(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"},u=void 0!==t.index&&-1!==t.index,s=Zf(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:u}),l=this.props.culture,c=(0,jn.U)(t.y,l);if(t.yAxisCalloutData&&"string"!=typeof t.yAxisCalloutData){var f=t.yAxisCalloutData;return a.createElement("div",{style:o},a.createElement("div",{className:"ms-fontWeight-semibold",style:{fontSize:"12pt"}},t.legend," (",c,")"),Object.keys(f).map((function(t){return a.createElement("div",{key:t,className:s.calloutBlockContainer},a.createElement("div",{className:s.calloutlegendText}," ",(0,jn.U)(t,l)),a.createElement("div",{className:s.calloutContentY},(0,jn.U)(f[t],l)))})))}return a.createElement("div",{style:i?o:{}},i&&a.createElement("div",{className:"ms-fontWeight-semibold",style:{fontSize:"12pt"}},t.legend," (",c,")"),a.createElement("div",{id:"".concat(n,"_").concat(t.y),className:s.calloutBlockContainer},u&&a.createElement(Bc,{svgProps:{className:s.shapeStyles},pathProps:{fill:t.color},shape:Os[t.index%Object.keys(Fs).length]}),a.createElement("div",null,a.createElement("div",{className:s.calloutlegendText}," ",t.legend),a.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,a=t.props.enableReflow&&!t._isFirstRender?Math.max(o.getBoundingClientRect().width,t._calculateChartMinWidth()):o.getBoundingClientRect().width,u=o.getBoundingClientRect().height>n?o.getBoundingClientRect().height:350;(i!==a||e!==u-n)&&t.setState({containerWidth:a,containerHeight:u-n})}}))},n}(a.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"}(Xf||(Xf={})),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"}(Gf||(Gf={})),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"}(qf||(qf={}));var th=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}(),nh=(0,r.I)(Qf,(function(t){var n,i,e,r,a,u,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=t.enableReflow,b=f.fonts;return{root:[f.fonts.medium,{display:"flex",width:"100%",height:"100%",flexDirection:"column",overflow:"hidden"},c],chartWrapper:(0,o.Cl)({},y?{overflow:"auto"}:{}),axisTitle:[f.fonts.xSmall,{textAlign:"center",fontWeight:Yt.BO.semibold,fontStyle:"normal",lineHeight:Yt.s.medium,color:Gf.gray160,fill:f.semanticColors.bodyText}],xAxis:{selectors:{text:[f.fonts.tiny,{fill:f.semanticColors.bodyText,fontWeight:"600",selectors:(n={},n[Yt.NK]={fill:"rgb(179, 179, 179)"},n)}],line:{opacity:.2,stroke:f.semanticColors.bodyText,width:"1px",selectors:(i={},i[Yt.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[Yt.NK]={fill:"rgb(179, 179, 179)"},e)}],path:{display:"none"},line:{opacity:.2,stroke:f.semanticColors.bodyText,selectors:(r={},r[Yt.NK]={opacity:.1,stroke:"rgb(179, 179, 179)"},r)},g:[h&&!th&&{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)({},b.small),{lineHeight:"16px",opacity:"0.85",color:f.semanticColors.bodySubtext})],calloutBlockContainer:[f.fonts.mediumPlus,{marginTop:"13px",color:f.semanticColors.bodyText},!m&&{selectors:(a={},a[Yt.up]={forcedColorAdjust:"none"},a),borderLeft:"4px solid ".concat(g),paddingLeft:"8px"},m&&{display:"flex"}],shapeStyles:{marginRight:"8px"},calloutlegendText:(0,o.Cl)((0,o.Cl)({},b.small),{lineHeight:"16px",selectors:(u={},u[Yt.NK]={color:"rgb(255, 255, 255)"},u),color:f.semanticColors.bodySubtext}),calloutContentY:[(0,o.Cl)((0,o.Cl)({},b.mediumPlus),{fontWeight:"bold",lineHeight:"22px",selectors:(s={},s[Yt.NK]={color:"rgb(255, 255, 255)"},s)})],descriptionMessage:[f.fonts.small,{selectors:(l={},l[Yt.NK]={color:"rgb(255, 255, 255)"},l),color:f.semanticColors.bodyText,marginTop:"10px",paddingTop:"10px",borderTop:"1px solid ".concat(f.semanticColors.menuDivider)}]}})),ih=(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 eh(t,n){return ih(t)(n)}var rh=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)},oh=function(t,n){"scrollTop"in t?t.scrollTop=n:"scrollY"in t&&t.scrollTo(t.scrollX,n)},ah="spacer-",uh={top:-1,bottom:-1,left:-1,right:-1,width:0,height:0},sh=function(t){return t.getBoundingClientRect()},lh=sh,ch=sh,fh=function(t){function n(n){var i=t.call(this,n)||this;return i._root=a.createRef(),i._surface=a.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,Fn.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 a.createElement("div",(0,o.Cl)({ref:n},e),i)},i._onRenderSurface=function(t){var n=t.surfaceRef,i=t.pageElements,e=t.divProps;return a.createElement("div",(0,o.Cl)({ref:n},e),i)},i._onRenderPage=function(t,n){for(var e,r=i.props,u=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 w=null!=s?s:u,C=null!==(e=null==w?void 0:w(b,y,i.props.ignoreScrollingState?void 0:i.state.isScrolling))&&void 0!==e?e:null;s&&!C||g.push(a.createElement("div",{role:p,className:"ms-List-cell",key:x,"data-list-index":y,"data-automationid":"ListCell"},C))}return a.createElement("div",(0,o.Cl)({},v),g)},sl(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,a=0,u=1,s=e;s<r;s+=u){var l=this._getPageSpecification(this.props,s,o),c=l.height;if(u=l.itemCount,s<=t&&s+u>t){if(n&&this._scrollElement){for(var f=ch(this._scrollElement),h=rh(this._scrollElement),d={top:h,bottom:h+f.height},v=t-s,p=0;p<v;++p)a+=n(s+p);var g=a+n(t);switch(i){case 1:return void oh(this._scrollElement,a);case 2:return void oh(this._scrollElement,g-f.height);case 3:return void oh(this._scrollElement,(a+g-f.height)/2)}if(a>=d.top&&g<=d.bottom)return;a<d.top||g>d.bottom&&(a=g-f.height)}return void(this._scrollElement&&oh(this._scrollElement,a))}a+=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,a=e.startIndex;a<e.startIndex+e.itemCount;a++){if(r=t(a),e.top+o<=this._scrollTop&&this._scrollTop<e.top+o+r)return a;o+=r}}}return 0},n.prototype.componentDidMount=function(){this._async=new Pt(this),this._events=new Xl(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 a=i[o],u=e[o];if(a.key!==u.key||a.itemCount!==u.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,a=t.onRenderRoot,u=this.state.pages,s=void 0===u?[]:u,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?eh(r,this._onRenderSurface):this._onRenderSurface;return(a?eh(a,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,a=(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:a}),a},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=w(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),a=Math.min(i,r+1);o===e&&a===r||(this._requiredWindowsAhead=o,this._requiredWindowsBehind=a,this._updateRenderRects(this.props,this.state),this.setState(this._updatePages(this.props,this.state))),(n>o||i>a)&&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={},a=0,u=t;a<u.length;a++)(c=u[a]).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,a=t.getPageHeight;i=this._getRenderCount(t);for(var u=(0,o.Cl)({},uh),s=[],l=1,c=0,f=null,h=this._focusedIndex,d=r+i,v=this._shouldVirtualize(t),p=0===this._estimatedPageHeight&&!a,g=this._allowedRect,m=function(i){var o=b._getPageSpecification(t,i,g),a=o.height,m=o.data,x=o.key;l=o.itemCount;var w,C,M=c+a-1,k=y(n.pages,(function(t){return!!t.items&&t.startIndex===i}))>-1,A=!g||M>=g.top&&c<=g.bottom,S=!b._requiredRect||M>=b._requiredRect.top&&c<=b._requiredRect.bottom;if(!p&&(S||A&&k)||!v||h>=i&&h<i+l||i===r){f&&(s.push(f),f=null);var V=Math.min(l,d-i),L=b._createPage(x,e.slice(i,i+V),i,void 0,void 0,m);L.top=c,L.height=a,b._visibleRect&&b._visibleRect.bottom&&(L.isVisible=M>=b._visibleRect.top&&c<=b._visibleRect.bottom),s.push(L),S&&b._allowedRect&&(w=u,C={top:c,bottom:M,height:a,left:g.left,right:g.right,width:g.width},w.top=C.top<w.top||-1===w.top?C.top:w.top,w.left=C.left<w.left||-1===w.left?C.left:w.left,w.bottom=C.bottom>w.bottom||-1===w.bottom?C.bottom:w.bottom,w.right=C.right>w.right||-1===w.right?C.right:w.right,w.width=w.right-w.left+1,w.height=w.bottom-w.top+1)}else f||(f=b._createPage(ah+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=ah+"end",s.push(f)),this._materializedRect=u,(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,a=void 0===o?this._getItemCountForPage(n,i):o,u=r.height;return{itemCount:a,height:void 0===u?this._getPageHeight(n,i,a):u,data:r.data,key:r.key}}return{itemCount:a=this._getItemCountForPage(n,i),height:this._getPageHeight(n,i,a)}},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,a){void 0===i&&(i=-1),void 0===e&&(e=n?n.length:0),void 0===r&&(r={}),t=t||"page-"+i;var u=this._pageCache[t];return u&&u.page?u.page:{key:t,startIndex:i,itemCount:e,items:n,style:r,top:0,height:0,data:o,isSpacer:a||!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,a=n.pages;if(this._shouldVirtualize(t)){var u=this._surfaceRect||(0,o.Cl)({},uh),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=rh(this._scrollElement);this._surface.current&&(i||!a||!this._surfaceRect||!s||s!==this._scrollHeight||Math.abs(this._scrollTop-c)>.3333333333333333*this._estimatedPageHeight)&&(u=this._surfaceRect=lh(this._surface.current),this._scrollTop=c),!i&&s&&s===this._scrollHeight||this._measureVersion++,this._scrollHeight=s||0;var f=Math.max(0,-u.top),h=(0,l.z)(this._root.current),d={top:f,left:u.left,bottom:f+h.innerHeight,right:u.right,width:u.width,height:h.innerHeight};this._requiredRect=hh(d,this._requiredWindowsBehind,this._requiredWindowsAhead),this._allowedRect=hh(d,r,e),this._visibleRect=d}},n.defaultProps={startIndex:0,onRenderCell:function(t,n,i){return a.createElement(a.Fragment,null,t&&t.name||"")},onRenderCellConditional:void 0,renderedWindowsAhead:2,renderedWindowsBehind:2},n.contextType=Wt,n}(a.Component);function hh(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 dh,vh=function(t){var n=a.useRef(null);a.useEffect((function(){if(n.current){var i=ns(n.current),e=t.text.split(/\s+/),r=[],o=i.append("tspan"),a=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&&(a++,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",-a*t.lineHeight),function(){i.selectAll("tspan").remove()}}})),t.lineHeight;var i=(0,o.Tt)(t,["lineHeight"]);return a.createElement("text",(0,o.Cl)({ref:n},js(i)))},ph=function(t){var n,i,e,r=a.useRef(null),o=a.useState(!1),u=o[0],s=o[1],l=null;if(u){var c=t.labelDef.aggregatedIdx.map((function(n){return t.lineDefs[n].onRenderCard})).filter((function(t){return!!t}));c.length>0&&(l=a.createElement(zn,{target:r.current,onDismiss:function(){return s(!1)},setInitialFocus:!0,role:"dialog"},a.createElement(Dl,{isCircularNavigation:!0,direction:Ks.vertical},a.createElement(fh,{items:c,role:"alert","aria-roledescription":" ",onRenderCell:function(t){return a.createElement("div",{"data-is-focusable":!0},t&&t())}}))))}var f=t.textColor?Ff(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),a.createElement(a.Fragment,null,a.createElement("g",{ref:r,onClick:function(){return s(!0)},"data-is-focusable":!0,style:{cursor:"pointer"},role:"button"},a.createElement(vh,{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)},gh=function(t){var n,i,e=t.labelWidth?t.labelWidth:105,r=t.chartYTop-20,u=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?Ff(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 a=o[r],u=n(a);-1===i.indexOf(u)&&(e.push(a),i.push(u))}return e}(l,(function(t){return t.date.toString()})).map((function(n,i){return a.createElement("line",{key:i,x1:n.x,x2:n.x,y1:u,y2:t.chartYBottom,stroke:c,strokeDasharray:"8"})})),h=function(t,n,i,e){var r=function(e,r){if(r===t.length)return[];var a=t[r].x,u=a-n;return a<e?[]:r===t.length-1?e<u?[{x:a,anchor:"end",aggregatedIdx:[r]}]:a+n<i?[{x:a,anchor:"start",aggregatedIdx:[r]}]:[]:o(r,e<u?"end":"start")},o=function(e,o){var a="end"===o?t[e].x:t[e].x+n,u=y(t,(function(t){return t.x>a&&(t.x-n>=a||t.x+n<i)}),e+1);-1===u&&(u=t.length);for(var s=[],l=e;l<u;l++)s.push(l);var c=r(a,u);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 a.createElement(ph,{key:i,theme:t.theme,lineDefs:l,labelDef:n,textY:r,textWidth:e,textLineHeight:18,textFontSize:"10pt",textColor:t.labelColor,mergedLabel:t.mergedLabel})}));return a.createElement(a.Fragment,null,f,h)},mh=(0,u.Z)();!function(t){t[t.hoverSize=11]="hoverSize",t[t.invisibleSize=1]="invisibleSize"}(dh||(dh={}));var yh=mi((function(t){return t.x})).left,bh=function(t){function n(n){var i,e,r,u,l,c=t.call(this,n)||this;return c._xAxisScale="",c._yScalePrimary="",c.eventLabelHeight=36,c._isRTL=(0,s.jI)(),c._xMin=Number.NEGATIVE_INFINITY,c._xMax=Number.POSITIVE_INFINITY,c._xPadding=0,c._yPaddingPrimary=0,c._yPaddingSecondary=0,c.toImage=function(t){var n,i;return Fc(null===(n=c._cartesianChartRef.current)||void 0===n?void 0:n.chartContainer,null===(i=c._legendsRef.current)||void 0===i?void 0:i.toSVG,c._isRTL,t)},c._getDomainNRangeValues=function(t,n,i,e,r,o,a,u,s){return"scatter"===c.props.lineMode&&o===Ku.NumericAxis?c._getDomainNRangeValuesWithPadding(t,n,i,r):o===Ku.NumericAxis?ks(t,n,i,r):o===Ku.DateAxis?Ls(t,n,i,r,u,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,a;return a=void 0===t.color?Bf(n,0,null===(i=c.props.theme)||void 0===i?void 0:i.isInverted):Ff(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:a})})):[]},c._getCustomizedCallout=function(){return c.props.onRenderCalloutPerStack?c.props.onRenderCalloutPerStack(c.state.stackCalloutProps):c.props.onRenderCalloutPerDataPoint?c.props.onRenderCalloutPerDataPoint(c.state.dataPointCalloutProps):null},c._getNumericMinMaxOfY=function(t,n,i){var e=Ds(t,0,i),r=e.startValue,o=e.endValue,a=0;return"scatter"===c.props.lineMode&&(a=.1*(o-r),i?c._yPaddingSecondary=a:c._yPaddingPrimary=a),{startValue:r-a,endValue:o+a}},c._getMargins=function(t){c.margins=t},c._initializeLineChartData=function(t,n,i,e,r,o,a){c._xAxisScale=t,c._yScalePrimary=n,c._yScaleSecondary=a,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,a=e.strokeWidth,u=void 0===a?4:a,s=c.state.activePoint;return o?s===t?dh.hoverSize:1===n||i?2.5*u:dh.invisibleSize:s===t?dh.hoverSize:dh.invisibleSize},c._getPath=function(t,n,i,e,r,o){var a=c.props.allowMultipleShapesForPoints,u=void 0!==a&&a,s=c._getBoxWidthOfShape(i,e,r),l=u?o%Object.keys(Fs).length:0,f=Fs[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,a=o.theme;return o.allowMultipleShapesForPoints,r===n?a.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=Ds(c._points),r=0;r<c._colorFillBars.length;r++){var o=c._colorFillBars[r],u=g("string"==typeof o.legend?o.legend.replace(/\W/g,""):""),s=Ff(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(a.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._yScalePrimary(e.endValue)-3,width:Math.abs(c._xAxisScale(h)-c._xAxisScale(f)),height:c._yScalePrimary(c.props.yMinValue||0)-c._yScalePrimary(e.endValue)+3,key:"".concat(u).concat(l)}))}}return i},c._getStripePattern=function(t,n){return a.createElement("pattern",{id:"".concat(c._colorFillBarPatternId,"_").concat(n),width:16,height:16,key:"".concat(c._colorFillBarPatternId,"_").concat(n),patternUnits:"userSpaceOnUse"},a.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,e){e.persist();var r=c.props.data.lineChartData,o=c._xAxisScale.invert(zf(e)[0],document.getElementById(c._rectId)),a=yh(r[t].data,o),u=r[t].data[a-1],s=r[t].data[a],l=null,f=null;if(void 0===u&&void 0!==s)l=s.x,f=a;else if(void 0!==u&&void 0===s)l=u.x,f=a-1;else{var h=void 0,d=void 0,v=void 0;switch(Bs(r[t].data[0].x,!0)){case Ku.DateAxis:h=new Date(o).getTime(),d=u.x.getTime(),v=s.x.getTime(),l=Math.abs(h-d)>Math.abs(h-v)?s.x:u.x,f=Math.abs(h-d)>Math.abs(h-v)?a:a-1;break;case Ku.NumericAxis:h=o,d=u.x,v=s.x,l=Math.abs(h-d)>Math.abs(h-v)?s.x:u.x,f=Math.abs(h-d)>Math.abs(h-v)?a:a-1}}var p=r[t].data[f],g=p.xAxisCalloutData,m=p.xAxisCalloutAccessibilityData,y=l instanceof Date?zs(l,c.props.useUTC):l,x=l instanceof Date?l.getTime():l,w=b(c._calloutPoints,(function(t){return t.x===x})),C=r[t].data[f],M=null===c.state.nearestCircleToHighlight||null!==c.state.nearestCircleToHighlight&&null!==C&&(c.state.nearestCircleToHighlight.x!==C.x||c.state.nearestCircleToHighlight.y!==C.y);w&&M&&(c._uniqueCallOutID="#".concat(c._staticHighlightCircle,"_").concat(t),ns("#".concat(c._staticHighlightCircle,"_").concat(t)).attr("cx","".concat(c._xAxisScale(C.x))).attr("cy","".concat(i(C.y))).attr("visibility","visibility"),ns("#".concat(c._verticalLine)).attr("transform",(function(){return"translate(".concat(c._xAxisScale(C.x),", ").concat(i(C.y),")")})).attr("visibility","visibility").attr("y2","".concat(n-i(C.y))),c.setState({nearestCircleToHighlight:C,isCalloutVisible:!0,refSelected:"#".concat(c._staticHighlightCircle,"_").concat(t),stackCalloutProps:w,YValueHover:w.values,dataPointCalloutProps:w,hoverXValue:g||y,xAxisCalloutAccessibilityData:m,activePoint:"",activeLine:t})),w||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?zs(n,c.props.useUTC):n,a=n instanceof Date?n.getTime():n,u=b(c._calloutPoints,(function(t){return t.x===a}));if(u){var s=c;ns("#".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:u.values,stackCalloutProps:u,dataPointCalloutProps:u,activePoint:e,xAxisCalloutAccessibilityData:r})}))}else c.setState({activePoint:e})},c._handleHover=function(t,n,i,e,r,o,a,u){u.persist();var s=t instanceof Date?zs(t,c.props.useUTC):t,l=t instanceof Date?t.getTime():t,f=c,h=b(c._calloutPoints,(function(t){return t.x===l}));h?(ns("#".concat(c._verticalLine)).attr("transform",(function(){return"translate(".concat(f._xAxisScale(t),", ").concat(a(n),")")})).attr("visibility","visibility").attr("y2","".concat(i-a(n))),c._uniqueCallOutID!==r&&(c._uniqueCallOutID=r,c.setState({isCalloutVisible:!0,refSelected:"#".concat(r),hoverXValue:e||""+s,YValueHover:h.values,stackCalloutProps:h,dataPointCalloutProps:h,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(){ns("#".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?zs(r.x,c.props.useUTC):r.x,a=r.xAxisCalloutData||o,u=e.legend,s=r.yAxisCalloutData||r.y;return(null===(i=r.callOutAccessibilityData)||void 0===i?void 0:i.ariaLabel)||"".concat(a,". ").concat(u,", ").concat(s,".")},c._getDomainNRangeValuesWithPadding=function(t,n,i,e){c._xMin=di(t,(function(t){return di(t.data,(function(t){return t.x}))})),c._xMax=vi(t,(function(t){return vi(t.data,(function(t){return t.x}))})),"scatter"===c.props.lineMode&&(c._xPadding=.1*(c._xMax-c._xMin));var r=n.left,o=i-n.right;return e?{dStartValue:c._xMax+c._xPadding,dEndValue:c._xMin-c._xPadding,rStartValue:r,rEndValue:o}:{dStartValue:c._xMin-c._xPadding,dEndValue:c._xMax+c._xPadding,rStartValue:r,rEndValue:o}},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. ")},sl(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===(u=null===(r=c.props.legendProps)||void 0===r?void 0:r.selectedLegends)||void 0===u?void 0:u.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=bs(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=a.createRef(),c._legendsRef=a.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,a,u,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)&&$s(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!==(a=null===(o=this.props.legendProps)||void 0===o?void 0:o.selectedLegend)&&void 0!==a?a:"",selectedLegendPoints:this._injectIndexPropertyInLineChartData(this.props.data.lineChartData,!0),isSelectedLegend:(null!==(l=null===(s=null===(u=this.props.legendProps)||void 0===u?void 0:u.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=bs(this._points)||[])},n.prototype.render=function(){var t=this,n=this.props,i=n.tickValues,e=n.tickFormat,r=n.eventAnnotationProps,u=n.legendProps,s=n.data;this._points=this._injectIndexPropertyInLineChartData(s.lineChartData);var l=Ms(this._points),c=this._points;u&&u.canSelectMultipleLegends&&(c=this.state.selectedLegendPoints.length>=1?this.state.selectedLegendPoints:this._points,this._calloutPoints=bs(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()?a.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):a.createElement(nh,(0,o.Cl)({},this.props,{chartTitle:this._getChartTitle(),points:c,chartType:Zu.LineChart,isCalloutForStack:!0,calloutProps:h,tickParams:d,legendBars:f,createYAxis:gs,getmargins:this._getMargins,getMinMaxOfYAxis:this._getNumericMinMaxOfY,getGraphData:this._initializeLineChartData,xAxisType:l?Ku.DateAxis:Ku.NumericAxis,customizedCallout:this._getCustomizedCallout(),getDomainNRangeValues:this._getDomainNRangeValues,createStringYAxis:ys,onChartMouseLeave:this._handleChartMouseLeave,enableFirstRenderOptimization:this.props.enablePerfOptimization&&this._firstRenderOptimization,ref:this._cartesianChartRef,children:function(n){return t._xAxisScale=n.xScale,t._yScalePrimary=n.yScalePrimary,t._yScaleSecondary=n.yScaleSecondary,a.createElement(a.Fragment,null,a.createElement("g",null,a.createElement("line",{x1:0,y1:0,x2:0,y2:n.containerHeight,stroke:"#323130",id:t._verticalLine,visibility:"hidden",strokeDasharray:"5,5"}),t.props.optimizeLargeData?a.createElement("rect",{id:t._rectId,width:n.containerWidth,height:n.containerHeight,fill:"transparent"}):a.createElement(a.Fragment,null),a.createElement("g",null,t._renderedColorFillBars,t.lines),r&&a.createElement(gh,(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,u=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}),u&&{shape:Os[t.index%Object.keys(Fs).length]})})),c=this.props.colorFillBars?this.props.colorFillBars.map((function(t,i){var e,r=t.legend,o=Ff(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 a.createElement(jc,(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,{ref:this._legendsRef}))},n.prototype._getRangeForScatterMarkerSize=function(t,n){var i=this._isRTL?this._xAxisScale(this._xMax-this._xPadding)-this._xAxisScale(this._xMax):this._xAxisScale(this._xMin+this._xPadding)-this._xAxisScale(this._xMin),e=t.domain()[0],r=t(e)-t(e+n);return Math.min(i,r)},n.prototype._createLines=function(t,n){var i,e,r,u,s,l,c,f,h,d,v,p,g,m,y,b,x,w,C,M,k,A,S,V,L,D,N,T=this,O=[];this.state.isSelectedLegend?this._points=this.state.selectedLegendPoints:this._points=this._injectIndexPropertyInLineChartData(this.props.data.lineChartData);for(var E=vi(this._points,(function(t){return vi(t.data,(function(t){return t.markerSize}))})),B=function(t){var B=[],P=[],_=[],H=F._points[t].legend,I=F._points[t].color,W=F.state.activePoint,R=F.props.theme,z=n-F.margins.bottom+6,j=F._points[t].useSecondaryYScale&&F._yScaleSecondary?F._yScaleSecondary:F._yScalePrimary,$=F._points[t].useSecondaryYScale&&F._yScaleSecondary?F._yPaddingSecondary:F._yPaddingPrimary,Y="scatter"===F.props.lineMode?F._getRangeForScatterMarkerSize(j,$):0;if(1===F._points[t].data.length){var X=F._points[t].data[0],G=X.x,q=X.y,U=X.xAxisCalloutData,Z=X.xAxisCalloutAccessibilityData,K="".concat(F._circleId,"_").concat(t),J=F._legendHighlighted(H)||F._noLegendHighlighted()||F.state.isSelectedLegend,Q=F._points[t].data[0].markerSize;_.push(a.createElement("circle",(0,o.Cl)({id:K,key:K,r:Q?Q*Y/E:W===K?5.5:3.5,cx:F._xAxisScale(G),cy:j(q),fill:W===K?R.semanticColors.bodyBackground:I,opacity:J?1:.1,onMouseOver:F._handleHover.bind(F,G,q,z,U,K,Z,j),onMouseMove:F._handleHover.bind(F,G,q,z,U,K,Z,j),onMouseOut:F._handleMouseOut,strokeWidth:W===K?4:0,stroke:W===K?I:"",role:"img","aria-label":F._getAriaLabel(t,0),"data-is-focusable":J,ref:function(t){T._refCallback(t,K)},onFocus:function(){return T._handleFocus(K,G,U,K,Z)},onBlur:F._handleMouseOut},F._getClickHandler(F._points[t].data[0].onDataPointClick))))}var tt=0,nt=null!==(e=null===(i=F._points[t].gaps)||void 0===i?void 0:i.sort((function(t,n){return t.startIndex-n.startIndex})))&&void 0!==e?e:[],it=null===(r=F._points[t].lineOptions)||void 0===r?void 0:r.curve;if((F.props.optimizeLargeData||it)&&F._points[t].data.length>1){for(var et=Yf().x((function(t){return T._xAxisScale(t[0])})).y((function(t){return j(t[1])})).curve(Zs(it)),rt="".concat(F._lineId,"_").concat(t),ot="".concat(F._borderId,"_").concat(t),at=(null===(u=F._points[t].lineOptions)||void 0===u?void 0:u.strokeWidth)||F.props.strokeWidth||4,ut=(J=F._legendHighlighted(H)||F._noLegendHighlighted()||F.state.isSelectedLegend,[]),st=0;st<F._points[t].data.length;st++)ut.push([F._points[t].data[st].x instanceof Date?F._points[t].data[st].x.getTime():F._points[t].data[st].x,F._points[t].data[st].y]);if(J){var lt=(null===(s=F._points[t].lineOptions)||void 0===s?void 0:s.lineBorderWidth)?Number.parseFloat(F._points[t].lineOptions.lineBorderWidth.toString()):0;lt>0&&P.push(a.createElement("path",{id:ot,key:ot,d:et(ut),fill:"transparent",strokeLinecap:null!==(c=null===(l=F._points[t].lineOptions)||void 0===l?void 0:l.strokeLinecap)&&void 0!==c?c:"round",strokeWidth:Number.parseFloat(at.toString())+lt,stroke:(null===(f=F._points[t].lineOptions)||void 0===f?void 0:f.lineBorderColor)||R.semanticColors.bodyBackground,opacity:1})),B.push(a.createElement("path",(0,o.Cl)({id:rt,key:rt,d:et(ut),fill:"transparent","data-is-focusable":!0,stroke:I,strokeWidth:at,strokeLinecap:null!==(d=null===(h=F._points[t].lineOptions)||void 0===h?void 0:h.strokeLinecap)&&void 0!==d?d:"round",strokeDasharray:null===(v=F._points[t].lineOptions)||void 0===v?void 0:v.strokeDasharray,onMouseMove:F._onMouseOverLargeDataset.bind(F,t,z,j),onMouseOver:F._onMouseOverLargeDataset.bind(F,t,z,j),onMouseOut:F._handleMouseOut},F._getClickHandler(F._points[t].onLineClick),{opacity:1})))}else B.push(a.createElement("path",{id:rt,key:rt,d:et(ut),fill:"transparent","data-is-focusable":!1,stroke:I,strokeWidth:at,strokeLinecap:null!==(g=null===(p=F._points[t].lineOptions)||void 0===p?void 0:p.strokeLinecap)&&void 0!==g?g:"round",strokeDasharray:null===(m=F._points[t].lineOptions)||void 0===m?void 0:m.strokeDasharray,opacity:.1}));var ct=null!==F.state.activeLine&&F.state.activeLine===t;_.push(a.createElement("circle",{id:"".concat(F._staticHighlightCircle,"_").concat(t),key:"".concat(F._staticHighlightCircle,"_").concat(t),r:5.5,cx:0,cy:0,fill:R.semanticColors.bodyBackground,strokeWidth:4,stroke:I,visibility:ct?"visibility":"hidden",onMouseMove:F._onMouseOverLargeDataset.bind(F,t,z,j),onMouseOver:F._onMouseOverLargeDataset.bind(F,t,z,j),onMouseOut:F._handleMouseOut}))}else if(!F.props.optimizeLargeData)for(var ft=function(n){var i=F._checkInGap(n,nt,tt),e=i.isInGap;tt=i.gapIndex;var r="".concat(F._lineId,"_").concat(t,"_").concat(n),u="".concat(F._borderId,"_").concat(t,"_").concat(n),s="".concat(F._circleId,"_").concat(t,"_").concat(n),l=F._points[t].data[n-1],c=l.x,f=l.y,h=l.xAxisCalloutData,d=l.xAxisCalloutAccessibilityData,v=F._points[t].data[n],p=v.x,g=v.y,m=F._getPath(F._xAxisScale(c),j(f),s,n,!1,F._points[t].index),O=(null===(y=F._points[t].lineOptions)||void 0===y?void 0:y.strokeWidth)||F.props.strokeWidth||4,$=F._legendHighlighted(H)||F._noLegendHighlighted()||F.state.isSelectedLegend,X=F._points[t].hideNonActiveDots&&W!==s,G=F._points[t].data[n-1].markerSize;if(_.push("scatter"===F.props.lineMode?a.createElement("circle",(0,o.Cl)({id:s,key:s,r:G?G*Y/E:4,cx:F._xAxisScale(c),cy:j(f),"data-is-focusable":$,onMouseOver:F._handleHover.bind(F,c,f,z,h,s,d,j),onMouseMove:F._handleHover.bind(F,c,f,z,h,s,d,j),onMouseOut:F._handleMouseOut,onFocus:function(){return T._handleFocus(r,c,h,s,d)},onBlur:F._handleMouseOut},F._getClickHandler(F._points[t].data[n-1].onDataPointClick),{opacity:$&&!X?1:.01,fill:F._getPointFill(I,s,n,!1),stroke:I,strokeWidth:O,role:"img","aria-label":F._getAriaLabel(t,n-1)})):a.createElement("path",(0,o.Cl)({id:s,key:s,d:m,"data-is-focusable":$,onMouseOver:F._handleHover.bind(F,c,f,z,h,s,d,j),onMouseMove:F._handleHover.bind(F,c,f,z,h,s,d,j),onMouseOut:F._handleMouseOut,onFocus:function(){return T._handleFocus(r,c,h,s,d)},onBlur:F._handleMouseOut},F._getClickHandler(F._points[t].data[n-1].onDataPointClick),{opacity:$&&!X?1:.01,fill:F._getPointFill(I,s,n,!1),stroke:I,strokeWidth:O,role:"img","aria-label":F._getAriaLabel(t,n-1)}))),n+1===F._points[t].data.length){var q="".concat(s).concat(n,"L"),U="".concat(s).concat(n,"D"),Z=F._points[t].hideNonActiveDots&&W!==q;m=F._getPath(F._xAxisScale(p),j(g),q,n,!0,F._points[t].index);var K=F._points[t].data[n],J=K.xAxisCalloutData,Q=K.xAxisCalloutAccessibilityData;G=F._points[t].data[n].markerSize,_.push(a.createElement(a.Fragment,{key:"".concat(q,"_container")},"scatter"===F.props.lineMode?a.createElement("circle",(0,o.Cl)({id:q,key:q,r:G?G*Y/E:4,cx:F._xAxisScale(p),cy:j(g),"data-is-focusable":$,onMouseOver:F._handleHover.bind(F,p,g,z,J,q,Q,j),onMouseMove:F._handleHover.bind(F,p,g,z,J,q,Q,j),onMouseOut:F._handleMouseOut,onFocus:function(){return T._handleFocus(r,p,J,q,Q)},onBlur:F._handleMouseOut},F._getClickHandler(F._points[t].data[n].onDataPointClick),{opacity:$&&!Z?1:.01,fill:F._getPointFill(I,q,n,!0),stroke:I,strokeWidth:O,role:"img","aria-label":F._getAriaLabel(t,n)})):a.createElement("path",(0,o.Cl)({id:q,key:q,d:m,"data-is-focusable":$,onMouseOver:F._handleHover.bind(F,p,g,z,J,q,Q,j),onMouseMove:F._handleHover.bind(F,p,g,z,J,q,Q,j),onMouseOut:F._handleMouseOut,onFocus:function(){return T._handleFocus(r,p,J,q,Q)},onBlur:F._handleMouseOut},F._getClickHandler(F._points[t].data[n].onDataPointClick),{opacity:$&&!Z?1:.01,fill:F._getPointFill(I,q,n,!0),stroke:I,strokeWidth:O,role:"img","aria-label":F._getAriaLabel(t,n)})),a.createElement("circle",{id:U,key:U,r:8,cx:F._xAxisScale(p),cy:j(g),opacity:0,width:0,onMouseOver:F._handleHover.bind(F,p,g,z,J,q,Q,j),onMouseMove:F._handleHover.bind(F,p,g,z,J,q,Q,j),onMouseOut:F._handleMouseOut,strokeWidth:0,focusable:!1,onBlur:F._handleMouseOut})))}if("scatter"!==F.props.lineMode)if($){if(!e){var it=(null===(b=F._points[t].lineOptions)||void 0===b?void 0:b.lineBorderWidth)?Number.parseFloat(F._points[t].lineOptions.lineBorderWidth.toString()):0;it>0&&P.push(a.createElement("line",{id:u,key:u,x1:F._xAxisScale(c),y1:j(f),x2:F._xAxisScale(p),y2:j(g),strokeLinecap:null!==(w=null===(x=F._points[t].lineOptions)||void 0===x?void 0:x.strokeLinecap)&&void 0!==w?w:"round",strokeWidth:Number.parseFloat(O.toString())+it,stroke:(null===(C=F._points[t].lineOptions)||void 0===C?void 0:C.lineBorderColor)||R.semanticColors.bodyBackground,opacity:1})),B.push(a.createElement("line",(0,o.Cl)({id:r,key:r,x1:F._xAxisScale(c),y1:j(f),x2:F._xAxisScale(p),y2:j(g),strokeWidth:O,ref:function(t){T._refCallback(t,r)},onMouseOver:F._handleHover.bind(F,c,f,z,h,s,d,j),onMouseMove:F._handleHover.bind(F,c,f,z,h,s,d,j),onMouseOut:F._handleMouseOut,stroke:I,strokeLinecap:null!==(k=null===(M=F._points[t].lineOptions)||void 0===M?void 0:M.strokeLinecap)&&void 0!==k?k:"round",strokeDasharray:null===(A=F._points[t].lineOptions)||void 0===A?void 0:A.strokeDasharray,strokeDashoffset:null===(S=F._points[t].lineOptions)||void 0===S?void 0:S.strokeDashoffset,opacity:1},F._getClickHandler(F._points[t].onLineClick))))}}else e||B.push(a.createElement("line",{id:r,key:r,x1:F._xAxisScale(c),y1:j(f),x2:F._xAxisScale(p),y2:j(g),strokeWidth:O,stroke:I,strokeLinecap:null!==(L=null===(V=F._points[t].lineOptions)||void 0===V?void 0:V.strokeLinecap)&&void 0!==L?L:"round",strokeDasharray:null===(D=F._points[t].lineOptions)||void 0===D?void 0:D.strokeDasharray,strokeDashoffset:null===(N=F._points[t].lineOptions)||void 0===N?void 0:N.strokeDashoffset,opacity:.1}))},ht=1;ht<F._points[t].data.length;ht++)ft(ht);O.push(a.createElement("g",{key:"line_".concat(t),role:"region","aria-label":"".concat(H,", line ").concat(t+1," of ").concat(F._points.length," with ").concat(F._points[t].data.length," data points.")},P,B,_))},F=this,P=this._points.length-1;P>=0;P--)B(P);var _=mh(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 H=ns(t).call(this._xAxisScale);try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}var I={tooltipCls:_.tooltip,id:this._tooltipId,xAxis:H};H&&Cs(I)}return O},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}(a.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",color:t.theme.semanticColors.bodyText})}}));function wh(t,n){if((r=t.length)>1)for(var i,e,r,o=1,a=t[n[0]],u=a.length;o<r;++o)for(e=a,a=t[n[o]],i=0;i<u;++i)a[i][1]+=a[i][0]=isNaN(e[i][1])?e[i][0]:e[i][1]}function Ch(t){for(var n=t.length,i=new Array(n);--n>=0;)i[n]=n;return i}function Mh(t,n){return t[n]}function kh(t){const n=[];return n.key=t,n}function Ah(t){return t<0?-1:1}function Sh(t,n,i){var e=t._x1-t._x0,r=n-t._x1,o=(t._y1-t._y0)/(e||r<0&&-0),a=(i-t._y1)/(r||e<0&&-0),u=(o*r+a*e)/(e+r);return(Ah(o)+Ah(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(u))||0}function Vh(t,n){var i=t._x1-t._x0;return i?(3*(t._y1-t._y0)/i-n)/2:n}function Lh(t,n,i){var e=t._x0,r=t._y0,o=t._x1,a=t._y1,u=(o-e)/3;t._context.bezierCurveTo(e+u,r+u*n,o-u,a-u*i,o,a)}function Dh(t){this._context=t}function Nh(t){this._context=t}function Th(t){return new Dh(t)}function Oh(t,n,i){var e=null,r=Yc(!0),o=null,a=rs,u=null,s=vf(l);function l(l){var c,f,h,d,v,p=(l=$c(l)).length,g=!1,m=new Array(p),y=new Array(p);for(null==o&&(u=a(v=s())),c=0;c<=p;++c){if(!(c<p&&r(d=l[c],c,l))===g)if(g=!g)f=c,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),h=c-1;h>=f;--h)u.point(m[h],y[h]);u.lineEnd(),u.areaEnd()}g&&(m[c]=+t(d,c,l),y[c]=+n(d,c,l),u.point(e?+e(d,c,l):m[c],i?+i(d,c,l):y[c]))}if(v)return u=null,v+""||null}function c(){return Yf().defined(r).curve(a).context(o)}return t="function"==typeof t?t:void 0===t?jf:Yc(+t),n="function"==typeof n?n:Yc(void 0===n?0:+n),i="function"==typeof i?i:void 0===i?$f:Yc(+i),l.x=function(n){return arguments.length?(t="function"==typeof n?n:Yc(+n),e=null,l):t},l.x0=function(n){return arguments.length?(t="function"==typeof n?n:Yc(+n),l):t},l.x1=function(t){return arguments.length?(e=null==t?null:"function"==typeof t?t:Yc(+t),l):e},l.y=function(t){return arguments.length?(n="function"==typeof t?t:Yc(+t),i=null,l):n},l.y0=function(t){return arguments.length?(n="function"==typeof t?t:Yc(+t),l):n},l.y1=function(t){return arguments.length?(i=null==t?null:"function"==typeof t?t:Yc(+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:Yc(!!t),l):r},l.curve=function(t){return arguments.length?(a=t,null!=o&&(u=a(o)),l):a},l.context=function(t){return arguments.length?(null==t?o=u=null:u=a(o=t),l):o},l}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:Lh(this,this._t0,Vh(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,Lh(this,Vh(this,i=Sh(this,t,n)),i);break;default:Lh(this,this._t0,i=Sh(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 Nh(t)}.prototype=Object.create(Dh.prototype)).point=function(t,n){Dh.prototype.point.call(this,n,t)},Nh.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 Eh,Bh=(0,u.Z)(),Fh=mi((function(t){return t.x})).left;!function(t){t.show="visibility",t.hide="hidden"}(Eh||(Eh={}));var Ph=function(t){function n(n){var i,e=t.call(this,n)||this;return e._containsSecondaryYAxis=!1,e.toImage=function(t){var n,i;return Fc(null===(n=e._cartesianChartRef.current)||void 0===n?void 0:n.chartContainer,null===(i=e._legendsRef.current)||void 0===i?void 0:i.toSVG,(0,s.jI)(),t)},e._getDomainNRangeValues=function(t,n,i,e,r,o,a,u){return o===Ku.NumericAxis?ks(t,n,i,r):o===Ku.DateAxis?Ls(t,n,i,r,u,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._xAxisRectScale.invert(zf(t)[0],document.getElementById(e._rectId)),r=Fh(n[0].data,i),a=n[0].data[r-1],u=n[0].data[r],s=null,l=null,c=n[0].data.length>0?Bs(n[0].data[0].x,!0):null;if(void 0===a&&void 0!==u)s=u.x,l=r;else if(void 0!==a&&void 0===u)s=a.x,l=r-1;else{var f=void 0,h=void 0,d=void 0;switch(c){case Ku.DateAxis:f=new Date(i).getTime(),h=a.x.getTime(),d=u.x.getTime(),s=Math.abs(f-h)>Math.abs(f-d)?u.x:a.x,l=Math.abs(f-h)>Math.abs(f-d)?r:r-1;break;case Ku.NumericAxis:f=i,h=a.x,d=u.x,s=Math.abs(f-h)>Math.abs(f-d)?u.x:a.x,l=Math.abs(f-h)>Math.abs(f-d)?r:r-1}}var v=n[0].data[l],p=v.xAxisCalloutData,g=v.xAxisCalloutAccessibilityData,m=s instanceof Date?zs(s,e.props.useUTC):s,y=s instanceof Date?s.getTime():s,x=b(e._calloutPoints,(function(t){return t.x===y})),w=c===Ku.DateAxis?s.getTime():s,C=e.state.nearestCircleToHighlight!==w;if(x&&C&&!e.state.isShowCalloutPending){var M=e._getFilteredLegendValues(x.values);e.setState({nearestCircleToHighlight:w,isCalloutVisible:!1,isShowCalloutPending:!0,lineXValue:e._xAxisRectScale(s),displayOfLine:Eh.show,isCircleClicked:!1,stackCalloutProps:(0,o.Cl)((0,o.Cl)({},x),{values:M}),YValueHover:M,dataPointCalloutProps:(0,o.Cl)((0,o.Cl)({},x),{values:M}),hoverXValue:p||m,xAxisCalloutAccessibilityData:g,activePoint:""})}x||e.setState({isCalloutVisible:!1,nearestCircleToHighlight:w,displayOfLine:Eh.hide,isCircleClicked:!1})},e._onRectMouseOut=function(){},e._handleChartMouseLeave=function(){e.setState({refSelected:null,isCalloutVisible:!1,nearestCircleToHighlight:null,lineXValue:0,displayOfLine:Eh.hide,isCircleClicked:!1,stackCalloutProps:void 0,dataPointCalloutProps:void 0,hoverXValue:void 0,YValueHover:[]})},e._getDataPoints=function(t,n){var i,r=[],o=0;if(e._shouldFillToZeroY())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 a=function(){var t=Yc([]),n=Ch,i=wh,e=Mh;function r(r){var o,a,u=Array.from(t.apply(this,arguments),kh),s=u.length,l=-1;for(const t of r)for(o=0,++l;o<s;++o)(u[o][l]=[0,+e(t,u[o].key,l,r)]).data=t;for(o=0,a=$c(n(u));o<s;++o)u[a[o]].index=o;return i(u,a),u}return r.keys=function(n){return arguments.length?(t="function"==typeof n?n:Yc(Array.from(n)),r):t},r.value=function(t){return arguments.length?(e="function"==typeof t?t:Yc(+t),r):e},r.order=function(t){return arguments.length?(n=null==t?Ch:"function"==typeof t?t:Yc(Array.from(t)),r):n},r.offset=function(t){return arguments.length?(i=null==t?wh:t,r):i},r}().keys(t)(n);o=vi(a[a.length-1],(function(t){return t[1]})),a.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:e._containsSecondaryYAxis?Ds(e.props.data.lineChartData).endValue:o}},e._createDataSet=function(t){if(e.props.enablePerfOptimization&&e._enableComputationOptimization){var n=[],i=[],r=[],o=[],a=bs(t);t&&t.length&&t.forEach((function(t){r.push(t.color),o.push(t.opacity||1),n.push.apply(n,t.data)}));var u={};n.forEach((function(t){var n=t.x instanceof Date?t.x.toLocaleString():t.x;u[n]?u[n].push(t):u[n]=[t]})),Object.keys(u).forEach((function(t){var n=u[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:a}}var d=[],v=[],p=[],g=[];a=bs(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:a}},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,a,u){e._chart=e._drawGraph(i,t,n,u,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)}})),a.createElement(jc,(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),ref:e._legendsRef}))},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,u){var s,l=e._addDefaultColors(e.props.data.lineChartData),c=e.props.data,f=c.pointOptions,h=c.pointLineOptions,d=[];e._data.forEach((function(t,u){var s,c,f,h,v,p,g=l[u].useSecondaryYScale&&r?r:i,m=Zs(null===(s=l[u].lineOptions)||void 0===s?void 0:s.curve,Th),y=Oh().x((function(t){return n(t.xVal)})).y0((function(t){return g(t.values[0])})).y1((function(t){return g(t.values[1])})).curve(m),b=Yf().x((function(t){return n(t.xVal)})).y((function(t){return g(t.values[1])})).curve(m),x=e._shouldFillToZeroY()?.8:e._opacity[u];d.push(a.createElement(a.Fragment,{key:"".concat(u,"-graph-").concat(e._uniqueIdForGraph)},e.props.enableGradient&&a.createElement("defs",null,a.createElement("linearGradient",{id:"gradient_".concat(u),x1:"0%",x2:"0%",y1:"0%",y2:"100%"},a.createElement("stop",{offset:"0",stopColor:e._colors[u]}),a.createElement("stop",{offset:"100%",stopColor:"transparent"}))),a.createElement("path",{id:"".concat(u,"-line-").concat(e._uniqueIdForGraph),d:b(t),fill:"transparent",strokeWidth:null!==(f=null===(c=l[u].lineOptions)||void 0===c?void 0:c.strokeWidth)&&void 0!==f?f:3,stroke:e._colors[u],opacity:e._getLineOpacity(l[u].legend),onMouseMove:e._onRectMouseMove,onMouseOut:e._onRectMouseOut,onMouseOver:e._onRectMouseMove,strokeDasharray:null===(h=l[u].lineOptions)||void 0===h?void 0:h.strokeDasharray,strokeDashoffset:null===(v=l[u].lineOptions)||void 0===v?void 0:v.strokeDashoffset,strokeLinecap:null===(p=l[u].lineOptions)||void 0===p?void 0:p.strokeLinecap}),1===t.length?a.createElement("circle",{id:"".concat(u,"-graph-").concat(e._uniqueIdForGraph),cx:n(t[0].xVal),cy:g(t[0].values[1]),r:6,stroke:e._colors[u],strokeWidth:3,fill:e._colors[u],opacity:x,fillOpacity:e._getOpacity(l[u].legend),onMouseMove:e._onRectMouseMove,onMouseOut:e._onRectMouseOut,onMouseOver:e._onRectMouseMove}):a.createElement("path",(0,o.Cl)({id:"".concat(u,"-graph-").concat(e._uniqueIdForGraph),d:y(t),fill:e.props.enableGradient?"url(#gradient_".concat(u,")"):e._colors[u],opacity:x,fillOpacity:e._getOpacity(l[u].legend),onMouseMove:e._onRectMouseMove,onMouseOut:e._onRectMouseOut,onMouseOver:e._onRectMouseMove},e.props.optimizeLargeData&&{"data-is-focusable":e._legendHighlighted(l[u].legend)||e._noLegendHighlighted(),role:"img","aria-label":"".concat(l[u].legend,", series ").concat(u+1," of ").concat(l.length," with ").concat(l[u].data.length," data points.")}))))}));var v=f&&f.r?Number(f.r):8;e._data.forEach((function(t,u){if(l.length!==u){var c=l[u].useSecondaryYScale&&r?r:i;e.props.optimizeLargeData&&1!==t.length?t.forEach((function(t,i){var r=t.xVal instanceof Date?t.xVal.getTime():t.xVal;if(e.state.nearestCircleToHighlight===r){var h="".concat(e._circleId,"_").concat(u*e._data[0].length+i);s=l[u].color;var p=l[u].legend;d.push(a.createElement("circle",(0,o.Cl)({key:h,id:h,cx:n(t.xVal),cy:c(t.values[1]),stroke:s,strokeWidth:3,fill:e._updateCircleFillColor(r,s,h),onMouseOut:e._onRectMouseOut,onMouseOver:e._onRectMouseMove,onClick:e._onDataPointClick.bind(e,l[u].data[i].onDataPointClick)},js(f),{r:e._getCircleRadius(r,v,h,p)})))}})):d.push(a.createElement("g",{key:"".concat(u,"-dots-").concat(e._uniqueIdForGraph),clipPath:"url(#clip)",role:"region","aria-label":"".concat(l[u].legend,", series ").concat(u+1," of ").concat(l.length," with ").concat(l[u].data.length," data points.")},t.map((function(t,i){var r="".concat(e._circleId,"_").concat(u*e._data[0].length+i),h=t.xVal instanceof Date?t.xVal.getTime():t.xVal;s=l[u].color;var d=l[u].legend;return a.createElement("circle",(0,o.Cl)({key:r,id:r,"data-is-focusable":e._legendHighlighted(l[u].legend)||e._noLegendHighlighted(),cx:n(t.xVal),cy:c(t.values[1]),stroke:s,strokeWidth:3,fill:e._updateCircleFillColor(h,s,r),onMouseOut:e._onRectMouseOut,onMouseOver:e._onRectMouseMove,onClick:e._onDataPointClick.bind(e,l[u].data[i].onDataPointClick),onFocus:function(){return e._handleFocus(u,i,r)},onBlur:e._handleBlur},js(f),{r:e._getCircleRadius(h,v,r,d),role:"img","aria-label":e._getAriaLabel(u,i)}))}))))}})),d.push(a.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:s,opacity:.5,visibility:e.state.displayOfLine},js(h))));var p=Bh(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 g=ns(u).call(n);try{document.getElementById(e._tooltipId)&&document.getElementById(e._tooltipId).remove()}catch(t){}var m={tooltipCls:p.tooltip,id:e._tooltipId,xAxis:g};g&&Cs(m)}return d},e._getCircleRadius=function(t,n,i,r){var o=e.state,a=o.isCircleClicked,u=o.nearestCircleToHighlight,s=o.activePoint;return e._noLegendHighlighted()||e._legendHighlighted(r)?a&&u===t?1:u===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,a;return a=void 0===t.color?Bf(n,0,null===(i=e.props.theme)||void 0===i?void 0:i.isInverted):Ff(t.color,null===(r=e.props.theme)||void 0===r?void 0:r.isInverted),(0,o.Cl)((0,o.Cl)({},t),{color:a})})):[]},e._handleFocus=function(t,n,i){var r=e.props.data.lineChartData[t].data[n],a=r.x,u=r.y,s=r.xAxisCalloutData,l=a instanceof Date?zs(a,e.props.useUTC):a,c=a instanceof Date?a.getTime():a,f=e._calloutPoints.find((function(t){return t.x===c}));f.values=f.values.filter((function(t){return t.y===u}));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){return e._noLegendHighlighted()?t: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. ")},sl(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:Eh.hide,isCircleClicked:!1,nearestCircleToHighlight:null,isShowCalloutPending:!1,activePoint:""},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=a.createRef(),e._legendsRef=a.createRef(),e}return(0,o.C6)(n,t),n.prototype.componentDidUpdate=function(t){var n,i,e;$s(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);this._containsSecondaryYAxis=!!this.props.secondaryYScaleOptions&&i.some((function(t){return t.useSecondaryYScale}));var e=this._createSet(i),r=e.colors,u=e.opacity,s=e.data,l=e.calloutPoints;this._calloutPoints=l;var c=Ms(i);this._colors=r,this._opacity=u,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 a.createElement(nh,(0,o.Cl)({},this.props,{chartTitle:this._getChartTitle(),points:i,chartType:Zu.AreaChart,calloutProps:d,legendBars:f,createYAxis:gs,isCalloutForStack:!0,xAxisType:c?Ku.DateAxis:Ku.NumericAxis,tickParams:h,maxOfYVal:s.maxOfYVal,getGraphData:this._getGraphData,getDomainNRangeValues:this._getDomainNRangeValues,createStringYAxis:ys,getmargins:this._getMargins,getMinMaxOfYAxis:Ds,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 a.createElement(a.Fragment,null,a.createElement("g",null,a.createElement("rect",{id:t._rectId,width:e,height:r,fill:"transparent",onMouseMove:t._onRectMouseMove,onMouseOut:t._onRectMouseOut,onMouseOver:t._onRectMouseMove})),a.createElement("g",null,t._chart))}}))}return a.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?zs(r.x,this.props.useUTC):r.x,a=r.xAxisCalloutData||o,u=e.legend,s=r.yAxisCalloutData||r.y;return(null===(i=r.callOutAccessibilityData)||void 0===i?void 0:i.ariaLabel)||"".concat(a,". ").concat(u,", ").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.prototype._shouldFillToZeroY=function(){return"tozeroy"===this.props.mode||this._containsSecondaryYAxis},n.defaultProps={useUTC:!0},n}(a.Component),_h=(0,r.I)(Ph,(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",color:t.theme.semanticColors.bodyText})}})),Hh=function(t,n){var i,e=t.color;return{arcRoot:{fill:e},arcRootFocussed:{fill:e,stroke:(null==n?void 0:n.palette.black)||Yt.bp.black,strokeWidth:2},arc:{outline:"none"},arcText:{fill:(null==n?void 0:n.semanticColors.bodyText)||Yt.bp.black,outline:"none",selectors:(i={},i[Yt.NK]={fill:"CanvasText"},i)}}},Ih=function(t){function n(n){var i=t.call(this,n)||this;return i.updateChart=function(t){Rh(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 Rh(t),null},n.prototype.render=function(){var t,n=this,i=this.props.arc,e=(0,u.Z)()((function(t){return Hh(t,n.props.theme)}),(0,o.Cl)({},this.props));return a.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:wf()},n}(a.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=wf().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,u.Z)()((function(t){return Hh(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 a.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),a.createElement(Uf,{content:v,textProps:{x:c+(d>Math.PI?-10:10),y:f+(d>Math.PI/2&&d<3*Math.PI/2?10:-10),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:xs}))},n}(Ih);function Rh(t){t.arc.innerRadius(t.innerRadius),t.arc.outerRadius(t.outerRadius)}var zh,jh=function(t){function n(n){var i=t.call(this,n)||this;return i.arcGenerator=function(t,n){return a.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,u=n.chartTitle,s=n.theme,l=[];if(e&&!this.props.colors)for(var c=0;c<e.length;c++)l.push(Bf(c,0,null==s?void 0:s.isInverted));var f=this.props.colors,h=void 0===f?l:f;this.colors=Ra().range(h.map((function(t){return Ff(t)})));var d=i(e),v="translate(".concat(r/2,", ").concat(o/2,")");return a.createElement(Dl,{direction:Ks.domOrder},a.createElement("svg",{width:r,height:o,"aria-label":u},a.createElement("g",{className:"pie",transform:v},d.map((function(n,i){return t.arcGenerator(n,i)})))))},n.defaultProps={pie:uf().padAngle(.01).sort(null).value((function(t){return t.y}))},n}(a.Component),$h=(0,u.Z)(),Yh=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,u=this.props,s=u.theme,l=u.className,c=u.styles,f=u.culture;this._classNames=$h(c,{theme:s,width:i,height:e,className:l});var h=Math.min(i-80,e-32)/2;return this._isChartEmpty()?a.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):a.createElement("div",{className:this._classNames.root},this.props.chartTitle&&a.createElement("p",{className:this._classNames.chartTitle},this.props.chartTitle),a.createElement(jh,{culture:f,width:i+8,height:e+8,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}(a.Component),Xh=(0,r.I)(Yh,(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)((0,o.Cl)({textAlign:"center"},i.fonts.mediumPlus),{color:i.semanticColors.bodyText})]}}));!function(t){t.PartToWhole="part-to-whole",t.AbsoluteScale="absolute-scale"}(zh||(zh={}));var Gh,qh=(0,u.Z)(),Uh=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,a=t.barHeight;i._classNames=qh(r,{legendColor:i.state.color,theme:n,width:o,className:e,barHeight:a})},i._getLegendData=function(t,n,e){var r=[e.blueLight,e.blue,e.blueMid,e.red,e.black],u=[];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,a=t.color?t.color:r[Math.floor(4*Math.random()+1)];if(i.props.enableGradient&&(a=(null===(e=t.gradient)||void 0===e?void 0:e[0])||ol(n,0,null===(o=i.props.theme)||void 0===o?void 0:o.isInverted)[0]),!(u.filter((function(n){return n.title===t.legend&&n.color===a})).length>0)){var s={title:t.legend,color:a,action:function(){i._onClick(t.legend)},hoverAction:function(){i._handleChartMouseLeave(),i._onHover(t.legend)},onMouseOutAction:function(){i._onLeave()}};u.push(s)}})):o.forEach((function(t,n){var e,o,a=t.color?t.color:r[Math.floor(4*Math.random()+1)];if(i.props.enableGradient&&(a=(null===(e=t.gradient)||void 0===e?void 0:e[0])||ol(n,0,null===(o=i.props.theme)||void 0===o?void 0:o.isInverted)[0]),!(u.filter((function(n){return n.title===t.legend&&n.color===a})).length>0)){var s={title:t.legend,color:a,action:function(){i._onClick(t.legend)},hoverAction:function(){i._handleChartMouseLeave(),i._onHover(t.legend)},onMouseOutAction:function(){i._onLeave()}};u.push(s)}}))})),a.createElement(jc,(0,o.Cl)({legends:u,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=a.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 u=e.palette,s=this._getLegendData(i,this.props.hideRatio,u),l=this.state.isCalloutVisible;this._classNames=qh(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,u,t.props.hideRatio[i],t.props.hideDenominator[i],t.props.href,i);return a.createElement("div",{key:i,id:"_MSBC_bar-".concat(i)},e)}));return a.createElement("div",{className:this._classNames.root,onMouseLeave:this._handleChartMouseLeave},h,!this.props.hideLegend&&a.createElement("div",{className:this._classNames.legendContainer},s),a.createElement(zn,(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,Ps(this.state.callOutAccessibilityData,"text",!1)),a.createElement(a.Fragment,null,this.props.onRenderCalloutPerDataPoint?this.props.onRenderCalloutPerDataPoint(this.state.dataPointCalloutProps):a.createElement(Js.ChartHoverCard,{Legend:c,YValue:f,color:this.state.color,culture:r}))))}return a.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,u,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===zh.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===zh.AbsoluteScale){var w=0===b?0:(b-y)/b*100;w<1&&0!==w?w=1:w>99&&100!==w&&(w=99),x+=w}var C=0!==x?x/(100-d):1,M=0,k=0,A=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])||ol(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])||ol(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/C:k>99&&100!==k?k=99/C:k/=C,m.push(M);var y=f.props.styles,x=!(!f._legendHighlighted(t.legend)&&!f._noLegendHighlighted()),w=t.placeHolder?f.props.theme.semanticColors.bodyText:h;f._classNames=qh(y,{theme:f.props.theme,shouldHighlight:x,href:u,variant:f.props.variant,hideLabels:f.props.hideLabels});var A=g("MSBC_Gradient")+"_".concat(s,"_").concat(e);return a.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,w,t),onBlur:f._onBarLeave,role:"img","aria-label":f._getAriaLabel(t),onMouseOver:f._onBarHover.bind(f,v,w,t),onMouseMove:f._onBarHover.bind(f,v,w,t),onMouseLeave:f._onBarLeave,onClick:u?t.placeHolder?void 0:f._redirectToUrl.bind(f,u):t.onClick},f.props.enableGradient&&a.createElement("defs",null,a.createElement("linearGradient",{id:A},a.createElement("stop",{offset:"0",stopColor:h}),a.createElement("stop",{offset:"100%",stopColor:d}))),a.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(A,")"):h}))}));if(this.props.variant!==zh.AbsoluteScale||this.props.hideLabels)0===t.chartData.length&&A.push(a.createElement("g",{key:0,className:this._classNames.noData,onClick:this._redirectToUrl.bind(this,u)},a.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&&A.push(a.createElement("g",{key:"empty",className:this._classNames.noData,onClick:this._redirectToUrl.bind(this,u)},a.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 S=!1,V=0;this._noLegendHighlighted()?(S=!0,V=y):null===(c=t.chartData)||void 0===c||c.forEach((function(t){f._legendHighlighted(t.legend)&&(S=!0,V+=t.data?t.data:0)})),S&&A.push(a.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(V),role:"img"},Hs(V)))}var L=void 0!==e&&e,D=this.props.variant!==zh.AbsoluteScale&&!L&&2===t.chartData.length,N=this.props.variant!==zh.AbsoluteScale&&!L&&1===t.chartData.length,T=function(){return(0,jn.U)(t.chartData[0].data?t.chartData[0].data:0,v)};return a.createElement("div",{className:this._classNames.singleChartRoot},a.createElement(Dl,{direction:Ks.horizontal},a.createElement("div",{className:this._classNames.chartTitle},t.chartTitle&&a.createElement(Rl,{className:this._classNames.chartTitleLeft,content:t.chartTitle,accessibilityData:t.chartTitleAccessibilityData}),D&&a.createElement("div",(0,o.Cl)({},Ps(t.chartDataAccessibilityData,"text",!1)),a.createElement("span",{className:this._classNames.ratioNumerator},T()),!r&&a.createElement("span",{className:this._classNames.ratioDenominator}," / "+(0,jn.U)(y,v))),N&&a.createElement("div",(0,o.Cl)({className:this._classNames.ratioNumerator},Ps(t.chartDataAccessibilityData,"text",!1)),T()))),a.createElement(Dl,{direction:Ks.horizontal},a.createElement("div",{className:this._classNames.chartWrapper},a.createElement("svg",{ref:this.barChartSvgRef,className:this._classNames.chart,"aria-label":null==t?void 0:t.chartTitle},A))))},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?i.legend:i.placeHolder?"Remaining":"",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?i.legend:i.placeHolder?"Remaining":"",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}(a.Component),Zh=(0,r.I)(Uh,(function(t){var n=t.className,i=t.width,e=t.barHeight,r=t.shouldHighlight,a=t.theme,u=t.href,s=t.variant,l=t.hideLabels;return{root:[a.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)({},a.fonts.small),{display:"flex",justifyContent:"space-between"}),chartTitleLeft:{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",display:"block",color:a.palette.neutralPrimary,marginBottom:s===zh.AbsoluteScale?"4px":"5px"},singleChartRoot:{width:i||"100%",display:"flex",flexDirection:"column",marginBottom:s===zh.AbsoluteScale?"16px":"10px"},opacityChangeOnHover:{opacity:r?"":"0.1",cursor:u?"pointer":"default",selectors:{"&:focus":{stroke:a.palette.black,strokeWidth:"2px"}}},ratioNumerator:{fontSize:Yt.s.medium,fontWeight:Yt.BO.semibold,color:a.palette.neutralPrimary},ratioDenominator:{fontSize:Yt.s.medium,color:a.palette.neutralPrimary},placeHolderOnHover:{opacity:r?"":"0.1",cursor:"default",selectors:{"&:focus":{stroke:a.palette.black,strokeWidth:"2px"}}},legendContainer:{margin:"5px 0px 0px 4px"},noData:{cursor:u?"pointer":"default"},barLabel:{fontSize:Yt.s.small,fontWeight:Yt.BO.semibold,fill:a.palette.neutralPrimary},chartWrapper:{paddingRight:s!==zh.AbsoluteScale||l?0:40}}})),Kh=(0,u.Z)(),Jh=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,", "):t.placeHolder?"Remaining, ":"")+"".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=a.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,u=t.ignoreFixStyle,s=t.culture,l=this.props.theme.palette,c=u||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&&!u&&2===n.chartData.length,d=!1===r&&!u&&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&&(u||n.chartData.length>2);this._classNames=Kh(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 a.createElement("div",{className:this._classNames.root,onMouseLeave:this._handleChartMouseLeave},a.createElement(Dl,{direction:Ks.horizontal},a.createElement("div",{className:this._classNames.chartTitle},n.chartTitle&&a.createElement(Rl,{className:this._classNames.chartTitleLeft,content:n.chartTitle,accessibilityData:n.chartTitleAccessibilityData}),h&&a.createElement("div",(0,o.Cl)({},Ps(n.chartDataAccessibilityData,"text",!1)),a.createElement("span",{className:this._classNames.ratioNumerator},y()),!this.props.hideDenominator&&a.createElement("span",{className:this._classNames.ratioDenominator}," / "+(0,jn.U)(v,s))),d&&a.createElement("div",(0,o.Cl)({className:this._classNames.ratioNumerator},Ps(n.chartDataAccessibilityData,"text",!1)),y())),(i||e)&&a.createElement("div",{className:this._classNames.benchmarkContainer},i&&a.createElement("div",{className:this._classNames.benchmark,role:"text"}),e&&a.createElement("div",{className:this._classNames.target,role:"text"}))),a.createElement(Dl,{direction:Ks.horizontal},a.createElement("div",null,a.createElement("svg",{ref:this.barChartSvgRef,className:this._classNames.chart,"aria-label":null==n?void 0:n.chartTitle},a.createElement("g",null,f[0]),a.createElement(zn,(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,Ps(this.state.callOutAccessibilityData,"text",!1)),a.createElement(a.Fragment,null,this.props.onRenderCalloutPerDataPoint?this.props.onRenderCalloutPerDataPoint(this.state.dataPointCalloutProps):a.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&&a.createElement("div",{className:this._classNames.legendContainer},f[1]))}return a.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"})},n.prototype._adjustProps=function(){this._classNames=Kh(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 u,s=this,l=(null===(u=t.chartData)||void 0===u?void 0:u.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,u,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])||ol(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])||ol(i,0,null===(u=s.props.theme)||void 0===u?void 0:u.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 w=s.props.styles,C=!(!s._legendHighlighted(t.legend)&&!s._noLegendHighlighted()),M=t.placeHolder?s.props.theme.semanticColors.bodyText:l;s._classNames=Kh(w,{theme:s.props.theme,shouldHighlight:C,href:s.props.href});var k=g("SBC_Gradient")+"_".concat(i);return a.createElement("g",{key:i,className:s._classNames.opacityChangeOnHover,ref:function(t){s._refCallback(t,x.title)},"data-is-focusable":!s.props.hideTooltip&&C,onFocus:s._onBarFocus.bind(s,y,M,t),onBlur:s._onBarLeave,"aria-label":s._getAriaLabel(t),role:"img",onMouseOver:s._onBarHover.bind(s,y,M,t),onMouseMove:s._onBarHover.bind(s,y,M,t),onMouseLeave:s._onBarLeave,pointerEvents:"all",onClick:s.props.href?s._redirectToUrl.bind(s,s.props.href):t.onClick},s.props.enableGradient&&a.createElement("defs",null,a.createElement("linearGradient",{id:k},a.createElement("stop",{offset:"0",stopColor:l}),a.createElement("stop",{offset:"100%",stopColor:c}))),a.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(k,")"):l}))}));this._addLegend(h,e),this._addLegend(h,r);var w=a.createElement(jc,(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,w]},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?i.legend:i.placeHolder?"Remaining":"",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 a.createElement("g",{key:0,className:this._classNames.opacityChangeOnHover},a.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?i.legend:i.placeHolder?"Remaining":"",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}(a.Component),Qh=(0,r.I)(Jh,(function(t){var n,i,e=t.className,r=t.width,a=t.barHeight,u=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:a||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:u?"":"0.1",cursor:l?"pointer":"default",selectors:{"&:focus":{stroke:s.palette.black,strokeWidth:"2px"}}},ratioNumerator:{fontSize:Yt.s.medium,fontWeight:Yt.BO.semibold,color:s.palette.neutralPrimary},ratioDenominator:{fontSize:Yt.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[Yt.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[Yt.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)}}})),td=function(t,n,i){var e=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(!e||0===e[1])return 16;var r=e[0],o=e[1];return Math.floor(n*r*(1-i)/(o+r*(1-i)))};!function(t){t.show="visibility",t.hide="hidden"}(Gh||(Gh={}));var nd,id=(0,u.Z)(),ed=function(t){function n(n){var i,e=t.call(this,n)||this;return e._isRtl=(0,s.jI)(),e.toImage=function(t){var n,i;return Fc(null===(n=e._cartesianChartRef.current)||void 0===n?void 0:n.chartContainer,null===(i=e._legendsRef.current)||void 0===i?void 0:i.toSVG,e._isRtl,t)},e._getDomainNRangeValues=function(t,n,i,e,r,o,a,u,s){return o===Ku.NumericAxis?function(t,n,i,e,r){var o=vi(t,(function(t){return t.x})),a=di(t,(function(t){return t.x})),u=n.left,s=i-n.right;return e?{dStartValue:o,dEndValue:a,rStartValue:u,rEndValue:s}:{dStartValue:a,dEndValue:o,rStartValue:u,rEndValue:s}}(t,n,i,r):o===Ku.DateAxis?Ls(t,n,i,r,u,e):Vs(n,i,r)},e._createLine=function(t,n,i,r,o){var u;void 0===i&&(i=0),void 0===r&&(r=0);var s=e._xAxisType===Ku.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=Yf().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)})),w=!(!e._legendHighlighted(m)&&!e._noLegendHighlighted()),C=(null===(u=e.props.lineOptions)||void 0===u?void 0:u.lineBorderWidth)?Number.parseFloat(e.props.lineOptions.lineBorderWidth.toString()):0;C>0&&b.push(a.createElement("path",{key:g("_VBC_line_"),id:g("_VBC_line_"),opacity:w?1:.1,d:x(y),fill:"transparent",strokeLinecap:"square",strokeWidth:3+2*C,stroke:f.semanticColors.bodyBackground})),b.push(a.createElement("path",{key:g("_VBC_line_"),id:g("_VBC_line_"),opacity:w?1:.1,d:x(y),fill:"transparent",strokeLinecap:"square",strokeWidth:3,stroke:p}));var M=y.map((function(i,r){var u,f={refElement:null};return a.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===(u=i.point.lineData)||void 0===u?void 0:u.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 a.createElement(a.Fragment,null,b,M)},e._getCircleVisibilityAndRadius=function(t,n){var i=e.state.activeXdataPoint;return e._noLegendHighlighted()?{visibility:i===t?Gh.show:Gh.hide,radius:8}:t===i&&e._legendHighlighted(n)?{visibility:Gh.show,radius:8}:e._legendHighlighted(n)?{visibility:Gh.show,radius:.3}:{visibility:Gh.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,u=i.map((function(t,n){return a.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 a.createElement(a.Fragment,null,u)},e._renderContentForOnlyBars=function(t){var n=e.props.useSingleColor,i=void 0!==n&&n;return a.createElement(a.Fragment,null,a.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===Ku.NumericAxis?e._createNumericBars(i,r,o):e._xAxisType===Ku.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,a,u=[],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())&&u.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())&&u.push({legend:y[0].legend,y:y[0].y,color:h?f?ol(0,0)[0]:(null===(a=y[0].gradient)||void 0===a?void 0:a[0])||ol(b,0)[0]:x,data:y[0].yAxisCalloutData,yAxisCalloutData:y[0].yAxisCalloutData});var w=t.x instanceof Date?zs(t.x,e.props.useUTC):t.x.toString();return{YValueHover:u,hoverXValue:t.xAxisCalloutData||w}},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,a=r.hoverXValue;e._refArray.forEach((function(r,u){r.index===t.legend&&n===u&&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?zs(t.x,e.props.useUTC):t.x.toString()),yCalloutValue:t.yAxisCalloutData,dataPointCalloutProps:t,activeXdataPoint:t.x,YValueHover:o,hoverXValue:a,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,a=void 0===o?"":o,u=r.lineLegendColor,s=void 0===u?i.palette.yellow:u;e.setState({refSelected:n,isCalloutVisible:!0,calloutLegend:a,dataForHoverCard:t.lineData.y,color:s,xCalloutValue:t.xAxisCalloutData||(t.x instanceof Date?zs(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=We().domain([e.props.supportNegativeData?e._yMin:0,e._yMax]).range([0,t-e.margins.bottom-e.margins.top]);if(e._xAxisType===Ku.NumericAxis){var o=vi(e._points,(function(t){return t.x})),a=di(e._points,(function(t){return t.x}));i=We().domain(e._isRtl?[o,a]:[a,o]).range([e.margins.left+e._domainMargin,n-e.margins.right-e._domainMargin]),Rs(e.props.xAxisInnerPadding,e.props.xAxisPadding)||"histogram"===e.props.mode||i.nice()}else if(e._xAxisType===Ku.DateAxis){var u=di(e._points,(function(t){return t.x})),s=vi(e._points,(function(t){return t.x}));(i=e.props.useUTC?Fa():Ba()).domain([u,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=za().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,u=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,a,s=u?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])||ol(l,0,null==r?void 0:r.isInverted)[0],u&&(s=ol(0,0,null===(a=e.props.theme)||void 0===a?void 0:a.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 a.createElement(jc,(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),ref:e._legendsRef}))},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?zs(t.x,e.props.useUTC):t.x,a=t.legend,u=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,". ")+(a?"".concat(a,", "):"")+"".concat(u,".")+(void 0!==l?" ".concat(s,", ").concat(l,"."):"")},e._getDomainMargins=function(t){var n;e._domainMargin=8;var i={};null===(n=e.props.data)||void 0===n||n.forEach((function(t){t.x instanceof Date?i[t.x.getTime()]=t.x:i[t.x]=t.x}));var r=Object.values(i),a=t-(e.margins.left+8)-(e.margins.right+8),u=e._xAxisInnerPadding/(1-e._xAxisInnerPadding),s=r.length+(r.length-1)*u;if(e._xAxisType===Ku.StringAxis){if(Rs(e.props.xAxisOuterPadding,e.props.xAxisPadding))e._domainMargin=0;else if("auto"!==e.props.barWidth&&"histogram"!==e.props.mode)e._barWidth=Is(e.props.barWidth,e.props.maxBarWidth),a>=(d=s*e._barWidth)&&(e._domainMargin=8+(a-d)/2);else if(["plotly","histogram"].includes(e.props.mode)&&r.length>1){var l=a/s,c=(a-(d=s*Is(e.props.barWidth,e.props.maxBarWidth,l,e.props.mode)))/2,f=Number.POSITIVE_INFINITY;if(!e.props.hideTickOverlap){var h=ws(r)+20;f=(a-(d=(r.length-e._xAxisInnerPadding)*h))/2}e._domainMargin=8+Math.max(0,Math.min(c,f))}}else{if("histogram"===e.props.mode){var d=s*e.props.maxBarWidth;e._domainMargin+=Math.max(0,(a-d)/2)}e._barWidth=Is(e.props.barWidth,e.props.maxBarWidth,td(r,a-2*(e._domainMargin-8),e._xAxisInnerPadding),e.props.mode),e._domainMargin+=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":"")+". "},sl(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?Bs(e.props.data[0].x,!0):Ku.StringAxis,e._emptyChartId=g("_VBC_empty"),e._domainMargin=8,e._cartesianChartRef=a.createRef(),e._legendsRef=a.createRef(),e}return(0,o.C6)(n,t),n.prototype.componentDidUpdate=function(t){var n,i,e;$s(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(vi(this._points,(function(t){return t.y})),this.props.yMaxValue||0),this._yMin=Math.min(di(this._points,(function(t){return t.y})),this.props.yMinValue||0);var n=this._getLegendData(this._points,this.props.theme.palette);this._classNames=id(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),Ps(this.state.callOutAccessibilityData)),e={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return this._isChartEmpty()?a.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):a.createElement(nh,(0,o.Cl)({},this.props,{chartTitle:this._getChartTitle(),points:this._points,supportNegativeData:this.props.supportNegativeData,chartType:Zu.VerticalBarChart,xAxisType:this._xAxisType,createYAxis:gs,calloutProps:i,tickParams:e},this._isHavingLine&&(this._noLegendHighlighted()||this._getHighlightedLegend().length>1)&&{isCalloutForStack:!0},{legendBars:n,datasetForXAxisDomain:this._xAxisLabels,barwidth:this._barWidth,focusZoneDirection:Ks.horizontal,customizedCallout:this._getCustomizedCallout(),createStringYAxis:ys,getmargins:this._getMargins,getMinMaxOfYAxis:Ns,getGraphData:this._getGraphData,getDomainNRangeValues:this._getDomainNRangeValues,getAxisData:this._getAxisData,onChartMouseLeave:this._handleChartMouseLeave,getDomainMargins:this._getDomainMargins},this._xAxisType===Ku.StringAxis&&{xAxisInnerPadding:this._xAxisInnerPadding,xAxisOuterPadding:this._xAxisOuterPadding},{ref:this._cartesianChartRef,showRoundOffXTickValues:!Rs(this.props.xAxisInnerPadding,this.props.xAxisPadding)&&"histogram"!==this.props.mode,children:function(n){return a.createElement(a.Fragment,null,a.createElement("g",null,t._bars),t._isHavingLine&&a.createElement("g",null,t._createLine(n.xScale,n.yScalePrimary,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=Is(this.props.barWidth,this.props.maxBarWidth,void 0,this.props.mode);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=Ws(this.props.xAxisInnerPadding,this.props.xAxisPadding,"histogram"===this.props.mode?0:this._xAxisType===Ku.StringAxis?2/3:.5),this._xAxisOuterPadding=Ws(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 We().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?zs(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,u=this._getScales(t,n),s=u.xBarScale,l=u.yBarScale,c=this._createColors(),f=this._yMax<0?this._yMax:0,h=this._points.map((function(n,i){var r,u,h,d,v,p,m=!(!e._legendHighlighted(n.legend)&&!e._noLegendHighlighted());e._classNames=id(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),w=y;if(0===y||b&&!e.props.supportNegativeData)return a.createElement(a.Fragment,{key:n.x}," ");y<=x&&(w=x);var C=s(n.x)-e._barWidth/2,M=t-e.margins.bottom-(b?-1*w:w)-l(f),k=t-e.margins.bottom-l(f),A=n.color&&!o?n.color:c(n.y),S=A;e.props.enableGradient&&(A=(null===(r=n.gradient)||void 0===r?void 0:r[0])||ol(i,0,null===(u=e.props.theme)||void 0===u?void 0:u.isInverted)[0],S=(null===(h=n.gradient)||void 0===h?void 0:h[1])||ol(i,0,null===(d=e.props.theme)||void 0===d?void 0:d.isInverted)[1],o&&(A=ol(0,0,null===(v=e.props.theme)||void 0===v?void 0:v.isInverted)[0],S=ol(0,0,null===(p=e.props.theme)||void 0===p?void 0:p.isInverted)[1]),e._points[i].color=A);var V=g("VBC_Gradient")+"_".concat(i,"_").concat(A);return a.createElement("g",{key:"".concat(n.x,"_").concat(i)},e.props.enableGradient&&a.createElement("defs",null,a.createElement("linearGradient",{id:V,x1:"0%",y1:"100%",x2:"0%",y2:"0%"},a.createElement("stop",{offset:"0",stopColor:A}),a.createElement("stop",{offset:"100%",stopColor:S}))),a.createElement("rect",{id:g("_VBC_bar_"),x:C,className:e._classNames.opacityChangeOnHover,y:b?k:M,width:e._barWidth,"data-is-focusable":!e.props.hideTooltip&&m,height:w,ref:function(t){e._refCallback(t,n.legend)},onClick:n.onClick,onMouseOver:e._onBarHover.bind(e,n,A),"aria-label":e._getAriaLabel(n),role:"img",onMouseLeave:e._onBarLeave,onFocus:e._onBarFocus.bind(e,n,i,A),onBlur:e._onBarLeave,fill:e.props.enableGradient?"url(#".concat(V,")"):A,rx:e.props.roundCorners?3:0}),e._renderBarLabel(C,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=ns(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&&Cs(v)}return h},n.prototype._createStringBars=function(t,n,i){var e=this,r=this.props.useSingleColor,o=void 0!==r&&r,u=this._getScales(t,n),s=u.xBarScale,l=u.yBarScale,c=this._createColors(),f=this._yMax<0?this._yMax:0,h=this._points.map((function(n,i){var r,u,h,d,v,p,m=e._legendHighlighted(n.legend)||e._noLegendHighlighted();e._classNames=id(e.props.styles,{theme:e.props.theme,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),w=y;if(0===y||b&&!e.props.supportNegativeData)return a.createElement(a.Fragment,{key:n.x}," ");y<=x&&(w=x);var C=s(n.x),M=t-e.margins.bottom-(b?-1*w:w)-l(f),k=t-e.margins.bottom-l(f);e._barWidth=Is(e.props.barWidth,e.props.maxBarWidth,s.bandwidth(),e.props.mode);var A=n.color?n.color:c(n.y),S=A;e.props.enableGradient&&(A=(null===(r=n.gradient)||void 0===r?void 0:r[0])||ol(i,0,null===(u=e.props.theme)||void 0===u?void 0:u.isInverted)[0],S=(null===(h=n.gradient)||void 0===h?void 0:h[1])||ol(i,0,null===(d=e.props.theme)||void 0===d?void 0:d.isInverted)[1],o&&(A=ol(0,0,null===(v=e.props.theme)||void 0===v?void 0:v.isInverted)[0],S=ol(0,0,null===(p=e.props.theme)||void 0===p?void 0:p.isInverted)[1]),e._points[i].color=A);var V=g("VBC_Gradient")+"_".concat(i,"_").concat(A);return a.createElement("g",{key:n.x instanceof Date?"".concat(n.x.getTime(),"_").concat(i):"".concat(n.x,"_").concat(i),transform:"translate(".concat(.5*(s.bandwidth()-e._barWidth),", 0)")},e.props.enableGradient&&a.createElement("defs",null,a.createElement("linearGradient",{id:V,x1:"0%",y1:"100%",x2:"0%",y2:"0%"},a.createElement("stop",{offset:"0",stopColor:A}),a.createElement("stop",{offset:"100%",stopColor:S}))),a.createElement("rect",{id:g("_VBC_bar_"),x:C,className:e._classNames.opacityChangeOnHover,y:b?k:M,width:e._barWidth,height:w,"aria-label":e._getAriaLabel(n),role:"img",ref:function(t){e._refCallback(t,n.legend)},onClick:n.onClick,onMouseOver:e._onBarHover.bind(e,n,A),onMouseLeave:e._onBarLeave,onBlur:e._onBarLeave,"data-is-focusable":!e.props.hideTooltip&&m,onFocus:e._onBarFocus.bind(e,n,i,A),fill:e.props.enableGradient?"url(#".concat(V,")"):A,rx:e.props.roundCorners?3:0}),e._renderBarLabel(C,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=ns(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&&Cs(v)}return h},n.prototype._createDateBars=function(t,n,i){var e=this,r=this.props.useSingleColor,o=void 0!==r&&r,u=this._getScales(t,n),s=u.xBarScale,l=u.yBarScale,c=this._createColors(),f=this._yMax<0?this._yMax:0,h=this._points.map((function(n,i){var r,u,h,d,v,p,m=!(!e._legendHighlighted(n.legend)&&!e._noLegendHighlighted());e._classNames=id(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),w=y;if(0===y||b&&!e.props.supportNegativeData)return a.createElement(a.Fragment,{key:n.x}," ");y<=x&&(w=x);var C=s(n.x)-e._barWidth/2,M=t-e.margins.bottom-(b?-1*w:w)-l(f),k=t-e.margins.bottom-l(f),A=n.color&&!o?n.color:c(n.y),S=A;e.props.enableGradient&&(A=(null===(r=n.gradient)||void 0===r?void 0:r[0])||ol(i,0,null===(u=e.props.theme)||void 0===u?void 0:u.isInverted)[0],S=(null===(h=n.gradient)||void 0===h?void 0:h[1])||ol(i,0,null===(d=e.props.theme)||void 0===d?void 0:d.isInverted)[1],o&&(A=ol(0,0,null===(v=e.props.theme)||void 0===v?void 0:v.isInverted)[0],S=ol(0,0,null===(p=e.props.theme)||void 0===p?void 0:p.isInverted)[1]),e._points[i].color=A);var V=g("VBC_Gradient")+"_".concat(i,"_").concat(A);return a.createElement("g",{key:n.x instanceof Date?"".concat(n.x.getTime(),"_").concat(i):"".concat(n.x,"_").concat(i)},e.props.enableGradient&&a.createElement("defs",null,a.createElement("linearGradient",{id:V,x1:"0%",y1:"100%",x2:"0%",y2:"0%"},a.createElement("stop",{offset:"0",stopColor:A}),a.createElement("stop",{offset:"100%",stopColor:S}))),a.createElement("rect",{id:g("_VBC_bar_"),x:C,className:e._classNames.opacityChangeOnHover,y:b?k:M,width:e._barWidth,"data-is-focusable":!e.props.hideTooltip&&m,height:w,ref:function(t){e._refCallback(t,n.legend)},onClick:n.onClick,onMouseOver:e._onBarHover.bind(e,n,A),"aria-label":e._getAriaLabel(n),role:"img",onMouseLeave:e._onBarLeave,onFocus:e._onBarFocus.bind(e,n,i,A),onBlur:e._onBarLeave,fill:e.props.enableGradient?"url(#".concat(V,")"):A,rx:e.props.roundCorners?3:0}),e._renderBarLabel(C,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=ns(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&&Cs(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:a.createElement("text",{x:t+this._barWidth/2,y:r?n+12:n-6,textAnchor:"middle",className:this._classNames.barLabel,"aria-hidden":!0},Hs(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}(a.Component),rd=(0,r.I)(ed,(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",color:i.semanticColors.bodyText}),barLabel:{fontSize:Yt.s.small,fontWeight:Yt.BO.semibold,fill:i.palette.neutralPrimary}}})),od=(0,u.Z)();!function(t){t.show="visibility",t.hide="hidden"}(nd||(nd={}));var ad=function(t){function n(n){var i,e=t.call(this,n)||this;return e._isRtl=(0,s.jI)(),e.Y_ORIGIN=0,e.toImage=function(t){var n,i;return Fc(null===(n=e._cartesianChartRef.current)||void 0===n?void 0:n.chartContainer,null===(i=e._legendsRef.current)||void 0===i?void 0:i.toSVG,e._isRtl,t)},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,a,u,s){return o===Ku.NumericAxis?function(t,n,i,e,r){var o=di(t,(function(t){return t.x})),a=vi(t,(function(t){return t.x})),u=n.left,s=i-n.right;return e?{dStartValue:a,dEndValue:o,rStartValue:u,rEndValue:s}:{dStartValue:o,dEndValue:a,rStartValue:u,rEndValue:s}}(t,n,i,r):o===Ku.DateAxis?Ls(t,n,i,r,u,e):Vs(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,u){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!==Ku.StringAxis?0:t.bandwidth()/2;return Object.keys(l).forEach((function(i,r){for(var s,h,g,m,y,b=e._isLegendHighlighted(i)||e._noLegendHighlighted(),x=1;x<l[i].length;x++){var w=t(l[i][x-1].xItem.xAxisPoint),C=l[i][x-1].useSecondaryYScale&&l[i][x].useSecondaryYScale&&u,M=C?u(l[i][x-1].y):n(l[i][x-1].y),k=t(l[i][x].xItem.xAxisPoint),A=C?u(l[i][x].y):n(l[i][x].y);v>0&&f.push(a.createElement("line",{key:"".concat(r,"-").concat(x,"-BorderLine"),x1:w,y1:M,x2:k,y2:A,opacity:b?1:.1,strokeWidth:3+2*v,fill:"transparent",strokeLinecap:"round",stroke:d.semanticColors.bodyBackground,transform:"translate(".concat(p,", 0)")})),c.push(a.createElement("line",(0,o.Cl)({key:"".concat(r,"-").concat(x,"-line"),x1:w,y1:M,x2:k,y2:A,opacity:b?1:.1,strokeWidth:null!==(h=null===(s=l[i][0].lineOptions)||void 0===s?void 0:s.strokeWidth)&&void 0!==h?h:3,strokeLinecap:null!==(m=null===(g=l[i][0].lineOptions)||void 0===g?void 0:g.strokeLinecap)&&void 0!==m?m:"round",strokeDasharray:null===(y=l[i][0].lineOptions)||void 0===y?void 0:y.strokeDasharray,stroke:l[i][x].color,transform:"translate(".concat(p,", 0)")},e._isLegendHighlighted(i)&&{onMouseOver:e._lineHover.bind(e,l[i][x-1]),onMouseLeave:e._lineHoverOut})))}})),Object.keys(l).forEach((function(i,r){l[i].forEach((function(s,l){var c={refElement:null};h.push(a.createElement("circle",(0,o.Cl)({key:"".concat(r,"-").concat(l,"-dot"),cx:t(s.xItem.xAxisPoint),cy:s.useSecondaryYScale&&u?u(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})))}))})),a.createElement(a.Fragment,null,f,c,h)},e._getCircleVisibilityAndRadius=function(t,n){var i=e.state.activeXAxisDataPoint;return e._noLegendHighlighted()?{visibility:i===t?nd.show:nd.hide,radius:8}:t===i&&e._isLegendHighlighted(n)?{visibility:nd.show,radius:8}:e._isLegendHighlighted(n)?{visibility:nd.show,radius:.3}:{visibility:nd.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 u=e.props,s=u.barCornerRadius,l=void 0===s?0:s,c=u.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===Ku.StringAxis&&(e._barWidth=Is(e.props.barWidth,e.props.maxBarWidth,t.bandwidth()));var v=e._points.map((function(r,u){var s=t((e._xAxisType===Ku.NumericAxis||(e._xAxisType,Ku.DateAxis),r.xAxisPoint)),c=e._xAxisType!==Ku.StringAxis?-e._barWidth/2:(t.bandwidth()-e._barWidth)/2,h=0,v=r.chartData.filter((function(t){return 0!==t.data}));if(v.length){var p=e._getBarGapAndScale(v,n),m=p.gapHeight,y=p.heightValueScale,b=p.adjustedTotalHeight;if(!(y<0)){var x=i-e.margins.bottom-n(e.Y_ORIGIN),w=x,C=x,M=0,k=0,A=v.map((function(t,n){var i,p,x,A,S=t.color?t.color:e._colors[n],V=S;e.props.enableGradient&&(S=(null===(i=t.gradient)||void 0===i?void 0:i[0])||ol(n,0,null===(p=e.props.theme)||void 0===p?void 0:p.isInverted)[0],V=(null===(x=t.gradient)||void 0===x?void 0:x[1])||ol(n,0,null===(A=e.props.theme)||void 0===A?void 0:A.isInverted)[1],r.chartData[n].color=S);var L={},D=!(!e._isLegendHighlighted(t.legend)&&!e._noLegendHighlighted());e._classNames=od(e.props.styles,{theme:e.props.theme,shouldHighlight:D,href:e.props.href});var N=!d&&{"data-is-focusable":!e.props.hideTooltip&&D,"aria-label":e._getAriaLabel(r,t),onMouseOver:e._onRectHover.bind(e,r.xAxisPoint,t,S),onMouseMove:e._onRectHover.bind(e,r.xAxisPoint,t,S),onMouseLeave:e._handleMouseOut,onFocus:e._onRectFocus.bind(e,t,r.xAxisPoint,S,L),onBlur:e._handleMouseOut,onClick:e._onClick.bind(e,t),role:"img"},T=Math.abs(y*t.data),O=Math.max(y*b/100,f);T<O&&(T=O);var E=n?m:0;t.data>=e.Y_ORIGIN?M=w-=T+E:C=(M=C+E)+T,h+=t.data,k=n===v.length-1?T:0;var B=g("VSBC_Gradient")+"_".concat(u,"_").concat(n);return l&&T>l&&n===v.length-1?a.createElement(a.Fragment,{key:n+u+"".concat(d)},e.props.enableGradient&&a.createElement("defs",null,a.createElement("linearGradient",{id:B,x1:"0%",y1:"100%",x2:"0%",y2:"0%"},a.createElement("stop",{offset:"0",stopColor:S}),a.createElement("stop",{offset:"100%",stopColor:V}))),a.createElement("path",(0,o.Cl)({className:e._classNames.opacityChangeOnHover,d:"\n M ".concat(s," ").concat(M+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(T-l,"\n h ").concat(-e._barWidth,"\n z\n "),fill:e.props.enableGradient?"url(#".concat(B,")"):S,rx:e.props.roundCorners?3:0,ref:function(t){return L.refElement=t},transform:"translate(".concat(c,", 0)")},N))):T<0?a.createElement(a.Fragment,{key:n+u}," "):a.createElement(a.Fragment,{key:n+u},e.props.enableGradient&&a.createElement("defs",null,a.createElement("linearGradient",{id:B,x1:"0%",y1:"100%",x2:"0%",y2:"0%"},a.createElement("stop",{offset:"0",stopColor:S}),a.createElement("stop",{offset:"100%",stopColor:V}))),a.createElement("rect",(0,o.Cl)({className:e._classNames.opacityChangeOnHover,x:s,y:M,width:e._barWidth,height:T,fill:e.props.enableGradient?"url(#".concat(B,")"):S,rx:e.props.roundCorners?3:0,ref:function(t){return L.refElement=t}},N,{transform:"translate(".concat(c,", 0)")})))})),S={},V=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,S),onBlur:e._handleMouseOut,onClick:e._onClick.bind(e,r),role:"img"},L=!1,D=0;return e.props.hideLabels||(e._noLegendHighlighted()?(L=!0,D=h):v.forEach((function(t){e._isLegendHighlighted(t.legend)&&(L=!0,D+=t.data)}))),a.createElement("g",{key:u+"".concat(d)},a.createElement("g",(0,o.Cl)({id:"".concat(u,"-singleBar"),ref:function(t){return S.refElement=t}},V),A),!e.props.hideLabels&&e._barWidth>=16&&L&&a.createElement("text",{x:s+e._barWidth/2,y:D>=e.Y_ORIGIN?M-6:M+k+12,textAnchor:"middle",className:e._classNames.barLabel,"aria-label":"Total: ".concat(D),role:"img",transform:"translate(".concat(c,", 0)")},Hs(D)))}}}));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=ns(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&&Cs(m)}return v.filter((function(t){return!!t}))},e._getScales=function(t,n){var i=[Math.min(e.Y_ORIGIN,e._yMin),Math.max(e.Y_ORIGIN,e._yMax)],r=We().domain(i).range([0,t-e.margins.bottom-e.margins.top]);if(e._xAxisType===Ku.NumericAxis){var o=vi(e._dataset,(function(t){return t.x})),a=di(e._dataset,(function(t){return t.x})),u=We().domain(e._isRtl?[o,a]:[a,o]).range([e.margins.left+e._domainMargin,n-e.margins.right-e._domainMargin]);return Rs(e.props.xAxisInnerPadding,e.props.xAxisPadding)||u.nice(),{xBarScale:u,yBarScale:r}}if(e._xAxisType===Ku.DateAxis){var s=di(e._dataset,(function(t){return t.x})),l=vi(e._dataset,(function(t){return t.x})),c=e.props.useUTC?Fa():Ba();return c.domain(e._isRtl?[l,s]:[s,l]).range([e.margins.left+e._domainMargin,n-e.margins.right-e._domainMargin]),{xBarScale:c,yBarScale:r}}return{xBarScale:za().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 a=e._getScales(i,r),u=a.xBarScale,s=a.yBarScale;return e._bars=e._createBar(u,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||e.Y_ORIGIN),e._yMin=Math.min(n[0],e.props.yMinValue||e.Y_ORIGIN)}},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?zs(t.xAxisPoint):t.xAxisPoint),a=t.chartData.map((function(t){var n=t.legend,i=t.yAxisCalloutData||t.data;return"".concat(n,", ").concat(i,".")})).join(" "),u=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(a)+(u?" ".concat(u):"")}var s=t.xAxisCalloutData||n.xAxisCalloutData||(t.xAxisPoint instanceof Date?zs(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===Ku.StringAxis){if(Rs(e.props.xAxisOuterPadding,e.props.xAxisPadding))e._domainMargin=0;else if("auto"!==e.props.barWidth)e._barWidth=Is(e.props.barWidth,e.props.maxBarWidth),i>=(a=(e._xAxisLabels.length+(e._xAxisLabels.length-1)*r)*e._barWidth)&&(e._domainMargin=8+(i-a)/2);else if("plotly"===e.props.mode&&e._xAxisLabels.length>1){var a,u=i/(e._xAxisLabels.length+(e._xAxisLabels.length-1)*r),s=Is(e.props.barWidth,e.props.maxBarWidth,u),l=(i-(a=(e._xAxisLabels.length+(e._xAxisLabels.length-1)*r)*s))/2,c=Number.POSITIVE_INFINITY;if(!e.props.hideTickOverlap){var f=ws(e._xAxisLabels)+20;c=(i-(a=(e._xAxisLabels.length-e._xAxisInnerPadding)*f))/2}e._domainMargin=8+Math.max(0,Math.min(l,c))}}else{var h=(null===(n=e.props.data)||void 0===n?void 0:n.map((function(t){return t.xAxisPoint})))||[];e._barWidth=Is(e.props.barWidth,e.props.maxBarWidth,td(h,i,e._xAxisInnerPadding)),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"):"")+". "},e._getMinMaxOfYAxis=function(t,n,i){if(!i)return function(t){var n=vi(t,(function(t){return t.y}));return{startValue:di(t,(function(t){return t.y})),endValue:n}}(t);var r=[];return e.props.data.forEach((function(t){var n;null===(n=t.lineData)||void 0===n||n.forEach((function(t){t.useSecondaryYScale&&r.push(t.y)}))})),{startValue:di(r),endValue:vi(r)}},sl(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:""},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=a.createRef(),e._legendsRef=a.createRef(),e}return(0,o.C6)(n,t),n.prototype.componentDidUpdate=function(t){var n,i,e;$s(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 u=this._getLegendData(this._points,this.props.theme.palette,this._createLegendsForLine(this.props.data));this._classNames=od(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),Ps(this.state.callOutAccessibilityData)),l={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return a.createElement(nh,(0,o.Cl)({},this.props,{chartTitle:this._getChartTitle(),points:this._dataset,chartType:Zu.VerticalStackedBarChart,xAxisType:this._xAxisType,calloutProps:s,createYAxis:gs,tickParams:l,legendBars:u,getMinMaxOfYAxis:this._getMinMaxOfYAxis,datasetForXAxisDomain:this._xAxisLabels,isCalloutForStack:i,getDomainNRangeValues:this._getDomainNRangeValues,createStringYAxis:ys,barwidth:this._barWidth,focusZoneDirection:r||n?Ks.horizontal:Ks.vertical,getmargins:this._getMargins,getGraphData:this._getGraphData,getAxisData:this._getAxisData,customizedCallout:this._getCustomizedCallout(),onChartMouseLeave:this._handleChartMouseLeave,getDomainMargins:this._getDomainMargins},this._xAxisType===Ku.StringAxis&&{xAxisInnerPadding:this._xAxisInnerPadding,xAxisOuterPadding:this._xAxisOuterPadding},{ref:this._cartesianChartRef,showRoundOffXTickValues:!Rs(this.props.xAxisInnerPadding,this.props.xAxisPadding),children:function(i){return a.createElement(a.Fragment,null,a.createElement("g",null,t._bars),a.createElement("g",null,n&&t._createLines(i.xScale,i.yScalePrimary,i.containerHeight,i.containerWidth,i.yScaleSecondary)))}}))}return a.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=Is(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=Bs(this.props.data[0].xAxisPoint,!0),this._lineObject=this._getFormattedLineData(this.props.data),this._xAxisInnerPadding=Ws(this.props.xAxisInnerPadding,this.props.xAxisPadding,this._xAxisType===Ku.StringAxis?2/3:.5),this._xAxisOuterPadding=Ws(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?a.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 a.createElement(a.Fragment,null);var r=[n.blueLight,n.blue,n.blueMid,n.red,n.black],u=[],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,a=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);a=(null===(o=n.gradient)||void 0===o?void 0:o[0])||ol(s,0,null==f?void 0:f.isInverted)[0]}if(!(u.filter((function(t){return t.title===n.legend&&t.color===a})).length>0)){var l={title:n.legend,color:a,hoverAction:c?function(){e._handleChartMouseLeave(),e._onLegendHover(n.legend)}:void 0,onMouseOutAction:c?function(){return e._onLegendLeave()}:void 0};u.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(u);return a.createElement(jc,(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),ref:this._legendsRef}))},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,a=this;this._noLegendHighlighted()||(t=(0,o.Cl)((0,o.Cl)({},t),{chartData:t.chartData.filter((function(t){return a._isLegendHighlighted(t.legend)})),lineData:null===(i=t.lineData)||void 0===i?void 0:i.filter((function(t){return a._isLegendHighlighted(t.legend)}))}));var u=t.lineData,s=void 0!==u&&u.length>0;s&&u.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)([],u.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?zs(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+Math.abs(n.data)}),0),a=null!=i?i:Math.abs(n(o)-n(this.Y_ORIGIN)),u=0;t.forEach((function(t){var n=Math.abs(t.data)/o*100;n<1&&0!==n&&(n=1),u+=n}));var s=0!==u?u/100:1,l=r&&t.length-1,c=l&&Math.max(1,Math.min(r,.2*a/l));return{gapHeight:c,heightValueScale:(a-c*l)/(o*s),adjustedTotalHeight:u}},n.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.length>0&&this.props.data.some((function(t){return t.chartData.length>0||t.lineData&&t.lineData.length>0})))},n.defaultProps={maxBarWidth:24,useUTC:!0},n}(a.Component),ud=(0,r.I)(ad,(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",color:e.semanticColors.bodyText}),barLabel:{fontSize:Yt.s.small,fontWeight:Yt.BO.semibold,fill:e.palette.neutralPrimary}}})),sd=(0,u.Z)(),ld=.1/.9,cd=function(t){function n(n){var i,e=t.call(this,n)||this;return e._isRtl=(0,s.jI)(),e._legendColorMap={},e.toImage=function(t){var n,i;return Fc(null===(n=e._cartesianChartRef.current)||void 0===n?void 0:n.chartContainer,null===(i=e._legendsRef.current)||void 0===i?void 0:i.toSVG,e._isRtl,t)},e._getMinMaxOfYAxis=function(t,n,i){var e=[];return t.forEach((function(t){t.groupSeries.forEach((function(t){!i==!t.useSecondaryYScale&&e.push(t.data)}))})),{startValue:di(e),endValue:vi(e)}},e._getDomainNRangeValues=function(t,n,i,e,r,o,a,u,s){return o===Ku.NumericAxis||o===Ku.DateAxis?{dStartValue:0,dEndValue:0,rStartValue:0,rEndValue:0}:Vs(n,i,r)},e._getGraphData=function(t,n,i,r,o,a,u){var s=e._createX0Scale(r);e._barWidth=Is(e.props.barwidth,e.props.maxBarWidth,s.bandwidth()/(e._legends.length+(e._legends.length-1)*ld)),e._groupWidth=(e._legends.length+(e._legends.length-1)*ld)*e._barWidth;var l=e._createX1Scale(),c=[];e._datasetForBars.forEach((function(t){c.push(e._buildGraph(t,s,l,n,u,i,o))})),e._groupedVerticalBarGraph=c},e._getMargins=function(t){return e.margins=t},e._createDataSetOfGVBC=function(t){var n=new Set,i=t.map((function(t){return t.name}));t.forEach((function(t){t.series.forEach((function(t){n.add(t.legend)}))}));var r=e._createDataset(t);return{legends:Array.from(n),xAxisLabels:i,datasetForBars:r}},e._getCustomizedCallout=function(){return e.props.onRenderCalloutPerDataPoint?e.props.onRenderCalloutPerDataPoint(e.state.dataPointCalloutProps):null},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.setState({refSelected:i.currentTarget,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,u,s){var l=[],c=[];if(e._legends.forEach((function(n,u){var s=t[n];if(s){var f=s[0].useSecondaryYScale&&o?o:r,h=i(n)+(i.bandwidth()-e._barWidth)/2,d=e._legendHighlighted(n)||e._noLegendHighlighted(),v=d?"":"0.1",p=g("GVBC_Gradient")+"_".concat(t.indexNum,"_").concat(u),m=s[0].color,y=m;e.props.enableGradient&&(m=s[0].gradient[0],y=s[0].gradient[1],l.push(a.createElement("linearGradient",{key:p,id:p,x1:"0%",y1:"100%",x2:"0%",y2:"0%"},a.createElement("stop",{offset:"0",stopColor:m}),a.createElement("stop",{offset:"100%",stopColor:y}))));var b=f(0),x=0;s.forEach((function(n,i){if(n.data){var r=.5*(i<s.length-1?1:0),o=.5*(i>0?1:0),c=Math.max(f(0)-f(n.data)-r-o,1);l.push(a.createElement("rect",{key:"".concat(t.indexNum,"-").concat(u,"-").concat(i),className:e._classNames.opacityChangeOnHover,height:c,width:e._barWidth,x:h,y:b-(c+o),"data-is-focusable":!e.props.hideTooltip&&d,opacity:v,fill:e.props.enableGradient?"url(#".concat(p,")"):m,rx:e.props.roundCorners?3:0,onMouseOver:e._onBarHover.bind(e,n,t),onMouseMove:e._onBarHover.bind(e,n,t),onMouseOut:e._onBarLeave,onFocus:e._onBarFocus.bind(e,n,t),onBlur:e._onBarLeave,onClick:e.props.href?e._redirectToUrl.bind(e,e.props.href):n.onClick,"aria-label":e._getAriaLabel(n,t.xAxisPoint),role:"img"})),b-=c+r+o,x+=n.data}})),x&&!e.props.hideLabels&&e._barWidth>=16&&d&&c.push(a.createElement("text",{key:"".concat(t.indexNum,"-").concat(u),x:h+e._barWidth/2,y:b-6,textAnchor:"middle",className:e._classNames.barLabel,"aria-hidden":!0},Hs(x)))}})),!e.props.wrapXAxisLables&&e.props.showXAxisLablesTooltip){var f=ns(s).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&&Cs(h)}return a.createElement("g",{key:t.indexNum,transform:"translate(".concat(n(t.xAxisPoint)+(n.bandwidth()-e._groupWidth)/2,", 0)")},l,c)},e._createDataset=function(t){var n=[];return t.forEach((function(t,i){var e={},r={};t.series.forEach((function(t){e[t.legend]?(e[t.legend].push((0,o.Cl)({},t)),r[t.legend].data+=t.data):(e[t.legend]=[(0,o.Cl)({},t)],r[t.legend]=(0,o.Cl)({},t))})),e.xAxisPoint=t.name,e.indexNum=i,e.groupSeries=Object.values(r),e.stackCallOutAccessibilityData=t.stackCallOutAccessibilityData,n.push(e)})),n},e._createX0Scale=function(t){return za().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 za().domain(e._legends).range(e._isRtl?[e._groupWidth,0]:[0,e._groupWidth]).paddingInner(.1)},e._closeCallout=function(){e.setState({isCalloutVisible:!1})},e._getLegendData=function(){var t=[];return e._legends.forEach((function(n){var i={title:n,color:e._legendColorMap[n][0],hoverAction:function(){e._handleChartMouseLeave(),e._onLegendHover(n)},onMouseOutAction:function(){e._onLegendLeave()}};t.push(i)})),a.createElement(jc,(0,o.Cl)({legends:t,overflowProps:e.props.legendsOverflowProps,enabledWrapLines:e.props.enabledLegendsWrapLines,focusZonePropsInHoverCard:e.props.focusZonePropsForLegendsInHoverCard},e.props.legendProps,{onChange:e._onLegendSelectionChange.bind(e),ref:e._legendsRef}))},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===Ku.StringAxis)if(Rs(e.props.xAxisOuterPadding))e._domainMargin=0;else if("auto"!==e.props.barwidth){e._barWidth=Is(e.props.barwidth,e.props.maxBarWidth);var r=(e._legends.length+(e._legends.length-1)*ld)*e._barWidth;n>=(a=(e._xAxisLabels.length+(e._xAxisLabels.length-1)*i)*r)&&(e._domainMargin=8+(n-a)/2)}else if("plotly"===e.props.mode&&e._xAxisLabels.length>1){var a,u=n/(e._xAxisLabels.length+(e._xAxisLabels.length-1)*i)/(e._legends.length+(e._legends.length-1)*ld),s=Is(e.props.barwidth,e.props.maxBarWidth,u),l=(r=(e._legends.length+(e._legends.length-1)*ld)*s,(n-(a=(e._xAxisLabels.length+(e._xAxisLabels.length-1)*i)*r))/2),c=Number.POSITIVE_INFINITY;if(!e.props.hideTickOverlap){var f=ws(e._xAxisLabels)+20;c=(n-(a=(e._xAxisLabels.length-e._xAxisInnerPadding)*f))/2}e._domainMargin=8+Math.max(0,Math.min(l,c))}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._legends.length," bars each. ")},e._addDefaultColors=function(t){var n;e._legendColorMap={};var i=0;return null!==(n=null==t?void 0:t.map((function(t){var n,r;return(0,o.Cl)((0,o.Cl)({},t),{series:null!==(r=null===(n=t.series)||void 0===n?void 0:n.map((function(t){var n,r,a,u;if(!e._legendColorMap[t.legend]){var s=t.color?t.color:Bf(i,0,null===(n=e.props.theme)||void 0===n?void 0:n.isInverted),l=s;if(e.props.enableGradient){var c=ol(i,0,null===(r=e.props.theme)||void 0===r?void 0:r.isInverted);s=(null===(a=t.gradient)||void 0===a?void 0:a[0])||c[0],l=(null===(u=t.gradient)||void 0===u?void 0:u[1])||c[1]}e._legendColorMap[t.legend]=[s,l],i+=1}return(0,o.Cl)((0,o.Cl)((0,o.Cl)({},t),{color:e._legendColorMap[t.legend][0]}),e.props.enableGradient?{gradient:e._legendColorMap[t.legend]}:{})})))&&void 0!==r?r:[]})})))&&void 0!==n?n:[]},sl(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:""},e._calloutId=g("callout"),e._tooltipId=g("GVBCTooltipId_"),e._emptyChartId=g("_GVBC_empty"),e._domainMargin=8,e._cartesianChartRef=a.createRef(),e._legendsRef=a.createRef(),e}return(0,o.C6)(n,t),n.prototype.componentDidUpdate=function(t){var n,i,e;$s(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._addDefaultColors(this.props.data),i=this._createSet(n),e=i.legends,r=i.xAxisLabels,u=i.datasetForBars;this._legends=e,this._xAxisLabels=r,this._datasetForBars=u,this._xAxisType=Bs(n[0].name,!0);var s=this._getLegendData();this._adjustProps();var l=this._getMinMaxOfYAxis(this._datasetForBars).endValue;this._yMax=Math.max(l,this.props.yMaxValue||0),this._classNames=sd(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}),Ps(this.state.callOutAccessibilityData,"text",!1)),f={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return this._isChartEmpty()?a.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):a.createElement(nh,(0,o.Cl)({},this.props,{chartTitle:this._getChartTitle(),points:this._datasetForBars,chartType:Zu.GroupedVerticalBarChart,calloutProps:c,legendBars:s,xAxisType:this._xAxisType,createYAxis:gs,datasetForXAxisDomain:this._xAxisLabels,tickParams:f,getDomainNRangeValues:this._getDomainNRangeValues,getMinMaxOfYAxis:this._getMinMaxOfYAxis,createStringYAxis:ys,tickPadding:this.props.tickPadding||5,maxOfYVal:this._yMax,svgFocusZoneProps:{direction:Ks.horizontal},customizedCallout:this._getCustomizedCallout(),getmargins:this._getMargins,getGraphData:this._getGraphData,getAxisData:this._getAxisData,onChartMouseLeave:this._handleChartMouseLeave,getDomainMargins:this._getDomainMargins},this._xAxisType===Ku.StringAxis&&{xAxisInnerPadding:this._xAxisInnerPadding,xAxisOuterPadding:this._xAxisOuterPadding},{barwidth:this._barWidth,ref:this._cartesianChartRef,children:function(){return a.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._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=Is(this.props.barwidth,this.props.maxBarWidth),this._xAxisInnerPadding=Ws(this.props.xAxisInnerPadding,void 0,2/(2+this._legends.length+(this._legends.length-1)*ld)),this._xAxisOuterPadding=Ws(this.props.xAxisOuterPadding)},n.defaultProps={maxBarWidth:24},n}(a.Component),fd=(0,r.I)(cd,(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",color:n.semanticColors.bodyText}),barLabel:{fontSize:Yt.s.small,fontWeight:Yt.BO.semibold,fill:n.palette.neutralPrimary}}})),hd=i(263),dd=(0,u.Z)(),vd=function(t){function n(n){var i,e,r=t.call(this,n)||this;return r._rectRefArray={},r.toImage=function(t){var n,i;return Fc(null===(n=r._cartesianChartRef.current)||void 0===n?void 0:n.chartContainer,null===(i=r._legendsRef.current)||void 0===i?void 0:i.toSVG,(0,s.jI)(),t)},r._getMinMaxOfYAxis=function(){return{startValue:0,endValue:0}},r._getDomainNRangeValues=function(t,n,i,e,o,a,u,s,l){return a===Ku.NumericAxis||a===Ku.DateAxis?{dStartValue:0,dEndValue:0,rStartValue:0,rEndValue:0}:Vs(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._getInvertedTextColor=function(t){return t===r.props.theme.semanticColors.bodyText?r.props.theme.semanticColors.bodyBackground:r.props.theme.semanticColors.bodyText},r._createRectangles=function(){var t=[];return r._stringYAxisDataPoints.slice().reverse().forEach((function(n){var i=0;r._stringXAxisDataPoints.forEach((function(e){var o,u,s,l,c,f,h,d="x".concat(e,"y").concat(n);if((null===(o=r._dataSet[n][i])||void 0===o?void 0:o.x)===e&&"number"==typeof(null===(u=r._dataSet[n][i])||void 0===u?void 0:u.value)){var v=r._dataSet[n][i],p="",g=r.props.theme.semanticColors.bodyText;r.chartContainer&&(p=Xs(r.chartContainer,g)),l=p,c=r._colorScale(v.value),f=Hf(_f(ji(l))),h=Hf(_f(ji(c))),(Math.max(f,h)+.05)/(Math.min(f,h)+.05)<3&&(g=r._getInvertedTextColor(g)),s=a.createElement("g",{key:d,role:"img","aria-label":r._getAriaLabel(v),"data-is-focusable":r._legendHighlighted(v.legend)||r._noLegendHighlighted(),fillOpacity:r._getOpacity(v.legend),transform:"translate(".concat(r._xAxisScale(v.x),", ").concat(r._yAxisScale(v.y),")"),ref:function(t){r._rectRefCallback(t,d,v)},onFocus:r._onRectFocus.bind(r,d,v),onBlur:r._onRectBlurOrMouseOut,onMouseOver:r._onRectMouseOver.bind(r,d,v),onMouseOut:r._onRectBlurOrMouseOut},a.createElement("rect",{fill:r._colorScale(v.value),width:r._xAxisScale.bandwidth(),height:r._yAxisScale.bandwidth(),onClick:v.onClick}),a.createElement("text",{dominantBaseline:"middle",textAnchor:"middle",className:r._classNames.text,transform:"translate(".concat(r._xAxisScale.bandwidth()/2,", ").concat(r._yAxisScale.bandwidth()/2,")"),fill:g},(0,jn.U)(v.rectText,r.props.culture))),i++}else{var m={x:e,y:n,value:NaN,rectText:"No data available",legend:""};s=a.createElement("g",{key:d,role:"img","aria-label":r._getAriaLabel(m),"data-is-focusable":r._noLegendHighlighted(),transform:"translate(".concat(r._xAxisScale(m.x),", ").concat(r._yAxisScale(m.y),")"),ref:function(t){r._rectRefCallback(t,d,m)},onFocus:r._onRectFocus.bind(r,d,m),onBlur:r._onRectBlurOrMouseOut,onMouseOver:r._onRectMouseOver.bind(r,d,m),onMouseOut:r._onRectBlurOrMouseOut},a.createElement("rect",{fill:r.props.theme.semanticColors.bodyBackground,width:r._xAxisScale.bandwidth(),height:r._yAxisScale.bandwidth()}))}t.push(s)}))})),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)})),a.createElement(jc,(0,o.Cl)({},i,{legends:e,ref:r._legendsRef}))},r._getColorScale=function(){var t=r.props,n=t.domainValuesForColorScale,i=t.rangeValuesForColorScale;return We().domain(n).range(i)},r._getXIndex=function(t){return r._xAxisType===Ku.DateAxis?"".concat(t.getTime()):r._xAxisType===Ku.StringAxis?t:r._xAxisType===Ku.NumericAxis?"".concat(t):""},r._getYIndex=function(t){return r._yAxisType===Ju.DateAxis?"".concat(t.getTime()):r._yAxisType===Ju.StringAxis?t:r._yAxisType===Ju.NumericAxis?"".concat(t):""},r._createNewDataSet=function(t,n,i,e,a){var u=[];t.forEach((function(t){t.data.forEach((function(n){u.push((0,o.Cl)((0,o.Cl)({},n),{legend:t.legend}))}))}));var s={},l={},c={};return u.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===Ku.StringAxis?"none"===r.props.sortOrder?0:t.x.toLowerCase()>n.x.toLowerCase()?1:-1:r._xAxisType===Ku.DateAxis?t.x.getTime()-n.x.getTime():r._xAxisType===Ku.NumericAxis?+t.x>+n.x?1:-1:t.x>n.x?1:-1})).forEach((function(t){r._xAxisType===Ku.DateAxis&&(t.x=r._getStringFormattedDate(t.x,n)),r._xAxisType===Ku.NumericAxis&&(t.x=r._getStringFormattedNumber(t.x,i)),r._xAxisType===Ku.StringAxis&&(t.x=r._getFormattedLabelForXAxisDataPoint(t.x)),r._yAxisType===Ju.DateAxis&&(t.y=r._getStringFormattedDate(t.y,e)),r._yAxisType===Ju.NumericAxis&&(t.y=r._getStringFormattedNumber(t.y,a)),r._yAxisType===Ju.StringAxis&&(t.y=r._getFormattedLabelForYAxisDataPoint(t.y))}))})),Object.keys(s).forEach((function(t){r._yAxisType===Ju.DateAxis?s[r._getStringFormattedDate(t,e)]=s[t]:r._yAxisType===Ju.NumericAxis?s["".concat(r._getStringFormattedNumber(t,a))]=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===Ku.DateAxis||r._xAxisType===Ku.NumericAxis?+t-+n:"none"===r.props.sortOrder?0:t.toLowerCase()>n.toLowerCase()?1:-1})).map((function(t){return r._xAxisType===Ku.DateAxis?r._getStringFormattedDate(t,r.props.xAxisDateFormatString):r._xAxisType===Ku.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===Ju.DateAxis||r._yAxisType===Ju.NumericAxis?+t-+n:"none"===r.props.sortOrder?0:t.toLowerCase()>n.toLowerCase()?1:-1})).map((function(t){return r._yAxisType===Ju.DateAxis?r._getStringFormattedDate(t,r.props.yAxisDateFormatString):r._yAxisType===Ju.NumericAxis?r._getStringFormattedNumber(t,r.props.yAxisNumberFormatString):r._getFormattedLabelForYAxisDataPoint(t)}))},r._getStringFormattedDate=function(t,n){var i=new Date;return i.setTime(+t),co(n||"%b/%d")(i)},r._getStringFormattedNumber=function(t,n){return Pe(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,a=t.descriptionMessage;return(null===(n=t.callOutAccessibilityData)||void 0===n?void 0:n.ariaLabel)||"".concat(i,", ").concat(e,". ").concat(r,", ").concat(o,".")+(a?" ".concat(a,"."):"")},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. ")},sl(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=a.createRef(),r._legendsRef=a.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=Bs(i,!0),this._yAxisType=Bs(e,!1);var r=this.props,u=r.data,s=r.xAxisDateFormatString,l=r.xAxisNumberFormatString,c=r.yAxisDateFormatString,f=r.yAxisNumberFormatString;this._colorScale=this._getColorScale();var h=this._createSet(u,s,l,c,f),d=h.dataSet,v=h.xAxisPoints,p=h.yAxisPoints;this._dataSet=d,this._stringYAxisDataPoints=p,this._stringXAxisDataPoints=v,this._classNames=dd(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}),Ps(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}),y={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return this._isChartEmpty()?a.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):a.createElement(nh,(0,o.Cl)({},this.props,{chartTitle:this._getChartTitle(),points:u,chartType:Zu.HeatMapChart,xAxisType:Ku.StringAxis,yAxisType:Ju.StringAxis,calloutProps:g,createYAxis:gs,chartHoverProps:m,styles:this._classNames.subComponentStyles.cartesianStyles,datasetForXAxisDomain:this._stringXAxisDataPoints,stringDatasetForYAxisDomain:this._stringYAxisDataPoints,createStringYAxis:ys,getDomainNRangeValues:this._getDomainNRangeValues,getMinMaxOfYAxis:this._getMinMaxOfYAxis,getmargins:this._getMargins,xAxisTickCount:this._stringXAxisDataPoints.length,xAxistickSize:0,xAxisPadding:.02,yAxisPadding:.02,svgFocusZoneProps:{direction:Ks.bidirectional},legendBars:this._createLegendBars(),onChartMouseLeave:this._handleChartMouseLeave,ref:this._cartesianChartRef,tickParams:y,children:function(n){return t._xAxisScale=n.xScale,t._yAxisScale=n.yScalePrimary,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}(a.Component),pd=(0,r.I)(vd,(function(t){return{root:{},text:[t.theme.fonts.medium,{pointerEvents:"none",fontWeight:Yt.BO.semibold}],subComponentStyles:{cartesianStyles:{},calloutStyles:{root:{maxWidth:"238px"}}}}})),gd=/[\{\}]/g,md=/\{\d+\}/g;function yd(t){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var e=n;return t.replace(md,(function(t){var n=e[t.replace(gd,"")];return null==n&&(n=""),n}))}function bd(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 xd(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 wd(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 Cd(t,n){return n-1-t.height}function Md(t,n){return t.sourceLinks.length?t.depth:n-1}function kd(t){return function(){return t}}function Ad(t,n){return Vd(t.source,n.source)||t.index-n.index}function Sd(t,n){return Vd(t.target,n.target)||t.index-n.index}function Vd(t,n){return t.y0-n.y0}function Ld(t){return t.value}function Dd(t){return t.index}function Nd(t){return t.nodes}function Td(t){return t.links}function Od(t,n){const i=t.get(n);if(!i)throw new Error("missing: "+n);return i}function Ed({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 Bd(){let t,n,i,e=0,r=0,o=1,a=1,u=24,s=8,l=Dd,c=Md,f=Nd,h=Td,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=Od(e,n)),"object"!=typeof r&&(r=i.target=Od(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(xd(n.sourceLinks,Ld),xd(n.targetLinks,Ld)):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=wd(t,(t=>t.depth))+1,r=(o-e-u)/(i-1),a=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+u,a[t]?a[t].push(n):a[t]=[n]}if(n)for(const t of a)t.sort(n);return a}(i);t=Math.min(s,(a-r)/(wd(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=>(a-r-(n.length-1)*t)/xd(n,Ld)));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=(a-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)}w(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),Ed(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+=C(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(Vd),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(Vd),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,a,n.length-1,i),y(n,r,0,i)}function y(n,i,e,r){for(;e<n.length;++e){const o=n[e],a=(i-o.y0)*r;a>1e-6&&(o.y0+=a,o.y1+=a),i=o.y1+t}}function b(n,i,e,r){for(;e>=0;--e){const o=n[e],a=(o.y1-i)*r;a>1e-6&&(o.y0-=a,o.y1-=a),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 w(t){if(void 0===i)for(const{sourceLinks:n,targetLinks:i}of t)n.sort(Sd),i.sort(Ad)}function C(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 Ed(t),t},v.nodeId=function(t){return arguments.length?(l="function"==typeof t?t:kd(t),v):l},v.nodeAlign=function(t){return arguments.length?(c="function"==typeof t?t:kd(t),v):c},v.nodeSort=function(t){return arguments.length?(n=t,v):n},v.nodeWidth=function(t){return arguments.length?(u=+t,v):u},v.nodePadding=function(n){return arguments.length?(s=t=+n,v):s},v.nodes=function(t){return arguments.length?(f="function"==typeof t?t:kd(t),v):f},v.links=function(t){return arguments.length?(h="function"==typeof t?t:kd(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],a=+t[1],v):[o-e,a-r]},v.extent=function(t){return arguments.length?(e=+t[0][0],o=+t[1][0],r=+t[0][1],a=+t[1][1],v):[[e,r],[o,a]]},v.iterations=function(t){return arguments.length?(d=+t,v):d},v}class Fd{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 Pd=(0,u.Z)(),_d="#757575",Hd=[{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 Id(t){return"number"==typeof t?t:t.nodeId}function Wd(t,n){return t[Id(n.source)][Id(n.target)]}var Rd="...";function zd(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 jd,$d,Yd=Oh().x((function(t){return t.x})).y0((function(t){return t.y0})).y1((function(t){return t.y1})).curve((function(t){return new Fd(t,!0)})),Xd=function(t){function n(n){var i=t.call(this,n)||this;return i._isRtl=(0,s.jI)(),i._numColumns=0,i.toImage=function(t){return Fc(i.chartContainer,void 0,i._isRtl,t)},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)},sl(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,o){return{theme:t,width:e,height:r,pathColor:n,className:i,enableReflow:o}})),i._computeClassNames=(0,dn.J9)((function(t,n){return Pd(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 yd(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 yd(n,t.source.name,t.target.name,t.unnormalizedValue?i._formatNumber(t.unnormalizedValue):t.unnormalizedValue)},nodeAriaLabel:function(t,n){return yd(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=Id(t.source),o=e[r];o||(o={},e[r]=o),o[Id(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,u=n.pathColor,s=n.colorsForNodes,l=n.borderColorsForNodes,c=this.state,f=this._computeClassNamesProps(i,u,e,c.containerWidth,c.containerHeight,this.props.enableReflow),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),w=this._nodeAttributes(v,this._accessibility.nodeAriaLabel),C=this._fetchNodes(h,v,w,b),M=this._linkAttributes(p,this._strings.linkFrom,this._accessibility.linkAriaLabel),k=this._fetchLinks(p,M),A=(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 a.createElement("div",{className:h.root,role:"presentation",ref:function(n){return t.chartContainer=n},onMouseLeave:this._onCloseCallout},a.createElement(Dl,{direction:Ks.vertical,className:h.chartWrapper},a.createElement("svg",{width:g,height:m,id:this._chartId},y.map((function(t){return"node"===t.type?a.createElement("g",{key:v[t.index].nodeId,className:h.nodes},C[t.index]):a.createElement("g",{key:"".concat(p[t.index].source.nodeId,"-").concat(p[t.index].target.nodeId),className:h.links,strokeOpacity:1},k[t.index])})),A.isCalloutVisible&&a.createElement(zn,(0,o.Cl)({},A),a.createElement(Js.ChartHoverCard,{XValue:A.XValue,YValue:A.YValue,color:A.color,descriptionMessage:A.descriptionMessage?A.descriptionMessage:""})))))}return a.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=ns(".nodeName").append("text").attr("class","tempText").append("tspan").text(null),o=ns(".nodeName").append("text").attr("class","tempText").attr("font-size","10").append("tspan").text(null);return t.forEach((function(t){var a=Math.max(t.y1-t.y0,0),u=8,s=0,l=t.actualValue;if(a<36){u+=6;var c=zd(r,i._formatNumber(l));void 0!==c&&(u+=s=c)}var f=function(t,n,i,e){var r=i-e;if(function(t,n,i){var e=zd(t,n);return void 0!==e&&e<=i}(t,n,r))return n;for(var o=function(t){var n=zd(t,Rd);return void 0===n?0:n}(t),a="",u=0;u<n.length;u++){a+=n[u],t.text(a);var s=t.node();if(null!==s&&s.getComputedTextLength()>=r-o){a=a.slice(0,-1),a+=Rd;break}}return t.text(null),a}(o,t.name,116,u),h=f.slice(-3)===Rd;e[t.nodeId]={reactId:g("nodeBar"),gElementId:g("nodeGElement"),name:f,aria:n(t,l),trimmed:h,height:a,weightOffset:s}})),is(".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 a=function(t,n,i,e){var r=t.left,o=t.right,a=t.top,u=t.bottom,s=n-o,l=i-u>0?i-u:0;return{sankey:Bd().nodeWidth(124).extent([[r,a],[s-1,l-6]]).nodeAlign(e?Cd:Md),height:l,width:s}}(this._margins,n,i,this._isRtl),u=a.sankey,s=a.height,l=a.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);u(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=Id(t.source),e=n[i];e||(e={},n[i]=e),e[Id(t.target)]=t.value})),n}(c.links);return function(t,n,i){Object.values(t).map((function(t){return bd(t,(function(t){return t.value}))})).forEach((function(e,r){var o=0,a=.01*e,u=t[r];u.forEach((function(t){var i=n[t.nodeId],r=i/e*100;t.actualValue=i,r<1?(t.value=a,o+=1):o+=r}));var s=0!==o?o/100:1;s>1&&u.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-bd(t,(function(t){return t.y1-t.y0}));r<i&&(e=Math.min(e,r/(t.length-1)))})),t.nodePadding(e)}(u,s-6,f),u(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=Hd.map((function(t){return t.fillColor})),r=Hd.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=ns("#".concat(this._labelTooltipId));return n.empty()&&(n=ns("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,u,s,l,c=Wd(n,t),f=c.reactId,h=c.from,d=c.aria,v=(u=.5*(o=t).width,s=o.y0,l=o.y1,[{x:o.source.x1,y0:s+u,y1:s-u},{x:o.target.x0,y0:l+u,y1:l-u}]),p="".concat(e,"-").concat(r),g="gradient-".concat(p),m="url(#".concat(g,")"),y=t.source,b=t.target;return a.createElement("g",{key:p},a.createElement("defs",null,a.createElement("linearGradient",{id:g,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},a.createElement("stop",{offset:"0",stopColor:y.color}),a.createElement("stop",{offset:"100%",stopColor:b.color}))),a.createElement("path",{d:Yd(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,u=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,w=n.x1,C=n.y0,M=function(t,n){return!t.selectedState||t.selectedNodes.has(n.index)&&t.selectedNode||!t.selectedNode?"#FFFFFF":"#323130"}(o,n);return a.createElement("g",{key:s,id:f},a.createElement("rect",{x:x,y:C,height:h,width:w-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&&a.createElement("g",{className:t.nodeTextContainer},a.createElement("g",{className:"nodeName"},a.createElement("text",{id:"".concat(c,"-name"),x:x,y:C,dy:"1.2em",dx:"0.4em",textAnchor:u,fontWeight:"regular","aria-hidden":"true",fill:M,fontSize:10,onMouseOver:r._showTooltip.bind(r,y,d,e),onMouseOut:r._hideTooltip.bind(r,e)},v)),a.createElement("text",{x:m?x:w-p-8,y:C,dy:m?"2em":"1em",dx:m?"0.4em":"0em",textAnchor:u,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,a=e.selectedNodes;this.setState((0,o.Cl)({selectedState:!0,selectedNodes:new Set(Array.from(a).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 _d}return _d},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}(a.Component),Gd=(0,r.I)(Xd,(function(t){var n,i,e,r=t.className,a=t.theme,u=t.pathColor,s=t.enableReflow,l=a.effects;return{root:[a.fonts.medium,{display:"flex",width:"100%",height:"100%",flexDirection:"column",overflow:"hidden"},r],links:{stroke:u||a.palette.black,fill:a?a.semanticColors.bodyBackground:"#F5F5F5",strokeWidth:3,selectors:(n={},n[Yt.NK]={fill:"#000000"},n)},nodes:{fill:"#F5F5F5",selectors:(i={},i[Yt.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[Yt.NK]={fill:"rgb(179, 179, 179)"},e)}},marginTop:"4px",marginLeft:"8px",marginBottom:"4px",marginRight:"8px"},calloutContentRoot:{boxShadow:l.elevation4},chartWrapper:(0,o.Cl)({},s?{overflow:"auto"}:{})}}));function qd(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 Ud(t,n){t instanceof Map?(t=[void 0,t],void 0===n&&(n=Kd)):void 0===n&&(n=Zd);for(var i,e,r,o,a,u=new tv(t),s=[u];i=s.pop();)if((r=n(i.data))&&(a=(r=Array.from(r)).length))for(i.children=r,o=a-1;o>=0;--o)s.push(e=r[o]=new tv(r[o])),e.parent=i,e.depth=i.depth+1;return u.eachBefore(Qd)}function Zd(t){return t.children}function Kd(t){return Array.isArray(t)?t[1]:null}function Jd(t){void 0!==t.data.value&&(t.value=t.data.value),t.data=t.data.data}function Qd(t){var n=0;do{t.height=n}while((t=t.parent)&&t.height<++n)}function tv(t){this.data=t,this.depth=this.height=0,this.parent=null}function nv(t,n){return t.parent===n.parent?1:2}function iv(t){var n=t.children;return n?n[0]:t.t}function ev(t){var n=t.children;return n?n[n.length-1]:t.t}function rv(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 ov(t,n,i){return t.a.parent===n.parent?t.a:i}function av(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"}(jd||(jd={})),function(t){t[t.preOrder=1]="preOrder",t[t.levelOrder=0]="levelOrder"}($d||($d={})),tv.prototype=Ud.prototype={constructor:tv,count:function(){return this.eachAfter(qd)},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,a=[o],u=[],s=-1;o=a.pop();)if(u.push(o),i=o.children)for(e=0,r=i.length;e<r;++e)a.push(i[e]);for(;o=u.pop();)t.call(n,o,++s,this);return this},eachBefore:function(t,n){for(var i,e,r=this,o=[r],a=-1;r=o.pop();)if(t.call(n,r,++a,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 Ud(this).eachBefore(Jd)},[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)}},av.prototype=Object.create(tv.prototype);var uv=(0,u.Z)(),sv=function(t){function n(n,i,e,r,o,a){void 0===r&&(r=[]),void 0===o&&(o=[]);var u=t.call(this,n,e,r,o)||this;return u.composition=i,u._treeTraversal=a,u}return(0,o.C6)(n,t),n.prototype.C=function(t,n){var i,e,r,o,a,u,s=(t=t<65?65:t>90?90:t)||75,l=Ud(this.treeData,(function(t){return t.children})),c=(null==l?void 0:l.height)+1;(function(){var t=nv,n=1,i=1,e=null;function r(r){var s=function(t){for(var n,i,e,r,o,a=new av(t,0),u=[a];n=u.pop();)if(e=n._.children)for(n.children=new Array(o=e.length),r=o-1;r>=0;--r)u.push(i=n.children[r]=new av(e[r],r)),i.parent=n;return(a.parent=new av(null,0)).children=[a],a}(r);if(s.eachAfter(o),s.parent.m=-s.z,s.eachBefore(a),e)r.eachBefore(u);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,a=n,u=i,s=o.parent.children[0],l=o.m,c=a.m,f=u.m,h=s.m;u=ev(u),o=iv(o),u&&o;)s=iv(s),(a=ev(a)).a=n,(r=u.z+f-o.z-l+t(u._,o._))>0&&(rv(ov(u,n,e),n,r),l+=r,c+=r),f+=u.m,l+=o.m,h+=s.m,c+=a.m;u&&!ev(a)&&(a.t=u,a.m+=f-c),o&&!iv(s)&&(s.t=o,s.m+=l-h,e=n)}return e}(n,r,n.parent.A||e[0])}function a(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function u(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],w=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 C=(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,A=(null===(e=f[x.parentID])||void 0===e?void 0:e.x)-C/2-10,S=(null===(r=f[x.parentID])||void 0===r?void 0:r.x)+C/2+10,V=null===(o=f[x.parentID])||void 0===o?void 0:o.x,L=null===(a=k[0])||void 0===a?void 0:a.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?V:A:S,L,N.data.fill,1===k.length?v:C,p,N.id,w),D%2==1&&(L+=M+g)):(this.D(N.data.name,N.data.subname,N.data.bodytext,N.data.metricName,V,L,N.data.fill,v,p,N.id,w),L+=M+g):k.length>2?(this.D(N.data.name,N.data.subname,N.data.bodytext,N.data.metricName,D%2==0?A:S,L,N.data.fill,1===k.length?v:C,p,N.id,w),D%2==1&&(L+=M+g)):(this.D(N.data.name,N.data.subname,N.data.bodytext,N.data.metricName,V,L,N.data.fill,v,p,N.id,w),L+=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,w),0===x.id&&x.children)){var T=di(k=null===(u=f[x.id])||void 0===u?void 0:u.children,(function(t){return t.x})),O=vi(k,(function(t){return t.x}));this.k(x.id,x.x,x.y,T,x.children[0].y,!1,v,p,g,O)}}},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(),a="",u=ns(".svgTree").append("text").attr("class","tempText").append("tspan").text(null);e&&u.attr("class",e);for(var s=[];a=o.pop();)if(s.push(a),u.text(s.join(" ")+" "),null!==u.node()&&u.node().getComputedTextLength()>n-i){s.pop(),s.push("...");break}return r=s.join(" ")+" ",u.text(null),is(".tempText").remove(),r},t.prototype.D=function(t,n,i,e,r,o,u,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(a.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:u,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?a.createElement("tspan",{className:this.styleClassNames.rectMetricText,dy:"1.4em",x:d+s/2},e):i?a.createElement(a.Fragment,null,a.createElement("tspan",{className:this.styleClassNames.rectSubText,dy:"1.4em",x:d+s/2},n),a.createElement("tspan",{className:this.styleClassNames.rectBodyText,dy:"1.4em",x:d+s/2},i)):a.createElement("tspan",{className:this.styleClassNames.rectSubText,dy:"1.4em",x:d+s/2},n);n||e||i?this._nodeElements.push(a.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(a.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,a,u,s){var l="M".concat(i-o/2,",").concat(e-u," H").concat(s+o/2," M").concat(t,",").concat(e-u,"\n V").concat(n+a+u/2),c="M".concat(t,",").concat(n+a+u/2," V").concat(n+5*u,"\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,u,s,l,c){void 0===c&&(c=0),this._linkElements.push(a.createElement("path",{className:this.styleClassNames.link,d:this.O(n,i,e,r,o,u,s,l,c),key:"".concat(t).concat(this.styleClassNames.link)}))},t}()),lv=function(t){function n(n){var i,e,r,o,a,u=t.call(this,n)||this;return u._nodeElements=[],u._linkElements=[],u._margin={top:(null===(i=u.props.margins)||void 0===i?void 0:i.top)||30,bottom:(null===(e=u.props.margins)||void 0===e?void 0:e.bottom)||30,left:(null===(r=u.props.margins)||void 0===r?void 0:r.left)||50,right:(null===(o=u.props.margins)||void 0===o?void 0:o.right)||20},u._width=u.props.width||1500,u._height=u.props.height||700,u._treeData=u.props.treeData,u._composition=null===(a=u.props)||void 0===a?void 0:a.composition,u._treeTraversal=u.props.treeTraversal,u.state={_width:u._width,_height:u._height},u}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=uv(e,{theme:n,className:i}),this.F(),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=is("text"),i=is("rect"),e=is("path");0===this._nodeElements.length&&0===this._linkElements.length&&(n.remove(),i.remove(),e.remove()),this.F()}},n.prototype.F=function(){var t=[],n=[],i=new sv(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 a.createElement(Dl,null,a.createElement("div",{className:null===(t=this._classNames)||void 0===t?void 0:t.root},a.createElement("svg",{className:"svgTree",width:this.state._width-this._margin.left-this._margin.right,height:this.state._height-this._margin.top-this._margin.bottom},a.createElement("g",{className:"svgNode"},this._nodeElements.map((function(t){return t}))),a.createElement("g",{className:"svgLink"},this._linkElements.map((function(t){return t}))))))},n}(a.Component),cv=(0,r.I)(lv,(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 fv(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 hv,dv,vv=(0,u.Z)(),pv=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=Oh().x((function(n){return t.x(n.x)})).y0(this.state._height).y1((function(n){return t.y(n.y)})).curve(rs);this.area=n;var i=Yf().x((function(n){return t.x(n.x)})).y((function(n){return t.y(n.y)})).curve(rs);this.line=i;var e=this.props.data.lineChartData[0].data,r=fv(e,(function(t){return t.x})),o=r[0],a=r[1];this.x=We().domain([o,a]).range([this.margin.left,this.state._width-this.margin.right]),this.y=We().domain([0,vi(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 a.createElement(a.Fragment,null,a.createElement("path",{className:"line",d:this.line(this.state._points),fill:"transparent",opacity:1,strokeWidth:2,stroke:this.props.data.lineChartData[0].color}),a.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=vv(this.props.styles,{theme:this.props.theme});return this._isChartEmpty()?a.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):a.createElement(Dl,{direction:Ks.horizontal,isCircularNavigation:!0,className:t.inlineBlock},a.createElement("div",{className:t.inlineBlock},this.state._width>=50&&this.state._height>=16?a.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):a.createElement(a.Fragment,null),this.props.showLegend&&this.props.data.lineChartData[0].legend?a.createElement("svg",{width:this.state._valueTextWidth,height:this.state._height,"data-is-focusable":!0},a.createElement("text",{x:"0%",textAnchor:this._isRTL?"end":"start",dx:8,y:"100%",dy:-5,className:t.valueText},this.props.data.lineChartData[0].legend)):a.createElement(a.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}(a.Component),gv=(0,r.I)(pv,(function(t){return{inlineBlock:{display:"inline"},valueText:(0,o.Cl)((0,o.Cl)({},t.theme.fonts.smallPlus),{fill:t.theme.semanticColors.messageText})}})),mv=(0,u.Z)(),yv=function(t){function n(n){var i,e,r,u,l,c=t.call(this,n)||this;return c._isRtl=(0,s.jI)(),c.X_ORIGIN=0,c.toImage=function(t){var n,i;return Fc(null===(n=c._cartesianChartRef.current)||void 0===n?void 0:n.chartContainer,null===(i=c._legendsRef.current)||void 0===i?void 0:i.toSVG,c._isRtl,t)},c._getDomainNRangeValues=function(t,n,i,e,r,o,a,u,s){var l;return l=o===Ku.NumericAxis?function(t,n,i,e,r,o){var a=Ss(As(t),o),u=a.longestPositiveBar,s=a.longestNegativeBar,l=e?n.left:n.left+r,c=e?i-n.right-r:i-n.right;return e?{dStartValue:u,dEndValue:Math.min(s,o),rStartValue:l,rEndValue:c}:{dStartValue:Math.min(s,o),dEndValue:u,rStartValue:l,rEndValue:c}}(t,n,i,r,s,c.X_ORIGIN):{dStartValue:0,dEndValue:0,rStartValue:0,rEndValue:0},l},c._getMargins=function(t){c.margins=t},c._renderContentForOnlyBars=function(t){var n,i,e,r,o=c.props,u=o.useSingleColor,s=void 0!==u&&u,l=o.enableGradient,f=void 0!==l&&l,h=0;return c.props.data.forEach((function(n,i){n.y===t.y&&(h=i)})),s?(r=c.props.colors?c._createColors()(1):Bf(1,0,null===(n=c.props.theme)||void 0===n?void 0:n.isInverted),f&&(r=ol(0,0,null===(i=c.props.theme)||void 0===i?void 0:i.isInverted)[0])):r=t.color?t.color:c.props.colors?c._createColors()(t.x):Bf(h,0,null===(e=c.props.theme)||void 0===e?void 0:e.isInverted),a.createElement(a.Fragment,null,a.createElement(Js.ChartHoverCard,{XValue:t.xAxisCalloutData||t.x.toString(),Legend:t.legend,YValue:t.yAxisCalloutData||t.y,color:r,culture:c.props.culture}))},c._renderCallout=function(t){return t?c._renderContentForOnlyBars(t):null},c._getCustomizedCallout=function(){return c.props.onRenderCalloutPerDataPoint?c.props.onRenderCalloutPerDataPoint(c.state.dataPointCalloutProps,c._renderCallout):null},c._getGraphData=function(t,n,i,e,r,o){var a=As(c._points),u=Ss(a,c.X_ORIGIN);c._longestBarPositiveTotalValue=u.longestPositiveBar,c._longestBarNegativeTotalValue=u.longestNegativeBar;var s=c._yAxisType===Ju.NumericAxis?c._getScales(i,e,!0):c._getScales(i,e,!1),l=s.xBarScale,f=s.yBarScale,h=a.map((function(t){return c._yAxisType===Ju.NumericAxis?c._createNumericBars(i,e,r,o,t,l,f):c._createStringBars(i,e,r,o,t,l,f)})).flat();return c._bars=h},c._refCallback=function(t,n){c._refArray.push({index:n,refElement:t})},c._getCalloutContentForBar=function(t){var n,i,e,r,o=[],a=c.props,u=a.useSingleColor,s=void 0!==u&&u,l=a.enableGradient,f=void 0!==l&&l,h=c.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=c.props.colors?c._createColors()(1):Bf(1,0,null===(n=c.props.theme)||void 0===n?void 0:n.isInverted),f&&(r=ol(0,0,null===(i=c.props.theme)||void 0===i?void 0:i.isInverted)[0])):r=d[0].color?d[0].color:c.props.colors?c._createColors()(d[0].x):Bf(v,0,null===(e=c.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()}},c._onBarLeave=function(){},c._handleChartMouseLeave=function(){c._calloutAnchorPoint=null,c.setState({isCalloutVisible:!1,activeXdataPoint:null,YValueHover:[],hoverXValue:""})},c._onBarFocus=function(t,n,i){if((!1===c.state.isLegendSelected||c._isLegendHighlighted(t.legend))&&c._calloutAnchorPoint!==t){var e=c._getCalloutContentForBar(t),r=e.YValueHover,o=e.hoverXValue;c._refArray.forEach((function(e,a){n===a&&c.setState({refSelected:e.refElement,isCalloutVisible:!0,selectedLegendTitle:t.legend,dataForHoverCard:t.x,color:c.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})}))}},c._getScales=function(t,n,i){var e=c._longestBarPositiveTotalValue,r=c._longestBarNegativeTotalValue,o=[Math.min(c.X_ORIGIN,r),Math.max(c.X_ORIGIN,e)];if(i){var a=vi(c._points,(function(t){return t.y}));return{xBarScale:We().domain(o).nice().range([c.margins.left,n-c.margins.right]),yBarScale:u=We().domain([0,a]).range([t-c.margins.bottom,c.margins.top])}}var u=za().domain(c._yAxisLabels).range([t-c.margins.bottom-c._barHeight/2,c.margins.top+c._barHeight/2]).padding(c.props.yAxisPadding||0);return{xBarScale:We().domain(o).nice().range([c.margins.left,n-c.margins.right]),yBarScale:u}},c._closeCallout=function(){c.setState({isCalloutVisible:!1})},c._getLegendData=function(t,n){var i=c.props.useSingleColor,e=[],r={};return t.forEach((function(t,n){var e,o,a,u,s=i?c.props.colors?c._createColors()(1):Bf(1,0,null===(e=c.props.theme)||void 0===e?void 0:e.isInverted):t.color;c.props.enableGradient&&(s=(null===(o=t.gradient)||void 0===o?void 0:o[0])||ol(n,0,null===(a=c.props.theme)||void 0===a?void 0:a.isInverted)[0],i&&(s=ol(0,0,null===(u=c.props.theme)||void 0===u?void 0:u.isInverted)[0])),r[t.legend]=s})),Object.entries(r).forEach((function(t){var n=t[0],i=t[1],r={title:n,color:i,hoverAction:function(){c._handleChartMouseLeave(),c._onLegendHover(n)},onMouseOutAction:function(t){c._onLegendLeave(t)}};e.push(r)})),a.createElement(jc,(0,o.Cl)({legends:e,enabledWrapLines:c.props.enabledLegendsWrapLines,overflowProps:c.props.legendsOverflowProps,focusZonePropsInHoverCard:c.props.focusZonePropsForLegendsInHoverCard,overflowText:c.props.legendsOverflowText},c.props.legendProps,{onChange:c._onLegendSelectionChange.bind(c),ref:c._legendsRef}))},c._isLegendSelected=function(){return c.state.isLegendSelected},c._isLegendHighlighted=function(t){return c._getHighlightedLegend().includes(t)},c._getAxisData=function(t){if(t&&t.yAxisDomainValues.length){var n=t.yAxisDomainValues;c._xMax=Math.max(n[n.length-1],c.props.xMaxValue||0)}},c._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,".")},c._getChartTitle=function(){var t=c.props,n=t.chartTitle,i=t.data;return(n?"".concat(n,". "):"")+"Horizontal bar chart with ".concat((null==i?void 0:i.length)||0," bars. ")},sl(c),c.state={color:"",dataForHoverCard:0,isCalloutVisible:!1,isLegendSelected:(null===(i=n.legendProps)||void 0===i?void 0:i.selectedLegends)&&n.legendProps.selectedLegends.length>0||void 0!==(null===(e=n.legendProps)||void 0===e?void 0:e.selectedLegend),isLegendHovered:!1,refSelected:null,selectedLegendTitle:null!==(u=null===(r=n.legendProps)||void 0===r?void 0:r.selectedLegend)&&void 0!==u?u:"",xCalloutValue:"",yCalloutValue:"",activeXdataPoint:null,YValueHover:[],hoverXValue:"",selectedLegends:(null===(l=n.legendProps)||void 0===l?void 0:l.selectedLegends)||[]},c._calloutId=g("callout"),c._tooltipId=g("HBCWATooltipID_"),c._refArray=[],c._xAxisType=c.props.data&&c.props.data.length>0?Bs(c.props.data[0].x,!0):Ku.NumericAxis,c._yAxisType=c.props.data&&c.props.data.length>0?Bs(c.props.data[0].y,!1):Ju.StringAxis,c._cartesianChartRef=a.createRef(),c._legendsRef=a.createRef(),c}return(0,o.C6)(n,t),n.prototype.componentDidUpdate=function(t){var n,i,e;$s(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(vi(this._points,(function(t){return t.x})),this.props.xMaxValue||0);var i=this._getLegendData(this._points,this.props.theme.palette);this._classNames=mv(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),Ps(this.state.callOutAccessibilityData)),r={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return a.createElement(nh,(0,o.Cl)({},this.props,{chartTitle:this._getChartTitle(),points:this._points,chartType:Zu.HorizontalBarChartWithAxis,xAxisType:this._xAxisType,yAxisType:this._yAxisType,stringDatasetForYAxisDomain:this._yAxisLabels,calloutProps:e,tickParams:r,legendBars:i,createYAxis:ps,getDomainNRangeValues:this._getDomainNRangeValues,createStringYAxis:ms,getMinMaxOfYAxis:Ts,barwidth:this._barHeight,focusZoneDirection:Ks.vertical,customizedCallout:this._getCustomizedCallout(),getmargins:this._getMargins,getGraphData:this._getGraphData,getAxisData:this._getAxisData,onChartMouseLeave:this._handleChartMouseLeave,ref:this._cartesianChartRef,children:function(n){return a.createElement(a.Fragment,null,a.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 We().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,r,u,s){var l=this,c=this.props.useSingleColor,f=void 0!==c&&c,h=(0,o.fX)([],r,!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=0,v=0,p=0,m=r.filter((function(t){return t.x>=l.X_ORIGIN})).length,y=r.length-m,b=0,x=0,w=h.map((function(t,i){var e,r,o,c,h,w,C,M,k=!0;(l.state.isLegendHovered||l.state.isLegendSelected)&&(k=l._isLegendHighlighted(t.legend)),l._classNames=mv(l.props.styles,{theme:l.props.theme,legendColor:l.state.color,shouldHighlight:k}),t.x>=l.X_ORIGIN&&++b,t.x<l.X_ORIGIN&&++x;var A,S=l._isRtl?n-(l.margins.right+Math.max(u(t.x+l.X_ORIGIN),u(l.X_ORIGIN))-l.margins.left):Math.min(u(t.x+l.X_ORIGIN),u(l.X_ORIGIN));if(Math.max(s(t.y),0)<1)return a.createElement(a.Fragment,{key:t.x}," ");A=f?l.props.colors?l._createColors()(1):Bf(1,0,null===(e=l.props.theme)||void 0===e?void 0:e.isInverted):l.props.colors?l._createColors()(t.x):Bf(i,0,null===(r=l.props.theme)||void 0===r?void 0:r.isInverted);var V=A=t.color&&!f?t.color:A;if(l.props.enableGradient){var L=Math.max(l._points.findIndex((function(n){return n===t})),0);A=(null===(o=t.gradient)||void 0===o?void 0:o[0])||ol(L,0,null===(c=l.props.theme)||void 0===c?void 0:c.isInverted)[0],V=(null===(h=t.gradient)||void 0===h?void 0:h[1])||ol(L,0,null===(w=l.props.theme)||void 0===w?void 0:w.isInverted)[1],f&&(A=ol(0,0,null===(C=l.props.theme)||void 0===C?void 0:C.isInverted)[0],V=ol(0,0,null===(M=l.props.theme)||void 0===M?void 0:M.isInverted)[1]),l._points[L].color=A}var D=g("HBCWA_Gradient")+"_".concat(i,"_").concat(t.x),N=Math.abs(u(p+l.X_ORIGIN)-u(l.X_ORIGIN));p>l.X_ORIGIN?d+=N:v+=N;var T=Math.abs(u(t.x+l.X_ORIGIN)-u(l.X_ORIGIN)),O=T>2&&(t.x>l.X_ORIGIN&&b!==m||t.x<l.X_ORIGIN&&(0!==m||x>1))?2:0,E=T>2&&(t.x>l.X_ORIGIN&&(0!==y||b>1)||t.x<l.X_ORIGIN&&x!==y)?2:0,B=l.X_ORIGIN;return B=l._isRtl?t.x>l.X_ORIGIN?S-d:S+v:t.x>l.X_ORIGIN?S+d:S-v,p=t.x,a.createElement(a.Fragment,{key:"".concat(i,"_").concat(t.x)},l.props.enableGradient&&a.createElement("defs",null,a.createElement("linearGradient",{id:D},a.createElement("stop",{offset:"0",stopColor:A}),a.createElement("stop",{offset:"100%",stopColor:V}))),a.createElement("rect",{key:t.y,x:B,className:l._classNames.opacityChangeOnHover,y:s(t.y)-l._barHeight/2,"data-is-focusable":k,width:T-(l._isRtl?E:O),height:l._barHeight,ref:function(n){l._refCallback(n,t.legend)},rx:l.props.roundCorners?3:0,onClick:t.onClick,onMouseOver:l._onBarHover.bind(l,t,A),"aria-label":l._getAriaLabel(t),role:"img","aria-labelledby":"toolTip".concat(l._calloutId),onMouseLeave:l._onBarLeave,onFocus:l._onBarFocus.bind(l,t,i,A),onBlur:l._onBarLeave,fill:l.props.enableGradient?"url(#".concat(D,")"):A}))}));return w},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=ns("body").append("div").attr("id",r).attr("class",i).style("opacity",0),a=e.selectAll("#BaseSpan")._groups[0],u=a&&Object.keys(a).length,s=[],l=0;l<u;l++){var c=a[l].dataset&&Object.values(a[l].dataset)[0];s.push(c)}var f=e.selectAll(".tick")._groups[0],h=f&&Object.keys(f).length,d=function(t){ns(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,r,o,u){var s=this,l=this.props.useSingleColor,c=void 0!==l&&l,f=0,h=0,d=0,v=r.filter((function(t){return t.x>=s.X_ORIGIN})).length,p=r.length-v,m=0,y=0,b=r.map((function(t,i){var e,r,l,b,x,w,C,M,k=!0;(s.state.isLegendHovered||s.state.isLegendSelected)&&(k=s._isLegendHighlighted(t.legend)),s._classNames=mv(s.props.styles,{theme:s.props.theme,legendColor:s.state.color,shouldHighlight:k}),t.x>=s.X_ORIGIN&&++m,t.x<s.X_ORIGIN&&++y;var A,S=s._isRtl?n-(s.margins.right+Math.max(o(t.x+s.X_ORIGIN),o(s.X_ORIGIN))-s.margins.left):Math.min(o(t.x+s.X_ORIGIN),o(s.X_ORIGIN));if(Math.max(u(t.y),0)<1)return a.createElement(a.Fragment,{key:t.x}," ");A=c?s.props.colors?s._createColors()(1):Bf(1,0,null===(e=s.props.theme)||void 0===e?void 0:e.isInverted):s.props.colors?s._createColors()(t.x):Bf(i,0,null===(r=s.props.theme)||void 0===r?void 0:r.isInverted);var V=A=t.color&&!c?t.color:A;if(s.props.enableGradient){var L=s._points.findIndex((function(n){return n===t}));A=(null===(l=t.gradient)||void 0===l?void 0:l[0])||ol(L,0,null===(b=s.props.theme)||void 0===b?void 0:b.isInverted)[0],V=(null===(x=t.gradient)||void 0===x?void 0:x[1])||ol(L,0,null===(w=s.props.theme)||void 0===w?void 0:w.isInverted)[1],c&&(A=ol(0,0,null===(C=s.props.theme)||void 0===C?void 0:C.isInverted)[0],V=ol(0,0,null===(M=s.props.theme)||void 0===M?void 0:M.isInverted)[1]),s._points[L].color=A}var D=g("HBCWA_Gradient")+"_".concat(i,"_").concat(t.x),N=Math.abs(o(d+s.X_ORIGIN)-o(s.X_ORIGIN));d>0?f+=N:h+=N;var T=Math.abs(o(t.x+s.X_ORIGIN)-o(s.X_ORIGIN)),O=T>2&&(t.x>s.X_ORIGIN&&m!==v||t.x<s.X_ORIGIN&&(0!==v||y>1))?2:0,E=T>2&&(t.x>s.X_ORIGIN&&(0!==p||m>1)||t.x<s.X_ORIGIN&&y!==p)?2:0;d=t.x;var B=s.X_ORIGIN;return B=s._isRtl?t.x>s.X_ORIGIN?S-f:S+h:t.x>s.X_ORIGIN?S+f:S-h,a.createElement(a.Fragment,{key:"".concat(i,"_").concat(t.x)},s.props.enableGradient&&a.createElement("defs",null,a.createElement("linearGradient",{id:D},a.createElement("stop",{offset:"0",stopColor:A}),a.createElement("stop",{offset:"100%",stopColor:V}))),a.createElement("rect",{transform:"translate(0,".concat(.5*(u.bandwidth()-s._barHeight),")"),key:t.x,className:s._classNames.opacityChangeOnHover,x:B,y:u(t.y),rx:s.props.roundCorners?3:0,width:T-(s._isRtl?E:O),height:s._barHeight,"aria-labelledby":"toolTip".concat(s._calloutId),"aria-label":s._getAriaLabel(t),role:"img",ref:function(n){s._refCallback(n,t.legend)},onClick:t.onClick,onMouseOver:s._onBarHover.bind(s,t,A),onMouseLeave:s._onBarLeave,onBlur:s._onBarLeave,"data-is-focusable":k,onFocus:s._onBarFocus.bind(s,t,i,A),fill:s.props.enableGradient?"url(#".concat(D,")"):A}))}));if(!this.props.showYAxisLablesTooltip)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}if(this.props.showYAxisLablesTooltip){var x=ns(e).call(u);if(!this.state.tooltipElement)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}var w={tooltipCls:this._classNames.tooltip,id:this._tooltipId,yAxis:x};x&&this._tooltipOfYAxislabels(w)}return b},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}(a.Component),bv=(0,r.I)(yv,(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"}(hv||(hv={})),function(t){t.SingleSegment="single-segment",t.MultipleSegments="multiple-segments"}(dv||(dv={}));var xv=[{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}],wv=(0,u.Z)(),Cv=function(t,n,i,e,r){return void 0===r&&(r=!1),r?0===n&&e===dv.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===dv.SingleSegment?"".concat(t.size," (").concat((t.size/i*100).toFixed(),"%)"):"".concat(t.start," - ").concat(t.end)},Mv=function(t,n,i,e,r){return void 0===r&&(r=!1),r?0!==n?t.toString():e===hv.Fraction?"".concat((t/i*100).toFixed(),"%"):"".concat(t,"/").concat(i):"function"==typeof e?e([t-n,i-n]):0!==n?t.toString():e===hv.Fraction?"".concat(t,"/").concat(i):"".concat((t/i*100).toFixed(),"%")},kv=function(t){function n(n){var i,e=t.call(this,n)||this;return e.toImage=function(t){var n;return Fc(e._rootElem,null===(n=e._legendsRef.current)||void 0===n?void 0:n.toSVG,e._isRTL,t)},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=xv.length-1;t>=0;t-=1)if(e._outerRadius>=xv[t].minRadius)return{arcWidth:xv[t].arcWidth,chartValueSize:xv[t].fontSize};return{arcWidth:xv[0].arcWidth,chartValueSize:xv[0].fontSize}},e._processProps=function(){var t=e.props,n=t.minValue,i=void 0===n?0:n,r=t.maxValue,o=t.theme,a=i,u=e.props.segments.map((function(t,n){var i,e=Math.max(t.size,0);return a+=e,{legend:t.legend,size:e,color:void 0!==t.color?Ff(t.color,o.isInverted):Bf(n,0,o.isInverted),gradient:null!==(i=t.gradient)&&void 0!==i?i:ol(n,0,o.isInverted),accessibilityData:t.accessibilityData,start:a-e,end:a}}));void 0!==r&&a<r&&(u.push({legend:"Unknown",size:r-a,color:o.palette.neutralLight,start:a,end:r}),a=r);var s=wf().cornerRadius(e.props.roundCorners?3:0).padAngle(2/e._outerRadius).padRadius(e._outerRadius),l=e._isRTL?Array.from(u).reverse():u,c=-Math.PI/2,f=l.map((function(t,n){var r=c+t.size/(a-i)*Math.PI,o=s({innerRadius:e._innerRadius,outerRadius:e._outerRadius,startAngle:c,endAngle:r});return c=r,{d:o,segmentIndex:e._isRTL?u.length-1-n:n,startAngle:c-t.size/(a-i)*Math.PI,endAngle:r}}));return e._minValue=i,e._maxValue=a,e._segments=u,{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 a.createElement("g",{transform:"rotate(".concat(n,", 0, 0)")},a.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: "+Mv(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])||ol(n,0,e.props.theme.isInverted)[0]:t.color||Bf(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 a.createElement("div",{className:e._classNames.legendsContainer},a.createElement(jc,(0,o.Cl)({legends:t,centerLegends:!0},e.props.legendProps,{onChange:e._onLegendSelectionChange.bind(e),ref:e._legendsRef})))},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 "+Mv(e.props.chartValue,e._minValue,e._maxValue,e.props.chartValueFormat,!0),a=e._segments.map((function(t){var n;return{legend:t.legend,y:Cv(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:a},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=ns("#".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 a.createElement("div",{className:e._classNames.calloutContentRoot},a.createElement("div",{className:e._classNames.calloutDateTimeContainer,style:n?{marginBottom:"11px"}:{}},a.createElement("div",(0,o.Cl)({className:e._classNames.calloutContentX},Ps(t.xAxisCalloutAccessibilityData,"text",!1)),(0,jn.U)(t.hoverXValue,e.props.culture))),a.createElement("div",{className:e._classNames.calloutInfoContainer,style:n?{display:"flex"}:{}},t.YValueHover&&t.YValueHover.map((function(t,i,r){var u=i+1===r.length,s=t.shouldDrawBorderBottom,l=void 0!==s&&s;return a.createElement("div",(0,o.Cl)({},Ps(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,u))})),!!t.descriptionMessage&&a.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. ")},sl(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._legendsRef=a.createRef(),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;$s(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,u=e.chartValueSize;this._innerRadius=this._outerRadius-r;var s=this._processProps().arcs;return this._classNames=wv(this.props.styles,{theme:this.props.theme,className:this.props.className,chartWidth:n,chartHeight:i-this._legendsHeight,chartValueSize:u}),a.createElement("div",{className:this._classNames.root,ref:function(n){return t._rootElem=n}},a.createElement(Dl,{direction:Ks.horizontal},a.createElement("svg",{className:this._classNames.chart,role:"region","aria-label":this._getChartTitle(),onMouseLeave:this._handleMouseOut},a.createElement("g",{transform:"translate(".concat(n/2,", ").concat(i-(this._margins.bottom+this._legendsHeight),")")},this.props.chartTitle&&a.createElement("text",{x:0,y:-(this._outerRadius+11),textAnchor:"middle",className:this._classNames.chartTitle,"aria-hidden":!0},this.props.chartTitle),!this.props.hideMinMax&&a.createElement(a.Fragment,null,a.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)},Hs(this._minValue)),a.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)},Hs(this._maxValue))),s.map((function(n,i){var e,r,u=t._segments[n.segmentIndex],s=g("Arc_clip")+"".concat(i,"_").concat(n.startAngle,"_").concat(n.endAngle),l=wv(t.props.styles,{theme:t.props.theme,solidFill:t.props.enableGradient?"transparent":u.color,gradientFill:"conic-gradient(\n from ".concat(n.startAngle,"rad at 50% 100%,\n ").concat(null===(e=u.gradient)||void 0===e?void 0:e[0],",\n ").concat(null===(r=u.gradient)||void 0===r?void 0:r[1]," ").concat(n.endAngle-n.startAngle,"rad\n )"),opacity:t._legendHighlighted(u.legend)||t._noLegendHighlighted()?1:.1});return a.createElement(a.Fragment,{key:i},a.createElement("path",(0,o.Cl)({d:n.d,strokeWidth:t.state.focusedElement===u.legend?2:0,className:l.segment},Ps((0,o.Cl)({ariaLabel:Cv(u,t._minValue,t._maxValue,t.props.variant,!0)},u.accessibilityData),"img",!0),{onFocus:function(n){return t._handleFocus(n,u.legend)},onBlur:t._handleBlur,onMouseEnter:function(n){return t._handleMouseOver(n,u.legend)},onMouseMove:function(n){return t._handleMouseOver(n,u.legend)},"data-is-focusable":t._legendHighlighted(u.legend)||t._noLegendHighlighted()})),t.props.enableGradient&&a.createElement(a.Fragment,null,a.createElement("clipPath",{id:s},a.createElement("path",{d:n.d})),a.createElement("foreignObject",{x:"-50%",y:"-100%",width:"100%",height:"100%",clipPath:"url(#".concat(s,")")},a.createElement("div",{className:l.gradientSegment}))))})),this._renderNeedle(),a.createElement("g",{onMouseEnter:function(n){return t._handleMouseOver(n,"Chart value")},onMouseMove:function(n){return t._handleMouseOver(n,"Chart value")}},a.createElement(Uf,{content:Mv(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&&a.createElement(Uf,{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&&a.createElement(zn,(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,u=wv(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 a.createElement("div",{style:r},a.createElement("div",{className:"ms-fontWeight-semibold",style:{fontSize:"12pt"}},t.legend," (",l,")"),Object.keys(c).map((function(t){return a.createElement("div",{key:t,className:u.calloutBlockContainer},a.createElement("div",{className:u.calloutlegendText}," ",(0,jn.U)(t,s)),a.createElement("div",{className:u.calloutContentY},(0,jn.U)(c[t],s)))})))}return a.createElement("div",{style:i?r:{}},i&&a.createElement("div",{className:"ms-fontWeight-semibold",style:{fontSize:"12pt"}},t.legend," (",l,")"),a.createElement("div",{id:"".concat(n,"_").concat(t.y),className:u.calloutBlockContainer},o&&a.createElement(Bc,{svgProps:{className:u.shapeStyles},pathProps:{fill:t.color},shape:Os[t.index%Object.keys(Fs).length]}),a.createElement("div",null,a.createElement("div",{className:u.calloutlegendText}," ",t.legend),a.createElement("div",{className:u.calloutContentY},(0,jn.U)(t.yAxisCalloutData?t.yAxisCalloutData:t.y||t.data,s)))))},n}(a.Component),Av=(0,r.I)(kv,(function(t){var n,i,e,r,a=t.theme,u=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:[a.fonts.medium,"ms-GaugeChart",{alignItems:"center",display:"flex",flexDirection:"column",width:"100%",height:"100%"},c],chart:{display:"block",width:s,height:l},limits:{fontSize:Yt.s.small,fontWeight:Yt.BO.semibold,fill:a.palette.neutralPrimary},chartValue:{fontSize:u,fontWeight:Yt.BO.semibold,fill:a.palette.neutralPrimary},sublabel:{fontSize:Yt.s.small,fontWeight:Yt.BO.semibold,fill:a.palette.neutralPrimary},needle:{fill:a.palette.black,stroke:a.semanticColors.bodyBackground},chartTitle:{fontSize:Yt.s.small,fill:a.palette.neutralPrimary},segment:{outline:"none",stroke:a.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:a.semanticColors.bodyBackground,backgroundBlendMode:"normal, luminosity"}],calloutDateTimeContainer:{display:"flex",flexDirection:"row",justifyContent:"space-between"},calloutContentX:[(0,o.Cl)((0,o.Cl)({},a.fonts.small),{lineHeight:"16px",opacity:"0.85",color:a.semanticColors.bodySubtext})],calloutBlockContainer:[a.fonts.mediumPlus,{marginTop:"13px",color:a.semanticColors.bodyText},!h&&{selectors:(n={},n[Yt.up]={forcedColorAdjust:"none"},n),borderLeft:"4px solid ".concat(f),paddingLeft:"8px"},h&&{display:"flex"}],shapeStyles:{marginRight:"8px"},calloutlegendText:(0,o.Cl)((0,o.Cl)({},a.fonts.small),{lineHeight:"16px",selectors:(i={},i[Yt.NK]={color:"rgb(255, 255, 255)"},i),color:a.semanticColors.bodySubtext}),calloutContentY:[(0,o.Cl)((0,o.Cl)({},a.fonts.mediumPlus),{fontWeight:"bold",lineHeight:"22px",selectors:(e={},e[Yt.NK]={color:"rgb(255, 255, 255)"},e)})],descriptionMessage:[a.fonts.small,{selectors:(r={},r[Yt.NK]={color:"rgb(255, 255, 255)"},r),color:a.semanticColors.bodyText,marginTop:"10px",paddingTop:"10px",borderTop:"1px solid ".concat(a.semanticColors.menuDivider)}]}})),Sv=i(927),Vv=a.createContext(void 0);function Lv(t){const n=(4-t.length%4)%4;return t+"=".repeat(n)}function Dv(t){if("string"!=typeof t)return!1;if(t.length%4!=0&&(t=Lv(t)),!/^[A-Za-z0-9+/]+={0,2}$/.test(t))return!1;try{return Nv(t),!0}catch{return!1}}function Nv(t){if("undefined"!=typeof window&&"function"==typeof atob){const n=atob(t),i=n.length,e=new Uint8Array(i);for(let t=0;t<i;t++)e[t]=n.charCodeAt(t);return e}throw new Error("Base64 decoding is not supported in this environment.")}function Tv(t,n){t=Lv(t);try{const i=Nv(t);switch(n){case"f8":return Array.from(new Float64Array(i.buffer));case"i8":case"i4":return Array.from(new Int32Array(i.buffer));case"u8":return Array.from(new Uint32Array(i.buffer));case"i2":return Array.from(new Int16Array(i.buffer));case"i1":return Array.from(new Int8Array(i.buffer));default:try{return i.toString()}catch(t){return i}}}catch(n){throw new Error(`Failed to decode base64 value: ${t}`)}}function Ov(t){for(const[n,i]of Object.entries(t))if("object"!=typeof i||Array.isArray(i)||null===i){if("bdata"===n&&"string"==typeof i&&Dv(i)){const e=t.dtype||"utf-8";t[n]=Tv(i,e)}else if(Array.isArray(i))for(let t=0;t<i.length;t++)"object"==typeof i[t]&&null!==i[t]&&Ov(i[t])}else Ov(i)}function Ev(t){const n=JSON.parse(JSON.stringify(t.data));if(Ov(t.data),JSON.stringify(t.data)!==JSON.stringify(n)){let n=!1;for(const i of t.data||[])if(["y","x","z","r","theta"].forEach((t=>{if(i[t]&&"object"==typeof i[t]&&"bdata"in i[t]){const e=i[t].bdata;Array.isArray(e)&&e.some((t=>"number"==typeof t&&isNaN(t)))?n=!0:i[t]=e}})),n)break;if(!n)return t}return t.data=n,t}const Bv=["pie","bar","scatter","heatmap","sankey","indicator","gauge","histogram","histogram2d"],Fv="Unsupported chart - type :",Pv=t=>{const n=new Date(Date.parse(t));if(isNaN(n.getTime()))return!1;const i=n.getFullYear();return!!(/\b\d{4}\b/.test(t)||2e3!==i&&2001!==i)},_v=t=>!isNaN(parseFloat(t))&&isFinite(t),Hv=(t,n,...i)=>!!jv(t)&&0!==t.length&&(Array.isArray(t[0])?t.every((t=>t.every((t=>n(t,...i))))):t.every((t=>n(t,...i)))),Iv=t=>Hv(t,Pv),Wv=t=>Hv(t,_v),Rv=t=>!Bv.includes(`${t.type}`)&&Array.isArray(t.x)&&Hv(t.y,(t=>"number"==typeof t))&&t.x.length>0&&t.x.length===t.y.length,zv=(t,n=0)=>{if(n>15)throw new Error("Maximum json depth exceeded");if("object"==typeof t&&null!==t)for(const i in t)t.hasOwnProperty(i)&&("string"==typeof t[i]?t[i]=t[i].replace(/</g,"&lt;").replace(/>/g,"&gt;"):t[i]=zv(t[i],n+1));return t};function jv(t){return Array.isArray(t)||function(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}(t)}const $v=(t,n)=>{if(!(t=>!(Array.isArray(t.x)&&t.x.length>0&&Array.isArray(t.x[0])||Array.isArray(t.y)&&t.y.length>0&&Array.isArray(t.y[0])))(t))throw new Error("Invalid 2D series encountered.");if(n&&!Wv(t.y))throw new Error("Non numeric Y values encountered.")},Yv={indicator:[t=>{var n;if(!(null===(n=t.mode)||void 0===n?void 0:n.includes("gauge")))throw new Error(`${Fv} ${t.type}, mode: ${t.mode}`)}],histogram:[t=>$v(t,!1)],contour:[t=>{throw new Error(`${Fv} ${t.type}`)}],bar:[t=>(t=>{if("h"===t.orientation&&void 0!==t.base)throw new Error(`${Fv} Gantt`);"h"===t.orientation&&Wv(t.x)?$v(t,!1):$v(t,!0)})(t)],scatter:[t=>(t=>{if("markers"===t.mode&&!Wv(t.x))throw new Error(`${Fv} ${t.type}, mode: ${t.mode}, xAxisType: String or Date`);$v(t,!0)})(t)],scatterpolar:[t=>{if(!Wv(t.theta))throw new Error(`${Fv} ${t.type}, Non numeric theta values`);if(!Wv(t.r))throw new Error(`${Fv} ${t.type}, Non numeric r values`)}]};var Xv=Array.prototype,Gv=Xv.slice;function qv(t){return()=>t}function Uv(t){return t}function Zv(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)}function Kv(t,n,i){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-n),t._y2+t._k*(t._y1-i),t._x2,t._y2)}function Jv(t,n){this._context=t,this._k=(1-n)/6}Xv.map,Jv.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Kv(this,this._x1,this._y1)}(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,this._x1=t,this._y1=n;break;case 2:this._point=3;default:Kv(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var Qv=function t(n){function i(t){return new Jv(t,n)}return i.tension=function(n){return t(+n)},i}(0),tp={dot:{strokeDasharray:"1, 5",strokeLinecap:"round",strokeWidth:"2",lineBorderWidth:"4"},dash:{strokeDasharray:"5, 5",strokeLinecap:"butt",strokeWidth:"2",lineBorderWidth:"4"},longdash:{strokeDasharray:"10, 5",strokeLinecap:"butt",strokeWidth:"2",lineBorderWidth:"4"},dashdot:{strokeDasharray:"5, 5, 1, 5",strokeLinecap:"butt",strokeWidth:"2",lineBorderWidth:"4"},longdashdot:{strokeDasharray:"10, 5, 1, 5",strokeLinecap:"butt",strokeWidth:"2",lineBorderWidth:"4"},solid:{strokeDasharray:"0",strokeLinecap:"butt",strokeWidth:"2",lineBorderWidth:"4"}},np=function(t){var n=fo("%B"),i=fo("%b");return null!==n(t)||null!==i(t)},ip=function(t,n){return t.name||"Series ".concat(n+1)};function ep(t){var n,i,e,r,o,a,u,s,l,c,f,h;return{chartTitle:"string"==typeof(null==t?void 0:t.title)?t.title:null!==(i=null===(n=null==t?void 0:t.title)||void 0===n?void 0:n.text)&&void 0!==i?i:"",xAxisTitle:"string"==typeof(null===(e=null==t?void 0:t.xaxis)||void 0===e?void 0:e.title)?null===(r=null==t?void 0:t.xaxis)||void 0===r?void 0:r.title:null!==(u=null===(a=null===(o=null==t?void 0:t.xaxis)||void 0===o?void 0:o.title)||void 0===a?void 0:a.text)&&void 0!==u?u:"",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:null!==(h=null===(f=null===(c=null==t?void 0:t.yaxis)||void 0===c?void 0:c.title)||void 0===f?void 0:f.text)&&void 0!==h?h:""}}var rp=function(t){var n=(new Date).getFullYear();if(t.length>0&&Array.isArray(t[0]))throw new Error("updateXValues:: 2D array not supported");for(var 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(),a=i[e].getFullYear(),u=i[e-1].getFullYear();o>=r?i[e-1].setFullYear(i[e].getFullYear()-1):u>a&&i[e-1].setFullYear(a)}return t.map((function(t,n){return"".concat(t," 01, ").concat(i[n].getFullYear())}))},op=function(t,n,i){if(!n.current.has(t)){var e=Bf(n.current.size+1,0,i);return n.current.set(t,e),e}return n.current.get(t)},ap=function(t){return"y2"===t.yaxis},up=function(t,n,i,e){var r,o,a,u,s,l,c=!1;return t.forEach((function(t){if(ap(t)){c=!0;var n=t.y;n&&(s=Math.min.apply(Math,n),l=Math.max.apply(Math,n))}})),c?("number"==typeof s&&"number"==typeof i&&(s=Math.min(s,i)),"number"==typeof l&&"number"==typeof e&&(l=Math.max(l,e)),(null===(r=null==n?void 0:n.yaxis2)||void 0===r?void 0:r.range)&&(s=n.yaxis2.range[0],l=n.yaxis2.range[1]),{secondaryYAxistitle:"string"==typeof(null===(o=null==n?void 0:n.yaxis2)||void 0===o?void 0:o.title)?n.yaxis2.title:"string"==typeof(null===(u=null===(a=null==n?void 0:n.yaxis2)||void 0===a?void 0:a.title)||void 0===u?void 0:u.text)?n.yaxis2.title.text:void 0,secondaryYScaleOptions:{yMinValue:s,yMaxValue:l}}):{}},sp=function(t,n,i,e){var r,a,u,s={},l=0,c=up(t.data,t.layout);t.data.forEach((function(t,r){var a;null===(a=t.x)||void 0===a||a.forEach((function(a,u){var c,f;s[a]||(s[a]={xAxisPoint:a,chartData:[],lineData:[]});var h=ip(t,r),d=null!==(f=null===(c=t.y)||void 0===c?void 0:c[u])&&void 0!==f?f:0;if("bar"===t.type){var v=op(h,n,i);s[a].chartData.push({legend:h,data:d,color:v}),l=Math.max(l,d)}else if("scatter"===t.type||Rv(t)||e){v=op(h,n,i);var p=lp(t.line);s[a].lineData.push((0,o.Cl)((0,o.Cl)({legend:h,y:d,color:v},p?{lineOptions:p}:{}),{useSecondaryYScale:ap(t)})),ap(t)||(l=Math.max(l,d))}}))}));var f=ep(t.layout),h=f.chartTitle,d=f.xAxisTitle,v=f.yAxisTitle;return(0,o.Cl)((0,o.Cl)({data:Object.values(s),width:null===(r=t.layout)||void 0===r?void 0:r.width,height:null!==(u=null===(a=t.layout)||void 0===a?void 0:a.height)&&void 0!==u?u:350,barWidth:"auto",yMaxValue:l,chartTitle:h,xAxisTitle:d,yAxisTitle:v,mode:"plotly"},c),{hideTickOverlap:!0})};function lp(t){if(t){var n={};switch(t.dash&&(n=(0,o.Cl)((0,o.Cl)({},n),tp[t.dash])),t.shape){case"spline":var i="number"==typeof t.smoothing?t.smoothing:1;n.curve=Qv.tension(1-i/1.3);break;case"hv":n.curve="stepAfter";break;case"vh":n.curve="stepBefore";break;case"hvh":n.curve="step";break;default:n.curve="linear"}return Object.keys(n).length>0?n:void 0}}var cp=function(t){return Hv(t,(function(t){return"string"==typeof t}))},fp=function(t,n,i){return null==n?-1:i?t.findIndex((function(t){return t.includes(n)})):t.findIndex((function(i,e){return n>=i.x0&&(e===t.length-1?n<=i.x1:n<i.x1)}))},hp=function(t){return t.x1-t.x0},dp=function(t){return(t.x1+t.x0)/2},vp=function(t,n,i,e){if(!t||0===t.length)return[];if(cp(t)){var r=Array.from(new Set(t)),o="number"==typeof n?Math.ceil(n):0,a="number"==typeof i?Math.floor(i)+1:r.length,u="number"==typeof e?e:1;return Pa(o,a,u).map((function(t){return r.slice(t,t+u)}))}var s=We().domain(fv(t)).nice().domain(),l=s[0],c=s[1];l="number"==typeof n?n:l,c="number"==typeof i?i:c;var f=function(){var t=Uv,n=fv,i=Zv;function e(e){Array.isArray(e)||(e=Array.from(e));var r,o,a,u=e.length,s=new Array(u);for(r=0;r<u;++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===fv&&([c,f]=hi(c,f,i)),(h=li(c,f,i))[0]<=c&&(a=ci(c,f,i)),h[h.length-1]>=f)if(t>=f&&n===fv){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(a)){if(a>0)for(r=0;r<u;++r)null!=(o=s[r])&&c<=o&&o<=f&&m[Math.min(d,Math.floor((o-c)/a))].push(e[r]);else if(a<0)for(r=0;r<u;++r)if(null!=(o=s[r])&&c<=o&&o<=f){const t=Math.floor((c-o)*a);m[Math.min(d,t+(h[t]<=o))].push(e[r])}}else for(r=0;r<u;++r)null!=(o=s[r])&&c<=o&&o<=f&&m[wi(h,o,0,d)].push(e[r]);return m}return e.value=function(n){return arguments.length?(t="function"==typeof n?n:qv(n),e):t},e.domain=function(t){return arguments.length?(n="function"==typeof t?t:qv([t[0],t[1]]),e):n},e.thresholds=function(t){return arguments.length?(i="function"==typeof t?t:qv(Array.isArray(t)?Gv.call(t):t),e):i},e}().domain([l,c]);if("number"==typeof e&&e>0){for(var h=[],d=Math.max(mp(l),mp(e)),v=yp(l,d);v<yp(c+e,d);)h.push(v),v=yp(v+e,d);return l=h[0],c=h[h.length-1],f.domain([l,c]).thresholds(h),f(t).slice(0,-1)}return f(t)},pp=function(t,n){var i,e;switch(t){case"sum":return bd(n);case"avg":return 0===n.length?0:bd(n)/n.length;case"min":return null!==(i=di(n))&&void 0!==i?i:0;case"max":return null!==(e=vi(n))&&void 0!==e?e:0;default:return n.length}},gp=function(t,n,i,e,r){switch(void 0===r&&(r=1),t){case"percent":return 0===i?0:n/i*100;case"probability":return 0===i?0:n/i;case"density":return e*r==0?0:n/(e*r);case"probability density":return i*e*r==0?0:n/(i*e*r);default:return n}},mp=function(t){var n,i;return null!==(i=null===(n=t.toString().split(".")[1])||void 0===n?void 0:n.length)&&void 0!==i?i:0},yp=function(t,n){var i=Math.pow(10,n);return Math.round(t*i)/i},bp=function(t){var n,i,e=a.useRef(null),r=a.useRef(),u=a.useState({}),s=u[0],c=u[1];r.current=t.onResize,a.useEffect((function(){var t,n,i=(0,l.z)(e.current);return i&&i.ResizeObserver&&(n=new i.ResizeObserver((function(n){var e,o=n[0].contentRect,a=o.width,u=o.height;t=null==i?void 0:i.requestAnimationFrame((function(){c((function(t){var n=Math.floor(a),i=Math.floor(u);return t.containerWidth===n&&t.containerHeight===i?t:{containerWidth:n,containerHeight:i}}))})),null===(e=r.current)||void 0===e||e.call(r,a,u)})),e.current&&n.observe(e.current)),function(){t&&(null==i||i.cancelAnimationFrame(t)),null==n||n.disconnect()}}),[]);var f=a.useMemo((function(){var n=s.containerWidth,i=s.containerHeight;return"number"==typeof t.aspect&&t.aspect>0&&(n?i=n/t.aspect:i&&(n=i*t.aspect),"number"==typeof t.maxHeight&&i&&i>t.maxHeight&&(i=t.maxHeight)),a.Children.map(t.children,(function(t){var e;return a.cloneElement(t,{width:n,height:i,shouldResize:(null!=n?n:0)+(null!=i?i:0),styles:(0,o.Cl)((0,o.Cl)({},t.props.styles),{root:(0,o.Cl)((0,o.Cl)({},null===(e=t.props.styles)||void 0===e?void 0:e.root),{width:n,height:i})})})}))}),[s,t.aspect,t.maxHeight,t.children]);return a.createElement("div",{ref:e,style:{width:null!==(n=t.width)&&void 0!==n?n:"100%",height:null!==(i=t.height)&&void 0!==i?i:"100%",minWidth:t.minWidth,minHeight:t.minHeight,maxHeight:t.maxHeight}},f)};function xp(t){return function(n){var i=n.aspect,e=n.width,r=n.height,u=n.minWidth,s=n.minHeight,l=n.maxHeight,c=n.onResize,f=(0,o.Tt)(n,["aspect","width","height","minWidth","minHeight","maxHeight","onResize"]);return a.createElement(bp,{aspect:i,width:e,height:r,minWidth:u,minHeight:s,maxHeight:l,onResize:c},a.createElement(t,(0,o.Cl)({},f)))}}var wp=xp(Rf),Cp=xp(ud),Mp=xp(xh),kp=xp(bv),Ap=xp(_h),Sp=xp(pd),Vp=xp(Gd),Lp=xp(Av),Dp=xp(fd),Np=xp(rd),Tp=a.forwardRef((function(t,n){var i,e,r=zv(t.chartSchema).plotlySchema,u=(t=>{var n;try{zv(t)}catch(t){return{isValid:!1,errorMessage:`Invalid JSON: ${t}`}}try{let i=(t=>{try{const n=t;if(!n)throw new Error("Plotly input is null or undefined");if(!n.data)throw new Error("Plotly input data is null or undefined");if(0===n.data.length)throw new Error("Plotly input data is empty");return n}catch(t){throw new Error(`Invalid plotly schema: ${t}`)}})(t);try{i=Ev(i)}catch(t){return{isValid:!1,errorMessage:`Failed to decode plotly schema: ${t}`}}const e=(t=>{const n=[],i=t.map(((t,i)=>{let e=t.type;if(Rv(t)&&(e="scatter"),e&&Yv[e]){const r=Yv[e];for(const e of r)try{e(t)}catch(t){return n.push(`data[${i}]: ${t}`),[-1,""]}}return[i,""]})).filter((t=>t[0]>=0));if(0===i.length)throw new Error(n.join("; "));return i})(i.data),r=i.data[e[0][0]];switch(r.type){case"pie":return{isValid:!0,type:"donut",validTracesInfo:e};case"histogram2d":case"heatmap":return{isValid:!0,type:"heatmap",validTracesInfo:e};case"sankey":return{isValid:!0,type:"sankey",validTracesInfo:e};case"indicator":case"gauge":return{isValid:!0,type:"gauge",validTracesInfo:e};case"histogram":return{isValid:!0,type:"verticalbar",validTracesInfo:e};case"scatterpolar":return{isValid:!0,type:"scatterpolar",validTracesInfo:e};default:const t=e.some((t=>"bar"===i.data[t[0]].type)),o=e.some((t=>"scatter"===i.data[t[0]].type||Rv(i.data[t[0]])));if(t&&o)return{isValid:!0,type:"verticalstackedbar",validTracesInfo:e};if(t){const t=r;return"h"===t.orientation&&Wv(t.x)?{isValid:!0,type:"horizontalbar",validTracesInfo:e}:["group","overlay"].includes(null===(n=null==i?void 0:i.layout)||void 0===n?void 0:n.barmode)?{isValid:!0,type:"groupedverticalbar",validTracesInfo:e}:{isValid:!0,type:"verticalstackedbar",validTracesInfo:e}}if(o){const t=r,n=e.some((t=>{const n=i.data[t[0]];return"tonexty"===n.fill||"tozeroy"===n.fill||!!n.stackgroup})),o=Iv(t.x),a=Wv(t.x);return o||a?{isValid:!0,type:n?"area":"line",validTracesInfo:e}:{isValid:!0,type:"fallback",validTracesInfo:e}}return{isValid:!1,errorMessage:`${Fv} :${r.type}`}}}catch(t){return{isValid:!1,errorMessage:`Invalid plotly schema: ${t}`}}})(r);if(!u.isValid)throw new Error("Invalid chart schema: ".concat(u.errorMessage));var s=r;try{s=Ev(s)}catch(t){throw new Error("Failed to decode plotly schema: ".concat(t))}var l=(0,o.Cl)((0,o.Cl)({},s),{data:u.validTracesInfo.map((function(t){return s.data[t[0]]}))}),c=r.selectedLegends,f=a.useRef(new Map),h=function(){var t=a.useContext(Vv),n=(0,Sv.m)(["theme"]).theme;return t||n||(0,wn.a)({})}(),d=null!==(i=null==h?void 0:h.isInverted)&&void 0!==i&&i,v=a.useRef(null);jv(c)||(c=[]);var p=a.useState(c),g=p[0],m=p[1];a.useEffect((function(){var n=zv(t.chartSchema).plotlySchema.selectedLegends;m(null!=n?n:[])}),[t.chartSchema]);var y={legendProps:{canSelectMultipleLegends:!0,onChange:function(n){m(n),t.onSchemaChange&&t.onSchemaChange({plotlySchema:{plotlyInput:s,selectedLegends:n}})},selectedLegends:g},componentRef:v,calloutProps:{layerProps:{eventBubblingEnabled:!0}}},b=function(t,n){var i,e="markers"===(null===(i=t[0])||void 0===i?void 0:i.mode),r=(0,o.Cl)((0,o.Cl)({},function(t,n,i,e){var r,a,u,s,l,c,f=up(t.data,t.layout,n?0:void 0,n?0:void 0),h="tonexty",d=t.data.map((function(t,n){var r=t.x,a="string"==typeof r[0],u=Iv(r),s=Wv(r),l=ip(t,n),c=op(l,i,e);h="tozeroy"===t.fill?"tozeroy":"tonexty";var f=lp(t.line);return(0,o.Cl)((0,o.Cl)({legend:l,data:r.map((function(n,i){var e,r;return(0,o.Cl)({x:a?u?new Date(n):s?parseFloat(n):n:n,y:t.y[i]},Array.isArray(null===(e=t.marker)||void 0===e?void 0:e.size)?{markerSize:t.marker.size[i]}:"number"==typeof(null===(r=t.marker)||void 0===r?void 0:r.size)?{markerSize:t.marker.size}:{})})),color:c},f?{lineOptions:f}:{}),{useSecondaryYScale:ap(t)})})),v=Ds(d),p=ep(t.layout),g=p.chartTitle,m=p.xAxisTitle,y=p.yAxisTitle,b={chartTitle:g,lineChartData:d};return n?(0,o.Cl)((0,o.Cl)({data:b,supportNegativeData:!0,xAxisTitle:m,yAxisTitle:y},f),{mode:h,width:null===(r=t.layout)||void 0===r?void 0:r.width,height:null!==(u=null===(a=t.layout)||void 0===a?void 0:a.height)&&void 0!==u?u:350,hideTickOverlap:!0}):(0,o.Cl)((0,o.Cl)({data:b,supportNegativeData:!0,xAxisTitle:m,yAxisTitle:y},f),{roundedTicks:!0,yMinValue:v.startValue,yMaxValue:v.endValue,width:null===(s=t.layout)||void 0===s?void 0:s.width,height:null!==(c=null===(l=t.layout)||void 0===l?void 0:l.height)&&void 0!==c?c:350,hideTickOverlap:!0,enableReflow:!1})}({data:t,layout:s.layout},n,f,d)),y);return n?a.createElement(Ap,(0,o.Cl)({},r)):a.createElement(Mp,(0,o.Cl)({},r,{lineMode:e?"scatter":"default"}))},x=a.useCallback((function(t){return new Promise((function(n,i){if(!v.current||"function"!=typeof v.current.toImage)return i(Error("Chart cannot be exported as image"));v.current.toImage((0,o.Cl)({background:h.semanticColors.bodyBackground,scale:5},t)).then(n).catch(i)}))}),[h]);switch(a.useImperativeHandle(t.componentRef,(function(){return{exportAsImage:x}}),[x]),u.type){case"donut":return a.createElement(wp,(0,o.Cl)({},function(t,n,i){var e,r,o,a,u,s,l,c=t.data[0],f={};null===(e=c.labels)||void 0===e||e.forEach((function(t,e){var r,o=op(t,n,i),a="number"==typeof(null===(r=c.values)||void 0===r?void 0:r[e])?c.values[e]:1;f[t]?f[t].data+=a:f[t]={legend:t,data:a,color:o}}));var h=null!==(o=null===(r=t.layout)||void 0===r?void 0:r.width)&&void 0!==o?o:440,d=null!==(u=null===(a=t.layout)||void 0===a?void 0:a.height)&&void 0!==u?u:220,v=!!c.textinfo&&!["value","percent","label+percent"].includes(c.textinfo),p=v?0:80,g=40+(v?0:40),m=c.hole?c.hole*(Math.min(h-p,d-g)/2):0;return{data:{chartTitle:ep(t.layout).chartTitle,chartData:Object.values(f)},hideLegend:!1===(null===(s=t.layout)||void 0===s?void 0:s.showlegend),width:null===(l=t.layout)||void 0===l?void 0:l.width,height:d,innerRadius:m,hideLabels:v,showLabelsInPercent:!c.textinfo||["percent","label+percent"].includes(c.textinfo)}}(l,f,d),y));case"horizontalbar":return a.createElement(kp,(0,o.Cl)({},function(t,n,i){var e,r,o,a,u,s,l,c,f,h,d,v,p,g,m,y,b=t.data.map((function(t,e){return t.y.map((function(e,r){var o,a=null!==(o=t.name)&&void 0!==o?o:e,u=op(a,n,i);return{x:t.x[r],y:e,legend:a,color:u}}))})).reverse().flat().reverse(),x=null!==(r=null===(e=t.layout)||void 0===e?void 0:e.height)&&void 0!==r?r:450,w=x-(null!==(u=null===(a=null===(o=t.layout)||void 0===o?void 0:o.margin)||void 0===a?void 0:a.l)&&void 0!==u?u:0)-(null!==(c=null===(l=null===(s=t.layout)||void 0===s?void 0:s.margin)||void 0===l?void 0:l.pad)&&void 0!==c?c:0),C=t.data.reduce((function(t,n){var i;return t+((null===(i=n.y)||void 0===i?void 0:i.length)||0)}),0),M=w/(C*(1+1/(1+.01*C))),k=ep(t.layout);return{data:b,chartTitle:k.chartTitle,xAxisTitle:k.xAxisTitle,yAxisTitle:k.yAxisTitle,secondaryYAxistitle:"string"==typeof(null===(h=null===(f=t.layout)||void 0===f?void 0:f.yaxis2)||void 0===h?void 0:h.title)?null===(v=null===(d=t.layout)||void 0===d?void 0:d.yaxis2)||void 0===v?void 0:v.title:(null===(m=null===(g=null===(p=t.layout)||void 0===p?void 0:p.yaxis2)||void 0===g?void 0:g.title)||void 0===m?void 0:m.text)||"",barHeight:M,showYAxisLables:!0,height:x,width:null===(y=t.layout)||void 0===y?void 0:y.width,hideTickOverlap:!0}}(l,f,d),y));case"groupedverticalbar":return a.createElement(Dp,(0,o.Cl)({},function(t,n,i){var e,r,a,u={},s=up(t.data,t.layout,0,0);t.data.forEach((function(t,e){var r;null===(r=t.x)||void 0===r||r.forEach((function(r,o){var a,s;if(u[r]||(u[r]={name:r.toString(),series:[]}),"bar"===t.type){var l=ip(t,e),c=op(l,n,i);u[r].series.push({key:l,data:null!==(s=null===(a=t.y)||void 0===a?void 0:a[o])&&void 0!==s?s:0,xAxisCalloutData:r,color:c,legend:l,useSecondaryYScale:ap(t)})}}))}));var l=ep(t.layout),c=l.chartTitle,f=l.xAxisTitle,h=l.yAxisTitle;return(0,o.Cl)((0,o.Cl)({data:Object.values(u),width:null===(e=t.layout)||void 0===e?void 0:e.width,height:null!==(a=null===(r=t.layout)||void 0===r?void 0:r.height)&&void 0!==a?a:350,barwidth:"auto",chartTitle:c,xAxisTitle:f,yAxisTitle:h,mode:"plotly"},s),{hideTickOverlap:!0})}(l,f,d),y));case"verticalstackedbar":return a.createElement(Cp,(0,o.Cl)({},sp(l,f,d),y));case"heatmap":return a.createElement(Sp,(0,o.Cl)({},function(t){var n,i,e,r,o,a,u,s,l,c,f,h,d=t.data[0],v=[],p=Number.POSITIVE_INFINITY,g=Number.NEGATIVE_INFINITY;if("histogram2d"===d.type){var m=cp(d.x),y=cp(d.y),b=vp(d.x,null===(n=d.xbins)||void 0===n?void 0:n.start,null===(i=d.xbins)||void 0===i?void 0:i.end,null===(e=d.xbins)||void 0===e?void 0:e.size),x=vp(d.y,null===(r=d.ybins)||void 0===r?void 0:r.start,null===(o=d.ybins)||void 0===o?void 0:o.end,null===(a=d.ybins)||void 0===a?void 0:a.size),w=x.map((function(){return b.map((function(){return[]}))})),C=0;null===(u=d.x)||void 0===u||u.forEach((function(t,n){var i,e,r,o=fp(b,t,m),a=fp(x,null===(i=d.y)||void 0===i?void 0:i[n],y);-1!==o&&-1!==a&&w[a][o].push(null!==(r=null===(e=d.z)||void 0===e?void 0:e[n])&&void 0!==r?r:1)}));var M=w.map((function(t){return t.map((function(t){var n=pp(d.histfunc,t);return C+=n,n}))}));b.forEach((function(t,n){x.forEach((function(i,e){var r=gp(d.histnorm,M[e][n],C,m?t.length:hp(t),y?i.length:hp(i));v.push({x:m?t.join(", "):dp(t),y:y?i.join(", "):dp(i),value:r,rectText:r}),"number"==typeof r&&(p=Math.min(p,r),g=Math.max(g,r))}))}))}else null===(s=d.x)||void 0===s||s.forEach((function(n,i){var e;null===(e=d.y)||void 0===e||e.forEach((function(e,r){var o,a,u,s,l,c,f=null===(a=null===(o=d.z)||void 0===o?void 0:o[r])||void 0===a?void 0:a[i];v.push({x:"date"===(null===(s=null===(u=t.layout)||void 0===u?void 0:u.xaxis)||void 0===s?void 0:s.type)||null!=n?n:0,y:(null===(c=null===(l=t.layout)||void 0===l?void 0:l.yaxis)||void 0===c||c.type,e),value:f,rectText:f}),"number"==typeof f&&(p=Math.min(p,f),g=Math.max(g,f))}))}));var k={legend:null!==(l=d.name)&&void 0!==l?l:"",data:v,value:0},A=[p,(g+p)/2,g],S=[Ff(Lf.color1),Ff(Lf.color2),Ff(Lf.color3)],V=Array.isArray(d.colorscale)?d.colorscale.map((function(t){return t[0]*(g-p)+p})):A,L=Array.isArray(d.colorscale)?d.colorscale.map((function(t){return t[1]})):S,D=ep(t.layout);return{data:[k],domainValuesForColorScale:V,rangeValuesForColorScale:L,hideLegend:!0,showYAxisLables:!0,chartTitle:D.chartTitle,xAxisTitle:D.xAxisTitle,yAxisTitle:D.yAxisTitle,sortOrder:"none",width:null===(c=t.layout)||void 0===c?void 0:c.width,height:null!==(h=null===(f=t.layout)||void 0===f?void 0:f.height)&&void 0!==h?h:350,hideTickOverlap:!0}}(l),y,{legendProps:{}}));case"sankey":return a.createElement(Vp,(0,o.Cl)({},function(t,n,i){var e,r,a,u,s,l,c,f,h=t.data[0],d=h.link,v=h.node,p=(null!==(e=null==d?void 0:d.value)&&void 0!==e?e:[]).map((function(t,n){return{value:t,source:null==d?void 0:d.source[n],target:null==d?void 0:d.target[n]}})).filter((function(t){return t.source>=0&&t.target>=0&&t.source!==t.target})),g={nodes:null===(r=v.label)||void 0===r?void 0:r.map((function(t,e){return{nodeId:e,name:t,color:op(t,n,i)}})),links:p.map((function(t,n){return(0,o.Cl)({},t)}))},m={root:(0,o.Cl)({},(null===(u=null===(a=t.layout)||void 0===a?void 0:a.font)||void 0===u?void 0:u.size)?{fontSize:null===(s=t.layout.font)||void 0===s?void 0:s.size}:{})};return{data:{chartTitle:ep(t.layout).chartTitle,SankeyChartData:g},width:null===(l=t.layout)||void 0===l?void 0:l.width,height:null!==(f=null===(c=t.layout)||void 0===c?void 0:c.height)&&void 0!==f?f:468,styles:m,enableReflow:!0}}(l,f,d),y));case"gauge":return a.createElement(Lp,(0,o.Cl)({},function(t,n,i){var e,r,o,a,u,s,l,c,f,h,d,v,p,g,m,y,b,x,w,C,M,k,A,S,V,L,D,N,T,O,E,B,F,P=t.data[0],_=(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,a=t.name||"Segment ".concat(e+1),u=op(a,n,i);return{legend:a,size:(null===(r=t.range)||void 0===r?void 0:r[1])-(null===(o=t.range)||void 0===o?void 0:o[0]),color:u}})):[{legend:"Current",size:null!==(o=P.value)&&void 0!==o?o:0-(null!==(l=null===(s=null===(u=null===(a=P.gauge)||void 0===a?void 0:a.axis)||void 0===u?void 0:u.range)||void 0===s?void 0:s[0])&&void 0!==l?l:0),color:op("Current",n,i)},{legend:"Target",size:(null!==(d=null===(h=null===(f=null===(c=P.gauge)||void 0===c?void 0:c.axis)||void 0===f?void 0:f.range)||void 0===h?void 0:h[1])&&void 0!==d?d:100)-(null!==(v=P.value)&&void 0!==v?v:0),color:Lf.disabled}];if(null===(p=P.delta)||void 0===p?void 0:p.reference){var H=P.value-P.delta.reference;H>=0?(B="▲ ".concat(H),F=Ff(Lf.success,i)):(B="▼ ".concat(Math.abs(H)),F=Ff(Lf.error,i))}var I={sublabel:{fill:F}},W=ep(t.layout).chartTitle;return{segments:_,chartValue:null!==(g=P.value)&&void 0!==g?g:0,chartTitle:W,sublabel:B,minValue:"number"==typeof(null===(b=null===(y=null===(m=P.gauge)||void 0===m?void 0:m.axis)||void 0===y?void 0:y.range)||void 0===b?void 0:b[0])?null===(C=null===(w=null===(x=P.gauge)||void 0===x?void 0:x.axis)||void 0===w?void 0:w.range)||void 0===C?void 0:C[0]:void 0,maxValue:"number"==typeof(null===(A=null===(k=null===(M=P.gauge)||void 0===M?void 0:M.axis)||void 0===k?void 0:k.range)||void 0===A?void 0:A[1])?null===(L=null===(V=null===(S=P.gauge)||void 0===S?void 0:S.axis)||void 0===V?void 0:V.range)||void 0===L?void 0:L[1]:void 0,chartValueFormat:function(){var t,n;return null!==(n=null===(t=P.value)||void 0===t?void 0:t.toString())&&void 0!==n?n:""},width:null===(D=t.layout)||void 0===D?void 0:D.width,height:null!==(T=null===(N=t.layout)||void 0===N?void 0:N.height)&&void 0!==T?T:220,styles:I,variant:(null===(E=null===(O=P.gauge)||void 0===O?void 0:O.steps)||void 0===E?void 0:E.length)?dv.MultipleSegments:dv.SingleSegment}}(l,f,d),y));case"verticalbar":return a.createElement(Np,(0,o.Cl)({},function(t,n,i){var e,r,a,u=[];t.data.forEach((function(t,e){var r,a,s;if(t.x){var l=cp(t.x),c=vp(t.x,null===(r=t.xbins)||void 0===r?void 0:r.start,null===(a=t.xbins)||void 0===a?void 0:a.end,null===(s=t.xbins)||void 0===s?void 0:s.size),f=c.map((function(){return[]})),h=0;t.x.forEach((function(n,i){var e,r,o=fp(c,n,l);-1!==o&&f[o].push(null!==(r=null===(e=t.y)||void 0===e?void 0:e[i])&&void 0!==r?r:1)}));var d=f.map((function(n){var i=pp(t.histfunc,n);return h+=i,i}));c.forEach((function(r,a){var s=ip(t,e),c=op(s,n,i),f=gp(t.histnorm,d[a],h,l?r.length:hp(r));u.push((0,o.Cl)({x:l?r.join(", "):dp(r),y:f,legend:s,color:c},l?{}:{xAxisCalloutData:"[".concat(r.x0," - ").concat(r.x1,")")}))}))}}));var s=ep(t.layout),l=s.chartTitle,c=s.xAxisTitle,f=s.yAxisTitle;return{data:u,width:null===(e=t.layout)||void 0===e?void 0:e.width,height:null!==(a=null===(r=t.layout)||void 0===r?void 0:r.height)&&void 0!==a?a:350,supportNegativeData:!0,chartTitle:l,xAxisTitle:c,yAxisTitle:f,mode:"histogram",hideTickOverlap:!0,maxBarWidth:50}}(l,f,d),y));case"area":case"line":case"fallback":case"scatterpolar":if("scatterpolar"===u.type){var w=function(t){for(var n=(0,o.Cl)({},t),i=0;i<t.data.length;i++){var e=t.data[i];e.x=[],e.y=[];for(var r=0;r<e.r.length;r++){var a=e.theta[r]*Math.PI/180,u=e.r[r];e.x[r]=u*Math.cos(a),e.y[r]=u*Math.sin(a)}n.data[i]=e}return n}(l);l.data=w.data}return function(t){void 0===t&&(t=!1);var n=l.data[0].x,i=Iv(n),e=Wv(n),r=Hv(n,np);if(i||e)return b(l.data,t);if(r){var u=l.data.map((function(t){return(0,o.Cl)((0,o.Cl)({},t),{x:rp(t.x)})}));return b(u,t)}return a.createElement(Cp,(0,o.Cl)({},sp(l,f,d,!0),y))}(l.data.some((function(t){return"tonexty"===t.fill||"tozeroy"===t.fill||!!t.stackgroup})));default:throw new Error("Unsupported chart type :".concat(null===(e=l.data[0])||void 0===e?void 0:e.type))}}));Tp.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),a=i(873),u=i(607),s=(0,a.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,a=t.styles,l=t.theme,c=t.ratio,f=t.descriptionMessage,h=t.culture;return this._classNames=s(a,{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,u.U)(i,h)),o.createElement("div",{className:this._classNames.calloutContentY},(0,u.U)(r,h))),!!c&&o.createElement("div",{className:this._classNames.ratio},o.createElement(o.Fragment,null,o.createElement("span",{className:this._classNames.numerator},(0,u.U)(c[0],h)),"/",o.createElement("span",{className:this._classNames.denominator},(0,u.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,a=t.XValue,u=t.theme,s=t.isRatioPresent,l=void 0!==s&&s;return{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:[u.fonts.small,{lineHeight:"16px",opacity:"0.85",color:u.semanticColors.bodySubtext}],calloutBlockContainer:[u.fonts.xxLarge,{marginTop:a?"13px":"unset",paddingLeft:"8px",lineHeight:"22px",color:u.semanticColors.bodyText,borderLeft:"4px solid ".concat(o),selectors:(n={},n[e.up]={forcedColorAdjust:"none"},n)}],calloutlegendText:[u.fonts.small,{lineHeight:"16px",color:u.semanticColors.bodyText,selectors:(i={},i[e.up]={color:"CanvasText"},i)}],calloutContentY:[u.fonts.xxLarge,{color:o||u.semanticColors.bodyText,fontWeight:"bold",lineHeight:"36px",selectors:(r={},r[e.up]={color:"CanvasText"},r)}],calloutInfoContainer:[l&&{display:"flex",alignItems:"flex-end"}],ratio:[u.fonts.small,{marginLeft:"6px",color:u.semanticColors.bodyText}],numerator:{fontWeight:e.BO.bold},denominator:{fontWeight:e.BO.semibold},descriptionMessage:[u.fonts.small,{color:u.semanticColors.bodyText,marginTop:"10px",paddingTop:"10px",borderTop:"1px solid ".concat(u.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 u}});var e,r=i(638);function o(t){e!==t&&(e=t)}function a(){return void 0===e&&(e="undefined"!=typeof document&&!!document.documentElement&&"rtl"===document.documentElement.getAttribute("dir")),e}function u(){return{rtl:a(),shadowConfig:r.ou}}e=a()},40:function(t,n,i){i.d(n,{nr:function(){return l}});var e,r=i(823),o=i(638),a="__stylesheet__",u="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,a,u,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!==(a=null!==(o=this._config.classNameCache)&&void 0!==o?o:null==n?void 0:n.keyToClassName)&&void 0!==a?a:this._keyToClassName,this._preservedRules=null!==(u=null==n?void 0:n.preservedRules)&&void 0!==u?u: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[a],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[a]=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 a=this._findPlaceholderStyleTag();r=a?a.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(),u||(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={},a={},u=0,s=t;u<s.length;u++){var l=s[u];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)&&(a.hasOwnProperty(h)?a[h].push(f[h]):a[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(a).length>0){i.subComponentStyles={};var p=i.subComponentStyles,g=function(t){if(a.hasOwnProperty(t)){var n=a[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 a)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=[],a=t;return function t(n){for(var i=0,u=n;i<u.length;i++){var s=u[i];if(s&&!(0,e.db)(s))if("string"==typeof s)if(s.indexOf(" ")>=0)t(s.split(" "));else{var l=a.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),a=i(40),u=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=a.nr.getInstance(o.shadowConfig);var s=(0,e.h)(o.stylesheet,i),l=s.classes,c=s.objects;return c.length&&l.push((0,u.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 a},ou:function(){return o}});var e="__global__",r="__shadow_dom_stylesheet__",o={stylesheetKey:e,inShadow:!1,window:void 0,__isShadowConfig__:!0},a=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 V},bz:function(){return A},kG:function(){return L},GJ:function(){return S}});var e,r=i(823),o=i(40),a={},u={"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(u[r]){var o=t[n+1];u[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,a=r||o?"":"px";t[n+1]="".concat(e).concat(a)}}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 w(t,n,i,e,r){void 0===n&&(n={__order:[]}),0===i.indexOf("@")?C([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 C([e],n,x(i,t),r)})):C([e],n,x(i,t),r)}function C(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 a=0,u=t;a<u.length;a++){var s=u[a];if("string"==typeof s){var l=e.argsFromClassName(s);l&&C(l,n,i,e)}else if(Array.isArray(s))C(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)&&w(i,n,d,h[d],e)}else"object"==typeof f||(r=c).indexOf(":global(")>=0||0===r.indexOf(":")?null!=f&&w(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 A(t,n){if(!n)return"";var i,e,r,o=[];for(var u in n)n.hasOwnProperty(u)&&u!==y&&void 0!==n[u]&&o.push(u,n[u]);for(var l=0;l<o.length;l+=2)r=void 0,"-"!==(r=(i=o)[e=l]).charAt(0)&&(i[e]=a[r]=a[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 S(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),a=C(i,void 0,void 0,r),u=function(t,n){for(var i=[t.rtl?"rtl":"ltr"],e=!1,r=0,o=n.__order;r<o.length;r++){var a=o[r];i.push(a);var u=n[a];for(var s in u)u.hasOwnProperty(s)&&void 0!==u[s]&&(e=!0,i.push(s,u[s]))}return e?i.join(""):void 0}(t,a);if(u){var s={className:r.classNameFromKey(u),key:u,args:i};if(!s.className){s.className=r.getClassName(function(t){var n=t&&t["&"];return n?n.displayName:void 0}(a));for(var l=[],c=0,f=a.__order;c<f.length;c++){var h=f[c];l.push(h,A(t,a[h]))}s.rulesToInsert=l}return s}}function V(t,n,i,e){void 0===n&&(n=1);var r=null!=e?e:o.nr.getInstance(i),a=t.className,u=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(a,u,s,l)}}function L(t){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var e=S.apply(void 0,(0,r.fX)([t],n,!1));return e?(V(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 Mt.b},s:function(){return kt.s},BO:function(){return kt.BO},up:function(){return it},nA:function(){return nt},QN:function(){return ot},gm:function(){return rt},Km:function(){return tt},O4:function(){return Ct},dX:function(){return J}});var e=i(916),r=i(800),o=i(40),a=i(289);function u(t){var n=o.nr.getInstance(),i=[];for(var e in t)t.hasOwnProperty(e)&&i.push(e,"{",(0,a.bz)((0,r.Iy)(),t[e]),"}");var u=i.join(""),s=n.classNameFromKey(u);if(s)return s;var l=n.getClassName();return n.insertRule("@keyframes ".concat(l,"{").concat(u,"}"),!0),n.cacheClassName(l,u,[],["keyframes",u]),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=u({from:{opacity:0},to:{opacity:1}}),p=u({from:{opacity:1},to:{opacity:0,visibility:"hidden"}}),g=G(-10),m=G(-20),y=G(-40),b=G(-400),x=G(10),w=G(20),C=G(40),M=G(400),k=q(10),A=q(20),S=q(-10),V=q(-20),L=U(10),D=U(20),N=U(40),T=U(400),O=U(-10),E=U(-20),B=U(-40),F=U(-400),P=Z(-10),_=Z(-20),H=Z(10),I=Z(20),W=u({from:{transform:"scale3d(.98,.98,1)"},to:{transform:"scale3d(1,1,1)"}}),R=u({from:{transform:"scale3d(1,1,1)"},to:{transform:"scale3d(.98,.98,1)"}}),z=u({from:{transform:"scale3d(1.03,1.03,1)"},to:{transform:"scale3d(1,1,1)"}}),j=u({from:{transform:"scale3d(1,1,1)"},to:{transform:"scale3d(1.03,1.03,1)"}}),$=u({from:{transform:"rotateZ(0deg)"},to:{transform:"rotateZ(90deg)"}}),Y=u({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 u({from:{transform:"translate3d(".concat(t,"px,0,0)"),pointerEvents:"none"},to:{transform:"translate3d(0,0,0)",pointerEvents:"auto"}})}function q(t){return u({from:{transform:"translate3d(0,".concat(t,"px,0)"),pointerEvents:"none"},to:{transform:"translate3d(0,0,0)",pointerEvents:"auto"}})}function U(t){return u({from:{transform:"translate3d(0,0,0)"},to:{transform:"translate3d(".concat(t,"px,0,0)")}})}function Z(t){return u({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(w),h,s),slideLeftIn40:X("".concat(v,",").concat(C),h,s),slideLeftIn400:X("".concat(v,",").concat(M),h,s),slideUpIn10:X("".concat(v,",").concat(k),h,s),slideUpIn20:X("".concat(v,",").concat(A),h,s),slideDownIn10:X("".concat(v,",").concat(S),h,s),slideDownIn20:X("".concat(v,",").concat(V),h,s),slideRightOut10:X("".concat(p,",").concat(L),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(O),h,s),slideLeftOut20:X("".concat(p,",").concat(E),h,s),slideLeftOut40:X("".concat(p,",").concat(B),h,s),slideLeftOut400:X("".concat(p,",").concat(F),h,s),slideUpOut10:X("".concat(p,",").concat(P),h,s),slideUpOut20:X("".concat(p,",").concat(_),h,s),slideDownOut10:X("".concat(p,",").concat(H),h,s),slideDownOut20:X("".concat(p,",").concat(I),h,s),scaleUpIn100:X("".concat(v,",").concat(W),h,s),scaleDownIn100:X("".concat(v,",").concat(z),h,s),scaleUpOut103:X("".concat(p,",").concat(j),c,l),scaleDownOut98:X("".concat(p,",").concat(R),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($,"0.1s",l),rotateN90deg:X(Y,"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=i(517);function rt(t,n,i,e,r,o,a,u){return function(t,n){var i,e;void 0===n&&(n={});var r=n.borderRadius,o=n.inset,a=void 0===o?0:o,u=n.width,s=void 0===u?1:u,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(et.Y2," &").concat(m?":focus":"",":after, :host(.").concat(et.Y2,") &").concat(m?":focus":"",":after")]={content:'""',position:"absolute",pointerEvents:y,left:a+1,top:a+1,bottom:a+1,right:a+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:a,borderRadius:u})}function ot(){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,ut=i(823),st=i(338),lt=i(540),ct=function(){return ct=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},ct.apply(this,arguments)},ft="undefined"==typeof window?i.g:window,ht=ft&&ft.CSPSettings&&ft.CSPSettings.nonce,dt=((at=ft.__themeState__||{theme:void 0,lastStyleElement:void 0,registeredStyles:[]}).runState||(at=ct({},at,{perf:{count:0,duration:0},runState:{flushTimer:0,mode:0,buffer:[]}})),at.registeredThemableStyles||(at=ct({},at,{registeredThemableStyles:[]})),ft.__themeState__=at,at);function vt(t){dt.theme=t,function(){if(dt.theme){for(var t=[],n=0,i=dt.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||(pt(dt.registeredStyles),dt.registeredStyles=[]),3!==o&&1!==o||(pt(dt.registeredThemableStyles),dt.registeredThemableStyles=[]),r=[].concat.apply([],t),dt.loadStyles?dt.loadStyles(gt(r).styleString,r):function(t){if("undefined"!=typeof document){var n=document.getElementsByTagName("head")[0],i=document.createElement("style"),e=gt(t),r=e.styleString,o=e.themable;i.setAttribute("data-load-themed-styles","true"),i.type="text/css",ht&&i.setAttribute("nonce",ht),i.appendChild(document.createTextNode(r)),dt.perf.count++,n.appendChild(i);var a=document.createEvent("HTMLEvents");a.initEvent("styleinsert",!0,!1),a.args={newStyle:i},document.dispatchEvent(a);var u={styleElement:i,themableStyle:t};o?dt.registeredThemableStyles.push(u):dt.registeredStyles.push(u)}}(r))}var r,o}()}function pt(t){t.forEach((function(t){var n=t&&t.styleElement;n&&n.parentElement&&n.parentElement.removeChild(n)}))}function gt(t){var n=dt.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 mt=i(143),yt=(0,mt.a)({}),bt=[],xt="theme";function wt(){var t,n,i,e=(0,st.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),yt=(0,mt.a)(t,n),vt((0,ut.Cl)((0,ut.Cl)((0,ut.Cl)((0,ut.Cl)({},yt.palette),yt.semanticColors),yt.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],a=0,u=Object.keys(o);a<u.length;a++){var s=u[a],l=r+s.charAt(0).toUpperCase()+s.slice(1),c=o[s];"fontSize"===s&&"number"==typeof c&&(c+="px"),n[l]=c}return n}(yt))),lt.X.applySettings(((i={})[xt]=yt,i)),bt.forEach((function(t){try{t(yt)}catch(t){}}))}(e.FabricConfig.legacyTheme):lt.X.getSettings([xt]).theme||((null===(i=null==e?void 0:e.FabricConfig)||void 0===i?void 0:i.theme)&&(yt=(0,mt.a)(e.FabricConfig.theme)),lt.X.applySettings(((t={})[xt]=yt,t)))}function Ct(t){return void 0===t&&(t=!1),!0===t&&(yt=(0,mt.a)({},t)),yt}wt();var Mt=i(302),kt=i(41);(0,i(887).v)("@fluentui/style-utilities","8.13.0"),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"},a=i(800),u=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 w(t,n,i,e){!function(t){var n=u.nr.getInstance(),i=(0,s.bz)((0,a.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 C(t,n,i,e,r){void 0===e&&(e="segoeui");var o="".concat(t,"/").concat(i,"/").concat(e);w(n,o+"-light",l.BO.light,r&&r+" Light"),w(n,o+"-semilight",l.BO.semilight,r&&r+" SemiLight"),w(n,o+"-regular",l.BO.regular,r),w(n,o+"-semibold",l.BO.semibold,r&&r+" SemiBold"),w(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");C(n,l.Dn.Thai,"leelawadeeui-thai","leelawadeeui"),C(n,l.Dn.Arabic,"segoeui-arabic"),C(n,l.Dn.Cyrillic,"segoeui-cyrillic"),C(n,l.Dn.EastEuropean,"segoeui-easteuropean"),C(n,l.Dn.Greek,"segoeui-greek"),C(n,l.Dn.Hebrew,"segoeui-hebrew"),C(n,l.Dn.Vietnamese,"segoeui-vietnamese"),C(n,l.Dn.WestEuropean,"segoeui-westeuropean","segoeui","Segoe UI"),C(n,l.bi.Selawik,"selawik","selawik"),C(n,l.Dn.Armenian,"segoeui-armenian"),C(n,l.Dn.Georgian,"segoeui-georgian"),w("Leelawadee UI Web","".concat(n,"/leelawadeeui-thai/leelawadeeui-semilight"),l.BO.light),w("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 A=i(823);function S(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}(V(t,n,(0,A.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 V(t,n,i,e,r){void 0===r&&(r=!1);var o={},a=t||{},u=a.white,s=a.black,l=a.themePrimary,c=a.themeDark,f=a.themeDarker,h=a.themeDarkAlt,d=a.themeLighter,v=a.neutralLight,p=a.neutralLighter,g=a.neutralDark,m=a.neutralQuaternary,y=a.neutralQuaternaryAlt,b=a.neutralPrimary,x=a.neutralSecondary,w=a.neutralSecondaryAlt,C=a.neutralTertiary,M=a.neutralTertiaryAlt,k=a.neutralLighterAlt,S=a.accent;return u&&(o.bodyBackground=u,o.bodyFrameBackground=u,o.accentButtonText=u,o.buttonBackground=u,o.primaryButtonText=u,o.primaryButtonTextHovered=u,o.primaryButtonTextPressed=u,o.inputBackground=u,o.inputForegroundChecked=u,o.listBackground=u,o.menuBackground=u,o.cardStandoutBackground=u),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),C&&(o.disabledBodyText=C,o.variantBorderHovered=(null==i?void 0:i.variantBorderHovered)||C,o.buttonTextDisabled=C,o.inputIconDisabled=C,o.disabledText=C),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),w&&(o.buttonBorder=w),M&&(o.disabledBodySubtext=M,o.disabledBorder=M,o.buttonBackgroundChecked=M,o.menuDivider=M),S&&(o.accentButtonBackground=S),(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,A.Cl)((0,A.Cl)({},o),i)}var L={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:V(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 a=0,u=Object.keys(o.fonts);a<u.length;a++){var s=u[a];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:L,isInverted:i,disableGlobalClassNames:!1,semanticColors:S(r.b,o,void 0,i,n),rtl:void 0},t)}},41:function(t,n,i){var e,r,o,a,u;i.d(n,{BO:function(){return a},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}(a||(a={})),function(t){t.xSmall="10px",t.small="12px",t.medium="16px",t.large="20px"}(u||(u={}))},873:function(t,n,i){i.d(n,{Z:function(){return g}});var e=i(40),r=i(823),o=i(506),a=i(962),u=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 w=m?m.__shadowConfig__:void 0,C=w&&w.window?w.window:"__default__";n.has(C)||n.set(C,new Map);var M=n.get(C),k=b.theme,A=k&&void 0!==k.rtl?k.rtl:(0,l.jI)(),S=t.disableCaching;if(g!==d&&(g=d,n.set(C,new Map),M=n.get(C),i=0),t.disableCaching||(M=y(n.get(C),m),M=y(M,b)),!S&&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,a.h)(h,g),y=m.classes,b=m.objects;(null==b?void 0:b.length)?(C=(0,u.GJ)(f||{},{displayName:p},b))&&(v.push(C),l[p]=y.concat([C.className]).join(" ")):l[p]=y.join(" ")}for(var x=0,w=v;x<w.length;x++){var C;(C=w[x])&&(0,u.Ae)(C,null==n?void 0:n.specificityMultiplier,c)}return l}(["function"==typeof m?m(b):m],{shadowConfig:m.__shadowConfig__,rtl:!!A,specificityMultiplier:t.useStaticStyles?h:void 0}),S||i++),i>(t.cacheSize||f)){var V=(0,c.z)();(null===(x=null==V?void 0:V.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(C).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__",a="__callbacks__",u=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[a],r=i[t];if(n!==r){i[t]=n;var o={oldValue:r,value:n,key:t};for(var u in e)e.hasOwnProperty(u)&&e[u](o)}return n},t.addChangeListener=function(t){var n=t.__id__,i=c();n||(n=t.__id__=String(u++)),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={})[a]={},t)),n[o]}function c(){return l()[a]}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]||{},a=0,u=t;a<u.length;a++){var s=u[a];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 a}});var e=i(594),r=i(540),o=i(770);function a(t,n){var i,a=(i=e.useState(0)[1],function(){return i((function(t){return++t}))}),u=e.useContext(o.z).customizations,s=u.inCustomizerContext;return e.useEffect((function(){return s||r.X.observe(a),function(){s||r.X.unobserve(a)}}),[s]),r.X.getSettings(t,n,u)}},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,a={empty:!0},u={},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:(u[s]||(u[s]={val:s}),u[s]):a;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),a=i(800),u="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)(u);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)(u,t?"1":"0"),e=t,(0,a.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,a.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),a=i(638),u=function(){return!1},s=function(){},l=r.createContext({stylesheets:new Map,useAdoptedStylesheetEx:u,useAdoptedStylesheet:u,useShadowConfig:function(){return a.ou},useMergeStylesShadowRootContext:s,useHasMergeStylesShadowRootContext:u,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,a,u){var s=(a=a||{scope:"",fields:void 0}).scope,l=a.fields,d=void 0===l?h:l,v=r.forwardRef((function(a,u){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(a):void 0,m=c().useStyled,y=l.current&&l.current.__cachedInputs__||[],b=a.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,a=n;r<a.length;r++){var u=a[r];u&&e.push("function"==typeof u?u(t):u)}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:u},p,g,a,{styles:l.current}))}));v.displayName="Styled".concat(t.displayName||t.name);var p=u?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 a},fX:function(){return u}});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 a(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 u(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 _h},CartesianChart:function(){return nh},ChartHoverCard:function(){return Js.ChartHoverCard},DataVizGradientPalette:function(){return Qs},DataVizPalette:function(){return Lf},DeclarativeChart:function(){return Tp},DonutChart:function(){return Rf},GaugeChart:function(){return Av},GaugeChartVariant:function(){return dv},GaugeValueFormat:function(){return hv},GroupedVerticalBarChart:function(){return fd},HeatMapChart:function(){return pd},HorizontalBarChart:function(){return $l},HorizontalBarChartVariant:function(){return v},HorizontalBarChartWithAxis:function(){return bv},Legends:function(){return jc},LineChart:function(){return xh},MultiStackedBarChart:function(){return Zh},MultiStackedBarChartVariant:function(){return zh},NodesComposition:function(){return jd},PieChart:function(){return Xh},ResponsiveContainer:function(){return bp},SankeyChart:function(){return Gd},Shape:function(){return Bc},Sparkline:function(){return gv},StackedBarChart:function(){return Qh},Textbox:function(){return vh},TreeChart:function(){return cv},TreeTraverse:function(){return $d},VerticalBarChart:function(){return rd},VerticalStackedBarChart:function(){return ud},getChartHoverCardStyles:function(){return hd.J},getColorFromToken:function(){return Ff},getGradientFromToken:function(){return al},getNextColor:function(){return Bf},getNextGradient:function(){return ol},withResponsiveContainer:function(){return xp}});var r=i(566),o=i(823),a=i(594),u=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 w(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 C(t,n,i){return null!=i||(i=document),!t||t===i.body||t instanceof Document?null:n(t)?t:C(w(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=w(n);if(r===t){e=!0;break}n=r}else t.contains&&(e=t.contains(n));return e}var k=i(543),A="data-is-focusable",S="data-is-visible",V="data-focuszone-id",L="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,a,u,s){var l;if(!n||!a&&n===t)return null;var c=O(n);if(r&&c&&(o||!F(n)&&!P(n))){var f=N(t,n.lastElementChild||s&&(null===(l=n.shadowRoot)||void 0===l?void 0:l.lastElementChild),!0,!0,!0,o,a,u,s);if(f){if(u&&B(f,!0,s)||!u)return f;var h=N(t,f.previousElementSibling,!0,!0,!0,o,a,u,s);if(h)return h;for(var d=f.parentElement;d&&d!==n;){var v=N(t,d.previousElementSibling,!0,!0,!0,o,a,u,s);if(v)return v;d=d.parentElement}}}return i&&c&&B(n,u,s)?n:N(t,n.previousElementSibling,!0,!0,!0,o,a,u,s)||(e?null:N(t,n.parentElement,!0,!1,!1,o,a,u,s))}function T(t,n,i,e,r,o,a,u,s,l){var c;if(!n||n===t&&r&&!a)return null;var f=(s?E:O)(n);if(i&&f&&B(n,u,l))return n;if(!r&&f&&(o||!F(n)&&!P(n))){var h=T(t,n.firstElementChild||l&&(null===(c=n.shadowRoot)||void 0===c?void 0:c.firstElementChild),!0,!0,!1,o,a,u,s,l);if(h)return h}return n===t?null:T(t,n.nextElementSibling,!0,!0,!1,o,a,u,s,l)||(e?null:T(t,n.parentElement,!1,!1,!0,o,a,u,s,l))}function O(t){if(!t||!t.getAttribute)return!1;var n=t.getAttribute(S);return null!=n?"true"===n:0!==t.offsetHeight||null!==t.offsetParent||!0===t.isVisible}function E(t,n){var i=null!=n?n:(0,l.z)();return!!t&&O(t)&&!t.hidden&&"hidden"!==i.getComputedStyle(t).visibility}function B(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(A):null,a=null!==r&&e>=0,u=!(!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||a||u);return n?-1!==e&&s:s}function F(t){return!!(t&&t.getAttribute&&t.getAttribute(V))}function P(t){return!(!t||!t.getAttribute||"true"!==t.getAttribute(L))}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 I(t,n,i,e){return t.addEventListener(n,i,e),function(){return t.removeEventListener(n,i,e)}}function W(t,n){for(var i=(0,o.Cl)({},n),e=0,r=Object.keys(t);e<r.length;e++){var a=r[e];void 0===i[a]&&(i[a]=t[a])}return i}var R=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],a=0,u=Array.isArray(o)?o:Object.keys(o);a<u.length;a++)i[u[a]]=1;return i},z=R(["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=R(["accessKey","children","className","contentEditable","dir","draggable","hidden","htmlFor","id","lang","ref","role","style","tabIndex","title","translate","spellCheck","name"]),$=R(j,z),Y=(R($,["form"]),R($,["height","loop","muted","preload","src","width"])),X=(R(Y,["poster"]),R($,["start"]),R($,["value"]),R($,["download","href","hrefLang","media","rel","target","type"]),R($,["autoFocus","disabled","form","formAction","formEncType","formMethod","formNoValidate","formTarget","type","value"])),G=(R(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"]),R(X,["autoCapitalize","cols","dirname","form","maxLength","minLength","placeholder","readOnly","required","rows","wrap"]),R(X,["form","multiple","required"]),R($,["selected","value"]),R($,["cellPadding","cellSpacing"]),R($,["rowSpan","scope"]),R($,["colSpan","headers","rowSpan","scope"]),R($,["span"]),R($,["span"]),R($,["acceptCharset","action","encType","encType","method","noValidate","target"]),R($,["allow","allowFullScreen","allowPaymentRequest","allowTransparency","csp","height","importance","referrerPolicy","sandbox","src","srcDoc","width"]),R($,["alt","crossOrigin","height","src","srcSet","useMap","width"]),$);function q(t,n,i){for(var e=Array.isArray(n),r={},o=0,a=Object.keys(t);o<a.length;o++){var u=a[o];!(!e&&n[u]||e&&n.indexOf(u)>=0||0===u.indexOf("data-")||0===u.indexOf("aria-"))||i&&-1!==(null==i?void 0:i.indexOf(u))||(r[u]=t[u])}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 a in o)o[a]&&i.push(a)}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 a=o[r];if(a)for(var u in a)!a.hasOwnProperty(u)||t&&!t(u)||(n[u]=a[u])}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 at(t,n,i){return{targetEdge:t,alignmentEdge:n,isAuto:i}}var ut=((rt={})[x.topLeftEdge]=at(Q.top,Q.left),rt[x.topCenter]=at(Q.top),rt[x.topRightEdge]=at(Q.top,Q.right),rt[x.topAutoEdge]=at(Q.top,void 0,!0),rt[x.bottomLeftEdge]=at(Q.bottom,Q.left),rt[x.bottomCenter]=at(Q.bottom),rt[x.bottomRightEdge]=at(Q.bottom,Q.right),rt[x.bottomAutoEdge]=at(Q.bottom,void 0,!0),rt[x.leftTopEdge]=at(Q.left,Q.top),rt[x.leftCenter]=at(Q.left),rt[x.leftBottomEdge]=at(Q.left,Q.bottom),rt[x.rightTopEdge]=at(Q.right,Q.top),rt[x.rightCenter]=at(Q.right),rt[x.rightBottomEdge]=at(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 wt(t,n,i,e){for(var r=0,o=t;r<o.length;r++){var a=o[r],u=void 0;e&&e===-1*a?(u=gt(n.elementRectangle,a,ct(i,a),!1),n.forcedInBounds=!0):yt(u=mt(n.elementRectangle,i,a),i,-1*a)||(u=gt(u,-1*a,ct(i,-1*a),!1),n.forcedInBounds=!0),n.elementRectangle=u}return n}function Ct(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),a=i.alignmentEdge,u=i.targetEdge,s=r?u:-1*u;return o=r?mt(o,n,u,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,u,e),o=a?mt(o,n,a):Ct(o,s,ht(n,u))}function kt(t){return t===Q.top||t===Q.bottom?{positiveEdge:Q.left,negativeEdge:Q.right}:{positiveEdge:Q.top,negativeEdge:Q.bottom}}function At(t,n,i){return i&&Math.abs(pt(t,i,n))>Math.abs(pt(t,i,-1*n))?-1*n:n}function St(t,n,i,e,r,o,a,u){var s,l={},c=Dt(n),f=o?i:-1*i,h=r||kt(i).positiveEdge;return a&&!function(t,n,i){return void 0!==i&&ct(t,n)===ct(i,n)}(t,(s=h,-1*s),e)||(h=At(t,h,e)),l[Q[f]]=pt(t,c,f),l[Q[h]]=pt(t,c,h),u&&(l[Q[-1*f]]=pt(t,c,-1*f),l[Q[-1*h]]=pt(t,c,-1*h)),l}function Vt(t,n,i){var e=ht(n,t),r=ht(i,t),o=kt(t),a=o.positiveEdge,u=o.negativeEdge;return e<=r?a:u}function Lt(t,n,i,e,r,o,a,u,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,a,u,l){void 0===r&&(r=!1),void 0===a&&(a=0);var c=e.alignmentEdge,f=e.alignTargetEdge,h={elementRectangle:t,targetEdge:e.targetEdge,alignmentEdge:c};u||l||(h=function(t,n,i,e,r,o,a){void 0===r&&(r=!1),void 0===a&&(a=0);var u=[Q.left,Q.right,Q.bottom,Q.top];(0,s.jI)()&&(u[0]*=-1,u[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),u.splice(u.indexOf(f),1),u.length>0&&(u.indexOf(-1*f)>-1?f*=-1:(h=f,f=u.slice(-1)[0]),c=Mt(t,n,{targetEdge:f,alignmentEdge:h},a))}return{elementRectangle:c=Mt(t,n,{targetEdge:d,alignmentEdge:v},a),targetEdge:d,alignmentEdge:v}}(t,n,i,e,r,o,a));var d=lt(h.elementRectangle,i),v=u?-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,a=-1*r;return{elementRectangle:Mt(t.elementRectangle,n,{targetEdge:o,alignmentEdge:a},i,e),targetEdge:o,alignmentEdge:a}}(h,n,a,l);if(st(p.elementRectangle,i))return p;h=wt(lt(p.elementRectangle,i),h,i,v)}else h=wt(d,h,i,v);else h=wt(d,h,i,v);return h}(c,n,i,e,o,a,r,u,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,a){void 0===r&&(r=!1);var u=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,a=r.top||r.y,u=r.right||o,s=r.bottom||a;i=new ot(o,u,a,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=Vt(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)({},ut[t]);return(0,s.jI)()?(e.alignmentEdge&&e.alignmentEdge%2==0&&(e.alignmentEdge=-1*e.alignmentEdge),void 0!==n?ut[n]:e):e}(t.directionalHint,t.directionalHintForRTL,e),l,i,t.coverTarget,t.alignTargetEdge),f=Lt(Dt(n),l,i,c,u,r,a,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 Ot(t,n,i,e,r,a,u,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,w,C,M=t.bounds?(C=t.bounds,new ot(C.left,C.right,C.top,C.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),A=Nt(d,i,M,e,r,a),S=(v=A,p=function(t,n){var i=n.targetRectangle,e=kt(n.targetEdge),r=e.positiveEdge,o=e.negativeEdge,a=ht(i,n.targetEdge),u=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=Ct(s=gt(s,-1*n.targetEdge,-t/2),-1*n.targetEdge,a-vt(r,n.elementRectangle)),u,r)?yt(s,u,o)||(s=mt(s,u,o)):s=mt(s,u,r),s}(f,A),g=M,m=-1*v.targetEdge,y=new ot(0,v.elementRectangle.width,0,v.elementRectangle.height),b={},x=At(v.elementRectangle,v.alignmentEdge?v.alignmentEdge:kt(m).positiveEdge,g),w=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:Vt(v.targetEdge,p,y),targetEdge:m,hideBeak:!w});return(0,o.Cl)((0,o.Cl)({},function(t,n,i,e,r){return{elementPosition:St(t.elementRectangle,n,t.targetEdge,i,t.alignmentEdge,e,r,t.forcedInBounds),targetEdge:t.targetEdge,alignmentEdge:t.alignmentEdge}}(A,n,M,t.coverTarget,u)),{beakPosition:S})}var Et=["TEMPLATE","STYLE","SCRIPT"];function Bt(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],a=o.getAttribute("aria-hidden");o!==t&&"true"!==(null==a?void 0:a.toLowerCase())&&-1===Et.indexOf(o.tagName)&&i.push([o,a])}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 Ft=27,Pt=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,a=n||0,u=!0,s=!0,l=0,c=null;i&&"boolean"==typeof i.leading&&(u=i.leading),i&&"boolean"==typeof i.trailing&&(s=i.trailing);var f=function(n){var i=Date.now(),h=i-l,d=u?a-h:a;return h>=a&&(!n||u)?(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,a,u=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,a)},g=function(t){var n=Date.now(),i=!1;t&&(s&&n-f>=u&&(i=!0),f=n);var r=n-f,a=u-r,v=n-h,m=!1;return null!==c&&(v>=c&&d?m=!0:a=Math.min(a,c-v)),r>=u||m||i?p(n):null!==d&&t||!l||(d=e.setTimeout(g,a)),o},m=function(){return!!d},y=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return a=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=a.useRef();return t.current||(t.current=new Pt),a.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=a.useRef(i);r.current=i,a.useEffect((function(){var i=t&&"current"in t?t.current:t;if(i&&i.addEventListener)return I(i,n,(function(t){return r.current(t)}),e)}),[t,n,e])}function It(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var i=a.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 Wt=a.createContext({window:"object"==typeof window?window:void 0}),Rt=function(){return a.useContext(Wt).window},zt=function(){var t;return null===(t=a.useContext(Wt).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 $t=a.forwardRef((function(t,n){var i=W({shouldRestoreFocus:!0,enableAriaHiddenSiblings:!0},t),e=a.useRef(),r=It(e,n);!function(t,n){var i="true"===String(t["aria-modal"]).toLowerCase()&&t.enableAriaHiddenSiblings;a.useEffect((function(){if(i&&n.current)return Bt(n.current)}),[n,i])}(i,e),function(t,n){var i=t.onRestoreFocus,e=void 0===i?jt:i,r=a.useRef(),o=a.useRef(!1);a.useEffect((function(){var t,i,a;return r.current=(0,k.Y)().activeElement,t=n.current,(a=(i=(0,k.Y)(t))&&i.activeElement)&&M(t,a)&&(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",a.useCallback((function(){o.current=!0}),[]),!0),Ht(n,"blur",a.useCallback((function(t){n.current&&t.relatedTarget&&!n.current.contains(t.relatedTarget)&&(o.current=!1)}),[]),!0)}(i,e);var u=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=a.useState(!1),r=e[0],o=e[1];return a.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 a=n.current.clientHeight,u=n.current.firstElementChild.clientHeight;a>0&&u>a&&(e=u-a>1)}r!==e&&o(e)}})),function(){return i.dispose()}})),r}(i,e),g=a.useCallback((function(t){t.which===Ft&&v&&(v(t),t.preventDefault(),t.stopPropagation())}),[v]);return Ht(Rt(),"keydown",g),a.createElement("div",(0,o.Cl)({ref:r},q(i,G),{className:s,role:u,"aria-label":l,"aria-labelledby":c,"aria-describedby":f,onKeyDown:g,style:(0,o.Cl)({overflowY:p?"scroll":void 0,outline:"none"},h)}),d)}));$t.displayName="Popup";var Yt=i(419);function Xt(t){var n=a.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=Rt())&&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]=Yt.lw.slideUpIn10,Gt[Q.bottom]=Yt.lw.slideDownIn10,Gt[Q.left]=Yt.lw.slideLeftIn10,Gt[Q.right]=Yt.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,u.Z)({disableCaching:!0});function nn(t,n,i,e){var r,o=t.calloutMaxHeight,u=t.finalHeight,s=t.directionalHint,l=t.directionalHintFixed,c=t.hidden,f=t.gapSpace,h=t.beakWidth,d=t.isBeakVisible,v=t.coverTarget,p=a.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,w=(null==i?void 0:i.current)?function(t){var n,i,e,r,o=t,a=t,u=t,s=null!==(n=u.left)&&void 0!==n?n:u.x,l=null!==(i=u.top)&&void 0!==i?i:u.y,c=null!==(e=u.right)&&void 0!==e?e:s,f=null!==(r=u.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(a)}(i.current):void 0;return a.useEffect((function(){var t,i,r=null!==(t=n())&&void 0!==t?t:{},a=r.top,u=r.bottom;(null==e?void 0:e.targetEdge)===Q.top&&(null==w?void 0:w.top)&&!v&&(u=w.top-function(t,n,i){return Tt(t,n,i)}(d,h,f)),"number"==typeof b&&u?i=u-b:"number"==typeof x&&"number"==typeof a&&u&&(i=u-a-x),m(!o&&!c||o&&i&&o>i?i:o||void 0)}),[x,o,u,s,l,n,c,e,b,f,h,d,w,v]),g}function en(t,n,i,e,r,u){var s,c=a.useState(),f=c[0],h=c[1],d=a.useRef(0),v=a.useRef(),p=_t(),g=t.hidden,m=t.target,y=t.finalHeight,b=t.calloutMaxHeight,x=t.onPositioned,w=t.directionalHint,C=t.hideOverflow,M=t.preferScrollResizePositioning,k=qt(),A=a.useRef();A.current!==u.current&&(A.current=u.current,s=u.current?null==k?void 0:k.getComputedStyle(u.current):void 0);var S=null==s?void 0:s.overflowY;return a.useEffect((function(){if(!g){var a=p.requestAnimationFrame((function(){var a,u,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===(a=i.parentElement)||void 0===a||a.appendChild(g);var w=v.current===m?f:void 0,A=M&&!(C||"clip"===S||"hidden"===S),V=y?function(t,n,i,e,r){return function(t,n,i,e,r){return Ot(t,n,i,e,!1,void 0,!0,null!=r?r:(0,l.z)())}(t,n,i,e,r)}(p,n.current,g,w,k):function(t,n,i,e,r,o,a){return Ot(t,n,i,e,r,void 0,void 0,a)}(p,n.current,g,w,A,0,k);null===(u=i.parentElement)||void 0===u||u.removeChild(g),!f&&V||f&&V&&(c=V,!an((s=f).elementPosition,c.elementPosition)||!an(s.beakPosition.elementPosition,c.beakPosition.elementPosition))&&d.current<5?(d.current++,h(V)):d.current>0&&(d.current=0,null==x||x(f))}}),i);return v.current=m,function(){p.cancelAnimationFrame(a),v.current=void 0}}h(void 0),d.current=0}),[g,w,p,i,b,n,e,y,r,x,f,t,m,C,M,S,k]),f}var rn=a.memo(a.forwardRef((function(t,n){var i=W(Qt,t),e=i.styles,r=i.style,u=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,w=i.backgroundColor,C=i.calloutMaxHeight,A=i.onScroll,S=i.shouldRestoreFocus,V=void 0===S||S,L=i.target,N=i.hidden,T=i.onLayerMounted,O=i.popupProps,E=a.useRef(null),B=It(a.useRef(null),null==O?void 0:O.ref),F=a.useState(null),P=F[0],_=F[1],H=a.useCallback((function(t){_(t)}),[]),R=It(E,n),z=function(t,n){var i,e,r,o=a.useRef(),u=a.useRef(null),s=Rt();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)u.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);u.current=c?c.querySelector(t):null}else u.current="stopPropagation"in t||"getBoundingClientRect"in t?t:"current"in t?t.current:t;o.current=t}return[u,s]}(i.target,{current:P}),j=z[0],$=z[1],Y=function(t,n,i){var e=t.bounds,r=t.minPagePadding,o=void 0===r?Qt.minPagePadding:r,u=t.target,s=a.useState(!1),l=s[0],c=s[1],f=a.useRef(),h=a.useCallback((function(){if(!f.current||l){var t="function"==typeof e?i?e(u,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 a={top:0,left:0,right:0,bottom:0,width:0,height:0},u=0,s=i;u<s.length;u++){var l=s[u];e&&l.left<=e&&l.right>=e&&r&&l.top<=r&&l.bottom>=r&&(a={top:l.top,left:l.left,right:l.right,bottom:l.bottom,width:l.width,height:l.height})}return a}(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,u,n,i,l]),d=_t();return Ht(i,"resize",d.debounce((function(){c(!0)}),500,{leading:!0})),h}(i,j,$),X=en(i,E,P,j,Y,B),Z=nn(i,Y,j,X),K=function(t,n,i,e,r){var o=t.hidden,u=t.onDismiss,s=t.preventDismissOnScroll,l=t.preventDismissOnResize,c=t.preventDismissOnLostFocus,f=t.dismissOnTargetClick,h=t.shouldDismissOnWindowFocus,d=t.preventDismissOnEvent,v=a.useRef(!1),p=_t(),g=Xt([function(){v.current=!0},function(){v.current=!1}]),m=!!n;return a.useEffect((function(){var t=function(t){m&&!s&&g(t)},n=function(t){l||d&&d(t)||null==u||u(t)},a=function(t){c||g(t)},g=function(t){var n=t.composedPath?t.composedPath():[],o=n.length>0?n[0]:t.target,a=i.current&&!M(i.current,o);if(a&&v.current)v.current=!1;else if(!e.current&&a||t.target!==r&&a&&(!e.current||"stopPropagation"in e.current||f||o!==e.current&&!M(e.current,o))){if(d&&d(t))return;null==u||u(t)}},y=function(t){h&&((!d||d(t))&&(d||c)||(null==r?void 0:r.document.hasFocus())||null!==t.relatedTarget||null==u||u(t))},b=new Promise((function(i){p.setTimeout((function(){if(!o&&r){var e=[I(r,"scroll",t,!0),I(r,"resize",n,!0),I(r.document.documentElement,"focus",a,!0),I(r.document.documentElement,"click",a,!0),I(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,u,h,f,c,l,s,m,d]),g}(i,X,E,j,$),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(),u=!!n;a.useEffect((function(){if(!e&&r&&u&&i){var t=o.requestAnimationFrame((function(){return D(i)}),i);return function(){return o.cancelAnimationFrame(t)}}}),[e,u,o,i,r])}(i,X,P),a.useEffect((function(){N||null==T||T()}),[N]),!$)return null;var it=x,et=f&&!!L,rt=tn(e,{theme:i.theme,className:c,overflowYHidden:it,calloutWidth:v,positions:X,beakWidth:d,backgroundColor:w,calloutMaxWidth:p,calloutMinWidth:g,doNotLayer:m}),ot=(0,o.Cl)((0,o.Cl)({maxHeight:C||"100%"},r),it&&{overflowY:"hidden"}),at=i.hidden?{visibility:"hidden"}:void 0;return a.createElement("div",{ref:R,className:rt.container,style:at},a.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&&a.createElement("div",{className:rt.beak,style:on(X)}),et&&a.createElement("div",{className:rt.beakCurtain}),a.createElement($t,(0,o.Cl)({role:i.role,"aria-roledescription":i["aria-roledescription"],ariaDescribedBy:s,ariaLabel:u,ariaLabelledBy:l,className:rt.calloutMain,onDismiss:i.onDismiss,onMouseDown:J,onMouseUp:Q,onRestoreFocus:i.onRestoreFocus,onScroll:A,shouldRestoreFocus:V,style:ot},O,{ref:B}),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 an(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 un(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,a=t.beakWidth,u=t.backgroundColor,s=t.calloutMaxWidth,l=t.calloutMinWidth,c=t.doNotLayer,f=(0,Yt.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?Yt.nA.Layer:void 0,boxSizing:"border-box",borderRadius:d.roundedCorner2,boxShadow:d.elevation16,selectors:(n={},n[Yt.up]={borderWidth:1,borderStyle:"solid",borderColor:"WindowText"},n)},(0,Yt.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)"},un(a),u&&{backgroundColor:u}],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"},u&&{backgroundColor:u}]}}),void 0,{scope:"CalloutContent"}),cn=a.createContext(void 0),fn=function(){return function(){}};cn.Provider;var hn=ReactDOM,dn=i(753);new WeakMap,new WeakMap;var vn=a.createContext(void 0),pn=function(t){var n=t.providerRef,i=t.layerRoot,e=a.useState([])[0],r=a.useContext(vn),o=void 0!==r&&!i,u=a.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 a.useEffect((function(){if(u)return u.registerProvider(u.providerRef),function(){return u.unregisterProvider(u.providerRef)}}),[u]),u?a.createElement(vn.Provider,{value:u},t.children):a.createElement(a.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 a.createElement(mn.z.Consumer,null,(function(i){var e=function(t,n){var i,e,r,a=(n||{}).customizations,u=void 0===a?{settings:{},scopedSettings:{}}:a;return{customizations:{settings:yn(u.settings,t.settings),scopedSettings:(i=u.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)),a.createElement(mn.z.Provider,{value:e},t.props.children)}))},n}(a.Component),wn=i(143),Cn=(0,u.Z)(),Mn=(0,dn.J9)((function(t,n){return(0,wn.a)((0,o.Cl)((0,o.Cl)({},t),{rtl:n}))})),kn=a.forwardRef((function(t,n){var i=t.className,e=t.theme,r=t.applyTheme,u=t.applyThemeToBody,l=t.styles,c=Cn(l,{theme:e,applyTheme:r,className:i}),f=a.useRef(null);return function(t,n,i){var e=n.bodyThemed;a.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])}(u,c,f),a.createElement(a.Fragment,null,function(t,n,i,e){var r=n.root,u=t.as,l=void 0===u?"div":u,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=a.createElement(pn,{providerRef:i},a.createElement(l,(0,o.Cl)({dir:v},h,{className:r,ref:It(i,e)})));return p&&(g=a.createElement(xn,{settings:{theme:Mn(f,"rtl"===c)}},g)),g}(t,c,f,n))}));kn.displayName="FabricBase";var An,Sn={fontFamily:"inherit"},Vn={root:"ms-Fabric",bodyThemed:"ms-Fabric-bodyThemed"},Ln=(0,r.I)(kn,(function(t){var n=t.applyTheme,i=t.className,e=t.preventBlanketFontInheritance,r=t.theme;return{root:[(0,Yt.Km)(Vn,r).root,r.fonts.medium,{color:r.palette.neutralPrimary},!e&&{"& button":Sn,"& input":Sn,"& textarea":Sn},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={},On={},En="fluent-default-layer-host",Bn="#".concat(En),Fn=i(921),Pn=(0,Fn.S)()?a.useLayoutEffect:a.useEffect,_n=(0,u.Z)(),Hn=a.forwardRef((function(t,n){var i,e=null!==(i=a.useContext(cn))&&void 0!==i?i:fn,r=a.useRef(null),u=It(r,n),s=a.useRef(),l=a.useRef(null),c=a.useContext(vn),f=a.useState(!1),h=f[0],d=f[1],v=a.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,w=t.onLayerDidMount,C=void 0===w?function(){}:w,M=t.onLayerMounted,A=void 0===M?function(){}:M,S=t.onLayerWillUnmount,V=t.styles,L=t.theme,D=It(l,null==y?void 0:y.ref,v),N=_n(V,{theme:L,className:g,isNotHost:!b}),T=function(){null==S||S();var t=s.current;s.current=void 0,t&&t.parentNode&&t.parentNode.removeChild(t)},O=function(){var t,n,i,e,o=(0,k.Y)(r.current),a=(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||a)){var u=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=On[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 a=Bn,u=a?r.querySelector(a):null;return u||(u=function(t,n){void 0===n&&(n=null);var i=t.createElement("div");return i.setAttribute("id",En),i.style.cssText="position:fixed;z-index:1000000",n?n.appendChild(i):null==t||t.body.appendChild(i),i}(t,n)),u}(o,a);if(u){u.__tabsterElementFlags||(u.__tabsterElementFlags={}),u.__tabsterElementFlags.noDirectAriaHidden=!0,T();var l=(null!==(e=u.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?u.insertBefore(l,u.firstChild):u.appendChild(l),s.current=l,d(!0)}}};return Pn((function(){O(),b&&function(t,n){Tn[t]||(Tn[t]=[]),Tn[t].push(n);var i=On[t];if(i)for(var e=0,r=i;e<r.length;e++)r[e].notifyLayersChanged()}(b,O);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=On[t];if(r)for(var o=0,a=r;o<a.length;o++)a[o].notifyLayersChanged()}(b,O)}}),[b]),a.useEffect((function(){s.current&&h&&(null==A||A(),null==C||C(),d(!1))}),[h,A,C]),a.createElement("span",{className:"ms-layer",ref:u},s.current&&hn.createPortal(a.createElement(pn,{layerRoot:!0,providerRef:D},a.createElement(Ln,(0,o.Cl)({},!m&&(An||(An={},["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 An[t]=In}))),An),y,{className:U(N.content,null==y?void 0:y.className),ref:D}),p)),s.current))}));Hn.displayName="LayerBase";var In=function(t){t.eventPhase===Event.BUBBLING_PHASE&&"mouseenter"!==t.type&&"mouseleave"!==t.type&&"touchstart"!==t.type&&"touchend"!==t.type&&t.stopPropagation()},Wn={root:"ms-Layer",rootNoHost:"ms-Layer--fixed",content:"ms-Layer-content"},Rn=(0,r.I)(Hn,(function(t){var n=t.className,i=t.isNotHost,e=t.theme,r=(0,Yt.Km)(Wn,e);return{root:[r.root,e.fonts.medium,i&&[r.rootNoHost,{position:"fixed",zIndex:Yt.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"]}),zn=a.forwardRef((function(t,n){var i=t.layerProps,e=t.doNotLayer,r=(0,o.Tt)(t,["layerProps","doNotLayer"]),u=a.createElement(ln,(0,o.Cl)({},r,{doNotLayer:e,ref:n}));return e?u:a.createElement(Rn,(0,o.Cl)({},i),u)}));zn.displayName="Callout";var jn=i(607);function $n(t){return t}var Yn=1,Xn=2,Gn=3,qn=4,Un=1e-6;function Zn(t){return"translate("+t+",0)"}function Kn(t){return"translate(0,"+t+")"}function Jn(t){return n=>+t(n)}function Qn(t,n){return n=Math.max(0,t.bandwidth()-2*n)/2,t.round()&&(n=Math.round(n)),i=>+t(i)+n}function ti(){return!this.__axis}function ni(t,n){var i=[],e=null,r=null,o=6,a=6,u=3,s="undefined"!=typeof window&&window.devicePixelRatio>1?0:.5,l=t===Yn||t===qn?-1:1,c=t===qn||t===Xn?"x":"y",f=t===Yn||t===Gn?Zn:Kn;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):$n:r,p=Math.max(o,0)+u,g=n.range(),m=+g[0]+s,y=+g[g.length-1]+s,b=(n.bandwidth?Qn:Jn)(n.copy(),s),x=h.selection?h.selection():h,w=x.selectAll(".domain").data([null]),C=x.selectAll(".tick").data(d,n).order(),M=C.exit(),k=C.enter().append("g").attr("class","tick"),A=C.select("line"),S=C.select("text");w=w.merge(w.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),C=C.merge(k),A=A.merge(k.append("line").attr("stroke","currentColor").attr(c+"2",l*o)),S=S.merge(k.append("text").attr("fill","currentColor").attr(c,l*p).attr("dy",t===Yn?"0em":t===Gn?"0.71em":"0.32em")),h!==x&&(w=w.transition(h),C=C.transition(h),A=A.transition(h),S=S.transition(h),M=M.transition(h).attr("opacity",Un).attr("transform",(function(t){return isFinite(t=b(t))?f(t+s):this.getAttribute("transform")})),k.attr("opacity",Un).attr("transform",(function(t){var n=this.parentNode.__axis;return f((n&&isFinite(n=n(t))?n:b(t))+s)}))),M.remove(),w.attr("d",t===qn||t===Xn?a?"M"+l*a+","+m+"H"+s+"V"+y+"H"+l*a:"M"+s+","+m+"V"+y:a?"M"+m+","+l*a+"V"+s+"H"+y+"V"+l*a:"M"+m+","+s+"H"+y),C.attr("opacity",1).attr("transform",(function(t){return f(b(t)+s)})),A.attr(c+"2",l*o),S.attr(c,l*p).text(v),x.filter(ti).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===Xn?"start":t===qn?"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=a=+t,h):o},h.tickSizeInner=function(t){return arguments.length?(o=+t,h):o},h.tickSizeOuter=function(t){return arguments.length?(a=+t,h):a},h.tickPadding=function(t){return arguments.length?(u=+t,h):u},h.offset=function(t){return arguments.length?(s=+t,h):s},h}function ii(t){return ni(Xn,t)}function ei(t){return ni(Gn,t)}function ri(t){return ni(qn,t)}const oi=Math.sqrt(50),ai=Math.sqrt(10),ui=Math.sqrt(2);function si(t,n,i){const e=(n-t)/Math.max(0,i),r=Math.floor(Math.log10(e)),o=e/Math.pow(10,r),a=o>=oi?10:o>=ai?5:o>=ui?2:1;let u,s,l;return r<0?(l=Math.pow(10,-r)/a,u=Math.round(t*l),s=Math.round(n*l),u/l<t&&++u,s/l>n&&--s,l=-l):(l=Math.pow(10,r)*a,u=Math.round(t/l),s=Math.round(n/l),u*l<t&&++u,s*l>n&&--s),s<u&&.5<=i&&i<2?si(t,n,2*i):[u,s,l]}function li(t,n,i){if(!((i=+i)>0))return[];if((t=+t)==(n=+n))return[t];const e=n<t,[r,o,a]=e?si(n,t,i):si(t,n,i);if(!(o>=r))return[];const u=o-r+1,s=new Array(u);if(e)if(a<0)for(let t=0;t<u;++t)s[t]=(o-t)/-a;else for(let t=0;t<u;++t)s[t]=(o-t)*a;else if(a<0)for(let t=0;t<u;++t)s[t]=(r+t)/-a;else for(let t=0;t<u;++t)s[t]=(r+t)*a;return s}function ci(t,n,i){return si(t=+t,n=+n,i=+i)[2]}function fi(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 hi(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}}function di(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 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){return null==t||null==n?NaN:t<n?-1:t>n?1:t>=n?0:NaN}function gi(t,n){return null==t||null==n?NaN:n<t?-1:n>t?1:n>=t?0:NaN}function mi(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=pi,i=(n,i)=>pi(t(n),i),e=(n,i)=>t(n)-i):(n=t===pi||t===gi?t:yi,i=t,e=t),{left:r,center:function(t,n,i=0,o=t.length){const a=r(t,n,i,o-1);return a>i&&e(t[a-1],n)>-e(t[a],n)?a-1:a},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 yi(){return 0}const bi=mi(pi),xi=bi.right;bi.left,mi((function(t){return null===t?NaN:+t})).center;var wi=xi;function Ci(t,n,i){t.prototype=n.prototype=i,i.constructor=t}function Mi(t,n){var i=Object.create(t.prototype);for(var e in n)i[e]=n[e];return i}function ki(){}var Ai=.7,Si=1/Ai,Vi="\\s*([+-]?\\d+)\\s*",Li="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Di="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ni=/^#([0-9a-f]{3,8})$/,Ti=new RegExp(`^rgb\\(${Vi},${Vi},${Vi}\\)$`),Oi=new RegExp(`^rgb\\(${Di},${Di},${Di}\\)$`),Ei=new RegExp(`^rgba\\(${Vi},${Vi},${Vi},${Li}\\)$`),Bi=new RegExp(`^rgba\\(${Di},${Di},${Di},${Li}\\)$`),Fi=new RegExp(`^hsl\\(${Li},${Di},${Di}\\)$`),Pi=new RegExp(`^hsla\\(${Li},${Di},${Di},${Li}\\)$`),_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 Hi(){return this.rgb().formatHex()}function Ii(){return this.rgb().formatRgb()}function Wi(t){var n,i;return t=(t+"").trim().toLowerCase(),(n=Ni.exec(t))?(i=n[1].length,n=parseInt(n[1],16),6===i?Ri(n):3===i?new $i(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=Ti.exec(t))?new $i(n[1],n[2],n[3],1):(n=Oi.exec(t))?new $i(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=Ei.exec(t))?zi(n[1],n[2],n[3],n[4]):(n=Bi.exec(t))?zi(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=Fi.exec(t))?Zi(n[1],n[2]/100,n[3]/100,1):(n=Pi.exec(t))?Zi(n[1],n[2]/100,n[3]/100,n[4]):_i.hasOwnProperty(t)?Ri(_i[t]):"transparent"===t?new $i(NaN,NaN,NaN,0):null}function Ri(t){return new $i(t>>16&255,t>>8&255,255&t,1)}function zi(t,n,i,e){return e<=0&&(t=n=i=NaN),new $i(t,n,i,e)}function ji(t,n,i,e){return 1===arguments.length?((r=t)instanceof ki||(r=Wi(r)),r?new $i((r=r.rgb()).r,r.g,r.b,r.opacity):new $i):new $i(t,n,i,null==e?1:e);var r}function $i(t,n,i,e){this.r=+t,this.g=+n,this.b=+i,this.opacity=+e}function Yi(){return`#${Ui(this.r)}${Ui(this.g)}${Ui(this.b)}`}function Xi(){const t=Gi(this.opacity);return`${1===t?"rgb(":"rgba("}${qi(this.r)}, ${qi(this.g)}, ${qi(this.b)}${1===t?")":`, ${t})`}`}function Gi(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function qi(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Ui(t){return((t=qi(t))<16?"0":"")+t.toString(16)}function Zi(t,n,i,e){return e<=0?t=n=i=NaN:i<=0||i>=1?t=n=NaN:n<=0&&(t=NaN),new Ji(t,n,i,e)}function Ki(t){if(t instanceof Ji)return new Ji(t.h,t.s,t.l,t.opacity);if(t instanceof ki||(t=Wi(t)),!t)return new Ji;if(t instanceof Ji)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),a=NaN,u=o-r,s=(o+r)/2;return u?(a=n===o?(i-e)/u+6*(i<e):i===o?(e-n)/u+2:(n-i)/u+4,u/=s<.5?o+r:2-o-r,a*=60):u=s>0&&s<1?0:a,new Ji(a,u,s,t.opacity)}function Ji(t,n,i,e){this.h=+t,this.s=+n,this.l=+i,this.opacity=+e}function Qi(t){return(t=(t||0)%360)<0?t+360:t}function te(t){return Math.max(0,Math.min(1,t||0))}function ne(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 ie(t,n,i,e,r){var o=t*t,a=o*t;return((1-3*t+3*o-a)*n+(4-6*o+3*a)*i+(1+3*t+3*o-3*a)*e+a*r)/6}Ci(ki,Wi,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:Hi,formatHex:Hi,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Ki(this).formatHsl()},formatRgb:Ii,toString:Ii}),Ci($i,ji,Mi(ki,{brighter(t){return t=null==t?Si:Math.pow(Si,t),new $i(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?Ai:Math.pow(Ai,t),new $i(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new $i(qi(this.r),qi(this.g),qi(this.b),Gi(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:Yi,formatHex:Yi,formatHex8:function(){return`#${Ui(this.r)}${Ui(this.g)}${Ui(this.b)}${Ui(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Xi,toString:Xi})),Ci(Ji,(function(t,n,i,e){return 1===arguments.length?Ki(t):new Ji(t,n,i,null==e?1:e)}),Mi(ki,{brighter(t){return t=null==t?Si:Math.pow(Si,t),new Ji(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?Ai:Math.pow(Ai,t),new Ji(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 $i(ne(t>=240?t-240:t+120,r,e),ne(t,r,e),ne(t<120?t+240:t-120,r,e),this.opacity)},clamp(){return new Ji(Qi(this.h),te(this.s),te(this.l),Gi(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=Gi(this.opacity);return`${1===t?"hsl(":"hsla("}${Qi(this.h)}, ${100*te(this.s)}%, ${100*te(this.l)}%${1===t?")":`, ${t})`}`}}));var ee=t=>()=>t;function re(t,n){var i=n-t;return i?function(t,n){return function(i){return t+i*n}}(t,i):ee(isNaN(t)?n:t)}var oe=function t(n){var i=function(t){return 1==(t=+t)?re: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):ee(isNaN(n)?i:n)}}(n);function e(t,n){var e=i((t=ji(t)).r,(n=ji(n)).r),r=i(t.g,n.g),o=i(t.b,n.b),a=re(t.opacity,n.opacity);return function(n){return t.r=e(n),t.g=r(n),t.b=o(n),t.opacity=a(n),t+""}}return e.gamma=t,e}(1);function ae(t){return function(n){var i,e,r=n.length,o=new Array(r),a=new Array(r),u=new Array(r);for(i=0;i<r;++i)e=ji(n[i]),o[i]=e.r||0,a[i]=e.g||0,u[i]=e.b||0;return o=t(o),a=t(a),u=t(u),e.opacity=1,function(t){return e.r=o(t),e.g=a(t),e.b=u(t),e+""}}}function ue(t,n){var i,e=n?n.length:0,r=t?Math.min(e,t.length):0,o=new Array(r),a=new Array(e);for(i=0;i<r;++i)o[i]=pe(t[i],n[i]);for(;i<e;++i)a[i]=n[i];return function(t){for(i=0;i<r;++i)a[i]=o[i](t);return a}}function se(t,n){var i=new Date;return t=+t,n=+n,function(e){return i.setTime(t*(1-e)+n*e),i}}function le(t,n){return t=+t,n=+n,function(i){return t*(1-i)+n*i}}function ce(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]=pe(t[i],n[i]):r[i]=n[i];return function(t){for(i in e)r[i]=e[i](t);return r}}ae((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],a=e>0?t[e-1]:2*r-o,u=e<n-1?t[e+2]:2*o-r;return ie((i-e/n)*n,a,r,o,u)}})),ae((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],a=t[(e+1)%n],u=t[(e+2)%n];return ie((i-e/n)*n,r,o,a,u)}}));var fe=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,he=new RegExp(fe.source,"g");function de(t,n){var i,e,r,o=fe.lastIndex=he.lastIndex=0,a=-1,u=[],s=[];for(t+="",n+="";(i=fe.exec(t))&&(e=he.exec(n));)(r=e.index)>o&&(r=n.slice(o,r),u[a]?u[a]+=r:u[++a]=r),(i=i[0])===(e=e[0])?u[a]?u[a]+=e:u[++a]=e:(u[++a]=null,s.push({i:a,x:le(i,e)})),o=he.lastIndex;return o<n.length&&(r=n.slice(o),u[a]?u[a]+=r:u[++a]=r),u.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)u[(i=s[e]).i]=i.x(t);return u.join("")})}function ve(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 pe(t,n){var i,e,r=typeof n;return null==n||"boolean"===r?ee(n):("number"===r?le:"string"===r?(i=Wi(n))?(n=i,oe):de:n instanceof Wi?oe:n instanceof Date?se:(e=n,!ArrayBuffer.isView(e)||e instanceof DataView?Array.isArray(n)?ue:"function"!=typeof n.valueOf&&"function"!=typeof n.toString||isNaN(n)?ce:le:ve))(t,n)}function ge(t,n){return t=+t,n=+n,function(i){return Math.round(t*(1-i)+n*i)}}function me(t){return+t}var ye=[0,1];function be(t){return t}function xe(t,n){return(n-=t=+t)?function(i){return(i-t)/n}:(i=isNaN(n)?NaN:.5,function(){return i});var i}function we(t,n,i){var e=t[0],r=t[1],o=n[0],a=n[1];return r<e?(e=xe(r,e),o=i(a,o)):(e=xe(e,r),o=i(o,a)),function(t){return o(e(t))}}function Ce(t,n,i){var e=Math.min(t.length,n.length)-1,r=new Array(e),o=new Array(e),a=-1;for(t[e]<t[0]&&(t=t.slice().reverse(),n=n.slice().reverse());++a<e;)r[a]=xe(t[a],t[a+1]),o[a]=i(n[a],n[a+1]);return function(n){var i=wi(t,n,1,e)-1;return o[i](r[i](n))}}function Me(t,n){return n.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function ke(){return function(){var t,n,i,e,r,o,a=ye,u=ye,s=pe,l=be;function c(){var t,n,i,s=Math.min(a.length,u.length);return l!==be&&(t=a[0],n=a[s-1],t>n&&(i=t,t=n,n=i),l=function(i){return Math.max(t,Math.min(n,i))}),e=s>2?Ce:we,r=o=null,f}function f(n){return null==n||isNaN(n=+n)?i:(r||(r=e(a.map(t),u,s)))(t(l(n)))}return f.invert=function(i){return l(n((o||(o=e(u,a.map(t),le)))(i)))},f.domain=function(t){return arguments.length?(a=Array.from(t,me),c()):a.slice()},f.range=function(t){return arguments.length?(u=Array.from(t),c()):u.slice()},f.rangeRound=function(t){return u=Array.from(t),s=ge,c()},f.clamp=function(t){return arguments.length?(l=!!t||be,c()):l!==be},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()}}()(be,be)}function Ae(t,n){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(n).domain(t)}return this}var Se,Ve=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Le(t){if(!(n=Ve.exec(t)))throw new Error("invalid format: "+t);var n;return new De({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 De(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 Ne(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 Te(t){return(t=Ne(Math.abs(t)))?t[1]:NaN}function Oe(t,n){var i=Ne(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")}Le.prototype=De.prototype,De.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 Ee={"%":(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)=>Oe(100*t,n),r:Oe,s:function(t,n){var i=Ne(t,n);if(!i)return t+"";var e=i[0],r=i[1],o=r-(Se=3*Math.max(-8,Math.min(8,Math.floor(r/3))))+1,a=e.length;return o===a?e:o>a?e+new Array(o-a+1).join("0"):o>0?e.slice(0,o)+"."+e.slice(o):"0."+new Array(1-o).join("0")+Ne(t,Math.max(0,n+o-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function Be(t){return t}var Fe,Pe,_e,He=Array.prototype.map,Ie=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function We(){var t=ke();return t.copy=function(){return Me(t,We())},Ae.apply(t,arguments),function(t){var n=t.domain;return t.ticks=function(t){var i=n();return li(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=fi(t,n,i);switch((e=Le(null==e?",f":e)).type){case"s":var a=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(Te(n)/3)))-Te(Math.abs(t)))}(o,a))||(e.precision=r),_e(e,a);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,Te(n)-Te(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=function(t){return Math.max(0,-Te(Math.abs(t)))}(o))||(e.precision=r-2*("%"===e.type))}return Pe(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(),a=0,u=o.length-1,s=o[a],l=o[u],c=10;for(l<s&&(r=s,s=l,l=r,r=a,a=u,u=r);c-- >0;){if((r=ci(s,l,i))===e)return o[a]=s,o[u]=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)}Fe=function(t){var n,i,e=void 0===t.grouping||void 0===t.thousands?Be:(n=He.call(t.grouping,Number),i=t.thousands+"",function(t,e){for(var r=t.length,o=[],a=0,u=n[0],s=0;r>0&&u>0&&(s+u+1>e&&(u=Math.max(1,e-s)),o.push(t.substring(r-=u,r+u)),!((s+=u+1)>e));)u=n[a=(a+1)%n.length];return o.reverse().join(i)}),r=void 0===t.currency?"":t.currency[0]+"",o=void 0===t.currency?"":t.currency[1]+"",a=void 0===t.decimal?".":t.decimal+"",u=void 0===t.numerals?Be:function(t){return function(n){return n.replace(/[0-9]/g,(function(n){return t[+n]}))}}(He.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=Le(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"):Ee[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:"",w=Ee[y],C=/[defgprs%]/.test(y);function M(t){var r,o,s,h=b,M=x;if("c"===y)M=w(t)+M,t="";else{var k=(t=+t)<0||1/t<0;if(t=isNaN(t)?c:w(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?Ie[8+Se/3]:"")+M+(k&&"("===f?")":""),C)for(r=-1,o=t.length;++r<o;)if(48>(s=t.charCodeAt(r))||s>57){M=(46===s?a+t.slice(r+1):t.slice(r))+M,t=t.slice(0,r);break}}p&&!d&&(t=e(t,1/0));var A=h.length+t.length+M.length,S=A<v?new Array(v-A+1).join(n):"";switch(p&&d&&(t=e(S+t,S.length?v-M.length:1/0),S=""),i){case"<":t=h+t+M+S;break;case"=":t=h+S+t+M;break;case"^":t=S.slice(0,A=S.length>>1)+h+t+M+S.slice(A);break;default:t=S+h+t+M}return u(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=Le(t)).type="f",t)),e=3*Math.max(-8,Math.min(8,Math.floor(Te(n)/3))),r=Math.pow(10,-e),o=Ie[8+e/3];return function(t){return i(r*t)+o}}}}({thousands:",",grouping:[3],currency:["$",""]}),Pe=Fe.format,_e=Fe.formatPrefix;const Re=1e3,ze=6e4,je=36e5,$e=864e5,Ye=6048e5,Xe=31536e6,Ge=new Date,qe=new Date;function Ue(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 a=[];if(i=r.ceil(i),o=null==o?1:Math.floor(o),!(i<e&&o>0))return a;let u;do{a.push(u=new Date(+i)),n(i,o),t(i)}while(u<i&&i<e);return a},r.filter=i=>Ue((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)=>(Ge.setTime(+n),qe.setTime(+e),t(Ge),t(qe),Math.floor(i(Ge,qe))),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 Ze=Ue((()=>{}),((t,n)=>{t.setTime(+t+n)}),((t,n)=>n-t));Ze.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?Ue((n=>{n.setTime(Math.floor(n/t)*t)}),((n,i)=>{n.setTime(+n+i*t)}),((n,i)=>(i-n)/t)):Ze:null),Ze.range;const Ke=Ue((t=>{t.setTime(t-t.getMilliseconds())}),((t,n)=>{t.setTime(+t+n*Re)}),((t,n)=>(n-t)/Re),(t=>t.getUTCSeconds())),Je=(Ke.range,Ue((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Re)}),((t,n)=>{t.setTime(+t+n*ze)}),((t,n)=>(n-t)/ze),(t=>t.getMinutes()))),Qe=(Je.range,Ue((t=>{t.setUTCSeconds(0,0)}),((t,n)=>{t.setTime(+t+n*ze)}),((t,n)=>(n-t)/ze),(t=>t.getUTCMinutes()))),tr=(Qe.range,Ue((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Re-t.getMinutes()*ze)}),((t,n)=>{t.setTime(+t+n*je)}),((t,n)=>(n-t)/je),(t=>t.getHours()))),nr=(tr.range,Ue((t=>{t.setUTCMinutes(0,0,0)}),((t,n)=>{t.setTime(+t+n*je)}),((t,n)=>(n-t)/je),(t=>t.getUTCHours()))),ir=(nr.range,Ue((t=>t.setHours(0,0,0,0)),((t,n)=>t.setDate(t.getDate()+n)),((t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*ze)/$e),(t=>t.getDate()-1))),er=(ir.range,Ue((t=>{t.setUTCHours(0,0,0,0)}),((t,n)=>{t.setUTCDate(t.getUTCDate()+n)}),((t,n)=>(n-t)/$e),(t=>t.getUTCDate()-1))),rr=(er.range,Ue((t=>{t.setUTCHours(0,0,0,0)}),((t,n)=>{t.setUTCDate(t.getUTCDate()+n)}),((t,n)=>(n-t)/$e),(t=>Math.floor(t/$e))));function or(t){return Ue((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())*ze)/Ye))}rr.range;const ar=or(0),ur=or(1),sr=or(2),lr=or(3),cr=or(4),fr=or(5),hr=or(6);function dr(t){return Ue((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)/Ye))}ar.range,ur.range,sr.range,lr.range,cr.range,fr.range,hr.range;const vr=dr(0),pr=dr(1),gr=dr(2),mr=dr(3),yr=dr(4),br=dr(5),xr=dr(6),wr=(vr.range,pr.range,gr.range,mr.range,yr.range,br.range,xr.range,Ue((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()))),Cr=(wr.range,Ue((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()))),Mr=(Cr.range,Ue((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())));Mr.every=t=>isFinite(t=Math.floor(t))&&t>0?Ue((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,Mr.range;const kr=Ue((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 Ar(t,n,i,e,r,o){const a=[[Ke,1,Re],[Ke,5,5e3],[Ke,15,15e3],[Ke,30,3e4],[o,1,ze],[o,5,3e5],[o,15,9e5],[o,30,18e5],[r,1,je],[r,3,108e5],[r,6,216e5],[r,12,432e5],[e,1,$e],[e,2,1728e5],[i,1,Ye],[n,1,2592e6],[n,3,7776e6],[t,1,Xe]];function u(n,i,e){const r=Math.abs(i-n)/e,o=mi((([,,t])=>t)).right(a,r);if(o===a.length)return t.every(fi(n/Xe,i/Xe,e));if(0===o)return Ze.every(Math.max(fi(n,i,e),1));const[u,s]=a[r/a[o-1][2]<a[o][2]/r?o-1:o];return u.every(s)}return[function(t,n,i){const e=n<t;e&&([t,n]=[n,t]);const r=i&&"function"==typeof i.range?i:u(t,n,i),o=r?r.range(t,+n+1):[];return e?o.reverse():o},u]}kr.every=t=>isFinite(t=Math.floor(t))&&t>0?Ue((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,kr.range;const[Sr,Vr]=Ar(kr,Cr,vr,rr,nr,Qe),[Lr,Dr]=Ar(Mr,wr,ar,ir,tr,Je);var Nr=new Date,Tr=new Date;function Or(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 a,u=[];if(i=r.ceil(i),o=null==o?1:Math.floor(o),!(i<e&&o>0))return u;do{u.push(a=new Date(+i)),n(i,o),t(i)}while(a<i&&i<e);return u},r.filter=function(i){return Or((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 Nr.setTime(+n),Tr.setTime(+e),t(Nr),t(Tr),Math.floor(i(Nr,Tr))},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 Er=864e5,Br=6048e5;function Fr(t){return Or((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)/Br}))}var Pr=Fr(0),_r=Fr(1),Hr=Fr(2),Ir=Fr(3),Wr=Fr(4),Rr=Fr(5),zr=Fr(6),jr=(Pr.range,_r.range,Hr.range,Ir.range,Wr.range,Rr.range,zr.range,Or((function(t){t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCDate(t.getUTCDate()+n)}),(function(t,n){return(n-t)/Er}),(function(t){return t.getUTCDate()-1}))),$r=jr;function Yr(t){return Or((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()))/Br}))}jr.range;var Xr=Yr(0),Gr=Yr(1),qr=Yr(2),Ur=Yr(3),Zr=Yr(4),Kr=Yr(5),Jr=Yr(6),Qr=(Xr.range,Gr.range,qr.range,Ur.range,Zr.range,Kr.range,Jr.range,Or((t=>t.setHours(0,0,0,0)),((t,n)=>t.setDate(t.getDate()+n)),((t,n)=>(n-t-6e4*(n.getTimezoneOffset()-t.getTimezoneOffset()))/Er),(t=>t.getDate()-1))),to=Qr,no=(Qr.range,Or((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()})));no.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Or((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 io=no,eo=(no.range,Or((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()})));eo.every=function(t){return isFinite(t=Math.floor(t))&&t>0?Or((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 ro=eo;function oo(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 ao(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 uo(t,n,i){return{y:t,m:n,d:i,H:0,M:0,S:0,L:0}}function so(t){var n=t.dateTime,i=t.date,e=t.time,r=t.periods,o=t.days,a=t.shortDays,u=t.months,s=t.shortMonths,l=xo(r),c=wo(r),f=xo(o),h=wo(o),d=xo(a),v=wo(a),p=xo(u),g=wo(u),m=xo(s),y=wo(s),b={a:function(t){return a[t.getDay()]},A:function(t){return o[t.getDay()]},b:function(t){return s[t.getMonth()]},B:function(t){return u[t.getMonth()]},c:null,d:zo,e:zo,f:Go,g:ra,G:aa,H:jo,I:$o,j:Yo,L:Xo,m:qo,M:Uo,p:function(t){return r[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:Da,s:Na,S:Zo,u:Ko,U:Jo,V:ta,w:na,W:ia,x:null,X:null,y:ea,Y:oa,Z:ua,"%":La},x={a:function(t){return a[t.getUTCDay()]},A:function(t){return o[t.getUTCDay()]},b:function(t){return s[t.getUTCMonth()]},B:function(t){return u[t.getUTCMonth()]},c:null,d:sa,e:sa,f:da,g:ka,G:Sa,H:la,I:ca,j:fa,L:ha,m:va,M:pa,p:function(t){return r[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:Da,s:Na,S:ga,u:ma,U:ya,V:xa,w:wa,W:Ca,x:null,X:null,y:Ma,Y:Aa,Z:Va,"%":La},w={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:Oo,e:Oo,f:Ho,g:Lo,G:Vo,H:Bo,I:Bo,j:Eo,L:_o,m:To,M:Fo,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:No,Q:Wo,s:Ro,S:Po,u:Mo,U:ko,V:Ao,w:Co,W:So,x:function(t,n,e){return k(t,i,n,e)},X:function(t,n,i){return k(t,e,n,i)},y:Lo,Y:Vo,Z:Do,"%":Io};function C(t,n){return function(i){var e,r,o,a=[],u=-1,s=0,l=t.length;for(i instanceof Date||(i=new Date(+i));++u<l;)37===t.charCodeAt(u)&&(a.push(t.slice(s,u)),null!=(r=vo[e=t.charAt(++u)])?e=t.charAt(++u):r="e"===e?" ":"0",(o=n[e])&&(e=o(i,r)),a.push(e),s=u+1);return a.push(t.slice(s,u)),a.join("")}}function M(t,n){return function(i){var e,r,o=uo(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=ao(uo(o.y,0,1))).getUTCDay(),e=r>4||0===r?_r.ceil(e):_r(e),e=$r.offset(e,7*(o.V-1)),o.y=e.getUTCFullYear(),o.m=e.getUTCMonth(),o.d=e.getUTCDate()+(o.w+6)%7):(r=(e=oo(uo(o.y,0,1))).getDay(),e=r>4||0===r?Gr.ceil(e):Gr(e),e=to.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?ao(uo(o.y,0,1)).getUTCDay():oo(uo(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,ao(o)):oo(o)}}function k(t,n,i,e){for(var r,o,a=0,u=n.length,s=i.length;a<u;){if(e>=s)return-1;if(37===(r=n.charCodeAt(a++))){if(r=n.charAt(a++),!(o=w[r in vo?n.charAt(a++):r])||(e=o(t,i,e))<0)return-1}else if(r!=i.charCodeAt(e++))return-1}return e}return b.x=C(i,b),b.X=C(e,b),b.c=C(n,b),x.x=C(i,x),x.X=C(e,x),x.c=C(n,x),{format:function(t){var n=C(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=C(t+="",x);return n.toString=function(){return t},n},utcParse:function(t){var n=M(t+="",!0);return n.toString=function(){return t},n}}}eo.range;var lo,co,fo,ho,vo={"-":"",_:" ",0:"0"},po=/^\s*\d+/,go=/^%/,mo=/[\\^$*+?|[\]().{}]/g;function yo(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 bo(t){return t.replace(mo,"\\$&")}function xo(t){return new RegExp("^(?:"+t.map(bo).join("|")+")","i")}function wo(t){return new Map(t.map(((t,n)=>[t.toLowerCase(),n])))}function Co(t,n,i){var e=po.exec(n.slice(i,i+1));return e?(t.w=+e[0],i+e[0].length):-1}function Mo(t,n,i){var e=po.exec(n.slice(i,i+1));return e?(t.u=+e[0],i+e[0].length):-1}function ko(t,n,i){var e=po.exec(n.slice(i,i+2));return e?(t.U=+e[0],i+e[0].length):-1}function Ao(t,n,i){var e=po.exec(n.slice(i,i+2));return e?(t.V=+e[0],i+e[0].length):-1}function So(t,n,i){var e=po.exec(n.slice(i,i+2));return e?(t.W=+e[0],i+e[0].length):-1}function Vo(t,n,i){var e=po.exec(n.slice(i,i+4));return e?(t.y=+e[0],i+e[0].length):-1}function Lo(t,n,i){var e=po.exec(n.slice(i,i+2));return e?(t.y=+e[0]+(+e[0]>68?1900:2e3),i+e[0].length):-1}function Do(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 No(t,n,i){var e=po.exec(n.slice(i,i+1));return e?(t.q=3*e[0]-3,i+e[0].length):-1}function To(t,n,i){var e=po.exec(n.slice(i,i+2));return e?(t.m=e[0]-1,i+e[0].length):-1}function Oo(t,n,i){var e=po.exec(n.slice(i,i+2));return e?(t.d=+e[0],i+e[0].length):-1}function Eo(t,n,i){var e=po.exec(n.slice(i,i+3));return e?(t.m=0,t.d=+e[0],i+e[0].length):-1}function Bo(t,n,i){var e=po.exec(n.slice(i,i+2));return e?(t.H=+e[0],i+e[0].length):-1}function Fo(t,n,i){var e=po.exec(n.slice(i,i+2));return e?(t.M=+e[0],i+e[0].length):-1}function Po(t,n,i){var e=po.exec(n.slice(i,i+2));return e?(t.S=+e[0],i+e[0].length):-1}function _o(t,n,i){var e=po.exec(n.slice(i,i+3));return e?(t.L=+e[0],i+e[0].length):-1}function Ho(t,n,i){var e=po.exec(n.slice(i,i+6));return e?(t.L=Math.floor(e[0]/1e3),i+e[0].length):-1}function Io(t,n,i){var e=go.exec(n.slice(i,i+1));return e?i+e[0].length:-1}function Wo(t,n,i){var e=po.exec(n.slice(i));return e?(t.Q=+e[0],i+e[0].length):-1}function Ro(t,n,i){var e=po.exec(n.slice(i));return e?(t.s=+e[0],i+e[0].length):-1}function zo(t,n){return yo(t.getDate(),n,2)}function jo(t,n){return yo(t.getHours(),n,2)}function $o(t,n){return yo(t.getHours()%12||12,n,2)}function Yo(t,n){return yo(1+to.count(io(t),t),n,3)}function Xo(t,n){return yo(t.getMilliseconds(),n,3)}function Go(t,n){return Xo(t,n)+"000"}function qo(t,n){return yo(t.getMonth()+1,n,2)}function Uo(t,n){return yo(t.getMinutes(),n,2)}function Zo(t,n){return yo(t.getSeconds(),n,2)}function Ko(t){var n=t.getDay();return 0===n?7:n}function Jo(t,n){return yo(Xr.count(io(t)-1,t),n,2)}function Qo(t){var n=t.getDay();return n>=4||0===n?Zr(t):Zr.ceil(t)}function ta(t,n){return t=Qo(t),yo(Zr.count(io(t),t)+(4===io(t).getDay()),n,2)}function na(t){return t.getDay()}function ia(t,n){return yo(Gr.count(io(t)-1,t),n,2)}function ea(t,n){return yo(t.getFullYear()%100,n,2)}function ra(t,n){return yo((t=Qo(t)).getFullYear()%100,n,2)}function oa(t,n){return yo(t.getFullYear()%1e4,n,4)}function aa(t,n){var i=t.getDay();return yo((t=i>=4||0===i?Zr(t):Zr.ceil(t)).getFullYear()%1e4,n,4)}function ua(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+yo(n/60|0,"0",2)+yo(n%60,"0",2)}function sa(t,n){return yo(t.getUTCDate(),n,2)}function la(t,n){return yo(t.getUTCHours(),n,2)}function ca(t,n){return yo(t.getUTCHours()%12||12,n,2)}function fa(t,n){return yo(1+$r.count(ro(t),t),n,3)}function ha(t,n){return yo(t.getUTCMilliseconds(),n,3)}function da(t,n){return ha(t,n)+"000"}function va(t,n){return yo(t.getUTCMonth()+1,n,2)}function pa(t,n){return yo(t.getUTCMinutes(),n,2)}function ga(t,n){return yo(t.getUTCSeconds(),n,2)}function ma(t){var n=t.getUTCDay();return 0===n?7:n}function ya(t,n){return yo(Pr.count(ro(t)-1,t),n,2)}function ba(t){var n=t.getUTCDay();return n>=4||0===n?Wr(t):Wr.ceil(t)}function xa(t,n){return t=ba(t),yo(Wr.count(ro(t),t)+(4===ro(t).getUTCDay()),n,2)}function wa(t){return t.getUTCDay()}function Ca(t,n){return yo(_r.count(ro(t)-1,t),n,2)}function Ma(t,n){return yo(t.getUTCFullYear()%100,n,2)}function ka(t,n){return yo((t=ba(t)).getUTCFullYear()%100,n,2)}function Aa(t,n){return yo(t.getUTCFullYear()%1e4,n,4)}function Sa(t,n){var i=t.getUTCDay();return yo((t=i>=4||0===i?Wr(t):Wr.ceil(t)).getUTCFullYear()%1e4,n,4)}function Va(){return"+0000"}function La(){return"%"}function Da(t){return+t}function Na(t){return Math.floor(+t/1e3)}function Ta(t){return new Date(t)}function Oa(t){return t instanceof Date?+t:+new Date(+t)}function Ea(t,n,i,e,r,o,a,u,s,l){var c=ke(),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 w(t){return(s(t)<t?d:u(t)<t?v:a(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,Oa)):h().map(Ta)},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?w: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],a=t[r];return a<o&&(i=e,e=r,r=i,i=o,o=a,a=i),t[e]=n.floor(o),t[r]=n.ceil(a),t}(i,t)):c},c.copy=function(){return Me(c,Ea(t,n,i,e,r,o,a,u,s,l))},c}function Ba(){return Ae.apply(Ea(Lr,Dr,Mr,wr,ar,ir,tr,Je,Ke,co).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Fa(){return Ae.apply(Ea(Sr,Vr,kr,Cr,vr,er,nr,Qe,Ke,ho).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Pa(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}lo=so({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"]}),co=lo.format,fo=lo.parse,ho=lo.utcFormat,lo.utcParse;class _a extends Map{constructor(t,n=Ia){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(Ha(this,t))}has(t){return super.has(Ha(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 Ha({_intern:t,_key:n},i){const e=n(i);return t.has(e)?t.get(e):i}function Ia(t){return null!==t&&"object"==typeof t?t.valueOf():t}Set;const Wa=Symbol("implicit");function Ra(){var t=new _a,n=[],i=[],e=Wa;function r(r){let o=t.get(r);if(void 0===o){if(e!==Wa)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 _a;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 Ra(n,i).unknown(e)},Ae.apply(r,arguments),r}function za(){var t,n,i=Ra().unknown(void 0),e=i.domain,r=i.range,o=0,a=1,u=!1,s=0,l=0,c=.5;function f(){var i=e().length,f=a<o,h=f?a:o,d=f?o:a;t=(d-h)/Math.max(1,i-s+2*l),u&&(t=Math.floor(t)),h+=(d-h-t*(i-s))*c,n=t*(1-s),u&&(h=Math.round(h),n=Math.round(n));var v=Pa(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,a]=t,o=+o,a=+a,f()):[o,a]},i.rangeRound=function(t){return[o,a]=t,o=+o,a=+a,u=!0,f()},i.bandwidth=function(){return n},i.step=function(){return t},i.round=function(t){return arguments.length?(u=!!t,f()):u},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 za(e(),[o,a]).round(u).paddingInner(s).paddingOuter(l).align(c)},Ae.apply(f(),arguments)}function ja(){}function $a(t){return null==t?ja:function(){return this.querySelector(t)}}function Ya(t){return null==t?[]:Array.isArray(t)?t:Array.from(t)}function Xa(){return[]}function Ga(t){return function(n){return n.matches(t)}}var qa=Array.prototype.find;function Ua(){return this.firstElementChild}var Za=Array.prototype.filter;function Ka(){return Array.from(this.children)}function Ja(t){return new Array(t.length)}function Qa(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}function tu(t,n,i,e,r,o){for(var a,u=0,s=n.length,l=o.length;u<l;++u)(a=n[u])?(a.__data__=o[u],e[u]=a):i[u]=new Qa(t,o[u]);for(;u<s;++u)(a=n[u])&&(r[u]=a)}function nu(t,n,i,e,r,o,a){var u,s,l,c=new Map,f=n.length,h=o.length,d=new Array(f);for(u=0;u<f;++u)(s=n[u])&&(d[u]=l=a.call(s,s.__data__,u,n)+"",c.has(l)?r[u]=s:c.set(l,s));for(u=0;u<h;++u)l=a.call(t,o[u],u,o)+"",(s=c.get(l))?(e[u]=s,s.__data__=o[u],c.delete(l)):i[u]=new Qa(t,o[u]);for(u=0;u<f;++u)(s=n[u])&&c.get(d[u])===s&&(r[u]=s)}function iu(t){return t.__data__}function eu(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function ru(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}Qa.prototype={constructor:Qa,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 ou="http://www.w3.org/1999/xhtml",au={svg:"http://www.w3.org/2000/svg",xhtml:ou,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function uu(t){var n=t+="",i=n.indexOf(":");return i>=0&&"xmlns"!==(n=t.slice(0,i))&&(t=t.slice(i+1)),au.hasOwnProperty(n)?{space:au[n],local:t}:t}function su(t){return function(){this.removeAttribute(t)}}function lu(t){return function(){this.removeAttributeNS(t.space,t.local)}}function cu(t,n){return function(){this.setAttribute(t,n)}}function fu(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function hu(t,n){return function(){var i=n.apply(this,arguments);null==i?this.removeAttribute(t):this.setAttribute(t,i)}}function du(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 vu(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function pu(t){return function(){this.style.removeProperty(t)}}function gu(t,n,i){return function(){this.style.setProperty(t,n,i)}}function mu(t,n,i){return function(){var e=n.apply(this,arguments);null==e?this.style.removeProperty(t):this.style.setProperty(t,e,i)}}function yu(t){return function(){delete this[t]}}function bu(t,n){return function(){this[t]=n}}function xu(t,n){return function(){var i=n.apply(this,arguments);null==i?delete this[t]:this[t]=i}}function wu(t){return t.trim().split(/^|\s+/)}function Cu(t){return t.classList||new Mu(t)}function Mu(t){this._node=t,this._names=wu(t.getAttribute("class")||"")}function ku(t,n){for(var i=Cu(t),e=-1,r=n.length;++e<r;)i.add(n[e])}function Au(t,n){for(var i=Cu(t),e=-1,r=n.length;++e<r;)i.remove(n[e])}function Su(t){return function(){ku(this,t)}}function Vu(t){return function(){Au(this,t)}}function Lu(t,n){return function(){(n.apply(this,arguments)?ku:Au)(this,t)}}function Du(){this.textContent=""}function Nu(t){return function(){this.textContent=t}}function Tu(t){return function(){var n=t.apply(this,arguments);this.textContent=null==n?"":n}}function Ou(){this.innerHTML=""}function Eu(t){return function(){this.innerHTML=t}}function Bu(t){return function(){var n=t.apply(this,arguments);this.innerHTML=null==n?"":n}}function Fu(){this.nextSibling&&this.parentNode.appendChild(this)}function Pu(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function _u(t){return function(){var n=this.ownerDocument,i=this.namespaceURI;return i===ou&&n.documentElement.namespaceURI===ou?n.createElement(t):n.createElementNS(i,t)}}function Hu(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Iu(t){var n=uu(t);return(n.local?Hu:_u)(n)}function Wu(){return null}function Ru(){var t=this.parentNode;t&&t.removeChild(this)}function zu(){var t=this.cloneNode(!1),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function ju(){var t=this.cloneNode(!0),n=this.parentNode;return n?n.insertBefore(t,this.nextSibling):t}function $u(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 Yu(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 a=0,u=r.length;a<u;++a)if((e=r[a]).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 Xu(t,n,i){var e=vu(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 Gu(t,n){return function(){return Xu(this,t,n)}}function qu(t,n){return function(){return Xu(this,t,n.apply(this,arguments))}}Mu.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 Uu,Zu,Ku,Ju,Qu=[null];function ts(t,n){this._groups=t,this._parents=n}function ns(t){return"string"==typeof t?new ts([[document.querySelector(t)]],[document.documentElement]):new ts([[t]],Qu)}function is(t){return"string"==typeof t?new ts([document.querySelectorAll(t)],[document.documentElement]):new ts([Ya(t)],Qu)}function es(t){this._context=t}function rs(t){return new es(t)}function os(t){this._context=t}function as(t){var n,i,e=t.length-1,r=new Array(e),o=new Array(e),a=new Array(e);for(r[0]=0,o[0]=2,a[0]=t[0]+2*t[1],n=1;n<e-1;++n)r[n]=1,o[n]=4,a[n]=4*t[n]+2*t[n+1];for(r[e-1]=2,o[e-1]=7,a[e-1]=8*t[e-1]+t[e],n=1;n<e;++n)i=r[n]/o[n-1],o[n]-=i,a[n]-=i*a[n-1];for(r[e-1]=a[e-1]/o[e-1],n=e-2;n>=0;--n)r[n]=(a[n]-r[n+1])/o[n];for(o[e-1]=(t[e]+r[e-1])/2,n=0;n<e-1;++n)o[n]=2*t[n+1]-r[n+1];return[r,o]}function us(t){return new os(t)}function ss(t,n){this._context=t,this._t=n}function ls(t){return new ss(t,.5)}function cs(t){return new ss(t,0)}function fs(t){return new ss(t,1)}function hs(t,n,i,e){var r,o=t.domainNRangeValues,a=t.showRoundOffXTickValues,u=void 0!==a&&a,s=t.xAxistickSize,l=void 0===s?6:s,c=t.tickPadding,f=void 0===c?10:c,h=t.xAxisCount,d=t.xAxisElement,v=t.hideTickOverlap,p=We().domain([o.dStartValue,o.dEndValue]).range([o.rStartValue,o.rEndValue]);u&&p.nice();var g=null!=h?h:6,m=function(t,i){if(n.tickFormat)return Pe(n.tickFormat)(t);var r="number"==typeof t?t:t.valueOf();return _s(r,e)};if(v&&void 0===h){var y=ws(p.ticks().map(m),'[class^="xAxis-"] text')+20,b=p.range(),x=b[0],w=b[1];g=Math.min(Math.max(1,Math.floor(Math.abs(w-x)/y)),10)}var C=ei(p).tickSize(l).tickPadding(f).ticks(g).tickFormat(m);i===Zu.HorizontalBarChartWithAxis&&C.tickSizeInner(-(t.containerHeight-t.margins.top)),n.tickValues&&C.tickValues(n.tickValues),d&&ns(d).call(C).selectAll("text").attr("aria-hidden","true");var M=(null!==(r=n.tickValues)&&void 0!==r?r:p.ticks(g)).map(C.tickFormat());return{xScale:p,tickValues:M}}function ds(t,n,i){var e=n?i?n.utcFormat:n.format:i?ho:co,r=e(".%L"),o=e(":%S"),a=e("%I:%M"),u=e("%I %p"),s=e("%a %d"),l=e("%b %d"),c=e("%B"),f=e("%Y"),h=i?Qe:Je,d=i?nr:tr,v=i?er:ir,p=i?Cr:wr,g=i?vr:ar,m=i?kr:Mr;return(Ke(t)<t?r:h(t)<t?o:d(t)<t?a:v(t)<t?u:p(t)<t?g(t)<t?s:l:m(t)<t?c:f)(t)}function vs(t,n,i,e,r){if(r)return function(t,n,i){var e,r=t<0&&t===n?0:n,o=hi(t>=0&&t===n?0:t,r,i),a=li(o[0],o[o.length-1],i);return a[a.length-1]>r&&(e=function(t){var n=Math.round(t);return Math.abs(t-n)<1e-6?n:t}(r),Math.log10(e)%1==0)&&a.pop(),a}(n,t,i);var o=e||(t-n)/i>=1?Math.ceil((t-n)/i):(t-n)/i,a=[n<0&&t>=0?0:n];if(a[0]===n&&a.push(n+o),n<0&&t>=0){for(;a[a.length-1]>n;)a.push(a[a.length-1]-o);a.reverse()}for(;a[a.length-1]<t;)a.push(a[a.length-1]+o);return a}function ps(t,n){var i=t.yMinMaxValues,e=void 0===i?{startValue:0,endValue:0}:i,r=t.yAxisElement,o=void 0===r?null:r,a=t.yMaxValue,u=void 0===a?0:a,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>u?b:u,w=e.startValue<l?Math.min(0,e.startValue):l,C=.1*Math.abs(x-w),M=We().domain([w-C,x+C]).range([c-f.bottom,f.top]),k=(n?ii(M):ri(M)).tickPadding(d).ticks(y);return g?k.tickFormat(g):k.tickFormat(Pe(".2~s")),o&&ns(o).call(k).selectAll("text").attr("aria-hidden","true"),M}function gs(t,n,i,e,r,o,a){void 0===r&&(r=!1),void 0===o&&(o=!1),void 0===a&&(a=!1);var u=t.yMinMaxValues,s=void 0===u?{startValue:0,endValue:0}:u,l=t.yAxisElement,c=void 0===l?null:l,f=t.yMaxValue,h=void 0===f?0:f,d=t.yMinValue,v=void 0===d?0:d,p=t.containerHeight,g=t.containerWidth,m=t.margins,y=t.tickPadding,b=void 0===y?12:y,x=t.maxOfYVal,w=void 0===x?0:x,C=t.yAxisTickFormat,M=t.yAxisTickCount,k=void 0===M?4:M,A=t.eventAnnotationProps,S=t.eventLabelHeight,V=w||s.endValue,L=V>h?V:h,D=o?Math.min(s.startValue,v||0):s.startValue<v?0:v,N=vs(L,D,k,e,a),T=We().domain([o?N[0]:D,N[N.length-1]]).range([p-m.bottom,m.top+(A?S:0)]),O=(!n&&r||n&&!r?ii(T):ri(T)).tickPadding(b).tickValues(N).tickSizeInner(-(g-m.left-m.right));return C?O.tickFormat(C):O.tickFormat(Pe(".2~s")),c&&ns(c).call(O).selectAll("text").attr("aria-hidden","true"),i.yAxisDomainValues=N,T}ts.prototype=function(){return new ts([[document.documentElement]],Qu)}.prototype={constructor:ts,select:function(t){"function"!=typeof t&&(t=$a(t));for(var n=this._groups,i=n.length,e=new Array(i),r=0;r<i;++r)for(var o,a,u=n[r],s=u.length,l=e[r]=new Array(s),c=0;c<s;++c)(o=u[c])&&(a=t.call(o,o.__data__,c,u))&&("__data__"in o&&(a.__data__=o.__data__),l[c]=a);return new ts(e,this._parents)},selectAll:function(t){t="function"==typeof t?function(t){return function(){return Ya(t.apply(this,arguments))}}(t):function(t){return null==t?Xa:function(){return this.querySelectorAll(t)}}(t);for(var n=this._groups,i=n.length,e=[],r=[],o=0;o<i;++o)for(var a,u=n[o],s=u.length,l=0;l<s;++l)(a=u[l])&&(e.push(t.call(a,a.__data__,l,u)),r.push(a));return new ts(e,r)},selectChild:function(t){return this.select(null==t?Ua:function(t){return function(){return qa.call(this.children,t)}}("function"==typeof t?t:Ga(t)))},selectChildren:function(t){return this.selectAll(null==t?Ka:function(t){return function(){return Za.call(this.children,t)}}("function"==typeof t?t:Ga(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,a=n[r],u=a.length,s=e[r]=[],l=0;l<u;++l)(o=a[l])&&t.call(o,o.__data__,l,a)&&s.push(o);return new ts(e,this._parents)},data:function(t,n){if(!arguments.length)return Array.from(this,iu);var i,e=n?nu:tu,r=this._parents,o=this._groups;"function"!=typeof t&&(i=t,t=function(){return i});for(var a=o.length,u=new Array(a),s=new Array(a),l=new Array(a),c=0;c<a;++c){var f=r[c],h=o[c],d=h.length,v=eu(t.call(f,f&&f.__data__,c,r)),p=v.length,g=s[c]=new Array(p),m=u[c]=new Array(p);e(f,h,g,m,l[c]=new Array(d),v,n);for(var y,b,x=0,w=0;x<p;++x)if(y=g[x]){for(x>=w&&(w=x+1);!(b=m[w])&&++w<p;);y._next=b||null}}return(u=new ts(u,r))._enter=s,u._exit=l,u},enter:function(){return new ts(this._enter||this._groups.map(Ja),this._parents)},exit:function(){return new ts(this._exit||this._groups.map(Ja),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,a=Math.min(r,o),u=new Array(r),s=0;s<a;++s)for(var l,c=i[s],f=e[s],h=c.length,d=u[s]=new Array(h),v=0;v<h;++v)(l=c[v]||f[v])&&(d[v]=l);for(;s<r;++s)u[s]=i[s];return new ts(u,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,a=r[o];--o>=0;)(e=r[o])&&(a&&4^e.compareDocumentPosition(a)&&a.parentNode.insertBefore(e,a),a=e);return this},sort:function(t){function n(n,i){return n&&i?t(n.__data__,i.__data__):!n-!i}t||(t=ru);for(var i=this._groups,e=i.length,r=new Array(e),o=0;o<e;++o){for(var a,u=i[o],s=u.length,l=r[o]=new Array(s),c=0;c<s;++c)(a=u[c])&&(l[c]=a);l.sort(n)}return new ts(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 a=e[r];if(a)return a}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],a=0,u=o.length;a<u;++a)(r=o[a])&&t.call(r,r.__data__,a,o);return this},attr:function(t,n){var i=uu(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?lu:su:"function"==typeof n?i.local?du:hu:i.local?fu:cu)(i,n))},style:function(t,n,i){return arguments.length>1?this.each((null==n?pu:"function"==typeof n?mu:gu)(t,n,null==i?"":i)):function(t,n){return t.style.getPropertyValue(n)||vu(t).getComputedStyle(t,null).getPropertyValue(n)}(this.node(),t)},property:function(t,n){return arguments.length>1?this.each((null==n?yu:"function"==typeof n?xu:bu)(t,n)):this.node()[t]},classed:function(t,n){var i=wu(t+"");if(arguments.length<2){for(var e=Cu(this.node()),r=-1,o=i.length;++r<o;)if(!e.contains(i[r]))return!1;return!0}return this.each(("function"==typeof n?Lu:n?Su:Vu)(i,n))},text:function(t){return arguments.length?this.each(null==t?Du:("function"==typeof t?Tu:Nu)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?Ou:("function"==typeof t?Bu:Eu)(t)):this.node().innerHTML},raise:function(){return this.each(Fu)},lower:function(){return this.each(Pu)},append:function(t){var n="function"==typeof t?t:Iu(t);return this.select((function(){return this.appendChild(n.apply(this,arguments))}))},insert:function(t,n){var i="function"==typeof t?t:Iu(t),e=null==n?Wu:"function"==typeof n?n:$a(n);return this.select((function(){return this.insertBefore(i.apply(this,arguments),e.apply(this,arguments)||null)}))},remove:function(){return this.each(Ru)},clone:function(t){return this.select(t?ju:zu)},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+""),a=o.length;if(!(arguments.length<2)){for(u=n?Yu:$u,e=0;e<a;++e)this.each(u(o[e],n,i));return this}var u=this.node().__on;if(u)for(var s,l=0,c=u.length;l<c;++l)for(e=0,s=u[l];e<a;++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?qu:Gu)(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,a=r.length;o<a;++o)(e=r[o])&&(yield e)}},es.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)}}},os.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,n=this._y,i=t.length;if(i)if(this._line?this._context.lineTo(t[0],n[0]):this._context.moveTo(t[0],n[0]),2===i)this._context.lineTo(t[1],n[1]);else for(var e=as(t),r=as(n),o=0,a=1;a<i;++o,++a)this._context.bezierCurveTo(e[0][o],r[0][o],e[1][o],r[1][o],t[a],n[a]);(this._line||0!==this._line&&1===i)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,n){this._x.push(+t),this._y.push(+n)}},ss.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,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:if(this._t<=0)this._context.lineTo(this._x,n),this._context.lineTo(t,n);else{var i=this._x*(1-this._t)+t*this._t;this._context.lineTo(i,this._y),this._context.lineTo(i,n)}}this._x=t,this._y=n}},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"}(Zu||(Zu={})),function(t){t[t.NumericAxis=0]="NumericAxis",t[t.DateAxis=1]="DateAxis",t[t.StringAxis=2]="StringAxis"}(Ku||(Ku={})),function(t){t[t.NumericAxis=0]="NumericAxis",t[t.DateAxis=1]="DateAxis",t[t.StringAxis=2]="StringAxis"}(Ju||(Ju={}));var ms=function(t,n,i,e){var r=t.containerHeight,o=t.tickPadding,a=void 0===o?12:o,u=t.margins,s=t.yAxisTickFormat,l=t.yAxisElement,c=za().domain(n).range([r-u.bottom-e/2,u.top+e/2]),f=(i?ii(c):ri(c)).tickPadding(a).ticks(n);return s&&f.tickFormat(s),l&&ns(l).call(f).selectAll("text"),c},ys=function(t,n,i){var e=t.containerHeight,r=t.tickPadding,o=void 0===r?12:r,a=t.margins,u=t.yAxisTickFormat,s=t.yAxisElement,l=t.yAxisPadding,c=void 0===l?0:l,f=za().domain(n).range([e-a.bottom,a.top]).padding(c),h=(i?ii(f):ri(f)).tickPadding(o).tickValues(n).tickSize(0);return u&&h.tickFormat(u),s&&ns(s).call(h).selectAll("text"),f};function bs(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 xs=function(t,n,i){var e=ns("#".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},ws=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),a=o.getPropertyValue("font-weight"),u=o.getPropertyValue("font-size"),s=o.getPropertyValue("font-family");e.font="".concat(a," ").concat(u," ").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 Cs(t){var n=t.tooltipCls,i=t.xAxis,e=t.id;if(null===i)return null;for(var r=ns("body").append("div").attr("id",e).attr("class",n).style("opacity",0),o=i.selectAll("#BaseSpan")._groups[0],a=o&&Object.keys(o).length,u=[],s=0;s<a;s++){var l=o[s].dataset&&Object.values(o[s].dataset)[0];u.push(l)}var c=i.selectAll(".tick")._groups[0],f=c&&Object.keys(c).length,h=function(t){ns(c[t]).on("mouseover",(function(n,i){r.style("opacity",.9),r.text(u[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 Ms(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 ks(t,n,i,e){var r=di(t,(function(t){return di(t.data,(function(t){return t.x}))})),o=vi(t,(function(t){return vi(t.data,(function(t){return t.x}))})),a=n.left,u=i-n.right;return e?{dStartValue:o,dEndValue:r,rStartValue:a,rEndValue:u}:{dStartValue:r,dEndValue:o,rStartValue:a,rEndValue:u}}function As(t){var n={};return t.forEach((function(t){var i=t.y;n[i]||(n[i]=[]),n[i].push(t)})),Object.values(n)}function Ss(t,n){var i=0,e=0;return t.forEach((function(t){var r=t.reduce((function(t,n){return t+(n.x>0?n.x:0)}),n),o=t.reduce((function(t,n){return t+(n.x<0?n.x:0)}),n);i=Math.max(i,r),e=Math.min(e,o)})),{longestPositiveBar:i,longestNegativeBar:e}}function Vs(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 Ls(t,n,i,e,r,a,u){var s,l;void 0===r&&(r=[]),a===Zu.AreaChart||a===Zu.LineChart?(s=di(t,(function(t){return di(t.data,(function(t){return t.x}))})),l=vi(t,(function(t){return vi(t.data,(function(t){return t.x}))})),s=di((0,o.fX)((0,o.fX)([],r,!0),[s],!1)),l=vi((0,o.fX)((0,o.fX)([],r,!0),[l],!1))):(s=di(t,(function(t){return t.x})),l=vi(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 Ds(t,n,i){var e=[];return t.forEach((function(t){!i==!t.useSecondaryYScale&&t.data.forEach((function(t){e.push(t.y)}))})),{startValue:di(e),endValue:vi(e)}}function Ns(t,n,i){var e=[];return t.forEach((function(t){i||e.push(t.y),void 0!==t.lineData&&!i==!t.lineData.useSecondaryYScale&&e.push(t.lineData.y)})),{startValue:di(e),endValue:vi(e)}}function Ts(t,n){if(void 0!==n&&n===Ju.NumericAxis){var i=vi(t,(function(t){return t.y}));return{startValue:di(t,(function(t){return t.y})),endValue:i}}return{startValue:0,endValue:0}}var Os,Es,Bs=function(t,n){if(n)switch(typeof t){case"string":return Ku.StringAxis;case"number":return Ku.NumericAxis;default:return Ku.DateAxis}else switch(typeof t){case"string":return Ju.StringAxis;case"number":return Ju.NumericAxis;default:return Ju.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"}(Os||(Os={})),function(t){t[t.dottedLine=0]="dottedLine"}(Es||(Es={}));var Fs=((Uu={})[Os.circle]={widthRatio:1},Uu[Os.square]={widthRatio:1},Uu[Os.triangle]={widthRatio:1},Uu[Os.diamond]={widthRatio:1},Uu[Os.pyramid]={widthRatio:1},Uu[Os.hexagon]={widthRatio:2},Uu[Os.pentagon]={widthRatio:1.168},Uu[Os.octagon]={widthRatio:2.414},Uu),Ps=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}},_s=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 Hs(t){return _e(t<1e3?".2~":".1",t)(t)}var Is=function(t,n,i,e){var r;return void 0===i&&(i=16),r="auto"===t||"histogram"===e?i:"number"==typeof t?t:Math.min(i,16),"number"==typeof n&&(r=Math.min(r,n)),Math.max(r,1)},Ws=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))},Rs=function(t,n){return"number"==typeof t||"number"==typeof n},zs=function(t,n){return(n?ho:co)("%-e %b %Y, %H:%M")(t)+(n?" GMT":"")};function js(t){return void 0===t&&(t={}),t.dangerouslySetInnerHTML,(0,o.Tt)(t,["dangerouslySetInnerHTML"])}function $s(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 Ys=/var\((--[a-zA-Z0-9\-]+)\)/g;function Xs(t,n){var i=getComputedStyle(t);return n.replace(Ys,(function(t,n){return i.getPropertyValue(n)}))}function Gs(t,n,i){var e=getComputedStyle(n);Array.isArray(t)?t.forEach((function(t){ns(i).style(t,e.getPropertyValue(t))})):Object.entries(t).forEach((function(t){var n=t[0],r=t[1];ns(i).style(r,e.getPropertyValue(n))}))}var qs={position:"absolute",visibility:"hidden",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},Us=g("measurement_span_");function Zs(t,n){if(void 0===n&&(n=rs),"function"==typeof t)return t;switch(t){case"linear":return rs;case"natural":return us;case"step":return ls;case"stepAfter":return fs;case"stepBefore":return cs;default:return n}}var Ks,Js=i(357),Qs={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"},tl={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"]]},nl={default:tl,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"]]}},il=Object.values(tl),el=Object.values(Qs),rl=function(t,n){if(0===t.length)return["",""];var i=Number(n);return i<t.length?t[i]:t[0]},ol=function(t,n,i){void 0===n&&(n=0),void 0===i&&(i=!1);var e=il[(t+n)%il.length];return rl(e,i)},al=function(t,n){if(void 0===n&&(n=!1),el.indexOf(t)>=0){var i=t.split("."),e=i[0],r=i[1],o=nl[e][r];return rl(o,n)}return[t,t]};function ul(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 sl(t){!function(t,n){for(var i in n)n.hasOwnProperty(i)&&(t[i]=ul(t,t[i],n[i]))}(t,{componentDidMount:ll,componentDidUpdate:cl,componentWillUnmount:fl})}function ll(){hl(this.props.componentRef,this)}function cl(t){t.componentRef!==this.props.componentRef&&(hl(t.componentRef,null),hl(this.props.componentRef,this))}function fl(){hl(this.props.componentRef,null)}function hl(t,n){t&&("object"==typeof t?t.current=n:"function"==typeof t&&t(n))}function dl(t,n,i){var e,r=C(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"}(Ks||(Ks={}));var vl,pl=a.createContext(void 0),gl="data-is-focusable",ml="data-focuszone-id",yl="tabindex",bl="data-no-vertical-wrap",xl="data-no-horizontal-wrap",wl=999999999,Cl=-999999999;function Ml(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 kl,Al={},Sl=new Set,Vl=["text","number","password","email","tel","url","search","textarea"],Ll=!1,Dl=function(t){function n(i){var e,r,o,u,l,c=t.call(this,i)||this;c._root=a.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,a=i.onFocusNotification,u=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(B(h,void 0,c._inShadowRoot)&&c._isImmediateDescendantOfZone(h)){n=h;break}h=w(h,Ll)}if(s&&t.target===c._root.current){var d=l&&"function"==typeof l&&c._root.current&&l(c._root.current);d&&B(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(),u?u(t):a&&a()}},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=w(n,Ll);for(;i.length&&((n=i.pop())&&B(n,void 0,c._inShadowRoot)&&c._setActiveElement(n,!0),!F(n)););}},c._onKeyDown=function(t,n){if(!c._portalContainsElement(t.target)){var i=c.props,e=i.direction,r=i.disabled,o=i.isInnerZoneKeystroke,a=i.pagingSupportDisabled,u=i.shouldEnterInnerZone;if(!(r||(c.props.onKeyDown&&c.props.onKeyDown(t),t.isDefaultPrevented()||c._getDocument().activeElement===c._root.current&&c._isInnerZone))){if((u&&u(t)||o&&o(t))&&c._isImmediateDescendantOfZone(t.target)){var l=c._getFirstInnerZone();if(l){if(!l.focus(!0))return}else{if(!P(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!==Ks.vertical&&(c._preventDefaultWhenHandled(t),c._moveFocusLeft(n)))break;return;case 39:if(e!==Ks.vertical&&(c._preventDefaultWhenHandled(t),c._moveFocusRight(n)))break;return;case 38:if(e!==Ks.horizontal&&(c._preventDefaultWhenHandled(t),c._moveFocusUp()))break;return;case 40:if(e!==Ks.horizontal&&(c._preventDefaultWhenHandled(t),c._moveFocusDown()))break;return;case 34:if(!a&&c._moveFocusPaging(!0))break;return;case 33:if(!a&&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!==Ks.vertical&&c._shouldWrapFocus(c._activeElement,xl)?((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),a=Math.floor(i.bottom),u=Math.floor(n.top);return t&&r>o||!t&&a<u?e>=i.left&&e<=i.left+i.width?0:Math.abs(i.left+i.width/2-e):c._shouldWrapFocus(c._activeElement,bl)?wl:Cl},sl(c),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!==(u=i.shouldRaiseClicksOnSpace)&&void 0!==u?u:f,c}return(0,o.C6)(n,t),n.getOuterZones=function(){return Sl.size},n._onKeyDownCapture=function(t){9===t.which&&Sl.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),Al[this._id]=this,i){for(var e=w(i,Ll);e&&e!==this._getDocument().body&&1===e.nodeType;){if(F(e)){this._isInnerZone=!0;break}e=w(e,Ll)}this._isInnerZone||(Sl.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,Ll)||this._defaultFocusElement&&!M(this._root.current,this._defaultFocusElement,Ll))&&(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],a=i.children[Math.min(o,i.children.length-1)];if(!a)break;i=a}return B(i)&&O(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 Al[this._id],this._isInnerZone||(Sl.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,u=n.ariaDescribedBy,s=n.ariaLabelledBy,l=n.className,c=q(this.props,$),f=i||e||"div";this._evaluateFocusBeforeRender();var h=(0,Yt.O4)();return a.createElement(f,(0,o.Cl)({"aria-labelledby":s,"aria-describedby":u},c,r,{className:U((vl||(vl=(0,nt.Z)({selectors:{":focus":{outline:"none"}}},"ms-FocusZone")),vl),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(gl)&&this._isInnerZone){var i=this._getOwnerZone(this._root.current);if(i!==this._root.current){var e=Al[i.getAttribute(ml)];return!!e&&e.focusElement(this._root.current)}return!1}if(!t&&this._activeElement&&M(this._root.current,this._activeElement)&&B(this._activeElement,void 0,this._inShadowRoot)&&(!n||E(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=w(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&&(F(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(gl)&&"true"!==i.getAttribute("data-disable-click-on-enter"))return Ml(i,n),!0;i=w(i,Ll)}while(i!==this._root.current);return!1},n.prototype._getFirstInnerZone=function(t){if(!(t=t||this._activeElement||this._root.current))return null;if(F(t))return Al[t.getAttribute(ml)];for(var n=t.firstElementChild;n;){if(F(n))return Al[n.getAttribute(ml)];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,a=void 0,u=!1,s=this.props.direction===Ks.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){a=r;break}if(r){var c=n(l,r.getBoundingClientRect());if(-1===c&&-1===o){a=r;break}if(c>-1&&(-1===o||c<o)&&(o=c,a=r),o>=0&&c<0)break}}while(r);if(a&&a!==this._activeElement)u=!0,this.focusElement(a);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 u},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,a=Math.floor(r.top),u=Math.floor(e.bottom);return a<u?t._shouldWrapFocus(t._activeElement,bl)?wl:Cl:((-1===n&&a>=u||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._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,a=Math.floor(r.bottom),u=Math.floor(r.top),s=Math.floor(e.top);return a>s?t._shouldWrapFocus(t._activeElement,bl)?wl:Cl:((-1===n&&a<=s||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._moveFocusLeft=function(t){var n=this,i=this._shouldWrapFocus(this._activeElement,xl);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!==Ks.vertical?o=e.right-r.right:i||(o=Cl),o}),void 0,i)&&(this._setFocusAlignment(this._activeElement,!0,!1),!0)},n.prototype._moveFocusRight=function(t){var n=this,i=this._shouldWrapFocus(this._activeElement,xl);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!==Ks.vertical?o=r.left-e.left:i||(o=Cl),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,a=-1,u=-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>a?(a=f,r=p,o=i):!t&&d<u?(u=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===Ks.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=w(t,Ll);n&&n!==this._root.current&&n!==this._getDocument().body;){if(F(n))return n;n=w(n,Ll)}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&&!B(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];F(e)?"true"===e.getAttribute(gl)&&(this._isInnerZone||(this._activeElement||this._defaultFocusElement)&&this._activeElement!==e?"-1"!==e.getAttribute(yl)&&e.setAttribute(yl,"-1"):(this._defaultFocusElement=e,"0"!==e.getAttribute(yl)&&e.setAttribute(yl,"0"))):(e.getAttribute&&"false"===e.getAttribute(gl)&&e.setAttribute(yl,"-1"),B(e,void 0,this._inShadowRoot)?this.props.disabled?e.setAttribute(yl,"-1"):this._isInnerZone||(this._activeElement||this._defaultFocusElement)&&this._activeElement!==e?"-1"!==e.getAttribute(yl)&&e.setAttribute(yl,"-1"):(this._defaultFocusElement=e,"0"!==e.getAttribute(yl)&&e.setAttribute(yl,"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&&Vl.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=C(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&&dl(t,this._root.current)},n.prototype._getDocument=function(){return(0,k.Y)(this._root.current)},n.contextType=pl,n.defaultProps={isCircularNavigation:!1,direction:Ks.bidirectional,shouldRaiseClicks:!0,"data-tabster":'{"uncontrolled": {}}'},n}(a.Component);function Nl(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"}(kl||(kl={}));var Tl,Ol=(0,u.Z)(),El=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n._onRenderContent=function(t){return"string"==typeof t.content?a.createElement("p",{className:n._classNames.subText},t.content):a.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,u=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=Ol(u,{theme:d,className:n||i&&i.className,beakWidth:i&&i.isBeakVisible?i.beakWidth:0,gapSpace:i&&i.gapSpace,maxWidth:l}),a.createElement(zn,(0,o.Cl)({target:h,directionalHint:e,directionalHintForRTL:r},i,q(this.props,G,["id"]),{className:this._classNames.root}),a.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}(a.Component),Bl=(0,r.I)(El,(function(t){var n=t.className,i=t.beakWidth,e=void 0===i?16:i,r=t.gapSpace,o=void 0===r?0:r,a=t.maxWidth,u=t.theme,s=u.semanticColors,l=u.fonts,c=u.effects,f=-(Math.sqrt(e*e/2)+o)+1/window.devicePixelRatio;return{root:["ms-Tooltip",u.fonts.medium,Yt.lw.fadeIn200,{background:s.menuBackground,boxShadow:c.elevation8,padding:"8px",maxWidth:a,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"}(Tl||(Tl={}));var Fl,Pl,_l=(0,u.Z)(),Hl=function(t){function n(i){var e=t.call(this,i)||this;return e._tooltipHost=a.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 kl.Parent:return e._tooltipHost.current.parentElement;case kl.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,a=Ut(e.context);if(n._currentVisibleTooltip&&n._currentVisibleTooltip!==e&&n._currentVisibleTooltip.dismiss(),n._currentVisibleTooltip=e,void 0!==r){var u=e._getTargetElement();if(u&&!Nl(u))return}if(!t.target||!dl(t.target,e._getTargetElement(),a))if(e._clearDismissTimer(),e._clearOpenTimer(),o!==Tl.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===Ft||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 Tl.medium:return 300;case Tl.long:return 500;default:return 0}},sl(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,u=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=_l(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:u,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)?a.createElement(a.Fragment,null,t.content):null})):e,b=p&&!!y,x=f&&p&&y?g:void 0;return a.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&&a.createElement(Bl,(0,o.Cl)({},m)),a.createElement("div",{hidden:!0,id:g,style:Yt.dX},y))},n.prototype.componentDidMount=function(){this._async=new Pt(this)},n.prototype.componentWillUnmount=function(){n._currentVisibleTooltip&&n._currentVisibleTooltip===this&&(n._currentVisibleTooltip=void 0),this._async.dispose()},n.defaultProps={delay:Tl.medium},n.contextType=Wt,n}(a.Component),Il={root:"ms-TooltipHost",ariaPlaceholder:"ms-TooltipHost-aria-placeholder"},Wl=(0,r.I)(Hl,(function(t){var n=t.className,i=t.theme;return{root:[(0,Yt.Km)(Il,i).root,{display:"inline"},n]}}),void 0,{scope:"TooltipHost"}),Rl=function(t){function n(n){var i=t.call(this,n)||this;return i._tooltipChild=a.createRef(),i._checkTextOverflow=function(){var t=i._getTargetElement(),n=!!t&&Nl(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 Pt(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 a.createElement(Wl,{overflowMode:kl.Self,hostClassName:n,content:i},a.createElement("span",(0,o.Cl)({},Ps(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}(a.Component),zl=(0,u.Z)(),jl=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=zl(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?a.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=a.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,u=0;return this._isChartEmpty()?a.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):a.createElement("div",{className:this._classNames.root,onMouseLeave:this._handleChartMouseLeave},i.map((function(n,i){u=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-u,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=zl(t.props.styles,{theme:t.props.theme,width:t.props.width,showTriangle:!!n.chartData[0].data,variant:t.props.variant});return a.createElement("div",{key:i},a.createElement("div",{className:l.items},a.createElement(Dl,{direction:Ks.horizontal},a.createElement("div",{className:t._classNames.chartTitle},n.chartTitle&&a.createElement(Rl,{className:t._classNames.chartTitleLeft,content:n.chartTitle,accessibilityData:n.chartTitleAccessibilityData}),e)),n.chartData[0].data&&t._createBenchmark(n),a.createElement(Dl,{direction:Ks.horizontal,className:t._classNames.chartWrapper},a.createElement("svg",{ref:t.barChartSvgRef,className:t._classNames.chart,"aria-label":n.chartTitle},a.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)))))})),a.createElement(zn,(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,Ps(this.state.callOutAccessibilityData)),a.createElement(a.Fragment,null,this.props.onRenderCalloutPerHorizontalBar?this.props.onRenderCalloutPerHorizontalBar(this.state.barCalloutProps):a.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 a=b(this._refArray,(function(t){return t.index===n.legend}));this._calloutAnchorPoint=n;var u=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);u=(null===(r=n.gradient)||void 0===r?void 0:r[0])||ol(s,0,null===(o=this.props.theme)||void 0===o?void 0:o.isInverted)[0]}this.setState({isCalloutVisible:!0,hoverValue:t,lineColor:u,legend:n.legend,refSelected:a.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,u=e.horizontalBarChartdata.y,s=Ps(t.chartDataAccessibilityData,"text",!1);switch(i){case"default":return a.createElement("div",(0,o.Cl)({className:this._classNames.chartTitleRight},s),(0,jn.U)(r,n));case"fraction":return a.createElement("div",(0,o.Cl)({},s),a.createElement("span",{className:this._classNames.chartTitleRight},(0,jn.U)(r,n)),a.createElement("span",{className:this._classNames.chartDataTextDenominator}," / "+(0,jn.U)(u,n)));case"percentage":var l="".concat((0,jn.U)(Math.round(r/u*100),n),"%");return a.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 a.createElement("div",{className:this._classNames.benchmarkContainer},a.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,u=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-u)/100:1,m=t.chartData.map((function(n,e){var o,u,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])||ol(i,0,null===(u=r.props.theme)||void 0===u?void 0:u.isInverted)[0],b=(null===(d=n.gradient)||void 0===d?void 0:d[1])||ol(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 w=n.horizontalBarChartdata.x;if(1===e&&r.props.variant===v.AbsoluteScale){if(r.props.hideLabels)return a.createElement("text",{key:e});var C=t.chartData[0].horizontalBarChartdata.x;return a.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},Hs(C))}var M=g("HBC_Gradient")+"_".concat(i,"_").concat(e);return a.createElement(a.Fragment,{key:e},r.props.enableGradient&&a.createElement("defs",null,a.createElement("linearGradient",{id:M},a.createElement("stop",{offset:"0",stopColor:y}),a.createElement("stop",{offset:"100%",stopColor:b}))),a.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,w,n):void 0,onFocus:""!==n.legend?r._hoverOn.bind(r,w,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}(a.Component),$l=(0,r.I)(jl,(function(t){var n=t.className,i=t.theme,e=t.width,r=t.barHeight,a=t.showTriangle,u=t.variant,s=t.hideLabels,l=i.palette;return{root:[{display:"flex",flexDirection:"column",width:e||"100%"},n],items:{marginBottom:a||u===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:u===v.AbsoluteScale?"4px":"5px"},chartTitleRight:{fontSize:Yt.s.medium,fontWeight:Yt.BO.semibold,color:i.palette.neutralPrimary},chartDataTextDenominator:{fontSize:Yt.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:Yt.BO.semibold,fill:i.palette.neutralPrimary}),chartWrapper:{paddingRight:u!==v.AbsoluteScale||s?0:40}}})),Yl={host:"ms-HoverCard-host"},Xl=function(){function t(n){this._id=t._uniqueId++,this._parent=n,this._eventRecords=[]}return t.raise=function(n,i,e,r,o){var a,u=null!=o?o:(0,k.Y)();if(t._isElement(n)){if(void 0!==u&&u.createEvent){var s=u.createEvent("HTMLEvents");s.initEvent(i,r||!1,!0),Z(s,e),a=n.dispatchEvent(s)}else if(void 0!==u&&u.createEventObject){var l=u.createEventObject(e);n.fireEvent("on"+i,l)}}else for(;n&&!1!==a;){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!==a&&v<d.length;v++){var p=d[v];p.objectCallback&&(a=p.objectCallback.call(p.parent,e))}n=r?n.parent:null}return a},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 a=i.split(/[ ,]+/),u=0;u<a.length;u++)this.on(n,a[u],e,r);else{var s=this._parent,l={target:n,eventName:i,parent:s,callback:e,options:r};if((a=n.__events__=n.__events__||{})[i]=a[i]||{count:0},a[i][this._id]=a[i][this._id]||[],a[i][this._id].push(l),a[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 a=o.target.__events__,u=a[o.eventName],s=u?u[this._id]:null;s&&(1!==s.length&&i?(u.count--,s.splice(s.indexOf(o),1)):(u.count-=s.length,delete a[o.eventName][this._id]),u.count||delete a[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"}(Fl||(Fl={})),function(t){t.plain="PlainCard",t.expanding="ExpandingCard"}(Pl||(Pl={}));var Gl,ql={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"}(Gl||(Gl={}));var Ul=function(t){for(var n=t.activeElement;null==n?void 0:n.shadowRoot;)n=n.shadowRoot.activeElement;return n},Zl=function(t){var n=t.target;return n&&n.shadowRoot&&(n=t.composedPath()[0]),n};function Kl(t){var n=a.useRef();return a.useEffect((function(){n.current=t})),n.current}function Jl(t,n){var i=a.useRef(n);return i.current||(i.current=g(t)),i.current}function Ql(t){var n=a.useRef((function(){throw new Error("Cannot call an event handler while rendering")}));return Pn((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 tc={disabled:!1,disableFirstFocus:!1,forceFocusInsideTrap:!0,isClickableOutsideFocusTrap:!1,"data-tabster":'{"uncontrolled": {"completely": true}}'},nc=a.forwardRef((function(t,n){var i,e,r,u=a.useRef(null),s=a.useRef(null),l=a.useRef(null),c=It(u,n),f=zt(),h=qt(),d=!!a.useContext(pl),v=null===(i=Kl(!1))||void 0===i||i,p=W(tc,t),g=Xt({hasFocus:!1,focusStackId:Jl("ftz-",p.id)}),m=p.children,y=p.componentRef,b=p.disabled,x=p.disableFirstFocus,w=p.forceFocusInsideTrap,C=p.focusPreviouslyFocusedInnerElement,k=p.firstFocusableSelector,A=p.firstFocusableTarget,S=p.disableRestoreFocus,V=void 0===S?p.ignoreExternalFocusing:S,L=p.isClickableOutsideFocusTrap,D=p.enableAriaHiddenSiblings,O={"aria-hidden":!0,style:{pointerEvents:"none",position:"fixed"},tabIndex:b?-1:0,"data-is-visible":!0,"data-is-focus-trap-zone-bumper":!0},E=a.useCallback((function(t){t!==s.current&&t!==l.current&&H(t)}),[]),B=Ql((function(){if(u.current){var t=g.previouslyFocusedElementInTrapZone;if(C&&t&&M(u.current,t))E(t);else{var n=null;if("string"==typeof A)n=u.current.querySelector(A);else if(A)n=A(u.current);else if(k){var i="string"==typeof k?k:k();n=u.current.querySelector("."+i)}n||(n=T(u.current,u.current.firstChild,!1,!1,!1,!0,void 0,void 0,void 0,d)),n&&E(n)}}})),F=function(t){if(!b&&u.current){var n,i=t===g.hasFocus?(void 0===(n=!1)&&(n=!0),N(u.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)}(u.current,s.current,0,!1,d);i&&(i===s.current||i===l.current?B():i.focus())}},P=Ql((function(t){if(nc.focusStack=nc.focusStack.filter((function(t){return g.focusStackId!==t})),f){var n=f.activeElement;V||"function"!=typeof(null==t?void 0:t.focus)||!M(u.current,n)&&n!==f.body&&!n.shadowRoot||E(t)}})),_=Ql((function(t){if(!b&&g.focusStackId===nc.focusStack.slice(-1)[0]){var n=Zl(t);n&&!M(u.current,n)&&(f&&Ul(f)===f.body?setTimeout((function(){f&&Ul(f)===f.body&&(B(),g.hasFocus=!0)}),0):(B(),g.hasFocus=!0),t.preventDefault(),t.stopPropagation())}}));return a.useEffect((function(){var t=[];return w&&t.push(I(h,"focus",_,!0)),L||t.push(I(h,"click",_,!0)),function(){t.forEach((function(t){return t()}))}}),[w,L,h]),a.useEffect((function(){if(!b&&(v||w)&&u.current){nc.focusStack.push(g.focusStackId);var t=p.elementToFocusOnDismiss||Ul(f);return x||M(u.current,t)||B(),function(){return P(t)}}}),[w,b]),a.useEffect((function(){if(!b&&D)return Bt(u.current)}),[b,D,u]),e=function(){delete g.previouslyFocusedElementInTrapZone},(r=a.useRef(e)).current=e,a.useEffect((function(){return function(){var t;null===(t=r.current)||void 0===t||t.call(r)}}),[]),function(t,n,i){a.useImperativeHandle(t,(function(){return{get previouslyFocusedElement(){return n},focus:i}}),[i,n])}(y,g.previouslyFocusedElementInTrapZone,B),a.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?F(!0):t.target===l.current&&F(!1),g.hasFocus=!0,t.target!==t.currentTarget&&t.target!==s.current&&t.target!==l.current&&(g.previouslyFocusedElementInTrapZone=Zl(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=Ul(f)),M(u.current,i)||(g.hasFocus=!1)}}),a.createElement("div",(0,o.Cl)({},O,{ref:s})),m,a.createElement("div",(0,o.Cl)({},O,{ref:l})))}));nc.displayName="FocusTrapZone",nc.focusStack=[];var ic,ec=function(t){return a.createElement(zn,(0,o.Cl)({},t),a.createElement(nc,(0,o.Cl)({disabled:t.hidden},t.focusTrapProps),t.children))},rc=function(t){var n=t.gapSpace,i=void 0===n?0:n,e=t.directionalHint,r=void 0===e?x.bottomLeftEdge:e,u=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:u,finalHeight:d,minPagePadding:24,onDismiss:f,gapSpace:i}),p);return a.createElement(a.Fragment,null,c?a.createElement(ec,(0,o.Cl)({},g,{focusTrapProps:{forceFocusInsideTrap:!1,isClickableOutsideFocusTrap:!0,disableFirstFocus:!l}}),v):a.createElement(zn,(0,o.Cl)({},g),v))},oc=(0,u.Z)(),ac=function(t){function n(n){var i=t.call(this,n)||this;return i._expandedElem=a.createRef(),i._onKeyDown=function(t){t.which===Ft&&i.props.onLeave&&i.props.onLeave(t)},i._onRenderCompactCard=function(){return a.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})})),a.createElement("div",{className:i._classNames.expandedCard,ref:i._expandedElem},a.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 Pt(i),sl(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,u=t.mode,s=t.className,l=this.state,c=l.needsScroll,f=l.firstFrameRendered,h=i+e;this._classNames=oc(n,{theme:r,compactCardHeight:i,className:s,expandedCardHeight:e,needsScroll:c,expandedCardFirstFrameRendered:u===Gl.expanded&&f});var d=a.createElement("div",{onMouseEnter:this.props.onEnter,onMouseLeave:this.props.onLeave,onKeyDown:this._onKeyDown},this._onRenderCompactCard(),this._onRenderExpandedCard());return a.createElement(rc,(0,o.Cl)({},this.props,{content:d,finalHeight:h,className:this._classNames.root}))},n.defaultProps={compactCardHeight:156,expandedCardHeight:384,directionalHintFixed:!0},n}(a.Component),uc=(0,r.I)(ac,(function(t){var n,i=t.theme,e=t.needsScroll,r=t.expandedCardFirstFrameRendered,o=t.compactCardHeight,a=t.expandedCardHeight,u=t.className,s=i.palette,l=(0,Yt.Km)(ql,i);return{root:[l.root,{width:320,pointerEvents:"none",selectors:(n={},n[Yt.up]={border:"1px solid WindowText"},n)},u],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:a}],expandedCardScroll:[l.expandedCardScroll,e&&{height:"100%",boxSizing:"border-box",overflowY:"auto"}]}}),void 0,{scope:"ExpandingCard"}),sc={root:"ms-PlainCard-root"},lc=(0,u.Z)(),cc=function(t){function n(n){var i=t.call(this,n)||this;return i._onKeyDown=function(t){t.which===Ft&&i.props.onLeave&&i.props.onLeave(t)},sl(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=lc(n,{theme:i,className:e});var r=a.createElement("div",{onMouseEnter:this.props.onEnter,onMouseLeave:this.props.onLeave,onKeyDown:this._onKeyDown},this.props.onRenderPlainCard(this.props.renderData));return a.createElement(rc,(0,o.Cl)({},this.props,{content:r,className:this._classNames.root}))},n}(a.Component),fc=(0,r.I)(cc,(function(t){var n,i=t.theme,e=t.className;return{root:[(0,Yt.Km)(sc,i).root,{pointerEvents:"auto",selectors:(n={},n[Yt.up]={border:"1px solid WindowText"},n)},e]}}),void 0,{scope:"PlainCard"}),hc=(0,u.Z)(),dc=function(t){function n(n){var i=t.call(this,n)||this;return i._hoverCard=a.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:Gl.compact,openMode:"keydown"===t.type?Fl.hotKey:Fl.hover}}))}),i.props.cardOpenDelay)},i._cardDismiss=function(t,n){if(t){if(!(n instanceof MouseEvent))return;if("keydown"===n.type&&n.which!==Ft)return;i.props.sticky||i._currentMouseTarget!==n.currentTarget&&n.which!==Ft||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:Gl.compact,openMode:Fl.hover})},i._instantOpenAsExpanded=function(t){i._async.clearTimeout(i._dismissTimerId),i.setState((function(t){return t.isHoverCardVisible?t:{isHoverCardVisible:!0,mode:Gl.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),a=i._nativeDismissEvent;o&&(i._events.on(o,"mouseenter",i._cardOpen),i._events.on(o,"mouseleave",a),n?i._events.on(o,"keydown",i._cardOpen):(i._events.on(o,"focus",i._cardOpen),i._events.on(o,"blur",a)),e?i._events.on(o,"click",i._instantOpenAsExpanded):(i._events.on(o,"mousedown",a),i._events.on(o,"keydown",a)))},sl(i),i._async=new Pt(i),i._events=new Xl(i),i._nativeDismissEvent=i._cardDismiss.bind(i,!0),i._childDismissEvent=i._cardDismiss.bind(i,!1),i.state={isHoverCardVisible:!1,mode:Gl.compact,openMode:Fl.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:Gl.expanded},(function(){i.props.onCardExpand&&i.props.onCardExpand()}))}),this.props.expandedCardOpenDelay),this.props.onCardVisible&&this.props.onCardVisible()):(this.setState({mode:Gl.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,u=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=hc(s,{theme:l,className:c});var w=(0,o.Cl)((0,o.Cl)({},q(this.props,G)),{id:x,trapFocus:!!d,firstFocus:v||b===Fl.hotKey,targetElement:this._getTargetElement(this.props.target),onEnter:this._cardOpen,onLeave:this._childDismissEvent}),C=(0,o.Cl)((0,o.Cl)((0,o.Cl)({},n),w),{mode:y}),M=(0,o.Cl)((0,o.Cl)({},h),w);return a.createElement("div",{className:this._classNames.host,ref:this._hoverCard,"aria-describedby":u&&m?x:void 0,"data-is-focusable":!this.props.target},i,m&&(f===Pl.expanding?a.createElement(uc,(0,o.Cl)({},C)):a.createElement(fc,(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:Pl.expanding},n}(a.Component),vc=(0,r.I)(dc,(function(t){var n=t.className,i=t.theme;return{host:[(0,Yt.Km)(Yl,i).host,n]}}),void 0,{scope:"HoverCard"});!function(t){t[t.horizontal=0]="horizontal",t[t.vertical=1]="vertical"}(ic||(ic={}));var pc=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 a(t,n,o){for(var a=t,u=r(t,o);u>i;){var s=n(a);if(void 0===s)return{renderedData:a,resizeDirection:void 0,dataToMeasure:void 0};if(void 0===(u=e.getCachedMeasurement(s)))return{dataToMeasure:s,resizeDirection:"shrink"};a=s}return{renderedData:a,resizeDirection:void 0,dataToMeasure:void 0}}return{getNextState:function(t,n,u,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 a;return a=t>i?r?{resizeDirection:"grow",dataToMeasure:r(e)}:{resizeDirection:"shrink",dataToMeasure:n}:{resizeDirection:"shrink",dataToMeasure:e},i=t,(0,o.Cl)((0,o.Cl)({},a),{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,u,s){for(var l=t,c=r(t,u);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"},a(l,s,u))}(n.dataToMeasure,t.onGrowData,u,t.onReduceData)):(0,o.Cl)((0,o.Cl)({},l),a(n.dataToMeasure,t.onReduceData,u))),l}},shouldRenderDataForMeasurement:function(t){return!(!t||void 0!==e.getCachedMeasurement(t))},getInitialResizeGroupState:function(t){return{dataToMeasure:(0,o.Cl)({},t),resizeDirection:"grow",measureContainer:!0}}}},gc=a.createContext({isMeasured:!1}),mc={position:"fixed",visibility:"hidden"},yc={position:"relative"};function bc(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 xc={isMeasured:!0},wc=a.forwardRef((function(t,n){var i=a.useRef(null),e=It(i,n),r=function(t,n){var i=Xt(pc),e=a.useRef(null),r=a.useRef(null),u=a.useRef(!1),s=_t(),l=function(t,n,i){var e=Xt((function(){return n.getInitialResizeGroupState(t.data)})),r=a.useReducer(bc,e),u=r[0],s=r[1];a.useEffect((function(){s({type:"dataToMeasure",value:t.data})}),[t.data]);var l=a.useRef(e);return l.current=(0,o.Cl)({},u),[l,a.useCallback((function(t){t&&s({type:"resizeData",value:t})}),[]),a.useCallback((function(){i.current&&s({type:"measureContainer",value:!0})}),[i])]}(t,i,n),c=l[0],f=l[1],h=l[2];a.useEffect((function(){var n;c.current.renderedData&&(u.current=!0,null===(n=t.dataDidRender)||void 0===n||n.call(t,c.current.renderedData))})),a.useEffect((function(){s.requestAnimationFrame((function(){var o=void 0;if(c.current.measureContainer&&n.current){var a=n.current.getBoundingClientRect();o=t.direction===ic.vertical?a.height:a.width}var s=i.getNextState(t,c.current,(function(){var n=u.current?r:e;if(!n.current)return 0;var i=n.current.getBoundingClientRect();return t.direction===ic.vertical?i.height:i.width}),o);f(s)}),n.current)})),Ht(Rt(),"resize",s.debounce(h,16,{leading:!0}));var d=i.shouldRenderDataForMeasurement(c.current.dataToMeasure),v=!u.current&&d;return[c.current.dataToMeasure,c.current.renderedData,h,e,r,d,v]}(t,i),u=r[0],s=r[1],l=r[2],c=r[3],f=r[4],h=r[5],d=r[6];a.useImperativeHandle(t.componentRef,(function(){return{remeasure:l}}),[l]);var v=t.className,p=t.onRenderData,g=q(t,G,["data"]);return a.createElement("div",(0,o.Cl)({},g,{className:v,ref:e}),a.createElement("div",{style:yc},h&&!d&&a.createElement("div",{style:mc,ref:f},a.createElement(gc.Provider,{value:xc},p(u))),a.createElement("div",{ref:c,style:d?mc:void 0,"data-automation-id":"visibleContent"},d?p(u):s&&p(s))))}));wc.displayName="ResizeGroupBase";var Cc,Mc=wc;!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"}(Cc||(Cc={}));var kc=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?Cc.PERSISTED_KEYTIP_ADDED:Cc.KEYTIP_ADDED;Xl.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||Xl.raise(this,Cc.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?Cc.PERSISTED_KEYTIP_REMOVED:Cc.KEYTIP_REMOVED;!this.inKeytipMode&&this.delayUpdatingKeytipChange||Xl.raise(this,e,{keytip:t,uniqueID:n})},t.prototype.enterKeytipMode=function(){Xl.raise(this,Cc.ENTER_KEYTIP_MODE)},t.prototype.exitKeytipMode=function(){Xl.raise(this,Cc.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){Xl.raise(this,Cc.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}(),Ac=function(t,n,i){for(var e=0,r=t;e<r.length;e++){var o=r[e];i[n.register(o,!0)]=o}},Sc=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]}},Vc=function(t){var n=kc.getInstance(),i=t.className,e=t.overflowItems,r=t.keytipSequences,u=t.itemSubMenuProvider,s=t.onRenderOverflowButton,l=Xt({}),c=a.useCallback((function(t){return u?u(t):t.subMenuProps?t.subMenuProps.items:void 0}),[u]),f=a.useMemo((function(){var t=[],i=[];return r?null==e||e.forEach((function(e){var a,u=e.keytipProps;if(u){var s={content:u.content,keySequences:u.keySequences,disabled:u.disabled||!(!e.disabled&&!e.isDisabled),hasDynamicChildren:u.hasDynamicChildren,hasMenu:u.hasMenu};u.hasDynamicChildren||c(e)?(s.onExecute=n.menuExecute.bind(n,r,null===(a=null==e?void 0:e.keytipProps)||void 0===a?void 0:a.keySequences),s.hasOverflowSubMenu=!0):s.onExecute=u.onExecute,t.push(s);var l=(0,o.Cl)((0,o.Cl)({},e),{keytipProps:(0,o.Cl)((0,o.Cl)({},u),{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=Kl(t);a.useEffect((function(){e&&(Sc(i,e),Ac(n,i,t))})),a.useEffect((function(){return Ac(n,i,t),function(){Sc(i,t)}}),[])}(l,f.keytipsToRegister,n),a.createElement("div",{className:i},s(h))},Lc=(0,u.Z)(),Dc=a.forwardRef((function(t,n){var i=a.useRef(null),e=It(i,n);!function(t,n){var i=function(){var t;return null!==(t=zt())&&void 0!==t?t:"undefined"!=typeof document?document:void 0}();a.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,u=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=Lc(l,{className:s,vertical:c}),g=!!u&&u.length>0;return a.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&&a.createElement(Vc,(0,o.Cl)({},t,{className:p.overflowButton})),r&&r.map((function(t,n){return a.createElement("div",{className:p.item,key:t.key,role:"none"},v(t))})),"end"===d&&g&&a.createElement(Vc,(0,o.Cl)({},t,{className:p.overflowButton})))}));Dc.displayName="OverflowSet";var Nc,Tc={flexShrink:0,display:"inherit"},Oc=(0,r.I)(Dc,(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",Tc],overflowButton:["ms-OverflowSet-overflowButton",Tc]}}),void 0,{scope:"OverflowSet"}),Ec=((Nc={})["".concat(Os[Os.circle])]="M1 6 A5 5 0 1 0 12 6 M1 6 A5 5 0 0 1 12 6",Nc["".concat(Os[Os.square])]="M1 1 L12 1 L12 12 L1 12 L1 1 Z",Nc["".concat(Os[Os.triangle])]="M6 10L8.74228e-07 -1.04907e-06L12 0L6 10Z",Nc["".concat(Os[Os.pyramid])]="M6 10L8.74228e-07 -1.04907e-06L12 0L6 10Z",Nc["".concat(Os[Os.diamond])]="M2 2 L10 2 L10 10 L2 10 L2 2 Z",Nc["".concat(Os[Os.hexagon])]="M9 0H3L0 5L3 10H9L12 5L9 0Z",Nc["".concat(Os[Os.pentagon])]="M6.06061 0L0 4.21277L2.30303 11H9.69697L12 4.21277L6.06061 0Z",Nc["".concat(Os[Os.octagon])]="M7.08333 0H2.91667L0 2.91667V7.08333L2.91667 10H7.08333L10 7.08333V2.91667L7.08333 0Z",Nc["".concat(Es[Es.dottedLine])]="M0 6 H3 M5 6 H8 M10 6 H13",Nc),Bc=function(t){var n=t.svgProps,i=t.pathProps,e=t.shape,r=t.classNameForNonSvg;return-1===Object.keys(Ec).indexOf(e)?a.createElement("div",{className:r}):a.createElement("svg",(0,o.Cl)({width:14,height:14,viewBox:"-1 -1 14 14"},js(n),{transform:"rotate(".concat(e===Os[Os.diamond]?45:e===Os[Os.pyramid]?180:0,", 0, 0)")}),a.createElement("path",(0,o.Cl)({d:Ec[e]},js(i))))};function Fc(t,n,i,e){return void 0===i&&(i=!1),void 0===e&&(e={}),new Promise((function(r,a){if(!t)return a(new Error("Chart container is not defined"));try{var u="string"==typeof e.background?Xs(t,e.background):"transparent",s=function(t,n,i,e){var r=t.querySelector("svg");if(!r)throw new Error("SVG not found");for(var a=ns(r.cloneNode(!0)).attr("width",null).attr("height",null).attr("viewBox",null),u=r.getElementsByTagName("*"),s=a.node().getElementsByTagName("*"),l=0;l<u.length;l++)"text"===u[l].tagName.toLowerCase()?Gs((0,o.fX)((0,o.fX)([],Pc,!0),_c,!0),u[l],s[l]):Gs(Pc,u[l],s[l]);var c=r.getBoundingClientRect(),f=c.width,h=c.height,d="function"==typeof n?n(f,i):{node:null,width:0,height:0},v=Math.max(f,d.width),p=h+d.height;return d.node&&(ns(d.node).attr("transform","translate(0, ".concat(h,")")),a.append((function(){return d.node}))),a.insert("rect",":first-child").attr("x",0).attr("y",0).attr("width",v).attr("height",p).attr("fill",e),a.attr("width",v).attr("height",p).attr("viewBox","0 0 ".concat(v," ").concat(p)).attr("direction",i?"rtl":"ltr"),{node:a.node(),width:v,height:p}}(t,n,i,u),l=(new XMLSerializer).serializeToString(s.node);(function(t,n){return void 0===n&&(n={}),new Promise((function(i,e){var r=n.scale||1,o=n.width||300,a=n.height||150,u=r*o,s=r*a,l=document.createElement("canvas"),c=new Image;l.width=u,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,u,s),t.drawImage(c,0,0,u,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),Wc.exec(i)){e+=String.fromCharCode(parseInt(i,16)),o+=5;continue}}else if(i=t.slice(o,o+2),Ic.exec(i)){e+=String.fromCharCode(parseInt(i,16)),o+=2;continue}e+=n}return e}(encodeURIComponent(l))),{width:e.width||s.width,height:e.height||s.height,scale:e.scale}).then(r).catch(a)}catch(t){return a(t)}}))}var Pc=["display","fill","fill-opacity","opacity","stroke","stroke-width","transform"],_c=["font-family","font-size","font-weight","text-anchor"],Hc={color:"fill","font-family":"font-family","font-size":"font-size","font-weight":"font-weight"};var Ic=/^[\da-f]{2}$/i,Wc=/^[\da-f]{4}$/i,Rc=(0,u.Z)(),zc=function(t){function n(n){var i,e,r,u,s=t.call(this,n)||this;s._isLegendSelected=!1,s.toSVG=function(t,n){return void 0===n&&(n=!1),function(t,n,i,e){if(0===t.length)return{node:null,width:0,height:0};for(var r=i.selectedLegends,a=i.centerLegends,u=i.textClassName,s=i.isRTL,l=ns(Iu("svg:g").call(document.documentElement)),c=a?0:12,f=8,h=[],d=[],v=[],p=0===Object.keys(r).length,g=function(i){var o,g,m,y,b=(o=t[i].title,g=u,m=e,(y=document.getElementById(Us))||((y=document.createElement("span")).setAttribute("id",Us),y.setAttribute("aria-hidden","true"),m?m.appendChild(y):document.body.appendChild(y)),y.setAttribute("class",g),Object.assign(y.style,qs),y.textContent="".concat(o),y),x=29+b.getBoundingClientRect().width+8,w=l.append("g");h.push({elem:w,width:x}),c+x>n&&h.length>1&&(h.pop(),d.push(h),v.push(c),h=[{elem:w,width:x}],c=a?0:12,f+=32);var C=r[t[i].title]||p;w.append("rect").attr("x",c+(s?x-8-13:8)).attr("y",f+8).attr("width",13).attr("height",13).style("fill",C?t[i].color:"transparent").style("stroke-width",1).style("stroke",t[i].color),w.append("text").attr("x",c+(s?x-29:29)).attr("y",f+8).attr("dominant-baseline","hanging").style("opacity",C?1:.67).text(t[i].title).call((function(t){return Gs(Hc,b,t.node())})),c+=x},m=0;m<t.length;m++)g(m);if(d.push(h),v.push(c),f+=32,a)d.forEach((function(t,i){var e=Math.max((n-v[i])/2,0),r=v[i],o=0;t.forEach((function(t){var n=e+(s?r-t.width-o:0);t.elem.attr("transform","translate(".concat(n,", 0)")),r-=t.width,o+=t.width}))}));else if(s){var y=Math.max.apply(Math,(0,o.fX)([n],v,!1));d.forEach((function(t){var n=y-12,i=12;t.forEach((function(t){var e=n-t.width-i;t.elem.attr("transform","translate(".concat(e,", 0)")),n-=t.width,i+=t.width}))}))}return{node:l.node(),width:Math.max.apply(Math,v),height:f}}(s.props.legends,t,{selectedLegends:s.state.selectedLegends,centerLegends:!!s.props.centerLegends,textClassName:s._classNames.text,isRTL:n},s._rootElem)},s._onRenderData=function(t){var n=s.props,i=n.overflowProps,e=n.allowFocusOnLegends,r=void 0===e||e,u=n.canSelectMultipleLegends,l=void 0!==u&&u,c={root:{justifyContent:s.props.centerLegends?"center":"unset",flexWrap:"wrap"}};return a.createElement(Dl,(0,o.Cl)({},r&&{role:"listbox","aria-label":"Legends","aria-multiselectable":l}),a.createElement(Oc,(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,a=void 0!==o&&o?s._getNewSelectedLegendsForMultiselect(t):s._getNewSelectedLegendsForSingleSelect(t);s.setState({selectedLegends:a}),null===(e=(i=s.props).onChange)||void 0===e||e.call(i,Object.keys(a),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,u=n.styles,l=n.theme,c=n.canSelectMultipleLegends,f=void 0!==c&&c,h=[],d=Rc(u,{theme:l,className:r});return t.renderData.forEach((function(t,n){var i=s._renderButton(t,n,!0);h.push(i)})),a.createElement(Dl,(0,o.Cl)({},e&&{role:"listbox","aria-label":"Legends","aria-multiselectable":f},{direction:Ks.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},u=s.props,l=u.theme,c=u.className,f=u.styles,h=u.overflowText,d=Rc(f,{theme:l,className:c}),v={onRenderPlainCard:s._onRenderCompactCard,renderData:r},p=h||"more";return a.createElement(vc,{type:Pl.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},a.createElement("div",{role:"option"},a.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,u={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(u.title,u.color),c=s.props,f=c.theme,h=c.className,d=c.styles,v=Rc(d,{theme:f,className:h,colorOnSelectedState:l,borderColor:u.color,overflow:i,stripePattern:u.stripePattern,isLineLegendInBarChart:u.isLineLegendInBarChart,opacity:u.opacity}),p=function(){s._onHoverOverLegend(u)},g=function(){s._onLeave(u)},m=s._getShape(v,u,l);return a.createElement("button",(0,o.Cl)({},r&&{"aria-selected":!!s.state.selectedLegends[u.title],role:"option","aria-label":"".concat(u.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(u,t)},onMouseOver:p,onMouseOut:g,onFocus:p,onBlur:g,"data-is-focusable":r}),m,a.createElement("div",{className:v.text},u.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===(u=null!=l?l:[])||void 0===u?void 0:u.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,n=this.props,i=n.theme,e=n.className,r=n.styles;this._classNames=Rc(r,{theme:i,className:e}),this._isLegendSelected=Object.keys(this.state.selectedLegends).length>0;var o=this._generateData();return a.createElement("div",{className:this._classNames.root,ref:function(n){return t._rootElem=n}},this.props.enabledWrapLines?this._onRenderData(o):a.createElement(Mc,{data:o,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 a.createElement(Bc,{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}(a.Component),jc=(0,r.I)(zc,(function(t){var n,i,e=t.className,r=t.theme,a=t.isLineLegendInBarChart,u=void 0!==a&&a,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,Yt.gm)(r,f),{display:"flex",alignItems:"center",cursor:"pointer",border:"none",padding:"".concat(8,"px"),background:"none",textTransform:"capitalize"}],rect:{selectors:(n={},n[Yt.up]={content:"linear-gradient(to right, ".concat(t.colorOnSelectedState,", ").concat(t.colorOnSelectedState,")"),opacity:t.colorOnSelectedState===r.semanticColors.buttonBackground?"0.6":""},n),width:"".concat(12,"px"),height:u?"4px":"".concat(12,"px"),backgroundColor:t.stripePattern?"":t.colorOnSelectedState,marginRight:"".concat(8,"px"),border:"".concat(1,"px 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:"".concat(8,"px")}],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[Yt.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?"".concat(.67):""}),hoverChange:{width:"12px",height:"12px",backgroundColor:r.semanticColors.buttonBackground,marginRight:"8px",border:"1px solid",borderColor:t.borderColor?t.borderColor:l.black},overflowIndicationTextStyle:[(0,Yt.gm)(r,f),(0,o.Cl)((0,o.Cl)({cursor:"pointer",color:null==r?void 0:r.semanticColors.bodyText},c.small),{lineHeight:"16px",padding:"".concat(8,"px")})],hoverCardRoot:{padding:"8px",position:"relative",overflowY:"auto",maxHeight:"300px"},subComponentStyles:{hoverCardStyles:{host:[(0,Yt.gm)(r,f)]}}}}));function $c(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function Yc(t){return function(){return t}}function Xc(t,n){return n<t?-1:n>t?1:n>=t?0:NaN}function Gc(t){return t}Array.prototype.slice;const qc=Math.abs,Uc=Math.atan2,Zc=Math.cos,Kc=Math.max,Jc=Math.min,Qc=Math.sin,tf=Math.sqrt,nf=1e-12,ef=Math.PI,rf=ef/2,of=2*ef;function af(t){return t>=1?rf:t<=-1?-rf:Math.asin(t)}function uf(){var t=Gc,n=Xc,i=null,e=Yc(0),r=Yc(of),o=Yc(0);function a(a){var u,s,l,c,f,h=(a=$c(a)).length,d=0,v=new Array(h),p=new Array(h),g=+e.apply(this,arguments),m=Math.min(of,Math.max(-of,r.apply(this,arguments)-g)),y=Math.min(Math.abs(m)/h,o.apply(this,arguments)),b=y*(m<0?-1:1);for(u=0;u<h;++u)(f=p[v[u]=u]=+t(a[u],u,a))>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(a[t],a[n])})),u=0,l=d?(m-h*b)/d:0;u<h;++u,g=c)s=v[u],c=g+((f=p[s])>0?f*l:0)+b,p[s]={data:a[s],index:u,value:f,startAngle:g,endAngle:c,padAngle:y};return p}return a.value=function(n){return arguments.length?(t="function"==typeof n?n:Yc(+n),a):t},a.sortValues=function(t){return arguments.length?(n=t,i=null,a):n},a.sort=function(t){return arguments.length?(i=t,n=null,a):i},a.startAngle=function(t){return arguments.length?(e="function"==typeof t?t:Yc(+t),a):e},a.endAngle=function(t){return arguments.length?(r="function"==typeof t?t:Yc(+t),a):r},a.padAngle=function(t){return arguments.length?(o="function"==typeof t?t:Yc(+t),a):o},a}const sf=Math.PI,lf=2*sf,cf=1e-6,ff=lf-cf;function hf(t){this._+=t[0];for(let n=1,i=t.length;n<i;++n)this._+=arguments[n]+t[n]}class df{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==t?hf:function(t){let n=Math.floor(t);if(!(n>=0))throw new Error(`invalid digits: ${t}`);if(n>15)return hf;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,a=this._y1,u=i-t,s=e-n,l=o-t,c=a-n,f=l*l+c*c;if(null===this._x1)this._append`M${this._x1=t},${this._y1=n}`;else if(f>cf)if(Math.abs(c*u-s*l)>cf&&r){let h=i-o,d=e-a,v=u*u+s*s,p=h*h+d*d,g=Math.sqrt(v),m=Math.sqrt(f),y=r*Math.tan((sf-Math.acos((v+f-p)/(2*g*m)))/2),b=y/m,x=y/g;Math.abs(b-1)>cf&&this._append`L${t+b*l},${n+b*c}`,this._append`A${r},${r},0,0,${+(c*h>l*d)},${this._x1=t+x*u},${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 a=i*Math.cos(e),u=i*Math.sin(e),s=t+a,l=n+u,c=1^o,f=o?e-r:r-e;null===this._x1?this._append`M${s},${l}`:(Math.abs(this._x1-s)>cf||Math.abs(this._y1-l)>cf)&&this._append`L${s},${l}`,i&&(f<0&&(f=f%lf+lf),f>ff?this._append`A${i},${i},0,1,${c},${t-a},${n-u}A${i},${i},0,1,${c},${this._x1=s},${this._y1=l}`:f>cf&&this._append`A${i},${i},0,${+(f>=sf)},${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 vf(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 df(n)}function pf(t){return t.innerRadius}function gf(t){return t.outerRadius}function mf(t){return t.startAngle}function yf(t){return t.endAngle}function bf(t){return t&&t.padAngle}function xf(t,n,i,e,r,o,a){var u=t-i,s=n-e,l=(a?o:-o)/tf(u*u+s*s),c=l*s,f=-l*u,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,w=r-o,C=h*p-v*d,M=(b<0?-1:1)*tf(Kc(0,w*w*x-C*C)),k=(C*b-y*M)/x,A=(-C*y-b*M)/x,S=(C*b+y*M)/x,V=(-C*y+b*M)/x,L=k-g,D=A-m,N=S-g,T=V-m;return L*L+D*D>N*N+T*T&&(k=S,A=V),{cx:k,cy:A,x01:-c,y01:-f,x11:k*(r/w-1),y11:A*(r/w-1)}}function wf(){var t=pf,n=gf,i=Yc(0),e=null,r=mf,o=yf,a=bf,u=null,s=vf(l);function l(){var l,c,f,h=+t.apply(this,arguments),d=+n.apply(this,arguments),v=r.apply(this,arguments)-rf,p=o.apply(this,arguments)-rf,g=qc(p-v),m=p>v;if(u||(u=l=s()),d<h&&(c=d,d=h,h=c),d>nf)if(g>of-nf)u.moveTo(d*Zc(v),d*Qc(v)),u.arc(0,0,d,v,p,!m),h>nf&&(u.moveTo(h*Zc(p),h*Qc(p)),u.arc(0,0,h,p,v,m));else{var y,b,x=v,w=p,C=v,M=p,k=g,A=g,S=a.apply(this,arguments)/2,V=S>nf&&(e?+e.apply(this,arguments):tf(h*h+d*d)),L=Jc(qc(d-h)/2,+i.apply(this,arguments)),D=L,N=L;if(V>nf){var T=af(V/h*Qc(S)),O=af(V/d*Qc(S));(k-=2*T)>nf?(C+=T*=m?1:-1,M-=T):(k=0,C=M=(v+p)/2),(A-=2*O)>nf?(x+=O*=m?1:-1,w-=O):(A=0,x=w=(v+p)/2)}var E=d*Zc(x),B=d*Qc(x),F=h*Zc(M),P=h*Qc(M);if(L>nf){var _,H=d*Zc(w),I=d*Qc(w),W=h*Zc(C),R=h*Qc(C);if(g<ef)if(_=function(t,n,i,e,r,o,a,u){var s=i-t,l=e-n,c=a-r,f=u-o,h=f*s-c*l;if(!(h*h<nf))return[t+(h=(c*(n-o)-f*(t-r))/h)*s,n+h*l]}(E,B,W,R,H,I,F,P)){var z=E-_[0],j=B-_[1],$=H-_[0],Y=I-_[1],X=1/Qc(((f=(z*$+j*Y)/(tf(z*z+j*j)*tf($*$+Y*Y)))>1?0:f<-1?ef:Math.acos(f))/2),G=tf(_[0]*_[0]+_[1]*_[1]);D=Jc(L,(h-G)/(X-1)),N=Jc(L,(d-G)/(X+1))}else D=N=0}A>nf?N>nf?(y=xf(W,R,E,B,d,N,m),b=xf(H,I,F,P,d,N,m),u.moveTo(y.cx+y.x01,y.cy+y.y01),N<L?u.arc(y.cx,y.cy,N,Uc(y.y01,y.x01),Uc(b.y01,b.x01),!m):(u.arc(y.cx,y.cy,N,Uc(y.y01,y.x01),Uc(y.y11,y.x11),!m),u.arc(0,0,d,Uc(y.cy+y.y11,y.cx+y.x11),Uc(b.cy+b.y11,b.cx+b.x11),!m),u.arc(b.cx,b.cy,N,Uc(b.y11,b.x11),Uc(b.y01,b.x01),!m))):(u.moveTo(E,B),u.arc(0,0,d,x,w,!m)):u.moveTo(E,B),h>nf&&k>nf?D>nf?(y=xf(F,P,H,I,h,-D,m),b=xf(E,B,W,R,h,-D,m),u.lineTo(y.cx+y.x01,y.cy+y.y01),D<L?u.arc(y.cx,y.cy,D,Uc(y.y01,y.x01),Uc(b.y01,b.x01),!m):(u.arc(y.cx,y.cy,D,Uc(y.y01,y.x01),Uc(y.y11,y.x11),!m),u.arc(0,0,h,Uc(y.cy+y.y11,y.cx+y.x11),Uc(b.cy+b.y11,b.cx+b.x11),m),u.arc(b.cx,b.cy,D,Uc(b.y11,b.x11),Uc(b.y01,b.x01),!m))):u.arc(0,0,h,M,C,m):u.lineTo(F,P)}else u.moveTo(0,0);if(u.closePath(),l)return u=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-ef/2;return[Zc(e)*i,Qc(e)*i]},l.innerRadius=function(n){return arguments.length?(t="function"==typeof n?n:Yc(+n),l):t},l.outerRadius=function(t){return arguments.length?(n="function"==typeof t?t:Yc(+t),l):n},l.cornerRadius=function(t){return arguments.length?(i="function"==typeof t?t:Yc(+t),l):i},l.padRadius=function(t){return arguments.length?(e=null==t?null:"function"==typeof t?t:Yc(+t),l):e},l.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:Yc(+t),l):r},l.endAngle=function(t){return arguments.length?(o="function"==typeof t?t:Yc(+t),l):o},l.padAngle=function(t){return arguments.length?(a="function"==typeof t?t:Yc(+t),l):a},l.context=function(t){return arguments.length?(u=null==t?null:t,l):u},l}df.prototype;var Cf=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:Yt.s.small,fontWeight:Yt.BO.semibold,fill:r.palette.neutralPrimary}}},Mf=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.state={},n.currentRef=a.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,u=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,u)+2,p=(r.startAngle+r.endAngle)/2,g=r.value;return a.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?Pe(".0%")(0===l?0:g/l):Hs(g))},n}return(0,o.C6)(n,t),n.getDerivedStateFromProps=function(t){return kf(t),null},n.prototype.updateChart=function(t){kf(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,u.Z)(),p=this.props.uniqText+("string"==typeof this.props.data.data.legend?this.props.data.data.legend.replace(/\s+/g,""):"")+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,w=v(Cf,{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}),C=g("Arc_clip")+"".concat(this.props.color,"_").concat(this.props.nextColor);return a.createElement("g",{ref:this.currentRef},!!h&&h===p&&a.createElement("path",{id:p+"focusRing",d:c.cornerRadius(x)(this.props.focusData),className:w.focusRing}),a.createElement("path",{id:p,d:c.cornerRadius(x)(this.props.data),onFocus:this._onFocus.bind(this,this.props.data.data,p),className:w.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(w.arcLabel),this.props.enableGradient&&a.createElement(a.Fragment,null,a.createElement("clipPath",{id:C},a.createElement("path",{d:c.cornerRadius(x)(this.props.data)})),a.createElement("foreignObject",{x:"-50%",y:"-50%",width:"100%",height:"100%",clipPath:"url(#".concat(C,")")},a.createElement("div",{className:w.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:wf()},n}(a.Component);function kf(t){t.arc.innerRadius(t.innerRadius),t.arc.outerRadius(t.outerRadius)}var Af=function(t){var n,i=t.theme;return{root:{},insideDonutString:{fontSize:Yt.s.xLargePlus,fontWeight:Yt.BO.semibold,fill:i.semanticColors.bodyText,selectors:(n={},n[Yt.up]={fill:"CanvasText"},n)}}},Sf=(0,u.Z)(),Vf=function(t){function n(n){var i=t.call(this,n)||this;return i.arcGenerator=function(t,n,e,r){var o,u,s,l,c=t&&t.data&&t.data.color,f=c;return i.props.enableGradient&&(c=null!==(u=null===(o=i.props.data[n].gradient)||void 0===o?void 0:o[0])&&void 0!==u?u:ol(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:ol(n,0,i.props.theme.isInverted)[1]),a.createElement(Mf,{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=uf().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),u="translate(".concat(this.props.width/2,", ").concat(this.props.height/2,")"),s=Sf(Af,{theme:this.props.theme});return this._totalValue=this._computeTotalValue(),a.createElement("g",{transform:u},o.map((function(n,i){return t.arcGenerator(n,i,r[i],t.props.href)})),this.props.valueInsideDonut&&a.createElement("text",{y:5,textAnchor:"middle",dominantBaseline:"middle",className:s.insideDonutString},this.props.valueInsideDonut))},n.prototype.componentDidUpdate=function(){var t,n,i;t=Sf(Af,{theme:this.props.theme}).insideDonutString,n=2*this.props.innerRadius-5,i=0,is(".".concat(t)).each((function(){for(var t=ns(this),e=t.text().split(/\s+/).reverse(),r="",o=[],a=0,u=t.attr("y"),s=t.text(null).append("tspan").attr("id","WordBreakId-".concat(i,"-").concat(a)).attr("x",0).attr("y",u).attr("dy",1.1*a+++"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(a)).attr("x",0).attr("y",u).attr("dy",1.1*a+++"em").text(r));i+=1}))},n.prototype._hoverCallback=function(t,n){this.props.hoverOnCallback(t,n)},n.defaultProps={pie:uf().sort(null).value((function(t){return t.data})).padAngle(.02)},n}(a.Component),Lf={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"]},Nf={qualitative:Df,semantic:{info:["#015cda"],disabled:["#dbdbdb","#4d4d4d"],highError:["#6e0811","#cc2635"],error:["#c50f1f","#dc626d"],warning:["#f7630c","#f87528"],success:["#107c10","#54b054"],highSuccess:["#094509","#218c21"]}},Tf=Object.values(Df),Of=Object.values(Lf),Ef=function(t,n){if(0===t.length)return"";var i=Number(n);return i<t.length?t[i]:t[0]},Bf=function(t,n,i){void 0===n&&(n=0),void 0===i&&(i=!1);var e=Tf[(t+n)%Tf.length];return Ef(e,i)},Ff=function(t,n){if(void 0===n&&(n=!1),Of.indexOf(t)>=0){var i=t.split("."),e=i[0],r=i[1],o=Nf[e][r];return Ef(o,n)}return t},Pf=function(t){return t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)},_f=function(t){var n=t.r,i=t.g,e=t.b;return{r:Pf(n/255),g:Pf(i/255),b:Pf(e/255)}},Hf=function(t){return.2126*t.r+.7152*t.g+.0722*t.b},If=(0,u.Z)(),Wf=function(t){function n(n){var i,e=t.call(this,n)||this;return e.toImage=function(t){var n;return Fc(e._rootElem,null===(n=e._legendsRef.current)||void 0===n?void 0:n.toSVG,(0,s.jI)(),t)},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,a;if(e._calloutAnchorPoint!==t){e._calloutAnchorPoint=t,e._currentHoverElement=n;var u=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);u=(null===(o=t.gradient)||void 0===o?void 0:o[0])||ol(s,0,null===(a=e.props.theme)||void 0===a?void 0:a.isInverted)[0]}e.setState({showHover:e._noLegendsHighlighted()||e._isLegendHighlighted(t.legend),value:t.data.toString(),legend:t.legend,color:u,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,a;return a=void 0===t.color?Bf(n,0,null===(i=e.props.theme)||void 0===i?void 0:i.isInverted):Ff(t.color,null===(r=e.props.theme)||void 0===r?void 0:r.isInverted),(0,o.Cl)((0,o.Cl)({},t),{color:a})})):[]},sl(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._legendsRef=a.createRef(),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;$s(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,u=this._addDefaultColors(null==i?void 0:i.chartData);this._classNames=If(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(u),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(u.filter((function(t){return t.data>=0}))),d=0!==this.props.innerRadius?this._valueInsideDonut(this.props.valueInsideDonut,h):"";return this._isChartEmpty()?a.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):a.createElement("div",{className:this._classNames.root,ref:function(n){return t._rootElem=n},onMouseLeave:this._handleChartMouseLeave},a.createElement(Dl,{direction:Ks.horizontal,handleTabKey:1},a.createElement("div",null,a.createElement("svg",{className:this._classNames.chart,"aria-label":null==i?void 0:i.chartTitle,ref:function(n){return t._setViewBox(n)}},a.createElement(Vf,{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})))),a.createElement(zn,(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,Ps(this.state.callOutAccessibilityData,"text",!1)),this.props.onRenderCalloutPerDataPoint?this.props.onRenderCalloutPerDataPoint(this.state.dataPointCalloutProps):a.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&&a.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])||ol(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 a.createElement(jc,(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),ref:this._legendsRef}))},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}(a.Component),Rf=(0,r.I)(Wf,(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 zf(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 jf(t){return t[0]}function $f(t){return t[1]}function Yf(t,n){var i=Yc(!0),e=null,r=rs,o=null,a=vf(u);function u(u){var s,l,c,f=(u=$c(u)).length,h=!1;for(null==e&&(o=r(c=a())),s=0;s<=f;++s)!(s<f&&i(l=u[s],s,u))===h&&((h=!h)?o.lineStart():o.lineEnd()),h&&o.point(+t(l,s,u),+n(l,s,u));if(c)return o=null,c+""||null}return t="function"==typeof t?t:void 0===t?jf:Yc(t),n="function"==typeof n?n:void 0===n?$f:Yc(n),u.x=function(n){return arguments.length?(t="function"==typeof n?n:Yc(+n),u):t},u.y=function(t){return arguments.length?(n="function"==typeof t?t:Yc(+t),u):n},u.defined=function(t){return arguments.length?(i="function"==typeof t?t:Yc(!!t),u):i},u.curve=function(t){return arguments.length?(r=t,null!=e&&(o=r(e)),u):r},u.context=function(t){return arguments.length?(null==t?e=o=null:o=r(e=t),u):e},u}var Xf,Gf,qf,Uf=function(t){function n(i){var e=t.call(this,i)||this;return e._tooltipHost=a.createRef(),e._tooltipHostId=g("tooltip-host"),e.show=function(){e._toggleTooltip(!0)},e.dismiss=function(){e._hideTooltip()},e._measureText=function(){if(e._tooltipHost.current&&"function"==typeof e._tooltipHost.current.getBBox){var t=e._tooltipHost.current.getBBox();e.setState({textX:t.x,textY:t.y,textWidth:t.width,textHeight:t.height})}},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||!dl(t.target,e._getTargetElement())))if(e._clearDismissTimer(),e._clearOpenTimer(),i!==Tl.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===Ft||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 Tl.medium:return 300;case Tl.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,a=t.maxHeight,u=!1;n&&i&&i(n,e._tooltipHostId,o,a)&&(u=!0),e.state.isOverflowing!==u&&e.setState({isOverflowing:u})},e.state={isTooltipVisible:!1,isOverflowing:!1},e._async=new Pt(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,u=void 0===r||r,l=t.showBackground,c=void 0!==l&&l,f=this.state,h=f.isTooltipVisible,d=f.textX,v=f.textY,p=f.textWidth,g=f.textHeight,m=(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),y=!!this.props.isTooltipVisibleProp&&this.state.isOverflowing&&!!n||h&&!!n,b=this.props.theme?this.props.theme.semanticColors.bodyBackground:void 0,x=(0,s.jI)()?(null!=d?d:0)+(null!=p?p:0)-4:(null!=d?d:0)-4;return a.createElement(a.Fragment,null,c&&a.createElement("rect",{x:x,y:(null!=v?v:0)-4,width:(null!=p?p:0)+8,height:(null!=g?g:0)+8,fill:b,transform:null==e?void 0:e.transform}),a.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":u&&this.state.isOverflowing}),n),y&&a.createElement(Bl,(0,o.Cl)({},m)))},n.prototype.componentDidMount=function(){this._wrapContent(),this._measureText()},n.prototype.componentDidUpdate=function(t){this.props.maxWidth===t.maxWidth&&this.props.maxHeight===t.maxHeight||(this._wrapContent(),this._measureText())},n.prototype.componentWillUnmount=function(){n._currentVisibleTooltip&&n._currentVisibleTooltip===this&&(n._currentVisibleTooltip=void 0),this._async.dispose()},n.defaultProps={delay:Tl.medium},n}(a.Component),Zf=(0,u.Z)(),Kf=a.lazy((function(){return Promise.resolve().then(i.bind(i,357)).then((function(t){return{default:t.ChartHoverCard}}))})),Jf=[Zu.HorizontalBarChartWithAxis,Zu.HeatMapChart],Qf=function(t){function n(n){var i,e,r,u,l,c,f,h,d,v,p,m,y,b,x,w,C,M,k,A,S,V,L,D,N,T,O=t.call(this,n)||this;return O.minLegendContainerHeight=32,O._isRtl=(0,s.jI)(),O._isFirstRender=!0,O.isIntegralDataset=!0,O.calculateMaxYAxisLabelLength=function(t,n,i){return t===Zu.HeatMapChart?ws(n[0].data.map((function(t){return t.y})),".".concat(i," text")):ws(n.map((function(t){return t.y})),".".concat(i," text"))},O._multiValueCallout=function(t){var n=O._yValueHoverSubCountsExists(t.YValueHover);return a.createElement("div",{className:O._classNames.calloutContentRoot},a.createElement("div",{className:O._classNames.calloutDateTimeContainer,style:n?{marginBottom:"11px"}:{}},a.createElement("div",(0,o.Cl)({className:O._classNames.calloutContentX},Ps(t.xAxisCalloutAccessibilityData,"text",!1)),(0,jn.U)(t.hoverXValue,O.props.culture))),a.createElement("div",{className:O._classNames.calloutInfoContainer,style:n?{display:"flex"}:{}},t.YValueHover&&t.YValueHover.map((function(t,i,e){var r=i+1===e.length,u=t.shouldDrawBorderBottom,s=void 0!==u&&u;return a.createElement("div",(0,o.Cl)({},Ps(t.callOutAccessibilityData,"text",!1),{key:"callout-content-".concat(i),style:n?(0,o.Cl)({display:"inline-block"},s&&{borderBottom:"1px solid ".concat(O.props.theme.semanticColors.menuDivider),paddingBottom:"10px"}):(0,o.Cl)({},s&&{borderBottom:"1px solid ".concat(O.props.theme.semanticColors.menuDivider),paddingBottom:"10px"})}),O._getCalloutContent(t,i,n,r))})),!!t.descriptionMessage&&a.createElement("div",{className:O._classNames.descriptionMessage},t.descriptionMessage)))},O._getData=function(t,n,i){O.props.getGraphData&&O.props.getGraphData(t,n,O.state.containerHeight-O.state._removalValueForTextTuncate,O.state.containerWidth,O.xAxisElement,O.yAxisElement,i)},O._onChartLeave=function(){O.props.onChartMouseLeave&&O.props.onChartMouseLeave()},O._calculateChartMinWidth=function(){var t=10;if(!O.props.wrapXAxisLables&&O.props.rotateXAxisLables&&O.props.xAxisType===Ku.StringAxis){var n=ws(O._tickValues,".".concat(O._classNames.xAxis," text"));t+=Math.ceil(n*Math.cos(Math.PI/4))}else if(O.props.showXAxisLablesTooltip){var i=O._tickValues.map((function(t){var n=O.props.noOfCharsToTruncate||4;return t.toString().length>n?"".concat(t.toString().slice(0,n),"..."):t}));n=ws(i,".".concat(O._classNames.xAxis," text")),t+=Math.ceil(n)}else if(O.props.wrapXAxisLables){var e=[];O._tickValues.forEach((function(t){e.push.apply(e,t.toString().split(/\s+/))})),n=ws(e,".".concat(O._classNames.xAxis," text")),t+=Math.max(Math.ceil(n),10)}else n=ws(O._tickValues,".".concat(O._classNames.xAxis," text")),t+=Math.ceil(n);var r=O.margins.left+O.margins.right+t*(O._tickValues.length-1);return[Zu.GroupedVerticalBarChart,Zu.VerticalBarChart,Zu.VerticalStackedBarChart].includes(O.props.chartType)&&(r+=16),r},O._getChartDescription=function(){return(O.props.chartTitle||"Chart. ")+O._getAxisTitle("X",O.props.xAxisTitle,O.props.xAxisType)+O._getAxisTitle("Y",O.props.yAxisTitle,O.props.yAxisType||Ju.NumericAxis)+(O.props.secondaryYScaleOptions?O._getAxisTitle("secondary Y",O.props.secondaryYAxistitle,Ju.NumericAxis):"")},O._getAxisTitle=function(t,n,i){return"The ".concat(t," axis displays ")+(n||(i===Ku.StringAxis||i===Ju.StringAxis?"categories":i===Ku.DateAxis||i===Ju.DateAxis?"time":"values"))+". "},O.state={containerHeight:0,containerWidth:0,_width:O.props.width||600,_height:O.props.height||350,_removalValueForTextTuncate:0,isRemoveValCalculated:!0,startFromX:0},O.idForGraph=g("chart_"),O.titleMargin=8,O.idForDefaultTabbableElement=g("defaultTabbableElement_"),O.margins={top:null!==(e=null===(i=O.props.margins)||void 0===i?void 0:i.top)&&void 0!==e?e:20,bottom:null!==(u=null===(r=O.props.margins)||void 0===r?void 0:r.bottom)&&void 0!==u?u:35,right:O._isRtl?null!==(c=null===(l=O.props.margins)||void 0===l?void 0:l.left)&&void 0!==c?c:40:(null!==(h=null===(f=O.props.margins)||void 0===f?void 0:f.right)&&void 0!==h?h:null===(d=O.props)||void 0===d?void 0:d.secondaryYScaleOptions)?40:20,left:O._isRtl?(null!==(p=null===(v=O.props.margins)||void 0===v?void 0:v.right)&&void 0!==p?p:null===(m=O.props)||void 0===m?void 0:m.secondaryYScaleOptions)?40:20:null!==(b=null===(y=O.props.margins)||void 0===y?void 0:y.left)&&void 0!==b?b:40},void 0!==O.props.xAxisTitle&&""!==O.props.xAxisTitle&&(O.margins.bottom=null!==(w=null===(x=O.props.margins)||void 0===x?void 0:x.bottom)&&void 0!==w?w:55),void 0!==O.props.yAxisTitle&&""!==O.props.yAxisTitle&&(O.margins.left=O._isRtl?(null!==(M=null===(C=O.props.margins)||void 0===C?void 0:C.right)&&void 0!==M?M:null===(k=O.props)||void 0===k?void 0:k.secondaryYAxistitle)?80:40:null!==(S=null===(A=O.props.margins)||void 0===A?void 0:A.left)&&void 0!==S?S:60,O.margins.right=O._isRtl?null!==(L=null===(V=O.props.margins)||void 0===V?void 0:V.left)&&void 0!==L?L:60:(null!==(N=null===(D=O.props.margins)||void 0===D?void 0:D.right)&&void 0!==N?N:null===(T=O.props)||void 0===T?void 0:T.secondaryYAxistitle)?80:40),O}return(0,o.C6)(n,t),n.prototype.componentDidMount=function(){if(this._fitParentContainer(),Jf.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===Ku.StringAxis){var n=function(t){var n=t.node,i=t.xAxis;if(null!==n&&null!==i){var e=0,r=[];ns(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 ns(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(Jf.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,u,s,l,c,f=this,h=this.props,d=h.calloutProps,v=h.points,p=h.chartType,g=h.chartHoverProps,m=h.svgFocusZoneProps,y=h.svgProps,b=h.culture,x=h.dateLocalizeOptions,w=h.timeFormatLocale,C=h.customDateTimeFormatter;this.props.parentRef&&this._fitParentContainer();var M=(0,o.Cl)({},this.margins);Jf.includes(this.props.chartType)&&(this._isRtl?M.right+=this.state.startFromX:M.left+=this.state.startFromX),this.props.getmargins&&this.props.getmargins(M);var k,A,S,V,L,D=null,N=null;if(this.props.enableFirstRenderOptimization&&this.chartContainer||!this.props.enableFirstRenderOptimization){this._isFirstRender=!1;var T={domainNRangeValues:this.props.getDomainNRangeValues(v,this.props.getDomainMargins?this.props.getDomainMargins(this.state.containerWidth):this.margins,this.state.containerWidth,p,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:null===(r=this.props.showRoundOffXTickValues)||void 0===r||r,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,containerWidth:this.state.containerWidth,hideTickOverlap:this.props.hideTickOverlap&&!this.props.rotateXAxisLables&&!this.props.showXAxisLablesTooltip&&!this.props.wrapXAxisLables},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(v,this.props.yAxisType),yAxisPadding:this.props.yAxisPadding||0},E=void 0,B=void 0;switch(this.props.xAxisType){case Ku.NumericAxis:E=(t=hs(T,this.props.tickParams,this.props.chartType,b)).xScale,B=t.tickValues;break;case Ku.DateAxis:n=function(t,n,i,e,r,o,a){var u,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=t.hideTickOverlap,g=a?Fa():Ba();g.domain([s.dStartValue,s.dEndValue]).range([s.rStartValue,s.rEndValue]);var m=null!=v?v:6,y=function(t,u){return o?o(t):i&&e?t.toLocaleString(i,e):r?ds(t,so(r),a):void 0===i&&n.tickFormat?a?ho(n.tickFormat)(t):co(n.tickFormat)(t):ds(t,void 0,a)};if(p&&void 0===v){var b=ws(g.ticks().map(y),'[class^="xAxis-"] text')+40,x=g.range(),w=x[0],C=x[1];m=Math.min(Math.max(1,Math.floor(Math.abs(C-w)/b)),10)}var M=ei(g).tickSize(d).tickPadding(f).ticks(m).tickFormat(y);n.tickValues&&M.tickValues(n.tickValues),l&&ns(l).call(M).selectAll("text").attr("aria-hidden","true");var k=(null!==(u=n.tickValues)&&void 0!==u?u:g.ticks(m)).map(M.tickFormat());return{xScale:g,tickValues:k}}(T,this.props.tickParams,b,x,w,C,this.props.useUTC),E=n.xScale,B=n.tickValues;break;case Ku.StringAxis:i=function(t,n,i,e){var r,o=t.domainNRangeValues,a=t.xAxistickSize,u=void 0===a?6:a,s=t.tickPadding,l=void 0===s?10:s,c=t.xAxisPadding,f=void 0===c?.1:c,h=t.xAxisInnerPadding,d=t.xAxisOuterPadding,v=t.containerWidth,p=t.hideTickOverlap,g=za().domain(i).range([o.rStartValue,o.rEndValue]).paddingInner(void 0!==h?h:f).paddingOuter(void 0!==d?d:f),m=null!==(r=n.tickValues)&&void 0!==r?r:i;if(p){var y=[],b=m.map((function(t){return ws([t],'[class^="xAxis-"] text')})),x=0,w=v,C=1,M=g.range();M[1]-M[0]<0&&(x=v,w=0,C=-1);for(var k=m.length-1;k>=0;k--){var A=g(m[k]);C*(A-C*b[k]/2-x)>=0&&C*(A+C*b[k]/2-w)<=0&&(y.push(m[k]),w=A-C*(b[k]/2+10))}m=y=y.reverse()}var S=ei(g).tickSize(u).tickPadding(l).tickValues(m);return t.xAxisElement&&ns(t.xAxisElement).call(S).selectAll("text").attr("aria-hidden","true"),{xScale:g,tickValues:m}}(T,this.props.tickParams,this.props.datasetForXAxisDomain),E=i.xScale,B=i.tickValues;break;default:E=(e=hs(T,this.props.tickParams,this.props.chartType,b)).xScale,B=e.tickValues}if(this._xScale=E,this._tickValues=B,this.props.wrapXAxisLables||this.props.showXAxisLablesTooltip){var F={node:this.xAxisElement,xAxis:E,showXAxisLablesTooltip:this.props.showXAxisLablesTooltip||!1,noOfCharsToTruncate:this.props.noOfCharsToTruncate||4},P=E&&function(t){var n=t.node,i=t.xAxis,e=t.noOfCharsToTruncate,r=t.showXAxisLablesTooltip;if(null!==n){var o=ns(n).call(i),a=0,u=[];return o.selectAll(".tick text").each((function(){var t=ns(this),n=t.text(),i="".concat(t.text().slice(0,e),"..."),s=t.text().length,l=t.text().split(/\s+/).reverse();u.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,u),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),a=(g-y)*m}})),a>0?a:0}}(F);this.state.isRemoveValCalculated&&this.state._removalValueForTextTuncate!==P&&this.setState({_removalValueForTextTuncate:P,isRemoveValCalculated:!1})}var _=void 0,H=void 0,I={yAxisDomainValues:[]};if(this.props.yAxisType&&this.props.yAxisType===Ju.StringAxis)_=this.props.createStringYAxis(O,this.props.stringDatasetForYAxisDomain,this._isRtl,this.props.barwidth);else{if(null===(u=this.props)||void 0===u?void 0:u.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===(s=this.props.secondaryYScaleOptions)||void 0===s?void 0:s.yMinValue)||0,yMaxValue:null!==(c=null===(l=this.props.secondaryYScaleOptions)||void 0===l?void 0:l.yMaxValue)&&void 0!==c?c:100,tickPadding:10,yMinMaxValues:this.props.getMinMaxOfYAxis(v,this.props.yAxisType,!0),yAxisPadding:this.props.yAxisPadding};H=this.props.createYAxis(W,this._isRtl,I,this.isIntegralDataset,!0,this.props.supportNegativeData,this.props.roundedTicks)}_=this.props.createYAxis(O,this._isRtl,I,this.isIntegralDataset,!1,this.props.supportNegativeData,this.props.roundedTicks)}Jf.includes(this.props.chartType)&&_&&(k=this.yAxisElement,A=_,S=this.props.noOfCharsToTruncate||4,V=this.props.showYAxisLablesTooltip||!1,L=this._isRtl,null!==k&&ns(k).call(A).selectAll(".tick text").each((function(){var t=ns(this),n=t.text(),i=L?"...".concat(t.text().slice(0,S)):"".concat(t.text().slice(0,S),"..."),e=t.text().length,r=V?1.5:1,o=t.attr("y"),a=t.attr("x"),u=parseFloat(t.attr("dy"));t.text(null).append("tspan").attr("x",a).attr("y",o).attr("id","BaseSpan").attr("dy",u+"em").attr("data-",n),V&&e>S?t.append("tspan").attr("id","showDots").attr("x",L?0:a).attr("y",o).attr("dy",u).attr("dx",r+0+"em").text(i):t.attr("text-align","start").append("tspan").attr("id","LessLength").attr("x",L?0:a).attr("y",o).attr("dx",r+0+"em").text(n)}))),this.props.getAxisData&&this.props.getAxisData(I),this._getData(E,_,H),N=this.props.children((0,o.Cl)((0,o.Cl)({},this.state),{xScale:E,yScalePrimary:_,yScaleSecondary:H})),!this.props.hideTooltip&&d.isCalloutVisible&&(D=this._generateCallout(d,g))}this._classNames=Zf(this.props.styles,{theme:this.props.theme,width:this.state._width,height:this.state._height,className:this.props.className,isRtl:this._isRtl,enableReflow:this.props.enableReflow});var R,z={width:this.state.containerWidth,height:this.state.containerHeight};R=this.props.focusZoneDirection===Ks.vertical||this.props.focusZoneDirection?this.props.focusZoneDirection:Ks.horizontal;var j=z.width-this.margins.left-this.margins.right-this.state.startFromX,$=z.height-this.margins.bottom-this.margins.top-this.state._removalValueForTextTuncate-this.titleMargin;return a.createElement("div",{id:this.idForGraph,className:this._classNames.root,ref:function(t){return f.chartContainer=t},onMouseLeave:this._onChartLeave},!this._isFirstRender&&a.createElement("div",{id:this.idForDefaultTabbableElement}),a.createElement(Dl,(0,o.Cl)({direction:R,className:this._classNames.chartWrapper,defaultTabbableElement:"#".concat(this.idForDefaultTabbableElement)},m),this._isFirstRender&&a.createElement("div",{id:this.idForDefaultTabbableElement}),a.createElement("svg",(0,o.Cl)({width:z.width,height:z.height,role:"region","aria-label":this._getChartDescription(),style:{display:"block"}},js(y)),a.createElement("g",{ref:function(t){f.xAxisElement=t},id:"xAxisGElement".concat(this.idForGraph),transform:"translate(0, ".concat(z.height-this.margins.bottom-this.state._removalValueForTextTuncate,")"),className:this._classNames.xAxis}),void 0!==this.props.xAxisTitle&&""!==this.props.xAxisTitle&&a.createElement(Uf,{content:this.props.xAxisTitle,textProps:{x:this.margins.left+this.state.startFromX+j/2,y:z.height-this.titleMargin,className:this._classNames.axisTitle,textAnchor:"middle","aria-hidden":!0},maxWidth:j,wrapContent:xs,theme:this.props.theme,showBackground:!0}),a.createElement("g",{ref:function(t){f.yAxisElement=t},id:"yAxisGElement".concat(this.idForGraph),transform:"translate(".concat(this._isRtl?z.width-this.margins.right-this.state.startFromX:this.margins.left+this.state.startFromX,", 0)"),className:this._classNames.yAxis}),this.props.secondaryYScaleOptions&&a.createElement("g",null,a.createElement("g",{ref:function(t){f.yAxisElementSecondary=t},id:"yAxisGElementSecondary".concat(this.idForGraph),transform:"translate(".concat(this._isRtl?this.margins.left+this.state.startFromX:z.width-this.margins.right-this.state.startFromX,", 0)"),className:this._classNames.yAxis}),void 0!==this.props.secondaryYAxistitle&&""!==this.props.secondaryYAxistitle&&a.createElement(Uf,{content:this.props.secondaryYAxistitle,textProps:{x:($-this.margins.bottom)/2+this.state._removalValueForTextTuncate,y:this._isRtl?this.state.startFromX-this.titleMargin:z.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(z.height-this.margins.bottom-this.margins.top-this.titleMargin,")rotate(-90)"),className:this._classNames.axisTitle,"aria-hidden":!0},maxWidth:$,wrapContent:xs,theme:this.props.theme,showBackground:!0})),N,void 0!==this.props.yAxisTitle&&""!==this.props.yAxisTitle&&a.createElement(Uf,{content:this.props.yAxisTitle,textProps:{x:($-this.margins.bottom)/2+this.state._removalValueForTextTuncate,y:this._isRtl?z.width-this.margins.right/2+this.titleMargin:this.margins.left/2+this.state.startFromX-this.titleMargin,textAnchor:"middle",transform:"translate(0,\n ".concat(z.height-this.margins.bottom-this.margins.top-this.titleMargin,")rotate(-90)"),className:this._classNames.axisTitle,"aria-hidden":!0},maxWidth:$,wrapContent:xs,theme:this.props.theme,showBackground:!0}))),!this.props.hideLegend&&a.createElement("div",{ref:function(t){return f.legendContainer=t},className:this._classNames.legendContainer},this.props.legendBars),D&&a.createElement(a.Suspense,{fallback:a.createElement("div",null,"Loading...")},D))},n.prototype._generateCallout=function(t,n){return a.createElement(zn,(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&&a.createElement(Kf,(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"},u=void 0!==t.index&&-1!==t.index,s=Zf(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:u}),l=this.props.culture,c=(0,jn.U)(t.y,l);if(t.yAxisCalloutData&&"string"!=typeof t.yAxisCalloutData){var f=t.yAxisCalloutData;return a.createElement("div",{style:o},a.createElement("div",{className:"ms-fontWeight-semibold",style:{fontSize:"12pt"}},t.legend," (",c,")"),Object.keys(f).map((function(t){return a.createElement("div",{key:t,className:s.calloutBlockContainer},a.createElement("div",{className:s.calloutlegendText}," ",(0,jn.U)(t,l)),a.createElement("div",{className:s.calloutContentY},(0,jn.U)(f[t],l)))})))}return a.createElement("div",{style:i?o:{}},i&&a.createElement("div",{className:"ms-fontWeight-semibold",style:{fontSize:"12pt"}},t.legend," (",c,")"),a.createElement("div",{id:"".concat(n,"_").concat(t.y),className:s.calloutBlockContainer},u&&a.createElement(Bc,{svgProps:{className:s.shapeStyles},pathProps:{fill:t.color},shape:Os[t.index%Object.keys(Fs).length]}),a.createElement("div",null,a.createElement("div",{className:s.calloutlegendText}," ",t.legend),a.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,a=t.props.enableReflow&&!t._isFirstRender?Math.max(o.getBoundingClientRect().width,t._calculateChartMinWidth()):o.getBoundingClientRect().width,u=o.getBoundingClientRect().height>n?o.getBoundingClientRect().height:350;(i!==a||e!==u-n)&&t.setState({containerWidth:a,containerHeight:u-n})}}))},n}(a.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"}(Xf||(Xf={})),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"}(Gf||(Gf={})),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"}(qf||(qf={}));var th=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}(),nh=(0,r.I)(Qf,(function(t){var n,i,e,r,a,u,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=t.enableReflow,b=f.fonts;return{root:[f.fonts.medium,{display:"flex",width:"100%",height:"100%",flexDirection:"column",overflow:"hidden"},c],chartWrapper:(0,o.Cl)({},y?{overflow:"auto"}:{}),axisTitle:[f.fonts.xSmall,{textAlign:"center",fontWeight:Yt.BO.semibold,fontStyle:"normal",lineHeight:Yt.s.medium,color:Gf.gray160,fill:f.semanticColors.bodyText}],xAxis:{selectors:{text:[f.fonts.tiny,{fill:f.semanticColors.bodyText,fontWeight:"600",selectors:(n={},n[Yt.up]={fill:"CanvasText"},n)}],line:{opacity:.2,stroke:f.semanticColors.bodyText,width:"1px",selectors:(i={},i[Yt.up]={opacity:.1,stroke:"CanvasText"},i)},path:{display:"none"}}},yAxis:{selectors:{text:[f.fonts.tiny,{fill:f.semanticColors.bodyText,fontWeight:"600",selectors:(e={},e[Yt.up]={fill:"CanvasText"},e)}],path:{display:"none"},line:{opacity:.2,stroke:f.semanticColors.bodyText,selectors:(r={},r[Yt.up]={opacity:.1,stroke:"CanvasText"},r)},g:[h&&!th&&{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)({},b.small),{lineHeight:"16px",opacity:"0.85",color:f.semanticColors.bodySubtext})],calloutBlockContainer:[f.fonts.mediumPlus,{marginTop:"13px",color:f.semanticColors.bodyText},!m&&{selectors:(a={},a[Yt.up]={forcedColorAdjust:"none"},a),borderLeft:"4px solid ".concat(g),paddingLeft:"8px"},m&&{display:"flex"}],shapeStyles:{marginRight:"8px"},calloutlegendText:(0,o.Cl)((0,o.Cl)({},b.small),{lineHeight:"16px",selectors:(u={},u[Yt.up]={color:"CanvasText"},u),color:f.semanticColors.bodySubtext}),calloutContentY:[(0,o.Cl)((0,o.Cl)({},b.mediumPlus),{fontWeight:"bold",lineHeight:"22px",selectors:(s={},s[Yt.up]={color:"CanvasText"},s)})],descriptionMessage:[f.fonts.small,{selectors:(l={},l[Yt.up]={color:"CanvasText"},l),color:f.semanticColors.bodyText,marginTop:"10px",paddingTop:"10px",borderTop:"1px solid ".concat(f.semanticColors.menuDivider)}]}})),ih=(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 eh(t,n){return ih(t)(n)}var rh=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)},oh=function(t,n){"scrollTop"in t?t.scrollTop=n:"scrollY"in t&&t.scrollTo(t.scrollX,n)},ah="spacer-",uh={top:-1,bottom:-1,left:-1,right:-1,width:0,height:0},sh=function(t){return t.getBoundingClientRect()},lh=sh,ch=sh,fh=function(t){function n(n){var i=t.call(this,n)||this;return i._root=a.createRef(),i._surface=a.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,Fn.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 a.createElement("div",(0,o.Cl)({ref:n},e),i)},i._onRenderSurface=function(t){var n=t.surfaceRef,i=t.pageElements,e=t.divProps;return a.createElement("div",(0,o.Cl)({ref:n},e),i)},i._onRenderPage=function(t,n){for(var e,r=i.props,u=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 w=null!=s?s:u,C=null!==(e=null==w?void 0:w(b,y,i.props.ignoreScrollingState?void 0:i.state.isScrolling))&&void 0!==e?e:null;s&&!C||g.push(a.createElement("div",{role:p,className:"ms-List-cell",key:x,"data-list-index":y,"data-automationid":"ListCell"},C))}return a.createElement("div",(0,o.Cl)({},v),g)},sl(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,a=0,u=1,s=e;s<r;s+=u){var l=this._getPageSpecification(this.props,s,o),c=l.height;if(u=l.itemCount,s<=t&&s+u>t){if(n&&this._scrollElement){for(var f=ch(this._scrollElement),h=rh(this._scrollElement),d={top:h,bottom:h+f.height},v=t-s,p=0;p<v;++p)a+=n(s+p);var g=a+n(t);switch(i){case 1:return void oh(this._scrollElement,a);case 2:return void oh(this._scrollElement,g-f.height);case 3:return void oh(this._scrollElement,(a+g-f.height)/2)}if(a>=d.top&&g<=d.bottom)return;a<d.top||g>d.bottom&&(a=g-f.height)}return void(this._scrollElement&&oh(this._scrollElement,a))}a+=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,a=e.startIndex;a<e.startIndex+e.itemCount;a++){if(r=t(a),e.top+o<=this._scrollTop&&this._scrollTop<e.top+o+r)return a;o+=r}}}return 0},n.prototype.componentDidMount=function(){this._async=new Pt(this),this._events=new Xl(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 a=i[o],u=e[o];if(a.key!==u.key||a.itemCount!==u.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,a=t.onRenderRoot,u=this.state.pages,s=void 0===u?[]:u,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?eh(r,this._onRenderSurface):this._onRenderSurface;return(a?eh(a,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,a=(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:a}),a},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=w(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),a=Math.min(i,r+1);o===e&&a===r||(this._requiredWindowsAhead=o,this._requiredWindowsBehind=a,this._updateRenderRects(this.props,this.state),this.setState(this._updatePages(this.props,this.state))),(n>o||i>a)&&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={},a=0,u=t;a<u.length;a++)(c=u[a]).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,a=t.getPageHeight;i=this._getRenderCount(t);for(var u=(0,o.Cl)({},uh),s=[],l=1,c=0,f=null,h=this._focusedIndex,d=r+i,v=this._shouldVirtualize(t),p=0===this._estimatedPageHeight&&!a,g=this._allowedRect,m=function(i){var o=b._getPageSpecification(t,i,g),a=o.height,m=o.data,x=o.key;l=o.itemCount;var w,C,M=c+a-1,k=y(n.pages,(function(t){return!!t.items&&t.startIndex===i}))>-1,A=!g||M>=g.top&&c<=g.bottom,S=!b._requiredRect||M>=b._requiredRect.top&&c<=b._requiredRect.bottom;if(!p&&(S||A&&k)||!v||h>=i&&h<i+l||i===r){f&&(s.push(f),f=null);var V=Math.min(l,d-i),L=b._createPage(x,e.slice(i,i+V),i,void 0,void 0,m);L.top=c,L.height=a,b._visibleRect&&b._visibleRect.bottom&&(L.isVisible=M>=b._visibleRect.top&&c<=b._visibleRect.bottom),s.push(L),S&&b._allowedRect&&(w=u,C={top:c,bottom:M,height:a,left:g.left,right:g.right,width:g.width},w.top=C.top<w.top||-1===w.top?C.top:w.top,w.left=C.left<w.left||-1===w.left?C.left:w.left,w.bottom=C.bottom>w.bottom||-1===w.bottom?C.bottom:w.bottom,w.right=C.right>w.right||-1===w.right?C.right:w.right,w.width=w.right-w.left+1,w.height=w.bottom-w.top+1)}else f||(f=b._createPage(ah+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=ah+"end",s.push(f)),this._materializedRect=u,(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,a=void 0===o?this._getItemCountForPage(n,i):o,u=r.height;return{itemCount:a,height:void 0===u?this._getPageHeight(n,i,a):u,data:r.data,key:r.key}}return{itemCount:a=this._getItemCountForPage(n,i),height:this._getPageHeight(n,i,a)}},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,a){void 0===i&&(i=-1),void 0===e&&(e=n?n.length:0),void 0===r&&(r={}),t=t||"page-"+i;var u=this._pageCache[t];return u&&u.page?u.page:{key:t,startIndex:i,itemCount:e,items:n,style:r,top:0,height:0,data:o,isSpacer:a||!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,a=n.pages;if(this._shouldVirtualize(t)){var u=this._surfaceRect||(0,o.Cl)({},uh),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=rh(this._scrollElement);this._surface.current&&(i||!a||!this._surfaceRect||!s||s!==this._scrollHeight||Math.abs(this._scrollTop-c)>.3333333333333333*this._estimatedPageHeight)&&(u=this._surfaceRect=lh(this._surface.current),this._scrollTop=c),!i&&s&&s===this._scrollHeight||this._measureVersion++,this._scrollHeight=s||0;var f=Math.max(0,-u.top),h=(0,l.z)(this._root.current),d={top:f,left:u.left,bottom:f+h.innerHeight,right:u.right,width:u.width,height:h.innerHeight};this._requiredRect=hh(d,this._requiredWindowsBehind,this._requiredWindowsAhead),this._allowedRect=hh(d,r,e),this._visibleRect=d}},n.defaultProps={startIndex:0,onRenderCell:function(t,n,i){return a.createElement(a.Fragment,null,t&&t.name||"")},onRenderCellConditional:void 0,renderedWindowsAhead:2,renderedWindowsBehind:2},n.contextType=Wt,n}(a.Component);function hh(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 dh,vh=function(t){var n=a.useRef(null);a.useEffect((function(){if(n.current){var i=ns(n.current),e=t.text.split(/\s+/),r=[],o=i.append("tspan"),a=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&&(a++,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",-a*t.lineHeight),function(){i.selectAll("tspan").remove()}}})),t.lineHeight;var i=(0,o.Tt)(t,["lineHeight"]);return a.createElement("text",(0,o.Cl)({ref:n},js(i)))},ph=function(t){var n,i,e,r=a.useRef(null),o=a.useState(!1),u=o[0],s=o[1],l=null;if(u){var c=t.labelDef.aggregatedIdx.map((function(n){return t.lineDefs[n].onRenderCard})).filter((function(t){return!!t}));c.length>0&&(l=a.createElement(zn,{target:r.current,onDismiss:function(){return s(!1)},setInitialFocus:!0,role:"dialog"},a.createElement(Dl,{isCircularNavigation:!0,direction:Ks.vertical},a.createElement(fh,{items:c,role:"alert","aria-roledescription":" ",onRenderCell:function(t){return a.createElement("div",{"data-is-focusable":!0},t&&t())}}))))}var f=t.textColor?Ff(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),a.createElement(a.Fragment,null,a.createElement("g",{ref:r,onClick:function(){return s(!0)},"data-is-focusable":!0,style:{cursor:"pointer"},role:"button"},a.createElement(vh,{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)},gh=function(t){var n,i,e=t.labelWidth?t.labelWidth:105,r=t.chartYTop-20,u=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?Ff(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 a=o[r],u=n(a);-1===i.indexOf(u)&&(e.push(a),i.push(u))}return e}(l,(function(t){return t.date.toString()})).map((function(n,i){return a.createElement("line",{key:i,x1:n.x,x2:n.x,y1:u,y2:t.chartYBottom,stroke:c,strokeDasharray:"8"})})),h=function(t,n,i,e){var r=function(e,r){if(r===t.length)return[];var a=t[r].x,u=a-n;return a<e?[]:r===t.length-1?e<u?[{x:a,anchor:"end",aggregatedIdx:[r]}]:a+n<i?[{x:a,anchor:"start",aggregatedIdx:[r]}]:[]:o(r,e<u?"end":"start")},o=function(e,o){var a="end"===o?t[e].x:t[e].x+n,u=y(t,(function(t){return t.x>a&&(t.x-n>=a||t.x+n<i)}),e+1);-1===u&&(u=t.length);for(var s=[],l=e;l<u;l++)s.push(l);var c=r(a,u);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 a.createElement(ph,{key:i,theme:t.theme,lineDefs:l,labelDef:n,textY:r,textWidth:e,textLineHeight:18,textFontSize:"10pt",textColor:t.labelColor,mergedLabel:t.mergedLabel})}));return a.createElement(a.Fragment,null,f,h)},mh=(0,u.Z)();!function(t){t[t.hoverSize=11]="hoverSize",t[t.invisibleSize=1]="invisibleSize"}(dh||(dh={}));var yh=mi((function(t){return t.x})).left,bh=function(t){function n(n){var i,e,r,u,l,c=t.call(this,n)||this;return c._xAxisScale="",c._yScalePrimary="",c.eventLabelHeight=36,c._isRTL=(0,s.jI)(),c._xMin=Number.NEGATIVE_INFINITY,c._xMax=Number.POSITIVE_INFINITY,c._xPadding=0,c._yPaddingPrimary=0,c._yPaddingSecondary=0,c.toImage=function(t){var n,i;return Fc(null===(n=c._cartesianChartRef.current)||void 0===n?void 0:n.chartContainer,null===(i=c._legendsRef.current)||void 0===i?void 0:i.toSVG,c._isRTL,t)},c._getDomainNRangeValues=function(t,n,i,e,r,o,a,u,s){return"scatter"===c.props.lineMode&&o===Ku.NumericAxis?c._getDomainNRangeValuesWithPadding(t,n,i,r):o===Ku.NumericAxis?ks(t,n,i,r):o===Ku.DateAxis?Ls(t,n,i,r,u,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,a;return a=void 0===t.color?Bf(n,0,null===(i=c.props.theme)||void 0===i?void 0:i.isInverted):Ff(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:a})})):[]},c._getCustomizedCallout=function(){return c.props.onRenderCalloutPerStack?c.props.onRenderCalloutPerStack(c.state.stackCalloutProps):c.props.onRenderCalloutPerDataPoint?c.props.onRenderCalloutPerDataPoint(c.state.dataPointCalloutProps):null},c._getNumericMinMaxOfY=function(t,n,i){var e=Ds(t,0,i),r=e.startValue,o=e.endValue,a=0;return"scatter"===c.props.lineMode&&(a=.1*(o-r),i?c._yPaddingSecondary=a:c._yPaddingPrimary=a),{startValue:r-a,endValue:o+a}},c._getMargins=function(t){c.margins=t},c._initializeLineChartData=function(t,n,i,e,r,o,a){c._xAxisScale=t,c._yScalePrimary=n,c._yScaleSecondary=a,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,a=e.strokeWidth,u=void 0===a?4:a,s=c.state.activePoint;return o?s===t?dh.hoverSize:1===n||i?2.5*u:dh.invisibleSize:s===t?dh.hoverSize:dh.invisibleSize},c._getPath=function(t,n,i,e,r,o){var a=c.props.allowMultipleShapesForPoints,u=void 0!==a&&a,s=c._getBoxWidthOfShape(i,e,r),l=u?o%Object.keys(Fs).length:0,f=Fs[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,a=o.theme;return o.allowMultipleShapesForPoints,r===n?a.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=Ds(c._points),r=0;r<c._colorFillBars.length;r++){var o=c._colorFillBars[r],u=g("string"==typeof o.legend?o.legend.replace(/\W/g,""):""),s=Ff(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(a.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._yScalePrimary(e.endValue)-3,width:Math.abs(c._xAxisScale(h)-c._xAxisScale(f)),height:c._yScalePrimary(c.props.yMinValue||0)-c._yScalePrimary(e.endValue)+3,key:"".concat(u).concat(l)}))}}return i},c._getStripePattern=function(t,n){return a.createElement("pattern",{id:"".concat(c._colorFillBarPatternId,"_").concat(n),width:16,height:16,key:"".concat(c._colorFillBarPatternId,"_").concat(n),patternUnits:"userSpaceOnUse"},a.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,e){e.persist();var r=c.props.data.lineChartData,o=c._xAxisScale.invert(zf(e)[0],document.getElementById(c._rectId)),a=yh(r[t].data,o),u=r[t].data[a-1],s=r[t].data[a],l=null,f=null;if(void 0===u&&void 0!==s)l=s.x,f=a;else if(void 0!==u&&void 0===s)l=u.x,f=a-1;else{var h=void 0,d=void 0,v=void 0;switch(Bs(r[t].data[0].x,!0)){case Ku.DateAxis:h=new Date(o).getTime(),d=u.x.getTime(),v=s.x.getTime(),l=Math.abs(h-d)>Math.abs(h-v)?s.x:u.x,f=Math.abs(h-d)>Math.abs(h-v)?a:a-1;break;case Ku.NumericAxis:h=o,d=u.x,v=s.x,l=Math.abs(h-d)>Math.abs(h-v)?s.x:u.x,f=Math.abs(h-d)>Math.abs(h-v)?a:a-1}}var p=r[t].data[f],g=p.xAxisCalloutData,m=p.xAxisCalloutAccessibilityData,y=l instanceof Date?zs(l,c.props.useUTC):l,x=l instanceof Date?l.getTime():l,w=b(c._calloutPoints,(function(t){return t.x===x})),C=r[t].data[f],M=null===c.state.nearestCircleToHighlight||null!==c.state.nearestCircleToHighlight&&null!==C&&(c.state.nearestCircleToHighlight.x!==C.x||c.state.nearestCircleToHighlight.y!==C.y);w&&M&&(c._uniqueCallOutID="#".concat(c._staticHighlightCircle,"_").concat(t),ns("#".concat(c._staticHighlightCircle,"_").concat(t)).attr("cx","".concat(c._xAxisScale(C.x))).attr("cy","".concat(i(C.y))).attr("visibility","visibility"),ns("#".concat(c._verticalLine)).attr("transform",(function(){return"translate(".concat(c._xAxisScale(C.x),", ").concat(i(C.y),")")})).attr("visibility","visibility").attr("y2","".concat(n-i(C.y))),c.setState({nearestCircleToHighlight:C,isCalloutVisible:!0,refSelected:"#".concat(c._staticHighlightCircle,"_").concat(t),stackCalloutProps:w,YValueHover:w.values,dataPointCalloutProps:w,hoverXValue:g||y,xAxisCalloutAccessibilityData:m,activePoint:"",activeLine:t})),w||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?zs(n,c.props.useUTC):n,a=n instanceof Date?n.getTime():n,u=b(c._calloutPoints,(function(t){return t.x===a}));if(u){var s=c;ns("#".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:u.values,stackCalloutProps:u,dataPointCalloutProps:u,activePoint:e,xAxisCalloutAccessibilityData:r})}))}else c.setState({activePoint:e})},c._handleHover=function(t,n,i,e,r,o,a,u){u.persist();var s=t instanceof Date?zs(t,c.props.useUTC):t,l=t instanceof Date?t.getTime():t,f=c,h=b(c._calloutPoints,(function(t){return t.x===l}));h?(ns("#".concat(c._verticalLine)).attr("transform",(function(){return"translate(".concat(f._xAxisScale(t),", ").concat(a(n),")")})).attr("visibility","visibility").attr("y2","".concat(i-a(n))),c._uniqueCallOutID!==r&&(c._uniqueCallOutID=r,c.setState({isCalloutVisible:!0,refSelected:"#".concat(r),hoverXValue:e||""+s,YValueHover:h.values,stackCalloutProps:h,dataPointCalloutProps:h,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(){ns("#".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?zs(r.x,c.props.useUTC):r.x,a=r.xAxisCalloutData||o,u=e.legend,s=r.yAxisCalloutData||r.y;return(null===(i=r.callOutAccessibilityData)||void 0===i?void 0:i.ariaLabel)||"".concat(a,". ").concat(u,", ").concat(s,".")},c._getDomainNRangeValuesWithPadding=function(t,n,i,e){c._xMin=di(t,(function(t){return di(t.data,(function(t){return t.x}))})),c._xMax=vi(t,(function(t){return vi(t.data,(function(t){return t.x}))})),"scatter"===c.props.lineMode&&(c._xPadding=.1*(c._xMax-c._xMin));var r=n.left,o=i-n.right;return e?{dStartValue:c._xMax+c._xPadding,dEndValue:c._xMin-c._xPadding,rStartValue:r,rEndValue:o}:{dStartValue:c._xMin-c._xPadding,dEndValue:c._xMax+c._xPadding,rStartValue:r,rEndValue:o}},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. ")},sl(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===(u=null===(r=c.props.legendProps)||void 0===r?void 0:r.selectedLegends)||void 0===u?void 0:u.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=bs(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=a.createRef(),c._legendsRef=a.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,a,u,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)&&$s(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!==(a=null===(o=this.props.legendProps)||void 0===o?void 0:o.selectedLegend)&&void 0!==a?a:"",selectedLegendPoints:this._injectIndexPropertyInLineChartData(this.props.data.lineChartData,!0),isSelectedLegend:(null!==(l=null===(s=null===(u=this.props.legendProps)||void 0===u?void 0:u.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=bs(this._points)||[])},n.prototype.render=function(){var t=this,n=this.props,i=n.tickValues,e=n.tickFormat,r=n.eventAnnotationProps,u=n.legendProps,s=n.data;this._points=this._injectIndexPropertyInLineChartData(s.lineChartData);var l=Ms(this._points),c=this._points;u&&u.canSelectMultipleLegends&&(c=this.state.selectedLegendPoints.length>=1?this.state.selectedLegendPoints:this._points,this._calloutPoints=bs(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()?a.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):a.createElement(nh,(0,o.Cl)({},this.props,{chartTitle:this._getChartTitle(),points:c,chartType:Zu.LineChart,isCalloutForStack:!0,calloutProps:h,tickParams:d,legendBars:f,createYAxis:gs,getmargins:this._getMargins,getMinMaxOfYAxis:this._getNumericMinMaxOfY,getGraphData:this._initializeLineChartData,xAxisType:l?Ku.DateAxis:Ku.NumericAxis,customizedCallout:this._getCustomizedCallout(),getDomainNRangeValues:this._getDomainNRangeValues,createStringYAxis:ys,onChartMouseLeave:this._handleChartMouseLeave,enableFirstRenderOptimization:this.props.enablePerfOptimization&&this._firstRenderOptimization,ref:this._cartesianChartRef,children:function(n){return t._xAxisScale=n.xScale,t._yScalePrimary=n.yScalePrimary,t._yScaleSecondary=n.yScaleSecondary,a.createElement(a.Fragment,null,a.createElement("g",null,a.createElement("line",{x1:0,y1:0,x2:0,y2:n.containerHeight,stroke:"#323130",id:t._verticalLine,visibility:"hidden",strokeDasharray:"5,5"}),t.props.optimizeLargeData?a.createElement("rect",{id:t._rectId,width:n.containerWidth,height:n.containerHeight,fill:"transparent"}):a.createElement(a.Fragment,null),a.createElement("g",null,t._renderedColorFillBars,t.lines),r&&a.createElement(gh,(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,u=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}),u&&{shape:Os[t.index%Object.keys(Fs).length]})})),c=this.props.colorFillBars?this.props.colorFillBars.map((function(t,i){var e,r=t.legend,o=Ff(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 a.createElement(jc,(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,{ref:this._legendsRef}))},n.prototype._getRangeForScatterMarkerSize=function(t,n){var i=this._isRTL?this._xAxisScale(this._xMax-this._xPadding)-this._xAxisScale(this._xMax):this._xAxisScale(this._xMin+this._xPadding)-this._xAxisScale(this._xMin),e=t.domain()[0],r=t(e)-t(e+n);return Math.min(i,r)},n.prototype._createLines=function(t,n){var i,e,r,u,s,l,c,f,h,d,v,p,g,m,y,b,x,w,C,M,k,A,S,V,L,D,N,T=this,O=[];this.state.isSelectedLegend?this._points=this.state.selectedLegendPoints:this._points=this._injectIndexPropertyInLineChartData(this.props.data.lineChartData);for(var E=vi(this._points,(function(t){return vi(t.data,(function(t){return t.markerSize}))})),B=function(t){var B=[],P=[],_=[],H=F._points[t].legend,I=F._points[t].color,W=F.state.activePoint,R=F.props.theme,z=n-F.margins.bottom+6,j=F._points[t].useSecondaryYScale&&F._yScaleSecondary?F._yScaleSecondary:F._yScalePrimary,$=F._points[t].useSecondaryYScale&&F._yScaleSecondary?F._yPaddingSecondary:F._yPaddingPrimary,Y="scatter"===F.props.lineMode?F._getRangeForScatterMarkerSize(j,$):0;if(1===F._points[t].data.length){var X=F._points[t].data[0],G=X.x,q=X.y,U=X.xAxisCalloutData,Z=X.xAxisCalloutAccessibilityData,K="".concat(F._circleId,"_").concat(t),J=F._legendHighlighted(H)||F._noLegendHighlighted()||F.state.isSelectedLegend,Q=F._points[t].data[0].markerSize;_.push(a.createElement("circle",(0,o.Cl)({id:K,key:K,r:Q?Q*Y/E:W===K?5.5:3.5,cx:F._xAxisScale(G),cy:j(q),fill:W===K?R.semanticColors.bodyBackground:I,opacity:J?1:.1,onMouseOver:F._handleHover.bind(F,G,q,z,U,K,Z,j),onMouseMove:F._handleHover.bind(F,G,q,z,U,K,Z,j),onMouseOut:F._handleMouseOut,strokeWidth:W===K?4:0,stroke:W===K?I:"",role:"img","aria-label":F._getAriaLabel(t,0),"data-is-focusable":J,ref:function(t){T._refCallback(t,K)},onFocus:function(){return T._handleFocus(K,G,U,K,Z)},onBlur:F._handleMouseOut},F._getClickHandler(F._points[t].data[0].onDataPointClick))))}var tt=0,nt=null!==(e=null===(i=F._points[t].gaps)||void 0===i?void 0:i.sort((function(t,n){return t.startIndex-n.startIndex})))&&void 0!==e?e:[],it=null===(r=F._points[t].lineOptions)||void 0===r?void 0:r.curve;if((F.props.optimizeLargeData||it)&&F._points[t].data.length>1){for(var et=Yf().x((function(t){return T._xAxisScale(t[0])})).y((function(t){return j(t[1])})).curve(Zs(it)),rt="".concat(F._lineId,"_").concat(t),ot="".concat(F._borderId,"_").concat(t),at=(null===(u=F._points[t].lineOptions)||void 0===u?void 0:u.strokeWidth)||F.props.strokeWidth||4,ut=(J=F._legendHighlighted(H)||F._noLegendHighlighted()||F.state.isSelectedLegend,[]),st=0;st<F._points[t].data.length;st++)ut.push([F._points[t].data[st].x instanceof Date?F._points[t].data[st].x.getTime():F._points[t].data[st].x,F._points[t].data[st].y]);if(J){var lt=(null===(s=F._points[t].lineOptions)||void 0===s?void 0:s.lineBorderWidth)?Number.parseFloat(F._points[t].lineOptions.lineBorderWidth.toString()):0;lt>0&&P.push(a.createElement("path",{id:ot,key:ot,d:et(ut),fill:"transparent",strokeLinecap:null!==(c=null===(l=F._points[t].lineOptions)||void 0===l?void 0:l.strokeLinecap)&&void 0!==c?c:"round",strokeWidth:Number.parseFloat(at.toString())+lt,stroke:(null===(f=F._points[t].lineOptions)||void 0===f?void 0:f.lineBorderColor)||R.semanticColors.bodyBackground,opacity:1})),B.push(a.createElement("path",(0,o.Cl)({id:rt,key:rt,d:et(ut),fill:"transparent","data-is-focusable":!0,stroke:I,strokeWidth:at,strokeLinecap:null!==(d=null===(h=F._points[t].lineOptions)||void 0===h?void 0:h.strokeLinecap)&&void 0!==d?d:"round",strokeDasharray:null===(v=F._points[t].lineOptions)||void 0===v?void 0:v.strokeDasharray,onMouseMove:F._onMouseOverLargeDataset.bind(F,t,z,j),onMouseOver:F._onMouseOverLargeDataset.bind(F,t,z,j),onMouseOut:F._handleMouseOut},F._getClickHandler(F._points[t].onLineClick),{opacity:1})))}else B.push(a.createElement("path",{id:rt,key:rt,d:et(ut),fill:"transparent","data-is-focusable":!1,stroke:I,strokeWidth:at,strokeLinecap:null!==(g=null===(p=F._points[t].lineOptions)||void 0===p?void 0:p.strokeLinecap)&&void 0!==g?g:"round",strokeDasharray:null===(m=F._points[t].lineOptions)||void 0===m?void 0:m.strokeDasharray,opacity:.1}));var ct=null!==F.state.activeLine&&F.state.activeLine===t;_.push(a.createElement("circle",{id:"".concat(F._staticHighlightCircle,"_").concat(t),key:"".concat(F._staticHighlightCircle,"_").concat(t),r:5.5,cx:0,cy:0,fill:R.semanticColors.bodyBackground,strokeWidth:4,stroke:I,visibility:ct?"visibility":"hidden",onMouseMove:F._onMouseOverLargeDataset.bind(F,t,z,j),onMouseOver:F._onMouseOverLargeDataset.bind(F,t,z,j),onMouseOut:F._handleMouseOut}))}else if(!F.props.optimizeLargeData)for(var ft=function(n){var i=F._checkInGap(n,nt,tt),e=i.isInGap;tt=i.gapIndex;var r="".concat(F._lineId,"_").concat(t,"_").concat(n),u="".concat(F._borderId,"_").concat(t,"_").concat(n),s="".concat(F._circleId,"_").concat(t,"_").concat(n),l=F._points[t].data[n-1],c=l.x,f=l.y,h=l.xAxisCalloutData,d=l.xAxisCalloutAccessibilityData,v=F._points[t].data[n],p=v.x,g=v.y,m=F._getPath(F._xAxisScale(c),j(f),s,n,!1,F._points[t].index),O=(null===(y=F._points[t].lineOptions)||void 0===y?void 0:y.strokeWidth)||F.props.strokeWidth||4,$=F._legendHighlighted(H)||F._noLegendHighlighted()||F.state.isSelectedLegend,X=F._points[t].hideNonActiveDots&&W!==s,G=F._points[t].data[n-1].markerSize;if(_.push("scatter"===F.props.lineMode?a.createElement("circle",(0,o.Cl)({id:s,key:s,r:G?G*Y/E:4,cx:F._xAxisScale(c),cy:j(f),"data-is-focusable":$,onMouseOver:F._handleHover.bind(F,c,f,z,h,s,d,j),onMouseMove:F._handleHover.bind(F,c,f,z,h,s,d,j),onMouseOut:F._handleMouseOut,onFocus:function(){return T._handleFocus(r,c,h,s,d)},onBlur:F._handleMouseOut},F._getClickHandler(F._points[t].data[n-1].onDataPointClick),{opacity:$&&!X?1:.01,fill:F._getPointFill(I,s,n,!1),stroke:I,strokeWidth:O,role:"img","aria-label":F._getAriaLabel(t,n-1)})):a.createElement("path",(0,o.Cl)({id:s,key:s,d:m,"data-is-focusable":$,onMouseOver:F._handleHover.bind(F,c,f,z,h,s,d,j),onMouseMove:F._handleHover.bind(F,c,f,z,h,s,d,j),onMouseOut:F._handleMouseOut,onFocus:function(){return T._handleFocus(r,c,h,s,d)},onBlur:F._handleMouseOut},F._getClickHandler(F._points[t].data[n-1].onDataPointClick),{opacity:$&&!X?1:.01,fill:F._getPointFill(I,s,n,!1),stroke:I,strokeWidth:O,role:"img","aria-label":F._getAriaLabel(t,n-1)}))),n+1===F._points[t].data.length){var q="".concat(s).concat(n,"L"),U="".concat(s).concat(n,"D"),Z=F._points[t].hideNonActiveDots&&W!==q;m=F._getPath(F._xAxisScale(p),j(g),q,n,!0,F._points[t].index);var K=F._points[t].data[n],J=K.xAxisCalloutData,Q=K.xAxisCalloutAccessibilityData;G=F._points[t].data[n].markerSize,_.push(a.createElement(a.Fragment,{key:"".concat(q,"_container")},"scatter"===F.props.lineMode?a.createElement("circle",(0,o.Cl)({id:q,key:q,r:G?G*Y/E:4,cx:F._xAxisScale(p),cy:j(g),"data-is-focusable":$,onMouseOver:F._handleHover.bind(F,p,g,z,J,q,Q,j),onMouseMove:F._handleHover.bind(F,p,g,z,J,q,Q,j),onMouseOut:F._handleMouseOut,onFocus:function(){return T._handleFocus(r,p,J,q,Q)},onBlur:F._handleMouseOut},F._getClickHandler(F._points[t].data[n].onDataPointClick),{opacity:$&&!Z?1:.01,fill:F._getPointFill(I,q,n,!0),stroke:I,strokeWidth:O,role:"img","aria-label":F._getAriaLabel(t,n)})):a.createElement("path",(0,o.Cl)({id:q,key:q,d:m,"data-is-focusable":$,onMouseOver:F._handleHover.bind(F,p,g,z,J,q,Q,j),onMouseMove:F._handleHover.bind(F,p,g,z,J,q,Q,j),onMouseOut:F._handleMouseOut,onFocus:function(){return T._handleFocus(r,p,J,q,Q)},onBlur:F._handleMouseOut},F._getClickHandler(F._points[t].data[n].onDataPointClick),{opacity:$&&!Z?1:.01,fill:F._getPointFill(I,q,n,!0),stroke:I,strokeWidth:O,role:"img","aria-label":F._getAriaLabel(t,n)})),a.createElement("circle",{id:U,key:U,r:8,cx:F._xAxisScale(p),cy:j(g),opacity:0,width:0,onMouseOver:F._handleHover.bind(F,p,g,z,J,q,Q,j),onMouseMove:F._handleHover.bind(F,p,g,z,J,q,Q,j),onMouseOut:F._handleMouseOut,strokeWidth:0,focusable:!1,onBlur:F._handleMouseOut})))}if("scatter"!==F.props.lineMode)if($){if(!e){var it=(null===(b=F._points[t].lineOptions)||void 0===b?void 0:b.lineBorderWidth)?Number.parseFloat(F._points[t].lineOptions.lineBorderWidth.toString()):0;it>0&&P.push(a.createElement("line",{id:u,key:u,x1:F._xAxisScale(c),y1:j(f),x2:F._xAxisScale(p),y2:j(g),strokeLinecap:null!==(w=null===(x=F._points[t].lineOptions)||void 0===x?void 0:x.strokeLinecap)&&void 0!==w?w:"round",strokeWidth:Number.parseFloat(O.toString())+it,stroke:(null===(C=F._points[t].lineOptions)||void 0===C?void 0:C.lineBorderColor)||R.semanticColors.bodyBackground,opacity:1})),B.push(a.createElement("line",(0,o.Cl)({id:r,key:r,x1:F._xAxisScale(c),y1:j(f),x2:F._xAxisScale(p),y2:j(g),strokeWidth:O,ref:function(t){T._refCallback(t,r)},onMouseOver:F._handleHover.bind(F,c,f,z,h,s,d,j),onMouseMove:F._handleHover.bind(F,c,f,z,h,s,d,j),onMouseOut:F._handleMouseOut,stroke:I,strokeLinecap:null!==(k=null===(M=F._points[t].lineOptions)||void 0===M?void 0:M.strokeLinecap)&&void 0!==k?k:"round",strokeDasharray:null===(A=F._points[t].lineOptions)||void 0===A?void 0:A.strokeDasharray,strokeDashoffset:null===(S=F._points[t].lineOptions)||void 0===S?void 0:S.strokeDashoffset,opacity:1},F._getClickHandler(F._points[t].onLineClick))))}}else e||B.push(a.createElement("line",{id:r,key:r,x1:F._xAxisScale(c),y1:j(f),x2:F._xAxisScale(p),y2:j(g),strokeWidth:O,stroke:I,strokeLinecap:null!==(L=null===(V=F._points[t].lineOptions)||void 0===V?void 0:V.strokeLinecap)&&void 0!==L?L:"round",strokeDasharray:null===(D=F._points[t].lineOptions)||void 0===D?void 0:D.strokeDasharray,strokeDashoffset:null===(N=F._points[t].lineOptions)||void 0===N?void 0:N.strokeDashoffset,opacity:.1}))},ht=1;ht<F._points[t].data.length;ht++)ft(ht);O.push(a.createElement("g",{key:"line_".concat(t),role:"region","aria-label":"".concat(H,", line ").concat(t+1," of ").concat(F._points.length," with ").concat(F._points[t].data.length," data points.")},P,B,_))},F=this,P=this._points.length-1;P>=0;P--)B(P);var _=mh(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 H=ns(t).call(this._xAxisScale);try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}var I={tooltipCls:_.tooltip,id:this._tooltipId,xAxis:H};H&&Cs(I)}return O},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}(a.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",color:t.theme.semanticColors.bodyText})}}));function wh(t,n){if((r=t.length)>1)for(var i,e,r,o=1,a=t[n[0]],u=a.length;o<r;++o)for(e=a,a=t[n[o]],i=0;i<u;++i)a[i][1]+=a[i][0]=isNaN(e[i][1])?e[i][0]:e[i][1]}function Ch(t){for(var n=t.length,i=new Array(n);--n>=0;)i[n]=n;return i}function Mh(t,n){return t[n]}function kh(t){const n=[];return n.key=t,n}function Ah(t){return t<0?-1:1}function Sh(t,n,i){var e=t._x1-t._x0,r=n-t._x1,o=(t._y1-t._y0)/(e||r<0&&-0),a=(i-t._y1)/(r||e<0&&-0),u=(o*r+a*e)/(e+r);return(Ah(o)+Ah(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(u))||0}function Vh(t,n){var i=t._x1-t._x0;return i?(3*(t._y1-t._y0)/i-n)/2:n}function Lh(t,n,i){var e=t._x0,r=t._y0,o=t._x1,a=t._y1,u=(o-e)/3;t._context.bezierCurveTo(e+u,r+u*n,o-u,a-u*i,o,a)}function Dh(t){this._context=t}function Nh(t){this._context=t}function Th(t){return new Dh(t)}function Oh(t,n,i){var e=null,r=Yc(!0),o=null,a=rs,u=null,s=vf(l);function l(l){var c,f,h,d,v,p=(l=$c(l)).length,g=!1,m=new Array(p),y=new Array(p);for(null==o&&(u=a(v=s())),c=0;c<=p;++c){if(!(c<p&&r(d=l[c],c,l))===g)if(g=!g)f=c,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),h=c-1;h>=f;--h)u.point(m[h],y[h]);u.lineEnd(),u.areaEnd()}g&&(m[c]=+t(d,c,l),y[c]=+n(d,c,l),u.point(e?+e(d,c,l):m[c],i?+i(d,c,l):y[c]))}if(v)return u=null,v+""||null}function c(){return Yf().defined(r).curve(a).context(o)}return t="function"==typeof t?t:void 0===t?jf:Yc(+t),n="function"==typeof n?n:Yc(void 0===n?0:+n),i="function"==typeof i?i:void 0===i?$f:Yc(+i),l.x=function(n){return arguments.length?(t="function"==typeof n?n:Yc(+n),e=null,l):t},l.x0=function(n){return arguments.length?(t="function"==typeof n?n:Yc(+n),l):t},l.x1=function(t){return arguments.length?(e=null==t?null:"function"==typeof t?t:Yc(+t),l):e},l.y=function(t){return arguments.length?(n="function"==typeof t?t:Yc(+t),i=null,l):n},l.y0=function(t){return arguments.length?(n="function"==typeof t?t:Yc(+t),l):n},l.y1=function(t){return arguments.length?(i=null==t?null:"function"==typeof t?t:Yc(+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:Yc(!!t),l):r},l.curve=function(t){return arguments.length?(a=t,null!=o&&(u=a(o)),l):a},l.context=function(t){return arguments.length?(null==t?o=u=null:u=a(o=t),l):o},l}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:Lh(this,this._t0,Vh(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,Lh(this,Vh(this,i=Sh(this,t,n)),i);break;default:Lh(this,this._t0,i=Sh(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 Nh(t)}.prototype=Object.create(Dh.prototype)).point=function(t,n){Dh.prototype.point.call(this,n,t)},Nh.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 Eh,Bh=(0,u.Z)(),Fh=mi((function(t){return t.x})).left;!function(t){t.show="visibility",t.hide="hidden"}(Eh||(Eh={}));var Ph=function(t){function n(n){var i,e=t.call(this,n)||this;return e._containsSecondaryYAxis=!1,e.toImage=function(t){var n,i;return Fc(null===(n=e._cartesianChartRef.current)||void 0===n?void 0:n.chartContainer,null===(i=e._legendsRef.current)||void 0===i?void 0:i.toSVG,(0,s.jI)(),t)},e._getDomainNRangeValues=function(t,n,i,e,r,o,a,u){return o===Ku.NumericAxis?ks(t,n,i,r):o===Ku.DateAxis?Ls(t,n,i,r,u,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._xAxisRectScale.invert(zf(t)[0],document.getElementById(e._rectId)),r=Fh(n[0].data,i),a=n[0].data[r-1],u=n[0].data[r],s=null,l=null,c=n[0].data.length>0?Bs(n[0].data[0].x,!0):null;if(void 0===a&&void 0!==u)s=u.x,l=r;else if(void 0!==a&&void 0===u)s=a.x,l=r-1;else{var f=void 0,h=void 0,d=void 0;switch(c){case Ku.DateAxis:f=new Date(i).getTime(),h=a.x.getTime(),d=u.x.getTime(),s=Math.abs(f-h)>Math.abs(f-d)?u.x:a.x,l=Math.abs(f-h)>Math.abs(f-d)?r:r-1;break;case Ku.NumericAxis:f=i,h=a.x,d=u.x,s=Math.abs(f-h)>Math.abs(f-d)?u.x:a.x,l=Math.abs(f-h)>Math.abs(f-d)?r:r-1}}var v=n[0].data[l],p=v.xAxisCalloutData,g=v.xAxisCalloutAccessibilityData,m=s instanceof Date?zs(s,e.props.useUTC):s,y=s instanceof Date?s.getTime():s,x=b(e._calloutPoints,(function(t){return t.x===y})),w=c===Ku.DateAxis?s.getTime():s,C=e.state.nearestCircleToHighlight!==w;if(x&&C&&!e.state.isShowCalloutPending){var M=e._getFilteredLegendValues(x.values);e.setState({nearestCircleToHighlight:w,isCalloutVisible:!1,isShowCalloutPending:!0,lineXValue:e._xAxisRectScale(s),displayOfLine:Eh.show,isCircleClicked:!1,stackCalloutProps:(0,o.Cl)((0,o.Cl)({},x),{values:M}),YValueHover:M,dataPointCalloutProps:(0,o.Cl)((0,o.Cl)({},x),{values:M}),hoverXValue:p||m,xAxisCalloutAccessibilityData:g,activePoint:""})}x||e.setState({isCalloutVisible:!1,nearestCircleToHighlight:w,displayOfLine:Eh.hide,isCircleClicked:!1})},e._onRectMouseOut=function(){},e._handleChartMouseLeave=function(){e.setState({refSelected:null,isCalloutVisible:!1,nearestCircleToHighlight:null,lineXValue:0,displayOfLine:Eh.hide,isCircleClicked:!1,stackCalloutProps:void 0,dataPointCalloutProps:void 0,hoverXValue:void 0,YValueHover:[]})},e._getDataPoints=function(t,n){var i,r=[],o=0;if(e._shouldFillToZeroY())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 a=function(){var t=Yc([]),n=Ch,i=wh,e=Mh;function r(r){var o,a,u=Array.from(t.apply(this,arguments),kh),s=u.length,l=-1;for(const t of r)for(o=0,++l;o<s;++o)(u[o][l]=[0,+e(t,u[o].key,l,r)]).data=t;for(o=0,a=$c(n(u));o<s;++o)u[a[o]].index=o;return i(u,a),u}return r.keys=function(n){return arguments.length?(t="function"==typeof n?n:Yc(Array.from(n)),r):t},r.value=function(t){return arguments.length?(e="function"==typeof t?t:Yc(+t),r):e},r.order=function(t){return arguments.length?(n=null==t?Ch:"function"==typeof t?t:Yc(Array.from(t)),r):n},r.offset=function(t){return arguments.length?(i=null==t?wh:t,r):i},r}().keys(t)(n);o=vi(a[a.length-1],(function(t){return t[1]})),a.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:e._containsSecondaryYAxis?Ds(e.props.data.lineChartData).endValue:o}},e._createDataSet=function(t){if(e.props.enablePerfOptimization&&e._enableComputationOptimization){var n=[],i=[],r=[],o=[],a=bs(t);t&&t.length&&t.forEach((function(t){r.push(t.color),o.push(t.opacity||1),n.push.apply(n,t.data)}));var u={};n.forEach((function(t){var n=t.x instanceof Date?t.x.toLocaleString():t.x;u[n]?u[n].push(t):u[n]=[t]})),Object.keys(u).forEach((function(t){var n=u[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:a}}var d=[],v=[],p=[],g=[];a=bs(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:a}},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,a,u){e._chart=e._drawGraph(i,t,n,u,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)}})),a.createElement(jc,(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),ref:e._legendsRef}))},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,u){var s,l=e._addDefaultColors(e.props.data.lineChartData),c=e.props.data,f=c.pointOptions,h=c.pointLineOptions,d=[];e._data.forEach((function(t,u){var s,c,f,h,v,p,g=l[u].useSecondaryYScale&&r?r:i,m=Zs(null===(s=l[u].lineOptions)||void 0===s?void 0:s.curve,Th),y=Oh().x((function(t){return n(t.xVal)})).y0((function(t){return g(t.values[0])})).y1((function(t){return g(t.values[1])})).curve(m),b=Yf().x((function(t){return n(t.xVal)})).y((function(t){return g(t.values[1])})).curve(m),x=e._shouldFillToZeroY()?.8:e._opacity[u];d.push(a.createElement(a.Fragment,{key:"".concat(u,"-graph-").concat(e._uniqueIdForGraph)},e.props.enableGradient&&a.createElement("defs",null,a.createElement("linearGradient",{id:"gradient_".concat(u),x1:"0%",x2:"0%",y1:"0%",y2:"100%"},a.createElement("stop",{offset:"0",stopColor:e._colors[u]}),a.createElement("stop",{offset:"100%",stopColor:"transparent"}))),a.createElement("path",{id:"".concat(u,"-line-").concat(e._uniqueIdForGraph),d:b(t),fill:"transparent",strokeWidth:null!==(f=null===(c=l[u].lineOptions)||void 0===c?void 0:c.strokeWidth)&&void 0!==f?f:3,stroke:e._colors[u],opacity:e._getLineOpacity(l[u].legend),onMouseMove:e._onRectMouseMove,onMouseOut:e._onRectMouseOut,onMouseOver:e._onRectMouseMove,strokeDasharray:null===(h=l[u].lineOptions)||void 0===h?void 0:h.strokeDasharray,strokeDashoffset:null===(v=l[u].lineOptions)||void 0===v?void 0:v.strokeDashoffset,strokeLinecap:null===(p=l[u].lineOptions)||void 0===p?void 0:p.strokeLinecap}),1===t.length?a.createElement("circle",{id:"".concat(u,"-graph-").concat(e._uniqueIdForGraph),cx:n(t[0].xVal),cy:g(t[0].values[1]),r:6,stroke:e._colors[u],strokeWidth:3,fill:e._colors[u],opacity:x,fillOpacity:e._getOpacity(l[u].legend),onMouseMove:e._onRectMouseMove,onMouseOut:e._onRectMouseOut,onMouseOver:e._onRectMouseMove}):a.createElement("path",(0,o.Cl)({id:"".concat(u,"-graph-").concat(e._uniqueIdForGraph),d:y(t),fill:e.props.enableGradient?"url(#gradient_".concat(u,")"):e._colors[u],opacity:x,fillOpacity:e._getOpacity(l[u].legend),onMouseMove:e._onRectMouseMove,onMouseOut:e._onRectMouseOut,onMouseOver:e._onRectMouseMove},e.props.optimizeLargeData&&{"data-is-focusable":e._legendHighlighted(l[u].legend)||e._noLegendHighlighted(),role:"img","aria-label":"".concat(l[u].legend,", series ").concat(u+1," of ").concat(l.length," with ").concat(l[u].data.length," data points.")}))))}));var v=f&&f.r?Number(f.r):8;e._data.forEach((function(t,u){if(l.length!==u){var c=l[u].useSecondaryYScale&&r?r:i;e.props.optimizeLargeData&&1!==t.length?t.forEach((function(t,i){var r=t.xVal instanceof Date?t.xVal.getTime():t.xVal;if(e.state.nearestCircleToHighlight===r){var h="".concat(e._circleId,"_").concat(u*e._data[0].length+i);s=l[u].color;var p=l[u].legend;d.push(a.createElement("circle",(0,o.Cl)({key:h,id:h,cx:n(t.xVal),cy:c(t.values[1]),stroke:s,strokeWidth:3,fill:e._updateCircleFillColor(r,s,h),onMouseOut:e._onRectMouseOut,onMouseOver:e._onRectMouseMove,onClick:e._onDataPointClick.bind(e,l[u].data[i].onDataPointClick)},js(f),{r:e._getCircleRadius(r,v,h,p)})))}})):d.push(a.createElement("g",{key:"".concat(u,"-dots-").concat(e._uniqueIdForGraph),clipPath:"url(#clip)",role:"region","aria-label":"".concat(l[u].legend,", series ").concat(u+1," of ").concat(l.length," with ").concat(l[u].data.length," data points.")},t.map((function(t,i){var r="".concat(e._circleId,"_").concat(u*e._data[0].length+i),h=t.xVal instanceof Date?t.xVal.getTime():t.xVal;s=l[u].color;var d=l[u].legend;return a.createElement("circle",(0,o.Cl)({key:r,id:r,"data-is-focusable":e._legendHighlighted(l[u].legend)||e._noLegendHighlighted(),cx:n(t.xVal),cy:c(t.values[1]),stroke:s,strokeWidth:3,fill:e._updateCircleFillColor(h,s,r),onMouseOut:e._onRectMouseOut,onMouseOver:e._onRectMouseMove,onClick:e._onDataPointClick.bind(e,l[u].data[i].onDataPointClick),onFocus:function(){return e._handleFocus(u,i,r)},onBlur:e._handleBlur},js(f),{r:e._getCircleRadius(h,v,r,d),role:"img","aria-label":e._getAriaLabel(u,i)}))}))))}})),d.push(a.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:s,opacity:.5,visibility:e.state.displayOfLine},js(h))));var p=Bh(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 g=ns(u).call(n);try{document.getElementById(e._tooltipId)&&document.getElementById(e._tooltipId).remove()}catch(t){}var m={tooltipCls:p.tooltip,id:e._tooltipId,xAxis:g};g&&Cs(m)}return d},e._getCircleRadius=function(t,n,i,r){var o=e.state,a=o.isCircleClicked,u=o.nearestCircleToHighlight,s=o.activePoint;return e._noLegendHighlighted()||e._legendHighlighted(r)?a&&u===t?1:u===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,a;return a=void 0===t.color?Bf(n,0,null===(i=e.props.theme)||void 0===i?void 0:i.isInverted):Ff(t.color,null===(r=e.props.theme)||void 0===r?void 0:r.isInverted),(0,o.Cl)((0,o.Cl)({},t),{color:a})})):[]},e._handleFocus=function(t,n,i){var r=e.props.data.lineChartData[t].data[n],a=r.x,u=r.y,s=r.xAxisCalloutData,l=a instanceof Date?zs(a,e.props.useUTC):a,c=a instanceof Date?a.getTime():a,f=e._calloutPoints.find((function(t){return t.x===c}));f.values=f.values.filter((function(t){return t.y===u}));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){return e._noLegendHighlighted()?t: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. ")},sl(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:Eh.hide,isCircleClicked:!1,nearestCircleToHighlight:null,isShowCalloutPending:!1,activePoint:""},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=a.createRef(),e._legendsRef=a.createRef(),e}return(0,o.C6)(n,t),n.prototype.componentDidUpdate=function(t){var n,i,e;$s(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);this._containsSecondaryYAxis=!!this.props.secondaryYScaleOptions&&i.some((function(t){return t.useSecondaryYScale}));var e=this._createSet(i),r=e.colors,u=e.opacity,s=e.data,l=e.calloutPoints;this._calloutPoints=l;var c=Ms(i);this._colors=r,this._opacity=u,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 a.createElement(nh,(0,o.Cl)({},this.props,{chartTitle:this._getChartTitle(),points:i,chartType:Zu.AreaChart,calloutProps:d,legendBars:f,createYAxis:gs,isCalloutForStack:!0,xAxisType:c?Ku.DateAxis:Ku.NumericAxis,tickParams:h,maxOfYVal:s.maxOfYVal,getGraphData:this._getGraphData,getDomainNRangeValues:this._getDomainNRangeValues,createStringYAxis:ys,getmargins:this._getMargins,getMinMaxOfYAxis:Ds,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 a.createElement(a.Fragment,null,a.createElement("g",null,a.createElement("rect",{id:t._rectId,width:e,height:r,fill:"transparent",onMouseMove:t._onRectMouseMove,onMouseOut:t._onRectMouseOut,onMouseOver:t._onRectMouseMove})),a.createElement("g",null,t._chart))}}))}return a.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?zs(r.x,this.props.useUTC):r.x,a=r.xAxisCalloutData||o,u=e.legend,s=r.yAxisCalloutData||r.y;return(null===(i=r.callOutAccessibilityData)||void 0===i?void 0:i.ariaLabel)||"".concat(a,". ").concat(u,", ").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.prototype._shouldFillToZeroY=function(){return"tozeroy"===this.props.mode||this._containsSecondaryYAxis},n.defaultProps={useUTC:!0},n}(a.Component),_h=(0,r.I)(Ph,(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",color:t.theme.semanticColors.bodyText})}})),Hh=function(t,n){var i,e=t.color;return{arcRoot:{fill:e},arcRootFocussed:{fill:e,stroke:(null==n?void 0:n.palette.black)||Yt.bp.black,strokeWidth:2},arc:{outline:"none"},arcText:{fill:(null==n?void 0:n.semanticColors.bodyText)||Yt.bp.black,outline:"none",selectors:(i={},i[Yt.up]={fill:"CanvasText"},i)}}},Ih=function(t){function n(n){var i=t.call(this,n)||this;return i.updateChart=function(t){Rh(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 Rh(t),null},n.prototype.render=function(){var t,n=this,i=this.props.arc,e=(0,u.Z)()((function(t){return Hh(t,n.props.theme)}),(0,o.Cl)({},this.props));return a.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:wf()},n}(a.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=wf().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,u.Z)()((function(t){return Hh(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 a.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),a.createElement(Uf,{content:v,textProps:{x:c+(d>Math.PI?-10:10),y:f+(d>Math.PI/2&&d<3*Math.PI/2?10:-10),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:xs}))},n}(Ih);function Rh(t){t.arc.innerRadius(t.innerRadius),t.arc.outerRadius(t.outerRadius)}var zh,jh=function(t){function n(n){var i=t.call(this,n)||this;return i.arcGenerator=function(t,n){return a.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,u=n.chartTitle,s=n.theme,l=[];if(e&&!this.props.colors)for(var c=0;c<e.length;c++)l.push(Bf(c,0,null==s?void 0:s.isInverted));var f=this.props.colors,h=void 0===f?l:f;this.colors=Ra().range(h.map((function(t){return Ff(t)})));var d=i(e),v="translate(".concat(r/2,", ").concat(o/2,")");return a.createElement(Dl,{direction:Ks.domOrder},a.createElement("svg",{width:r,height:o,"aria-label":u},a.createElement("g",{className:"pie",transform:v},d.map((function(n,i){return t.arcGenerator(n,i)})))))},n.defaultProps={pie:uf().padAngle(.01).sort(null).value((function(t){return t.y}))},n}(a.Component),$h=(0,u.Z)(),Yh=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,u=this.props,s=u.theme,l=u.className,c=u.styles,f=u.culture;this._classNames=$h(c,{theme:s,width:i,height:e,className:l});var h=Math.min(i-80,e-32)/2;return this._isChartEmpty()?a.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):a.createElement("div",{className:this._classNames.root},this.props.chartTitle&&a.createElement("p",{className:this._classNames.chartTitle},this.props.chartTitle),a.createElement(jh,{culture:f,width:i+8,height:e+8,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}(a.Component),Xh=(0,r.I)(Yh,(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)((0,o.Cl)({textAlign:"center"},i.fonts.mediumPlus),{color:i.semanticColors.bodyText})]}}));!function(t){t.PartToWhole="part-to-whole",t.AbsoluteScale="absolute-scale"}(zh||(zh={}));var Gh,qh=(0,u.Z)(),Uh=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,a=t.barHeight;i._classNames=qh(r,{legendColor:i.state.color,theme:n,width:o,className:e,barHeight:a})},i._getLegendData=function(t,n,e){var r=[e.blueLight,e.blue,e.blueMid,e.red,e.black],u=[];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,a=t.color?t.color:r[Math.floor(4*Math.random()+1)];if(i.props.enableGradient&&(a=(null===(e=t.gradient)||void 0===e?void 0:e[0])||ol(n,0,null===(o=i.props.theme)||void 0===o?void 0:o.isInverted)[0]),!(u.filter((function(n){return n.title===t.legend&&n.color===a})).length>0)){var s={title:t.legend,color:a,action:function(){i._onClick(t.legend)},hoverAction:function(){i._handleChartMouseLeave(),i._onHover(t.legend)},onMouseOutAction:function(){i._onLeave()}};u.push(s)}})):o.forEach((function(t,n){var e,o,a=t.color?t.color:r[Math.floor(4*Math.random()+1)];if(i.props.enableGradient&&(a=(null===(e=t.gradient)||void 0===e?void 0:e[0])||ol(n,0,null===(o=i.props.theme)||void 0===o?void 0:o.isInverted)[0]),!(u.filter((function(n){return n.title===t.legend&&n.color===a})).length>0)){var s={title:t.legend,color:a,action:function(){i._onClick(t.legend)},hoverAction:function(){i._handleChartMouseLeave(),i._onHover(t.legend)},onMouseOutAction:function(){i._onLeave()}};u.push(s)}}))})),a.createElement(jc,(0,o.Cl)({legends:u,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=a.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 u=e.palette,s=this._getLegendData(i,this.props.hideRatio,u),l=this.state.isCalloutVisible;this._classNames=qh(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,u,t.props.hideRatio[i],t.props.hideDenominator[i],t.props.href,i);return a.createElement("div",{key:i,id:"_MSBC_bar-".concat(i)},e)}));return a.createElement("div",{className:this._classNames.root,onMouseLeave:this._handleChartMouseLeave},h,!this.props.hideLegend&&a.createElement("div",{className:this._classNames.legendContainer},s),a.createElement(zn,(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,Ps(this.state.callOutAccessibilityData,"text",!1)),a.createElement(a.Fragment,null,this.props.onRenderCalloutPerDataPoint?this.props.onRenderCalloutPerDataPoint(this.state.dataPointCalloutProps):a.createElement(Js.ChartHoverCard,{Legend:c,YValue:f,color:this.state.color,culture:r}))))}return a.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,u,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===zh.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===zh.AbsoluteScale){var w=0===b?0:(b-y)/b*100;w<1&&0!==w?w=1:w>99&&100!==w&&(w=99),x+=w}var C=0!==x?x/(100-d):1,M=0,k=0,A=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])||ol(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])||ol(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/C:k>99&&100!==k?k=99/C:k/=C,m.push(M);var y=f.props.styles,x=!(!f._legendHighlighted(t.legend)&&!f._noLegendHighlighted()),w=t.placeHolder?f.props.theme.semanticColors.bodyText:h;f._classNames=qh(y,{theme:f.props.theme,shouldHighlight:x,href:u,variant:f.props.variant,hideLabels:f.props.hideLabels});var A=g("MSBC_Gradient")+"_".concat(s,"_").concat(e);return a.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,w,t),onBlur:f._onBarLeave,role:"img","aria-label":f._getAriaLabel(t),onMouseOver:f._onBarHover.bind(f,v,w,t),onMouseMove:f._onBarHover.bind(f,v,w,t),onMouseLeave:f._onBarLeave,onClick:u?t.placeHolder?void 0:f._redirectToUrl.bind(f,u):t.onClick},f.props.enableGradient&&a.createElement("defs",null,a.createElement("linearGradient",{id:A},a.createElement("stop",{offset:"0",stopColor:h}),a.createElement("stop",{offset:"100%",stopColor:d}))),a.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(A,")"):h}))}));if(this.props.variant!==zh.AbsoluteScale||this.props.hideLabels)0===t.chartData.length&&A.push(a.createElement("g",{key:0,className:this._classNames.noData,onClick:this._redirectToUrl.bind(this,u)},a.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&&A.push(a.createElement("g",{key:"empty",className:this._classNames.noData,onClick:this._redirectToUrl.bind(this,u)},a.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 S=!1,V=0;this._noLegendHighlighted()?(S=!0,V=y):null===(c=t.chartData)||void 0===c||c.forEach((function(t){f._legendHighlighted(t.legend)&&(S=!0,V+=t.data?t.data:0)})),S&&A.push(a.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(V),role:"img"},Hs(V)))}var L=void 0!==e&&e,D=this.props.variant!==zh.AbsoluteScale&&!L&&2===t.chartData.length,N=this.props.variant!==zh.AbsoluteScale&&!L&&1===t.chartData.length,T=function(){return(0,jn.U)(t.chartData[0].data?t.chartData[0].data:0,v)};return a.createElement("div",{className:this._classNames.singleChartRoot},a.createElement(Dl,{direction:Ks.horizontal},a.createElement("div",{className:this._classNames.chartTitle},t.chartTitle&&a.createElement(Rl,{className:this._classNames.chartTitleLeft,content:t.chartTitle,accessibilityData:t.chartTitleAccessibilityData}),D&&a.createElement("div",(0,o.Cl)({},Ps(t.chartDataAccessibilityData,"text",!1)),a.createElement("span",{className:this._classNames.ratioNumerator},T()),!r&&a.createElement("span",{className:this._classNames.ratioDenominator}," / "+(0,jn.U)(y,v))),N&&a.createElement("div",(0,o.Cl)({className:this._classNames.ratioNumerator},Ps(t.chartDataAccessibilityData,"text",!1)),T()))),a.createElement(Dl,{direction:Ks.horizontal},a.createElement("div",{className:this._classNames.chartWrapper},a.createElement("svg",{ref:this.barChartSvgRef,className:this._classNames.chart,"aria-label":null==t?void 0:t.chartTitle},A))))},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?i.legend:i.placeHolder?"Remaining":"",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?i.legend:i.placeHolder?"Remaining":"",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}(a.Component),Zh=(0,r.I)(Uh,(function(t){var n=t.className,i=t.width,e=t.barHeight,r=t.shouldHighlight,a=t.theme,u=t.href,s=t.variant,l=t.hideLabels;return{root:[a.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)({},a.fonts.small),{display:"flex",justifyContent:"space-between"}),chartTitleLeft:{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",display:"block",color:a.palette.neutralPrimary,marginBottom:s===zh.AbsoluteScale?"4px":"5px"},singleChartRoot:{width:i||"100%",display:"flex",flexDirection:"column",marginBottom:s===zh.AbsoluteScale?"16px":"10px"},opacityChangeOnHover:{opacity:r?"":"0.1",cursor:u?"pointer":"default",selectors:{"&:focus":{stroke:a.palette.black,strokeWidth:"2px"}}},ratioNumerator:{fontSize:Yt.s.medium,fontWeight:Yt.BO.semibold,color:a.palette.neutralPrimary},ratioDenominator:{fontSize:Yt.s.medium,color:a.palette.neutralPrimary},placeHolderOnHover:{opacity:r?"":"0.1",cursor:"default",selectors:{"&:focus":{stroke:a.palette.black,strokeWidth:"2px"}}},legendContainer:{margin:"5px 0px 0px 4px"},noData:{cursor:u?"pointer":"default"},barLabel:{fontSize:Yt.s.small,fontWeight:Yt.BO.semibold,fill:a.palette.neutralPrimary},chartWrapper:{paddingRight:s!==zh.AbsoluteScale||l?0:40}}})),Kh=(0,u.Z)(),Jh=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,", "):t.placeHolder?"Remaining, ":"")+"".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=a.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,u=t.ignoreFixStyle,s=t.culture,l=this.props.theme.palette,c=u||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&&!u&&2===n.chartData.length,d=!1===r&&!u&&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&&(u||n.chartData.length>2);this._classNames=Kh(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 a.createElement("div",{className:this._classNames.root,onMouseLeave:this._handleChartMouseLeave},a.createElement(Dl,{direction:Ks.horizontal},a.createElement("div",{className:this._classNames.chartTitle},n.chartTitle&&a.createElement(Rl,{className:this._classNames.chartTitleLeft,content:n.chartTitle,accessibilityData:n.chartTitleAccessibilityData}),h&&a.createElement("div",(0,o.Cl)({},Ps(n.chartDataAccessibilityData,"text",!1)),a.createElement("span",{className:this._classNames.ratioNumerator},y()),!this.props.hideDenominator&&a.createElement("span",{className:this._classNames.ratioDenominator}," / "+(0,jn.U)(v,s))),d&&a.createElement("div",(0,o.Cl)({className:this._classNames.ratioNumerator},Ps(n.chartDataAccessibilityData,"text",!1)),y())),(i||e)&&a.createElement("div",{className:this._classNames.benchmarkContainer},i&&a.createElement("div",{className:this._classNames.benchmark,role:"text"}),e&&a.createElement("div",{className:this._classNames.target,role:"text"}))),a.createElement(Dl,{direction:Ks.horizontal},a.createElement("div",null,a.createElement("svg",{ref:this.barChartSvgRef,className:this._classNames.chart,"aria-label":null==n?void 0:n.chartTitle},a.createElement("g",null,f[0]),a.createElement(zn,(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,Ps(this.state.callOutAccessibilityData,"text",!1)),a.createElement(a.Fragment,null,this.props.onRenderCalloutPerDataPoint?this.props.onRenderCalloutPerDataPoint(this.state.dataPointCalloutProps):a.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&&a.createElement("div",{className:this._classNames.legendContainer},f[1]))}return a.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"})},n.prototype._adjustProps=function(){this._classNames=Kh(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 u,s=this,l=(null===(u=t.chartData)||void 0===u?void 0:u.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,u,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])||ol(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])||ol(i,0,null===(u=s.props.theme)||void 0===u?void 0:u.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 w=s.props.styles,C=!(!s._legendHighlighted(t.legend)&&!s._noLegendHighlighted()),M=t.placeHolder?s.props.theme.semanticColors.bodyText:l;s._classNames=Kh(w,{theme:s.props.theme,shouldHighlight:C,href:s.props.href});var k=g("SBC_Gradient")+"_".concat(i);return a.createElement("g",{key:i,className:s._classNames.opacityChangeOnHover,ref:function(t){s._refCallback(t,x.title)},"data-is-focusable":!s.props.hideTooltip&&C,onFocus:s._onBarFocus.bind(s,y,M,t),onBlur:s._onBarLeave,"aria-label":s._getAriaLabel(t),role:"img",onMouseOver:s._onBarHover.bind(s,y,M,t),onMouseMove:s._onBarHover.bind(s,y,M,t),onMouseLeave:s._onBarLeave,pointerEvents:"all",onClick:s.props.href?s._redirectToUrl.bind(s,s.props.href):t.onClick},s.props.enableGradient&&a.createElement("defs",null,a.createElement("linearGradient",{id:k},a.createElement("stop",{offset:"0",stopColor:l}),a.createElement("stop",{offset:"100%",stopColor:c}))),a.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(k,")"):l}))}));this._addLegend(h,e),this._addLegend(h,r);var w=a.createElement(jc,(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,w]},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?i.legend:i.placeHolder?"Remaining":"",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 a.createElement("g",{key:0,className:this._classNames.opacityChangeOnHover},a.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?i.legend:i.placeHolder?"Remaining":"",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}(a.Component),Qh=(0,r.I)(Jh,(function(t){var n,i,e=t.className,r=t.width,a=t.barHeight,u=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:a||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:u?"":"0.1",cursor:l?"pointer":"default",selectors:{"&:focus":{stroke:s.palette.black,strokeWidth:"2px"}}},ratioNumerator:{fontSize:Yt.s.medium,fontWeight:Yt.BO.semibold,color:s.palette.neutralPrimary},ratioDenominator:{fontSize:Yt.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[Yt.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[Yt.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)}}})),td=function(t,n,i){var e=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(!e||0===e[1])return 16;var r=e[0],o=e[1];return Math.floor(n*r*(1-i)/(o+r*(1-i)))};!function(t){t.show="visibility",t.hide="hidden"}(Gh||(Gh={}));var nd,id=(0,u.Z)(),ed=function(t){function n(n){var i,e=t.call(this,n)||this;return e._isRtl=(0,s.jI)(),e.toImage=function(t){var n,i;return Fc(null===(n=e._cartesianChartRef.current)||void 0===n?void 0:n.chartContainer,null===(i=e._legendsRef.current)||void 0===i?void 0:i.toSVG,e._isRtl,t)},e._getDomainNRangeValues=function(t,n,i,e,r,o,a,u,s){return o===Ku.NumericAxis?function(t,n,i,e,r){var o=vi(t,(function(t){return t.x})),a=di(t,(function(t){return t.x})),u=n.left,s=i-n.right;return e?{dStartValue:o,dEndValue:a,rStartValue:u,rEndValue:s}:{dStartValue:a,dEndValue:o,rStartValue:u,rEndValue:s}}(t,n,i,r):o===Ku.DateAxis?Ls(t,n,i,r,u,e):Vs(n,i,r)},e._createLine=function(t,n,i,r,o){var u;void 0===i&&(i=0),void 0===r&&(r=0);var s=e._xAxisType===Ku.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=Yf().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)})),w=!(!e._legendHighlighted(m)&&!e._noLegendHighlighted()),C=(null===(u=e.props.lineOptions)||void 0===u?void 0:u.lineBorderWidth)?Number.parseFloat(e.props.lineOptions.lineBorderWidth.toString()):0;C>0&&b.push(a.createElement("path",{key:g("_VBC_line_"),id:g("_VBC_line_"),opacity:w?1:.1,d:x(y),fill:"transparent",strokeLinecap:"square",strokeWidth:3+2*C,stroke:f.semanticColors.bodyBackground})),b.push(a.createElement("path",{key:g("_VBC_line_"),id:g("_VBC_line_"),opacity:w?1:.1,d:x(y),fill:"transparent",strokeLinecap:"square",strokeWidth:3,stroke:p}));var M=y.map((function(i,r){var u,f={refElement:null};return a.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===(u=i.point.lineData)||void 0===u?void 0:u.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 a.createElement(a.Fragment,null,b,M)},e._getCircleVisibilityAndRadius=function(t,n){var i=e.state.activeXdataPoint;return e._noLegendHighlighted()?{visibility:i===t?Gh.show:Gh.hide,radius:8}:t===i&&e._legendHighlighted(n)?{visibility:Gh.show,radius:8}:e._legendHighlighted(n)?{visibility:Gh.show,radius:.3}:{visibility:Gh.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,u=i.map((function(t,n){return a.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 a.createElement(a.Fragment,null,u)},e._renderContentForOnlyBars=function(t){var n=e.props.useSingleColor,i=void 0!==n&&n;return a.createElement(a.Fragment,null,a.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===Ku.NumericAxis?e._createNumericBars(i,r,o):e._xAxisType===Ku.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,a,u=[],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())&&u.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())&&u.push({legend:y[0].legend,y:y[0].y,color:h?f?ol(0,0)[0]:(null===(a=y[0].gradient)||void 0===a?void 0:a[0])||ol(b,0)[0]:x,data:y[0].yAxisCalloutData,yAxisCalloutData:y[0].yAxisCalloutData});var w=t.x instanceof Date?zs(t.x,e.props.useUTC):t.x.toString();return{YValueHover:u,hoverXValue:t.xAxisCalloutData||w}},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,a=r.hoverXValue;e._refArray.forEach((function(r,u){r.index===t.legend&&n===u&&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?zs(t.x,e.props.useUTC):t.x.toString()),yCalloutValue:t.yAxisCalloutData,dataPointCalloutProps:t,activeXdataPoint:t.x,YValueHover:o,hoverXValue:a,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,a=void 0===o?"":o,u=r.lineLegendColor,s=void 0===u?i.palette.yellow:u;e.setState({refSelected:n,isCalloutVisible:!0,calloutLegend:a,dataForHoverCard:t.lineData.y,color:s,xCalloutValue:t.xAxisCalloutData||(t.x instanceof Date?zs(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=We().domain([e.props.supportNegativeData?e._yMin:0,e._yMax]).range([0,t-e.margins.bottom-e.margins.top]);if(e._xAxisType===Ku.NumericAxis){var o=vi(e._points,(function(t){return t.x})),a=di(e._points,(function(t){return t.x}));i=We().domain(e._isRtl?[o,a]:[a,o]).range([e.margins.left+e._domainMargin,n-e.margins.right-e._domainMargin]),Rs(e.props.xAxisInnerPadding,e.props.xAxisPadding)||"histogram"===e.props.mode||i.nice()}else if(e._xAxisType===Ku.DateAxis){var u=di(e._points,(function(t){return t.x})),s=vi(e._points,(function(t){return t.x}));(i=e.props.useUTC?Fa():Ba()).domain([u,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=za().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,u=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,a,s=u?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])||ol(l,0,null==r?void 0:r.isInverted)[0],u&&(s=ol(0,0,null===(a=e.props.theme)||void 0===a?void 0:a.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 a.createElement(jc,(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),ref:e._legendsRef}))},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?zs(t.x,e.props.useUTC):t.x,a=t.legend,u=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,". ")+(a?"".concat(a,", "):"")+"".concat(u,".")+(void 0!==l?" ".concat(s,", ").concat(l,"."):"")},e._getDomainMargins=function(t){var n;e._domainMargin=8;var i={};null===(n=e.props.data)||void 0===n||n.forEach((function(t){t.x instanceof Date?i[t.x.getTime()]=t.x:i[t.x]=t.x}));var r=Object.values(i),a=t-(e.margins.left+8)-(e.margins.right+8),u=e._xAxisInnerPadding/(1-e._xAxisInnerPadding),s=r.length+(r.length-1)*u;if(e._xAxisType===Ku.StringAxis){if(Rs(e.props.xAxisOuterPadding,e.props.xAxisPadding))e._domainMargin=0;else if("auto"!==e.props.barWidth&&"histogram"!==e.props.mode)e._barWidth=Is(e.props.barWidth,e.props.maxBarWidth),a>=(d=s*e._barWidth)&&(e._domainMargin=8+(a-d)/2);else if(["plotly","histogram"].includes(e.props.mode)&&r.length>1){var l=a/s,c=(a-(d=s*Is(e.props.barWidth,e.props.maxBarWidth,l,e.props.mode)))/2,f=Number.POSITIVE_INFINITY;if(!e.props.hideTickOverlap){var h=ws(r)+20;f=(a-(d=(r.length-e._xAxisInnerPadding)*h))/2}e._domainMargin=8+Math.max(0,Math.min(c,f))}}else{if("histogram"===e.props.mode){var d=s*e.props.maxBarWidth;e._domainMargin+=Math.max(0,(a-d)/2)}e._barWidth=Is(e.props.barWidth,e.props.maxBarWidth,td(r,a-2*(e._domainMargin-8),e._xAxisInnerPadding),e.props.mode),e._domainMargin+=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":"")+". "},sl(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?Bs(e.props.data[0].x,!0):Ku.StringAxis,e._emptyChartId=g("_VBC_empty"),e._domainMargin=8,e._cartesianChartRef=a.createRef(),e._legendsRef=a.createRef(),e}return(0,o.C6)(n,t),n.prototype.componentDidUpdate=function(t){var n,i,e;$s(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(vi(this._points,(function(t){return t.y})),this.props.yMaxValue||0),this._yMin=Math.min(di(this._points,(function(t){return t.y})),this.props.yMinValue||0);var n=this._getLegendData(this._points,this.props.theme.palette);this._classNames=id(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),Ps(this.state.callOutAccessibilityData)),e={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return this._isChartEmpty()?a.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):a.createElement(nh,(0,o.Cl)({},this.props,{chartTitle:this._getChartTitle(),points:this._points,supportNegativeData:this.props.supportNegativeData,chartType:Zu.VerticalBarChart,xAxisType:this._xAxisType,createYAxis:gs,calloutProps:i,tickParams:e},this._isHavingLine&&(this._noLegendHighlighted()||this._getHighlightedLegend().length>1)&&{isCalloutForStack:!0},{legendBars:n,datasetForXAxisDomain:this._xAxisLabels,barwidth:this._barWidth,focusZoneDirection:Ks.horizontal,customizedCallout:this._getCustomizedCallout(),createStringYAxis:ys,getmargins:this._getMargins,getMinMaxOfYAxis:Ns,getGraphData:this._getGraphData,getDomainNRangeValues:this._getDomainNRangeValues,getAxisData:this._getAxisData,onChartMouseLeave:this._handleChartMouseLeave,getDomainMargins:this._getDomainMargins},this._xAxisType===Ku.StringAxis&&{xAxisInnerPadding:this._xAxisInnerPadding,xAxisOuterPadding:this._xAxisOuterPadding},{ref:this._cartesianChartRef,showRoundOffXTickValues:!Rs(this.props.xAxisInnerPadding,this.props.xAxisPadding)&&"histogram"!==this.props.mode,children:function(n){return a.createElement(a.Fragment,null,a.createElement("g",null,t._bars),t._isHavingLine&&a.createElement("g",null,t._createLine(n.xScale,n.yScalePrimary,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=Is(this.props.barWidth,this.props.maxBarWidth,void 0,this.props.mode);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=Ws(this.props.xAxisInnerPadding,this.props.xAxisPadding,"histogram"===this.props.mode?0:this._xAxisType===Ku.StringAxis?2/3:.5),this._xAxisOuterPadding=Ws(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 We().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?zs(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,u=this._getScales(t,n),s=u.xBarScale,l=u.yBarScale,c=this._createColors(),f=this._yMax<0?this._yMax:0,h=this._points.map((function(n,i){var r,u,h,d,v,p,m=!(!e._legendHighlighted(n.legend)&&!e._noLegendHighlighted());e._classNames=id(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),w=y;if(0===y||b&&!e.props.supportNegativeData)return a.createElement(a.Fragment,{key:n.x}," ");y<=x&&(w=x);var C=s(n.x)-e._barWidth/2,M=t-e.margins.bottom-(b?-1*w:w)-l(f),k=t-e.margins.bottom-l(f),A=n.color&&!o?n.color:c(n.y),S=A;e.props.enableGradient&&(A=(null===(r=n.gradient)||void 0===r?void 0:r[0])||ol(i,0,null===(u=e.props.theme)||void 0===u?void 0:u.isInverted)[0],S=(null===(h=n.gradient)||void 0===h?void 0:h[1])||ol(i,0,null===(d=e.props.theme)||void 0===d?void 0:d.isInverted)[1],o&&(A=ol(0,0,null===(v=e.props.theme)||void 0===v?void 0:v.isInverted)[0],S=ol(0,0,null===(p=e.props.theme)||void 0===p?void 0:p.isInverted)[1]),e._points[i].color=A);var V=g("VBC_Gradient")+"_".concat(i,"_").concat(A);return a.createElement("g",{key:"".concat(n.x,"_").concat(i)},e.props.enableGradient&&a.createElement("defs",null,a.createElement("linearGradient",{id:V,x1:"0%",y1:"100%",x2:"0%",y2:"0%"},a.createElement("stop",{offset:"0",stopColor:A}),a.createElement("stop",{offset:"100%",stopColor:S}))),a.createElement("rect",{id:g("_VBC_bar_"),x:C,className:e._classNames.opacityChangeOnHover,y:b?k:M,width:e._barWidth,"data-is-focusable":!e.props.hideTooltip&&m,height:w,ref:function(t){e._refCallback(t,n.legend)},onClick:n.onClick,onMouseOver:e._onBarHover.bind(e,n,A),"aria-label":e._getAriaLabel(n),role:"img",onMouseLeave:e._onBarLeave,onFocus:e._onBarFocus.bind(e,n,i,A),onBlur:e._onBarLeave,fill:e.props.enableGradient?"url(#".concat(V,")"):A,rx:e.props.roundCorners?3:0}),e._renderBarLabel(C,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=ns(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&&Cs(v)}return h},n.prototype._createStringBars=function(t,n,i){var e=this,r=this.props.useSingleColor,o=void 0!==r&&r,u=this._getScales(t,n),s=u.xBarScale,l=u.yBarScale,c=this._createColors(),f=this._yMax<0?this._yMax:0,h=this._points.map((function(n,i){var r,u,h,d,v,p,m=e._legendHighlighted(n.legend)||e._noLegendHighlighted();e._classNames=id(e.props.styles,{theme:e.props.theme,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),w=y;if(0===y||b&&!e.props.supportNegativeData)return a.createElement(a.Fragment,{key:n.x}," ");y<=x&&(w=x);var C=s(n.x),M=t-e.margins.bottom-(b?-1*w:w)-l(f),k=t-e.margins.bottom-l(f);e._barWidth=Is(e.props.barWidth,e.props.maxBarWidth,s.bandwidth(),e.props.mode);var A=n.color?n.color:c(n.y),S=A;e.props.enableGradient&&(A=(null===(r=n.gradient)||void 0===r?void 0:r[0])||ol(i,0,null===(u=e.props.theme)||void 0===u?void 0:u.isInverted)[0],S=(null===(h=n.gradient)||void 0===h?void 0:h[1])||ol(i,0,null===(d=e.props.theme)||void 0===d?void 0:d.isInverted)[1],o&&(A=ol(0,0,null===(v=e.props.theme)||void 0===v?void 0:v.isInverted)[0],S=ol(0,0,null===(p=e.props.theme)||void 0===p?void 0:p.isInverted)[1]),e._points[i].color=A);var V=g("VBC_Gradient")+"_".concat(i,"_").concat(A);return a.createElement("g",{key:n.x instanceof Date?"".concat(n.x.getTime(),"_").concat(i):"".concat(n.x,"_").concat(i),transform:"translate(".concat(.5*(s.bandwidth()-e._barWidth),", 0)")},e.props.enableGradient&&a.createElement("defs",null,a.createElement("linearGradient",{id:V,x1:"0%",y1:"100%",x2:"0%",y2:"0%"},a.createElement("stop",{offset:"0",stopColor:A}),a.createElement("stop",{offset:"100%",stopColor:S}))),a.createElement("rect",{id:g("_VBC_bar_"),x:C,className:e._classNames.opacityChangeOnHover,y:b?k:M,width:e._barWidth,height:w,"aria-label":e._getAriaLabel(n),role:"img",ref:function(t){e._refCallback(t,n.legend)},onClick:n.onClick,onMouseOver:e._onBarHover.bind(e,n,A),onMouseLeave:e._onBarLeave,onBlur:e._onBarLeave,"data-is-focusable":!e.props.hideTooltip&&m,onFocus:e._onBarFocus.bind(e,n,i,A),fill:e.props.enableGradient?"url(#".concat(V,")"):A,rx:e.props.roundCorners?3:0}),e._renderBarLabel(C,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=ns(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&&Cs(v)}return h},n.prototype._createDateBars=function(t,n,i){var e=this,r=this.props.useSingleColor,o=void 0!==r&&r,u=this._getScales(t,n),s=u.xBarScale,l=u.yBarScale,c=this._createColors(),f=this._yMax<0?this._yMax:0,h=this._points.map((function(n,i){var r,u,h,d,v,p,m=!(!e._legendHighlighted(n.legend)&&!e._noLegendHighlighted());e._classNames=id(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),w=y;if(0===y||b&&!e.props.supportNegativeData)return a.createElement(a.Fragment,{key:n.x}," ");y<=x&&(w=x);var C=s(n.x)-e._barWidth/2,M=t-e.margins.bottom-(b?-1*w:w)-l(f),k=t-e.margins.bottom-l(f),A=n.color&&!o?n.color:c(n.y),S=A;e.props.enableGradient&&(A=(null===(r=n.gradient)||void 0===r?void 0:r[0])||ol(i,0,null===(u=e.props.theme)||void 0===u?void 0:u.isInverted)[0],S=(null===(h=n.gradient)||void 0===h?void 0:h[1])||ol(i,0,null===(d=e.props.theme)||void 0===d?void 0:d.isInverted)[1],o&&(A=ol(0,0,null===(v=e.props.theme)||void 0===v?void 0:v.isInverted)[0],S=ol(0,0,null===(p=e.props.theme)||void 0===p?void 0:p.isInverted)[1]),e._points[i].color=A);var V=g("VBC_Gradient")+"_".concat(i,"_").concat(A);return a.createElement("g",{key:n.x instanceof Date?"".concat(n.x.getTime(),"_").concat(i):"".concat(n.x,"_").concat(i)},e.props.enableGradient&&a.createElement("defs",null,a.createElement("linearGradient",{id:V,x1:"0%",y1:"100%",x2:"0%",y2:"0%"},a.createElement("stop",{offset:"0",stopColor:A}),a.createElement("stop",{offset:"100%",stopColor:S}))),a.createElement("rect",{id:g("_VBC_bar_"),x:C,className:e._classNames.opacityChangeOnHover,y:b?k:M,width:e._barWidth,"data-is-focusable":!e.props.hideTooltip&&m,height:w,ref:function(t){e._refCallback(t,n.legend)},onClick:n.onClick,onMouseOver:e._onBarHover.bind(e,n,A),"aria-label":e._getAriaLabel(n),role:"img",onMouseLeave:e._onBarLeave,onFocus:e._onBarFocus.bind(e,n,i,A),onBlur:e._onBarLeave,fill:e.props.enableGradient?"url(#".concat(V,")"):A,rx:e.props.roundCorners?3:0}),e._renderBarLabel(C,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=ns(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&&Cs(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:a.createElement("text",{x:t+this._barWidth/2,y:r?n+12:n-6,textAnchor:"middle",className:this._classNames.barLabel,"aria-hidden":!0},Hs(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}(a.Component),rd=(0,r.I)(ed,(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",color:i.semanticColors.bodyText}),barLabel:{fontSize:Yt.s.small,fontWeight:Yt.BO.semibold,fill:i.palette.neutralPrimary}}})),od=(0,u.Z)();!function(t){t.show="visibility",t.hide="hidden"}(nd||(nd={}));var ad=function(t){function n(n){var i,e=t.call(this,n)||this;return e._isRtl=(0,s.jI)(),e.Y_ORIGIN=0,e.toImage=function(t){var n,i;return Fc(null===(n=e._cartesianChartRef.current)||void 0===n?void 0:n.chartContainer,null===(i=e._legendsRef.current)||void 0===i?void 0:i.toSVG,e._isRtl,t)},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,a,u,s){return o===Ku.NumericAxis?function(t,n,i,e,r){var o=di(t,(function(t){return t.x})),a=vi(t,(function(t){return t.x})),u=n.left,s=i-n.right;return e?{dStartValue:a,dEndValue:o,rStartValue:u,rEndValue:s}:{dStartValue:o,dEndValue:a,rStartValue:u,rEndValue:s}}(t,n,i,r):o===Ku.DateAxis?Ls(t,n,i,r,u,e):Vs(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,u){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!==Ku.StringAxis?0:t.bandwidth()/2;return Object.keys(l).forEach((function(i,r){for(var s,h,g,m,y,b=e._isLegendHighlighted(i)||e._noLegendHighlighted(),x=1;x<l[i].length;x++){var w=t(l[i][x-1].xItem.xAxisPoint),C=l[i][x-1].useSecondaryYScale&&l[i][x].useSecondaryYScale&&u,M=C?u(l[i][x-1].y):n(l[i][x-1].y),k=t(l[i][x].xItem.xAxisPoint),A=C?u(l[i][x].y):n(l[i][x].y);v>0&&f.push(a.createElement("line",{key:"".concat(r,"-").concat(x,"-BorderLine"),x1:w,y1:M,x2:k,y2:A,opacity:b?1:.1,strokeWidth:3+2*v,fill:"transparent",strokeLinecap:"round",stroke:d.semanticColors.bodyBackground,transform:"translate(".concat(p,", 0)")})),c.push(a.createElement("line",(0,o.Cl)({key:"".concat(r,"-").concat(x,"-line"),x1:w,y1:M,x2:k,y2:A,opacity:b?1:.1,strokeWidth:null!==(h=null===(s=l[i][0].lineOptions)||void 0===s?void 0:s.strokeWidth)&&void 0!==h?h:3,strokeLinecap:null!==(m=null===(g=l[i][0].lineOptions)||void 0===g?void 0:g.strokeLinecap)&&void 0!==m?m:"round",strokeDasharray:null===(y=l[i][0].lineOptions)||void 0===y?void 0:y.strokeDasharray,stroke:l[i][x].color,transform:"translate(".concat(p,", 0)")},e._isLegendHighlighted(i)&&{onMouseOver:e._lineHover.bind(e,l[i][x-1]),onMouseLeave:e._lineHoverOut})))}})),Object.keys(l).forEach((function(i,r){l[i].forEach((function(s,l){var c={refElement:null};h.push(a.createElement("circle",(0,o.Cl)({key:"".concat(r,"-").concat(l,"-dot"),cx:t(s.xItem.xAxisPoint),cy:s.useSecondaryYScale&&u?u(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})))}))})),a.createElement(a.Fragment,null,f,c,h)},e._getCircleVisibilityAndRadius=function(t,n){var i=e.state.activeXAxisDataPoint;return e._noLegendHighlighted()?{visibility:i===t?nd.show:nd.hide,radius:8}:t===i&&e._isLegendHighlighted(n)?{visibility:nd.show,radius:8}:e._isLegendHighlighted(n)?{visibility:nd.show,radius:.3}:{visibility:nd.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 u=e.props,s=u.barCornerRadius,l=void 0===s?0:s,c=u.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===Ku.StringAxis&&(e._barWidth=Is(e.props.barWidth,e.props.maxBarWidth,t.bandwidth()));var v=e._points.map((function(r,u){var s=t((e._xAxisType===Ku.NumericAxis||(e._xAxisType,Ku.DateAxis),r.xAxisPoint)),c=e._xAxisType!==Ku.StringAxis?-e._barWidth/2:(t.bandwidth()-e._barWidth)/2,h=0,v=r.chartData.filter((function(t){return 0!==t.data}));if(v.length){var p=e._getBarGapAndScale(v,n),m=p.gapHeight,y=p.heightValueScale,b=p.adjustedTotalHeight;if(!(y<0)){var x=i-e.margins.bottom-n(e.Y_ORIGIN),w=x,C=x,M=0,k=0,A=v.map((function(t,n){var i,p,x,A,S=t.color?t.color:e._colors[n],V=S;e.props.enableGradient&&(S=(null===(i=t.gradient)||void 0===i?void 0:i[0])||ol(n,0,null===(p=e.props.theme)||void 0===p?void 0:p.isInverted)[0],V=(null===(x=t.gradient)||void 0===x?void 0:x[1])||ol(n,0,null===(A=e.props.theme)||void 0===A?void 0:A.isInverted)[1],r.chartData[n].color=S);var L={},D=!(!e._isLegendHighlighted(t.legend)&&!e._noLegendHighlighted());e._classNames=od(e.props.styles,{theme:e.props.theme,shouldHighlight:D,href:e.props.href});var N=!d&&{"data-is-focusable":!e.props.hideTooltip&&D,"aria-label":e._getAriaLabel(r,t),onMouseOver:e._onRectHover.bind(e,r.xAxisPoint,t,S),onMouseMove:e._onRectHover.bind(e,r.xAxisPoint,t,S),onMouseLeave:e._handleMouseOut,onFocus:e._onRectFocus.bind(e,t,r.xAxisPoint,S,L),onBlur:e._handleMouseOut,onClick:e._onClick.bind(e,t),role:"img"},T=Math.abs(y*t.data),O=Math.max(y*b/100,f);T<O&&(T=O);var E=n?m:0;t.data>=e.Y_ORIGIN?M=w-=T+E:C=(M=C+E)+T,h+=t.data,k=n===v.length-1?T:0;var B=g("VSBC_Gradient")+"_".concat(u,"_").concat(n);return l&&T>l&&n===v.length-1?a.createElement(a.Fragment,{key:n+u+"".concat(d)},e.props.enableGradient&&a.createElement("defs",null,a.createElement("linearGradient",{id:B,x1:"0%",y1:"100%",x2:"0%",y2:"0%"},a.createElement("stop",{offset:"0",stopColor:S}),a.createElement("stop",{offset:"100%",stopColor:V}))),a.createElement("path",(0,o.Cl)({className:e._classNames.opacityChangeOnHover,d:"\n M ".concat(s," ").concat(M+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(T-l,"\n h ").concat(-e._barWidth,"\n z\n "),fill:e.props.enableGradient?"url(#".concat(B,")"):S,rx:e.props.roundCorners?3:0,ref:function(t){return L.refElement=t},transform:"translate(".concat(c,", 0)")},N))):T<0?a.createElement(a.Fragment,{key:n+u}," "):a.createElement(a.Fragment,{key:n+u},e.props.enableGradient&&a.createElement("defs",null,a.createElement("linearGradient",{id:B,x1:"0%",y1:"100%",x2:"0%",y2:"0%"},a.createElement("stop",{offset:"0",stopColor:S}),a.createElement("stop",{offset:"100%",stopColor:V}))),a.createElement("rect",(0,o.Cl)({className:e._classNames.opacityChangeOnHover,x:s,y:M,width:e._barWidth,height:T,fill:e.props.enableGradient?"url(#".concat(B,")"):S,rx:e.props.roundCorners?3:0,ref:function(t){return L.refElement=t}},N,{transform:"translate(".concat(c,", 0)")})))})),S={},V=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,S),onBlur:e._handleMouseOut,onClick:e._onClick.bind(e,r),role:"img"},L=!1,D=0;return e.props.hideLabels||(e._noLegendHighlighted()?(L=!0,D=h):v.forEach((function(t){e._isLegendHighlighted(t.legend)&&(L=!0,D+=t.data)}))),a.createElement("g",{key:u+"".concat(d)},a.createElement("g",(0,o.Cl)({id:"".concat(u,"-singleBar"),ref:function(t){return S.refElement=t}},V),A),!e.props.hideLabels&&e._barWidth>=16&&L&&a.createElement("text",{x:s+e._barWidth/2,y:D>=e.Y_ORIGIN?M-6:M+k+12,textAnchor:"middle",className:e._classNames.barLabel,"aria-label":"Total: ".concat(D),role:"img",transform:"translate(".concat(c,", 0)")},Hs(D)))}}}));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=ns(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&&Cs(m)}return v.filter((function(t){return!!t}))},e._getScales=function(t,n){var i=[Math.min(e.Y_ORIGIN,e._yMin),Math.max(e.Y_ORIGIN,e._yMax)],r=We().domain(i).range([0,t-e.margins.bottom-e.margins.top]);if(e._xAxisType===Ku.NumericAxis){var o=vi(e._dataset,(function(t){return t.x})),a=di(e._dataset,(function(t){return t.x})),u=We().domain(e._isRtl?[o,a]:[a,o]).range([e.margins.left+e._domainMargin,n-e.margins.right-e._domainMargin]);return Rs(e.props.xAxisInnerPadding,e.props.xAxisPadding)||u.nice(),{xBarScale:u,yBarScale:r}}if(e._xAxisType===Ku.DateAxis){var s=di(e._dataset,(function(t){return t.x})),l=vi(e._dataset,(function(t){return t.x})),c=e.props.useUTC?Fa():Ba();return c.domain(e._isRtl?[l,s]:[s,l]).range([e.margins.left+e._domainMargin,n-e.margins.right-e._domainMargin]),{xBarScale:c,yBarScale:r}}return{xBarScale:za().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 a=e._getScales(i,r),u=a.xBarScale,s=a.yBarScale;return e._bars=e._createBar(u,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||e.Y_ORIGIN),e._yMin=Math.min(n[0],e.props.yMinValue||e.Y_ORIGIN)}},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?zs(t.xAxisPoint):t.xAxisPoint),a=t.chartData.map((function(t){var n=t.legend,i=t.yAxisCalloutData||t.data;return"".concat(n,", ").concat(i,".")})).join(" "),u=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(a)+(u?" ".concat(u):"")}var s=t.xAxisCalloutData||n.xAxisCalloutData||(t.xAxisPoint instanceof Date?zs(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===Ku.StringAxis){if(Rs(e.props.xAxisOuterPadding,e.props.xAxisPadding))e._domainMargin=0;else if("auto"!==e.props.barWidth)e._barWidth=Is(e.props.barWidth,e.props.maxBarWidth),i>=(a=(e._xAxisLabels.length+(e._xAxisLabels.length-1)*r)*e._barWidth)&&(e._domainMargin=8+(i-a)/2);else if("plotly"===e.props.mode&&e._xAxisLabels.length>1){var a,u=i/(e._xAxisLabels.length+(e._xAxisLabels.length-1)*r),s=Is(e.props.barWidth,e.props.maxBarWidth,u),l=(i-(a=(e._xAxisLabels.length+(e._xAxisLabels.length-1)*r)*s))/2,c=Number.POSITIVE_INFINITY;if(!e.props.hideTickOverlap){var f=ws(e._xAxisLabels)+20;c=(i-(a=(e._xAxisLabels.length-e._xAxisInnerPadding)*f))/2}e._domainMargin=8+Math.max(0,Math.min(l,c))}}else{var h=(null===(n=e.props.data)||void 0===n?void 0:n.map((function(t){return t.xAxisPoint})))||[];e._barWidth=Is(e.props.barWidth,e.props.maxBarWidth,td(h,i,e._xAxisInnerPadding)),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"):"")+". "},e._getMinMaxOfYAxis=function(t,n,i){if(!i)return function(t){var n=vi(t,(function(t){return t.y}));return{startValue:di(t,(function(t){return t.y})),endValue:n}}(t);var r=[];return e.props.data.forEach((function(t){var n;null===(n=t.lineData)||void 0===n||n.forEach((function(t){t.useSecondaryYScale&&r.push(t.y)}))})),{startValue:di(r),endValue:vi(r)}},sl(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:""},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=a.createRef(),e._legendsRef=a.createRef(),e}return(0,o.C6)(n,t),n.prototype.componentDidUpdate=function(t){var n,i,e;$s(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 u=this._getLegendData(this._points,this.props.theme.palette,this._createLegendsForLine(this.props.data));this._classNames=od(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),Ps(this.state.callOutAccessibilityData)),l={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return a.createElement(nh,(0,o.Cl)({},this.props,{chartTitle:this._getChartTitle(),points:this._dataset,chartType:Zu.VerticalStackedBarChart,xAxisType:this._xAxisType,calloutProps:s,createYAxis:gs,tickParams:l,legendBars:u,getMinMaxOfYAxis:this._getMinMaxOfYAxis,datasetForXAxisDomain:this._xAxisLabels,isCalloutForStack:i,getDomainNRangeValues:this._getDomainNRangeValues,createStringYAxis:ys,barwidth:this._barWidth,focusZoneDirection:r||n?Ks.horizontal:Ks.vertical,getmargins:this._getMargins,getGraphData:this._getGraphData,getAxisData:this._getAxisData,customizedCallout:this._getCustomizedCallout(),onChartMouseLeave:this._handleChartMouseLeave,getDomainMargins:this._getDomainMargins},this._xAxisType===Ku.StringAxis&&{xAxisInnerPadding:this._xAxisInnerPadding,xAxisOuterPadding:this._xAxisOuterPadding},{ref:this._cartesianChartRef,showRoundOffXTickValues:!Rs(this.props.xAxisInnerPadding,this.props.xAxisPadding),children:function(i){return a.createElement(a.Fragment,null,a.createElement("g",null,t._bars),a.createElement("g",null,n&&t._createLines(i.xScale,i.yScalePrimary,i.containerHeight,i.containerWidth,i.yScaleSecondary)))}}))}return a.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=Is(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=Bs(this.props.data[0].xAxisPoint,!0),this._lineObject=this._getFormattedLineData(this.props.data),this._xAxisInnerPadding=Ws(this.props.xAxisInnerPadding,this.props.xAxisPadding,this._xAxisType===Ku.StringAxis?2/3:.5),this._xAxisOuterPadding=Ws(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?a.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 a.createElement(a.Fragment,null);var r=[n.blueLight,n.blue,n.blueMid,n.red,n.black],u=[],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,a=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);a=(null===(o=n.gradient)||void 0===o?void 0:o[0])||ol(s,0,null==f?void 0:f.isInverted)[0]}if(!(u.filter((function(t){return t.title===n.legend&&t.color===a})).length>0)){var l={title:n.legend,color:a,hoverAction:c?function(){e._handleChartMouseLeave(),e._onLegendHover(n.legend)}:void 0,onMouseOutAction:c?function(){return e._onLegendLeave()}:void 0};u.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(u);return a.createElement(jc,(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),ref:this._legendsRef}))},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,a=this;this._noLegendHighlighted()||(t=(0,o.Cl)((0,o.Cl)({},t),{chartData:t.chartData.filter((function(t){return a._isLegendHighlighted(t.legend)})),lineData:null===(i=t.lineData)||void 0===i?void 0:i.filter((function(t){return a._isLegendHighlighted(t.legend)}))}));var u=t.lineData,s=void 0!==u&&u.length>0;s&&u.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)([],u.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?zs(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+Math.abs(n.data)}),0),a=null!=i?i:Math.abs(n(o)-n(this.Y_ORIGIN)),u=0;t.forEach((function(t){var n=Math.abs(t.data)/o*100;n<1&&0!==n&&(n=1),u+=n}));var s=0!==u?u/100:1,l=r&&t.length-1,c=l&&Math.max(1,Math.min(r,.2*a/l));return{gapHeight:c,heightValueScale:(a-c*l)/(o*s),adjustedTotalHeight:u}},n.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.length>0&&this.props.data.some((function(t){return t.chartData.length>0||t.lineData&&t.lineData.length>0})))},n.defaultProps={maxBarWidth:24,useUTC:!0},n}(a.Component),ud=(0,r.I)(ad,(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",color:e.semanticColors.bodyText}),barLabel:{fontSize:Yt.s.small,fontWeight:Yt.BO.semibold,fill:e.palette.neutralPrimary}}})),sd=(0,u.Z)(),ld=.1/.9,cd=function(t){function n(n){var i,e=t.call(this,n)||this;return e._isRtl=(0,s.jI)(),e._legendColorMap={},e.toImage=function(t){var n,i;return Fc(null===(n=e._cartesianChartRef.current)||void 0===n?void 0:n.chartContainer,null===(i=e._legendsRef.current)||void 0===i?void 0:i.toSVG,e._isRtl,t)},e._getMinMaxOfYAxis=function(t,n,i){var e=[];return t.forEach((function(t){t.groupSeries.forEach((function(t){!i==!t.useSecondaryYScale&&e.push(t.data)}))})),{startValue:di(e),endValue:vi(e)}},e._getDomainNRangeValues=function(t,n,i,e,r,o,a,u,s){return o===Ku.NumericAxis||o===Ku.DateAxis?{dStartValue:0,dEndValue:0,rStartValue:0,rEndValue:0}:Vs(n,i,r)},e._getGraphData=function(t,n,i,r,o,a,u){var s=e._createX0Scale(r);e._barWidth=Is(e.props.barwidth,e.props.maxBarWidth,s.bandwidth()/(e._legends.length+(e._legends.length-1)*ld)),e._groupWidth=(e._legends.length+(e._legends.length-1)*ld)*e._barWidth;var l=e._createX1Scale(),c=[];e._datasetForBars.forEach((function(t){c.push(e._buildGraph(t,s,l,n,u,i,o))})),e._groupedVerticalBarGraph=c},e._getMargins=function(t){return e.margins=t},e._createDataSetOfGVBC=function(t){var n=new Set,i=t.map((function(t){return t.name}));t.forEach((function(t){t.series.forEach((function(t){n.add(t.legend)}))}));var r=e._createDataset(t);return{legends:Array.from(n),xAxisLabels:i,datasetForBars:r}},e._getCustomizedCallout=function(){return e.props.onRenderCalloutPerDataPoint?e.props.onRenderCalloutPerDataPoint(e.state.dataPointCalloutProps):null},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.setState({refSelected:i.currentTarget,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,u,s){var l=[],c=[];if(e._legends.forEach((function(n,u){var s=t[n];if(s){var f=s[0].useSecondaryYScale&&o?o:r,h=i(n)+(i.bandwidth()-e._barWidth)/2,d=e._legendHighlighted(n)||e._noLegendHighlighted(),v=d?"":"0.1",p=g("GVBC_Gradient")+"_".concat(t.indexNum,"_").concat(u),m=s[0].color,y=m;e.props.enableGradient&&(m=s[0].gradient[0],y=s[0].gradient[1],l.push(a.createElement("linearGradient",{key:p,id:p,x1:"0%",y1:"100%",x2:"0%",y2:"0%"},a.createElement("stop",{offset:"0",stopColor:m}),a.createElement("stop",{offset:"100%",stopColor:y}))));var b=f(0),x=0;s.forEach((function(n,i){if(n.data){var r=.5*(i<s.length-1?1:0),o=.5*(i>0?1:0),c=Math.max(f(0)-f(n.data)-r-o,1);l.push(a.createElement("rect",{key:"".concat(t.indexNum,"-").concat(u,"-").concat(i),className:e._classNames.opacityChangeOnHover,height:c,width:e._barWidth,x:h,y:b-(c+o),"data-is-focusable":!e.props.hideTooltip&&d,opacity:v,fill:e.props.enableGradient?"url(#".concat(p,")"):m,rx:e.props.roundCorners?3:0,onMouseOver:e._onBarHover.bind(e,n,t),onMouseMove:e._onBarHover.bind(e,n,t),onMouseOut:e._onBarLeave,onFocus:e._onBarFocus.bind(e,n,t),onBlur:e._onBarLeave,onClick:e.props.href?e._redirectToUrl.bind(e,e.props.href):n.onClick,"aria-label":e._getAriaLabel(n,t.xAxisPoint),role:"img"})),b-=c+r+o,x+=n.data}})),x&&!e.props.hideLabels&&e._barWidth>=16&&d&&c.push(a.createElement("text",{key:"".concat(t.indexNum,"-").concat(u),x:h+e._barWidth/2,y:b-6,textAnchor:"middle",className:e._classNames.barLabel,"aria-hidden":!0},Hs(x)))}})),!e.props.wrapXAxisLables&&e.props.showXAxisLablesTooltip){var f=ns(s).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&&Cs(h)}return a.createElement("g",{key:t.indexNum,transform:"translate(".concat(n(t.xAxisPoint)+(n.bandwidth()-e._groupWidth)/2,", 0)")},l,c)},e._createDataset=function(t){var n=[];return t.forEach((function(t,i){var e={},r={};t.series.forEach((function(t){e[t.legend]?(e[t.legend].push((0,o.Cl)({},t)),r[t.legend].data+=t.data):(e[t.legend]=[(0,o.Cl)({},t)],r[t.legend]=(0,o.Cl)({},t))})),e.xAxisPoint=t.name,e.indexNum=i,e.groupSeries=Object.values(r),e.stackCallOutAccessibilityData=t.stackCallOutAccessibilityData,n.push(e)})),n},e._createX0Scale=function(t){return za().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 za().domain(e._legends).range(e._isRtl?[e._groupWidth,0]:[0,e._groupWidth]).paddingInner(.1)},e._closeCallout=function(){e.setState({isCalloutVisible:!1})},e._getLegendData=function(){var t=[];return e._legends.forEach((function(n){var i={title:n,color:e._legendColorMap[n][0],hoverAction:function(){e._handleChartMouseLeave(),e._onLegendHover(n)},onMouseOutAction:function(){e._onLegendLeave()}};t.push(i)})),a.createElement(jc,(0,o.Cl)({legends:t,overflowProps:e.props.legendsOverflowProps,enabledWrapLines:e.props.enabledLegendsWrapLines,focusZonePropsInHoverCard:e.props.focusZonePropsForLegendsInHoverCard},e.props.legendProps,{onChange:e._onLegendSelectionChange.bind(e),ref:e._legendsRef}))},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===Ku.StringAxis)if(Rs(e.props.xAxisOuterPadding))e._domainMargin=0;else if("auto"!==e.props.barwidth){e._barWidth=Is(e.props.barwidth,e.props.maxBarWidth);var r=(e._legends.length+(e._legends.length-1)*ld)*e._barWidth;n>=(a=(e._xAxisLabels.length+(e._xAxisLabels.length-1)*i)*r)&&(e._domainMargin=8+(n-a)/2)}else if("plotly"===e.props.mode&&e._xAxisLabels.length>1){var a,u=n/(e._xAxisLabels.length+(e._xAxisLabels.length-1)*i)/(e._legends.length+(e._legends.length-1)*ld),s=Is(e.props.barwidth,e.props.maxBarWidth,u),l=(r=(e._legends.length+(e._legends.length-1)*ld)*s,(n-(a=(e._xAxisLabels.length+(e._xAxisLabels.length-1)*i)*r))/2),c=Number.POSITIVE_INFINITY;if(!e.props.hideTickOverlap){var f=ws(e._xAxisLabels)+20;c=(n-(a=(e._xAxisLabels.length-e._xAxisInnerPadding)*f))/2}e._domainMargin=8+Math.max(0,Math.min(l,c))}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._legends.length," bars each. ")},e._addDefaultColors=function(t){var n;e._legendColorMap={};var i=0;return null!==(n=null==t?void 0:t.map((function(t){var n,r;return(0,o.Cl)((0,o.Cl)({},t),{series:null!==(r=null===(n=t.series)||void 0===n?void 0:n.map((function(t){var n,r,a,u;if(!e._legendColorMap[t.legend]){var s=t.color?t.color:Bf(i,0,null===(n=e.props.theme)||void 0===n?void 0:n.isInverted),l=s;if(e.props.enableGradient){var c=ol(i,0,null===(r=e.props.theme)||void 0===r?void 0:r.isInverted);s=(null===(a=t.gradient)||void 0===a?void 0:a[0])||c[0],l=(null===(u=t.gradient)||void 0===u?void 0:u[1])||c[1]}e._legendColorMap[t.legend]=[s,l],i+=1}return(0,o.Cl)((0,o.Cl)((0,o.Cl)({},t),{color:e._legendColorMap[t.legend][0]}),e.props.enableGradient?{gradient:e._legendColorMap[t.legend]}:{})})))&&void 0!==r?r:[]})})))&&void 0!==n?n:[]},sl(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:""},e._calloutId=g("callout"),e._tooltipId=g("GVBCTooltipId_"),e._emptyChartId=g("_GVBC_empty"),e._domainMargin=8,e._cartesianChartRef=a.createRef(),e._legendsRef=a.createRef(),e}return(0,o.C6)(n,t),n.prototype.componentDidUpdate=function(t){var n,i,e;$s(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._addDefaultColors(this.props.data),i=this._createSet(n),e=i.legends,r=i.xAxisLabels,u=i.datasetForBars;this._legends=e,this._xAxisLabels=r,this._datasetForBars=u,this._xAxisType=Bs(n[0].name,!0);var s=this._getLegendData();this._adjustProps();var l=this._getMinMaxOfYAxis(this._datasetForBars).endValue;this._yMax=Math.max(l,this.props.yMaxValue||0),this._classNames=sd(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}),Ps(this.state.callOutAccessibilityData,"text",!1)),f={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return this._isChartEmpty()?a.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):a.createElement(nh,(0,o.Cl)({},this.props,{chartTitle:this._getChartTitle(),points:this._datasetForBars,chartType:Zu.GroupedVerticalBarChart,calloutProps:c,legendBars:s,xAxisType:this._xAxisType,createYAxis:gs,datasetForXAxisDomain:this._xAxisLabels,tickParams:f,getDomainNRangeValues:this._getDomainNRangeValues,getMinMaxOfYAxis:this._getMinMaxOfYAxis,createStringYAxis:ys,tickPadding:this.props.tickPadding||5,maxOfYVal:this._yMax,svgFocusZoneProps:{direction:Ks.horizontal},customizedCallout:this._getCustomizedCallout(),getmargins:this._getMargins,getGraphData:this._getGraphData,getAxisData:this._getAxisData,onChartMouseLeave:this._handleChartMouseLeave,getDomainMargins:this._getDomainMargins},this._xAxisType===Ku.StringAxis&&{xAxisInnerPadding:this._xAxisInnerPadding,xAxisOuterPadding:this._xAxisOuterPadding},{barwidth:this._barWidth,ref:this._cartesianChartRef,children:function(){return a.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._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=Is(this.props.barwidth,this.props.maxBarWidth),this._xAxisInnerPadding=Ws(this.props.xAxisInnerPadding,void 0,2/(2+this._legends.length+(this._legends.length-1)*ld)),this._xAxisOuterPadding=Ws(this.props.xAxisOuterPadding)},n.defaultProps={maxBarWidth:24},n}(a.Component),fd=(0,r.I)(cd,(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",color:n.semanticColors.bodyText}),barLabel:{fontSize:Yt.s.small,fontWeight:Yt.BO.semibold,fill:n.palette.neutralPrimary}}})),hd=i(263),dd=(0,u.Z)(),vd=function(t){function n(n){var i,e,r=t.call(this,n)||this;return r._rectRefArray={},r.toImage=function(t){var n,i;return Fc(null===(n=r._cartesianChartRef.current)||void 0===n?void 0:n.chartContainer,null===(i=r._legendsRef.current)||void 0===i?void 0:i.toSVG,(0,s.jI)(),t)},r._getMinMaxOfYAxis=function(){return{startValue:0,endValue:0}},r._getDomainNRangeValues=function(t,n,i,e,o,a,u,s,l){return a===Ku.NumericAxis||a===Ku.DateAxis?{dStartValue:0,dEndValue:0,rStartValue:0,rEndValue:0}:Vs(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._getInvertedTextColor=function(t){return t===r.props.theme.semanticColors.bodyText?r.props.theme.semanticColors.bodyBackground:r.props.theme.semanticColors.bodyText},r._createRectangles=function(){var t=[];return r._stringYAxisDataPoints.slice().reverse().forEach((function(n){var i=0;r._stringXAxisDataPoints.forEach((function(e){var o,u,s,l,c,f,h,d="x".concat(e,"y").concat(n);if((null===(o=r._dataSet[n][i])||void 0===o?void 0:o.x)===e&&"number"==typeof(null===(u=r._dataSet[n][i])||void 0===u?void 0:u.value)){var v=r._dataSet[n][i],p="",g=r.props.theme.semanticColors.bodyText;r.chartContainer&&(p=Xs(r.chartContainer,g)),l=p,c=r._colorScale(v.value),f=Hf(_f(ji(l))),h=Hf(_f(ji(c))),(Math.max(f,h)+.05)/(Math.min(f,h)+.05)<3&&(g=r._getInvertedTextColor(g)),s=a.createElement("g",{key:d,role:"img","aria-label":r._getAriaLabel(v),"data-is-focusable":r._legendHighlighted(v.legend)||r._noLegendHighlighted(),fillOpacity:r._getOpacity(v.legend),transform:"translate(".concat(r._xAxisScale(v.x),", ").concat(r._yAxisScale(v.y),")"),ref:function(t){r._rectRefCallback(t,d,v)},onFocus:r._onRectFocus.bind(r,d,v),onBlur:r._onRectBlurOrMouseOut,onMouseOver:r._onRectMouseOver.bind(r,d,v),onMouseOut:r._onRectBlurOrMouseOut},a.createElement("rect",{fill:r._colorScale(v.value),width:r._xAxisScale.bandwidth(),height:r._yAxisScale.bandwidth(),onClick:v.onClick}),a.createElement("text",{dominantBaseline:"middle",textAnchor:"middle",className:r._classNames.text,transform:"translate(".concat(r._xAxisScale.bandwidth()/2,", ").concat(r._yAxisScale.bandwidth()/2,")"),fill:g},(0,jn.U)(v.rectText,r.props.culture))),i++}else{var m={x:e,y:n,value:NaN,rectText:"No data available",legend:""};s=a.createElement("g",{key:d,role:"img","aria-label":r._getAriaLabel(m),"data-is-focusable":r._noLegendHighlighted(),transform:"translate(".concat(r._xAxisScale(m.x),", ").concat(r._yAxisScale(m.y),")"),ref:function(t){r._rectRefCallback(t,d,m)},onFocus:r._onRectFocus.bind(r,d,m),onBlur:r._onRectBlurOrMouseOut,onMouseOver:r._onRectMouseOver.bind(r,d,m),onMouseOut:r._onRectBlurOrMouseOut},a.createElement("rect",{fill:r.props.theme.semanticColors.bodyBackground,width:r._xAxisScale.bandwidth(),height:r._yAxisScale.bandwidth()}))}t.push(s)}))})),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)})),a.createElement(jc,(0,o.Cl)({},i,{legends:e,ref:r._legendsRef}))},r._getColorScale=function(){var t=r.props,n=t.domainValuesForColorScale,i=t.rangeValuesForColorScale;return We().domain(n).range(i)},r._getXIndex=function(t){return r._xAxisType===Ku.DateAxis?"".concat(t.getTime()):r._xAxisType===Ku.StringAxis?t:r._xAxisType===Ku.NumericAxis?"".concat(t):""},r._getYIndex=function(t){return r._yAxisType===Ju.DateAxis?"".concat(t.getTime()):r._yAxisType===Ju.StringAxis?t:r._yAxisType===Ju.NumericAxis?"".concat(t):""},r._createNewDataSet=function(t,n,i,e,a){var u=[];t.forEach((function(t){t.data.forEach((function(n){u.push((0,o.Cl)((0,o.Cl)({},n),{legend:t.legend}))}))}));var s={},l={},c={};return u.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===Ku.StringAxis?"none"===r.props.sortOrder?0:t.x.toLowerCase()>n.x.toLowerCase()?1:-1:r._xAxisType===Ku.DateAxis?t.x.getTime()-n.x.getTime():r._xAxisType===Ku.NumericAxis?+t.x>+n.x?1:-1:t.x>n.x?1:-1})).forEach((function(t){r._xAxisType===Ku.DateAxis&&(t.x=r._getStringFormattedDate(t.x,n)),r._xAxisType===Ku.NumericAxis&&(t.x=r._getStringFormattedNumber(t.x,i)),r._xAxisType===Ku.StringAxis&&(t.x=r._getFormattedLabelForXAxisDataPoint(t.x)),r._yAxisType===Ju.DateAxis&&(t.y=r._getStringFormattedDate(t.y,e)),r._yAxisType===Ju.NumericAxis&&(t.y=r._getStringFormattedNumber(t.y,a)),r._yAxisType===Ju.StringAxis&&(t.y=r._getFormattedLabelForYAxisDataPoint(t.y))}))})),Object.keys(s).forEach((function(t){r._yAxisType===Ju.DateAxis?s[r._getStringFormattedDate(t,e)]=s[t]:r._yAxisType===Ju.NumericAxis?s["".concat(r._getStringFormattedNumber(t,a))]=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===Ku.DateAxis||r._xAxisType===Ku.NumericAxis?+t-+n:"none"===r.props.sortOrder?0:t.toLowerCase()>n.toLowerCase()?1:-1})).map((function(t){return r._xAxisType===Ku.DateAxis?r._getStringFormattedDate(t,r.props.xAxisDateFormatString):r._xAxisType===Ku.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===Ju.DateAxis||r._yAxisType===Ju.NumericAxis?+t-+n:"none"===r.props.sortOrder?0:t.toLowerCase()>n.toLowerCase()?1:-1})).map((function(t){return r._yAxisType===Ju.DateAxis?r._getStringFormattedDate(t,r.props.yAxisDateFormatString):r._yAxisType===Ju.NumericAxis?r._getStringFormattedNumber(t,r.props.yAxisNumberFormatString):r._getFormattedLabelForYAxisDataPoint(t)}))},r._getStringFormattedDate=function(t,n){var i=new Date;return i.setTime(+t),co(n||"%b/%d")(i)},r._getStringFormattedNumber=function(t,n){return Pe(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,a=t.descriptionMessage;return(null===(n=t.callOutAccessibilityData)||void 0===n?void 0:n.ariaLabel)||"".concat(i,", ").concat(e,". ").concat(r,", ").concat(o,".")+(a?" ".concat(a,"."):"")},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. ")},sl(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=a.createRef(),r._legendsRef=a.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=Bs(i,!0),this._yAxisType=Bs(e,!1);var r=this.props,u=r.data,s=r.xAxisDateFormatString,l=r.xAxisNumberFormatString,c=r.yAxisDateFormatString,f=r.yAxisNumberFormatString;this._colorScale=this._getColorScale();var h=this._createSet(u,s,l,c,f),d=h.dataSet,v=h.xAxisPoints,p=h.yAxisPoints;this._dataSet=d,this._stringYAxisDataPoints=p,this._stringXAxisDataPoints=v,this._classNames=dd(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}),Ps(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}),y={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return this._isChartEmpty()?a.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):a.createElement(nh,(0,o.Cl)({},this.props,{chartTitle:this._getChartTitle(),points:u,chartType:Zu.HeatMapChart,xAxisType:Ku.StringAxis,yAxisType:Ju.StringAxis,calloutProps:g,createYAxis:gs,chartHoverProps:m,styles:this._classNames.subComponentStyles.cartesianStyles,datasetForXAxisDomain:this._stringXAxisDataPoints,stringDatasetForYAxisDomain:this._stringYAxisDataPoints,createStringYAxis:ys,getDomainNRangeValues:this._getDomainNRangeValues,getMinMaxOfYAxis:this._getMinMaxOfYAxis,getmargins:this._getMargins,xAxisTickCount:this._stringXAxisDataPoints.length,xAxistickSize:0,xAxisPadding:.02,yAxisPadding:.02,svgFocusZoneProps:{direction:Ks.bidirectional},legendBars:this._createLegendBars(),onChartMouseLeave:this._handleChartMouseLeave,ref:this._cartesianChartRef,tickParams:y,children:function(n){return t._xAxisScale=n.xScale,t._yAxisScale=n.yScalePrimary,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}(a.Component),pd=(0,r.I)(vd,(function(t){return{root:{},text:[t.theme.fonts.medium,{pointerEvents:"none",fontWeight:Yt.BO.semibold}],subComponentStyles:{cartesianStyles:{},calloutStyles:{root:{maxWidth:"238px"}}}}})),gd=/[\{\}]/g,md=/\{\d+\}/g;function yd(t){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var e=n;return t.replace(md,(function(t){var n=e[t.replace(gd,"")];return null==n&&(n=""),n}))}function bd(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 xd(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 wd(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 Cd(t,n){return n-1-t.height}function Md(t,n){return t.sourceLinks.length?t.depth:n-1}function kd(t){return function(){return t}}function Ad(t,n){return Vd(t.source,n.source)||t.index-n.index}function Sd(t,n){return Vd(t.target,n.target)||t.index-n.index}function Vd(t,n){return t.y0-n.y0}function Ld(t){return t.value}function Dd(t){return t.index}function Nd(t){return t.nodes}function Td(t){return t.links}function Od(t,n){const i=t.get(n);if(!i)throw new Error("missing: "+n);return i}function Ed({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 Bd(){let t,n,i,e=0,r=0,o=1,a=1,u=24,s=8,l=Dd,c=Md,f=Nd,h=Td,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=Od(e,n)),"object"!=typeof r&&(r=i.target=Od(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(xd(n.sourceLinks,Ld),xd(n.targetLinks,Ld)):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=wd(t,(t=>t.depth))+1,r=(o-e-u)/(i-1),a=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+u,a[t]?a[t].push(n):a[t]=[n]}if(n)for(const t of a)t.sort(n);return a}(i);t=Math.min(s,(a-r)/(wd(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=>(a-r-(n.length-1)*t)/xd(n,Ld)));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=(a-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)}w(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),Ed(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+=C(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(Vd),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(Vd),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,a,n.length-1,i),y(n,r,0,i)}function y(n,i,e,r){for(;e<n.length;++e){const o=n[e],a=(i-o.y0)*r;a>1e-6&&(o.y0+=a,o.y1+=a),i=o.y1+t}}function b(n,i,e,r){for(;e>=0;--e){const o=n[e],a=(o.y1-i)*r;a>1e-6&&(o.y0-=a,o.y1-=a),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 w(t){if(void 0===i)for(const{sourceLinks:n,targetLinks:i}of t)n.sort(Sd),i.sort(Ad)}function C(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 Ed(t),t},v.nodeId=function(t){return arguments.length?(l="function"==typeof t?t:kd(t),v):l},v.nodeAlign=function(t){return arguments.length?(c="function"==typeof t?t:kd(t),v):c},v.nodeSort=function(t){return arguments.length?(n=t,v):n},v.nodeWidth=function(t){return arguments.length?(u=+t,v):u},v.nodePadding=function(n){return arguments.length?(s=t=+n,v):s},v.nodes=function(t){return arguments.length?(f="function"==typeof t?t:kd(t),v):f},v.links=function(t){return arguments.length?(h="function"==typeof t?t:kd(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],a=+t[1],v):[o-e,a-r]},v.extent=function(t){return arguments.length?(e=+t[0][0],o=+t[1][0],r=+t[0][1],a=+t[1][1],v):[[e,r],[o,a]]},v.iterations=function(t){return arguments.length?(d=+t,v):d},v}class Fd{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 Pd=(0,u.Z)(),_d="#757575",Hd=[{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 Id(t){return"number"==typeof t?t:t.nodeId}function Wd(t,n){return t[Id(n.source)][Id(n.target)]}var Rd="...";function zd(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 jd,$d,Yd=Oh().x((function(t){return t.x})).y0((function(t){return t.y0})).y1((function(t){return t.y1})).curve((function(t){return new Fd(t,!0)})),Xd=function(t){function n(n){var i=t.call(this,n)||this;return i._isRtl=(0,s.jI)(),i._numColumns=0,i.toImage=function(t){return Fc(i.chartContainer,void 0,i._isRtl,t)},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)},sl(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,o){return{theme:t,width:e,height:r,pathColor:n,className:i,enableReflow:o}})),i._computeClassNames=(0,dn.J9)((function(t,n){return Pd(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 yd(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 yd(n,t.source.name,t.target.name,t.unnormalizedValue?i._formatNumber(t.unnormalizedValue):t.unnormalizedValue)},nodeAriaLabel:function(t,n){return yd(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=Id(t.source),o=e[r];o||(o={},e[r]=o),o[Id(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,u=n.pathColor,s=n.colorsForNodes,l=n.borderColorsForNodes,c=this.state,f=this._computeClassNamesProps(i,u,e,c.containerWidth,c.containerHeight,this.props.enableReflow),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),w=this._nodeAttributes(v,this._accessibility.nodeAriaLabel),C=this._fetchNodes(h,v,w,b),M=this._linkAttributes(p,this._strings.linkFrom,this._accessibility.linkAriaLabel),k=this._fetchLinks(p,M),A=(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 a.createElement("div",{className:h.root,role:"presentation",ref:function(n){return t.chartContainer=n},onMouseLeave:this._onCloseCallout},a.createElement(Dl,{direction:Ks.vertical,className:h.chartWrapper},a.createElement("svg",{width:g,height:m,id:this._chartId},y.map((function(t){return"node"===t.type?a.createElement("g",{key:v[t.index].nodeId,className:h.nodes},C[t.index]):a.createElement("g",{key:"".concat(p[t.index].source.nodeId,"-").concat(p[t.index].target.nodeId),className:h.links,strokeOpacity:1},k[t.index])})),A.isCalloutVisible&&a.createElement(zn,(0,o.Cl)({},A),a.createElement(Js.ChartHoverCard,{XValue:A.XValue,YValue:A.YValue,color:A.color,descriptionMessage:A.descriptionMessage?A.descriptionMessage:""})))))}return a.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=ns(".nodeName").append("text").attr("class","tempText").append("tspan").text(null),o=ns(".nodeName").append("text").attr("class","tempText").attr("font-size","10").append("tspan").text(null);return t.forEach((function(t){var a=Math.max(t.y1-t.y0,0),u=8,s=0,l=t.actualValue;if(a<36){u+=6;var c=zd(r,i._formatNumber(l));void 0!==c&&(u+=s=c)}var f=function(t,n,i,e){var r=i-e;if(function(t,n,i){var e=zd(t,n);return void 0!==e&&e<=i}(t,n,r))return n;for(var o=function(t){var n=zd(t,Rd);return void 0===n?0:n}(t),a="",u=0;u<n.length;u++){a+=n[u],t.text(a);var s=t.node();if(null!==s&&s.getComputedTextLength()>=r-o){a=a.slice(0,-1),a+=Rd;break}}return t.text(null),a}(o,t.name,116,u),h=f.slice(-3)===Rd;e[t.nodeId]={reactId:g("nodeBar"),gElementId:g("nodeGElement"),name:f,aria:n(t,l),trimmed:h,height:a,weightOffset:s}})),is(".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 a=function(t,n,i,e){var r=t.left,o=t.right,a=t.top,u=t.bottom,s=n-o,l=i-u>0?i-u:0;return{sankey:Bd().nodeWidth(124).extent([[r,a],[s-1,l-6]]).nodeAlign(e?Cd:Md),height:l,width:s}}(this._margins,n,i,this._isRtl),u=a.sankey,s=a.height,l=a.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);u(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=Id(t.source),e=n[i];e||(e={},n[i]=e),e[Id(t.target)]=t.value})),n}(c.links);return function(t,n,i){Object.values(t).map((function(t){return bd(t,(function(t){return t.value}))})).forEach((function(e,r){var o=0,a=.01*e,u=t[r];u.forEach((function(t){var i=n[t.nodeId],r=i/e*100;t.actualValue=i,r<1?(t.value=a,o+=1):o+=r}));var s=0!==o?o/100:1;s>1&&u.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-bd(t,(function(t){return t.y1-t.y0}));r<i&&(e=Math.min(e,r/(t.length-1)))})),t.nodePadding(e)}(u,s-6,f),u(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=Hd.map((function(t){return t.fillColor})),r=Hd.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=ns("#".concat(this._labelTooltipId));return n.empty()&&(n=ns("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,u,s,l,c=Wd(n,t),f=c.reactId,h=c.from,d=c.aria,v=(u=.5*(o=t).width,s=o.y0,l=o.y1,[{x:o.source.x1,y0:s+u,y1:s-u},{x:o.target.x0,y0:l+u,y1:l-u}]),p="".concat(e,"-").concat(r),g="gradient-".concat(p),m="url(#".concat(g,")"),y=t.source,b=t.target;return a.createElement("g",{key:p},a.createElement("defs",null,a.createElement("linearGradient",{id:g,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},a.createElement("stop",{offset:"0",stopColor:y.color}),a.createElement("stop",{offset:"100%",stopColor:b.color}))),a.createElement("path",{d:Yd(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,u=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,w=n.x1,C=n.y0,M=function(t,n){return!t.selectedState||t.selectedNodes.has(n.index)&&t.selectedNode||!t.selectedNode?"#FFFFFF":"#323130"}(o,n);return a.createElement("g",{key:s,id:f},a.createElement("rect",{x:x,y:C,height:h,width:w-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&&a.createElement("g",{className:t.nodeTextContainer},a.createElement("g",{className:"nodeName"},a.createElement("text",{id:"".concat(c,"-name"),x:x,y:C,dy:"1.2em",dx:"0.4em",textAnchor:u,fontWeight:"regular","aria-hidden":"true",fill:M,fontSize:10,onMouseOver:r._showTooltip.bind(r,y,d,e),onMouseOut:r._hideTooltip.bind(r,e)},v)),a.createElement("text",{x:m?x:w-p-8,y:C,dy:m?"2em":"1em",dx:m?"0.4em":"0em",textAnchor:u,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,a=e.selectedNodes;this.setState((0,o.Cl)({selectedState:!0,selectedNodes:new Set(Array.from(a).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 _d}return _d},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}(a.Component),Gd=(0,r.I)(Xd,(function(t){var n,i,e,r=t.className,a=t.theme,u=t.pathColor,s=t.enableReflow,l=a.effects;return{root:[a.fonts.medium,{display:"flex",width:"100%",height:"100%",flexDirection:"column",overflow:"hidden"},r],links:{stroke:u||a.palette.black,fill:a?a.semanticColors.bodyBackground:"#F5F5F5",strokeWidth:3,selectors:(n={},n[Yt.up]={fill:"Canvas"},n)},nodes:{fill:"#F5F5F5",selectors:(i={},i[Yt.up]={fill:"Canvas"},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[Yt.up]={fill:"CanvasText"},e)}},marginTop:"4px",marginLeft:"8px",marginBottom:"4px",marginRight:"8px"},calloutContentRoot:{boxShadow:l.elevation4},chartWrapper:(0,o.Cl)({},s?{overflow:"auto"}:{})}}));function qd(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 Ud(t,n){t instanceof Map?(t=[void 0,t],void 0===n&&(n=Kd)):void 0===n&&(n=Zd);for(var i,e,r,o,a,u=new tv(t),s=[u];i=s.pop();)if((r=n(i.data))&&(a=(r=Array.from(r)).length))for(i.children=r,o=a-1;o>=0;--o)s.push(e=r[o]=new tv(r[o])),e.parent=i,e.depth=i.depth+1;return u.eachBefore(Qd)}function Zd(t){return t.children}function Kd(t){return Array.isArray(t)?t[1]:null}function Jd(t){void 0!==t.data.value&&(t.value=t.data.value),t.data=t.data.data}function Qd(t){var n=0;do{t.height=n}while((t=t.parent)&&t.height<++n)}function tv(t){this.data=t,this.depth=this.height=0,this.parent=null}function nv(t,n){return t.parent===n.parent?1:2}function iv(t){var n=t.children;return n?n[0]:t.t}function ev(t){var n=t.children;return n?n[n.length-1]:t.t}function rv(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 ov(t,n,i){return t.a.parent===n.parent?t.a:i}function av(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"}(jd||(jd={})),function(t){t[t.preOrder=1]="preOrder",t[t.levelOrder=0]="levelOrder"}($d||($d={})),tv.prototype=Ud.prototype={constructor:tv,count:function(){return this.eachAfter(qd)},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,a=[o],u=[],s=-1;o=a.pop();)if(u.push(o),i=o.children)for(e=0,r=i.length;e<r;++e)a.push(i[e]);for(;o=u.pop();)t.call(n,o,++s,this);return this},eachBefore:function(t,n){for(var i,e,r=this,o=[r],a=-1;r=o.pop();)if(t.call(n,r,++a,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 Ud(this).eachBefore(Jd)},[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)}},av.prototype=Object.create(tv.prototype);var uv=(0,u.Z)(),sv=function(t){function n(n,i,e,r,o,a){void 0===r&&(r=[]),void 0===o&&(o=[]);var u=t.call(this,n,e,r,o)||this;return u.composition=i,u._treeTraversal=a,u}return(0,o.C6)(n,t),n.prototype.C=function(t,n){var i,e,r,o,a,u,s=(t=t<65?65:t>90?90:t)||75,l=Ud(this.treeData,(function(t){return t.children})),c=(null==l?void 0:l.height)+1;(function(){var t=nv,n=1,i=1,e=null;function r(r){var s=function(t){for(var n,i,e,r,o,a=new av(t,0),u=[a];n=u.pop();)if(e=n._.children)for(n.children=new Array(o=e.length),r=o-1;r>=0;--r)u.push(i=n.children[r]=new av(e[r],r)),i.parent=n;return(a.parent=new av(null,0)).children=[a],a}(r);if(s.eachAfter(o),s.parent.m=-s.z,s.eachBefore(a),e)r.eachBefore(u);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,a=n,u=i,s=o.parent.children[0],l=o.m,c=a.m,f=u.m,h=s.m;u=ev(u),o=iv(o),u&&o;)s=iv(s),(a=ev(a)).a=n,(r=u.z+f-o.z-l+t(u._,o._))>0&&(rv(ov(u,n,e),n,r),l+=r,c+=r),f+=u.m,l+=o.m,h+=s.m,c+=a.m;u&&!ev(a)&&(a.t=u,a.m+=f-c),o&&!iv(s)&&(s.t=o,s.m+=l-h,e=n)}return e}(n,r,n.parent.A||e[0])}function a(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function u(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],w=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 C=(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,A=(null===(e=f[x.parentID])||void 0===e?void 0:e.x)-C/2-10,S=(null===(r=f[x.parentID])||void 0===r?void 0:r.x)+C/2+10,V=null===(o=f[x.parentID])||void 0===o?void 0:o.x,L=null===(a=k[0])||void 0===a?void 0:a.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?V:A:S,L,N.data.fill,1===k.length?v:C,p,N.id,w),D%2==1&&(L+=M+g)):(this.D(N.data.name,N.data.subname,N.data.bodytext,N.data.metricName,V,L,N.data.fill,v,p,N.id,w),L+=M+g):k.length>2?(this.D(N.data.name,N.data.subname,N.data.bodytext,N.data.metricName,D%2==0?A:S,L,N.data.fill,1===k.length?v:C,p,N.id,w),D%2==1&&(L+=M+g)):(this.D(N.data.name,N.data.subname,N.data.bodytext,N.data.metricName,V,L,N.data.fill,v,p,N.id,w),L+=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,w),0===x.id&&x.children)){var T=di(k=null===(u=f[x.id])||void 0===u?void 0:u.children,(function(t){return t.x})),O=vi(k,(function(t){return t.x}));this.k(x.id,x.x,x.y,T,x.children[0].y,!1,v,p,g,O)}}},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(),a="",u=ns(".svgTree").append("text").attr("class","tempText").append("tspan").text(null);e&&u.attr("class",e);for(var s=[];a=o.pop();)if(s.push(a),u.text(s.join(" ")+" "),null!==u.node()&&u.node().getComputedTextLength()>n-i){s.pop(),s.push("...");break}return r=s.join(" ")+" ",u.text(null),is(".tempText").remove(),r},t.prototype.D=function(t,n,i,e,r,o,u,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(a.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:u,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?a.createElement("tspan",{className:this.styleClassNames.rectMetricText,dy:"1.4em",x:d+s/2},e):i?a.createElement(a.Fragment,null,a.createElement("tspan",{className:this.styleClassNames.rectSubText,dy:"1.4em",x:d+s/2},n),a.createElement("tspan",{className:this.styleClassNames.rectBodyText,dy:"1.4em",x:d+s/2},i)):a.createElement("tspan",{className:this.styleClassNames.rectSubText,dy:"1.4em",x:d+s/2},n);n||e||i?this._nodeElements.push(a.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(a.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,a,u,s){var l="M".concat(i-o/2,",").concat(e-u," H").concat(s+o/2," M").concat(t,",").concat(e-u,"\n V").concat(n+a+u/2),c="M".concat(t,",").concat(n+a+u/2," V").concat(n+5*u,"\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,u,s,l,c){void 0===c&&(c=0),this._linkElements.push(a.createElement("path",{className:this.styleClassNames.link,d:this.O(n,i,e,r,o,u,s,l,c),key:"".concat(t).concat(this.styleClassNames.link)}))},t}()),lv=function(t){function n(n){var i,e,r,o,a,u=t.call(this,n)||this;return u._nodeElements=[],u._linkElements=[],u._margin={top:(null===(i=u.props.margins)||void 0===i?void 0:i.top)||30,bottom:(null===(e=u.props.margins)||void 0===e?void 0:e.bottom)||30,left:(null===(r=u.props.margins)||void 0===r?void 0:r.left)||50,right:(null===(o=u.props.margins)||void 0===o?void 0:o.right)||20},u._width=u.props.width||1500,u._height=u.props.height||700,u._treeData=u.props.treeData,u._composition=null===(a=u.props)||void 0===a?void 0:a.composition,u._treeTraversal=u.props.treeTraversal,u.state={_width:u._width,_height:u._height},u}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=uv(e,{theme:n,className:i}),this.F(),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=is("text"),i=is("rect"),e=is("path");0===this._nodeElements.length&&0===this._linkElements.length&&(n.remove(),i.remove(),e.remove()),this.F()}},n.prototype.F=function(){var t=[],n=[],i=new sv(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 a.createElement(Dl,null,a.createElement("div",{className:null===(t=this._classNames)||void 0===t?void 0:t.root},a.createElement("svg",{className:"svgTree",width:this.state._width-this._margin.left-this._margin.right,height:this.state._height-this._margin.top-this._margin.bottom},a.createElement("g",{className:"svgNode"},this._nodeElements.map((function(t){return t}))),a.createElement("g",{className:"svgLink"},this._linkElements.map((function(t){return t}))))))},n}(a.Component),cv=(0,r.I)(lv,(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 fv(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 hv,dv,vv=(0,u.Z)(),pv=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=Oh().x((function(n){return t.x(n.x)})).y0(this.state._height).y1((function(n){return t.y(n.y)})).curve(rs);this.area=n;var i=Yf().x((function(n){return t.x(n.x)})).y((function(n){return t.y(n.y)})).curve(rs);this.line=i;var e=this.props.data.lineChartData[0].data,r=fv(e,(function(t){return t.x})),o=r[0],a=r[1];this.x=We().domain([o,a]).range([this.margin.left,this.state._width-this.margin.right]),this.y=We().domain([0,vi(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 a.createElement(a.Fragment,null,a.createElement("path",{className:"line",d:this.line(this.state._points),fill:"transparent",opacity:1,strokeWidth:2,stroke:this.props.data.lineChartData[0].color}),a.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=vv(this.props.styles,{theme:this.props.theme});return this._isChartEmpty()?a.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):a.createElement(Dl,{direction:Ks.horizontal,isCircularNavigation:!0,className:t.inlineBlock},a.createElement("div",{className:t.inlineBlock},this.state._width>=50&&this.state._height>=16?a.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):a.createElement(a.Fragment,null),this.props.showLegend&&this.props.data.lineChartData[0].legend?a.createElement("svg",{width:this.state._valueTextWidth,height:this.state._height,"data-is-focusable":!0},a.createElement("text",{x:"0%",textAnchor:this._isRTL?"end":"start",dx:8,y:"100%",dy:-5,className:t.valueText},this.props.data.lineChartData[0].legend)):a.createElement(a.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}(a.Component),gv=(0,r.I)(pv,(function(t){return{inlineBlock:{display:"inline"},valueText:(0,o.Cl)((0,o.Cl)({},t.theme.fonts.smallPlus),{fill:t.theme.semanticColors.messageText})}})),mv=(0,u.Z)(),yv=function(t){function n(n){var i,e,r,u,l,c=t.call(this,n)||this;return c._isRtl=(0,s.jI)(),c.X_ORIGIN=0,c.toImage=function(t){var n,i;return Fc(null===(n=c._cartesianChartRef.current)||void 0===n?void 0:n.chartContainer,null===(i=c._legendsRef.current)||void 0===i?void 0:i.toSVG,c._isRtl,t)},c._getDomainNRangeValues=function(t,n,i,e,r,o,a,u,s){var l;return l=o===Ku.NumericAxis?function(t,n,i,e,r,o){var a=Ss(As(t),o),u=a.longestPositiveBar,s=a.longestNegativeBar,l=e?n.left:n.left+r,c=e?i-n.right-r:i-n.right;return e?{dStartValue:u,dEndValue:Math.min(s,o),rStartValue:l,rEndValue:c}:{dStartValue:Math.min(s,o),dEndValue:u,rStartValue:l,rEndValue:c}}(t,n,i,r,s,c.X_ORIGIN):{dStartValue:0,dEndValue:0,rStartValue:0,rEndValue:0},l},c._getMargins=function(t){c.margins=t},c._renderContentForOnlyBars=function(t){var n,i,e,r,o=c.props,u=o.useSingleColor,s=void 0!==u&&u,l=o.enableGradient,f=void 0!==l&&l,h=0;return c.props.data.forEach((function(n,i){n.y===t.y&&(h=i)})),s?(r=c.props.colors?c._createColors()(1):Bf(1,0,null===(n=c.props.theme)||void 0===n?void 0:n.isInverted),f&&(r=ol(0,0,null===(i=c.props.theme)||void 0===i?void 0:i.isInverted)[0])):r=t.color?t.color:c.props.colors?c._createColors()(t.x):Bf(h,0,null===(e=c.props.theme)||void 0===e?void 0:e.isInverted),a.createElement(a.Fragment,null,a.createElement(Js.ChartHoverCard,{XValue:t.xAxisCalloutData||t.x.toString(),Legend:t.legend,YValue:t.yAxisCalloutData||t.y,color:r,culture:c.props.culture}))},c._renderCallout=function(t){return t?c._renderContentForOnlyBars(t):null},c._getCustomizedCallout=function(){return c.props.onRenderCalloutPerDataPoint?c.props.onRenderCalloutPerDataPoint(c.state.dataPointCalloutProps,c._renderCallout):null},c._getGraphData=function(t,n,i,e,r,o){var a=As(c._points),u=Ss(a,c.X_ORIGIN);c._longestBarPositiveTotalValue=u.longestPositiveBar,c._longestBarNegativeTotalValue=u.longestNegativeBar;var s=c._yAxisType===Ju.NumericAxis?c._getScales(i,e,!0):c._getScales(i,e,!1),l=s.xBarScale,f=s.yBarScale,h=a.map((function(t){return c._yAxisType===Ju.NumericAxis?c._createNumericBars(i,e,r,o,t,l,f):c._createStringBars(i,e,r,o,t,l,f)})).flat();return c._bars=h},c._refCallback=function(t,n){c._refArray.push({index:n,refElement:t})},c._getCalloutContentForBar=function(t){var n,i,e,r,o=[],a=c.props,u=a.useSingleColor,s=void 0!==u&&u,l=a.enableGradient,f=void 0!==l&&l,h=c.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=c.props.colors?c._createColors()(1):Bf(1,0,null===(n=c.props.theme)||void 0===n?void 0:n.isInverted),f&&(r=ol(0,0,null===(i=c.props.theme)||void 0===i?void 0:i.isInverted)[0])):r=d[0].color?d[0].color:c.props.colors?c._createColors()(d[0].x):Bf(v,0,null===(e=c.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()}},c._onBarLeave=function(){},c._handleChartMouseLeave=function(){c._calloutAnchorPoint=null,c.setState({isCalloutVisible:!1,activeXdataPoint:null,YValueHover:[],hoverXValue:""})},c._onBarFocus=function(t,n,i){if((!1===c.state.isLegendSelected||c._isLegendHighlighted(t.legend))&&c._calloutAnchorPoint!==t){var e=c._getCalloutContentForBar(t),r=e.YValueHover,o=e.hoverXValue;c._refArray.forEach((function(e,a){n===a&&c.setState({refSelected:e.refElement,isCalloutVisible:!0,selectedLegendTitle:t.legend,dataForHoverCard:t.x,color:c.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})}))}},c._getScales=function(t,n,i){var e=c._longestBarPositiveTotalValue,r=c._longestBarNegativeTotalValue,o=[Math.min(c.X_ORIGIN,r),Math.max(c.X_ORIGIN,e)];if(i){var a=vi(c._points,(function(t){return t.y})),u=di(c._points,(function(t){return t.y})),s=Math.max(a,c.props.yMaxValue||0),l=c.props.yMinValue||0,f=u<l?Math.min(0,u):l,h=Math.abs(.1*(a-u));return{xBarScale:We().domain(o).nice().range([c.margins.left,n-c.margins.right]),yBarScale:d=We().domain([f-h,s+h]).range([t-c.margins.bottom,c.margins.top])}}var d=za().domain(c._yAxisLabels).range([t-c.margins.bottom-c._barHeight/2,c.margins.top+c._barHeight/2]).padding(c.props.yAxisPadding||0);return{xBarScale:We().domain(o).nice().range([c.margins.left,n-c.margins.right]),yBarScale:d}},c._closeCallout=function(){c.setState({isCalloutVisible:!1})},c._getLegendData=function(t,n){var i=c.props.useSingleColor,e=[],r={};return t.forEach((function(t,n){var e,o,a,u,s=i?c.props.colors?c._createColors()(1):Bf(1,0,null===(e=c.props.theme)||void 0===e?void 0:e.isInverted):t.color;c.props.enableGradient&&(s=(null===(o=t.gradient)||void 0===o?void 0:o[0])||ol(n,0,null===(a=c.props.theme)||void 0===a?void 0:a.isInverted)[0],i&&(s=ol(0,0,null===(u=c.props.theme)||void 0===u?void 0:u.isInverted)[0])),r[t.legend]=s})),Object.entries(r).forEach((function(t){var n=t[0],i=t[1],r={title:n,color:i,hoverAction:function(){c._handleChartMouseLeave(),c._onLegendHover(n)},onMouseOutAction:function(t){c._onLegendLeave(t)}};e.push(r)})),a.createElement(jc,(0,o.Cl)({legends:e,enabledWrapLines:c.props.enabledLegendsWrapLines,overflowProps:c.props.legendsOverflowProps,focusZonePropsInHoverCard:c.props.focusZonePropsForLegendsInHoverCard,overflowText:c.props.legendsOverflowText},c.props.legendProps,{onChange:c._onLegendSelectionChange.bind(c),ref:c._legendsRef}))},c._isLegendSelected=function(){return c.state.isLegendSelected},c._isLegendHighlighted=function(t){return c._getHighlightedLegend().includes(t)},c._getAxisData=function(t){if(t&&t.yAxisDomainValues.length){var n=t.yAxisDomainValues;c._xMax=Math.max(n[n.length-1],c.props.xMaxValue||0)}},c._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,".")},c._getChartTitle=function(){var t=c.props,n=t.chartTitle,i=t.data;return(n?"".concat(n,". "):"")+"Horizontal bar chart with ".concat((null==i?void 0:i.length)||0," bars. ")},sl(c),c.state={color:"",dataForHoverCard:0,isCalloutVisible:!1,isLegendSelected:(null===(i=n.legendProps)||void 0===i?void 0:i.selectedLegends)&&n.legendProps.selectedLegends.length>0||void 0!==(null===(e=n.legendProps)||void 0===e?void 0:e.selectedLegend),isLegendHovered:!1,refSelected:null,selectedLegendTitle:null!==(u=null===(r=n.legendProps)||void 0===r?void 0:r.selectedLegend)&&void 0!==u?u:"",xCalloutValue:"",yCalloutValue:"",activeXdataPoint:null,YValueHover:[],hoverXValue:"",selectedLegends:(null===(l=n.legendProps)||void 0===l?void 0:l.selectedLegends)||[]},c._calloutId=g("callout"),c._tooltipId=g("HBCWATooltipID_"),c._refArray=[],c._xAxisType=c.props.data&&c.props.data.length>0?Bs(c.props.data[0].x,!0):Ku.NumericAxis,c._yAxisType=c.props.data&&c.props.data.length>0?Bs(c.props.data[0].y,!1):Ju.StringAxis,c._cartesianChartRef=a.createRef(),c._legendsRef=a.createRef(),c}return(0,o.C6)(n,t),n.prototype.componentDidUpdate=function(t){var n,i,e;$s(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(vi(this._points,(function(t){return t.x})),this.props.xMaxValue||0);var i=this._getLegendData(this._points,this.props.theme.palette);this._classNames=mv(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),Ps(this.state.callOutAccessibilityData)),r={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return a.createElement(nh,(0,o.Cl)({},this.props,{chartTitle:this._getChartTitle(),points:this._points,chartType:Zu.HorizontalBarChartWithAxis,xAxisType:this._xAxisType,yAxisType:this._yAxisType,stringDatasetForYAxisDomain:this._yAxisLabels,calloutProps:e,tickParams:r,legendBars:i,createYAxis:ps,getDomainNRangeValues:this._getDomainNRangeValues,createStringYAxis:ms,getMinMaxOfYAxis:Ts,barwidth:this._barHeight,focusZoneDirection:Ks.vertical,customizedCallout:this._getCustomizedCallout(),getmargins:this._getMargins,getGraphData:this._getGraphData,getAxisData:this._getAxisData,onChartMouseLeave:this._handleChartMouseLeave,ref:this._cartesianChartRef,children:function(n){return a.createElement(a.Fragment,null,a.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 We().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,r,u,s){var l=this,c=this.props.useSingleColor,f=void 0!==c&&c,h=(0,o.fX)([],r,!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=0,v=0,p=0,m=r.filter((function(t){return t.x>=l.X_ORIGIN})).length,y=r.length-m,b=0,x=0,w=h.map((function(t,i){var e,r,o,c,h,w,C,M,k=!0;(l.state.isLegendHovered||l.state.isLegendSelected)&&(k=l._isLegendHighlighted(t.legend)),l._classNames=mv(l.props.styles,{theme:l.props.theme,legendColor:l.state.color,shouldHighlight:k}),t.x>=l.X_ORIGIN&&++b,t.x<l.X_ORIGIN&&++x;var A,S=l._isRtl?n-(l.margins.right+Math.max(u(t.x+l.X_ORIGIN),u(l.X_ORIGIN))-l.margins.left):Math.min(u(t.x+l.X_ORIGIN),u(l.X_ORIGIN));if(Math.max(s(t.y),0)<1)return a.createElement(a.Fragment,{key:t.x}," ");A=f?l.props.colors?l._createColors()(1):Bf(1,0,null===(e=l.props.theme)||void 0===e?void 0:e.isInverted):l.props.colors?l._createColors()(t.x):Bf(i,0,null===(r=l.props.theme)||void 0===r?void 0:r.isInverted);var V=A=t.color&&!f?t.color:A;if(l.props.enableGradient){var L=Math.max(l._points.findIndex((function(n){return n===t})),0);A=(null===(o=t.gradient)||void 0===o?void 0:o[0])||ol(L,0,null===(c=l.props.theme)||void 0===c?void 0:c.isInverted)[0],V=(null===(h=t.gradient)||void 0===h?void 0:h[1])||ol(L,0,null===(w=l.props.theme)||void 0===w?void 0:w.isInverted)[1],f&&(A=ol(0,0,null===(C=l.props.theme)||void 0===C?void 0:C.isInverted)[0],V=ol(0,0,null===(M=l.props.theme)||void 0===M?void 0:M.isInverted)[1]),l._points[L].color=A}var D=g("HBCWA_Gradient")+"_".concat(i,"_").concat(t.x),N=Math.abs(u(p+l.X_ORIGIN)-u(l.X_ORIGIN));p>l.X_ORIGIN?d+=N:v+=N;var T=Math.abs(u(t.x+l.X_ORIGIN)-u(l.X_ORIGIN)),O=T>2&&(t.x>l.X_ORIGIN&&b!==m||t.x<l.X_ORIGIN&&(0!==m||x>1))?2:0,E=T>2&&(t.x>l.X_ORIGIN&&(0!==y||b>1)||t.x<l.X_ORIGIN&&x!==y)?2:0,B=l.X_ORIGIN;return B=l._isRtl?t.x>l.X_ORIGIN?S-d:S+v:t.x>l.X_ORIGIN?S+d:S-v,p=t.x,a.createElement(a.Fragment,{key:"".concat(i,"_").concat(t.x)},l.props.enableGradient&&a.createElement("defs",null,a.createElement("linearGradient",{id:D},a.createElement("stop",{offset:"0",stopColor:A}),a.createElement("stop",{offset:"100%",stopColor:V}))),a.createElement("rect",{key:t.y,x:B,className:l._classNames.opacityChangeOnHover,y:s(t.y)-l._barHeight/2,"data-is-focusable":k,width:T-(l._isRtl?E:O),height:l._barHeight,ref:function(n){l._refCallback(n,t.legend)},rx:l.props.roundCorners?3:0,onClick:t.onClick,onMouseOver:l._onBarHover.bind(l,t,A),"aria-label":l._getAriaLabel(t),role:"img","aria-labelledby":"toolTip".concat(l._calloutId),onMouseLeave:l._onBarLeave,onFocus:l._onBarFocus.bind(l,t,i,A),onBlur:l._onBarLeave,fill:l.props.enableGradient?"url(#".concat(D,")"):A}))}));return w},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=ns("body").append("div").attr("id",r).attr("class",i).style("opacity",0),a=e.selectAll("#BaseSpan")._groups[0],u=a&&Object.keys(a).length,s=[],l=0;l<u;l++){var c=a[l].dataset&&Object.values(a[l].dataset)[0];s.push(c)}var f=e.selectAll(".tick")._groups[0],h=f&&Object.keys(f).length,d=function(t){ns(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,r,o,u){var s=this,l=this.props.useSingleColor,c=void 0!==l&&l,f=0,h=0,d=0,v=r.filter((function(t){return t.x>=s.X_ORIGIN})).length,p=r.length-v,m=0,y=0,b=r.map((function(t,i){var e,r,l,b,x,w,C,M,k=!0;(s.state.isLegendHovered||s.state.isLegendSelected)&&(k=s._isLegendHighlighted(t.legend)),s._classNames=mv(s.props.styles,{theme:s.props.theme,legendColor:s.state.color,shouldHighlight:k}),t.x>=s.X_ORIGIN&&++m,t.x<s.X_ORIGIN&&++y;var A,S=s._isRtl?n-(s.margins.right+Math.max(o(t.x+s.X_ORIGIN),o(s.X_ORIGIN))-s.margins.left):Math.min(o(t.x+s.X_ORIGIN),o(s.X_ORIGIN));if(Math.max(u(t.y),0)<1)return a.createElement(a.Fragment,{key:t.x}," ");A=c?s.props.colors?s._createColors()(1):Bf(1,0,null===(e=s.props.theme)||void 0===e?void 0:e.isInverted):s.props.colors?s._createColors()(t.x):Bf(i,0,null===(r=s.props.theme)||void 0===r?void 0:r.isInverted);var V=A=t.color&&!c?t.color:A;if(s.props.enableGradient){var L=s._points.findIndex((function(n){return n===t}));A=(null===(l=t.gradient)||void 0===l?void 0:l[0])||ol(L,0,null===(b=s.props.theme)||void 0===b?void 0:b.isInverted)[0],V=(null===(x=t.gradient)||void 0===x?void 0:x[1])||ol(L,0,null===(w=s.props.theme)||void 0===w?void 0:w.isInverted)[1],c&&(A=ol(0,0,null===(C=s.props.theme)||void 0===C?void 0:C.isInverted)[0],V=ol(0,0,null===(M=s.props.theme)||void 0===M?void 0:M.isInverted)[1]),s._points[L].color=A}var D=g("HBCWA_Gradient")+"_".concat(i,"_").concat(t.x),N=Math.abs(o(d+s.X_ORIGIN)-o(s.X_ORIGIN));d>0?f+=N:h+=N;var T=Math.abs(o(t.x+s.X_ORIGIN)-o(s.X_ORIGIN)),O=T>2&&(t.x>s.X_ORIGIN&&m!==v||t.x<s.X_ORIGIN&&(0!==v||y>1))?2:0,E=T>2&&(t.x>s.X_ORIGIN&&(0!==p||m>1)||t.x<s.X_ORIGIN&&y!==p)?2:0;d=t.x;var B=s.X_ORIGIN;return B=s._isRtl?t.x>s.X_ORIGIN?S-f:S+h:t.x>s.X_ORIGIN?S+f:S-h,a.createElement(a.Fragment,{key:"".concat(i,"_").concat(t.x)},s.props.enableGradient&&a.createElement("defs",null,a.createElement("linearGradient",{id:D},a.createElement("stop",{offset:"0",stopColor:A}),a.createElement("stop",{offset:"100%",stopColor:V}))),a.createElement("rect",{transform:"translate(0,".concat(.5*(u.bandwidth()-s._barHeight),")"),key:t.x,className:s._classNames.opacityChangeOnHover,x:B,y:u(t.y),rx:s.props.roundCorners?3:0,width:T-(s._isRtl?E:O),height:s._barHeight,"aria-labelledby":"toolTip".concat(s._calloutId),"aria-label":s._getAriaLabel(t),role:"img",ref:function(n){s._refCallback(n,t.legend)},onClick:t.onClick,onMouseOver:s._onBarHover.bind(s,t,A),onMouseLeave:s._onBarLeave,onBlur:s._onBarLeave,"data-is-focusable":k,onFocus:s._onBarFocus.bind(s,t,i,A),fill:s.props.enableGradient?"url(#".concat(D,")"):A}))}));if(!this.props.showYAxisLablesTooltip)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}if(this.props.showYAxisLablesTooltip){var x=ns(e).call(u);if(!this.state.tooltipElement)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}var w={tooltipCls:this._classNames.tooltip,id:this._tooltipId,yAxis:x};x&&this._tooltipOfYAxislabels(w)}return b},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}(a.Component),bv=(0,r.I)(yv,(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"}(hv||(hv={})),function(t){t.SingleSegment="single-segment",t.MultipleSegments="multiple-segments"}(dv||(dv={}));var xv=[{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}],wv=(0,u.Z)(),Cv=function(t,n,i,e,r){return void 0===r&&(r=!1),r?0===n&&e===dv.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===dv.SingleSegment?"".concat(t.size," (").concat((t.size/i*100).toFixed(),"%)"):"".concat(t.start," - ").concat(t.end)},Mv=function(t,n,i,e,r){return void 0===r&&(r=!1),r?0!==n?t.toString():e===hv.Fraction?"".concat((t/i*100).toFixed(),"%"):"".concat(t,"/").concat(i):"function"==typeof e?e([t-n,i-n]):0!==n?t.toString():e===hv.Fraction?"".concat(t,"/").concat(i):"".concat((t/i*100).toFixed(),"%")},kv=function(t){function n(n){var i,e=t.call(this,n)||this;return e.toImage=function(t){var n;return Fc(e._rootElem,null===(n=e._legendsRef.current)||void 0===n?void 0:n.toSVG,e._isRTL,t)},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=xv.length-1;t>=0;t-=1)if(e._outerRadius>=xv[t].minRadius)return{arcWidth:xv[t].arcWidth,chartValueSize:xv[t].fontSize};return{arcWidth:xv[0].arcWidth,chartValueSize:xv[0].fontSize}},e._processProps=function(){var t=e.props,n=t.minValue,i=void 0===n?0:n,r=t.maxValue,o=t.theme,a=i,u=e.props.segments.map((function(t,n){var i,e=Math.max(t.size,0);return a+=e,{legend:t.legend,size:e,color:void 0!==t.color?Ff(t.color,o.isInverted):Bf(n,0,o.isInverted),gradient:null!==(i=t.gradient)&&void 0!==i?i:ol(n,0,o.isInverted),accessibilityData:t.accessibilityData,start:a-e,end:a}}));void 0!==r&&a<r&&(u.push({legend:"Unknown",size:r-a,color:o.palette.neutralLight,start:a,end:r}),a=r);var s=wf().cornerRadius(e.props.roundCorners?3:0).padAngle(2/e._outerRadius).padRadius(e._outerRadius),l=e._isRTL?Array.from(u).reverse():u,c=-Math.PI/2,f=l.map((function(t,n){var r=c+t.size/(a-i)*Math.PI,o=s({innerRadius:e._innerRadius,outerRadius:e._outerRadius,startAngle:c,endAngle:r});return c=r,{d:o,segmentIndex:e._isRTL?u.length-1-n:n,startAngle:c-t.size/(a-i)*Math.PI,endAngle:r}}));return e._minValue=i,e._maxValue=a,e._segments=u,{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 a.createElement("g",{transform:"rotate(".concat(n,", 0, 0)")},a.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: "+Mv(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])||ol(n,0,e.props.theme.isInverted)[0]:t.color||Bf(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 a.createElement("div",{className:e._classNames.legendsContainer},a.createElement(jc,(0,o.Cl)({legends:t,centerLegends:!0},e.props.legendProps,{onChange:e._onLegendSelectionChange.bind(e),ref:e._legendsRef})))},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 "+Mv(e.props.chartValue,e._minValue,e._maxValue,e.props.chartValueFormat,!0),a=e._segments.map((function(t){var n;return{legend:t.legend,y:Cv(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:a},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=ns("#".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 a.createElement("div",{className:e._classNames.calloutContentRoot},a.createElement("div",{className:e._classNames.calloutDateTimeContainer,style:n?{marginBottom:"11px"}:{}},a.createElement("div",(0,o.Cl)({className:e._classNames.calloutContentX},Ps(t.xAxisCalloutAccessibilityData,"text",!1)),(0,jn.U)(t.hoverXValue,e.props.culture))),a.createElement("div",{className:e._classNames.calloutInfoContainer,style:n?{display:"flex"}:{}},t.YValueHover&&t.YValueHover.map((function(t,i,r){var u=i+1===r.length,s=t.shouldDrawBorderBottom,l=void 0!==s&&s;return a.createElement("div",(0,o.Cl)({},Ps(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,u))})),!!t.descriptionMessage&&a.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. ")},sl(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._legendsRef=a.createRef(),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;$s(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,u=e.chartValueSize;this._innerRadius=this._outerRadius-r;var s=this._processProps().arcs;return this._classNames=wv(this.props.styles,{theme:this.props.theme,className:this.props.className,chartWidth:n,chartHeight:i-this._legendsHeight,chartValueSize:u}),a.createElement("div",{className:this._classNames.root,ref:function(n){return t._rootElem=n}},a.createElement(Dl,{direction:Ks.horizontal},a.createElement("svg",{className:this._classNames.chart,role:"region","aria-label":this._getChartTitle(),onMouseLeave:this._handleMouseOut},a.createElement("g",{transform:"translate(".concat(n/2,", ").concat(i-(this._margins.bottom+this._legendsHeight),")")},this.props.chartTitle&&a.createElement("text",{x:0,y:-(this._outerRadius+11),textAnchor:"middle",className:this._classNames.chartTitle,"aria-hidden":!0},this.props.chartTitle),!this.props.hideMinMax&&a.createElement(a.Fragment,null,a.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)},Hs(this._minValue)),a.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)},Hs(this._maxValue))),s.map((function(n,i){var e,r,u=t._segments[n.segmentIndex],s=g("Arc_clip")+"".concat(i,"_").concat(n.startAngle,"_").concat(n.endAngle),l=wv(t.props.styles,{theme:t.props.theme,solidFill:t.props.enableGradient?"transparent":u.color,gradientFill:"conic-gradient(\n from ".concat(n.startAngle,"rad at 50% 100%,\n ").concat(null===(e=u.gradient)||void 0===e?void 0:e[0],",\n ").concat(null===(r=u.gradient)||void 0===r?void 0:r[1]," ").concat(n.endAngle-n.startAngle,"rad\n )"),opacity:t._legendHighlighted(u.legend)||t._noLegendHighlighted()?1:.1});return a.createElement(a.Fragment,{key:i},a.createElement("path",(0,o.Cl)({d:n.d,strokeWidth:t.state.focusedElement===u.legend?2:0,className:l.segment},Ps((0,o.Cl)({ariaLabel:Cv(u,t._minValue,t._maxValue,t.props.variant,!0)},u.accessibilityData),"img",!0),{onFocus:function(n){return t._handleFocus(n,u.legend)},onBlur:t._handleBlur,onMouseEnter:function(n){return t._handleMouseOver(n,u.legend)},onMouseMove:function(n){return t._handleMouseOver(n,u.legend)},"data-is-focusable":t._legendHighlighted(u.legend)||t._noLegendHighlighted()})),t.props.enableGradient&&a.createElement(a.Fragment,null,a.createElement("clipPath",{id:s},a.createElement("path",{d:n.d})),a.createElement("foreignObject",{x:"-50%",y:"-100%",width:"100%",height:"100%",clipPath:"url(#".concat(s,")")},a.createElement("div",{className:l.gradientSegment}))))})),this._renderNeedle(),a.createElement("g",{onMouseEnter:function(n){return t._handleMouseOver(n,"Chart value")},onMouseMove:function(n){return t._handleMouseOver(n,"Chart value")}},a.createElement(Uf,{content:Mv(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&&a.createElement(Uf,{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&&a.createElement(zn,(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,u=wv(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 a.createElement("div",{style:r},a.createElement("div",{className:"ms-fontWeight-semibold",style:{fontSize:"12pt"}},t.legend," (",l,")"),Object.keys(c).map((function(t){return a.createElement("div",{key:t,className:u.calloutBlockContainer},a.createElement("div",{className:u.calloutlegendText}," ",(0,jn.U)(t,s)),a.createElement("div",{className:u.calloutContentY},(0,jn.U)(c[t],s)))})))}return a.createElement("div",{style:i?r:{}},i&&a.createElement("div",{className:"ms-fontWeight-semibold",style:{fontSize:"12pt"}},t.legend," (",l,")"),a.createElement("div",{id:"".concat(n,"_").concat(t.y),className:u.calloutBlockContainer},o&&a.createElement(Bc,{svgProps:{className:u.shapeStyles},pathProps:{fill:t.color},shape:Os[t.index%Object.keys(Fs).length]}),a.createElement("div",null,a.createElement("div",{className:u.calloutlegendText}," ",t.legend),a.createElement("div",{className:u.calloutContentY},(0,jn.U)(t.yAxisCalloutData?t.yAxisCalloutData:t.y||t.data,s)))))},n}(a.Component),Av=(0,r.I)(kv,(function(t){var n,i,e,r,a=t.theme,u=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:[a.fonts.medium,"ms-GaugeChart",{alignItems:"center",display:"flex",flexDirection:"column",width:"100%",height:"100%"},c],chart:{display:"block",width:s,height:l},limits:{fontSize:Yt.s.small,fontWeight:Yt.BO.semibold,fill:a.palette.neutralPrimary},chartValue:{fontSize:u,fontWeight:Yt.BO.semibold,fill:a.palette.neutralPrimary},sublabel:{fontSize:Yt.s.small,fontWeight:Yt.BO.semibold,fill:a.palette.neutralPrimary},needle:{fill:a.palette.black,stroke:a.semanticColors.bodyBackground},chartTitle:{fontSize:Yt.s.small,fill:a.palette.neutralPrimary},segment:{outline:"none",stroke:a.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:a.semanticColors.bodyBackground,backgroundBlendMode:"normal, luminosity"}],calloutDateTimeContainer:{display:"flex",flexDirection:"row",justifyContent:"space-between"},calloutContentX:[(0,o.Cl)((0,o.Cl)({},a.fonts.small),{lineHeight:"16px",opacity:"0.85",color:a.semanticColors.bodySubtext})],calloutBlockContainer:[a.fonts.mediumPlus,{marginTop:"13px",color:a.semanticColors.bodyText},!h&&{selectors:(n={},n[Yt.up]={forcedColorAdjust:"none"},n),borderLeft:"4px solid ".concat(f),paddingLeft:"8px"},h&&{display:"flex"}],shapeStyles:{marginRight:"8px"},calloutlegendText:(0,o.Cl)((0,o.Cl)({},a.fonts.small),{lineHeight:"16px",selectors:(i={},i[Yt.up]={color:"CanvasText"},i),color:a.semanticColors.bodySubtext}),calloutContentY:[(0,o.Cl)((0,o.Cl)({},a.fonts.mediumPlus),{fontWeight:"bold",lineHeight:"22px",selectors:(e={},e[Yt.up]={color:"CanvasText"},e)})],descriptionMessage:[a.fonts.small,{selectors:(r={},r[Yt.up]={color:"CanvasText"},r),color:a.semanticColors.bodyText,marginTop:"10px",paddingTop:"10px",borderTop:"1px solid ".concat(a.semanticColors.menuDivider)}]}})),Sv=i(927),Vv=a.createContext(void 0);function Lv(t){const n=(4-t.length%4)%4;return t+"=".repeat(n)}function Dv(t){if("string"!=typeof t)return!1;if(t.length%4!=0&&(t=Lv(t)),!/^[A-Za-z0-9+/]+={0,2}$/.test(t))return!1;try{return Nv(t),!0}catch{return!1}}function Nv(t){if("undefined"!=typeof window&&"function"==typeof atob){const n=atob(t),i=n.length,e=new Uint8Array(i);for(let t=0;t<i;t++)e[t]=n.charCodeAt(t);return e}throw new Error("Base64 decoding is not supported in this environment.")}function Tv(t,n){t=Lv(t);try{const i=Nv(t);switch(n){case"f8":return Array.from(new Float64Array(i.buffer));case"i8":case"i4":return Array.from(new Int32Array(i.buffer));case"u8":return Array.from(new Uint32Array(i.buffer));case"i2":return Array.from(new Int16Array(i.buffer));case"i1":return Array.from(new Int8Array(i.buffer));default:try{return i.toString()}catch(t){return i}}}catch(n){throw new Error(`Failed to decode base64 value: ${t}`)}}function Ov(t){for(const[n,i]of Object.entries(t))if("object"!=typeof i||Array.isArray(i)||null===i){if("bdata"===n&&"string"==typeof i&&Dv(i)){const e=t.dtype||"utf-8";t[n]=Tv(i,e)}else if(Array.isArray(i))for(let t=0;t<i.length;t++)"object"==typeof i[t]&&null!==i[t]&&Ov(i[t])}else Ov(i)}function Ev(t){const n=JSON.parse(JSON.stringify(t.data));if(Ov(t.data),JSON.stringify(t.data)!==JSON.stringify(n)){let n=!1;for(const i of t.data||[])if(["y","x","z","r","theta"].forEach((t=>{if(i[t]&&"object"==typeof i[t]&&"bdata"in i[t]){const e=i[t].bdata;Array.isArray(e)&&e.some((t=>"number"==typeof t&&isNaN(t)))?n=!0:i[t]=e}})),n)break;if(!n)return t}return t.data=n,t}const Bv=["pie","bar","scatter","heatmap","sankey","indicator","gauge","histogram","histogram2d"],Fv="Unsupported chart - type :",Pv=t=>{const n=new Date(Date.parse(t));if(isNaN(n.getTime()))return!1;const i=n.getFullYear();return!!(/\b\d{4}\b/.test(t)||2e3!==i&&2001!==i)},_v=t=>!isNaN(parseFloat(t))&&isFinite(t),Hv=(t,n,...i)=>!!jv(t)&&0!==t.length&&(Array.isArray(t[0])?t.every((t=>t.every((t=>n(t,...i))))):t.every((t=>n(t,...i)))),Iv=t=>Hv(t,Pv),Wv=t=>Hv(t,_v),Rv=t=>!Bv.includes(`${t.type}`)&&Array.isArray(t.x)&&Hv(t.y,(t=>"number"==typeof t))&&t.x.length>0&&t.x.length===t.y.length,zv=(t,n=0)=>{if(n>15)throw new Error("Maximum json depth exceeded");if("object"==typeof t&&null!==t)for(const i in t)t.hasOwnProperty(i)&&("string"==typeof t[i]?t[i]=t[i].replace(/</g,"&lt;").replace(/>/g,"&gt;"):t[i]=zv(t[i],n+1));return t};function jv(t){return Array.isArray(t)||function(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}(t)}const $v=(t,n)=>{if(!(t=>!(Array.isArray(t.x)&&t.x.length>0&&Array.isArray(t.x[0])||Array.isArray(t.y)&&t.y.length>0&&Array.isArray(t.y[0])))(t))throw new Error("Invalid 2D series encountered.");if(n&&!Wv(t.y))throw new Error("Non numeric Y values encountered.")},Yv={indicator:[t=>{var n;if(!(null===(n=t.mode)||void 0===n?void 0:n.includes("gauge")))throw new Error(`${Fv} ${t.type}, mode: ${t.mode}`)}],histogram:[t=>$v(t,!1)],contour:[t=>{throw new Error(`${Fv} ${t.type}`)}],bar:[t=>(t=>{if("h"===t.orientation&&void 0!==t.base)throw new Error(`${Fv} Gantt`);"h"===t.orientation&&Wv(t.x)?$v(t,!1):$v(t,!0)})(t)],scatter:[t=>(t=>{if("markers"===t.mode&&!Wv(t.x))throw new Error(`${Fv} ${t.type}, mode: ${t.mode}, xAxisType: String or Date`);$v(t,!0)})(t)],scatterpolar:[t=>{if(!Wv(t.theta))throw new Error(`${Fv} ${t.type}, Non numeric theta values`);if(!Wv(t.r))throw new Error(`${Fv} ${t.type}, Non numeric r values`)}]};var Xv=Array.prototype,Gv=Xv.slice;function qv(t){return()=>t}function Uv(t){return t}function Zv(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)}function Kv(t,n,i){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-n),t._y2+t._k*(t._y1-i),t._x2,t._y2)}function Jv(t,n){this._context=t,this._k=(1-n)/6}Xv.map,Jv.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Kv(this,this._x1,this._y1)}(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,this._x1=t,this._y1=n;break;case 2:this._point=3;default:Kv(this,t,n)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=n}};var Qv=function t(n){function i(t){return new Jv(t,n)}return i.tension=function(n){return t(+n)},i}(0),tp={dot:{strokeDasharray:"1, 5",strokeLinecap:"round",strokeWidth:"2",lineBorderWidth:"4"},dash:{strokeDasharray:"5, 5",strokeLinecap:"butt",strokeWidth:"2",lineBorderWidth:"4"},longdash:{strokeDasharray:"10, 5",strokeLinecap:"butt",strokeWidth:"2",lineBorderWidth:"4"},dashdot:{strokeDasharray:"5, 5, 1, 5",strokeLinecap:"butt",strokeWidth:"2",lineBorderWidth:"4"},longdashdot:{strokeDasharray:"10, 5, 1, 5",strokeLinecap:"butt",strokeWidth:"2",lineBorderWidth:"4"},solid:{strokeDasharray:"0",strokeLinecap:"butt",strokeWidth:"2",lineBorderWidth:"4"}},np=function(t){var n=fo("%B"),i=fo("%b");return null!==n(t)||null!==i(t)};function ip(t){var n,i,e,r,o,a,u,s,l,c,f,h;return{chartTitle:"string"==typeof(null==t?void 0:t.title)?t.title:null!==(i=null===(n=null==t?void 0:t.title)||void 0===n?void 0:n.text)&&void 0!==i?i:"",xAxisTitle:"string"==typeof(null===(e=null==t?void 0:t.xaxis)||void 0===e?void 0:e.title)?null===(r=null==t?void 0:t.xaxis)||void 0===r?void 0:r.title:null!==(u=null===(a=null===(o=null==t?void 0:t.xaxis)||void 0===o?void 0:o.title)||void 0===a?void 0:a.text)&&void 0!==u?u:"",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:null!==(h=null===(f=null===(c=null==t?void 0:t.yaxis)||void 0===c?void 0:c.title)||void 0===f?void 0:f.text)&&void 0!==h?h:""}}var ep=function(t){var n=(new Date).getFullYear();if(t.length>0&&Array.isArray(t[0]))throw new Error("updateXValues:: 2D array not supported");for(var 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(),a=i[e].getFullYear(),u=i[e-1].getFullYear();o>=r?i[e-1].setFullYear(i[e].getFullYear()-1):u>a&&i[e-1].setFullYear(a)}return t.map((function(t,n){return"".concat(t," 01, ").concat(i[n].getFullYear())}))},rp=function(t,n,i){if(!n.current.has(t)){var e=Bf(n.current.size+1,0,i);return n.current.set(t,e),e}return n.current.get(t)},op=function(t){return"y2"===t.yaxis},ap=function(t,n,i,e){var r,o,a,u,s,l,c=!1;return t.forEach((function(t){if(op(t)){c=!0;var n=t.y;n&&(s=Math.min.apply(Math,n),l=Math.max.apply(Math,n))}})),c?("number"==typeof s&&"number"==typeof i&&(s=Math.min(s,i)),"number"==typeof l&&"number"==typeof e&&(l=Math.max(l,e)),(null===(r=null==n?void 0:n.yaxis2)||void 0===r?void 0:r.range)&&(s=n.yaxis2.range[0],l=n.yaxis2.range[1]),{secondaryYAxistitle:"string"==typeof(null===(o=null==n?void 0:n.yaxis2)||void 0===o?void 0:o.title)?n.yaxis2.title:"string"==typeof(null===(u=null===(a=null==n?void 0:n.yaxis2)||void 0===a?void 0:a.title)||void 0===u?void 0:u.text)?n.yaxis2.title.text:void 0,secondaryYScaleOptions:{yMinValue:s,yMaxValue:l}}):{}},up=function(t,n,i,e){var r,a,u,s={},l=0,c=ap(t.data,t.layout),f=yp(t.data,t.layout),h=f.legends,d=f.hideLegend;t.data.forEach((function(t,r){var a;null===(a=t.x)||void 0===a||a.forEach((function(a,u){var c,f;s[a]||(s[a]={xAxisPoint:a,chartData:[],lineData:[]});var d=h[r],v=null!==(f=null===(c=t.y)||void 0===c?void 0:c[u])&&void 0!==f?f:0;if("bar"===t.type){var p=rp(d,n,i);s[a].chartData.push({legend:d,data:v,color:p}),l=Math.max(l,v)}else if("scatter"===t.type||Rv(t)||e){p=rp(d,n,i);var g=sp(t.line);s[a].lineData.push((0,o.Cl)((0,o.Cl)({legend:d,y:v,color:p},g?{lineOptions:g}:{}),{useSecondaryYScale:op(t)})),op(t)||(l=Math.max(l,v))}}))}));var v=ip(t.layout),p=v.chartTitle,g=v.xAxisTitle,m=v.yAxisTitle;return(0,o.Cl)((0,o.Cl)({data:Object.values(s),width:null===(r=t.layout)||void 0===r?void 0:r.width,height:null!==(u=null===(a=t.layout)||void 0===a?void 0:a.height)&&void 0!==u?u:350,barWidth:"auto",yMaxValue:l,chartTitle:p,xAxisTitle:g,yAxisTitle:m,mode:"plotly"},c),{hideTickOverlap:!0,hideLegend:d})};function sp(t){if(t){var n={};switch(t.dash&&(n=(0,o.Cl)((0,o.Cl)({},n),tp[t.dash])),t.shape){case"spline":var i="number"==typeof t.smoothing?t.smoothing:1;n.curve=Qv.tension(1-i/1.3);break;case"hv":n.curve="stepAfter";break;case"vh":n.curve="stepBefore";break;case"hvh":n.curve="step";break;default:n.curve="linear"}return Object.keys(n).length>0?n:void 0}}var lp=function(t){return Hv(t,(function(t){return"string"==typeof t}))},cp=function(t,n,i){return null==n?-1:i?t.findIndex((function(t){return t.includes(n)})):t.findIndex((function(i,e){return n>=i.x0&&(e===t.length-1?n<=i.x1:n<i.x1)}))},fp=function(t){return t.x1-t.x0},hp=function(t){return(t.x1+t.x0)/2},dp=function(t,n,i,e){if(!t||0===t.length)return[];if(lp(t)){var r=Array.from(new Set(t)),o="number"==typeof n?Math.ceil(n):0,a="number"==typeof i?Math.floor(i)+1:r.length,u="number"==typeof e?e:1;return Pa(o,a,u).map((function(t){return r.slice(t,t+u)}))}var s=We().domain(fv(t)).nice().domain(),l=s[0],c=s[1];l="number"==typeof n?n:l,c="number"==typeof i?i:c;var f=function(){var t=Uv,n=fv,i=Zv;function e(e){Array.isArray(e)||(e=Array.from(e));var r,o,a,u=e.length,s=new Array(u);for(r=0;r<u;++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===fv&&([c,f]=hi(c,f,i)),(h=li(c,f,i))[0]<=c&&(a=ci(c,f,i)),h[h.length-1]>=f)if(t>=f&&n===fv){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(a)){if(a>0)for(r=0;r<u;++r)null!=(o=s[r])&&c<=o&&o<=f&&m[Math.min(d,Math.floor((o-c)/a))].push(e[r]);else if(a<0)for(r=0;r<u;++r)if(null!=(o=s[r])&&c<=o&&o<=f){const t=Math.floor((c-o)*a);m[Math.min(d,t+(h[t]<=o))].push(e[r])}}else for(r=0;r<u;++r)null!=(o=s[r])&&c<=o&&o<=f&&m[wi(h,o,0,d)].push(e[r]);return m}return e.value=function(n){return arguments.length?(t="function"==typeof n?n:qv(n),e):t},e.domain=function(t){return arguments.length?(n="function"==typeof t?t:qv([t[0],t[1]]),e):n},e.thresholds=function(t){return arguments.length?(i="function"==typeof t?t:qv(Array.isArray(t)?Gv.call(t):t),e):i},e}().domain([l,c]);if("number"==typeof e&&e>0){for(var h=[],d=Math.max(gp(l),gp(e)),v=mp(l,d);v<mp(c+e,d);)h.push(v),v=mp(v+e,d);return l=h[0],c=h[h.length-1],f.domain([l,c]).thresholds(h),f(t).slice(0,-1)}return f(t)},vp=function(t,n){var i,e;switch(t){case"sum":return bd(n);case"avg":return 0===n.length?0:bd(n)/n.length;case"min":return null!==(i=di(n))&&void 0!==i?i:0;case"max":return null!==(e=vi(n))&&void 0!==e?e:0;default:return n.length}},pp=function(t,n,i,e,r){switch(void 0===r&&(r=1),t){case"percent":return 0===i?0:n/i*100;case"probability":return 0===i?0:n/i;case"density":return e*r==0?0:n/(e*r);case"probability density":return i*e*r==0?0:n/(i*e*r);default:return n}},gp=function(t){var n,i;return null!==(i=null===(n=t.toString().split(".")[1])||void 0===n?void 0:n.length)&&void 0!==i?i:0},mp=function(t,n){var i=Math.pow(10,n);return Math.round(t*i)/i},yp=function(t,n){var i=[];1===t.length?i.push(t[0].name||""):t.forEach((function(t,n){i.push(t.name||"Series ".concat(n+1))}));var e=t.every((function(t){return!1===t.showlegend}));return{legends:i,hideLegend:!1===(null==n?void 0:n.showlegend)||e}},bp=function(t){var n,i,e=a.useRef(null),r=a.useRef(),u=a.useState({}),s=u[0],c=u[1];r.current=t.onResize,a.useEffect((function(){var t,n,i=(0,l.z)(e.current);return i&&i.ResizeObserver&&(n=new i.ResizeObserver((function(n){var e,o=n[0].contentRect,a=o.width,u=o.height;t=null==i?void 0:i.requestAnimationFrame((function(){c((function(t){var n=Math.floor(a),i=Math.floor(u);return t.containerWidth===n&&t.containerHeight===i?t:{containerWidth:n,containerHeight:i}}))})),null===(e=r.current)||void 0===e||e.call(r,a,u)})),e.current&&n.observe(e.current)),function(){t&&(null==i||i.cancelAnimationFrame(t)),null==n||n.disconnect()}}),[]);var f=a.useMemo((function(){var n=s.containerWidth,i=s.containerHeight;return"number"==typeof t.aspect&&t.aspect>0&&(n?i=n/t.aspect:i&&(n=i*t.aspect),"number"==typeof t.maxHeight&&i&&i>t.maxHeight&&(i=t.maxHeight)),a.Children.map(t.children,(function(t){var e;return a.cloneElement(t,{width:n,height:i,shouldResize:(null!=n?n:0)+(null!=i?i:0),styles:(0,o.Cl)((0,o.Cl)({},t.props.styles),{root:(0,o.Cl)((0,o.Cl)({},null===(e=t.props.styles)||void 0===e?void 0:e.root),{width:n,height:i})})})}))}),[s,t.aspect,t.maxHeight,t.children]);return a.createElement("div",{ref:e,style:{width:null!==(n=t.width)&&void 0!==n?n:"100%",height:null!==(i=t.height)&&void 0!==i?i:"100%",minWidth:t.minWidth,minHeight:t.minHeight,maxHeight:t.maxHeight}},f)};function xp(t){return function(n){var i=n.aspect,e=n.width,r=n.height,u=n.minWidth,s=n.minHeight,l=n.maxHeight,c=n.onResize,f=(0,o.Tt)(n,["aspect","width","height","minWidth","minHeight","maxHeight","onResize"]);return a.createElement(bp,{aspect:i,width:e,height:r,minWidth:u,minHeight:s,maxHeight:l,onResize:c},a.createElement(t,(0,o.Cl)({},f)))}}var wp=xp(Rf),Cp=xp(ud),Mp=xp(xh),kp=xp(bv),Ap=xp(_h),Sp=xp(pd),Vp=xp(Gd),Lp=xp(Av),Dp=xp(fd),Np=xp(rd),Tp=a.forwardRef((function(t,n){var i,e,r=zv(t.chartSchema).plotlySchema,u=(t=>{var n;try{zv(t)}catch(t){return{isValid:!1,errorMessage:`Invalid JSON: ${t}`}}try{let i=(t=>{try{const n=t;if(!n)throw new Error("Plotly input is null or undefined");if(!n.data)throw new Error("Plotly input data is null or undefined");if(0===n.data.length)throw new Error("Plotly input data is empty");return n}catch(t){throw new Error(`Invalid plotly schema: ${t}`)}})(t);try{i=Ev(i)}catch(t){return{isValid:!1,errorMessage:`Failed to decode plotly schema: ${t}`}}const e=(t=>{const n=[],i=t.map(((t,i)=>{let e=t.type;if(Rv(t)&&(e="scatter"),e&&Yv[e]){const r=Yv[e];for(const e of r)try{e(t)}catch(t){return n.push(`data[${i}]: ${t}`),[-1,""]}}return[i,""]})).filter((t=>t[0]>=0));if(0===i.length)throw new Error(n.join("; "));return i})(i.data),r=i.data[e[0][0]];switch(r.type){case"pie":return{isValid:!0,type:"donut",validTracesInfo:e};case"histogram2d":case"heatmap":return{isValid:!0,type:"heatmap",validTracesInfo:e};case"sankey":return{isValid:!0,type:"sankey",validTracesInfo:e};case"indicator":case"gauge":return{isValid:!0,type:"gauge",validTracesInfo:e};case"histogram":return{isValid:!0,type:"verticalbar",validTracesInfo:e};case"scatterpolar":return{isValid:!0,type:"scatterpolar",validTracesInfo:e};default:const t=e.some((t=>"bar"===i.data[t[0]].type)),o=e.some((t=>"scatter"===i.data[t[0]].type||Rv(i.data[t[0]])));if(t&&o)return{isValid:!0,type:"verticalstackedbar",validTracesInfo:e};if(t){const t=r;return"h"===t.orientation&&Wv(t.x)?{isValid:!0,type:"horizontalbar",validTracesInfo:e}:["group","overlay"].includes(null===(n=null==i?void 0:i.layout)||void 0===n?void 0:n.barmode)?{isValid:!0,type:"groupedverticalbar",validTracesInfo:e}:{isValid:!0,type:"verticalstackedbar",validTracesInfo:e}}if(o){const t=r,n=e.some((t=>{const n=i.data[t[0]];return"tonexty"===n.fill||"tozeroy"===n.fill||!!n.stackgroup})),o=Iv(t.x),a=Wv(t.x);return o||a?{isValid:!0,type:n?"area":"line",validTracesInfo:e}:n?{isValid:!1,errorMessage:"Fallback to VerticalStackedBarChart is not allowed for Area Charts."}:{isValid:!0,type:"fallback",validTracesInfo:e}}return{isValid:!1,errorMessage:`${Fv} :${r.type}`}}}catch(t){return{isValid:!1,errorMessage:`Invalid plotly schema: ${t}`}}})(r);if(!u.isValid)throw new Error("Invalid chart schema: ".concat(u.errorMessage));var s=r;try{s=Ev(s)}catch(t){throw new Error("Failed to decode plotly schema: ".concat(t))}var l=(0,o.Cl)((0,o.Cl)({},s),{data:u.validTracesInfo.map((function(t){return s.data[t[0]]}))}),c=r.selectedLegends,f=a.useRef(new Map),h=function(){var t=a.useContext(Vv),n=(0,Sv.m)(["theme"]).theme;return t||n||(0,wn.a)({})}(),d=null!==(i=null==h?void 0:h.isInverted)&&void 0!==i&&i,v=a.useRef(null);jv(c)||(c=[]);var p=a.useState(c),g=p[0],m=p[1];a.useEffect((function(){var n=zv(t.chartSchema).plotlySchema.selectedLegends;m(null!=n?n:[])}),[t.chartSchema]);var y={legendProps:{canSelectMultipleLegends:!0,onChange:function(n){m(n),t.onSchemaChange&&t.onSchemaChange({plotlySchema:{plotlyInput:s,selectedLegends:n}})},selectedLegends:g},componentRef:v,calloutProps:{layerProps:{eventBubblingEnabled:!0}}},b=function(t,n){var i,e="markers"===(null===(i=t[0])||void 0===i?void 0:i.mode),r=(0,o.Cl)((0,o.Cl)({},function(t,n,i,e){var r,a,u,s,l,c,f=ap(t.data,t.layout,n?0:void 0,n?0:void 0),h="tonexty",d=yp(t.data,t.layout),v=d.legends,p=d.hideLegend,g=t.data.map((function(t,n){var r=t.x,a="string"==typeof r[0],u=Iv(r),s=Wv(r),l=v[n],c=rp(l,i,e);h="tozeroy"===t.fill?"tozeroy":"tonexty";var f=sp(t.line);return(0,o.Cl)((0,o.Cl)({legend:l,data:r.map((function(n,i){var e,r;return(0,o.Cl)({x:a?u?new Date(n):s?parseFloat(n):n:n,y:t.y[i]},Array.isArray(null===(e=t.marker)||void 0===e?void 0:e.size)?{markerSize:t.marker.size[i]}:"number"==typeof(null===(r=t.marker)||void 0===r?void 0:r.size)?{markerSize:t.marker.size}:{})})),color:c},f?{lineOptions:f}:{}),{useSecondaryYScale:op(t)})})),m=Ds(g),y=ip(t.layout),b=y.chartTitle,x=y.xAxisTitle,w=y.yAxisTitle,C={chartTitle:b,lineChartData:g};return n?(0,o.Cl)((0,o.Cl)({data:C,supportNegativeData:!0,xAxisTitle:x,yAxisTitle:w},f),{mode:h,width:null===(r=t.layout)||void 0===r?void 0:r.width,height:null!==(u=null===(a=t.layout)||void 0===a?void 0:a.height)&&void 0!==u?u:350,hideTickOverlap:!0,hideLegend:p}):(0,o.Cl)((0,o.Cl)({data:C,supportNegativeData:!0,xAxisTitle:x,yAxisTitle:w},f),{roundedTicks:!0,yMinValue:m.startValue,yMaxValue:m.endValue,width:null===(s=t.layout)||void 0===s?void 0:s.width,height:null!==(c=null===(l=t.layout)||void 0===l?void 0:l.height)&&void 0!==c?c:350,hideTickOverlap:!0,enableReflow:!1,hideLegend:p})}({data:t,layout:s.layout},n,f,d)),y);return n?a.createElement(Ap,(0,o.Cl)({},r)):a.createElement(Mp,(0,o.Cl)({},r,{lineMode:e?"scatter":"default"}))},x=a.useCallback((function(t){return new Promise((function(n,i){if(!v.current||"function"!=typeof v.current.toImage)return i(Error("Chart cannot be exported as image"));v.current.toImage((0,o.Cl)({background:h.semanticColors.bodyBackground,scale:5},t)).then(n).catch(i)}))}),[h]);switch(a.useImperativeHandle(t.componentRef,(function(){return{exportAsImage:x}}),[x]),u.type){case"donut":return a.createElement(wp,(0,o.Cl)({},function(t,n,i){var e,r,o,a,u,s,l,c=t.data[0],f={};null===(e=c.labels)||void 0===e||e.forEach((function(t,e){var r,o=rp(t,n,i),a="number"==typeof(null===(r=c.values)||void 0===r?void 0:r[e])?c.values[e]:1;f[t]?f[t].data+=a:f[t]={legend:t,data:a,color:o}}));var h=null!==(o=null===(r=t.layout)||void 0===r?void 0:r.width)&&void 0!==o?o:440,d=null!==(u=null===(a=t.layout)||void 0===a?void 0:a.height)&&void 0!==u?u:220,v=!!c.textinfo&&!["value","percent","label+percent"].includes(c.textinfo),p=v?0:80,g=40+(v?0:40),m=c.hole?c.hole*(Math.min(h-p,d-g)/2):0;return{data:{chartTitle:ip(t.layout).chartTitle,chartData:Object.values(f)},hideLegend:!1===(null===(s=t.layout)||void 0===s?void 0:s.showlegend),width:null===(l=t.layout)||void 0===l?void 0:l.width,height:d,innerRadius:m,hideLabels:v,showLabelsInPercent:!c.textinfo||["percent","label+percent"].includes(c.textinfo)}}(l,f,d),y));case"horizontalbar":return a.createElement(kp,(0,o.Cl)({},function(t,n,i){var e,r,o,a,u,s,l,c,f,h,d,v,p,g,m,y,b=yp(t.data,t.layout),x=b.legends,w=b.hideLegend,C=t.data.map((function(t,e){var r=x[e],o=rp(r,n,i);return t.y.map((function(n,i){return{x:t.x[i],y:n,legend:r,color:o}}))})).reverse().flat().reverse(),M=null!==(r=null===(e=t.layout)||void 0===e?void 0:e.height)&&void 0!==r?r:450,k=M-(null!==(u=null===(a=null===(o=t.layout)||void 0===o?void 0:o.margin)||void 0===a?void 0:a.l)&&void 0!==u?u:0)-(null!==(c=null===(l=null===(s=t.layout)||void 0===s?void 0:s.margin)||void 0===l?void 0:l.pad)&&void 0!==c?c:0),A=t.data.reduce((function(t,n){var i;return t+((null===(i=n.y)||void 0===i?void 0:i.length)||0)}),0),S=k/(A*(1+1/(1+.01*A))),V=ip(t.layout);return{data:C,chartTitle:V.chartTitle,xAxisTitle:V.xAxisTitle,yAxisTitle:V.yAxisTitle,secondaryYAxistitle:"string"==typeof(null===(h=null===(f=t.layout)||void 0===f?void 0:f.yaxis2)||void 0===h?void 0:h.title)?null===(v=null===(d=t.layout)||void 0===d?void 0:d.yaxis2)||void 0===v?void 0:v.title:(null===(m=null===(g=null===(p=t.layout)||void 0===p?void 0:p.yaxis2)||void 0===g?void 0:g.title)||void 0===m?void 0:m.text)||"",barHeight:S,showYAxisLables:!0,height:M,width:null===(y=t.layout)||void 0===y?void 0:y.width,hideTickOverlap:!0,hideLegend:w}}(l,f,d),y));case"groupedverticalbar":return a.createElement(Dp,(0,o.Cl)({},function(t,n,i){var e,r,a,u={},s=ap(t.data,t.layout,0,0),l=yp(t.data,t.layout),c=l.legends,f=l.hideLegend;t.data.forEach((function(t,e){var r;null===(r=t.x)||void 0===r||r.forEach((function(r,o){var a,s;if(u[r]||(u[r]={name:r.toString(),series:[]}),"bar"===t.type){var l=c[e],f=rp(l,n,i);u[r].series.push({key:l,data:null!==(s=null===(a=t.y)||void 0===a?void 0:a[o])&&void 0!==s?s:0,xAxisCalloutData:r,color:f,legend:l,useSecondaryYScale:op(t)})}}))}));var h=ip(t.layout),d=h.chartTitle,v=h.xAxisTitle,p=h.yAxisTitle;return(0,o.Cl)((0,o.Cl)({data:Object.values(u),width:null===(e=t.layout)||void 0===e?void 0:e.width,height:null!==(a=null===(r=t.layout)||void 0===r?void 0:r.height)&&void 0!==a?a:350,barwidth:"auto",chartTitle:d,xAxisTitle:v,yAxisTitle:p,mode:"plotly"},s),{hideTickOverlap:!0,hideLegend:f})}(l,f,d),y));case"verticalstackedbar":return a.createElement(Cp,(0,o.Cl)({},up(l,f,d),y));case"heatmap":return a.createElement(Sp,(0,o.Cl)({},function(t){var n,i,e,r,o,a,u,s,l,c,f,h,d=t.data[0],v=[],p=Number.POSITIVE_INFINITY,g=Number.NEGATIVE_INFINITY;if("histogram2d"===d.type){var m=lp(d.x),y=lp(d.y),b=dp(d.x,null===(n=d.xbins)||void 0===n?void 0:n.start,null===(i=d.xbins)||void 0===i?void 0:i.end,null===(e=d.xbins)||void 0===e?void 0:e.size),x=dp(d.y,null===(r=d.ybins)||void 0===r?void 0:r.start,null===(o=d.ybins)||void 0===o?void 0:o.end,null===(a=d.ybins)||void 0===a?void 0:a.size),w=x.map((function(){return b.map((function(){return[]}))})),C=0;null===(u=d.x)||void 0===u||u.forEach((function(t,n){var i,e,r,o=cp(b,t,m),a=cp(x,null===(i=d.y)||void 0===i?void 0:i[n],y);-1!==o&&-1!==a&&w[a][o].push(null!==(r=null===(e=d.z)||void 0===e?void 0:e[n])&&void 0!==r?r:1)}));var M=w.map((function(t){return t.map((function(t){var n=vp(d.histfunc,t);return C+=n,n}))}));b.forEach((function(t,n){x.forEach((function(i,e){var r=pp(d.histnorm,M[e][n],C,m?t.length:fp(t),y?i.length:fp(i));v.push({x:m?t.join(", "):hp(t),y:y?i.join(", "):hp(i),value:r,rectText:r}),"number"==typeof r&&(p=Math.min(p,r),g=Math.max(g,r))}))}))}else null===(s=d.x)||void 0===s||s.forEach((function(n,i){var e;null===(e=d.y)||void 0===e||e.forEach((function(e,r){var o,a,u,s,l,c,f=null===(a=null===(o=d.z)||void 0===o?void 0:o[r])||void 0===a?void 0:a[i];v.push({x:"date"===(null===(s=null===(u=t.layout)||void 0===u?void 0:u.xaxis)||void 0===s?void 0:s.type)||null!=n?n:0,y:(null===(c=null===(l=t.layout)||void 0===l?void 0:l.yaxis)||void 0===c||c.type,e),value:f,rectText:f}),"number"==typeof f&&(p=Math.min(p,f),g=Math.max(g,f))}))}));var k={legend:null!==(l=d.name)&&void 0!==l?l:"",data:v,value:0},A=[p,(g+p)/2,g],S=[Ff(Lf.color1),Ff(Lf.color2),Ff(Lf.color3)],V=Array.isArray(d.colorscale)?d.colorscale.map((function(t){return t[0]*(g-p)+p})):A,L=Array.isArray(d.colorscale)?d.colorscale.map((function(t){return t[1]})):S,D=ip(t.layout);return{data:[k],domainValuesForColorScale:V,rangeValuesForColorScale:L,hideLegend:!0,showYAxisLables:!0,chartTitle:D.chartTitle,xAxisTitle:D.xAxisTitle,yAxisTitle:D.yAxisTitle,sortOrder:"none",width:null===(c=t.layout)||void 0===c?void 0:c.width,height:null!==(h=null===(f=t.layout)||void 0===f?void 0:f.height)&&void 0!==h?h:350,hideTickOverlap:!0}}(l),y,{legendProps:{}}));case"sankey":return a.createElement(Vp,(0,o.Cl)({},function(t,n,i){var e,r,a,u,s,l,c,f,h=t.data[0],d=h.link,v=h.node,p=(null!==(e=null==d?void 0:d.value)&&void 0!==e?e:[]).map((function(t,n){return{value:t,source:null==d?void 0:d.source[n],target:null==d?void 0:d.target[n]}})).filter((function(t){return t.source>=0&&t.target>=0&&t.source!==t.target})),g={nodes:null===(r=v.label)||void 0===r?void 0:r.map((function(t,e){return{nodeId:e,name:t,color:rp(t,n,i)}})),links:p.map((function(t,n){return(0,o.Cl)({},t)}))},m={root:(0,o.Cl)({},(null===(u=null===(a=t.layout)||void 0===a?void 0:a.font)||void 0===u?void 0:u.size)?{fontSize:null===(s=t.layout.font)||void 0===s?void 0:s.size}:{})};return{data:{chartTitle:ip(t.layout).chartTitle,SankeyChartData:g},width:null===(l=t.layout)||void 0===l?void 0:l.width,height:null!==(f=null===(c=t.layout)||void 0===c?void 0:c.height)&&void 0!==f?f:468,styles:m,enableReflow:!0}}(l,f,d),y));case"gauge":return a.createElement(Lp,(0,o.Cl)({},function(t,n,i){var e,r,o,a,u,s,l,c,f,h,d,v,p,g,m,y,b,x,w,C,M,k,A,S,V,L,D,N,T,O,E,B,F,P=t.data[0],_=(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,a=t.name||"Segment ".concat(e+1),u=rp(a,n,i);return{legend:a,size:(null===(r=t.range)||void 0===r?void 0:r[1])-(null===(o=t.range)||void 0===o?void 0:o[0]),color:u}})):[{legend:"Current",size:null!==(o=P.value)&&void 0!==o?o:0-(null!==(l=null===(s=null===(u=null===(a=P.gauge)||void 0===a?void 0:a.axis)||void 0===u?void 0:u.range)||void 0===s?void 0:s[0])&&void 0!==l?l:0),color:rp("Current",n,i)},{legend:"Target",size:(null!==(d=null===(h=null===(f=null===(c=P.gauge)||void 0===c?void 0:c.axis)||void 0===f?void 0:f.range)||void 0===h?void 0:h[1])&&void 0!==d?d:100)-(null!==(v=P.value)&&void 0!==v?v:0),color:Lf.disabled}];if(null===(p=P.delta)||void 0===p?void 0:p.reference){var H=P.value-P.delta.reference;H>=0?(B="▲ ".concat(H),F=Ff(Lf.success,i)):(B="▼ ".concat(Math.abs(H)),F=Ff(Lf.error,i))}var I={sublabel:{fill:F}},W=ip(t.layout).chartTitle;return{segments:_,chartValue:null!==(g=P.value)&&void 0!==g?g:0,chartTitle:W,sublabel:B,minValue:"number"==typeof(null===(b=null===(y=null===(m=P.gauge)||void 0===m?void 0:m.axis)||void 0===y?void 0:y.range)||void 0===b?void 0:b[0])?null===(C=null===(w=null===(x=P.gauge)||void 0===x?void 0:x.axis)||void 0===w?void 0:w.range)||void 0===C?void 0:C[0]:void 0,maxValue:"number"==typeof(null===(A=null===(k=null===(M=P.gauge)||void 0===M?void 0:M.axis)||void 0===k?void 0:k.range)||void 0===A?void 0:A[1])?null===(L=null===(V=null===(S=P.gauge)||void 0===S?void 0:S.axis)||void 0===V?void 0:V.range)||void 0===L?void 0:L[1]:void 0,chartValueFormat:function(){var t,n;return null!==(n=null===(t=P.value)||void 0===t?void 0:t.toString())&&void 0!==n?n:""},width:null===(D=t.layout)||void 0===D?void 0:D.width,height:null!==(T=null===(N=t.layout)||void 0===N?void 0:N.height)&&void 0!==T?T:220,styles:I,variant:(null===(E=null===(O=P.gauge)||void 0===O?void 0:O.steps)||void 0===E?void 0:E.length)?dv.MultipleSegments:dv.SingleSegment}}(l,f,d),y));case"verticalbar":return a.createElement(Np,(0,o.Cl)({},function(t,n,i){var e,r,a,u=[],s=yp(t.data,t.layout),l=s.legends,c=s.hideLegend;t.data.forEach((function(t,e){var r,a,s;if(t.x){var c=lp(t.x),f=dp(t.x,null===(r=t.xbins)||void 0===r?void 0:r.start,null===(a=t.xbins)||void 0===a?void 0:a.end,null===(s=t.xbins)||void 0===s?void 0:s.size),h=f.map((function(){return[]})),d=0;t.x.forEach((function(n,i){var e,r,o=cp(f,n,c);-1!==o&&h[o].push(null!==(r=null===(e=t.y)||void 0===e?void 0:e[i])&&void 0!==r?r:1)}));var v=h.map((function(n){var i=vp(t.histfunc,n);return d+=i,i}));f.forEach((function(r,a){var s=l[e],f=rp(s,n,i),h=pp(t.histnorm,v[a],d,c?r.length:fp(r));u.push((0,o.Cl)({x:c?r.join(", "):hp(r),y:h,legend:s,color:f},c?{}:{xAxisCalloutData:"[".concat(r.x0," - ").concat(r.x1,")")}))}))}}));var f=ip(t.layout),h=f.chartTitle,d=f.xAxisTitle,v=f.yAxisTitle;return{data:u,width:null===(e=t.layout)||void 0===e?void 0:e.width,height:null!==(a=null===(r=t.layout)||void 0===r?void 0:r.height)&&void 0!==a?a:350,supportNegativeData:!0,chartTitle:h,xAxisTitle:d,yAxisTitle:v,mode:"histogram",hideTickOverlap:!0,maxBarWidth:50,hideLegend:c}}(l,f,d),y));case"area":case"line":case"fallback":case"scatterpolar":if("scatterpolar"===u.type){var w=function(t){for(var n=(0,o.Cl)({},t),i=0;i<t.data.length;i++){var e=t.data[i];e.x=[],e.y=[];for(var r=0;r<e.r.length;r++){var a=e.theta[r]*Math.PI/180,u=e.r[r];e.x[r]=u*Math.cos(a),e.y[r]=u*Math.sin(a)}n.data[i]=e}return n}(l);l.data=w.data}return function(t){void 0===t&&(t=!1);var n=l.data[0].x,i=Iv(n),e=Wv(n),r=Hv(n,np);if(i||e)return b(l.data,t);if(r){var u=l.data.map((function(t){return(0,o.Cl)((0,o.Cl)({},t),{x:ep(t.x)})}));return b(u,t)}if(t)throw new Error("Fallback to VerticalStackedBarChart is not allowed for Area Charts.");return a.createElement(Cp,(0,o.Cl)({},up(l,f,d,!0),y))}(l.data.some((function(t){return"tonexty"===t.fill||"tozeroy"===t.fill||!!t.stackgroup})));default:throw new Error("Unsupported chart type :".concat(null===(e=l.data[0])||void 0===e?void 0:e.type))}}));Tp.displayName="DeclarativeChart",(0,i(887).v)("@fluentui/react-charting","0.0.0"),FluentUIReactCharting=e}();