@fluentui/react-charting 5.10.0 → 5.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (75) hide show
  1. package/CHANGELOG.json +22 -1
  2. package/CHANGELOG.md +12 -2
  3. package/dist/react-charting.js +1 -1
  4. package/dist/react-charting.min.js +1 -1
  5. package/lib/Sparkline.d.ts +1 -0
  6. package/lib/Sparkline.js +2 -0
  7. package/lib/Sparkline.js.map +1 -0
  8. package/lib/components/Sparkline/Sparkline.base.d.ts +18 -0
  9. package/lib/components/Sparkline/Sparkline.base.js +65 -0
  10. package/lib/components/Sparkline/Sparkline.base.js.map +1 -0
  11. package/lib/components/Sparkline/Sparkline.d.ts +3 -0
  12. package/lib/components/Sparkline/Sparkline.js +6 -0
  13. package/lib/components/Sparkline/Sparkline.js.map +1 -0
  14. package/lib/components/Sparkline/Sparkline.styles.d.ts +2 -0
  15. package/lib/components/Sparkline/Sparkline.styles.js +10 -0
  16. package/lib/components/Sparkline/Sparkline.styles.js.map +1 -0
  17. package/lib/components/Sparkline/Sparkline.types.d.ts +46 -0
  18. package/lib/components/Sparkline/Sparkline.types.js +2 -0
  19. package/lib/components/Sparkline/Sparkline.types.js.map +1 -0
  20. package/lib/components/Sparkline/index.d.ts +2 -0
  21. package/lib/components/Sparkline/index.js +3 -0
  22. package/lib/components/Sparkline/index.js.map +1 -0
  23. package/lib/index.d.ts +1 -0
  24. package/lib/index.js +1 -0
  25. package/lib/index.js.map +1 -1
  26. package/lib/version.js +1 -1
  27. package/lib/version.js.map +1 -1
  28. package/lib-amd/Sparkline.d.ts +1 -0
  29. package/lib-amd/Sparkline.js +6 -0
  30. package/lib-amd/Sparkline.js.map +1 -0
  31. package/lib-amd/components/Sparkline/Sparkline.base.d.ts +18 -0
  32. package/lib-amd/components/Sparkline/Sparkline.base.js +63 -0
  33. package/lib-amd/components/Sparkline/Sparkline.base.js.map +1 -0
  34. package/lib-amd/components/Sparkline/Sparkline.d.ts +3 -0
  35. package/lib-amd/components/Sparkline/Sparkline.js +8 -0
  36. package/lib-amd/components/Sparkline/Sparkline.js.map +1 -0
  37. package/lib-amd/components/Sparkline/Sparkline.styles.d.ts +2 -0
  38. package/lib-amd/components/Sparkline/Sparkline.styles.js +15 -0
  39. package/lib-amd/components/Sparkline/Sparkline.styles.js.map +1 -0
  40. package/lib-amd/components/Sparkline/Sparkline.types.d.ts +46 -0
  41. package/lib-amd/components/Sparkline/Sparkline.types.js +5 -0
  42. package/lib-amd/components/Sparkline/Sparkline.types.js.map +1 -0
  43. package/lib-amd/components/Sparkline/index.d.ts +2 -0
  44. package/lib-amd/components/Sparkline/index.js +7 -0
  45. package/lib-amd/components/Sparkline/index.js.map +1 -0
  46. package/lib-amd/index.d.ts +1 -0
  47. package/lib-amd/index.js +2 -1
  48. package/lib-amd/index.js.map +1 -1
  49. package/lib-amd/version.js +1 -1
  50. package/lib-amd/version.js.map +1 -1
  51. package/lib-commonjs/Sparkline.d.ts +1 -0
  52. package/lib-commonjs/Sparkline.js +5 -0
  53. package/lib-commonjs/Sparkline.js.map +1 -0
  54. package/lib-commonjs/components/Sparkline/Sparkline.base.d.ts +18 -0
  55. package/lib-commonjs/components/Sparkline/Sparkline.base.js +68 -0
  56. package/lib-commonjs/components/Sparkline/Sparkline.base.js.map +1 -0
  57. package/lib-commonjs/components/Sparkline/Sparkline.d.ts +3 -0
  58. package/lib-commonjs/components/Sparkline/Sparkline.js +9 -0
  59. package/lib-commonjs/components/Sparkline/Sparkline.js.map +1 -0
  60. package/lib-commonjs/components/Sparkline/Sparkline.styles.d.ts +2 -0
  61. package/lib-commonjs/components/Sparkline/Sparkline.styles.js +14 -0
  62. package/lib-commonjs/components/Sparkline/Sparkline.styles.js.map +1 -0
  63. package/lib-commonjs/components/Sparkline/Sparkline.types.d.ts +46 -0
  64. package/lib-commonjs/components/Sparkline/Sparkline.types.js +3 -0
  65. package/lib-commonjs/components/Sparkline/Sparkline.types.js.map +1 -0
  66. package/lib-commonjs/components/Sparkline/index.d.ts +2 -0
  67. package/lib-commonjs/components/Sparkline/index.js +6 -0
  68. package/lib-commonjs/components/Sparkline/index.js.map +1 -0
  69. package/lib-commonjs/index.d.ts +1 -0
  70. package/lib-commonjs/index.js +1 -0
  71. package/lib-commonjs/index.js.map +1 -1
  72. package/lib-commonjs/version.js +1 -1
  73. package/lib-commonjs/version.js.map +1 -1
  74. package/package.json +3 -3
  75. package/src/components/Sparkline/Sparkline.types.ts +55 -0
@@ -1,3 +1,3 @@
1
1
  /*! For license information please see react-charting.min.js.LICENSE.txt */
2
- var FluentUIReactCharting;!function(){"use strict";var e={d:function(t,n){for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})}};e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),e.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},e.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var t={};e.r(t),e.d(t,{AreaChart:function(){return $h},CartesianChart:function(){return gh},ChartHoverCard:function(){return uc},DonutChart:function(){return dh},GroupedVerticalBarChart:function(){return Cp},HeatMapChart:function(){return Lp},HorizontalBarChart:function(){return Oc},Legends:function(){return kd},LineChart:function(){return Th},MultiStackedBarChart:function(){return hp},PieChart:function(){return ap},SankeyChart:function(){return Yp},Shape:function(){return Sd},StackedBarChart:function(){return up},Textbox:function(){return Lh},VerticalBarChart:function(){return vp},VerticalStackedBarChart:function(){return _p},getChartHoverCardStyles:function(){return lc}});var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},n(e,t)};function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var i=function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},i.apply(this,arguments)};function o(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function a(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}Object.create,Object.create;var s=React;function l(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(e&&1===e.length&&e[0]&&!e[0].subComponentStyles)return e[0];for(var n={},r={},i=0,o=e;i<o.length;i++){var s=o[i];if(s)for(var u in s)if(s.hasOwnProperty(u)){if("subComponentStyles"===u&&void 0!==s.subComponentStyles){var c=s.subComponentStyles;for(var d in c)c.hasOwnProperty(d)&&(r.hasOwnProperty(d)?r[d].push(c[d]):r[d]=[c[d]]);continue}var h=n[u],p=s[u];n[u]=void 0===h?p:a(a([],Array.isArray(h)?h:[h]),Array.isArray(p)?p:[p])}}if(Object.keys(r).length>0){n.subComponentStyles={};var f=n.subComponentStyles,g=function(e){if(r.hasOwnProperty(e)){var t=r[e];f[e]=function(e){return l.apply(void 0,t.map((function(t){return"function"==typeof t?t(e):t})))}}};for(var d in r)g(d)}return n}var u=void 0;try{u=window}catch(e){}function c(e){if(void 0!==u){var t=e;return t&&t.ownerDocument&&t.ownerDocument.defaultView?t.ownerDocument.defaultView:u}}var d=0,h=function(){function e(){}return e.getValue=function(e,t){var n=p();return void 0===n[e]&&(n[e]="function"==typeof t?t():t),n[e]},e.setValue=function(e,t){var n=p(),r=n.__callbacks__,i=n[e];if(t!==i){n[e]=t;var o={oldValue:i,value:t,key:e};for(var a in r)r.hasOwnProperty(a)&&r[a](o)}return t},e.addChangeListener=function(e){var t=e.__id__,n=f();t||(t=e.__id__=String(d++)),n[t]=e},e.removeChangeListener=function(e){delete f()[e.__id__]},e}();function p(){var e,t=c()||{};return t.__globalSettings__||(t.__globalSettings__=((e={}).__callbacks__={},e)),t.__globalSettings__}function f(){return p().__callbacks__}var g={settings:{},scopedSettings:{},inCustomizerContext:!1},v=h.getValue("customizations",{settings:{},scopedSettings:{},inCustomizerContext:!1}),m=[],y=function(){function e(){}return e.reset=function(){v.settings={},v.scopedSettings={}},e.applySettings=function(t){v.settings=i(i({},v.settings),t),e._raiseChange()},e.applyScopedSettings=function(t,n){v.scopedSettings[t]=i(i({},v.scopedSettings[t]),n),e._raiseChange()},e.getSettings=function(e,t,n){void 0===n&&(n=g);for(var r={},i=t&&n.scopedSettings[t]||{},o=t&&v.scopedSettings[t]||{},a=0,s=e;a<s.length;a++){var l=s[a];r[l]=i[l]||n.settings[l]||o[l]||v.settings[l]}return r},e.applyBatchedUpdates=function(t,n){e._suppressUpdates=!0;try{t()}catch(e){}e._suppressUpdates=!1,n||e._raiseChange()},e.observe=function(e){m.push(e)},e.unobserve=function(e){m=m.filter((function(t){return t!==e}))},e._raiseChange=function(){e._suppressUpdates||m.forEach((function(e){return e()}))},e}(),_=s.createContext({customizations:{inCustomizerContext:!1,settings:{},scopedSettings:{}}});var x=["theme","styles"];function b(e,t,n,r,a){var u=(r=r||{scope:"",fields:void 0}).scope,c=r.fields,d=void 0===c?x:c,h=s.forwardRef((function(r,a){var c,h,p,f,g,v,m=s.useRef(),x=(c=d,h=u,p=s.useState(0)[1],f=function(){return p((function(e){return++e}))},g=s.useContext(_).customizations,v=g.inCustomizerContext,s.useEffect((function(){return v||y.observe(f),function(){v||y.unobserve(f)}}),[v]),y.getSettings(c,h,g)),b=x.styles,C=(x.dir,o(x,["styles","dir"])),S=n?n(r):void 0,E=m.current&&m.current.__cachedInputs__||[],L=r.styles;if(!m.current||b!==E[1]||L!==E[2]){var k=function(e){return function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=[],i=0,o=t;i<o.length;i++){var a=o[i];a&&r.push("function"==typeof a?a(e):a)}return 1===r.length?r[0]:r.length?l.apply(void 0,r):{}}(e,t,b,L)};k.__cachedInputs__=[t,b,L],k.__noStyleOverride__=!b&&!L,m.current=k}return s.createElement(e,i({ref:a},C,S,r,{styles:m.current}))}));h.displayName="Styled"+(e.displayName||e.name);var p=a?s.memo(h):h;return h.displayName&&(p.displayName=h.displayName),p}var C,S="undefined"!=typeof navigator&&/rv:11.0/.test(navigator.userAgent),E={};try{E=window||{}}catch(M){}var L=function(){function e(e,t){var n,r,o,a,s,l;this._rules=[],this._preservedRules=[],this._counter=0,this._keyToClassName={},this._onInsertRuleCallbacks=[],this._onResetCallbacks=[],this._classNameToArgs={},this._config=i({injectionMode:"undefined"==typeof document?0:1,defaultPrefix:"css",namespace:void 0,cspSettings:void 0},e),this._classNameToArgs=null!==(n=null==t?void 0:t.classNameToArgs)&&void 0!==n?n:this._classNameToArgs,this._counter=null!==(r=null==t?void 0:t.counter)&&void 0!==r?r:this._counter,this._keyToClassName=null!==(a=null!==(o=this._config.classNameCache)&&void 0!==o?o:null==t?void 0:t.keyToClassName)&&void 0!==a?a:this._keyToClassName,this._preservedRules=null!==(s=null==t?void 0:t.preservedRules)&&void 0!==s?s:this._preservedRules,this._rules=null!==(l=null==t?void 0:t.rules)&&void 0!==l?l:this._rules}return e.getInstance=function(){if(!(C=E.__stylesheet__)||C._lastStyleElement&&C._lastStyleElement.ownerDocument!==document){var t=(null==E?void 0:E.FabricConfig)||{},n=new e(t.mergeStyles,t.serializedStylesheet);C=n,E.__stylesheet__=n}return C},e.prototype.serialize=function(){return JSON.stringify({classNameToArgs:this._classNameToArgs,counter:this._counter,keyToClassName:this._keyToClassName,preservedRules:this._preservedRules,rules:this._rules})},e.prototype.setConfig=function(e){this._config=i(i({},this._config),e)},e.prototype.onReset=function(e){var t=this;return this._onResetCallbacks.push(e),function(){t._onResetCallbacks=t._onResetCallbacks.filter((function(t){return t!==e}))}},e.prototype.onInsertRule=function(e){var t=this;return this._onInsertRuleCallbacks.push(e),function(){t._onInsertRuleCallbacks=t._onInsertRuleCallbacks.filter((function(t){return t!==e}))}},e.prototype.getClassName=function(e){var t=this._config.namespace;return(t?t+"-":"")+(e||this._config.defaultPrefix)+"-"+this._counter++},e.prototype.cacheClassName=function(e,t,n,r){this._keyToClassName[t]=e,this._classNameToArgs[e]={args:n,rules:r}},e.prototype.classNameFromKey=function(e){return this._keyToClassName[e]},e.prototype.getClassNameCache=function(){return this._keyToClassName},e.prototype.argsFromClassName=function(e){var t=this._classNameToArgs[e];return t&&t.args},e.prototype.insertedRulesFromClassName=function(e){var t=this._classNameToArgs[e];return t&&t.rules},e.prototype.insertRule=function(e,t){var n=this._config.injectionMode,r=0!==n?this._getStyleElement():void 0;if(t&&this._preservedRules.push(e),r)switch(n){case 1:var i=r.sheet;try{i.insertRule(e,i.cssRules.length)}catch(e){}break;case 2:r.appendChild(document.createTextNode(e))}else this._rules.push(e);this._config.onInsertRule&&this._config.onInsertRule(e),this._onInsertRuleCallbacks.forEach((function(e){return e()}))},e.prototype.getRules=function(e){return(e?this._preservedRules.join(""):"")+this._rules.join("")},e.prototype.reset=function(){this._rules=[],this._counter=0,this._classNameToArgs={},this._keyToClassName={},this._onResetCallbacks.forEach((function(e){return e()}))},e.prototype.resetKeys=function(){this._keyToClassName={}},e.prototype._getStyleElement=function(){var e=this;return this._styleElement||"undefined"==typeof document||(this._styleElement=this._createStyleElement(),S||window.requestAnimationFrame((function(){e._styleElement=void 0}))),this._styleElement},e.prototype._createStyleElement=function(){var e=document.head,t=document.createElement("style"),n=null;t.setAttribute("data-merge-styles","true");var r=this._config.cspSettings;if(r&&r.nonce&&t.setAttribute("nonce",r.nonce),this._lastStyleElement)n=this._lastStyleElement.nextElementSibling;else{var i=this._findPlaceholderStyleTag();n=i?i.nextElementSibling:e.childNodes[0]}return e.insertBefore(t,e.contains(n)?n:null),this._lastStyleElement=t,t},e.prototype._findPlaceholderStyleTag=function(){var e=document.head;return e?e.querySelector("style[data-merge-styles]"):null},e}();function k(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=[],r=[],i=L.getInstance();function o(e){for(var t=0,a=e;t<a.length;t++){var s=a[t];if(s)if("string"==typeof s)if(s.indexOf(" ")>=0)o(s.split(" "));else{var l=i.argsFromClassName(s);l?o(l):-1===n.indexOf(s)&&n.push(s)}else Array.isArray(s)?o(s):"object"==typeof s&&r.push(s)}}return o(e),{classes:n,objects:r}}var A,w={},D={"user-select":1};function T(e,t){var n=function(){var e;if(!A){var t="undefined"!=typeof document?document:void 0,n="undefined"!=typeof navigator?navigator:void 0,r=null===(e=null==n?void 0:n.userAgent)||void 0===e?void 0:e.toLowerCase();A=t?{isWebkit:!(!t||!("WebkitAppearance"in t.documentElement.style)),isMoz:!!(r&&r.indexOf("firefox")>-1),isOpera:!!(r&&r.indexOf("opera")>-1),isMs:!(!n||!/rv:11.0/i.test(n.userAgent)&&!/Edge\/\d./i.test(navigator.userAgent))}:{isWebkit:!0,isMoz:!0,isOpera:!0,isMs:!0}}return A}(),r=e[t];if(D[r]){var i=e[t+1];D[r]&&(n.isWebkit&&e.push("-webkit-"+r,i),n.isMoz&&e.push("-moz-"+r,i),n.isMs&&e.push("-ms-"+r,i),n.isOpera&&e.push("-o-"+r,i))}}var M,P=["column-count","font-weight","flex","flex-grow","flex-shrink","fill-opacity","opacity","order","z-index","zoom"];function F(e,t){var n=e[t],r=e[t+1];if("number"==typeof r){var i=P.indexOf(n)>-1,o=n.indexOf("--")>-1,a=i||o?"":"px";e[t+1]=""+r+a}}var I="left",O="right",N=((M={}).left=O,M.right=I,M),H={"w-resize":"e-resize","sw-resize":"se-resize","nw-resize":"ne-resize"};function R(e,t,n){if(e.rtl){var r=t[n];if(!r)return;var i=t[n+1];if("string"==typeof i&&i.indexOf("@noflip")>=0)t[n+1]=i.replace(/\s*(?:\/\*\s*)?\@noflip\b(?:\s*\*\/)?\s*?/g,"");else if(r.indexOf(I)>=0)t[n]=r.replace(I,O);else if(r.indexOf(O)>=0)t[n]=r.replace(O,I);else if(String(i).indexOf(I)>=0)t[n+1]=i.replace(I,O);else if(String(i).indexOf(O)>=0)t[n+1]=i.replace(O,I);else if(N[r])t[n]=N[r];else if(H[i])t[n+1]=H[i];else switch(r){case"margin":case"padding":t[n+1]=function(e){if("string"==typeof e){var t=e.split(" ");if(4===t.length)return t[0]+" "+t[3]+" "+t[2]+" "+t[1]}return e}(i);break;case"box-shadow":t[n+1]=function(e,t){var n=e.split(" "),r=parseInt(n[0],10);return n[0]=n[0].replace(String(r),String(-1*r)),n.join(" ")}(i)}}}function V(e){var t=e&&e["&"];return t?t.displayName:void 0}var B,W=/\:global\((.+?)\)/g;function z(e,t){return e.indexOf(":global(")>=0?e.replace(W,"$1"):0===e.indexOf(":")?t+e:e.indexOf("&")<0?t+" "+e:e}function U(e,t,n,r){void 0===t&&(t={__order:[]}),0===n.indexOf("@")?j([r],t,n=n+"{"+e):n.indexOf(",")>-1?function(e){if(!W.test(e))return e;for(var t=[],n=/\:global\((.+?)\)/g,r=null;r=n.exec(e);)r[1].indexOf(",")>-1&&t.push([r.index,r.index+r[0].length,r[1].split(",").map((function(e){return":global("+e.trim()+")"})).join(", ")]);return t.reverse().reduce((function(e,t){var n=t[0],r=t[1],i=t[2];return e.slice(0,n)+i+e.slice(r)}),e)}(n).split(",").map((function(e){return e.trim()})).forEach((function(n){return j([r],t,z(n,e))})):j([r],t,z(n,e))}function j(e,t,n){void 0===t&&(t={__order:[]}),void 0===n&&(n="&");var r=L.getInstance(),i=t[n];i||(i={},t[n]=i,t.__order.push(n));for(var o=0,a=e;o<a.length;o++){var s=a[o];if("string"==typeof s){var l=r.argsFromClassName(s);l&&j(l,t,n)}else if(Array.isArray(s))j(s,t,n);else for(var u in s)if(s.hasOwnProperty(u)){var c=s[u];if("selectors"===u){var d=s.selectors;for(var h in d)d.hasOwnProperty(h)&&U(n,t,h,d[h])}else"object"==typeof c?null!==c&&U(n,t,u,c):void 0!==c&&("margin"===u||"padding"===u?Y(i,u,c):i[u]=c)}}return t}function Y(e,t,n){var r="string"==typeof n?function(e){for(var t=[],n=0,r=0,i=0;i<e.length;i++)switch(e[i]){case"(":r++;break;case")":r&&r--;break;case"\t":case" ":r||(i>n&&t.push(e.substring(n,i)),n=i+1)}return n<e.length&&t.push(e.substring(n)),t}(n):[n];0===r.length&&r.push(n),"!important"===r[r.length-1]&&(r=r.slice(0,-1).map((function(e){return e+" !important"}))),e[t+"Top"]=r[0],e[t+"Right"]=r[1]||r[0],e[t+"Bottom"]=r[2]||r[0],e[t+"Left"]=r[3]||r[1]||r[0]}function X(e,t){for(var n=[e.rtl?"rtl":"ltr"],r=!1,i=0,o=t.__order;i<o.length;i++){var a=o[i];n.push(a);var s=t[a];for(var l in s)s.hasOwnProperty(l)&&void 0!==s[l]&&(r=!0,n.push(l,s[l]))}return r?n.join(""):void 0}function q(e,t){return t<=0?"":1===t?e:e+q(e,t-1)}function K(e,t){if(!t)return"";var n,r,i,o=[];for(var a in t)t.hasOwnProperty(a)&&"displayName"!==a&&void 0!==t[a]&&o.push(a,t[a]);for(var s=0;s<o.length;s+=2)i=void 0,"-"!==(i=(n=o)[r=s]).charAt(0)&&(n[r]=w[i]=w[i]||i.replace(/([A-Z])/g,"-$1").toLowerCase()),F(o,s),R(e,o,s),T(o,s);for(s=1;s<o.length;s+=4)o.splice(s,1,":",o[s],";");return o.join("")}function Z(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=j(t),i=X(e,r);if(i){var o=L.getInstance(),a={className:o.classNameFromKey(i),key:i,args:t};if(!a.className){a.className=o.getClassName(V(r));for(var s=[],l=0,u=r.__order;l<u.length;l++){var c=u[l];s.push(c,K(e,r[c]))}a.rulesToInsert=s}return a}}function G(e,t){void 0===t&&(t=1);var n=L.getInstance(),r=e.className,i=e.key,o=e.args,a=e.rulesToInsert;if(a){for(var s=0;s<a.length;s+=2){var l=a[s+1];if(l){var u=a[s],c=(u=u.replace(/&/g,q("."+e.className,t)))+"{"+l+"}"+(0===u.indexOf("@")?"}":"");n.insertRule(c)}}n.cacheClassName(r,i,o,a)}}function $(e){if("undefined"!=typeof document){var t=e;return t&&t.ownerDocument?t.ownerDocument:document}}function Q(e){var t=null;try{var n=c();t=n?n.sessionStorage.getItem(e):null}catch(e){}return t}function J(e){B!==e&&(B=e)}function ee(){return void 0===B&&(B="undefined"!=typeof document&&!!document.documentElement&&"rtl"===document.documentElement.getAttribute("dir")),B}function te(){return{rtl:ee()}}B=ee();var ne,re="isRTL";function ie(e){if(void 0===e&&(e={}),void 0!==e.rtl)return e.rtl;if(void 0===ne){var t=Q(re);null!==t&&function(e,t){void 0===t&&(t=!1);var n=$();n&&n.documentElement.setAttribute("dir",e?"rtl":"ltr"),t&&function(e,t){var n;try{null===(n=c())||void 0===n||n.sessionStorage.setItem("isRTL",t)}catch(e){}}(0,e?"1":"0"),J(ne=e)}(ne="1"===t);var n=$();void 0===ne&&n&&J(ne="rtl"===(n.body&&n.body.getAttribute("dir")||n.documentElement.getAttribute("dir")))}return!!ne}var oe=0,ae=L.getInstance();ae&&ae.onReset&&ae.onReset((function(){return oe++}));var se="__retval__";function le(e){void 0===e&&(e={});var t=new Map,n=0,r=0,i=oe;return function(o,a){var s;if(void 0===a&&(a={}),e.useStaticStyles&&"function"==typeof o&&o.__noStyleOverride__)return o(a);r++;var u=t,d=a.theme,h=d&&void 0!==d.rtl?d.rtl:ie(),p=e.disableCaching;if(i!==oe&&(i=oe,t=new Map,n=0),e.disableCaching||(u=ce(t,o),u=ce(u,a)),!p&&u[se]||(u[se]=void 0===o?{}:function(e,t){var n={subComponentStyles:{}};if(!e[0]&&e.length<=1)return{subComponentStyles:{}};var r=l.apply(void 0,e),i=[];for(var o in r)if(r.hasOwnProperty(o)){if("subComponentStyles"===o){n.subComponentStyles=r.subComponentStyles||{};continue}var a=k(r[o]),s=a.classes,u=a.objects;(null==u?void 0:u.length)?(h=Z(t||{},{displayName:o},u))&&(i.push(h),n[o]=s.concat([h.className]).join(" ")):n[o]=s.join(" ")}for(var c=0,d=i;c<d.length;c++){var h;(h=d[c])&&G(h,null==t?void 0:t.specificityMultiplier)}return n}(["function"==typeof o?o(a):o],{rtl:!!h,specificityMultiplier:e.useStaticStyles?5:void 0}),p||n++),n>(e.cacheSize||50)){var f=c();(null===(s=null==f?void 0:f.FabricConfig)||void 0===s?void 0:s.enableClassNameCacheFullWarning)&&(console.warn("Styles are being recalculated too frequently. Cache miss rate is "+n+"/"+r+"."),console.trace()),t.clear(),n=0,e.disableCaching=!0}return u[se]}}function ue(e,t){return t=function(e){switch(e){case void 0:return"__undefined__";case null:return"__null__";default:return e}}(t),e.has(t)||e.set(t,new Map),e.get(t)}function ce(e,t){if("function"==typeof t)if(t.__cachedInputs__)for(var n=0,r=t.__cachedInputs__;n<r.length;n++)e=ue(e,r[n]);else e=ue(e,t);else if("object"==typeof t)for(var i in t)t.hasOwnProperty(i)&&(e=ue(e,t[i]));return e}var de=c()||{};void 0===de.__currentId__&&(de.__currentId__=0);var he=!1;function pe(e){if(!he){var t=L.getInstance();t&&t.onReset&&t.onReset(fe),he=!0}return(void 0===e?"id__":e)+de.__currentId__++}function fe(e){void 0===e&&(e=0),de.__currentId__=e}function ge(e,t,n){void 0===n&&(n=0);for(var r=-1,i=n;e&&i<e.length;i++)if(t(e[i],i)){r=i;break}return r}function ve(e,t){var n=ge(e,t);if(!(n<0))return e[n]}function me(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function ye(e,t){return void 0===t&&(t=!0),e&&(t&&function(e){var t,n;return e&&(n=e)&&n._virtual&&(t=e._virtual.parent),t}(e)||e.parentNode&&e.parentNode)}function _e(e,t){return e&&e!==document.body?t(e)?e:_e(ye(e),t):null}function xe(e,t,n){void 0===n&&(n=!0);var r=!1;if(e&&t)if(n)if(e===t)r=!0;else for(r=!1;t;){var i=ye(t);if(i===e){r=!0;break}t=i}else e.contains&&(r=e.contains(t));return r}function be(e){var t=Se(e,e,!0,!1,!1,!0);return!!t&&(De(t),!0)}function Ce(e,t,n,r,i,o,a,s){if(!t||!a&&t===e)return null;var l=Ee(t);if(i&&l&&(o||!ke(t)&&!Ae(t))){var u=Ce(e,t.lastElementChild,!0,!0,!0,o,a,s);if(u){if(s&&Le(u,!0)||!s)return u;var c=Ce(e,u.previousElementSibling,!0,!0,!0,o,a,s);if(c)return c;for(var d=u.parentElement;d&&d!==t;){var h=Ce(e,d.previousElementSibling,!0,!0,!0,o,a,s);if(h)return h;d=d.parentElement}}}return n&&l&&Le(t,s)?t:Ce(e,t.previousElementSibling,!0,!0,!0,o,a,s)||(r?null:Ce(e,t.parentElement,!0,!1,!1,o,a,s))}function Se(e,t,n,r,i,o,a,s){if(!t||t===e&&i&&!a)return null;var l=Ee(t);if(n&&l&&Le(t,s))return t;if(!i&&l&&(o||!ke(t)&&!Ae(t))){var u=Se(e,t.firstElementChild,!0,!0,!1,o,a,s);if(u)return u}return t===e?null:Se(e,t.nextElementSibling,!0,!0,!1,o,a,s)||(r?null:Se(e,t.parentElement,!1,!1,!0,o,a,s))}function Ee(e){if(!e||!e.getAttribute)return!1;var t=e.getAttribute("data-is-visible");return null!=t?"true"===t:0!==e.offsetHeight||null!==e.offsetParent||!0===e.isVisible}function Le(e,t){if(!e||e.disabled)return!1;var n=0,r=null;e&&e.getAttribute&&(r=e.getAttribute("tabIndex"))&&(n=parseInt(r,10));var i=e.getAttribute?e.getAttribute("data-is-focusable"):null,o=null!==r&&n>=0,a=!!e&&"false"!==i&&("A"===e.tagName||"BUTTON"===e.tagName||"INPUT"===e.tagName||"TEXTAREA"===e.tagName||"SELECT"===e.tagName||"true"===i||o);return t?-1!==n&&a:a}function ke(e){return!!(e&&e.getAttribute&&e.getAttribute("data-focuszone-id"))}function Ae(e){return!(!e||!e.getAttribute||"true"!==e.getAttribute("data-is-sub-focuszone"))}var we=void 0;function De(e){if(e){if(we)return void(we=e);we=e;var t=c(e);t&&t.requestAnimationFrame((function(){we&&we.focus(),we=void 0}))}}function Te(e,t,n,r){return e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n,r)}}function Me(e,t){for(var n=i({},t),r=0,o=Object.keys(e);r<o.length;r++){var a=o[r];void 0===n[a]&&(n[a]=e[a])}return n}var Pe,Fe,Ie,Oe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n={},r=0,i=e;r<i.length;r++)for(var o=i[r],a=Array.isArray(o)?o:Object.keys(o),s=0,l=a;s<l.length;s++){var u=l[s];n[u]=1}return n},Ne=Oe(["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"]),He=Oe(["accessKey","children","className","contentEditable","dir","draggable","hidden","htmlFor","id","lang","ref","role","style","tabIndex","title","translate","spellCheck","name"]),Re=Oe(He,Ne),Ve=(Oe(Re,["form"]),Oe(Re,["height","loop","muted","preload","src","width"])),Be=(Oe(Ve,["poster"]),Oe(Re,["start"]),Oe(Re,["value"]),Oe(Re,["download","href","hrefLang","media","rel","target","type"]),Oe(Re,["autoFocus","disabled","form","formAction","formEncType","formMethod","formNoValidate","formTarget","type","value"])),We=(Oe(Be,["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"]),Oe(Be,["autoCapitalize","cols","dirname","form","maxLength","minLength","placeholder","readOnly","required","rows","wrap"]),Oe(Be,["form","multiple","required"]),Oe(Re,["selected","value"]),Oe(Re,["cellPadding","cellSpacing"]),Oe(Re,["rowSpan","scope"]),Oe(Re,["colSpan","headers","rowSpan","scope"]),Oe(Re,["span"]),Oe(Re,["span"]),Oe(Re,["acceptCharset","action","encType","encType","method","noValidate","target"]),Oe(Re,["allow","allowFullScreen","allowPaymentRequest","allowTransparency","csp","height","importance","referrerPolicy","sandbox","src","srcDoc","width"]),Oe(Re,["alt","crossOrigin","height","src","srcSet","useMap","width"]),Re);function ze(e,t,n){for(var r=Array.isArray(t),i={},o=0,a=Object.keys(e);o<a.length;o++){var s=a[o];!(!r&&t[s]||r&&t.indexOf(s)>=0||0===s.indexOf("data-")||0===s.indexOf("aria-"))||n&&-1!==(null==n?void 0:n.indexOf(s))||(i[s]=e[s])}return i}function Ue(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=[],r=0,i=e;r<i.length;r++){var o=i[r];if(o)if("string"==typeof o)n.push(o);else if(o.hasOwnProperty("toString")&&"function"==typeof o.toString)n.push(o.toString());else for(var a in o)o[a]&&n.push(a)}return n.join(" ")}function je(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];t=t||{};for(var i=0,o=n;i<o.length;i++){var a=o[i];if(a)for(var s in a)!a.hasOwnProperty(s)||e&&!e(s)||(t[s]=a[s])}return t}function Ye(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Xe(e,te())}function Xe(e,t){var n=k(e instanceof Array?e:[e]),r=n.classes,i=n.objects;return i.length&&r.push(function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=Z.apply(void 0,a([e],t));return r?(G(r,e.specificityMultiplier),r.className):""}(t||{},i)),r.join(" ")}!function(e){e[e.top=1]="top",e[e.bottom=-1]="bottom",e[e.left=2]="left",e[e.right=-2]="right"}(Pe||(Pe={})),function(e){e[e.top=0]="top",e[e.bottom=1]="bottom",e[e.start=2]="start",e[e.end=3]="end"}(Fe||(Fe={})),Ye({overflow:"hidden !important"});var qe="data-is-scrollable";function Ke(e){for(var t=e,n=$(e);t&&t!==n.body;){if("true"===t.getAttribute(qe))return t;t=t.parentElement}for(t=e;t&&t!==n.body;){if("false"!==t.getAttribute(qe)){var r=getComputedStyle(t),i=r?r.getPropertyValue("overflow-y"):"";if(i&&("scroll"===i||"auto"===i))return t}t=t.parentElement}return t&&t!==n.body||(t=c(e)),t}var Ze,Ge=function(){function e(e,t,n,r){void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=0),void 0===r&&(r=0),this.top=n,this.bottom=r,this.left=e,this.right=t}return Object.defineProperty(e.prototype,"width",{get:function(){return this.right-this.left},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.bottom-this.top},enumerable:!1,configurable:!0}),e.prototype.equals=function(e){return parseFloat(this.top.toFixed(4))===parseFloat(e.top.toFixed(4))&&parseFloat(this.bottom.toFixed(4))===parseFloat(e.bottom.toFixed(4))&&parseFloat(this.left.toFixed(4))===parseFloat(e.left.toFixed(4))&&parseFloat(this.right.toFixed(4))===parseFloat(e.right.toFixed(4))},e}();function $e(e,t,n){return{targetEdge:e,alignmentEdge:t,isAuto:n}}var Qe=((Ze={})[0]=$e(Pe.top,Pe.left),Ze[1]=$e(Pe.top),Ze[2]=$e(Pe.top,Pe.right),Ze[3]=$e(Pe.top,void 0,!0),Ze[4]=$e(Pe.bottom,Pe.left),Ze[5]=$e(Pe.bottom),Ze[6]=$e(Pe.bottom,Pe.right),Ze[7]=$e(Pe.bottom,void 0,!0),Ze[8]=$e(Pe.left,Pe.top),Ze[9]=$e(Pe.left),Ze[10]=$e(Pe.left,Pe.bottom),Ze[11]=$e(Pe.right,Pe.top),Ze[12]=$e(Pe.right),Ze[13]=$e(Pe.right,Pe.bottom),Ze);function Je(e,t){return!(e.top<t.top||e.bottom>t.bottom||e.left<t.left||e.right>t.right)}function et(e,t){var n=[];return e.top<t.top&&n.push(Pe.top),e.bottom>t.bottom&&n.push(Pe.bottom),e.left<t.left&&n.push(Pe.left),e.right>t.right&&n.push(Pe.right),n}function tt(e,t){return e[Pe[t]]}function nt(e,t,n){return e[Pe[t]]=n,e}function rt(e,t){var n=ft(t);return(tt(e,n.positiveEdge)+tt(e,n.negativeEdge))/2}function it(e,t){return e>0?t:-1*t}function ot(e,t){return it(e,tt(t,e))}function at(e,t,n){return it(n,tt(e,n)-tt(t,n))}function st(e,t,n,r){void 0===r&&(r=!0);var i=tt(e,t)-n,o=nt(e,t,n);return r&&(o=nt(e,-1*t,tt(e,-1*t)-i)),o}function lt(e,t,n,r){return void 0===r&&(r=0),st(e,n,tt(t,n)+it(n,r))}function ut(e,t,n){return ot(n,e)>ot(n,t)}function ct(e,t){for(var n=0,r=0,i=et(e,t);r<i.length;r++){var o=i[r];n+=Math.pow(at(e,t,o),2)}return n}function dt(e,t,n,r){for(var i=0,o=e;i<o.length;i++){var a=o[i],s=void 0;r&&r===-1*a?(s=st(t.elementRectangle,a,tt(n,a),!1),t.forcedInBounds=!0):ut(s=lt(t.elementRectangle,n,a),n,-1*a)||(s=st(s,-1*a,tt(n,-1*a),!1),t.forcedInBounds=!0),t.elementRectangle=s}return t}function ht(e,t,n){var r=ft(t).positiveEdge;return st(e,r,n-(rt(e,t)-tt(e,r)))}function pt(e,t,n,r,i){void 0===r&&(r=0);var o=new Ge(e.left,e.right,e.top,e.bottom),a=n.alignmentEdge,s=n.targetEdge,l=i?s:-1*s;return o=i?lt(o,t,s,r):function(e,t,n,r){void 0===r&&(r=0);var i=it(-1*n,r);return st(e,-1*n,tt(t,n)+i)}(o,t,s,r),o=a?lt(o,t,a):ht(o,l,rt(t,s))}function ft(e){return e===Pe.top||e===Pe.bottom?{positiveEdge:Pe.left,negativeEdge:Pe.right}:{positiveEdge:Pe.top,negativeEdge:Pe.bottom}}function gt(e,t,n){return n&&Math.abs(at(e,n,t))>Math.abs(at(e,n,-1*t))?-1*t:t}function vt(e,t,n,r,i,o,a,s){var l,u={},c=_t(t),d=o?n:-1*n,h=i||ft(n).positiveEdge;return a&&!function(e,t,n){return void 0!==n&&tt(e,t)===tt(n,t)}(e,(l=h,-1*l),r)||(h=gt(e,h,r)),u[Pe[d]]=at(e,c,d),u[Pe[h]]=at(e,c,h),s&&(u[Pe[-1*d]]=at(e,c,-1*d),u[Pe[-1*h]]=at(e,c,-1*h)),u}function mt(e,t,n){var r=rt(t,e),i=rt(n,e),o=ft(e),a=o.positiveEdge,s=o.negativeEdge;return r<=i?a:s}function yt(e,t,n,r,i,o,a){var s=pt(e,t,r,i,a);return Je(s,n)?{elementRectangle:s,targetEdge:r.targetEdge,alignmentEdge:r.alignmentEdge}:function(e,t,n,r,i,o,a){void 0===i&&(i=0);var s=r.alignmentEdge,l=r.alignTargetEdge,u={elementRectangle:e,targetEdge:r.targetEdge,alignmentEdge:s};o||a||(u=function(e,t,n,r,i){void 0===i&&(i=0);var o=[Pe.left,Pe.right,Pe.bottom,Pe.top];ie()&&(o[0]*=-1,o[1]*=-1);for(var a,s=e,l=r.targetEdge,u=r.alignmentEdge,c=l,d=u,h=0;h<4;h++){if(ut(s,n,l))return{elementRectangle:s,targetEdge:l,alignmentEdge:u};var p=ct(s,n);(!a||p<a)&&(a=p,c=l,d=u),o.splice(o.indexOf(l),1),o.length>0&&(o.indexOf(-1*l)>-1?l*=-1:(u=l,l=o.slice(-1)[0]),s=pt(e,t,{targetEdge:l,alignmentEdge:u},i))}return{elementRectangle:s=pt(e,t,{targetEdge:c,alignmentEdge:d},i),targetEdge:c,alignmentEdge:d}}(e,t,n,r,i));var c=et(u.elementRectangle,n),d=o?-u.targetEdge:void 0;if(c.length>0)if(l)if(u.alignmentEdge&&c.indexOf(-1*u.alignmentEdge)>-1){var h=function(e,t,n,r){var i=e.alignmentEdge,o=e.targetEdge,a=-1*i;return{elementRectangle:pt(e.elementRectangle,t,{targetEdge:o,alignmentEdge:a},n,r),targetEdge:o,alignmentEdge:a}}(u,t,i,a);if(Je(h.elementRectangle,n))return h;u=dt(et(h.elementRectangle,n),u,n,d)}else u=dt(c,u,n,d);else u=dt(c,u,n,d);return u}(s,t,n,r,i,o,a)}function _t(e){var t=e.getBoundingClientRect();return new Ge(t.left,t.right,t.top,t.bottom)}function xt(e,t,n,r){var o=e.gapSpace?e.gapSpace:0,a=function(e,t){var n;if(t){if(t.preventDefault){var r=t;n=new Ge(r.clientX,r.clientX,r.clientY,r.clientY)}else if(t.getBoundingClientRect)n=_t(t);else{var i=t,o=i.left||i.x,a=i.top||i.y,s=i.right||o,l=i.bottom||a;n=new Ge(o,s,a,l)}if(!Je(n,e))for(var u=0,c=et(n,e);u<c.length;u++){var d=c[u];n[Pe[d]]=e[Pe[d]]}}else n=new Ge(0,0,0,0);return n}(n,e.target),s=function(e,t,n,r,i){return e.isAuto&&(e.alignmentEdge=mt(e.targetEdge,t,n)),e.alignTargetEdge=i,e}(function(e,t,n){if(void 0===e&&(e=7),n)return{alignmentEdge:n.alignmentEdge,isAuto:n.isAuto,targetEdge:n.targetEdge};var r=i({},Qe[e]);return ie()?(r.alignmentEdge&&r.alignmentEdge%2==0&&(r.alignmentEdge=-1*r.alignmentEdge),void 0!==t?Qe[t]:r):r}(e.directionalHint,e.directionalHintForRTL,r),a,n,e.coverTarget,e.alignTargetEdge),l=yt(_t(t),a,n,s,o,e.directionalHintFixed,e.coverTarget);return i(i({},l),{targetRectangle:a})}function bt(e,t,n,r,o){var a=e.isBeakVisible&&e.beakWidth||0,s=function(e){return Math.sqrt(e*e*2)}(a)/2+(e.gapSpace?e.gapSpace:0),l=e;l.gapSpace=s;var u,c,d,h,p,f,g,v,m,y=e.bounds?(m=e.bounds,new Ge(m.left,m.right,m.top,m.bottom)):new Ge(0,window.innerWidth-function(){if(void 0===Ie){var e=document.createElement("div");e.style.setProperty("width","100px"),e.style.setProperty("height","100px"),e.style.setProperty("overflow","scroll"),e.style.setProperty("position","absolute"),e.style.setProperty("top","-9999px"),document.body.appendChild(e),Ie=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return Ie}(),0,window.innerHeight),_=xt(l,n,y,r),x=(u=_,c=function(e,t){var n=t.targetRectangle,r=ft(t.targetEdge),i=r.positiveEdge,o=r.negativeEdge,a=rt(n,t.targetEdge),s=new Ge(e/2,t.elementRectangle.width-e/2,e/2,t.elementRectangle.height-e/2),l=new Ge(0,e,0,e);return ut(l=ht(l=st(l,-1*t.targetEdge,-e/2),-1*t.targetEdge,a-ot(i,t.elementRectangle)),s,i)?ut(l,s,o)||(l=lt(l,s,o)):l=lt(l,s,i),l}(a,_),d=y,h=-1*u.targetEdge,p=new Ge(0,u.elementRectangle.width,0,u.elementRectangle.height),f={},g=gt(u.elementRectangle,u.alignmentEdge?u.alignmentEdge:ft(h).positiveEdge,d),v=at(u.elementRectangle,u.targetRectangle,h)>Math.abs(tt(c,h)),f[Pe[h]]=tt(c,h),f[Pe[g]]=at(c,p,g),{elementPosition:i({},f),closestEdge:mt(u.targetEdge,c,p),targetEdge:h,hideBeak:!v});return i(i({},function(e,t,n,r,i){return{elementPosition:vt(e.elementRectangle,t,e.targetEdge,n,e.alignmentEdge,r,i,e.forcedInBounds),targetEdge:e.targetEdge,alignmentEdge:e.alignmentEdge}}(_,t,y,e.coverTarget,o)),{beakPosition:x})}var Ct=["TEMPLATE","STYLE","SCRIPT"];function St(e){var t=$(e);if(!t)return function(){};for(var n=[];e!==t.body&&e.parentElement;){for(var r=0,i=e.parentElement.children;r<i.length;r++){var o=i[r],a=o.getAttribute("aria-hidden");o!==e&&"true"!==(null==a?void 0:a.toLowerCase())&&-1===Ct.indexOf(o.tagName)&&n.push([o,a])}e=e.parentElement}return n.forEach((function(e){e[0].setAttribute("aria-hidden","true")})),function(){!function(e){e.forEach((function(e){var t=e[0],n=e[1];n?t.setAttribute("aria-hidden",n):t.removeAttribute("aria-hidden")}))}(n),n=[]}}var Et=function(){function e(e,t){this._timeoutIds=null,this._immediateIds=null,this._intervalIds=null,this._animationFrameIds=null,this._isDisposed=!1,this._parent=e||null,this._onErrorHandler=t,this._noop=function(){}}return e.prototype.dispose=function(){var e;if(this._isDisposed=!0,this._parent=null,this._timeoutIds){for(e in this._timeoutIds)this._timeoutIds.hasOwnProperty(e)&&this.clearTimeout(parseInt(e,10));this._timeoutIds=null}if(this._immediateIds){for(e in this._immediateIds)this._immediateIds.hasOwnProperty(e)&&this.clearImmediate(parseInt(e,10));this._immediateIds=null}if(this._intervalIds){for(e in this._intervalIds)this._intervalIds.hasOwnProperty(e)&&this.clearInterval(parseInt(e,10));this._intervalIds=null}if(this._animationFrameIds){for(e in this._animationFrameIds)this._animationFrameIds.hasOwnProperty(e)&&this.cancelAnimationFrame(parseInt(e,10));this._animationFrameIds=null}},e.prototype.setTimeout=function(e,t){var n=this,r=0;return this._isDisposed||(this._timeoutIds||(this._timeoutIds={}),r=setTimeout((function(){try{n._timeoutIds&&delete n._timeoutIds[r],e.apply(n._parent)}catch(e){n._logError(e)}}),t),this._timeoutIds[r]=!0),r},e.prototype.clearTimeout=function(e){this._timeoutIds&&this._timeoutIds[e]&&(clearTimeout(e),delete this._timeoutIds[e])},e.prototype.setImmediate=function(e,t){var n=this,r=0,i=c(t);return this._isDisposed||(this._immediateIds||(this._immediateIds={}),r=i.setTimeout((function(){try{n._immediateIds&&delete n._immediateIds[r],e.apply(n._parent)}catch(e){n._logError(e)}}),0),this._immediateIds[r]=!0),r},e.prototype.clearImmediate=function(e,t){var n=c(t);this._immediateIds&&this._immediateIds[e]&&(n.clearTimeout(e),delete this._immediateIds[e])},e.prototype.setInterval=function(e,t){var n=this,r=0;return this._isDisposed||(this._intervalIds||(this._intervalIds={}),r=setInterval((function(){try{e.apply(n._parent)}catch(e){n._logError(e)}}),t),this._intervalIds[r]=!0),r},e.prototype.clearInterval=function(e){this._intervalIds&&this._intervalIds[e]&&(clearInterval(e),delete this._intervalIds[e])},e.prototype.throttle=function(e,t,n){var r=this;if(this._isDisposed)return this._noop;var i,o,a=t||0,s=!0,l=!0,u=0,c=null;n&&"boolean"==typeof n.leading&&(s=n.leading),n&&"boolean"==typeof n.trailing&&(l=n.trailing);var d=function(t){var n=Date.now(),h=n-u,p=s?a-h:a;return h>=a&&(!t||s)?(u=n,c&&(r.clearTimeout(c),c=null),i=e.apply(r._parent,o)):null===c&&l&&(c=r.setTimeout(d,p)),i};return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return o=e,d(!0)}},e.prototype.debounce=function(e,t,n){var r=this;if(this._isDisposed){var i=function(){};return i.cancel=function(){},i.flush=function(){return null},i.pending=function(){return!1},i}var o,a,s=t||0,l=!1,u=!0,c=null,d=0,h=Date.now(),p=null;n&&"boolean"==typeof n.leading&&(l=n.leading),n&&"boolean"==typeof n.trailing&&(u=n.trailing),n&&"number"==typeof n.maxWait&&!isNaN(n.maxWait)&&(c=n.maxWait);var f=function(e){p&&(r.clearTimeout(p),p=null),h=e},g=function(t){f(t),o=e.apply(r._parent,a)},v=function(e){var t=Date.now(),n=!1;e&&(l&&t-d>=s&&(n=!0),d=t);var i=t-d,a=s-i,f=t-h,m=!1;return null!==c&&(f>=c&&p?m=!0:a=Math.min(a,c-f)),i>=s||m||n?g(t):null!==p&&e||!u||(p=r.setTimeout(v,a)),o},m=function(){return!!p},y=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return a=e,v(!0)};return y.cancel=function(){m()&&f(Date.now())},y.flush=function(){return m()&&g(Date.now()),o},y.pending=m,y},e.prototype.requestAnimationFrame=function(e,t){var n=this,r=0,i=c(t);if(!this._isDisposed){this._animationFrameIds||(this._animationFrameIds={});var o=function(){try{n._animationFrameIds&&delete n._animationFrameIds[r],e.apply(n._parent)}catch(e){n._logError(e)}};r=i.requestAnimationFrame?i.requestAnimationFrame(o):i.setTimeout(o,0),this._animationFrameIds[r]=!0}return r},e.prototype.cancelAnimationFrame=function(e,t){var n=c(t);this._animationFrameIds&&this._animationFrameIds[e]&&(n.cancelAnimationFrame?n.cancelAnimationFrame(e):n.clearTimeout(e),delete this._animationFrameIds[e])},e.prototype._logError=function(e){this._onErrorHandler&&this._onErrorHandler(e)},e}();function Lt(e){var t=s.useRef();return void 0===t.current&&(t.current={value:"function"==typeof e?e():e}),t.current.value}function kt(){var e=Lt((function(){return new Et}));return s.useEffect((function(){return function(){return e.dispose()}}),[e]),e}function At(e,t,n,r){var i=s.useRef(n);i.current=n,s.useEffect((function(){var n=e&&"current"in e?e.current:e;if(n)return Te(n,t,(function(e){return i.current(e)}),r)}),[e,t,r])}function wt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=s.useCallback((function(t){n.current=t;for(var r=0,i=e;r<i.length;r++){var o=i[r];"function"==typeof o?o(t):o&&(o.current=t)}}),a([],e));return n}var Dt=s.createContext({window:"object"==typeof window?window:void 0}),Tt=function(){return s.useContext(Dt).window};function Mt(e){var t=e.originalElement,n=e.containsFocus;t&&n&&t!==c()&&setTimeout((function(){var e;null===(e=t.focus)||void 0===e||e.call(t)}),0)}var Pt=s.forwardRef((function(e,t){var n=Me({shouldRestoreFocus:!0,enableAriaHiddenSiblings:!0},e),r=s.useRef(),o=wt(r,t);!function(e,t){var n="true"===String(e["aria-modal"]).toLowerCase()&&e.enableAriaHiddenSiblings;s.useEffect((function(){if(n&&t.current)return St(t.current)}),[t,n])}(n,r),function(e,t){var n=e.onRestoreFocus,r=void 0===n?Mt:n,i=s.useRef(),o=s.useRef(!1);s.useEffect((function(){return i.current=$().activeElement,function(e){var t=$(e),n=t&&t.activeElement;return!(!n||!xe(e,n))}(t.current)&&(o.current=!0),function(){var e;null==r||r({originalElement:i.current,containsFocus:o.current,documentContainsFocus:(null===(e=$())||void 0===e?void 0:e.hasFocus())||!1}),i.current=void 0}}),[]),At(t,"focus",s.useCallback((function(){o.current=!0}),[]),!0),At(t,"blur",s.useCallback((function(e){t.current&&e.relatedTarget&&!t.current.contains(e.relatedTarget)&&(o.current=!1)}),[]),!0)}(n,r);var a=n.role,l=n.className,u=n.ariaLabel,c=n.ariaLabelledBy,d=n.ariaDescribedBy,h=n.style,p=n.children,f=n.onDismiss,g=function(e,t){var n=kt(),r=s.useState(!1),i=r[0],o=r[1];return s.useEffect((function(){return n.requestAnimationFrame((function(){var n;if(!e.style||!e.style.overflowY){var r=!1;if(t&&t.current&&(null===(n=t.current)||void 0===n?void 0:n.firstElementChild)){var a=t.current.clientHeight,s=t.current.firstElementChild.clientHeight;a>0&&s>a&&(r=s-a>1)}i!==r&&o(r)}})),function(){return n.dispose()}})),i}(n,r),v=s.useCallback((function(e){27===e.which&&f&&(f(e),e.preventDefault(),e.stopPropagation())}),[f]);return At(Tt(),"keydown",v),s.createElement("div",i({ref:o},ze(n,We),{className:l,role:a,"aria-label":u,"aria-labelledby":c,"aria-describedby":d,onKeyDown:v,style:i({overflowY:g?"scroll":void 0,outline:"none"},h)}),p)}));function Ft(e){var t=L.getInstance(),n=[];for(var r in e)e.hasOwnProperty(r)&&n.push(r,"{",K(te(),e[r]),"}");var i=n.join(""),o=t.classNameFromKey(i);if(o)return o;var a=t.getClassName();return t.insertRule("@keyframes "+a+"{"+i+"}",!0),t.cacheClassName(a,i,[],["keyframes",i]),a}Pt.displayName="Popup";var It="cubic-bezier(.1,.9,.2,1)",Ot="cubic-bezier(.1,.25,.75,.9)",Nt="0.167s",Ht="0.267s",Rt="0.367s",Vt="0.467s",Bt=Ft({from:{opacity:0},to:{opacity:1}}),Wt=Ft({from:{opacity:1},to:{opacity:0,visibility:"hidden"}}),zt=xn(-10),Ut=xn(-20),jt=xn(-40),Yt=xn(-400),Xt=xn(10),qt=xn(20),Kt=xn(40),Zt=xn(400),Gt=bn(10),$t=bn(20),Qt=bn(-10),Jt=bn(-20),en=Cn(10),tn=Cn(20),nn=Cn(40),rn=Cn(400),on=Cn(-10),an=Cn(-20),sn=Cn(-40),ln=Cn(-400),un=Sn(-10),cn=Sn(-20),dn=Sn(10),hn=Sn(20),pn=Ft({from:{transform:"scale3d(.98,.98,1)"},to:{transform:"scale3d(1,1,1)"}}),fn=Ft({from:{transform:"scale3d(1,1,1)"},to:{transform:"scale3d(.98,.98,1)"}}),gn=Ft({from:{transform:"scale3d(1.03,1.03,1)"},to:{transform:"scale3d(1,1,1)"}}),vn=Ft({from:{transform:"scale3d(1,1,1)"},to:{transform:"scale3d(1.03,1.03,1)"}}),mn=Ft({from:{transform:"rotateZ(0deg)"},to:{transform:"rotateZ(90deg)"}}),yn=Ft({from:{transform:"rotateZ(0deg)"},to:{transform:"rotateZ(-90deg)"}});function _n(e,t,n){return{animationName:e,animationDuration:t,animationTimingFunction:n,animationFillMode:"both"}}function xn(e){return Ft({from:{transform:"translate3d("+e+"px,0,0)",pointerEvents:"none"},to:{transform:"translate3d(0,0,0)",pointerEvents:"auto"}})}function bn(e){return Ft({from:{transform:"translate3d(0,"+e+"px,0)",pointerEvents:"none"},to:{transform:"translate3d(0,0,0)",pointerEvents:"auto"}})}function Cn(e){return Ft({from:{transform:"translate3d(0,0,0)"},to:{transform:"translate3d("+e+"px,0,0)"}})}function Sn(e){return Ft({from:{transform:"translate3d(0,0,0)"},to:{transform:"translate3d(0,"+e+"px,0)"}})}var En,Ln,kn,An,wn,Dn=function(e){var t={},n=function(n){var r;e.hasOwnProperty(n)&&Object.defineProperty(t,n,{get:function(){return void 0===r&&(r=Ye(e[n]).toString()),r},enumerable:!0,configurable:!0})};for(var r in e)n(r);return t}({slideRightIn10:_n(Bt+","+zt,Rt,It),slideRightIn20:_n(Bt+","+Ut,Rt,It),slideRightIn40:_n(Bt+","+jt,Rt,It),slideRightIn400:_n(Bt+","+Yt,Rt,It),slideLeftIn10:_n(Bt+","+Xt,Rt,It),slideLeftIn20:_n(Bt+","+qt,Rt,It),slideLeftIn40:_n(Bt+","+Kt,Rt,It),slideLeftIn400:_n(Bt+","+Zt,Rt,It),slideUpIn10:_n(Bt+","+Gt,Rt,It),slideUpIn20:_n(Bt+","+$t,Rt,It),slideDownIn10:_n(Bt+","+Qt,Rt,It),slideDownIn20:_n(Bt+","+Jt,Rt,It),slideRightOut10:_n(Wt+","+en,Rt,It),slideRightOut20:_n(Wt+","+tn,Rt,It),slideRightOut40:_n(Wt+","+nn,Rt,It),slideRightOut400:_n(Wt+","+rn,Rt,It),slideLeftOut10:_n(Wt+","+on,Rt,It),slideLeftOut20:_n(Wt+","+an,Rt,It),slideLeftOut40:_n(Wt+","+sn,Rt,It),slideLeftOut400:_n(Wt+","+ln,Rt,It),slideUpOut10:_n(Wt+","+un,Rt,It),slideUpOut20:_n(Wt+","+cn,Rt,It),slideDownOut10:_n(Wt+","+dn,Rt,It),slideDownOut20:_n(Wt+","+hn,Rt,It),scaleUpIn100:_n(Bt+","+pn,Rt,It),scaleDownIn100:_n(Bt+","+gn,Rt,It),scaleUpOut103:_n(Wt+","+vn,Nt,Ot),scaleDownOut98:_n(Wt+","+fn,Nt,Ot),fadeIn100:_n(Bt,Nt,Ot),fadeIn200:_n(Bt,Ht,Ot),fadeIn400:_n(Bt,Rt,Ot),fadeIn500:_n(Bt,Vt,Ot),fadeOut100:_n(Wt,Nt,Ot),fadeOut200:_n(Wt,Ht,Ot),fadeOut400:_n(Wt,Rt,Ot),fadeOut500:_n(Wt,Vt,Ot),rotate90deg:_n(mn,"0.1s",Ot),rotateN90deg:_n(yn,"0.1s",Ot)}),Tn={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"};!function(e){e.Arabic="Segoe UI Web (Arabic)",e.Cyrillic="Segoe UI Web (Cyrillic)",e.EastEuropean="Segoe UI Web (East European)",e.Greek="Segoe UI Web (Greek)",e.Hebrew="Segoe UI Web (Hebrew)",e.Thai="Leelawadee UI Web",e.Vietnamese="Segoe UI Web (Vietnamese)",e.WestEuropean="Segoe UI Web (West European)",e.Selawik="Selawik Web",e.Armenian="Segoe UI Web (Armenian)",e.Georgian="Segoe UI Web (Georgian)"}(En||(En={})),function(e){e.Arabic="'"+En.Arabic+"'",e.ChineseSimplified="'Microsoft Yahei UI', Verdana, Simsun",e.ChineseTraditional="'Microsoft Jhenghei UI', Pmingliu",e.Cyrillic="'"+En.Cyrillic+"'",e.EastEuropean="'"+En.EastEuropean+"'",e.Greek="'"+En.Greek+"'",e.Hebrew="'"+En.Hebrew+"'",e.Hindi="'Nirmala UI'",e.Japanese="'Yu Gothic UI', 'Meiryo UI', Meiryo, 'MS Pgothic', Osaka",e.Korean="'Malgun Gothic', Gulim",e.Selawik="'"+En.Selawik+"'",e.Thai="'Leelawadee UI Web', 'Kmer UI'",e.Vietnamese="'"+En.Vietnamese+"'",e.WestEuropean="'"+En.WestEuropean+"'",e.Armenian="'"+En.Armenian+"'",e.Georgian="'"+En.Georgian+"'"}(Ln||(Ln={})),function(e){e.size10="10px",e.size12="12px",e.size14="14px",e.size16="16px",e.size18="18px",e.size20="20px",e.size24="24px",e.size28="28px",e.size32="32px",e.size42="42px",e.size68="68px",e.mini="10px",e.xSmall="10px",e.small="12px",e.smallPlus="12px",e.medium="14px",e.mediumPlus="16px",e.icon="16px",e.large="18px",e.xLarge="20px",e.xLargePlus="24px",e.xxLarge="28px",e.xxLargePlus="32px",e.superLarge="42px",e.mega="68px"}(kn||(kn={})),function(e){e.light=100,e.semilight=300,e.regular=400,e.semibold=600,e.bold=700}(An||(An={})),function(e){e.xSmall="10px",e.small="12px",e.medium="16px",e.large="20px"}(wn||(wn={}));var Mn,Pn="@media screen and (-ms-high-contrast: active), screen and (forced-colors: active)",Fn="@media screen and (-ms-high-contrast: white-on-black), screen and (forced-colors: active) and (prefers-color-scheme: dark)",In="ms-Fabric--isFocusVisible",On="ms-Fabric--isFocusHidden";function Nn(e,t){var n=t?c(t):c();if(n){var r=n.document.body.classList;r.add(e?In:On),r.remove(e?On:In)}}function Hn(e,t,n,r,i,o,a){return function(e,t){var n,r;void 0===t&&(t={});var i=t.inset,o=void 0===i?0:i,a=t.width,s=void 0===a?1:a,l=t.position,u=void 0===l?"relative":l,c=t.highContrastStyle,d=t.borderColor,h=void 0===d?e.palette.white:d,p=t.outlineColor,f=void 0===p?e.palette.neutralSecondary:p,g=t.isFocusedOnly;return{outline:"transparent",position:u,selectors:(n={"::-moz-focus-inner":{border:"0"}},n[".ms-Fabric--isFocusVisible &"+(void 0===g||g?":focus":"")+":after"]={content:'""',position:"absolute",left:o+1,top:o+1,bottom:o+1,right:o+1,border:s+"px solid "+h,outline:s+"px solid "+f,zIndex:Mn.FocusStyle,selectors:(r={},r[Pn]=c,r)},n)}}(e,"number"!=typeof t&&t?t:{inset:t,position:n,highContrastStyle:r,borderColor:i,outlineColor:o,isFocusedOnly:a})}!function(e){e.Nav=1,e.ScrollablePane=1,e.FocusStyle=1,e.Coachmark=1e3,e.Layer=1e6,e.KeytipLayer=1000001}(Mn||(Mn={}));var Rn=!1,Vn=0,Bn={empty:!0},Wn={},zn="undefined"==typeof WeakMap?null:WeakMap;function Un(){Vn++}function jn(e,t,n){if(void 0===t&&(t=100),void 0===n&&(n=!1),!zn)return e;if(!Rn){var r=L.getInstance();r&&r.onReset&&L.getInstance().onReset(Un),Rn=!0}var i,o=0,a=Vn;return function(){for(var r=[],s=0;s<arguments.length;s++)r[s]=arguments[s];var l=i;(void 0===i||a!==Vn||t>0&&o>t)&&(i=qn(),o=0,a=Vn),l=i;for(var u=0;u<r.length;u++){var c=Xn(r[u]);l.map.has(c)||l.map.set(c,qn()),l=l.map.get(c)}return l.hasOwnProperty("value")||(l.value=e.apply(void 0,r),o++),!n||null!==l.value&&void 0!==l.value||(l.value=e.apply(void 0,r)),l.value}}function Yn(e){if(!zn)return e;var t=new zn;return function(n){if(!n||"function"!=typeof n&&"object"!=typeof n)return e(n);if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}}function Xn(e){return e?"object"==typeof e||"function"==typeof e?e:(Wn[e]||(Wn[e]={val:e}),Wn[e]):Bn}function qn(){return{map:zn?new zn:null}}var Kn=jn((function(e,t){var n=L.getInstance();return t?Object.keys(e).reduce((function(t,r){return t[r]=n.getClassName(e[r]),t}),{}):e}));function Zn(e,t,n){return Kn(e,void 0!==n?n:t.disableGlobalClassNames)}var Gn,$n,Qn=function(){return Qn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Qn.apply(this,arguments)},Jn="undefined"==typeof window?e.g:window,er=Jn&&Jn.CSPSettings&&Jn.CSPSettings.nonce,tr=(($n=Jn.__themeState__||{theme:void 0,lastStyleElement:void 0,registeredStyles:[]}).runState||($n=Qn({},$n,{perf:{count:0,duration:0},runState:{flushTimer:0,mode:0,buffer:[]}})),$n.registeredThemableStyles||($n=Qn({},$n,{registeredThemableStyles:[]})),Jn.__themeState__=$n,$n);function nr(e){tr.theme=e,function(){if(tr.theme){for(var e=[],t=0,n=tr.registeredThemableStyles;t<n.length;t++){var r=n[t];e.push(r.themableStyle)}e.length>0&&(void 0===(o=1)&&(o=3),3!==o&&2!==o||(rr(tr.registeredStyles),tr.registeredStyles=[]),3!==o&&1!==o||(rr(tr.registeredThemableStyles),tr.registeredThemableStyles=[]),i=[].concat.apply([],e),tr.loadStyles?tr.loadStyles(ir(i).styleString,i):function(e){if("undefined"!=typeof document){var t=document.getElementsByTagName("head")[0],n=document.createElement("style"),r=ir(e),i=r.styleString,o=r.themable;n.setAttribute("data-load-themed-styles","true"),n.type="text/css",er&&n.setAttribute("nonce",er),n.appendChild(document.createTextNode(i)),tr.perf.count++,t.appendChild(n);var a=document.createEvent("HTMLEvents");a.initEvent("styleinsert",!0,!1),a.args={newStyle:n},document.dispatchEvent(a);var s={styleElement:n,themableStyle:e};o?tr.registeredThemableStyles.push(s):tr.registeredStyles.push(s)}}(i))}var i,o}()}function rr(e){e.forEach((function(e){var t=e&&e.styleElement;t&&t.parentElement&&t.parentElement.removeChild(t)}))}function ir(e){var t=tr.theme,n=!1;return{styleString:(e||[]).map((function(e){var r=e.theme;if(r){n=!0;var i=t?t[r]:void 0,o=e.defaultValue||"inherit";return t&&!i&&console&&!(r in t)&&"undefined"!=typeof DEBUG&&DEBUG&&console.warn('Theming value not provided for "'+r+'". Falling back to "'+o+'".'),i||o}return e.rawString})).join(""),themable:n}}!function(e){e.depth0="0 0 0 0 transparent",e.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)",e.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)",e.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)",e.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)"}(Gn||(Gn={}));var or,ar={elevation4:Gn.depth4,elevation8:Gn.depth8,elevation16:Gn.depth16,elevation64:Gn.depth64,roundedCorner2:"2px",roundedCorner4:"4px",roundedCorner6:"6px"},sr="'Segoe UI', '"+En.WestEuropean+"'",lr={ar:Ln.Arabic,bg:Ln.Cyrillic,cs:Ln.EastEuropean,el:Ln.Greek,et:Ln.EastEuropean,he:Ln.Hebrew,hi:Ln.Hindi,hr:Ln.EastEuropean,hu:Ln.EastEuropean,ja:Ln.Japanese,kk:Ln.EastEuropean,ko:Ln.Korean,lt:Ln.EastEuropean,lv:Ln.EastEuropean,pl:Ln.EastEuropean,ru:Ln.Cyrillic,sk:Ln.EastEuropean,"sr-latn":Ln.EastEuropean,th:Ln.Thai,tr:Ln.EastEuropean,uk:Ln.Cyrillic,vi:Ln.Vietnamese,"zh-hans":Ln.ChineseSimplified,"zh-hant":Ln.ChineseTraditional,hy:Ln.Armenian,ka:Ln.Georgian};function ur(e,t,n){return{fontFamily:n,MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontSize:e,fontWeight:t}}var cr,dr="language",hr=(cr=function(e){for(var t in lr)if(lr.hasOwnProperty(t)&&e&&0===t.indexOf(e))return lr[t];return sr}(function(e){if(void 0===e&&(e="sessionStorage"),void 0===or){var t=$(),n="localStorage"===e?function(e){var t=null;try{var n=c();t=n?n.localStorage.getItem("language"):null}catch(e){}return t}():"sessionStorage"===e?Q(dr):void 0;n&&(or=n),void 0===or&&t&&(or=t.documentElement.getAttribute("lang")),void 0===or&&(or="en")}return or}())+", 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif",{tiny:ur(kn.mini,An.regular,cr),xSmall:ur(kn.xSmall,An.regular,cr),small:ur(kn.small,An.regular,cr),smallPlus:ur(kn.smallPlus,An.regular,cr),medium:ur(kn.medium,An.regular,cr),mediumPlus:ur(kn.mediumPlus,An.regular,cr),large:ur(kn.large,An.regular,cr),xLarge:ur(kn.xLarge,An.semibold,cr),xLargePlus:ur(kn.xLargePlus,An.semibold,cr),xxLarge:ur(kn.xxLarge,An.semibold,cr),xxLargePlus:ur(kn.xxLargePlus,An.semibold,cr),superLarge:ur(kn.superLarge,An.semibold,cr),mega:ur(kn.mega,An.semibold,cr)});function pr(e,t,n,r){!function(e){var t=L.getInstance(),n=K(te(),e);if(!t.classNameFromKey(n)){var r=t.getClassName();t.insertRule("@font-face{"+n+"}",!0),t.cacheClassName(r,n,[],["font-face",n])}}({fontFamily:e="'"+e+"'",src:(void 0!==r?"local('"+r+"'),":"")+"url('"+t+".woff2') format('woff2'),url('"+t+".woff') format('woff')",fontWeight:n,fontStyle:"normal",fontDisplay:"swap"})}function fr(e,t,n,r,i){void 0===r&&(r="segoeui");var o=e+"/"+n+"/"+r;pr(t,o+"-light",An.light,i&&i+" Light"),pr(t,o+"-semilight",An.semilight,i&&i+" SemiLight"),pr(t,o+"-regular",An.regular,i),pr(t,o+"-semibold",An.semibold,i&&i+" SemiBold"),pr(t,o+"-bold",An.bold,i&&i+" Bold")}function gr(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,i=t;r<i.length;r++){var o=i[r];vr(e||{},o)}return e}function vr(e,t,n){for(var r in void 0===n&&(n=[]),n.push(t),t)if(t.hasOwnProperty(r)&&"__proto__"!==r&&"constructor"!==r&&"prototype"!==r){var i=t[r];if("object"!=typeof i||null===i||Array.isArray(i))e[r]=i;else{var o=n.indexOf(i)>-1;e[r]=o?i:vr(e[r]||{},i,n)}}return n.pop(),e}function mr(e,t,n,r,o){return void 0===o&&(o=!1),function(e,t){var n="";return!0===t&&(n=" /* @deprecated */"),e.listTextColor=e.listText+n,e.menuItemBackgroundChecked+=n,e.warningHighlight+=n,e.warningText=e.messageText+n,e.successText+=n,e}(yr(e,t,i({primaryButtonBorder:"transparent",errorText:r?"#F1707B":"#a4262c",messageText:r?"#F3F2F1":"#323130",messageLink:r?"#6CB8F6":"#005A9E",messageLinkHovered:r?"#82C7FF":"#004578",infoIcon:r?"#C8C6C4":"#605e5c",errorIcon:r?"#F1707B":"#A80000",blockingIcon:r?"#442726":"#FDE7E9",warningIcon:r?"#C8C6C4":"#797775",severeWarningIcon:r?"#FCE100":"#D83B01",successIcon:r?"#92C353":"#107C10",infoBackground:r?"#323130":"#f3f2f1",errorBackground:r?"#442726":"#FDE7E9",blockingBackground:r?"#442726":"#FDE7E9",warningBackground:r?"#433519":"#FFF4CE",severeWarningBackground:r?"#4F2A0F":"#FED9CC",successBackground:r?"#393D1B":"#DFF6DD",warningHighlight:r?"#fff100":"#ffb900",successText:r?"#92c353":"#107C10"},n),r),o)}function yr(e,t,n,r,o){void 0===o&&(o=!1);var a={},s=e||{},l=s.white,u=s.black,c=s.themePrimary,d=s.themeDark,h=s.themeDarker,p=s.themeDarkAlt,f=s.themeLighter,g=s.neutralLight,v=s.neutralLighter,m=s.neutralDark,y=s.neutralQuaternary,_=s.neutralQuaternaryAlt,x=s.neutralPrimary,b=s.neutralSecondary,C=s.neutralSecondaryAlt,S=s.neutralTertiary,E=s.neutralTertiaryAlt,L=s.neutralLighterAlt,k=s.accent;return l&&(a.bodyBackground=l,a.bodyFrameBackground=l,a.accentButtonText=l,a.buttonBackground=l,a.primaryButtonText=l,a.primaryButtonTextHovered=l,a.primaryButtonTextPressed=l,a.inputBackground=l,a.inputForegroundChecked=l,a.listBackground=l,a.menuBackground=l,a.cardStandoutBackground=l),u&&(a.bodyTextChecked=u,a.buttonTextCheckedHovered=u),c&&(a.link=c,a.primaryButtonBackground=c,a.inputBackgroundChecked=c,a.inputIcon=c,a.inputFocusBorderAlt=c,a.menuIcon=c,a.menuHeader=c,a.accentButtonBackground=c),d&&(a.primaryButtonBackgroundPressed=d,a.inputBackgroundCheckedHovered=d,a.inputIconHovered=d),h&&(a.linkHovered=h),p&&(a.primaryButtonBackgroundHovered=p),f&&(a.inputPlaceholderBackgroundChecked=f),g&&(a.bodyBackgroundChecked=g,a.bodyFrameDivider=g,a.bodyDivider=g,a.variantBorder=g,a.buttonBackgroundCheckedHovered=g,a.buttonBackgroundPressed=g,a.listItemBackgroundChecked=g,a.listHeaderBackgroundPressed=g,a.menuItemBackgroundPressed=g,a.menuItemBackgroundChecked=g),v&&(a.bodyBackgroundHovered=v,a.buttonBackgroundHovered=v,a.buttonBackgroundDisabled=v,a.buttonBorderDisabled=v,a.primaryButtonBackgroundDisabled=v,a.disabledBackground=v,a.listItemBackgroundHovered=v,a.listHeaderBackgroundHovered=v,a.menuItemBackgroundHovered=v),y&&(a.primaryButtonTextDisabled=y,a.disabledSubtext=y),_&&(a.listItemBackgroundCheckedHovered=_),S&&(a.disabledBodyText=S,a.variantBorderHovered=(null==n?void 0:n.variantBorderHovered)||S,a.buttonTextDisabled=S,a.inputIconDisabled=S,a.disabledText=S),x&&(a.bodyText=x,a.actionLink=x,a.buttonText=x,a.inputBorderHovered=x,a.inputText=x,a.listText=x,a.menuItemText=x),L&&(a.bodyStandoutBackground=L,a.defaultStateBackground=L),m&&(a.actionLinkHovered=m,a.buttonTextHovered=m,a.buttonTextChecked=m,a.buttonTextPressed=m,a.inputTextHovered=m,a.menuItemTextHovered=m),b&&(a.bodySubtext=b,a.focusBorder=b,a.inputBorder=b,a.smallInputBorder=b,a.inputPlaceholderText=b),C&&(a.buttonBorder=C),E&&(a.disabledBodySubtext=E,a.disabledBorder=E,a.buttonBackgroundChecked=E,a.menuDivider=E),k&&(a.accentButtonBackground=k),(null==t?void 0:t.elevation4)&&(a.cardShadow=t.elevation4),!r&&(null==t?void 0:t.elevation8)?a.cardShadowHovered=t.elevation8:a.variantBorderHovered&&(a.cardShadowHovered="0 0 1px "+a.variantBorderHovered),i(i({},a),n)}!function(e){if(e){var t=e+"/fonts";fr(t,En.Thai,"leelawadeeui-thai","leelawadeeui"),fr(t,En.Arabic,"segoeui-arabic"),fr(t,En.Cyrillic,"segoeui-cyrillic"),fr(t,En.EastEuropean,"segoeui-easteuropean"),fr(t,En.Greek,"segoeui-greek"),fr(t,En.Hebrew,"segoeui-hebrew"),fr(t,En.Vietnamese,"segoeui-vietnamese"),fr(t,En.WestEuropean,"segoeui-westeuropean","segoeui","Segoe UI"),fr(t,Ln.Selawik,"selawik","selawik"),fr(t,En.Armenian,"segoeui-armenian"),fr(t,En.Georgian,"segoeui-georgian"),pr("Leelawadee UI Web",t+"/leelawadeeui-thai/leelawadeeui-semilight",An.light),pr("Leelawadee UI Web",t+"/leelawadeeui-thai/leelawadeeui-bold",An.semibold)}}(function(){var e,t,n=null===(e=c())||void 0===e?void 0:e.FabricConfig;return null!==(t=null==n?void 0:n.fontBaseUrl)&&void 0!==t?t:"https://static2.sharepointonline.com/files/fabric/assets"}());var _r={s2:"4px",s1:"8px",m:"16px",l1:"20px",l2:"32px"};function xr(e,t){void 0===e&&(e={}),void 0===t&&(t=!1);var n=!!e.isInverted;return function(e,t){var n,r,i;void 0===t&&(t={});var o=gr({},e,t,{semanticColors:yr(t.palette,t.effects,t.semanticColors,void 0===t.isInverted?e.isInverted:t.isInverted)});if((null===(n=t.palette)||void 0===n?void 0:n.themePrimary)&&!(null===(r=t.palette)||void 0===r?void 0:r.accent)&&(o.palette.accent=t.palette.themePrimary),t.defaultFontStyle)for(var a=0,s=Object.keys(o.fonts);a<s.length;a++){var l=s[a];o.fonts[l]=gr(o.fonts[l],t.defaultFontStyle,null===(i=null==t?void 0:t.fonts)||void 0===i?void 0:i[l])}return o}({palette:Tn,effects:ar,fonts:hr,spacing:_r,isInverted:n,disableGlobalClassNames:!1,semanticColors:mr(Tn,ar,void 0,n,t),rtl:void 0},e)}var br=xr({}),Cr=[];function Sr(){var e,t,n,r=c();(null===(t=null==r?void 0:r.FabricConfig)||void 0===t?void 0:t.legacyTheme)?function(e,t){var n;void 0===t&&(t=!1),br=xr(e,t),nr(i(i(i(i({},br.palette),br.semanticColors),br.effects),function(e){for(var t={},n=0,r=Object.keys(e.fonts);n<r.length;n++)for(var i=r[n],o=e.fonts[i],a=0,s=Object.keys(o);a<s.length;a++){var l=s[a],u=i+l.charAt(0).toUpperCase()+l.slice(1),c=o[l];"fontSize"===l&&"number"==typeof c&&(c+="px"),t[u]=c}return t}(br))),y.applySettings(((n={}).theme=br,n)),Cr.forEach((function(e){try{e(br)}catch(e){}}))}(r.FabricConfig.legacyTheme):y.getSettings(["theme"]).theme||((null===(n=null==r?void 0:r.FabricConfig)||void 0===n?void 0:n.theme)&&(br=xr(r.FabricConfig.theme)),y.applySettings(((e={}).theme=br,e)))}Sr();var Er,Lr={},kr=void 0;try{kr=window}catch(e){}function Ar(e,t){if(void 0!==kr){var n=kr.__packages__=kr.__packages__||{};n[e]&&Lr[e]||(Lr[e]=t,(n[e]=n[e]||[]).push(t))}}Ar("@fluentui/set-version","6.0.0"),Ar("@fluentui/style-utilities","8.7.1"),Sr();var wr=((Er={})[Pe.top]=Dn.slideUpIn10,Er[Pe.bottom]=Dn.slideDownIn10,Er[Pe.left]=Dn.slideLeftIn10,Er[Pe.right]=Dn.slideRightIn10,Er),Dr={opacity:0,filter:"opacity(0)",pointerEvents:"none"},Tr=["role","aria-roledescription"],Mr={preventDismissOnLostFocus:!1,preventDismissOnScroll:!1,preventDismissOnResize:!1,isBeakVisible:!0,beakWidth:16,gapSpace:0,minPagePadding:8,directionalHint:7},Pr=le({disableCaching:!0});function Fr(e,t,n,r,o){var a=s.useState(),l=a[0],u=a[1],c=s.useRef(0),d=s.useRef(),h=kt(),p=e.hidden,f=e.target,g=e.finalHeight,v=e.calloutMaxHeight,m=e.onPositioned,y=e.directionalHint;return s.useEffect((function(){if(!p){var a=h.requestAnimationFrame((function(){var a,s,h,p;if(t.current&&n){var y=i(i({},e),{target:r.current,bounds:o()}),_=n.cloneNode(!0);_.style.maxHeight=v?""+v:"",_.style.visibility="hidden",null===(a=n.parentElement)||void 0===a||a.appendChild(_);var x=d.current===f?l:void 0,b=g?function(e,t,n,r){return function(e,t,n,r){return bt(e,t,n,r,!0)}(e,t,n,r)}(y,t.current,_,x):function(e,t,n,r){return bt(e,t,n,r)}(y,t.current,_,x);null===(s=n.parentElement)||void 0===s||s.removeChild(_),!l&&b||l&&b&&(p=b,!Nr((h=l).elementPosition,p.elementPosition)||!Nr(h.beakPosition.elementPosition,p.beakPosition.elementPosition))&&c.current<5?(c.current++,u(b)):c.current>0&&(c.current=0,null==m||m(l))}}),n);return d.current=f,function(){h.cancelAnimationFrame(a),d.current=void 0}}u(void 0),c.current=0}),[p,y,h,n,v,t,r,g,o,m,l,e,f]),l}var Ir=s.memo(s.forwardRef((function(e,t){var n=Me(Mr,e),r=n.styles,o=n.style,a=n.ariaLabel,l=n.ariaDescribedBy,u=n.ariaLabelledBy,c=n.className,d=n.isBeakVisible,h=n.children,p=n.beakWidth,f=n.calloutWidth,g=n.calloutMaxWidth,v=n.calloutMinWidth,m=n.doNotLayer,y=n.finalHeight,_=n.hideOverflow,x=void 0===_?!!y:_,b=n.backgroundColor,C=n.calloutMaxHeight,S=n.onScroll,E=n.shouldRestoreFocus,L=void 0===E||E,k=n.target,A=n.hidden,w=n.onLayerMounted,D=s.useRef(null),T=s.useState(null),M=T[0],P=T[1],F=s.useCallback((function(e){P(e)}),[]),I=wt(D,t),O=function(e,t){var n=s.useRef(),r=s.useRef(null),i=Tt();if(!e||e!==n.current||"string"==typeof e){if(e)if("string"==typeof e){var o=$(null==t?void 0:t.current);r.current=o?o.querySelector(e):null}else r.current="stopPropagation"in e||"getBoundingClientRect"in e?e:"current"in e?e.current:e;n.current=e}return[r,i]}(n.target,{current:M}),N=O[0],H=O[1],R=function(e,t,n){var r=e.bounds,i=e.minPagePadding,o=void 0===i?Mr.minPagePadding:i,a=e.target,l=s.useState(!1),u=l[0],c=l[1],d=s.useRef(),h=s.useCallback((function(){if(!d.current||u){var e="function"==typeof r?n?r(a,n):void 0:r;!e&&n&&(e=function(e,t){return function(e,t){var n=void 0;if(t.getWindowSegments&&(n=t.getWindowSegments()),void 0===n||n.length<=1)return{top:0,left:0,right:t.innerWidth,bottom:t.innerHeight,width:t.innerWidth,height:t.innerHeight};var r=0,i=0;if(null!==e&&e.getBoundingClientRect){var o=e.getBoundingClientRect();r=(o.left+o.right)/2,i=(o.top+o.bottom)/2}else null!==e&&(r=e.left||e.x,i=e.top||e.y);for(var a={top:0,left:0,right:0,bottom:0,width:0,height:0},s=0,l=n;s<l.length;s++){var u=l[s];r&&u.left<=r&&u.right>=r&&i&&u.top<=i&&u.bottom>=i&&(a={top:u.top,left:u.left,right:u.right,bottom:u.bottom,width:u.width,height:u.height})}return a}(e,t)}(t.current,n),e={top:e.top+o,left:e.left+o,right:e.right-o,bottom:e.bottom-o,width:e.width-2*o,height:e.height-2*o}),d.current=e,u&&c(!1)}return d.current}),[r,o,a,t,n,u]),p=kt();return At(n,"resize",p.debounce((function(){c(!0)}),500,{leading:!0})),h}(n,N,H),V=Fr(n,D,M,N,R),B=function(e,t,n){var r,i=e.calloutMaxHeight,o=e.finalHeight,a=e.directionalHint,l=e.directionalHintFixed,u=e.hidden,c=s.useState(),d=c[0],h=c[1],p=null!==(r=null==n?void 0:n.elementPosition)&&void 0!==r?r:{},f=p.top,g=p.bottom;return s.useEffect((function(){var e,n=null!==(e=t())&&void 0!==e?e:{},r=n.top,o=n.bottom;i||u?h(i||void 0):"number"==typeof f&&o?h(o-f):"number"==typeof g&&"number"==typeof r&&o&&h(o-r-g)}),[g,i,o,a,l,t,u,n,f]),d}(n,R,V),W=function(e,t,n,r,i){var o=e.hidden,a=e.onDismiss,l=e.preventDismissOnScroll,u=e.preventDismissOnResize,c=e.preventDismissOnLostFocus,d=e.dismissOnTargetClick,h=e.shouldDismissOnWindowFocus,p=e.preventDismissOnEvent,f=s.useRef(!1),g=kt(),v=Lt([function(){f.current=!0},function(){f.current=!1}]),m=!!t;return s.useEffect((function(){var e=function(e){m&&!l&&v(e)},t=function(e){u||p&&p(e)||null==a||a(e)},s=function(e){c||v(e)},v=function(e){var t=e.composedPath?e.composedPath():[],o=t.length>0?t[0]:e.target,s=n.current&&!xe(n.current,o);if(s&&f.current)f.current=!1;else if(!r.current&&s||e.target!==i&&s&&(!r.current||"stopPropagation"in r.current||d||o!==r.current&&!xe(r.current,o))){if(p&&p(e))return;null==a||a(e)}},y=function(e){h&&((!p||p(e))&&(p||c)||(null==i?void 0:i.document.hasFocus())||null!==e.relatedTarget||null==a||a(e))},_=new Promise((function(n){g.setTimeout((function(){if(!o&&i){var r=[Te(i,"scroll",e,!0),Te(i,"resize",t,!0),Te(i.document.documentElement,"focus",s,!0),Te(i.document.documentElement,"click",s,!0),Te(i,"blur",y,!0)];n((function(){r.forEach((function(e){return e()}))}))}}),0)}));return function(){_.then((function(e){return e()}))}}),[o,g,n,r,i,a,h,d,c,u,l,m,p]),v}(n,V,D,N,H),z=W[0],U=W[1],j=(null==V?void 0:V.elementPosition.top)&&(null==V?void 0:V.elementPosition.bottom),Y=i(i({},null==V?void 0:V.elementPosition),{maxHeight:B});if(j&&(Y.bottom=void 0),function(e,t,n){var r=e.hidden,i=e.setInitialFocus,o=kt(),a=!!t;s.useEffect((function(){if(!r&&i&&a&&n){var e=o.requestAnimationFrame((function(){return be(n)}),n);return function(){return o.cancelAnimationFrame(e)}}}),[r,a,o,n,i])}(n,V,M),s.useEffect((function(){A||null==w||w()}),[A]),!H)return null;var X=x,q=d&&!!k,K=Pr(r,{theme:n.theme,className:c,overflowYHidden:X,calloutWidth:f,positions:V,beakWidth:p,backgroundColor:b,calloutMaxWidth:g,calloutMinWidth:v,doNotLayer:m}),Z=i(i({maxHeight:C||"100%"},o),X&&{overflowY:"hidden"}),G=n.hidden?{visibility:"hidden"}:void 0;return s.createElement("div",{ref:I,className:K.container,style:G},s.createElement("div",i({},ze(n,We,Tr),{className:Ue(K.root,V&&V.targetEdge&&wr[V.targetEdge]),style:V?i({},Y):Dr,tabIndex:-1,ref:F}),q&&s.createElement("div",{className:K.beak,style:Or(V)}),q&&s.createElement("div",{className:K.beakCurtain}),s.createElement(Pt,{role:n.role,"aria-roledescription":n["aria-roledescription"],ariaDescribedBy:l,ariaLabel:a,ariaLabelledBy:u,className:K.calloutMain,onDismiss:n.onDismiss,onMouseDown:z,onMouseUp:U,onRestoreFocus:n.onRestoreFocus,onScroll:S,shouldRestoreFocus:L,style:Z},h)))})),(function(e,t){return!(t.shouldUpdateWhenHidden||!e.hidden||!t.hidden)||function(e,t){for(var n in e)if(e.hasOwnProperty(n)&&(!t.hasOwnProperty(n)||t[n]!==e[n]))return!1;for(var n in t)if(t.hasOwnProperty(n)&&!e.hasOwnProperty(n))return!1;return!0}(e,t)}));function Or(e){var t,n,r=i(i({},null===(t=null==e?void 0:e.beakPosition)||void 0===t?void 0:t.elementPosition),{display:(null===(n=null==e?void 0:e.beakPosition)||void 0===n?void 0:n.hideBeak)?"none":void 0});return r.top||r.bottom||r.left||r.right||(r.left=0,r.top=0),r}function Nr(e,t){for(var n in t)if(t.hasOwnProperty(n)){var r=e[n],i=t[n];if(void 0===r||void 0===i)return!1;if(r.toFixed(2)!==i.toFixed(2))return!1}return!0}function Hr(e){return{height:e,width:e}}Ir.displayName="CalloutContentBase";var Rr={container:"ms-Callout-container",root:"ms-Callout",beak:"ms-Callout-beak",beakCurtain:"ms-Callout-beakCurtain",calloutMain:"ms-Callout-main"},Vr=b(Ir,(function(e){var t,n=e.theme,r=e.className,i=e.overflowYHidden,o=e.calloutWidth,a=e.beakWidth,s=e.backgroundColor,l=e.calloutMaxWidth,u=e.calloutMinWidth,c=e.doNotLayer,d=Zn(Rr,n),h=n.semanticColors,p=n.effects;return{container:[d.container,{position:"relative"}],root:[d.root,n.fonts.medium,{position:"absolute",display:"flex",zIndex:c?Mn.Layer:void 0,boxSizing:"border-box",borderRadius:p.roundedCorner2,boxShadow:p.elevation16,selectors:(t={},t[Pn]={borderWidth:1,borderStyle:"solid",borderColor:"WindowText"},t)},{selectors:{"&::-moz-focus-inner":{border:0},"&":{outline:"transparent"}}},r,!!o&&{width:o},!!l&&{maxWidth:l},!!u&&{minWidth:u}],beak:[d.beak,{position:"absolute",backgroundColor:h.menuBackground,boxShadow:"inherit",border:"inherit",boxSizing:"border-box",transform:"rotate(45deg)"},Hr(a),s&&{backgroundColor:s}],beakCurtain:[d.beakCurtain,{position:"absolute",top:0,right:0,bottom:0,left:0,backgroundColor:h.menuBackground,borderRadius:p.roundedCorner2}],calloutMain:[d.calloutMain,{backgroundColor:h.menuBackground,overflowX:"hidden",overflowY:"auto",position:"relative",width:"100%",borderRadius:p.roundedCorner2},i&&{overflowY:"hidden"},s&&{backgroundColor:s}]}}),void 0,{scope:"CalloutContent"}),Br=s.createContext((function(){return function(){}}));Br.Provider;var Wr,zr=ReactDOM,Ur=((Wr={})[38]=1,Wr[40]=1,Wr[37]=1,Wr[39]=1,Wr[36]=1,Wr[35]=1,Wr[9]=1,Wr[33]=1,Wr[34]=1,Wr),jr=new WeakMap;function Yr(e,t){var n,r=jr.get(e);return n=r?r+t:1,jr.set(e,n),n}function Xr(e){Nn(!1,e.target)}function qr(e){"mouse"!==e.pointerType&&Nn(!1,e.target)}function Kr(e){var t;t=e.which,Ur[t]&&Nn(!0,e.target)}function Zr(e,t){void 0===e&&(e={});var n=Gr(t)?t:function(e){return function(t){return e?i(i({},t),e):t}}(t);return n(e)}function Gr(e){return"function"==typeof e}var $r=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onCustomizationChange=function(){return t.forceUpdate()},t}return r(t,e),t.prototype.componentDidMount=function(){y.observe(this._onCustomizationChange)},t.prototype.componentWillUnmount=function(){y.unobserve(this._onCustomizationChange)},t.prototype.render=function(){var e=this,t=this.props.contextTransform;return s.createElement(_.Consumer,null,(function(n){var r=function(e,t){var n,r,o,a=(t||{}).customizations,s=void 0===a?{settings:{},scopedSettings:{}}:a;return{customizations:{settings:Zr(s.settings,e.settings),scopedSettings:(n=s.scopedSettings,r=e.scopedSettings,void 0===n&&(n={}),(Gr(r)?r:(void 0===(o=r)&&(o={}),function(e){var t=i({},e);for(var n in o)o.hasOwnProperty(n)&&(t[n]=i(i({},e[n]),o[n]));return t}))(n)),inCustomizerContext:!0}}}(e.props,n);return t&&(r=t(r)),s.createElement(_.Provider,{value:r},e.props.children)}))},t}(s.Component),Qr=le(),Jr=jn((function(e,t){return xr(i(i({},e),{rtl:t}))})),ei=s.forwardRef((function(e,t){var n,r=e.className,o=e.theme,a=e.applyTheme,l=e.applyThemeToBody,u=e.styles,d=Qr(u,{theme:o,applyTheme:a,className:r}),h=s.useRef(null);return function(e,t,n){var r=t.bodyThemed;s.useEffect((function(){if(e){var t=$(n.current);if(t)return t.body.classList.add(r),function(){t.body.classList.remove(r)}}}),[r,e,n])}(l,d,h),n=h,s.useEffect((function(){var e,t=c(null==n?void 0:n.current);if(t&&!0!==(null===(e=t.FabricConfig)||void 0===e?void 0:e.disableFocusRects)){var r=Yr(t,1);return r<=1&&(t.addEventListener("mousedown",Xr,!0),t.addEventListener("pointerdown",qr,!0),t.addEventListener("keydown",Kr,!0)),function(){var e;t&&!0!==(null===(e=t.FabricConfig)||void 0===e?void 0:e.disableFocusRects)&&0===(r=Yr(t,-1))&&(t.removeEventListener("mousedown",Xr,!0),t.removeEventListener("pointerdown",qr,!0),t.removeEventListener("keydown",Kr,!0))}}}),[n]),s.createElement(s.Fragment,null,function(e,t,n,r){var o=t.root,a=e.as,l=void 0===a?"div":a,u=e.dir,c=e.theme,d=ze(e,We,["dir"]),h=function(e){var t=e.theme,n=e.dir,r=ie(t)?"rtl":"ltr",i=ie()?"rtl":"ltr",o=n||r;return{rootDir:o!==r||o!==i?o:n,needsTheme:o!==r}}(e),p=h.rootDir,f=h.needsTheme,g=s.createElement(l,i({dir:p},d,{className:o,ref:wt(n,r)}));return f&&(g=s.createElement($r,{settings:{theme:Jr(c,"rtl"===u)}},g)),g}(e,d,h,t))}));ei.displayName="FabricBase";var ti,ni={fontFamily:"inherit"},ri={root:"ms-Fabric",bodyThemed:"ms-Fabric-bodyThemed"},ii=b(ei,(function(e){var t=e.theme,n=e.className,r=e.applyTheme;return{root:[Zn(ri,t).root,t.fonts.medium,{color:t.palette.neutralPrimary,selectors:{"& button":ni,"& input":ni,"& textarea":ni}},r&&{color:t.semanticColors.bodyText,backgroundColor:t.semanticColors.bodyBackground},n],bodyThemed:[{backgroundColor:t.semanticColors.bodyBackground}]}}),void 0,{scope:"Fabric"}),oi="data-portal-element",ai={},si={},li="fluent-default-layer-host",ui=s.useLayoutEffect,ci=le(),di=s.forwardRef((function(e,t){var n=s.useContext(Br),r=s.useRef(null),o=wt(r,t),a=s.useRef(),l=s.useState(!1),u=l[0],c=l[1],d=e.eventBubblingEnabled,h=e.styles,p=e.theme,f=e.className,g=e.children,v=e.hostId,m=e.onLayerDidMount,y=void 0===m?function(){}:m,_=e.onLayerMounted,x=void 0===_?function(){}:_,b=e.onLayerWillUnmount,C=e.insertFirst,S=ci(h,{theme:p,className:f,isNotHost:!v}),E=function(){null==b||b();var e=a.current;a.current=void 0,e&&e.parentNode&&e.parentNode.removeChild(e)},L=function(){var e,t=$(r.current);if(t){var n=function(e){var t,n;if(v){var r=function(e){var t=si[e];return t&&t[0]||void 0}(v);return r?null!==(t=r.rootRef.current)&&void 0!==t?t:null:null!==(n=e.getElementById(v))&&void 0!==n?n:null}var i="#fluent-default-layer-host",o=e.querySelector(i);return o||(o=function(e){var t=e.createElement("div");return t.setAttribute("id",li),t.style.cssText="position:fixed;z-index:1000000",null==e||e.body.appendChild(t),t}(e)),o}(t);if(n){E();var i=(null!==(e=n.ownerDocument)&&void 0!==e?e:t).createElement("div");i.className=S.root,i.setAttribute(oi,"true"),function(e,t){var n=e,r=t;n._virtual||(n._virtual={children:[]});var i=n._virtual.parent;if(i&&i!==t){var o=i._virtual.children.indexOf(n);o>-1&&i._virtual.children.splice(o,1)}n._virtual.parent=r||void 0,r&&(r._virtual||(r._virtual={children:[]}),r._virtual.children.push(n))}(i,r.current),C?n.insertBefore(i,n.firstChild):n.appendChild(i),a.current=i,c(!0)}}};return ui((function(){L(),v&&function(e,t){ai[e]||(ai[e]=[]),ai[e].push(t);var n=si[e];if(n)for(var r=0,i=n;r<i.length;r++)i[r].notifyLayersChanged()}(v,L);var e=a.current?n(a.current):void 0;return function(){e&&e(),E(),v&&function(e,t){var n=ai[e];if(n){var r=n.indexOf(t);r>=0&&(n.splice(r,1),0===n.length&&delete ai[e])}var i=si[e];if(i)for(var o=0,a=i;o<a.length;o++)a[o].notifyLayersChanged()}(v,L)}}),[v]),s.useEffect((function(){a.current&&u&&(null==x||x(),null==y||y(),c(!1))}),[u,x,y]),s.createElement("span",{className:"ms-layer",ref:o},a.current&&zr.createPortal(s.createElement(ii,i({},!d&&(ti||(ti={},["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(e){return ti[e]=hi}))),ti),{className:S.content}),g),a.current))}));di.displayName="LayerBase";var hi=function(e){e.eventPhase===Event.BUBBLING_PHASE&&"mouseenter"!==e.type&&"mouseleave"!==e.type&&"touchstart"!==e.type&&"touchend"!==e.type&&e.stopPropagation()},pi={root:"ms-Layer",rootNoHost:"ms-Layer--fixed",content:"ms-Layer-content"},fi=b(di,(function(e){var t=e.className,n=e.isNotHost,r=e.theme,i=Zn(pi,r);return{root:[i.root,r.fonts.medium,n&&[i.rootNoHost,{position:"fixed",zIndex:Mn.Layer,top:0,left:0,bottom:0,right:0,visibility:"hidden"}],t],content:[i.content,{visibility:"visible"}]}}),void 0,{scope:"Layer",fields:["hostId","theme","styles"]}),gi=s.forwardRef((function(e,t){var n=e.layerProps,r=e.doNotLayer,a=o(e,["layerProps","doNotLayer"]),l=s.createElement(Vr,i({},a,{doNotLayer:r,ref:t}));return r?l:s.createElement(fi,i({},n),l)}));gi.displayName="Callout";var vi=Array.prototype.slice;function mi(e){return e}var yi=1e-6;function _i(e){return"translate("+(e+.5)+",0)"}function xi(e){return"translate(0,"+(e+.5)+")"}function bi(e){return function(t){return+e(t)}}function Ci(e){var t=Math.max(0,e.bandwidth()-1)/2;return e.round()&&(t=Math.round(t)),function(n){return+e(n)+t}}function Si(){return!this.__axis}function Ei(e,t){var n=[],r=null,i=null,o=6,a=6,s=3,l=1===e||4===e?-1:1,u=4===e||2===e?"x":"y",c=1===e||3===e?_i:xi;function d(d){var h=null==r?t.ticks?t.ticks.apply(t,n):t.domain():r,p=null==i?t.tickFormat?t.tickFormat.apply(t,n):mi:i,f=Math.max(o,0)+s,g=t.range(),v=+g[0]+.5,m=+g[g.length-1]+.5,y=(t.bandwidth?Ci:bi)(t.copy()),_=d.selection?d.selection():d,x=_.selectAll(".domain").data([null]),b=_.selectAll(".tick").data(h,t).order(),C=b.exit(),S=b.enter().append("g").attr("class","tick"),E=b.select("line"),L=b.select("text");x=x.merge(x.enter().insert("path",".tick").attr("class","domain").attr("stroke","#000")),b=b.merge(S),E=E.merge(S.append("line").attr("stroke","#000").attr(u+"2",l*o)),L=L.merge(S.append("text").attr("fill","#000").attr(u,l*f).attr("dy",1===e?"0em":3===e?"0.71em":"0.32em")),d!==_&&(x=x.transition(d),b=b.transition(d),E=E.transition(d),L=L.transition(d),C=C.transition(d).attr("opacity",yi).attr("transform",(function(e){return isFinite(e=y(e))?c(e):this.getAttribute("transform")})),S.attr("opacity",yi).attr("transform",(function(e){var t=this.parentNode.__axis;return c(t&&isFinite(t=t(e))?t:y(e))}))),C.remove(),x.attr("d",4===e||2==e?"M"+l*a+","+v+"H0.5V"+m+"H"+l*a:"M"+v+","+l*a+"V0.5H"+m+"V"+l*a),b.attr("opacity",1).attr("transform",(function(e){return c(y(e))})),E.attr(u+"2",l*o),L.attr(u,l*f).text(p),_.filter(Si).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===e?"start":4===e?"end":"middle"),_.each((function(){this.__axis=y}))}return d.scale=function(e){return arguments.length?(t=e,d):t},d.ticks=function(){return n=vi.call(arguments),d},d.tickArguments=function(e){return arguments.length?(n=null==e?[]:vi.call(e),d):n.slice()},d.tickValues=function(e){return arguments.length?(r=null==e?null:vi.call(e),d):r&&r.slice()},d.tickFormat=function(e){return arguments.length?(i=e,d):i},d.tickSize=function(e){return arguments.length?(o=a=+e,d):o},d.tickSizeInner=function(e){return arguments.length?(o=+e,d):o},d.tickSizeOuter=function(e){return arguments.length?(a=+e,d):a},d.tickPadding=function(e){return arguments.length?(s=+e,d):s},d}function Li(e){return Ei(2,e)}function ki(e){return Ei(3,e)}function Ai(e){return Ei(4,e)}function wi(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Di(e){var t;return 1===e.length&&(t=e,e=function(e,n){return wi(t(e),n)}),{left:function(t,n,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r<i;){var o=r+i>>>1;e(t[o],n)<0?r=o+1:i=o}return r},right:function(t,n,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r<i;){var o=r+i>>>1;e(t[o],n)>0?i=o:r=o+1}return r}}}var Ti=Di(wi),Mi=Ti.right,Pi=(Ti.left,Mi),Fi=Array.prototype,Ii=(Fi.slice,Fi.map,Math.sqrt(50)),Oi=Math.sqrt(10),Ni=Math.sqrt(2);function Hi(e,t,n){var r=(t-e)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),o=r/Math.pow(10,i);return i>=0?(o>=Ii?10:o>=Oi?5:o>=Ni?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=Ii?10:o>=Oi?5:o>=Ni?2:1)}function Ri(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=Ii?i*=10:o>=Oi?i*=5:o>=Ni&&(i*=2),t<e?-i:i}function Vi(e,t){var n,r,i=e.length,o=-1;if(null==t){for(;++o<i;)if(null!=(n=e[o])&&n>=n)for(r=n;++o<i;)null!=(n=e[o])&&n>r&&(r=n)}else for(;++o<i;)if(null!=(n=t(e[o],o,e))&&n>=n)for(r=n;++o<i;)null!=(n=t(e[o],o,e))&&n>r&&(r=n);return r}function Bi(e,t){var n,r,i=e.length,o=-1;if(null==t){for(;++o<i;)if(null!=(n=e[o])&&n>=n)for(r=n;++o<i;)null!=(n=e[o])&&r>n&&(r=n)}else for(;++o<i;)if(null!=(n=t(e[o],o,e))&&n>=n)for(r=n;++o<i;)null!=(n=t(e[o],o,e))&&r>n&&(r=n);return r}function Wi(e,t){var n,r=e.length,i=-1,o=0;if(null==t)for(;++i<r;)(n=+e[i])&&(o+=n);else for(;++i<r;)(n=+t(e[i],i,e))&&(o+=n);return o}var zi="$";function Ui(){}function ji(e,t){var n=new Ui;if(e instanceof Ui)e.each((function(e,t){n.set(t,e)}));else if(Array.isArray(e)){var r,i=-1,o=e.length;if(null==t)for(;++i<o;)n.set(i,e[i]);else for(;++i<o;)n.set(t(r=e[i],i,e),r)}else if(e)for(var a in e)n.set(a,e[a]);return n}Ui.prototype=ji.prototype={constructor:Ui,has:function(e){return zi+e in this},get:function(e){return this[zi+e]},set:function(e,t){return this[zi+e]=t,this},remove:function(e){var t=zi+e;return t in this&&delete this[t]},clear:function(){for(var e in this)e[0]===zi&&delete this[e]},keys:function(){var e=[];for(var t in this)t[0]===zi&&e.push(t.slice(1));return e},values:function(){var e=[];for(var t in this)t[0]===zi&&e.push(this[t]);return e},entries:function(){var e=[];for(var t in this)t[0]===zi&&e.push({key:t.slice(1),value:this[t]});return e},size:function(){var e=0;for(var t in this)t[0]===zi&&++e;return e},empty:function(){for(var e in this)if(e[0]===zi)return!1;return!0},each:function(e){for(var t in this)t[0]===zi&&e(this[t],t.slice(1),this)}};var Yi=ji;function Xi(){}var qi=Yi.prototype;Xi.prototype=function(e,t){var n=new Xi;if(e instanceof Xi)e.each((function(e){n.add(e)}));else if(e){var r=-1,i=e.length;if(null==t)for(;++r<i;)n.add(e[r]);else for(;++r<i;)n.add(t(e[r],r,e))}return n}.prototype={constructor:Xi,has:qi.has,add:function(e){return this[zi+(e+="")]=e,this},remove:qi.remove,clear:qi.clear,values:qi.keys,size:qi.size,empty:qi.empty,each:qi.each};var Ki=Array.prototype,Zi=Ki.map,Gi=Ki.slice,$i={name:"implicit"};function Qi(e){var t=Yi(),n=[],r=$i;function i(i){var o=i+"",a=t.get(o);if(!a){if(r!==$i)return r;t.set(o,a=n.push(i))}return e[(a-1)%e.length]}return e=null==e?[]:Gi.call(e),i.domain=function(e){if(!arguments.length)return n.slice();n=[],t=Yi();for(var r,o,a=-1,s=e.length;++a<s;)t.has(o=(r=e[a])+"")||t.set(o,n.push(r));return i},i.range=function(t){return arguments.length?(e=Gi.call(t),i):e.slice()},i.unknown=function(e){return arguments.length?(r=e,i):r},i.copy=function(){return Qi().domain(n).range(e).unknown(r)},i}function Ji(){var e,t,n=Qi().unknown(void 0),r=n.domain,i=n.range,o=[0,1],a=!1,s=0,l=0,u=.5;function c(){var n=r().length,c=o[1]<o[0],d=o[c-0],h=o[1-c];e=(h-d)/Math.max(1,n-s+2*l),a&&(e=Math.floor(e)),d+=(h-d-e*(n-s))*u,t=e*(1-s),a&&(d=Math.round(d),t=Math.round(t));var p=function(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((t-e)/n)),o=new Array(i);++r<i;)o[r]=e+r*n;return o}(n).map((function(t){return d+e*t}));return i(c?p.reverse():p)}return delete n.unknown,n.domain=function(e){return arguments.length?(r(e),c()):r()},n.range=function(e){return arguments.length?(o=[+e[0],+e[1]],c()):o.slice()},n.rangeRound=function(e){return o=[+e[0],+e[1]],a=!0,c()},n.bandwidth=function(){return t},n.step=function(){return e},n.round=function(e){return arguments.length?(a=!!e,c()):a},n.padding=function(e){return arguments.length?(s=l=Math.max(0,Math.min(1,e)),c()):s},n.paddingInner=function(e){return arguments.length?(s=Math.max(0,Math.min(1,e)),c()):s},n.paddingOuter=function(e){return arguments.length?(l=Math.max(0,Math.min(1,e)),c()):l},n.align=function(e){return arguments.length?(u=Math.max(0,Math.min(1,e)),c()):u},n.copy=function(){return Ji().domain(r()).range(o).round(a).paddingInner(s).paddingOuter(l).align(u)},c()}function eo(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function to(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function no(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function ro(){}var io=.7,oo=1/io,ao="\\s*([+-]?\\d+)\\s*",so="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",lo="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",uo=/^#([0-9a-f]{3,8})$/,co=new RegExp("^rgb\\("+[ao,ao,ao]+"\\)$"),ho=new RegExp("^rgb\\("+[lo,lo,lo]+"\\)$"),po=new RegExp("^rgba\\("+[ao,ao,ao,so]+"\\)$"),fo=new RegExp("^rgba\\("+[lo,lo,lo,so]+"\\)$"),go=new RegExp("^hsl\\("+[so,lo,lo]+"\\)$"),vo=new RegExp("^hsla\\("+[so,lo,lo,so]+"\\)$"),mo={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 yo(){return this.rgb().formatHex()}function _o(){return this.rgb().formatRgb()}function xo(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=uo.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?bo(t):3===n?new Lo(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?new Lo(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?new Lo(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=co.exec(e))?new Lo(t[1],t[2],t[3],1):(t=ho.exec(e))?new Lo(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=po.exec(e))?Co(t[1],t[2],t[3],t[4]):(t=fo.exec(e))?Co(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=go.exec(e))?Do(t[1],t[2]/100,t[3]/100,1):(t=vo.exec(e))?Do(t[1],t[2]/100,t[3]/100,t[4]):mo.hasOwnProperty(e)?bo(mo[e]):"transparent"===e?new Lo(NaN,NaN,NaN,0):null}function bo(e){return new Lo(e>>16&255,e>>8&255,255&e,1)}function Co(e,t,n,r){return r<=0&&(e=t=n=NaN),new Lo(e,t,n,r)}function So(e){return e instanceof ro||(e=xo(e)),e?new Lo((e=e.rgb()).r,e.g,e.b,e.opacity):new Lo}function Eo(e,t,n,r){return 1===arguments.length?So(e):new Lo(e,t,n,null==r?1:r)}function Lo(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function ko(){return"#"+wo(this.r)+wo(this.g)+wo(this.b)}function Ao(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}function wo(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function Do(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Mo(e,t,n,r)}function To(e){if(e instanceof Mo)return new Mo(e.h,e.s,e.l,e.opacity);if(e instanceof ro||(e=xo(e)),!e)return new Mo;if(e instanceof Mo)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,l=(o+i)/2;return s?(a=t===o?(n-r)/s+6*(n<r):n===o?(r-t)/s+2:(t-n)/s+4,s/=l<.5?o+i:2-o-i,a*=60):s=l>0&&l<1?0:a,new Mo(a,s,l,e.opacity)}function Mo(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Po(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}function Fo(e,t,n,r,i){var o=e*e,a=o*e;return((1-3*e+3*o-a)*t+(4-6*o+3*a)*n+(1+3*e+3*o-3*a)*r+a*i)/6}function Io(e){return function(){return e}}function Oo(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):Io(isNaN(e)?t:e)}to(ro,xo,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:yo,formatHex:yo,formatHsl:function(){return To(this).formatHsl()},formatRgb:_o,toString:_o}),to(Lo,Eo,no(ro,{brighter:function(e){return e=null==e?oo:Math.pow(oo,e),new Lo(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?io:Math.pow(io,e),new Lo(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:ko,formatHex:ko,formatRgb:Ao,toString:Ao})),to(Mo,(function(e,t,n,r){return 1===arguments.length?To(e):new Mo(e,t,n,null==r?1:r)}),no(ro,{brighter:function(e){return e=null==e?oo:Math.pow(oo,e),new Mo(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?io:Math.pow(io,e),new Mo(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new Lo(Po(e>=240?e-240:e+120,i,r),Po(e,i,r),Po(e<120?e+240:e-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}));var No=function e(t){var n=function(e){return 1==(e=+e)?Oo:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):Io(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=Eo(e)).r,(t=Eo(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),a=Oo(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function Ho(e){return function(t){var n,r,i=t.length,o=new Array(i),a=new Array(i),s=new Array(i);for(n=0;n<i;++n)r=Eo(t[n]),o[n]=r.r||0,a[n]=r.g||0,s[n]=r.b||0;return o=e(o),a=e(a),s=e(s),r.opacity=1,function(e){return r.r=o(e),r.g=a(e),r.b=s(e),r+""}}}function Ro(e,t){var n,r=t?t.length:0,i=e?Math.min(r,e.length):0,o=new Array(i),a=new Array(r);for(n=0;n<i;++n)o[n]=Yo(e[n],t[n]);for(;n<r;++n)a[n]=t[n];return function(e){for(n=0;n<i;++n)a[n]=o[n](e);return a}}function Vo(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Bo(e,t){var n,r={},i={};for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?r[n]=Yo(e[n],t[n]):i[n]=t[n];return function(e){for(n in r)i[n]=r[n](e);return i}}Ho((function(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),i=e[r],o=e[r+1],a=r>0?e[r-1]:2*i-o,s=r<t-1?e[r+2]:2*o-i;return Fo((n-r/t)*t,a,i,o,s)}})),Ho((function(e){var t=e.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*t),i=e[(r+t-1)%t],o=e[r%t],a=e[(r+1)%t],s=e[(r+2)%t];return Fo((n-r/t)*t,i,o,a,s)}}));var Wo=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,zo=new RegExp(Wo.source,"g");function Uo(e,t){var n,r,i,o=Wo.lastIndex=zo.lastIndex=0,a=-1,s=[],l=[];for(e+="",t+="";(n=Wo.exec(e))&&(r=zo.exec(t));)(i=r.index)>o&&(i=t.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,l.push({i:a,x:eo(n,r)})),o=zo.lastIndex;return o<t.length&&(i=t.slice(o),s[a]?s[a]+=i:s[++a]=i),s.length<2?l[0]?function(e){return function(t){return e(t)+""}}(l[0].x):function(e){return function(){return e}}(t):(t=l.length,function(e){for(var n,r=0;r<t;++r)s[(n=l[r]).i]=n.x(e);return s.join("")})}function jo(e,t){t||(t=[]);var n,r=e?Math.min(t.length,e.length):0,i=t.slice();return function(o){for(n=0;n<r;++n)i[n]=e[n]*(1-o)+t[n]*o;return i}}function Yo(e,t){var n,r,i=typeof t;return null==t||"boolean"===i?Io(t):("number"===i?eo:"string"===i?(n=xo(t))?(t=n,No):Uo:t instanceof xo?No:t instanceof Date?Vo:(r=t,!ArrayBuffer.isView(r)||r instanceof DataView?Array.isArray(t)?Ro:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?Bo:eo:jo))(e,t)}function Xo(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function qo(e){return+e}var Ko=[0,1];function Zo(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:(n=t,function(){return n});var n}function Go(e,t,n,r){var i=e[0],o=e[1],a=t[0],s=t[1];return o<i?(i=n(o,i),a=r(s,a)):(i=n(i,o),a=r(a,s)),function(e){return a(i(e))}}function $o(e,t,n,r){var i=Math.min(e.length,t.length)-1,o=new Array(i),a=new Array(i),s=-1;for(e[i]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++s<i;)o[s]=n(e[s],e[s+1]),a[s]=r(t[s],t[s+1]);return function(t){var n=Pi(e,t,1,i)-1;return a[n](o[n](t))}}function Qo(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp())}function Jo(e,t){var n,r,i,o=Ko,a=Ko,s=Yo,l=!1;function u(){return n=Math.min(o.length,a.length)>2?$o:Go,r=i=null,c}function c(t){return(r||(r=n(o,a,l?function(e){return function(t,n){var r=e(t=+t,n=+n);return function(e){return e<=t?0:e>=n?1:r(e)}}}(e):e,s)))(+t)}return c.invert=function(e){return(i||(i=n(a,o,Zo,l?function(e){return function(t,n){var r=e(t=+t,n=+n);return function(e){return e<=0?t:e>=1?n:r(e)}}}(t):t)))(+e)},c.domain=function(e){return arguments.length?(o=Zi.call(e,qo),u()):o.slice()},c.range=function(e){return arguments.length?(a=Gi.call(e),u()):a.slice()},c.rangeRound=function(e){return a=Gi.call(e),s=Xo,u()},c.clamp=function(e){return arguments.length?(l=!!e,u()):l},c.interpolate=function(e){return arguments.length?(s=e,u()):s},u()}var ea,ta=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function na(e){if(!(t=ta.exec(e)))throw new Error("invalid format: "+e);var t;return new ra({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function ra(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function ia(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function oa(e){return(e=ia(Math.abs(e)))?e[1]:NaN}function aa(e,t){var n=ia(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}na.prototype=ra.prototype,ra.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 sa={"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:function(e){return Math.round(e).toString(10)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return aa(100*e,t)},r:aa,s:function(e,t){var n=ia(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(ea=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+ia(e,Math.max(0,t+o-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function la(e){return e}var ua,ca,da,ha=Array.prototype.map,pa=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function fa(e){var t=e.domain;return e.ticks=function(e){var n=t();return function(e,t,n){var r,i,o,a,s=-1;if(n=+n,(e=+e)==(t=+t)&&n>0)return[e];if((r=t<e)&&(i=e,e=t,t=i),0===(a=Hi(e,t,n))||!isFinite(a))return[];if(a>0)for(e=Math.ceil(e/a),t=Math.floor(t/a),o=new Array(i=Math.ceil(t-e+1));++s<i;)o[s]=(e+s)*a;else for(e=Math.floor(e*a),t=Math.ceil(t*a),o=new Array(i=Math.ceil(e-t+1));++s<i;)o[s]=(e-s)/a;return r&&o.reverse(),o}(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){return function(e,t,n){var r,i=e[0],o=e[e.length-1],a=Ri(i,o,null==t?10:t);switch((n=na(null==n?",f":n)).type){case"s":var s=Math.max(Math.abs(i),Math.abs(o));return null!=n.precision||isNaN(r=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(oa(t)/3)))-oa(Math.abs(e)))}(a,s))||(n.precision=r),da(n,s);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(r=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,oa(t)-oa(e))+1}(a,Math.max(Math.abs(i),Math.abs(o))))||(n.precision=r-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(r=function(e){return Math.max(0,-oa(Math.abs(e)))}(a))||(n.precision=r-2*("%"===n.type))}return ca(n)}(t(),e,n)},e.nice=function(n){null==n&&(n=10);var r,i=t(),o=0,a=i.length-1,s=i[o],l=i[a];return l<s&&(r=s,s=l,l=r,r=o,o=a,a=r),(r=Hi(s,l,n))>0?r=Hi(s=Math.floor(s/r)*r,l=Math.ceil(l/r)*r,n):r<0&&(r=Hi(s=Math.ceil(s*r)/r,l=Math.floor(l*r)/r,n)),r>0?(i[o]=Math.floor(s/r)*r,i[a]=Math.ceil(l/r)*r,t(i)):r<0&&(i[o]=Math.ceil(s*r)/r,i[a]=Math.floor(l*r)/r,t(i)),e},e}function ga(){var e=Jo(Zo,eo);return e.copy=function(){return Qo(e,ga())},fa(e)}ua=function(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?la:(t=ha.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var i=e.length,o=[],a=0,s=t[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),o.push(e.substring(i-=s,i+s)),!((l+=s+1)>r));)s=t[a=(a+1)%t.length];return o.reverse().join(n)}),i=void 0===e.currency?"":e.currency[0]+"",o=void 0===e.currency?"":e.currency[1]+"",a=void 0===e.decimal?".":e.decimal+"",s=void 0===e.numerals?la:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(ha.call(e.numerals,String)),l=void 0===e.percent?"%":e.percent+"",u=void 0===e.minus?"-":e.minus+"",c=void 0===e.nan?"NaN":e.nan+"";function d(e){var t=(e=na(e)).fill,n=e.align,d=e.sign,h=e.symbol,p=e.zero,f=e.width,g=e.comma,v=e.precision,m=e.trim,y=e.type;"n"===y?(g=!0,y="g"):sa[y]||(void 0===v&&(v=12),m=!0,y="g"),(p||"0"===t&&"="===n)&&(p=!0,t="0",n="=");var _="$"===h?i:"#"===h&&/[boxX]/.test(y)?"0"+y.toLowerCase():"",x="$"===h?o:/[%p]/.test(y)?l:"",b=sa[y],C=/[defgprs%]/.test(y);function S(e){var i,o,l,h=_,S=x;if("c"===y)S=b(e)+S,e="";else{var E=(e=+e)<0||1/e<0;if(e=isNaN(e)?c:b(Math.abs(e),v),m&&(e=function(e){e:for(var t,n=e.length,r=1,i=-1;r<n;++r)switch(e[r]){case".":i=t=r;break;case"0":0===i&&(i=r),t=r;break;default:if(!+e[r])break e;i>0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),E&&0==+e&&"+"!==d&&(E=!1),h=(E?"("===d?d:u:"-"===d||"("===d?"":d)+h,S=("s"===y?pa[8+ea/3]:"")+S+(E&&"("===d?")":""),C)for(i=-1,o=e.length;++i<o;)if(48>(l=e.charCodeAt(i))||l>57){S=(46===l?a+e.slice(i+1):e.slice(i))+S,e=e.slice(0,i);break}}g&&!p&&(e=r(e,1/0));var L=h.length+e.length+S.length,k=L<f?new Array(f-L+1).join(t):"";switch(g&&p&&(e=r(k+e,k.length?f-S.length:1/0),k=""),n){case"<":e=h+e+S+k;break;case"=":e=h+k+e+S;break;case"^":e=k.slice(0,L=k.length>>1)+h+e+S+k.slice(L);break;default:e=k+h+e+S}return s(e)}return v=void 0===v?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v)),S.toString=function(){return e+""},S}return{format:d,formatPrefix:function(e,t){var n=d(((e=na(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(oa(t)/3))),i=Math.pow(10,-r),o=pa[8+r/3];return function(e){return n(i*e)+o}}}}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),ca=ua.format,da=ua.formatPrefix;var va=new Date,ma=new Date;function ya(e,t,n,r){function i(t){return e(t=new Date(+t)),t}return i.floor=i,i.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},i.round=function(e){var t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=function(e,n){return t(e=new Date(+e),null==n?1:Math.floor(n)),e},i.range=function(n,r,o){var a,s=[];if(n=i.ceil(n),o=null==o?1:Math.floor(o),!(n<r&&o>0))return s;do{s.push(a=new Date(+n)),t(n,o),e(n)}while(a<n&&n<r);return s},i.filter=function(n){return ya((function(t){if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),(function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}))},n&&(i.count=function(t,r){return va.setTime(+t),ma.setTime(+r),e(va),e(ma),Math.floor(n(va,ma))},i.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?i.filter(r?function(t){return r(t)%e==0}:function(t){return i.count(0,t)%e==0}):i:null}),i}var _a=ya((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e}));_a.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?ya((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):_a:null};var xa=_a,ba=(_a.range,1e3),Ca=6e4,Sa=36e5,Ea=864e5,La=6048e5,ka=ya((function(e){e.setTime(e-e.getMilliseconds())}),(function(e,t){e.setTime(+e+t*ba)}),(function(e,t){return(t-e)/ba}),(function(e){return e.getUTCSeconds()})),Aa=ka,wa=(ka.range,ya((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*ba)}),(function(e,t){e.setTime(+e+t*Ca)}),(function(e,t){return(t-e)/Ca}),(function(e){return e.getMinutes()}))),Da=wa,Ta=(wa.range,ya((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*ba-e.getMinutes()*Ca)}),(function(e,t){e.setTime(+e+t*Sa)}),(function(e,t){return(t-e)/Sa}),(function(e){return e.getHours()}))),Ma=Ta,Pa=(Ta.range,ya((function(e){e.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Ca)/Ea}),(function(e){return e.getDate()-1}))),Fa=Pa;function Ia(e){return ya((function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+7*t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Ca)/La}))}Pa.range;var Oa=Ia(0),Na=Ia(1),Ha=Ia(2),Ra=Ia(3),Va=Ia(4),Ba=Ia(5),Wa=Ia(6),za=(Oa.range,Na.range,Ha.range,Ra.range,Va.range,Ba.range,Wa.range,ya((function(e){e.setDate(1),e.setHours(0,0,0,0)}),(function(e,t){e.setMonth(e.getMonth()+t)}),(function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())}),(function(e){return e.getMonth()}))),Ua=za,ja=(za.range,ya((function(e){e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,t){e.setFullYear(e.getFullYear()+t)}),(function(e,t){return t.getFullYear()-e.getFullYear()}),(function(e){return e.getFullYear()})));ja.every=function(e){return isFinite(e=Math.floor(e))&&e>0?ya((function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n*e)})):null};var Ya=ja,Xa=(ja.range,ya((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+t*Ca)}),(function(e,t){return(t-e)/Ca}),(function(e){return e.getUTCMinutes()}))),qa=(Xa.range,ya((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+t*Sa)}),(function(e,t){return(t-e)/Sa}),(function(e){return e.getUTCHours()}))),Ka=(qa.range,ya((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/Ea}),(function(e){return e.getUTCDate()-1}))),Za=Ka;function Ga(e){return ya((function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+7*t)}),(function(e,t){return(t-e)/La}))}Ka.range;var $a=Ga(0),Qa=Ga(1),Ja=Ga(2),es=Ga(3),ts=Ga(4),ns=Ga(5),rs=Ga(6),is=($a.range,Qa.range,Ja.range,es.range,ts.range,ns.range,rs.range,ya((function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCMonth(e.getUTCMonth()+t)}),(function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())}),(function(e){return e.getUTCMonth()}))),os=(is.range,ya((function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)}),(function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}),(function(e){return e.getUTCFullYear()})));os.every=function(e){return isFinite(e=Math.floor(e))&&e>0?ya((function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null};var as=os;function ss(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function ls(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function us(e){return{y:e,m:0,d:1,H:0,M:0,S:0,L:0}}os.range;var cs,ds,hs,ps,fs={"-":"",_:" ",0:"0"},gs=/^\s*\d+/,vs=/^%/,ms=/[\\^$*+?|[\]().{}]/g;function ys(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(t)+i:i)}function _s(e){return e.replace(ms,"\\$&")}function xs(e){return new RegExp("^(?:"+e.map(_s).join("|")+")","i")}function bs(e){for(var t={},n=-1,r=e.length;++n<r;)t[e[n].toLowerCase()]=n;return t}function Cs(e,t,n){var r=gs.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Ss(e,t,n){var r=gs.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Es(e,t,n){var r=gs.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Ls(e,t,n){var r=gs.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function ks(e,t,n){var r=gs.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function As(e,t,n){var r=gs.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function ws(e,t,n){var r=gs.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Ds(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Ts(e,t,n){var r=gs.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function Ms(e,t,n){var r=gs.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Ps(e,t,n){var r=gs.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Fs(e,t,n){var r=gs.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Is(e,t,n){var r=gs.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Os(e,t,n){var r=gs.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Ns(e,t,n){var r=gs.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Hs(e,t,n){var r=gs.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Rs(e,t,n){var r=vs.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Vs(e,t,n){var r=gs.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Bs(e,t,n){var r=gs.exec(t.slice(n));return r?(e.Q=1e3*+r[0],n+r[0].length):-1}function Ws(e,t){return ys(e.getDate(),t,2)}function zs(e,t){return ys(e.getHours(),t,2)}function Us(e,t){return ys(e.getHours()%12||12,t,2)}function js(e,t){return ys(1+Fa.count(Ya(e),e),t,3)}function Ys(e,t){return ys(e.getMilliseconds(),t,3)}function Xs(e,t){return Ys(e,t)+"000"}function qs(e,t){return ys(e.getMonth()+1,t,2)}function Ks(e,t){return ys(e.getMinutes(),t,2)}function Zs(e,t){return ys(e.getSeconds(),t,2)}function Gs(e){var t=e.getDay();return 0===t?7:t}function $s(e,t){return ys(Oa.count(Ya(e),e),t,2)}function Qs(e,t){var n=e.getDay();return e=n>=4||0===n?Va(e):Va.ceil(e),ys(Va.count(Ya(e),e)+(4===Ya(e).getDay()),t,2)}function Js(e){return e.getDay()}function el(e,t){return ys(Na.count(Ya(e),e),t,2)}function tl(e,t){return ys(e.getFullYear()%100,t,2)}function nl(e,t){return ys(e.getFullYear()%1e4,t,4)}function rl(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+ys(t/60|0,"0",2)+ys(t%60,"0",2)}function il(e,t){return ys(e.getUTCDate(),t,2)}function ol(e,t){return ys(e.getUTCHours(),t,2)}function al(e,t){return ys(e.getUTCHours()%12||12,t,2)}function sl(e,t){return ys(1+Za.count(as(e),e),t,3)}function ll(e,t){return ys(e.getUTCMilliseconds(),t,3)}function ul(e,t){return ll(e,t)+"000"}function cl(e,t){return ys(e.getUTCMonth()+1,t,2)}function dl(e,t){return ys(e.getUTCMinutes(),t,2)}function hl(e,t){return ys(e.getUTCSeconds(),t,2)}function pl(e){var t=e.getUTCDay();return 0===t?7:t}function fl(e,t){return ys($a.count(as(e),e),t,2)}function gl(e,t){var n=e.getUTCDay();return e=n>=4||0===n?ts(e):ts.ceil(e),ys(ts.count(as(e),e)+(4===as(e).getUTCDay()),t,2)}function vl(e){return e.getUTCDay()}function ml(e,t){return ys(Qa.count(as(e),e),t,2)}function yl(e,t){return ys(e.getUTCFullYear()%100,t,2)}function _l(e,t){return ys(e.getUTCFullYear()%1e4,t,4)}function xl(){return"+0000"}function bl(){return"%"}function Cl(e){return+e}function Sl(e){return Math.floor(+e/1e3)}cs=function(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,a=e.shortDays,s=e.months,l=e.shortMonths,u=xs(i),c=bs(i),d=xs(o),h=bs(o),p=xs(a),f=bs(a),g=xs(s),v=bs(s),m=xs(l),y=bs(l),_={a:function(e){return a[e.getDay()]},A:function(e){return o[e.getDay()]},b:function(e){return l[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:null,d:Ws,e:Ws,f:Xs,H:zs,I:Us,j:js,L:Ys,m:qs,M:Ks,p:function(e){return i[+(e.getHours()>=12)]},Q:Cl,s:Sl,S:Zs,u:Gs,U:$s,V:Qs,w:Js,W:el,x:null,X:null,y:tl,Y:nl,Z:rl,"%":bl},x={a:function(e){return a[e.getUTCDay()]},A:function(e){return o[e.getUTCDay()]},b:function(e){return l[e.getUTCMonth()]},B:function(e){return s[e.getUTCMonth()]},c:null,d:il,e:il,f:ul,H:ol,I:al,j:sl,L:ll,m:cl,M:dl,p:function(e){return i[+(e.getUTCHours()>=12)]},Q:Cl,s:Sl,S:hl,u:pl,U:fl,V:gl,w:vl,W:ml,x:null,X:null,y:yl,Y:_l,Z:xl,"%":bl},b={a:function(e,t,n){var r=p.exec(t.slice(n));return r?(e.w=f[r[0].toLowerCase()],n+r[0].length):-1},A:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=h[r[0].toLowerCase()],n+r[0].length):-1},b:function(e,t,n){var r=m.exec(t.slice(n));return r?(e.m=y[r[0].toLowerCase()],n+r[0].length):-1},B:function(e,t,n){var r=g.exec(t.slice(n));return r?(e.m=v[r[0].toLowerCase()],n+r[0].length):-1},c:function(e,n,r){return E(e,t,n,r)},d:Ms,e:Ms,f:Hs,H:Fs,I:Fs,j:Ps,L:Ns,m:Ts,M:Is,p:function(e,t,n){var r=u.exec(t.slice(n));return r?(e.p=c[r[0].toLowerCase()],n+r[0].length):-1},Q:Vs,s:Bs,S:Os,u:Ss,U:Es,V:Ls,w:Cs,W:ks,x:function(e,t,r){return E(e,n,t,r)},X:function(e,t,n){return E(e,r,t,n)},y:ws,Y:As,Z:Ds,"%":Rs};function C(e,t){return function(n){var r,i,o,a=[],s=-1,l=0,u=e.length;for(n instanceof Date||(n=new Date(+n));++s<u;)37===e.charCodeAt(s)&&(a.push(e.slice(l,s)),null!=(i=fs[r=e.charAt(++s)])?r=e.charAt(++s):i="e"===r?" ":"0",(o=t[r])&&(r=o(n,i)),a.push(r),l=s+1);return a.push(e.slice(l,s)),a.join("")}}function S(e,t){return function(n){var r,i,o=us(1900);if(E(o,e,n+="",0)!=n.length)return null;if("Q"in o)return new Date(o.Q);if("p"in o&&(o.H=o.H%12+12*o.p),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(i=(r=ls(us(o.y))).getUTCDay(),r=i>4||0===i?Qa.ceil(r):Qa(r),r=Za.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=t(us(o.y))).getDay(),r=i>4||0===i?Na.ceil(r):Na(r),r=Fa.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?ls(us(o.y)).getUTCDay():t(us(o.y)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,ls(o)):t(o)}}function E(e,t,n,r){for(var i,o,a=0,s=t.length,l=n.length;a<s;){if(r>=l)return-1;if(37===(i=t.charCodeAt(a++))){if(i=t.charAt(a++),!(o=b[i in fs?t.charAt(a++):i])||(r=o(e,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return _.x=C(n,_),_.X=C(r,_),_.c=C(t,_),x.x=C(n,x),x.X=C(r,x),x.c=C(t,x),{format:function(e){var t=C(e+="",_);return t.toString=function(){return e},t},parse:function(e){var t=S(e+="",ss);return t.toString=function(){return e},t},utcFormat:function(e){var t=C(e+="",x);return t.toString=function(){return e},t},utcParse:function(e){var t=S(e,ls);return t.toString=function(){return e},t}}}({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"]}),ds=cs.format,cs.parse,hs=cs.utcFormat,ps=cs.utcParse;var El="%Y-%m-%dT%H:%M:%S.%LZ";Date.prototype.toISOString||hs(El),+new Date("2000-01-01T00:00:00.000Z")||ps(El);var Ll=31536e6;function kl(e){return new Date(e)}function Al(e){return e instanceof Date?+e:+new Date(+e)}function wl(e,t,n,r,i,o,a,s,l){var u=Jo(Zo,eo),c=u.invert,d=u.domain,h=l(".%L"),p=l(":%S"),f=l("%I:%M"),g=l("%I %p"),v=l("%a %d"),m=l("%b %d"),y=l("%B"),_=l("%Y"),x=[[a,1,1e3],[a,5,5e3],[a,15,15e3],[a,30,3e4],[o,1,6e4],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,36e5],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,864e5],[r,2,1728e5],[n,1,6048e5],[t,1,2592e6],[t,3,7776e6],[e,1,Ll]];function b(s){return(a(s)<s?h:o(s)<s?p:i(s)<s?f:r(s)<s?g:t(s)<s?n(s)<s?v:m:e(s)<s?y:_)(s)}function C(t,n,r,i){if(null==t&&(t=10),"number"==typeof t){var o=Math.abs(r-n)/t,a=Di((function(e){return e[2]})).right(x,o);a===x.length?(i=Ri(n/Ll,r/Ll,t),t=e):a?(i=(a=x[o/x[a-1][2]<x[a][2]/o?a-1:a])[1],t=a[0]):(i=Math.max(Ri(n,r,t),1),t=s)}return null==i?t:t.every(i)}return u.invert=function(e){return new Date(c(e))},u.domain=function(e){return arguments.length?d(Zi.call(e,Al)):d().map(kl)},u.ticks=function(e,t){var n,r=d(),i=r[0],o=r[r.length-1],a=o<i;return a&&(n=i,i=o,o=n),n=(n=C(e,i,o,t))?n.range(i,o+1):[],a?n.reverse():n},u.tickFormat=function(e,t){return null==t?b:l(t)},u.nice=function(e,t){var n=d();return(e=C(e,n[0],n[n.length-1],t))?d(function(e,t){var n,r=0,i=(e=e.slice()).length-1,o=e[r],a=e[i];return a<o&&(n=r,r=i,i=n,n=o,o=a,a=n),e[r]=t.floor(o),e[i]=t.ceil(a),e}(n,e)):u},u.copy=function(){return Qo(u,wl(e,t,n,r,i,o,a,s,l))},u}function Dl(){return wl(Ya,Ua,Oa,Fa,Ma,Da,Aa,xa,ds).domain([new Date(2e3,0,1),new Date(2e3,0,2)])}var Tl="http://www.w3.org/1999/xhtml",Ml={svg:"http://www.w3.org/2000/svg",xhtml:Tl,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Pl(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),Ml.hasOwnProperty(t)?{space:Ml[t],local:e}:e}function Fl(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===Tl&&t.documentElement.namespaceURI===Tl?t.createElement(e):t.createElementNS(n,e)}}function Il(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Ol(e){var t=Pl(e);return(t.local?Il:Fl)(t)}function Nl(){}function Hl(e){return null==e?Nl:function(){return this.querySelector(e)}}function Rl(){return[]}var Vl=function(e){return function(){return this.matches(e)}};if("undefined"!=typeof document){var Bl=document.documentElement;if(!Bl.matches){var Wl=Bl.webkitMatchesSelector||Bl.msMatchesSelector||Bl.mozMatchesSelector||Bl.oMatchesSelector;Vl=function(e){return function(){return Wl.call(this,e)}}}}var zl=Vl;function Ul(e){return new Array(e.length)}function jl(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function Yl(e,t,n,r,i,o){for(var a,s=0,l=t.length,u=o.length;s<u;++s)(a=t[s])?(a.__data__=o[s],r[s]=a):n[s]=new jl(e,o[s]);for(;s<l;++s)(a=t[s])&&(i[s]=a)}function Xl(e,t,n,r,i,o,a){var s,l,u,c={},d=t.length,h=o.length,p=new Array(d);for(s=0;s<d;++s)(l=t[s])&&(p[s]=u="$"+a.call(l,l.__data__,s,t),u in c?i[s]=l:c[u]=l);for(s=0;s<h;++s)(l=c[u="$"+a.call(e,o[s],s,o)])?(r[s]=l,l.__data__=o[s],c[u]=null):n[s]=new jl(e,o[s]);for(s=0;s<d;++s)(l=t[s])&&c[p[s]]===l&&(i[s]=l)}function ql(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Kl(e){return function(){this.removeAttribute(e)}}function Zl(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Gl(e,t){return function(){this.setAttribute(e,t)}}function $l(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Ql(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function Jl(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function eu(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function tu(e){return function(){this.style.removeProperty(e)}}function nu(e,t,n){return function(){this.style.setProperty(e,t,n)}}function ru(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function iu(e,t){return e.style.getPropertyValue(t)||eu(e).getComputedStyle(e,null).getPropertyValue(t)}function ou(e){return function(){delete this[e]}}function au(e,t){return function(){this[e]=t}}function su(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}function lu(e){return e.trim().split(/^|\s+/)}function uu(e){return e.classList||new cu(e)}function cu(e){this._node=e,this._names=lu(e.getAttribute("class")||"")}function du(e,t){for(var n=uu(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function hu(e,t){for(var n=uu(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function pu(e){return function(){du(this,e)}}function fu(e){return function(){hu(this,e)}}function gu(e,t){return function(){(t.apply(this,arguments)?du:hu)(this,e)}}function vu(){this.textContent=""}function mu(e){return function(){this.textContent=e}}function yu(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}function _u(){this.innerHTML=""}function xu(e){return function(){this.innerHTML=e}}function bu(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}function Cu(){this.nextSibling&&this.parentNode.appendChild(this)}function Su(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Eu(){return null}function Lu(){var e=this.parentNode;e&&e.removeChild(this)}function ku(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}function Au(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}jl.prototype={constructor:jl,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}},cu.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};var wu={},Du=null;function Tu(e,t,n){return e=Mu(e,t,n),function(t){var n=t.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||e.call(this,t)}}function Mu(e,t,n){return function(r){var i=Du;Du=r;try{e.call(this,this.__data__,t,n)}finally{Du=i}}}function Pu(e){return e.trim().split(/^|\s+/).map((function(e){var t="",n=e.indexOf(".");return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}}))}function Fu(e){return function(){var t=this.__on;if(t){for(var n,r=0,i=-1,o=t.length;r<o;++r)n=t[r],e.type&&n.type!==e.type||n.name!==e.name?t[++i]=n:this.removeEventListener(n.type,n.listener,n.capture);++i?t.length=i:delete this.__on}}}function Iu(e,t,n){var r=wu.hasOwnProperty(e.type)?Tu:Mu;return function(i,o,a){var s,l=this.__on,u=r(t,o,a);if(l)for(var c=0,d=l.length;c<d;++c)if((s=l[c]).type===e.type&&s.name===e.name)return this.removeEventListener(s.type,s.listener,s.capture),this.addEventListener(s.type,s.listener=u,s.capture=n),void(s.value=t);this.addEventListener(e.type,u,n),s={type:e.type,name:e.name,value:t,listener:u,capture:n},l?l.push(s):this.__on=[s]}}function Ou(e,t,n){var r=eu(e),i=r.CustomEvent;"function"==typeof i?i=new i(t,n):(i=r.document.createEvent("Event"),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function Nu(e,t){return function(){return Ou(this,e,t)}}function Hu(e,t){return function(){return Ou(this,e,t.apply(this,arguments))}}"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(wu={mouseenter:"mouseover",mouseleave:"mouseout"}));var Ru=[null];function Vu(e,t){this._groups=e,this._parents=t}function Bu(e){return"string"==typeof e?new Vu([[document.querySelector(e)]],[document.documentElement]):new Vu([[e]],Ru)}Vu.prototype=function(){return new Vu([[document.documentElement]],Ru)}.prototype={constructor:Vu,select:function(e){"function"!=typeof e&&(e=Hl(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o,a,s=t[i],l=s.length,u=r[i]=new Array(l),c=0;c<l;++c)(o=s[c])&&(a=e.call(o,o.__data__,c,s))&&("__data__"in o&&(a.__data__=o.__data__),u[c]=a);return new Vu(r,this._parents)},selectAll:function(e){"function"!=typeof e&&(e=function(e){return null==e?Rl:function(){return this.querySelectorAll(e)}}(e));for(var t=this._groups,n=t.length,r=[],i=[],o=0;o<n;++o)for(var a,s=t[o],l=s.length,u=0;u<l;++u)(a=s[u])&&(r.push(e.call(a,a.__data__,u,s)),i.push(a));return new Vu(r,i)},filter:function(e){"function"!=typeof e&&(e=zl(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o,a=t[i],s=a.length,l=r[i]=[],u=0;u<s;++u)(o=a[u])&&e.call(o,o.__data__,u,a)&&l.push(o);return new Vu(r,this._parents)},data:function(e,t){if(!e)return f=new Array(this.size()),c=-1,this.each((function(e){f[++c]=e})),f;var n,r=t?Xl:Yl,i=this._parents,o=this._groups;"function"!=typeof e&&(n=e,e=function(){return n});for(var a=o.length,s=new Array(a),l=new Array(a),u=new Array(a),c=0;c<a;++c){var d=i[c],h=o[c],p=h.length,f=e.call(d,d&&d.__data__,c,i),g=f.length,v=l[c]=new Array(g),m=s[c]=new Array(g);r(d,h,v,m,u[c]=new Array(p),f,t);for(var y,_,x=0,b=0;x<g;++x)if(y=v[x]){for(x>=b&&(b=x+1);!(_=m[b])&&++b<g;);y._next=_||null}}return(s=new Vu(s,i))._enter=l,s._exit=u,s},enter:function(){return new Vu(this._enter||this._groups.map(Ul),this._parents)},exit:function(){return new Vu(this._exit||this._groups.map(Ul),this._parents)},merge:function(e){for(var t=this._groups,n=e._groups,r=t.length,i=n.length,o=Math.min(r,i),a=new Array(r),s=0;s<o;++s)for(var l,u=t[s],c=n[s],d=u.length,h=a[s]=new Array(d),p=0;p<d;++p)(l=u[p]||c[p])&&(h[p]=l);for(;s<r;++s)a[s]=t[s];return new Vu(a,this._parents)},order:function(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r,i=e[t],o=i.length-1,a=i[o];--o>=0;)(r=i[o])&&(a&&a!==r.nextSibling&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=ql);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o){for(var a,s=n[o],l=s.length,u=i[o]=new Array(l),c=0;c<l;++c)(a=s[c])&&(u[c]=a);u.sort(t)}return new Vu(i,this._parents).order()},call:function(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this},nodes:function(){var e=new Array(this.size()),t=-1;return this.each((function(){e[++t]=this})),e},node:function(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,o=r.length;i<o;++i){var a=r[i];if(a)return a}return null},size:function(){var e=0;return this.each((function(){++e})),e},empty:function(){return!this.node()},each:function(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i,o=t[n],a=0,s=o.length;a<s;++a)(i=o[a])&&e.call(i,i.__data__,a,o);return this},attr:function(e,t){var n=Pl(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==t?n.local?Zl:Kl:"function"==typeof t?n.local?Jl:Ql:n.local?$l:Gl)(n,t))},style:function(e,t,n){return arguments.length>1?this.each((null==t?tu:"function"==typeof t?ru:nu)(e,t,null==n?"":n)):iu(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?ou:"function"==typeof t?su:au)(e,t)):this.node()[e]},classed:function(e,t){var n=lu(e+"");if(arguments.length<2){for(var r=uu(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"==typeof t?gu:t?pu:fu)(n,t))},text:function(e){return arguments.length?this.each(null==e?vu:("function"==typeof e?yu:mu)(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?_u:("function"==typeof e?bu:xu)(e)):this.node().innerHTML},raise:function(){return this.each(Cu)},lower:function(){return this.each(Su)},append:function(e){var t="function"==typeof e?e:Ol(e);return this.select((function(){return this.appendChild(t.apply(this,arguments))}))},insert:function(e,t){var n="function"==typeof e?e:Ol(e),r=null==t?Eu:"function"==typeof t?t:Hl(t);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each(Lu)},clone:function(e){return this.select(e?Au:ku)},datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},on:function(e,t,n){var r,i,o=Pu(e+""),a=o.length;if(!(arguments.length<2)){for(s=t?Iu:Fu,null==n&&(n=!1),r=0;r<a;++r)this.each(s(o[r],t,n));return this}var s=this.node().__on;if(s)for(var l,u=0,c=s.length;u<c;++u)for(r=0,l=s[u];r<a;++r)if((i=o[r]).type===l.type&&i.name===l.name)return l.value},dispatch:function(e,t){return this.each(("function"==typeof t?Hu:Nu)(e,t))}};var Wu,zu,Uu,ju,Yu=0;function Xu(){this._="@"+(++Yu).toString(36)}function qu(e,t){var n=e.domainNRangeValues,r=e.showRoundOffXTickValues,i=void 0!==r&&r,o=e.xAxistickSize,a=void 0===o?6:o,s=e.tickPadding,l=void 0===s?10:s,u=e.xAxisCount,c=void 0===u?6:u,d=e.xAxisElement,h=ga().domain([n.dStartValue,n.dEndValue]).range([n.rStartValue,n.rEndValue]);i&&h.nice();var p=ki(h).tickSize(a).tickPadding(l).ticks(c).tickSizeOuter(0).tickFormat((function(e,n){var r="number"==typeof e?e:e.valueOf();return ic(r,t)}));return d&&Bu(d).call(p).selectAll("text").attr("aria-hidden","true"),h}function Ku(e){var t=[];e.forEach((function(e){var n=e.data.filter((function(e){return!e.hideCallout})).map((function(t){return i(i({legend:e.legend},t),{color:e.color,index:e.index})}));t=t.concat(n)}));var n,r=[];return t.forEach((function(e,n){e.x=e.x instanceof Date?e.x.getTime():e.x;var i=[{legend:e.legend,y:e.y,color:e.color,yAxisCalloutData:e.yAxisCalloutData,callOutAccessibilityData:e.callOutAccessibilityData,index:e.index}];t.slice(n+1).forEach((function(t){t.x=t.x instanceof Date?t.x.getTime():t.x,e.x===t.x&&i.push({legend:t.legend,y:t.y,color:t.color,yAxisCalloutData:t.yAxisCalloutData,callOutAccessibilityData:t.callOutAccessibilityData,index:t.index})})),r.push({x:e.x,values:i})})),"x",(n=r).map((function(e){return e.x})).map((function(e,t,n){return n.indexOf(e)===t&&t})).filter((function(e){return n[e]})).map((function(e){return n[e]}))}function Zu(e){var t=e.tooltipCls,n=e.xAxis,r=e.id;if(null===n)return null;for(var i=Bu("body").append("div").attr("id",r).attr("class",t).style("opacity",0),o=n.selectAll("#BaseSpan")._groups[0],a=o&&Object.keys(o).length,s=[],l=0;l<a;l++){var u=o[l].dataset&&Object.values(o[l].dataset)[0];s.push(u)}var c=n.selectAll(".tick")._groups[0],d=c&&Object.keys(c).length,h=function(e){Bu(c[e]).on("mouseover",(function(t){i.style("opacity",.9),i.html(s[e]).style("left",Du.pageX+"px").style("top",Du.pageY-28+"px")})).on("mouseout",(function(e){i.style("opacity",0)}))};for(l=0;l<d;l++)h(l)}function Gu(e){var t=!1;return e&&e.length>0&&e.forEach((function(e){e.data.length>0&&(t=e.data[0].x instanceof Date)})),t}function $u(e,t,n,r,i,o,s,l){var u;if(o===Uu.NumericAxis)switch(r){case zu.AreaChart:case zu.LineChart:u=function(e,t,n,r){var i=Bi(e,(function(e){return Bi(e.data,(function(e){return e.x}))})),o=Vi(e,(function(e){return Vi(e.data,(function(e){return e.x}))})),a=t.left,s=n-t.right;return r?{dStartValue:o,dEndValue:i,rStartValue:a,rEndValue:s}:{dStartValue:i,dEndValue:o,rStartValue:a,rEndValue:s}}(e,t,n,i);break;case zu.VerticalStackedBarChart:u=function(e,t,n,r,i){var o=Bi(e,(function(e){return e.x})),a=Vi(e,(function(e){return e.x})),s=t.left+i/2,l=n-t.right-i/2;return r?{dStartValue:a,dEndValue:o,rStartValue:s,rEndValue:l}:{dStartValue:o,dEndValue:a,rStartValue:s,rEndValue:l}}(e,t,n,i,s);break;case zu.VerticalBarChart:u=function(e,t,n,r,i){var o=Vi(e,(function(e){return e.x})),a=Bi(e,(function(e){return e.x})),s=t.left+i,l=n-t.right-i;return r?{dStartValue:o,dEndValue:a,rStartValue:s,rEndValue:l}:{dStartValue:a,dEndValue:o,rStartValue:s,rEndValue:l}}(e,t,n,i,s);break;default:u={dStartValue:0,dEndValue:0,rStartValue:0,rEndValue:0}}else if(o===Uu.DateAxis)switch(r){case zu.AreaChart:case zu.LineChart:u=function(e,t,n,r,i){void 0===i&&(i=[]);var o=Bi(e,(function(e){return Bi(e.data,(function(e){return e.x}))})),s=Vi(e,(function(e){return Vi(e.data,(function(e){return e.x}))})),l=Bi(a(a([],i),[o])),u=Vi(a(a([],i),[s])),c=t.left,d=n-t.right;return r?{dStartValue:u,dEndValue:l,rStartValue:c,rEndValue:d}:{dStartValue:l,dEndValue:u,rStartValue:c,rEndValue:d}}(e,t,n,i,l);break;default:u={dStartValue:0,dEndValue:0,rStartValue:0,rEndValue:0}}else switch(r){case zu.VerticalStackedBarChart:case zu.GroupedVerticalBarChart:case zu.VerticalBarChart:case zu.HeatMapChart:u=function(e,t,n){var r=e.left,i=t-e.right;return n?{dStartValue:0,dEndValue:0,rStartValue:i,rEndValue:r}:{dStartValue:0,dEndValue:0,rStartValue:r,rEndValue:i}}(t,n,i);break;default:u={dStartValue:0,dEndValue:0,rStartValue:0,rEndValue:0}}return u}function Qu(e,t){var n,r,i;switch(t){case zu.AreaChart:case zu.LineChart:n=function(e){var t=Vi(e,(function(e){return Vi(e.data,(function(e){return e.y}))}));return{startValue:Bi(e,(function(e){return Bi(e.data,(function(e){return e.y}))})),endValue:t}}(e);break;case zu.VerticalStackedBarChart:i=Vi(r=e,(function(e){return e.y})),n={startValue:Bi(r,(function(e){return e.y})),endValue:i};break;case zu.VerticalBarChart:n=function(e){var t=Vi(e,(function(e){return e.y}));return{startValue:Bi(e,(function(e){return e.y})),endValue:t}}(e);break;default:n={startValue:0,endValue:0}}return n}Xu.prototype=function(){return new Xu}.prototype={constructor:Xu,get:function(e){for(var t=this._;!(t in e);)if(!(e=e.parentNode))return;return e[t]},set:function(e,t){return e[this._]=t},remove:function(e){return this._ in e&&delete e[this._]},toString:function(){return this._}},function(e){e[e.AreaChart=0]="AreaChart",e[e.LineChart=1]="LineChart",e[e.VerticalBarChart=2]="VerticalBarChart",e[e.VerticalStackedBarChart=3]="VerticalStackedBarChart",e[e.GroupedVerticalBarChart=4]="GroupedVerticalBarChart",e[e.HeatMapChart=5]="HeatMapChart"}(zu||(zu={})),function(e){e[e.NumericAxis=0]="NumericAxis",e[e.DateAxis=1]="DateAxis",e[e.StringAxis=2]="StringAxis"}(Uu||(Uu={})),function(e){e[e.NumericAxis=0]="NumericAxis",e[e.DateAxis=1]="DateAxis",e[e.StringAxis=2]="StringAxis"}(ju||(ju={}));var Ju,ec,tc=function(e,t){if(t)switch(typeof e){case"string":return Uu.StringAxis;case"number":return Uu.NumericAxis;default:return Uu.DateAxis}else switch(typeof e){case"string":return ju.StringAxis;case"number":return ju.NumericAxis;default:return ju.DateAxis}};!function(e){e[e.circle=0]="circle",e[e.square=1]="square",e[e.triangle=2]="triangle",e[e.diamond=3]="diamond",e[e.pyramid=4]="pyramid",e[e.hexagon=5]="hexagon",e[e.pentagon=6]="pentagon",e[e.octagon=7]="octagon"}(Ju||(Ju={})),function(e){e[e.dottedLine=0]="dottedLine"}(ec||(ec={}));var nc=((Wu={})[Ju.circle]={widthRatio:1},Wu[Ju.square]={widthRatio:1},Wu[Ju.triangle]={widthRatio:1},Wu[Ju.diamond]={widthRatio:1},Wu[Ju.pyramid]={widthRatio:1},Wu[Ju.hexagon]={widthRatio:2},Wu[Ju.pentagon]={widthRatio:1.168},Wu[Ju.octagon]={widthRatio:2.414},Wu),rc=function(e,t,n){return void 0===t&&(t="text"),void 0===n&&(n=!0),{role:t,"data-is-focusable":n,"aria-label":(e=null!=e?e:{}).ariaLabel,"aria-labelledby":e.ariaLabelledBy,"aria-describedby":e.ariaDescribedBy}},ic=function(e,t){return e?(t=t||void 0,"number"==typeof e?e.toLocaleString(t):"string"!=typeof e||window.isNaN(Number(e))?e:Number(e).toLocaleString(t)):e};var oc,ac=le(),sc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.render=function(){var e=this.props,t=e.color,n=e.Legend,r=e.XValue,i=e.YValue,o=e.styles,a=e.theme,l=e.ratio,u=e.descriptionMessage,c=e.culture;return this._classNames=ac(o,{theme:a,color:t,XValue:r,isRatioPresent:!!l}),s.createElement("div",{className:this._classNames.calloutContentRoot},s.createElement("div",{className:this._classNames.calloutDateTimeContainer},s.createElement("div",{className:this._classNames.calloutContentX},r," ")),s.createElement("div",{className:this._classNames.calloutInfoContainer},s.createElement("div",{className:this._classNames.calloutBlockContainer},s.createElement("div",{className:this._classNames.calloutlegendText},ic(n,c)),s.createElement("div",{className:this._classNames.calloutContentY},ic(i,c))),!!l&&s.createElement("div",{className:this._classNames.ratio},s.createElement(s.Fragment,null,s.createElement("span",{className:this._classNames.numerator},ic(l[0],c)),"/",s.createElement("span",{className:this._classNames.denominator},ic(l[1],c))))),!!u&&s.createElement("div",{className:this._classNames.descriptionMessage},u))},t}(s.Component),lc=function(e){var t=e.color,n=e.XValue,r=e.theme,i=e.isRatioPresent,o=void 0!==i&&i;return{calloutContentRoot:[{display:"grid",overflow:"hidden",padding:"11px 16px 10px 16px",backgroundColor:r.semanticColors.bodyBackground,backgroundBlendMode:"normal, luminosity"}],calloutDateTimeContainer:{display:"flex",flexDirection:"row",justifyContent:"space-between"},calloutContentX:[r.fonts.small,{lineHeight:"16px",opacity:"0.8",color:r.semanticColors.bodySubtext}],calloutBlockContainer:[r.fonts.xxLarge,{marginTop:n?"13px":"unset",paddingLeft:"8px",lineHeight:"22px",color:r.semanticColors.bodyText,borderLeft:"4px solid "+t}],calloutlegendText:[r.fonts.small,{lineHeight:"16px",color:r.semanticColors.bodyText}],calloutContentY:[r.fonts.xxLarge,{color:t||r.semanticColors.bodyText,fontWeight:"bold",lineHeight:"36px"}],calloutInfoContainer:[o&&{display:"flex",alignItems:"flex-end"}],ratio:[r.fonts.small,{marginLeft:"6px",color:r.semanticColors.bodyText}],numerator:{fontWeight:An.bold},denominator:{fontWeight:An.semibold},descriptionMessage:[r.fonts.small,{color:r.semanticColors.bodyText,marginTop:"10px",paddingTop:"10px",borderTop:"1px solid "+r.semanticColors.menuDivider}]}},uc=b(sc,lc);!function(e){e[e.vertical=0]="vertical",e[e.horizontal=1]="horizontal",e[e.bidirectional=2]="bidirectional",e[e.domOrder=3]="domOrder"}(oc||(oc={}));var cc=function(e){return function(t){for(var n=0,r=e.refs;n<r.length;n++){var i=r[n];"function"==typeof i?i(t):i&&(i.current=t)}}};function dc(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.length<2?t[0]:function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];t.forEach((function(t){return t&&t.apply(e,n)}))}}function hc(e){!function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=dc(e,e[n],t[n]))}(e,{componentDidMount:pc,componentDidUpdate:fc,componentWillUnmount:gc})}function pc(){vc(this.props.componentRef,this)}function fc(e){e.componentRef!==this.props.componentRef&&(vc(e.componentRef,null),vc(this.props.componentRef,this))}function gc(){vc(this.props.componentRef,null)}function vc(e,t){e&&("object"==typeof e?e.current=t:"function"==typeof e&&e(t))}var mc,yc="data-is-focusable",_c="data-focuszone-id",xc="tabindex",bc="data-no-vertical-wrap",Cc="data-no-horizontal-wrap",Sc=999999999,Ec=-999999999;function Lc(e,t){var n;"function"==typeof MouseEvent?n=new MouseEvent("click",{ctrlKey:null==t?void 0:t.ctrlKey,metaKey:null==t?void 0:t.metaKey,shiftKey:null==t?void 0:t.shiftKey,altKey:null==t?void 0:t.altKey,bubbles:null==t?void 0:t.bubbles,cancelable:null==t?void 0:t.cancelable}):(n=document.createEvent("MouseEvents")).initMouseEvent("click",!!t&&t.bubbles,!!t&&t.cancelable,window,0,0,0,0,0,!!t&&t.ctrlKey,!!t&&t.altKey,!!t&&t.shiftKey,!!t&&t.metaKey,0,null),e.dispatchEvent(n)}var kc,Ac,wc={},Dc=new Set,Tc=["text","number","password","email","tel","url","search","textarea"],Mc=!1,Pc=function(e){function t(n){var r,i,o,a,l,u=e.call(this,n)||this;u._root=s.createRef(),u._mergedRef=(l={refs:[]},function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return l.resolver&&me(l.refs,e)||(l.resolver=cc(l)),l.refs=e,l.resolver}),u._onFocus=function(e){if(!u._portalContainsElement(e.target)){var t,n=u.props,r=n.onActiveElementChanged,i=n.doNotAllowFocusEventToPropagate,o=n.stopFocusPropagation,a=n.onFocusNotification,s=n.onFocus,l=n.shouldFocusInnerElementWhenReceivedFocus,c=n.defaultTabbableElement,d=u._isImmediateDescendantOfZone(e.target);if(d)t=e.target;else for(var h=e.target;h&&h!==u._root.current;){if(Le(h)&&u._isImmediateDescendantOfZone(h)){t=h;break}h=ye(h,Mc)}if(l&&e.target===u._root.current){var p=c&&"function"==typeof c&&u._root.current&&c(u._root.current);p&&Le(p)?(t=p,p.focus()):(u.focus(!0),u._activeElement&&(t=null))}var f=!u._activeElement;t&&t!==u._activeElement&&((d||f)&&u._setFocusAlignment(t,!0,!0),u._activeElement=t,f&&u._updateTabIndexes()),r&&r(u._activeElement,e),(o||i)&&e.stopPropagation(),s?s(e):a&&a()}},u._onBlur=function(){u._setParkedFocus(!1)},u._onMouseDown=function(e){if(!u._portalContainsElement(e.target)&&!u.props.disabled){for(var t=e.target,n=[];t&&t!==u._root.current;)n.push(t),t=ye(t,Mc);for(;n.length&&((t=n.pop())&&Le(t)&&u._setActiveElement(t,!0),!ke(t)););}},u._onKeyDown=function(e,t){if(!u._portalContainsElement(e.target)){var n=u.props,r=n.direction,i=n.disabled,o=n.isInnerZoneKeystroke,a=n.pagingSupportDisabled,s=n.shouldEnterInnerZone;if(!(i||(u.props.onKeyDown&&u.props.onKeyDown(e),e.isDefaultPrevented()||u._getDocument().activeElement===u._root.current&&u._isInnerZone))){if((s&&s(e)||o&&o(e))&&u._isImmediateDescendantOfZone(e.target)){var l=u._getFirstInnerZone();if(l){if(!l.focus(!0))return}else{if(!Ae(e.target))return;if(!u.focusElement(Se(e.target,e.target.firstChild,!0)))return}}else{if(e.altKey)return;switch(e.which){case 32:if(u._shouldRaiseClicksOnSpace&&u._tryInvokeClickForFocusable(e.target,e))break;return;case 37:if(r!==oc.vertical&&(u._preventDefaultWhenHandled(e),u._moveFocusLeft(t)))break;return;case 39:if(r!==oc.vertical&&(u._preventDefaultWhenHandled(e),u._moveFocusRight(t)))break;return;case 38:if(r!==oc.horizontal&&(u._preventDefaultWhenHandled(e),u._moveFocusUp()))break;return;case 40:if(r!==oc.horizontal&&(u._preventDefaultWhenHandled(e),u._moveFocusDown()))break;return;case 34:if(!a&&u._moveFocusPaging(!0))break;return;case 33:if(!a&&u._moveFocusPaging(!1))break;return;case 9:if(u.props.allowTabKey||1===u.props.handleTabKey||2===u.props.handleTabKey&&u._isElementInput(e.target)){var c=!1;if(u._processingTabKey=!0,c=r!==oc.vertical&&u._shouldWrapFocus(u._activeElement,Cc)?(ie(t)?!e.shiftKey:e.shiftKey)?u._moveFocusLeft(t):u._moveFocusRight(t):e.shiftKey?u._moveFocusUp():u._moveFocusDown(),u._processingTabKey=!1,c)break;u.props.shouldResetActiveElementWhenTabFromZone&&(u._activeElement=null)}return;case 36:if(u._isContentEditableElement(e.target)||u._isElementInput(e.target)&&!u._shouldInputLoseFocus(e.target,!1))return!1;var d=u._root.current&&u._root.current.firstChild;if(u._root.current&&d&&u.focusElement(Se(u._root.current,d,!0)))break;return;case 35:if(u._isContentEditableElement(e.target)||u._isElementInput(e.target)&&!u._shouldInputLoseFocus(e.target,!0))return!1;var h=u._root.current&&u._root.current.lastChild;if(u._root.current&&u.focusElement(Ce(u._root.current,h,!0,!0,!0)))break;return;case 13:if(u._shouldRaiseClicksOnEnter&&u._tryInvokeClickForFocusable(e.target,e))break;return;default:return}}e.preventDefault(),e.stopPropagation()}}},u._getHorizontalDistanceFromCenter=function(e,t,n){var r=u._focusAlignment.left||u._focusAlignment.x||0,i=Math.floor(n.top),o=Math.floor(t.bottom),a=Math.floor(n.bottom),s=Math.floor(t.top);return e&&i>o||!e&&a<s?r>=n.left&&r<=n.left+n.width?0:Math.abs(n.left+n.width/2-r):u._shouldWrapFocus(u._activeElement,bc)?Sc:Ec},hc(u),u._id=pe("FocusZone"),u._focusAlignment={left:0,top:0},u._processingTabKey=!1;var c=null===(i=null!==(r=n.shouldRaiseClicks)&&void 0!==r?r:t.defaultProps.shouldRaiseClicks)||void 0===i||i;return u._shouldRaiseClicksOnEnter=null!==(o=n.shouldRaiseClicksOnEnter)&&void 0!==o?o:c,u._shouldRaiseClicksOnSpace=null!==(a=n.shouldRaiseClicksOnSpace)&&void 0!==a?a:c,u}return r(t,e),t.getOuterZones=function(){return Dc.size},t._onKeyDownCapture=function(e){9===e.which&&Dc.forEach((function(e){return e._updateTabIndexes()}))},t.prototype.componentDidMount=function(){var e=this._root.current;if(wc[this._id]=this,e){this._windowElement=c(e);for(var n=ye(e,Mc);n&&n!==this._getDocument().body&&1===n.nodeType;){if(ke(n)){this._isInnerZone=!0;break}n=ye(n,Mc)}this._isInnerZone||(Dc.add(this),this._windowElement&&1===Dc.size&&this._windowElement.addEventListener("keydown",t._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()}},t.prototype.componentDidUpdate=function(){var e=this._root.current,t=this._getDocument();if((this._activeElement&&!xe(this._root.current,this._activeElement,Mc)||this._defaultFocusElement&&!xe(this._root.current,this._defaultFocusElement,Mc))&&(this._activeElement=null,this._defaultFocusElement=null,this._updateTabIndexes()),!this.props.preventFocusRestoration&&t&&this._lastIndexPath&&(t.activeElement===t.body||null===t.activeElement||t.activeElement===e)){var n=function(e,t){for(var n=e,r=0,i=t;r<i.length;r++){var o=i[r],a=n.children[Math.min(o,n.children.length-1)];if(!a)break;n=a}return Le(n)&&Ee(n)?n:Se(e,n,!0)||Ce(e,n)}(e,this._lastIndexPath);n?(this._setActiveElement(n,!0),n.focus(),this._setParkedFocus(!1)):this._setParkedFocus(!0)}},t.prototype.componentWillUnmount=function(){delete wc[this._id],this._isInnerZone||(Dc.delete(this),this._windowElement&&0===Dc.size&&this._windowElement.removeEventListener("keydown",t._onKeyDownCapture,!0)),this._root.current&&this._root.current.removeEventListener("blur",this._onBlur,!0),this._activeElement=null,this._defaultFocusElement=null},t.prototype.render=function(){var e=this,t=this.props,n=t.as,r=t.elementType,o=t.rootProps,a=t.ariaDescribedBy,l=t.ariaLabelledBy,u=t.className,c=ze(this.props,Re),d=n||r||"div";this._evaluateFocusBeforeRender();var h,p=(void 0===h&&(h=!1),!0===h&&(br=xr({},h)),br);return s.createElement(d,i({"aria-labelledby":l,"aria-describedby":a},c,o,{className:Ue((mc||(mc=Ye({selectors:{":focus":{outline:"none"}}},"ms-FocusZone")),mc),u),ref:this._mergedRef(this.props.elementRef,this._root),"data-focuszone-id":this._id,onKeyDown:function(t){return e._onKeyDown(t,p)},onFocus:this._onFocus,onMouseDownCapture:this._onMouseDown}),this.props.children)},t.prototype.focus=function(e){if(void 0===e&&(e=!1),this._root.current){if(!e&&"true"===this._root.current.getAttribute(yc)&&this._isInnerZone){var t=this._getOwnerZone(this._root.current);if(t!==this._root.current){var n=wc[t.getAttribute(_c)];return!!n&&n.focusElement(this._root.current)}return!1}if(!e&&this._activeElement&&xe(this._root.current,this._activeElement)&&Le(this._activeElement))return this._activeElement.focus(),!0;var r=this._root.current.firstChild;return this.focusElement(Se(this._root.current,r,!0))}return!1},t.prototype.focusLast=function(){if(this._root.current){var e=this._root.current&&this._root.current.lastChild;return this.focusElement(Ce(this._root.current,e,!0,!0,!0))}return!1},t.prototype.focusElement=function(e,t){var n=this.props,r=n.onBeforeFocus,i=n.shouldReceiveFocus;return!(i&&!i(e)||r&&!r(e)||!e||(this._setActiveElement(e,t),this._activeElement&&this._activeElement.focus(),0))},t.prototype.setFocusAlignment=function(e){this._focusAlignment=e},Object.defineProperty(t.prototype,"defaultFocusElement",{get:function(){return this._defaultFocusElement},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"activeElement",{get:function(){return this._activeElement},enumerable:!1,configurable:!0}),t.prototype._evaluateFocusBeforeRender=function(){var e=this._root.current,t=this._getDocument();if(t){var n=t.activeElement;if(n!==e){var r=xe(e,n,!1);this._lastIndexPath=r?function(e,t){for(var n=[];t&&e&&t!==e;){var r=ye(t,!0);if(null===r)return[];n.unshift(Array.prototype.indexOf.call(r.children,t)),t=r}return n}(e,n):void 0}}},t.prototype._setParkedFocus=function(e){var t=this._root.current;t&&this._isParked!==e&&(this._isParked=e,e?(this.props.allowFocusRoot||(this._parkedTabIndex=t.getAttribute("tabindex"),t.setAttribute("tabindex","-1")),t.focus()):this.props.allowFocusRoot||(this._parkedTabIndex?(t.setAttribute("tabindex",this._parkedTabIndex),this._parkedTabIndex=void 0):t.removeAttribute("tabindex")))},t.prototype._setActiveElement=function(e,t){var n=this._activeElement;this._activeElement=e,n&&(ke(n)&&this._updateTabIndexes(n),n.tabIndex=-1),this._activeElement&&(this._focusAlignment&&!t||this._setFocusAlignment(e,!0,!0),this._activeElement.tabIndex=0)},t.prototype._preventDefaultWhenHandled=function(e){this.props.preventDefaultWhenHandled&&e.preventDefault()},t.prototype._tryInvokeClickForFocusable=function(e,t){var n=e;if(n===this._root.current)return!1;do{if("BUTTON"===n.tagName||"A"===n.tagName||"INPUT"===n.tagName||"TEXTAREA"===n.tagName)return!1;if(this._isImmediateDescendantOfZone(n)&&"true"===n.getAttribute(yc)&&"true"!==n.getAttribute("data-disable-click-on-enter"))return Lc(n,t),!0;n=ye(n,Mc)}while(n!==this._root.current);return!1},t.prototype._getFirstInnerZone=function(e){if(!(e=e||this._activeElement||this._root.current))return null;if(ke(e))return wc[e.getAttribute(_c)];for(var t=e.firstElementChild;t;){if(ke(t))return wc[t.getAttribute(_c)];var n=this._getFirstInnerZone(t);if(n)return n;t=t.nextElementSibling}return null},t.prototype._moveFocus=function(e,t,n,r){void 0===r&&(r=!0);var i=this._activeElement,o=-1,a=void 0,s=!1,l=this.props.direction===oc.bidirectional;if(!i||!this._root.current)return!1;if(this._isElementInput(i)&&!this._shouldInputLoseFocus(i,e))return!1;var u=l?i.getBoundingClientRect():null;do{if(i=e?Se(this._root.current,i):Ce(this._root.current,i),!l){a=i;break}if(i){var c=t(u,i.getBoundingClientRect());if(-1===c&&-1===o){a=i;break}if(c>-1&&(-1===o||c<o)&&(o=c,a=i),o>=0&&c<0)break}}while(i);if(a&&a!==this._activeElement)s=!0,this.focusElement(a);else if(this.props.isCircularNavigation&&r)return e?this.focusElement(Se(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement(Ce(this._root.current,this._root.current.lastElementChild,!0,!0,!0));return s},t.prototype._moveFocusDown=function(){var e=this,t=-1,n=this._focusAlignment.left||this._focusAlignment.x||0;return!!this._moveFocus(!0,(function(r,i){var o=-1,a=Math.floor(i.top),s=Math.floor(r.bottom);return a<s?e._shouldWrapFocus(e._activeElement,bc)?Sc:Ec:((-1===t&&a>=s||a===t)&&(t=a,o=n>=i.left&&n<=i.left+i.width?0:Math.abs(i.left+i.width/2-n)),o)}))&&(this._setFocusAlignment(this._activeElement,!1,!0),!0)},t.prototype._moveFocusUp=function(){var e=this,t=-1,n=this._focusAlignment.left||this._focusAlignment.x||0;return!!this._moveFocus(!1,(function(r,i){var o=-1,a=Math.floor(i.bottom),s=Math.floor(i.top),l=Math.floor(r.top);return a>l?e._shouldWrapFocus(e._activeElement,bc)?Sc:Ec:((-1===t&&a<=l||s===t)&&(t=s,o=n>=i.left&&n<=i.left+i.width?0:Math.abs(i.left+i.width/2-n)),o)}))&&(this._setFocusAlignment(this._activeElement,!1,!0),!0)},t.prototype._moveFocusLeft=function(e){var t=this,n=this._shouldWrapFocus(this._activeElement,Cc);return!!this._moveFocus(ie(e),(function(r,i){var o=-1;return(ie(e)?parseFloat(i.top.toFixed(3))<parseFloat(r.bottom.toFixed(3)):parseFloat(i.bottom.toFixed(3))>parseFloat(r.top.toFixed(3)))&&i.right<=r.right&&t.props.direction!==oc.vertical?o=r.right-i.right:n||(o=Ec),o}),void 0,n)&&(this._setFocusAlignment(this._activeElement,!0,!1),!0)},t.prototype._moveFocusRight=function(e){var t=this,n=this._shouldWrapFocus(this._activeElement,Cc);return!!this._moveFocus(!ie(e),(function(r,i){var o=-1;return(ie(e)?parseFloat(i.bottom.toFixed(3))>parseFloat(r.top.toFixed(3)):parseFloat(i.top.toFixed(3))<parseFloat(r.bottom.toFixed(3)))&&i.left>=r.left&&t.props.direction!==oc.vertical?o=i.left-r.left:n||(o=Ec),o}),void 0,n)&&(this._setFocusAlignment(this._activeElement,!0,!1),!0)},t.prototype._moveFocusPaging=function(e,t){void 0===t&&(t=!0);var n=this._activeElement;if(!n||!this._root.current)return!1;if(this._isElementInput(n)&&!this._shouldInputLoseFocus(n,e))return!1;var r=Ke(n);if(!r)return!1;var i=-1,o=void 0,a=-1,s=-1,l=r.clientHeight,u=n.getBoundingClientRect();do{if(n=e?Se(this._root.current,n):Ce(this._root.current,n)){var c=n.getBoundingClientRect(),d=Math.floor(c.top),h=Math.floor(u.bottom),p=Math.floor(c.bottom),f=Math.floor(u.top),g=this._getHorizontalDistanceFromCenter(e,u,c);if(e&&d>h+l||!e&&p<f-l)break;g>-1&&(e&&d>a?(a=d,i=g,o=n):!e&&p<s?(s=p,i=g,o=n):(-1===i||g<=i)&&(i=g,o=n))}}while(n);var v=!1;if(o&&o!==this._activeElement)v=!0,this.focusElement(o),this._setFocusAlignment(o,!1,!0);else if(this.props.isCircularNavigation&&t)return e?this.focusElement(Se(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement(Ce(this._root.current,this._root.current.lastElementChild,!0,!0,!0));return v},t.prototype._setFocusAlignment=function(e,t,n){if(this.props.direction===oc.bidirectional&&(!this._focusAlignment||t||n)){var r=e.getBoundingClientRect(),i=r.left+r.width/2,o=r.top+r.height/2;this._focusAlignment||(this._focusAlignment={left:i,top:o}),t&&(this._focusAlignment.left=i),n&&(this._focusAlignment.top=o)}},t.prototype._isImmediateDescendantOfZone=function(e){return this._getOwnerZone(e)===this._root.current},t.prototype._getOwnerZone=function(e){for(var t=ye(e,Mc);t&&t!==this._root.current&&t!==this._getDocument().body;){if(ke(t))return t;t=ye(t,Mc)}return t},t.prototype._updateTabIndexes=function(e){!this._activeElement&&this.props.defaultTabbableElement&&"function"==typeof this.props.defaultTabbableElement&&(this._activeElement=this.props.defaultTabbableElement(this._root.current)),!e&&this._root.current&&(this._defaultFocusElement=null,e=this._root.current,this._activeElement&&!xe(e,this._activeElement)&&(this._activeElement=null)),this._activeElement&&!Le(this._activeElement)&&(this._activeElement=null);for(var t=e&&e.children,n=0;t&&n<t.length;n++){var r=t[n];ke(r)?"true"===r.getAttribute(yc)&&(this._isInnerZone||(this._activeElement||this._defaultFocusElement)&&this._activeElement!==r?"-1"!==r.getAttribute(xc)&&r.setAttribute(xc,"-1"):(this._defaultFocusElement=r,"0"!==r.getAttribute(xc)&&r.setAttribute(xc,"0"))):(r.getAttribute&&"false"===r.getAttribute(yc)&&r.setAttribute(xc,"-1"),Le(r)?this.props.disabled?r.setAttribute(xc,"-1"):this._isInnerZone||(this._activeElement||this._defaultFocusElement)&&this._activeElement!==r?"-1"!==r.getAttribute(xc)&&r.setAttribute(xc,"-1"):(this._defaultFocusElement=r,"0"!==r.getAttribute(xc)&&r.setAttribute(xc,"0")):"svg"===r.tagName&&"false"!==r.getAttribute("focusable")&&r.setAttribute("focusable","false")),this._updateTabIndexes(r)}},t.prototype._isContentEditableElement=function(e){return e&&"true"===e.getAttribute("contenteditable")},t.prototype._isElementInput=function(e){return!(!e||!e.tagName||"input"!==e.tagName.toLowerCase()&&"textarea"!==e.tagName.toLowerCase())},t.prototype._shouldInputLoseFocus=function(e,t){if(!this._processingTabKey&&e&&e.type&&Tc.indexOf(e.type.toLowerCase())>-1){var n=e.selectionStart,r=n!==e.selectionEnd,i=e.value,o=e.readOnly;if(r||n>0&&!t&&!o||n!==i.length&&t&&!o||this.props.handleTabKey&&(!this.props.shouldInputLoseFocusOnArrowKey||!this.props.shouldInputLoseFocusOnArrowKey(e)))return!1}return!0},t.prototype._shouldWrapFocus=function(e,t){return!this.props.checkForNoWrap||function(e,t){return"true"!==function(e,t){var n=_e(e,(function(e){return e.hasAttribute(t)}));return n&&n.getAttribute(t)}(e,t)}(e,t)},t.prototype._portalContainsElement=function(e){return e&&!!this._root.current&&(t=e,n=this._root.current,null!==(r=_e(t,(function(e){return n===e||e.hasAttribute(oi)})))&&r.hasAttribute(oi));var t,n,r},t.prototype._getDocument=function(){return $(this._root.current)},t.defaultProps={isCircularNavigation:!1,direction:oc.bidirectional,shouldRaiseClicks:!0},t}(s.Component),Fc=le(),Ic=function(e){function t(t){var n=e.call(this,t)||this;return n._handleChartMouseLeave=function(){n._calloutAnchorPoint=null,n.state.isCalloutVisible&&n.setState({isCalloutVisible:!1,hoverValue:"",refSelected:null,lineColor:"",legend:""})},n._adjustProps=function(){n._barHeight=n.props.barHeight||8,n._classNames=Fc(n.props.styles,{theme:n.props.theme,width:n.props.width,className:n.props.className,barHeight:n._barHeight,color:n.state.lineColor})},n._getChartDataText=function(e){return n.props.barChartCustomData?s.createElement("div",{"data-is-focusable":!0,role:"text"},n.props.barChartCustomData(e)):n._getDefaultTextData(e)},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},n._getAccessibleDataObject=function(e,t){return void 0===t&&(t="text"),{role:t,"data-is-focusable":!0,"aria-label":(e=null!=e?e:{}).ariaLabel,"aria-labelledby":e.ariaLabelledBy,"aria-describedby":e.ariaDescribedBy}},n.state={isCalloutVisible:!1,hoverValue:"",lineColor:"",legend:"",refSelected:null,color:"",xCalloutValue:"",yCalloutValue:""},n._refArray=[],n._uniqLineText="_HorizontalLine_"+Math.random().toString(36).substring(7),n._hoverOff=n._hoverOff.bind(n),n._calloutId=pe("callout"),n}return r(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.data,r=t.theme;this._adjustProps();var o=r.palette,a=0;return s.createElement("div",{className:this._classNames.root,onMouseLeave:this._handleChartMouseLeave},n.map((function(t,n){a=t.chartData&&t.chartData[0]&&t.chartData[0].horizontalBarChartdata.x?t.chartData[0].horizontalBarChartdata.x:0,t.chartData[1]={legend:"",horizontalBarChartdata:{x:t.chartData[0].horizontalBarChartdata.y-a,y:t.chartData[0].horizontalBarChartdata.y},color:o.neutralTertiaryAlt};var r=e._getChartDataText(t),l=e._createBars(t,o),u=e._uniqLineText+"_"+n;return s.createElement("div",{key:n,className:e._classNames.items},s.createElement("div",{className:e._classNames.items},s.createElement(Pc,{direction:oc.horizontal},s.createElement("div",{className:e._classNames.chartTitle},t.chartTitle&&s.createElement("div",i({className:e._classNames.chartDataText},e._getAccessibleDataObject(t.chartTitleAccessibilityData)),t.chartTitle),r)),t.chartData[0].data&&e._createBenchmark(t),s.createElement(Pc,{direction:oc.horizontal},s.createElement("svg",{className:e._classNames.chart,"aria-label":t.chartTitle},s.createElement("g",{id:u,key:u,ref:function(n){e._refCallback(n,t.chartData[0].legend)},onClick:function(){var e=t.chartData[0];e&&e.onClick&&e.onClick()},className:e._classNames.barWrapper},l)))))})),s.createElement(gi,i({target:this.state.refSelected,coverTarget:!0,isBeakVisible:!1,gapSpace:30,hidden:!(!this.props.hideTooltip&&this.state.isCalloutVisible),directionalHint:3,id:this._calloutId,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0},this.props.calloutProps,this._getAccessibleDataObject(this.state.callOutAccessibilityData)),s.createElement(s.Fragment,null,this.props.onRenderCalloutPerHorizontalBar?this.props.onRenderCalloutPerHorizontalBar(this.state.barCalloutProps):s.createElement(uc,{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}))))},t.prototype._refCallback=function(e,t){this._refArray.push({index:t,refElement:e})},t.prototype._hoverOn=function(e,t){if((!this.state.isCalloutVisible||this.state.legend!==t.legend)&&this._calloutAnchorPoint!==t){var n=ve(this._refArray,(function(e){return e.index===t.legend}));this._calloutAnchorPoint=t,this.setState({isCalloutVisible:!0,hoverValue:e,lineColor:t.color,legend:t.legend,refSelected:n.refElement,xCalloutValue:t.xAxisCalloutData,yCalloutValue:t.yAxisCalloutData,barCalloutProps:t,callOutAccessibilityData:t.callOutAccessibilityData})}},t.prototype._hoverOff=function(){},t.prototype._getDefaultTextData=function(e){var t=this.props.culture,n=this.props.chartDataMode||"default",r=e.chartData[0],o=r.horizontalBarChartdata.x,a=r.horizontalBarChartdata.y,l=this._getAccessibleDataObject(e.chartDataAccessibilityData);switch(n){case"default":return s.createElement("div",i({className:this._classNames.chartDataText},l),ic(o,t));case"fraction":return s.createElement("div",i({},l),s.createElement("span",{className:this._classNames.chartDataText},ic(o,t)),s.createElement("span",{className:this._classNames.chartDataTextDenominator},"/"+ic(a,t)));case"percentage":var u=ic(Math.round(o/a*100),t)+"%";return s.createElement("div",i({className:this._classNames.chartDataText},l),u)}},t.prototype._createBenchmark=function(e){var t=e.chartData[0].horizontalBarChartdata.y,n=e.chartData[0].data,r=Math.round((n||0)/t*100),i={marginLeft:"calc("+r+"% - 4px)",marginRight:"calc("+(100-r)+"% - 4px)"};return s.createElement("div",{className:this._classNames.triangle,style:i})},t.prototype._createBars=function(e,t){var n=this,r=[t.blueLight,t.blue,t.blueMid,t.red,t.black],i=[],o=e.chartData.reduce((function(e,t){return e+(t.horizontalBarChartdata.x?t.horizontalBarChartdata.x:0)}),0),a=0,l=0,u=e.chartData.map((function(e,t){var u=e.color?e.color:r[Math.floor(4*Math.random()+1)],c=e.horizontalBarChartdata.x?e.horizontalBarChartdata.x:0;if(t>0&&(a+=l),(l=c/o*100)<0?l=0:l<1&&0!==l&&(l=1),i.push(a),l<1)return s.createElement(s.Fragment,{key:t}," ");var d=e.horizontalBarChartdata.x;return s.createElement("rect",{key:t,x:i[t]+"%",y:0,"data-is-focusable":""!==e.legend,width:l+"%",height:n._barHeight,fill:u,onMouseOver:""!==e.legend?n._hoverOn.bind(n,d,e):void 0,onFocus:""!==e.legend?n._hoverOn.bind(n,d,e):void 0,"aria-labelledby":n._calloutId,role:"img","aria-label":"Horizontal bar chart",onBlur:n._hoverOff,onMouseLeave:n._hoverOff})}));return u},t}(s.Component),Oc=b(Ic,(function(e){var t=e.className,n=e.theme,r=e.width,o=n.palette;return{root:[{display:"flex",flexDirection:"column",width:r||"100%"},t],items:{height:"32px",marginTop:"5px",position:"relative"},chart:{width:"100%",height:"8px",marginBottom:"11px"},barWrapper:{stroke:n.palette.white,strokeWidth:2},chartTitle:i(i({},n.fonts.small),{display:"flex",justifyContent:"space-between",marginBottom:"5px"}),chartDataText:{fontWeight:An.bold},chartDataTextDenominator:{fontWeight:An.semibold},triangle:{width:"0",height:"0",borderLeft:"4px solid transparent",borderRight:"4px solid transparent",borderTop:"8px solid",borderTopColor:o.blue,marginBottom:"4px",position:"absolute",top:"12px"}}})),Nc={host:"ms-HoverCard-host"},Hc=function(){function e(t){this._id=e._uniqueId++,this._parent=t,this._eventRecords=[]}return e.raise=function(t,n,r,i){var o;if(e._isElement(t)){if("undefined"!=typeof document&&document.createEvent){var a=document.createEvent("HTMLEvents");a.initEvent(n,i||!1,!0),function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];je.apply(this,[null,e].concat(t))}(a,r),o=t.dispatchEvent(a)}else if("undefined"!=typeof document&&document.createEventObject){var s=document.createEventObject(r);t.fireEvent("on"+n,s)}}else for(;t&&!1!==o;){var l=t.__events__,u=l?l[n]:null;if(u)for(var c in u)if(u.hasOwnProperty(c))for(var d=u[c],h=0;!1!==o&&h<d.length;h++){var p=d[h];p.objectCallback&&(o=p.objectCallback.call(p.parent,r))}t=i?t.parent:null}return o},e.isObserved=function(e,t){var n=e&&e.__events__;return!!n&&!!n[t]},e.isDeclared=function(e,t){var n=e&&e.__declaredEvents;return!!n&&!!n[t]},e.stopPropagation=function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0},e._isElement=function(e){return!!e&&(!!e.addEventListener||"undefined"!=typeof HTMLElement&&e instanceof HTMLElement)},e.prototype.dispose=function(){this._isDisposed||(this._isDisposed=!0,this.off(),this._parent=null)},e.prototype.onAll=function(e,t,n){for(var r in t)t.hasOwnProperty(r)&&this.on(e,r,t[r],n)},e.prototype.on=function(t,n,r,i){var o=this;if(n.indexOf(",")>-1)for(var a=n.split(/[ ,]+/),s=0;s<a.length;s++)this.on(t,a[s],r,i);else{var l=this._parent,u={target:t,eventName:n,parent:l,callback:r,options:i};if((a=t.__events__=t.__events__||{})[n]=a[n]||{count:0},a[n][this._id]=a[n][this._id]||[],a[n][this._id].push(u),a[n].count++,e._isElement(t)){var c=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!o._isDisposed){var n;try{if(!1===(n=r.apply(l,e))&&e[0]){var i=e[0];i.preventDefault&&i.preventDefault(),i.stopPropagation&&i.stopPropagation(),i.cancelBubble=!0}}catch(i){}return n}};u.elementCallback=c,t.addEventListener?t.addEventListener(n,c,i):t.attachEvent&&t.attachEvent("on"+n,c)}else u.objectCallback=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!o._isDisposed)return r.apply(l,e)};this._eventRecords.push(u)}},e.prototype.off=function(e,t,n,r){for(var i=0;i<this._eventRecords.length;i++){var o=this._eventRecords[i];if(!(e&&e!==o.target||t&&t!==o.eventName||n&&n!==o.callback||"boolean"==typeof r&&r!==o.options)){var a=o.target.__events__,s=a[o.eventName],l=s?s[this._id]:null;l&&(1!==l.length&&n?(s.count--,l.splice(l.indexOf(o),1)):(s.count-=l.length,delete a[o.eventName][this._id]),s.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(i--,1)}}},e.prototype.raise=function(t,n,r){return e.raise(this._parent,t,n,r)},e.prototype.declare=function(e){var t=this._parent.__declaredEvents=this._parent.__declaredEvents||{};if("string"==typeof e)t[e]=!0;else for(var n=0;n<e.length;n++)t[e[n]]=!0},e._uniqueId=0,e}();!function(e){e[e.hover=0]="hover",e[e.hotKey=1]="hotKey"}(kc||(kc={})),function(e){e.plain="PlainCard",e.expanding="ExpandingCard"}(Ac||(Ac={}));var Rc,Vc={root:"ms-ExpandingCard-root",compactCard:"ms-ExpandingCard-compactCard",expandedCard:"ms-ExpandingCard-expandedCard",expandedCardScroll:"ms-ExpandingCard-expandedCardScrollRegion"};function Bc(e){var t=(0,s.useRef)();return(0,s.useEffect)((function(){t.current=e})),t.current}function Wc(e,t){var n=s.useRef(t);return n.current||(n.current=pe(e)),n.current}function zc(e){var t=s.useRef((function(){throw new Error("Cannot call an event handler while rendering")}));return ui((function(){t.current=e}),[e]),Lt((function(){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=t.current;return r.apply(void 0,e)}}))}!function(e){e[e.compact=0]="compact",e[e.expanded=1]="expanded"}(Rc||(Rc={}));var Uc={disabled:!1,disableFirstFocus:!1,forceFocusInsideTrap:!0,isClickableOutsideFocusTrap:!1},jc=s.forwardRef((function(e,t){var n,r,o,a=s.useRef(null),l=s.useRef(null),u=s.useRef(null),c=wt(a,t),d=function(){var e;return null===(e=s.useContext(Dt).window)||void 0===e?void 0:e.document}(),h=null===(n=Bc(!1))||void 0===n||n,p=Me(Uc,e),f=Lt({hasFocus:!1,focusStackId:Wc("ftz-",p.id)}),g=p.children,v=p.componentRef,m=p.disabled,y=p.disableFirstFocus,_=p.forceFocusInsideTrap,x=p.focusPreviouslyFocusedInnerElement,b=p.firstFocusableSelector,C=p.firstFocusableTarget,S=p.disableRestoreFocus,E=void 0===S?p.ignoreExternalFocusing:S,L=p.isClickableOutsideFocusTrap,k=p.enableAriaHiddenSiblings,A={"aria-hidden":!0,style:{pointerEvents:"none",position:"fixed"},tabIndex:m?-1:0,"data-is-visible":!0,"data-is-focus-trap-zone-bumper":!0},w=s.useCallback((function(e){e!==l.current&&e!==u.current&&De(e)}),[]),D=zc((function(){if(a.current){var e=f.previouslyFocusedElementInTrapZone;if(x&&e&&xe(a.current,e))w(e);else{var t=null;if("string"==typeof C)t=a.current.querySelector(C);else if(C)t=C(a.current);else if(b){var n="string"==typeof b?b:b();t=a.current.querySelector("."+n)}t||(t=Se(a.current,a.current.firstChild,!1,!1,!1,!0)),t&&w(t)}}})),T=function(e){if(!m&&a.current){var t,n=e===f.hasFocus?(void 0===(t=!1)&&(t=!0),Ce(a.current,u.current,t,!1,!0,!0,!1,!0)):function(e,t,n,r){return void 0===r&&(r=!0),Se(e,t,r,!1,!1,!0,!1,!0)}(a.current,l.current,0,!1);n&&(n===l.current||n===u.current?D():n.focus())}},M=zc((function(e){if(jc.focusStack=jc.focusStack.filter((function(e){return f.focusStackId!==e})),d){var t=d.activeElement;E||"function"!=typeof(null==e?void 0:e.focus)||!xe(a.current,t)&&t!==d.body||w(e)}})),P=zc((function(e){if(!m&&f.focusStackId===jc.focusStack.slice(-1)[0]){var t=e.target;t&&!xe(a.current,t)&&(D(),f.hasFocus=!0,e.preventDefault(),e.stopPropagation())}}));return s.useEffect((function(){var e=[];return _&&e.push(Te(window,"focus",P,!0)),L||e.push(Te(window,"click",P,!0)),function(){e.forEach((function(e){return e()}))}}),[_,L]),s.useEffect((function(){if(!m&&(h||_)&&a.current){jc.focusStack.push(f.focusStackId);var e=p.elementToFocusOnDismiss||d.activeElement;return y||xe(a.current,e)||D(),function(){return M(e)}}}),[_,m]),s.useEffect((function(){if(!m&&k)return St(a.current)}),[m,k,a]),r=function(){delete f.previouslyFocusedElementInTrapZone},(o=s.useRef(r)).current=r,s.useEffect((function(){return function(){var e;null===(e=o.current)||void 0===e||e.call(o)}}),[]),function(e,t,n){s.useImperativeHandle(e,(function(){return{get previouslyFocusedElement(){return t},focus:n}}),[n,t])}(v,f.previouslyFocusedElementInTrapZone,D),s.createElement("div",i({"aria-labelledby":p.ariaLabelledBy},ze(p,We),{ref:c,onFocusCapture:function(e){var t;null===(t=p.onFocusCapture)||void 0===t||t.call(p,e),e.target===l.current?T(!0):e.target===u.current&&T(!1),f.hasFocus=!0,e.target!==e.currentTarget&&e.target!==l.current&&e.target!==u.current&&(f.previouslyFocusedElementInTrapZone=e.target)},onBlurCapture:function(e){var t;null===(t=p.onBlurCapture)||void 0===t||t.call(p,e);var n=e.relatedTarget;null===e.relatedTarget&&(n=d.activeElement),xe(a.current,n)||(f.hasFocus=!1)}}),s.createElement("div",i({},A,{ref:l})),g,s.createElement("div",i({},A,{ref:u})))}));jc.displayName="FocusTrapZone",jc.focusStack=[];var Yc,Xc=function(e){return s.createElement(gi,i({},e),s.createElement(jc,i({disabled:e.hidden},e.focusTrapProps),e.children))},qc=function(e){var t=e.gapSpace,n=void 0===t?0:t,r=e.directionalHint,o=void 0===r?4:r,a=e.directionalHintFixed,l=e.targetElement,u=e.firstFocus,c=e.trapFocus,d=e.onLeave,h=e.className,p=e.finalHeight,f=e.content,g=e.calloutProps,v=i(i(i({},ze(e,We)),{className:h,target:l,isBeakVisible:!1,directionalHint:o,directionalHintFixed:a,finalHeight:p,minPagePadding:24,onDismiss:d,gapSpace:n}),g);return s.createElement(s.Fragment,null,c?s.createElement(Xc,i({},v,{focusTrapProps:{forceFocusInsideTrap:!1,isClickableOutsideFocusTrap:!0,disableFirstFocus:!u}}),f):s.createElement(gi,i({},v),f))},Kc=le(),Zc=function(e){function t(t){var n=e.call(this,t)||this;return n._expandedElem=s.createRef(),n._onKeyDown=function(e){27===e.which&&n.props.onLeave&&n.props.onLeave(e)},n._onRenderCompactCard=function(){return s.createElement("div",{className:n._classNames.compactCard},n.props.onRenderCompactCard(n.props.renderData))},n._onRenderExpandedCard=function(){return!n.state.firstFrameRendered&&n._async.requestAnimationFrame((function(){n.setState({firstFrameRendered:!0})})),s.createElement("div",{className:n._classNames.expandedCard,ref:n._expandedElem},s.createElement("div",{className:n._classNames.expandedCardScroll},n.props.onRenderExpandedCard&&n.props.onRenderExpandedCard(n.props.renderData)))},n._checkNeedsScroll=function(){var e=n.props.expandedCardHeight;n._async.requestAnimationFrame((function(){n._expandedElem.current&&n._expandedElem.current.scrollHeight>=e&&n.setState({needsScroll:!0})}))},n._async=new Et(n),hc(n),n.state={firstFrameRendered:!1,needsScroll:!1},n}return r(t,e),t.prototype.componentDidMount=function(){this._checkNeedsScroll()},t.prototype.componentWillUnmount=function(){this._async.dispose()},t.prototype.render=function(){var e=this.props,t=e.styles,n=e.compactCardHeight,r=e.expandedCardHeight,o=e.theme,a=e.mode,l=e.className,u=this.state,c=u.needsScroll,d=u.firstFrameRendered,h=n+r;this._classNames=Kc(t,{theme:o,compactCardHeight:n,className:l,expandedCardHeight:r,needsScroll:c,expandedCardFirstFrameRendered:a===Rc.expanded&&d});var p=s.createElement("div",{onMouseEnter:this.props.onEnter,onMouseLeave:this.props.onLeave,onKeyDown:this._onKeyDown},this._onRenderCompactCard(),this._onRenderExpandedCard());return s.createElement(qc,i({},this.props,{content:p,finalHeight:h,className:this._classNames.root}))},t.defaultProps={compactCardHeight:156,expandedCardHeight:384,directionalHintFixed:!0},t}(s.Component),Gc=b(Zc,(function(e){var t,n=e.theme,r=e.needsScroll,i=e.expandedCardFirstFrameRendered,o=e.compactCardHeight,a=e.expandedCardHeight,s=e.className,l=n.palette,u=Zn(Vc,n);return{root:[u.root,{width:320,pointerEvents:"none",selectors:(t={},t[Pn]={border:"1px solid WindowText"},t)},s],compactCard:[u.compactCard,{pointerEvents:"auto",position:"relative",height:o}],expandedCard:[u.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:l.neutralLighter}}},i&&{height:a}],expandedCardScroll:[u.expandedCardScroll,r&&{height:"100%",boxSizing:"border-box",overflowY:"auto"}]}}),void 0,{scope:"ExpandingCard"}),$c={root:"ms-PlainCard-root"},Qc=le(),Jc=function(e){function t(t){var n=e.call(this,t)||this;return n._onKeyDown=function(e){27===e.which&&n.props.onLeave&&n.props.onLeave(e)},hc(n),n}return r(t,e),t.prototype.render=function(){var e=this.props,t=e.styles,n=e.theme,r=e.className;this._classNames=Qc(t,{theme:n,className:r});var o=s.createElement("div",{onMouseEnter:this.props.onEnter,onMouseLeave:this.props.onLeave,onKeyDown:this._onKeyDown},this.props.onRenderPlainCard(this.props.renderData));return s.createElement(qc,i({},this.props,{content:o,className:this._classNames.root}))},t}(s.Component),ed=b(Jc,(function(e){var t,n=e.theme,r=e.className;return{root:[Zn($c,n).root,{pointerEvents:"auto",selectors:(t={},t[Pn]={border:"1px solid WindowText"},t)},r]}}),void 0,{scope:"PlainCard"}),td=le(),nd=function(e){function t(t){var n=e.call(this,t)||this;return n._hoverCard=s.createRef(),n.dismiss=function(e){n._async.clearTimeout(n._openTimerId),n._async.clearTimeout(n._dismissTimerId),e?n._dismissTimerId=n._async.setTimeout((function(){n._setDismissedState()}),n.props.cardDismissDelay):n._setDismissedState()},n._cardOpen=function(e){n._shouldBlockHoverCard()||"keydown"===e.type&&e.which!==n.props.openHotKey||(n._async.clearTimeout(n._dismissTimerId),"mouseenter"===e.type&&(n._currentMouseTarget=e.currentTarget),n._executeCardOpen(e))},n._executeCardOpen=function(e){n._async.clearTimeout(n._openTimerId),n._openTimerId=n._async.setTimeout((function(){n.setState((function(t){return t.isHoverCardVisible?t:{isHoverCardVisible:!0,mode:Rc.compact,openMode:"keydown"===e.type?kc.hotKey:kc.hover}}))}),n.props.cardOpenDelay)},n._cardDismiss=function(e,t){if(e){if(!(t instanceof MouseEvent))return;if("keydown"===t.type&&27!==t.which)return;n.props.sticky||n._currentMouseTarget!==t.currentTarget&&27!==t.which||n.dismiss(!0)}else{if(n.props.sticky&&!(t instanceof MouseEvent)&&t.nativeEvent instanceof MouseEvent&&"mouseleave"===t.type)return;n.dismiss(!0)}},n._setDismissedState=function(){n.setState({isHoverCardVisible:!1,mode:Rc.compact,openMode:kc.hover})},n._instantOpenAsExpanded=function(e){n._async.clearTimeout(n._dismissTimerId),n.setState((function(e){return e.isHoverCardVisible?e:{isHoverCardVisible:!0,mode:Rc.expanded}}))},n._setEventListeners=function(){var e=n.props,t=e.trapFocus,r=e.instantOpenOnClick,i=e.eventListenerTarget,o=i?n._getTargetElement(i):n._getTargetElement(n.props.target),a=n._nativeDismissEvent;o&&(n._events.on(o,"mouseenter",n._cardOpen),n._events.on(o,"mouseleave",a),t?n._events.on(o,"keydown",n._cardOpen):(n._events.on(o,"focus",n._cardOpen),n._events.on(o,"blur",a)),r?n._events.on(o,"click",n._instantOpenAsExpanded):(n._events.on(o,"mousedown",a),n._events.on(o,"keydown",a)))},hc(n),n._async=new Et(n),n._events=new Hc(n),n._nativeDismissEvent=n._cardDismiss.bind(n,!0),n._childDismissEvent=n._cardDismiss.bind(n,!1),n.state={isHoverCardVisible:!1,mode:Rc.compact,openMode:kc.hover},n}return r(t,e),t.prototype.componentDidMount=function(){this._setEventListeners()},t.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},t.prototype.componentDidUpdate=function(e,t){var n=this;e.target!==this.props.target&&(this._events.off(),this._setEventListeners()),t.isHoverCardVisible!==this.state.isHoverCardVisible&&(this.state.isHoverCardVisible?(this._async.setTimeout((function(){n.setState({mode:Rc.expanded},(function(){n.props.onCardExpand&&n.props.onCardExpand()}))}),this.props.expandedCardOpenDelay),this.props.onCardVisible&&this.props.onCardVisible()):(this.setState({mode:Rc.compact}),this.props.onCardHide&&this.props.onCardHide()))},t.prototype.render=function(){var e=this.props,t=e.expandingCardProps,n=e.children,r=e.id,o=e.setAriaDescribedBy,a=void 0===o||o,l=e.styles,u=e.theme,c=e.className,d=e.type,h=e.plainCardProps,p=e.trapFocus,f=e.setInitialFocus,g=this.state,v=g.isHoverCardVisible,m=g.mode,y=g.openMode,_=r||pe("hoverCard");this._classNames=td(l,{theme:u,className:c});var x=i(i({},ze(this.props,We)),{id:_,trapFocus:!!p,firstFocus:f||y===kc.hotKey,targetElement:this._getTargetElement(this.props.target),onEnter:this._cardOpen,onLeave:this._childDismissEvent}),b=i(i(i({},t),x),{mode:m}),C=i(i({},h),x);return s.createElement("div",{className:this._classNames.host,ref:this._hoverCard,"aria-describedby":a&&v?_:void 0,"data-is-focusable":!this.props.target},n,v&&(d===Ac.expanding?s.createElement(Gc,i({},b)):s.createElement(ed,i({},C))))},t.prototype._getTargetElement=function(e){switch(typeof e){case"string":return $().querySelector(e);case"object":return e;default:return this._hoverCard.current||void 0}},t.prototype._shouldBlockHoverCard=function(){return!(!this.props.shouldBlockHoverCard||!this.props.shouldBlockHoverCard())},t.defaultProps={cardOpenDelay:500,cardDismissDelay:100,expandedCardOpenDelay:1500,instantOpenOnClick:!1,setInitialFocus:!1,openHotKey:67,type:Ac.expanding},t}(s.Component),rd=b(nd,(function(e){var t=e.className,n=e.theme;return{host:[Zn(Nc,n).host,t]}}),void 0,{scope:"HoverCard"});!function(e){e[e.horizontal=0]="horizontal",e[e.vertical=1]="vertical"}(Yc||(Yc={}));var id=function(e){var t;void 0===e&&(t={},e={getCachedMeasurement:function(e){if(e&&e.cacheKey&&t.hasOwnProperty(e.cacheKey))return t[e.cacheKey]},addMeasurementToCache:function(e,n){e.cacheKey&&(t[e.cacheKey]=n)}});var n,r=e;function o(e,t){var n=r.getCachedMeasurement(e);if(void 0!==n)return n;var i=t();return r.addMeasurementToCache(e,i),i}function a(e,t,i){for(var a=e,s=o(e,i);s>n;){var l=t(a);if(void 0===l)return{renderedData:a,resizeDirection:void 0,dataToMeasure:void 0};if(void 0===(s=r.getCachedMeasurement(l)))return{dataToMeasure:l,resizeDirection:"shrink"};a=l}return{renderedData:a,resizeDirection:void 0,dataToMeasure:void 0}}return{getNextState:function(e,t,s,l){if(void 0!==l||void 0!==t.dataToMeasure){if(l){if(n&&t.renderedData&&!t.dataToMeasure)return i(i({},t),function(e,t,r,o){var a;return a=e>n?o?{resizeDirection:"grow",dataToMeasure:o(r)}:{resizeDirection:"shrink",dataToMeasure:t}:{resizeDirection:"shrink",dataToMeasure:r},n=e,i(i({},a),{measureContainer:!1})}(l,e.data,t.renderedData,e.onGrowData));n=l}var u=i(i({},t),{measureContainer:!1});return t.dataToMeasure&&(u="grow"===t.resizeDirection&&e.onGrowData?i(i({},u),function(e,t,s,l){for(var u=e,c=o(e,s);c<n;){var d=t(u);if(void 0===d)return{renderedData:u,resizeDirection:void 0,dataToMeasure:void 0};if(void 0===(c=r.getCachedMeasurement(d)))return{dataToMeasure:d};u=d}return i({resizeDirection:"shrink"},a(u,l,s))}(t.dataToMeasure,e.onGrowData,s,e.onReduceData)):i(i({},u),a(t.dataToMeasure,e.onReduceData,s))),u}},shouldRenderDataForMeasurement:function(e){return!(!e||void 0!==r.getCachedMeasurement(e))},getInitialResizeGroupState:function(e){return{dataToMeasure:i({},e),resizeDirection:"grow",measureContainer:!0}}}},od=s.createContext({isMeasured:!1}),ad={position:"fixed",visibility:"hidden"},sd={position:"relative"};function ld(e,t){var n;switch(t.type){case"resizeData":return i({},t.value);case"dataToMeasure":return i(i({},e),{dataToMeasure:t.value,resizeDirection:"grow",measureContainer:!0});default:return i(i({},e),((n={})[t.type]=t.value,n))}}var ud={isMeasured:!0},cd=s.forwardRef((function(e,t){var n=s.useRef(null),r=wt(n,t),o=function(e,t){var n=Lt(id),r=s.useRef(null),o=s.useRef(null),a=s.useRef(!1),l=kt(),u=function(e,t,n){var r=Lt((function(){return t.getInitialResizeGroupState(e.data)})),o=s.useReducer(ld,r),a=o[0],l=o[1];s.useEffect((function(){l({type:"dataToMeasure",value:e.data})}),[e.data]);var u=s.useRef(r);return u.current=i({},a),[u,s.useCallback((function(e){e&&l({type:"resizeData",value:e})}),[]),s.useCallback((function(){n.current&&l({type:"measureContainer",value:!0})}),[n])]}(e,n,t),c=u[0],d=u[1],h=u[2];s.useEffect((function(){var t;c.current.renderedData&&(a.current=!0,null===(t=e.dataDidRender)||void 0===t||t.call(e,c.current.renderedData))})),s.useEffect((function(){l.requestAnimationFrame((function(){var i=void 0;if(c.current.measureContainer&&t.current){var s=t.current.getBoundingClientRect();i=e.direction===Yc.vertical?s.height:s.width}var l=n.getNextState(e,c.current,(function(){var t=a.current?o:r;if(!t.current)return 0;var n=t.current.getBoundingClientRect();return e.direction===Yc.vertical?n.height:n.width}),i);d(l)}),t.current)})),At(Tt(),"resize",l.debounce(h,16,{leading:!0}));var p=n.shouldRenderDataForMeasurement(c.current.dataToMeasure),f=!a.current&&p;return[c.current.dataToMeasure,c.current.renderedData,h,r,o,p,f]}(e,n),a=o[0],l=o[1],u=o[2],c=o[3],d=o[4],h=o[5],p=o[6];s.useImperativeHandle(e.componentRef,(function(){return{remeasure:u}}),[u]);var f=e.className,g=e.onRenderData,v=ze(e,We,["data"]);return s.createElement("div",i({},v,{className:f,ref:r}),s.createElement("div",{style:sd},h&&!p&&s.createElement("div",{style:ad,ref:d},s.createElement(od.Provider,{value:ud},g(a))),s.createElement("div",{ref:c,style:p?ad:void 0,"data-automation-id":"visibleContent"},p?g(a):l&&g(l))))}));cd.displayName="ResizeGroupBase";var dd,hd=cd;!function(e){e.KEYTIP_ADDED="keytipAdded",e.KEYTIP_REMOVED="keytipRemoved",e.KEYTIP_UPDATED="keytipUpdated",e.PERSISTED_KEYTIP_ADDED="persistedKeytipAdded",e.PERSISTED_KEYTIP_REMOVED="persistedKeytipRemoved",e.PERSISTED_KEYTIP_EXECUTE="persistedKeytipExecute",e.ENTER_KEYTIP_MODE="enterKeytipMode",e.EXIT_KEYTIP_MODE="exitKeytipMode"}(dd||(dd={}));var pd=function(){function e(){this.keytips={},this.persistedKeytips={},this.sequenceMapping={},this.inKeytipMode=!1,this.shouldEnterKeytipMode=!0,this.delayUpdatingKeytipChange=!1}return e.getInstance=function(){return this._instance},e.prototype.init=function(e){this.delayUpdatingKeytipChange=e},e.prototype.register=function(e,t){void 0===t&&(t=!1);var n=e;t||(n=this.addParentOverflow(e),this.sequenceMapping[n.keySequences.toString()]=n);var r=this._getUniqueKtp(n);if(t?this.persistedKeytips[r.uniqueID]=r:this.keytips[r.uniqueID]=r,this.inKeytipMode||!this.delayUpdatingKeytipChange){var i=t?dd.PERSISTED_KEYTIP_ADDED:dd.KEYTIP_ADDED;Hc.raise(this,i,{keytip:n,uniqueID:r.uniqueID})}return r.uniqueID},e.prototype.update=function(e,t){var n=this.addParentOverflow(e),r=this._getUniqueKtp(n,t),i=this.keytips[t];i&&(r.keytip.visible=i.keytip.visible,this.keytips[t]=r,delete this.sequenceMapping[i.keytip.keySequences.toString()],this.sequenceMapping[r.keytip.keySequences.toString()]=r.keytip,!this.inKeytipMode&&this.delayUpdatingKeytipChange||Hc.raise(this,dd.KEYTIP_UPDATED,{keytip:r.keytip,uniqueID:r.uniqueID}))},e.prototype.unregister=function(e,t,n){void 0===n&&(n=!1),n?delete this.persistedKeytips[t]:delete this.keytips[t],!n&&delete this.sequenceMapping[e.keySequences.toString()];var r=n?dd.PERSISTED_KEYTIP_REMOVED:dd.KEYTIP_REMOVED;!this.inKeytipMode&&this.delayUpdatingKeytipChange||Hc.raise(this,r,{keytip:e,uniqueID:t})},e.prototype.enterKeytipMode=function(){Hc.raise(this,dd.ENTER_KEYTIP_MODE)},e.prototype.exitKeytipMode=function(){Hc.raise(this,dd.EXIT_KEYTIP_MODE)},e.prototype.getKeytips=function(){var e=this;return Object.keys(this.keytips).map((function(t){return e.keytips[t].keytip}))},e.prototype.addParentOverflow=function(e){var t=a([],e.keySequences);if(t.pop(),0!==t.length){var n=this.sequenceMapping[t.toString()];if(n&&n.overflowSetSequence)return i(i({},e),{overflowSetSequence:n.overflowSetSequence})}return e},e.prototype.menuExecute=function(e,t){Hc.raise(this,dd.PERSISTED_KEYTIP_EXECUTE,{overflowButtonSequences:e,keytipSequences:t})},e.prototype._getUniqueKtp=function(e,t){return void 0===t&&(t=pe()),{keytip:i({},e),uniqueID:t}},e._instance=new e,e}(),fd=function(e,t,n){for(var r=0,i=e;r<i.length;r++){var o=i[r];n[t.register(o,!0)]=o}},gd=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];e.unregister(t[i],i,!0),delete t[i]}},vd=function(e){var t=pd.getInstance(),n=e.className,r=e.overflowItems,o=e.keytipSequences,a=e.itemSubMenuProvider,l=e.onRenderOverflowButton,u=Lt({}),c=s.useCallback((function(e){return a?a(e):e.subMenuProps?e.subMenuProps.items:void 0}),[a]),d=s.useMemo((function(){var e=[],n=[];return o?null==r||r.forEach((function(r){var a,s=r.keytipProps;if(s){var l={content:s.content,keySequences:s.keySequences,disabled:s.disabled||!(!r.disabled&&!r.isDisabled),hasDynamicChildren:s.hasDynamicChildren,hasMenu:s.hasMenu};s.hasDynamicChildren||c(r)?(l.onExecute=t.menuExecute.bind(t,o,null===(a=null==r?void 0:r.keytipProps)||void 0===a?void 0:a.keySequences),l.hasOverflowSubMenu=!0):l.onExecute=s.onExecute,e.push(l);var u=i(i({},r),{keytipProps:i(i({},s),{overflowSetSequence:o})});null==n||n.push(u)}else null==n||n.push(r)})):n=r,{modifiedOverflowItems:n,keytipsToRegister:e}}),[r,c,t,o]),h=d.modifiedOverflowItems;return function(e,t,n){var r=Bc(e);s.useEffect((function(){r&&(gd(n,r),fd(t,n,e))})),s.useEffect((function(){return fd(t,n,e),function(){gd(n,e)}}),[])}(u,d.keytipsToRegister,t),s.createElement("div",{className:n},l(h))},md=le(),yd=s.forwardRef((function(e,t){var n=s.useRef(null),r=wt(n,t);!function(e,t){s.useImperativeHandle(e.componentRef,(function(){return{focus:function(){var e=!1;return t.current&&(e=be(t.current)),e},focusElement:function(e){var n=!1;return!!e&&(t.current&&xe(t.current,e)&&(e.focus(),n=document.activeElement===e),n)}}}),[t])}(e,n);var o=e.items,a=e.overflowItems,l=e.className,u=e.styles,c=e.vertical,d=e.role,h=e.overflowSide,p=void 0===h?"end":h,f=e.onRenderItem,g=md(u,{className:l,vertical:c}),v=!!a&&a.length>0;return s.createElement("div",i({},ze(e,We),{role:d||"group","aria-orientation":"menubar"===d?!0===c?"vertical":"horizontal":void 0,className:g.root,ref:r}),"start"===p&&v&&s.createElement(vd,i({},e,{className:g.overflowButton})),o&&o.map((function(e,t){return s.createElement("div",{className:g.item,key:e.key,role:"none"},f(e))})),"end"===p&&v&&s.createElement(vd,i({},e,{className:g.overflowButton})))}));yd.displayName="OverflowSet";var _d,xd={flexShrink:0,display:"inherit"},bd=b(yd,(function(e){var t=e.className;return{root:["ms-OverflowSet",{position:"relative",display:"flex",flexWrap:"nowrap"},e.vertical&&{flexDirection:"column"},t],item:["ms-OverflowSet-item",xd],overflowButton:["ms-OverflowSet-overflowButton",xd]}}),void 0,{scope:"OverflowSet"}),Cd=((_d={})[""+Ju[Ju.circle]]="M1 6 A5 5 0 1 0 12 6 M1 6 A5 5 0 0 1 12 6",_d[""+Ju[Ju.square]]="M1 1 L12 1 L12 12 L1 12 L1 1 Z",_d[""+Ju[Ju.triangle]]="M6 10L8.74228e-07 -1.04907e-06L12 0L6 10Z",_d[""+Ju[Ju.pyramid]]="M6 10L8.74228e-07 -1.04907e-06L12 0L6 10Z",_d[""+Ju[Ju.diamond]]="M2 2 L10 2 L10 10 L2 10 L2 2 Z",_d[""+Ju[Ju.hexagon]]="M9 0H3L0 5L3 10H9L12 5L9 0Z",_d[""+Ju[Ju.pentagon]]="M6.06061 0L0 4.21277L2.30303 11H9.69697L12 4.21277L6.06061 0Z",_d[""+Ju[Ju.octagon]]="M7.08333 0H2.91667L0 2.91667V7.08333L2.91667 10H7.08333L10 7.08333V2.91667L7.08333 0Z",_d[""+ec[ec.dottedLine]]="M0 6 H3 M5 6 H8 M10 6 H13",_d),Sd=function(e){var t=e.svgProps,n=e.pathProps,r=e.shape,o=e.classNameForNonSvg;return-1===Object.keys(Cd).indexOf(r)?s.createElement("div",{className:o}):s.createElement("svg",i({width:14,height:14,viewBox:"-1 -1 14 14"},t,{transform:"rotate("+(r===Ju[Ju.diamond]?45:r===Ju[Ju.triangle]?180:0)+", 0, 0)"}),s.createElement("path",i({d:Cd[r]},n)))},Ed=le(),Ld=function(e){function t(t){var n=e.call(this,t)||this;return n._onRenderData=function(e){var t=n.props,r=t.overflowProps,o=t.allowFocusOnLegends,a=void 0===o||o,l={root:{justifyContent:n.props.centerLegends?"center":"unset",flexWrap:"wrap"}};return s.createElement(bd,i({},a&&{role:"listbox","aria-label":"Legends"},{items:e.primary,overflowItems:e.overflow,onRenderItem:n._renderButton,onRenderOverflowButton:n._renderOverflowItems},r,{styles:i(i({},l),null==r?void 0:r.styles)}))},n._onReduceData=function(e){if(0!==e.primary.length){var t=a(a([],e.primary.slice(-1)),e.overflow);return{primary:e.primary.slice(0,-1),overflow:t}}},n._onGrowData=function(e){if(0!==e.overflow.length){var t=e.overflow.slice(1);return{primary:a(a([],e.primary),e.overflow.slice(0,1)),overflow:t}}},n._canSelectMultipleLegends=function(e){var t=function(e,t){var n=e.indexOf(t);return-1===n?a(a([],e),[t]):e.slice(0,n).concat(e.slice(n+1))}(n.state.selectedLegends,e.title);n.setState({selectedLegends:t.length===n.props.legends.length?[]:t,selectedState:0!==t.length&&t.length!==n.props.legends.length,selecetedLegendInHoverCard:n.state.isHoverCardVisible?e.title:"none",selectedLegend:"none",hoverState:!1})},n._canSelectOnlySingleLegend=function(e){!0===n.state.selectedState&&n.state.selectedLegend===e.title?n.setState({selectedLegend:"none",selectedState:!1,selecetedLegendInHoverCard:n.state.isHoverCardVisible?e.title:"none"}):n.setState({hoverState:!0,selectedState:!0,selectedLegend:e.title,selecetedLegendInHoverCard:n.state.isHoverCardVisible?e.title:"none"})},n._onClick=function(e){if(e.action){var t=n.props.canSelectMultipleLegends;void 0!==t&&t?n._canSelectMultipleLegends(e):n._canSelectOnlySingleLegend(e),e.action()}},n._onRenderCompactCard=function(e){var t=n.props,r=t.allowFocusOnLegends,o=void 0===r||r,a=t.className,l=t.styles,u=t.theme,c=[],d=Ed(l,{theme:u,className:a});return e.renderData.forEach((function(e,t){var r=n._renderButton(e,t,!0);c.push(r)})),s.createElement(Pc,i({},o&&{role:"listbox"},{direction:oc.vertical},n.props.focusZonePropsInHoverCard,{className:d.hoverCardRoot}),c)},n._renderOverflowItems=function(e){var t=n.props.allowFocusOnLegends,r=void 0===t||t,o=[];e.forEach((function(e,t){o.push({key:t.toString(),name:e.title,onClick:e.action})}));var a={renderData:e},l=n.props,u=l.theme,c=l.className,d=l.styles,h=l.overflowText,p=Ed(d,{theme:u,className:c}),f={onRenderPlainCard:n._onRenderCompactCard,renderData:a},g=h||"more";return s.createElement(rd,{type:Ac.plain,plainCardProps:f,instantOpenOnClick:!0,onCardHide:function(){var t=n.props.canSelectMultipleLegends,r=void 0!==t&&t,i=ve(e,(function(e){return e.title===n.state.selecetedLegendInHoverCard||e.title===n.state.selectedLegend}));n.setState({isHoverCardVisible:!1,selecetedLegendInHoverCard:"none",selectedLegends:[]},(function(){i&&n.setState({selectedLegend:"none",selectedState:!1},(function(){i.action&&!r&&i.action(),n.props.onLegendHoverCardLeave&&r&&n.props.onLegendHoverCardLeave(),n.setState({hoverState:!1},(function(){i.onMouseOutAction&&i.onMouseOutAction(!0)}))}))}))},setInitialFocus:!0,trapFocus:!0,onCardVisible:n._hoverCardVisible,styles:p.subComponentStyles.hoverCardStyles,cardDismissDelay:300,target:n._hoverCardRef},s.createElement("div",i({className:p.overflowIndicationTextStyle,ref:function(e){return n._hoverCardRef=e}},r&&{role:"link","aria-expanded":n.state.isHoverCardVisible,"aria-label":o.length+" "+g},{"data-is-focusable":r}),o.length," ",g))},n._hoverCardVisible=function(){n.setState({isHoverCardVisible:!0})},n._onHoverOverLegend=function(e){n.state.selectedState||e.hoverAction&&(n.setState({hoverState:!0,selectedLegend:e.title}),e.hoverAction())},n._onLeave=function(e){n.state.selectedState||e.onMouseOutAction&&(n.setState({hoverState:!1,selectedLegend:"none"}),e.onMouseOutAction())},n._renderButton=function(e,t,r){var o=n.props.allowFocusOnLegends,a=void 0===o||o,l={title:e.title,color:e.color,shape:e.shape,action:e.action,hoverAction:e.hoverAction,onMouseOutAction:e.onMouseOutAction,stripePattern:e.stripePattern,isLineLegendInBarChart:e.isLineLegendInBarChart,opacity:e.opacity},u=n._getColor(l.title,l.color),c=n.props,d=c.theme,h=c.className,p=c.styles,f=Ed(p,{theme:d,className:h,colorOnSelectedState:u,borderColor:l.color,overflow:r,stripePattern:l.stripePattern,isLineLegendInBarChart:l.isLineLegendInBarChart,opacity:l.opacity}),g=function(){n._onHoverOverLegend(l)},v=function(){n._onLeave(l)},m=n._getShape(f,l,u);return s.createElement("button",i({},a&&{"aria-selected":n.state.selectedLegend===l.title,role:"option","aria-label":l.title+" selected","aria-setsize":e["aria-setsize"],"aria-posinset":e["aria-posinset"]},e.nativeButtonProps&&i({},e.nativeButtonProps),{key:t,className:f.legend,onClick:function(){n._onClick(l)},onMouseOver:g,onMouseOut:v,onFocus:g,onBlur:v,"data-is-focusable":a}),m,s.createElement("div",{className:f.text},l.title))},n.state={selectedLegend:"none",selectedState:!1,hoverState:!1,isHoverCardVisible:!1,selecetedLegendInHoverCard:"none",selectedLegends:[]},n}return r(t,e),t.prototype.componentDidUpdate=function(e){e.selectedLegend!==this.props.selectedLegend&&this.setState({selectedLegend:this.props.selectedLegend})},t.prototype.render=function(){var e=this.props,t=e.theme,n=e.className,r=e.styles;this._classNames=Ed(r,{theme:t,className:n});var i=this._generateData();return s.createElement("div",{className:this._classNames.root},this.props.enabledWrapLines?this._onRenderData(i):s.createElement(hd,{data:i,onReduceData:this._onReduceData,onRenderData:this._onRenderData,onGrowData:this._onGrowData}))},t.prototype._generateData=function(){var e=this,t=this.props.allowFocusOnLegends,n=void 0===t||t;return{primary:this.props.legends.map((function(t,r){return i(i({},n&&{nativeButtonProps:ze(t,Be,["title"]),"aria-setsize":e.props.legends.length,"aria-posinset":r+1}),{title:t.title,action:t.action,hoverAction:t.hoverAction,onMouseOutAction:t.onMouseOutAction,color:t.color,shape:t.shape,stripePattern:t.stripePattern,isLineLegendInBarChart:t.isLineLegendInBarChart,opacity:t.opacity,key:r})})),overflow:[]}},t.prototype._getShape=function(e,t,n){var r={className:e.shape},i={fill:n,strokeWidth:2,stroke:t.color};return s.createElement(Sd,{svgProps:r,pathProps:i,shape:t.shape,classNameForNonSvg:e.rect})},t.prototype._getColor=function(e,t){var n=this.props,r=n.theme,i=n.canSelectMultipleLegends,o=void 0!==i&&i,a=r.palette;return this.state.hoverState&&this.state.selectedLegend===e?t:this.state.hoverState&&"none"!==this.state.selectedLegend&&this.state.selectedLegend!==e?a.white:o&&this.state.selectedState&&this.state.selectedLegends.indexOf(e)>-1||!this.state.selectedState&&"none"===this.state.selectedLegend||this.state.selectedLegend===e||this.state.selectedLegends.length<=0?t:a.white},t}(s.Component),kd=b(Ld,(function(e){var t,n,r=e.className,o=e.theme,a=e.isLineLegendInBarChart,s=void 0!==a&&a,l=o,u=l.palette,c=l.fonts,d={inset:void 0,position:void 0,highContrastStyle:{outlineColor:o.semanticColors.focusBorder},borderColor:"transparent",outlineColor:void 0};return{root:[{whiteSpace:"nowrap",width:"100%",alignItems:"center",margin:"-8px 0 0 -8px"},r],legend:[Hn(o,d),{display:"flex",alignItems:"center",cursor:"pointer",border:"none",padding:"8px",background:"none",textTransform:"capitalize"}],rect:{selectors:(t={},t[Pn]={content:"linear-gradient(to right, "+e.colorOnSelectedState+", "+e.colorOnSelectedState+")",opacity:e.colorOnSelectedState===u.white?"0.6":""},t),width:"12px",height:s?"4px":"12px",backgroundColor:e.stripePattern?"":e.colorOnSelectedState,marginRight:"8px",border:"1px solid",borderColor:e.borderColor?e.borderColor:null==o?void 0:o.semanticColors.buttonBorder,content:e.stripePattern?"repeating-linear-gradient(135deg, transparent, transparent 3px, "+e.colorOnSelectedState+" 1px, "+e.colorOnSelectedState+" 4px)":""},shape:[{marginRight:"8px"}],triangle:{width:"0",height:"0",borderLeft:"6px solid transparent",borderRight:"6px solid transparent",borderTop:"10.4px solid",borderTopColor:e.colorOnSelectedState,marginRight:"8px",opacity:e.colorOnSelectedState===u.white?"0.6":e.opacity?e.opacity:"",selectors:(n={},n[Pn]={border:"0px",height:"10.4px",width:"10.4px",clipPath:"polygon(50% 100%, 0 0, 100% 0)",backgroundImage:"linear-gradient(to right, "+e.colorOnSelectedState+", "+e.colorOnSelectedState+")"},n)},text:i(i({},c.small),{lineHeight:"16px",color:null==o?void 0:o.semanticColors.bodyText,opacity:e.colorOnSelectedState===u.white?"0.6":""}),hoverChange:{width:"12px",height:"12px",backgroundColor:"white",marginRight:"8px",border:"1px solid",borderColor:e.borderColor?e.borderColor:u.black},overflowIndicationTextStyle:[Hn(o,d),i(i({cursor:"pointer",color:null==o?void 0:o.semanticColors.bodyText},c.small),{lineHeight:"16px",padding:"8px"})],hoverCardRoot:{padding:"8px"},subComponentStyles:{hoverCardStyles:{host:[Hn(o,d)]}}}}));function Ad(e){return function(){return e}}function wd(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function Dd(e){return e}var Td=Math.abs,Md=Math.atan2,Pd=Math.cos,Fd=Math.max,Id=Math.min,Od=Math.sin,Nd=Math.sqrt,Hd=1e-12,Rd=Math.PI,Vd=Rd/2,Bd=2*Rd;function Wd(e){return e>1?0:e<-1?Rd:Math.acos(e)}function zd(e){return e>=1?Vd:e<=-1?-Vd:Math.asin(e)}function Ud(){var e=Dd,t=wd,n=null,r=Ad(0),i=Ad(Bd),o=Ad(0);function a(a){var s,l,u,c,d,h=a.length,p=0,f=new Array(h),g=new Array(h),v=+r.apply(this,arguments),m=Math.min(Bd,Math.max(-Bd,i.apply(this,arguments)-v)),y=Math.min(Math.abs(m)/h,o.apply(this,arguments)),_=y*(m<0?-1:1);for(s=0;s<h;++s)(d=g[f[s]=s]=+e(a[s],s,a))>0&&(p+=d);for(null!=t?f.sort((function(e,n){return t(g[e],g[n])})):null!=n&&f.sort((function(e,t){return n(a[e],a[t])})),s=0,u=p?(m-h*_)/p:0;s<h;++s,v=c)l=f[s],c=v+((d=g[l])>0?d*u:0)+_,g[l]={data:a[l],index:s,value:d,startAngle:v,endAngle:c,padAngle:y};return g}return a.value=function(t){return arguments.length?(e="function"==typeof t?t:Ad(+t),a):e},a.sortValues=function(e){return arguments.length?(t=e,n=null,a):t},a.sort=function(e){return arguments.length?(n=e,t=null,a):n},a.startAngle=function(e){return arguments.length?(r="function"==typeof e?e:Ad(+e),a):r},a.endAngle=function(e){return arguments.length?(i="function"==typeof e?e:Ad(+e),a):i},a.padAngle=function(e){return arguments.length?(o="function"==typeof e?e:Ad(+e),a):o},a}var jd=Math.PI,Yd=2*jd,Xd=1e-6,qd=Yd-Xd;function Kd(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function Zd(){return new Kd}Kd.prototype=Zd.prototype={constructor:Kd,moveTo:function(e,t){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(e,t){this._+="L"+(this._x1=+e)+","+(this._y1=+t)},quadraticCurveTo:function(e,t,n,r){this._+="Q"+ +e+","+ +t+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(e,t,n,r,i,o){this._+="C"+ +e+","+ +t+","+ +n+","+ +r+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(e,t,n,r,i){e=+e,t=+t,n=+n,r=+r,i=+i;var o=this._x1,a=this._y1,s=n-e,l=r-t,u=o-e,c=a-t,d=u*u+c*c;if(i<0)throw new Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(d>Xd)if(Math.abs(c*s-l*u)>Xd&&i){var h=n-o,p=r-a,f=s*s+l*l,g=h*h+p*p,v=Math.sqrt(f),m=Math.sqrt(d),y=i*Math.tan((jd-Math.acos((f+d-g)/(2*v*m)))/2),_=y/m,x=y/v;Math.abs(_-1)>Xd&&(this._+="L"+(e+_*u)+","+(t+_*c)),this._+="A"+i+","+i+",0,0,"+ +(c*h>u*p)+","+(this._x1=e+x*s)+","+(this._y1=t+x*l)}else this._+="L"+(this._x1=e)+","+(this._y1=t)},arc:function(e,t,n,r,i,o){e=+e,t=+t;var a=(n=+n)*Math.cos(r),s=n*Math.sin(r),l=e+a,u=t+s,c=1^o,d=o?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+l+","+u:(Math.abs(this._x1-l)>Xd||Math.abs(this._y1-u)>Xd)&&(this._+="L"+l+","+u),n&&(d<0&&(d=d%Yd+Yd),d>qd?this._+="A"+n+","+n+",0,1,"+c+","+(e-a)+","+(t-s)+"A"+n+","+n+",0,1,"+c+","+(this._x1=l)+","+(this._y1=u):d>Xd&&(this._+="A"+n+","+n+",0,"+ +(d>=jd)+","+c+","+(this._x1=e+n*Math.cos(i))+","+(this._y1=t+n*Math.sin(i))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};var Gd=Zd;function $d(e){return e.innerRadius}function Qd(e){return e.outerRadius}function Jd(e){return e.startAngle}function eh(e){return e.endAngle}function th(e){return e&&e.padAngle}function nh(e,t,n,r,i,o,a,s){var l=n-e,u=r-t,c=a-i,d=s-o,h=d*l-c*u;if(!(h*h<Hd))return[e+(h=(c*(t-o)-d*(e-i))/h)*l,t+h*u]}function rh(e,t,n,r,i,o,a){var s=e-n,l=t-r,u=(a?o:-o)/Nd(s*s+l*l),c=u*l,d=-u*s,h=e+c,p=t+d,f=n+c,g=r+d,v=(h+f)/2,m=(p+g)/2,y=f-h,_=g-p,x=y*y+_*_,b=i-o,C=h*g-f*p,S=(_<0?-1:1)*Nd(Fd(0,b*b*x-C*C)),E=(C*_-y*S)/x,L=(-C*y-_*S)/x,k=(C*_+y*S)/x,A=(-C*y+_*S)/x,w=E-v,D=L-m,T=k-v,M=A-m;return w*w+D*D>T*T+M*M&&(E=k,L=A),{cx:E,cy:L,x01:-c,y01:-d,x11:E*(i/b-1),y11:L*(i/b-1)}}function ih(){var e=$d,t=Qd,n=Ad(0),r=null,i=Jd,o=eh,a=th,s=null;function l(){var l,u,c=+e.apply(this,arguments),d=+t.apply(this,arguments),h=i.apply(this,arguments)-Vd,p=o.apply(this,arguments)-Vd,f=Td(p-h),g=p>h;if(s||(s=l=Gd()),d<c&&(u=d,d=c,c=u),d>Hd)if(f>Bd-Hd)s.moveTo(d*Pd(h),d*Od(h)),s.arc(0,0,d,h,p,!g),c>Hd&&(s.moveTo(c*Pd(p),c*Od(p)),s.arc(0,0,c,p,h,g));else{var v,m,y=h,_=p,x=h,b=p,C=f,S=f,E=a.apply(this,arguments)/2,L=E>Hd&&(r?+r.apply(this,arguments):Nd(c*c+d*d)),k=Id(Td(d-c)/2,+n.apply(this,arguments)),A=k,w=k;if(L>Hd){var D=zd(L/c*Od(E)),T=zd(L/d*Od(E));(C-=2*D)>Hd?(x+=D*=g?1:-1,b-=D):(C=0,x=b=(h+p)/2),(S-=2*T)>Hd?(y+=T*=g?1:-1,_-=T):(S=0,y=_=(h+p)/2)}var M=d*Pd(y),P=d*Od(y),F=c*Pd(b),I=c*Od(b);if(k>Hd){var O,N=d*Pd(_),H=d*Od(_),R=c*Pd(x),V=c*Od(x);if(f<Rd&&(O=nh(M,P,R,V,N,H,F,I))){var B=M-O[0],W=P-O[1],z=N-O[0],U=H-O[1],j=1/Od(Wd((B*z+W*U)/(Nd(B*B+W*W)*Nd(z*z+U*U)))/2),Y=Nd(O[0]*O[0]+O[1]*O[1]);A=Id(k,(c-Y)/(j-1)),w=Id(k,(d-Y)/(j+1))}}S>Hd?w>Hd?(v=rh(R,V,M,P,d,w,g),m=rh(N,H,F,I,d,w,g),s.moveTo(v.cx+v.x01,v.cy+v.y01),w<k?s.arc(v.cx,v.cy,w,Md(v.y01,v.x01),Md(m.y01,m.x01),!g):(s.arc(v.cx,v.cy,w,Md(v.y01,v.x01),Md(v.y11,v.x11),!g),s.arc(0,0,d,Md(v.cy+v.y11,v.cx+v.x11),Md(m.cy+m.y11,m.cx+m.x11),!g),s.arc(m.cx,m.cy,w,Md(m.y11,m.x11),Md(m.y01,m.x01),!g))):(s.moveTo(M,P),s.arc(0,0,d,y,_,!g)):s.moveTo(M,P),c>Hd&&C>Hd?A>Hd?(v=rh(F,I,N,H,c,-A,g),m=rh(M,P,R,V,c,-A,g),s.lineTo(v.cx+v.x01,v.cy+v.y01),A<k?s.arc(v.cx,v.cy,A,Md(v.y01,v.x01),Md(m.y01,m.x01),!g):(s.arc(v.cx,v.cy,A,Md(v.y01,v.x01),Md(v.y11,v.x11),!g),s.arc(0,0,c,Md(v.cy+v.y11,v.cx+v.x11),Md(m.cy+m.y11,m.cx+m.x11),g),s.arc(m.cx,m.cy,A,Md(m.y11,m.x11),Md(m.y01,m.x01),!g))):s.arc(0,0,c,b,x,g):s.lineTo(F,I)}else s.moveTo(0,0);if(s.closePath(),l)return s=null,l+""||null}return l.centroid=function(){var n=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,r=(+i.apply(this,arguments)+ +o.apply(this,arguments))/2-Rd/2;return[Pd(r)*n,Od(r)*n]},l.innerRadius=function(t){return arguments.length?(e="function"==typeof t?t:Ad(+t),l):e},l.outerRadius=function(e){return arguments.length?(t="function"==typeof e?e:Ad(+e),l):t},l.cornerRadius=function(e){return arguments.length?(n="function"==typeof e?e:Ad(+e),l):n},l.padRadius=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:Ad(+e),l):r},l.startAngle=function(e){return arguments.length?(i="function"==typeof e?e:Ad(+e),l):i},l.endAngle=function(e){return arguments.length?(o="function"==typeof e?e:Ad(+e),l):o},l.padAngle=function(e){return arguments.length?(a="function"==typeof e?e:Ad(+e),l):a},l.context=function(e){return arguments.length?(s=null==e?null:e,l):s},l}var oh=function(e){var t,n=e.color,r=e.href,i=e.theme;return{root:{fill:n,cursor:r?"pointer":"default",stroke:Tn.white,outline:"transparent",selectors:{"::-moz-focus-inner":{border:"0"}}},focusRing:{stroke:i.semanticColors.focusBorder,strokeWidth:4},insideDonutString:{fontSize:kn.large,fill:i.semanticColors.bodyText,selectors:(t={},t[Fn]={fill:"rgb(179, 179, 179)"},t)}}},ah=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={},t.currentRef=s.createRef(),t._hoverOff=function(){t.props.hoverLeaveCallback()},t._onBlur=function(){t.props.onBlurCallback()},t}return r(t,e),t.getDerivedStateFromProps=function(e){return sh(e),null},t.prototype.updateChart=function(e){sh(e)},t.prototype.render=function(){var e,t=this.props,n=t.arc,r=t.href,i=t.focusedArcId,o=le()(oh,{color:this.props.color,href:r,theme:this.props.theme}),a=this.props.uniqText+this.props.data.data.legend.replace(/\s+/,"")+this.props.data.data.data,l=this.props.activeArc===this.props.data.data.legend||""===this.props.activeArc?1:.1;return s.createElement("g",{ref:this.currentRef},!!i&&i===a&&s.createElement("path",{id:a+"focusRing",d:n(this.props.focusData),className:o.focusRing}),s.createElement("path",{id:a,d:n(this.props.data),onFocus:this._onFocus.bind(this,this.props.data.data,a),className:o.root,"data-is-focusable":!0,onMouseOver:this._hoverOn.bind(this,this.props.data.data),onMouseMove:this._hoverOn.bind(this,this.props.data.data),onMouseLeave:this._hoverOff,onBlur:this._onBlur,opacity:l,onClick:r?this._redirectToUrl.bind(this,r):null===(e=this.props.data)||void 0===e?void 0:e.data.onClick,"aria-labelledby":this.props.calloutId,role:"text"}),s.createElement("text",{textAnchor:"middle",className:o.insideDonutString,y:5},this.props.valueInsideDonut))},t.prototype.componentDidUpdate=function(){var e,t,n,r=this.props.href;e=le()(oh,{color:this.props.color,href:r,theme:this.props.theme}).insideDonutString,t=2*this.props.innerRadius-5,n=0,function(e){return"string"==typeof e?new Vu([document.querySelectorAll(e)],[document.documentElement]):new Vu([null==e?[]:e],Ru)}("."+e).each((function(){for(var e=Bu(this),r=e.text().split(/\s+/).reverse(),i="",o=[],a=0,s=e.attr("y"),l=e.text(null).append("tspan").attr("id","WordBreakId-"+n+"-"+a).attr("x",0).attr("y",s).attr("dy",1.1*a+++"em");i=r.pop();)o.push(i),l.text(o.join(" ")+" "),l.node().getComputedTextLength()>t&&o.length>1&&(o.pop(),l.text(o.join(" ")+" "),o=[i],l=e.append("tspan").attr("id","WordBreakId-"+n+"-"+a).attr("x",0).attr("y",s).attr("dy",1.1*a+++"em").text(i));n+=1}))},t.prototype._onFocus=function(e,t){this.props.onFocusCallback(e,t,this.currentRef.current)},t.prototype._hoverOn=function(e,t){t.persist(),this.props.activeArc!==this.props.data.data.legend&&""!==this.props.activeArc||this.props.hoverOnCallback(e,t)},t.prototype._redirectToUrl=function(e){e&&(window.location.href=e)},t.defaultProps={arc:ih()},t}(s.Component);function sh(e){e.arc.innerRadius(e.innerRadius),e.arc.outerRadius(e.outerRadius)}var lh=function(e){function t(t){var n=e.call(this,t)||this;return n.arcGenerator=function(e,t,r,i){var o=e&&e.data&&e.data.color;return s.createElement(ah,{key:t,data:e,focusData:r,innerRadius:n.props.innerRadius,outerRadius:n.props.outerRadius,color:o,onFocusCallback:n._focusCallback,hoverOnCallback:n._hoverCallback,onBlurCallback:n.props.onBlurCallback,hoverLeaveCallback:n.props.hoverLeaveCallback,uniqText:n.props.uniqText,activeArc:n.props.activeArc,href:i,calloutId:n.props.calloutId,valueInsideDonut:n.props.valueInsideDonut,theme:n.props.theme,focusedArcId:n.props.focusedArcId})},n._focusCallback=function(e,t,r){n.props.onFocusCallback(e,t,r)},n._hoverCallback=n._hoverCallback.bind(n),n._pieForFocusRing=Ud().sort(null).value((function(e){return e.data})).padAngle(0),n}return r(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.pie,r=t.data,i=this._pieForFocusRing(r),o=n(r),a="translate("+this.props.width/2+", "+this.props.height/2+")";return s.createElement("g",{transform:a},o.map((function(t,n){return e.arcGenerator(t,n,i[n],e.props.href)})))},t.prototype._hoverCallback=function(e,t){this.props.hoverOnCallback(e,t)},t.defaultProps={pie:Ud().sort(null).value((function(e){return e.data})).padAngle(.02)},t}(s.Component),uh=le(),ch=function(e){function t(t){var n=e.call(this,t)||this;return n._closeCallout=function(){n.setState({showHover:!1})},n._focusCallback=function(e,t,r){n._currentHoverElement=r,n.setState({showHover:!0,value:e.data.toString(),legend:e.legend,activeLegend:e.legend,color:e.color,selectedLegend:e.legend,xCalloutValue:e.xAxisCalloutData,yCalloutValue:e.yAxisCalloutData,focusedArcId:t,dataPointCalloutProps:e,callOutAccessibilityData:e.callOutAccessibilityData})},n._hoverCallback=function(e,t){n._calloutAnchorPoint!==e&&(n._calloutAnchorPoint=e,n._currentHoverElement=t,n.setState({showHover:!0,value:e.data.toString(),selectedLegend:e.legend,legend:e.legend,color:e.color,xCalloutValue:e.xAxisCalloutData,yCalloutValue:e.yAxisCalloutData,activeLegend:e.legend,dataPointCalloutProps:e,callOutAccessibilityData:e.callOutAccessibilityData}))},n._onBlur=function(){n.setState({showHover:!1,focusedArcId:"",activeLegend:"",selectedLegend:"none"})},n._handleChartMouseLeave=function(){n._calloutAnchorPoint=null,n.setState({showHover:!1})},n.state={showHover:!1,value:"",legend:"",_width:n.props.width||200,_height:n.props.height||200,activeLegend:"",color:"",isLegendSelected:!1,xCalloutValue:"",yCalloutValue:"",selectedLegend:"none",focusedArcId:""},n._hoverCallback=n._hoverCallback.bind(n),n._focusCallback=n._focusCallback.bind(n),n._hoverLeave=n._hoverLeave.bind(n),n._calloutId=pe("callout"),n._uniqText=pe("_Pie_"),n}return r(t,e),t.getDerivedStateFromProps=function(e,t){if(e.height&&e.height!==t._height&&e.width!==t._width){var n=e.height/5;return{_width:e.width,_height:e.height-n}}return null},t.prototype.componentDidMount=function(){var e=this._rootElem&&this._rootElem.offsetHeight/5;this.setState({_width:this._rootElem&&this._rootElem.offsetWidth,_height:this._rootElem&&this._rootElem.offsetHeight-e})},t.prototype.render=function(){var e,t=this,n=this.props,r=n.data,o=n.hideLegend,a=void 0!==o&&o,l=this.props.theme.palette;this._classNames=uh(this.props.styles,{theme:this.props.theme,width:this.state._width,height:this.state._height,color:this.state.color,className:this.props.className});var u=this._createLegends(r,l),c=Math.min(this.state._width,this.state._height)/2,d=r&&(null===(e=r.chartData)||void 0===e?void 0:e.filter((function(e){return e.data>0}))),h=this._valueInsideDonut(this.props.valueInsideDonut,d);return s.createElement("div",{className:this._classNames.root,ref:function(e){return t._rootElem=e},onMouseLeave:this._handleChartMouseLeave},s.createElement(Pc,{direction:oc.horizontal,isCircularNavigation:!0},s.createElement("div",null,s.createElement("svg",{className:this._classNames.chart,"aria-label":null==r?void 0:r.chartTitle,ref:function(e){return t._setViewBox(e)}},s.createElement(lh,{width:this.state._width,height:this.state._height,outerRadius:c,innerRadius:this.props.innerRadius,data:d,onFocusCallback:this._focusCallback,hoverOnCallback:this._hoverCallback,hoverLeaveCallback:this._hoverLeave,uniqText:this._uniqText,onBlurCallback:this._onBlur,activeArc:this.state.activeLegend,focusedArcId:this.state.focusedArcId||"",href:this.props.href,calloutId:this._calloutId,valueInsideDonut:this._toLocaleString(h),theme:this.props.theme})))),s.createElement(gi,i({target:this._currentHoverElement,alignTargetEdge:!0,isBeakVisible:!1,directionalHint:3,gapSpace:15,hidden:!(!this.props.hideTooltip&&this.state.showHover),id:this._calloutId,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0},this.props.calloutProps,rc(this.state.callOutAccessibilityData,"text",!1)),this.props.onRenderCalloutPerDataPoint?this.props.onRenderCalloutPerDataPoint(this.state.dataPointCalloutProps):s.createElement(uc,{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})),!a&&s.createElement("div",{className:this._classNames.legendContainer},u))},t.prototype._setViewBox=function(e){var t,n;if(null!==e){var r="0 0 "+(e.parentElement?e.parentElement.clientWidth:this.state._width)+" "+(e.parentElement&&(null===(t=e.parentElement)||void 0===t?void 0:t.offsetHeight)>this.state._height?null===(n=e.parentElement)||void 0===n?void 0:n.offsetHeight:this.state._height);e.setAttribute("viewBox",r)}},t.prototype._createLegends=function(e,t){var n=this,r=[t.blueLight,t.blue,t.blueMid,t.red,t.black],o=e&&e.chartData.map((function(e,t){var i=e.color?e.color:r[Math.floor(4*Math.random()+1)];return{title:e.legend,color:i,action:function(){n.state.isLegendSelected?n.state.activeLegend!==e.legend||""===n.state.activeLegend?n.setState({activeLegend:e.legend,isLegendSelected:!0}):n.setState({activeLegend:e.legend}):n.setState({activeLegend:e.legend,isLegendSelected:!0})},hoverAction:function(){n.state.activeLegend!==e.legend||n.state.activeLegend,n.setState({activeLegend:e.legend})},onMouseOutAction:function(){n.setState({showHover:!1,activeLegend:""})}}}));return s.createElement(kd,i({legends:o,centerLegends:!0,overflowProps:this.props.legendsOverflowProps,focusZonePropsInHoverCard:this.props.focusZonePropsForLegendsInHoverCard,overflowText:this.props.legendsOverflowText,selectedLegend:this.state.selectedLegend},this.props.legendProps))},t.prototype._hoverLeave=function(){this.setState({activeLegend:"",selectedLegend:"none",focusedArcId:""})},t.prototype._valueInsideDonut=function(e,t){var n=this;if(void 0===e||""===this.state.activeLegend||this.state.showHover)return e;var r=e;return t.map((function(e,t){e.legend===n.state.activeLegend&&(r=e.yAxisCalloutData?e.yAxisCalloutData:e.data)})),r},t.prototype._toLocaleString=function(e){var t=ic(e,this.props.culture);return t?null==t?void 0:t.toString():e},t.defaultProps={innerRadius:0},t}(s.Component),dh=b(ch,(function(e){var t=e.className,n=e.width,r=e.height;return{root:[e.theme.fonts.medium,"ms-DonutChart",{alignItems:"center",display:"flex",flexDirection:"column",width:"100%",height:"100%"},t],chart:{width:n,height:r,boxSizing:"content-box",overflow:"visible",alignmentAdjust:"center"},legendContainer:{paddingTop:"16px",width:n+"px"}}})),hh=le(),ph=function(e){function t(t){var n,r,o,a,l,u,c,d,h,p,f,g,v=e.call(this,t)||this;return v.minLegendContainerHeight=32,v._isRtl=ie(),v._multiValueCallout=function(e){var t=v._yValueHoverSubCountsExists(e.YValueHover);return s.createElement("div",{className:v._classNames.calloutContentRoot},s.createElement("div",{className:v._classNames.calloutDateTimeContainer,style:t?{marginBottom:"11px"}:{}},s.createElement("div",i({className:v._classNames.calloutContentX},rc(e.xAxisCalloutAccessibilityData,"text",!1)),ic(e.hoverXValue,v.props.culture))),s.createElement("div",{className:v._classNames.calloutInfoContainer,style:t?{display:"flex"}:{}},e.YValueHover&&e.YValueHover.map((function(e,n,r){var o=n+1===r.length,a=e.shouldDrawBorderBottom,l=void 0!==a&&a;return s.createElement("div",i({},rc(e.callOutAccessibilityData,"text",!1),{key:"callout-content-"+n,style:i(t?{display:"inline-block"}:{},l&&{borderBottom:"1px solid "+v.props.theme.semanticColors.menuDivider,paddingBottom:"10px"})}),v._getCalloutContent(e,n,t,o))})),!!e.descriptionMessage&&s.createElement("div",{className:v._classNames.descriptionMessage},e.descriptionMessage)))},v._getData=function(e,t){v.props.getGraphData&&v.props.getGraphData(e,t,v.state.containerHeight-v.state._removalValueForTextTuncate,v.state.containerWidth,v.xAxisElement)},v.state={containerHeight:0,containerWidth:0,_width:v.props.width||600,_height:v.props.height||350,_removalValueForTextTuncate:0,isRemoveValCalculated:!0},v.idForGraph=pe("chart_"),v.margins={top:null!==(r=null===(n=v.props.margins)||void 0===n?void 0:n.top)&&void 0!==r?r:20,bottom:null!==(a=null===(o=v.props.margins)||void 0===o?void 0:o.bottom)&&void 0!==a?a:35,right:v._isRtl?null!==(u=null===(l=v.props.margins)||void 0===l?void 0:l.left)&&void 0!==u?u:40:null!==(d=null===(c=v.props.margins)||void 0===c?void 0:c.right)&&void 0!==d?d:20,left:v._isRtl?null!==(p=null===(h=v.props.margins)||void 0===h?void 0:h.right)&&void 0!==p?p:20:null!==(g=null===(f=v.props.margins)||void 0===f?void 0:f.left)&&void 0!==g?g:40},v}return r(t,e),t.prototype.componentDidMount=function(){this._fitParentContainer()},t.prototype.componentWillUnmount=function(){cancelAnimationFrame(this._reqID)},t.prototype.componentDidUpdate=function(e){if(e.height===this.props.height&&e.width===this.props.width||this._fitParentContainer(),!this.props.wrapXAxisLables&&this.props.rotateXAxisLables&&this.props.xAxisType===Uu.StringAxis){var t=function(e){var t=e.node,n=e.xAxis;if(null!==t&&null!==n){var r=0,i=[];Bu(t).call(n).selectAll(".tick").each((function(){var e=this.getAttribute("transform");if(-1===(null==e?void 0:e.indexOf("rotate"))){var t=e.substring(e.indexOf("(")+1,e.indexOf(")")).split(",");2===t.length&&(i.push(t[0]),this.setAttribute("transform","translate("+t[0]+",0)rotate(-45)"))}var n=this.getBoundingClientRect(),o=n&&n.height;o>r&&(r=o)}));var o=0;return Bu(t).call(n).selectAll(".tick").each((function(){i.length>o&&(this.setAttribute("transform","translate("+i[o]+","+r/2+")rotate(-45)"),o+=1)})),Math.floor(r/1.414)}}({node:this.xAxisElement,xAxis:this._xScale});this.state.isRemoveValCalculated&&this.state._removalValueForTextTuncate!==t+this.margins.bottom&&t>0&&this.setState({_removalValueForTextTuncate:t+this.margins.bottom,isRemoveValCalculated:!1})}},t.prototype.render=function(){var e=this,t=this.props,n=t.calloutProps,r=t.points,o=t.chartType,a=t.chartHoverProps,l=t.svgFocusZoneProps,u=t.svgProps,c=t.culture;this.props.parentRef&&this._fitParentContainer(),this.props.getmargins&&this.props.getmargins(this.margins);var d,h,p={domainNRangeValues:$u(r,this.margins,this.state.containerWidth,o,this._isRtl,this.props.xAxisType,this.props.barwidth,this.props.tickValues),xAxisElement:this.xAxisElement,showRoundOffXTickValues:!0,xAxisCount:this.props.xAxisTickCount,xAxistickSize:this.props.xAxistickSize,tickPadding:this.props.tickPadding||this.props.showXAxisLablesTooltip?5:10,xAxisPadding:this.props.xAxisPadding},f={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:Qu(r,o),yAxisPadding:this.props.yAxisPadding};switch(this.props.xAxisType){case Uu.NumericAxis:d=qu(p,c);break;case Uu.DateAxis:d=function(e,t){var n=e.domainNRangeValues,r=e.xAxisElement,i=e.tickPadding,o=void 0===i?6:i,a=e.xAxistickSize,s=void 0===a?6:a,l=e.xAxisCount,u=void 0===l?6:l,c=Dl().domain([n.dStartValue,n.dEndValue]).range([n.rStartValue,n.rEndValue]),d=ki(c).tickSize(s).tickPadding(o).ticks(u);return t.tickValues&&d.tickValues(t.tickValues),t.tickFormat&&d.tickFormat(ds(t.tickFormat)),r&&Bu(r).call(d).selectAll("text").attr("aria-hidden","true"),c}(p,this.props.tickParams);break;case Uu.StringAxis:d=function(e,t,n,r){var i=e.domainNRangeValues,o=e.xAxisCount,a=void 0===o?6:o,s=e.xAxistickSize,l=void 0===s?6:s,u=e.tickPadding,c=void 0===u?10:u,d=e.xAxisPadding,h=void 0===d?.1:d,p=Ji().domain(n).range([i.rStartValue,i.rEndValue]).padding(h),f=ki(p).tickSize(l).tickPadding(c).ticks(a).tickFormat((function(e,t){return ic(n[t],r)}));return e.xAxisElement&&Bu(e.xAxisElement).call(f).selectAll("text").attr("aria-hidden","true"),p}(p,this.props.tickParams,this.props.datasetForXAxisDomain,c);break;default:d=qu(p,c)}if(this._xScale=d,this.props.wrapXAxisLables||this.props.showXAxisLablesTooltip){var g={node:this.xAxisElement,xAxis:d,showXAxisLablesTooltip:this.props.showXAxisLablesTooltip||!1,noOfCharsToTruncate:this.props.noOfCharsToTruncate||4},v=d&&function(e){var t=e.node,n=e.xAxis,r=e.noOfCharsToTruncate,i=e.showXAxisLablesTooltip;if(null!==t){var o=Bu(t).call(n),a=0,s=[];return o.selectAll(".tick text").each((function(){var e=Bu(this),t=e.text(),n=e.text().slice(0,r)+"...",l=e.text().length,u=e.text().split(/\s+/).reverse();s.push(u.length);var c="",d=[],h=0,p=e.attr("y"),f=parseFloat(e.attr("dy")),g=e.text(null).append("tspan").attr("x",0).attr("y",p).attr("id","BaseSpan").attr("dy",f+"em").attr("data-",t);if(i&&l>r)g=e.append("tspan").attr("id","showDots").attr("x",0).attr("y",p).attr("dy",1.1*++h+f+"em").text(n);else if(i&&l<=r)g=e.append("tspan").attr("id","LessLength").attr("x",0).attr("y",p).attr("dy",1.1*++h+f+"em").text(t);else{for(;c=u.pop();)d.push(c),g.text(d.join(" ")),g.node().getComputedTextLength()>10&&d.length>1&&(d.pop(),g.text(d.join(" ")),d=[c],g=e.append("tspan").attr("id","WordBreakId").attr("x",0).attr("y",p).attr("dy",1.1*++h+f+"em").text(c));var v=Math.max.apply(Math,s),m=12;o.selectAll("text").each((function(){var e=document.getElementById("WordBreakId"),t=e&&e.getBoundingClientRect(),n=t&&t.height;n>m&&(m=n)}));var y=4;v<=2?y=1:v>2&&v<=6?y=2:v>6&&v<=9&&(y=3),a=(v-y)*m}})),a>0?a:0}}(g);this.state.isRemoveValCalculated&&this.state._removalValueForTextTuncate!==v&&this.setState({_removalValueForTextTuncate:v,isRemoveValCalculated:!1})}var m={yAxisDomainValues:[]};h=this.props.yAxisType&&this.props.yAxisType===ju.StringAxis?function(e,t,n){var r=e.containerHeight,i=e.tickPadding,o=void 0===i?12:i,a=e.margins,s=e.yAxisTickFormat,l=e.yAxisElement,u=e.yAxisPadding,c=void 0===u?0:u,d=Ji().domain(t).range([r-a.bottom,a.top]).padding(c),h=(n?Li(d):Ai(d)).tickPadding(o).tickValues(t).tickSize(0);return s&&h.tickFormat(s),l&&Bu(l).call(h).selectAll("text"),d}(f,this.props.stringDatasetForYAxisDomain,this._isRtl):function(e,t,n){var r=e.yMinMaxValues,i=void 0===r?{startValue:0,endValue:0}:r,o=e.yAxisElement,a=void 0===o?null:o,s=e.yMaxValue,l=void 0===s?0:s,u=e.yMinValue,c=void 0===u?0:u,d=e.containerHeight,h=e.containerWidth,p=e.margins,f=e.tickPadding,g=void 0===f?12:f,v=e.maxOfYVal,m=void 0===v?0:v,y=e.yAxisTickFormat,_=e.yAxisTickCount,x=void 0===_?4:_,b=e.eventAnnotationProps,C=e.eventLabelHeight,S=m||i.endValue,E=S>l?S:l,L=i.startValue<c?0:c,k=function(e,t,n){for(var r=Math.ceil((e-t)/n),i=[t,t+r];i[i.length-1]<e;)i.push(i[i.length-1]+r);return i}(E,L,x),A=ga().domain([L,k[k.length-1]]).range([d-p.bottom,p.top+(b?C:0)]),w=(t?Li(A):Ai(A)).tickPadding(g).tickValues(k).tickSizeInner(-(h-p.left-p.right));return y?w.tickFormat(y):w.tickFormat(ca(".2~s")),a&&Bu(a).call(w).selectAll("text").attr("aria-hidden","true"),n.yAxisDomainValues=k,A}(f,this._isRtl,m),this.props.getAxisData&&this.props.getAxisData(m),this._getData(d,h),this._classNames=hh(this.props.styles,{theme:this.props.theme,width:this.state._width,height:this.state._height,className:this.props.className,isRtl:this._isRtl});var y,_={width:this.state.containerWidth,height:this.state.containerHeight},x=this.props.children(i(i({},this.state),{xScale:d,yScale:h}));return y=this.props.focusZoneDirection===oc.vertical||this.props.focusZoneDirection?this.props.focusZoneDirection:oc.horizontal,s.createElement("div",{id:this.idForGraph,className:this._classNames.root,role:"presentation",ref:function(t){return e.chartContainer=t},onMouseLeave:this.props.onChartMouseLeave},s.createElement(Pc,i({direction:y},l),s.createElement("svg",i({width:_.width,height:_.height,"aria-label":this.props.chartTitle,style:{display:"block"}},u),s.createElement("g",{ref:function(t){e.xAxisElement=t},id:"xAxisGElement"+this.idForGraph,transform:"translate(0, "+(_.height-this.margins.bottom-this.state._removalValueForTextTuncate)+")",className:this._classNames.xAxis}),s.createElement("g",{ref:function(t){e.yAxisElement=t},id:"yAxisGElement"+this.idForGraph,transform:"translate("+(this._isRtl?_.width-this.margins.right:this.margins.left)+", 0)",className:this._classNames.yAxis}),x)),!this.props.hideLegend&&s.createElement("div",{ref:function(t){return e.legendContainer=t},className:this._classNames.legendContainer},this.props.legendBars),!this.props.hideTooltip&&n.isCalloutVisible&&s.createElement(gi,i({},n),this.props.customizedCallout&&this.props.customizedCallout,!this.props.customizedCallout&&this.props.isCalloutForStack&&this._multiValueCallout(n),!this.props.customizedCallout&&!this.props.isCalloutForStack&&s.createElement(uc,i({XValue:n.XValue,Legend:n.legend,YValue:n.YValue,color:n.color,culture:this.props.culture},a))))},t.prototype._yValueHoverSubCountsExists=function(e){return!!e&&e.some((function(e){return e.yAxisCalloutData&&"string"!=typeof e.yAxisCalloutData}))},t.prototype._getCalloutContent=function(e,t,n,r){var i=r?{}:{marginRight:"16px"},o=void 0!==e.index&&-1!==e.index,a=hh(this.props.styles,{theme:this.props.theme,width:this.state._width,height:this.state._height,className:this.props.className,isRtl:this._isRtl,lineColor:e.color,toDrawShape:o}),l=this.props.culture,u=ic(e.y,l);if(e.yAxisCalloutData&&"string"!=typeof e.yAxisCalloutData){var c=e.yAxisCalloutData;return s.createElement("div",{style:i},s.createElement("div",{className:"ms-fontWeight-semibold",style:{fontSize:"12pt"}},e.legend," (",u,")"),Object.keys(c).map((function(e){return s.createElement("div",{key:e,className:a.calloutBlockContainer},s.createElement("div",{className:a.calloutlegendText}," ",ic(e,l)),s.createElement("div",{className:a.calloutContentY},ic(c[e],l)))})))}return s.createElement("div",{style:n?i:{}},n&&s.createElement("div",{className:"ms-fontWeight-semibold",style:{fontSize:"12pt"}},e.legend," (",u,")"),s.createElement("div",{id:t+"_"+e.y,className:a.calloutBlockContainer},o&&s.createElement(Sd,{svgProps:{className:a.shapeStyles},pathProps:{fill:e.color},shape:Ju[e.index%Object.keys(nc).length]}),s.createElement("div",null,s.createElement("div",{className:a.calloutlegendText}," ",e.legend),s.createElement("div",{className:a.calloutContentY},ic(e.yAxisCalloutData?e.yAxisCalloutData:e.y||e.data,l)))))},t.prototype._fitParentContainer=function(){var e=this,t=this.state,n=t.containerWidth,r=t.containerHeight;this._reqID=requestAnimationFrame((function(){var t;if(e.props.hideLegend)t=0;else{var i=getComputedStyle(e.legendContainer);t=(e.legendContainer.getBoundingClientRect().height||e.minLegendContainerHeight)+parseFloat(i.marginTop||"0")+parseFloat(i.marginBottom||"0")}var o=e.props.parentRef?e.props.parentRef:e.chartContainer,a=o.getBoundingClientRect().width,s=o.getBoundingClientRect().height>t?o.getBoundingClientRect().height:350;(n!==a||r!==s-t)&&e.setState({containerWidth:a,containerHeight:s-t})}))},t}(s.Component),fh=function(){var e,t=c();return!!(null===(e=null==t?void 0:t.navigator)||void 0===e?void 0:e.userAgent)&&t.navigator.userAgent.indexOf("rv:11.0")>-1}(),gh=b(ph,(function(e){var t,n,r,o,a,s,l,u,c=e.className,d=e.theme,h=e.isRtl,p=e.shouldHighlight,f=e.href,g=e.lineColor,v=void 0===g?"transparent":g,m=e.toDrawShape,y=d.fonts;return{root:[d.fonts.medium,{display:"flex",width:"100%",height:"100%",flexDirection:"column",overflow:"hidden"},c],xAxis:{selectors:{text:[d.fonts.tiny,{fill:d.semanticColors.bodyText,fontWeight:"600",selectors:(t={},t[Fn]={fill:"rgb(179, 179, 179)"},t)}],line:{opacity:.2,stroke:d.semanticColors.bodyText,width:"1px",selectors:(n={},n[Fn]={opacity:.1,stroke:"rgb(179, 179, 179)"},n)},path:{display:"none"}}},yAxis:{selectors:{text:[d.fonts.tiny,{fill:d.semanticColors.bodyText,fontWeight:"600",selectors:(r={},r[Fn]={fill:"rgb(179, 179, 179)"},r)}],path:{display:"none"},line:{opacity:.2,stroke:d.semanticColors.bodyText,selectors:(o={},o[Fn]={opacity:.1,stroke:"rgb(179, 179, 179)"},o)},g:[h&&!fh&&{textAnchor:"end"}]}},opacityChangeOnHover:{opacity:p?"":"0.1",cursor:f?"pointer":"default"},legendContainer:[{marginTop:"8px",marginLeft:"20px"}],calloutContentRoot:[{display:"grid",overflow:"hidden",padding:"11px 16px 10px 16px",backgroundColor:d.semanticColors.bodyBackground,backgroundBlendMode:"normal, luminosity"}],calloutDateTimeContainer:{display:"flex",flexDirection:"row",justifyContent:"space-between"},calloutContentX:[i(i({},y.small),{lineHeight:"16px",opacity:"0.8",color:d.semanticColors.bodySubtext})],calloutBlockContainer:[d.fonts.mediumPlus,{marginTop:"13px",color:d.semanticColors.bodyText},!m&&{selectors:(a={},a[Pn]={forcedColorAdjust:"none"},a),borderLeft:"4px solid "+v,paddingLeft:"8px"},m&&{display:"flex"}],shapeStyles:{marginRight:"8px"},calloutlegendText:i(i({},y.small),{lineHeight:"16px",selectors:(s={},s[Fn]={color:"rgb(255, 255, 255)"},s),color:d.semanticColors.bodySubtext}),calloutContentY:[i(i({},y.mediumPlus),{fontWeight:"bold",lineHeight:"22px",selectors:(l={},l[Fn]={color:"rgb(255, 255, 255)"},l)})],descriptionMessage:[d.fonts.small,{selectors:(u={},u[Fn]={color:"rgb(255, 255, 255)"},u),color:d.semanticColors.bodyText,marginTop:"10px",paddingTop:"10px",borderTop:"1px solid "+d.semanticColors.menuDivider}]}})),vh=Yn((function(e){return Yn((function(t){var n=Yn((function(e){return function(n){return t(n,e)}}));return function(r,i){return e(r,i?n(i):t)}}))}));function mh(e,t){return vh(e)(t)}var yh={top:-1,bottom:-1,left:-1,right:-1,width:0,height:0},_h=function(e){return e.getBoundingClientRect()},xh=_h,bh=_h,Ch=function(e){function t(t){var n=e.call(this,t)||this;return n._root=s.createRef(),n._surface=s.createRef(),n._pageRefs={},n._getDerivedStateFromProps=function(e,t){return e.items!==n.props.items||e.renderCount!==n.props.renderCount||e.startIndex!==n.props.startIndex||e.version!==n.props.version?(n._resetRequiredWindows(),n._requiredRect=null,n._measureVersion++,n._invalidatePageCache(),n._updatePages(e,t)):t},n._onRenderRoot=function(e){var t=e.rootRef,n=e.surfaceElement,r=e.divProps;return s.createElement("div",i({ref:t},r),n)},n._onRenderSurface=function(e){var t=e.surfaceRef,n=e.pageElements,r=e.divProps;return s.createElement("div",i({ref:t},r),n)},n._onRenderPage=function(e,t){for(var r=n.props,a=r.onRenderCell,l=r.role,u=e.page,c=u.items,d=void 0===c?[]:c,h=u.startIndex,p=o(e,["page"]),f=void 0===l?"listitem":"presentation",g=[],v=0;v<d.length;v++){var m=h+v,y=d[v],_=n.props.getKey?n.props.getKey(y,m):y&&y.key;null==_&&(_=m),g.push(s.createElement("div",{role:f,className:"ms-List-cell",key:_,"data-list-index":m,"data-automationid":"ListCell"},a&&a(y,m,n.props.ignoreScrollingState?void 0:n.state.isScrolling)))}return s.createElement("div",i({},p),g)},hc(n),n.state={pages:[],isScrolling:!1,getDerivedStateFromProps:n._getDerivedStateFromProps},n._async=new Et(n),n._events=new Hc(n),n._estimatedPageHeight=0,n._totalEstimates=0,n._requiredWindowsAhead=0,n._requiredWindowsBehind=0,n._measureVersion=0,n._onAsyncScroll=n._async.debounce(n._onAsyncScroll,100,{leading:!1,maxWait:500}),n._onAsyncIdle=n._async.debounce(n._onAsyncIdle,200,{leading:!1}),n._onAsyncResize=n._async.debounce(n._onAsyncResize,16,{leading:!1}),n._onScrollingDone=n._async.debounce(n._onScrollingDone,500,{leading:!1}),n._cachedPageHeights={},n._estimatedPageHeight=0,n._focusedIndex=-1,n._pageCache={},n}return r(t,e),t.getDerivedStateFromProps=function(e,t){return t.getDerivedStateFromProps(e,t)},Object.defineProperty(t.prototype,"pageRefs",{get:function(){return this._pageRefs},enumerable:!1,configurable:!0}),t.prototype.scrollToIndex=function(e,t,n){void 0===n&&(n=0);for(var r=this.props.startIndex,i=r+this._getRenderCount(),o=this._allowedRect,a=0,s=1,l=r;l<i;l+=s){var u=this._getPageSpecification(l,o),c=u.height;if(s=u.itemCount,l<=e&&l+s>e){if(t&&this._scrollElement){for(var d=bh(this._scrollElement),h={top:this._scrollElement.scrollTop,bottom:this._scrollElement.scrollTop+d.height},p=e-l,f=0;f<p;++f)a+=t(l+f);var g=a+t(e);switch(n){case 1:return void(this._scrollElement.scrollTop=a);case 2:return void(this._scrollElement.scrollTop=g-d.height);case 3:return void(this._scrollElement.scrollTop=(a+g-d.height)/2)}if(a>=h.top&&g<=h.bottom)return;a<h.top||g>h.bottom&&(a=g-d.height)}return void(this._scrollElement&&(this._scrollElement.scrollTop=a))}a+=c}},t.prototype.getStartItemIndexInView=function(e){for(var t=0,n=this.state.pages||[];t<n.length;t++){var r=n[t];if(!r.isSpacer&&(this._scrollTop||0)>=r.top&&(this._scrollTop||0)<=r.top+r.height){if(!e){var i=Math.floor(r.height/r.itemCount);return r.startIndex+Math.floor((this._scrollTop-r.top)/i)}for(var o=0,a=r.startIndex;a<r.startIndex+r.itemCount;a++){if(i=e(a),r.top+o<=this._scrollTop&&this._scrollTop<r.top+o+i)return a;o+=i}}}return 0},t.prototype.componentDidMount=function(){this.setState(this._updatePages(this.props,this.state)),this._measureVersion++,this._scrollElement=Ke(this._root.current),this._events.on(window,"resize",this._onAsyncResize),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._onAsyncScroll))},t.prototype.componentDidUpdate=function(e,t){var n=this.props,r=this.state;this.state.pagesVersion!==t.pagesVersion&&(n.getPageHeight?this._onAsyncIdle():this._updatePageMeasurements(r.pages)?(this._materializedRect=null,this._hasCompletedFirstRender?this._onAsyncScroll():(this._hasCompletedFirstRender=!0,this.setState(this._updatePages(n,r)))):this._onAsyncIdle(),n.onPagesUpdated&&n.onPagesUpdated(r.pages))},t.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose(),delete this._scrollElement},t.prototype.shouldComponentUpdate=function(e,t){var n=this.state.pages,r=t.pages,i=!1;if(!t.isScrolling&&this.state.isScrolling)return!0;if(e.version!==this.props.version)return!0;if(e.className!==this.props.className)return!0;if(e.items===this.props.items&&n.length===r.length)for(var o=0;o<n.length;o++){var a=n[o],s=r[o];if(a.key!==s.key||a.itemCount!==s.itemCount){i=!0;break}}else i=!0;return i},t.prototype.forceUpdate=function(){this._invalidatePageCache(),this._updateRenderRects(this.props,this.state,!0),this.setState(this._updatePages(this.props,this.state)),this._measureVersion++,e.prototype.forceUpdate.call(this)},t.prototype.getTotalListHeight=function(){return this._surfaceRect.height},t.prototype.render=function(){for(var e=this.props,t=e.className,n=e.role,r=void 0===n?"list":n,o=e.onRenderSurface,a=e.onRenderRoot,s=this.state.pages,l=void 0===s?[]:s,u=[],c=ze(this.props,We),d=0,h=l;d<h.length;d++){var p=h[d];u.push(this._renderPage(p))}var f=o?mh(o,this._onRenderSurface):this._onRenderSurface;return(a?mh(a,this._onRenderRoot):this._onRenderRoot)({rootRef:this._root,pages:l,surfaceElement:f({surfaceRef:this._surface,pages:l,pageElements:u,divProps:{role:"presentation",className:"ms-List-surface"}}),divProps:i(i({},c),{className:Ue("ms-List",t),role:u.length>0?r:void 0,"aria-label":u.length>0?c["aria-label"]:void 0})})},t.prototype._shouldVirtualize=function(e){void 0===e&&(e=this.props);var t=e.onShouldVirtualize;return!t||t(e)},t.prototype._invalidatePageCache=function(){this._pageCache={}},t.prototype._renderPage=function(e){var t,n=this,r=this.props.usePageCache;if(r&&(t=this._pageCache[e.key])&&t.pageElement)return t.pageElement;var i=this._getPageStyle(e),o=this.props.onRenderPage,a=(void 0===o?this._onRenderPage:o)({page:e,className:"ms-List-page",key:e.key,ref:function(t){n._pageRefs[e.key]=t},style:i,role:"presentation"},this._onRenderPage);return r&&0===e.startIndex&&(this._pageCache[e.key]={page:e,pageElement:a}),a},t.prototype._getPageStyle=function(e){var t=this.props.getPageStyle;return i(i({},t?t(e):{}),e.items?{}:{height:e.height})},t.prototype._onFocus=function(e){for(var t=e.target;t!==this._surface.current;){var n=t.getAttribute("data-list-index");if(n){this._focusedIndex=Number(n);break}t=ye(t)}},t.prototype._onScroll=function(){this.state.isScrolling||this.props.ignoreScrollingState||this.setState({isScrolling:!0}),this._resetRequiredWindows(),this._onScrollingDone()},t.prototype._resetRequiredWindows=function(){this._requiredWindowsAhead=0,this._requiredWindowsBehind=0},t.prototype._onAsyncScroll=function(){var e,t;this._updateRenderRects(this.props,this.state),this._materializedRect&&(e=this._requiredRect,t=this._materializedRect,e.top>=t.top&&e.left>=t.left&&e.bottom<=t.bottom&&e.right<=t.right)||this.setState(this._updatePages(this.props,this.state))},t.prototype._onAsyncIdle=function(){var e=this.props,t=e.renderedWindowsAhead,n=e.renderedWindowsBehind,r=this._requiredWindowsAhead,i=this._requiredWindowsBehind,o=Math.min(t,r+1),a=Math.min(n,i+1);o===r&&a===i||(this._requiredWindowsAhead=o,this._requiredWindowsBehind=a,this._updateRenderRects(this.props,this.state),this.setState(this._updatePages(this.props,this.state))),(t>o||n>a)&&this._onAsyncIdle()},t.prototype._onScrollingDone=function(){this.props.ignoreScrollingState||this.setState({isScrolling:!1})},t.prototype._onAsyncResize=function(){this.forceUpdate()},t.prototype._updatePages=function(e,t){this._requiredRect||this._updateRenderRects(e,t);var n=this._buildPages(e,t),r=t.pages;return this._notifyPageChanges(r,n.pages,this.props),i(i(i({},t),n),{pagesVersion:{}})},t.prototype._notifyPageChanges=function(e,t,n){var r=n.onPageAdded,i=n.onPageRemoved;if(r||i){for(var o={},a=0,s=e;a<s.length;a++)(c=s[a]).items&&(o[c.startIndex]=c);for(var l=0,u=t;l<u.length;l++){var c;(c=u[l]).items&&(o[c.startIndex]?delete o[c.startIndex]:this._onPageAdded(c))}for(var d in o)o.hasOwnProperty(d)&&this._onPageRemoved(o[d])}},t.prototype._updatePageMeasurements=function(e){var t=!1;if(!this._shouldVirtualize())return t;for(var n=0;n<e.length;n++){var r=e[n];r.items&&(t=this._measurePage(r)||t)}return t},t.prototype._measurePage=function(e){var t=!1,n=this._pageRefs[e.key],r=this._cachedPageHeights[e.startIndex];if(n&&this._shouldVirtualize()&&(!r||r.measureVersion!==this._measureVersion)){var i={width:n.clientWidth,height:n.clientHeight};(i.height||i.width)&&(t=e.height!==i.height,e.height=i.height,this._cachedPageHeights[e.startIndex]={height:i.height,measureVersion:this._measureVersion},this._estimatedPageHeight=Math.round((this._estimatedPageHeight*this._totalEstimates+i.height)/(this._totalEstimates+1)),this._totalEstimates++)}return t},t.prototype._onPageAdded=function(e){var t=this.props.onPageAdded;t&&t(e)},t.prototype._onPageRemoved=function(e){var t=this.props.onPageRemoved;t&&t(e)},t.prototype._buildPages=function(e,t){var n=e.renderCount,r=e.items,o=e.startIndex,a=e.getPageHeight;n=this._getRenderCount(e);for(var s=i({},yh),l=[],u=1,c=0,d=null,h=this._focusedIndex,p=o+n,f=this._shouldVirtualize(e),g=0===this._estimatedPageHeight&&!a,v=this._allowedRect,m=function(e){var n=y._getPageSpecification(e,v),i=n.height,a=n.data,m=n.key;u=n.itemCount;var _,x,b=c+i-1,C=ge(t.pages,(function(t){return!!t.items&&t.startIndex===e}))>-1,S=!v||b>=v.top&&c<=v.bottom,E=!y._requiredRect||b>=y._requiredRect.top&&c<=y._requiredRect.bottom;if(!g&&(E||S&&C)||!f||h>=e&&h<e+u||e===o){d&&(l.push(d),d=null);var L=Math.min(u,p-e),k=y._createPage(m,r.slice(e,e+L),e,void 0,void 0,a);k.top=c,k.height=i,y._visibleRect&&y._visibleRect.bottom&&(k.isVisible=b>=y._visibleRect.top&&c<=y._visibleRect.bottom),l.push(k),E&&y._allowedRect&&(_=s,x={top:c,bottom:b,height:i,left:v.left,right:v.right,width:v.width},_.top=x.top<_.top||-1===_.top?x.top:_.top,_.left=x.left<_.left||-1===_.left?x.left:_.left,_.bottom=x.bottom>_.bottom||-1===_.bottom?x.bottom:_.bottom,_.right=x.right>_.right||-1===_.right?x.right:_.right,_.width=_.right-_.left+1,_.height=_.bottom-_.top+1)}else d||(d=y._createPage("spacer-"+e,void 0,e,0,void 0,a,!0)),d.height=(d.height||0)+(b-c)+1,d.itemCount+=u;if(c+=b-c+1,g&&f)return"break"},y=this,_=o;_<p&&"break"!==m(_);_+=u);return d&&(d.key="spacer-end",l.push(d)),this._materializedRect=s,i(i({},t),{pages:l,measureVersion:this._measureVersion})},t.prototype._getPageSpecification=function(e,t){var n=this.props.getPageSpecification;if(n){var r=n(e,t),i=r.itemCount,o=void 0===i?this._getItemCountForPage(e,t):i,a=r.height;return{itemCount:o,height:void 0===a?this._getPageHeight(e,t,o):a,data:r.data,key:r.key}}return{itemCount:o=this._getItemCountForPage(e,t),height:this._getPageHeight(e,t,o)}},t.prototype._getPageHeight=function(e,t,n){if(this.props.getPageHeight)return this.props.getPageHeight(e,t,n);var r=this._cachedPageHeights[e];return r?r.height:this._estimatedPageHeight||30},t.prototype._getItemCountForPage=function(e,t){return(this.props.getItemCountForPage?this.props.getItemCountForPage(e,t):10)||10},t.prototype._createPage=function(e,t,n,r,i,o,a){void 0===n&&(n=-1),void 0===r&&(r=t?t.length:0),void 0===i&&(i={}),e=e||"page-"+n;var s=this._pageCache[e];return s&&s.page?s.page:{key:e,startIndex:n,itemCount:r,items:t,style:i,top:0,height:0,data:o,isSpacer:a||!1}},t.prototype._getRenderCount=function(e){var t=e||this.props,n=t.items,r=t.startIndex,i=t.renderCount;return void 0===i?n?n.length-r:0:i},t.prototype._updateRenderRects=function(e,t,n){var r=e.renderedWindowsAhead,o=e.renderedWindowsBehind,a=t.pages;if(this._shouldVirtualize(e)){var s=this._surfaceRect||i({},yh),l=this._scrollElement&&this._scrollElement.scrollHeight,u=this._scrollElement?this._scrollElement.scrollTop:0;this._surface.current&&(n||!a||!this._surfaceRect||!l||l!==this._scrollHeight||Math.abs(this._scrollTop-u)>this._estimatedPageHeight/3)&&(s=this._surfaceRect=xh(this._surface.current),this._scrollTop=u),!n&&l&&l===this._scrollHeight||this._measureVersion++,this._scrollHeight=l||0;var d=Math.max(0,-s.top),h=c(this._root.current),p={top:d,left:s.left,bottom:d+h.innerHeight,right:s.right,width:s.width,height:h.innerHeight};this._requiredRect=Sh(p,this._requiredWindowsBehind,this._requiredWindowsAhead),this._allowedRect=Sh(p,o,r),this._visibleRect=p}},t.defaultProps={startIndex:0,onRenderCell:function(e,t,n){return s.createElement(s.Fragment,null,e&&e.name||"")},renderedWindowsAhead:2,renderedWindowsBehind:2},t}(s.Component);function Sh(e,t,n){var r=e.top-t*e.height,i=e.height+(t+n)*e.height;return{top:r,bottom:r+i,height:i,left:e.left,right:e.right,width:e.width}}var Eh,Lh=function(e){var t=s.useRef(null);s.useEffect((function(){if(t.current){var n=Bu(t.current),r=e.text.split(/\s+/),i=[],o=n.append("tspan"),a=0;return r.forEach((function(t){i.push(t),o.text(i.join(" "));var r=o.node();r&&r.getComputedTextLength()>e.width&&i.length>1&&(a++,i.pop(),o.text(i.join(" ")),i=[t],o=n.append("tspan").text(t).attr("dy",e.lineHeight).attr("x",e.x))})),n.attr("dy",-a*e.lineHeight),function(){n.selectAll("tspan").remove()}}})),e.lineHeight;var n=o(e,["lineHeight"]);return s.createElement("text",i({ref:t},n))},kh=function(e){var t,n=s.useRef(null),r=s.useState(!1),i=r[0],o=r[1],a=null;if(i){var l=e.labelDef.aggregatedIdx.map((function(t){return e.lineDefs[t].onRenderCard})).filter((function(e){return!!e}));l.length>0&&(a=s.createElement(gi,{target:n.current,onDismiss:function(){return o(!1)},setInitialFocus:!0,role:"dialog"},s.createElement(Pc,{isCircularNavigation:!0,direction:oc.vertical},s.createElement(Ch,{items:l,onRenderCell:function(e){return s.createElement("div",{"data-is-focusable":!0},e&&e())}}))))}var u=window.matchMedia("(prefers-color-scheme: dark)").matches?"rgb(255,255,255)":e.textColor;return t=1===e.labelDef.aggregatedIdx.length?e.lineDefs[e.labelDef.aggregatedIdx[0]].event:e.mergedLabel(e.labelDef.aggregatedIdx.length),s.createElement(s.Fragment,null,s.createElement("g",{ref:n,onClick:function(){return o(!0)},"data-is-focusable":!1,style:{cursor:"pointer"}},s.createElement(Lh,{text:t,x:e.labelDef.x,y:e.textY,width:e.textWidth,lineHeight:e.textLineHeight,textAnchor:e.labelDef.anchor,fontSize:e.textFontSize,fill:u})),a)},Ah=function(e){var t=e.labelWidth?e.labelWidth:105,n=e.chartYTop-20,r=n+7,o=e.scale.range(),a=e.events.map((function(t){return i(i({},t),{x:e.scale(t.date)})}));a.sort((function(e,t){return+e.date-+t.date}));var l=window.matchMedia("(prefers-color-scheme: dark)").matches?"rgb(255,255,255)":e.strokeColor,u=function(e,t){for(var n=[],r=[],i=0,o=e;i<o.length;i++){var a=o[i],s=t(a);-1===n.indexOf(s)&&(r.push(a),n.push(s))}return r}(a,(function(e){return e.date.toString()})).map((function(t,n){return s.createElement("line",{key:n,x1:t.x,x2:t.x,y1:r,y2:e.chartYBottom,stroke:l,strokeDasharray:"8"})})),c=function(e,t,n,r){var i=function(r,i){if(i===e.length)return[];var a=e[i].x,s=a-t;return a<r?[]:i===e.length-1?r<s?[{x:a,anchor:"end",aggregatedIdx:[i]}]:a+t<n?[{x:a,anchor:"start",aggregatedIdx:[i]}]:[]:o(i,r<s?"end":"start")},o=function(r,o){var a="end"===o?e[r].x:e[r].x+t,s=ge(e,(function(e){return e.x>a&&(e.x-t>=a||e.x+t<n)}),r+1);-1===s&&(s=e.length);for(var l=[],u=r;u<s;u++)l.push(u);var c=i(a,s);return c.unshift({x:e[r].x,anchor:o,aggregatedIdx:l}),c};return i(r,0)}(a,t+5,o[1],o[0]).map((function(r,o){return s.createElement(kh,i({key:o},{lineDefs:a,labelDef:r,textY:n,textWidth:t,textLineHeight:18,textFontSize:"10pt",textColor:e.labelColor,mergedLabel:e.mergedLabel}))}));return s.createElement(s.Fragment,null,u,c)},wh=le();!function(e){e[e.hoverSize=11]="hoverSize",e[e.invisibleSize=1]="invisibleSize"}(Eh||(Eh={}));var Dh=function(e){function t(t){var n=e.call(this,t)||this;return n._xAxisScale="",n._yAxisScale="",n.eventLabelHeight=36,n._injectIndexPropertyInLineChartData=function(e){var t=n.props.allowMultipleShapesForPoints,r=void 0!==t&&t;return e?e.map((function(e,t){return i(i({},e),{index:r?t:-1})})):[]},n._getCustomizedCallout=function(){return n.props.onRenderCalloutPerStack?n.props.onRenderCalloutPerStack(n.state.stackCalloutProps):n.props.onRenderCalloutPerDataPoint?n.props.onRenderCalloutPerDataPoint(n.state.dataPointCalloutProps):null},n._getMargins=function(e){n.margins=e},n._initializeLineChartData=function(e,t,r,i,o){n._xAxisScale=e,n._yAxisScale=t,n._renderedColorFillBars=n.props.colorFillBars?n._createColorFillBars(r):[],n.lines=n._createLines(o,r)},n._handleSingleLegendSelectionAction=function(e){n.state.selectedLegend===e.legend?(n.setState({selectedLegend:"",activeLegend:e.legend}),n._handleLegendClick(e,null)):(n.setState({selectedLegend:e.legend,activeLegend:e.legend}),n._handleLegendClick(e,e.legend))},n._onHoverCardHide=function(){n.setState({selectedLegendPoints:[],selectedColorBarLegend:[],isSelectedLegend:!1})},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},n._getBoxWidthOfShape=function(e,t,r){var i=n.props,o=i.allowMultipleShapesForPoints,a=void 0!==o&&o,s=i.strokeWidth,l=void 0===s?4:s,u=n.state.activePoint;return a?u===e?Eh.hoverSize:1===t||r?2.5*l:Eh.invisibleSize:u===e?Eh.hoverSize:Eh.invisibleSize},n._getPath=function(e,t,r,i,o,a){var s=n.props.allowMultipleShapesForPoints,l=void 0!==s&&s,u=n._getBoxWidthOfShape(r,i,o),c=l?a%Object.keys(nc).length:0,d=nc[c].widthRatio;return function(e,t,n,r){return["M"+(e-n/2)+" "+t+"\n A"+n/2+" "+n/2+" 0 1 0 "+(e+n/2)+" "+t+"\n M"+(e-n/2)+" "+t+"\n A "+n/2+" "+n/2+" 0 1 1 "+(e+n/2)+" "+t+"\n ","M"+(e-n/2)+" "+(t-n/2)+"\n L"+(e+n/2)+" "+(t-n/2)+"\n L"+(e+n/2)+" "+(t+n/2)+"\n L"+(e-n/2)+" "+(t+n/2)+"\n Z","M"+(e-n/2)+" "+(t-.2886*n)+"\n H "+(e+n/2)+"\n L"+e+" "+(t+.5774*n)+" Z","M"+e+" "+(t-n/2)+"\n L"+(e+n/2)+" "+t+"\n L"+e+" "+(t+n/2)+"\n L"+(e-n/2)+" "+t+"\n Z","M"+e+" "+(t-.5774*n)+"\n L"+(e+n/2)+" "+(t+.2886*n)+"\n L"+(e-n/2)+" "+(t+.2886*n)+" Z","M"+(e-.5*n)+" "+(t-.866*n)+"\n L"+(e+.5*n)+" "+(t-.866*n)+"\n L"+(e+n)+" "+t+"\n L"+(e+.5*n)+" "+(t+.866*n)+"\n L"+(e-.5*n)+" "+(t+.866*n)+"\n L"+(e-n)+" "+t+"\n Z","M"+e+" "+(t-.851*n)+"\n L"+(e+.6884*n)+" "+(t-.2633*n)+"\n L"+(e+.5001*n)+" "+(t+.6884*n)+"\n L"+(e-.5001*n)+" "+(t+.6884*n)+"\n L"+(e-.6884*n)+" "+(t-.2633*n)+"\n Z","M"+(e-.5001*n)+" "+(t-1.207*n)+"\n L"+(e+.5001*n)+" "+(t-1.207*n)+"\n L"+(e+1.207*n)+" "+(t-.5001*n)+"\n L"+(e+1.207*n)+" "+(t+.5001*n)+"\n L"+(e+.5001*n)+" "+(t+1.207*n)+"\n L"+(e-.5001*n)+" "+(t+1.207*n)+"\n L"+(e-1.207*n)+" "+(t+.5001*n)+"\n L"+(e-1.207*n)+" "+(t-.5001*n)+"\n Z"][r]}(e,t,u=d>1?u/d:u,c)},n._getPointFill=function(e,t,r,i){var o=n.state.activePoint,a=n.props,s=a.theme;return a.allowMultipleShapesForPoints,o===t?s.palette.white:e},n._createColorFillBars=function(e){var t=[];n.state.isSelectedLegend?n._colorFillBars=n.state.selectedColorBarLegend:n._colorFillBars=n.props.colorFillBars;for(var r=Qu(n._points,zu.LineChart),i=0;i<n._colorFillBars.length;i++){var o=n._colorFillBars[i],a=pe(o.legend.replace(/\W/g,""));o.applyPattern&&t.push(n._getStripePattern(o.color,i));for(var l=0;l<o.data.length;l++){var u=o.data[l].startX,c=o.data[l].endX,d=n.state.activeLegend===o.legend||""===n.state.activeLegend||n.state.isSelectedLegend?n._colorFillBarsOpacity:.1;t.push(s.createElement("rect",{fill:o.applyPattern?"url(#"+n._colorFillBarPatternId+i+")":o.color,fillOpacity:d,x:n._xAxisScale(u),y:n._yAxisScale(r.endValue)-3,width:Math.abs(n._xAxisScale(c)-n._xAxisScale(u)),height:n._yAxisScale(n.props.yMinValue||0)-n._yAxisScale(r.endValue)+3,key:""+a+l}))}}return t},n._getStripePattern=function(e,t){return s.createElement("pattern",{id:""+n._colorFillBarPatternId+t,width:16,height:16,key:""+n._colorFillBarPatternId+t,patternUnits:"userSpaceOnUse"},s.createElement("path",{d:"M-4,4 l8,-8 M0,16 l16,-16 M12,20 l8,-8",stroke:e,strokeWidth:1.25}))},n._checkInGap=function(e,t,n){for(var r=n,i=!1;r<t.length&&e>t[r].endIndex;)r++;return r<t.length&&e>t[r].startIndex&&e<=t[r].endIndex&&(i=!0),{isInGap:i,gapIndex:r}},n._handleFocus=function(e,t,r,i,o){n._uniqueCallOutID=i;var a=t instanceof Date?t.toLocaleDateString():t,s=t instanceof Date?t.getTime():t,l=ve(n._calloutPoints,(function(e){return e.x===s}));if(l){var u=n;Bu("#"+i).attr("aria-labelledby","toolTip"+n._uniqueCallOutID),Bu("#"+n._verticalLine).attr("transform",(function(){return"translate("+u._xAxisScale(t)+", 0)"})).attr("visibility","visibility"),n._refArray.forEach((function(t){t.index===e&&n.setState({isCalloutVisible:!0,refSelected:t.refElement,hoverXValue:r||""+a,YValueHover:l.values,stackCalloutProps:l,dataPointCalloutProps:l,activePoint:i,xAxisCalloutAccessibilityData:o})}))}else n.setState({activePoint:i})},n._handleHover=function(e,t,r,i,o,a,s){s.persist();var l=e instanceof Date?e.toLocaleDateString():e,u=e instanceof Date?e.getTime():e,c=n,d=ve(n._calloutPoints,(function(e){return e.x===u}));d?(Bu("#"+n._verticalLine).attr("transform",(function(){return"translate("+c._xAxisScale(e)+", "+c._yAxisScale(t)+")"})).attr("visibility","visibility").attr("y2",""+(r-c._yAxisScale(t))),n._uniqueCallOutID!==o&&(n._uniqueCallOutID=o,n.setState({isCalloutVisible:!0,refSelected:"#"+o,hoverXValue:i||""+l,YValueHover:d.values,stackCalloutProps:d,dataPointCalloutProps:d,activePoint:o,xAxisCalloutAccessibilityData:a}))):n.setState({activePoint:o})},n._onLineClick=function(e){e&&e()},n._onDataPointClick=function(e){e&&e()},n._handleMouseOut=function(){Bu("#"+n._verticalLine).attr("visibility","hidden")},n._handleChartMouseLeave=function(){n._uniqueCallOutID=null,n.setState({isCalloutVisible:!1,activePoint:""})},n._handleLegendClick=function(e,t){e.onLegendClick&&e.onLegendClick(t)},n._handleMultipleLineLegendSelectionAction=function(e){var t,r=n.state.selectedLegendPoints.reduce((function(t,n,r){return t>-1||n.legend!==e.legend?t:r}),-1);t=-1===r?a(a([],n.state.selectedLegendPoints),[e]):n.state.selectedLegendPoints.slice(0,r).concat(n.state.selectedLegendPoints.slice(r+1)),n.props.data&&t.length===n.props.data.lineChartData.length&&(n.props.colorFillBars&&n.props.colorFillBars.length===n.state.selectedColorBarLegend.length||!n.props.colorFillBars)?n._clearMultipleLegendSelections():t.length||n.state.selectedColorBarLegend.length?n.setState({selectedLegendPoints:t,isSelectedLegend:!0}):n._clearMultipleLegendSelections();var i=t.map((function(e){return e.legend}));n._handleLegendClick(e,i)},n._handleMultipleColorFillBarLegendSelectionAction=function(e){var t,r=n.state.selectedColorBarLegend.reduce((function(t,n,r){return t>-1||n.legend!==e.legend?t:r}),-1);(t=-1===r?a(a([],n.state.selectedColorBarLegend),[e]):n.state.selectedColorBarLegend.slice(0,r).concat(n.state.selectedColorBarLegend.slice(r+1))).length===(n.props.colorFillBars&&n.props.colorFillBars.length)&&(n.props.data&&n.props.data.lineChartData.length===n.state.selectedLegendPoints.length||!n.props.data)?n._clearMultipleLegendSelections():t.length||n.state.selectedLegendPoints.length?n.setState({selectedColorBarLegend:t,isSelectedLegend:!0}):n._clearMultipleLegendSelections();var i=t.map((function(e){return e.legend}));n._handleLegendClick(e,i)},n._clearMultipleLegendSelections=function(){n.setState({selectedColorBarLegend:[],selectedLegendPoints:[],isSelectedLegend:!1})},n.state={hoverXValue:"",activeLegend:"",YValueHover:[],refSelected:"",selectedLegend:"",isCalloutVisible:!1,selectedLegendPoints:[],selectedColorBarLegend:[],isSelectedLegend:!1,activePoint:""},n._refArray=[],n._points=n._injectIndexPropertyInLineChartData(n.props.data.lineChartData),n._colorFillBars=[],n._colorFillBarsOpacity=.5,n._calloutPoints=Ku(n._points)||[],n._circleId=pe("circle"),n._lineId=pe("lineID"),n._borderId=pe("borderID"),n._verticalLine=pe("verticalLine"),n._colorFillBarPatternId=pe("colorFillBarPattern"),n._tooltipId=pe("LineChartTooltipId_"),t.eventAnnotationProps&&t.eventAnnotationProps.labelHeight&&(n.eventLabelHeight=t.eventAnnotationProps.labelHeight),n}return r(t,e),t.prototype.componentDidUpdate=function(e){e.height===this.props.height&&e.width===this.props.width&&e.data===this.props.data||(this._points=this._injectIndexPropertyInLineChartData(this.props.data.lineChartData),this._calloutPoints=Ku(this._points)||[])},t.prototype.render=function(){var e=this,t=this.props,n=t.tickValues,r=t.tickFormat,o=t.eventAnnotationProps,a=t.legendProps,l=t.data;this._points=this._injectIndexPropertyInLineChartData(l.lineChartData);var u=Gu(this._points),c=this._points;a&&a.canSelectMultipleLegends&&(c=this.state.selectedLegendPoints.length>=1?this.state.selectedLegendPoints:this._points,this._calloutPoints=Ku(c));var d=this._createLegends(this._points),h=i({isCalloutVisible:this.state.isCalloutVisible,directionalHint:3,YValueHover:this.state.YValueHover,hoverXValue:this.state.hoverXValue,id:"toolTip"+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),p={tickValues:n,tickFormat:r};return s.createElement(gh,i({},this.props,{chartTitle:l.chartTitle,points:c,chartType:zu.LineChart,isCalloutForStack:!0,calloutProps:h,tickParams:p,legendBars:d,getmargins:this._getMargins,getGraphData:this._initializeLineChartData,xAxisType:u?Uu.DateAxis:Uu.NumericAxis,customizedCallout:this._getCustomizedCallout(),onChartMouseLeave:this._handleChartMouseLeave,children:function(t){return e._xAxisScale=t.xScale,e._yAxisScale=t.yScale,s.createElement(s.Fragment,null,s.createElement("g",null,s.createElement("line",{x1:0,y1:0,x2:0,y2:t.containerHeight,stroke:"#C8C8C8",id:e._verticalLine,visibility:"hidden",strokeDasharray:"5,5"}),s.createElement("g",null,e._renderedColorFillBars,e.lines),o&&s.createElement(Ah,i({},o,{scale:t.xScale,chartYTop:e.margins.top+e.eventLabelHeight,chartYBottom:t.containerHeight-35}))))}}))},t.prototype._createLegends=function(e){var t=this,n=this.props,r=n.legendProps,o=n.allowMultipleShapesForPoints,l=void 0!==o&&o,u=!(!r||!r.canSelectMultipleLegends),c=e.map((function(e){var n=e.color;return i(i({title:e.legend,color:n,action:function(){u?t._handleMultipleLineLegendSelectionAction(e):t._handleSingleLegendSelectionAction(e)},onMouseOutAction:function(){t.setState({activeLegend:""})},hoverAction:function(){t.setState({activeLegend:e.legend})}},e.legendShape&&{shape:e.legendShape}),l&&{shape:Ju[e.index%Object.keys(nc).length]})})),d=this.props.colorFillBars?this.props.colorFillBars.map((function(e,n){var r=e.legend;return{title:r,color:e.color,action:function(){u?t._handleMultipleColorFillBarLegendSelectionAction(e):t._handleSingleLegendSelectionAction(e)},onMouseOutAction:function(){t.setState({activeLegend:""})},hoverAction:function(){t.setState({activeLegend:r})},opacity:t._colorFillBarsOpacity,stripePattern:e.applyPattern}})):[];return s.createElement(kd,i({legends:a(a([],c),d),enabledWrapLines:this.props.enabledLegendsWrapLines,overflowProps:this.props.legendsOverflowProps,focusZonePropsInHoverCard:this.props.focusZonePropsForLegendsInHoverCard,overflowText:this.props.legendsOverflowText},u&&{onLegendHoverCardLeave:this._onHoverCardHide},this.props.legendProps))},t.prototype._createLines=function(e,t){var n,r,i,o,l,u,c,d,h,p,f,g,v,m,y,_=this,x=[];this.state.isSelectedLegend?this._points=this.state.selectedLegendPoints:this._points=this._injectIndexPropertyInLineChartData(this.props.data.lineChartData);for(var b=0;b<this._points.length;b++){var C=[],S=[],E=[],L=this._points[b].legend,k=this._points[b].color,A=this.state.activePoint,w=this.props.theme,D=t-this.margins.bottom+6;if(1===this._points[b].data.length){var T=this._points[b].data[0],M=T.x,P=T.y,F=T.xAxisCalloutData,I=T.xAxisCalloutAccessibilityData,O=""+this._circleId+b;E.push(s.createElement("circle",{id:""+this._circleId+b,key:""+this._circleId+b,r:A===O?5.5:3.5,cx:this._xAxisScale(M),cy:this._yAxisScale(P),fill:A===O?w.palette.white:k,onMouseOver:this._handleHover.bind(this,M,P,D,F,O,I),onMouseMove:this._handleHover.bind(this,M,P,D,F,O,I),onMouseOut:this._handleMouseOut,strokeWidth:A===O?4:0,stroke:A===O?k:""}))}for(var N=0,H=null!==(r=null===(n=this._points[b].gaps)||void 0===n?void 0:n.sort((function(e,t){return e.startIndex-t.startIndex})))&&void 0!==r?r:[],R=function(e){var t=V._checkInGap(e,H,N),n=t.isInGap;N=t.gapIndex;var r=""+V._lineId+b+e,a=""+V._borderId+b+e,x=""+V._circleId+b+e,T=V._points[b].data[e-1],M=T.x,P=T.y,F=T.xAxisCalloutData,I=T.xAxisCalloutAccessibilityData,O=V._points[b].data[e],R=O.x,B=O.y,W=V._getPath(V._xAxisScale(M),V._yAxisScale(P),x,e,!1,V._points[b].index),z=(null===(i=V._points[b].lineOptions)||void 0===i?void 0:i.strokeWidth)||V.props.strokeWidth||4,U=V.state.activeLegend===L||""===V.state.activeLegend||V.state.isSelectedLegend,j=V._points[b].hideNonActiveDots&&A!==x;if(E.push(s.createElement("path",{id:x,key:x,d:W,"data-is-focusable":!0,onMouseOver:V._handleHover.bind(V,M,P,D,F,x,I),onMouseMove:V._handleHover.bind(V,M,P,D,F,x,I),onMouseOut:V._handleMouseOut,onFocus:function(){return _._handleFocus(r,M,F,x,I)},onBlur:V._handleMouseOut,onClick:V._onDataPointClick.bind(V,V._points[b].data[e-1].onDataPointClick),opacity:U&&!j?1:.01,fill:V._getPointFill(k,x,e,!1),stroke:k,strokeWidth:z})),e+1===V._points[b].data.length){var Y=""+x+e+"L",X=V._points[b].hideNonActiveDots&&A!==Y;W=V._getPath(V._xAxisScale(R),V._yAxisScale(B),Y,e,!0,V._points[b].index);var q=V._points[b].data[e],K=q.xAxisCalloutData,Z=q.xAxisCalloutAccessibilityData;E.push(s.createElement("path",{id:Y,key:Y,d:W,"data-is-focusable":!0,onMouseOver:V._handleHover.bind(V,R,B,D,K,Y,Z),onMouseMove:V._handleHover.bind(V,R,B,D,K,Y,Z),onMouseOut:V._handleMouseOut,onFocus:function(){return _._handleFocus(r,R,K,Y,Z)},onBlur:V._handleMouseOut,onClick:V._onDataPointClick.bind(V,V._points[b].data[e].onDataPointClick),opacity:U&&!X?1:.01,fill:V._getPointFill(k,Y,e,!0),stroke:k,strokeWidth:z}))}if(U){if(!n){var G=(null===(o=V._points[b].lineOptions)||void 0===o?void 0:o.lineBorderWidth)?Number.parseFloat(V._points[b].lineOptions.lineBorderWidth.toString()):0;G>0&&S.push(s.createElement("line",{id:a,key:a,x1:V._xAxisScale(M),y1:V._yAxisScale(P),x2:V._xAxisScale(R),y2:V._yAxisScale(B),strokeLinecap:null!==(u=null===(l=V._points[b].lineOptions)||void 0===l?void 0:l.strokeLinecap)&&void 0!==u?u:"round",strokeWidth:Number.parseFloat(z.toString())+G,stroke:(null===(c=V._points[b].lineOptions)||void 0===c?void 0:c.lineBorderColor)||w.palette.white,opacity:1})),C.push(s.createElement("line",{id:r,key:r,x1:V._xAxisScale(M),y1:V._yAxisScale(P),x2:V._xAxisScale(R),y2:V._yAxisScale(B),strokeWidth:z,ref:function(e){_._refCallback(e,r)},onMouseOver:V._handleHover.bind(V,M,P,D,F,x,I),onMouseMove:V._handleHover.bind(V,M,P,D,F,x,I),onMouseOut:V._handleMouseOut,stroke:k,strokeLinecap:null!==(h=null===(d=V._points[b].lineOptions)||void 0===d?void 0:d.strokeLinecap)&&void 0!==h?h:"round",strokeDasharray:null===(p=V._points[b].lineOptions)||void 0===p?void 0:p.strokeDasharray,strokeDashoffset:null===(f=V._points[b].lineOptions)||void 0===f?void 0:f.strokeDashoffset,opacity:1,onClick:V._onLineClick.bind(V,V._points[b].onLineClick)}))}}else n||C.push(s.createElement("line",{id:r,key:r,x1:V._xAxisScale(M),y1:V._yAxisScale(P),x2:V._xAxisScale(R),y2:V._yAxisScale(B),strokeWidth:z,stroke:k,strokeLinecap:null!==(v=null===(g=V._points[b].lineOptions)||void 0===g?void 0:g.strokeLinecap)&&void 0!==v?v:"round",strokeDasharray:null===(m=V._points[b].lineOptions)||void 0===m?void 0:m.strokeDasharray,strokeDashoffset:null===(y=V._points[b].lineOptions)||void 0===y?void 0:y.strokeDashoffset,opacity:.1}))},V=this,B=1;B<this._points[b].data.length;B++)R(B);x.push.apply(x,a(a(a([],S),C),E))}var W=wh(this.props.styles,{theme:this.props.theme});if(!this.props.showXAxisLablesTooltip)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(e){}if(!this.props.wrapXAxisLables&&this.props.showXAxisLablesTooltip){var z=Bu(e).call(this._xAxisScale);try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(e){}var U={tooltipCls:W.tooltip,id:this._tooltipId,xAxis:z};z&&Zu(U)}return x},t.prototype._refCallback=function(e,t){this._refArray.push({index:t,refElement:e})},t}(s.Component),Th=b(Dh,(function(e){return{tooltip:i(i({},e.theme.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:e.theme.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"})}})),Mh=Array.prototype.slice;function Ph(e,t){if((i=e.length)>1)for(var n,r,i,o=1,a=e[t[0]],s=a.length;o<i;++o)for(r=a,a=e[t[o]],n=0;n<s;++n)a[n][1]+=a[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]}function Fh(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function Ih(e,t){return e[t]}function Oh(e){this._context=e}function Nh(e){return new Oh(e)}function Hh(e){return e[0]}function Rh(e){return e[1]}function Vh(){var e=Hh,t=Rh,n=Ad(!0),r=null,i=Nh,o=null;function a(a){var s,l,u,c=a.length,d=!1;for(null==r&&(o=i(u=Gd())),s=0;s<=c;++s)!(s<c&&n(l=a[s],s,a))===d&&((d=!d)?o.lineStart():o.lineEnd()),d&&o.point(+e(l,s,a),+t(l,s,a));if(u)return o=null,u+""||null}return a.x=function(t){return arguments.length?(e="function"==typeof t?t:Ad(+t),a):e},a.y=function(e){return arguments.length?(t="function"==typeof e?e:Ad(+e),a):t},a.defined=function(e){return arguments.length?(n="function"==typeof e?e:Ad(!!e),a):n},a.curve=function(e){return arguments.length?(i=e,null!=r&&(o=i(r)),a):i},a.context=function(e){return arguments.length?(null==e?r=o=null:o=i(r=e),a):r},a}function Bh(e){return e<0?-1:1}function Wh(e,t,n){var r=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(r||i<0&&-0),a=(n-e._y1)/(i||r<0&&-0),s=(o*i+a*r)/(r+i);return(Bh(o)+Bh(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function zh(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Uh(e,t,n){var r=e._x0,i=e._y0,o=e._x1,a=e._y1,s=(o-r)/3;e._context.bezierCurveTo(r+s,i+s*t,o-s,a-s*n,o,a)}function jh(e){this._context=e}function Yh(e){this._context=e}function Xh(e){return new jh(e)}Oh.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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}},jh.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:Uh(this,this._t0,zh(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(t=+t,(e=+e)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Uh(this,zh(this,n=Wh(this,e,t)),n);break;default:Uh(this,this._t0,n=Wh(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(function(e){this._context=new Yh(e)}.prototype=Object.create(jh.prototype)).point=function(e,t){jh.prototype.point.call(this,t,e)},Yh.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,o){this._context.bezierCurveTo(t,e,r,n,o,i)}};var qh,Kh=le(),Zh=Di((function(e){return e.x})).left;!function(e){e.show="visibility",e.hide="hidden"}(qh||(qh={}));var Gh=function(e){function t(t){var n=e.call(this,t)||this;return n._getMargins=function(e){n.margins=e},n._onRectMouseMove=function(e){e.persist();var t=n.props.data.lineChartData,r=n._xAxisRectScale.invert(function(e,t){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=t.clientX,r.y=t.clientY,[(r=r.matrixTransform(e.getScreenCTM().inverse())).x,r.y]}var i=e.getBoundingClientRect();return[t.clientX-i.left-e.clientLeft,t.clientY-i.top-e.clientTop]}(document.getElementById(n._rectId),e)[0]),i=Zh(t[0].data,r),o=t[0].data[i-1],a=t[0].data[i],s=null,l=null,u=null;if(void 0===o&&void 0!==a)l=a.x,u=i;else if(void 0!==o&&void 0===a)l=o.x,u=i-1;else{var c=void 0,d=void 0,h=void 0;switch(s=tc(t[0].data[0].x,!0)){case Uu.DateAxis:c=new Date(r).getTime(),d=o.x.getTime(),h=a.x.getTime(),l=Math.abs(c-d)>Math.abs(c-h)?a.x:o.x,u=Math.abs(c-d)>Math.abs(c-h)?i:i-1;break;case Uu.NumericAxis:c=r,d=o.x,h=a.x,l=Math.abs(c-d)>Math.abs(c-h)?a.x:o.x,u=Math.abs(c-d)>Math.abs(c-h)?i:i-1}}var p=t[0].data[u],f=p.xAxisCalloutData,g=p.xAxisCalloutAccessibilityData,v=l instanceof Date?l.toLocaleString():l,m=l instanceof Date?l.getTime():l,y=ve(n._calloutPoints,(function(e){return e.x===m})),_=s===Uu.DateAxis?l.getTime():l,x=n.state.nearestCircleToHighlight!==_;y&&x&&!n.state.isShowCalloutPending&&n.setState({nearestCircleToHighlight:_,isCalloutVisible:!1,isShowCalloutPending:!0,lineXValue:n._xAxisRectScale(l),displayOfLine:qh.show,isCircleClicked:!1,stackCalloutProps:y,YValueHover:y.values,dataPointCalloutProps:y,hoverXValue:f||v,xAxisCalloutAccessibilityData:g}),y||n.setState({isCalloutVisible:!1,nearestCircleToHighlight:_,displayOfLine:qh.hide,isCircleClicked:!1})},n._onRectMouseOut=function(){},n._handleChartMouseLeave=function(){n.setState({refSelected:null,isCalloutVisible:!1,nearestCircleToHighlight:null,lineXValue:0,displayOfLine:qh.hide,isCircleClicked:!1,stackCalloutProps:void 0,dataPointCalloutProps:void 0,hoverXValue:void 0,YValueHover:[]})},n._getStackedData=function(e,t){var r=function(){var e=Ad([]),t=Fh,n=Ph,r=Ih;function i(i){var o,a,s=e.apply(this,arguments),l=i.length,u=s.length,c=new Array(u);for(o=0;o<u;++o){for(var d,h=s[o],p=c[o]=new Array(l),f=0;f<l;++f)p[f]=d=[0,+r(i[f],h,f,i)],d.data=i[f];p.key=h}for(o=0,a=t(c);o<u;++o)c[a[o]].index=o;return n(c,a),c}return i.keys=function(t){return arguments.length?(e="function"==typeof t?t:Ad(Mh.call(t)),i):e},i.value=function(e){return arguments.length?(r="function"==typeof e?e:Ad(+e),i):r},i.order=function(e){return arguments.length?(t=null==e?Fh:"function"==typeof e?e:Ad(Mh.call(e)),i):t},i.offset=function(e){return arguments.length?(n=null==e?Ph:e,i):n},i}().keys(e)(t),i=Vi(r[r.length-1],(function(e){return e[1]})),o=[];return r.forEach((function(e){var t=[];e.forEach((function(e){t.push({values:e,xVal:e.data.xVal})})),o.push(t)})),n._isMultiStackChart=!!(o&&o.length>1),{stackedData:o,maxOfYVal:i}},n._createDataSet=function(e){var t=[],r=[],i=[],o=[],a=Ku(e);e&&e.length&&e.forEach((function(e){i.push(e.color),o.push(e.opacity||1),t.push.apply(t,e.data)}));for(var s=t,l=function(){var e=s[0].x instanceof Date?s[0].x.toLocaleString():s[0].x,t=s.filter((function(t){return(t.x instanceof Date?t.x.toLocaleString():t.x)===e})),n={};t.forEach((function(e,t){n.xVal=e.x,n["chart"+t]=e.y})),r.push(n);var i=s[0].x instanceof Date?s[0].x.toLocaleString():s[0].x;s=s.filter((function(e){return(e.x instanceof Date?e.x.toLocaleString():e.x)!==i}))};s.length;)l();for(var u=r&&Object.keys(r[0]).length,c=[],d=0;d<u-1;d++){var h="chart"+d;c.push(h)}var p=n._getStackedData(c,r);return{colors:i,opacity:o,keys:c,stackedInfo:p,calloutPoints:a}},n._getCustomizedCallout=function(){return n.props.onRenderCalloutPerStack?n.props.onRenderCalloutPerStack(n.state.stackCalloutProps):n.props.onRenderCalloutPerDataPoint?n.props.onRenderCalloutPerDataPoint(n.state.dataPointCalloutProps):null},n._getGraphData=function(e,t,r,i,o){n._chart=n._drawGraph(r,e,t,o)},n._getLegendData=function(e,t){var r=t,o=[e.blueLight,e.blue,e.blueMid,e.red,e.black],a=[];return r.forEach((function(e){var t=e.color?e.color:o[Math.floor(4*Math.random()+1)];if(!(a.filter((function(n){return n.title===e.legend&&n.color===t})).length>0)){var r={title:e.legend,color:t,action:function(){n._onLegendClick(e.legend)},hoverAction:function(){n._onLegendHover(e.legend)},onMouseOutAction:function(e){n._onLegendLeave(e)}};a.push(r)}})),s.createElement(kd,i({legends:a,overflowProps:n.props.legendsOverflowProps,enabledWrapLines:n.props.enabledLegendsWrapLines,focusZonePropsInHoverCard:n.props.focusZonePropsForLegendsInHoverCard},n.props.legendProps))},n._onDataPointClick=function(e){e&&e(),n.setState({isCircleClicked:!0})},n._getOpacity=function(e){if(n._isMultiStackChart){var t=.7;return(n.state.isLegendHovered||n.state.isLegendSelected)&&(t=n.state.activeLegend===e?.7:.1),t}return.7},n._getLineOpacity=function(e){if(n._isMultiStackChart){var t=.3;return n.state.isCalloutVisible&&(t=1),(n.state.isLegendHovered||n.state.isLegendSelected)&&(t=n.state.activeLegend===e?0:.1),t}return 1},n._updateCircleFillColor=function(e,t,r){var i=t;return n.state.nearestCircleToHighlight===e&&(n.state.isShowCalloutPending&&n.setState({refSelected:"#"+r,isCalloutVisible:!0,isShowCalloutPending:!1}),n.state.isCircleClicked||(i=n.props.theme.palette.white)),i},n._drawGraph=function(e,t,r,o){var a,l=n.props.data.lineChartData,u=n.props.data,c=u.pointOptions,d=u.pointLineOptions,h=function(){var e=Hh,t=null,n=Ad(0),r=Rh,i=Ad(!0),o=null,a=Nh,s=null;function l(l){var u,c,d,h,p,f=l.length,g=!1,v=new Array(f),m=new Array(f);for(null==o&&(s=a(p=Gd())),u=0;u<=f;++u){if(!(u<f&&i(h=l[u],u,l))===g)if(g=!g)c=u,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),d=u-1;d>=c;--d)s.point(v[d],m[d]);s.lineEnd(),s.areaEnd()}g&&(v[u]=+e(h,u,l),m[u]=+n(h,u,l),s.point(t?+t(h,u,l):v[u],r?+r(h,u,l):m[u]))}if(p)return s=null,p+""||null}function u(){return Vh().defined(i).curve(a).context(o)}return l.x=function(n){return arguments.length?(e="function"==typeof n?n:Ad(+n),t=null,l):e},l.x0=function(t){return arguments.length?(e="function"==typeof t?t:Ad(+t),l):e},l.x1=function(e){return arguments.length?(t=null==e?null:"function"==typeof e?e:Ad(+e),l):t},l.y=function(e){return arguments.length?(n="function"==typeof e?e:Ad(+e),r=null,l):n},l.y0=function(e){return arguments.length?(n="function"==typeof e?e:Ad(+e),l):n},l.y1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:Ad(+e),l):r},l.lineX0=l.lineY0=function(){return u().x(e).y(n)},l.lineY1=function(){return u().x(e).y(r)},l.lineX1=function(){return u().x(t).y(n)},l.defined=function(e){return arguments.length?(i="function"==typeof e?e:Ad(!!e),l):i},l.curve=function(e){return arguments.length?(a=e,null!=o&&(s=a(o)),l):a},l.context=function(e){return arguments.length?(null==e?o=s=null:s=a(o=e),l):o},l}().x((function(e){return t(e.xVal)})).y0((function(e){return r(e.values[0])})).y1((function(e){return r(e.values[1])})).curve(Xh),p=Vh().x((function(e){return t(e.xVal)})).y((function(e){return r(e.values[1])})).curve(Xh),f=[];n._stackedData.forEach((function(e,t){f.push(s.createElement(s.Fragment,{key:t+"-graph-"+n._uniqueIdForGraph},s.createElement("path",i({id:t+"-line-"+n._uniqueIdForGraph,d:p(e),fill:"transparent",strokeWidth:3,stroke:n._colors[t],opacity:n._getLineOpacity(l[t].legend),onMouseMove:n._onRectMouseMove,onMouseOut:n._onRectMouseOut,onMouseOver:n._onRectMouseMove},l[t].lineOptions)),s.createElement("path",{id:t+"-graph-"+n._uniqueIdForGraph,d:h(e),fill:n._colors[t],opacity:n._opacity[t],fillOpacity:n._getOpacity(l[t].legend),onMouseMove:n._onRectMouseMove,onMouseOut:n._onRectMouseOut,onMouseOver:n._onRectMouseMove})))}));var g=c&&c.r?Number(c.r):8;n._stackedData.forEach((function(e,o){l.length!==o&&f.push(s.createElement("g",{key:o+"-dots-"+n._uniqueIdForGraph,d:h(e),clipPath:"url(#clip)"},e.map((function(e,u){var d=n._circleId+"_"+(o*n._stackedData[0].length+u),h=e.xVal instanceof Date?e.xVal.getTime():e.xVal;return a=l[o].color,s.createElement("circle",i({key:d,id:d,"data-is-focusable":!0,cx:t(e.xVal),cy:r(e.values[1]),stroke:a,strokeWidth:3,visibility:n.state.nearestCircleToHighlight?"visibility":"hidden",fill:n._updateCircleFillColor(h,a,d),onMouseOut:n._onRectMouseOut,onMouseOver:n._onRectMouseMove,onClick:n._onDataPointClick.bind(n,l[o].data[u].onDataPointClick)},c,{r:n._getCircleRadius(h,g)}))}))))})),f.push(s.createElement("line",i({id:n._verticalLineId,key:n._verticalLineId,x1:n.state.lineXValue,y1:0,x2:n.state.lineXValue,y2:e,strokeWidth:1,strokeDasharray:5.5,stroke:a,opacity:.5,visibility:n.state.displayOfLine},d)));var v=Kh(n.props.styles,{theme:n.props.theme});if(!n.props.showXAxisLablesTooltip)try{document.getElementById(n._tooltipId)&&document.getElementById(n._tooltipId).remove()}catch(e){}if(!n.props.wrapXAxisLables&&n.props.showXAxisLablesTooltip){var m=Bu(o).call(t);try{document.getElementById(n._tooltipId)&&document.getElementById(n._tooltipId).remove()}catch(e){}var y={tooltipCls:v.tooltip,id:n._tooltipId,xAxis:m};m&&Zu(y)}return f},n._getCircleRadius=function(e,t){var r=n.state,i=r.isCircleClicked,o=r.nearestCircleToHighlight;return i&&o===e?1:o===e?t:0},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},n._createSet=jn((function(e){return n._createDataSet(e.lineChartData)})),n.state={activeLegend:"",hoverXValue:"",isCalloutVisible:!1,isLegendSelected:!1,isLegendHovered:!1,refSelected:null,YValueHover:[],lineXValue:0,displayOfLine:qh.hide,isCircleClicked:!1,nearestCircleToHighlight:null,isShowCalloutPending:!1},n._uniqueIdForGraph=pe("areaChart_"),n._verticalLineId=pe("verticalLine_"),n._circleId=pe("circle"),n._rectId=pe("rectangle"),n._tooltipId=pe("AreaChartTooltipID"),n}return r(t,e),t.prototype.render=function(){var e=this,t=this.props.data,n=t.lineChartData,r=t.chartTitle,o=this._createSet(this.props.data),a=o.colors,l=o.opacity,u=o.stackedInfo,c=o.calloutPoints;this._calloutPoints=c;var d=Gu(n);this._colors=a,this._opacity=l,this._stackedData=u.stackedData;var h=this._getLegendData(this.props.theme.palette,n),p={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat},f=i({target:this.state.refSelected,isCalloutVisible:this.state.isCalloutVisible,directionalHint:3,YValueHover:this.state.YValueHover,hoverXValue:this.state.hoverXValue,id:"toolTip"+this._uniqueCallOutID,gapSpace:15,isBeakVisible:!1,setInitialFocus:!0,onDismiss:this._closeCallout,"data-is-focusable":!0,xAxisCalloutAccessibilityData:this.state.xAxisCalloutAccessibilityData},this.props.calloutProps);return s.createElement(gh,i({},this.props,{chartTitle:r,points:n,chartType:zu.AreaChart,calloutProps:f,legendBars:h,isCalloutForStack:!0,xAxisType:d?Uu.DateAxis:Uu.NumericAxis,tickParams:p,maxOfYVal:u.maxOfYVal,getGraphData:this._getGraphData,getmargins:this._getMargins,customizedCallout:this._getCustomizedCallout(),onChartMouseLeave:this._handleChartMouseLeave,children:function(t){e._xAxisRectScale=t.xScale;var n=e._xAxisRectScale.ticks(),r=e._xAxisRectScale(n[n.length-1]),i=t.containerHeight-e.margins.top;return s.createElement(s.Fragment,null,s.createElement("g",null,s.createElement("rect",{id:e._rectId,width:r,height:i,fill:"transparent",onMouseMove:e._onRectMouseMove,onMouseOut:e._onRectMouseOut,onMouseOver:e._onRectMouseMove})),s.createElement("g",null,e._chart))}}))},t.prototype._onLegendClick=function(e){this.state.isLegendSelected&&this.state.activeLegend===e?this.setState({isLegendSelected:!1,activeLegend:""}):this.setState({activeLegend:e})},t.prototype._onLegendHover=function(e){!1===this.state.isLegendSelected&&this.setState({activeLegend:e,isLegendHovered:!0})},t.prototype._onLegendLeave=function(e){(e||!1===this.state.isLegendSelected)&&this.setState({activeLegend:"",isLegendHovered:!1,isLegendSelected:!e&&this.state.isLegendSelected})},t}(s.Component),$h=b(Gh,(function(e){return{tooltip:i(i({},e.theme.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:e.theme.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"})}})),Qh=function(e){return{root:{fill:e.color,stroke:Tn.white,strokeWidth:2}}},Jh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={},t.updateChart=function(e){tp(e)},t}return r(t,e),t.getDerivedStateFromProps=function(e){return tp(e),null},t.prototype.render=function(){var e,t=this.props,n=t.color,r=t.arc,i=le()(Qh,{color:n});return s.createElement("path",{d:r(this.props.data),className:i.root,onClick:null===(e=this.props.data)||void 0===e?void 0:e.data.onClick})},t.defaultProps={arc:ih()},t}(s.Component),ep=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.render=function(){var t=this.props,n=t.data,r=t.arc,i=t.culture,o=r.centroid(n),a="translate("+o[0]+", "+o[1]+")";return s.createElement("g",{className:"arc"},e.prototype.render.call(this),s.createElement("text",{transform:a,textAnchor:"middle"},n.data.x,"-",ic(n.data.y,i)))},t}(Jh);function tp(e){e.arc.innerRadius(e.innerRadius),e.arc.outerRadius(e.outerRadius)}var np,rp=function(e){function t(t){var n=e.call(this,t)||this;return n.arcGenerator=function(e,t){return s.createElement(ep,{culture:n.props.culture,key:t,data:e,innerRadius:n.props.innerRadius,outerRadius:n.props.outerRadius,color:""+n.colors(t)})},n}return r(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.pie,r=t.colors,i=t.data,o=t.width,a=t.height,l=t.chartTitle;this.colors=Qi().range(r);var u=n(i),c="translate("+o/2+", "+a/2+")";return s.createElement("svg",{width:o,height:a,"aria-label":l},s.createElement("g",{transform:c},u.map((function(t,n){return e.arcGenerator(t,n)}))))},t.defaultProps={pie:Ud().sort(null).value((function(e){return e.y}))},t}(s.Component),ip=le(),op=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.render=function(){var e=this.props,t=e.data,n=e.width,r=e.height,i=e.colors,o=e.chartTitle,a=this.props,l=a.theme,u=a.className,c=a.styles,d=a.culture;this._classNames=ip(c,{theme:l,width:n,height:r,className:u});var h=Math.min(n,r)/2-10;return s.createElement("div",{className:this._classNames.root},this.props.chartTitle&&s.createElement("p",{className:this._classNames.chartTitle},this.props.chartTitle),s.createElement(rp,{culture:d,width:n,height:r,outerRadius:h,innerRadius:0,data:t,colors:i,chartTitle:o}))},t.defaultProps={data:[],width:600,height:350},t}(s.Component),ap=b(op,(function(e){var t=e.className,n=e.theme,r=e.width+30,o=e.height+10;return{root:[n.fonts.medium,"ms-PieChart",t,{width:r+40}],chart:[{padding:20,width:r,height:o,boxSizing:"content-box"}],chartTitle:[i({textAlign:"center"},n.fonts.mediumPlus)]}})),sp=le(),lp=function(e){function t(t){var n=e.call(this,t)||this;return n._handleChartMouseLeave=function(){n._calloutAnchorPoint=null,n.setState({isCalloutVisible:!1})},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},n._getAccessibleDataObject=function(e,t,n){return void 0===t&&(t="text"),void 0===n&&(n=!0),{role:t,"data-is-focusable":n,"aria-label":(e=null!=e?e:{}).ariaLabel,"aria-labelledby":e.ariaLabelledBy,"aria-describedby":e.ariaDescribedBy}},n.state={isCalloutVisible:!1,selectedLegendTitle:"",refSelected:null,dataForHoverCard:0,color:"",isLegendHovered:!1,isLegendSelected:!1,xCalloutValue:"",yCalloutValue:""},n._refArray=[],n._onLeave=n._onLeave.bind(n),n._refCallback=n._refCallback.bind(n),n._onBarLeave=n._onBarLeave.bind(n),n._calloutId=pe("callout"),n}return r(t,e),t.prototype.render=function(){this._adjustProps();var e=this.props,t=e.data,n=e.benchmarkData,r=e.targetData,o=e.hideNumberDisplay,a=e.ignoreFixStyle,l=e.culture,u=this.props.theme.palette,c=a||t.chartData.length>2?this.props.barHeight:8;n&&(n.color=n.color||u.neutralTertiary),r&&(r.color=r.color||u.neutralSecondary);var d=this._createBarsAndLegends(t,c,u,n,r),h=!1===o&&!a&&2===t.chartData.length,p=!1===o&&!a&&1===t.chartData.length,f=t.chartData.reduce((function(e,t){return e+(t.data?t.data:0)}),0),g=0;n&&f&&(g=n.data/f*100);var v=0;r&&f&&(v=r.data/f*100);var m=!1===this.props.hideLegend&&(a||t.chartData.length>2);this._classNames=sp(this.props.styles,{legendColor:this.state.color,theme:this.props.theme,benchmarkColor:n?n.color:"",benchmarkRatio:g,targetColor:r?r.color:"",targetRatio:v});var y=function(){return ic(t.chartData[0].data?t.chartData[0].data:0,l)};return s.createElement("div",{className:this._classNames.root,onMouseLeave:this._handleChartMouseLeave},s.createElement(Pc,{direction:oc.horizontal},s.createElement("div",{className:this._classNames.chartTitle},t.chartTitle&&s.createElement("div",i({},this._getAccessibleDataObject(t.chartTitleAccessibilityData)),s.createElement("strong",null,t.chartTitle)),h&&s.createElement("div",i({},this._getAccessibleDataObject(t.chartDataAccessibilityData)),s.createElement("span",{className:this._classNames.ratioNumerator},y()),!this.props.hideDenominator&&s.createElement("span",null,"/",s.createElement("span",{className:this._classNames.ratioDenominator},ic(f,l)))),p&&s.createElement("div",i({},this._getAccessibleDataObject(t.chartDataAccessibilityData)),s.createElement("strong",null,y()))),(n||r)&&s.createElement("div",{className:this._classNames.benchmarkContainer},n&&s.createElement("div",{className:this._classNames.benchmark,role:"text"}),r&&s.createElement("div",{className:this._classNames.target,role:"text"}))),s.createElement(Pc,{direction:oc.horizontal},s.createElement("div",null,s.createElement("svg",{className:this._classNames.chart,"aria-label":null==t?void 0:t.chartTitle},s.createElement("g",null,d[0]),s.createElement(gi,i({gapSpace:15,isBeakVisible:!1,target:this.state.refSelected,setInitialFocus:!0,hidden:!(!this.props.hideTooltip&&this.state.isCalloutVisible),directionalHint:3,id:this._calloutId,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0},this.props.calloutProps,this._getAccessibleDataObject(this.state.callOutAccessibilityData,"text",!1)),s.createElement(s.Fragment,null,this.props.onRenderCalloutPerDataPoint?this.props.onRenderCalloutPerDataPoint(this.state.dataPointCalloutProps):s.createElement(uc,{Legend:this.state.xCalloutValue?this.state.xCalloutValue:this.state.selectedLegendTitle,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard,color:this.state.color,culture:l})))))),m&&s.createElement("div",{className:this._classNames.legendContainer},d[1]))},t.prototype._adjustProps=function(){this._classNames=sp(this.props.styles,{legendColor:this.state.color,theme:this.props.theme,width:this.props.width,barHeight:this.props.barHeight,className:this.props.className})},t.prototype._createBarsAndLegends=function(e,t,n,r,o){var a=this,l=[n.blueLight,n.blue,n.blueMid,n.red,n.black],u=[],c=[],d=e.chartData.reduce((function(e,t){return e+(t.data?t.data:0)}),0),h=0,p=0,f=e.chartData.map((function(e,n){var r=e.color?e.color:l[Math.floor(4*Math.random()+1)],i=e.data?e.data:0,o={title:e.legend,color:r,action:d>0?function(){a._onClick(e.legend)}:void 0,hoverAction:d>0?function(){a._onHover(e.legend)}:void 0,onMouseOutAction:d>0?function(e){a._onLeave(e)}:void 0};e.placeHolder||u.push(o),n>0&&(h+=p),(p=i/d*100)<1&&0!==p?p=1:p>99&&100!==p&&(p=99),c.push(h);var f=a.props.styles,g=!0;return(a.state.isLegendHovered||a.state.isLegendSelected)&&(g=a.state.selectedLegendTitle===e.legend),a._classNames=sp(f,{theme:a.props.theme,shouldHighlight:g,href:a.props.href}),p<1?s.createElement(s.Fragment,{key:n}," "):s.createElement("g",{key:n,className:a._classNames.opacityChangeOnHover,ref:function(e){a._refCallback(e,o.title)},"data-is-focusable":!a.props.hideTooltip,onFocus:a._onBarFocus.bind(a,i,r,e),onBlur:a._onBarLeave,"aria-label":"Stacked bar chart",role:"img","aria-labelledby":a._calloutId,onMouseOver:a._onBarHover.bind(a,i,r,e),onMouseMove:a._onBarHover.bind(a,i,r,e),onMouseLeave:a._onBarLeave,pointerEvents:"all",onClick:a.props.href?a._redirectToUrl.bind(a,a.props.href):e.onClick},s.createElement("rect",{key:n,x:c[n]+"%",y:0,width:p+"%",height:t,fill:r}))}));this._addLegend(u,r),this._addLegend(u,o);var g=s.createElement(kd,i({legends:u,enabledWrapLines:this.props.enabledLegendsWrapLines,overflowProps:this.props.legendsOverflowProps,focusZonePropsInHoverCard:this.props.focusZonePropsForLegendsInHoverCard,overflowText:this.props.legendsOverflowText},this.props.legendProps));return[0===d?[this._generateEmptyBar(t,this.props.barBackgroundColor?this.props.barBackgroundColor:n.neutralTertiary)]:f,g]},t.prototype._onBarFocus=function(e,t,n){var r=this;(!1===this.state.isLegendSelected||this.state.isLegendSelected&&this.state.selectedLegendTitle===n.legend)&&this._refArray.forEach((function(i){i.index===n.legend&&r.setState({refSelected:i.refElement,isCalloutVisible:!0,selectedLegendTitle:n.legend,dataForHoverCard:e,color:t,xCalloutValue:n.xAxisCalloutData,yCalloutValue:n.yAxisCalloutData,dataPointCalloutProps:n,callOutAccessibilityData:n.callOutAccessibilityData})}))},t.prototype._addLegend=function(e,t){if(t){var n={title:t.legend,color:t.color,shape:"triangle"};e.push(n)}},t.prototype._generateEmptyBar=function(e,t){return s.createElement("g",{key:0,className:this._classNames.opacityChangeOnHover},s.createElement("rect",{key:0,x:"0%",y:0,width:"100%",height:e,fill:t}))},t.prototype._refCallback=function(e,t){this._refArray.push({index:t,refElement:e})},t.prototype._onClick=function(e){this.state.isLegendSelected?this.state.selectedLegendTitle===e?this.setState({isLegendSelected:!1,selectedLegendTitle:e,isLegendHovered:!0}):this.setState({selectedLegendTitle:e}):this.setState({isLegendSelected:!0,selectedLegendTitle:e})},t.prototype._onHover=function(e){!1===this.state.isLegendSelected&&this.setState({isLegendHovered:!0,selectedLegendTitle:e})},t.prototype._onLeave=function(e){(e||!1===this.state.isLegendSelected)&&this.setState({isLegendHovered:!1,selectedLegendTitle:"",isLegendSelected:!e&&this.state.isLegendSelected})},t.prototype._onBarHover=function(e,t,n,r){r.persist(),(!1===this.state.isLegendSelected||this.state.isLegendSelected&&this.state.selectedLegendTitle===n.legend)&&this._calloutAnchorPoint!==n&&(this._calloutAnchorPoint=n,this.setState({refSelected:r,isCalloutVisible:!0,selectedLegendTitle:n.legend,dataForHoverCard:e,color:t,xCalloutValue:n.xAxisCalloutData,yCalloutValue:n.yAxisCalloutData,dataPointCalloutProps:n,callOutAccessibilityData:n.callOutAccessibilityData}))},t.prototype._onBarLeave=function(){},t.prototype._redirectToUrl=function(e){e&&(window.location.href=e)},t.defaultProps={barHeight:16,hideNumberDisplay:!1,hideLegend:!1,ignoreFixStyle:!1},t}(s.Component),up=b(lp,(function(e){var t,n,r=e.className,o=e.width,a=e.barHeight,s=e.shouldHighlight,l=e.theme,u=e.href,c=e.benchmarkColor,d=e.benchmarkRatio,h=e.targetColor,p=e.targetRatio;return{root:[l.fonts.medium,"ms-StackedBarChart",{width:o||"100%",display:"flex",flexDirection:"column"},r],chart:{width:"100%",height:a||16,marginBottom:"12px"},chartTitle:i(i({},l.fonts.small),{display:"flex",justifyContent:"space-between",marginBottom:"5px"}),legendContainer:{margin:"4px 0px 0px 4px"},opacityChangeOnHover:{opacity:s?"":"0.1",cursor:u?"pointer":"default",stroke:l.palette.white,strokeWidth:2,selectors:{"&:focus":{stroke:l.palette.black,strokeWidth:"2px"}}},ratioNumerator:{fontSize:kn.small,fontWeight:An.semibold,color:l.palette.black},ratioDenominator:{fontSize:kn.small,color:l.palette.black,opacity:"0.6"},benchmarkContainer:{position:"relative",height:"12px"},benchmark:{position:"absolute",left:"calc("+d+"% - 4.5px)",width:"0",height:"0",borderLeft:"4.5px solid transparent",borderRight:"4.5px solid transparent",borderTop:"7.8px solid",borderTopColor:c,marginBottom:"4px",selectors:(t={},t[Pn]={border:"0px",height:"7.8px",width:"7.8px",clipPath:"polygon(50% 100%, 0 0, 100% 0)",backgroundImage:"linear-gradient(to right, "+c+", "+c+")"},t)},target:{position:"absolute",left:"calc("+p+"% - 4.5px)",width:"0",height:"0",borderLeft:"4.5px solid transparent",borderRight:"4.5px solid transparent",borderTop:"7.8px solid",borderTopColor:h,marginBottom:"4px",selectors:(n={},n[Pn]={border:"0px",height:"7.8px",width:"7.8px",clipPath:"polygon(50% 100%, 0 0, 100% 0)",backgroundImage:"linear-gradient(to right, "+h+", "+h+")"},n)}}})),cp=le(),dp=function(e){function t(t){var n=e.call(this,t)||this;return n._adjustProps=function(){var e=n.props,t=e.theme,r=e.className,i=e.styles,o=e.width,a=e.barHeight;n._classNames=cp(i,{legendColor:n.state.color,theme:t,width:o,className:r,barHeight:a})},n._getLegendData=function(e,t,r){var o=[r.blueLight,r.blue,r.blueMid,r.red,r.black],a=[];return e.forEach((function(e,r){var i=e.chartData.filter((function(e){return!e.placeHolder}));i.length<3?void 0!==t[r]&&t[r]&&i.forEach((function(e){var t=e.color?e.color:o[Math.floor(4*Math.random()+1)];if(!(a.filter((function(n){return n.title===e.legend&&n.color===t})).length>0)){var r={title:e.legend,color:t,action:function(){n._onClick(e.legend)},hoverAction:function(){n._onHover(e.legend)},onMouseOutAction:function(e){n._onLeave(e)}};a.push(r)}})):i.forEach((function(e){var t=e.color?e.color:o[Math.floor(4*Math.random()+1)];if(!(a.filter((function(n){return n.title===e.legend&&n.color===t})).length>0)){var r={title:e.legend,color:t,action:function(){n._onClick(e.legend)},hoverAction:function(){n._onHover(e.legend)},onMouseOutAction:function(e){n._onLeave(e)}};a.push(r)}}))})),s.createElement(kd,i({legends:a,overflowProps:n.props.legendsOverflowProps,focusZonePropsInHoverCard:n.props.focusZonePropsForLegendsInHoverCard,overflowText:n.props.legendsOverflowText},n.props.legendProps))},n._handleChartMouseLeave=function(){n._calloutAnchorPoint=null,n.setState({isCalloutVisible:!1})},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},n._getAccessibleDataObject=function(e,t,n){return void 0===t&&(t="text"),void 0===n&&(n=!0),{role:t,"data-is-focusable":n,"aria-label":(e=null!=e?e:{}).ariaLabel,"aria-labelledby":e.ariaLabelledBy,"aria-describedby":e.ariaDescribedBy}},n.state={isCalloutVisible:!1,refArray:[],selectedLegendTitle:"",refSelected:null,dataForHoverCard:0,color:"",isLegendHovered:!1,isLegendSelected:!1,xCalloutValue:"",yCalloutValue:""},n._onLeave=n._onLeave.bind(n),n._onBarLeave=n._onBarLeave.bind(n),n._calloutId=pe("callout"),n}return r(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.data,r=t.theme,o=t.culture;this._adjustProps();var a=r.palette,l=this._getLegendData(n,this.props.hideRatio,a),u=this.state.isCalloutVisible;this._classNames=cp(this.props.styles,{legendColor:this.state.color,theme:r});var c=this.state.xCalloutValue?this.state.xCalloutValue:this.state.selectedLegendTitle,d=this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard,h=n.map((function(t,n){var r=e._createBarsAndLegends(t,e.props.barHeight,a,e.props.hideRatio[n],e.props.hideDenominator[n],e.props.href);return s.createElement("div",{key:n},r)}));return s.createElement("div",{className:this._classNames.root,onMouseLeave:this._handleChartMouseLeave},h,!this.props.hideLegend&&s.createElement("div",{className:this._classNames.legendContainer},l),s.createElement(gi,i({gapSpace:15,isBeakVisible:!1,target:this.state.refSelected,setInitialFocus:!0,hidden:!(!this.props.hideTooltip&&u),directionalHint:3,id:this._calloutId,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0},this.props.calloutProps,this._getAccessibleDataObject(this.state.callOutAccessibilityData,"text",!1)),s.createElement(s.Fragment,null,this.props.onRenderCalloutPerDataPoint?this.props.onRenderCalloutPerDataPoint(this.state.dataPointCalloutProps):s.createElement(uc,{Legend:c,YValue:d,color:this.state.color,culture:o}))))},t.prototype._createBarsAndLegends=function(e,t,n,r,o,a){var l=this,u=this.props.culture,c=[n.blueLight,n.blue,n.blueMid,n.red,n.black],d=[],h=e.chartData.reduce((function(e,t){return e+(t.data?t.data:0)}),0),p=0,f=0,g=e.chartData.map((function(e,r){var i=e.color?e.color:e.placeHolder?n.neutralTertiaryAlt:c[Math.floor(4*Math.random()+1)],o=e.data?e.data:0;r>0&&(p+=f),f=o/h*100?o/h*100:0,d.push(p);var u=l.props.styles,g=!0;return(l.state.isLegendHovered||l.state.isLegendSelected)&&(g=l.state.selectedLegendTitle===e.legend),l._classNames=cp(u,{theme:l.props.theme,shouldHighlight:g,href:a}),f<1?s.createElement(s.Fragment,{key:r}," "):s.createElement("g",{key:r,className:e.placeHolder?l._classNames.placeHolderOnHover:l._classNames.opacityChangeOnHover,ref:function(t){l._refCallback(t,e.legend)},"data-is-focusable":!l.props.hideTooltip,onFocus:l._onBarFocus.bind(l,o,i,e),onBlur:l._onBarLeave,"aria-labelledby":l._calloutId,role:"img","aria-label":"Multi stacked bar chart",onMouseOver:e.placeHolder?void 0:l._onBarHover.bind(l,o,i,e),onMouseMove:e.placeHolder?void 0:l._onBarHover.bind(l,o,i,e),onMouseLeave:e.placeHolder?void 0:l._onBarLeave,onClick:a?e.placeHolder?void 0:l._redirectToUrl.bind(l,a):e.onClick},s.createElement("rect",{key:r,x:d[r]+"%",y:0,width:f+"%",height:t,fill:i}))}));0===e.chartData.length&&g.push(s.createElement("g",{key:0,className:this._classNames.noData,onClick:this._redirectToUrl.bind(this,a)},s.createElement("rect",{key:0,x:"0%",y:0,width:"100%",height:t,fill:n.neutralTertiaryAlt}))),0===h&&g.push(s.createElement("g",{key:"empty",className:this._classNames.noData,onClick:this._redirectToUrl.bind(this,a)},s.createElement("rect",{key:0,x:"0%",y:0,width:"100%",height:t,fill:n.neutralTertiaryAlt})));var v=void 0!==r&&r,m=!v&&2===e.chartData.length,y=!v&&1===e.chartData.length,_=function(){return ic(e.chartData[0].data?e.chartData[0].data:0,u)};return s.createElement("div",{className:this._classNames.singleChartRoot},s.createElement(Pc,{direction:oc.horizontal},s.createElement("div",{className:this._classNames.chartTitle},e.chartTitle&&s.createElement("div",i({},this._getAccessibleDataObject(e.chartTitleAccessibilityData,u)),s.createElement("strong",null,e.chartTitle)),m&&s.createElement("div",i({},this._getAccessibleDataObject(e.chartDataAccessibilityData)),s.createElement("strong",null,_()),!o&&s.createElement("span",null,"/",ic(h,u))),y&&s.createElement("div",i({},this._getAccessibleDataObject(e.chartDataAccessibilityData)),s.createElement("strong",null,_())))),s.createElement(Pc,{direction:oc.horizontal},s.createElement("div",null,s.createElement("svg",{className:this._classNames.chart,"aria-label":null==e?void 0:e.chartTitle},g))))},t.prototype._onBarFocus=function(e,t,n){var r=this;(!1===this.state.isLegendSelected||this.state.isLegendSelected&&this.state.selectedLegendTitle===n.legend)&&this.state.refArray.forEach((function(i){i.legendText===n.legend&&r.setState({refSelected:i.refElement,isCalloutVisible:!0,selectedLegendTitle:n.legend,dataForHoverCard:e,color:t,xCalloutValue:n.xAxisCalloutData,yCalloutValue:n.yAxisCalloutData,dataPointCalloutProps:n,callOutAccessibilityData:n.callOutAccessibilityData})}))},t.prototype._refCallback=function(e,t){this.state.refArray.push({legendText:t,refElement:e})},t.prototype._onHover=function(e){!1===this.state.isLegendSelected&&this.setState({isLegendHovered:!0,selectedLegendTitle:e})},t.prototype._onClick=function(e){this.state.isLegendSelected?this.state.selectedLegendTitle===e?this.setState({isLegendSelected:!1,selectedLegendTitle:e}):this.setState({selectedLegendTitle:e}):this.setState({isLegendSelected:!0,selectedLegendTitle:e})},t.prototype._onLeave=function(e){(e||!1===this.state.isLegendSelected)&&this.setState({isLegendHovered:!1,selectedLegendTitle:"",isLegendSelected:!e&&this.state.isLegendSelected})},t.prototype._onBarHover=function(e,t,n,r){r.persist(),(!1===this.state.isLegendSelected||this.state.isLegendSelected&&this.state.selectedLegendTitle===n.legend)&&this._calloutAnchorPoint!==n&&(this._calloutAnchorPoint=n,this.setState({refSelected:r,isCalloutVisible:!0,selectedLegendTitle:n.legend,dataForHoverCard:e,color:t,xCalloutValue:n.xAxisCalloutData,yCalloutValue:n.yAxisCalloutData,dataPointCalloutProps:n,callOutAccessibilityData:n.callOutAccessibilityData}))},t.prototype._onBarLeave=function(){},t.prototype._redirectToUrl=function(e){e&&(window.location.href=e)},t.defaultProps={barHeight:16,hideRatio:[],hideDenominator:[]},t}(s.Component),hp=b(dp,(function(e){var t=e.className,n=e.width,r=e.barHeight,o=e.shouldHighlight,a=e.theme,s=e.href;return{root:[a.fonts.medium,"ms-StackedBarChart",{display:"flex",flexDirection:"column",width:n||"100%"},t],items:{marginBottom:"11px"},chart:{width:"100%",height:r||16},chartTitle:i(i({},a.fonts.small),{display:"flex",justifyContent:"space-between",marginBottom:"5px"}),singleChartRoot:{width:n||"100%",display:"flex",flexDirection:"column",marginBottom:"16px"},opacityChangeOnHover:{opacity:o?"":"0.1",cursor:s?"pointer":"default",stroke:a.palette.white,strokeWidth:2,selectors:{"&:focus":{stroke:a.palette.black,strokeWidth:"2px"}}},placeHolderOnHover:{opacity:o?"":"0.1",cursor:"default",stroke:a.palette.white,strokeWidth:"2",selectors:{"&:focus":{stroke:a.palette.black,strokeWidth:"2px"}}},legendContainer:{margin:"5px 0px 0px 4px"},noData:{cursor:s?"pointer":"default"}}}));!function(e){e.show="visibility",e.hide="hidden"}(np||(np={}));var pp,fp=le(),gp=function(e){function t(t){var n=e.call(this,t)||this;return n._isRtl=ie(),n._createLine=function(e,t,r,i){void 0===r&&(r=0),void 0===i&&(i=0);var o=n._xAxisType===Uu.NumericAxis,a=n._getScales(r,i,o).xBarScale,l=n._createColors(),u=n.props.theme,c=n.props,d=c.data,h=c.lineLegendColor,p=void 0===h?u.palette.yellow:h,f=c.lineLegendText,g=[];d&&d.forEach((function(e,t){e.lineData&&e.lineData.y&&g.push({x:e.x,y:e.lineData.y,point:e,index:t})}));var v=Vh().x((function(t){return o?e(t.x):a(t.index)+.5*n._barWidth})).y((function(e){return t(e.y)})),m=!0;(n.state.isLegendHovered||n.state.isLegendSelected)&&(m=n.state.selectedLegendTitle===f);var y=s.createElement("path",{opacity:m?1:.4,d:v(g),fill:"none",strokeWidth:3,stroke:p}),_=g.map((function(r,i){var u;return s.createElement("circle",{key:i,cx:o?e(r.x):a(r.index)+.5*n._barWidth,cy:t(r.y),onMouseOver:n._onBarHover.bind(n,r.point,l(r.y)),onMouseOut:n._onBarLeave,r:8,stroke:p,fill:n.props.theme.palette.white,strokeWidth:3,visibility:n.state.activeXdataPoint===r.x?np.show:np.hide,onClick:null===(u=r.point.lineData)||void 0===u?void 0:u.onClick})}));return s.createElement(s.Fragment,null,y,_)},n._checkForLine=function(){return n.props.data.some((function(e){var t;return void 0!==(null===(t=null==e?void 0:e.lineData)||void 0===t?void 0:t.y)}))},n._getMargins=function(e){n.margins=e},n._renderContentForBothLineAndBars=function(e){var t=n._getCalloutContentForLineAndBar(e),r=t.YValueHover,o=t.hoverXValue,a=r.map((function(e,t){return s.createElement(uc,i({key:t,Legend:e.legend},0===t&&{XValue:""+(o||e.data)},{color:e.color,YValue:e.data||e.y,culture:n.props.culture}))}));return s.createElement(s.Fragment,null,a)},n._renderContentForOnlyBars=function(e){var t=n.props.useSingleColor,r=void 0!==t&&t;return s.createElement(s.Fragment,null,s.createElement(uc,{XValue:e.xAxisCalloutData||e.x,Legend:e.legend,YValue:e.yAxisCalloutData||e.y,color:!r&&e.color?e.color:n._createColors()(e.y),culture:n.props.culture}))},n._renderCallout=function(e){return e?n._isHavingLine?n._renderContentForBothLineAndBars(e):n._renderContentForOnlyBars(e):null},n._getCustomizedCallout=function(){return n.props.onRenderCalloutPerDataPoint?n.props.onRenderCalloutPerDataPoint(n.state.dataPointCalloutProps,n._renderCallout):null},n._getGraphData=function(e,t,r,i,o){return n._bars=n._xAxisType===Uu.NumericAxis?n._createNumericBars(r,i,o):n._createStringBars(r,i,o)},n._refCallback=function(e,t){n._refArray.push({index:t,refElement:e})},n._getCalloutContentForLineAndBar=function(e){var t,r,i,o,a=[],s=n.props,l=s.theme,u=s.useSingleColor,c=void 0!==u&&u,d=n.props,h=d.data,p=d.lineLegendText,f=d.lineLegendColor,g=void 0===f?l.palette.yellow:f,v=h.filter((function(t){return t.x===e.x}));return n._isHavingLine&&void 0!==(null===(t=v[0].lineData)||void 0===t?void 0:t.y)&&a.push({legend:p,color:g,y:null===(r=v[0].lineData)||void 0===r?void 0:r.y,data:null===(i=v[0].lineData)||void 0===i?void 0:i.yAxisCalloutData,yAxisCalloutData:null===(o=v[0].lineData)||void 0===o?void 0:o.yAxisCalloutData}),a.push({legend:v[0].legend,y:v[0].y,color:c?n._createColors()(1):v[0].color?v[0].color:n._createColors()(v[0].y),data:v[0].yAxisCalloutData,yAxisCalloutData:v[0].yAxisCalloutData}),{YValueHover:a,hoverXValue:e.xAxisCalloutData||e.x.toString()}},n._onBarLeave=function(){},n._handleChartMouseLeave=function(){n._calloutAnchorPoint=null,n.setState({isCalloutVisible:!1,activeXdataPoint:null,YValueHover:[],hoverXValue:""})},n._onBarFocus=function(e,t,r){if(!1===n.state.isLegendSelected||n.state.isLegendSelected&&n.state.selectedLegendTitle===e.legend){var i=n._getCalloutContentForLineAndBar(e),o=i.YValueHover,a=i.hoverXValue;n._refArray.forEach((function(i,s){i.index===e.legend&&t===s&&n.setState({refSelected:i.refElement,isCalloutVisible:!0,selectedLegendTitle:e.legend,dataForHoverCard:e.y,color:e.color||r,xCalloutValue:e.xAxisCalloutData||e.x.toString(),yCalloutValue:e.yAxisCalloutData,dataPointCalloutProps:e,activeXdataPoint:e.x,YValueHover:o,hoverXValue:a,callOutAccessibilityData:e.callOutAccessibilityData})}))}},n._getScales=function(e,t,r){if(r){var i=Vi(n._points,(function(e){return e.x}));return{xBarScale:ga().domain(n._isRtl?[i,0]:[0,i]).nice().range([n.margins.left+n._barWidth/2,t-n.margins.right-n._barWidth-n._barWidth/2]),yBarScale:ga().domain([0,n._yMax]).range([0,e-n.margins.bottom-n.margins.top])}}return{xBarScale:Ji().domain(n._xAxisLabels).range([n.margins.left,t-n.margins.right]).padding(n.props.xAxisPadding||.1),yBarScale:ga().domain([0,n._yMax]).range([0,e-n.margins.bottom-n.margins.top])}},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},n._getLegendData=function(e,t){var r=n.props,o=r.theme,a=r.useSingleColor,l=n.props,u=l.lineLegendText,c=l.lineLegendColor,d=void 0===c?o.palette.yellow:c,h=[];if(e.forEach((function(e,t){var r=a?n._createColors()(1):e.color,i={title:e.legend,color:r,action:function(){n._onLegendClick(e.legend)},hoverAction:function(){n._onLegendHover(e.legend)},onMouseOutAction:function(e){n._onLegendLeave(e)}};h.push(i)})),n._isHavingLine&&u&&d){var p={title:u,color:d,action:function(){n._onLegendClick(u)},hoverAction:function(){n._onLegendHover(u)},onMouseOutAction:function(e){n._onLegendLeave(e)},isLineLegendInBarChart:!0};h.unshift(p)}return s.createElement(kd,i({legends:h,enabledWrapLines:n.props.enabledLegendsWrapLines,overflowProps:n.props.legendsOverflowProps,focusZonePropsInHoverCard:n.props.focusZonePropsForLegendsInHoverCard,overflowText:n.props.legendsOverflowText},n.props.legendProps))},n._getAxisData=function(e){if(e&&e.yAxisDomainValues.length){var t=e.yAxisDomainValues;n._yMax=Math.max(t[t.length-1],n.props.yMaxValue||0)}},n.state={color:"",dataForHoverCard:0,isCalloutVisible:!1,isLegendSelected:!1,isLegendHovered:!1,refSelected:null,selectedLegendTitle:"",xCalloutValue:"",yCalloutValue:"",activeXdataPoint:null,YValueHover:[],hoverXValue:""},n._isHavingLine=n._checkForLine(),n._calloutId=pe("callout"),n._tooltipId=pe("VCTooltipID_"),n._refArray=[],n._xAxisType=n.props.data&&n.props.data.length>0?tc(n.props.data[0].x,!0):Uu.StringAxis,n}return r(t,e),t.prototype.render=function(){var e=this;this._adjustProps(),this._xAxisLabels=this._points.map((function(e){return e.x})),this._yMax=Math.max(Vi(this._points,(function(e){return e.y})),this.props.yMaxValue||0);var t=this._getLegendData(this._points,this.props.theme.palette);this._classNames=fp(this.props.styles,{theme:this.props.theme,legendColor:this.state.color});var n=i(i(i(i({isCalloutVisible:this.state.isCalloutVisible,directionalHint:3,id:"toolTip"+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.selectedLegendTitle,XValue:this.state.xCalloutValue,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0}),this.props.calloutProps),rc(this.state.callOutAccessibilityData)),r={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return s.createElement(gh,i({},this.props,{points:this._points,chartType:zu.VerticalBarChart,xAxisType:this._xAxisType,calloutProps:n,tickParams:r},this._isHavingLine&&{isCalloutForStack:!0},{legendBars:t,datasetForXAxisDomain:this._xAxisLabels,barwidth:this._barWidth,focusZoneDirection:oc.horizontal,customizedCallout:this._getCustomizedCallout(),getmargins:this._getMargins,getGraphData:this._getGraphData,getAxisData:this._getAxisData,onChartMouseLeave:this._handleChartMouseLeave,children:function(t){return s.createElement(s.Fragment,null,s.createElement("g",null,e._bars),e._isHavingLine&&s.createElement("g",null,e._createLine(t.xScale,t.yScale,t.containerHeight,t.containerWidth)))}}))},t.prototype._adjustProps=function(){this._points=this.props.data||[],this._barWidth=this.props.barWidth||32;var e=this.props.theme.palette;this._colors=this.props.colors||[e.blueLight,e.blue,e.blueMid,e.blueDark],this._isHavingLine=this._checkForLine()},t.prototype._createColors=function(){var e=this,t=this._colors.length<=1?1:1/(this._colors.length-1),n=this.props.useSingleColor;if(void 0!==n&&n)return function(t){var n=e.props,r=n.theme,i=n.colors;return i&&i.length>0?i[0]:r.palette.blueLight};for(var r=[],i=0;i<this._colors.length;i++)r.push(t*i*this._yMax);return ga().domain(r).range(this._colors)},t.prototype._onBarHover=function(e,t,n){n.persist();var r=this._getCalloutContentForLineAndBar(e),i=r.YValueHover,o=r.hoverXValue;(!1===this.state.isLegendSelected||this.state.isLegendSelected&&this.state.selectedLegendTitle===e.legend)&&this._calloutAnchorPoint!==e&&(this._calloutAnchorPoint=e,this.setState({refSelected:n,isCalloutVisible:!0,dataForHoverCard:e.y,selectedLegendTitle:e.legend,color:e.color||t,xCalloutValue:e.xAxisCalloutData||e.x.toString(),yCalloutValue:e.yAxisCalloutData,dataPointCalloutProps:e,activeXdataPoint:e.x,YValueHover:i,hoverXValue:o,callOutAccessibilityData:e.callOutAccessibilityData}))},t.prototype._createNumericBars=function(e,t,n){var r=this,i=this.props.useSingleColor,o=void 0!==i&&i,a=this._getScales(e,t,!0),l=a.xBarScale,u=a.yBarScale,c=this._createColors(),d=this._points.map((function(t,n){var i=!0;return(r.state.isLegendHovered||r.state.isLegendSelected)&&(i=r.state.selectedLegendTitle===t.legend),r._classNames=fp(r.props.styles,{theme:r.props.theme,legendColor:r.state.color,shouldHighlight:i}),Math.max(u(t.y),0)<1?s.createElement(s.Fragment,{key:t.x}," "):s.createElement("rect",{key:t.x,x:l(t.x),className:r._classNames.opacityChangeOnHover,y:e-r.margins.bottom-u(t.y),width:r._barWidth,"data-is-focusable":!r.props.hideTooltip,height:Math.max(u(t.y),0),ref:function(e){r._refCallback(e,t.legend)},onClick:t.onClick,onMouseOver:r._onBarHover.bind(r,t,c(t.y)),"aria-label":"Vertical bar chart",role:"text","aria-labelledby":"toolTip"+r._calloutId,onMouseLeave:r._onBarLeave,onFocus:r._onBarFocus.bind(r,t,n,c(t.y)),onBlur:r._onBarLeave,fill:t.color&&!o?t.color:c(t.y)})}));if(!this.props.showXAxisLablesTooltip)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(e){}if(!this.props.wrapXAxisLables&&this.props.showXAxisLablesTooltip){var h=Bu(n).call(l);try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(e){}var p={tooltipCls:this._classNames.tooltip,id:this._tooltipId,xAxis:h};h&&Zu(p)}return d},t.prototype._createStringBars=function(e,t,n){var r=this,i=this._getScales(e,t,!1),o=i.xBarScale,a=i.yBarScale,l=this._createColors(),u=this._points.map((function(t,n){var i=Math.max(a(t.y),0);return i<1?s.createElement(s.Fragment,{key:t.x}," "):s.createElement("rect",{key:t.x,x:o(t.x),y:e-r.margins.bottom-a(t.y),width:r._barWidth,height:i,"aria-label":"Vertical bar chart",role:"text","aria-labelledby":"toolTip"+r._calloutId,ref:function(e){r._refCallback(e,t.legend)},onClick:t.onClick,onMouseOver:r._onBarHover.bind(r,t,l(t.y)),onMouseLeave:r._onBarLeave,onBlur:r._onBarLeave,"data-is-focusable":!r.props.hideTooltip,onFocus:r._onBarFocus.bind(r,t,n,l(t.y)),fill:t.color?t.color:l(t.y),transform:"translate("+.5*(o.bandwidth()-r._barWidth)+", 0)"})}));if(!this.props.showXAxisLablesTooltip)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(e){}if(!this.props.wrapXAxisLables&&this.props.showXAxisLablesTooltip){var c=Bu(n).call(o);try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(e){}var d={tooltipCls:this._classNames.tooltip,id:this._tooltipId,xAxis:c,showTooltip:this.props.showXAxisLablesTooltip};c&&Zu(d)}return u},t.prototype._onLegendClick=function(e){this.state.isLegendSelected?this.state.selectedLegendTitle===e?this.setState({isLegendSelected:!1,selectedLegendTitle:e}):this.setState({selectedLegendTitle:e}):this.setState({isLegendSelected:!0,selectedLegendTitle:e})},t.prototype._onLegendHover=function(e){!1===this.state.isLegendSelected&&this.setState({isLegendHovered:!0,selectedLegendTitle:e})},t.prototype._onLegendLeave=function(e){(e||!1===this.state.isLegendSelected)&&this.setState({isLegendHovered:!1,selectedLegendTitle:"",isLegendSelected:!e&&this.state.isLegendSelected})},t}(s.Component),vp=b(gp,(function(e){var t=e.shouldHighlight,n=e.theme;return{opacityChangeOnHover:{opacity:t?"":"0.1"},xAxisTicks:[],yAxisTicks:[{transform:"scaleX(-1)"}],yAxisDomain:[{transform:"scaleX(-1)"}],tooltip:i(i({},n.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:n.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"})}})),mp=le();!function(e){e.show="visibility",e.hide="hidden"}(pp||(pp={}));var yp=function(e){function t(t){var n=e.call(this,t)||this;return n._isRtl=ie(),n._toFocusWholeStack=function(e){var t=n.props.isCalloutForStack,r=void 0!==t&&t;return e?!n.state.isLegendSelected:r},n._getFormattedLineData=function(e){var t=[],n={};return e.forEach((function(e,n){e.lineData&&e.lineData.forEach((function(r){t.push(i(i({},r),{index:n,xItem:e}))}))})),t.forEach((function(e){n[e.legend]?n[e.legend].push(e):n[e.legend]=[e]})),n},n._getLineLegends=function(e){var t=n._lineObject,r=[];return Object.keys(t).forEach((function(e){r.push({title:e,color:t[e][0].color})})),r},n._createLines=function(e,t,r,o){var a=n.state,l=a.isLegendHovered,u=a.isLegendSelected,c=a.selectedLegendTitle,d=n._xAxisType===Uu.NumericAxis,h=n._getScales(r,o,d).xBarScale,p=n._getFormattedLineData(n.props.data),f=[],g=[],v=d?0:h.bandwidth()/2;return Object.keys(p).forEach((function(r,o){var a=!0;(l||u)&&(a=c===r);for(var g=1;g<p[r].length;g++){var m=d?e(p[r][g-1].xItem.xAxisPoint):h(p[r][g-1].xItem.xAxisPoint)+n._additionalSpace,y=t(p[r][g-1].y),_=d?e(p[r][g].xItem.xAxisPoint):h(p[r][g].xItem.xAxisPoint)+n._additionalSpace,x=t(p[r][g].y);f.push(s.createElement("line",i({key:o+"-"+g+"-line",x1:m,y1:y,x2:_,y2:x,opacity:a?1:.1,strokeWidth:3,stroke:p[r][g].color,transform:"translate("+v+", 0)"},u&&c===r&&{onMouseOver:n._lineHover.bind(n,p[r][g-1]),onMouseLeave:n._lineHoverOut})))}})),Object.keys(p).forEach((function(r,o){p[r].forEach((function(a,l){g.push(s.createElement("circle",i({key:o+"-"+l+"-dot",cx:d?e(a.xItem.xAxisPoint):h(a.xItem.xAxisPoint)+n._additionalSpace,cy:t(a.y),onMouseOver:u&&c===r?n._lineHover.bind(n,a):n._onStackHover.bind(n,a.xItem)},u&&c===r&&{onMouseLeave:n._lineHoverOut},{r:n._getCircleVisibilityAndRadius(a.xItem.xAxisPoint,a.legend).radius,stroke:a.color,fill:n.props.theme.palette.white,strokeWidth:3,visibility:n._getCircleVisibilityAndRadius(a.xItem.xAxisPoint,a.legend).visibility,transform:"translate("+v+", 0)"})))}))})),s.createElement(s.Fragment,null,f,g)},n._getCircleVisibilityAndRadius=function(e,t){var r=n.state,i=r.isLegendSelected,o=r.activeXAxisDataPoint,a=r.selectedLegendTitle;return i?e===o&&t===a?{visibility:pp.show,radius:8}:t===a?{visibility:pp.show,radius:.3}:{visibility:pp.hide,radius:0}:{visibility:o===e?pp.show:pp.hide,radius:8}},n._getMargins=function(e){n.margins=e},n._getCustomizedCallout=function(){var e=n.props.data.some((function(e){return e.lineData&&e.lineData.length>0}));return n.props.onRenderCalloutPerStack?n.props.onRenderCalloutPerStack(n.state.stackCalloutProps):n.props.onRenderCalloutPerDataPoint&&!e?n.props.onRenderCalloutPerDataPoint(n.state.dataPointCalloutProps,n._renderCallout):null},n._lineHover=function(e,t){t.persist(),n.setState({refSelected:t,isCalloutVisible:!0,xCalloutValue:""+e.xItem.xAxisPoint,yCalloutValue:""+(e.yAxisCalloutData||e.data||e.y),activeXAxisDataPoint:e.xItem.xAxisPoint,color:e.color})},n._lineHoverOut=function(){n.setState({refSelected:null,isCalloutVisible:!1,xCalloutValue:"",yCalloutValue:"",activeXAxisDataPoint:"",color:""})},n._handleMouseOut=function(){},n._handleChartMouseLeave=function(){n._calloutAnchorPoint=null,n.setState({isCalloutVisible:!1,activeXAxisDataPoint:""})},n._createBar=function(e,t,r,o){var a=n.props,l=a.barCornerRadius,u=void 0===l?0:l,c=a.barMinimumHeight,d=void 0===c?0:c,h=n.props.data.some((function(e){return e.lineData&&e.lineData.length>0})),p=n._toFocusWholeStack(h),f=n._points.map((function(o,a){var l=r-n.margins.bottom,c=e((n._xAxisType,Uu.NumericAxis,o.xAxisPoint)),h=o.chartData.filter((function(e){return e.data>0}));if(h.length){var f=n._getBarGapAndScale(h,t),g=f.gapHeight,v=f.heightValueScale;if(!(v<0)){var m=h.map((function(t,r){var f=t.color?t.color:n._colors[r],m={},y=!0;(n.state.isLegendHovered||n.state.isLegendSelected)&&(y=n.state.selectedLegendTitle===t.legend);var _=mp(n.props.styles,{theme:n.props.theme,shouldHighlight:y,href:n.props.href}),x=!p&&{"data-is-focusable":!n.props.hideTooltip,"aria-labelledby":"toolTip"+n._calloutId,onMouseOver:n._onRectHover.bind(n,o.xAxisPoint,t,f),onMouseMove:n._onRectHover.bind(n,o.xAxisPoint,t,f),onMouseLeave:n._handleMouseOut,onFocus:n._onRectFocus.bind(n,t,o.xAxisPoint,f,m),onBlur:n._handleMouseOut,onClick:n._onClick.bind(n,t)},b=v*t.data;b<d&&(b=d),l=l-b-(r?g:0);var C=n._xAxisType===Uu.NumericAxis?0:e.bandwidth()/2;return u&&b>u&&r===h.length-1?s.createElement("path",i({key:r+a+""+p,className:_.opacityChangeOnHover,d:"\n M "+c+" "+(l+u)+"\n a "+u+" "+u+" 0 0 1 "+u+" "+-u+"\n h "+(n._barWidth-2*u)+"\n a "+u+" "+u+" 0 0 1 "+u+" "+u+"\n v "+(b-u)+"\n h "+-n._barWidth+"\n z\n ",fill:f,ref:function(e){return m.refElement=e},transform:"translate("+C+", 0)"},x)):b<1?s.createElement(s.Fragment,{key:r+a}," "):s.createElement("rect",i({key:r+a,className:_.opacityChangeOnHover,x:c,y:l,width:n._barWidth,height:b,fill:f,ref:function(e){return m.refElement=e}},x,{role:"text",transform:"translate("+C+", 0)"}))})),y={},_=p&&{"data-is-focusable":!n.props.hideTooltip,"aria-labelledby":"toolTip"+n._calloutId,onMouseOver:n._onStackHover.bind(n,o),onMouseMove:n._onStackHover.bind(n,o),onMouseLeave:n._handleMouseOut,onFocus:n._onStackFocus.bind(n,o,y),onBlur:n._handleMouseOut,onClick:n._onClick.bind(n,o),role:"text"};return s.createElement("g",i({key:a+""+p,id:a+"-singleBar",ref:function(e){return y.refElement=e}},_),m)}}})),g=mp(n.props.styles,{theme:n.props.theme});if(!n.props.showXAxisLablesTooltip)try{document.getElementById(n._tooltipId)&&document.getElementById(n._tooltipId).remove()}catch(e){}if(!n.props.wrapXAxisLables&&n.props.showXAxisLablesTooltip){var v=Bu(o).call(e);try{document.getElementById(n._tooltipId)&&document.getElementById(n._tooltipId).remove()}catch(e){}var m={tooltipCls:g.tooltip,id:n._tooltipId,xAxis:v};v&&Zu(m)}return f.filter((function(e){return!!e}))},n._getScales=function(e,t,r){var i=n._yMax,o=ga().domain([0,i]).range([0,e-n.margins.bottom-n.margins.top]);if(r){var a=Vi(n._dataset,(function(e){return e.x}));return{xBarScale:ga().domain(n._isRtl?[a,0]:[0,a]).nice().range([n.margins.left,t-n.margins.right-n._barWidth]),yBarScale:o}}return{xBarScale:Ji().domain(n._xAxisLabels).range([n.margins.left-n._additionalSpace,t-n.margins.right-n._additionalSpace]).padding(n.props.xAxisPadding||.1),yBarScale:o}},n._createNumericBars=function(e,t,r){var i=n._getScales(e,t,!0),o=i.xBarScale,a=i.yBarScale;return n._createBar(o,a,e,r)},n._createStringBars=function(e,t,r){var i=n._getScales(e,t,!1),o=i.xBarScale,a=i.yBarScale;return n._createBar(o,a,e,r)},n._getGraphData=function(e,t,r,i,o){return n._bars=n._xAxisType===Uu.NumericAxis?n._createNumericBars(r,i,o):n._createStringBars(r,i,o)},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},n._getAxisData=function(e){if(e&&e.yAxisDomainValues.length){var t=e.yAxisDomainValues;n._yMax=Math.max(t[t.length-1],n.props.yMaxValue||0)}},n.state={isCalloutVisible:!1,isLegendSelected:!1,isLegendHovered:!1,selectedLegendTitle:"",refSelected:null,dataForHoverCard:0,color:"",hoverXValue:"",YValueHover:[],xCalloutValue:"",yCalloutValue:"",activeXAxisDataPoint:""},n._handleMouseOut=n._handleMouseOut.bind(n),n._calloutId=pe("callout"),n._tooltipId=pe("VSBCTooltipId_"),n._adjustProps(),n._dataset=n._createDataSetLayer(),n._createLegendsForLine=jn((function(e){return n._getLineLegends(e)})),n}return r(t,e),t.prototype.componentDidUpdate=function(e){e.height===this.props.height&&e.width===this.props.width&&e.data===this.props.data||(this._adjustProps(),this._dataset=this._createDataSetLayer())},t.prototype.render=function(){var e=this;this._adjustProps();var t=this.props.data.some((function(e){return e.lineData&&e.lineData.length>0})),n=this._toFocusWholeStack(t),r=this.props.isCalloutForStack,o=void 0!==r&&r;this._dataset=this._createDataSetLayer();var a=this._getLegendData(this._points,this.props.theme.palette,this._createLegendsForLine(this.props.data)),l=i(i({isCalloutVisible:this.state.isCalloutVisible,directionalHint:3,id:"toolTip"+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,YValueHover:this.state.YValueHover,hoverXValue:this.state.hoverXValue,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0},this.props.calloutProps),rc(this.state.callOutAccessibilityData)),u={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return s.createElement(gh,i({},this.props,{points:this._dataset,chartType:zu.VerticalStackedBarChart,xAxisType:this._xAxisType,calloutProps:l,tickParams:u,legendBars:a,datasetForXAxisDomain:this._xAxisLabels,isCalloutForStack:n,barwidth:this._barWidth,focusZoneDirection:o||t?oc.horizontal:oc.vertical,getmargins:this._getMargins,getGraphData:this._getGraphData,getAxisData:this._getAxisData,customizedCallout:this._getCustomizedCallout(),onChartMouseLeave:this._handleChartMouseLeave,children:function(n){return s.createElement(s.Fragment,null,s.createElement("g",null,e._bars),s.createElement("g",null,t&&e._createLines(n.xScale,n.yScale,n.containerHeight,n.containerWidth)))}}))},t.prototype._adjustProps=function(){this._points=this.props.data||[],this._barWidth=this.props.barWidth||32,this._additionalSpace=.5*this._barWidth;var e=this.props.theme.palette;this._colors=this.props.colors||[e.blueLight,e.blue,e.blueMid,e.red,e.black],this._xAxisType=tc(this.props.data[0].xAxisPoint,!0),this._lineObject=this._getFormattedLineData(this.props.data)},t.prototype._createDataSetLayer=function(){var e=[],t=this._points.map((function(t){var n=0;return t.chartData.forEach((function(e){n+=e.data})),e.push(t.xAxisPoint),{x:t.xAxisPoint,y:n}}));return this._xAxisLabels=e,t},t.prototype._renderCallout=function(e){return e?s.createElement(uc,{XValue:e.xAxisCalloutData,Legend:e.legend,YValue:e.yAxisCalloutData,color:e.color,culture:this.props.culture}):null},t.prototype._onLegendClick=function(e){this.state.isLegendSelected?this.state.selectedLegendTitle===e?this.setState({isLegendSelected:!1,selectedLegendTitle:e}):this.setState({selectedLegendTitle:e}):this.setState({isLegendSelected:!0,selectedLegendTitle:e})},t.prototype._onLegendHover=function(e){!1===this.state.isLegendSelected&&this.setState({isLegendHovered:!0,selectedLegendTitle:e})},t.prototype._onLegendLeave=function(e){(e||!1===this.state.isLegendSelected)&&this.setState({isLegendHovered:!1,selectedLegendTitle:"",isLegendSelected:!e&&this.state.isLegendSelected})},t.prototype._getLegendData=function(e,t,n){var r=this;if(this.props.hideLegend)return s.createElement(s.Fragment,null);var o=[t.blueLight,t.blue,t.blueMid,t.red,t.black],a=[],l=this.props.allowHoverOnLegend,u=void 0===l||l;e.forEach((function(e){e.chartData.forEach((function(e){var t=e.color?e.color:o[Math.floor(4*Math.random()+1)];if(!(a.filter((function(n){return n.title===e.legend&&n.color===t})).length>0)){var n={title:e.legend,color:t,action:function(){r._onLegendClick(e.legend)},hoverAction:u?function(){return r._onLegendHover(e.legend)}:void 0,onMouseOutAction:u?function(e){return r._onLegendLeave(e)}:void 0};a.push(n)}}))}));var c=[];n&&n.length>0&&n.forEach((function(e){var t={title:e.title,color:e.color,isLineLegendInBarChart:!0,action:function(){r._onLegendClick(e.title)},hoverAction:u?function(){return r._onLegendHover(e.title)}:void 0,onMouseOutAction:u?function(e){return r._onLegendLeave(e)}:void 0};c.push(t)}));var d=c.concat(a);return s.createElement(kd,i({legends:d,overflowProps:this.props.legendsOverflowProps,enabledWrapLines:this.props.enabledLegendsWrapLines,focusZonePropsInHoverCard:this.props.focusZonePropsForLegendsInHoverCard,overflowText:this.props.legendsOverflowText},this.props.legendProps))},t.prototype._onRectHover=function(e,t,n,r){r.persist(),this._onRectFocusHover(e,t,n,r)},t.prototype._onRectFocusHover=function(e,t,n,r){(!1===this.state.isLegendSelected||this.state.isLegendSelected&&this.state.selectedLegendTitle===t.legend)&&this._calloutAnchorPoint!==t&&(this._calloutAnchorPoint=t,this.setState({refSelected:r,isCalloutVisible:!0,selectedLegendTitle:t.legend,dataForHoverCard:t.data,color:n,xCalloutValue:t.xAxisCalloutData?t.xAxisCalloutData:e,yCalloutValue:t.yAxisCalloutData,dataPointCalloutProps:t,callOutAccessibilityData:t.callOutAccessibilityData}))},t.prototype._onStackHover=function(e,t){t.persist(),this._onStackHoverFocus(e,t)},t.prototype._onStackHoverFocus=function(e,t){var n=e.lineData,r=void 0!==n&&n.length>0;r&&n.forEach((function(e){e.data=e.data||e.y,e.shouldDrawBorderBottom=!0})),this.setState({refSelected:t,isCalloutVisible:!0,YValueHover:r?a(a([],n.sort((function(e,t){return e.data<t.data?1:-1}))),e.chartData.slice().reverse()):e.chartData.slice().reverse(),hoverXValue:e.xAxisPoint,stackCalloutProps:e,activeXAxisDataPoint:e.xAxisPoint,callOutAccessibilityData:e.stackCallOutAccessibilityData})},t.prototype._onRectFocus=function(e,t,n,r){r.refElement&&this._onRectFocusHover(t,e,n,r.refElement)},t.prototype._onStackFocus=function(e,t){t.refElement&&this._onStackHoverFocus(e,t.refElement)},t.prototype._onClick=function(e,t){var n,r;null===(r=(n=this.props).onBarClick)||void 0===r||r.call(n,t,e),this.props.href&&(window.location.href=this.props.href)},t.prototype._getBarGapAndScale=function(e,t,n){var r=this.props.barGapMax,i=void 0===r?0:r,o=e.reduce((function(e,t){return e+t.data}),0),a=null!=n?n:t(o),s=i&&e.length-1,l=s&&Math.max(1,Math.min(i,.2*a/s));return{gapHeight:l,heightValueScale:(a-l*s)/o}},t}(s.Component),_p=b(yp,(function(e){var t=e.shouldHighlight,n=e.href,r=e.theme;return{opacityChangeOnHover:{opacity:t?"":"0.1",cursor:n?"pointer":"default"},tooltip:i(i({},r.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:r.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"})}})),xp=le(),bp=function(e){function t(t){var n=e.call(this,t)||this;return n._isRtl=ie(),n._getGraphData=function(e,t,r,i,o){var a=n._createX0Scale(i),s=n._createX1Scale(a),l=[];n._datasetForBars.forEach((function(e){l.push(n._buildGraph(e,a,s,r,o))})),n._groupedVerticalBarGraph=l},n._getMargins=function(e){return n.margins=e},n._createDataSetOfGVBC=function(e){var t=[],r=e.map((function(e){return e.name}));e[0].series.forEach((function(e){t.push(e.key)}));var i=n._createDataset(e);return{keys:t,xAxisLabels:r,datasetForBars:i}},n._getCustomizedCallout=function(){return n.props.onRenderCalloutPerDataPoint?n.props.onRenderCalloutPerDataPoint(n.state.dataPointCalloutProps):null},n._getOpacity=function(e){var t=!0;return(n.state.isLegendHovered||n.state.isLegendSelected)&&(t=n.state.titleForHoverCard===e),t?"":"0.1"},n._onBarHover=function(e,t,r){r.persist(),(!1===n.state.isLegendSelected||n.state.isLegendSelected&&n.state.titleForHoverCard===e.legend)&&n._calloutAnchorPoint!==e&&(n._calloutAnchorPoint=e,n.setState({refSelected:r,isCalloutVisible:!0,titleForHoverCard:e.legend,dataForHoverCard:e.data,color:e.color,xCalloutValue:e.xAxisCalloutData,yCalloutValue:e.yAxisCalloutData,dataPointCalloutProps:e,callOutAccessibilityData:n.props.isCalloutForStack?t.stackCallOutAccessibilityData:e.callOutAccessibilityData,YValueHover:t.groupSeries,hoverXValue:e.xAxisCalloutData}))},n._onBarLeave=function(){},n._handleChartMouseLeave=function(){n._calloutAnchorPoint=null,n.setState({isCalloutVisible:!1})},n._onBarFocus=function(e,t,r){(!1===n.state.isLegendSelected||n.state.isLegendSelected&&n.state.titleForHoverCard===e.legend)&&n._refArray.forEach((function(i,o){i.index===e.legend&&r===o&&n.setState({refSelected:i.refElement,isCalloutVisible:!0,titleForHoverCard:e.legend,dataForHoverCard:e.data,color:e.color,xCalloutValue:e.xAxisCalloutData,yCalloutValue:e.yAxisCalloutData,dataPointCalloutProps:e,callOutAccessibilityData:n.props.isCalloutForStack?t.stackCallOutAccessibilityData:e.callOutAccessibilityData,YValueHover:t.groupSeries,hoverXValue:e.xAxisCalloutData})}))},n._redirectToUrl=function(e){e&&(window.location.href=e)},n._buildGraph=function(e,t,r,i,o){var a,l=[],u=ga().domain([0,n._yMax]).range([0,i-n.margins.bottom-n.margins.top]);a=n.props.barwidth&&n.props.barwidth<r.bandwidth()?n.props.barwidth:r.bandwidth();var c=Object.keys(n._datasetForBars[0]).splice(0,n._keys.length);if(c.forEach((function(t,o){var d=e.indexNum*c.length+o,h=e[t];h.data&&l.push(s.createElement("rect",{className:n._classNames.opacityChangeOnHover,key:e.indexNum+"-"+o,height:Math.max(u(h.data),0),width:a,x:r(t),y:Math.max(i-n.margins.bottom-u(h.data),0),"data-is-focusable":!n.props.hideTooltip,opacity:n._getOpacity(h.legend),ref:function(e){n._refCallback(e,h.legend,d)},fill:h.color,onMouseOver:n._onBarHover.bind(n,h,e),onMouseMove:n._onBarHover.bind(n,h,e),onMouseOut:n._onBarLeave,onFocus:n._onBarFocus.bind(n,h,e,d),onBlur:n._onBarLeave,onClick:n.props.href?n._redirectToUrl.bind(n,n.props.href):h.onClick,"aria-labelledby":"toolTip"+n._calloutId,role:"text"}))})),!n.props.wrapXAxisLables&&n.props.showXAxisLablesTooltip){var d=Bu(o).call(t);try{document.getElementById(n._tooltipId)&&document.getElementById(n._tooltipId).remove()}catch(e){}var h={tooltipCls:n._classNames.tooltip,id:n._tooltipId,xAxis:d};d&&Zu(h)}var p=n._isCustomBarWidth?(t.bandwidth()-n._x1TotalBandWidth)/2:0;return s.createElement("g",{key:e.indexNum,transform:"translate("+(t(e.xAxisPoint)+p)+", 0)"},l)},n._createDataset=function(e){var t=[],r=[];return e.forEach((function(e,n){var o={},a={},s=[];e.series.forEach((function(e){o[e.key]=e.data,a[e.key]=i({},e),s.push(e)})),a.xAxisPoint=e.name,a.indexNum=n,a.groupSeries=s,a.stackCallOutAccessibilityData=e.stackCallOutAccessibilityData,t.push(a),r.push(o)})),n._dataset=r,t},n._createX0Scale=function(e){return Ji().domain(n._xAxisLabels).range(n._isRtl?[e-n.margins.right,n.margins.left]:[n.margins.left,e-n.margins.right]).padding(.1)},n._createX1Scale=function(e){var t=e.bandwidth();if(n.props.barwidth){var r=Object.keys(n._datasetForBars[0]).splice(0,n._keys.length),i=(n.props.barwidth+2.5)*r.length;n._isCustomBarWidth=i<e.bandwidth(),t=n._isCustomBarWidth?i:e.bandwidth(),n._x1TotalBandWidth=t}return Ji().domain(n._keys).range(n._isRtl?[t,0]:[0,t]).padding(.05)},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},n._getLegendData=function(e,t){var r=e,o=[t.blueLight,t.blue,t.blueMid,t.red,t.black],a=[];return r.forEach((function(e){e.series.forEach((function(e){var t=e.color?e.color:o[Math.floor(4*Math.random()+1)];if(!(a.filter((function(n){return n.title===e.legend&&n.color===t})).length>0)){var r={title:e.legend,color:t,action:function(){n._onLegendClick(e.legend)},hoverAction:function(){n._onLegendHover(e.legend)},onMouseOutAction:function(e){n._onLegendLeave(e)}};a.push(r)}}))})),s.createElement(kd,i({legends:a,overflowProps:n.props.legendsOverflowProps,enabledWrapLines:n.props.enabledLegendsWrapLines,focusZonePropsInHoverCard:n.props.focusZonePropsForLegendsInHoverCard},n.props.legendProps))},n._getAxisData=function(e){if(e&&e.yAxisDomainValues.length){var t=e.yAxisDomainValues;n._yMax=Math.max(t[t.length-1],n.props.yMaxValue||0)}},n._createSet=jn((function(e){return n._createDataSetOfGVBC(e)})),n.state={color:"",dataForHoverCard:0,isCalloutVisible:!1,isLegendSelected:!1,isLegendHovered:!1,refSelected:null,titleForHoverCard:"",xCalloutValue:"",yCalloutValue:"",YValueHover:[],hoverXValue:""},n._refArray=[],n._calloutId=pe("callout"),n._tooltipId=pe("GVBCTooltipId_"),n}return r(t,e),t.prototype.render=function(){var e=this,t=this.props.data,n=this._createSet(t),r=n.keys,o=n.xAxisLabels,a=n.datasetForBars;this._keys=r,this._xAxisLabels=o,this._datasetForBars=a,this._isNumeric=tc(t[0].name,!0);var l=this._getLegendData(t,this.props.theme.palette),u=Vi(this._dataset,(function(t){return Vi(e._keys,(function(e){return t[e]}))}));this._yMax=Math.max(u,this.props.yMaxValue||0),this._classNames=xp(this.props.styles,{theme:this.props.theme,href:this.props.href});var c=i(i(i({target:this.state.refSelected,isCalloutVisible:this.state.isCalloutVisible,directionalHint:3,id:"toolTip"+this._calloutId,gapSpace:15,isBeakVisible:!1,setInitialFocus:!0,color:this.state.color,Legend:this.state.titleForHoverCard,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}),rc(this.state.callOutAccessibilityData,"text",!1)),d={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return s.createElement(gh,i({},this.props,{points:this._datasetForBars,chartType:zu.GroupedVerticalBarChart,calloutProps:c,legendBars:l,xAxisType:this._isNumeric,datasetForXAxisDomain:this._xAxisLabels,tickParams:d,tickPadding:this.props.tickPadding||5,maxOfYVal:this._yMax,svgFocusZoneProps:{direction:oc.horizontal},customizedCallout:this._getCustomizedCallout(),getmargins:this._getMargins,getGraphData:this._getGraphData,getAxisData:this._getAxisData,onChartMouseLeave:this._handleChartMouseLeave,children:function(){return s.createElement("g",null,e._groupedVerticalBarGraph)}}))},t.prototype._refCallback=function(e,t,n){this._refArray[n]={index:t,refElement:e}},t.prototype._onLegendClick=function(e){this.state.isLegendSelected?this.state.titleForHoverCard===e?this.setState({isLegendSelected:!1,titleForHoverCard:e}):this.setState({titleForHoverCard:e}):this.setState({isLegendSelected:!0,titleForHoverCard:e})},t.prototype._onLegendHover=function(e){!1===this.state.isLegendSelected&&this.setState({isLegendHovered:!0,titleForHoverCard:e})},t.prototype._onLegendLeave=function(e){(e||!1===this.state.isLegendSelected)&&this.setState({isLegendHovered:!1,titleForHoverCard:"",isLegendSelected:!e&&this.state.isLegendSelected})},t}(s.Component),Cp=b(bp,(function(e){var t=e.theme;return{opacityChangeOnHover:{cursor:e.href?"pointer":"default"},tooltip:i(i({},t.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:t.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"})}})),Sp=le(),Ep=function(e){function t(t){var n=e.call(this,t)||this;n._rectRefArray={},n._getXandY=function(){var e="",t="";return n.props.data.forEach((function(n){if(n.data&&n.data.length>0)return e=n.data[0].x,t=n.data[0].y,{x:e,y:t}})),{x:e,y:t}},n._getOpacity=function(e){var t=!0;return(n.state.isLegendHovered||n.state.isLegendSelected)&&(t=e===n.state.activeLegend),t?"1":"0.1"},n._rectRefCallback=function(e,t,r){n._rectRefArray[t]={data:r,refElement:e}},n._onRectFocus=function(e,t){n.setState({target:n._rectRefArray[e].refElement,isCalloutVisible:!0,calloutYValue:""+t.rectText,calloutTextColor:n._colorScale(t.value),calloutLegend:t.legend,ratio:t.ratio||null,descriptionMessage:t.descriptionMessage||"",calloutId:e,callOutAccessibilityData:t.callOutAccessibilityData})},n._onRectMouseOver=function(e,t,r){r.persist(),n._calloutAnchorPoint!==t&&(n._calloutAnchorPoint=t,n.setState({target:n._rectRefArray[e].refElement,isCalloutVisible:!0,calloutYValue:""+t.rectText,calloutTextColor:n._colorScale(t.value),calloutLegend:t.legend,ratio:t.ratio||null,descriptionMessage:t.descriptionMessage||"",calloutId:e,callOutAccessibilityData:t.callOutAccessibilityData}))},n._onRectBlurOrMouseOut=function(){},n._handleChartMouseLeave=function(){n._calloutAnchorPoint=null,n.setState({isCalloutVisible:!1})},n._createRectangles=function(){var e=[];return n._stringYAxisDataPoints.slice().reverse().forEach((function(t,r){n._dataSet[t].forEach((function(t,o){var a=""+r+o,l=s.createElement("g",i({key:a},n.state.calloutId&&{"aria-labelledby":""+n.state.calloutId},{"data-is-focusable":!0,fillOpacity:n._getOpacity(t.legend),transform:"translate("+n._xAxisScale(t.x)+", "+n._yAxisScale(t.y)+")",ref:function(e){n._rectRefCallback(e,a,t)},onFocus:n._onRectFocus.bind(n,a,t),onBlur:n._onRectBlurOrMouseOut,onMouseOver:n._onRectMouseOver.bind(n,a,t),onMouseOut:n._onRectBlurOrMouseOut}),s.createElement("rect",{fill:n._colorScale(t.value),width:n._xAxisScale.bandwidth(),height:n._yAxisScale.bandwidth(),onClick:t.onClick}),s.createElement("text",{dominantBaseline:"middle",textAnchor:"middle",className:n._classNames.text,transform:"translate("+n._xAxisScale.bandwidth()/2+", "+n._yAxisScale.bandwidth()/2+")"},ic(t.rectText,n.props.culture)));e.push(l)}))})),e},n._onLegendHover=function(e){!1===n.state.isLegendSelected&&n.setState({activeLegend:e,isLegendHovered:!0})},n._onLegendLeave=function(e){(e||!1===n.state.isLegendSelected)&&n.setState({activeLegend:"",isLegendHovered:!1,isLegendSelected:!e&&n.state.isLegendSelected})},n._onLegendClick=function(e){n.state.isLegendSelected?n.state.activeLegend===e?n.setState({activeLegend:"",isLegendSelected:!1}):n.setState({activeLegend:e}):n.setState({activeLegend:e,isLegendSelected:!0,isLegendHovered:!1})},n._createLegendBars=function(){var e=n.props,t=e.data,r=e.legendProps,o=[];return t.forEach((function(e){var t={title:e.legend,color:n._colorScale(e.value),action:function(){n._onLegendClick(e.legend)},hoverAction:function(){n._onLegendHover(e.legend)},onMouseOutAction:function(e){n._onLegendLeave(e)}};o.push(t)})),s.createElement(kd,i({},r,{legends:o}))},n._getColorScale=function(){var e=n.props,t=e.domainValuesForColorScale,r=e.rangeValuesForColorScale;return ga().domain(t).range(r)},n._getXIndex=function(e){return n._xAxisType===Uu.DateAxis?""+e.getTime():n._xAxisType===Uu.StringAxis?e:n._xAxisType===Uu.NumericAxis?""+e:""},n._getYIndex=function(e){return n._yAxisType===ju.DateAxis?""+e.getTime():n._yAxisType===ju.StringAxis?e:n._yAxisType===ju.NumericAxis?""+e:""},n._createNewDataSet=function(e,t,r,o,s){var l=[];e.forEach((function(e){e.data.forEach((function(t){l.push(i(i({},t),{legend:e.legend}))}))}));var u={},c={},d={};return l.forEach((function(e){var t=n._getXIndex(e.x),r=n._getYIndex(e.y);d[t]="1",c[r]="1",u[r]?u[r]=a(a([],u[r]),[e]):u[r]=[e]})),Object.keys(u).forEach((function(e){u[e].sort((function(e,t){return n._xAxisType===Uu.StringAxis?e.x.toLowerCase()>t.x.toLowerCase()?1:-1:n._xAxisType===Uu.DateAxis?e.x.getTime()-t.x.getTime():n._xAxisType===Uu.NumericAxis?+e.x>+t.x?1:-1:e.x>t.x?1:-1})).forEach((function(e){n._xAxisType===Uu.DateAxis&&(e.x=n._getStringFormattedDate(e.x,t)),n._xAxisType===Uu.NumericAxis&&(e.x=n._getStringFormattedNumber(e.x,r)),n._xAxisType===Uu.StringAxis&&(e.x=n._getFormattedLabelForXAxisDataPoint(e.x)),n._yAxisType===ju.DateAxis&&(e.y=n._getStringFormattedDate(e.y,o)),n._yAxisType===ju.NumericAxis&&(e.y=n._getStringFormattedNumber(e.y,s)),n._yAxisType===ju.StringAxis&&(e.y=n._getFormattedLabelForYAxisDataPoint(e.y))}))})),Object.keys(u).forEach((function(e){n._yAxisType===ju.DateAxis?u[n._getStringFormattedDate(e,o)]=u[e]:n._yAxisType===ju.NumericAxis?u[""+n._getStringFormattedNumber(e,s)]=u[e]:u[n._getFormattedLabelForYAxisDataPoint(e)]=u[e]})),{dataSet:u,yAxisPoints:n._getYAxisDataPoints(c),xAxisPoints:n._getXAxisDataPoints(d)}},n._getXAxisDataPoints=function(e){return Object.keys(e).sort((function(e,t){return n._xAxisType===Uu.DateAxis||n._xAxisType===Uu.NumericAxis?+e-+t:e.toLowerCase()>t.toLowerCase()?1:-1})).map((function(e){return n._xAxisType===Uu.DateAxis?n._getStringFormattedDate(e,n.props.xAxisDateFormatString):n._xAxisType===Uu.NumericAxis?n._getStringFormattedNumber(e,n.props.xAxisNumberFormatString):n._getFormattedLabelForXAxisDataPoint(e)}))},n._getYAxisDataPoints=function(e){return Object.keys(e).sort((function(e,t){return n._yAxisType===ju.DateAxis||n._yAxisType===ju.NumericAxis?+e-+t:e.toLowerCase()>t.toLowerCase()?1:-1})).map((function(e){return n._yAxisType===ju.DateAxis?n._getStringFormattedDate(e,n.props.yAxisDateFormatString):n._yAxisType===ju.NumericAxis?n._getStringFormattedNumber(e,n.props.yAxisNumberFormatString):n._getFormattedLabelForYAxisDataPoint(e)}))},n._getStringFormattedDate=function(e,t){var n=new Date;return n.setTime(+e),ds(t||"%b/%d")(n)},n._getStringFormattedNumber=function(e,t){return ca(t||".2~s")(+e)},n._getFormattedLabelForXAxisDataPoint=function(e){var t=n.props.xAxisStringFormatter;return t?t(e):e},n._getFormattedLabelForYAxisDataPoint=function(e){var t=n.props.yAxisStringFormatter;return t?t(e):e},n._closeCallout=function(){n.setState({isCalloutVisible:!1})};var r=n._getXandY(),o=r.x,l=r.y;return n._xAxisType=tc(o,!0),n._yAxisType=tc(l,!1),n._createSet=jn((function(e,t,r,i,o){return n._createNewDataSet(e,t,r,i,o)})),n.state={isLegendSelected:!1,activeLegend:"",isLegendHovered:!1,isCalloutVisible:!1,target:null,calloutLegend:"",calloutTextColor:"",calloutYValue:"",ratio:null,descriptionMessage:"",calloutId:""},n}return r(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.data,r=t.xAxisDateFormatString,o=t.xAxisNumberFormatString,a=t.yAxisDateFormatString,l=t.yAxisNumberFormatString;this._colorScale=this._getColorScale();var u=this._createSet(n,r,o,a,l),c=u.dataSet,d=u.xAxisPoints,h=u.yAxisPoints;this._dataSet=c,this._stringYAxisDataPoints=h,this._stringXAxisDataPoints=d,this._classNames=Sp(this.props.styles,{theme:this.props.theme});var p=i(i(i(i({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:3,onDismiss:this._closeCallout}),rc(this.state.callOutAccessibilityData,"text",!1)),{preventDismissOnLostFocus:!0}),f=i(i({},this.state.ratio&&{ratio:this.state.ratio}),{descriptionMessage:this.state.descriptionMessage});return s.createElement(gh,i({},this.props,{points:n,chartType:zu.HeatMapChart,xAxisType:Uu.StringAxis,yAxisType:ju.StringAxis,calloutProps:p,chartHoverProps:f,styles:this._classNames.subComponentStyles.cartesianStyles,datasetForXAxisDomain:this._stringXAxisDataPoints,stringDatasetForYAxisDomain:this._stringYAxisDataPoints,xAxisTickCount:this._stringXAxisDataPoints.length,xAxistickSize:0,xAxisPadding:.02,yAxisPadding:.02,svgFocusZoneProps:{direction:oc.bidirectional},legendBars:this._createLegendBars(),onChartMouseLeave:this._handleChartMouseLeave,children:function(t){return e._xAxisScale=t.xScale,e._yAxisScale=t.yScale,e._createRectangles()}}))},t}(s.Component),Lp=b(Ep,(function(e){var t=e.theme;return{root:{},text:[t.fonts.medium,{pointerEvents:"none",fill:t.palette.white}],subComponentStyles:{cartesianStyles:{},calloutStyles:{root:{maxWidth:"238px"}}}}}));function kp(e,t){return e.sourceLinks.length?e.depth:t-1}function Ap(e){return function(){return e}}function wp(e,t){return Tp(e.source,t.source)||e.index-t.index}function Dp(e,t){return Tp(e.target,t.target)||e.index-t.index}function Tp(e,t){return e.y0-t.y0}function Mp(e){return e.value}function Pp(e){return e.index}function Fp(e){return e.nodes}function Ip(e){return e.links}function Op(e,t){const n=e.get(t);if(!n)throw new Error("missing: "+t);return n}function Np({nodes:e}){for(const t of e){let e=t.y0,n=e;for(const n of t.sourceLinks)n.y0=e+n.width/2,e+=n.width;for(const e of t.targetLinks)e.y1=n+e.width/2,n+=e.width}}function Hp(e){return e.source}function Rp(e){return e.target}function Vp(e,t,n,r,i){e.moveTo(t,n),e.bezierCurveTo(t=(t+r)/2,n,t,i,r,i)}function Bp(e){return[e.source.x1,e.y0]}function Wp(e){return[e.target.x0,e.y1]}function zp(){return function(e){var t=Hp,n=Rp,r=Hh,i=Rh,o=null;function a(){var a,s=Mh.call(arguments),l=t.apply(this,s),u=n.apply(this,s);if(o||(o=a=Gd()),e(o,+r.apply(this,(s[0]=l,s)),+i.apply(this,s),+r.apply(this,(s[0]=u,s)),+i.apply(this,s)),a)return o=null,a+""||null}return a.source=function(e){return arguments.length?(t=e,a):t},a.target=function(e){return arguments.length?(n=e,a):n},a.x=function(e){return arguments.length?(r="function"==typeof e?e:Ad(+e),a):r},a.y=function(e){return arguments.length?(i="function"==typeof e?e:Ad(+e),a):i},a.context=function(e){return arguments.length?(o=null==e?null:e,a):o},a}(Vp).source(Bp).target(Wp)}var Up=le(),jp=function(e){function t(t){var n=e.call(this,t)||this;return n.state={containerHeight:0,containerWidth:0},n}return r(t,e),t.prototype.componentDidMount=function(){this._fitParentContainer()},t.prototype.componentDidUpdate=function(e){e.shouldResize!==this.props.shouldResize&&this._fitParentContainer()},t.prototype.componentWillUnmount=function(){cancelAnimationFrame(this._reqID)},t.prototype.render=function(){var e=this,t=this.props,n=t.theme,r=t.className,i=t.styles,o=t.pathColor;this._classNames=Up(i,{theme:n,width:this.state.containerWidth,height:this.state.containerHeight,pathColor:o,className:r});var a=this.state.containerWidth-0-0,l=this.state.containerHeight-10-10>0?this.state.containerHeight-10-10:0;(function(){let e,t,n,r=0,i=0,o=1,a=1,s=24,l=8,u=Pp,c=kp,d=Fp,h=Ip,p=6;function f(){const e={nodes:d.apply(null,arguments),links:h.apply(null,arguments)};return g(e),v(e),m(e),y(e),_(e),Np(e),e}function g({nodes:e,links:t}){for(const[t,n]of e.entries())n.index=t,n.sourceLinks=[],n.targetLinks=[];const r=new Map(e.map(((t,n)=>[u(t,n,e),t])));for(const[e,n]of t.entries()){n.index=e;let{source:t,target:i}=n;"object"!=typeof t&&(t=n.source=Op(r,t)),"object"!=typeof i&&(i=n.target=Op(r,i)),t.sourceLinks.push(n),i.targetLinks.push(n)}if(null!=n)for(const{sourceLinks:t,targetLinks:r}of e)t.sort(n),r.sort(n)}function v({nodes:e}){for(const t of e)t.value=void 0===t.fixedValue?Math.max(Wi(t.sourceLinks,Mp),Wi(t.targetLinks,Mp)):t.fixedValue}function m({nodes:e}){const t=e.length;let n=new Set(e),r=new Set,i=0;for(;n.size;){for(const e of n){e.depth=i;for(const{target:t}of e.sourceLinks)r.add(t)}if(++i>t)throw new Error("circular link");n=r,r=new Set}}function y({nodes:e}){const t=e.length;let n=new Set(e),r=new Set,i=0;for(;n.size;){for(const e of n){e.height=i;for(const{source:t}of e.targetLinks)r.add(t)}if(++i>t)throw new Error("circular link");n=r,r=new Set}}function _(n){const u=function({nodes:e}){const n=Vi(e,(e=>e.depth))+1,i=(o-r-s)/(n-1),a=new Array(n);for(const t of e){const e=Math.max(0,Math.min(n-1,Math.floor(c.call(null,t,n))));t.layer=e,t.x0=r+e*i,t.x1=t.x0+s,a[e]?a[e].push(t):a[e]=[t]}if(t)for(const e of a)e.sort(t);return a}(n);e=Math.min(l,(a-i)/(Vi(u,(e=>e.length))-1)),function(t){const n=Bi(t,(t=>(a-i-(t.length-1)*e)/Wi(t,Mp)));for(const r of t){let t=i;for(const i of r){i.y0=t,i.y1=t+i.value*n,t=i.y1+e;for(const e of i.sourceLinks)e.width=e.value*n}t=(a-t+e)/(r.length+1);for(let e=0;e<r.length;++e){const n=r[e];n.y0+=t*(e+1),n.y1+=t*(e+1)}k(r)}}(u);for(let e=0;e<p;++e){const t=Math.pow(.99,e),n=Math.max(1-t,(e+1)/p);b(u,t,n),x(u,t,n)}}function x(e,n,r){for(let i=1,o=e.length;i<o;++i){const o=e[i];for(const e of o){let t=0,r=0;for(const{source:n,value:i}of e.targetLinks){let o=i*(e.layer-n.layer);t+=A(n,e)*o,r+=o}if(!(r>0))continue;let i=(t/r-e.y0)*n;e.y0+=i,e.y1+=i,L(e)}void 0===t&&o.sort(Tp),C(o,r)}}function b(e,n,r){for(let i=e.length-2;i>=0;--i){const o=e[i];for(const e of o){let t=0,r=0;for(const{target:n,value:i}of e.sourceLinks){let o=i*(n.layer-e.layer);t+=w(e,n)*o,r+=o}if(!(r>0))continue;let i=(t/r-e.y0)*n;e.y0+=i,e.y1+=i,L(e)}void 0===t&&o.sort(Tp),C(o,r)}}function C(t,n){const r=t.length>>1,o=t[r];E(t,o.y0-e,r-1,n),S(t,o.y1+e,r+1,n),E(t,a,t.length-1,n),S(t,i,0,n)}function S(t,n,r,i){for(;r<t.length;++r){const o=t[r],a=(n-o.y0)*i;a>1e-6&&(o.y0+=a,o.y1+=a),n=o.y1+e}}function E(t,n,r,i){for(;r>=0;--r){const o=t[r],a=(o.y1-n)*i;a>1e-6&&(o.y0-=a,o.y1-=a),n=o.y0-e}}function L({sourceLinks:e,targetLinks:t}){if(void 0===n){for(const{source:{sourceLinks:e}}of t)e.sort(Dp);for(const{target:{targetLinks:t}}of e)t.sort(wp)}}function k(e){if(void 0===n)for(const{sourceLinks:t,targetLinks:n}of e)t.sort(Dp),n.sort(wp)}function A(t,n){let r=t.y0-(t.sourceLinks.length-1)*e/2;for(const{target:i,width:o}of t.sourceLinks){if(i===n)break;r+=o+e}for(const{source:e,width:i}of n.targetLinks){if(e===t)break;r-=i}return r}function w(t,n){let r=n.y0-(n.targetLinks.length-1)*e/2;for(const{source:i,width:o}of n.targetLinks){if(i===t)break;r+=o+e}for(const{target:e,width:i}of t.sourceLinks){if(e===n)break;r-=i}return r}return f.update=function(e){return Np(e),e},f.nodeId=function(e){return arguments.length?(u="function"==typeof e?e:Ap(e),f):u},f.nodeAlign=function(e){return arguments.length?(c="function"==typeof e?e:Ap(e),f):c},f.nodeSort=function(e){return arguments.length?(t=e,f):t},f.nodeWidth=function(e){return arguments.length?(s=+e,f):s},f.nodePadding=function(t){return arguments.length?(l=e=+t,f):l},f.nodes=function(e){return arguments.length?(d="function"==typeof e?e:Ap(e),f):d},f.links=function(e){return arguments.length?(h="function"==typeof e?e:Ap(e),f):h},f.linkSort=function(e){return arguments.length?(n=e,f):n},f.size=function(e){return arguments.length?(r=i=0,o=+e[0],a=+e[1],f):[o-r,a-i]},f.extent=function(e){return arguments.length?(r=+e[0][0],o=+e[1][0],i=+e[0][1],a=+e[1][1],f):[[r,i],[o,a]]},f.iterations=function(e){return arguments.length?(p=+e,f):p},f})().nodeWidth(5).nodePadding(6).extent([[1,1],[a-1,l-6]])(this.props.data.SankeyChartData);var u=this._createNodes(a),c=this._createLinks();return s.createElement("div",{className:this._classNames.root,role:"presentation",ref:function(t){return e.chartContainer=t}},s.createElement("svg",{width:a,height:l,id:pe("sankeyChart")},s.createElement("g",{className:this._classNames.nodes},u),s.createElement("g",{className:this._classNames.links,strokeOpacity:.2},c)))},t.prototype._createLinks=function(){var e=[];return this.props.data.SankeyChartData&&this.props.data.SankeyChartData.links.forEach((function(t,n){var r=zp()(t),i=s.createElement("path",{key:n,d:r||void 0,strokeWidth:Math.max(1,t.width),id:pe("link")},s.createElement("title",null,s.createElement("text",null,t.source.name+" → "+t.target.name+"\n"+t.value)));e.push(i)})),e},t.prototype._createNodes=function(e){var t=[];if(this.props.data.SankeyChartData)return this.props.data.SankeyChartData.nodes.forEach((function(n,r){var i=n.y1-n.y0>0?n.y1-n.y0:0,o=s.createElement("g",{id:pe("nodeGElement"),key:r},s.createElement("rect",{x:n.x0,y:n.y0,height:i,width:n.x1-n.x0,fill:n.color,id:pe("nodeBar")}),s.createElement("text",{x:n.x0<e/2?n.x1+6:n.x0-6,y:(n.y1+n.y0)/2,dy:"0.35em",textAnchor:n.x0<e/2?"start":"end"},n.name),s.createElement("title",null,s.createElement("text",null,n.name+"\n"+n.value)));t.push(o)})),t},t.prototype._fitParentContainer=function(){var e=this,t=this.state,n=t.containerWidth,r=t.containerHeight;this._reqID=requestAnimationFrame((function(){var t=e.props.parentRef?e.props.parentRef:e.chartContainer,i=t.getBoundingClientRect().width,o=t.getBoundingClientRect().height;(n!==i||r!==o)&&e.setState({containerWidth:i,containerHeight:o})}))},t}(s.Component),Yp=b(jp,(function(e){var t=e.className,n=e.theme,r=e.pathColor;return{root:[n.fonts.medium,{display:"flex",width:"100%",height:"100%",flexDirection:"column",overflow:"hidden"},t],links:{stroke:r||n.palette.blue,fill:"none"}}}));Ar("@fluentui/react-charting","5.10.0"),FluentUIReactCharting=t}();
2
+ var FluentUIReactCharting;!function(){"use strict";var e={d:function(t,n){for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})}};e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),e.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},e.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var t={};e.r(t),e.d(t,{AreaChart:function(){return Qh},CartesianChart:function(){return gh},ChartHoverCard:function(){return uc},DonutChart:function(){return dh},GroupedVerticalBarChart:function(){return Sp},HeatMapChart:function(){return Lp},HorizontalBarChart:function(){return Oc},Legends:function(){return Ld},LineChart:function(){return Th},MultiStackedBarChart:function(){return pp},PieChart:function(){return sp},SankeyChart:function(){return Xp},Shape:function(){return Sd},Sparkline:function(){return Zp},StackedBarChart:function(){return cp},Textbox:function(){return kh},VerticalBarChart:function(){return vp},VerticalStackedBarChart:function(){return xp},getChartHoverCardStyles:function(){return lc}});var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},n(e,t)};function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var i=function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},i.apply(this,arguments)};function o(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function a(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}Object.create,Object.create;var s=React;function l(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(e&&1===e.length&&e[0]&&!e[0].subComponentStyles)return e[0];for(var n={},r={},i=0,o=e;i<o.length;i++){var s=o[i];if(s)for(var u in s)if(s.hasOwnProperty(u)){if("subComponentStyles"===u&&void 0!==s.subComponentStyles){var c=s.subComponentStyles;for(var d in c)c.hasOwnProperty(d)&&(r.hasOwnProperty(d)?r[d].push(c[d]):r[d]=[c[d]]);continue}var h=n[u],p=s[u];n[u]=void 0===h?p:a(a([],Array.isArray(h)?h:[h]),Array.isArray(p)?p:[p])}}if(Object.keys(r).length>0){n.subComponentStyles={};var f=n.subComponentStyles,g=function(e){if(r.hasOwnProperty(e)){var t=r[e];f[e]=function(e){return l.apply(void 0,t.map((function(t){return"function"==typeof t?t(e):t})))}}};for(var d in r)g(d)}return n}var u=void 0;try{u=window}catch(e){}function c(e){if(void 0!==u){var t=e;return t&&t.ownerDocument&&t.ownerDocument.defaultView?t.ownerDocument.defaultView:u}}var d=0,h=function(){function e(){}return e.getValue=function(e,t){var n=p();return void 0===n[e]&&(n[e]="function"==typeof t?t():t),n[e]},e.setValue=function(e,t){var n=p(),r=n.__callbacks__,i=n[e];if(t!==i){n[e]=t;var o={oldValue:i,value:t,key:e};for(var a in r)r.hasOwnProperty(a)&&r[a](o)}return t},e.addChangeListener=function(e){var t=e.__id__,n=f();t||(t=e.__id__=String(d++)),n[t]=e},e.removeChangeListener=function(e){delete f()[e.__id__]},e}();function p(){var e,t=c()||{};return t.__globalSettings__||(t.__globalSettings__=((e={}).__callbacks__={},e)),t.__globalSettings__}function f(){return p().__callbacks__}var g={settings:{},scopedSettings:{},inCustomizerContext:!1},m=h.getValue("customizations",{settings:{},scopedSettings:{},inCustomizerContext:!1}),v=[],y=function(){function e(){}return e.reset=function(){m.settings={},m.scopedSettings={}},e.applySettings=function(t){m.settings=i(i({},m.settings),t),e._raiseChange()},e.applyScopedSettings=function(t,n){m.scopedSettings[t]=i(i({},m.scopedSettings[t]),n),e._raiseChange()},e.getSettings=function(e,t,n){void 0===n&&(n=g);for(var r={},i=t&&n.scopedSettings[t]||{},o=t&&m.scopedSettings[t]||{},a=0,s=e;a<s.length;a++){var l=s[a];r[l]=i[l]||n.settings[l]||o[l]||m.settings[l]}return r},e.applyBatchedUpdates=function(t,n){e._suppressUpdates=!0;try{t()}catch(e){}e._suppressUpdates=!1,n||e._raiseChange()},e.observe=function(e){v.push(e)},e.unobserve=function(e){v=v.filter((function(t){return t!==e}))},e._raiseChange=function(){e._suppressUpdates||v.forEach((function(e){return e()}))},e}(),_=s.createContext({customizations:{inCustomizerContext:!1,settings:{},scopedSettings:{}}});var x=["theme","styles"];function b(e,t,n,r,a){var u=(r=r||{scope:"",fields:void 0}).scope,c=r.fields,d=void 0===c?x:c,h=s.forwardRef((function(r,a){var c,h,p,f,g,m,v=s.useRef(),x=(c=d,h=u,p=s.useState(0)[1],f=function(){return p((function(e){return++e}))},g=s.useContext(_).customizations,m=g.inCustomizerContext,s.useEffect((function(){return m||y.observe(f),function(){m||y.unobserve(f)}}),[m]),y.getSettings(c,h,g)),b=x.styles,C=(x.dir,o(x,["styles","dir"])),S=n?n(r):void 0,E=v.current&&v.current.__cachedInputs__||[],k=r.styles;if(!v.current||b!==E[1]||k!==E[2]){var L=function(e){return function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=[],i=0,o=t;i<o.length;i++){var a=o[i];a&&r.push("function"==typeof a?a(e):a)}return 1===r.length?r[0]:r.length?l.apply(void 0,r):{}}(e,t,b,k)};L.__cachedInputs__=[t,b,k],L.__noStyleOverride__=!b&&!k,v.current=L}return s.createElement(e,i({ref:a},C,S,r,{styles:v.current}))}));h.displayName="Styled"+(e.displayName||e.name);var p=a?s.memo(h):h;return h.displayName&&(p.displayName=h.displayName),p}var C,S="undefined"!=typeof navigator&&/rv:11.0/.test(navigator.userAgent),E={};try{E=window||{}}catch(M){}var k=function(){function e(e,t){var n,r,o,a,s,l;this._rules=[],this._preservedRules=[],this._counter=0,this._keyToClassName={},this._onInsertRuleCallbacks=[],this._onResetCallbacks=[],this._classNameToArgs={},this._config=i({injectionMode:"undefined"==typeof document?0:1,defaultPrefix:"css",namespace:void 0,cspSettings:void 0},e),this._classNameToArgs=null!==(n=null==t?void 0:t.classNameToArgs)&&void 0!==n?n:this._classNameToArgs,this._counter=null!==(r=null==t?void 0:t.counter)&&void 0!==r?r:this._counter,this._keyToClassName=null!==(a=null!==(o=this._config.classNameCache)&&void 0!==o?o:null==t?void 0:t.keyToClassName)&&void 0!==a?a:this._keyToClassName,this._preservedRules=null!==(s=null==t?void 0:t.preservedRules)&&void 0!==s?s:this._preservedRules,this._rules=null!==(l=null==t?void 0:t.rules)&&void 0!==l?l:this._rules}return e.getInstance=function(){if(!(C=E.__stylesheet__)||C._lastStyleElement&&C._lastStyleElement.ownerDocument!==document){var t=(null==E?void 0:E.FabricConfig)||{},n=new e(t.mergeStyles,t.serializedStylesheet);C=n,E.__stylesheet__=n}return C},e.prototype.serialize=function(){return JSON.stringify({classNameToArgs:this._classNameToArgs,counter:this._counter,keyToClassName:this._keyToClassName,preservedRules:this._preservedRules,rules:this._rules})},e.prototype.setConfig=function(e){this._config=i(i({},this._config),e)},e.prototype.onReset=function(e){var t=this;return this._onResetCallbacks.push(e),function(){t._onResetCallbacks=t._onResetCallbacks.filter((function(t){return t!==e}))}},e.prototype.onInsertRule=function(e){var t=this;return this._onInsertRuleCallbacks.push(e),function(){t._onInsertRuleCallbacks=t._onInsertRuleCallbacks.filter((function(t){return t!==e}))}},e.prototype.getClassName=function(e){var t=this._config.namespace;return(t?t+"-":"")+(e||this._config.defaultPrefix)+"-"+this._counter++},e.prototype.cacheClassName=function(e,t,n,r){this._keyToClassName[t]=e,this._classNameToArgs[e]={args:n,rules:r}},e.prototype.classNameFromKey=function(e){return this._keyToClassName[e]},e.prototype.getClassNameCache=function(){return this._keyToClassName},e.prototype.argsFromClassName=function(e){var t=this._classNameToArgs[e];return t&&t.args},e.prototype.insertedRulesFromClassName=function(e){var t=this._classNameToArgs[e];return t&&t.rules},e.prototype.insertRule=function(e,t){var n=this._config.injectionMode,r=0!==n?this._getStyleElement():void 0;if(t&&this._preservedRules.push(e),r)switch(n){case 1:var i=r.sheet;try{i.insertRule(e,i.cssRules.length)}catch(e){}break;case 2:r.appendChild(document.createTextNode(e))}else this._rules.push(e);this._config.onInsertRule&&this._config.onInsertRule(e),this._onInsertRuleCallbacks.forEach((function(e){return e()}))},e.prototype.getRules=function(e){return(e?this._preservedRules.join(""):"")+this._rules.join("")},e.prototype.reset=function(){this._rules=[],this._counter=0,this._classNameToArgs={},this._keyToClassName={},this._onResetCallbacks.forEach((function(e){return e()}))},e.prototype.resetKeys=function(){this._keyToClassName={}},e.prototype._getStyleElement=function(){var e=this;return this._styleElement||"undefined"==typeof document||(this._styleElement=this._createStyleElement(),S||window.requestAnimationFrame((function(){e._styleElement=void 0}))),this._styleElement},e.prototype._createStyleElement=function(){var e=document.head,t=document.createElement("style"),n=null;t.setAttribute("data-merge-styles","true");var r=this._config.cspSettings;if(r&&r.nonce&&t.setAttribute("nonce",r.nonce),this._lastStyleElement)n=this._lastStyleElement.nextElementSibling;else{var i=this._findPlaceholderStyleTag();n=i?i.nextElementSibling:e.childNodes[0]}return e.insertBefore(t,e.contains(n)?n:null),this._lastStyleElement=t,t},e.prototype._findPlaceholderStyleTag=function(){var e=document.head;return e?e.querySelector("style[data-merge-styles]"):null},e}();function L(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=[],r=[],i=k.getInstance();function o(e){for(var t=0,a=e;t<a.length;t++){var s=a[t];if(s)if("string"==typeof s)if(s.indexOf(" ")>=0)o(s.split(" "));else{var l=i.argsFromClassName(s);l?o(l):-1===n.indexOf(s)&&n.push(s)}else Array.isArray(s)?o(s):"object"==typeof s&&r.push(s)}}return o(e),{classes:n,objects:r}}var A,w={},D={"user-select":1};function T(e,t){var n=function(){var e;if(!A){var t="undefined"!=typeof document?document:void 0,n="undefined"!=typeof navigator?navigator:void 0,r=null===(e=null==n?void 0:n.userAgent)||void 0===e?void 0:e.toLowerCase();A=t?{isWebkit:!(!t||!("WebkitAppearance"in t.documentElement.style)),isMoz:!!(r&&r.indexOf("firefox")>-1),isOpera:!!(r&&r.indexOf("opera")>-1),isMs:!(!n||!/rv:11.0/i.test(n.userAgent)&&!/Edge\/\d./i.test(navigator.userAgent))}:{isWebkit:!0,isMoz:!0,isOpera:!0,isMs:!0}}return A}(),r=e[t];if(D[r]){var i=e[t+1];D[r]&&(n.isWebkit&&e.push("-webkit-"+r,i),n.isMoz&&e.push("-moz-"+r,i),n.isMs&&e.push("-ms-"+r,i),n.isOpera&&e.push("-o-"+r,i))}}var M,P=["column-count","font-weight","flex","flex-grow","flex-shrink","fill-opacity","opacity","order","z-index","zoom"];function F(e,t){var n=e[t],r=e[t+1];if("number"==typeof r){var i=P.indexOf(n)>-1,o=n.indexOf("--")>-1,a=i||o?"":"px";e[t+1]=""+r+a}}var I="left",O="right",N=((M={}).left=O,M.right=I,M),H={"w-resize":"e-resize","sw-resize":"se-resize","nw-resize":"ne-resize"};function R(e,t,n){if(e.rtl){var r=t[n];if(!r)return;var i=t[n+1];if("string"==typeof i&&i.indexOf("@noflip")>=0)t[n+1]=i.replace(/\s*(?:\/\*\s*)?\@noflip\b(?:\s*\*\/)?\s*?/g,"");else if(r.indexOf(I)>=0)t[n]=r.replace(I,O);else if(r.indexOf(O)>=0)t[n]=r.replace(O,I);else if(String(i).indexOf(I)>=0)t[n+1]=i.replace(I,O);else if(String(i).indexOf(O)>=0)t[n+1]=i.replace(O,I);else if(N[r])t[n]=N[r];else if(H[i])t[n+1]=H[i];else switch(r){case"margin":case"padding":t[n+1]=function(e){if("string"==typeof e){var t=e.split(" ");if(4===t.length)return t[0]+" "+t[3]+" "+t[2]+" "+t[1]}return e}(i);break;case"box-shadow":t[n+1]=function(e,t){var n=e.split(" "),r=parseInt(n[0],10);return n[0]=n[0].replace(String(r),String(-1*r)),n.join(" ")}(i)}}}function V(e){var t=e&&e["&"];return t?t.displayName:void 0}var B,W=/\:global\((.+?)\)/g;function z(e,t){return e.indexOf(":global(")>=0?e.replace(W,"$1"):0===e.indexOf(":")?t+e:e.indexOf("&")<0?t+" "+e:e}function U(e,t,n,r){void 0===t&&(t={__order:[]}),0===n.indexOf("@")?j([r],t,n=n+"{"+e):n.indexOf(",")>-1?function(e){if(!W.test(e))return e;for(var t=[],n=/\:global\((.+?)\)/g,r=null;r=n.exec(e);)r[1].indexOf(",")>-1&&t.push([r.index,r.index+r[0].length,r[1].split(",").map((function(e){return":global("+e.trim()+")"})).join(", ")]);return t.reverse().reduce((function(e,t){var n=t[0],r=t[1],i=t[2];return e.slice(0,n)+i+e.slice(r)}),e)}(n).split(",").map((function(e){return e.trim()})).forEach((function(n){return j([r],t,z(n,e))})):j([r],t,z(n,e))}function j(e,t,n){void 0===t&&(t={__order:[]}),void 0===n&&(n="&");var r=k.getInstance(),i=t[n];i||(i={},t[n]=i,t.__order.push(n));for(var o=0,a=e;o<a.length;o++){var s=a[o];if("string"==typeof s){var l=r.argsFromClassName(s);l&&j(l,t,n)}else if(Array.isArray(s))j(s,t,n);else for(var u in s)if(s.hasOwnProperty(u)){var c=s[u];if("selectors"===u){var d=s.selectors;for(var h in d)d.hasOwnProperty(h)&&U(n,t,h,d[h])}else"object"==typeof c?null!==c&&U(n,t,u,c):void 0!==c&&("margin"===u||"padding"===u?Y(i,u,c):i[u]=c)}}return t}function Y(e,t,n){var r="string"==typeof n?function(e){for(var t=[],n=0,r=0,i=0;i<e.length;i++)switch(e[i]){case"(":r++;break;case")":r&&r--;break;case"\t":case" ":r||(i>n&&t.push(e.substring(n,i)),n=i+1)}return n<e.length&&t.push(e.substring(n)),t}(n):[n];0===r.length&&r.push(n),"!important"===r[r.length-1]&&(r=r.slice(0,-1).map((function(e){return e+" !important"}))),e[t+"Top"]=r[0],e[t+"Right"]=r[1]||r[0],e[t+"Bottom"]=r[2]||r[0],e[t+"Left"]=r[3]||r[1]||r[0]}function X(e,t){for(var n=[e.rtl?"rtl":"ltr"],r=!1,i=0,o=t.__order;i<o.length;i++){var a=o[i];n.push(a);var s=t[a];for(var l in s)s.hasOwnProperty(l)&&void 0!==s[l]&&(r=!0,n.push(l,s[l]))}return r?n.join(""):void 0}function q(e,t){return t<=0?"":1===t?e:e+q(e,t-1)}function K(e,t){if(!t)return"";var n,r,i,o=[];for(var a in t)t.hasOwnProperty(a)&&"displayName"!==a&&void 0!==t[a]&&o.push(a,t[a]);for(var s=0;s<o.length;s+=2)i=void 0,"-"!==(i=(n=o)[r=s]).charAt(0)&&(n[r]=w[i]=w[i]||i.replace(/([A-Z])/g,"-$1").toLowerCase()),F(o,s),R(e,o,s),T(o,s);for(s=1;s<o.length;s+=4)o.splice(s,1,":",o[s],";");return o.join("")}function Z(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=j(t),i=X(e,r);if(i){var o=k.getInstance(),a={className:o.classNameFromKey(i),key:i,args:t};if(!a.className){a.className=o.getClassName(V(r));for(var s=[],l=0,u=r.__order;l<u.length;l++){var c=u[l];s.push(c,K(e,r[c]))}a.rulesToInsert=s}return a}}function G(e,t){void 0===t&&(t=1);var n=k.getInstance(),r=e.className,i=e.key,o=e.args,a=e.rulesToInsert;if(a){for(var s=0;s<a.length;s+=2){var l=a[s+1];if(l){var u=a[s],c=(u=u.replace(/&/g,q("."+e.className,t)))+"{"+l+"}"+(0===u.indexOf("@")?"}":"");n.insertRule(c)}}n.cacheClassName(r,i,o,a)}}function $(e){if("undefined"!=typeof document){var t=e;return t&&t.ownerDocument?t.ownerDocument:document}}function Q(e){var t=null;try{var n=c();t=n?n.sessionStorage.getItem(e):null}catch(e){}return t}function J(e){B!==e&&(B=e)}function ee(){return void 0===B&&(B="undefined"!=typeof document&&!!document.documentElement&&"rtl"===document.documentElement.getAttribute("dir")),B}function te(){return{rtl:ee()}}B=ee();var ne,re="isRTL";function ie(e){if(void 0===e&&(e={}),void 0!==e.rtl)return e.rtl;if(void 0===ne){var t=Q(re);null!==t&&function(e,t){void 0===t&&(t=!1);var n=$();n&&n.documentElement.setAttribute("dir",e?"rtl":"ltr"),t&&function(e,t){var n;try{null===(n=c())||void 0===n||n.sessionStorage.setItem("isRTL",t)}catch(e){}}(0,e?"1":"0"),J(ne=e)}(ne="1"===t);var n=$();void 0===ne&&n&&J(ne="rtl"===(n.body&&n.body.getAttribute("dir")||n.documentElement.getAttribute("dir")))}return!!ne}var oe=0,ae=k.getInstance();ae&&ae.onReset&&ae.onReset((function(){return oe++}));var se="__retval__";function le(e){void 0===e&&(e={});var t=new Map,n=0,r=0,i=oe;return function(o,a){var s;if(void 0===a&&(a={}),e.useStaticStyles&&"function"==typeof o&&o.__noStyleOverride__)return o(a);r++;var u=t,d=a.theme,h=d&&void 0!==d.rtl?d.rtl:ie(),p=e.disableCaching;if(i!==oe&&(i=oe,t=new Map,n=0),e.disableCaching||(u=ce(t,o),u=ce(u,a)),!p&&u[se]||(u[se]=void 0===o?{}:function(e,t){var n={subComponentStyles:{}};if(!e[0]&&e.length<=1)return{subComponentStyles:{}};var r=l.apply(void 0,e),i=[];for(var o in r)if(r.hasOwnProperty(o)){if("subComponentStyles"===o){n.subComponentStyles=r.subComponentStyles||{};continue}var a=L(r[o]),s=a.classes,u=a.objects;(null==u?void 0:u.length)?(h=Z(t||{},{displayName:o},u))&&(i.push(h),n[o]=s.concat([h.className]).join(" ")):n[o]=s.join(" ")}for(var c=0,d=i;c<d.length;c++){var h;(h=d[c])&&G(h,null==t?void 0:t.specificityMultiplier)}return n}(["function"==typeof o?o(a):o],{rtl:!!h,specificityMultiplier:e.useStaticStyles?5:void 0}),p||n++),n>(e.cacheSize||50)){var f=c();(null===(s=null==f?void 0:f.FabricConfig)||void 0===s?void 0:s.enableClassNameCacheFullWarning)&&(console.warn("Styles are being recalculated too frequently. Cache miss rate is "+n+"/"+r+"."),console.trace()),t.clear(),n=0,e.disableCaching=!0}return u[se]}}function ue(e,t){return t=function(e){switch(e){case void 0:return"__undefined__";case null:return"__null__";default:return e}}(t),e.has(t)||e.set(t,new Map),e.get(t)}function ce(e,t){if("function"==typeof t)if(t.__cachedInputs__)for(var n=0,r=t.__cachedInputs__;n<r.length;n++)e=ue(e,r[n]);else e=ue(e,t);else if("object"==typeof t)for(var i in t)t.hasOwnProperty(i)&&(e=ue(e,t[i]));return e}var de=c()||{};void 0===de.__currentId__&&(de.__currentId__=0);var he=!1;function pe(e){if(!he){var t=k.getInstance();t&&t.onReset&&t.onReset(fe),he=!0}return(void 0===e?"id__":e)+de.__currentId__++}function fe(e){void 0===e&&(e=0),de.__currentId__=e}function ge(e,t,n){void 0===n&&(n=0);for(var r=-1,i=n;e&&i<e.length;i++)if(t(e[i],i)){r=i;break}return r}function me(e,t){var n=ge(e,t);if(!(n<0))return e[n]}function ve(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function ye(e,t){return void 0===t&&(t=!0),e&&(t&&function(e){var t,n;return e&&(n=e)&&n._virtual&&(t=e._virtual.parent),t}(e)||e.parentNode&&e.parentNode)}function _e(e,t){return e&&e!==document.body?t(e)?e:_e(ye(e),t):null}function xe(e,t,n){void 0===n&&(n=!0);var r=!1;if(e&&t)if(n)if(e===t)r=!0;else for(r=!1;t;){var i=ye(t);if(i===e){r=!0;break}t=i}else e.contains&&(r=e.contains(t));return r}function be(e){var t=Se(e,e,!0,!1,!1,!0);return!!t&&(De(t),!0)}function Ce(e,t,n,r,i,o,a,s){if(!t||!a&&t===e)return null;var l=Ee(t);if(i&&l&&(o||!Le(t)&&!Ae(t))){var u=Ce(e,t.lastElementChild,!0,!0,!0,o,a,s);if(u){if(s&&ke(u,!0)||!s)return u;var c=Ce(e,u.previousElementSibling,!0,!0,!0,o,a,s);if(c)return c;for(var d=u.parentElement;d&&d!==t;){var h=Ce(e,d.previousElementSibling,!0,!0,!0,o,a,s);if(h)return h;d=d.parentElement}}}return n&&l&&ke(t,s)?t:Ce(e,t.previousElementSibling,!0,!0,!0,o,a,s)||(r?null:Ce(e,t.parentElement,!0,!1,!1,o,a,s))}function Se(e,t,n,r,i,o,a,s){if(!t||t===e&&i&&!a)return null;var l=Ee(t);if(n&&l&&ke(t,s))return t;if(!i&&l&&(o||!Le(t)&&!Ae(t))){var u=Se(e,t.firstElementChild,!0,!0,!1,o,a,s);if(u)return u}return t===e?null:Se(e,t.nextElementSibling,!0,!0,!1,o,a,s)||(r?null:Se(e,t.parentElement,!1,!1,!0,o,a,s))}function Ee(e){if(!e||!e.getAttribute)return!1;var t=e.getAttribute("data-is-visible");return null!=t?"true"===t:0!==e.offsetHeight||null!==e.offsetParent||!0===e.isVisible}function ke(e,t){if(!e||e.disabled)return!1;var n=0,r=null;e&&e.getAttribute&&(r=e.getAttribute("tabIndex"))&&(n=parseInt(r,10));var i=e.getAttribute?e.getAttribute("data-is-focusable"):null,o=null!==r&&n>=0,a=!!e&&"false"!==i&&("A"===e.tagName||"BUTTON"===e.tagName||"INPUT"===e.tagName||"TEXTAREA"===e.tagName||"SELECT"===e.tagName||"true"===i||o);return t?-1!==n&&a:a}function Le(e){return!!(e&&e.getAttribute&&e.getAttribute("data-focuszone-id"))}function Ae(e){return!(!e||!e.getAttribute||"true"!==e.getAttribute("data-is-sub-focuszone"))}var we=void 0;function De(e){if(e){if(we)return void(we=e);we=e;var t=c(e);t&&t.requestAnimationFrame((function(){we&&we.focus(),we=void 0}))}}function Te(e,t,n,r){return e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n,r)}}function Me(e,t){for(var n=i({},t),r=0,o=Object.keys(e);r<o.length;r++){var a=o[r];void 0===n[a]&&(n[a]=e[a])}return n}var Pe,Fe,Ie,Oe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n={},r=0,i=e;r<i.length;r++)for(var o=i[r],a=Array.isArray(o)?o:Object.keys(o),s=0,l=a;s<l.length;s++){var u=l[s];n[u]=1}return n},Ne=Oe(["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"]),He=Oe(["accessKey","children","className","contentEditable","dir","draggable","hidden","htmlFor","id","lang","ref","role","style","tabIndex","title","translate","spellCheck","name"]),Re=Oe(He,Ne),Ve=(Oe(Re,["form"]),Oe(Re,["height","loop","muted","preload","src","width"])),Be=(Oe(Ve,["poster"]),Oe(Re,["start"]),Oe(Re,["value"]),Oe(Re,["download","href","hrefLang","media","rel","target","type"]),Oe(Re,["autoFocus","disabled","form","formAction","formEncType","formMethod","formNoValidate","formTarget","type","value"])),We=(Oe(Be,["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"]),Oe(Be,["autoCapitalize","cols","dirname","form","maxLength","minLength","placeholder","readOnly","required","rows","wrap"]),Oe(Be,["form","multiple","required"]),Oe(Re,["selected","value"]),Oe(Re,["cellPadding","cellSpacing"]),Oe(Re,["rowSpan","scope"]),Oe(Re,["colSpan","headers","rowSpan","scope"]),Oe(Re,["span"]),Oe(Re,["span"]),Oe(Re,["acceptCharset","action","encType","encType","method","noValidate","target"]),Oe(Re,["allow","allowFullScreen","allowPaymentRequest","allowTransparency","csp","height","importance","referrerPolicy","sandbox","src","srcDoc","width"]),Oe(Re,["alt","crossOrigin","height","src","srcSet","useMap","width"]),Re);function ze(e,t,n){for(var r=Array.isArray(t),i={},o=0,a=Object.keys(e);o<a.length;o++){var s=a[o];!(!r&&t[s]||r&&t.indexOf(s)>=0||0===s.indexOf("data-")||0===s.indexOf("aria-"))||n&&-1!==(null==n?void 0:n.indexOf(s))||(i[s]=e[s])}return i}function Ue(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=[],r=0,i=e;r<i.length;r++){var o=i[r];if(o)if("string"==typeof o)n.push(o);else if(o.hasOwnProperty("toString")&&"function"==typeof o.toString)n.push(o.toString());else for(var a in o)o[a]&&n.push(a)}return n.join(" ")}function je(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];t=t||{};for(var i=0,o=n;i<o.length;i++){var a=o[i];if(a)for(var s in a)!a.hasOwnProperty(s)||e&&!e(s)||(t[s]=a[s])}return t}function Ye(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Xe(e,te())}function Xe(e,t){var n=L(e instanceof Array?e:[e]),r=n.classes,i=n.objects;return i.length&&r.push(function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=Z.apply(void 0,a([e],t));return r?(G(r,e.specificityMultiplier),r.className):""}(t||{},i)),r.join(" ")}!function(e){e[e.top=1]="top",e[e.bottom=-1]="bottom",e[e.left=2]="left",e[e.right=-2]="right"}(Pe||(Pe={})),function(e){e[e.top=0]="top",e[e.bottom=1]="bottom",e[e.start=2]="start",e[e.end=3]="end"}(Fe||(Fe={})),Ye({overflow:"hidden !important"});var qe="data-is-scrollable";function Ke(e){for(var t=e,n=$(e);t&&t!==n.body;){if("true"===t.getAttribute(qe))return t;t=t.parentElement}for(t=e;t&&t!==n.body;){if("false"!==t.getAttribute(qe)){var r=getComputedStyle(t),i=r?r.getPropertyValue("overflow-y"):"";if(i&&("scroll"===i||"auto"===i))return t}t=t.parentElement}return t&&t!==n.body||(t=c(e)),t}var Ze,Ge=function(){function e(e,t,n,r){void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=0),void 0===r&&(r=0),this.top=n,this.bottom=r,this.left=e,this.right=t}return Object.defineProperty(e.prototype,"width",{get:function(){return this.right-this.left},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.bottom-this.top},enumerable:!1,configurable:!0}),e.prototype.equals=function(e){return parseFloat(this.top.toFixed(4))===parseFloat(e.top.toFixed(4))&&parseFloat(this.bottom.toFixed(4))===parseFloat(e.bottom.toFixed(4))&&parseFloat(this.left.toFixed(4))===parseFloat(e.left.toFixed(4))&&parseFloat(this.right.toFixed(4))===parseFloat(e.right.toFixed(4))},e}();function $e(e,t,n){return{targetEdge:e,alignmentEdge:t,isAuto:n}}var Qe=((Ze={})[0]=$e(Pe.top,Pe.left),Ze[1]=$e(Pe.top),Ze[2]=$e(Pe.top,Pe.right),Ze[3]=$e(Pe.top,void 0,!0),Ze[4]=$e(Pe.bottom,Pe.left),Ze[5]=$e(Pe.bottom),Ze[6]=$e(Pe.bottom,Pe.right),Ze[7]=$e(Pe.bottom,void 0,!0),Ze[8]=$e(Pe.left,Pe.top),Ze[9]=$e(Pe.left),Ze[10]=$e(Pe.left,Pe.bottom),Ze[11]=$e(Pe.right,Pe.top),Ze[12]=$e(Pe.right),Ze[13]=$e(Pe.right,Pe.bottom),Ze);function Je(e,t){return!(e.top<t.top||e.bottom>t.bottom||e.left<t.left||e.right>t.right)}function et(e,t){var n=[];return e.top<t.top&&n.push(Pe.top),e.bottom>t.bottom&&n.push(Pe.bottom),e.left<t.left&&n.push(Pe.left),e.right>t.right&&n.push(Pe.right),n}function tt(e,t){return e[Pe[t]]}function nt(e,t,n){return e[Pe[t]]=n,e}function rt(e,t){var n=ft(t);return(tt(e,n.positiveEdge)+tt(e,n.negativeEdge))/2}function it(e,t){return e>0?t:-1*t}function ot(e,t){return it(e,tt(t,e))}function at(e,t,n){return it(n,tt(e,n)-tt(t,n))}function st(e,t,n,r){void 0===r&&(r=!0);var i=tt(e,t)-n,o=nt(e,t,n);return r&&(o=nt(e,-1*t,tt(e,-1*t)-i)),o}function lt(e,t,n,r){return void 0===r&&(r=0),st(e,n,tt(t,n)+it(n,r))}function ut(e,t,n){return ot(n,e)>ot(n,t)}function ct(e,t){for(var n=0,r=0,i=et(e,t);r<i.length;r++){var o=i[r];n+=Math.pow(at(e,t,o),2)}return n}function dt(e,t,n,r){for(var i=0,o=e;i<o.length;i++){var a=o[i],s=void 0;r&&r===-1*a?(s=st(t.elementRectangle,a,tt(n,a),!1),t.forcedInBounds=!0):ut(s=lt(t.elementRectangle,n,a),n,-1*a)||(s=st(s,-1*a,tt(n,-1*a),!1),t.forcedInBounds=!0),t.elementRectangle=s}return t}function ht(e,t,n){var r=ft(t).positiveEdge;return st(e,r,n-(rt(e,t)-tt(e,r)))}function pt(e,t,n,r,i){void 0===r&&(r=0);var o=new Ge(e.left,e.right,e.top,e.bottom),a=n.alignmentEdge,s=n.targetEdge,l=i?s:-1*s;return o=i?lt(o,t,s,r):function(e,t,n,r){void 0===r&&(r=0);var i=it(-1*n,r);return st(e,-1*n,tt(t,n)+i)}(o,t,s,r),o=a?lt(o,t,a):ht(o,l,rt(t,s))}function ft(e){return e===Pe.top||e===Pe.bottom?{positiveEdge:Pe.left,negativeEdge:Pe.right}:{positiveEdge:Pe.top,negativeEdge:Pe.bottom}}function gt(e,t,n){return n&&Math.abs(at(e,n,t))>Math.abs(at(e,n,-1*t))?-1*t:t}function mt(e,t,n,r,i,o,a,s){var l,u={},c=_t(t),d=o?n:-1*n,h=i||ft(n).positiveEdge;return a&&!function(e,t,n){return void 0!==n&&tt(e,t)===tt(n,t)}(e,(l=h,-1*l),r)||(h=gt(e,h,r)),u[Pe[d]]=at(e,c,d),u[Pe[h]]=at(e,c,h),s&&(u[Pe[-1*d]]=at(e,c,-1*d),u[Pe[-1*h]]=at(e,c,-1*h)),u}function vt(e,t,n){var r=rt(t,e),i=rt(n,e),o=ft(e),a=o.positiveEdge,s=o.negativeEdge;return r<=i?a:s}function yt(e,t,n,r,i,o,a){var s=pt(e,t,r,i,a);return Je(s,n)?{elementRectangle:s,targetEdge:r.targetEdge,alignmentEdge:r.alignmentEdge}:function(e,t,n,r,i,o,a){void 0===i&&(i=0);var s=r.alignmentEdge,l=r.alignTargetEdge,u={elementRectangle:e,targetEdge:r.targetEdge,alignmentEdge:s};o||a||(u=function(e,t,n,r,i){void 0===i&&(i=0);var o=[Pe.left,Pe.right,Pe.bottom,Pe.top];ie()&&(o[0]*=-1,o[1]*=-1);for(var a,s=e,l=r.targetEdge,u=r.alignmentEdge,c=l,d=u,h=0;h<4;h++){if(ut(s,n,l))return{elementRectangle:s,targetEdge:l,alignmentEdge:u};var p=ct(s,n);(!a||p<a)&&(a=p,c=l,d=u),o.splice(o.indexOf(l),1),o.length>0&&(o.indexOf(-1*l)>-1?l*=-1:(u=l,l=o.slice(-1)[0]),s=pt(e,t,{targetEdge:l,alignmentEdge:u},i))}return{elementRectangle:s=pt(e,t,{targetEdge:c,alignmentEdge:d},i),targetEdge:c,alignmentEdge:d}}(e,t,n,r,i));var c=et(u.elementRectangle,n),d=o?-u.targetEdge:void 0;if(c.length>0)if(l)if(u.alignmentEdge&&c.indexOf(-1*u.alignmentEdge)>-1){var h=function(e,t,n,r){var i=e.alignmentEdge,o=e.targetEdge,a=-1*i;return{elementRectangle:pt(e.elementRectangle,t,{targetEdge:o,alignmentEdge:a},n,r),targetEdge:o,alignmentEdge:a}}(u,t,i,a);if(Je(h.elementRectangle,n))return h;u=dt(et(h.elementRectangle,n),u,n,d)}else u=dt(c,u,n,d);else u=dt(c,u,n,d);return u}(s,t,n,r,i,o,a)}function _t(e){var t=e.getBoundingClientRect();return new Ge(t.left,t.right,t.top,t.bottom)}function xt(e,t,n,r){var o=e.gapSpace?e.gapSpace:0,a=function(e,t){var n;if(t){if(t.preventDefault){var r=t;n=new Ge(r.clientX,r.clientX,r.clientY,r.clientY)}else if(t.getBoundingClientRect)n=_t(t);else{var i=t,o=i.left||i.x,a=i.top||i.y,s=i.right||o,l=i.bottom||a;n=new Ge(o,s,a,l)}if(!Je(n,e))for(var u=0,c=et(n,e);u<c.length;u++){var d=c[u];n[Pe[d]]=e[Pe[d]]}}else n=new Ge(0,0,0,0);return n}(n,e.target),s=function(e,t,n,r,i){return e.isAuto&&(e.alignmentEdge=vt(e.targetEdge,t,n)),e.alignTargetEdge=i,e}(function(e,t,n){if(void 0===e&&(e=7),n)return{alignmentEdge:n.alignmentEdge,isAuto:n.isAuto,targetEdge:n.targetEdge};var r=i({},Qe[e]);return ie()?(r.alignmentEdge&&r.alignmentEdge%2==0&&(r.alignmentEdge=-1*r.alignmentEdge),void 0!==t?Qe[t]:r):r}(e.directionalHint,e.directionalHintForRTL,r),a,n,e.coverTarget,e.alignTargetEdge),l=yt(_t(t),a,n,s,o,e.directionalHintFixed,e.coverTarget);return i(i({},l),{targetRectangle:a})}function bt(e,t,n,r,o){var a=e.isBeakVisible&&e.beakWidth||0,s=function(e){return Math.sqrt(e*e*2)}(a)/2+(e.gapSpace?e.gapSpace:0),l=e;l.gapSpace=s;var u,c,d,h,p,f,g,m,v,y=e.bounds?(v=e.bounds,new Ge(v.left,v.right,v.top,v.bottom)):new Ge(0,window.innerWidth-function(){if(void 0===Ie){var e=document.createElement("div");e.style.setProperty("width","100px"),e.style.setProperty("height","100px"),e.style.setProperty("overflow","scroll"),e.style.setProperty("position","absolute"),e.style.setProperty("top","-9999px"),document.body.appendChild(e),Ie=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return Ie}(),0,window.innerHeight),_=xt(l,n,y,r),x=(u=_,c=function(e,t){var n=t.targetRectangle,r=ft(t.targetEdge),i=r.positiveEdge,o=r.negativeEdge,a=rt(n,t.targetEdge),s=new Ge(e/2,t.elementRectangle.width-e/2,e/2,t.elementRectangle.height-e/2),l=new Ge(0,e,0,e);return ut(l=ht(l=st(l,-1*t.targetEdge,-e/2),-1*t.targetEdge,a-ot(i,t.elementRectangle)),s,i)?ut(l,s,o)||(l=lt(l,s,o)):l=lt(l,s,i),l}(a,_),d=y,h=-1*u.targetEdge,p=new Ge(0,u.elementRectangle.width,0,u.elementRectangle.height),f={},g=gt(u.elementRectangle,u.alignmentEdge?u.alignmentEdge:ft(h).positiveEdge,d),m=at(u.elementRectangle,u.targetRectangle,h)>Math.abs(tt(c,h)),f[Pe[h]]=tt(c,h),f[Pe[g]]=at(c,p,g),{elementPosition:i({},f),closestEdge:vt(u.targetEdge,c,p),targetEdge:h,hideBeak:!m});return i(i({},function(e,t,n,r,i){return{elementPosition:mt(e.elementRectangle,t,e.targetEdge,n,e.alignmentEdge,r,i,e.forcedInBounds),targetEdge:e.targetEdge,alignmentEdge:e.alignmentEdge}}(_,t,y,e.coverTarget,o)),{beakPosition:x})}var Ct=["TEMPLATE","STYLE","SCRIPT"];function St(e){var t=$(e);if(!t)return function(){};for(var n=[];e!==t.body&&e.parentElement;){for(var r=0,i=e.parentElement.children;r<i.length;r++){var o=i[r],a=o.getAttribute("aria-hidden");o!==e&&"true"!==(null==a?void 0:a.toLowerCase())&&-1===Ct.indexOf(o.tagName)&&n.push([o,a])}e=e.parentElement}return n.forEach((function(e){e[0].setAttribute("aria-hidden","true")})),function(){!function(e){e.forEach((function(e){var t=e[0],n=e[1];n?t.setAttribute("aria-hidden",n):t.removeAttribute("aria-hidden")}))}(n),n=[]}}var Et=function(){function e(e,t){this._timeoutIds=null,this._immediateIds=null,this._intervalIds=null,this._animationFrameIds=null,this._isDisposed=!1,this._parent=e||null,this._onErrorHandler=t,this._noop=function(){}}return e.prototype.dispose=function(){var e;if(this._isDisposed=!0,this._parent=null,this._timeoutIds){for(e in this._timeoutIds)this._timeoutIds.hasOwnProperty(e)&&this.clearTimeout(parseInt(e,10));this._timeoutIds=null}if(this._immediateIds){for(e in this._immediateIds)this._immediateIds.hasOwnProperty(e)&&this.clearImmediate(parseInt(e,10));this._immediateIds=null}if(this._intervalIds){for(e in this._intervalIds)this._intervalIds.hasOwnProperty(e)&&this.clearInterval(parseInt(e,10));this._intervalIds=null}if(this._animationFrameIds){for(e in this._animationFrameIds)this._animationFrameIds.hasOwnProperty(e)&&this.cancelAnimationFrame(parseInt(e,10));this._animationFrameIds=null}},e.prototype.setTimeout=function(e,t){var n=this,r=0;return this._isDisposed||(this._timeoutIds||(this._timeoutIds={}),r=setTimeout((function(){try{n._timeoutIds&&delete n._timeoutIds[r],e.apply(n._parent)}catch(e){n._logError(e)}}),t),this._timeoutIds[r]=!0),r},e.prototype.clearTimeout=function(e){this._timeoutIds&&this._timeoutIds[e]&&(clearTimeout(e),delete this._timeoutIds[e])},e.prototype.setImmediate=function(e,t){var n=this,r=0,i=c(t);return this._isDisposed||(this._immediateIds||(this._immediateIds={}),r=i.setTimeout((function(){try{n._immediateIds&&delete n._immediateIds[r],e.apply(n._parent)}catch(e){n._logError(e)}}),0),this._immediateIds[r]=!0),r},e.prototype.clearImmediate=function(e,t){var n=c(t);this._immediateIds&&this._immediateIds[e]&&(n.clearTimeout(e),delete this._immediateIds[e])},e.prototype.setInterval=function(e,t){var n=this,r=0;return this._isDisposed||(this._intervalIds||(this._intervalIds={}),r=setInterval((function(){try{e.apply(n._parent)}catch(e){n._logError(e)}}),t),this._intervalIds[r]=!0),r},e.prototype.clearInterval=function(e){this._intervalIds&&this._intervalIds[e]&&(clearInterval(e),delete this._intervalIds[e])},e.prototype.throttle=function(e,t,n){var r=this;if(this._isDisposed)return this._noop;var i,o,a=t||0,s=!0,l=!0,u=0,c=null;n&&"boolean"==typeof n.leading&&(s=n.leading),n&&"boolean"==typeof n.trailing&&(l=n.trailing);var d=function(t){var n=Date.now(),h=n-u,p=s?a-h:a;return h>=a&&(!t||s)?(u=n,c&&(r.clearTimeout(c),c=null),i=e.apply(r._parent,o)):null===c&&l&&(c=r.setTimeout(d,p)),i};return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return o=e,d(!0)}},e.prototype.debounce=function(e,t,n){var r=this;if(this._isDisposed){var i=function(){};return i.cancel=function(){},i.flush=function(){return null},i.pending=function(){return!1},i}var o,a,s=t||0,l=!1,u=!0,c=null,d=0,h=Date.now(),p=null;n&&"boolean"==typeof n.leading&&(l=n.leading),n&&"boolean"==typeof n.trailing&&(u=n.trailing),n&&"number"==typeof n.maxWait&&!isNaN(n.maxWait)&&(c=n.maxWait);var f=function(e){p&&(r.clearTimeout(p),p=null),h=e},g=function(t){f(t),o=e.apply(r._parent,a)},m=function(e){var t=Date.now(),n=!1;e&&(l&&t-d>=s&&(n=!0),d=t);var i=t-d,a=s-i,f=t-h,v=!1;return null!==c&&(f>=c&&p?v=!0:a=Math.min(a,c-f)),i>=s||v||n?g(t):null!==p&&e||!u||(p=r.setTimeout(m,a)),o},v=function(){return!!p},y=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return a=e,m(!0)};return y.cancel=function(){v()&&f(Date.now())},y.flush=function(){return v()&&g(Date.now()),o},y.pending=v,y},e.prototype.requestAnimationFrame=function(e,t){var n=this,r=0,i=c(t);if(!this._isDisposed){this._animationFrameIds||(this._animationFrameIds={});var o=function(){try{n._animationFrameIds&&delete n._animationFrameIds[r],e.apply(n._parent)}catch(e){n._logError(e)}};r=i.requestAnimationFrame?i.requestAnimationFrame(o):i.setTimeout(o,0),this._animationFrameIds[r]=!0}return r},e.prototype.cancelAnimationFrame=function(e,t){var n=c(t);this._animationFrameIds&&this._animationFrameIds[e]&&(n.cancelAnimationFrame?n.cancelAnimationFrame(e):n.clearTimeout(e),delete this._animationFrameIds[e])},e.prototype._logError=function(e){this._onErrorHandler&&this._onErrorHandler(e)},e}();function kt(e){var t=s.useRef();return void 0===t.current&&(t.current={value:"function"==typeof e?e():e}),t.current.value}function Lt(){var e=kt((function(){return new Et}));return s.useEffect((function(){return function(){return e.dispose()}}),[e]),e}function At(e,t,n,r){var i=s.useRef(n);i.current=n,s.useEffect((function(){var n=e&&"current"in e?e.current:e;if(n)return Te(n,t,(function(e){return i.current(e)}),r)}),[e,t,r])}function wt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=s.useCallback((function(t){n.current=t;for(var r=0,i=e;r<i.length;r++){var o=i[r];"function"==typeof o?o(t):o&&(o.current=t)}}),a([],e));return n}var Dt=s.createContext({window:"object"==typeof window?window:void 0}),Tt=function(){return s.useContext(Dt).window};function Mt(e){var t=e.originalElement,n=e.containsFocus;t&&n&&t!==c()&&setTimeout((function(){var e;null===(e=t.focus)||void 0===e||e.call(t)}),0)}var Pt=s.forwardRef((function(e,t){var n=Me({shouldRestoreFocus:!0,enableAriaHiddenSiblings:!0},e),r=s.useRef(),o=wt(r,t);!function(e,t){var n="true"===String(e["aria-modal"]).toLowerCase()&&e.enableAriaHiddenSiblings;s.useEffect((function(){if(n&&t.current)return St(t.current)}),[t,n])}(n,r),function(e,t){var n=e.onRestoreFocus,r=void 0===n?Mt:n,i=s.useRef(),o=s.useRef(!1);s.useEffect((function(){return i.current=$().activeElement,function(e){var t=$(e),n=t&&t.activeElement;return!(!n||!xe(e,n))}(t.current)&&(o.current=!0),function(){var e;null==r||r({originalElement:i.current,containsFocus:o.current,documentContainsFocus:(null===(e=$())||void 0===e?void 0:e.hasFocus())||!1}),i.current=void 0}}),[]),At(t,"focus",s.useCallback((function(){o.current=!0}),[]),!0),At(t,"blur",s.useCallback((function(e){t.current&&e.relatedTarget&&!t.current.contains(e.relatedTarget)&&(o.current=!1)}),[]),!0)}(n,r);var a=n.role,l=n.className,u=n.ariaLabel,c=n.ariaLabelledBy,d=n.ariaDescribedBy,h=n.style,p=n.children,f=n.onDismiss,g=function(e,t){var n=Lt(),r=s.useState(!1),i=r[0],o=r[1];return s.useEffect((function(){return n.requestAnimationFrame((function(){var n;if(!e.style||!e.style.overflowY){var r=!1;if(t&&t.current&&(null===(n=t.current)||void 0===n?void 0:n.firstElementChild)){var a=t.current.clientHeight,s=t.current.firstElementChild.clientHeight;a>0&&s>a&&(r=s-a>1)}i!==r&&o(r)}})),function(){return n.dispose()}})),i}(n,r),m=s.useCallback((function(e){27===e.which&&f&&(f(e),e.preventDefault(),e.stopPropagation())}),[f]);return At(Tt(),"keydown",m),s.createElement("div",i({ref:o},ze(n,We),{className:l,role:a,"aria-label":u,"aria-labelledby":c,"aria-describedby":d,onKeyDown:m,style:i({overflowY:g?"scroll":void 0,outline:"none"},h)}),p)}));function Ft(e){var t=k.getInstance(),n=[];for(var r in e)e.hasOwnProperty(r)&&n.push(r,"{",K(te(),e[r]),"}");var i=n.join(""),o=t.classNameFromKey(i);if(o)return o;var a=t.getClassName();return t.insertRule("@keyframes "+a+"{"+i+"}",!0),t.cacheClassName(a,i,[],["keyframes",i]),a}Pt.displayName="Popup";var It="cubic-bezier(.1,.9,.2,1)",Ot="cubic-bezier(.1,.25,.75,.9)",Nt="0.167s",Ht="0.267s",Rt="0.367s",Vt="0.467s",Bt=Ft({from:{opacity:0},to:{opacity:1}}),Wt=Ft({from:{opacity:1},to:{opacity:0,visibility:"hidden"}}),zt=xn(-10),Ut=xn(-20),jt=xn(-40),Yt=xn(-400),Xt=xn(10),qt=xn(20),Kt=xn(40),Zt=xn(400),Gt=bn(10),$t=bn(20),Qt=bn(-10),Jt=bn(-20),en=Cn(10),tn=Cn(20),nn=Cn(40),rn=Cn(400),on=Cn(-10),an=Cn(-20),sn=Cn(-40),ln=Cn(-400),un=Sn(-10),cn=Sn(-20),dn=Sn(10),hn=Sn(20),pn=Ft({from:{transform:"scale3d(.98,.98,1)"},to:{transform:"scale3d(1,1,1)"}}),fn=Ft({from:{transform:"scale3d(1,1,1)"},to:{transform:"scale3d(.98,.98,1)"}}),gn=Ft({from:{transform:"scale3d(1.03,1.03,1)"},to:{transform:"scale3d(1,1,1)"}}),mn=Ft({from:{transform:"scale3d(1,1,1)"},to:{transform:"scale3d(1.03,1.03,1)"}}),vn=Ft({from:{transform:"rotateZ(0deg)"},to:{transform:"rotateZ(90deg)"}}),yn=Ft({from:{transform:"rotateZ(0deg)"},to:{transform:"rotateZ(-90deg)"}});function _n(e,t,n){return{animationName:e,animationDuration:t,animationTimingFunction:n,animationFillMode:"both"}}function xn(e){return Ft({from:{transform:"translate3d("+e+"px,0,0)",pointerEvents:"none"},to:{transform:"translate3d(0,0,0)",pointerEvents:"auto"}})}function bn(e){return Ft({from:{transform:"translate3d(0,"+e+"px,0)",pointerEvents:"none"},to:{transform:"translate3d(0,0,0)",pointerEvents:"auto"}})}function Cn(e){return Ft({from:{transform:"translate3d(0,0,0)"},to:{transform:"translate3d("+e+"px,0,0)"}})}function Sn(e){return Ft({from:{transform:"translate3d(0,0,0)"},to:{transform:"translate3d(0,"+e+"px,0)"}})}var En,kn,Ln,An,wn,Dn=function(e){var t={},n=function(n){var r;e.hasOwnProperty(n)&&Object.defineProperty(t,n,{get:function(){return void 0===r&&(r=Ye(e[n]).toString()),r},enumerable:!0,configurable:!0})};for(var r in e)n(r);return t}({slideRightIn10:_n(Bt+","+zt,Rt,It),slideRightIn20:_n(Bt+","+Ut,Rt,It),slideRightIn40:_n(Bt+","+jt,Rt,It),slideRightIn400:_n(Bt+","+Yt,Rt,It),slideLeftIn10:_n(Bt+","+Xt,Rt,It),slideLeftIn20:_n(Bt+","+qt,Rt,It),slideLeftIn40:_n(Bt+","+Kt,Rt,It),slideLeftIn400:_n(Bt+","+Zt,Rt,It),slideUpIn10:_n(Bt+","+Gt,Rt,It),slideUpIn20:_n(Bt+","+$t,Rt,It),slideDownIn10:_n(Bt+","+Qt,Rt,It),slideDownIn20:_n(Bt+","+Jt,Rt,It),slideRightOut10:_n(Wt+","+en,Rt,It),slideRightOut20:_n(Wt+","+tn,Rt,It),slideRightOut40:_n(Wt+","+nn,Rt,It),slideRightOut400:_n(Wt+","+rn,Rt,It),slideLeftOut10:_n(Wt+","+on,Rt,It),slideLeftOut20:_n(Wt+","+an,Rt,It),slideLeftOut40:_n(Wt+","+sn,Rt,It),slideLeftOut400:_n(Wt+","+ln,Rt,It),slideUpOut10:_n(Wt+","+un,Rt,It),slideUpOut20:_n(Wt+","+cn,Rt,It),slideDownOut10:_n(Wt+","+dn,Rt,It),slideDownOut20:_n(Wt+","+hn,Rt,It),scaleUpIn100:_n(Bt+","+pn,Rt,It),scaleDownIn100:_n(Bt+","+gn,Rt,It),scaleUpOut103:_n(Wt+","+mn,Nt,Ot),scaleDownOut98:_n(Wt+","+fn,Nt,Ot),fadeIn100:_n(Bt,Nt,Ot),fadeIn200:_n(Bt,Ht,Ot),fadeIn400:_n(Bt,Rt,Ot),fadeIn500:_n(Bt,Vt,Ot),fadeOut100:_n(Wt,Nt,Ot),fadeOut200:_n(Wt,Ht,Ot),fadeOut400:_n(Wt,Rt,Ot),fadeOut500:_n(Wt,Vt,Ot),rotate90deg:_n(vn,"0.1s",Ot),rotateN90deg:_n(yn,"0.1s",Ot)}),Tn={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"};!function(e){e.Arabic="Segoe UI Web (Arabic)",e.Cyrillic="Segoe UI Web (Cyrillic)",e.EastEuropean="Segoe UI Web (East European)",e.Greek="Segoe UI Web (Greek)",e.Hebrew="Segoe UI Web (Hebrew)",e.Thai="Leelawadee UI Web",e.Vietnamese="Segoe UI Web (Vietnamese)",e.WestEuropean="Segoe UI Web (West European)",e.Selawik="Selawik Web",e.Armenian="Segoe UI Web (Armenian)",e.Georgian="Segoe UI Web (Georgian)"}(En||(En={})),function(e){e.Arabic="'"+En.Arabic+"'",e.ChineseSimplified="'Microsoft Yahei UI', Verdana, Simsun",e.ChineseTraditional="'Microsoft Jhenghei UI', Pmingliu",e.Cyrillic="'"+En.Cyrillic+"'",e.EastEuropean="'"+En.EastEuropean+"'",e.Greek="'"+En.Greek+"'",e.Hebrew="'"+En.Hebrew+"'",e.Hindi="'Nirmala UI'",e.Japanese="'Yu Gothic UI', 'Meiryo UI', Meiryo, 'MS Pgothic', Osaka",e.Korean="'Malgun Gothic', Gulim",e.Selawik="'"+En.Selawik+"'",e.Thai="'Leelawadee UI Web', 'Kmer UI'",e.Vietnamese="'"+En.Vietnamese+"'",e.WestEuropean="'"+En.WestEuropean+"'",e.Armenian="'"+En.Armenian+"'",e.Georgian="'"+En.Georgian+"'"}(kn||(kn={})),function(e){e.size10="10px",e.size12="12px",e.size14="14px",e.size16="16px",e.size18="18px",e.size20="20px",e.size24="24px",e.size28="28px",e.size32="32px",e.size42="42px",e.size68="68px",e.mini="10px",e.xSmall="10px",e.small="12px",e.smallPlus="12px",e.medium="14px",e.mediumPlus="16px",e.icon="16px",e.large="18px",e.xLarge="20px",e.xLargePlus="24px",e.xxLarge="28px",e.xxLargePlus="32px",e.superLarge="42px",e.mega="68px"}(Ln||(Ln={})),function(e){e.light=100,e.semilight=300,e.regular=400,e.semibold=600,e.bold=700}(An||(An={})),function(e){e.xSmall="10px",e.small="12px",e.medium="16px",e.large="20px"}(wn||(wn={}));var Mn,Pn="@media screen and (-ms-high-contrast: active), screen and (forced-colors: active)",Fn="@media screen and (-ms-high-contrast: white-on-black), screen and (forced-colors: active) and (prefers-color-scheme: dark)",In="ms-Fabric--isFocusVisible",On="ms-Fabric--isFocusHidden";function Nn(e,t){var n=t?c(t):c();if(n){var r=n.document.body.classList;r.add(e?In:On),r.remove(e?On:In)}}function Hn(e,t,n,r,i,o,a){return function(e,t){var n,r;void 0===t&&(t={});var i=t.inset,o=void 0===i?0:i,a=t.width,s=void 0===a?1:a,l=t.position,u=void 0===l?"relative":l,c=t.highContrastStyle,d=t.borderColor,h=void 0===d?e.palette.white:d,p=t.outlineColor,f=void 0===p?e.palette.neutralSecondary:p,g=t.isFocusedOnly;return{outline:"transparent",position:u,selectors:(n={"::-moz-focus-inner":{border:"0"}},n[".ms-Fabric--isFocusVisible &"+(void 0===g||g?":focus":"")+":after"]={content:'""',position:"absolute",left:o+1,top:o+1,bottom:o+1,right:o+1,border:s+"px solid "+h,outline:s+"px solid "+f,zIndex:Mn.FocusStyle,selectors:(r={},r[Pn]=c,r)},n)}}(e,"number"!=typeof t&&t?t:{inset:t,position:n,highContrastStyle:r,borderColor:i,outlineColor:o,isFocusedOnly:a})}!function(e){e.Nav=1,e.ScrollablePane=1,e.FocusStyle=1,e.Coachmark=1e3,e.Layer=1e6,e.KeytipLayer=1000001}(Mn||(Mn={}));var Rn=!1,Vn=0,Bn={empty:!0},Wn={},zn="undefined"==typeof WeakMap?null:WeakMap;function Un(){Vn++}function jn(e,t,n){if(void 0===t&&(t=100),void 0===n&&(n=!1),!zn)return e;if(!Rn){var r=k.getInstance();r&&r.onReset&&k.getInstance().onReset(Un),Rn=!0}var i,o=0,a=Vn;return function(){for(var r=[],s=0;s<arguments.length;s++)r[s]=arguments[s];var l=i;(void 0===i||a!==Vn||t>0&&o>t)&&(i=qn(),o=0,a=Vn),l=i;for(var u=0;u<r.length;u++){var c=Xn(r[u]);l.map.has(c)||l.map.set(c,qn()),l=l.map.get(c)}return l.hasOwnProperty("value")||(l.value=e.apply(void 0,r),o++),!n||null!==l.value&&void 0!==l.value||(l.value=e.apply(void 0,r)),l.value}}function Yn(e){if(!zn)return e;var t=new zn;return function(n){if(!n||"function"!=typeof n&&"object"!=typeof n)return e(n);if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}}function Xn(e){return e?"object"==typeof e||"function"==typeof e?e:(Wn[e]||(Wn[e]={val:e}),Wn[e]):Bn}function qn(){return{map:zn?new zn:null}}var Kn=jn((function(e,t){var n=k.getInstance();return t?Object.keys(e).reduce((function(t,r){return t[r]=n.getClassName(e[r]),t}),{}):e}));function Zn(e,t,n){return Kn(e,void 0!==n?n:t.disableGlobalClassNames)}var Gn,$n,Qn=function(){return Qn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Qn.apply(this,arguments)},Jn="undefined"==typeof window?e.g:window,er=Jn&&Jn.CSPSettings&&Jn.CSPSettings.nonce,tr=(($n=Jn.__themeState__||{theme:void 0,lastStyleElement:void 0,registeredStyles:[]}).runState||($n=Qn({},$n,{perf:{count:0,duration:0},runState:{flushTimer:0,mode:0,buffer:[]}})),$n.registeredThemableStyles||($n=Qn({},$n,{registeredThemableStyles:[]})),Jn.__themeState__=$n,$n);function nr(e){tr.theme=e,function(){if(tr.theme){for(var e=[],t=0,n=tr.registeredThemableStyles;t<n.length;t++){var r=n[t];e.push(r.themableStyle)}e.length>0&&(void 0===(o=1)&&(o=3),3!==o&&2!==o||(rr(tr.registeredStyles),tr.registeredStyles=[]),3!==o&&1!==o||(rr(tr.registeredThemableStyles),tr.registeredThemableStyles=[]),i=[].concat.apply([],e),tr.loadStyles?tr.loadStyles(ir(i).styleString,i):function(e){if("undefined"!=typeof document){var t=document.getElementsByTagName("head")[0],n=document.createElement("style"),r=ir(e),i=r.styleString,o=r.themable;n.setAttribute("data-load-themed-styles","true"),n.type="text/css",er&&n.setAttribute("nonce",er),n.appendChild(document.createTextNode(i)),tr.perf.count++,t.appendChild(n);var a=document.createEvent("HTMLEvents");a.initEvent("styleinsert",!0,!1),a.args={newStyle:n},document.dispatchEvent(a);var s={styleElement:n,themableStyle:e};o?tr.registeredThemableStyles.push(s):tr.registeredStyles.push(s)}}(i))}var i,o}()}function rr(e){e.forEach((function(e){var t=e&&e.styleElement;t&&t.parentElement&&t.parentElement.removeChild(t)}))}function ir(e){var t=tr.theme,n=!1;return{styleString:(e||[]).map((function(e){var r=e.theme;if(r){n=!0;var i=t?t[r]:void 0,o=e.defaultValue||"inherit";return t&&!i&&console&&!(r in t)&&"undefined"!=typeof DEBUG&&DEBUG&&console.warn('Theming value not provided for "'+r+'". Falling back to "'+o+'".'),i||o}return e.rawString})).join(""),themable:n}}!function(e){e.depth0="0 0 0 0 transparent",e.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)",e.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)",e.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)",e.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)"}(Gn||(Gn={}));var or,ar={elevation4:Gn.depth4,elevation8:Gn.depth8,elevation16:Gn.depth16,elevation64:Gn.depth64,roundedCorner2:"2px",roundedCorner4:"4px",roundedCorner6:"6px"},sr="'Segoe UI', '"+En.WestEuropean+"'",lr={ar:kn.Arabic,bg:kn.Cyrillic,cs:kn.EastEuropean,el:kn.Greek,et:kn.EastEuropean,he:kn.Hebrew,hi:kn.Hindi,hr:kn.EastEuropean,hu:kn.EastEuropean,ja:kn.Japanese,kk:kn.EastEuropean,ko:kn.Korean,lt:kn.EastEuropean,lv:kn.EastEuropean,pl:kn.EastEuropean,ru:kn.Cyrillic,sk:kn.EastEuropean,"sr-latn":kn.EastEuropean,th:kn.Thai,tr:kn.EastEuropean,uk:kn.Cyrillic,vi:kn.Vietnamese,"zh-hans":kn.ChineseSimplified,"zh-hant":kn.ChineseTraditional,hy:kn.Armenian,ka:kn.Georgian};function ur(e,t,n){return{fontFamily:n,MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontSize:e,fontWeight:t}}var cr,dr="language",hr=(cr=function(e){for(var t in lr)if(lr.hasOwnProperty(t)&&e&&0===t.indexOf(e))return lr[t];return sr}(function(e){if(void 0===e&&(e="sessionStorage"),void 0===or){var t=$(),n="localStorage"===e?function(e){var t=null;try{var n=c();t=n?n.localStorage.getItem("language"):null}catch(e){}return t}():"sessionStorage"===e?Q(dr):void 0;n&&(or=n),void 0===or&&t&&(or=t.documentElement.getAttribute("lang")),void 0===or&&(or="en")}return or}())+", 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif",{tiny:ur(Ln.mini,An.regular,cr),xSmall:ur(Ln.xSmall,An.regular,cr),small:ur(Ln.small,An.regular,cr),smallPlus:ur(Ln.smallPlus,An.regular,cr),medium:ur(Ln.medium,An.regular,cr),mediumPlus:ur(Ln.mediumPlus,An.regular,cr),large:ur(Ln.large,An.regular,cr),xLarge:ur(Ln.xLarge,An.semibold,cr),xLargePlus:ur(Ln.xLargePlus,An.semibold,cr),xxLarge:ur(Ln.xxLarge,An.semibold,cr),xxLargePlus:ur(Ln.xxLargePlus,An.semibold,cr),superLarge:ur(Ln.superLarge,An.semibold,cr),mega:ur(Ln.mega,An.semibold,cr)});function pr(e,t,n,r){!function(e){var t=k.getInstance(),n=K(te(),e);if(!t.classNameFromKey(n)){var r=t.getClassName();t.insertRule("@font-face{"+n+"}",!0),t.cacheClassName(r,n,[],["font-face",n])}}({fontFamily:e="'"+e+"'",src:(void 0!==r?"local('"+r+"'),":"")+"url('"+t+".woff2') format('woff2'),url('"+t+".woff') format('woff')",fontWeight:n,fontStyle:"normal",fontDisplay:"swap"})}function fr(e,t,n,r,i){void 0===r&&(r="segoeui");var o=e+"/"+n+"/"+r;pr(t,o+"-light",An.light,i&&i+" Light"),pr(t,o+"-semilight",An.semilight,i&&i+" SemiLight"),pr(t,o+"-regular",An.regular,i),pr(t,o+"-semibold",An.semibold,i&&i+" SemiBold"),pr(t,o+"-bold",An.bold,i&&i+" Bold")}function gr(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,i=t;r<i.length;r++){var o=i[r];mr(e||{},o)}return e}function mr(e,t,n){for(var r in void 0===n&&(n=[]),n.push(t),t)if(t.hasOwnProperty(r)&&"__proto__"!==r&&"constructor"!==r&&"prototype"!==r){var i=t[r];if("object"!=typeof i||null===i||Array.isArray(i))e[r]=i;else{var o=n.indexOf(i)>-1;e[r]=o?i:mr(e[r]||{},i,n)}}return n.pop(),e}function vr(e,t,n,r,o){return void 0===o&&(o=!1),function(e,t){var n="";return!0===t&&(n=" /* @deprecated */"),e.listTextColor=e.listText+n,e.menuItemBackgroundChecked+=n,e.warningHighlight+=n,e.warningText=e.messageText+n,e.successText+=n,e}(yr(e,t,i({primaryButtonBorder:"transparent",errorText:r?"#F1707B":"#a4262c",messageText:r?"#F3F2F1":"#323130",messageLink:r?"#6CB8F6":"#005A9E",messageLinkHovered:r?"#82C7FF":"#004578",infoIcon:r?"#C8C6C4":"#605e5c",errorIcon:r?"#F1707B":"#A80000",blockingIcon:r?"#442726":"#FDE7E9",warningIcon:r?"#C8C6C4":"#797775",severeWarningIcon:r?"#FCE100":"#D83B01",successIcon:r?"#92C353":"#107C10",infoBackground:r?"#323130":"#f3f2f1",errorBackground:r?"#442726":"#FDE7E9",blockingBackground:r?"#442726":"#FDE7E9",warningBackground:r?"#433519":"#FFF4CE",severeWarningBackground:r?"#4F2A0F":"#FED9CC",successBackground:r?"#393D1B":"#DFF6DD",warningHighlight:r?"#fff100":"#ffb900",successText:r?"#92c353":"#107C10"},n),r),o)}function yr(e,t,n,r,o){void 0===o&&(o=!1);var a={},s=e||{},l=s.white,u=s.black,c=s.themePrimary,d=s.themeDark,h=s.themeDarker,p=s.themeDarkAlt,f=s.themeLighter,g=s.neutralLight,m=s.neutralLighter,v=s.neutralDark,y=s.neutralQuaternary,_=s.neutralQuaternaryAlt,x=s.neutralPrimary,b=s.neutralSecondary,C=s.neutralSecondaryAlt,S=s.neutralTertiary,E=s.neutralTertiaryAlt,k=s.neutralLighterAlt,L=s.accent;return l&&(a.bodyBackground=l,a.bodyFrameBackground=l,a.accentButtonText=l,a.buttonBackground=l,a.primaryButtonText=l,a.primaryButtonTextHovered=l,a.primaryButtonTextPressed=l,a.inputBackground=l,a.inputForegroundChecked=l,a.listBackground=l,a.menuBackground=l,a.cardStandoutBackground=l),u&&(a.bodyTextChecked=u,a.buttonTextCheckedHovered=u),c&&(a.link=c,a.primaryButtonBackground=c,a.inputBackgroundChecked=c,a.inputIcon=c,a.inputFocusBorderAlt=c,a.menuIcon=c,a.menuHeader=c,a.accentButtonBackground=c),d&&(a.primaryButtonBackgroundPressed=d,a.inputBackgroundCheckedHovered=d,a.inputIconHovered=d),h&&(a.linkHovered=h),p&&(a.primaryButtonBackgroundHovered=p),f&&(a.inputPlaceholderBackgroundChecked=f),g&&(a.bodyBackgroundChecked=g,a.bodyFrameDivider=g,a.bodyDivider=g,a.variantBorder=g,a.buttonBackgroundCheckedHovered=g,a.buttonBackgroundPressed=g,a.listItemBackgroundChecked=g,a.listHeaderBackgroundPressed=g,a.menuItemBackgroundPressed=g,a.menuItemBackgroundChecked=g),m&&(a.bodyBackgroundHovered=m,a.buttonBackgroundHovered=m,a.buttonBackgroundDisabled=m,a.buttonBorderDisabled=m,a.primaryButtonBackgroundDisabled=m,a.disabledBackground=m,a.listItemBackgroundHovered=m,a.listHeaderBackgroundHovered=m,a.menuItemBackgroundHovered=m),y&&(a.primaryButtonTextDisabled=y,a.disabledSubtext=y),_&&(a.listItemBackgroundCheckedHovered=_),S&&(a.disabledBodyText=S,a.variantBorderHovered=(null==n?void 0:n.variantBorderHovered)||S,a.buttonTextDisabled=S,a.inputIconDisabled=S,a.disabledText=S),x&&(a.bodyText=x,a.actionLink=x,a.buttonText=x,a.inputBorderHovered=x,a.inputText=x,a.listText=x,a.menuItemText=x),k&&(a.bodyStandoutBackground=k,a.defaultStateBackground=k),v&&(a.actionLinkHovered=v,a.buttonTextHovered=v,a.buttonTextChecked=v,a.buttonTextPressed=v,a.inputTextHovered=v,a.menuItemTextHovered=v),b&&(a.bodySubtext=b,a.focusBorder=b,a.inputBorder=b,a.smallInputBorder=b,a.inputPlaceholderText=b),C&&(a.buttonBorder=C),E&&(a.disabledBodySubtext=E,a.disabledBorder=E,a.buttonBackgroundChecked=E,a.menuDivider=E),L&&(a.accentButtonBackground=L),(null==t?void 0:t.elevation4)&&(a.cardShadow=t.elevation4),!r&&(null==t?void 0:t.elevation8)?a.cardShadowHovered=t.elevation8:a.variantBorderHovered&&(a.cardShadowHovered="0 0 1px "+a.variantBorderHovered),i(i({},a),n)}!function(e){if(e){var t=e+"/fonts";fr(t,En.Thai,"leelawadeeui-thai","leelawadeeui"),fr(t,En.Arabic,"segoeui-arabic"),fr(t,En.Cyrillic,"segoeui-cyrillic"),fr(t,En.EastEuropean,"segoeui-easteuropean"),fr(t,En.Greek,"segoeui-greek"),fr(t,En.Hebrew,"segoeui-hebrew"),fr(t,En.Vietnamese,"segoeui-vietnamese"),fr(t,En.WestEuropean,"segoeui-westeuropean","segoeui","Segoe UI"),fr(t,kn.Selawik,"selawik","selawik"),fr(t,En.Armenian,"segoeui-armenian"),fr(t,En.Georgian,"segoeui-georgian"),pr("Leelawadee UI Web",t+"/leelawadeeui-thai/leelawadeeui-semilight",An.light),pr("Leelawadee UI Web",t+"/leelawadeeui-thai/leelawadeeui-bold",An.semibold)}}(function(){var e,t,n=null===(e=c())||void 0===e?void 0:e.FabricConfig;return null!==(t=null==n?void 0:n.fontBaseUrl)&&void 0!==t?t:"https://static2.sharepointonline.com/files/fabric/assets"}());var _r={s2:"4px",s1:"8px",m:"16px",l1:"20px",l2:"32px"};function xr(e,t){void 0===e&&(e={}),void 0===t&&(t=!1);var n=!!e.isInverted;return function(e,t){var n,r,i;void 0===t&&(t={});var o=gr({},e,t,{semanticColors:yr(t.palette,t.effects,t.semanticColors,void 0===t.isInverted?e.isInverted:t.isInverted)});if((null===(n=t.palette)||void 0===n?void 0:n.themePrimary)&&!(null===(r=t.palette)||void 0===r?void 0:r.accent)&&(o.palette.accent=t.palette.themePrimary),t.defaultFontStyle)for(var a=0,s=Object.keys(o.fonts);a<s.length;a++){var l=s[a];o.fonts[l]=gr(o.fonts[l],t.defaultFontStyle,null===(i=null==t?void 0:t.fonts)||void 0===i?void 0:i[l])}return o}({palette:Tn,effects:ar,fonts:hr,spacing:_r,isInverted:n,disableGlobalClassNames:!1,semanticColors:vr(Tn,ar,void 0,n,t),rtl:void 0},e)}var br=xr({}),Cr=[];function Sr(){var e,t,n,r=c();(null===(t=null==r?void 0:r.FabricConfig)||void 0===t?void 0:t.legacyTheme)?function(e,t){var n;void 0===t&&(t=!1),br=xr(e,t),nr(i(i(i(i({},br.palette),br.semanticColors),br.effects),function(e){for(var t={},n=0,r=Object.keys(e.fonts);n<r.length;n++)for(var i=r[n],o=e.fonts[i],a=0,s=Object.keys(o);a<s.length;a++){var l=s[a],u=i+l.charAt(0).toUpperCase()+l.slice(1),c=o[l];"fontSize"===l&&"number"==typeof c&&(c+="px"),t[u]=c}return t}(br))),y.applySettings(((n={}).theme=br,n)),Cr.forEach((function(e){try{e(br)}catch(e){}}))}(r.FabricConfig.legacyTheme):y.getSettings(["theme"]).theme||((null===(n=null==r?void 0:r.FabricConfig)||void 0===n?void 0:n.theme)&&(br=xr(r.FabricConfig.theme)),y.applySettings(((e={}).theme=br,e)))}Sr();var Er,kr={},Lr=void 0;try{Lr=window}catch(e){}function Ar(e,t){if(void 0!==Lr){var n=Lr.__packages__=Lr.__packages__||{};n[e]&&kr[e]||(kr[e]=t,(n[e]=n[e]||[]).push(t))}}Ar("@fluentui/set-version","6.0.0"),Ar("@fluentui/style-utilities","8.7.1"),Sr();var wr=((Er={})[Pe.top]=Dn.slideUpIn10,Er[Pe.bottom]=Dn.slideDownIn10,Er[Pe.left]=Dn.slideLeftIn10,Er[Pe.right]=Dn.slideRightIn10,Er),Dr={opacity:0,filter:"opacity(0)",pointerEvents:"none"},Tr=["role","aria-roledescription"],Mr={preventDismissOnLostFocus:!1,preventDismissOnScroll:!1,preventDismissOnResize:!1,isBeakVisible:!0,beakWidth:16,gapSpace:0,minPagePadding:8,directionalHint:7},Pr=le({disableCaching:!0});function Fr(e,t,n,r,o){var a=s.useState(),l=a[0],u=a[1],c=s.useRef(0),d=s.useRef(),h=Lt(),p=e.hidden,f=e.target,g=e.finalHeight,m=e.calloutMaxHeight,v=e.onPositioned,y=e.directionalHint;return s.useEffect((function(){if(!p){var a=h.requestAnimationFrame((function(){var a,s,h,p;if(t.current&&n){var y=i(i({},e),{target:r.current,bounds:o()}),_=n.cloneNode(!0);_.style.maxHeight=m?""+m:"",_.style.visibility="hidden",null===(a=n.parentElement)||void 0===a||a.appendChild(_);var x=d.current===f?l:void 0,b=g?function(e,t,n,r){return function(e,t,n,r){return bt(e,t,n,r,!0)}(e,t,n,r)}(y,t.current,_,x):function(e,t,n,r){return bt(e,t,n,r)}(y,t.current,_,x);null===(s=n.parentElement)||void 0===s||s.removeChild(_),!l&&b||l&&b&&(p=b,!Nr((h=l).elementPosition,p.elementPosition)||!Nr(h.beakPosition.elementPosition,p.beakPosition.elementPosition))&&c.current<5?(c.current++,u(b)):c.current>0&&(c.current=0,null==v||v(l))}}),n);return d.current=f,function(){h.cancelAnimationFrame(a),d.current=void 0}}u(void 0),c.current=0}),[p,y,h,n,m,t,r,g,o,v,l,e,f]),l}var Ir=s.memo(s.forwardRef((function(e,t){var n=Me(Mr,e),r=n.styles,o=n.style,a=n.ariaLabel,l=n.ariaDescribedBy,u=n.ariaLabelledBy,c=n.className,d=n.isBeakVisible,h=n.children,p=n.beakWidth,f=n.calloutWidth,g=n.calloutMaxWidth,m=n.calloutMinWidth,v=n.doNotLayer,y=n.finalHeight,_=n.hideOverflow,x=void 0===_?!!y:_,b=n.backgroundColor,C=n.calloutMaxHeight,S=n.onScroll,E=n.shouldRestoreFocus,k=void 0===E||E,L=n.target,A=n.hidden,w=n.onLayerMounted,D=s.useRef(null),T=s.useState(null),M=T[0],P=T[1],F=s.useCallback((function(e){P(e)}),[]),I=wt(D,t),O=function(e,t){var n=s.useRef(),r=s.useRef(null),i=Tt();if(!e||e!==n.current||"string"==typeof e){if(e)if("string"==typeof e){var o=$(null==t?void 0:t.current);r.current=o?o.querySelector(e):null}else r.current="stopPropagation"in e||"getBoundingClientRect"in e?e:"current"in e?e.current:e;n.current=e}return[r,i]}(n.target,{current:M}),N=O[0],H=O[1],R=function(e,t,n){var r=e.bounds,i=e.minPagePadding,o=void 0===i?Mr.minPagePadding:i,a=e.target,l=s.useState(!1),u=l[0],c=l[1],d=s.useRef(),h=s.useCallback((function(){if(!d.current||u){var e="function"==typeof r?n?r(a,n):void 0:r;!e&&n&&(e=function(e,t){return function(e,t){var n=void 0;if(t.getWindowSegments&&(n=t.getWindowSegments()),void 0===n||n.length<=1)return{top:0,left:0,right:t.innerWidth,bottom:t.innerHeight,width:t.innerWidth,height:t.innerHeight};var r=0,i=0;if(null!==e&&e.getBoundingClientRect){var o=e.getBoundingClientRect();r=(o.left+o.right)/2,i=(o.top+o.bottom)/2}else null!==e&&(r=e.left||e.x,i=e.top||e.y);for(var a={top:0,left:0,right:0,bottom:0,width:0,height:0},s=0,l=n;s<l.length;s++){var u=l[s];r&&u.left<=r&&u.right>=r&&i&&u.top<=i&&u.bottom>=i&&(a={top:u.top,left:u.left,right:u.right,bottom:u.bottom,width:u.width,height:u.height})}return a}(e,t)}(t.current,n),e={top:e.top+o,left:e.left+o,right:e.right-o,bottom:e.bottom-o,width:e.width-2*o,height:e.height-2*o}),d.current=e,u&&c(!1)}return d.current}),[r,o,a,t,n,u]),p=Lt();return At(n,"resize",p.debounce((function(){c(!0)}),500,{leading:!0})),h}(n,N,H),V=Fr(n,D,M,N,R),B=function(e,t,n){var r,i=e.calloutMaxHeight,o=e.finalHeight,a=e.directionalHint,l=e.directionalHintFixed,u=e.hidden,c=s.useState(),d=c[0],h=c[1],p=null!==(r=null==n?void 0:n.elementPosition)&&void 0!==r?r:{},f=p.top,g=p.bottom;return s.useEffect((function(){var e,n=null!==(e=t())&&void 0!==e?e:{},r=n.top,o=n.bottom;i||u?h(i||void 0):"number"==typeof f&&o?h(o-f):"number"==typeof g&&"number"==typeof r&&o&&h(o-r-g)}),[g,i,o,a,l,t,u,n,f]),d}(n,R,V),W=function(e,t,n,r,i){var o=e.hidden,a=e.onDismiss,l=e.preventDismissOnScroll,u=e.preventDismissOnResize,c=e.preventDismissOnLostFocus,d=e.dismissOnTargetClick,h=e.shouldDismissOnWindowFocus,p=e.preventDismissOnEvent,f=s.useRef(!1),g=Lt(),m=kt([function(){f.current=!0},function(){f.current=!1}]),v=!!t;return s.useEffect((function(){var e=function(e){v&&!l&&m(e)},t=function(e){u||p&&p(e)||null==a||a(e)},s=function(e){c||m(e)},m=function(e){var t=e.composedPath?e.composedPath():[],o=t.length>0?t[0]:e.target,s=n.current&&!xe(n.current,o);if(s&&f.current)f.current=!1;else if(!r.current&&s||e.target!==i&&s&&(!r.current||"stopPropagation"in r.current||d||o!==r.current&&!xe(r.current,o))){if(p&&p(e))return;null==a||a(e)}},y=function(e){h&&((!p||p(e))&&(p||c)||(null==i?void 0:i.document.hasFocus())||null!==e.relatedTarget||null==a||a(e))},_=new Promise((function(n){g.setTimeout((function(){if(!o&&i){var r=[Te(i,"scroll",e,!0),Te(i,"resize",t,!0),Te(i.document.documentElement,"focus",s,!0),Te(i.document.documentElement,"click",s,!0),Te(i,"blur",y,!0)];n((function(){r.forEach((function(e){return e()}))}))}}),0)}));return function(){_.then((function(e){return e()}))}}),[o,g,n,r,i,a,h,d,c,u,l,v,p]),m}(n,V,D,N,H),z=W[0],U=W[1],j=(null==V?void 0:V.elementPosition.top)&&(null==V?void 0:V.elementPosition.bottom),Y=i(i({},null==V?void 0:V.elementPosition),{maxHeight:B});if(j&&(Y.bottom=void 0),function(e,t,n){var r=e.hidden,i=e.setInitialFocus,o=Lt(),a=!!t;s.useEffect((function(){if(!r&&i&&a&&n){var e=o.requestAnimationFrame((function(){return be(n)}),n);return function(){return o.cancelAnimationFrame(e)}}}),[r,a,o,n,i])}(n,V,M),s.useEffect((function(){A||null==w||w()}),[A]),!H)return null;var X=x,q=d&&!!L,K=Pr(r,{theme:n.theme,className:c,overflowYHidden:X,calloutWidth:f,positions:V,beakWidth:p,backgroundColor:b,calloutMaxWidth:g,calloutMinWidth:m,doNotLayer:v}),Z=i(i({maxHeight:C||"100%"},o),X&&{overflowY:"hidden"}),G=n.hidden?{visibility:"hidden"}:void 0;return s.createElement("div",{ref:I,className:K.container,style:G},s.createElement("div",i({},ze(n,We,Tr),{className:Ue(K.root,V&&V.targetEdge&&wr[V.targetEdge]),style:V?i({},Y):Dr,tabIndex:-1,ref:F}),q&&s.createElement("div",{className:K.beak,style:Or(V)}),q&&s.createElement("div",{className:K.beakCurtain}),s.createElement(Pt,{role:n.role,"aria-roledescription":n["aria-roledescription"],ariaDescribedBy:l,ariaLabel:a,ariaLabelledBy:u,className:K.calloutMain,onDismiss:n.onDismiss,onMouseDown:z,onMouseUp:U,onRestoreFocus:n.onRestoreFocus,onScroll:S,shouldRestoreFocus:k,style:Z},h)))})),(function(e,t){return!(t.shouldUpdateWhenHidden||!e.hidden||!t.hidden)||function(e,t){for(var n in e)if(e.hasOwnProperty(n)&&(!t.hasOwnProperty(n)||t[n]!==e[n]))return!1;for(var n in t)if(t.hasOwnProperty(n)&&!e.hasOwnProperty(n))return!1;return!0}(e,t)}));function Or(e){var t,n,r=i(i({},null===(t=null==e?void 0:e.beakPosition)||void 0===t?void 0:t.elementPosition),{display:(null===(n=null==e?void 0:e.beakPosition)||void 0===n?void 0:n.hideBeak)?"none":void 0});return r.top||r.bottom||r.left||r.right||(r.left=0,r.top=0),r}function Nr(e,t){for(var n in t)if(t.hasOwnProperty(n)){var r=e[n],i=t[n];if(void 0===r||void 0===i)return!1;if(r.toFixed(2)!==i.toFixed(2))return!1}return!0}function Hr(e){return{height:e,width:e}}Ir.displayName="CalloutContentBase";var Rr={container:"ms-Callout-container",root:"ms-Callout",beak:"ms-Callout-beak",beakCurtain:"ms-Callout-beakCurtain",calloutMain:"ms-Callout-main"},Vr=b(Ir,(function(e){var t,n=e.theme,r=e.className,i=e.overflowYHidden,o=e.calloutWidth,a=e.beakWidth,s=e.backgroundColor,l=e.calloutMaxWidth,u=e.calloutMinWidth,c=e.doNotLayer,d=Zn(Rr,n),h=n.semanticColors,p=n.effects;return{container:[d.container,{position:"relative"}],root:[d.root,n.fonts.medium,{position:"absolute",display:"flex",zIndex:c?Mn.Layer:void 0,boxSizing:"border-box",borderRadius:p.roundedCorner2,boxShadow:p.elevation16,selectors:(t={},t[Pn]={borderWidth:1,borderStyle:"solid",borderColor:"WindowText"},t)},{selectors:{"&::-moz-focus-inner":{border:0},"&":{outline:"transparent"}}},r,!!o&&{width:o},!!l&&{maxWidth:l},!!u&&{minWidth:u}],beak:[d.beak,{position:"absolute",backgroundColor:h.menuBackground,boxShadow:"inherit",border:"inherit",boxSizing:"border-box",transform:"rotate(45deg)"},Hr(a),s&&{backgroundColor:s}],beakCurtain:[d.beakCurtain,{position:"absolute",top:0,right:0,bottom:0,left:0,backgroundColor:h.menuBackground,borderRadius:p.roundedCorner2}],calloutMain:[d.calloutMain,{backgroundColor:h.menuBackground,overflowX:"hidden",overflowY:"auto",position:"relative",width:"100%",borderRadius:p.roundedCorner2},i&&{overflowY:"hidden"},s&&{backgroundColor:s}]}}),void 0,{scope:"CalloutContent"}),Br=s.createContext((function(){return function(){}}));Br.Provider;var Wr,zr=ReactDOM,Ur=((Wr={})[38]=1,Wr[40]=1,Wr[37]=1,Wr[39]=1,Wr[36]=1,Wr[35]=1,Wr[9]=1,Wr[33]=1,Wr[34]=1,Wr),jr=new WeakMap;function Yr(e,t){var n,r=jr.get(e);return n=r?r+t:1,jr.set(e,n),n}function Xr(e){Nn(!1,e.target)}function qr(e){"mouse"!==e.pointerType&&Nn(!1,e.target)}function Kr(e){var t;t=e.which,Ur[t]&&Nn(!0,e.target)}function Zr(e,t){void 0===e&&(e={});var n=Gr(t)?t:function(e){return function(t){return e?i(i({},t),e):t}}(t);return n(e)}function Gr(e){return"function"==typeof e}var $r=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onCustomizationChange=function(){return t.forceUpdate()},t}return r(t,e),t.prototype.componentDidMount=function(){y.observe(this._onCustomizationChange)},t.prototype.componentWillUnmount=function(){y.unobserve(this._onCustomizationChange)},t.prototype.render=function(){var e=this,t=this.props.contextTransform;return s.createElement(_.Consumer,null,(function(n){var r=function(e,t){var n,r,o,a=(t||{}).customizations,s=void 0===a?{settings:{},scopedSettings:{}}:a;return{customizations:{settings:Zr(s.settings,e.settings),scopedSettings:(n=s.scopedSettings,r=e.scopedSettings,void 0===n&&(n={}),(Gr(r)?r:(void 0===(o=r)&&(o={}),function(e){var t=i({},e);for(var n in o)o.hasOwnProperty(n)&&(t[n]=i(i({},e[n]),o[n]));return t}))(n)),inCustomizerContext:!0}}}(e.props,n);return t&&(r=t(r)),s.createElement(_.Provider,{value:r},e.props.children)}))},t}(s.Component),Qr=le(),Jr=jn((function(e,t){return xr(i(i({},e),{rtl:t}))})),ei=s.forwardRef((function(e,t){var n,r=e.className,o=e.theme,a=e.applyTheme,l=e.applyThemeToBody,u=e.styles,d=Qr(u,{theme:o,applyTheme:a,className:r}),h=s.useRef(null);return function(e,t,n){var r=t.bodyThemed;s.useEffect((function(){if(e){var t=$(n.current);if(t)return t.body.classList.add(r),function(){t.body.classList.remove(r)}}}),[r,e,n])}(l,d,h),n=h,s.useEffect((function(){var e,t=c(null==n?void 0:n.current);if(t&&!0!==(null===(e=t.FabricConfig)||void 0===e?void 0:e.disableFocusRects)){var r=Yr(t,1);return r<=1&&(t.addEventListener("mousedown",Xr,!0),t.addEventListener("pointerdown",qr,!0),t.addEventListener("keydown",Kr,!0)),function(){var e;t&&!0!==(null===(e=t.FabricConfig)||void 0===e?void 0:e.disableFocusRects)&&0===(r=Yr(t,-1))&&(t.removeEventListener("mousedown",Xr,!0),t.removeEventListener("pointerdown",qr,!0),t.removeEventListener("keydown",Kr,!0))}}}),[n]),s.createElement(s.Fragment,null,function(e,t,n,r){var o=t.root,a=e.as,l=void 0===a?"div":a,u=e.dir,c=e.theme,d=ze(e,We,["dir"]),h=function(e){var t=e.theme,n=e.dir,r=ie(t)?"rtl":"ltr",i=ie()?"rtl":"ltr",o=n||r;return{rootDir:o!==r||o!==i?o:n,needsTheme:o!==r}}(e),p=h.rootDir,f=h.needsTheme,g=s.createElement(l,i({dir:p},d,{className:o,ref:wt(n,r)}));return f&&(g=s.createElement($r,{settings:{theme:Jr(c,"rtl"===u)}},g)),g}(e,d,h,t))}));ei.displayName="FabricBase";var ti,ni={fontFamily:"inherit"},ri={root:"ms-Fabric",bodyThemed:"ms-Fabric-bodyThemed"},ii=b(ei,(function(e){var t=e.theme,n=e.className,r=e.applyTheme;return{root:[Zn(ri,t).root,t.fonts.medium,{color:t.palette.neutralPrimary,selectors:{"& button":ni,"& input":ni,"& textarea":ni}},r&&{color:t.semanticColors.bodyText,backgroundColor:t.semanticColors.bodyBackground},n],bodyThemed:[{backgroundColor:t.semanticColors.bodyBackground}]}}),void 0,{scope:"Fabric"}),oi="data-portal-element",ai={},si={},li="fluent-default-layer-host",ui=s.useLayoutEffect,ci=le(),di=s.forwardRef((function(e,t){var n=s.useContext(Br),r=s.useRef(null),o=wt(r,t),a=s.useRef(),l=s.useState(!1),u=l[0],c=l[1],d=e.eventBubblingEnabled,h=e.styles,p=e.theme,f=e.className,g=e.children,m=e.hostId,v=e.onLayerDidMount,y=void 0===v?function(){}:v,_=e.onLayerMounted,x=void 0===_?function(){}:_,b=e.onLayerWillUnmount,C=e.insertFirst,S=ci(h,{theme:p,className:f,isNotHost:!m}),E=function(){null==b||b();var e=a.current;a.current=void 0,e&&e.parentNode&&e.parentNode.removeChild(e)},k=function(){var e,t=$(r.current);if(t){var n=function(e){var t,n;if(m){var r=function(e){var t=si[e];return t&&t[0]||void 0}(m);return r?null!==(t=r.rootRef.current)&&void 0!==t?t:null:null!==(n=e.getElementById(m))&&void 0!==n?n:null}var i="#fluent-default-layer-host",o=e.querySelector(i);return o||(o=function(e){var t=e.createElement("div");return t.setAttribute("id",li),t.style.cssText="position:fixed;z-index:1000000",null==e||e.body.appendChild(t),t}(e)),o}(t);if(n){E();var i=(null!==(e=n.ownerDocument)&&void 0!==e?e:t).createElement("div");i.className=S.root,i.setAttribute(oi,"true"),function(e,t){var n=e,r=t;n._virtual||(n._virtual={children:[]});var i=n._virtual.parent;if(i&&i!==t){var o=i._virtual.children.indexOf(n);o>-1&&i._virtual.children.splice(o,1)}n._virtual.parent=r||void 0,r&&(r._virtual||(r._virtual={children:[]}),r._virtual.children.push(n))}(i,r.current),C?n.insertBefore(i,n.firstChild):n.appendChild(i),a.current=i,c(!0)}}};return ui((function(){k(),m&&function(e,t){ai[e]||(ai[e]=[]),ai[e].push(t);var n=si[e];if(n)for(var r=0,i=n;r<i.length;r++)i[r].notifyLayersChanged()}(m,k);var e=a.current?n(a.current):void 0;return function(){e&&e(),E(),m&&function(e,t){var n=ai[e];if(n){var r=n.indexOf(t);r>=0&&(n.splice(r,1),0===n.length&&delete ai[e])}var i=si[e];if(i)for(var o=0,a=i;o<a.length;o++)a[o].notifyLayersChanged()}(m,k)}}),[m]),s.useEffect((function(){a.current&&u&&(null==x||x(),null==y||y(),c(!1))}),[u,x,y]),s.createElement("span",{className:"ms-layer",ref:o},a.current&&zr.createPortal(s.createElement(ii,i({},!d&&(ti||(ti={},["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(e){return ti[e]=hi}))),ti),{className:S.content}),g),a.current))}));di.displayName="LayerBase";var hi=function(e){e.eventPhase===Event.BUBBLING_PHASE&&"mouseenter"!==e.type&&"mouseleave"!==e.type&&"touchstart"!==e.type&&"touchend"!==e.type&&e.stopPropagation()},pi={root:"ms-Layer",rootNoHost:"ms-Layer--fixed",content:"ms-Layer-content"},fi=b(di,(function(e){var t=e.className,n=e.isNotHost,r=e.theme,i=Zn(pi,r);return{root:[i.root,r.fonts.medium,n&&[i.rootNoHost,{position:"fixed",zIndex:Mn.Layer,top:0,left:0,bottom:0,right:0,visibility:"hidden"}],t],content:[i.content,{visibility:"visible"}]}}),void 0,{scope:"Layer",fields:["hostId","theme","styles"]}),gi=s.forwardRef((function(e,t){var n=e.layerProps,r=e.doNotLayer,a=o(e,["layerProps","doNotLayer"]),l=s.createElement(Vr,i({},a,{doNotLayer:r,ref:t}));return r?l:s.createElement(fi,i({},n),l)}));gi.displayName="Callout";var mi=Array.prototype.slice;function vi(e){return e}var yi=1e-6;function _i(e){return"translate("+(e+.5)+",0)"}function xi(e){return"translate(0,"+(e+.5)+")"}function bi(e){return function(t){return+e(t)}}function Ci(e){var t=Math.max(0,e.bandwidth()-1)/2;return e.round()&&(t=Math.round(t)),function(n){return+e(n)+t}}function Si(){return!this.__axis}function Ei(e,t){var n=[],r=null,i=null,o=6,a=6,s=3,l=1===e||4===e?-1:1,u=4===e||2===e?"x":"y",c=1===e||3===e?_i:xi;function d(d){var h=null==r?t.ticks?t.ticks.apply(t,n):t.domain():r,p=null==i?t.tickFormat?t.tickFormat.apply(t,n):vi:i,f=Math.max(o,0)+s,g=t.range(),m=+g[0]+.5,v=+g[g.length-1]+.5,y=(t.bandwidth?Ci:bi)(t.copy()),_=d.selection?d.selection():d,x=_.selectAll(".domain").data([null]),b=_.selectAll(".tick").data(h,t).order(),C=b.exit(),S=b.enter().append("g").attr("class","tick"),E=b.select("line"),k=b.select("text");x=x.merge(x.enter().insert("path",".tick").attr("class","domain").attr("stroke","#000")),b=b.merge(S),E=E.merge(S.append("line").attr("stroke","#000").attr(u+"2",l*o)),k=k.merge(S.append("text").attr("fill","#000").attr(u,l*f).attr("dy",1===e?"0em":3===e?"0.71em":"0.32em")),d!==_&&(x=x.transition(d),b=b.transition(d),E=E.transition(d),k=k.transition(d),C=C.transition(d).attr("opacity",yi).attr("transform",(function(e){return isFinite(e=y(e))?c(e):this.getAttribute("transform")})),S.attr("opacity",yi).attr("transform",(function(e){var t=this.parentNode.__axis;return c(t&&isFinite(t=t(e))?t:y(e))}))),C.remove(),x.attr("d",4===e||2==e?"M"+l*a+","+m+"H0.5V"+v+"H"+l*a:"M"+m+","+l*a+"V0.5H"+v+"V"+l*a),b.attr("opacity",1).attr("transform",(function(e){return c(y(e))})),E.attr(u+"2",l*o),k.attr(u,l*f).text(p),_.filter(Si).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===e?"start":4===e?"end":"middle"),_.each((function(){this.__axis=y}))}return d.scale=function(e){return arguments.length?(t=e,d):t},d.ticks=function(){return n=mi.call(arguments),d},d.tickArguments=function(e){return arguments.length?(n=null==e?[]:mi.call(e),d):n.slice()},d.tickValues=function(e){return arguments.length?(r=null==e?null:mi.call(e),d):r&&r.slice()},d.tickFormat=function(e){return arguments.length?(i=e,d):i},d.tickSize=function(e){return arguments.length?(o=a=+e,d):o},d.tickSizeInner=function(e){return arguments.length?(o=+e,d):o},d.tickSizeOuter=function(e){return arguments.length?(a=+e,d):a},d.tickPadding=function(e){return arguments.length?(s=+e,d):s},d}function ki(e){return Ei(2,e)}function Li(e){return Ei(3,e)}function Ai(e){return Ei(4,e)}function wi(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Di(e){var t;return 1===e.length&&(t=e,e=function(e,n){return wi(t(e),n)}),{left:function(t,n,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r<i;){var o=r+i>>>1;e(t[o],n)<0?r=o+1:i=o}return r},right:function(t,n,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r<i;){var o=r+i>>>1;e(t[o],n)>0?i=o:r=o+1}return r}}}var Ti=Di(wi),Mi=Ti.right,Pi=(Ti.left,Mi),Fi=Array.prototype,Ii=(Fi.slice,Fi.map,Math.sqrt(50)),Oi=Math.sqrt(10),Ni=Math.sqrt(2);function Hi(e,t,n){var r=(t-e)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),o=r/Math.pow(10,i);return i>=0?(o>=Ii?10:o>=Oi?5:o>=Ni?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=Ii?10:o>=Oi?5:o>=Ni?2:1)}function Ri(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=Ii?i*=10:o>=Oi?i*=5:o>=Ni&&(i*=2),t<e?-i:i}function Vi(e,t){var n,r,i=e.length,o=-1;if(null==t){for(;++o<i;)if(null!=(n=e[o])&&n>=n)for(r=n;++o<i;)null!=(n=e[o])&&n>r&&(r=n)}else for(;++o<i;)if(null!=(n=t(e[o],o,e))&&n>=n)for(r=n;++o<i;)null!=(n=t(e[o],o,e))&&n>r&&(r=n);return r}function Bi(e,t){var n,r,i=e.length,o=-1;if(null==t){for(;++o<i;)if(null!=(n=e[o])&&n>=n)for(r=n;++o<i;)null!=(n=e[o])&&r>n&&(r=n)}else for(;++o<i;)if(null!=(n=t(e[o],o,e))&&n>=n)for(r=n;++o<i;)null!=(n=t(e[o],o,e))&&r>n&&(r=n);return r}function Wi(e,t){var n,r=e.length,i=-1,o=0;if(null==t)for(;++i<r;)(n=+e[i])&&(o+=n);else for(;++i<r;)(n=+t(e[i],i,e))&&(o+=n);return o}var zi="$";function Ui(){}function ji(e,t){var n=new Ui;if(e instanceof Ui)e.each((function(e,t){n.set(t,e)}));else if(Array.isArray(e)){var r,i=-1,o=e.length;if(null==t)for(;++i<o;)n.set(i,e[i]);else for(;++i<o;)n.set(t(r=e[i],i,e),r)}else if(e)for(var a in e)n.set(a,e[a]);return n}Ui.prototype=ji.prototype={constructor:Ui,has:function(e){return zi+e in this},get:function(e){return this[zi+e]},set:function(e,t){return this[zi+e]=t,this},remove:function(e){var t=zi+e;return t in this&&delete this[t]},clear:function(){for(var e in this)e[0]===zi&&delete this[e]},keys:function(){var e=[];for(var t in this)t[0]===zi&&e.push(t.slice(1));return e},values:function(){var e=[];for(var t in this)t[0]===zi&&e.push(this[t]);return e},entries:function(){var e=[];for(var t in this)t[0]===zi&&e.push({key:t.slice(1),value:this[t]});return e},size:function(){var e=0;for(var t in this)t[0]===zi&&++e;return e},empty:function(){for(var e in this)if(e[0]===zi)return!1;return!0},each:function(e){for(var t in this)t[0]===zi&&e(this[t],t.slice(1),this)}};var Yi=ji;function Xi(){}var qi=Yi.prototype;Xi.prototype=function(e,t){var n=new Xi;if(e instanceof Xi)e.each((function(e){n.add(e)}));else if(e){var r=-1,i=e.length;if(null==t)for(;++r<i;)n.add(e[r]);else for(;++r<i;)n.add(t(e[r],r,e))}return n}.prototype={constructor:Xi,has:qi.has,add:function(e){return this[zi+(e+="")]=e,this},remove:qi.remove,clear:qi.clear,values:qi.keys,size:qi.size,empty:qi.empty,each:qi.each};var Ki=Array.prototype,Zi=Ki.map,Gi=Ki.slice,$i={name:"implicit"};function Qi(e){var t=Yi(),n=[],r=$i;function i(i){var o=i+"",a=t.get(o);if(!a){if(r!==$i)return r;t.set(o,a=n.push(i))}return e[(a-1)%e.length]}return e=null==e?[]:Gi.call(e),i.domain=function(e){if(!arguments.length)return n.slice();n=[],t=Yi();for(var r,o,a=-1,s=e.length;++a<s;)t.has(o=(r=e[a])+"")||t.set(o,n.push(r));return i},i.range=function(t){return arguments.length?(e=Gi.call(t),i):e.slice()},i.unknown=function(e){return arguments.length?(r=e,i):r},i.copy=function(){return Qi().domain(n).range(e).unknown(r)},i}function Ji(){var e,t,n=Qi().unknown(void 0),r=n.domain,i=n.range,o=[0,1],a=!1,s=0,l=0,u=.5;function c(){var n=r().length,c=o[1]<o[0],d=o[c-0],h=o[1-c];e=(h-d)/Math.max(1,n-s+2*l),a&&(e=Math.floor(e)),d+=(h-d-e*(n-s))*u,t=e*(1-s),a&&(d=Math.round(d),t=Math.round(t));var p=function(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((t-e)/n)),o=new Array(i);++r<i;)o[r]=e+r*n;return o}(n).map((function(t){return d+e*t}));return i(c?p.reverse():p)}return delete n.unknown,n.domain=function(e){return arguments.length?(r(e),c()):r()},n.range=function(e){return arguments.length?(o=[+e[0],+e[1]],c()):o.slice()},n.rangeRound=function(e){return o=[+e[0],+e[1]],a=!0,c()},n.bandwidth=function(){return t},n.step=function(){return e},n.round=function(e){return arguments.length?(a=!!e,c()):a},n.padding=function(e){return arguments.length?(s=l=Math.max(0,Math.min(1,e)),c()):s},n.paddingInner=function(e){return arguments.length?(s=Math.max(0,Math.min(1,e)),c()):s},n.paddingOuter=function(e){return arguments.length?(l=Math.max(0,Math.min(1,e)),c()):l},n.align=function(e){return arguments.length?(u=Math.max(0,Math.min(1,e)),c()):u},n.copy=function(){return Ji().domain(r()).range(o).round(a).paddingInner(s).paddingOuter(l).align(u)},c()}function eo(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function to(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function no(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function ro(){}var io=.7,oo=1/io,ao="\\s*([+-]?\\d+)\\s*",so="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",lo="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",uo=/^#([0-9a-f]{3,8})$/,co=new RegExp("^rgb\\("+[ao,ao,ao]+"\\)$"),ho=new RegExp("^rgb\\("+[lo,lo,lo]+"\\)$"),po=new RegExp("^rgba\\("+[ao,ao,ao,so]+"\\)$"),fo=new RegExp("^rgba\\("+[lo,lo,lo,so]+"\\)$"),go=new RegExp("^hsl\\("+[so,lo,lo]+"\\)$"),mo=new RegExp("^hsla\\("+[so,lo,lo,so]+"\\)$"),vo={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 yo(){return this.rgb().formatHex()}function _o(){return this.rgb().formatRgb()}function xo(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=uo.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?bo(t):3===n?new ko(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?new ko(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?new ko(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=co.exec(e))?new ko(t[1],t[2],t[3],1):(t=ho.exec(e))?new ko(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=po.exec(e))?Co(t[1],t[2],t[3],t[4]):(t=fo.exec(e))?Co(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=go.exec(e))?Do(t[1],t[2]/100,t[3]/100,1):(t=mo.exec(e))?Do(t[1],t[2]/100,t[3]/100,t[4]):vo.hasOwnProperty(e)?bo(vo[e]):"transparent"===e?new ko(NaN,NaN,NaN,0):null}function bo(e){return new ko(e>>16&255,e>>8&255,255&e,1)}function Co(e,t,n,r){return r<=0&&(e=t=n=NaN),new ko(e,t,n,r)}function So(e){return e instanceof ro||(e=xo(e)),e?new ko((e=e.rgb()).r,e.g,e.b,e.opacity):new ko}function Eo(e,t,n,r){return 1===arguments.length?So(e):new ko(e,t,n,null==r?1:r)}function ko(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Lo(){return"#"+wo(this.r)+wo(this.g)+wo(this.b)}function Ao(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}function wo(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function Do(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Mo(e,t,n,r)}function To(e){if(e instanceof Mo)return new Mo(e.h,e.s,e.l,e.opacity);if(e instanceof ro||(e=xo(e)),!e)return new Mo;if(e instanceof Mo)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,l=(o+i)/2;return s?(a=t===o?(n-r)/s+6*(n<r):n===o?(r-t)/s+2:(t-n)/s+4,s/=l<.5?o+i:2-o-i,a*=60):s=l>0&&l<1?0:a,new Mo(a,s,l,e.opacity)}function Mo(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Po(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}function Fo(e,t,n,r,i){var o=e*e,a=o*e;return((1-3*e+3*o-a)*t+(4-6*o+3*a)*n+(1+3*e+3*o-3*a)*r+a*i)/6}function Io(e){return function(){return e}}function Oo(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):Io(isNaN(e)?t:e)}to(ro,xo,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:yo,formatHex:yo,formatHsl:function(){return To(this).formatHsl()},formatRgb:_o,toString:_o}),to(ko,Eo,no(ro,{brighter:function(e){return e=null==e?oo:Math.pow(oo,e),new ko(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?io:Math.pow(io,e),new ko(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Lo,formatHex:Lo,formatRgb:Ao,toString:Ao})),to(Mo,(function(e,t,n,r){return 1===arguments.length?To(e):new Mo(e,t,n,null==r?1:r)}),no(ro,{brighter:function(e){return e=null==e?oo:Math.pow(oo,e),new Mo(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?io:Math.pow(io,e),new Mo(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new ko(Po(e>=240?e-240:e+120,i,r),Po(e,i,r),Po(e<120?e+240:e-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}));var No=function e(t){var n=function(e){return 1==(e=+e)?Oo:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):Io(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=Eo(e)).r,(t=Eo(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),a=Oo(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function Ho(e){return function(t){var n,r,i=t.length,o=new Array(i),a=new Array(i),s=new Array(i);for(n=0;n<i;++n)r=Eo(t[n]),o[n]=r.r||0,a[n]=r.g||0,s[n]=r.b||0;return o=e(o),a=e(a),s=e(s),r.opacity=1,function(e){return r.r=o(e),r.g=a(e),r.b=s(e),r+""}}}function Ro(e,t){var n,r=t?t.length:0,i=e?Math.min(r,e.length):0,o=new Array(i),a=new Array(r);for(n=0;n<i;++n)o[n]=Yo(e[n],t[n]);for(;n<r;++n)a[n]=t[n];return function(e){for(n=0;n<i;++n)a[n]=o[n](e);return a}}function Vo(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Bo(e,t){var n,r={},i={};for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?r[n]=Yo(e[n],t[n]):i[n]=t[n];return function(e){for(n in r)i[n]=r[n](e);return i}}Ho((function(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),i=e[r],o=e[r+1],a=r>0?e[r-1]:2*i-o,s=r<t-1?e[r+2]:2*o-i;return Fo((n-r/t)*t,a,i,o,s)}})),Ho((function(e){var t=e.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*t),i=e[(r+t-1)%t],o=e[r%t],a=e[(r+1)%t],s=e[(r+2)%t];return Fo((n-r/t)*t,i,o,a,s)}}));var Wo=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,zo=new RegExp(Wo.source,"g");function Uo(e,t){var n,r,i,o=Wo.lastIndex=zo.lastIndex=0,a=-1,s=[],l=[];for(e+="",t+="";(n=Wo.exec(e))&&(r=zo.exec(t));)(i=r.index)>o&&(i=t.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,l.push({i:a,x:eo(n,r)})),o=zo.lastIndex;return o<t.length&&(i=t.slice(o),s[a]?s[a]+=i:s[++a]=i),s.length<2?l[0]?function(e){return function(t){return e(t)+""}}(l[0].x):function(e){return function(){return e}}(t):(t=l.length,function(e){for(var n,r=0;r<t;++r)s[(n=l[r]).i]=n.x(e);return s.join("")})}function jo(e,t){t||(t=[]);var n,r=e?Math.min(t.length,e.length):0,i=t.slice();return function(o){for(n=0;n<r;++n)i[n]=e[n]*(1-o)+t[n]*o;return i}}function Yo(e,t){var n,r,i=typeof t;return null==t||"boolean"===i?Io(t):("number"===i?eo:"string"===i?(n=xo(t))?(t=n,No):Uo:t instanceof xo?No:t instanceof Date?Vo:(r=t,!ArrayBuffer.isView(r)||r instanceof DataView?Array.isArray(t)?Ro:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?Bo:eo:jo))(e,t)}function Xo(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function qo(e){return+e}var Ko=[0,1];function Zo(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:(n=t,function(){return n});var n}function Go(e,t,n,r){var i=e[0],o=e[1],a=t[0],s=t[1];return o<i?(i=n(o,i),a=r(s,a)):(i=n(i,o),a=r(a,s)),function(e){return a(i(e))}}function $o(e,t,n,r){var i=Math.min(e.length,t.length)-1,o=new Array(i),a=new Array(i),s=-1;for(e[i]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++s<i;)o[s]=n(e[s],e[s+1]),a[s]=r(t[s],t[s+1]);return function(t){var n=Pi(e,t,1,i)-1;return a[n](o[n](t))}}function Qo(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp())}function Jo(e,t){var n,r,i,o=Ko,a=Ko,s=Yo,l=!1;function u(){return n=Math.min(o.length,a.length)>2?$o:Go,r=i=null,c}function c(t){return(r||(r=n(o,a,l?function(e){return function(t,n){var r=e(t=+t,n=+n);return function(e){return e<=t?0:e>=n?1:r(e)}}}(e):e,s)))(+t)}return c.invert=function(e){return(i||(i=n(a,o,Zo,l?function(e){return function(t,n){var r=e(t=+t,n=+n);return function(e){return e<=0?t:e>=1?n:r(e)}}}(t):t)))(+e)},c.domain=function(e){return arguments.length?(o=Zi.call(e,qo),u()):o.slice()},c.range=function(e){return arguments.length?(a=Gi.call(e),u()):a.slice()},c.rangeRound=function(e){return a=Gi.call(e),s=Xo,u()},c.clamp=function(e){return arguments.length?(l=!!e,u()):l},c.interpolate=function(e){return arguments.length?(s=e,u()):s},u()}var ea,ta=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function na(e){if(!(t=ta.exec(e)))throw new Error("invalid format: "+e);var t;return new ra({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function ra(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function ia(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function oa(e){return(e=ia(Math.abs(e)))?e[1]:NaN}function aa(e,t){var n=ia(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}na.prototype=ra.prototype,ra.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 sa={"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:function(e){return Math.round(e).toString(10)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return aa(100*e,t)},r:aa,s:function(e,t){var n=ia(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(ea=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+ia(e,Math.max(0,t+o-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function la(e){return e}var ua,ca,da,ha=Array.prototype.map,pa=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function fa(e){var t=e.domain;return e.ticks=function(e){var n=t();return function(e,t,n){var r,i,o,a,s=-1;if(n=+n,(e=+e)==(t=+t)&&n>0)return[e];if((r=t<e)&&(i=e,e=t,t=i),0===(a=Hi(e,t,n))||!isFinite(a))return[];if(a>0)for(e=Math.ceil(e/a),t=Math.floor(t/a),o=new Array(i=Math.ceil(t-e+1));++s<i;)o[s]=(e+s)*a;else for(e=Math.floor(e*a),t=Math.ceil(t*a),o=new Array(i=Math.ceil(e-t+1));++s<i;)o[s]=(e-s)/a;return r&&o.reverse(),o}(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){return function(e,t,n){var r,i=e[0],o=e[e.length-1],a=Ri(i,o,null==t?10:t);switch((n=na(null==n?",f":n)).type){case"s":var s=Math.max(Math.abs(i),Math.abs(o));return null!=n.precision||isNaN(r=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(oa(t)/3)))-oa(Math.abs(e)))}(a,s))||(n.precision=r),da(n,s);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(r=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,oa(t)-oa(e))+1}(a,Math.max(Math.abs(i),Math.abs(o))))||(n.precision=r-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(r=function(e){return Math.max(0,-oa(Math.abs(e)))}(a))||(n.precision=r-2*("%"===n.type))}return ca(n)}(t(),e,n)},e.nice=function(n){null==n&&(n=10);var r,i=t(),o=0,a=i.length-1,s=i[o],l=i[a];return l<s&&(r=s,s=l,l=r,r=o,o=a,a=r),(r=Hi(s,l,n))>0?r=Hi(s=Math.floor(s/r)*r,l=Math.ceil(l/r)*r,n):r<0&&(r=Hi(s=Math.ceil(s*r)/r,l=Math.floor(l*r)/r,n)),r>0?(i[o]=Math.floor(s/r)*r,i[a]=Math.ceil(l/r)*r,t(i)):r<0&&(i[o]=Math.ceil(s*r)/r,i[a]=Math.floor(l*r)/r,t(i)),e},e}function ga(){var e=Jo(Zo,eo);return e.copy=function(){return Qo(e,ga())},fa(e)}ua=function(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?la:(t=ha.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var i=e.length,o=[],a=0,s=t[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),o.push(e.substring(i-=s,i+s)),!((l+=s+1)>r));)s=t[a=(a+1)%t.length];return o.reverse().join(n)}),i=void 0===e.currency?"":e.currency[0]+"",o=void 0===e.currency?"":e.currency[1]+"",a=void 0===e.decimal?".":e.decimal+"",s=void 0===e.numerals?la:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(ha.call(e.numerals,String)),l=void 0===e.percent?"%":e.percent+"",u=void 0===e.minus?"-":e.minus+"",c=void 0===e.nan?"NaN":e.nan+"";function d(e){var t=(e=na(e)).fill,n=e.align,d=e.sign,h=e.symbol,p=e.zero,f=e.width,g=e.comma,m=e.precision,v=e.trim,y=e.type;"n"===y?(g=!0,y="g"):sa[y]||(void 0===m&&(m=12),v=!0,y="g"),(p||"0"===t&&"="===n)&&(p=!0,t="0",n="=");var _="$"===h?i:"#"===h&&/[boxX]/.test(y)?"0"+y.toLowerCase():"",x="$"===h?o:/[%p]/.test(y)?l:"",b=sa[y],C=/[defgprs%]/.test(y);function S(e){var i,o,l,h=_,S=x;if("c"===y)S=b(e)+S,e="";else{var E=(e=+e)<0||1/e<0;if(e=isNaN(e)?c:b(Math.abs(e),m),v&&(e=function(e){e:for(var t,n=e.length,r=1,i=-1;r<n;++r)switch(e[r]){case".":i=t=r;break;case"0":0===i&&(i=r),t=r;break;default:if(!+e[r])break e;i>0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),E&&0==+e&&"+"!==d&&(E=!1),h=(E?"("===d?d:u:"-"===d||"("===d?"":d)+h,S=("s"===y?pa[8+ea/3]:"")+S+(E&&"("===d?")":""),C)for(i=-1,o=e.length;++i<o;)if(48>(l=e.charCodeAt(i))||l>57){S=(46===l?a+e.slice(i+1):e.slice(i))+S,e=e.slice(0,i);break}}g&&!p&&(e=r(e,1/0));var k=h.length+e.length+S.length,L=k<f?new Array(f-k+1).join(t):"";switch(g&&p&&(e=r(L+e,L.length?f-S.length:1/0),L=""),n){case"<":e=h+e+S+L;break;case"=":e=h+L+e+S;break;case"^":e=L.slice(0,k=L.length>>1)+h+e+S+L.slice(k);break;default:e=L+h+e+S}return s(e)}return m=void 0===m?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,m)):Math.max(0,Math.min(20,m)),S.toString=function(){return e+""},S}return{format:d,formatPrefix:function(e,t){var n=d(((e=na(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(oa(t)/3))),i=Math.pow(10,-r),o=pa[8+r/3];return function(e){return n(i*e)+o}}}}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),ca=ua.format,da=ua.formatPrefix;var ma=new Date,va=new Date;function ya(e,t,n,r){function i(t){return e(t=new Date(+t)),t}return i.floor=i,i.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},i.round=function(e){var t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=function(e,n){return t(e=new Date(+e),null==n?1:Math.floor(n)),e},i.range=function(n,r,o){var a,s=[];if(n=i.ceil(n),o=null==o?1:Math.floor(o),!(n<r&&o>0))return s;do{s.push(a=new Date(+n)),t(n,o),e(n)}while(a<n&&n<r);return s},i.filter=function(n){return ya((function(t){if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),(function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}))},n&&(i.count=function(t,r){return ma.setTime(+t),va.setTime(+r),e(ma),e(va),Math.floor(n(ma,va))},i.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?i.filter(r?function(t){return r(t)%e==0}:function(t){return i.count(0,t)%e==0}):i:null}),i}var _a=ya((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e}));_a.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?ya((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):_a:null};var xa=_a,ba=(_a.range,1e3),Ca=6e4,Sa=36e5,Ea=864e5,ka=6048e5,La=ya((function(e){e.setTime(e-e.getMilliseconds())}),(function(e,t){e.setTime(+e+t*ba)}),(function(e,t){return(t-e)/ba}),(function(e){return e.getUTCSeconds()})),Aa=La,wa=(La.range,ya((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*ba)}),(function(e,t){e.setTime(+e+t*Ca)}),(function(e,t){return(t-e)/Ca}),(function(e){return e.getMinutes()}))),Da=wa,Ta=(wa.range,ya((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*ba-e.getMinutes()*Ca)}),(function(e,t){e.setTime(+e+t*Sa)}),(function(e,t){return(t-e)/Sa}),(function(e){return e.getHours()}))),Ma=Ta,Pa=(Ta.range,ya((function(e){e.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Ca)/Ea}),(function(e){return e.getDate()-1}))),Fa=Pa;function Ia(e){return ya((function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+7*t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Ca)/ka}))}Pa.range;var Oa=Ia(0),Na=Ia(1),Ha=Ia(2),Ra=Ia(3),Va=Ia(4),Ba=Ia(5),Wa=Ia(6),za=(Oa.range,Na.range,Ha.range,Ra.range,Va.range,Ba.range,Wa.range,ya((function(e){e.setDate(1),e.setHours(0,0,0,0)}),(function(e,t){e.setMonth(e.getMonth()+t)}),(function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())}),(function(e){return e.getMonth()}))),Ua=za,ja=(za.range,ya((function(e){e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,t){e.setFullYear(e.getFullYear()+t)}),(function(e,t){return t.getFullYear()-e.getFullYear()}),(function(e){return e.getFullYear()})));ja.every=function(e){return isFinite(e=Math.floor(e))&&e>0?ya((function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n*e)})):null};var Ya=ja,Xa=(ja.range,ya((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+t*Ca)}),(function(e,t){return(t-e)/Ca}),(function(e){return e.getUTCMinutes()}))),qa=(Xa.range,ya((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+t*Sa)}),(function(e,t){return(t-e)/Sa}),(function(e){return e.getUTCHours()}))),Ka=(qa.range,ya((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/Ea}),(function(e){return e.getUTCDate()-1}))),Za=Ka;function Ga(e){return ya((function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+7*t)}),(function(e,t){return(t-e)/ka}))}Ka.range;var $a=Ga(0),Qa=Ga(1),Ja=Ga(2),es=Ga(3),ts=Ga(4),ns=Ga(5),rs=Ga(6),is=($a.range,Qa.range,Ja.range,es.range,ts.range,ns.range,rs.range,ya((function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCMonth(e.getUTCMonth()+t)}),(function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())}),(function(e){return e.getUTCMonth()}))),os=(is.range,ya((function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)}),(function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}),(function(e){return e.getUTCFullYear()})));os.every=function(e){return isFinite(e=Math.floor(e))&&e>0?ya((function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null};var as=os;function ss(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function ls(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function us(e){return{y:e,m:0,d:1,H:0,M:0,S:0,L:0}}os.range;var cs,ds,hs,ps,fs={"-":"",_:" ",0:"0"},gs=/^\s*\d+/,ms=/^%/,vs=/[\\^$*+?|[\]().{}]/g;function ys(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(t)+i:i)}function _s(e){return e.replace(vs,"\\$&")}function xs(e){return new RegExp("^(?:"+e.map(_s).join("|")+")","i")}function bs(e){for(var t={},n=-1,r=e.length;++n<r;)t[e[n].toLowerCase()]=n;return t}function Cs(e,t,n){var r=gs.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Ss(e,t,n){var r=gs.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Es(e,t,n){var r=gs.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function ks(e,t,n){var r=gs.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Ls(e,t,n){var r=gs.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function As(e,t,n){var r=gs.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function ws(e,t,n){var r=gs.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Ds(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Ts(e,t,n){var r=gs.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function Ms(e,t,n){var r=gs.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Ps(e,t,n){var r=gs.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Fs(e,t,n){var r=gs.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Is(e,t,n){var r=gs.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Os(e,t,n){var r=gs.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Ns(e,t,n){var r=gs.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Hs(e,t,n){var r=gs.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Rs(e,t,n){var r=ms.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Vs(e,t,n){var r=gs.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Bs(e,t,n){var r=gs.exec(t.slice(n));return r?(e.Q=1e3*+r[0],n+r[0].length):-1}function Ws(e,t){return ys(e.getDate(),t,2)}function zs(e,t){return ys(e.getHours(),t,2)}function Us(e,t){return ys(e.getHours()%12||12,t,2)}function js(e,t){return ys(1+Fa.count(Ya(e),e),t,3)}function Ys(e,t){return ys(e.getMilliseconds(),t,3)}function Xs(e,t){return Ys(e,t)+"000"}function qs(e,t){return ys(e.getMonth()+1,t,2)}function Ks(e,t){return ys(e.getMinutes(),t,2)}function Zs(e,t){return ys(e.getSeconds(),t,2)}function Gs(e){var t=e.getDay();return 0===t?7:t}function $s(e,t){return ys(Oa.count(Ya(e),e),t,2)}function Qs(e,t){var n=e.getDay();return e=n>=4||0===n?Va(e):Va.ceil(e),ys(Va.count(Ya(e),e)+(4===Ya(e).getDay()),t,2)}function Js(e){return e.getDay()}function el(e,t){return ys(Na.count(Ya(e),e),t,2)}function tl(e,t){return ys(e.getFullYear()%100,t,2)}function nl(e,t){return ys(e.getFullYear()%1e4,t,4)}function rl(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+ys(t/60|0,"0",2)+ys(t%60,"0",2)}function il(e,t){return ys(e.getUTCDate(),t,2)}function ol(e,t){return ys(e.getUTCHours(),t,2)}function al(e,t){return ys(e.getUTCHours()%12||12,t,2)}function sl(e,t){return ys(1+Za.count(as(e),e),t,3)}function ll(e,t){return ys(e.getUTCMilliseconds(),t,3)}function ul(e,t){return ll(e,t)+"000"}function cl(e,t){return ys(e.getUTCMonth()+1,t,2)}function dl(e,t){return ys(e.getUTCMinutes(),t,2)}function hl(e,t){return ys(e.getUTCSeconds(),t,2)}function pl(e){var t=e.getUTCDay();return 0===t?7:t}function fl(e,t){return ys($a.count(as(e),e),t,2)}function gl(e,t){var n=e.getUTCDay();return e=n>=4||0===n?ts(e):ts.ceil(e),ys(ts.count(as(e),e)+(4===as(e).getUTCDay()),t,2)}function ml(e){return e.getUTCDay()}function vl(e,t){return ys(Qa.count(as(e),e),t,2)}function yl(e,t){return ys(e.getUTCFullYear()%100,t,2)}function _l(e,t){return ys(e.getUTCFullYear()%1e4,t,4)}function xl(){return"+0000"}function bl(){return"%"}function Cl(e){return+e}function Sl(e){return Math.floor(+e/1e3)}cs=function(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,a=e.shortDays,s=e.months,l=e.shortMonths,u=xs(i),c=bs(i),d=xs(o),h=bs(o),p=xs(a),f=bs(a),g=xs(s),m=bs(s),v=xs(l),y=bs(l),_={a:function(e){return a[e.getDay()]},A:function(e){return o[e.getDay()]},b:function(e){return l[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:null,d:Ws,e:Ws,f:Xs,H:zs,I:Us,j:js,L:Ys,m:qs,M:Ks,p:function(e){return i[+(e.getHours()>=12)]},Q:Cl,s:Sl,S:Zs,u:Gs,U:$s,V:Qs,w:Js,W:el,x:null,X:null,y:tl,Y:nl,Z:rl,"%":bl},x={a:function(e){return a[e.getUTCDay()]},A:function(e){return o[e.getUTCDay()]},b:function(e){return l[e.getUTCMonth()]},B:function(e){return s[e.getUTCMonth()]},c:null,d:il,e:il,f:ul,H:ol,I:al,j:sl,L:ll,m:cl,M:dl,p:function(e){return i[+(e.getUTCHours()>=12)]},Q:Cl,s:Sl,S:hl,u:pl,U:fl,V:gl,w:ml,W:vl,x:null,X:null,y:yl,Y:_l,Z:xl,"%":bl},b={a:function(e,t,n){var r=p.exec(t.slice(n));return r?(e.w=f[r[0].toLowerCase()],n+r[0].length):-1},A:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=h[r[0].toLowerCase()],n+r[0].length):-1},b:function(e,t,n){var r=v.exec(t.slice(n));return r?(e.m=y[r[0].toLowerCase()],n+r[0].length):-1},B:function(e,t,n){var r=g.exec(t.slice(n));return r?(e.m=m[r[0].toLowerCase()],n+r[0].length):-1},c:function(e,n,r){return E(e,t,n,r)},d:Ms,e:Ms,f:Hs,H:Fs,I:Fs,j:Ps,L:Ns,m:Ts,M:Is,p:function(e,t,n){var r=u.exec(t.slice(n));return r?(e.p=c[r[0].toLowerCase()],n+r[0].length):-1},Q:Vs,s:Bs,S:Os,u:Ss,U:Es,V:ks,w:Cs,W:Ls,x:function(e,t,r){return E(e,n,t,r)},X:function(e,t,n){return E(e,r,t,n)},y:ws,Y:As,Z:Ds,"%":Rs};function C(e,t){return function(n){var r,i,o,a=[],s=-1,l=0,u=e.length;for(n instanceof Date||(n=new Date(+n));++s<u;)37===e.charCodeAt(s)&&(a.push(e.slice(l,s)),null!=(i=fs[r=e.charAt(++s)])?r=e.charAt(++s):i="e"===r?" ":"0",(o=t[r])&&(r=o(n,i)),a.push(r),l=s+1);return a.push(e.slice(l,s)),a.join("")}}function S(e,t){return function(n){var r,i,o=us(1900);if(E(o,e,n+="",0)!=n.length)return null;if("Q"in o)return new Date(o.Q);if("p"in o&&(o.H=o.H%12+12*o.p),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(i=(r=ls(us(o.y))).getUTCDay(),r=i>4||0===i?Qa.ceil(r):Qa(r),r=Za.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=t(us(o.y))).getDay(),r=i>4||0===i?Na.ceil(r):Na(r),r=Fa.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?ls(us(o.y)).getUTCDay():t(us(o.y)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,ls(o)):t(o)}}function E(e,t,n,r){for(var i,o,a=0,s=t.length,l=n.length;a<s;){if(r>=l)return-1;if(37===(i=t.charCodeAt(a++))){if(i=t.charAt(a++),!(o=b[i in fs?t.charAt(a++):i])||(r=o(e,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return _.x=C(n,_),_.X=C(r,_),_.c=C(t,_),x.x=C(n,x),x.X=C(r,x),x.c=C(t,x),{format:function(e){var t=C(e+="",_);return t.toString=function(){return e},t},parse:function(e){var t=S(e+="",ss);return t.toString=function(){return e},t},utcFormat:function(e){var t=C(e+="",x);return t.toString=function(){return e},t},utcParse:function(e){var t=S(e,ls);return t.toString=function(){return e},t}}}({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"]}),ds=cs.format,cs.parse,hs=cs.utcFormat,ps=cs.utcParse;var El="%Y-%m-%dT%H:%M:%S.%LZ";Date.prototype.toISOString||hs(El),+new Date("2000-01-01T00:00:00.000Z")||ps(El);var kl=31536e6;function Ll(e){return new Date(e)}function Al(e){return e instanceof Date?+e:+new Date(+e)}function wl(e,t,n,r,i,o,a,s,l){var u=Jo(Zo,eo),c=u.invert,d=u.domain,h=l(".%L"),p=l(":%S"),f=l("%I:%M"),g=l("%I %p"),m=l("%a %d"),v=l("%b %d"),y=l("%B"),_=l("%Y"),x=[[a,1,1e3],[a,5,5e3],[a,15,15e3],[a,30,3e4],[o,1,6e4],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,36e5],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,864e5],[r,2,1728e5],[n,1,6048e5],[t,1,2592e6],[t,3,7776e6],[e,1,kl]];function b(s){return(a(s)<s?h:o(s)<s?p:i(s)<s?f:r(s)<s?g:t(s)<s?n(s)<s?m:v:e(s)<s?y:_)(s)}function C(t,n,r,i){if(null==t&&(t=10),"number"==typeof t){var o=Math.abs(r-n)/t,a=Di((function(e){return e[2]})).right(x,o);a===x.length?(i=Ri(n/kl,r/kl,t),t=e):a?(i=(a=x[o/x[a-1][2]<x[a][2]/o?a-1:a])[1],t=a[0]):(i=Math.max(Ri(n,r,t),1),t=s)}return null==i?t:t.every(i)}return u.invert=function(e){return new Date(c(e))},u.domain=function(e){return arguments.length?d(Zi.call(e,Al)):d().map(Ll)},u.ticks=function(e,t){var n,r=d(),i=r[0],o=r[r.length-1],a=o<i;return a&&(n=i,i=o,o=n),n=(n=C(e,i,o,t))?n.range(i,o+1):[],a?n.reverse():n},u.tickFormat=function(e,t){return null==t?b:l(t)},u.nice=function(e,t){var n=d();return(e=C(e,n[0],n[n.length-1],t))?d(function(e,t){var n,r=0,i=(e=e.slice()).length-1,o=e[r],a=e[i];return a<o&&(n=r,r=i,i=n,n=o,o=a,a=n),e[r]=t.floor(o),e[i]=t.ceil(a),e}(n,e)):u},u.copy=function(){return Qo(u,wl(e,t,n,r,i,o,a,s,l))},u}function Dl(){return wl(Ya,Ua,Oa,Fa,Ma,Da,Aa,xa,ds).domain([new Date(2e3,0,1),new Date(2e3,0,2)])}var Tl="http://www.w3.org/1999/xhtml",Ml={svg:"http://www.w3.org/2000/svg",xhtml:Tl,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Pl(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),Ml.hasOwnProperty(t)?{space:Ml[t],local:e}:e}function Fl(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===Tl&&t.documentElement.namespaceURI===Tl?t.createElement(e):t.createElementNS(n,e)}}function Il(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Ol(e){var t=Pl(e);return(t.local?Il:Fl)(t)}function Nl(){}function Hl(e){return null==e?Nl:function(){return this.querySelector(e)}}function Rl(){return[]}var Vl=function(e){return function(){return this.matches(e)}};if("undefined"!=typeof document){var Bl=document.documentElement;if(!Bl.matches){var Wl=Bl.webkitMatchesSelector||Bl.msMatchesSelector||Bl.mozMatchesSelector||Bl.oMatchesSelector;Vl=function(e){return function(){return Wl.call(this,e)}}}}var zl=Vl;function Ul(e){return new Array(e.length)}function jl(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function Yl(e,t,n,r,i,o){for(var a,s=0,l=t.length,u=o.length;s<u;++s)(a=t[s])?(a.__data__=o[s],r[s]=a):n[s]=new jl(e,o[s]);for(;s<l;++s)(a=t[s])&&(i[s]=a)}function Xl(e,t,n,r,i,o,a){var s,l,u,c={},d=t.length,h=o.length,p=new Array(d);for(s=0;s<d;++s)(l=t[s])&&(p[s]=u="$"+a.call(l,l.__data__,s,t),u in c?i[s]=l:c[u]=l);for(s=0;s<h;++s)(l=c[u="$"+a.call(e,o[s],s,o)])?(r[s]=l,l.__data__=o[s],c[u]=null):n[s]=new jl(e,o[s]);for(s=0;s<d;++s)(l=t[s])&&c[p[s]]===l&&(i[s]=l)}function ql(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Kl(e){return function(){this.removeAttribute(e)}}function Zl(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Gl(e,t){return function(){this.setAttribute(e,t)}}function $l(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Ql(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function Jl(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function eu(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function tu(e){return function(){this.style.removeProperty(e)}}function nu(e,t,n){return function(){this.style.setProperty(e,t,n)}}function ru(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function iu(e,t){return e.style.getPropertyValue(t)||eu(e).getComputedStyle(e,null).getPropertyValue(t)}function ou(e){return function(){delete this[e]}}function au(e,t){return function(){this[e]=t}}function su(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}function lu(e){return e.trim().split(/^|\s+/)}function uu(e){return e.classList||new cu(e)}function cu(e){this._node=e,this._names=lu(e.getAttribute("class")||"")}function du(e,t){for(var n=uu(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function hu(e,t){for(var n=uu(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function pu(e){return function(){du(this,e)}}function fu(e){return function(){hu(this,e)}}function gu(e,t){return function(){(t.apply(this,arguments)?du:hu)(this,e)}}function mu(){this.textContent=""}function vu(e){return function(){this.textContent=e}}function yu(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}function _u(){this.innerHTML=""}function xu(e){return function(){this.innerHTML=e}}function bu(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}function Cu(){this.nextSibling&&this.parentNode.appendChild(this)}function Su(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Eu(){return null}function ku(){var e=this.parentNode;e&&e.removeChild(this)}function Lu(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}function Au(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}jl.prototype={constructor:jl,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}},cu.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};var wu={},Du=null;function Tu(e,t,n){return e=Mu(e,t,n),function(t){var n=t.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||e.call(this,t)}}function Mu(e,t,n){return function(r){var i=Du;Du=r;try{e.call(this,this.__data__,t,n)}finally{Du=i}}}function Pu(e){return e.trim().split(/^|\s+/).map((function(e){var t="",n=e.indexOf(".");return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}}))}function Fu(e){return function(){var t=this.__on;if(t){for(var n,r=0,i=-1,o=t.length;r<o;++r)n=t[r],e.type&&n.type!==e.type||n.name!==e.name?t[++i]=n:this.removeEventListener(n.type,n.listener,n.capture);++i?t.length=i:delete this.__on}}}function Iu(e,t,n){var r=wu.hasOwnProperty(e.type)?Tu:Mu;return function(i,o,a){var s,l=this.__on,u=r(t,o,a);if(l)for(var c=0,d=l.length;c<d;++c)if((s=l[c]).type===e.type&&s.name===e.name)return this.removeEventListener(s.type,s.listener,s.capture),this.addEventListener(s.type,s.listener=u,s.capture=n),void(s.value=t);this.addEventListener(e.type,u,n),s={type:e.type,name:e.name,value:t,listener:u,capture:n},l?l.push(s):this.__on=[s]}}function Ou(e,t,n){var r=eu(e),i=r.CustomEvent;"function"==typeof i?i=new i(t,n):(i=r.document.createEvent("Event"),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function Nu(e,t){return function(){return Ou(this,e,t)}}function Hu(e,t){return function(){return Ou(this,e,t.apply(this,arguments))}}"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(wu={mouseenter:"mouseover",mouseleave:"mouseout"}));var Ru=[null];function Vu(e,t){this._groups=e,this._parents=t}function Bu(e){return"string"==typeof e?new Vu([[document.querySelector(e)]],[document.documentElement]):new Vu([[e]],Ru)}Vu.prototype=function(){return new Vu([[document.documentElement]],Ru)}.prototype={constructor:Vu,select:function(e){"function"!=typeof e&&(e=Hl(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o,a,s=t[i],l=s.length,u=r[i]=new Array(l),c=0;c<l;++c)(o=s[c])&&(a=e.call(o,o.__data__,c,s))&&("__data__"in o&&(a.__data__=o.__data__),u[c]=a);return new Vu(r,this._parents)},selectAll:function(e){"function"!=typeof e&&(e=function(e){return null==e?Rl:function(){return this.querySelectorAll(e)}}(e));for(var t=this._groups,n=t.length,r=[],i=[],o=0;o<n;++o)for(var a,s=t[o],l=s.length,u=0;u<l;++u)(a=s[u])&&(r.push(e.call(a,a.__data__,u,s)),i.push(a));return new Vu(r,i)},filter:function(e){"function"!=typeof e&&(e=zl(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o,a=t[i],s=a.length,l=r[i]=[],u=0;u<s;++u)(o=a[u])&&e.call(o,o.__data__,u,a)&&l.push(o);return new Vu(r,this._parents)},data:function(e,t){if(!e)return f=new Array(this.size()),c=-1,this.each((function(e){f[++c]=e})),f;var n,r=t?Xl:Yl,i=this._parents,o=this._groups;"function"!=typeof e&&(n=e,e=function(){return n});for(var a=o.length,s=new Array(a),l=new Array(a),u=new Array(a),c=0;c<a;++c){var d=i[c],h=o[c],p=h.length,f=e.call(d,d&&d.__data__,c,i),g=f.length,m=l[c]=new Array(g),v=s[c]=new Array(g);r(d,h,m,v,u[c]=new Array(p),f,t);for(var y,_,x=0,b=0;x<g;++x)if(y=m[x]){for(x>=b&&(b=x+1);!(_=v[b])&&++b<g;);y._next=_||null}}return(s=new Vu(s,i))._enter=l,s._exit=u,s},enter:function(){return new Vu(this._enter||this._groups.map(Ul),this._parents)},exit:function(){return new Vu(this._exit||this._groups.map(Ul),this._parents)},merge:function(e){for(var t=this._groups,n=e._groups,r=t.length,i=n.length,o=Math.min(r,i),a=new Array(r),s=0;s<o;++s)for(var l,u=t[s],c=n[s],d=u.length,h=a[s]=new Array(d),p=0;p<d;++p)(l=u[p]||c[p])&&(h[p]=l);for(;s<r;++s)a[s]=t[s];return new Vu(a,this._parents)},order:function(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r,i=e[t],o=i.length-1,a=i[o];--o>=0;)(r=i[o])&&(a&&a!==r.nextSibling&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=ql);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o){for(var a,s=n[o],l=s.length,u=i[o]=new Array(l),c=0;c<l;++c)(a=s[c])&&(u[c]=a);u.sort(t)}return new Vu(i,this._parents).order()},call:function(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this},nodes:function(){var e=new Array(this.size()),t=-1;return this.each((function(){e[++t]=this})),e},node:function(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,o=r.length;i<o;++i){var a=r[i];if(a)return a}return null},size:function(){var e=0;return this.each((function(){++e})),e},empty:function(){return!this.node()},each:function(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i,o=t[n],a=0,s=o.length;a<s;++a)(i=o[a])&&e.call(i,i.__data__,a,o);return this},attr:function(e,t){var n=Pl(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==t?n.local?Zl:Kl:"function"==typeof t?n.local?Jl:Ql:n.local?$l:Gl)(n,t))},style:function(e,t,n){return arguments.length>1?this.each((null==t?tu:"function"==typeof t?ru:nu)(e,t,null==n?"":n)):iu(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?ou:"function"==typeof t?su:au)(e,t)):this.node()[e]},classed:function(e,t){var n=lu(e+"");if(arguments.length<2){for(var r=uu(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"==typeof t?gu:t?pu:fu)(n,t))},text:function(e){return arguments.length?this.each(null==e?mu:("function"==typeof e?yu:vu)(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?_u:("function"==typeof e?bu:xu)(e)):this.node().innerHTML},raise:function(){return this.each(Cu)},lower:function(){return this.each(Su)},append:function(e){var t="function"==typeof e?e:Ol(e);return this.select((function(){return this.appendChild(t.apply(this,arguments))}))},insert:function(e,t){var n="function"==typeof e?e:Ol(e),r=null==t?Eu:"function"==typeof t?t:Hl(t);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each(ku)},clone:function(e){return this.select(e?Au:Lu)},datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},on:function(e,t,n){var r,i,o=Pu(e+""),a=o.length;if(!(arguments.length<2)){for(s=t?Iu:Fu,null==n&&(n=!1),r=0;r<a;++r)this.each(s(o[r],t,n));return this}var s=this.node().__on;if(s)for(var l,u=0,c=s.length;u<c;++u)for(r=0,l=s[u];r<a;++r)if((i=o[r]).type===l.type&&i.name===l.name)return l.value},dispatch:function(e,t){return this.each(("function"==typeof t?Hu:Nu)(e,t))}};var Wu,zu,Uu,ju,Yu=0;function Xu(){this._="@"+(++Yu).toString(36)}function qu(e,t){var n=e.domainNRangeValues,r=e.showRoundOffXTickValues,i=void 0!==r&&r,o=e.xAxistickSize,a=void 0===o?6:o,s=e.tickPadding,l=void 0===s?10:s,u=e.xAxisCount,c=void 0===u?6:u,d=e.xAxisElement,h=ga().domain([n.dStartValue,n.dEndValue]).range([n.rStartValue,n.rEndValue]);i&&h.nice();var p=Li(h).tickSize(a).tickPadding(l).ticks(c).tickSizeOuter(0).tickFormat((function(e,n){var r="number"==typeof e?e:e.valueOf();return ic(r,t)}));return d&&Bu(d).call(p).selectAll("text").attr("aria-hidden","true"),h}function Ku(e){var t=[];e.forEach((function(e){var n=e.data.filter((function(e){return!e.hideCallout})).map((function(t){return i(i({legend:e.legend},t),{color:e.color,index:e.index})}));t=t.concat(n)}));var n,r=[];return t.forEach((function(e,n){e.x=e.x instanceof Date?e.x.getTime():e.x;var i=[{legend:e.legend,y:e.y,color:e.color,yAxisCalloutData:e.yAxisCalloutData,callOutAccessibilityData:e.callOutAccessibilityData,index:e.index}];t.slice(n+1).forEach((function(t){t.x=t.x instanceof Date?t.x.getTime():t.x,e.x===t.x&&i.push({legend:t.legend,y:t.y,color:t.color,yAxisCalloutData:t.yAxisCalloutData,callOutAccessibilityData:t.callOutAccessibilityData,index:t.index})})),r.push({x:e.x,values:i})})),"x",(n=r).map((function(e){return e.x})).map((function(e,t,n){return n.indexOf(e)===t&&t})).filter((function(e){return n[e]})).map((function(e){return n[e]}))}function Zu(e){var t=e.tooltipCls,n=e.xAxis,r=e.id;if(null===n)return null;for(var i=Bu("body").append("div").attr("id",r).attr("class",t).style("opacity",0),o=n.selectAll("#BaseSpan")._groups[0],a=o&&Object.keys(o).length,s=[],l=0;l<a;l++){var u=o[l].dataset&&Object.values(o[l].dataset)[0];s.push(u)}var c=n.selectAll(".tick")._groups[0],d=c&&Object.keys(c).length,h=function(e){Bu(c[e]).on("mouseover",(function(t){i.style("opacity",.9),i.html(s[e]).style("left",Du.pageX+"px").style("top",Du.pageY-28+"px")})).on("mouseout",(function(e){i.style("opacity",0)}))};for(l=0;l<d;l++)h(l)}function Gu(e){var t=!1;return e&&e.length>0&&e.forEach((function(e){e.data.length>0&&(t=e.data[0].x instanceof Date)})),t}function $u(e,t,n,r,i,o,s,l){var u;if(o===Uu.NumericAxis)switch(r){case zu.AreaChart:case zu.LineChart:u=function(e,t,n,r){var i=Bi(e,(function(e){return Bi(e.data,(function(e){return e.x}))})),o=Vi(e,(function(e){return Vi(e.data,(function(e){return e.x}))})),a=t.left,s=n-t.right;return r?{dStartValue:o,dEndValue:i,rStartValue:a,rEndValue:s}:{dStartValue:i,dEndValue:o,rStartValue:a,rEndValue:s}}(e,t,n,i);break;case zu.VerticalStackedBarChart:u=function(e,t,n,r,i){var o=Bi(e,(function(e){return e.x})),a=Vi(e,(function(e){return e.x})),s=t.left+i/2,l=n-t.right-i/2;return r?{dStartValue:a,dEndValue:o,rStartValue:s,rEndValue:l}:{dStartValue:o,dEndValue:a,rStartValue:s,rEndValue:l}}(e,t,n,i,s);break;case zu.VerticalBarChart:u=function(e,t,n,r,i){var o=Vi(e,(function(e){return e.x})),a=Bi(e,(function(e){return e.x})),s=t.left+i,l=n-t.right-i;return r?{dStartValue:o,dEndValue:a,rStartValue:s,rEndValue:l}:{dStartValue:a,dEndValue:o,rStartValue:s,rEndValue:l}}(e,t,n,i,s);break;default:u={dStartValue:0,dEndValue:0,rStartValue:0,rEndValue:0}}else if(o===Uu.DateAxis)switch(r){case zu.AreaChart:case zu.LineChart:u=function(e,t,n,r,i){void 0===i&&(i=[]);var o=Bi(e,(function(e){return Bi(e.data,(function(e){return e.x}))})),s=Vi(e,(function(e){return Vi(e.data,(function(e){return e.x}))})),l=Bi(a(a([],i),[o])),u=Vi(a(a([],i),[s])),c=t.left,d=n-t.right;return r?{dStartValue:u,dEndValue:l,rStartValue:c,rEndValue:d}:{dStartValue:l,dEndValue:u,rStartValue:c,rEndValue:d}}(e,t,n,i,l);break;default:u={dStartValue:0,dEndValue:0,rStartValue:0,rEndValue:0}}else switch(r){case zu.VerticalStackedBarChart:case zu.GroupedVerticalBarChart:case zu.VerticalBarChart:case zu.HeatMapChart:u=function(e,t,n){var r=e.left,i=t-e.right;return n?{dStartValue:0,dEndValue:0,rStartValue:i,rEndValue:r}:{dStartValue:0,dEndValue:0,rStartValue:r,rEndValue:i}}(t,n,i);break;default:u={dStartValue:0,dEndValue:0,rStartValue:0,rEndValue:0}}return u}function Qu(e,t){var n,r,i;switch(t){case zu.AreaChart:case zu.LineChart:n=function(e){var t=Vi(e,(function(e){return Vi(e.data,(function(e){return e.y}))}));return{startValue:Bi(e,(function(e){return Bi(e.data,(function(e){return e.y}))})),endValue:t}}(e);break;case zu.VerticalStackedBarChart:i=Vi(r=e,(function(e){return e.y})),n={startValue:Bi(r,(function(e){return e.y})),endValue:i};break;case zu.VerticalBarChart:n=function(e){var t=Vi(e,(function(e){return e.y}));return{startValue:Bi(e,(function(e){return e.y})),endValue:t}}(e);break;default:n={startValue:0,endValue:0}}return n}Xu.prototype=function(){return new Xu}.prototype={constructor:Xu,get:function(e){for(var t=this._;!(t in e);)if(!(e=e.parentNode))return;return e[t]},set:function(e,t){return e[this._]=t},remove:function(e){return this._ in e&&delete e[this._]},toString:function(){return this._}},function(e){e[e.AreaChart=0]="AreaChart",e[e.LineChart=1]="LineChart",e[e.VerticalBarChart=2]="VerticalBarChart",e[e.VerticalStackedBarChart=3]="VerticalStackedBarChart",e[e.GroupedVerticalBarChart=4]="GroupedVerticalBarChart",e[e.HeatMapChart=5]="HeatMapChart"}(zu||(zu={})),function(e){e[e.NumericAxis=0]="NumericAxis",e[e.DateAxis=1]="DateAxis",e[e.StringAxis=2]="StringAxis"}(Uu||(Uu={})),function(e){e[e.NumericAxis=0]="NumericAxis",e[e.DateAxis=1]="DateAxis",e[e.StringAxis=2]="StringAxis"}(ju||(ju={}));var Ju,ec,tc=function(e,t){if(t)switch(typeof e){case"string":return Uu.StringAxis;case"number":return Uu.NumericAxis;default:return Uu.DateAxis}else switch(typeof e){case"string":return ju.StringAxis;case"number":return ju.NumericAxis;default:return ju.DateAxis}};!function(e){e[e.circle=0]="circle",e[e.square=1]="square",e[e.triangle=2]="triangle",e[e.diamond=3]="diamond",e[e.pyramid=4]="pyramid",e[e.hexagon=5]="hexagon",e[e.pentagon=6]="pentagon",e[e.octagon=7]="octagon"}(Ju||(Ju={})),function(e){e[e.dottedLine=0]="dottedLine"}(ec||(ec={}));var nc=((Wu={})[Ju.circle]={widthRatio:1},Wu[Ju.square]={widthRatio:1},Wu[Ju.triangle]={widthRatio:1},Wu[Ju.diamond]={widthRatio:1},Wu[Ju.pyramid]={widthRatio:1},Wu[Ju.hexagon]={widthRatio:2},Wu[Ju.pentagon]={widthRatio:1.168},Wu[Ju.octagon]={widthRatio:2.414},Wu),rc=function(e,t,n){return void 0===t&&(t="text"),void 0===n&&(n=!0),{role:t,"data-is-focusable":n,"aria-label":(e=null!=e?e:{}).ariaLabel,"aria-labelledby":e.ariaLabelledBy,"aria-describedby":e.ariaDescribedBy}},ic=function(e,t){return e?(t=t||void 0,"number"==typeof e?e.toLocaleString(t):"string"!=typeof e||window.isNaN(Number(e))?e:Number(e).toLocaleString(t)):e};var oc,ac=le(),sc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.render=function(){var e=this.props,t=e.color,n=e.Legend,r=e.XValue,i=e.YValue,o=e.styles,a=e.theme,l=e.ratio,u=e.descriptionMessage,c=e.culture;return this._classNames=ac(o,{theme:a,color:t,XValue:r,isRatioPresent:!!l}),s.createElement("div",{className:this._classNames.calloutContentRoot},s.createElement("div",{className:this._classNames.calloutDateTimeContainer},s.createElement("div",{className:this._classNames.calloutContentX},r," ")),s.createElement("div",{className:this._classNames.calloutInfoContainer},s.createElement("div",{className:this._classNames.calloutBlockContainer},s.createElement("div",{className:this._classNames.calloutlegendText},ic(n,c)),s.createElement("div",{className:this._classNames.calloutContentY},ic(i,c))),!!l&&s.createElement("div",{className:this._classNames.ratio},s.createElement(s.Fragment,null,s.createElement("span",{className:this._classNames.numerator},ic(l[0],c)),"/",s.createElement("span",{className:this._classNames.denominator},ic(l[1],c))))),!!u&&s.createElement("div",{className:this._classNames.descriptionMessage},u))},t}(s.Component),lc=function(e){var t=e.color,n=e.XValue,r=e.theme,i=e.isRatioPresent,o=void 0!==i&&i;return{calloutContentRoot:[{display:"grid",overflow:"hidden",padding:"11px 16px 10px 16px",backgroundColor:r.semanticColors.bodyBackground,backgroundBlendMode:"normal, luminosity"}],calloutDateTimeContainer:{display:"flex",flexDirection:"row",justifyContent:"space-between"},calloutContentX:[r.fonts.small,{lineHeight:"16px",opacity:"0.8",color:r.semanticColors.bodySubtext}],calloutBlockContainer:[r.fonts.xxLarge,{marginTop:n?"13px":"unset",paddingLeft:"8px",lineHeight:"22px",color:r.semanticColors.bodyText,borderLeft:"4px solid "+t}],calloutlegendText:[r.fonts.small,{lineHeight:"16px",color:r.semanticColors.bodyText}],calloutContentY:[r.fonts.xxLarge,{color:t||r.semanticColors.bodyText,fontWeight:"bold",lineHeight:"36px"}],calloutInfoContainer:[o&&{display:"flex",alignItems:"flex-end"}],ratio:[r.fonts.small,{marginLeft:"6px",color:r.semanticColors.bodyText}],numerator:{fontWeight:An.bold},denominator:{fontWeight:An.semibold},descriptionMessage:[r.fonts.small,{color:r.semanticColors.bodyText,marginTop:"10px",paddingTop:"10px",borderTop:"1px solid "+r.semanticColors.menuDivider}]}},uc=b(sc,lc);!function(e){e[e.vertical=0]="vertical",e[e.horizontal=1]="horizontal",e[e.bidirectional=2]="bidirectional",e[e.domOrder=3]="domOrder"}(oc||(oc={}));var cc=function(e){return function(t){for(var n=0,r=e.refs;n<r.length;n++){var i=r[n];"function"==typeof i?i(t):i&&(i.current=t)}}};function dc(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.length<2?t[0]:function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];t.forEach((function(t){return t&&t.apply(e,n)}))}}function hc(e){!function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=dc(e,e[n],t[n]))}(e,{componentDidMount:pc,componentDidUpdate:fc,componentWillUnmount:gc})}function pc(){mc(this.props.componentRef,this)}function fc(e){e.componentRef!==this.props.componentRef&&(mc(e.componentRef,null),mc(this.props.componentRef,this))}function gc(){mc(this.props.componentRef,null)}function mc(e,t){e&&("object"==typeof e?e.current=t:"function"==typeof e&&e(t))}var vc,yc="data-is-focusable",_c="data-focuszone-id",xc="tabindex",bc="data-no-vertical-wrap",Cc="data-no-horizontal-wrap",Sc=999999999,Ec=-999999999;function kc(e,t){var n;"function"==typeof MouseEvent?n=new MouseEvent("click",{ctrlKey:null==t?void 0:t.ctrlKey,metaKey:null==t?void 0:t.metaKey,shiftKey:null==t?void 0:t.shiftKey,altKey:null==t?void 0:t.altKey,bubbles:null==t?void 0:t.bubbles,cancelable:null==t?void 0:t.cancelable}):(n=document.createEvent("MouseEvents")).initMouseEvent("click",!!t&&t.bubbles,!!t&&t.cancelable,window,0,0,0,0,0,!!t&&t.ctrlKey,!!t&&t.altKey,!!t&&t.shiftKey,!!t&&t.metaKey,0,null),e.dispatchEvent(n)}var Lc,Ac,wc={},Dc=new Set,Tc=["text","number","password","email","tel","url","search","textarea"],Mc=!1,Pc=function(e){function t(n){var r,i,o,a,l,u=e.call(this,n)||this;u._root=s.createRef(),u._mergedRef=(l={refs:[]},function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return l.resolver&&ve(l.refs,e)||(l.resolver=cc(l)),l.refs=e,l.resolver}),u._onFocus=function(e){if(!u._portalContainsElement(e.target)){var t,n=u.props,r=n.onActiveElementChanged,i=n.doNotAllowFocusEventToPropagate,o=n.stopFocusPropagation,a=n.onFocusNotification,s=n.onFocus,l=n.shouldFocusInnerElementWhenReceivedFocus,c=n.defaultTabbableElement,d=u._isImmediateDescendantOfZone(e.target);if(d)t=e.target;else for(var h=e.target;h&&h!==u._root.current;){if(ke(h)&&u._isImmediateDescendantOfZone(h)){t=h;break}h=ye(h,Mc)}if(l&&e.target===u._root.current){var p=c&&"function"==typeof c&&u._root.current&&c(u._root.current);p&&ke(p)?(t=p,p.focus()):(u.focus(!0),u._activeElement&&(t=null))}var f=!u._activeElement;t&&t!==u._activeElement&&((d||f)&&u._setFocusAlignment(t,!0,!0),u._activeElement=t,f&&u._updateTabIndexes()),r&&r(u._activeElement,e),(o||i)&&e.stopPropagation(),s?s(e):a&&a()}},u._onBlur=function(){u._setParkedFocus(!1)},u._onMouseDown=function(e){if(!u._portalContainsElement(e.target)&&!u.props.disabled){for(var t=e.target,n=[];t&&t!==u._root.current;)n.push(t),t=ye(t,Mc);for(;n.length&&((t=n.pop())&&ke(t)&&u._setActiveElement(t,!0),!Le(t)););}},u._onKeyDown=function(e,t){if(!u._portalContainsElement(e.target)){var n=u.props,r=n.direction,i=n.disabled,o=n.isInnerZoneKeystroke,a=n.pagingSupportDisabled,s=n.shouldEnterInnerZone;if(!(i||(u.props.onKeyDown&&u.props.onKeyDown(e),e.isDefaultPrevented()||u._getDocument().activeElement===u._root.current&&u._isInnerZone))){if((s&&s(e)||o&&o(e))&&u._isImmediateDescendantOfZone(e.target)){var l=u._getFirstInnerZone();if(l){if(!l.focus(!0))return}else{if(!Ae(e.target))return;if(!u.focusElement(Se(e.target,e.target.firstChild,!0)))return}}else{if(e.altKey)return;switch(e.which){case 32:if(u._shouldRaiseClicksOnSpace&&u._tryInvokeClickForFocusable(e.target,e))break;return;case 37:if(r!==oc.vertical&&(u._preventDefaultWhenHandled(e),u._moveFocusLeft(t)))break;return;case 39:if(r!==oc.vertical&&(u._preventDefaultWhenHandled(e),u._moveFocusRight(t)))break;return;case 38:if(r!==oc.horizontal&&(u._preventDefaultWhenHandled(e),u._moveFocusUp()))break;return;case 40:if(r!==oc.horizontal&&(u._preventDefaultWhenHandled(e),u._moveFocusDown()))break;return;case 34:if(!a&&u._moveFocusPaging(!0))break;return;case 33:if(!a&&u._moveFocusPaging(!1))break;return;case 9:if(u.props.allowTabKey||1===u.props.handleTabKey||2===u.props.handleTabKey&&u._isElementInput(e.target)){var c=!1;if(u._processingTabKey=!0,c=r!==oc.vertical&&u._shouldWrapFocus(u._activeElement,Cc)?(ie(t)?!e.shiftKey:e.shiftKey)?u._moveFocusLeft(t):u._moveFocusRight(t):e.shiftKey?u._moveFocusUp():u._moveFocusDown(),u._processingTabKey=!1,c)break;u.props.shouldResetActiveElementWhenTabFromZone&&(u._activeElement=null)}return;case 36:if(u._isContentEditableElement(e.target)||u._isElementInput(e.target)&&!u._shouldInputLoseFocus(e.target,!1))return!1;var d=u._root.current&&u._root.current.firstChild;if(u._root.current&&d&&u.focusElement(Se(u._root.current,d,!0)))break;return;case 35:if(u._isContentEditableElement(e.target)||u._isElementInput(e.target)&&!u._shouldInputLoseFocus(e.target,!0))return!1;var h=u._root.current&&u._root.current.lastChild;if(u._root.current&&u.focusElement(Ce(u._root.current,h,!0,!0,!0)))break;return;case 13:if(u._shouldRaiseClicksOnEnter&&u._tryInvokeClickForFocusable(e.target,e))break;return;default:return}}e.preventDefault(),e.stopPropagation()}}},u._getHorizontalDistanceFromCenter=function(e,t,n){var r=u._focusAlignment.left||u._focusAlignment.x||0,i=Math.floor(n.top),o=Math.floor(t.bottom),a=Math.floor(n.bottom),s=Math.floor(t.top);return e&&i>o||!e&&a<s?r>=n.left&&r<=n.left+n.width?0:Math.abs(n.left+n.width/2-r):u._shouldWrapFocus(u._activeElement,bc)?Sc:Ec},hc(u),u._id=pe("FocusZone"),u._focusAlignment={left:0,top:0},u._processingTabKey=!1;var c=null===(i=null!==(r=n.shouldRaiseClicks)&&void 0!==r?r:t.defaultProps.shouldRaiseClicks)||void 0===i||i;return u._shouldRaiseClicksOnEnter=null!==(o=n.shouldRaiseClicksOnEnter)&&void 0!==o?o:c,u._shouldRaiseClicksOnSpace=null!==(a=n.shouldRaiseClicksOnSpace)&&void 0!==a?a:c,u}return r(t,e),t.getOuterZones=function(){return Dc.size},t._onKeyDownCapture=function(e){9===e.which&&Dc.forEach((function(e){return e._updateTabIndexes()}))},t.prototype.componentDidMount=function(){var e=this._root.current;if(wc[this._id]=this,e){this._windowElement=c(e);for(var n=ye(e,Mc);n&&n!==this._getDocument().body&&1===n.nodeType;){if(Le(n)){this._isInnerZone=!0;break}n=ye(n,Mc)}this._isInnerZone||(Dc.add(this),this._windowElement&&1===Dc.size&&this._windowElement.addEventListener("keydown",t._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()}},t.prototype.componentDidUpdate=function(){var e=this._root.current,t=this._getDocument();if((this._activeElement&&!xe(this._root.current,this._activeElement,Mc)||this._defaultFocusElement&&!xe(this._root.current,this._defaultFocusElement,Mc))&&(this._activeElement=null,this._defaultFocusElement=null,this._updateTabIndexes()),!this.props.preventFocusRestoration&&t&&this._lastIndexPath&&(t.activeElement===t.body||null===t.activeElement||t.activeElement===e)){var n=function(e,t){for(var n=e,r=0,i=t;r<i.length;r++){var o=i[r],a=n.children[Math.min(o,n.children.length-1)];if(!a)break;n=a}return ke(n)&&Ee(n)?n:Se(e,n,!0)||Ce(e,n)}(e,this._lastIndexPath);n?(this._setActiveElement(n,!0),n.focus(),this._setParkedFocus(!1)):this._setParkedFocus(!0)}},t.prototype.componentWillUnmount=function(){delete wc[this._id],this._isInnerZone||(Dc.delete(this),this._windowElement&&0===Dc.size&&this._windowElement.removeEventListener("keydown",t._onKeyDownCapture,!0)),this._root.current&&this._root.current.removeEventListener("blur",this._onBlur,!0),this._activeElement=null,this._defaultFocusElement=null},t.prototype.render=function(){var e=this,t=this.props,n=t.as,r=t.elementType,o=t.rootProps,a=t.ariaDescribedBy,l=t.ariaLabelledBy,u=t.className,c=ze(this.props,Re),d=n||r||"div";this._evaluateFocusBeforeRender();var h,p=(void 0===h&&(h=!1),!0===h&&(br=xr({},h)),br);return s.createElement(d,i({"aria-labelledby":l,"aria-describedby":a},c,o,{className:Ue((vc||(vc=Ye({selectors:{":focus":{outline:"none"}}},"ms-FocusZone")),vc),u),ref:this._mergedRef(this.props.elementRef,this._root),"data-focuszone-id":this._id,onKeyDown:function(t){return e._onKeyDown(t,p)},onFocus:this._onFocus,onMouseDownCapture:this._onMouseDown}),this.props.children)},t.prototype.focus=function(e){if(void 0===e&&(e=!1),this._root.current){if(!e&&"true"===this._root.current.getAttribute(yc)&&this._isInnerZone){var t=this._getOwnerZone(this._root.current);if(t!==this._root.current){var n=wc[t.getAttribute(_c)];return!!n&&n.focusElement(this._root.current)}return!1}if(!e&&this._activeElement&&xe(this._root.current,this._activeElement)&&ke(this._activeElement))return this._activeElement.focus(),!0;var r=this._root.current.firstChild;return this.focusElement(Se(this._root.current,r,!0))}return!1},t.prototype.focusLast=function(){if(this._root.current){var e=this._root.current&&this._root.current.lastChild;return this.focusElement(Ce(this._root.current,e,!0,!0,!0))}return!1},t.prototype.focusElement=function(e,t){var n=this.props,r=n.onBeforeFocus,i=n.shouldReceiveFocus;return!(i&&!i(e)||r&&!r(e)||!e||(this._setActiveElement(e,t),this._activeElement&&this._activeElement.focus(),0))},t.prototype.setFocusAlignment=function(e){this._focusAlignment=e},Object.defineProperty(t.prototype,"defaultFocusElement",{get:function(){return this._defaultFocusElement},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"activeElement",{get:function(){return this._activeElement},enumerable:!1,configurable:!0}),t.prototype._evaluateFocusBeforeRender=function(){var e=this._root.current,t=this._getDocument();if(t){var n=t.activeElement;if(n!==e){var r=xe(e,n,!1);this._lastIndexPath=r?function(e,t){for(var n=[];t&&e&&t!==e;){var r=ye(t,!0);if(null===r)return[];n.unshift(Array.prototype.indexOf.call(r.children,t)),t=r}return n}(e,n):void 0}}},t.prototype._setParkedFocus=function(e){var t=this._root.current;t&&this._isParked!==e&&(this._isParked=e,e?(this.props.allowFocusRoot||(this._parkedTabIndex=t.getAttribute("tabindex"),t.setAttribute("tabindex","-1")),t.focus()):this.props.allowFocusRoot||(this._parkedTabIndex?(t.setAttribute("tabindex",this._parkedTabIndex),this._parkedTabIndex=void 0):t.removeAttribute("tabindex")))},t.prototype._setActiveElement=function(e,t){var n=this._activeElement;this._activeElement=e,n&&(Le(n)&&this._updateTabIndexes(n),n.tabIndex=-1),this._activeElement&&(this._focusAlignment&&!t||this._setFocusAlignment(e,!0,!0),this._activeElement.tabIndex=0)},t.prototype._preventDefaultWhenHandled=function(e){this.props.preventDefaultWhenHandled&&e.preventDefault()},t.prototype._tryInvokeClickForFocusable=function(e,t){var n=e;if(n===this._root.current)return!1;do{if("BUTTON"===n.tagName||"A"===n.tagName||"INPUT"===n.tagName||"TEXTAREA"===n.tagName)return!1;if(this._isImmediateDescendantOfZone(n)&&"true"===n.getAttribute(yc)&&"true"!==n.getAttribute("data-disable-click-on-enter"))return kc(n,t),!0;n=ye(n,Mc)}while(n!==this._root.current);return!1},t.prototype._getFirstInnerZone=function(e){if(!(e=e||this._activeElement||this._root.current))return null;if(Le(e))return wc[e.getAttribute(_c)];for(var t=e.firstElementChild;t;){if(Le(t))return wc[t.getAttribute(_c)];var n=this._getFirstInnerZone(t);if(n)return n;t=t.nextElementSibling}return null},t.prototype._moveFocus=function(e,t,n,r){void 0===r&&(r=!0);var i=this._activeElement,o=-1,a=void 0,s=!1,l=this.props.direction===oc.bidirectional;if(!i||!this._root.current)return!1;if(this._isElementInput(i)&&!this._shouldInputLoseFocus(i,e))return!1;var u=l?i.getBoundingClientRect():null;do{if(i=e?Se(this._root.current,i):Ce(this._root.current,i),!l){a=i;break}if(i){var c=t(u,i.getBoundingClientRect());if(-1===c&&-1===o){a=i;break}if(c>-1&&(-1===o||c<o)&&(o=c,a=i),o>=0&&c<0)break}}while(i);if(a&&a!==this._activeElement)s=!0,this.focusElement(a);else if(this.props.isCircularNavigation&&r)return e?this.focusElement(Se(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement(Ce(this._root.current,this._root.current.lastElementChild,!0,!0,!0));return s},t.prototype._moveFocusDown=function(){var e=this,t=-1,n=this._focusAlignment.left||this._focusAlignment.x||0;return!!this._moveFocus(!0,(function(r,i){var o=-1,a=Math.floor(i.top),s=Math.floor(r.bottom);return a<s?e._shouldWrapFocus(e._activeElement,bc)?Sc:Ec:((-1===t&&a>=s||a===t)&&(t=a,o=n>=i.left&&n<=i.left+i.width?0:Math.abs(i.left+i.width/2-n)),o)}))&&(this._setFocusAlignment(this._activeElement,!1,!0),!0)},t.prototype._moveFocusUp=function(){var e=this,t=-1,n=this._focusAlignment.left||this._focusAlignment.x||0;return!!this._moveFocus(!1,(function(r,i){var o=-1,a=Math.floor(i.bottom),s=Math.floor(i.top),l=Math.floor(r.top);return a>l?e._shouldWrapFocus(e._activeElement,bc)?Sc:Ec:((-1===t&&a<=l||s===t)&&(t=s,o=n>=i.left&&n<=i.left+i.width?0:Math.abs(i.left+i.width/2-n)),o)}))&&(this._setFocusAlignment(this._activeElement,!1,!0),!0)},t.prototype._moveFocusLeft=function(e){var t=this,n=this._shouldWrapFocus(this._activeElement,Cc);return!!this._moveFocus(ie(e),(function(r,i){var o=-1;return(ie(e)?parseFloat(i.top.toFixed(3))<parseFloat(r.bottom.toFixed(3)):parseFloat(i.bottom.toFixed(3))>parseFloat(r.top.toFixed(3)))&&i.right<=r.right&&t.props.direction!==oc.vertical?o=r.right-i.right:n||(o=Ec),o}),void 0,n)&&(this._setFocusAlignment(this._activeElement,!0,!1),!0)},t.prototype._moveFocusRight=function(e){var t=this,n=this._shouldWrapFocus(this._activeElement,Cc);return!!this._moveFocus(!ie(e),(function(r,i){var o=-1;return(ie(e)?parseFloat(i.bottom.toFixed(3))>parseFloat(r.top.toFixed(3)):parseFloat(i.top.toFixed(3))<parseFloat(r.bottom.toFixed(3)))&&i.left>=r.left&&t.props.direction!==oc.vertical?o=i.left-r.left:n||(o=Ec),o}),void 0,n)&&(this._setFocusAlignment(this._activeElement,!0,!1),!0)},t.prototype._moveFocusPaging=function(e,t){void 0===t&&(t=!0);var n=this._activeElement;if(!n||!this._root.current)return!1;if(this._isElementInput(n)&&!this._shouldInputLoseFocus(n,e))return!1;var r=Ke(n);if(!r)return!1;var i=-1,o=void 0,a=-1,s=-1,l=r.clientHeight,u=n.getBoundingClientRect();do{if(n=e?Se(this._root.current,n):Ce(this._root.current,n)){var c=n.getBoundingClientRect(),d=Math.floor(c.top),h=Math.floor(u.bottom),p=Math.floor(c.bottom),f=Math.floor(u.top),g=this._getHorizontalDistanceFromCenter(e,u,c);if(e&&d>h+l||!e&&p<f-l)break;g>-1&&(e&&d>a?(a=d,i=g,o=n):!e&&p<s?(s=p,i=g,o=n):(-1===i||g<=i)&&(i=g,o=n))}}while(n);var m=!1;if(o&&o!==this._activeElement)m=!0,this.focusElement(o),this._setFocusAlignment(o,!1,!0);else if(this.props.isCircularNavigation&&t)return e?this.focusElement(Se(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement(Ce(this._root.current,this._root.current.lastElementChild,!0,!0,!0));return m},t.prototype._setFocusAlignment=function(e,t,n){if(this.props.direction===oc.bidirectional&&(!this._focusAlignment||t||n)){var r=e.getBoundingClientRect(),i=r.left+r.width/2,o=r.top+r.height/2;this._focusAlignment||(this._focusAlignment={left:i,top:o}),t&&(this._focusAlignment.left=i),n&&(this._focusAlignment.top=o)}},t.prototype._isImmediateDescendantOfZone=function(e){return this._getOwnerZone(e)===this._root.current},t.prototype._getOwnerZone=function(e){for(var t=ye(e,Mc);t&&t!==this._root.current&&t!==this._getDocument().body;){if(Le(t))return t;t=ye(t,Mc)}return t},t.prototype._updateTabIndexes=function(e){!this._activeElement&&this.props.defaultTabbableElement&&"function"==typeof this.props.defaultTabbableElement&&(this._activeElement=this.props.defaultTabbableElement(this._root.current)),!e&&this._root.current&&(this._defaultFocusElement=null,e=this._root.current,this._activeElement&&!xe(e,this._activeElement)&&(this._activeElement=null)),this._activeElement&&!ke(this._activeElement)&&(this._activeElement=null);for(var t=e&&e.children,n=0;t&&n<t.length;n++){var r=t[n];Le(r)?"true"===r.getAttribute(yc)&&(this._isInnerZone||(this._activeElement||this._defaultFocusElement)&&this._activeElement!==r?"-1"!==r.getAttribute(xc)&&r.setAttribute(xc,"-1"):(this._defaultFocusElement=r,"0"!==r.getAttribute(xc)&&r.setAttribute(xc,"0"))):(r.getAttribute&&"false"===r.getAttribute(yc)&&r.setAttribute(xc,"-1"),ke(r)?this.props.disabled?r.setAttribute(xc,"-1"):this._isInnerZone||(this._activeElement||this._defaultFocusElement)&&this._activeElement!==r?"-1"!==r.getAttribute(xc)&&r.setAttribute(xc,"-1"):(this._defaultFocusElement=r,"0"!==r.getAttribute(xc)&&r.setAttribute(xc,"0")):"svg"===r.tagName&&"false"!==r.getAttribute("focusable")&&r.setAttribute("focusable","false")),this._updateTabIndexes(r)}},t.prototype._isContentEditableElement=function(e){return e&&"true"===e.getAttribute("contenteditable")},t.prototype._isElementInput=function(e){return!(!e||!e.tagName||"input"!==e.tagName.toLowerCase()&&"textarea"!==e.tagName.toLowerCase())},t.prototype._shouldInputLoseFocus=function(e,t){if(!this._processingTabKey&&e&&e.type&&Tc.indexOf(e.type.toLowerCase())>-1){var n=e.selectionStart,r=n!==e.selectionEnd,i=e.value,o=e.readOnly;if(r||n>0&&!t&&!o||n!==i.length&&t&&!o||this.props.handleTabKey&&(!this.props.shouldInputLoseFocusOnArrowKey||!this.props.shouldInputLoseFocusOnArrowKey(e)))return!1}return!0},t.prototype._shouldWrapFocus=function(e,t){return!this.props.checkForNoWrap||function(e,t){return"true"!==function(e,t){var n=_e(e,(function(e){return e.hasAttribute(t)}));return n&&n.getAttribute(t)}(e,t)}(e,t)},t.prototype._portalContainsElement=function(e){return e&&!!this._root.current&&(t=e,n=this._root.current,null!==(r=_e(t,(function(e){return n===e||e.hasAttribute(oi)})))&&r.hasAttribute(oi));var t,n,r},t.prototype._getDocument=function(){return $(this._root.current)},t.defaultProps={isCircularNavigation:!1,direction:oc.bidirectional,shouldRaiseClicks:!0},t}(s.Component),Fc=le(),Ic=function(e){function t(t){var n=e.call(this,t)||this;return n._handleChartMouseLeave=function(){n._calloutAnchorPoint=null,n.state.isCalloutVisible&&n.setState({isCalloutVisible:!1,hoverValue:"",refSelected:null,lineColor:"",legend:""})},n._adjustProps=function(){n._barHeight=n.props.barHeight||8,n._classNames=Fc(n.props.styles,{theme:n.props.theme,width:n.props.width,className:n.props.className,barHeight:n._barHeight,color:n.state.lineColor})},n._getChartDataText=function(e){return n.props.barChartCustomData?s.createElement("div",{"data-is-focusable":!0,role:"text"},n.props.barChartCustomData(e)):n._getDefaultTextData(e)},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},n._getAccessibleDataObject=function(e,t){return void 0===t&&(t="text"),{role:t,"data-is-focusable":!0,"aria-label":(e=null!=e?e:{}).ariaLabel,"aria-labelledby":e.ariaLabelledBy,"aria-describedby":e.ariaDescribedBy}},n.state={isCalloutVisible:!1,hoverValue:"",lineColor:"",legend:"",refSelected:null,color:"",xCalloutValue:"",yCalloutValue:""},n._refArray=[],n._uniqLineText="_HorizontalLine_"+Math.random().toString(36).substring(7),n._hoverOff=n._hoverOff.bind(n),n._calloutId=pe("callout"),n}return r(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.data,r=t.theme;this._adjustProps();var o=r.palette,a=0;return s.createElement("div",{className:this._classNames.root,onMouseLeave:this._handleChartMouseLeave},n.map((function(t,n){a=t.chartData&&t.chartData[0]&&t.chartData[0].horizontalBarChartdata.x?t.chartData[0].horizontalBarChartdata.x:0,t.chartData[1]={legend:"",horizontalBarChartdata:{x:t.chartData[0].horizontalBarChartdata.y-a,y:t.chartData[0].horizontalBarChartdata.y},color:o.neutralTertiaryAlt};var r=e._getChartDataText(t),l=e._createBars(t,o),u=e._uniqLineText+"_"+n;return s.createElement("div",{key:n,className:e._classNames.items},s.createElement("div",{className:e._classNames.items},s.createElement(Pc,{direction:oc.horizontal},s.createElement("div",{className:e._classNames.chartTitle},t.chartTitle&&s.createElement("div",i({className:e._classNames.chartDataText},e._getAccessibleDataObject(t.chartTitleAccessibilityData)),t.chartTitle),r)),t.chartData[0].data&&e._createBenchmark(t),s.createElement(Pc,{direction:oc.horizontal},s.createElement("svg",{className:e._classNames.chart,"aria-label":t.chartTitle},s.createElement("g",{id:u,key:u,ref:function(n){e._refCallback(n,t.chartData[0].legend)},onClick:function(){var e=t.chartData[0];e&&e.onClick&&e.onClick()},className:e._classNames.barWrapper},l)))))})),s.createElement(gi,i({target:this.state.refSelected,coverTarget:!0,isBeakVisible:!1,gapSpace:30,hidden:!(!this.props.hideTooltip&&this.state.isCalloutVisible),directionalHint:3,id:this._calloutId,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0},this.props.calloutProps,this._getAccessibleDataObject(this.state.callOutAccessibilityData)),s.createElement(s.Fragment,null,this.props.onRenderCalloutPerHorizontalBar?this.props.onRenderCalloutPerHorizontalBar(this.state.barCalloutProps):s.createElement(uc,{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}))))},t.prototype._refCallback=function(e,t){this._refArray.push({index:t,refElement:e})},t.prototype._hoverOn=function(e,t){if((!this.state.isCalloutVisible||this.state.legend!==t.legend)&&this._calloutAnchorPoint!==t){var n=me(this._refArray,(function(e){return e.index===t.legend}));this._calloutAnchorPoint=t,this.setState({isCalloutVisible:!0,hoverValue:e,lineColor:t.color,legend:t.legend,refSelected:n.refElement,xCalloutValue:t.xAxisCalloutData,yCalloutValue:t.yAxisCalloutData,barCalloutProps:t,callOutAccessibilityData:t.callOutAccessibilityData})}},t.prototype._hoverOff=function(){},t.prototype._getDefaultTextData=function(e){var t=this.props.culture,n=this.props.chartDataMode||"default",r=e.chartData[0],o=r.horizontalBarChartdata.x,a=r.horizontalBarChartdata.y,l=this._getAccessibleDataObject(e.chartDataAccessibilityData);switch(n){case"default":return s.createElement("div",i({className:this._classNames.chartDataText},l),ic(o,t));case"fraction":return s.createElement("div",i({},l),s.createElement("span",{className:this._classNames.chartDataText},ic(o,t)),s.createElement("span",{className:this._classNames.chartDataTextDenominator},"/"+ic(a,t)));case"percentage":var u=ic(Math.round(o/a*100),t)+"%";return s.createElement("div",i({className:this._classNames.chartDataText},l),u)}},t.prototype._createBenchmark=function(e){var t=e.chartData[0].horizontalBarChartdata.y,n=e.chartData[0].data,r=Math.round((n||0)/t*100),i={marginLeft:"calc("+r+"% - 4px)",marginRight:"calc("+(100-r)+"% - 4px)"};return s.createElement("div",{className:this._classNames.triangle,style:i})},t.prototype._createBars=function(e,t){var n=this,r=[t.blueLight,t.blue,t.blueMid,t.red,t.black],i=[],o=e.chartData.reduce((function(e,t){return e+(t.horizontalBarChartdata.x?t.horizontalBarChartdata.x:0)}),0),a=0,l=0,u=e.chartData.map((function(e,t){var u=e.color?e.color:r[Math.floor(4*Math.random()+1)],c=e.horizontalBarChartdata.x?e.horizontalBarChartdata.x:0;if(t>0&&(a+=l),(l=c/o*100)<0?l=0:l<1&&0!==l&&(l=1),i.push(a),l<1)return s.createElement(s.Fragment,{key:t}," ");var d=e.horizontalBarChartdata.x;return s.createElement("rect",{key:t,x:i[t]+"%",y:0,"data-is-focusable":""!==e.legend,width:l+"%",height:n._barHeight,fill:u,onMouseOver:""!==e.legend?n._hoverOn.bind(n,d,e):void 0,onFocus:""!==e.legend?n._hoverOn.bind(n,d,e):void 0,"aria-labelledby":n._calloutId,role:"img","aria-label":"Horizontal bar chart",onBlur:n._hoverOff,onMouseLeave:n._hoverOff})}));return u},t}(s.Component),Oc=b(Ic,(function(e){var t=e.className,n=e.theme,r=e.width,o=n.palette;return{root:[{display:"flex",flexDirection:"column",width:r||"100%"},t],items:{height:"32px",marginTop:"5px",position:"relative"},chart:{width:"100%",height:"8px",marginBottom:"11px"},barWrapper:{stroke:n.palette.white,strokeWidth:2},chartTitle:i(i({},n.fonts.small),{display:"flex",justifyContent:"space-between",marginBottom:"5px"}),chartDataText:{fontWeight:An.bold},chartDataTextDenominator:{fontWeight:An.semibold},triangle:{width:"0",height:"0",borderLeft:"4px solid transparent",borderRight:"4px solid transparent",borderTop:"8px solid",borderTopColor:o.blue,marginBottom:"4px",position:"absolute",top:"12px"}}})),Nc={host:"ms-HoverCard-host"},Hc=function(){function e(t){this._id=e._uniqueId++,this._parent=t,this._eventRecords=[]}return e.raise=function(t,n,r,i){var o;if(e._isElement(t)){if("undefined"!=typeof document&&document.createEvent){var a=document.createEvent("HTMLEvents");a.initEvent(n,i||!1,!0),function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];je.apply(this,[null,e].concat(t))}(a,r),o=t.dispatchEvent(a)}else if("undefined"!=typeof document&&document.createEventObject){var s=document.createEventObject(r);t.fireEvent("on"+n,s)}}else for(;t&&!1!==o;){var l=t.__events__,u=l?l[n]:null;if(u)for(var c in u)if(u.hasOwnProperty(c))for(var d=u[c],h=0;!1!==o&&h<d.length;h++){var p=d[h];p.objectCallback&&(o=p.objectCallback.call(p.parent,r))}t=i?t.parent:null}return o},e.isObserved=function(e,t){var n=e&&e.__events__;return!!n&&!!n[t]},e.isDeclared=function(e,t){var n=e&&e.__declaredEvents;return!!n&&!!n[t]},e.stopPropagation=function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0},e._isElement=function(e){return!!e&&(!!e.addEventListener||"undefined"!=typeof HTMLElement&&e instanceof HTMLElement)},e.prototype.dispose=function(){this._isDisposed||(this._isDisposed=!0,this.off(),this._parent=null)},e.prototype.onAll=function(e,t,n){for(var r in t)t.hasOwnProperty(r)&&this.on(e,r,t[r],n)},e.prototype.on=function(t,n,r,i){var o=this;if(n.indexOf(",")>-1)for(var a=n.split(/[ ,]+/),s=0;s<a.length;s++)this.on(t,a[s],r,i);else{var l=this._parent,u={target:t,eventName:n,parent:l,callback:r,options:i};if((a=t.__events__=t.__events__||{})[n]=a[n]||{count:0},a[n][this._id]=a[n][this._id]||[],a[n][this._id].push(u),a[n].count++,e._isElement(t)){var c=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!o._isDisposed){var n;try{if(!1===(n=r.apply(l,e))&&e[0]){var i=e[0];i.preventDefault&&i.preventDefault(),i.stopPropagation&&i.stopPropagation(),i.cancelBubble=!0}}catch(i){}return n}};u.elementCallback=c,t.addEventListener?t.addEventListener(n,c,i):t.attachEvent&&t.attachEvent("on"+n,c)}else u.objectCallback=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!o._isDisposed)return r.apply(l,e)};this._eventRecords.push(u)}},e.prototype.off=function(e,t,n,r){for(var i=0;i<this._eventRecords.length;i++){var o=this._eventRecords[i];if(!(e&&e!==o.target||t&&t!==o.eventName||n&&n!==o.callback||"boolean"==typeof r&&r!==o.options)){var a=o.target.__events__,s=a[o.eventName],l=s?s[this._id]:null;l&&(1!==l.length&&n?(s.count--,l.splice(l.indexOf(o),1)):(s.count-=l.length,delete a[o.eventName][this._id]),s.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(i--,1)}}},e.prototype.raise=function(t,n,r){return e.raise(this._parent,t,n,r)},e.prototype.declare=function(e){var t=this._parent.__declaredEvents=this._parent.__declaredEvents||{};if("string"==typeof e)t[e]=!0;else for(var n=0;n<e.length;n++)t[e[n]]=!0},e._uniqueId=0,e}();!function(e){e[e.hover=0]="hover",e[e.hotKey=1]="hotKey"}(Lc||(Lc={})),function(e){e.plain="PlainCard",e.expanding="ExpandingCard"}(Ac||(Ac={}));var Rc,Vc={root:"ms-ExpandingCard-root",compactCard:"ms-ExpandingCard-compactCard",expandedCard:"ms-ExpandingCard-expandedCard",expandedCardScroll:"ms-ExpandingCard-expandedCardScrollRegion"};function Bc(e){var t=(0,s.useRef)();return(0,s.useEffect)((function(){t.current=e})),t.current}function Wc(e,t){var n=s.useRef(t);return n.current||(n.current=pe(e)),n.current}function zc(e){var t=s.useRef((function(){throw new Error("Cannot call an event handler while rendering")}));return ui((function(){t.current=e}),[e]),kt((function(){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=t.current;return r.apply(void 0,e)}}))}!function(e){e[e.compact=0]="compact",e[e.expanded=1]="expanded"}(Rc||(Rc={}));var Uc={disabled:!1,disableFirstFocus:!1,forceFocusInsideTrap:!0,isClickableOutsideFocusTrap:!1},jc=s.forwardRef((function(e,t){var n,r,o,a=s.useRef(null),l=s.useRef(null),u=s.useRef(null),c=wt(a,t),d=function(){var e;return null===(e=s.useContext(Dt).window)||void 0===e?void 0:e.document}(),h=null===(n=Bc(!1))||void 0===n||n,p=Me(Uc,e),f=kt({hasFocus:!1,focusStackId:Wc("ftz-",p.id)}),g=p.children,m=p.componentRef,v=p.disabled,y=p.disableFirstFocus,_=p.forceFocusInsideTrap,x=p.focusPreviouslyFocusedInnerElement,b=p.firstFocusableSelector,C=p.firstFocusableTarget,S=p.disableRestoreFocus,E=void 0===S?p.ignoreExternalFocusing:S,k=p.isClickableOutsideFocusTrap,L=p.enableAriaHiddenSiblings,A={"aria-hidden":!0,style:{pointerEvents:"none",position:"fixed"},tabIndex:v?-1:0,"data-is-visible":!0,"data-is-focus-trap-zone-bumper":!0},w=s.useCallback((function(e){e!==l.current&&e!==u.current&&De(e)}),[]),D=zc((function(){if(a.current){var e=f.previouslyFocusedElementInTrapZone;if(x&&e&&xe(a.current,e))w(e);else{var t=null;if("string"==typeof C)t=a.current.querySelector(C);else if(C)t=C(a.current);else if(b){var n="string"==typeof b?b:b();t=a.current.querySelector("."+n)}t||(t=Se(a.current,a.current.firstChild,!1,!1,!1,!0)),t&&w(t)}}})),T=function(e){if(!v&&a.current){var t,n=e===f.hasFocus?(void 0===(t=!1)&&(t=!0),Ce(a.current,u.current,t,!1,!0,!0,!1,!0)):function(e,t,n,r){return void 0===r&&(r=!0),Se(e,t,r,!1,!1,!0,!1,!0)}(a.current,l.current,0,!1);n&&(n===l.current||n===u.current?D():n.focus())}},M=zc((function(e){if(jc.focusStack=jc.focusStack.filter((function(e){return f.focusStackId!==e})),d){var t=d.activeElement;E||"function"!=typeof(null==e?void 0:e.focus)||!xe(a.current,t)&&t!==d.body||w(e)}})),P=zc((function(e){if(!v&&f.focusStackId===jc.focusStack.slice(-1)[0]){var t=e.target;t&&!xe(a.current,t)&&(d&&d.activeElement===d.body?setTimeout((function(){d&&d.activeElement===d.body&&(D(),f.hasFocus=!0)}),0):(D(),f.hasFocus=!0),e.preventDefault(),e.stopPropagation())}}));return s.useEffect((function(){var e=[];return _&&e.push(Te(window,"focus",P,!0)),k||e.push(Te(window,"click",P,!0)),function(){e.forEach((function(e){return e()}))}}),[_,k]),s.useEffect((function(){if(!v&&(h||_)&&a.current){jc.focusStack.push(f.focusStackId);var e=p.elementToFocusOnDismiss||d.activeElement;return y||xe(a.current,e)||D(),function(){return M(e)}}}),[_,v]),s.useEffect((function(){if(!v&&L)return St(a.current)}),[v,L,a]),r=function(){delete f.previouslyFocusedElementInTrapZone},(o=s.useRef(r)).current=r,s.useEffect((function(){return function(){var e;null===(e=o.current)||void 0===e||e.call(o)}}),[]),function(e,t,n){s.useImperativeHandle(e,(function(){return{get previouslyFocusedElement(){return t},focus:n}}),[n,t])}(m,f.previouslyFocusedElementInTrapZone,D),s.createElement("div",i({"aria-labelledby":p.ariaLabelledBy},ze(p,We),{ref:c,onFocusCapture:function(e){var t;null===(t=p.onFocusCapture)||void 0===t||t.call(p,e),e.target===l.current?T(!0):e.target===u.current&&T(!1),f.hasFocus=!0,e.target!==e.currentTarget&&e.target!==l.current&&e.target!==u.current&&(f.previouslyFocusedElementInTrapZone=e.target)},onBlurCapture:function(e){var t;null===(t=p.onBlurCapture)||void 0===t||t.call(p,e);var n=e.relatedTarget;null===e.relatedTarget&&(n=d.activeElement),xe(a.current,n)||(f.hasFocus=!1)}}),s.createElement("div",i({},A,{ref:l})),g,s.createElement("div",i({},A,{ref:u})))}));jc.displayName="FocusTrapZone",jc.focusStack=[];var Yc,Xc=function(e){return s.createElement(gi,i({},e),s.createElement(jc,i({disabled:e.hidden},e.focusTrapProps),e.children))},qc=function(e){var t=e.gapSpace,n=void 0===t?0:t,r=e.directionalHint,o=void 0===r?4:r,a=e.directionalHintFixed,l=e.targetElement,u=e.firstFocus,c=e.trapFocus,d=e.onLeave,h=e.className,p=e.finalHeight,f=e.content,g=e.calloutProps,m=i(i(i({},ze(e,We)),{className:h,target:l,isBeakVisible:!1,directionalHint:o,directionalHintFixed:a,finalHeight:p,minPagePadding:24,onDismiss:d,gapSpace:n}),g);return s.createElement(s.Fragment,null,c?s.createElement(Xc,i({},m,{focusTrapProps:{forceFocusInsideTrap:!1,isClickableOutsideFocusTrap:!0,disableFirstFocus:!u}}),f):s.createElement(gi,i({},m),f))},Kc=le(),Zc=function(e){function t(t){var n=e.call(this,t)||this;return n._expandedElem=s.createRef(),n._onKeyDown=function(e){27===e.which&&n.props.onLeave&&n.props.onLeave(e)},n._onRenderCompactCard=function(){return s.createElement("div",{className:n._classNames.compactCard},n.props.onRenderCompactCard(n.props.renderData))},n._onRenderExpandedCard=function(){return!n.state.firstFrameRendered&&n._async.requestAnimationFrame((function(){n.setState({firstFrameRendered:!0})})),s.createElement("div",{className:n._classNames.expandedCard,ref:n._expandedElem},s.createElement("div",{className:n._classNames.expandedCardScroll},n.props.onRenderExpandedCard&&n.props.onRenderExpandedCard(n.props.renderData)))},n._checkNeedsScroll=function(){var e=n.props.expandedCardHeight;n._async.requestAnimationFrame((function(){n._expandedElem.current&&n._expandedElem.current.scrollHeight>=e&&n.setState({needsScroll:!0})}))},n._async=new Et(n),hc(n),n.state={firstFrameRendered:!1,needsScroll:!1},n}return r(t,e),t.prototype.componentDidMount=function(){this._checkNeedsScroll()},t.prototype.componentWillUnmount=function(){this._async.dispose()},t.prototype.render=function(){var e=this.props,t=e.styles,n=e.compactCardHeight,r=e.expandedCardHeight,o=e.theme,a=e.mode,l=e.className,u=this.state,c=u.needsScroll,d=u.firstFrameRendered,h=n+r;this._classNames=Kc(t,{theme:o,compactCardHeight:n,className:l,expandedCardHeight:r,needsScroll:c,expandedCardFirstFrameRendered:a===Rc.expanded&&d});var p=s.createElement("div",{onMouseEnter:this.props.onEnter,onMouseLeave:this.props.onLeave,onKeyDown:this._onKeyDown},this._onRenderCompactCard(),this._onRenderExpandedCard());return s.createElement(qc,i({},this.props,{content:p,finalHeight:h,className:this._classNames.root}))},t.defaultProps={compactCardHeight:156,expandedCardHeight:384,directionalHintFixed:!0},t}(s.Component),Gc=b(Zc,(function(e){var t,n=e.theme,r=e.needsScroll,i=e.expandedCardFirstFrameRendered,o=e.compactCardHeight,a=e.expandedCardHeight,s=e.className,l=n.palette,u=Zn(Vc,n);return{root:[u.root,{width:320,pointerEvents:"none",selectors:(t={},t[Pn]={border:"1px solid WindowText"},t)},s],compactCard:[u.compactCard,{pointerEvents:"auto",position:"relative",height:o}],expandedCard:[u.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:l.neutralLighter}}},i&&{height:a}],expandedCardScroll:[u.expandedCardScroll,r&&{height:"100%",boxSizing:"border-box",overflowY:"auto"}]}}),void 0,{scope:"ExpandingCard"}),$c={root:"ms-PlainCard-root"},Qc=le(),Jc=function(e){function t(t){var n=e.call(this,t)||this;return n._onKeyDown=function(e){27===e.which&&n.props.onLeave&&n.props.onLeave(e)},hc(n),n}return r(t,e),t.prototype.render=function(){var e=this.props,t=e.styles,n=e.theme,r=e.className;this._classNames=Qc(t,{theme:n,className:r});var o=s.createElement("div",{onMouseEnter:this.props.onEnter,onMouseLeave:this.props.onLeave,onKeyDown:this._onKeyDown},this.props.onRenderPlainCard(this.props.renderData));return s.createElement(qc,i({},this.props,{content:o,className:this._classNames.root}))},t}(s.Component),ed=b(Jc,(function(e){var t,n=e.theme,r=e.className;return{root:[Zn($c,n).root,{pointerEvents:"auto",selectors:(t={},t[Pn]={border:"1px solid WindowText"},t)},r]}}),void 0,{scope:"PlainCard"}),td=le(),nd=function(e){function t(t){var n=e.call(this,t)||this;return n._hoverCard=s.createRef(),n.dismiss=function(e){n._async.clearTimeout(n._openTimerId),n._async.clearTimeout(n._dismissTimerId),e?n._dismissTimerId=n._async.setTimeout((function(){n._setDismissedState()}),n.props.cardDismissDelay):n._setDismissedState()},n._cardOpen=function(e){n._shouldBlockHoverCard()||"keydown"===e.type&&e.which!==n.props.openHotKey||(n._async.clearTimeout(n._dismissTimerId),"mouseenter"===e.type&&(n._currentMouseTarget=e.currentTarget),n._executeCardOpen(e))},n._executeCardOpen=function(e){n._async.clearTimeout(n._openTimerId),n._openTimerId=n._async.setTimeout((function(){n.setState((function(t){return t.isHoverCardVisible?t:{isHoverCardVisible:!0,mode:Rc.compact,openMode:"keydown"===e.type?Lc.hotKey:Lc.hover}}))}),n.props.cardOpenDelay)},n._cardDismiss=function(e,t){if(e){if(!(t instanceof MouseEvent))return;if("keydown"===t.type&&27!==t.which)return;n.props.sticky||n._currentMouseTarget!==t.currentTarget&&27!==t.which||n.dismiss(!0)}else{if(n.props.sticky&&!(t instanceof MouseEvent)&&t.nativeEvent instanceof MouseEvent&&"mouseleave"===t.type)return;n.dismiss(!0)}},n._setDismissedState=function(){n.setState({isHoverCardVisible:!1,mode:Rc.compact,openMode:Lc.hover})},n._instantOpenAsExpanded=function(e){n._async.clearTimeout(n._dismissTimerId),n.setState((function(e){return e.isHoverCardVisible?e:{isHoverCardVisible:!0,mode:Rc.expanded}}))},n._setEventListeners=function(){var e=n.props,t=e.trapFocus,r=e.instantOpenOnClick,i=e.eventListenerTarget,o=i?n._getTargetElement(i):n._getTargetElement(n.props.target),a=n._nativeDismissEvent;o&&(n._events.on(o,"mouseenter",n._cardOpen),n._events.on(o,"mouseleave",a),t?n._events.on(o,"keydown",n._cardOpen):(n._events.on(o,"focus",n._cardOpen),n._events.on(o,"blur",a)),r?n._events.on(o,"click",n._instantOpenAsExpanded):(n._events.on(o,"mousedown",a),n._events.on(o,"keydown",a)))},hc(n),n._async=new Et(n),n._events=new Hc(n),n._nativeDismissEvent=n._cardDismiss.bind(n,!0),n._childDismissEvent=n._cardDismiss.bind(n,!1),n.state={isHoverCardVisible:!1,mode:Rc.compact,openMode:Lc.hover},n}return r(t,e),t.prototype.componentDidMount=function(){this._setEventListeners()},t.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},t.prototype.componentDidUpdate=function(e,t){var n=this;e.target!==this.props.target&&(this._events.off(),this._setEventListeners()),t.isHoverCardVisible!==this.state.isHoverCardVisible&&(this.state.isHoverCardVisible?(this._async.setTimeout((function(){n.setState({mode:Rc.expanded},(function(){n.props.onCardExpand&&n.props.onCardExpand()}))}),this.props.expandedCardOpenDelay),this.props.onCardVisible&&this.props.onCardVisible()):(this.setState({mode:Rc.compact}),this.props.onCardHide&&this.props.onCardHide()))},t.prototype.render=function(){var e=this.props,t=e.expandingCardProps,n=e.children,r=e.id,o=e.setAriaDescribedBy,a=void 0===o||o,l=e.styles,u=e.theme,c=e.className,d=e.type,h=e.plainCardProps,p=e.trapFocus,f=e.setInitialFocus,g=this.state,m=g.isHoverCardVisible,v=g.mode,y=g.openMode,_=r||pe("hoverCard");this._classNames=td(l,{theme:u,className:c});var x=i(i({},ze(this.props,We)),{id:_,trapFocus:!!p,firstFocus:f||y===Lc.hotKey,targetElement:this._getTargetElement(this.props.target),onEnter:this._cardOpen,onLeave:this._childDismissEvent}),b=i(i(i({},t),x),{mode:v}),C=i(i({},h),x);return s.createElement("div",{className:this._classNames.host,ref:this._hoverCard,"aria-describedby":a&&m?_:void 0,"data-is-focusable":!this.props.target},n,m&&(d===Ac.expanding?s.createElement(Gc,i({},b)):s.createElement(ed,i({},C))))},t.prototype._getTargetElement=function(e){switch(typeof e){case"string":return $().querySelector(e);case"object":return e;default:return this._hoverCard.current||void 0}},t.prototype._shouldBlockHoverCard=function(){return!(!this.props.shouldBlockHoverCard||!this.props.shouldBlockHoverCard())},t.defaultProps={cardOpenDelay:500,cardDismissDelay:100,expandedCardOpenDelay:1500,instantOpenOnClick:!1,setInitialFocus:!1,openHotKey:67,type:Ac.expanding},t}(s.Component),rd=b(nd,(function(e){var t=e.className,n=e.theme;return{host:[Zn(Nc,n).host,t]}}),void 0,{scope:"HoverCard"});!function(e){e[e.horizontal=0]="horizontal",e[e.vertical=1]="vertical"}(Yc||(Yc={}));var id=function(e){var t;void 0===e&&(t={},e={getCachedMeasurement:function(e){if(e&&e.cacheKey&&t.hasOwnProperty(e.cacheKey))return t[e.cacheKey]},addMeasurementToCache:function(e,n){e.cacheKey&&(t[e.cacheKey]=n)}});var n,r=e;function o(e,t){var n=r.getCachedMeasurement(e);if(void 0!==n)return n;var i=t();return r.addMeasurementToCache(e,i),i}function a(e,t,i){for(var a=e,s=o(e,i);s>n;){var l=t(a);if(void 0===l)return{renderedData:a,resizeDirection:void 0,dataToMeasure:void 0};if(void 0===(s=r.getCachedMeasurement(l)))return{dataToMeasure:l,resizeDirection:"shrink"};a=l}return{renderedData:a,resizeDirection:void 0,dataToMeasure:void 0}}return{getNextState:function(e,t,s,l){if(void 0!==l||void 0!==t.dataToMeasure){if(l){if(n&&t.renderedData&&!t.dataToMeasure)return i(i({},t),function(e,t,r,o){var a;return a=e>n?o?{resizeDirection:"grow",dataToMeasure:o(r)}:{resizeDirection:"shrink",dataToMeasure:t}:{resizeDirection:"shrink",dataToMeasure:r},n=e,i(i({},a),{measureContainer:!1})}(l,e.data,t.renderedData,e.onGrowData));n=l}var u=i(i({},t),{measureContainer:!1});return t.dataToMeasure&&(u="grow"===t.resizeDirection&&e.onGrowData?i(i({},u),function(e,t,s,l){for(var u=e,c=o(e,s);c<n;){var d=t(u);if(void 0===d)return{renderedData:u,resizeDirection:void 0,dataToMeasure:void 0};if(void 0===(c=r.getCachedMeasurement(d)))return{dataToMeasure:d};u=d}return i({resizeDirection:"shrink"},a(u,l,s))}(t.dataToMeasure,e.onGrowData,s,e.onReduceData)):i(i({},u),a(t.dataToMeasure,e.onReduceData,s))),u}},shouldRenderDataForMeasurement:function(e){return!(!e||void 0!==r.getCachedMeasurement(e))},getInitialResizeGroupState:function(e){return{dataToMeasure:i({},e),resizeDirection:"grow",measureContainer:!0}}}},od=s.createContext({isMeasured:!1}),ad={position:"fixed",visibility:"hidden"},sd={position:"relative"};function ld(e,t){var n;switch(t.type){case"resizeData":return i({},t.value);case"dataToMeasure":return i(i({},e),{dataToMeasure:t.value,resizeDirection:"grow",measureContainer:!0});default:return i(i({},e),((n={})[t.type]=t.value,n))}}var ud={isMeasured:!0},cd=s.forwardRef((function(e,t){var n=s.useRef(null),r=wt(n,t),o=function(e,t){var n=kt(id),r=s.useRef(null),o=s.useRef(null),a=s.useRef(!1),l=Lt(),u=function(e,t,n){var r=kt((function(){return t.getInitialResizeGroupState(e.data)})),o=s.useReducer(ld,r),a=o[0],l=o[1];s.useEffect((function(){l({type:"dataToMeasure",value:e.data})}),[e.data]);var u=s.useRef(r);return u.current=i({},a),[u,s.useCallback((function(e){e&&l({type:"resizeData",value:e})}),[]),s.useCallback((function(){n.current&&l({type:"measureContainer",value:!0})}),[n])]}(e,n,t),c=u[0],d=u[1],h=u[2];s.useEffect((function(){var t;c.current.renderedData&&(a.current=!0,null===(t=e.dataDidRender)||void 0===t||t.call(e,c.current.renderedData))})),s.useEffect((function(){l.requestAnimationFrame((function(){var i=void 0;if(c.current.measureContainer&&t.current){var s=t.current.getBoundingClientRect();i=e.direction===Yc.vertical?s.height:s.width}var l=n.getNextState(e,c.current,(function(){var t=a.current?o:r;if(!t.current)return 0;var n=t.current.getBoundingClientRect();return e.direction===Yc.vertical?n.height:n.width}),i);d(l)}),t.current)})),At(Tt(),"resize",l.debounce(h,16,{leading:!0}));var p=n.shouldRenderDataForMeasurement(c.current.dataToMeasure),f=!a.current&&p;return[c.current.dataToMeasure,c.current.renderedData,h,r,o,p,f]}(e,n),a=o[0],l=o[1],u=o[2],c=o[3],d=o[4],h=o[5],p=o[6];s.useImperativeHandle(e.componentRef,(function(){return{remeasure:u}}),[u]);var f=e.className,g=e.onRenderData,m=ze(e,We,["data"]);return s.createElement("div",i({},m,{className:f,ref:r}),s.createElement("div",{style:sd},h&&!p&&s.createElement("div",{style:ad,ref:d},s.createElement(od.Provider,{value:ud},g(a))),s.createElement("div",{ref:c,style:p?ad:void 0,"data-automation-id":"visibleContent"},p?g(a):l&&g(l))))}));cd.displayName="ResizeGroupBase";var dd,hd=cd;!function(e){e.KEYTIP_ADDED="keytipAdded",e.KEYTIP_REMOVED="keytipRemoved",e.KEYTIP_UPDATED="keytipUpdated",e.PERSISTED_KEYTIP_ADDED="persistedKeytipAdded",e.PERSISTED_KEYTIP_REMOVED="persistedKeytipRemoved",e.PERSISTED_KEYTIP_EXECUTE="persistedKeytipExecute",e.ENTER_KEYTIP_MODE="enterKeytipMode",e.EXIT_KEYTIP_MODE="exitKeytipMode"}(dd||(dd={}));var pd=function(){function e(){this.keytips={},this.persistedKeytips={},this.sequenceMapping={},this.inKeytipMode=!1,this.shouldEnterKeytipMode=!0,this.delayUpdatingKeytipChange=!1}return e.getInstance=function(){return this._instance},e.prototype.init=function(e){this.delayUpdatingKeytipChange=e},e.prototype.register=function(e,t){void 0===t&&(t=!1);var n=e;t||(n=this.addParentOverflow(e),this.sequenceMapping[n.keySequences.toString()]=n);var r=this._getUniqueKtp(n);if(t?this.persistedKeytips[r.uniqueID]=r:this.keytips[r.uniqueID]=r,this.inKeytipMode||!this.delayUpdatingKeytipChange){var i=t?dd.PERSISTED_KEYTIP_ADDED:dd.KEYTIP_ADDED;Hc.raise(this,i,{keytip:n,uniqueID:r.uniqueID})}return r.uniqueID},e.prototype.update=function(e,t){var n=this.addParentOverflow(e),r=this._getUniqueKtp(n,t),i=this.keytips[t];i&&(r.keytip.visible=i.keytip.visible,this.keytips[t]=r,delete this.sequenceMapping[i.keytip.keySequences.toString()],this.sequenceMapping[r.keytip.keySequences.toString()]=r.keytip,!this.inKeytipMode&&this.delayUpdatingKeytipChange||Hc.raise(this,dd.KEYTIP_UPDATED,{keytip:r.keytip,uniqueID:r.uniqueID}))},e.prototype.unregister=function(e,t,n){void 0===n&&(n=!1),n?delete this.persistedKeytips[t]:delete this.keytips[t],!n&&delete this.sequenceMapping[e.keySequences.toString()];var r=n?dd.PERSISTED_KEYTIP_REMOVED:dd.KEYTIP_REMOVED;!this.inKeytipMode&&this.delayUpdatingKeytipChange||Hc.raise(this,r,{keytip:e,uniqueID:t})},e.prototype.enterKeytipMode=function(){Hc.raise(this,dd.ENTER_KEYTIP_MODE)},e.prototype.exitKeytipMode=function(){Hc.raise(this,dd.EXIT_KEYTIP_MODE)},e.prototype.getKeytips=function(){var e=this;return Object.keys(this.keytips).map((function(t){return e.keytips[t].keytip}))},e.prototype.addParentOverflow=function(e){var t=a([],e.keySequences);if(t.pop(),0!==t.length){var n=this.sequenceMapping[t.toString()];if(n&&n.overflowSetSequence)return i(i({},e),{overflowSetSequence:n.overflowSetSequence})}return e},e.prototype.menuExecute=function(e,t){Hc.raise(this,dd.PERSISTED_KEYTIP_EXECUTE,{overflowButtonSequences:e,keytipSequences:t})},e.prototype._getUniqueKtp=function(e,t){return void 0===t&&(t=pe()),{keytip:i({},e),uniqueID:t}},e._instance=new e,e}(),fd=function(e,t,n){for(var r=0,i=e;r<i.length;r++){var o=i[r];n[t.register(o,!0)]=o}},gd=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];e.unregister(t[i],i,!0),delete t[i]}},md=function(e){var t=pd.getInstance(),n=e.className,r=e.overflowItems,o=e.keytipSequences,a=e.itemSubMenuProvider,l=e.onRenderOverflowButton,u=kt({}),c=s.useCallback((function(e){return a?a(e):e.subMenuProps?e.subMenuProps.items:void 0}),[a]),d=s.useMemo((function(){var e=[],n=[];return o?null==r||r.forEach((function(r){var a,s=r.keytipProps;if(s){var l={content:s.content,keySequences:s.keySequences,disabled:s.disabled||!(!r.disabled&&!r.isDisabled),hasDynamicChildren:s.hasDynamicChildren,hasMenu:s.hasMenu};s.hasDynamicChildren||c(r)?(l.onExecute=t.menuExecute.bind(t,o,null===(a=null==r?void 0:r.keytipProps)||void 0===a?void 0:a.keySequences),l.hasOverflowSubMenu=!0):l.onExecute=s.onExecute,e.push(l);var u=i(i({},r),{keytipProps:i(i({},s),{overflowSetSequence:o})});null==n||n.push(u)}else null==n||n.push(r)})):n=r,{modifiedOverflowItems:n,keytipsToRegister:e}}),[r,c,t,o]),h=d.modifiedOverflowItems;return function(e,t,n){var r=Bc(e);s.useEffect((function(){r&&(gd(n,r),fd(t,n,e))})),s.useEffect((function(){return fd(t,n,e),function(){gd(n,e)}}),[])}(u,d.keytipsToRegister,t),s.createElement("div",{className:n},l(h))},vd=le(),yd=s.forwardRef((function(e,t){var n=s.useRef(null),r=wt(n,t);!function(e,t){s.useImperativeHandle(e.componentRef,(function(){return{focus:function(){var e=!1;return t.current&&(e=be(t.current)),e},focusElement:function(e){var n=!1;return!!e&&(t.current&&xe(t.current,e)&&(e.focus(),n=document.activeElement===e),n)}}}),[t])}(e,n);var o=e.items,a=e.overflowItems,l=e.className,u=e.styles,c=e.vertical,d=e.role,h=e.overflowSide,p=void 0===h?"end":h,f=e.onRenderItem,g=vd(u,{className:l,vertical:c}),m=!!a&&a.length>0;return s.createElement("div",i({},ze(e,We),{role:d||"group","aria-orientation":"menubar"===d?!0===c?"vertical":"horizontal":void 0,className:g.root,ref:r}),"start"===p&&m&&s.createElement(md,i({},e,{className:g.overflowButton})),o&&o.map((function(e,t){return s.createElement("div",{className:g.item,key:e.key,role:"none"},f(e))})),"end"===p&&m&&s.createElement(md,i({},e,{className:g.overflowButton})))}));yd.displayName="OverflowSet";var _d,xd={flexShrink:0,display:"inherit"},bd=b(yd,(function(e){var t=e.className;return{root:["ms-OverflowSet",{position:"relative",display:"flex",flexWrap:"nowrap"},e.vertical&&{flexDirection:"column"},t],item:["ms-OverflowSet-item",xd],overflowButton:["ms-OverflowSet-overflowButton",xd]}}),void 0,{scope:"OverflowSet"}),Cd=((_d={})[""+Ju[Ju.circle]]="M1 6 A5 5 0 1 0 12 6 M1 6 A5 5 0 0 1 12 6",_d[""+Ju[Ju.square]]="M1 1 L12 1 L12 12 L1 12 L1 1 Z",_d[""+Ju[Ju.triangle]]="M6 10L8.74228e-07 -1.04907e-06L12 0L6 10Z",_d[""+Ju[Ju.pyramid]]="M6 10L8.74228e-07 -1.04907e-06L12 0L6 10Z",_d[""+Ju[Ju.diamond]]="M2 2 L10 2 L10 10 L2 10 L2 2 Z",_d[""+Ju[Ju.hexagon]]="M9 0H3L0 5L3 10H9L12 5L9 0Z",_d[""+Ju[Ju.pentagon]]="M6.06061 0L0 4.21277L2.30303 11H9.69697L12 4.21277L6.06061 0Z",_d[""+Ju[Ju.octagon]]="M7.08333 0H2.91667L0 2.91667V7.08333L2.91667 10H7.08333L10 7.08333V2.91667L7.08333 0Z",_d[""+ec[ec.dottedLine]]="M0 6 H3 M5 6 H8 M10 6 H13",_d),Sd=function(e){var t=e.svgProps,n=e.pathProps,r=e.shape,o=e.classNameForNonSvg;return-1===Object.keys(Cd).indexOf(r)?s.createElement("div",{className:o}):s.createElement("svg",i({width:14,height:14,viewBox:"-1 -1 14 14"},t,{transform:"rotate("+(r===Ju[Ju.diamond]?45:r===Ju[Ju.triangle]?180:0)+", 0, 0)"}),s.createElement("path",i({d:Cd[r]},n)))},Ed=le(),kd=function(e){function t(t){var n=e.call(this,t)||this;return n._onRenderData=function(e){var t=n.props,r=t.overflowProps,o=t.allowFocusOnLegends,a=void 0===o||o,l={root:{justifyContent:n.props.centerLegends?"center":"unset",flexWrap:"wrap"}};return s.createElement(bd,i({},a&&{role:"listbox","aria-label":"Legends"},{items:e.primary,overflowItems:e.overflow,onRenderItem:n._renderButton,onRenderOverflowButton:n._renderOverflowItems},r,{styles:i(i({},l),null==r?void 0:r.styles)}))},n._onReduceData=function(e){if(0!==e.primary.length){var t=a(a([],e.primary.slice(-1)),e.overflow);return{primary:e.primary.slice(0,-1),overflow:t}}},n._onGrowData=function(e){if(0!==e.overflow.length){var t=e.overflow.slice(1);return{primary:a(a([],e.primary),e.overflow.slice(0,1)),overflow:t}}},n._canSelectMultipleLegends=function(e){var t=function(e,t){var n=e.indexOf(t);return-1===n?a(a([],e),[t]):e.slice(0,n).concat(e.slice(n+1))}(n.state.selectedLegends,e.title);n.setState({selectedLegends:t.length===n.props.legends.length?[]:t,selectedState:0!==t.length&&t.length!==n.props.legends.length,selecetedLegendInHoverCard:n.state.isHoverCardVisible?e.title:"none",selectedLegend:"none",hoverState:!1})},n._canSelectOnlySingleLegend=function(e){!0===n.state.selectedState&&n.state.selectedLegend===e.title?n.setState({selectedLegend:"none",selectedState:!1,selecetedLegendInHoverCard:n.state.isHoverCardVisible?e.title:"none"}):n.setState({hoverState:!0,selectedState:!0,selectedLegend:e.title,selecetedLegendInHoverCard:n.state.isHoverCardVisible?e.title:"none"})},n._onClick=function(e){if(e.action){var t=n.props.canSelectMultipleLegends;void 0!==t&&t?n._canSelectMultipleLegends(e):n._canSelectOnlySingleLegend(e),e.action()}},n._onRenderCompactCard=function(e){var t=n.props,r=t.allowFocusOnLegends,o=void 0===r||r,a=t.className,l=t.styles,u=t.theme,c=[],d=Ed(l,{theme:u,className:a});return e.renderData.forEach((function(e,t){var r=n._renderButton(e,t,!0);c.push(r)})),s.createElement(Pc,i({},o&&{role:"listbox"},{direction:oc.vertical},n.props.focusZonePropsInHoverCard,{className:d.hoverCardRoot}),c)},n._renderOverflowItems=function(e){var t=n.props.allowFocusOnLegends,r=void 0===t||t,o=[];e.forEach((function(e,t){o.push({key:t.toString(),name:e.title,onClick:e.action})}));var a={renderData:e},l=n.props,u=l.theme,c=l.className,d=l.styles,h=l.overflowText,p=Ed(d,{theme:u,className:c}),f={onRenderPlainCard:n._onRenderCompactCard,renderData:a},g=h||"more";return s.createElement(rd,{type:Ac.plain,plainCardProps:f,instantOpenOnClick:!0,onCardHide:function(){var t=n.props.canSelectMultipleLegends,r=void 0!==t&&t,i=me(e,(function(e){return e.title===n.state.selecetedLegendInHoverCard||e.title===n.state.selectedLegend}));n.setState({isHoverCardVisible:!1,selecetedLegendInHoverCard:"none",selectedLegends:[]},(function(){i&&n.setState({selectedLegend:"none",selectedState:!1},(function(){i.action&&!r&&i.action(),n.props.onLegendHoverCardLeave&&r&&n.props.onLegendHoverCardLeave(),n.setState({hoverState:!1},(function(){i.onMouseOutAction&&i.onMouseOutAction(!0)}))}))}))},setInitialFocus:!0,trapFocus:!0,onCardVisible:n._hoverCardVisible,styles:p.subComponentStyles.hoverCardStyles,cardDismissDelay:300,target:n._hoverCardRef},s.createElement("div",i({className:p.overflowIndicationTextStyle,ref:function(e){return n._hoverCardRef=e}},r&&{role:"link","aria-expanded":n.state.isHoverCardVisible,"aria-label":o.length+" "+g},{"data-is-focusable":r}),o.length," ",g))},n._hoverCardVisible=function(){n.setState({isHoverCardVisible:!0})},n._onHoverOverLegend=function(e){n.state.selectedState||e.hoverAction&&(n.setState({hoverState:!0,selectedLegend:e.title}),e.hoverAction())},n._onLeave=function(e){n.state.selectedState||e.onMouseOutAction&&(n.setState({hoverState:!1,selectedLegend:"none"}),e.onMouseOutAction())},n._renderButton=function(e,t,r){var o=n.props.allowFocusOnLegends,a=void 0===o||o,l={title:e.title,color:e.color,shape:e.shape,action:e.action,hoverAction:e.hoverAction,onMouseOutAction:e.onMouseOutAction,stripePattern:e.stripePattern,isLineLegendInBarChart:e.isLineLegendInBarChart,opacity:e.opacity},u=n._getColor(l.title,l.color),c=n.props,d=c.theme,h=c.className,p=c.styles,f=Ed(p,{theme:d,className:h,colorOnSelectedState:u,borderColor:l.color,overflow:r,stripePattern:l.stripePattern,isLineLegendInBarChart:l.isLineLegendInBarChart,opacity:l.opacity}),g=function(){n._onHoverOverLegend(l)},m=function(){n._onLeave(l)},v=n._getShape(f,l,u);return s.createElement("button",i({},a&&{"aria-selected":n.state.selectedLegend===l.title,role:"option","aria-label":l.title+" selected","aria-setsize":e["aria-setsize"],"aria-posinset":e["aria-posinset"]},e.nativeButtonProps&&i({},e.nativeButtonProps),{key:t,className:f.legend,onClick:function(){n._onClick(l)},onMouseOver:g,onMouseOut:m,onFocus:g,onBlur:m,"data-is-focusable":a}),v,s.createElement("div",{className:f.text},l.title))},n.state={selectedLegend:"none",selectedState:!1,hoverState:!1,isHoverCardVisible:!1,selecetedLegendInHoverCard:"none",selectedLegends:[]},n}return r(t,e),t.prototype.componentDidUpdate=function(e){e.selectedLegend!==this.props.selectedLegend&&this.setState({selectedLegend:this.props.selectedLegend})},t.prototype.render=function(){var e=this.props,t=e.theme,n=e.className,r=e.styles;this._classNames=Ed(r,{theme:t,className:n});var i=this._generateData();return s.createElement("div",{className:this._classNames.root},this.props.enabledWrapLines?this._onRenderData(i):s.createElement(hd,{data:i,onReduceData:this._onReduceData,onRenderData:this._onRenderData,onGrowData:this._onGrowData}))},t.prototype._generateData=function(){var e=this,t=this.props.allowFocusOnLegends,n=void 0===t||t;return{primary:this.props.legends.map((function(t,r){return i(i({},n&&{nativeButtonProps:ze(t,Be,["title"]),"aria-setsize":e.props.legends.length,"aria-posinset":r+1}),{title:t.title,action:t.action,hoverAction:t.hoverAction,onMouseOutAction:t.onMouseOutAction,color:t.color,shape:t.shape,stripePattern:t.stripePattern,isLineLegendInBarChart:t.isLineLegendInBarChart,opacity:t.opacity,key:r})})),overflow:[]}},t.prototype._getShape=function(e,t,n){var r={className:e.shape},i={fill:n,strokeWidth:2,stroke:t.color};return s.createElement(Sd,{svgProps:r,pathProps:i,shape:t.shape,classNameForNonSvg:e.rect})},t.prototype._getColor=function(e,t){var n=this.props,r=n.theme,i=n.canSelectMultipleLegends,o=void 0!==i&&i,a=r.palette;return this.state.hoverState&&this.state.selectedLegend===e?t:this.state.hoverState&&"none"!==this.state.selectedLegend&&this.state.selectedLegend!==e?a.white:o&&this.state.selectedState&&this.state.selectedLegends.indexOf(e)>-1||!this.state.selectedState&&"none"===this.state.selectedLegend||this.state.selectedLegend===e||this.state.selectedLegends.length<=0?t:a.white},t}(s.Component),Ld=b(kd,(function(e){var t,n,r=e.className,o=e.theme,a=e.isLineLegendInBarChart,s=void 0!==a&&a,l=o,u=l.palette,c=l.fonts,d={inset:void 0,position:void 0,highContrastStyle:{outlineColor:o.semanticColors.focusBorder},borderColor:"transparent",outlineColor:void 0};return{root:[{whiteSpace:"nowrap",width:"100%",alignItems:"center",margin:"-8px 0 0 -8px"},r],legend:[Hn(o,d),{display:"flex",alignItems:"center",cursor:"pointer",border:"none",padding:"8px",background:"none",textTransform:"capitalize"}],rect:{selectors:(t={},t[Pn]={content:"linear-gradient(to right, "+e.colorOnSelectedState+", "+e.colorOnSelectedState+")",opacity:e.colorOnSelectedState===u.white?"0.6":""},t),width:"12px",height:s?"4px":"12px",backgroundColor:e.stripePattern?"":e.colorOnSelectedState,marginRight:"8px",border:"1px solid",borderColor:e.borderColor?e.borderColor:null==o?void 0:o.semanticColors.buttonBorder,content:e.stripePattern?"repeating-linear-gradient(135deg, transparent, transparent 3px, "+e.colorOnSelectedState+" 1px, "+e.colorOnSelectedState+" 4px)":""},shape:[{marginRight:"8px"}],triangle:{width:"0",height:"0",borderLeft:"6px solid transparent",borderRight:"6px solid transparent",borderTop:"10.4px solid",borderTopColor:e.colorOnSelectedState,marginRight:"8px",opacity:e.colorOnSelectedState===u.white?"0.6":e.opacity?e.opacity:"",selectors:(n={},n[Pn]={border:"0px",height:"10.4px",width:"10.4px",clipPath:"polygon(50% 100%, 0 0, 100% 0)",backgroundImage:"linear-gradient(to right, "+e.colorOnSelectedState+", "+e.colorOnSelectedState+")"},n)},text:i(i({},c.small),{lineHeight:"16px",color:null==o?void 0:o.semanticColors.bodyText,opacity:e.colorOnSelectedState===u.white?"0.6":""}),hoverChange:{width:"12px",height:"12px",backgroundColor:"white",marginRight:"8px",border:"1px solid",borderColor:e.borderColor?e.borderColor:u.black},overflowIndicationTextStyle:[Hn(o,d),i(i({cursor:"pointer",color:null==o?void 0:o.semanticColors.bodyText},c.small),{lineHeight:"16px",padding:"8px"})],hoverCardRoot:{padding:"8px"},subComponentStyles:{hoverCardStyles:{host:[Hn(o,d)]}}}}));function Ad(e){return function(){return e}}function wd(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function Dd(e){return e}var Td=Math.abs,Md=Math.atan2,Pd=Math.cos,Fd=Math.max,Id=Math.min,Od=Math.sin,Nd=Math.sqrt,Hd=1e-12,Rd=Math.PI,Vd=Rd/2,Bd=2*Rd;function Wd(e){return e>1?0:e<-1?Rd:Math.acos(e)}function zd(e){return e>=1?Vd:e<=-1?-Vd:Math.asin(e)}function Ud(){var e=Dd,t=wd,n=null,r=Ad(0),i=Ad(Bd),o=Ad(0);function a(a){var s,l,u,c,d,h=a.length,p=0,f=new Array(h),g=new Array(h),m=+r.apply(this,arguments),v=Math.min(Bd,Math.max(-Bd,i.apply(this,arguments)-m)),y=Math.min(Math.abs(v)/h,o.apply(this,arguments)),_=y*(v<0?-1:1);for(s=0;s<h;++s)(d=g[f[s]=s]=+e(a[s],s,a))>0&&(p+=d);for(null!=t?f.sort((function(e,n){return t(g[e],g[n])})):null!=n&&f.sort((function(e,t){return n(a[e],a[t])})),s=0,u=p?(v-h*_)/p:0;s<h;++s,m=c)l=f[s],c=m+((d=g[l])>0?d*u:0)+_,g[l]={data:a[l],index:s,value:d,startAngle:m,endAngle:c,padAngle:y};return g}return a.value=function(t){return arguments.length?(e="function"==typeof t?t:Ad(+t),a):e},a.sortValues=function(e){return arguments.length?(t=e,n=null,a):t},a.sort=function(e){return arguments.length?(n=e,t=null,a):n},a.startAngle=function(e){return arguments.length?(r="function"==typeof e?e:Ad(+e),a):r},a.endAngle=function(e){return arguments.length?(i="function"==typeof e?e:Ad(+e),a):i},a.padAngle=function(e){return arguments.length?(o="function"==typeof e?e:Ad(+e),a):o},a}var jd=Math.PI,Yd=2*jd,Xd=1e-6,qd=Yd-Xd;function Kd(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function Zd(){return new Kd}Kd.prototype=Zd.prototype={constructor:Kd,moveTo:function(e,t){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(e,t){this._+="L"+(this._x1=+e)+","+(this._y1=+t)},quadraticCurveTo:function(e,t,n,r){this._+="Q"+ +e+","+ +t+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(e,t,n,r,i,o){this._+="C"+ +e+","+ +t+","+ +n+","+ +r+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(e,t,n,r,i){e=+e,t=+t,n=+n,r=+r,i=+i;var o=this._x1,a=this._y1,s=n-e,l=r-t,u=o-e,c=a-t,d=u*u+c*c;if(i<0)throw new Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(d>Xd)if(Math.abs(c*s-l*u)>Xd&&i){var h=n-o,p=r-a,f=s*s+l*l,g=h*h+p*p,m=Math.sqrt(f),v=Math.sqrt(d),y=i*Math.tan((jd-Math.acos((f+d-g)/(2*m*v)))/2),_=y/v,x=y/m;Math.abs(_-1)>Xd&&(this._+="L"+(e+_*u)+","+(t+_*c)),this._+="A"+i+","+i+",0,0,"+ +(c*h>u*p)+","+(this._x1=e+x*s)+","+(this._y1=t+x*l)}else this._+="L"+(this._x1=e)+","+(this._y1=t)},arc:function(e,t,n,r,i,o){e=+e,t=+t;var a=(n=+n)*Math.cos(r),s=n*Math.sin(r),l=e+a,u=t+s,c=1^o,d=o?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+l+","+u:(Math.abs(this._x1-l)>Xd||Math.abs(this._y1-u)>Xd)&&(this._+="L"+l+","+u),n&&(d<0&&(d=d%Yd+Yd),d>qd?this._+="A"+n+","+n+",0,1,"+c+","+(e-a)+","+(t-s)+"A"+n+","+n+",0,1,"+c+","+(this._x1=l)+","+(this._y1=u):d>Xd&&(this._+="A"+n+","+n+",0,"+ +(d>=jd)+","+c+","+(this._x1=e+n*Math.cos(i))+","+(this._y1=t+n*Math.sin(i))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};var Gd=Zd;function $d(e){return e.innerRadius}function Qd(e){return e.outerRadius}function Jd(e){return e.startAngle}function eh(e){return e.endAngle}function th(e){return e&&e.padAngle}function nh(e,t,n,r,i,o,a,s){var l=n-e,u=r-t,c=a-i,d=s-o,h=d*l-c*u;if(!(h*h<Hd))return[e+(h=(c*(t-o)-d*(e-i))/h)*l,t+h*u]}function rh(e,t,n,r,i,o,a){var s=e-n,l=t-r,u=(a?o:-o)/Nd(s*s+l*l),c=u*l,d=-u*s,h=e+c,p=t+d,f=n+c,g=r+d,m=(h+f)/2,v=(p+g)/2,y=f-h,_=g-p,x=y*y+_*_,b=i-o,C=h*g-f*p,S=(_<0?-1:1)*Nd(Fd(0,b*b*x-C*C)),E=(C*_-y*S)/x,k=(-C*y-_*S)/x,L=(C*_+y*S)/x,A=(-C*y+_*S)/x,w=E-m,D=k-v,T=L-m,M=A-v;return w*w+D*D>T*T+M*M&&(E=L,k=A),{cx:E,cy:k,x01:-c,y01:-d,x11:E*(i/b-1),y11:k*(i/b-1)}}function ih(){var e=$d,t=Qd,n=Ad(0),r=null,i=Jd,o=eh,a=th,s=null;function l(){var l,u,c=+e.apply(this,arguments),d=+t.apply(this,arguments),h=i.apply(this,arguments)-Vd,p=o.apply(this,arguments)-Vd,f=Td(p-h),g=p>h;if(s||(s=l=Gd()),d<c&&(u=d,d=c,c=u),d>Hd)if(f>Bd-Hd)s.moveTo(d*Pd(h),d*Od(h)),s.arc(0,0,d,h,p,!g),c>Hd&&(s.moveTo(c*Pd(p),c*Od(p)),s.arc(0,0,c,p,h,g));else{var m,v,y=h,_=p,x=h,b=p,C=f,S=f,E=a.apply(this,arguments)/2,k=E>Hd&&(r?+r.apply(this,arguments):Nd(c*c+d*d)),L=Id(Td(d-c)/2,+n.apply(this,arguments)),A=L,w=L;if(k>Hd){var D=zd(k/c*Od(E)),T=zd(k/d*Od(E));(C-=2*D)>Hd?(x+=D*=g?1:-1,b-=D):(C=0,x=b=(h+p)/2),(S-=2*T)>Hd?(y+=T*=g?1:-1,_-=T):(S=0,y=_=(h+p)/2)}var M=d*Pd(y),P=d*Od(y),F=c*Pd(b),I=c*Od(b);if(L>Hd){var O,N=d*Pd(_),H=d*Od(_),R=c*Pd(x),V=c*Od(x);if(f<Rd&&(O=nh(M,P,R,V,N,H,F,I))){var B=M-O[0],W=P-O[1],z=N-O[0],U=H-O[1],j=1/Od(Wd((B*z+W*U)/(Nd(B*B+W*W)*Nd(z*z+U*U)))/2),Y=Nd(O[0]*O[0]+O[1]*O[1]);A=Id(L,(c-Y)/(j-1)),w=Id(L,(d-Y)/(j+1))}}S>Hd?w>Hd?(m=rh(R,V,M,P,d,w,g),v=rh(N,H,F,I,d,w,g),s.moveTo(m.cx+m.x01,m.cy+m.y01),w<L?s.arc(m.cx,m.cy,w,Md(m.y01,m.x01),Md(v.y01,v.x01),!g):(s.arc(m.cx,m.cy,w,Md(m.y01,m.x01),Md(m.y11,m.x11),!g),s.arc(0,0,d,Md(m.cy+m.y11,m.cx+m.x11),Md(v.cy+v.y11,v.cx+v.x11),!g),s.arc(v.cx,v.cy,w,Md(v.y11,v.x11),Md(v.y01,v.x01),!g))):(s.moveTo(M,P),s.arc(0,0,d,y,_,!g)):s.moveTo(M,P),c>Hd&&C>Hd?A>Hd?(m=rh(F,I,N,H,c,-A,g),v=rh(M,P,R,V,c,-A,g),s.lineTo(m.cx+m.x01,m.cy+m.y01),A<L?s.arc(m.cx,m.cy,A,Md(m.y01,m.x01),Md(v.y01,v.x01),!g):(s.arc(m.cx,m.cy,A,Md(m.y01,m.x01),Md(m.y11,m.x11),!g),s.arc(0,0,c,Md(m.cy+m.y11,m.cx+m.x11),Md(v.cy+v.y11,v.cx+v.x11),g),s.arc(v.cx,v.cy,A,Md(v.y11,v.x11),Md(v.y01,v.x01),!g))):s.arc(0,0,c,b,x,g):s.lineTo(F,I)}else s.moveTo(0,0);if(s.closePath(),l)return s=null,l+""||null}return l.centroid=function(){var n=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,r=(+i.apply(this,arguments)+ +o.apply(this,arguments))/2-Rd/2;return[Pd(r)*n,Od(r)*n]},l.innerRadius=function(t){return arguments.length?(e="function"==typeof t?t:Ad(+t),l):e},l.outerRadius=function(e){return arguments.length?(t="function"==typeof e?e:Ad(+e),l):t},l.cornerRadius=function(e){return arguments.length?(n="function"==typeof e?e:Ad(+e),l):n},l.padRadius=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:Ad(+e),l):r},l.startAngle=function(e){return arguments.length?(i="function"==typeof e?e:Ad(+e),l):i},l.endAngle=function(e){return arguments.length?(o="function"==typeof e?e:Ad(+e),l):o},l.padAngle=function(e){return arguments.length?(a="function"==typeof e?e:Ad(+e),l):a},l.context=function(e){return arguments.length?(s=null==e?null:e,l):s},l}var oh=function(e){var t,n=e.color,r=e.href,i=e.theme;return{root:{fill:n,cursor:r?"pointer":"default",stroke:Tn.white,outline:"transparent",selectors:{"::-moz-focus-inner":{border:"0"}}},focusRing:{stroke:i.semanticColors.focusBorder,strokeWidth:4},insideDonutString:{fontSize:Ln.large,fill:i.semanticColors.bodyText,selectors:(t={},t[Fn]={fill:"rgb(179, 179, 179)"},t)}}},ah=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={},t.currentRef=s.createRef(),t._hoverOff=function(){t.props.hoverLeaveCallback()},t._onBlur=function(){t.props.onBlurCallback()},t}return r(t,e),t.getDerivedStateFromProps=function(e){return sh(e),null},t.prototype.updateChart=function(e){sh(e)},t.prototype.render=function(){var e,t=this.props,n=t.arc,r=t.href,i=t.focusedArcId,o=le()(oh,{color:this.props.color,href:r,theme:this.props.theme}),a=this.props.uniqText+this.props.data.data.legend.replace(/\s+/,"")+this.props.data.data.data,l=this.props.activeArc===this.props.data.data.legend||""===this.props.activeArc?1:.1;return s.createElement("g",{ref:this.currentRef},!!i&&i===a&&s.createElement("path",{id:a+"focusRing",d:n(this.props.focusData),className:o.focusRing}),s.createElement("path",{id:a,d:n(this.props.data),onFocus:this._onFocus.bind(this,this.props.data.data,a),className:o.root,"data-is-focusable":!0,onMouseOver:this._hoverOn.bind(this,this.props.data.data),onMouseMove:this._hoverOn.bind(this,this.props.data.data),onMouseLeave:this._hoverOff,onBlur:this._onBlur,opacity:l,onClick:r?this._redirectToUrl.bind(this,r):null===(e=this.props.data)||void 0===e?void 0:e.data.onClick,"aria-labelledby":this.props.calloutId,role:"text"}),s.createElement("text",{textAnchor:"middle",className:o.insideDonutString,y:5},this.props.valueInsideDonut))},t.prototype.componentDidUpdate=function(){var e,t,n,r=this.props.href;e=le()(oh,{color:this.props.color,href:r,theme:this.props.theme}).insideDonutString,t=2*this.props.innerRadius-5,n=0,function(e){return"string"==typeof e?new Vu([document.querySelectorAll(e)],[document.documentElement]):new Vu([null==e?[]:e],Ru)}("."+e).each((function(){for(var e=Bu(this),r=e.text().split(/\s+/).reverse(),i="",o=[],a=0,s=e.attr("y"),l=e.text(null).append("tspan").attr("id","WordBreakId-"+n+"-"+a).attr("x",0).attr("y",s).attr("dy",1.1*a+++"em");i=r.pop();)o.push(i),l.text(o.join(" ")+" "),l.node().getComputedTextLength()>t&&o.length>1&&(o.pop(),l.text(o.join(" ")+" "),o=[i],l=e.append("tspan").attr("id","WordBreakId-"+n+"-"+a).attr("x",0).attr("y",s).attr("dy",1.1*a+++"em").text(i));n+=1}))},t.prototype._onFocus=function(e,t){this.props.onFocusCallback(e,t,this.currentRef.current)},t.prototype._hoverOn=function(e,t){t.persist(),this.props.activeArc!==this.props.data.data.legend&&""!==this.props.activeArc||this.props.hoverOnCallback(e,t)},t.prototype._redirectToUrl=function(e){e&&(window.location.href=e)},t.defaultProps={arc:ih()},t}(s.Component);function sh(e){e.arc.innerRadius(e.innerRadius),e.arc.outerRadius(e.outerRadius)}var lh=function(e){function t(t){var n=e.call(this,t)||this;return n.arcGenerator=function(e,t,r,i){var o=e&&e.data&&e.data.color;return s.createElement(ah,{key:t,data:e,focusData:r,innerRadius:n.props.innerRadius,outerRadius:n.props.outerRadius,color:o,onFocusCallback:n._focusCallback,hoverOnCallback:n._hoverCallback,onBlurCallback:n.props.onBlurCallback,hoverLeaveCallback:n.props.hoverLeaveCallback,uniqText:n.props.uniqText,activeArc:n.props.activeArc,href:i,calloutId:n.props.calloutId,valueInsideDonut:n.props.valueInsideDonut,theme:n.props.theme,focusedArcId:n.props.focusedArcId})},n._focusCallback=function(e,t,r){n.props.onFocusCallback(e,t,r)},n._hoverCallback=n._hoverCallback.bind(n),n._pieForFocusRing=Ud().sort(null).value((function(e){return e.data})).padAngle(0),n}return r(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.pie,r=t.data,i=this._pieForFocusRing(r),o=n(r),a="translate("+this.props.width/2+", "+this.props.height/2+")";return s.createElement("g",{transform:a},o.map((function(t,n){return e.arcGenerator(t,n,i[n],e.props.href)})))},t.prototype._hoverCallback=function(e,t){this.props.hoverOnCallback(e,t)},t.defaultProps={pie:Ud().sort(null).value((function(e){return e.data})).padAngle(.02)},t}(s.Component),uh=le(),ch=function(e){function t(t){var n=e.call(this,t)||this;return n._closeCallout=function(){n.setState({showHover:!1})},n._focusCallback=function(e,t,r){n._currentHoverElement=r,n.setState({showHover:!0,value:e.data.toString(),legend:e.legend,activeLegend:e.legend,color:e.color,selectedLegend:e.legend,xCalloutValue:e.xAxisCalloutData,yCalloutValue:e.yAxisCalloutData,focusedArcId:t,dataPointCalloutProps:e,callOutAccessibilityData:e.callOutAccessibilityData})},n._hoverCallback=function(e,t){n._calloutAnchorPoint!==e&&(n._calloutAnchorPoint=e,n._currentHoverElement=t,n.setState({showHover:!0,value:e.data.toString(),selectedLegend:e.legend,legend:e.legend,color:e.color,xCalloutValue:e.xAxisCalloutData,yCalloutValue:e.yAxisCalloutData,activeLegend:e.legend,dataPointCalloutProps:e,callOutAccessibilityData:e.callOutAccessibilityData}))},n._onBlur=function(){n.setState({showHover:!1,focusedArcId:"",activeLegend:"",selectedLegend:"none"})},n._handleChartMouseLeave=function(){n._calloutAnchorPoint=null,n.setState({showHover:!1})},n.state={showHover:!1,value:"",legend:"",_width:n.props.width||200,_height:n.props.height||200,activeLegend:"",color:"",isLegendSelected:!1,xCalloutValue:"",yCalloutValue:"",selectedLegend:"none",focusedArcId:""},n._hoverCallback=n._hoverCallback.bind(n),n._focusCallback=n._focusCallback.bind(n),n._hoverLeave=n._hoverLeave.bind(n),n._calloutId=pe("callout"),n._uniqText=pe("_Pie_"),n}return r(t,e),t.getDerivedStateFromProps=function(e,t){if(e.height&&e.height!==t._height&&e.width!==t._width){var n=e.height/5;return{_width:e.width,_height:e.height-n}}return null},t.prototype.componentDidMount=function(){var e=this._rootElem&&this._rootElem.offsetHeight/5;this.setState({_width:this._rootElem&&this._rootElem.offsetWidth,_height:this._rootElem&&this._rootElem.offsetHeight-e})},t.prototype.render=function(){var e,t=this,n=this.props,r=n.data,o=n.hideLegend,a=void 0!==o&&o,l=this.props.theme.palette;this._classNames=uh(this.props.styles,{theme:this.props.theme,width:this.state._width,height:this.state._height,color:this.state.color,className:this.props.className});var u=this._createLegends(r,l),c=Math.min(this.state._width,this.state._height)/2,d=r&&(null===(e=r.chartData)||void 0===e?void 0:e.filter((function(e){return e.data>0}))),h=this._valueInsideDonut(this.props.valueInsideDonut,d);return s.createElement("div",{className:this._classNames.root,ref:function(e){return t._rootElem=e},onMouseLeave:this._handleChartMouseLeave},s.createElement(Pc,{direction:oc.horizontal,isCircularNavigation:!0},s.createElement("div",null,s.createElement("svg",{className:this._classNames.chart,"aria-label":null==r?void 0:r.chartTitle,ref:function(e){return t._setViewBox(e)}},s.createElement(lh,{width:this.state._width,height:this.state._height,outerRadius:c,innerRadius:this.props.innerRadius,data:d,onFocusCallback:this._focusCallback,hoverOnCallback:this._hoverCallback,hoverLeaveCallback:this._hoverLeave,uniqText:this._uniqText,onBlurCallback:this._onBlur,activeArc:this.state.activeLegend,focusedArcId:this.state.focusedArcId||"",href:this.props.href,calloutId:this._calloutId,valueInsideDonut:this._toLocaleString(h),theme:this.props.theme})))),s.createElement(gi,i({target:this._currentHoverElement,alignTargetEdge:!0,isBeakVisible:!1,directionalHint:3,gapSpace:15,hidden:!(!this.props.hideTooltip&&this.state.showHover),id:this._calloutId,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0},this.props.calloutProps,rc(this.state.callOutAccessibilityData,"text",!1)),this.props.onRenderCalloutPerDataPoint?this.props.onRenderCalloutPerDataPoint(this.state.dataPointCalloutProps):s.createElement(uc,{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})),!a&&s.createElement("div",{className:this._classNames.legendContainer},u))},t.prototype._setViewBox=function(e){var t,n;if(null!==e){var r="0 0 "+(e.parentElement?e.parentElement.clientWidth:this.state._width)+" "+(e.parentElement&&(null===(t=e.parentElement)||void 0===t?void 0:t.offsetHeight)>this.state._height?null===(n=e.parentElement)||void 0===n?void 0:n.offsetHeight:this.state._height);e.setAttribute("viewBox",r)}},t.prototype._createLegends=function(e,t){var n=this,r=[t.blueLight,t.blue,t.blueMid,t.red,t.black],o=e&&e.chartData.map((function(e,t){var i=e.color?e.color:r[Math.floor(4*Math.random()+1)];return{title:e.legend,color:i,action:function(){n.state.isLegendSelected?n.state.activeLegend!==e.legend||""===n.state.activeLegend?n.setState({activeLegend:e.legend,isLegendSelected:!0}):n.setState({activeLegend:e.legend}):n.setState({activeLegend:e.legend,isLegendSelected:!0})},hoverAction:function(){n.state.activeLegend!==e.legend||n.state.activeLegend,n.setState({activeLegend:e.legend})},onMouseOutAction:function(){n.setState({showHover:!1,activeLegend:""})}}}));return s.createElement(Ld,i({legends:o,centerLegends:!0,overflowProps:this.props.legendsOverflowProps,focusZonePropsInHoverCard:this.props.focusZonePropsForLegendsInHoverCard,overflowText:this.props.legendsOverflowText,selectedLegend:this.state.selectedLegend},this.props.legendProps))},t.prototype._hoverLeave=function(){this.setState({activeLegend:"",selectedLegend:"none",focusedArcId:""})},t.prototype._valueInsideDonut=function(e,t){var n=this;if(void 0===e||""===this.state.activeLegend||this.state.showHover)return e;var r=e;return t.map((function(e,t){e.legend===n.state.activeLegend&&(r=e.yAxisCalloutData?e.yAxisCalloutData:e.data)})),r},t.prototype._toLocaleString=function(e){var t=ic(e,this.props.culture);return t?null==t?void 0:t.toString():e},t.defaultProps={innerRadius:0},t}(s.Component),dh=b(ch,(function(e){var t=e.className,n=e.width,r=e.height;return{root:[e.theme.fonts.medium,"ms-DonutChart",{alignItems:"center",display:"flex",flexDirection:"column",width:"100%",height:"100%"},t],chart:{width:n,height:r,boxSizing:"content-box",overflow:"visible",alignmentAdjust:"center"},legendContainer:{paddingTop:"16px",width:n+"px"}}})),hh=le(),ph=function(e){function t(t){var n,r,o,a,l,u,c,d,h,p,f,g,m=e.call(this,t)||this;return m.minLegendContainerHeight=32,m._isRtl=ie(),m._multiValueCallout=function(e){var t=m._yValueHoverSubCountsExists(e.YValueHover);return s.createElement("div",{className:m._classNames.calloutContentRoot},s.createElement("div",{className:m._classNames.calloutDateTimeContainer,style:t?{marginBottom:"11px"}:{}},s.createElement("div",i({className:m._classNames.calloutContentX},rc(e.xAxisCalloutAccessibilityData,"text",!1)),ic(e.hoverXValue,m.props.culture))),s.createElement("div",{className:m._classNames.calloutInfoContainer,style:t?{display:"flex"}:{}},e.YValueHover&&e.YValueHover.map((function(e,n,r){var o=n+1===r.length,a=e.shouldDrawBorderBottom,l=void 0!==a&&a;return s.createElement("div",i({},rc(e.callOutAccessibilityData,"text",!1),{key:"callout-content-"+n,style:i(t?{display:"inline-block"}:{},l&&{borderBottom:"1px solid "+m.props.theme.semanticColors.menuDivider,paddingBottom:"10px"})}),m._getCalloutContent(e,n,t,o))})),!!e.descriptionMessage&&s.createElement("div",{className:m._classNames.descriptionMessage},e.descriptionMessage)))},m._getData=function(e,t){m.props.getGraphData&&m.props.getGraphData(e,t,m.state.containerHeight-m.state._removalValueForTextTuncate,m.state.containerWidth,m.xAxisElement)},m.state={containerHeight:0,containerWidth:0,_width:m.props.width||600,_height:m.props.height||350,_removalValueForTextTuncate:0,isRemoveValCalculated:!0},m.idForGraph=pe("chart_"),m.margins={top:null!==(r=null===(n=m.props.margins)||void 0===n?void 0:n.top)&&void 0!==r?r:20,bottom:null!==(a=null===(o=m.props.margins)||void 0===o?void 0:o.bottom)&&void 0!==a?a:35,right:m._isRtl?null!==(u=null===(l=m.props.margins)||void 0===l?void 0:l.left)&&void 0!==u?u:40:null!==(d=null===(c=m.props.margins)||void 0===c?void 0:c.right)&&void 0!==d?d:20,left:m._isRtl?null!==(p=null===(h=m.props.margins)||void 0===h?void 0:h.right)&&void 0!==p?p:20:null!==(g=null===(f=m.props.margins)||void 0===f?void 0:f.left)&&void 0!==g?g:40},m}return r(t,e),t.prototype.componentDidMount=function(){this._fitParentContainer()},t.prototype.componentWillUnmount=function(){cancelAnimationFrame(this._reqID)},t.prototype.componentDidUpdate=function(e){if(e.height===this.props.height&&e.width===this.props.width||this._fitParentContainer(),!this.props.wrapXAxisLables&&this.props.rotateXAxisLables&&this.props.xAxisType===Uu.StringAxis){var t=function(e){var t=e.node,n=e.xAxis;if(null!==t&&null!==n){var r=0,i=[];Bu(t).call(n).selectAll(".tick").each((function(){var e=this.getAttribute("transform");if(-1===(null==e?void 0:e.indexOf("rotate"))){var t=e.substring(e.indexOf("(")+1,e.indexOf(")")).split(",");2===t.length&&(i.push(t[0]),this.setAttribute("transform","translate("+t[0]+",0)rotate(-45)"))}var n=this.getBoundingClientRect(),o=n&&n.height;o>r&&(r=o)}));var o=0;return Bu(t).call(n).selectAll(".tick").each((function(){i.length>o&&(this.setAttribute("transform","translate("+i[o]+","+r/2+")rotate(-45)"),o+=1)})),Math.floor(r/1.414)}}({node:this.xAxisElement,xAxis:this._xScale});this.state.isRemoveValCalculated&&this.state._removalValueForTextTuncate!==t+this.margins.bottom&&t>0&&this.setState({_removalValueForTextTuncate:t+this.margins.bottom,isRemoveValCalculated:!1})}},t.prototype.render=function(){var e=this,t=this.props,n=t.calloutProps,r=t.points,o=t.chartType,a=t.chartHoverProps,l=t.svgFocusZoneProps,u=t.svgProps,c=t.culture;this.props.parentRef&&this._fitParentContainer(),this.props.getmargins&&this.props.getmargins(this.margins);var d,h,p={domainNRangeValues:$u(r,this.margins,this.state.containerWidth,o,this._isRtl,this.props.xAxisType,this.props.barwidth,this.props.tickValues),xAxisElement:this.xAxisElement,showRoundOffXTickValues:!0,xAxisCount:this.props.xAxisTickCount,xAxistickSize:this.props.xAxistickSize,tickPadding:this.props.tickPadding||this.props.showXAxisLablesTooltip?5:10,xAxisPadding:this.props.xAxisPadding},f={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:Qu(r,o),yAxisPadding:this.props.yAxisPadding};switch(this.props.xAxisType){case Uu.NumericAxis:d=qu(p,c);break;case Uu.DateAxis:d=function(e,t){var n=e.domainNRangeValues,r=e.xAxisElement,i=e.tickPadding,o=void 0===i?6:i,a=e.xAxistickSize,s=void 0===a?6:a,l=e.xAxisCount,u=void 0===l?6:l,c=Dl().domain([n.dStartValue,n.dEndValue]).range([n.rStartValue,n.rEndValue]),d=Li(c).tickSize(s).tickPadding(o).ticks(u);return t.tickValues&&d.tickValues(t.tickValues),t.tickFormat&&d.tickFormat(ds(t.tickFormat)),r&&Bu(r).call(d).selectAll("text").attr("aria-hidden","true"),c}(p,this.props.tickParams);break;case Uu.StringAxis:d=function(e,t,n,r){var i=e.domainNRangeValues,o=e.xAxisCount,a=void 0===o?6:o,s=e.xAxistickSize,l=void 0===s?6:s,u=e.tickPadding,c=void 0===u?10:u,d=e.xAxisPadding,h=void 0===d?.1:d,p=Ji().domain(n).range([i.rStartValue,i.rEndValue]).padding(h),f=Li(p).tickSize(l).tickPadding(c).ticks(a).tickFormat((function(e,t){return ic(n[t],r)}));return e.xAxisElement&&Bu(e.xAxisElement).call(f).selectAll("text").attr("aria-hidden","true"),p}(p,this.props.tickParams,this.props.datasetForXAxisDomain,c);break;default:d=qu(p,c)}if(this._xScale=d,this.props.wrapXAxisLables||this.props.showXAxisLablesTooltip){var g={node:this.xAxisElement,xAxis:d,showXAxisLablesTooltip:this.props.showXAxisLablesTooltip||!1,noOfCharsToTruncate:this.props.noOfCharsToTruncate||4},m=d&&function(e){var t=e.node,n=e.xAxis,r=e.noOfCharsToTruncate,i=e.showXAxisLablesTooltip;if(null!==t){var o=Bu(t).call(n),a=0,s=[];return o.selectAll(".tick text").each((function(){var e=Bu(this),t=e.text(),n=e.text().slice(0,r)+"...",l=e.text().length,u=e.text().split(/\s+/).reverse();s.push(u.length);var c="",d=[],h=0,p=e.attr("y"),f=parseFloat(e.attr("dy")),g=e.text(null).append("tspan").attr("x",0).attr("y",p).attr("id","BaseSpan").attr("dy",f+"em").attr("data-",t);if(i&&l>r)g=e.append("tspan").attr("id","showDots").attr("x",0).attr("y",p).attr("dy",1.1*++h+f+"em").text(n);else if(i&&l<=r)g=e.append("tspan").attr("id","LessLength").attr("x",0).attr("y",p).attr("dy",1.1*++h+f+"em").text(t);else{for(;c=u.pop();)d.push(c),g.text(d.join(" ")),g.node().getComputedTextLength()>10&&d.length>1&&(d.pop(),g.text(d.join(" ")),d=[c],g=e.append("tspan").attr("id","WordBreakId").attr("x",0).attr("y",p).attr("dy",1.1*++h+f+"em").text(c));var m=Math.max.apply(Math,s),v=12;o.selectAll("text").each((function(){var e=document.getElementById("WordBreakId"),t=e&&e.getBoundingClientRect(),n=t&&t.height;n>v&&(v=n)}));var y=4;m<=2?y=1:m>2&&m<=6?y=2:m>6&&m<=9&&(y=3),a=(m-y)*v}})),a>0?a:0}}(g);this.state.isRemoveValCalculated&&this.state._removalValueForTextTuncate!==m&&this.setState({_removalValueForTextTuncate:m,isRemoveValCalculated:!1})}var v={yAxisDomainValues:[]};h=this.props.yAxisType&&this.props.yAxisType===ju.StringAxis?function(e,t,n){var r=e.containerHeight,i=e.tickPadding,o=void 0===i?12:i,a=e.margins,s=e.yAxisTickFormat,l=e.yAxisElement,u=e.yAxisPadding,c=void 0===u?0:u,d=Ji().domain(t).range([r-a.bottom,a.top]).padding(c),h=(n?ki(d):Ai(d)).tickPadding(o).tickValues(t).tickSize(0);return s&&h.tickFormat(s),l&&Bu(l).call(h).selectAll("text"),d}(f,this.props.stringDatasetForYAxisDomain,this._isRtl):function(e,t,n){var r=e.yMinMaxValues,i=void 0===r?{startValue:0,endValue:0}:r,o=e.yAxisElement,a=void 0===o?null:o,s=e.yMaxValue,l=void 0===s?0:s,u=e.yMinValue,c=void 0===u?0:u,d=e.containerHeight,h=e.containerWidth,p=e.margins,f=e.tickPadding,g=void 0===f?12:f,m=e.maxOfYVal,v=void 0===m?0:m,y=e.yAxisTickFormat,_=e.yAxisTickCount,x=void 0===_?4:_,b=e.eventAnnotationProps,C=e.eventLabelHeight,S=v||i.endValue,E=S>l?S:l,k=i.startValue<c?0:c,L=function(e,t,n){for(var r=Math.ceil((e-t)/n),i=[t,t+r];i[i.length-1]<e;)i.push(i[i.length-1]+r);return i}(E,k,x),A=ga().domain([k,L[L.length-1]]).range([d-p.bottom,p.top+(b?C:0)]),w=(t?ki(A):Ai(A)).tickPadding(g).tickValues(L).tickSizeInner(-(h-p.left-p.right));return y?w.tickFormat(y):w.tickFormat(ca(".2~s")),a&&Bu(a).call(w).selectAll("text").attr("aria-hidden","true"),n.yAxisDomainValues=L,A}(f,this._isRtl,v),this.props.getAxisData&&this.props.getAxisData(v),this._getData(d,h),this._classNames=hh(this.props.styles,{theme:this.props.theme,width:this.state._width,height:this.state._height,className:this.props.className,isRtl:this._isRtl});var y,_={width:this.state.containerWidth,height:this.state.containerHeight},x=this.props.children(i(i({},this.state),{xScale:d,yScale:h}));return y=this.props.focusZoneDirection===oc.vertical||this.props.focusZoneDirection?this.props.focusZoneDirection:oc.horizontal,s.createElement("div",{id:this.idForGraph,className:this._classNames.root,role:"presentation",ref:function(t){return e.chartContainer=t},onMouseLeave:this.props.onChartMouseLeave},s.createElement(Pc,i({direction:y},l),s.createElement("svg",i({width:_.width,height:_.height,"aria-label":this.props.chartTitle,style:{display:"block"}},u),s.createElement("g",{ref:function(t){e.xAxisElement=t},id:"xAxisGElement"+this.idForGraph,transform:"translate(0, "+(_.height-this.margins.bottom-this.state._removalValueForTextTuncate)+")",className:this._classNames.xAxis}),s.createElement("g",{ref:function(t){e.yAxisElement=t},id:"yAxisGElement"+this.idForGraph,transform:"translate("+(this._isRtl?_.width-this.margins.right:this.margins.left)+", 0)",className:this._classNames.yAxis}),x)),!this.props.hideLegend&&s.createElement("div",{ref:function(t){return e.legendContainer=t},className:this._classNames.legendContainer},this.props.legendBars),!this.props.hideTooltip&&n.isCalloutVisible&&s.createElement(gi,i({},n),this.props.customizedCallout&&this.props.customizedCallout,!this.props.customizedCallout&&this.props.isCalloutForStack&&this._multiValueCallout(n),!this.props.customizedCallout&&!this.props.isCalloutForStack&&s.createElement(uc,i({XValue:n.XValue,Legend:n.legend,YValue:n.YValue,color:n.color,culture:this.props.culture},a))))},t.prototype._yValueHoverSubCountsExists=function(e){return!!e&&e.some((function(e){return e.yAxisCalloutData&&"string"!=typeof e.yAxisCalloutData}))},t.prototype._getCalloutContent=function(e,t,n,r){var i=r?{}:{marginRight:"16px"},o=void 0!==e.index&&-1!==e.index,a=hh(this.props.styles,{theme:this.props.theme,width:this.state._width,height:this.state._height,className:this.props.className,isRtl:this._isRtl,lineColor:e.color,toDrawShape:o}),l=this.props.culture,u=ic(e.y,l);if(e.yAxisCalloutData&&"string"!=typeof e.yAxisCalloutData){var c=e.yAxisCalloutData;return s.createElement("div",{style:i},s.createElement("div",{className:"ms-fontWeight-semibold",style:{fontSize:"12pt"}},e.legend," (",u,")"),Object.keys(c).map((function(e){return s.createElement("div",{key:e,className:a.calloutBlockContainer},s.createElement("div",{className:a.calloutlegendText}," ",ic(e,l)),s.createElement("div",{className:a.calloutContentY},ic(c[e],l)))})))}return s.createElement("div",{style:n?i:{}},n&&s.createElement("div",{className:"ms-fontWeight-semibold",style:{fontSize:"12pt"}},e.legend," (",u,")"),s.createElement("div",{id:t+"_"+e.y,className:a.calloutBlockContainer},o&&s.createElement(Sd,{svgProps:{className:a.shapeStyles},pathProps:{fill:e.color},shape:Ju[e.index%Object.keys(nc).length]}),s.createElement("div",null,s.createElement("div",{className:a.calloutlegendText}," ",e.legend),s.createElement("div",{className:a.calloutContentY},ic(e.yAxisCalloutData?e.yAxisCalloutData:e.y||e.data,l)))))},t.prototype._fitParentContainer=function(){var e=this,t=this.state,n=t.containerWidth,r=t.containerHeight;this._reqID=requestAnimationFrame((function(){var t;if(e.props.hideLegend)t=0;else{var i=getComputedStyle(e.legendContainer);t=(e.legendContainer.getBoundingClientRect().height||e.minLegendContainerHeight)+parseFloat(i.marginTop||"0")+parseFloat(i.marginBottom||"0")}var o=e.props.parentRef?e.props.parentRef:e.chartContainer,a=o.getBoundingClientRect().width,s=o.getBoundingClientRect().height>t?o.getBoundingClientRect().height:350;(n!==a||r!==s-t)&&e.setState({containerWidth:a,containerHeight:s-t})}))},t}(s.Component),fh=function(){var e,t=c();return!!(null===(e=null==t?void 0:t.navigator)||void 0===e?void 0:e.userAgent)&&t.navigator.userAgent.indexOf("rv:11.0")>-1}(),gh=b(ph,(function(e){var t,n,r,o,a,s,l,u,c=e.className,d=e.theme,h=e.isRtl,p=e.shouldHighlight,f=e.href,g=e.lineColor,m=void 0===g?"transparent":g,v=e.toDrawShape,y=d.fonts;return{root:[d.fonts.medium,{display:"flex",width:"100%",height:"100%",flexDirection:"column",overflow:"hidden"},c],xAxis:{selectors:{text:[d.fonts.tiny,{fill:d.semanticColors.bodyText,fontWeight:"600",selectors:(t={},t[Fn]={fill:"rgb(179, 179, 179)"},t)}],line:{opacity:.2,stroke:d.semanticColors.bodyText,width:"1px",selectors:(n={},n[Fn]={opacity:.1,stroke:"rgb(179, 179, 179)"},n)},path:{display:"none"}}},yAxis:{selectors:{text:[d.fonts.tiny,{fill:d.semanticColors.bodyText,fontWeight:"600",selectors:(r={},r[Fn]={fill:"rgb(179, 179, 179)"},r)}],path:{display:"none"},line:{opacity:.2,stroke:d.semanticColors.bodyText,selectors:(o={},o[Fn]={opacity:.1,stroke:"rgb(179, 179, 179)"},o)},g:[h&&!fh&&{textAnchor:"end"}]}},opacityChangeOnHover:{opacity:p?"":"0.1",cursor:f?"pointer":"default"},legendContainer:[{marginTop:"8px",marginLeft:"20px"}],calloutContentRoot:[{display:"grid",overflow:"hidden",padding:"11px 16px 10px 16px",backgroundColor:d.semanticColors.bodyBackground,backgroundBlendMode:"normal, luminosity"}],calloutDateTimeContainer:{display:"flex",flexDirection:"row",justifyContent:"space-between"},calloutContentX:[i(i({},y.small),{lineHeight:"16px",opacity:"0.8",color:d.semanticColors.bodySubtext})],calloutBlockContainer:[d.fonts.mediumPlus,{marginTop:"13px",color:d.semanticColors.bodyText},!v&&{selectors:(a={},a[Pn]={forcedColorAdjust:"none"},a),borderLeft:"4px solid "+m,paddingLeft:"8px"},v&&{display:"flex"}],shapeStyles:{marginRight:"8px"},calloutlegendText:i(i({},y.small),{lineHeight:"16px",selectors:(s={},s[Fn]={color:"rgb(255, 255, 255)"},s),color:d.semanticColors.bodySubtext}),calloutContentY:[i(i({},y.mediumPlus),{fontWeight:"bold",lineHeight:"22px",selectors:(l={},l[Fn]={color:"rgb(255, 255, 255)"},l)})],descriptionMessage:[d.fonts.small,{selectors:(u={},u[Fn]={color:"rgb(255, 255, 255)"},u),color:d.semanticColors.bodyText,marginTop:"10px",paddingTop:"10px",borderTop:"1px solid "+d.semanticColors.menuDivider}]}})),mh=Yn((function(e){return Yn((function(t){var n=Yn((function(e){return function(n){return t(n,e)}}));return function(r,i){return e(r,i?n(i):t)}}))}));function vh(e,t){return mh(e)(t)}var yh={top:-1,bottom:-1,left:-1,right:-1,width:0,height:0},_h=function(e){return e.getBoundingClientRect()},xh=_h,bh=_h,Ch=function(e){function t(t){var n=e.call(this,t)||this;return n._root=s.createRef(),n._surface=s.createRef(),n._pageRefs={},n._getDerivedStateFromProps=function(e,t){return e.items!==n.props.items||e.renderCount!==n.props.renderCount||e.startIndex!==n.props.startIndex||e.version!==n.props.version?(n._resetRequiredWindows(),n._requiredRect=null,n._measureVersion++,n._invalidatePageCache(),n._updatePages(e,t)):t},n._onRenderRoot=function(e){var t=e.rootRef,n=e.surfaceElement,r=e.divProps;return s.createElement("div",i({ref:t},r),n)},n._onRenderSurface=function(e){var t=e.surfaceRef,n=e.pageElements,r=e.divProps;return s.createElement("div",i({ref:t},r),n)},n._onRenderPage=function(e,t){for(var r=n.props,a=r.onRenderCell,l=r.role,u=e.page,c=u.items,d=void 0===c?[]:c,h=u.startIndex,p=o(e,["page"]),f=void 0===l?"listitem":"presentation",g=[],m=0;m<d.length;m++){var v=h+m,y=d[m],_=n.props.getKey?n.props.getKey(y,v):y&&y.key;null==_&&(_=v),g.push(s.createElement("div",{role:f,className:"ms-List-cell",key:_,"data-list-index":v,"data-automationid":"ListCell"},a&&a(y,v,n.props.ignoreScrollingState?void 0:n.state.isScrolling)))}return s.createElement("div",i({},p),g)},hc(n),n.state={pages:[],isScrolling:!1,getDerivedStateFromProps:n._getDerivedStateFromProps},n._async=new Et(n),n._events=new Hc(n),n._estimatedPageHeight=0,n._totalEstimates=0,n._requiredWindowsAhead=0,n._requiredWindowsBehind=0,n._measureVersion=0,n._onAsyncScroll=n._async.debounce(n._onAsyncScroll,100,{leading:!1,maxWait:500}),n._onAsyncIdle=n._async.debounce(n._onAsyncIdle,200,{leading:!1}),n._onAsyncResize=n._async.debounce(n._onAsyncResize,16,{leading:!1}),n._onScrollingDone=n._async.debounce(n._onScrollingDone,500,{leading:!1}),n._cachedPageHeights={},n._estimatedPageHeight=0,n._focusedIndex=-1,n._pageCache={},n}return r(t,e),t.getDerivedStateFromProps=function(e,t){return t.getDerivedStateFromProps(e,t)},Object.defineProperty(t.prototype,"pageRefs",{get:function(){return this._pageRefs},enumerable:!1,configurable:!0}),t.prototype.scrollToIndex=function(e,t,n){void 0===n&&(n=0);for(var r=this.props.startIndex,i=r+this._getRenderCount(),o=this._allowedRect,a=0,s=1,l=r;l<i;l+=s){var u=this._getPageSpecification(l,o),c=u.height;if(s=u.itemCount,l<=e&&l+s>e){if(t&&this._scrollElement){for(var d=bh(this._scrollElement),h={top:this._scrollElement.scrollTop,bottom:this._scrollElement.scrollTop+d.height},p=e-l,f=0;f<p;++f)a+=t(l+f);var g=a+t(e);switch(n){case 1:return void(this._scrollElement.scrollTop=a);case 2:return void(this._scrollElement.scrollTop=g-d.height);case 3:return void(this._scrollElement.scrollTop=(a+g-d.height)/2)}if(a>=h.top&&g<=h.bottom)return;a<h.top||g>h.bottom&&(a=g-d.height)}return void(this._scrollElement&&(this._scrollElement.scrollTop=a))}a+=c}},t.prototype.getStartItemIndexInView=function(e){for(var t=0,n=this.state.pages||[];t<n.length;t++){var r=n[t];if(!r.isSpacer&&(this._scrollTop||0)>=r.top&&(this._scrollTop||0)<=r.top+r.height){if(!e){var i=Math.floor(r.height/r.itemCount);return r.startIndex+Math.floor((this._scrollTop-r.top)/i)}for(var o=0,a=r.startIndex;a<r.startIndex+r.itemCount;a++){if(i=e(a),r.top+o<=this._scrollTop&&this._scrollTop<r.top+o+i)return a;o+=i}}}return 0},t.prototype.componentDidMount=function(){this.setState(this._updatePages(this.props,this.state)),this._measureVersion++,this._scrollElement=Ke(this._root.current),this._events.on(window,"resize",this._onAsyncResize),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._onAsyncScroll))},t.prototype.componentDidUpdate=function(e,t){var n=this.props,r=this.state;this.state.pagesVersion!==t.pagesVersion&&(n.getPageHeight?this._onAsyncIdle():this._updatePageMeasurements(r.pages)?(this._materializedRect=null,this._hasCompletedFirstRender?this._onAsyncScroll():(this._hasCompletedFirstRender=!0,this.setState(this._updatePages(n,r)))):this._onAsyncIdle(),n.onPagesUpdated&&n.onPagesUpdated(r.pages))},t.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose(),delete this._scrollElement},t.prototype.shouldComponentUpdate=function(e,t){var n=this.state.pages,r=t.pages,i=!1;if(!t.isScrolling&&this.state.isScrolling)return!0;if(e.version!==this.props.version)return!0;if(e.className!==this.props.className)return!0;if(e.items===this.props.items&&n.length===r.length)for(var o=0;o<n.length;o++){var a=n[o],s=r[o];if(a.key!==s.key||a.itemCount!==s.itemCount){i=!0;break}}else i=!0;return i},t.prototype.forceUpdate=function(){this._invalidatePageCache(),this._updateRenderRects(this.props,this.state,!0),this.setState(this._updatePages(this.props,this.state)),this._measureVersion++,e.prototype.forceUpdate.call(this)},t.prototype.getTotalListHeight=function(){return this._surfaceRect.height},t.prototype.render=function(){for(var e=this.props,t=e.className,n=e.role,r=void 0===n?"list":n,o=e.onRenderSurface,a=e.onRenderRoot,s=this.state.pages,l=void 0===s?[]:s,u=[],c=ze(this.props,We),d=0,h=l;d<h.length;d++){var p=h[d];u.push(this._renderPage(p))}var f=o?vh(o,this._onRenderSurface):this._onRenderSurface;return(a?vh(a,this._onRenderRoot):this._onRenderRoot)({rootRef:this._root,pages:l,surfaceElement:f({surfaceRef:this._surface,pages:l,pageElements:u,divProps:{role:"presentation",className:"ms-List-surface"}}),divProps:i(i({},c),{className:Ue("ms-List",t),role:u.length>0?r:void 0,"aria-label":u.length>0?c["aria-label"]:void 0})})},t.prototype._shouldVirtualize=function(e){void 0===e&&(e=this.props);var t=e.onShouldVirtualize;return!t||t(e)},t.prototype._invalidatePageCache=function(){this._pageCache={}},t.prototype._renderPage=function(e){var t,n=this,r=this.props.usePageCache;if(r&&(t=this._pageCache[e.key])&&t.pageElement)return t.pageElement;var i=this._getPageStyle(e),o=this.props.onRenderPage,a=(void 0===o?this._onRenderPage:o)({page:e,className:"ms-List-page",key:e.key,ref:function(t){n._pageRefs[e.key]=t},style:i,role:"presentation"},this._onRenderPage);return r&&0===e.startIndex&&(this._pageCache[e.key]={page:e,pageElement:a}),a},t.prototype._getPageStyle=function(e){var t=this.props.getPageStyle;return i(i({},t?t(e):{}),e.items?{}:{height:e.height})},t.prototype._onFocus=function(e){for(var t=e.target;t!==this._surface.current;){var n=t.getAttribute("data-list-index");if(n){this._focusedIndex=Number(n);break}t=ye(t)}},t.prototype._onScroll=function(){this.state.isScrolling||this.props.ignoreScrollingState||this.setState({isScrolling:!0}),this._resetRequiredWindows(),this._onScrollingDone()},t.prototype._resetRequiredWindows=function(){this._requiredWindowsAhead=0,this._requiredWindowsBehind=0},t.prototype._onAsyncScroll=function(){var e,t;this._updateRenderRects(this.props,this.state),this._materializedRect&&(e=this._requiredRect,t=this._materializedRect,e.top>=t.top&&e.left>=t.left&&e.bottom<=t.bottom&&e.right<=t.right)||this.setState(this._updatePages(this.props,this.state))},t.prototype._onAsyncIdle=function(){var e=this.props,t=e.renderedWindowsAhead,n=e.renderedWindowsBehind,r=this._requiredWindowsAhead,i=this._requiredWindowsBehind,o=Math.min(t,r+1),a=Math.min(n,i+1);o===r&&a===i||(this._requiredWindowsAhead=o,this._requiredWindowsBehind=a,this._updateRenderRects(this.props,this.state),this.setState(this._updatePages(this.props,this.state))),(t>o||n>a)&&this._onAsyncIdle()},t.prototype._onScrollingDone=function(){this.props.ignoreScrollingState||this.setState({isScrolling:!1})},t.prototype._onAsyncResize=function(){this.forceUpdate()},t.prototype._updatePages=function(e,t){this._requiredRect||this._updateRenderRects(e,t);var n=this._buildPages(e,t),r=t.pages;return this._notifyPageChanges(r,n.pages,this.props),i(i(i({},t),n),{pagesVersion:{}})},t.prototype._notifyPageChanges=function(e,t,n){var r=n.onPageAdded,i=n.onPageRemoved;if(r||i){for(var o={},a=0,s=e;a<s.length;a++)(c=s[a]).items&&(o[c.startIndex]=c);for(var l=0,u=t;l<u.length;l++){var c;(c=u[l]).items&&(o[c.startIndex]?delete o[c.startIndex]:this._onPageAdded(c))}for(var d in o)o.hasOwnProperty(d)&&this._onPageRemoved(o[d])}},t.prototype._updatePageMeasurements=function(e){var t=!1;if(!this._shouldVirtualize())return t;for(var n=0;n<e.length;n++){var r=e[n];r.items&&(t=this._measurePage(r)||t)}return t},t.prototype._measurePage=function(e){var t=!1,n=this._pageRefs[e.key],r=this._cachedPageHeights[e.startIndex];if(n&&this._shouldVirtualize()&&(!r||r.measureVersion!==this._measureVersion)){var i={width:n.clientWidth,height:n.clientHeight};(i.height||i.width)&&(t=e.height!==i.height,e.height=i.height,this._cachedPageHeights[e.startIndex]={height:i.height,measureVersion:this._measureVersion},this._estimatedPageHeight=Math.round((this._estimatedPageHeight*this._totalEstimates+i.height)/(this._totalEstimates+1)),this._totalEstimates++)}return t},t.prototype._onPageAdded=function(e){var t=this.props.onPageAdded;t&&t(e)},t.prototype._onPageRemoved=function(e){var t=this.props.onPageRemoved;t&&t(e)},t.prototype._buildPages=function(e,t){var n=e.renderCount,r=e.items,o=e.startIndex,a=e.getPageHeight;n=this._getRenderCount(e);for(var s=i({},yh),l=[],u=1,c=0,d=null,h=this._focusedIndex,p=o+n,f=this._shouldVirtualize(e),g=0===this._estimatedPageHeight&&!a,m=this._allowedRect,v=function(e){var n=y._getPageSpecification(e,m),i=n.height,a=n.data,v=n.key;u=n.itemCount;var _,x,b=c+i-1,C=ge(t.pages,(function(t){return!!t.items&&t.startIndex===e}))>-1,S=!m||b>=m.top&&c<=m.bottom,E=!y._requiredRect||b>=y._requiredRect.top&&c<=y._requiredRect.bottom;if(!g&&(E||S&&C)||!f||h>=e&&h<e+u||e===o){d&&(l.push(d),d=null);var k=Math.min(u,p-e),L=y._createPage(v,r.slice(e,e+k),e,void 0,void 0,a);L.top=c,L.height=i,y._visibleRect&&y._visibleRect.bottom&&(L.isVisible=b>=y._visibleRect.top&&c<=y._visibleRect.bottom),l.push(L),E&&y._allowedRect&&(_=s,x={top:c,bottom:b,height:i,left:m.left,right:m.right,width:m.width},_.top=x.top<_.top||-1===_.top?x.top:_.top,_.left=x.left<_.left||-1===_.left?x.left:_.left,_.bottom=x.bottom>_.bottom||-1===_.bottom?x.bottom:_.bottom,_.right=x.right>_.right||-1===_.right?x.right:_.right,_.width=_.right-_.left+1,_.height=_.bottom-_.top+1)}else d||(d=y._createPage("spacer-"+e,void 0,e,0,void 0,a,!0)),d.height=(d.height||0)+(b-c)+1,d.itemCount+=u;if(c+=b-c+1,g&&f)return"break"},y=this,_=o;_<p&&"break"!==v(_);_+=u);return d&&(d.key="spacer-end",l.push(d)),this._materializedRect=s,i(i({},t),{pages:l,measureVersion:this._measureVersion})},t.prototype._getPageSpecification=function(e,t){var n=this.props.getPageSpecification;if(n){var r=n(e,t),i=r.itemCount,o=void 0===i?this._getItemCountForPage(e,t):i,a=r.height;return{itemCount:o,height:void 0===a?this._getPageHeight(e,t,o):a,data:r.data,key:r.key}}return{itemCount:o=this._getItemCountForPage(e,t),height:this._getPageHeight(e,t,o)}},t.prototype._getPageHeight=function(e,t,n){if(this.props.getPageHeight)return this.props.getPageHeight(e,t,n);var r=this._cachedPageHeights[e];return r?r.height:this._estimatedPageHeight||30},t.prototype._getItemCountForPage=function(e,t){return(this.props.getItemCountForPage?this.props.getItemCountForPage(e,t):10)||10},t.prototype._createPage=function(e,t,n,r,i,o,a){void 0===n&&(n=-1),void 0===r&&(r=t?t.length:0),void 0===i&&(i={}),e=e||"page-"+n;var s=this._pageCache[e];return s&&s.page?s.page:{key:e,startIndex:n,itemCount:r,items:t,style:i,top:0,height:0,data:o,isSpacer:a||!1}},t.prototype._getRenderCount=function(e){var t=e||this.props,n=t.items,r=t.startIndex,i=t.renderCount;return void 0===i?n?n.length-r:0:i},t.prototype._updateRenderRects=function(e,t,n){var r=e.renderedWindowsAhead,o=e.renderedWindowsBehind,a=t.pages;if(this._shouldVirtualize(e)){var s=this._surfaceRect||i({},yh),l=this._scrollElement&&this._scrollElement.scrollHeight,u=this._scrollElement?this._scrollElement.scrollTop:0;this._surface.current&&(n||!a||!this._surfaceRect||!l||l!==this._scrollHeight||Math.abs(this._scrollTop-u)>this._estimatedPageHeight/3)&&(s=this._surfaceRect=xh(this._surface.current),this._scrollTop=u),!n&&l&&l===this._scrollHeight||this._measureVersion++,this._scrollHeight=l||0;var d=Math.max(0,-s.top),h=c(this._root.current),p={top:d,left:s.left,bottom:d+h.innerHeight,right:s.right,width:s.width,height:h.innerHeight};this._requiredRect=Sh(p,this._requiredWindowsBehind,this._requiredWindowsAhead),this._allowedRect=Sh(p,o,r),this._visibleRect=p}},t.defaultProps={startIndex:0,onRenderCell:function(e,t,n){return s.createElement(s.Fragment,null,e&&e.name||"")},renderedWindowsAhead:2,renderedWindowsBehind:2},t}(s.Component);function Sh(e,t,n){var r=e.top-t*e.height,i=e.height+(t+n)*e.height;return{top:r,bottom:r+i,height:i,left:e.left,right:e.right,width:e.width}}var Eh,kh=function(e){var t=s.useRef(null);s.useEffect((function(){if(t.current){var n=Bu(t.current),r=e.text.split(/\s+/),i=[],o=n.append("tspan"),a=0;return r.forEach((function(t){i.push(t),o.text(i.join(" "));var r=o.node();r&&r.getComputedTextLength()>e.width&&i.length>1&&(a++,i.pop(),o.text(i.join(" ")),i=[t],o=n.append("tspan").text(t).attr("dy",e.lineHeight).attr("x",e.x))})),n.attr("dy",-a*e.lineHeight),function(){n.selectAll("tspan").remove()}}})),e.lineHeight;var n=o(e,["lineHeight"]);return s.createElement("text",i({ref:t},n))},Lh=function(e){var t,n=s.useRef(null),r=s.useState(!1),i=r[0],o=r[1],a=null;if(i){var l=e.labelDef.aggregatedIdx.map((function(t){return e.lineDefs[t].onRenderCard})).filter((function(e){return!!e}));l.length>0&&(a=s.createElement(gi,{target:n.current,onDismiss:function(){return o(!1)},setInitialFocus:!0,role:"dialog"},s.createElement(Pc,{isCircularNavigation:!0,direction:oc.vertical},s.createElement(Ch,{items:l,onRenderCell:function(e){return s.createElement("div",{"data-is-focusable":!0},e&&e())}}))))}var u=window.matchMedia("(prefers-color-scheme: dark)").matches?"rgb(255,255,255)":e.textColor;return t=1===e.labelDef.aggregatedIdx.length?e.lineDefs[e.labelDef.aggregatedIdx[0]].event:e.mergedLabel(e.labelDef.aggregatedIdx.length),s.createElement(s.Fragment,null,s.createElement("g",{ref:n,onClick:function(){return o(!0)},"data-is-focusable":!1,style:{cursor:"pointer"}},s.createElement(kh,{text:t,x:e.labelDef.x,y:e.textY,width:e.textWidth,lineHeight:e.textLineHeight,textAnchor:e.labelDef.anchor,fontSize:e.textFontSize,fill:u})),a)},Ah=function(e){var t=e.labelWidth?e.labelWidth:105,n=e.chartYTop-20,r=n+7,o=e.scale.range(),a=e.events.map((function(t){return i(i({},t),{x:e.scale(t.date)})}));a.sort((function(e,t){return+e.date-+t.date}));var l=window.matchMedia("(prefers-color-scheme: dark)").matches?"rgb(255,255,255)":e.strokeColor,u=function(e,t){for(var n=[],r=[],i=0,o=e;i<o.length;i++){var a=o[i],s=t(a);-1===n.indexOf(s)&&(r.push(a),n.push(s))}return r}(a,(function(e){return e.date.toString()})).map((function(t,n){return s.createElement("line",{key:n,x1:t.x,x2:t.x,y1:r,y2:e.chartYBottom,stroke:l,strokeDasharray:"8"})})),c=function(e,t,n,r){var i=function(r,i){if(i===e.length)return[];var a=e[i].x,s=a-t;return a<r?[]:i===e.length-1?r<s?[{x:a,anchor:"end",aggregatedIdx:[i]}]:a+t<n?[{x:a,anchor:"start",aggregatedIdx:[i]}]:[]:o(i,r<s?"end":"start")},o=function(r,o){var a="end"===o?e[r].x:e[r].x+t,s=ge(e,(function(e){return e.x>a&&(e.x-t>=a||e.x+t<n)}),r+1);-1===s&&(s=e.length);for(var l=[],u=r;u<s;u++)l.push(u);var c=i(a,s);return c.unshift({x:e[r].x,anchor:o,aggregatedIdx:l}),c};return i(r,0)}(a,t+5,o[1],o[0]).map((function(r,o){return s.createElement(Lh,i({key:o},{lineDefs:a,labelDef:r,textY:n,textWidth:t,textLineHeight:18,textFontSize:"10pt",textColor:e.labelColor,mergedLabel:e.mergedLabel}))}));return s.createElement(s.Fragment,null,u,c)},wh=le();!function(e){e[e.hoverSize=11]="hoverSize",e[e.invisibleSize=1]="invisibleSize"}(Eh||(Eh={}));var Dh=function(e){function t(t){var n=e.call(this,t)||this;return n._xAxisScale="",n._yAxisScale="",n.eventLabelHeight=36,n._injectIndexPropertyInLineChartData=function(e){var t=n.props.allowMultipleShapesForPoints,r=void 0!==t&&t;return e?e.map((function(e,t){return i(i({},e),{index:r?t:-1})})):[]},n._getCustomizedCallout=function(){return n.props.onRenderCalloutPerStack?n.props.onRenderCalloutPerStack(n.state.stackCalloutProps):n.props.onRenderCalloutPerDataPoint?n.props.onRenderCalloutPerDataPoint(n.state.dataPointCalloutProps):null},n._getMargins=function(e){n.margins=e},n._initializeLineChartData=function(e,t,r,i,o){n._xAxisScale=e,n._yAxisScale=t,n._renderedColorFillBars=n.props.colorFillBars?n._createColorFillBars(r):[],n.lines=n._createLines(o,r)},n._handleSingleLegendSelectionAction=function(e){n.state.selectedLegend===e.legend?(n.setState({selectedLegend:"",activeLegend:e.legend}),n._handleLegendClick(e,null)):(n.setState({selectedLegend:e.legend,activeLegend:e.legend}),n._handleLegendClick(e,e.legend))},n._onHoverCardHide=function(){n.setState({selectedLegendPoints:[],selectedColorBarLegend:[],isSelectedLegend:!1})},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},n._getBoxWidthOfShape=function(e,t,r){var i=n.props,o=i.allowMultipleShapesForPoints,a=void 0!==o&&o,s=i.strokeWidth,l=void 0===s?4:s,u=n.state.activePoint;return a?u===e?Eh.hoverSize:1===t||r?2.5*l:Eh.invisibleSize:u===e?Eh.hoverSize:Eh.invisibleSize},n._getPath=function(e,t,r,i,o,a){var s=n.props.allowMultipleShapesForPoints,l=void 0!==s&&s,u=n._getBoxWidthOfShape(r,i,o),c=l?a%Object.keys(nc).length:0,d=nc[c].widthRatio;return function(e,t,n,r){return["M"+(e-n/2)+" "+t+"\n A"+n/2+" "+n/2+" 0 1 0 "+(e+n/2)+" "+t+"\n M"+(e-n/2)+" "+t+"\n A "+n/2+" "+n/2+" 0 1 1 "+(e+n/2)+" "+t+"\n ","M"+(e-n/2)+" "+(t-n/2)+"\n L"+(e+n/2)+" "+(t-n/2)+"\n L"+(e+n/2)+" "+(t+n/2)+"\n L"+(e-n/2)+" "+(t+n/2)+"\n Z","M"+(e-n/2)+" "+(t-.2886*n)+"\n H "+(e+n/2)+"\n L"+e+" "+(t+.5774*n)+" Z","M"+e+" "+(t-n/2)+"\n L"+(e+n/2)+" "+t+"\n L"+e+" "+(t+n/2)+"\n L"+(e-n/2)+" "+t+"\n Z","M"+e+" "+(t-.5774*n)+"\n L"+(e+n/2)+" "+(t+.2886*n)+"\n L"+(e-n/2)+" "+(t+.2886*n)+" Z","M"+(e-.5*n)+" "+(t-.866*n)+"\n L"+(e+.5*n)+" "+(t-.866*n)+"\n L"+(e+n)+" "+t+"\n L"+(e+.5*n)+" "+(t+.866*n)+"\n L"+(e-.5*n)+" "+(t+.866*n)+"\n L"+(e-n)+" "+t+"\n Z","M"+e+" "+(t-.851*n)+"\n L"+(e+.6884*n)+" "+(t-.2633*n)+"\n L"+(e+.5001*n)+" "+(t+.6884*n)+"\n L"+(e-.5001*n)+" "+(t+.6884*n)+"\n L"+(e-.6884*n)+" "+(t-.2633*n)+"\n Z","M"+(e-.5001*n)+" "+(t-1.207*n)+"\n L"+(e+.5001*n)+" "+(t-1.207*n)+"\n L"+(e+1.207*n)+" "+(t-.5001*n)+"\n L"+(e+1.207*n)+" "+(t+.5001*n)+"\n L"+(e+.5001*n)+" "+(t+1.207*n)+"\n L"+(e-.5001*n)+" "+(t+1.207*n)+"\n L"+(e-1.207*n)+" "+(t+.5001*n)+"\n L"+(e-1.207*n)+" "+(t-.5001*n)+"\n Z"][r]}(e,t,u=d>1?u/d:u,c)},n._getPointFill=function(e,t,r,i){var o=n.state.activePoint,a=n.props,s=a.theme;return a.allowMultipleShapesForPoints,o===t?s.palette.white:e},n._createColorFillBars=function(e){var t=[];n.state.isSelectedLegend?n._colorFillBars=n.state.selectedColorBarLegend:n._colorFillBars=n.props.colorFillBars;for(var r=Qu(n._points,zu.LineChart),i=0;i<n._colorFillBars.length;i++){var o=n._colorFillBars[i],a=pe(o.legend.replace(/\W/g,""));o.applyPattern&&t.push(n._getStripePattern(o.color,i));for(var l=0;l<o.data.length;l++){var u=o.data[l].startX,c=o.data[l].endX,d=n.state.activeLegend===o.legend||""===n.state.activeLegend||n.state.isSelectedLegend?n._colorFillBarsOpacity:.1;t.push(s.createElement("rect",{fill:o.applyPattern?"url(#"+n._colorFillBarPatternId+i+")":o.color,fillOpacity:d,x:n._xAxisScale(u),y:n._yAxisScale(r.endValue)-3,width:Math.abs(n._xAxisScale(c)-n._xAxisScale(u)),height:n._yAxisScale(n.props.yMinValue||0)-n._yAxisScale(r.endValue)+3,key:""+a+l}))}}return t},n._getStripePattern=function(e,t){return s.createElement("pattern",{id:""+n._colorFillBarPatternId+t,width:16,height:16,key:""+n._colorFillBarPatternId+t,patternUnits:"userSpaceOnUse"},s.createElement("path",{d:"M-4,4 l8,-8 M0,16 l16,-16 M12,20 l8,-8",stroke:e,strokeWidth:1.25}))},n._checkInGap=function(e,t,n){for(var r=n,i=!1;r<t.length&&e>t[r].endIndex;)r++;return r<t.length&&e>t[r].startIndex&&e<=t[r].endIndex&&(i=!0),{isInGap:i,gapIndex:r}},n._handleFocus=function(e,t,r,i,o){n._uniqueCallOutID=i;var a=t instanceof Date?t.toLocaleDateString():t,s=t instanceof Date?t.getTime():t,l=me(n._calloutPoints,(function(e){return e.x===s}));if(l){var u=n;Bu("#"+i).attr("aria-labelledby","toolTip"+n._uniqueCallOutID),Bu("#"+n._verticalLine).attr("transform",(function(){return"translate("+u._xAxisScale(t)+", 0)"})).attr("visibility","visibility"),n._refArray.forEach((function(t){t.index===e&&n.setState({isCalloutVisible:!0,refSelected:t.refElement,hoverXValue:r||""+a,YValueHover:l.values,stackCalloutProps:l,dataPointCalloutProps:l,activePoint:i,xAxisCalloutAccessibilityData:o})}))}else n.setState({activePoint:i})},n._handleHover=function(e,t,r,i,o,a,s){s.persist();var l=e instanceof Date?e.toLocaleDateString():e,u=e instanceof Date?e.getTime():e,c=n,d=me(n._calloutPoints,(function(e){return e.x===u}));d?(Bu("#"+n._verticalLine).attr("transform",(function(){return"translate("+c._xAxisScale(e)+", "+c._yAxisScale(t)+")"})).attr("visibility","visibility").attr("y2",""+(r-c._yAxisScale(t))),n._uniqueCallOutID!==o&&(n._uniqueCallOutID=o,n.setState({isCalloutVisible:!0,refSelected:"#"+o,hoverXValue:i||""+l,YValueHover:d.values,stackCalloutProps:d,dataPointCalloutProps:d,activePoint:o,xAxisCalloutAccessibilityData:a}))):n.setState({activePoint:o})},n._onLineClick=function(e){e&&e()},n._onDataPointClick=function(e){e&&e()},n._handleMouseOut=function(){Bu("#"+n._verticalLine).attr("visibility","hidden")},n._handleChartMouseLeave=function(){n._uniqueCallOutID=null,n.setState({isCalloutVisible:!1,activePoint:""})},n._handleLegendClick=function(e,t){e.onLegendClick&&e.onLegendClick(t)},n._handleMultipleLineLegendSelectionAction=function(e){var t,r=n.state.selectedLegendPoints.reduce((function(t,n,r){return t>-1||n.legend!==e.legend?t:r}),-1);t=-1===r?a(a([],n.state.selectedLegendPoints),[e]):n.state.selectedLegendPoints.slice(0,r).concat(n.state.selectedLegendPoints.slice(r+1)),n.props.data&&t.length===n.props.data.lineChartData.length&&(n.props.colorFillBars&&n.props.colorFillBars.length===n.state.selectedColorBarLegend.length||!n.props.colorFillBars)?n._clearMultipleLegendSelections():t.length||n.state.selectedColorBarLegend.length?n.setState({selectedLegendPoints:t,isSelectedLegend:!0}):n._clearMultipleLegendSelections();var i=t.map((function(e){return e.legend}));n._handleLegendClick(e,i)},n._handleMultipleColorFillBarLegendSelectionAction=function(e){var t,r=n.state.selectedColorBarLegend.reduce((function(t,n,r){return t>-1||n.legend!==e.legend?t:r}),-1);(t=-1===r?a(a([],n.state.selectedColorBarLegend),[e]):n.state.selectedColorBarLegend.slice(0,r).concat(n.state.selectedColorBarLegend.slice(r+1))).length===(n.props.colorFillBars&&n.props.colorFillBars.length)&&(n.props.data&&n.props.data.lineChartData.length===n.state.selectedLegendPoints.length||!n.props.data)?n._clearMultipleLegendSelections():t.length||n.state.selectedLegendPoints.length?n.setState({selectedColorBarLegend:t,isSelectedLegend:!0}):n._clearMultipleLegendSelections();var i=t.map((function(e){return e.legend}));n._handleLegendClick(e,i)},n._clearMultipleLegendSelections=function(){n.setState({selectedColorBarLegend:[],selectedLegendPoints:[],isSelectedLegend:!1})},n.state={hoverXValue:"",activeLegend:"",YValueHover:[],refSelected:"",selectedLegend:"",isCalloutVisible:!1,selectedLegendPoints:[],selectedColorBarLegend:[],isSelectedLegend:!1,activePoint:""},n._refArray=[],n._points=n._injectIndexPropertyInLineChartData(n.props.data.lineChartData),n._colorFillBars=[],n._colorFillBarsOpacity=.5,n._calloutPoints=Ku(n._points)||[],n._circleId=pe("circle"),n._lineId=pe("lineID"),n._borderId=pe("borderID"),n._verticalLine=pe("verticalLine"),n._colorFillBarPatternId=pe("colorFillBarPattern"),n._tooltipId=pe("LineChartTooltipId_"),t.eventAnnotationProps&&t.eventAnnotationProps.labelHeight&&(n.eventLabelHeight=t.eventAnnotationProps.labelHeight),n}return r(t,e),t.prototype.componentDidUpdate=function(e){e.height===this.props.height&&e.width===this.props.width&&e.data===this.props.data||(this._points=this._injectIndexPropertyInLineChartData(this.props.data.lineChartData),this._calloutPoints=Ku(this._points)||[])},t.prototype.render=function(){var e=this,t=this.props,n=t.tickValues,r=t.tickFormat,o=t.eventAnnotationProps,a=t.legendProps,l=t.data;this._points=this._injectIndexPropertyInLineChartData(l.lineChartData);var u=Gu(this._points),c=this._points;a&&a.canSelectMultipleLegends&&(c=this.state.selectedLegendPoints.length>=1?this.state.selectedLegendPoints:this._points,this._calloutPoints=Ku(c));var d=this._createLegends(this._points),h=i({isCalloutVisible:this.state.isCalloutVisible,directionalHint:3,YValueHover:this.state.YValueHover,hoverXValue:this.state.hoverXValue,id:"toolTip"+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),p={tickValues:n,tickFormat:r};return s.createElement(gh,i({},this.props,{chartTitle:l.chartTitle,points:c,chartType:zu.LineChart,isCalloutForStack:!0,calloutProps:h,tickParams:p,legendBars:d,getmargins:this._getMargins,getGraphData:this._initializeLineChartData,xAxisType:u?Uu.DateAxis:Uu.NumericAxis,customizedCallout:this._getCustomizedCallout(),onChartMouseLeave:this._handleChartMouseLeave,children:function(t){return e._xAxisScale=t.xScale,e._yAxisScale=t.yScale,s.createElement(s.Fragment,null,s.createElement("g",null,s.createElement("line",{x1:0,y1:0,x2:0,y2:t.containerHeight,stroke:"#C8C8C8",id:e._verticalLine,visibility:"hidden",strokeDasharray:"5,5"}),s.createElement("g",null,e._renderedColorFillBars,e.lines),o&&s.createElement(Ah,i({},o,{scale:t.xScale,chartYTop:e.margins.top+e.eventLabelHeight,chartYBottom:t.containerHeight-35}))))}}))},t.prototype._createLegends=function(e){var t=this,n=this.props,r=n.legendProps,o=n.allowMultipleShapesForPoints,l=void 0!==o&&o,u=!(!r||!r.canSelectMultipleLegends),c=e.map((function(e){var n=e.color;return i(i({title:e.legend,color:n,action:function(){u?t._handleMultipleLineLegendSelectionAction(e):t._handleSingleLegendSelectionAction(e)},onMouseOutAction:function(){t.setState({activeLegend:""})},hoverAction:function(){t.setState({activeLegend:e.legend})}},e.legendShape&&{shape:e.legendShape}),l&&{shape:Ju[e.index%Object.keys(nc).length]})})),d=this.props.colorFillBars?this.props.colorFillBars.map((function(e,n){var r=e.legend;return{title:r,color:e.color,action:function(){u?t._handleMultipleColorFillBarLegendSelectionAction(e):t._handleSingleLegendSelectionAction(e)},onMouseOutAction:function(){t.setState({activeLegend:""})},hoverAction:function(){t.setState({activeLegend:r})},opacity:t._colorFillBarsOpacity,stripePattern:e.applyPattern}})):[];return s.createElement(Ld,i({legends:a(a([],c),d),enabledWrapLines:this.props.enabledLegendsWrapLines,overflowProps:this.props.legendsOverflowProps,focusZonePropsInHoverCard:this.props.focusZonePropsForLegendsInHoverCard,overflowText:this.props.legendsOverflowText},u&&{onLegendHoverCardLeave:this._onHoverCardHide},this.props.legendProps))},t.prototype._createLines=function(e,t){var n,r,i,o,l,u,c,d,h,p,f,g,m,v,y,_=this,x=[];this.state.isSelectedLegend?this._points=this.state.selectedLegendPoints:this._points=this._injectIndexPropertyInLineChartData(this.props.data.lineChartData);for(var b=0;b<this._points.length;b++){var C=[],S=[],E=[],k=this._points[b].legend,L=this._points[b].color,A=this.state.activePoint,w=this.props.theme,D=t-this.margins.bottom+6;if(1===this._points[b].data.length){var T=this._points[b].data[0],M=T.x,P=T.y,F=T.xAxisCalloutData,I=T.xAxisCalloutAccessibilityData,O=""+this._circleId+b;E.push(s.createElement("circle",{id:""+this._circleId+b,key:""+this._circleId+b,r:A===O?5.5:3.5,cx:this._xAxisScale(M),cy:this._yAxisScale(P),fill:A===O?w.palette.white:L,onMouseOver:this._handleHover.bind(this,M,P,D,F,O,I),onMouseMove:this._handleHover.bind(this,M,P,D,F,O,I),onMouseOut:this._handleMouseOut,strokeWidth:A===O?4:0,stroke:A===O?L:""}))}for(var N=0,H=null!==(r=null===(n=this._points[b].gaps)||void 0===n?void 0:n.sort((function(e,t){return e.startIndex-t.startIndex})))&&void 0!==r?r:[],R=function(e){var t=V._checkInGap(e,H,N),n=t.isInGap;N=t.gapIndex;var r=""+V._lineId+b+e,a=""+V._borderId+b+e,x=""+V._circleId+b+e,T=V._points[b].data[e-1],M=T.x,P=T.y,F=T.xAxisCalloutData,I=T.xAxisCalloutAccessibilityData,O=V._points[b].data[e],R=O.x,B=O.y,W=V._getPath(V._xAxisScale(M),V._yAxisScale(P),x,e,!1,V._points[b].index),z=(null===(i=V._points[b].lineOptions)||void 0===i?void 0:i.strokeWidth)||V.props.strokeWidth||4,U=V.state.activeLegend===k||""===V.state.activeLegend||V.state.isSelectedLegend,j=V._points[b].hideNonActiveDots&&A!==x;if(E.push(s.createElement("path",{id:x,key:x,d:W,"data-is-focusable":!0,onMouseOver:V._handleHover.bind(V,M,P,D,F,x,I),onMouseMove:V._handleHover.bind(V,M,P,D,F,x,I),onMouseOut:V._handleMouseOut,onFocus:function(){return _._handleFocus(r,M,F,x,I)},onBlur:V._handleMouseOut,onClick:V._onDataPointClick.bind(V,V._points[b].data[e-1].onDataPointClick),opacity:U&&!j?1:.01,fill:V._getPointFill(L,x,e,!1),stroke:L,strokeWidth:z})),e+1===V._points[b].data.length){var Y=""+x+e+"L",X=V._points[b].hideNonActiveDots&&A!==Y;W=V._getPath(V._xAxisScale(R),V._yAxisScale(B),Y,e,!0,V._points[b].index);var q=V._points[b].data[e],K=q.xAxisCalloutData,Z=q.xAxisCalloutAccessibilityData;E.push(s.createElement("path",{id:Y,key:Y,d:W,"data-is-focusable":!0,onMouseOver:V._handleHover.bind(V,R,B,D,K,Y,Z),onMouseMove:V._handleHover.bind(V,R,B,D,K,Y,Z),onMouseOut:V._handleMouseOut,onFocus:function(){return _._handleFocus(r,R,K,Y,Z)},onBlur:V._handleMouseOut,onClick:V._onDataPointClick.bind(V,V._points[b].data[e].onDataPointClick),opacity:U&&!X?1:.01,fill:V._getPointFill(L,Y,e,!0),stroke:L,strokeWidth:z}))}if(U){if(!n){var G=(null===(o=V._points[b].lineOptions)||void 0===o?void 0:o.lineBorderWidth)?Number.parseFloat(V._points[b].lineOptions.lineBorderWidth.toString()):0;G>0&&S.push(s.createElement("line",{id:a,key:a,x1:V._xAxisScale(M),y1:V._yAxisScale(P),x2:V._xAxisScale(R),y2:V._yAxisScale(B),strokeLinecap:null!==(u=null===(l=V._points[b].lineOptions)||void 0===l?void 0:l.strokeLinecap)&&void 0!==u?u:"round",strokeWidth:Number.parseFloat(z.toString())+G,stroke:(null===(c=V._points[b].lineOptions)||void 0===c?void 0:c.lineBorderColor)||w.palette.white,opacity:1})),C.push(s.createElement("line",{id:r,key:r,x1:V._xAxisScale(M),y1:V._yAxisScale(P),x2:V._xAxisScale(R),y2:V._yAxisScale(B),strokeWidth:z,ref:function(e){_._refCallback(e,r)},onMouseOver:V._handleHover.bind(V,M,P,D,F,x,I),onMouseMove:V._handleHover.bind(V,M,P,D,F,x,I),onMouseOut:V._handleMouseOut,stroke:L,strokeLinecap:null!==(h=null===(d=V._points[b].lineOptions)||void 0===d?void 0:d.strokeLinecap)&&void 0!==h?h:"round",strokeDasharray:null===(p=V._points[b].lineOptions)||void 0===p?void 0:p.strokeDasharray,strokeDashoffset:null===(f=V._points[b].lineOptions)||void 0===f?void 0:f.strokeDashoffset,opacity:1,onClick:V._onLineClick.bind(V,V._points[b].onLineClick)}))}}else n||C.push(s.createElement("line",{id:r,key:r,x1:V._xAxisScale(M),y1:V._yAxisScale(P),x2:V._xAxisScale(R),y2:V._yAxisScale(B),strokeWidth:z,stroke:L,strokeLinecap:null!==(m=null===(g=V._points[b].lineOptions)||void 0===g?void 0:g.strokeLinecap)&&void 0!==m?m:"round",strokeDasharray:null===(v=V._points[b].lineOptions)||void 0===v?void 0:v.strokeDasharray,strokeDashoffset:null===(y=V._points[b].lineOptions)||void 0===y?void 0:y.strokeDashoffset,opacity:.1}))},V=this,B=1;B<this._points[b].data.length;B++)R(B);x.push.apply(x,a(a(a([],S),C),E))}var W=wh(this.props.styles,{theme:this.props.theme});if(!this.props.showXAxisLablesTooltip)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(e){}if(!this.props.wrapXAxisLables&&this.props.showXAxisLablesTooltip){var z=Bu(e).call(this._xAxisScale);try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(e){}var U={tooltipCls:W.tooltip,id:this._tooltipId,xAxis:z};z&&Zu(U)}return x},t.prototype._refCallback=function(e,t){this._refArray.push({index:t,refElement:e})},t}(s.Component),Th=b(Dh,(function(e){return{tooltip:i(i({},e.theme.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:e.theme.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"})}})),Mh=Array.prototype.slice;function Ph(e,t){if((i=e.length)>1)for(var n,r,i,o=1,a=e[t[0]],s=a.length;o<i;++o)for(r=a,a=e[t[o]],n=0;n<s;++n)a[n][1]+=a[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]}function Fh(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function Ih(e,t){return e[t]}function Oh(e){this._context=e}function Nh(e){return new Oh(e)}function Hh(e){return e[0]}function Rh(e){return e[1]}function Vh(){var e=Hh,t=Rh,n=Ad(!0),r=null,i=Nh,o=null;function a(a){var s,l,u,c=a.length,d=!1;for(null==r&&(o=i(u=Gd())),s=0;s<=c;++s)!(s<c&&n(l=a[s],s,a))===d&&((d=!d)?o.lineStart():o.lineEnd()),d&&o.point(+e(l,s,a),+t(l,s,a));if(u)return o=null,u+""||null}return a.x=function(t){return arguments.length?(e="function"==typeof t?t:Ad(+t),a):e},a.y=function(e){return arguments.length?(t="function"==typeof e?e:Ad(+e),a):t},a.defined=function(e){return arguments.length?(n="function"==typeof e?e:Ad(!!e),a):n},a.curve=function(e){return arguments.length?(i=e,null!=r&&(o=i(r)),a):i},a.context=function(e){return arguments.length?(null==e?r=o=null:o=i(r=e),a):r},a}function Bh(){var e=Hh,t=null,n=Ad(0),r=Rh,i=Ad(!0),o=null,a=Nh,s=null;function l(l){var u,c,d,h,p,f=l.length,g=!1,m=new Array(f),v=new Array(f);for(null==o&&(s=a(p=Gd())),u=0;u<=f;++u){if(!(u<f&&i(h=l[u],u,l))===g)if(g=!g)c=u,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),d=u-1;d>=c;--d)s.point(m[d],v[d]);s.lineEnd(),s.areaEnd()}g&&(m[u]=+e(h,u,l),v[u]=+n(h,u,l),s.point(t?+t(h,u,l):m[u],r?+r(h,u,l):v[u]))}if(p)return s=null,p+""||null}function u(){return Vh().defined(i).curve(a).context(o)}return l.x=function(n){return arguments.length?(e="function"==typeof n?n:Ad(+n),t=null,l):e},l.x0=function(t){return arguments.length?(e="function"==typeof t?t:Ad(+t),l):e},l.x1=function(e){return arguments.length?(t=null==e?null:"function"==typeof e?e:Ad(+e),l):t},l.y=function(e){return arguments.length?(n="function"==typeof e?e:Ad(+e),r=null,l):n},l.y0=function(e){return arguments.length?(n="function"==typeof e?e:Ad(+e),l):n},l.y1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:Ad(+e),l):r},l.lineX0=l.lineY0=function(){return u().x(e).y(n)},l.lineY1=function(){return u().x(e).y(r)},l.lineX1=function(){return u().x(t).y(n)},l.defined=function(e){return arguments.length?(i="function"==typeof e?e:Ad(!!e),l):i},l.curve=function(e){return arguments.length?(a=e,null!=o&&(s=a(o)),l):a},l.context=function(e){return arguments.length?(null==e?o=s=null:s=a(o=e),l):o},l}function Wh(e){return e<0?-1:1}function zh(e,t,n){var r=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(r||i<0&&-0),a=(n-e._y1)/(i||r<0&&-0),s=(o*i+a*r)/(r+i);return(Wh(o)+Wh(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function Uh(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function jh(e,t,n){var r=e._x0,i=e._y0,o=e._x1,a=e._y1,s=(o-r)/3;e._context.bezierCurveTo(r+s,i+s*t,o-s,a-s*n,o,a)}function Yh(e){this._context=e}function Xh(e){this._context=e}function qh(e){return new Yh(e)}Oh.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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}},Yh.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:jh(this,this._t0,Uh(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(t=+t,(e=+e)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,jh(this,Uh(this,n=zh(this,e,t)),n);break;default:jh(this,this._t0,n=zh(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(function(e){this._context=new Xh(e)}.prototype=Object.create(Yh.prototype)).point=function(e,t){Yh.prototype.point.call(this,t,e)},Xh.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,o){this._context.bezierCurveTo(t,e,r,n,o,i)}};var Kh,Zh=le(),Gh=Di((function(e){return e.x})).left;!function(e){e.show="visibility",e.hide="hidden"}(Kh||(Kh={}));var $h=function(e){function t(t){var n=e.call(this,t)||this;return n._getMargins=function(e){n.margins=e},n._onRectMouseMove=function(e){e.persist();var t=n.props.data.lineChartData,r=n._xAxisRectScale.invert(function(e,t){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=t.clientX,r.y=t.clientY,[(r=r.matrixTransform(e.getScreenCTM().inverse())).x,r.y]}var i=e.getBoundingClientRect();return[t.clientX-i.left-e.clientLeft,t.clientY-i.top-e.clientTop]}(document.getElementById(n._rectId),e)[0]),i=Gh(t[0].data,r),o=t[0].data[i-1],a=t[0].data[i],s=null,l=null,u=null;if(void 0===o&&void 0!==a)l=a.x,u=i;else if(void 0!==o&&void 0===a)l=o.x,u=i-1;else{var c=void 0,d=void 0,h=void 0;switch(s=tc(t[0].data[0].x,!0)){case Uu.DateAxis:c=new Date(r).getTime(),d=o.x.getTime(),h=a.x.getTime(),l=Math.abs(c-d)>Math.abs(c-h)?a.x:o.x,u=Math.abs(c-d)>Math.abs(c-h)?i:i-1;break;case Uu.NumericAxis:c=r,d=o.x,h=a.x,l=Math.abs(c-d)>Math.abs(c-h)?a.x:o.x,u=Math.abs(c-d)>Math.abs(c-h)?i:i-1}}var p=t[0].data[u],f=p.xAxisCalloutData,g=p.xAxisCalloutAccessibilityData,m=l instanceof Date?l.toLocaleString():l,v=l instanceof Date?l.getTime():l,y=me(n._calloutPoints,(function(e){return e.x===v})),_=s===Uu.DateAxis?l.getTime():l,x=n.state.nearestCircleToHighlight!==_;y&&x&&!n.state.isShowCalloutPending&&n.setState({nearestCircleToHighlight:_,isCalloutVisible:!1,isShowCalloutPending:!0,lineXValue:n._xAxisRectScale(l),displayOfLine:Kh.show,isCircleClicked:!1,stackCalloutProps:y,YValueHover:y.values,dataPointCalloutProps:y,hoverXValue:f||m,xAxisCalloutAccessibilityData:g}),y||n.setState({isCalloutVisible:!1,nearestCircleToHighlight:_,displayOfLine:Kh.hide,isCircleClicked:!1})},n._onRectMouseOut=function(){},n._handleChartMouseLeave=function(){n.setState({refSelected:null,isCalloutVisible:!1,nearestCircleToHighlight:null,lineXValue:0,displayOfLine:Kh.hide,isCircleClicked:!1,stackCalloutProps:void 0,dataPointCalloutProps:void 0,hoverXValue:void 0,YValueHover:[]})},n._getStackedData=function(e,t){var r=function(){var e=Ad([]),t=Fh,n=Ph,r=Ih;function i(i){var o,a,s=e.apply(this,arguments),l=i.length,u=s.length,c=new Array(u);for(o=0;o<u;++o){for(var d,h=s[o],p=c[o]=new Array(l),f=0;f<l;++f)p[f]=d=[0,+r(i[f],h,f,i)],d.data=i[f];p.key=h}for(o=0,a=t(c);o<u;++o)c[a[o]].index=o;return n(c,a),c}return i.keys=function(t){return arguments.length?(e="function"==typeof t?t:Ad(Mh.call(t)),i):e},i.value=function(e){return arguments.length?(r="function"==typeof e?e:Ad(+e),i):r},i.order=function(e){return arguments.length?(t=null==e?Fh:"function"==typeof e?e:Ad(Mh.call(e)),i):t},i.offset=function(e){return arguments.length?(n=null==e?Ph:e,i):n},i}().keys(e)(t),i=Vi(r[r.length-1],(function(e){return e[1]})),o=[];return r.forEach((function(e){var t=[];e.forEach((function(e){t.push({values:e,xVal:e.data.xVal})})),o.push(t)})),n._isMultiStackChart=!!(o&&o.length>1),{stackedData:o,maxOfYVal:i}},n._createDataSet=function(e){var t=[],r=[],i=[],o=[],a=Ku(e);e&&e.length&&e.forEach((function(e){i.push(e.color),o.push(e.opacity||1),t.push.apply(t,e.data)}));for(var s=t,l=function(){var e=s[0].x instanceof Date?s[0].x.toLocaleString():s[0].x,t=s.filter((function(t){return(t.x instanceof Date?t.x.toLocaleString():t.x)===e})),n={};t.forEach((function(e,t){n.xVal=e.x,n["chart"+t]=e.y})),r.push(n);var i=s[0].x instanceof Date?s[0].x.toLocaleString():s[0].x;s=s.filter((function(e){return(e.x instanceof Date?e.x.toLocaleString():e.x)!==i}))};s.length;)l();for(var u=r&&Object.keys(r[0]).length,c=[],d=0;d<u-1;d++){var h="chart"+d;c.push(h)}var p=n._getStackedData(c,r);return{colors:i,opacity:o,keys:c,stackedInfo:p,calloutPoints:a}},n._getCustomizedCallout=function(){return n.props.onRenderCalloutPerStack?n.props.onRenderCalloutPerStack(n.state.stackCalloutProps):n.props.onRenderCalloutPerDataPoint?n.props.onRenderCalloutPerDataPoint(n.state.dataPointCalloutProps):null},n._getGraphData=function(e,t,r,i,o){n._chart=n._drawGraph(r,e,t,o)},n._getLegendData=function(e,t){var r=t,o=[e.blueLight,e.blue,e.blueMid,e.red,e.black],a=[];return r.forEach((function(e){var t=e.color?e.color:o[Math.floor(4*Math.random()+1)];if(!(a.filter((function(n){return n.title===e.legend&&n.color===t})).length>0)){var r={title:e.legend,color:t,action:function(){n._onLegendClick(e.legend)},hoverAction:function(){n._onLegendHover(e.legend)},onMouseOutAction:function(e){n._onLegendLeave(e)}};a.push(r)}})),s.createElement(Ld,i({legends:a,overflowProps:n.props.legendsOverflowProps,enabledWrapLines:n.props.enabledLegendsWrapLines,focusZonePropsInHoverCard:n.props.focusZonePropsForLegendsInHoverCard},n.props.legendProps))},n._onDataPointClick=function(e){e&&e(),n.setState({isCircleClicked:!0})},n._getOpacity=function(e){if(n._isMultiStackChart){var t=.7;return(n.state.isLegendHovered||n.state.isLegendSelected)&&(t=n.state.activeLegend===e?.7:.1),t}return.7},n._getLineOpacity=function(e){if(n._isMultiStackChart){var t=.3;return n.state.isCalloutVisible&&(t=1),(n.state.isLegendHovered||n.state.isLegendSelected)&&(t=n.state.activeLegend===e?0:.1),t}return 1},n._updateCircleFillColor=function(e,t,r){var i=t;return n.state.nearestCircleToHighlight===e&&(n.state.isShowCalloutPending&&n.setState({refSelected:"#"+r,isCalloutVisible:!0,isShowCalloutPending:!1}),n.state.isCircleClicked||(i=n.props.theme.palette.white)),i},n._drawGraph=function(e,t,r,o){var a,l=n.props.data.lineChartData,u=n.props.data,c=u.pointOptions,d=u.pointLineOptions,h=Bh().x((function(e){return t(e.xVal)})).y0((function(e){return r(e.values[0])})).y1((function(e){return r(e.values[1])})).curve(qh),p=Vh().x((function(e){return t(e.xVal)})).y((function(e){return r(e.values[1])})).curve(qh),f=[];n._stackedData.forEach((function(e,t){f.push(s.createElement(s.Fragment,{key:t+"-graph-"+n._uniqueIdForGraph},s.createElement("path",i({id:t+"-line-"+n._uniqueIdForGraph,d:p(e),fill:"transparent",strokeWidth:3,stroke:n._colors[t],opacity:n._getLineOpacity(l[t].legend),onMouseMove:n._onRectMouseMove,onMouseOut:n._onRectMouseOut,onMouseOver:n._onRectMouseMove},l[t].lineOptions)),s.createElement("path",{id:t+"-graph-"+n._uniqueIdForGraph,d:h(e),fill:n._colors[t],opacity:n._opacity[t],fillOpacity:n._getOpacity(l[t].legend),onMouseMove:n._onRectMouseMove,onMouseOut:n._onRectMouseOut,onMouseOver:n._onRectMouseMove})))}));var g=c&&c.r?Number(c.r):8;n._stackedData.forEach((function(e,o){l.length!==o&&f.push(s.createElement("g",{key:o+"-dots-"+n._uniqueIdForGraph,d:h(e),clipPath:"url(#clip)"},e.map((function(e,u){var d=n._circleId+"_"+(o*n._stackedData[0].length+u),h=e.xVal instanceof Date?e.xVal.getTime():e.xVal;return a=l[o].color,s.createElement("circle",i({key:d,id:d,"data-is-focusable":!0,cx:t(e.xVal),cy:r(e.values[1]),stroke:a,strokeWidth:3,visibility:n.state.nearestCircleToHighlight?"visibility":"hidden",fill:n._updateCircleFillColor(h,a,d),onMouseOut:n._onRectMouseOut,onMouseOver:n._onRectMouseMove,onClick:n._onDataPointClick.bind(n,l[o].data[u].onDataPointClick)},c,{r:n._getCircleRadius(h,g)}))}))))})),f.push(s.createElement("line",i({id:n._verticalLineId,key:n._verticalLineId,x1:n.state.lineXValue,y1:0,x2:n.state.lineXValue,y2:e,strokeWidth:1,strokeDasharray:5.5,stroke:a,opacity:.5,visibility:n.state.displayOfLine},d)));var m=Zh(n.props.styles,{theme:n.props.theme});if(!n.props.showXAxisLablesTooltip)try{document.getElementById(n._tooltipId)&&document.getElementById(n._tooltipId).remove()}catch(e){}if(!n.props.wrapXAxisLables&&n.props.showXAxisLablesTooltip){var v=Bu(o).call(t);try{document.getElementById(n._tooltipId)&&document.getElementById(n._tooltipId).remove()}catch(e){}var y={tooltipCls:m.tooltip,id:n._tooltipId,xAxis:v};v&&Zu(y)}return f},n._getCircleRadius=function(e,t){var r=n.state,i=r.isCircleClicked,o=r.nearestCircleToHighlight;return i&&o===e?1:o===e?t:0},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},n._createSet=jn((function(e){return n._createDataSet(e.lineChartData)})),n.state={activeLegend:"",hoverXValue:"",isCalloutVisible:!1,isLegendSelected:!1,isLegendHovered:!1,refSelected:null,YValueHover:[],lineXValue:0,displayOfLine:Kh.hide,isCircleClicked:!1,nearestCircleToHighlight:null,isShowCalloutPending:!1},n._uniqueIdForGraph=pe("areaChart_"),n._verticalLineId=pe("verticalLine_"),n._circleId=pe("circle"),n._rectId=pe("rectangle"),n._tooltipId=pe("AreaChartTooltipID"),n}return r(t,e),t.prototype.render=function(){var e=this,t=this.props.data,n=t.lineChartData,r=t.chartTitle,o=this._createSet(this.props.data),a=o.colors,l=o.opacity,u=o.stackedInfo,c=o.calloutPoints;this._calloutPoints=c;var d=Gu(n);this._colors=a,this._opacity=l,this._stackedData=u.stackedData;var h=this._getLegendData(this.props.theme.palette,n),p={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat},f=i({target:this.state.refSelected,isCalloutVisible:this.state.isCalloutVisible,directionalHint:3,YValueHover:this.state.YValueHover,hoverXValue:this.state.hoverXValue,id:"toolTip"+this._uniqueCallOutID,gapSpace:15,isBeakVisible:!1,setInitialFocus:!0,onDismiss:this._closeCallout,"data-is-focusable":!0,xAxisCalloutAccessibilityData:this.state.xAxisCalloutAccessibilityData},this.props.calloutProps);return s.createElement(gh,i({},this.props,{chartTitle:r,points:n,chartType:zu.AreaChart,calloutProps:f,legendBars:h,isCalloutForStack:!0,xAxisType:d?Uu.DateAxis:Uu.NumericAxis,tickParams:p,maxOfYVal:u.maxOfYVal,getGraphData:this._getGraphData,getmargins:this._getMargins,customizedCallout:this._getCustomizedCallout(),onChartMouseLeave:this._handleChartMouseLeave,children:function(t){e._xAxisRectScale=t.xScale;var n=e._xAxisRectScale.ticks(),r=e._xAxisRectScale(n[n.length-1]),i=t.containerHeight-e.margins.top;return s.createElement(s.Fragment,null,s.createElement("g",null,s.createElement("rect",{id:e._rectId,width:r,height:i,fill:"transparent",onMouseMove:e._onRectMouseMove,onMouseOut:e._onRectMouseOut,onMouseOver:e._onRectMouseMove})),s.createElement("g",null,e._chart))}}))},t.prototype._onLegendClick=function(e){this.state.isLegendSelected&&this.state.activeLegend===e?this.setState({isLegendSelected:!1,activeLegend:""}):this.setState({activeLegend:e})},t.prototype._onLegendHover=function(e){!1===this.state.isLegendSelected&&this.setState({activeLegend:e,isLegendHovered:!0})},t.prototype._onLegendLeave=function(e){(e||!1===this.state.isLegendSelected)&&this.setState({activeLegend:"",isLegendHovered:!1,isLegendSelected:!e&&this.state.isLegendSelected})},t}(s.Component),Qh=b($h,(function(e){return{tooltip:i(i({},e.theme.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:e.theme.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"})}})),Jh=function(e){return{root:{fill:e.color,stroke:Tn.white,strokeWidth:2}}},ep=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={},t.updateChart=function(e){np(e)},t}return r(t,e),t.getDerivedStateFromProps=function(e){return np(e),null},t.prototype.render=function(){var e,t=this.props,n=t.color,r=t.arc,i=le()(Jh,{color:n});return s.createElement("path",{d:r(this.props.data),className:i.root,onClick:null===(e=this.props.data)||void 0===e?void 0:e.data.onClick})},t.defaultProps={arc:ih()},t}(s.Component),tp=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.render=function(){var t=this.props,n=t.data,r=t.arc,i=t.culture,o=r.centroid(n),a="translate("+o[0]+", "+o[1]+")";return s.createElement("g",{className:"arc"},e.prototype.render.call(this),s.createElement("text",{transform:a,textAnchor:"middle"},n.data.x,"-",ic(n.data.y,i)))},t}(ep);function np(e){e.arc.innerRadius(e.innerRadius),e.arc.outerRadius(e.outerRadius)}var rp,ip=function(e){function t(t){var n=e.call(this,t)||this;return n.arcGenerator=function(e,t){return s.createElement(tp,{culture:n.props.culture,key:t,data:e,innerRadius:n.props.innerRadius,outerRadius:n.props.outerRadius,color:""+n.colors(t)})},n}return r(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.pie,r=t.colors,i=t.data,o=t.width,a=t.height,l=t.chartTitle;this.colors=Qi().range(r);var u=n(i),c="translate("+o/2+", "+a/2+")";return s.createElement("svg",{width:o,height:a,"aria-label":l},s.createElement("g",{transform:c},u.map((function(t,n){return e.arcGenerator(t,n)}))))},t.defaultProps={pie:Ud().sort(null).value((function(e){return e.y}))},t}(s.Component),op=le(),ap=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.render=function(){var e=this.props,t=e.data,n=e.width,r=e.height,i=e.colors,o=e.chartTitle,a=this.props,l=a.theme,u=a.className,c=a.styles,d=a.culture;this._classNames=op(c,{theme:l,width:n,height:r,className:u});var h=Math.min(n,r)/2-10;return s.createElement("div",{className:this._classNames.root},this.props.chartTitle&&s.createElement("p",{className:this._classNames.chartTitle},this.props.chartTitle),s.createElement(ip,{culture:d,width:n,height:r,outerRadius:h,innerRadius:0,data:t,colors:i,chartTitle:o}))},t.defaultProps={data:[],width:600,height:350},t}(s.Component),sp=b(ap,(function(e){var t=e.className,n=e.theme,r=e.width+30,o=e.height+10;return{root:[n.fonts.medium,"ms-PieChart",t,{width:r+40}],chart:[{padding:20,width:r,height:o,boxSizing:"content-box"}],chartTitle:[i({textAlign:"center"},n.fonts.mediumPlus)]}})),lp=le(),up=function(e){function t(t){var n=e.call(this,t)||this;return n._handleChartMouseLeave=function(){n._calloutAnchorPoint=null,n.setState({isCalloutVisible:!1})},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},n._getAccessibleDataObject=function(e,t,n){return void 0===t&&(t="text"),void 0===n&&(n=!0),{role:t,"data-is-focusable":n,"aria-label":(e=null!=e?e:{}).ariaLabel,"aria-labelledby":e.ariaLabelledBy,"aria-describedby":e.ariaDescribedBy}},n.state={isCalloutVisible:!1,selectedLegendTitle:"",refSelected:null,dataForHoverCard:0,color:"",isLegendHovered:!1,isLegendSelected:!1,xCalloutValue:"",yCalloutValue:""},n._refArray=[],n._onLeave=n._onLeave.bind(n),n._refCallback=n._refCallback.bind(n),n._onBarLeave=n._onBarLeave.bind(n),n._calloutId=pe("callout"),n}return r(t,e),t.prototype.render=function(){this._adjustProps();var e=this.props,t=e.data,n=e.benchmarkData,r=e.targetData,o=e.hideNumberDisplay,a=e.ignoreFixStyle,l=e.culture,u=this.props.theme.palette,c=a||t.chartData.length>2?this.props.barHeight:8;n&&(n.color=n.color||u.neutralTertiary),r&&(r.color=r.color||u.neutralSecondary);var d=this._createBarsAndLegends(t,c,u,n,r),h=!1===o&&!a&&2===t.chartData.length,p=!1===o&&!a&&1===t.chartData.length,f=t.chartData.reduce((function(e,t){return e+(t.data?t.data:0)}),0),g=0;n&&f&&(g=n.data/f*100);var m=0;r&&f&&(m=r.data/f*100);var v=!1===this.props.hideLegend&&(a||t.chartData.length>2);this._classNames=lp(this.props.styles,{legendColor:this.state.color,theme:this.props.theme,benchmarkColor:n?n.color:"",benchmarkRatio:g,targetColor:r?r.color:"",targetRatio:m});var y=function(){return ic(t.chartData[0].data?t.chartData[0].data:0,l)};return s.createElement("div",{className:this._classNames.root,onMouseLeave:this._handleChartMouseLeave},s.createElement(Pc,{direction:oc.horizontal},s.createElement("div",{className:this._classNames.chartTitle},t.chartTitle&&s.createElement("div",i({},this._getAccessibleDataObject(t.chartTitleAccessibilityData)),s.createElement("strong",null,t.chartTitle)),h&&s.createElement("div",i({},this._getAccessibleDataObject(t.chartDataAccessibilityData)),s.createElement("span",{className:this._classNames.ratioNumerator},y()),!this.props.hideDenominator&&s.createElement("span",null,"/",s.createElement("span",{className:this._classNames.ratioDenominator},ic(f,l)))),p&&s.createElement("div",i({},this._getAccessibleDataObject(t.chartDataAccessibilityData)),s.createElement("strong",null,y()))),(n||r)&&s.createElement("div",{className:this._classNames.benchmarkContainer},n&&s.createElement("div",{className:this._classNames.benchmark,role:"text"}),r&&s.createElement("div",{className:this._classNames.target,role:"text"}))),s.createElement(Pc,{direction:oc.horizontal},s.createElement("div",null,s.createElement("svg",{className:this._classNames.chart,"aria-label":null==t?void 0:t.chartTitle},s.createElement("g",null,d[0]),s.createElement(gi,i({gapSpace:15,isBeakVisible:!1,target:this.state.refSelected,setInitialFocus:!0,hidden:!(!this.props.hideTooltip&&this.state.isCalloutVisible),directionalHint:3,id:this._calloutId,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0},this.props.calloutProps,this._getAccessibleDataObject(this.state.callOutAccessibilityData,"text",!1)),s.createElement(s.Fragment,null,this.props.onRenderCalloutPerDataPoint?this.props.onRenderCalloutPerDataPoint(this.state.dataPointCalloutProps):s.createElement(uc,{Legend:this.state.xCalloutValue?this.state.xCalloutValue:this.state.selectedLegendTitle,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard,color:this.state.color,culture:l})))))),v&&s.createElement("div",{className:this._classNames.legendContainer},d[1]))},t.prototype._adjustProps=function(){this._classNames=lp(this.props.styles,{legendColor:this.state.color,theme:this.props.theme,width:this.props.width,barHeight:this.props.barHeight,className:this.props.className})},t.prototype._createBarsAndLegends=function(e,t,n,r,o){var a=this,l=[n.blueLight,n.blue,n.blueMid,n.red,n.black],u=[],c=[],d=e.chartData.reduce((function(e,t){return e+(t.data?t.data:0)}),0),h=0,p=0,f=e.chartData.map((function(e,n){var r=e.color?e.color:l[Math.floor(4*Math.random()+1)],i=e.data?e.data:0,o={title:e.legend,color:r,action:d>0?function(){a._onClick(e.legend)}:void 0,hoverAction:d>0?function(){a._onHover(e.legend)}:void 0,onMouseOutAction:d>0?function(e){a._onLeave(e)}:void 0};e.placeHolder||u.push(o),n>0&&(h+=p),(p=i/d*100)<1&&0!==p?p=1:p>99&&100!==p&&(p=99),c.push(h);var f=a.props.styles,g=!0;return(a.state.isLegendHovered||a.state.isLegendSelected)&&(g=a.state.selectedLegendTitle===e.legend),a._classNames=lp(f,{theme:a.props.theme,shouldHighlight:g,href:a.props.href}),p<1?s.createElement(s.Fragment,{key:n}," "):s.createElement("g",{key:n,className:a._classNames.opacityChangeOnHover,ref:function(e){a._refCallback(e,o.title)},"data-is-focusable":!a.props.hideTooltip,onFocus:a._onBarFocus.bind(a,i,r,e),onBlur:a._onBarLeave,"aria-label":"Stacked bar chart",role:"img","aria-labelledby":a._calloutId,onMouseOver:a._onBarHover.bind(a,i,r,e),onMouseMove:a._onBarHover.bind(a,i,r,e),onMouseLeave:a._onBarLeave,pointerEvents:"all",onClick:a.props.href?a._redirectToUrl.bind(a,a.props.href):e.onClick},s.createElement("rect",{key:n,x:c[n]+"%",y:0,width:p+"%",height:t,fill:r}))}));this._addLegend(u,r),this._addLegend(u,o);var g=s.createElement(Ld,i({legends:u,enabledWrapLines:this.props.enabledLegendsWrapLines,overflowProps:this.props.legendsOverflowProps,focusZonePropsInHoverCard:this.props.focusZonePropsForLegendsInHoverCard,overflowText:this.props.legendsOverflowText},this.props.legendProps));return[0===d?[this._generateEmptyBar(t,this.props.barBackgroundColor?this.props.barBackgroundColor:n.neutralTertiary)]:f,g]},t.prototype._onBarFocus=function(e,t,n){var r=this;(!1===this.state.isLegendSelected||this.state.isLegendSelected&&this.state.selectedLegendTitle===n.legend)&&this._refArray.forEach((function(i){i.index===n.legend&&r.setState({refSelected:i.refElement,isCalloutVisible:!0,selectedLegendTitle:n.legend,dataForHoverCard:e,color:t,xCalloutValue:n.xAxisCalloutData,yCalloutValue:n.yAxisCalloutData,dataPointCalloutProps:n,callOutAccessibilityData:n.callOutAccessibilityData})}))},t.prototype._addLegend=function(e,t){if(t){var n={title:t.legend,color:t.color,shape:"triangle"};e.push(n)}},t.prototype._generateEmptyBar=function(e,t){return s.createElement("g",{key:0,className:this._classNames.opacityChangeOnHover},s.createElement("rect",{key:0,x:"0%",y:0,width:"100%",height:e,fill:t}))},t.prototype._refCallback=function(e,t){this._refArray.push({index:t,refElement:e})},t.prototype._onClick=function(e){this.state.isLegendSelected?this.state.selectedLegendTitle===e?this.setState({isLegendSelected:!1,selectedLegendTitle:e,isLegendHovered:!0}):this.setState({selectedLegendTitle:e}):this.setState({isLegendSelected:!0,selectedLegendTitle:e})},t.prototype._onHover=function(e){!1===this.state.isLegendSelected&&this.setState({isLegendHovered:!0,selectedLegendTitle:e})},t.prototype._onLeave=function(e){(e||!1===this.state.isLegendSelected)&&this.setState({isLegendHovered:!1,selectedLegendTitle:"",isLegendSelected:!e&&this.state.isLegendSelected})},t.prototype._onBarHover=function(e,t,n,r){r.persist(),(!1===this.state.isLegendSelected||this.state.isLegendSelected&&this.state.selectedLegendTitle===n.legend)&&this._calloutAnchorPoint!==n&&(this._calloutAnchorPoint=n,this.setState({refSelected:r,isCalloutVisible:!0,selectedLegendTitle:n.legend,dataForHoverCard:e,color:t,xCalloutValue:n.xAxisCalloutData,yCalloutValue:n.yAxisCalloutData,dataPointCalloutProps:n,callOutAccessibilityData:n.callOutAccessibilityData}))},t.prototype._onBarLeave=function(){},t.prototype._redirectToUrl=function(e){e&&(window.location.href=e)},t.defaultProps={barHeight:16,hideNumberDisplay:!1,hideLegend:!1,ignoreFixStyle:!1},t}(s.Component),cp=b(up,(function(e){var t,n,r=e.className,o=e.width,a=e.barHeight,s=e.shouldHighlight,l=e.theme,u=e.href,c=e.benchmarkColor,d=e.benchmarkRatio,h=e.targetColor,p=e.targetRatio;return{root:[l.fonts.medium,"ms-StackedBarChart",{width:o||"100%",display:"flex",flexDirection:"column"},r],chart:{width:"100%",height:a||16,marginBottom:"12px"},chartTitle:i(i({},l.fonts.small),{display:"flex",justifyContent:"space-between",marginBottom:"5px"}),legendContainer:{margin:"4px 0px 0px 4px"},opacityChangeOnHover:{opacity:s?"":"0.1",cursor:u?"pointer":"default",stroke:l.palette.white,strokeWidth:2,selectors:{"&:focus":{stroke:l.palette.black,strokeWidth:"2px"}}},ratioNumerator:{fontSize:Ln.small,fontWeight:An.semibold,color:l.palette.black},ratioDenominator:{fontSize:Ln.small,color:l.palette.black,opacity:"0.6"},benchmarkContainer:{position:"relative",height:"12px"},benchmark:{position:"absolute",left:"calc("+d+"% - 4.5px)",width:"0",height:"0",borderLeft:"4.5px solid transparent",borderRight:"4.5px solid transparent",borderTop:"7.8px solid",borderTopColor:c,marginBottom:"4px",selectors:(t={},t[Pn]={border:"0px",height:"7.8px",width:"7.8px",clipPath:"polygon(50% 100%, 0 0, 100% 0)",backgroundImage:"linear-gradient(to right, "+c+", "+c+")"},t)},target:{position:"absolute",left:"calc("+p+"% - 4.5px)",width:"0",height:"0",borderLeft:"4.5px solid transparent",borderRight:"4.5px solid transparent",borderTop:"7.8px solid",borderTopColor:h,marginBottom:"4px",selectors:(n={},n[Pn]={border:"0px",height:"7.8px",width:"7.8px",clipPath:"polygon(50% 100%, 0 0, 100% 0)",backgroundImage:"linear-gradient(to right, "+h+", "+h+")"},n)}}})),dp=le(),hp=function(e){function t(t){var n=e.call(this,t)||this;return n._adjustProps=function(){var e=n.props,t=e.theme,r=e.className,i=e.styles,o=e.width,a=e.barHeight;n._classNames=dp(i,{legendColor:n.state.color,theme:t,width:o,className:r,barHeight:a})},n._getLegendData=function(e,t,r){var o=[r.blueLight,r.blue,r.blueMid,r.red,r.black],a=[];return e.forEach((function(e,r){var i=e.chartData.filter((function(e){return!e.placeHolder}));i.length<3?void 0!==t[r]&&t[r]&&i.forEach((function(e){var t=e.color?e.color:o[Math.floor(4*Math.random()+1)];if(!(a.filter((function(n){return n.title===e.legend&&n.color===t})).length>0)){var r={title:e.legend,color:t,action:function(){n._onClick(e.legend)},hoverAction:function(){n._onHover(e.legend)},onMouseOutAction:function(e){n._onLeave(e)}};a.push(r)}})):i.forEach((function(e){var t=e.color?e.color:o[Math.floor(4*Math.random()+1)];if(!(a.filter((function(n){return n.title===e.legend&&n.color===t})).length>0)){var r={title:e.legend,color:t,action:function(){n._onClick(e.legend)},hoverAction:function(){n._onHover(e.legend)},onMouseOutAction:function(e){n._onLeave(e)}};a.push(r)}}))})),s.createElement(Ld,i({legends:a,overflowProps:n.props.legendsOverflowProps,focusZonePropsInHoverCard:n.props.focusZonePropsForLegendsInHoverCard,overflowText:n.props.legendsOverflowText},n.props.legendProps))},n._handleChartMouseLeave=function(){n._calloutAnchorPoint=null,n.setState({isCalloutVisible:!1})},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},n._getAccessibleDataObject=function(e,t,n){return void 0===t&&(t="text"),void 0===n&&(n=!0),{role:t,"data-is-focusable":n,"aria-label":(e=null!=e?e:{}).ariaLabel,"aria-labelledby":e.ariaLabelledBy,"aria-describedby":e.ariaDescribedBy}},n.state={isCalloutVisible:!1,refArray:[],selectedLegendTitle:"",refSelected:null,dataForHoverCard:0,color:"",isLegendHovered:!1,isLegendSelected:!1,xCalloutValue:"",yCalloutValue:""},n._onLeave=n._onLeave.bind(n),n._onBarLeave=n._onBarLeave.bind(n),n._calloutId=pe("callout"),n}return r(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.data,r=t.theme,o=t.culture;this._adjustProps();var a=r.palette,l=this._getLegendData(n,this.props.hideRatio,a),u=this.state.isCalloutVisible;this._classNames=dp(this.props.styles,{legendColor:this.state.color,theme:r});var c=this.state.xCalloutValue?this.state.xCalloutValue:this.state.selectedLegendTitle,d=this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard,h=n.map((function(t,n){var r=e._createBarsAndLegends(t,e.props.barHeight,a,e.props.hideRatio[n],e.props.hideDenominator[n],e.props.href);return s.createElement("div",{key:n},r)}));return s.createElement("div",{className:this._classNames.root,onMouseLeave:this._handleChartMouseLeave},h,!this.props.hideLegend&&s.createElement("div",{className:this._classNames.legendContainer},l),s.createElement(gi,i({gapSpace:15,isBeakVisible:!1,target:this.state.refSelected,setInitialFocus:!0,hidden:!(!this.props.hideTooltip&&u),directionalHint:3,id:this._calloutId,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0},this.props.calloutProps,this._getAccessibleDataObject(this.state.callOutAccessibilityData,"text",!1)),s.createElement(s.Fragment,null,this.props.onRenderCalloutPerDataPoint?this.props.onRenderCalloutPerDataPoint(this.state.dataPointCalloutProps):s.createElement(uc,{Legend:c,YValue:d,color:this.state.color,culture:o}))))},t.prototype._createBarsAndLegends=function(e,t,n,r,o,a){var l=this,u=this.props.culture,c=[n.blueLight,n.blue,n.blueMid,n.red,n.black],d=[],h=e.chartData.reduce((function(e,t){return e+(t.data?t.data:0)}),0),p=0,f=0,g=e.chartData.map((function(e,r){var i=e.color?e.color:e.placeHolder?n.neutralTertiaryAlt:c[Math.floor(4*Math.random()+1)],o=e.data?e.data:0;r>0&&(p+=f),f=o/h*100?o/h*100:0,d.push(p);var u=l.props.styles,g=!0;return(l.state.isLegendHovered||l.state.isLegendSelected)&&(g=l.state.selectedLegendTitle===e.legend),l._classNames=dp(u,{theme:l.props.theme,shouldHighlight:g,href:a}),f<1?s.createElement(s.Fragment,{key:r}," "):s.createElement("g",{key:r,className:e.placeHolder?l._classNames.placeHolderOnHover:l._classNames.opacityChangeOnHover,ref:function(t){l._refCallback(t,e.legend)},"data-is-focusable":!l.props.hideTooltip,onFocus:l._onBarFocus.bind(l,o,i,e),onBlur:l._onBarLeave,"aria-labelledby":l._calloutId,role:"img","aria-label":"Multi stacked bar chart",onMouseOver:e.placeHolder?void 0:l._onBarHover.bind(l,o,i,e),onMouseMove:e.placeHolder?void 0:l._onBarHover.bind(l,o,i,e),onMouseLeave:e.placeHolder?void 0:l._onBarLeave,onClick:a?e.placeHolder?void 0:l._redirectToUrl.bind(l,a):e.onClick},s.createElement("rect",{key:r,x:d[r]+"%",y:0,width:f+"%",height:t,fill:i}))}));0===e.chartData.length&&g.push(s.createElement("g",{key:0,className:this._classNames.noData,onClick:this._redirectToUrl.bind(this,a)},s.createElement("rect",{key:0,x:"0%",y:0,width:"100%",height:t,fill:n.neutralTertiaryAlt}))),0===h&&g.push(s.createElement("g",{key:"empty",className:this._classNames.noData,onClick:this._redirectToUrl.bind(this,a)},s.createElement("rect",{key:0,x:"0%",y:0,width:"100%",height:t,fill:n.neutralTertiaryAlt})));var m=void 0!==r&&r,v=!m&&2===e.chartData.length,y=!m&&1===e.chartData.length,_=function(){return ic(e.chartData[0].data?e.chartData[0].data:0,u)};return s.createElement("div",{className:this._classNames.singleChartRoot},s.createElement(Pc,{direction:oc.horizontal},s.createElement("div",{className:this._classNames.chartTitle},e.chartTitle&&s.createElement("div",i({},this._getAccessibleDataObject(e.chartTitleAccessibilityData,u)),s.createElement("strong",null,e.chartTitle)),v&&s.createElement("div",i({},this._getAccessibleDataObject(e.chartDataAccessibilityData)),s.createElement("strong",null,_()),!o&&s.createElement("span",null,"/",ic(h,u))),y&&s.createElement("div",i({},this._getAccessibleDataObject(e.chartDataAccessibilityData)),s.createElement("strong",null,_())))),s.createElement(Pc,{direction:oc.horizontal},s.createElement("div",null,s.createElement("svg",{className:this._classNames.chart,"aria-label":null==e?void 0:e.chartTitle},g))))},t.prototype._onBarFocus=function(e,t,n){var r=this;(!1===this.state.isLegendSelected||this.state.isLegendSelected&&this.state.selectedLegendTitle===n.legend)&&this.state.refArray.forEach((function(i){i.legendText===n.legend&&r.setState({refSelected:i.refElement,isCalloutVisible:!0,selectedLegendTitle:n.legend,dataForHoverCard:e,color:t,xCalloutValue:n.xAxisCalloutData,yCalloutValue:n.yAxisCalloutData,dataPointCalloutProps:n,callOutAccessibilityData:n.callOutAccessibilityData})}))},t.prototype._refCallback=function(e,t){this.state.refArray.push({legendText:t,refElement:e})},t.prototype._onHover=function(e){!1===this.state.isLegendSelected&&this.setState({isLegendHovered:!0,selectedLegendTitle:e})},t.prototype._onClick=function(e){this.state.isLegendSelected?this.state.selectedLegendTitle===e?this.setState({isLegendSelected:!1,selectedLegendTitle:e}):this.setState({selectedLegendTitle:e}):this.setState({isLegendSelected:!0,selectedLegendTitle:e})},t.prototype._onLeave=function(e){(e||!1===this.state.isLegendSelected)&&this.setState({isLegendHovered:!1,selectedLegendTitle:"",isLegendSelected:!e&&this.state.isLegendSelected})},t.prototype._onBarHover=function(e,t,n,r){r.persist(),(!1===this.state.isLegendSelected||this.state.isLegendSelected&&this.state.selectedLegendTitle===n.legend)&&this._calloutAnchorPoint!==n&&(this._calloutAnchorPoint=n,this.setState({refSelected:r,isCalloutVisible:!0,selectedLegendTitle:n.legend,dataForHoverCard:e,color:t,xCalloutValue:n.xAxisCalloutData,yCalloutValue:n.yAxisCalloutData,dataPointCalloutProps:n,callOutAccessibilityData:n.callOutAccessibilityData}))},t.prototype._onBarLeave=function(){},t.prototype._redirectToUrl=function(e){e&&(window.location.href=e)},t.defaultProps={barHeight:16,hideRatio:[],hideDenominator:[]},t}(s.Component),pp=b(hp,(function(e){var t=e.className,n=e.width,r=e.barHeight,o=e.shouldHighlight,a=e.theme,s=e.href;return{root:[a.fonts.medium,"ms-StackedBarChart",{display:"flex",flexDirection:"column",width:n||"100%"},t],items:{marginBottom:"11px"},chart:{width:"100%",height:r||16},chartTitle:i(i({},a.fonts.small),{display:"flex",justifyContent:"space-between",marginBottom:"5px"}),singleChartRoot:{width:n||"100%",display:"flex",flexDirection:"column",marginBottom:"16px"},opacityChangeOnHover:{opacity:o?"":"0.1",cursor:s?"pointer":"default",stroke:a.palette.white,strokeWidth:2,selectors:{"&:focus":{stroke:a.palette.black,strokeWidth:"2px"}}},placeHolderOnHover:{opacity:o?"":"0.1",cursor:"default",stroke:a.palette.white,strokeWidth:"2",selectors:{"&:focus":{stroke:a.palette.black,strokeWidth:"2px"}}},legendContainer:{margin:"5px 0px 0px 4px"},noData:{cursor:s?"pointer":"default"}}}));!function(e){e.show="visibility",e.hide="hidden"}(rp||(rp={}));var fp,gp=le(),mp=function(e){function t(t){var n=e.call(this,t)||this;return n._isRtl=ie(),n._createLine=function(e,t,r,i){void 0===r&&(r=0),void 0===i&&(i=0);var o=n._xAxisType===Uu.NumericAxis,a=n._getScales(r,i,o).xBarScale,l=n._createColors(),u=n.props.theme,c=n.props,d=c.data,h=c.lineLegendColor,p=void 0===h?u.palette.yellow:h,f=c.lineLegendText,g=[];d&&d.forEach((function(e,t){e.lineData&&e.lineData.y&&g.push({x:e.x,y:e.lineData.y,point:e,index:t})}));var m=Vh().x((function(t){return o?e(t.x):a(t.index)+.5*n._barWidth})).y((function(e){return t(e.y)})),v=!0;(n.state.isLegendHovered||n.state.isLegendSelected)&&(v=n.state.selectedLegendTitle===f);var y=s.createElement("path",{opacity:v?1:.4,d:m(g),fill:"none",strokeWidth:3,stroke:p}),_=g.map((function(r,i){var u;return s.createElement("circle",{key:i,cx:o?e(r.x):a(r.index)+.5*n._barWidth,cy:t(r.y),onMouseOver:n._onBarHover.bind(n,r.point,l(r.y)),onMouseOut:n._onBarLeave,r:8,stroke:p,fill:n.props.theme.palette.white,strokeWidth:3,visibility:n.state.activeXdataPoint===r.x?rp.show:rp.hide,onClick:null===(u=r.point.lineData)||void 0===u?void 0:u.onClick})}));return s.createElement(s.Fragment,null,y,_)},n._checkForLine=function(){return n.props.data.some((function(e){var t;return void 0!==(null===(t=null==e?void 0:e.lineData)||void 0===t?void 0:t.y)}))},n._getMargins=function(e){n.margins=e},n._renderContentForBothLineAndBars=function(e){var t=n._getCalloutContentForLineAndBar(e),r=t.YValueHover,o=t.hoverXValue,a=r.map((function(e,t){return s.createElement(uc,i({key:t,Legend:e.legend},0===t&&{XValue:""+(o||e.data)},{color:e.color,YValue:e.data||e.y,culture:n.props.culture}))}));return s.createElement(s.Fragment,null,a)},n._renderContentForOnlyBars=function(e){var t=n.props.useSingleColor,r=void 0!==t&&t;return s.createElement(s.Fragment,null,s.createElement(uc,{XValue:e.xAxisCalloutData||e.x,Legend:e.legend,YValue:e.yAxisCalloutData||e.y,color:!r&&e.color?e.color:n._createColors()(e.y),culture:n.props.culture}))},n._renderCallout=function(e){return e?n._isHavingLine?n._renderContentForBothLineAndBars(e):n._renderContentForOnlyBars(e):null},n._getCustomizedCallout=function(){return n.props.onRenderCalloutPerDataPoint?n.props.onRenderCalloutPerDataPoint(n.state.dataPointCalloutProps,n._renderCallout):null},n._getGraphData=function(e,t,r,i,o){return n._bars=n._xAxisType===Uu.NumericAxis?n._createNumericBars(r,i,o):n._createStringBars(r,i,o)},n._refCallback=function(e,t){n._refArray.push({index:t,refElement:e})},n._getCalloutContentForLineAndBar=function(e){var t,r,i,o,a=[],s=n.props,l=s.theme,u=s.useSingleColor,c=void 0!==u&&u,d=n.props,h=d.data,p=d.lineLegendText,f=d.lineLegendColor,g=void 0===f?l.palette.yellow:f,m=h.filter((function(t){return t.x===e.x}));return n._isHavingLine&&void 0!==(null===(t=m[0].lineData)||void 0===t?void 0:t.y)&&a.push({legend:p,color:g,y:null===(r=m[0].lineData)||void 0===r?void 0:r.y,data:null===(i=m[0].lineData)||void 0===i?void 0:i.yAxisCalloutData,yAxisCalloutData:null===(o=m[0].lineData)||void 0===o?void 0:o.yAxisCalloutData}),a.push({legend:m[0].legend,y:m[0].y,color:c?n._createColors()(1):m[0].color?m[0].color:n._createColors()(m[0].y),data:m[0].yAxisCalloutData,yAxisCalloutData:m[0].yAxisCalloutData}),{YValueHover:a,hoverXValue:e.xAxisCalloutData||e.x.toString()}},n._onBarLeave=function(){},n._handleChartMouseLeave=function(){n._calloutAnchorPoint=null,n.setState({isCalloutVisible:!1,activeXdataPoint:null,YValueHover:[],hoverXValue:""})},n._onBarFocus=function(e,t,r){if(!1===n.state.isLegendSelected||n.state.isLegendSelected&&n.state.selectedLegendTitle===e.legend){var i=n._getCalloutContentForLineAndBar(e),o=i.YValueHover,a=i.hoverXValue;n._refArray.forEach((function(i,s){i.index===e.legend&&t===s&&n.setState({refSelected:i.refElement,isCalloutVisible:!0,selectedLegendTitle:e.legend,dataForHoverCard:e.y,color:e.color||r,xCalloutValue:e.xAxisCalloutData||e.x.toString(),yCalloutValue:e.yAxisCalloutData,dataPointCalloutProps:e,activeXdataPoint:e.x,YValueHover:o,hoverXValue:a,callOutAccessibilityData:e.callOutAccessibilityData})}))}},n._getScales=function(e,t,r){if(r){var i=Vi(n._points,(function(e){return e.x}));return{xBarScale:ga().domain(n._isRtl?[i,0]:[0,i]).nice().range([n.margins.left+n._barWidth/2,t-n.margins.right-n._barWidth-n._barWidth/2]),yBarScale:ga().domain([0,n._yMax]).range([0,e-n.margins.bottom-n.margins.top])}}return{xBarScale:Ji().domain(n._xAxisLabels).range([n.margins.left,t-n.margins.right]).padding(n.props.xAxisPadding||.1),yBarScale:ga().domain([0,n._yMax]).range([0,e-n.margins.bottom-n.margins.top])}},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},n._getLegendData=function(e,t){var r=n.props,o=r.theme,a=r.useSingleColor,l=n.props,u=l.lineLegendText,c=l.lineLegendColor,d=void 0===c?o.palette.yellow:c,h=[];if(e.forEach((function(e,t){var r=a?n._createColors()(1):e.color,i={title:e.legend,color:r,action:function(){n._onLegendClick(e.legend)},hoverAction:function(){n._onLegendHover(e.legend)},onMouseOutAction:function(e){n._onLegendLeave(e)}};h.push(i)})),n._isHavingLine&&u&&d){var p={title:u,color:d,action:function(){n._onLegendClick(u)},hoverAction:function(){n._onLegendHover(u)},onMouseOutAction:function(e){n._onLegendLeave(e)},isLineLegendInBarChart:!0};h.unshift(p)}return s.createElement(Ld,i({legends:h,enabledWrapLines:n.props.enabledLegendsWrapLines,overflowProps:n.props.legendsOverflowProps,focusZonePropsInHoverCard:n.props.focusZonePropsForLegendsInHoverCard,overflowText:n.props.legendsOverflowText},n.props.legendProps))},n._getAxisData=function(e){if(e&&e.yAxisDomainValues.length){var t=e.yAxisDomainValues;n._yMax=Math.max(t[t.length-1],n.props.yMaxValue||0)}},n.state={color:"",dataForHoverCard:0,isCalloutVisible:!1,isLegendSelected:!1,isLegendHovered:!1,refSelected:null,selectedLegendTitle:"",xCalloutValue:"",yCalloutValue:"",activeXdataPoint:null,YValueHover:[],hoverXValue:""},n._isHavingLine=n._checkForLine(),n._calloutId=pe("callout"),n._tooltipId=pe("VCTooltipID_"),n._refArray=[],n._xAxisType=n.props.data&&n.props.data.length>0?tc(n.props.data[0].x,!0):Uu.StringAxis,n}return r(t,e),t.prototype.render=function(){var e=this;this._adjustProps(),this._xAxisLabels=this._points.map((function(e){return e.x})),this._yMax=Math.max(Vi(this._points,(function(e){return e.y})),this.props.yMaxValue||0);var t=this._getLegendData(this._points,this.props.theme.palette);this._classNames=gp(this.props.styles,{theme:this.props.theme,legendColor:this.state.color});var n=i(i(i(i({isCalloutVisible:this.state.isCalloutVisible,directionalHint:3,id:"toolTip"+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.selectedLegendTitle,XValue:this.state.xCalloutValue,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0}),this.props.calloutProps),rc(this.state.callOutAccessibilityData)),r={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return s.createElement(gh,i({},this.props,{points:this._points,chartType:zu.VerticalBarChart,xAxisType:this._xAxisType,calloutProps:n,tickParams:r},this._isHavingLine&&{isCalloutForStack:!0},{legendBars:t,datasetForXAxisDomain:this._xAxisLabels,barwidth:this._barWidth,focusZoneDirection:oc.horizontal,customizedCallout:this._getCustomizedCallout(),getmargins:this._getMargins,getGraphData:this._getGraphData,getAxisData:this._getAxisData,onChartMouseLeave:this._handleChartMouseLeave,children:function(t){return s.createElement(s.Fragment,null,s.createElement("g",null,e._bars),e._isHavingLine&&s.createElement("g",null,e._createLine(t.xScale,t.yScale,t.containerHeight,t.containerWidth)))}}))},t.prototype._adjustProps=function(){this._points=this.props.data||[],this._barWidth=this.props.barWidth||32;var e=this.props.theme.palette;this._colors=this.props.colors||[e.blueLight,e.blue,e.blueMid,e.blueDark],this._isHavingLine=this._checkForLine()},t.prototype._createColors=function(){var e=this,t=this._colors.length<=1?1:1/(this._colors.length-1),n=this.props.useSingleColor;if(void 0!==n&&n)return function(t){var n=e.props,r=n.theme,i=n.colors;return i&&i.length>0?i[0]:r.palette.blueLight};for(var r=[],i=0;i<this._colors.length;i++)r.push(t*i*this._yMax);return ga().domain(r).range(this._colors)},t.prototype._onBarHover=function(e,t,n){n.persist();var r=this._getCalloutContentForLineAndBar(e),i=r.YValueHover,o=r.hoverXValue;(!1===this.state.isLegendSelected||this.state.isLegendSelected&&this.state.selectedLegendTitle===e.legend)&&this._calloutAnchorPoint!==e&&(this._calloutAnchorPoint=e,this.setState({refSelected:n,isCalloutVisible:!0,dataForHoverCard:e.y,selectedLegendTitle:e.legend,color:e.color||t,xCalloutValue:e.xAxisCalloutData||e.x.toString(),yCalloutValue:e.yAxisCalloutData,dataPointCalloutProps:e,activeXdataPoint:e.x,YValueHover:i,hoverXValue:o,callOutAccessibilityData:e.callOutAccessibilityData}))},t.prototype._createNumericBars=function(e,t,n){var r=this,i=this.props.useSingleColor,o=void 0!==i&&i,a=this._getScales(e,t,!0),l=a.xBarScale,u=a.yBarScale,c=this._createColors(),d=this._points.map((function(t,n){var i=!0;return(r.state.isLegendHovered||r.state.isLegendSelected)&&(i=r.state.selectedLegendTitle===t.legend),r._classNames=gp(r.props.styles,{theme:r.props.theme,legendColor:r.state.color,shouldHighlight:i}),Math.max(u(t.y),0)<1?s.createElement(s.Fragment,{key:t.x}," "):s.createElement("rect",{key:t.x,x:l(t.x),className:r._classNames.opacityChangeOnHover,y:e-r.margins.bottom-u(t.y),width:r._barWidth,"data-is-focusable":!r.props.hideTooltip,height:Math.max(u(t.y),0),ref:function(e){r._refCallback(e,t.legend)},onClick:t.onClick,onMouseOver:r._onBarHover.bind(r,t,c(t.y)),"aria-label":"Vertical bar chart",role:"text","aria-labelledby":"toolTip"+r._calloutId,onMouseLeave:r._onBarLeave,onFocus:r._onBarFocus.bind(r,t,n,c(t.y)),onBlur:r._onBarLeave,fill:t.color&&!o?t.color:c(t.y)})}));if(!this.props.showXAxisLablesTooltip)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(e){}if(!this.props.wrapXAxisLables&&this.props.showXAxisLablesTooltip){var h=Bu(n).call(l);try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(e){}var p={tooltipCls:this._classNames.tooltip,id:this._tooltipId,xAxis:h};h&&Zu(p)}return d},t.prototype._createStringBars=function(e,t,n){var r=this,i=this._getScales(e,t,!1),o=i.xBarScale,a=i.yBarScale,l=this._createColors(),u=this._points.map((function(t,n){var i=Math.max(a(t.y),0);return i<1?s.createElement(s.Fragment,{key:t.x}," "):s.createElement("rect",{key:t.x,x:o(t.x),y:e-r.margins.bottom-a(t.y),width:r._barWidth,height:i,"aria-label":"Vertical bar chart",role:"text","aria-labelledby":"toolTip"+r._calloutId,ref:function(e){r._refCallback(e,t.legend)},onClick:t.onClick,onMouseOver:r._onBarHover.bind(r,t,l(t.y)),onMouseLeave:r._onBarLeave,onBlur:r._onBarLeave,"data-is-focusable":!r.props.hideTooltip,onFocus:r._onBarFocus.bind(r,t,n,l(t.y)),fill:t.color?t.color:l(t.y),transform:"translate("+.5*(o.bandwidth()-r._barWidth)+", 0)"})}));if(!this.props.showXAxisLablesTooltip)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(e){}if(!this.props.wrapXAxisLables&&this.props.showXAxisLablesTooltip){var c=Bu(n).call(o);try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(e){}var d={tooltipCls:this._classNames.tooltip,id:this._tooltipId,xAxis:c,showTooltip:this.props.showXAxisLablesTooltip};c&&Zu(d)}return u},t.prototype._onLegendClick=function(e){this.state.isLegendSelected?this.state.selectedLegendTitle===e?this.setState({isLegendSelected:!1,selectedLegendTitle:e}):this.setState({selectedLegendTitle:e}):this.setState({isLegendSelected:!0,selectedLegendTitle:e})},t.prototype._onLegendHover=function(e){!1===this.state.isLegendSelected&&this.setState({isLegendHovered:!0,selectedLegendTitle:e})},t.prototype._onLegendLeave=function(e){(e||!1===this.state.isLegendSelected)&&this.setState({isLegendHovered:!1,selectedLegendTitle:"",isLegendSelected:!e&&this.state.isLegendSelected})},t}(s.Component),vp=b(mp,(function(e){var t=e.shouldHighlight,n=e.theme;return{opacityChangeOnHover:{opacity:t?"":"0.1"},xAxisTicks:[],yAxisTicks:[{transform:"scaleX(-1)"}],yAxisDomain:[{transform:"scaleX(-1)"}],tooltip:i(i({},n.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:n.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"})}})),yp=le();!function(e){e.show="visibility",e.hide="hidden"}(fp||(fp={}));var _p=function(e){function t(t){var n=e.call(this,t)||this;return n._isRtl=ie(),n._toFocusWholeStack=function(e){var t=n.props.isCalloutForStack,r=void 0!==t&&t;return e?!n.state.isLegendSelected:r},n._getFormattedLineData=function(e){var t=[],n={};return e.forEach((function(e,n){e.lineData&&e.lineData.forEach((function(r){t.push(i(i({},r),{index:n,xItem:e}))}))})),t.forEach((function(e){n[e.legend]?n[e.legend].push(e):n[e.legend]=[e]})),n},n._getLineLegends=function(e){var t=n._lineObject,r=[];return Object.keys(t).forEach((function(e){r.push({title:e,color:t[e][0].color})})),r},n._createLines=function(e,t,r,o){var a=n.state,l=a.isLegendHovered,u=a.isLegendSelected,c=a.selectedLegendTitle,d=n._xAxisType===Uu.NumericAxis,h=n._getScales(r,o,d).xBarScale,p=n._getFormattedLineData(n.props.data),f=[],g=[],m=d?0:h.bandwidth()/2;return Object.keys(p).forEach((function(r,o){var a=!0;(l||u)&&(a=c===r);for(var g=1;g<p[r].length;g++){var v=d?e(p[r][g-1].xItem.xAxisPoint):h(p[r][g-1].xItem.xAxisPoint)+n._additionalSpace,y=t(p[r][g-1].y),_=d?e(p[r][g].xItem.xAxisPoint):h(p[r][g].xItem.xAxisPoint)+n._additionalSpace,x=t(p[r][g].y);f.push(s.createElement("line",i({key:o+"-"+g+"-line",x1:v,y1:y,x2:_,y2:x,opacity:a?1:.1,strokeWidth:3,stroke:p[r][g].color,transform:"translate("+m+", 0)"},u&&c===r&&{onMouseOver:n._lineHover.bind(n,p[r][g-1]),onMouseLeave:n._lineHoverOut})))}})),Object.keys(p).forEach((function(r,o){p[r].forEach((function(a,l){g.push(s.createElement("circle",i({key:o+"-"+l+"-dot",cx:d?e(a.xItem.xAxisPoint):h(a.xItem.xAxisPoint)+n._additionalSpace,cy:t(a.y),onMouseOver:u&&c===r?n._lineHover.bind(n,a):n._onStackHover.bind(n,a.xItem)},u&&c===r&&{onMouseLeave:n._lineHoverOut},{r:n._getCircleVisibilityAndRadius(a.xItem.xAxisPoint,a.legend).radius,stroke:a.color,fill:n.props.theme.palette.white,strokeWidth:3,visibility:n._getCircleVisibilityAndRadius(a.xItem.xAxisPoint,a.legend).visibility,transform:"translate("+m+", 0)"})))}))})),s.createElement(s.Fragment,null,f,g)},n._getCircleVisibilityAndRadius=function(e,t){var r=n.state,i=r.isLegendSelected,o=r.activeXAxisDataPoint,a=r.selectedLegendTitle;return i?e===o&&t===a?{visibility:fp.show,radius:8}:t===a?{visibility:fp.show,radius:.3}:{visibility:fp.hide,radius:0}:{visibility:o===e?fp.show:fp.hide,radius:8}},n._getMargins=function(e){n.margins=e},n._getCustomizedCallout=function(){var e=n.props.data.some((function(e){return e.lineData&&e.lineData.length>0}));return n.props.onRenderCalloutPerStack?n.props.onRenderCalloutPerStack(n.state.stackCalloutProps):n.props.onRenderCalloutPerDataPoint&&!e?n.props.onRenderCalloutPerDataPoint(n.state.dataPointCalloutProps,n._renderCallout):null},n._lineHover=function(e,t){t.persist(),n.setState({refSelected:t,isCalloutVisible:!0,xCalloutValue:""+e.xItem.xAxisPoint,yCalloutValue:""+(e.yAxisCalloutData||e.data||e.y),activeXAxisDataPoint:e.xItem.xAxisPoint,color:e.color})},n._lineHoverOut=function(){n.setState({refSelected:null,isCalloutVisible:!1,xCalloutValue:"",yCalloutValue:"",activeXAxisDataPoint:"",color:""})},n._handleMouseOut=function(){},n._handleChartMouseLeave=function(){n._calloutAnchorPoint=null,n.setState({isCalloutVisible:!1,activeXAxisDataPoint:""})},n._createBar=function(e,t,r,o){var a=n.props,l=a.barCornerRadius,u=void 0===l?0:l,c=a.barMinimumHeight,d=void 0===c?0:c,h=n.props.data.some((function(e){return e.lineData&&e.lineData.length>0})),p=n._toFocusWholeStack(h),f=n._points.map((function(o,a){var l=r-n.margins.bottom,c=e((n._xAxisType,Uu.NumericAxis,o.xAxisPoint)),h=o.chartData.filter((function(e){return e.data>0}));if(h.length){var f=n._getBarGapAndScale(h,t),g=f.gapHeight,m=f.heightValueScale;if(!(m<0)){var v=h.map((function(t,r){var f=t.color?t.color:n._colors[r],v={},y=!0;(n.state.isLegendHovered||n.state.isLegendSelected)&&(y=n.state.selectedLegendTitle===t.legend);var _=yp(n.props.styles,{theme:n.props.theme,shouldHighlight:y,href:n.props.href}),x=!p&&{"data-is-focusable":!n.props.hideTooltip,"aria-labelledby":"toolTip"+n._calloutId,onMouseOver:n._onRectHover.bind(n,o.xAxisPoint,t,f),onMouseMove:n._onRectHover.bind(n,o.xAxisPoint,t,f),onMouseLeave:n._handleMouseOut,onFocus:n._onRectFocus.bind(n,t,o.xAxisPoint,f,v),onBlur:n._handleMouseOut,onClick:n._onClick.bind(n,t)},b=m*t.data;b<d&&(b=d),l=l-b-(r?g:0);var C=n._xAxisType===Uu.NumericAxis?0:e.bandwidth()/2;return u&&b>u&&r===h.length-1?s.createElement("path",i({key:r+a+""+p,className:_.opacityChangeOnHover,d:"\n M "+c+" "+(l+u)+"\n a "+u+" "+u+" 0 0 1 "+u+" "+-u+"\n h "+(n._barWidth-2*u)+"\n a "+u+" "+u+" 0 0 1 "+u+" "+u+"\n v "+(b-u)+"\n h "+-n._barWidth+"\n z\n ",fill:f,ref:function(e){return v.refElement=e},transform:"translate("+C+", 0)"},x)):b<1?s.createElement(s.Fragment,{key:r+a}," "):s.createElement("rect",i({key:r+a,className:_.opacityChangeOnHover,x:c,y:l,width:n._barWidth,height:b,fill:f,ref:function(e){return v.refElement=e}},x,{role:"text",transform:"translate("+C+", 0)"}))})),y={},_=p&&{"data-is-focusable":!n.props.hideTooltip,"aria-labelledby":"toolTip"+n._calloutId,onMouseOver:n._onStackHover.bind(n,o),onMouseMove:n._onStackHover.bind(n,o),onMouseLeave:n._handleMouseOut,onFocus:n._onStackFocus.bind(n,o,y),onBlur:n._handleMouseOut,onClick:n._onClick.bind(n,o),role:"text"};return s.createElement("g",i({key:a+""+p,id:a+"-singleBar",ref:function(e){return y.refElement=e}},_),v)}}})),g=yp(n.props.styles,{theme:n.props.theme});if(!n.props.showXAxisLablesTooltip)try{document.getElementById(n._tooltipId)&&document.getElementById(n._tooltipId).remove()}catch(e){}if(!n.props.wrapXAxisLables&&n.props.showXAxisLablesTooltip){var m=Bu(o).call(e);try{document.getElementById(n._tooltipId)&&document.getElementById(n._tooltipId).remove()}catch(e){}var v={tooltipCls:g.tooltip,id:n._tooltipId,xAxis:m};m&&Zu(v)}return f.filter((function(e){return!!e}))},n._getScales=function(e,t,r){var i=n._yMax,o=ga().domain([0,i]).range([0,e-n.margins.bottom-n.margins.top]);if(r){var a=Vi(n._dataset,(function(e){return e.x}));return{xBarScale:ga().domain(n._isRtl?[a,0]:[0,a]).nice().range([n.margins.left,t-n.margins.right-n._barWidth]),yBarScale:o}}return{xBarScale:Ji().domain(n._xAxisLabels).range([n.margins.left-n._additionalSpace,t-n.margins.right-n._additionalSpace]).padding(n.props.xAxisPadding||.1),yBarScale:o}},n._createNumericBars=function(e,t,r){var i=n._getScales(e,t,!0),o=i.xBarScale,a=i.yBarScale;return n._createBar(o,a,e,r)},n._createStringBars=function(e,t,r){var i=n._getScales(e,t,!1),o=i.xBarScale,a=i.yBarScale;return n._createBar(o,a,e,r)},n._getGraphData=function(e,t,r,i,o){return n._bars=n._xAxisType===Uu.NumericAxis?n._createNumericBars(r,i,o):n._createStringBars(r,i,o)},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},n._getAxisData=function(e){if(e&&e.yAxisDomainValues.length){var t=e.yAxisDomainValues;n._yMax=Math.max(t[t.length-1],n.props.yMaxValue||0)}},n.state={isCalloutVisible:!1,isLegendSelected:!1,isLegendHovered:!1,selectedLegendTitle:"",refSelected:null,dataForHoverCard:0,color:"",hoverXValue:"",YValueHover:[],xCalloutValue:"",yCalloutValue:"",activeXAxisDataPoint:""},n._handleMouseOut=n._handleMouseOut.bind(n),n._calloutId=pe("callout"),n._tooltipId=pe("VSBCTooltipId_"),n._adjustProps(),n._dataset=n._createDataSetLayer(),n._createLegendsForLine=jn((function(e){return n._getLineLegends(e)})),n}return r(t,e),t.prototype.componentDidUpdate=function(e){e.height===this.props.height&&e.width===this.props.width&&e.data===this.props.data||(this._adjustProps(),this._dataset=this._createDataSetLayer())},t.prototype.render=function(){var e=this;this._adjustProps();var t=this.props.data.some((function(e){return e.lineData&&e.lineData.length>0})),n=this._toFocusWholeStack(t),r=this.props.isCalloutForStack,o=void 0!==r&&r;this._dataset=this._createDataSetLayer();var a=this._getLegendData(this._points,this.props.theme.palette,this._createLegendsForLine(this.props.data)),l=i(i({isCalloutVisible:this.state.isCalloutVisible,directionalHint:3,id:"toolTip"+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,YValueHover:this.state.YValueHover,hoverXValue:this.state.hoverXValue,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0},this.props.calloutProps),rc(this.state.callOutAccessibilityData)),u={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return s.createElement(gh,i({},this.props,{points:this._dataset,chartType:zu.VerticalStackedBarChart,xAxisType:this._xAxisType,calloutProps:l,tickParams:u,legendBars:a,datasetForXAxisDomain:this._xAxisLabels,isCalloutForStack:n,barwidth:this._barWidth,focusZoneDirection:o||t?oc.horizontal:oc.vertical,getmargins:this._getMargins,getGraphData:this._getGraphData,getAxisData:this._getAxisData,customizedCallout:this._getCustomizedCallout(),onChartMouseLeave:this._handleChartMouseLeave,children:function(n){return s.createElement(s.Fragment,null,s.createElement("g",null,e._bars),s.createElement("g",null,t&&e._createLines(n.xScale,n.yScale,n.containerHeight,n.containerWidth)))}}))},t.prototype._adjustProps=function(){this._points=this.props.data||[],this._barWidth=this.props.barWidth||32,this._additionalSpace=.5*this._barWidth;var e=this.props.theme.palette;this._colors=this.props.colors||[e.blueLight,e.blue,e.blueMid,e.red,e.black],this._xAxisType=tc(this.props.data[0].xAxisPoint,!0),this._lineObject=this._getFormattedLineData(this.props.data)},t.prototype._createDataSetLayer=function(){var e=[],t=this._points.map((function(t){var n=0;return t.chartData.forEach((function(e){n+=e.data})),e.push(t.xAxisPoint),{x:t.xAxisPoint,y:n}}));return this._xAxisLabels=e,t},t.prototype._renderCallout=function(e){return e?s.createElement(uc,{XValue:e.xAxisCalloutData,Legend:e.legend,YValue:e.yAxisCalloutData,color:e.color,culture:this.props.culture}):null},t.prototype._onLegendClick=function(e){this.state.isLegendSelected?this.state.selectedLegendTitle===e?this.setState({isLegendSelected:!1,selectedLegendTitle:e}):this.setState({selectedLegendTitle:e}):this.setState({isLegendSelected:!0,selectedLegendTitle:e})},t.prototype._onLegendHover=function(e){!1===this.state.isLegendSelected&&this.setState({isLegendHovered:!0,selectedLegendTitle:e})},t.prototype._onLegendLeave=function(e){(e||!1===this.state.isLegendSelected)&&this.setState({isLegendHovered:!1,selectedLegendTitle:"",isLegendSelected:!e&&this.state.isLegendSelected})},t.prototype._getLegendData=function(e,t,n){var r=this;if(this.props.hideLegend)return s.createElement(s.Fragment,null);var o=[t.blueLight,t.blue,t.blueMid,t.red,t.black],a=[],l=this.props.allowHoverOnLegend,u=void 0===l||l;e.forEach((function(e){e.chartData.forEach((function(e){var t=e.color?e.color:o[Math.floor(4*Math.random()+1)];if(!(a.filter((function(n){return n.title===e.legend&&n.color===t})).length>0)){var n={title:e.legend,color:t,action:function(){r._onLegendClick(e.legend)},hoverAction:u?function(){return r._onLegendHover(e.legend)}:void 0,onMouseOutAction:u?function(e){return r._onLegendLeave(e)}:void 0};a.push(n)}}))}));var c=[];n&&n.length>0&&n.forEach((function(e){var t={title:e.title,color:e.color,isLineLegendInBarChart:!0,action:function(){r._onLegendClick(e.title)},hoverAction:u?function(){return r._onLegendHover(e.title)}:void 0,onMouseOutAction:u?function(e){return r._onLegendLeave(e)}:void 0};c.push(t)}));var d=c.concat(a);return s.createElement(Ld,i({legends:d,overflowProps:this.props.legendsOverflowProps,enabledWrapLines:this.props.enabledLegendsWrapLines,focusZonePropsInHoverCard:this.props.focusZonePropsForLegendsInHoverCard,overflowText:this.props.legendsOverflowText},this.props.legendProps))},t.prototype._onRectHover=function(e,t,n,r){r.persist(),this._onRectFocusHover(e,t,n,r)},t.prototype._onRectFocusHover=function(e,t,n,r){(!1===this.state.isLegendSelected||this.state.isLegendSelected&&this.state.selectedLegendTitle===t.legend)&&this._calloutAnchorPoint!==t&&(this._calloutAnchorPoint=t,this.setState({refSelected:r,isCalloutVisible:!0,selectedLegendTitle:t.legend,dataForHoverCard:t.data,color:n,xCalloutValue:t.xAxisCalloutData?t.xAxisCalloutData:e,yCalloutValue:t.yAxisCalloutData,dataPointCalloutProps:t,callOutAccessibilityData:t.callOutAccessibilityData}))},t.prototype._onStackHover=function(e,t){t.persist(),this._onStackHoverFocus(e,t)},t.prototype._onStackHoverFocus=function(e,t){var n=e.lineData,r=void 0!==n&&n.length>0;r&&n.forEach((function(e){e.data=e.data||e.y,e.shouldDrawBorderBottom=!0})),this.setState({refSelected:t,isCalloutVisible:!0,YValueHover:r?a(a([],n.sort((function(e,t){return e.data<t.data?1:-1}))),e.chartData.slice().reverse()):e.chartData.slice().reverse(),hoverXValue:e.xAxisPoint,stackCalloutProps:e,activeXAxisDataPoint:e.xAxisPoint,callOutAccessibilityData:e.stackCallOutAccessibilityData})},t.prototype._onRectFocus=function(e,t,n,r){r.refElement&&this._onRectFocusHover(t,e,n,r.refElement)},t.prototype._onStackFocus=function(e,t){t.refElement&&this._onStackHoverFocus(e,t.refElement)},t.prototype._onClick=function(e,t){var n,r;null===(r=(n=this.props).onBarClick)||void 0===r||r.call(n,t,e),this.props.href&&(window.location.href=this.props.href)},t.prototype._getBarGapAndScale=function(e,t,n){var r=this.props.barGapMax,i=void 0===r?0:r,o=e.reduce((function(e,t){return e+t.data}),0),a=null!=n?n:t(o),s=i&&e.length-1,l=s&&Math.max(1,Math.min(i,.2*a/s));return{gapHeight:l,heightValueScale:(a-l*s)/o}},t}(s.Component),xp=b(_p,(function(e){var t=e.shouldHighlight,n=e.href,r=e.theme;return{opacityChangeOnHover:{opacity:t?"":"0.1",cursor:n?"pointer":"default"},tooltip:i(i({},r.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:r.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"})}})),bp=le(),Cp=function(e){function t(t){var n=e.call(this,t)||this;return n._isRtl=ie(),n._getGraphData=function(e,t,r,i,o){var a=n._createX0Scale(i),s=n._createX1Scale(a),l=[];n._datasetForBars.forEach((function(e){l.push(n._buildGraph(e,a,s,r,o))})),n._groupedVerticalBarGraph=l},n._getMargins=function(e){return n.margins=e},n._createDataSetOfGVBC=function(e){var t=[],r=e.map((function(e){return e.name}));e[0].series.forEach((function(e){t.push(e.key)}));var i=n._createDataset(e);return{keys:t,xAxisLabels:r,datasetForBars:i}},n._getCustomizedCallout=function(){return n.props.onRenderCalloutPerDataPoint?n.props.onRenderCalloutPerDataPoint(n.state.dataPointCalloutProps):null},n._getOpacity=function(e){var t=!0;return(n.state.isLegendHovered||n.state.isLegendSelected)&&(t=n.state.titleForHoverCard===e),t?"":"0.1"},n._onBarHover=function(e,t,r){r.persist(),(!1===n.state.isLegendSelected||n.state.isLegendSelected&&n.state.titleForHoverCard===e.legend)&&n._calloutAnchorPoint!==e&&(n._calloutAnchorPoint=e,n.setState({refSelected:r,isCalloutVisible:!0,titleForHoverCard:e.legend,dataForHoverCard:e.data,color:e.color,xCalloutValue:e.xAxisCalloutData,yCalloutValue:e.yAxisCalloutData,dataPointCalloutProps:e,callOutAccessibilityData:n.props.isCalloutForStack?t.stackCallOutAccessibilityData:e.callOutAccessibilityData,YValueHover:t.groupSeries,hoverXValue:e.xAxisCalloutData}))},n._onBarLeave=function(){},n._handleChartMouseLeave=function(){n._calloutAnchorPoint=null,n.setState({isCalloutVisible:!1})},n._onBarFocus=function(e,t,r){(!1===n.state.isLegendSelected||n.state.isLegendSelected&&n.state.titleForHoverCard===e.legend)&&n._refArray.forEach((function(i,o){i.index===e.legend&&r===o&&n.setState({refSelected:i.refElement,isCalloutVisible:!0,titleForHoverCard:e.legend,dataForHoverCard:e.data,color:e.color,xCalloutValue:e.xAxisCalloutData,yCalloutValue:e.yAxisCalloutData,dataPointCalloutProps:e,callOutAccessibilityData:n.props.isCalloutForStack?t.stackCallOutAccessibilityData:e.callOutAccessibilityData,YValueHover:t.groupSeries,hoverXValue:e.xAxisCalloutData})}))},n._redirectToUrl=function(e){e&&(window.location.href=e)},n._buildGraph=function(e,t,r,i,o){var a,l=[],u=ga().domain([0,n._yMax]).range([0,i-n.margins.bottom-n.margins.top]);a=n.props.barwidth&&n.props.barwidth<r.bandwidth()?n.props.barwidth:r.bandwidth();var c=Object.keys(n._datasetForBars[0]).splice(0,n._keys.length);if(c.forEach((function(t,o){var d=e.indexNum*c.length+o,h=e[t];h.data&&l.push(s.createElement("rect",{className:n._classNames.opacityChangeOnHover,key:e.indexNum+"-"+o,height:Math.max(u(h.data),0),width:a,x:r(t),y:Math.max(i-n.margins.bottom-u(h.data),0),"data-is-focusable":!n.props.hideTooltip,opacity:n._getOpacity(h.legend),ref:function(e){n._refCallback(e,h.legend,d)},fill:h.color,onMouseOver:n._onBarHover.bind(n,h,e),onMouseMove:n._onBarHover.bind(n,h,e),onMouseOut:n._onBarLeave,onFocus:n._onBarFocus.bind(n,h,e,d),onBlur:n._onBarLeave,onClick:n.props.href?n._redirectToUrl.bind(n,n.props.href):h.onClick,"aria-labelledby":"toolTip"+n._calloutId,role:"text"}))})),!n.props.wrapXAxisLables&&n.props.showXAxisLablesTooltip){var d=Bu(o).call(t);try{document.getElementById(n._tooltipId)&&document.getElementById(n._tooltipId).remove()}catch(e){}var h={tooltipCls:n._classNames.tooltip,id:n._tooltipId,xAxis:d};d&&Zu(h)}var p=n._isCustomBarWidth?(t.bandwidth()-n._x1TotalBandWidth)/2:0;return s.createElement("g",{key:e.indexNum,transform:"translate("+(t(e.xAxisPoint)+p)+", 0)"},l)},n._createDataset=function(e){var t=[],r=[];return e.forEach((function(e,n){var o={},a={},s=[];e.series.forEach((function(e){o[e.key]=e.data,a[e.key]=i({},e),s.push(e)})),a.xAxisPoint=e.name,a.indexNum=n,a.groupSeries=s,a.stackCallOutAccessibilityData=e.stackCallOutAccessibilityData,t.push(a),r.push(o)})),n._dataset=r,t},n._createX0Scale=function(e){return Ji().domain(n._xAxisLabels).range(n._isRtl?[e-n.margins.right,n.margins.left]:[n.margins.left,e-n.margins.right]).padding(.1)},n._createX1Scale=function(e){var t=e.bandwidth();if(n.props.barwidth){var r=Object.keys(n._datasetForBars[0]).splice(0,n._keys.length),i=(n.props.barwidth+2.5)*r.length;n._isCustomBarWidth=i<e.bandwidth(),t=n._isCustomBarWidth?i:e.bandwidth(),n._x1TotalBandWidth=t}return Ji().domain(n._keys).range(n._isRtl?[t,0]:[0,t]).padding(.05)},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},n._getLegendData=function(e,t){var r=e,o=[t.blueLight,t.blue,t.blueMid,t.red,t.black],a=[];return r.forEach((function(e){e.series.forEach((function(e){var t=e.color?e.color:o[Math.floor(4*Math.random()+1)];if(!(a.filter((function(n){return n.title===e.legend&&n.color===t})).length>0)){var r={title:e.legend,color:t,action:function(){n._onLegendClick(e.legend)},hoverAction:function(){n._onLegendHover(e.legend)},onMouseOutAction:function(e){n._onLegendLeave(e)}};a.push(r)}}))})),s.createElement(Ld,i({legends:a,overflowProps:n.props.legendsOverflowProps,enabledWrapLines:n.props.enabledLegendsWrapLines,focusZonePropsInHoverCard:n.props.focusZonePropsForLegendsInHoverCard},n.props.legendProps))},n._getAxisData=function(e){if(e&&e.yAxisDomainValues.length){var t=e.yAxisDomainValues;n._yMax=Math.max(t[t.length-1],n.props.yMaxValue||0)}},n._createSet=jn((function(e){return n._createDataSetOfGVBC(e)})),n.state={color:"",dataForHoverCard:0,isCalloutVisible:!1,isLegendSelected:!1,isLegendHovered:!1,refSelected:null,titleForHoverCard:"",xCalloutValue:"",yCalloutValue:"",YValueHover:[],hoverXValue:""},n._refArray=[],n._calloutId=pe("callout"),n._tooltipId=pe("GVBCTooltipId_"),n}return r(t,e),t.prototype.render=function(){var e=this,t=this.props.data,n=this._createSet(t),r=n.keys,o=n.xAxisLabels,a=n.datasetForBars;this._keys=r,this._xAxisLabels=o,this._datasetForBars=a,this._isNumeric=tc(t[0].name,!0);var l=this._getLegendData(t,this.props.theme.palette),u=Vi(this._dataset,(function(t){return Vi(e._keys,(function(e){return t[e]}))}));this._yMax=Math.max(u,this.props.yMaxValue||0),this._classNames=bp(this.props.styles,{theme:this.props.theme,href:this.props.href});var c=i(i(i({target:this.state.refSelected,isCalloutVisible:this.state.isCalloutVisible,directionalHint:3,id:"toolTip"+this._calloutId,gapSpace:15,isBeakVisible:!1,setInitialFocus:!0,color:this.state.color,Legend:this.state.titleForHoverCard,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}),rc(this.state.callOutAccessibilityData,"text",!1)),d={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return s.createElement(gh,i({},this.props,{points:this._datasetForBars,chartType:zu.GroupedVerticalBarChart,calloutProps:c,legendBars:l,xAxisType:this._isNumeric,datasetForXAxisDomain:this._xAxisLabels,tickParams:d,tickPadding:this.props.tickPadding||5,maxOfYVal:this._yMax,svgFocusZoneProps:{direction:oc.horizontal},customizedCallout:this._getCustomizedCallout(),getmargins:this._getMargins,getGraphData:this._getGraphData,getAxisData:this._getAxisData,onChartMouseLeave:this._handleChartMouseLeave,children:function(){return s.createElement("g",null,e._groupedVerticalBarGraph)}}))},t.prototype._refCallback=function(e,t,n){this._refArray[n]={index:t,refElement:e}},t.prototype._onLegendClick=function(e){this.state.isLegendSelected?this.state.titleForHoverCard===e?this.setState({isLegendSelected:!1,titleForHoverCard:e}):this.setState({titleForHoverCard:e}):this.setState({isLegendSelected:!0,titleForHoverCard:e})},t.prototype._onLegendHover=function(e){!1===this.state.isLegendSelected&&this.setState({isLegendHovered:!0,titleForHoverCard:e})},t.prototype._onLegendLeave=function(e){(e||!1===this.state.isLegendSelected)&&this.setState({isLegendHovered:!1,titleForHoverCard:"",isLegendSelected:!e&&this.state.isLegendSelected})},t}(s.Component),Sp=b(Cp,(function(e){var t=e.theme;return{opacityChangeOnHover:{cursor:e.href?"pointer":"default"},tooltip:i(i({},t.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:t.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"})}})),Ep=le(),kp=function(e){function t(t){var n=e.call(this,t)||this;n._rectRefArray={},n._getXandY=function(){var e="",t="";return n.props.data.forEach((function(n){if(n.data&&n.data.length>0)return e=n.data[0].x,t=n.data[0].y,{x:e,y:t}})),{x:e,y:t}},n._getOpacity=function(e){var t=!0;return(n.state.isLegendHovered||n.state.isLegendSelected)&&(t=e===n.state.activeLegend),t?"1":"0.1"},n._rectRefCallback=function(e,t,r){n._rectRefArray[t]={data:r,refElement:e}},n._onRectFocus=function(e,t){n.setState({target:n._rectRefArray[e].refElement,isCalloutVisible:!0,calloutYValue:""+t.rectText,calloutTextColor:n._colorScale(t.value),calloutLegend:t.legend,ratio:t.ratio||null,descriptionMessage:t.descriptionMessage||"",calloutId:e,callOutAccessibilityData:t.callOutAccessibilityData})},n._onRectMouseOver=function(e,t,r){r.persist(),n._calloutAnchorPoint!==t&&(n._calloutAnchorPoint=t,n.setState({target:n._rectRefArray[e].refElement,isCalloutVisible:!0,calloutYValue:""+t.rectText,calloutTextColor:n._colorScale(t.value),calloutLegend:t.legend,ratio:t.ratio||null,descriptionMessage:t.descriptionMessage||"",calloutId:e,callOutAccessibilityData:t.callOutAccessibilityData}))},n._onRectBlurOrMouseOut=function(){},n._handleChartMouseLeave=function(){n._calloutAnchorPoint=null,n.setState({isCalloutVisible:!1})},n._createRectangles=function(){var e=[];return n._stringYAxisDataPoints.slice().reverse().forEach((function(t,r){n._dataSet[t].forEach((function(t,o){var a=""+r+o,l=s.createElement("g",i({key:a},n.state.calloutId&&{"aria-labelledby":""+n.state.calloutId},{"data-is-focusable":!0,fillOpacity:n._getOpacity(t.legend),transform:"translate("+n._xAxisScale(t.x)+", "+n._yAxisScale(t.y)+")",ref:function(e){n._rectRefCallback(e,a,t)},onFocus:n._onRectFocus.bind(n,a,t),onBlur:n._onRectBlurOrMouseOut,onMouseOver:n._onRectMouseOver.bind(n,a,t),onMouseOut:n._onRectBlurOrMouseOut}),s.createElement("rect",{fill:n._colorScale(t.value),width:n._xAxisScale.bandwidth(),height:n._yAxisScale.bandwidth(),onClick:t.onClick}),s.createElement("text",{dominantBaseline:"middle",textAnchor:"middle",className:n._classNames.text,transform:"translate("+n._xAxisScale.bandwidth()/2+", "+n._yAxisScale.bandwidth()/2+")"},ic(t.rectText,n.props.culture)));e.push(l)}))})),e},n._onLegendHover=function(e){!1===n.state.isLegendSelected&&n.setState({activeLegend:e,isLegendHovered:!0})},n._onLegendLeave=function(e){(e||!1===n.state.isLegendSelected)&&n.setState({activeLegend:"",isLegendHovered:!1,isLegendSelected:!e&&n.state.isLegendSelected})},n._onLegendClick=function(e){n.state.isLegendSelected?n.state.activeLegend===e?n.setState({activeLegend:"",isLegendSelected:!1}):n.setState({activeLegend:e}):n.setState({activeLegend:e,isLegendSelected:!0,isLegendHovered:!1})},n._createLegendBars=function(){var e=n.props,t=e.data,r=e.legendProps,o=[];return t.forEach((function(e){var t={title:e.legend,color:n._colorScale(e.value),action:function(){n._onLegendClick(e.legend)},hoverAction:function(){n._onLegendHover(e.legend)},onMouseOutAction:function(e){n._onLegendLeave(e)}};o.push(t)})),s.createElement(Ld,i({},r,{legends:o}))},n._getColorScale=function(){var e=n.props,t=e.domainValuesForColorScale,r=e.rangeValuesForColorScale;return ga().domain(t).range(r)},n._getXIndex=function(e){return n._xAxisType===Uu.DateAxis?""+e.getTime():n._xAxisType===Uu.StringAxis?e:n._xAxisType===Uu.NumericAxis?""+e:""},n._getYIndex=function(e){return n._yAxisType===ju.DateAxis?""+e.getTime():n._yAxisType===ju.StringAxis?e:n._yAxisType===ju.NumericAxis?""+e:""},n._createNewDataSet=function(e,t,r,o,s){var l=[];e.forEach((function(e){e.data.forEach((function(t){l.push(i(i({},t),{legend:e.legend}))}))}));var u={},c={},d={};return l.forEach((function(e){var t=n._getXIndex(e.x),r=n._getYIndex(e.y);d[t]="1",c[r]="1",u[r]?u[r]=a(a([],u[r]),[e]):u[r]=[e]})),Object.keys(u).forEach((function(e){u[e].sort((function(e,t){return n._xAxisType===Uu.StringAxis?e.x.toLowerCase()>t.x.toLowerCase()?1:-1:n._xAxisType===Uu.DateAxis?e.x.getTime()-t.x.getTime():n._xAxisType===Uu.NumericAxis?+e.x>+t.x?1:-1:e.x>t.x?1:-1})).forEach((function(e){n._xAxisType===Uu.DateAxis&&(e.x=n._getStringFormattedDate(e.x,t)),n._xAxisType===Uu.NumericAxis&&(e.x=n._getStringFormattedNumber(e.x,r)),n._xAxisType===Uu.StringAxis&&(e.x=n._getFormattedLabelForXAxisDataPoint(e.x)),n._yAxisType===ju.DateAxis&&(e.y=n._getStringFormattedDate(e.y,o)),n._yAxisType===ju.NumericAxis&&(e.y=n._getStringFormattedNumber(e.y,s)),n._yAxisType===ju.StringAxis&&(e.y=n._getFormattedLabelForYAxisDataPoint(e.y))}))})),Object.keys(u).forEach((function(e){n._yAxisType===ju.DateAxis?u[n._getStringFormattedDate(e,o)]=u[e]:n._yAxisType===ju.NumericAxis?u[""+n._getStringFormattedNumber(e,s)]=u[e]:u[n._getFormattedLabelForYAxisDataPoint(e)]=u[e]})),{dataSet:u,yAxisPoints:n._getYAxisDataPoints(c),xAxisPoints:n._getXAxisDataPoints(d)}},n._getXAxisDataPoints=function(e){return Object.keys(e).sort((function(e,t){return n._xAxisType===Uu.DateAxis||n._xAxisType===Uu.NumericAxis?+e-+t:e.toLowerCase()>t.toLowerCase()?1:-1})).map((function(e){return n._xAxisType===Uu.DateAxis?n._getStringFormattedDate(e,n.props.xAxisDateFormatString):n._xAxisType===Uu.NumericAxis?n._getStringFormattedNumber(e,n.props.xAxisNumberFormatString):n._getFormattedLabelForXAxisDataPoint(e)}))},n._getYAxisDataPoints=function(e){return Object.keys(e).sort((function(e,t){return n._yAxisType===ju.DateAxis||n._yAxisType===ju.NumericAxis?+e-+t:e.toLowerCase()>t.toLowerCase()?1:-1})).map((function(e){return n._yAxisType===ju.DateAxis?n._getStringFormattedDate(e,n.props.yAxisDateFormatString):n._yAxisType===ju.NumericAxis?n._getStringFormattedNumber(e,n.props.yAxisNumberFormatString):n._getFormattedLabelForYAxisDataPoint(e)}))},n._getStringFormattedDate=function(e,t){var n=new Date;return n.setTime(+e),ds(t||"%b/%d")(n)},n._getStringFormattedNumber=function(e,t){return ca(t||".2~s")(+e)},n._getFormattedLabelForXAxisDataPoint=function(e){var t=n.props.xAxisStringFormatter;return t?t(e):e},n._getFormattedLabelForYAxisDataPoint=function(e){var t=n.props.yAxisStringFormatter;return t?t(e):e},n._closeCallout=function(){n.setState({isCalloutVisible:!1})};var r=n._getXandY(),o=r.x,l=r.y;return n._xAxisType=tc(o,!0),n._yAxisType=tc(l,!1),n._createSet=jn((function(e,t,r,i,o){return n._createNewDataSet(e,t,r,i,o)})),n.state={isLegendSelected:!1,activeLegend:"",isLegendHovered:!1,isCalloutVisible:!1,target:null,calloutLegend:"",calloutTextColor:"",calloutYValue:"",ratio:null,descriptionMessage:"",calloutId:""},n}return r(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.data,r=t.xAxisDateFormatString,o=t.xAxisNumberFormatString,a=t.yAxisDateFormatString,l=t.yAxisNumberFormatString;this._colorScale=this._getColorScale();var u=this._createSet(n,r,o,a,l),c=u.dataSet,d=u.xAxisPoints,h=u.yAxisPoints;this._dataSet=c,this._stringYAxisDataPoints=h,this._stringXAxisDataPoints=d,this._classNames=Ep(this.props.styles,{theme:this.props.theme});var p=i(i(i(i({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:3,onDismiss:this._closeCallout}),rc(this.state.callOutAccessibilityData,"text",!1)),{preventDismissOnLostFocus:!0}),f=i(i({},this.state.ratio&&{ratio:this.state.ratio}),{descriptionMessage:this.state.descriptionMessage});return s.createElement(gh,i({},this.props,{points:n,chartType:zu.HeatMapChart,xAxisType:Uu.StringAxis,yAxisType:ju.StringAxis,calloutProps:p,chartHoverProps:f,styles:this._classNames.subComponentStyles.cartesianStyles,datasetForXAxisDomain:this._stringXAxisDataPoints,stringDatasetForYAxisDomain:this._stringYAxisDataPoints,xAxisTickCount:this._stringXAxisDataPoints.length,xAxistickSize:0,xAxisPadding:.02,yAxisPadding:.02,svgFocusZoneProps:{direction:oc.bidirectional},legendBars:this._createLegendBars(),onChartMouseLeave:this._handleChartMouseLeave,children:function(t){return e._xAxisScale=t.xScale,e._yAxisScale=t.yScale,e._createRectangles()}}))},t}(s.Component),Lp=b(kp,(function(e){var t=e.theme;return{root:{},text:[t.fonts.medium,{pointerEvents:"none",fill:t.palette.white}],subComponentStyles:{cartesianStyles:{},calloutStyles:{root:{maxWidth:"238px"}}}}}));function Ap(e,t){return e.sourceLinks.length?e.depth:t-1}function wp(e){return function(){return e}}function Dp(e,t){return Mp(e.source,t.source)||e.index-t.index}function Tp(e,t){return Mp(e.target,t.target)||e.index-t.index}function Mp(e,t){return e.y0-t.y0}function Pp(e){return e.value}function Fp(e){return e.index}function Ip(e){return e.nodes}function Op(e){return e.links}function Np(e,t){const n=e.get(t);if(!n)throw new Error("missing: "+t);return n}function Hp({nodes:e}){for(const t of e){let e=t.y0,n=e;for(const n of t.sourceLinks)n.y0=e+n.width/2,e+=n.width;for(const e of t.targetLinks)e.y1=n+e.width/2,n+=e.width}}function Rp(e){return e.source}function Vp(e){return e.target}function Bp(e,t,n,r,i){e.moveTo(t,n),e.bezierCurveTo(t=(t+r)/2,n,t,i,r,i)}function Wp(e){return[e.source.x1,e.y0]}function zp(e){return[e.target.x0,e.y1]}function Up(){return function(e){var t=Rp,n=Vp,r=Hh,i=Rh,o=null;function a(){var a,s=Mh.call(arguments),l=t.apply(this,s),u=n.apply(this,s);if(o||(o=a=Gd()),e(o,+r.apply(this,(s[0]=l,s)),+i.apply(this,s),+r.apply(this,(s[0]=u,s)),+i.apply(this,s)),a)return o=null,a+""||null}return a.source=function(e){return arguments.length?(t=e,a):t},a.target=function(e){return arguments.length?(n=e,a):n},a.x=function(e){return arguments.length?(r="function"==typeof e?e:Ad(+e),a):r},a.y=function(e){return arguments.length?(i="function"==typeof e?e:Ad(+e),a):i},a.context=function(e){return arguments.length?(o=null==e?null:e,a):o},a}(Bp).source(Wp).target(zp)}var jp=le(),Yp=function(e){function t(t){var n=e.call(this,t)||this;return n.state={containerHeight:0,containerWidth:0},n}return r(t,e),t.prototype.componentDidMount=function(){this._fitParentContainer()},t.prototype.componentDidUpdate=function(e){e.shouldResize!==this.props.shouldResize&&this._fitParentContainer()},t.prototype.componentWillUnmount=function(){cancelAnimationFrame(this._reqID)},t.prototype.render=function(){var e=this,t=this.props,n=t.theme,r=t.className,i=t.styles,o=t.pathColor;this._classNames=jp(i,{theme:n,width:this.state.containerWidth,height:this.state.containerHeight,pathColor:o,className:r});var a=this.state.containerWidth-0-0,l=this.state.containerHeight-10-10>0?this.state.containerHeight-10-10:0;(function(){let e,t,n,r=0,i=0,o=1,a=1,s=24,l=8,u=Fp,c=Ap,d=Ip,h=Op,p=6;function f(){const e={nodes:d.apply(null,arguments),links:h.apply(null,arguments)};return g(e),m(e),v(e),y(e),_(e),Hp(e),e}function g({nodes:e,links:t}){for(const[t,n]of e.entries())n.index=t,n.sourceLinks=[],n.targetLinks=[];const r=new Map(e.map(((t,n)=>[u(t,n,e),t])));for(const[e,n]of t.entries()){n.index=e;let{source:t,target:i}=n;"object"!=typeof t&&(t=n.source=Np(r,t)),"object"!=typeof i&&(i=n.target=Np(r,i)),t.sourceLinks.push(n),i.targetLinks.push(n)}if(null!=n)for(const{sourceLinks:t,targetLinks:r}of e)t.sort(n),r.sort(n)}function m({nodes:e}){for(const t of e)t.value=void 0===t.fixedValue?Math.max(Wi(t.sourceLinks,Pp),Wi(t.targetLinks,Pp)):t.fixedValue}function v({nodes:e}){const t=e.length;let n=new Set(e),r=new Set,i=0;for(;n.size;){for(const e of n){e.depth=i;for(const{target:t}of e.sourceLinks)r.add(t)}if(++i>t)throw new Error("circular link");n=r,r=new Set}}function y({nodes:e}){const t=e.length;let n=new Set(e),r=new Set,i=0;for(;n.size;){for(const e of n){e.height=i;for(const{source:t}of e.targetLinks)r.add(t)}if(++i>t)throw new Error("circular link");n=r,r=new Set}}function _(n){const u=function({nodes:e}){const n=Vi(e,(e=>e.depth))+1,i=(o-r-s)/(n-1),a=new Array(n);for(const t of e){const e=Math.max(0,Math.min(n-1,Math.floor(c.call(null,t,n))));t.layer=e,t.x0=r+e*i,t.x1=t.x0+s,a[e]?a[e].push(t):a[e]=[t]}if(t)for(const e of a)e.sort(t);return a}(n);e=Math.min(l,(a-i)/(Vi(u,(e=>e.length))-1)),function(t){const n=Bi(t,(t=>(a-i-(t.length-1)*e)/Wi(t,Pp)));for(const r of t){let t=i;for(const i of r){i.y0=t,i.y1=t+i.value*n,t=i.y1+e;for(const e of i.sourceLinks)e.width=e.value*n}t=(a-t+e)/(r.length+1);for(let e=0;e<r.length;++e){const n=r[e];n.y0+=t*(e+1),n.y1+=t*(e+1)}L(r)}}(u);for(let e=0;e<p;++e){const t=Math.pow(.99,e),n=Math.max(1-t,(e+1)/p);b(u,t,n),x(u,t,n)}}function x(e,n,r){for(let i=1,o=e.length;i<o;++i){const o=e[i];for(const e of o){let t=0,r=0;for(const{source:n,value:i}of e.targetLinks){let o=i*(e.layer-n.layer);t+=A(n,e)*o,r+=o}if(!(r>0))continue;let i=(t/r-e.y0)*n;e.y0+=i,e.y1+=i,k(e)}void 0===t&&o.sort(Mp),C(o,r)}}function b(e,n,r){for(let i=e.length-2;i>=0;--i){const o=e[i];for(const e of o){let t=0,r=0;for(const{target:n,value:i}of e.sourceLinks){let o=i*(n.layer-e.layer);t+=w(e,n)*o,r+=o}if(!(r>0))continue;let i=(t/r-e.y0)*n;e.y0+=i,e.y1+=i,k(e)}void 0===t&&o.sort(Mp),C(o,r)}}function C(t,n){const r=t.length>>1,o=t[r];E(t,o.y0-e,r-1,n),S(t,o.y1+e,r+1,n),E(t,a,t.length-1,n),S(t,i,0,n)}function S(t,n,r,i){for(;r<t.length;++r){const o=t[r],a=(n-o.y0)*i;a>1e-6&&(o.y0+=a,o.y1+=a),n=o.y1+e}}function E(t,n,r,i){for(;r>=0;--r){const o=t[r],a=(o.y1-n)*i;a>1e-6&&(o.y0-=a,o.y1-=a),n=o.y0-e}}function k({sourceLinks:e,targetLinks:t}){if(void 0===n){for(const{source:{sourceLinks:e}}of t)e.sort(Tp);for(const{target:{targetLinks:t}}of e)t.sort(Dp)}}function L(e){if(void 0===n)for(const{sourceLinks:t,targetLinks:n}of e)t.sort(Tp),n.sort(Dp)}function A(t,n){let r=t.y0-(t.sourceLinks.length-1)*e/2;for(const{target:i,width:o}of t.sourceLinks){if(i===n)break;r+=o+e}for(const{source:e,width:i}of n.targetLinks){if(e===t)break;r-=i}return r}function w(t,n){let r=n.y0-(n.targetLinks.length-1)*e/2;for(const{source:i,width:o}of n.targetLinks){if(i===t)break;r+=o+e}for(const{target:e,width:i}of t.sourceLinks){if(e===n)break;r-=i}return r}return f.update=function(e){return Hp(e),e},f.nodeId=function(e){return arguments.length?(u="function"==typeof e?e:wp(e),f):u},f.nodeAlign=function(e){return arguments.length?(c="function"==typeof e?e:wp(e),f):c},f.nodeSort=function(e){return arguments.length?(t=e,f):t},f.nodeWidth=function(e){return arguments.length?(s=+e,f):s},f.nodePadding=function(t){return arguments.length?(l=e=+t,f):l},f.nodes=function(e){return arguments.length?(d="function"==typeof e?e:wp(e),f):d},f.links=function(e){return arguments.length?(h="function"==typeof e?e:wp(e),f):h},f.linkSort=function(e){return arguments.length?(n=e,f):n},f.size=function(e){return arguments.length?(r=i=0,o=+e[0],a=+e[1],f):[o-r,a-i]},f.extent=function(e){return arguments.length?(r=+e[0][0],o=+e[1][0],i=+e[0][1],a=+e[1][1],f):[[r,i],[o,a]]},f.iterations=function(e){return arguments.length?(p=+e,f):p},f})().nodeWidth(5).nodePadding(6).extent([[1,1],[a-1,l-6]])(this.props.data.SankeyChartData);var u=this._createNodes(a),c=this._createLinks();return s.createElement("div",{className:this._classNames.root,role:"presentation",ref:function(t){return e.chartContainer=t}},s.createElement("svg",{width:a,height:l,id:pe("sankeyChart")},s.createElement("g",{className:this._classNames.nodes},u),s.createElement("g",{className:this._classNames.links,strokeOpacity:.2},c)))},t.prototype._createLinks=function(){var e=[];return this.props.data.SankeyChartData&&this.props.data.SankeyChartData.links.forEach((function(t,n){var r=Up()(t),i=s.createElement("path",{key:n,d:r||void 0,strokeWidth:Math.max(1,t.width),id:pe("link")},s.createElement("title",null,s.createElement("text",null,t.source.name+" → "+t.target.name+"\n"+t.value)));e.push(i)})),e},t.prototype._createNodes=function(e){var t=[];if(this.props.data.SankeyChartData)return this.props.data.SankeyChartData.nodes.forEach((function(n,r){var i=n.y1-n.y0>0?n.y1-n.y0:0,o=s.createElement("g",{id:pe("nodeGElement"),key:r},s.createElement("rect",{x:n.x0,y:n.y0,height:i,width:n.x1-n.x0,fill:n.color,id:pe("nodeBar")}),s.createElement("text",{x:n.x0<e/2?n.x1+6:n.x0-6,y:(n.y1+n.y0)/2,dy:"0.35em",textAnchor:n.x0<e/2?"start":"end"},n.name),s.createElement("title",null,s.createElement("text",null,n.name+"\n"+n.value)));t.push(o)})),t},t.prototype._fitParentContainer=function(){var e=this,t=this.state,n=t.containerWidth,r=t.containerHeight;this._reqID=requestAnimationFrame((function(){var t=e.props.parentRef?e.props.parentRef:e.chartContainer,i=t.getBoundingClientRect().width,o=t.getBoundingClientRect().height;(n!==i||r!==o)&&e.setState({containerWidth:i,containerHeight:o})}))},t}(s.Component),Xp=b(Yp,(function(e){var t=e.className,n=e.theme,r=e.pathColor;return{root:[n.fonts.medium,{display:"flex",width:"100%",height:"100%",flexDirection:"column",overflow:"hidden"},t],links:{stroke:r||n.palette.blue,fill:"none"}}})),qp=le(),Kp=function(e){function t(t){var n=e.call(this,t)||this;return n.margin={top:2,right:0,bottom:0,left:0},n.state={_points:null,_width:n.props.width||80,_height:n.props.height||20+n.margin.bottom+n.margin.top},n}return r(t,e),t.prototype.componentDidMount=function(){var e=this,t=Bh().x((function(t){return e.x(t.x)})).y0(this.state._height).y1((function(t){return e.y(t.y)})).curve(qh);this.area=t;var n=this.props.data.lineChartData[0].data,r=function(e,t){var n,r,i,o=e.length,a=-1;if(null==t){for(;++a<o;)if(null!=(n=e[a])&&n>=n)for(r=i=n;++a<o;)null!=(n=e[a])&&(r>n&&(r=n),i<n&&(i=n))}else for(;++a<o;)if(null!=(n=t(e[a]))&&n>=n)for(r=i=n;++a<o;)null!=(n=t(e[a]))&&(r>n&&(r=n),i<n&&(i=n));return[r,i]}(n,(function(e){return e.x})),i=r[0],o=r[1];this.x=ga().domain([i,o]).range([this.margin.left,this.state._width-this.margin.right]),this.y=ga().domain([0,Vi(n,(function(e){return e.y}))]).range([this.state._height-this.margin.bottom,this.margin.top]),this.setState({_points:n})},t.prototype.drawSparkline=function(){return s.createElement("path",{className:"area",d:this.area(this.state._points),opacity:1,fillOpacity:.2,fill:this.props.data.lineChartData[0].color,strokeWidth:2,stroke:this.props.data.lineChartData[0].color,"aria-label":"Sparkline with label "+this.props.data.lineChartData[0].legend})},t.prototype.render=function(){var e=qp(this.props.styles,{theme:this.props.theme});return s.createElement(Pc,{direction:oc.horizontal,isCircularNavigation:!0,className:e.inlineBlock},s.createElement("div",{className:e.inlineBlock},this.state._width>=50&&this.state._height>=16?s.createElement("svg",{width:this.state._width,height:this.state._height,tabIndex:0},this.state._points?this.drawSparkline():null):s.createElement(s.Fragment,null),this.props.showLegend&&this.props.data.lineChartData[0].legend?s.createElement("span",{role:"text",className:e.titleText,tabIndex:0},this.props.data.lineChartData[0].legend):s.createElement(s.Fragment,null)))},t}(s.Component),Zp=b(Kp,(function(e){return{inlineBlock:{display:"inline"},titleText:i({marginLeft:"8px",textAlign:"center"},e.theme.fonts.smallPlus)}}));Ar("@fluentui/react-charting","5.10.1"),FluentUIReactCharting=t}();
3
3
  //# sourceMappingURL=react-charting.min.js.map