@fluentui/react-charting 5.3.59 → 5.3.60

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,3 @@
1
1
  /*! For license information please see react-charting.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 Oh},CartesianChart:function(){return th},ChartHoverCard:function(){return vi},DonutChart:function(){return $d},GroupedVerticalBarChart:function(){return Jh},HeatMapChart:function(){return tp},HorizontalBarChart:function(){return zi},Legends:function(){return pd},LineChart:function(){return gh},MultiStackedBarChart:function(){return qh},PieChart:function(){return Wh},Shape:function(){return dd},StackedBarChart:function(){return Yh},Textbox:function(){return dh},VerticalBarChart:function(){return Zh},VerticalStackedBarChart:function(){return $h},getChartHoverCardStyles:function(){return gi}});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])})(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}).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(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}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 c in s)if(s.hasOwnProperty(c)){if("subComponentStyles"===c&&void 0!==s.subComponentStyles){var u=s.subComponentStyles;for(var d in u)u.hasOwnProperty(d)&&(r.hasOwnProperty(d)?r[d].push(u[d]):r[d]=[u[d]]);continue}var h=n[c],p=s[c];n[c]=void 0===h?p: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 c=void 0;try{c=window}catch(e){}function u(e){if(void 0!==c){var t=e;return t&&t.ownerDocument&&t.ownerDocument.defaultView?t.ownerDocument.defaultView:c}}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=u()||{};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=[],_=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}(),y=s.createContext({customizations:{inCustomizerContext:!1,settings:{},scopedSettings:{}}});var x=["theme","styles"];function b(e,t,n,r,a){var c=(r=r||{scope:"",fields:void 0}).scope,u=r.fields,d=void 0===u?x:u,h=s.forwardRef((function(r,a){var u,h,p,f,g,v,m=s.useRef(),x=(u=d,h=c,p=s.useState(0)[1],f=function(){return p((function(e){return++e}))},g=s.useContext(y).customizations,v=g.inCustomizerContext,s.useEffect((function(){return v||_.observe(f),function(){v||_.unobserve(f)}}),[v]),_.getSettings(u,h,g)),b=x.styles,C=(x.dir,o(x,["styles","dir"])),S=n?n(r):void 0,E=m.current&&m.current.__cachedInputs__||[];if(!m.current||b!==E[1]||r.styles!==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,r.styles)};k.__cachedInputs__=[t,b,r.styles],k.__noStyleOverride__=!b&&!r.styles,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 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");t.setAttribute("data-merge-styles","true");var n=this._config.cspSettings;if(n&&n.nonce&&t.setAttribute("nonce",n.nonce),this._lastStyleElement)e.insertBefore(t,this._lastStyleElement.nextElementSibling);else{var r=this._findPlaceholderStyleTag();r?e.insertBefore(t,r.nextElementSibling):e.insertBefore(t,e.childNodes[0])}return 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 w,A={},D={"user-select":1};function T(e,t){var n=function(){var e;if(!w){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();w=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 w}(),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",H=((M={}).left=O,M.right=I,M),N={"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(H[r])t[n]=H[r];else if(N[i])t[n+1]=N[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 B(e){var t=e&&e["&"];return t?t.displayName:void 0}var V,z=/\:global\((.+?)\)/g;function W(e,t){return e.indexOf(":global(")>=0?e.replace(z,"$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("@")?Y([r],t,n=n+"{"+e):n.indexOf(",")>-1?function(e){if(!z.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 Y([r],t,W(n,e))})):Y([r],t,W(n,e))}function Y(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&&Y(l,t,n)}else if(Array.isArray(s))Y(s,t,n);else for(var c in s)if(s.hasOwnProperty(c)){var u=s[c];if("selectors"===c){var d=s.selectors;for(var h in d)d.hasOwnProperty(h)&&U(n,t,h,d[h])}else"object"==typeof u?null!==u&&U(n,t,c,u):void 0!==u&&("margin"===c||"padding"===c?j(i,c,u):i[c]=u)}}return t}function j(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 q(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 X(e,t){return t<=0?"":1===t?e:e+X(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]=A[i]=A[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=Y(t),i=q(e,r);if(i){var o=k.getInstance(),a={className:o.classNameFromKey(i),key:i,args:t};if(!a.className){a.className=o.getClassName(B(r));for(var s=[],l=0,c=r.__order;l<c.length;l++){var u=c[l];s.push(u,K(e,r[u]))}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 c=a[s],u=(c=c.replace(/&/g,X("."+e.className,t)))+"{"+l+"}"+(0===c.indexOf("@")?"}":"");n.insertRule(u)}}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=u();t=n?n.sessionStorage.getItem(e):null}catch(e){}return t}function J(e){V!==e&&(V=e)}function ee(){return void 0===V&&(V="undefined"!=typeof document&&!!document.documentElement&&"rtl"===document.documentElement.getAttribute("dir")),V}function te(){return{rtl:ee()}}V=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=u())||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 c=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||(c=ue(t,o),c=ue(c,a)),!p&&c[se]||(c[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,c=a.objects;(null==c?void 0:c.length)?(h=Z(t||{},{displayName:o},c))&&(i.push(h),n[o]=s.concat([h.className]).join(" ")):n[o]=s.join(" ")}for(var u=0,d=i;u<d.length;u++){var h;(h=d[u])&&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=u();(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 c[se]}}function ce(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 ue(e,t){if("function"==typeof t)if(t.__cachedInputs__)for(var n=0,r=t.__cachedInputs__;n<r.length;n++)e=ce(e,r[n]);else e=ce(e,t);else if("object"==typeof t)for(var i in t)t.hasOwnProperty(i)&&(e=ce(e,t[i]));return e}var de=u()||{};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 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 _e(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 ye(e,t){return e&&e!==document.body?t(e)?e:ye(_e(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=_e(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)&&!we(t))){var c=Ce(e,t.lastElementChild,!0,!0,!0,o,a,s);if(c){if(s&&ke(c,!0)||!s)return c;var u=Ce(e,c.previousElementSibling,!0,!0,!0,o,a,s);if(u)return u;for(var d=c.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)&&!we(t))){var c=Se(e,t.firstElementChild,!0,!0,!1,o,a,s);if(c)return c}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 we(e){return!(!e||!e.getAttribute||"true"!==e.getAttribute("data-is-sub-focuszone"))}var Ae=void 0;function De(e){if(e){if(Ae)return void(Ae=e);Ae=e;var t=u(e);t&&t.requestAnimationFrame((function(){Ae&&Ae.focus(),Ae=void 0}))}}function Te(e,t,n,r){return e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n,r)}}var Me,Pe,Fe,Ie=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 c=l[s];n[c]=1}return n},Oe=Ie(["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=Ie(["accessKey","children","className","contentEditable","dir","draggable","hidden","htmlFor","id","lang","ref","role","style","tabIndex","title","translate","spellCheck","name"]),Ne=Ie(He,Oe),Re=(Ie(Ne,["form"]),Ie(Ne,["height","loop","muted","preload","src","width"])),Be=(Ie(Re,["poster"]),Ie(Ne,["start"]),Ie(Ne,["value"]),Ie(Ne,["download","href","hrefLang","media","rel","target","type"]),Ie(Ne,["autoFocus","disabled","form","formAction","formEncType","formMethod","formNoValidate","formTarget","type","value"])),Ve=(Ie(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"]),Ie(Be,["autoCapitalize","cols","dirname","form","maxLength","minLength","placeholder","readOnly","required","rows","wrap"]),Ie(Be,["form","multiple","required"]),Ie(Ne,["selected","value"]),Ie(Ne,["cellPadding","cellSpacing"]),Ie(Ne,["rowSpan","scope"]),Ie(Ne,["colSpan","headers","rowSpan","scope"]),Ie(Ne,["span"]),Ie(Ne,["span"]),Ie(Ne,["acceptCharset","action","encType","encType","method","noValidate","target"]),Ie(Ne,["allow","allowFullScreen","allowPaymentRequest","allowTransparency","csp","height","importance","referrerPolicy","sandbox","src","srcDoc","width"]),Ie(Ne,["alt","crossOrigin","height","src","srcSet","useMap","width"]),Ne);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 We(){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 Ue(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 je(e,te())}function je(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"}(Me||(Me={})),function(e){e[e.top=0]="top",e[e.bottom=1]="bottom",e[e.start=2]="start",e[e.end=3]="end"}(Pe||(Pe={})),Ye({overflow:"hidden !important"});var qe="data-is-scrollable";function Xe(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=u(e)),t}var Ke,Ze=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 Ge(e,t,n){return{targetEdge:e,alignmentEdge:t,isAuto:n}}var $e=((Ke={})[0]=Ge(Me.top,Me.left),Ke[1]=Ge(Me.top),Ke[2]=Ge(Me.top,Me.right),Ke[3]=Ge(Me.top,void 0,!0),Ke[4]=Ge(Me.bottom,Me.left),Ke[5]=Ge(Me.bottom),Ke[6]=Ge(Me.bottom,Me.right),Ke[7]=Ge(Me.bottom,void 0,!0),Ke[8]=Ge(Me.left,Me.top),Ke[9]=Ge(Me.left),Ke[10]=Ge(Me.left,Me.bottom),Ke[11]=Ge(Me.right,Me.top),Ke[12]=Ge(Me.right),Ke[13]=Ge(Me.right,Me.bottom),Ke);function Qe(e,t){return!(e.top<t.top||e.bottom>t.bottom||e.left<t.left||e.right>t.right)}function Je(e,t){var n=[];return e.top<t.top&&n.push(Me.top),e.bottom>t.bottom&&n.push(Me.bottom),e.left<t.left&&n.push(Me.left),e.right>t.right&&n.push(Me.right),n}function et(e,t){return e[Me[t]]}function tt(e,t,n){return e[Me[t]]=n,e}function nt(e,t){var n=pt(t);return(et(e,n.positiveEdge)+et(e,n.negativeEdge))/2}function rt(e,t){return e>0?t:-1*t}function it(e,t){return rt(e,et(t,e))}function ot(e,t,n){return rt(n,et(e,n)-et(t,n))}function at(e,t,n,r){void 0===r&&(r=!0);var i=et(e,t)-n,o=tt(e,t,n);return r&&(o=tt(e,-1*t,et(e,-1*t)-i)),o}function st(e,t,n,r){return void 0===r&&(r=0),at(e,n,et(t,n)+rt(n,r))}function lt(e,t,n){return it(n,e)>it(n,t)}function ct(e,t){for(var n=0,r=0,i=Je(e,t);r<i.length;r++){var o=i[r];n+=Math.pow(ot(e,t,o),2)}return n}function ut(e,t,n){for(var r=0,i=e;r<i.length;r++){var o=i[r],a=st(t.elementRectangle,n,o);lt(a,n,-1*o)||(a=at(a,-1*o,et(n,-1*o),!1),t.forcedInBounds=!0),t.elementRectangle=a}return t}function dt(e,t,n){var r=pt(t).positiveEdge;return at(e,r,n-(nt(e,t)-et(e,r)))}function ht(e,t,n,r,i){void 0===r&&(r=0);var o=new Ze(e.left,e.right,e.top,e.bottom),a=n.alignmentEdge,s=n.targetEdge,l=i?s:-1*s;return o=i?st(o,t,s,r):function(e,t,n,r){void 0===r&&(r=0);var i=rt(-1*n,r);return at(e,-1*n,et(t,n)+i)}(o,t,s,r),o=a?st(o,t,a):dt(o,l,nt(t,s))}function pt(e){return e===Me.top||e===Me.bottom?{positiveEdge:Me.left,negativeEdge:Me.right}:{positiveEdge:Me.top,negativeEdge:Me.bottom}}function ft(e,t,n){return n&&Math.abs(ot(e,n,t))>Math.abs(ot(e,n,-1*t))?-1*t:t}function gt(e,t,n){var r=nt(t,e),i=nt(n,e),o=pt(e),a=o.positiveEdge,s=o.negativeEdge;return r<=i?a:s}function vt(e,t,n,r,i,o,a){var s=ht(e,t,r,i,a);return Qe(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,c={elementRectangle:e,targetEdge:r.targetEdge,alignmentEdge:s};o||a||(c=function(e,t,n,r,i){void 0===i&&(i=0);var o=[Me.left,Me.right,Me.bottom,Me.top];ie()&&(o[0]*=-1,o[1]*=-1);for(var a,s=e,l=r.targetEdge,c=r.alignmentEdge,u=l,d=c,h=0;h<4;h++){if(lt(s,n,l))return{elementRectangle:s,targetEdge:l,alignmentEdge:c};var p=ct(s,n);(!a||p<a)&&(a=p,u=l,d=c),o.splice(o.indexOf(l),1),o.length>0&&(o.indexOf(-1*l)>-1?l*=-1:(c=l,l=o.slice(-1)[0]),s=ht(e,t,{targetEdge:l,alignmentEdge:c},i))}return{elementRectangle:s=ht(e,t,{targetEdge:u,alignmentEdge:d},i),targetEdge:u,alignmentEdge:d}}(e,t,n,r,i));var u=Je(c.elementRectangle,n);if(u.length>0)if(l){if(c.alignmentEdge&&u.indexOf(-1*c.alignmentEdge)>-1){var d=function(e,t,n,r){var i=e.alignmentEdge,o=e.targetEdge,a=-1*i;return{elementRectangle:ht(e.elementRectangle,t,{targetEdge:o,alignmentEdge:a},n,r),targetEdge:o,alignmentEdge:a}}(c,t,i,a);if(Qe(d.elementRectangle,n))return d;c=ut(Je(d.elementRectangle,n),c,n)}}else c=ut(u,c,n);return c}(s,t,n,r,i,o,a)}function mt(e){var t=e.getBoundingClientRect();return new Ze(t.left,t.right,t.top,t.bottom)}function _t(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 Ze(r.clientX,r.clientX,r.clientY,r.clientY)}else if(t.getBoundingClientRect)n=mt(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 Ze(o,s,a,l)}if(!Qe(n,e))for(var c=0,u=Je(n,e);c<u.length;c++){var d=u[c];n[Me[d]]=e[Me[d]]}}else n=new Ze(0,0,0,0);return n}(n,e.target),s=function(e,t,n,r,i){return e.isAuto&&(e.alignmentEdge=gt(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({},$e[e]);return ie()?(r.alignmentEdge&&r.alignmentEdge%2==0&&(r.alignmentEdge=-1*r.alignmentEdge),void 0!==t?$e[t]:r):r}(e.directionalHint,e.directionalHintForRTL,r),a,n,e.coverTarget,e.alignTargetEdge),l=vt(mt(t),a,n,s,o,e.directionalHintFixed,e.coverTarget);return i(i({},l),{targetRectangle:a})}function yt(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 c,u,d,h,p,f,g,v,m,_=e.bounds?(m=e.bounds,new Ze(m.left,m.right,m.top,m.bottom)):new Ze(0,window.innerWidth-function(){if(void 0===Fe){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),Fe=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return Fe}(),0,window.innerHeight),y=_t(l,n,_,r),x=(c=y,u=function(e,t){var n=t.targetRectangle,r=pt(t.targetEdge),i=r.positiveEdge,o=r.negativeEdge,a=nt(n,t.targetEdge),s=new Ze(e/2,t.elementRectangle.width-e/2,e/2,t.elementRectangle.height-e/2),l=new Ze(0,e,0,e);return lt(l=dt(l=at(l,-1*t.targetEdge,-e/2),-1*t.targetEdge,a-it(i,t.elementRectangle)),s,i)?lt(l,s,o)||(l=st(l,s,o)):l=st(l,s,i),l}(a,y),d=_,h=-1*c.targetEdge,p=new Ze(0,c.elementRectangle.width,0,c.elementRectangle.height),f={},g=ft(c.elementRectangle,c.alignmentEdge?c.alignmentEdge:pt(h).positiveEdge,d),v=ot(c.elementRectangle,c.targetRectangle,h)>Math.abs(et(u,h)),f[Me[h]]=et(u,h),f[Me[g]]=ot(u,p,g),{elementPosition:i({},f),closestEdge:gt(c.targetEdge,u,p),targetEdge:h,hideBeak:!v});return i(i({},function(e,t,n,r,i){return{elementPosition:function(e,t,n,r,i,o,a,s){var l={},c=mt(t),u=o?n:-1*n,d=i||pt(n).positiveEdge;return a||(d=ft(e,d,r)),l[Me[u]]=ot(e,c,u),l[Me[d]]=ot(e,c,d),s&&(l[Me[-1*u]]=ot(e,c,-1*u),l[Me[-1*d]]=ot(e,c,-1*d)),l}(e.elementRectangle,t,e.targetEdge,n,e.alignmentEdge,r,i,e.forcedInBounds),targetEdge:e.targetEdge,alignmentEdge:e.alignmentEdge}}(y,t,_,e.coverTarget,o)),{beakPosition:x})}var xt=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=u(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=u(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,c=0,u=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-c,p=s?a-h:a;return h>=a&&(!t||s)?(c=n,u&&(r.clearTimeout(u),u=null),i=e.apply(r._parent,o)):null===u&&l&&(u=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,c=!0,u=null,d=0,h=Date.now(),p=null;n&&"boolean"==typeof n.leading&&(l=n.leading),n&&"boolean"==typeof n.trailing&&(c=n.trailing),n&&"number"==typeof n.maxWait&&!isNaN(n.maxWait)&&(u=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!==u&&(f>=u&&p?m=!0:a=Math.min(a,u-f)),i>=s||m||n?g(t):null!==p&&e||!c||(p=r.setTimeout(v,a)),o},m=function(){return!!p},_=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return a=e,v(!0)};return _.cancel=function(){m()&&f(Date.now())},_.flush=function(){return m()&&g(Date.now()),o},_.pending=m,_},e.prototype.requestAnimationFrame=function(e,t){var n=this,r=0,i=u(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=u(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 bt(e){var t=s.useRef();return void 0===t.current&&(t.current={value:"function"==typeof e?e():e}),t.current.value}function Ct(){var e=bt((function(){return new xt}));return s.useEffect((function(){return function(){return e.dispose()}}),[e]),e}function St(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 Et(){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 kt=s.createContext({window:"object"==typeof window?window:void 0}),Lt=function(){return s.useContext(kt).window},wt=function(){var e;return null===(e=s.useContext(kt).window)||void 0===e?void 0:e.document};function At(e){var t=e.originalElement,n=e.containsFocus;t&&n&&t!==u()&&setTimeout((function(){var e;null===(e=t.focus)||void 0===e||e.call(t)}),0)}var Dt=function(e,t){return e&&t?[].slice.call(t.children).filter((function(t){return t!==e})):[]},Tt=s.forwardRef((function(e,t){e=i({shouldRestoreFocus:!0},e);var n=s.useRef(),r=Et(n,t);!function(e,t){var n=e["aria-modal"];s.useEffect((function(){var e,r=$();if(n&&r&&t&&t.current){var i=null===(e=t.current.parentElement)||void 0===e?void 0:e.parentElement,o=Dt(i,null==i?void 0:i.parentElement);if((null==i?void 0:i.parentElement)!==r.body){var a=function(e,t){for(var n=e;n&&n.parentElement!==t.body;)n=n.parentElement;return n}(t.current,r);o.concat(Dt(a,r.body))}return(o=o.filter((function(e){return"TEMPLATE"!==e.tagName&&"SCRIPT"!==e.tagName&&"STYLE"!==e.tagName&&!e.hasAttribute("aria-hidden")}))).forEach((function(e){return e.setAttribute("aria-hidden","true")})),function(){return o.forEach((function(e){return e.removeAttribute("aria-hidden")}))}}}),[n,t])}(e,n),function(e,t){var n=e.onRestoreFocus,r=void 0===n?At: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}}),[]),St(t,"focus",s.useCallback((function(){o.current=!0}),[]),!0),St(t,"blur",s.useCallback((function(e){t.current&&e.relatedTarget&&!t.current.contains(e.relatedTarget)&&(o.current=!1)}),[]),!0)}(e,n);var o=e.role,a=e.className,l=e.ariaLabel,c=e.ariaLabelledBy,u=e.ariaDescribedBy,d=e.style,h=e.children,p=e.onDismiss,f=function(e,t){var n=Ct(),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}(e,n),g=s.useCallback((function(e){switch(e.which){case 27:p&&(p(e),e.preventDefault(),e.stopPropagation())}}),[p]);return St(Lt(),"keydown",g),s.createElement("div",i({ref:r},ze(e,Ve),{className:a,role:o,"aria-label":l,"aria-labelledby":c,"aria-describedby":u,onKeyDown:g,style:i({overflowY:f?"scroll":void 0,outline:"none"},d)}),h)}));function Mt(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}var Pt="cubic-bezier(.1,.9,.2,1)",Ft="cubic-bezier(.1,.25,.75,.9)",It="0.167s",Ot="0.267s",Ht="0.367s",Nt="0.467s",Rt=Mt({from:{opacity:0},to:{opacity:1}}),Bt=Mt({from:{opacity:1},to:{opacity:0,visibility:"hidden"}}),Vt=_n(-10),zt=_n(-20),Wt=_n(-40),Ut=_n(-400),Yt=_n(10),jt=_n(20),qt=_n(40),Xt=_n(400),Kt=yn(10),Zt=yn(20),Gt=yn(-10),$t=yn(-20),Qt=xn(10),Jt=xn(20),en=xn(40),tn=xn(400),nn=xn(-10),rn=xn(-20),on=xn(-40),an=xn(-400),sn=bn(-10),ln=bn(-20),cn=bn(10),un=bn(20),dn=Mt({from:{transform:"scale3d(.98,.98,1)"},to:{transform:"scale3d(1,1,1)"}}),hn=Mt({from:{transform:"scale3d(1,1,1)"},to:{transform:"scale3d(.98,.98,1)"}}),pn=Mt({from:{transform:"scale3d(1.03,1.03,1)"},to:{transform:"scale3d(1,1,1)"}}),fn=Mt({from:{transform:"scale3d(1,1,1)"},to:{transform:"scale3d(1.03,1.03,1)"}}),gn=Mt({from:{transform:"rotateZ(0deg)"},to:{transform:"rotateZ(90deg)"}}),vn=Mt({from:{transform:"rotateZ(0deg)"},to:{transform:"rotateZ(-90deg)"}});function mn(e,t,n){return{animationName:e,animationDuration:t,animationTimingFunction:n,animationFillMode:"both"}}function _n(e){return Mt({from:{transform:"translate3d("+e+"px,0,0)",pointerEvents:"none"},to:{transform:"translate3d(0,0,0)",pointerEvents:"auto"}})}function yn(e){return Mt({from:{transform:"translate3d(0,"+e+"px,0)",pointerEvents:"none"},to:{transform:"translate3d(0,0,0)",pointerEvents:"auto"}})}function xn(e){return Mt({from:{transform:"translate3d(0,0,0)"},to:{transform:"translate3d("+e+"px,0,0)"}})}function bn(e){return Mt({from:{transform:"translate3d(0,0,0)"},to:{transform:"translate3d(0,"+e+"px,0)"}})}var Cn,Sn,En,kn,Ln,wn=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:mn(Rt+","+Vt,Ht,Pt),slideRightIn20:mn(Rt+","+zt,Ht,Pt),slideRightIn40:mn(Rt+","+Wt,Ht,Pt),slideRightIn400:mn(Rt+","+Ut,Ht,Pt),slideLeftIn10:mn(Rt+","+Yt,Ht,Pt),slideLeftIn20:mn(Rt+","+jt,Ht,Pt),slideLeftIn40:mn(Rt+","+qt,Ht,Pt),slideLeftIn400:mn(Rt+","+Xt,Ht,Pt),slideUpIn10:mn(Rt+","+Kt,Ht,Pt),slideUpIn20:mn(Rt+","+Zt,Ht,Pt),slideDownIn10:mn(Rt+","+Gt,Ht,Pt),slideDownIn20:mn(Rt+","+$t,Ht,Pt),slideRightOut10:mn(Bt+","+Qt,Ht,Pt),slideRightOut20:mn(Bt+","+Jt,Ht,Pt),slideRightOut40:mn(Bt+","+en,Ht,Pt),slideRightOut400:mn(Bt+","+tn,Ht,Pt),slideLeftOut10:mn(Bt+","+nn,Ht,Pt),slideLeftOut20:mn(Bt+","+rn,Ht,Pt),slideLeftOut40:mn(Bt+","+on,Ht,Pt),slideLeftOut400:mn(Bt+","+an,Ht,Pt),slideUpOut10:mn(Bt+","+sn,Ht,Pt),slideUpOut20:mn(Bt+","+ln,Ht,Pt),slideDownOut10:mn(Bt+","+cn,Ht,Pt),slideDownOut20:mn(Bt+","+un,Ht,Pt),scaleUpIn100:mn(Rt+","+dn,Ht,Pt),scaleDownIn100:mn(Rt+","+pn,Ht,Pt),scaleUpOut103:mn(Bt+","+fn,It,Ft),scaleDownOut98:mn(Bt+","+hn,It,Ft),fadeIn100:mn(Rt,It,Ft),fadeIn200:mn(Rt,Ot,Ft),fadeIn400:mn(Rt,Ht,Ft),fadeIn500:mn(Rt,Nt,Ft),fadeOut100:mn(Bt,It,Ft),fadeOut200:mn(Bt,Ot,Ft),fadeOut400:mn(Bt,Ht,Ft),fadeOut500:mn(Bt,Nt,Ft),rotate90deg:mn(gn,"0.1s",Ft),rotateN90deg:mn(vn,"0.1s",Ft)}),An={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)"}(Cn||(Cn={})),function(e){e.Arabic="'"+Cn.Arabic+"'",e.ChineseSimplified="'Microsoft Yahei UI', Verdana, Simsun",e.ChineseTraditional="'Microsoft Jhenghei UI', Pmingliu",e.Cyrillic="'"+Cn.Cyrillic+"'",e.EastEuropean="'"+Cn.EastEuropean+"'",e.Greek="'"+Cn.Greek+"'",e.Hebrew="'"+Cn.Hebrew+"'",e.Hindi="'Nirmala UI'",e.Japanese="'Yu Gothic UI', 'Meiryo UI', Meiryo, 'MS Pgothic', Osaka",e.Korean="'Malgun Gothic', Gulim",e.Selawik="'"+Cn.Selawik+"'",e.Thai="'Leelawadee UI Web', 'Kmer UI'",e.Vietnamese="'"+Cn.Vietnamese+"'",e.WestEuropean="'"+Cn.WestEuropean+"'",e.Armenian="'"+Cn.Armenian+"'",e.Georgian="'"+Cn.Georgian+"'"}(Sn||(Sn={})),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"}(En||(En={})),function(e){e.light=100,e.semilight=300,e.regular=400,e.semibold=600,e.bold=700}(kn||(kn={})),function(e){e.xSmall="10px",e.small="12px",e.medium="16px",e.large="20px"}(Ln||(Ln={}));var Dn,Tn="@media screen and (-ms-high-contrast: active), (forced-colors: active)",Mn="@media screen and (-ms-high-contrast: white-on-black), (forced-colors: white-on-black)",Pn="ms-Fabric--isFocusVisible",Fn="ms-Fabric--isFocusHidden";function In(e,t){var n=t?u(t):u();if(n){var r=n.document.body.classList;r.add(e?Pn:Fn),r.remove(e?Fn:Pn)}}function On(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,c=void 0===l?"relative":l,u=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:c,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:Dn.FocusStyle,selectors:(r={},r[Tn]=u,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}(Dn||(Dn={}));var Hn=!1,Nn=0,Rn={empty:!0},Bn={},Vn="undefined"==typeof WeakMap?null:WeakMap;function zn(){Nn++}function Wn(e,t,n){if(void 0===t&&(t=100),void 0===n&&(n=!1),!Vn)return e;if(!Hn){var r=k.getInstance();r&&r.onReset&&k.getInstance().onReset(zn),Hn=!0}var i,o=0,a=Nn;return function(){for(var r=[],s=0;s<arguments.length;s++)r[s]=arguments[s];var l=i;(void 0===i||a!==Nn||t>0&&o>t)&&(i=jn(),o=0,a=Nn),l=i;for(var c=0;c<r.length;c++){var u=Yn(r[c]);l.map.has(u)||l.map.set(u,jn()),l=l.map.get(u)}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 Un(e){if(!Vn)return e;var t=new Vn;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 Yn(e){return e?"object"==typeof e||"function"==typeof e?e:(Bn[e]||(Bn[e]={val:e}),Bn[e]):Rn}function jn(){return{map:Vn?new Vn:null}}var qn=Wn((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 Xn(e,t,n){return qn(e,void 0!==n?n:t.disableGlobalClassNames)}var Kn,Zn,Gn=function(){return(Gn=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}).apply(this,arguments)},$n="undefined"==typeof window?e.g:window;$n&&$n.CSPSettings&&$n.CSPSettings.nonce,(Zn=$n.__themeState__||{theme:void 0,lastStyleElement:void 0,registeredStyles:[]}).runState||(Zn=Gn({},Zn,{perf:{count:0,duration:0},runState:{flushTimer:0,mode:0,buffer:[]}})),Zn.registeredThemableStyles||(Zn=Gn({},Zn,{registeredThemableStyles:[]})),$n.__themeState__=Zn,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)"}(Kn||(Kn={}));var Qn,Jn={elevation4:Kn.depth4,elevation8:Kn.depth8,elevation16:Kn.depth16,elevation64:Kn.depth64,roundedCorner2:"2px",roundedCorner4:"4px",roundedCorner6:"6px"},er="'Segoe UI', '"+Cn.WestEuropean+"'",tr={ar:Sn.Arabic,bg:Sn.Cyrillic,cs:Sn.EastEuropean,el:Sn.Greek,et:Sn.EastEuropean,he:Sn.Hebrew,hi:Sn.Hindi,hr:Sn.EastEuropean,hu:Sn.EastEuropean,ja:Sn.Japanese,kk:Sn.EastEuropean,ko:Sn.Korean,lt:Sn.EastEuropean,lv:Sn.EastEuropean,pl:Sn.EastEuropean,ru:Sn.Cyrillic,sk:Sn.EastEuropean,"sr-latn":Sn.EastEuropean,th:Sn.Thai,tr:Sn.EastEuropean,uk:Sn.Cyrillic,vi:Sn.Vietnamese,"zh-hans":Sn.ChineseSimplified,"zh-hant":Sn.ChineseTraditional,hy:Sn.Armenian,ka:Sn.Georgian};function nr(e,t,n){return{fontFamily:n,MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontSize:e,fontWeight:t}}var rr,ir="language",or=(rr=function(e){for(var t in tr)if(tr.hasOwnProperty(t)&&e&&0===t.indexOf(e))return tr[t];return er}(function(e){if(void 0===e&&(e="sessionStorage"),void 0===Qn){var t=$(),n="localStorage"===e?function(e){var t=null;try{var n=u();t=n?n.localStorage.getItem("language"):null}catch(e){}return t}():"sessionStorage"===e?Q(ir):void 0;n&&(Qn=n),void 0===Qn&&t&&(Qn=t.documentElement.getAttribute("lang")),void 0===Qn&&(Qn="en")}return Qn}())+", 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif",{tiny:nr(En.mini,kn.regular,rr),xSmall:nr(En.xSmall,kn.regular,rr),small:nr(En.small,kn.regular,rr),smallPlus:nr(En.smallPlus,kn.regular,rr),medium:nr(En.medium,kn.regular,rr),mediumPlus:nr(En.mediumPlus,kn.regular,rr),large:nr(En.large,kn.regular,rr),xLarge:nr(En.xLarge,kn.semibold,rr),xLargePlus:nr(En.xLargePlus,kn.semibold,rr),xxLarge:nr(En.xxLarge,kn.semibold,rr),xxLargePlus:nr(En.xxLargePlus,kn.semibold,rr),superLarge:nr(En.superLarge,kn.semibold,rr),mega:nr(En.mega,kn.semibold,rr)});function ar(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 sr(e,t,n,r,i){void 0===r&&(r="segoeui");var o=e+"/"+n+"/"+r;ar(t,o+"-light",kn.light,i&&i+" Light"),ar(t,o+"-semilight",kn.semilight,i&&i+" SemiLight"),ar(t,o+"-regular",kn.regular,i),ar(t,o+"-semibold",kn.semibold,i&&i+" SemiBold"),ar(t,o+"-bold",kn.bold,i&&i+" Bold")}function lr(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];cr(e||{},o)}return e}function cr(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:cr(e[r]||{},i,n)}}return n.pop(),e}function ur(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}(dr(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 dr(e,t,n,r,o){void 0===o&&(o=!1);var a={},s=e||{},l=s.white,c=s.black,u=s.themePrimary,d=s.themeDark,h=s.themeDarker,p=s.themeDarkAlt,f=s.themeLighter,g=s.neutralLight,v=s.neutralLighter,m=s.neutralDark,_=s.neutralQuaternary,y=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),c&&(a.bodyTextChecked=c,a.buttonTextCheckedHovered=c),u&&(a.link=u,a.primaryButtonBackground=u,a.inputBackgroundChecked=u,a.inputIcon=u,a.inputFocusBorderAlt=u,a.menuIcon=u,a.menuHeader=u,a.accentButtonBackground=u),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),_&&(a.primaryButtonTextDisabled=_,a.disabledSubtext=_),y&&(a.listItemBackgroundCheckedHovered=y),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),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),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";sr(t,Cn.Thai,"leelawadeeui-thai","leelawadeeui"),sr(t,Cn.Arabic,"segoeui-arabic"),sr(t,Cn.Cyrillic,"segoeui-cyrillic"),sr(t,Cn.EastEuropean,"segoeui-easteuropean"),sr(t,Cn.Greek,"segoeui-greek"),sr(t,Cn.Hebrew,"segoeui-hebrew"),sr(t,Cn.Vietnamese,"segoeui-vietnamese"),sr(t,Cn.WestEuropean,"segoeui-westeuropean","segoeui","Segoe UI"),sr(t,Sn.Selawik,"selawik","selawik"),sr(t,Cn.Armenian,"segoeui-armenian"),sr(t,Cn.Georgian,"segoeui-georgian"),ar("Leelawadee UI Web",t+"/leelawadeeui-thai/leelawadeeui-semilight",kn.light),ar("Leelawadee UI Web",t+"/leelawadeeui-thai/leelawadeeui-bold",kn.semibold)}}(function(){var e,t,n=null===(e=u())||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 hr={s2:"4px",s1:"8px",m:"16px",l1:"20px",l2:"32px"};function pr(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=lr({},e,t,{semanticColors:dr(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]=lr(o.fonts[l],t.defaultFontStyle,null===(i=null==t?void 0:t.fonts)||void 0===i?void 0:i[l])}return o}({palette:An,effects:Jn,fonts:or,spacing:hr,isInverted:n,disableGlobalClassNames:!1,semanticColors:ur(An,Jn,void 0,n,t),rtl:void 0},e)}var fr=pr({});function gr(){var e,t;if(!_.getSettings(["theme"]).theme){var n=u();(null===(t=null==n?void 0:n.FabricConfig)||void 0===t?void 0:t.theme)&&(fr=pr(n.FabricConfig.theme)),_.applySettings(((e={}).theme=fr,e))}}gr();var vr,mr={},_r=void 0;try{_r=window}catch(e){}function yr(e,t){if(void 0!==_r){var n=_r.__packages__=_r.__packages__||{};n[e]&&mr[e]||(mr[e]=t,(n[e]=n[e]||[]).push(t))}}yr("@fluentui/set-version","6.0.0"),yr("@fluentui/style-utilities","8.3.4"),gr();var xr=((vr={})[Me.top]=wn.slideUpIn10,vr[Me.bottom]=wn.slideDownIn10,vr[Me.left]=wn.slideLeftIn10,vr[Me.right]=wn.slideRightIn10,vr),br={opacity:0,filter:"opacity(0)",pointerEvents:"none"},Cr=["role","aria-roledescription"],Sr={preventDismissOnLostFocus:!1,preventDismissOnScroll:!1,preventDismissOnResize:!1,isBeakVisible:!0,beakWidth:16,gapSpace:0,minPagePadding:8,directionalHint:7},Er=le({disableCaching:!0});function kr(e,t,n,r,o){var a=s.useState(),l=a[0],c=a[1],u=s.useRef(0),d=s.useRef(),h=Ct(),p=e.hidden,f=e.target,g=e.finalHeight,v=e.onPositioned,m=e.directionalHint;return s.useEffect((function(){if(!p){var a=h.requestAnimationFrame((function(){if(t.current&&n){var a=i(i({},e),{target:r.current,bounds:o()}),s=d.current===f?l:void 0,h=g?function(e,t,n,r){return function(e,t,n,r){return yt(e,t,n,r,!0)}(e,t,n,r)}(a,t.current,n,s):function(e,t,n,r){return yt(e,t,n,r)}(a,t.current,n,s);!l&&h||l&&h&&(m=h,!Ar((p=l).elementPosition,m.elementPosition)||!Ar(p.beakPosition.elementPosition,m.beakPosition.elementPosition))&&u.current<5?(u.current++,c(h)):u.current>0&&(u.current=0,null==v||v(l))}var p,m}),n);return d.current=f,function(){h.cancelAnimationFrame(a),d.current=void 0}}c(void 0),u.current=0}),[p,m,h,n,t,r,g,o,v,l,e,f]),l}var Lr=s.memo(s.forwardRef((function(e,t){var n=function(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}(Sr,e),r=n.styles,o=n.style,a=n.ariaLabel,l=n.ariaDescribedBy,c=n.ariaLabelledBy,u=n.className,d=n.isBeakVisible,h=n.children,p=n.beakWidth,f=n.calloutWidth,g=n.calloutMaxWidth,v=n.calloutMinWidth,m=n.doNotLayer,_=n.finalHeight,y=n.hideOverflow,x=void 0===y?!!_:y,b=n.backgroundColor,C=n.calloutMaxHeight,S=n.onScroll,E=n.shouldRestoreFocus,k=void 0===E||E,L=n.target,w=n.hidden,A=n.onLayerMounted,D=s.useRef(null),T=s.useState(null),M=T[0],P=T[1],F=s.useCallback((function(e){P(e)}),[]),I=Et(D,t),O=function(e,t){var n=s.useRef(),r=s.useRef(null),i=Lt();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}),H=O[0],N=O[1],R=kr(n,D,M,H,function(e,t,n){var r=e.bounds,i=e.minPagePadding,o=void 0===i?Sr.minPagePadding:i,a=e.target,l=s.useState(!1),c=l[0],u=l[1],d=s.useRef(),h=s.useCallback((function(){if(!d.current||c){var e="function"==typeof r?n?r(a,n):void 0:r;!e&&n&&(e={top:(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 c=l[s];r&&c.left<=r&&c.right>=r&&i&&c.top<=i&&c.bottom>=i&&(a={top:c.top,left:c.left,right:c.right,bottom:c.bottom,width:c.width,height:c.height})}return a}(e,t)}(t.current,n)).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,c&&u(!1)}return d.current}),[r,o,a,t,n,c]),p=Ct();return St(n,"resize",p.debounce((function(){u(!0)}),500,{leading:!0})),h}(n,H,N)),B=function(e,t,n,r,i){var o=e.hidden,a=e.onDismiss,l=e.preventDismissOnScroll,c=e.preventDismissOnResize,u=e.preventDismissOnLostFocus,d=e.dismissOnTargetClick,h=e.shouldDismissOnWindowFocus,p=e.preventDismissOnEvent,f=s.useRef(!1),g=Ct(),v=bt([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){c||p&&p(e)||null==a||a(e)},s=function(e){u||v(e)},v=function(e){var t=e.target,o=n.current&&!xe(n.current,t);if(o&&f.current)f.current=!1;else if(!r.current&&o||e.target!==i&&o&&(!r.current||"stopPropagation"in r.current||d||t!==r.current&&!xe(r.current,t))){if(p&&p(e))return;null==a||a(e)}},_=function(e){h&&((!p||p(e))&&(p||u)||(null==i?void 0:i.document.hasFocus())||null!==e.relatedTarget||null==a||a(e))},y=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",_,!0)];n((function(){r.forEach((function(e){return e()}))}))}}),0)}));return function(){y.then((function(e){return e()}))}}),[o,g,n,r,i,a,h,d,u,c,l,m,p]),v}(n,R,D,H,N),V=B[0],z=B[1];if(function(e,t,n){var r=e.hidden,i=e.setInitialFocus,o=Ct(),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,R,M),s.useEffect((function(){w||null==A||A()}),[w]),!N)return null;var W=x,U=d&&!!L,Y=Er(r,{theme:n.theme,className:u,overflowYHidden:W,calloutWidth:f,positions:R,beakWidth:p,backgroundColor:b,calloutMaxWidth:g,calloutMinWidth:v,doNotLayer:m}),j=i(i({maxHeight:C||"100%"},o),W&&{overflowY:"hidden"}),q=n.hidden?{visibility:"hidden"}:void 0;return s.createElement("div",{ref:I,className:Y.container,style:q},s.createElement("div",i({},ze(n,Ve,Cr),{className:We(Y.root,R&&R.targetEdge&&xr[R.targetEdge]),style:R?R.elementPosition:br,tabIndex:-1,ref:F}),U&&s.createElement("div",{className:Y.beak,style:wr(R)}),U&&s.createElement("div",{className:Y.beakCurtain}),s.createElement(Tt,i({},ze(n,Cr),{ariaDescribedBy:l,ariaLabel:a,ariaLabelledBy:c,className:Y.calloutMain,onDismiss:n.onDismiss,onMouseDown:V,onMouseUp:z,onRestoreFocus:n.onRestoreFocus,onScroll:S,shouldRestoreFocus:k,style:j}),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 wr(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 Ar(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 Dr(e){return{height:e,width:e}}Lr.displayName="CalloutContentBase";var Tr,Mr={container:"ms-Callout-container",root:"ms-Callout",beak:"ms-Callout-beak",beakCurtain:"ms-Callout-beakCurtain",calloutMain:"ms-Callout-main"},Pr=b(Lr,(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,c=e.calloutMinWidth,u=e.doNotLayer,d=Xn(Mr,n),h=n.semanticColors,p=n.effects;return{container:[d.container,{position:"relative"}],root:[d.root,n.fonts.medium,{position:"absolute",zIndex:u?Dn.Layer:void 0,boxSizing:"border-box",borderRadius:p.roundedCorner2,boxShadow:p.elevation16,selectors:(t={},t[Tn]={borderWidth:1,borderStyle:"solid",borderColor:"WindowText"},t)},{selectors:{"&::-moz-focus-inner":{border:0},"&":{outline:"transparent"}}},r,!!o&&{width:o},!!l&&{maxWidth:l},!!c&&{minWidth:c}],beak:[d.beak,{position:"absolute",backgroundColor:h.menuBackground,boxShadow:"inherit",border:"inherit",boxSizing:"border-box",transform:"rotate(45deg)"},Dr(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",borderRadius:p.roundedCorner2},i&&{overflowY:"hidden"},s&&{backgroundColor:s}]}}),void 0,{scope:"CalloutContent"}),Fr=ReactDOM,Ir=((Tr={})[38]=1,Tr[40]=1,Tr[37]=1,Tr[39]=1,Tr[36]=1,Tr[35]=1,Tr[9]=1,Tr[33]=1,Tr[34]=1,Tr),Or=new WeakMap;function Hr(e,t){var n,r=Or.get(e);return n=r?r+t:1,Or.set(e,n),n}function Nr(e){In(!1,e.target)}function Rr(e){"mouse"!==e.pointerType&&In(!1,e.target)}function Br(e){var t;t=e.which,Ir[t]&&In(!0,e.target)}function Vr(e,t){return void 0===e&&(e={}),(zr(t)?t:(void 0===(n=t)&&(n={}),function(e){var t=i({},e);for(var r in n)n.hasOwnProperty(r)&&(t[r]=i(i({},e[r]),n[r]));return t}))(e);var n}function zr(e){return"function"==typeof e}var Wr=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(){_.observe(this._onCustomizationChange)},t.prototype.componentWillUnmount=function(){_.unobserve(this._onCustomizationChange)},t.prototype.render=function(){var e=this,t=this.props.contextTransform;return s.createElement(y.Consumer,null,(function(n){var r=function(e,t){var n,r,o=(t||{}).customizations,a=void 0===o?{settings:{},scopedSettings:{}}:o;return{customizations:{settings:(n=a.settings,r=e.settings,void 0===n&&(n={}),(zr(r)?r:function(e){return function(t){return e?i(i({},t),e):t}}(r))(n)),scopedSettings:Vr(a.scopedSettings,e.scopedSettings),inCustomizerContext:!0}}}(e.props,n);return t&&(r=t(r)),s.createElement(y.Provider,{value:r},e.props.children)}))},t}(s.Component),Ur=le(),Yr=Wn((function(e,t){return pr(i(i({},e),{rtl:t}))})),jr=s.forwardRef((function(e,t){var n,r=e.className,o=e.theme,a=e.applyTheme,l=e.applyThemeToBody,c=e.styles,d=Ur(c,{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=u(null==n?void 0:n.current);if(t&&!0!==(null===(e=t.FabricConfig)||void 0===e?void 0:e.disableFocusRects)){var r=Hr(t,1);return r<=1&&(t.addEventListener("mousedown",Nr,!0),t.addEventListener("pointerdown",Rr,!0),t.addEventListener("keydown",Br,!0)),function(){var e;t&&!0!==(null===(e=t.FabricConfig)||void 0===e?void 0:e.disableFocusRects)&&0===(r=Hr(t,-1))&&(t.removeEventListener("mousedown",Nr,!0),t.removeEventListener("pointerdown",Rr,!0),t.removeEventListener("keydown",Br,!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,c=e.dir,u=e.theme,d=ze(e,Ve,["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:Et(n,r)}));return f&&(g=s.createElement(Wr,{settings:{theme:Yr(u,"rtl"===c)}},g)),g}(e,d,h,t))}));jr.displayName="FabricBase";var qr,Xr={fontFamily:"inherit"},Kr={root:"ms-Fabric",bodyThemed:"ms-Fabric-bodyThemed"},Zr=b(jr,(function(e){var t=e.theme,n=e.className,r=e.applyTheme;return{root:[Xn(Kr,t).root,t.fonts.medium,{color:t.palette.neutralPrimary,selectors:{"& button":Xr,"& input":Xr,"& textarea":Xr}},r&&{color:t.semanticColors.bodyText,backgroundColor:t.semanticColors.bodyBackground},n],bodyThemed:[{backgroundColor:t.semanticColors.bodyBackground}]}}),void 0,{scope:"Fabric"}),Gr="data-portal-element",$r={};function Qr(e){console&&console.warn&&console.warn(e)}function Jr(e,t,n,r,i){if(!0===i)for(var o=0,a=n;o<a.length;o++){var s=a[o];s in t||Qr(e+" property '"+s+"' is required when '"+r+"' is used.'")}}function ei(e,t,n){for(var r in n)if(t&&r in t){var i=e+" property '"+r+"' was used but has been deprecated.",o=n[r];o&&(i+=" Use '"+o+"' instead."),Qr(i)}}function ti(e,t){return void 0!==e[t]&&null!==e[t]}function ni(e){var t=(0,s.useRef)();return(0,s.useEffect)((function(){t.current=e})),t.current}qr={valueOnChange:{},valueDefaultValue:{},controlledToUncontrolled:{},uncontrolledToControlled:{}};var ri=0;function ii(e){var t=e.name,n=e.props,r=e.other,o=void 0===r?[]:r,a=e.conditionallyRequired,l=e.deprecations,c=e.mutuallyExclusive,u=e.controlledUsage,d=s.useRef(!1),h=bt((function(){return"useWarnings_"+ri++})),p=ni(n);if(!d.current){d.current=!0;for(var f=0,g=o;f<g.length;f++)Qr(g[f]);if(a)for(var v=0,m=a;v<m.length;v++){var _=m[v];Jr(t,n,_.requiredProps,_.conditionalPropName,_.condition)}l&&ei(t,n,l),c&&function(e,t,n){for(var r in n)if(t&&void 0!==t[r]){var i=n[r];i&&void 0!==t[i]&&Qr(e+" property '"+r+"' is mutually exclusive with '"+n[r]+"'. Use one or the other.")}}(t,n,c)}u&&function(e){var t=e.componentId,n=e.componentName,r=e.defaultValueProp,i=e.props,o=e.oldProps,a=e.onChangeProp,s=e.readOnlyProp,l=e.valueProp,c=o?ti(o,l):void 0,u=ti(i,l);if(u){var d=!!i[a],h=!(!s||!i[s]);d||h||qr.valueOnChange[t]||(qr.valueOnChange[t]=!0,Qr("Warning: You provided a '"+l+"' prop to a "+n+" without an '"+a+"' handler. This will render a read-only field. If the field should be mutable use '"+r+"'. Otherwise, set '"+a+"'"+(s?" or '"+s+"'":"")+".")),null==i[r]||qr.valueDefaultValue[t]||(qr.valueDefaultValue[t]=!0,Qr("Warning: You provided both '"+l+"' and '"+r+"' to a "+n+". Form fields must be either controlled or uncontrolled (specify either the '"+l+"' prop, or the '"+r+"' prop, but not both). Decide between using a controlled or uncontrolled "+n+" and remove one of these props. More info: https://fb.me/react-controlled-components"))}if(o&&u!==c){var p=c?"a controlled":"an uncontrolled",f=c?"uncontrolled":"controlled",g=c?qr.controlledToUncontrolled:qr.uncontrolledToControlled;g[t]||(g[t]=!0,Qr("Warning: A component is changing "+p+" "+n+" to be "+f+". "+n+"s should not switch from controlled to uncontrolled (or vice versa). Decide between using controlled or uncontrolled for the lifetime of the component. More info: https://fb.me/react-controlled-components"))}}(i(i({},u),{componentId:h,props:n,componentName:t,oldProps:p}))}var oi,ai=le(),si=s.forwardRef((function(e,t){var n=s.useRef(null),r=Et(n,t),o=s.useRef(),a=s.useState(!1),l=a[0],c=a[1],u=wt(),d=e.eventBubblingEnabled,h=e.styles,p=e.theme,f=e.className,g=e.children,v=e.hostId,m=e.onLayerDidMount,_=void 0===m?function(){}:m,y=e.onLayerMounted,x=void 0===y?function(){}:y,b=e.onLayerWillUnmount,C=e.insertFirst,S=ai(h,{theme:p,className:f,isNotHost:!v}),E=function(){null==b||b();var e=o.current;o.current=void 0,e&&e.parentNode&&e.parentNode.removeChild(e)},k=function(){var e=function(){if(u)return v?u.getElementById(v):u.body}();if(u&&e){E();var t=u.createElement("div");t.className=S.root,t.setAttribute(Gr,"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))}(t,n.current),C?e.insertBefore(t,e.firstChild):e.appendChild(t),o.current=t,c(!0)}};return s.useLayoutEffect((function(){return k(),v&&function(e,t){$r[e]||($r[e]=[]),$r[e].push(t)}(v,k),function(){E(),v&&function(e,t){if($r[e]){var n=$r[e].indexOf(t);n>=0&&($r[e].splice(n,1),0===$r[e].length&&delete $r[e])}}(v,k)}}),[v]),s.useEffect((function(){o.current&&l&&(null==x||x(),null==_||_(),c(!1))}),[l,x,_]),function(e){ii({name:"Layer",props:e,deprecations:{onLayerMounted:"onLayerDidMount"}})}(e),s.createElement("span",{className:"ms-layer",ref:r},o.current&&Fr.createPortal(s.createElement(Zr,i({},!d&&(oi||(oi={},["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 oi[e]=li}))),oi),{className:S.content}),g),o.current))}));si.displayName="LayerBase";var li=function(e){e.eventPhase===Event.BUBBLING_PHASE&&"mouseenter"!==e.type&&"mouseleave"!==e.type&&"touchstart"!==e.type&&"touchend"!==e.type&&e.stopPropagation()},ci={root:"ms-Layer",rootNoHost:"ms-Layer--fixed",content:"ms-Layer-content"},ui=b(si,(function(e){var t=e.className,n=e.isNotHost,r=e.theme,i=Xn(ci,r);return{root:[i.root,r.fonts.medium,n&&[i.rootNoHost,{position:"fixed",zIndex:Dn.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"]}),di=s.forwardRef((function(e,t){var n=e.layerProps,r=e.doNotLayer,a=o(e,["layerProps","doNotLayer"]),l=s.createElement(Pr,i({},a,{doNotLayer:r,ref:t}));return r?l:s.createElement(ui,i({},n),l)}));di.displayName="Callout";var hi,pi=le(),fi=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,c=e.descriptionMessage;return this._classNames=pi(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},n),s.createElement("div",{className:this._classNames.calloutContentY},i)),!!l&&s.createElement("div",{className:this._classNames.ratio},s.createElement(s.Fragment,null,s.createElement("span",{className:this._classNames.numerator},l[0]),"/",s.createElement("span",{className:this._classNames.denominator},l[1])))),!!c&&s.createElement("div",{className:this._classNames.descriptionMessage},c))},t}(s.Component),gi=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:kn.bold},denominator:{fontWeight:kn.semibold},descriptionMessage:[r.fonts.small,{color:r.semanticColors.bodyText,marginTop:"10px",paddingTop:"10px",borderTop:"1px solid "+r.semanticColors.menuDivider}]}},vi=b(fi,gi);!function(e){e[e.vertical=0]="vertical",e[e.horizontal=1]="horizontal",e[e.bidirectional=2]="bidirectional",e[e.domOrder=3]="domOrder"}(hi||(hi={}));var mi=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 _i(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 yi(e){!function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=_i(e,e[n],t[n]))}(e,{componentDidMount:xi,componentDidUpdate:bi,componentWillUnmount:Ci})}function xi(){Si(this.props.componentRef,this)}function bi(e){e.componentRef!==this.props.componentRef&&(Si(e.componentRef,null),Si(this.props.componentRef,this))}function Ci(){Si(this.props.componentRef,null)}function Si(e,t){e&&("object"==typeof e?e.current=t:"function"==typeof e&&e(t))}function Ei(e){var t=function(e){var t;return"function"==typeof Event?t=new Event(e):(t=document.createEvent("Event")).initEvent(e,!0,!0),t}("MouseEvents");t.initEvent("click",!0,!0),e.dispatchEvent(t)}var ki,Li,wi,Ai="data-is-focusable",Di="data-focuszone-id",Ti="tabindex",Mi="data-no-vertical-wrap",Pi="data-no-horizontal-wrap",Fi=999999999,Ii=-999999999,Oi={},Hi=new Set,Ni=["text","number","password","email","tel","url","search"],Ri=!1,Bi=function(e){function t(n){var r,i,o,a,l,c=e.call(this,n)||this;c._root=s.createRef(),c._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=mi(l)),l.refs=e,l.resolver}),c._onFocus=function(e){if(!c._portalContainsElement(e.target)){var t,n=c.props,r=n.onActiveElementChanged,i=n.doNotAllowFocusEventToPropagate,o=n.stopFocusPropagation,a=n.onFocusNotification,s=n.onFocus,l=n.shouldFocusInnerElementWhenReceivedFocus,u=n.defaultTabbableElement,d=c._isImmediateDescendantOfZone(e.target);if(d)t=e.target;else for(var h=e.target;h&&h!==c._root.current;){if(ke(h)&&c._isImmediateDescendantOfZone(h)){t=h;break}h=_e(h,Ri)}if(l&&e.target===c._root.current){var p=u&&"function"==typeof u&&u(c._root.current);p&&ke(p)?(t=p,p.focus()):(c.focus(!0),c._activeElement&&(t=null))}var f=!c._activeElement;t&&t!==c._activeElement&&((d||f)&&c._setFocusAlignment(t,!0,!0),c._activeElement=t,f&&c._updateTabIndexes()),r&&r(c._activeElement,e),(o||i)&&e.stopPropagation(),s?s(e):a&&a()}},c._onBlur=function(){c._setParkedFocus(!1)},c._onMouseDown=function(e){if(!c._portalContainsElement(e.target)&&!c.props.disabled){for(var t=e.target,n=[];t&&t!==c._root.current;)n.push(t),t=_e(t,Ri);for(;n.length&&((t=n.pop())&&ke(t)&&c._setActiveElement(t,!0),!Le(t)););}},c._onKeyDown=function(e,t){if(!c._portalContainsElement(e.target)){var n=c.props,r=n.direction,i=n.disabled,o=n.isInnerZoneKeystroke,a=n.pagingSupportDisabled,s=n.shouldEnterInnerZone;if(!(i||(c.props.onKeyDown&&c.props.onKeyDown(e),e.isDefaultPrevented()||c._getDocument().activeElement===c._root.current&&c._isInnerZone))){if((s&&s(e)||o&&o(e))&&c._isImmediateDescendantOfZone(e.target)){var l=c._getFirstInnerZone();if(l){if(!l.focus(!0))return}else{if(!we(e.target))return;if(!c.focusElement(Se(e.target,e.target.firstChild,!0)))return}}else{if(e.altKey)return;switch(e.which){case 32:if(c._shouldRaiseClicksOnSpace&&c._tryInvokeClickForFocusable(e.target))break;return;case 37:if(r!==hi.vertical&&(c._preventDefaultWhenHandled(e),c._moveFocusLeft(t)))break;return;case 39:if(r!==hi.vertical&&(c._preventDefaultWhenHandled(e),c._moveFocusRight(t)))break;return;case 38:if(r!==hi.horizontal&&(c._preventDefaultWhenHandled(e),c._moveFocusUp()))break;return;case 40:if(r!==hi.horizontal&&(c._preventDefaultWhenHandled(e),c._moveFocusDown()))break;return;case 34:if(!a&&c._moveFocusPaging(!0))break;return;case 33:if(!a&&c._moveFocusPaging(!1))break;return;case 9:if(c.props.allowTabKey||1===c.props.handleTabKey||2===c.props.handleTabKey&&c._isElementInput(e.target)){var u=!1;if(c._processingTabKey=!0,u=r!==hi.vertical&&c._shouldWrapFocus(c._activeElement,Pi)?(ie(t)?!e.shiftKey:e.shiftKey)?c._moveFocusLeft(t):c._moveFocusRight(t):e.shiftKey?c._moveFocusUp():c._moveFocusDown(),c._processingTabKey=!1,u)break;c.props.shouldResetActiveElementWhenTabFromZone&&(c._activeElement=null)}return;case 36:if(c._isContentEditableElement(e.target)||c._isElementInput(e.target)&&!c._shouldInputLoseFocus(e.target,!1))return!1;var d=c._root.current&&c._root.current.firstChild;if(c._root.current&&d&&c.focusElement(Se(c._root.current,d,!0)))break;return;case 35:if(c._isContentEditableElement(e.target)||c._isElementInput(e.target)&&!c._shouldInputLoseFocus(e.target,!0))return!1;var h=c._root.current&&c._root.current.lastChild;if(c._root.current&&c.focusElement(Ce(c._root.current,h,!0,!0,!0)))break;return;case 13:if(c._shouldRaiseClicksOnEnter&&c._tryInvokeClickForFocusable(e.target))break;return;default:return}}e.preventDefault(),e.stopPropagation()}}},c._getHorizontalDistanceFromCenter=function(e,t,n){var r=c._focusAlignment.left||c._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):c._shouldWrapFocus(c._activeElement,Mi)?Fi:Ii},yi(c),ei("FocusZone",n,{rootProps:void 0,allowTabKey:"handleTabKey",elementType:"as",ariaDescribedBy:"aria-describedby",ariaLabelledBy:"aria-labelledby"}),c._id=pe("FocusZone"),c._focusAlignment={left:0,top:0},c._processingTabKey=!1;var u=null===(i=null!==(r=n.shouldRaiseClicks)&&void 0!==r?r:t.defaultProps.shouldRaiseClicks)||void 0===i||i;return c._shouldRaiseClicksOnEnter=null!==(o=n.shouldRaiseClicksOnEnter)&&void 0!==o?o:u,c._shouldRaiseClicksOnSpace=null!==(a=n.shouldRaiseClicksOnSpace)&&void 0!==a?a:u,c}return r(t,e),t.getOuterZones=function(){return Hi.size},t._onKeyDownCapture=function(e){9===e.which&&Hi.forEach((function(e){return e._updateTabIndexes()}))},t.prototype.componentDidMount=function(){var e=this._root.current;if(Oi[this._id]=this,e){this._windowElement=u(e);for(var n=_e(e,Ri);n&&n!==this._getDocument().body&&1===n.nodeType;){if(Le(n)){this._isInnerZone=!0;break}n=_e(n,Ri)}this._isInnerZone||(Hi.add(this),this._windowElement&&1===Hi.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.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 Oi[this._id],this._isInnerZone||(Hi.delete(this),this._windowElement&&0===Hi.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,c=t.className,u=ze(this.props,Ne),d=n||r||"div";this._evaluateFocusBeforeRender();var h,p=(void 0===h&&(h=!1),!0===h&&(fr=pr({},h)),fr);return s.createElement(d,i({"aria-labelledby":l,"aria-describedby":a},u,o,{className:We((ki||(ki=Ye({selectors:{":focus":{outline:"none"}}},"ms-FocusZone")),ki),c),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(Ai)&&this._isInnerZone){var t=this._getOwnerZone(this._root.current);if(t!==this._root.current){var n=Oi[t.getAttribute(Di)];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},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=_e(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){if(e===this._root.current)return!1;do{if("BUTTON"===e.tagName||"A"===e.tagName||"INPUT"===e.tagName||"TEXTAREA"===e.tagName)return!1;if(this._isImmediateDescendantOfZone(e)&&"true"===e.getAttribute(Ai)&&"true"!==e.getAttribute("data-disable-click-on-enter"))return Ei(e),!0;e=_e(e,Ri)}while(e!==this._root.current);return!1},t.prototype._getFirstInnerZone=function(e){if(!(e=e||this._activeElement||this._root.current))return null;if(Le(e))return Oi[e.getAttribute(Di)];for(var t=e.firstElementChild;t;){if(Le(t))return Oi[t.getAttribute(Di)];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===hi.bidirectional;if(!i||!this._root.current)return!1;if(this._isElementInput(i)&&!this._shouldInputLoseFocus(i,e))return!1;var c=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 u=t(c,i.getBoundingClientRect());if(-1===u&&-1===o){a=i;break}if(u>-1&&(-1===o||u<o)&&(o=u,a=i),o>=0&&u<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,Mi)?Fi:Ii:((-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,Mi)?Fi:Ii:((-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,Pi);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!==hi.vertical?o=r.right-i.right:n||(o=Ii),o}),void 0,n)&&(this._setFocusAlignment(this._activeElement,!0,!1),!0)},t.prototype._moveFocusRight=function(e){var t=this,n=this._shouldWrapFocus(this._activeElement,Pi);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!==hi.vertical?o=i.left-r.left:n||(o=Ii),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=Xe(n);if(!r)return!1;var i=-1,o=void 0,a=-1,s=-1,l=r.clientHeight,c=n.getBoundingClientRect();do{if(n=e?Se(this._root.current,n):Ce(this._root.current,n)){var u=n.getBoundingClientRect(),d=Math.floor(u.top),h=Math.floor(c.bottom),p=Math.floor(u.bottom),f=Math.floor(c.top),g=this._getHorizontalDistanceFromCenter(e,c,u);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===hi.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=_e(e,Ri);t&&t!==this._root.current&&t!==this._getDocument().body;){if(Le(t))return t;t=_e(t,Ri)}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(Ai)&&(this._isInnerZone||(this._activeElement||this._defaultFocusElement)&&this._activeElement!==r?"-1"!==r.getAttribute(Ti)&&r.setAttribute(Ti,"-1"):(this._defaultFocusElement=r,"0"!==r.getAttribute(Ti)&&r.setAttribute(Ti,"0"))):(r.getAttribute&&"false"===r.getAttribute(Ai)&&r.setAttribute(Ti,"-1"),ke(r)?this.props.disabled?r.setAttribute(Ti,"-1"):this._isInnerZone||(this._activeElement||this._defaultFocusElement)&&this._activeElement!==r?"-1"!==r.getAttribute(Ti)&&r.setAttribute(Ti,"-1"):(this._defaultFocusElement=r,"0"!==r.getAttribute(Ti)&&r.setAttribute(Ti,"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&&Ni.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=ye(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=ye(t,(function(e){return n===e||e.hasAttribute(Gr)})))&&r.hasAttribute(Gr));var t,n,r},t.prototype._getDocument=function(){return $(this._root.current)},t.defaultProps={isCircularNavigation:!1,direction:hi.bidirectional,shouldRaiseClicks:!0},t}(s.Component),Vi=le(),zi=b(function(e){function t(t){var n=e.call(this,t)||this;return n._adjustProps=function(){n._barHeight=n.props.barHeight||8,n._classNames=Vi(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},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),c=e._uniqLineText+"_"+n;return s.createElement("div",{key:n,className:e._classNames.items},s.createElement("div",{className:e._classNames.items},s.createElement(Bi,{direction:hi.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(Bi,{direction:hi.horizontal},s.createElement("svg",{className:e._classNames.chart},t.chartTitle&&s.createElement("title",null,t.chartTitle),s.createElement("g",{id:c,key:c,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(di,i({target:this.state.refSelected,coverTarget:!0,isBeakVisible:!1,gapSpace:30,hidden:!(!this.props.hideTooltip&&this.state.isCalloutVisible),directionalHint:11,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(vi,{Legend:this.state.xCalloutValue?this.state.xCalloutValue:this.state.legend,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.hoverValue,color:this.state.lineColor}))))},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){var n=ve(this._refArray,(function(e){return e.index===t.legend}));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(){this.state.isCalloutVisible&&this.setState({isCalloutVisible:!1,hoverValue:"",refSelected:null,lineColor:"",legend:""})},t.prototype._getDefaultTextData=function(e){var t=this.props.chartDataMode||"default",n=e.chartData[0],r=n.horizontalBarChartdata.x,o=n.horizontalBarChartdata.y,a=this._getAccessibleDataObject(e.chartDataAccessibilityData);switch(t){case"default":var l=r.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",");return s.createElement("div",i({className:this._classNames.chartDataText},a),l);case"fraction":return s.createElement("div",i({},a),s.createElement("span",{className:this._classNames.chartDataText},r),s.createElement("span",{className:this._classNames.chartDataTextDenominator},"/"+o));case"percentage":var c=Math.round(r/o*100)+"%";return s.createElement("div",i({className:this._classNames.chartDataText},a),c)}},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;return e.chartData.map((function(e,t){var c=e.color?e.color:r[Math.floor(4*Math.random()+1)],u=e.horizontalBarChartdata.x?e.horizontalBarChartdata.x:0;return t>0&&(a+=l),(l=u/o*100)<0?l=0:l<1&&0!==l&&(l=1),i.push(a),l<1?s.createElement(s.Fragment,{key:t}," "):s.createElement("rect",{key:t,x:i[t]+"%",y:0,"data-is-focusable":""!==e.legend,width:l+"%",height:n._barHeight,fill:c,onMouseOver:""!==e.legend?n._hoverOn.bind(n,e.horizontalBarChartdata.x.toString().replace(/\B(?=(\d{3})+(?!\d))/g,","),e):void 0,onFocus:""!==e.legend?n._hoverOn.bind(n,e.horizontalBarChartdata.x.toString().replace(/\B(?=(\d{3})+(?!\d))/g,","),e):void 0,"aria-labelledby":n._calloutId,role:"img","aria-label":"Horizontal bar chart",onBlur:n._hoverOff,onMouseLeave:n._hoverOff})}))},t}(s.Component),(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"},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:kn.bold},chartDataTextDenominator:{fontWeight:kn.semibold},triangle:{width:"0",height:"0",borderLeft:"4px solid transparent",borderRight:"4px solid transparent",borderTop:"8px solid",borderTopColor:o.blue,marginBottom:"4px"}}})),Wi={host:"ms-HoverCard-host"},Ui=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];Ue.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__,c=l?l[n]:null;if(c)for(var u in c)if(c.hasOwnProperty(u))for(var d=c[u],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,c={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(c),a[n].count++,e._isElement(t)){var u=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}};c.elementCallback=u,t.addEventListener?t.addEventListener(n,u,i):t.attachEvent&&t.attachEvent("on"+n,u)}else c.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(c)}},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"}(Li||(Li={})),function(e){e.plain="PlainCard",e.expanding="ExpandingCard"}(wi||(wi={}));var Yi,ji={root:"ms-ExpandingCard-root",compactCard:"ms-ExpandingCard-compactCard",expandedCard:"ms-ExpandingCard-expandedCard",expandedCardScroll:"ms-ExpandingCard-expandedCardScrollRegion"};!function(e){e[e.compact=0]="compact",e[e.expanded=1]="expanded"}(Yi||(Yi={}));var qi=s.forwardRef((function(e,t){var n=s.useRef(null),r=s.useRef(null),o=s.useRef(null),a=Et(n,t),l=function(e,t){var n=s.useRef(t);return n.current||(n.current=pe(void 0)),n.current}(0,e.id),c=wt(),u=ze(e,Ve),d=bt((function(){return{previouslyFocusedElementOutsideTrapZone:void 0,previouslyFocusedElementInTrapZone:void 0,disposeFocusHandler:void 0,disposeClickHandler:void 0,hasFocus:!1,unmodalize:void 0}})),h=e.ariaLabelledBy,p=e.className,f=e.children,g=e.componentRef,v=e.disabled,m=e.disableFirstFocus,_=void 0!==m&&m,y=e.disabled,x=void 0!==y&&y,b=e.elementToFocusOnDismiss,C=e.forceFocusInsideTrap,S=void 0===C||C,E=e.focusPreviouslyFocusedInnerElement,k=e.firstFocusableSelector,L=e.ignoreExternalFocusing,w=e.isClickableOutsideFocusTrap,A=void 0!==w&&w,D=e.onFocus,T=e.onBlur,M=e.onFocusCapture,P=e.onBlurCapture,F=e.enableAriaHiddenSiblings,I={"aria-hidden":!0,style:{pointerEvents:"none",position:"fixed"},tabIndex:v?-1:0,"data-is-visible":!0},O=s.useCallback((function(){if(E&&d.previouslyFocusedElementInTrapZone&&xe(n.current,d.previouslyFocusedElementInTrapZone))De(d.previouslyFocusedElementInTrapZone);else{var e="string"==typeof k?k:k&&k(),t=null;n.current&&(e&&(t=n.current.querySelector("."+e)),t||(t=Se(n.current,n.current.firstChild,!1,!1,!1,!0))),t&&De(t)}}),[k,E,d]),H=s.useCallback((function(e){if(!v){var t,i=e===d.hasFocus?o.current:r.current;if(n.current){var a=e===d.hasFocus?(void 0===(t=!1)&&(t=!0),Ce(n.current,i,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)}(n.current,i,0,!1);a&&(a===r.current||a===o.current?O():a.focus())}}}),[v,O,d]),N=s.useCallback((function(e){null==P||P(e);var t=e.relatedTarget;null===e.relatedTarget&&(t=c.activeElement),xe(n.current,t)||(d.hasFocus=!1)}),[c,d,P]),R=s.useCallback((function(e){null==M||M(e),e.target===r.current?H(!0):e.target===o.current&&H(!1),d.hasFocus=!0,e.target!==e.currentTarget&&e.target!==r.current&&e.target!==o.current&&(d.previouslyFocusedElementInTrapZone=e.target)}),[M,d,H]),B=s.useCallback((function(){if(qi.focusStack=qi.focusStack.filter((function(e){return l!==e})),c){var e=c.activeElement;L||!d.previouslyFocusedElementOutsideTrapZone||"function"!=typeof d.previouslyFocusedElementOutsideTrapZone.focus||!xe(n.current,e)&&e!==c.body||d.previouslyFocusedElementOutsideTrapZone!==r.current&&d.previouslyFocusedElementOutsideTrapZone!==o.current&&De(d.previouslyFocusedElementOutsideTrapZone)}}),[c,l,L,d]),V=s.useCallback((function(e){if(!v&&qi.focusStack.length&&l===qi.focusStack[qi.focusStack.length-1]){var t=e.target;xe(n.current,t)||(O(),d.hasFocus=!0,e.preventDefault(),e.stopPropagation())}}),[v,l,O,d]),z=s.useCallback((function(e){if(!v&&qi.focusStack.length&&l===qi.focusStack[qi.focusStack.length-1]){var t=e.target;t&&!xe(n.current,t)&&(O(),d.hasFocus=!0,e.preventDefault(),e.stopPropagation())}}),[v,l,O,d]),W=s.useCallback((function(){S&&!d.disposeFocusHandler?d.disposeFocusHandler=Te(window,"focus",V,!0):!S&&d.disposeFocusHandler&&(d.disposeFocusHandler(),d.disposeFocusHandler=void 0),A||d.disposeClickHandler?A&&d.disposeClickHandler&&(d.disposeClickHandler(),d.disposeClickHandler=void 0):d.disposeClickHandler=Te(window,"click",z,!0)}),[z,V,S,A,d]);return s.useEffect((function(){var e=n.current;return W(),function(){v&&!S&&xe(e,null==c?void 0:c.activeElement)||B()}}),[W]),s.useEffect((function(){var e=void 0===S||S,t=void 0!==v&&v;if(!t||e){if(x)return;qi.focusStack.push(l),d.previouslyFocusedElementOutsideTrapZone=b||c.activeElement,_||xe(n.current,d.previouslyFocusedElementOutsideTrapZone)||O(),!d.unmodalize&&n.current&&F&&(d.unmodalize=function(e){for(var t,n=[],r=$(e)||document;e!==r.body;){for(var i=0,o=e.parentElement.children;i<o.length;i++){var a=o[i];a!==e&&"true"!==(null===(t=a.getAttribute("aria-hidden"))||void 0===t?void 0:t.toLowerCase())&&n.push(a)}if(!e.parentElement)break;e=e.parentElement}return n.forEach((function(e){e.setAttribute("aria-hidden","true")})),function(){!function(e){e.forEach((function(e){e.setAttribute("aria-hidden","false")}))}(n),n=[]}}(n.current))}else e&&!t||(B(),d.unmodalize&&d.unmodalize());b&&d.previouslyFocusedElementOutsideTrapZone!==b&&(d.previouslyFocusedElementOutsideTrapZone=b)}),[b,S,v]),Xi((function(){d.disposeClickHandler&&(d.disposeClickHandler(),d.disposeClickHandler=void 0),d.disposeFocusHandler&&(d.disposeFocusHandler(),d.disposeFocusHandler=void 0),d.unmodalize&&d.unmodalize(),delete d.previouslyFocusedElementInTrapZone,delete d.previouslyFocusedElementOutsideTrapZone})),function(e,t,n){s.useImperativeHandle(e,(function(){return{get previouslyFocusedElement(){return t},focus:n}}),[t,n])}(g,d.previouslyFocusedElementInTrapZone,O),s.createElement("div",i({},u,{className:p,ref:a,"aria-labelledby":h,onFocusCapture:R,onFocus:D,onBlur:T,onBlurCapture:N}),s.createElement("div",i({},I,{ref:r})),f,s.createElement("div",i({},I,{ref:o})))})),Xi=function(e){var t=s.useRef(e);t.current=e,s.useEffect((function(){return function(){t.current&&t.current()}}),[e])};qi.displayName="FocusTrapZone",qi.focusStack=[];var Ki,Zi=function(e){return s.createElement(di,i({},e),s.createElement(qi,i({disabled:e.hidden},e.focusTrapProps),e.children))},Gi=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,c=e.firstFocus,u=e.trapFocus,d=e.onLeave,h=e.className,p=e.finalHeight,f=e.content,g=e.calloutProps,v=i(i(i({},ze(e,Ve)),{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,u?s.createElement(Zi,i({},v,{focusTrapProps:{forceFocusInsideTrap:!1,isClickableOutsideFocusTrap:!0,disableFirstFocus:!c}}),f):s.createElement(di,i({},v),f))},$i=le(),Qi=b(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 xt(n),yi(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,c=this.state,u=c.needsScroll,d=c.firstFrameRendered,h=n+r;this._classNames=$i(t,{theme:o,compactCardHeight:n,className:l,expandedCardHeight:r,needsScroll:u,expandedCardFirstFrameRendered:a===Yi.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(Gi,i({},this.props,{content:p,finalHeight:h,className:this._classNames.root}))},t.defaultProps={compactCardHeight:156,expandedCardHeight:384,directionalHintFixed:!0},t}(s.Component),(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,c=Xn(ji,n);return{root:[c.root,{width:320,pointerEvents:"none",selectors:(t={},t[Tn]={border:"1px solid WindowText"},t)},s],compactCard:[c.compactCard,{pointerEvents:"auto",position:"relative",height:o}],expandedCard:[c.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:[c.expandedCardScroll,r&&{height:"100%",boxSizing:"border-box",overflowY:"auto"}]}}),void 0,{scope:"ExpandingCard"}),Ji={root:"ms-PlainCard-root"},eo=le(),to=b(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)},yi(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=eo(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(Gi,i({},this.props,{content:o,className:this._classNames.root}))},t}(s.Component),(function(e){var t,n=e.theme,r=e.className;return{root:[Xn(Ji,n).root,{pointerEvents:"auto",selectors:(t={},t[Tn]={border:"1px solid WindowText"},t)},r]}}),void 0,{scope:"PlainCard"}),no=le(),ro=b(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:Yi.compact,openMode:"keydown"===e.type?Li.hotKey:Li.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:Yi.compact,openMode:Li.hover})},n._instantOpenAsExpanded=function(e){n._async.clearTimeout(n._dismissTimerId),n.setState((function(e){return e.isHoverCardVisible?e:{isHoverCardVisible:!0,mode:Yi.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)))},yi(n),n._async=new xt(n),n._events=new Ui(n),n._nativeDismissEvent=n._cardDismiss.bind(n,!0),n._childDismissEvent=n._cardDismiss.bind(n,!1),n.state={isHoverCardVisible:!1,mode:Yi.compact,openMode:Li.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:Yi.expanded},(function(){n.props.onCardExpand&&n.props.onCardExpand()}))}),this.props.expandedCardOpenDelay),this.props.onCardVisible&&this.props.onCardVisible()):(this.setState({mode:Yi.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,c=e.theme,u=e.className,d=e.type,h=e.plainCardProps,p=e.trapFocus,f=e.setInitialFocus,g=this.state,v=g.isHoverCardVisible,m=g.mode,_=g.openMode,y=r||pe("hoverCard");this._classNames=no(l,{theme:c,className:u});var x=i(i({},ze(this.props,Ve)),{id:y,trapFocus:!!p,firstFocus:f||_===Li.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?y:void 0,"data-is-focusable":!this.props.target},n,v&&(d===wi.expanding?s.createElement(Qi,i({},b)):s.createElement(to,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:wi.expanding},t}(s.Component),(function(e){var t=e.className,n=e.theme;return{host:[Xn(Wi,n).host,t]}}),void 0,{scope:"HoverCard"});!function(e){e[e.horizontal=0]="horizontal",e[e.vertical=1]="vertical"}(Ki||(Ki={}));var io=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 c=i(i({},t),{measureContainer:!1});return t.dataToMeasure&&(c="grow"===t.resizeDirection&&e.onGrowData?i(i({},c),function(e,t,s,l){for(var c=e,u=o(e,s);u<n;){var d=t(c);if(void 0===d)return{renderedData:c,resizeDirection:void 0,dataToMeasure:void 0};if(void 0===(u=r.getCachedMeasurement(d)))return{dataToMeasure:d};c=d}return i({resizeDirection:"shrink"},a(c,l,s))}(t.dataToMeasure,e.onGrowData,s,e.onReduceData)):i(i({},c),a(t.dataToMeasure,e.onReduceData,s))),c}},shouldRenderDataForMeasurement:function(e){return!(!e||void 0!==r.getCachedMeasurement(e))},getInitialResizeGroupState:function(e){return{dataToMeasure:i({},e),resizeDirection:"grow",measureContainer:!0}}}},oo=s.createContext({isMeasured:!1}),ao={position:"fixed",visibility:"hidden"},so={position:"relative"};function lo(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 co={isMeasured:!0},uo=s.forwardRef((function(e,t){var n=s.useRef(null),r=Et(n,t),o=function(e,t){var n=bt(io),r=s.useRef(null),o=s.useRef(null),a=s.useRef(!1),l=Ct(),c=function(e,t,n){var r=bt((function(){return t.getInitialResizeGroupState(e.data)})),o=s.useReducer(lo,r),a=o[0],l=o[1];s.useEffect((function(){l({type:"dataToMeasure",value:e.data})}),[e.data]);var c=s.useRef(r);return c.current=i({},a),[c,s.useCallback((function(e){e&&l({type:"resizeData",value:e})}),[]),s.useCallback((function(){n.current&&l({type:"measureContainer",value:!0})}),[n])]}(e,n,t),u=c[0],d=c[1],h=c[2];s.useEffect((function(){var t;u.current.renderedData&&(a.current=!0,null===(t=e.dataDidRender)||void 0===t||t.call(e,u.current.renderedData))})),s.useEffect((function(){l.requestAnimationFrame((function(){var i=void 0;if(u.current.measureContainer&&t.current){var s=t.current.getBoundingClientRect();i=e.direction===Ki.vertical?s.height:s.width}var l=n.getNextState(e,u.current,(function(){var t=a.current?o:r;return t.current?e.direction===Ki.vertical?t.current.scrollHeight:t.current.scrollWidth:0}),i);d(l)}))})),St(Lt(),"resize",l.debounce(h,16,{leading:!0}));var p=n.shouldRenderDataForMeasurement(u.current.dataToMeasure),f=!a.current&&p;return[u.current.dataToMeasure,u.current.renderedData,h,r,o,p,f]}(e,n),a=o[0],l=o[1],c=o[2],u=o[3],d=o[4],h=o[5],p=o[6];s.useImperativeHandle(e.componentRef,(function(){return{remeasure:c}}),[c]),function(e){ii({name:"ResizeGroup",props:e,deprecations:{styles:"className"}})}(e);var f=e.className,g=e.onRenderData,v=ze(e,Ve,["data"]);return s.createElement("div",i({},v,{className:f,ref:r}),s.createElement("div",{style:so},h&&!p&&s.createElement("div",{style:ao,ref:d},s.createElement(oo.Provider,{value:co},g(a))),s.createElement("div",{ref:u,style:p?ao:void 0,"data-automation-id":"visibleContent"},p?g(a):l&&g(l))))}));uo.displayName="ResizeGroupBase";var ho,po=uo;!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"}(ho||(ho={}));var fo=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?ho.PERSISTED_KEYTIP_ADDED:ho.KEYTIP_ADDED;Ui.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||Ui.raise(this,ho.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?ho.PERSISTED_KEYTIP_REMOVED:ho.KEYTIP_REMOVED;!this.inKeytipMode&&this.delayUpdatingKeytipChange||Ui.raise(this,r,{keytip:e,uniqueID:t})},e.prototype.enterKeytipMode=function(){Ui.raise(this,ho.ENTER_KEYTIP_MODE)},e.prototype.exitKeytipMode=function(){Ui.raise(this,ho.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){Ui.raise(this,ho.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}(),go=function(e,t,n){for(var r=0,i=e;r<i.length;r++){var o=i[r];n[t.register(o,!0)]=o}},vo=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]}},mo=function(e){var t=fo.getInstance(),n=e.className,r=e.overflowItems,o=e.keytipSequences,a=e.itemSubMenuProvider,l=e.onRenderOverflowButton,c=bt({}),u=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||u(r)?l.onExecute=t.menuExecute.bind(t,o,null===(a=null==r?void 0:r.keytipProps)||void 0===a?void 0:a.keySequences):l.onExecute=s.onExecute,e.push(l);var c=i(i({},r),{keytipProps:i(i({},s),{overflowSetSequence:o})});null==n||n.push(c)}else null==n||n.push(r)})):n=r,{modifiedOverflowItems:n,keytipsToRegister:e}}),[r,u,t,o]),h=d.modifiedOverflowItems;return function(e,t,n){var r=ni(e);s.useEffect((function(){r&&(vo(n,r),go(t,n,e))})),s.useEffect((function(){return go(t,n,e),function(){vo(n,e)}}),[])}(c,d.keytipsToRegister,t),s.createElement("div",{className:n},l(h))},_o=le(),yo=s.forwardRef((function(e,t){var n=s.useRef(null),r=Et(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,c=e.styles,u=e.vertical,d=e.role,h=e.overflowSide,p=void 0===h?"end":h,f=e.onRenderItem,g=_o(c,{className:l,vertical:u}),v=!!a&&a.length>0;return s.createElement("div",i({},ze(e,Ve),{role:d||"group","aria-orientation":"menubar"===d?!0===u?"vertical":"horizontal":void 0,className:g.root,ref:r}),"start"===p&&v&&s.createElement(mo,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(mo,i({},e,{className:g.overflowButton})))}));yo.displayName="OverflowSet";var xo={flexShrink:0,display:"inherit"},bo=b(yo,(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",xo],overflowButton:["ms-OverflowSet-overflowButton",xo]}}),void 0,{scope:"OverflowSet"}),Co=Array.prototype.slice;function So(e){return e}var Eo=1e-6;function ko(e){return"translate("+(e+.5)+",0)"}function Lo(e){return"translate(0,"+(e+.5)+")"}function wo(e){return function(t){return+e(t)}}function Ao(e){var t=Math.max(0,e.bandwidth()-1)/2;return e.round()&&(t=Math.round(t)),function(n){return+e(n)+t}}function Do(){return!this.__axis}function To(e,t){var n=[],r=null,i=null,o=6,a=6,s=3,l=1===e||4===e?-1:1,c=4===e||2===e?"x":"y",u=1===e||3===e?ko:Lo;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):So:i,f=Math.max(o,0)+s,g=t.range(),v=+g[0]+.5,m=+g[g.length-1]+.5,_=(t.bandwidth?Ao:wo)(t.copy()),y=d.selection?d.selection():d,x=y.selectAll(".domain").data([null]),b=y.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(c+"2",l*o)),k=k.merge(S.append("text").attr("fill","#000").attr(c,l*f).attr("dy",1===e?"0em":3===e?"0.71em":"0.32em")),d!==y&&(x=x.transition(d),b=b.transition(d),E=E.transition(d),k=k.transition(d),C=C.transition(d).attr("opacity",Eo).attr("transform",(function(e){return isFinite(e=_(e))?u(e):this.getAttribute("transform")})),S.attr("opacity",Eo).attr("transform",(function(e){var t=this.parentNode.__axis;return u(t&&isFinite(t=t(e))?t:_(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 u(_(e))})),E.attr(c+"2",l*o),k.attr(c,l*f).text(p),y.filter(Do).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===e?"start":4===e?"end":"middle"),y.each((function(){this.__axis=_}))}return d.scale=function(e){return arguments.length?(t=e,d):t},d.ticks=function(){return n=Co.call(arguments),d},d.tickArguments=function(e){return arguments.length?(n=null==e?[]:Co.call(e),d):n.slice()},d.tickValues=function(e){return arguments.length?(r=null==e?null:Co.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 Mo(e){return To(2,e)}function Po(e){return To(3,e)}function Fo(e){return To(4,e)}function Io(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Oo(e){var t;return 1===e.length&&(t=e,e=function(e,n){return Io(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 Ho=Oo(Io),No=(Ho.right,Ho.left,Array.prototype);function Ro(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 Bo(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 Vo(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function zo(e){var t;return 1===e.length&&(t=e,e=function(e,n){return Vo(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}}}No.slice,No.map,Math.sqrt(50),Math.sqrt(10),Math.sqrt(2);var Wo=zo(Vo),Uo=Wo.right,Yo=(Wo.left,Uo),jo=Array.prototype,qo=(jo.slice,jo.map,Math.sqrt(50)),Xo=Math.sqrt(10),Ko=Math.sqrt(2);function Zo(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>=qo?10:o>=Xo?5:o>=Ko?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=qo?10:o>=Xo?5:o>=Ko?2:1)}function Go(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>=qo?i*=10:o>=Xo?i*=5:o>=Ko&&(i*=2),t<e?-i:i}var $o="$";function Qo(){}function Jo(e,t){var n=new Qo;if(e instanceof Qo)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}Qo.prototype=Jo.prototype={constructor:Qo,has:function(e){return $o+e in this},get:function(e){return this[$o+e]},set:function(e,t){return this[$o+e]=t,this},remove:function(e){var t=$o+e;return t in this&&delete this[t]},clear:function(){for(var e in this)e[0]===$o&&delete this[e]},keys:function(){var e=[];for(var t in this)t[0]===$o&&e.push(t.slice(1));return e},values:function(){var e=[];for(var t in this)t[0]===$o&&e.push(this[t]);return e},entries:function(){var e=[];for(var t in this)t[0]===$o&&e.push({key:t.slice(1),value:this[t]});return e},size:function(){var e=0;for(var t in this)t[0]===$o&&++e;return e},empty:function(){for(var e in this)if(e[0]===$o)return!1;return!0},each:function(e){for(var t in this)t[0]===$o&&e(this[t],t.slice(1),this)}};var ea=Jo;function ta(){}var na=ea.prototype;ta.prototype=function(e,t){var n=new ta;if(e instanceof ta)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:ta,has:na.has,add:function(e){return this[$o+(e+="")]=e,this},remove:na.remove,clear:na.clear,values:na.keys,size:na.size,empty:na.empty,each:na.each};var ra=Array.prototype,ia=ra.map,oa=ra.slice,aa={name:"implicit"};function sa(e){var t=ea(),n=[],r=aa;function i(i){var o=i+"",a=t.get(o);if(!a){if(r!==aa)return r;t.set(o,a=n.push(i))}return e[(a-1)%e.length]}return e=null==e?[]:oa.call(e),i.domain=function(e){if(!arguments.length)return n.slice();n=[],t=ea();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=oa.call(t),i):e.slice()},i.unknown=function(e){return arguments.length?(r=e,i):r},i.copy=function(){return sa().domain(n).range(e).unknown(r)},i}function la(){var e,t,n=sa().unknown(void 0),r=n.domain,i=n.range,o=[0,1],a=!1,s=0,l=0,c=.5;function u(){var n=r().length,u=o[1]<o[0],d=o[u-0],h=o[1-u];e=(h-d)/Math.max(1,n-s+2*l),a&&(e=Math.floor(e)),d+=(h-d-e*(n-s))*c,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(u?p.reverse():p)}return delete n.unknown,n.domain=function(e){return arguments.length?(r(e),u()):r()},n.range=function(e){return arguments.length?(o=[+e[0],+e[1]],u()):o.slice()},n.rangeRound=function(e){return o=[+e[0],+e[1]],a=!0,u()},n.bandwidth=function(){return t},n.step=function(){return e},n.round=function(e){return arguments.length?(a=!!e,u()):a},n.padding=function(e){return arguments.length?(s=l=Math.max(0,Math.min(1,e)),u()):s},n.paddingInner=function(e){return arguments.length?(s=Math.max(0,Math.min(1,e)),u()):s},n.paddingOuter=function(e){return arguments.length?(l=Math.max(0,Math.min(1,e)),u()):l},n.align=function(e){return arguments.length?(c=Math.max(0,Math.min(1,e)),u()):c},n.copy=function(){return la().domain(r()).range(o).round(a).paddingInner(s).paddingOuter(l).align(c)},u()}function ca(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function ua(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function da(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function ha(){}var pa=.7,fa=1/pa,ga="\\s*([+-]?\\d+)\\s*",va="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",ma="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",_a=/^#([0-9a-f]{3,8})$/,ya=new RegExp("^rgb\\("+[ga,ga,ga]+"\\)$"),xa=new RegExp("^rgb\\("+[ma,ma,ma]+"\\)$"),ba=new RegExp("^rgba\\("+[ga,ga,ga,va]+"\\)$"),Ca=new RegExp("^rgba\\("+[ma,ma,ma,va]+"\\)$"),Sa=new RegExp("^hsl\\("+[va,ma,ma]+"\\)$"),Ea=new RegExp("^hsla\\("+[va,ma,ma,va]+"\\)$"),ka={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 La(){return this.rgb().formatHex()}function wa(){return this.rgb().formatRgb()}function Aa(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=_a.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Da(t):3===n?new Fa(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?new Fa(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?new Fa(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=ya.exec(e))?new Fa(t[1],t[2],t[3],1):(t=xa.exec(e))?new Fa(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=ba.exec(e))?Ta(t[1],t[2],t[3],t[4]):(t=Ca.exec(e))?Ta(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Sa.exec(e))?Na(t[1],t[2]/100,t[3]/100,1):(t=Ea.exec(e))?Na(t[1],t[2]/100,t[3]/100,t[4]):ka.hasOwnProperty(e)?Da(ka[e]):"transparent"===e?new Fa(NaN,NaN,NaN,0):null}function Da(e){return new Fa(e>>16&255,e>>8&255,255&e,1)}function Ta(e,t,n,r){return r<=0&&(e=t=n=NaN),new Fa(e,t,n,r)}function Ma(e){return e instanceof ha||(e=Aa(e)),e?new Fa((e=e.rgb()).r,e.g,e.b,e.opacity):new Fa}function Pa(e,t,n,r){return 1===arguments.length?Ma(e):new Fa(e,t,n,null==r?1:r)}function Fa(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Ia(){return"#"+Ha(this.r)+Ha(this.g)+Ha(this.b)}function Oa(){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 Ha(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function Na(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Ba(e,t,n,r)}function Ra(e){if(e instanceof Ba)return new Ba(e.h,e.s,e.l,e.opacity);if(e instanceof ha||(e=Aa(e)),!e)return new Ba;if(e instanceof Ba)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 Ba(a,s,l,e.opacity)}function Ba(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Va(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 za(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 Wa(e){return function(){return e}}function Ua(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):Wa(isNaN(e)?t:e)}ua(ha,Aa,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:La,formatHex:La,formatHsl:function(){return Ra(this).formatHsl()},formatRgb:wa,toString:wa}),ua(Fa,Pa,da(ha,{brighter:function(e){return e=null==e?fa:Math.pow(fa,e),new Fa(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?pa:Math.pow(pa,e),new Fa(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:Ia,formatHex:Ia,formatRgb:Oa,toString:Oa})),ua(Ba,(function(e,t,n,r){return 1===arguments.length?Ra(e):new Ba(e,t,n,null==r?1:r)}),da(ha,{brighter:function(e){return e=null==e?fa:Math.pow(fa,e),new Ba(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?pa:Math.pow(pa,e),new Ba(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 Fa(Va(e>=240?e-240:e+120,i,r),Va(e,i,r),Va(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 Ya=function e(t){var n=function(e){return 1==(e=+e)?Ua: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):Wa(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=Pa(e)).r,(t=Pa(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),a=Ua(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 ja(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=Pa(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 qa(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]=Ja(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 Xa(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Ka(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]=Ja(e[n],t[n]):i[n]=t[n];return function(e){for(n in r)i[n]=r[n](e);return i}}ja((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 za((n-r/t)*t,a,i,o,s)}})),ja((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 za((n-r/t)*t,i,o,a,s)}}));var Za=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Ga=new RegExp(Za.source,"g");function $a(e,t){var n,r,i,o=Za.lastIndex=Ga.lastIndex=0,a=-1,s=[],l=[];for(e+="",t+="";(n=Za.exec(e))&&(r=Ga.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:ca(n,r)})),o=Ga.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 Qa(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 Ja(e,t){var n,r,i=typeof t;return null==t||"boolean"===i?Wa(t):("number"===i?ca:"string"===i?(n=Aa(t))?(t=n,Ya):$a:t instanceof Aa?Ya:t instanceof Date?Xa:(r=t,!ArrayBuffer.isView(r)||r instanceof DataView?Array.isArray(t)?qa:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?Ka:ca:Qa))(e,t)}function es(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function ts(e){return+e}var ns=[0,1];function rs(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:(n=t,function(){return n});var n}function is(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 os(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=Yo(e,t,1,i)-1;return a[n](o[n](t))}}function as(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp())}function ss(e,t){var n,r,i,o=ns,a=ns,s=Ja,l=!1;function c(){return n=Math.min(o.length,a.length)>2?os:is,r=i=null,u}function u(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 u.invert=function(e){return(i||(i=n(a,o,rs,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)},u.domain=function(e){return arguments.length?(o=ia.call(e,ts),c()):o.slice()},u.range=function(e){return arguments.length?(a=oa.call(e),c()):a.slice()},u.rangeRound=function(e){return a=oa.call(e),s=es,c()},u.clamp=function(e){return arguments.length?(l=!!e,c()):l},u.interpolate=function(e){return arguments.length?(s=e,c()):s},c()}var ls,cs=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function us(e){if(!(t=cs.exec(e)))throw new Error("invalid format: "+e);var t;return new ds({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 ds(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 hs(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 ps(e){return(e=hs(Math.abs(e)))?e[1]:NaN}function fs(e,t){var n=hs(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")}us.prototype=ds.prototype,ds.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 gs={"%":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 fs(100*e,t)},r:fs,s:function(e,t){var n=hs(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(ls=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")+hs(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 vs(e){return e}var ms,_s,ys,xs=Array.prototype.map,bs=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Cs(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=Zo(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=Go(i,o,null==t?10:t);switch((n=us(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(ps(t)/3)))-ps(Math.abs(e)))}(a,s))||(n.precision=r),ys(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,ps(t)-ps(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,-ps(Math.abs(e)))}(a))||(n.precision=r-2*("%"===n.type))}return _s(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=Zo(s,l,n))>0?r=Zo(s=Math.floor(s/r)*r,l=Math.ceil(l/r)*r,n):r<0&&(r=Zo(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 Ss(){var e=ss(rs,ca);return e.copy=function(){return as(e,Ss())},Cs(e)}ms=function(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?vs:(t=xs.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?vs:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(xs.call(e.numerals,String)),l=void 0===e.percent?"%":e.percent+"",c=void 0===e.minus?"-":e.minus+"",u=void 0===e.nan?"NaN":e.nan+"";function d(e){var t=(e=us(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,_=e.type;"n"===_?(g=!0,_="g"):gs[_]||(void 0===v&&(v=12),m=!0,_="g"),(p||"0"===t&&"="===n)&&(p=!0,t="0",n="=");var y="$"===h?i:"#"===h&&/[boxX]/.test(_)?"0"+_.toLowerCase():"",x="$"===h?o:/[%p]/.test(_)?l:"",b=gs[_],C=/[defgprs%]/.test(_);function S(e){var i,o,l,h=y,S=x;if("c"===_)S=b(e)+S,e="";else{var E=(e=+e)<0||1/e<0;if(e=isNaN(e)?u: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:c:"-"===d||"("===d?"":d)+h,S=("s"===_?bs[8+ls/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 v=void 0===v?6:/[gprs]/.test(_)?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=us(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(ps(t)/3))),i=Math.pow(10,-r),o=bs[8+r/3];return function(e){return n(i*e)+o}}}}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),_s=ms.format,ys=ms.formatPrefix;var Es=new Date,ks=new Date;function Ls(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 Ls((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 Es.setTime(+t),ks.setTime(+r),e(Es),e(ks),Math.floor(n(Es,ks))},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 ws=Ls((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e}));ws.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?Ls((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):ws:null};var As=ws,Ds=(ws.range,1e3),Ts=6e4,Ms=36e5,Ps=864e5,Fs=6048e5,Is=Ls((function(e){e.setTime(e-e.getMilliseconds())}),(function(e,t){e.setTime(+e+t*Ds)}),(function(e,t){return(t-e)/Ds}),(function(e){return e.getUTCSeconds()})),Os=Is,Hs=(Is.range,Ls((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ds)}),(function(e,t){e.setTime(+e+t*Ts)}),(function(e,t){return(t-e)/Ts}),(function(e){return e.getMinutes()}))),Ns=Hs,Rs=(Hs.range,Ls((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ds-e.getMinutes()*Ts)}),(function(e,t){e.setTime(+e+t*Ms)}),(function(e,t){return(t-e)/Ms}),(function(e){return e.getHours()}))),Bs=Rs,Vs=(Rs.range,Ls((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())*Ts)/Ps}),(function(e){return e.getDate()-1}))),zs=Vs;function Ws(e){return Ls((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())*Ts)/Fs}))}Vs.range;var Us=Ws(0),Ys=Ws(1),js=Ws(2),qs=Ws(3),Xs=Ws(4),Ks=Ws(5),Zs=Ws(6),Gs=(Us.range,Ys.range,js.range,qs.range,Xs.range,Ks.range,Zs.range,Ls((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()}))),$s=Gs,Qs=(Gs.range,Ls((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()})));Qs.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Ls((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 Js=Qs,el=(((Qs.range,Ls((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+t*Ts)}),(function(e,t){return(t-e)/Ts}),(function(e){return e.getUTCMinutes()}))).range,Ls((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+t*Ms)}),(function(e,t){return(t-e)/Ms}),(function(e){return e.getUTCHours()}))).range,Ls((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/Ps}),(function(e){return e.getUTCDate()-1}))),tl=el;function nl(e){return Ls((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)/Fs}))}el.range;var rl=nl(0),il=nl(1),ol=nl(2),al=nl(3),sl=nl(4),ll=nl(5),cl=nl(6),ul=((rl.range,il.range,ol.range,al.range,sl.range,ll.range,cl.range,Ls((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()}))).range,Ls((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()})));ul.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Ls((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 dl=ul;function hl(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 pl(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 fl(e){return{y:e,m:0,d:1,H:0,M:0,S:0,L:0}}ul.range;var gl,vl,ml,_l,yl={"-":"",_:" ",0:"0"},xl=/^\s*\d+/,bl=/^%/,Cl=/[\\^$*+?|[\]().{}]/g;function Sl(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 El(e){return e.replace(Cl,"\\$&")}function kl(e){return new RegExp("^(?:"+e.map(El).join("|")+")","i")}function Ll(e){for(var t={},n=-1,r=e.length;++n<r;)t[e[n].toLowerCase()]=n;return t}function wl(e,t,n){var r=xl.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Al(e,t,n){var r=xl.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Dl(e,t,n){var r=xl.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Tl(e,t,n){var r=xl.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Ml(e,t,n){var r=xl.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function Pl(e,t,n){var r=xl.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function Fl(e,t,n){var r=xl.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Il(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 Ol(e,t,n){var r=xl.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function Hl(e,t,n){var r=xl.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Nl(e,t,n){var r=xl.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Rl(e,t,n){var r=xl.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Bl(e,t,n){var r=xl.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Vl(e,t,n){var r=xl.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function zl(e,t,n){var r=xl.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Wl(e,t,n){var r=xl.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Ul(e,t,n){var r=bl.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Yl(e,t,n){var r=xl.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function jl(e,t,n){var r=xl.exec(t.slice(n));return r?(e.Q=1e3*+r[0],n+r[0].length):-1}function ql(e,t){return Sl(e.getDate(),t,2)}function Xl(e,t){return Sl(e.getHours(),t,2)}function Kl(e,t){return Sl(e.getHours()%12||12,t,2)}function Zl(e,t){return Sl(1+zs.count(Js(e),e),t,3)}function Gl(e,t){return Sl(e.getMilliseconds(),t,3)}function $l(e,t){return Gl(e,t)+"000"}function Ql(e,t){return Sl(e.getMonth()+1,t,2)}function Jl(e,t){return Sl(e.getMinutes(),t,2)}function ec(e,t){return Sl(e.getSeconds(),t,2)}function tc(e){var t=e.getDay();return 0===t?7:t}function nc(e,t){return Sl(Us.count(Js(e),e),t,2)}function rc(e,t){var n=e.getDay();return e=n>=4||0===n?Xs(e):Xs.ceil(e),Sl(Xs.count(Js(e),e)+(4===Js(e).getDay()),t,2)}function ic(e){return e.getDay()}function oc(e,t){return Sl(Ys.count(Js(e),e),t,2)}function ac(e,t){return Sl(e.getFullYear()%100,t,2)}function sc(e,t){return Sl(e.getFullYear()%1e4,t,4)}function lc(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Sl(t/60|0,"0",2)+Sl(t%60,"0",2)}function cc(e,t){return Sl(e.getUTCDate(),t,2)}function uc(e,t){return Sl(e.getUTCHours(),t,2)}function dc(e,t){return Sl(e.getUTCHours()%12||12,t,2)}function hc(e,t){return Sl(1+tl.count(dl(e),e),t,3)}function pc(e,t){return Sl(e.getUTCMilliseconds(),t,3)}function fc(e,t){return pc(e,t)+"000"}function gc(e,t){return Sl(e.getUTCMonth()+1,t,2)}function vc(e,t){return Sl(e.getUTCMinutes(),t,2)}function mc(e,t){return Sl(e.getUTCSeconds(),t,2)}function _c(e){var t=e.getUTCDay();return 0===t?7:t}function yc(e,t){return Sl(rl.count(dl(e),e),t,2)}function xc(e,t){var n=e.getUTCDay();return e=n>=4||0===n?sl(e):sl.ceil(e),Sl(sl.count(dl(e),e)+(4===dl(e).getUTCDay()),t,2)}function bc(e){return e.getUTCDay()}function Cc(e,t){return Sl(il.count(dl(e),e),t,2)}function Sc(e,t){return Sl(e.getUTCFullYear()%100,t,2)}function Ec(e,t){return Sl(e.getUTCFullYear()%1e4,t,4)}function kc(){return"+0000"}function Lc(){return"%"}function wc(e){return+e}function Ac(e){return Math.floor(+e/1e3)}gl=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,c=kl(i),u=Ll(i),d=kl(o),h=Ll(o),p=kl(a),f=Ll(a),g=kl(s),v=Ll(s),m=kl(l),_=Ll(l),y={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:ql,e:ql,f:$l,H:Xl,I:Kl,j:Zl,L:Gl,m:Ql,M:Jl,p:function(e){return i[+(e.getHours()>=12)]},Q:wc,s:Ac,S:ec,u:tc,U:nc,V:rc,w:ic,W:oc,x:null,X:null,y:ac,Y:sc,Z:lc,"%":Lc},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:cc,e:cc,f:fc,H:uc,I:dc,j:hc,L:pc,m:gc,M:vc,p:function(e){return i[+(e.getUTCHours()>=12)]},Q:wc,s:Ac,S:mc,u:_c,U:yc,V:xc,w:bc,W:Cc,x:null,X:null,y:Sc,Y:Ec,Z:kc,"%":Lc},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=_[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:Hl,e:Hl,f:Wl,H:Rl,I:Rl,j:Nl,L:zl,m:Ol,M:Bl,p:function(e,t,n){var r=c.exec(t.slice(n));return r?(e.p=u[r[0].toLowerCase()],n+r[0].length):-1},Q:Yl,s:jl,S:Vl,u:Al,U:Dl,V:Tl,w:wl,W:Ml,x:function(e,t,r){return E(e,n,t,r)},X:function(e,t,n){return E(e,r,t,n)},y:Fl,Y:Pl,Z:Il,"%":Ul};function C(e,t){return function(n){var r,i,o,a=[],s=-1,l=0,c=e.length;for(n instanceof Date||(n=new Date(+n));++s<c;)37===e.charCodeAt(s)&&(a.push(e.slice(l,s)),null!=(i=yl[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=fl(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=pl(fl(o.y))).getUTCDay(),r=i>4||0===i?il.ceil(r):il(r),r=tl.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(fl(o.y))).getDay(),r=i>4||0===i?Ys.ceil(r):Ys(r),r=zs.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?pl(fl(o.y)).getUTCDay():t(fl(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,pl(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 yl?t.charAt(a++):i])||(r=o(e,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return y.x=C(n,y),y.X=C(r,y),y.c=C(t,y),x.x=C(n,x),x.X=C(r,x),x.c=C(t,x),{format:function(e){var t=C(e+="",y);return t.toString=function(){return e},t},parse:function(e){var t=S(e+="",hl);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,pl);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"]}),vl=gl.format,gl.parse,ml=gl.utcFormat,_l=gl.utcParse;var Dc="%Y-%m-%dT%H:%M:%S.%LZ";Date.prototype.toISOString||ml(Dc),+new Date("2000-01-01T00:00:00.000Z")||_l(Dc);var Tc=31536e6;function Mc(e){return new Date(e)}function Pc(e){return e instanceof Date?+e:+new Date(+e)}function Fc(e,t,n,r,i,o,a,s,l){var c=ss(rs,ca),u=c.invert,d=c.domain,h=l(".%L"),p=l(":%S"),f=l("%I:%M"),g=l("%I %p"),v=l("%a %d"),m=l("%b %d"),_=l("%B"),y=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,Tc]];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=zo((function(e){return e[2]})).right(x,o);a===x.length?(i=Go(n/Tc,r/Tc,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(Go(n,r,t),1),t=s)}return null==i?t:t.every(i)}return c.invert=function(e){return new Date(u(e))},c.domain=function(e){return arguments.length?d(ia.call(e,Pc)):d().map(Mc)},c.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},c.tickFormat=function(e,t){return null==t?b:l(t)},c.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)):c},c.copy=function(){return as(c,Fc(e,t,n,r,i,o,a,s,l))},c}function Ic(){return Fc(Js,$s,Us,zs,Bs,Ns,Os,As,vl).domain([new Date(2e3,0,1),new Date(2e3,0,2)])}var Oc="http://www.w3.org/1999/xhtml",Hc={svg:"http://www.w3.org/2000/svg",xhtml:Oc,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Nc(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),Hc.hasOwnProperty(t)?{space:Hc[t],local:e}:e}function Rc(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===Oc&&t.documentElement.namespaceURI===Oc?t.createElement(e):t.createElementNS(n,e)}}function Bc(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Vc(e){var t=Nc(e);return(t.local?Bc:Rc)(t)}function zc(){}function Wc(e){return null==e?zc:function(){return this.querySelector(e)}}function Uc(){return[]}var Yc=function(e){return function(){return this.matches(e)}};if("undefined"!=typeof document){var jc=document.documentElement;if(!jc.matches){var qc=jc.webkitMatchesSelector||jc.msMatchesSelector||jc.mozMatchesSelector||jc.oMatchesSelector;Yc=function(e){return function(){return qc.call(this,e)}}}}var Xc=Yc;function Kc(e){return new Array(e.length)}function Zc(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function Gc(e,t,n,r,i,o){for(var a,s=0,l=t.length,c=o.length;s<c;++s)(a=t[s])?(a.__data__=o[s],r[s]=a):n[s]=new Zc(e,o[s]);for(;s<l;++s)(a=t[s])&&(i[s]=a)}function $c(e,t,n,r,i,o,a){var s,l,c,u={},d=t.length,h=o.length,p=new Array(d);for(s=0;s<d;++s)(l=t[s])&&(p[s]=c="$"+a.call(l,l.__data__,s,t),c in u?i[s]=l:u[c]=l);for(s=0;s<h;++s)(l=u[c="$"+a.call(e,o[s],s,o)])?(r[s]=l,l.__data__=o[s],u[c]=null):n[s]=new Zc(e,o[s]);for(s=0;s<d;++s)(l=t[s])&&u[p[s]]===l&&(i[s]=l)}function Qc(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Jc(e){return function(){this.removeAttribute(e)}}function eu(e){return function(){this.removeAttributeNS(e.space,e.local)}}function tu(e,t){return function(){this.setAttribute(e,t)}}function nu(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function ru(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function iu(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 ou(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function au(e){return function(){this.style.removeProperty(e)}}function su(e,t,n){return function(){this.style.setProperty(e,t,n)}}function lu(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function cu(e,t){return e.style.getPropertyValue(t)||ou(e).getComputedStyle(e,null).getPropertyValue(t)}function uu(e){return function(){delete this[e]}}function du(e,t){return function(){this[e]=t}}function hu(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}function pu(e){return e.trim().split(/^|\s+/)}function fu(e){return e.classList||new gu(e)}function gu(e){this._node=e,this._names=pu(e.getAttribute("class")||"")}function vu(e,t){for(var n=fu(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function mu(e,t){for(var n=fu(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function _u(e){return function(){vu(this,e)}}function yu(e){return function(){mu(this,e)}}function xu(e,t){return function(){(t.apply(this,arguments)?vu:mu)(this,e)}}function bu(){this.textContent=""}function Cu(e){return function(){this.textContent=e}}function Su(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}function Eu(){this.innerHTML=""}function ku(e){return function(){this.innerHTML=e}}function Lu(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}function wu(){this.nextSibling&&this.parentNode.appendChild(this)}function Au(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Du(){return null}function Tu(){var e=this.parentNode;e&&e.removeChild(this)}function Mu(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}function Pu(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}Zc.prototype={constructor:Zc,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)}},gu.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 Fu={},Iu=null;function Ou(e,t,n){return e=Hu(e,t,n),function(t){var n=t.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||e.call(this,t)}}function Hu(e,t,n){return function(r){var i=Iu;Iu=r;try{e.call(this,this.__data__,t,n)}finally{Iu=i}}}function Nu(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 Ru(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 Bu(e,t,n){var r=Fu.hasOwnProperty(e.type)?Ou:Hu;return function(i,o,a){var s,l=this.__on,c=r(t,o,a);if(l)for(var u=0,d=l.length;u<d;++u)if((s=l[u]).type===e.type&&s.name===e.name)return this.removeEventListener(s.type,s.listener,s.capture),this.addEventListener(s.type,s.listener=c,s.capture=n),void(s.value=t);this.addEventListener(e.type,c,n),s={type:e.type,name:e.name,value:t,listener:c,capture:n},l?l.push(s):this.__on=[s]}}function Vu(e,t,n){var r=ou(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 zu(e,t){return function(){return Vu(this,e,t)}}function Wu(e,t){return function(){return Vu(this,e,t.apply(this,arguments))}}"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(Fu={mouseenter:"mouseover",mouseleave:"mouseout"}));var Uu=[null];function Yu(e,t){this._groups=e,this._parents=t}function ju(e){return"string"==typeof e?new Yu([[document.querySelector(e)]],[document.documentElement]):new Yu([[e]],Uu)}Yu.prototype=function(){return new Yu([[document.documentElement]],Uu)}.prototype={constructor:Yu,select:function(e){"function"!=typeof e&&(e=Wc(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,c=r[i]=new Array(l),u=0;u<l;++u)(o=s[u])&&(a=e.call(o,o.__data__,u,s))&&("__data__"in o&&(a.__data__=o.__data__),c[u]=a);return new Yu(r,this._parents)},selectAll:function(e){"function"!=typeof e&&(e=function(e){return null==e?Uc: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,c=0;c<l;++c)(a=s[c])&&(r.push(e.call(a,a.__data__,c,s)),i.push(a));return new Yu(r,i)},filter:function(e){"function"!=typeof e&&(e=Xc(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]=[],c=0;c<s;++c)(o=a[c])&&e.call(o,o.__data__,c,a)&&l.push(o);return new Yu(r,this._parents)},data:function(e,t){if(!e)return f=new Array(this.size()),u=-1,this.each((function(e){f[++u]=e})),f;var n,r=t?$c:Gc,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),c=new Array(a),u=0;u<a;++u){var d=i[u],h=o[u],p=h.length,f=e.call(d,d&&d.__data__,u,i),g=f.length,v=l[u]=new Array(g),m=s[u]=new Array(g);r(d,h,v,m,c[u]=new Array(p),f,t);for(var _,y,x=0,b=0;x<g;++x)if(_=v[x]){for(x>=b&&(b=x+1);!(y=m[b])&&++b<g;);_._next=y||null}}return(s=new Yu(s,i))._enter=l,s._exit=c,s},enter:function(){return new Yu(this._enter||this._groups.map(Kc),this._parents)},exit:function(){return new Yu(this._exit||this._groups.map(Kc),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,c=t[s],u=n[s],d=c.length,h=a[s]=new Array(d),p=0;p<d;++p)(l=c[p]||u[p])&&(h[p]=l);for(;s<r;++s)a[s]=t[s];return new Yu(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=Qc);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,c=i[o]=new Array(l),u=0;u<l;++u)(a=s[u])&&(c[u]=a);c.sort(t)}return new Yu(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=Nc(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?eu:Jc:"function"==typeof t?n.local?iu:ru:n.local?nu:tu)(n,t))},style:function(e,t,n){return arguments.length>1?this.each((null==t?au:"function"==typeof t?lu:su)(e,t,null==n?"":n)):cu(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?uu:"function"==typeof t?hu:du)(e,t)):this.node()[e]},classed:function(e,t){var n=pu(e+"");if(arguments.length<2){for(var r=fu(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"==typeof t?xu:t?_u:yu)(n,t))},text:function(e){return arguments.length?this.each(null==e?bu:("function"==typeof e?Su:Cu)(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?Eu:("function"==typeof e?Lu:ku)(e)):this.node().innerHTML},raise:function(){return this.each(wu)},lower:function(){return this.each(Au)},append:function(e){var t="function"==typeof e?e:Vc(e);return this.select((function(){return this.appendChild(t.apply(this,arguments))}))},insert:function(e,t){var n="function"==typeof e?e:Vc(e),r=null==t?Du:"function"==typeof t?t:Wc(t);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each(Tu)},clone:function(e){return this.select(e?Pu:Mu)},datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},on:function(e,t,n){var r,i,o=Nu(e+""),a=o.length;if(!(arguments.length<2)){for(s=t?Bu:Ru,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,c=0,u=s.length;c<u;++c)for(r=0,l=s[c];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?Wu:zu)(e,t))}};var qu,Xu,Ku,Zu,Gu=0;function $u(){this._="@"+(++Gu).toString(36)}function Qu(e){var t=e.domainNRangeValues,n=e.showRoundOffXTickValues,r=void 0!==n&&n,i=e.xAxistickSize,o=void 0===i?6:i,a=e.tickPadding,s=void 0===a?10:a,l=e.xAxisCount,c=void 0===l?6:l,u=e.xAxisElement,d=Ss().domain([t.dStartValue,t.dEndValue]).range([t.rStartValue,t.rEndValue]);r&&d.nice();var h=Po(d).tickSize(o).tickPadding(s).ticks(c).tickSizeOuter(0);return u&&ju(u).call(h).selectAll("text").attr("aria-hidden","true"),d}function Ju(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 ed(e){var t=e.tooltipCls,n=e.xAxis,r=e.id;if(null===n)return null;for(var i=ju("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 c=o[l].dataset&&Object.values(o[l].dataset)[0];s.push(c)}var u=n.selectAll(".tick")._groups[0],d=u&&Object.keys(u).length,h=function(e){ju(u[e]).on("mouseover",(function(t){i.style("opacity",.9),i.html(s[e]).style("left",Iu.pageX+"px").style("top",Iu.pageY-28+"px")})).on("mouseout",(function(e){i.style("opacity",0)}))};for(l=0;l<d;l++)h(l)}function td(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 nd(e,t,n,r,i,o,s,l){var c;if(o===Ku.NumericAxis)switch(r){case Xu.AreaChart:case Xu.LineChart:c=function(e,t,n,r){var i=Bo(e,(function(e){return Bo(e.data,(function(e){return e.x}))})),o=Ro(e,(function(e){return Ro(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 Xu.VerticalStackedBarChart:c=function(e,t,n,r,i){var o=Bo(e,(function(e){return e.x})),a=Ro(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 Xu.VerticalBarChart:c=function(e,t,n,r,i){var o=Ro(e,(function(e){return e.x})),a=Bo(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:c={dStartValue:0,dEndValue:0,rStartValue:0,rEndValue:0}}else if(o===Ku.DateAxis)switch(r){case Xu.AreaChart:case Xu.LineChart:c=function(e,t,n,r,i){void 0===i&&(i=[]);var o=Bo(e,(function(e){return Bo(e.data,(function(e){return e.x}))})),s=Ro(e,(function(e){return Ro(e.data,(function(e){return e.x}))})),l=Bo(a(i,[o])),c=Ro(a(i,[s])),u=t.left,d=n-t.right;return r?{dStartValue:c,dEndValue:l,rStartValue:u,rEndValue:d}:{dStartValue:l,dEndValue:c,rStartValue:u,rEndValue:d}}(e,t,n,i,l);break;default:c={dStartValue:0,dEndValue:0,rStartValue:0,rEndValue:0}}else switch(r){case Xu.VerticalStackedBarChart:case Xu.GroupedVerticalBarChart:case Xu.VerticalBarChart:case Xu.HeatMapChart:c=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:c={dStartValue:0,dEndValue:0,rStartValue:0,rEndValue:0}}return c}function rd(e,t){var n,r,i;switch(t){case Xu.AreaChart:case Xu.LineChart:n=function(e){var t=Ro(e,(function(e){return Ro(e.data,(function(e){return e.y}))}));return{startValue:Bo(e,(function(e){return Bo(e.data,(function(e){return e.y}))})),endValue:t}}(e);break;case Xu.VerticalStackedBarChart:i=Ro(r=e,(function(e){return e.y})),n={startValue:Bo(r,(function(e){return e.y})),endValue:i};break;case Xu.VerticalBarChart:n=function(e){var t=Ro(e,(function(e){return e.y}));return{startValue:Bo(e,(function(e){return e.y})),endValue:t}}(e);break;default:n={startValue:0,endValue:0}}return n}$u.prototype=function(){return new $u}.prototype={constructor:$u,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"}(Xu||(Xu={})),function(e){e[e.NumericAxis=0]="NumericAxis",e[e.DateAxis=1]="DateAxis",e[e.StringAxis=2]="StringAxis"}(Ku||(Ku={})),function(e){e[e.NumericAxis=0]="NumericAxis",e[e.DateAxis=1]="DateAxis",e[e.StringAxis=2]="StringAxis"}(Zu||(Zu={}));var id,od,ad=function(e,t){if(t)switch(typeof e){case"string":return Ku.StringAxis;case"number":return Ku.NumericAxis;default:return Ku.DateAxis}else switch(typeof e){case"string":return Zu.StringAxis;case"number":return Zu.NumericAxis;default:return Zu.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"}(id||(id={})),function(e){e[e.dottedLine=0]="dottedLine"}(od||(od={}));var sd,ld=((qu={})[id.circle]={widthRatio:1},qu[id.square]={widthRatio:1},qu[id.triangle]={widthRatio:1},qu[id.diamond]={widthRatio:1},qu[id.pyramid]={widthRatio:1},qu[id.hexagon]={widthRatio:2},qu[id.pentagon]={widthRatio:1.168},qu[id.octagon]={widthRatio:2.414},qu),cd=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}},ud=((sd={})[""+id[id.circle]]="M1 6 A5 5 0 1 0 12 6 M1 6 A5 5 0 0 1 12 6",sd[""+id[id.square]]="M1 1 L12 1 L12 12 L1 12 L1 1 Z",sd[""+id[id.triangle]]="M6 10L8.74228e-07 -1.04907e-06L12 0L6 10Z",sd[""+id[id.pyramid]]="M6 10L8.74228e-07 -1.04907e-06L12 0L6 10Z",sd[""+id[id.diamond]]="M2 2 L10 2 L10 10 L2 10 L2 2 Z",sd[""+id[id.hexagon]]="M9 0H3L0 5L3 10H9L12 5L9 0Z",sd[""+id[id.pentagon]]="M6.06061 0L0 4.21277L2.30303 11H9.69697L12 4.21277L6.06061 0Z",sd[""+id[id.octagon]]="M7.08333 0H2.91667L0 2.91667V7.08333L2.91667 10H7.08333L10 7.08333V2.91667L7.08333 0Z",sd[""+od[od.dottedLine]]="M0 6 H3 M5 6 H8 M10 6 H13",sd),dd=function(e){var t=e.svgProps,n=e.pathProps,r=e.shape,o=e.classNameForNonSvg;return-1===Object.keys(ud).indexOf(r)?s.createElement("div",{className:o}):s.createElement("svg",i({width:14,height:14,viewBox:"-1 -1 14 14"},t,{transform:"rotate("+(r===id[id.diamond]?45:r===id[id.triangle]?180:0)+", 0, 0)"}),s.createElement("path",i({d:ud[r]},n)))},hd=le(),pd=b(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;return s.createElement(bo,i({},a&&{role:"listbox","aria-label":"Legends"},r,{items:e.primary,overflowItems:e.overflow,onRenderItem:n._renderButton,onRenderOverflowButton:n._renderOverflowItems,styles:{root:{justifyContent:n.props.centerLegends?"center":"unset",flexWrap:"wrap"}}}))},n._onReduceData=function(e){if(0!==e.primary.length){var t=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(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(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,c=t.theme,u=[],d=hd(l,{theme:c,className:a});return e.renderData.forEach((function(e,t){var r=n._renderButton(e,t,!0);u.push(r)})),s.createElement(Bi,i({},o&&{role:"listbox"},{direction:hi.vertical},n.props.focusZonePropsInHoverCard,{className:d.hoverCardRoot}),u)},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,c=l.theme,u=l.className,d=l.styles,h=l.overflowText,p=hd(d,{theme:c,className:u}),f={onRenderPlainCard:n._onRenderCompactCard,renderData:a},g=h||"more";return s.createElement(ro,{type:wi.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},c=n._getColor(l.title,l.color),u=n.props,d=u.theme,h=u.className,p=u.styles,f=hd(p,{theme:d,className:h,colorOnSelectedState:c,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,c);return s.createElement("button",i({},a&&{"aria-selected":n.state.selectedLegend===l.title,role:"option","aria-label":l.title,"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=hd(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(po,{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(dd,{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),(function(e){var t,n,r=e.className,o=e.theme,a=e.isLineLegendInBarChart,s=void 0!==a&&a,l=o,c=l.palette,u=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:[On(o,d),{display:"flex",alignItems:"center",cursor:"pointer",border:"none",padding:"8px",background:"none"}],rect:{selectors:(t={},t[Tn]={content:"linear-gradient(to right, "+e.colorOnSelectedState+", "+e.colorOnSelectedState+")",opacity:e.colorOnSelectedState===c.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===c.white?"0.6":e.opacity?e.opacity:"",selectors:(n={},n[Tn]={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({},u.small),{lineHeight:"16px",color:null==o?void 0:o.semanticColors.bodyText,opacity:e.colorOnSelectedState===c.white?"0.6":""}),hoverChange:{width:"12px",height:"12px",backgroundColor:"white",marginRight:"8px",border:"1px solid",borderColor:e.borderColor?e.borderColor:c.black},overflowIndicationTextStyle:[On(o,d),i(i({cursor:"pointer",color:null==o?void 0:o.semanticColors.bodyText},u.small),{lineHeight:"16px",padding:"8px"})],hoverCardRoot:{padding:"8px"},subComponentStyles:{hoverCardStyles:{host:[On(o,d)]}}}}));function fd(e){return function(){return e}}function gd(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function vd(e){return e}var md=Math.abs,_d=Math.atan2,yd=Math.cos,xd=Math.max,bd=Math.min,Cd=Math.sin,Sd=Math.sqrt,Ed=1e-12,kd=Math.PI,Ld=kd/2,wd=2*kd;function Ad(e){return e>1?0:e<-1?kd:Math.acos(e)}function Dd(e){return e>=1?Ld:e<=-1?-Ld:Math.asin(e)}function Td(){var e=vd,t=gd,n=null,r=fd(0),i=fd(wd),o=fd(0);function a(a){var s,l,c,u,d,h=a.length,p=0,f=new Array(h),g=new Array(h),v=+r.apply(this,arguments),m=Math.min(wd,Math.max(-wd,i.apply(this,arguments)-v)),_=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,c=p?(m-h*y)/p:0;s<h;++s,v=u)l=f[s],u=v+((d=g[l])>0?d*c:0)+y,g[l]={data:a[l],index:s,value:d,startAngle:v,endAngle:u,padAngle:_};return g}return a.value=function(t){return arguments.length?(e="function"==typeof t?t:fd(+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:fd(+e),a):r},a.endAngle=function(e){return arguments.length?(i="function"==typeof e?e:fd(+e),a):i},a.padAngle=function(e){return arguments.length?(o="function"==typeof e?e:fd(+e),a):o},a}var Md=Math.PI,Pd=2*Md,Fd=1e-6,Id=Pd-Fd;function Od(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function Hd(){return new Od}Od.prototype=Hd.prototype={constructor:Od,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,c=o-e,u=a-t,d=c*c+u*u;if(i<0)throw new Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(d>Fd)if(Math.abs(u*s-l*c)>Fd&&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),_=i*Math.tan((Md-Math.acos((f+d-g)/(2*v*m)))/2),y=_/m,x=_/v;Math.abs(y-1)>Fd&&(this._+="L"+(e+y*c)+","+(t+y*u)),this._+="A"+i+","+i+",0,0,"+ +(u*h>c*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,c=t+s,u=1^o,d=o?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+l+","+c:(Math.abs(this._x1-l)>Fd||Math.abs(this._y1-c)>Fd)&&(this._+="L"+l+","+c),n&&(d<0&&(d=d%Pd+Pd),d>Id?this._+="A"+n+","+n+",0,1,"+u+","+(e-a)+","+(t-s)+"A"+n+","+n+",0,1,"+u+","+(this._x1=l)+","+(this._y1=c):d>Fd&&(this._+="A"+n+","+n+",0,"+ +(d>=Md)+","+u+","+(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 Nd=Hd;function Rd(e){return e.innerRadius}function Bd(e){return e.outerRadius}function Vd(e){return e.startAngle}function zd(e){return e.endAngle}function Wd(e){return e&&e.padAngle}function Ud(e,t,n,r,i,o,a,s){var l=n-e,c=r-t,u=a-i,d=s-o,h=d*l-u*c;if(!(h*h<Ed))return[e+(h=(u*(t-o)-d*(e-i))/h)*l,t+h*c]}function Yd(e,t,n,r,i,o,a){var s=e-n,l=t-r,c=(a?o:-o)/Sd(s*s+l*l),u=c*l,d=-c*s,h=e+u,p=t+d,f=n+u,g=r+d,v=(h+f)/2,m=(p+g)/2,_=f-h,y=g-p,x=_*_+y*y,b=i-o,C=h*g-f*p,S=(y<0?-1:1)*Sd(xd(0,b*b*x-C*C)),E=(C*y-_*S)/x,k=(-C*_-y*S)/x,L=(C*y+_*S)/x,w=(-C*_+y*S)/x,A=E-v,D=k-m,T=L-v,M=w-m;return A*A+D*D>T*T+M*M&&(E=L,k=w),{cx:E,cy:k,x01:-u,y01:-d,x11:E*(i/b-1),y11:k*(i/b-1)}}function jd(){var e=Rd,t=Bd,n=fd(0),r=null,i=Vd,o=zd,a=Wd,s=null;function l(){var l,c,u=+e.apply(this,arguments),d=+t.apply(this,arguments),h=i.apply(this,arguments)-Ld,p=o.apply(this,arguments)-Ld,f=md(p-h),g=p>h;if(s||(s=l=Nd()),d<u&&(c=d,d=u,u=c),d>Ed)if(f>wd-Ed)s.moveTo(d*yd(h),d*Cd(h)),s.arc(0,0,d,h,p,!g),u>Ed&&(s.moveTo(u*yd(p),u*Cd(p)),s.arc(0,0,u,p,h,g));else{var v,m,_=h,y=p,x=h,b=p,C=f,S=f,E=a.apply(this,arguments)/2,k=E>Ed&&(r?+r.apply(this,arguments):Sd(u*u+d*d)),L=bd(md(d-u)/2,+n.apply(this,arguments)),w=L,A=L;if(k>Ed){var D=Dd(k/u*Cd(E)),T=Dd(k/d*Cd(E));(C-=2*D)>Ed?(x+=D*=g?1:-1,b-=D):(C=0,x=b=(h+p)/2),(S-=2*T)>Ed?(_+=T*=g?1:-1,y-=T):(S=0,_=y=(h+p)/2)}var M=d*yd(_),P=d*Cd(_),F=u*yd(b),I=u*Cd(b);if(L>Ed){var O,H=d*yd(y),N=d*Cd(y),R=u*yd(x),B=u*Cd(x);if(f<kd&&(O=Ud(M,P,R,B,H,N,F,I))){var V=M-O[0],z=P-O[1],W=H-O[0],U=N-O[1],Y=1/Cd(Ad((V*W+z*U)/(Sd(V*V+z*z)*Sd(W*W+U*U)))/2),j=Sd(O[0]*O[0]+O[1]*O[1]);w=bd(L,(u-j)/(Y-1)),A=bd(L,(d-j)/(Y+1))}}S>Ed?A>Ed?(v=Yd(R,B,M,P,d,A,g),m=Yd(H,N,F,I,d,A,g),s.moveTo(v.cx+v.x01,v.cy+v.y01),A<L?s.arc(v.cx,v.cy,A,_d(v.y01,v.x01),_d(m.y01,m.x01),!g):(s.arc(v.cx,v.cy,A,_d(v.y01,v.x01),_d(v.y11,v.x11),!g),s.arc(0,0,d,_d(v.cy+v.y11,v.cx+v.x11),_d(m.cy+m.y11,m.cx+m.x11),!g),s.arc(m.cx,m.cy,A,_d(m.y11,m.x11),_d(m.y01,m.x01),!g))):(s.moveTo(M,P),s.arc(0,0,d,_,y,!g)):s.moveTo(M,P),u>Ed&&C>Ed?w>Ed?(v=Yd(F,I,H,N,u,-w,g),m=Yd(M,P,R,B,u,-w,g),s.lineTo(v.cx+v.x01,v.cy+v.y01),w<L?s.arc(v.cx,v.cy,w,_d(v.y01,v.x01),_d(m.y01,m.x01),!g):(s.arc(v.cx,v.cy,w,_d(v.y01,v.x01),_d(v.y11,v.x11),!g),s.arc(0,0,u,_d(v.cy+v.y11,v.cx+v.x11),_d(m.cy+m.y11,m.cx+m.x11),g),s.arc(m.cx,m.cy,w,_d(m.y11,m.x11),_d(m.y01,m.x01),!g))):s.arc(0,0,u,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-kd/2;return[yd(r)*n,Cd(r)*n]},l.innerRadius=function(t){return arguments.length?(e="function"==typeof t?t:fd(+t),l):e},l.outerRadius=function(e){return arguments.length?(t="function"==typeof e?e:fd(+e),l):t},l.cornerRadius=function(e){return arguments.length?(n="function"==typeof e?e:fd(+e),l):n},l.padRadius=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:fd(+e),l):r},l.startAngle=function(e){return arguments.length?(i="function"==typeof e?e:fd(+e),l):i},l.endAngle=function(e){return arguments.length?(o="function"==typeof e?e:fd(+e),l):o},l.padAngle=function(e){return arguments.length?(a="function"==typeof e?e:fd(+e),l):a},l.context=function(e){return arguments.length?(s=null==e?null:e,l):s},l}var qd=function(e){var t=e.color,n=e.href,r=e.theme;return{root:{fill:t,cursor:n?"pointer":"default",stroke:An.white,outline:"transparent",selectors:{"::-moz-focus-inner":{border:"0"}}},focusRing:{stroke:r.semanticColors.focusBorder,strokeWidth:4},insideDonutString:{fontSize:En.large}}},Xd=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 Kd(e),null},t.prototype.updateChart=function(e){Kd(e)},t.prototype.render=function(){var e,t=this.props,n=t.arc,r=t.href,i=t.focusedArcId,o=le()(qd,{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._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:jd()},t}(s.Component);function Kd(e){e.arc.innerRadius(e.innerRadius),e.arc.outerRadius(e.outerRadius)}var Zd=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(Xd,{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=Td().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:Td().sort(null).value((function(e){return e.data})).padAngle(.02)},t}(s.Component),Gd=le(),$d=b(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._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.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=this,t=this.props,n=t.data,r=t.hideLegend,o=void 0!==r&&r,a=this.props.theme.palette;this._classNames=Gd(this.props.styles,{theme:this.props.theme,width:this.state._width,height:this.state._height,color:this.state.color,className:this.props.className});var l=this._createLegends(n,a),c=Math.min(this.state._width,this.state._height)/2,u=n&&n.chartData;return s.createElement("div",{className:this._classNames.root,"aria-label":null==n?void 0:n.chartTitle,ref:function(t){return e._rootElem=t}},s.createElement(Bi,{direction:hi.horizontal,isCircularNavigation:!0},s.createElement("div",null,s.createElement("svg",{className:this._classNames.chart,ref:function(t){return e._setViewBox(t)}},s.createElement(Zd,{width:this.state._width,height:this.state._height,outerRadius:c,innerRadius:this.props.innerRadius,data:u,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._valueInsideDonut(this.props.valueInsideDonut,u),theme:this.props.theme})))),s.createElement(di,i({target:this._currentHoverElement,alignTargetEdge:!0,isBeakVisible:!1,directionalHint:6,gapSpace:15,hidden:!(!this.props.hideTooltip&&this.state.showHover),id:this._calloutId,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0},this.props.calloutProps,cd(this.state.callOutAccessibilityData,"text",!1)),this.props.onRenderCalloutPerDataPoint?this.props.onRenderCalloutPerDataPoint(this.state.dataPointCalloutProps):s.createElement(vi,{Legend:this.state.xCalloutValue?this.state.xCalloutValue:this.state.legend,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.value,color:this.state.color})),!o&&s.createElement("div",{className:this._classNames.legendContainer},l))},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(pd,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({showHover:!1,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.defaultProps={innerRadius:0},t}(s.Component),(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"}}})),Qd=le(),Jd=function(e){function t(t){var n,r,o,a,l,c,u,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},cd(e.xAxisCalloutAccessibilityData)),e.hoverXValue)),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({},cd(e.callOutAccessibilityData),{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!==(c=null===(l=v.props.margins)||void 0===l?void 0:l.left)&&void 0!==c?c:40:null!==(d=null===(u=v.props.margins)||void 0===u?void 0:u.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){e.height===this.props.height&&e.width===this.props.width||this._fitParentContainer()},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,c=t.svgProps;this.props.parentRef&&this._fitParentContainer(),this.props.getmargins&&this.props.getmargins(this.margins);var u,d,h={domainNRangeValues:nd(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},p={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:rd(r,o),yAxisPadding:this.props.yAxisPadding};switch(this.props.xAxisType){case Ku.NumericAxis:u=Qu(h);break;case Ku.DateAxis:u=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,c=void 0===l?6:l,u=Ic().domain([n.dStartValue,n.dEndValue]).range([n.rStartValue,n.rEndValue]),d=Po(u).tickSize(s).tickPadding(o).ticks(c);return t.tickValues&&d.tickValues(t.tickValues),t.tickFormat&&d.tickFormat(vl(t.tickFormat)),r&&ju(r).call(d).selectAll("text").attr("aria-hidden","true"),u}(h,this.props.tickParams);break;case Ku.StringAxis:u=function(e,t,n){var r=e.domainNRangeValues,i=e.xAxisCount,o=void 0===i?6:i,a=e.xAxistickSize,s=void 0===a?6:a,l=e.tickPadding,c=void 0===l?10:l,u=e.xAxisPadding,d=void 0===u?.1:u,h=la().domain(n).range([r.rStartValue,r.rEndValue]).padding(d),p=Po(h).tickSize(s).tickPadding(c).ticks(o).tickFormat((function(e,t){return n[t]}));return e.xAxisElement&&ju(e.xAxisElement).call(p).selectAll("text").attr("aria-hidden","true"),h}(h,this.props.tickParams,this.props.datasetForXAxisDomain);break;default:u=Qu(h)}if(this.props.wrapXAxisLables||this.props.showXAxisLablesTooltip){var f={node:this.xAxisElement,xAxis:u,showXAxisLablesTooltip:this.props.showXAxisLablesTooltip||!1,noOfCharsToTruncate:this.props.noOfCharsToTruncate||4},g=u&&function(e){var t=e.node,n=e.xAxis,r=e.noOfCharsToTruncate,i=e.showXAxisLablesTooltip;if(null!==t){var o=ju(t).call(n),a=0,s=[];return o.selectAll(".tick text").each((function(){var e=ju(this),t=e.text(),n=e.text().slice(0,r)+"...",l=e.text().length,c=e.text().split(/\s+/).reverse();s.push(c.length);var u="",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(;u=c.pop();)d.push(u),g.text(d.join(" ")),g.node().getComputedTextLength()>10&&d.length>1&&(d.pop(),g.text(d.join(" ")),d=[u],g=e.append("tspan").attr("id","WordBreakId").attr("x",0).attr("y",p).attr("dy",1.1*++h+f+"em").text(u));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 _=4;v<=2?_=1:v>2&&v<=6?_=2:v>6&&v<=9&&(_=3),a=(v-_)*m}})),a>0?a:0}}(f);this.state.isRemoveValCalculated&&this.state._removalValueForTextTuncate!==g&&this.setState({_removalValueForTextTuncate:g,isRemoveValCalculated:!1})}d=this.props.yAxisType&&this.props.yAxisType===Zu.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,c=e.yAxisPadding,u=void 0===c?0:c,d=la().domain(t).range([r-a.bottom,a.top]).padding(u),h=(n?Mo(d):Fo(d)).tickPadding(o).tickValues(t).tickSize(0);return s&&h.tickFormat(s),l&&ju(l).call(h).selectAll("text"),d}(p,this.props.stringDatasetForYAxisDomain,this._isRtl):function(e,t){var n=e.yMinMaxValues,r=void 0===n?{startValue:0,endValue:0}:n,i=e.yAxisElement,o=void 0===i?null:i,a=e.yMaxValue,s=void 0===a?0:a,l=e.yMinValue,c=void 0===l?0:l,u=e.containerHeight,d=e.containerWidth,h=e.margins,p=e.tickPadding,f=void 0===p?12:p,g=e.maxOfYVal,v=void 0===g?0:g,m=e.yAxisTickFormat,_=e.yAxisTickCount,y=void 0===_?4:_,x=e.eventAnnotationProps,b=e.eventLabelHeight,C=v||r.endValue,S=C>s?C:s,E=r.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}(S,E,y),L=Ss().domain([E,k[k.length-1]]).range([u-h.bottom,h.top+(x?b:0)]),w=(t?Mo(L):Fo(L)).tickPadding(f).tickValues(k).tickSizeInner(-(d-h.left-h.right));return m?w.tickFormat(m):w.tickFormat(_s(".2~s")),o&&ju(o).call(w).selectAll("text").attr("aria-hidden","true"),L}(p,this._isRtl),this._getData(u,d),this._classNames=Qd(this.props.styles,{theme:this.props.theme,width:this.state._width,height:this.state._height,className:this.props.className,isRtl:this._isRtl});var v,m={width:this.state.containerWidth,height:this.state.containerHeight},_=this.props.children(i(i({},this.state),{xScale:u,yScale:d}));return v=this.props.focusZoneDirection===hi.vertical||this.props.focusZoneDirection?this.props.focusZoneDirection:hi.horizontal,s.createElement("div",{id:this.idForGraph,className:this._classNames.root,role:"presentation",ref:function(t){return e.chartContainer=t}},s.createElement(Bi,i({direction:v},l),s.createElement("svg",i({width:m.width,height:m.height,"aria-label":this.props.chartTitle,style:{display:"block"}},c),s.createElement("g",{ref:function(t){e.xAxisElement=t},id:"xAxisGElement"+this.idForGraph,transform:"translate(0, "+(m.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?m.width-this.margins.right:this.margins.left)+", 0)",className:this._classNames.yAxis}),_)),!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(di,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(vi,i({XValue:n.XValue,Legend:n.legend,YValue:n.YValue,color:n.color},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=Qd(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});if(e.yAxisCalloutData&&"string"!=typeof e.yAxisCalloutData){var l=e.yAxisCalloutData;return s.createElement("div",{style:i},s.createElement("div",{className:"ms-fontWeight-semibold",style:{fontSize:"12pt"}},e.legend," (",e.y,")"),Object.keys(l).map((function(e){return s.createElement("div",{key:e,className:a.calloutBlockContainer},s.createElement("div",{className:a.calloutlegendText}," ",e),s.createElement("div",{className:a.calloutContentY},l[e]))})))}return s.createElement("div",{style:n?i:{}},n&&s.createElement("div",{className:"ms-fontWeight-semibold",style:{fontSize:"12pt"}},e.legend," (",e.y,")"),s.createElement("div",{id:t+"_"+e.y,className:a.calloutBlockContainer},o&&s.createElement(dd,{svgProps:{className:a.shapeStyles},pathProps:{fill:e.color},shape:id[e.index%Object.keys(ld).length]}),s.createElement("div",null,s.createElement("div",{className:a.calloutlegendText}," ",e.legend),s.createElement("div",{className:a.calloutContentY},e.yAxisCalloutData?e.yAxisCalloutData:e.y||e.data))))},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),eh=function(){var e,t=u();return!!(null===(e=null==t?void 0:t.navigator)||void 0===e?void 0:e.userAgent)&&t.navigator.userAgent.indexOf("rv:11.0")>-1}(),th=b(Jd,(function(e){var t,n,r,o,a=e.className,s=e.theme,l=e.isRtl,c=e.shouldHighlight,u=e.href,d=e.lineColor,h=void 0===d?"transparent":d,p=e.toDrawShape,f=s.fonts;return{root:[s.fonts.medium,{display:"flex",width:"100%",height:"100%",flexDirection:"column",overflow:"hidden"},a],xAxis:{selectors:{text:[s.fonts.tiny,{fill:s.semanticColors.bodyText,selectors:(t={},t[Mn]={fill:"rgb(179, 179, 179)"},t)}],line:{opacity:.2,stroke:s.semanticColors.bodyText,width:"1px",selectors:(n={},n[Mn]={opacity:.1,stroke:"rgb(179, 179, 179)"},n)},path:{display:"none"}}},yAxis:{selectors:{text:[s.fonts.tiny,{fill:s.semanticColors.bodyText,selectors:(r={},r[Mn]={fill:"rgb(179, 179, 179)"},r)}],path:{display:"none"},line:{opacity:.2,stroke:s.semanticColors.bodyText,selectors:(o={},o[Mn]={opacity:.1,stroke:"rgb(179, 179, 179)"},o)},g:[l&&!eh&&{textAnchor:"end"}]}},opacityChangeOnHover:{opacity:c?"":"0.1",cursor:u?"pointer":"default"},legendContainer:[{marginTop:"8px",marginLeft:"20px"}],calloutContentRoot:[{display:"grid",overflow:"hidden",padding:"11px 16px 10px 16px",backgroundColor:s.semanticColors.bodyBackground,backgroundBlendMode:"normal, luminosity"}],calloutDateTimeContainer:{display:"flex",flexDirection:"row",justifyContent:"space-between"},calloutContentX:[i(i({},f.small),{lineHeight:"16px",opacity:"0.8",color:s.semanticColors.bodySubtext})],calloutBlockContainer:[s.fonts.mediumPlus,{marginTop:"13px",color:s.semanticColors.bodyText},!p&&{borderLeft:"4px solid "+h,paddingLeft:"8px"},p&&{display:"flex"}],shapeStyles:{marginRight:"8px"},calloutlegendText:i(i({},f.small),{lineHeight:"16px",color:s.semanticColors.bodySubtext}),calloutContentY:[i(i({},f.mediumPlus),{fontWeight:"bold",lineHeight:"22px"})],descriptionMessage:[s.fonts.small,{color:s.semanticColors.bodyText,marginTop:"10px",paddingTop:"10px",borderTop:"1px solid "+s.semanticColors.menuDivider}]}})),nh=Un((function(e){return Un((function(t){var n=Un((function(e){return function(n){return t(n,e)}}));return function(r,i){return e(r,i?n(i):t)}}))}));function rh(e,t){return nh(e)(t)}var ih={top:-1,bottom:-1,left:-1,right:-1,width:0,height:0},oh=function(e){return e.getBoundingClientRect()},ah=oh,sh=oh,lh=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,c=e.page,u=c.items,d=void 0===u?[]:u,h=c.startIndex,p=o(e,["page"]),f=void 0===l?"listitem":"presentation",g=[],v=0;v<d.length;v++){var m=h+v,_=d[v],y=n.props.getKey?n.props.getKey(_,m):_&&_.key;null==y&&(y=m),g.push(s.createElement("div",{role:f,className:"ms-List-cell",key:y,"data-list-index":m,"data-automationid":"ListCell"},a&&a(_,m,n.props.ignoreScrollingState?void 0:n.state.isScrolling)))}return s.createElement("div",i({},p),g)},yi(n),n.state={pages:[],isScrolling:!1,getDerivedStateFromProps:n._getDerivedStateFromProps},n._async=new xt(n),n._events=new Ui(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 c=this._getPageSpecification(l,o),u=c.height;if(s=c.itemCount,l<=e&&l+s>e){if(t&&this._scrollElement){for(var d=sh(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+=u}},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=Xe(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(){var e=this.props,t=this.state;e.getPageHeight?this._onAsyncIdle():this._updatePageMeasurements(t.pages)?(this._materializedRect=null,this._hasCompletedFirstRender?this._onAsyncScroll():(this._hasCompletedFirstRender=!0,this.setState(this._updatePages(e,t)))):this._onAsyncIdle(),e.onPagesUpdated&&e.onPagesUpdated(t.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.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,c=[],u=ze(this.props,Ve),d=0,h=l;d<h.length;d++){var p=h[d];c.push(this._renderPage(p))}var f=o?rh(o,this._onRenderSurface):this._onRenderSurface;return(a?rh(a,this._onRenderRoot):this._onRenderRoot)({rootRef:this._root,pages:l,surfaceElement:f({surfaceRef:this._surface,pages:l,pageElements:c,divProps:{role:"presentation",className:"ms-List-surface"}}),divProps:i(i({},u),{className:We("ms-List",t),role:c.length>0?r: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=_e(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({},t),n)},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++)(u=s[a]).items&&(o[u.startIndex]=u);for(var l=0,c=t;l<c.length;l++){var u;(u=c[l]).items&&(o[u.startIndex]?delete o[u.startIndex]:this._onPageAdded(u))}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({},ih),l=[],c=1,u=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=_._getPageSpecification(e,v),i=n.height,a=n.data,m=n.key;c=n.itemCount;var y,x,b=u+i-1,C=ge(t.pages,(function(t){return!!t.items&&t.startIndex===e}))>-1,S=!v||b>=v.top&&u<=v.bottom,E=!_._requiredRect||b>=_._requiredRect.top&&u<=_._requiredRect.bottom;if(!g&&(E||S&&C)||!f||h>=e&&h<e+c||e===o){d&&(l.push(d),d=null);var k=Math.min(c,p-e),L=_._createPage(m,r.slice(e,e+k),e,void 0,void 0,a);L.top=u,L.height=i,_._visibleRect&&_._visibleRect.bottom&&(L.isVisible=b>=_._visibleRect.top&&u<=_._visibleRect.bottom),l.push(L),E&&_._allowedRect&&(y=s,x={top:u,bottom:b,height:i,left:v.left,right:v.right,width:v.width},y.top=x.top<y.top||-1===y.top?x.top:y.top,y.left=x.left<y.left||-1===y.left?x.left:y.left,y.bottom=x.bottom>y.bottom||-1===y.bottom?x.bottom:y.bottom,y.right=x.right>y.right||-1===y.right?x.right:y.right,y.width=y.right-y.left+1,y.height=y.bottom-y.top+1)}else d||(d=_._createPage("spacer-"+e,void 0,e,0,void 0,a,!0)),d.height=(d.height||0)+(b-u)+1,d.itemCount+=c;if(u+=b-u+1,g&&f)return"break"},_=this,y=o;y<p&&"break"!==m(y);y+=c);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({},ih),l=this._scrollElement&&this._scrollElement.scrollHeight,c=this._scrollElement?this._scrollElement.scrollTop:0;this._surface.current&&(n||!a||!this._surfaceRect||!l||l!==this._scrollHeight||Math.abs(this._scrollTop-c)>this._estimatedPageHeight/3)&&(s=this._surfaceRect=ah(this._surface.current),this._scrollTop=c),!n&&l&&l===this._scrollHeight||this._measureVersion++,this._scrollHeight=l||0;var d=Math.max(0,-s.top),h=u(this._root.current),p={top:d,left:s.left,bottom:d+h.innerHeight,right:s.right,width:s.width,height:h.innerHeight};this._requiredRect=ch(p,this._requiredWindowsBehind,this._requiredWindowsAhead),this._allowedRect=ch(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 ch(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 uh,dh=function(e){var t=s.useRef(null);s.useEffect((function(){if(t.current){var n=ju(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))},hh=function(e){var t,n,r=s.useRef(null),i=s.useState(!1),o=i[0],a=i[1],l=null;if(o){var c=e.labelDef.aggregatedIdx.map((function(t){return e.lineDefs[t].onRenderCard})).filter((function(e){return!!e}));c.length>0&&(l=s.createElement(di,{target:r.current,onDismiss:function(){return a(!1)},setInitialFocus:!0,role:"dialog"},s.createElement(Bi,{isCircularNavigation:!0,direction:hi.vertical},s.createElement(lh,{items:c,onRenderCell:function(e){return s.createElement("div",{"data-is-focusable":!0},e&&e())}}))))}return 1===e.labelDef.aggregatedIdx.length?(t=e.lineDefs[e.labelDef.aggregatedIdx[0]].event,n=e.textColor):(t=e.mergedLabel(e.labelDef.aggregatedIdx.length),n=e.textColor),s.createElement(s.Fragment,null,s.createElement("g",{ref:r,onClick:function(){return a(!0)},"data-is-focusable":!0,style:{cursor:"pointer"}},s.createElement(dh,{text:t,x:e.labelDef.x,y:e.textY,width:e.textWidth,lineHeight:e.textLineHeight,textAnchor:e.labelDef.anchor,fontSize:e.textFontSize,fill:n})),l)},ph=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=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:e.strokeColor,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=[],c=r;c<s;c++)l.push(c);var u=i(a,s);return u.unshift({x:e[r].x,anchor:o,aggregatedIdx:l}),u};return i(r,0)}(a,t+5,o[1],o[0]).map((function(r,o){return s.createElement(hh,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,l,c)},fh=le();!function(e){e[e.hoverSize=11]="hoverSize",e[e.invisibleSize=1]="invisibleSize"}(uh||(uh={}));var gh=b(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)},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,c=n.state.activePoint;return a?c===e?uh.hoverSize:1===t||r?2.5*l:uh.invisibleSize:c===e?uh.hoverSize:uh.invisibleSize},n._getPath=function(e,t,r,i,o,a){var s=n.props.allowMultipleShapesForPoints,l=void 0!==s&&s,c=n._getBoxWidthOfShape(r,i,o),u=l?a%Object.keys(ld).length:0,d=ld[u].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,c=d>1?c/d:c,u)},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=0;r<n._colorFillBars.length;r++){var i=n._colorFillBars[r],o=pe(i.legend.replace(/\W/g,""));i.applyPattern&&t.push(n._getStripePattern(i.color,r));for(var a=0;a<i.data.length;a++){var l=i.data[a].startX,c=i.data[a].endX,u=n.state.activeLegend===i.legend||""===n.state.activeLegend||n.state.isSelectedLegend?n._colorFillBarsOpacity:.1;t.push(s.createElement("rect",{fill:i.applyPattern?"url(#"+n._colorFillBarPatternId+r+")":i.color,fillOpacity:u,x:n._xAxisScale(l),y:n._yAxisScale(0)-e,width:Math.abs(n._xAxisScale(c)-n._xAxisScale(l)),height:e,key:""+o+a}))}}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:2}))},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 c=n;ju("#"+i).attr("aria-labelledby","toolTip"+n._uniqueCallOutID),ju("#"+n._verticalLine).attr("transform",(function(){return"translate("+c._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){o.persist(),n._uniqueCallOutID=r;var a=e instanceof Date?e.toLocaleDateString():e,s=e instanceof Date?e.getTime():e,l=n,c=ve(n._calloutPoints,(function(e){return e.x===s}));c?(ju("#"+n._verticalLine).attr("transform",(function(){return"translate("+l._xAxisScale(e)+", 0)"})).attr("visibility","visibility"),n.setState({isCalloutVisible:!0,refSelected:o,hoverXValue:t||""+a,YValueHover:c.values,stackCalloutProps:c,dataPointCalloutProps:c,activePoint:r,xAxisCalloutAccessibilityData:i})):n.setState({activePoint:r})},n._onLineClick=function(e){e&&e()},n._onDataPointClick=function(e){e&&e()},n._handleMouseOut=function(){ju("#"+n._verticalLine).attr("visibility","hidden"),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(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(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=.4,n._calloutPoints=Ju(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=Ju(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 c=td(this._points),u=this._points;a&&a.canSelectMultipleLegends&&(u=this.state.selectedLegendPoints.length>=1?this.state.selectedLegendPoints:this._points,this._calloutPoints=Ju(u));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(th,i({},this.props,{chartTitle:l.chartTitle,points:u,chartType:Xu.LineChart,isCalloutForStack:!0,calloutProps:h,tickParams:p,legendBars:d,getmargins:this._getMargins,getGraphData:this._initializeLineChartData,xAxisType:c?Ku.DateAxis:Ku.NumericAxis,customizedCallout:this._getCustomizedCallout(),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:"steelblue",id:e._verticalLine,visibility:"hidden",strokeDasharray:"5,5"}),s.createElement("g",null,e._renderedColorFillBars,e.lines),o&&s.createElement(ph,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,c=!(!r||!r.canSelectMultipleLegends),u=e.map((function(e){var n=e.color;return i(i({title:e.legend,color:n,action:function(){c?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:id[e.index%Object.keys(ld).length]})})),d=this.props.colorFillBars?this.props.colorFillBars.map((function(e,n){var r=e.legend;return{title:r,color:e.color,action:function(){c?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(pd,i({legends:a(u,d),enabledWrapLines:this.props.enabledLegendsWrapLines,overflowProps:this.props.legendsOverflowProps,focusZonePropsInHoverCard:this.props.focusZonePropsForLegendsInHoverCard,overflowText:this.props.legendsOverflowText},c&&{onLegendHoverCardLeave:this._onHoverCardHide},this.props.legendProps))},t.prototype._createLines=function(e){var t,n,r,i,o,l,c,u,d,h,p,f,g,v,m=this,_=[],y=[];this.state.isSelectedLegend?this._points=this.state.selectedLegendPoints:this._points=this._injectIndexPropertyInLineChartData(this.props.data.lineChartData);for(var x=0;x<this._points.length;x++){var b=[],C=[],S=[],E=this._points[x].legend,k=this._points[x].color,L=this.state.activePoint,w=this.props.theme;if(1===this._points[x].data.length){var A=this._points[x].data[0],D=A.x,T=A.y,M=A.xAxisCalloutData,P=A.xAxisCalloutAccessibilityData,F=""+this._circleId+x;S.push(s.createElement("circle",{id:""+this._circleId+x,key:""+this._circleId+x,r:L===F?5.5:3.5,cx:this._xAxisScale(D),cy:this._yAxisScale(T),fill:L===F?w.palette.white:k,onMouseOver:this._handleHover.bind(this,D,M,F,P),onMouseMove:this._handleHover.bind(this,D,M,F,P),onMouseOut:this._handleMouseOut,strokeWidth:L===F?2:0,stroke:L===F?k:""}))}for(var I=0,O=null!==(n=null===(t=this._points[x].gaps)||void 0===t?void 0:t.sort((function(e,t){return e.startIndex-t.startIndex})))&&void 0!==n?n:[],H=function(e){var t=N._checkInGap(e,O,I),n=t.isInGap;I=t.gapIndex;var a=""+N._lineId+x+e,_=""+N._borderId+x+e,y=""+N._circleId+x+e,A=N._points[x].data[e-1],D=A.x,T=A.y,M=A.xAxisCalloutData,P=A.xAxisCalloutAccessibilityData,F=N._points[x].data[e],H=F.x,R=F.y,B=N._getPath(N._xAxisScale(D),N._yAxisScale(T),y,e,!1,N._points[x].index),V=(null===(Y=N._points[x].lineOptions)||void 0===Y?void 0:Y.strokeWidth)||N.props.strokeWidth||4,z=N.state.activeLegend===E||""===N.state.activeLegend||N.state.isSelectedLegend,W=L!==y&&N._points[x].hideNonActiveDots;if(S.push(s.createElement("path",{id:y,key:y,d:B,"data-is-focusable":0===x,onMouseOver:N._handleHover.bind(N,D,M,y,P),onMouseMove:N._handleHover.bind(N,D,M,y,P),onMouseOut:N._handleMouseOut,onFocus:function(){return m._handleFocus(a,D,M,y,P)},onBlur:N._handleMouseOut,onClick:N._onDataPointClick.bind(N,N._points[x].data[e-1].onDataPointClick),visibility:W?"hidden":"visible",opacity:z?1:.01,fill:N._getPointFill(k,y,e,!1),stroke:k,strokeWidth:2})),e+1===N._points[x].data.length){var U=""+y+e+"L";B=N._getPath(N._xAxisScale(H),N._yAxisScale(R),U,e,!0,N._points[x].index);var Y=N._points[x].data[e],j=Y.xAxisCalloutData,q=Y.xAxisCalloutAccessibilityData;S.push(s.createElement("path",{id:U,key:U,d:B,"data-is-focusable":0===x,onMouseOver:N._handleHover.bind(N,H,j,U,q),onMouseMove:N._handleHover.bind(N,H,j,U,q),onMouseOut:N._handleMouseOut,onFocus:function(){return m._handleFocus(a,H,j,U,q)},onBlur:N._handleMouseOut,onClick:N._onDataPointClick.bind(N,N._points[x].data[e].onDataPointClick),visibility:W?"hidden":"visible",opacity:z?1:.01,fill:N._getPointFill(k,U,e,!0),stroke:k,strokeWidth:2}))}if(z){if(!n){var X=(null===(r=N._points[x].lineOptions)||void 0===r?void 0:r.lineBorderWidth)?Number.parseFloat(N._points[x].lineOptions.lineBorderWidth.toString()):0;X>0&&C.push(s.createElement("line",{id:_,key:_,x1:N._xAxisScale(D),y1:N._yAxisScale(T),x2:N._xAxisScale(H),y2:N._yAxisScale(R),strokeLinecap:null!==(o=null===(i=N._points[x].lineOptions)||void 0===i?void 0:i.strokeLinecap)&&void 0!==o?o:"round",strokeWidth:Number.parseFloat(V.toString())+X,stroke:(null===(l=N._points[x].lineOptions)||void 0===l?void 0:l.lineBorderColor)||w.palette.white,opacity:1})),b.push(s.createElement("line",{id:a,key:a,x1:N._xAxisScale(D),y1:N._yAxisScale(T),x2:N._xAxisScale(H),y2:N._yAxisScale(R),strokeWidth:V,ref:function(e){m._refCallback(e,a)},onMouseOver:N._handleHover.bind(N,D,M,y,P),onMouseMove:N._handleHover.bind(N,D,M,y,P),onMouseOut:N._handleMouseOut,stroke:k,strokeLinecap:null!==(u=null===(c=N._points[x].lineOptions)||void 0===c?void 0:c.strokeLinecap)&&void 0!==u?u:"round",strokeDasharray:null===(d=N._points[x].lineOptions)||void 0===d?void 0:d.strokeDasharray,strokeDashoffset:null===(h=N._points[x].lineOptions)||void 0===h?void 0:h.strokeDashoffset,opacity:1,onClick:N._onLineClick.bind(N,N._points[x].onLineClick)}))}}else n||b.push(s.createElement("line",{id:a,key:a,x1:N._xAxisScale(D),y1:N._yAxisScale(T),x2:N._xAxisScale(H),y2:N._yAxisScale(R),strokeWidth:V,stroke:k,strokeLinecap:null!==(f=null===(p=N._points[x].lineOptions)||void 0===p?void 0:p.strokeLinecap)&&void 0!==f?f:"round",strokeDasharray:null===(g=N._points[x].lineOptions)||void 0===g?void 0:g.strokeDasharray,strokeDashoffset:null===(v=N._points[x].lineOptions)||void 0===v?void 0:v.strokeDashoffset,opacity:.1}))},N=this,R=1;R<this._points[x].data.length;R++)H(R);_.push.apply(_,a(C,b)),y.push.apply(y,S)}var B=fh(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 V=ju(e).call(this._xAxisScale);try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(e){}var z={tooltipCls:B.tooltip,id:this._tooltipId,xAxis:V};V&&ed(z)}return _.concat(y)},t.prototype._refCallback=function(e,t){this._refArray.push({index:t,refElement:e})},t}(s.Component),(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"})}})),vh=Array.prototype.slice;function mh(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 _h(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function yh(e,t){return e[t]}function xh(e){this._context=e}function bh(e){return new xh(e)}function Ch(e){return e[0]}function Sh(e){return e[1]}function Eh(){var e=Ch,t=Sh,n=fd(!0),r=null,i=bh,o=null;function a(a){var s,l,c,u=a.length,d=!1;for(null==r&&(o=i(c=Nd())),s=0;s<=u;++s)!(s<u&&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(c)return o=null,c+""||null}return a.x=function(t){return arguments.length?(e="function"==typeof t?t:fd(+t),a):e},a.y=function(e){return arguments.length?(t="function"==typeof e?e:fd(+e),a):t},a.defined=function(e){return arguments.length?(n="function"==typeof e?e:fd(!!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 kh(e){return e<0?-1:1}function Lh(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(kh(o)+kh(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function wh(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Ah(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 Dh(e){this._context=e}function Th(e){this._context=e}function Mh(e){return new Dh(e)}xh.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)}}},Dh.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Ah(this,this._t0,wh(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,Ah(this,wh(this,n=Lh(this,e,t)),n);break;default:Ah(this,this._t0,n=Lh(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 Th(e)}.prototype=Object.create(Dh.prototype)).point=function(e,t){Dh.prototype.point.call(this,t,e)},Th.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 Ph,Fh=le(),Ih=Oo((function(e){return e.x})).left;!function(e){e.show="visibility",e.hide="hidden"}(Ph||(Ph={}));var Oh=b(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=Ih(t[0].data,r),o=t[0].data[i-1],a=t[0].data[i],s=null,l=null,c=null;if(void 0===o&&void 0!==a)l=a.x,c=i;else if(void 0!==o&&void 0===a)l=o.x,c=i-1;else{var u=void 0,d=void 0,h=void 0;switch(s=ad(t[0].data[0].x,!0)){case Ku.DateAxis:u=new Date(r).getTime(),d=o.x.getTime(),h=a.x.getTime(),l=Math.abs(u-d)>Math.abs(u-h)?a.x:o.x,c=Math.abs(u-d)>Math.abs(u-h)?i:i-1;break;case Ku.NumericAxis:u=r,d=o.x,h=a.x,l=Math.abs(u-d)>Math.abs(u-h)?a.x:o.x,c=Math.abs(u-d)>Math.abs(u-h)?i:i-1}}var p=t[0].data[c],f=p.xAxisCalloutData,g=p.xAxisCalloutAccessibilityData,v=l instanceof Date?l.toLocaleString():l,m=l instanceof Date?l.getTime():l,_=ve(n._calloutPoints,(function(e){return e.x===m})),y=s===Ku.DateAxis?l.getTime():l;_?n.setState({refSelected:e,isCalloutVisible:!0,nearestCircleToHighlight:y,lineXValue:n._xAxisRectScale(l),displayOfLine:Ph.show,isCircleClicked:!1,stackCalloutProps:_,YValueHover:_.values,dataPointCalloutProps:_,hoverXValue:f||v,xAxisCalloutAccessibilityData:g}):n.setState({isCalloutVisible:!1,nearestCircleToHighlight:y,displayOfLine:Ph.hide,isCircleClicked:!1})},n._onRectMouseOut=function(){n.setState({refSelected:null,isCalloutVisible:!1,nearestCircleToHighlight:null,lineXValue:0,displayOfLine:Ph.hide,isCircleClicked:!1,stackCalloutProps:void 0,dataPointCalloutProps:void 0,hoverXValue:void 0,YValueHover:[]})},n._getStackedData=function(e,t){var r=function(){var e=fd([]),t=_h,n=mh,r=yh;function i(i){var o,a,s=e.apply(this,arguments),l=i.length,c=s.length,u=new Array(c);for(o=0;o<c;++o){for(var d,h=s[o],p=u[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(u);o<c;++o)u[a[o]].index=o;return n(u,a),u}return i.keys=function(t){return arguments.length?(e="function"==typeof t?t:fd(vh.call(t)),i):e},i.value=function(e){return arguments.length?(r="function"==typeof e?e:fd(+e),i):r},i.order=function(e){return arguments.length?(t=null==e?_h:"function"==typeof e?e:fd(vh.call(e)),i):t},i.offset=function(e){return arguments.length?(n=null==e?mh:e,i):n},i}().keys(e)(t),i=Ro(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=Ju(e);e&&e.length&&e.forEach((function(e){i.push(e.color),t.push.apply(t,e.data)}));for(var a=t,s=function(){var e=a[0].x instanceof Date?a[0].x.toLocaleString():a[0].x,t=a.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=a[0].x instanceof Date?a[0].x.toLocaleString():a[0].x;a=a.filter((function(e){return(e.x instanceof Date?e.x.toLocaleString():e.x)!==i}))};a.length;)s();for(var l=r&&Object.keys(r[0]).length,c=[],u=0;u<l-1;u++){var d="chart"+u;c.push(d)}var h=n._getStackedData(c,r);return{colors:i,keys:c,stackedInfo:h,calloutPoints:o}},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(pd,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){return n.state.isCircleClicked&&n.state.nearestCircleToHighlight===e?t:n.state.nearestCircleToHighlight===e?n.props.theme.palette.white:t},n._drawGraph=function(e,t,r,i){var o,a=n.props.data.lineChartData,l=function(){var e=Ch,t=null,n=fd(0),r=Sh,i=fd(!0),o=null,a=bh,s=null;function l(l){var c,u,d,h,p,f=l.length,g=!1,v=new Array(f),m=new Array(f);for(null==o&&(s=a(p=Nd())),c=0;c<=f;++c){if(!(c<f&&i(h=l[c],c,l))===g)if(g=!g)u=c,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),d=c-1;d>=u;--d)s.point(v[d],m[d]);s.lineEnd(),s.areaEnd()}g&&(v[c]=+e(h,c,l),m[c]=+n(h,c,l),s.point(t?+t(h,c,l):v[c],r?+r(h,c,l):m[c]))}if(p)return s=null,p+""||null}function c(){return Eh().defined(i).curve(a).context(o)}return l.x=function(n){return arguments.length?(e="function"==typeof n?n:fd(+n),t=null,l):e},l.x0=function(t){return arguments.length?(e="function"==typeof t?t:fd(+t),l):e},l.x1=function(e){return arguments.length?(t=null==e?null:"function"==typeof e?e:fd(+e),l):t},l.y=function(e){return arguments.length?(n="function"==typeof e?e:fd(+e),r=null,l):n},l.y0=function(e){return arguments.length?(n="function"==typeof e?e:fd(+e),l):n},l.y1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:fd(+e),l):r},l.lineX0=l.lineY0=function(){return c().x(e).y(n)},l.lineY1=function(){return c().x(e).y(r)},l.lineX1=function(){return c().x(t).y(n)},l.defined=function(e){return arguments.length?(i="function"==typeof e?e:fd(!!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(Mh),c=Eh().x((function(e){return t(e.xVal)})).y((function(e){return r(e.values[1])})).curve(Mh),u=[];n._stackedData.forEach((function(e,t){u.push(s.createElement(s.Fragment,{key:t+"-graph-"+n._uniqueIdForGraph},s.createElement("path",{id:t+"-line-"+n._uniqueIdForGraph,d:c(e),fill:"transparent",strokeWidth:3,stroke:n._colors[t],opacity:n._getLineOpacity(a[t].legend),onMouseMove:n._onRectMouseMove,onMouseOut:n._onRectMouseOut,onMouseOver:n._onRectMouseMove}),s.createElement("path",{id:t+"-graph-"+n._uniqueIdForGraph,d:l(e),fill:n._colors[t],fillOpacity:n._getOpacity(a[t].legend),onMouseMove:n._onRectMouseMove,onMouseOut:n._onRectMouseOut,onMouseOver:n._onRectMouseMove})))})),n._stackedData.forEach((function(e,i){a.length!==i&&u.push(s.createElement("g",{key:i+"-dots-"+n._uniqueIdForGraph,d:l(e),clipPath:"url(#clip)"},e.map((function(e,l){var c=n._circleId+"_"+(i*n._stackedData[0].length+l),u=e.xVal instanceof Date?e.xVal.getTime():e.xVal;return o=a[i].color,s.createElement("circle",{key:c,id:c,"data-is-focusable":!0,cx:t(e.xVal),cy:r(e.values[1]),r:n._getCircleRadius(u),stroke:o,strokeWidth:3,visibility:n.state.nearestCircleToHighlight?"visibility":"hidden",fill:n._updateCircleFillColor(u,o),onMouseOut:n._onRectMouseOut,onMouseOver:n._onRectMouseMove,onClick:n._onDataPointClick.bind(n,a[i].data[l].onDataPointClick)})}))))})),u.push(s.createElement("line",{id:n._verticalLineId,key:n._verticalLineId,x1:n.state.lineXValue,y1:0,x2:n.state.lineXValue,y2:e,strokeWidth:1,strokeDasharray:5.5,stroke:o,opacity:.5,visibility:n.state.displayOfLine}));var d=Fh(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 h=ju(i).call(t);try{document.getElementById(n._tooltipId)&&document.getElementById(n._tooltipId).remove()}catch(e){}var p={tooltipCls:d.tooltip,id:n._tooltipId,xAxis:h};h&&ed(p)}return u},n._getCircleRadius=function(e){var t=n.state,r=t.isCircleClicked,i=t.nearestCircleToHighlight;return r&&i===e?1:i===e?8:0},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},n._createSet=Wn((function(e){return n._createDataSet(e.lineChartData)})),n.state={activeLegend:"",hoverXValue:"",isCalloutVisible:!1,isLegendSelected:!1,isLegendHovered:!1,refSelected:null,YValueHover:[],lineXValue:0,displayOfLine:Ph.hide,isCircleClicked:!1,nearestCircleToHighlight:null},ei("AREA CHART",t,{showYAxisGridLines:"Dont use this property. Lines are drawn by default"}),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.stackedInfo,c=o.calloutPoints;this._calloutPoints=c;var u=td(n);this._colors=a,this._stackedData=l.stackedData;var d=this._getLegendData(this.props.theme.palette,n),h={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat},p=i({target:this.state.refSelected,isCalloutVisible:this.state.isCalloutVisible,directionalHint:2,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(th,i({},this.props,{chartTitle:r,points:n,chartType:Xu.AreaChart,calloutProps:p,legendBars:d,isCalloutForStack:!0,xAxisType:u?Ku.DateAxis:Ku.NumericAxis,tickParams:h,maxOfYVal:l.maxOfYVal,getGraphData:this._getGraphData,getmargins:this._getMargins,customizedCallout:this._getCustomizedCallout(),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),(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"})}})),Hh=function(e){return{root:{fill:e.color,stroke:An.white,strokeWidth:2}}},Nh=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.centroid(n),i="translate("+r[0]+", "+r[1]+")";return s.createElement("g",{className:"arc"},e.prototype.render.call(this),s.createElement("text",{transform:i,textAnchor:"middle"},n.data.x,"-",n.data.y))},t}(function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={},t.updateChart=function(e){Rh(e)},t}return r(t,e),t.getDerivedStateFromProps=function(e){return Rh(e),null},t.prototype.render=function(){var e,t=this.props,n=t.color,r=t.arc,i=le()(Hh,{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:jd()},t}(s.Component));function Rh(e){e.arc.innerRadius(e.innerRadius),e.arc.outerRadius(e.outerRadius)}var Bh,Vh=function(e){function t(t){var n=e.call(this,t)||this;return n.arcGenerator=function(e,t){return s.createElement(Nh,{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=sa().range(r);var c=n(i),u="translate("+o/2+", "+a/2+")";return s.createElement("svg",{width:o,height:a,"aria-label":l},s.createElement("g",{transform:u},c.map((function(t,n){return e.arcGenerator(t,n)}))))},t.defaultProps={pie:Td().sort(null).value((function(e){return e.y}))},t}(s.Component),zh=le(),Wh=b(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,c=a.className,u=a.styles;this._classNames=zh(u,{theme:l,width:n,height:r,className:c});var d=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(Vh,{width:n,height:r,outerRadius:d,innerRadius:0,data:t,colors:i,chartTitle:o}))},t.defaultProps={data:[],width:600,height:350},t}(s.Component),(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)]}})),Uh=le(),Yh=b(function(e){function t(t){var n=e.call(this,t)||this;return 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=this.props.theme.palette,c=a||t.chartData.length>2?this.props.barHeight:8;n&&(n.color=n.color||l.neutralTertiary),r&&(r.color=r.color||l.neutralSecondary);var u=this._createBarsAndLegends(t,c,l,n,r),d=!1===o&&!a&&2===t.chartData.length,h=!1===o&&!a&&1===t.chartData.length,p=t.chartData.reduce((function(e,t){return e+(t.data?t.data:0)}),0),f=0;n&&p&&(f=n.data/p*100);var g=0;r&&p&&(g=r.data/p*100);var v=!1===this.props.hideLegend&&(a||t.chartData.length>2);return this._classNames=Uh(this.props.styles,{legendColor:this.state.color,theme:this.props.theme,benchmarkColor:n?n.color:"",benchmarkRatio:f,targetColor:r?r.color:"",targetRatio:g}),s.createElement("div",{className:this._classNames.root},s.createElement(Bi,{direction:hi.horizontal},s.createElement("div",{className:this._classNames.chartTitle},t.chartTitle&&s.createElement("div",i({},this._getAccessibleDataObject(t.chartTitleAccessibilityData)),s.createElement("strong",null,t.chartTitle)),d&&s.createElement("div",i({},this._getAccessibleDataObject(t.chartDataAccessibilityData)),s.createElement("span",{className:this._classNames.ratioNumerator},t.chartData[0].data?t.chartData[0].data:0),!this.props.hideDenominator&&s.createElement("span",null,"/",s.createElement("span",{className:this._classNames.ratioDenominator},p))),h&&s.createElement("div",i({},this._getAccessibleDataObject(t.chartDataAccessibilityData)),s.createElement("strong",null,t.chartData[0].data))),(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(Bi,{direction:hi.horizontal},s.createElement("div",null,s.createElement("svg",{className:this._classNames.chart,"aria-label":null==t?void 0:t.chartTitle},s.createElement("g",null,u[0]),s.createElement(di,i({gapSpace:15,isBeakVisible:!1,target:this.state.refSelected,setInitialFocus:!0,hidden:!(!this.props.hideTooltip&&this.state.isCalloutVisible),directionalHint:2,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(vi,{Legend:this.state.xCalloutValue?this.state.xCalloutValue:this.state.selectedLegendTitle,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard,color:this.state.color})))))),v&&s.createElement("div",{className:this._classNames.legendContainer},u[1]))},t.prototype._adjustProps=function(){this._classNames=Uh(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],c=[],u=[],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||c.push(o),n>0&&(h+=p),(p=i/d*100)<1&&0!==p?p=1:p>99&&100!==p&&(p=99),u.push(h);var f=a.props.styles,g=!0;return(a.state.isLegendHovered||a.state.isLegendSelected)&&(g=a.state.selectedLegendTitle===e.legend),a._classNames=Uh(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:u[n]+"%",y:0,width:p+"%",height:t,fill:r}))}));this._addLegend(c,r),this._addLegend(c,o);var g=s.createElement(pd,i({legends:c,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.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(){this.setState({isCalloutVisible:!1})},t.prototype._redirectToUrl=function(e){e&&(window.location.href=e)},t.defaultProps={barHeight:16,hideNumberDisplay:!1,hideLegend:!1,ignoreFixStyle:!1},t}(s.Component),(function(e){var t,n,r=e.className,o=e.width,a=e.barHeight,s=e.shouldHighlight,l=e.theme,c=e.href,u=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:c?"pointer":"default",stroke:l.palette.white,strokeWidth:2,selectors:{"&:focus":{stroke:l.palette.black,strokeWidth:"2px"}}},ratioNumerator:{fontSize:En.small,fontWeight:kn.semibold,color:l.palette.black},ratioDenominator:{fontSize:En.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:u,marginBottom:"4px",selectors:(t={},t[Tn]={border:"0px",height:"7.8px",width:"7.8px",clipPath:"polygon(50% 100%, 0 0, 100% 0)",backgroundImage:"linear-gradient(to right, "+u+", "+u+")"},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[Tn]={border:"0px",height:"7.8px",width:"7.8px",clipPath:"polygon(50% 100%, 0 0, 100% 0)",backgroundImage:"linear-gradient(to right, "+h+", "+h+")"},n)}}})),jh=le(),qh=b(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=jh(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(pd,i({legends:a,overflowProps:n.props.legendsOverflowProps,focusZonePropsInHoverCard:n.props.focusZonePropsForLegendsInHoverCard,overflowText:n.props.legendsOverflowText},n.props.legendProps))},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;this._adjustProps();var o=r.palette,a=this._getLegendData(n,this.props.hideRatio,o),l=this.state.isCalloutVisible;this._classNames=jh(this.props.styles,{legendColor:this.state.color,theme:r});var c=this.state.xCalloutValue?this.state.xCalloutValue:this.state.selectedLegendTitle,u=this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard,d=n.map((function(t,n){var r=e._createBarsAndLegends(t,e.props.barHeight,o,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},d,!this.props.hideLegend&&s.createElement("div",{className:this._classNames.legendContainer},a),s.createElement(di,i({gapSpace:15,isBeakVisible:!1,target:this.state.refSelected,setInitialFocus:!0,hidden:!(!this.props.hideTooltip&&l),directionalHint:2,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(vi,{Legend:c,YValue:u,color:this.state.color}))))},t.prototype._createBarsAndLegends=function(e,t,n,r,o,a){var l=this,c=[n.blueLight,n.blue,n.blueMid,n.red,n.black],u=[],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,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&&(h+=p),p=o/d*100?o/d*100:0,u.push(h);var f=l.props.styles,g=!0;return(l.state.isLegendHovered||l.state.isLegendSelected)&&(g=l.state.selectedLegendTitle===e.legend),l._classNames=jh(f,{theme:l.props.theme,shouldHighlight:g,href:a}),p<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:u[r]+"%",y:0,width:p+"%",height:t,fill:i}))}));0===e.chartData.length&&f.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===d&&f.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 g=void 0!==r&&r,v=!g&&2===e.chartData.length,m=!g&&1===e.chartData.length;return s.createElement("div",{className:this._classNames.singleChartRoot},s.createElement(Bi,{direction:hi.horizontal},s.createElement("div",{className:this._classNames.chartTitle},e.chartTitle&&s.createElement("div",i({},this._getAccessibleDataObject(e.chartTitleAccessibilityData)),s.createElement("strong",null,e.chartTitle)),v&&s.createElement("div",i({},this._getAccessibleDataObject(e.chartDataAccessibilityData)),s.createElement("strong",null,e.chartData[0].data?e.chartData[0].data:0),!o&&s.createElement("span",null,"/",d)),m&&s.createElement("div",i({},this._getAccessibleDataObject(e.chartDataAccessibilityData)),s.createElement("strong",null,e.chartData[0].data)))),s.createElement(Bi,{direction:hi.horizontal},s.createElement("div",null,s.createElement("svg",{className:this._classNames.chart,"aria-label":null==e?void 0:e.chartTitle},f))))},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.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(){this.setState({isCalloutVisible:!1})},t.prototype._redirectToUrl=function(e){e&&(window.location.href=e)},t.defaultProps={barHeight:16,hideRatio:[],hideDenominator:[]},t}(s.Component),(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"}(Bh||(Bh={}));var Xh,Kh=le(),Zh=b(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===Ku.NumericAxis,a=n._getScales(r,i,o).xBarScale,l=n._createColors(),c=n.props.theme,u=n.props,d=u.data,h=u.lineLegendColor,p=void 0===h?c.palette.yellow:h,f=u.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=Eh().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 _=s.createElement("path",{opacity:m?1:.4,d:v(g),fill:"none",strokeWidth:3,stroke:p}),y=g.map((function(r,i){var c;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?Bh.show:Bh.hide,onClick:null===(c=r.point.lineData)||void 0===c?void 0:c.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(vi,i({key:t,Legend:e.legend},0===t&&{XValue:""+(o||e.data)},{color:e.color,YValue:e.data||e.y}))}));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(vi,{XValue:e.xAxisCalloutData||e.x,Legend:e.legend,YValue:e.yAxisCalloutData||e.y,color:!r&&e.color?e.color:n._createColors()(e.y)}))},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===Ku.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,c=s.useSingleColor,u=void 0!==c&&c,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:u?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.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=Ro(n._points,(function(e){return e.x}));return{xBarScale:Ss().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:Ss().domain([0,n._yMax]).range([0,e-n.margins.bottom-n.margins.top])}}var o=(t-n.margins.right)/n._points.length*.5;return{xBarScale:Ss().domain(n._isRtl?[n._points.length-1,0]:[0,n._points.length-1]).range([n.margins.left+o-.5*n._barWidth,t-n.margins.right-o-.5*n._barWidth]),yBarScale:Ss().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,c=l.lineLegendText,u=l.lineLegendColor,d=void 0===u?o.palette.yellow:u,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&&c&&d){var p={title:c,color:d,action:function(){n._onLegendClick(c)},hoverAction:function(){n._onLegendHover(c)},onMouseOutAction:function(e){n._onLegendLeave(e)},isLineLegendInBarChart:!0};h.unshift(p)}return s.createElement(pd,i({legends:h,enabledWrapLines:n.props.enabledLegendsWrapLines,overflowProps:n.props.legendsOverflowProps,focusZonePropsInHoverCard:n.props.focusZonePropsForLegendsInHoverCard,overflowText:n.props.legendsOverflowText},n.props.legendProps))},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?ad(n.props.data[0].x,!0):Ku.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(Ro(this._points,(function(e){return e.y})),this.props.yMaxValue||0);var t=this._getLegendData(this._points,this.props.theme.palette);this._classNames=Kh(this.props.styles,{theme:this.props.theme,legendColor:this.state.color});var n=i(i(i(i({isCalloutVisible:this.state.isCalloutVisible,directionalHint:2,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),cd(this.state.callOutAccessibilityData)),r={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return s.createElement(th,i({},this.props,{points:this._points,chartType:Xu.VerticalBarChart,xAxisType:this._xAxisType,calloutProps:n,tickParams:r},this._isHavingLine&&{isCalloutForStack:!0},{legendBars:t,datasetForXAxisDomain:this._xAxisLabels,barwidth:this._barWidth,focusZoneDirection:hi.horizontal,customizedCallout:this._getCustomizedCallout(),getmargins:this._getMargins,getGraphData:this._getGraphData,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 Ss().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.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,c=a.yBarScale,u=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=Kh(r.props.styles,{theme:r.props.theme,legendColor:r.state.color,shouldHighlight:i}),Math.max(c(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-c(t.y),width:r._barWidth,"data-is-focusable":!r.props.hideTooltip,height:Math.max(c(t.y),0),ref:function(e){r._refCallback(e,t.legend)},onClick:t.onClick,onMouseOver:r._onBarHover.bind(r,t,u(t.y)),"aria-label":"Vertical bar chart",role:"text","aria-labelledby":"toolTip"+r._calloutId,onMouseLeave:r._onBarLeave,onFocus:r._onBarFocus.bind(r,t,n,u(t.y)),onBlur:r._onBarLeave,fill:t.color&&!o?t.color:u(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=ju(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&&ed(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(),c=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(n),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)})}));if(!this.props.showXAxisLablesTooltip)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(e){}if(!this.props.wrapXAxisLables&&this.props.showXAxisLablesTooltip){var u=ju(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:u,showTooltip:this.props.showXAxisLablesTooltip};u&&ed(d)}return c},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),(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"})}})),Gh=le();!function(e){e.show="visibility",e.hide="hidden"}(Xh||(Xh={}));var $h=b(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,c=a.isLegendSelected,u=a.selectedLegendTitle,d=n._xAxisType===Ku.NumericAxis,h=n._getScales(r,o,d).xBarScale,p=n._getFormattedLineData(n.props.data),f=[],g=[];return Object.keys(p).forEach((function(r,o){var a=!0;(l||c)&&(a=u===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].index)+n._additionalSpace,m=t(p[r][g-1].y),_=d?e(p[r][g].xItem.xAxisPoint):h(p[r][g].index)+n._additionalSpace,y=t(p[r][g].y);f.push(s.createElement("line",i({key:o+"-"+g+"-line",x1:v,y1:m,x2:_,y2:y,opacity:a?1:.1,strokeWidth:3,stroke:p[r][g].color},c&&u===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.index)+n._additionalSpace,cy:t(a.y),onMouseOver:c&&u===r?n._lineHover.bind(n,a):n._onStackHover.bind(n,a.xItem)},c&&u===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})))}))})),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:Xh.show,radius:8}:t===a?{visibility:Xh.show,radius:.3}:{visibility:Xh.hide,radius:0}:{visibility:o===e?Xh.show:Xh.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.setState({isCalloutVisible:!1,activeXAxisDataPoint:""})},n._getYMax=function(e){return Math.max(Ro(e,(function(e){return e.y})),n.props.yMaxValue||0)},n._createBar=function(e,t,r,o){var a=n.props,l=a.barCornerRadius,c=void 0===l?0:l,u=a.barMinimumHeight,d=void 0===u?0:u,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,u=e(n._xAxisType===Ku.NumericAxis?o.xAxisPoint:a),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(e,t){var r=e.color?e.color:n._colors[t],f={},m=!0;(n.state.isLegendHovered||n.state.isLegendSelected)&&(m=n.state.selectedLegendTitle===e.legend);var _=Gh(n.props.styles,{theme:n.props.theme,shouldHighlight:m,href:n.props.href}),y=!p&&{"data-is-focusable":!n.props.hideTooltip,"aria-labelledby":"toolTip"+n._calloutId,onMouseOver:n._onRectHover.bind(n,o.xAxisPoint,e,r),onMouseMove:n._onRectHover.bind(n,o.xAxisPoint,e,r),onMouseLeave:n._handleMouseOut,onFocus:n._onRectFocus.bind(n,e,o.xAxisPoint,r,f),onBlur:n._handleMouseOut,onClick:n._onClick.bind(n,e)},x=v*e.data;return x<d&&(x=d),l=l-x-(t?g:0),c&&x>c&&t===h.length-1?s.createElement("path",i({key:t+a+""+p,className:_.opacityChangeOnHover,d:"\n M "+u+" "+(l+c)+"\n a "+c+" "+c+" 0 0 1 "+c+" "+-c+"\n h "+(n._barWidth-2*c)+"\n a "+c+" "+c+" 0 0 1 "+c+" "+c+"\n v "+(x-c)+"\n h "+-n._barWidth+"\n z\n ",fill:r,ref:function(e){return f.refElement=e}},y)):x<1?s.createElement(s.Fragment,{key:t+a}," "):s.createElement("rect",i({key:t+a,className:_.opacityChangeOnHover,x:u,y:l,width:n._barWidth,height:x,fill:r,ref:function(e){return f.refElement=e}},y,{role:"text"}))})),_={},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,_),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 _.refElement=e}},y),m)}}})),g=Gh(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=ju(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&&ed(m)}return f.filter((function(e){return!!e}))},n._getScales=function(e,t,r){var i=n._getYMax(n._dataset),o=Ss().domain([0,i]).range([0,e-n.margins.bottom-n.margins.top]);if(r){var a=Ro(n._dataset,(function(e){return e.x}));return{xBarScale:Ss().domain(n._isRtl?[a,0]:[0,a]).nice().range([n.margins.left,t-n.margins.right-n._barWidth]),yBarScale:o}}var s=(t-n.margins.right)/n._dataset.length*.5;return{xBarScale:Ss().domain(n._isRtl?[n._dataset.length-1,0]:[0,n._dataset.length-1]).range([n.margins.left+s-n._additionalSpace,t-n.margins.right-s-n._additionalSpace]),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===Ku.NumericAxis?n._createNumericBars(r,i,o):n._createStringBars(r,i,o)},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},n.state={isCalloutVisible:!1,isLegendSelected:!1,isLegendHovered:!1,selectedLegendTitle:"",refSelected:null,dataForHoverCard:0,color:"",hoverXValue:"",YValueHover:[],xCalloutValue:"",yCalloutValue:"",activeXAxisDataPoint:""},ei("VERTICAL STACKED BAR CHART",t,{colors:"IVSChartDataPoint.color",chartLabel:"use your own title for chart"}),n._handleMouseOut=n._handleMouseOut.bind(n),n._calloutId=pe("callout"),n._tooltipId=pe("VSBCTooltipId_"),n._adjustProps(),n._dataset=n._createDataSetLayer(),n._createLegendsForLine=Wn((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:2,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),cd(this.state.callOutAccessibilityData)),c={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return s.createElement(th,i({},this.props,{points:this._dataset,chartType:Xu.VerticalStackedBarChart,xAxisType:this._xAxisType,calloutProps:l,tickParams:c,legendBars:a,datasetForXAxisDomain:this._xAxisLabels,isCalloutForStack:n,barwidth:this._barWidth,focusZoneDirection:o||t?hi.horizontal:hi.vertical,getmargins:this._getMargins,getGraphData:this._getGraphData,customizedCallout:this._getCustomizedCallout(),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=ad(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(vi,{XValue:e.xAxisCalloutData,Legend:e.legend,YValue:e.yAxisCalloutData,color:e.color}):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,c=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:c?function(){return r._onLegendHover(e.legend)}:void 0,onMouseOutAction:c?function(e){return r._onLegendLeave(e)}:void 0};a.push(n)}}))}));var u=[];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:c?function(){return r._onLegendHover(e.title)}:void 0,onMouseOutAction:c?function(e){return r._onLegendLeave(e)}:void 0};u.push(t)}));var d=u.concat(a);return s.createElement(pd,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.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(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),(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"})}})),Qh=le(),Jh=b(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){t.persist(),(!1===n.state.isLegendSelected||n.state.isLegendSelected&&n.state.titleForHoverCard===e.legend)&&n.setState({refSelected:t,isCalloutVisible:!0,titleForHoverCard:e.legend,dataForHoverCard:e.data,color:e.color,xCalloutValue:e.xAxisCalloutData,yCalloutValue:e.yAxisCalloutData,dataPointCalloutProps:e,callOutAccessibilityData:e.callOutAccessibilityData})},n._onBarLeave=function(){return n.setState({isCalloutVisible:!1})},n._onBarFocus=function(e,t){(!1===n.state.isLegendSelected||n.state.isLegendSelected&&n.state.titleForHoverCard===e.legend)&&n._refArray.forEach((function(r,i){r.index===e.legend&&t===i&&n.setState({refSelected:r.refElement,isCalloutVisible:!0,titleForHoverCard:e.legend,dataForHoverCard:e.data,color:e.color,xCalloutValue:e.xAxisCalloutData,yCalloutValue:e.yAxisCalloutData,dataPointCalloutProps:e,callOutAccessibilityData:e.callOutAccessibilityData})}))},n._redirectToUrl=function(e){e&&(window.location.href=e)},n._buildGraph=function(e,t,r,i,o){var a,l=[],c=Ss().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 u=Object.keys(n._datasetForBars[0]).splice(0,n._keys.length);if(u.forEach((function(t,o){var d=e.indexNum*u.length+o,h=e[t];h.data&&l.push(s.createElement("rect",{className:n._classNames.opacityChangeOnHover,key:e.indexNum+"-"+o,height:Math.max(c(h.data),0),width:a,x:r(t),y:Math.max(i-n.margins.bottom-c(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),onMouseMove:n._onBarHover.bind(n,h),onMouseOut:n._onBarLeave,onFocus:n._onBarFocus.bind(n,h,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=ju(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&&ed(h)}return s.createElement("g",{key:e.indexNum,transform:"translate("+t(e.xAxisPoint)+", 0)"},l)},n._createDataset=function(e){var t=[],r=[];return e.forEach((function(e,n){var o={},a={};e.series.forEach((function(e){o[e.key]=e.data,a[e.key]=i({},e)})),a.xAxisPoint=e.name,a.indexNum=n,t.push(a),r.push(o)})),n._dataset=r,t},n._createX0Scale=function(e){return la().domain(n._xAxisLabels).range(n._isRtl?[e-n.margins.right,n.margins.left]:[n.margins.left,e-n.margins.right]).padding(.16)},n._createX1Scale=function(e){return la().domain(n._keys).range(n._isRtl?[e.bandwidth(),0]:[0,e.bandwidth()]).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(pd,i({legends:a,overflowProps:n.props.legendsOverflowProps,enabledWrapLines:n.props.enabledLegendsWrapLines,focusZonePropsInHoverCard:n.props.focusZonePropsForLegendsInHoverCard},n.props.legendProps))},n._createSet=Wn((function(e){return n._createDataSetOfGVBC(e)})),n.state={color:"",dataForHoverCard:0,isCalloutVisible:!1,isLegendSelected:!1,isLegendHovered:!1,refSelected:null,titleForHoverCard:"",xCalloutValue:"",yCalloutValue:""},ei("GROUPED VERTICAL BAR CHART",t,{showYAxisGridLines:"Dont use this property. Lines are drawn by default",showXAxisPath:"Dont use this property. Axis line removed default.",showYAxisPath:"Dont use this property. No need to display Y axis path. Handling default",showXAxisGridLines:"Dont use this proprty. Handling with default value.",legendColor:"Dont use this property. colour will pick from given data."}),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=ad(t[0].name,!0);var l=this._getLegendData(t,this.props.theme.palette),c=Ro(this._dataset,(function(t){return Ro(e._keys,(function(e){return t[e]}))}));this._yMax=Math.max(c,this.props.yMaxValue||0),this._classNames=Qh(this.props.styles,{theme:this.props.theme,href:this.props.href});var u=i(i(i({target:this.state.refSelected,isCalloutVisible:this.state.isCalloutVisible,directionalHint:2,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,onDismiss:this._closeCallout},this.props.calloutProps),{preventDismissOnLostFocus:!0}),cd(this.state.callOutAccessibilityData,"text",!1)),d={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return s.createElement(th,i({},this.props,{points:this._datasetForBars,chartType:Xu.GroupedVerticalBarChart,calloutProps:u,legendBars:l,xAxisType:this._isNumeric,datasetForXAxisDomain:this._xAxisLabels,tickParams:d,tickPadding:this.props.tickPadding||5,maxOfYVal:this._yMax,svgFocusZoneProps:{direction:hi.horizontal},customizedCallout:this._getCustomizedCallout(),getmargins:this._getMargins,getGraphData:this._getGraphData,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),(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(),tp=b(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.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.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+")"},t.rectText));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(pd,i({},r,{legends:o}))},n._getColorScale=function(){var e=n.props,t=e.domainValuesForColorScale,r=e.rangeValuesForColorScale;return Ss().domain(t).range(r)},n._getXIndex=function(e){return n._xAxisType===Ku.DateAxis?""+e.getTime():n._xAxisType===Ku.StringAxis?e:n._xAxisType===Ku.NumericAxis?""+e:""},n._getYIndex=function(e){return n._yAxisType===Zu.DateAxis?""+e.getTime():n._yAxisType===Zu.StringAxis?e:n._yAxisType===Zu.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 c={},u={},d={};return l.forEach((function(e){var t=n._getXIndex(e.x),r=n._getYIndex(e.y);d[t]="1",u[r]="1",c[r]?c[r]=a(c[r],[e]):c[r]=[e]})),Object.keys(c).forEach((function(e){c[e].sort((function(e,t){return n._xAxisType===Ku.StringAxis?e.x.toLowerCase()>t.x.toLowerCase()?1:-1:n._xAxisType===Ku.DateAxis?e.x.getTime()-t.x.getTime():n._xAxisType===Ku.NumericAxis?+e.x>+t.x?1:-1:e.x>t.x?1:-1})).forEach((function(e){n._xAxisType===Ku.DateAxis&&(e.x=n._getStringFormattedDate(e.x,t)),n._xAxisType===Ku.NumericAxis&&(e.x=n._getStringFormattedNumber(e.x,r)),n._xAxisType===Ku.StringAxis&&(e.x=n._getFormattedLabelForXAxisDataPoint(e.x)),n._yAxisType===Zu.DateAxis&&(e.y=n._getStringFormattedDate(e.y,o)),n._yAxisType===Zu.NumericAxis&&(e.y=n._getStringFormattedNumber(e.y,s)),n._yAxisType===Zu.StringAxis&&(e.y=n._getFormattedLabelForYAxisDataPoint(e.y))}))})),Object.keys(c).forEach((function(e){n._yAxisType===Zu.DateAxis?c[n._getStringFormattedDate(e,o)]=c[e]:n._yAxisType===Zu.NumericAxis?c[""+n._getStringFormattedNumber(e,s)]=c[e]:c[n._getFormattedLabelForYAxisDataPoint(e)]=c[e]})),{dataSet:c,yAxisPoints:n._getYAxisDataPoints(u),xAxisPoints:n._getXAxisDataPoints(d)}},n._getXAxisDataPoints=function(e){return Object.keys(e).sort((function(e,t){return n._xAxisType===Ku.DateAxis||n._xAxisType===Ku.NumericAxis?+e-+t:e.toLowerCase()>t.toLowerCase()?1:-1})).map((function(e){return n._xAxisType===Ku.DateAxis?n._getStringFormattedDate(e,n.props.xAxisDateFormatString):n._xAxisType===Ku.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===Zu.DateAxis||n._yAxisType===Zu.NumericAxis?+e-+t:e.toLowerCase()>t.toLowerCase()?1:-1})).map((function(e){return n._yAxisType===Zu.DateAxis?n._getStringFormattedDate(e,n.props.yAxisDateFormatString):n._yAxisType===Zu.NumericAxis?n._getStringFormattedNumber(e,n.props.yAxisNumberFormatString):n._getFormattedLabelForYAxisDataPoint(e)}))},n._getStringFormattedDate=function(e,t){var n=new Date;return n.setTime(+e),vl(t||"%b/%d")(n)},n._getStringFormattedNumber=function(e,t){return _s(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=ad(o,!0),n._yAxisType=ad(l,!1),n._createSet=Wn((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 c=this._createSet(n,r,o,a,l),u=c.dataSet,d=c.xAxisPoints,h=c.yAxisPoints;this._dataSet=u,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:4,onDismiss:this._closeCallout}),cd(this.state.callOutAccessibilityData,"text",!1)),{preventDismissOnLostFocus:!0}),f=i(i({},this.state.ratio&&{ratio:this.state.ratio}),{descriptionMessage:this.state.descriptionMessage});return s.createElement(th,i({},this.props,{points:n,chartType:Xu.HeatMapChart,xAxisType:Ku.StringAxis,yAxisType:Zu.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:hi.bidirectional},legendBars:this._createLegendBars(),children:function(t){return e._xAxisScale=t.xScale,e._yAxisScale=t.yScale,e._createRectangles()}}))},t}(s.Component),(function(e){var t=e.theme;return{root:{},text:[t.fonts.medium,{pointerEvents:"none",fill:t.palette.white}],subComponentStyles:{cartesianStyles:{},calloutStyles:{root:{maxWidth:"238px"}}}}}));yr("@fluentui/react-charting","5.3.59"),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 Oh},CartesianChart:function(){return th},ChartHoverCard:function(){return vi},DonutChart:function(){return $d},GroupedVerticalBarChart:function(){return Jh},HeatMapChart:function(){return tp},HorizontalBarChart:function(){return zi},Legends:function(){return pd},LineChart:function(){return gh},MultiStackedBarChart:function(){return qh},PieChart:function(){return Wh},Shape:function(){return dd},StackedBarChart:function(){return Yh},Textbox:function(){return dh},VerticalBarChart:function(){return Zh},VerticalStackedBarChart:function(){return $h},getChartHoverCardStyles:function(){return gi}});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])})(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}).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(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}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 c in s)if(s.hasOwnProperty(c)){if("subComponentStyles"===c&&void 0!==s.subComponentStyles){var u=s.subComponentStyles;for(var d in u)u.hasOwnProperty(d)&&(r.hasOwnProperty(d)?r[d].push(u[d]):r[d]=[u[d]]);continue}var h=n[c],p=s[c];n[c]=void 0===h?p: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 c=void 0;try{c=window}catch(e){}function u(e){if(void 0!==c){var t=e;return t&&t.ownerDocument&&t.ownerDocument.defaultView?t.ownerDocument.defaultView:c}}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=u()||{};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=[],_=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}(),y=s.createContext({customizations:{inCustomizerContext:!1,settings:{},scopedSettings:{}}});var x=["theme","styles"];function b(e,t,n,r,a){var c=(r=r||{scope:"",fields:void 0}).scope,u=r.fields,d=void 0===u?x:u,h=s.forwardRef((function(r,a){var u,h,p,f,g,v,m=s.useRef(),x=(u=d,h=c,p=s.useState(0)[1],f=function(){return p((function(e){return++e}))},g=s.useContext(y).customizations,v=g.inCustomizerContext,s.useEffect((function(){return v||_.observe(f),function(){v||_.unobserve(f)}}),[v]),_.getSettings(u,h,g)),b=x.styles,C=(x.dir,o(x,["styles","dir"])),S=n?n(r):void 0,E=m.current&&m.current.__cachedInputs__||[];if(!m.current||b!==E[1]||r.styles!==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,r.styles)};k.__cachedInputs__=[t,b,r.styles],k.__noStyleOverride__=!b&&!r.styles,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 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");t.setAttribute("data-merge-styles","true");var n=this._config.cspSettings;if(n&&n.nonce&&t.setAttribute("nonce",n.nonce),this._lastStyleElement)e.insertBefore(t,this._lastStyleElement.nextElementSibling);else{var r=this._findPlaceholderStyleTag();r?e.insertBefore(t,r.nextElementSibling):e.insertBefore(t,e.childNodes[0])}return 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 w,A={},D={"user-select":1};function T(e,t){var n=function(){var e;if(!w){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();w=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 w}(),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",H=((M={}).left=O,M.right=I,M),N={"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(H[r])t[n]=H[r];else if(N[i])t[n+1]=N[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 B(e){var t=e&&e["&"];return t?t.displayName:void 0}var V,z=/\:global\((.+?)\)/g;function W(e,t){return e.indexOf(":global(")>=0?e.replace(z,"$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("@")?Y([r],t,n=n+"{"+e):n.indexOf(",")>-1?function(e){if(!z.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 Y([r],t,W(n,e))})):Y([r],t,W(n,e))}function Y(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&&Y(l,t,n)}else if(Array.isArray(s))Y(s,t,n);else for(var c in s)if(s.hasOwnProperty(c)){var u=s[c];if("selectors"===c){var d=s.selectors;for(var h in d)d.hasOwnProperty(h)&&U(n,t,h,d[h])}else"object"==typeof u?null!==u&&U(n,t,c,u):void 0!==u&&("margin"===c||"padding"===c?j(i,c,u):i[c]=u)}}return t}function j(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 q(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 X(e,t){return t<=0?"":1===t?e:e+X(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]=A[i]=A[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=Y(t),i=q(e,r);if(i){var o=k.getInstance(),a={className:o.classNameFromKey(i),key:i,args:t};if(!a.className){a.className=o.getClassName(B(r));for(var s=[],l=0,c=r.__order;l<c.length;l++){var u=c[l];s.push(u,K(e,r[u]))}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 c=a[s],u=(c=c.replace(/&/g,X("."+e.className,t)))+"{"+l+"}"+(0===c.indexOf("@")?"}":"");n.insertRule(u)}}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=u();t=n?n.sessionStorage.getItem(e):null}catch(e){}return t}function J(e){V!==e&&(V=e)}function ee(){return void 0===V&&(V="undefined"!=typeof document&&!!document.documentElement&&"rtl"===document.documentElement.getAttribute("dir")),V}function te(){return{rtl:ee()}}V=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=u())||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 c=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||(c=ue(t,o),c=ue(c,a)),!p&&c[se]||(c[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,c=a.objects;(null==c?void 0:c.length)?(h=Z(t||{},{displayName:o},c))&&(i.push(h),n[o]=s.concat([h.className]).join(" ")):n[o]=s.join(" ")}for(var u=0,d=i;u<d.length;u++){var h;(h=d[u])&&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=u();(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 c[se]}}function ce(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 ue(e,t){if("function"==typeof t)if(t.__cachedInputs__)for(var n=0,r=t.__cachedInputs__;n<r.length;n++)e=ce(e,r[n]);else e=ce(e,t);else if("object"==typeof t)for(var i in t)t.hasOwnProperty(i)&&(e=ce(e,t[i]));return e}var de=u()||{};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 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 _e(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 ye(e,t){return e&&e!==document.body?t(e)?e:ye(_e(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=_e(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)&&!we(t))){var c=Ce(e,t.lastElementChild,!0,!0,!0,o,a,s);if(c){if(s&&ke(c,!0)||!s)return c;var u=Ce(e,c.previousElementSibling,!0,!0,!0,o,a,s);if(u)return u;for(var d=c.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)&&!we(t))){var c=Se(e,t.firstElementChild,!0,!0,!1,o,a,s);if(c)return c}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 we(e){return!(!e||!e.getAttribute||"true"!==e.getAttribute("data-is-sub-focuszone"))}var Ae=void 0;function De(e){if(e){if(Ae)return void(Ae=e);Ae=e;var t=u(e);t&&t.requestAnimationFrame((function(){Ae&&Ae.focus(),Ae=void 0}))}}function Te(e,t,n,r){return e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n,r)}}var Me,Pe,Fe,Ie=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 c=l[s];n[c]=1}return n},Oe=Ie(["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=Ie(["accessKey","children","className","contentEditable","dir","draggable","hidden","htmlFor","id","lang","ref","role","style","tabIndex","title","translate","spellCheck","name"]),Ne=Ie(He,Oe),Re=(Ie(Ne,["form"]),Ie(Ne,["height","loop","muted","preload","src","width"])),Be=(Ie(Re,["poster"]),Ie(Ne,["start"]),Ie(Ne,["value"]),Ie(Ne,["download","href","hrefLang","media","rel","target","type"]),Ie(Ne,["autoFocus","disabled","form","formAction","formEncType","formMethod","formNoValidate","formTarget","type","value"])),Ve=(Ie(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"]),Ie(Be,["autoCapitalize","cols","dirname","form","maxLength","minLength","placeholder","readOnly","required","rows","wrap"]),Ie(Be,["form","multiple","required"]),Ie(Ne,["selected","value"]),Ie(Ne,["cellPadding","cellSpacing"]),Ie(Ne,["rowSpan","scope"]),Ie(Ne,["colSpan","headers","rowSpan","scope"]),Ie(Ne,["span"]),Ie(Ne,["span"]),Ie(Ne,["acceptCharset","action","encType","encType","method","noValidate","target"]),Ie(Ne,["allow","allowFullScreen","allowPaymentRequest","allowTransparency","csp","height","importance","referrerPolicy","sandbox","src","srcDoc","width"]),Ie(Ne,["alt","crossOrigin","height","src","srcSet","useMap","width"]),Ne);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 We(){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 Ue(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 je(e,te())}function je(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"}(Me||(Me={})),function(e){e[e.top=0]="top",e[e.bottom=1]="bottom",e[e.start=2]="start",e[e.end=3]="end"}(Pe||(Pe={})),Ye({overflow:"hidden !important"});var qe="data-is-scrollable";function Xe(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=u(e)),t}var Ke,Ze=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 Ge(e,t,n){return{targetEdge:e,alignmentEdge:t,isAuto:n}}var $e=((Ke={})[0]=Ge(Me.top,Me.left),Ke[1]=Ge(Me.top),Ke[2]=Ge(Me.top,Me.right),Ke[3]=Ge(Me.top,void 0,!0),Ke[4]=Ge(Me.bottom,Me.left),Ke[5]=Ge(Me.bottom),Ke[6]=Ge(Me.bottom,Me.right),Ke[7]=Ge(Me.bottom,void 0,!0),Ke[8]=Ge(Me.left,Me.top),Ke[9]=Ge(Me.left),Ke[10]=Ge(Me.left,Me.bottom),Ke[11]=Ge(Me.right,Me.top),Ke[12]=Ge(Me.right),Ke[13]=Ge(Me.right,Me.bottom),Ke);function Qe(e,t){return!(e.top<t.top||e.bottom>t.bottom||e.left<t.left||e.right>t.right)}function Je(e,t){var n=[];return e.top<t.top&&n.push(Me.top),e.bottom>t.bottom&&n.push(Me.bottom),e.left<t.left&&n.push(Me.left),e.right>t.right&&n.push(Me.right),n}function et(e,t){return e[Me[t]]}function tt(e,t,n){return e[Me[t]]=n,e}function nt(e,t){var n=pt(t);return(et(e,n.positiveEdge)+et(e,n.negativeEdge))/2}function rt(e,t){return e>0?t:-1*t}function it(e,t){return rt(e,et(t,e))}function ot(e,t,n){return rt(n,et(e,n)-et(t,n))}function at(e,t,n,r){void 0===r&&(r=!0);var i=et(e,t)-n,o=tt(e,t,n);return r&&(o=tt(e,-1*t,et(e,-1*t)-i)),o}function st(e,t,n,r){return void 0===r&&(r=0),at(e,n,et(t,n)+rt(n,r))}function lt(e,t,n){return it(n,e)>it(n,t)}function ct(e,t){for(var n=0,r=0,i=Je(e,t);r<i.length;r++){var o=i[r];n+=Math.pow(ot(e,t,o),2)}return n}function ut(e,t,n){for(var r=0,i=e;r<i.length;r++){var o=i[r],a=st(t.elementRectangle,n,o);lt(a,n,-1*o)||(a=at(a,-1*o,et(n,-1*o),!1),t.forcedInBounds=!0),t.elementRectangle=a}return t}function dt(e,t,n){var r=pt(t).positiveEdge;return at(e,r,n-(nt(e,t)-et(e,r)))}function ht(e,t,n,r,i){void 0===r&&(r=0);var o=new Ze(e.left,e.right,e.top,e.bottom),a=n.alignmentEdge,s=n.targetEdge,l=i?s:-1*s;return o=i?st(o,t,s,r):function(e,t,n,r){void 0===r&&(r=0);var i=rt(-1*n,r);return at(e,-1*n,et(t,n)+i)}(o,t,s,r),o=a?st(o,t,a):dt(o,l,nt(t,s))}function pt(e){return e===Me.top||e===Me.bottom?{positiveEdge:Me.left,negativeEdge:Me.right}:{positiveEdge:Me.top,negativeEdge:Me.bottom}}function ft(e,t,n){return n&&Math.abs(ot(e,n,t))>Math.abs(ot(e,n,-1*t))?-1*t:t}function gt(e,t,n){var r=nt(t,e),i=nt(n,e),o=pt(e),a=o.positiveEdge,s=o.negativeEdge;return r<=i?a:s}function vt(e,t,n,r,i,o,a){var s=ht(e,t,r,i,a);return Qe(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,c={elementRectangle:e,targetEdge:r.targetEdge,alignmentEdge:s};o||a||(c=function(e,t,n,r,i){void 0===i&&(i=0);var o=[Me.left,Me.right,Me.bottom,Me.top];ie()&&(o[0]*=-1,o[1]*=-1);for(var a,s=e,l=r.targetEdge,c=r.alignmentEdge,u=l,d=c,h=0;h<4;h++){if(lt(s,n,l))return{elementRectangle:s,targetEdge:l,alignmentEdge:c};var p=ct(s,n);(!a||p<a)&&(a=p,u=l,d=c),o.splice(o.indexOf(l),1),o.length>0&&(o.indexOf(-1*l)>-1?l*=-1:(c=l,l=o.slice(-1)[0]),s=ht(e,t,{targetEdge:l,alignmentEdge:c},i))}return{elementRectangle:s=ht(e,t,{targetEdge:u,alignmentEdge:d},i),targetEdge:u,alignmentEdge:d}}(e,t,n,r,i));var u=Je(c.elementRectangle,n);if(u.length>0)if(l){if(c.alignmentEdge&&u.indexOf(-1*c.alignmentEdge)>-1){var d=function(e,t,n,r){var i=e.alignmentEdge,o=e.targetEdge,a=-1*i;return{elementRectangle:ht(e.elementRectangle,t,{targetEdge:o,alignmentEdge:a},n,r),targetEdge:o,alignmentEdge:a}}(c,t,i,a);if(Qe(d.elementRectangle,n))return d;c=ut(Je(d.elementRectangle,n),c,n)}}else c=ut(u,c,n);return c}(s,t,n,r,i,o,a)}function mt(e){var t=e.getBoundingClientRect();return new Ze(t.left,t.right,t.top,t.bottom)}function _t(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 Ze(r.clientX,r.clientX,r.clientY,r.clientY)}else if(t.getBoundingClientRect)n=mt(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 Ze(o,s,a,l)}if(!Qe(n,e))for(var c=0,u=Je(n,e);c<u.length;c++){var d=u[c];n[Me[d]]=e[Me[d]]}}else n=new Ze(0,0,0,0);return n}(n,e.target),s=function(e,t,n,r,i){return e.isAuto&&(e.alignmentEdge=gt(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({},$e[e]);return ie()?(r.alignmentEdge&&r.alignmentEdge%2==0&&(r.alignmentEdge=-1*r.alignmentEdge),void 0!==t?$e[t]:r):r}(e.directionalHint,e.directionalHintForRTL,r),a,n,e.coverTarget,e.alignTargetEdge),l=vt(mt(t),a,n,s,o,e.directionalHintFixed,e.coverTarget);return i(i({},l),{targetRectangle:a})}function yt(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 c,u,d,h,p,f,g,v,m,_=e.bounds?(m=e.bounds,new Ze(m.left,m.right,m.top,m.bottom)):new Ze(0,window.innerWidth-function(){if(void 0===Fe){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),Fe=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return Fe}(),0,window.innerHeight),y=_t(l,n,_,r),x=(c=y,u=function(e,t){var n=t.targetRectangle,r=pt(t.targetEdge),i=r.positiveEdge,o=r.negativeEdge,a=nt(n,t.targetEdge),s=new Ze(e/2,t.elementRectangle.width-e/2,e/2,t.elementRectangle.height-e/2),l=new Ze(0,e,0,e);return lt(l=dt(l=at(l,-1*t.targetEdge,-e/2),-1*t.targetEdge,a-it(i,t.elementRectangle)),s,i)?lt(l,s,o)||(l=st(l,s,o)):l=st(l,s,i),l}(a,y),d=_,h=-1*c.targetEdge,p=new Ze(0,c.elementRectangle.width,0,c.elementRectangle.height),f={},g=ft(c.elementRectangle,c.alignmentEdge?c.alignmentEdge:pt(h).positiveEdge,d),v=ot(c.elementRectangle,c.targetRectangle,h)>Math.abs(et(u,h)),f[Me[h]]=et(u,h),f[Me[g]]=ot(u,p,g),{elementPosition:i({},f),closestEdge:gt(c.targetEdge,u,p),targetEdge:h,hideBeak:!v});return i(i({},function(e,t,n,r,i){return{elementPosition:function(e,t,n,r,i,o,a,s){var l={},c=mt(t),u=o?n:-1*n,d=i||pt(n).positiveEdge;return a||(d=ft(e,d,r)),l[Me[u]]=ot(e,c,u),l[Me[d]]=ot(e,c,d),s&&(l[Me[-1*u]]=ot(e,c,-1*u),l[Me[-1*d]]=ot(e,c,-1*d)),l}(e.elementRectangle,t,e.targetEdge,n,e.alignmentEdge,r,i,e.forcedInBounds),targetEdge:e.targetEdge,alignmentEdge:e.alignmentEdge}}(y,t,_,e.coverTarget,o)),{beakPosition:x})}var xt=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=u(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=u(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,c=0,u=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-c,p=s?a-h:a;return h>=a&&(!t||s)?(c=n,u&&(r.clearTimeout(u),u=null),i=e.apply(r._parent,o)):null===u&&l&&(u=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,c=!0,u=null,d=0,h=Date.now(),p=null;n&&"boolean"==typeof n.leading&&(l=n.leading),n&&"boolean"==typeof n.trailing&&(c=n.trailing),n&&"number"==typeof n.maxWait&&!isNaN(n.maxWait)&&(u=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!==u&&(f>=u&&p?m=!0:a=Math.min(a,u-f)),i>=s||m||n?g(t):null!==p&&e||!c||(p=r.setTimeout(v,a)),o},m=function(){return!!p},_=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return a=e,v(!0)};return _.cancel=function(){m()&&f(Date.now())},_.flush=function(){return m()&&g(Date.now()),o},_.pending=m,_},e.prototype.requestAnimationFrame=function(e,t){var n=this,r=0,i=u(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=u(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 bt(e){var t=s.useRef();return void 0===t.current&&(t.current={value:"function"==typeof e?e():e}),t.current.value}function Ct(){var e=bt((function(){return new xt}));return s.useEffect((function(){return function(){return e.dispose()}}),[e]),e}function St(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 Et(){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 kt=s.createContext({window:"object"==typeof window?window:void 0}),Lt=function(){return s.useContext(kt).window},wt=function(){var e;return null===(e=s.useContext(kt).window)||void 0===e?void 0:e.document};function At(e){var t=e.originalElement,n=e.containsFocus;t&&n&&t!==u()&&setTimeout((function(){var e;null===(e=t.focus)||void 0===e||e.call(t)}),0)}var Dt=function(e,t){return e&&t?[].slice.call(t.children).filter((function(t){return t!==e})):[]},Tt=s.forwardRef((function(e,t){e=i({shouldRestoreFocus:!0},e);var n=s.useRef(),r=Et(n,t);!function(e,t){var n=e["aria-modal"];s.useEffect((function(){var e,r=$();if(n&&r&&t&&t.current){var i=null===(e=t.current.parentElement)||void 0===e?void 0:e.parentElement,o=Dt(i,null==i?void 0:i.parentElement);if((null==i?void 0:i.parentElement)!==r.body){var a=function(e,t){for(var n=e;n&&n.parentElement!==t.body;)n=n.parentElement;return n}(t.current,r);o.concat(Dt(a,r.body))}return(o=o.filter((function(e){return"TEMPLATE"!==e.tagName&&"SCRIPT"!==e.tagName&&"STYLE"!==e.tagName&&!e.hasAttribute("aria-hidden")}))).forEach((function(e){return e.setAttribute("aria-hidden","true")})),function(){return o.forEach((function(e){return e.removeAttribute("aria-hidden")}))}}}),[n,t])}(e,n),function(e,t){var n=e.onRestoreFocus,r=void 0===n?At: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}}),[]),St(t,"focus",s.useCallback((function(){o.current=!0}),[]),!0),St(t,"blur",s.useCallback((function(e){t.current&&e.relatedTarget&&!t.current.contains(e.relatedTarget)&&(o.current=!1)}),[]),!0)}(e,n);var o=e.role,a=e.className,l=e.ariaLabel,c=e.ariaLabelledBy,u=e.ariaDescribedBy,d=e.style,h=e.children,p=e.onDismiss,f=function(e,t){var n=Ct(),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}(e,n),g=s.useCallback((function(e){switch(e.which){case 27:p&&(p(e),e.preventDefault(),e.stopPropagation())}}),[p]);return St(Lt(),"keydown",g),s.createElement("div",i({ref:r},ze(e,Ve),{className:a,role:o,"aria-label":l,"aria-labelledby":c,"aria-describedby":u,onKeyDown:g,style:i({overflowY:f?"scroll":void 0,outline:"none"},d)}),h)}));function Mt(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}var Pt="cubic-bezier(.1,.9,.2,1)",Ft="cubic-bezier(.1,.25,.75,.9)",It="0.167s",Ot="0.267s",Ht="0.367s",Nt="0.467s",Rt=Mt({from:{opacity:0},to:{opacity:1}}),Bt=Mt({from:{opacity:1},to:{opacity:0,visibility:"hidden"}}),Vt=_n(-10),zt=_n(-20),Wt=_n(-40),Ut=_n(-400),Yt=_n(10),jt=_n(20),qt=_n(40),Xt=_n(400),Kt=yn(10),Zt=yn(20),Gt=yn(-10),$t=yn(-20),Qt=xn(10),Jt=xn(20),en=xn(40),tn=xn(400),nn=xn(-10),rn=xn(-20),on=xn(-40),an=xn(-400),sn=bn(-10),ln=bn(-20),cn=bn(10),un=bn(20),dn=Mt({from:{transform:"scale3d(.98,.98,1)"},to:{transform:"scale3d(1,1,1)"}}),hn=Mt({from:{transform:"scale3d(1,1,1)"},to:{transform:"scale3d(.98,.98,1)"}}),pn=Mt({from:{transform:"scale3d(1.03,1.03,1)"},to:{transform:"scale3d(1,1,1)"}}),fn=Mt({from:{transform:"scale3d(1,1,1)"},to:{transform:"scale3d(1.03,1.03,1)"}}),gn=Mt({from:{transform:"rotateZ(0deg)"},to:{transform:"rotateZ(90deg)"}}),vn=Mt({from:{transform:"rotateZ(0deg)"},to:{transform:"rotateZ(-90deg)"}});function mn(e,t,n){return{animationName:e,animationDuration:t,animationTimingFunction:n,animationFillMode:"both"}}function _n(e){return Mt({from:{transform:"translate3d("+e+"px,0,0)",pointerEvents:"none"},to:{transform:"translate3d(0,0,0)",pointerEvents:"auto"}})}function yn(e){return Mt({from:{transform:"translate3d(0,"+e+"px,0)",pointerEvents:"none"},to:{transform:"translate3d(0,0,0)",pointerEvents:"auto"}})}function xn(e){return Mt({from:{transform:"translate3d(0,0,0)"},to:{transform:"translate3d("+e+"px,0,0)"}})}function bn(e){return Mt({from:{transform:"translate3d(0,0,0)"},to:{transform:"translate3d(0,"+e+"px,0)"}})}var Cn,Sn,En,kn,Ln,wn=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:mn(Rt+","+Vt,Ht,Pt),slideRightIn20:mn(Rt+","+zt,Ht,Pt),slideRightIn40:mn(Rt+","+Wt,Ht,Pt),slideRightIn400:mn(Rt+","+Ut,Ht,Pt),slideLeftIn10:mn(Rt+","+Yt,Ht,Pt),slideLeftIn20:mn(Rt+","+jt,Ht,Pt),slideLeftIn40:mn(Rt+","+qt,Ht,Pt),slideLeftIn400:mn(Rt+","+Xt,Ht,Pt),slideUpIn10:mn(Rt+","+Kt,Ht,Pt),slideUpIn20:mn(Rt+","+Zt,Ht,Pt),slideDownIn10:mn(Rt+","+Gt,Ht,Pt),slideDownIn20:mn(Rt+","+$t,Ht,Pt),slideRightOut10:mn(Bt+","+Qt,Ht,Pt),slideRightOut20:mn(Bt+","+Jt,Ht,Pt),slideRightOut40:mn(Bt+","+en,Ht,Pt),slideRightOut400:mn(Bt+","+tn,Ht,Pt),slideLeftOut10:mn(Bt+","+nn,Ht,Pt),slideLeftOut20:mn(Bt+","+rn,Ht,Pt),slideLeftOut40:mn(Bt+","+on,Ht,Pt),slideLeftOut400:mn(Bt+","+an,Ht,Pt),slideUpOut10:mn(Bt+","+sn,Ht,Pt),slideUpOut20:mn(Bt+","+ln,Ht,Pt),slideDownOut10:mn(Bt+","+cn,Ht,Pt),slideDownOut20:mn(Bt+","+un,Ht,Pt),scaleUpIn100:mn(Rt+","+dn,Ht,Pt),scaleDownIn100:mn(Rt+","+pn,Ht,Pt),scaleUpOut103:mn(Bt+","+fn,It,Ft),scaleDownOut98:mn(Bt+","+hn,It,Ft),fadeIn100:mn(Rt,It,Ft),fadeIn200:mn(Rt,Ot,Ft),fadeIn400:mn(Rt,Ht,Ft),fadeIn500:mn(Rt,Nt,Ft),fadeOut100:mn(Bt,It,Ft),fadeOut200:mn(Bt,Ot,Ft),fadeOut400:mn(Bt,Ht,Ft),fadeOut500:mn(Bt,Nt,Ft),rotate90deg:mn(gn,"0.1s",Ft),rotateN90deg:mn(vn,"0.1s",Ft)}),An={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)"}(Cn||(Cn={})),function(e){e.Arabic="'"+Cn.Arabic+"'",e.ChineseSimplified="'Microsoft Yahei UI', Verdana, Simsun",e.ChineseTraditional="'Microsoft Jhenghei UI', Pmingliu",e.Cyrillic="'"+Cn.Cyrillic+"'",e.EastEuropean="'"+Cn.EastEuropean+"'",e.Greek="'"+Cn.Greek+"'",e.Hebrew="'"+Cn.Hebrew+"'",e.Hindi="'Nirmala UI'",e.Japanese="'Yu Gothic UI', 'Meiryo UI', Meiryo, 'MS Pgothic', Osaka",e.Korean="'Malgun Gothic', Gulim",e.Selawik="'"+Cn.Selawik+"'",e.Thai="'Leelawadee UI Web', 'Kmer UI'",e.Vietnamese="'"+Cn.Vietnamese+"'",e.WestEuropean="'"+Cn.WestEuropean+"'",e.Armenian="'"+Cn.Armenian+"'",e.Georgian="'"+Cn.Georgian+"'"}(Sn||(Sn={})),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"}(En||(En={})),function(e){e.light=100,e.semilight=300,e.regular=400,e.semibold=600,e.bold=700}(kn||(kn={})),function(e){e.xSmall="10px",e.small="12px",e.medium="16px",e.large="20px"}(Ln||(Ln={}));var Dn,Tn="@media screen and (-ms-high-contrast: active), (forced-colors: active)",Mn="@media screen and (-ms-high-contrast: white-on-black), (forced-colors: white-on-black)",Pn="ms-Fabric--isFocusVisible",Fn="ms-Fabric--isFocusHidden";function In(e,t){var n=t?u(t):u();if(n){var r=n.document.body.classList;r.add(e?Pn:Fn),r.remove(e?Fn:Pn)}}function On(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,c=void 0===l?"relative":l,u=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:c,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:Dn.FocusStyle,selectors:(r={},r[Tn]=u,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}(Dn||(Dn={}));var Hn=!1,Nn=0,Rn={empty:!0},Bn={},Vn="undefined"==typeof WeakMap?null:WeakMap;function zn(){Nn++}function Wn(e,t,n){if(void 0===t&&(t=100),void 0===n&&(n=!1),!Vn)return e;if(!Hn){var r=k.getInstance();r&&r.onReset&&k.getInstance().onReset(zn),Hn=!0}var i,o=0,a=Nn;return function(){for(var r=[],s=0;s<arguments.length;s++)r[s]=arguments[s];var l=i;(void 0===i||a!==Nn||t>0&&o>t)&&(i=jn(),o=0,a=Nn),l=i;for(var c=0;c<r.length;c++){var u=Yn(r[c]);l.map.has(u)||l.map.set(u,jn()),l=l.map.get(u)}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 Un(e){if(!Vn)return e;var t=new Vn;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 Yn(e){return e?"object"==typeof e||"function"==typeof e?e:(Bn[e]||(Bn[e]={val:e}),Bn[e]):Rn}function jn(){return{map:Vn?new Vn:null}}var qn=Wn((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 Xn(e,t,n){return qn(e,void 0!==n?n:t.disableGlobalClassNames)}var Kn,Zn,Gn=function(){return(Gn=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}).apply(this,arguments)},$n="undefined"==typeof window?e.g:window;$n&&$n.CSPSettings&&$n.CSPSettings.nonce,(Zn=$n.__themeState__||{theme:void 0,lastStyleElement:void 0,registeredStyles:[]}).runState||(Zn=Gn({},Zn,{perf:{count:0,duration:0},runState:{flushTimer:0,mode:0,buffer:[]}})),Zn.registeredThemableStyles||(Zn=Gn({},Zn,{registeredThemableStyles:[]})),$n.__themeState__=Zn,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)"}(Kn||(Kn={}));var Qn,Jn={elevation4:Kn.depth4,elevation8:Kn.depth8,elevation16:Kn.depth16,elevation64:Kn.depth64,roundedCorner2:"2px",roundedCorner4:"4px",roundedCorner6:"6px"},er="'Segoe UI', '"+Cn.WestEuropean+"'",tr={ar:Sn.Arabic,bg:Sn.Cyrillic,cs:Sn.EastEuropean,el:Sn.Greek,et:Sn.EastEuropean,he:Sn.Hebrew,hi:Sn.Hindi,hr:Sn.EastEuropean,hu:Sn.EastEuropean,ja:Sn.Japanese,kk:Sn.EastEuropean,ko:Sn.Korean,lt:Sn.EastEuropean,lv:Sn.EastEuropean,pl:Sn.EastEuropean,ru:Sn.Cyrillic,sk:Sn.EastEuropean,"sr-latn":Sn.EastEuropean,th:Sn.Thai,tr:Sn.EastEuropean,uk:Sn.Cyrillic,vi:Sn.Vietnamese,"zh-hans":Sn.ChineseSimplified,"zh-hant":Sn.ChineseTraditional,hy:Sn.Armenian,ka:Sn.Georgian};function nr(e,t,n){return{fontFamily:n,MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontSize:e,fontWeight:t}}var rr,ir="language",or=(rr=function(e){for(var t in tr)if(tr.hasOwnProperty(t)&&e&&0===t.indexOf(e))return tr[t];return er}(function(e){if(void 0===e&&(e="sessionStorage"),void 0===Qn){var t=$(),n="localStorage"===e?function(e){var t=null;try{var n=u();t=n?n.localStorage.getItem("language"):null}catch(e){}return t}():"sessionStorage"===e?Q(ir):void 0;n&&(Qn=n),void 0===Qn&&t&&(Qn=t.documentElement.getAttribute("lang")),void 0===Qn&&(Qn="en")}return Qn}())+", 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif",{tiny:nr(En.mini,kn.regular,rr),xSmall:nr(En.xSmall,kn.regular,rr),small:nr(En.small,kn.regular,rr),smallPlus:nr(En.smallPlus,kn.regular,rr),medium:nr(En.medium,kn.regular,rr),mediumPlus:nr(En.mediumPlus,kn.regular,rr),large:nr(En.large,kn.regular,rr),xLarge:nr(En.xLarge,kn.semibold,rr),xLargePlus:nr(En.xLargePlus,kn.semibold,rr),xxLarge:nr(En.xxLarge,kn.semibold,rr),xxLargePlus:nr(En.xxLargePlus,kn.semibold,rr),superLarge:nr(En.superLarge,kn.semibold,rr),mega:nr(En.mega,kn.semibold,rr)});function ar(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 sr(e,t,n,r,i){void 0===r&&(r="segoeui");var o=e+"/"+n+"/"+r;ar(t,o+"-light",kn.light,i&&i+" Light"),ar(t,o+"-semilight",kn.semilight,i&&i+" SemiLight"),ar(t,o+"-regular",kn.regular,i),ar(t,o+"-semibold",kn.semibold,i&&i+" SemiBold"),ar(t,o+"-bold",kn.bold,i&&i+" Bold")}function lr(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];cr(e||{},o)}return e}function cr(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:cr(e[r]||{},i,n)}}return n.pop(),e}function ur(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}(dr(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 dr(e,t,n,r,o){void 0===o&&(o=!1);var a={},s=e||{},l=s.white,c=s.black,u=s.themePrimary,d=s.themeDark,h=s.themeDarker,p=s.themeDarkAlt,f=s.themeLighter,g=s.neutralLight,v=s.neutralLighter,m=s.neutralDark,_=s.neutralQuaternary,y=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),c&&(a.bodyTextChecked=c,a.buttonTextCheckedHovered=c),u&&(a.link=u,a.primaryButtonBackground=u,a.inputBackgroundChecked=u,a.inputIcon=u,a.inputFocusBorderAlt=u,a.menuIcon=u,a.menuHeader=u,a.accentButtonBackground=u),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),_&&(a.primaryButtonTextDisabled=_,a.disabledSubtext=_),y&&(a.listItemBackgroundCheckedHovered=y),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),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),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";sr(t,Cn.Thai,"leelawadeeui-thai","leelawadeeui"),sr(t,Cn.Arabic,"segoeui-arabic"),sr(t,Cn.Cyrillic,"segoeui-cyrillic"),sr(t,Cn.EastEuropean,"segoeui-easteuropean"),sr(t,Cn.Greek,"segoeui-greek"),sr(t,Cn.Hebrew,"segoeui-hebrew"),sr(t,Cn.Vietnamese,"segoeui-vietnamese"),sr(t,Cn.WestEuropean,"segoeui-westeuropean","segoeui","Segoe UI"),sr(t,Sn.Selawik,"selawik","selawik"),sr(t,Cn.Armenian,"segoeui-armenian"),sr(t,Cn.Georgian,"segoeui-georgian"),ar("Leelawadee UI Web",t+"/leelawadeeui-thai/leelawadeeui-semilight",kn.light),ar("Leelawadee UI Web",t+"/leelawadeeui-thai/leelawadeeui-bold",kn.semibold)}}(function(){var e,t,n=null===(e=u())||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 hr={s2:"4px",s1:"8px",m:"16px",l1:"20px",l2:"32px"};function pr(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=lr({},e,t,{semanticColors:dr(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]=lr(o.fonts[l],t.defaultFontStyle,null===(i=null==t?void 0:t.fonts)||void 0===i?void 0:i[l])}return o}({palette:An,effects:Jn,fonts:or,spacing:hr,isInverted:n,disableGlobalClassNames:!1,semanticColors:ur(An,Jn,void 0,n,t),rtl:void 0},e)}var fr=pr({});function gr(){var e,t;if(!_.getSettings(["theme"]).theme){var n=u();(null===(t=null==n?void 0:n.FabricConfig)||void 0===t?void 0:t.theme)&&(fr=pr(n.FabricConfig.theme)),_.applySettings(((e={}).theme=fr,e))}}gr();var vr,mr={},_r=void 0;try{_r=window}catch(e){}function yr(e,t){if(void 0!==_r){var n=_r.__packages__=_r.__packages__||{};n[e]&&mr[e]||(mr[e]=t,(n[e]=n[e]||[]).push(t))}}yr("@fluentui/set-version","6.0.0"),yr("@fluentui/style-utilities","8.3.4"),gr();var xr=((vr={})[Me.top]=wn.slideUpIn10,vr[Me.bottom]=wn.slideDownIn10,vr[Me.left]=wn.slideLeftIn10,vr[Me.right]=wn.slideRightIn10,vr),br={opacity:0,filter:"opacity(0)",pointerEvents:"none"},Cr=["role","aria-roledescription"],Sr={preventDismissOnLostFocus:!1,preventDismissOnScroll:!1,preventDismissOnResize:!1,isBeakVisible:!0,beakWidth:16,gapSpace:0,minPagePadding:8,directionalHint:7},Er=le({disableCaching:!0});function kr(e,t,n,r,o){var a=s.useState(),l=a[0],c=a[1],u=s.useRef(0),d=s.useRef(),h=Ct(),p=e.hidden,f=e.target,g=e.finalHeight,v=e.onPositioned,m=e.directionalHint;return s.useEffect((function(){if(!p){var a=h.requestAnimationFrame((function(){if(t.current&&n){var a=i(i({},e),{target:r.current,bounds:o()}),s=d.current===f?l:void 0,h=g?function(e,t,n,r){return function(e,t,n,r){return yt(e,t,n,r,!0)}(e,t,n,r)}(a,t.current,n,s):function(e,t,n,r){return yt(e,t,n,r)}(a,t.current,n,s);!l&&h||l&&h&&(m=h,!Ar((p=l).elementPosition,m.elementPosition)||!Ar(p.beakPosition.elementPosition,m.beakPosition.elementPosition))&&u.current<5?(u.current++,c(h)):u.current>0&&(u.current=0,null==v||v(l))}var p,m}),n);return d.current=f,function(){h.cancelAnimationFrame(a),d.current=void 0}}c(void 0),u.current=0}),[p,m,h,n,t,r,g,o,v,l,e,f]),l}var Lr=s.memo(s.forwardRef((function(e,t){var n=function(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}(Sr,e),r=n.styles,o=n.style,a=n.ariaLabel,l=n.ariaDescribedBy,c=n.ariaLabelledBy,u=n.className,d=n.isBeakVisible,h=n.children,p=n.beakWidth,f=n.calloutWidth,g=n.calloutMaxWidth,v=n.calloutMinWidth,m=n.doNotLayer,_=n.finalHeight,y=n.hideOverflow,x=void 0===y?!!_:y,b=n.backgroundColor,C=n.calloutMaxHeight,S=n.onScroll,E=n.shouldRestoreFocus,k=void 0===E||E,L=n.target,w=n.hidden,A=n.onLayerMounted,D=s.useRef(null),T=s.useState(null),M=T[0],P=T[1],F=s.useCallback((function(e){P(e)}),[]),I=Et(D,t),O=function(e,t){var n=s.useRef(),r=s.useRef(null),i=Lt();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}),H=O[0],N=O[1],R=kr(n,D,M,H,function(e,t,n){var r=e.bounds,i=e.minPagePadding,o=void 0===i?Sr.minPagePadding:i,a=e.target,l=s.useState(!1),c=l[0],u=l[1],d=s.useRef(),h=s.useCallback((function(){if(!d.current||c){var e="function"==typeof r?n?r(a,n):void 0:r;!e&&n&&(e={top:(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 c=l[s];r&&c.left<=r&&c.right>=r&&i&&c.top<=i&&c.bottom>=i&&(a={top:c.top,left:c.left,right:c.right,bottom:c.bottom,width:c.width,height:c.height})}return a}(e,t)}(t.current,n)).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,c&&u(!1)}return d.current}),[r,o,a,t,n,c]),p=Ct();return St(n,"resize",p.debounce((function(){u(!0)}),500,{leading:!0})),h}(n,H,N)),B=function(e,t,n,r,i){var o=e.hidden,a=e.onDismiss,l=e.preventDismissOnScroll,c=e.preventDismissOnResize,u=e.preventDismissOnLostFocus,d=e.dismissOnTargetClick,h=e.shouldDismissOnWindowFocus,p=e.preventDismissOnEvent,f=s.useRef(!1),g=Ct(),v=bt([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){c||p&&p(e)||null==a||a(e)},s=function(e){u||v(e)},v=function(e){var t=e.target,o=n.current&&!xe(n.current,t);if(o&&f.current)f.current=!1;else if(!r.current&&o||e.target!==i&&o&&(!r.current||"stopPropagation"in r.current||d||t!==r.current&&!xe(r.current,t))){if(p&&p(e))return;null==a||a(e)}},_=function(e){h&&((!p||p(e))&&(p||u)||(null==i?void 0:i.document.hasFocus())||null!==e.relatedTarget||null==a||a(e))},y=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",_,!0)];n((function(){r.forEach((function(e){return e()}))}))}}),0)}));return function(){y.then((function(e){return e()}))}}),[o,g,n,r,i,a,h,d,u,c,l,m,p]),v}(n,R,D,H,N),V=B[0],z=B[1];if(function(e,t,n){var r=e.hidden,i=e.setInitialFocus,o=Ct(),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,R,M),s.useEffect((function(){w||null==A||A()}),[w]),!N)return null;var W=x,U=d&&!!L,Y=Er(r,{theme:n.theme,className:u,overflowYHidden:W,calloutWidth:f,positions:R,beakWidth:p,backgroundColor:b,calloutMaxWidth:g,calloutMinWidth:v,doNotLayer:m}),j=i(i({maxHeight:C||"100%"},o),W&&{overflowY:"hidden"}),q=n.hidden?{visibility:"hidden"}:void 0;return s.createElement("div",{ref:I,className:Y.container,style:q},s.createElement("div",i({},ze(n,Ve,Cr),{className:We(Y.root,R&&R.targetEdge&&xr[R.targetEdge]),style:R?R.elementPosition:br,tabIndex:-1,ref:F}),U&&s.createElement("div",{className:Y.beak,style:wr(R)}),U&&s.createElement("div",{className:Y.beakCurtain}),s.createElement(Tt,i({},ze(n,Cr),{ariaDescribedBy:l,ariaLabel:a,ariaLabelledBy:c,className:Y.calloutMain,onDismiss:n.onDismiss,onMouseDown:V,onMouseUp:z,onRestoreFocus:n.onRestoreFocus,onScroll:S,shouldRestoreFocus:k,style:j}),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 wr(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 Ar(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 Dr(e){return{height:e,width:e}}Lr.displayName="CalloutContentBase";var Tr,Mr={container:"ms-Callout-container",root:"ms-Callout",beak:"ms-Callout-beak",beakCurtain:"ms-Callout-beakCurtain",calloutMain:"ms-Callout-main"},Pr=b(Lr,(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,c=e.calloutMinWidth,u=e.doNotLayer,d=Xn(Mr,n),h=n.semanticColors,p=n.effects;return{container:[d.container,{position:"relative"}],root:[d.root,n.fonts.medium,{position:"absolute",zIndex:u?Dn.Layer:void 0,boxSizing:"border-box",borderRadius:p.roundedCorner2,boxShadow:p.elevation16,selectors:(t={},t[Tn]={borderWidth:1,borderStyle:"solid",borderColor:"WindowText"},t)},{selectors:{"&::-moz-focus-inner":{border:0},"&":{outline:"transparent"}}},r,!!o&&{width:o},!!l&&{maxWidth:l},!!c&&{minWidth:c}],beak:[d.beak,{position:"absolute",backgroundColor:h.menuBackground,boxShadow:"inherit",border:"inherit",boxSizing:"border-box",transform:"rotate(45deg)"},Dr(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",borderRadius:p.roundedCorner2},i&&{overflowY:"hidden"},s&&{backgroundColor:s}]}}),void 0,{scope:"CalloutContent"}),Fr=ReactDOM,Ir=((Tr={})[38]=1,Tr[40]=1,Tr[37]=1,Tr[39]=1,Tr[36]=1,Tr[35]=1,Tr[9]=1,Tr[33]=1,Tr[34]=1,Tr),Or=new WeakMap;function Hr(e,t){var n,r=Or.get(e);return n=r?r+t:1,Or.set(e,n),n}function Nr(e){In(!1,e.target)}function Rr(e){"mouse"!==e.pointerType&&In(!1,e.target)}function Br(e){var t;t=e.which,Ir[t]&&In(!0,e.target)}function Vr(e,t){return void 0===e&&(e={}),(zr(t)?t:(void 0===(n=t)&&(n={}),function(e){var t=i({},e);for(var r in n)n.hasOwnProperty(r)&&(t[r]=i(i({},e[r]),n[r]));return t}))(e);var n}function zr(e){return"function"==typeof e}var Wr=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(){_.observe(this._onCustomizationChange)},t.prototype.componentWillUnmount=function(){_.unobserve(this._onCustomizationChange)},t.prototype.render=function(){var e=this,t=this.props.contextTransform;return s.createElement(y.Consumer,null,(function(n){var r=function(e,t){var n,r,o=(t||{}).customizations,a=void 0===o?{settings:{},scopedSettings:{}}:o;return{customizations:{settings:(n=a.settings,r=e.settings,void 0===n&&(n={}),(zr(r)?r:function(e){return function(t){return e?i(i({},t),e):t}}(r))(n)),scopedSettings:Vr(a.scopedSettings,e.scopedSettings),inCustomizerContext:!0}}}(e.props,n);return t&&(r=t(r)),s.createElement(y.Provider,{value:r},e.props.children)}))},t}(s.Component),Ur=le(),Yr=Wn((function(e,t){return pr(i(i({},e),{rtl:t}))})),jr=s.forwardRef((function(e,t){var n,r=e.className,o=e.theme,a=e.applyTheme,l=e.applyThemeToBody,c=e.styles,d=Ur(c,{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=u(null==n?void 0:n.current);if(t&&!0!==(null===(e=t.FabricConfig)||void 0===e?void 0:e.disableFocusRects)){var r=Hr(t,1);return r<=1&&(t.addEventListener("mousedown",Nr,!0),t.addEventListener("pointerdown",Rr,!0),t.addEventListener("keydown",Br,!0)),function(){var e;t&&!0!==(null===(e=t.FabricConfig)||void 0===e?void 0:e.disableFocusRects)&&0===(r=Hr(t,-1))&&(t.removeEventListener("mousedown",Nr,!0),t.removeEventListener("pointerdown",Rr,!0),t.removeEventListener("keydown",Br,!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,c=e.dir,u=e.theme,d=ze(e,Ve,["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:Et(n,r)}));return f&&(g=s.createElement(Wr,{settings:{theme:Yr(u,"rtl"===c)}},g)),g}(e,d,h,t))}));jr.displayName="FabricBase";var qr,Xr={fontFamily:"inherit"},Kr={root:"ms-Fabric",bodyThemed:"ms-Fabric-bodyThemed"},Zr=b(jr,(function(e){var t=e.theme,n=e.className,r=e.applyTheme;return{root:[Xn(Kr,t).root,t.fonts.medium,{color:t.palette.neutralPrimary,selectors:{"& button":Xr,"& input":Xr,"& textarea":Xr}},r&&{color:t.semanticColors.bodyText,backgroundColor:t.semanticColors.bodyBackground},n],bodyThemed:[{backgroundColor:t.semanticColors.bodyBackground}]}}),void 0,{scope:"Fabric"}),Gr="data-portal-element",$r={};function Qr(e){console&&console.warn&&console.warn(e)}function Jr(e,t,n,r,i){if(!0===i)for(var o=0,a=n;o<a.length;o++){var s=a[o];s in t||Qr(e+" property '"+s+"' is required when '"+r+"' is used.'")}}function ei(e,t,n){for(var r in n)if(t&&r in t){var i=e+" property '"+r+"' was used but has been deprecated.",o=n[r];o&&(i+=" Use '"+o+"' instead."),Qr(i)}}function ti(e,t){return void 0!==e[t]&&null!==e[t]}function ni(e){var t=(0,s.useRef)();return(0,s.useEffect)((function(){t.current=e})),t.current}qr={valueOnChange:{},valueDefaultValue:{},controlledToUncontrolled:{},uncontrolledToControlled:{}};var ri=0;function ii(e){var t=e.name,n=e.props,r=e.other,o=void 0===r?[]:r,a=e.conditionallyRequired,l=e.deprecations,c=e.mutuallyExclusive,u=e.controlledUsage,d=s.useRef(!1),h=bt((function(){return"useWarnings_"+ri++})),p=ni(n);if(!d.current){d.current=!0;for(var f=0,g=o;f<g.length;f++)Qr(g[f]);if(a)for(var v=0,m=a;v<m.length;v++){var _=m[v];Jr(t,n,_.requiredProps,_.conditionalPropName,_.condition)}l&&ei(t,n,l),c&&function(e,t,n){for(var r in n)if(t&&void 0!==t[r]){var i=n[r];i&&void 0!==t[i]&&Qr(e+" property '"+r+"' is mutually exclusive with '"+n[r]+"'. Use one or the other.")}}(t,n,c)}u&&function(e){var t=e.componentId,n=e.componentName,r=e.defaultValueProp,i=e.props,o=e.oldProps,a=e.onChangeProp,s=e.readOnlyProp,l=e.valueProp,c=o?ti(o,l):void 0,u=ti(i,l);if(u){var d=!!i[a],h=!(!s||!i[s]);d||h||qr.valueOnChange[t]||(qr.valueOnChange[t]=!0,Qr("Warning: You provided a '"+l+"' prop to a "+n+" without an '"+a+"' handler. This will render a read-only field. If the field should be mutable use '"+r+"'. Otherwise, set '"+a+"'"+(s?" or '"+s+"'":"")+".")),null==i[r]||qr.valueDefaultValue[t]||(qr.valueDefaultValue[t]=!0,Qr("Warning: You provided both '"+l+"' and '"+r+"' to a "+n+". Form fields must be either controlled or uncontrolled (specify either the '"+l+"' prop, or the '"+r+"' prop, but not both). Decide between using a controlled or uncontrolled "+n+" and remove one of these props. More info: https://fb.me/react-controlled-components"))}if(o&&u!==c){var p=c?"a controlled":"an uncontrolled",f=c?"uncontrolled":"controlled",g=c?qr.controlledToUncontrolled:qr.uncontrolledToControlled;g[t]||(g[t]=!0,Qr("Warning: A component is changing "+p+" "+n+" to be "+f+". "+n+"s should not switch from controlled to uncontrolled (or vice versa). Decide between using controlled or uncontrolled for the lifetime of the component. More info: https://fb.me/react-controlled-components"))}}(i(i({},u),{componentId:h,props:n,componentName:t,oldProps:p}))}var oi,ai=le(),si=s.forwardRef((function(e,t){var n=s.useRef(null),r=Et(n,t),o=s.useRef(),a=s.useState(!1),l=a[0],c=a[1],u=wt(),d=e.eventBubblingEnabled,h=e.styles,p=e.theme,f=e.className,g=e.children,v=e.hostId,m=e.onLayerDidMount,_=void 0===m?function(){}:m,y=e.onLayerMounted,x=void 0===y?function(){}:y,b=e.onLayerWillUnmount,C=e.insertFirst,S=ai(h,{theme:p,className:f,isNotHost:!v}),E=function(){null==b||b();var e=o.current;o.current=void 0,e&&e.parentNode&&e.parentNode.removeChild(e)},k=function(){var e=function(){if(u)return v?u.getElementById(v):u.body}();if(u&&e){E();var t=u.createElement("div");t.className=S.root,t.setAttribute(Gr,"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))}(t,n.current),C?e.insertBefore(t,e.firstChild):e.appendChild(t),o.current=t,c(!0)}};return s.useLayoutEffect((function(){return k(),v&&function(e,t){$r[e]||($r[e]=[]),$r[e].push(t)}(v,k),function(){E(),v&&function(e,t){if($r[e]){var n=$r[e].indexOf(t);n>=0&&($r[e].splice(n,1),0===$r[e].length&&delete $r[e])}}(v,k)}}),[v]),s.useEffect((function(){o.current&&l&&(null==x||x(),null==_||_(),c(!1))}),[l,x,_]),function(e){ii({name:"Layer",props:e,deprecations:{onLayerMounted:"onLayerDidMount"}})}(e),s.createElement("span",{className:"ms-layer",ref:r},o.current&&Fr.createPortal(s.createElement(Zr,i({},!d&&(oi||(oi={},["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 oi[e]=li}))),oi),{className:S.content}),g),o.current))}));si.displayName="LayerBase";var li=function(e){e.eventPhase===Event.BUBBLING_PHASE&&"mouseenter"!==e.type&&"mouseleave"!==e.type&&"touchstart"!==e.type&&"touchend"!==e.type&&e.stopPropagation()},ci={root:"ms-Layer",rootNoHost:"ms-Layer--fixed",content:"ms-Layer-content"},ui=b(si,(function(e){var t=e.className,n=e.isNotHost,r=e.theme,i=Xn(ci,r);return{root:[i.root,r.fonts.medium,n&&[i.rootNoHost,{position:"fixed",zIndex:Dn.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"]}),di=s.forwardRef((function(e,t){var n=e.layerProps,r=e.doNotLayer,a=o(e,["layerProps","doNotLayer"]),l=s.createElement(Pr,i({},a,{doNotLayer:r,ref:t}));return r?l:s.createElement(ui,i({},n),l)}));di.displayName="Callout";var hi,pi=le(),fi=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,c=e.descriptionMessage;return this._classNames=pi(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},n),s.createElement("div",{className:this._classNames.calloutContentY},i)),!!l&&s.createElement("div",{className:this._classNames.ratio},s.createElement(s.Fragment,null,s.createElement("span",{className:this._classNames.numerator},l[0]),"/",s.createElement("span",{className:this._classNames.denominator},l[1])))),!!c&&s.createElement("div",{className:this._classNames.descriptionMessage},c))},t}(s.Component),gi=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:kn.bold},denominator:{fontWeight:kn.semibold},descriptionMessage:[r.fonts.small,{color:r.semanticColors.bodyText,marginTop:"10px",paddingTop:"10px",borderTop:"1px solid "+r.semanticColors.menuDivider}]}},vi=b(fi,gi);!function(e){e[e.vertical=0]="vertical",e[e.horizontal=1]="horizontal",e[e.bidirectional=2]="bidirectional",e[e.domOrder=3]="domOrder"}(hi||(hi={}));var mi=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 _i(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 yi(e){!function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=_i(e,e[n],t[n]))}(e,{componentDidMount:xi,componentDidUpdate:bi,componentWillUnmount:Ci})}function xi(){Si(this.props.componentRef,this)}function bi(e){e.componentRef!==this.props.componentRef&&(Si(e.componentRef,null),Si(this.props.componentRef,this))}function Ci(){Si(this.props.componentRef,null)}function Si(e,t){e&&("object"==typeof e?e.current=t:"function"==typeof e&&e(t))}function Ei(e){var t=function(e){var t;return"function"==typeof Event?t=new Event(e):(t=document.createEvent("Event")).initEvent(e,!0,!0),t}("MouseEvents");t.initEvent("click",!0,!0),e.dispatchEvent(t)}var ki,Li,wi,Ai="data-is-focusable",Di="data-focuszone-id",Ti="tabindex",Mi="data-no-vertical-wrap",Pi="data-no-horizontal-wrap",Fi=999999999,Ii=-999999999,Oi={},Hi=new Set,Ni=["text","number","password","email","tel","url","search"],Ri=!1,Bi=function(e){function t(n){var r,i,o,a,l,c=e.call(this,n)||this;c._root=s.createRef(),c._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=mi(l)),l.refs=e,l.resolver}),c._onFocus=function(e){if(!c._portalContainsElement(e.target)){var t,n=c.props,r=n.onActiveElementChanged,i=n.doNotAllowFocusEventToPropagate,o=n.stopFocusPropagation,a=n.onFocusNotification,s=n.onFocus,l=n.shouldFocusInnerElementWhenReceivedFocus,u=n.defaultTabbableElement,d=c._isImmediateDescendantOfZone(e.target);if(d)t=e.target;else for(var h=e.target;h&&h!==c._root.current;){if(ke(h)&&c._isImmediateDescendantOfZone(h)){t=h;break}h=_e(h,Ri)}if(l&&e.target===c._root.current){var p=u&&"function"==typeof u&&u(c._root.current);p&&ke(p)?(t=p,p.focus()):(c.focus(!0),c._activeElement&&(t=null))}var f=!c._activeElement;t&&t!==c._activeElement&&((d||f)&&c._setFocusAlignment(t,!0,!0),c._activeElement=t,f&&c._updateTabIndexes()),r&&r(c._activeElement,e),(o||i)&&e.stopPropagation(),s?s(e):a&&a()}},c._onBlur=function(){c._setParkedFocus(!1)},c._onMouseDown=function(e){if(!c._portalContainsElement(e.target)&&!c.props.disabled){for(var t=e.target,n=[];t&&t!==c._root.current;)n.push(t),t=_e(t,Ri);for(;n.length&&((t=n.pop())&&ke(t)&&c._setActiveElement(t,!0),!Le(t)););}},c._onKeyDown=function(e,t){if(!c._portalContainsElement(e.target)){var n=c.props,r=n.direction,i=n.disabled,o=n.isInnerZoneKeystroke,a=n.pagingSupportDisabled,s=n.shouldEnterInnerZone;if(!(i||(c.props.onKeyDown&&c.props.onKeyDown(e),e.isDefaultPrevented()||c._getDocument().activeElement===c._root.current&&c._isInnerZone))){if((s&&s(e)||o&&o(e))&&c._isImmediateDescendantOfZone(e.target)){var l=c._getFirstInnerZone();if(l){if(!l.focus(!0))return}else{if(!we(e.target))return;if(!c.focusElement(Se(e.target,e.target.firstChild,!0)))return}}else{if(e.altKey)return;switch(e.which){case 32:if(c._shouldRaiseClicksOnSpace&&c._tryInvokeClickForFocusable(e.target))break;return;case 37:if(r!==hi.vertical&&(c._preventDefaultWhenHandled(e),c._moveFocusLeft(t)))break;return;case 39:if(r!==hi.vertical&&(c._preventDefaultWhenHandled(e),c._moveFocusRight(t)))break;return;case 38:if(r!==hi.horizontal&&(c._preventDefaultWhenHandled(e),c._moveFocusUp()))break;return;case 40:if(r!==hi.horizontal&&(c._preventDefaultWhenHandled(e),c._moveFocusDown()))break;return;case 34:if(!a&&c._moveFocusPaging(!0))break;return;case 33:if(!a&&c._moveFocusPaging(!1))break;return;case 9:if(c.props.allowTabKey||1===c.props.handleTabKey||2===c.props.handleTabKey&&c._isElementInput(e.target)){var u=!1;if(c._processingTabKey=!0,u=r!==hi.vertical&&c._shouldWrapFocus(c._activeElement,Pi)?(ie(t)?!e.shiftKey:e.shiftKey)?c._moveFocusLeft(t):c._moveFocusRight(t):e.shiftKey?c._moveFocusUp():c._moveFocusDown(),c._processingTabKey=!1,u)break;c.props.shouldResetActiveElementWhenTabFromZone&&(c._activeElement=null)}return;case 36:if(c._isContentEditableElement(e.target)||c._isElementInput(e.target)&&!c._shouldInputLoseFocus(e.target,!1))return!1;var d=c._root.current&&c._root.current.firstChild;if(c._root.current&&d&&c.focusElement(Se(c._root.current,d,!0)))break;return;case 35:if(c._isContentEditableElement(e.target)||c._isElementInput(e.target)&&!c._shouldInputLoseFocus(e.target,!0))return!1;var h=c._root.current&&c._root.current.lastChild;if(c._root.current&&c.focusElement(Ce(c._root.current,h,!0,!0,!0)))break;return;case 13:if(c._shouldRaiseClicksOnEnter&&c._tryInvokeClickForFocusable(e.target))break;return;default:return}}e.preventDefault(),e.stopPropagation()}}},c._getHorizontalDistanceFromCenter=function(e,t,n){var r=c._focusAlignment.left||c._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):c._shouldWrapFocus(c._activeElement,Mi)?Fi:Ii},yi(c),ei("FocusZone",n,{rootProps:void 0,allowTabKey:"handleTabKey",elementType:"as",ariaDescribedBy:"aria-describedby",ariaLabelledBy:"aria-labelledby"}),c._id=pe("FocusZone"),c._focusAlignment={left:0,top:0},c._processingTabKey=!1;var u=null===(i=null!==(r=n.shouldRaiseClicks)&&void 0!==r?r:t.defaultProps.shouldRaiseClicks)||void 0===i||i;return c._shouldRaiseClicksOnEnter=null!==(o=n.shouldRaiseClicksOnEnter)&&void 0!==o?o:u,c._shouldRaiseClicksOnSpace=null!==(a=n.shouldRaiseClicksOnSpace)&&void 0!==a?a:u,c}return r(t,e),t.getOuterZones=function(){return Hi.size},t._onKeyDownCapture=function(e){9===e.which&&Hi.forEach((function(e){return e._updateTabIndexes()}))},t.prototype.componentDidMount=function(){var e=this._root.current;if(Oi[this._id]=this,e){this._windowElement=u(e);for(var n=_e(e,Ri);n&&n!==this._getDocument().body&&1===n.nodeType;){if(Le(n)){this._isInnerZone=!0;break}n=_e(n,Ri)}this._isInnerZone||(Hi.add(this),this._windowElement&&1===Hi.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.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 Oi[this._id],this._isInnerZone||(Hi.delete(this),this._windowElement&&0===Hi.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,c=t.className,u=ze(this.props,Ne),d=n||r||"div";this._evaluateFocusBeforeRender();var h,p=(void 0===h&&(h=!1),!0===h&&(fr=pr({},h)),fr);return s.createElement(d,i({"aria-labelledby":l,"aria-describedby":a},u,o,{className:We((ki||(ki=Ye({selectors:{":focus":{outline:"none"}}},"ms-FocusZone")),ki),c),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(Ai)&&this._isInnerZone){var t=this._getOwnerZone(this._root.current);if(t!==this._root.current){var n=Oi[t.getAttribute(Di)];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},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=_e(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){if(e===this._root.current)return!1;do{if("BUTTON"===e.tagName||"A"===e.tagName||"INPUT"===e.tagName||"TEXTAREA"===e.tagName)return!1;if(this._isImmediateDescendantOfZone(e)&&"true"===e.getAttribute(Ai)&&"true"!==e.getAttribute("data-disable-click-on-enter"))return Ei(e),!0;e=_e(e,Ri)}while(e!==this._root.current);return!1},t.prototype._getFirstInnerZone=function(e){if(!(e=e||this._activeElement||this._root.current))return null;if(Le(e))return Oi[e.getAttribute(Di)];for(var t=e.firstElementChild;t;){if(Le(t))return Oi[t.getAttribute(Di)];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===hi.bidirectional;if(!i||!this._root.current)return!1;if(this._isElementInput(i)&&!this._shouldInputLoseFocus(i,e))return!1;var c=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 u=t(c,i.getBoundingClientRect());if(-1===u&&-1===o){a=i;break}if(u>-1&&(-1===o||u<o)&&(o=u,a=i),o>=0&&u<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,Mi)?Fi:Ii:((-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,Mi)?Fi:Ii:((-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,Pi);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!==hi.vertical?o=r.right-i.right:n||(o=Ii),o}),void 0,n)&&(this._setFocusAlignment(this._activeElement,!0,!1),!0)},t.prototype._moveFocusRight=function(e){var t=this,n=this._shouldWrapFocus(this._activeElement,Pi);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!==hi.vertical?o=i.left-r.left:n||(o=Ii),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=Xe(n);if(!r)return!1;var i=-1,o=void 0,a=-1,s=-1,l=r.clientHeight,c=n.getBoundingClientRect();do{if(n=e?Se(this._root.current,n):Ce(this._root.current,n)){var u=n.getBoundingClientRect(),d=Math.floor(u.top),h=Math.floor(c.bottom),p=Math.floor(u.bottom),f=Math.floor(c.top),g=this._getHorizontalDistanceFromCenter(e,c,u);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===hi.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=_e(e,Ri);t&&t!==this._root.current&&t!==this._getDocument().body;){if(Le(t))return t;t=_e(t,Ri)}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(Ai)&&(this._isInnerZone||(this._activeElement||this._defaultFocusElement)&&this._activeElement!==r?"-1"!==r.getAttribute(Ti)&&r.setAttribute(Ti,"-1"):(this._defaultFocusElement=r,"0"!==r.getAttribute(Ti)&&r.setAttribute(Ti,"0"))):(r.getAttribute&&"false"===r.getAttribute(Ai)&&r.setAttribute(Ti,"-1"),ke(r)?this.props.disabled?r.setAttribute(Ti,"-1"):this._isInnerZone||(this._activeElement||this._defaultFocusElement)&&this._activeElement!==r?"-1"!==r.getAttribute(Ti)&&r.setAttribute(Ti,"-1"):(this._defaultFocusElement=r,"0"!==r.getAttribute(Ti)&&r.setAttribute(Ti,"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&&Ni.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=ye(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=ye(t,(function(e){return n===e||e.hasAttribute(Gr)})))&&r.hasAttribute(Gr));var t,n,r},t.prototype._getDocument=function(){return $(this._root.current)},t.defaultProps={isCircularNavigation:!1,direction:hi.bidirectional,shouldRaiseClicks:!0},t}(s.Component),Vi=le(),zi=b(function(e){function t(t){var n=e.call(this,t)||this;return n._adjustProps=function(){n._barHeight=n.props.barHeight||8,n._classNames=Vi(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},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),c=e._uniqLineText+"_"+n;return s.createElement("div",{key:n,className:e._classNames.items},s.createElement("div",{className:e._classNames.items},s.createElement(Bi,{direction:hi.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(Bi,{direction:hi.horizontal},s.createElement("svg",{className:e._classNames.chart},t.chartTitle&&s.createElement("title",null,t.chartTitle),s.createElement("g",{id:c,key:c,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(di,i({target:this.state.refSelected,coverTarget:!0,isBeakVisible:!1,gapSpace:30,hidden:!(!this.props.hideTooltip&&this.state.isCalloutVisible),directionalHint:11,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(vi,{Legend:this.state.xCalloutValue?this.state.xCalloutValue:this.state.legend,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.hoverValue,color:this.state.lineColor}))))},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){var n=ve(this._refArray,(function(e){return e.index===t.legend}));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(){this.state.isCalloutVisible&&this.setState({isCalloutVisible:!1,hoverValue:"",refSelected:null,lineColor:"",legend:""})},t.prototype._getDefaultTextData=function(e){var t=this.props.chartDataMode||"default",n=e.chartData[0],r=n.horizontalBarChartdata.x,o=n.horizontalBarChartdata.y,a=this._getAccessibleDataObject(e.chartDataAccessibilityData);switch(t){case"default":var l=r.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",");return s.createElement("div",i({className:this._classNames.chartDataText},a),l);case"fraction":return s.createElement("div",i({},a),s.createElement("span",{className:this._classNames.chartDataText},r),s.createElement("span",{className:this._classNames.chartDataTextDenominator},"/"+o));case"percentage":var c=Math.round(r/o*100)+"%";return s.createElement("div",i({className:this._classNames.chartDataText},a),c)}},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;return e.chartData.map((function(e,t){var c=e.color?e.color:r[Math.floor(4*Math.random()+1)],u=e.horizontalBarChartdata.x?e.horizontalBarChartdata.x:0;return t>0&&(a+=l),(l=u/o*100)<0?l=0:l<1&&0!==l&&(l=1),i.push(a),l<1?s.createElement(s.Fragment,{key:t}," "):s.createElement("rect",{key:t,x:i[t]+"%",y:0,"data-is-focusable":""!==e.legend,width:l+"%",height:n._barHeight,fill:c,onMouseOver:""!==e.legend?n._hoverOn.bind(n,e.horizontalBarChartdata.x.toString().replace(/\B(?=(\d{3})+(?!\d))/g,","),e):void 0,onFocus:""!==e.legend?n._hoverOn.bind(n,e.horizontalBarChartdata.x.toString().replace(/\B(?=(\d{3})+(?!\d))/g,","),e):void 0,"aria-labelledby":n._calloutId,role:"img","aria-label":"Horizontal bar chart",onBlur:n._hoverOff,onMouseLeave:n._hoverOff})}))},t}(s.Component),(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"},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:kn.bold},chartDataTextDenominator:{fontWeight:kn.semibold},triangle:{width:"0",height:"0",borderLeft:"4px solid transparent",borderRight:"4px solid transparent",borderTop:"8px solid",borderTopColor:o.blue,marginBottom:"4px"}}})),Wi={host:"ms-HoverCard-host"},Ui=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];Ue.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__,c=l?l[n]:null;if(c)for(var u in c)if(c.hasOwnProperty(u))for(var d=c[u],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,c={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(c),a[n].count++,e._isElement(t)){var u=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}};c.elementCallback=u,t.addEventListener?t.addEventListener(n,u,i):t.attachEvent&&t.attachEvent("on"+n,u)}else c.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(c)}},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"}(Li||(Li={})),function(e){e.plain="PlainCard",e.expanding="ExpandingCard"}(wi||(wi={}));var Yi,ji={root:"ms-ExpandingCard-root",compactCard:"ms-ExpandingCard-compactCard",expandedCard:"ms-ExpandingCard-expandedCard",expandedCardScroll:"ms-ExpandingCard-expandedCardScrollRegion"};!function(e){e[e.compact=0]="compact",e[e.expanded=1]="expanded"}(Yi||(Yi={}));var qi=s.forwardRef((function(e,t){var n=s.useRef(null),r=s.useRef(null),o=s.useRef(null),a=Et(n,t),l=function(e,t){var n=s.useRef(t);return n.current||(n.current=pe(void 0)),n.current}(0,e.id),c=wt(),u=ze(e,Ve),d=bt((function(){return{previouslyFocusedElementOutsideTrapZone:void 0,previouslyFocusedElementInTrapZone:void 0,disposeFocusHandler:void 0,disposeClickHandler:void 0,hasFocus:!1,unmodalize:void 0}})),h=e.ariaLabelledBy,p=e.className,f=e.children,g=e.componentRef,v=e.disabled,m=e.disableFirstFocus,_=void 0!==m&&m,y=e.disabled,x=void 0!==y&&y,b=e.elementToFocusOnDismiss,C=e.forceFocusInsideTrap,S=void 0===C||C,E=e.focusPreviouslyFocusedInnerElement,k=e.firstFocusableSelector,L=e.ignoreExternalFocusing,w=e.isClickableOutsideFocusTrap,A=void 0!==w&&w,D=e.onFocus,T=e.onBlur,M=e.onFocusCapture,P=e.onBlurCapture,F=e.enableAriaHiddenSiblings,I={"aria-hidden":!0,style:{pointerEvents:"none",position:"fixed"},tabIndex:v?-1:0,"data-is-visible":!0},O=s.useCallback((function(){if(E&&d.previouslyFocusedElementInTrapZone&&xe(n.current,d.previouslyFocusedElementInTrapZone))De(d.previouslyFocusedElementInTrapZone);else{var e="string"==typeof k?k:k&&k(),t=null;n.current&&(e&&(t=n.current.querySelector("."+e)),t||(t=Se(n.current,n.current.firstChild,!1,!1,!1,!0))),t&&De(t)}}),[k,E,d]),H=s.useCallback((function(e){if(!v){var t,i=e===d.hasFocus?o.current:r.current;if(n.current){var a=e===d.hasFocus?(void 0===(t=!1)&&(t=!0),Ce(n.current,i,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)}(n.current,i,0,!1);a&&(a===r.current||a===o.current?O():a.focus())}}}),[v,O,d]),N=s.useCallback((function(e){null==P||P(e);var t=e.relatedTarget;null===e.relatedTarget&&(t=c.activeElement),xe(n.current,t)||(d.hasFocus=!1)}),[c,d,P]),R=s.useCallback((function(e){null==M||M(e),e.target===r.current?H(!0):e.target===o.current&&H(!1),d.hasFocus=!0,e.target!==e.currentTarget&&e.target!==r.current&&e.target!==o.current&&(d.previouslyFocusedElementInTrapZone=e.target)}),[M,d,H]),B=s.useCallback((function(){if(qi.focusStack=qi.focusStack.filter((function(e){return l!==e})),c){var e=c.activeElement;L||!d.previouslyFocusedElementOutsideTrapZone||"function"!=typeof d.previouslyFocusedElementOutsideTrapZone.focus||!xe(n.current,e)&&e!==c.body||d.previouslyFocusedElementOutsideTrapZone!==r.current&&d.previouslyFocusedElementOutsideTrapZone!==o.current&&De(d.previouslyFocusedElementOutsideTrapZone)}}),[c,l,L,d]),V=s.useCallback((function(e){if(!v&&qi.focusStack.length&&l===qi.focusStack[qi.focusStack.length-1]){var t=e.target;xe(n.current,t)||(O(),d.hasFocus=!0,e.preventDefault(),e.stopPropagation())}}),[v,l,O,d]),z=s.useCallback((function(e){if(!v&&qi.focusStack.length&&l===qi.focusStack[qi.focusStack.length-1]){var t=e.target;t&&!xe(n.current,t)&&(O(),d.hasFocus=!0,e.preventDefault(),e.stopPropagation())}}),[v,l,O,d]),W=s.useCallback((function(){S&&!d.disposeFocusHandler?d.disposeFocusHandler=Te(window,"focus",V,!0):!S&&d.disposeFocusHandler&&(d.disposeFocusHandler(),d.disposeFocusHandler=void 0),A||d.disposeClickHandler?A&&d.disposeClickHandler&&(d.disposeClickHandler(),d.disposeClickHandler=void 0):d.disposeClickHandler=Te(window,"click",z,!0)}),[z,V,S,A,d]);return s.useEffect((function(){var e=n.current;return W(),function(){v&&!S&&xe(e,null==c?void 0:c.activeElement)||B()}}),[W]),s.useEffect((function(){var e=void 0===S||S,t=void 0!==v&&v;if(!t||e){if(x)return;qi.focusStack.push(l),d.previouslyFocusedElementOutsideTrapZone=b||c.activeElement,_||xe(n.current,d.previouslyFocusedElementOutsideTrapZone)||O(),!d.unmodalize&&n.current&&F&&(d.unmodalize=function(e){for(var t,n=[],r=$(e)||document;e!==r.body;){for(var i=0,o=e.parentElement.children;i<o.length;i++){var a=o[i];a!==e&&"true"!==(null===(t=a.getAttribute("aria-hidden"))||void 0===t?void 0:t.toLowerCase())&&n.push(a)}if(!e.parentElement)break;e=e.parentElement}return n.forEach((function(e){e.setAttribute("aria-hidden","true")})),function(){!function(e){e.forEach((function(e){e.setAttribute("aria-hidden","false")}))}(n),n=[]}}(n.current))}else e&&!t||(B(),d.unmodalize&&d.unmodalize());b&&d.previouslyFocusedElementOutsideTrapZone!==b&&(d.previouslyFocusedElementOutsideTrapZone=b)}),[b,S,v]),Xi((function(){d.disposeClickHandler&&(d.disposeClickHandler(),d.disposeClickHandler=void 0),d.disposeFocusHandler&&(d.disposeFocusHandler(),d.disposeFocusHandler=void 0),d.unmodalize&&d.unmodalize(),delete d.previouslyFocusedElementInTrapZone,delete d.previouslyFocusedElementOutsideTrapZone})),function(e,t,n){s.useImperativeHandle(e,(function(){return{get previouslyFocusedElement(){return t},focus:n}}),[t,n])}(g,d.previouslyFocusedElementInTrapZone,O),s.createElement("div",i({},u,{className:p,ref:a,"aria-labelledby":h,onFocusCapture:R,onFocus:D,onBlur:T,onBlurCapture:N}),s.createElement("div",i({},I,{ref:r})),f,s.createElement("div",i({},I,{ref:o})))})),Xi=function(e){var t=s.useRef(e);t.current=e,s.useEffect((function(){return function(){t.current&&t.current()}}),[e])};qi.displayName="FocusTrapZone",qi.focusStack=[];var Ki,Zi=function(e){return s.createElement(di,i({},e),s.createElement(qi,i({disabled:e.hidden},e.focusTrapProps),e.children))},Gi=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,c=e.firstFocus,u=e.trapFocus,d=e.onLeave,h=e.className,p=e.finalHeight,f=e.content,g=e.calloutProps,v=i(i(i({},ze(e,Ve)),{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,u?s.createElement(Zi,i({},v,{focusTrapProps:{forceFocusInsideTrap:!1,isClickableOutsideFocusTrap:!0,disableFirstFocus:!c}}),f):s.createElement(di,i({},v),f))},$i=le(),Qi=b(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 xt(n),yi(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,c=this.state,u=c.needsScroll,d=c.firstFrameRendered,h=n+r;this._classNames=$i(t,{theme:o,compactCardHeight:n,className:l,expandedCardHeight:r,needsScroll:u,expandedCardFirstFrameRendered:a===Yi.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(Gi,i({},this.props,{content:p,finalHeight:h,className:this._classNames.root}))},t.defaultProps={compactCardHeight:156,expandedCardHeight:384,directionalHintFixed:!0},t}(s.Component),(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,c=Xn(ji,n);return{root:[c.root,{width:320,pointerEvents:"none",selectors:(t={},t[Tn]={border:"1px solid WindowText"},t)},s],compactCard:[c.compactCard,{pointerEvents:"auto",position:"relative",height:o}],expandedCard:[c.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:[c.expandedCardScroll,r&&{height:"100%",boxSizing:"border-box",overflowY:"auto"}]}}),void 0,{scope:"ExpandingCard"}),Ji={root:"ms-PlainCard-root"},eo=le(),to=b(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)},yi(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=eo(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(Gi,i({},this.props,{content:o,className:this._classNames.root}))},t}(s.Component),(function(e){var t,n=e.theme,r=e.className;return{root:[Xn(Ji,n).root,{pointerEvents:"auto",selectors:(t={},t[Tn]={border:"1px solid WindowText"},t)},r]}}),void 0,{scope:"PlainCard"}),no=le(),ro=b(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:Yi.compact,openMode:"keydown"===e.type?Li.hotKey:Li.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:Yi.compact,openMode:Li.hover})},n._instantOpenAsExpanded=function(e){n._async.clearTimeout(n._dismissTimerId),n.setState((function(e){return e.isHoverCardVisible?e:{isHoverCardVisible:!0,mode:Yi.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)))},yi(n),n._async=new xt(n),n._events=new Ui(n),n._nativeDismissEvent=n._cardDismiss.bind(n,!0),n._childDismissEvent=n._cardDismiss.bind(n,!1),n.state={isHoverCardVisible:!1,mode:Yi.compact,openMode:Li.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:Yi.expanded},(function(){n.props.onCardExpand&&n.props.onCardExpand()}))}),this.props.expandedCardOpenDelay),this.props.onCardVisible&&this.props.onCardVisible()):(this.setState({mode:Yi.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,c=e.theme,u=e.className,d=e.type,h=e.plainCardProps,p=e.trapFocus,f=e.setInitialFocus,g=this.state,v=g.isHoverCardVisible,m=g.mode,_=g.openMode,y=r||pe("hoverCard");this._classNames=no(l,{theme:c,className:u});var x=i(i({},ze(this.props,Ve)),{id:y,trapFocus:!!p,firstFocus:f||_===Li.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?y:void 0,"data-is-focusable":!this.props.target},n,v&&(d===wi.expanding?s.createElement(Qi,i({},b)):s.createElement(to,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:wi.expanding},t}(s.Component),(function(e){var t=e.className,n=e.theme;return{host:[Xn(Wi,n).host,t]}}),void 0,{scope:"HoverCard"});!function(e){e[e.horizontal=0]="horizontal",e[e.vertical=1]="vertical"}(Ki||(Ki={}));var io=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 c=i(i({},t),{measureContainer:!1});return t.dataToMeasure&&(c="grow"===t.resizeDirection&&e.onGrowData?i(i({},c),function(e,t,s,l){for(var c=e,u=o(e,s);u<n;){var d=t(c);if(void 0===d)return{renderedData:c,resizeDirection:void 0,dataToMeasure:void 0};if(void 0===(u=r.getCachedMeasurement(d)))return{dataToMeasure:d};c=d}return i({resizeDirection:"shrink"},a(c,l,s))}(t.dataToMeasure,e.onGrowData,s,e.onReduceData)):i(i({},c),a(t.dataToMeasure,e.onReduceData,s))),c}},shouldRenderDataForMeasurement:function(e){return!(!e||void 0!==r.getCachedMeasurement(e))},getInitialResizeGroupState:function(e){return{dataToMeasure:i({},e),resizeDirection:"grow",measureContainer:!0}}}},oo=s.createContext({isMeasured:!1}),ao={position:"fixed",visibility:"hidden"},so={position:"relative"};function lo(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 co={isMeasured:!0},uo=s.forwardRef((function(e,t){var n=s.useRef(null),r=Et(n,t),o=function(e,t){var n=bt(io),r=s.useRef(null),o=s.useRef(null),a=s.useRef(!1),l=Ct(),c=function(e,t,n){var r=bt((function(){return t.getInitialResizeGroupState(e.data)})),o=s.useReducer(lo,r),a=o[0],l=o[1];s.useEffect((function(){l({type:"dataToMeasure",value:e.data})}),[e.data]);var c=s.useRef(r);return c.current=i({},a),[c,s.useCallback((function(e){e&&l({type:"resizeData",value:e})}),[]),s.useCallback((function(){n.current&&l({type:"measureContainer",value:!0})}),[n])]}(e,n,t),u=c[0],d=c[1],h=c[2];s.useEffect((function(){var t;u.current.renderedData&&(a.current=!0,null===(t=e.dataDidRender)||void 0===t||t.call(e,u.current.renderedData))})),s.useEffect((function(){l.requestAnimationFrame((function(){var i=void 0;if(u.current.measureContainer&&t.current){var s=t.current.getBoundingClientRect();i=e.direction===Ki.vertical?s.height:s.width}var l=n.getNextState(e,u.current,(function(){var t=a.current?o:r;return t.current?e.direction===Ki.vertical?t.current.scrollHeight:t.current.scrollWidth:0}),i);d(l)}))})),St(Lt(),"resize",l.debounce(h,16,{leading:!0}));var p=n.shouldRenderDataForMeasurement(u.current.dataToMeasure),f=!a.current&&p;return[u.current.dataToMeasure,u.current.renderedData,h,r,o,p,f]}(e,n),a=o[0],l=o[1],c=o[2],u=o[3],d=o[4],h=o[5],p=o[6];s.useImperativeHandle(e.componentRef,(function(){return{remeasure:c}}),[c]),function(e){ii({name:"ResizeGroup",props:e,deprecations:{styles:"className"}})}(e);var f=e.className,g=e.onRenderData,v=ze(e,Ve,["data"]);return s.createElement("div",i({},v,{className:f,ref:r}),s.createElement("div",{style:so},h&&!p&&s.createElement("div",{style:ao,ref:d},s.createElement(oo.Provider,{value:co},g(a))),s.createElement("div",{ref:u,style:p?ao:void 0,"data-automation-id":"visibleContent"},p?g(a):l&&g(l))))}));uo.displayName="ResizeGroupBase";var ho,po=uo;!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"}(ho||(ho={}));var fo=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?ho.PERSISTED_KEYTIP_ADDED:ho.KEYTIP_ADDED;Ui.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||Ui.raise(this,ho.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?ho.PERSISTED_KEYTIP_REMOVED:ho.KEYTIP_REMOVED;!this.inKeytipMode&&this.delayUpdatingKeytipChange||Ui.raise(this,r,{keytip:e,uniqueID:t})},e.prototype.enterKeytipMode=function(){Ui.raise(this,ho.ENTER_KEYTIP_MODE)},e.prototype.exitKeytipMode=function(){Ui.raise(this,ho.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){Ui.raise(this,ho.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}(),go=function(e,t,n){for(var r=0,i=e;r<i.length;r++){var o=i[r];n[t.register(o,!0)]=o}},vo=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]}},mo=function(e){var t=fo.getInstance(),n=e.className,r=e.overflowItems,o=e.keytipSequences,a=e.itemSubMenuProvider,l=e.onRenderOverflowButton,c=bt({}),u=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||u(r)?l.onExecute=t.menuExecute.bind(t,o,null===(a=null==r?void 0:r.keytipProps)||void 0===a?void 0:a.keySequences):l.onExecute=s.onExecute,e.push(l);var c=i(i({},r),{keytipProps:i(i({},s),{overflowSetSequence:o})});null==n||n.push(c)}else null==n||n.push(r)})):n=r,{modifiedOverflowItems:n,keytipsToRegister:e}}),[r,u,t,o]),h=d.modifiedOverflowItems;return function(e,t,n){var r=ni(e);s.useEffect((function(){r&&(vo(n,r),go(t,n,e))})),s.useEffect((function(){return go(t,n,e),function(){vo(n,e)}}),[])}(c,d.keytipsToRegister,t),s.createElement("div",{className:n},l(h))},_o=le(),yo=s.forwardRef((function(e,t){var n=s.useRef(null),r=Et(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,c=e.styles,u=e.vertical,d=e.role,h=e.overflowSide,p=void 0===h?"end":h,f=e.onRenderItem,g=_o(c,{className:l,vertical:u}),v=!!a&&a.length>0;return s.createElement("div",i({},ze(e,Ve),{role:d||"group","aria-orientation":"menubar"===d?!0===u?"vertical":"horizontal":void 0,className:g.root,ref:r}),"start"===p&&v&&s.createElement(mo,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(mo,i({},e,{className:g.overflowButton})))}));yo.displayName="OverflowSet";var xo={flexShrink:0,display:"inherit"},bo=b(yo,(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",xo],overflowButton:["ms-OverflowSet-overflowButton",xo]}}),void 0,{scope:"OverflowSet"}),Co=Array.prototype.slice;function So(e){return e}var Eo=1e-6;function ko(e){return"translate("+(e+.5)+",0)"}function Lo(e){return"translate(0,"+(e+.5)+")"}function wo(e){return function(t){return+e(t)}}function Ao(e){var t=Math.max(0,e.bandwidth()-1)/2;return e.round()&&(t=Math.round(t)),function(n){return+e(n)+t}}function Do(){return!this.__axis}function To(e,t){var n=[],r=null,i=null,o=6,a=6,s=3,l=1===e||4===e?-1:1,c=4===e||2===e?"x":"y",u=1===e||3===e?ko:Lo;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):So:i,f=Math.max(o,0)+s,g=t.range(),v=+g[0]+.5,m=+g[g.length-1]+.5,_=(t.bandwidth?Ao:wo)(t.copy()),y=d.selection?d.selection():d,x=y.selectAll(".domain").data([null]),b=y.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(c+"2",l*o)),k=k.merge(S.append("text").attr("fill","#000").attr(c,l*f).attr("dy",1===e?"0em":3===e?"0.71em":"0.32em")),d!==y&&(x=x.transition(d),b=b.transition(d),E=E.transition(d),k=k.transition(d),C=C.transition(d).attr("opacity",Eo).attr("transform",(function(e){return isFinite(e=_(e))?u(e):this.getAttribute("transform")})),S.attr("opacity",Eo).attr("transform",(function(e){var t=this.parentNode.__axis;return u(t&&isFinite(t=t(e))?t:_(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 u(_(e))})),E.attr(c+"2",l*o),k.attr(c,l*f).text(p),y.filter(Do).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===e?"start":4===e?"end":"middle"),y.each((function(){this.__axis=_}))}return d.scale=function(e){return arguments.length?(t=e,d):t},d.ticks=function(){return n=Co.call(arguments),d},d.tickArguments=function(e){return arguments.length?(n=null==e?[]:Co.call(e),d):n.slice()},d.tickValues=function(e){return arguments.length?(r=null==e?null:Co.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 Mo(e){return To(2,e)}function Po(e){return To(3,e)}function Fo(e){return To(4,e)}function Io(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Oo(e){var t;return 1===e.length&&(t=e,e=function(e,n){return Io(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 Ho=Oo(Io),No=(Ho.right,Ho.left,Array.prototype);function Ro(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 Bo(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 Vo(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function zo(e){var t;return 1===e.length&&(t=e,e=function(e,n){return Vo(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}}}No.slice,No.map,Math.sqrt(50),Math.sqrt(10),Math.sqrt(2);var Wo=zo(Vo),Uo=Wo.right,Yo=(Wo.left,Uo),jo=Array.prototype,qo=(jo.slice,jo.map,Math.sqrt(50)),Xo=Math.sqrt(10),Ko=Math.sqrt(2);function Zo(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>=qo?10:o>=Xo?5:o>=Ko?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=qo?10:o>=Xo?5:o>=Ko?2:1)}function Go(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>=qo?i*=10:o>=Xo?i*=5:o>=Ko&&(i*=2),t<e?-i:i}var $o="$";function Qo(){}function Jo(e,t){var n=new Qo;if(e instanceof Qo)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}Qo.prototype=Jo.prototype={constructor:Qo,has:function(e){return $o+e in this},get:function(e){return this[$o+e]},set:function(e,t){return this[$o+e]=t,this},remove:function(e){var t=$o+e;return t in this&&delete this[t]},clear:function(){for(var e in this)e[0]===$o&&delete this[e]},keys:function(){var e=[];for(var t in this)t[0]===$o&&e.push(t.slice(1));return e},values:function(){var e=[];for(var t in this)t[0]===$o&&e.push(this[t]);return e},entries:function(){var e=[];for(var t in this)t[0]===$o&&e.push({key:t.slice(1),value:this[t]});return e},size:function(){var e=0;for(var t in this)t[0]===$o&&++e;return e},empty:function(){for(var e in this)if(e[0]===$o)return!1;return!0},each:function(e){for(var t in this)t[0]===$o&&e(this[t],t.slice(1),this)}};var ea=Jo;function ta(){}var na=ea.prototype;ta.prototype=function(e,t){var n=new ta;if(e instanceof ta)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:ta,has:na.has,add:function(e){return this[$o+(e+="")]=e,this},remove:na.remove,clear:na.clear,values:na.keys,size:na.size,empty:na.empty,each:na.each};var ra=Array.prototype,ia=ra.map,oa=ra.slice,aa={name:"implicit"};function sa(e){var t=ea(),n=[],r=aa;function i(i){var o=i+"",a=t.get(o);if(!a){if(r!==aa)return r;t.set(o,a=n.push(i))}return e[(a-1)%e.length]}return e=null==e?[]:oa.call(e),i.domain=function(e){if(!arguments.length)return n.slice();n=[],t=ea();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=oa.call(t),i):e.slice()},i.unknown=function(e){return arguments.length?(r=e,i):r},i.copy=function(){return sa().domain(n).range(e).unknown(r)},i}function la(){var e,t,n=sa().unknown(void 0),r=n.domain,i=n.range,o=[0,1],a=!1,s=0,l=0,c=.5;function u(){var n=r().length,u=o[1]<o[0],d=o[u-0],h=o[1-u];e=(h-d)/Math.max(1,n-s+2*l),a&&(e=Math.floor(e)),d+=(h-d-e*(n-s))*c,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(u?p.reverse():p)}return delete n.unknown,n.domain=function(e){return arguments.length?(r(e),u()):r()},n.range=function(e){return arguments.length?(o=[+e[0],+e[1]],u()):o.slice()},n.rangeRound=function(e){return o=[+e[0],+e[1]],a=!0,u()},n.bandwidth=function(){return t},n.step=function(){return e},n.round=function(e){return arguments.length?(a=!!e,u()):a},n.padding=function(e){return arguments.length?(s=l=Math.max(0,Math.min(1,e)),u()):s},n.paddingInner=function(e){return arguments.length?(s=Math.max(0,Math.min(1,e)),u()):s},n.paddingOuter=function(e){return arguments.length?(l=Math.max(0,Math.min(1,e)),u()):l},n.align=function(e){return arguments.length?(c=Math.max(0,Math.min(1,e)),u()):c},n.copy=function(){return la().domain(r()).range(o).round(a).paddingInner(s).paddingOuter(l).align(c)},u()}function ca(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function ua(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function da(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function ha(){}var pa=.7,fa=1/pa,ga="\\s*([+-]?\\d+)\\s*",va="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",ma="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",_a=/^#([0-9a-f]{3,8})$/,ya=new RegExp("^rgb\\("+[ga,ga,ga]+"\\)$"),xa=new RegExp("^rgb\\("+[ma,ma,ma]+"\\)$"),ba=new RegExp("^rgba\\("+[ga,ga,ga,va]+"\\)$"),Ca=new RegExp("^rgba\\("+[ma,ma,ma,va]+"\\)$"),Sa=new RegExp("^hsl\\("+[va,ma,ma]+"\\)$"),Ea=new RegExp("^hsla\\("+[va,ma,ma,va]+"\\)$"),ka={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 La(){return this.rgb().formatHex()}function wa(){return this.rgb().formatRgb()}function Aa(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=_a.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Da(t):3===n?new Fa(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?new Fa(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?new Fa(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=ya.exec(e))?new Fa(t[1],t[2],t[3],1):(t=xa.exec(e))?new Fa(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=ba.exec(e))?Ta(t[1],t[2],t[3],t[4]):(t=Ca.exec(e))?Ta(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Sa.exec(e))?Na(t[1],t[2]/100,t[3]/100,1):(t=Ea.exec(e))?Na(t[1],t[2]/100,t[3]/100,t[4]):ka.hasOwnProperty(e)?Da(ka[e]):"transparent"===e?new Fa(NaN,NaN,NaN,0):null}function Da(e){return new Fa(e>>16&255,e>>8&255,255&e,1)}function Ta(e,t,n,r){return r<=0&&(e=t=n=NaN),new Fa(e,t,n,r)}function Ma(e){return e instanceof ha||(e=Aa(e)),e?new Fa((e=e.rgb()).r,e.g,e.b,e.opacity):new Fa}function Pa(e,t,n,r){return 1===arguments.length?Ma(e):new Fa(e,t,n,null==r?1:r)}function Fa(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Ia(){return"#"+Ha(this.r)+Ha(this.g)+Ha(this.b)}function Oa(){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 Ha(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function Na(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Ba(e,t,n,r)}function Ra(e){if(e instanceof Ba)return new Ba(e.h,e.s,e.l,e.opacity);if(e instanceof ha||(e=Aa(e)),!e)return new Ba;if(e instanceof Ba)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 Ba(a,s,l,e.opacity)}function Ba(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Va(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 za(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 Wa(e){return function(){return e}}function Ua(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):Wa(isNaN(e)?t:e)}ua(ha,Aa,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:La,formatHex:La,formatHsl:function(){return Ra(this).formatHsl()},formatRgb:wa,toString:wa}),ua(Fa,Pa,da(ha,{brighter:function(e){return e=null==e?fa:Math.pow(fa,e),new Fa(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?pa:Math.pow(pa,e),new Fa(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:Ia,formatHex:Ia,formatRgb:Oa,toString:Oa})),ua(Ba,(function(e,t,n,r){return 1===arguments.length?Ra(e):new Ba(e,t,n,null==r?1:r)}),da(ha,{brighter:function(e){return e=null==e?fa:Math.pow(fa,e),new Ba(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?pa:Math.pow(pa,e),new Ba(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 Fa(Va(e>=240?e-240:e+120,i,r),Va(e,i,r),Va(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 Ya=function e(t){var n=function(e){return 1==(e=+e)?Ua: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):Wa(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=Pa(e)).r,(t=Pa(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),a=Ua(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 ja(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=Pa(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 qa(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]=Ja(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 Xa(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Ka(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]=Ja(e[n],t[n]):i[n]=t[n];return function(e){for(n in r)i[n]=r[n](e);return i}}ja((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 za((n-r/t)*t,a,i,o,s)}})),ja((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 za((n-r/t)*t,i,o,a,s)}}));var Za=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Ga=new RegExp(Za.source,"g");function $a(e,t){var n,r,i,o=Za.lastIndex=Ga.lastIndex=0,a=-1,s=[],l=[];for(e+="",t+="";(n=Za.exec(e))&&(r=Ga.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:ca(n,r)})),o=Ga.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 Qa(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 Ja(e,t){var n,r,i=typeof t;return null==t||"boolean"===i?Wa(t):("number"===i?ca:"string"===i?(n=Aa(t))?(t=n,Ya):$a:t instanceof Aa?Ya:t instanceof Date?Xa:(r=t,!ArrayBuffer.isView(r)||r instanceof DataView?Array.isArray(t)?qa:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?Ka:ca:Qa))(e,t)}function es(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function ts(e){return+e}var ns=[0,1];function rs(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:(n=t,function(){return n});var n}function is(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 os(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=Yo(e,t,1,i)-1;return a[n](o[n](t))}}function as(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp())}function ss(e,t){var n,r,i,o=ns,a=ns,s=Ja,l=!1;function c(){return n=Math.min(o.length,a.length)>2?os:is,r=i=null,u}function u(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 u.invert=function(e){return(i||(i=n(a,o,rs,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)},u.domain=function(e){return arguments.length?(o=ia.call(e,ts),c()):o.slice()},u.range=function(e){return arguments.length?(a=oa.call(e),c()):a.slice()},u.rangeRound=function(e){return a=oa.call(e),s=es,c()},u.clamp=function(e){return arguments.length?(l=!!e,c()):l},u.interpolate=function(e){return arguments.length?(s=e,c()):s},c()}var ls,cs=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function us(e){if(!(t=cs.exec(e)))throw new Error("invalid format: "+e);var t;return new ds({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 ds(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 hs(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 ps(e){return(e=hs(Math.abs(e)))?e[1]:NaN}function fs(e,t){var n=hs(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")}us.prototype=ds.prototype,ds.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 gs={"%":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 fs(100*e,t)},r:fs,s:function(e,t){var n=hs(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(ls=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")+hs(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 vs(e){return e}var ms,_s,ys,xs=Array.prototype.map,bs=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Cs(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=Zo(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=Go(i,o,null==t?10:t);switch((n=us(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(ps(t)/3)))-ps(Math.abs(e)))}(a,s))||(n.precision=r),ys(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,ps(t)-ps(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,-ps(Math.abs(e)))}(a))||(n.precision=r-2*("%"===n.type))}return _s(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=Zo(s,l,n))>0?r=Zo(s=Math.floor(s/r)*r,l=Math.ceil(l/r)*r,n):r<0&&(r=Zo(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 Ss(){var e=ss(rs,ca);return e.copy=function(){return as(e,Ss())},Cs(e)}ms=function(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?vs:(t=xs.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?vs:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(xs.call(e.numerals,String)),l=void 0===e.percent?"%":e.percent+"",c=void 0===e.minus?"-":e.minus+"",u=void 0===e.nan?"NaN":e.nan+"";function d(e){var t=(e=us(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,_=e.type;"n"===_?(g=!0,_="g"):gs[_]||(void 0===v&&(v=12),m=!0,_="g"),(p||"0"===t&&"="===n)&&(p=!0,t="0",n="=");var y="$"===h?i:"#"===h&&/[boxX]/.test(_)?"0"+_.toLowerCase():"",x="$"===h?o:/[%p]/.test(_)?l:"",b=gs[_],C=/[defgprs%]/.test(_);function S(e){var i,o,l,h=y,S=x;if("c"===_)S=b(e)+S,e="";else{var E=(e=+e)<0||1/e<0;if(e=isNaN(e)?u: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:c:"-"===d||"("===d?"":d)+h,S=("s"===_?bs[8+ls/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 v=void 0===v?6:/[gprs]/.test(_)?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=us(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(ps(t)/3))),i=Math.pow(10,-r),o=bs[8+r/3];return function(e){return n(i*e)+o}}}}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),_s=ms.format,ys=ms.formatPrefix;var Es=new Date,ks=new Date;function Ls(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 Ls((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 Es.setTime(+t),ks.setTime(+r),e(Es),e(ks),Math.floor(n(Es,ks))},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 ws=Ls((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e}));ws.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?Ls((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):ws:null};var As=ws,Ds=(ws.range,1e3),Ts=6e4,Ms=36e5,Ps=864e5,Fs=6048e5,Is=Ls((function(e){e.setTime(e-e.getMilliseconds())}),(function(e,t){e.setTime(+e+t*Ds)}),(function(e,t){return(t-e)/Ds}),(function(e){return e.getUTCSeconds()})),Os=Is,Hs=(Is.range,Ls((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ds)}),(function(e,t){e.setTime(+e+t*Ts)}),(function(e,t){return(t-e)/Ts}),(function(e){return e.getMinutes()}))),Ns=Hs,Rs=(Hs.range,Ls((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ds-e.getMinutes()*Ts)}),(function(e,t){e.setTime(+e+t*Ms)}),(function(e,t){return(t-e)/Ms}),(function(e){return e.getHours()}))),Bs=Rs,Vs=(Rs.range,Ls((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())*Ts)/Ps}),(function(e){return e.getDate()-1}))),zs=Vs;function Ws(e){return Ls((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())*Ts)/Fs}))}Vs.range;var Us=Ws(0),Ys=Ws(1),js=Ws(2),qs=Ws(3),Xs=Ws(4),Ks=Ws(5),Zs=Ws(6),Gs=(Us.range,Ys.range,js.range,qs.range,Xs.range,Ks.range,Zs.range,Ls((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()}))),$s=Gs,Qs=(Gs.range,Ls((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()})));Qs.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Ls((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 Js=Qs,el=(((Qs.range,Ls((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+t*Ts)}),(function(e,t){return(t-e)/Ts}),(function(e){return e.getUTCMinutes()}))).range,Ls((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+t*Ms)}),(function(e,t){return(t-e)/Ms}),(function(e){return e.getUTCHours()}))).range,Ls((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/Ps}),(function(e){return e.getUTCDate()-1}))),tl=el;function nl(e){return Ls((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)/Fs}))}el.range;var rl=nl(0),il=nl(1),ol=nl(2),al=nl(3),sl=nl(4),ll=nl(5),cl=nl(6),ul=((rl.range,il.range,ol.range,al.range,sl.range,ll.range,cl.range,Ls((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()}))).range,Ls((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()})));ul.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Ls((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 dl=ul;function hl(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 pl(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 fl(e){return{y:e,m:0,d:1,H:0,M:0,S:0,L:0}}ul.range;var gl,vl,ml,_l,yl={"-":"",_:" ",0:"0"},xl=/^\s*\d+/,bl=/^%/,Cl=/[\\^$*+?|[\]().{}]/g;function Sl(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 El(e){return e.replace(Cl,"\\$&")}function kl(e){return new RegExp("^(?:"+e.map(El).join("|")+")","i")}function Ll(e){for(var t={},n=-1,r=e.length;++n<r;)t[e[n].toLowerCase()]=n;return t}function wl(e,t,n){var r=xl.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Al(e,t,n){var r=xl.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Dl(e,t,n){var r=xl.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Tl(e,t,n){var r=xl.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Ml(e,t,n){var r=xl.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function Pl(e,t,n){var r=xl.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function Fl(e,t,n){var r=xl.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Il(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 Ol(e,t,n){var r=xl.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function Hl(e,t,n){var r=xl.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Nl(e,t,n){var r=xl.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Rl(e,t,n){var r=xl.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Bl(e,t,n){var r=xl.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Vl(e,t,n){var r=xl.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function zl(e,t,n){var r=xl.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Wl(e,t,n){var r=xl.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Ul(e,t,n){var r=bl.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Yl(e,t,n){var r=xl.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function jl(e,t,n){var r=xl.exec(t.slice(n));return r?(e.Q=1e3*+r[0],n+r[0].length):-1}function ql(e,t){return Sl(e.getDate(),t,2)}function Xl(e,t){return Sl(e.getHours(),t,2)}function Kl(e,t){return Sl(e.getHours()%12||12,t,2)}function Zl(e,t){return Sl(1+zs.count(Js(e),e),t,3)}function Gl(e,t){return Sl(e.getMilliseconds(),t,3)}function $l(e,t){return Gl(e,t)+"000"}function Ql(e,t){return Sl(e.getMonth()+1,t,2)}function Jl(e,t){return Sl(e.getMinutes(),t,2)}function ec(e,t){return Sl(e.getSeconds(),t,2)}function tc(e){var t=e.getDay();return 0===t?7:t}function nc(e,t){return Sl(Us.count(Js(e),e),t,2)}function rc(e,t){var n=e.getDay();return e=n>=4||0===n?Xs(e):Xs.ceil(e),Sl(Xs.count(Js(e),e)+(4===Js(e).getDay()),t,2)}function ic(e){return e.getDay()}function oc(e,t){return Sl(Ys.count(Js(e),e),t,2)}function ac(e,t){return Sl(e.getFullYear()%100,t,2)}function sc(e,t){return Sl(e.getFullYear()%1e4,t,4)}function lc(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Sl(t/60|0,"0",2)+Sl(t%60,"0",2)}function cc(e,t){return Sl(e.getUTCDate(),t,2)}function uc(e,t){return Sl(e.getUTCHours(),t,2)}function dc(e,t){return Sl(e.getUTCHours()%12||12,t,2)}function hc(e,t){return Sl(1+tl.count(dl(e),e),t,3)}function pc(e,t){return Sl(e.getUTCMilliseconds(),t,3)}function fc(e,t){return pc(e,t)+"000"}function gc(e,t){return Sl(e.getUTCMonth()+1,t,2)}function vc(e,t){return Sl(e.getUTCMinutes(),t,2)}function mc(e,t){return Sl(e.getUTCSeconds(),t,2)}function _c(e){var t=e.getUTCDay();return 0===t?7:t}function yc(e,t){return Sl(rl.count(dl(e),e),t,2)}function xc(e,t){var n=e.getUTCDay();return e=n>=4||0===n?sl(e):sl.ceil(e),Sl(sl.count(dl(e),e)+(4===dl(e).getUTCDay()),t,2)}function bc(e){return e.getUTCDay()}function Cc(e,t){return Sl(il.count(dl(e),e),t,2)}function Sc(e,t){return Sl(e.getUTCFullYear()%100,t,2)}function Ec(e,t){return Sl(e.getUTCFullYear()%1e4,t,4)}function kc(){return"+0000"}function Lc(){return"%"}function wc(e){return+e}function Ac(e){return Math.floor(+e/1e3)}gl=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,c=kl(i),u=Ll(i),d=kl(o),h=Ll(o),p=kl(a),f=Ll(a),g=kl(s),v=Ll(s),m=kl(l),_=Ll(l),y={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:ql,e:ql,f:$l,H:Xl,I:Kl,j:Zl,L:Gl,m:Ql,M:Jl,p:function(e){return i[+(e.getHours()>=12)]},Q:wc,s:Ac,S:ec,u:tc,U:nc,V:rc,w:ic,W:oc,x:null,X:null,y:ac,Y:sc,Z:lc,"%":Lc},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:cc,e:cc,f:fc,H:uc,I:dc,j:hc,L:pc,m:gc,M:vc,p:function(e){return i[+(e.getUTCHours()>=12)]},Q:wc,s:Ac,S:mc,u:_c,U:yc,V:xc,w:bc,W:Cc,x:null,X:null,y:Sc,Y:Ec,Z:kc,"%":Lc},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=_[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:Hl,e:Hl,f:Wl,H:Rl,I:Rl,j:Nl,L:zl,m:Ol,M:Bl,p:function(e,t,n){var r=c.exec(t.slice(n));return r?(e.p=u[r[0].toLowerCase()],n+r[0].length):-1},Q:Yl,s:jl,S:Vl,u:Al,U:Dl,V:Tl,w:wl,W:Ml,x:function(e,t,r){return E(e,n,t,r)},X:function(e,t,n){return E(e,r,t,n)},y:Fl,Y:Pl,Z:Il,"%":Ul};function C(e,t){return function(n){var r,i,o,a=[],s=-1,l=0,c=e.length;for(n instanceof Date||(n=new Date(+n));++s<c;)37===e.charCodeAt(s)&&(a.push(e.slice(l,s)),null!=(i=yl[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=fl(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=pl(fl(o.y))).getUTCDay(),r=i>4||0===i?il.ceil(r):il(r),r=tl.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(fl(o.y))).getDay(),r=i>4||0===i?Ys.ceil(r):Ys(r),r=zs.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?pl(fl(o.y)).getUTCDay():t(fl(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,pl(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 yl?t.charAt(a++):i])||(r=o(e,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return y.x=C(n,y),y.X=C(r,y),y.c=C(t,y),x.x=C(n,x),x.X=C(r,x),x.c=C(t,x),{format:function(e){var t=C(e+="",y);return t.toString=function(){return e},t},parse:function(e){var t=S(e+="",hl);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,pl);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"]}),vl=gl.format,gl.parse,ml=gl.utcFormat,_l=gl.utcParse;var Dc="%Y-%m-%dT%H:%M:%S.%LZ";Date.prototype.toISOString||ml(Dc),+new Date("2000-01-01T00:00:00.000Z")||_l(Dc);var Tc=31536e6;function Mc(e){return new Date(e)}function Pc(e){return e instanceof Date?+e:+new Date(+e)}function Fc(e,t,n,r,i,o,a,s,l){var c=ss(rs,ca),u=c.invert,d=c.domain,h=l(".%L"),p=l(":%S"),f=l("%I:%M"),g=l("%I %p"),v=l("%a %d"),m=l("%b %d"),_=l("%B"),y=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,Tc]];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=zo((function(e){return e[2]})).right(x,o);a===x.length?(i=Go(n/Tc,r/Tc,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(Go(n,r,t),1),t=s)}return null==i?t:t.every(i)}return c.invert=function(e){return new Date(u(e))},c.domain=function(e){return arguments.length?d(ia.call(e,Pc)):d().map(Mc)},c.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},c.tickFormat=function(e,t){return null==t?b:l(t)},c.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)):c},c.copy=function(){return as(c,Fc(e,t,n,r,i,o,a,s,l))},c}function Ic(){return Fc(Js,$s,Us,zs,Bs,Ns,Os,As,vl).domain([new Date(2e3,0,1),new Date(2e3,0,2)])}var Oc="http://www.w3.org/1999/xhtml",Hc={svg:"http://www.w3.org/2000/svg",xhtml:Oc,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Nc(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),Hc.hasOwnProperty(t)?{space:Hc[t],local:e}:e}function Rc(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===Oc&&t.documentElement.namespaceURI===Oc?t.createElement(e):t.createElementNS(n,e)}}function Bc(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Vc(e){var t=Nc(e);return(t.local?Bc:Rc)(t)}function zc(){}function Wc(e){return null==e?zc:function(){return this.querySelector(e)}}function Uc(){return[]}var Yc=function(e){return function(){return this.matches(e)}};if("undefined"!=typeof document){var jc=document.documentElement;if(!jc.matches){var qc=jc.webkitMatchesSelector||jc.msMatchesSelector||jc.mozMatchesSelector||jc.oMatchesSelector;Yc=function(e){return function(){return qc.call(this,e)}}}}var Xc=Yc;function Kc(e){return new Array(e.length)}function Zc(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function Gc(e,t,n,r,i,o){for(var a,s=0,l=t.length,c=o.length;s<c;++s)(a=t[s])?(a.__data__=o[s],r[s]=a):n[s]=new Zc(e,o[s]);for(;s<l;++s)(a=t[s])&&(i[s]=a)}function $c(e,t,n,r,i,o,a){var s,l,c,u={},d=t.length,h=o.length,p=new Array(d);for(s=0;s<d;++s)(l=t[s])&&(p[s]=c="$"+a.call(l,l.__data__,s,t),c in u?i[s]=l:u[c]=l);for(s=0;s<h;++s)(l=u[c="$"+a.call(e,o[s],s,o)])?(r[s]=l,l.__data__=o[s],u[c]=null):n[s]=new Zc(e,o[s]);for(s=0;s<d;++s)(l=t[s])&&u[p[s]]===l&&(i[s]=l)}function Qc(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Jc(e){return function(){this.removeAttribute(e)}}function eu(e){return function(){this.removeAttributeNS(e.space,e.local)}}function tu(e,t){return function(){this.setAttribute(e,t)}}function nu(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function ru(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function iu(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 ou(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function au(e){return function(){this.style.removeProperty(e)}}function su(e,t,n){return function(){this.style.setProperty(e,t,n)}}function lu(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function cu(e,t){return e.style.getPropertyValue(t)||ou(e).getComputedStyle(e,null).getPropertyValue(t)}function uu(e){return function(){delete this[e]}}function du(e,t){return function(){this[e]=t}}function hu(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}function pu(e){return e.trim().split(/^|\s+/)}function fu(e){return e.classList||new gu(e)}function gu(e){this._node=e,this._names=pu(e.getAttribute("class")||"")}function vu(e,t){for(var n=fu(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function mu(e,t){for(var n=fu(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function _u(e){return function(){vu(this,e)}}function yu(e){return function(){mu(this,e)}}function xu(e,t){return function(){(t.apply(this,arguments)?vu:mu)(this,e)}}function bu(){this.textContent=""}function Cu(e){return function(){this.textContent=e}}function Su(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}function Eu(){this.innerHTML=""}function ku(e){return function(){this.innerHTML=e}}function Lu(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}function wu(){this.nextSibling&&this.parentNode.appendChild(this)}function Au(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Du(){return null}function Tu(){var e=this.parentNode;e&&e.removeChild(this)}function Mu(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}function Pu(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}Zc.prototype={constructor:Zc,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)}},gu.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 Fu={},Iu=null;function Ou(e,t,n){return e=Hu(e,t,n),function(t){var n=t.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||e.call(this,t)}}function Hu(e,t,n){return function(r){var i=Iu;Iu=r;try{e.call(this,this.__data__,t,n)}finally{Iu=i}}}function Nu(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 Ru(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 Bu(e,t,n){var r=Fu.hasOwnProperty(e.type)?Ou:Hu;return function(i,o,a){var s,l=this.__on,c=r(t,o,a);if(l)for(var u=0,d=l.length;u<d;++u)if((s=l[u]).type===e.type&&s.name===e.name)return this.removeEventListener(s.type,s.listener,s.capture),this.addEventListener(s.type,s.listener=c,s.capture=n),void(s.value=t);this.addEventListener(e.type,c,n),s={type:e.type,name:e.name,value:t,listener:c,capture:n},l?l.push(s):this.__on=[s]}}function Vu(e,t,n){var r=ou(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 zu(e,t){return function(){return Vu(this,e,t)}}function Wu(e,t){return function(){return Vu(this,e,t.apply(this,arguments))}}"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(Fu={mouseenter:"mouseover",mouseleave:"mouseout"}));var Uu=[null];function Yu(e,t){this._groups=e,this._parents=t}function ju(e){return"string"==typeof e?new Yu([[document.querySelector(e)]],[document.documentElement]):new Yu([[e]],Uu)}Yu.prototype=function(){return new Yu([[document.documentElement]],Uu)}.prototype={constructor:Yu,select:function(e){"function"!=typeof e&&(e=Wc(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,c=r[i]=new Array(l),u=0;u<l;++u)(o=s[u])&&(a=e.call(o,o.__data__,u,s))&&("__data__"in o&&(a.__data__=o.__data__),c[u]=a);return new Yu(r,this._parents)},selectAll:function(e){"function"!=typeof e&&(e=function(e){return null==e?Uc: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,c=0;c<l;++c)(a=s[c])&&(r.push(e.call(a,a.__data__,c,s)),i.push(a));return new Yu(r,i)},filter:function(e){"function"!=typeof e&&(e=Xc(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]=[],c=0;c<s;++c)(o=a[c])&&e.call(o,o.__data__,c,a)&&l.push(o);return new Yu(r,this._parents)},data:function(e,t){if(!e)return f=new Array(this.size()),u=-1,this.each((function(e){f[++u]=e})),f;var n,r=t?$c:Gc,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),c=new Array(a),u=0;u<a;++u){var d=i[u],h=o[u],p=h.length,f=e.call(d,d&&d.__data__,u,i),g=f.length,v=l[u]=new Array(g),m=s[u]=new Array(g);r(d,h,v,m,c[u]=new Array(p),f,t);for(var _,y,x=0,b=0;x<g;++x)if(_=v[x]){for(x>=b&&(b=x+1);!(y=m[b])&&++b<g;);_._next=y||null}}return(s=new Yu(s,i))._enter=l,s._exit=c,s},enter:function(){return new Yu(this._enter||this._groups.map(Kc),this._parents)},exit:function(){return new Yu(this._exit||this._groups.map(Kc),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,c=t[s],u=n[s],d=c.length,h=a[s]=new Array(d),p=0;p<d;++p)(l=c[p]||u[p])&&(h[p]=l);for(;s<r;++s)a[s]=t[s];return new Yu(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=Qc);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,c=i[o]=new Array(l),u=0;u<l;++u)(a=s[u])&&(c[u]=a);c.sort(t)}return new Yu(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=Nc(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?eu:Jc:"function"==typeof t?n.local?iu:ru:n.local?nu:tu)(n,t))},style:function(e,t,n){return arguments.length>1?this.each((null==t?au:"function"==typeof t?lu:su)(e,t,null==n?"":n)):cu(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?uu:"function"==typeof t?hu:du)(e,t)):this.node()[e]},classed:function(e,t){var n=pu(e+"");if(arguments.length<2){for(var r=fu(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"==typeof t?xu:t?_u:yu)(n,t))},text:function(e){return arguments.length?this.each(null==e?bu:("function"==typeof e?Su:Cu)(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?Eu:("function"==typeof e?Lu:ku)(e)):this.node().innerHTML},raise:function(){return this.each(wu)},lower:function(){return this.each(Au)},append:function(e){var t="function"==typeof e?e:Vc(e);return this.select((function(){return this.appendChild(t.apply(this,arguments))}))},insert:function(e,t){var n="function"==typeof e?e:Vc(e),r=null==t?Du:"function"==typeof t?t:Wc(t);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each(Tu)},clone:function(e){return this.select(e?Pu:Mu)},datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},on:function(e,t,n){var r,i,o=Nu(e+""),a=o.length;if(!(arguments.length<2)){for(s=t?Bu:Ru,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,c=0,u=s.length;c<u;++c)for(r=0,l=s[c];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?Wu:zu)(e,t))}};var qu,Xu,Ku,Zu,Gu=0;function $u(){this._="@"+(++Gu).toString(36)}function Qu(e){var t=e.domainNRangeValues,n=e.showRoundOffXTickValues,r=void 0!==n&&n,i=e.xAxistickSize,o=void 0===i?6:i,a=e.tickPadding,s=void 0===a?10:a,l=e.xAxisCount,c=void 0===l?6:l,u=e.xAxisElement,d=Ss().domain([t.dStartValue,t.dEndValue]).range([t.rStartValue,t.rEndValue]);r&&d.nice();var h=Po(d).tickSize(o).tickPadding(s).ticks(c).tickSizeOuter(0);return u&&ju(u).call(h).selectAll("text").attr("aria-hidden","true"),d}function Ju(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 ed(e){var t=e.tooltipCls,n=e.xAxis,r=e.id;if(null===n)return null;for(var i=ju("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 c=o[l].dataset&&Object.values(o[l].dataset)[0];s.push(c)}var u=n.selectAll(".tick")._groups[0],d=u&&Object.keys(u).length,h=function(e){ju(u[e]).on("mouseover",(function(t){i.style("opacity",.9),i.html(s[e]).style("left",Iu.pageX+"px").style("top",Iu.pageY-28+"px")})).on("mouseout",(function(e){i.style("opacity",0)}))};for(l=0;l<d;l++)h(l)}function td(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 nd(e,t,n,r,i,o,s,l){var c;if(o===Ku.NumericAxis)switch(r){case Xu.AreaChart:case Xu.LineChart:c=function(e,t,n,r){var i=Bo(e,(function(e){return Bo(e.data,(function(e){return e.x}))})),o=Ro(e,(function(e){return Ro(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 Xu.VerticalStackedBarChart:c=function(e,t,n,r,i){var o=Bo(e,(function(e){return e.x})),a=Ro(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 Xu.VerticalBarChart:c=function(e,t,n,r,i){var o=Ro(e,(function(e){return e.x})),a=Bo(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:c={dStartValue:0,dEndValue:0,rStartValue:0,rEndValue:0}}else if(o===Ku.DateAxis)switch(r){case Xu.AreaChart:case Xu.LineChart:c=function(e,t,n,r,i){void 0===i&&(i=[]);var o=Bo(e,(function(e){return Bo(e.data,(function(e){return e.x}))})),s=Ro(e,(function(e){return Ro(e.data,(function(e){return e.x}))})),l=Bo(a(i,[o])),c=Ro(a(i,[s])),u=t.left,d=n-t.right;return r?{dStartValue:c,dEndValue:l,rStartValue:u,rEndValue:d}:{dStartValue:l,dEndValue:c,rStartValue:u,rEndValue:d}}(e,t,n,i,l);break;default:c={dStartValue:0,dEndValue:0,rStartValue:0,rEndValue:0}}else switch(r){case Xu.VerticalStackedBarChart:case Xu.GroupedVerticalBarChart:case Xu.VerticalBarChart:case Xu.HeatMapChart:c=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:c={dStartValue:0,dEndValue:0,rStartValue:0,rEndValue:0}}return c}function rd(e,t){var n,r,i;switch(t){case Xu.AreaChart:case Xu.LineChart:n=function(e){var t=Ro(e,(function(e){return Ro(e.data,(function(e){return e.y}))}));return{startValue:Bo(e,(function(e){return Bo(e.data,(function(e){return e.y}))})),endValue:t}}(e);break;case Xu.VerticalStackedBarChart:i=Ro(r=e,(function(e){return e.y})),n={startValue:Bo(r,(function(e){return e.y})),endValue:i};break;case Xu.VerticalBarChart:n=function(e){var t=Ro(e,(function(e){return e.y}));return{startValue:Bo(e,(function(e){return e.y})),endValue:t}}(e);break;default:n={startValue:0,endValue:0}}return n}$u.prototype=function(){return new $u}.prototype={constructor:$u,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"}(Xu||(Xu={})),function(e){e[e.NumericAxis=0]="NumericAxis",e[e.DateAxis=1]="DateAxis",e[e.StringAxis=2]="StringAxis"}(Ku||(Ku={})),function(e){e[e.NumericAxis=0]="NumericAxis",e[e.DateAxis=1]="DateAxis",e[e.StringAxis=2]="StringAxis"}(Zu||(Zu={}));var id,od,ad=function(e,t){if(t)switch(typeof e){case"string":return Ku.StringAxis;case"number":return Ku.NumericAxis;default:return Ku.DateAxis}else switch(typeof e){case"string":return Zu.StringAxis;case"number":return Zu.NumericAxis;default:return Zu.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"}(id||(id={})),function(e){e[e.dottedLine=0]="dottedLine"}(od||(od={}));var sd,ld=((qu={})[id.circle]={widthRatio:1},qu[id.square]={widthRatio:1},qu[id.triangle]={widthRatio:1},qu[id.diamond]={widthRatio:1},qu[id.pyramid]={widthRatio:1},qu[id.hexagon]={widthRatio:2},qu[id.pentagon]={widthRatio:1.168},qu[id.octagon]={widthRatio:2.414},qu),cd=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}},ud=((sd={})[""+id[id.circle]]="M1 6 A5 5 0 1 0 12 6 M1 6 A5 5 0 0 1 12 6",sd[""+id[id.square]]="M1 1 L12 1 L12 12 L1 12 L1 1 Z",sd[""+id[id.triangle]]="M6 10L8.74228e-07 -1.04907e-06L12 0L6 10Z",sd[""+id[id.pyramid]]="M6 10L8.74228e-07 -1.04907e-06L12 0L6 10Z",sd[""+id[id.diamond]]="M2 2 L10 2 L10 10 L2 10 L2 2 Z",sd[""+id[id.hexagon]]="M9 0H3L0 5L3 10H9L12 5L9 0Z",sd[""+id[id.pentagon]]="M6.06061 0L0 4.21277L2.30303 11H9.69697L12 4.21277L6.06061 0Z",sd[""+id[id.octagon]]="M7.08333 0H2.91667L0 2.91667V7.08333L2.91667 10H7.08333L10 7.08333V2.91667L7.08333 0Z",sd[""+od[od.dottedLine]]="M0 6 H3 M5 6 H8 M10 6 H13",sd),dd=function(e){var t=e.svgProps,n=e.pathProps,r=e.shape,o=e.classNameForNonSvg;return-1===Object.keys(ud).indexOf(r)?s.createElement("div",{className:o}):s.createElement("svg",i({width:14,height:14,viewBox:"-1 -1 14 14"},t,{transform:"rotate("+(r===id[id.diamond]?45:r===id[id.triangle]?180:0)+", 0, 0)"}),s.createElement("path",i({d:ud[r]},n)))},hd=le(),pd=b(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;return s.createElement(bo,i({},a&&{role:"listbox","aria-label":"Legends"},r,{items:e.primary,overflowItems:e.overflow,onRenderItem:n._renderButton,onRenderOverflowButton:n._renderOverflowItems,styles:{root:{justifyContent:n.props.centerLegends?"center":"unset",flexWrap:"wrap"}}}))},n._onReduceData=function(e){if(0!==e.primary.length){var t=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(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(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,c=t.theme,u=[],d=hd(l,{theme:c,className:a});return e.renderData.forEach((function(e,t){var r=n._renderButton(e,t,!0);u.push(r)})),s.createElement(Bi,i({},o&&{role:"listbox"},{direction:hi.vertical},n.props.focusZonePropsInHoverCard,{className:d.hoverCardRoot}),u)},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,c=l.theme,u=l.className,d=l.styles,h=l.overflowText,p=hd(d,{theme:c,className:u}),f={onRenderPlainCard:n._onRenderCompactCard,renderData:a},g=h||"more";return s.createElement(ro,{type:wi.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},c=n._getColor(l.title,l.color),u=n.props,d=u.theme,h=u.className,p=u.styles,f=hd(p,{theme:d,className:h,colorOnSelectedState:c,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,c);return s.createElement("button",i({},a&&{"aria-selected":n.state.selectedLegend===l.title,role:"option","aria-label":l.title,"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=hd(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(po,{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(dd,{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),(function(e){var t,n,r=e.className,o=e.theme,a=e.isLineLegendInBarChart,s=void 0!==a&&a,l=o,c=l.palette,u=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:[On(o,d),{display:"flex",alignItems:"center",cursor:"pointer",border:"none",padding:"8px",background:"none"}],rect:{selectors:(t={},t[Tn]={content:"linear-gradient(to right, "+e.colorOnSelectedState+", "+e.colorOnSelectedState+")",opacity:e.colorOnSelectedState===c.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===c.white?"0.6":e.opacity?e.opacity:"",selectors:(n={},n[Tn]={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({},u.small),{lineHeight:"16px",color:null==o?void 0:o.semanticColors.bodyText,opacity:e.colorOnSelectedState===c.white?"0.6":""}),hoverChange:{width:"12px",height:"12px",backgroundColor:"white",marginRight:"8px",border:"1px solid",borderColor:e.borderColor?e.borderColor:c.black},overflowIndicationTextStyle:[On(o,d),i(i({cursor:"pointer",color:null==o?void 0:o.semanticColors.bodyText},u.small),{lineHeight:"16px",padding:"8px"})],hoverCardRoot:{padding:"8px"},subComponentStyles:{hoverCardStyles:{host:[On(o,d)]}}}}));function fd(e){return function(){return e}}function gd(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function vd(e){return e}var md=Math.abs,_d=Math.atan2,yd=Math.cos,xd=Math.max,bd=Math.min,Cd=Math.sin,Sd=Math.sqrt,Ed=1e-12,kd=Math.PI,Ld=kd/2,wd=2*kd;function Ad(e){return e>1?0:e<-1?kd:Math.acos(e)}function Dd(e){return e>=1?Ld:e<=-1?-Ld:Math.asin(e)}function Td(){var e=vd,t=gd,n=null,r=fd(0),i=fd(wd),o=fd(0);function a(a){var s,l,c,u,d,h=a.length,p=0,f=new Array(h),g=new Array(h),v=+r.apply(this,arguments),m=Math.min(wd,Math.max(-wd,i.apply(this,arguments)-v)),_=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,c=p?(m-h*y)/p:0;s<h;++s,v=u)l=f[s],u=v+((d=g[l])>0?d*c:0)+y,g[l]={data:a[l],index:s,value:d,startAngle:v,endAngle:u,padAngle:_};return g}return a.value=function(t){return arguments.length?(e="function"==typeof t?t:fd(+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:fd(+e),a):r},a.endAngle=function(e){return arguments.length?(i="function"==typeof e?e:fd(+e),a):i},a.padAngle=function(e){return arguments.length?(o="function"==typeof e?e:fd(+e),a):o},a}var Md=Math.PI,Pd=2*Md,Fd=1e-6,Id=Pd-Fd;function Od(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function Hd(){return new Od}Od.prototype=Hd.prototype={constructor:Od,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,c=o-e,u=a-t,d=c*c+u*u;if(i<0)throw new Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(d>Fd)if(Math.abs(u*s-l*c)>Fd&&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),_=i*Math.tan((Md-Math.acos((f+d-g)/(2*v*m)))/2),y=_/m,x=_/v;Math.abs(y-1)>Fd&&(this._+="L"+(e+y*c)+","+(t+y*u)),this._+="A"+i+","+i+",0,0,"+ +(u*h>c*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,c=t+s,u=1^o,d=o?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+l+","+c:(Math.abs(this._x1-l)>Fd||Math.abs(this._y1-c)>Fd)&&(this._+="L"+l+","+c),n&&(d<0&&(d=d%Pd+Pd),d>Id?this._+="A"+n+","+n+",0,1,"+u+","+(e-a)+","+(t-s)+"A"+n+","+n+",0,1,"+u+","+(this._x1=l)+","+(this._y1=c):d>Fd&&(this._+="A"+n+","+n+",0,"+ +(d>=Md)+","+u+","+(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 Nd=Hd;function Rd(e){return e.innerRadius}function Bd(e){return e.outerRadius}function Vd(e){return e.startAngle}function zd(e){return e.endAngle}function Wd(e){return e&&e.padAngle}function Ud(e,t,n,r,i,o,a,s){var l=n-e,c=r-t,u=a-i,d=s-o,h=d*l-u*c;if(!(h*h<Ed))return[e+(h=(u*(t-o)-d*(e-i))/h)*l,t+h*c]}function Yd(e,t,n,r,i,o,a){var s=e-n,l=t-r,c=(a?o:-o)/Sd(s*s+l*l),u=c*l,d=-c*s,h=e+u,p=t+d,f=n+u,g=r+d,v=(h+f)/2,m=(p+g)/2,_=f-h,y=g-p,x=_*_+y*y,b=i-o,C=h*g-f*p,S=(y<0?-1:1)*Sd(xd(0,b*b*x-C*C)),E=(C*y-_*S)/x,k=(-C*_-y*S)/x,L=(C*y+_*S)/x,w=(-C*_+y*S)/x,A=E-v,D=k-m,T=L-v,M=w-m;return A*A+D*D>T*T+M*M&&(E=L,k=w),{cx:E,cy:k,x01:-u,y01:-d,x11:E*(i/b-1),y11:k*(i/b-1)}}function jd(){var e=Rd,t=Bd,n=fd(0),r=null,i=Vd,o=zd,a=Wd,s=null;function l(){var l,c,u=+e.apply(this,arguments),d=+t.apply(this,arguments),h=i.apply(this,arguments)-Ld,p=o.apply(this,arguments)-Ld,f=md(p-h),g=p>h;if(s||(s=l=Nd()),d<u&&(c=d,d=u,u=c),d>Ed)if(f>wd-Ed)s.moveTo(d*yd(h),d*Cd(h)),s.arc(0,0,d,h,p,!g),u>Ed&&(s.moveTo(u*yd(p),u*Cd(p)),s.arc(0,0,u,p,h,g));else{var v,m,_=h,y=p,x=h,b=p,C=f,S=f,E=a.apply(this,arguments)/2,k=E>Ed&&(r?+r.apply(this,arguments):Sd(u*u+d*d)),L=bd(md(d-u)/2,+n.apply(this,arguments)),w=L,A=L;if(k>Ed){var D=Dd(k/u*Cd(E)),T=Dd(k/d*Cd(E));(C-=2*D)>Ed?(x+=D*=g?1:-1,b-=D):(C=0,x=b=(h+p)/2),(S-=2*T)>Ed?(_+=T*=g?1:-1,y-=T):(S=0,_=y=(h+p)/2)}var M=d*yd(_),P=d*Cd(_),F=u*yd(b),I=u*Cd(b);if(L>Ed){var O,H=d*yd(y),N=d*Cd(y),R=u*yd(x),B=u*Cd(x);if(f<kd&&(O=Ud(M,P,R,B,H,N,F,I))){var V=M-O[0],z=P-O[1],W=H-O[0],U=N-O[1],Y=1/Cd(Ad((V*W+z*U)/(Sd(V*V+z*z)*Sd(W*W+U*U)))/2),j=Sd(O[0]*O[0]+O[1]*O[1]);w=bd(L,(u-j)/(Y-1)),A=bd(L,(d-j)/(Y+1))}}S>Ed?A>Ed?(v=Yd(R,B,M,P,d,A,g),m=Yd(H,N,F,I,d,A,g),s.moveTo(v.cx+v.x01,v.cy+v.y01),A<L?s.arc(v.cx,v.cy,A,_d(v.y01,v.x01),_d(m.y01,m.x01),!g):(s.arc(v.cx,v.cy,A,_d(v.y01,v.x01),_d(v.y11,v.x11),!g),s.arc(0,0,d,_d(v.cy+v.y11,v.cx+v.x11),_d(m.cy+m.y11,m.cx+m.x11),!g),s.arc(m.cx,m.cy,A,_d(m.y11,m.x11),_d(m.y01,m.x01),!g))):(s.moveTo(M,P),s.arc(0,0,d,_,y,!g)):s.moveTo(M,P),u>Ed&&C>Ed?w>Ed?(v=Yd(F,I,H,N,u,-w,g),m=Yd(M,P,R,B,u,-w,g),s.lineTo(v.cx+v.x01,v.cy+v.y01),w<L?s.arc(v.cx,v.cy,w,_d(v.y01,v.x01),_d(m.y01,m.x01),!g):(s.arc(v.cx,v.cy,w,_d(v.y01,v.x01),_d(v.y11,v.x11),!g),s.arc(0,0,u,_d(v.cy+v.y11,v.cx+v.x11),_d(m.cy+m.y11,m.cx+m.x11),g),s.arc(m.cx,m.cy,w,_d(m.y11,m.x11),_d(m.y01,m.x01),!g))):s.arc(0,0,u,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-kd/2;return[yd(r)*n,Cd(r)*n]},l.innerRadius=function(t){return arguments.length?(e="function"==typeof t?t:fd(+t),l):e},l.outerRadius=function(e){return arguments.length?(t="function"==typeof e?e:fd(+e),l):t},l.cornerRadius=function(e){return arguments.length?(n="function"==typeof e?e:fd(+e),l):n},l.padRadius=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:fd(+e),l):r},l.startAngle=function(e){return arguments.length?(i="function"==typeof e?e:fd(+e),l):i},l.endAngle=function(e){return arguments.length?(o="function"==typeof e?e:fd(+e),l):o},l.padAngle=function(e){return arguments.length?(a="function"==typeof e?e:fd(+e),l):a},l.context=function(e){return arguments.length?(s=null==e?null:e,l):s},l}var qd=function(e){var t=e.color,n=e.href,r=e.theme;return{root:{fill:t,cursor:n?"pointer":"default",stroke:An.white,outline:"transparent",selectors:{"::-moz-focus-inner":{border:"0"}}},focusRing:{stroke:r.semanticColors.focusBorder,strokeWidth:4},insideDonutString:{fontSize:En.large}}},Xd=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 Kd(e),null},t.prototype.updateChart=function(e){Kd(e)},t.prototype.render=function(){var e,t=this.props,n=t.arc,r=t.href,i=t.focusedArcId,o=le()(qd,{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._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:jd()},t}(s.Component);function Kd(e){e.arc.innerRadius(e.innerRadius),e.arc.outerRadius(e.outerRadius)}var Zd=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(Xd,{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=Td().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:Td().sort(null).value((function(e){return e.data})).padAngle(.02)},t}(s.Component),Gd=le(),$d=b(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._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.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=this,t=this.props,n=t.data,r=t.hideLegend,o=void 0!==r&&r,a=this.props.theme.palette;this._classNames=Gd(this.props.styles,{theme:this.props.theme,width:this.state._width,height:this.state._height,color:this.state.color,className:this.props.className});var l=this._createLegends(n,a),c=Math.min(this.state._width,this.state._height)/2,u=n&&n.chartData;return s.createElement("div",{className:this._classNames.root,"aria-label":null==n?void 0:n.chartTitle,ref:function(t){return e._rootElem=t}},s.createElement(Bi,{direction:hi.horizontal,isCircularNavigation:!0},s.createElement("div",null,s.createElement("svg",{className:this._classNames.chart,ref:function(t){return e._setViewBox(t)}},s.createElement(Zd,{width:this.state._width,height:this.state._height,outerRadius:c,innerRadius:this.props.innerRadius,data:u,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._valueInsideDonut(this.props.valueInsideDonut,u),theme:this.props.theme})))),s.createElement(di,i({target:this._currentHoverElement,alignTargetEdge:!0,isBeakVisible:!1,directionalHint:6,gapSpace:15,hidden:!(!this.props.hideTooltip&&this.state.showHover),id:this._calloutId,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0},this.props.calloutProps,cd(this.state.callOutAccessibilityData,"text",!1)),this.props.onRenderCalloutPerDataPoint?this.props.onRenderCalloutPerDataPoint(this.state.dataPointCalloutProps):s.createElement(vi,{Legend:this.state.xCalloutValue?this.state.xCalloutValue:this.state.legend,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.value,color:this.state.color})),!o&&s.createElement("div",{className:this._classNames.legendContainer},l))},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(pd,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({showHover:!1,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.defaultProps={innerRadius:0},t}(s.Component),(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"}}})),Qd=le(),Jd=function(e){function t(t){var n,r,o,a,l,c,u,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},cd(e.xAxisCalloutAccessibilityData)),e.hoverXValue)),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({},cd(e.callOutAccessibilityData),{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!==(c=null===(l=v.props.margins)||void 0===l?void 0:l.left)&&void 0!==c?c:40:null!==(d=null===(u=v.props.margins)||void 0===u?void 0:u.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){e.height===this.props.height&&e.width===this.props.width||this._fitParentContainer()},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,c=t.svgProps;this.props.parentRef&&this._fitParentContainer(),this.props.getmargins&&this.props.getmargins(this.margins);var u,d,h={domainNRangeValues:nd(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},p={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:rd(r,o),yAxisPadding:this.props.yAxisPadding};switch(this.props.xAxisType){case Ku.NumericAxis:u=Qu(h);break;case Ku.DateAxis:u=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,c=void 0===l?6:l,u=Ic().domain([n.dStartValue,n.dEndValue]).range([n.rStartValue,n.rEndValue]),d=Po(u).tickSize(s).tickPadding(o).ticks(c);return t.tickValues&&d.tickValues(t.tickValues),t.tickFormat&&d.tickFormat(vl(t.tickFormat)),r&&ju(r).call(d).selectAll("text").attr("aria-hidden","true"),u}(h,this.props.tickParams);break;case Ku.StringAxis:u=function(e,t,n){var r=e.domainNRangeValues,i=e.xAxisCount,o=void 0===i?6:i,a=e.xAxistickSize,s=void 0===a?6:a,l=e.tickPadding,c=void 0===l?10:l,u=e.xAxisPadding,d=void 0===u?.1:u,h=la().domain(n).range([r.rStartValue,r.rEndValue]).padding(d),p=Po(h).tickSize(s).tickPadding(c).ticks(o).tickFormat((function(e,t){return n[t]}));return e.xAxisElement&&ju(e.xAxisElement).call(p).selectAll("text").attr("aria-hidden","true"),h}(h,this.props.tickParams,this.props.datasetForXAxisDomain);break;default:u=Qu(h)}if(this.props.wrapXAxisLables||this.props.showXAxisLablesTooltip){var f={node:this.xAxisElement,xAxis:u,showXAxisLablesTooltip:this.props.showXAxisLablesTooltip||!1,noOfCharsToTruncate:this.props.noOfCharsToTruncate||4},g=u&&function(e){var t=e.node,n=e.xAxis,r=e.noOfCharsToTruncate,i=e.showXAxisLablesTooltip;if(null!==t){var o=ju(t).call(n),a=0,s=[];return o.selectAll(".tick text").each((function(){var e=ju(this),t=e.text(),n=e.text().slice(0,r)+"...",l=e.text().length,c=e.text().split(/\s+/).reverse();s.push(c.length);var u="",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(;u=c.pop();)d.push(u),g.text(d.join(" ")),g.node().getComputedTextLength()>10&&d.length>1&&(d.pop(),g.text(d.join(" ")),d=[u],g=e.append("tspan").attr("id","WordBreakId").attr("x",0).attr("y",p).attr("dy",1.1*++h+f+"em").text(u));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 _=4;v<=2?_=1:v>2&&v<=6?_=2:v>6&&v<=9&&(_=3),a=(v-_)*m}})),a>0?a:0}}(f);this.state.isRemoveValCalculated&&this.state._removalValueForTextTuncate!==g&&this.setState({_removalValueForTextTuncate:g,isRemoveValCalculated:!1})}d=this.props.yAxisType&&this.props.yAxisType===Zu.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,c=e.yAxisPadding,u=void 0===c?0:c,d=la().domain(t).range([r-a.bottom,a.top]).padding(u),h=(n?Mo(d):Fo(d)).tickPadding(o).tickValues(t).tickSize(0);return s&&h.tickFormat(s),l&&ju(l).call(h).selectAll("text"),d}(p,this.props.stringDatasetForYAxisDomain,this._isRtl):function(e,t){var n=e.yMinMaxValues,r=void 0===n?{startValue:0,endValue:0}:n,i=e.yAxisElement,o=void 0===i?null:i,a=e.yMaxValue,s=void 0===a?0:a,l=e.yMinValue,c=void 0===l?0:l,u=e.containerHeight,d=e.containerWidth,h=e.margins,p=e.tickPadding,f=void 0===p?12:p,g=e.maxOfYVal,v=void 0===g?0:g,m=e.yAxisTickFormat,_=e.yAxisTickCount,y=void 0===_?4:_,x=e.eventAnnotationProps,b=e.eventLabelHeight,C=v||r.endValue,S=C>s?C:s,E=r.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}(S,E,y),L=Ss().domain([E,k[k.length-1]]).range([u-h.bottom,h.top+(x?b:0)]),w=(t?Mo(L):Fo(L)).tickPadding(f).tickValues(k).tickSizeInner(-(d-h.left-h.right));return m?w.tickFormat(m):w.tickFormat(_s(".2~s")),o&&ju(o).call(w).selectAll("text").attr("aria-hidden","true"),L}(p,this._isRtl),this._getData(u,d),this._classNames=Qd(this.props.styles,{theme:this.props.theme,width:this.state._width,height:this.state._height,className:this.props.className,isRtl:this._isRtl});var v,m={width:this.state.containerWidth,height:this.state.containerHeight},_=this.props.children(i(i({},this.state),{xScale:u,yScale:d}));return v=this.props.focusZoneDirection===hi.vertical||this.props.focusZoneDirection?this.props.focusZoneDirection:hi.horizontal,s.createElement("div",{id:this.idForGraph,className:this._classNames.root,role:"presentation",ref:function(t){return e.chartContainer=t}},s.createElement(Bi,i({direction:v},l),s.createElement("svg",i({width:m.width,height:m.height,"aria-label":this.props.chartTitle,style:{display:"block"}},c),s.createElement("g",{ref:function(t){e.xAxisElement=t},id:"xAxisGElement"+this.idForGraph,transform:"translate(0, "+(m.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?m.width-this.margins.right:this.margins.left)+", 0)",className:this._classNames.yAxis}),_)),!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(di,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(vi,i({XValue:n.XValue,Legend:n.legend,YValue:n.YValue,color:n.color},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=Qd(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});if(e.yAxisCalloutData&&"string"!=typeof e.yAxisCalloutData){var l=e.yAxisCalloutData;return s.createElement("div",{style:i},s.createElement("div",{className:"ms-fontWeight-semibold",style:{fontSize:"12pt"}},e.legend," (",e.y,")"),Object.keys(l).map((function(e){return s.createElement("div",{key:e,className:a.calloutBlockContainer},s.createElement("div",{className:a.calloutlegendText}," ",e),s.createElement("div",{className:a.calloutContentY},l[e]))})))}return s.createElement("div",{style:n?i:{}},n&&s.createElement("div",{className:"ms-fontWeight-semibold",style:{fontSize:"12pt"}},e.legend," (",e.y,")"),s.createElement("div",{id:t+"_"+e.y,className:a.calloutBlockContainer},o&&s.createElement(dd,{svgProps:{className:a.shapeStyles},pathProps:{fill:e.color},shape:id[e.index%Object.keys(ld).length]}),s.createElement("div",null,s.createElement("div",{className:a.calloutlegendText}," ",e.legend),s.createElement("div",{className:a.calloutContentY},e.yAxisCalloutData?e.yAxisCalloutData:e.y||e.data))))},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),eh=function(){var e,t=u();return!!(null===(e=null==t?void 0:t.navigator)||void 0===e?void 0:e.userAgent)&&t.navigator.userAgent.indexOf("rv:11.0")>-1}(),th=b(Jd,(function(e){var t,n,r,o,a=e.className,s=e.theme,l=e.isRtl,c=e.shouldHighlight,u=e.href,d=e.lineColor,h=void 0===d?"transparent":d,p=e.toDrawShape,f=s.fonts;return{root:[s.fonts.medium,{display:"flex",width:"100%",height:"100%",flexDirection:"column",overflow:"hidden"},a],xAxis:{selectors:{text:[s.fonts.tiny,{fill:s.semanticColors.bodyText,selectors:(t={},t[Mn]={fill:"rgb(179, 179, 179)"},t)}],line:{opacity:.2,stroke:s.semanticColors.bodyText,width:"1px",selectors:(n={},n[Mn]={opacity:.1,stroke:"rgb(179, 179, 179)"},n)},path:{display:"none"}}},yAxis:{selectors:{text:[s.fonts.tiny,{fill:s.semanticColors.bodyText,selectors:(r={},r[Mn]={fill:"rgb(179, 179, 179)"},r)}],path:{display:"none"},line:{opacity:.2,stroke:s.semanticColors.bodyText,selectors:(o={},o[Mn]={opacity:.1,stroke:"rgb(179, 179, 179)"},o)},g:[l&&!eh&&{textAnchor:"end"}]}},opacityChangeOnHover:{opacity:c?"":"0.1",cursor:u?"pointer":"default"},legendContainer:[{marginTop:"8px",marginLeft:"20px"}],calloutContentRoot:[{display:"grid",overflow:"hidden",padding:"11px 16px 10px 16px",backgroundColor:s.semanticColors.bodyBackground,backgroundBlendMode:"normal, luminosity"}],calloutDateTimeContainer:{display:"flex",flexDirection:"row",justifyContent:"space-between"},calloutContentX:[i(i({},f.small),{lineHeight:"16px",opacity:"0.8",color:s.semanticColors.bodySubtext})],calloutBlockContainer:[s.fonts.mediumPlus,{marginTop:"13px",color:s.semanticColors.bodyText},!p&&{borderLeft:"4px solid "+h,paddingLeft:"8px"},p&&{display:"flex"}],shapeStyles:{marginRight:"8px"},calloutlegendText:i(i({},f.small),{lineHeight:"16px",color:s.semanticColors.bodySubtext}),calloutContentY:[i(i({},f.mediumPlus),{fontWeight:"bold",lineHeight:"22px"})],descriptionMessage:[s.fonts.small,{color:s.semanticColors.bodyText,marginTop:"10px",paddingTop:"10px",borderTop:"1px solid "+s.semanticColors.menuDivider}]}})),nh=Un((function(e){return Un((function(t){var n=Un((function(e){return function(n){return t(n,e)}}));return function(r,i){return e(r,i?n(i):t)}}))}));function rh(e,t){return nh(e)(t)}var ih={top:-1,bottom:-1,left:-1,right:-1,width:0,height:0},oh=function(e){return e.getBoundingClientRect()},ah=oh,sh=oh,lh=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,c=e.page,u=c.items,d=void 0===u?[]:u,h=c.startIndex,p=o(e,["page"]),f=void 0===l?"listitem":"presentation",g=[],v=0;v<d.length;v++){var m=h+v,_=d[v],y=n.props.getKey?n.props.getKey(_,m):_&&_.key;null==y&&(y=m),g.push(s.createElement("div",{role:f,className:"ms-List-cell",key:y,"data-list-index":m,"data-automationid":"ListCell"},a&&a(_,m,n.props.ignoreScrollingState?void 0:n.state.isScrolling)))}return s.createElement("div",i({},p),g)},yi(n),n.state={pages:[],isScrolling:!1,getDerivedStateFromProps:n._getDerivedStateFromProps},n._async=new xt(n),n._events=new Ui(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 c=this._getPageSpecification(l,o),u=c.height;if(s=c.itemCount,l<=e&&l+s>e){if(t&&this._scrollElement){for(var d=sh(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+=u}},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=Xe(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(){var e=this.props,t=this.state;e.getPageHeight?this._onAsyncIdle():this._updatePageMeasurements(t.pages)?(this._materializedRect=null,this._hasCompletedFirstRender?this._onAsyncScroll():(this._hasCompletedFirstRender=!0,this.setState(this._updatePages(e,t)))):this._onAsyncIdle(),e.onPagesUpdated&&e.onPagesUpdated(t.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.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,c=[],u=ze(this.props,Ve),d=0,h=l;d<h.length;d++){var p=h[d];c.push(this._renderPage(p))}var f=o?rh(o,this._onRenderSurface):this._onRenderSurface;return(a?rh(a,this._onRenderRoot):this._onRenderRoot)({rootRef:this._root,pages:l,surfaceElement:f({surfaceRef:this._surface,pages:l,pageElements:c,divProps:{role:"presentation",className:"ms-List-surface"}}),divProps:i(i({},u),{className:We("ms-List",t),role:c.length>0?r: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=_e(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({},t),n)},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++)(u=s[a]).items&&(o[u.startIndex]=u);for(var l=0,c=t;l<c.length;l++){var u;(u=c[l]).items&&(o[u.startIndex]?delete o[u.startIndex]:this._onPageAdded(u))}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({},ih),l=[],c=1,u=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=_._getPageSpecification(e,v),i=n.height,a=n.data,m=n.key;c=n.itemCount;var y,x,b=u+i-1,C=ge(t.pages,(function(t){return!!t.items&&t.startIndex===e}))>-1,S=!v||b>=v.top&&u<=v.bottom,E=!_._requiredRect||b>=_._requiredRect.top&&u<=_._requiredRect.bottom;if(!g&&(E||S&&C)||!f||h>=e&&h<e+c||e===o){d&&(l.push(d),d=null);var k=Math.min(c,p-e),L=_._createPage(m,r.slice(e,e+k),e,void 0,void 0,a);L.top=u,L.height=i,_._visibleRect&&_._visibleRect.bottom&&(L.isVisible=b>=_._visibleRect.top&&u<=_._visibleRect.bottom),l.push(L),E&&_._allowedRect&&(y=s,x={top:u,bottom:b,height:i,left:v.left,right:v.right,width:v.width},y.top=x.top<y.top||-1===y.top?x.top:y.top,y.left=x.left<y.left||-1===y.left?x.left:y.left,y.bottom=x.bottom>y.bottom||-1===y.bottom?x.bottom:y.bottom,y.right=x.right>y.right||-1===y.right?x.right:y.right,y.width=y.right-y.left+1,y.height=y.bottom-y.top+1)}else d||(d=_._createPage("spacer-"+e,void 0,e,0,void 0,a,!0)),d.height=(d.height||0)+(b-u)+1,d.itemCount+=c;if(u+=b-u+1,g&&f)return"break"},_=this,y=o;y<p&&"break"!==m(y);y+=c);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({},ih),l=this._scrollElement&&this._scrollElement.scrollHeight,c=this._scrollElement?this._scrollElement.scrollTop:0;this._surface.current&&(n||!a||!this._surfaceRect||!l||l!==this._scrollHeight||Math.abs(this._scrollTop-c)>this._estimatedPageHeight/3)&&(s=this._surfaceRect=ah(this._surface.current),this._scrollTop=c),!n&&l&&l===this._scrollHeight||this._measureVersion++,this._scrollHeight=l||0;var d=Math.max(0,-s.top),h=u(this._root.current),p={top:d,left:s.left,bottom:d+h.innerHeight,right:s.right,width:s.width,height:h.innerHeight};this._requiredRect=ch(p,this._requiredWindowsBehind,this._requiredWindowsAhead),this._allowedRect=ch(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 ch(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 uh,dh=function(e){var t=s.useRef(null);s.useEffect((function(){if(t.current){var n=ju(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))},hh=function(e){var t,n,r=s.useRef(null),i=s.useState(!1),o=i[0],a=i[1],l=null;if(o){var c=e.labelDef.aggregatedIdx.map((function(t){return e.lineDefs[t].onRenderCard})).filter((function(e){return!!e}));c.length>0&&(l=s.createElement(di,{target:r.current,onDismiss:function(){return a(!1)},setInitialFocus:!0,role:"dialog"},s.createElement(Bi,{isCircularNavigation:!0,direction:hi.vertical},s.createElement(lh,{items:c,onRenderCell:function(e){return s.createElement("div",{"data-is-focusable":!0},e&&e())}}))))}return 1===e.labelDef.aggregatedIdx.length?(t=e.lineDefs[e.labelDef.aggregatedIdx[0]].event,n=e.textColor):(t=e.mergedLabel(e.labelDef.aggregatedIdx.length),n=e.textColor),s.createElement(s.Fragment,null,s.createElement("g",{ref:r,onClick:function(){return a(!0)},"data-is-focusable":!0,style:{cursor:"pointer"}},s.createElement(dh,{text:t,x:e.labelDef.x,y:e.textY,width:e.textWidth,lineHeight:e.textLineHeight,textAnchor:e.labelDef.anchor,fontSize:e.textFontSize,fill:n})),l)},ph=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=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:e.strokeColor,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=[],c=r;c<s;c++)l.push(c);var u=i(a,s);return u.unshift({x:e[r].x,anchor:o,aggregatedIdx:l}),u};return i(r,0)}(a,t+5,o[1],o[0]).map((function(r,o){return s.createElement(hh,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,l,c)},fh=le();!function(e){e[e.hoverSize=11]="hoverSize",e[e.invisibleSize=1]="invisibleSize"}(uh||(uh={}));var gh=b(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)},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,c=n.state.activePoint;return a?c===e?uh.hoverSize:1===t||r?2.5*l:uh.invisibleSize:c===e?uh.hoverSize:uh.invisibleSize},n._getPath=function(e,t,r,i,o,a){var s=n.props.allowMultipleShapesForPoints,l=void 0!==s&&s,c=n._getBoxWidthOfShape(r,i,o),u=l?a%Object.keys(ld).length:0,d=ld[u].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,c=d>1?c/d:c,u)},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=0;r<n._colorFillBars.length;r++){var i=n._colorFillBars[r],o=pe(i.legend.replace(/\W/g,""));i.applyPattern&&t.push(n._getStripePattern(i.color,r));for(var a=0;a<i.data.length;a++){var l=i.data[a].startX,c=i.data[a].endX,u=n.state.activeLegend===i.legend||""===n.state.activeLegend||n.state.isSelectedLegend?n._colorFillBarsOpacity:.1;t.push(s.createElement("rect",{fill:i.applyPattern?"url(#"+n._colorFillBarPatternId+r+")":i.color,fillOpacity:u,x:n._xAxisScale(l),y:n._yAxisScale(0)-e,width:Math.abs(n._xAxisScale(c)-n._xAxisScale(l)),height:e,key:""+o+a}))}}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:2}))},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 c=n;ju("#"+i).attr("aria-labelledby","toolTip"+n._uniqueCallOutID),ju("#"+n._verticalLine).attr("transform",(function(){return"translate("+c._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){o.persist(),n._uniqueCallOutID=r;var a=e instanceof Date?e.toLocaleDateString():e,s=e instanceof Date?e.getTime():e,l=n,c=ve(n._calloutPoints,(function(e){return e.x===s}));c?(ju("#"+n._verticalLine).attr("transform",(function(){return"translate("+l._xAxisScale(e)+", 0)"})).attr("visibility","visibility"),n.setState({isCalloutVisible:!0,refSelected:o,hoverXValue:t||""+a,YValueHover:c.values,stackCalloutProps:c,dataPointCalloutProps:c,activePoint:r,xAxisCalloutAccessibilityData:i})):n.setState({activePoint:r})},n._onLineClick=function(e){e&&e()},n._onDataPointClick=function(e){e&&e()},n._handleMouseOut=function(){ju("#"+n._verticalLine).attr("visibility","hidden"),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(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(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=.4,n._calloutPoints=Ju(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=Ju(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 c=td(this._points),u=this._points;a&&a.canSelectMultipleLegends&&(u=this.state.selectedLegendPoints.length>=1?this.state.selectedLegendPoints:this._points,this._calloutPoints=Ju(u));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(th,i({},this.props,{chartTitle:l.chartTitle,points:u,chartType:Xu.LineChart,isCalloutForStack:!0,calloutProps:h,tickParams:p,legendBars:d,getmargins:this._getMargins,getGraphData:this._initializeLineChartData,xAxisType:c?Ku.DateAxis:Ku.NumericAxis,customizedCallout:this._getCustomizedCallout(),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:"steelblue",id:e._verticalLine,visibility:"hidden",strokeDasharray:"5,5"}),s.createElement("g",null,e._renderedColorFillBars,e.lines),o&&s.createElement(ph,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,c=!(!r||!r.canSelectMultipleLegends),u=e.map((function(e){var n=e.color;return i(i({title:e.legend,color:n,action:function(){c?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:id[e.index%Object.keys(ld).length]})})),d=this.props.colorFillBars?this.props.colorFillBars.map((function(e,n){var r=e.legend;return{title:r,color:e.color,action:function(){c?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(pd,i({legends:a(u,d),enabledWrapLines:this.props.enabledLegendsWrapLines,overflowProps:this.props.legendsOverflowProps,focusZonePropsInHoverCard:this.props.focusZonePropsForLegendsInHoverCard,overflowText:this.props.legendsOverflowText},c&&{onLegendHoverCardLeave:this._onHoverCardHide},this.props.legendProps))},t.prototype._createLines=function(e){var t,n,r,i,o,l,c,u,d,h,p,f,g,v,m=this,_=[],y=[];this.state.isSelectedLegend?this._points=this.state.selectedLegendPoints:this._points=this._injectIndexPropertyInLineChartData(this.props.data.lineChartData);for(var x=0;x<this._points.length;x++){var b=[],C=[],S=[],E=this._points[x].legend,k=this._points[x].color,L=this.state.activePoint,w=this.props.theme;if(1===this._points[x].data.length){var A=this._points[x].data[0],D=A.x,T=A.y,M=A.xAxisCalloutData,P=A.xAxisCalloutAccessibilityData,F=""+this._circleId+x;S.push(s.createElement("circle",{id:""+this._circleId+x,key:""+this._circleId+x,r:L===F?5.5:3.5,cx:this._xAxisScale(D),cy:this._yAxisScale(T),fill:L===F?w.palette.white:k,onMouseOver:this._handleHover.bind(this,D,M,F,P),onMouseMove:this._handleHover.bind(this,D,M,F,P),onMouseOut:this._handleMouseOut,strokeWidth:L===F?2:0,stroke:L===F?k:""}))}for(var I=0,O=null!==(n=null===(t=this._points[x].gaps)||void 0===t?void 0:t.sort((function(e,t){return e.startIndex-t.startIndex})))&&void 0!==n?n:[],H=function(e){var t=N._checkInGap(e,O,I),n=t.isInGap;I=t.gapIndex;var a=""+N._lineId+x+e,_=""+N._borderId+x+e,y=""+N._circleId+x+e,A=N._points[x].data[e-1],D=A.x,T=A.y,M=A.xAxisCalloutData,P=A.xAxisCalloutAccessibilityData,F=N._points[x].data[e],H=F.x,R=F.y,B=N._getPath(N._xAxisScale(D),N._yAxisScale(T),y,e,!1,N._points[x].index),V=(null===(Y=N._points[x].lineOptions)||void 0===Y?void 0:Y.strokeWidth)||N.props.strokeWidth||4,z=N.state.activeLegend===E||""===N.state.activeLegend||N.state.isSelectedLegend,W=L!==y&&N._points[x].hideNonActiveDots;if(S.push(s.createElement("path",{id:y,key:y,d:B,"data-is-focusable":0===x,onMouseOver:N._handleHover.bind(N,D,M,y,P),onMouseMove:N._handleHover.bind(N,D,M,y,P),onMouseOut:N._handleMouseOut,onFocus:function(){return m._handleFocus(a,D,M,y,P)},onBlur:N._handleMouseOut,onClick:N._onDataPointClick.bind(N,N._points[x].data[e-1].onDataPointClick),visibility:W?"hidden":"visible",opacity:z?1:.01,fill:N._getPointFill(k,y,e,!1),stroke:k,strokeWidth:2})),e+1===N._points[x].data.length){var U=""+y+e+"L";B=N._getPath(N._xAxisScale(H),N._yAxisScale(R),U,e,!0,N._points[x].index);var Y=N._points[x].data[e],j=Y.xAxisCalloutData,q=Y.xAxisCalloutAccessibilityData;S.push(s.createElement("path",{id:U,key:U,d:B,"data-is-focusable":0===x,onMouseOver:N._handleHover.bind(N,H,j,U,q),onMouseMove:N._handleHover.bind(N,H,j,U,q),onMouseOut:N._handleMouseOut,onFocus:function(){return m._handleFocus(a,H,j,U,q)},onBlur:N._handleMouseOut,onClick:N._onDataPointClick.bind(N,N._points[x].data[e].onDataPointClick),visibility:W?"hidden":"visible",opacity:z?1:.01,fill:N._getPointFill(k,U,e,!0),stroke:k,strokeWidth:2}))}if(z){if(!n){var X=(null===(r=N._points[x].lineOptions)||void 0===r?void 0:r.lineBorderWidth)?Number.parseFloat(N._points[x].lineOptions.lineBorderWidth.toString()):0;X>0&&C.push(s.createElement("line",{id:_,key:_,x1:N._xAxisScale(D),y1:N._yAxisScale(T),x2:N._xAxisScale(H),y2:N._yAxisScale(R),strokeLinecap:null!==(o=null===(i=N._points[x].lineOptions)||void 0===i?void 0:i.strokeLinecap)&&void 0!==o?o:"round",strokeWidth:Number.parseFloat(V.toString())+X,stroke:(null===(l=N._points[x].lineOptions)||void 0===l?void 0:l.lineBorderColor)||w.palette.white,opacity:1})),b.push(s.createElement("line",{id:a,key:a,x1:N._xAxisScale(D),y1:N._yAxisScale(T),x2:N._xAxisScale(H),y2:N._yAxisScale(R),strokeWidth:V,ref:function(e){m._refCallback(e,a)},onMouseOver:N._handleHover.bind(N,D,M,y,P),onMouseMove:N._handleHover.bind(N,D,M,y,P),onMouseOut:N._handleMouseOut,stroke:k,strokeLinecap:null!==(u=null===(c=N._points[x].lineOptions)||void 0===c?void 0:c.strokeLinecap)&&void 0!==u?u:"round",strokeDasharray:null===(d=N._points[x].lineOptions)||void 0===d?void 0:d.strokeDasharray,strokeDashoffset:null===(h=N._points[x].lineOptions)||void 0===h?void 0:h.strokeDashoffset,opacity:1,onClick:N._onLineClick.bind(N,N._points[x].onLineClick)}))}}else n||b.push(s.createElement("line",{id:a,key:a,x1:N._xAxisScale(D),y1:N._yAxisScale(T),x2:N._xAxisScale(H),y2:N._yAxisScale(R),strokeWidth:V,stroke:k,strokeLinecap:null!==(f=null===(p=N._points[x].lineOptions)||void 0===p?void 0:p.strokeLinecap)&&void 0!==f?f:"round",strokeDasharray:null===(g=N._points[x].lineOptions)||void 0===g?void 0:g.strokeDasharray,strokeDashoffset:null===(v=N._points[x].lineOptions)||void 0===v?void 0:v.strokeDashoffset,opacity:.1}))},N=this,R=1;R<this._points[x].data.length;R++)H(R);_.push.apply(_,a(C,b)),y.push.apply(y,S)}var B=fh(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 V=ju(e).call(this._xAxisScale);try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(e){}var z={tooltipCls:B.tooltip,id:this._tooltipId,xAxis:V};V&&ed(z)}return _.concat(y)},t.prototype._refCallback=function(e,t){this._refArray.push({index:t,refElement:e})},t}(s.Component),(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"})}})),vh=Array.prototype.slice;function mh(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 _h(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function yh(e,t){return e[t]}function xh(e){this._context=e}function bh(e){return new xh(e)}function Ch(e){return e[0]}function Sh(e){return e[1]}function Eh(){var e=Ch,t=Sh,n=fd(!0),r=null,i=bh,o=null;function a(a){var s,l,c,u=a.length,d=!1;for(null==r&&(o=i(c=Nd())),s=0;s<=u;++s)!(s<u&&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(c)return o=null,c+""||null}return a.x=function(t){return arguments.length?(e="function"==typeof t?t:fd(+t),a):e},a.y=function(e){return arguments.length?(t="function"==typeof e?e:fd(+e),a):t},a.defined=function(e){return arguments.length?(n="function"==typeof e?e:fd(!!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 kh(e){return e<0?-1:1}function Lh(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(kh(o)+kh(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function wh(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Ah(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 Dh(e){this._context=e}function Th(e){this._context=e}function Mh(e){return new Dh(e)}xh.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)}}},Dh.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Ah(this,this._t0,wh(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,Ah(this,wh(this,n=Lh(this,e,t)),n);break;default:Ah(this,this._t0,n=Lh(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 Th(e)}.prototype=Object.create(Dh.prototype)).point=function(e,t){Dh.prototype.point.call(this,t,e)},Th.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 Ph,Fh=le(),Ih=Oo((function(e){return e.x})).left;!function(e){e.show="visibility",e.hide="hidden"}(Ph||(Ph={}));var Oh=b(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=Ih(t[0].data,r),o=t[0].data[i-1],a=t[0].data[i],s=null,l=null,c=null;if(void 0===o&&void 0!==a)l=a.x,c=i;else if(void 0!==o&&void 0===a)l=o.x,c=i-1;else{var u=void 0,d=void 0,h=void 0;switch(s=ad(t[0].data[0].x,!0)){case Ku.DateAxis:u=new Date(r).getTime(),d=o.x.getTime(),h=a.x.getTime(),l=Math.abs(u-d)>Math.abs(u-h)?a.x:o.x,c=Math.abs(u-d)>Math.abs(u-h)?i:i-1;break;case Ku.NumericAxis:u=r,d=o.x,h=a.x,l=Math.abs(u-d)>Math.abs(u-h)?a.x:o.x,c=Math.abs(u-d)>Math.abs(u-h)?i:i-1}}var p=t[0].data[c],f=p.xAxisCalloutData,g=p.xAxisCalloutAccessibilityData,v=l instanceof Date?l.toLocaleString():l,m=l instanceof Date?l.getTime():l,_=ve(n._calloutPoints,(function(e){return e.x===m})),y=s===Ku.DateAxis?l.getTime():l;_?n.setState({refSelected:e,isCalloutVisible:!0,nearestCircleToHighlight:y,lineXValue:n._xAxisRectScale(l),displayOfLine:Ph.show,isCircleClicked:!1,stackCalloutProps:_,YValueHover:_.values,dataPointCalloutProps:_,hoverXValue:f||v,xAxisCalloutAccessibilityData:g}):n.setState({isCalloutVisible:!1,nearestCircleToHighlight:y,displayOfLine:Ph.hide,isCircleClicked:!1})},n._onRectMouseOut=function(){n.setState({refSelected:null,isCalloutVisible:!1,nearestCircleToHighlight:null,lineXValue:0,displayOfLine:Ph.hide,isCircleClicked:!1,stackCalloutProps:void 0,dataPointCalloutProps:void 0,hoverXValue:void 0,YValueHover:[]})},n._getStackedData=function(e,t){var r=function(){var e=fd([]),t=_h,n=mh,r=yh;function i(i){var o,a,s=e.apply(this,arguments),l=i.length,c=s.length,u=new Array(c);for(o=0;o<c;++o){for(var d,h=s[o],p=u[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(u);o<c;++o)u[a[o]].index=o;return n(u,a),u}return i.keys=function(t){return arguments.length?(e="function"==typeof t?t:fd(vh.call(t)),i):e},i.value=function(e){return arguments.length?(r="function"==typeof e?e:fd(+e),i):r},i.order=function(e){return arguments.length?(t=null==e?_h:"function"==typeof e?e:fd(vh.call(e)),i):t},i.offset=function(e){return arguments.length?(n=null==e?mh:e,i):n},i}().keys(e)(t),i=Ro(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=Ju(e);e&&e.length&&e.forEach((function(e){i.push(e.color),t.push.apply(t,e.data)}));for(var a=t,s=function(){var e=a[0].x instanceof Date?a[0].x.toLocaleString():a[0].x,t=a.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=a[0].x instanceof Date?a[0].x.toLocaleString():a[0].x;a=a.filter((function(e){return(e.x instanceof Date?e.x.toLocaleString():e.x)!==i}))};a.length;)s();for(var l=r&&Object.keys(r[0]).length,c=[],u=0;u<l-1;u++){var d="chart"+u;c.push(d)}var h=n._getStackedData(c,r);return{colors:i,keys:c,stackedInfo:h,calloutPoints:o}},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(pd,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){return n.state.isCircleClicked&&n.state.nearestCircleToHighlight===e?t:n.state.nearestCircleToHighlight===e?n.props.theme.palette.white:t},n._drawGraph=function(e,t,r,i){var o,a=n.props.data.lineChartData,l=function(){var e=Ch,t=null,n=fd(0),r=Sh,i=fd(!0),o=null,a=bh,s=null;function l(l){var c,u,d,h,p,f=l.length,g=!1,v=new Array(f),m=new Array(f);for(null==o&&(s=a(p=Nd())),c=0;c<=f;++c){if(!(c<f&&i(h=l[c],c,l))===g)if(g=!g)u=c,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),d=c-1;d>=u;--d)s.point(v[d],m[d]);s.lineEnd(),s.areaEnd()}g&&(v[c]=+e(h,c,l),m[c]=+n(h,c,l),s.point(t?+t(h,c,l):v[c],r?+r(h,c,l):m[c]))}if(p)return s=null,p+""||null}function c(){return Eh().defined(i).curve(a).context(o)}return l.x=function(n){return arguments.length?(e="function"==typeof n?n:fd(+n),t=null,l):e},l.x0=function(t){return arguments.length?(e="function"==typeof t?t:fd(+t),l):e},l.x1=function(e){return arguments.length?(t=null==e?null:"function"==typeof e?e:fd(+e),l):t},l.y=function(e){return arguments.length?(n="function"==typeof e?e:fd(+e),r=null,l):n},l.y0=function(e){return arguments.length?(n="function"==typeof e?e:fd(+e),l):n},l.y1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:fd(+e),l):r},l.lineX0=l.lineY0=function(){return c().x(e).y(n)},l.lineY1=function(){return c().x(e).y(r)},l.lineX1=function(){return c().x(t).y(n)},l.defined=function(e){return arguments.length?(i="function"==typeof e?e:fd(!!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(Mh),c=Eh().x((function(e){return t(e.xVal)})).y((function(e){return r(e.values[1])})).curve(Mh),u=[];n._stackedData.forEach((function(e,t){u.push(s.createElement(s.Fragment,{key:t+"-graph-"+n._uniqueIdForGraph},s.createElement("path",{id:t+"-line-"+n._uniqueIdForGraph,d:c(e),fill:"transparent",strokeWidth:3,stroke:n._colors[t],opacity:n._getLineOpacity(a[t].legend),onMouseMove:n._onRectMouseMove,onMouseOut:n._onRectMouseOut,onMouseOver:n._onRectMouseMove}),s.createElement("path",{id:t+"-graph-"+n._uniqueIdForGraph,d:l(e),fill:n._colors[t],fillOpacity:n._getOpacity(a[t].legend),onMouseMove:n._onRectMouseMove,onMouseOut:n._onRectMouseOut,onMouseOver:n._onRectMouseMove})))})),n._stackedData.forEach((function(e,i){a.length!==i&&u.push(s.createElement("g",{key:i+"-dots-"+n._uniqueIdForGraph,d:l(e),clipPath:"url(#clip)"},e.map((function(e,l){var c=n._circleId+"_"+(i*n._stackedData[0].length+l),u=e.xVal instanceof Date?e.xVal.getTime():e.xVal;return o=a[i].color,s.createElement("circle",{key:c,id:c,"data-is-focusable":!0,cx:t(e.xVal),cy:r(e.values[1]),r:n._getCircleRadius(u),stroke:o,strokeWidth:3,visibility:n.state.nearestCircleToHighlight?"visibility":"hidden",fill:n._updateCircleFillColor(u,o),onMouseOut:n._onRectMouseOut,onMouseOver:n._onRectMouseMove,onClick:n._onDataPointClick.bind(n,a[i].data[l].onDataPointClick)})}))))})),u.push(s.createElement("line",{id:n._verticalLineId,key:n._verticalLineId,x1:n.state.lineXValue,y1:0,x2:n.state.lineXValue,y2:e,strokeWidth:1,strokeDasharray:5.5,stroke:o,opacity:.5,visibility:n.state.displayOfLine}));var d=Fh(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 h=ju(i).call(t);try{document.getElementById(n._tooltipId)&&document.getElementById(n._tooltipId).remove()}catch(e){}var p={tooltipCls:d.tooltip,id:n._tooltipId,xAxis:h};h&&ed(p)}return u},n._getCircleRadius=function(e){var t=n.state,r=t.isCircleClicked,i=t.nearestCircleToHighlight;return r&&i===e?1:i===e?8:0},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},n._createSet=Wn((function(e){return n._createDataSet(e.lineChartData)})),n.state={activeLegend:"",hoverXValue:"",isCalloutVisible:!1,isLegendSelected:!1,isLegendHovered:!1,refSelected:null,YValueHover:[],lineXValue:0,displayOfLine:Ph.hide,isCircleClicked:!1,nearestCircleToHighlight:null},ei("AREA CHART",t,{showYAxisGridLines:"Dont use this property. Lines are drawn by default"}),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.stackedInfo,c=o.calloutPoints;this._calloutPoints=c;var u=td(n);this._colors=a,this._stackedData=l.stackedData;var d=this._getLegendData(this.props.theme.palette,n),h={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat},p=i({target:this.state.refSelected,isCalloutVisible:this.state.isCalloutVisible,directionalHint:2,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(th,i({},this.props,{chartTitle:r,points:n,chartType:Xu.AreaChart,calloutProps:p,legendBars:d,isCalloutForStack:!0,xAxisType:u?Ku.DateAxis:Ku.NumericAxis,tickParams:h,maxOfYVal:l.maxOfYVal,getGraphData:this._getGraphData,getmargins:this._getMargins,customizedCallout:this._getCustomizedCallout(),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),(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"})}})),Hh=function(e){return{root:{fill:e.color,stroke:An.white,strokeWidth:2}}},Nh=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.centroid(n),i="translate("+r[0]+", "+r[1]+")";return s.createElement("g",{className:"arc"},e.prototype.render.call(this),s.createElement("text",{transform:i,textAnchor:"middle"},n.data.x,"-",n.data.y))},t}(function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={},t.updateChart=function(e){Rh(e)},t}return r(t,e),t.getDerivedStateFromProps=function(e){return Rh(e),null},t.prototype.render=function(){var e,t=this.props,n=t.color,r=t.arc,i=le()(Hh,{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:jd()},t}(s.Component));function Rh(e){e.arc.innerRadius(e.innerRadius),e.arc.outerRadius(e.outerRadius)}var Bh,Vh=function(e){function t(t){var n=e.call(this,t)||this;return n.arcGenerator=function(e,t){return s.createElement(Nh,{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=sa().range(r);var c=n(i),u="translate("+o/2+", "+a/2+")";return s.createElement("svg",{width:o,height:a,"aria-label":l},s.createElement("g",{transform:u},c.map((function(t,n){return e.arcGenerator(t,n)}))))},t.defaultProps={pie:Td().sort(null).value((function(e){return e.y}))},t}(s.Component),zh=le(),Wh=b(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,c=a.className,u=a.styles;this._classNames=zh(u,{theme:l,width:n,height:r,className:c});var d=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(Vh,{width:n,height:r,outerRadius:d,innerRadius:0,data:t,colors:i,chartTitle:o}))},t.defaultProps={data:[],width:600,height:350},t}(s.Component),(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)]}})),Uh=le(),Yh=b(function(e){function t(t){var n=e.call(this,t)||this;return 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=this.props.theme.palette,c=a||t.chartData.length>2?this.props.barHeight:8;n&&(n.color=n.color||l.neutralTertiary),r&&(r.color=r.color||l.neutralSecondary);var u=this._createBarsAndLegends(t,c,l,n,r),d=!1===o&&!a&&2===t.chartData.length,h=!1===o&&!a&&1===t.chartData.length,p=t.chartData.reduce((function(e,t){return e+(t.data?t.data:0)}),0),f=0;n&&p&&(f=n.data/p*100);var g=0;r&&p&&(g=r.data/p*100);var v=!1===this.props.hideLegend&&(a||t.chartData.length>2);return this._classNames=Uh(this.props.styles,{legendColor:this.state.color,theme:this.props.theme,benchmarkColor:n?n.color:"",benchmarkRatio:f,targetColor:r?r.color:"",targetRatio:g}),s.createElement("div",{className:this._classNames.root},s.createElement(Bi,{direction:hi.horizontal},s.createElement("div",{className:this._classNames.chartTitle},t.chartTitle&&s.createElement("div",i({},this._getAccessibleDataObject(t.chartTitleAccessibilityData)),s.createElement("strong",null,t.chartTitle)),d&&s.createElement("div",i({},this._getAccessibleDataObject(t.chartDataAccessibilityData)),s.createElement("span",{className:this._classNames.ratioNumerator},t.chartData[0].data?t.chartData[0].data:0),!this.props.hideDenominator&&s.createElement("span",null,"/",s.createElement("span",{className:this._classNames.ratioDenominator},p))),h&&s.createElement("div",i({},this._getAccessibleDataObject(t.chartDataAccessibilityData)),s.createElement("strong",null,t.chartData[0].data))),(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(Bi,{direction:hi.horizontal},s.createElement("div",null,s.createElement("svg",{className:this._classNames.chart,"aria-label":null==t?void 0:t.chartTitle},s.createElement("g",null,u[0]),s.createElement(di,i({gapSpace:15,isBeakVisible:!1,target:this.state.refSelected,setInitialFocus:!0,hidden:!(!this.props.hideTooltip&&this.state.isCalloutVisible),directionalHint:2,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(vi,{Legend:this.state.xCalloutValue?this.state.xCalloutValue:this.state.selectedLegendTitle,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard,color:this.state.color})))))),v&&s.createElement("div",{className:this._classNames.legendContainer},u[1]))},t.prototype._adjustProps=function(){this._classNames=Uh(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],c=[],u=[],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||c.push(o),n>0&&(h+=p),(p=i/d*100)<1&&0!==p?p=1:p>99&&100!==p&&(p=99),u.push(h);var f=a.props.styles,g=!0;return(a.state.isLegendHovered||a.state.isLegendSelected)&&(g=a.state.selectedLegendTitle===e.legend),a._classNames=Uh(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:u[n]+"%",y:0,width:p+"%",height:t,fill:r}))}));this._addLegend(c,r),this._addLegend(c,o);var g=s.createElement(pd,i({legends:c,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.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(){this.setState({isCalloutVisible:!1})},t.prototype._redirectToUrl=function(e){e&&(window.location.href=e)},t.defaultProps={barHeight:16,hideNumberDisplay:!1,hideLegend:!1,ignoreFixStyle:!1},t}(s.Component),(function(e){var t,n,r=e.className,o=e.width,a=e.barHeight,s=e.shouldHighlight,l=e.theme,c=e.href,u=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:c?"pointer":"default",stroke:l.palette.white,strokeWidth:2,selectors:{"&:focus":{stroke:l.palette.black,strokeWidth:"2px"}}},ratioNumerator:{fontSize:En.small,fontWeight:kn.semibold,color:l.palette.black},ratioDenominator:{fontSize:En.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:u,marginBottom:"4px",selectors:(t={},t[Tn]={border:"0px",height:"7.8px",width:"7.8px",clipPath:"polygon(50% 100%, 0 0, 100% 0)",backgroundImage:"linear-gradient(to right, "+u+", "+u+")"},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[Tn]={border:"0px",height:"7.8px",width:"7.8px",clipPath:"polygon(50% 100%, 0 0, 100% 0)",backgroundImage:"linear-gradient(to right, "+h+", "+h+")"},n)}}})),jh=le(),qh=b(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=jh(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(pd,i({legends:a,overflowProps:n.props.legendsOverflowProps,focusZonePropsInHoverCard:n.props.focusZonePropsForLegendsInHoverCard,overflowText:n.props.legendsOverflowText},n.props.legendProps))},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;this._adjustProps();var o=r.palette,a=this._getLegendData(n,this.props.hideRatio,o),l=this.state.isCalloutVisible;this._classNames=jh(this.props.styles,{legendColor:this.state.color,theme:r});var c=this.state.xCalloutValue?this.state.xCalloutValue:this.state.selectedLegendTitle,u=this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard,d=n.map((function(t,n){var r=e._createBarsAndLegends(t,e.props.barHeight,o,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},d,!this.props.hideLegend&&s.createElement("div",{className:this._classNames.legendContainer},a),s.createElement(di,i({gapSpace:15,isBeakVisible:!1,target:this.state.refSelected,setInitialFocus:!0,hidden:!(!this.props.hideTooltip&&l),directionalHint:2,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(vi,{Legend:c,YValue:u,color:this.state.color}))))},t.prototype._createBarsAndLegends=function(e,t,n,r,o,a){var l=this,c=[n.blueLight,n.blue,n.blueMid,n.red,n.black],u=[],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,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&&(h+=p),p=o/d*100?o/d*100:0,u.push(h);var f=l.props.styles,g=!0;return(l.state.isLegendHovered||l.state.isLegendSelected)&&(g=l.state.selectedLegendTitle===e.legend),l._classNames=jh(f,{theme:l.props.theme,shouldHighlight:g,href:a}),p<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:u[r]+"%",y:0,width:p+"%",height:t,fill:i}))}));0===e.chartData.length&&f.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===d&&f.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 g=void 0!==r&&r,v=!g&&2===e.chartData.length,m=!g&&1===e.chartData.length;return s.createElement("div",{className:this._classNames.singleChartRoot},s.createElement(Bi,{direction:hi.horizontal},s.createElement("div",{className:this._classNames.chartTitle},e.chartTitle&&s.createElement("div",i({},this._getAccessibleDataObject(e.chartTitleAccessibilityData)),s.createElement("strong",null,e.chartTitle)),v&&s.createElement("div",i({},this._getAccessibleDataObject(e.chartDataAccessibilityData)),s.createElement("strong",null,e.chartData[0].data?e.chartData[0].data:0),!o&&s.createElement("span",null,"/",d)),m&&s.createElement("div",i({},this._getAccessibleDataObject(e.chartDataAccessibilityData)),s.createElement("strong",null,e.chartData[0].data)))),s.createElement(Bi,{direction:hi.horizontal},s.createElement("div",null,s.createElement("svg",{className:this._classNames.chart,"aria-label":null==e?void 0:e.chartTitle},f))))},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.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(){this.setState({isCalloutVisible:!1})},t.prototype._redirectToUrl=function(e){e&&(window.location.href=e)},t.defaultProps={barHeight:16,hideRatio:[],hideDenominator:[]},t}(s.Component),(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"}(Bh||(Bh={}));var Xh,Kh=le(),Zh=b(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===Ku.NumericAxis,a=n._getScales(r,i,o).xBarScale,l=n._createColors(),c=n.props.theme,u=n.props,d=u.data,h=u.lineLegendColor,p=void 0===h?c.palette.yellow:h,f=u.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=Eh().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 _=s.createElement("path",{opacity:m?1:.4,d:v(g),fill:"none",strokeWidth:3,stroke:p}),y=g.map((function(r,i){var c;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?Bh.show:Bh.hide,onClick:null===(c=r.point.lineData)||void 0===c?void 0:c.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(vi,i({key:t,Legend:e.legend},0===t&&{XValue:""+(o||e.data)},{color:e.color,YValue:e.data||e.y}))}));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(vi,{XValue:e.xAxisCalloutData||e.x,Legend:e.legend,YValue:e.yAxisCalloutData||e.y,color:!r&&e.color?e.color:n._createColors()(e.y)}))},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===Ku.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,c=s.useSingleColor,u=void 0!==c&&c,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:u?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.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=Ro(n._points,(function(e){return e.x}));return{xBarScale:Ss().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:Ss().domain([0,n._yMax]).range([0,e-n.margins.bottom-n.margins.top])}}var o=(t-n.margins.right)/n._points.length*.5;return{xBarScale:Ss().domain(n._isRtl?[n._points.length-1,0]:[0,n._points.length-1]).range([n.margins.left+o-.5*n._barWidth,t-n.margins.right-o-.5*n._barWidth]),yBarScale:Ss().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,c=l.lineLegendText,u=l.lineLegendColor,d=void 0===u?o.palette.yellow:u,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&&c&&d){var p={title:c,color:d,action:function(){n._onLegendClick(c)},hoverAction:function(){n._onLegendHover(c)},onMouseOutAction:function(e){n._onLegendLeave(e)},isLineLegendInBarChart:!0};h.unshift(p)}return s.createElement(pd,i({legends:h,enabledWrapLines:n.props.enabledLegendsWrapLines,overflowProps:n.props.legendsOverflowProps,focusZonePropsInHoverCard:n.props.focusZonePropsForLegendsInHoverCard,overflowText:n.props.legendsOverflowText},n.props.legendProps))},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?ad(n.props.data[0].x,!0):Ku.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(Ro(this._points,(function(e){return e.y})),this.props.yMaxValue||0);var t=this._getLegendData(this._points,this.props.theme.palette);this._classNames=Kh(this.props.styles,{theme:this.props.theme,legendColor:this.state.color});var n=i(i(i(i({isCalloutVisible:this.state.isCalloutVisible,directionalHint:2,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),cd(this.state.callOutAccessibilityData)),r={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return s.createElement(th,i({},this.props,{points:this._points,chartType:Xu.VerticalBarChart,xAxisType:this._xAxisType,calloutProps:n,tickParams:r},this._isHavingLine&&{isCalloutForStack:!0},{legendBars:t,datasetForXAxisDomain:this._xAxisLabels,barwidth:this._barWidth,focusZoneDirection:hi.horizontal,customizedCallout:this._getCustomizedCallout(),getmargins:this._getMargins,getGraphData:this._getGraphData,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 Ss().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.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,c=a.yBarScale,u=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=Kh(r.props.styles,{theme:r.props.theme,legendColor:r.state.color,shouldHighlight:i}),Math.max(c(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-c(t.y),width:r._barWidth,"data-is-focusable":!r.props.hideTooltip,height:Math.max(c(t.y),0),ref:function(e){r._refCallback(e,t.legend)},onClick:t.onClick,onMouseOver:r._onBarHover.bind(r,t,u(t.y)),"aria-label":"Vertical bar chart",role:"text","aria-labelledby":"toolTip"+r._calloutId,onMouseLeave:r._onBarLeave,onFocus:r._onBarFocus.bind(r,t,n,u(t.y)),onBlur:r._onBarLeave,fill:t.color&&!o?t.color:u(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=ju(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&&ed(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(),c=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(n),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)})}));if(!this.props.showXAxisLablesTooltip)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(e){}if(!this.props.wrapXAxisLables&&this.props.showXAxisLablesTooltip){var u=ju(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:u,showTooltip:this.props.showXAxisLablesTooltip};u&&ed(d)}return c},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),(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"})}})),Gh=le();!function(e){e.show="visibility",e.hide="hidden"}(Xh||(Xh={}));var $h=b(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,c=a.isLegendSelected,u=a.selectedLegendTitle,d=n._xAxisType===Ku.NumericAxis,h=n._getScales(r,o,d).xBarScale,p=n._getFormattedLineData(n.props.data),f=[],g=[];return Object.keys(p).forEach((function(r,o){var a=!0;(l||c)&&(a=u===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].index)+n._additionalSpace,m=t(p[r][g-1].y),_=d?e(p[r][g].xItem.xAxisPoint):h(p[r][g].index)+n._additionalSpace,y=t(p[r][g].y);f.push(s.createElement("line",i({key:o+"-"+g+"-line",x1:v,y1:m,x2:_,y2:y,opacity:a?1:.1,strokeWidth:3,stroke:p[r][g].color},c&&u===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.index)+n._additionalSpace,cy:t(a.y),onMouseOver:c&&u===r?n._lineHover.bind(n,a):n._onStackHover.bind(n,a.xItem)},c&&u===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})))}))})),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:Xh.show,radius:8}:t===a?{visibility:Xh.show,radius:.3}:{visibility:Xh.hide,radius:0}:{visibility:o===e?Xh.show:Xh.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.setState({isCalloutVisible:!1,activeXAxisDataPoint:""})},n._getYMax=function(e){return Math.max(Ro(e,(function(e){return e.y})),n.props.yMaxValue||0)},n._createBar=function(e,t,r,o){var a=n.props,l=a.barCornerRadius,c=void 0===l?0:l,u=a.barMinimumHeight,d=void 0===u?0:u,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,u=e(n._xAxisType===Ku.NumericAxis?o.xAxisPoint:a),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(e,t){var r=e.color?e.color:n._colors[t],f={},m=!0;(n.state.isLegendHovered||n.state.isLegendSelected)&&(m=n.state.selectedLegendTitle===e.legend);var _=Gh(n.props.styles,{theme:n.props.theme,shouldHighlight:m,href:n.props.href}),y=!p&&{"data-is-focusable":!n.props.hideTooltip,"aria-labelledby":"toolTip"+n._calloutId,onMouseOver:n._onRectHover.bind(n,o.xAxisPoint,e,r),onMouseMove:n._onRectHover.bind(n,o.xAxisPoint,e,r),onMouseLeave:n._handleMouseOut,onFocus:n._onRectFocus.bind(n,e,o.xAxisPoint,r,f),onBlur:n._handleMouseOut,onClick:n._onClick.bind(n,e)},x=v*e.data;return x<d&&(x=d),l=l-x-(t?g:0),c&&x>c&&t===h.length-1?s.createElement("path",i({key:t+a+""+p,className:_.opacityChangeOnHover,d:"\n M "+u+" "+(l+c)+"\n a "+c+" "+c+" 0 0 1 "+c+" "+-c+"\n h "+(n._barWidth-2*c)+"\n a "+c+" "+c+" 0 0 1 "+c+" "+c+"\n v "+(x-c)+"\n h "+-n._barWidth+"\n z\n ",fill:r,ref:function(e){return f.refElement=e}},y)):x<1?s.createElement(s.Fragment,{key:t+a}," "):s.createElement("rect",i({key:t+a,className:_.opacityChangeOnHover,x:u,y:l,width:n._barWidth,height:x,fill:r,ref:function(e){return f.refElement=e}},y,{role:"text"}))})),_={},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,_),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 _.refElement=e}},y),m)}}})),g=Gh(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=ju(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&&ed(m)}return f.filter((function(e){return!!e}))},n._getScales=function(e,t,r){var i=n._getYMax(n._dataset),o=Ss().domain([0,i]).range([0,e-n.margins.bottom-n.margins.top]);if(r){var a=Ro(n._dataset,(function(e){return e.x}));return{xBarScale:Ss().domain(n._isRtl?[a,0]:[0,a]).nice().range([n.margins.left,t-n.margins.right-n._barWidth]),yBarScale:o}}var s=(t-n.margins.right)/n._dataset.length*.5;return{xBarScale:Ss().domain(n._isRtl?[n._dataset.length-1,0]:[0,n._dataset.length-1]).range([n.margins.left+s-n._additionalSpace,t-n.margins.right-s-n._additionalSpace]),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===Ku.NumericAxis?n._createNumericBars(r,i,o):n._createStringBars(r,i,o)},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},n.state={isCalloutVisible:!1,isLegendSelected:!1,isLegendHovered:!1,selectedLegendTitle:"",refSelected:null,dataForHoverCard:0,color:"",hoverXValue:"",YValueHover:[],xCalloutValue:"",yCalloutValue:"",activeXAxisDataPoint:""},ei("VERTICAL STACKED BAR CHART",t,{colors:"IVSChartDataPoint.color",chartLabel:"use your own title for chart"}),n._handleMouseOut=n._handleMouseOut.bind(n),n._calloutId=pe("callout"),n._tooltipId=pe("VSBCTooltipId_"),n._adjustProps(),n._dataset=n._createDataSetLayer(),n._createLegendsForLine=Wn((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:2,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),cd(this.state.callOutAccessibilityData)),c={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return s.createElement(th,i({},this.props,{points:this._dataset,chartType:Xu.VerticalStackedBarChart,xAxisType:this._xAxisType,calloutProps:l,tickParams:c,legendBars:a,datasetForXAxisDomain:this._xAxisLabels,isCalloutForStack:n,barwidth:this._barWidth,focusZoneDirection:o||t?hi.horizontal:hi.vertical,getmargins:this._getMargins,getGraphData:this._getGraphData,customizedCallout:this._getCustomizedCallout(),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=ad(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(vi,{XValue:e.xAxisCalloutData,Legend:e.legend,YValue:e.yAxisCalloutData,color:e.color}):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,c=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:c?function(){return r._onLegendHover(e.legend)}:void 0,onMouseOutAction:c?function(e){return r._onLegendLeave(e)}:void 0};a.push(n)}}))}));var u=[];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:c?function(){return r._onLegendHover(e.title)}:void 0,onMouseOutAction:c?function(e){return r._onLegendLeave(e)}:void 0};u.push(t)}));var d=u.concat(a);return s.createElement(pd,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.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(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),(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"})}})),Qh=le(),Jh=b(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){t.persist(),(!1===n.state.isLegendSelected||n.state.isLegendSelected&&n.state.titleForHoverCard===e.legend)&&n.setState({refSelected:t,isCalloutVisible:!0,titleForHoverCard:e.legend,dataForHoverCard:e.data,color:e.color,xCalloutValue:e.xAxisCalloutData,yCalloutValue:e.yAxisCalloutData,dataPointCalloutProps:e,callOutAccessibilityData:e.callOutAccessibilityData})},n._onBarLeave=function(){return n.setState({isCalloutVisible:!1})},n._onBarFocus=function(e,t){(!1===n.state.isLegendSelected||n.state.isLegendSelected&&n.state.titleForHoverCard===e.legend)&&n._refArray.forEach((function(r,i){r.index===e.legend&&t===i&&n.setState({refSelected:r.refElement,isCalloutVisible:!0,titleForHoverCard:e.legend,dataForHoverCard:e.data,color:e.color,xCalloutValue:e.xAxisCalloutData,yCalloutValue:e.yAxisCalloutData,dataPointCalloutProps:e,callOutAccessibilityData:e.callOutAccessibilityData})}))},n._redirectToUrl=function(e){e&&(window.location.href=e)},n._buildGraph=function(e,t,r,i,o){var a,l=[],c=Ss().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 u=Object.keys(n._datasetForBars[0]).splice(0,n._keys.length);if(u.forEach((function(t,o){var d=e.indexNum*u.length+o,h=e[t];h.data&&l.push(s.createElement("rect",{className:n._classNames.opacityChangeOnHover,key:e.indexNum+"-"+o,height:Math.max(c(h.data),0),width:a,x:r(t),y:Math.max(i-n.margins.bottom-c(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),onMouseMove:n._onBarHover.bind(n,h),onMouseOut:n._onBarLeave,onFocus:n._onBarFocus.bind(n,h,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=ju(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&&ed(h)}return s.createElement("g",{key:e.indexNum,transform:"translate("+t(e.xAxisPoint)+", 0)"},l)},n._createDataset=function(e){var t=[],r=[];return e.forEach((function(e,n){var o={},a={};e.series.forEach((function(e){o[e.key]=e.data,a[e.key]=i({},e)})),a.xAxisPoint=e.name,a.indexNum=n,t.push(a),r.push(o)})),n._dataset=r,t},n._createX0Scale=function(e){return la().domain(n._xAxisLabels).range(n._isRtl?[e-n.margins.right,n.margins.left]:[n.margins.left,e-n.margins.right]).padding(.16)},n._createX1Scale=function(e){return la().domain(n._keys).range(n._isRtl?[e.bandwidth(),0]:[0,e.bandwidth()]).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(pd,i({legends:a,overflowProps:n.props.legendsOverflowProps,enabledWrapLines:n.props.enabledLegendsWrapLines,focusZonePropsInHoverCard:n.props.focusZonePropsForLegendsInHoverCard},n.props.legendProps))},n._createSet=Wn((function(e){return n._createDataSetOfGVBC(e)})),n.state={color:"",dataForHoverCard:0,isCalloutVisible:!1,isLegendSelected:!1,isLegendHovered:!1,refSelected:null,titleForHoverCard:"",xCalloutValue:"",yCalloutValue:""},ei("GROUPED VERTICAL BAR CHART",t,{showYAxisGridLines:"Dont use this property. Lines are drawn by default",showXAxisPath:"Dont use this property. Axis line removed default.",showYAxisPath:"Dont use this property. No need to display Y axis path. Handling default",showXAxisGridLines:"Dont use this proprty. Handling with default value.",legendColor:"Dont use this property. colour will pick from given data."}),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=ad(t[0].name,!0);var l=this._getLegendData(t,this.props.theme.palette),c=Ro(this._dataset,(function(t){return Ro(e._keys,(function(e){return t[e]}))}));this._yMax=Math.max(c,this.props.yMaxValue||0),this._classNames=Qh(this.props.styles,{theme:this.props.theme,href:this.props.href});var u=i(i(i({target:this.state.refSelected,isCalloutVisible:this.state.isCalloutVisible,directionalHint:2,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,onDismiss:this._closeCallout},this.props.calloutProps),{preventDismissOnLostFocus:!0}),cd(this.state.callOutAccessibilityData,"text",!1)),d={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return s.createElement(th,i({},this.props,{points:this._datasetForBars,chartType:Xu.GroupedVerticalBarChart,calloutProps:u,legendBars:l,xAxisType:this._isNumeric,datasetForXAxisDomain:this._xAxisLabels,tickParams:d,tickPadding:this.props.tickPadding||5,maxOfYVal:this._yMax,svgFocusZoneProps:{direction:hi.horizontal},customizedCallout:this._getCustomizedCallout(),getmargins:this._getMargins,getGraphData:this._getGraphData,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),(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(),tp=b(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.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.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+")"},t.rectText));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(pd,i({},r,{legends:o}))},n._getColorScale=function(){var e=n.props,t=e.domainValuesForColorScale,r=e.rangeValuesForColorScale;return Ss().domain(t).range(r)},n._getXIndex=function(e){return n._xAxisType===Ku.DateAxis?""+e.getTime():n._xAxisType===Ku.StringAxis?e:n._xAxisType===Ku.NumericAxis?""+e:""},n._getYIndex=function(e){return n._yAxisType===Zu.DateAxis?""+e.getTime():n._yAxisType===Zu.StringAxis?e:n._yAxisType===Zu.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 c={},u={},d={};return l.forEach((function(e){var t=n._getXIndex(e.x),r=n._getYIndex(e.y);d[t]="1",u[r]="1",c[r]?c[r]=a(c[r],[e]):c[r]=[e]})),Object.keys(c).forEach((function(e){c[e].sort((function(e,t){return n._xAxisType===Ku.StringAxis?e.x.toLowerCase()>t.x.toLowerCase()?1:-1:n._xAxisType===Ku.DateAxis?e.x.getTime()-t.x.getTime():n._xAxisType===Ku.NumericAxis?+e.x>+t.x?1:-1:e.x>t.x?1:-1})).forEach((function(e){n._xAxisType===Ku.DateAxis&&(e.x=n._getStringFormattedDate(e.x,t)),n._xAxisType===Ku.NumericAxis&&(e.x=n._getStringFormattedNumber(e.x,r)),n._xAxisType===Ku.StringAxis&&(e.x=n._getFormattedLabelForXAxisDataPoint(e.x)),n._yAxisType===Zu.DateAxis&&(e.y=n._getStringFormattedDate(e.y,o)),n._yAxisType===Zu.NumericAxis&&(e.y=n._getStringFormattedNumber(e.y,s)),n._yAxisType===Zu.StringAxis&&(e.y=n._getFormattedLabelForYAxisDataPoint(e.y))}))})),Object.keys(c).forEach((function(e){n._yAxisType===Zu.DateAxis?c[n._getStringFormattedDate(e,o)]=c[e]:n._yAxisType===Zu.NumericAxis?c[""+n._getStringFormattedNumber(e,s)]=c[e]:c[n._getFormattedLabelForYAxisDataPoint(e)]=c[e]})),{dataSet:c,yAxisPoints:n._getYAxisDataPoints(u),xAxisPoints:n._getXAxisDataPoints(d)}},n._getXAxisDataPoints=function(e){return Object.keys(e).sort((function(e,t){return n._xAxisType===Ku.DateAxis||n._xAxisType===Ku.NumericAxis?+e-+t:e.toLowerCase()>t.toLowerCase()?1:-1})).map((function(e){return n._xAxisType===Ku.DateAxis?n._getStringFormattedDate(e,n.props.xAxisDateFormatString):n._xAxisType===Ku.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===Zu.DateAxis||n._yAxisType===Zu.NumericAxis?+e-+t:e.toLowerCase()>t.toLowerCase()?1:-1})).map((function(e){return n._yAxisType===Zu.DateAxis?n._getStringFormattedDate(e,n.props.yAxisDateFormatString):n._yAxisType===Zu.NumericAxis?n._getStringFormattedNumber(e,n.props.yAxisNumberFormatString):n._getFormattedLabelForYAxisDataPoint(e)}))},n._getStringFormattedDate=function(e,t){var n=new Date;return n.setTime(+e),vl(t||"%b/%d")(n)},n._getStringFormattedNumber=function(e,t){return _s(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=ad(o,!0),n._yAxisType=ad(l,!1),n._createSet=Wn((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 c=this._createSet(n,r,o,a,l),u=c.dataSet,d=c.xAxisPoints,h=c.yAxisPoints;this._dataSet=u,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:4,onDismiss:this._closeCallout}),cd(this.state.callOutAccessibilityData,"text",!1)),{preventDismissOnLostFocus:!0}),f=i(i({},this.state.ratio&&{ratio:this.state.ratio}),{descriptionMessage:this.state.descriptionMessage});return s.createElement(th,i({},this.props,{points:n,chartType:Xu.HeatMapChart,xAxisType:Ku.StringAxis,yAxisType:Zu.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:hi.bidirectional},legendBars:this._createLegendBars(),children:function(t){return e._xAxisScale=t.xScale,e._yAxisScale=t.yScale,e._createRectangles()}}))},t}(s.Component),(function(e){var t=e.theme;return{root:{},text:[t.fonts.medium,{pointerEvents:"none",fill:t.palette.white}],subComponentStyles:{cartesianStyles:{},calloutStyles:{root:{maxWidth:"238px"}}}}}));yr("@fluentui/react-charting","5.3.60"),FluentUIReactCharting=t}();
3
3
  //# sourceMappingURL=react-charting.js.map