@fluentui/react-charting 5.16.20 → 5.16.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.json +16 -1
- package/CHANGELOG.md +11 -2
- package/dist/react-charting.js +1 -1
- package/dist/react-charting.min.js +1 -1
- package/lib/components/LineChart/LineChart.base.d.ts +6 -2
- package/lib/components/LineChart/LineChart.base.js +62 -46
- package/lib/components/LineChart/LineChart.base.js.map +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/lib-amd/components/LineChart/LineChart.base.d.ts +6 -2
- package/lib-amd/components/LineChart/LineChart.base.js +62 -46
- package/lib-amd/components/LineChart/LineChart.base.js.map +1 -1
- package/lib-amd/version.js +1 -1
- package/lib-amd/version.js.map +1 -1
- package/lib-commonjs/components/LineChart/LineChart.base.d.ts +6 -2
- package/lib-commonjs/components/LineChart/LineChart.base.js +62 -46
- package/lib-commonjs/components/LineChart/LineChart.base.js.map +1 -1
- package/lib-commonjs/version.js +1 -1
- package/lib-commonjs/version.js.map +1 -1
- package/package.json +1 -1
package/dist/react-charting.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
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 Af},CartesianChart:function(){return Vp},ChartHoverCard:function(){return fd},DataVizPalette:function(){return Qp},DonutChart:function(){return wp},GroupedVerticalBarChart:function(){return eg},HeatMapChart:function(){return rg},HorizontalBarChart:function(){return Zd},HorizontalBarChartVariant:function(){return pe},Legends:function(){return Bh},LineChart:function(){return cf},MultiStackedBarChart:function(){return Uf},MultiStackedBarChartVariant:function(){return Pf},NodesComposition:function(){return Hg},PieChart:function(){return Of},SankeyChart:function(){return Eg},Shape:function(){return Vh},Sparkline:function(){return jg},StackedBarChart:function(){return Rf},Textbox:function(){return Gp},TreeChart:function(){return Ug},TreeTraverse:function(){return Rg},VerticalBarChart:function(){return Xf},VerticalStackedBarChart:function(){return Zf},getChartHoverCardStyles:function(){return pd},getColorFromToken:function(){return af},getNextColor:function(){return of}});var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},n(e,t)};function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var i=function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},i.apply(this,arguments)};function o(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function a(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}Object.create,Object.create;var s=React;function l(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(e&&1===e.length&&e[0]&&!e[0].subComponentStyles)return e[0];for(var n={},r={},i=0,o=e;i<o.length;i++){var s=o[i];if(s)for(var u in s)if(s.hasOwnProperty(u)){if("subComponentStyles"===u&&void 0!==s.subComponentStyles){var c=s.subComponentStyles;for(var d in c)c.hasOwnProperty(d)&&(r.hasOwnProperty(d)?r[d].push(c[d]):r[d]=[c[d]]);continue}var h=n[u],p=s[u];n[u]=void 0===h?p:a(a([],Array.isArray(h)?h:[h]),Array.isArray(p)?p:[p])}}if(Object.keys(r).length>0){n.subComponentStyles={};var f=n.subComponentStyles,g=function(e){if(r.hasOwnProperty(e)){var t=r[e];f[e]=function(e){return l.apply(void 0,t.map((function(t){return"function"==typeof t?t(e):t})))}}};for(var d in r)g(d)}return n}function u(){return"undefined"!=typeof window&&!(!window.document||!window.document.createElement)}var c=void 0;try{c=window}catch(e){}function d(e){if(u()&&void 0!==c){var t=e;return t&&t.ownerDocument&&t.ownerDocument.defaultView?t.ownerDocument.defaultView:c}}var h=0,p=function(){function e(){}return e.getValue=function(e,t){var n=f();return void 0===n[e]&&(n[e]="function"==typeof t?t():t),n[e]},e.setValue=function(e,t){var n=f(),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=g();t||(t=e.__id__=String(h++)),n[t]=e},e.removeChangeListener=function(e){delete g()[e.__id__]},e}();function f(){var e,t=d()||{};return t.__globalSettings__||(t.__globalSettings__=((e={}).__callbacks__={},e)),t.__globalSettings__}function g(){return f().__callbacks__}var m={settings:{},scopedSettings:{},inCustomizerContext:!1},v=p.getValue("customizations",{settings:{},scopedSettings:{},inCustomizerContext:!1}),_=[],y=function(){function e(){}return e.reset=function(){v.settings={},v.scopedSettings={}},e.applySettings=function(t){v.settings=i(i({},v.settings),t),e._raiseChange()},e.applyScopedSettings=function(t,n){v.scopedSettings[t]=i(i({},v.scopedSettings[t]),n),e._raiseChange()},e.getSettings=function(e,t,n){void 0===n&&(n=m);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){_.push(e)},e.unobserve=function(e){_=_.filter((function(t){return t!==e}))},e._raiseChange=function(){e._suppressUpdates||_.forEach((function(e){return e()}))},e}(),x=s.createContext({customizations:{inCustomizerContext:!1,settings:{},scopedSettings:{}}});var b=["theme","styles"];function C(e,t,n,r,a){var u=(r=r||{scope:"",fields:void 0}).scope,c=r.fields,d=void 0===c?b:c,h=s.forwardRef((function(r,a){var c,h,p,f,g,m,v=s.useRef(),_=(c=d,h=u,p=s.useState(0)[1],f=function(){return p((function(e){return++e}))},g=s.useContext(x).customizations,m=g.inCustomizerContext,s.useEffect((function(){return m||y.observe(f),function(){m||y.unobserve(f)}}),[m]),y.getSettings(c,h,g)),b=_.styles,C=(_.dir,o(_,["styles","dir"])),k=n?n(r):void 0,E=v.current&&v.current.__cachedInputs__||[],S=r.styles;if(!v.current||b!==E[1]||S!==E[2]){var L=function(e){return function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=[],i=0,o=t;i<o.length;i++){var a=o[i];a&&r.push("function"==typeof a?a(e):a)}return 1===r.length?r[0]:r.length?l.apply(void 0,r):{}}(e,t,b,S)};L.__cachedInputs__=[t,b,S],L.__noStyleOverride__=!b&&!S,v.current=L}return s.createElement(e,i({ref:a},C,k,r,{styles:v.current}))}));h.displayName="Styled"+(e.displayName||e.name);var p=a?s.memo(h):h;return h.displayName&&(p.displayName=h.displayName),p}var k,E="undefined"!=typeof navigator&&/rv:11.0/.test(navigator.userAgent),S={};try{S=window||{}}catch(P){}var L=function(){function e(e,t){var n,r,o,a,s,l;this._rules=[],this._preservedRules=[],this._counter=0,this._keyToClassName={},this._onInsertRuleCallbacks=[],this._onResetCallbacks=[],this._classNameToArgs={},this._config=i({injectionMode:"undefined"==typeof document?0:1,defaultPrefix:"css",namespace:void 0,cspSettings:void 0},e),this._classNameToArgs=null!==(n=null==t?void 0:t.classNameToArgs)&&void 0!==n?n:this._classNameToArgs,this._counter=null!==(r=null==t?void 0:t.counter)&&void 0!==r?r:this._counter,this._keyToClassName=null!==(a=null!==(o=this._config.classNameCache)&&void 0!==o?o:null==t?void 0:t.keyToClassName)&&void 0!==a?a:this._keyToClassName,this._preservedRules=null!==(s=null==t?void 0:t.preservedRules)&&void 0!==s?s:this._preservedRules,this._rules=null!==(l=null==t?void 0:t.rules)&&void 0!==l?l:this._rules}return e.getInstance=function(){if(!(k=S.__stylesheet__)||k._lastStyleElement&&k._lastStyleElement.ownerDocument!==document){var t=(null==S?void 0:S.FabricConfig)||{},n=new e(t.mergeStyles,t.serializedStylesheet);k=n,S.__stylesheet__=n}return k},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(),E||window.requestAnimationFrame((function(){e._styleElement=void 0}))),this._styleElement},e.prototype._createStyleElement=function(){var e=document.head,t=document.createElement("style"),n=null;t.setAttribute("data-merge-styles","true");var r=this._config.cspSettings;if(r&&r.nonce&&t.setAttribute("nonce",r.nonce),this._lastStyleElement)n=this._lastStyleElement.nextElementSibling;else{var i=this._findPlaceholderStyleTag();n=i?i.nextElementSibling:e.childNodes[0]}return e.insertBefore(t,e.contains(n)?n:null),this._lastStyleElement=t,t},e.prototype._findPlaceholderStyleTag=function(){var e=document.head;return e?e.querySelector("style[data-merge-styles]"):null},e}();function A(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=[],r=[],i=L.getInstance();function o(e){for(var t=0,a=e;t<a.length;t++){var s=a[t];if(s)if("string"==typeof s)if(s.indexOf(" ")>=0)o(s.split(" "));else{var l=i.argsFromClassName(s);l?o(l):-1===n.indexOf(s)&&n.push(s)}else Array.isArray(s)?o(s):"object"==typeof s&&r.push(s)}}return o(e),{classes:n,objects:r}}var w,D={},T={"user-select":1};function M(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(T[r]){var i=e[t+1];T[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 P,N=["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=N.indexOf(n)>-1,o=n.indexOf("--")>-1,a=i||o?"":"px";e[t+1]=""+r+a}}var I="left",O="right",V=((P={}).left=O,P.right=I,P),H={"w-resize":"e-resize","sw-resize":"se-resize","nw-resize":"ne-resize"};function R(e,t,n){if(e.rtl){var r=t[n];if(!r)return;var i=t[n+1];if("string"==typeof i&&i.indexOf("@noflip")>=0)t[n+1]=i.replace(/\s*(?:\/\*\s*)?\@noflip\b(?:\s*\*\/)?\s*?/g,"");else if(r.indexOf(I)>=0)t[n]=r.replace(I,O);else if(r.indexOf(O)>=0)t[n]=r.replace(O,I);else if(String(i).indexOf(I)>=0)t[n+1]=i.replace(I,O);else if(String(i).indexOf(O)>=0)t[n+1]=i.replace(O,I);else if(V[r])t[n]=V[r];else if(H[i])t[n+1]=H[i];else switch(r){case"margin":case"padding":t[n+1]=function(e){if("string"==typeof e){var t=e.split(" ");if(4===t.length)return t[0]+" "+t[3]+" "+t[2]+" "+t[1]}return e}(i);break;case"box-shadow":t[n+1]=function(e,t){var n=e.split(" "),r=parseInt(n[0],10);return n[0]=n[0].replace(String(r),String(-1*r)),n.join(" ")}(i)}}}function B(e){var t=e&&e["&"];return t?t.displayName:void 0}var W,z=/\:global\((.+?)\)/g;function U(e,t){return e.indexOf(":global(")>=0?e.replace(z,"$1"):0===e.indexOf(":")?t+e:e.indexOf("&")<0?t+" "+e:e}function Y(e,t,n,r){void 0===t&&(t={__order:[]}),0===n.indexOf("@")?q([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 q([r],t,U(n,e))})):q([r],t,U(n,e))}function q(e,t,n){void 0===t&&(t={__order:[]}),void 0===n&&(n="&");var r=L.getInstance(),i=t[n];i||(i={},t[n]=i,t.__order.push(n));for(var o=0,a=e;o<a.length;o++){var s=a[o];if("string"==typeof s){var l=r.argsFromClassName(s);l&&q(l,t,n)}else if(Array.isArray(s))q(s,t,n);else for(var u in s)if(s.hasOwnProperty(u)){var c=s[u];if("selectors"===u){var d=s.selectors;for(var h in d)d.hasOwnProperty(h)&&Y(n,t,h,d[h])}else"object"==typeof c?null!==c&&Y(n,t,u,c):void 0!==c&&("margin"===u||"padding"===u?j(i,u,c):i[u]=c)}}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 X(e,t){for(var n=[e.rtl?"rtl":"ltr"],r=!1,i=0,o=t.__order;i<o.length;i++){var a=o[i];n.push(a);var s=t[a];for(var l in s)s.hasOwnProperty(l)&&void 0!==s[l]&&(r=!0,n.push(l,s[l]))}return r?n.join(""):void 0}function K(e,t){return t<=0?"":1===t?e:e+K(e,t-1)}function G(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]=D[i]=D[i]||i.replace(/([A-Z])/g,"-$1").toLowerCase()),F(o,s),R(e,o,s),M(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=q(t),i=X(e,r);if(i){var o=L.getInstance(),a={className:o.classNameFromKey(i),key:i,args:t};if(!a.className){a.className=o.getClassName(B(r));for(var s=[],l=0,u=r.__order;l<u.length;l++){var c=u[l];s.push(c,G(e,r[c]))}a.rulesToInsert=s}return a}}function $(e,t){void 0===t&&(t=1);var n=L.getInstance(),r=e.className,i=e.key,o=e.args,a=e.rulesToInsert;if(a){for(var s=0;s<a.length;s+=2){var l=a[s+1];if(l){var u=a[s],c=(u=u.replace(/&/g,K("."+e.className,t)))+"{"+l+"}"+(0===u.indexOf("@")?"}":"");n.insertRule(c)}}n.cacheClassName(r,i,o,a)}}function Q(e){if(u()&&"undefined"!=typeof document){var t=e;return t&&t.ownerDocument?t.ownerDocument:document}}function J(e){var t=null;try{var n=d();t=n?n.sessionStorage.getItem(e):null}catch(e){}return t}function ee(e){W!==e&&(W=e)}function te(){return void 0===W&&(W="undefined"!=typeof document&&!!document.documentElement&&"rtl"===document.documentElement.getAttribute("dir")),W}function ne(){return{rtl:te()}}W=te();var re,ie="isRTL";function oe(e){if(void 0===e&&(e={}),void 0!==e.rtl)return e.rtl;if(void 0===re){var t=J(ie);null!==t&&function(e,t){void 0===t&&(t=!1);var n=Q();n&&n.documentElement.setAttribute("dir",e?"rtl":"ltr"),t&&function(e,t){var n;try{null===(n=d())||void 0===n||n.sessionStorage.setItem("isRTL",t)}catch(e){}}(0,e?"1":"0"),ee(re=e)}(re="1"===t);var n=Q();void 0===re&&n&&ee(re="rtl"===(n.body&&n.body.getAttribute("dir")||n.documentElement.getAttribute("dir")))}return!!re}var ae=0,se=L.getInstance();se&&se.onReset&&se.onReset((function(){return ae++}));var le="__retval__";function ue(e){void 0===e&&(e={});var t=new Map,n=0,r=0,i=ae;return function(o,a){var s;if(void 0===a&&(a={}),e.useStaticStyles&&"function"==typeof o&&o.__noStyleOverride__)return o(a);r++;var u=t,c=a.theme,h=c&&void 0!==c.rtl?c.rtl:oe(),p=e.disableCaching;if(i!==ae&&(i=ae,t=new Map,n=0),e.disableCaching||(u=de(t,o),u=de(u,a)),!p&&u[le]||(u[le]=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=A(r[o]),s=a.classes,u=a.objects;(null==u?void 0:u.length)?(h=Z(t||{},{displayName:o},u))&&(i.push(h),n[o]=s.concat([h.className]).join(" ")):n[o]=s.join(" ")}for(var c=0,d=i;c<d.length;c++){var h;(h=d[c])&&$(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=d();(null===(s=null==f?void 0:f.FabricConfig)||void 0===s?void 0:s.enableClassNameCacheFullWarning)&&(console.warn("Styles are being recalculated too frequently. Cache miss rate is "+n+"/"+r+"."),console.trace()),t.clear(),n=0,e.disableCaching=!0}return u[le]}}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 de(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 he=d()||{};void 0===he.__currentId__&&(he.__currentId__=0);var pe,fe=!1;function ge(e){if(!fe){var t=L.getInstance();t&&t.onReset&&t.onReset(me),fe=!0}return(void 0===e?"id__":e)+he.__currentId__++}function me(e){void 0===e&&(e=0),he.__currentId__=e}function ve(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 _e(e,t){var n=ve(e,t);if(!(n<0))return e[n]}function ye(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.PartToWhole="part-to-whole",e.AbsoluteScale="absolute-scale"}(pe||(pe={}));function xe(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 be(e,t){return e&&e!==document.body?t(e)?e:be(xe(e),t):null}function Ce(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=xe(t);if(i===e){r=!0;break}t=i}else e.contains&&(r=e.contains(t));return r}function ke(e,t){var n=Se(e,e,!0,!1,!1,!0,void 0,void 0,t);return!!n&&(Pe(n),!0)}function Ee(e,t,n,r,i,o,a,s){if(!t||!a&&t===e)return null;var l=Le(t);if(i&&l&&(o||!De(t)&&!Te(t))){var u=Ee(e,t.lastElementChild,!0,!0,!0,o,a,s);if(u){if(s&&we(u,!0)||!s)return u;var c=Ee(e,u.previousElementSibling,!0,!0,!0,o,a,s);if(c)return c;for(var d=u.parentElement;d&&d!==t;){var h=Ee(e,d.previousElementSibling,!0,!0,!0,o,a,s);if(h)return h;d=d.parentElement}}}return n&&l&&we(t,s)?t:Ee(e,t.previousElementSibling,!0,!0,!0,o,a,s)||(r?null:Ee(e,t.parentElement,!0,!1,!1,o,a,s))}function Se(e,t,n,r,i,o,a,s,l){if(!t||t===e&&i&&!a)return null;var u=(l?Ae:Le)(t);if(n&&u&&we(t,s))return t;if(!i&&u&&(o||!De(t)&&!Te(t))){var c=Se(e,t.firstElementChild,!0,!0,!1,o,a,s,l);if(c)return c}return t===e?null:Se(e,t.nextElementSibling,!0,!0,!1,o,a,s,l)||(r?null:Se(e,t.parentElement,!1,!1,!0,o,a,s,l))}function Le(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 Ae(e){return!!e&&Le(e)&&!e.hidden&&"hidden"!==window.getComputedStyle(e).visibility}function we(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 De(e){return!!(e&&e.getAttribute&&e.getAttribute("data-focuszone-id"))}function Te(e){return!(!e||!e.getAttribute||"true"!==e.getAttribute("data-is-sub-focuszone"))}var Me=void 0;function Pe(e){if(e){if(Me)return void(Me=e);Me=e;var t=d(e);t&&t.requestAnimationFrame((function(){Me&&Me.focus(),Me=void 0}))}}function Ne(e,t,n,r){return e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n,r)}}function Fe(e,t){for(var n=i({},t),r=0,o=Object.keys(e);r<o.length;r++){var a=o[r];void 0===n[a]&&(n[a]=e[a])}return n}var Ie,Oe,Ve,He=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n={},r=0,i=e;r<i.length;r++)for(var o=i[r],a=Array.isArray(o)?o:Object.keys(o),s=0,l=a;s<l.length;s++){var u=l[s];n[u]=1}return n},Re=He(["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"]),Be=He(["accessKey","children","className","contentEditable","dir","draggable","hidden","htmlFor","id","lang","ref","role","style","tabIndex","title","translate","spellCheck","name"]),We=He(Be,Re),ze=(He(We,["form"]),He(We,["height","loop","muted","preload","src","width"])),Ue=(He(ze,["poster"]),He(We,["start"]),He(We,["value"]),He(We,["download","href","hrefLang","media","rel","target","type"]),He(We,["autoFocus","disabled","form","formAction","formEncType","formMethod","formNoValidate","formTarget","type","value"])),Ye=(He(Ue,["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"]),He(Ue,["autoCapitalize","cols","dirname","form","maxLength","minLength","placeholder","readOnly","required","rows","wrap"]),He(Ue,["form","multiple","required"]),He(We,["selected","value"]),He(We,["cellPadding","cellSpacing"]),He(We,["rowSpan","scope"]),He(We,["colSpan","headers","rowSpan","scope"]),He(We,["span"]),He(We,["span"]),He(We,["acceptCharset","action","encType","encType","method","noValidate","target"]),He(We,["allow","allowFullScreen","allowPaymentRequest","allowTransparency","csp","height","importance","referrerPolicy","sandbox","src","srcDoc","width"]),He(We,["alt","crossOrigin","height","src","srcSet","useMap","width"]),We);function qe(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 je(){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 Xe(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return Ke.apply(this,[null,e].concat(t))}function Ke(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 Ge(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Ze(e,ne())}function Ze(e,t){var n=A(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?($(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"}(Ie||(Ie={})),function(e){e[e.top=0]="top",e[e.bottom=1]="bottom",e[e.start=2]="start",e[e.end=3]="end"}(Oe||(Oe={})),Ge({overflow:"hidden !important"});var $e="data-is-scrollable";function Qe(e){for(var t=e,n=Q(e);t&&t!==n.body;){if("true"===t.getAttribute($e))return t;t=t.parentElement}for(t=e;t&&t!==n.body;){if("false"!==t.getAttribute($e)){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=d(e)),t}var Je,et=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 tt(e,t,n){return{targetEdge:e,alignmentEdge:t,isAuto:n}}var nt=((Je={})[0]=tt(Ie.top,Ie.left),Je[1]=tt(Ie.top),Je[2]=tt(Ie.top,Ie.right),Je[3]=tt(Ie.top,void 0,!0),Je[4]=tt(Ie.bottom,Ie.left),Je[5]=tt(Ie.bottom),Je[6]=tt(Ie.bottom,Ie.right),Je[7]=tt(Ie.bottom,void 0,!0),Je[8]=tt(Ie.left,Ie.top),Je[9]=tt(Ie.left),Je[10]=tt(Ie.left,Ie.bottom),Je[11]=tt(Ie.right,Ie.top),Je[12]=tt(Ie.right),Je[13]=tt(Ie.right,Ie.bottom),Je);function rt(e,t){return!(e.top<t.top||e.bottom>t.bottom||e.left<t.left||e.right>t.right)}function it(e,t){var n=[];return e.top<t.top&&n.push(Ie.top),e.bottom>t.bottom&&n.push(Ie.bottom),e.left<t.left&&n.push(Ie.left),e.right>t.right&&n.push(Ie.right),n}function ot(e,t){return e[Ie[t]]}function at(e,t,n){return e[Ie[t]]=n,e}function st(e,t){var n=_t(t);return(ot(e,n.positiveEdge)+ot(e,n.negativeEdge))/2}function lt(e,t){return e>0?t:-1*t}function ut(e,t){return lt(e,ot(t,e))}function ct(e,t,n){return lt(n,ot(e,n)-ot(t,n))}function dt(e,t,n,r){void 0===r&&(r=!0);var i=ot(e,t)-n,o=at(e,t,n);return r&&(o=at(e,-1*t,ot(e,-1*t)-i)),o}function ht(e,t,n,r){return void 0===r&&(r=0),dt(e,n,ot(t,n)+lt(n,r))}function pt(e,t,n){return ut(n,e)>ut(n,t)}function ft(e,t){for(var n=0,r=0,i=it(e,t);r<i.length;r++){var o=i[r];n+=Math.pow(ct(e,t,o),2)}return n}function gt(e,t,n,r){for(var i=0,o=e;i<o.length;i++){var a=o[i],s=void 0;r&&r===-1*a?(s=dt(t.elementRectangle,a,ot(n,a),!1),t.forcedInBounds=!0):pt(s=ht(t.elementRectangle,n,a),n,-1*a)||(s=dt(s,-1*a,ot(n,-1*a),!1),t.forcedInBounds=!0),t.elementRectangle=s}return t}function mt(e,t,n){var r=_t(t).positiveEdge;return dt(e,r,n-(st(e,t)-ot(e,r)))}function vt(e,t,n,r,i){void 0===r&&(r=0);var o=new et(e.left,e.right,e.top,e.bottom),a=n.alignmentEdge,s=n.targetEdge,l=i?s:-1*s;return o=i?ht(o,t,s,r):function(e,t,n,r){void 0===r&&(r=0);var i=lt(-1*n,r);return dt(e,-1*n,ot(t,n)+i)}(o,t,s,r),o=a?ht(o,t,a):mt(o,l,st(t,s))}function _t(e){return e===Ie.top||e===Ie.bottom?{positiveEdge:Ie.left,negativeEdge:Ie.right}:{positiveEdge:Ie.top,negativeEdge:Ie.bottom}}function yt(e,t,n){return n&&Math.abs(ct(e,n,t))>Math.abs(ct(e,n,-1*t))?-1*t:t}function xt(e,t,n,r,i,o,a,s){var l,u={},c=kt(t),d=o?n:-1*n,h=i||_t(n).positiveEdge;return a&&!function(e,t,n){return void 0!==n&&ot(e,t)===ot(n,t)}(e,(l=h,-1*l),r)||(h=yt(e,h,r)),u[Ie[d]]=ct(e,c,d),u[Ie[h]]=ct(e,c,h),s&&(u[Ie[-1*d]]=ct(e,c,-1*d),u[Ie[-1*h]]=ct(e,c,-1*h)),u}function bt(e,t,n){var r=st(t,e),i=st(n,e),o=_t(e),a=o.positiveEdge,s=o.negativeEdge;return r<=i?a:s}function Ct(e,t,n,r,i,o,a){var s=vt(e,t,r,i,a);return rt(s,n)?{elementRectangle:s,targetEdge:r.targetEdge,alignmentEdge:r.alignmentEdge}:function(e,t,n,r,i,o,a){void 0===i&&(i=0);var s=r.alignmentEdge,l=r.alignTargetEdge,u={elementRectangle:e,targetEdge:r.targetEdge,alignmentEdge:s};o||a||(u=function(e,t,n,r,i){void 0===i&&(i=0);var o=[Ie.left,Ie.right,Ie.bottom,Ie.top];oe()&&(o[0]*=-1,o[1]*=-1);for(var a,s=e,l=r.targetEdge,u=r.alignmentEdge,c=l,d=u,h=0;h<4;h++){if(pt(s,n,l))return{elementRectangle:s,targetEdge:l,alignmentEdge:u};var p=ft(s,n);(!a||p<a)&&(a=p,c=l,d=u),o.splice(o.indexOf(l),1),o.length>0&&(o.indexOf(-1*l)>-1?l*=-1:(u=l,l=o.slice(-1)[0]),s=vt(e,t,{targetEdge:l,alignmentEdge:u},i))}return{elementRectangle:s=vt(e,t,{targetEdge:c,alignmentEdge:d},i),targetEdge:c,alignmentEdge:d}}(e,t,n,r,i));var c=it(u.elementRectangle,n),d=o?-u.targetEdge:void 0;if(c.length>0)if(l)if(u.alignmentEdge&&c.indexOf(-1*u.alignmentEdge)>-1){var h=function(e,t,n,r){var i=e.alignmentEdge,o=e.targetEdge,a=-1*i;return{elementRectangle:vt(e.elementRectangle,t,{targetEdge:o,alignmentEdge:a},n,r),targetEdge:o,alignmentEdge:a}}(u,t,i,a);if(rt(h.elementRectangle,n))return h;u=gt(it(h.elementRectangle,n),u,n,d)}else u=gt(c,u,n,d);else u=gt(c,u,n,d);return u}(s,t,n,r,i,o,a)}function kt(e){var t=e.getBoundingClientRect();return new et(t.left,t.right,t.top,t.bottom)}function Et(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 et(r.clientX,r.clientX,r.clientY,r.clientY)}else if(t.getBoundingClientRect)n=kt(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 et(o,s,a,l)}if(!rt(n,e))for(var u=0,c=it(n,e);u<c.length;u++){var d=c[u];n[Ie[d]]=e[Ie[d]]}}else n=new et(0,0,0,0);return n}(n,e.target),s=function(e,t,n,r,i){return e.isAuto&&(e.alignmentEdge=bt(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({},nt[e]);return oe()?(r.alignmentEdge&&r.alignmentEdge%2==0&&(r.alignmentEdge=-1*r.alignmentEdge),void 0!==t?nt[t]:r):r}(e.directionalHint,e.directionalHintForRTL,r),a,n,e.coverTarget,e.alignTargetEdge),l=Ct(kt(t),a,n,s,o,e.directionalHintFixed,e.coverTarget);return i(i({},l),{targetRectangle:a})}function St(e,t,n,r,o){var a=e.isBeakVisible&&e.beakWidth||0,s=function(e){return Math.sqrt(e*e*2)}(a)/2+(e.gapSpace?e.gapSpace:0),l=e;l.gapSpace=s;var u,c,d,h,p,f,g,m,v,_=e.bounds?(v=e.bounds,new et(v.left,v.right,v.top,v.bottom)):new et(0,window.innerWidth-function(){if(void 0===Ve){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),Ve=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return Ve}(),0,window.innerHeight),y=Et(l,n,_,r),x=(u=y,c=function(e,t){var n=t.targetRectangle,r=_t(t.targetEdge),i=r.positiveEdge,o=r.negativeEdge,a=st(n,t.targetEdge),s=new et(e/2,t.elementRectangle.width-e/2,e/2,t.elementRectangle.height-e/2),l=new et(0,e,0,e);return pt(l=mt(l=dt(l,-1*t.targetEdge,-e/2),-1*t.targetEdge,a-ut(i,t.elementRectangle)),s,i)?pt(l,s,o)||(l=ht(l,s,o)):l=ht(l,s,i),l}(a,y),d=_,h=-1*u.targetEdge,p=new et(0,u.elementRectangle.width,0,u.elementRectangle.height),f={},g=yt(u.elementRectangle,u.alignmentEdge?u.alignmentEdge:_t(h).positiveEdge,d),m=ct(u.elementRectangle,u.targetRectangle,h)>Math.abs(ot(c,h)),f[Ie[h]]=ot(c,h),f[Ie[g]]=ct(c,p,g),{elementPosition:i({},f),closestEdge:bt(u.targetEdge,c,p),targetEdge:h,hideBeak:!m});return i(i({},function(e,t,n,r,i){return{elementPosition:xt(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 Lt=["TEMPLATE","STYLE","SCRIPT"];function At(e){var t=Q(e);if(!t)return function(){};for(var n=[];e!==t.body&&e.parentElement;){for(var r=0,i=e.parentElement.children;r<i.length;r++){var o=i[r],a=o.getAttribute("aria-hidden");o!==e&&"true"!==(null==a?void 0:a.toLowerCase())&&-1===Lt.indexOf(o.tagName)&&n.push([o,a])}e=e.parentElement}return n.forEach((function(e){e[0].setAttribute("aria-hidden","true")})),function(){!function(e){e.forEach((function(e){var t=e[0],n=e[1];n?t.setAttribute("aria-hidden",n):t.removeAttribute("aria-hidden")}))}(n),n=[]}}var wt=27,Dt=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=d(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=d(t);this._immediateIds&&this._immediateIds[e]&&(n.clearTimeout(e),delete this._immediateIds[e])},e.prototype.setInterval=function(e,t){var n=this,r=0;return this._isDisposed||(this._intervalIds||(this._intervalIds={}),r=setInterval((function(){try{e.apply(n._parent)}catch(e){n._logError(e)}}),t),this._intervalIds[r]=!0),r},e.prototype.clearInterval=function(e){this._intervalIds&&this._intervalIds[e]&&(clearInterval(e),delete this._intervalIds[e])},e.prototype.throttle=function(e,t,n){var r=this;if(this._isDisposed)return this._noop;var i,o,a=t||0,s=!0,l=!0,u=0,c=null;n&&"boolean"==typeof n.leading&&(s=n.leading),n&&"boolean"==typeof n.trailing&&(l=n.trailing);var d=function(t){var n=Date.now(),h=n-u,p=s?a-h:a;return h>=a&&(!t||s)?(u=n,c&&(r.clearTimeout(c),c=null),i=e.apply(r._parent,o)):null===c&&l&&(c=r.setTimeout(d,p)),i};return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return o=e,d(!0)}},e.prototype.debounce=function(e,t,n){var r=this;if(this._isDisposed){var i=function(){};return i.cancel=function(){},i.flush=function(){return null},i.pending=function(){return!1},i}var o,a,s=t||0,l=!1,u=!0,c=null,d=0,h=Date.now(),p=null;n&&"boolean"==typeof n.leading&&(l=n.leading),n&&"boolean"==typeof n.trailing&&(u=n.trailing),n&&"number"==typeof n.maxWait&&!isNaN(n.maxWait)&&(c=n.maxWait);var f=function(e){p&&(r.clearTimeout(p),p=null),h=e},g=function(t){f(t),o=e.apply(r._parent,a)},m=function(e){var t=Date.now(),n=!1;e&&(l&&t-d>=s&&(n=!0),d=t);var i=t-d,a=s-i,f=t-h,v=!1;return null!==c&&(f>=c&&p?v=!0:a=Math.min(a,c-f)),i>=s||v||n?g(t):null!==p&&e||!u||(p=r.setTimeout(m,a)),o},v=function(){return!!p},_=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return a=e,m(!0)};return _.cancel=function(){v()&&f(Date.now())},_.flush=function(){return v()&&g(Date.now()),o},_.pending=v,_},e.prototype.requestAnimationFrame=function(e,t){var n=this,r=0,i=d(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=d(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 Tt(){var e=s.useRef();return e.current||(e.current=new Dt),s.useEffect((function(){return function(){var t;null===(t=e.current)||void 0===t||t.dispose(),e.current=void 0}}),[]),e.current}function Mt(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 Ne(n,t,(function(e){return i.current(e)}),r)}),[e,t,r])}function Pt(){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 Nt=s.createContext({window:"object"==typeof window?window:void 0}),Ft=function(){return s.useContext(Nt).window};function It(e){var t=e.originalElement,n=e.containsFocus;t&&n&&t!==d()&&setTimeout((function(){var e;null===(e=t.focus)||void 0===e||e.call(t)}),0)}var Ot=s.forwardRef((function(e,t){var n=Fe({shouldRestoreFocus:!0,enableAriaHiddenSiblings:!0},e),r=s.useRef(),o=Pt(r,t);!function(e,t){var n="true"===String(e["aria-modal"]).toLowerCase()&&e.enableAriaHiddenSiblings;s.useEffect((function(){if(n&&t.current)return At(t.current)}),[t,n])}(n,r),function(e,t){var n=e.onRestoreFocus,r=void 0===n?It:n,i=s.useRef(),o=s.useRef(!1);s.useEffect((function(){return i.current=Q().activeElement,function(e){var t=Q(e),n=t&&t.activeElement;return!(!n||!Ce(e,n))}(t.current)&&(o.current=!0),function(){var e;null==r||r({originalElement:i.current,containsFocus:o.current,documentContainsFocus:(null===(e=Q())||void 0===e?void 0:e.hasFocus())||!1}),i.current=void 0}}),[]),Mt(t,"focus",s.useCallback((function(){o.current=!0}),[]),!0),Mt(t,"blur",s.useCallback((function(e){t.current&&e.relatedTarget&&!t.current.contains(e.relatedTarget)&&(o.current=!1)}),[]),!0)}(n,r);var a=n.role,l=n.className,u=n.ariaLabel,c=n.ariaLabelledBy,d=n.ariaDescribedBy,h=n.style,p=n.children,f=n.onDismiss,g=function(e,t){var n=Tt(),r=s.useState(!1),i=r[0],o=r[1];return s.useEffect((function(){return n.requestAnimationFrame((function(){var n;if(!e.style||!e.style.overflowY){var r=!1;if(t&&t.current&&(null===(n=t.current)||void 0===n?void 0:n.firstElementChild)){var a=t.current.clientHeight,s=t.current.firstElementChild.clientHeight;a>0&&s>a&&(r=s-a>1)}i!==r&&o(r)}})),function(){return n.dispose()}})),i}(n,r),m=s.useCallback((function(e){e.which===wt&&f&&(f(e),e.preventDefault(),e.stopPropagation())}),[f]);return Mt(Ft(),"keydown",m),s.createElement("div",i({ref:o},qe(n,Ye),{className:l,role:a,"aria-label":u,"aria-labelledby":c,"aria-describedby":d,onKeyDown:m,style:i({overflowY:g?"scroll":void 0,outline:"none"},h)}),p)}));function Vt(e){var t=L.getInstance(),n=[];for(var r in e)e.hasOwnProperty(r)&&n.push(r,"{",G(ne(),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}Ot.displayName="Popup";var Ht="cubic-bezier(.1,.9,.2,1)",Rt="cubic-bezier(.1,.25,.75,.9)",Bt="0.167s",Wt="0.267s",zt="0.367s",Ut="0.467s",Yt=Vt({from:{opacity:0},to:{opacity:1}}),qt=Vt({from:{opacity:1},to:{opacity:0,visibility:"hidden"}}),jt=En(-10),Xt=En(-20),Kt=En(-40),Gt=En(-400),Zt=En(10),$t=En(20),Qt=En(40),Jt=En(400),en=Sn(10),tn=Sn(20),nn=Sn(-10),rn=Sn(-20),on=Ln(10),an=Ln(20),sn=Ln(40),ln=Ln(400),un=Ln(-10),cn=Ln(-20),dn=Ln(-40),hn=Ln(-400),pn=An(-10),fn=An(-20),gn=An(10),mn=An(20),vn=Vt({from:{transform:"scale3d(.98,.98,1)"},to:{transform:"scale3d(1,1,1)"}}),_n=Vt({from:{transform:"scale3d(1,1,1)"},to:{transform:"scale3d(.98,.98,1)"}}),yn=Vt({from:{transform:"scale3d(1.03,1.03,1)"},to:{transform:"scale3d(1,1,1)"}}),xn=Vt({from:{transform:"scale3d(1,1,1)"},to:{transform:"scale3d(1.03,1.03,1)"}}),bn=Vt({from:{transform:"rotateZ(0deg)"},to:{transform:"rotateZ(90deg)"}}),Cn=Vt({from:{transform:"rotateZ(0deg)"},to:{transform:"rotateZ(-90deg)"}});function kn(e,t,n){return{animationName:e,animationDuration:t,animationTimingFunction:n,animationFillMode:"both"}}function En(e){return Vt({from:{transform:"translate3d("+e+"px,0,0)",pointerEvents:"none"},to:{transform:"translate3d(0,0,0)",pointerEvents:"auto"}})}function Sn(e){return Vt({from:{transform:"translate3d(0,"+e+"px,0)",pointerEvents:"none"},to:{transform:"translate3d(0,0,0)",pointerEvents:"auto"}})}function Ln(e){return Vt({from:{transform:"translate3d(0,0,0)"},to:{transform:"translate3d("+e+"px,0,0)"}})}function An(e){return Vt({from:{transform:"translate3d(0,0,0)"},to:{transform:"translate3d(0,"+e+"px,0)"}})}var wn,Dn,Tn,Mn,Pn,Nn=function(e){var t={},n=function(n){var r;e.hasOwnProperty(n)&&Object.defineProperty(t,n,{get:function(){return void 0===r&&(r=Ge(e[n]).toString()),r},enumerable:!0,configurable:!0})};for(var r in e)n(r);return t}({slideRightIn10:kn(Yt+","+jt,zt,Ht),slideRightIn20:kn(Yt+","+Xt,zt,Ht),slideRightIn40:kn(Yt+","+Kt,zt,Ht),slideRightIn400:kn(Yt+","+Gt,zt,Ht),slideLeftIn10:kn(Yt+","+Zt,zt,Ht),slideLeftIn20:kn(Yt+","+$t,zt,Ht),slideLeftIn40:kn(Yt+","+Qt,zt,Ht),slideLeftIn400:kn(Yt+","+Jt,zt,Ht),slideUpIn10:kn(Yt+","+en,zt,Ht),slideUpIn20:kn(Yt+","+tn,zt,Ht),slideDownIn10:kn(Yt+","+nn,zt,Ht),slideDownIn20:kn(Yt+","+rn,zt,Ht),slideRightOut10:kn(qt+","+on,zt,Ht),slideRightOut20:kn(qt+","+an,zt,Ht),slideRightOut40:kn(qt+","+sn,zt,Ht),slideRightOut400:kn(qt+","+ln,zt,Ht),slideLeftOut10:kn(qt+","+un,zt,Ht),slideLeftOut20:kn(qt+","+cn,zt,Ht),slideLeftOut40:kn(qt+","+dn,zt,Ht),slideLeftOut400:kn(qt+","+hn,zt,Ht),slideUpOut10:kn(qt+","+pn,zt,Ht),slideUpOut20:kn(qt+","+fn,zt,Ht),slideDownOut10:kn(qt+","+gn,zt,Ht),slideDownOut20:kn(qt+","+mn,zt,Ht),scaleUpIn100:kn(Yt+","+vn,zt,Ht),scaleDownIn100:kn(Yt+","+yn,zt,Ht),scaleUpOut103:kn(qt+","+xn,Bt,Rt),scaleDownOut98:kn(qt+","+_n,Bt,Rt),fadeIn100:kn(Yt,Bt,Rt),fadeIn200:kn(Yt,Wt,Rt),fadeIn400:kn(Yt,zt,Rt),fadeIn500:kn(Yt,Ut,Rt),fadeOut100:kn(qt,Bt,Rt),fadeOut200:kn(qt,Wt,Rt),fadeOut400:kn(qt,zt,Rt),fadeOut500:kn(qt,Ut,Rt),rotate90deg:kn(bn,"0.1s",Rt),rotateN90deg:kn(Cn,"0.1s",Rt)}),Fn={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)"}(wn||(wn={})),function(e){e.Arabic="'"+wn.Arabic+"'",e.ChineseSimplified="'Microsoft Yahei UI', Verdana, Simsun",e.ChineseTraditional="'Microsoft Jhenghei UI', Pmingliu",e.Cyrillic="'"+wn.Cyrillic+"'",e.EastEuropean="'"+wn.EastEuropean+"'",e.Greek="'"+wn.Greek+"'",e.Hebrew="'"+wn.Hebrew+"'",e.Hindi="'Nirmala UI'",e.Japanese="'Yu Gothic UI', 'Meiryo UI', Meiryo, 'MS Pgothic', Osaka",e.Korean="'Malgun Gothic', Gulim",e.Selawik="'"+wn.Selawik+"'",e.Thai="'Leelawadee UI Web', 'Kmer UI'",e.Vietnamese="'"+wn.Vietnamese+"'",e.WestEuropean="'"+wn.WestEuropean+"'",e.Armenian="'"+wn.Armenian+"'",e.Georgian="'"+wn.Georgian+"'"}(Dn||(Dn={})),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"}(Tn||(Tn={})),function(e){e.light=100,e.semilight=300,e.regular=400,e.semibold=600,e.bold=700}(Mn||(Mn={})),function(e){e.xSmall="10px",e.small="12px",e.medium="16px",e.large="20px"}(Pn||(Pn={}));var In,On="@media screen and (-ms-high-contrast: active), screen and (forced-colors: active)",Vn="@media screen and (-ms-high-contrast: white-on-black), screen and (forced-colors: active) and (prefers-color-scheme: dark)";function Hn(e,t,n,r,i,o,a,s){return function(e,t){var n,r;void 0===t&&(t={});var i=t.borderRadius,o=t.inset,a=void 0===o?0:o,s=t.width,l=void 0===s?1:s,u=t.position,c=void 0===u?"relative":u,d=t.highContrastStyle,h=t.borderColor,p=void 0===h?e.palette.white:h,f=t.outlineColor,g=void 0===f?e.palette.neutralSecondary:f,m=t.isFocusedOnly,v=void 0===m||m,_=t.pointerEvents;return{outline:"transparent",position:c,selectors:(n={"::-moz-focus-inner":{border:"0"}},n[".ms-Fabric--isFocusVisible &"+(v?":focus":"")+":after"]={content:'""',position:"absolute",pointerEvents:_,left:a+1,top:a+1,bottom:a+1,right:a+1,border:l+"px solid "+p,outline:l+"px solid "+g,zIndex:In.FocusStyle,borderRadius:i,selectors:(r={},r[On]=d,r)},n)}}(e,"number"!=typeof t&&t?t:{inset:t,position:n,highContrastStyle:r,borderColor:i,outlineColor:o,isFocusedOnly:a,borderRadius:s})}!function(e){e.Nav=1,e.ScrollablePane=1,e.FocusStyle=1,e.Coachmark=1e3,e.Layer=1e6,e.KeytipLayer=1000001}(In||(In={}));var Rn={position:"absolute",width:1,height:1,margin:-1,padding:0,border:0,overflow:"hidden",whiteSpace:"nowrap"},Bn=!1,Wn=0,zn={empty:!0},Un={},Yn="undefined"==typeof WeakMap?null:WeakMap;function qn(){Wn++}function jn(e,t,n){if(void 0===t&&(t=100),void 0===n&&(n=!1),!Yn)return e;if(!Bn){var r=L.getInstance();r&&r.onReset&&L.getInstance().onReset(qn),Bn=!0}var i,o=0,a=Wn;return function(){for(var r=[],s=0;s<arguments.length;s++)r[s]=arguments[s];var l=i;(void 0===i||a!==Wn||t>0&&o>t)&&(i=Gn(),o=0,a=Wn),l=i;for(var u=0;u<r.length;u++){var c=Kn(r[u]);l.map.has(c)||l.map.set(c,Gn()),l=l.map.get(c)}return l.hasOwnProperty("value")||(l.value=e.apply(void 0,r),o++),!n||null!==l.value&&void 0!==l.value||(l.value=e.apply(void 0,r)),l.value}}function Xn(e){if(!Yn)return e;var t=new Yn;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 Kn(e){return e?"object"==typeof e||"function"==typeof e?e:(Un[e]||(Un[e]={val:e}),Un[e]):zn}function Gn(){return{map:Yn?new Yn:null}}var Zn=jn((function(e,t){var n=L.getInstance();return t?Object.keys(e).reduce((function(t,r){return t[r]=n.getClassName(e[r]),t}),{}):e}));function $n(e,t,n){return Zn(e,void 0!==n?n:t.disableGlobalClassNames)}var Qn,Jn,er=function(){return er=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},er.apply(this,arguments)},tr="undefined"==typeof window?e.g:window,nr=tr&&tr.CSPSettings&&tr.CSPSettings.nonce,rr=((Jn=tr.__themeState__||{theme:void 0,lastStyleElement:void 0,registeredStyles:[]}).runState||(Jn=er({},Jn,{perf:{count:0,duration:0},runState:{flushTimer:0,mode:0,buffer:[]}})),Jn.registeredThemableStyles||(Jn=er({},Jn,{registeredThemableStyles:[]})),tr.__themeState__=Jn,Jn);function ir(e){rr.theme=e,function(){if(rr.theme){for(var e=[],t=0,n=rr.registeredThemableStyles;t<n.length;t++){var r=n[t];e.push(r.themableStyle)}e.length>0&&(void 0===(o=1)&&(o=3),3!==o&&2!==o||(or(rr.registeredStyles),rr.registeredStyles=[]),3!==o&&1!==o||(or(rr.registeredThemableStyles),rr.registeredThemableStyles=[]),i=[].concat.apply([],e),rr.loadStyles?rr.loadStyles(ar(i).styleString,i):function(e){if("undefined"!=typeof document){var t=document.getElementsByTagName("head")[0],n=document.createElement("style"),r=ar(e),i=r.styleString,o=r.themable;n.setAttribute("data-load-themed-styles","true"),n.type="text/css",nr&&n.setAttribute("nonce",nr),n.appendChild(document.createTextNode(i)),rr.perf.count++,t.appendChild(n);var a=document.createEvent("HTMLEvents");a.initEvent("styleinsert",!0,!1),a.args={newStyle:n},document.dispatchEvent(a);var s={styleElement:n,themableStyle:e};o?rr.registeredThemableStyles.push(s):rr.registeredStyles.push(s)}}(i))}var i,o}()}function or(e){e.forEach((function(e){var t=e&&e.styleElement;t&&t.parentElement&&t.parentElement.removeChild(t)}))}function ar(e){var t=rr.theme,n=!1;return{styleString:(e||[]).map((function(e){var r=e.theme;if(r){n=!0;var i=t?t[r]:void 0,o=e.defaultValue||"inherit";return t&&!i&&console&&!(r in t)&&"undefined"!=typeof DEBUG&&DEBUG&&console.warn('Theming value not provided for "'+r+'". Falling back to "'+o+'".'),i||o}return e.rawString})).join(""),themable:n}}!function(e){e.depth0="0 0 0 0 transparent",e.depth4="0 1.6px 3.6px 0 rgba(0, 0, 0, 0.132), 0 0.3px 0.9px 0 rgba(0, 0, 0, 0.108)",e.depth8="0 3.2px 7.2px 0 rgba(0, 0, 0, 0.132), 0 0.6px 1.8px 0 rgba(0, 0, 0, 0.108)",e.depth16="0 6.4px 14.4px 0 rgba(0, 0, 0, 0.132), 0 1.2px 3.6px 0 rgba(0, 0, 0, 0.108)",e.depth64="0 25.6px 57.6px 0 rgba(0, 0, 0, 0.22), 0 4.8px 14.4px 0 rgba(0, 0, 0, 0.18)"}(Qn||(Qn={}));var sr,lr={elevation4:Qn.depth4,elevation8:Qn.depth8,elevation16:Qn.depth16,elevation64:Qn.depth64,roundedCorner2:"2px",roundedCorner4:"4px",roundedCorner6:"6px"},ur="'Segoe UI', '"+wn.WestEuropean+"'",cr={ar:Dn.Arabic,bg:Dn.Cyrillic,cs:Dn.EastEuropean,el:Dn.Greek,et:Dn.EastEuropean,he:Dn.Hebrew,hi:Dn.Hindi,hr:Dn.EastEuropean,hu:Dn.EastEuropean,ja:Dn.Japanese,kk:Dn.EastEuropean,ko:Dn.Korean,lt:Dn.EastEuropean,lv:Dn.EastEuropean,pl:Dn.EastEuropean,ru:Dn.Cyrillic,sk:Dn.EastEuropean,"sr-latn":Dn.EastEuropean,th:Dn.Thai,tr:Dn.EastEuropean,uk:Dn.Cyrillic,vi:Dn.Vietnamese,"zh-hans":Dn.ChineseSimplified,"zh-hant":Dn.ChineseTraditional,hy:Dn.Armenian,ka:Dn.Georgian};function dr(e,t,n){return{fontFamily:n,MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontSize:e,fontWeight:t}}var hr,pr="language",fr=(hr=function(e){for(var t in cr)if(cr.hasOwnProperty(t)&&e&&0===t.indexOf(e))return cr[t];return ur}(function(e){if(void 0===e&&(e="sessionStorage"),void 0===sr){var t=Q(),n="localStorage"===e?function(e){var t=null;try{var n=d();t=n?n.localStorage.getItem("language"):null}catch(e){}return t}():"sessionStorage"===e?J(pr):void 0;n&&(sr=n),void 0===sr&&t&&(sr=t.documentElement.getAttribute("lang")),void 0===sr&&(sr="en")}return sr}())+", 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif",{tiny:dr(Tn.mini,Mn.regular,hr),xSmall:dr(Tn.xSmall,Mn.regular,hr),small:dr(Tn.small,Mn.regular,hr),smallPlus:dr(Tn.smallPlus,Mn.regular,hr),medium:dr(Tn.medium,Mn.regular,hr),mediumPlus:dr(Tn.mediumPlus,Mn.regular,hr),large:dr(Tn.large,Mn.regular,hr),xLarge:dr(Tn.xLarge,Mn.semibold,hr),xLargePlus:dr(Tn.xLargePlus,Mn.semibold,hr),xxLarge:dr(Tn.xxLarge,Mn.semibold,hr),xxLargePlus:dr(Tn.xxLargePlus,Mn.semibold,hr),superLarge:dr(Tn.superLarge,Mn.semibold,hr),mega:dr(Tn.mega,Mn.semibold,hr)});function gr(e,t,n,r){!function(e){var t=L.getInstance(),n=G(ne(),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 mr(e,t,n,r,i){void 0===r&&(r="segoeui");var o=e+"/"+n+"/"+r;gr(t,o+"-light",Mn.light,i&&i+" Light"),gr(t,o+"-semilight",Mn.semilight,i&&i+" SemiLight"),gr(t,o+"-regular",Mn.regular,i),gr(t,o+"-semibold",Mn.semibold,i&&i+" SemiBold"),gr(t,o+"-bold",Mn.bold,i&&i+" Bold")}function vr(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];_r(e||{},o)}return e}function _r(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:_r(e[r]||{},i,n)}}return n.pop(),e}function yr(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}(xr(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 xr(e,t,n,r,o){void 0===o&&(o=!1);var a={},s=e||{},l=s.white,u=s.black,c=s.themePrimary,d=s.themeDark,h=s.themeDarker,p=s.themeDarkAlt,f=s.themeLighter,g=s.neutralLight,m=s.neutralLighter,v=s.neutralDark,_=s.neutralQuaternary,y=s.neutralQuaternaryAlt,x=s.neutralPrimary,b=s.neutralSecondary,C=s.neutralSecondaryAlt,k=s.neutralTertiary,E=s.neutralTertiaryAlt,S=s.neutralLighterAlt,L=s.accent;return l&&(a.bodyBackground=l,a.bodyFrameBackground=l,a.accentButtonText=l,a.buttonBackground=l,a.primaryButtonText=l,a.primaryButtonTextHovered=l,a.primaryButtonTextPressed=l,a.inputBackground=l,a.inputForegroundChecked=l,a.listBackground=l,a.menuBackground=l,a.cardStandoutBackground=l),u&&(a.bodyTextChecked=u,a.buttonTextCheckedHovered=u),c&&(a.link=c,a.primaryButtonBackground=c,a.inputBackgroundChecked=c,a.inputIcon=c,a.inputFocusBorderAlt=c,a.menuIcon=c,a.menuHeader=c,a.accentButtonBackground=c),d&&(a.primaryButtonBackgroundPressed=d,a.inputBackgroundCheckedHovered=d,a.inputIconHovered=d),h&&(a.linkHovered=h),p&&(a.primaryButtonBackgroundHovered=p),f&&(a.inputPlaceholderBackgroundChecked=f),g&&(a.bodyBackgroundChecked=g,a.bodyFrameDivider=g,a.bodyDivider=g,a.variantBorder=g,a.buttonBackgroundCheckedHovered=g,a.buttonBackgroundPressed=g,a.listItemBackgroundChecked=g,a.listHeaderBackgroundPressed=g,a.menuItemBackgroundPressed=g,a.menuItemBackgroundChecked=g),m&&(a.bodyBackgroundHovered=m,a.buttonBackgroundHovered=m,a.buttonBackgroundDisabled=m,a.buttonBorderDisabled=m,a.primaryButtonBackgroundDisabled=m,a.disabledBackground=m,a.listItemBackgroundHovered=m,a.listHeaderBackgroundHovered=m,a.menuItemBackgroundHovered=m),_&&(a.primaryButtonTextDisabled=_,a.disabledSubtext=_),y&&(a.listItemBackgroundCheckedHovered=y),k&&(a.disabledBodyText=k,a.variantBorderHovered=(null==n?void 0:n.variantBorderHovered)||k,a.buttonTextDisabled=k,a.inputIconDisabled=k,a.disabledText=k),x&&(a.bodyText=x,a.actionLink=x,a.buttonText=x,a.inputBorderHovered=x,a.inputText=x,a.listText=x,a.menuItemText=x),S&&(a.bodyStandoutBackground=S,a.defaultStateBackground=S),v&&(a.actionLinkHovered=v,a.buttonTextHovered=v,a.buttonTextChecked=v,a.buttonTextPressed=v,a.inputTextHovered=v,a.menuItemTextHovered=v),b&&(a.bodySubtext=b,a.focusBorder=b,a.inputBorder=b,a.smallInputBorder=b,a.inputPlaceholderText=b),C&&(a.buttonBorder=C),E&&(a.disabledBodySubtext=E,a.disabledBorder=E,a.buttonBackgroundChecked=E,a.menuDivider=E),L&&(a.accentButtonBackground=L),(null==t?void 0:t.elevation4)&&(a.cardShadow=t.elevation4),!r&&(null==t?void 0:t.elevation8)?a.cardShadowHovered=t.elevation8:a.variantBorderHovered&&(a.cardShadowHovered="0 0 1px "+a.variantBorderHovered),i(i({},a),n)}!function(e){if(e){var t=e+"/fonts";mr(t,wn.Thai,"leelawadeeui-thai","leelawadeeui"),mr(t,wn.Arabic,"segoeui-arabic"),mr(t,wn.Cyrillic,"segoeui-cyrillic"),mr(t,wn.EastEuropean,"segoeui-easteuropean"),mr(t,wn.Greek,"segoeui-greek"),mr(t,wn.Hebrew,"segoeui-hebrew"),mr(t,wn.Vietnamese,"segoeui-vietnamese"),mr(t,wn.WestEuropean,"segoeui-westeuropean","segoeui","Segoe UI"),mr(t,Dn.Selawik,"selawik","selawik"),mr(t,wn.Armenian,"segoeui-armenian"),mr(t,wn.Georgian,"segoeui-georgian"),gr("Leelawadee UI Web",t+"/leelawadeeui-thai/leelawadeeui-semilight",Mn.light),gr("Leelawadee UI Web",t+"/leelawadeeui-thai/leelawadeeui-bold",Mn.semibold)}}(function(){var e,t,n=null===(e=d())||void 0===e?void 0:e.FabricConfig;return null!==(t=null==n?void 0:n.fontBaseUrl)&&void 0!==t?t:"https://res-1.cdn.office.net/files/fabric-cdn-prod_20221209.001/assets"}());var br={s2:"4px",s1:"8px",m:"16px",l1:"20px",l2:"32px"};function Cr(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=vr({},e,t,{semanticColors:xr(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]=vr(o.fonts[l],t.defaultFontStyle,null===(i=null==t?void 0:t.fonts)||void 0===i?void 0:i[l])}return o}({palette:Fn,effects:lr,fonts:fr,spacing:br,isInverted:n,disableGlobalClassNames:!1,semanticColors:yr(Fn,lr,void 0,n,t),rtl:void 0},e)}var kr=Cr({}),Er=[];function Sr(){var e,t,n,r=d();(null===(t=null==r?void 0:r.FabricConfig)||void 0===t?void 0:t.legacyTheme)?function(e,t){var n;void 0===t&&(t=!1),kr=Cr(e,t),ir(i(i(i(i({},kr.palette),kr.semanticColors),kr.effects),function(e){for(var t={},n=0,r=Object.keys(e.fonts);n<r.length;n++)for(var i=r[n],o=e.fonts[i],a=0,s=Object.keys(o);a<s.length;a++){var l=s[a],u=i+l.charAt(0).toUpperCase()+l.slice(1),c=o[l];"fontSize"===l&&"number"==typeof c&&(c+="px"),t[u]=c}return t}(kr))),y.applySettings(((n={}).theme=kr,n)),Er.forEach((function(e){try{e(kr)}catch(e){}}))}(r.FabricConfig.legacyTheme):y.getSettings(["theme"]).theme||((null===(n=null==r?void 0:r.FabricConfig)||void 0===n?void 0:n.theme)&&(kr=Cr(r.FabricConfig.theme)),y.applySettings(((e={}).theme=kr,e)))}Sr();var Lr,Ar={},wr=void 0;try{wr=window}catch(e){}function Dr(e,t){if(void 0!==wr){var n=wr.__packages__=wr.__packages__||{};n[e]&&Ar[e]||(Ar[e]=t,(n[e]=n[e]||[]).push(t))}}function Tr(e){var t=s.useRef();return void 0===t.current&&(t.current={value:"function"==typeof e?e():e}),t.current.value}Dr("@fluentui/set-version","6.0.0"),Dr("@fluentui/style-utilities","8.9.6"),Sr();var Mr=((Lr={})[Ie.top]=Nn.slideUpIn10,Lr[Ie.bottom]=Nn.slideDownIn10,Lr[Ie.left]=Nn.slideLeftIn10,Lr[Ie.right]=Nn.slideRightIn10,Lr),Pr={opacity:0,filter:"opacity(0)",pointerEvents:"none"},Nr=["role","aria-roledescription"],Fr={preventDismissOnLostFocus:!1,preventDismissOnScroll:!1,preventDismissOnResize:!1,isBeakVisible:!0,beakWidth:16,gapSpace:0,minPagePadding:8,directionalHint:7},Ir=ue({disableCaching:!0});function Or(e,t,n,r,o){var a=s.useState(),l=a[0],u=a[1],c=s.useRef(0),d=s.useRef(),h=Tt(),p=e.hidden,f=e.target,g=e.finalHeight,m=e.calloutMaxHeight,v=e.onPositioned,_=e.directionalHint;return s.useEffect((function(){if(!p){var a=h.requestAnimationFrame((function(){var a,s,h,p;if(t.current&&n){var _=i(i({},e),{target:r.current,bounds:o()}),y=n.cloneNode(!0);y.style.maxHeight=m?""+m:"",y.style.visibility="hidden",null===(a=n.parentElement)||void 0===a||a.appendChild(y);var x=d.current===f?l:void 0,b=g?function(e,t,n,r){return function(e,t,n,r){return St(e,t,n,r,!0)}(e,t,n,r)}(_,t.current,y,x):function(e,t,n,r){return St(e,t,n,r)}(_,t.current,y,x);null===(s=n.parentElement)||void 0===s||s.removeChild(y),!l&&b||l&&b&&(p=b,!Rr((h=l).elementPosition,p.elementPosition)||!Rr(h.beakPosition.elementPosition,p.beakPosition.elementPosition))&&c.current<5?(c.current++,u(b)):c.current>0&&(c.current=0,null==v||v(l))}}),n);return d.current=f,function(){h.cancelAnimationFrame(a),d.current=void 0}}u(void 0),c.current=0}),[p,_,h,n,m,t,r,g,o,v,l,e,f]),l}var Vr=s.memo(s.forwardRef((function(e,t){var n=Fe(Fr,e),r=n.styles,o=n.style,a=n.ariaLabel,l=n.ariaDescribedBy,u=n.ariaLabelledBy,c=n.className,d=n.isBeakVisible,h=n.children,p=n.beakWidth,f=n.calloutWidth,g=n.calloutMaxWidth,m=n.calloutMinWidth,v=n.doNotLayer,_=n.finalHeight,y=n.hideOverflow,x=void 0===y?!!_:y,b=n.backgroundColor,C=n.calloutMaxHeight,k=n.onScroll,E=n.shouldRestoreFocus,S=void 0===E||E,L=n.target,A=n.hidden,w=n.onLayerMounted,D=n.popupProps,T=s.useRef(null),M=s.useState(null),P=M[0],N=M[1],F=s.useCallback((function(e){N(e)}),[]),I=Pt(T,t),O=function(e,t){var n=s.useRef(),r=s.useRef(null),i=Ft();if(!e||e!==n.current||"string"==typeof e){if(e)if("string"==typeof e){var o=Q(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:P}),V=O[0],H=O[1],R=function(e,t,n){var r=e.bounds,i=e.minPagePadding,o=void 0===i?Fr.minPagePadding:i,a=e.target,l=s.useState(!1),u=l[0],c=l[1],d=s.useRef(),h=s.useCallback((function(){if(!d.current||u){var e="function"==typeof r?n?r(a,n):void 0:r;!e&&n&&(e=function(e,t){return function(e,t){var n=void 0;if(t.getWindowSegments&&(n=t.getWindowSegments()),void 0===n||n.length<=1)return{top:0,left:0,right:t.innerWidth,bottom:t.innerHeight,width:t.innerWidth,height:t.innerHeight};var r=0,i=0;if(null!==e&&e.getBoundingClientRect){var o=e.getBoundingClientRect();r=(o.left+o.right)/2,i=(o.top+o.bottom)/2}else null!==e&&(r=e.left||e.x,i=e.top||e.y);for(var a={top:0,left:0,right:0,bottom:0,width:0,height:0},s=0,l=n;s<l.length;s++){var u=l[s];r&&u.left<=r&&u.right>=r&&i&&u.top<=i&&u.bottom>=i&&(a={top:u.top,left:u.left,right:u.right,bottom:u.bottom,width:u.width,height:u.height})}return a}(e,t)}(t.current,n),e={top:e.top+o,left:e.left+o,right:e.right-o,bottom:e.bottom-o,width:e.width-2*o,height:e.height-2*o}),d.current=e,u&&c(!1)}return d.current}),[r,o,a,t,n,u]),p=Tt();return Mt(n,"resize",p.debounce((function(){c(!0)}),500,{leading:!0})),h}(n,V,H),B=Or(n,T,P,V,R),W=function(e,t,n){var r,i=e.calloutMaxHeight,o=e.finalHeight,a=e.directionalHint,l=e.directionalHintFixed,u=e.hidden,c=s.useState(),d=c[0],h=c[1],p=null!==(r=null==n?void 0:n.elementPosition)&&void 0!==r?r:{},f=p.top,g=p.bottom;return s.useEffect((function(){var e,n,r=null!==(e=t())&&void 0!==e?e:{},o=r.top,a=r.bottom;"number"==typeof f&&a?n=a-f:"number"==typeof g&&"number"==typeof o&&a&&(n=a-o-g),h(!i&&!u||i&&n&&i>n?n:i||void 0)}),[g,i,o,a,l,t,u,n,f]),d}(n,R,B),z=function(e,t,n,r,i){var o=e.hidden,a=e.onDismiss,l=e.preventDismissOnScroll,u=e.preventDismissOnResize,c=e.preventDismissOnLostFocus,d=e.dismissOnTargetClick,h=e.shouldDismissOnWindowFocus,p=e.preventDismissOnEvent,f=s.useRef(!1),g=Tt(),m=Tr([function(){f.current=!0},function(){f.current=!1}]),v=!!t;return s.useEffect((function(){var e=function(e){v&&!l&&m(e)},t=function(e){u||p&&p(e)||null==a||a(e)},s=function(e){c||m(e)},m=function(e){var t=e.composedPath?e.composedPath():[],o=t.length>0?t[0]:e.target,s=n.current&&!Ce(n.current,o);if(s&&f.current)f.current=!1;else if(!r.current&&s||e.target!==i&&s&&(!r.current||"stopPropagation"in r.current||d||o!==r.current&&!Ce(r.current,o))){if(p&&p(e))return;null==a||a(e)}},_=function(e){h&&((!p||p(e))&&(p||c)||(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=[Ne(i,"scroll",e,!0),Ne(i,"resize",t,!0),Ne(i.document.documentElement,"focus",s,!0),Ne(i.document.documentElement,"click",s,!0),Ne(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,c,u,l,v,p]),m}(n,B,T,V,H),U=z[0],Y=z[1],q=(null==B?void 0:B.elementPosition.top)&&(null==B?void 0:B.elementPosition.bottom),j=i(i({},null==B?void 0:B.elementPosition),{maxHeight:W});if(q&&(j.bottom=void 0),function(e,t,n){var r=e.hidden,i=e.setInitialFocus,o=Tt(),a=!!t;s.useEffect((function(){if(!r&&i&&a&&n){var e=o.requestAnimationFrame((function(){return ke(n)}),n);return function(){return o.cancelAnimationFrame(e)}}}),[r,a,o,n,i])}(n,B,P),s.useEffect((function(){A||null==w||w()}),[A]),!H)return null;var X=x,K=d&&!!L,G=Ir(r,{theme:n.theme,className:c,overflowYHidden:X,calloutWidth:f,positions:B,beakWidth:p,backgroundColor:b,calloutMaxWidth:g,calloutMinWidth:m,doNotLayer:v}),Z=i(i({maxHeight:C||"100%"},o),X&&{overflowY:"hidden"}),$=n.hidden?{visibility:"hidden"}:void 0;return s.createElement("div",{ref:I,className:G.container,style:$},s.createElement("div",i({},qe(n,Ye,Nr),{className:je(G.root,B&&B.targetEdge&&Mr[B.targetEdge]),style:B?i({},j):Pr,tabIndex:-1,ref:F}),K&&s.createElement("div",{className:G.beak,style:Hr(B)}),K&&s.createElement("div",{className:G.beakCurtain}),s.createElement(Ot,i({role:n.role,"aria-roledescription":n["aria-roledescription"],ariaDescribedBy:l,ariaLabel:a,ariaLabelledBy:u,className:G.calloutMain,onDismiss:n.onDismiss,onMouseDown:U,onMouseUp:Y,onRestoreFocus:n.onRestoreFocus,onScroll:k,shouldRestoreFocus:S,style:Z},D),h)))})),(function(e,t){return!(t.shouldUpdateWhenHidden||!e.hidden||!t.hidden)||function(e,t){if(!e||!t)return!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 Hr(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 Rr(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 Br(e){return{height:e,width:e}}Vr.displayName="CalloutContentBase";var Wr={container:"ms-Callout-container",root:"ms-Callout",beak:"ms-Callout-beak",beakCurtain:"ms-Callout-beakCurtain",calloutMain:"ms-Callout-main"},zr=C(Vr,(function(e){var t,n=e.theme,r=e.className,i=e.overflowYHidden,o=e.calloutWidth,a=e.beakWidth,s=e.backgroundColor,l=e.calloutMaxWidth,u=e.calloutMinWidth,c=e.doNotLayer,d=$n(Wr,n),h=n.semanticColors,p=n.effects;return{container:[d.container,{position:"relative"}],root:[d.root,n.fonts.medium,{position:"absolute",display:"flex",zIndex:c?In.Layer:void 0,boxSizing:"border-box",borderRadius:p.roundedCorner2,boxShadow:p.elevation16,selectors:(t={},t[On]={borderWidth:1,borderStyle:"solid",borderColor:"WindowText"},t)},{selectors:{"&::-moz-focus-inner":{border:0},"&":{outline:"transparent"}}},r,!!o&&{width:o},!!l&&{maxWidth:l},!!u&&{minWidth:u}],beak:[d.beak,{position:"absolute",backgroundColor:h.menuBackground,boxShadow:"inherit",border:"inherit",boxSizing:"border-box",transform:"rotate(45deg)"},Br(a),s&&{backgroundColor:s}],beakCurtain:[d.beakCurtain,{position:"absolute",top:0,right:0,bottom:0,left:0,backgroundColor:h.menuBackground,borderRadius:p.roundedCorner2}],calloutMain:[d.calloutMain,{backgroundColor:h.menuBackground,overflowX:"hidden",overflowY:"auto",position:"relative",width:"100%",borderRadius:p.roundedCorner2},i&&{overflowY:"hidden"},s&&{backgroundColor:s}]}}),void 0,{scope:"CalloutContent"});const Ur=s.createContext(void 0),Yr=()=>()=>{};Ur.Provider;var qr=ReactDOM;new WeakMap,new WeakMap;var jr=s.createContext(void 0),Xr=function(e){var t=e.providerRef,n=e.layerRoot,r=s.useState([])[0],i=s.useContext(jr),o=void 0!==i&&!n,a=s.useMemo((function(){return o?void 0:{providerRef:t,registeredProviders:r,registerProvider:function(e){r.push(e),null==i||i.registerProvider(e)},unregisterProvider:function(e){null==i||i.unregisterProvider(e);var t=r.indexOf(e);t>=0&&r.splice(t,1)}}}),[t,r,i,o]);return s.useEffect((function(){if(a)return a.registerProvider(a.providerRef),function(){return a.unregisterProvider(a.providerRef)}}),[a]),a?s.createElement(jr.Provider,{value:a},e.children):s.createElement(s.Fragment,null,e.children)};function Kr(e,t){void 0===e&&(e={});var n=Gr(t)?t:function(e){return function(t){return e?i(i({},t),e):t}}(t);return n(e)}function Gr(e){return"function"==typeof e}var Zr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onCustomizationChange=function(){return t.forceUpdate()},t}return r(t,e),t.prototype.componentDidMount=function(){y.observe(this._onCustomizationChange)},t.prototype.componentWillUnmount=function(){y.unobserve(this._onCustomizationChange)},t.prototype.render=function(){var e=this,t=this.props.contextTransform;return s.createElement(x.Consumer,null,(function(n){var r=function(e,t){var n,r,o,a=(t||{}).customizations,s=void 0===a?{settings:{},scopedSettings:{}}:a;return{customizations:{settings:Kr(s.settings,e.settings),scopedSettings:(n=s.scopedSettings,r=e.scopedSettings,void 0===n&&(n={}),(Gr(r)?r:(void 0===(o=r)&&(o={}),function(e){var t=i({},e);for(var n in o)o.hasOwnProperty(n)&&(t[n]=i(i({},e[n]),o[n]));return t}))(n)),inCustomizerContext:!0}}}(e.props,n);return t&&(r=t(r)),s.createElement(x.Provider,{value:r},e.props.children)}))},t}(s.Component),$r=ue(),Qr=jn((function(e,t){return Cr(i(i({},e),{rtl:t}))})),Jr=s.forwardRef((function(e,t){var n=e.className,r=e.theme,o=e.applyTheme,a=e.applyThemeToBody,l=e.styles,u=$r(l,{theme:r,applyTheme:o,className:n}),c=s.useRef(null);return function(e,t,n){var r=t.bodyThemed;s.useEffect((function(){if(e){var t=Q(n.current);if(t)return t.body.classList.add(r),function(){t.body.classList.remove(r)}}}),[r,e,n])}(a,u,c),s.createElement(s.Fragment,null,function(e,t,n,r){var o=t.root,a=e.as,l=void 0===a?"div":a,u=e.dir,c=e.theme,d=qe(e,Ye,["dir"]),h=function(e){var t=e.theme,n=e.dir,r=oe(t)?"rtl":"ltr",i=oe()?"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(Xr,{providerRef:n},s.createElement(l,i({dir:p},d,{className:o,ref:Pt(n,r)})));return f&&(g=s.createElement(Zr,{settings:{theme:Qr(c,"rtl"===u)}},g)),g}(e,u,c,t))}));Jr.displayName="FabricBase";var ei,ti={fontFamily:"inherit"},ni={root:"ms-Fabric",bodyThemed:"ms-Fabric-bodyThemed"},ri=C(Jr,(function(e){var t=e.applyTheme,n=e.className,r=e.preventBlanketFontInheritance,i=e.theme;return{root:[$n(ni,i).root,i.fonts.medium,{color:i.palette.neutralPrimary},!r&&{"& button":ti,"& input":ti,"& textarea":ti},t&&{color:i.semanticColors.bodyText,backgroundColor:i.semanticColors.bodyBackground},n],bodyThemed:[{backgroundColor:i.semanticColors.bodyBackground}]}}),void 0,{scope:"Fabric"}),ii="data-portal-element",oi={},ai={},si="fluent-default-layer-host",li=u()?s.useLayoutEffect:s.useEffect;function ui(e){console&&console.warn&&console.warn(e)}function ci(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||ui(e+" property '"+s+"' is required when '"+r+"' is used.'")}}function di(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."),ui(i)}}function hi(e,t){return void 0!==e[t]&&null!==e[t]}function pi(e){var t=(0,s.useRef)();return(0,s.useEffect)((function(){t.current=e})),t.current}ei={valueOnChange:{},valueDefaultValue:{},controlledToUncontrolled:{},uncontrolledToControlled:{}};var fi=0;function gi(e){var t=e.name,n=e.props,r=e.other,o=void 0===r?[]:r,a=e.conditionallyRequired,l=e.deprecations,u=e.mutuallyExclusive,c=e.controlledUsage,d=s.useRef(!1),h=Tr((function(){return"useWarnings_"+fi++})),p=pi(n);if(!d.current){d.current=!0;for(var f=0,g=o;f<g.length;f++)ui(g[f]);if(a)for(var m=0,v=a;m<v.length;m++){var _=v[m];ci(t,n,_.requiredProps,_.conditionalPropName,_.condition)}l&&di(t,n,l),u&&function(e,t,n){for(var r in n)if(t&&void 0!==t[r]){var i=n[r];i&&void 0!==t[i]&&ui(e+" property '"+r+"' is mutually exclusive with '"+n[r]+"'. Use one or the other.")}}(t,n,u)}c&&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,u=o?hi(o,l):void 0,c=hi(i,l);if(c){var d=!!i[a],h=!(!s||!i[s]);d||h||ei.valueOnChange[t]||(ei.valueOnChange[t]=!0,ui("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]||ei.valueDefaultValue[t]||(ei.valueDefaultValue[t]=!0,ui("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&&c!==u){var p=u?"a controlled":"an uncontrolled",f=u?"uncontrolled":"controlled",g=u?ei.controlledToUncontrolled:ei.uncontrolledToControlled;g[t]||(g[t]=!0,ui("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({},c),{componentId:h,props:n,componentName:t,oldProps:p}))}var mi,vi=ue(),_i=s.forwardRef((function(e,t){var n,r=null!==(n=s.useContext(Ur))&&void 0!==n?n:Yr,o=s.useRef(null),a=Pt(o,t),l=s.useRef(),u=s.useRef(null),c=s.useState(!1),d=c[0],h=c[1],p=e.children,f=e.className,g=e.eventBubblingEnabled,m=e.fabricProps,v=e.hostId,_=e.insertFirst,y=e.onLayerDidMount,x=void 0===y?function(){}:y,b=e.onLayerMounted,C=void 0===b?function(){}:b,k=e.onLayerWillUnmount,E=e.styles,S=e.theme,L=Pt(u,null==m?void 0:m.ref),A=vi(E,{theme:S,className:f,isNotHost:!v}),w=function(){null==k||k();var e=l.current;l.current=void 0,e&&e.parentNode&&e.parentNode.removeChild(e)},D=function(){var e,t=Q(o.current);if(t){var n=function(e){var t,n;if(v){var r=function(e){var t=ai[e];return t&&t[0]||void 0}(v);return r?null!==(t=r.rootRef.current)&&void 0!==t?t:null:null!==(n=e.getElementById(v))&&void 0!==n?n:null}var i="#fluent-default-layer-host",o=e.querySelector(i);return o||(o=function(e){var t=e.createElement("div");return t.setAttribute("id",si),t.style.cssText="position:fixed;z-index:1000000",null==e||e.body.appendChild(t),t}(e)),o}(t);if(n){w();var r=(null!==(e=n.ownerDocument)&&void 0!==e?e:t).createElement("div");r.className=A.root,r.setAttribute(ii,"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))}(r,o.current),_?n.insertBefore(r,n.firstChild):n.appendChild(r),l.current=r,h(!0)}}};return li((function(){D(),v&&function(e,t){oi[e]||(oi[e]=[]),oi[e].push(t);var n=ai[e];if(n)for(var r=0,i=n;r<i.length;r++)i[r].notifyLayersChanged()}(v,D);var e=l.current?r(l.current):void 0;return function(){e&&e(),w(),v&&function(e,t){var n=oi[e];if(n){var r=n.indexOf(t);r>=0&&(n.splice(r,1),0===n.length&&delete oi[e])}var i=ai[e];if(i)for(var o=0,a=i;o<a.length;o++)a[o].notifyLayersChanged()}(v,D)}}),[v]),s.useEffect((function(){l.current&&d&&(null==C||C(),null==x||x(),h(!1))}),[d,C,x]),function(e){gi({name:"Layer",props:e,deprecations:{onLayerMounted:"onLayerDidMount"}})}(e),s.createElement("span",{className:"ms-layer",ref:a},l.current&&qr.createPortal(s.createElement(Xr,{layerRoot:!0,providerRef:L},s.createElement(ri,i({},!g&&(mi||(mi={},["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 mi[e]=yi}))),mi),m,{className:je(A.content,null==m?void 0:m.className),ref:L}),p)),l.current))}));_i.displayName="LayerBase";var yi=function(e){e.eventPhase===Event.BUBBLING_PHASE&&"mouseenter"!==e.type&&"mouseleave"!==e.type&&"touchstart"!==e.type&&"touchend"!==e.type&&e.stopPropagation()},xi={root:"ms-Layer",rootNoHost:"ms-Layer--fixed",content:"ms-Layer-content"},bi=C(_i,(function(e){var t=e.className,n=e.isNotHost,r=e.theme,i=$n(xi,r);return{root:[i.root,r.fonts.medium,n&&[i.rootNoHost,{position:"fixed",zIndex:In.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"]}),Ci=s.forwardRef((function(e,t){var n=e.layerProps,r=e.doNotLayer,a=o(e,["layerProps","doNotLayer"]),l=s.createElement(zr,i({},a,{doNotLayer:r,ref:t}));return r?l:s.createElement(bi,i({},n),l)}));Ci.displayName="Callout";var ki=Array.prototype.slice;function Ei(e){return e}var Si=1e-6;function Li(e){return"translate("+(e+.5)+",0)"}function Ai(e){return"translate(0,"+(e+.5)+")"}function wi(e){return function(t){return+e(t)}}function Di(e){var t=Math.max(0,e.bandwidth()-1)/2;return e.round()&&(t=Math.round(t)),function(n){return+e(n)+t}}function Ti(){return!this.__axis}function Mi(e,t){var n=[],r=null,i=null,o=6,a=6,s=3,l=1===e||4===e?-1:1,u=4===e||2===e?"x":"y",c=1===e||3===e?Li:Ai;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):Ei:i,f=Math.max(o,0)+s,g=t.range(),m=+g[0]+.5,v=+g[g.length-1]+.5,_=(t.bandwidth?Di:wi)(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(),k=b.enter().append("g").attr("class","tick"),E=b.select("line"),S=b.select("text");x=x.merge(x.enter().insert("path",".tick").attr("class","domain").attr("stroke","#000")),b=b.merge(k),E=E.merge(k.append("line").attr("stroke","#000").attr(u+"2",l*o)),S=S.merge(k.append("text").attr("fill","#000").attr(u,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),S=S.transition(d),C=C.transition(d).attr("opacity",Si).attr("transform",(function(e){return isFinite(e=_(e))?c(e):this.getAttribute("transform")})),k.attr("opacity",Si).attr("transform",(function(e){var t=this.parentNode.__axis;return c(t&&isFinite(t=t(e))?t:_(e))}))),C.remove(),x.attr("d",4===e||2==e?"M"+l*a+","+m+"H0.5V"+v+"H"+l*a:"M"+m+","+l*a+"V0.5H"+v+"V"+l*a),b.attr("opacity",1).attr("transform",(function(e){return c(_(e))})),E.attr(u+"2",l*o),S.attr(u,l*f).text(p),y.filter(Ti).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=ki.call(arguments),d},d.tickArguments=function(e){return arguments.length?(n=null==e?[]:ki.call(e),d):n.slice()},d.tickValues=function(e){return arguments.length?(r=null==e?null:ki.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 Pi(e){return Mi(2,e)}function Ni(e){return Mi(3,e)}function Fi(e){return Mi(4,e)}function Ii(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Oi(e){var t;return 1===e.length&&(t=e,e=function(e,n){return Ii(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 Vi=Oi(Ii);Vi.right,Vi.left;var Hi=Array.prototype;function Ri(e,t){var n,r,i=e.length,o=-1;if(null==t){for(;++o<i;)if(null!=(n=e[o])&&n>=n)for(r=n;++o<i;)null!=(n=e[o])&&n>r&&(r=n)}else for(;++o<i;)if(null!=(n=t(e[o],o,e))&&n>=n)for(r=n;++o<i;)null!=(n=t(e[o],o,e))&&n>r&&(r=n);return r}function Bi(e,t){var n,r,i=e.length,o=-1;if(null==t){for(;++o<i;)if(null!=(n=e[o])&&n>=n)for(r=n;++o<i;)null!=(n=e[o])&&r>n&&(r=n)}else for(;++o<i;)if(null!=(n=t(e[o],o,e))&&n>=n)for(r=n;++o<i;)null!=(n=t(e[o],o,e))&&r>n&&(r=n);return r}function Wi(e,t){var n,r=e.length,i=-1,o=0;if(null==t)for(;++i<r;)(n=+e[i])&&(o+=n);else for(;++i<r;)(n=+t(e[i],i,e))&&(o+=n);return o}Hi.slice,Hi.map,Math.sqrt(50),Math.sqrt(10),Math.sqrt(2);var zi=Math.sqrt(50),Ui=Math.sqrt(10),Yi=Math.sqrt(2);function qi(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>=zi?10:o>=Ui?5:o>=Yi?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=zi?10:o>=Ui?5:o>=Yi?2:1)}function ji(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>=zi?i*=10:o>=Ui?i*=5:o>=Yi&&(i*=2),t<e?-i:i}function Xi(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Ki(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Gi(e){let t,n,r;function i(e,r,i=0,o=e.length){if(i<o){if(0!==t(r,r))return o;do{const t=i+o>>>1;n(e[t],r)<0?i=t+1:o=t}while(i<o)}return i}return 2!==e.length?(t=Xi,n=(t,n)=>Xi(e(t),n),r=(t,n)=>e(t)-n):(t=e===Xi||e===Ki?e:Zi,n=e,r=e),{left:i,center:function(e,t,n=0,o=e.length){const a=i(e,t,n,o-1);return a>n&&r(e[a-1],t)>-r(e[a],t)?a-1:a},right:function(e,r,i=0,o=e.length){if(i<o){if(0!==t(r,r))return o;do{const t=i+o>>>1;n(e[t],r)<=0?i=t+1:o=t}while(i<o)}return i}}}function Zi(){return 0}const $i=Gi(Xi),Qi=$i.right;$i.left,Gi((function(e){return null===e?NaN:+e})).center;var Ji=Qi;function eo(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function to(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function no(){}var ro=.7,io=1/ro,oo="\\s*([+-]?\\d+)\\s*",ao="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",so="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",lo=/^#([0-9a-f]{3,8})$/,uo=new RegExp("^rgb\\("+[oo,oo,oo]+"\\)$"),co=new RegExp("^rgb\\("+[so,so,so]+"\\)$"),ho=new RegExp("^rgba\\("+[oo,oo,oo,ao]+"\\)$"),po=new RegExp("^rgba\\("+[so,so,so,ao]+"\\)$"),fo=new RegExp("^hsl\\("+[ao,so,so]+"\\)$"),go=new RegExp("^hsla\\("+[ao,so,so,ao]+"\\)$"),mo={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function vo(){return this.rgb().formatHex()}function _o(){return this.rgb().formatRgb()}function yo(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=lo.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?xo(t):3===n?new Eo(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?new Eo(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?new Eo(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=uo.exec(e))?new Eo(t[1],t[2],t[3],1):(t=co.exec(e))?new Eo(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=ho.exec(e))?bo(t[1],t[2],t[3],t[4]):(t=po.exec(e))?bo(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=fo.exec(e))?wo(t[1],t[2]/100,t[3]/100,1):(t=go.exec(e))?wo(t[1],t[2]/100,t[3]/100,t[4]):mo.hasOwnProperty(e)?xo(mo[e]):"transparent"===e?new Eo(NaN,NaN,NaN,0):null}function xo(e){return new Eo(e>>16&255,e>>8&255,255&e,1)}function bo(e,t,n,r){return r<=0&&(e=t=n=NaN),new Eo(e,t,n,r)}function Co(e){return e instanceof no||(e=yo(e)),e?new Eo((e=e.rgb()).r,e.g,e.b,e.opacity):new Eo}function ko(e,t,n,r){return 1===arguments.length?Co(e):new Eo(e,t,n,null==r?1:r)}function Eo(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function So(){return"#"+Ao(this.r)+Ao(this.g)+Ao(this.b)}function Lo(){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 Ao(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function wo(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new To(e,t,n,r)}function Do(e){if(e instanceof To)return new To(e.h,e.s,e.l,e.opacity);if(e instanceof no||(e=yo(e)),!e)return new To;if(e instanceof To)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 To(a,s,l,e.opacity)}function To(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Mo(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 Po(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 No(e){return function(){return e}}function Fo(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):No(isNaN(e)?t:e)}eo(no,yo,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:vo,formatHex:vo,formatHsl:function(){return Do(this).formatHsl()},formatRgb:_o,toString:_o}),eo(Eo,ko,to(no,{brighter:function(e){return e=null==e?io:Math.pow(io,e),new Eo(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?ro:Math.pow(ro,e),new Eo(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:So,formatHex:So,formatRgb:Lo,toString:Lo})),eo(To,(function(e,t,n,r){return 1===arguments.length?Do(e):new To(e,t,n,null==r?1:r)}),to(no,{brighter:function(e){return e=null==e?io:Math.pow(io,e),new To(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?ro:Math.pow(ro,e),new To(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 Eo(Mo(e>=240?e-240:e+120,i,r),Mo(e,i,r),Mo(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 Io=function e(t){var n=function(e){return 1==(e=+e)?Fo: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):No(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=ko(e)).r,(t=ko(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),a=Fo(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 Oo(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=ko(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 Vo(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]=qo(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 Ho(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Ro(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function Bo(e,t){var n,r={},i={};for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?r[n]=qo(e[n],t[n]):i[n]=t[n];return function(e){for(n in r)i[n]=r[n](e);return i}}Oo((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 Po((n-r/t)*t,a,i,o,s)}})),Oo((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 Po((n-r/t)*t,i,o,a,s)}}));var Wo=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,zo=new RegExp(Wo.source,"g");function Uo(e,t){var n,r,i,o=Wo.lastIndex=zo.lastIndex=0,a=-1,s=[],l=[];for(e+="",t+="";(n=Wo.exec(e))&&(r=zo.exec(t));)(i=r.index)>o&&(i=t.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,l.push({i:a,x:Ro(n,r)})),o=zo.lastIndex;return o<t.length&&(i=t.slice(o),s[a]?s[a]+=i:s[++a]=i),s.length<2?l[0]?function(e){return function(t){return e(t)+""}}(l[0].x):function(e){return function(){return e}}(t):(t=l.length,function(e){for(var n,r=0;r<t;++r)s[(n=l[r]).i]=n.x(e);return s.join("")})}function Yo(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 qo(e,t){var n,r,i=typeof t;return null==t||"boolean"===i?No(t):("number"===i?Ro:"string"===i?(n=yo(t))?(t=n,Io):Uo:t instanceof yo?Io:t instanceof Date?Ho:(r=t,!ArrayBuffer.isView(r)||r instanceof DataView?Array.isArray(t)?Vo:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?Bo:Ro:Yo))(e,t)}function jo(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function Xo(e){return+e}var Ko=[0,1];function Go(e){return e}function Zo(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:(n=isNaN(t)?NaN:.5,function(){return n});var n}function $o(e,t,n){var r=e[0],i=e[1],o=t[0],a=t[1];return i<r?(r=Zo(i,r),o=n(a,o)):(r=Zo(r,i),o=n(o,a)),function(e){return o(r(e))}}function Qo(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),o=new Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)i[a]=Zo(e[a],e[a+1]),o[a]=n(t[a],t[a+1]);return function(t){var n=Ji(e,t,1,r)-1;return o[n](i[n](t))}}function Jo(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function ea(){return function(){var e,t,n,r,i,o,a=Ko,s=Ko,l=qo,u=Go;function c(){var e,t,n,l=Math.min(a.length,s.length);return u!==Go&&(e=a[0],t=a[l-1],e>t&&(n=e,e=t,t=n),u=function(n){return Math.max(e,Math.min(t,n))}),r=l>2?Qo:$o,i=o=null,d}function d(t){return null==t||isNaN(t=+t)?n:(i||(i=r(a.map(e),s,l)))(e(u(t)))}return d.invert=function(n){return u(t((o||(o=r(s,a.map(e),Ro)))(n)))},d.domain=function(e){return arguments.length?(a=Array.from(e,Xo),c()):a.slice()},d.range=function(e){return arguments.length?(s=Array.from(e),c()):s.slice()},d.rangeRound=function(e){return s=Array.from(e),l=jo,c()},d.clamp=function(e){return arguments.length?(u=!!e||Go,c()):u!==Go},d.interpolate=function(e){return arguments.length?(l=e,c()):l},d.unknown=function(e){return arguments.length?(n=e,d):n},function(n,r){return e=n,t=r,c()}}()(Go,Go)}function ta(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}var na,ra=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function ia(e){if(!(t=ra.exec(e)))throw new Error("invalid format: "+e);var t;return new oa({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 oa(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 aa(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 sa(e){return(e=aa(Math.abs(e)))?e[1]:NaN}function la(e,t){var n=aa(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")}ia.prototype=oa.prototype,oa.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 ua={"%":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 la(100*e,t)},r:la,s:function(e,t){var n=aa(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(na=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")+aa(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 ca(e){return e}var da,ha,pa,fa=Array.prototype.map,ga=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function ma(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=qi(e,t,n))||!isFinite(a))return[];if(a>0){let n=Math.round(e/a),r=Math.round(t/a);for(n*a<e&&++n,r*a>t&&--r,o=new Array(i=r-n+1);++s<i;)o[s]=(n+s)*a}else{a=-a;let n=Math.round(e*a),r=Math.round(t*a);for(n/a<e&&++n,r/a>t&&--r,o=new Array(i=r-n+1);++s<i;)o[s]=(n+s)/a}return r&&o.reverse(),o}(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return function(e,t,n,r){var i,o=ji(e,t,n);switch((r=ia(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(i=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(sa(t)/3)))-sa(Math.abs(e)))}(o,a))||(r.precision=i),pa(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,sa(t)-sa(e))+1}(o,Math.max(Math.abs(e),Math.abs(t))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=function(e){return Math.max(0,-sa(Math.abs(e)))}(o))||(r.precision=i-2*("%"===r.type))}return ha(r)}(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var r,i,o=t(),a=0,s=o.length-1,l=o[a],u=o[s],c=10;for(u<l&&(i=l,l=u,u=i,i=a,a=s,s=i);c-- >0;){if((i=qi(l,u,n))===r)return o[a]=l,o[s]=u,t(o);if(i>0)l=Math.floor(l/i)*i,u=Math.ceil(u/i)*i;else{if(!(i<0))break;l=Math.ceil(l*i)/i,u=Math.floor(u*i)/i}r=i}return e},e}function va(){var e=ea();return e.copy=function(){return Jo(e,va())},ta.apply(e,arguments),ma(e)}da=function(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?ca:(t=fa.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?ca:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(fa.call(e.numerals,String)),l=void 0===e.percent?"%":e.percent+"",u=void 0===e.minus?"-":e.minus+"",c=void 0===e.nan?"NaN":e.nan+"";function d(e){var t=(e=ia(e)).fill,n=e.align,d=e.sign,h=e.symbol,p=e.zero,f=e.width,g=e.comma,m=e.precision,v=e.trim,_=e.type;"n"===_?(g=!0,_="g"):ua[_]||(void 0===m&&(m=12),v=!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=ua[_],C=/[defgprs%]/.test(_);function k(e){var i,o,l,h=y,k=x;if("c"===_)k=b(e)+k,e="";else{var E=(e=+e)<0||1/e<0;if(e=isNaN(e)?c:b(Math.abs(e),m),v&&(e=function(e){e:for(var t,n=e.length,r=1,i=-1;r<n;++r)switch(e[r]){case".":i=t=r;break;case"0":0===i&&(i=r),t=r;break;default:if(!+e[r])break e;i>0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),E&&0==+e&&"+"!==d&&(E=!1),h=(E?"("===d?d:u:"-"===d||"("===d?"":d)+h,k=("s"===_?ga[8+na/3]:"")+k+(E&&"("===d?")":""),C)for(i=-1,o=e.length;++i<o;)if(48>(l=e.charCodeAt(i))||l>57){k=(46===l?a+e.slice(i+1):e.slice(i))+k,e=e.slice(0,i);break}}g&&!p&&(e=r(e,1/0));var S=h.length+e.length+k.length,L=S<f?new Array(f-S+1).join(t):"";switch(g&&p&&(e=r(L+e,L.length?f-k.length:1/0),L=""),n){case"<":e=h+e+k+L;break;case"=":e=h+L+e+k;break;case"^":e=L.slice(0,S=L.length>>1)+h+e+k+L.slice(S);break;default:e=L+h+e+k}return s(e)}return m=void 0===m?6:/[gprs]/.test(_)?Math.max(1,Math.min(21,m)):Math.max(0,Math.min(20,m)),k.toString=function(){return e+""},k}return{format:d,formatPrefix:function(e,t){var n=d(((e=ia(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(sa(t)/3))),i=Math.pow(10,-r),o=ga[8+r/3];return function(e){return n(i*e)+o}}}}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),ha=da.format,pa=da.formatPrefix;const _a=1e3,ya=6e4,xa=36e5,ba=864e5,Ca=6048e5,ka=31536e6;var Ea=new Date,Sa=new Date;function La(e,t,n,r){function i(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return i.floor=function(t){return e(t=new Date(+t)),t},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 La((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 Ea.setTime(+t),Sa.setTime(+r),e(Ea),e(Sa),Math.floor(n(Ea,Sa))},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 Aa=La((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e}));Aa.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?La((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):Aa:null};var wa=Aa,Da=(Aa.range,La((function(e){e.setTime(e-e.getMilliseconds())}),(function(e,t){e.setTime(+e+t*_a)}),(function(e,t){return(t-e)/_a}),(function(e){return e.getUTCSeconds()}))),Ta=Da,Ma=(Da.range,La((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*_a)}),(function(e,t){e.setTime(+e+t*ya)}),(function(e,t){return(t-e)/ya}),(function(e){return e.getMinutes()}))),Pa=Ma,Na=(Ma.range,La((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*_a-e.getMinutes()*ya)}),(function(e,t){e.setTime(+e+t*xa)}),(function(e,t){return(t-e)/xa}),(function(e){return e.getHours()}))),Fa=Na,Ia=(Na.range,La((e=>e.setHours(0,0,0,0)),((e,t)=>e.setDate(e.getDate()+t)),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*ya)/ba),(e=>e.getDate()-1))),Oa=Ia;function Va(e){return La((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())*ya)/Ca}))}Ia.range;var Ha=Va(0),Ra=Va(1),Ba=Va(2),Wa=Va(3),za=Va(4),Ua=Va(5),Ya=Va(6),qa=(Ha.range,Ra.range,Ba.range,Wa.range,za.range,Ua.range,Ya.range,La((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()}))),ja=qa,Xa=(qa.range,La((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()})));Xa.every=function(e){return isFinite(e=Math.floor(e))&&e>0?La((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 Ka=Xa,Ga=(Xa.range,La((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+t*ya)}),(function(e,t){return(t-e)/ya}),(function(e){return e.getUTCMinutes()}))),Za=Ga,$a=(Ga.range,La((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+t*xa)}),(function(e,t){return(t-e)/xa}),(function(e){return e.getUTCHours()}))),Qa=$a,Ja=($a.range,La((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/ba}),(function(e){return e.getUTCDate()-1}))),es=Ja;function ts(e){return La((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)/Ca}))}Ja.range;var ns=ts(0),rs=ts(1),is=ts(2),os=ts(3),as=ts(4),ss=ts(5),ls=ts(6),us=(ns.range,rs.range,is.range,os.range,as.range,ss.range,ls.range,La((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()}))),cs=us,ds=(us.range,La((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()})));ds.every=function(e){return isFinite(e=Math.floor(e))&&e>0?La((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 hs=ds;function ps(e,t,n,r,i,o){const a=[[Ta,1,_a],[Ta,5,5e3],[Ta,15,15e3],[Ta,30,3e4],[o,1,ya],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,xa],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,ba],[r,2,1728e5],[n,1,Ca],[t,1,2592e6],[t,3,7776e6],[e,1,ka]];function s(t,n,r){const i=Math.abs(n-t)/r,o=Gi((([,,e])=>e)).right(a,i);if(o===a.length)return e.every(ji(t/ka,n/ka,r));if(0===o)return wa.every(Math.max(ji(t,n,r),1));const[s,l]=a[i/a[o-1][2]<a[o][2]/i?o-1:o];return s.every(l)}return[function(e,t,n){const r=t<e;r&&([e,t]=[t,e]);const i=n&&"function"==typeof n.range?n:s(e,t,n),o=i?i.range(e,+t+1):[];return r?o.reverse():o},s]}ds.range;const[fs,gs]=ps(hs,cs,ns,es,Qa,Za),[ms,vs]=ps(Ka,ja,Ha,Oa,Fa,Pa);var _s=new Date,ys=new Date;function xs(e,t,n,r){function i(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return i.floor=function(t){return e(t=new Date(+t)),t},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 xs((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 _s.setTime(+t),ys.setTime(+r),e(_s),e(ys),Math.floor(n(_s,ys))},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 bs=1e3,Cs=6e4,ks=36e5,Es=864e5,Ss=6048e5;function Ls(e){return xs((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)/Ss}))}var As=Ls(0),ws=Ls(1),Ds=Ls(2),Ts=Ls(3),Ms=Ls(4),Ps=Ls(5),Ns=Ls(6),Fs=(As.range,ws.range,Ds.range,Ts.range,Ms.range,Ps.range,Ns.range,xs((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/Es}),(function(e){return e.getUTCDate()-1}))),Is=Fs;function Os(e){return xs((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())*Cs)/Ss}))}Fs.range;var Vs=Os(0),Hs=Os(1),Rs=Os(2),Bs=Os(3),Ws=Os(4),zs=Os(5),Us=Os(6),Ys=(Vs.range,Hs.range,Rs.range,Bs.range,Ws.range,zs.range,Us.range,xs((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())*Cs)/Es}),(function(e){return e.getDate()-1}))),qs=Ys,js=(Ys.range,xs((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()})));js.every=function(e){return isFinite(e=Math.floor(e))&&e>0?xs((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 Xs=js,Ks=(js.range,xs((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()})));Ks.every=function(e){return isFinite(e=Math.floor(e))&&e>0?xs((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 Gs=Ks;function Zs(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 $s(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 Qs(e){return{y:e,m:0,d:1,H:0,M:0,S:0,L:0}}function Js(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,a=e.shortDays,s=e.months,l=e.shortMonths,u=cl(i),c=dl(i),d=cl(o),h=dl(o),p=cl(a),f=dl(a),g=cl(s),m=dl(s),v=cl(l),_=dl(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:Ml,e:Ml,f:Ol,H:Pl,I:Nl,j:Fl,L:Il,m:Vl,M:Hl,p:function(e){return i[+(e.getHours()>=12)]},Q:hu,s:pu,S:Rl,u:Bl,U:Wl,V:zl,w:Ul,W:Yl,x:null,X:null,y:ql,Y:jl,Z:Xl,"%":du},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:Kl,e:Kl,f:Jl,H:Gl,I:Zl,j:$l,L:Ql,m:eu,M:tu,p:function(e){return i[+(e.getUTCHours()>=12)]},Q:hu,s:pu,S:nu,u:ru,U:iu,V:ou,w:au,W:su,x:null,X:null,y:lu,Y:uu,Z:cu,"%":du},b={a:function(e,t,n){var r=p.exec(t.slice(n));return r?(e.w=f[r[0].toLowerCase()],n+r[0].length):-1},A:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=h[r[0].toLowerCase()],n+r[0].length):-1},b:function(e,t,n){var r=v.exec(t.slice(n));return r?(e.m=_[r[0].toLowerCase()],n+r[0].length):-1},B:function(e,t,n){var r=g.exec(t.slice(n));return r?(e.m=m[r[0].toLowerCase()],n+r[0].length):-1},c:function(e,n,r){return E(e,t,n,r)},d:bl,e:bl,f:Al,H:kl,I:kl,j:Cl,L:Ll,m:xl,M:El,p:function(e,t,n){var r=u.exec(t.slice(n));return r?(e.p=c[r[0].toLowerCase()],n+r[0].length):-1},Q:Dl,s:Tl,S:Sl,u:pl,U:fl,V:gl,w:hl,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:_l,Y:vl,Z:yl,"%":wl};function C(e,t){return function(n){var r,i,o,a=[],s=-1,l=0,u=e.length;for(n instanceof Date||(n=new Date(+n));++s<u;)37===e.charCodeAt(s)&&(a.push(e.slice(l,s)),null!=(i=il[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 k(e,t){return function(n){var r,i,o=Qs(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=$s(Qs(o.y))).getUTCDay(),r=i>4||0===i?ws.ceil(r):ws(r),r=Is.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(Qs(o.y))).getDay(),r=i>4||0===i?Hs.ceil(r):Hs(r),r=qs.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?$s(Qs(o.y)).getUTCDay():t(Qs(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,$s(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 il?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=k(e+="",Zs);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=k(e,$s);return t.toString=function(){return e},t}}}Ks.range;var el,tl,nl,rl,il={"-":"",_:" ",0:"0"},ol=/^\s*\d+/,al=/^%/,sl=/[\\^$*+?|[\]().{}]/g;function ll(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 ul(e){return e.replace(sl,"\\$&")}function cl(e){return new RegExp("^(?:"+e.map(ul).join("|")+")","i")}function dl(e){for(var t={},n=-1,r=e.length;++n<r;)t[e[n].toLowerCase()]=n;return t}function hl(e,t,n){var r=ol.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function pl(e,t,n){var r=ol.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function fl(e,t,n){var r=ol.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function gl(e,t,n){var r=ol.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function ml(e,t,n){var r=ol.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function vl(e,t,n){var r=ol.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function _l(e,t,n){var r=ol.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function yl(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 xl(e,t,n){var r=ol.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function bl(e,t,n){var r=ol.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Cl(e,t,n){var r=ol.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function kl(e,t,n){var r=ol.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function El(e,t,n){var r=ol.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Sl(e,t,n){var r=ol.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Ll(e,t,n){var r=ol.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Al(e,t,n){var r=ol.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function wl(e,t,n){var r=al.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Dl(e,t,n){var r=ol.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Tl(e,t,n){var r=ol.exec(t.slice(n));return r?(e.Q=1e3*+r[0],n+r[0].length):-1}function Ml(e,t){return ll(e.getDate(),t,2)}function Pl(e,t){return ll(e.getHours(),t,2)}function Nl(e,t){return ll(e.getHours()%12||12,t,2)}function Fl(e,t){return ll(1+qs.count(Xs(e),e),t,3)}function Il(e,t){return ll(e.getMilliseconds(),t,3)}function Ol(e,t){return Il(e,t)+"000"}function Vl(e,t){return ll(e.getMonth()+1,t,2)}function Hl(e,t){return ll(e.getMinutes(),t,2)}function Rl(e,t){return ll(e.getSeconds(),t,2)}function Bl(e){var t=e.getDay();return 0===t?7:t}function Wl(e,t){return ll(Vs.count(Xs(e),e),t,2)}function zl(e,t){var n=e.getDay();return e=n>=4||0===n?Ws(e):Ws.ceil(e),ll(Ws.count(Xs(e),e)+(4===Xs(e).getDay()),t,2)}function Ul(e){return e.getDay()}function Yl(e,t){return ll(Hs.count(Xs(e),e),t,2)}function ql(e,t){return ll(e.getFullYear()%100,t,2)}function jl(e,t){return ll(e.getFullYear()%1e4,t,4)}function Xl(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+ll(t/60|0,"0",2)+ll(t%60,"0",2)}function Kl(e,t){return ll(e.getUTCDate(),t,2)}function Gl(e,t){return ll(e.getUTCHours(),t,2)}function Zl(e,t){return ll(e.getUTCHours()%12||12,t,2)}function $l(e,t){return ll(1+Is.count(Gs(e),e),t,3)}function Ql(e,t){return ll(e.getUTCMilliseconds(),t,3)}function Jl(e,t){return Ql(e,t)+"000"}function eu(e,t){return ll(e.getUTCMonth()+1,t,2)}function tu(e,t){return ll(e.getUTCMinutes(),t,2)}function nu(e,t){return ll(e.getUTCSeconds(),t,2)}function ru(e){var t=e.getUTCDay();return 0===t?7:t}function iu(e,t){return ll(As.count(Gs(e),e),t,2)}function ou(e,t){var n=e.getUTCDay();return e=n>=4||0===n?Ms(e):Ms.ceil(e),ll(Ms.count(Gs(e),e)+(4===Gs(e).getUTCDay()),t,2)}function au(e){return e.getUTCDay()}function su(e,t){return ll(ws.count(Gs(e),e),t,2)}function lu(e,t){return ll(e.getUTCFullYear()%100,t,2)}function uu(e,t){return ll(e.getUTCFullYear()%1e4,t,4)}function cu(){return"+0000"}function du(){return"%"}function hu(e){return+e}function pu(e){return Math.floor(+e/1e3)}el=Js({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"]}),tl=el.format,el.parse,nl=el.utcFormat,rl=el.utcParse;var fu="%Y-%m-%dT%H:%M:%S.%LZ";function gu(e){return new Date(e)}function mu(e){return e instanceof Date?+e:+new Date(+e)}function vu(e,t,n,r,i,o,a,s,l,u){var c=ea(),d=c.invert,h=c.domain,p=u(".%L"),f=u(":%S"),g=u("%I:%M"),m=u("%I %p"),v=u("%a %d"),_=u("%b %d"),y=u("%B"),x=u("%Y");function b(e){return(l(e)<e?p:s(e)<e?f:a(e)<e?g:o(e)<e?m:r(e)<e?i(e)<e?v:_:n(e)<e?y:x)(e)}return c.invert=function(e){return new Date(d(e))},c.domain=function(e){return arguments.length?h(Array.from(e,mu)):h().map(gu)},c.ticks=function(t){var n=h();return e(n[0],n[n.length-1],null==t?10:t)},c.tickFormat=function(e,t){return null==t?b:u(t)},c.nice=function(e){var n=h();return e&&"function"==typeof e.range||(e=t(n[0],n[n.length-1],null==e?10:e)),e?h(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 Jo(c,vu(e,t,n,r,i,o,a,s,l,u))},c}function _u(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}Date.prototype.toISOString||nl(fu),+new Date("2000-01-01T00:00:00.000Z")||rl(fu);class yu extends Map{constructor(e,t=bu){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[t,n]of e)this.set(t,n)}get(e){return super.get(xu(this,e))}has(e){return super.has(xu(this,e))}set(e,t){return super.set(function({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}(this,e),t)}delete(e){return super.delete(function({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}(this,e))}}function xu({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function bu(e){return null!==e&&"object"==typeof e?e.valueOf():e}Set;const Cu=Symbol("implicit");function ku(){var e=new yu,t=[],n=[],r=Cu;function i(i){let o=e.get(i);if(void 0===o){if(r!==Cu)return r;e.set(i,o=t.push(i)-1)}return n[o%n.length]}return i.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new yu;for(const r of n)e.has(r)||e.set(r,t.push(r)-1);return i},i.range=function(e){return arguments.length?(n=Array.from(e),i):n.slice()},i.unknown=function(e){return arguments.length?(r=e,i):r},i.copy=function(){return ku(t,n).unknown(r)},ta.apply(i,arguments),i}function Eu(){var e,t,n=ku().unknown(void 0),r=n.domain,i=n.range,o=0,a=1,s=!1,l=0,u=0,c=.5;function d(){var n=r().length,d=a<o,h=d?a:o,p=d?o:a;e=(p-h)/Math.max(1,n-l+2*u),s&&(e=Math.floor(e)),h+=(p-h-e*(n-l))*c,t=e*(1-l),s&&(h=Math.round(h),t=Math.round(t));var f=_u(n).map((function(t){return h+e*t}));return i(d?f.reverse():f)}return delete n.unknown,n.domain=function(e){return arguments.length?(r(e),d()):r()},n.range=function(e){return arguments.length?([o,a]=e,o=+o,a=+a,d()):[o,a]},n.rangeRound=function(e){return[o,a]=e,o=+o,a=+a,s=!0,d()},n.bandwidth=function(){return t},n.step=function(){return e},n.round=function(e){return arguments.length?(s=!!e,d()):s},n.padding=function(e){return arguments.length?(l=Math.min(1,u=+e),d()):l},n.paddingInner=function(e){return arguments.length?(l=Math.min(1,e),d()):l},n.paddingOuter=function(e){return arguments.length?(u=+e,d()):u},n.align=function(e){return arguments.length?(c=Math.max(0,Math.min(1,e)),d()):c},n.copy=function(){return Eu(r(),[o,a]).round(s).paddingInner(l).paddingOuter(u).align(c)},ta.apply(d(),arguments)}var Su="http://www.w3.org/1999/xhtml",Lu={svg:"http://www.w3.org/2000/svg",xhtml:Su,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Au(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),Lu.hasOwnProperty(t)?{space:Lu[t],local:e}:e}function wu(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===Su&&t.documentElement.namespaceURI===Su?t.createElement(e):t.createElementNS(n,e)}}function Du(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Tu(e){var t=Au(e);return(t.local?Du:wu)(t)}function Mu(){}function Pu(e){return null==e?Mu:function(){return this.querySelector(e)}}function Nu(){return[]}var Fu=function(e){return function(){return this.matches(e)}};if("undefined"!=typeof document){var Iu=document.documentElement;if(!Iu.matches){var Ou=Iu.webkitMatchesSelector||Iu.msMatchesSelector||Iu.mozMatchesSelector||Iu.oMatchesSelector;Fu=function(e){return function(){return Ou.call(this,e)}}}}var Vu=Fu;function Hu(e){return new Array(e.length)}function Ru(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function Bu(e,t,n,r,i,o){for(var a,s=0,l=t.length,u=o.length;s<u;++s)(a=t[s])?(a.__data__=o[s],r[s]=a):n[s]=new Ru(e,o[s]);for(;s<l;++s)(a=t[s])&&(i[s]=a)}function Wu(e,t,n,r,i,o,a){var s,l,u,c={},d=t.length,h=o.length,p=new Array(d);for(s=0;s<d;++s)(l=t[s])&&(p[s]=u="$"+a.call(l,l.__data__,s,t),u in c?i[s]=l:c[u]=l);for(s=0;s<h;++s)(l=c[u="$"+a.call(e,o[s],s,o)])?(r[s]=l,l.__data__=o[s],c[u]=null):n[s]=new Ru(e,o[s]);for(s=0;s<d;++s)(l=t[s])&&c[p[s]]===l&&(i[s]=l)}function zu(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Uu(e){return function(){this.removeAttribute(e)}}function Yu(e){return function(){this.removeAttributeNS(e.space,e.local)}}function qu(e,t){return function(){this.setAttribute(e,t)}}function ju(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Xu(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function Ku(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 Gu(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Zu(e){return function(){this.style.removeProperty(e)}}function $u(e,t,n){return function(){this.style.setProperty(e,t,n)}}function Qu(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function Ju(e,t){return e.style.getPropertyValue(t)||Gu(e).getComputedStyle(e,null).getPropertyValue(t)}function ec(e){return function(){delete this[e]}}function tc(e,t){return function(){this[e]=t}}function nc(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}function rc(e){return e.trim().split(/^|\s+/)}function ic(e){return e.classList||new oc(e)}function oc(e){this._node=e,this._names=rc(e.getAttribute("class")||"")}function ac(e,t){for(var n=ic(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function sc(e,t){for(var n=ic(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function lc(e){return function(){ac(this,e)}}function uc(e){return function(){sc(this,e)}}function cc(e,t){return function(){(t.apply(this,arguments)?ac:sc)(this,e)}}function dc(){this.textContent=""}function hc(e){return function(){this.textContent=e}}function pc(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}function fc(){this.innerHTML=""}function gc(e){return function(){this.innerHTML=e}}function mc(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}function vc(){this.nextSibling&&this.parentNode.appendChild(this)}function _c(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function yc(){return null}function xc(){var e=this.parentNode;e&&e.removeChild(this)}function bc(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}function Cc(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}Ru.prototype={constructor:Ru,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)}},oc.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 kc={},Ec=null;function Sc(e,t,n){return e=Lc(e,t,n),function(t){var n=t.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||e.call(this,t)}}function Lc(e,t,n){return function(r){var i=Ec;Ec=r;try{e.call(this,this.__data__,t,n)}finally{Ec=i}}}function Ac(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 wc(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 Dc(e,t,n){var r=kc.hasOwnProperty(e.type)?Sc:Lc;return function(i,o,a){var s,l=this.__on,u=r(t,o,a);if(l)for(var c=0,d=l.length;c<d;++c)if((s=l[c]).type===e.type&&s.name===e.name)return this.removeEventListener(s.type,s.listener,s.capture),this.addEventListener(s.type,s.listener=u,s.capture=n),void(s.value=t);this.addEventListener(e.type,u,n),s={type:e.type,name:e.name,value:t,listener:u,capture:n},l?l.push(s):this.__on=[s]}}function Tc(e,t,n){var r=Gu(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 Mc(e,t){return function(){return Tc(this,e,t)}}function Pc(e,t){return function(){return Tc(this,e,t.apply(this,arguments))}}"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(kc={mouseenter:"mouseover",mouseleave:"mouseout"}));var Nc=[null];function Fc(e,t){this._groups=e,this._parents=t}function Ic(e){return"string"==typeof e?new Fc([[document.querySelector(e)]],[document.documentElement]):new Fc([[e]],Nc)}Fc.prototype=function(){return new Fc([[document.documentElement]],Nc)}.prototype={constructor:Fc,select:function(e){"function"!=typeof e&&(e=Pu(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o,a,s=t[i],l=s.length,u=r[i]=new Array(l),c=0;c<l;++c)(o=s[c])&&(a=e.call(o,o.__data__,c,s))&&("__data__"in o&&(a.__data__=o.__data__),u[c]=a);return new Fc(r,this._parents)},selectAll:function(e){"function"!=typeof e&&(e=function(e){return null==e?Nu:function(){return this.querySelectorAll(e)}}(e));for(var t=this._groups,n=t.length,r=[],i=[],o=0;o<n;++o)for(var a,s=t[o],l=s.length,u=0;u<l;++u)(a=s[u])&&(r.push(e.call(a,a.__data__,u,s)),i.push(a));return new Fc(r,i)},filter:function(e){"function"!=typeof e&&(e=Vu(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o,a=t[i],s=a.length,l=r[i]=[],u=0;u<s;++u)(o=a[u])&&e.call(o,o.__data__,u,a)&&l.push(o);return new Fc(r,this._parents)},data:function(e,t){if(!e)return f=new Array(this.size()),c=-1,this.each((function(e){f[++c]=e})),f;var n,r=t?Wu:Bu,i=this._parents,o=this._groups;"function"!=typeof e&&(n=e,e=function(){return n});for(var a=o.length,s=new Array(a),l=new Array(a),u=new Array(a),c=0;c<a;++c){var d=i[c],h=o[c],p=h.length,f=e.call(d,d&&d.__data__,c,i),g=f.length,m=l[c]=new Array(g),v=s[c]=new Array(g);r(d,h,m,v,u[c]=new Array(p),f,t);for(var _,y,x=0,b=0;x<g;++x)if(_=m[x]){for(x>=b&&(b=x+1);!(y=v[b])&&++b<g;);_._next=y||null}}return(s=new Fc(s,i))._enter=l,s._exit=u,s},enter:function(){return new Fc(this._enter||this._groups.map(Hu),this._parents)},exit:function(){return new Fc(this._exit||this._groups.map(Hu),this._parents)},merge:function(e){for(var t=this._groups,n=e._groups,r=t.length,i=n.length,o=Math.min(r,i),a=new Array(r),s=0;s<o;++s)for(var l,u=t[s],c=n[s],d=u.length,h=a[s]=new Array(d),p=0;p<d;++p)(l=u[p]||c[p])&&(h[p]=l);for(;s<r;++s)a[s]=t[s];return new Fc(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=zu);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o){for(var a,s=n[o],l=s.length,u=i[o]=new Array(l),c=0;c<l;++c)(a=s[c])&&(u[c]=a);u.sort(t)}return new Fc(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=Au(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?Yu:Uu:"function"==typeof t?n.local?Ku:Xu:n.local?ju:qu)(n,t))},style:function(e,t,n){return arguments.length>1?this.each((null==t?Zu:"function"==typeof t?Qu:$u)(e,t,null==n?"":n)):Ju(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?ec:"function"==typeof t?nc:tc)(e,t)):this.node()[e]},classed:function(e,t){var n=rc(e+"");if(arguments.length<2){for(var r=ic(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"==typeof t?cc:t?lc:uc)(n,t))},text:function(e){return arguments.length?this.each(null==e?dc:("function"==typeof e?pc:hc)(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?fc:("function"==typeof e?mc:gc)(e)):this.node().innerHTML},raise:function(){return this.each(vc)},lower:function(){return this.each(_c)},append:function(e){var t="function"==typeof e?e:Tu(e);return this.select((function(){return this.appendChild(t.apply(this,arguments))}))},insert:function(e,t){var n="function"==typeof e?e:Tu(e),r=null==t?yc:"function"==typeof t?t:Pu(t);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each(xc)},clone:function(e){return this.select(e?Cc:bc)},datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},on:function(e,t,n){var r,i,o=Ac(e+""),a=o.length;if(!(arguments.length<2)){for(s=t?Dc:wc,null==n&&(n=!1),r=0;r<a;++r)this.each(s(o[r],t,n));return this}var s=this.node().__on;if(s)for(var l,u=0,c=s.length;u<c;++u)for(r=0,l=s[u];r<a;++r)if((i=o[r]).type===l.type&&i.name===l.name)return l.value},dispatch:function(e,t){return this.each(("function"==typeof t?Pc:Mc)(e,t))}};var Oc=0;function Vc(){this._="@"+(++Oc).toString(36)}function Hc(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]}function Rc(e){return"string"==typeof e?new Fc([document.querySelectorAll(e)],[document.documentElement]):new Fc([null==e?[]:e],Nc)}Vc.prototype=function(){return new Vc}.prototype={constructor:Vc,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._}};var Bc,Wc,zc,Uc,Yc=xs((function(e){e.setTime(e-e.getMilliseconds())}),(function(e,t){e.setTime(+e+t*bs)}),(function(e,t){return(t-e)/bs}),(function(e){return e.getUTCSeconds()})),qc=Yc,jc=(Yc.range,xs((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*bs)}),(function(e,t){e.setTime(+e+t*Cs)}),(function(e,t){return(t-e)/Cs}),(function(e){return e.getMinutes()}))),Xc=jc,Kc=(jc.range,xs((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*bs-e.getMinutes()*Cs)}),(function(e,t){e.setTime(+e+t*ks)}),(function(e,t){return(t-e)/ks}),(function(e){return e.getHours()}))),Gc=Kc,Zc=(Kc.range,xs((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()}))),$c=Zc;function Qc(e,t){var n=e.domainNRangeValues,r=e.showRoundOffXTickValues,i=void 0!==r&&r,o=e.xAxistickSize,a=void 0===o?6:o,s=e.tickPadding,l=void 0===s?10:s,u=e.xAxisCount,c=void 0===u?6:u,d=e.xAxisElement,h=va().domain([n.dStartValue,n.dEndValue]).range([n.rStartValue,n.rEndValue]);i&&h.nice();var p=Ni(h).tickSize(a).tickPadding(l).ticks(c).tickSizeOuter(0).tickFormat((function(e,n){var r="number"==typeof e?e:e.valueOf();return cd(r,t)}));return d&&Ic(d).call(p).selectAll("text").attr("aria-hidden","true"),h}function Jc(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=Ic("body").append("div").attr("id",r).attr("class",t).style("opacity",0),o=n.selectAll("#BaseSpan")._groups[0],a=o&&Object.keys(o).length,s=[],l=0;l<a;l++){var u=o[l].dataset&&Object.values(o[l].dataset)[0];s.push(u)}var c=n.selectAll(".tick")._groups[0],d=c&&Object.keys(c).length,h=function(e){Ic(c[e]).on("mouseover",(function(t){i.style("opacity",.9),i.html(s[e]).style("left",Ec.pageX+"px").style("top",Ec.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 u;if(o===zc.NumericAxis)switch(r){case Wc.AreaChart:case Wc.LineChart:u=function(e,t,n,r){var i=Bi(e,(function(e){return Bi(e.data,(function(e){return e.x}))})),o=Ri(e,(function(e){return Ri(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 Wc.VerticalStackedBarChart:u=function(e,t,n,r,i){var o=Bi(e,(function(e){return e.x})),a=Ri(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 Wc.VerticalBarChart:u=function(e,t,n,r,i){var o=Ri(e,(function(e){return e.x})),a=Bi(e,(function(e){return e.x})),s=t.left+i/2,l=n-t.right-i/2;return r?{dStartValue:o,dEndValue:a,rStartValue:s,rEndValue:l}:{dStartValue:a,dEndValue:o,rStartValue:s,rEndValue:l}}(e,t,n,i,s);break;default:u={dStartValue:0,dEndValue:0,rStartValue:0,rEndValue:0}}else if(o===zc.DateAxis)switch(r){case Wc.AreaChart:case Wc.LineChart:u=function(e,t,n,r,i){void 0===i&&(i=[]);var o=Bi(e,(function(e){return Bi(e.data,(function(e){return e.x}))})),s=Ri(e,(function(e){return Ri(e.data,(function(e){return e.x}))})),l=Bi(a(a([],i),[o])),u=Ri(a(a([],i),[s])),c=t.left,d=n-t.right;return r?{dStartValue:u,dEndValue:l,rStartValue:c,rEndValue:d}:{dStartValue:l,dEndValue:u,rStartValue:c,rEndValue:d}}(e,t,n,i,l);break;default:u={dStartValue:0,dEndValue:0,rStartValue:0,rEndValue:0}}else switch(r){case Wc.VerticalStackedBarChart:case Wc.GroupedVerticalBarChart:case Wc.VerticalBarChart:case Wc.HeatMapChart:u=function(e,t,n){var r=e.left,i=t-e.right;return n?{dStartValue:0,dEndValue:0,rStartValue:i,rEndValue:r}:{dStartValue:0,dEndValue:0,rStartValue:r,rEndValue:i}}(t,n,i);break;default:u={dStartValue:0,dEndValue:0,rStartValue:0,rEndValue:0}}return u}function rd(e,t){var n,r,i;switch(t){case Wc.AreaChart:case Wc.LineChart:n=function(e){var t=Ri(e,(function(e){return Ri(e.data,(function(e){return e.y}))}));return{startValue:Bi(e,(function(e){return Bi(e.data,(function(e){return e.y}))})),endValue:t}}(e);break;case Wc.VerticalStackedBarChart:i=Ri(r=e,(function(e){return e.y})),n={startValue:Bi(r,(function(e){return e.y})),endValue:i};break;case Wc.VerticalBarChart:n=function(e){var t=Ri(e,(function(e){return e.y}));return{startValue:Bi(e,(function(e){return e.y})),endValue:t}}(e);break;default:n={startValue:0,endValue:0}}return n}Zc.range,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"}(Wc||(Wc={})),function(e){e[e.NumericAxis=0]="NumericAxis",e[e.DateAxis=1]="DateAxis",e[e.StringAxis=2]="StringAxis"}(zc||(zc={})),function(e){e[e.NumericAxis=0]="NumericAxis",e[e.DateAxis=1]="DateAxis",e[e.StringAxis=2]="StringAxis"}(Uc||(Uc={}));var id,od,ad=function(e,t){if(t)switch(typeof e){case"string":return zc.StringAxis;case"number":return zc.NumericAxis;default:return zc.DateAxis}else switch(typeof e){case"string":return Uc.StringAxis;case"number":return Uc.NumericAxis;default:return Uc.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=((Bc={})[id.circle]={widthRatio:1},Bc[id.square]={widthRatio:1},Bc[id.triangle]={widthRatio:1},Bc[id.diamond]={widthRatio:1},Bc[id.pyramid]={widthRatio:1},Bc[id.hexagon]={widthRatio:2},Bc[id.pentagon]={widthRatio:1.168},Bc[id.octagon]={widthRatio:2.414},Bc),ud=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}},cd=function(e,t){return e?(t=t||void 0,"number"==typeof e?e.toLocaleString(t):"string"!=typeof e||window.isNaN(Number(e))?e:Number(e).toLocaleString(t)):e},dd=ue(),hd=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.render=function(){var e=this.props,t=e.color,n=e.Legend,r=e.XValue,i=e.YValue,o=e.styles,a=e.theme,l=e.ratio,u=e.descriptionMessage,c=e.culture;return this._classNames=dd(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},cd(n,c)),s.createElement("div",{className:this._classNames.calloutContentY},cd(i,c))),!!l&&s.createElement("div",{className:this._classNames.ratio},s.createElement(s.Fragment,null,s.createElement("span",{className:this._classNames.numerator},cd(l[0],c)),"/",s.createElement("span",{className:this._classNames.denominator},cd(l[1],c))))),!!u&&s.createElement("div",{className:this._classNames.descriptionMessage},u))},t}(s.Component),pd=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:Mn.bold},denominator:{fontWeight:Mn.semibold},descriptionMessage:[r.fonts.small,{color:r.semanticColors.bodyText,marginTop:"10px",paddingTop:"10px",borderTop:"1px solid "+r.semanticColors.menuDivider}]}},fd=C(hd,pd);!function(e){e[e.vertical=0]="vertical",e[e.horizontal=1]="horizontal",e[e.bidirectional=2]="bidirectional",e[e.domOrder=3]="domOrder"}(sd||(sd={}));var gd=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 md(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 vd(e){!function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=md(e,e[n],t[n]))}(e,{componentDidMount:_d,componentDidUpdate:yd,componentWillUnmount:xd})}function _d(){bd(this.props.componentRef,this)}function yd(e){e.componentRef!==this.props.componentRef&&(bd(e.componentRef,null),bd(this.props.componentRef,this))}function xd(){bd(this.props.componentRef,null)}function bd(e,t){e&&("object"==typeof e?e.current=t:"function"==typeof e&&e(t))}function Cd(e,t){var n=be(e,(function(e){return t===e||e.hasAttribute(ii)}));return null!==n&&n.hasAttribute(ii)}var kd,Ed="data-is-focusable",Sd="data-focuszone-id",Ld="tabindex",Ad="data-no-vertical-wrap",wd="data-no-horizontal-wrap",Dd=999999999,Td=-999999999;function Md(e,t){var n;"function"==typeof MouseEvent?n=new MouseEvent("click",{ctrlKey:null==t?void 0:t.ctrlKey,metaKey:null==t?void 0:t.metaKey,shiftKey:null==t?void 0:t.shiftKey,altKey:null==t?void 0:t.altKey,bubbles:null==t?void 0:t.bubbles,cancelable:null==t?void 0:t.cancelable}):(n=document.createEvent("MouseEvents")).initMouseEvent("click",!!t&&t.bubbles,!!t&&t.cancelable,window,0,0,0,0,0,!!t&&t.ctrlKey,!!t&&t.altKey,!!t&&t.shiftKey,!!t&&t.metaKey,0,null),e.dispatchEvent(n)}var Pd,Nd={},Fd=new Set,Id=["text","number","password","email","tel","url","search","textarea"],Od=!1,Vd=function(e){function t(n){var r,i,o,a,l,u=e.call(this,n)||this;u._root=s.createRef(),u._mergedRef=(l={refs:[]},function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return l.resolver&&ye(l.refs,e)||(l.resolver=gd(l)),l.refs=e,l.resolver}),u._onFocus=function(e){if(!u._portalContainsElement(e.target)){var t,n=u.props,r=n.onActiveElementChanged,i=n.doNotAllowFocusEventToPropagate,o=n.stopFocusPropagation,a=n.onFocusNotification,s=n.onFocus,l=n.shouldFocusInnerElementWhenReceivedFocus,c=n.defaultTabbableElement,d=u._isImmediateDescendantOfZone(e.target);if(d)t=e.target;else for(var h=e.target;h&&h!==u._root.current;){if(we(h)&&u._isImmediateDescendantOfZone(h)){t=h;break}h=xe(h,Od)}if(l&&e.target===u._root.current){var p=c&&"function"==typeof c&&u._root.current&&c(u._root.current);p&&we(p)?(t=p,p.focus()):(u.focus(!0),u._activeElement&&(t=null))}var f=!u._activeElement;t&&t!==u._activeElement&&((d||f)&&u._setFocusAlignment(t,!0,!0),u._activeElement=t,f&&u._updateTabIndexes()),r&&r(u._activeElement,e),(o||i)&&e.stopPropagation(),s?s(e):a&&a()}},u._onBlur=function(){u._setParkedFocus(!1)},u._onMouseDown=function(e){if(!u._portalContainsElement(e.target)&&!u.props.disabled){for(var t=e.target,n=[];t&&t!==u._root.current;)n.push(t),t=xe(t,Od);for(;n.length&&((t=n.pop())&&we(t)&&u._setActiveElement(t,!0),!De(t)););}},u._onKeyDown=function(e,t){if(!u._portalContainsElement(e.target)){var n=u.props,r=n.direction,i=n.disabled,o=n.isInnerZoneKeystroke,a=n.pagingSupportDisabled,s=n.shouldEnterInnerZone;if(!(i||(u.props.onKeyDown&&u.props.onKeyDown(e),e.isDefaultPrevented()||u._getDocument().activeElement===u._root.current&&u._isInnerZone))){if((s&&s(e)||o&&o(e))&&u._isImmediateDescendantOfZone(e.target)){var l=u._getFirstInnerZone();if(l){if(!l.focus(!0))return}else{if(!Te(e.target))return;if(!u.focusElement(Se(e.target,e.target.firstChild,!0)))return}}else{if(e.altKey)return;switch(e.which){case 32:if(u._shouldRaiseClicksOnSpace&&u._tryInvokeClickForFocusable(e.target,e))break;return;case 37:if(r!==sd.vertical&&(u._preventDefaultWhenHandled(e),u._moveFocusLeft(t)))break;return;case 39:if(r!==sd.vertical&&(u._preventDefaultWhenHandled(e),u._moveFocusRight(t)))break;return;case 38:if(r!==sd.horizontal&&(u._preventDefaultWhenHandled(e),u._moveFocusUp()))break;return;case 40:if(r!==sd.horizontal&&(u._preventDefaultWhenHandled(e),u._moveFocusDown()))break;return;case 34:if(!a&&u._moveFocusPaging(!0))break;return;case 33:if(!a&&u._moveFocusPaging(!1))break;return;case 9:if(u.props.allowTabKey||1===u.props.handleTabKey||2===u.props.handleTabKey&&u._isElementInput(e.target)){var c=!1;if(u._processingTabKey=!0,c=r!==sd.vertical&&u._shouldWrapFocus(u._activeElement,wd)?(oe(t)?!e.shiftKey:e.shiftKey)?u._moveFocusLeft(t):u._moveFocusRight(t):e.shiftKey?u._moveFocusUp():u._moveFocusDown(),u._processingTabKey=!1,c)break;u.props.shouldResetActiveElementWhenTabFromZone&&(u._activeElement=null)}return;case 36:if(u._isContentEditableElement(e.target)||u._isElementInput(e.target)&&!u._shouldInputLoseFocus(e.target,!1))return!1;var d=u._root.current&&u._root.current.firstChild;if(u._root.current&&d&&u.focusElement(Se(u._root.current,d,!0)))break;return;case 35:if(u._isContentEditableElement(e.target)||u._isElementInput(e.target)&&!u._shouldInputLoseFocus(e.target,!0))return!1;var h=u._root.current&&u._root.current.lastChild;if(u._root.current&&u.focusElement(Ee(u._root.current,h,!0,!0,!0)))break;return;case 13:if(u._shouldRaiseClicksOnEnter&&u._tryInvokeClickForFocusable(e.target,e))break;return;default:return}}e.preventDefault(),e.stopPropagation()}}},u._getHorizontalDistanceFromCenter=function(e,t,n){var r=u._focusAlignment.left||u._focusAlignment.x||0,i=Math.floor(n.top),o=Math.floor(t.bottom),a=Math.floor(n.bottom),s=Math.floor(t.top);return e&&i>o||!e&&a<s?r>=n.left&&r<=n.left+n.width?0:Math.abs(n.left+n.width/2-r):u._shouldWrapFocus(u._activeElement,Ad)?Dd:Td},vd(u),di("FocusZone",n,{rootProps:void 0,allowTabKey:"handleTabKey",elementType:"as",ariaDescribedBy:"aria-describedby",ariaLabelledBy:"aria-labelledby"}),u._id=ge("FocusZone"),u._focusAlignment={left:0,top:0},u._processingTabKey=!1;var c=null===(i=null!==(r=n.shouldRaiseClicks)&&void 0!==r?r:t.defaultProps.shouldRaiseClicks)||void 0===i||i;return u._shouldRaiseClicksOnEnter=null!==(o=n.shouldRaiseClicksOnEnter)&&void 0!==o?o:c,u._shouldRaiseClicksOnSpace=null!==(a=n.shouldRaiseClicksOnSpace)&&void 0!==a?a:c,u}return r(t,e),t.getOuterZones=function(){return Fd.size},t._onKeyDownCapture=function(e){9===e.which&&Fd.forEach((function(e){return e._updateTabIndexes()}))},t.prototype.componentDidMount=function(){var e=this._root.current;if(Nd[this._id]=this,e){for(var n=xe(e,Od);n&&n!==this._getDocument().body&&1===n.nodeType;){if(De(n)){this._isInnerZone=!0;break}n=xe(n,Od)}this._isInnerZone||(Fd.add(this),this._root.current&&this._root.current.addEventListener("keydown",t._onKeyDownCapture,!0)),this._root.current&&this._root.current.addEventListener("blur",this._onBlur,!0),this._updateTabIndexes(),this.props.defaultTabbableElement&&"string"==typeof this.props.defaultTabbableElement?this._activeElement=this._getDocument().querySelector(this.props.defaultTabbableElement):this.props.defaultActiveElement&&(this._activeElement=this._getDocument().querySelector(this.props.defaultActiveElement)),this.props.shouldFocusOnMount&&this.focus()}},t.prototype.componentDidUpdate=function(){var e=this._root.current,t=this._getDocument();if((this._activeElement&&!Ce(this._root.current,this._activeElement,Od)||this._defaultFocusElement&&!Ce(this._root.current,this._defaultFocusElement,Od))&&(this._activeElement=null,this._defaultFocusElement=null,this._updateTabIndexes()),!this.props.preventFocusRestoration&&t&&this._lastIndexPath&&(t.activeElement===t.body||null===t.activeElement||t.activeElement===e)){var n=function(e,t){for(var n=e,r=0,i=t;r<i.length;r++){var o=i[r],a=n.children[Math.min(o,n.children.length-1)];if(!a)break;n=a}return we(n)&&Le(n)?n:Se(e,n,!0)||Ee(e,n)}(e,this._lastIndexPath);n?(this._setActiveElement(n,!0),n.focus(),this._setParkedFocus(!1)):this._setParkedFocus(!0)}},t.prototype.componentWillUnmount=function(){delete Nd[this._id],this._isInnerZone||(Fd.delete(this),this._root.current&&this._root.current.removeEventListener("keydown",t._onKeyDownCapture,!0)),this._root.current&&this._root.current.removeEventListener("blur",this._onBlur,!0),this._activeElement=null,this._defaultFocusElement=null},t.prototype.render=function(){var e=this,t=this.props,n=t.as,r=t.elementType,o=t.rootProps,a=t.ariaDescribedBy,l=t.ariaLabelledBy,u=t.className,c=qe(this.props,We),d=n||r||"div";this._evaluateFocusBeforeRender();var h,p=(void 0===h&&(h=!1),!0===h&&(kr=Cr({},h)),kr);return s.createElement(d,i({"aria-labelledby":l,"aria-describedby":a},c,o,{className:je((kd||(kd=Ge({selectors:{":focus":{outline:"none"}}},"ms-FocusZone")),kd),u),ref:this._mergedRef(this.props.elementRef,this._root),"data-focuszone-id":this._id,onKeyDown:function(t){return e._onKeyDown(t,p)},onFocus:this._onFocus,onMouseDownCapture:this._onMouseDown}),this.props.children)},t.prototype.focus=function(e,t){if(void 0===e&&(e=!1),void 0===t&&(t=!1),this._root.current){if(!e&&"true"===this._root.current.getAttribute(Ed)&&this._isInnerZone){var n=this._getOwnerZone(this._root.current);if(n!==this._root.current){var r=Nd[n.getAttribute(Sd)];return!!r&&r.focusElement(this._root.current)}return!1}if(!e&&this._activeElement&&Ce(this._root.current,this._activeElement)&&we(this._activeElement)&&(!t||Ae(this._activeElement)))return this._activeElement.focus(),!0;var i=this._root.current.firstChild;return this.focusElement(Se(this._root.current,i,!0,void 0,void 0,void 0,void 0,void 0,t))}return!1},t.prototype.focusLast=function(){if(this._root.current){var e=this._root.current&&this._root.current.lastChild;return this.focusElement(Ee(this._root.current,e,!0,!0,!0))}return!1},t.prototype.focusElement=function(e,t){var n=this.props,r=n.onBeforeFocus,i=n.shouldReceiveFocus;return!(i&&!i(e)||r&&!r(e)||!e||(this._setActiveElement(e,t),this._activeElement&&this._activeElement.focus(),0))},t.prototype.setFocusAlignment=function(e){this._focusAlignment=e},Object.defineProperty(t.prototype,"defaultFocusElement",{get:function(){return this._defaultFocusElement},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"activeElement",{get:function(){return this._activeElement},enumerable:!1,configurable:!0}),t.prototype._evaluateFocusBeforeRender=function(){var e=this._root.current,t=this._getDocument();if(t){var n=t.activeElement;if(n!==e){var r=Ce(e,n,!1);this._lastIndexPath=r?function(e,t){for(var n=[];t&&e&&t!==e;){var r=xe(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&&(De(n)&&this._updateTabIndexes(n),n.tabIndex=-1),this._activeElement&&(this._focusAlignment&&!t||this._setFocusAlignment(e,!0,!0),this._activeElement.tabIndex=0)},t.prototype._preventDefaultWhenHandled=function(e){this.props.preventDefaultWhenHandled&&e.preventDefault()},t.prototype._tryInvokeClickForFocusable=function(e,t){var n=e;if(n===this._root.current)return!1;do{if("BUTTON"===n.tagName||"A"===n.tagName||"INPUT"===n.tagName||"TEXTAREA"===n.tagName||"SUMMARY"===n.tagName)return!1;if(this._isImmediateDescendantOfZone(n)&&"true"===n.getAttribute(Ed)&&"true"!==n.getAttribute("data-disable-click-on-enter"))return Md(n,t),!0;n=xe(n,Od)}while(n!==this._root.current);return!1},t.prototype._getFirstInnerZone=function(e){if(!(e=e||this._activeElement||this._root.current))return null;if(De(e))return Nd[e.getAttribute(Sd)];for(var t=e.firstElementChild;t;){if(De(t))return Nd[t.getAttribute(Sd)];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===sd.bidirectional;if(!i||!this._root.current)return!1;if(this._isElementInput(i)&&!this._shouldInputLoseFocus(i,e))return!1;var u=l?i.getBoundingClientRect():null;do{if(i=e?Se(this._root.current,i):Ee(this._root.current,i),!l){a=i;break}if(i){var c=t(u,i.getBoundingClientRect());if(-1===c&&-1===o){a=i;break}if(c>-1&&(-1===o||c<o)&&(o=c,a=i),o>=0&&c<0)break}}while(i);if(a&&a!==this._activeElement)s=!0,this.focusElement(a);else if(this.props.isCircularNavigation&&r)return e?this.focusElement(Se(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement(Ee(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,Ad)?Dd:Td:((-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,Ad)?Dd:Td:((-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,wd);return!!this._moveFocus(oe(e),(function(r,i){var o=-1;return(oe(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!==sd.vertical?o=r.right-i.right:n||(o=Td),o}),void 0,n)&&(this._setFocusAlignment(this._activeElement,!0,!1),!0)},t.prototype._moveFocusRight=function(e){var t=this,n=this._shouldWrapFocus(this._activeElement,wd);return!!this._moveFocus(!oe(e),(function(r,i){var o=-1;return(oe(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!==sd.vertical?o=i.left-r.left:n||(o=Td),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=Qe(n);if(!r)return!1;var i=-1,o=void 0,a=-1,s=-1,l=r.clientHeight,u=n.getBoundingClientRect();do{if(n=e?Se(this._root.current,n):Ee(this._root.current,n)){var c=n.getBoundingClientRect(),d=Math.floor(c.top),h=Math.floor(u.bottom),p=Math.floor(c.bottom),f=Math.floor(u.top),g=this._getHorizontalDistanceFromCenter(e,u,c);if(e&&d>h+l||!e&&p<f-l)break;g>-1&&(e&&d>a?(a=d,i=g,o=n):!e&&p<s?(s=p,i=g,o=n):(-1===i||g<=i)&&(i=g,o=n))}}while(n);var m=!1;if(o&&o!==this._activeElement)m=!0,this.focusElement(o),this._setFocusAlignment(o,!1,!0);else if(this.props.isCircularNavigation&&t)return e?this.focusElement(Se(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement(Ee(this._root.current,this._root.current.lastElementChild,!0,!0,!0));return m},t.prototype._setFocusAlignment=function(e,t,n){if(this.props.direction===sd.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=xe(e,Od);t&&t!==this._root.current&&t!==this._getDocument().body;){if(De(t))return t;t=xe(t,Od)}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&&!Ce(e,this._activeElement)&&(this._activeElement=null)),this._activeElement&&!we(this._activeElement)&&(this._activeElement=null);for(var t=e&&e.children,n=0;t&&n<t.length;n++){var r=t[n];De(r)?"true"===r.getAttribute(Ed)&&(this._isInnerZone||(this._activeElement||this._defaultFocusElement)&&this._activeElement!==r?"-1"!==r.getAttribute(Ld)&&r.setAttribute(Ld,"-1"):(this._defaultFocusElement=r,"0"!==r.getAttribute(Ld)&&r.setAttribute(Ld,"0"))):(r.getAttribute&&"false"===r.getAttribute(Ed)&&r.setAttribute(Ld,"-1"),we(r)?this.props.disabled?r.setAttribute(Ld,"-1"):this._isInnerZone||(this._activeElement||this._defaultFocusElement)&&this._activeElement!==r?"-1"!==r.getAttribute(Ld)&&r.setAttribute(Ld,"-1"):(this._defaultFocusElement=r,"0"!==r.getAttribute(Ld)&&r.setAttribute(Ld,"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&&Id.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=be(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&&Cd(e,this._root.current)},t.prototype._getDocument=function(){return Q(this._root.current)},t.defaultProps={isCircularNavigation:!1,direction:sd.bidirectional,shouldRaiseClicks:!0},t}(s.Component);!function(e){e[e.Parent=0]="Parent",e[e.Self=1]="Self"}(Pd||(Pd={}));var Hd,Rd=ue(),Bd=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onRenderContent=function(e){return"string"==typeof e.content?s.createElement("p",{className:t._classNames.subText},e.content):s.createElement("div",{className:t._classNames.subText},e.content)},t}return r(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.calloutProps,r=e.directionalHint,o=e.directionalHintForRTL,a=e.styles,l=e.id,u=e.maxWidth,c=e.onRenderContent,d=void 0===c?this._onRenderContent:c,h=e.targetElement,p=e.theme;return this._classNames=Rd(a,{theme:p,className:t||n&&n.className,beakWidth:n&&n.isBeakVisible?n.beakWidth:0,gapSpace:n&&n.gapSpace,maxWidth:u}),s.createElement(Ci,i({target:h,directionalHint:r,directionalHintForRTL:o},n,qe(this.props,Ye,["id"]),{className:this._classNames.root}),s.createElement("div",{className:this._classNames.content,id:l,onFocus:this.props.onFocus,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave},d(this.props,this._onRenderContent)))},t.defaultProps={directionalHint:1,maxWidth:"364px",calloutProps:{isBeakVisible:!0,beakWidth:16,gapSpace:0,setInitialFocus:!0,doNotLayer:!1}},t}(s.Component),Wd=C(Bd,(function(e){var t=e.className,n=e.beakWidth,r=void 0===n?16:n,i=e.gapSpace,o=void 0===i?0:i,a=e.maxWidth,s=e.theme,l=s.semanticColors,u=s.fonts,c=s.effects,d=-(Math.sqrt(r*r/2)+o)+1/window.devicePixelRatio;return{root:["ms-Tooltip",s.fonts.medium,Nn.fadeIn200,{background:l.menuBackground,boxShadow:c.elevation8,padding:"8px",maxWidth:a,selectors:{":after":{content:"''",position:"absolute",bottom:d,left:d,right:d,top:d,zIndex:0}}},t],content:["ms-Tooltip-content",u.small,{position:"relative",zIndex:1,color:l.menuItemText,wordWrap:"break-word",overflowWrap:"break-word",overflow:"hidden"}],subText:["ms-Tooltip-subtext",{fontSize:"inherit",fontWeight:"inherit",color:"inherit",margin:0}]}}),void 0,{scope:"Tooltip"});!function(e){e[e.zero=0]="zero",e[e.medium=1]="medium",e[e.long=2]="long"}(Hd||(Hd={}));var zd,Ud,Yd=ue(),qd=function(e){function t(n){var r=e.call(this,n)||this;return r._tooltipHost=s.createRef(),r._defaultTooltipId=ge("tooltip"),r.show=function(){r._toggleTooltip(!0)},r.dismiss=function(){r._hideTooltip()},r._getTargetElement=function(){if(r._tooltipHost.current){var e=r.props.overflowMode;if(void 0!==e)switch(e){case Pd.Parent:return r._tooltipHost.current.parentElement;case Pd.Self:return r._tooltipHost.current}return r._tooltipHost.current}},r._onTooltipFocus=function(e){r._ignoreNextFocusEvent?r._ignoreNextFocusEvent=!1:r._onTooltipMouseEnter(e)},r._onTooltipContentFocus=function(e){t._currentVisibleTooltip&&t._currentVisibleTooltip!==r&&t._currentVisibleTooltip.dismiss(),t._currentVisibleTooltip=r,r._clearDismissTimer(),r._clearOpenTimer()},r._onTooltipBlur=function(e){r._ignoreNextFocusEvent=(null===document||void 0===document?void 0:document.activeElement)===e.target,r._dismissTimerId=r._async.setTimeout((function(){r._hideTooltip()}),0)},r._onTooltipMouseEnter=function(e){var n,i=r.props,o=i.overflowMode,a=i.delay;if(t._currentVisibleTooltip&&t._currentVisibleTooltip!==r&&t._currentVisibleTooltip.dismiss(),t._currentVisibleTooltip=r,void 0!==o){var s=r._getTargetElement();if(s&&!function(e){return e.clientWidth<e.scrollWidth}(n=s)&&!function(e){return e.clientHeight<e.scrollHeight}(n))return}if(!e.target||!Cd(e.target,r._getTargetElement()))if(r._clearDismissTimer(),r._clearOpenTimer(),a!==Hd.zero){var l=r._getDelayTime(a);r._openTimerId=r._async.setTimeout((function(){r._toggleTooltip(!0)}),l)}else r._toggleTooltip(!0)},r._onTooltipMouseLeave=function(e){var n=r.props.closeDelay;r._clearDismissTimer(),r._clearOpenTimer(),n?r._dismissTimerId=r._async.setTimeout((function(){r._toggleTooltip(!1)}),n):r._toggleTooltip(!1),t._currentVisibleTooltip===r&&(t._currentVisibleTooltip=void 0)},r._onTooltipKeyDown=function(e){(e.which===wt||e.ctrlKey)&&r.state.isTooltipVisible&&(r._hideTooltip(),e.stopPropagation())},r._clearDismissTimer=function(){r._async.clearTimeout(r._dismissTimerId)},r._clearOpenTimer=function(){r._async.clearTimeout(r._openTimerId)},r._hideTooltip=function(){r._clearOpenTimer(),r._clearDismissTimer(),r._toggleTooltip(!1)},r._toggleTooltip=function(e){r.state.isTooltipVisible!==e&&r.setState({isTooltipVisible:e},(function(){return r.props.onTooltipToggle&&r.props.onTooltipToggle(e)}))},r._getDelayTime=function(e){switch(e){case Hd.medium:return 300;case Hd.long:return 500;default:return 0}},vd(r),r.state={isAriaPlaceholderRendered:!1,isTooltipVisible:!1},r._async=new Dt(r),r}return r(t,e),t.prototype.render=function(){var e=this.props,t=e.calloutProps,n=e.children,r=e.content,o=e.directionalHint,a=e.directionalHintForRTL,l=e.hostClassName,u=e.id,c=e.setAriaDescribedBy,d=void 0===c||c,h=e.tooltipProps,p=e.styles,f=e.theme;this._classNames=Yd(p,{theme:f,className:l});var g=this.state.isTooltipVisible,m=u||this._defaultTooltipId,v=i(i({id:m+"--tooltip",content:r,targetElement:this._getTargetElement(),directionalHint:o,directionalHintForRTL:a,calloutProps:Xe({},t,{onDismiss:this._hideTooltip,onFocus:this._onTooltipContentFocus,onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave}),onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave},qe(this.props,Ye,["id"])),h),_=(null==h?void 0:h.onRenderContent)?h.onRenderContent(v,(function(e){return(null==e?void 0:e.content)?s.createElement(s.Fragment,null,e.content):null})):r,y=g&&!!_,x=d&&g&&_?m:void 0;return s.createElement("div",i({className:this._classNames.root,ref:this._tooltipHost},{onFocusCapture:this._onTooltipFocus},{onBlurCapture:this._onTooltipBlur},{onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave,onKeyDown:this._onTooltipKeyDown,role:"none","aria-describedby":x}),n,y&&s.createElement(Wd,i({},v)),s.createElement("div",{hidden:!0,id:m,style:Rn},_))},t.prototype.componentWillUnmount=function(){t._currentVisibleTooltip&&t._currentVisibleTooltip===this&&(t._currentVisibleTooltip=void 0),this._async.dispose()},t.defaultProps={delay:Hd.medium},t}(s.Component),jd={root:"ms-TooltipHost",ariaPlaceholder:"ms-TooltipHost-aria-placeholder"},Xd=C(qd,(function(e){var t=e.className,n=e.theme;return{root:[$n(jd,n).root,{display:"inline"},t]}}),void 0,{scope:"TooltipHost"}),Kd=ue(),Gd=function(e){function t(t){var n=e.call(this,t)||this;return n._isRTL=oe(),n._handleChartMouseLeave=function(){n._calloutAnchorPoint=null,n.state.isCalloutVisible&&n.setState({isCalloutVisible:!1,hoverValue:"",refSelected:null,lineColor:"",legend:""})},n._adjustProps=function(){n._barHeight=n.props.barHeight||12,n._classNames=Kd(n.props.styles,{theme:n.props.theme,width:n.props.width,className:n.props.className,barHeight:n._barHeight,color:n.state.lineColor,variant:n.props.variant,hideLabels:n.props.hideLabels})},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._getAriaLabel=function(e){var t,n=e.xAxisCalloutData||e.legend,r=e.yAxisCalloutData||(e.horizontalBarChartdata?e.horizontalBarChartdata.x+"/"+e.horizontalBarChartdata.y:0);return(null===(t=e.callOutAccessibilityData)||void 0===t?void 0:t.ariaLabel)||(n?n+", ":"")+r+"."},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=ge("callout"),n}return r(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.data,r=t.theme;this._adjustProps();var o=r.palette,a=0;return s.createElement("div",{className:this._classNames.root,onMouseLeave:this._handleChartMouseLeave},n.map((function(t,n){a=t.chartData&&t.chartData[0]&&t.chartData[0].horizontalBarChartdata.x?t.chartData[0].horizontalBarChartdata.x:0,t.chartData[1]={legend:"",horizontalBarChartdata:{x:t.chartData[0].horizontalBarChartdata.y-a,y:t.chartData[0].horizontalBarChartdata.y},color:o.neutralLight};var r=e.props.variant===pe.AbsoluteScale?null:e._getChartDataText(t),l=e._createBars(t,o),u=e._uniqLineText+"_"+n,c=Kd(e.props.styles,{theme:e.props.theme,width:e.props.width,showTriangle:!!t.chartData[0].data,variant:e.props.variant});return s.createElement("div",{key:n},s.createElement("div",{className:c.items},s.createElement(Vd,{direction:sd.horizontal},s.createElement("div",{className:e._classNames.chartTitle},t.chartTitle&&s.createElement(Xd,{overflowMode:Pd.Self,hostClassName:e._classNames.chartTitleLeft,content:t.chartTitle},s.createElement("span",i({},ud(t.chartTitleAccessibilityData)),t.chartTitle)),r)),t.chartData[0].data&&e._createBenchmark(t),s.createElement(Vd,{direction:sd.horizontal,className:e._classNames.chartWrapper},s.createElement("svg",{className:e._classNames.chart,"aria-label":t.chartTitle},s.createElement("g",{id:u,key:u,ref:function(n){e._refCallback(n,t.chartData[0].legend)},onClick:function(){var e=t.chartData[0];e&&e.onClick&&e.onClick()}},l)))))})),s.createElement(Ci,i({target:this.state.refSelected,coverTarget:!0,isBeakVisible:!1,gapSpace:30,hidden:!(!this.props.hideTooltip&&this.state.isCalloutVisible),directionalHint:3,id:this._calloutId,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0},this.props.calloutProps,ud(this.state.callOutAccessibilityData)),s.createElement(s.Fragment,null,this.props.onRenderCalloutPerHorizontalBar?this.props.onRenderCalloutPerHorizontalBar(this.state.barCalloutProps):s.createElement(fd,{Legend:this.state.xCalloutValue?this.state.xCalloutValue:this.state.legend,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.hoverValue,color:this.state.lineColor,culture:this.props.culture}))))},t.prototype._refCallback=function(e,t){this._refArray.push({index:t,refElement:e})},t.prototype._hoverOn=function(e,t){if((!this.state.isCalloutVisible||this.state.legend!==t.legend)&&this._calloutAnchorPoint!==t){var n=_e(this._refArray,(function(e){return e.index===t.legend}));this._calloutAnchorPoint=t,this.setState({isCalloutVisible:!0,hoverValue:e,lineColor:t.color,legend:t.legend,refSelected:n.refElement,xCalloutValue:t.xAxisCalloutData,yCalloutValue:t.yAxisCalloutData,barCalloutProps:t,callOutAccessibilityData:t.callOutAccessibilityData})}},t.prototype._hoverOff=function(){},t.prototype._getDefaultTextData=function(e){var t=this.props.culture,n=this.props.chartDataMode||"default",r=e.chartData[0],o=r.horizontalBarChartdata.x,a=r.horizontalBarChartdata.y,l=ud(e.chartDataAccessibilityData);switch(n){case"default":return s.createElement("div",i({className:this._classNames.chartTitleRight},l),cd(o,t));case"fraction":return s.createElement("div",i({},l),s.createElement("span",{className:this._classNames.chartTitleRight},cd(o,t)),s.createElement("span",{className:this._classNames.chartDataTextDenominator}," / "+cd(a,t)));case"percentage":var u=cd(Math.round(o/a*100),t)+"%";return s.createElement("div",i({className:this._classNames.chartTitleRight},l),u)}},t.prototype._createBenchmark=function(e){var t=e.chartData[0].horizontalBarChartdata.y,n=e.chartData[0].data,r={left:"calc("+Math.round((n||0)/t*100)+"% - 4px)"};return s.createElement("div",{className:this._classNames.benchmarkContainer},s.createElement("div",{className:this._classNames.triangle,style:r}))},t.prototype._createBars=function(e,t){var n=this,r=[t.blueLight,t.blue,t.blueMid,t.red,t.black],i=[],o=e.chartData.reduce((function(e,t){return e+(t.horizontalBarChartdata.x?t.horizontalBarChartdata.x:0)}),0),a=0,l=0,u=0;e.chartData.map((function(e,t){var n=e.horizontalBarChartdata.x?e.horizontalBarChartdata.x:0;return(l=n/o*100)<0?l=0:l<1&&0!==l&&(l=1),u+=l}));var c=0!==u?u/100:1,d=e.chartData.map((function(t,u){var d=t.color?t.color:r[Math.floor(4*Math.random()+1)],h=t.horizontalBarChartdata.x?t.horizontalBarChartdata.x:0;u>0&&(a+=l),(l=h/o*100)<0?l=0:l<1&&0!==l?l=1/c:l/=c,i.push(a);var p=t.horizontalBarChartdata.x;if(1===u&&n.props.variant===pe.AbsoluteScale){if(n.props.hideLabels)return s.createElement("text",{key:u});var f=e.chartData[0].horizontalBarChartdata.x;return s.createElement("text",{key:u,x:(n._isRTL?100-i[u]:i[u])+"%",y:n._barHeight/2,dominantBaseline:"central",transform:"translate("+(n._isRTL?-4:4)+")",className:n._classNames.barLabel,"aria-hidden":!0},pa(f<1e3?".2~":".1",f)(f))}return s.createElement("rect",{key:u,x:(n._isRTL?100-i[u]-l:i[u])+"%",y:0,"data-is-focusable":""!==t.legend,width:l+"%",height:n._barHeight,fill:d,onMouseOver:""!==t.legend?n._hoverOn.bind(n,p,t):void 0,onFocus:""!==t.legend?n._hoverOn.bind(n,p,t):void 0,role:"img","aria-label":n._getAriaLabel(t),onBlur:n._hoverOff,onMouseLeave:n._hoverOff,className:n._classNames.barWrapper})}));return d},t}(s.Component),Zd=C(Gd,(function(e){var t=e.className,n=e.theme,r=e.width,o=e.barHeight,a=e.showTriangle,s=e.variant,l=e.hideLabels,u=n.palette;return{root:[{display:"flex",flexDirection:"column",width:r||"100%"},t],items:{marginBottom:a||s===pe.AbsoluteScale?"16px":"10px"},chart:{width:"100%",height:o||12,display:"block",overflow:"visible"},barWrapper:{stroke:n.palette.white,strokeWidth:2},chartTitle:i(i({},n.fonts.small),{display:"flex",justifyContent:"space-between"}),chartTitleLeft:{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",display:"block",color:n.palette.neutralPrimary,marginBottom:s===pe.AbsoluteScale?"4px":"5px"},chartTitleRight:{fontSize:Tn.medium,fontWeight:Mn.semibold,color:n.palette.neutralPrimary},chartDataTextDenominator:{fontSize:Tn.medium,color:n.palette.neutralPrimary},benchmarkContainer:{position:"relative",height:"7px",marginTop:"-3px",marginBottom:"-1px"},triangle:{width:"0",height:"0",borderLeft:"4px solid transparent",borderRight:"4px solid transparent",borderTop:"7px solid",borderTopColor:u.blue,marginBottom:"4px",position:"absolute"},barLabel:i(i({},n.fonts.small),{fontWeight:Mn.semibold,fill:n.palette.neutralPrimary}),chartWrapper:{paddingRight:s!==pe.AbsoluteScale||l?0:40}}})),$d={host:"ms-HoverCard-host"},Qd=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),Xe(a,r),o=t.dispatchEvent(a)}else if("undefined"!=typeof document&&document.createEventObject){var s=document.createEventObject(r);t.fireEvent("on"+n,s)}}else for(;t&&!1!==o;){var l=t.__events__,u=l?l[n]:null;if(u)for(var c in u)if(u.hasOwnProperty(c))for(var d=u[c],h=0;!1!==o&&h<d.length;h++){var p=d[h];p.objectCallback&&(o=p.objectCallback.call(p.parent,r))}t=i?t.parent:null}return o},e.isObserved=function(e,t){var n=e&&e.__events__;return!!n&&!!n[t]},e.isDeclared=function(e,t){var n=e&&e.__declaredEvents;return!!n&&!!n[t]},e.stopPropagation=function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0},e._isElement=function(e){return!!e&&(!!e.addEventListener||"undefined"!=typeof HTMLElement&&e instanceof HTMLElement)},e.prototype.dispose=function(){this._isDisposed||(this._isDisposed=!0,this.off(),this._parent=null)},e.prototype.onAll=function(e,t,n){for(var r in t)t.hasOwnProperty(r)&&this.on(e,r,t[r],n)},e.prototype.on=function(t,n,r,i){var o=this;if(n.indexOf(",")>-1)for(var a=n.split(/[ ,]+/),s=0;s<a.length;s++)this.on(t,a[s],r,i);else{var l=this._parent,u={target:t,eventName:n,parent:l,callback:r,options:i};if((a=t.__events__=t.__events__||{})[n]=a[n]||{count:0},a[n][this._id]=a[n][this._id]||[],a[n][this._id].push(u),a[n].count++,e._isElement(t)){var c=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!o._isDisposed){var n;try{if(!1===(n=r.apply(l,e))&&e[0]){var i=e[0];i.preventDefault&&i.preventDefault(),i.stopPropagation&&i.stopPropagation(),i.cancelBubble=!0}}catch(i){}return n}};u.elementCallback=c,t.addEventListener?t.addEventListener(n,c,i):t.attachEvent&&t.attachEvent("on"+n,c)}else u.objectCallback=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!o._isDisposed)return r.apply(l,e)};this._eventRecords.push(u)}},e.prototype.off=function(e,t,n,r){for(var i=0;i<this._eventRecords.length;i++){var o=this._eventRecords[i];if(!(e&&e!==o.target||t&&t!==o.eventName||n&&n!==o.callback||"boolean"==typeof r&&r!==o.options)){var a=o.target.__events__,s=a[o.eventName],l=s?s[this._id]:null;l&&(1!==l.length&&n?(s.count--,l.splice(l.indexOf(o),1)):(s.count-=l.length,delete a[o.eventName][this._id]),s.count||delete a[o.eventName]),o.elementCallback&&(o.target.removeEventListener?o.target.removeEventListener(o.eventName,o.elementCallback,o.options):o.target.detachEvent&&o.target.detachEvent("on"+o.eventName,o.elementCallback)),this._eventRecords.splice(i--,1)}}},e.prototype.raise=function(t,n,r){return e.raise(this._parent,t,n,r)},e.prototype.declare=function(e){var t=this._parent.__declaredEvents=this._parent.__declaredEvents||{};if("string"==typeof e)t[e]=!0;else for(var n=0;n<e.length;n++)t[e[n]]=!0},e._uniqueId=0,e}();!function(e){e[e.hover=0]="hover",e[e.hotKey=1]="hotKey"}(zd||(zd={})),function(e){e.plain="PlainCard",e.expanding="ExpandingCard"}(Ud||(Ud={}));var Jd,eh={root:"ms-ExpandingCard-root",compactCard:"ms-ExpandingCard-compactCard",expandedCard:"ms-ExpandingCard-expandedCard",expandedCardScroll:"ms-ExpandingCard-expandedCardScrollRegion"};function th(e,t){var n=s.useRef(t);return n.current||(n.current=ge(e)),n.current}function nh(e){var t=s.useRef((function(){throw new Error("Cannot call an event handler while rendering")}));return li((function(){t.current=e}),[e]),Tr((function(){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=t.current;return r.apply(void 0,e)}}))}!function(e){e[e.compact=0]="compact",e[e.expanded=1]="expanded"}(Jd||(Jd={}));var rh={disabled:!1,disableFirstFocus:!1,forceFocusInsideTrap:!0,isClickableOutsideFocusTrap:!1},ih=s.forwardRef((function(e,t){var n,r,o,a=s.useRef(null),l=s.useRef(null),u=s.useRef(null),c=Pt(a,t),d=function(){var e;return null===(e=s.useContext(Nt).window)||void 0===e?void 0:e.document}(),h=null===(n=pi(!1))||void 0===n||n,p=Fe(rh,e),f=Tr({hasFocus:!1,focusStackId:th("ftz-",p.id)}),g=p.children,m=p.componentRef,v=p.disabled,_=p.disableFirstFocus,y=p.forceFocusInsideTrap,x=p.focusPreviouslyFocusedInnerElement,b=p.firstFocusableSelector,C=p.firstFocusableTarget,k=p.disableRestoreFocus,E=void 0===k?p.ignoreExternalFocusing:k,S=p.isClickableOutsideFocusTrap,L=p.enableAriaHiddenSiblings,A={"aria-hidden":!0,style:{pointerEvents:"none",position:"fixed"},tabIndex:v?-1:0,"data-is-visible":!0,"data-is-focus-trap-zone-bumper":!0},w=s.useCallback((function(e){e!==l.current&&e!==u.current&&Pe(e)}),[]),D=nh((function(){if(a.current){var e=f.previouslyFocusedElementInTrapZone;if(x&&e&&Ce(a.current,e))w(e);else{var t=null;if("string"==typeof C)t=a.current.querySelector(C);else if(C)t=C(a.current);else if(b){var n="string"==typeof b?b:b();t=a.current.querySelector("."+n)}t||(t=Se(a.current,a.current.firstChild,!1,!1,!1,!0)),t&&w(t)}}})),T=function(e){if(!v&&a.current){var t,n=e===f.hasFocus?(void 0===(t=!1)&&(t=!0),Ee(a.current,u.current,t,!1,!0,!0,!1,!0)):function(e,t,n,r){return void 0===r&&(r=!0),Se(e,t,r,!1,!1,!0,!1,!0)}(a.current,l.current,0,!1);n&&(n===l.current||n===u.current?D():n.focus())}},M=nh((function(e){if(ih.focusStack=ih.focusStack.filter((function(e){return f.focusStackId!==e})),d){var t=d.activeElement;E||"function"!=typeof(null==e?void 0:e.focus)||!Ce(a.current,t)&&t!==d.body||w(e)}})),P=nh((function(e){if(!v&&f.focusStackId===ih.focusStack.slice(-1)[0]){var t=e.target;t&&!Ce(a.current,t)&&(d&&d.activeElement===d.body?setTimeout((function(){d&&d.activeElement===d.body&&(D(),f.hasFocus=!0)}),0):(D(),f.hasFocus=!0),e.preventDefault(),e.stopPropagation())}}));return s.useEffect((function(){var e=[];return y&&e.push(Ne(window,"focus",P,!0)),S||e.push(Ne(window,"click",P,!0)),function(){e.forEach((function(e){return e()}))}}),[y,S]),s.useEffect((function(){if(!v&&(h||y)&&a.current){ih.focusStack.push(f.focusStackId);var e=p.elementToFocusOnDismiss||d.activeElement;return _||Ce(a.current,e)||D(),function(){return M(e)}}}),[y,v]),s.useEffect((function(){if(!v&&L)return At(a.current)}),[v,L,a]),r=function(){delete f.previouslyFocusedElementInTrapZone},(o=s.useRef(r)).current=r,s.useEffect((function(){return function(){var e;null===(e=o.current)||void 0===e||e.call(o)}}),[]),function(e,t,n){s.useImperativeHandle(e,(function(){return{get previouslyFocusedElement(){return t},focus:n}}),[n,t])}(m,f.previouslyFocusedElementInTrapZone,D),s.createElement("div",i({"aria-labelledby":p.ariaLabelledBy},qe(p,Ye),{ref:c,onFocusCapture:function(e){var t;null===(t=p.onFocusCapture)||void 0===t||t.call(p,e),e.target===l.current?T(!0):e.target===u.current&&T(!1),f.hasFocus=!0,e.target!==e.currentTarget&&e.target!==l.current&&e.target!==u.current&&(f.previouslyFocusedElementInTrapZone=e.target)},onBlurCapture:function(e){var t;null===(t=p.onBlurCapture)||void 0===t||t.call(p,e);var n=e.relatedTarget;null===e.relatedTarget&&(n=d.activeElement),Ce(a.current,n)||(f.hasFocus=!1)}}),s.createElement("div",i({},A,{ref:l})),g,s.createElement("div",i({},A,{ref:u})))}));ih.displayName="FocusTrapZone",ih.focusStack=[];var oh,ah=function(e){return s.createElement(Ci,i({},e),s.createElement(ih,i({disabled:e.hidden},e.focusTrapProps),e.children))},sh=function(e){var t=e.gapSpace,n=void 0===t?0:t,r=e.directionalHint,o=void 0===r?4:r,a=e.directionalHintFixed,l=e.targetElement,u=e.firstFocus,c=e.trapFocus,d=e.onLeave,h=e.className,p=e.finalHeight,f=e.content,g=e.calloutProps,m=i(i(i({},qe(e,Ye)),{className:h,target:l,isBeakVisible:!1,directionalHint:o,directionalHintFixed:a,finalHeight:p,minPagePadding:24,onDismiss:d,gapSpace:n}),g);return s.createElement(s.Fragment,null,c?s.createElement(ah,i({},m,{focusTrapProps:{forceFocusInsideTrap:!1,isClickableOutsideFocusTrap:!0,disableFirstFocus:!u}}),f):s.createElement(Ci,i({},m),f))},lh=ue(),uh=function(e){function t(t){var n=e.call(this,t)||this;return n._expandedElem=s.createRef(),n._onKeyDown=function(e){e.which===wt&&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 Dt(n),vd(n),n.state={firstFrameRendered:!1,needsScroll:!1},n}return r(t,e),t.prototype.componentDidMount=function(){this._checkNeedsScroll()},t.prototype.componentWillUnmount=function(){this._async.dispose()},t.prototype.render=function(){var e=this.props,t=e.styles,n=e.compactCardHeight,r=e.expandedCardHeight,o=e.theme,a=e.mode,l=e.className,u=this.state,c=u.needsScroll,d=u.firstFrameRendered,h=n+r;this._classNames=lh(t,{theme:o,compactCardHeight:n,className:l,expandedCardHeight:r,needsScroll:c,expandedCardFirstFrameRendered:a===Jd.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(sh,i({},this.props,{content:p,finalHeight:h,className:this._classNames.root}))},t.defaultProps={compactCardHeight:156,expandedCardHeight:384,directionalHintFixed:!0},t}(s.Component),ch=C(uh,(function(e){var t,n=e.theme,r=e.needsScroll,i=e.expandedCardFirstFrameRendered,o=e.compactCardHeight,a=e.expandedCardHeight,s=e.className,l=n.palette,u=$n(eh,n);return{root:[u.root,{width:320,pointerEvents:"none",selectors:(t={},t[On]={border:"1px solid WindowText"},t)},s],compactCard:[u.compactCard,{pointerEvents:"auto",position:"relative",height:o}],expandedCard:[u.expandedCard,{height:1,overflowY:"hidden",pointerEvents:"auto",transition:"height 0.467s cubic-bezier(0.5, 0, 0, 1)",selectors:{":before":{content:'""',position:"relative",display:"block",top:0,left:24,width:272,height:1,backgroundColor:l.neutralLighter}}},i&&{height:a}],expandedCardScroll:[u.expandedCardScroll,r&&{height:"100%",boxSizing:"border-box",overflowY:"auto"}]}}),void 0,{scope:"ExpandingCard"}),dh={root:"ms-PlainCard-root"},hh=ue(),ph=function(e){function t(t){var n=e.call(this,t)||this;return n._onKeyDown=function(e){e.which===wt&&n.props.onLeave&&n.props.onLeave(e)},vd(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=hh(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(sh,i({},this.props,{content:o,className:this._classNames.root}))},t}(s.Component),fh=C(ph,(function(e){var t,n=e.theme,r=e.className;return{root:[$n(dh,n).root,{pointerEvents:"auto",selectors:(t={},t[On]={border:"1px solid WindowText"},t)},r]}}),void 0,{scope:"PlainCard"}),gh=ue(),mh=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:Jd.compact,openMode:"keydown"===e.type?zd.hotKey:zd.hover}}))}),n.props.cardOpenDelay)},n._cardDismiss=function(e,t){if(e){if(!(t instanceof MouseEvent))return;if("keydown"===t.type&&t.which!==wt)return;n.props.sticky||n._currentMouseTarget!==t.currentTarget&&t.which!==wt||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:Jd.compact,openMode:zd.hover})},n._instantOpenAsExpanded=function(e){n._async.clearTimeout(n._dismissTimerId),n.setState((function(e){return e.isHoverCardVisible?e:{isHoverCardVisible:!0,mode:Jd.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)))},vd(n),n._async=new Dt(n),n._events=new Qd(n),n._nativeDismissEvent=n._cardDismiss.bind(n,!0),n._childDismissEvent=n._cardDismiss.bind(n,!1),n.state={isHoverCardVisible:!1,mode:Jd.compact,openMode:zd.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:Jd.expanded},(function(){n.props.onCardExpand&&n.props.onCardExpand()}))}),this.props.expandedCardOpenDelay),this.props.onCardVisible&&this.props.onCardVisible()):(this.setState({mode:Jd.compact}),this.props.onCardHide&&this.props.onCardHide()))},t.prototype.render=function(){var e=this.props,t=e.expandingCardProps,n=e.children,r=e.id,o=e.setAriaDescribedBy,a=void 0===o||o,l=e.styles,u=e.theme,c=e.className,d=e.type,h=e.plainCardProps,p=e.trapFocus,f=e.setInitialFocus,g=this.state,m=g.isHoverCardVisible,v=g.mode,_=g.openMode,y=r||ge("hoverCard");this._classNames=gh(l,{theme:u,className:c});var x=i(i({},qe(this.props,Ye)),{id:y,trapFocus:!!p,firstFocus:f||_===zd.hotKey,targetElement:this._getTargetElement(this.props.target),onEnter:this._cardOpen,onLeave:this._childDismissEvent}),b=i(i(i({},t),x),{mode:v}),C=i(i({},h),x);return s.createElement("div",{className:this._classNames.host,ref:this._hoverCard,"aria-describedby":a&&m?y:void 0,"data-is-focusable":!this.props.target},n,m&&(d===Ud.expanding?s.createElement(ch,i({},b)):s.createElement(fh,i({},C))))},t.prototype._getTargetElement=function(e){switch(typeof e){case"string":return Q().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:Ud.expanding},t}(s.Component),vh=C(mh,(function(e){var t=e.className,n=e.theme;return{host:[$n($d,n).host,t]}}),void 0,{scope:"HoverCard"});!function(e){e[e.horizontal=0]="horizontal",e[e.vertical=1]="vertical"}(oh||(oh={}));var _h=function(e){var t;void 0===e&&(t={},e={getCachedMeasurement:function(e){if(e&&e.cacheKey&&t.hasOwnProperty(e.cacheKey))return t[e.cacheKey]},addMeasurementToCache:function(e,n){e.cacheKey&&(t[e.cacheKey]=n)}});var n,r=e;function o(e,t){var n=r.getCachedMeasurement(e);if(void 0!==n)return n;var i=t();return r.addMeasurementToCache(e,i),i}function a(e,t,i){for(var a=e,s=o(e,i);s>n;){var l=t(a);if(void 0===l)return{renderedData:a,resizeDirection:void 0,dataToMeasure:void 0};if(void 0===(s=r.getCachedMeasurement(l)))return{dataToMeasure:l,resizeDirection:"shrink"};a=l}return{renderedData:a,resizeDirection:void 0,dataToMeasure:void 0}}return{getNextState:function(e,t,s,l){if(void 0!==l||void 0!==t.dataToMeasure){if(l){if(n&&t.renderedData&&!t.dataToMeasure)return i(i({},t),function(e,t,r,o){var a;return a=e>n?o?{resizeDirection:"grow",dataToMeasure:o(r)}:{resizeDirection:"shrink",dataToMeasure:t}:{resizeDirection:"shrink",dataToMeasure:r},n=e,i(i({},a),{measureContainer:!1})}(l,e.data,t.renderedData,e.onGrowData));n=l}var u=i(i({},t),{measureContainer:!1});return t.dataToMeasure&&(u="grow"===t.resizeDirection&&e.onGrowData?i(i({},u),function(e,t,s,l){for(var u=e,c=o(e,s);c<n;){var d=t(u);if(void 0===d)return{renderedData:u,resizeDirection:void 0,dataToMeasure:void 0};if(void 0===(c=r.getCachedMeasurement(d)))return{dataToMeasure:d};u=d}return i({resizeDirection:"shrink"},a(u,l,s))}(t.dataToMeasure,e.onGrowData,s,e.onReduceData)):i(i({},u),a(t.dataToMeasure,e.onReduceData,s))),u}},shouldRenderDataForMeasurement:function(e){return!(!e||void 0!==r.getCachedMeasurement(e))},getInitialResizeGroupState:function(e){return{dataToMeasure:i({},e),resizeDirection:"grow",measureContainer:!0}}}},yh=s.createContext({isMeasured:!1}),xh={position:"fixed",visibility:"hidden"},bh={position:"relative"};function Ch(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 kh={isMeasured:!0},Eh=s.forwardRef((function(e,t){var n=s.useRef(null),r=Pt(n,t),o=function(e,t){var n=Tr(_h),r=s.useRef(null),o=s.useRef(null),a=s.useRef(!1),l=Tt(),u=function(e,t,n){var r=Tr((function(){return t.getInitialResizeGroupState(e.data)})),o=s.useReducer(Ch,r),a=o[0],l=o[1];s.useEffect((function(){l({type:"dataToMeasure",value:e.data})}),[e.data]);var u=s.useRef(r);return u.current=i({},a),[u,s.useCallback((function(e){e&&l({type:"resizeData",value:e})}),[]),s.useCallback((function(){n.current&&l({type:"measureContainer",value:!0})}),[n])]}(e,n,t),c=u[0],d=u[1],h=u[2];s.useEffect((function(){var t;c.current.renderedData&&(a.current=!0,null===(t=e.dataDidRender)||void 0===t||t.call(e,c.current.renderedData))})),s.useEffect((function(){l.requestAnimationFrame((function(){var i=void 0;if(c.current.measureContainer&&t.current){var s=t.current.getBoundingClientRect();i=e.direction===oh.vertical?s.height:s.width}var l=n.getNextState(e,c.current,(function(){var t=a.current?o:r;if(!t.current)return 0;var n=t.current.getBoundingClientRect();return e.direction===oh.vertical?n.height:n.width}),i);d(l)}),t.current)})),Mt(Ft(),"resize",l.debounce(h,16,{leading:!0}));var p=n.shouldRenderDataForMeasurement(c.current.dataToMeasure),f=!a.current&&p;return[c.current.dataToMeasure,c.current.renderedData,h,r,o,p,f]}(e,n),a=o[0],l=o[1],u=o[2],c=o[3],d=o[4],h=o[5],p=o[6];s.useImperativeHandle(e.componentRef,(function(){return{remeasure:u}}),[u]),function(e){gi({name:"ResizeGroup",props:e,deprecations:{styles:"className"}})}(e);var f=e.className,g=e.onRenderData,m=qe(e,Ye,["data"]);return s.createElement("div",i({},m,{className:f,ref:r}),s.createElement("div",{style:bh},h&&!p&&s.createElement("div",{style:xh,ref:d},s.createElement(yh.Provider,{value:kh},g(a))),s.createElement("div",{ref:c,style:p?xh:void 0,"data-automation-id":"visibleContent"},p?g(a):l&&g(l))))}));Eh.displayName="ResizeGroupBase";var Sh,Lh=Eh;!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"}(Sh||(Sh={}));var Ah=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?Sh.PERSISTED_KEYTIP_ADDED:Sh.KEYTIP_ADDED;Qd.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||Qd.raise(this,Sh.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?Sh.PERSISTED_KEYTIP_REMOVED:Sh.KEYTIP_REMOVED;!this.inKeytipMode&&this.delayUpdatingKeytipChange||Qd.raise(this,r,{keytip:e,uniqueID:t})},e.prototype.enterKeytipMode=function(){Qd.raise(this,Sh.ENTER_KEYTIP_MODE)},e.prototype.exitKeytipMode=function(){Qd.raise(this,Sh.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){Qd.raise(this,Sh.PERSISTED_KEYTIP_EXECUTE,{overflowButtonSequences:e,keytipSequences:t})},e.prototype._getUniqueKtp=function(e,t){return void 0===t&&(t=ge()),{keytip:i({},e),uniqueID:t}},e._instance=new e,e}(),wh=function(e,t,n){for(var r=0,i=e;r<i.length;r++){var o=i[r];n[t.register(o,!0)]=o}},Dh=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]}},Th=function(e){var t=Ah.getInstance(),n=e.className,r=e.overflowItems,o=e.keytipSequences,a=e.itemSubMenuProvider,l=e.onRenderOverflowButton,u=Tr({}),c=s.useCallback((function(e){return a?a(e):e.subMenuProps?e.subMenuProps.items:void 0}),[a]),d=s.useMemo((function(){var e=[],n=[];return o?null==r||r.forEach((function(r){var a,s=r.keytipProps;if(s){var l={content:s.content,keySequences:s.keySequences,disabled:s.disabled||!(!r.disabled&&!r.isDisabled),hasDynamicChildren:s.hasDynamicChildren,hasMenu:s.hasMenu};s.hasDynamicChildren||c(r)?(l.onExecute=t.menuExecute.bind(t,o,null===(a=null==r?void 0:r.keytipProps)||void 0===a?void 0:a.keySequences),l.hasOverflowSubMenu=!0):l.onExecute=s.onExecute,e.push(l);var u=i(i({},r),{keytipProps:i(i({},s),{overflowSetSequence:o})});null==n||n.push(u)}else null==n||n.push(r)})):n=r,{modifiedOverflowItems:n,keytipsToRegister:e}}),[r,c,t,o]),h=d.modifiedOverflowItems;return function(e,t,n){var r=pi(e);s.useEffect((function(){r&&(Dh(n,r),wh(t,n,e))})),s.useEffect((function(){return wh(t,n,e),function(){Dh(n,e)}}),[])}(u,d.keytipsToRegister,t),s.createElement("div",{className:n},l(h))},Mh=ue(),Ph=s.forwardRef((function(e,t){var n=s.useRef(null),r=Pt(n,t);!function(e,t){s.useImperativeHandle(e.componentRef,(function(){return{focus:function(e,n){var r=!1;return t.current&&(r=ke(t.current,n)),r},focusElement:function(e){var n=!1;return!!e&&(t.current&&Ce(t.current,e)&&(e.focus(),n=document.activeElement===e),n)}}}),[t])}(e,n);var o=e.items,a=e.overflowItems,l=e.className,u=e.styles,c=e.vertical,d=e.role,h=e.overflowSide,p=void 0===h?"end":h,f=e.onRenderItem,g=Mh(u,{className:l,vertical:c}),m=!!a&&a.length>0;return s.createElement("div",i({},qe(e,Ye),{role:d||"group","aria-orientation":"menubar"===d?!0===c?"vertical":"horizontal":void 0,className:g.root,ref:r}),"start"===p&&m&&s.createElement(Th,i({},e,{className:g.overflowButton})),o&&o.map((function(e,t){return s.createElement("div",{className:g.item,key:e.key,role:"none"},f(e))})),"end"===p&&m&&s.createElement(Th,i({},e,{className:g.overflowButton})))}));Ph.displayName="OverflowSet";var Nh,Fh={flexShrink:0,display:"inherit"},Ih=C(Ph,(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",Fh],overflowButton:["ms-OverflowSet-overflowButton",Fh]}}),void 0,{scope:"OverflowSet"}),Oh=((Nh={})[""+id[id.circle]]="M1 6 A5 5 0 1 0 12 6 M1 6 A5 5 0 0 1 12 6",Nh[""+id[id.square]]="M1 1 L12 1 L12 12 L1 12 L1 1 Z",Nh[""+id[id.triangle]]="M6 10L8.74228e-07 -1.04907e-06L12 0L6 10Z",Nh[""+id[id.pyramid]]="M6 10L8.74228e-07 -1.04907e-06L12 0L6 10Z",Nh[""+id[id.diamond]]="M2 2 L10 2 L10 10 L2 10 L2 2 Z",Nh[""+id[id.hexagon]]="M9 0H3L0 5L3 10H9L12 5L9 0Z",Nh[""+id[id.pentagon]]="M6.06061 0L0 4.21277L2.30303 11H9.69697L12 4.21277L6.06061 0Z",Nh[""+id[id.octagon]]="M7.08333 0H2.91667L0 2.91667V7.08333L2.91667 10H7.08333L10 7.08333V2.91667L7.08333 0Z",Nh[""+od[od.dottedLine]]="M0 6 H3 M5 6 H8 M10 6 H13",Nh),Vh=function(e){var t=e.svgProps,n=e.pathProps,r=e.shape,o=e.classNameForNonSvg;return-1===Object.keys(Oh).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.pyramid]?180:0)+", 0, 0)"}),s.createElement("path",i({d:Oh[r]},n)))},Hh=ue(),Rh=function(e){function t(t){var n=e.call(this,t)||this;return n._isLegendSelected=!1,n._onRenderData=function(e){var t=n.props,r=t.overflowProps,o=t.allowFocusOnLegends,a=void 0===o||o,l=t.canSelectMultipleLegends,u=void 0!==l&&l,c={root:{justifyContent:n.props.centerLegends?"center":"unset",flexWrap:"wrap"}};return s.createElement(Vd,i({},a&&{role:"listbox","aria-label":"Legends","aria-multiselectable":u}),s.createElement(Ih,i({items:e.primary,overflowItems:e.overflow,onRenderItem:n._renderButton,onRenderOverflowButton:n._renderOverflowItems},r,{styles:i(i({},c),null==r?void 0:r.styles)})))},n._onReduceData=function(e){if(0!==e.primary.length){var t=a(a([],e.primary.slice(-1)),e.overflow);return{primary:e.primary.slice(0,-1),overflow:t}}},n._onGrowData=function(e){if(0!==e.overflow.length){var t=e.overflow.slice(1);return{primary:a(a([],e.primary),e.overflow.slice(0,1)),overflow:t}}},n._canSelectMultipleLegends=function(e){var t=i({},n.state.selectedLegends);t[e.title]?delete t[e.title]:(t[e.title]=!0,Object.keys(t).length===n.props.legends.length&&(t={})),n.setState({selectedLegends:t})},n._canSelectOnlySingleLegend=function(e){n.state.selectedLegend===e.title?n.setState({selectedLegend:""}):n.setState({selectedLegend:e.title})},n._onClick=function(e){if(e.action){var t=n.props.canSelectMultipleLegends;void 0!==t&&t?n._canSelectMultipleLegends(e):n._canSelectOnlySingleLegend(e),e.action()}},n._onRenderCompactCard=function(e){var t=n.props,r=t.allowFocusOnLegends,o=void 0===r||r,a=t.className,l=t.styles,u=t.theme,c=t.canSelectMultipleLegends,d=void 0!==c&&c,h=[],p=Hh(l,{theme:u,className:a});return e.renderData.forEach((function(e,t){var r=n._renderButton(e,t,!0);h.push(r)})),s.createElement(Vd,i({},o&&{role:"listbox","aria-label":"Legends","aria-multiselectable":d},{direction:sd.vertical},n.props.focusZonePropsInHoverCard,{className:p.hoverCardRoot}),h)},n._renderOverflowItems=function(e){var t=n.props.allowFocusOnLegends,r=void 0===t||t,o=[];e.forEach((function(e,t){o.push({key:t.toString(),name:e.title,onClick:e.action})}));var a={renderData:e},l=n.props,u=l.theme,c=l.className,d=l.styles,h=l.overflowText,p=Hh(d,{theme:u,className:c}),f={onRenderPlainCard:n._onRenderCompactCard,renderData:a},g=h||"more";return s.createElement(vh,{type:Ud.plain,plainCardProps:f,instantOpenOnClick:!0,onCardHide:function(){n.setState({isHoverCardVisible:!1});var t=_e(e,(function(e){return e.title===n.state.activeLegend}));t&&(n.setState({activeLegend:""}),t.onMouseOutAction&&t.onMouseOutAction())},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:"button","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){e.hoverAction&&(n.setState({activeLegend:e.title}),e.hoverAction())},n._onLeave=function(e){e.onMouseOutAction&&(n.setState({activeLegend:""}),e.onMouseOutAction())},n._renderButton=function(e,t,r){var o=n.props.allowFocusOnLegends,a=void 0===o||o,l={title:e.title,color:e.color,shape:e.shape,action:e.action,hoverAction:e.hoverAction,onMouseOutAction:e.onMouseOutAction,stripePattern:e.stripePattern,isLineLegendInBarChart:e.isLineLegendInBarChart,opacity:e.opacity},u=n._getColor(l.title,l.color),c=n.props,d=c.theme,h=c.className,p=c.styles,f=c.canSelectMultipleLegends,g=void 0!==f&&f,m=Hh(p,{theme:d,className:h,colorOnSelectedState:u,borderColor:l.color,overflow:r,stripePattern:l.stripePattern,isLineLegendInBarChart:l.isLineLegendInBarChart,opacity:l.opacity}),v=function(){n._onHoverOverLegend(l)},_=function(){n._onLeave(l)},y=n._getShape(m,l,u);return s.createElement("button",i({},a&&{"aria-selected":g?!!n.state.selectedLegends[l.title]: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:m.legend,onClick:function(){n._onClick(l)},onMouseOver:v,onMouseOut:_,onFocus:v,onBlur:_,"data-is-focusable":a}),y,s.createElement("div",{className:m.text},l.title))},n.state={selectedLegend:"",activeLegend:"",isHoverCardVisible:!1,selectedLegends:{}},n}return r(t,e),t.prototype.render=function(){var e=this.props,t=e.theme,n=e.className,r=e.styles;this._classNames=Hh(r,{theme:t,className:n}),this._isLegendSelected=""!==this.state.selectedLegend||Object.keys(this.state.selectedLegends).length>0;var i=this._generateData();return s.createElement("div",{className:this._classNames.root},this.props.enabledWrapLines?this._onRenderData(i):s.createElement(Lh,{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:qe(t,Ue,["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(Vh,{svgProps:r,pathProps:i,shape:t.shape,classNameForNonSvg:e.rect})},t.prototype._getColor=function(e,t){var n=this.props.theme.palette;return this._isLegendSelected?this.state.selectedLegend===e||this.state.selectedLegends[e]?t:n.white:this.state.activeLegend===e||""===this.state.activeLegend?t:n.white},t}(s.Component),Bh=C(Rh,(function(e){var t,n,r=e.className,o=e.theme,a=e.isLineLegendInBarChart,s=void 0!==a&&a,l=o,u=l.palette,c=l.fonts,d={inset:void 0,position:void 0,highContrastStyle:{outlineColor:o.semanticColors.focusBorder},borderColor:"transparent",outlineColor:void 0};return{root:[{whiteSpace:"nowrap",width:"100%",alignItems:"center",margin:"-8px 0 0 -8px"},r],legend:[Hn(o,d),{display:"flex",alignItems:"center",cursor:"pointer",border:"none",padding:"8px",background:"none",textTransform:"capitalize"}],rect:{selectors:(t={},t[On]={content:"linear-gradient(to right, "+e.colorOnSelectedState+", "+e.colorOnSelectedState+")",opacity:e.colorOnSelectedState===u.white?"0.6":""},t),width:"12px",height:s?"4px":"12px",backgroundColor:e.stripePattern?"":e.colorOnSelectedState,marginRight:"8px",border:"1px solid",borderColor:e.borderColor?e.borderColor:null==o?void 0:o.semanticColors.buttonBorder,content:e.stripePattern?"repeating-linear-gradient(135deg, transparent, transparent 3px, "+e.colorOnSelectedState+" 1px, "+e.colorOnSelectedState+" 4px)":""},shape:[{marginRight:"8px"}],triangle:{width:"0",height:"0",borderLeft:"6px solid transparent",borderRight:"6px solid transparent",borderTop:"10.4px solid",borderTopColor:e.colorOnSelectedState,marginRight:"8px",opacity:e.colorOnSelectedState===u.white?"0.6":e.opacity?e.opacity:"",selectors:(n={},n[On]={border:"0px",height:"10.4px",width:"10.4px",clipPath:"polygon(50% 100%, 0 0, 100% 0)",backgroundImage:"linear-gradient(to right, "+e.colorOnSelectedState+", "+e.colorOnSelectedState+")"},n)},text:i(i({},c.small),{lineHeight:"16px",color:null==o?void 0:o.semanticColors.bodyText,opacity:e.colorOnSelectedState===u.white?"0.67":""}),hoverChange:{width:"12px",height:"12px",backgroundColor:"white",marginRight:"8px",border:"1px solid",borderColor:e.borderColor?e.borderColor:u.black},overflowIndicationTextStyle:[Hn(o,d),i(i({cursor:"pointer",color:null==o?void 0:o.semanticColors.bodyText},c.small),{lineHeight:"16px",padding:"8px"})],hoverCardRoot:{padding:"8px"},subComponentStyles:{hoverCardStyles:{host:[Hn(o,d)]}}}}));function Wh(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function zh(e){return function(){return e}}function Uh(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function Yh(e){return e}Array.prototype.slice;var qh=Math.abs,jh=Math.atan2,Xh=Math.cos,Kh=Math.max,Gh=Math.min,Zh=Math.sin,$h=Math.sqrt,Qh=1e-12,Jh=Math.PI,ep=Jh/2,tp=2*Jh;function np(e){return e>1?0:e<-1?Jh:Math.acos(e)}function rp(e){return e>=1?ep:e<=-1?-ep:Math.asin(e)}function ip(){var e=Yh,t=Uh,n=null,r=zh(0),i=zh(tp),o=zh(0);function a(a){var s,l,u,c,d,h=(a=Wh(a)).length,p=0,f=new Array(h),g=new Array(h),m=+r.apply(this,arguments),v=Math.min(tp,Math.max(-tp,i.apply(this,arguments)-m)),_=Math.min(Math.abs(v)/h,o.apply(this,arguments)),y=_*(v<0?-1:1);for(s=0;s<h;++s)(d=g[f[s]=s]=+e(a[s],s,a))>0&&(p+=d);for(null!=t?f.sort((function(e,n){return t(g[e],g[n])})):null!=n&&f.sort((function(e,t){return n(a[e],a[t])})),s=0,u=p?(v-h*y)/p:0;s<h;++s,m=c)l=f[s],c=m+((d=g[l])>0?d*u:0)+y,g[l]={data:a[l],index:s,value:d,startAngle:m,endAngle:c,padAngle:_};return g}return a.value=function(t){return arguments.length?(e="function"==typeof t?t:zh(+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:zh(+e),a):r},a.endAngle=function(e){return arguments.length?(i="function"==typeof e?e:zh(+e),a):i},a.padAngle=function(e){return arguments.length?(o="function"==typeof e?e:zh(+e),a):o},a}var op=Math.PI,ap=2*op,sp=1e-6,lp=ap-sp;function up(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function cp(){return new up}up.prototype=cp.prototype={constructor:up,moveTo:function(e,t){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(e,t){this._+="L"+(this._x1=+e)+","+(this._y1=+t)},quadraticCurveTo:function(e,t,n,r){this._+="Q"+ +e+","+ +t+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(e,t,n,r,i,o){this._+="C"+ +e+","+ +t+","+ +n+","+ +r+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(e,t,n,r,i){e=+e,t=+t,n=+n,r=+r,i=+i;var o=this._x1,a=this._y1,s=n-e,l=r-t,u=o-e,c=a-t,d=u*u+c*c;if(i<0)throw new Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(d>sp)if(Math.abs(c*s-l*u)>sp&&i){var h=n-o,p=r-a,f=s*s+l*l,g=h*h+p*p,m=Math.sqrt(f),v=Math.sqrt(d),_=i*Math.tan((op-Math.acos((f+d-g)/(2*m*v)))/2),y=_/v,x=_/m;Math.abs(y-1)>sp&&(this._+="L"+(e+y*u)+","+(t+y*c)),this._+="A"+i+","+i+",0,0,"+ +(c*h>u*p)+","+(this._x1=e+x*s)+","+(this._y1=t+x*l)}else this._+="L"+(this._x1=e)+","+(this._y1=t)},arc:function(e,t,n,r,i,o){e=+e,t=+t;var a=(n=+n)*Math.cos(r),s=n*Math.sin(r),l=e+a,u=t+s,c=1^o,d=o?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+l+","+u:(Math.abs(this._x1-l)>sp||Math.abs(this._y1-u)>sp)&&(this._+="L"+l+","+u),n&&(d<0&&(d=d%ap+ap),d>lp?this._+="A"+n+","+n+",0,1,"+c+","+(e-a)+","+(t-s)+"A"+n+","+n+",0,1,"+c+","+(this._x1=l)+","+(this._y1=u):d>sp&&(this._+="A"+n+","+n+",0,"+ +(d>=op)+","+c+","+(this._x1=e+n*Math.cos(i))+","+(this._y1=t+n*Math.sin(i))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};var dp=cp;function hp(e){return e.innerRadius}function pp(e){return e.outerRadius}function fp(e){return e.startAngle}function gp(e){return e.endAngle}function mp(e){return e&&e.padAngle}function vp(e,t,n,r,i,o,a,s){var l=n-e,u=r-t,c=a-i,d=s-o,h=d*l-c*u;if(!(h*h<Qh))return[e+(h=(c*(t-o)-d*(e-i))/h)*l,t+h*u]}function _p(e,t,n,r,i,o,a){var s=e-n,l=t-r,u=(a?o:-o)/$h(s*s+l*l),c=u*l,d=-u*s,h=e+c,p=t+d,f=n+c,g=r+d,m=(h+f)/2,v=(p+g)/2,_=f-h,y=g-p,x=_*_+y*y,b=i-o,C=h*g-f*p,k=(y<0?-1:1)*$h(Kh(0,b*b*x-C*C)),E=(C*y-_*k)/x,S=(-C*_-y*k)/x,L=(C*y+_*k)/x,A=(-C*_+y*k)/x,w=E-m,D=S-v,T=L-m,M=A-v;return w*w+D*D>T*T+M*M&&(E=L,S=A),{cx:E,cy:S,x01:-c,y01:-d,x11:E*(i/b-1),y11:S*(i/b-1)}}function yp(){var e=hp,t=pp,n=zh(0),r=null,i=fp,o=gp,a=mp,s=null;function l(){var l,u,c=+e.apply(this,arguments),d=+t.apply(this,arguments),h=i.apply(this,arguments)-ep,p=o.apply(this,arguments)-ep,f=qh(p-h),g=p>h;if(s||(s=l=dp()),d<c&&(u=d,d=c,c=u),d>Qh)if(f>tp-Qh)s.moveTo(d*Xh(h),d*Zh(h)),s.arc(0,0,d,h,p,!g),c>Qh&&(s.moveTo(c*Xh(p),c*Zh(p)),s.arc(0,0,c,p,h,g));else{var m,v,_=h,y=p,x=h,b=p,C=f,k=f,E=a.apply(this,arguments)/2,S=E>Qh&&(r?+r.apply(this,arguments):$h(c*c+d*d)),L=Gh(qh(d-c)/2,+n.apply(this,arguments)),A=L,w=L;if(S>Qh){var D=rp(S/c*Zh(E)),T=rp(S/d*Zh(E));(C-=2*D)>Qh?(x+=D*=g?1:-1,b-=D):(C=0,x=b=(h+p)/2),(k-=2*T)>Qh?(_+=T*=g?1:-1,y-=T):(k=0,_=y=(h+p)/2)}var M=d*Xh(_),P=d*Zh(_),N=c*Xh(b),F=c*Zh(b);if(L>Qh){var I,O=d*Xh(y),V=d*Zh(y),H=c*Xh(x),R=c*Zh(x);if(f<Jh&&(I=vp(M,P,H,R,O,V,N,F))){var B=M-I[0],W=P-I[1],z=O-I[0],U=V-I[1],Y=1/Zh(np((B*z+W*U)/($h(B*B+W*W)*$h(z*z+U*U)))/2),q=$h(I[0]*I[0]+I[1]*I[1]);A=Gh(L,(c-q)/(Y-1)),w=Gh(L,(d-q)/(Y+1))}}k>Qh?w>Qh?(m=_p(H,R,M,P,d,w,g),v=_p(O,V,N,F,d,w,g),s.moveTo(m.cx+m.x01,m.cy+m.y01),w<L?s.arc(m.cx,m.cy,w,jh(m.y01,m.x01),jh(v.y01,v.x01),!g):(s.arc(m.cx,m.cy,w,jh(m.y01,m.x01),jh(m.y11,m.x11),!g),s.arc(0,0,d,jh(m.cy+m.y11,m.cx+m.x11),jh(v.cy+v.y11,v.cx+v.x11),!g),s.arc(v.cx,v.cy,w,jh(v.y11,v.x11),jh(v.y01,v.x01),!g))):(s.moveTo(M,P),s.arc(0,0,d,_,y,!g)):s.moveTo(M,P),c>Qh&&C>Qh?A>Qh?(m=_p(N,F,O,V,c,-A,g),v=_p(M,P,H,R,c,-A,g),s.lineTo(m.cx+m.x01,m.cy+m.y01),A<L?s.arc(m.cx,m.cy,A,jh(m.y01,m.x01),jh(v.y01,v.x01),!g):(s.arc(m.cx,m.cy,A,jh(m.y01,m.x01),jh(m.y11,m.x11),!g),s.arc(0,0,c,jh(m.cy+m.y11,m.cx+m.x11),jh(v.cy+v.y11,v.cx+v.x11),g),s.arc(v.cx,v.cy,A,jh(v.y11,v.x11),jh(v.y01,v.x01),!g))):s.arc(0,0,c,b,x,g):s.lineTo(N,F)}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-Jh/2;return[Xh(r)*n,Zh(r)*n]},l.innerRadius=function(t){return arguments.length?(e="function"==typeof t?t:zh(+t),l):e},l.outerRadius=function(e){return arguments.length?(t="function"==typeof e?e:zh(+e),l):t},l.cornerRadius=function(e){return arguments.length?(n="function"==typeof e?e:zh(+e),l):n},l.padRadius=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:zh(+e),l):r},l.startAngle=function(e){return arguments.length?(i="function"==typeof e?e:zh(+e),l):i},l.endAngle=function(e){return arguments.length?(o="function"==typeof e?e:zh(+e),l):o},l.padAngle=function(e){return arguments.length?(a="function"==typeof e?e:zh(+e),l):a},l.context=function(e){return arguments.length?(s=null==e?null:e,l):s},l}var xp=function(e){var t=e.color,n=e.href,r=e.theme;return{root:{fill:t,cursor:n?"pointer":"default",stroke:Fn.white,outline:"transparent",selectors:{"::-moz-focus-inner":{border:"0"}}},focusRing:{stroke:r.semanticColors.focusBorder,strokeWidth:4,fill:"transparent"},arcLabel:{fontSize:Tn.small,fontWeight:Mn.semibold,fill:r.palette.neutralPrimary}}},bp=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={},t.currentRef=s.createRef(),t._isRTL=oe(),t._hoverOff=function(){t.props.hoverLeaveCallback()},t._onBlur=function(){t.props.onBlurCallback()},t._getAriaLabel=function(){var e,n=t.props.data.data,r=n.xAxisCalloutData||n.legend,i=n.yAxisCalloutData||n.data||0;return(null===(e=n.callOutAccessibilityData)||void 0===e?void 0:e.ariaLabel)||(r?r+", ":"")+i+"."},t._renderArcLabel=function(e){var n=t.props,r=n.arc,i=n.data,o=n.innerRadius,a=n.outerRadius,l=n.showLabelsInPercent,u=n.totalValue;if(n.hideLabels||Math.abs(i.endAngle-i.startAngle)<Math.PI/12)return null;var c=r.centroid(i),d=c[0],h=c[1],p=Math.sqrt(d*d+h*h),f=Math.max(o,a)+2,g=(i.startAngle+i.endAngle)/2,m=i.value;return s.createElement("text",{x:(0===p?0:d/p)*f,y:(0===p?0:h/p)*f,textAnchor:g>Math.PI!==t._isRTL?"end":"start",dominantBaseline:g>Math.PI/2&&g<3*Math.PI/2?"hanging":"auto",className:e,"aria-hidden":!0},l?ha(".0%")(0===u?0:m/u):pa(m<1e3?".2~":".1",m)(m))},t}return r(t,e),t.getDerivedStateFromProps=function(e){return Cp(e),null},t.prototype.updateChart=function(e){Cp(e)},t.prototype.render=function(){var e,t=this.props,n=t.arc,r=t.href,i=t.focusedArcId,o=ue()(xp,{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-label":this._getAriaLabel(),role:"img"}),this._renderArcLabel(o.arcLabel))},t.prototype._onFocus=function(e,t){this.props.onFocusCallback(e,t,this.currentRef.current)},t.prototype._hoverOn=function(e,t){t.persist(),this.props.hoverOnCallback(e,t)},t.prototype._redirectToUrl=function(e){e&&(window.location.href=e)},t.defaultProps={arc:yp()},t}(s.Component);function Cp(e){e.arc.innerRadius(e.innerRadius),e.arc.outerRadius(e.outerRadius)}var kp=function(e){var t,n=e.theme;return{root:{},insideDonutString:{fontSize:Tn.xLargePlus,fontWeight:Mn.semibold,fill:n.semanticColors.bodyText,selectors:(t={},t[Vn]={fill:"rgb(179, 179, 179)"},t)}}},Ep=ue(),Sp=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(bp,{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,showLabelsInPercent:n.props.showLabelsInPercent,totalValue:n._totalValue,hideLabels:n.props.hideLabels})},n._focusCallback=function(e,t,r){n.props.onFocusCallback(e,t,r)},n._computeTotalValue=function(){var e=0;return n.props.data.forEach((function(t){e+=t.data})),e},n._hoverCallback=n._hoverCallback.bind(n),n._pieForFocusRing=ip().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+")",l=Ep(kp,{theme:this.props.theme});return this._totalValue=this._computeTotalValue(),s.createElement("g",{transform:a},o.map((function(t,n){return e.arcGenerator(t,n,i[n],e.props.href)})),this.props.valueInsideDonut&&s.createElement("text",{y:5,textAnchor:"middle",dominantBaseline:"middle",className:l.insideDonutString,"data-is-focusable":!0},this.props.valueInsideDonut))},t.prototype.componentDidUpdate=function(){var e,t,n;e=Ep(kp,{theme:this.props.theme}).insideDonutString,t=2*this.props.innerRadius-5,n=0,Rc("."+e).each((function(){for(var e=Ic(this),r=e.text().split(/\s+/).reverse(),i="",o=[],a=0,s=e.attr("y"),l=e.text(null).append("tspan").attr("id","WordBreakId-"+n+"-"+a).attr("x",0).attr("y",s).attr("dy",1.1*a+++"em");i=r.pop();)o.push(i),l.text(o.join(" ")+" "),l.node().getComputedTextLength()>t&&o.length>1&&(o.pop(),l.text(o.join(" ")+" "),o=[i],l=e.append("tspan").attr("id","WordBreakId-"+n+"-"+a).attr("x",0).attr("y",s).attr("dy",1.1*a+++"em").text(i));n+=1}))},t.prototype._hoverCallback=function(e,t){this.props.hoverOnCallback(e,t)},t.defaultProps={pie:ip().sort(null).value((function(e){return e.data})).padAngle(.02)},t}(s.Component),Lp=ue(),Ap=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:""===n.state.selectedLegend||n.state.selectedLegend===e.legend,value:e.data.toString(),legend:e.legend,color:e.color,xCalloutValue:e.xAxisCalloutData,yCalloutValue:e.yAxisCalloutData,focusedArcId:t,dataPointCalloutProps:e,callOutAccessibilityData:e.callOutAccessibilityData})},n._hoverCallback=function(e,t){n._calloutAnchorPoint!==e&&(n._calloutAnchorPoint=e,n._currentHoverElement=t,n.setState({showHover:""===n.state.selectedLegend||n.state.selectedLegend===e.legend,value:e.data.toString(),legend:e.legend,color:e.color,xCalloutValue:e.xAxisCalloutData,yCalloutValue:e.yAxisCalloutData,dataPointCalloutProps:e,callOutAccessibilityData:e.callOutAccessibilityData}))},n._onBlur=function(){n.setState({focusedArcId:""})},n._handleChartMouseLeave=function(){n._calloutAnchorPoint=null,n.setState({showHover:!1})},n.state={showHover:!1,value:"",legend:"",_width:n.props.width||200,_height:n.props.height||200,activeLegend:"",color:"",xCalloutValue:"",yCalloutValue:"",selectedLegend:"",focusedArcId:""},n._hoverCallback=n._hoverCallback.bind(n),n._focusCallback=n._focusCallback.bind(n),n._hoverLeave=n._hoverLeave.bind(n),n._calloutId=ge("callout"),n._uniqText=ge("_Pie_"),n}return r(t,e),t.getDerivedStateFromProps=function(e,t){var n,r;return e.width&&e.width!==t._width&&(n={_width:e.width}),e.height&&e.height!==t._height&&(r={_height:e.height-40}),i(i({},n),r)},t.prototype.componentDidMount=function(){this._rootElem&&this.setState({_width:this._rootElem.offsetWidth,_height:this._rootElem.offsetHeight-40})},t.prototype.render=function(){var e,t=this,n=this.props,r=n.data,o=n.hideLegend,a=void 0!==o&&o,l=this.props.theme.palette;this._classNames=Lp(this.props.styles,{theme:this.props.theme,width:this.state._width,height:this.state._height,color:this.state.color,className:this.props.className});var u=this._createLegends(r,l),c=this.props.hideLabels?0:80,d=this.props.hideLabels?0:40,h=Math.min(this.state._width-c,this.state._height-d)/2,p=r&&(null===(e=r.chartData)||void 0===e?void 0:e.filter((function(e){return e.data>0}))),f=this._valueInsideDonut(this.props.valueInsideDonut,p);return s.createElement("div",{className:this._classNames.root,ref:function(e){return t._rootElem=e},onMouseLeave:this._handleChartMouseLeave},s.createElement(Vd,{direction:sd.horizontal,handleTabKey:1},s.createElement("div",null,s.createElement("svg",{className:this._classNames.chart,"aria-label":null==r?void 0:r.chartTitle,ref:function(e){return t._setViewBox(e)}},s.createElement(Sp,{width:this.state._width,height:this.state._height,outerRadius:h,innerRadius:this.props.innerRadius,data:p,onFocusCallback:this._focusCallback,hoverOnCallback:this._hoverCallback,hoverLeaveCallback:this._hoverLeave,uniqText:this._uniqText,onBlurCallback:this._onBlur,activeArc:this._getHighlightedLegend(),focusedArcId:this.state.focusedArcId||"",href:this.props.href,calloutId:this._calloutId,valueInsideDonut:this._toLocaleString(f),theme:this.props.theme,showLabelsInPercent:this.props.showLabelsInPercent,hideLabels:this.props.hideLabels})))),s.createElement(Ci,i({target:this._currentHoverElement,alignTargetEdge:!0,isBeakVisible:!1,directionalHint:3,gapSpace:15,hidden:!(!this.props.hideTooltip&&this.state.showHover),id:this._calloutId,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0,shouldUpdateWhenHidden:!0},this.props.calloutProps,ud(this.state.callOutAccessibilityData,"text",!1)),this.props.onRenderCalloutPerDataPoint?this.props.onRenderCalloutPerDataPoint(this.state.dataPointCalloutProps):s.createElement(fd,{Legend:this.state.xCalloutValue?this.state.xCalloutValue:this.state.legend,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.value,color:this.state.color,culture:this.props.culture})),!a&&s.createElement("div",{className:this._classNames.legendContainer},u))},t.prototype._setViewBox=function(e){var t,n;if(null!==e){var r="0 0 "+(e.parentElement?e.parentElement.clientWidth:this.state._width)+" "+(e.parentElement&&(null===(t=e.parentElement)||void 0===t?void 0:t.offsetHeight)>this.state._height?null===(n=e.parentElement)||void 0===n?void 0:n.offsetHeight:this.state._height);e.setAttribute("viewBox",r)}},t.prototype._createLegends=function(e,t){var n=this,r=[t.blueLight,t.blue,t.blueMid,t.red,t.black],o=e&&e.chartData.map((function(e,t){var i=e.color?e.color:r[Math.floor(4*Math.random()+1)];return{title:e.legend,color:i,action:function(){n.state.selectedLegend===e.legend?n.setState({selectedLegend:""}):n.setState({selectedLegend:e.legend})},hoverAction:function(){n._handleChartMouseLeave(),n.setState({activeLegend:e.legend})},onMouseOutAction:function(){n.setState({activeLegend:""})}}}));return s.createElement(Bh,i({legends:o,centerLegends:!0,overflowProps:this.props.legendsOverflowProps,focusZonePropsInHoverCard:this.props.focusZonePropsForLegendsInHoverCard,overflowText:this.props.legendsOverflowText},this.props.legendProps))},t.prototype._hoverLeave=function(){},t.prototype._valueInsideDonut=function(e,t){var n=this._getHighlightedLegend();if(void 0===e||""===n||this.state.showHover)return e;var r=e;return t.map((function(e,t){e.legend===n&&(r=e.yAxisCalloutData?e.yAxisCalloutData:e.data)})),r},t.prototype._toLocaleString=function(e){var t=cd(e,this.props.culture);return t?null==t?void 0:t.toString():e},t.prototype._getHighlightedLegend=function(){return this.state.selectedLegend||this.state.activeLegend},t.defaultProps={innerRadius:0,hideLabels:!0},t}(s.Component),wp=C(Ap,(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",display:"block"},legendContainer:{paddingTop:"16px",width:n+"px"}}}));function Dp(e){this._context=e}function Tp(e){return new Dp(e)}function Mp(e){return e[0]}function Pp(e){return e[1]}function Np(e,t){var n=zh(!0),r=null,i=Tp,o=null;function a(a){var s,l,u,c=(a=Wh(a)).length,d=!1;for(null==r&&(o=i(u=dp())),s=0;s<=c;++s)!(s<c&&n(l=a[s],s,a))===d&&((d=!d)?o.lineStart():o.lineEnd()),d&&o.point(+e(l,s,a),+t(l,s,a));if(u)return o=null,u+""||null}return e="function"==typeof e?e:void 0===e?Mp:zh(e),t="function"==typeof t?t:void 0===t?Pp:zh(t),a.x=function(t){return arguments.length?(e="function"==typeof t?t:zh(+t),a):e},a.y=function(e){return arguments.length?(t="function"==typeof e?e:zh(+e),a):t},a.defined=function(e){return arguments.length?(n="function"==typeof e?e:zh(!!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}Dp.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)}}};var Fp=ue(),Ip=function(e){function t(t){var n,r,o,a,l,u,c,d,h,p,f,g,m=e.call(this,t)||this;return m.minLegendContainerHeight=32,m._isRtl=oe(),m._multiValueCallout=function(e){var t=m._yValueHoverSubCountsExists(e.YValueHover);return s.createElement("div",{className:m._classNames.calloutContentRoot},s.createElement("div",{className:m._classNames.calloutDateTimeContainer,style:t?{marginBottom:"11px"}:{}},s.createElement("div",i({className:m._classNames.calloutContentX},ud(e.xAxisCalloutAccessibilityData,"text",!1)),cd(e.hoverXValue,m.props.culture))),s.createElement("div",{className:m._classNames.calloutInfoContainer,style:t?{display:"flex"}:{}},e.YValueHover&&e.YValueHover.map((function(e,n,r){var o=n+1===r.length,a=e.shouldDrawBorderBottom,l=void 0!==a&&a;return s.createElement("div",i({},ud(e.callOutAccessibilityData,"text",!1),{key:"callout-content-"+n,style:i(t?{display:"inline-block"}:{},l&&{borderBottom:"1px solid "+m.props.theme.semanticColors.menuDivider,paddingBottom:"10px"})}),m._getCalloutContent(e,n,t,o))})),!!e.descriptionMessage&&s.createElement("div",{className:m._classNames.descriptionMessage},e.descriptionMessage)))},m._getData=function(e,t){m.props.getGraphData&&m.props.getGraphData(e,t,m.state.containerHeight-m.state._removalValueForTextTuncate,m.state.containerWidth,m.xAxisElement)},m.state={containerHeight:0,containerWidth:0,_width:m.props.width||600,_height:m.props.height||350,_removalValueForTextTuncate:0,isRemoveValCalculated:!0},m.idForGraph=ge("chart_"),m.margins={top:null!==(r=null===(n=m.props.margins)||void 0===n?void 0:n.top)&&void 0!==r?r:20,bottom:null!==(a=null===(o=m.props.margins)||void 0===o?void 0:o.bottom)&&void 0!==a?a:35,right:m._isRtl?null!==(u=null===(l=m.props.margins)||void 0===l?void 0:l.left)&&void 0!==u?u:40:null!==(d=null===(c=m.props.margins)||void 0===c?void 0:c.right)&&void 0!==d?d:20,left:m._isRtl?null!==(p=null===(h=m.props.margins)||void 0===h?void 0:h.right)&&void 0!==p?p:20:null!==(g=null===(f=m.props.margins)||void 0===f?void 0:f.left)&&void 0!==g?g:40},m}return r(t,e),t.prototype.componentDidMount=function(){this._fitParentContainer()},t.prototype.componentWillUnmount=function(){cancelAnimationFrame(this._reqID)},t.prototype.componentDidUpdate=function(e){if(e.height===this.props.height&&e.width===this.props.width||this._fitParentContainer(),!this.props.wrapXAxisLables&&this.props.rotateXAxisLables&&this.props.xAxisType===zc.StringAxis){var t=function(e){var t=e.node,n=e.xAxis;if(null!==t&&null!==n){var r=0,i=[];Ic(t).call(n).selectAll(".tick").each((function(){var e=this.getAttribute("transform");if(-1===(null==e?void 0:e.indexOf("rotate"))){var t=e.substring(e.indexOf("(")+1,e.indexOf(")")).split(",");2===t.length&&(i.push(t[0]),this.setAttribute("transform","translate("+t[0]+",0)rotate(-45)"))}var n=this.getBoundingClientRect(),o=n&&n.height;o>r&&(r=o)}));var o=0;return Ic(t).call(n).selectAll(".tick").each((function(){i.length>o&&(this.setAttribute("transform","translate("+i[o]+","+r/2+")rotate(-45)"),o+=1)})),Math.floor(r/1.414)}}({node:this.xAxisElement,xAxis:this._xScale});this.state.isRemoveValCalculated&&this.state._removalValueForTextTuncate!==t+this.margins.bottom&&t>0&&this.setState({_removalValueForTextTuncate:t+this.margins.bottom,isRemoveValCalculated:!1})}},t.prototype.render=function(){var e=this,t=this.props,n=t.calloutProps,r=t.points,o=t.chartType,a=t.chartHoverProps,l=t.svgFocusZoneProps,u=t.svgProps,c=t.culture,d=t.dateLocalizeOptions,h=t.timeFormatLocale,p=t.customDateTimeFormatter;this.props.parentRef&&this._fitParentContainer(),this.props.getmargins&&this.props.getmargins(this.margins);var f,g,m={domainNRangeValues:nd(r,this.props.getDomainMargins?this.props.getDomainMargins(this.state.containerWidth):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,xAxisInnerPadding:this.props.xAxisInnerPadding,xAxisOuterPadding:this.props.xAxisOuterPadding},v={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 zc.NumericAxis:f=Qc(m,c);break;case zc.DateAxis:f=function(e,t,n,r,i,o){var a=e.domainNRangeValues,s=e.xAxisElement,l=e.tickPadding,u=void 0===l?6:l,c=e.xAxistickSize,d=void 0===c?6:c,h=e.xAxisCount,p=void 0===h?6:h,f=function(){return ta.apply(vu(ms,vs,Ka,ja,Ha,Oa,Fa,Pa,Ta,tl).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}().domain([a.dStartValue,a.dEndValue]).range([a.rStartValue,a.rEndValue]),g=Ni(f).tickSize(d).tickPadding(u).ticks(p);if(o)g.tickFormat((function(e,t){return o(e)}));else if(n&&r)g.tickFormat((function(e,t){return e.toLocaleString(n,r)}));else if(i){var m=Js(i);g.tickFormat((function(e,t){return function(e,t){var n=t.format(".%L"),r=t.format(":%S"),i=t.format("%I:%M"),o=t.format("%I %p"),a=t.format("%a %d"),s=t.format("%b %d"),l=t.format("%B"),u=t.format("%Y");return(qc(e)<e?n:Xc(e)<e?r:Gc(e)<e?i:qs(e)<e?o:$c(e)<e?Vs(e)<e?a:s:Xs(e)<e?l:u)(e)}(e,m)}))}return t.tickValues&&g.tickValues(t.tickValues),void 0===n&&t.tickFormat&&g.tickFormat(tl(t.tickFormat)),s&&Ic(s).call(g).selectAll("text").attr("aria-hidden","true"),f}(m,this.props.tickParams,c,d,h,p);break;case zc.StringAxis:f=function(e,t,n,r){var i=e.domainNRangeValues,o=e.xAxisCount,a=void 0===o?6:o,s=e.xAxistickSize,l=void 0===s?6:s,u=e.tickPadding,c=void 0===u?10:u,d=e.xAxisPadding,h=void 0===d?.1:d,p=e.xAxisInnerPadding,f=e.xAxisOuterPadding,g=Eu().domain(n).range([i.rStartValue,i.rEndValue]).paddingInner(void 0!==p?p:h).paddingOuter(void 0!==f?f:h),m=Ni(g).tickSize(l).tickPadding(c).ticks(a).tickFormat((function(e,t){return cd(n[t],r)}));return e.xAxisElement&&Ic(e.xAxisElement).call(m).selectAll("text").attr("aria-hidden","true"),g}(m,this.props.tickParams,this.props.datasetForXAxisDomain,c);break;default:f=Qc(m,c)}if(this._xScale=f,this.props.wrapXAxisLables||this.props.showXAxisLablesTooltip){var _={node:this.xAxisElement,xAxis:f,showXAxisLablesTooltip:this.props.showXAxisLablesTooltip||!1,noOfCharsToTruncate:this.props.noOfCharsToTruncate||4},y=f&&function(e){var t=e.node,n=e.xAxis,r=e.noOfCharsToTruncate,i=e.showXAxisLablesTooltip;if(null!==t){var o=Ic(t).call(n),a=0,s=[];return o.selectAll(".tick text").each((function(){var e=Ic(this),t=e.text(),n=e.text().slice(0,r)+"...",l=e.text().length,u=e.text().split(/\s+/).reverse();s.push(u.length);var c="",d=[],h=0,p=e.attr("y"),f=parseFloat(e.attr("dy")),g=e.text(null).append("tspan").attr("x",0).attr("y",p).attr("id","BaseSpan").attr("dy",f+"em").attr("data-",t);if(i&&l>r)g=e.append("tspan").attr("id","showDots").attr("x",0).attr("y",p).attr("dy",1.1*++h+f+"em").text(n);else if(i&&l<=r)g=e.append("tspan").attr("id","LessLength").attr("x",0).attr("y",p).attr("dy",1.1*++h+f+"em").text(t);else{for(;c=u.pop();)d.push(c),g.text(d.join(" ")),g.node().getComputedTextLength()>10&&d.length>1&&(d.pop(),g.text(d.join(" ")),d=[c],g=e.append("tspan").attr("id","WordBreakId").attr("x",0).attr("y",p).attr("dy",1.1*++h+f+"em").text(c));var m=Math.max.apply(Math,s),v=12;o.selectAll("text").each((function(){var e=document.getElementById("WordBreakId"),t=e&&e.getBoundingClientRect(),n=t&&t.height;n>v&&(v=n)}));var _=4;m<=2?_=1:m>2&&m<=6?_=2:m>6&&m<=9&&(_=3),a=(m-_)*v}})),a>0?a:0}}(_);this.state.isRemoveValCalculated&&this.state._removalValueForTextTuncate!==y&&this.setState({_removalValueForTextTuncate:y,isRemoveValCalculated:!1})}var x={yAxisDomainValues:[]};g=this.props.yAxisType&&this.props.yAxisType===Uc.StringAxis?function(e,t,n){var r=e.containerHeight,i=e.tickPadding,o=void 0===i?12:i,a=e.margins,s=e.yAxisTickFormat,l=e.yAxisElement,u=e.yAxisPadding,c=void 0===u?0:u,d=Eu().domain(t).range([r-a.bottom,a.top]).padding(c),h=(n?Pi(d):Fi(d)).tickPadding(o).tickValues(t).tickSize(0);return s&&h.tickFormat(s),l&&Ic(l).call(h).selectAll("text"),d}(v,this.props.stringDatasetForYAxisDomain,this._isRtl):function(e,t,n){var r=e.yMinMaxValues,i=void 0===r?{startValue:0,endValue:0}:r,o=e.yAxisElement,a=void 0===o?null:o,s=e.yMaxValue,l=void 0===s?0:s,u=e.yMinValue,c=void 0===u?0:u,d=e.containerHeight,h=e.containerWidth,p=e.margins,f=e.tickPadding,g=void 0===f?12:f,m=e.maxOfYVal,v=void 0===m?0:m,_=e.yAxisTickFormat,y=e.yAxisTickCount,x=void 0===y?4:y,b=e.eventAnnotationProps,C=e.eventLabelHeight,k=v||i.endValue,E=k>l?k:l,S=i.startValue<c?0:c,L=function(e,t,n){for(var r=Math.ceil((e-t)/n),i=[t,t+r];i[i.length-1]<e;)i.push(i[i.length-1]+r);return i}(E,S,x),A=va().domain([S,L[L.length-1]]).range([d-p.bottom,p.top+(b?C:0)]),w=(t?Pi(A):Fi(A)).tickPadding(g).tickValues(L).tickSizeInner(-(h-p.left-p.right));return _?w.tickFormat(_):w.tickFormat(ha(".2~s")),a&&Ic(a).call(w).selectAll("text").attr("aria-hidden","true"),n.yAxisDomainValues=L,A}(v,this._isRtl,x),this.props.getAxisData&&this.props.getAxisData(x),this._getData(f,g),this._classNames=Fp(this.props.styles,{theme:this.props.theme,width:this.state._width,height:this.state._height,className:this.props.className,isRtl:this._isRtl});var b,C={width:this.state.containerWidth,height:this.state.containerHeight},k=this.props.children(i(i({},this.state),{xScale:f,yScale:g}));return b=this.props.focusZoneDirection===sd.vertical||this.props.focusZoneDirection?this.props.focusZoneDirection:sd.horizontal,s.createElement("div",{id:this.idForGraph,className:this._classNames.root,role:"presentation",ref:function(t){return e.chartContainer=t},onMouseLeave:this.props.onChartMouseLeave},s.createElement(Vd,i({direction:b},l),s.createElement("svg",i({width:C.width,height:C.height,"aria-label":this.props.chartTitle,style:{display:"block"}},u),s.createElement("g",{ref:function(t){e.xAxisElement=t},id:"xAxisGElement"+this.idForGraph,transform:"translate(0, "+(C.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?C.width-this.margins.right:this.margins.left)+", 0)",className:this._classNames.yAxis}),k)),!this.props.hideLegend&&s.createElement("div",{ref:function(t){return e.legendContainer=t},className:this._classNames.legendContainer},this.props.legendBars),s.createElement(Ci,i({hidden:!(!this.props.hideTooltip&&n.isCalloutVisible),shouldUpdateWhenHidden:!0},n),this.props.customizedCallout&&this.props.customizedCallout,!this.props.customizedCallout&&this.props.isCalloutForStack&&this._multiValueCallout(n),!this.props.customizedCallout&&!this.props.isCalloutForStack&&s.createElement(fd,i({XValue:n.XValue,Legend:n.legend,YValue:n.YValue,color:n.color,culture:this.props.culture},a))))},t.prototype._yValueHoverSubCountsExists=function(e){return!!e&&e.some((function(e){return e.yAxisCalloutData&&"string"!=typeof e.yAxisCalloutData}))},t.prototype._getCalloutContent=function(e,t,n,r){var i=r?{}:{marginRight:"16px"},o=void 0!==e.index&&-1!==e.index,a=Fp(this.props.styles,{theme:this.props.theme,width:this.state._width,height:this.state._height,className:this.props.className,isRtl:this._isRtl,lineColor:e.color,toDrawShape:o}),l=this.props.culture,u=cd(e.y,l);if(e.yAxisCalloutData&&"string"!=typeof e.yAxisCalloutData){var c=e.yAxisCalloutData;return s.createElement("div",{style:i},s.createElement("div",{className:"ms-fontWeight-semibold",style:{fontSize:"12pt"}},e.legend," (",u,")"),Object.keys(c).map((function(e){return s.createElement("div",{key:e,className:a.calloutBlockContainer},s.createElement("div",{className:a.calloutlegendText}," ",cd(e,l)),s.createElement("div",{className:a.calloutContentY},cd(c[e],l)))})))}return s.createElement("div",{style:n?i:{}},n&&s.createElement("div",{className:"ms-fontWeight-semibold",style:{fontSize:"12pt"}},e.legend," (",u,")"),s.createElement("div",{id:t+"_"+e.y,className:a.calloutBlockContainer},o&&s.createElement(Vh,{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},cd(e.yAxisCalloutData?e.yAxisCalloutData:e.y||e.data,l)))))},t.prototype._fitParentContainer=function(){var e=this,t=this.state,n=t.containerWidth,r=t.containerHeight;this._reqID=requestAnimationFrame((function(){var t;if(e.props.hideLegend)t=0;else{var i=e.legendContainer&&getComputedStyle(e.legendContainer);t=(e.legendContainer&&e.legendContainer.getBoundingClientRect().height||e.minLegendContainerHeight)+parseFloat(i&&i.marginTop||"0")+parseFloat(i&&i.marginBottom||"0")}if(e.props.parentRef||e.chartContainer){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),Op=function(){var e,t=d();return!!(null===(e=null==t?void 0:t.navigator)||void 0===e?void 0:e.userAgent)&&t.navigator.userAgent.indexOf("rv:11.0")>-1}(),Vp=C(Ip,(function(e){var t,n,r,o,a,s,l,u,c=e.className,d=e.theme,h=e.isRtl,p=e.shouldHighlight,f=e.href,g=e.lineColor,m=void 0===g?"transparent":g,v=e.toDrawShape,_=d.fonts;return{root:[d.fonts.medium,{display:"flex",width:"100%",height:"100%",flexDirection:"column",overflow:"hidden"},c],xAxis:{selectors:{text:[d.fonts.tiny,{fill:d.semanticColors.bodyText,fontWeight:"600",selectors:(t={},t[Vn]={fill:"rgb(179, 179, 179)"},t)}],line:{opacity:.2,stroke:d.semanticColors.bodyText,width:"1px",selectors:(n={},n[Vn]={opacity:.1,stroke:"rgb(179, 179, 179)"},n)},path:{display:"none"}}},yAxis:{selectors:{text:[d.fonts.tiny,{fill:d.semanticColors.bodyText,fontWeight:"600",selectors:(r={},r[Vn]={fill:"rgb(179, 179, 179)"},r)}],path:{display:"none"},line:{opacity:.2,stroke:d.semanticColors.bodyText,selectors:(o={},o[Vn]={opacity:.1,stroke:"rgb(179, 179, 179)"},o)},g:[h&&!Op&&{textAnchor:"end"}]}},opacityChangeOnHover:{opacity:p?"":"0.1",cursor:f?"pointer":"default"},legendContainer:[{marginTop:"8px",marginLeft:"20px"}],calloutContentRoot:[{display:"grid",overflow:"hidden",padding:"11px 16px 10px 16px",backgroundColor:d.semanticColors.bodyBackground,backgroundBlendMode:"normal, luminosity"}],calloutDateTimeContainer:{display:"flex",flexDirection:"row",justifyContent:"space-between"},calloutContentX:[i(i({},_.small),{lineHeight:"16px",opacity:"0.8",color:d.semanticColors.bodySubtext})],calloutBlockContainer:[d.fonts.mediumPlus,{marginTop:"13px",color:d.semanticColors.bodyText},!v&&{selectors:(a={},a[On]={forcedColorAdjust:"none"},a),borderLeft:"4px solid "+m,paddingLeft:"8px"},v&&{display:"flex"}],shapeStyles:{marginRight:"8px"},calloutlegendText:i(i({},_.small),{lineHeight:"16px",selectors:(s={},s[Vn]={color:"rgb(255, 255, 255)"},s),color:d.semanticColors.bodySubtext}),calloutContentY:[i(i({},_.mediumPlus),{fontWeight:"bold",lineHeight:"22px",selectors:(l={},l[Vn]={color:"rgb(255, 255, 255)"},l)})],descriptionMessage:[d.fonts.small,{selectors:(u={},u[Vn]={color:"rgb(255, 255, 255)"},u),color:d.semanticColors.bodyText,marginTop:"10px",paddingTop:"10px",borderTop:"1px solid "+d.semanticColors.menuDivider}]}})),Hp=Xn((function(e){return Xn((function(t){var n=Xn((function(e){return function(n){return t(n,e)}}));return function(r,i){return e(r,i?n(i):t)}}))}));function Rp(e,t){return Hp(e)(t)}var Bp=function(e){if(void 0===e)return 0;var t=0;return"scrollTop"in e?t=e.scrollTop:"scrollY"in e&&(t=e.scrollY),Math.ceil(t)},Wp=function(e,t){"scrollTop"in e?e.scrollTop=t:"scrollY"in e&&e.scrollTo(e.scrollX,t)},zp={top:-1,bottom:-1,left:-1,right:-1,width:0,height:0},Up=function(e){return e.getBoundingClientRect()},Yp=Up,qp=Up,jp=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||!t.hasMounted&&n.props.renderEarly&&u()?(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,a=n.props,l=a.onRenderCell,u=a.onRenderCellConditional,c=a.role,d=e.page,h=d.items,p=void 0===h?[]:h,f=d.startIndex,g=o(e,["page"]),m=void 0===c?"listitem":"presentation",v=[],_=0;_<p.length;_++){var y=f+_,x=p[_],b=n.props.getKey?n.props.getKey(x,y):x&&x.key;null==b&&(b=y);var C=null!=u?u:l,k=null!==(r=null==C?void 0:C(x,y,n.props.ignoreScrollingState?void 0:n.state.isScrolling))&&void 0!==r?r:null;u&&!k||v.push(s.createElement("div",{role:m,className:"ms-List-cell",key:b,"data-list-index":y,"data-automationid":"ListCell"},k))}return s.createElement("div",i({},g),v)},vd(n),n.state={pages:[],isScrolling:!1,getDerivedStateFromProps:n._getDerivedStateFromProps,hasMounted:!1},n._async=new Dt(n),n._events=new Qd(n),n._estimatedPageHeight=0,n._totalEstimates=0,n._requiredWindowsAhead=0,n._requiredWindowsBehind=0,n._measureVersion=0,n._onAsyncScroll=n._async.debounce(n._onAsyncScroll,100,{leading:!1,maxWait:500}),n._onAsyncIdle=n._async.debounce(n._onAsyncIdle,200,{leading:!1}),n._onAsyncResize=n._async.debounce(n._onAsyncResize,16,{leading:!1}),n._onScrollingDone=n._async.debounce(n._onScrollingDone,500,{leading:!1}),n._cachedPageHeights={},n._estimatedPageHeight=0,n._focusedIndex=-1,n._pageCache={},n}return r(t,e),t.getDerivedStateFromProps=function(e,t){return t.getDerivedStateFromProps(e,t)},Object.defineProperty(t.prototype,"pageRefs",{get:function(){return this._pageRefs},enumerable:!1,configurable:!0}),t.prototype.scrollToIndex=function(e,t,n){void 0===n&&(n=0);for(var r=this.props.startIndex,i=r+this._getRenderCount(),o=this._allowedRect,a=0,s=1,l=r;l<i;l+=s){var u=this._getPageSpecification(this.props,l,o),c=u.height;if(s=u.itemCount,l<=e&&l+s>e){if(t&&this._scrollElement){for(var d=qp(this._scrollElement),h=Bp(this._scrollElement),p={top:h,bottom:h+d.height},f=e-l,g=0;g<f;++g)a+=t(l+g);var m=a+t(e);switch(n){case 1:return void Wp(this._scrollElement,a);case 2:return void Wp(this._scrollElement,m-d.height);case 3:return void Wp(this._scrollElement,(a+m-d.height)/2)}if(a>=p.top&&m<=p.bottom)return;a<p.top||m>p.bottom&&(a=m-d.height)}return void(this._scrollElement&&Wp(this._scrollElement,a))}a+=c}},t.prototype.getStartItemIndexInView=function(e){for(var t=0,n=this.state.pages||[];t<n.length;t++){var r=n[t];if(!r.isSpacer&&(this._scrollTop||0)>=r.top&&(this._scrollTop||0)<=r.top+r.height){if(!e){var i=Math.floor(r.height/r.itemCount);return r.startIndex+Math.floor((this._scrollTop-r.top)/i)}for(var o=0,a=r.startIndex;a<r.startIndex+r.itemCount;a++){if(i=e(a),r.top+o<=this._scrollTop&&this._scrollTop<r.top+o+i)return a;o+=i}}}return 0},t.prototype.componentDidMount=function(){this._scrollElement=Qe(this._root.current),this._scrollTop=0,this.setState(i(i({},this._updatePages(this.props,this.state)),{hasMounted:!0})),this._measureVersion++,this._events.on(window,"resize",this._onAsyncResize),this._root.current&&this._events.on(this._root.current,"focus",this._onFocus,!0),this._scrollElement&&(this._events.on(this._scrollElement,"scroll",this._onScroll),this._events.on(this._scrollElement,"scroll",this._onAsyncScroll))},t.prototype.componentDidUpdate=function(e,t){var n=this.props,r=this.state;this.state.pagesVersion!==t.pagesVersion&&(n.getPageHeight?this._onAsyncIdle():this._updatePageMeasurements(r.pages)?(this._materializedRect=null,this._hasCompletedFirstRender?this._onAsyncScroll():(this._hasCompletedFirstRender=!0,this.setState(this._updatePages(n,r)))):this._onAsyncIdle(),n.onPagesUpdated&&n.onPagesUpdated(r.pages))},t.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose(),delete this._scrollElement},t.prototype.shouldComponentUpdate=function(e,t){var n=this.state.pages,r=t.pages,i=!1;if(!t.isScrolling&&this.state.isScrolling)return!0;if(e.version!==this.props.version)return!0;if(e.className!==this.props.className)return!0;if(e.items===this.props.items&&n.length===r.length)for(var o=0;o<n.length;o++){var a=n[o],s=r[o];if(a.key!==s.key||a.itemCount!==s.itemCount){i=!0;break}}else i=!0;return i},t.prototype.forceUpdate=function(){this._invalidatePageCache(),this._updateRenderRects(this.props,this.state,!0),this.setState(this._updatePages(this.props,this.state)),this._measureVersion++,e.prototype.forceUpdate.call(this)},t.prototype.getTotalListHeight=function(){return this._surfaceRect.height},t.prototype.render=function(){for(var e=this.props,t=e.className,n=e.role,r=void 0===n?"list":n,o=e.onRenderSurface,a=e.onRenderRoot,s=this.state.pages,l=void 0===s?[]:s,u=[],c=qe(this.props,Ye),d=0,h=l;d<h.length;d++){var p=h[d];u.push(this._renderPage(p))}var f=o?Rp(o,this._onRenderSurface):this._onRenderSurface;return(a?Rp(a,this._onRenderRoot):this._onRenderRoot)({rootRef:this._root,pages:l,surfaceElement:f({surfaceRef:this._surface,pages:l,pageElements:u,divProps:{role:"presentation",className:"ms-List-surface"}}),divProps:i(i({},c),{className:je("ms-List",t),role:u.length>0?r:void 0,"aria-label":u.length>0?c["aria-label"]:void 0})})},t.prototype._shouldVirtualize=function(e){void 0===e&&(e=this.props);var t=e.onShouldVirtualize;return!t||t(e)},t.prototype._invalidatePageCache=function(){this._pageCache={}},t.prototype._renderPage=function(e){var t,n=this,r=this.props.usePageCache;if(r&&(t=this._pageCache[e.key])&&t.pageElement)return t.pageElement;var i=this._getPageStyle(e),o=this.props.onRenderPage,a=(void 0===o?this._onRenderPage:o)({page:e,className:"ms-List-page",key:e.key,ref:function(t){n._pageRefs[e.key]=t},style:i,role:"presentation"},this._onRenderPage);return r&&0===e.startIndex&&(this._pageCache[e.key]={page:e,pageElement:a}),a},t.prototype._getPageStyle=function(e){var t=this.props.getPageStyle;return i(i({},t?t(e):{}),e.items?{}:{height:e.height})},t.prototype._onFocus=function(e){for(var t=e.target;t!==this._surface.current;){var n=t.getAttribute("data-list-index");if(n){this._focusedIndex=Number(n);break}t=xe(t)}},t.prototype._onScroll=function(){this.state.isScrolling||this.props.ignoreScrollingState||this.setState({isScrolling:!0}),this._resetRequiredWindows(),this._onScrollingDone()},t.prototype._resetRequiredWindows=function(){this._requiredWindowsAhead=0,this._requiredWindowsBehind=0},t.prototype._onAsyncScroll=function(){var e,t;this._updateRenderRects(this.props,this.state),this._materializedRect&&(e=this._requiredRect,t=this._materializedRect,e.top>=t.top&&e.left>=t.left&&e.bottom<=t.bottom&&e.right<=t.right)||this.setState(this._updatePages(this.props,this.state))},t.prototype._onAsyncIdle=function(){var e=this.props,t=e.renderedWindowsAhead,n=e.renderedWindowsBehind,r=this._requiredWindowsAhead,i=this._requiredWindowsBehind,o=Math.min(t,r+1),a=Math.min(n,i+1);o===r&&a===i||(this._requiredWindowsAhead=o,this._requiredWindowsBehind=a,this._updateRenderRects(this.props,this.state),this.setState(this._updatePages(this.props,this.state))),(t>o||n>a)&&this._onAsyncIdle()},t.prototype._onScrollingDone=function(){this.props.ignoreScrollingState||this.setState({isScrolling:!1})},t.prototype._onAsyncResize=function(){this.forceUpdate()},t.prototype._updatePages=function(e,t){this._requiredRect||this._updateRenderRects(e,t);var n=this._buildPages(e,t),r=t.pages;return this._notifyPageChanges(r,n.pages,this.props),i(i(i({},t),n),{pagesVersion:{}})},t.prototype._notifyPageChanges=function(e,t,n){var r=n.onPageAdded,i=n.onPageRemoved;if(r||i){for(var o={},a=0,s=e;a<s.length;a++)(c=s[a]).items&&(o[c.startIndex]=c);for(var l=0,u=t;l<u.length;l++){var c;(c=u[l]).items&&(o[c.startIndex]?delete o[c.startIndex]:this._onPageAdded(c))}for(var d in o)o.hasOwnProperty(d)&&this._onPageRemoved(o[d])}},t.prototype._updatePageMeasurements=function(e){var t=!1;if(!this._shouldVirtualize())return t;for(var n=0;n<e.length;n++){var r=e[n];r.items&&(t=this._measurePage(r)||t)}return t},t.prototype._measurePage=function(e){var t=!1,n=this._pageRefs[e.key],r=this._cachedPageHeights[e.startIndex];if(n&&this._shouldVirtualize()&&(!r||r.measureVersion!==this._measureVersion)){var i={width:n.clientWidth,height:n.clientHeight};(i.height||i.width)&&(t=e.height!==i.height,e.height=i.height,this._cachedPageHeights[e.startIndex]={height:i.height,measureVersion:this._measureVersion},this._estimatedPageHeight=Math.round((this._estimatedPageHeight*this._totalEstimates+i.height)/(this._totalEstimates+1)),this._totalEstimates++)}return t},t.prototype._onPageAdded=function(e){var t=this.props.onPageAdded;t&&t(e)},t.prototype._onPageRemoved=function(e){var t=this.props.onPageRemoved;t&&t(e)},t.prototype._buildPages=function(e,t){var n=e.renderCount,r=e.items,o=e.startIndex,a=e.getPageHeight;n=this._getRenderCount(e);for(var s=i({},zp),l=[],u=1,c=0,d=null,h=this._focusedIndex,p=o+n,f=this._shouldVirtualize(e),g=0===this._estimatedPageHeight&&!a,m=this._allowedRect,v=function(n){var i=_._getPageSpecification(e,n,m),a=i.height,v=i.data,y=i.key;u=i.itemCount;var x,b,C=c+a-1,k=ve(t.pages,(function(e){return!!e.items&&e.startIndex===n}))>-1,E=!m||C>=m.top&&c<=m.bottom,S=!_._requiredRect||C>=_._requiredRect.top&&c<=_._requiredRect.bottom;if(!g&&(S||E&&k)||!f||h>=n&&h<n+u||n===o){d&&(l.push(d),d=null);var L=Math.min(u,p-n),A=_._createPage(y,r.slice(n,n+L),n,void 0,void 0,v);A.top=c,A.height=a,_._visibleRect&&_._visibleRect.bottom&&(A.isVisible=C>=_._visibleRect.top&&c<=_._visibleRect.bottom),l.push(A),S&&_._allowedRect&&(x=s,b={top:c,bottom:C,height:a,left:m.left,right:m.right,width:m.width},x.top=b.top<x.top||-1===x.top?b.top:x.top,x.left=b.left<x.left||-1===x.left?b.left:x.left,x.bottom=b.bottom>x.bottom||-1===x.bottom?b.bottom:x.bottom,x.right=b.right>x.right||-1===x.right?b.right:x.right,x.width=x.right-x.left+1,x.height=x.bottom-x.top+1)}else d||(d=_._createPage("spacer-"+n,void 0,n,0,void 0,v,!0)),d.height=(d.height||0)+(C-c)+1,d.itemCount+=u;if(c+=C-c+1,g&&f)return"break"},_=this,y=o;y<p&&"break"!==v(y);y+=u);return d&&(d.key="spacer-end",l.push(d)),this._materializedRect=s,i(i({},t),{pages:l,measureVersion:this._measureVersion})},t.prototype._getPageSpecification=function(e,t,n){var r=e.getPageSpecification;if(r){var i=r(t,n),o=i.itemCount,a=void 0===o?this._getItemCountForPage(t,n):o,s=i.height;return{itemCount:a,height:void 0===s?this._getPageHeight(t,n,a):s,data:i.data,key:i.key}}return{itemCount:a=this._getItemCountForPage(t,n),height:this._getPageHeight(t,n,a)}},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({},zp),l=function(e){if(void 0===e)return 0;var t=0;return"scrollHeight"in e?t=e.scrollHeight:"document"in e&&(t=e.document.documentElement.scrollHeight),t}(this._scrollElement),u=Bp(this._scrollElement);this._surface.current&&(n||!a||!this._surfaceRect||!l||l!==this._scrollHeight||Math.abs(this._scrollTop-u)>this._estimatedPageHeight/3)&&(s=this._surfaceRect=Yp(this._surface.current),this._scrollTop=u),!n&&l&&l===this._scrollHeight||this._measureVersion++,this._scrollHeight=l||0;var c=Math.max(0,-s.top),h=d(this._root.current),p={top:c,left:s.left,bottom:c+h.innerHeight,right:s.right,width:s.width,height:h.innerHeight};this._requiredRect=Xp(p,this._requiredWindowsBehind,this._requiredWindowsAhead),this._allowedRect=Xp(p,o,r),this._visibleRect=p}},t.defaultProps={startIndex:0,onRenderCell:function(e,t,n){return s.createElement(s.Fragment,null,e&&e.name||"")},onRenderCellConditional:void 0,renderedWindowsAhead:2,renderedWindowsBehind:2},t}(s.Component);function Xp(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 Kp,Gp=function(e){var t=s.useRef(null);s.useEffect((function(){if(t.current){var n=Ic(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))},Zp=function(e){var t,n=s.useRef(null),r=s.useState(!1),i=r[0],o=r[1],a=null;if(i){var l=e.labelDef.aggregatedIdx.map((function(t){return e.lineDefs[t].onRenderCard})).filter((function(e){return!!e}));l.length>0&&(a=s.createElement(Ci,{target:n.current,onDismiss:function(){return o(!1)},setInitialFocus:!0,role:"dialog"},s.createElement(Vd,{isCircularNavigation:!0,direction:sd.vertical},s.createElement(jp,{items:l,onRenderCell:function(e){return s.createElement("div",{"data-is-focusable":!0},e&&e())}}))))}var u=window.matchMedia("(prefers-color-scheme: dark)").matches?"rgb(255,255,255)":e.textColor;return t=1===e.labelDef.aggregatedIdx.length?e.lineDefs[e.labelDef.aggregatedIdx[0]].event:e.mergedLabel(e.labelDef.aggregatedIdx.length),s.createElement(s.Fragment,null,s.createElement("g",{ref:n,onClick:function(){return o(!0)},"data-is-focusable":!1,style:{cursor:"pointer"}},s.createElement(Gp,{text:t,x:e.labelDef.x,y:e.textY,width:e.textWidth,lineHeight:e.textLineHeight,textAnchor:e.labelDef.anchor,fontSize:e.textFontSize,fill:u})),a)},$p=function(e){var t=e.labelWidth?e.labelWidth:105,n=e.chartYTop-20,r=n+7,o=e.scale.range(),a=e.events.map((function(t){return i(i({},t),{x:e.scale(t.date)})}));a.sort((function(e,t){return+e.date-+t.date}));var l=window.matchMedia("(prefers-color-scheme: dark)").matches?"rgb(255,255,255)":e.strokeColor,u=function(e,t){for(var n=[],r=[],i=0,o=e;i<o.length;i++){var a=o[i],s=t(a);-1===n.indexOf(s)&&(r.push(a),n.push(s))}return r}(a,(function(e){return e.date.toString()})).map((function(t,n){return s.createElement("line",{key:n,x1:t.x,x2:t.x,y1:r,y2:e.chartYBottom,stroke:l,strokeDasharray:"8"})})),c=function(e,t,n,r){var i=function(r,i){if(i===e.length)return[];var a=e[i].x,s=a-t;return a<r?[]:i===e.length-1?r<s?[{x:a,anchor:"end",aggregatedIdx:[i]}]:a+t<n?[{x:a,anchor:"start",aggregatedIdx:[i]}]:[]:o(i,r<s?"end":"start")},o=function(r,o){var a="end"===o?e[r].x:e[r].x+t,s=ve(e,(function(e){return e.x>a&&(e.x-t>=a||e.x+t<n)}),r+1);-1===s&&(s=e.length);for(var l=[],u=r;u<s;u++)l.push(u);var c=i(a,s);return c.unshift({x:e[r].x,anchor:o,aggregatedIdx:l}),c};return i(r,0)}(a,t+5,o[1],o[0]).map((function(r,o){return s.createElement(Zp,i({key:o},{lineDefs:a,labelDef:r,textY:n,textWidth:t,textLineHeight:18,textFontSize:"10pt",textColor:e.labelColor,mergedLabel:e.mergedLabel}))}));return s.createElement(s.Fragment,null,u,c)},Qp={color1:"qualitative.1",color2:"qualitative.2",color3:"qualitative.3",color4:"qualitative.4",color5:"qualitative.5",color6:"qualitative.6",color7:"qualitative.7",color8:"qualitative.8",color9:"qualitative.9",color10:"qualitative.10",color11:"qualitative.11",color12:"qualitative.12",color13:"qualitative.13",color14:"qualitative.14",color15:"qualitative.15",color16:"qualitative.16",color17:"qualitative.17",color18:"qualitative.18",color19:"qualitative.19",color20:"qualitative.20",color21:"qualitative.21",color22:"qualitative.22",color23:"qualitative.23",color24:"qualitative.24",color25:"qualitative.25",color26:"qualitative.26",color27:"qualitative.27",color28:"qualitative.28",color29:"qualitative.29",color30:"qualitative.30",color31:"qualitative.31",color32:"qualitative.32",color33:"qualitative.33",color34:"qualitative.34",color35:"qualitative.35",color36:"qualitative.36",color37:"qualitative.37",color38:"qualitative.38",color39:"qualitative.39",color40:"qualitative.40",info:"semantic.info",disabled:"semantic.disabled",highError:"semantic.highError",error:"semantic.error",warning:"semantic.warning",success:"semantic.success",highSuccess:"semantic.highSuccess"},Jp={1:["#637cef"],2:["#e3008c"],3:["#2aa0a4"],4:["#9373c0"],5:["#13a10e"],6:["#3a96dd"],7:["#ca5010"],8:["#57811b"],9:["#b146c2"],10:["#ae8c00"],11:["#3c51b4","#93a4f4"],12:["#ad006a","#ee5fb7"],13:["#026467","#4cb4b7"],14:["#674c8c","#a083c9"],15:["#0e7a0b","#27ac22"],16:["#2c72a8","#4fa1e1"],17:["#9a3d0c","#d77440"],18:["#405f14","#73aa24"],19:["#863593","#c36bd1"],20:["#6d5700","#d0b232"],21:["#4f6bed"],22:["#ea38a6"],23:["#038387"],24:["#8764b8"],25:["#11910d"],26:["#3487c7"],27:["#d06228"],28:["#689920"],29:["#ba58c9"],30:["#937700","#c19c00"],31:["#2c3c85","#c8d1fa"],32:["#7f004e","#f7adda"],33:["#02494c","#9bd9db"],34:["#4c3867","#b29ad4"],35:["#0b5a08","#a7e3a5"],36:["#20547c","#83bdeb"],37:["#712d09","#df8e64"],38:["#23330b","#a4cc6c"],39:["#63276d","#cf87da"],40:["#3a2f00","#dac157"]},ef={qualitative:Jp,semantic:{info:["#015cda"],disabled:["#dbdbdb","#4d4d4d"],highError:["#6e0811","#cc2635"],error:["#c50f1f","#dc626d"],warning:["#f7630c","#f87528"],success:["#107c10","#54b054"],highSuccess:["#094509","#218c21"]}},tf=Object.values(Jp),nf=Object.values(Qp),rf=function(e,t){if(0===e.length)return"";var n=Number(t);return n<e.length?e[n]:e[0]},of=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=!1);var r=tf[(e+t)%tf.length];return rf(r,n)},af=function(e,t){if(void 0===t&&(t=!1),nf.indexOf(e)>=0){var n=e.split("."),r=n[0],i=n[1],o=ef[r][i];return rf(o,t)}return e},sf=ue();!function(e){e[e.hoverSize=11]="hoverSize",e[e.invisibleSize=1]="invisibleSize"}(Kp||(Kp={}));var lf=Oi((function(e){return e.x})).left,uf=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){var o,a,s;return s=void 0===e.color?of(t,0,null===(o=n.props.theme)||void 0===o?void 0:o.isInverted):af(e.color,null===(a=n.props.theme)||void 0===a?void 0:a.isInverted),i(i({},e),{index:r?t:-1,color:s})})):[]},n._getCustomizedCallout=function(){return n.props.onRenderCalloutPerStack?n.props.onRenderCalloutPerStack(n.state.stackCalloutProps):n.props.onRenderCalloutPerDataPoint?n.props.onRenderCalloutPerDataPoint(n.state.dataPointCalloutProps):null},n._getMargins=function(e){n.margins=e},n._initializeLineChartData=function(e,t,r,i,o){n._xAxisScale=e,n._yAxisScale=t,n._renderedColorFillBars=n.props.colorFillBars?n._createColorFillBars(r):[],n.lines=n._createLines(o,r)},n._handleSingleLegendSelectionAction=function(e){n.state.selectedLegend===e.legend?(n.setState({selectedLegend:""}),n._handleLegendClick(e,null)):(n.setState({selectedLegend:e.legend}),n._handleLegendClick(e,e.legend))},n._onHoverCardHide=function(){n.setState({selectedLegendPoints:[],selectedColorBarLegend:[],isSelectedLegend:!1})},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},n._getBoxWidthOfShape=function(e,t,r){var i=n.props,o=i.allowMultipleShapesForPoints,a=void 0!==o&&o,s=i.strokeWidth,l=void 0===s?4:s,u=n.state.activePoint;return a?u===e?Kp.hoverSize:1===t||r?2.5*l:Kp.invisibleSize:u===e?Kp.hoverSize:Kp.invisibleSize},n._getPath=function(e,t,r,i,o,a){var s=n.props.allowMultipleShapesForPoints,l=void 0!==s&&s,u=n._getBoxWidthOfShape(r,i,o),c=l?a%Object.keys(ld).length:0,d=ld[c].widthRatio;return function(e,t,n,r){return["M"+(e-n/2)+" "+t+"\n A"+n/2+" "+n/2+" 0 1 0 "+(e+n/2)+" "+t+"\n M"+(e-n/2)+" "+t+"\n A "+n/2+" "+n/2+" 0 1 1 "+(e+n/2)+" "+t+"\n ","M"+(e-n/2)+" "+(t-n/2)+"\n L"+(e+n/2)+" "+(t-n/2)+"\n L"+(e+n/2)+" "+(t+n/2)+"\n L"+(e-n/2)+" "+(t+n/2)+"\n Z","M"+(e-n/2)+" "+(t-.2886*n)+"\n H "+(e+n/2)+"\n L"+e+" "+(t+.5774*n)+" Z","M"+e+" "+(t-n/2)+"\n L"+(e+n/2)+" "+t+"\n L"+e+" "+(t+n/2)+"\n L"+(e-n/2)+" "+t+"\n Z","M"+e+" "+(t-.5774*n)+"\n L"+(e+n/2)+" "+(t+.2886*n)+"\n L"+(e-n/2)+" "+(t+.2886*n)+" Z","M"+(e-.5*n)+" "+(t-.866*n)+"\n L"+(e+.5*n)+" "+(t-.866*n)+"\n L"+(e+n)+" "+t+"\n L"+(e+.5*n)+" "+(t+.866*n)+"\n L"+(e-.5*n)+" "+(t+.866*n)+"\n L"+(e-n)+" "+t+"\n Z","M"+e+" "+(t-.851*n)+"\n L"+(e+.6884*n)+" "+(t-.2633*n)+"\n L"+(e+.5001*n)+" "+(t+.6884*n)+"\n L"+(e-.5001*n)+" "+(t+.6884*n)+"\n L"+(e-.6884*n)+" "+(t-.2633*n)+"\n Z","M"+(e-.5001*n)+" "+(t-1.207*n)+"\n L"+(e+.5001*n)+" "+(t-1.207*n)+"\n L"+(e+1.207*n)+" "+(t-.5001*n)+"\n L"+(e+1.207*n)+" "+(t+.5001*n)+"\n L"+(e+.5001*n)+" "+(t+1.207*n)+"\n L"+(e-.5001*n)+" "+(t+1.207*n)+"\n L"+(e-1.207*n)+" "+(t+.5001*n)+"\n L"+(e-1.207*n)+" "+(t-.5001*n)+"\n Z"][r]}(e,t,u=d>1?u/d:u,c)},n._getPointFill=function(e,t,r,i){var o=n.state.activePoint,a=n.props,s=a.theme;return a.allowMultipleShapesForPoints,o===t?s.palette.white:e},n._createColorFillBars=function(e){var t,r=[];n.state.isSelectedLegend?n._colorFillBars=n.state.selectedColorBarLegend:n._colorFillBars=n.props.colorFillBars;for(var i=rd(n._points,Wc.LineChart),o=0;o<n._colorFillBars.length;o++){var a=n._colorFillBars[o],l=ge(a.legend.replace(/\W/g,"")),u=af(a.color,null===(t=n.props.theme)||void 0===t?void 0:t.isInverted);a.applyPattern&&r.push(n._getStripePattern(u,o));for(var c=0;c<a.data.length;c++){var d=a.data[c].startX,h=a.data[c].endX,p=n._legendHighlighted(a.legend)||n._noLegendHighlighted()||n.state.isSelectedLegend?n._getColorFillBarOpacity(a):.1;r.push(s.createElement("rect",{fill:a.applyPattern?"url(#"+n._colorFillBarPatternId+"_"+o+")":u,fillOpacity:p,x:n._xAxisScale(d),y:n._yAxisScale(i.endValue)-3,width:Math.abs(n._xAxisScale(h)-n._xAxisScale(d)),height:n._yAxisScale(n.props.yMinValue||0)-n._yAxisScale(i.endValue)+3,key:""+l+c}))}}return r},n._getStripePattern=function(e,t){return s.createElement("pattern",{id:n._colorFillBarPatternId+"_"+t,width:16,height:16,key:n._colorFillBarPatternId+"_"+t,patternUnits:"userSpaceOnUse"},s.createElement("path",{d:"M-4,4 l8,-8 M0,16 l16,-16 M12,20 l8,-8",stroke:e,strokeWidth:1.25}))},n._checkInGap=function(e,t,n){for(var r=n,i=!1;r<t.length&&e>t[r].endIndex;)r++;return r<t.length&&e>t[r].startIndex&&e<=t[r].endIndex&&(i=!0),{isInGap:i,gapIndex:r}},n._onMouseOverLargeDataset=function(e,t,r){r.persist();var i=n.props.data.lineChartData,o=n._xAxisScale.invert(Hc(document.getElementById(n._rectId),r)[0]),a=lf(i[e].data,o),s=i[e].data[a-1],l=i[e].data[a],u=null,c=null;if(void 0===s&&void 0!==l)u=l.x,c=a;else if(void 0!==s&&void 0===l)u=s.x,c=a-1;else{var d=void 0,h=void 0,p=void 0;switch(ad(i[e].data[0].x,!0)){case zc.DateAxis:d=new Date(o).getTime(),h=s.x.getTime(),p=l.x.getTime(),u=Math.abs(d-h)>Math.abs(d-p)?l.x:s.x,c=Math.abs(d-h)>Math.abs(d-p)?a:a-1;break;case zc.NumericAxis:d=o,h=s.x,p=l.x,u=Math.abs(d-h)>Math.abs(d-p)?l.x:s.x,c=Math.abs(d-h)>Math.abs(d-p)?a:a-1}}var f=i[e].data[c],g=f.xAxisCalloutData,m=f.xAxisCalloutAccessibilityData,v=u instanceof Date?u.toLocaleString():u,_=u instanceof Date?u.getTime():u,y=_e(n._calloutPoints,(function(e){return e.x===_})),x=i[e].data[c],b=null===n.state.nearestCircleToHighlight||null!==n.state.nearestCircleToHighlight&&null!==x&&(n.state.nearestCircleToHighlight.x!==x.x||n.state.nearestCircleToHighlight.y!==x.y);y&&b&&(n._uniqueCallOutID="#"+n._staticHighlightCircle+"_"+e,Ic("#"+n._staticHighlightCircle+"_"+e).attr("cx",""+n._xAxisScale(x.x)).attr("cy",""+n._yAxisScale(x.y)).attr("visibility","visibility"),Ic("#"+n._verticalLine).attr("transform",(function(){return"translate("+n._xAxisScale(x.x)+", "+n._yAxisScale(x.y)+")"})).attr("visibility","visibility").attr("y2",""+(t-n._yAxisScale(x.y))),n.setState({nearestCircleToHighlight:x,isCalloutVisible:!0,refSelected:"#"+n._staticHighlightCircle+"_"+e,stackCalloutProps:y,YValueHover:y.values,dataPointCalloutProps:y,hoverXValue:g||v,xAxisCalloutAccessibilityData:m,activePoint:"",activeLine:e})),y||n.setState({isCalloutVisible:!1,nearestCircleToHighlight:x,activePoint:"",activeLine:e})},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=_e(n._calloutPoints,(function(e){return e.x===s}));if(l){var u=n;Ic("#"+i).attr("aria-labelledby","toolTip"+n._uniqueCallOutID),Ic("#"+n._verticalLine).attr("transform",(function(){return"translate("+u._xAxisScale(t)+", 0)"})).attr("visibility","visibility"),n._refArray.forEach((function(t){t.index===e&&n.setState({isCalloutVisible:!0,refSelected:t.refElement,hoverXValue:r||""+a,YValueHover:l.values,stackCalloutProps:l,dataPointCalloutProps:l,activePoint:i,xAxisCalloutAccessibilityData:o})}))}else n.setState({activePoint:i})},n._handleHover=function(e,t,r,i,o,a,s){s.persist();var l=e instanceof Date?e.toLocaleDateString():e,u=e instanceof Date?e.getTime():e,c=n,d=_e(n._calloutPoints,(function(e){return e.x===u}));d?(Ic("#"+n._verticalLine).attr("transform",(function(){return"translate("+c._xAxisScale(e)+", "+c._yAxisScale(t)+")"})).attr("visibility","visibility").attr("y2",""+(r-c._yAxisScale(t))),n._uniqueCallOutID!==o&&(n._uniqueCallOutID=o,n.setState({isCalloutVisible:!0,refSelected:"#"+o,hoverXValue:i||""+l,YValueHover:d.values,stackCalloutProps:d,dataPointCalloutProps:d,activePoint:o,xAxisCalloutAccessibilityData:a,nearestCircleToHighlight:null,activeLine:null}))):n.setState({activePoint:o,nearestCircleToHighlight:null,activeLine:null})},n._onLineClick=function(e){e&&e()},n._onDataPointClick=function(e){e&&e()},n._handleMouseOut=function(){Ic("#"+n._verticalLine).attr("visibility","hidden")},n._handleChartMouseLeave=function(){n._uniqueCallOutID=null,n.setState({isCalloutVisible:!1,activePoint:"",activeLine:null})},n._handleLegendClick=function(e,t){e.onLegendClick&&e.onLegendClick(t)},n._handleMultipleLineLegendSelectionAction=function(e){var t,r=n.state.selectedLegendPoints.reduce((function(t,n,r){return t>-1||n.legend!==e.legend?t:r}),-1);t=-1===r?a(a([],n.state.selectedLegendPoints),[e]):n.state.selectedLegendPoints.slice(0,r).concat(n.state.selectedLegendPoints.slice(r+1)),n.props.data&&t.length===n.props.data.lineChartData.length&&(n.props.colorFillBars&&n.props.colorFillBars.length===n.state.selectedColorBarLegend.length||!n.props.colorFillBars)?n._clearMultipleLegendSelections():t.length||n.state.selectedColorBarLegend.length?n.setState({selectedLegendPoints:t,isSelectedLegend:!0}):n._clearMultipleLegendSelections();var i=t.map((function(e){return e.legend}));n._handleLegendClick(e,i)},n._handleMultipleColorFillBarLegendSelectionAction=function(e){var t,r=n.state.selectedColorBarLegend.reduce((function(t,n,r){return t>-1||n.legend!==e.legend?t:r}),-1);(t=-1===r?a(a([],n.state.selectedColorBarLegend),[e]):n.state.selectedColorBarLegend.slice(0,r).concat(n.state.selectedColorBarLegend.slice(r+1))).length===(n.props.colorFillBars&&n.props.colorFillBars.length)&&(n.props.data&&n.props.data.lineChartData.length===n.state.selectedLegendPoints.length||!n.props.data)?n._clearMultipleLegendSelections():t.length||n.state.selectedLegendPoints.length?n.setState({selectedColorBarLegend:t,isSelectedLegend:!0}):n._clearMultipleLegendSelections();var i=t.map((function(e){return e.legend}));n._handleLegendClick(e,i)},n._clearMultipleLegendSelections=function(){n.setState({selectedColorBarLegend:[],selectedLegendPoints:[],isSelectedLegend:!1})},n._legendHighlighted=function(e){return n.state.selectedLegend===e||""===n.state.selectedLegend&&n.state.activeLegend===e},n._noLegendHighlighted=function(){return""===n.state.selectedLegend&&""===n.state.activeLegend},n._getColorFillBarOpacity=function(e){return e.applyPattern?1:.4},n.state={hoverXValue:"",activeLegend:"",YValueHover:[],refSelected:"",selectedLegend:"",isCalloutVisible:!1,selectedLegendPoints:[],selectedColorBarLegend:[],isSelectedLegend:!1,activePoint:"",nearestCircleToHighlight:null,activeLine:null},n._refArray=[],n._points=n._injectIndexPropertyInLineChartData(n.props.data.lineChartData),n._colorFillBars=[],n._calloutPoints=Jc(n._points)||[],n._circleId=ge("circle"),n._lineId=ge("lineID"),n._borderId=ge("borderID"),n._verticalLine=ge("verticalLine"),n._colorFillBarPatternId=ge("colorFillBarPattern"),n._tooltipId=ge("LineChartTooltipId_"),n._rectId=ge("containerRectLD"),n._staticHighlightCircle=ge("staticHighlightCircle"),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=Jc(this._points)||[])},t.prototype.render=function(){var e=this,t=this.props,n=t.tickValues,r=t.tickFormat,o=t.eventAnnotationProps,a=t.legendProps,l=t.data;this._points=this._injectIndexPropertyInLineChartData(l.lineChartData);var u=td(this._points),c=this._points;a&&a.canSelectMultipleLegends&&(c=this.state.selectedLegendPoints.length>=1?this.state.selectedLegendPoints:this._points,this._calloutPoints=Jc(c));var d=this._createLegends(this._points),h=i({isCalloutVisible:this.state.isCalloutVisible,directionalHint:3,YValueHover:this.state.YValueHover,hoverXValue:this.state.hoverXValue,id:"toolTip"+this._uniqueCallOutID,target:this.state.refSelected,isBeakVisible:!1,gapSpace:15,onDismiss:this._closeCallout,preventDismissOnEvent:function(){return!0},hidden:!(!this.props.hideTooltip&&this.state.isCalloutVisible),descriptionMessage:this.props.getCalloutDescriptionMessage&&this.state.stackCalloutProps?this.props.getCalloutDescriptionMessage(this.state.stackCalloutProps):void 0,"data-is-focusable":!0,xAxisCalloutAccessibilityData:this.state.xAxisCalloutAccessibilityData},this.props.calloutProps),p={tickValues:n,tickFormat:r};return s.createElement(Vp,i({},this.props,{chartTitle:l.chartTitle,points:c,chartType:Wc.LineChart,isCalloutForStack:!0,calloutProps:h,tickParams:p,legendBars:d,getmargins:this._getMargins,getGraphData:this._initializeLineChartData,xAxisType:u?zc.DateAxis:zc.NumericAxis,customizedCallout:this._getCustomizedCallout(),onChartMouseLeave:this._handleChartMouseLeave,children:function(t){return e._xAxisScale=t.xScale,e._yAxisScale=t.yScale,s.createElement(s.Fragment,null,s.createElement("g",null,s.createElement("line",{x1:0,y1:0,x2:0,y2:t.containerHeight,stroke:"#C8C8C8",id:e._verticalLine,visibility:"hidden",strokeDasharray:"5,5"}),e.props.optimizeLargeData?s.createElement("rect",{id:e._rectId,width:t.containerWidth,height:t.containerHeight,fill:"transparent"}):s.createElement(s.Fragment,null),s.createElement("g",null,e._renderedColorFillBars,e.lines),o&&s.createElement($p,i({},o,{scale:t.xScale,chartYTop:e.margins.top+e.eventLabelHeight,chartYBottom:t.containerHeight-35}))))}}))},t.prototype._createLegends=function(e){var t=this,n=this.props,r=n.legendProps,o=n.allowMultipleShapesForPoints,l=void 0!==o&&o,u=!(!r||!r.canSelectMultipleLegends),c=e.map((function(e){var n=e.color;return i(i({title:e.legend,color:n,action:function(){u?t._handleMultipleLineLegendSelectionAction(e):t._handleSingleLegendSelectionAction(e)},onMouseOutAction:function(){t.setState({activeLegend:""})},hoverAction:function(){t._handleChartMouseLeave(),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,i=e.legend,o=af(e.color,null===(r=t.props.theme)||void 0===r?void 0:r.isInverted);return{title:i,color:o,action:function(){u?t._handleMultipleColorFillBarLegendSelectionAction(e):t._handleSingleLegendSelectionAction(e)},onMouseOutAction:function(){t.setState({activeLegend:""})},hoverAction:function(){t._handleChartMouseLeave(),t.setState({activeLegend:i})},opacity:t._getColorFillBarOpacity(e),stripePattern:e.applyPattern}})):[];return s.createElement(Bh,i({legends:a(a([],c),d),enabledWrapLines:this.props.enabledLegendsWrapLines,overflowProps:this.props.legendsOverflowProps,focusZonePropsInHoverCard:this.props.focusZonePropsForLegendsInHoverCard,overflowText:this.props.legendsOverflowText},u&&{onLegendHoverCardLeave:this._onHoverCardHide},this.props.legendProps))},t.prototype._createLines=function(e,t){var n,r,i,o,l,u,c,d,h,p,f,g,m,v,_,y,x,b,C,k,E,S,L,A,w=this,D=[];this.state.isSelectedLegend?this._points=this.state.selectedLegendPoints:this._points=this._injectIndexPropertyInLineChartData(this.props.data.lineChartData);for(var T=this._points.length-1;T>=0;T--){var M=[],P=[],N=[],F=this._points[T].legend,I=this._points[T].color,O=this.state.activePoint,V=this.props.theme,H=t-this.margins.bottom+6;if(1===this._points[T].data.length){var R=this._points[T].data[0],B=R.x,W=R.y,z=R.xAxisCalloutData,U=R.xAxisCalloutAccessibilityData,Y=this._circleId+"_"+T;N.push(s.createElement("circle",{id:Y,key:Y,r:O===Y?5.5:3.5,cx:this._xAxisScale(B),cy:this._yAxisScale(W),fill:O===Y?V.palette.white:I,onMouseOver:this._handleHover.bind(this,B,W,H,z,Y,U),onMouseMove:this._handleHover.bind(this,B,W,H,z,Y,U),onMouseOut:this._handleMouseOut,strokeWidth:O===Y?4:0,stroke:O===Y?I:""}))}var q=0,j=null!==(r=null===(n=this._points[T].gaps)||void 0===n?void 0:n.sort((function(e,t){return e.startIndex-t.startIndex})))&&void 0!==r?r:[];if(this.props.optimizeLargeData){for(var X=Np().x((function(e){return w._xAxisScale(e[0])})).y((function(e){return w._yAxisScale(e[1])})).curve(Tp),K=this._lineId+"_"+T,G=this._borderId+"_"+T,Z=(null===(i=this._points[T].lineOptions)||void 0===i?void 0:i.strokeWidth)||this.props.strokeWidth||4,$=this._legendHighlighted(F)||this._noLegendHighlighted()||this.state.isSelectedLegend,Q=[],J=0;J<this._points[T].data.length;J++)Q.push([this._points[T].data[J].x instanceof Date?this._points[T].data[J].x.getTime():this._points[T].data[J].x,this._points[T].data[J].y]);if($){var ee=(null===(o=this._points[T].lineOptions)||void 0===o?void 0:o.lineBorderWidth)?Number.parseFloat(this._points[T].lineOptions.lineBorderWidth.toString()):0;ee>0&&P.push(s.createElement("path",{id:G,key:G,d:X(Q),fill:"transparent",strokeLinecap:null!==(u=null===(l=this._points[T].lineOptions)||void 0===l?void 0:l.strokeLinecap)&&void 0!==u?u:"round",strokeWidth:Number.parseFloat(Z.toString())+ee,stroke:(null===(c=this._points[T].lineOptions)||void 0===c?void 0:c.lineBorderColor)||V.palette.white,opacity:1})),M.push(s.createElement("path",{id:K,key:K,d:X(Q),fill:"transparent","data-is-focusable":!0,stroke:I,strokeWidth:Z,strokeLinecap:null!==(h=null===(d=this._points[T].lineOptions)||void 0===d?void 0:d.strokeLinecap)&&void 0!==h?h:"round",onMouseMove:this._onMouseOverLargeDataset.bind(this,T,H),onMouseOver:this._onMouseOverLargeDataset.bind(this,T,H),onMouseOut:this._handleMouseOut,onClick:this._onLineClick.bind(this,this._points[T].onLineClick),opacity:1}))}else M.push(s.createElement("path",{id:K,key:K,d:X(Q),fill:"transparent","data-is-focusable":!0,stroke:I,strokeWidth:Z,strokeLinecap:null!==(f=null===(p=this._points[T].lineOptions)||void 0===p?void 0:p.strokeLinecap)&&void 0!==f?f:"round",opacity:.1}));var te=null!==this.state.activeLine&&this.state.activeLine===T;N.push(s.createElement("circle",{id:this._staticHighlightCircle+"_"+T,key:this._staticHighlightCircle+"_"+T,r:5.5,cx:0,cy:0,fill:V.palette.white,"data-is-focusable":!0,strokeWidth:4,stroke:I,visibility:te?"visibility":"hidden",onMouseMove:this._onMouseOverLargeDataset.bind(this,T,H),onMouseOver:this._onMouseOverLargeDataset.bind(this,T,H),onMouseOut:this._handleMouseOut}))}else for(var ne=function(e){var t=re._checkInGap(e,j,q),n=t.isInGap;q=t.gapIndex;var r=re._lineId+"_"+T+"_"+e,i=re._borderId+"_"+T+"_"+e,o=re._circleId+"_"+T+"_"+e,a=re._points[T].data[e-1],l=a.x,u=a.y,c=a.xAxisCalloutData,d=a.xAxisCalloutAccessibilityData,h=re._points[T].data[e],p=h.x,f=h.y,D=re._getPath(re._xAxisScale(l),re._yAxisScale(u),o,e,!1,re._points[T].index),R=(null===(g=re._points[T].lineOptions)||void 0===g?void 0:g.strokeWidth)||re.props.strokeWidth||4,B=re._legendHighlighted(F)||re._noLegendHighlighted()||re.state.isSelectedLegend,W=re._points[T].hideNonActiveDots&&O!==o;if(N.push(s.createElement("path",{id:o,key:o,d:D,"data-is-focusable":!0,onMouseOver:re._handleHover.bind(re,l,u,H,c,o,d),onMouseMove:re._handleHover.bind(re,l,u,H,c,o,d),onMouseOut:re._handleMouseOut,onFocus:function(){return w._handleFocus(r,l,c,o,d)},onBlur:re._handleMouseOut,onClick:re._onDataPointClick.bind(re,re._points[T].data[e-1].onDataPointClick),opacity:B&&!W?1:.01,fill:re._getPointFill(I,o,e,!1),stroke:I,strokeWidth:R})),e+1===re._points[T].data.length){var z=""+o+e+"L",U=re._points[T].hideNonActiveDots&&O!==z;D=re._getPath(re._xAxisScale(p),re._yAxisScale(f),z,e,!0,re._points[T].index);var Y=re._points[T].data[e],X=Y.xAxisCalloutData,K=Y.xAxisCalloutAccessibilityData;N.push(s.createElement("path",{id:z,key:z,d:D,"data-is-focusable":!0,onMouseOver:re._handleHover.bind(re,p,f,H,X,z,K),onMouseMove:re._handleHover.bind(re,p,f,H,X,z,K),onMouseOut:re._handleMouseOut,onFocus:function(){return w._handleFocus(r,p,X,z,K)},onBlur:re._handleMouseOut,onClick:re._onDataPointClick.bind(re,re._points[T].data[e].onDataPointClick),opacity:B&&!U?1:.01,fill:re._getPointFill(I,z,e,!0),stroke:I,strokeWidth:R}))}if(B){if(!n){var G=(null===(m=re._points[T].lineOptions)||void 0===m?void 0:m.lineBorderWidth)?Number.parseFloat(re._points[T].lineOptions.lineBorderWidth.toString()):0;G>0&&P.push(s.createElement("line",{id:i,key:i,x1:re._xAxisScale(l),y1:re._yAxisScale(u),x2:re._xAxisScale(p),y2:re._yAxisScale(f),strokeLinecap:null!==(_=null===(v=re._points[T].lineOptions)||void 0===v?void 0:v.strokeLinecap)&&void 0!==_?_:"round",strokeWidth:Number.parseFloat(R.toString())+G,stroke:(null===(y=re._points[T].lineOptions)||void 0===y?void 0:y.lineBorderColor)||V.palette.white,opacity:1})),M.push(s.createElement("line",{id:r,key:r,x1:re._xAxisScale(l),y1:re._yAxisScale(u),x2:re._xAxisScale(p),y2:re._yAxisScale(f),strokeWidth:R,ref:function(e){w._refCallback(e,r)},onMouseOver:re._handleHover.bind(re,l,u,H,c,o,d),onMouseMove:re._handleHover.bind(re,l,u,H,c,o,d),onMouseOut:re._handleMouseOut,stroke:I,strokeLinecap:null!==(b=null===(x=re._points[T].lineOptions)||void 0===x?void 0:x.strokeLinecap)&&void 0!==b?b:"round",strokeDasharray:null===(C=re._points[T].lineOptions)||void 0===C?void 0:C.strokeDasharray,strokeDashoffset:null===(k=re._points[T].lineOptions)||void 0===k?void 0:k.strokeDashoffset,opacity:1,onClick:re._onLineClick.bind(re,re._points[T].onLineClick)}))}}else n||M.push(s.createElement("line",{id:r,key:r,x1:re._xAxisScale(l),y1:re._yAxisScale(u),x2:re._xAxisScale(p),y2:re._yAxisScale(f),strokeWidth:R,stroke:I,strokeLinecap:null!==(S=null===(E=re._points[T].lineOptions)||void 0===E?void 0:E.strokeLinecap)&&void 0!==S?S:"round",strokeDasharray:null===(L=re._points[T].lineOptions)||void 0===L?void 0:L.strokeDasharray,strokeDashoffset:null===(A=re._points[T].lineOptions)||void 0===A?void 0:A.strokeDashoffset,opacity:.1}))},re=this,ie=1;ie<this._points[T].data.length;ie++)ne(ie);D.push.apply(D,a(a(a([],P),M),N))}var oe=sf(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 ae=Ic(e).call(this._xAxisScale);try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(e){}var se={tooltipCls:oe.tooltip,id:this._tooltipId,xAxis:ae};ae&&ed(se)}return D},t.prototype._refCallback=function(e,t){this._refArray.push({index:t,refElement:e})},t}(s.Component),cf=C(uf,(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"})}}));function df(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 hf(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function pf(e,t){return e[t]}function ff(e){const t=[];return t.key=e,t}function gf(e,t,n){var r=null,i=zh(!0),o=null,a=Tp,s=null;function l(l){var u,c,d,h,p,f=(l=Wh(l)).length,g=!1,m=new Array(f),v=new Array(f);for(null==o&&(s=a(p=dp())),u=0;u<=f;++u){if(!(u<f&&i(h=l[u],u,l))===g)if(g=!g)c=u,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),d=u-1;d>=c;--d)s.point(m[d],v[d]);s.lineEnd(),s.areaEnd()}g&&(m[u]=+e(h,u,l),v[u]=+t(h,u,l),s.point(r?+r(h,u,l):m[u],n?+n(h,u,l):v[u]))}if(p)return s=null,p+""||null}function u(){return Np().defined(i).curve(a).context(o)}return e="function"==typeof e?e:void 0===e?Mp:zh(+e),t="function"==typeof t?t:zh(void 0===t?0:+t),n="function"==typeof n?n:void 0===n?Pp:zh(+n),l.x=function(t){return arguments.length?(e="function"==typeof t?t:zh(+t),r=null,l):e},l.x0=function(t){return arguments.length?(e="function"==typeof t?t:zh(+t),l):e},l.x1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:zh(+e),l):r},l.y=function(e){return arguments.length?(t="function"==typeof e?e:zh(+e),n=null,l):t},l.y0=function(e){return arguments.length?(t="function"==typeof e?e:zh(+e),l):t},l.y1=function(e){return arguments.length?(n=null==e?null:"function"==typeof e?e:zh(+e),l):n},l.lineX0=l.lineY0=function(){return u().x(e).y(t)},l.lineY1=function(){return u().x(e).y(n)},l.lineX1=function(){return u().x(r).y(t)},l.defined=function(e){return arguments.length?(i="function"==typeof e?e:zh(!!e),l):i},l.curve=function(e){return arguments.length?(a=e,null!=o&&(s=a(o)),l):a},l.context=function(e){return arguments.length?(null==e?o=s=null:s=a(o=e),l):o},l}function mf(e){return e<0?-1:1}function vf(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(mf(o)+mf(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function _f(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function yf(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 xf(e){this._context=e}function bf(e){this._context=e}function Cf(e){return new xf(e)}xf.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:yf(this,this._t0,_f(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,yf(this,_f(this,n=vf(this,e,t)),n);break;default:yf(this,this._t0,n=vf(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 bf(e)}.prototype=Object.create(xf.prototype)).point=function(e,t){xf.prototype.point.call(this,t,e)},bf.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 kf,Ef=ue(),Sf=Oi((function(e){return e.x})).left;!function(e){e.show="visibility",e.hide="hidden"}(kf||(kf={}));var Lf=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(Hc(document.getElementById(n._rectId),e)[0]),i=Sf(t[0].data,r),o=t[0].data[i-1],a=t[0].data[i],s=null,l=null,u=null;if(void 0===o&&void 0!==a)l=a.x,u=i;else if(void 0!==o&&void 0===a)l=o.x,u=i-1;else{var c=void 0,d=void 0,h=void 0;switch(s=ad(t[0].data[0].x,!0)){case zc.DateAxis:c=new Date(r).getTime(),d=o.x.getTime(),h=a.x.getTime(),l=Math.abs(c-d)>Math.abs(c-h)?a.x:o.x,u=Math.abs(c-d)>Math.abs(c-h)?i:i-1;break;case zc.NumericAxis:c=r,d=o.x,h=a.x,l=Math.abs(c-d)>Math.abs(c-h)?a.x:o.x,u=Math.abs(c-d)>Math.abs(c-h)?i:i-1}}var p=t[0].data[u],f=p.xAxisCalloutData,g=p.xAxisCalloutAccessibilityData,m=l instanceof Date?l.toLocaleString():l,v=l instanceof Date?l.getTime():l,_=_e(n._calloutPoints,(function(e){return e.x===v})),y=s===zc.DateAxis?l.getTime():l,x=n.state.nearestCircleToHighlight!==y;_&&x&&!n.state.isShowCalloutPending&&n.setState({nearestCircleToHighlight:y,isCalloutVisible:!1,isShowCalloutPending:!0,lineXValue:n._xAxisRectScale(l),displayOfLine:kf.show,isCircleClicked:!1,stackCalloutProps:_,YValueHover:_.values,dataPointCalloutProps:_,hoverXValue:f||m,xAxisCalloutAccessibilityData:g,activePoint:""}),_||n.setState({isCalloutVisible:!1,nearestCircleToHighlight:y,displayOfLine:kf.hide,isCircleClicked:!1})},n._onRectMouseOut=function(){},n._handleChartMouseLeave=function(){n.setState({refSelected:null,isCalloutVisible:!1,nearestCircleToHighlight:null,lineXValue:0,displayOfLine:kf.hide,isCircleClicked:!1,stackCalloutProps:void 0,dataPointCalloutProps:void 0,hoverXValue:void 0,YValueHover:[]})},n._getStackedData=function(e,t){var r=function(){var e=zh([]),t=hf,n=df,r=pf;function i(i){var o,a,s=Array.from(e.apply(this,arguments),ff),l=s.length,u=-1;for(const e of i)for(o=0,++u;o<l;++o)(s[o][u]=[0,+r(e,s[o].key,u,i)]).data=e;for(o=0,a=Wh(t(s));o<l;++o)s[a[o]].index=o;return n(s,a),s}return i.keys=function(t){return arguments.length?(e="function"==typeof t?t:zh(Array.from(t)),i):e},i.value=function(e){return arguments.length?(r="function"==typeof e?e:zh(+e),i):r},i.order=function(e){return arguments.length?(t=null==e?hf:"function"==typeof e?e:zh(Array.from(e)),i):t},i.offset=function(e){return arguments.length?(n=null==e?df:e,i):n},i}().keys(e)(t),i=Ri(r[r.length-1],(function(e){return e[1]})),o=[];return r.forEach((function(e){var t=[];e.forEach((function(e){t.push({values:e,xVal:e.data.xVal})})),o.push(t)})),n._isMultiStackChart=!!(o&&o.length>1),{stackedData:o,maxOfYVal:i}},n._createDataSet=function(e){var t=[],r=[],i=[],o=[],a=Jc(e);e&&e.length&&e.forEach((function(e){i.push(e.color),o.push(e.opacity||1),t.push.apply(t,e.data)}));for(var s=t,l=function(){var e=s[0].x instanceof Date?s[0].x.toLocaleString():s[0].x,t=s.filter((function(t){return(t.x instanceof Date?t.x.toLocaleString():t.x)===e})),n={};t.forEach((function(e,t){n.xVal=e.x,n["chart"+t]=e.y})),r.push(n);var i=s[0].x instanceof Date?s[0].x.toLocaleString():s[0].x;s=s.filter((function(e){return(e.x instanceof Date?e.x.toLocaleString():e.x)!==i}))};s.length;)l();for(var u=r&&Object.keys(r[0]).length,c=[],d=0;d<u-1;d++){var h="chart"+d;c.push(h)}var p=n._getStackedData(c,r);return{colors:i,opacity:o,keys:c,stackedInfo:p,calloutPoints:a}},n._getCustomizedCallout=function(){return n.props.onRenderCalloutPerStack?n.props.onRenderCalloutPerStack(n.state.stackCalloutProps):n.props.onRenderCalloutPerDataPoint?n.props.onRenderCalloutPerDataPoint(n.state.dataPointCalloutProps):null},n._getGraphData=function(e,t,r,i,o){n._chart=n._drawGraph(r,e,t,o)},n._getLegendData=function(e){var t=[];return e.forEach((function(e){var r=e.color;if(!(t.filter((function(t){return t.title===e.legend&&t.color===r})).length>0)){var i={title:e.legend,color:r,action:function(){n._onLegendClick(e.legend)},hoverAction:function(){n._handleChartMouseLeave(),n._onLegendHover(e.legend)},onMouseOutAction:function(){n._onLegendLeave()}};t.push(i)}})),s.createElement(Bh,i({legends:t,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){return n._isMultiStackChart?n._legendHighlighted(e)||n._noLegendHighlighted()?.7:.1:.7},n._getLineOpacity=function(e){if(n._isMultiStackChart){var t=.3;return n.state.isCalloutVisible&&(t=1),n._noLegendHighlighted()||(t=n._legendHighlighted(e)?0:.1),t}return 1},n._updateCircleFillColor=function(e,t,r){var i=t;return n.state.nearestCircleToHighlight!==e&&n.state.activePoint!==r||(n._highlightedCircleId=r,n.state.isCircleClicked||(i=n.props.theme.palette.white)),i},n._drawGraph=function(e,t,r,o){var a,l=n._addDefaultColors(n.props.data.lineChartData),u=n.props.data,c=u.pointOptions,d=u.pointLineOptions,h=gf().x((function(e){return t(e.xVal)})).y0((function(e){return r(e.values[0])})).y1((function(e){return r(e.values[1])})).curve(Cf),p=Np().x((function(e){return t(e.xVal)})).y((function(e){return r(e.values[1])})).curve(Cf),f=[];n._stackedData.forEach((function(e,o){f.push(s.createElement(s.Fragment,{key:o+"-graph-"+n._uniqueIdForGraph},s.createElement("path",i({id:o+"-line-"+n._uniqueIdForGraph,d:p(e),fill:"transparent",strokeWidth:3,stroke:n._colors[o],opacity:n._getLineOpacity(l[o].legend),onMouseMove:n._onRectMouseMove,onMouseOut:n._onRectMouseOut,onMouseOver:n._onRectMouseMove},l[o].lineOptions)),1===e.length?s.createElement("circle",{id:o+"-graph-"+n._uniqueIdForGraph,cx:t(e[0].xVal),cy:r(e[0].values[1]),r:6,stroke:n._colors[o],strokeWidth:3,fill:n._colors[o],opacity:n._opacity[o],fillOpacity:n._getOpacity(l[o].legend),onMouseMove:n._onRectMouseMove,onMouseOut:n._onRectMouseOut,onMouseOver:n._onRectMouseMove}):s.createElement("path",i({id:o+"-graph-"+n._uniqueIdForGraph,d:h(e),fill:n._colors[o],opacity:n._opacity[o],fillOpacity:n._getOpacity(l[o].legend),onMouseMove:n._onRectMouseMove,onMouseOut:n._onRectMouseOut,onMouseOver:n._onRectMouseMove},n.props.optimizeLargeData&&{"data-is-focusable":!0,role:"img","aria-label":l[o].legend+", series "+(o+1)+" of "+l.length+" with "+l[o].data.length+" data points."}))))}));var g=c&&c.r?Number(c.r):8;n._stackedData.forEach((function(e,o){l.length!==o&&(n.props.optimizeLargeData&&1!==e.length?e.forEach((function(e,u){var d=e.xVal instanceof Date?e.xVal.getTime():e.xVal;if(n.state.nearestCircleToHighlight===d){var h=n._circleId+"_"+(o*n._stackedData[0].length+u);a=l[o].color,f.push(s.createElement("circle",i({key:h,id:h,cx:t(e.xVal),cy:r(e.values[1]),stroke:a,strokeWidth:3,fill:n._updateCircleFillColor(d,a,h),onMouseOut:n._onRectMouseOut,onMouseOver:n._onRectMouseMove,onClick:n._onDataPointClick.bind(n,l[o].data[u].onDataPointClick)},c,{r:n._getCircleRadius(d,g,h)})))}})):f.push(s.createElement("g",{key:o+"-dots-"+n._uniqueIdForGraph,d:h(e),clipPath:"url(#clip)"},e.map((function(e,u){var d=n._circleId+"_"+(o*n._stackedData[0].length+u),h=e.xVal instanceof Date?e.xVal.getTime():e.xVal;return a=l[o].color,s.createElement("circle",i({key:d,id:d,"data-is-focusable":!0,cx:t(e.xVal),cy:r(e.values[1]),stroke:a,strokeWidth:3,fill:n._updateCircleFillColor(h,a,d),onMouseOut:n._onRectMouseOut,onMouseOver:n._onRectMouseMove,onClick:n._onDataPointClick.bind(n,l[o].data[u].onDataPointClick),onFocus:function(){return n._handleFocus(o,u,d)},onBlur:n._handleBlur},c,{r:n._getCircleRadius(h,g,d),role:"img","aria-label":n._getAriaLabel(o,u)}))})))))})),f.push(s.createElement("line",i({id:n._verticalLineId,key:n._verticalLineId,x1:n.state.lineXValue,y1:0,x2:n.state.lineXValue,y2:e,strokeWidth:1,strokeDasharray:5.5,stroke:a,opacity:.5,visibility:n.state.displayOfLine},d)));var m=Ef(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=Ic(o).call(t);try{document.getElementById(n._tooltipId)&&document.getElementById(n._tooltipId).remove()}catch(e){}var _={tooltipCls:m.tooltip,id:n._tooltipId,xAxis:v};v&&ed(_)}return f},n._getCircleRadius=function(e,t,r){var i=n.state,o=i.isCircleClicked,a=i.nearestCircleToHighlight,s=i.activePoint;return o&&a===e?1:a===e||s===r?t:0},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},n._legendHighlighted=function(e){return n.state.selectedLegend===e||""===n.state.selectedLegend&&n.state.activeLegend===e},n._noLegendHighlighted=function(){return""===n.state.selectedLegend&&""===n.state.activeLegend},n._addDefaultColors=function(e){return e?e.map((function(e,t){var r,o,a;return a=void 0===e.color?of(t,0,null===(r=n.props.theme)||void 0===r?void 0:r.isInverted):af(e.color,null===(o=n.props.theme)||void 0===o?void 0:o.isInverted),i(i({},e),{color:a})})):[]},n._handleFocus=function(e,t,r){var i=n.props.data.lineChartData[e].data[t],o=i.x,a=i.y,s=i.xAxisCalloutData,l=o instanceof Date?o.toLocaleString():o,u=o instanceof Date?o.getTime():o,c=n._calloutPoints.find((function(e){return e.x===u}));c.values=c.values.filter((function(e){return e.y===a})),n.setState({refSelected:"#"+r,isCalloutVisible:!0,hoverXValue:s||l,YValueHover:c.values,stackCalloutProps:c,dataPointCalloutProps:c,activePoint:r})},n._handleBlur=function(){n.setState({refSelected:null,isCalloutVisible:!1,hoverXValue:void 0,YValueHover:[],stackCalloutProps:void 0,dataPointCalloutProps:void 0,activePoint:""})},n._getAriaLabel=function(e,t){var r,i=n.props.data.lineChartData[e],o=i.data[t],a=o.x instanceof Date?o.x.toLocaleString():o.x,s=o.xAxisCalloutData||a,l=i.legend,u=o.yAxisCalloutData||o.y;return(null===(r=o.callOutAccessibilityData)||void 0===r?void 0:r.ariaLabel)||s+". "+l+", "+u+"."},n._createSet=jn(n._createDataSet),n.state={selectedLegend:"",activeLegend:"",hoverXValue:"",isCalloutVisible:!1,refSelected:null,YValueHover:[],lineXValue:0,displayOfLine:kf.hide,isCircleClicked:!1,nearestCircleToHighlight:null,isShowCalloutPending:!1,activePoint:""},di("AREA CHART",t,{showYAxisGridLines:"Dont use this property. Lines are drawn by default"}),n._uniqueIdForGraph=ge("areaChart_"),n._verticalLineId=ge("verticalLine_"),n._circleId=ge("circle"),n._rectId=ge("rectangle"),n._tooltipId=ge("AreaChartTooltipID"),n}return r(t,e),t.prototype.componentDidUpdate=function(){this.state.isShowCalloutPending&&this.setState({refSelected:"#"+this._highlightedCircleId,isCalloutVisible:!0,isShowCalloutPending:!1})},t.prototype.render=function(){var e=this,t=this.props.data,n=t.lineChartData,r=t.chartTitle,o=this._addDefaultColors(n),a=this._createSet(o),l=a.colors,u=a.opacity,c=a.stackedInfo,d=a.calloutPoints;this._calloutPoints=d;var h=td(o);this._colors=l,this._opacity=u,this._stackedData=c.stackedData;var p=this._getLegendData(o),f={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat},g=i({target:this.state.refSelected,isCalloutVisible:this.state.isCalloutVisible,directionalHint:3,YValueHover:this.state.YValueHover,hoverXValue:this.state.hoverXValue,id:"toolTip"+this._uniqueCallOutID,gapSpace:15,isBeakVisible:!1,onDismiss:this._closeCallout,"data-is-focusable":!0,xAxisCalloutAccessibilityData:this.state.xAxisCalloutAccessibilityData},this.props.calloutProps);return s.createElement(Vp,i({},this.props,{chartTitle:r,points:o,chartType:Wc.AreaChart,calloutProps:g,legendBars:p,isCalloutForStack:!0,xAxisType:h?zc.DateAxis:zc.NumericAxis,tickParams:f,maxOfYVal:c.maxOfYVal,getGraphData:this._getGraphData,getmargins:this._getMargins,customizedCallout:this._getCustomizedCallout(),onChartMouseLeave:this._handleChartMouseLeave,children:function(t){e._xAxisRectScale=t.xScale;var n=e._xAxisRectScale.ticks(),r=e._xAxisRectScale(n[n.length-1]),i=t.containerHeight-e.margins.top;return s.createElement(s.Fragment,null,s.createElement("g",null,s.createElement("rect",{id:e._rectId,width:r,height:i,fill:"transparent",onMouseMove:e._onRectMouseMove,onMouseOut:e._onRectMouseOut,onMouseOver:e._onRectMouseMove})),s.createElement("g",null,e._chart))}}))},t.prototype._onLegendClick=function(e){this.state.selectedLegend===e?this.setState({selectedLegend:""}):this.setState({selectedLegend:e})},t.prototype._onLegendHover=function(e){this.setState({activeLegend:e})},t.prototype._onLegendLeave=function(){this.setState({activeLegend:""})},t}(s.Component),Af=C(Lf,(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"})}})),wf=function(e){return{root:{fill:e.color,stroke:Fn.white,strokeWidth:2}}},Df=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={},t.updateChart=function(e){Mf(e)},t}return r(t,e),t.getDerivedStateFromProps=function(e){return Mf(e),null},t.prototype.render=function(){var e,t=this.props,n=t.color,r=t.arc,i=ue()(wf,{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:yp()},t}(s.Component),Tf=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.render=function(){var t=this.props,n=t.data,r=t.arc,i=t.culture,o=r.centroid(n),a="translate("+o[0]+", "+o[1]+")";return s.createElement("g",{className:"arc"},e.prototype.render.call(this),s.createElement("text",{transform:a,textAnchor:"middle"},n.data.x,"-",cd(n.data.y,i)))},t}(Df);function Mf(e){e.arc.innerRadius(e.innerRadius),e.arc.outerRadius(e.outerRadius)}var Pf,Nf=function(e){function t(t){var n=e.call(this,t)||this;return n.arcGenerator=function(e,t){return s.createElement(Tf,{culture:n.props.culture,key:t,data:e,innerRadius:n.props.innerRadius,outerRadius:n.props.outerRadius,color:""+n.colors(t)})},n}return r(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.pie,r=t.colors,i=t.data,o=t.width,a=t.height,l=t.chartTitle;this.colors=ku().range(r);var u=n(i),c="translate("+o/2+", "+a/2+")";return s.createElement("svg",{width:o,height:a,"aria-label":l},s.createElement("g",{transform:c},u.map((function(t,n){return e.arcGenerator(t,n)}))))},t.defaultProps={pie:ip().sort(null).value((function(e){return e.y}))},t}(s.Component),Ff=ue(),If=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.render=function(){var e=this.props,t=e.data,n=e.width,r=e.height,i=e.colors,o=e.chartTitle,a=this.props,l=a.theme,u=a.className,c=a.styles,d=a.culture;this._classNames=Ff(c,{theme:l,width:n,height:r,className:u});var h=Math.min(n,r)/2-10;return s.createElement("div",{className:this._classNames.root},this.props.chartTitle&&s.createElement("p",{className:this._classNames.chartTitle},this.props.chartTitle),s.createElement(Nf,{culture:d,width:n,height:r,outerRadius:h,innerRadius:0,data:t,colors:i,chartTitle:o}))},t.defaultProps={data:[],width:600,height:350},t}(s.Component),Of=C(If,(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)]}})),Vf=ue(),Hf=function(e){function t(t){var n=e.call(this,t)||this;return n._handleChartMouseLeave=function(){n._calloutAnchorPoint=null,n.setState({isCalloutVisible:!1})},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},n._legendHighlighted=function(e){return n.state.selectedLegend===e||""===n.state.selectedLegend&&n.state.activeLegend===e},n._noLegendHighlighted=function(){return""===n.state.selectedLegend&&""===n.state.activeLegend},n._getAriaLabel=function(e){var t,n=e.xAxisCalloutData||e.legend,r=e.yAxisCalloutData||e.data||0;return(null===(t=e.callOutAccessibilityData)||void 0===t?void 0:t.ariaLabel)||(n?n+", ":"")+r+"."},n.state={isCalloutVisible:!1,selectedLegend:"",activeLegend:"",refSelected:null,dataForHoverCard:0,color:"",xCalloutValue:"",yCalloutValue:"",calloutLegend:""},n._refArray=[],n._onLeave=n._onLeave.bind(n),n._refCallback=n._refCallback.bind(n),n._onBarLeave=n._onBarLeave.bind(n),n._calloutId=ge("callout"),n}return r(t,e),t.prototype.render=function(){this._adjustProps();var e=this.props,t=e.data,n=e.benchmarkData,r=e.targetData,o=e.hideNumberDisplay,a=e.ignoreFixStyle,l=e.culture,u=this.props.theme.palette,c=a||t.chartData.length>2?this.props.barHeight:12;n&&(n.color=n.color||u.neutralTertiary),r&&(r.color=r.color||u.neutralSecondary);var d=this._createBarsAndLegends(t,c,u,n,r),h=!1===o&&!a&&2===t.chartData.length,p=!1===o&&!a&&1===t.chartData.length,f=t.chartData.reduce((function(e,t){return e+(t.data?t.data:0)}),0),g=0;n&&f&&(g=n.data/f*100);var m=0;r&&f&&(m=r.data/f*100);var v=!1===this.props.hideLegend&&(a||t.chartData.length>2);this._classNames=Vf(this.props.styles,{legendColor:this.state.color,theme:this.props.theme,benchmarkColor:n?n.color:"",benchmarkRatio:g,targetColor:r?r.color:"",targetRatio:m,showTriangle:!(!n&&!r)});var _=function(){return cd(t.chartData[0].data?t.chartData[0].data:0,l)};return s.createElement("div",{className:this._classNames.root,onMouseLeave:this._handleChartMouseLeave},s.createElement(Vd,{direction:sd.horizontal},s.createElement("div",{className:this._classNames.chartTitle},t.chartTitle&&s.createElement(Xd,{overflowMode:Pd.Self,hostClassName:this._classNames.chartTitleLeft,content:t.chartTitle},s.createElement("span",i({},ud(t.chartTitleAccessibilityData)),t.chartTitle)),h&&s.createElement("div",i({},ud(t.chartDataAccessibilityData)),s.createElement("span",{className:this._classNames.ratioNumerator},_()),!this.props.hideDenominator&&s.createElement("span",{className:this._classNames.ratioDenominator}," / "+cd(f,l))),p&&s.createElement("div",i({className:this._classNames.ratioNumerator},ud(t.chartDataAccessibilityData)),_())),(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(Vd,{direction:sd.horizontal},s.createElement("div",null,s.createElement("svg",{className:this._classNames.chart,"aria-label":null==t?void 0:t.chartTitle},s.createElement("g",null,d[0]),s.createElement(Ci,i({gapSpace:15,isBeakVisible:!1,target:this.state.refSelected,setInitialFocus:!0,hidden:!(!this.props.hideTooltip&&this.state.isCalloutVisible),directionalHint:3,id:this._calloutId,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0,shouldUpdateWhenHidden:!0},this.props.calloutProps,ud(this.state.callOutAccessibilityData,"text",!1)),s.createElement(s.Fragment,null,this.props.onRenderCalloutPerDataPoint?this.props.onRenderCalloutPerDataPoint(this.state.dataPointCalloutProps):s.createElement(fd,{Legend:this.state.xCalloutValue?this.state.xCalloutValue:this.state.calloutLegend,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard,color:this.state.color,culture:l})))))),v&&s.createElement("div",{className:this._classNames.legendContainer},d[1]))},t.prototype._adjustProps=function(){this._classNames=Vf(this.props.styles,{legendColor:this.state.color,theme:this.props.theme,width:this.props.width,barHeight:this.props.barHeight,className:this.props.className})},t.prototype._createBarsAndLegends=function(e,t,n,r,o){var a=this,l=[n.blueLight,n.blue,n.blueMid,n.red,n.black],u=[],c=[],d=e.chartData.reduce((function(e,t){return e+(t.data?t.data:0)}),0),h=0,p=0,f=0;e.chartData.map((function(e,t){var n=e.data?e.data:0;return(p=n/d*100)<1&&0!==p?p=1:p>99&&100!==p&&(p=99),f+=p}));var g=0!==f?f/100:1,m=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._handleChartMouseLeave(),a._onHover(e.legend)}:void 0,onMouseOutAction:d>0?function(){a._onLeave()}:void 0};e.placeHolder||u.push(o),n>0&&(h+=p),(p=i/d*100)<1&&0!==p?p=1/g:p>99&&100!==p?p=99/g:p/=g,c.push(h);var f=a.props.styles,m=!(!a._legendHighlighted(e.legend)&&!a._noLegendHighlighted());return a._classNames=Vf(f,{theme:a.props.theme,shouldHighlight:m,href:a.props.href}),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":a._getAriaLabel(e),role:"img",onMouseOver:a._onBarHover.bind(a,i,r,e),onMouseMove:a._onBarHover.bind(a,i,r,e),onMouseLeave:a._onBarLeave,pointerEvents:"all",onClick:a.props.href?a._redirectToUrl.bind(a,a.props.href):e.onClick},s.createElement("rect",{key:n,x:c[n]+"%",y:0,width:p+"%",height:t,fill:r}))}));this._addLegend(u,r),this._addLegend(u,o);var v=s.createElement(Bh,i({legends:u,enabledWrapLines:this.props.enabledLegendsWrapLines,overflowProps:this.props.legendsOverflowProps,focusZonePropsInHoverCard:this.props.focusZonePropsForLegendsInHoverCard,overflowText:this.props.legendsOverflowText},this.props.legendProps));return[0===d?[this._generateEmptyBar(t,this.props.barBackgroundColor?this.props.barBackgroundColor:n.neutralLight)]:m,v]},t.prototype._onBarFocus=function(e,t,n){var r=this;this._refArray.forEach((function(i){i.index===n.legend&&r.setState({refSelected:i.refElement,isCalloutVisible:""===r.state.selectedLegend||r.state.selectedLegend===n.legend,calloutLegend: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.selectedLegend===e?this.setState({selectedLegend:""}):this.setState({selectedLegend:e})},t.prototype._onHover=function(e){this.setState({activeLegend:e})},t.prototype._onLeave=function(){this.setState({activeLegend:""})},t.prototype._onBarHover=function(e,t,n,r){r.persist(),this._calloutAnchorPoint!==n&&(this._calloutAnchorPoint=n,this.setState({refSelected:r,isCalloutVisible:""===this.state.selectedLegend||this.state.selectedLegend===n.legend,calloutLegend:n.legend,dataForHoverCard:e,color:t,xCalloutValue:n.xAxisCalloutData,yCalloutValue:n.yAxisCalloutData,dataPointCalloutProps:n,callOutAccessibilityData:n.callOutAccessibilityData}))},t.prototype._onBarLeave=function(){},t.prototype._redirectToUrl=function(e){e&&(window.location.href=e)},t.defaultProps={barHeight:12,hideNumberDisplay:!1,hideLegend:!1,ignoreFixStyle:!1},t}(s.Component),Rf=C(Hf,(function(e){var t,n,r=e.className,o=e.width,a=e.barHeight,s=e.shouldHighlight,l=e.theme,u=e.href,c=e.benchmarkColor,d=e.benchmarkRatio,h=e.targetColor,p=e.targetRatio,f=e.showTriangle;return{root:[l.fonts.medium,"ms-StackedBarChart",{width:o||"100%",display:"flex",flexDirection:"column"},r],chart:{width:"100%",height:a||12,display:"block",marginBottom:f?"16px":"10px"},chartTitle:i(i({},l.fonts.small),{display:"flex",justifyContent:"space-between"}),chartTitleLeft:{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",display:"block",color:l.palette.neutralPrimary,marginBottom:"5px"},legendContainer:{margin:"4px 0px 0px 4px"},opacityChangeOnHover:{opacity:s?"":"0.1",cursor:u?"pointer":"default",stroke:l.palette.white,strokeWidth:2,selectors:{"&:focus":{stroke:l.palette.black,strokeWidth:"2px"}}},ratioNumerator:{fontSize:Tn.medium,fontWeight:Mn.semibold,color:l.palette.neutralPrimary},ratioDenominator:{fontSize:Tn.medium,color:l.palette.neutralPrimary},benchmarkContainer:{position:"relative",height:"7px",marginTop:"-3px",marginBottom:"-1px"},benchmark:{position:"absolute",left:"calc("+d+"% - 4px)",width:"0",height:"0",borderLeft:"4px solid transparent",borderRight:"4px solid transparent",borderTop:"7px solid",borderTopColor:c,marginBottom:"4px",selectors:(t={},t[On]={border:"0px",height:"7px",width:"7px",clipPath:"polygon(50% 100%, 0 0, 100% 0)",backgroundImage:"linear-gradient(to right, "+c+", "+c+")"},t)},target:{position:"absolute",left:"calc("+p+"% - 4px)",width:"0",height:"0",borderLeft:"4px solid transparent",borderRight:"4px solid transparent",borderTop:"7px solid",borderTopColor:h,marginBottom:"4px",selectors:(n={},n[On]={border:"0px",height:"7px",width:"7px",clipPath:"polygon(50% 100%, 0 0, 100% 0)",backgroundImage:"linear-gradient(to right, "+h+", "+h+")"},n)}}}));!function(e){e.PartToWhole="part-to-whole",e.AbsoluteScale="absolute-scale"}(Pf||(Pf={}));var Bf,Wf=ue(),zf=function(e){function t(t){var n=e.call(this,t)||this;return n._isRTL=oe(),n._adjustProps=function(){var e=n.props,t=e.theme,r=e.className,i=e.styles,o=e.width,a=e.barHeight;n._classNames=Wf(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._handleChartMouseLeave(),n._onHover(e.legend)},onMouseOutAction:function(){n._onLeave()}};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._handleChartMouseLeave(),n._onHover(e.legend)},onMouseOutAction:function(){n._onLeave()}};a.push(r)}}))})),s.createElement(Bh,i({legends:a,overflowProps:n.props.legendsOverflowProps,focusZonePropsInHoverCard:n.props.focusZonePropsForLegendsInHoverCard,overflowText:n.props.legendsOverflowText},n.props.legendProps))},n._handleChartMouseLeave=function(){n._calloutAnchorPoint=null,n.setState({isCalloutVisible:!1})},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},n._legendHighlighted=function(e){return n.state.selectedLegend===e||""===n.state.selectedLegend&&n.state.activeLegend===e},n._noLegendHighlighted=function(){return""===n.state.selectedLegend&&""===n.state.activeLegend},n._getAriaLabel=function(e){var t,n=e.xAxisCalloutData||e.legend,r=e.yAxisCalloutData||e.data||0;return(null===(t=e.callOutAccessibilityData)||void 0===t?void 0:t.ariaLabel)||(n?n+", ":"")+r+"."},n._computeLongestBarTotalValue=function(){var e=0;return n.props.data.forEach((function(t){var n=t.chartData.reduce((function(e,t){return e+(t.data?t.data:0)}),0);e=Math.max(e,n)})),e},n.state={isCalloutVisible:!1,refArray:[],selectedLegend:"",activeLegend:"",refSelected:null,dataForHoverCard:0,color:"",xCalloutValue:"",yCalloutValue:"",calloutLegend:""},n._onLeave=n._onLeave.bind(n),n._onBarLeave=n._onBarLeave.bind(n),n._calloutId=ge("callout"),n}return r(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.data,r=t.theme,o=t.culture;this._adjustProps();var a=r.palette,l=this._getLegendData(n,this.props.hideRatio,a),u=this.state.isCalloutVisible;this._classNames=Wf(this.props.styles,{legendColor:this.state.color,theme:r,variant:this.props.variant,hideLabels:this.props.hideLabels});var c=this.state.xCalloutValue?this.state.xCalloutValue:this.state.calloutLegend,d=this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard;this._longestBarTotalValue=this._computeLongestBarTotalValue();var h=n.map((function(t,n){var r=e._createBarsAndLegends(t,e.props.barHeight,a,e.props.hideRatio[n],e.props.hideDenominator[n],e.props.href);return s.createElement("div",{key:n},r)}));return s.createElement("div",{className:this._classNames.root,onMouseLeave:this._handleChartMouseLeave},h,!this.props.hideLegend&&s.createElement("div",{className:this._classNames.legendContainer},l),s.createElement(Ci,i({gapSpace:15,isBeakVisible:!1,target:this.state.refSelected,setInitialFocus:!0,hidden:!(!this.props.hideTooltip&&u),directionalHint:3,id:this._calloutId,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0,shouldUpdateWhenHidden:!0},this.props.calloutProps,ud(this.state.callOutAccessibilityData,"text",!1)),s.createElement(s.Fragment,null,this.props.onRenderCalloutPerDataPoint?this.props.onRenderCalloutPerDataPoint(this.state.dataPointCalloutProps):s.createElement(fd,{Legend:c,YValue:d,color:this.state.color,culture:o}))))},t.prototype._createBarsAndLegends=function(e,t,n,r,o,a){var l=this,u=this.props.culture,c=[n.blueLight,n.blue,n.blueMid,n.red,n.black],d=[],h=e.chartData.reduce((function(e,t){return e+(t.data?t.data:0)}),0),p=this.props.variant===Pf.AbsoluteScale?this._longestBarTotalValue:h,f=0;if(e.chartData.map((function(e,t){var n=e.data?e.data:0;return(_=n/p*100?n/p*100:0)<1&&0!==_?_=1:_>99&&100!==_&&(_=99),f+=_})),this.props.variant===Pf.AbsoluteScale){var g=0===p?0:(p-h)/p*100;g<1&&0!==g?g=1:g>99&&100!==g&&(g=99),f+=g}var m=0!==f?f/100:1,v=0,_=0,y=e.chartData.map((function(e,r){var i=e.color?e.color:e.placeHolder?n.neutralLight:c[Math.floor(4*Math.random()+1)],o=e.data?e.data:0;r>0&&(v+=_),(_=o/p*100?o/p*100:0)<1&&0!==_?_=1/m:_>99&&100!==_?_=99/m:_/=m,d.push(v);var u=l.props.styles,h=!(!l._legendHighlighted(e.legend)&&!l._noLegendHighlighted());return l._classNames=Wf(u,{theme:l.props.theme,shouldHighlight:h,href:a,variant:l.props.variant,hideLabels:l.props.hideLabels}),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,role:"img","aria-label":l._getAriaLabel(e),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:(l._isRTL?100-d[r]-_:d[r])+"%",y:0,width:_+"%",height:t,fill:i}))}));this.props.variant===Pf.AbsoluteScale?this.props.hideLabels||y.push(s.createElement("text",{key:"text",x:(this._isRTL?100-(d[d.length-1]||0)-_:(d[d.length-1]||0)+_)+"%",y:t/2,dominantBaseline:"central",transform:"translate("+(this._isRTL?-4:4)+")",className:this._classNames.barLabel,"data-is-focusable":!0,"aria-label":"Total: "+h,role:"img"},pa(h<1e3?".2~":".1",h)(h))):(0===e.chartData.length&&y.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.neutralLight}))),0===h&&y.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.neutralLight}))));var x=void 0!==r&&r,b=this.props.variant!==Pf.AbsoluteScale&&!x&&2===e.chartData.length,C=this.props.variant!==Pf.AbsoluteScale&&!x&&1===e.chartData.length,k=function(){return cd(e.chartData[0].data?e.chartData[0].data:0,u)};return s.createElement("div",{className:this._classNames.singleChartRoot},s.createElement(Vd,{direction:sd.horizontal},s.createElement("div",{className:this._classNames.chartTitle},e.chartTitle&&s.createElement(Xd,{overflowMode:Pd.Self,hostClassName:this._classNames.chartTitleLeft,content:e.chartTitle},s.createElement("span",i({},ud(e.chartTitleAccessibilityData)),e.chartTitle)),b&&s.createElement("div",i({},ud(e.chartDataAccessibilityData)),s.createElement("span",{className:this._classNames.ratioNumerator},k()),!o&&s.createElement("span",{className:this._classNames.ratioDenominator}," / "+cd(h,u))),C&&s.createElement("div",i({className:this._classNames.ratioNumerator},ud(e.chartDataAccessibilityData)),k()))),s.createElement(Vd,{direction:sd.horizontal},s.createElement("div",{className:this._classNames.chartWrapper},s.createElement("svg",{className:this._classNames.chart,"aria-label":null==e?void 0:e.chartTitle},y))))},t.prototype._onBarFocus=function(e,t,n){var r=this;this.state.refArray.forEach((function(i){i.legendText===n.legend&&r.setState({refSelected:i.refElement,isCalloutVisible:""===r.state.selectedLegend||r.state.selectedLegend===n.legend,calloutLegend: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){this.setState({activeLegend:e})},t.prototype._onClick=function(e){this.state.selectedLegend===e?this.setState({selectedLegend:""}):this.setState({selectedLegend:e})},t.prototype._onLeave=function(){this.setState({activeLegend:""})},t.prototype._onBarHover=function(e,t,n,r){r.persist(),this._calloutAnchorPoint!==n&&(this._calloutAnchorPoint=n,this.setState({refSelected:r,isCalloutVisible:""===this.state.selectedLegend||this.state.selectedLegend===n.legend,calloutLegend:n.legend,dataForHoverCard:e,color:t,xCalloutValue:n.xAxisCalloutData,yCalloutValue:n.yAxisCalloutData,dataPointCalloutProps:n,callOutAccessibilityData:n.callOutAccessibilityData}))},t.prototype._onBarLeave=function(){},t.prototype._redirectToUrl=function(e){e&&(window.location.href=e)},t.defaultProps={barHeight:12,hideRatio:[],hideDenominator:[]},t}(s.Component),Uf=C(zf,(function(e){var t=e.className,n=e.width,r=e.barHeight,o=e.shouldHighlight,a=e.theme,s=e.href,l=e.variant,u=e.hideLabels;return{root:[a.fonts.medium,"ms-StackedBarChart",{display:"flex",flexDirection:"column",width:n||"100%"},t],items:{marginBottom:"11px"},chart:{width:"100%",height:r||12,display:"block",overflow:"visible"},chartTitle:i(i({},a.fonts.small),{display:"flex",justifyContent:"space-between"}),chartTitleLeft:{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",display:"block",color:a.palette.neutralPrimary,marginBottom:l===Pf.AbsoluteScale?"4px":"5px"},singleChartRoot:{width:n||"100%",display:"flex",flexDirection:"column",marginBottom:l===Pf.AbsoluteScale?"16px":"10px"},opacityChangeOnHover:{opacity:o?"":"0.1",cursor:s?"pointer":"default",stroke:a.palette.white,strokeWidth:2,selectors:{"&:focus":{stroke:a.palette.black,strokeWidth:"2px"}}},ratioNumerator:{fontSize:Tn.medium,fontWeight:Mn.semibold,color:a.palette.neutralPrimary},ratioDenominator:{fontSize:Tn.medium,color:a.palette.neutralPrimary},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"},barLabel:{fontSize:Tn.small,fontWeight:Mn.semibold,fill:a.palette.neutralPrimary},chartWrapper:{paddingRight:l!==Pf.AbsoluteScale||u?0:40}}}));!function(e){e.show="visibility",e.hide="hidden"}(Bf||(Bf={}));var Yf,qf=ue(),jf=function(e){function t(t){var n=e.call(this,t)||this;return n._isRtl=oe(),n._createLine=function(e,t,r,i){var o;void 0===r&&(r=0),void 0===i&&(i=0);var a=n._xAxisType===zc.NumericAxis,l=n._getScales(r,i,a).xBarScale,u=n._createColors(),c=n.props.theme,d=n.props,h=d.data,p=d.lineLegendColor,f=void 0===p?c.palette.yellow:p,g=d.lineLegendText,m=[],v=[];h&&h.forEach((function(e,t){e.lineData&&e.lineData.y&&m.push({x:e.x,y:e.lineData.y,point:e,index:t})}));var _=Np().x((function(t){return a?e(t.x):l(t.x)+.5*l.bandwidth()})).y((function(e){return t(e.y)})),y=!(!n._legendHighlighted(g)&&!n._noLegendHighlighted()),x=(null===(o=n.props.lineOptions)||void 0===o?void 0:o.lineBorderWidth)?Number.parseFloat(n.props.lineOptions.lineBorderWidth.toString()):0;x>0&&v.push(s.createElement("path",{opacity:y?1:.1,d:_(m),fill:"transparent",strokeLinecap:"square",strokeWidth:3+2*x,stroke:c.palette.white})),v.push(s.createElement("path",{opacity:y?1:.1,d:_(m),fill:"transparent",strokeLinecap:"square",strokeWidth:3,stroke:f}));var b=m.map((function(r,i){var o;return s.createElement("circle",{key:i,cx:a?e(r.x):l(r.x)+.5*l.bandwidth(),cy:t(r.y),onMouseOver:n._onBarHover.bind(n,r.point,u(r.y)),onMouseOut:n._onBarLeave,r:8,stroke:f,fill:n.props.theme.palette.white,strokeWidth:3,visibility:n.state.activeXdataPoint===r.x?Bf.show:Bf.hide,onClick:null===(o=r.point.lineData)||void 0===o?void 0:o.onClick})}));return s.createElement(s.Fragment,null,v,b)},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(fd,i({key:t,Legend:e.legend},0===t&&{XValue:""+(o||e.data)},{color:e.color,YValue:e.data||e.y,culture:n.props.culture}))}));return s.createElement(s.Fragment,null,a)},n._renderContentForOnlyBars=function(e){var t=n.props.useSingleColor,r=void 0!==t&&t;return s.createElement(s.Fragment,null,s.createElement(fd,{XValue:e.xAxisCalloutData||e.x,Legend:e.legend,YValue:e.yAxisCalloutData||e.y,color:!r&&e.color?e.color:n._createColors()(e.y),culture:n.props.culture}))},n._renderCallout=function(e){return e?n._isHavingLine?n._renderContentForBothLineAndBars(e):n._renderContentForOnlyBars(e):null},n._getCustomizedCallout=function(){return n.props.onRenderCalloutPerDataPoint?n.props.onRenderCalloutPerDataPoint(n.state.dataPointCalloutProps,n._renderCallout):null},n._getGraphData=function(e,t,r,i,o){return n._bars=n._xAxisType===zc.NumericAxis?n._createNumericBars(r,i,o):n._createStringBars(r,i,o)},n._refCallback=function(e,t){n._refArray.push({index:t,refElement:e})},n._getCalloutContentForLineAndBar=function(e){var t,r,i,o,a=[],s=n.props,l=s.theme,u=s.useSingleColor,c=void 0!==u&&u,d=n.props,h=d.data,p=d.lineLegendText,f=d.lineLegendColor,g=void 0===f?l.palette.yellow:f,m=h.filter((function(t){return t.x===e.x}));return n._isHavingLine&&void 0!==(null===(t=m[0].lineData)||void 0===t?void 0:t.y)&&a.push({legend:p,color:g,y:null===(r=m[0].lineData)||void 0===r?void 0:r.y,data:null===(i=m[0].lineData)||void 0===i?void 0:i.yAxisCalloutData,yAxisCalloutData:null===(o=m[0].lineData)||void 0===o?void 0:o.yAxisCalloutData}),a.push({legend:m[0].legend,y:m[0].y,color:c?n._createColors()(1):m[0].color?m[0].color:n._createColors()(m[0].y),data:m[0].yAxisCalloutData,yAxisCalloutData:m[0].yAxisCalloutData}),{YValueHover:a,hoverXValue:e.xAxisCalloutData||e.x.toString()}},n._onBarLeave=function(){},n._handleChartMouseLeave=function(){n._calloutAnchorPoint=null,n.setState({isCalloutVisible:!1,activeXdataPoint:null,YValueHover:[],hoverXValue:""})},n._onBarFocus=function(e,t,r){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:""===n.state.selectedLegend||n.state.selectedLegend===e.legend,calloutLegend: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=Ri(n._points,(function(e){return e.x})),o=Bi(n._points,(function(e){return e.x}));return{xBarScale:va().domain(n._isRtl?[i,o]:[o,i]).nice().range([n.margins.left+n._domainMargin,t-n.margins.right-n._barWidth-n._domainMargin]),yBarScale:va().domain([0,n._yMax]).range([0,e-n.margins.bottom-n.margins.top])}}return{xBarScale:Eu().domain(n._xAxisLabels).range([n.margins.left+n._domainMargin,t-n.margins.right-n._domainMargin]).paddingInner(2/3),yBarScale:va().domain([0,n._yMax]).range([0,e-n.margins.bottom-n.margins.top])}},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},n._getLegendData=function(e,t){var r=n.props,o=r.theme,a=r.useSingleColor,l=n.props,u=l.lineLegendText,c=l.lineLegendColor,d=void 0===c?o.palette.yellow:c,h=[];if(e.forEach((function(e,t){var r=a?n._createColors()(1):e.color,i={title:e.legend,color:r,action:function(){n._onLegendClick(e.legend)},hoverAction:function(){n._handleChartMouseLeave(),n._onLegendHover(e.legend)},onMouseOutAction:function(){n._onLegendLeave()}};h.push(i)})),n._isHavingLine&&u&&d){var p={title:u,color:d,action:function(){n._onLegendClick(u)},hoverAction:function(){n._handleChartMouseLeave(),n._onLegendHover(u)},onMouseOutAction:function(){n._onLegendLeave()},isLineLegendInBarChart:!0};h.unshift(p)}return s.createElement(Bh,i({legends:h,enabledWrapLines:n.props.enabledLegendsWrapLines,overflowProps:n.props.legendsOverflowProps,focusZonePropsInHoverCard:n.props.focusZonePropsForLegendsInHoverCard,overflowText:n.props.legendsOverflowText},n.props.legendProps))},n._getAxisData=function(e){if(e&&e.yAxisDomainValues.length){var t=e.yAxisDomainValues;n._yMax=Math.max(t[t.length-1],n.props.yMaxValue||0)}},n._legendHighlighted=function(e){return n.state.selectedLegend===e||""===n.state.selectedLegend&&n.state.activeLegend===e},n._noLegendHighlighted=function(){return""===n.state.selectedLegend&&""===n.state.activeLegend},n._getAriaLabel=function(e){var t,r,i,o=e.xAxisCalloutData||e.x,a=e.legend,s=e.yAxisCalloutData||e.y,l=n.props.lineLegendText||"Line",u=(null===(t=e.lineData)||void 0===t?void 0:t.yAxisCalloutData)||(null===(r=e.lineData)||void 0===r?void 0:r.y);return(null===(i=e.callOutAccessibilityData)||void 0===i?void 0:i.ariaLabel)||o+". "+(a?a+", ":"")+s+"."+(void 0!==u?" "+l+", "+u+".":"")},n._getDomainMargins=function(e){if(n._xAxisType!==zc.NumericAxis){var t=e-(n.margins.left+8)-(n.margins.right+8),r=Math.min(n.props.barWidth||16,24),o=(3*n._xAxisLabels.length-2)*r;n._domainMargin=8,t>=o?n._domainMargin+=(t-o)/2:r=t/(3*n._xAxisLabels.length-2),n._barWidth=r}return i(i({},n.margins),{left:n.margins.left+n._domainMargin,right:n.margins.right+n._domainMargin})},n.state={color:"",dataForHoverCard:0,isCalloutVisible:!1,refSelected:null,selectedLegend:"",activeLegend:"",xCalloutValue:"",yCalloutValue:"",activeXdataPoint:null,YValueHover:[],hoverXValue:"",calloutLegend:"",emptyChart:!1},n._isHavingLine=n._checkForLine(),n._calloutId=ge("callout"),n._tooltipId=ge("VCTooltipID_"),n._refArray=[],n._xAxisType=n.props.data&&n.props.data.length>0?ad(n.props.data[0].x,!0):zc.StringAxis,n._domainMargin=8,n}return r(t,e),t.prototype.componentDidMount=function(){var e=this.state.emptyChart||0===this._points.length||Ri(this._points,(function(e){return e.y}))<=0&&!this._isHavingLine;this.state.emptyChart!==e&&this.setState({emptyChart:e})},t.prototype.render=function(){var e=this;this._adjustProps(),this._xAxisLabels=this._points.map((function(e){return e.x})),this._yMax=Math.max(Ri(this._points,(function(e){return e.y})),this.props.yMaxValue||0);var t=this._getLegendData(this._points,this.props.theme.palette);this._classNames=qf(this.props.styles,{theme:this.props.theme,legendColor:this.state.color});var n=i(i(i(i({isCalloutVisible:this.state.isCalloutVisible,directionalHint:3,id:"toolTip"+this._calloutId,target:this.state.refSelected,isBeakVisible:!1},this._isHavingLine&&{YValueHover:this.state.YValueHover,hoverXValue:this.state.hoverXValue}),{gapSpace:15,color:this.state.color,legend:this.state.calloutLegend,XValue:this.state.xCalloutValue,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0}),this.props.calloutProps),ud(this.state.callOutAccessibilityData)),r={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return this.state.emptyChart?s.createElement("div",{id:ge("_VBC_"),role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):s.createElement(Vp,i({},this.props,{points:this._points,chartType:Wc.VerticalBarChart,xAxisType:this._xAxisType,calloutProps:n,tickParams:r},this._isHavingLine&&{isCalloutForStack:!0},{legendBars:t,datasetForXAxisDomain:this._xAxisLabels,barwidth:this._barWidth,focusZoneDirection:sd.horizontal,customizedCallout:this._getCustomizedCallout(),getmargins:this._getMargins,getGraphData:this._getGraphData,getAxisData:this._getAxisData,onChartMouseLeave:this._handleChartMouseLeave,getDomainMargins:this._getDomainMargins},this._xAxisType!==zc.NumericAxis&&{xAxisInnerPadding:2/3,xAxisOuterPadding:0},{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||16;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 va().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;this._calloutAnchorPoint!==e&&(this._calloutAnchorPoint=e,this.setState({refSelected:n,isCalloutVisible:""===this.state.selectedLegend||this.state.selectedLegend===e.legend,dataForHoverCard:e.y,calloutLegend:e.legend,color:e.color||t,xCalloutValue:e.xAxisCalloutData||e.x.toString(),yCalloutValue:e.yAxisCalloutData,dataPointCalloutProps:e,activeXdataPoint:e.x,YValueHover:i,hoverXValue:o,callOutAccessibilityData:e.callOutAccessibilityData}))},t.prototype._createNumericBars=function(e,t,n){var r=this,i=this.props.useSingleColor,o=void 0!==i&&i,a=this._getScales(e,t,!0),l=a.xBarScale,u=a.yBarScale,c=this._createColors(),d=this._points.map((function(t,n){var i=!(!r._legendHighlighted(t.legend)&&!r._noLegendHighlighted());r._classNames=qf(r.props.styles,{theme:r.props.theme,legendColor:r.state.color,shouldHighlight:i});var a=Math.max(u(t.y),0);if(a<1)return s.createElement(s.Fragment,{key:t.x}," ");var d=l(t.x),h=e-r.margins.bottom-u(t.y);return s.createElement("g",{key:t.x},s.createElement("rect",{x:d,className:r._classNames.opacityChangeOnHover,y:h,width:r._barWidth,"data-is-focusable":!r.props.hideTooltip,height:a,ref:function(e){r._refCallback(e,t.legend)},onClick:t.onClick,onMouseOver:r._onBarHover.bind(r,t,c(t.y)),"aria-label":r._getAriaLabel(t),role:"img",onMouseLeave:r._onBarLeave,onFocus:r._onBarFocus.bind(r,t,n,c(t.y)),onBlur:r._onBarLeave,fill:t.color&&!o?t.color:c(t.y)}),r._renderBarLabel(d,h,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=Ic(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(),u=this._points.map((function(t,n){var i=Math.max(a(t.y),0);if(i<1)return s.createElement(s.Fragment,{key:t.x}," ");var u=o(t.x),c=e-r.margins.bottom-a(t.y);return s.createElement("g",{key:t.x,transform:"translate("+.5*(o.bandwidth()-r._barWidth)+", 0)"},s.createElement("rect",{x:u,y:c,width:r._barWidth,height:i,"aria-label":r._getAriaLabel(t),role:"img",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)}),r._renderBarLabel(u,c,t.y))}));if(!this.props.showXAxisLablesTooltip)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(e){}if(!this.props.wrapXAxisLables&&this.props.showXAxisLablesTooltip){var c=Ic(n).call(o);try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(e){}var d={tooltipCls:this._classNames.tooltip,id:this._tooltipId,xAxis:c,showTooltip:this.props.showXAxisLablesTooltip};c&&ed(d)}return u},t.prototype._onLegendClick=function(e){this.state.selectedLegend===e?this.setState({selectedLegend:""}):this.setState({selectedLegend:e})},t.prototype._onLegendHover=function(e){this.setState({activeLegend:e})},t.prototype._onLegendLeave=function(){this.setState({activeLegend:""})},t.prototype._renderBarLabel=function(e,t,n){return this.props.hideLabels||this._barWidth<16?null:s.createElement("text",{x:e+this._barWidth/2,y:t-6,textAnchor:"middle",className:this._classNames.barLabel,"aria-hidden":!0},pa(n<1e3?".2~":".1",n)(n))},t}(s.Component),Xf=C(jf,(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"}),barLabel:{fontSize:Tn.small,fontWeight:Mn.semibold,fill:n.palette.neutralPrimary}}})),Kf=ue();!function(e){e.show="visibility",e.hide="hidden"}(Yf||(Yf={}));var Gf=function(e){function t(t){var n=e.call(this,t)||this;return n._isRtl=oe(),n._toFocusWholeStack=function(e){var t=n.props.isCalloutForStack,r=void 0!==t&&t;return e?""===n.state.selectedLegend: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,l=n._xAxisType===zc.NumericAxis,u=n._getScales(r,o,l).xBarScale,c=n._getFormattedLineData(n.props.data),d=[],h=[],p=[],f=n.props.theme,g=(null===(a=n.props.lineOptions)||void 0===a?void 0:a.lineBorderWidth)?Number.parseFloat(n.props.lineOptions.lineBorderWidth.toString()):0,m=l?0:u.bandwidth()/2;return Object.keys(c).forEach((function(r,o){for(var a=n._legendHighlighted(r)||n._noLegendHighlighted(),p=1;p<c[r].length;p++){var v=l?e(c[r][p-1].xItem.xAxisPoint):u(c[r][p-1].xItem.xAxisPoint),_=t(c[r][p-1].y),y=l?e(c[r][p].xItem.xAxisPoint):u(c[r][p].xItem.xAxisPoint),x=t(c[r][p].y);g>0&&h.push(s.createElement("line",{key:o+"-"+p+"-BorderLine",x1:v,y1:_,x2:y,y2:x,opacity:a?1:.1,strokeWidth:3+2*g,fill:"transparent",strokeLinecap:"round",stroke:f.palette.white,transform:"translate("+m+", 0)"})),d.push(s.createElement("line",i({key:o+"-"+p+"-line",x1:v,y1:_,x2:y,y2:x,opacity:a?1:.1,strokeWidth:3,strokeLinecap:"round",stroke:c[r][p].color,transform:"translate("+m+", 0)"},n.state.selectedLegend===r&&{onMouseOver:n._lineHover.bind(n,c[r][p-1]),onMouseLeave:n._lineHoverOut})))}})),Object.keys(c).forEach((function(r,o){c[r].forEach((function(a,c){p.push(s.createElement("circle",i({key:o+"-"+c+"-dot",cx:l?e(a.xItem.xAxisPoint):u(a.xItem.xAxisPoint),cy:t(a.y),onMouseOver:n.state.selectedLegend===r?n._lineHover.bind(n,a):n._onStackHover.bind(n,a.xItem)},n.state.selectedLegend===r&&{onMouseLeave:n._lineHoverOut},{r:n._getCircleVisibilityAndRadius(a.xItem.xAxisPoint,a.legend).radius,stroke:a.color,fill:n.props.theme.palette.white,strokeWidth:3,visibility:n._getCircleVisibilityAndRadius(a.xItem.xAxisPoint,a.legend).visibility,transform:"translate("+m+", 0)"})))}))})),s.createElement(s.Fragment,null,h,d,p)},n._getCircleVisibilityAndRadius=function(e,t){var r=n.state,i=r.selectedLegend,o=r.activeXAxisDataPoint;return""!==i?e===o&&i===t?{visibility:Yf.show,radius:8}:i===t?{visibility:Yf.show,radius:.3}:{visibility:Yf.hide,radius:0}:{visibility:o===e?Yf.show:Yf.hide,radius:8}},n._getMargins=function(e){n.margins=e},n._getCustomizedCallout=function(){var e=n.props.data.some((function(e){return e.lineData&&e.lineData.length>0}));return n.props.onRenderCalloutPerStack?n.props.onRenderCalloutPerStack(n.state.stackCalloutProps):n.props.onRenderCalloutPerDataPoint&&!e?n.props.onRenderCalloutPerDataPoint(n.state.dataPointCalloutProps,n._renderCallout):null},n._lineHover=function(e,t){t.persist(),n.setState({refSelected:t,isCalloutVisible:!0,xCalloutValue:""+e.xItem.xAxisPoint,yCalloutValue:""+(e.yAxisCalloutData||e.data||e.y),activeXAxisDataPoint:e.xItem.xAxisPoint,color:e.color})},n._lineHoverOut=function(){n.setState({refSelected:null,isCalloutVisible:!1,xCalloutValue:"",yCalloutValue:"",activeXAxisDataPoint:"",color:""})},n._handleMouseOut=function(){},n._handleChartMouseLeave=function(){n._calloutAnchorPoint=null,n.setState({isCalloutVisible:!1,activeXAxisDataPoint:""})},n._createBar=function(e,t,r,o){var a=n.props,l=a.barCornerRadius,u=void 0===l?0:l,c=a.barMinimumHeight,d=void 0===c?0:c,h=n.props.data.some((function(e){return e.lineData&&e.lineData.length>0})),p=n._toFocusWholeStack(h),f=n._points.map((function(o,a){var l=r-n.margins.bottom,c=e((n._xAxisType,zc.NumericAxis,o.xAxisPoint)),h=n._xAxisType===zc.NumericAxis?0:(e.bandwidth()-n._barWidth)/2,f=0,g=o.chartData.filter((function(e){return e.data>0}));if(g.length){var m=n._getBarGapAndScale(g,t),v=m.gapHeight,_=m.heightValueScale;if(!(_<0)){var y=g.map((function(e,t){var r=e.color?e.color:n._colors[t],m={},y=!(!n._legendHighlighted(e.legend)&&!n._noLegendHighlighted());n._classNames=Kf(n.props.styles,{theme:n.props.theme,shouldHighlight:y,href:n.props.href});var x=!p&&{"data-is-focusable":!n.props.hideTooltip,"aria-label":n._getAriaLabel(o,e),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,m),onBlur:n._handleMouseOut,onClick:n._onClick.bind(n,e),role:"img"},b=_*e.data;return b<d&&(b=d),l=l-b-(t?v:0),f+=e.data,u&&b>u&&t===g.length-1?s.createElement("path",i({key:t+a+""+p,className:n._classNames.opacityChangeOnHover,d:"\n M "+c+" "+(l+u)+"\n a "+u+" "+u+" 0 0 1 "+u+" "+-u+"\n h "+(n._barWidth-2*u)+"\n a "+u+" "+u+" 0 0 1 "+u+" "+u+"\n v "+(b-u)+"\n h "+-n._barWidth+"\n z\n ",fill:r,ref:function(e){return m.refElement=e},transform:"translate("+h+", 0)"},x)):b<1?s.createElement(s.Fragment,{key:t+a}," "):s.createElement("rect",i({key:t+a,className:n._classNames.opacityChangeOnHover,x:c,y:l,width:n._barWidth,height:b,fill:r,ref:function(e){return m.refElement=e}},x,{transform:"translate("+h+", 0)"}))})),x={},b=p&&{"data-is-focusable":!n.props.hideTooltip,"aria-label":n._getAriaLabel(o),onMouseOver:n._onStackHover.bind(n,o),onMouseMove:n._onStackHover.bind(n,o),onMouseLeave:n._handleMouseOut,onFocus:n._onStackFocus.bind(n,o,x),onBlur:n._handleMouseOut,onClick:n._onClick.bind(n,o),role:"img"};return s.createElement("g",{key:a+""+p},s.createElement("g",i({id:a+"-singleBar",ref:function(e){return x.refElement=e}},b),y),!n.props.hideLabels&&n._barWidth>=16&&s.createElement("text",{x:c+n._barWidth/2,y:l-6,textAnchor:"middle",className:n._classNames.barLabel,"data-is-focusable":!0,"aria-label":"Total: "+f,role:"img",transform:"translate("+h+", 0)"},pa(f<1e3?".2~":".1",f)(f)))}}}));if(!n.props.showXAxisLablesTooltip)try{document.getElementById(n._tooltipId)&&document.getElementById(n._tooltipId).remove()}catch(e){}if(!n.props.wrapXAxisLables&&n.props.showXAxisLablesTooltip){var g=Ic(o).call(e);try{document.getElementById(n._tooltipId)&&document.getElementById(n._tooltipId).remove()}catch(e){}var m={tooltipCls:n._classNames.tooltip,id:n._tooltipId,xAxis:g};g&&ed(m)}return f.filter((function(e){return!!e}))},n._getScales=function(e,t,r){var i=n._yMax,o=va().domain([0,i]).range([0,e-n.margins.bottom-n.margins.top]);if(r){var a=Ri(n._dataset,(function(e){return e.x})),s=Bi(n._dataset,(function(e){return e.x}));return{xBarScale:va().domain(n._isRtl?[a,s]:[s,a]).nice().range([n.margins.left+n._domainMargin,t-n.margins.right-n._barWidth-n._domainMargin]),yBarScale:o}}return{xBarScale:Eu().domain(n._xAxisLabels).range([n.margins.left+n._domainMargin,t-n.margins.right-n._domainMargin]).paddingInner(2/3),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===zc.NumericAxis?n._createNumericBars(r,i,o):n._createStringBars(r,i,o)},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},n._getAxisData=function(e){if(e&&e.yAxisDomainValues.length){var t=e.yAxisDomainValues;n._yMax=Math.max(t[t.length-1],n.props.yMaxValue||0)}},n._legendHighlighted=function(e){return n.state.selectedLegend===e||""===n.state.selectedLegend&&n.state.activeLegend===e},n._noLegendHighlighted=function(){return""===n.state.selectedLegend&&""===n.state.activeLegend},n._getAriaLabel=function(e,t){var n,r,i;if(!t){var o=e.xAxisCalloutData||e.xAxisPoint,a=e.chartData.map((function(e){return e.legend+", "+(e.yAxisCalloutData||e.data)+"."})).join(" "),s=null===(n=e.lineData)||void 0===n?void 0:n.map((function(e){return e.legend+", "+(e.yAxisCalloutData||e.data||e.y)+"."})).join(" ");return(null===(r=e.stackCallOutAccessibilityData)||void 0===r?void 0:r.ariaLabel)||o+". "+a+(s?" "+s:"")}var l=e.xAxisCalloutData||t.xAxisCalloutData||e.xAxisPoint,u=t.legend,c=t.yAxisCalloutData||t.data;return(null===(i=t.callOutAccessibilityData)||void 0===i?void 0:i.ariaLabel)||l+". "+u+", "+c+"."},n._getDomainMargins=function(e){if(n._xAxisType!==zc.NumericAxis){var t=e-(n.margins.left+8)-(n.margins.right+8),r=Math.min(n.props.barWidth||16,24),o=(3*n._xAxisLabels.length-2)*r;n._domainMargin=8,t>=o?n._domainMargin+=(t-o)/2:r=t/(3*n._xAxisLabels.length-2),n._barWidth=r}return i(i({},n.margins),{left:n.margins.left+n._domainMargin,right:n.margins.right+n._domainMargin})},n.state={isCalloutVisible:!1,selectedLegend:"",activeLegend:"",refSelected:null,dataForHoverCard:0,color:"",hoverXValue:"",YValueHover:[],xCalloutValue:"",yCalloutValue:"",activeXAxisDataPoint:"",calloutLegend:""},di("VERTICAL STACKED BAR CHART",t,{colors:"IVSChartDataPoint.color",chartLabel:"use your own title for chart"}),n._handleMouseOut=n._handleMouseOut.bind(n),n._calloutId=ge("callout"),n._tooltipId=ge("VSBCTooltipId_"),n._adjustProps(),n._dataset=n._createDataSetLayer(),n._createLegendsForLine=jn((function(e){return n._getLineLegends(e)})),n._domainMargin=8,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));this._classNames=Kf(this.props.styles,{theme:this.props.theme,href:this.props.href});var l=i(i({isCalloutVisible:this.state.isCalloutVisible,directionalHint:3,id:"toolTip"+this._calloutId,target:this.state.refSelected,isBeakVisible:!1,gapSpace:15,color:this.state.color,legend:this.state.calloutLegend,XValue:this.state.xCalloutValue,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard,YValueHover:this.state.YValueHover,hoverXValue:this.state.hoverXValue,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0},this.props.calloutProps),ud(this.state.callOutAccessibilityData)),u={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return s.createElement(Vp,i({},this.props,{points:this._dataset,chartType:Wc.VerticalStackedBarChart,xAxisType:this._xAxisType,calloutProps:l,tickParams:u,legendBars:a,datasetForXAxisDomain:this._xAxisLabels,isCalloutForStack:n,barwidth:this._barWidth,focusZoneDirection:o||t?sd.horizontal:sd.vertical,getmargins:this._getMargins,getGraphData:this._getGraphData,getAxisData:this._getAxisData,customizedCallout:this._getCustomizedCallout(),onChartMouseLeave:this._handleChartMouseLeave,getDomainMargins:this._getDomainMargins},this._xAxisType!==zc.NumericAxis&&{xAxisInnerPadding:2/3,xAxisOuterPadding:0},{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||16;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(fd,{XValue:e.xAxisCalloutData,Legend:e.legend,YValue:e.yAxisCalloutData,color:e.color,culture:this.props.culture}):null},t.prototype._onLegendClick=function(e){this.state.selectedLegend===e?this.setState({selectedLegend:""}):this.setState({selectedLegend:e})},t.prototype._onLegendHover=function(e){this.setState({activeLegend:e})},t.prototype._onLegendLeave=function(){this.setState({activeLegend:""})},t.prototype._getLegendData=function(e,t,n){var r=this;if(this.props.hideLegend)return s.createElement(s.Fragment,null);var o=[t.blueLight,t.blue,t.blueMid,t.red,t.black],a=[],l=this.props.allowHoverOnLegend,u=void 0===l||l;e.forEach((function(e){e.chartData.forEach((function(e){var t=e.color?e.color:o[Math.floor(4*Math.random()+1)];if(!(a.filter((function(n){return n.title===e.legend&&n.color===t})).length>0)){var n={title:e.legend,color:t,action:function(){r._onLegendClick(e.legend)},hoverAction:u?function(){r._handleChartMouseLeave(),r._onLegendHover(e.legend)}:void 0,onMouseOutAction:u?function(){return r._onLegendLeave()}:void 0};a.push(n)}}))}));var c=[];n&&n.length>0&&n.forEach((function(e){var t={title:e.title,color:e.color,isLineLegendInBarChart:!0,action:function(){r._onLegendClick(e.title)},hoverAction:u?function(){r._handleChartMouseLeave(),r._onLegendHover(e.title)}:void 0,onMouseOutAction:u?function(){return r._onLegendLeave()}:void 0};c.push(t)}));var d=c.concat(a);return s.createElement(Bh,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){this._calloutAnchorPoint!==t&&(this._calloutAnchorPoint=t,this.setState({refSelected:r,isCalloutVisible:""===this.state.selectedLegend||this.state.selectedLegend===t.legend,calloutLegend:t.legend,dataForHoverCard:t.data,color:n,xCalloutValue:t.xAxisCalloutData?t.xAxisCalloutData:e,yCalloutValue:t.yAxisCalloutData,dataPointCalloutProps:t,callOutAccessibilityData:t.callOutAccessibilityData}))},t.prototype._onStackHover=function(e,t){t.persist(),this._onStackHoverFocus(e,t)},t.prototype._onStackHoverFocus=function(e,t){var n=e.lineData,r=void 0!==n&&n.length>0;r&&n.forEach((function(e){e.data=e.data||e.y,e.shouldDrawBorderBottom=!0})),this.setState({refSelected:t,isCalloutVisible:!0,YValueHover:r?a(a([],n.sort((function(e,t){return e.data<t.data?1:-1}))),e.chartData.slice().reverse()):e.chartData.slice().reverse(),hoverXValue:e.xAxisPoint,stackCalloutProps:e,activeXAxisDataPoint:e.xAxisPoint,callOutAccessibilityData:e.stackCallOutAccessibilityData})},t.prototype._onRectFocus=function(e,t,n,r){r.refElement&&this._onRectFocusHover(t,e,n,r.refElement)},t.prototype._onStackFocus=function(e,t){t.refElement&&this._onStackHoverFocus(e,t.refElement)},t.prototype._onClick=function(e,t){var n,r;null===(r=(n=this.props).onBarClick)||void 0===r||r.call(n,t,e),this.props.href&&(window.location.href=this.props.href)},t.prototype._getBarGapAndScale=function(e,t,n){var r=this.props.barGapMax,i=void 0===r?0:r,o=e.reduce((function(e,t){return e+t.data}),0),a=null!=n?n:t(o),s=i&&e.length-1,l=s&&Math.max(1,Math.min(i,.2*a/s));return{gapHeight:l,heightValueScale:(a-l*s)/o}},t}(s.Component),Zf=C(Gf,(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"}),barLabel:{fontSize:Tn.small,fontWeight:Mn.semibold,fill:r.palette.neutralPrimary}}})),$f=ue(),Qf=.1/.9,Jf=function(e){function t(t){var n=e.call(this,t)||this;return n._isRtl=oe(),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){return n._legendHighlighted(e)||n._noLegendHighlighted()?"":"0.1"},n._onBarHover=function(e,t,r){r.persist(),n._calloutAnchorPoint!==e&&(n._calloutAnchorPoint=e,n.setState({refSelected:r,isCalloutVisible:""===n.state.selectedLegend||n.state.selectedLegend===e.legend,calloutLegend:e.legend,dataForHoverCard:e.data,color:e.color,xCalloutValue:e.xAxisCalloutData,yCalloutValue:e.yAxisCalloutData,dataPointCalloutProps:e,callOutAccessibilityData:n.props.isCalloutForStack?t.stackCallOutAccessibilityData:e.callOutAccessibilityData,YValueHover:t.groupSeries,hoverXValue:e.xAxisCalloutData}))},n._onBarLeave=function(){},n._handleChartMouseLeave=function(){n._calloutAnchorPoint=null,n.setState({isCalloutVisible:!1})},n._onBarFocus=function(e,t,r){n._refArray.forEach((function(i,o){i.index===e.legend&&r===o&&n.setState({refSelected:i.refElement,isCalloutVisible:""===n.state.selectedLegend||n.state.selectedLegend===e.legend,calloutLegend:e.legend,dataForHoverCard:e.data,color:e.color,xCalloutValue:e.xAxisCalloutData,yCalloutValue:e.yAxisCalloutData,dataPointCalloutProps:e,callOutAccessibilityData:n.props.isCalloutForStack?t.stackCallOutAccessibilityData:e.callOutAccessibilityData,YValueHover:t.groupSeries,hoverXValue:e.xAxisCalloutData})}))},n._redirectToUrl=function(e){e&&(window.location.href=e)},n._buildGraph=function(e,t,r,i,o){var a=[],l=[],u=va().domain([0,n._yMax]).range([0,i-n.margins.bottom-n.margins.top]),c=Object.keys(n._datasetForBars[0]).splice(0,n._keys.length);if(c.forEach((function(t,o){var d=e.indexNum*c.length+o,h=e[t],p=r(t),f=Math.max(i-n.margins.bottom-u(h.data),0);h.data&&a.push(s.createElement("rect",{className:n._classNames.opacityChangeOnHover,key:e.indexNum+"-"+o,height:Math.max(u(h.data),0),width:n._barWidth,x:p,y:f,"data-is-focusable":!n.props.hideTooltip,opacity:n._getOpacity(h.legend),ref:function(e){n._refCallback(e,h.legend,d)},fill:h.color,onMouseOver:n._onBarHover.bind(n,h,e),onMouseMove:n._onBarHover.bind(n,h,e),onMouseOut:n._onBarLeave,onFocus:n._onBarFocus.bind(n,h,e,d),onBlur:n._onBarLeave,onClick:n.props.href?n._redirectToUrl.bind(n,n.props.href):h.onClick,"aria-label":n._getAriaLabel(h,e.xAxisPoint),role:"img"})),h.data&&!n.props.hideLabels&&n._barWidth>=16&&l.push(s.createElement("text",{x:p+n._barWidth/2,y:f-6,textAnchor:"middle",className:n._classNames.barLabel,"aria-hidden":!0},pa(h.data<1e3?".2~":".1",h.data)(h.data)))})),!n.props.wrapXAxisLables&&n.props.showXAxisLablesTooltip){var d=Ic(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)"},a,l)},n._createDataset=function(e){var t=[],r=[];return e.forEach((function(e,n){var o={},a={},s=[];e.series.forEach((function(e){o[e.key]=e.data,a[e.key]=i({},e),s.push(e)})),a.xAxisPoint=e.name,a.indexNum=n,a.groupSeries=s,a.stackCallOutAccessibilityData=e.stackCallOutAccessibilityData,t.push(a),r.push(o)})),n._dataset=r,t},n._createX0Scale=function(e){return Eu().domain(n._xAxisLabels).range(n._isRtl?[e-n.margins.right-n._domainMargin,n.margins.left+n._domainMargin]:[n.margins.left+n._domainMargin,e-n.margins.right-n._domainMargin]).paddingInner(2/(2+n._keys.length+(n._keys.length-1)*Qf))},n._createX1Scale=function(e){var t=e.bandwidth();return Eu().domain(n._keys).range(n._isRtl?[t,0]:[0,t]).paddingInner(.1)},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._handleChartMouseLeave(),n._onLegendHover(e.legend)},onMouseOutAction:function(){n._onLegendLeave()}};a.push(r)}}))})),s.createElement(Bh,i({legends:a,overflowProps:n.props.legendsOverflowProps,enabledWrapLines:n.props.enabledLegendsWrapLines,focusZonePropsInHoverCard:n.props.focusZonePropsForLegendsInHoverCard},n.props.legendProps))},n._getAxisData=function(e){if(e&&e.yAxisDomainValues.length){var t=e.yAxisDomainValues;n._yMax=Math.max(t[t.length-1],n.props.yMaxValue||0)}},n._legendHighlighted=function(e){return n.state.selectedLegend===e||""===n.state.selectedLegend&&n.state.activeLegend===e},n._noLegendHighlighted=function(){return""===n.state.selectedLegend&&""===n.state.activeLegend},n._getAriaLabel=function(e,t){var n,r=e.xAxisCalloutData||t,i=e.legend,o=e.yAxisCalloutData||e.data;return(null===(n=e.callOutAccessibilityData)||void 0===n?void 0:n.ariaLabel)||r+". "+i+", "+o+"."},n._getDomainMargins=function(e){var t=e-(n.margins.left+8)-(n.margins.right+8),r=Math.min(n.props.barwidth||16,24),o=n._keys.length*r+(n._keys.length-1)*Qf*r,a=n._xAxisLabels.length*o+2*(n._xAxisLabels.length-1)*r;return n._domainMargin=8,t>=a?n._domainMargin+=(t-a)/2:r=(o=t/(n._xAxisLabels.length+(n._xAxisLabels.length-1)*(2/(n._keys.length+(n._keys.length-1)*Qf))))/(n._keys.length+(n._keys.length-1)*Qf),n._barWidth=r,i(i({},n.margins),{left:n.margins.left+n._domainMargin,right:n.margins.right+n._domainMargin})},n._createSet=jn((function(e){return n._createDataSetOfGVBC(e)})),n.state={color:"",dataForHoverCard:0,isCalloutVisible:!1,refSelected:null,selectedLegend:"",xCalloutValue:"",yCalloutValue:"",YValueHover:[],hoverXValue:"",calloutLegend:"",activeLegend:""},di("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 property. Handling with default value.",legendColor:"Dont use this property. colour will pick from given data."}),n._refArray=[],n._calloutId=ge("callout"),n._tooltipId=ge("GVBCTooltipId_"),n._domainMargin=8,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._xAxisType=ad(t[0].name,!0);var l=this._getLegendData(t,this.props.theme.palette),u=Ri(this._dataset,(function(t){return Ri(e._keys,(function(e){return t[e]}))}));this._yMax=Math.max(u,this.props.yMaxValue||0),this._classNames=$f(this.props.styles,{theme:this.props.theme,href:this.props.href});var c=i(i(i({target:this.state.refSelected,isCalloutVisible:this.state.isCalloutVisible,directionalHint:3,id:"toolTip"+this._calloutId,gapSpace:15,isBeakVisible:!1,setInitialFocus:!0,color:this.state.color,Legend:this.state.calloutLegend,XValue:this.state.xCalloutValue,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard,YValueHover:this.state.YValueHover,hoverXValue:this.state.hoverXValue,onDismiss:this._closeCallout},this.props.calloutProps),{preventDismissOnLostFocus:!0}),ud(this.state.callOutAccessibilityData,"text",!1)),d={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return s.createElement(Vp,i({},this.props,{points:this._datasetForBars,chartType:Wc.GroupedVerticalBarChart,calloutProps:c,legendBars:l,xAxisType:this._xAxisType,datasetForXAxisDomain:this._xAxisLabels,tickParams:d,tickPadding:this.props.tickPadding||5,maxOfYVal:this._yMax,svgFocusZoneProps:{direction:sd.horizontal},customizedCallout:this._getCustomizedCallout(),getmargins:this._getMargins,getGraphData:this._getGraphData,getAxisData:this._getAxisData,onChartMouseLeave:this._handleChartMouseLeave,getDomainMargins:this._getDomainMargins,xAxisInnerPadding:2/(2+this._keys.length+(this._keys.length-1)*Qf),xAxisOuterPadding:0,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.selectedLegend===e?this.setState({selectedLegend:""}):this.setState({selectedLegend:e})},t.prototype._onLegendHover=function(e){this.setState({activeLegend:e})},t.prototype._onLegendLeave=function(){this.setState({activeLegend:""})},t}(s.Component),eg=C(Jf,(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"}),barLabel:{fontSize:Tn.small,fontWeight:Mn.semibold,fill:t.palette.neutralPrimary}}})),tg=ue(),ng=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){return n._legendHighlighted(e)||n._noLegendHighlighted()?"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:""===n.state.selectedLegend||n.state.selectedLegend===t.legend,calloutYValue:""+t.rectText,calloutTextColor:n._colorScale(t.value),calloutLegend:t.legend,ratio:t.ratio||null,descriptionMessage:t.descriptionMessage||"",calloutId:e,callOutAccessibilityData:t.callOutAccessibilityData})},n._onRectMouseOver=function(e,t,r){r.persist(),n._calloutAnchorPoint!==t&&(n._calloutAnchorPoint=t,n.setState({target:n._rectRefArray[e].refElement,isCalloutVisible:""===n.state.selectedLegend||n.state.selectedLegend===t.legend,calloutYValue:""+t.rectText,calloutTextColor:n._colorScale(t.value),calloutLegend:t.legend,ratio:t.ratio||null,descriptionMessage:t.descriptionMessage||"",calloutId:e,callOutAccessibilityData:t.callOutAccessibilityData}))},n._onRectBlurOrMouseOut=function(){},n._handleChartMouseLeave=function(){n._calloutAnchorPoint=null,n.setState({isCalloutVisible:!1})},n._createRectangles=function(){var e=[];return n._stringYAxisDataPoints.slice().reverse().forEach((function(t,r){n._dataSet[t].forEach((function(t,i){var o=""+r+i,a=s.createElement("g",{key:o,role:"img","aria-label":n._getAriaLabel(t),"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,o,t)},onFocus:n._onRectFocus.bind(n,o,t),onBlur:n._onRectBlurOrMouseOut,onMouseOver:n._onRectMouseOver.bind(n,o,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+")"},cd(t.rectText,n.props.culture)));e.push(a)}))})),e},n._onLegendHover=function(e){n.setState({activeLegend:e})},n._onLegendLeave=function(){n.setState({activeLegend:""})},n._onLegendClick=function(e){n.state.selectedLegend===e?n.setState({selectedLegend:""}):n.setState({selectedLegend:e})},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._handleChartMouseLeave(),n._onLegendHover(e.legend)},onMouseOutAction:function(){n._onLegendLeave()}};o.push(t)})),s.createElement(Bh,i({},r,{legends:o}))},n._getColorScale=function(){var e=n.props,t=e.domainValuesForColorScale,r=e.rangeValuesForColorScale;return va().domain(t).range(r)},n._getXIndex=function(e){return n._xAxisType===zc.DateAxis?""+e.getTime():n._xAxisType===zc.StringAxis?e:n._xAxisType===zc.NumericAxis?""+e:""},n._getYIndex=function(e){return n._yAxisType===Uc.DateAxis?""+e.getTime():n._yAxisType===Uc.StringAxis?e:n._yAxisType===Uc.NumericAxis?""+e:""},n._createNewDataSet=function(e,t,r,o,s){var l=[];e.forEach((function(e){e.data.forEach((function(t){l.push(i(i({},t),{legend:e.legend}))}))}));var u={},c={},d={};return l.forEach((function(e){var t=n._getXIndex(e.x),r=n._getYIndex(e.y);d[t]="1",c[r]="1",u[r]?u[r]=a(a([],u[r]),[e]):u[r]=[e]})),Object.keys(u).forEach((function(e){u[e].sort((function(e,t){return n._xAxisType===zc.StringAxis?e.x.toLowerCase()>t.x.toLowerCase()?1:-1:n._xAxisType===zc.DateAxis?e.x.getTime()-t.x.getTime():n._xAxisType===zc.NumericAxis?+e.x>+t.x?1:-1:e.x>t.x?1:-1})).forEach((function(e){n._xAxisType===zc.DateAxis&&(e.x=n._getStringFormattedDate(e.x,t)),n._xAxisType===zc.NumericAxis&&(e.x=n._getStringFormattedNumber(e.x,r)),n._xAxisType===zc.StringAxis&&(e.x=n._getFormattedLabelForXAxisDataPoint(e.x)),n._yAxisType===Uc.DateAxis&&(e.y=n._getStringFormattedDate(e.y,o)),n._yAxisType===Uc.NumericAxis&&(e.y=n._getStringFormattedNumber(e.y,s)),n._yAxisType===Uc.StringAxis&&(e.y=n._getFormattedLabelForYAxisDataPoint(e.y))}))})),Object.keys(u).forEach((function(e){n._yAxisType===Uc.DateAxis?u[n._getStringFormattedDate(e,o)]=u[e]:n._yAxisType===Uc.NumericAxis?u[""+n._getStringFormattedNumber(e,s)]=u[e]:u[n._getFormattedLabelForYAxisDataPoint(e)]=u[e]})),{dataSet:u,yAxisPoints:n._getYAxisDataPoints(c),xAxisPoints:n._getXAxisDataPoints(d)}},n._getXAxisDataPoints=function(e){return Object.keys(e).sort((function(e,t){return n._xAxisType===zc.DateAxis||n._xAxisType===zc.NumericAxis?+e-+t:e.toLowerCase()>t.toLowerCase()?1:-1})).map((function(e){return n._xAxisType===zc.DateAxis?n._getStringFormattedDate(e,n.props.xAxisDateFormatString):n._xAxisType===zc.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===Uc.DateAxis||n._yAxisType===Uc.NumericAxis?+e-+t:e.toLowerCase()>t.toLowerCase()?1:-1})).map((function(e){return n._yAxisType===Uc.DateAxis?n._getStringFormattedDate(e,n.props.yAxisDateFormatString):n._yAxisType===Uc.NumericAxis?n._getStringFormattedNumber(e,n.props.yAxisNumberFormatString):n._getFormattedLabelForYAxisDataPoint(e)}))},n._getStringFormattedDate=function(e,t){var n=new Date;return n.setTime(+e),tl(t||"%b/%d")(n)},n._getStringFormattedNumber=function(e,t){return ha(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})},n._legendHighlighted=function(e){return n.state.selectedLegend===e||""===n.state.selectedLegend&&n.state.activeLegend===e},n._noLegendHighlighted=function(){return""===n.state.selectedLegend&&""===n.state.activeLegend},n._getAriaLabel=function(e){var t,n=e.x,r=e.y,i=e.legend,o=e.ratio?e.ratio[0]+"/"+e.ratio[1]:e.rectText||e.value,a=e.descriptionMessage;return(null===(t=e.callOutAccessibilityData)||void 0===t?void 0:t.ariaLabel)||n+", "+r+". "+i+", "+o+"."+(a?" "+a+".":"")};var r=n._getXandY(),o=r.x,l=r.y;return n._xAxisType=ad(o,!0),n._yAxisType=ad(l,!1),n._createSet=jn((function(e,t,r,i,o){return n._createNewDataSet(e,t,r,i,o)})),n.state={selectedLegend:"",activeLegend:"",isCalloutVisible:!1,target:null,calloutLegend:"",calloutTextColor:"",calloutYValue:"",ratio:null,descriptionMessage:"",calloutId:""},n}return r(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.data,r=t.xAxisDateFormatString,o=t.xAxisNumberFormatString,a=t.yAxisDateFormatString,l=t.yAxisNumberFormatString;this._colorScale=this._getColorScale();var u=this._createSet(n,r,o,a,l),c=u.dataSet,d=u.xAxisPoints,h=u.yAxisPoints;this._dataSet=c,this._stringYAxisDataPoints=h,this._stringXAxisDataPoints=d,this._classNames=tg(this.props.styles,{theme:this.props.theme});var p=i(i(i(i({isBeakVisible:!1,gapSpace:8},this.props.calloutProps),{isCalloutVisible:this.state.isCalloutVisible,id:this.state.calloutId,YValue:this.state.calloutYValue,legend:this.state.calloutLegend,color:this.state.calloutTextColor,target:this.state.target,styles:this._classNames.subComponentStyles.calloutStyles,directionalHint:3,onDismiss:this._closeCallout}),ud(this.state.callOutAccessibilityData,"text",!1)),{preventDismissOnLostFocus:!0}),f=i(i({},this.state.ratio&&{ratio:this.state.ratio}),{descriptionMessage:this.state.descriptionMessage});return s.createElement(Vp,i({},this.props,{points:n,chartType:Wc.HeatMapChart,xAxisType:zc.StringAxis,yAxisType:Uc.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:sd.bidirectional},legendBars:this._createLegendBars(),onChartMouseLeave:this._handleChartMouseLeave,children:function(t){return e._xAxisScale=t.xScale,e._yAxisScale=t.yScale,e._createRectangles()}}))},t}(s.Component),rg=C(ng,(function(e){var t=e.theme;return{root:{},text:[t.fonts.medium,{pointerEvents:"none",fill:t.palette.white,fontWeight:Mn.semibold}],subComponentStyles:{cartesianStyles:{},calloutStyles:{root:{maxWidth:"238px"}}}}}));function ig(e,t){return t-1-e.height}function og(e,t){return e.sourceLinks.length?e.depth:t-1}function ag(e){return function(){return e}}function sg(e,t){return ug(e.source,t.source)||e.index-t.index}function lg(e,t){return ug(e.target,t.target)||e.index-t.index}function ug(e,t){return e.y0-t.y0}function cg(e){return e.value}function dg(e){return e.index}function hg(e){return e.nodes}function pg(e){return e.links}function fg(e,t){const n=e.get(t);if(!n)throw new Error("missing: "+t);return n}function gg({nodes:e}){for(const t of e){let e=t.y0,n=e;for(const n of t.sourceLinks)n.y0=e+n.width/2,e+=n.width;for(const e of t.targetLinks)e.y1=n+e.width/2,n+=e.width}}class mg{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(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._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t)}this._x0=e,this._y0=t}}function vg(e){return new mg(e,!0)}var _g=ue(),yg="#757575",xg=[{fillColor:"#00758F",borderColor:"#002E39"},{fillColor:"#77004D",borderColor:"#43002C"},{fillColor:"#4F6BED",borderColor:"#3B52B4"},{fillColor:"#937600",borderColor:"#6D5700"},{fillColor:"#286EA8",borderColor:"#00457E"},{fillColor:"#A43FB1",borderColor:"#7C158A"},{fillColor:"#CC3595",borderColor:"#7F215D"},{fillColor:"#0E7878",borderColor:"#004E4E"},{fillColor:"#8764B8",borderColor:"#4B3867"},{fillColor:"#9C663F",borderColor:"#6D4123"}],bg="#323130",Cg="#FFFFFF",kg=function(e){function t(t){var n=e.call(this,t)||this;return n._isRtl=oe(),n._onCloseCallout=function(){n.setState({isCalloutVisible:!1,refSelected:void 0,descriptionMessage:""})},n._onBlur=function(){},n._fillNodeColors=function(e){return n.state.selectedState?n.state.selectedState&&n.state.selectedNodes.has(e.index)&&n.state.selectedNode?n.state.selectedNode.color:n.state.selectedState&&!n.state.selectedNode?e.color:void 0:e.color},n._fillNodeBorder=function(e){return n.state.selectedState?n.state.selectedState&&n.state.selectedNodes.has(e.index)&&n.state.selectedNode?n.state.selectedNode.borderColor:(n.state.selectedState&&n.state.selectedNodes.has(e.index),e.borderColor):e.borderColor},n.state={containerHeight:468,containerWidth:912,selectedState:!1,selectedLinks:new Set,selectedNodes:new Set,shouldOverflow:!1,isCalloutVisible:!1},n._calloutId=ge("callout"),n._linkId=ge("link"),n._margins={top:36,right:48,bottom:32,left:48},n._preRenderLayout(),n._normalizeData=jn((function(e){return n._normalizeSankeyData(e)})),n}return r(t,e),t.prototype.componentDidMount=function(){this._fitParentContainer()},t.prototype.componentDidUpdate=function(e){e.shouldResize!==this.props.shouldResize&&this._fitParentContainer()},t.prototype.componentWillUnmount=function(){cancelAnimationFrame(this._reqID)},t.prototype.render=function(){var e=this,t=this.props,n=t.theme,r=t.className,o=t.styles,a=t.pathColor;this._classNames=_g(o,{theme:n,width:this.state.containerWidth,height:this.state.containerHeight,pathColor:a,className:r});var l,u=this._preRenderLayout(),c=u.height,d=u.width;this._normalizeData(this.props.data.SankeyChartData),l=this._adjustPadding(this._sankey,c-6,this._nodesInColumn),this._sankey.nodePadding(l),this._sankey(this.props.data.SankeyChartData),this._populateNodeActualValue(this.props.data.SankeyChartData),this._assignNodeColors();var h=this._createNodes(d),p=this._createLinks(),f={isCalloutVisible:this.state.isCalloutVisible,directionalHint:3,id:"toolTip"+this._calloutId,target:this.state.refSelected,color:this.state.color,XValue:this.state.xCalloutValue,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard,descriptionMessage:this.state.descriptionMessage,isBeakVisible:!1,gapSpace:15,onDismiss:this._onCloseCallout,className:this._classNames.calloutContentRoot,preventDismissOnLostFocus:!0};return s.createElement("div",{className:this._classNames.root,role:"presentation",ref:function(t){return e.chartContainer=t},onMouseLeave:this._onCloseCallout},s.createElement(Vd,{direction:sd.bidirectional,isCircularNavigation:!0,handleTabKey:1},s.createElement("svg",{width:d,height:c,id:ge("sankeyChart")},s.createElement("g",{className:this._classNames.links,strokeOpacity:1},p),s.createElement("g",{className:this._classNames.nodes},h),f.isCalloutVisible&&s.createElement(Ci,i({},f),s.createElement(fd,{XValue:f.XValue,YValue:f.YValue,color:f.color,descriptionMessage:f.descriptionMessage?f.descriptionMessage:""})))))},t.prototype._preRenderLayout=function(){var e=this.state.containerWidth-this._margins.right,t=this.state.containerHeight-this._margins.bottom>0?this.state.containerHeight-this._margins.bottom:0;return this._sankey=function(){let e,t,n,r=0,i=0,o=1,a=1,s=24,l=8,u=dg,c=og,d=hg,h=pg,p=6;function f(){const e={nodes:d.apply(null,arguments),links:h.apply(null,arguments)};return g(e),m(e),v(e),_(e),y(e),gg(e),e}function g({nodes:e,links:t}){for(const[t,n]of e.entries())n.index=t,n.sourceLinks=[],n.targetLinks=[];const r=new Map(e.map(((t,n)=>[u(t,n,e),t])));for(const[e,n]of t.entries()){n.index=e;let{source:t,target:i}=n;"object"!=typeof t&&(t=n.source=fg(r,t)),"object"!=typeof i&&(i=n.target=fg(r,i)),t.sourceLinks.push(n),i.targetLinks.push(n)}if(null!=n)for(const{sourceLinks:t,targetLinks:r}of e)t.sort(n),r.sort(n)}function m({nodes:e}){for(const t of e)t.value=void 0===t.fixedValue?Math.max(Wi(t.sourceLinks,cg),Wi(t.targetLinks,cg)):t.fixedValue}function v({nodes:e}){const t=e.length;let n=new Set(e),r=new Set,i=0;for(;n.size;){for(const e of n){e.depth=i;for(const{target:t}of e.sourceLinks)r.add(t)}if(++i>t)throw new Error("circular link");n=r,r=new Set}}function _({nodes:e}){const t=e.length;let n=new Set(e),r=new Set,i=0;for(;n.size;){for(const e of n){e.height=i;for(const{source:t}of e.targetLinks)r.add(t)}if(++i>t)throw new Error("circular link");n=r,r=new Set}}function y(n){const u=function({nodes:e}){const n=Ri(e,(e=>e.depth))+1,i=(o-r-s)/(n-1),a=new Array(n);for(const t of e){const e=Math.max(0,Math.min(n-1,Math.floor(c.call(null,t,n))));t.layer=e,t.x0=r+e*i,t.x1=t.x0+s,a[e]?a[e].push(t):a[e]=[t]}if(t)for(const e of a)e.sort(t);return a}(n);e=Math.min(l,(a-i)/(Ri(u,(e=>e.length))-1)),function(t){const n=Bi(t,(t=>(a-i-(t.length-1)*e)/Wi(t,cg)));for(const r of t){let t=i;for(const i of r){i.y0=t,i.y1=t+i.value*n,t=i.y1+e;for(const e of i.sourceLinks)e.width=e.value*n}t=(a-t+e)/(r.length+1);for(let e=0;e<r.length;++e){const n=r[e];n.y0+=t*(e+1),n.y1+=t*(e+1)}L(r)}}(u);for(let e=0;e<p;++e){const t=Math.pow(.99,e),n=Math.max(1-t,(e+1)/p);b(u,t,n),x(u,t,n)}}function x(e,n,r){for(let i=1,o=e.length;i<o;++i){const o=e[i];for(const e of o){let t=0,r=0;for(const{source:n,value:i}of e.targetLinks){let o=i*(e.layer-n.layer);t+=A(n,e)*o,r+=o}if(!(r>0))continue;let i=(t/r-e.y0)*n;e.y0+=i,e.y1+=i,S(e)}void 0===t&&o.sort(ug),C(o,r)}}function b(e,n,r){for(let i=e.length-2;i>=0;--i){const o=e[i];for(const e of o){let t=0,r=0;for(const{target:n,value:i}of e.sourceLinks){let o=i*(n.layer-e.layer);t+=w(e,n)*o,r+=o}if(!(r>0))continue;let i=(t/r-e.y0)*n;e.y0+=i,e.y1+=i,S(e)}void 0===t&&o.sort(ug),C(o,r)}}function C(t,n){const r=t.length>>1,o=t[r];E(t,o.y0-e,r-1,n),k(t,o.y1+e,r+1,n),E(t,a,t.length-1,n),k(t,i,0,n)}function k(t,n,r,i){for(;r<t.length;++r){const o=t[r],a=(n-o.y0)*i;a>1e-6&&(o.y0+=a,o.y1+=a),n=o.y1+e}}function E(t,n,r,i){for(;r>=0;--r){const o=t[r],a=(o.y1-n)*i;a>1e-6&&(o.y0-=a,o.y1-=a),n=o.y0-e}}function S({sourceLinks:e,targetLinks:t}){if(void 0===n){for(const{source:{sourceLinks:e}}of t)e.sort(lg);for(const{target:{targetLinks:t}}of e)t.sort(sg)}}function L(e){if(void 0===n)for(const{sourceLinks:t,targetLinks:n}of e)t.sort(lg),n.sort(sg)}function A(t,n){let r=t.y0-(t.sourceLinks.length-1)*e/2;for(const{target:i,width:o}of t.sourceLinks){if(i===n)break;r+=o+e}for(const{source:e,width:i}of n.targetLinks){if(e===t)break;r-=i}return r}function w(t,n){let r=n.y0-(n.targetLinks.length-1)*e/2;for(const{source:i,width:o}of n.targetLinks){if(i===t)break;r+=o+e}for(const{target:e,width:i}of t.sourceLinks){if(e===n)break;r-=i}return r}return f.update=function(e){return gg(e),e},f.nodeId=function(e){return arguments.length?(u="function"==typeof e?e:ag(e),f):u},f.nodeAlign=function(e){return arguments.length?(c="function"==typeof e?e:ag(e),f):c},f.nodeSort=function(e){return arguments.length?(t=e,f):t},f.nodeWidth=function(e){return arguments.length?(s=+e,f):s},f.nodePadding=function(t){return arguments.length?(l=e=+t,f):l},f.nodes=function(e){return arguments.length?(d="function"==typeof e?e:ag(e),f):d},f.links=function(e){return arguments.length?(h="function"==typeof e?e:ag(e),f):h},f.linkSort=function(e){return arguments.length?(n=e,f):n},f.size=function(e){return arguments.length?(r=i=0,o=+e[0],a=+e[1],f):[o-r,a-i]},f.extent=function(e){return arguments.length?(r=+e[0][0],o=+e[1][0],i=+e[0][1],a=+e[1][1],f):[[r,i],[o,a]]},f.iterations=function(e){return arguments.length?(p=+e,f):p},f}().nodeWidth(124).extent([[this._margins.left,this._margins.top],[e-1,t-6]]).nodeAlign(this._isRtl?ig:og),{height:t,width:e}},t.prototype._populateNodeActualValue=function(e){e.links.forEach((function(e){e.unnormalizedValue||(e.unnormalizedValue=e.value)})),e.nodes.forEach((function(e){e.actualValue=Math.max(Wi(e.sourceLinks,(function(e){return e.unnormalizedValue})),Wi(e.targetLinks,(function(e){return e.unnormalizedValue})))}))},t.prototype._normalizeSankeyData=function(e){this._nodesInColumn=this._populateNodeInColumns(e,this._sankey),this._adjustOnePercentHeightNodes(this._nodesInColumn)},t.prototype._populateNodeInColumns=function(e,t){t(e);var n={};return e.nodes.forEach((function(e){var t=e.layer;n[t]?n[t].push(e):n[t]=[e]})),n},t.prototype._adjustOnePercentHeightNodes=function(e){var t=this;Object.values(e).map((function(e){return Wi(e,(function(e){return e.value}))})).forEach((function(n,r){var i=0;e[r].forEach((function(e){var t=e.value/n*100;e.actualValue=e.value,t<1?(e.value=.01*n,i+=1):i+=t}));var o=0!==i?i/100:1;o>1&&e[r].forEach((function(e){e.value=e.value/o,t._changeColumnValue(e,e.actualValue,e.value)}))}))},t.prototype._changeColumnValue=function(e,t,n){e.sourceLinks.forEach((function(e){e.unnormalizedValue=e.value;var r=e.value/t;e.value=n*r})),e.targetLinks.forEach((function(e){e.unnormalizedValue=e.value;var r=e.value/t;e.value=n*r}))},t.prototype._adjustPadding=function(e,t,n){var r=this._sankey.nodePadding();return Object.values(n).forEach((function(e){var n=.3*t;n<t-Wi(e,(function(e){return e.y1-e.y0}))&&(r=Math.min(r,n/(e.length-1)))})),r},t.prototype._createLinks=function(){var e=this,t=[];return this.props.data.SankeyChartData&&this.props.data.SankeyChartData.links.forEach((function(n,r){var i,o=[{x:(i=n).source.x1,y0:i.y0+i.width/2,y1:i.y0-i.width/2},{x:i.target.x0,y0:i.y1+i.width/2,y1:i.y1-i.width/2}],a=gf().x((function(e){return e.x})).y0((function(e){return e.y0})).y1((function(e){return e.y1})).curve(vg),l="url(#gradient-"+e._linkId+"-"+r+")",u=s.createElement("g",{key:e._linkId+"-"+r},s.createElement("defs",null,s.createElement("linearGradient",{id:"gradient-"+e._linkId+"-"+r,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},s.createElement("stop",{offset:"0",stopColor:n.source.color}),s.createElement("stop",{offset:"100%",stopColor:n.target.color}))),s.createElement("path",{d:a(o),id:ge("link"),fill:e._fillStreamColors(n,l),stroke:e._fillStreamBorder(n,l),strokeWidth:"2",strokeOpacity:e._getOpacityStreamBorder(n),onMouseOver:e._onStreamHover.bind(e,n),onMouseOut:function(){e._onStreamLeave(n)},onFocus:e._onFocusLink.bind(e,n),onBlur:e._onBlur,fillOpacity:e._getOpacityStream(n),"data-is-focusable":!0,"aria-label":"link from"+n.source.name+"to"+n.target.name+"with weight"+n.unnormalizedValue,role:"img"}));t.push(u)})),t},t.prototype._createNodes=function(e){var t=this,n=[];if(this.props.data.SankeyChartData)return this.props.data.SankeyChartData.nodes.forEach((function(e,r){var i=e.y1-e.y0>0?e.y1-e.y0:0,o=8,a=0;if(i<36){o+=6;var l=Ic(".nodeName").append("text").attr("class","tempText").append("tspan").text(null);l.text(e.actualValue),null!==l.node()&&(o+=a=l.node().getComputedTextLength()),l.text(null),Rc(".tempText").remove()}var u=t._truncateText(e.name,116,o),c="..."===u.slice(-3),d=ge("tooltip"),h=Ic("body").append("div").attr("id",d).attr("class",t._classNames.toolTip).style("opacity",0),p=ge("nodeBar"),f=s.createElement("g",{key:r,id:ge("nodeGElement")},s.createElement("rect",{x:e.x0,y:e.y0,height:i,width:e.x1-e.x0,fill:t._fillNodeColors(e),id:p,onMouseOver:t._onHover.bind(t,e),onMouseOut:function(){t._onLeave(e)},onFocus:t._onCloseCallout.bind(t),stroke:t._fillNodeBorder(e),strokeWidth:"2",opacity:"1","data-is-focusable":!0,"aria-label":"node"+e.name+"with weight"+e.actualValue,role:"img"}),e.y1-e.y0>24&&s.createElement("g",{className:t._classNames.nodeTextContainer},s.createElement("g",{className:"nodeName"},s.createElement("text",{id:p+"-name",x:e.x0,y:e.y0,dy:"1.2em",dx:"0.4em",textAnchor:t._isRtl?"end":"start",fontWeight:"regular","aria-hidden":"true",fill:!t.state.selectedState||t.state.selectedState&&t.state.selectedNodes.has(e.index)&&t.state.selectedNode||t.state.selectedState&&!t.state.selectedNode?Cg:bg,fontSize:10,onMouseOver:t._showTooltip.bind(t,e.name,c,h),onMouseOut:t._hideTooltip.bind(t,h)},u)),s.createElement("text",{x:i>36?e.x0:e.x1-a-8,y:e.y0,dy:i>36?"2em":"1em",dx:i>36?"0.4em":"0em",textAnchor:t._isRtl?"end":"start",fontWeight:"bold","aria-hidden":"true",fill:!t.state.selectedState||t.state.selectedState&&t.state.selectedNodes.has(e.index)&&t.state.selectedNode||t.state.selectedState&&!t.state.selectedNode?Cg:bg,fontSize:14},e.actualValue)));n.push(f)})),n},t.prototype._onLeave=function(e){this.state.selectedState&&this.setState({selectedState:!1,selectedNodes:new Set,selectedLinks:new Set,selectedNode:void 0})},t.prototype._onHover=function(e,t){if(t.persist(),this._onCloseCallout(),!this.state.selectedState){var n=this._getSelectedLinks(e),r=this._getSelectedNodes(n);r.push(e),this.setState({selectedState:!0,selectedNodes:new Set(Array.from(r).map((function(e){return e.index}))),selectedLinks:new Set(Array.from(n).map((function(e){return e.index}))),selectedNode:e,refSelected:t,isCalloutVisible:e.y1-e.y0<24,color:e.color,xCalloutValue:e.name,yCalloutValue:e.actualValue})}},t.prototype._onStreamHover=function(e,t){if(t.persist(),this._onCloseCallout(),!this.state.selectedState){var n=this._getSelectedLinksforStreamHover(e),r=n.selectedLinks,i=n.selectedNodes;this.setState({selectedState:!0,selectedNodes:new Set(Array.from(i).map((function(e){return e.index}))),selectedLinks:new Set(Array.from(r).map((function(e){return e.index}))),refSelected:t,selectedLink:e,isCalloutVisible:!0,color:e.source.color,xCalloutValue:e.target.name,yCalloutValue:e.unnormalizedValue.toString(),descriptionMessage:"from "+e.source.name})}},t.prototype._onStreamLeave=function(e){this.state.selectedState&&this.setState({selectedState:!1,selectedNodes:new Set,selectedLinks:new Set,selectedLink:void 0})},t.prototype._onFocusLink=function(e,t){t.persist(),this._onCloseCallout(),this.setState({refSelected:t.currentTarget,selectedLink:e,isCalloutVisible:!0,color:e.source.color,xCalloutValue:e.target.name,yCalloutValue:e.source.actualValue,descriptionMessage:"from "+e.source.name})},t.prototype._assignNodeColors=function(){var e,t;this.props.colorsForNodes&&this.props.borderColorsForNodes?(e=this.props.colorsForNodes,t=this.props.borderColorsForNodes):(e=xg.map((function(e){return e.fillColor})),t=xg.map((function(e){return e.borderColor})));var n=0;this.props.data.SankeyChartData.nodes.forEach((function(r){r.color||r.borderColor?r.color&&!r.borderColor?r.borderColor="#757575":r.borderColor&&!r.color&&(r.color="#F5F5F5"):(r.color=e[n],r.borderColor=t[n]),n=(n+1)%e.length}))},t.prototype._fillStreamColors=function(e,t){return this.state.selectedState&&this.state.selectedLinks.has(e.index)&&this.state.selectedNode?this.state.selectedNode.color:this.state.selectedState&&this.state.selectedLinks.has(e.index)?t:void 0},t.prototype._fillStreamBorder=function(e,t){return this.state.selectedState?this.state.selectedState&&this.state.selectedLinks.has(e.index)&&this.state.selectedNode?this.state.selectedNode.borderColor:this.state.selectedState&&this.state.selectedLinks.has(e.index)?t:yg:yg},t.prototype._getSelectedNodes=function(e){var t=[];return e.forEach((function(e){t.push(e.target),-1===t.indexOf(e.source)&&t.push(e.source)})),t},t.prototype._getSelectedLinks=function(e){var t=new Array,n=new Set;for(e.sourceLinks.forEach((function(e){t.push(e),n.add(e)}));t.length>0;)(r=t.shift().target)&&r.sourceLinks&&r.sourceLinks.forEach((function(e){n.add(e),t.push(e)}));for(e.targetLinks&&e.targetLinks.forEach((function(e){t.push(e),n.add(e)}));t.length>0;){var r;(r=t.shift().source)&&r.targetLinks&&r.targetLinks.forEach((function(e){n.add(e),t.push(e)}))}return n},t.prototype._getSelectedLinksforStreamHover=function(e){var t=new Array,n=new Set,r=new Set;for(t.push(e.source),n.add(e);t.length>0;){var i=t.shift();r.add(i),i.targetLinks&&i.targetLinks.length>0&&i.targetLinks.forEach((function(e){t.push(e.source),n.add(e)}))}for(t.push(e.target);t.length>0;)i=t.shift(),r.add(i),i.sourceLinks&&i.sourceLinks.length>0&&i.sourceLinks.forEach((function(e){t.push(e.target),n.add(e)}));return{selectedLinks:n,selectedNodes:r}},t.prototype._getOpacityStream=function(e){if(this.state.selectedState){if(!this.state.selectedLinks.has(e.index))return 1;if(this.state.selectedState&&this.state.selectedLinks.has(e.index)&&!this.state.selectedNode)return.3}return 1},t.prototype._getOpacityStreamBorder=function(e){return!this.state.selectedState||this.state.selectedLinks.has(e.index)||this.state.selectedNode?1:.5},t.prototype._fitParentContainer=function(){var e=this,t=this.state,n=t.containerWidth,r=t.containerHeight;this._reqID=requestAnimationFrame((function(){var t=e.props.parentRef?e.props.parentRef:e.chartContainer,i=t.getBoundingClientRect().width,o=t.getBoundingClientRect().height;(n!==i||r!==o)&&e.setState({containerWidth:i,containerHeight:o})}))},t.prototype._truncateText=function(e,t,n){var r=t-n,i=0,o=Ic(".nodeName").append("text").attr("class","tempText").attr("font-size","10").append("tspan").text(null);if(o.text(e),null!==o.node()&&o.node().getComputedTextLength()<=r)return e;o.text(null),o.text("..."),null!==o.node()&&(i=o.node().getComputedTextLength()),o.text(null);for(var a="",s=0;s<e.length;s++)if(a+=e[s],o.text(a),null!==o.node()&&o.node().getComputedTextLength()>=r-i){a=a.slice(0,-1),a+="...";break}return o.text(null),Rc(".tempText").remove(),a},t.prototype._showTooltip=function(e,t,n,r){t&&(n.style("opacity",.9),n.html(e).style("left",r.pageX+"px").style("top",r.pageY-28+"px"))},t.prototype._hideTooltip=function(e){e.style("opacity",0)},t}(s.Component),Eg=C(kg,(function(e){var t,n,r,o=e.className,a=e.theme,s=e.pathColor,l=a.effects;return{root:[a.fonts.medium,{display:"flex",width:"100%",height:"100%",flexDirection:"column",overflow:"hidden"},o],links:{stroke:s||a.palette.black,fill:a?a.semanticColors.bodyBackground:"#F5F5F5",strokeWidth:3,selectors:(t={},t[Vn]={fill:"#000000"},t)},nodes:{fill:"#F5F5F5",selectors:(n={},n[Vn]={fill:"#000000"},n)},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"}),nodeTextContainer:{selectors:{text:{selectors:(r={},r[Vn]={fill:"rgb(179, 179, 179)"},r)}},marginTop:"4px",marginLeft:"8px",marginBottom:"4px",marginRight:"8px"},calloutContentRoot:{boxShadow:l.elevation4}}}));function Sg(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function Lg(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=wg)):void 0===t&&(t=Ag);for(var n,r,i,o,a,s=new Mg(e),l=[s];n=l.pop();)if((i=t(n.data))&&(a=(i=Array.from(i)).length))for(n.children=i,o=a-1;o>=0;--o)l.push(r=i[o]=new Mg(i[o])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(Tg)}function Ag(e){return e.children}function wg(e){return Array.isArray(e)?e[1]:null}function Dg(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Tg(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Mg(e){this.data=e,this.depth=this.height=0,this.parent=null}function Pg(e,t){return e.parent===t.parent?1:2}function Ng(e){var t=e.children;return t?t[0]:e.t}function Fg(e){var t=e.children;return t?t[t.length-1]:e.t}function Ig(e,t,n){var r=n/(t.i-e.i);t.c-=r,t.s+=n,e.c+=r,t.z+=n,t.m+=n}function Og(e,t,n){return e.a.parent===t.parent?e.a:n}function Vg(e,t){this._=e,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=t}Mg.prototype=Lg.prototype={constructor:Mg,count:function(){return this.eachAfter(Sg)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,i,o=this,a=[o],s=[],l=-1;o=a.pop();)if(s.push(o),n=o.children)for(r=0,i=n.length;r<i;++r)a.push(n[r]);for(;o=s.pop();)e.call(t,o,++l,this);return this},eachBefore:function(e,t){for(var n,r,i=this,o=[i],a=-1;i=o.pop();)if(e.call(t,i,++a,this),n=i.children)for(r=n.length-1;r>=0;--r)o.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter((function(t){for(var n=+e(t.data)||0,r=t.children,i=r&&r.length;--i>=0;)n+=r[i].value;t.value=n}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;for(e=n.pop(),t=r.pop();e===t;)i=e,e=n.pop(),t=r.pop();return i}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(n){n!==e&&t.push({source:n.parent,target:n})})),t},copy:function(){return Lg(this).eachBefore(Dg)},[Symbol.iterator]:function*(){var e,t,n,r,i=this,o=[i];do{for(e=o.reverse(),o=[];i=e.pop();)if(yield i,t=i.children)for(n=0,r=t.length;n<r;++n)o.push(t[n])}while(o.length)}},Vg.prototype=Object.create(Mg.prototype);var Hg,Rg,Bg=ue(),Wg=function(e){function t(t,n,r,i,o,a){void 0===i&&(i=[]),void 0===o&&(o=[]);var s=e.call(this,t,r,i,o)||this;return s.composition=n,s._treeTraversal=a,s}return r(t,e),t.prototype.createTree=function(e,t){var n,r,i,o,a,s,l=(e=e<65?65:e>90?90:e)||75,u=Lg(this.treeData,(function(e){return e.children})),c=(null==u?void 0:u.height)+1;(function(){var e=Pg,t=1,n=1,r=null;function i(i){var l=function(e){for(var t,n,r,i,o,a=new Vg(e,0),s=[a];t=s.pop();)if(r=t._.children)for(t.children=new Array(o=r.length),i=o-1;i>=0;--i)s.push(n=t.children[i]=new Vg(r[i],i)),n.parent=t;return(a.parent=new Vg(null,0)).children=[a],a}(i);if(l.eachAfter(o),l.parent.m=-l.z,l.eachBefore(a),r)i.eachBefore(s);else{var u=i,c=i,d=i;i.eachBefore((function(e){e.x<u.x&&(u=e),e.x>c.x&&(c=e),e.depth>d.depth&&(d=e)}));var h=u===c?1:e(u,c)/2,p=h-u.x,f=t/(c.x+h+p),g=n/(d.depth||1);i.eachBefore((function(e){e.x=(e.x+p)*f,e.y=e.depth*g}))}return i}function o(t){var n=t.children,r=t.parent.children,i=t.i?r[t.i-1]:null;if(n){!function(e){for(var t,n=0,r=0,i=e.children,o=i.length;--o>=0;)(t=i[o]).z+=n,t.m+=n,n+=t.s+(r+=t.c)}(t);var o=(n[0].z+n[n.length-1].z)/2;i?(t.z=i.z+e(t._,i._),t.m=t.z-o):t.z=o}else i&&(t.z=i.z+e(t._,i._));t.parent.A=function(t,n,r){if(n){for(var i,o=t,a=t,s=n,l=o.parent.children[0],u=o.m,c=a.m,d=s.m,h=l.m;s=Fg(s),o=Ng(o),s&&o;)l=Ng(l),(a=Fg(a)).a=t,(i=s.z+d-o.z-u+e(s._,o._))>0&&(Ig(Og(s,t,r),t,i),u+=i,c+=i),d+=s.m,u+=o.m,h+=l.m,c+=a.m;s&&!Fg(a)&&(a.t=s,a.m+=d-c),o&&!Ng(l)&&(l.t=o,l.m+=u-h,r=t)}return r}(t,i,t.parent.A||r[0])}function a(e){e._.x=e.z+e.parent.m,e.m+=e.parent.m}function s(e){e.x*=t,e.y=e.depth*n}return i.separation=function(t){return arguments.length?(e=t,i):e},i.size=function(e){return arguments.length?(r=!1,t=+e[0],n=+e[1],i):r?null:[t,n]},i.nodeSize=function(e){return arguments.length?(r=!0,t=+e[0],n=+e[1],i):r?[t,n]:null},i})().nodeSize([l,l/1.5]).separation((function(e,t){return e.parent===u&&t.parent===u?3.5:1}))(u).descendants().forEach((function(e){e.y=0===e.depth?10:130*e.depth,e.x+=t/2}));var d=[],h=0,p=function(e){var t,n;e.id=h,d.push({id:h,children:e.children,dataName:e.data.name,subName:e.data.subname,bodyText:e.data.bodytext,metricName:null===(t=e.data)||void 0===t?void 0:t.metric,fill:e.data.fill,x:e.x,y:e.y,parentID:null===(n=e.parent)||void 0===n?void 0:n.id}),h++};0===this._treeTraversal?u.each((function(e){p(e)})):u.eachBefore((function(e){p(e)}));for(var f=3*l,g=f/3.45,m=20,v=new Set,_=0,y=d;_<y.length;_++){var x=y[_],b=0===x.id?"Root Node":"Parent info parentId: "+x.parentID+"\n "+d[x.parentID].dataName+"\n "+d[x.parentID].subName;if(!x.children&&!v.has(x.parentID)&&3===c){var C=(f-m)/2,k=g;v.add(x.parentID),this.addLinktoSVG(x.id,d[x.parentID].x,d[x.parentID].y,d[x.id].x,d[x.id].y,!0,f,g,m);for(var E=null===(n=d[x.parentID])||void 0===n?void 0:n.children,S=(null===(r=d[x.parentID])||void 0===r?void 0:r.x)-C/2-10,L=(null===(i=d[x.parentID])||void 0===i?void 0:i.x)+C/2+10,A=null===(o=d[x.parentID])||void 0===o?void 0:o.x,w=null===(a=E[0])||void 0===a?void 0:a.y,D=0;D<E.length;++D){var T=E[D];void 0!==this.composition?0===this.composition?(this.addNodeShapetoSVG(T.data.name,T.data.subname,T.data.bodytext,T.data.metricName,D%2==0?1===E.length?A:S:L,w,T.data.fill,1===E.length?f:C,g,T.id,b),D%2==1&&(w+=k+m)):(this.addNodeShapetoSVG(T.data.name,T.data.subname,T.data.bodytext,T.data.metricName,A,w,T.data.fill,f,g,T.id,b),w+=k+m):E.length>2?(this.addNodeShapetoSVG(T.data.name,T.data.subname,T.data.bodytext,T.data.metricName,D%2==0?S:L,w,T.data.fill,1===E.length?f:C,g,T.id,b),D%2==1&&(w+=k+m)):(this.addNodeShapetoSVG(T.data.name,T.data.subname,T.data.bodytext,T.data.metricName,A,w,T.data.fill,f,g,T.id,b),w+=k+m)}}if((x.children||c<=2)&&(this.addNodeShapetoSVG(x.dataName,x.subName,x.bodyText,x.metricName,x.x,x.y,x.fill,f,g,x.id,b),0===x.id&&x.children)){var M=Bi(E=null===(s=d[x.id])||void 0===s?void 0:s.children,(function(e){return e.x})),P=Ri(E,(function(e){return e.x}));this.addLinktoSVG(x.id,x.x,x.y,M,x.children[0].y,!1,f,g,m,P)}}},t}(function(){function e(e,t,n,r){void 0===n&&(n=[]),void 0===r&&(r=[]),this._nodeElements=[],this._linkElements=[],this.treeData=e,this.styleClassNames=t,this._nodeElements=n,this._linkElements=r}return e.prototype.truncateText=function(e,t,n,r){var i,o=e.split(/\s+/).reverse(),a="",s=Ic(".svgTree").append("text").attr("class","tempText").append("tspan").text(null);r&&s.attr("class",r);for(var l=[];a=o.pop();)if(l.push(a),s.text(l.join(" ")+" "),null!==s.node()&&s.node().getComputedTextLength()>t-n){l.pop(),l.push("...");break}return i=l.join(" ")+" ",s.text(null),Rc(".tempText").remove(),i},e.prototype.addNodeShapetoSVG=function(e,t,n,r,i,o,a,l,u,c,d){var h="nodeId: "+c+" \nnodeMainText: "+e+"\nsubText "+t+" "+d,p=i-l/2;!r&&0===c&&n||this._nodeElements.push(s.createElement("rect",{width:l,height:u,x:p,y:o,tabIndex:0,role:"text","data-is-focusable":!0,"aria-label":h,className:this.styleClassNames.rectNode,stroke:a,key:""+c+this.styleClassNames.rectNode})),t&&(t=this.truncateText(t,l,l/4,this.styleClassNames.rectSubText)),n&&(n=this.truncateText(n,l,l/4,this.styleClassNames.rectBodyText)),r&&(r=this.truncateText(r,l,l/4,this.styleClassNames.rectMetricText)),e=this.truncateText(e,l,l/4,this.styleClassNames.rectText);var f=r?s.createElement("tspan",{className:this.styleClassNames.rectMetricText,dy:"1.4em",x:p+l/2},r):n?s.createElement(s.Fragment,null,s.createElement("tspan",{className:this.styleClassNames.rectSubText,dy:"1.4em",x:p+l/2},t),s.createElement("tspan",{className:this.styleClassNames.rectBodyText,dy:"1.4em",x:p+l/2},n)):s.createElement("tspan",{className:this.styleClassNames.rectSubText,dy:"1.4em",x:p+l/2},t);t||r||n?this._nodeElements.push(s.createElement("text",{textAnchor:"middle",className:r?this.styleClassNames.rectSubText:this.styleClassNames.rectText,dy:r?o+u/2.5:o+u/2,x:p+l/2,key:""+c+this.styleClassNames.rectText},e,f)):this._nodeElements.push(s.createElement("text",{textAnchor:"middle",className:this.styleClassNames.rectMetricText,dy:o+u/1.6,x:p+l/2,key:""+c+this.styleClassNames.rectText},e))},e.prototype.createPathLink=function(e,t,n,r,i,o,a,s,l){return i?"M"+e+","+(t+a+s/2)+" V"+(t+5*s)+"\n H"+(e-o/2)+" H"+(e+o/2):"M"+(n-o/2)+","+(r-s)+" H"+(l+o/2)+" M"+e+","+(r-s)+"\n V"+(t+a+s/2)},e.prototype.addLinktoSVG=function(e,t,n,r,i,o,a,l,u,c){void 0===c&&(c=0),this._linkElements.push(s.createElement("path",{className:this.styleClassNames.link,d:this.createPathLink(t,n,r,i,o,a,l,u,c),key:""+e+this.styleClassNames.link}))},e}()),zg=function(e){function t(t){var n,r=e.call(this,t)||this;return r._nodeElements=[],r._linkElements=[],r._margin={top:30,right:20,bottom:30,left:50},r._width=r.props.width||1500,r._height=r.props.height||700,r._treeData=r.props.treeData,r._composition=null===(n=r.props)||void 0===n?void 0:n.composition,r._treeTraversal=r.props.treeTraversal,r.state={_width:r._width,_height:r._height},r}return r(t,e),t.prototype.componentDidMount=function(){var e=this.props,t=e.theme,n=e.className,r=e.styles;this._classNames=Bg(r,{theme:t,className:n}),this.createTreeChart(),this.setState({_width:this.props.width||1500,_height:this.props.height||700})},t.prototype.componentDidUpdate=function(e){if(e.layoutWidth!==this.props.layoutWidth){var t=Rc("text"),n=Rc("rect"),r=Rc("path");0===this._nodeElements.length&&0===this._linkElements.length&&(t.remove(),n.remove(),r.remove()),this.createTreeChart()}},t.prototype.createTreeChart=function(){var e=[],t=[],n=new Wg(this._treeData,this._composition,this._classNames,e,t,this._treeTraversal),r=this.state._width-this._margin.left-this._margin.right;n.createTree(this.props.layoutWidth,r),this._nodeElements=e,this._linkElements=t},t.prototype.render=function(){var e;return s.createElement(Vd,null,s.createElement("div",{className:null===(e=this._classNames)||void 0===e?void 0:e.root},s.createElement("svg",{className:"svgTree",width:this.state._width-this._margin.left-this._margin.right,height:this.state._height-this._margin.top-this._margin.bottom},s.createElement("g",{className:"svgNode"},this._nodeElements.map((function(e){return e}))),s.createElement("g",{className:"svgLink"},this._linkElements.map((function(e){return e}))))))},t}(s.Component),Ug=C(zg,(function(e){return{root:[e.theme.spacing,"ms-TreeChart",e.className,{overflow:"scroll"}],link:{fill:"none",stroke:"#A1A1A1",strokeWidth:"2px"},rectNode:{strokeWidth:"2px",fill:"white",padding:"10px",rx:"2px"},rectText:i({fill:"black"},e.theme.fonts.large),rectSubText:i({fill:"#484644"},e.theme.fonts.medium),rectBodyText:i({fill:"#808080"},e.theme.fonts.xSmall),rectMetricText:i({fill:"#000000"},e.theme.fonts.xLarge)}}));!function(e){e[e.long=1]="long",e[e.compact=0]="compact"}(Hg||(Hg={})),function(e){e[e.preOrder=1]="preOrder",e[e.levelOrder=0]="levelOrder"}(Rg||(Rg={}));var Yg=ue(),qg=function(e){function t(t){var n=e.call(this,t)||this;return n.margin={top:2,right:0,bottom:0,left:0},n.state={_points:null,_width:n.props.width||80,_height:n.props.height||20,_valueTextWidth:n.props.valueTextWidth||80},n}return r(t,e),t.prototype.componentDidMount=function(){var e=this,t=gf().x((function(t){return e.x(t.x)})).y0(this.state._height).y1((function(t){return e.y(t.y)})).curve(Tp);this.area=t;var n=Np().x((function(t){return e.x(t.x)})).y((function(t){return e.y(t.y)})).curve(Tp);this.line=n;var r=this.props.data.lineChartData[0].data,i=function(e,t){var n,r,i,o=e.length,a=-1;if(null==t){for(;++a<o;)if(null!=(n=e[a])&&n>=n)for(r=i=n;++a<o;)null!=(n=e[a])&&(r>n&&(r=n),i<n&&(i=n))}else for(;++a<o;)if(null!=(n=t(e[a]))&&n>=n)for(r=i=n;++a<o;)null!=(n=t(e[a]))&&(r>n&&(r=n),i<n&&(i=n));return[r,i]}(r,(function(e){return e.x})),o=i[0],a=i[1];this.x=va().domain([o,a]).range([this.margin.left,this.state._width-this.margin.right]),this.y=va().domain([0,Ri(r,(function(e){return e.y}))]).range([this.state._height-this.margin.bottom,this.margin.top]),this.setState({_points:r})},t.prototype.drawSparkline=function(){return s.createElement(s.Fragment,null,s.createElement("path",{className:"line",d:this.line(this.state._points),fill:"transparent",opacity:1,strokeWidth:2,stroke:this.props.data.lineChartData[0].color}),s.createElement("path",{className:"area",d:this.area(this.state._points),opacity:1,fillOpacity:.2,fill:this.props.data.lineChartData[0].color,"aria-label":"Sparkline with label "+this.props.data.lineChartData[0].legend}))},t.prototype.render=function(){var e=Yg(this.props.styles,{theme:this.props.theme});return s.createElement(Vd,{direction:sd.horizontal,isCircularNavigation:!0,className:e.inlineBlock},s.createElement("div",{className:e.inlineBlock},this.state._width>=50&&this.state._height>=16?s.createElement("svg",{width:this.state._width,height:this.state._height,"data-is-focusable":!0},this.state._points?this.drawSparkline():null):s.createElement(s.Fragment,null),this.props.showLegend&&this.props.data.lineChartData[0].legend?s.createElement("svg",{width:this.state._valueTextWidth,height:this.state._height,"data-is-focusable":!0},s.createElement("text",{x:"0%",dx:8,y:"100%",dy:-5,className:e.valueText},this.props.data.lineChartData[0].legend)):s.createElement(s.Fragment,null)))},t}(s.Component),jg=C(qg,(function(e){return{inlineBlock:{display:"inline"},valueText:i(i({},e.theme.fonts.smallPlus),{fill:e.theme.palette.black})}}));Dr("@fluentui/react-charting","5.16.20"),FluentUIReactCharting=t}();
|
|
1
|
+
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 Af},CartesianChart:function(){return Vp},ChartHoverCard:function(){return fd},DataVizPalette:function(){return Qp},DonutChart:function(){return wp},GroupedVerticalBarChart:function(){return eg},HeatMapChart:function(){return rg},HorizontalBarChart:function(){return Zd},HorizontalBarChartVariant:function(){return pe},Legends:function(){return Bh},LineChart:function(){return cf},MultiStackedBarChart:function(){return Uf},MultiStackedBarChartVariant:function(){return Pf},NodesComposition:function(){return Hg},PieChart:function(){return Of},SankeyChart:function(){return kg},Shape:function(){return Vh},Sparkline:function(){return jg},StackedBarChart:function(){return Rf},Textbox:function(){return Gp},TreeChart:function(){return Ug},TreeTraverse:function(){return Rg},VerticalBarChart:function(){return Xf},VerticalStackedBarChart:function(){return Zf},getChartHoverCardStyles:function(){return pd},getColorFromToken:function(){return af},getNextColor:function(){return of}});var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},n(e,t)};function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var i=function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},i.apply(this,arguments)};function o(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function a(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}Object.create,Object.create;var s=React;function l(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(e&&1===e.length&&e[0]&&!e[0].subComponentStyles)return e[0];for(var n={},r={},i=0,o=e;i<o.length;i++){var s=o[i];if(s)for(var u in s)if(s.hasOwnProperty(u)){if("subComponentStyles"===u&&void 0!==s.subComponentStyles){var c=s.subComponentStyles;for(var d in c)c.hasOwnProperty(d)&&(r.hasOwnProperty(d)?r[d].push(c[d]):r[d]=[c[d]]);continue}var h=n[u],p=s[u];n[u]=void 0===h?p:a(a([],Array.isArray(h)?h:[h]),Array.isArray(p)?p:[p])}}if(Object.keys(r).length>0){n.subComponentStyles={};var f=n.subComponentStyles,g=function(e){if(r.hasOwnProperty(e)){var t=r[e];f[e]=function(e){return l.apply(void 0,t.map((function(t){return"function"==typeof t?t(e):t})))}}};for(var d in r)g(d)}return n}function u(){return"undefined"!=typeof window&&!(!window.document||!window.document.createElement)}var c=void 0;try{c=window}catch(e){}function d(e){if(u()&&void 0!==c){var t=e;return t&&t.ownerDocument&&t.ownerDocument.defaultView?t.ownerDocument.defaultView:c}}var h=0,p=function(){function e(){}return e.getValue=function(e,t){var n=f();return void 0===n[e]&&(n[e]="function"==typeof t?t():t),n[e]},e.setValue=function(e,t){var n=f(),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=g();t||(t=e.__id__=String(h++)),n[t]=e},e.removeChangeListener=function(e){delete g()[e.__id__]},e}();function f(){var e,t=d()||{};return t.__globalSettings__||(t.__globalSettings__=((e={}).__callbacks__={},e)),t.__globalSettings__}function g(){return f().__callbacks__}var m={settings:{},scopedSettings:{},inCustomizerContext:!1},v=p.getValue("customizations",{settings:{},scopedSettings:{},inCustomizerContext:!1}),_=[],y=function(){function e(){}return e.reset=function(){v.settings={},v.scopedSettings={}},e.applySettings=function(t){v.settings=i(i({},v.settings),t),e._raiseChange()},e.applyScopedSettings=function(t,n){v.scopedSettings[t]=i(i({},v.scopedSettings[t]),n),e._raiseChange()},e.getSettings=function(e,t,n){void 0===n&&(n=m);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){_.push(e)},e.unobserve=function(e){_=_.filter((function(t){return t!==e}))},e._raiseChange=function(){e._suppressUpdates||_.forEach((function(e){return e()}))},e}(),x=s.createContext({customizations:{inCustomizerContext:!1,settings:{},scopedSettings:{}}});var b=["theme","styles"];function C(e,t,n,r,a){var u=(r=r||{scope:"",fields:void 0}).scope,c=r.fields,d=void 0===c?b:c,h=s.forwardRef((function(r,a){var c,h,p,f,g,m,v=s.useRef(),_=(c=d,h=u,p=s.useState(0)[1],f=function(){return p((function(e){return++e}))},g=s.useContext(x).customizations,m=g.inCustomizerContext,s.useEffect((function(){return m||y.observe(f),function(){m||y.unobserve(f)}}),[m]),y.getSettings(c,h,g)),b=_.styles,C=(_.dir,o(_,["styles","dir"])),E=n?n(r):void 0,k=v.current&&v.current.__cachedInputs__||[],S=r.styles;if(!v.current||b!==k[1]||S!==k[2]){var L=function(e){return function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=[],i=0,o=t;i<o.length;i++){var a=o[i];a&&r.push("function"==typeof a?a(e):a)}return 1===r.length?r[0]:r.length?l.apply(void 0,r):{}}(e,t,b,S)};L.__cachedInputs__=[t,b,S],L.__noStyleOverride__=!b&&!S,v.current=L}return s.createElement(e,i({ref:a},C,E,r,{styles:v.current}))}));h.displayName="Styled"+(e.displayName||e.name);var p=a?s.memo(h):h;return h.displayName&&(p.displayName=h.displayName),p}var E,k="undefined"!=typeof navigator&&/rv:11.0/.test(navigator.userAgent),S={};try{S=window||{}}catch(P){}var L=function(){function e(e,t){var n,r,o,a,s,l;this._rules=[],this._preservedRules=[],this._counter=0,this._keyToClassName={},this._onInsertRuleCallbacks=[],this._onResetCallbacks=[],this._classNameToArgs={},this._config=i({injectionMode:"undefined"==typeof document?0:1,defaultPrefix:"css",namespace:void 0,cspSettings:void 0},e),this._classNameToArgs=null!==(n=null==t?void 0:t.classNameToArgs)&&void 0!==n?n:this._classNameToArgs,this._counter=null!==(r=null==t?void 0:t.counter)&&void 0!==r?r:this._counter,this._keyToClassName=null!==(a=null!==(o=this._config.classNameCache)&&void 0!==o?o:null==t?void 0:t.keyToClassName)&&void 0!==a?a:this._keyToClassName,this._preservedRules=null!==(s=null==t?void 0:t.preservedRules)&&void 0!==s?s:this._preservedRules,this._rules=null!==(l=null==t?void 0:t.rules)&&void 0!==l?l:this._rules}return e.getInstance=function(){if(!(E=S.__stylesheet__)||E._lastStyleElement&&E._lastStyleElement.ownerDocument!==document){var t=(null==S?void 0:S.FabricConfig)||{},n=new e(t.mergeStyles,t.serializedStylesheet);E=n,S.__stylesheet__=n}return E},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(),k||window.requestAnimationFrame((function(){e._styleElement=void 0}))),this._styleElement},e.prototype._createStyleElement=function(){var e=document.head,t=document.createElement("style"),n=null;t.setAttribute("data-merge-styles","true");var r=this._config.cspSettings;if(r&&r.nonce&&t.setAttribute("nonce",r.nonce),this._lastStyleElement)n=this._lastStyleElement.nextElementSibling;else{var i=this._findPlaceholderStyleTag();n=i?i.nextElementSibling:e.childNodes[0]}return e.insertBefore(t,e.contains(n)?n:null),this._lastStyleElement=t,t},e.prototype._findPlaceholderStyleTag=function(){var e=document.head;return e?e.querySelector("style[data-merge-styles]"):null},e}();function A(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=[],r=[],i=L.getInstance();function o(e){for(var t=0,a=e;t<a.length;t++){var s=a[t];if(s)if("string"==typeof s)if(s.indexOf(" ")>=0)o(s.split(" "));else{var l=i.argsFromClassName(s);l?o(l):-1===n.indexOf(s)&&n.push(s)}else Array.isArray(s)?o(s):"object"==typeof s&&r.push(s)}}return o(e),{classes:n,objects:r}}var w,D={},T={"user-select":1};function M(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(T[r]){var i=e[t+1];T[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 P,N=["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=N.indexOf(n)>-1,o=n.indexOf("--")>-1,a=i||o?"":"px";e[t+1]=""+r+a}}var I="left",O="right",V=((P={}).left=O,P.right=I,P),H={"w-resize":"e-resize","sw-resize":"se-resize","nw-resize":"ne-resize"};function R(e,t,n){if(e.rtl){var r=t[n];if(!r)return;var i=t[n+1];if("string"==typeof i&&i.indexOf("@noflip")>=0)t[n+1]=i.replace(/\s*(?:\/\*\s*)?\@noflip\b(?:\s*\*\/)?\s*?/g,"");else if(r.indexOf(I)>=0)t[n]=r.replace(I,O);else if(r.indexOf(O)>=0)t[n]=r.replace(O,I);else if(String(i).indexOf(I)>=0)t[n+1]=i.replace(I,O);else if(String(i).indexOf(O)>=0)t[n+1]=i.replace(O,I);else if(V[r])t[n]=V[r];else if(H[i])t[n+1]=H[i];else switch(r){case"margin":case"padding":t[n+1]=function(e){if("string"==typeof e){var t=e.split(" ");if(4===t.length)return t[0]+" "+t[3]+" "+t[2]+" "+t[1]}return e}(i);break;case"box-shadow":t[n+1]=function(e,t){var n=e.split(" "),r=parseInt(n[0],10);return n[0]=n[0].replace(String(r),String(-1*r)),n.join(" ")}(i)}}}function B(e){var t=e&&e["&"];return t?t.displayName:void 0}var W,z=/\:global\((.+?)\)/g;function U(e,t){return e.indexOf(":global(")>=0?e.replace(z,"$1"):0===e.indexOf(":")?t+e:e.indexOf("&")<0?t+" "+e:e}function Y(e,t,n,r){void 0===t&&(t={__order:[]}),0===n.indexOf("@")?q([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 q([r],t,U(n,e))})):q([r],t,U(n,e))}function q(e,t,n){void 0===t&&(t={__order:[]}),void 0===n&&(n="&");var r=L.getInstance(),i=t[n];i||(i={},t[n]=i,t.__order.push(n));for(var o=0,a=e;o<a.length;o++){var s=a[o];if("string"==typeof s){var l=r.argsFromClassName(s);l&&q(l,t,n)}else if(Array.isArray(s))q(s,t,n);else for(var u in s)if(s.hasOwnProperty(u)){var c=s[u];if("selectors"===u){var d=s.selectors;for(var h in d)d.hasOwnProperty(h)&&Y(n,t,h,d[h])}else"object"==typeof c?null!==c&&Y(n,t,u,c):void 0!==c&&("margin"===u||"padding"===u?j(i,u,c):i[u]=c)}}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 X(e,t){for(var n=[e.rtl?"rtl":"ltr"],r=!1,i=0,o=t.__order;i<o.length;i++){var a=o[i];n.push(a);var s=t[a];for(var l in s)s.hasOwnProperty(l)&&void 0!==s[l]&&(r=!0,n.push(l,s[l]))}return r?n.join(""):void 0}function K(e,t){return t<=0?"":1===t?e:e+K(e,t-1)}function G(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]=D[i]=D[i]||i.replace(/([A-Z])/g,"-$1").toLowerCase()),F(o,s),R(e,o,s),M(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=q(t),i=X(e,r);if(i){var o=L.getInstance(),a={className:o.classNameFromKey(i),key:i,args:t};if(!a.className){a.className=o.getClassName(B(r));for(var s=[],l=0,u=r.__order;l<u.length;l++){var c=u[l];s.push(c,G(e,r[c]))}a.rulesToInsert=s}return a}}function $(e,t){void 0===t&&(t=1);var n=L.getInstance(),r=e.className,i=e.key,o=e.args,a=e.rulesToInsert;if(a){for(var s=0;s<a.length;s+=2){var l=a[s+1];if(l){var u=a[s],c=(u=u.replace(/&/g,K("."+e.className,t)))+"{"+l+"}"+(0===u.indexOf("@")?"}":"");n.insertRule(c)}}n.cacheClassName(r,i,o,a)}}function Q(e){if(u()&&"undefined"!=typeof document){var t=e;return t&&t.ownerDocument?t.ownerDocument:document}}function J(e){var t=null;try{var n=d();t=n?n.sessionStorage.getItem(e):null}catch(e){}return t}function ee(e){W!==e&&(W=e)}function te(){return void 0===W&&(W="undefined"!=typeof document&&!!document.documentElement&&"rtl"===document.documentElement.getAttribute("dir")),W}function ne(){return{rtl:te()}}W=te();var re,ie="isRTL";function oe(e){if(void 0===e&&(e={}),void 0!==e.rtl)return e.rtl;if(void 0===re){var t=J(ie);null!==t&&function(e,t){void 0===t&&(t=!1);var n=Q();n&&n.documentElement.setAttribute("dir",e?"rtl":"ltr"),t&&function(e,t){var n;try{null===(n=d())||void 0===n||n.sessionStorage.setItem("isRTL",t)}catch(e){}}(0,e?"1":"0"),ee(re=e)}(re="1"===t);var n=Q();void 0===re&&n&&ee(re="rtl"===(n.body&&n.body.getAttribute("dir")||n.documentElement.getAttribute("dir")))}return!!re}var ae=0,se=L.getInstance();se&&se.onReset&&se.onReset((function(){return ae++}));var le="__retval__";function ue(e){void 0===e&&(e={});var t=new Map,n=0,r=0,i=ae;return function(o,a){var s;if(void 0===a&&(a={}),e.useStaticStyles&&"function"==typeof o&&o.__noStyleOverride__)return o(a);r++;var u=t,c=a.theme,h=c&&void 0!==c.rtl?c.rtl:oe(),p=e.disableCaching;if(i!==ae&&(i=ae,t=new Map,n=0),e.disableCaching||(u=de(t,o),u=de(u,a)),!p&&u[le]||(u[le]=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=A(r[o]),s=a.classes,u=a.objects;(null==u?void 0:u.length)?(h=Z(t||{},{displayName:o},u))&&(i.push(h),n[o]=s.concat([h.className]).join(" ")):n[o]=s.join(" ")}for(var c=0,d=i;c<d.length;c++){var h;(h=d[c])&&$(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=d();(null===(s=null==f?void 0:f.FabricConfig)||void 0===s?void 0:s.enableClassNameCacheFullWarning)&&(console.warn("Styles are being recalculated too frequently. Cache miss rate is "+n+"/"+r+"."),console.trace()),t.clear(),n=0,e.disableCaching=!0}return u[le]}}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 de(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 he=d()||{};void 0===he.__currentId__&&(he.__currentId__=0);var pe,fe=!1;function ge(e){if(!fe){var t=L.getInstance();t&&t.onReset&&t.onReset(me),fe=!0}return(void 0===e?"id__":e)+he.__currentId__++}function me(e){void 0===e&&(e=0),he.__currentId__=e}function ve(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 _e(e,t){var n=ve(e,t);if(!(n<0))return e[n]}function ye(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.PartToWhole="part-to-whole",e.AbsoluteScale="absolute-scale"}(pe||(pe={}));function xe(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 be(e,t){return e&&e!==document.body?t(e)?e:be(xe(e),t):null}function Ce(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=xe(t);if(i===e){r=!0;break}t=i}else e.contains&&(r=e.contains(t));return r}function Ee(e,t){var n=Se(e,e,!0,!1,!1,!0,void 0,void 0,t);return!!n&&(Pe(n),!0)}function ke(e,t,n,r,i,o,a,s){if(!t||!a&&t===e)return null;var l=Le(t);if(i&&l&&(o||!De(t)&&!Te(t))){var u=ke(e,t.lastElementChild,!0,!0,!0,o,a,s);if(u){if(s&&we(u,!0)||!s)return u;var c=ke(e,u.previousElementSibling,!0,!0,!0,o,a,s);if(c)return c;for(var d=u.parentElement;d&&d!==t;){var h=ke(e,d.previousElementSibling,!0,!0,!0,o,a,s);if(h)return h;d=d.parentElement}}}return n&&l&&we(t,s)?t:ke(e,t.previousElementSibling,!0,!0,!0,o,a,s)||(r?null:ke(e,t.parentElement,!0,!1,!1,o,a,s))}function Se(e,t,n,r,i,o,a,s,l){if(!t||t===e&&i&&!a)return null;var u=(l?Ae:Le)(t);if(n&&u&&we(t,s))return t;if(!i&&u&&(o||!De(t)&&!Te(t))){var c=Se(e,t.firstElementChild,!0,!0,!1,o,a,s,l);if(c)return c}return t===e?null:Se(e,t.nextElementSibling,!0,!0,!1,o,a,s,l)||(r?null:Se(e,t.parentElement,!1,!1,!0,o,a,s,l))}function Le(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 Ae(e){return!!e&&Le(e)&&!e.hidden&&"hidden"!==window.getComputedStyle(e).visibility}function we(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 De(e){return!!(e&&e.getAttribute&&e.getAttribute("data-focuszone-id"))}function Te(e){return!(!e||!e.getAttribute||"true"!==e.getAttribute("data-is-sub-focuszone"))}var Me=void 0;function Pe(e){if(e){if(Me)return void(Me=e);Me=e;var t=d(e);t&&t.requestAnimationFrame((function(){Me&&Me.focus(),Me=void 0}))}}function Ne(e,t,n,r){return e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n,r)}}function Fe(e,t){for(var n=i({},t),r=0,o=Object.keys(e);r<o.length;r++){var a=o[r];void 0===n[a]&&(n[a]=e[a])}return n}var Ie,Oe,Ve,He=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n={},r=0,i=e;r<i.length;r++)for(var o=i[r],a=Array.isArray(o)?o:Object.keys(o),s=0,l=a;s<l.length;s++){var u=l[s];n[u]=1}return n},Re=He(["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"]),Be=He(["accessKey","children","className","contentEditable","dir","draggable","hidden","htmlFor","id","lang","ref","role","style","tabIndex","title","translate","spellCheck","name"]),We=He(Be,Re),ze=(He(We,["form"]),He(We,["height","loop","muted","preload","src","width"])),Ue=(He(ze,["poster"]),He(We,["start"]),He(We,["value"]),He(We,["download","href","hrefLang","media","rel","target","type"]),He(We,["autoFocus","disabled","form","formAction","formEncType","formMethod","formNoValidate","formTarget","type","value"])),Ye=(He(Ue,["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"]),He(Ue,["autoCapitalize","cols","dirname","form","maxLength","minLength","placeholder","readOnly","required","rows","wrap"]),He(Ue,["form","multiple","required"]),He(We,["selected","value"]),He(We,["cellPadding","cellSpacing"]),He(We,["rowSpan","scope"]),He(We,["colSpan","headers","rowSpan","scope"]),He(We,["span"]),He(We,["span"]),He(We,["acceptCharset","action","encType","encType","method","noValidate","target"]),He(We,["allow","allowFullScreen","allowPaymentRequest","allowTransparency","csp","height","importance","referrerPolicy","sandbox","src","srcDoc","width"]),He(We,["alt","crossOrigin","height","src","srcSet","useMap","width"]),We);function qe(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 je(){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 Xe(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return Ke.apply(this,[null,e].concat(t))}function Ke(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 Ge(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Ze(e,ne())}function Ze(e,t){var n=A(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?($(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"}(Ie||(Ie={})),function(e){e[e.top=0]="top",e[e.bottom=1]="bottom",e[e.start=2]="start",e[e.end=3]="end"}(Oe||(Oe={})),Ge({overflow:"hidden !important"});var $e="data-is-scrollable";function Qe(e){for(var t=e,n=Q(e);t&&t!==n.body;){if("true"===t.getAttribute($e))return t;t=t.parentElement}for(t=e;t&&t!==n.body;){if("false"!==t.getAttribute($e)){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=d(e)),t}var Je,et=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 tt(e,t,n){return{targetEdge:e,alignmentEdge:t,isAuto:n}}var nt=((Je={})[0]=tt(Ie.top,Ie.left),Je[1]=tt(Ie.top),Je[2]=tt(Ie.top,Ie.right),Je[3]=tt(Ie.top,void 0,!0),Je[4]=tt(Ie.bottom,Ie.left),Je[5]=tt(Ie.bottom),Je[6]=tt(Ie.bottom,Ie.right),Je[7]=tt(Ie.bottom,void 0,!0),Je[8]=tt(Ie.left,Ie.top),Je[9]=tt(Ie.left),Je[10]=tt(Ie.left,Ie.bottom),Je[11]=tt(Ie.right,Ie.top),Je[12]=tt(Ie.right),Je[13]=tt(Ie.right,Ie.bottom),Je);function rt(e,t){return!(e.top<t.top||e.bottom>t.bottom||e.left<t.left||e.right>t.right)}function it(e,t){var n=[];return e.top<t.top&&n.push(Ie.top),e.bottom>t.bottom&&n.push(Ie.bottom),e.left<t.left&&n.push(Ie.left),e.right>t.right&&n.push(Ie.right),n}function ot(e,t){return e[Ie[t]]}function at(e,t,n){return e[Ie[t]]=n,e}function st(e,t){var n=_t(t);return(ot(e,n.positiveEdge)+ot(e,n.negativeEdge))/2}function lt(e,t){return e>0?t:-1*t}function ut(e,t){return lt(e,ot(t,e))}function ct(e,t,n){return lt(n,ot(e,n)-ot(t,n))}function dt(e,t,n,r){void 0===r&&(r=!0);var i=ot(e,t)-n,o=at(e,t,n);return r&&(o=at(e,-1*t,ot(e,-1*t)-i)),o}function ht(e,t,n,r){return void 0===r&&(r=0),dt(e,n,ot(t,n)+lt(n,r))}function pt(e,t,n){return ut(n,e)>ut(n,t)}function ft(e,t){for(var n=0,r=0,i=it(e,t);r<i.length;r++){var o=i[r];n+=Math.pow(ct(e,t,o),2)}return n}function gt(e,t,n,r){for(var i=0,o=e;i<o.length;i++){var a=o[i],s=void 0;r&&r===-1*a?(s=dt(t.elementRectangle,a,ot(n,a),!1),t.forcedInBounds=!0):pt(s=ht(t.elementRectangle,n,a),n,-1*a)||(s=dt(s,-1*a,ot(n,-1*a),!1),t.forcedInBounds=!0),t.elementRectangle=s}return t}function mt(e,t,n){var r=_t(t).positiveEdge;return dt(e,r,n-(st(e,t)-ot(e,r)))}function vt(e,t,n,r,i){void 0===r&&(r=0);var o=new et(e.left,e.right,e.top,e.bottom),a=n.alignmentEdge,s=n.targetEdge,l=i?s:-1*s;return o=i?ht(o,t,s,r):function(e,t,n,r){void 0===r&&(r=0);var i=lt(-1*n,r);return dt(e,-1*n,ot(t,n)+i)}(o,t,s,r),o=a?ht(o,t,a):mt(o,l,st(t,s))}function _t(e){return e===Ie.top||e===Ie.bottom?{positiveEdge:Ie.left,negativeEdge:Ie.right}:{positiveEdge:Ie.top,negativeEdge:Ie.bottom}}function yt(e,t,n){return n&&Math.abs(ct(e,n,t))>Math.abs(ct(e,n,-1*t))?-1*t:t}function xt(e,t,n,r,i,o,a,s){var l,u={},c=Et(t),d=o?n:-1*n,h=i||_t(n).positiveEdge;return a&&!function(e,t,n){return void 0!==n&&ot(e,t)===ot(n,t)}(e,(l=h,-1*l),r)||(h=yt(e,h,r)),u[Ie[d]]=ct(e,c,d),u[Ie[h]]=ct(e,c,h),s&&(u[Ie[-1*d]]=ct(e,c,-1*d),u[Ie[-1*h]]=ct(e,c,-1*h)),u}function bt(e,t,n){var r=st(t,e),i=st(n,e),o=_t(e),a=o.positiveEdge,s=o.negativeEdge;return r<=i?a:s}function Ct(e,t,n,r,i,o,a){var s=vt(e,t,r,i,a);return rt(s,n)?{elementRectangle:s,targetEdge:r.targetEdge,alignmentEdge:r.alignmentEdge}:function(e,t,n,r,i,o,a){void 0===i&&(i=0);var s=r.alignmentEdge,l=r.alignTargetEdge,u={elementRectangle:e,targetEdge:r.targetEdge,alignmentEdge:s};o||a||(u=function(e,t,n,r,i){void 0===i&&(i=0);var o=[Ie.left,Ie.right,Ie.bottom,Ie.top];oe()&&(o[0]*=-1,o[1]*=-1);for(var a,s=e,l=r.targetEdge,u=r.alignmentEdge,c=l,d=u,h=0;h<4;h++){if(pt(s,n,l))return{elementRectangle:s,targetEdge:l,alignmentEdge:u};var p=ft(s,n);(!a||p<a)&&(a=p,c=l,d=u),o.splice(o.indexOf(l),1),o.length>0&&(o.indexOf(-1*l)>-1?l*=-1:(u=l,l=o.slice(-1)[0]),s=vt(e,t,{targetEdge:l,alignmentEdge:u},i))}return{elementRectangle:s=vt(e,t,{targetEdge:c,alignmentEdge:d},i),targetEdge:c,alignmentEdge:d}}(e,t,n,r,i));var c=it(u.elementRectangle,n),d=o?-u.targetEdge:void 0;if(c.length>0)if(l)if(u.alignmentEdge&&c.indexOf(-1*u.alignmentEdge)>-1){var h=function(e,t,n,r){var i=e.alignmentEdge,o=e.targetEdge,a=-1*i;return{elementRectangle:vt(e.elementRectangle,t,{targetEdge:o,alignmentEdge:a},n,r),targetEdge:o,alignmentEdge:a}}(u,t,i,a);if(rt(h.elementRectangle,n))return h;u=gt(it(h.elementRectangle,n),u,n,d)}else u=gt(c,u,n,d);else u=gt(c,u,n,d);return u}(s,t,n,r,i,o,a)}function Et(e){var t=e.getBoundingClientRect();return new et(t.left,t.right,t.top,t.bottom)}function kt(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 et(r.clientX,r.clientX,r.clientY,r.clientY)}else if(t.getBoundingClientRect)n=Et(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 et(o,s,a,l)}if(!rt(n,e))for(var u=0,c=it(n,e);u<c.length;u++){var d=c[u];n[Ie[d]]=e[Ie[d]]}}else n=new et(0,0,0,0);return n}(n,e.target),s=function(e,t,n,r,i){return e.isAuto&&(e.alignmentEdge=bt(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({},nt[e]);return oe()?(r.alignmentEdge&&r.alignmentEdge%2==0&&(r.alignmentEdge=-1*r.alignmentEdge),void 0!==t?nt[t]:r):r}(e.directionalHint,e.directionalHintForRTL,r),a,n,e.coverTarget,e.alignTargetEdge),l=Ct(Et(t),a,n,s,o,e.directionalHintFixed,e.coverTarget);return i(i({},l),{targetRectangle:a})}function St(e,t,n,r,o){var a=e.isBeakVisible&&e.beakWidth||0,s=function(e){return Math.sqrt(e*e*2)}(a)/2+(e.gapSpace?e.gapSpace:0),l=e;l.gapSpace=s;var u,c,d,h,p,f,g,m,v,_=e.bounds?(v=e.bounds,new et(v.left,v.right,v.top,v.bottom)):new et(0,window.innerWidth-function(){if(void 0===Ve){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),Ve=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return Ve}(),0,window.innerHeight),y=kt(l,n,_,r),x=(u=y,c=function(e,t){var n=t.targetRectangle,r=_t(t.targetEdge),i=r.positiveEdge,o=r.negativeEdge,a=st(n,t.targetEdge),s=new et(e/2,t.elementRectangle.width-e/2,e/2,t.elementRectangle.height-e/2),l=new et(0,e,0,e);return pt(l=mt(l=dt(l,-1*t.targetEdge,-e/2),-1*t.targetEdge,a-ut(i,t.elementRectangle)),s,i)?pt(l,s,o)||(l=ht(l,s,o)):l=ht(l,s,i),l}(a,y),d=_,h=-1*u.targetEdge,p=new et(0,u.elementRectangle.width,0,u.elementRectangle.height),f={},g=yt(u.elementRectangle,u.alignmentEdge?u.alignmentEdge:_t(h).positiveEdge,d),m=ct(u.elementRectangle,u.targetRectangle,h)>Math.abs(ot(c,h)),f[Ie[h]]=ot(c,h),f[Ie[g]]=ct(c,p,g),{elementPosition:i({},f),closestEdge:bt(u.targetEdge,c,p),targetEdge:h,hideBeak:!m});return i(i({},function(e,t,n,r,i){return{elementPosition:xt(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 Lt=["TEMPLATE","STYLE","SCRIPT"];function At(e){var t=Q(e);if(!t)return function(){};for(var n=[];e!==t.body&&e.parentElement;){for(var r=0,i=e.parentElement.children;r<i.length;r++){var o=i[r],a=o.getAttribute("aria-hidden");o!==e&&"true"!==(null==a?void 0:a.toLowerCase())&&-1===Lt.indexOf(o.tagName)&&n.push([o,a])}e=e.parentElement}return n.forEach((function(e){e[0].setAttribute("aria-hidden","true")})),function(){!function(e){e.forEach((function(e){var t=e[0],n=e[1];n?t.setAttribute("aria-hidden",n):t.removeAttribute("aria-hidden")}))}(n),n=[]}}var wt=27,Dt=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=d(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=d(t);this._immediateIds&&this._immediateIds[e]&&(n.clearTimeout(e),delete this._immediateIds[e])},e.prototype.setInterval=function(e,t){var n=this,r=0;return this._isDisposed||(this._intervalIds||(this._intervalIds={}),r=setInterval((function(){try{e.apply(n._parent)}catch(e){n._logError(e)}}),t),this._intervalIds[r]=!0),r},e.prototype.clearInterval=function(e){this._intervalIds&&this._intervalIds[e]&&(clearInterval(e),delete this._intervalIds[e])},e.prototype.throttle=function(e,t,n){var r=this;if(this._isDisposed)return this._noop;var i,o,a=t||0,s=!0,l=!0,u=0,c=null;n&&"boolean"==typeof n.leading&&(s=n.leading),n&&"boolean"==typeof n.trailing&&(l=n.trailing);var d=function(t){var n=Date.now(),h=n-u,p=s?a-h:a;return h>=a&&(!t||s)?(u=n,c&&(r.clearTimeout(c),c=null),i=e.apply(r._parent,o)):null===c&&l&&(c=r.setTimeout(d,p)),i};return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return o=e,d(!0)}},e.prototype.debounce=function(e,t,n){var r=this;if(this._isDisposed){var i=function(){};return i.cancel=function(){},i.flush=function(){return null},i.pending=function(){return!1},i}var o,a,s=t||0,l=!1,u=!0,c=null,d=0,h=Date.now(),p=null;n&&"boolean"==typeof n.leading&&(l=n.leading),n&&"boolean"==typeof n.trailing&&(u=n.trailing),n&&"number"==typeof n.maxWait&&!isNaN(n.maxWait)&&(c=n.maxWait);var f=function(e){p&&(r.clearTimeout(p),p=null),h=e},g=function(t){f(t),o=e.apply(r._parent,a)},m=function(e){var t=Date.now(),n=!1;e&&(l&&t-d>=s&&(n=!0),d=t);var i=t-d,a=s-i,f=t-h,v=!1;return null!==c&&(f>=c&&p?v=!0:a=Math.min(a,c-f)),i>=s||v||n?g(t):null!==p&&e||!u||(p=r.setTimeout(m,a)),o},v=function(){return!!p},_=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return a=e,m(!0)};return _.cancel=function(){v()&&f(Date.now())},_.flush=function(){return v()&&g(Date.now()),o},_.pending=v,_},e.prototype.requestAnimationFrame=function(e,t){var n=this,r=0,i=d(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=d(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 Tt(){var e=s.useRef();return e.current||(e.current=new Dt),s.useEffect((function(){return function(){var t;null===(t=e.current)||void 0===t||t.dispose(),e.current=void 0}}),[]),e.current}function Mt(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 Ne(n,t,(function(e){return i.current(e)}),r)}),[e,t,r])}function Pt(){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 Nt=s.createContext({window:"object"==typeof window?window:void 0}),Ft=function(){return s.useContext(Nt).window};function It(e){var t=e.originalElement,n=e.containsFocus;t&&n&&t!==d()&&setTimeout((function(){var e;null===(e=t.focus)||void 0===e||e.call(t)}),0)}var Ot=s.forwardRef((function(e,t){var n=Fe({shouldRestoreFocus:!0,enableAriaHiddenSiblings:!0},e),r=s.useRef(),o=Pt(r,t);!function(e,t){var n="true"===String(e["aria-modal"]).toLowerCase()&&e.enableAriaHiddenSiblings;s.useEffect((function(){if(n&&t.current)return At(t.current)}),[t,n])}(n,r),function(e,t){var n=e.onRestoreFocus,r=void 0===n?It:n,i=s.useRef(),o=s.useRef(!1);s.useEffect((function(){return i.current=Q().activeElement,function(e){var t=Q(e),n=t&&t.activeElement;return!(!n||!Ce(e,n))}(t.current)&&(o.current=!0),function(){var e;null==r||r({originalElement:i.current,containsFocus:o.current,documentContainsFocus:(null===(e=Q())||void 0===e?void 0:e.hasFocus())||!1}),i.current=void 0}}),[]),Mt(t,"focus",s.useCallback((function(){o.current=!0}),[]),!0),Mt(t,"blur",s.useCallback((function(e){t.current&&e.relatedTarget&&!t.current.contains(e.relatedTarget)&&(o.current=!1)}),[]),!0)}(n,r);var a=n.role,l=n.className,u=n.ariaLabel,c=n.ariaLabelledBy,d=n.ariaDescribedBy,h=n.style,p=n.children,f=n.onDismiss,g=function(e,t){var n=Tt(),r=s.useState(!1),i=r[0],o=r[1];return s.useEffect((function(){return n.requestAnimationFrame((function(){var n;if(!e.style||!e.style.overflowY){var r=!1;if(t&&t.current&&(null===(n=t.current)||void 0===n?void 0:n.firstElementChild)){var a=t.current.clientHeight,s=t.current.firstElementChild.clientHeight;a>0&&s>a&&(r=s-a>1)}i!==r&&o(r)}})),function(){return n.dispose()}})),i}(n,r),m=s.useCallback((function(e){e.which===wt&&f&&(f(e),e.preventDefault(),e.stopPropagation())}),[f]);return Mt(Ft(),"keydown",m),s.createElement("div",i({ref:o},qe(n,Ye),{className:l,role:a,"aria-label":u,"aria-labelledby":c,"aria-describedby":d,onKeyDown:m,style:i({overflowY:g?"scroll":void 0,outline:"none"},h)}),p)}));function Vt(e){var t=L.getInstance(),n=[];for(var r in e)e.hasOwnProperty(r)&&n.push(r,"{",G(ne(),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}Ot.displayName="Popup";var Ht="cubic-bezier(.1,.9,.2,1)",Rt="cubic-bezier(.1,.25,.75,.9)",Bt="0.167s",Wt="0.267s",zt="0.367s",Ut="0.467s",Yt=Vt({from:{opacity:0},to:{opacity:1}}),qt=Vt({from:{opacity:1},to:{opacity:0,visibility:"hidden"}}),jt=kn(-10),Xt=kn(-20),Kt=kn(-40),Gt=kn(-400),Zt=kn(10),$t=kn(20),Qt=kn(40),Jt=kn(400),en=Sn(10),tn=Sn(20),nn=Sn(-10),rn=Sn(-20),on=Ln(10),an=Ln(20),sn=Ln(40),ln=Ln(400),un=Ln(-10),cn=Ln(-20),dn=Ln(-40),hn=Ln(-400),pn=An(-10),fn=An(-20),gn=An(10),mn=An(20),vn=Vt({from:{transform:"scale3d(.98,.98,1)"},to:{transform:"scale3d(1,1,1)"}}),_n=Vt({from:{transform:"scale3d(1,1,1)"},to:{transform:"scale3d(.98,.98,1)"}}),yn=Vt({from:{transform:"scale3d(1.03,1.03,1)"},to:{transform:"scale3d(1,1,1)"}}),xn=Vt({from:{transform:"scale3d(1,1,1)"},to:{transform:"scale3d(1.03,1.03,1)"}}),bn=Vt({from:{transform:"rotateZ(0deg)"},to:{transform:"rotateZ(90deg)"}}),Cn=Vt({from:{transform:"rotateZ(0deg)"},to:{transform:"rotateZ(-90deg)"}});function En(e,t,n){return{animationName:e,animationDuration:t,animationTimingFunction:n,animationFillMode:"both"}}function kn(e){return Vt({from:{transform:"translate3d("+e+"px,0,0)",pointerEvents:"none"},to:{transform:"translate3d(0,0,0)",pointerEvents:"auto"}})}function Sn(e){return Vt({from:{transform:"translate3d(0,"+e+"px,0)",pointerEvents:"none"},to:{transform:"translate3d(0,0,0)",pointerEvents:"auto"}})}function Ln(e){return Vt({from:{transform:"translate3d(0,0,0)"},to:{transform:"translate3d("+e+"px,0,0)"}})}function An(e){return Vt({from:{transform:"translate3d(0,0,0)"},to:{transform:"translate3d(0,"+e+"px,0)"}})}var wn,Dn,Tn,Mn,Pn,Nn=function(e){var t={},n=function(n){var r;e.hasOwnProperty(n)&&Object.defineProperty(t,n,{get:function(){return void 0===r&&(r=Ge(e[n]).toString()),r},enumerable:!0,configurable:!0})};for(var r in e)n(r);return t}({slideRightIn10:En(Yt+","+jt,zt,Ht),slideRightIn20:En(Yt+","+Xt,zt,Ht),slideRightIn40:En(Yt+","+Kt,zt,Ht),slideRightIn400:En(Yt+","+Gt,zt,Ht),slideLeftIn10:En(Yt+","+Zt,zt,Ht),slideLeftIn20:En(Yt+","+$t,zt,Ht),slideLeftIn40:En(Yt+","+Qt,zt,Ht),slideLeftIn400:En(Yt+","+Jt,zt,Ht),slideUpIn10:En(Yt+","+en,zt,Ht),slideUpIn20:En(Yt+","+tn,zt,Ht),slideDownIn10:En(Yt+","+nn,zt,Ht),slideDownIn20:En(Yt+","+rn,zt,Ht),slideRightOut10:En(qt+","+on,zt,Ht),slideRightOut20:En(qt+","+an,zt,Ht),slideRightOut40:En(qt+","+sn,zt,Ht),slideRightOut400:En(qt+","+ln,zt,Ht),slideLeftOut10:En(qt+","+un,zt,Ht),slideLeftOut20:En(qt+","+cn,zt,Ht),slideLeftOut40:En(qt+","+dn,zt,Ht),slideLeftOut400:En(qt+","+hn,zt,Ht),slideUpOut10:En(qt+","+pn,zt,Ht),slideUpOut20:En(qt+","+fn,zt,Ht),slideDownOut10:En(qt+","+gn,zt,Ht),slideDownOut20:En(qt+","+mn,zt,Ht),scaleUpIn100:En(Yt+","+vn,zt,Ht),scaleDownIn100:En(Yt+","+yn,zt,Ht),scaleUpOut103:En(qt+","+xn,Bt,Rt),scaleDownOut98:En(qt+","+_n,Bt,Rt),fadeIn100:En(Yt,Bt,Rt),fadeIn200:En(Yt,Wt,Rt),fadeIn400:En(Yt,zt,Rt),fadeIn500:En(Yt,Ut,Rt),fadeOut100:En(qt,Bt,Rt),fadeOut200:En(qt,Wt,Rt),fadeOut400:En(qt,zt,Rt),fadeOut500:En(qt,Ut,Rt),rotate90deg:En(bn,"0.1s",Rt),rotateN90deg:En(Cn,"0.1s",Rt)}),Fn={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)"}(wn||(wn={})),function(e){e.Arabic="'"+wn.Arabic+"'",e.ChineseSimplified="'Microsoft Yahei UI', Verdana, Simsun",e.ChineseTraditional="'Microsoft Jhenghei UI', Pmingliu",e.Cyrillic="'"+wn.Cyrillic+"'",e.EastEuropean="'"+wn.EastEuropean+"'",e.Greek="'"+wn.Greek+"'",e.Hebrew="'"+wn.Hebrew+"'",e.Hindi="'Nirmala UI'",e.Japanese="'Yu Gothic UI', 'Meiryo UI', Meiryo, 'MS Pgothic', Osaka",e.Korean="'Malgun Gothic', Gulim",e.Selawik="'"+wn.Selawik+"'",e.Thai="'Leelawadee UI Web', 'Kmer UI'",e.Vietnamese="'"+wn.Vietnamese+"'",e.WestEuropean="'"+wn.WestEuropean+"'",e.Armenian="'"+wn.Armenian+"'",e.Georgian="'"+wn.Georgian+"'"}(Dn||(Dn={})),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"}(Tn||(Tn={})),function(e){e.light=100,e.semilight=300,e.regular=400,e.semibold=600,e.bold=700}(Mn||(Mn={})),function(e){e.xSmall="10px",e.small="12px",e.medium="16px",e.large="20px"}(Pn||(Pn={}));var In,On="@media screen and (-ms-high-contrast: active), screen and (forced-colors: active)",Vn="@media screen and (-ms-high-contrast: white-on-black), screen and (forced-colors: active) and (prefers-color-scheme: dark)";function Hn(e,t,n,r,i,o,a,s){return function(e,t){var n,r;void 0===t&&(t={});var i=t.borderRadius,o=t.inset,a=void 0===o?0:o,s=t.width,l=void 0===s?1:s,u=t.position,c=void 0===u?"relative":u,d=t.highContrastStyle,h=t.borderColor,p=void 0===h?e.palette.white:h,f=t.outlineColor,g=void 0===f?e.palette.neutralSecondary:f,m=t.isFocusedOnly,v=void 0===m||m,_=t.pointerEvents;return{outline:"transparent",position:c,selectors:(n={"::-moz-focus-inner":{border:"0"}},n[".ms-Fabric--isFocusVisible &"+(v?":focus":"")+":after"]={content:'""',position:"absolute",pointerEvents:_,left:a+1,top:a+1,bottom:a+1,right:a+1,border:l+"px solid "+p,outline:l+"px solid "+g,zIndex:In.FocusStyle,borderRadius:i,selectors:(r={},r[On]=d,r)},n)}}(e,"number"!=typeof t&&t?t:{inset:t,position:n,highContrastStyle:r,borderColor:i,outlineColor:o,isFocusedOnly:a,borderRadius:s})}!function(e){e.Nav=1,e.ScrollablePane=1,e.FocusStyle=1,e.Coachmark=1e3,e.Layer=1e6,e.KeytipLayer=1000001}(In||(In={}));var Rn={position:"absolute",width:1,height:1,margin:-1,padding:0,border:0,overflow:"hidden",whiteSpace:"nowrap"},Bn=!1,Wn=0,zn={empty:!0},Un={},Yn="undefined"==typeof WeakMap?null:WeakMap;function qn(){Wn++}function jn(e,t,n){if(void 0===t&&(t=100),void 0===n&&(n=!1),!Yn)return e;if(!Bn){var r=L.getInstance();r&&r.onReset&&L.getInstance().onReset(qn),Bn=!0}var i,o=0,a=Wn;return function(){for(var r=[],s=0;s<arguments.length;s++)r[s]=arguments[s];var l=i;(void 0===i||a!==Wn||t>0&&o>t)&&(i=Gn(),o=0,a=Wn),l=i;for(var u=0;u<r.length;u++){var c=Kn(r[u]);l.map.has(c)||l.map.set(c,Gn()),l=l.map.get(c)}return l.hasOwnProperty("value")||(l.value=e.apply(void 0,r),o++),!n||null!==l.value&&void 0!==l.value||(l.value=e.apply(void 0,r)),l.value}}function Xn(e){if(!Yn)return e;var t=new Yn;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 Kn(e){return e?"object"==typeof e||"function"==typeof e?e:(Un[e]||(Un[e]={val:e}),Un[e]):zn}function Gn(){return{map:Yn?new Yn:null}}var Zn=jn((function(e,t){var n=L.getInstance();return t?Object.keys(e).reduce((function(t,r){return t[r]=n.getClassName(e[r]),t}),{}):e}));function $n(e,t,n){return Zn(e,void 0!==n?n:t.disableGlobalClassNames)}var Qn,Jn,er=function(){return er=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},er.apply(this,arguments)},tr="undefined"==typeof window?e.g:window,nr=tr&&tr.CSPSettings&&tr.CSPSettings.nonce,rr=((Jn=tr.__themeState__||{theme:void 0,lastStyleElement:void 0,registeredStyles:[]}).runState||(Jn=er({},Jn,{perf:{count:0,duration:0},runState:{flushTimer:0,mode:0,buffer:[]}})),Jn.registeredThemableStyles||(Jn=er({},Jn,{registeredThemableStyles:[]})),tr.__themeState__=Jn,Jn);function ir(e){rr.theme=e,function(){if(rr.theme){for(var e=[],t=0,n=rr.registeredThemableStyles;t<n.length;t++){var r=n[t];e.push(r.themableStyle)}e.length>0&&(void 0===(o=1)&&(o=3),3!==o&&2!==o||(or(rr.registeredStyles),rr.registeredStyles=[]),3!==o&&1!==o||(or(rr.registeredThemableStyles),rr.registeredThemableStyles=[]),i=[].concat.apply([],e),rr.loadStyles?rr.loadStyles(ar(i).styleString,i):function(e){if("undefined"!=typeof document){var t=document.getElementsByTagName("head")[0],n=document.createElement("style"),r=ar(e),i=r.styleString,o=r.themable;n.setAttribute("data-load-themed-styles","true"),n.type="text/css",nr&&n.setAttribute("nonce",nr),n.appendChild(document.createTextNode(i)),rr.perf.count++,t.appendChild(n);var a=document.createEvent("HTMLEvents");a.initEvent("styleinsert",!0,!1),a.args={newStyle:n},document.dispatchEvent(a);var s={styleElement:n,themableStyle:e};o?rr.registeredThemableStyles.push(s):rr.registeredStyles.push(s)}}(i))}var i,o}()}function or(e){e.forEach((function(e){var t=e&&e.styleElement;t&&t.parentElement&&t.parentElement.removeChild(t)}))}function ar(e){var t=rr.theme,n=!1;return{styleString:(e||[]).map((function(e){var r=e.theme;if(r){n=!0;var i=t?t[r]:void 0,o=e.defaultValue||"inherit";return t&&!i&&console&&!(r in t)&&"undefined"!=typeof DEBUG&&DEBUG&&console.warn('Theming value not provided for "'+r+'". Falling back to "'+o+'".'),i||o}return e.rawString})).join(""),themable:n}}!function(e){e.depth0="0 0 0 0 transparent",e.depth4="0 1.6px 3.6px 0 rgba(0, 0, 0, 0.132), 0 0.3px 0.9px 0 rgba(0, 0, 0, 0.108)",e.depth8="0 3.2px 7.2px 0 rgba(0, 0, 0, 0.132), 0 0.6px 1.8px 0 rgba(0, 0, 0, 0.108)",e.depth16="0 6.4px 14.4px 0 rgba(0, 0, 0, 0.132), 0 1.2px 3.6px 0 rgba(0, 0, 0, 0.108)",e.depth64="0 25.6px 57.6px 0 rgba(0, 0, 0, 0.22), 0 4.8px 14.4px 0 rgba(0, 0, 0, 0.18)"}(Qn||(Qn={}));var sr,lr={elevation4:Qn.depth4,elevation8:Qn.depth8,elevation16:Qn.depth16,elevation64:Qn.depth64,roundedCorner2:"2px",roundedCorner4:"4px",roundedCorner6:"6px"},ur="'Segoe UI', '"+wn.WestEuropean+"'",cr={ar:Dn.Arabic,bg:Dn.Cyrillic,cs:Dn.EastEuropean,el:Dn.Greek,et:Dn.EastEuropean,he:Dn.Hebrew,hi:Dn.Hindi,hr:Dn.EastEuropean,hu:Dn.EastEuropean,ja:Dn.Japanese,kk:Dn.EastEuropean,ko:Dn.Korean,lt:Dn.EastEuropean,lv:Dn.EastEuropean,pl:Dn.EastEuropean,ru:Dn.Cyrillic,sk:Dn.EastEuropean,"sr-latn":Dn.EastEuropean,th:Dn.Thai,tr:Dn.EastEuropean,uk:Dn.Cyrillic,vi:Dn.Vietnamese,"zh-hans":Dn.ChineseSimplified,"zh-hant":Dn.ChineseTraditional,hy:Dn.Armenian,ka:Dn.Georgian};function dr(e,t,n){return{fontFamily:n,MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontSize:e,fontWeight:t}}var hr,pr="language",fr=(hr=function(e){for(var t in cr)if(cr.hasOwnProperty(t)&&e&&0===t.indexOf(e))return cr[t];return ur}(function(e){if(void 0===e&&(e="sessionStorage"),void 0===sr){var t=Q(),n="localStorage"===e?function(e){var t=null;try{var n=d();t=n?n.localStorage.getItem("language"):null}catch(e){}return t}():"sessionStorage"===e?J(pr):void 0;n&&(sr=n),void 0===sr&&t&&(sr=t.documentElement.getAttribute("lang")),void 0===sr&&(sr="en")}return sr}())+", 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif",{tiny:dr(Tn.mini,Mn.regular,hr),xSmall:dr(Tn.xSmall,Mn.regular,hr),small:dr(Tn.small,Mn.regular,hr),smallPlus:dr(Tn.smallPlus,Mn.regular,hr),medium:dr(Tn.medium,Mn.regular,hr),mediumPlus:dr(Tn.mediumPlus,Mn.regular,hr),large:dr(Tn.large,Mn.regular,hr),xLarge:dr(Tn.xLarge,Mn.semibold,hr),xLargePlus:dr(Tn.xLargePlus,Mn.semibold,hr),xxLarge:dr(Tn.xxLarge,Mn.semibold,hr),xxLargePlus:dr(Tn.xxLargePlus,Mn.semibold,hr),superLarge:dr(Tn.superLarge,Mn.semibold,hr),mega:dr(Tn.mega,Mn.semibold,hr)});function gr(e,t,n,r){!function(e){var t=L.getInstance(),n=G(ne(),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 mr(e,t,n,r,i){void 0===r&&(r="segoeui");var o=e+"/"+n+"/"+r;gr(t,o+"-light",Mn.light,i&&i+" Light"),gr(t,o+"-semilight",Mn.semilight,i&&i+" SemiLight"),gr(t,o+"-regular",Mn.regular,i),gr(t,o+"-semibold",Mn.semibold,i&&i+" SemiBold"),gr(t,o+"-bold",Mn.bold,i&&i+" Bold")}function vr(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];_r(e||{},o)}return e}function _r(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:_r(e[r]||{},i,n)}}return n.pop(),e}function yr(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}(xr(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 xr(e,t,n,r,o){void 0===o&&(o=!1);var a={},s=e||{},l=s.white,u=s.black,c=s.themePrimary,d=s.themeDark,h=s.themeDarker,p=s.themeDarkAlt,f=s.themeLighter,g=s.neutralLight,m=s.neutralLighter,v=s.neutralDark,_=s.neutralQuaternary,y=s.neutralQuaternaryAlt,x=s.neutralPrimary,b=s.neutralSecondary,C=s.neutralSecondaryAlt,E=s.neutralTertiary,k=s.neutralTertiaryAlt,S=s.neutralLighterAlt,L=s.accent;return l&&(a.bodyBackground=l,a.bodyFrameBackground=l,a.accentButtonText=l,a.buttonBackground=l,a.primaryButtonText=l,a.primaryButtonTextHovered=l,a.primaryButtonTextPressed=l,a.inputBackground=l,a.inputForegroundChecked=l,a.listBackground=l,a.menuBackground=l,a.cardStandoutBackground=l),u&&(a.bodyTextChecked=u,a.buttonTextCheckedHovered=u),c&&(a.link=c,a.primaryButtonBackground=c,a.inputBackgroundChecked=c,a.inputIcon=c,a.inputFocusBorderAlt=c,a.menuIcon=c,a.menuHeader=c,a.accentButtonBackground=c),d&&(a.primaryButtonBackgroundPressed=d,a.inputBackgroundCheckedHovered=d,a.inputIconHovered=d),h&&(a.linkHovered=h),p&&(a.primaryButtonBackgroundHovered=p),f&&(a.inputPlaceholderBackgroundChecked=f),g&&(a.bodyBackgroundChecked=g,a.bodyFrameDivider=g,a.bodyDivider=g,a.variantBorder=g,a.buttonBackgroundCheckedHovered=g,a.buttonBackgroundPressed=g,a.listItemBackgroundChecked=g,a.listHeaderBackgroundPressed=g,a.menuItemBackgroundPressed=g,a.menuItemBackgroundChecked=g),m&&(a.bodyBackgroundHovered=m,a.buttonBackgroundHovered=m,a.buttonBackgroundDisabled=m,a.buttonBorderDisabled=m,a.primaryButtonBackgroundDisabled=m,a.disabledBackground=m,a.listItemBackgroundHovered=m,a.listHeaderBackgroundHovered=m,a.menuItemBackgroundHovered=m),_&&(a.primaryButtonTextDisabled=_,a.disabledSubtext=_),y&&(a.listItemBackgroundCheckedHovered=y),E&&(a.disabledBodyText=E,a.variantBorderHovered=(null==n?void 0:n.variantBorderHovered)||E,a.buttonTextDisabled=E,a.inputIconDisabled=E,a.disabledText=E),x&&(a.bodyText=x,a.actionLink=x,a.buttonText=x,a.inputBorderHovered=x,a.inputText=x,a.listText=x,a.menuItemText=x),S&&(a.bodyStandoutBackground=S,a.defaultStateBackground=S),v&&(a.actionLinkHovered=v,a.buttonTextHovered=v,a.buttonTextChecked=v,a.buttonTextPressed=v,a.inputTextHovered=v,a.menuItemTextHovered=v),b&&(a.bodySubtext=b,a.focusBorder=b,a.inputBorder=b,a.smallInputBorder=b,a.inputPlaceholderText=b),C&&(a.buttonBorder=C),k&&(a.disabledBodySubtext=k,a.disabledBorder=k,a.buttonBackgroundChecked=k,a.menuDivider=k),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";mr(t,wn.Thai,"leelawadeeui-thai","leelawadeeui"),mr(t,wn.Arabic,"segoeui-arabic"),mr(t,wn.Cyrillic,"segoeui-cyrillic"),mr(t,wn.EastEuropean,"segoeui-easteuropean"),mr(t,wn.Greek,"segoeui-greek"),mr(t,wn.Hebrew,"segoeui-hebrew"),mr(t,wn.Vietnamese,"segoeui-vietnamese"),mr(t,wn.WestEuropean,"segoeui-westeuropean","segoeui","Segoe UI"),mr(t,Dn.Selawik,"selawik","selawik"),mr(t,wn.Armenian,"segoeui-armenian"),mr(t,wn.Georgian,"segoeui-georgian"),gr("Leelawadee UI Web",t+"/leelawadeeui-thai/leelawadeeui-semilight",Mn.light),gr("Leelawadee UI Web",t+"/leelawadeeui-thai/leelawadeeui-bold",Mn.semibold)}}(function(){var e,t,n=null===(e=d())||void 0===e?void 0:e.FabricConfig;return null!==(t=null==n?void 0:n.fontBaseUrl)&&void 0!==t?t:"https://res-1.cdn.office.net/files/fabric-cdn-prod_20221209.001/assets"}());var br={s2:"4px",s1:"8px",m:"16px",l1:"20px",l2:"32px"};function Cr(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=vr({},e,t,{semanticColors:xr(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]=vr(o.fonts[l],t.defaultFontStyle,null===(i=null==t?void 0:t.fonts)||void 0===i?void 0:i[l])}return o}({palette:Fn,effects:lr,fonts:fr,spacing:br,isInverted:n,disableGlobalClassNames:!1,semanticColors:yr(Fn,lr,void 0,n,t),rtl:void 0},e)}var Er=Cr({}),kr=[];function Sr(){var e,t,n,r=d();(null===(t=null==r?void 0:r.FabricConfig)||void 0===t?void 0:t.legacyTheme)?function(e,t){var n;void 0===t&&(t=!1),Er=Cr(e,t),ir(i(i(i(i({},Er.palette),Er.semanticColors),Er.effects),function(e){for(var t={},n=0,r=Object.keys(e.fonts);n<r.length;n++)for(var i=r[n],o=e.fonts[i],a=0,s=Object.keys(o);a<s.length;a++){var l=s[a],u=i+l.charAt(0).toUpperCase()+l.slice(1),c=o[l];"fontSize"===l&&"number"==typeof c&&(c+="px"),t[u]=c}return t}(Er))),y.applySettings(((n={}).theme=Er,n)),kr.forEach((function(e){try{e(Er)}catch(e){}}))}(r.FabricConfig.legacyTheme):y.getSettings(["theme"]).theme||((null===(n=null==r?void 0:r.FabricConfig)||void 0===n?void 0:n.theme)&&(Er=Cr(r.FabricConfig.theme)),y.applySettings(((e={}).theme=Er,e)))}Sr();var Lr,Ar={},wr=void 0;try{wr=window}catch(e){}function Dr(e,t){if(void 0!==wr){var n=wr.__packages__=wr.__packages__||{};n[e]&&Ar[e]||(Ar[e]=t,(n[e]=n[e]||[]).push(t))}}function Tr(e){var t=s.useRef();return void 0===t.current&&(t.current={value:"function"==typeof e?e():e}),t.current.value}Dr("@fluentui/set-version","6.0.0"),Dr("@fluentui/style-utilities","8.9.6"),Sr();var Mr=((Lr={})[Ie.top]=Nn.slideUpIn10,Lr[Ie.bottom]=Nn.slideDownIn10,Lr[Ie.left]=Nn.slideLeftIn10,Lr[Ie.right]=Nn.slideRightIn10,Lr),Pr={opacity:0,filter:"opacity(0)",pointerEvents:"none"},Nr=["role","aria-roledescription"],Fr={preventDismissOnLostFocus:!1,preventDismissOnScroll:!1,preventDismissOnResize:!1,isBeakVisible:!0,beakWidth:16,gapSpace:0,minPagePadding:8,directionalHint:7},Ir=ue({disableCaching:!0});function Or(e,t,n,r,o){var a=s.useState(),l=a[0],u=a[1],c=s.useRef(0),d=s.useRef(),h=Tt(),p=e.hidden,f=e.target,g=e.finalHeight,m=e.calloutMaxHeight,v=e.onPositioned,_=e.directionalHint;return s.useEffect((function(){if(!p){var a=h.requestAnimationFrame((function(){var a,s,h,p;if(t.current&&n){var _=i(i({},e),{target:r.current,bounds:o()}),y=n.cloneNode(!0);y.style.maxHeight=m?""+m:"",y.style.visibility="hidden",null===(a=n.parentElement)||void 0===a||a.appendChild(y);var x=d.current===f?l:void 0,b=g?function(e,t,n,r){return function(e,t,n,r){return St(e,t,n,r,!0)}(e,t,n,r)}(_,t.current,y,x):function(e,t,n,r){return St(e,t,n,r)}(_,t.current,y,x);null===(s=n.parentElement)||void 0===s||s.removeChild(y),!l&&b||l&&b&&(p=b,!Rr((h=l).elementPosition,p.elementPosition)||!Rr(h.beakPosition.elementPosition,p.beakPosition.elementPosition))&&c.current<5?(c.current++,u(b)):c.current>0&&(c.current=0,null==v||v(l))}}),n);return d.current=f,function(){h.cancelAnimationFrame(a),d.current=void 0}}u(void 0),c.current=0}),[p,_,h,n,m,t,r,g,o,v,l,e,f]),l}var Vr=s.memo(s.forwardRef((function(e,t){var n=Fe(Fr,e),r=n.styles,o=n.style,a=n.ariaLabel,l=n.ariaDescribedBy,u=n.ariaLabelledBy,c=n.className,d=n.isBeakVisible,h=n.children,p=n.beakWidth,f=n.calloutWidth,g=n.calloutMaxWidth,m=n.calloutMinWidth,v=n.doNotLayer,_=n.finalHeight,y=n.hideOverflow,x=void 0===y?!!_:y,b=n.backgroundColor,C=n.calloutMaxHeight,E=n.onScroll,k=n.shouldRestoreFocus,S=void 0===k||k,L=n.target,A=n.hidden,w=n.onLayerMounted,D=n.popupProps,T=s.useRef(null),M=s.useState(null),P=M[0],N=M[1],F=s.useCallback((function(e){N(e)}),[]),I=Pt(T,t),O=function(e,t){var n=s.useRef(),r=s.useRef(null),i=Ft();if(!e||e!==n.current||"string"==typeof e){if(e)if("string"==typeof e){var o=Q(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:P}),V=O[0],H=O[1],R=function(e,t,n){var r=e.bounds,i=e.minPagePadding,o=void 0===i?Fr.minPagePadding:i,a=e.target,l=s.useState(!1),u=l[0],c=l[1],d=s.useRef(),h=s.useCallback((function(){if(!d.current||u){var e="function"==typeof r?n?r(a,n):void 0:r;!e&&n&&(e=function(e,t){return function(e,t){var n=void 0;if(t.getWindowSegments&&(n=t.getWindowSegments()),void 0===n||n.length<=1)return{top:0,left:0,right:t.innerWidth,bottom:t.innerHeight,width:t.innerWidth,height:t.innerHeight};var r=0,i=0;if(null!==e&&e.getBoundingClientRect){var o=e.getBoundingClientRect();r=(o.left+o.right)/2,i=(o.top+o.bottom)/2}else null!==e&&(r=e.left||e.x,i=e.top||e.y);for(var a={top:0,left:0,right:0,bottom:0,width:0,height:0},s=0,l=n;s<l.length;s++){var u=l[s];r&&u.left<=r&&u.right>=r&&i&&u.top<=i&&u.bottom>=i&&(a={top:u.top,left:u.left,right:u.right,bottom:u.bottom,width:u.width,height:u.height})}return a}(e,t)}(t.current,n),e={top:e.top+o,left:e.left+o,right:e.right-o,bottom:e.bottom-o,width:e.width-2*o,height:e.height-2*o}),d.current=e,u&&c(!1)}return d.current}),[r,o,a,t,n,u]),p=Tt();return Mt(n,"resize",p.debounce((function(){c(!0)}),500,{leading:!0})),h}(n,V,H),B=Or(n,T,P,V,R),W=function(e,t,n){var r,i=e.calloutMaxHeight,o=e.finalHeight,a=e.directionalHint,l=e.directionalHintFixed,u=e.hidden,c=s.useState(),d=c[0],h=c[1],p=null!==(r=null==n?void 0:n.elementPosition)&&void 0!==r?r:{},f=p.top,g=p.bottom;return s.useEffect((function(){var e,n,r=null!==(e=t())&&void 0!==e?e:{},o=r.top,a=r.bottom;"number"==typeof f&&a?n=a-f:"number"==typeof g&&"number"==typeof o&&a&&(n=a-o-g),h(!i&&!u||i&&n&&i>n?n:i||void 0)}),[g,i,o,a,l,t,u,n,f]),d}(n,R,B),z=function(e,t,n,r,i){var o=e.hidden,a=e.onDismiss,l=e.preventDismissOnScroll,u=e.preventDismissOnResize,c=e.preventDismissOnLostFocus,d=e.dismissOnTargetClick,h=e.shouldDismissOnWindowFocus,p=e.preventDismissOnEvent,f=s.useRef(!1),g=Tt(),m=Tr([function(){f.current=!0},function(){f.current=!1}]),v=!!t;return s.useEffect((function(){var e=function(e){v&&!l&&m(e)},t=function(e){u||p&&p(e)||null==a||a(e)},s=function(e){c||m(e)},m=function(e){var t=e.composedPath?e.composedPath():[],o=t.length>0?t[0]:e.target,s=n.current&&!Ce(n.current,o);if(s&&f.current)f.current=!1;else if(!r.current&&s||e.target!==i&&s&&(!r.current||"stopPropagation"in r.current||d||o!==r.current&&!Ce(r.current,o))){if(p&&p(e))return;null==a||a(e)}},_=function(e){h&&((!p||p(e))&&(p||c)||(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=[Ne(i,"scroll",e,!0),Ne(i,"resize",t,!0),Ne(i.document.documentElement,"focus",s,!0),Ne(i.document.documentElement,"click",s,!0),Ne(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,c,u,l,v,p]),m}(n,B,T,V,H),U=z[0],Y=z[1],q=(null==B?void 0:B.elementPosition.top)&&(null==B?void 0:B.elementPosition.bottom),j=i(i({},null==B?void 0:B.elementPosition),{maxHeight:W});if(q&&(j.bottom=void 0),function(e,t,n){var r=e.hidden,i=e.setInitialFocus,o=Tt(),a=!!t;s.useEffect((function(){if(!r&&i&&a&&n){var e=o.requestAnimationFrame((function(){return Ee(n)}),n);return function(){return o.cancelAnimationFrame(e)}}}),[r,a,o,n,i])}(n,B,P),s.useEffect((function(){A||null==w||w()}),[A]),!H)return null;var X=x,K=d&&!!L,G=Ir(r,{theme:n.theme,className:c,overflowYHidden:X,calloutWidth:f,positions:B,beakWidth:p,backgroundColor:b,calloutMaxWidth:g,calloutMinWidth:m,doNotLayer:v}),Z=i(i({maxHeight:C||"100%"},o),X&&{overflowY:"hidden"}),$=n.hidden?{visibility:"hidden"}:void 0;return s.createElement("div",{ref:I,className:G.container,style:$},s.createElement("div",i({},qe(n,Ye,Nr),{className:je(G.root,B&&B.targetEdge&&Mr[B.targetEdge]),style:B?i({},j):Pr,tabIndex:-1,ref:F}),K&&s.createElement("div",{className:G.beak,style:Hr(B)}),K&&s.createElement("div",{className:G.beakCurtain}),s.createElement(Ot,i({role:n.role,"aria-roledescription":n["aria-roledescription"],ariaDescribedBy:l,ariaLabel:a,ariaLabelledBy:u,className:G.calloutMain,onDismiss:n.onDismiss,onMouseDown:U,onMouseUp:Y,onRestoreFocus:n.onRestoreFocus,onScroll:E,shouldRestoreFocus:S,style:Z},D),h)))})),(function(e,t){return!(t.shouldUpdateWhenHidden||!e.hidden||!t.hidden)||function(e,t){if(!e||!t)return!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 Hr(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 Rr(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 Br(e){return{height:e,width:e}}Vr.displayName="CalloutContentBase";var Wr={container:"ms-Callout-container",root:"ms-Callout",beak:"ms-Callout-beak",beakCurtain:"ms-Callout-beakCurtain",calloutMain:"ms-Callout-main"},zr=C(Vr,(function(e){var t,n=e.theme,r=e.className,i=e.overflowYHidden,o=e.calloutWidth,a=e.beakWidth,s=e.backgroundColor,l=e.calloutMaxWidth,u=e.calloutMinWidth,c=e.doNotLayer,d=$n(Wr,n),h=n.semanticColors,p=n.effects;return{container:[d.container,{position:"relative"}],root:[d.root,n.fonts.medium,{position:"absolute",display:"flex",zIndex:c?In.Layer:void 0,boxSizing:"border-box",borderRadius:p.roundedCorner2,boxShadow:p.elevation16,selectors:(t={},t[On]={borderWidth:1,borderStyle:"solid",borderColor:"WindowText"},t)},{selectors:{"&::-moz-focus-inner":{border:0},"&":{outline:"transparent"}}},r,!!o&&{width:o},!!l&&{maxWidth:l},!!u&&{minWidth:u}],beak:[d.beak,{position:"absolute",backgroundColor:h.menuBackground,boxShadow:"inherit",border:"inherit",boxSizing:"border-box",transform:"rotate(45deg)"},Br(a),s&&{backgroundColor:s}],beakCurtain:[d.beakCurtain,{position:"absolute",top:0,right:0,bottom:0,left:0,backgroundColor:h.menuBackground,borderRadius:p.roundedCorner2}],calloutMain:[d.calloutMain,{backgroundColor:h.menuBackground,overflowX:"hidden",overflowY:"auto",position:"relative",width:"100%",borderRadius:p.roundedCorner2},i&&{overflowY:"hidden"},s&&{backgroundColor:s}]}}),void 0,{scope:"CalloutContent"});const Ur=s.createContext(void 0),Yr=()=>()=>{};Ur.Provider;var qr=ReactDOM;new WeakMap,new WeakMap;var jr=s.createContext(void 0),Xr=function(e){var t=e.providerRef,n=e.layerRoot,r=s.useState([])[0],i=s.useContext(jr),o=void 0!==i&&!n,a=s.useMemo((function(){return o?void 0:{providerRef:t,registeredProviders:r,registerProvider:function(e){r.push(e),null==i||i.registerProvider(e)},unregisterProvider:function(e){null==i||i.unregisterProvider(e);var t=r.indexOf(e);t>=0&&r.splice(t,1)}}}),[t,r,i,o]);return s.useEffect((function(){if(a)return a.registerProvider(a.providerRef),function(){return a.unregisterProvider(a.providerRef)}}),[a]),a?s.createElement(jr.Provider,{value:a},e.children):s.createElement(s.Fragment,null,e.children)};function Kr(e,t){void 0===e&&(e={});var n=Gr(t)?t:function(e){return function(t){return e?i(i({},t),e):t}}(t);return n(e)}function Gr(e){return"function"==typeof e}var Zr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onCustomizationChange=function(){return t.forceUpdate()},t}return r(t,e),t.prototype.componentDidMount=function(){y.observe(this._onCustomizationChange)},t.prototype.componentWillUnmount=function(){y.unobserve(this._onCustomizationChange)},t.prototype.render=function(){var e=this,t=this.props.contextTransform;return s.createElement(x.Consumer,null,(function(n){var r=function(e,t){var n,r,o,a=(t||{}).customizations,s=void 0===a?{settings:{},scopedSettings:{}}:a;return{customizations:{settings:Kr(s.settings,e.settings),scopedSettings:(n=s.scopedSettings,r=e.scopedSettings,void 0===n&&(n={}),(Gr(r)?r:(void 0===(o=r)&&(o={}),function(e){var t=i({},e);for(var n in o)o.hasOwnProperty(n)&&(t[n]=i(i({},e[n]),o[n]));return t}))(n)),inCustomizerContext:!0}}}(e.props,n);return t&&(r=t(r)),s.createElement(x.Provider,{value:r},e.props.children)}))},t}(s.Component),$r=ue(),Qr=jn((function(e,t){return Cr(i(i({},e),{rtl:t}))})),Jr=s.forwardRef((function(e,t){var n=e.className,r=e.theme,o=e.applyTheme,a=e.applyThemeToBody,l=e.styles,u=$r(l,{theme:r,applyTheme:o,className:n}),c=s.useRef(null);return function(e,t,n){var r=t.bodyThemed;s.useEffect((function(){if(e){var t=Q(n.current);if(t)return t.body.classList.add(r),function(){t.body.classList.remove(r)}}}),[r,e,n])}(a,u,c),s.createElement(s.Fragment,null,function(e,t,n,r){var o=t.root,a=e.as,l=void 0===a?"div":a,u=e.dir,c=e.theme,d=qe(e,Ye,["dir"]),h=function(e){var t=e.theme,n=e.dir,r=oe(t)?"rtl":"ltr",i=oe()?"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(Xr,{providerRef:n},s.createElement(l,i({dir:p},d,{className:o,ref:Pt(n,r)})));return f&&(g=s.createElement(Zr,{settings:{theme:Qr(c,"rtl"===u)}},g)),g}(e,u,c,t))}));Jr.displayName="FabricBase";var ei,ti={fontFamily:"inherit"},ni={root:"ms-Fabric",bodyThemed:"ms-Fabric-bodyThemed"},ri=C(Jr,(function(e){var t=e.applyTheme,n=e.className,r=e.preventBlanketFontInheritance,i=e.theme;return{root:[$n(ni,i).root,i.fonts.medium,{color:i.palette.neutralPrimary},!r&&{"& button":ti,"& input":ti,"& textarea":ti},t&&{color:i.semanticColors.bodyText,backgroundColor:i.semanticColors.bodyBackground},n],bodyThemed:[{backgroundColor:i.semanticColors.bodyBackground}]}}),void 0,{scope:"Fabric"}),ii="data-portal-element",oi={},ai={},si="fluent-default-layer-host",li=u()?s.useLayoutEffect:s.useEffect;function ui(e){console&&console.warn&&console.warn(e)}function ci(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||ui(e+" property '"+s+"' is required when '"+r+"' is used.'")}}function di(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."),ui(i)}}function hi(e,t){return void 0!==e[t]&&null!==e[t]}function pi(e){var t=(0,s.useRef)();return(0,s.useEffect)((function(){t.current=e})),t.current}ei={valueOnChange:{},valueDefaultValue:{},controlledToUncontrolled:{},uncontrolledToControlled:{}};var fi=0;function gi(e){var t=e.name,n=e.props,r=e.other,o=void 0===r?[]:r,a=e.conditionallyRequired,l=e.deprecations,u=e.mutuallyExclusive,c=e.controlledUsage,d=s.useRef(!1),h=Tr((function(){return"useWarnings_"+fi++})),p=pi(n);if(!d.current){d.current=!0;for(var f=0,g=o;f<g.length;f++)ui(g[f]);if(a)for(var m=0,v=a;m<v.length;m++){var _=v[m];ci(t,n,_.requiredProps,_.conditionalPropName,_.condition)}l&&di(t,n,l),u&&function(e,t,n){for(var r in n)if(t&&void 0!==t[r]){var i=n[r];i&&void 0!==t[i]&&ui(e+" property '"+r+"' is mutually exclusive with '"+n[r]+"'. Use one or the other.")}}(t,n,u)}c&&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,u=o?hi(o,l):void 0,c=hi(i,l);if(c){var d=!!i[a],h=!(!s||!i[s]);d||h||ei.valueOnChange[t]||(ei.valueOnChange[t]=!0,ui("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]||ei.valueDefaultValue[t]||(ei.valueDefaultValue[t]=!0,ui("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&&c!==u){var p=u?"a controlled":"an uncontrolled",f=u?"uncontrolled":"controlled",g=u?ei.controlledToUncontrolled:ei.uncontrolledToControlled;g[t]||(g[t]=!0,ui("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({},c),{componentId:h,props:n,componentName:t,oldProps:p}))}var mi,vi=ue(),_i=s.forwardRef((function(e,t){var n,r=null!==(n=s.useContext(Ur))&&void 0!==n?n:Yr,o=s.useRef(null),a=Pt(o,t),l=s.useRef(),u=s.useRef(null),c=s.useState(!1),d=c[0],h=c[1],p=e.children,f=e.className,g=e.eventBubblingEnabled,m=e.fabricProps,v=e.hostId,_=e.insertFirst,y=e.onLayerDidMount,x=void 0===y?function(){}:y,b=e.onLayerMounted,C=void 0===b?function(){}:b,E=e.onLayerWillUnmount,k=e.styles,S=e.theme,L=Pt(u,null==m?void 0:m.ref),A=vi(k,{theme:S,className:f,isNotHost:!v}),w=function(){null==E||E();var e=l.current;l.current=void 0,e&&e.parentNode&&e.parentNode.removeChild(e)},D=function(){var e,t=Q(o.current);if(t){var n=function(e){var t,n;if(v){var r=function(e){var t=ai[e];return t&&t[0]||void 0}(v);return r?null!==(t=r.rootRef.current)&&void 0!==t?t:null:null!==(n=e.getElementById(v))&&void 0!==n?n:null}var i="#fluent-default-layer-host",o=e.querySelector(i);return o||(o=function(e){var t=e.createElement("div");return t.setAttribute("id",si),t.style.cssText="position:fixed;z-index:1000000",null==e||e.body.appendChild(t),t}(e)),o}(t);if(n){w();var r=(null!==(e=n.ownerDocument)&&void 0!==e?e:t).createElement("div");r.className=A.root,r.setAttribute(ii,"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))}(r,o.current),_?n.insertBefore(r,n.firstChild):n.appendChild(r),l.current=r,h(!0)}}};return li((function(){D(),v&&function(e,t){oi[e]||(oi[e]=[]),oi[e].push(t);var n=ai[e];if(n)for(var r=0,i=n;r<i.length;r++)i[r].notifyLayersChanged()}(v,D);var e=l.current?r(l.current):void 0;return function(){e&&e(),w(),v&&function(e,t){var n=oi[e];if(n){var r=n.indexOf(t);r>=0&&(n.splice(r,1),0===n.length&&delete oi[e])}var i=ai[e];if(i)for(var o=0,a=i;o<a.length;o++)a[o].notifyLayersChanged()}(v,D)}}),[v]),s.useEffect((function(){l.current&&d&&(null==C||C(),null==x||x(),h(!1))}),[d,C,x]),function(e){gi({name:"Layer",props:e,deprecations:{onLayerMounted:"onLayerDidMount"}})}(e),s.createElement("span",{className:"ms-layer",ref:a},l.current&&qr.createPortal(s.createElement(Xr,{layerRoot:!0,providerRef:L},s.createElement(ri,i({},!g&&(mi||(mi={},["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 mi[e]=yi}))),mi),m,{className:je(A.content,null==m?void 0:m.className),ref:L}),p)),l.current))}));_i.displayName="LayerBase";var yi=function(e){e.eventPhase===Event.BUBBLING_PHASE&&"mouseenter"!==e.type&&"mouseleave"!==e.type&&"touchstart"!==e.type&&"touchend"!==e.type&&e.stopPropagation()},xi={root:"ms-Layer",rootNoHost:"ms-Layer--fixed",content:"ms-Layer-content"},bi=C(_i,(function(e){var t=e.className,n=e.isNotHost,r=e.theme,i=$n(xi,r);return{root:[i.root,r.fonts.medium,n&&[i.rootNoHost,{position:"fixed",zIndex:In.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"]}),Ci=s.forwardRef((function(e,t){var n=e.layerProps,r=e.doNotLayer,a=o(e,["layerProps","doNotLayer"]),l=s.createElement(zr,i({},a,{doNotLayer:r,ref:t}));return r?l:s.createElement(bi,i({},n),l)}));Ci.displayName="Callout";var Ei=Array.prototype.slice;function ki(e){return e}var Si=1e-6;function Li(e){return"translate("+(e+.5)+",0)"}function Ai(e){return"translate(0,"+(e+.5)+")"}function wi(e){return function(t){return+e(t)}}function Di(e){var t=Math.max(0,e.bandwidth()-1)/2;return e.round()&&(t=Math.round(t)),function(n){return+e(n)+t}}function Ti(){return!this.__axis}function Mi(e,t){var n=[],r=null,i=null,o=6,a=6,s=3,l=1===e||4===e?-1:1,u=4===e||2===e?"x":"y",c=1===e||3===e?Li:Ai;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):ki:i,f=Math.max(o,0)+s,g=t.range(),m=+g[0]+.5,v=+g[g.length-1]+.5,_=(t.bandwidth?Di:wi)(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(),E=b.enter().append("g").attr("class","tick"),k=b.select("line"),S=b.select("text");x=x.merge(x.enter().insert("path",".tick").attr("class","domain").attr("stroke","#000")),b=b.merge(E),k=k.merge(E.append("line").attr("stroke","#000").attr(u+"2",l*o)),S=S.merge(E.append("text").attr("fill","#000").attr(u,l*f).attr("dy",1===e?"0em":3===e?"0.71em":"0.32em")),d!==y&&(x=x.transition(d),b=b.transition(d),k=k.transition(d),S=S.transition(d),C=C.transition(d).attr("opacity",Si).attr("transform",(function(e){return isFinite(e=_(e))?c(e):this.getAttribute("transform")})),E.attr("opacity",Si).attr("transform",(function(e){var t=this.parentNode.__axis;return c(t&&isFinite(t=t(e))?t:_(e))}))),C.remove(),x.attr("d",4===e||2==e?"M"+l*a+","+m+"H0.5V"+v+"H"+l*a:"M"+m+","+l*a+"V0.5H"+v+"V"+l*a),b.attr("opacity",1).attr("transform",(function(e){return c(_(e))})),k.attr(u+"2",l*o),S.attr(u,l*f).text(p),y.filter(Ti).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=Ei.call(arguments),d},d.tickArguments=function(e){return arguments.length?(n=null==e?[]:Ei.call(e),d):n.slice()},d.tickValues=function(e){return arguments.length?(r=null==e?null:Ei.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 Pi(e){return Mi(2,e)}function Ni(e){return Mi(3,e)}function Fi(e){return Mi(4,e)}function Ii(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Oi(e){var t;return 1===e.length&&(t=e,e=function(e,n){return Ii(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 Vi=Oi(Ii);Vi.right,Vi.left;var Hi=Array.prototype;function Ri(e,t){var n,r,i=e.length,o=-1;if(null==t){for(;++o<i;)if(null!=(n=e[o])&&n>=n)for(r=n;++o<i;)null!=(n=e[o])&&n>r&&(r=n)}else for(;++o<i;)if(null!=(n=t(e[o],o,e))&&n>=n)for(r=n;++o<i;)null!=(n=t(e[o],o,e))&&n>r&&(r=n);return r}function Bi(e,t){var n,r,i=e.length,o=-1;if(null==t){for(;++o<i;)if(null!=(n=e[o])&&n>=n)for(r=n;++o<i;)null!=(n=e[o])&&r>n&&(r=n)}else for(;++o<i;)if(null!=(n=t(e[o],o,e))&&n>=n)for(r=n;++o<i;)null!=(n=t(e[o],o,e))&&r>n&&(r=n);return r}function Wi(e,t){var n,r=e.length,i=-1,o=0;if(null==t)for(;++i<r;)(n=+e[i])&&(o+=n);else for(;++i<r;)(n=+t(e[i],i,e))&&(o+=n);return o}Hi.slice,Hi.map,Math.sqrt(50),Math.sqrt(10),Math.sqrt(2);var zi=Math.sqrt(50),Ui=Math.sqrt(10),Yi=Math.sqrt(2);function qi(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>=zi?10:o>=Ui?5:o>=Yi?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=zi?10:o>=Ui?5:o>=Yi?2:1)}function ji(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>=zi?i*=10:o>=Ui?i*=5:o>=Yi&&(i*=2),t<e?-i:i}function Xi(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Ki(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Gi(e){let t,n,r;function i(e,r,i=0,o=e.length){if(i<o){if(0!==t(r,r))return o;do{const t=i+o>>>1;n(e[t],r)<0?i=t+1:o=t}while(i<o)}return i}return 2!==e.length?(t=Xi,n=(t,n)=>Xi(e(t),n),r=(t,n)=>e(t)-n):(t=e===Xi||e===Ki?e:Zi,n=e,r=e),{left:i,center:function(e,t,n=0,o=e.length){const a=i(e,t,n,o-1);return a>n&&r(e[a-1],t)>-r(e[a],t)?a-1:a},right:function(e,r,i=0,o=e.length){if(i<o){if(0!==t(r,r))return o;do{const t=i+o>>>1;n(e[t],r)<=0?i=t+1:o=t}while(i<o)}return i}}}function Zi(){return 0}const $i=Gi(Xi),Qi=$i.right;$i.left,Gi((function(e){return null===e?NaN:+e})).center;var Ji=Qi;function eo(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function to(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function no(){}var ro=.7,io=1/ro,oo="\\s*([+-]?\\d+)\\s*",ao="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",so="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",lo=/^#([0-9a-f]{3,8})$/,uo=new RegExp("^rgb\\("+[oo,oo,oo]+"\\)$"),co=new RegExp("^rgb\\("+[so,so,so]+"\\)$"),ho=new RegExp("^rgba\\("+[oo,oo,oo,ao]+"\\)$"),po=new RegExp("^rgba\\("+[so,so,so,ao]+"\\)$"),fo=new RegExp("^hsl\\("+[ao,so,so]+"\\)$"),go=new RegExp("^hsla\\("+[ao,so,so,ao]+"\\)$"),mo={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function vo(){return this.rgb().formatHex()}function _o(){return this.rgb().formatRgb()}function yo(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=lo.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?xo(t):3===n?new ko(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?new ko(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?new ko(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=uo.exec(e))?new ko(t[1],t[2],t[3],1):(t=co.exec(e))?new ko(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=ho.exec(e))?bo(t[1],t[2],t[3],t[4]):(t=po.exec(e))?bo(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=fo.exec(e))?wo(t[1],t[2]/100,t[3]/100,1):(t=go.exec(e))?wo(t[1],t[2]/100,t[3]/100,t[4]):mo.hasOwnProperty(e)?xo(mo[e]):"transparent"===e?new ko(NaN,NaN,NaN,0):null}function xo(e){return new ko(e>>16&255,e>>8&255,255&e,1)}function bo(e,t,n,r){return r<=0&&(e=t=n=NaN),new ko(e,t,n,r)}function Co(e){return e instanceof no||(e=yo(e)),e?new ko((e=e.rgb()).r,e.g,e.b,e.opacity):new ko}function Eo(e,t,n,r){return 1===arguments.length?Co(e):new ko(e,t,n,null==r?1:r)}function ko(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function So(){return"#"+Ao(this.r)+Ao(this.g)+Ao(this.b)}function Lo(){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 Ao(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function wo(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new To(e,t,n,r)}function Do(e){if(e instanceof To)return new To(e.h,e.s,e.l,e.opacity);if(e instanceof no||(e=yo(e)),!e)return new To;if(e instanceof To)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 To(a,s,l,e.opacity)}function To(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Mo(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 Po(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 No(e){return function(){return e}}function Fo(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):No(isNaN(e)?t:e)}eo(no,yo,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:vo,formatHex:vo,formatHsl:function(){return Do(this).formatHsl()},formatRgb:_o,toString:_o}),eo(ko,Eo,to(no,{brighter:function(e){return e=null==e?io:Math.pow(io,e),new ko(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?ro:Math.pow(ro,e),new ko(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:So,formatHex:So,formatRgb:Lo,toString:Lo})),eo(To,(function(e,t,n,r){return 1===arguments.length?Do(e):new To(e,t,n,null==r?1:r)}),to(no,{brighter:function(e){return e=null==e?io:Math.pow(io,e),new To(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?ro:Math.pow(ro,e),new To(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new ko(Mo(e>=240?e-240:e+120,i,r),Mo(e,i,r),Mo(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 Io=function e(t){var n=function(e){return 1==(e=+e)?Fo: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):No(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=Eo(e)).r,(t=Eo(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),a=Fo(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 Oo(e){return function(t){var n,r,i=t.length,o=new Array(i),a=new Array(i),s=new Array(i);for(n=0;n<i;++n)r=Eo(t[n]),o[n]=r.r||0,a[n]=r.g||0,s[n]=r.b||0;return o=e(o),a=e(a),s=e(s),r.opacity=1,function(e){return r.r=o(e),r.g=a(e),r.b=s(e),r+""}}}function Vo(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]=qo(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 Ho(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Ro(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function Bo(e,t){var n,r={},i={};for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?r[n]=qo(e[n],t[n]):i[n]=t[n];return function(e){for(n in r)i[n]=r[n](e);return i}}Oo((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 Po((n-r/t)*t,a,i,o,s)}})),Oo((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 Po((n-r/t)*t,i,o,a,s)}}));var Wo=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,zo=new RegExp(Wo.source,"g");function Uo(e,t){var n,r,i,o=Wo.lastIndex=zo.lastIndex=0,a=-1,s=[],l=[];for(e+="",t+="";(n=Wo.exec(e))&&(r=zo.exec(t));)(i=r.index)>o&&(i=t.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,l.push({i:a,x:Ro(n,r)})),o=zo.lastIndex;return o<t.length&&(i=t.slice(o),s[a]?s[a]+=i:s[++a]=i),s.length<2?l[0]?function(e){return function(t){return e(t)+""}}(l[0].x):function(e){return function(){return e}}(t):(t=l.length,function(e){for(var n,r=0;r<t;++r)s[(n=l[r]).i]=n.x(e);return s.join("")})}function Yo(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 qo(e,t){var n,r,i=typeof t;return null==t||"boolean"===i?No(t):("number"===i?Ro:"string"===i?(n=yo(t))?(t=n,Io):Uo:t instanceof yo?Io:t instanceof Date?Ho:(r=t,!ArrayBuffer.isView(r)||r instanceof DataView?Array.isArray(t)?Vo:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?Bo:Ro:Yo))(e,t)}function jo(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function Xo(e){return+e}var Ko=[0,1];function Go(e){return e}function Zo(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:(n=isNaN(t)?NaN:.5,function(){return n});var n}function $o(e,t,n){var r=e[0],i=e[1],o=t[0],a=t[1];return i<r?(r=Zo(i,r),o=n(a,o)):(r=Zo(r,i),o=n(o,a)),function(e){return o(r(e))}}function Qo(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),o=new Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)i[a]=Zo(e[a],e[a+1]),o[a]=n(t[a],t[a+1]);return function(t){var n=Ji(e,t,1,r)-1;return o[n](i[n](t))}}function Jo(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function ea(){return function(){var e,t,n,r,i,o,a=Ko,s=Ko,l=qo,u=Go;function c(){var e,t,n,l=Math.min(a.length,s.length);return u!==Go&&(e=a[0],t=a[l-1],e>t&&(n=e,e=t,t=n),u=function(n){return Math.max(e,Math.min(t,n))}),r=l>2?Qo:$o,i=o=null,d}function d(t){return null==t||isNaN(t=+t)?n:(i||(i=r(a.map(e),s,l)))(e(u(t)))}return d.invert=function(n){return u(t((o||(o=r(s,a.map(e),Ro)))(n)))},d.domain=function(e){return arguments.length?(a=Array.from(e,Xo),c()):a.slice()},d.range=function(e){return arguments.length?(s=Array.from(e),c()):s.slice()},d.rangeRound=function(e){return s=Array.from(e),l=jo,c()},d.clamp=function(e){return arguments.length?(u=!!e||Go,c()):u!==Go},d.interpolate=function(e){return arguments.length?(l=e,c()):l},d.unknown=function(e){return arguments.length?(n=e,d):n},function(n,r){return e=n,t=r,c()}}()(Go,Go)}function ta(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}var na,ra=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function ia(e){if(!(t=ra.exec(e)))throw new Error("invalid format: "+e);var t;return new oa({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 oa(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 aa(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 sa(e){return(e=aa(Math.abs(e)))?e[1]:NaN}function la(e,t){var n=aa(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")}ia.prototype=oa.prototype,oa.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 ua={"%":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 la(100*e,t)},r:la,s:function(e,t){var n=aa(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(na=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")+aa(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 ca(e){return e}var da,ha,pa,fa=Array.prototype.map,ga=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function ma(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=qi(e,t,n))||!isFinite(a))return[];if(a>0){let n=Math.round(e/a),r=Math.round(t/a);for(n*a<e&&++n,r*a>t&&--r,o=new Array(i=r-n+1);++s<i;)o[s]=(n+s)*a}else{a=-a;let n=Math.round(e*a),r=Math.round(t*a);for(n/a<e&&++n,r/a>t&&--r,o=new Array(i=r-n+1);++s<i;)o[s]=(n+s)/a}return r&&o.reverse(),o}(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return function(e,t,n,r){var i,o=ji(e,t,n);switch((r=ia(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(i=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(sa(t)/3)))-sa(Math.abs(e)))}(o,a))||(r.precision=i),pa(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,sa(t)-sa(e))+1}(o,Math.max(Math.abs(e),Math.abs(t))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=function(e){return Math.max(0,-sa(Math.abs(e)))}(o))||(r.precision=i-2*("%"===r.type))}return ha(r)}(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var r,i,o=t(),a=0,s=o.length-1,l=o[a],u=o[s],c=10;for(u<l&&(i=l,l=u,u=i,i=a,a=s,s=i);c-- >0;){if((i=qi(l,u,n))===r)return o[a]=l,o[s]=u,t(o);if(i>0)l=Math.floor(l/i)*i,u=Math.ceil(u/i)*i;else{if(!(i<0))break;l=Math.ceil(l*i)/i,u=Math.floor(u*i)/i}r=i}return e},e}function va(){var e=ea();return e.copy=function(){return Jo(e,va())},ta.apply(e,arguments),ma(e)}da=function(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?ca:(t=fa.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?ca:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(fa.call(e.numerals,String)),l=void 0===e.percent?"%":e.percent+"",u=void 0===e.minus?"-":e.minus+"",c=void 0===e.nan?"NaN":e.nan+"";function d(e){var t=(e=ia(e)).fill,n=e.align,d=e.sign,h=e.symbol,p=e.zero,f=e.width,g=e.comma,m=e.precision,v=e.trim,_=e.type;"n"===_?(g=!0,_="g"):ua[_]||(void 0===m&&(m=12),v=!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=ua[_],C=/[defgprs%]/.test(_);function E(e){var i,o,l,h=y,E=x;if("c"===_)E=b(e)+E,e="";else{var k=(e=+e)<0||1/e<0;if(e=isNaN(e)?c:b(Math.abs(e),m),v&&(e=function(e){e:for(var t,n=e.length,r=1,i=-1;r<n;++r)switch(e[r]){case".":i=t=r;break;case"0":0===i&&(i=r),t=r;break;default:if(!+e[r])break e;i>0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),k&&0==+e&&"+"!==d&&(k=!1),h=(k?"("===d?d:u:"-"===d||"("===d?"":d)+h,E=("s"===_?ga[8+na/3]:"")+E+(k&&"("===d?")":""),C)for(i=-1,o=e.length;++i<o;)if(48>(l=e.charCodeAt(i))||l>57){E=(46===l?a+e.slice(i+1):e.slice(i))+E,e=e.slice(0,i);break}}g&&!p&&(e=r(e,1/0));var S=h.length+e.length+E.length,L=S<f?new Array(f-S+1).join(t):"";switch(g&&p&&(e=r(L+e,L.length?f-E.length:1/0),L=""),n){case"<":e=h+e+E+L;break;case"=":e=h+L+e+E;break;case"^":e=L.slice(0,S=L.length>>1)+h+e+E+L.slice(S);break;default:e=L+h+e+E}return s(e)}return m=void 0===m?6:/[gprs]/.test(_)?Math.max(1,Math.min(21,m)):Math.max(0,Math.min(20,m)),E.toString=function(){return e+""},E}return{format:d,formatPrefix:function(e,t){var n=d(((e=ia(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(sa(t)/3))),i=Math.pow(10,-r),o=ga[8+r/3];return function(e){return n(i*e)+o}}}}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),ha=da.format,pa=da.formatPrefix;const _a=1e3,ya=6e4,xa=36e5,ba=864e5,Ca=6048e5,Ea=31536e6;var ka=new Date,Sa=new Date;function La(e,t,n,r){function i(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return i.floor=function(t){return e(t=new Date(+t)),t},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 La((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 ka.setTime(+t),Sa.setTime(+r),e(ka),e(Sa),Math.floor(n(ka,Sa))},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 Aa=La((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e}));Aa.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?La((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):Aa:null};var wa=Aa,Da=(Aa.range,La((function(e){e.setTime(e-e.getMilliseconds())}),(function(e,t){e.setTime(+e+t*_a)}),(function(e,t){return(t-e)/_a}),(function(e){return e.getUTCSeconds()}))),Ta=Da,Ma=(Da.range,La((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*_a)}),(function(e,t){e.setTime(+e+t*ya)}),(function(e,t){return(t-e)/ya}),(function(e){return e.getMinutes()}))),Pa=Ma,Na=(Ma.range,La((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*_a-e.getMinutes()*ya)}),(function(e,t){e.setTime(+e+t*xa)}),(function(e,t){return(t-e)/xa}),(function(e){return e.getHours()}))),Fa=Na,Ia=(Na.range,La((e=>e.setHours(0,0,0,0)),((e,t)=>e.setDate(e.getDate()+t)),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*ya)/ba),(e=>e.getDate()-1))),Oa=Ia;function Va(e){return La((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())*ya)/Ca}))}Ia.range;var Ha=Va(0),Ra=Va(1),Ba=Va(2),Wa=Va(3),za=Va(4),Ua=Va(5),Ya=Va(6),qa=(Ha.range,Ra.range,Ba.range,Wa.range,za.range,Ua.range,Ya.range,La((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()}))),ja=qa,Xa=(qa.range,La((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()})));Xa.every=function(e){return isFinite(e=Math.floor(e))&&e>0?La((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 Ka=Xa,Ga=(Xa.range,La((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+t*ya)}),(function(e,t){return(t-e)/ya}),(function(e){return e.getUTCMinutes()}))),Za=Ga,$a=(Ga.range,La((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+t*xa)}),(function(e,t){return(t-e)/xa}),(function(e){return e.getUTCHours()}))),Qa=$a,Ja=($a.range,La((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/ba}),(function(e){return e.getUTCDate()-1}))),es=Ja;function ts(e){return La((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)/Ca}))}Ja.range;var ns=ts(0),rs=ts(1),is=ts(2),os=ts(3),as=ts(4),ss=ts(5),ls=ts(6),us=(ns.range,rs.range,is.range,os.range,as.range,ss.range,ls.range,La((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()}))),cs=us,ds=(us.range,La((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()})));ds.every=function(e){return isFinite(e=Math.floor(e))&&e>0?La((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 hs=ds;function ps(e,t,n,r,i,o){const a=[[Ta,1,_a],[Ta,5,5e3],[Ta,15,15e3],[Ta,30,3e4],[o,1,ya],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,xa],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,ba],[r,2,1728e5],[n,1,Ca],[t,1,2592e6],[t,3,7776e6],[e,1,Ea]];function s(t,n,r){const i=Math.abs(n-t)/r,o=Gi((([,,e])=>e)).right(a,i);if(o===a.length)return e.every(ji(t/Ea,n/Ea,r));if(0===o)return wa.every(Math.max(ji(t,n,r),1));const[s,l]=a[i/a[o-1][2]<a[o][2]/i?o-1:o];return s.every(l)}return[function(e,t,n){const r=t<e;r&&([e,t]=[t,e]);const i=n&&"function"==typeof n.range?n:s(e,t,n),o=i?i.range(e,+t+1):[];return r?o.reverse():o},s]}ds.range;const[fs,gs]=ps(hs,cs,ns,es,Qa,Za),[ms,vs]=ps(Ka,ja,Ha,Oa,Fa,Pa);var _s=new Date,ys=new Date;function xs(e,t,n,r){function i(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return i.floor=function(t){return e(t=new Date(+t)),t},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 xs((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 _s.setTime(+t),ys.setTime(+r),e(_s),e(ys),Math.floor(n(_s,ys))},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 bs=1e3,Cs=6e4,Es=36e5,ks=864e5,Ss=6048e5;function Ls(e){return xs((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)/Ss}))}var As=Ls(0),ws=Ls(1),Ds=Ls(2),Ts=Ls(3),Ms=Ls(4),Ps=Ls(5),Ns=Ls(6),Fs=(As.range,ws.range,Ds.range,Ts.range,Ms.range,Ps.range,Ns.range,xs((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/ks}),(function(e){return e.getUTCDate()-1}))),Is=Fs;function Os(e){return xs((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())*Cs)/Ss}))}Fs.range;var Vs=Os(0),Hs=Os(1),Rs=Os(2),Bs=Os(3),Ws=Os(4),zs=Os(5),Us=Os(6),Ys=(Vs.range,Hs.range,Rs.range,Bs.range,Ws.range,zs.range,Us.range,xs((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())*Cs)/ks}),(function(e){return e.getDate()-1}))),qs=Ys,js=(Ys.range,xs((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()})));js.every=function(e){return isFinite(e=Math.floor(e))&&e>0?xs((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 Xs=js,Ks=(js.range,xs((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()})));Ks.every=function(e){return isFinite(e=Math.floor(e))&&e>0?xs((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 Gs=Ks;function Zs(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 $s(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 Qs(e){return{y:e,m:0,d:1,H:0,M:0,S:0,L:0}}function Js(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,a=e.shortDays,s=e.months,l=e.shortMonths,u=cl(i),c=dl(i),d=cl(o),h=dl(o),p=cl(a),f=dl(a),g=cl(s),m=dl(s),v=cl(l),_=dl(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:Ml,e:Ml,f:Ol,H:Pl,I:Nl,j:Fl,L:Il,m:Vl,M:Hl,p:function(e){return i[+(e.getHours()>=12)]},Q:hu,s:pu,S:Rl,u:Bl,U:Wl,V:zl,w:Ul,W:Yl,x:null,X:null,y:ql,Y:jl,Z:Xl,"%":du},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:Kl,e:Kl,f:Jl,H:Gl,I:Zl,j:$l,L:Ql,m:eu,M:tu,p:function(e){return i[+(e.getUTCHours()>=12)]},Q:hu,s:pu,S:nu,u:ru,U:iu,V:ou,w:au,W:su,x:null,X:null,y:lu,Y:uu,Z:cu,"%":du},b={a:function(e,t,n){var r=p.exec(t.slice(n));return r?(e.w=f[r[0].toLowerCase()],n+r[0].length):-1},A:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=h[r[0].toLowerCase()],n+r[0].length):-1},b:function(e,t,n){var r=v.exec(t.slice(n));return r?(e.m=_[r[0].toLowerCase()],n+r[0].length):-1},B:function(e,t,n){var r=g.exec(t.slice(n));return r?(e.m=m[r[0].toLowerCase()],n+r[0].length):-1},c:function(e,n,r){return k(e,t,n,r)},d:bl,e:bl,f:Al,H:El,I:El,j:Cl,L:Ll,m:xl,M:kl,p:function(e,t,n){var r=u.exec(t.slice(n));return r?(e.p=c[r[0].toLowerCase()],n+r[0].length):-1},Q:Dl,s:Tl,S:Sl,u:pl,U:fl,V:gl,w:hl,W:ml,x:function(e,t,r){return k(e,n,t,r)},X:function(e,t,n){return k(e,r,t,n)},y:_l,Y:vl,Z:yl,"%":wl};function C(e,t){return function(n){var r,i,o,a=[],s=-1,l=0,u=e.length;for(n instanceof Date||(n=new Date(+n));++s<u;)37===e.charCodeAt(s)&&(a.push(e.slice(l,s)),null!=(i=il[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 E(e,t){return function(n){var r,i,o=Qs(1900);if(k(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=$s(Qs(o.y))).getUTCDay(),r=i>4||0===i?ws.ceil(r):ws(r),r=Is.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(Qs(o.y))).getDay(),r=i>4||0===i?Hs.ceil(r):Hs(r),r=qs.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?$s(Qs(o.y)).getUTCDay():t(Qs(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,$s(o)):t(o)}}function k(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 il?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=E(e+="",Zs);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=E(e,$s);return t.toString=function(){return e},t}}}Ks.range;var el,tl,nl,rl,il={"-":"",_:" ",0:"0"},ol=/^\s*\d+/,al=/^%/,sl=/[\\^$*+?|[\]().{}]/g;function ll(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 ul(e){return e.replace(sl,"\\$&")}function cl(e){return new RegExp("^(?:"+e.map(ul).join("|")+")","i")}function dl(e){for(var t={},n=-1,r=e.length;++n<r;)t[e[n].toLowerCase()]=n;return t}function hl(e,t,n){var r=ol.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function pl(e,t,n){var r=ol.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function fl(e,t,n){var r=ol.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function gl(e,t,n){var r=ol.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function ml(e,t,n){var r=ol.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function vl(e,t,n){var r=ol.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function _l(e,t,n){var r=ol.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function yl(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 xl(e,t,n){var r=ol.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function bl(e,t,n){var r=ol.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Cl(e,t,n){var r=ol.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function El(e,t,n){var r=ol.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function kl(e,t,n){var r=ol.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Sl(e,t,n){var r=ol.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Ll(e,t,n){var r=ol.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Al(e,t,n){var r=ol.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function wl(e,t,n){var r=al.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Dl(e,t,n){var r=ol.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Tl(e,t,n){var r=ol.exec(t.slice(n));return r?(e.Q=1e3*+r[0],n+r[0].length):-1}function Ml(e,t){return ll(e.getDate(),t,2)}function Pl(e,t){return ll(e.getHours(),t,2)}function Nl(e,t){return ll(e.getHours()%12||12,t,2)}function Fl(e,t){return ll(1+qs.count(Xs(e),e),t,3)}function Il(e,t){return ll(e.getMilliseconds(),t,3)}function Ol(e,t){return Il(e,t)+"000"}function Vl(e,t){return ll(e.getMonth()+1,t,2)}function Hl(e,t){return ll(e.getMinutes(),t,2)}function Rl(e,t){return ll(e.getSeconds(),t,2)}function Bl(e){var t=e.getDay();return 0===t?7:t}function Wl(e,t){return ll(Vs.count(Xs(e),e),t,2)}function zl(e,t){var n=e.getDay();return e=n>=4||0===n?Ws(e):Ws.ceil(e),ll(Ws.count(Xs(e),e)+(4===Xs(e).getDay()),t,2)}function Ul(e){return e.getDay()}function Yl(e,t){return ll(Hs.count(Xs(e),e),t,2)}function ql(e,t){return ll(e.getFullYear()%100,t,2)}function jl(e,t){return ll(e.getFullYear()%1e4,t,4)}function Xl(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+ll(t/60|0,"0",2)+ll(t%60,"0",2)}function Kl(e,t){return ll(e.getUTCDate(),t,2)}function Gl(e,t){return ll(e.getUTCHours(),t,2)}function Zl(e,t){return ll(e.getUTCHours()%12||12,t,2)}function $l(e,t){return ll(1+Is.count(Gs(e),e),t,3)}function Ql(e,t){return ll(e.getUTCMilliseconds(),t,3)}function Jl(e,t){return Ql(e,t)+"000"}function eu(e,t){return ll(e.getUTCMonth()+1,t,2)}function tu(e,t){return ll(e.getUTCMinutes(),t,2)}function nu(e,t){return ll(e.getUTCSeconds(),t,2)}function ru(e){var t=e.getUTCDay();return 0===t?7:t}function iu(e,t){return ll(As.count(Gs(e),e),t,2)}function ou(e,t){var n=e.getUTCDay();return e=n>=4||0===n?Ms(e):Ms.ceil(e),ll(Ms.count(Gs(e),e)+(4===Gs(e).getUTCDay()),t,2)}function au(e){return e.getUTCDay()}function su(e,t){return ll(ws.count(Gs(e),e),t,2)}function lu(e,t){return ll(e.getUTCFullYear()%100,t,2)}function uu(e,t){return ll(e.getUTCFullYear()%1e4,t,4)}function cu(){return"+0000"}function du(){return"%"}function hu(e){return+e}function pu(e){return Math.floor(+e/1e3)}el=Js({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"]}),tl=el.format,el.parse,nl=el.utcFormat,rl=el.utcParse;var fu="%Y-%m-%dT%H:%M:%S.%LZ";function gu(e){return new Date(e)}function mu(e){return e instanceof Date?+e:+new Date(+e)}function vu(e,t,n,r,i,o,a,s,l,u){var c=ea(),d=c.invert,h=c.domain,p=u(".%L"),f=u(":%S"),g=u("%I:%M"),m=u("%I %p"),v=u("%a %d"),_=u("%b %d"),y=u("%B"),x=u("%Y");function b(e){return(l(e)<e?p:s(e)<e?f:a(e)<e?g:o(e)<e?m:r(e)<e?i(e)<e?v:_:n(e)<e?y:x)(e)}return c.invert=function(e){return new Date(d(e))},c.domain=function(e){return arguments.length?h(Array.from(e,mu)):h().map(gu)},c.ticks=function(t){var n=h();return e(n[0],n[n.length-1],null==t?10:t)},c.tickFormat=function(e,t){return null==t?b:u(t)},c.nice=function(e){var n=h();return e&&"function"==typeof e.range||(e=t(n[0],n[n.length-1],null==e?10:e)),e?h(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 Jo(c,vu(e,t,n,r,i,o,a,s,l,u))},c}function _u(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}Date.prototype.toISOString||nl(fu),+new Date("2000-01-01T00:00:00.000Z")||rl(fu);class yu extends Map{constructor(e,t=bu){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[t,n]of e)this.set(t,n)}get(e){return super.get(xu(this,e))}has(e){return super.has(xu(this,e))}set(e,t){return super.set(function({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}(this,e),t)}delete(e){return super.delete(function({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}(this,e))}}function xu({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function bu(e){return null!==e&&"object"==typeof e?e.valueOf():e}Set;const Cu=Symbol("implicit");function Eu(){var e=new yu,t=[],n=[],r=Cu;function i(i){let o=e.get(i);if(void 0===o){if(r!==Cu)return r;e.set(i,o=t.push(i)-1)}return n[o%n.length]}return i.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new yu;for(const r of n)e.has(r)||e.set(r,t.push(r)-1);return i},i.range=function(e){return arguments.length?(n=Array.from(e),i):n.slice()},i.unknown=function(e){return arguments.length?(r=e,i):r},i.copy=function(){return Eu(t,n).unknown(r)},ta.apply(i,arguments),i}function ku(){var e,t,n=Eu().unknown(void 0),r=n.domain,i=n.range,o=0,a=1,s=!1,l=0,u=0,c=.5;function d(){var n=r().length,d=a<o,h=d?a:o,p=d?o:a;e=(p-h)/Math.max(1,n-l+2*u),s&&(e=Math.floor(e)),h+=(p-h-e*(n-l))*c,t=e*(1-l),s&&(h=Math.round(h),t=Math.round(t));var f=_u(n).map((function(t){return h+e*t}));return i(d?f.reverse():f)}return delete n.unknown,n.domain=function(e){return arguments.length?(r(e),d()):r()},n.range=function(e){return arguments.length?([o,a]=e,o=+o,a=+a,d()):[o,a]},n.rangeRound=function(e){return[o,a]=e,o=+o,a=+a,s=!0,d()},n.bandwidth=function(){return t},n.step=function(){return e},n.round=function(e){return arguments.length?(s=!!e,d()):s},n.padding=function(e){return arguments.length?(l=Math.min(1,u=+e),d()):l},n.paddingInner=function(e){return arguments.length?(l=Math.min(1,e),d()):l},n.paddingOuter=function(e){return arguments.length?(u=+e,d()):u},n.align=function(e){return arguments.length?(c=Math.max(0,Math.min(1,e)),d()):c},n.copy=function(){return ku(r(),[o,a]).round(s).paddingInner(l).paddingOuter(u).align(c)},ta.apply(d(),arguments)}var Su="http://www.w3.org/1999/xhtml",Lu={svg:"http://www.w3.org/2000/svg",xhtml:Su,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Au(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),Lu.hasOwnProperty(t)?{space:Lu[t],local:e}:e}function wu(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===Su&&t.documentElement.namespaceURI===Su?t.createElement(e):t.createElementNS(n,e)}}function Du(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Tu(e){var t=Au(e);return(t.local?Du:wu)(t)}function Mu(){}function Pu(e){return null==e?Mu:function(){return this.querySelector(e)}}function Nu(){return[]}var Fu=function(e){return function(){return this.matches(e)}};if("undefined"!=typeof document){var Iu=document.documentElement;if(!Iu.matches){var Ou=Iu.webkitMatchesSelector||Iu.msMatchesSelector||Iu.mozMatchesSelector||Iu.oMatchesSelector;Fu=function(e){return function(){return Ou.call(this,e)}}}}var Vu=Fu;function Hu(e){return new Array(e.length)}function Ru(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function Bu(e,t,n,r,i,o){for(var a,s=0,l=t.length,u=o.length;s<u;++s)(a=t[s])?(a.__data__=o[s],r[s]=a):n[s]=new Ru(e,o[s]);for(;s<l;++s)(a=t[s])&&(i[s]=a)}function Wu(e,t,n,r,i,o,a){var s,l,u,c={},d=t.length,h=o.length,p=new Array(d);for(s=0;s<d;++s)(l=t[s])&&(p[s]=u="$"+a.call(l,l.__data__,s,t),u in c?i[s]=l:c[u]=l);for(s=0;s<h;++s)(l=c[u="$"+a.call(e,o[s],s,o)])?(r[s]=l,l.__data__=o[s],c[u]=null):n[s]=new Ru(e,o[s]);for(s=0;s<d;++s)(l=t[s])&&c[p[s]]===l&&(i[s]=l)}function zu(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Uu(e){return function(){this.removeAttribute(e)}}function Yu(e){return function(){this.removeAttributeNS(e.space,e.local)}}function qu(e,t){return function(){this.setAttribute(e,t)}}function ju(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Xu(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function Ku(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 Gu(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Zu(e){return function(){this.style.removeProperty(e)}}function $u(e,t,n){return function(){this.style.setProperty(e,t,n)}}function Qu(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function Ju(e,t){return e.style.getPropertyValue(t)||Gu(e).getComputedStyle(e,null).getPropertyValue(t)}function ec(e){return function(){delete this[e]}}function tc(e,t){return function(){this[e]=t}}function nc(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}function rc(e){return e.trim().split(/^|\s+/)}function ic(e){return e.classList||new oc(e)}function oc(e){this._node=e,this._names=rc(e.getAttribute("class")||"")}function ac(e,t){for(var n=ic(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function sc(e,t){for(var n=ic(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function lc(e){return function(){ac(this,e)}}function uc(e){return function(){sc(this,e)}}function cc(e,t){return function(){(t.apply(this,arguments)?ac:sc)(this,e)}}function dc(){this.textContent=""}function hc(e){return function(){this.textContent=e}}function pc(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}function fc(){this.innerHTML=""}function gc(e){return function(){this.innerHTML=e}}function mc(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}function vc(){this.nextSibling&&this.parentNode.appendChild(this)}function _c(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function yc(){return null}function xc(){var e=this.parentNode;e&&e.removeChild(this)}function bc(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}function Cc(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}Ru.prototype={constructor:Ru,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)}},oc.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 Ec={},kc=null;function Sc(e,t,n){return e=Lc(e,t,n),function(t){var n=t.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||e.call(this,t)}}function Lc(e,t,n){return function(r){var i=kc;kc=r;try{e.call(this,this.__data__,t,n)}finally{kc=i}}}function Ac(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 wc(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 Dc(e,t,n){var r=Ec.hasOwnProperty(e.type)?Sc:Lc;return function(i,o,a){var s,l=this.__on,u=r(t,o,a);if(l)for(var c=0,d=l.length;c<d;++c)if((s=l[c]).type===e.type&&s.name===e.name)return this.removeEventListener(s.type,s.listener,s.capture),this.addEventListener(s.type,s.listener=u,s.capture=n),void(s.value=t);this.addEventListener(e.type,u,n),s={type:e.type,name:e.name,value:t,listener:u,capture:n},l?l.push(s):this.__on=[s]}}function Tc(e,t,n){var r=Gu(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 Mc(e,t){return function(){return Tc(this,e,t)}}function Pc(e,t){return function(){return Tc(this,e,t.apply(this,arguments))}}"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(Ec={mouseenter:"mouseover",mouseleave:"mouseout"}));var Nc=[null];function Fc(e,t){this._groups=e,this._parents=t}function Ic(e){return"string"==typeof e?new Fc([[document.querySelector(e)]],[document.documentElement]):new Fc([[e]],Nc)}Fc.prototype=function(){return new Fc([[document.documentElement]],Nc)}.prototype={constructor:Fc,select:function(e){"function"!=typeof e&&(e=Pu(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o,a,s=t[i],l=s.length,u=r[i]=new Array(l),c=0;c<l;++c)(o=s[c])&&(a=e.call(o,o.__data__,c,s))&&("__data__"in o&&(a.__data__=o.__data__),u[c]=a);return new Fc(r,this._parents)},selectAll:function(e){"function"!=typeof e&&(e=function(e){return null==e?Nu:function(){return this.querySelectorAll(e)}}(e));for(var t=this._groups,n=t.length,r=[],i=[],o=0;o<n;++o)for(var a,s=t[o],l=s.length,u=0;u<l;++u)(a=s[u])&&(r.push(e.call(a,a.__data__,u,s)),i.push(a));return new Fc(r,i)},filter:function(e){"function"!=typeof e&&(e=Vu(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o,a=t[i],s=a.length,l=r[i]=[],u=0;u<s;++u)(o=a[u])&&e.call(o,o.__data__,u,a)&&l.push(o);return new Fc(r,this._parents)},data:function(e,t){if(!e)return f=new Array(this.size()),c=-1,this.each((function(e){f[++c]=e})),f;var n,r=t?Wu:Bu,i=this._parents,o=this._groups;"function"!=typeof e&&(n=e,e=function(){return n});for(var a=o.length,s=new Array(a),l=new Array(a),u=new Array(a),c=0;c<a;++c){var d=i[c],h=o[c],p=h.length,f=e.call(d,d&&d.__data__,c,i),g=f.length,m=l[c]=new Array(g),v=s[c]=new Array(g);r(d,h,m,v,u[c]=new Array(p),f,t);for(var _,y,x=0,b=0;x<g;++x)if(_=m[x]){for(x>=b&&(b=x+1);!(y=v[b])&&++b<g;);_._next=y||null}}return(s=new Fc(s,i))._enter=l,s._exit=u,s},enter:function(){return new Fc(this._enter||this._groups.map(Hu),this._parents)},exit:function(){return new Fc(this._exit||this._groups.map(Hu),this._parents)},merge:function(e){for(var t=this._groups,n=e._groups,r=t.length,i=n.length,o=Math.min(r,i),a=new Array(r),s=0;s<o;++s)for(var l,u=t[s],c=n[s],d=u.length,h=a[s]=new Array(d),p=0;p<d;++p)(l=u[p]||c[p])&&(h[p]=l);for(;s<r;++s)a[s]=t[s];return new Fc(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=zu);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o){for(var a,s=n[o],l=s.length,u=i[o]=new Array(l),c=0;c<l;++c)(a=s[c])&&(u[c]=a);u.sort(t)}return new Fc(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=Au(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?Yu:Uu:"function"==typeof t?n.local?Ku:Xu:n.local?ju:qu)(n,t))},style:function(e,t,n){return arguments.length>1?this.each((null==t?Zu:"function"==typeof t?Qu:$u)(e,t,null==n?"":n)):Ju(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?ec:"function"==typeof t?nc:tc)(e,t)):this.node()[e]},classed:function(e,t){var n=rc(e+"");if(arguments.length<2){for(var r=ic(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"==typeof t?cc:t?lc:uc)(n,t))},text:function(e){return arguments.length?this.each(null==e?dc:("function"==typeof e?pc:hc)(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?fc:("function"==typeof e?mc:gc)(e)):this.node().innerHTML},raise:function(){return this.each(vc)},lower:function(){return this.each(_c)},append:function(e){var t="function"==typeof e?e:Tu(e);return this.select((function(){return this.appendChild(t.apply(this,arguments))}))},insert:function(e,t){var n="function"==typeof e?e:Tu(e),r=null==t?yc:"function"==typeof t?t:Pu(t);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each(xc)},clone:function(e){return this.select(e?Cc:bc)},datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},on:function(e,t,n){var r,i,o=Ac(e+""),a=o.length;if(!(arguments.length<2)){for(s=t?Dc:wc,null==n&&(n=!1),r=0;r<a;++r)this.each(s(o[r],t,n));return this}var s=this.node().__on;if(s)for(var l,u=0,c=s.length;u<c;++u)for(r=0,l=s[u];r<a;++r)if((i=o[r]).type===l.type&&i.name===l.name)return l.value},dispatch:function(e,t){return this.each(("function"==typeof t?Pc:Mc)(e,t))}};var Oc=0;function Vc(){this._="@"+(++Oc).toString(36)}function Hc(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]}function Rc(e){return"string"==typeof e?new Fc([document.querySelectorAll(e)],[document.documentElement]):new Fc([null==e?[]:e],Nc)}Vc.prototype=function(){return new Vc}.prototype={constructor:Vc,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._}};var Bc,Wc,zc,Uc,Yc=xs((function(e){e.setTime(e-e.getMilliseconds())}),(function(e,t){e.setTime(+e+t*bs)}),(function(e,t){return(t-e)/bs}),(function(e){return e.getUTCSeconds()})),qc=Yc,jc=(Yc.range,xs((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*bs)}),(function(e,t){e.setTime(+e+t*Cs)}),(function(e,t){return(t-e)/Cs}),(function(e){return e.getMinutes()}))),Xc=jc,Kc=(jc.range,xs((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*bs-e.getMinutes()*Cs)}),(function(e,t){e.setTime(+e+t*Es)}),(function(e,t){return(t-e)/Es}),(function(e){return e.getHours()}))),Gc=Kc,Zc=(Kc.range,xs((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()}))),$c=Zc;function Qc(e,t){var n=e.domainNRangeValues,r=e.showRoundOffXTickValues,i=void 0!==r&&r,o=e.xAxistickSize,a=void 0===o?6:o,s=e.tickPadding,l=void 0===s?10:s,u=e.xAxisCount,c=void 0===u?6:u,d=e.xAxisElement,h=va().domain([n.dStartValue,n.dEndValue]).range([n.rStartValue,n.rEndValue]);i&&h.nice();var p=Ni(h).tickSize(a).tickPadding(l).ticks(c).tickSizeOuter(0).tickFormat((function(e,n){var r="number"==typeof e?e:e.valueOf();return cd(r,t)}));return d&&Ic(d).call(p).selectAll("text").attr("aria-hidden","true"),h}function Jc(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=Ic("body").append("div").attr("id",r).attr("class",t).style("opacity",0),o=n.selectAll("#BaseSpan")._groups[0],a=o&&Object.keys(o).length,s=[],l=0;l<a;l++){var u=o[l].dataset&&Object.values(o[l].dataset)[0];s.push(u)}var c=n.selectAll(".tick")._groups[0],d=c&&Object.keys(c).length,h=function(e){Ic(c[e]).on("mouseover",(function(t){i.style("opacity",.9),i.html(s[e]).style("left",kc.pageX+"px").style("top",kc.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 u;if(o===zc.NumericAxis)switch(r){case Wc.AreaChart:case Wc.LineChart:u=function(e,t,n,r){var i=Bi(e,(function(e){return Bi(e.data,(function(e){return e.x}))})),o=Ri(e,(function(e){return Ri(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 Wc.VerticalStackedBarChart:u=function(e,t,n,r,i){var o=Bi(e,(function(e){return e.x})),a=Ri(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 Wc.VerticalBarChart:u=function(e,t,n,r,i){var o=Ri(e,(function(e){return e.x})),a=Bi(e,(function(e){return e.x})),s=t.left+i/2,l=n-t.right-i/2;return r?{dStartValue:o,dEndValue:a,rStartValue:s,rEndValue:l}:{dStartValue:a,dEndValue:o,rStartValue:s,rEndValue:l}}(e,t,n,i,s);break;default:u={dStartValue:0,dEndValue:0,rStartValue:0,rEndValue:0}}else if(o===zc.DateAxis)switch(r){case Wc.AreaChart:case Wc.LineChart:u=function(e,t,n,r,i){void 0===i&&(i=[]);var o=Bi(e,(function(e){return Bi(e.data,(function(e){return e.x}))})),s=Ri(e,(function(e){return Ri(e.data,(function(e){return e.x}))})),l=Bi(a(a([],i),[o])),u=Ri(a(a([],i),[s])),c=t.left,d=n-t.right;return r?{dStartValue:u,dEndValue:l,rStartValue:c,rEndValue:d}:{dStartValue:l,dEndValue:u,rStartValue:c,rEndValue:d}}(e,t,n,i,l);break;default:u={dStartValue:0,dEndValue:0,rStartValue:0,rEndValue:0}}else switch(r){case Wc.VerticalStackedBarChart:case Wc.GroupedVerticalBarChart:case Wc.VerticalBarChart:case Wc.HeatMapChart:u=function(e,t,n){var r=e.left,i=t-e.right;return n?{dStartValue:0,dEndValue:0,rStartValue:i,rEndValue:r}:{dStartValue:0,dEndValue:0,rStartValue:r,rEndValue:i}}(t,n,i);break;default:u={dStartValue:0,dEndValue:0,rStartValue:0,rEndValue:0}}return u}function rd(e,t){var n,r,i;switch(t){case Wc.AreaChart:case Wc.LineChart:n=function(e){var t=Ri(e,(function(e){return Ri(e.data,(function(e){return e.y}))}));return{startValue:Bi(e,(function(e){return Bi(e.data,(function(e){return e.y}))})),endValue:t}}(e);break;case Wc.VerticalStackedBarChart:i=Ri(r=e,(function(e){return e.y})),n={startValue:Bi(r,(function(e){return e.y})),endValue:i};break;case Wc.VerticalBarChart:n=function(e){var t=Ri(e,(function(e){return e.y}));return{startValue:Bi(e,(function(e){return e.y})),endValue:t}}(e);break;default:n={startValue:0,endValue:0}}return n}Zc.range,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"}(Wc||(Wc={})),function(e){e[e.NumericAxis=0]="NumericAxis",e[e.DateAxis=1]="DateAxis",e[e.StringAxis=2]="StringAxis"}(zc||(zc={})),function(e){e[e.NumericAxis=0]="NumericAxis",e[e.DateAxis=1]="DateAxis",e[e.StringAxis=2]="StringAxis"}(Uc||(Uc={}));var id,od,ad=function(e,t){if(t)switch(typeof e){case"string":return zc.StringAxis;case"number":return zc.NumericAxis;default:return zc.DateAxis}else switch(typeof e){case"string":return Uc.StringAxis;case"number":return Uc.NumericAxis;default:return Uc.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=((Bc={})[id.circle]={widthRatio:1},Bc[id.square]={widthRatio:1},Bc[id.triangle]={widthRatio:1},Bc[id.diamond]={widthRatio:1},Bc[id.pyramid]={widthRatio:1},Bc[id.hexagon]={widthRatio:2},Bc[id.pentagon]={widthRatio:1.168},Bc[id.octagon]={widthRatio:2.414},Bc),ud=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}},cd=function(e,t){return e?(t=t||void 0,"number"==typeof e?e.toLocaleString(t):"string"!=typeof e||window.isNaN(Number(e))?e:Number(e).toLocaleString(t)):e},dd=ue(),hd=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.render=function(){var e=this.props,t=e.color,n=e.Legend,r=e.XValue,i=e.YValue,o=e.styles,a=e.theme,l=e.ratio,u=e.descriptionMessage,c=e.culture;return this._classNames=dd(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},cd(n,c)),s.createElement("div",{className:this._classNames.calloutContentY},cd(i,c))),!!l&&s.createElement("div",{className:this._classNames.ratio},s.createElement(s.Fragment,null,s.createElement("span",{className:this._classNames.numerator},cd(l[0],c)),"/",s.createElement("span",{className:this._classNames.denominator},cd(l[1],c))))),!!u&&s.createElement("div",{className:this._classNames.descriptionMessage},u))},t}(s.Component),pd=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:Mn.bold},denominator:{fontWeight:Mn.semibold},descriptionMessage:[r.fonts.small,{color:r.semanticColors.bodyText,marginTop:"10px",paddingTop:"10px",borderTop:"1px solid "+r.semanticColors.menuDivider}]}},fd=C(hd,pd);!function(e){e[e.vertical=0]="vertical",e[e.horizontal=1]="horizontal",e[e.bidirectional=2]="bidirectional",e[e.domOrder=3]="domOrder"}(sd||(sd={}));var gd=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 md(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 vd(e){!function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=md(e,e[n],t[n]))}(e,{componentDidMount:_d,componentDidUpdate:yd,componentWillUnmount:xd})}function _d(){bd(this.props.componentRef,this)}function yd(e){e.componentRef!==this.props.componentRef&&(bd(e.componentRef,null),bd(this.props.componentRef,this))}function xd(){bd(this.props.componentRef,null)}function bd(e,t){e&&("object"==typeof e?e.current=t:"function"==typeof e&&e(t))}function Cd(e,t){var n=be(e,(function(e){return t===e||e.hasAttribute(ii)}));return null!==n&&n.hasAttribute(ii)}var Ed,kd="data-is-focusable",Sd="data-focuszone-id",Ld="tabindex",Ad="data-no-vertical-wrap",wd="data-no-horizontal-wrap",Dd=999999999,Td=-999999999;function Md(e,t){var n;"function"==typeof MouseEvent?n=new MouseEvent("click",{ctrlKey:null==t?void 0:t.ctrlKey,metaKey:null==t?void 0:t.metaKey,shiftKey:null==t?void 0:t.shiftKey,altKey:null==t?void 0:t.altKey,bubbles:null==t?void 0:t.bubbles,cancelable:null==t?void 0:t.cancelable}):(n=document.createEvent("MouseEvents")).initMouseEvent("click",!!t&&t.bubbles,!!t&&t.cancelable,window,0,0,0,0,0,!!t&&t.ctrlKey,!!t&&t.altKey,!!t&&t.shiftKey,!!t&&t.metaKey,0,null),e.dispatchEvent(n)}var Pd,Nd={},Fd=new Set,Id=["text","number","password","email","tel","url","search","textarea"],Od=!1,Vd=function(e){function t(n){var r,i,o,a,l,u=e.call(this,n)||this;u._root=s.createRef(),u._mergedRef=(l={refs:[]},function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return l.resolver&&ye(l.refs,e)||(l.resolver=gd(l)),l.refs=e,l.resolver}),u._onFocus=function(e){if(!u._portalContainsElement(e.target)){var t,n=u.props,r=n.onActiveElementChanged,i=n.doNotAllowFocusEventToPropagate,o=n.stopFocusPropagation,a=n.onFocusNotification,s=n.onFocus,l=n.shouldFocusInnerElementWhenReceivedFocus,c=n.defaultTabbableElement,d=u._isImmediateDescendantOfZone(e.target);if(d)t=e.target;else for(var h=e.target;h&&h!==u._root.current;){if(we(h)&&u._isImmediateDescendantOfZone(h)){t=h;break}h=xe(h,Od)}if(l&&e.target===u._root.current){var p=c&&"function"==typeof c&&u._root.current&&c(u._root.current);p&&we(p)?(t=p,p.focus()):(u.focus(!0),u._activeElement&&(t=null))}var f=!u._activeElement;t&&t!==u._activeElement&&((d||f)&&u._setFocusAlignment(t,!0,!0),u._activeElement=t,f&&u._updateTabIndexes()),r&&r(u._activeElement,e),(o||i)&&e.stopPropagation(),s?s(e):a&&a()}},u._onBlur=function(){u._setParkedFocus(!1)},u._onMouseDown=function(e){if(!u._portalContainsElement(e.target)&&!u.props.disabled){for(var t=e.target,n=[];t&&t!==u._root.current;)n.push(t),t=xe(t,Od);for(;n.length&&((t=n.pop())&&we(t)&&u._setActiveElement(t,!0),!De(t)););}},u._onKeyDown=function(e,t){if(!u._portalContainsElement(e.target)){var n=u.props,r=n.direction,i=n.disabled,o=n.isInnerZoneKeystroke,a=n.pagingSupportDisabled,s=n.shouldEnterInnerZone;if(!(i||(u.props.onKeyDown&&u.props.onKeyDown(e),e.isDefaultPrevented()||u._getDocument().activeElement===u._root.current&&u._isInnerZone))){if((s&&s(e)||o&&o(e))&&u._isImmediateDescendantOfZone(e.target)){var l=u._getFirstInnerZone();if(l){if(!l.focus(!0))return}else{if(!Te(e.target))return;if(!u.focusElement(Se(e.target,e.target.firstChild,!0)))return}}else{if(e.altKey)return;switch(e.which){case 32:if(u._shouldRaiseClicksOnSpace&&u._tryInvokeClickForFocusable(e.target,e))break;return;case 37:if(r!==sd.vertical&&(u._preventDefaultWhenHandled(e),u._moveFocusLeft(t)))break;return;case 39:if(r!==sd.vertical&&(u._preventDefaultWhenHandled(e),u._moveFocusRight(t)))break;return;case 38:if(r!==sd.horizontal&&(u._preventDefaultWhenHandled(e),u._moveFocusUp()))break;return;case 40:if(r!==sd.horizontal&&(u._preventDefaultWhenHandled(e),u._moveFocusDown()))break;return;case 34:if(!a&&u._moveFocusPaging(!0))break;return;case 33:if(!a&&u._moveFocusPaging(!1))break;return;case 9:if(u.props.allowTabKey||1===u.props.handleTabKey||2===u.props.handleTabKey&&u._isElementInput(e.target)){var c=!1;if(u._processingTabKey=!0,c=r!==sd.vertical&&u._shouldWrapFocus(u._activeElement,wd)?(oe(t)?!e.shiftKey:e.shiftKey)?u._moveFocusLeft(t):u._moveFocusRight(t):e.shiftKey?u._moveFocusUp():u._moveFocusDown(),u._processingTabKey=!1,c)break;u.props.shouldResetActiveElementWhenTabFromZone&&(u._activeElement=null)}return;case 36:if(u._isContentEditableElement(e.target)||u._isElementInput(e.target)&&!u._shouldInputLoseFocus(e.target,!1))return!1;var d=u._root.current&&u._root.current.firstChild;if(u._root.current&&d&&u.focusElement(Se(u._root.current,d,!0)))break;return;case 35:if(u._isContentEditableElement(e.target)||u._isElementInput(e.target)&&!u._shouldInputLoseFocus(e.target,!0))return!1;var h=u._root.current&&u._root.current.lastChild;if(u._root.current&&u.focusElement(ke(u._root.current,h,!0,!0,!0)))break;return;case 13:if(u._shouldRaiseClicksOnEnter&&u._tryInvokeClickForFocusable(e.target,e))break;return;default:return}}e.preventDefault(),e.stopPropagation()}}},u._getHorizontalDistanceFromCenter=function(e,t,n){var r=u._focusAlignment.left||u._focusAlignment.x||0,i=Math.floor(n.top),o=Math.floor(t.bottom),a=Math.floor(n.bottom),s=Math.floor(t.top);return e&&i>o||!e&&a<s?r>=n.left&&r<=n.left+n.width?0:Math.abs(n.left+n.width/2-r):u._shouldWrapFocus(u._activeElement,Ad)?Dd:Td},vd(u),di("FocusZone",n,{rootProps:void 0,allowTabKey:"handleTabKey",elementType:"as",ariaDescribedBy:"aria-describedby",ariaLabelledBy:"aria-labelledby"}),u._id=ge("FocusZone"),u._focusAlignment={left:0,top:0},u._processingTabKey=!1;var c=null===(i=null!==(r=n.shouldRaiseClicks)&&void 0!==r?r:t.defaultProps.shouldRaiseClicks)||void 0===i||i;return u._shouldRaiseClicksOnEnter=null!==(o=n.shouldRaiseClicksOnEnter)&&void 0!==o?o:c,u._shouldRaiseClicksOnSpace=null!==(a=n.shouldRaiseClicksOnSpace)&&void 0!==a?a:c,u}return r(t,e),t.getOuterZones=function(){return Fd.size},t._onKeyDownCapture=function(e){9===e.which&&Fd.forEach((function(e){return e._updateTabIndexes()}))},t.prototype.componentDidMount=function(){var e=this._root.current;if(Nd[this._id]=this,e){for(var n=xe(e,Od);n&&n!==this._getDocument().body&&1===n.nodeType;){if(De(n)){this._isInnerZone=!0;break}n=xe(n,Od)}this._isInnerZone||(Fd.add(this),this._root.current&&this._root.current.addEventListener("keydown",t._onKeyDownCapture,!0)),this._root.current&&this._root.current.addEventListener("blur",this._onBlur,!0),this._updateTabIndexes(),this.props.defaultTabbableElement&&"string"==typeof this.props.defaultTabbableElement?this._activeElement=this._getDocument().querySelector(this.props.defaultTabbableElement):this.props.defaultActiveElement&&(this._activeElement=this._getDocument().querySelector(this.props.defaultActiveElement)),this.props.shouldFocusOnMount&&this.focus()}},t.prototype.componentDidUpdate=function(){var e=this._root.current,t=this._getDocument();if((this._activeElement&&!Ce(this._root.current,this._activeElement,Od)||this._defaultFocusElement&&!Ce(this._root.current,this._defaultFocusElement,Od))&&(this._activeElement=null,this._defaultFocusElement=null,this._updateTabIndexes()),!this.props.preventFocusRestoration&&t&&this._lastIndexPath&&(t.activeElement===t.body||null===t.activeElement||t.activeElement===e)){var n=function(e,t){for(var n=e,r=0,i=t;r<i.length;r++){var o=i[r],a=n.children[Math.min(o,n.children.length-1)];if(!a)break;n=a}return we(n)&&Le(n)?n:Se(e,n,!0)||ke(e,n)}(e,this._lastIndexPath);n?(this._setActiveElement(n,!0),n.focus(),this._setParkedFocus(!1)):this._setParkedFocus(!0)}},t.prototype.componentWillUnmount=function(){delete Nd[this._id],this._isInnerZone||(Fd.delete(this),this._root.current&&this._root.current.removeEventListener("keydown",t._onKeyDownCapture,!0)),this._root.current&&this._root.current.removeEventListener("blur",this._onBlur,!0),this._activeElement=null,this._defaultFocusElement=null},t.prototype.render=function(){var e=this,t=this.props,n=t.as,r=t.elementType,o=t.rootProps,a=t.ariaDescribedBy,l=t.ariaLabelledBy,u=t.className,c=qe(this.props,We),d=n||r||"div";this._evaluateFocusBeforeRender();var h,p=(void 0===h&&(h=!1),!0===h&&(Er=Cr({},h)),Er);return s.createElement(d,i({"aria-labelledby":l,"aria-describedby":a},c,o,{className:je((Ed||(Ed=Ge({selectors:{":focus":{outline:"none"}}},"ms-FocusZone")),Ed),u),ref:this._mergedRef(this.props.elementRef,this._root),"data-focuszone-id":this._id,onKeyDown:function(t){return e._onKeyDown(t,p)},onFocus:this._onFocus,onMouseDownCapture:this._onMouseDown}),this.props.children)},t.prototype.focus=function(e,t){if(void 0===e&&(e=!1),void 0===t&&(t=!1),this._root.current){if(!e&&"true"===this._root.current.getAttribute(kd)&&this._isInnerZone){var n=this._getOwnerZone(this._root.current);if(n!==this._root.current){var r=Nd[n.getAttribute(Sd)];return!!r&&r.focusElement(this._root.current)}return!1}if(!e&&this._activeElement&&Ce(this._root.current,this._activeElement)&&we(this._activeElement)&&(!t||Ae(this._activeElement)))return this._activeElement.focus(),!0;var i=this._root.current.firstChild;return this.focusElement(Se(this._root.current,i,!0,void 0,void 0,void 0,void 0,void 0,t))}return!1},t.prototype.focusLast=function(){if(this._root.current){var e=this._root.current&&this._root.current.lastChild;return this.focusElement(ke(this._root.current,e,!0,!0,!0))}return!1},t.prototype.focusElement=function(e,t){var n=this.props,r=n.onBeforeFocus,i=n.shouldReceiveFocus;return!(i&&!i(e)||r&&!r(e)||!e||(this._setActiveElement(e,t),this._activeElement&&this._activeElement.focus(),0))},t.prototype.setFocusAlignment=function(e){this._focusAlignment=e},Object.defineProperty(t.prototype,"defaultFocusElement",{get:function(){return this._defaultFocusElement},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"activeElement",{get:function(){return this._activeElement},enumerable:!1,configurable:!0}),t.prototype._evaluateFocusBeforeRender=function(){var e=this._root.current,t=this._getDocument();if(t){var n=t.activeElement;if(n!==e){var r=Ce(e,n,!1);this._lastIndexPath=r?function(e,t){for(var n=[];t&&e&&t!==e;){var r=xe(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&&(De(n)&&this._updateTabIndexes(n),n.tabIndex=-1),this._activeElement&&(this._focusAlignment&&!t||this._setFocusAlignment(e,!0,!0),this._activeElement.tabIndex=0)},t.prototype._preventDefaultWhenHandled=function(e){this.props.preventDefaultWhenHandled&&e.preventDefault()},t.prototype._tryInvokeClickForFocusable=function(e,t){var n=e;if(n===this._root.current)return!1;do{if("BUTTON"===n.tagName||"A"===n.tagName||"INPUT"===n.tagName||"TEXTAREA"===n.tagName||"SUMMARY"===n.tagName)return!1;if(this._isImmediateDescendantOfZone(n)&&"true"===n.getAttribute(kd)&&"true"!==n.getAttribute("data-disable-click-on-enter"))return Md(n,t),!0;n=xe(n,Od)}while(n!==this._root.current);return!1},t.prototype._getFirstInnerZone=function(e){if(!(e=e||this._activeElement||this._root.current))return null;if(De(e))return Nd[e.getAttribute(Sd)];for(var t=e.firstElementChild;t;){if(De(t))return Nd[t.getAttribute(Sd)];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===sd.bidirectional;if(!i||!this._root.current)return!1;if(this._isElementInput(i)&&!this._shouldInputLoseFocus(i,e))return!1;var u=l?i.getBoundingClientRect():null;do{if(i=e?Se(this._root.current,i):ke(this._root.current,i),!l){a=i;break}if(i){var c=t(u,i.getBoundingClientRect());if(-1===c&&-1===o){a=i;break}if(c>-1&&(-1===o||c<o)&&(o=c,a=i),o>=0&&c<0)break}}while(i);if(a&&a!==this._activeElement)s=!0,this.focusElement(a);else if(this.props.isCircularNavigation&&r)return e?this.focusElement(Se(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement(ke(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,Ad)?Dd:Td:((-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,Ad)?Dd:Td:((-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,wd);return!!this._moveFocus(oe(e),(function(r,i){var o=-1;return(oe(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!==sd.vertical?o=r.right-i.right:n||(o=Td),o}),void 0,n)&&(this._setFocusAlignment(this._activeElement,!0,!1),!0)},t.prototype._moveFocusRight=function(e){var t=this,n=this._shouldWrapFocus(this._activeElement,wd);return!!this._moveFocus(!oe(e),(function(r,i){var o=-1;return(oe(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!==sd.vertical?o=i.left-r.left:n||(o=Td),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=Qe(n);if(!r)return!1;var i=-1,o=void 0,a=-1,s=-1,l=r.clientHeight,u=n.getBoundingClientRect();do{if(n=e?Se(this._root.current,n):ke(this._root.current,n)){var c=n.getBoundingClientRect(),d=Math.floor(c.top),h=Math.floor(u.bottom),p=Math.floor(c.bottom),f=Math.floor(u.top),g=this._getHorizontalDistanceFromCenter(e,u,c);if(e&&d>h+l||!e&&p<f-l)break;g>-1&&(e&&d>a?(a=d,i=g,o=n):!e&&p<s?(s=p,i=g,o=n):(-1===i||g<=i)&&(i=g,o=n))}}while(n);var m=!1;if(o&&o!==this._activeElement)m=!0,this.focusElement(o),this._setFocusAlignment(o,!1,!0);else if(this.props.isCircularNavigation&&t)return e?this.focusElement(Se(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement(ke(this._root.current,this._root.current.lastElementChild,!0,!0,!0));return m},t.prototype._setFocusAlignment=function(e,t,n){if(this.props.direction===sd.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=xe(e,Od);t&&t!==this._root.current&&t!==this._getDocument().body;){if(De(t))return t;t=xe(t,Od)}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&&!Ce(e,this._activeElement)&&(this._activeElement=null)),this._activeElement&&!we(this._activeElement)&&(this._activeElement=null);for(var t=e&&e.children,n=0;t&&n<t.length;n++){var r=t[n];De(r)?"true"===r.getAttribute(kd)&&(this._isInnerZone||(this._activeElement||this._defaultFocusElement)&&this._activeElement!==r?"-1"!==r.getAttribute(Ld)&&r.setAttribute(Ld,"-1"):(this._defaultFocusElement=r,"0"!==r.getAttribute(Ld)&&r.setAttribute(Ld,"0"))):(r.getAttribute&&"false"===r.getAttribute(kd)&&r.setAttribute(Ld,"-1"),we(r)?this.props.disabled?r.setAttribute(Ld,"-1"):this._isInnerZone||(this._activeElement||this._defaultFocusElement)&&this._activeElement!==r?"-1"!==r.getAttribute(Ld)&&r.setAttribute(Ld,"-1"):(this._defaultFocusElement=r,"0"!==r.getAttribute(Ld)&&r.setAttribute(Ld,"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&&Id.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=be(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&&Cd(e,this._root.current)},t.prototype._getDocument=function(){return Q(this._root.current)},t.defaultProps={isCircularNavigation:!1,direction:sd.bidirectional,shouldRaiseClicks:!0},t}(s.Component);!function(e){e[e.Parent=0]="Parent",e[e.Self=1]="Self"}(Pd||(Pd={}));var Hd,Rd=ue(),Bd=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onRenderContent=function(e){return"string"==typeof e.content?s.createElement("p",{className:t._classNames.subText},e.content):s.createElement("div",{className:t._classNames.subText},e.content)},t}return r(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.calloutProps,r=e.directionalHint,o=e.directionalHintForRTL,a=e.styles,l=e.id,u=e.maxWidth,c=e.onRenderContent,d=void 0===c?this._onRenderContent:c,h=e.targetElement,p=e.theme;return this._classNames=Rd(a,{theme:p,className:t||n&&n.className,beakWidth:n&&n.isBeakVisible?n.beakWidth:0,gapSpace:n&&n.gapSpace,maxWidth:u}),s.createElement(Ci,i({target:h,directionalHint:r,directionalHintForRTL:o},n,qe(this.props,Ye,["id"]),{className:this._classNames.root}),s.createElement("div",{className:this._classNames.content,id:l,onFocus:this.props.onFocus,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave},d(this.props,this._onRenderContent)))},t.defaultProps={directionalHint:1,maxWidth:"364px",calloutProps:{isBeakVisible:!0,beakWidth:16,gapSpace:0,setInitialFocus:!0,doNotLayer:!1}},t}(s.Component),Wd=C(Bd,(function(e){var t=e.className,n=e.beakWidth,r=void 0===n?16:n,i=e.gapSpace,o=void 0===i?0:i,a=e.maxWidth,s=e.theme,l=s.semanticColors,u=s.fonts,c=s.effects,d=-(Math.sqrt(r*r/2)+o)+1/window.devicePixelRatio;return{root:["ms-Tooltip",s.fonts.medium,Nn.fadeIn200,{background:l.menuBackground,boxShadow:c.elevation8,padding:"8px",maxWidth:a,selectors:{":after":{content:"''",position:"absolute",bottom:d,left:d,right:d,top:d,zIndex:0}}},t],content:["ms-Tooltip-content",u.small,{position:"relative",zIndex:1,color:l.menuItemText,wordWrap:"break-word",overflowWrap:"break-word",overflow:"hidden"}],subText:["ms-Tooltip-subtext",{fontSize:"inherit",fontWeight:"inherit",color:"inherit",margin:0}]}}),void 0,{scope:"Tooltip"});!function(e){e[e.zero=0]="zero",e[e.medium=1]="medium",e[e.long=2]="long"}(Hd||(Hd={}));var zd,Ud,Yd=ue(),qd=function(e){function t(n){var r=e.call(this,n)||this;return r._tooltipHost=s.createRef(),r._defaultTooltipId=ge("tooltip"),r.show=function(){r._toggleTooltip(!0)},r.dismiss=function(){r._hideTooltip()},r._getTargetElement=function(){if(r._tooltipHost.current){var e=r.props.overflowMode;if(void 0!==e)switch(e){case Pd.Parent:return r._tooltipHost.current.parentElement;case Pd.Self:return r._tooltipHost.current}return r._tooltipHost.current}},r._onTooltipFocus=function(e){r._ignoreNextFocusEvent?r._ignoreNextFocusEvent=!1:r._onTooltipMouseEnter(e)},r._onTooltipContentFocus=function(e){t._currentVisibleTooltip&&t._currentVisibleTooltip!==r&&t._currentVisibleTooltip.dismiss(),t._currentVisibleTooltip=r,r._clearDismissTimer(),r._clearOpenTimer()},r._onTooltipBlur=function(e){r._ignoreNextFocusEvent=(null===document||void 0===document?void 0:document.activeElement)===e.target,r._dismissTimerId=r._async.setTimeout((function(){r._hideTooltip()}),0)},r._onTooltipMouseEnter=function(e){var n,i=r.props,o=i.overflowMode,a=i.delay;if(t._currentVisibleTooltip&&t._currentVisibleTooltip!==r&&t._currentVisibleTooltip.dismiss(),t._currentVisibleTooltip=r,void 0!==o){var s=r._getTargetElement();if(s&&!function(e){return e.clientWidth<e.scrollWidth}(n=s)&&!function(e){return e.clientHeight<e.scrollHeight}(n))return}if(!e.target||!Cd(e.target,r._getTargetElement()))if(r._clearDismissTimer(),r._clearOpenTimer(),a!==Hd.zero){var l=r._getDelayTime(a);r._openTimerId=r._async.setTimeout((function(){r._toggleTooltip(!0)}),l)}else r._toggleTooltip(!0)},r._onTooltipMouseLeave=function(e){var n=r.props.closeDelay;r._clearDismissTimer(),r._clearOpenTimer(),n?r._dismissTimerId=r._async.setTimeout((function(){r._toggleTooltip(!1)}),n):r._toggleTooltip(!1),t._currentVisibleTooltip===r&&(t._currentVisibleTooltip=void 0)},r._onTooltipKeyDown=function(e){(e.which===wt||e.ctrlKey)&&r.state.isTooltipVisible&&(r._hideTooltip(),e.stopPropagation())},r._clearDismissTimer=function(){r._async.clearTimeout(r._dismissTimerId)},r._clearOpenTimer=function(){r._async.clearTimeout(r._openTimerId)},r._hideTooltip=function(){r._clearOpenTimer(),r._clearDismissTimer(),r._toggleTooltip(!1)},r._toggleTooltip=function(e){r.state.isTooltipVisible!==e&&r.setState({isTooltipVisible:e},(function(){return r.props.onTooltipToggle&&r.props.onTooltipToggle(e)}))},r._getDelayTime=function(e){switch(e){case Hd.medium:return 300;case Hd.long:return 500;default:return 0}},vd(r),r.state={isAriaPlaceholderRendered:!1,isTooltipVisible:!1},r._async=new Dt(r),r}return r(t,e),t.prototype.render=function(){var e=this.props,t=e.calloutProps,n=e.children,r=e.content,o=e.directionalHint,a=e.directionalHintForRTL,l=e.hostClassName,u=e.id,c=e.setAriaDescribedBy,d=void 0===c||c,h=e.tooltipProps,p=e.styles,f=e.theme;this._classNames=Yd(p,{theme:f,className:l});var g=this.state.isTooltipVisible,m=u||this._defaultTooltipId,v=i(i({id:m+"--tooltip",content:r,targetElement:this._getTargetElement(),directionalHint:o,directionalHintForRTL:a,calloutProps:Xe({},t,{onDismiss:this._hideTooltip,onFocus:this._onTooltipContentFocus,onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave}),onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave},qe(this.props,Ye,["id"])),h),_=(null==h?void 0:h.onRenderContent)?h.onRenderContent(v,(function(e){return(null==e?void 0:e.content)?s.createElement(s.Fragment,null,e.content):null})):r,y=g&&!!_,x=d&&g&&_?m:void 0;return s.createElement("div",i({className:this._classNames.root,ref:this._tooltipHost},{onFocusCapture:this._onTooltipFocus},{onBlurCapture:this._onTooltipBlur},{onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave,onKeyDown:this._onTooltipKeyDown,role:"none","aria-describedby":x}),n,y&&s.createElement(Wd,i({},v)),s.createElement("div",{hidden:!0,id:m,style:Rn},_))},t.prototype.componentWillUnmount=function(){t._currentVisibleTooltip&&t._currentVisibleTooltip===this&&(t._currentVisibleTooltip=void 0),this._async.dispose()},t.defaultProps={delay:Hd.medium},t}(s.Component),jd={root:"ms-TooltipHost",ariaPlaceholder:"ms-TooltipHost-aria-placeholder"},Xd=C(qd,(function(e){var t=e.className,n=e.theme;return{root:[$n(jd,n).root,{display:"inline"},t]}}),void 0,{scope:"TooltipHost"}),Kd=ue(),Gd=function(e){function t(t){var n=e.call(this,t)||this;return n._isRTL=oe(),n._handleChartMouseLeave=function(){n._calloutAnchorPoint=null,n.state.isCalloutVisible&&n.setState({isCalloutVisible:!1,hoverValue:"",refSelected:null,lineColor:"",legend:""})},n._adjustProps=function(){n._barHeight=n.props.barHeight||12,n._classNames=Kd(n.props.styles,{theme:n.props.theme,width:n.props.width,className:n.props.className,barHeight:n._barHeight,color:n.state.lineColor,variant:n.props.variant,hideLabels:n.props.hideLabels})},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._getAriaLabel=function(e){var t,n=e.xAxisCalloutData||e.legend,r=e.yAxisCalloutData||(e.horizontalBarChartdata?e.horizontalBarChartdata.x+"/"+e.horizontalBarChartdata.y:0);return(null===(t=e.callOutAccessibilityData)||void 0===t?void 0:t.ariaLabel)||(n?n+", ":"")+r+"."},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=ge("callout"),n}return r(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.data,r=t.theme;this._adjustProps();var o=r.palette,a=0;return s.createElement("div",{className:this._classNames.root,onMouseLeave:this._handleChartMouseLeave},n.map((function(t,n){a=t.chartData&&t.chartData[0]&&t.chartData[0].horizontalBarChartdata.x?t.chartData[0].horizontalBarChartdata.x:0,t.chartData[1]={legend:"",horizontalBarChartdata:{x:t.chartData[0].horizontalBarChartdata.y-a,y:t.chartData[0].horizontalBarChartdata.y},color:o.neutralLight};var r=e.props.variant===pe.AbsoluteScale?null:e._getChartDataText(t),l=e._createBars(t,o),u=e._uniqLineText+"_"+n,c=Kd(e.props.styles,{theme:e.props.theme,width:e.props.width,showTriangle:!!t.chartData[0].data,variant:e.props.variant});return s.createElement("div",{key:n},s.createElement("div",{className:c.items},s.createElement(Vd,{direction:sd.horizontal},s.createElement("div",{className:e._classNames.chartTitle},t.chartTitle&&s.createElement(Xd,{overflowMode:Pd.Self,hostClassName:e._classNames.chartTitleLeft,content:t.chartTitle},s.createElement("span",i({},ud(t.chartTitleAccessibilityData)),t.chartTitle)),r)),t.chartData[0].data&&e._createBenchmark(t),s.createElement(Vd,{direction:sd.horizontal,className:e._classNames.chartWrapper},s.createElement("svg",{className:e._classNames.chart,"aria-label":t.chartTitle},s.createElement("g",{id:u,key:u,ref:function(n){e._refCallback(n,t.chartData[0].legend)},onClick:function(){var e=t.chartData[0];e&&e.onClick&&e.onClick()}},l)))))})),s.createElement(Ci,i({target:this.state.refSelected,coverTarget:!0,isBeakVisible:!1,gapSpace:30,hidden:!(!this.props.hideTooltip&&this.state.isCalloutVisible),directionalHint:3,id:this._calloutId,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0},this.props.calloutProps,ud(this.state.callOutAccessibilityData)),s.createElement(s.Fragment,null,this.props.onRenderCalloutPerHorizontalBar?this.props.onRenderCalloutPerHorizontalBar(this.state.barCalloutProps):s.createElement(fd,{Legend:this.state.xCalloutValue?this.state.xCalloutValue:this.state.legend,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.hoverValue,color:this.state.lineColor,culture:this.props.culture}))))},t.prototype._refCallback=function(e,t){this._refArray.push({index:t,refElement:e})},t.prototype._hoverOn=function(e,t){if((!this.state.isCalloutVisible||this.state.legend!==t.legend)&&this._calloutAnchorPoint!==t){var n=_e(this._refArray,(function(e){return e.index===t.legend}));this._calloutAnchorPoint=t,this.setState({isCalloutVisible:!0,hoverValue:e,lineColor:t.color,legend:t.legend,refSelected:n.refElement,xCalloutValue:t.xAxisCalloutData,yCalloutValue:t.yAxisCalloutData,barCalloutProps:t,callOutAccessibilityData:t.callOutAccessibilityData})}},t.prototype._hoverOff=function(){},t.prototype._getDefaultTextData=function(e){var t=this.props.culture,n=this.props.chartDataMode||"default",r=e.chartData[0],o=r.horizontalBarChartdata.x,a=r.horizontalBarChartdata.y,l=ud(e.chartDataAccessibilityData);switch(n){case"default":return s.createElement("div",i({className:this._classNames.chartTitleRight},l),cd(o,t));case"fraction":return s.createElement("div",i({},l),s.createElement("span",{className:this._classNames.chartTitleRight},cd(o,t)),s.createElement("span",{className:this._classNames.chartDataTextDenominator}," / "+cd(a,t)));case"percentage":var u=cd(Math.round(o/a*100),t)+"%";return s.createElement("div",i({className:this._classNames.chartTitleRight},l),u)}},t.prototype._createBenchmark=function(e){var t=e.chartData[0].horizontalBarChartdata.y,n=e.chartData[0].data,r={left:"calc("+Math.round((n||0)/t*100)+"% - 4px)"};return s.createElement("div",{className:this._classNames.benchmarkContainer},s.createElement("div",{className:this._classNames.triangle,style:r}))},t.prototype._createBars=function(e,t){var n=this,r=[t.blueLight,t.blue,t.blueMid,t.red,t.black],i=[],o=e.chartData.reduce((function(e,t){return e+(t.horizontalBarChartdata.x?t.horizontalBarChartdata.x:0)}),0),a=0,l=0,u=0;e.chartData.map((function(e,t){var n=e.horizontalBarChartdata.x?e.horizontalBarChartdata.x:0;return(l=n/o*100)<0?l=0:l<1&&0!==l&&(l=1),u+=l}));var c=0!==u?u/100:1,d=e.chartData.map((function(t,u){var d=t.color?t.color:r[Math.floor(4*Math.random()+1)],h=t.horizontalBarChartdata.x?t.horizontalBarChartdata.x:0;u>0&&(a+=l),(l=h/o*100)<0?l=0:l<1&&0!==l?l=1/c:l/=c,i.push(a);var p=t.horizontalBarChartdata.x;if(1===u&&n.props.variant===pe.AbsoluteScale){if(n.props.hideLabels)return s.createElement("text",{key:u});var f=e.chartData[0].horizontalBarChartdata.x;return s.createElement("text",{key:u,x:(n._isRTL?100-i[u]:i[u])+"%",y:n._barHeight/2,dominantBaseline:"central",transform:"translate("+(n._isRTL?-4:4)+")",className:n._classNames.barLabel,"aria-hidden":!0},pa(f<1e3?".2~":".1",f)(f))}return s.createElement("rect",{key:u,x:(n._isRTL?100-i[u]-l:i[u])+"%",y:0,"data-is-focusable":""!==t.legend,width:l+"%",height:n._barHeight,fill:d,onMouseOver:""!==t.legend?n._hoverOn.bind(n,p,t):void 0,onFocus:""!==t.legend?n._hoverOn.bind(n,p,t):void 0,role:"img","aria-label":n._getAriaLabel(t),onBlur:n._hoverOff,onMouseLeave:n._hoverOff,className:n._classNames.barWrapper})}));return d},t}(s.Component),Zd=C(Gd,(function(e){var t=e.className,n=e.theme,r=e.width,o=e.barHeight,a=e.showTriangle,s=e.variant,l=e.hideLabels,u=n.palette;return{root:[{display:"flex",flexDirection:"column",width:r||"100%"},t],items:{marginBottom:a||s===pe.AbsoluteScale?"16px":"10px"},chart:{width:"100%",height:o||12,display:"block",overflow:"visible"},barWrapper:{stroke:n.palette.white,strokeWidth:2},chartTitle:i(i({},n.fonts.small),{display:"flex",justifyContent:"space-between"}),chartTitleLeft:{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",display:"block",color:n.palette.neutralPrimary,marginBottom:s===pe.AbsoluteScale?"4px":"5px"},chartTitleRight:{fontSize:Tn.medium,fontWeight:Mn.semibold,color:n.palette.neutralPrimary},chartDataTextDenominator:{fontSize:Tn.medium,color:n.palette.neutralPrimary},benchmarkContainer:{position:"relative",height:"7px",marginTop:"-3px",marginBottom:"-1px"},triangle:{width:"0",height:"0",borderLeft:"4px solid transparent",borderRight:"4px solid transparent",borderTop:"7px solid",borderTopColor:u.blue,marginBottom:"4px",position:"absolute"},barLabel:i(i({},n.fonts.small),{fontWeight:Mn.semibold,fill:n.palette.neutralPrimary}),chartWrapper:{paddingRight:s!==pe.AbsoluteScale||l?0:40}}})),$d={host:"ms-HoverCard-host"},Qd=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),Xe(a,r),o=t.dispatchEvent(a)}else if("undefined"!=typeof document&&document.createEventObject){var s=document.createEventObject(r);t.fireEvent("on"+n,s)}}else for(;t&&!1!==o;){var l=t.__events__,u=l?l[n]:null;if(u)for(var c in u)if(u.hasOwnProperty(c))for(var d=u[c],h=0;!1!==o&&h<d.length;h++){var p=d[h];p.objectCallback&&(o=p.objectCallback.call(p.parent,r))}t=i?t.parent:null}return o},e.isObserved=function(e,t){var n=e&&e.__events__;return!!n&&!!n[t]},e.isDeclared=function(e,t){var n=e&&e.__declaredEvents;return!!n&&!!n[t]},e.stopPropagation=function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0},e._isElement=function(e){return!!e&&(!!e.addEventListener||"undefined"!=typeof HTMLElement&&e instanceof HTMLElement)},e.prototype.dispose=function(){this._isDisposed||(this._isDisposed=!0,this.off(),this._parent=null)},e.prototype.onAll=function(e,t,n){for(var r in t)t.hasOwnProperty(r)&&this.on(e,r,t[r],n)},e.prototype.on=function(t,n,r,i){var o=this;if(n.indexOf(",")>-1)for(var a=n.split(/[ ,]+/),s=0;s<a.length;s++)this.on(t,a[s],r,i);else{var l=this._parent,u={target:t,eventName:n,parent:l,callback:r,options:i};if((a=t.__events__=t.__events__||{})[n]=a[n]||{count:0},a[n][this._id]=a[n][this._id]||[],a[n][this._id].push(u),a[n].count++,e._isElement(t)){var c=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!o._isDisposed){var n;try{if(!1===(n=r.apply(l,e))&&e[0]){var i=e[0];i.preventDefault&&i.preventDefault(),i.stopPropagation&&i.stopPropagation(),i.cancelBubble=!0}}catch(i){}return n}};u.elementCallback=c,t.addEventListener?t.addEventListener(n,c,i):t.attachEvent&&t.attachEvent("on"+n,c)}else u.objectCallback=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!o._isDisposed)return r.apply(l,e)};this._eventRecords.push(u)}},e.prototype.off=function(e,t,n,r){for(var i=0;i<this._eventRecords.length;i++){var o=this._eventRecords[i];if(!(e&&e!==o.target||t&&t!==o.eventName||n&&n!==o.callback||"boolean"==typeof r&&r!==o.options)){var a=o.target.__events__,s=a[o.eventName],l=s?s[this._id]:null;l&&(1!==l.length&&n?(s.count--,l.splice(l.indexOf(o),1)):(s.count-=l.length,delete a[o.eventName][this._id]),s.count||delete a[o.eventName]),o.elementCallback&&(o.target.removeEventListener?o.target.removeEventListener(o.eventName,o.elementCallback,o.options):o.target.detachEvent&&o.target.detachEvent("on"+o.eventName,o.elementCallback)),this._eventRecords.splice(i--,1)}}},e.prototype.raise=function(t,n,r){return e.raise(this._parent,t,n,r)},e.prototype.declare=function(e){var t=this._parent.__declaredEvents=this._parent.__declaredEvents||{};if("string"==typeof e)t[e]=!0;else for(var n=0;n<e.length;n++)t[e[n]]=!0},e._uniqueId=0,e}();!function(e){e[e.hover=0]="hover",e[e.hotKey=1]="hotKey"}(zd||(zd={})),function(e){e.plain="PlainCard",e.expanding="ExpandingCard"}(Ud||(Ud={}));var Jd,eh={root:"ms-ExpandingCard-root",compactCard:"ms-ExpandingCard-compactCard",expandedCard:"ms-ExpandingCard-expandedCard",expandedCardScroll:"ms-ExpandingCard-expandedCardScrollRegion"};function th(e,t){var n=s.useRef(t);return n.current||(n.current=ge(e)),n.current}function nh(e){var t=s.useRef((function(){throw new Error("Cannot call an event handler while rendering")}));return li((function(){t.current=e}),[e]),Tr((function(){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=t.current;return r.apply(void 0,e)}}))}!function(e){e[e.compact=0]="compact",e[e.expanded=1]="expanded"}(Jd||(Jd={}));var rh={disabled:!1,disableFirstFocus:!1,forceFocusInsideTrap:!0,isClickableOutsideFocusTrap:!1},ih=s.forwardRef((function(e,t){var n,r,o,a=s.useRef(null),l=s.useRef(null),u=s.useRef(null),c=Pt(a,t),d=function(){var e;return null===(e=s.useContext(Nt).window)||void 0===e?void 0:e.document}(),h=null===(n=pi(!1))||void 0===n||n,p=Fe(rh,e),f=Tr({hasFocus:!1,focusStackId:th("ftz-",p.id)}),g=p.children,m=p.componentRef,v=p.disabled,_=p.disableFirstFocus,y=p.forceFocusInsideTrap,x=p.focusPreviouslyFocusedInnerElement,b=p.firstFocusableSelector,C=p.firstFocusableTarget,E=p.disableRestoreFocus,k=void 0===E?p.ignoreExternalFocusing:E,S=p.isClickableOutsideFocusTrap,L=p.enableAriaHiddenSiblings,A={"aria-hidden":!0,style:{pointerEvents:"none",position:"fixed"},tabIndex:v?-1:0,"data-is-visible":!0,"data-is-focus-trap-zone-bumper":!0},w=s.useCallback((function(e){e!==l.current&&e!==u.current&&Pe(e)}),[]),D=nh((function(){if(a.current){var e=f.previouslyFocusedElementInTrapZone;if(x&&e&&Ce(a.current,e))w(e);else{var t=null;if("string"==typeof C)t=a.current.querySelector(C);else if(C)t=C(a.current);else if(b){var n="string"==typeof b?b:b();t=a.current.querySelector("."+n)}t||(t=Se(a.current,a.current.firstChild,!1,!1,!1,!0)),t&&w(t)}}})),T=function(e){if(!v&&a.current){var t,n=e===f.hasFocus?(void 0===(t=!1)&&(t=!0),ke(a.current,u.current,t,!1,!0,!0,!1,!0)):function(e,t,n,r){return void 0===r&&(r=!0),Se(e,t,r,!1,!1,!0,!1,!0)}(a.current,l.current,0,!1);n&&(n===l.current||n===u.current?D():n.focus())}},M=nh((function(e){if(ih.focusStack=ih.focusStack.filter((function(e){return f.focusStackId!==e})),d){var t=d.activeElement;k||"function"!=typeof(null==e?void 0:e.focus)||!Ce(a.current,t)&&t!==d.body||w(e)}})),P=nh((function(e){if(!v&&f.focusStackId===ih.focusStack.slice(-1)[0]){var t=e.target;t&&!Ce(a.current,t)&&(d&&d.activeElement===d.body?setTimeout((function(){d&&d.activeElement===d.body&&(D(),f.hasFocus=!0)}),0):(D(),f.hasFocus=!0),e.preventDefault(),e.stopPropagation())}}));return s.useEffect((function(){var e=[];return y&&e.push(Ne(window,"focus",P,!0)),S||e.push(Ne(window,"click",P,!0)),function(){e.forEach((function(e){return e()}))}}),[y,S]),s.useEffect((function(){if(!v&&(h||y)&&a.current){ih.focusStack.push(f.focusStackId);var e=p.elementToFocusOnDismiss||d.activeElement;return _||Ce(a.current,e)||D(),function(){return M(e)}}}),[y,v]),s.useEffect((function(){if(!v&&L)return At(a.current)}),[v,L,a]),r=function(){delete f.previouslyFocusedElementInTrapZone},(o=s.useRef(r)).current=r,s.useEffect((function(){return function(){var e;null===(e=o.current)||void 0===e||e.call(o)}}),[]),function(e,t,n){s.useImperativeHandle(e,(function(){return{get previouslyFocusedElement(){return t},focus:n}}),[n,t])}(m,f.previouslyFocusedElementInTrapZone,D),s.createElement("div",i({"aria-labelledby":p.ariaLabelledBy},qe(p,Ye),{ref:c,onFocusCapture:function(e){var t;null===(t=p.onFocusCapture)||void 0===t||t.call(p,e),e.target===l.current?T(!0):e.target===u.current&&T(!1),f.hasFocus=!0,e.target!==e.currentTarget&&e.target!==l.current&&e.target!==u.current&&(f.previouslyFocusedElementInTrapZone=e.target)},onBlurCapture:function(e){var t;null===(t=p.onBlurCapture)||void 0===t||t.call(p,e);var n=e.relatedTarget;null===e.relatedTarget&&(n=d.activeElement),Ce(a.current,n)||(f.hasFocus=!1)}}),s.createElement("div",i({},A,{ref:l})),g,s.createElement("div",i({},A,{ref:u})))}));ih.displayName="FocusTrapZone",ih.focusStack=[];var oh,ah=function(e){return s.createElement(Ci,i({},e),s.createElement(ih,i({disabled:e.hidden},e.focusTrapProps),e.children))},sh=function(e){var t=e.gapSpace,n=void 0===t?0:t,r=e.directionalHint,o=void 0===r?4:r,a=e.directionalHintFixed,l=e.targetElement,u=e.firstFocus,c=e.trapFocus,d=e.onLeave,h=e.className,p=e.finalHeight,f=e.content,g=e.calloutProps,m=i(i(i({},qe(e,Ye)),{className:h,target:l,isBeakVisible:!1,directionalHint:o,directionalHintFixed:a,finalHeight:p,minPagePadding:24,onDismiss:d,gapSpace:n}),g);return s.createElement(s.Fragment,null,c?s.createElement(ah,i({},m,{focusTrapProps:{forceFocusInsideTrap:!1,isClickableOutsideFocusTrap:!0,disableFirstFocus:!u}}),f):s.createElement(Ci,i({},m),f))},lh=ue(),uh=function(e){function t(t){var n=e.call(this,t)||this;return n._expandedElem=s.createRef(),n._onKeyDown=function(e){e.which===wt&&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 Dt(n),vd(n),n.state={firstFrameRendered:!1,needsScroll:!1},n}return r(t,e),t.prototype.componentDidMount=function(){this._checkNeedsScroll()},t.prototype.componentWillUnmount=function(){this._async.dispose()},t.prototype.render=function(){var e=this.props,t=e.styles,n=e.compactCardHeight,r=e.expandedCardHeight,o=e.theme,a=e.mode,l=e.className,u=this.state,c=u.needsScroll,d=u.firstFrameRendered,h=n+r;this._classNames=lh(t,{theme:o,compactCardHeight:n,className:l,expandedCardHeight:r,needsScroll:c,expandedCardFirstFrameRendered:a===Jd.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(sh,i({},this.props,{content:p,finalHeight:h,className:this._classNames.root}))},t.defaultProps={compactCardHeight:156,expandedCardHeight:384,directionalHintFixed:!0},t}(s.Component),ch=C(uh,(function(e){var t,n=e.theme,r=e.needsScroll,i=e.expandedCardFirstFrameRendered,o=e.compactCardHeight,a=e.expandedCardHeight,s=e.className,l=n.palette,u=$n(eh,n);return{root:[u.root,{width:320,pointerEvents:"none",selectors:(t={},t[On]={border:"1px solid WindowText"},t)},s],compactCard:[u.compactCard,{pointerEvents:"auto",position:"relative",height:o}],expandedCard:[u.expandedCard,{height:1,overflowY:"hidden",pointerEvents:"auto",transition:"height 0.467s cubic-bezier(0.5, 0, 0, 1)",selectors:{":before":{content:'""',position:"relative",display:"block",top:0,left:24,width:272,height:1,backgroundColor:l.neutralLighter}}},i&&{height:a}],expandedCardScroll:[u.expandedCardScroll,r&&{height:"100%",boxSizing:"border-box",overflowY:"auto"}]}}),void 0,{scope:"ExpandingCard"}),dh={root:"ms-PlainCard-root"},hh=ue(),ph=function(e){function t(t){var n=e.call(this,t)||this;return n._onKeyDown=function(e){e.which===wt&&n.props.onLeave&&n.props.onLeave(e)},vd(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=hh(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(sh,i({},this.props,{content:o,className:this._classNames.root}))},t}(s.Component),fh=C(ph,(function(e){var t,n=e.theme,r=e.className;return{root:[$n(dh,n).root,{pointerEvents:"auto",selectors:(t={},t[On]={border:"1px solid WindowText"},t)},r]}}),void 0,{scope:"PlainCard"}),gh=ue(),mh=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:Jd.compact,openMode:"keydown"===e.type?zd.hotKey:zd.hover}}))}),n.props.cardOpenDelay)},n._cardDismiss=function(e,t){if(e){if(!(t instanceof MouseEvent))return;if("keydown"===t.type&&t.which!==wt)return;n.props.sticky||n._currentMouseTarget!==t.currentTarget&&t.which!==wt||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:Jd.compact,openMode:zd.hover})},n._instantOpenAsExpanded=function(e){n._async.clearTimeout(n._dismissTimerId),n.setState((function(e){return e.isHoverCardVisible?e:{isHoverCardVisible:!0,mode:Jd.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)))},vd(n),n._async=new Dt(n),n._events=new Qd(n),n._nativeDismissEvent=n._cardDismiss.bind(n,!0),n._childDismissEvent=n._cardDismiss.bind(n,!1),n.state={isHoverCardVisible:!1,mode:Jd.compact,openMode:zd.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:Jd.expanded},(function(){n.props.onCardExpand&&n.props.onCardExpand()}))}),this.props.expandedCardOpenDelay),this.props.onCardVisible&&this.props.onCardVisible()):(this.setState({mode:Jd.compact}),this.props.onCardHide&&this.props.onCardHide()))},t.prototype.render=function(){var e=this.props,t=e.expandingCardProps,n=e.children,r=e.id,o=e.setAriaDescribedBy,a=void 0===o||o,l=e.styles,u=e.theme,c=e.className,d=e.type,h=e.plainCardProps,p=e.trapFocus,f=e.setInitialFocus,g=this.state,m=g.isHoverCardVisible,v=g.mode,_=g.openMode,y=r||ge("hoverCard");this._classNames=gh(l,{theme:u,className:c});var x=i(i({},qe(this.props,Ye)),{id:y,trapFocus:!!p,firstFocus:f||_===zd.hotKey,targetElement:this._getTargetElement(this.props.target),onEnter:this._cardOpen,onLeave:this._childDismissEvent}),b=i(i(i({},t),x),{mode:v}),C=i(i({},h),x);return s.createElement("div",{className:this._classNames.host,ref:this._hoverCard,"aria-describedby":a&&m?y:void 0,"data-is-focusable":!this.props.target},n,m&&(d===Ud.expanding?s.createElement(ch,i({},b)):s.createElement(fh,i({},C))))},t.prototype._getTargetElement=function(e){switch(typeof e){case"string":return Q().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:Ud.expanding},t}(s.Component),vh=C(mh,(function(e){var t=e.className,n=e.theme;return{host:[$n($d,n).host,t]}}),void 0,{scope:"HoverCard"});!function(e){e[e.horizontal=0]="horizontal",e[e.vertical=1]="vertical"}(oh||(oh={}));var _h=function(e){var t;void 0===e&&(t={},e={getCachedMeasurement:function(e){if(e&&e.cacheKey&&t.hasOwnProperty(e.cacheKey))return t[e.cacheKey]},addMeasurementToCache:function(e,n){e.cacheKey&&(t[e.cacheKey]=n)}});var n,r=e;function o(e,t){var n=r.getCachedMeasurement(e);if(void 0!==n)return n;var i=t();return r.addMeasurementToCache(e,i),i}function a(e,t,i){for(var a=e,s=o(e,i);s>n;){var l=t(a);if(void 0===l)return{renderedData:a,resizeDirection:void 0,dataToMeasure:void 0};if(void 0===(s=r.getCachedMeasurement(l)))return{dataToMeasure:l,resizeDirection:"shrink"};a=l}return{renderedData:a,resizeDirection:void 0,dataToMeasure:void 0}}return{getNextState:function(e,t,s,l){if(void 0!==l||void 0!==t.dataToMeasure){if(l){if(n&&t.renderedData&&!t.dataToMeasure)return i(i({},t),function(e,t,r,o){var a;return a=e>n?o?{resizeDirection:"grow",dataToMeasure:o(r)}:{resizeDirection:"shrink",dataToMeasure:t}:{resizeDirection:"shrink",dataToMeasure:r},n=e,i(i({},a),{measureContainer:!1})}(l,e.data,t.renderedData,e.onGrowData));n=l}var u=i(i({},t),{measureContainer:!1});return t.dataToMeasure&&(u="grow"===t.resizeDirection&&e.onGrowData?i(i({},u),function(e,t,s,l){for(var u=e,c=o(e,s);c<n;){var d=t(u);if(void 0===d)return{renderedData:u,resizeDirection:void 0,dataToMeasure:void 0};if(void 0===(c=r.getCachedMeasurement(d)))return{dataToMeasure:d};u=d}return i({resizeDirection:"shrink"},a(u,l,s))}(t.dataToMeasure,e.onGrowData,s,e.onReduceData)):i(i({},u),a(t.dataToMeasure,e.onReduceData,s))),u}},shouldRenderDataForMeasurement:function(e){return!(!e||void 0!==r.getCachedMeasurement(e))},getInitialResizeGroupState:function(e){return{dataToMeasure:i({},e),resizeDirection:"grow",measureContainer:!0}}}},yh=s.createContext({isMeasured:!1}),xh={position:"fixed",visibility:"hidden"},bh={position:"relative"};function Ch(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 Eh={isMeasured:!0},kh=s.forwardRef((function(e,t){var n=s.useRef(null),r=Pt(n,t),o=function(e,t){var n=Tr(_h),r=s.useRef(null),o=s.useRef(null),a=s.useRef(!1),l=Tt(),u=function(e,t,n){var r=Tr((function(){return t.getInitialResizeGroupState(e.data)})),o=s.useReducer(Ch,r),a=o[0],l=o[1];s.useEffect((function(){l({type:"dataToMeasure",value:e.data})}),[e.data]);var u=s.useRef(r);return u.current=i({},a),[u,s.useCallback((function(e){e&&l({type:"resizeData",value:e})}),[]),s.useCallback((function(){n.current&&l({type:"measureContainer",value:!0})}),[n])]}(e,n,t),c=u[0],d=u[1],h=u[2];s.useEffect((function(){var t;c.current.renderedData&&(a.current=!0,null===(t=e.dataDidRender)||void 0===t||t.call(e,c.current.renderedData))})),s.useEffect((function(){l.requestAnimationFrame((function(){var i=void 0;if(c.current.measureContainer&&t.current){var s=t.current.getBoundingClientRect();i=e.direction===oh.vertical?s.height:s.width}var l=n.getNextState(e,c.current,(function(){var t=a.current?o:r;if(!t.current)return 0;var n=t.current.getBoundingClientRect();return e.direction===oh.vertical?n.height:n.width}),i);d(l)}),t.current)})),Mt(Ft(),"resize",l.debounce(h,16,{leading:!0}));var p=n.shouldRenderDataForMeasurement(c.current.dataToMeasure),f=!a.current&&p;return[c.current.dataToMeasure,c.current.renderedData,h,r,o,p,f]}(e,n),a=o[0],l=o[1],u=o[2],c=o[3],d=o[4],h=o[5],p=o[6];s.useImperativeHandle(e.componentRef,(function(){return{remeasure:u}}),[u]),function(e){gi({name:"ResizeGroup",props:e,deprecations:{styles:"className"}})}(e);var f=e.className,g=e.onRenderData,m=qe(e,Ye,["data"]);return s.createElement("div",i({},m,{className:f,ref:r}),s.createElement("div",{style:bh},h&&!p&&s.createElement("div",{style:xh,ref:d},s.createElement(yh.Provider,{value:Eh},g(a))),s.createElement("div",{ref:c,style:p?xh:void 0,"data-automation-id":"visibleContent"},p?g(a):l&&g(l))))}));kh.displayName="ResizeGroupBase";var Sh,Lh=kh;!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"}(Sh||(Sh={}));var Ah=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?Sh.PERSISTED_KEYTIP_ADDED:Sh.KEYTIP_ADDED;Qd.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||Qd.raise(this,Sh.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?Sh.PERSISTED_KEYTIP_REMOVED:Sh.KEYTIP_REMOVED;!this.inKeytipMode&&this.delayUpdatingKeytipChange||Qd.raise(this,r,{keytip:e,uniqueID:t})},e.prototype.enterKeytipMode=function(){Qd.raise(this,Sh.ENTER_KEYTIP_MODE)},e.prototype.exitKeytipMode=function(){Qd.raise(this,Sh.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){Qd.raise(this,Sh.PERSISTED_KEYTIP_EXECUTE,{overflowButtonSequences:e,keytipSequences:t})},e.prototype._getUniqueKtp=function(e,t){return void 0===t&&(t=ge()),{keytip:i({},e),uniqueID:t}},e._instance=new e,e}(),wh=function(e,t,n){for(var r=0,i=e;r<i.length;r++){var o=i[r];n[t.register(o,!0)]=o}},Dh=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]}},Th=function(e){var t=Ah.getInstance(),n=e.className,r=e.overflowItems,o=e.keytipSequences,a=e.itemSubMenuProvider,l=e.onRenderOverflowButton,u=Tr({}),c=s.useCallback((function(e){return a?a(e):e.subMenuProps?e.subMenuProps.items:void 0}),[a]),d=s.useMemo((function(){var e=[],n=[];return o?null==r||r.forEach((function(r){var a,s=r.keytipProps;if(s){var l={content:s.content,keySequences:s.keySequences,disabled:s.disabled||!(!r.disabled&&!r.isDisabled),hasDynamicChildren:s.hasDynamicChildren,hasMenu:s.hasMenu};s.hasDynamicChildren||c(r)?(l.onExecute=t.menuExecute.bind(t,o,null===(a=null==r?void 0:r.keytipProps)||void 0===a?void 0:a.keySequences),l.hasOverflowSubMenu=!0):l.onExecute=s.onExecute,e.push(l);var u=i(i({},r),{keytipProps:i(i({},s),{overflowSetSequence:o})});null==n||n.push(u)}else null==n||n.push(r)})):n=r,{modifiedOverflowItems:n,keytipsToRegister:e}}),[r,c,t,o]),h=d.modifiedOverflowItems;return function(e,t,n){var r=pi(e);s.useEffect((function(){r&&(Dh(n,r),wh(t,n,e))})),s.useEffect((function(){return wh(t,n,e),function(){Dh(n,e)}}),[])}(u,d.keytipsToRegister,t),s.createElement("div",{className:n},l(h))},Mh=ue(),Ph=s.forwardRef((function(e,t){var n=s.useRef(null),r=Pt(n,t);!function(e,t){s.useImperativeHandle(e.componentRef,(function(){return{focus:function(e,n){var r=!1;return t.current&&(r=Ee(t.current,n)),r},focusElement:function(e){var n=!1;return!!e&&(t.current&&Ce(t.current,e)&&(e.focus(),n=document.activeElement===e),n)}}}),[t])}(e,n);var o=e.items,a=e.overflowItems,l=e.className,u=e.styles,c=e.vertical,d=e.role,h=e.overflowSide,p=void 0===h?"end":h,f=e.onRenderItem,g=Mh(u,{className:l,vertical:c}),m=!!a&&a.length>0;return s.createElement("div",i({},qe(e,Ye),{role:d||"group","aria-orientation":"menubar"===d?!0===c?"vertical":"horizontal":void 0,className:g.root,ref:r}),"start"===p&&m&&s.createElement(Th,i({},e,{className:g.overflowButton})),o&&o.map((function(e,t){return s.createElement("div",{className:g.item,key:e.key,role:"none"},f(e))})),"end"===p&&m&&s.createElement(Th,i({},e,{className:g.overflowButton})))}));Ph.displayName="OverflowSet";var Nh,Fh={flexShrink:0,display:"inherit"},Ih=C(Ph,(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",Fh],overflowButton:["ms-OverflowSet-overflowButton",Fh]}}),void 0,{scope:"OverflowSet"}),Oh=((Nh={})[""+id[id.circle]]="M1 6 A5 5 0 1 0 12 6 M1 6 A5 5 0 0 1 12 6",Nh[""+id[id.square]]="M1 1 L12 1 L12 12 L1 12 L1 1 Z",Nh[""+id[id.triangle]]="M6 10L8.74228e-07 -1.04907e-06L12 0L6 10Z",Nh[""+id[id.pyramid]]="M6 10L8.74228e-07 -1.04907e-06L12 0L6 10Z",Nh[""+id[id.diamond]]="M2 2 L10 2 L10 10 L2 10 L2 2 Z",Nh[""+id[id.hexagon]]="M9 0H3L0 5L3 10H9L12 5L9 0Z",Nh[""+id[id.pentagon]]="M6.06061 0L0 4.21277L2.30303 11H9.69697L12 4.21277L6.06061 0Z",Nh[""+id[id.octagon]]="M7.08333 0H2.91667L0 2.91667V7.08333L2.91667 10H7.08333L10 7.08333V2.91667L7.08333 0Z",Nh[""+od[od.dottedLine]]="M0 6 H3 M5 6 H8 M10 6 H13",Nh),Vh=function(e){var t=e.svgProps,n=e.pathProps,r=e.shape,o=e.classNameForNonSvg;return-1===Object.keys(Oh).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.pyramid]?180:0)+", 0, 0)"}),s.createElement("path",i({d:Oh[r]},n)))},Hh=ue(),Rh=function(e){function t(t){var n=e.call(this,t)||this;return n._isLegendSelected=!1,n._onRenderData=function(e){var t=n.props,r=t.overflowProps,o=t.allowFocusOnLegends,a=void 0===o||o,l=t.canSelectMultipleLegends,u=void 0!==l&&l,c={root:{justifyContent:n.props.centerLegends?"center":"unset",flexWrap:"wrap"}};return s.createElement(Vd,i({},a&&{role:"listbox","aria-label":"Legends","aria-multiselectable":u}),s.createElement(Ih,i({items:e.primary,overflowItems:e.overflow,onRenderItem:n._renderButton,onRenderOverflowButton:n._renderOverflowItems},r,{styles:i(i({},c),null==r?void 0:r.styles)})))},n._onReduceData=function(e){if(0!==e.primary.length){var t=a(a([],e.primary.slice(-1)),e.overflow);return{primary:e.primary.slice(0,-1),overflow:t}}},n._onGrowData=function(e){if(0!==e.overflow.length){var t=e.overflow.slice(1);return{primary:a(a([],e.primary),e.overflow.slice(0,1)),overflow:t}}},n._canSelectMultipleLegends=function(e){var t=i({},n.state.selectedLegends);t[e.title]?delete t[e.title]:(t[e.title]=!0,Object.keys(t).length===n.props.legends.length&&(t={})),n.setState({selectedLegends:t})},n._canSelectOnlySingleLegend=function(e){n.state.selectedLegend===e.title?n.setState({selectedLegend:""}):n.setState({selectedLegend:e.title})},n._onClick=function(e){if(e.action){var t=n.props.canSelectMultipleLegends;void 0!==t&&t?n._canSelectMultipleLegends(e):n._canSelectOnlySingleLegend(e),e.action()}},n._onRenderCompactCard=function(e){var t=n.props,r=t.allowFocusOnLegends,o=void 0===r||r,a=t.className,l=t.styles,u=t.theme,c=t.canSelectMultipleLegends,d=void 0!==c&&c,h=[],p=Hh(l,{theme:u,className:a});return e.renderData.forEach((function(e,t){var r=n._renderButton(e,t,!0);h.push(r)})),s.createElement(Vd,i({},o&&{role:"listbox","aria-label":"Legends","aria-multiselectable":d},{direction:sd.vertical},n.props.focusZonePropsInHoverCard,{className:p.hoverCardRoot}),h)},n._renderOverflowItems=function(e){var t=n.props.allowFocusOnLegends,r=void 0===t||t,o=[];e.forEach((function(e,t){o.push({key:t.toString(),name:e.title,onClick:e.action})}));var a={renderData:e},l=n.props,u=l.theme,c=l.className,d=l.styles,h=l.overflowText,p=Hh(d,{theme:u,className:c}),f={onRenderPlainCard:n._onRenderCompactCard,renderData:a},g=h||"more";return s.createElement(vh,{type:Ud.plain,plainCardProps:f,instantOpenOnClick:!0,onCardHide:function(){n.setState({isHoverCardVisible:!1});var t=_e(e,(function(e){return e.title===n.state.activeLegend}));t&&(n.setState({activeLegend:""}),t.onMouseOutAction&&t.onMouseOutAction())},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:"button","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){e.hoverAction&&(n.setState({activeLegend:e.title}),e.hoverAction())},n._onLeave=function(e){e.onMouseOutAction&&(n.setState({activeLegend:""}),e.onMouseOutAction())},n._renderButton=function(e,t,r){var o=n.props.allowFocusOnLegends,a=void 0===o||o,l={title:e.title,color:e.color,shape:e.shape,action:e.action,hoverAction:e.hoverAction,onMouseOutAction:e.onMouseOutAction,stripePattern:e.stripePattern,isLineLegendInBarChart:e.isLineLegendInBarChart,opacity:e.opacity},u=n._getColor(l.title,l.color),c=n.props,d=c.theme,h=c.className,p=c.styles,f=c.canSelectMultipleLegends,g=void 0!==f&&f,m=Hh(p,{theme:d,className:h,colorOnSelectedState:u,borderColor:l.color,overflow:r,stripePattern:l.stripePattern,isLineLegendInBarChart:l.isLineLegendInBarChart,opacity:l.opacity}),v=function(){n._onHoverOverLegend(l)},_=function(){n._onLeave(l)},y=n._getShape(m,l,u);return s.createElement("button",i({},a&&{"aria-selected":g?!!n.state.selectedLegends[l.title]: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:m.legend,onClick:function(){n._onClick(l)},onMouseOver:v,onMouseOut:_,onFocus:v,onBlur:_,"data-is-focusable":a}),y,s.createElement("div",{className:m.text},l.title))},n.state={selectedLegend:"",activeLegend:"",isHoverCardVisible:!1,selectedLegends:{}},n}return r(t,e),t.prototype.render=function(){var e=this.props,t=e.theme,n=e.className,r=e.styles;this._classNames=Hh(r,{theme:t,className:n}),this._isLegendSelected=""!==this.state.selectedLegend||Object.keys(this.state.selectedLegends).length>0;var i=this._generateData();return s.createElement("div",{className:this._classNames.root},this.props.enabledWrapLines?this._onRenderData(i):s.createElement(Lh,{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:qe(t,Ue,["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(Vh,{svgProps:r,pathProps:i,shape:t.shape,classNameForNonSvg:e.rect})},t.prototype._getColor=function(e,t){var n=this.props.theme.palette;return this._isLegendSelected?this.state.selectedLegend===e||this.state.selectedLegends[e]?t:n.white:this.state.activeLegend===e||""===this.state.activeLegend?t:n.white},t}(s.Component),Bh=C(Rh,(function(e){var t,n,r=e.className,o=e.theme,a=e.isLineLegendInBarChart,s=void 0!==a&&a,l=o,u=l.palette,c=l.fonts,d={inset:void 0,position:void 0,highContrastStyle:{outlineColor:o.semanticColors.focusBorder},borderColor:"transparent",outlineColor:void 0};return{root:[{whiteSpace:"nowrap",width:"100%",alignItems:"center",margin:"-8px 0 0 -8px"},r],legend:[Hn(o,d),{display:"flex",alignItems:"center",cursor:"pointer",border:"none",padding:"8px",background:"none",textTransform:"capitalize"}],rect:{selectors:(t={},t[On]={content:"linear-gradient(to right, "+e.colorOnSelectedState+", "+e.colorOnSelectedState+")",opacity:e.colorOnSelectedState===u.white?"0.6":""},t),width:"12px",height:s?"4px":"12px",backgroundColor:e.stripePattern?"":e.colorOnSelectedState,marginRight:"8px",border:"1px solid",borderColor:e.borderColor?e.borderColor:null==o?void 0:o.semanticColors.buttonBorder,content:e.stripePattern?"repeating-linear-gradient(135deg, transparent, transparent 3px, "+e.colorOnSelectedState+" 1px, "+e.colorOnSelectedState+" 4px)":""},shape:[{marginRight:"8px"}],triangle:{width:"0",height:"0",borderLeft:"6px solid transparent",borderRight:"6px solid transparent",borderTop:"10.4px solid",borderTopColor:e.colorOnSelectedState,marginRight:"8px",opacity:e.colorOnSelectedState===u.white?"0.6":e.opacity?e.opacity:"",selectors:(n={},n[On]={border:"0px",height:"10.4px",width:"10.4px",clipPath:"polygon(50% 100%, 0 0, 100% 0)",backgroundImage:"linear-gradient(to right, "+e.colorOnSelectedState+", "+e.colorOnSelectedState+")"},n)},text:i(i({},c.small),{lineHeight:"16px",color:null==o?void 0:o.semanticColors.bodyText,opacity:e.colorOnSelectedState===u.white?"0.67":""}),hoverChange:{width:"12px",height:"12px",backgroundColor:"white",marginRight:"8px",border:"1px solid",borderColor:e.borderColor?e.borderColor:u.black},overflowIndicationTextStyle:[Hn(o,d),i(i({cursor:"pointer",color:null==o?void 0:o.semanticColors.bodyText},c.small),{lineHeight:"16px",padding:"8px"})],hoverCardRoot:{padding:"8px"},subComponentStyles:{hoverCardStyles:{host:[Hn(o,d)]}}}}));function Wh(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function zh(e){return function(){return e}}function Uh(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function Yh(e){return e}Array.prototype.slice;var qh=Math.abs,jh=Math.atan2,Xh=Math.cos,Kh=Math.max,Gh=Math.min,Zh=Math.sin,$h=Math.sqrt,Qh=1e-12,Jh=Math.PI,ep=Jh/2,tp=2*Jh;function np(e){return e>1?0:e<-1?Jh:Math.acos(e)}function rp(e){return e>=1?ep:e<=-1?-ep:Math.asin(e)}function ip(){var e=Yh,t=Uh,n=null,r=zh(0),i=zh(tp),o=zh(0);function a(a){var s,l,u,c,d,h=(a=Wh(a)).length,p=0,f=new Array(h),g=new Array(h),m=+r.apply(this,arguments),v=Math.min(tp,Math.max(-tp,i.apply(this,arguments)-m)),_=Math.min(Math.abs(v)/h,o.apply(this,arguments)),y=_*(v<0?-1:1);for(s=0;s<h;++s)(d=g[f[s]=s]=+e(a[s],s,a))>0&&(p+=d);for(null!=t?f.sort((function(e,n){return t(g[e],g[n])})):null!=n&&f.sort((function(e,t){return n(a[e],a[t])})),s=0,u=p?(v-h*y)/p:0;s<h;++s,m=c)l=f[s],c=m+((d=g[l])>0?d*u:0)+y,g[l]={data:a[l],index:s,value:d,startAngle:m,endAngle:c,padAngle:_};return g}return a.value=function(t){return arguments.length?(e="function"==typeof t?t:zh(+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:zh(+e),a):r},a.endAngle=function(e){return arguments.length?(i="function"==typeof e?e:zh(+e),a):i},a.padAngle=function(e){return arguments.length?(o="function"==typeof e?e:zh(+e),a):o},a}var op=Math.PI,ap=2*op,sp=1e-6,lp=ap-sp;function up(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function cp(){return new up}up.prototype=cp.prototype={constructor:up,moveTo:function(e,t){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(e,t){this._+="L"+(this._x1=+e)+","+(this._y1=+t)},quadraticCurveTo:function(e,t,n,r){this._+="Q"+ +e+","+ +t+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(e,t,n,r,i,o){this._+="C"+ +e+","+ +t+","+ +n+","+ +r+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(e,t,n,r,i){e=+e,t=+t,n=+n,r=+r,i=+i;var o=this._x1,a=this._y1,s=n-e,l=r-t,u=o-e,c=a-t,d=u*u+c*c;if(i<0)throw new Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(d>sp)if(Math.abs(c*s-l*u)>sp&&i){var h=n-o,p=r-a,f=s*s+l*l,g=h*h+p*p,m=Math.sqrt(f),v=Math.sqrt(d),_=i*Math.tan((op-Math.acos((f+d-g)/(2*m*v)))/2),y=_/v,x=_/m;Math.abs(y-1)>sp&&(this._+="L"+(e+y*u)+","+(t+y*c)),this._+="A"+i+","+i+",0,0,"+ +(c*h>u*p)+","+(this._x1=e+x*s)+","+(this._y1=t+x*l)}else this._+="L"+(this._x1=e)+","+(this._y1=t)},arc:function(e,t,n,r,i,o){e=+e,t=+t;var a=(n=+n)*Math.cos(r),s=n*Math.sin(r),l=e+a,u=t+s,c=1^o,d=o?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+l+","+u:(Math.abs(this._x1-l)>sp||Math.abs(this._y1-u)>sp)&&(this._+="L"+l+","+u),n&&(d<0&&(d=d%ap+ap),d>lp?this._+="A"+n+","+n+",0,1,"+c+","+(e-a)+","+(t-s)+"A"+n+","+n+",0,1,"+c+","+(this._x1=l)+","+(this._y1=u):d>sp&&(this._+="A"+n+","+n+",0,"+ +(d>=op)+","+c+","+(this._x1=e+n*Math.cos(i))+","+(this._y1=t+n*Math.sin(i))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};var dp=cp;function hp(e){return e.innerRadius}function pp(e){return e.outerRadius}function fp(e){return e.startAngle}function gp(e){return e.endAngle}function mp(e){return e&&e.padAngle}function vp(e,t,n,r,i,o,a,s){var l=n-e,u=r-t,c=a-i,d=s-o,h=d*l-c*u;if(!(h*h<Qh))return[e+(h=(c*(t-o)-d*(e-i))/h)*l,t+h*u]}function _p(e,t,n,r,i,o,a){var s=e-n,l=t-r,u=(a?o:-o)/$h(s*s+l*l),c=u*l,d=-u*s,h=e+c,p=t+d,f=n+c,g=r+d,m=(h+f)/2,v=(p+g)/2,_=f-h,y=g-p,x=_*_+y*y,b=i-o,C=h*g-f*p,E=(y<0?-1:1)*$h(Kh(0,b*b*x-C*C)),k=(C*y-_*E)/x,S=(-C*_-y*E)/x,L=(C*y+_*E)/x,A=(-C*_+y*E)/x,w=k-m,D=S-v,T=L-m,M=A-v;return w*w+D*D>T*T+M*M&&(k=L,S=A),{cx:k,cy:S,x01:-c,y01:-d,x11:k*(i/b-1),y11:S*(i/b-1)}}function yp(){var e=hp,t=pp,n=zh(0),r=null,i=fp,o=gp,a=mp,s=null;function l(){var l,u,c=+e.apply(this,arguments),d=+t.apply(this,arguments),h=i.apply(this,arguments)-ep,p=o.apply(this,arguments)-ep,f=qh(p-h),g=p>h;if(s||(s=l=dp()),d<c&&(u=d,d=c,c=u),d>Qh)if(f>tp-Qh)s.moveTo(d*Xh(h),d*Zh(h)),s.arc(0,0,d,h,p,!g),c>Qh&&(s.moveTo(c*Xh(p),c*Zh(p)),s.arc(0,0,c,p,h,g));else{var m,v,_=h,y=p,x=h,b=p,C=f,E=f,k=a.apply(this,arguments)/2,S=k>Qh&&(r?+r.apply(this,arguments):$h(c*c+d*d)),L=Gh(qh(d-c)/2,+n.apply(this,arguments)),A=L,w=L;if(S>Qh){var D=rp(S/c*Zh(k)),T=rp(S/d*Zh(k));(C-=2*D)>Qh?(x+=D*=g?1:-1,b-=D):(C=0,x=b=(h+p)/2),(E-=2*T)>Qh?(_+=T*=g?1:-1,y-=T):(E=0,_=y=(h+p)/2)}var M=d*Xh(_),P=d*Zh(_),N=c*Xh(b),F=c*Zh(b);if(L>Qh){var I,O=d*Xh(y),V=d*Zh(y),H=c*Xh(x),R=c*Zh(x);if(f<Jh&&(I=vp(M,P,H,R,O,V,N,F))){var B=M-I[0],W=P-I[1],z=O-I[0],U=V-I[1],Y=1/Zh(np((B*z+W*U)/($h(B*B+W*W)*$h(z*z+U*U)))/2),q=$h(I[0]*I[0]+I[1]*I[1]);A=Gh(L,(c-q)/(Y-1)),w=Gh(L,(d-q)/(Y+1))}}E>Qh?w>Qh?(m=_p(H,R,M,P,d,w,g),v=_p(O,V,N,F,d,w,g),s.moveTo(m.cx+m.x01,m.cy+m.y01),w<L?s.arc(m.cx,m.cy,w,jh(m.y01,m.x01),jh(v.y01,v.x01),!g):(s.arc(m.cx,m.cy,w,jh(m.y01,m.x01),jh(m.y11,m.x11),!g),s.arc(0,0,d,jh(m.cy+m.y11,m.cx+m.x11),jh(v.cy+v.y11,v.cx+v.x11),!g),s.arc(v.cx,v.cy,w,jh(v.y11,v.x11),jh(v.y01,v.x01),!g))):(s.moveTo(M,P),s.arc(0,0,d,_,y,!g)):s.moveTo(M,P),c>Qh&&C>Qh?A>Qh?(m=_p(N,F,O,V,c,-A,g),v=_p(M,P,H,R,c,-A,g),s.lineTo(m.cx+m.x01,m.cy+m.y01),A<L?s.arc(m.cx,m.cy,A,jh(m.y01,m.x01),jh(v.y01,v.x01),!g):(s.arc(m.cx,m.cy,A,jh(m.y01,m.x01),jh(m.y11,m.x11),!g),s.arc(0,0,c,jh(m.cy+m.y11,m.cx+m.x11),jh(v.cy+v.y11,v.cx+v.x11),g),s.arc(v.cx,v.cy,A,jh(v.y11,v.x11),jh(v.y01,v.x01),!g))):s.arc(0,0,c,b,x,g):s.lineTo(N,F)}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-Jh/2;return[Xh(r)*n,Zh(r)*n]},l.innerRadius=function(t){return arguments.length?(e="function"==typeof t?t:zh(+t),l):e},l.outerRadius=function(e){return arguments.length?(t="function"==typeof e?e:zh(+e),l):t},l.cornerRadius=function(e){return arguments.length?(n="function"==typeof e?e:zh(+e),l):n},l.padRadius=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:zh(+e),l):r},l.startAngle=function(e){return arguments.length?(i="function"==typeof e?e:zh(+e),l):i},l.endAngle=function(e){return arguments.length?(o="function"==typeof e?e:zh(+e),l):o},l.padAngle=function(e){return arguments.length?(a="function"==typeof e?e:zh(+e),l):a},l.context=function(e){return arguments.length?(s=null==e?null:e,l):s},l}var xp=function(e){var t=e.color,n=e.href,r=e.theme;return{root:{fill:t,cursor:n?"pointer":"default",stroke:Fn.white,outline:"transparent",selectors:{"::-moz-focus-inner":{border:"0"}}},focusRing:{stroke:r.semanticColors.focusBorder,strokeWidth:4,fill:"transparent"},arcLabel:{fontSize:Tn.small,fontWeight:Mn.semibold,fill:r.palette.neutralPrimary}}},bp=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={},t.currentRef=s.createRef(),t._isRTL=oe(),t._hoverOff=function(){t.props.hoverLeaveCallback()},t._onBlur=function(){t.props.onBlurCallback()},t._getAriaLabel=function(){var e,n=t.props.data.data,r=n.xAxisCalloutData||n.legend,i=n.yAxisCalloutData||n.data||0;return(null===(e=n.callOutAccessibilityData)||void 0===e?void 0:e.ariaLabel)||(r?r+", ":"")+i+"."},t._renderArcLabel=function(e){var n=t.props,r=n.arc,i=n.data,o=n.innerRadius,a=n.outerRadius,l=n.showLabelsInPercent,u=n.totalValue;if(n.hideLabels||Math.abs(i.endAngle-i.startAngle)<Math.PI/12)return null;var c=r.centroid(i),d=c[0],h=c[1],p=Math.sqrt(d*d+h*h),f=Math.max(o,a)+2,g=(i.startAngle+i.endAngle)/2,m=i.value;return s.createElement("text",{x:(0===p?0:d/p)*f,y:(0===p?0:h/p)*f,textAnchor:g>Math.PI!==t._isRTL?"end":"start",dominantBaseline:g>Math.PI/2&&g<3*Math.PI/2?"hanging":"auto",className:e,"aria-hidden":!0},l?ha(".0%")(0===u?0:m/u):pa(m<1e3?".2~":".1",m)(m))},t}return r(t,e),t.getDerivedStateFromProps=function(e){return Cp(e),null},t.prototype.updateChart=function(e){Cp(e)},t.prototype.render=function(){var e,t=this.props,n=t.arc,r=t.href,i=t.focusedArcId,o=ue()(xp,{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-label":this._getAriaLabel(),role:"img"}),this._renderArcLabel(o.arcLabel))},t.prototype._onFocus=function(e,t){this.props.onFocusCallback(e,t,this.currentRef.current)},t.prototype._hoverOn=function(e,t){t.persist(),this.props.hoverOnCallback(e,t)},t.prototype._redirectToUrl=function(e){e&&(window.location.href=e)},t.defaultProps={arc:yp()},t}(s.Component);function Cp(e){e.arc.innerRadius(e.innerRadius),e.arc.outerRadius(e.outerRadius)}var Ep=function(e){var t,n=e.theme;return{root:{},insideDonutString:{fontSize:Tn.xLargePlus,fontWeight:Mn.semibold,fill:n.semanticColors.bodyText,selectors:(t={},t[Vn]={fill:"rgb(179, 179, 179)"},t)}}},kp=ue(),Sp=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(bp,{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,showLabelsInPercent:n.props.showLabelsInPercent,totalValue:n._totalValue,hideLabels:n.props.hideLabels})},n._focusCallback=function(e,t,r){n.props.onFocusCallback(e,t,r)},n._computeTotalValue=function(){var e=0;return n.props.data.forEach((function(t){e+=t.data})),e},n._hoverCallback=n._hoverCallback.bind(n),n._pieForFocusRing=ip().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+")",l=kp(Ep,{theme:this.props.theme});return this._totalValue=this._computeTotalValue(),s.createElement("g",{transform:a},o.map((function(t,n){return e.arcGenerator(t,n,i[n],e.props.href)})),this.props.valueInsideDonut&&s.createElement("text",{y:5,textAnchor:"middle",dominantBaseline:"middle",className:l.insideDonutString,"data-is-focusable":!0},this.props.valueInsideDonut))},t.prototype.componentDidUpdate=function(){var e,t,n;e=kp(Ep,{theme:this.props.theme}).insideDonutString,t=2*this.props.innerRadius-5,n=0,Rc("."+e).each((function(){for(var e=Ic(this),r=e.text().split(/\s+/).reverse(),i="",o=[],a=0,s=e.attr("y"),l=e.text(null).append("tspan").attr("id","WordBreakId-"+n+"-"+a).attr("x",0).attr("y",s).attr("dy",1.1*a+++"em");i=r.pop();)o.push(i),l.text(o.join(" ")+" "),l.node().getComputedTextLength()>t&&o.length>1&&(o.pop(),l.text(o.join(" ")+" "),o=[i],l=e.append("tspan").attr("id","WordBreakId-"+n+"-"+a).attr("x",0).attr("y",s).attr("dy",1.1*a+++"em").text(i));n+=1}))},t.prototype._hoverCallback=function(e,t){this.props.hoverOnCallback(e,t)},t.defaultProps={pie:ip().sort(null).value((function(e){return e.data})).padAngle(.02)},t}(s.Component),Lp=ue(),Ap=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:""===n.state.selectedLegend||n.state.selectedLegend===e.legend,value:e.data.toString(),legend:e.legend,color:e.color,xCalloutValue:e.xAxisCalloutData,yCalloutValue:e.yAxisCalloutData,focusedArcId:t,dataPointCalloutProps:e,callOutAccessibilityData:e.callOutAccessibilityData})},n._hoverCallback=function(e,t){n._calloutAnchorPoint!==e&&(n._calloutAnchorPoint=e,n._currentHoverElement=t,n.setState({showHover:""===n.state.selectedLegend||n.state.selectedLegend===e.legend,value:e.data.toString(),legend:e.legend,color:e.color,xCalloutValue:e.xAxisCalloutData,yCalloutValue:e.yAxisCalloutData,dataPointCalloutProps:e,callOutAccessibilityData:e.callOutAccessibilityData}))},n._onBlur=function(){n.setState({focusedArcId:""})},n._handleChartMouseLeave=function(){n._calloutAnchorPoint=null,n.setState({showHover:!1})},n.state={showHover:!1,value:"",legend:"",_width:n.props.width||200,_height:n.props.height||200,activeLegend:"",color:"",xCalloutValue:"",yCalloutValue:"",selectedLegend:"",focusedArcId:""},n._hoverCallback=n._hoverCallback.bind(n),n._focusCallback=n._focusCallback.bind(n),n._hoverLeave=n._hoverLeave.bind(n),n._calloutId=ge("callout"),n._uniqText=ge("_Pie_"),n}return r(t,e),t.getDerivedStateFromProps=function(e,t){var n,r;return e.width&&e.width!==t._width&&(n={_width:e.width}),e.height&&e.height!==t._height&&(r={_height:e.height-40}),i(i({},n),r)},t.prototype.componentDidMount=function(){this._rootElem&&this.setState({_width:this._rootElem.offsetWidth,_height:this._rootElem.offsetHeight-40})},t.prototype.render=function(){var e,t=this,n=this.props,r=n.data,o=n.hideLegend,a=void 0!==o&&o,l=this.props.theme.palette;this._classNames=Lp(this.props.styles,{theme:this.props.theme,width:this.state._width,height:this.state._height,color:this.state.color,className:this.props.className});var u=this._createLegends(r,l),c=this.props.hideLabels?0:80,d=this.props.hideLabels?0:40,h=Math.min(this.state._width-c,this.state._height-d)/2,p=r&&(null===(e=r.chartData)||void 0===e?void 0:e.filter((function(e){return e.data>0}))),f=this._valueInsideDonut(this.props.valueInsideDonut,p);return s.createElement("div",{className:this._classNames.root,ref:function(e){return t._rootElem=e},onMouseLeave:this._handleChartMouseLeave},s.createElement(Vd,{direction:sd.horizontal,handleTabKey:1},s.createElement("div",null,s.createElement("svg",{className:this._classNames.chart,"aria-label":null==r?void 0:r.chartTitle,ref:function(e){return t._setViewBox(e)}},s.createElement(Sp,{width:this.state._width,height:this.state._height,outerRadius:h,innerRadius:this.props.innerRadius,data:p,onFocusCallback:this._focusCallback,hoverOnCallback:this._hoverCallback,hoverLeaveCallback:this._hoverLeave,uniqText:this._uniqText,onBlurCallback:this._onBlur,activeArc:this._getHighlightedLegend(),focusedArcId:this.state.focusedArcId||"",href:this.props.href,calloutId:this._calloutId,valueInsideDonut:this._toLocaleString(f),theme:this.props.theme,showLabelsInPercent:this.props.showLabelsInPercent,hideLabels:this.props.hideLabels})))),s.createElement(Ci,i({target:this._currentHoverElement,alignTargetEdge:!0,isBeakVisible:!1,directionalHint:3,gapSpace:15,hidden:!(!this.props.hideTooltip&&this.state.showHover),id:this._calloutId,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0,shouldUpdateWhenHidden:!0},this.props.calloutProps,ud(this.state.callOutAccessibilityData,"text",!1)),this.props.onRenderCalloutPerDataPoint?this.props.onRenderCalloutPerDataPoint(this.state.dataPointCalloutProps):s.createElement(fd,{Legend:this.state.xCalloutValue?this.state.xCalloutValue:this.state.legend,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.value,color:this.state.color,culture:this.props.culture})),!a&&s.createElement("div",{className:this._classNames.legendContainer},u))},t.prototype._setViewBox=function(e){var t,n;if(null!==e){var r="0 0 "+(e.parentElement?e.parentElement.clientWidth:this.state._width)+" "+(e.parentElement&&(null===(t=e.parentElement)||void 0===t?void 0:t.offsetHeight)>this.state._height?null===(n=e.parentElement)||void 0===n?void 0:n.offsetHeight:this.state._height);e.setAttribute("viewBox",r)}},t.prototype._createLegends=function(e,t){var n=this,r=[t.blueLight,t.blue,t.blueMid,t.red,t.black],o=e&&e.chartData.map((function(e,t){var i=e.color?e.color:r[Math.floor(4*Math.random()+1)];return{title:e.legend,color:i,action:function(){n.state.selectedLegend===e.legend?n.setState({selectedLegend:""}):n.setState({selectedLegend:e.legend})},hoverAction:function(){n._handleChartMouseLeave(),n.setState({activeLegend:e.legend})},onMouseOutAction:function(){n.setState({activeLegend:""})}}}));return s.createElement(Bh,i({legends:o,centerLegends:!0,overflowProps:this.props.legendsOverflowProps,focusZonePropsInHoverCard:this.props.focusZonePropsForLegendsInHoverCard,overflowText:this.props.legendsOverflowText},this.props.legendProps))},t.prototype._hoverLeave=function(){},t.prototype._valueInsideDonut=function(e,t){var n=this._getHighlightedLegend();if(void 0===e||""===n||this.state.showHover)return e;var r=e;return t.map((function(e,t){e.legend===n&&(r=e.yAxisCalloutData?e.yAxisCalloutData:e.data)})),r},t.prototype._toLocaleString=function(e){var t=cd(e,this.props.culture);return t?null==t?void 0:t.toString():e},t.prototype._getHighlightedLegend=function(){return this.state.selectedLegend||this.state.activeLegend},t.defaultProps={innerRadius:0,hideLabels:!0},t}(s.Component),wp=C(Ap,(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",display:"block"},legendContainer:{paddingTop:"16px",width:n+"px"}}}));function Dp(e){this._context=e}function Tp(e){return new Dp(e)}function Mp(e){return e[0]}function Pp(e){return e[1]}function Np(e,t){var n=zh(!0),r=null,i=Tp,o=null;function a(a){var s,l,u,c=(a=Wh(a)).length,d=!1;for(null==r&&(o=i(u=dp())),s=0;s<=c;++s)!(s<c&&n(l=a[s],s,a))===d&&((d=!d)?o.lineStart():o.lineEnd()),d&&o.point(+e(l,s,a),+t(l,s,a));if(u)return o=null,u+""||null}return e="function"==typeof e?e:void 0===e?Mp:zh(e),t="function"==typeof t?t:void 0===t?Pp:zh(t),a.x=function(t){return arguments.length?(e="function"==typeof t?t:zh(+t),a):e},a.y=function(e){return arguments.length?(t="function"==typeof e?e:zh(+e),a):t},a.defined=function(e){return arguments.length?(n="function"==typeof e?e:zh(!!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}Dp.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)}}};var Fp=ue(),Ip=function(e){function t(t){var n,r,o,a,l,u,c,d,h,p,f,g,m=e.call(this,t)||this;return m.minLegendContainerHeight=32,m._isRtl=oe(),m._multiValueCallout=function(e){var t=m._yValueHoverSubCountsExists(e.YValueHover);return s.createElement("div",{className:m._classNames.calloutContentRoot},s.createElement("div",{className:m._classNames.calloutDateTimeContainer,style:t?{marginBottom:"11px"}:{}},s.createElement("div",i({className:m._classNames.calloutContentX},ud(e.xAxisCalloutAccessibilityData,"text",!1)),cd(e.hoverXValue,m.props.culture))),s.createElement("div",{className:m._classNames.calloutInfoContainer,style:t?{display:"flex"}:{}},e.YValueHover&&e.YValueHover.map((function(e,n,r){var o=n+1===r.length,a=e.shouldDrawBorderBottom,l=void 0!==a&&a;return s.createElement("div",i({},ud(e.callOutAccessibilityData,"text",!1),{key:"callout-content-"+n,style:i(t?{display:"inline-block"}:{},l&&{borderBottom:"1px solid "+m.props.theme.semanticColors.menuDivider,paddingBottom:"10px"})}),m._getCalloutContent(e,n,t,o))})),!!e.descriptionMessage&&s.createElement("div",{className:m._classNames.descriptionMessage},e.descriptionMessage)))},m._getData=function(e,t){m.props.getGraphData&&m.props.getGraphData(e,t,m.state.containerHeight-m.state._removalValueForTextTuncate,m.state.containerWidth,m.xAxisElement)},m.state={containerHeight:0,containerWidth:0,_width:m.props.width||600,_height:m.props.height||350,_removalValueForTextTuncate:0,isRemoveValCalculated:!0},m.idForGraph=ge("chart_"),m.margins={top:null!==(r=null===(n=m.props.margins)||void 0===n?void 0:n.top)&&void 0!==r?r:20,bottom:null!==(a=null===(o=m.props.margins)||void 0===o?void 0:o.bottom)&&void 0!==a?a:35,right:m._isRtl?null!==(u=null===(l=m.props.margins)||void 0===l?void 0:l.left)&&void 0!==u?u:40:null!==(d=null===(c=m.props.margins)||void 0===c?void 0:c.right)&&void 0!==d?d:20,left:m._isRtl?null!==(p=null===(h=m.props.margins)||void 0===h?void 0:h.right)&&void 0!==p?p:20:null!==(g=null===(f=m.props.margins)||void 0===f?void 0:f.left)&&void 0!==g?g:40},m}return r(t,e),t.prototype.componentDidMount=function(){this._fitParentContainer()},t.prototype.componentWillUnmount=function(){cancelAnimationFrame(this._reqID)},t.prototype.componentDidUpdate=function(e){if(e.height===this.props.height&&e.width===this.props.width||this._fitParentContainer(),!this.props.wrapXAxisLables&&this.props.rotateXAxisLables&&this.props.xAxisType===zc.StringAxis){var t=function(e){var t=e.node,n=e.xAxis;if(null!==t&&null!==n){var r=0,i=[];Ic(t).call(n).selectAll(".tick").each((function(){var e=this.getAttribute("transform");if(-1===(null==e?void 0:e.indexOf("rotate"))){var t=e.substring(e.indexOf("(")+1,e.indexOf(")")).split(",");2===t.length&&(i.push(t[0]),this.setAttribute("transform","translate("+t[0]+",0)rotate(-45)"))}var n=this.getBoundingClientRect(),o=n&&n.height;o>r&&(r=o)}));var o=0;return Ic(t).call(n).selectAll(".tick").each((function(){i.length>o&&(this.setAttribute("transform","translate("+i[o]+","+r/2+")rotate(-45)"),o+=1)})),Math.floor(r/1.414)}}({node:this.xAxisElement,xAxis:this._xScale});this.state.isRemoveValCalculated&&this.state._removalValueForTextTuncate!==t+this.margins.bottom&&t>0&&this.setState({_removalValueForTextTuncate:t+this.margins.bottom,isRemoveValCalculated:!1})}},t.prototype.render=function(){var e=this,t=this.props,n=t.calloutProps,r=t.points,o=t.chartType,a=t.chartHoverProps,l=t.svgFocusZoneProps,u=t.svgProps,c=t.culture,d=t.dateLocalizeOptions,h=t.timeFormatLocale,p=t.customDateTimeFormatter;this.props.parentRef&&this._fitParentContainer(),this.props.getmargins&&this.props.getmargins(this.margins);var f,g,m={domainNRangeValues:nd(r,this.props.getDomainMargins?this.props.getDomainMargins(this.state.containerWidth):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,xAxisInnerPadding:this.props.xAxisInnerPadding,xAxisOuterPadding:this.props.xAxisOuterPadding},v={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 zc.NumericAxis:f=Qc(m,c);break;case zc.DateAxis:f=function(e,t,n,r,i,o){var a=e.domainNRangeValues,s=e.xAxisElement,l=e.tickPadding,u=void 0===l?6:l,c=e.xAxistickSize,d=void 0===c?6:c,h=e.xAxisCount,p=void 0===h?6:h,f=function(){return ta.apply(vu(ms,vs,Ka,ja,Ha,Oa,Fa,Pa,Ta,tl).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}().domain([a.dStartValue,a.dEndValue]).range([a.rStartValue,a.rEndValue]),g=Ni(f).tickSize(d).tickPadding(u).ticks(p);if(o)g.tickFormat((function(e,t){return o(e)}));else if(n&&r)g.tickFormat((function(e,t){return e.toLocaleString(n,r)}));else if(i){var m=Js(i);g.tickFormat((function(e,t){return function(e,t){var n=t.format(".%L"),r=t.format(":%S"),i=t.format("%I:%M"),o=t.format("%I %p"),a=t.format("%a %d"),s=t.format("%b %d"),l=t.format("%B"),u=t.format("%Y");return(qc(e)<e?n:Xc(e)<e?r:Gc(e)<e?i:qs(e)<e?o:$c(e)<e?Vs(e)<e?a:s:Xs(e)<e?l:u)(e)}(e,m)}))}return t.tickValues&&g.tickValues(t.tickValues),void 0===n&&t.tickFormat&&g.tickFormat(tl(t.tickFormat)),s&&Ic(s).call(g).selectAll("text").attr("aria-hidden","true"),f}(m,this.props.tickParams,c,d,h,p);break;case zc.StringAxis:f=function(e,t,n,r){var i=e.domainNRangeValues,o=e.xAxisCount,a=void 0===o?6:o,s=e.xAxistickSize,l=void 0===s?6:s,u=e.tickPadding,c=void 0===u?10:u,d=e.xAxisPadding,h=void 0===d?.1:d,p=e.xAxisInnerPadding,f=e.xAxisOuterPadding,g=ku().domain(n).range([i.rStartValue,i.rEndValue]).paddingInner(void 0!==p?p:h).paddingOuter(void 0!==f?f:h),m=Ni(g).tickSize(l).tickPadding(c).ticks(a).tickFormat((function(e,t){return cd(n[t],r)}));return e.xAxisElement&&Ic(e.xAxisElement).call(m).selectAll("text").attr("aria-hidden","true"),g}(m,this.props.tickParams,this.props.datasetForXAxisDomain,c);break;default:f=Qc(m,c)}if(this._xScale=f,this.props.wrapXAxisLables||this.props.showXAxisLablesTooltip){var _={node:this.xAxisElement,xAxis:f,showXAxisLablesTooltip:this.props.showXAxisLablesTooltip||!1,noOfCharsToTruncate:this.props.noOfCharsToTruncate||4},y=f&&function(e){var t=e.node,n=e.xAxis,r=e.noOfCharsToTruncate,i=e.showXAxisLablesTooltip;if(null!==t){var o=Ic(t).call(n),a=0,s=[];return o.selectAll(".tick text").each((function(){var e=Ic(this),t=e.text(),n=e.text().slice(0,r)+"...",l=e.text().length,u=e.text().split(/\s+/).reverse();s.push(u.length);var c="",d=[],h=0,p=e.attr("y"),f=parseFloat(e.attr("dy")),g=e.text(null).append("tspan").attr("x",0).attr("y",p).attr("id","BaseSpan").attr("dy",f+"em").attr("data-",t);if(i&&l>r)g=e.append("tspan").attr("id","showDots").attr("x",0).attr("y",p).attr("dy",1.1*++h+f+"em").text(n);else if(i&&l<=r)g=e.append("tspan").attr("id","LessLength").attr("x",0).attr("y",p).attr("dy",1.1*++h+f+"em").text(t);else{for(;c=u.pop();)d.push(c),g.text(d.join(" ")),g.node().getComputedTextLength()>10&&d.length>1&&(d.pop(),g.text(d.join(" ")),d=[c],g=e.append("tspan").attr("id","WordBreakId").attr("x",0).attr("y",p).attr("dy",1.1*++h+f+"em").text(c));var m=Math.max.apply(Math,s),v=12;o.selectAll("text").each((function(){var e=document.getElementById("WordBreakId"),t=e&&e.getBoundingClientRect(),n=t&&t.height;n>v&&(v=n)}));var _=4;m<=2?_=1:m>2&&m<=6?_=2:m>6&&m<=9&&(_=3),a=(m-_)*v}})),a>0?a:0}}(_);this.state.isRemoveValCalculated&&this.state._removalValueForTextTuncate!==y&&this.setState({_removalValueForTextTuncate:y,isRemoveValCalculated:!1})}var x={yAxisDomainValues:[]};g=this.props.yAxisType&&this.props.yAxisType===Uc.StringAxis?function(e,t,n){var r=e.containerHeight,i=e.tickPadding,o=void 0===i?12:i,a=e.margins,s=e.yAxisTickFormat,l=e.yAxisElement,u=e.yAxisPadding,c=void 0===u?0:u,d=ku().domain(t).range([r-a.bottom,a.top]).padding(c),h=(n?Pi(d):Fi(d)).tickPadding(o).tickValues(t).tickSize(0);return s&&h.tickFormat(s),l&&Ic(l).call(h).selectAll("text"),d}(v,this.props.stringDatasetForYAxisDomain,this._isRtl):function(e,t,n){var r=e.yMinMaxValues,i=void 0===r?{startValue:0,endValue:0}:r,o=e.yAxisElement,a=void 0===o?null:o,s=e.yMaxValue,l=void 0===s?0:s,u=e.yMinValue,c=void 0===u?0:u,d=e.containerHeight,h=e.containerWidth,p=e.margins,f=e.tickPadding,g=void 0===f?12:f,m=e.maxOfYVal,v=void 0===m?0:m,_=e.yAxisTickFormat,y=e.yAxisTickCount,x=void 0===y?4:y,b=e.eventAnnotationProps,C=e.eventLabelHeight,E=v||i.endValue,k=E>l?E:l,S=i.startValue<c?0:c,L=function(e,t,n){for(var r=Math.ceil((e-t)/n),i=[t,t+r];i[i.length-1]<e;)i.push(i[i.length-1]+r);return i}(k,S,x),A=va().domain([S,L[L.length-1]]).range([d-p.bottom,p.top+(b?C:0)]),w=(t?Pi(A):Fi(A)).tickPadding(g).tickValues(L).tickSizeInner(-(h-p.left-p.right));return _?w.tickFormat(_):w.tickFormat(ha(".2~s")),a&&Ic(a).call(w).selectAll("text").attr("aria-hidden","true"),n.yAxisDomainValues=L,A}(v,this._isRtl,x),this.props.getAxisData&&this.props.getAxisData(x),this._getData(f,g),this._classNames=Fp(this.props.styles,{theme:this.props.theme,width:this.state._width,height:this.state._height,className:this.props.className,isRtl:this._isRtl});var b,C={width:this.state.containerWidth,height:this.state.containerHeight},E=this.props.children(i(i({},this.state),{xScale:f,yScale:g}));return b=this.props.focusZoneDirection===sd.vertical||this.props.focusZoneDirection?this.props.focusZoneDirection:sd.horizontal,s.createElement("div",{id:this.idForGraph,className:this._classNames.root,role:"presentation",ref:function(t){return e.chartContainer=t},onMouseLeave:this.props.onChartMouseLeave},s.createElement(Vd,i({direction:b},l),s.createElement("svg",i({width:C.width,height:C.height,"aria-label":this.props.chartTitle,style:{display:"block"}},u),s.createElement("g",{ref:function(t){e.xAxisElement=t},id:"xAxisGElement"+this.idForGraph,transform:"translate(0, "+(C.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?C.width-this.margins.right:this.margins.left)+", 0)",className:this._classNames.yAxis}),E)),!this.props.hideLegend&&s.createElement("div",{ref:function(t){return e.legendContainer=t},className:this._classNames.legendContainer},this.props.legendBars),s.createElement(Ci,i({hidden:!(!this.props.hideTooltip&&n.isCalloutVisible),shouldUpdateWhenHidden:!0},n),this.props.customizedCallout&&this.props.customizedCallout,!this.props.customizedCallout&&this.props.isCalloutForStack&&this._multiValueCallout(n),!this.props.customizedCallout&&!this.props.isCalloutForStack&&s.createElement(fd,i({XValue:n.XValue,Legend:n.legend,YValue:n.YValue,color:n.color,culture:this.props.culture},a))))},t.prototype._yValueHoverSubCountsExists=function(e){return!!e&&e.some((function(e){return e.yAxisCalloutData&&"string"!=typeof e.yAxisCalloutData}))},t.prototype._getCalloutContent=function(e,t,n,r){var i=r?{}:{marginRight:"16px"},o=void 0!==e.index&&-1!==e.index,a=Fp(this.props.styles,{theme:this.props.theme,width:this.state._width,height:this.state._height,className:this.props.className,isRtl:this._isRtl,lineColor:e.color,toDrawShape:o}),l=this.props.culture,u=cd(e.y,l);if(e.yAxisCalloutData&&"string"!=typeof e.yAxisCalloutData){var c=e.yAxisCalloutData;return s.createElement("div",{style:i},s.createElement("div",{className:"ms-fontWeight-semibold",style:{fontSize:"12pt"}},e.legend," (",u,")"),Object.keys(c).map((function(e){return s.createElement("div",{key:e,className:a.calloutBlockContainer},s.createElement("div",{className:a.calloutlegendText}," ",cd(e,l)),s.createElement("div",{className:a.calloutContentY},cd(c[e],l)))})))}return s.createElement("div",{style:n?i:{}},n&&s.createElement("div",{className:"ms-fontWeight-semibold",style:{fontSize:"12pt"}},e.legend," (",u,")"),s.createElement("div",{id:t+"_"+e.y,className:a.calloutBlockContainer},o&&s.createElement(Vh,{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},cd(e.yAxisCalloutData?e.yAxisCalloutData:e.y||e.data,l)))))},t.prototype._fitParentContainer=function(){var e=this,t=this.state,n=t.containerWidth,r=t.containerHeight;this._reqID=requestAnimationFrame((function(){var t;if(e.props.hideLegend)t=0;else{var i=e.legendContainer&&getComputedStyle(e.legendContainer);t=(e.legendContainer&&e.legendContainer.getBoundingClientRect().height||e.minLegendContainerHeight)+parseFloat(i&&i.marginTop||"0")+parseFloat(i&&i.marginBottom||"0")}if(e.props.parentRef||e.chartContainer){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),Op=function(){var e,t=d();return!!(null===(e=null==t?void 0:t.navigator)||void 0===e?void 0:e.userAgent)&&t.navigator.userAgent.indexOf("rv:11.0")>-1}(),Vp=C(Ip,(function(e){var t,n,r,o,a,s,l,u,c=e.className,d=e.theme,h=e.isRtl,p=e.shouldHighlight,f=e.href,g=e.lineColor,m=void 0===g?"transparent":g,v=e.toDrawShape,_=d.fonts;return{root:[d.fonts.medium,{display:"flex",width:"100%",height:"100%",flexDirection:"column",overflow:"hidden"},c],xAxis:{selectors:{text:[d.fonts.tiny,{fill:d.semanticColors.bodyText,fontWeight:"600",selectors:(t={},t[Vn]={fill:"rgb(179, 179, 179)"},t)}],line:{opacity:.2,stroke:d.semanticColors.bodyText,width:"1px",selectors:(n={},n[Vn]={opacity:.1,stroke:"rgb(179, 179, 179)"},n)},path:{display:"none"}}},yAxis:{selectors:{text:[d.fonts.tiny,{fill:d.semanticColors.bodyText,fontWeight:"600",selectors:(r={},r[Vn]={fill:"rgb(179, 179, 179)"},r)}],path:{display:"none"},line:{opacity:.2,stroke:d.semanticColors.bodyText,selectors:(o={},o[Vn]={opacity:.1,stroke:"rgb(179, 179, 179)"},o)},g:[h&&!Op&&{textAnchor:"end"}]}},opacityChangeOnHover:{opacity:p?"":"0.1",cursor:f?"pointer":"default"},legendContainer:[{marginTop:"8px",marginLeft:"20px"}],calloutContentRoot:[{display:"grid",overflow:"hidden",padding:"11px 16px 10px 16px",backgroundColor:d.semanticColors.bodyBackground,backgroundBlendMode:"normal, luminosity"}],calloutDateTimeContainer:{display:"flex",flexDirection:"row",justifyContent:"space-between"},calloutContentX:[i(i({},_.small),{lineHeight:"16px",opacity:"0.8",color:d.semanticColors.bodySubtext})],calloutBlockContainer:[d.fonts.mediumPlus,{marginTop:"13px",color:d.semanticColors.bodyText},!v&&{selectors:(a={},a[On]={forcedColorAdjust:"none"},a),borderLeft:"4px solid "+m,paddingLeft:"8px"},v&&{display:"flex"}],shapeStyles:{marginRight:"8px"},calloutlegendText:i(i({},_.small),{lineHeight:"16px",selectors:(s={},s[Vn]={color:"rgb(255, 255, 255)"},s),color:d.semanticColors.bodySubtext}),calloutContentY:[i(i({},_.mediumPlus),{fontWeight:"bold",lineHeight:"22px",selectors:(l={},l[Vn]={color:"rgb(255, 255, 255)"},l)})],descriptionMessage:[d.fonts.small,{selectors:(u={},u[Vn]={color:"rgb(255, 255, 255)"},u),color:d.semanticColors.bodyText,marginTop:"10px",paddingTop:"10px",borderTop:"1px solid "+d.semanticColors.menuDivider}]}})),Hp=Xn((function(e){return Xn((function(t){var n=Xn((function(e){return function(n){return t(n,e)}}));return function(r,i){return e(r,i?n(i):t)}}))}));function Rp(e,t){return Hp(e)(t)}var Bp=function(e){if(void 0===e)return 0;var t=0;return"scrollTop"in e?t=e.scrollTop:"scrollY"in e&&(t=e.scrollY),Math.ceil(t)},Wp=function(e,t){"scrollTop"in e?e.scrollTop=t:"scrollY"in e&&e.scrollTo(e.scrollX,t)},zp={top:-1,bottom:-1,left:-1,right:-1,width:0,height:0},Up=function(e){return e.getBoundingClientRect()},Yp=Up,qp=Up,jp=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||!t.hasMounted&&n.props.renderEarly&&u()?(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,a=n.props,l=a.onRenderCell,u=a.onRenderCellConditional,c=a.role,d=e.page,h=d.items,p=void 0===h?[]:h,f=d.startIndex,g=o(e,["page"]),m=void 0===c?"listitem":"presentation",v=[],_=0;_<p.length;_++){var y=f+_,x=p[_],b=n.props.getKey?n.props.getKey(x,y):x&&x.key;null==b&&(b=y);var C=null!=u?u:l,E=null!==(r=null==C?void 0:C(x,y,n.props.ignoreScrollingState?void 0:n.state.isScrolling))&&void 0!==r?r:null;u&&!E||v.push(s.createElement("div",{role:m,className:"ms-List-cell",key:b,"data-list-index":y,"data-automationid":"ListCell"},E))}return s.createElement("div",i({},g),v)},vd(n),n.state={pages:[],isScrolling:!1,getDerivedStateFromProps:n._getDerivedStateFromProps,hasMounted:!1},n._async=new Dt(n),n._events=new Qd(n),n._estimatedPageHeight=0,n._totalEstimates=0,n._requiredWindowsAhead=0,n._requiredWindowsBehind=0,n._measureVersion=0,n._onAsyncScroll=n._async.debounce(n._onAsyncScroll,100,{leading:!1,maxWait:500}),n._onAsyncIdle=n._async.debounce(n._onAsyncIdle,200,{leading:!1}),n._onAsyncResize=n._async.debounce(n._onAsyncResize,16,{leading:!1}),n._onScrollingDone=n._async.debounce(n._onScrollingDone,500,{leading:!1}),n._cachedPageHeights={},n._estimatedPageHeight=0,n._focusedIndex=-1,n._pageCache={},n}return r(t,e),t.getDerivedStateFromProps=function(e,t){return t.getDerivedStateFromProps(e,t)},Object.defineProperty(t.prototype,"pageRefs",{get:function(){return this._pageRefs},enumerable:!1,configurable:!0}),t.prototype.scrollToIndex=function(e,t,n){void 0===n&&(n=0);for(var r=this.props.startIndex,i=r+this._getRenderCount(),o=this._allowedRect,a=0,s=1,l=r;l<i;l+=s){var u=this._getPageSpecification(this.props,l,o),c=u.height;if(s=u.itemCount,l<=e&&l+s>e){if(t&&this._scrollElement){for(var d=qp(this._scrollElement),h=Bp(this._scrollElement),p={top:h,bottom:h+d.height},f=e-l,g=0;g<f;++g)a+=t(l+g);var m=a+t(e);switch(n){case 1:return void Wp(this._scrollElement,a);case 2:return void Wp(this._scrollElement,m-d.height);case 3:return void Wp(this._scrollElement,(a+m-d.height)/2)}if(a>=p.top&&m<=p.bottom)return;a<p.top||m>p.bottom&&(a=m-d.height)}return void(this._scrollElement&&Wp(this._scrollElement,a))}a+=c}},t.prototype.getStartItemIndexInView=function(e){for(var t=0,n=this.state.pages||[];t<n.length;t++){var r=n[t];if(!r.isSpacer&&(this._scrollTop||0)>=r.top&&(this._scrollTop||0)<=r.top+r.height){if(!e){var i=Math.floor(r.height/r.itemCount);return r.startIndex+Math.floor((this._scrollTop-r.top)/i)}for(var o=0,a=r.startIndex;a<r.startIndex+r.itemCount;a++){if(i=e(a),r.top+o<=this._scrollTop&&this._scrollTop<r.top+o+i)return a;o+=i}}}return 0},t.prototype.componentDidMount=function(){this._scrollElement=Qe(this._root.current),this._scrollTop=0,this.setState(i(i({},this._updatePages(this.props,this.state)),{hasMounted:!0})),this._measureVersion++,this._events.on(window,"resize",this._onAsyncResize),this._root.current&&this._events.on(this._root.current,"focus",this._onFocus,!0),this._scrollElement&&(this._events.on(this._scrollElement,"scroll",this._onScroll),this._events.on(this._scrollElement,"scroll",this._onAsyncScroll))},t.prototype.componentDidUpdate=function(e,t){var n=this.props,r=this.state;this.state.pagesVersion!==t.pagesVersion&&(n.getPageHeight?this._onAsyncIdle():this._updatePageMeasurements(r.pages)?(this._materializedRect=null,this._hasCompletedFirstRender?this._onAsyncScroll():(this._hasCompletedFirstRender=!0,this.setState(this._updatePages(n,r)))):this._onAsyncIdle(),n.onPagesUpdated&&n.onPagesUpdated(r.pages))},t.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose(),delete this._scrollElement},t.prototype.shouldComponentUpdate=function(e,t){var n=this.state.pages,r=t.pages,i=!1;if(!t.isScrolling&&this.state.isScrolling)return!0;if(e.version!==this.props.version)return!0;if(e.className!==this.props.className)return!0;if(e.items===this.props.items&&n.length===r.length)for(var o=0;o<n.length;o++){var a=n[o],s=r[o];if(a.key!==s.key||a.itemCount!==s.itemCount){i=!0;break}}else i=!0;return i},t.prototype.forceUpdate=function(){this._invalidatePageCache(),this._updateRenderRects(this.props,this.state,!0),this.setState(this._updatePages(this.props,this.state)),this._measureVersion++,e.prototype.forceUpdate.call(this)},t.prototype.getTotalListHeight=function(){return this._surfaceRect.height},t.prototype.render=function(){for(var e=this.props,t=e.className,n=e.role,r=void 0===n?"list":n,o=e.onRenderSurface,a=e.onRenderRoot,s=this.state.pages,l=void 0===s?[]:s,u=[],c=qe(this.props,Ye),d=0,h=l;d<h.length;d++){var p=h[d];u.push(this._renderPage(p))}var f=o?Rp(o,this._onRenderSurface):this._onRenderSurface;return(a?Rp(a,this._onRenderRoot):this._onRenderRoot)({rootRef:this._root,pages:l,surfaceElement:f({surfaceRef:this._surface,pages:l,pageElements:u,divProps:{role:"presentation",className:"ms-List-surface"}}),divProps:i(i({},c),{className:je("ms-List",t),role:u.length>0?r:void 0,"aria-label":u.length>0?c["aria-label"]:void 0})})},t.prototype._shouldVirtualize=function(e){void 0===e&&(e=this.props);var t=e.onShouldVirtualize;return!t||t(e)},t.prototype._invalidatePageCache=function(){this._pageCache={}},t.prototype._renderPage=function(e){var t,n=this,r=this.props.usePageCache;if(r&&(t=this._pageCache[e.key])&&t.pageElement)return t.pageElement;var i=this._getPageStyle(e),o=this.props.onRenderPage,a=(void 0===o?this._onRenderPage:o)({page:e,className:"ms-List-page",key:e.key,ref:function(t){n._pageRefs[e.key]=t},style:i,role:"presentation"},this._onRenderPage);return r&&0===e.startIndex&&(this._pageCache[e.key]={page:e,pageElement:a}),a},t.prototype._getPageStyle=function(e){var t=this.props.getPageStyle;return i(i({},t?t(e):{}),e.items?{}:{height:e.height})},t.prototype._onFocus=function(e){for(var t=e.target;t!==this._surface.current;){var n=t.getAttribute("data-list-index");if(n){this._focusedIndex=Number(n);break}t=xe(t)}},t.prototype._onScroll=function(){this.state.isScrolling||this.props.ignoreScrollingState||this.setState({isScrolling:!0}),this._resetRequiredWindows(),this._onScrollingDone()},t.prototype._resetRequiredWindows=function(){this._requiredWindowsAhead=0,this._requiredWindowsBehind=0},t.prototype._onAsyncScroll=function(){var e,t;this._updateRenderRects(this.props,this.state),this._materializedRect&&(e=this._requiredRect,t=this._materializedRect,e.top>=t.top&&e.left>=t.left&&e.bottom<=t.bottom&&e.right<=t.right)||this.setState(this._updatePages(this.props,this.state))},t.prototype._onAsyncIdle=function(){var e=this.props,t=e.renderedWindowsAhead,n=e.renderedWindowsBehind,r=this._requiredWindowsAhead,i=this._requiredWindowsBehind,o=Math.min(t,r+1),a=Math.min(n,i+1);o===r&&a===i||(this._requiredWindowsAhead=o,this._requiredWindowsBehind=a,this._updateRenderRects(this.props,this.state),this.setState(this._updatePages(this.props,this.state))),(t>o||n>a)&&this._onAsyncIdle()},t.prototype._onScrollingDone=function(){this.props.ignoreScrollingState||this.setState({isScrolling:!1})},t.prototype._onAsyncResize=function(){this.forceUpdate()},t.prototype._updatePages=function(e,t){this._requiredRect||this._updateRenderRects(e,t);var n=this._buildPages(e,t),r=t.pages;return this._notifyPageChanges(r,n.pages,this.props),i(i(i({},t),n),{pagesVersion:{}})},t.prototype._notifyPageChanges=function(e,t,n){var r=n.onPageAdded,i=n.onPageRemoved;if(r||i){for(var o={},a=0,s=e;a<s.length;a++)(c=s[a]).items&&(o[c.startIndex]=c);for(var l=0,u=t;l<u.length;l++){var c;(c=u[l]).items&&(o[c.startIndex]?delete o[c.startIndex]:this._onPageAdded(c))}for(var d in o)o.hasOwnProperty(d)&&this._onPageRemoved(o[d])}},t.prototype._updatePageMeasurements=function(e){var t=!1;if(!this._shouldVirtualize())return t;for(var n=0;n<e.length;n++){var r=e[n];r.items&&(t=this._measurePage(r)||t)}return t},t.prototype._measurePage=function(e){var t=!1,n=this._pageRefs[e.key],r=this._cachedPageHeights[e.startIndex];if(n&&this._shouldVirtualize()&&(!r||r.measureVersion!==this._measureVersion)){var i={width:n.clientWidth,height:n.clientHeight};(i.height||i.width)&&(t=e.height!==i.height,e.height=i.height,this._cachedPageHeights[e.startIndex]={height:i.height,measureVersion:this._measureVersion},this._estimatedPageHeight=Math.round((this._estimatedPageHeight*this._totalEstimates+i.height)/(this._totalEstimates+1)),this._totalEstimates++)}return t},t.prototype._onPageAdded=function(e){var t=this.props.onPageAdded;t&&t(e)},t.prototype._onPageRemoved=function(e){var t=this.props.onPageRemoved;t&&t(e)},t.prototype._buildPages=function(e,t){var n=e.renderCount,r=e.items,o=e.startIndex,a=e.getPageHeight;n=this._getRenderCount(e);for(var s=i({},zp),l=[],u=1,c=0,d=null,h=this._focusedIndex,p=o+n,f=this._shouldVirtualize(e),g=0===this._estimatedPageHeight&&!a,m=this._allowedRect,v=function(n){var i=_._getPageSpecification(e,n,m),a=i.height,v=i.data,y=i.key;u=i.itemCount;var x,b,C=c+a-1,E=ve(t.pages,(function(e){return!!e.items&&e.startIndex===n}))>-1,k=!m||C>=m.top&&c<=m.bottom,S=!_._requiredRect||C>=_._requiredRect.top&&c<=_._requiredRect.bottom;if(!g&&(S||k&&E)||!f||h>=n&&h<n+u||n===o){d&&(l.push(d),d=null);var L=Math.min(u,p-n),A=_._createPage(y,r.slice(n,n+L),n,void 0,void 0,v);A.top=c,A.height=a,_._visibleRect&&_._visibleRect.bottom&&(A.isVisible=C>=_._visibleRect.top&&c<=_._visibleRect.bottom),l.push(A),S&&_._allowedRect&&(x=s,b={top:c,bottom:C,height:a,left:m.left,right:m.right,width:m.width},x.top=b.top<x.top||-1===x.top?b.top:x.top,x.left=b.left<x.left||-1===x.left?b.left:x.left,x.bottom=b.bottom>x.bottom||-1===x.bottom?b.bottom:x.bottom,x.right=b.right>x.right||-1===x.right?b.right:x.right,x.width=x.right-x.left+1,x.height=x.bottom-x.top+1)}else d||(d=_._createPage("spacer-"+n,void 0,n,0,void 0,v,!0)),d.height=(d.height||0)+(C-c)+1,d.itemCount+=u;if(c+=C-c+1,g&&f)return"break"},_=this,y=o;y<p&&"break"!==v(y);y+=u);return d&&(d.key="spacer-end",l.push(d)),this._materializedRect=s,i(i({},t),{pages:l,measureVersion:this._measureVersion})},t.prototype._getPageSpecification=function(e,t,n){var r=e.getPageSpecification;if(r){var i=r(t,n),o=i.itemCount,a=void 0===o?this._getItemCountForPage(t,n):o,s=i.height;return{itemCount:a,height:void 0===s?this._getPageHeight(t,n,a):s,data:i.data,key:i.key}}return{itemCount:a=this._getItemCountForPage(t,n),height:this._getPageHeight(t,n,a)}},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({},zp),l=function(e){if(void 0===e)return 0;var t=0;return"scrollHeight"in e?t=e.scrollHeight:"document"in e&&(t=e.document.documentElement.scrollHeight),t}(this._scrollElement),u=Bp(this._scrollElement);this._surface.current&&(n||!a||!this._surfaceRect||!l||l!==this._scrollHeight||Math.abs(this._scrollTop-u)>this._estimatedPageHeight/3)&&(s=this._surfaceRect=Yp(this._surface.current),this._scrollTop=u),!n&&l&&l===this._scrollHeight||this._measureVersion++,this._scrollHeight=l||0;var c=Math.max(0,-s.top),h=d(this._root.current),p={top:c,left:s.left,bottom:c+h.innerHeight,right:s.right,width:s.width,height:h.innerHeight};this._requiredRect=Xp(p,this._requiredWindowsBehind,this._requiredWindowsAhead),this._allowedRect=Xp(p,o,r),this._visibleRect=p}},t.defaultProps={startIndex:0,onRenderCell:function(e,t,n){return s.createElement(s.Fragment,null,e&&e.name||"")},onRenderCellConditional:void 0,renderedWindowsAhead:2,renderedWindowsBehind:2},t}(s.Component);function Xp(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 Kp,Gp=function(e){var t=s.useRef(null);s.useEffect((function(){if(t.current){var n=Ic(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))},Zp=function(e){var t,n=s.useRef(null),r=s.useState(!1),i=r[0],o=r[1],a=null;if(i){var l=e.labelDef.aggregatedIdx.map((function(t){return e.lineDefs[t].onRenderCard})).filter((function(e){return!!e}));l.length>0&&(a=s.createElement(Ci,{target:n.current,onDismiss:function(){return o(!1)},setInitialFocus:!0,role:"dialog"},s.createElement(Vd,{isCircularNavigation:!0,direction:sd.vertical},s.createElement(jp,{items:l,onRenderCell:function(e){return s.createElement("div",{"data-is-focusable":!0},e&&e())}}))))}var u=window.matchMedia("(prefers-color-scheme: dark)").matches?"rgb(255,255,255)":e.textColor;return t=1===e.labelDef.aggregatedIdx.length?e.lineDefs[e.labelDef.aggregatedIdx[0]].event:e.mergedLabel(e.labelDef.aggregatedIdx.length),s.createElement(s.Fragment,null,s.createElement("g",{ref:n,onClick:function(){return o(!0)},"data-is-focusable":!1,style:{cursor:"pointer"}},s.createElement(Gp,{text:t,x:e.labelDef.x,y:e.textY,width:e.textWidth,lineHeight:e.textLineHeight,textAnchor:e.labelDef.anchor,fontSize:e.textFontSize,fill:u})),a)},$p=function(e){var t=e.labelWidth?e.labelWidth:105,n=e.chartYTop-20,r=n+7,o=e.scale.range(),a=e.events.map((function(t){return i(i({},t),{x:e.scale(t.date)})}));a.sort((function(e,t){return+e.date-+t.date}));var l=window.matchMedia("(prefers-color-scheme: dark)").matches?"rgb(255,255,255)":e.strokeColor,u=function(e,t){for(var n=[],r=[],i=0,o=e;i<o.length;i++){var a=o[i],s=t(a);-1===n.indexOf(s)&&(r.push(a),n.push(s))}return r}(a,(function(e){return e.date.toString()})).map((function(t,n){return s.createElement("line",{key:n,x1:t.x,x2:t.x,y1:r,y2:e.chartYBottom,stroke:l,strokeDasharray:"8"})})),c=function(e,t,n,r){var i=function(r,i){if(i===e.length)return[];var a=e[i].x,s=a-t;return a<r?[]:i===e.length-1?r<s?[{x:a,anchor:"end",aggregatedIdx:[i]}]:a+t<n?[{x:a,anchor:"start",aggregatedIdx:[i]}]:[]:o(i,r<s?"end":"start")},o=function(r,o){var a="end"===o?e[r].x:e[r].x+t,s=ve(e,(function(e){return e.x>a&&(e.x-t>=a||e.x+t<n)}),r+1);-1===s&&(s=e.length);for(var l=[],u=r;u<s;u++)l.push(u);var c=i(a,s);return c.unshift({x:e[r].x,anchor:o,aggregatedIdx:l}),c};return i(r,0)}(a,t+5,o[1],o[0]).map((function(r,o){return s.createElement(Zp,i({key:o},{lineDefs:a,labelDef:r,textY:n,textWidth:t,textLineHeight:18,textFontSize:"10pt",textColor:e.labelColor,mergedLabel:e.mergedLabel}))}));return s.createElement(s.Fragment,null,u,c)},Qp={color1:"qualitative.1",color2:"qualitative.2",color3:"qualitative.3",color4:"qualitative.4",color5:"qualitative.5",color6:"qualitative.6",color7:"qualitative.7",color8:"qualitative.8",color9:"qualitative.9",color10:"qualitative.10",color11:"qualitative.11",color12:"qualitative.12",color13:"qualitative.13",color14:"qualitative.14",color15:"qualitative.15",color16:"qualitative.16",color17:"qualitative.17",color18:"qualitative.18",color19:"qualitative.19",color20:"qualitative.20",color21:"qualitative.21",color22:"qualitative.22",color23:"qualitative.23",color24:"qualitative.24",color25:"qualitative.25",color26:"qualitative.26",color27:"qualitative.27",color28:"qualitative.28",color29:"qualitative.29",color30:"qualitative.30",color31:"qualitative.31",color32:"qualitative.32",color33:"qualitative.33",color34:"qualitative.34",color35:"qualitative.35",color36:"qualitative.36",color37:"qualitative.37",color38:"qualitative.38",color39:"qualitative.39",color40:"qualitative.40",info:"semantic.info",disabled:"semantic.disabled",highError:"semantic.highError",error:"semantic.error",warning:"semantic.warning",success:"semantic.success",highSuccess:"semantic.highSuccess"},Jp={1:["#637cef"],2:["#e3008c"],3:["#2aa0a4"],4:["#9373c0"],5:["#13a10e"],6:["#3a96dd"],7:["#ca5010"],8:["#57811b"],9:["#b146c2"],10:["#ae8c00"],11:["#3c51b4","#93a4f4"],12:["#ad006a","#ee5fb7"],13:["#026467","#4cb4b7"],14:["#674c8c","#a083c9"],15:["#0e7a0b","#27ac22"],16:["#2c72a8","#4fa1e1"],17:["#9a3d0c","#d77440"],18:["#405f14","#73aa24"],19:["#863593","#c36bd1"],20:["#6d5700","#d0b232"],21:["#4f6bed"],22:["#ea38a6"],23:["#038387"],24:["#8764b8"],25:["#11910d"],26:["#3487c7"],27:["#d06228"],28:["#689920"],29:["#ba58c9"],30:["#937700","#c19c00"],31:["#2c3c85","#c8d1fa"],32:["#7f004e","#f7adda"],33:["#02494c","#9bd9db"],34:["#4c3867","#b29ad4"],35:["#0b5a08","#a7e3a5"],36:["#20547c","#83bdeb"],37:["#712d09","#df8e64"],38:["#23330b","#a4cc6c"],39:["#63276d","#cf87da"],40:["#3a2f00","#dac157"]},ef={qualitative:Jp,semantic:{info:["#015cda"],disabled:["#dbdbdb","#4d4d4d"],highError:["#6e0811","#cc2635"],error:["#c50f1f","#dc626d"],warning:["#f7630c","#f87528"],success:["#107c10","#54b054"],highSuccess:["#094509","#218c21"]}},tf=Object.values(Jp),nf=Object.values(Qp),rf=function(e,t){if(0===e.length)return"";var n=Number(t);return n<e.length?e[n]:e[0]},of=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=!1);var r=tf[(e+t)%tf.length];return rf(r,n)},af=function(e,t){if(void 0===t&&(t=!1),nf.indexOf(e)>=0){var n=e.split("."),r=n[0],i=n[1],o=ef[r][i];return rf(o,t)}return e},sf=ue();!function(e){e[e.hoverSize=11]="hoverSize",e[e.invisibleSize=1]="invisibleSize"}(Kp||(Kp={}));var lf=Oi((function(e){return e.x})).left,uf=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){var o,a,s;return s=void 0===e.color?of(t,0,null===(o=n.props.theme)||void 0===o?void 0:o.isInverted):af(e.color,null===(a=n.props.theme)||void 0===a?void 0:a.isInverted),i(i({},e),{index:r?t:-1,color:s})})):[]},n._getCustomizedCallout=function(){return n.props.onRenderCalloutPerStack?n.props.onRenderCalloutPerStack(n.state.stackCalloutProps):n.props.onRenderCalloutPerDataPoint?n.props.onRenderCalloutPerDataPoint(n.state.dataPointCalloutProps):null},n._getMargins=function(e){n.margins=e},n._initializeLineChartData=function(e,t,r,i,o){n._xAxisScale=e,n._yAxisScale=t,n._renderedColorFillBars=n.props.colorFillBars?n._createColorFillBars(r):[],n.lines=n._createLines(o,r)},n._handleSingleLegendSelectionAction=function(e){n.state.selectedLegend===e.legend?(n.setState({selectedLegend:""}),n._handleLegendClick(e,null)):(n.setState({selectedLegend:e.legend}),n._handleLegendClick(e,e.legend))},n._onHoverCardHide=function(){n.setState({selectedLegendPoints:[],selectedColorBarLegend:[],isSelectedLegend:!1})},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},n._getBoxWidthOfShape=function(e,t,r){var i=n.props,o=i.allowMultipleShapesForPoints,a=void 0!==o&&o,s=i.strokeWidth,l=void 0===s?4:s,u=n.state.activePoint;return a?u===e?Kp.hoverSize:1===t||r?2.5*l:Kp.invisibleSize:u===e?Kp.hoverSize:Kp.invisibleSize},n._getPath=function(e,t,r,i,o,a){var s=n.props.allowMultipleShapesForPoints,l=void 0!==s&&s,u=n._getBoxWidthOfShape(r,i,o),c=l?a%Object.keys(ld).length:0,d=ld[c].widthRatio;return function(e,t,n,r){return["M"+(e-n/2)+" "+t+"\n A"+n/2+" "+n/2+" 0 1 0 "+(e+n/2)+" "+t+"\n M"+(e-n/2)+" "+t+"\n A "+n/2+" "+n/2+" 0 1 1 "+(e+n/2)+" "+t+"\n ","M"+(e-n/2)+" "+(t-n/2)+"\n L"+(e+n/2)+" "+(t-n/2)+"\n L"+(e+n/2)+" "+(t+n/2)+"\n L"+(e-n/2)+" "+(t+n/2)+"\n Z","M"+(e-n/2)+" "+(t-.2886*n)+"\n H "+(e+n/2)+"\n L"+e+" "+(t+.5774*n)+" Z","M"+e+" "+(t-n/2)+"\n L"+(e+n/2)+" "+t+"\n L"+e+" "+(t+n/2)+"\n L"+(e-n/2)+" "+t+"\n Z","M"+e+" "+(t-.5774*n)+"\n L"+(e+n/2)+" "+(t+.2886*n)+"\n L"+(e-n/2)+" "+(t+.2886*n)+" Z","M"+(e-.5*n)+" "+(t-.866*n)+"\n L"+(e+.5*n)+" "+(t-.866*n)+"\n L"+(e+n)+" "+t+"\n L"+(e+.5*n)+" "+(t+.866*n)+"\n L"+(e-.5*n)+" "+(t+.866*n)+"\n L"+(e-n)+" "+t+"\n Z","M"+e+" "+(t-.851*n)+"\n L"+(e+.6884*n)+" "+(t-.2633*n)+"\n L"+(e+.5001*n)+" "+(t+.6884*n)+"\n L"+(e-.5001*n)+" "+(t+.6884*n)+"\n L"+(e-.6884*n)+" "+(t-.2633*n)+"\n Z","M"+(e-.5001*n)+" "+(t-1.207*n)+"\n L"+(e+.5001*n)+" "+(t-1.207*n)+"\n L"+(e+1.207*n)+" "+(t-.5001*n)+"\n L"+(e+1.207*n)+" "+(t+.5001*n)+"\n L"+(e+.5001*n)+" "+(t+1.207*n)+"\n L"+(e-.5001*n)+" "+(t+1.207*n)+"\n L"+(e-1.207*n)+" "+(t+.5001*n)+"\n L"+(e-1.207*n)+" "+(t-.5001*n)+"\n Z"][r]}(e,t,u=d>1?u/d:u,c)},n._getPointFill=function(e,t,r,i){var o=n.state.activePoint,a=n.props,s=a.theme;return a.allowMultipleShapesForPoints,o===t?s.palette.white:e},n._createColorFillBars=function(e){var t,r=[];n.state.isSelectedLegend?n._colorFillBars=n.state.selectedColorBarLegend:n._colorFillBars=n.props.colorFillBars;for(var i=rd(n._points,Wc.LineChart),o=0;o<n._colorFillBars.length;o++){var a=n._colorFillBars[o],l=ge(a.legend.replace(/\W/g,"")),u=af(a.color,null===(t=n.props.theme)||void 0===t?void 0:t.isInverted);a.applyPattern&&r.push(n._getStripePattern(u,o));for(var c=0;c<a.data.length;c++){var d=a.data[c].startX,h=a.data[c].endX,p=n._legendHighlighted(a.legend)||n._noLegendHighlighted()||n.state.isSelectedLegend?n._getColorFillBarOpacity(a):.1;r.push(s.createElement("rect",{fill:a.applyPattern?"url(#"+n._colorFillBarPatternId+"_"+o+")":u,fillOpacity:p,x:n._xAxisScale(d),y:n._yAxisScale(i.endValue)-3,width:Math.abs(n._xAxisScale(h)-n._xAxisScale(d)),height:n._yAxisScale(n.props.yMinValue||0)-n._yAxisScale(i.endValue)+3,key:""+l+c}))}}return r},n._getStripePattern=function(e,t){return s.createElement("pattern",{id:n._colorFillBarPatternId+"_"+t,width:16,height:16,key:n._colorFillBarPatternId+"_"+t,patternUnits:"userSpaceOnUse"},s.createElement("path",{d:"M-4,4 l8,-8 M0,16 l16,-16 M12,20 l8,-8",stroke:e,strokeWidth:1.25}))},n._checkInGap=function(e,t,n){for(var r=n,i=!1;r<t.length&&e>t[r].endIndex;)r++;return r<t.length&&e>t[r].startIndex&&e<=t[r].endIndex&&(i=!0),{isInGap:i,gapIndex:r}},n._onMouseOverLargeDataset=function(e,t,r){r.persist();var i=n.props.data.lineChartData,o=n._xAxisScale.invert(Hc(document.getElementById(n._rectId),r)[0]),a=lf(i[e].data,o),s=i[e].data[a-1],l=i[e].data[a],u=null,c=null;if(void 0===s&&void 0!==l)u=l.x,c=a;else if(void 0!==s&&void 0===l)u=s.x,c=a-1;else{var d=void 0,h=void 0,p=void 0;switch(ad(i[e].data[0].x,!0)){case zc.DateAxis:d=new Date(o).getTime(),h=s.x.getTime(),p=l.x.getTime(),u=Math.abs(d-h)>Math.abs(d-p)?l.x:s.x,c=Math.abs(d-h)>Math.abs(d-p)?a:a-1;break;case zc.NumericAxis:d=o,h=s.x,p=l.x,u=Math.abs(d-h)>Math.abs(d-p)?l.x:s.x,c=Math.abs(d-h)>Math.abs(d-p)?a:a-1}}var f=i[e].data[c],g=f.xAxisCalloutData,m=f.xAxisCalloutAccessibilityData,v=u instanceof Date?u.toLocaleString():u,_=u instanceof Date?u.getTime():u,y=_e(n._calloutPoints,(function(e){return e.x===_})),x=i[e].data[c],b=null===n.state.nearestCircleToHighlight||null!==n.state.nearestCircleToHighlight&&null!==x&&(n.state.nearestCircleToHighlight.x!==x.x||n.state.nearestCircleToHighlight.y!==x.y);y&&b&&(n._uniqueCallOutID="#"+n._staticHighlightCircle+"_"+e,Ic("#"+n._staticHighlightCircle+"_"+e).attr("cx",""+n._xAxisScale(x.x)).attr("cy",""+n._yAxisScale(x.y)).attr("visibility","visibility"),Ic("#"+n._verticalLine).attr("transform",(function(){return"translate("+n._xAxisScale(x.x)+", "+n._yAxisScale(x.y)+")"})).attr("visibility","visibility").attr("y2",""+(t-n._yAxisScale(x.y))),n.setState({nearestCircleToHighlight:x,isCalloutVisible:!0,refSelected:"#"+n._staticHighlightCircle+"_"+e,stackCalloutProps:y,YValueHover:y.values,dataPointCalloutProps:y,hoverXValue:g||v,xAxisCalloutAccessibilityData:m,activePoint:"",activeLine:e})),y||n.setState({isCalloutVisible:!1,nearestCircleToHighlight:x,activePoint:"",activeLine:e})},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=_e(n._calloutPoints,(function(e){return e.x===s}));if(l){var u=n;Ic("#"+n._verticalLine).attr("transform",(function(){return"translate("+u._xAxisScale(t)+", 0)"})).attr("visibility","visibility"),n._refArray.forEach((function(t){t.index===e&&n.setState({isCalloutVisible:!0,refSelected:t.refElement,hoverXValue:r||""+a,YValueHover:l.values,stackCalloutProps:l,dataPointCalloutProps:l,activePoint:i,xAxisCalloutAccessibilityData:o})}))}else n.setState({activePoint:i})},n._handleHover=function(e,t,r,i,o,a,s){s.persist();var l=e instanceof Date?e.toLocaleDateString():e,u=e instanceof Date?e.getTime():e,c=n,d=_e(n._calloutPoints,(function(e){return e.x===u}));d?(Ic("#"+n._verticalLine).attr("transform",(function(){return"translate("+c._xAxisScale(e)+", "+c._yAxisScale(t)+")"})).attr("visibility","visibility").attr("y2",""+(r-c._yAxisScale(t))),n._uniqueCallOutID!==o&&(n._uniqueCallOutID=o,n.setState({isCalloutVisible:!0,refSelected:"#"+o,hoverXValue:i||""+l,YValueHover:d.values,stackCalloutProps:d,dataPointCalloutProps:d,activePoint:o,xAxisCalloutAccessibilityData:a,nearestCircleToHighlight:null,activeLine:null}))):n.setState({activePoint:o,nearestCircleToHighlight:null,activeLine:null})},n._getClickHandler=function(e){return e?{onClick:e}:{}},n._handleMouseOut=function(){Ic("#"+n._verticalLine).attr("visibility","hidden")},n._handleChartMouseLeave=function(){n._uniqueCallOutID=null,n.setState({isCalloutVisible:!1,activePoint:"",activeLine:null})},n._handleLegendClick=function(e,t){e.onLegendClick&&e.onLegendClick(t)},n._handleMultipleLineLegendSelectionAction=function(e){var t,r=n.state.selectedLegendPoints.reduce((function(t,n,r){return t>-1||n.legend!==e.legend?t:r}),-1);t=-1===r?a(a([],n.state.selectedLegendPoints),[e]):n.state.selectedLegendPoints.slice(0,r).concat(n.state.selectedLegendPoints.slice(r+1)),n.props.data&&t.length===n.props.data.lineChartData.length&&(n.props.colorFillBars&&n.props.colorFillBars.length===n.state.selectedColorBarLegend.length||!n.props.colorFillBars)?n._clearMultipleLegendSelections():t.length||n.state.selectedColorBarLegend.length?n.setState({selectedLegendPoints:t,isSelectedLegend:!0}):n._clearMultipleLegendSelections();var i=t.map((function(e){return e.legend}));n._handleLegendClick(e,i)},n._handleMultipleColorFillBarLegendSelectionAction=function(e){var t,r=n.state.selectedColorBarLegend.reduce((function(t,n,r){return t>-1||n.legend!==e.legend?t:r}),-1);(t=-1===r?a(a([],n.state.selectedColorBarLegend),[e]):n.state.selectedColorBarLegend.slice(0,r).concat(n.state.selectedColorBarLegend.slice(r+1))).length===(n.props.colorFillBars&&n.props.colorFillBars.length)&&(n.props.data&&n.props.data.lineChartData.length===n.state.selectedLegendPoints.length||!n.props.data)?n._clearMultipleLegendSelections():t.length||n.state.selectedLegendPoints.length?n.setState({selectedColorBarLegend:t,isSelectedLegend:!0}):n._clearMultipleLegendSelections();var i=t.map((function(e){return e.legend}));n._handleLegendClick(e,i)},n._clearMultipleLegendSelections=function(){n.setState({selectedColorBarLegend:[],selectedLegendPoints:[],isSelectedLegend:!1})},n._legendHighlighted=function(e){return n.state.selectedLegend===e||""===n.state.selectedLegend&&n.state.activeLegend===e},n._noLegendHighlighted=function(){return""===n.state.selectedLegend&&""===n.state.activeLegend},n._getColorFillBarOpacity=function(e){return e.applyPattern?1:.4},n._getAriaLabel=function(e,t){var r,i=n._points[e],o=i.data[t],a=o.x instanceof Date?o.x.toLocaleString():o.x,s=o.xAxisCalloutData||a,l=i.legend,u=o.yAxisCalloutData||o.y;return(null===(r=o.callOutAccessibilityData)||void 0===r?void 0:r.ariaLabel)||s+". "+l+", "+u+"."},n.state={hoverXValue:"",activeLegend:"",YValueHover:[],refSelected:"",selectedLegend:"",isCalloutVisible:!1,selectedLegendPoints:[],selectedColorBarLegend:[],isSelectedLegend:!1,activePoint:"",nearestCircleToHighlight:null,activeLine:null},n._refArray=[],n._points=n._injectIndexPropertyInLineChartData(n.props.data.lineChartData),n._colorFillBars=[],n._calloutPoints=Jc(n._points)||[],n._circleId=ge("circle"),n._lineId=ge("lineID"),n._borderId=ge("borderID"),n._verticalLine=ge("verticalLine"),n._colorFillBarPatternId=ge("colorFillBarPattern"),n._tooltipId=ge("LineChartTooltipId_"),n._rectId=ge("containerRectLD"),n._staticHighlightCircle=ge("staticHighlightCircle"),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=Jc(this._points)||[])},t.prototype.render=function(){var e=this,t=this.props,n=t.tickValues,r=t.tickFormat,o=t.eventAnnotationProps,a=t.legendProps,l=t.data;this._points=this._injectIndexPropertyInLineChartData(l.lineChartData);var u=td(this._points),c=this._points;a&&a.canSelectMultipleLegends&&(c=this.state.selectedLegendPoints.length>=1?this.state.selectedLegendPoints:this._points,this._calloutPoints=Jc(c));var d=this._createLegends(this._points),h=i({isCalloutVisible:this.state.isCalloutVisible,directionalHint:3,YValueHover:this.state.YValueHover,hoverXValue:this.state.hoverXValue,id:"toolTip"+this._uniqueCallOutID,target:this.state.refSelected,isBeakVisible:!1,gapSpace:15,onDismiss:this._closeCallout,preventDismissOnEvent:function(){return!0},hidden:!(!this.props.hideTooltip&&this.state.isCalloutVisible),descriptionMessage:this.props.getCalloutDescriptionMessage&&this.state.stackCalloutProps?this.props.getCalloutDescriptionMessage(this.state.stackCalloutProps):void 0,"data-is-focusable":!0,xAxisCalloutAccessibilityData:this.state.xAxisCalloutAccessibilityData},this.props.calloutProps),p={tickValues:n,tickFormat:r};return s.createElement(Vp,i({},this.props,{chartTitle:l.chartTitle,points:c,chartType:Wc.LineChart,isCalloutForStack:!0,calloutProps:h,tickParams:p,legendBars:d,getmargins:this._getMargins,getGraphData:this._initializeLineChartData,xAxisType:u?zc.DateAxis:zc.NumericAxis,customizedCallout:this._getCustomizedCallout(),onChartMouseLeave:this._handleChartMouseLeave,children:function(t){return e._xAxisScale=t.xScale,e._yAxisScale=t.yScale,s.createElement(s.Fragment,null,s.createElement("g",null,s.createElement("line",{x1:0,y1:0,x2:0,y2:t.containerHeight,stroke:"#C8C8C8",id:e._verticalLine,visibility:"hidden",strokeDasharray:"5,5"}),e.props.optimizeLargeData?s.createElement("rect",{id:e._rectId,width:t.containerWidth,height:t.containerHeight,fill:"transparent"}):s.createElement(s.Fragment,null),s.createElement("g",null,e._renderedColorFillBars,e.lines),o&&s.createElement($p,i({},o,{scale:t.xScale,chartYTop:e.margins.top+e.eventLabelHeight,chartYBottom:t.containerHeight-35}))))}}))},t.prototype._createLegends=function(e){var t=this,n=this.props,r=n.legendProps,o=n.allowMultipleShapesForPoints,l=void 0!==o&&o,u=!(!r||!r.canSelectMultipleLegends),c=e.map((function(e){var n=e.color;return i(i({title:e.legend,color:n,action:function(){u?t._handleMultipleLineLegendSelectionAction(e):t._handleSingleLegendSelectionAction(e)},onMouseOutAction:function(){t.setState({activeLegend:""})},hoverAction:function(){t._handleChartMouseLeave(),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,i=e.legend,o=af(e.color,null===(r=t.props.theme)||void 0===r?void 0:r.isInverted);return{title:i,color:o,action:function(){u?t._handleMultipleColorFillBarLegendSelectionAction(e):t._handleSingleLegendSelectionAction(e)},onMouseOutAction:function(){t.setState({activeLegend:""})},hoverAction:function(){t._handleChartMouseLeave(),t.setState({activeLegend:i})},opacity:t._getColorFillBarOpacity(e),stripePattern:e.applyPattern}})):[];return s.createElement(Bh,i({legends:a(a([],c),d),enabledWrapLines:this.props.enabledLegendsWrapLines,overflowProps:this.props.legendsOverflowProps,focusZonePropsInHoverCard:this.props.focusZonePropsForLegendsInHoverCard,overflowText:this.props.legendsOverflowText},u&&{onLegendHoverCardLeave:this._onHoverCardHide},this.props.legendProps))},t.prototype._createLines=function(e,t){var n,r,o,l,u,c,d,h,p,f,g,m,v,_,y,x,b,C,E,k,S,L,A,w,D=this,T=[];this.state.isSelectedLegend?this._points=this.state.selectedLegendPoints:this._points=this._injectIndexPropertyInLineChartData(this.props.data.lineChartData);for(var M=function(e){var M=[],N=[],F=[],I=P._points[e].legend,O=P._points[e].color,V=P.state.activePoint,H=P.props.theme,R=t-P.margins.bottom+6;if(1===P._points[e].data.length){var B=P._points[e].data[0],W=B.x,z=B.y,U=B.xAxisCalloutData,Y=B.xAxisCalloutAccessibilityData,q=P._circleId+"_"+e;F.push(s.createElement("circle",i({id:q,key:q,r:V===q?5.5:3.5,cx:P._xAxisScale(W),cy:P._yAxisScale(z),fill:V===q?H.palette.white:O,onMouseOver:P._handleHover.bind(P,W,z,R,U,q,Y),onMouseMove:P._handleHover.bind(P,W,z,R,U,q,Y),onMouseOut:P._handleMouseOut,strokeWidth:V===q?4:0,stroke:V===q?O:"",role:"img","aria-label":P._getAriaLabel(e,0),"data-is-focusable":!0,ref:function(e){D._refCallback(e,q)},onFocus:function(){return D._handleFocus(q,W,U,q,Y)},onBlur:P._handleMouseOut},P._getClickHandler(P._points[e].data[0].onDataPointClick))))}var j=0,X=null!==(r=null===(n=P._points[e].gaps)||void 0===n?void 0:n.sort((function(e,t){return e.startIndex-t.startIndex})))&&void 0!==r?r:[];if(P.props.optimizeLargeData&&P._points[e].data.length>1){for(var K=Np().x((function(e){return D._xAxisScale(e[0])})).y((function(e){return D._yAxisScale(e[1])})).curve(Tp),G=P._lineId+"_"+e,Z=P._borderId+"_"+e,$=(null===(o=P._points[e].lineOptions)||void 0===o?void 0:o.strokeWidth)||P.props.strokeWidth||4,Q=P._legendHighlighted(I)||P._noLegendHighlighted()||P.state.isSelectedLegend,J=[],ee=0;ee<P._points[e].data.length;ee++)J.push([P._points[e].data[ee].x instanceof Date?P._points[e].data[ee].x.getTime():P._points[e].data[ee].x,P._points[e].data[ee].y]);if(Q){var te=(null===(l=P._points[e].lineOptions)||void 0===l?void 0:l.lineBorderWidth)?Number.parseFloat(P._points[e].lineOptions.lineBorderWidth.toString()):0;te>0&&N.push(s.createElement("path",{id:Z,key:Z,d:K(J),fill:"transparent",strokeLinecap:null!==(c=null===(u=P._points[e].lineOptions)||void 0===u?void 0:u.strokeLinecap)&&void 0!==c?c:"round",strokeWidth:Number.parseFloat($.toString())+te,stroke:(null===(d=P._points[e].lineOptions)||void 0===d?void 0:d.lineBorderColor)||H.palette.white,opacity:1})),M.push(s.createElement("path",i({id:G,key:G,d:K(J),fill:"transparent","data-is-focusable":!0,stroke:O,strokeWidth:$,strokeLinecap:null!==(p=null===(h=P._points[e].lineOptions)||void 0===h?void 0:h.strokeLinecap)&&void 0!==p?p:"round",onMouseMove:P._onMouseOverLargeDataset.bind(P,e,R),onMouseOver:P._onMouseOverLargeDataset.bind(P,e,R),onMouseOut:P._handleMouseOut},P._getClickHandler(P._points[e].onLineClick),{opacity:1,role:"img","aria-label":I+", series "+(e+1)+" of "+P._points.length+" with "+P._points[e].data.length+" data points."})))}else M.push(s.createElement("path",{id:G,key:G,d:K(J),fill:"transparent","data-is-focusable":!0,stroke:O,strokeWidth:$,strokeLinecap:null!==(g=null===(f=P._points[e].lineOptions)||void 0===f?void 0:f.strokeLinecap)&&void 0!==g?g:"round",opacity:.1,role:"img","aria-label":I+", series "+(e+1)+" of "+P._points.length+" with "+P._points[e].data.length+" data points."}));var ne=null!==P.state.activeLine&&P.state.activeLine===e;F.push(s.createElement("circle",{id:P._staticHighlightCircle+"_"+e,key:P._staticHighlightCircle+"_"+e,r:5.5,cx:0,cy:0,fill:H.palette.white,strokeWidth:4,stroke:O,visibility:ne?"visibility":"hidden",onMouseMove:P._onMouseOverLargeDataset.bind(P,e,R),onMouseOver:P._onMouseOverLargeDataset.bind(P,e,R),onMouseOut:P._handleMouseOut}))}else if(!P.props.optimizeLargeData)for(var re=function(t){var n=P._checkInGap(t,X,j),r=n.isInGap;j=n.gapIndex;var o=P._lineId+"_"+e+"_"+t,a=P._borderId+"_"+e+"_"+t,l=P._circleId+"_"+e+"_"+t,u=P._points[e].data[t-1],c=u.x,d=u.y,h=u.xAxisCalloutData,p=u.xAxisCalloutAccessibilityData,f=P._points[e].data[t],g=f.x,T=f.y,B=P._getPath(P._xAxisScale(c),P._yAxisScale(d),l,t,!1,P._points[e].index),W=(null===(m=P._points[e].lineOptions)||void 0===m?void 0:m.strokeWidth)||P.props.strokeWidth||4,z=P._legendHighlighted(I)||P._noLegendHighlighted()||P.state.isSelectedLegend,U=P._points[e].hideNonActiveDots&&V!==l;if(F.push(s.createElement("path",i({id:l,key:l,d:B,"data-is-focusable":!0,onMouseOver:P._handleHover.bind(P,c,d,R,h,l,p),onMouseMove:P._handleHover.bind(P,c,d,R,h,l,p),onMouseOut:P._handleMouseOut,onFocus:function(){return D._handleFocus(o,c,h,l,p)},onBlur:P._handleMouseOut},P._getClickHandler(P._points[e].data[t-1].onDataPointClick),{opacity:z&&!U?1:.01,fill:P._getPointFill(O,l,t,!1),stroke:O,strokeWidth:W,role:"img","aria-label":P._getAriaLabel(e,t-1)}))),t+1===P._points[e].data.length){var Y=""+l+t+"L",q=P._points[e].hideNonActiveDots&&V!==Y;B=P._getPath(P._xAxisScale(g),P._yAxisScale(T),Y,t,!0,P._points[e].index);var K=P._points[e].data[t],G=K.xAxisCalloutData,Z=K.xAxisCalloutAccessibilityData;F.push(s.createElement("path",i({id:Y,key:Y,d:B,"data-is-focusable":!0,onMouseOver:P._handleHover.bind(P,g,T,R,G,Y,Z),onMouseMove:P._handleHover.bind(P,g,T,R,G,Y,Z),onMouseOut:P._handleMouseOut,onFocus:function(){return D._handleFocus(o,g,G,Y,Z)},onBlur:P._handleMouseOut},P._getClickHandler(P._points[e].data[t].onDataPointClick),{opacity:z&&!q?1:.01,fill:P._getPointFill(O,Y,t,!0),stroke:O,strokeWidth:W,role:"img","aria-label":P._getAriaLabel(e,t)})))}if(z){if(!r){var $=(null===(v=P._points[e].lineOptions)||void 0===v?void 0:v.lineBorderWidth)?Number.parseFloat(P._points[e].lineOptions.lineBorderWidth.toString()):0;$>0&&N.push(s.createElement("line",{id:a,key:a,x1:P._xAxisScale(c),y1:P._yAxisScale(d),x2:P._xAxisScale(g),y2:P._yAxisScale(T),strokeLinecap:null!==(y=null===(_=P._points[e].lineOptions)||void 0===_?void 0:_.strokeLinecap)&&void 0!==y?y:"round",strokeWidth:Number.parseFloat(W.toString())+$,stroke:(null===(x=P._points[e].lineOptions)||void 0===x?void 0:x.lineBorderColor)||H.palette.white,opacity:1})),M.push(s.createElement("line",i({id:o,key:o,x1:P._xAxisScale(c),y1:P._yAxisScale(d),x2:P._xAxisScale(g),y2:P._yAxisScale(T),strokeWidth:W,ref:function(e){D._refCallback(e,o)},onMouseOver:P._handleHover.bind(P,c,d,R,h,l,p),onMouseMove:P._handleHover.bind(P,c,d,R,h,l,p),onMouseOut:P._handleMouseOut,stroke:O,strokeLinecap:null!==(C=null===(b=P._points[e].lineOptions)||void 0===b?void 0:b.strokeLinecap)&&void 0!==C?C:"round",strokeDasharray:null===(E=P._points[e].lineOptions)||void 0===E?void 0:E.strokeDasharray,strokeDashoffset:null===(k=P._points[e].lineOptions)||void 0===k?void 0:k.strokeDashoffset,opacity:1},P._getClickHandler(P._points[e].onLineClick))))}}else r||M.push(s.createElement("line",{id:o,key:o,x1:P._xAxisScale(c),y1:P._yAxisScale(d),x2:P._xAxisScale(g),y2:P._yAxisScale(T),strokeWidth:W,stroke:O,strokeLinecap:null!==(L=null===(S=P._points[e].lineOptions)||void 0===S?void 0:S.strokeLinecap)&&void 0!==L?L:"round",strokeDasharray:null===(A=P._points[e].lineOptions)||void 0===A?void 0:A.strokeDasharray,strokeDashoffset:null===(w=P._points[e].lineOptions)||void 0===w?void 0:w.strokeDashoffset,opacity:.1}))},ie=1;ie<P._points[e].data.length;ie++)re(ie);T.push.apply(T,a(a(a([],N),M),F))},P=this,N=this._points.length-1;N>=0;N--)M(N);var F=sf(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 I=Ic(e).call(this._xAxisScale);try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(e){}var O={tooltipCls:F.tooltip,id:this._tooltipId,xAxis:I};I&&ed(O)}return T},t.prototype._refCallback=function(e,t){this._refArray.push({index:t,refElement:e})},t}(s.Component),cf=C(uf,(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"})}}));function df(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 hf(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function pf(e,t){return e[t]}function ff(e){const t=[];return t.key=e,t}function gf(e,t,n){var r=null,i=zh(!0),o=null,a=Tp,s=null;function l(l){var u,c,d,h,p,f=(l=Wh(l)).length,g=!1,m=new Array(f),v=new Array(f);for(null==o&&(s=a(p=dp())),u=0;u<=f;++u){if(!(u<f&&i(h=l[u],u,l))===g)if(g=!g)c=u,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),d=u-1;d>=c;--d)s.point(m[d],v[d]);s.lineEnd(),s.areaEnd()}g&&(m[u]=+e(h,u,l),v[u]=+t(h,u,l),s.point(r?+r(h,u,l):m[u],n?+n(h,u,l):v[u]))}if(p)return s=null,p+""||null}function u(){return Np().defined(i).curve(a).context(o)}return e="function"==typeof e?e:void 0===e?Mp:zh(+e),t="function"==typeof t?t:zh(void 0===t?0:+t),n="function"==typeof n?n:void 0===n?Pp:zh(+n),l.x=function(t){return arguments.length?(e="function"==typeof t?t:zh(+t),r=null,l):e},l.x0=function(t){return arguments.length?(e="function"==typeof t?t:zh(+t),l):e},l.x1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:zh(+e),l):r},l.y=function(e){return arguments.length?(t="function"==typeof e?e:zh(+e),n=null,l):t},l.y0=function(e){return arguments.length?(t="function"==typeof e?e:zh(+e),l):t},l.y1=function(e){return arguments.length?(n=null==e?null:"function"==typeof e?e:zh(+e),l):n},l.lineX0=l.lineY0=function(){return u().x(e).y(t)},l.lineY1=function(){return u().x(e).y(n)},l.lineX1=function(){return u().x(r).y(t)},l.defined=function(e){return arguments.length?(i="function"==typeof e?e:zh(!!e),l):i},l.curve=function(e){return arguments.length?(a=e,null!=o&&(s=a(o)),l):a},l.context=function(e){return arguments.length?(null==e?o=s=null:s=a(o=e),l):o},l}function mf(e){return e<0?-1:1}function vf(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(mf(o)+mf(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function _f(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function yf(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 xf(e){this._context=e}function bf(e){this._context=e}function Cf(e){return new xf(e)}xf.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:yf(this,this._t0,_f(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,yf(this,_f(this,n=vf(this,e,t)),n);break;default:yf(this,this._t0,n=vf(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 bf(e)}.prototype=Object.create(xf.prototype)).point=function(e,t){xf.prototype.point.call(this,t,e)},bf.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 Ef,kf=ue(),Sf=Oi((function(e){return e.x})).left;!function(e){e.show="visibility",e.hide="hidden"}(Ef||(Ef={}));var Lf=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(Hc(document.getElementById(n._rectId),e)[0]),i=Sf(t[0].data,r),o=t[0].data[i-1],a=t[0].data[i],s=null,l=null,u=null;if(void 0===o&&void 0!==a)l=a.x,u=i;else if(void 0!==o&&void 0===a)l=o.x,u=i-1;else{var c=void 0,d=void 0,h=void 0;switch(s=ad(t[0].data[0].x,!0)){case zc.DateAxis:c=new Date(r).getTime(),d=o.x.getTime(),h=a.x.getTime(),l=Math.abs(c-d)>Math.abs(c-h)?a.x:o.x,u=Math.abs(c-d)>Math.abs(c-h)?i:i-1;break;case zc.NumericAxis:c=r,d=o.x,h=a.x,l=Math.abs(c-d)>Math.abs(c-h)?a.x:o.x,u=Math.abs(c-d)>Math.abs(c-h)?i:i-1}}var p=t[0].data[u],f=p.xAxisCalloutData,g=p.xAxisCalloutAccessibilityData,m=l instanceof Date?l.toLocaleString():l,v=l instanceof Date?l.getTime():l,_=_e(n._calloutPoints,(function(e){return e.x===v})),y=s===zc.DateAxis?l.getTime():l,x=n.state.nearestCircleToHighlight!==y;_&&x&&!n.state.isShowCalloutPending&&n.setState({nearestCircleToHighlight:y,isCalloutVisible:!1,isShowCalloutPending:!0,lineXValue:n._xAxisRectScale(l),displayOfLine:Ef.show,isCircleClicked:!1,stackCalloutProps:_,YValueHover:_.values,dataPointCalloutProps:_,hoverXValue:f||m,xAxisCalloutAccessibilityData:g,activePoint:""}),_||n.setState({isCalloutVisible:!1,nearestCircleToHighlight:y,displayOfLine:Ef.hide,isCircleClicked:!1})},n._onRectMouseOut=function(){},n._handleChartMouseLeave=function(){n.setState({refSelected:null,isCalloutVisible:!1,nearestCircleToHighlight:null,lineXValue:0,displayOfLine:Ef.hide,isCircleClicked:!1,stackCalloutProps:void 0,dataPointCalloutProps:void 0,hoverXValue:void 0,YValueHover:[]})},n._getStackedData=function(e,t){var r=function(){var e=zh([]),t=hf,n=df,r=pf;function i(i){var o,a,s=Array.from(e.apply(this,arguments),ff),l=s.length,u=-1;for(const e of i)for(o=0,++u;o<l;++o)(s[o][u]=[0,+r(e,s[o].key,u,i)]).data=e;for(o=0,a=Wh(t(s));o<l;++o)s[a[o]].index=o;return n(s,a),s}return i.keys=function(t){return arguments.length?(e="function"==typeof t?t:zh(Array.from(t)),i):e},i.value=function(e){return arguments.length?(r="function"==typeof e?e:zh(+e),i):r},i.order=function(e){return arguments.length?(t=null==e?hf:"function"==typeof e?e:zh(Array.from(e)),i):t},i.offset=function(e){return arguments.length?(n=null==e?df:e,i):n},i}().keys(e)(t),i=Ri(r[r.length-1],(function(e){return e[1]})),o=[];return r.forEach((function(e){var t=[];e.forEach((function(e){t.push({values:e,xVal:e.data.xVal})})),o.push(t)})),n._isMultiStackChart=!!(o&&o.length>1),{stackedData:o,maxOfYVal:i}},n._createDataSet=function(e){var t=[],r=[],i=[],o=[],a=Jc(e);e&&e.length&&e.forEach((function(e){i.push(e.color),o.push(e.opacity||1),t.push.apply(t,e.data)}));for(var s=t,l=function(){var e=s[0].x instanceof Date?s[0].x.toLocaleString():s[0].x,t=s.filter((function(t){return(t.x instanceof Date?t.x.toLocaleString():t.x)===e})),n={};t.forEach((function(e,t){n.xVal=e.x,n["chart"+t]=e.y})),r.push(n);var i=s[0].x instanceof Date?s[0].x.toLocaleString():s[0].x;s=s.filter((function(e){return(e.x instanceof Date?e.x.toLocaleString():e.x)!==i}))};s.length;)l();for(var u=r&&Object.keys(r[0]).length,c=[],d=0;d<u-1;d++){var h="chart"+d;c.push(h)}var p=n._getStackedData(c,r);return{colors:i,opacity:o,keys:c,stackedInfo:p,calloutPoints:a}},n._getCustomizedCallout=function(){return n.props.onRenderCalloutPerStack?n.props.onRenderCalloutPerStack(n.state.stackCalloutProps):n.props.onRenderCalloutPerDataPoint?n.props.onRenderCalloutPerDataPoint(n.state.dataPointCalloutProps):null},n._getGraphData=function(e,t,r,i,o){n._chart=n._drawGraph(r,e,t,o)},n._getLegendData=function(e){var t=[];return e.forEach((function(e){var r=e.color;if(!(t.filter((function(t){return t.title===e.legend&&t.color===r})).length>0)){var i={title:e.legend,color:r,action:function(){n._onLegendClick(e.legend)},hoverAction:function(){n._handleChartMouseLeave(),n._onLegendHover(e.legend)},onMouseOutAction:function(){n._onLegendLeave()}};t.push(i)}})),s.createElement(Bh,i({legends:t,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){return n._isMultiStackChart?n._legendHighlighted(e)||n._noLegendHighlighted()?.7:.1:.7},n._getLineOpacity=function(e){if(n._isMultiStackChart){var t=.3;return n.state.isCalloutVisible&&(t=1),n._noLegendHighlighted()||(t=n._legendHighlighted(e)?0:.1),t}return 1},n._updateCircleFillColor=function(e,t,r){var i=t;return n.state.nearestCircleToHighlight!==e&&n.state.activePoint!==r||(n._highlightedCircleId=r,n.state.isCircleClicked||(i=n.props.theme.palette.white)),i},n._drawGraph=function(e,t,r,o){var a,l=n._addDefaultColors(n.props.data.lineChartData),u=n.props.data,c=u.pointOptions,d=u.pointLineOptions,h=gf().x((function(e){return t(e.xVal)})).y0((function(e){return r(e.values[0])})).y1((function(e){return r(e.values[1])})).curve(Cf),p=Np().x((function(e){return t(e.xVal)})).y((function(e){return r(e.values[1])})).curve(Cf),f=[];n._stackedData.forEach((function(e,o){f.push(s.createElement(s.Fragment,{key:o+"-graph-"+n._uniqueIdForGraph},s.createElement("path",i({id:o+"-line-"+n._uniqueIdForGraph,d:p(e),fill:"transparent",strokeWidth:3,stroke:n._colors[o],opacity:n._getLineOpacity(l[o].legend),onMouseMove:n._onRectMouseMove,onMouseOut:n._onRectMouseOut,onMouseOver:n._onRectMouseMove},l[o].lineOptions)),1===e.length?s.createElement("circle",{id:o+"-graph-"+n._uniqueIdForGraph,cx:t(e[0].xVal),cy:r(e[0].values[1]),r:6,stroke:n._colors[o],strokeWidth:3,fill:n._colors[o],opacity:n._opacity[o],fillOpacity:n._getOpacity(l[o].legend),onMouseMove:n._onRectMouseMove,onMouseOut:n._onRectMouseOut,onMouseOver:n._onRectMouseMove}):s.createElement("path",i({id:o+"-graph-"+n._uniqueIdForGraph,d:h(e),fill:n._colors[o],opacity:n._opacity[o],fillOpacity:n._getOpacity(l[o].legend),onMouseMove:n._onRectMouseMove,onMouseOut:n._onRectMouseOut,onMouseOver:n._onRectMouseMove},n.props.optimizeLargeData&&{"data-is-focusable":!0,role:"img","aria-label":l[o].legend+", series "+(o+1)+" of "+l.length+" with "+l[o].data.length+" data points."}))))}));var g=c&&c.r?Number(c.r):8;n._stackedData.forEach((function(e,o){l.length!==o&&(n.props.optimizeLargeData&&1!==e.length?e.forEach((function(e,u){var d=e.xVal instanceof Date?e.xVal.getTime():e.xVal;if(n.state.nearestCircleToHighlight===d){var h=n._circleId+"_"+(o*n._stackedData[0].length+u);a=l[o].color,f.push(s.createElement("circle",i({key:h,id:h,cx:t(e.xVal),cy:r(e.values[1]),stroke:a,strokeWidth:3,fill:n._updateCircleFillColor(d,a,h),onMouseOut:n._onRectMouseOut,onMouseOver:n._onRectMouseMove,onClick:n._onDataPointClick.bind(n,l[o].data[u].onDataPointClick)},c,{r:n._getCircleRadius(d,g,h)})))}})):f.push(s.createElement("g",{key:o+"-dots-"+n._uniqueIdForGraph,d:h(e),clipPath:"url(#clip)"},e.map((function(e,u){var d=n._circleId+"_"+(o*n._stackedData[0].length+u),h=e.xVal instanceof Date?e.xVal.getTime():e.xVal;return a=l[o].color,s.createElement("circle",i({key:d,id:d,"data-is-focusable":!0,cx:t(e.xVal),cy:r(e.values[1]),stroke:a,strokeWidth:3,fill:n._updateCircleFillColor(h,a,d),onMouseOut:n._onRectMouseOut,onMouseOver:n._onRectMouseMove,onClick:n._onDataPointClick.bind(n,l[o].data[u].onDataPointClick),onFocus:function(){return n._handleFocus(o,u,d)},onBlur:n._handleBlur},c,{r:n._getCircleRadius(h,g,d),role:"img","aria-label":n._getAriaLabel(o,u)}))})))))})),f.push(s.createElement("line",i({id:n._verticalLineId,key:n._verticalLineId,x1:n.state.lineXValue,y1:0,x2:n.state.lineXValue,y2:e,strokeWidth:1,strokeDasharray:5.5,stroke:a,opacity:.5,visibility:n.state.displayOfLine},d)));var m=kf(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=Ic(o).call(t);try{document.getElementById(n._tooltipId)&&document.getElementById(n._tooltipId).remove()}catch(e){}var _={tooltipCls:m.tooltip,id:n._tooltipId,xAxis:v};v&&ed(_)}return f},n._getCircleRadius=function(e,t,r){var i=n.state,o=i.isCircleClicked,a=i.nearestCircleToHighlight,s=i.activePoint;return o&&a===e?1:a===e||s===r?t:0},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},n._legendHighlighted=function(e){return n.state.selectedLegend===e||""===n.state.selectedLegend&&n.state.activeLegend===e},n._noLegendHighlighted=function(){return""===n.state.selectedLegend&&""===n.state.activeLegend},n._addDefaultColors=function(e){return e?e.map((function(e,t){var r,o,a;return a=void 0===e.color?of(t,0,null===(r=n.props.theme)||void 0===r?void 0:r.isInverted):af(e.color,null===(o=n.props.theme)||void 0===o?void 0:o.isInverted),i(i({},e),{color:a})})):[]},n._handleFocus=function(e,t,r){var i=n.props.data.lineChartData[e].data[t],o=i.x,a=i.y,s=i.xAxisCalloutData,l=o instanceof Date?o.toLocaleString():o,u=o instanceof Date?o.getTime():o,c=n._calloutPoints.find((function(e){return e.x===u}));c.values=c.values.filter((function(e){return e.y===a})),n.setState({refSelected:"#"+r,isCalloutVisible:!0,hoverXValue:s||l,YValueHover:c.values,stackCalloutProps:c,dataPointCalloutProps:c,activePoint:r})},n._handleBlur=function(){n.setState({refSelected:null,isCalloutVisible:!1,hoverXValue:void 0,YValueHover:[],stackCalloutProps:void 0,dataPointCalloutProps:void 0,activePoint:""})},n._getAriaLabel=function(e,t){var r,i=n.props.data.lineChartData[e],o=i.data[t],a=o.x instanceof Date?o.x.toLocaleString():o.x,s=o.xAxisCalloutData||a,l=i.legend,u=o.yAxisCalloutData||o.y;return(null===(r=o.callOutAccessibilityData)||void 0===r?void 0:r.ariaLabel)||s+". "+l+", "+u+"."},n._createSet=jn(n._createDataSet),n.state={selectedLegend:"",activeLegend:"",hoverXValue:"",isCalloutVisible:!1,refSelected:null,YValueHover:[],lineXValue:0,displayOfLine:Ef.hide,isCircleClicked:!1,nearestCircleToHighlight:null,isShowCalloutPending:!1,activePoint:""},di("AREA CHART",t,{showYAxisGridLines:"Dont use this property. Lines are drawn by default"}),n._uniqueIdForGraph=ge("areaChart_"),n._verticalLineId=ge("verticalLine_"),n._circleId=ge("circle"),n._rectId=ge("rectangle"),n._tooltipId=ge("AreaChartTooltipID"),n}return r(t,e),t.prototype.componentDidUpdate=function(){this.state.isShowCalloutPending&&this.setState({refSelected:"#"+this._highlightedCircleId,isCalloutVisible:!0,isShowCalloutPending:!1})},t.prototype.render=function(){var e=this,t=this.props.data,n=t.lineChartData,r=t.chartTitle,o=this._addDefaultColors(n),a=this._createSet(o),l=a.colors,u=a.opacity,c=a.stackedInfo,d=a.calloutPoints;this._calloutPoints=d;var h=td(o);this._colors=l,this._opacity=u,this._stackedData=c.stackedData;var p=this._getLegendData(o),f={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat},g=i({target:this.state.refSelected,isCalloutVisible:this.state.isCalloutVisible,directionalHint:3,YValueHover:this.state.YValueHover,hoverXValue:this.state.hoverXValue,id:"toolTip"+this._uniqueCallOutID,gapSpace:15,isBeakVisible:!1,onDismiss:this._closeCallout,"data-is-focusable":!0,xAxisCalloutAccessibilityData:this.state.xAxisCalloutAccessibilityData},this.props.calloutProps);return s.createElement(Vp,i({},this.props,{chartTitle:r,points:o,chartType:Wc.AreaChart,calloutProps:g,legendBars:p,isCalloutForStack:!0,xAxisType:h?zc.DateAxis:zc.NumericAxis,tickParams:f,maxOfYVal:c.maxOfYVal,getGraphData:this._getGraphData,getmargins:this._getMargins,customizedCallout:this._getCustomizedCallout(),onChartMouseLeave:this._handleChartMouseLeave,children:function(t){e._xAxisRectScale=t.xScale;var n=e._xAxisRectScale.ticks(),r=e._xAxisRectScale(n[n.length-1]),i=t.containerHeight-e.margins.top;return s.createElement(s.Fragment,null,s.createElement("g",null,s.createElement("rect",{id:e._rectId,width:r,height:i,fill:"transparent",onMouseMove:e._onRectMouseMove,onMouseOut:e._onRectMouseOut,onMouseOver:e._onRectMouseMove})),s.createElement("g",null,e._chart))}}))},t.prototype._onLegendClick=function(e){this.state.selectedLegend===e?this.setState({selectedLegend:""}):this.setState({selectedLegend:e})},t.prototype._onLegendHover=function(e){this.setState({activeLegend:e})},t.prototype._onLegendLeave=function(){this.setState({activeLegend:""})},t}(s.Component),Af=C(Lf,(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"})}})),wf=function(e){return{root:{fill:e.color,stroke:Fn.white,strokeWidth:2}}},Df=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={},t.updateChart=function(e){Mf(e)},t}return r(t,e),t.getDerivedStateFromProps=function(e){return Mf(e),null},t.prototype.render=function(){var e,t=this.props,n=t.color,r=t.arc,i=ue()(wf,{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:yp()},t}(s.Component),Tf=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.render=function(){var t=this.props,n=t.data,r=t.arc,i=t.culture,o=r.centroid(n),a="translate("+o[0]+", "+o[1]+")";return s.createElement("g",{className:"arc"},e.prototype.render.call(this),s.createElement("text",{transform:a,textAnchor:"middle"},n.data.x,"-",cd(n.data.y,i)))},t}(Df);function Mf(e){e.arc.innerRadius(e.innerRadius),e.arc.outerRadius(e.outerRadius)}var Pf,Nf=function(e){function t(t){var n=e.call(this,t)||this;return n.arcGenerator=function(e,t){return s.createElement(Tf,{culture:n.props.culture,key:t,data:e,innerRadius:n.props.innerRadius,outerRadius:n.props.outerRadius,color:""+n.colors(t)})},n}return r(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.pie,r=t.colors,i=t.data,o=t.width,a=t.height,l=t.chartTitle;this.colors=Eu().range(r);var u=n(i),c="translate("+o/2+", "+a/2+")";return s.createElement("svg",{width:o,height:a,"aria-label":l},s.createElement("g",{transform:c},u.map((function(t,n){return e.arcGenerator(t,n)}))))},t.defaultProps={pie:ip().sort(null).value((function(e){return e.y}))},t}(s.Component),Ff=ue(),If=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.render=function(){var e=this.props,t=e.data,n=e.width,r=e.height,i=e.colors,o=e.chartTitle,a=this.props,l=a.theme,u=a.className,c=a.styles,d=a.culture;this._classNames=Ff(c,{theme:l,width:n,height:r,className:u});var h=Math.min(n,r)/2-10;return s.createElement("div",{className:this._classNames.root},this.props.chartTitle&&s.createElement("p",{className:this._classNames.chartTitle},this.props.chartTitle),s.createElement(Nf,{culture:d,width:n,height:r,outerRadius:h,innerRadius:0,data:t,colors:i,chartTitle:o}))},t.defaultProps={data:[],width:600,height:350},t}(s.Component),Of=C(If,(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)]}})),Vf=ue(),Hf=function(e){function t(t){var n=e.call(this,t)||this;return n._handleChartMouseLeave=function(){n._calloutAnchorPoint=null,n.setState({isCalloutVisible:!1})},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},n._legendHighlighted=function(e){return n.state.selectedLegend===e||""===n.state.selectedLegend&&n.state.activeLegend===e},n._noLegendHighlighted=function(){return""===n.state.selectedLegend&&""===n.state.activeLegend},n._getAriaLabel=function(e){var t,n=e.xAxisCalloutData||e.legend,r=e.yAxisCalloutData||e.data||0;return(null===(t=e.callOutAccessibilityData)||void 0===t?void 0:t.ariaLabel)||(n?n+", ":"")+r+"."},n.state={isCalloutVisible:!1,selectedLegend:"",activeLegend:"",refSelected:null,dataForHoverCard:0,color:"",xCalloutValue:"",yCalloutValue:"",calloutLegend:""},n._refArray=[],n._onLeave=n._onLeave.bind(n),n._refCallback=n._refCallback.bind(n),n._onBarLeave=n._onBarLeave.bind(n),n._calloutId=ge("callout"),n}return r(t,e),t.prototype.render=function(){this._adjustProps();var e=this.props,t=e.data,n=e.benchmarkData,r=e.targetData,o=e.hideNumberDisplay,a=e.ignoreFixStyle,l=e.culture,u=this.props.theme.palette,c=a||t.chartData.length>2?this.props.barHeight:12;n&&(n.color=n.color||u.neutralTertiary),r&&(r.color=r.color||u.neutralSecondary);var d=this._createBarsAndLegends(t,c,u,n,r),h=!1===o&&!a&&2===t.chartData.length,p=!1===o&&!a&&1===t.chartData.length,f=t.chartData.reduce((function(e,t){return e+(t.data?t.data:0)}),0),g=0;n&&f&&(g=n.data/f*100);var m=0;r&&f&&(m=r.data/f*100);var v=!1===this.props.hideLegend&&(a||t.chartData.length>2);this._classNames=Vf(this.props.styles,{legendColor:this.state.color,theme:this.props.theme,benchmarkColor:n?n.color:"",benchmarkRatio:g,targetColor:r?r.color:"",targetRatio:m,showTriangle:!(!n&&!r)});var _=function(){return cd(t.chartData[0].data?t.chartData[0].data:0,l)};return s.createElement("div",{className:this._classNames.root,onMouseLeave:this._handleChartMouseLeave},s.createElement(Vd,{direction:sd.horizontal},s.createElement("div",{className:this._classNames.chartTitle},t.chartTitle&&s.createElement(Xd,{overflowMode:Pd.Self,hostClassName:this._classNames.chartTitleLeft,content:t.chartTitle},s.createElement("span",i({},ud(t.chartTitleAccessibilityData)),t.chartTitle)),h&&s.createElement("div",i({},ud(t.chartDataAccessibilityData)),s.createElement("span",{className:this._classNames.ratioNumerator},_()),!this.props.hideDenominator&&s.createElement("span",{className:this._classNames.ratioDenominator}," / "+cd(f,l))),p&&s.createElement("div",i({className:this._classNames.ratioNumerator},ud(t.chartDataAccessibilityData)),_())),(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(Vd,{direction:sd.horizontal},s.createElement("div",null,s.createElement("svg",{className:this._classNames.chart,"aria-label":null==t?void 0:t.chartTitle},s.createElement("g",null,d[0]),s.createElement(Ci,i({gapSpace:15,isBeakVisible:!1,target:this.state.refSelected,setInitialFocus:!0,hidden:!(!this.props.hideTooltip&&this.state.isCalloutVisible),directionalHint:3,id:this._calloutId,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0,shouldUpdateWhenHidden:!0},this.props.calloutProps,ud(this.state.callOutAccessibilityData,"text",!1)),s.createElement(s.Fragment,null,this.props.onRenderCalloutPerDataPoint?this.props.onRenderCalloutPerDataPoint(this.state.dataPointCalloutProps):s.createElement(fd,{Legend:this.state.xCalloutValue?this.state.xCalloutValue:this.state.calloutLegend,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard,color:this.state.color,culture:l})))))),v&&s.createElement("div",{className:this._classNames.legendContainer},d[1]))},t.prototype._adjustProps=function(){this._classNames=Vf(this.props.styles,{legendColor:this.state.color,theme:this.props.theme,width:this.props.width,barHeight:this.props.barHeight,className:this.props.className})},t.prototype._createBarsAndLegends=function(e,t,n,r,o){var a=this,l=[n.blueLight,n.blue,n.blueMid,n.red,n.black],u=[],c=[],d=e.chartData.reduce((function(e,t){return e+(t.data?t.data:0)}),0),h=0,p=0,f=0;e.chartData.map((function(e,t){var n=e.data?e.data:0;return(p=n/d*100)<1&&0!==p?p=1:p>99&&100!==p&&(p=99),f+=p}));var g=0!==f?f/100:1,m=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._handleChartMouseLeave(),a._onHover(e.legend)}:void 0,onMouseOutAction:d>0?function(){a._onLeave()}:void 0};e.placeHolder||u.push(o),n>0&&(h+=p),(p=i/d*100)<1&&0!==p?p=1/g:p>99&&100!==p?p=99/g:p/=g,c.push(h);var f=a.props.styles,m=!(!a._legendHighlighted(e.legend)&&!a._noLegendHighlighted());return a._classNames=Vf(f,{theme:a.props.theme,shouldHighlight:m,href:a.props.href}),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":a._getAriaLabel(e),role:"img",onMouseOver:a._onBarHover.bind(a,i,r,e),onMouseMove:a._onBarHover.bind(a,i,r,e),onMouseLeave:a._onBarLeave,pointerEvents:"all",onClick:a.props.href?a._redirectToUrl.bind(a,a.props.href):e.onClick},s.createElement("rect",{key:n,x:c[n]+"%",y:0,width:p+"%",height:t,fill:r}))}));this._addLegend(u,r),this._addLegend(u,o);var v=s.createElement(Bh,i({legends:u,enabledWrapLines:this.props.enabledLegendsWrapLines,overflowProps:this.props.legendsOverflowProps,focusZonePropsInHoverCard:this.props.focusZonePropsForLegendsInHoverCard,overflowText:this.props.legendsOverflowText},this.props.legendProps));return[0===d?[this._generateEmptyBar(t,this.props.barBackgroundColor?this.props.barBackgroundColor:n.neutralLight)]:m,v]},t.prototype._onBarFocus=function(e,t,n){var r=this;this._refArray.forEach((function(i){i.index===n.legend&&r.setState({refSelected:i.refElement,isCalloutVisible:""===r.state.selectedLegend||r.state.selectedLegend===n.legend,calloutLegend: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.selectedLegend===e?this.setState({selectedLegend:""}):this.setState({selectedLegend:e})},t.prototype._onHover=function(e){this.setState({activeLegend:e})},t.prototype._onLeave=function(){this.setState({activeLegend:""})},t.prototype._onBarHover=function(e,t,n,r){r.persist(),this._calloutAnchorPoint!==n&&(this._calloutAnchorPoint=n,this.setState({refSelected:r,isCalloutVisible:""===this.state.selectedLegend||this.state.selectedLegend===n.legend,calloutLegend:n.legend,dataForHoverCard:e,color:t,xCalloutValue:n.xAxisCalloutData,yCalloutValue:n.yAxisCalloutData,dataPointCalloutProps:n,callOutAccessibilityData:n.callOutAccessibilityData}))},t.prototype._onBarLeave=function(){},t.prototype._redirectToUrl=function(e){e&&(window.location.href=e)},t.defaultProps={barHeight:12,hideNumberDisplay:!1,hideLegend:!1,ignoreFixStyle:!1},t}(s.Component),Rf=C(Hf,(function(e){var t,n,r=e.className,o=e.width,a=e.barHeight,s=e.shouldHighlight,l=e.theme,u=e.href,c=e.benchmarkColor,d=e.benchmarkRatio,h=e.targetColor,p=e.targetRatio,f=e.showTriangle;return{root:[l.fonts.medium,"ms-StackedBarChart",{width:o||"100%",display:"flex",flexDirection:"column"},r],chart:{width:"100%",height:a||12,display:"block",marginBottom:f?"16px":"10px"},chartTitle:i(i({},l.fonts.small),{display:"flex",justifyContent:"space-between"}),chartTitleLeft:{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",display:"block",color:l.palette.neutralPrimary,marginBottom:"5px"},legendContainer:{margin:"4px 0px 0px 4px"},opacityChangeOnHover:{opacity:s?"":"0.1",cursor:u?"pointer":"default",stroke:l.palette.white,strokeWidth:2,selectors:{"&:focus":{stroke:l.palette.black,strokeWidth:"2px"}}},ratioNumerator:{fontSize:Tn.medium,fontWeight:Mn.semibold,color:l.palette.neutralPrimary},ratioDenominator:{fontSize:Tn.medium,color:l.palette.neutralPrimary},benchmarkContainer:{position:"relative",height:"7px",marginTop:"-3px",marginBottom:"-1px"},benchmark:{position:"absolute",left:"calc("+d+"% - 4px)",width:"0",height:"0",borderLeft:"4px solid transparent",borderRight:"4px solid transparent",borderTop:"7px solid",borderTopColor:c,marginBottom:"4px",selectors:(t={},t[On]={border:"0px",height:"7px",width:"7px",clipPath:"polygon(50% 100%, 0 0, 100% 0)",backgroundImage:"linear-gradient(to right, "+c+", "+c+")"},t)},target:{position:"absolute",left:"calc("+p+"% - 4px)",width:"0",height:"0",borderLeft:"4px solid transparent",borderRight:"4px solid transparent",borderTop:"7px solid",borderTopColor:h,marginBottom:"4px",selectors:(n={},n[On]={border:"0px",height:"7px",width:"7px",clipPath:"polygon(50% 100%, 0 0, 100% 0)",backgroundImage:"linear-gradient(to right, "+h+", "+h+")"},n)}}}));!function(e){e.PartToWhole="part-to-whole",e.AbsoluteScale="absolute-scale"}(Pf||(Pf={}));var Bf,Wf=ue(),zf=function(e){function t(t){var n=e.call(this,t)||this;return n._isRTL=oe(),n._adjustProps=function(){var e=n.props,t=e.theme,r=e.className,i=e.styles,o=e.width,a=e.barHeight;n._classNames=Wf(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._handleChartMouseLeave(),n._onHover(e.legend)},onMouseOutAction:function(){n._onLeave()}};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._handleChartMouseLeave(),n._onHover(e.legend)},onMouseOutAction:function(){n._onLeave()}};a.push(r)}}))})),s.createElement(Bh,i({legends:a,overflowProps:n.props.legendsOverflowProps,focusZonePropsInHoverCard:n.props.focusZonePropsForLegendsInHoverCard,overflowText:n.props.legendsOverflowText},n.props.legendProps))},n._handleChartMouseLeave=function(){n._calloutAnchorPoint=null,n.setState({isCalloutVisible:!1})},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},n._legendHighlighted=function(e){return n.state.selectedLegend===e||""===n.state.selectedLegend&&n.state.activeLegend===e},n._noLegendHighlighted=function(){return""===n.state.selectedLegend&&""===n.state.activeLegend},n._getAriaLabel=function(e){var t,n=e.xAxisCalloutData||e.legend,r=e.yAxisCalloutData||e.data||0;return(null===(t=e.callOutAccessibilityData)||void 0===t?void 0:t.ariaLabel)||(n?n+", ":"")+r+"."},n._computeLongestBarTotalValue=function(){var e=0;return n.props.data.forEach((function(t){var n=t.chartData.reduce((function(e,t){return e+(t.data?t.data:0)}),0);e=Math.max(e,n)})),e},n.state={isCalloutVisible:!1,refArray:[],selectedLegend:"",activeLegend:"",refSelected:null,dataForHoverCard:0,color:"",xCalloutValue:"",yCalloutValue:"",calloutLegend:""},n._onLeave=n._onLeave.bind(n),n._onBarLeave=n._onBarLeave.bind(n),n._calloutId=ge("callout"),n}return r(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.data,r=t.theme,o=t.culture;this._adjustProps();var a=r.palette,l=this._getLegendData(n,this.props.hideRatio,a),u=this.state.isCalloutVisible;this._classNames=Wf(this.props.styles,{legendColor:this.state.color,theme:r,variant:this.props.variant,hideLabels:this.props.hideLabels});var c=this.state.xCalloutValue?this.state.xCalloutValue:this.state.calloutLegend,d=this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard;this._longestBarTotalValue=this._computeLongestBarTotalValue();var h=n.map((function(t,n){var r=e._createBarsAndLegends(t,e.props.barHeight,a,e.props.hideRatio[n],e.props.hideDenominator[n],e.props.href);return s.createElement("div",{key:n},r)}));return s.createElement("div",{className:this._classNames.root,onMouseLeave:this._handleChartMouseLeave},h,!this.props.hideLegend&&s.createElement("div",{className:this._classNames.legendContainer},l),s.createElement(Ci,i({gapSpace:15,isBeakVisible:!1,target:this.state.refSelected,setInitialFocus:!0,hidden:!(!this.props.hideTooltip&&u),directionalHint:3,id:this._calloutId,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0,shouldUpdateWhenHidden:!0},this.props.calloutProps,ud(this.state.callOutAccessibilityData,"text",!1)),s.createElement(s.Fragment,null,this.props.onRenderCalloutPerDataPoint?this.props.onRenderCalloutPerDataPoint(this.state.dataPointCalloutProps):s.createElement(fd,{Legend:c,YValue:d,color:this.state.color,culture:o}))))},t.prototype._createBarsAndLegends=function(e,t,n,r,o,a){var l=this,u=this.props.culture,c=[n.blueLight,n.blue,n.blueMid,n.red,n.black],d=[],h=e.chartData.reduce((function(e,t){return e+(t.data?t.data:0)}),0),p=this.props.variant===Pf.AbsoluteScale?this._longestBarTotalValue:h,f=0;if(e.chartData.map((function(e,t){var n=e.data?e.data:0;return(_=n/p*100?n/p*100:0)<1&&0!==_?_=1:_>99&&100!==_&&(_=99),f+=_})),this.props.variant===Pf.AbsoluteScale){var g=0===p?0:(p-h)/p*100;g<1&&0!==g?g=1:g>99&&100!==g&&(g=99),f+=g}var m=0!==f?f/100:1,v=0,_=0,y=e.chartData.map((function(e,r){var i=e.color?e.color:e.placeHolder?n.neutralLight:c[Math.floor(4*Math.random()+1)],o=e.data?e.data:0;r>0&&(v+=_),(_=o/p*100?o/p*100:0)<1&&0!==_?_=1/m:_>99&&100!==_?_=99/m:_/=m,d.push(v);var u=l.props.styles,h=!(!l._legendHighlighted(e.legend)&&!l._noLegendHighlighted());return l._classNames=Wf(u,{theme:l.props.theme,shouldHighlight:h,href:a,variant:l.props.variant,hideLabels:l.props.hideLabels}),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,role:"img","aria-label":l._getAriaLabel(e),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:(l._isRTL?100-d[r]-_:d[r])+"%",y:0,width:_+"%",height:t,fill:i}))}));this.props.variant===Pf.AbsoluteScale?this.props.hideLabels||y.push(s.createElement("text",{key:"text",x:(this._isRTL?100-(d[d.length-1]||0)-_:(d[d.length-1]||0)+_)+"%",y:t/2,dominantBaseline:"central",transform:"translate("+(this._isRTL?-4:4)+")",className:this._classNames.barLabel,"data-is-focusable":!0,"aria-label":"Total: "+h,role:"img"},pa(h<1e3?".2~":".1",h)(h))):(0===e.chartData.length&&y.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.neutralLight}))),0===h&&y.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.neutralLight}))));var x=void 0!==r&&r,b=this.props.variant!==Pf.AbsoluteScale&&!x&&2===e.chartData.length,C=this.props.variant!==Pf.AbsoluteScale&&!x&&1===e.chartData.length,E=function(){return cd(e.chartData[0].data?e.chartData[0].data:0,u)};return s.createElement("div",{className:this._classNames.singleChartRoot},s.createElement(Vd,{direction:sd.horizontal},s.createElement("div",{className:this._classNames.chartTitle},e.chartTitle&&s.createElement(Xd,{overflowMode:Pd.Self,hostClassName:this._classNames.chartTitleLeft,content:e.chartTitle},s.createElement("span",i({},ud(e.chartTitleAccessibilityData)),e.chartTitle)),b&&s.createElement("div",i({},ud(e.chartDataAccessibilityData)),s.createElement("span",{className:this._classNames.ratioNumerator},E()),!o&&s.createElement("span",{className:this._classNames.ratioDenominator}," / "+cd(h,u))),C&&s.createElement("div",i({className:this._classNames.ratioNumerator},ud(e.chartDataAccessibilityData)),E()))),s.createElement(Vd,{direction:sd.horizontal},s.createElement("div",{className:this._classNames.chartWrapper},s.createElement("svg",{className:this._classNames.chart,"aria-label":null==e?void 0:e.chartTitle},y))))},t.prototype._onBarFocus=function(e,t,n){var r=this;this.state.refArray.forEach((function(i){i.legendText===n.legend&&r.setState({refSelected:i.refElement,isCalloutVisible:""===r.state.selectedLegend||r.state.selectedLegend===n.legend,calloutLegend: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){this.setState({activeLegend:e})},t.prototype._onClick=function(e){this.state.selectedLegend===e?this.setState({selectedLegend:""}):this.setState({selectedLegend:e})},t.prototype._onLeave=function(){this.setState({activeLegend:""})},t.prototype._onBarHover=function(e,t,n,r){r.persist(),this._calloutAnchorPoint!==n&&(this._calloutAnchorPoint=n,this.setState({refSelected:r,isCalloutVisible:""===this.state.selectedLegend||this.state.selectedLegend===n.legend,calloutLegend:n.legend,dataForHoverCard:e,color:t,xCalloutValue:n.xAxisCalloutData,yCalloutValue:n.yAxisCalloutData,dataPointCalloutProps:n,callOutAccessibilityData:n.callOutAccessibilityData}))},t.prototype._onBarLeave=function(){},t.prototype._redirectToUrl=function(e){e&&(window.location.href=e)},t.defaultProps={barHeight:12,hideRatio:[],hideDenominator:[]},t}(s.Component),Uf=C(zf,(function(e){var t=e.className,n=e.width,r=e.barHeight,o=e.shouldHighlight,a=e.theme,s=e.href,l=e.variant,u=e.hideLabels;return{root:[a.fonts.medium,"ms-StackedBarChart",{display:"flex",flexDirection:"column",width:n||"100%"},t],items:{marginBottom:"11px"},chart:{width:"100%",height:r||12,display:"block",overflow:"visible"},chartTitle:i(i({},a.fonts.small),{display:"flex",justifyContent:"space-between"}),chartTitleLeft:{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",display:"block",color:a.palette.neutralPrimary,marginBottom:l===Pf.AbsoluteScale?"4px":"5px"},singleChartRoot:{width:n||"100%",display:"flex",flexDirection:"column",marginBottom:l===Pf.AbsoluteScale?"16px":"10px"},opacityChangeOnHover:{opacity:o?"":"0.1",cursor:s?"pointer":"default",stroke:a.palette.white,strokeWidth:2,selectors:{"&:focus":{stroke:a.palette.black,strokeWidth:"2px"}}},ratioNumerator:{fontSize:Tn.medium,fontWeight:Mn.semibold,color:a.palette.neutralPrimary},ratioDenominator:{fontSize:Tn.medium,color:a.palette.neutralPrimary},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"},barLabel:{fontSize:Tn.small,fontWeight:Mn.semibold,fill:a.palette.neutralPrimary},chartWrapper:{paddingRight:l!==Pf.AbsoluteScale||u?0:40}}}));!function(e){e.show="visibility",e.hide="hidden"}(Bf||(Bf={}));var Yf,qf=ue(),jf=function(e){function t(t){var n=e.call(this,t)||this;return n._isRtl=oe(),n._createLine=function(e,t,r,i){var o;void 0===r&&(r=0),void 0===i&&(i=0);var a=n._xAxisType===zc.NumericAxis,l=n._getScales(r,i,a).xBarScale,u=n._createColors(),c=n.props.theme,d=n.props,h=d.data,p=d.lineLegendColor,f=void 0===p?c.palette.yellow:p,g=d.lineLegendText,m=[],v=[];h&&h.forEach((function(e,t){e.lineData&&e.lineData.y&&m.push({x:e.x,y:e.lineData.y,point:e,index:t})}));var _=Np().x((function(t){return a?e(t.x):l(t.x)+.5*l.bandwidth()})).y((function(e){return t(e.y)})),y=!(!n._legendHighlighted(g)&&!n._noLegendHighlighted()),x=(null===(o=n.props.lineOptions)||void 0===o?void 0:o.lineBorderWidth)?Number.parseFloat(n.props.lineOptions.lineBorderWidth.toString()):0;x>0&&v.push(s.createElement("path",{opacity:y?1:.1,d:_(m),fill:"transparent",strokeLinecap:"square",strokeWidth:3+2*x,stroke:c.palette.white})),v.push(s.createElement("path",{opacity:y?1:.1,d:_(m),fill:"transparent",strokeLinecap:"square",strokeWidth:3,stroke:f}));var b=m.map((function(r,i){var o;return s.createElement("circle",{key:i,cx:a?e(r.x):l(r.x)+.5*l.bandwidth(),cy:t(r.y),onMouseOver:n._onBarHover.bind(n,r.point,u(r.y)),onMouseOut:n._onBarLeave,r:8,stroke:f,fill:n.props.theme.palette.white,strokeWidth:3,visibility:n.state.activeXdataPoint===r.x?Bf.show:Bf.hide,onClick:null===(o=r.point.lineData)||void 0===o?void 0:o.onClick})}));return s.createElement(s.Fragment,null,v,b)},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(fd,i({key:t,Legend:e.legend},0===t&&{XValue:""+(o||e.data)},{color:e.color,YValue:e.data||e.y,culture:n.props.culture}))}));return s.createElement(s.Fragment,null,a)},n._renderContentForOnlyBars=function(e){var t=n.props.useSingleColor,r=void 0!==t&&t;return s.createElement(s.Fragment,null,s.createElement(fd,{XValue:e.xAxisCalloutData||e.x,Legend:e.legend,YValue:e.yAxisCalloutData||e.y,color:!r&&e.color?e.color:n._createColors()(e.y),culture:n.props.culture}))},n._renderCallout=function(e){return e?n._isHavingLine?n._renderContentForBothLineAndBars(e):n._renderContentForOnlyBars(e):null},n._getCustomizedCallout=function(){return n.props.onRenderCalloutPerDataPoint?n.props.onRenderCalloutPerDataPoint(n.state.dataPointCalloutProps,n._renderCallout):null},n._getGraphData=function(e,t,r,i,o){return n._bars=n._xAxisType===zc.NumericAxis?n._createNumericBars(r,i,o):n._createStringBars(r,i,o)},n._refCallback=function(e,t){n._refArray.push({index:t,refElement:e})},n._getCalloutContentForLineAndBar=function(e){var t,r,i,o,a=[],s=n.props,l=s.theme,u=s.useSingleColor,c=void 0!==u&&u,d=n.props,h=d.data,p=d.lineLegendText,f=d.lineLegendColor,g=void 0===f?l.palette.yellow:f,m=h.filter((function(t){return t.x===e.x}));return n._isHavingLine&&void 0!==(null===(t=m[0].lineData)||void 0===t?void 0:t.y)&&a.push({legend:p,color:g,y:null===(r=m[0].lineData)||void 0===r?void 0:r.y,data:null===(i=m[0].lineData)||void 0===i?void 0:i.yAxisCalloutData,yAxisCalloutData:null===(o=m[0].lineData)||void 0===o?void 0:o.yAxisCalloutData}),a.push({legend:m[0].legend,y:m[0].y,color:c?n._createColors()(1):m[0].color?m[0].color:n._createColors()(m[0].y),data:m[0].yAxisCalloutData,yAxisCalloutData:m[0].yAxisCalloutData}),{YValueHover:a,hoverXValue:e.xAxisCalloutData||e.x.toString()}},n._onBarLeave=function(){},n._handleChartMouseLeave=function(){n._calloutAnchorPoint=null,n.setState({isCalloutVisible:!1,activeXdataPoint:null,YValueHover:[],hoverXValue:""})},n._onBarFocus=function(e,t,r){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:""===n.state.selectedLegend||n.state.selectedLegend===e.legend,calloutLegend: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=Ri(n._points,(function(e){return e.x})),o=Bi(n._points,(function(e){return e.x}));return{xBarScale:va().domain(n._isRtl?[i,o]:[o,i]).nice().range([n.margins.left+n._domainMargin,t-n.margins.right-n._barWidth-n._domainMargin]),yBarScale:va().domain([0,n._yMax]).range([0,e-n.margins.bottom-n.margins.top])}}return{xBarScale:ku().domain(n._xAxisLabels).range([n.margins.left+n._domainMargin,t-n.margins.right-n._domainMargin]).paddingInner(2/3),yBarScale:va().domain([0,n._yMax]).range([0,e-n.margins.bottom-n.margins.top])}},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},n._getLegendData=function(e,t){var r=n.props,o=r.theme,a=r.useSingleColor,l=n.props,u=l.lineLegendText,c=l.lineLegendColor,d=void 0===c?o.palette.yellow:c,h=[];if(e.forEach((function(e,t){var r=a?n._createColors()(1):e.color,i={title:e.legend,color:r,action:function(){n._onLegendClick(e.legend)},hoverAction:function(){n._handleChartMouseLeave(),n._onLegendHover(e.legend)},onMouseOutAction:function(){n._onLegendLeave()}};h.push(i)})),n._isHavingLine&&u&&d){var p={title:u,color:d,action:function(){n._onLegendClick(u)},hoverAction:function(){n._handleChartMouseLeave(),n._onLegendHover(u)},onMouseOutAction:function(){n._onLegendLeave()},isLineLegendInBarChart:!0};h.unshift(p)}return s.createElement(Bh,i({legends:h,enabledWrapLines:n.props.enabledLegendsWrapLines,overflowProps:n.props.legendsOverflowProps,focusZonePropsInHoverCard:n.props.focusZonePropsForLegendsInHoverCard,overflowText:n.props.legendsOverflowText},n.props.legendProps))},n._getAxisData=function(e){if(e&&e.yAxisDomainValues.length){var t=e.yAxisDomainValues;n._yMax=Math.max(t[t.length-1],n.props.yMaxValue||0)}},n._legendHighlighted=function(e){return n.state.selectedLegend===e||""===n.state.selectedLegend&&n.state.activeLegend===e},n._noLegendHighlighted=function(){return""===n.state.selectedLegend&&""===n.state.activeLegend},n._getAriaLabel=function(e){var t,r,i,o=e.xAxisCalloutData||e.x,a=e.legend,s=e.yAxisCalloutData||e.y,l=n.props.lineLegendText||"Line",u=(null===(t=e.lineData)||void 0===t?void 0:t.yAxisCalloutData)||(null===(r=e.lineData)||void 0===r?void 0:r.y);return(null===(i=e.callOutAccessibilityData)||void 0===i?void 0:i.ariaLabel)||o+". "+(a?a+", ":"")+s+"."+(void 0!==u?" "+l+", "+u+".":"")},n._getDomainMargins=function(e){if(n._xAxisType!==zc.NumericAxis){var t=e-(n.margins.left+8)-(n.margins.right+8),r=Math.min(n.props.barWidth||16,24),o=(3*n._xAxisLabels.length-2)*r;n._domainMargin=8,t>=o?n._domainMargin+=(t-o)/2:r=t/(3*n._xAxisLabels.length-2),n._barWidth=r}return i(i({},n.margins),{left:n.margins.left+n._domainMargin,right:n.margins.right+n._domainMargin})},n.state={color:"",dataForHoverCard:0,isCalloutVisible:!1,refSelected:null,selectedLegend:"",activeLegend:"",xCalloutValue:"",yCalloutValue:"",activeXdataPoint:null,YValueHover:[],hoverXValue:"",calloutLegend:"",emptyChart:!1},n._isHavingLine=n._checkForLine(),n._calloutId=ge("callout"),n._tooltipId=ge("VCTooltipID_"),n._refArray=[],n._xAxisType=n.props.data&&n.props.data.length>0?ad(n.props.data[0].x,!0):zc.StringAxis,n._domainMargin=8,n}return r(t,e),t.prototype.componentDidMount=function(){var e=this.state.emptyChart||0===this._points.length||Ri(this._points,(function(e){return e.y}))<=0&&!this._isHavingLine;this.state.emptyChart!==e&&this.setState({emptyChart:e})},t.prototype.render=function(){var e=this;this._adjustProps(),this._xAxisLabels=this._points.map((function(e){return e.x})),this._yMax=Math.max(Ri(this._points,(function(e){return e.y})),this.props.yMaxValue||0);var t=this._getLegendData(this._points,this.props.theme.palette);this._classNames=qf(this.props.styles,{theme:this.props.theme,legendColor:this.state.color});var n=i(i(i(i({isCalloutVisible:this.state.isCalloutVisible,directionalHint:3,id:"toolTip"+this._calloutId,target:this.state.refSelected,isBeakVisible:!1},this._isHavingLine&&{YValueHover:this.state.YValueHover,hoverXValue:this.state.hoverXValue}),{gapSpace:15,color:this.state.color,legend:this.state.calloutLegend,XValue:this.state.xCalloutValue,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0}),this.props.calloutProps),ud(this.state.callOutAccessibilityData)),r={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return this.state.emptyChart?s.createElement("div",{id:ge("_VBC_"),role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):s.createElement(Vp,i({},this.props,{points:this._points,chartType:Wc.VerticalBarChart,xAxisType:this._xAxisType,calloutProps:n,tickParams:r},this._isHavingLine&&{isCalloutForStack:!0},{legendBars:t,datasetForXAxisDomain:this._xAxisLabels,barwidth:this._barWidth,focusZoneDirection:sd.horizontal,customizedCallout:this._getCustomizedCallout(),getmargins:this._getMargins,getGraphData:this._getGraphData,getAxisData:this._getAxisData,onChartMouseLeave:this._handleChartMouseLeave,getDomainMargins:this._getDomainMargins},this._xAxisType!==zc.NumericAxis&&{xAxisInnerPadding:2/3,xAxisOuterPadding:0},{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||16;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 va().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;this._calloutAnchorPoint!==e&&(this._calloutAnchorPoint=e,this.setState({refSelected:n,isCalloutVisible:""===this.state.selectedLegend||this.state.selectedLegend===e.legend,dataForHoverCard:e.y,calloutLegend:e.legend,color:e.color||t,xCalloutValue:e.xAxisCalloutData||e.x.toString(),yCalloutValue:e.yAxisCalloutData,dataPointCalloutProps:e,activeXdataPoint:e.x,YValueHover:i,hoverXValue:o,callOutAccessibilityData:e.callOutAccessibilityData}))},t.prototype._createNumericBars=function(e,t,n){var r=this,i=this.props.useSingleColor,o=void 0!==i&&i,a=this._getScales(e,t,!0),l=a.xBarScale,u=a.yBarScale,c=this._createColors(),d=this._points.map((function(t,n){var i=!(!r._legendHighlighted(t.legend)&&!r._noLegendHighlighted());r._classNames=qf(r.props.styles,{theme:r.props.theme,legendColor:r.state.color,shouldHighlight:i});var a=Math.max(u(t.y),0);if(a<1)return s.createElement(s.Fragment,{key:t.x}," ");var d=l(t.x),h=e-r.margins.bottom-u(t.y);return s.createElement("g",{key:t.x},s.createElement("rect",{x:d,className:r._classNames.opacityChangeOnHover,y:h,width:r._barWidth,"data-is-focusable":!r.props.hideTooltip,height:a,ref:function(e){r._refCallback(e,t.legend)},onClick:t.onClick,onMouseOver:r._onBarHover.bind(r,t,c(t.y)),"aria-label":r._getAriaLabel(t),role:"img",onMouseLeave:r._onBarLeave,onFocus:r._onBarFocus.bind(r,t,n,c(t.y)),onBlur:r._onBarLeave,fill:t.color&&!o?t.color:c(t.y)}),r._renderBarLabel(d,h,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=Ic(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(),u=this._points.map((function(t,n){var i=Math.max(a(t.y),0);if(i<1)return s.createElement(s.Fragment,{key:t.x}," ");var u=o(t.x),c=e-r.margins.bottom-a(t.y);return s.createElement("g",{key:t.x,transform:"translate("+.5*(o.bandwidth()-r._barWidth)+", 0)"},s.createElement("rect",{x:u,y:c,width:r._barWidth,height:i,"aria-label":r._getAriaLabel(t),role:"img",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)}),r._renderBarLabel(u,c,t.y))}));if(!this.props.showXAxisLablesTooltip)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(e){}if(!this.props.wrapXAxisLables&&this.props.showXAxisLablesTooltip){var c=Ic(n).call(o);try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(e){}var d={tooltipCls:this._classNames.tooltip,id:this._tooltipId,xAxis:c,showTooltip:this.props.showXAxisLablesTooltip};c&&ed(d)}return u},t.prototype._onLegendClick=function(e){this.state.selectedLegend===e?this.setState({selectedLegend:""}):this.setState({selectedLegend:e})},t.prototype._onLegendHover=function(e){this.setState({activeLegend:e})},t.prototype._onLegendLeave=function(){this.setState({activeLegend:""})},t.prototype._renderBarLabel=function(e,t,n){return this.props.hideLabels||this._barWidth<16?null:s.createElement("text",{x:e+this._barWidth/2,y:t-6,textAnchor:"middle",className:this._classNames.barLabel,"aria-hidden":!0},pa(n<1e3?".2~":".1",n)(n))},t}(s.Component),Xf=C(jf,(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"}),barLabel:{fontSize:Tn.small,fontWeight:Mn.semibold,fill:n.palette.neutralPrimary}}})),Kf=ue();!function(e){e.show="visibility",e.hide="hidden"}(Yf||(Yf={}));var Gf=function(e){function t(t){var n=e.call(this,t)||this;return n._isRtl=oe(),n._toFocusWholeStack=function(e){var t=n.props.isCalloutForStack,r=void 0!==t&&t;return e?""===n.state.selectedLegend: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,l=n._xAxisType===zc.NumericAxis,u=n._getScales(r,o,l).xBarScale,c=n._getFormattedLineData(n.props.data),d=[],h=[],p=[],f=n.props.theme,g=(null===(a=n.props.lineOptions)||void 0===a?void 0:a.lineBorderWidth)?Number.parseFloat(n.props.lineOptions.lineBorderWidth.toString()):0,m=l?0:u.bandwidth()/2;return Object.keys(c).forEach((function(r,o){for(var a=n._legendHighlighted(r)||n._noLegendHighlighted(),p=1;p<c[r].length;p++){var v=l?e(c[r][p-1].xItem.xAxisPoint):u(c[r][p-1].xItem.xAxisPoint),_=t(c[r][p-1].y),y=l?e(c[r][p].xItem.xAxisPoint):u(c[r][p].xItem.xAxisPoint),x=t(c[r][p].y);g>0&&h.push(s.createElement("line",{key:o+"-"+p+"-BorderLine",x1:v,y1:_,x2:y,y2:x,opacity:a?1:.1,strokeWidth:3+2*g,fill:"transparent",strokeLinecap:"round",stroke:f.palette.white,transform:"translate("+m+", 0)"})),d.push(s.createElement("line",i({key:o+"-"+p+"-line",x1:v,y1:_,x2:y,y2:x,opacity:a?1:.1,strokeWidth:3,strokeLinecap:"round",stroke:c[r][p].color,transform:"translate("+m+", 0)"},n.state.selectedLegend===r&&{onMouseOver:n._lineHover.bind(n,c[r][p-1]),onMouseLeave:n._lineHoverOut})))}})),Object.keys(c).forEach((function(r,o){c[r].forEach((function(a,c){p.push(s.createElement("circle",i({key:o+"-"+c+"-dot",cx:l?e(a.xItem.xAxisPoint):u(a.xItem.xAxisPoint),cy:t(a.y),onMouseOver:n.state.selectedLegend===r?n._lineHover.bind(n,a):n._onStackHover.bind(n,a.xItem)},n.state.selectedLegend===r&&{onMouseLeave:n._lineHoverOut},{r:n._getCircleVisibilityAndRadius(a.xItem.xAxisPoint,a.legend).radius,stroke:a.color,fill:n.props.theme.palette.white,strokeWidth:3,visibility:n._getCircleVisibilityAndRadius(a.xItem.xAxisPoint,a.legend).visibility,transform:"translate("+m+", 0)"})))}))})),s.createElement(s.Fragment,null,h,d,p)},n._getCircleVisibilityAndRadius=function(e,t){var r=n.state,i=r.selectedLegend,o=r.activeXAxisDataPoint;return""!==i?e===o&&i===t?{visibility:Yf.show,radius:8}:i===t?{visibility:Yf.show,radius:.3}:{visibility:Yf.hide,radius:0}:{visibility:o===e?Yf.show:Yf.hide,radius:8}},n._getMargins=function(e){n.margins=e},n._getCustomizedCallout=function(){var e=n.props.data.some((function(e){return e.lineData&&e.lineData.length>0}));return n.props.onRenderCalloutPerStack?n.props.onRenderCalloutPerStack(n.state.stackCalloutProps):n.props.onRenderCalloutPerDataPoint&&!e?n.props.onRenderCalloutPerDataPoint(n.state.dataPointCalloutProps,n._renderCallout):null},n._lineHover=function(e,t){t.persist(),n.setState({refSelected:t,isCalloutVisible:!0,xCalloutValue:""+e.xItem.xAxisPoint,yCalloutValue:""+(e.yAxisCalloutData||e.data||e.y),activeXAxisDataPoint:e.xItem.xAxisPoint,color:e.color})},n._lineHoverOut=function(){n.setState({refSelected:null,isCalloutVisible:!1,xCalloutValue:"",yCalloutValue:"",activeXAxisDataPoint:"",color:""})},n._handleMouseOut=function(){},n._handleChartMouseLeave=function(){n._calloutAnchorPoint=null,n.setState({isCalloutVisible:!1,activeXAxisDataPoint:""})},n._createBar=function(e,t,r,o){var a=n.props,l=a.barCornerRadius,u=void 0===l?0:l,c=a.barMinimumHeight,d=void 0===c?0:c,h=n.props.data.some((function(e){return e.lineData&&e.lineData.length>0})),p=n._toFocusWholeStack(h),f=n._points.map((function(o,a){var l=r-n.margins.bottom,c=e((n._xAxisType,zc.NumericAxis,o.xAxisPoint)),h=n._xAxisType===zc.NumericAxis?0:(e.bandwidth()-n._barWidth)/2,f=0,g=o.chartData.filter((function(e){return e.data>0}));if(g.length){var m=n._getBarGapAndScale(g,t),v=m.gapHeight,_=m.heightValueScale;if(!(_<0)){var y=g.map((function(e,t){var r=e.color?e.color:n._colors[t],m={},y=!(!n._legendHighlighted(e.legend)&&!n._noLegendHighlighted());n._classNames=Kf(n.props.styles,{theme:n.props.theme,shouldHighlight:y,href:n.props.href});var x=!p&&{"data-is-focusable":!n.props.hideTooltip,"aria-label":n._getAriaLabel(o,e),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,m),onBlur:n._handleMouseOut,onClick:n._onClick.bind(n,e),role:"img"},b=_*e.data;return b<d&&(b=d),l=l-b-(t?v:0),f+=e.data,u&&b>u&&t===g.length-1?s.createElement("path",i({key:t+a+""+p,className:n._classNames.opacityChangeOnHover,d:"\n M "+c+" "+(l+u)+"\n a "+u+" "+u+" 0 0 1 "+u+" "+-u+"\n h "+(n._barWidth-2*u)+"\n a "+u+" "+u+" 0 0 1 "+u+" "+u+"\n v "+(b-u)+"\n h "+-n._barWidth+"\n z\n ",fill:r,ref:function(e){return m.refElement=e},transform:"translate("+h+", 0)"},x)):b<1?s.createElement(s.Fragment,{key:t+a}," "):s.createElement("rect",i({key:t+a,className:n._classNames.opacityChangeOnHover,x:c,y:l,width:n._barWidth,height:b,fill:r,ref:function(e){return m.refElement=e}},x,{transform:"translate("+h+", 0)"}))})),x={},b=p&&{"data-is-focusable":!n.props.hideTooltip,"aria-label":n._getAriaLabel(o),onMouseOver:n._onStackHover.bind(n,o),onMouseMove:n._onStackHover.bind(n,o),onMouseLeave:n._handleMouseOut,onFocus:n._onStackFocus.bind(n,o,x),onBlur:n._handleMouseOut,onClick:n._onClick.bind(n,o),role:"img"};return s.createElement("g",{key:a+""+p},s.createElement("g",i({id:a+"-singleBar",ref:function(e){return x.refElement=e}},b),y),!n.props.hideLabels&&n._barWidth>=16&&s.createElement("text",{x:c+n._barWidth/2,y:l-6,textAnchor:"middle",className:n._classNames.barLabel,"data-is-focusable":!0,"aria-label":"Total: "+f,role:"img",transform:"translate("+h+", 0)"},pa(f<1e3?".2~":".1",f)(f)))}}}));if(!n.props.showXAxisLablesTooltip)try{document.getElementById(n._tooltipId)&&document.getElementById(n._tooltipId).remove()}catch(e){}if(!n.props.wrapXAxisLables&&n.props.showXAxisLablesTooltip){var g=Ic(o).call(e);try{document.getElementById(n._tooltipId)&&document.getElementById(n._tooltipId).remove()}catch(e){}var m={tooltipCls:n._classNames.tooltip,id:n._tooltipId,xAxis:g};g&&ed(m)}return f.filter((function(e){return!!e}))},n._getScales=function(e,t,r){var i=n._yMax,o=va().domain([0,i]).range([0,e-n.margins.bottom-n.margins.top]);if(r){var a=Ri(n._dataset,(function(e){return e.x})),s=Bi(n._dataset,(function(e){return e.x}));return{xBarScale:va().domain(n._isRtl?[a,s]:[s,a]).nice().range([n.margins.left+n._domainMargin,t-n.margins.right-n._barWidth-n._domainMargin]),yBarScale:o}}return{xBarScale:ku().domain(n._xAxisLabels).range([n.margins.left+n._domainMargin,t-n.margins.right-n._domainMargin]).paddingInner(2/3),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===zc.NumericAxis?n._createNumericBars(r,i,o):n._createStringBars(r,i,o)},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},n._getAxisData=function(e){if(e&&e.yAxisDomainValues.length){var t=e.yAxisDomainValues;n._yMax=Math.max(t[t.length-1],n.props.yMaxValue||0)}},n._legendHighlighted=function(e){return n.state.selectedLegend===e||""===n.state.selectedLegend&&n.state.activeLegend===e},n._noLegendHighlighted=function(){return""===n.state.selectedLegend&&""===n.state.activeLegend},n._getAriaLabel=function(e,t){var n,r,i;if(!t){var o=e.xAxisCalloutData||e.xAxisPoint,a=e.chartData.map((function(e){return e.legend+", "+(e.yAxisCalloutData||e.data)+"."})).join(" "),s=null===(n=e.lineData)||void 0===n?void 0:n.map((function(e){return e.legend+", "+(e.yAxisCalloutData||e.data||e.y)+"."})).join(" ");return(null===(r=e.stackCallOutAccessibilityData)||void 0===r?void 0:r.ariaLabel)||o+". "+a+(s?" "+s:"")}var l=e.xAxisCalloutData||t.xAxisCalloutData||e.xAxisPoint,u=t.legend,c=t.yAxisCalloutData||t.data;return(null===(i=t.callOutAccessibilityData)||void 0===i?void 0:i.ariaLabel)||l+". "+u+", "+c+"."},n._getDomainMargins=function(e){if(n._xAxisType!==zc.NumericAxis){var t=e-(n.margins.left+8)-(n.margins.right+8),r=Math.min(n.props.barWidth||16,24),o=(3*n._xAxisLabels.length-2)*r;n._domainMargin=8,t>=o?n._domainMargin+=(t-o)/2:r=t/(3*n._xAxisLabels.length-2),n._barWidth=r}return i(i({},n.margins),{left:n.margins.left+n._domainMargin,right:n.margins.right+n._domainMargin})},n.state={isCalloutVisible:!1,selectedLegend:"",activeLegend:"",refSelected:null,dataForHoverCard:0,color:"",hoverXValue:"",YValueHover:[],xCalloutValue:"",yCalloutValue:"",activeXAxisDataPoint:"",calloutLegend:""},di("VERTICAL STACKED BAR CHART",t,{colors:"IVSChartDataPoint.color",chartLabel:"use your own title for chart"}),n._handleMouseOut=n._handleMouseOut.bind(n),n._calloutId=ge("callout"),n._tooltipId=ge("VSBCTooltipId_"),n._adjustProps(),n._dataset=n._createDataSetLayer(),n._createLegendsForLine=jn((function(e){return n._getLineLegends(e)})),n._domainMargin=8,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));this._classNames=Kf(this.props.styles,{theme:this.props.theme,href:this.props.href});var l=i(i({isCalloutVisible:this.state.isCalloutVisible,directionalHint:3,id:"toolTip"+this._calloutId,target:this.state.refSelected,isBeakVisible:!1,gapSpace:15,color:this.state.color,legend:this.state.calloutLegend,XValue:this.state.xCalloutValue,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard,YValueHover:this.state.YValueHover,hoverXValue:this.state.hoverXValue,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0},this.props.calloutProps),ud(this.state.callOutAccessibilityData)),u={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return s.createElement(Vp,i({},this.props,{points:this._dataset,chartType:Wc.VerticalStackedBarChart,xAxisType:this._xAxisType,calloutProps:l,tickParams:u,legendBars:a,datasetForXAxisDomain:this._xAxisLabels,isCalloutForStack:n,barwidth:this._barWidth,focusZoneDirection:o||t?sd.horizontal:sd.vertical,getmargins:this._getMargins,getGraphData:this._getGraphData,getAxisData:this._getAxisData,customizedCallout:this._getCustomizedCallout(),onChartMouseLeave:this._handleChartMouseLeave,getDomainMargins:this._getDomainMargins},this._xAxisType!==zc.NumericAxis&&{xAxisInnerPadding:2/3,xAxisOuterPadding:0},{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||16;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(fd,{XValue:e.xAxisCalloutData,Legend:e.legend,YValue:e.yAxisCalloutData,color:e.color,culture:this.props.culture}):null},t.prototype._onLegendClick=function(e){this.state.selectedLegend===e?this.setState({selectedLegend:""}):this.setState({selectedLegend:e})},t.prototype._onLegendHover=function(e){this.setState({activeLegend:e})},t.prototype._onLegendLeave=function(){this.setState({activeLegend:""})},t.prototype._getLegendData=function(e,t,n){var r=this;if(this.props.hideLegend)return s.createElement(s.Fragment,null);var o=[t.blueLight,t.blue,t.blueMid,t.red,t.black],a=[],l=this.props.allowHoverOnLegend,u=void 0===l||l;e.forEach((function(e){e.chartData.forEach((function(e){var t=e.color?e.color:o[Math.floor(4*Math.random()+1)];if(!(a.filter((function(n){return n.title===e.legend&&n.color===t})).length>0)){var n={title:e.legend,color:t,action:function(){r._onLegendClick(e.legend)},hoverAction:u?function(){r._handleChartMouseLeave(),r._onLegendHover(e.legend)}:void 0,onMouseOutAction:u?function(){return r._onLegendLeave()}:void 0};a.push(n)}}))}));var c=[];n&&n.length>0&&n.forEach((function(e){var t={title:e.title,color:e.color,isLineLegendInBarChart:!0,action:function(){r._onLegendClick(e.title)},hoverAction:u?function(){r._handleChartMouseLeave(),r._onLegendHover(e.title)}:void 0,onMouseOutAction:u?function(){return r._onLegendLeave()}:void 0};c.push(t)}));var d=c.concat(a);return s.createElement(Bh,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){this._calloutAnchorPoint!==t&&(this._calloutAnchorPoint=t,this.setState({refSelected:r,isCalloutVisible:""===this.state.selectedLegend||this.state.selectedLegend===t.legend,calloutLegend:t.legend,dataForHoverCard:t.data,color:n,xCalloutValue:t.xAxisCalloutData?t.xAxisCalloutData:e,yCalloutValue:t.yAxisCalloutData,dataPointCalloutProps:t,callOutAccessibilityData:t.callOutAccessibilityData}))},t.prototype._onStackHover=function(e,t){t.persist(),this._onStackHoverFocus(e,t)},t.prototype._onStackHoverFocus=function(e,t){var n=e.lineData,r=void 0!==n&&n.length>0;r&&n.forEach((function(e){e.data=e.data||e.y,e.shouldDrawBorderBottom=!0})),this.setState({refSelected:t,isCalloutVisible:!0,YValueHover:r?a(a([],n.sort((function(e,t){return e.data<t.data?1:-1}))),e.chartData.slice().reverse()):e.chartData.slice().reverse(),hoverXValue:e.xAxisPoint,stackCalloutProps:e,activeXAxisDataPoint:e.xAxisPoint,callOutAccessibilityData:e.stackCallOutAccessibilityData})},t.prototype._onRectFocus=function(e,t,n,r){r.refElement&&this._onRectFocusHover(t,e,n,r.refElement)},t.prototype._onStackFocus=function(e,t){t.refElement&&this._onStackHoverFocus(e,t.refElement)},t.prototype._onClick=function(e,t){var n,r;null===(r=(n=this.props).onBarClick)||void 0===r||r.call(n,t,e),this.props.href&&(window.location.href=this.props.href)},t.prototype._getBarGapAndScale=function(e,t,n){var r=this.props.barGapMax,i=void 0===r?0:r,o=e.reduce((function(e,t){return e+t.data}),0),a=null!=n?n:t(o),s=i&&e.length-1,l=s&&Math.max(1,Math.min(i,.2*a/s));return{gapHeight:l,heightValueScale:(a-l*s)/o}},t}(s.Component),Zf=C(Gf,(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"}),barLabel:{fontSize:Tn.small,fontWeight:Mn.semibold,fill:r.palette.neutralPrimary}}})),$f=ue(),Qf=.1/.9,Jf=function(e){function t(t){var n=e.call(this,t)||this;return n._isRtl=oe(),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){return n._legendHighlighted(e)||n._noLegendHighlighted()?"":"0.1"},n._onBarHover=function(e,t,r){r.persist(),n._calloutAnchorPoint!==e&&(n._calloutAnchorPoint=e,n.setState({refSelected:r,isCalloutVisible:""===n.state.selectedLegend||n.state.selectedLegend===e.legend,calloutLegend:e.legend,dataForHoverCard:e.data,color:e.color,xCalloutValue:e.xAxisCalloutData,yCalloutValue:e.yAxisCalloutData,dataPointCalloutProps:e,callOutAccessibilityData:n.props.isCalloutForStack?t.stackCallOutAccessibilityData:e.callOutAccessibilityData,YValueHover:t.groupSeries,hoverXValue:e.xAxisCalloutData}))},n._onBarLeave=function(){},n._handleChartMouseLeave=function(){n._calloutAnchorPoint=null,n.setState({isCalloutVisible:!1})},n._onBarFocus=function(e,t,r){n._refArray.forEach((function(i,o){i.index===e.legend&&r===o&&n.setState({refSelected:i.refElement,isCalloutVisible:""===n.state.selectedLegend||n.state.selectedLegend===e.legend,calloutLegend:e.legend,dataForHoverCard:e.data,color:e.color,xCalloutValue:e.xAxisCalloutData,yCalloutValue:e.yAxisCalloutData,dataPointCalloutProps:e,callOutAccessibilityData:n.props.isCalloutForStack?t.stackCallOutAccessibilityData:e.callOutAccessibilityData,YValueHover:t.groupSeries,hoverXValue:e.xAxisCalloutData})}))},n._redirectToUrl=function(e){e&&(window.location.href=e)},n._buildGraph=function(e,t,r,i,o){var a=[],l=[],u=va().domain([0,n._yMax]).range([0,i-n.margins.bottom-n.margins.top]),c=Object.keys(n._datasetForBars[0]).splice(0,n._keys.length);if(c.forEach((function(t,o){var d=e.indexNum*c.length+o,h=e[t],p=r(t),f=Math.max(i-n.margins.bottom-u(h.data),0);h.data&&a.push(s.createElement("rect",{className:n._classNames.opacityChangeOnHover,key:e.indexNum+"-"+o,height:Math.max(u(h.data),0),width:n._barWidth,x:p,y:f,"data-is-focusable":!n.props.hideTooltip,opacity:n._getOpacity(h.legend),ref:function(e){n._refCallback(e,h.legend,d)},fill:h.color,onMouseOver:n._onBarHover.bind(n,h,e),onMouseMove:n._onBarHover.bind(n,h,e),onMouseOut:n._onBarLeave,onFocus:n._onBarFocus.bind(n,h,e,d),onBlur:n._onBarLeave,onClick:n.props.href?n._redirectToUrl.bind(n,n.props.href):h.onClick,"aria-label":n._getAriaLabel(h,e.xAxisPoint),role:"img"})),h.data&&!n.props.hideLabels&&n._barWidth>=16&&l.push(s.createElement("text",{x:p+n._barWidth/2,y:f-6,textAnchor:"middle",className:n._classNames.barLabel,"aria-hidden":!0},pa(h.data<1e3?".2~":".1",h.data)(h.data)))})),!n.props.wrapXAxisLables&&n.props.showXAxisLablesTooltip){var d=Ic(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)"},a,l)},n._createDataset=function(e){var t=[],r=[];return e.forEach((function(e,n){var o={},a={},s=[];e.series.forEach((function(e){o[e.key]=e.data,a[e.key]=i({},e),s.push(e)})),a.xAxisPoint=e.name,a.indexNum=n,a.groupSeries=s,a.stackCallOutAccessibilityData=e.stackCallOutAccessibilityData,t.push(a),r.push(o)})),n._dataset=r,t},n._createX0Scale=function(e){return ku().domain(n._xAxisLabels).range(n._isRtl?[e-n.margins.right-n._domainMargin,n.margins.left+n._domainMargin]:[n.margins.left+n._domainMargin,e-n.margins.right-n._domainMargin]).paddingInner(2/(2+n._keys.length+(n._keys.length-1)*Qf))},n._createX1Scale=function(e){var t=e.bandwidth();return ku().domain(n._keys).range(n._isRtl?[t,0]:[0,t]).paddingInner(.1)},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._handleChartMouseLeave(),n._onLegendHover(e.legend)},onMouseOutAction:function(){n._onLegendLeave()}};a.push(r)}}))})),s.createElement(Bh,i({legends:a,overflowProps:n.props.legendsOverflowProps,enabledWrapLines:n.props.enabledLegendsWrapLines,focusZonePropsInHoverCard:n.props.focusZonePropsForLegendsInHoverCard},n.props.legendProps))},n._getAxisData=function(e){if(e&&e.yAxisDomainValues.length){var t=e.yAxisDomainValues;n._yMax=Math.max(t[t.length-1],n.props.yMaxValue||0)}},n._legendHighlighted=function(e){return n.state.selectedLegend===e||""===n.state.selectedLegend&&n.state.activeLegend===e},n._noLegendHighlighted=function(){return""===n.state.selectedLegend&&""===n.state.activeLegend},n._getAriaLabel=function(e,t){var n,r=e.xAxisCalloutData||t,i=e.legend,o=e.yAxisCalloutData||e.data;return(null===(n=e.callOutAccessibilityData)||void 0===n?void 0:n.ariaLabel)||r+". "+i+", "+o+"."},n._getDomainMargins=function(e){var t=e-(n.margins.left+8)-(n.margins.right+8),r=Math.min(n.props.barwidth||16,24),o=n._keys.length*r+(n._keys.length-1)*Qf*r,a=n._xAxisLabels.length*o+2*(n._xAxisLabels.length-1)*r;return n._domainMargin=8,t>=a?n._domainMargin+=(t-a)/2:r=(o=t/(n._xAxisLabels.length+(n._xAxisLabels.length-1)*(2/(n._keys.length+(n._keys.length-1)*Qf))))/(n._keys.length+(n._keys.length-1)*Qf),n._barWidth=r,i(i({},n.margins),{left:n.margins.left+n._domainMargin,right:n.margins.right+n._domainMargin})},n._createSet=jn((function(e){return n._createDataSetOfGVBC(e)})),n.state={color:"",dataForHoverCard:0,isCalloutVisible:!1,refSelected:null,selectedLegend:"",xCalloutValue:"",yCalloutValue:"",YValueHover:[],hoverXValue:"",calloutLegend:"",activeLegend:""},di("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 property. Handling with default value.",legendColor:"Dont use this property. colour will pick from given data."}),n._refArray=[],n._calloutId=ge("callout"),n._tooltipId=ge("GVBCTooltipId_"),n._domainMargin=8,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._xAxisType=ad(t[0].name,!0);var l=this._getLegendData(t,this.props.theme.palette),u=Ri(this._dataset,(function(t){return Ri(e._keys,(function(e){return t[e]}))}));this._yMax=Math.max(u,this.props.yMaxValue||0),this._classNames=$f(this.props.styles,{theme:this.props.theme,href:this.props.href});var c=i(i(i({target:this.state.refSelected,isCalloutVisible:this.state.isCalloutVisible,directionalHint:3,id:"toolTip"+this._calloutId,gapSpace:15,isBeakVisible:!1,setInitialFocus:!0,color:this.state.color,Legend:this.state.calloutLegend,XValue:this.state.xCalloutValue,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard,YValueHover:this.state.YValueHover,hoverXValue:this.state.hoverXValue,onDismiss:this._closeCallout},this.props.calloutProps),{preventDismissOnLostFocus:!0}),ud(this.state.callOutAccessibilityData,"text",!1)),d={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return s.createElement(Vp,i({},this.props,{points:this._datasetForBars,chartType:Wc.GroupedVerticalBarChart,calloutProps:c,legendBars:l,xAxisType:this._xAxisType,datasetForXAxisDomain:this._xAxisLabels,tickParams:d,tickPadding:this.props.tickPadding||5,maxOfYVal:this._yMax,svgFocusZoneProps:{direction:sd.horizontal},customizedCallout:this._getCustomizedCallout(),getmargins:this._getMargins,getGraphData:this._getGraphData,getAxisData:this._getAxisData,onChartMouseLeave:this._handleChartMouseLeave,getDomainMargins:this._getDomainMargins,xAxisInnerPadding:2/(2+this._keys.length+(this._keys.length-1)*Qf),xAxisOuterPadding:0,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.selectedLegend===e?this.setState({selectedLegend:""}):this.setState({selectedLegend:e})},t.prototype._onLegendHover=function(e){this.setState({activeLegend:e})},t.prototype._onLegendLeave=function(){this.setState({activeLegend:""})},t}(s.Component),eg=C(Jf,(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"}),barLabel:{fontSize:Tn.small,fontWeight:Mn.semibold,fill:t.palette.neutralPrimary}}})),tg=ue(),ng=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){return n._legendHighlighted(e)||n._noLegendHighlighted()?"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:""===n.state.selectedLegend||n.state.selectedLegend===t.legend,calloutYValue:""+t.rectText,calloutTextColor:n._colorScale(t.value),calloutLegend:t.legend,ratio:t.ratio||null,descriptionMessage:t.descriptionMessage||"",calloutId:e,callOutAccessibilityData:t.callOutAccessibilityData})},n._onRectMouseOver=function(e,t,r){r.persist(),n._calloutAnchorPoint!==t&&(n._calloutAnchorPoint=t,n.setState({target:n._rectRefArray[e].refElement,isCalloutVisible:""===n.state.selectedLegend||n.state.selectedLegend===t.legend,calloutYValue:""+t.rectText,calloutTextColor:n._colorScale(t.value),calloutLegend:t.legend,ratio:t.ratio||null,descriptionMessage:t.descriptionMessage||"",calloutId:e,callOutAccessibilityData:t.callOutAccessibilityData}))},n._onRectBlurOrMouseOut=function(){},n._handleChartMouseLeave=function(){n._calloutAnchorPoint=null,n.setState({isCalloutVisible:!1})},n._createRectangles=function(){var e=[];return n._stringYAxisDataPoints.slice().reverse().forEach((function(t,r){n._dataSet[t].forEach((function(t,i){var o=""+r+i,a=s.createElement("g",{key:o,role:"img","aria-label":n._getAriaLabel(t),"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,o,t)},onFocus:n._onRectFocus.bind(n,o,t),onBlur:n._onRectBlurOrMouseOut,onMouseOver:n._onRectMouseOver.bind(n,o,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+")"},cd(t.rectText,n.props.culture)));e.push(a)}))})),e},n._onLegendHover=function(e){n.setState({activeLegend:e})},n._onLegendLeave=function(){n.setState({activeLegend:""})},n._onLegendClick=function(e){n.state.selectedLegend===e?n.setState({selectedLegend:""}):n.setState({selectedLegend:e})},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._handleChartMouseLeave(),n._onLegendHover(e.legend)},onMouseOutAction:function(){n._onLegendLeave()}};o.push(t)})),s.createElement(Bh,i({},r,{legends:o}))},n._getColorScale=function(){var e=n.props,t=e.domainValuesForColorScale,r=e.rangeValuesForColorScale;return va().domain(t).range(r)},n._getXIndex=function(e){return n._xAxisType===zc.DateAxis?""+e.getTime():n._xAxisType===zc.StringAxis?e:n._xAxisType===zc.NumericAxis?""+e:""},n._getYIndex=function(e){return n._yAxisType===Uc.DateAxis?""+e.getTime():n._yAxisType===Uc.StringAxis?e:n._yAxisType===Uc.NumericAxis?""+e:""},n._createNewDataSet=function(e,t,r,o,s){var l=[];e.forEach((function(e){e.data.forEach((function(t){l.push(i(i({},t),{legend:e.legend}))}))}));var u={},c={},d={};return l.forEach((function(e){var t=n._getXIndex(e.x),r=n._getYIndex(e.y);d[t]="1",c[r]="1",u[r]?u[r]=a(a([],u[r]),[e]):u[r]=[e]})),Object.keys(u).forEach((function(e){u[e].sort((function(e,t){return n._xAxisType===zc.StringAxis?e.x.toLowerCase()>t.x.toLowerCase()?1:-1:n._xAxisType===zc.DateAxis?e.x.getTime()-t.x.getTime():n._xAxisType===zc.NumericAxis?+e.x>+t.x?1:-1:e.x>t.x?1:-1})).forEach((function(e){n._xAxisType===zc.DateAxis&&(e.x=n._getStringFormattedDate(e.x,t)),n._xAxisType===zc.NumericAxis&&(e.x=n._getStringFormattedNumber(e.x,r)),n._xAxisType===zc.StringAxis&&(e.x=n._getFormattedLabelForXAxisDataPoint(e.x)),n._yAxisType===Uc.DateAxis&&(e.y=n._getStringFormattedDate(e.y,o)),n._yAxisType===Uc.NumericAxis&&(e.y=n._getStringFormattedNumber(e.y,s)),n._yAxisType===Uc.StringAxis&&(e.y=n._getFormattedLabelForYAxisDataPoint(e.y))}))})),Object.keys(u).forEach((function(e){n._yAxisType===Uc.DateAxis?u[n._getStringFormattedDate(e,o)]=u[e]:n._yAxisType===Uc.NumericAxis?u[""+n._getStringFormattedNumber(e,s)]=u[e]:u[n._getFormattedLabelForYAxisDataPoint(e)]=u[e]})),{dataSet:u,yAxisPoints:n._getYAxisDataPoints(c),xAxisPoints:n._getXAxisDataPoints(d)}},n._getXAxisDataPoints=function(e){return Object.keys(e).sort((function(e,t){return n._xAxisType===zc.DateAxis||n._xAxisType===zc.NumericAxis?+e-+t:e.toLowerCase()>t.toLowerCase()?1:-1})).map((function(e){return n._xAxisType===zc.DateAxis?n._getStringFormattedDate(e,n.props.xAxisDateFormatString):n._xAxisType===zc.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===Uc.DateAxis||n._yAxisType===Uc.NumericAxis?+e-+t:e.toLowerCase()>t.toLowerCase()?1:-1})).map((function(e){return n._yAxisType===Uc.DateAxis?n._getStringFormattedDate(e,n.props.yAxisDateFormatString):n._yAxisType===Uc.NumericAxis?n._getStringFormattedNumber(e,n.props.yAxisNumberFormatString):n._getFormattedLabelForYAxisDataPoint(e)}))},n._getStringFormattedDate=function(e,t){var n=new Date;return n.setTime(+e),tl(t||"%b/%d")(n)},n._getStringFormattedNumber=function(e,t){return ha(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})},n._legendHighlighted=function(e){return n.state.selectedLegend===e||""===n.state.selectedLegend&&n.state.activeLegend===e},n._noLegendHighlighted=function(){return""===n.state.selectedLegend&&""===n.state.activeLegend},n._getAriaLabel=function(e){var t,n=e.x,r=e.y,i=e.legend,o=e.ratio?e.ratio[0]+"/"+e.ratio[1]:e.rectText||e.value,a=e.descriptionMessage;return(null===(t=e.callOutAccessibilityData)||void 0===t?void 0:t.ariaLabel)||n+", "+r+". "+i+", "+o+"."+(a?" "+a+".":"")};var r=n._getXandY(),o=r.x,l=r.y;return n._xAxisType=ad(o,!0),n._yAxisType=ad(l,!1),n._createSet=jn((function(e,t,r,i,o){return n._createNewDataSet(e,t,r,i,o)})),n.state={selectedLegend:"",activeLegend:"",isCalloutVisible:!1,target:null,calloutLegend:"",calloutTextColor:"",calloutYValue:"",ratio:null,descriptionMessage:"",calloutId:""},n}return r(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.data,r=t.xAxisDateFormatString,o=t.xAxisNumberFormatString,a=t.yAxisDateFormatString,l=t.yAxisNumberFormatString;this._colorScale=this._getColorScale();var u=this._createSet(n,r,o,a,l),c=u.dataSet,d=u.xAxisPoints,h=u.yAxisPoints;this._dataSet=c,this._stringYAxisDataPoints=h,this._stringXAxisDataPoints=d,this._classNames=tg(this.props.styles,{theme:this.props.theme});var p=i(i(i(i({isBeakVisible:!1,gapSpace:8},this.props.calloutProps),{isCalloutVisible:this.state.isCalloutVisible,id:this.state.calloutId,YValue:this.state.calloutYValue,legend:this.state.calloutLegend,color:this.state.calloutTextColor,target:this.state.target,styles:this._classNames.subComponentStyles.calloutStyles,directionalHint:3,onDismiss:this._closeCallout}),ud(this.state.callOutAccessibilityData,"text",!1)),{preventDismissOnLostFocus:!0}),f=i(i({},this.state.ratio&&{ratio:this.state.ratio}),{descriptionMessage:this.state.descriptionMessage});return s.createElement(Vp,i({},this.props,{points:n,chartType:Wc.HeatMapChart,xAxisType:zc.StringAxis,yAxisType:Uc.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:sd.bidirectional},legendBars:this._createLegendBars(),onChartMouseLeave:this._handleChartMouseLeave,children:function(t){return e._xAxisScale=t.xScale,e._yAxisScale=t.yScale,e._createRectangles()}}))},t}(s.Component),rg=C(ng,(function(e){var t=e.theme;return{root:{},text:[t.fonts.medium,{pointerEvents:"none",fill:t.palette.white,fontWeight:Mn.semibold}],subComponentStyles:{cartesianStyles:{},calloutStyles:{root:{maxWidth:"238px"}}}}}));function ig(e,t){return t-1-e.height}function og(e,t){return e.sourceLinks.length?e.depth:t-1}function ag(e){return function(){return e}}function sg(e,t){return ug(e.source,t.source)||e.index-t.index}function lg(e,t){return ug(e.target,t.target)||e.index-t.index}function ug(e,t){return e.y0-t.y0}function cg(e){return e.value}function dg(e){return e.index}function hg(e){return e.nodes}function pg(e){return e.links}function fg(e,t){const n=e.get(t);if(!n)throw new Error("missing: "+t);return n}function gg({nodes:e}){for(const t of e){let e=t.y0,n=e;for(const n of t.sourceLinks)n.y0=e+n.width/2,e+=n.width;for(const e of t.targetLinks)e.y1=n+e.width/2,n+=e.width}}class mg{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(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._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t)}this._x0=e,this._y0=t}}function vg(e){return new mg(e,!0)}var _g=ue(),yg="#757575",xg=[{fillColor:"#00758F",borderColor:"#002E39"},{fillColor:"#77004D",borderColor:"#43002C"},{fillColor:"#4F6BED",borderColor:"#3B52B4"},{fillColor:"#937600",borderColor:"#6D5700"},{fillColor:"#286EA8",borderColor:"#00457E"},{fillColor:"#A43FB1",borderColor:"#7C158A"},{fillColor:"#CC3595",borderColor:"#7F215D"},{fillColor:"#0E7878",borderColor:"#004E4E"},{fillColor:"#8764B8",borderColor:"#4B3867"},{fillColor:"#9C663F",borderColor:"#6D4123"}],bg="#323130",Cg="#FFFFFF",Eg=function(e){function t(t){var n=e.call(this,t)||this;return n._isRtl=oe(),n._onCloseCallout=function(){n.setState({isCalloutVisible:!1,refSelected:void 0,descriptionMessage:""})},n._onBlur=function(){},n._fillNodeColors=function(e){return n.state.selectedState?n.state.selectedState&&n.state.selectedNodes.has(e.index)&&n.state.selectedNode?n.state.selectedNode.color:n.state.selectedState&&!n.state.selectedNode?e.color:void 0:e.color},n._fillNodeBorder=function(e){return n.state.selectedState?n.state.selectedState&&n.state.selectedNodes.has(e.index)&&n.state.selectedNode?n.state.selectedNode.borderColor:(n.state.selectedState&&n.state.selectedNodes.has(e.index),e.borderColor):e.borderColor},n.state={containerHeight:468,containerWidth:912,selectedState:!1,selectedLinks:new Set,selectedNodes:new Set,shouldOverflow:!1,isCalloutVisible:!1},n._calloutId=ge("callout"),n._linkId=ge("link"),n._margins={top:36,right:48,bottom:32,left:48},n._preRenderLayout(),n._normalizeData=jn((function(e){return n._normalizeSankeyData(e)})),n}return r(t,e),t.prototype.componentDidMount=function(){this._fitParentContainer()},t.prototype.componentDidUpdate=function(e){e.shouldResize!==this.props.shouldResize&&this._fitParentContainer()},t.prototype.componentWillUnmount=function(){cancelAnimationFrame(this._reqID)},t.prototype.render=function(){var e=this,t=this.props,n=t.theme,r=t.className,o=t.styles,a=t.pathColor;this._classNames=_g(o,{theme:n,width:this.state.containerWidth,height:this.state.containerHeight,pathColor:a,className:r});var l,u=this._preRenderLayout(),c=u.height,d=u.width;this._normalizeData(this.props.data.SankeyChartData),l=this._adjustPadding(this._sankey,c-6,this._nodesInColumn),this._sankey.nodePadding(l),this._sankey(this.props.data.SankeyChartData),this._populateNodeActualValue(this.props.data.SankeyChartData),this._assignNodeColors();var h=this._createNodes(d),p=this._createLinks(),f={isCalloutVisible:this.state.isCalloutVisible,directionalHint:3,id:"toolTip"+this._calloutId,target:this.state.refSelected,color:this.state.color,XValue:this.state.xCalloutValue,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard,descriptionMessage:this.state.descriptionMessage,isBeakVisible:!1,gapSpace:15,onDismiss:this._onCloseCallout,className:this._classNames.calloutContentRoot,preventDismissOnLostFocus:!0};return s.createElement("div",{className:this._classNames.root,role:"presentation",ref:function(t){return e.chartContainer=t},onMouseLeave:this._onCloseCallout},s.createElement(Vd,{direction:sd.bidirectional,isCircularNavigation:!0,handleTabKey:1},s.createElement("svg",{width:d,height:c,id:ge("sankeyChart")},s.createElement("g",{className:this._classNames.links,strokeOpacity:1},p),s.createElement("g",{className:this._classNames.nodes},h),f.isCalloutVisible&&s.createElement(Ci,i({},f),s.createElement(fd,{XValue:f.XValue,YValue:f.YValue,color:f.color,descriptionMessage:f.descriptionMessage?f.descriptionMessage:""})))))},t.prototype._preRenderLayout=function(){var e=this.state.containerWidth-this._margins.right,t=this.state.containerHeight-this._margins.bottom>0?this.state.containerHeight-this._margins.bottom:0;return this._sankey=function(){let e,t,n,r=0,i=0,o=1,a=1,s=24,l=8,u=dg,c=og,d=hg,h=pg,p=6;function f(){const e={nodes:d.apply(null,arguments),links:h.apply(null,arguments)};return g(e),m(e),v(e),_(e),y(e),gg(e),e}function g({nodes:e,links:t}){for(const[t,n]of e.entries())n.index=t,n.sourceLinks=[],n.targetLinks=[];const r=new Map(e.map(((t,n)=>[u(t,n,e),t])));for(const[e,n]of t.entries()){n.index=e;let{source:t,target:i}=n;"object"!=typeof t&&(t=n.source=fg(r,t)),"object"!=typeof i&&(i=n.target=fg(r,i)),t.sourceLinks.push(n),i.targetLinks.push(n)}if(null!=n)for(const{sourceLinks:t,targetLinks:r}of e)t.sort(n),r.sort(n)}function m({nodes:e}){for(const t of e)t.value=void 0===t.fixedValue?Math.max(Wi(t.sourceLinks,cg),Wi(t.targetLinks,cg)):t.fixedValue}function v({nodes:e}){const t=e.length;let n=new Set(e),r=new Set,i=0;for(;n.size;){for(const e of n){e.depth=i;for(const{target:t}of e.sourceLinks)r.add(t)}if(++i>t)throw new Error("circular link");n=r,r=new Set}}function _({nodes:e}){const t=e.length;let n=new Set(e),r=new Set,i=0;for(;n.size;){for(const e of n){e.height=i;for(const{source:t}of e.targetLinks)r.add(t)}if(++i>t)throw new Error("circular link");n=r,r=new Set}}function y(n){const u=function({nodes:e}){const n=Ri(e,(e=>e.depth))+1,i=(o-r-s)/(n-1),a=new Array(n);for(const t of e){const e=Math.max(0,Math.min(n-1,Math.floor(c.call(null,t,n))));t.layer=e,t.x0=r+e*i,t.x1=t.x0+s,a[e]?a[e].push(t):a[e]=[t]}if(t)for(const e of a)e.sort(t);return a}(n);e=Math.min(l,(a-i)/(Ri(u,(e=>e.length))-1)),function(t){const n=Bi(t,(t=>(a-i-(t.length-1)*e)/Wi(t,cg)));for(const r of t){let t=i;for(const i of r){i.y0=t,i.y1=t+i.value*n,t=i.y1+e;for(const e of i.sourceLinks)e.width=e.value*n}t=(a-t+e)/(r.length+1);for(let e=0;e<r.length;++e){const n=r[e];n.y0+=t*(e+1),n.y1+=t*(e+1)}L(r)}}(u);for(let e=0;e<p;++e){const t=Math.pow(.99,e),n=Math.max(1-t,(e+1)/p);b(u,t,n),x(u,t,n)}}function x(e,n,r){for(let i=1,o=e.length;i<o;++i){const o=e[i];for(const e of o){let t=0,r=0;for(const{source:n,value:i}of e.targetLinks){let o=i*(e.layer-n.layer);t+=A(n,e)*o,r+=o}if(!(r>0))continue;let i=(t/r-e.y0)*n;e.y0+=i,e.y1+=i,S(e)}void 0===t&&o.sort(ug),C(o,r)}}function b(e,n,r){for(let i=e.length-2;i>=0;--i){const o=e[i];for(const e of o){let t=0,r=0;for(const{target:n,value:i}of e.sourceLinks){let o=i*(n.layer-e.layer);t+=w(e,n)*o,r+=o}if(!(r>0))continue;let i=(t/r-e.y0)*n;e.y0+=i,e.y1+=i,S(e)}void 0===t&&o.sort(ug),C(o,r)}}function C(t,n){const r=t.length>>1,o=t[r];k(t,o.y0-e,r-1,n),E(t,o.y1+e,r+1,n),k(t,a,t.length-1,n),E(t,i,0,n)}function E(t,n,r,i){for(;r<t.length;++r){const o=t[r],a=(n-o.y0)*i;a>1e-6&&(o.y0+=a,o.y1+=a),n=o.y1+e}}function k(t,n,r,i){for(;r>=0;--r){const o=t[r],a=(o.y1-n)*i;a>1e-6&&(o.y0-=a,o.y1-=a),n=o.y0-e}}function S({sourceLinks:e,targetLinks:t}){if(void 0===n){for(const{source:{sourceLinks:e}}of t)e.sort(lg);for(const{target:{targetLinks:t}}of e)t.sort(sg)}}function L(e){if(void 0===n)for(const{sourceLinks:t,targetLinks:n}of e)t.sort(lg),n.sort(sg)}function A(t,n){let r=t.y0-(t.sourceLinks.length-1)*e/2;for(const{target:i,width:o}of t.sourceLinks){if(i===n)break;r+=o+e}for(const{source:e,width:i}of n.targetLinks){if(e===t)break;r-=i}return r}function w(t,n){let r=n.y0-(n.targetLinks.length-1)*e/2;for(const{source:i,width:o}of n.targetLinks){if(i===t)break;r+=o+e}for(const{target:e,width:i}of t.sourceLinks){if(e===n)break;r-=i}return r}return f.update=function(e){return gg(e),e},f.nodeId=function(e){return arguments.length?(u="function"==typeof e?e:ag(e),f):u},f.nodeAlign=function(e){return arguments.length?(c="function"==typeof e?e:ag(e),f):c},f.nodeSort=function(e){return arguments.length?(t=e,f):t},f.nodeWidth=function(e){return arguments.length?(s=+e,f):s},f.nodePadding=function(t){return arguments.length?(l=e=+t,f):l},f.nodes=function(e){return arguments.length?(d="function"==typeof e?e:ag(e),f):d},f.links=function(e){return arguments.length?(h="function"==typeof e?e:ag(e),f):h},f.linkSort=function(e){return arguments.length?(n=e,f):n},f.size=function(e){return arguments.length?(r=i=0,o=+e[0],a=+e[1],f):[o-r,a-i]},f.extent=function(e){return arguments.length?(r=+e[0][0],o=+e[1][0],i=+e[0][1],a=+e[1][1],f):[[r,i],[o,a]]},f.iterations=function(e){return arguments.length?(p=+e,f):p},f}().nodeWidth(124).extent([[this._margins.left,this._margins.top],[e-1,t-6]]).nodeAlign(this._isRtl?ig:og),{height:t,width:e}},t.prototype._populateNodeActualValue=function(e){e.links.forEach((function(e){e.unnormalizedValue||(e.unnormalizedValue=e.value)})),e.nodes.forEach((function(e){e.actualValue=Math.max(Wi(e.sourceLinks,(function(e){return e.unnormalizedValue})),Wi(e.targetLinks,(function(e){return e.unnormalizedValue})))}))},t.prototype._normalizeSankeyData=function(e){this._nodesInColumn=this._populateNodeInColumns(e,this._sankey),this._adjustOnePercentHeightNodes(this._nodesInColumn)},t.prototype._populateNodeInColumns=function(e,t){t(e);var n={};return e.nodes.forEach((function(e){var t=e.layer;n[t]?n[t].push(e):n[t]=[e]})),n},t.prototype._adjustOnePercentHeightNodes=function(e){var t=this;Object.values(e).map((function(e){return Wi(e,(function(e){return e.value}))})).forEach((function(n,r){var i=0;e[r].forEach((function(e){var t=e.value/n*100;e.actualValue=e.value,t<1?(e.value=.01*n,i+=1):i+=t}));var o=0!==i?i/100:1;o>1&&e[r].forEach((function(e){e.value=e.value/o,t._changeColumnValue(e,e.actualValue,e.value)}))}))},t.prototype._changeColumnValue=function(e,t,n){e.sourceLinks.forEach((function(e){e.unnormalizedValue=e.value;var r=e.value/t;e.value=n*r})),e.targetLinks.forEach((function(e){e.unnormalizedValue=e.value;var r=e.value/t;e.value=n*r}))},t.prototype._adjustPadding=function(e,t,n){var r=this._sankey.nodePadding();return Object.values(n).forEach((function(e){var n=.3*t;n<t-Wi(e,(function(e){return e.y1-e.y0}))&&(r=Math.min(r,n/(e.length-1)))})),r},t.prototype._createLinks=function(){var e=this,t=[];return this.props.data.SankeyChartData&&this.props.data.SankeyChartData.links.forEach((function(n,r){var i,o=[{x:(i=n).source.x1,y0:i.y0+i.width/2,y1:i.y0-i.width/2},{x:i.target.x0,y0:i.y1+i.width/2,y1:i.y1-i.width/2}],a=gf().x((function(e){return e.x})).y0((function(e){return e.y0})).y1((function(e){return e.y1})).curve(vg),l="url(#gradient-"+e._linkId+"-"+r+")",u=s.createElement("g",{key:e._linkId+"-"+r},s.createElement("defs",null,s.createElement("linearGradient",{id:"gradient-"+e._linkId+"-"+r,x1:"0%",y1:"0%",x2:"100%",y2:"0%"},s.createElement("stop",{offset:"0",stopColor:n.source.color}),s.createElement("stop",{offset:"100%",stopColor:n.target.color}))),s.createElement("path",{d:a(o),id:ge("link"),fill:e._fillStreamColors(n,l),stroke:e._fillStreamBorder(n,l),strokeWidth:"2",strokeOpacity:e._getOpacityStreamBorder(n),onMouseOver:e._onStreamHover.bind(e,n),onMouseOut:function(){e._onStreamLeave(n)},onFocus:e._onFocusLink.bind(e,n),onBlur:e._onBlur,fillOpacity:e._getOpacityStream(n),"data-is-focusable":!0,"aria-label":"link from"+n.source.name+"to"+n.target.name+"with weight"+n.unnormalizedValue,role:"img"}));t.push(u)})),t},t.prototype._createNodes=function(e){var t=this,n=[];if(this.props.data.SankeyChartData)return this.props.data.SankeyChartData.nodes.forEach((function(e,r){var i=e.y1-e.y0>0?e.y1-e.y0:0,o=8,a=0;if(i<36){o+=6;var l=Ic(".nodeName").append("text").attr("class","tempText").append("tspan").text(null);l.text(e.actualValue),null!==l.node()&&(o+=a=l.node().getComputedTextLength()),l.text(null),Rc(".tempText").remove()}var u=t._truncateText(e.name,116,o),c="..."===u.slice(-3),d=ge("tooltip"),h=Ic("body").append("div").attr("id",d).attr("class",t._classNames.toolTip).style("opacity",0),p=ge("nodeBar"),f=s.createElement("g",{key:r,id:ge("nodeGElement")},s.createElement("rect",{x:e.x0,y:e.y0,height:i,width:e.x1-e.x0,fill:t._fillNodeColors(e),id:p,onMouseOver:t._onHover.bind(t,e),onMouseOut:function(){t._onLeave(e)},onFocus:t._onCloseCallout.bind(t),stroke:t._fillNodeBorder(e),strokeWidth:"2",opacity:"1","data-is-focusable":!0,"aria-label":"node"+e.name+"with weight"+e.actualValue,role:"img"}),e.y1-e.y0>24&&s.createElement("g",{className:t._classNames.nodeTextContainer},s.createElement("g",{className:"nodeName"},s.createElement("text",{id:p+"-name",x:e.x0,y:e.y0,dy:"1.2em",dx:"0.4em",textAnchor:t._isRtl?"end":"start",fontWeight:"regular","aria-hidden":"true",fill:!t.state.selectedState||t.state.selectedState&&t.state.selectedNodes.has(e.index)&&t.state.selectedNode||t.state.selectedState&&!t.state.selectedNode?Cg:bg,fontSize:10,onMouseOver:t._showTooltip.bind(t,e.name,c,h),onMouseOut:t._hideTooltip.bind(t,h)},u)),s.createElement("text",{x:i>36?e.x0:e.x1-a-8,y:e.y0,dy:i>36?"2em":"1em",dx:i>36?"0.4em":"0em",textAnchor:t._isRtl?"end":"start",fontWeight:"bold","aria-hidden":"true",fill:!t.state.selectedState||t.state.selectedState&&t.state.selectedNodes.has(e.index)&&t.state.selectedNode||t.state.selectedState&&!t.state.selectedNode?Cg:bg,fontSize:14},e.actualValue)));n.push(f)})),n},t.prototype._onLeave=function(e){this.state.selectedState&&this.setState({selectedState:!1,selectedNodes:new Set,selectedLinks:new Set,selectedNode:void 0})},t.prototype._onHover=function(e,t){if(t.persist(),this._onCloseCallout(),!this.state.selectedState){var n=this._getSelectedLinks(e),r=this._getSelectedNodes(n);r.push(e),this.setState({selectedState:!0,selectedNodes:new Set(Array.from(r).map((function(e){return e.index}))),selectedLinks:new Set(Array.from(n).map((function(e){return e.index}))),selectedNode:e,refSelected:t,isCalloutVisible:e.y1-e.y0<24,color:e.color,xCalloutValue:e.name,yCalloutValue:e.actualValue})}},t.prototype._onStreamHover=function(e,t){if(t.persist(),this._onCloseCallout(),!this.state.selectedState){var n=this._getSelectedLinksforStreamHover(e),r=n.selectedLinks,i=n.selectedNodes;this.setState({selectedState:!0,selectedNodes:new Set(Array.from(i).map((function(e){return e.index}))),selectedLinks:new Set(Array.from(r).map((function(e){return e.index}))),refSelected:t,selectedLink:e,isCalloutVisible:!0,color:e.source.color,xCalloutValue:e.target.name,yCalloutValue:e.unnormalizedValue.toString(),descriptionMessage:"from "+e.source.name})}},t.prototype._onStreamLeave=function(e){this.state.selectedState&&this.setState({selectedState:!1,selectedNodes:new Set,selectedLinks:new Set,selectedLink:void 0})},t.prototype._onFocusLink=function(e,t){t.persist(),this._onCloseCallout(),this.setState({refSelected:t.currentTarget,selectedLink:e,isCalloutVisible:!0,color:e.source.color,xCalloutValue:e.target.name,yCalloutValue:e.source.actualValue,descriptionMessage:"from "+e.source.name})},t.prototype._assignNodeColors=function(){var e,t;this.props.colorsForNodes&&this.props.borderColorsForNodes?(e=this.props.colorsForNodes,t=this.props.borderColorsForNodes):(e=xg.map((function(e){return e.fillColor})),t=xg.map((function(e){return e.borderColor})));var n=0;this.props.data.SankeyChartData.nodes.forEach((function(r){r.color||r.borderColor?r.color&&!r.borderColor?r.borderColor="#757575":r.borderColor&&!r.color&&(r.color="#F5F5F5"):(r.color=e[n],r.borderColor=t[n]),n=(n+1)%e.length}))},t.prototype._fillStreamColors=function(e,t){return this.state.selectedState&&this.state.selectedLinks.has(e.index)&&this.state.selectedNode?this.state.selectedNode.color:this.state.selectedState&&this.state.selectedLinks.has(e.index)?t:void 0},t.prototype._fillStreamBorder=function(e,t){return this.state.selectedState?this.state.selectedState&&this.state.selectedLinks.has(e.index)&&this.state.selectedNode?this.state.selectedNode.borderColor:this.state.selectedState&&this.state.selectedLinks.has(e.index)?t:yg:yg},t.prototype._getSelectedNodes=function(e){var t=[];return e.forEach((function(e){t.push(e.target),-1===t.indexOf(e.source)&&t.push(e.source)})),t},t.prototype._getSelectedLinks=function(e){var t=new Array,n=new Set;for(e.sourceLinks.forEach((function(e){t.push(e),n.add(e)}));t.length>0;)(r=t.shift().target)&&r.sourceLinks&&r.sourceLinks.forEach((function(e){n.add(e),t.push(e)}));for(e.targetLinks&&e.targetLinks.forEach((function(e){t.push(e),n.add(e)}));t.length>0;){var r;(r=t.shift().source)&&r.targetLinks&&r.targetLinks.forEach((function(e){n.add(e),t.push(e)}))}return n},t.prototype._getSelectedLinksforStreamHover=function(e){var t=new Array,n=new Set,r=new Set;for(t.push(e.source),n.add(e);t.length>0;){var i=t.shift();r.add(i),i.targetLinks&&i.targetLinks.length>0&&i.targetLinks.forEach((function(e){t.push(e.source),n.add(e)}))}for(t.push(e.target);t.length>0;)i=t.shift(),r.add(i),i.sourceLinks&&i.sourceLinks.length>0&&i.sourceLinks.forEach((function(e){t.push(e.target),n.add(e)}));return{selectedLinks:n,selectedNodes:r}},t.prototype._getOpacityStream=function(e){if(this.state.selectedState){if(!this.state.selectedLinks.has(e.index))return 1;if(this.state.selectedState&&this.state.selectedLinks.has(e.index)&&!this.state.selectedNode)return.3}return 1},t.prototype._getOpacityStreamBorder=function(e){return!this.state.selectedState||this.state.selectedLinks.has(e.index)||this.state.selectedNode?1:.5},t.prototype._fitParentContainer=function(){var e=this,t=this.state,n=t.containerWidth,r=t.containerHeight;this._reqID=requestAnimationFrame((function(){var t=e.props.parentRef?e.props.parentRef:e.chartContainer,i=t.getBoundingClientRect().width,o=t.getBoundingClientRect().height;(n!==i||r!==o)&&e.setState({containerWidth:i,containerHeight:o})}))},t.prototype._truncateText=function(e,t,n){var r=t-n,i=0,o=Ic(".nodeName").append("text").attr("class","tempText").attr("font-size","10").append("tspan").text(null);if(o.text(e),null!==o.node()&&o.node().getComputedTextLength()<=r)return e;o.text(null),o.text("..."),null!==o.node()&&(i=o.node().getComputedTextLength()),o.text(null);for(var a="",s=0;s<e.length;s++)if(a+=e[s],o.text(a),null!==o.node()&&o.node().getComputedTextLength()>=r-i){a=a.slice(0,-1),a+="...";break}return o.text(null),Rc(".tempText").remove(),a},t.prototype._showTooltip=function(e,t,n,r){t&&(n.style("opacity",.9),n.html(e).style("left",r.pageX+"px").style("top",r.pageY-28+"px"))},t.prototype._hideTooltip=function(e){e.style("opacity",0)},t}(s.Component),kg=C(Eg,(function(e){var t,n,r,o=e.className,a=e.theme,s=e.pathColor,l=a.effects;return{root:[a.fonts.medium,{display:"flex",width:"100%",height:"100%",flexDirection:"column",overflow:"hidden"},o],links:{stroke:s||a.palette.black,fill:a?a.semanticColors.bodyBackground:"#F5F5F5",strokeWidth:3,selectors:(t={},t[Vn]={fill:"#000000"},t)},nodes:{fill:"#F5F5F5",selectors:(n={},n[Vn]={fill:"#000000"},n)},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"}),nodeTextContainer:{selectors:{text:{selectors:(r={},r[Vn]={fill:"rgb(179, 179, 179)"},r)}},marginTop:"4px",marginLeft:"8px",marginBottom:"4px",marginRight:"8px"},calloutContentRoot:{boxShadow:l.elevation4}}}));function Sg(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function Lg(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=wg)):void 0===t&&(t=Ag);for(var n,r,i,o,a,s=new Mg(e),l=[s];n=l.pop();)if((i=t(n.data))&&(a=(i=Array.from(i)).length))for(n.children=i,o=a-1;o>=0;--o)l.push(r=i[o]=new Mg(i[o])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(Tg)}function Ag(e){return e.children}function wg(e){return Array.isArray(e)?e[1]:null}function Dg(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Tg(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Mg(e){this.data=e,this.depth=this.height=0,this.parent=null}function Pg(e,t){return e.parent===t.parent?1:2}function Ng(e){var t=e.children;return t?t[0]:e.t}function Fg(e){var t=e.children;return t?t[t.length-1]:e.t}function Ig(e,t,n){var r=n/(t.i-e.i);t.c-=r,t.s+=n,e.c+=r,t.z+=n,t.m+=n}function Og(e,t,n){return e.a.parent===t.parent?e.a:n}function Vg(e,t){this._=e,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=t}Mg.prototype=Lg.prototype={constructor:Mg,count:function(){return this.eachAfter(Sg)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,i,o=this,a=[o],s=[],l=-1;o=a.pop();)if(s.push(o),n=o.children)for(r=0,i=n.length;r<i;++r)a.push(n[r]);for(;o=s.pop();)e.call(t,o,++l,this);return this},eachBefore:function(e,t){for(var n,r,i=this,o=[i],a=-1;i=o.pop();)if(e.call(t,i,++a,this),n=i.children)for(r=n.length-1;r>=0;--r)o.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter((function(t){for(var n=+e(t.data)||0,r=t.children,i=r&&r.length;--i>=0;)n+=r[i].value;t.value=n}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;for(e=n.pop(),t=r.pop();e===t;)i=e,e=n.pop(),t=r.pop();return i}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(n){n!==e&&t.push({source:n.parent,target:n})})),t},copy:function(){return Lg(this).eachBefore(Dg)},[Symbol.iterator]:function*(){var e,t,n,r,i=this,o=[i];do{for(e=o.reverse(),o=[];i=e.pop();)if(yield i,t=i.children)for(n=0,r=t.length;n<r;++n)o.push(t[n])}while(o.length)}},Vg.prototype=Object.create(Mg.prototype);var Hg,Rg,Bg=ue(),Wg=function(e){function t(t,n,r,i,o,a){void 0===i&&(i=[]),void 0===o&&(o=[]);var s=e.call(this,t,r,i,o)||this;return s.composition=n,s._treeTraversal=a,s}return r(t,e),t.prototype.createTree=function(e,t){var n,r,i,o,a,s,l=(e=e<65?65:e>90?90:e)||75,u=Lg(this.treeData,(function(e){return e.children})),c=(null==u?void 0:u.height)+1;(function(){var e=Pg,t=1,n=1,r=null;function i(i){var l=function(e){for(var t,n,r,i,o,a=new Vg(e,0),s=[a];t=s.pop();)if(r=t._.children)for(t.children=new Array(o=r.length),i=o-1;i>=0;--i)s.push(n=t.children[i]=new Vg(r[i],i)),n.parent=t;return(a.parent=new Vg(null,0)).children=[a],a}(i);if(l.eachAfter(o),l.parent.m=-l.z,l.eachBefore(a),r)i.eachBefore(s);else{var u=i,c=i,d=i;i.eachBefore((function(e){e.x<u.x&&(u=e),e.x>c.x&&(c=e),e.depth>d.depth&&(d=e)}));var h=u===c?1:e(u,c)/2,p=h-u.x,f=t/(c.x+h+p),g=n/(d.depth||1);i.eachBefore((function(e){e.x=(e.x+p)*f,e.y=e.depth*g}))}return i}function o(t){var n=t.children,r=t.parent.children,i=t.i?r[t.i-1]:null;if(n){!function(e){for(var t,n=0,r=0,i=e.children,o=i.length;--o>=0;)(t=i[o]).z+=n,t.m+=n,n+=t.s+(r+=t.c)}(t);var o=(n[0].z+n[n.length-1].z)/2;i?(t.z=i.z+e(t._,i._),t.m=t.z-o):t.z=o}else i&&(t.z=i.z+e(t._,i._));t.parent.A=function(t,n,r){if(n){for(var i,o=t,a=t,s=n,l=o.parent.children[0],u=o.m,c=a.m,d=s.m,h=l.m;s=Fg(s),o=Ng(o),s&&o;)l=Ng(l),(a=Fg(a)).a=t,(i=s.z+d-o.z-u+e(s._,o._))>0&&(Ig(Og(s,t,r),t,i),u+=i,c+=i),d+=s.m,u+=o.m,h+=l.m,c+=a.m;s&&!Fg(a)&&(a.t=s,a.m+=d-c),o&&!Ng(l)&&(l.t=o,l.m+=u-h,r=t)}return r}(t,i,t.parent.A||r[0])}function a(e){e._.x=e.z+e.parent.m,e.m+=e.parent.m}function s(e){e.x*=t,e.y=e.depth*n}return i.separation=function(t){return arguments.length?(e=t,i):e},i.size=function(e){return arguments.length?(r=!1,t=+e[0],n=+e[1],i):r?null:[t,n]},i.nodeSize=function(e){return arguments.length?(r=!0,t=+e[0],n=+e[1],i):r?[t,n]:null},i})().nodeSize([l,l/1.5]).separation((function(e,t){return e.parent===u&&t.parent===u?3.5:1}))(u).descendants().forEach((function(e){e.y=0===e.depth?10:130*e.depth,e.x+=t/2}));var d=[],h=0,p=function(e){var t,n;e.id=h,d.push({id:h,children:e.children,dataName:e.data.name,subName:e.data.subname,bodyText:e.data.bodytext,metricName:null===(t=e.data)||void 0===t?void 0:t.metric,fill:e.data.fill,x:e.x,y:e.y,parentID:null===(n=e.parent)||void 0===n?void 0:n.id}),h++};0===this._treeTraversal?u.each((function(e){p(e)})):u.eachBefore((function(e){p(e)}));for(var f=3*l,g=f/3.45,m=20,v=new Set,_=0,y=d;_<y.length;_++){var x=y[_],b=0===x.id?"Root Node":"Parent info parentId: "+x.parentID+"\n "+d[x.parentID].dataName+"\n "+d[x.parentID].subName;if(!x.children&&!v.has(x.parentID)&&3===c){var C=(f-m)/2,E=g;v.add(x.parentID),this.addLinktoSVG(x.id,d[x.parentID].x,d[x.parentID].y,d[x.id].x,d[x.id].y,!0,f,g,m);for(var k=null===(n=d[x.parentID])||void 0===n?void 0:n.children,S=(null===(r=d[x.parentID])||void 0===r?void 0:r.x)-C/2-10,L=(null===(i=d[x.parentID])||void 0===i?void 0:i.x)+C/2+10,A=null===(o=d[x.parentID])||void 0===o?void 0:o.x,w=null===(a=k[0])||void 0===a?void 0:a.y,D=0;D<k.length;++D){var T=k[D];void 0!==this.composition?0===this.composition?(this.addNodeShapetoSVG(T.data.name,T.data.subname,T.data.bodytext,T.data.metricName,D%2==0?1===k.length?A:S:L,w,T.data.fill,1===k.length?f:C,g,T.id,b),D%2==1&&(w+=E+m)):(this.addNodeShapetoSVG(T.data.name,T.data.subname,T.data.bodytext,T.data.metricName,A,w,T.data.fill,f,g,T.id,b),w+=E+m):k.length>2?(this.addNodeShapetoSVG(T.data.name,T.data.subname,T.data.bodytext,T.data.metricName,D%2==0?S:L,w,T.data.fill,1===k.length?f:C,g,T.id,b),D%2==1&&(w+=E+m)):(this.addNodeShapetoSVG(T.data.name,T.data.subname,T.data.bodytext,T.data.metricName,A,w,T.data.fill,f,g,T.id,b),w+=E+m)}}if((x.children||c<=2)&&(this.addNodeShapetoSVG(x.dataName,x.subName,x.bodyText,x.metricName,x.x,x.y,x.fill,f,g,x.id,b),0===x.id&&x.children)){var M=Bi(k=null===(s=d[x.id])||void 0===s?void 0:s.children,(function(e){return e.x})),P=Ri(k,(function(e){return e.x}));this.addLinktoSVG(x.id,x.x,x.y,M,x.children[0].y,!1,f,g,m,P)}}},t}(function(){function e(e,t,n,r){void 0===n&&(n=[]),void 0===r&&(r=[]),this._nodeElements=[],this._linkElements=[],this.treeData=e,this.styleClassNames=t,this._nodeElements=n,this._linkElements=r}return e.prototype.truncateText=function(e,t,n,r){var i,o=e.split(/\s+/).reverse(),a="",s=Ic(".svgTree").append("text").attr("class","tempText").append("tspan").text(null);r&&s.attr("class",r);for(var l=[];a=o.pop();)if(l.push(a),s.text(l.join(" ")+" "),null!==s.node()&&s.node().getComputedTextLength()>t-n){l.pop(),l.push("...");break}return i=l.join(" ")+" ",s.text(null),Rc(".tempText").remove(),i},e.prototype.addNodeShapetoSVG=function(e,t,n,r,i,o,a,l,u,c,d){var h="nodeId: "+c+" \nnodeMainText: "+e+"\nsubText "+t+" "+d,p=i-l/2;!r&&0===c&&n||this._nodeElements.push(s.createElement("rect",{width:l,height:u,x:p,y:o,tabIndex:0,role:"text","data-is-focusable":!0,"aria-label":h,className:this.styleClassNames.rectNode,stroke:a,key:""+c+this.styleClassNames.rectNode})),t&&(t=this.truncateText(t,l,l/4,this.styleClassNames.rectSubText)),n&&(n=this.truncateText(n,l,l/4,this.styleClassNames.rectBodyText)),r&&(r=this.truncateText(r,l,l/4,this.styleClassNames.rectMetricText)),e=this.truncateText(e,l,l/4,this.styleClassNames.rectText);var f=r?s.createElement("tspan",{className:this.styleClassNames.rectMetricText,dy:"1.4em",x:p+l/2},r):n?s.createElement(s.Fragment,null,s.createElement("tspan",{className:this.styleClassNames.rectSubText,dy:"1.4em",x:p+l/2},t),s.createElement("tspan",{className:this.styleClassNames.rectBodyText,dy:"1.4em",x:p+l/2},n)):s.createElement("tspan",{className:this.styleClassNames.rectSubText,dy:"1.4em",x:p+l/2},t);t||r||n?this._nodeElements.push(s.createElement("text",{textAnchor:"middle",className:r?this.styleClassNames.rectSubText:this.styleClassNames.rectText,dy:r?o+u/2.5:o+u/2,x:p+l/2,key:""+c+this.styleClassNames.rectText},e,f)):this._nodeElements.push(s.createElement("text",{textAnchor:"middle",className:this.styleClassNames.rectMetricText,dy:o+u/1.6,x:p+l/2,key:""+c+this.styleClassNames.rectText},e))},e.prototype.createPathLink=function(e,t,n,r,i,o,a,s,l){return i?"M"+e+","+(t+a+s/2)+" V"+(t+5*s)+"\n H"+(e-o/2)+" H"+(e+o/2):"M"+(n-o/2)+","+(r-s)+" H"+(l+o/2)+" M"+e+","+(r-s)+"\n V"+(t+a+s/2)},e.prototype.addLinktoSVG=function(e,t,n,r,i,o,a,l,u,c){void 0===c&&(c=0),this._linkElements.push(s.createElement("path",{className:this.styleClassNames.link,d:this.createPathLink(t,n,r,i,o,a,l,u,c),key:""+e+this.styleClassNames.link}))},e}()),zg=function(e){function t(t){var n,r=e.call(this,t)||this;return r._nodeElements=[],r._linkElements=[],r._margin={top:30,right:20,bottom:30,left:50},r._width=r.props.width||1500,r._height=r.props.height||700,r._treeData=r.props.treeData,r._composition=null===(n=r.props)||void 0===n?void 0:n.composition,r._treeTraversal=r.props.treeTraversal,r.state={_width:r._width,_height:r._height},r}return r(t,e),t.prototype.componentDidMount=function(){var e=this.props,t=e.theme,n=e.className,r=e.styles;this._classNames=Bg(r,{theme:t,className:n}),this.createTreeChart(),this.setState({_width:this.props.width||1500,_height:this.props.height||700})},t.prototype.componentDidUpdate=function(e){if(e.layoutWidth!==this.props.layoutWidth){var t=Rc("text"),n=Rc("rect"),r=Rc("path");0===this._nodeElements.length&&0===this._linkElements.length&&(t.remove(),n.remove(),r.remove()),this.createTreeChart()}},t.prototype.createTreeChart=function(){var e=[],t=[],n=new Wg(this._treeData,this._composition,this._classNames,e,t,this._treeTraversal),r=this.state._width-this._margin.left-this._margin.right;n.createTree(this.props.layoutWidth,r),this._nodeElements=e,this._linkElements=t},t.prototype.render=function(){var e;return s.createElement(Vd,null,s.createElement("div",{className:null===(e=this._classNames)||void 0===e?void 0:e.root},s.createElement("svg",{className:"svgTree",width:this.state._width-this._margin.left-this._margin.right,height:this.state._height-this._margin.top-this._margin.bottom},s.createElement("g",{className:"svgNode"},this._nodeElements.map((function(e){return e}))),s.createElement("g",{className:"svgLink"},this._linkElements.map((function(e){return e}))))))},t}(s.Component),Ug=C(zg,(function(e){return{root:[e.theme.spacing,"ms-TreeChart",e.className,{overflow:"scroll"}],link:{fill:"none",stroke:"#A1A1A1",strokeWidth:"2px"},rectNode:{strokeWidth:"2px",fill:"white",padding:"10px",rx:"2px"},rectText:i({fill:"black"},e.theme.fonts.large),rectSubText:i({fill:"#484644"},e.theme.fonts.medium),rectBodyText:i({fill:"#808080"},e.theme.fonts.xSmall),rectMetricText:i({fill:"#000000"},e.theme.fonts.xLarge)}}));!function(e){e[e.long=1]="long",e[e.compact=0]="compact"}(Hg||(Hg={})),function(e){e[e.preOrder=1]="preOrder",e[e.levelOrder=0]="levelOrder"}(Rg||(Rg={}));var Yg=ue(),qg=function(e){function t(t){var n=e.call(this,t)||this;return n.margin={top:2,right:0,bottom:0,left:0},n.state={_points:null,_width:n.props.width||80,_height:n.props.height||20,_valueTextWidth:n.props.valueTextWidth||80},n}return r(t,e),t.prototype.componentDidMount=function(){var e=this,t=gf().x((function(t){return e.x(t.x)})).y0(this.state._height).y1((function(t){return e.y(t.y)})).curve(Tp);this.area=t;var n=Np().x((function(t){return e.x(t.x)})).y((function(t){return e.y(t.y)})).curve(Tp);this.line=n;var r=this.props.data.lineChartData[0].data,i=function(e,t){var n,r,i,o=e.length,a=-1;if(null==t){for(;++a<o;)if(null!=(n=e[a])&&n>=n)for(r=i=n;++a<o;)null!=(n=e[a])&&(r>n&&(r=n),i<n&&(i=n))}else for(;++a<o;)if(null!=(n=t(e[a]))&&n>=n)for(r=i=n;++a<o;)null!=(n=t(e[a]))&&(r>n&&(r=n),i<n&&(i=n));return[r,i]}(r,(function(e){return e.x})),o=i[0],a=i[1];this.x=va().domain([o,a]).range([this.margin.left,this.state._width-this.margin.right]),this.y=va().domain([0,Ri(r,(function(e){return e.y}))]).range([this.state._height-this.margin.bottom,this.margin.top]),this.setState({_points:r})},t.prototype.drawSparkline=function(){return s.createElement(s.Fragment,null,s.createElement("path",{className:"line",d:this.line(this.state._points),fill:"transparent",opacity:1,strokeWidth:2,stroke:this.props.data.lineChartData[0].color}),s.createElement("path",{className:"area",d:this.area(this.state._points),opacity:1,fillOpacity:.2,fill:this.props.data.lineChartData[0].color,"aria-label":"Sparkline with label "+this.props.data.lineChartData[0].legend}))},t.prototype.render=function(){var e=Yg(this.props.styles,{theme:this.props.theme});return s.createElement(Vd,{direction:sd.horizontal,isCircularNavigation:!0,className:e.inlineBlock},s.createElement("div",{className:e.inlineBlock},this.state._width>=50&&this.state._height>=16?s.createElement("svg",{width:this.state._width,height:this.state._height,"data-is-focusable":!0},this.state._points?this.drawSparkline():null):s.createElement(s.Fragment,null),this.props.showLegend&&this.props.data.lineChartData[0].legend?s.createElement("svg",{width:this.state._valueTextWidth,height:this.state._height,"data-is-focusable":!0},s.createElement("text",{x:"0%",dx:8,y:"100%",dy:-5,className:e.valueText},this.props.data.lineChartData[0].legend)):s.createElement(s.Fragment,null)))},t}(s.Component),jg=C(qg,(function(e){return{inlineBlock:{display:"inline"},valueText:i(i({},e.theme.fonts.smallPlus),{fill:e.theme.palette.black})}}));Dr("@fluentui/react-charting","5.16.21"),FluentUIReactCharting=t}();
|