@fluentui/react-charting 5.19.20 → 5.19.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.
@@ -1 +1 @@
1
- var FluentUIReactCharting;!function(){"use strict";var e={1783:function(e,t,n){n.d(t,{WU:function(){return d},jH:function(){return h}});var r,o=n(4783),i=n(4116),a=n(3074);function s(e,t){var n=(0,a.Z)(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")}var l={"%":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 s(100*e,t)},r:s,s:function(e,t){var n=(0,a.Z)(e,t);if(!n)return e+"";var o=n[0],i=n[1],s=i-(r=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,l=o.length;return s===l?o:s>l?o+new Array(s-l+1).join("0"):s>0?o.slice(0,s)+"."+o.slice(s):"0."+new Array(1-s).join("0")+(0,a.Z)(e,Math.max(0,t+s-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function c(e){return e}var u,d,h,p=Array.prototype.map,f=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];u=function(e){var t,n,a=void 0===e.grouping||void 0===e.thousands?c:(t=p.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var o=e.length,i=[],a=0,s=t[0],l=0;o>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),i.push(e.substring(o-=s,o+s)),!((l+=s+1)>r));)s=t[a=(a+1)%t.length];return i.reverse().join(n)}),s=void 0===e.currency?"":e.currency[0]+"",u=void 0===e.currency?"":e.currency[1]+"",d=void 0===e.decimal?".":e.decimal+"",h=void 0===e.numerals?c:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(p.call(e.numerals,String)),g=void 0===e.percent?"%":e.percent+"",m=void 0===e.minus?"-":e.minus+"",v=void 0===e.nan?"NaN":e.nan+"";function _(e){var t=(e=(0,i.Z)(e)).fill,n=e.align,o=e.sign,c=e.symbol,p=e.zero,_=e.width,y=e.comma,x=e.precision,b=e.trim,C=e.type;"n"===C?(y=!0,C="g"):l[C]||(void 0===x&&(x=12),b=!0,C="g"),(p||"0"===t&&"="===n)&&(p=!0,t="0",n="=");var E="$"===c?s:"#"===c&&/[boxX]/.test(C)?"0"+C.toLowerCase():"",S="$"===c?u:/[%p]/.test(C)?g:"",A=l[C],L=/[defgprs%]/.test(C);function k(e){var i,s,l,c=E,u=S;if("c"===C)u=A(e)+u,e="";else{var g=(e=+e)<0||1/e<0;if(e=isNaN(e)?v:A(Math.abs(e),x),b&&(e=function(e){e:for(var t,n=e.length,r=1,o=-1;r<n;++r)switch(e[r]){case".":o=t=r;break;case"0":0===o&&(o=r),t=r;break;default:if(!+e[r])break e;o>0&&(o=0)}return o>0?e.slice(0,o)+e.slice(t+1):e}(e)),g&&0==+e&&"+"!==o&&(g=!1),c=(g?"("===o?o:m:"-"===o||"("===o?"":o)+c,u=("s"===C?f[8+r/3]:"")+u+(g&&"("===o?")":""),L)for(i=-1,s=e.length;++i<s;)if(48>(l=e.charCodeAt(i))||l>57){u=(46===l?d+e.slice(i+1):e.slice(i))+u,e=e.slice(0,i);break}}y&&!p&&(e=a(e,1/0));var k=c.length+e.length+u.length,T=k<_?new Array(_-k+1).join(t):"";switch(y&&p&&(e=a(T+e,T.length?_-u.length:1/0),T=""),n){case"<":e=c+e+u+T;break;case"=":e=c+T+e+u;break;case"^":e=T.slice(0,k=T.length>>1)+c+e+u+T.slice(k);break;default:e=T+c+e+u}return h(e)}return x=void 0===x?6:/[gprs]/.test(C)?Math.max(1,Math.min(21,x)):Math.max(0,Math.min(20,x)),k.toString=function(){return e+""},k}return{format:_,formatPrefix:function(e,t){var n=_(((e=(0,i.Z)(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor((0,o.Z)(t)/3))),a=Math.pow(10,-r),s=f[8+r/3];return function(e){return n(a*e)+s}}}}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),d=u.format,h=u.formatPrefix},4783:function(e,t,n){n.d(t,{Z:function(){return o}});var r=n(3074);function o(e){return(e=(0,r.Z)(Math.abs(e)))?e[1]:NaN}},3074:function(e,t,n){function r(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)]}n.d(t,{Z:function(){return r}})},4116:function(e,t,n){n.d(t,{Z:function(){return o}});var r=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function o(e){if(!(t=r.exec(e)))throw new Error("invalid format: "+e);var t;return new i({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 i(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+""}o.prototype=i.prototype,i.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}},8485:function(e,t,n){n.d(t,{Eb:function(){return fe},B:function(){return te},Ys:function(){return de},td:function(){return ge}});var r="http://www.w3.org/1999/xhtml",o={svg:"http://www.w3.org/2000/svg",xhtml:r,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function i(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),o.hasOwnProperty(t)?{space:o[t],local:e}:e}function a(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===r&&t.documentElement.namespaceURI===r?t.createElement(e):t.createElementNS(n,e)}}function s(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function l(e){var t=i(e);return(t.local?s:a)(t)}function c(){}function u(e){return null==e?c:function(){return this.querySelector(e)}}function d(){return[]}var h=function(e){return function(){return this.matches(e)}};if("undefined"!=typeof document){var p=document.documentElement;if(!p.matches){var f=p.webkitMatchesSelector||p.msMatchesSelector||p.mozMatchesSelector||p.oMatchesSelector;h=function(e){return function(){return f.call(this,e)}}}}var g=h;function m(e){return new Array(e.length)}function v(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}v.prototype={constructor:v,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)}};function _(e,t,n,r,o,i){for(var a,s=0,l=t.length,c=i.length;s<c;++s)(a=t[s])?(a.__data__=i[s],r[s]=a):n[s]=new v(e,i[s]);for(;s<l;++s)(a=t[s])&&(o[s]=a)}function y(e,t,n,r,o,i,a){var s,l,c,u={},d=t.length,h=i.length,p=new Array(d);for(s=0;s<d;++s)(l=t[s])&&(p[s]=c="$"+a.call(l,l.__data__,s,t),c in u?o[s]=l:u[c]=l);for(s=0;s<h;++s)(l=u[c="$"+a.call(e,i[s],s,i)])?(r[s]=l,l.__data__=i[s],u[c]=null):n[s]=new v(e,i[s]);for(s=0;s<d;++s)(l=t[s])&&u[p[s]]===l&&(o[s]=l)}function x(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function b(e){return function(){this.removeAttribute(e)}}function C(e){return function(){this.removeAttributeNS(e.space,e.local)}}function E(e,t){return function(){this.setAttribute(e,t)}}function S(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function A(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function L(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 k(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function T(e){return function(){this.style.removeProperty(e)}}function w(e,t,n){return function(){this.style.setProperty(e,t,n)}}function D(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function M(e){return function(){delete this[e]}}function P(e,t){return function(){this[e]=t}}function F(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}function I(e){return e.trim().split(/^|\s+/)}function N(e){return e.classList||new V(e)}function V(e){this._node=e,this._names=I(e.getAttribute("class")||"")}function O(e,t){for(var n=N(e),r=-1,o=t.length;++r<o;)n.add(t[r])}function H(e,t){for(var n=N(e),r=-1,o=t.length;++r<o;)n.remove(t[r])}function B(e){return function(){O(this,e)}}function R(e){return function(){H(this,e)}}function z(e,t){return function(){(t.apply(this,arguments)?O:H)(this,e)}}function W(){this.textContent=""}function Y(e){return function(){this.textContent=e}}function Z(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}function q(){this.innerHTML=""}function X(e){return function(){this.innerHTML=e}}function U(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}function j(){this.nextSibling&&this.parentNode.appendChild(this)}function G(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function K(){return null}function $(){var e=this.parentNode;e&&e.removeChild(this)}function J(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}function Q(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}V.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 ee={},te=null;function ne(e,t,n){return e=re(e,t,n),function(t){var n=t.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||e.call(this,t)}}function re(e,t,n){return function(r){var o=te;te=r;try{e.call(this,this.__data__,t,n)}finally{te=o}}}function oe(e){return function(){var t=this.__on;if(t){for(var n,r=0,o=-1,i=t.length;r<i;++r)n=t[r],e.type&&n.type!==e.type||n.name!==e.name?t[++o]=n:this.removeEventListener(n.type,n.listener,n.capture);++o?t.length=o:delete this.__on}}}function ie(e,t,n){var r=ee.hasOwnProperty(e.type)?ne:re;return function(o,i,a){var s,l=this.__on,c=r(t,i,a);if(l)for(var u=0,d=l.length;u<d;++u)if((s=l[u]).type===e.type&&s.name===e.name)return this.removeEventListener(s.type,s.listener,s.capture),this.addEventListener(s.type,s.listener=c,s.capture=n),void(s.value=t);this.addEventListener(e.type,c,n),s={type:e.type,name:e.name,value:t,listener:c,capture:n},l?l.push(s):this.__on=[s]}}function ae(e,t,n){var r=k(e),o=r.CustomEvent;"function"==typeof o?o=new o(t,n):(o=r.document.createEvent("Event"),n?(o.initEvent(t,n.bubbles,n.cancelable),o.detail=n.detail):o.initEvent(t,!1,!1)),e.dispatchEvent(o)}function se(e,t){return function(){return ae(this,e,t)}}function le(e,t){return function(){return ae(this,e,t.apply(this,arguments))}}"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(ee={mouseenter:"mouseover",mouseleave:"mouseout"}));var ce=[null];function ue(e,t){this._groups=e,this._parents=t}function de(e){return"string"==typeof e?new ue([[document.querySelector(e)]],[document.documentElement]):new ue([[e]],ce)}ue.prototype=function(){return new ue([[document.documentElement]],ce)}.prototype={constructor:ue,select:function(e){"function"!=typeof e&&(e=u(e));for(var t=this._groups,n=t.length,r=new Array(n),o=0;o<n;++o)for(var i,a,s=t[o],l=s.length,c=r[o]=new Array(l),d=0;d<l;++d)(i=s[d])&&(a=e.call(i,i.__data__,d,s))&&("__data__"in i&&(a.__data__=i.__data__),c[d]=a);return new ue(r,this._parents)},selectAll:function(e){"function"!=typeof e&&(e=function(e){return null==e?d:function(){return this.querySelectorAll(e)}}(e));for(var t=this._groups,n=t.length,r=[],o=[],i=0;i<n;++i)for(var a,s=t[i],l=s.length,c=0;c<l;++c)(a=s[c])&&(r.push(e.call(a,a.__data__,c,s)),o.push(a));return new ue(r,o)},filter:function(e){"function"!=typeof e&&(e=g(e));for(var t=this._groups,n=t.length,r=new Array(n),o=0;o<n;++o)for(var i,a=t[o],s=a.length,l=r[o]=[],c=0;c<s;++c)(i=a[c])&&e.call(i,i.__data__,c,a)&&l.push(i);return new ue(r,this._parents)},data:function(e,t){if(!e)return f=new Array(this.size()),u=-1,this.each((function(e){f[++u]=e})),f;var n,r=t?y:_,o=this._parents,i=this._groups;"function"!=typeof e&&(n=e,e=function(){return n});for(var a=i.length,s=new Array(a),l=new Array(a),c=new Array(a),u=0;u<a;++u){var d=o[u],h=i[u],p=h.length,f=e.call(d,d&&d.__data__,u,o),g=f.length,m=l[u]=new Array(g),v=s[u]=new Array(g);r(d,h,m,v,c[u]=new Array(p),f,t);for(var x,b,C=0,E=0;C<g;++C)if(x=m[C]){for(C>=E&&(E=C+1);!(b=v[E])&&++E<g;);x._next=b||null}}return(s=new ue(s,o))._enter=l,s._exit=c,s},enter:function(){return new ue(this._enter||this._groups.map(m),this._parents)},exit:function(){return new ue(this._exit||this._groups.map(m),this._parents)},merge:function(e){for(var t=this._groups,n=e._groups,r=t.length,o=n.length,i=Math.min(r,o),a=new Array(r),s=0;s<i;++s)for(var l,c=t[s],u=n[s],d=c.length,h=a[s]=new Array(d),p=0;p<d;++p)(l=c[p]||u[p])&&(h[p]=l);for(;s<r;++s)a[s]=t[s];return new ue(a,this._parents)},order:function(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r,o=e[t],i=o.length-1,a=o[i];--i>=0;)(r=o[i])&&(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=x);for(var n=this._groups,r=n.length,o=new Array(r),i=0;i<r;++i){for(var a,s=n[i],l=s.length,c=o[i]=new Array(l),u=0;u<l;++u)(a=s[u])&&(c[u]=a);c.sort(t)}return new ue(o,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],o=0,i=r.length;o<i;++o){var a=r[o];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 o,i=t[n],a=0,s=i.length;a<s;++a)(o=i[a])&&e.call(o,o.__data__,a,i);return this},attr:function(e,t){var n=i(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?C:b:"function"==typeof t?n.local?L:A:n.local?S:E)(n,t))},style:function(e,t,n){return arguments.length>1?this.each((null==t?T:"function"==typeof t?D:w)(e,t,null==n?"":n)):function(e,t){return e.style.getPropertyValue(t)||k(e).getComputedStyle(e,null).getPropertyValue(t)}(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?M:"function"==typeof t?F:P)(e,t)):this.node()[e]},classed:function(e,t){var n=I(e+"");if(arguments.length<2){for(var r=N(this.node()),o=-1,i=n.length;++o<i;)if(!r.contains(n[o]))return!1;return!0}return this.each(("function"==typeof t?z:t?B:R)(n,t))},text:function(e){return arguments.length?this.each(null==e?W:("function"==typeof e?Z:Y)(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?q:("function"==typeof e?U:X)(e)):this.node().innerHTML},raise:function(){return this.each(j)},lower:function(){return this.each(G)},append:function(e){var t="function"==typeof e?e:l(e);return this.select((function(){return this.appendChild(t.apply(this,arguments))}))},insert:function(e,t){var n="function"==typeof e?e:l(e),r=null==t?K:"function"==typeof t?t:u(t);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each($)},clone:function(e){return this.select(e?Q:J)},datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},on:function(e,t,n){var r,o,i=function(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}}))}(e+""),a=i.length;if(!(arguments.length<2)){for(s=t?ie:oe,null==n&&(n=!1),r=0;r<a;++r)this.each(s(i[r],t,n));return this}var s=this.node().__on;if(s)for(var l,c=0,u=s.length;c<u;++c)for(r=0,l=s[c];r<a;++r)if((o=i[r]).type===l.type&&o.name===l.name)return l.value},dispatch:function(e,t){return this.each(("function"==typeof t?le:se)(e,t))}};var he=0;function pe(){this._="@"+(++he).toString(36)}function fe(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 o=e.getBoundingClientRect();return[t.clientX-o.left-e.clientLeft,t.clientY-o.top-e.clientTop]}function ge(e){return"string"==typeof e?new ue([document.querySelectorAll(e)],[document.documentElement]):new ue([null==e?[]:e],ce)}pe.prototype=function(){return new pe}.prototype={constructor:pe,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._}}},731:function(e,t,n){var r,o,i;n.d(t,{i$:function(){return o}}),i={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"]},r=(0,n(6465).Z)(i),o=r.format,r.parse,r.utcFormat,r.utcParse},6465:function(e,t,n){n.d(t,{Z:function(){return h}});var r=n(3787),o=n(2605),i=n(2167),a=n(3645),s=n(9507),l=n(2527);function c(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 u(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 d(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function h(e){var t=e.dateTime,n=e.date,s=e.time,l=e.periods,h=e.days,f=e.shortDays,g=e.months,m=e.shortMonths,v=y(l),_=x(l),J=y(h),_e=x(h),De=y(f),Me=x(f),Pe=y(g),Fe=x(g),Ie=y(m),Ne=x(m),Ve={a:function(e){return f[e.getDay()]},A:function(e){return h[e.getDay()]},b:function(e){return m[e.getMonth()]},B:function(e){return g[e.getMonth()]},c:null,d:z,e:z,f:X,g:re,G:ie,H:W,I:Y,j:Z,L:q,m:U,M:j,p:function(e){return l[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:Te,s:we,S:G,u:K,U:$,V:Q,w:ee,W:te,x:null,X:null,y:ne,Y:oe,Z:ae,"%":ke},Oe={a:function(e){return f[e.getUTCDay()]},A:function(e){return h[e.getUTCDay()]},b:function(e){return m[e.getUTCMonth()]},B:function(e){return g[e.getUTCMonth()]},c:null,d:se,e:se,f:he,g:Ee,G:Ae,H:le,I:ce,j:ue,L:de,m:pe,M:fe,p:function(e){return l[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:Te,s:we,S:ge,u:me,U:ve,V:ye,w:xe,W:be,x:null,X:null,y:Ce,Y:Se,Z:Le,"%":ke},He={a:function(e,t,n){var r=De.exec(t.slice(n));return r?(e.w=Me.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){var r=J.exec(t.slice(n));return r?(e.w=_e.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){var r=Ie.exec(t.slice(n));return r?(e.m=Ne.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){var r=Pe.exec(t.slice(n));return r?(e.m=Fe.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,n,r){return ze(e,t,n,r)},d:M,e:M,f:O,g:k,G:L,H:F,I:F,j:P,L:V,m:D,M:I,p:function(e,t,n){var r=v.exec(t.slice(n));return r?(e.p=_.get(r[0].toLowerCase()),n+r[0].length):-1},q:w,Q:B,s:R,S:N,u:C,U:E,V:S,w:b,W:A,x:function(e,t,r){return ze(e,n,t,r)},X:function(e,t,n){return ze(e,s,t,n)},y:k,Y:L,Z:T,"%":H};function Be(e,t){return function(n){var r,o,i,a=[],s=-1,l=0,c=e.length;for(n instanceof Date||(n=new Date(+n));++s<c;)37===e.charCodeAt(s)&&(a.push(e.slice(l,s)),null!=(o=p[r=e.charAt(++s)])?r=e.charAt(++s):o="e"===r?" ":"0",(i=t[r])&&(r=i(n,o)),a.push(r),l=s+1);return a.push(e.slice(l,s)),a.join("")}}function Re(e,t){return function(n){var s,l,h=d(1900,void 0,1);if(ze(h,e,n+="",0)!=n.length)return null;if("Q"in h)return new Date(h.Q);if("s"in h)return new Date(1e3*h.s+("L"in h?h.L:0));if(t&&!("Z"in h)&&(h.Z=0),"p"in h&&(h.H=h.H%12+12*h.p),void 0===h.m&&(h.m="q"in h?h.q:0),"V"in h){if(h.V<1||h.V>53)return null;"w"in h||(h.w=1),"Z"in h?(l=(s=u(d(h.y,0,1))).getUTCDay(),s=l>4||0===l?r.l6.ceil(s):(0,r.l6)(s),s=o.Z.offset(s,7*(h.V-1)),h.y=s.getUTCFullYear(),h.m=s.getUTCMonth(),h.d=s.getUTCDate()+(h.w+6)%7):(l=(s=c(d(h.y,0,1))).getDay(),s=l>4||0===l?i.wA.ceil(s):(0,i.wA)(s),s=a.Z.offset(s,7*(h.V-1)),h.y=s.getFullYear(),h.m=s.getMonth(),h.d=s.getDate()+(h.w+6)%7)}else("W"in h||"U"in h)&&("w"in h||(h.w="u"in h?h.u%7:"W"in h?1:0),l="Z"in h?u(d(h.y,0,1)).getUTCDay():c(d(h.y,0,1)).getDay(),h.m=0,h.d="W"in h?(h.w+6)%7+7*h.W-(l+5)%7:h.w+7*h.U-(l+6)%7);return"Z"in h?(h.H+=h.Z/100|0,h.M+=h.Z%100,u(h)):c(h)}}function ze(e,t,n,r){for(var o,i,a=0,s=t.length,l=n.length;a<s;){if(r>=l)return-1;if(37===(o=t.charCodeAt(a++))){if(o=t.charAt(a++),!(i=He[o in p?t.charAt(a++):o])||(r=i(e,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}return Ve.x=Be(n,Ve),Ve.X=Be(s,Ve),Ve.c=Be(t,Ve),Oe.x=Be(n,Oe),Oe.X=Be(s,Oe),Oe.c=Be(t,Oe),{format:function(e){var t=Be(e+="",Ve);return t.toString=function(){return e},t},parse:function(e){var t=Re(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=Be(e+="",Oe);return t.toString=function(){return e},t},utcParse:function(e){var t=Re(e+="",!0);return t.toString=function(){return e},t}}}var p={"-":"",_:" ",0:"0"},f=/^\s*\d+/,g=/^%/,m=/[\\^$*+?|[\]().{}]/g;function v(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",i=o.length;return r+(i<n?new Array(n-i+1).join(t)+o:o)}function _(e){return e.replace(m,"\\$&")}function y(e){return new RegExp("^(?:"+e.map(_).join("|")+")","i")}function x(e){return new Map(e.map(((e,t)=>[e.toLowerCase(),t])))}function b(e,t,n){var r=f.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function C(e,t,n){var r=f.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function E(e,t,n){var r=f.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function S(e,t,n){var r=f.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function A(e,t,n){var r=f.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function L(e,t,n){var r=f.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function k(e,t,n){var r=f.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function T(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 w(e,t,n){var r=f.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function D(e,t,n){var r=f.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function M(e,t,n){var r=f.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function P(e,t,n){var r=f.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function F(e,t,n){var r=f.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function I(e,t,n){var r=f.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function N(e,t,n){var r=f.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function V(e,t,n){var r=f.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function O(e,t,n){var r=f.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function H(e,t,n){var r=g.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function B(e,t,n){var r=f.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function R(e,t,n){var r=f.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function z(e,t){return v(e.getDate(),t,2)}function W(e,t){return v(e.getHours(),t,2)}function Y(e,t){return v(e.getHours()%12||12,t,2)}function Z(e,t){return v(1+a.Z.count((0,s.Z)(e),e),t,3)}function q(e,t){return v(e.getMilliseconds(),t,3)}function X(e,t){return q(e,t)+"000"}function U(e,t){return v(e.getMonth()+1,t,2)}function j(e,t){return v(e.getMinutes(),t,2)}function G(e,t){return v(e.getSeconds(),t,2)}function K(e){var t=e.getDay();return 0===t?7:t}function $(e,t){return v(i.OM.count((0,s.Z)(e)-1,e),t,2)}function J(e){var t=e.getDay();return t>=4||0===t?(0,i.bL)(e):i.bL.ceil(e)}function Q(e,t){return e=J(e),v(i.bL.count((0,s.Z)(e),e)+(4===(0,s.Z)(e).getDay()),t,2)}function ee(e){return e.getDay()}function te(e,t){return v(i.wA.count((0,s.Z)(e)-1,e),t,2)}function ne(e,t){return v(e.getFullYear()%100,t,2)}function re(e,t){return v((e=J(e)).getFullYear()%100,t,2)}function oe(e,t){return v(e.getFullYear()%1e4,t,4)}function ie(e,t){var n=e.getDay();return v((e=n>=4||0===n?(0,i.bL)(e):i.bL.ceil(e)).getFullYear()%1e4,t,4)}function ae(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+v(t/60|0,"0",2)+v(t%60,"0",2)}function se(e,t){return v(e.getUTCDate(),t,2)}function le(e,t){return v(e.getUTCHours(),t,2)}function ce(e,t){return v(e.getUTCHours()%12||12,t,2)}function ue(e,t){return v(1+o.Z.count((0,l.Z)(e),e),t,3)}function de(e,t){return v(e.getUTCMilliseconds(),t,3)}function he(e,t){return de(e,t)+"000"}function pe(e,t){return v(e.getUTCMonth()+1,t,2)}function fe(e,t){return v(e.getUTCMinutes(),t,2)}function ge(e,t){return v(e.getUTCSeconds(),t,2)}function me(e){var t=e.getUTCDay();return 0===t?7:t}function ve(e,t){return v(r.Ox.count((0,l.Z)(e)-1,e),t,2)}function _e(e){var t=e.getUTCDay();return t>=4||0===t?(0,r.hB)(e):r.hB.ceil(e)}function ye(e,t){return e=_e(e),v(r.hB.count((0,l.Z)(e),e)+(4===(0,l.Z)(e).getUTCDay()),t,2)}function xe(e){return e.getUTCDay()}function be(e,t){return v(r.l6.count((0,l.Z)(e)-1,e),t,2)}function Ce(e,t){return v(e.getUTCFullYear()%100,t,2)}function Ee(e,t){return v((e=_e(e)).getUTCFullYear()%100,t,2)}function Se(e,t){return v(e.getUTCFullYear()%1e4,t,4)}function Ae(e,t){var n=e.getUTCDay();return v((e=n>=4||0===n?(0,r.hB)(e):r.hB.ceil(e)).getUTCFullYear()%1e4,t,4)}function Le(){return"+0000"}function ke(){return"%"}function Te(e){return+e}function we(e){return Math.floor(+e/1e3)}},3645:function(e,t,n){var r=n(4315),o=n(4827),i=(0,r.Z)((e=>e.setHours(0,0,0,0)),((e,t)=>e.setDate(e.getDate()+t)),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*o.yB)/o.UD),(e=>e.getDate()-1));t.Z=i,i.range},4827:function(e,t,n){n.d(t,{UD:function(){return a},Y2:function(){return i},Ym:function(){return r},iM:function(){return s},jz:function(){return l},qz:function(){return c},yB:function(){return o}});const r=1e3,o=60*r,i=60*o,a=24*i,s=7*a,l=30*a,c=365*a},5401:function(e,t,n){var r=n(4315),o=n(4827),i=(0,r.Z)((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*o.Ym-e.getMinutes()*o.yB)}),(function(e,t){e.setTime(+e+t*o.Y2)}),(function(e,t){return(t-e)/o.Y2}),(function(e){return e.getHours()}));t.Z=i,i.range},4315:function(e,t,n){n.d(t,{Z:function(){return i}});var r=new Date,o=new Date;function i(e,t,n,a){function s(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return s.floor=function(t){return e(t=new Date(+t)),t},s.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},s.round=function(e){var t=s(e),n=s.ceil(e);return e-t<n-e?t:n},s.offset=function(e,n){return t(e=new Date(+e),null==n?1:Math.floor(n)),e},s.range=function(n,r,o){var i,a=[];if(n=s.ceil(n),o=null==o?1:Math.floor(o),!(n<r&&o>0))return a;do{a.push(i=new Date(+n)),t(n,o),e(n)}while(i<n&&n<r);return a},s.filter=function(n){return i((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&&(s.count=function(t,i){return r.setTime(+t),o.setTime(+i),e(r),e(o),Math.floor(n(r,o))},s.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?s.filter(a?function(t){return a(t)%e==0}:function(t){return s.count(0,t)%e==0}):s:null}),s}},4189:function(e,t,n){var r=n(4315),o=n(4827),i=(0,r.Z)((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*o.Ym)}),(function(e,t){e.setTime(+e+t*o.yB)}),(function(e,t){return(t-e)/o.yB}),(function(e){return e.getMinutes()}));t.Z=i,i.range},9604:function(e,t,n){var r=(0,n(4315).Z)((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()}));t.Z=r,r.range},87:function(e,t,n){var r=n(4315),o=n(4827),i=(0,r.Z)((function(e){e.setTime(e-e.getMilliseconds())}),(function(e,t){e.setTime(+e+t*o.Ym)}),(function(e,t){return(t-e)/o.Ym}),(function(e){return e.getUTCSeconds()}));t.Z=i,i.range},2605:function(e,t,n){var r=n(4315),o=n(4827),i=(0,r.Z)((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/o.UD}),(function(e){return e.getUTCDate()-1}));t.Z=i,i.range},3787:function(e,t,n){n.d(t,{Ox:function(){return a},hB:function(){return u},l6:function(){return s}});var r=n(4315),o=n(4827);function i(e){return(0,r.Z)((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)/o.iM}))}var a=i(0),s=i(1),l=i(2),c=i(3),u=i(4),d=i(5),h=i(6);a.range,s.range,l.range,c.range,u.range,d.range,h.range},2527:function(e,t,n){var r=n(4315),o=(0,r.Z)((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()}));o.every=function(e){return isFinite(e=Math.floor(e))&&e>0?(0,r.Z)((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},t.Z=o,o.range},2167:function(e,t,n){n.d(t,{OM:function(){return a},bL:function(){return u},wA:function(){return s}});var r=n(4315),o=n(4827);function i(e){return(0,r.Z)((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())*o.yB)/o.iM}))}var a=i(0),s=i(1),l=i(2),c=i(3),u=i(4),d=i(5),h=i(6);a.range,s.range,l.range,c.range,u.range,d.range,h.range},9507:function(e,t,n){var r=n(4315),o=(0,r.Z)((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()}));o.every=function(e){return isFinite(e=Math.floor(e))&&e>0?(0,r.Z)((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},t.Z=o,o.range},9939:function(e,t,n){n.d(t,{ZT:function(){return o},_T:function(){return a},ev:function(){return s},pi:function(){return i}});var r=function(e,t){return r=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])},r(e,t)};function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};function a(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 o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function s(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}Object.create,Object.create},4473:function(e,t,n){function r(e){i!==e&&(i=e)}function o(){return void 0===i&&(i="undefined"!=typeof document&&!!document.documentElement&&"rtl"===document.documentElement.getAttribute("dir")),i}var i;function a(){return{rtl:o()}}n.d(t,{Eo:function(){return a},ok:function(){return r}}),i=o()},5499:function(e,t,n){n.d(t,{Y:function(){return l}});var r,o=n(9939),i="__stylesheet__",a="undefined"!=typeof navigator&&/rv:11.0/.test(navigator.userAgent),s={};try{s=window||{}}catch(e){}var l=function(){function e(e,t){var n,r,i,a,s,l;this._rules=[],this._preservedRules=[],this._counter=0,this._keyToClassName={},this._onInsertRuleCallbacks=[],this._onResetCallbacks=[],this._classNameToArgs={},this._config=(0,o.pi)({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!==(i=this._config.classNameCache)&&void 0!==i?i: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(!(r=s[i])||r._lastStyleElement&&r._lastStyleElement.ownerDocument!==document){var t=(null==s?void 0:s.FabricConfig)||{},n=new e(t.mergeStyles,t.serializedStylesheet);r=n,s[i]=n}return r},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=(0,o.pi)((0,o.pi)({},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,n=e||this._config.defaultPrefix;return"".concat(t?t+"-":"").concat(n,"-").concat(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 o=r.sheet;try{o.insertRule(e,o.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(),a||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 o=this._findPlaceholderStyleTag();n=o?o.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}()},4270:function(e,t,n){n.d(t,{m:function(){return o}});var r=n(9939);function o(){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={},i={},a=0,s=e;a<s.length;a++){var l=s[a];if(l)for(var c in l)if(l.hasOwnProperty(c)){if("subComponentStyles"===c&&void 0!==l.subComponentStyles){var u=l.subComponentStyles;for(var d in u)u.hasOwnProperty(d)&&(i.hasOwnProperty(d)?i[d].push(u[d]):i[d]=[u[d]]);continue}var h=n[c],p=l[c];n[c]=void 0===h?p:(0,r.ev)((0,r.ev)([],Array.isArray(h)?h:[h],!0),Array.isArray(p)?p:[p],!0)}}if(Object.keys(i).length>0){n.subComponentStyles={};var f=n.subComponentStyles,g=function(e){if(i.hasOwnProperty(e)){var t=i[e];f[e]=function(e){return o.apply(void 0,t.map((function(t){return"function"==typeof t?t(e):t})))}}};for(var d in i)g(d)}return n}},3802:function(e,t,n){n.d(t,{U:function(){return o}});var r=n(5499);function o(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=[],o=[],i=r.Y.getInstance();return function e(t){for(var r=0,a=t;r<a.length;r++){var s=a[r];if(s)if("string"==typeof s)if(s.indexOf(" ")>=0)e(s.split(" "));else{var l=i.argsFromClassName(s);l?e(l):-1===n.indexOf(s)&&n.push(s)}else Array.isArray(s)?e(s):"object"==typeof s&&o.push(s)}}(e),{classes:n,objects:o}}},13:function(e,t,n){n.d(t,{y:function(){return a}});var r=n(3802),o=n(4473),i=n(7373);function a(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(e,t){var n=e instanceof Array?e:[e],o=(0,r.U)(n),a=o.classes,s=o.objects;return s.length&&a.push((0,i.AE)(t||{},s)),a.join(" ")}(e,(0,o.Eo)())}},7373:function(e,t,n){n.d(t,{Jh:function(){return k},dH:function(){return A},AE:function(){return T},aj:function(){return L}});var r,o=n(9939),i=n(5499),a={},s={"user-select":1};function l(e,t){var n=function(){var e;if(!r){var t="undefined"!=typeof document?document:void 0,n="undefined"!=typeof navigator?navigator:void 0,o=null===(e=null==n?void 0:n.userAgent)||void 0===e?void 0:e.toLowerCase();r=t?{isWebkit:!(!t||!("WebkitAppearance"in t.documentElement.style)),isMoz:!!(o&&o.indexOf("firefox")>-1),isOpera:!!(o&&o.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 r}(),o=e[t];if(s[o]){var i=e[t+1];s[o]&&(n.isWebkit&&e.push("-webkit-"+o,i),n.isMoz&&e.push("-moz-"+o,i),n.isMs&&e.push("-ms-"+o,i),n.isOpera&&e.push("-o-"+o,i))}}var c,u=["column-count","font-weight","flex","flex-grow","flex-shrink","fill-opacity","opacity","order","z-index","zoom"];function d(e,t){var n=e[t],r=e[t+1];if("number"==typeof r){var o=u.indexOf(n)>-1,i=n.indexOf("--")>-1,a=o||i?"":"px";e[t+1]="".concat(r).concat(a)}}var h="left",p="right",f="@noflip",g=((c={})[h]=p,c[p]=h,c),m={"w-resize":"e-resize","sw-resize":"se-resize","nw-resize":"ne-resize"};function v(e,t,n){if(e.rtl){var r=t[n];if(!r)return;var o=t[n+1];if("string"==typeof o&&o.indexOf(f)>=0)t[n+1]=o.replace(/\s*(?:\/\*\s*)?\@noflip\b(?:\s*\*\/)?\s*?/g,"");else if(r.indexOf(h)>=0)t[n]=r.replace(h,p);else if(r.indexOf(p)>=0)t[n]=r.replace(p,h);else if(String(o).indexOf(h)>=0)t[n+1]=o.replace(h,p);else if(String(o).indexOf(p)>=0)t[n+1]=o.replace(p,h);else if(g[r])t[n]=g[r];else if(m[o])t[n+1]=m[o];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"".concat(t[0]," ").concat(t[3]," ").concat(t[2]," ").concat(t[1])}return e}(o);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(" ")}(o)}}}var _="displayName",y=/\:global\((.+?)\)/g;function x(e,t){return e.indexOf(":global(")>=0?e.replace(y,"$1"):0===e.indexOf(":")?t+e:e.indexOf("&")<0?t+" "+e:e}function b(e,t,n,r){void 0===t&&(t={__order:[]}),0===n.indexOf("@")?C([r],t,n=n+"{"+e):n.indexOf(",")>-1?function(e){if(!y.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(".concat(e.trim(),")")})).join(", ")]);return t.reverse().reduce((function(e,t){var n=t[0],r=t[1],o=t[2];return e.slice(0,n)+o+e.slice(r)}),e)}(n).split(",").map((function(e){return e.trim()})).forEach((function(n){return C([r],t,x(n,e))})):C([r],t,x(n,e))}function C(e,t,n){void 0===t&&(t={__order:[]}),void 0===n&&(n="&");var r=i.Y.getInstance(),o=t[n];o||(o={},t[n]=o,t.__order.push(n));for(var a=0,s=e;a<s.length;a++){var l=s[a];if("string"==typeof l){var c=r.argsFromClassName(l);c&&C(c,t,n)}else if(Array.isArray(l))C(l,t,n);else for(var u in l)if(l.hasOwnProperty(u)){var d=l[u];if("selectors"===u){var h=l.selectors;for(var p in h)h.hasOwnProperty(p)&&b(n,t,p,h[p])}else"object"==typeof d?null!==d&&b(n,t,u,d):void 0!==d&&("margin"===u||"padding"===u?E(o,u,d):o[u]=d)}}return t}function E(e,t,n){var r="string"==typeof n?function(e){for(var t=[],n=0,r=0,o=0;o<e.length;o++)switch(e[o]){case"(":r++;break;case")":r&&r--;break;case"\t":case" ":r||(o>n&&t.push(e.substring(n,o)),n=o+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 S(e,t){return t<=0?"":1===t?e:e+S(e,t-1)}function A(e,t){if(!t)return"";var n,r,o,i=[];for(var s in t)t.hasOwnProperty(s)&&s!==_&&void 0!==t[s]&&i.push(s,t[s]);for(var c=0;c<i.length;c+=2)o=void 0,"-"!==(o=(n=i)[r=c]).charAt(0)&&(n[r]=a[o]=a[o]||o.replace(/([A-Z])/g,"-$1").toLowerCase()),d(i,c),v(e,i,c),l(i,c);for(c=1;c<i.length;c+=4)i.splice(c,1,":",i[c],";");return i.join("")}function L(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=C(t),o=function(e,t){for(var n=[e.rtl?"rtl":"ltr"],r=!1,o=0,i=t.__order;o<i.length;o++){var a=i[o];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}(e,r);if(o){var a=i.Y.getInstance(),s={className:a.classNameFromKey(o),key:o,args:t};if(!s.className){s.className=a.getClassName(function(e){var t=e&&e["&"];return t?t.displayName:void 0}(r));for(var l=[],c=0,u=r.__order;c<u.length;c++){var d=u[c];l.push(d,A(e,r[d]))}s.rulesToInsert=l}return s}}function k(e,t){void 0===t&&(t=1);var n=i.Y.getInstance(),r=e.className,o=e.key,a=e.args,s=e.rulesToInsert;if(s){for(var l=0;l<s.length;l+=2){var c=s[l+1];if(c){var u=s[l];u=u.replace(/&/g,S(".".concat(e.className),t));var d="".concat(u,"{").concat(c,"}").concat(0===u.indexOf("@")?"}":"");n.insertRule(d)}}n.cacheClassName(r,o,a,s)}}function T(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=L.apply(void 0,(0,o.ev)([e],t,!1));return r?(k(r,e.specificityMultiplier),r.className):""}},8024:function(e,t,n){n.r(t),n.d(t,{ChartHoverCard:function(){return d}});var r=n(9085),o=n(9939),i=n(7363),a=n(8461),s=n(3813),l=(0,a.y)(),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,o.ZT)(t,e),t.prototype.render=function(){var e=this.props,t=e.color,n=e.Legend,r=e.XValue,o=e.YValue,a=e.styles,c=e.theme,u=e.ratio,d=e.descriptionMessage,h=e.culture;return this._classNames=l(a,{theme:c,color:t,XValue:r,isRatioPresent:!!u}),i.createElement("div",{className:this._classNames.calloutContentRoot},i.createElement("div",{className:this._classNames.calloutDateTimeContainer},i.createElement("div",{className:this._classNames.calloutContentX},r," ")),i.createElement("div",{className:this._classNames.calloutInfoContainer},i.createElement("div",{className:this._classNames.calloutBlockContainer},i.createElement("div",{className:this._classNames.calloutlegendText},(0,s.Ts)(n,h)),i.createElement("div",{className:this._classNames.calloutContentY},(0,s.Ts)(o,h))),!!u&&i.createElement("div",{className:this._classNames.ratio},i.createElement(i.Fragment,null,i.createElement("span",{className:this._classNames.numerator},(0,s.Ts)(u[0],h)),"/",i.createElement("span",{className:this._classNames.denominator},(0,s.Ts)(u[1],h))))),!!d&&i.createElement("div",{className:this._classNames.descriptionMessage},d))},t}(i.Component),u=n(1286),d=(0,r.z)(c,u.n)},1286:function(e,t,n){n.d(t,{n:function(){return o}});var r=n(1786),o=function(e){var t=e.color,n=e.XValue,o=e.theme,i=e.isRatioPresent,a=void 0!==i&&i;return{calloutContentRoot:[{display:"grid",overflow:"hidden",padding:"11px 16px 10px 16px",backgroundColor:o.semanticColors.bodyBackground,backgroundBlendMode:"normal, luminosity"}],calloutDateTimeContainer:{display:"flex",flexDirection:"row",justifyContent:"space-between"},calloutContentX:[o.fonts.small,{lineHeight:"16px",opacity:"0.8",color:o.semanticColors.bodySubtext}],calloutBlockContainer:[o.fonts.xxLarge,{marginTop:n?"13px":"unset",paddingLeft:"8px",lineHeight:"22px",color:o.semanticColors.bodyText,borderLeft:"4px solid ".concat(t)}],calloutlegendText:[o.fonts.small,{lineHeight:"16px",color:o.semanticColors.bodyText}],calloutContentY:[o.fonts.xxLarge,{color:t||o.semanticColors.bodyText,fontWeight:"bold",lineHeight:"36px"}],calloutInfoContainer:[a&&{display:"flex",alignItems:"flex-end"}],ratio:[o.fonts.small,{marginLeft:"6px",color:o.semanticColors.bodyText}],numerator:{fontWeight:r.lq.bold},denominator:{fontWeight:r.lq.semibold},descriptionMessage:[o.fonts.small,{color:o.semanticColors.bodyText,marginTop:"10px",paddingTop:"10px",borderTop:"1px solid ".concat(o.semanticColors.menuDivider)}]}}},3813:function(e,t,n){n.d(t,{$X:function(){return b},jc:function(){return oe},wo:function(){return re},xl:function(){return C},OH:function(){return E},yE:function(){return J},Wx:function(){return j},Ts:function(){return le},s8:function(){return W},OX:function(){return R},R:function(){return Y},Tj:function(){return q},Pu:function(){return G},eQ:function(){return Z},Ay:function(){return K},cE:function(){return de},ey:function(){return se},dr:function(){return te},As:function(){return ne},SY:function(){return ie},V4:function(){return ee},Ml:function(){return ae},zs:function(){return ce},$V:function(){return Q},nX:function(){return $},yQ:function(){return ue}});var r=n(9939),o=Array.prototype.slice;function i(e){return e}var a=1,s=2,l=3,c=4,u=1e-6;function d(e){return"translate("+(e+.5)+",0)"}function h(e){return"translate(0,"+(e+.5)+")"}function p(e){return function(t){return+e(t)}}function f(e){var t=Math.max(0,e.bandwidth()-1)/2;return e.round()&&(t=Math.round(t)),function(n){return+e(n)+t}}function g(){return!this.__axis}function m(e,t){var n=[],r=null,m=null,v=6,_=6,y=3,x=e===a||e===c?-1:1,b=e===c||e===s?"x":"y",C=e===a||e===l?d:h;function E(o){var d=null==r?t.ticks?t.ticks.apply(t,n):t.domain():r,h=null==m?t.tickFormat?t.tickFormat.apply(t,n):i:m,E=Math.max(v,0)+y,S=t.range(),A=+S[0]+.5,L=+S[S.length-1]+.5,k=(t.bandwidth?f:p)(t.copy()),T=o.selection?o.selection():o,w=T.selectAll(".domain").data([null]),D=T.selectAll(".tick").data(d,t).order(),M=D.exit(),P=D.enter().append("g").attr("class","tick"),F=D.select("line"),I=D.select("text");w=w.merge(w.enter().insert("path",".tick").attr("class","domain").attr("stroke","#000")),D=D.merge(P),F=F.merge(P.append("line").attr("stroke","#000").attr(b+"2",x*v)),I=I.merge(P.append("text").attr("fill","#000").attr(b,x*E).attr("dy",e===a?"0em":e===l?"0.71em":"0.32em")),o!==T&&(w=w.transition(o),D=D.transition(o),F=F.transition(o),I=I.transition(o),M=M.transition(o).attr("opacity",u).attr("transform",(function(e){return isFinite(e=k(e))?C(e):this.getAttribute("transform")})),P.attr("opacity",u).attr("transform",(function(e){var t=this.parentNode.__axis;return C(t&&isFinite(t=t(e))?t:k(e))}))),M.remove(),w.attr("d",e===c||e==s?"M"+x*_+","+A+"H0.5V"+L+"H"+x*_:"M"+A+","+x*_+"V0.5H"+L+"V"+x*_),D.attr("opacity",1).attr("transform",(function(e){return C(k(e))})),F.attr(b+"2",x*v),I.attr(b,x*E).text(h),T.filter(g).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",e===s?"start":e===c?"end":"middle"),T.each((function(){this.__axis=k}))}return E.scale=function(e){return arguments.length?(t=e,E):t},E.ticks=function(){return n=o.call(arguments),E},E.tickArguments=function(e){return arguments.length?(n=null==e?[]:o.call(e),E):n.slice()},E.tickValues=function(e){return arguments.length?(r=null==e?null:o.call(e),E):r&&r.slice()},E.tickFormat=function(e){return arguments.length?(m=e,E):m},E.tickSize=function(e){return arguments.length?(v=_=+e,E):v},E.tickSizeInner=function(e){return arguments.length?(v=+e,E):v},E.tickSizeOuter=function(e){return arguments.length?(_=+e,E):_},E.tickPadding=function(e){return arguments.length?(y=+e,E):y},E}function v(e){return m(s,e)}function _(e){return m(l,e)}function y(e){return m(c,e)}var x,b,C,E,S=n(5561),A=n(8957),L=n(8815),k=n(8639),T=n(6775),w=n(8485),D=n(1783),M=n(731),P=n(6465),F=n(87),I=n(4189),N=n(5401),V=n(3645),O=n(9604),H=n(2167),B=n(9507);function R(e,t,n){var r=e.domainNRangeValues,o=e.showRoundOffXTickValues,i=void 0!==o&&o,a=e.xAxistickSize,s=void 0===a?6:a,l=e.tickPadding,c=void 0===l?10:l,u=e.xAxisCount,d=void 0===u?6:u,h=e.xAxisElement,p=(0,L.Z)().domain([r.dStartValue,r.dEndValue]).range([r.rStartValue,r.rEndValue]);i&&p.nice();var f=_(p).tickSize(s).tickPadding(c).ticks(d).tickFormat((function(e,t){var r="number"==typeof e?e:e.valueOf();return le(r,n)}));t===b.HorizontalBarChartWithAxis&&f.tickSizeInner(-(e.containerHeight-e.margins.top)),h&&(0,w.Ys)(h).call(f).selectAll("text").attr("aria-hidden","true");var g=p.ticks(d).map(f.tickFormat());return{xScale:p,tickValues:g}}function z(e,t){var n=t?t.format:M.i$,r=n(".%L"),o=n(":%S"),i=n("%I:%M"),a=n("%I %p"),s=n("%a %d"),l=n("%b %d"),c=n("%B"),u=n("%Y");return((0,F.Z)(e)<e?r:(0,I.Z)(e)<e?o:(0,N.Z)(e)<e?i:(0,V.Z)(e)<e?a:(0,O.Z)(e)<e?(0,H.OM)(e)<e?s:l:(0,B.Z)(e)<e?c:u)(e)}function W(e,t,n,r,o,i){var a,s=e.domainNRangeValues,l=e.xAxisElement,c=e.tickPadding,u=void 0===c?6:c,d=e.xAxistickSize,h=void 0===d?6:d,p=e.xAxisCount,f=void 0===p?6:p,g=(0,k.Z)().domain([s.dStartValue,s.dEndValue]).range([s.rStartValue,s.rEndValue]),m=_(g).tickSize(h).tickPadding(u).ticks(f);if(i)m.tickFormat((function(e,t){return i(e)}));else if(n&&r)m.tickFormat((function(e,t){return e.toLocaleString(n,r)}));else if(o){var v=(0,P.Z)(o);m.tickFormat((function(e,t){return z(e,v)}))}t.tickValues&&m.tickValues(t.tickValues),void 0===n&&t.tickFormat&&m.tickFormat((0,M.i$)(t.tickFormat)),l&&(0,w.Ys)(l).call(m).selectAll("text").attr("aria-hidden","true");var y=(null!==(a=t.tickValues)&&void 0!==a?a:g.ticks(f)).map((function(e,t){var n=m.tickFormat();return n?n(e,t):z(e)}));return{xScale:g,tickValues:y}}function Y(e,t,n,r){var o=e.domainNRangeValues,i=e.xAxisCount,a=void 0===i?6:i,s=e.xAxistickSize,l=void 0===s?6:s,c=e.tickPadding,u=void 0===c?10:c,d=e.xAxisPadding,h=void 0===d?.1:d,p=e.xAxisInnerPadding,f=e.xAxisOuterPadding,g=(0,T.Z)().domain(n).range([o.rStartValue,o.rEndValue]).paddingInner(void 0!==p?p:h).paddingOuter(void 0!==f?f:h),m=_(g).tickSize(l).tickPadding(u).ticks(a).tickFormat((function(e,t){return le(n[t],r)}));return e.xAxisElement&&(0,w.Ys)(e.xAxisElement).call(m).selectAll("text").attr("aria-hidden","true"),{xScale:g,tickValues:n.map(m.tickFormat())}}function Z(e,t,n,r,o,i,a){return void 0===a&&(a=!1),r===b.HorizontalBarChartWithAxis?function(e,t,n,r){var o=e.yMinMaxValues,i=void 0===o?{startValue:0,endValue:0}:o,a=e.yAxisElement,s=void 0===a?null:a,l=e.yMaxValue,c=void 0===l?0:l,u=e.yMinValue,d=void 0===u?0:u,h=e.containerHeight,p=e.margins,f=e.tickPadding,g=void 0===f?12:f,m=e.maxOfYVal,_=void 0===m?0:m,x=e.yAxisTickFormat,b=e.yAxisTickCount,C=void 0===b?4:b,E=_||i.endValue,S=E>c?E:c,A=i.startValue<d?0:d,k=(0,L.Z)().domain([A,S]).range([h-p.bottom,p.top]),T=(t?v(k):y(k)).tickPadding(g).ticks(C);return x?T.tickFormat(x):T.tickFormat((0,D.WU)(".2~s")),s&&(0,w.Ys)(s).call(T).selectAll("text").attr("aria-hidden","true"),k}(e,t):function(e,t,n,r,o){void 0===o&&(o=!1);var i=e.yMinMaxValues,a=void 0===i?{startValue:0,endValue:0}:i,s=e.yAxisElement,l=void 0===s?null:s,c=e.yMaxValue,u=void 0===c?0:c,d=e.yMinValue,h=void 0===d?0:d,p=e.containerHeight,f=e.containerWidth,g=e.margins,m=e.tickPadding,_=void 0===m?12:m,x=e.maxOfYVal,b=void 0===x?0:x,C=e.yAxisTickFormat,E=e.yAxisTickCount,S=void 0===E?4:E,A=e.eventAnnotationProps,k=e.eventLabelHeight,T=b||a.endValue,M=T>u?T:u,P=a.startValue<h?0:h,F=function(e,t,n,r){for(var o=r||(e-t)/n>=1?Math.ceil((e-t)/n):(e-t)/n,i=[t,t+o];i[i.length-1]<e;)i.push(i[i.length-1]+o);return i}(M,P,S,r),I=(0,L.Z)().domain([P,F[F.length-1]]).range([p-g.bottom,g.top+(A?k:0)]),N=(!t&&o||t&&!o?v(I):y(I)).tickPadding(_).tickValues(F).tickSizeInner(-(f-g.left-g.right));return C?N.tickFormat(C):N.tickFormat((0,D.WU)(".2~s")),l&&(0,w.Ys)(l).call(N).selectAll("text").attr("aria-hidden","true"),n.yAxisDomainValues=F,I}(e,t,n,i,a)}!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",e[e.HorizontalBarChartWithAxis=6]="HorizontalBarChartWithAxis"}(b||(b={})),function(e){e[e.NumericAxis=0]="NumericAxis",e[e.DateAxis=1]="DateAxis",e[e.StringAxis=2]="StringAxis"}(C||(C={})),function(e){e[e.NumericAxis=0]="NumericAxis",e[e.DateAxis=1]="DateAxis",e[e.StringAxis=2]="StringAxis"}(E||(E={}));var q=function(e,t,n,r,o,i){return r===b.HorizontalBarChartWithAxis?X(e,t,n,o,i):U(e,t,n)},X=function(e,t,n,r,o){var i=e.containerHeight,a=e.tickPadding,s=void 0===a?12:a,l=e.margins,c=e.yAxisTickFormat,u=e.yAxisElement,d=(0,T.Z)().domain(t).range([i-l.bottom-r/2,l.top+r/2]),h=(n?v(d):y(d)).tickPadding(s).ticks(t);return c&&h.tickFormat(c),u&&(0,w.Ys)(u).call(h).selectAll("text"),d},U=function(e,t,n){var r=e.containerHeight,o=e.tickPadding,i=void 0===o?12:o,a=e.margins,s=e.yAxisTickFormat,l=e.yAxisElement,c=e.yAxisPadding,u=void 0===c?0:c,d=(0,T.Z)().domain(t).range([r-a.bottom,a.top]).padding(u),h=(n?v(d):y(d)).tickPadding(i).tickValues(t).tickSize(0);return s&&h.tickFormat(s),l&&(0,w.Ys)(l).call(h).selectAll("text"),d};function j(e){var t=[];e.forEach((function(e){var n=e.data.filter((function(e){return!e.hideCallout})).map((function(t){return(0,r.pi)((0,r.pi)({},t),{legend:e.legend,color:e.color,index:e.index})}));t=t.concat(n)}));var n={};return t.forEach((function(e){var t=e.x instanceof Date?e.x.getTime():e.x;t in n?n[t].push({legend:e.legend,y:e.y,color:e.color,xAxisCalloutData:e.xAxisCalloutData,yAxisCalloutData:e.yAxisCalloutData,callOutAccessibilityData:e.callOutAccessibilityData,index:e.index}):n[t]=[{legend:e.legend,y:e.y,color:e.color,xAxisCalloutData:e.xAxisCalloutData,yAxisCalloutData:e.yAxisCalloutData,callOutAccessibilityData:e.callOutAccessibilityData,index:e.index}]})),Object.keys(n).map((function(e){return{x:Number(e),values:n[e]}}))}function G(e){var t=e.node,n=e.xAxis,r=e.noOfCharsToTruncate,o=e.showXAxisLablesTooltip;if(null!==t){var i=(0,w.Ys)(t).call(n),a=0,s=[];return i.selectAll(".tick text").each((function(){var e=(0,w.Ys)(this),t=e.text(),n="".concat(e.text().slice(0,r),"..."),l=e.text().length,c=e.text().split(/\s+/).reverse();s.push(c.length);var u="",d=[],h=0,p=e.attr("y"),f=parseFloat(e.attr("dy")),g=e.text(null).append("tspan").attr("x",0).attr("y",p).attr("id","BaseSpan").attr("dy",f+"em").attr("data-",t);if(o&&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(o&&l<=r)g=e.append("tspan").attr("id","LessLength").attr("x",0).attr("y",p).attr("dy",1.1*++h+f+"em").text(t);else{for(;u=c.pop();)d.push(u),g.text(d.join(" ")),g.node().getComputedTextLength()>10&&d.length>1&&(d.pop(),g.text(d.join(" ")),d=[u],g=e.append("tspan").attr("id","WordBreakId").attr("x",0).attr("y",p).attr("dy",1.1*++h+f+"em").text(u));var m=Math.max.apply(Math,s),v=12;i.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}}function K(e,t,n,r,o,i){null!==e&&(0,w.Ys)(e).call(t).selectAll(".tick text").each((function(){var e=(0,w.Ys)(this),t=e.text(),o=i?"...".concat(e.text().slice(0,n)):"".concat(e.text().slice(0,n),"..."),a=e.text().length,s=r?1.5:1,l=e.attr("y"),c=e.attr("x"),u=parseFloat(e.attr("dy"));e.text(null).append("tspan").attr("x",c).attr("y",l).attr("id","BaseSpan").attr("dy",u+"em").attr("data-",t),r&&a>n?e.append("tspan").attr("id","showDots").attr("x",i?0:c).attr("y",l).attr("dy",u).attr("dx",s+0+"em").text(o):e.attr("text-align","start").append("tspan").attr("id","LessLength").attr("x",i?0:c).attr("y",l).attr("dx",s+0+"em").text(t)}))}var $=function(e,t,n){var r=(0,w.Ys)("#".concat(t));if(r.text(e),!r.node())return!1;for(var o=!1,i=r.node().getComputedTextLength();i>n&&e.length>0;)e=e.slice(0,-1),r.text(e+"..."),o=!0,i=r.node().getComputedTextLength();return o},J=function(e,t){void 0===t&&(t="none");var n=0,r=document.createElement("canvas").getContext("2d");if(r){var o=document.querySelector(t);if(o){var i=window.getComputedStyle(o,null),a=i.getPropertyValue("font-weight"),s=i.getPropertyValue("font-size"),l=i.getPropertyValue("font-family");r.font="".concat(a," ").concat(s," ").concat(l)}else r.font='600 10px "Segoe UI"';e.forEach((function(e){n=Math.max(r.measureText(e.toString()).width,n)}))}return n};function Q(e){var t=e.tooltipCls,n=e.xAxis,r=e.id;if(null===n)return null;for(var o=(0,w.Ys)("body").append("div").attr("id",r).attr("class",t).style("opacity",0),i=n.selectAll("#BaseSpan")._groups[0],a=i&&Object.keys(i).length,s=[],l=0;l<a;l++){var c=i[l].dataset&&Object.values(i[l].dataset)[0];s.push(c)}var u=n.selectAll(".tick")._groups[0],d=u&&Object.keys(u).length,h=function(e){var t=u[e];(0,w.Ys)(t).on("mouseover",(function(t){o.style("opacity",.9),o.html(s[e]).style("left",w.B.pageX+"px").style("top",w.B.pageY-28+"px")})).on("mouseout",(function(e){o.style("opacity",0)}))};for(l=0;l<d;l++)h(l)}function ee(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 te(e,t,n,o,i,a,s,l,c){var u;if(a===C.NumericAxis)switch(o){case b.AreaChart:case b.LineChart:u=function(e,t,n,r){var o=(0,S.Z)(e,(function(e){return(0,S.Z)(e.data,(function(e){return e.x}))})),i=(0,A.Z)(e,(function(e){return(0,A.Z)(e.data,(function(e){return e.x}))})),a=t.left,s=n-t.right;return r?{dStartValue:i,dEndValue:o,rStartValue:a,rEndValue:s}:{dStartValue:o,dEndValue:i,rStartValue:a,rEndValue:s}}(e,t,n,i);break;case b.VerticalStackedBarChart:u=function(e,t,n,r,o){var i=(0,S.Z)(e,(function(e){return e.x})),a=(0,A.Z)(e,(function(e){return e.x})),s=t.left+o/2,l=n-t.right-o/2;return r?{dStartValue:a,dEndValue:i,rStartValue:s,rEndValue:l}:{dStartValue:i,dEndValue:a,rStartValue:s,rEndValue:l}}(e,t,n,i,s);break;case b.VerticalBarChart:u=function(e,t,n,r,o){var i=(0,A.Z)(e,(function(e){return e.x})),a=(0,S.Z)(e,(function(e){return e.x})),s=t.left+o/2,l=n-t.right-o/2;return r?{dStartValue:i,dEndValue:a,rStartValue:s,rEndValue:l}:{dStartValue:a,dEndValue:i,rStartValue:s,rEndValue:l}}(e,t,n,i,s);break;case b.HorizontalBarChartWithAxis:u=function(e,t,n,r,o){var i=(0,A.Z)(e,(function(e){return e.x})),a=r?t.left:t.left+o,s=r?n-t.right-o:n-t.right;return r?{dStartValue:i,dEndValue:0,rStartValue:a,rEndValue:s}:{dStartValue:0,dEndValue:i,rStartValue:a,rEndValue:s}}(e,t,n,i,c);break;default:u={dStartValue:0,dEndValue:0,rStartValue:0,rEndValue:0}}else if(a===C.DateAxis)switch(o){case b.AreaChart:case b.LineChart:case b.VerticalBarChart:case b.VerticalStackedBarChart:u=function(e,t,n,o,i,a,s){var l,c;void 0===i&&(i=[]),a===b.AreaChart||a===b.LineChart?(l=(0,S.Z)(e,(function(e){return(0,S.Z)(e.data,(function(e){return e.x}))})),c=(0,A.Z)(e,(function(e){return(0,A.Z)(e.data,(function(e){return e.x}))})),l=(0,S.Z)((0,r.ev)((0,r.ev)([],i,!0),[l],!1)),c=(0,A.Z)((0,r.ev)((0,r.ev)([],i,!0),[c],!1))):(l=(0,S.Z)(e,(function(e){return e.x})),c=(0,A.Z)(e,(function(e){return e.x})));var u=t.left+(s?s/2:0),d=n-t.right-(s?s/2:0);return o?{dStartValue:c,dEndValue:l,rStartValue:u,rEndValue:d}:{dStartValue:l,dEndValue:c,rStartValue:u,rEndValue:d}}(e,t,n,i,l,o,s);break;default:u={dStartValue:0,dEndValue:0,rStartValue:0,rEndValue:0}}else switch(o){case b.VerticalStackedBarChart:case b.GroupedVerticalBarChart:case b.VerticalBarChart:case b.HeatMapChart:u=function(e,t,n){var r=e.left,o=t-e.right;return n?{dStartValue:0,dEndValue:0,rStartValue:o,rEndValue:r}:{dStartValue:0,dEndValue:0,rStartValue:r,rEndValue:o}}(t,n,i);break;default:u={dStartValue:0,dEndValue:0,rStartValue:0,rEndValue:0}}return u}function ne(e,t,n){var r,o,i;switch(void 0===n&&(n=E.NumericAxis),t){case b.AreaChart:case b.LineChart:r=function(e){var t=(0,A.Z)(e,(function(e){return(0,A.Z)(e.data,(function(e){return e.y}))}));return{startValue:(0,S.Z)(e,(function(e){return(0,S.Z)(e.data,(function(e){return e.y}))})),endValue:t}}(e);break;case b.VerticalStackedBarChart:o=e,i=(0,A.Z)(o,(function(e){return e.y})),r={startValue:(0,S.Z)(o,(function(e){return e.y})),endValue:i};break;case b.VerticalBarChart:r=function(e){var t=(0,A.Z)(e,(function(e){return void 0!==e.lineData?e.y>e.lineData.y?e.y:e.lineData.y:e.y}));return{startValue:(0,S.Z)(e,(function(e){return void 0!==e.lineData?e.y<e.lineData.y?e.y:e.lineData.y:e.y})),endValue:t}}(e);break;case b.HorizontalBarChartWithAxis:r=function(e,t){if(void 0!==t&&t===E.NumericAxis){var n=(0,A.Z)(e,(function(e){return e.y}));return{startValue:(0,S.Z)(e,(function(e){return e.y})),endValue:n}}return{startValue:0,endValue:0}}(e,n);break;default:r={startValue:0,endValue:0}}return r}var re,oe,ie=function(e,t){if(t)switch(typeof e){case"string":return C.StringAxis;case"number":return C.NumericAxis;default:return C.DateAxis}else switch(typeof e){case"string":return E.StringAxis;case"number":return E.NumericAxis;default:return E.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"}(re||(re={})),function(e){e[e.dottedLine=0]="dottedLine"}(oe||(oe={}));var ae=((x={})[re.circle]={widthRatio:1},x[re.square]={widthRatio:1},x[re.triangle]={widthRatio:1},x[re.diamond]={widthRatio:1},x[re.pyramid]={widthRatio:1},x[re.hexagon]={widthRatio:2},x[re.pentagon]={widthRatio:1.168},x[re.octagon]={widthRatio:2.414},x),se=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}},le=function(e,t){return e?(t=t||void 0,"number"==typeof e?e.toLocaleString(t):"string"!=typeof e||window.isNaN(Number(e))?e instanceof Date?e.toLocaleDateString(t):e:Number(e).toLocaleString(t)):e};function ce(e){var t=e.node,n=e.xAxis;if(null!==t&&null!==n){var r=0,o=[];(0,w.Ys)(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&&(o.push(t[0]),this.setAttribute("transform","translate(".concat(t[0],",0)rotate(-45)")))}var n=this.getBoundingClientRect(),i=n&&n.height;i>r&&(r=i)}));var i=0;return(0,w.Ys)(t).call(n).selectAll(".tick").each((function(){o.length>i&&(this.setAttribute("transform","translate(".concat(o[i],",").concat(r/2,")rotate(-45)")),i+=1)})),Math.floor(r/1.414)}}function ue(e,t){var n=0;(0,w.td)(".".concat(e)).each((function(){for(var e=(0,w.Ys)(this),r=e.text().split(/\s+/).reverse(),o="",i=[],a=0,s=e.attr("y"),l=e.text(null).append("tspan").attr("id","WordBreakId-".concat(n,"-").concat(a)).attr("x",0).attr("y",s).attr("dy",1.1*a+++"em");o=r.pop();)i.push(o),l.text(i.join(" ")+" "),l.node().getComputedTextLength()>t&&i.length>1&&(i.pop(),l.text(i.join(" ")+" "),i=[o],l=e.append("tspan").attr("id","WordBreakId-".concat(n,"-").concat(a)).attr("x",0).attr("y",s).attr("dy",1.1*a+++"em").text(o));n+=1}))}function de(e){var t;return t=e<1e3?".2~":".1",(0,D.jH)(t,e)(e)}},9785:function(e,t,n){function r(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}n.d(t,{Z:function(){return r}})},7329:function(e,t,n){n.d(t,{Z:function(){return o}});var r=n(9785);function o(e){let t=e,n=e;function o(e,t,r,o){for(null==r&&(r=0),null==o&&(o=e.length);r<o;){const i=r+o>>>1;n(e[i],t)<0?r=i+1:o=i}return r}return 1===e.length&&(t=(t,n)=>e(t)-n,n=function(e){return(t,n)=>(0,r.Z)(e(t),n)}(e)),{left:o,center:function(e,n,r,i){null==r&&(r=0),null==i&&(i=e.length);const a=o(e,n,r,i-1);return a>r&&t(e[a-1],n)>-t(e[a],n)?a-1:a},right:function(e,t,r,o){for(null==r&&(r=0),null==o&&(o=e.length);r<o;){const i=r+o>>>1;n(e[i],t)>0?o=i:r=i+1}return r}}}},8957:function(e,t,n){function r(e,t){let n;if(void 0===t)for(const t of e)null!=t&&(n<t||void 0===n&&t>=t)&&(n=t);else{let r=-1;for(let o of e)null!=(o=t(o,++r,e))&&(n<o||void 0===n&&o>=o)&&(n=o)}return n}n.d(t,{Z:function(){return r}})},5561:function(e,t,n){function r(e,t){let n;if(void 0===t)for(const t of e)null!=t&&(n>t||void 0===n&&t>=t)&&(n=t);else{let r=-1;for(let o of e)null!=(o=t(o,++r,e))&&(n>o||void 0===n&&o>=o)&&(n=o)}return n}n.d(t,{Z:function(){return r}})},6077:function(e,t,n){n.d(t,{x:function(){return i}});var r={},o=void 0;try{o=window}catch(e){}function i(e,t){if(void 0!==o){var n=o.__packages__=o.__packages__||{};n[e]&&r[e]||(r[e]=t,(n[e]=n[e]||[]).push(t))}}i("@fluentui/set-version","6.0.0")},1786:function(e,t,n){n.d(t,{k4:function(){return J},UK:function(){return Q.U},TS:function(){return ee.TS},lq:function(){return ee.lq},qJ:function(){return te},$v:function(){return ne},bR:function(){return $},e2:function(){return ie},GL:function(){return oe},Cn:function(){return le},gh:function(){return Ae},ul:function(){return ae}});var r=n(13),o=n(4473),i=n(5499),a=n(7373);function s(e){var t=i.Y.getInstance(),n=[];for(var r in e)e.hasOwnProperty(r)&&n.push(r,"{",(0,a.dH)((0,o.Eo)(),e[r]),"}");var s=n.join(""),l=t.classNameFromKey(s);if(l)return l;var c=t.getClassName();return t.insertRule("@keyframes ".concat(c,"{").concat(s,"}"),!0),t.cacheClassName(c,s,[],["keyframes",s]),c}var l="cubic-bezier(.1,.9,.2,1)",c="cubic-bezier(.1,.25,.75,.9)",u="0.167s",d="0.267s",h="0.367s",p="0.467s",f=s({from:{opacity:0},to:{opacity:1}}),g=s({from:{opacity:1},to:{opacity:0,visibility:"hidden"}}),m=U(-10),v=U(-20),_=U(-40),y=U(-400),x=U(10),b=U(20),C=U(40),E=U(400),S=j(10),A=j(20),L=j(-10),k=j(-20),T=G(10),w=G(20),D=G(40),M=G(400),P=G(-10),F=G(-20),I=G(-40),N=G(-400),V=K(-10),O=K(-20),H=K(10),B=K(20),R=s({from:{transform:"scale3d(.98,.98,1)"},to:{transform:"scale3d(1,1,1)"}}),z=s({from:{transform:"scale3d(1,1,1)"},to:{transform:"scale3d(.98,.98,1)"}}),W=s({from:{transform:"scale3d(1.03,1.03,1)"},to:{transform:"scale3d(1,1,1)"}}),Y=s({from:{transform:"scale3d(1,1,1)"},to:{transform:"scale3d(1.03,1.03,1)"}}),Z=s({from:{transform:"rotateZ(0deg)"},to:{transform:"rotateZ(90deg)"}}),q=s({from:{transform:"rotateZ(0deg)"},to:{transform:"rotateZ(-90deg)"}});function X(e,t,n){return{animationName:e,animationDuration:t,animationTimingFunction:n,animationFillMode:"both"}}function U(e){return s({from:{transform:"translate3d(".concat(e,"px,0,0)"),pointerEvents:"none"},to:{transform:"translate3d(0,0,0)",pointerEvents:"auto"}})}function j(e){return s({from:{transform:"translate3d(0,".concat(e,"px,0)"),pointerEvents:"none"},to:{transform:"translate3d(0,0,0)",pointerEvents:"auto"}})}function G(e){return s({from:{transform:"translate3d(0,0,0)"},to:{transform:"translate3d(".concat(e,"px,0,0)")}})}function K(e){return s({from:{transform:"translate3d(0,0,0)"},to:{transform:"translate3d(0,".concat(e,"px,0)")}})}var $,J=function(e){var t={},n=function(n){var o;e.hasOwnProperty(n)&&Object.defineProperty(t,n,{get:function(){return void 0===o&&(o=(0,r.y)(e[n]).toString()),o},enumerable:!0,configurable:!0})};for(var o in e)n(o);return t}({slideRightIn10:X("".concat(f,",").concat(m),h,l),slideRightIn20:X("".concat(f,",").concat(v),h,l),slideRightIn40:X("".concat(f,",").concat(_),h,l),slideRightIn400:X("".concat(f,",").concat(y),h,l),slideLeftIn10:X("".concat(f,",").concat(x),h,l),slideLeftIn20:X("".concat(f,",").concat(b),h,l),slideLeftIn40:X("".concat(f,",").concat(C),h,l),slideLeftIn400:X("".concat(f,",").concat(E),h,l),slideUpIn10:X("".concat(f,",").concat(S),h,l),slideUpIn20:X("".concat(f,",").concat(A),h,l),slideDownIn10:X("".concat(f,",").concat(L),h,l),slideDownIn20:X("".concat(f,",").concat(k),h,l),slideRightOut10:X("".concat(g,",").concat(T),h,l),slideRightOut20:X("".concat(g,",").concat(w),h,l),slideRightOut40:X("".concat(g,",").concat(D),h,l),slideRightOut400:X("".concat(g,",").concat(M),h,l),slideLeftOut10:X("".concat(g,",").concat(P),h,l),slideLeftOut20:X("".concat(g,",").concat(F),h,l),slideLeftOut40:X("".concat(g,",").concat(I),h,l),slideLeftOut400:X("".concat(g,",").concat(N),h,l),slideUpOut10:X("".concat(g,",").concat(V),h,l),slideUpOut20:X("".concat(g,",").concat(O),h,l),slideDownOut10:X("".concat(g,",").concat(H),h,l),slideDownOut20:X("".concat(g,",").concat(B),h,l),scaleUpIn100:X("".concat(f,",").concat(R),h,l),scaleDownIn100:X("".concat(f,",").concat(W),h,l),scaleUpOut103:X("".concat(g,",").concat(Y),u,c),scaleDownOut98:X("".concat(g,",").concat(z),u,c),fadeIn100:X(f,u,c),fadeIn200:X(f,d,c),fadeIn400:X(f,h,c),fadeIn500:X(f,p,c),fadeOut100:X(g,u,c),fadeOut200:X(g,d,c),fadeOut400:X(g,h,c),fadeOut500:X(g,p,c),rotate90deg:X(Z,"0.1s",c),rotateN90deg:X(q,"0.1s",c)}),Q=n(7045),ee=n(8473),te="@media screen and (-ms-high-contrast: active), screen and (forced-colors: active)",ne="@media screen and (-ms-high-contrast: white-on-black), screen and (forced-colors: active) and (prefers-color-scheme: dark)",re=n(9766);function oe(e,t,n,r,o,i,a,s){return function(e,t){var n,r;void 0===t&&(t={});var o=t.borderRadius,i=t.inset,a=void 0===i?0:i,s=t.width,l=void 0===s?1:s,c=t.position,u=void 0===c?"relative":c,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:u,selectors:(n={"::-moz-focus-inner":{border:"0"}},n[".".concat(re.G$," &").concat(v?":focus":"",":after")]={content:'""',position:"absolute",pointerEvents:_,left:a+1,top:a+1,bottom:a+1,right:a+1,border:"".concat(l,"px solid ").concat(p),outline:"".concat(l,"px solid ").concat(g),zIndex:$.FocusStyle,borderRadius:o,selectors:(r={},r[te]=d,r)},n)}}(e,"number"!=typeof t&&t?t:{inset:t,position:n,highContrastStyle:r,borderColor:o,outlineColor:i,isFocusedOnly:a,borderRadius:s})}function ie(){return{selectors:{"&::-moz-focus-inner":{border:0},"&":{outline:"transparent"}}}}!function(e){e.Nav=1,e.ScrollablePane=1,e.FocusStyle=1,e.Coachmark=1e3,e.Layer=1e6,e.KeytipLayer=1000001}($||($={}));var ae={position:"absolute",width:1,height:1,margin:-1,padding:0,border:0,overflow:"hidden",whiteSpace:"nowrap"},se=(0,n(156).NF)((function(e,t){var n=i.Y.getInstance();return t?Object.keys(e).reduce((function(t,r){return t[r]=n.getClassName(e[r]),t}),{}):e}));function le(e,t,n){return se(e,void 0!==n?n:t.disableGlobalClassNames)}var ce,ue=n(9939),de=n(3820),he=n(775),pe=function(){return pe=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},pe.apply(this,arguments)},fe="undefined"==typeof window?n.g:window,ge=fe&&fe.CSPSettings&&fe.CSPSettings.nonce,me=((ce=fe.__themeState__||{theme:void 0,lastStyleElement:void 0,registeredStyles:[]}).runState||(ce=pe({},ce,{perf:{count:0,duration:0},runState:{flushTimer:0,mode:0,buffer:[]}})),ce.registeredThemableStyles||(ce=pe({},ce,{registeredThemableStyles:[]})),fe.__themeState__=ce,ce);function ve(e){me.theme=e,function(){if(me.theme){for(var e=[],t=0,n=me.registeredThemableStyles;t<n.length;t++){var r=n[t];e.push(r.themableStyle)}e.length>0&&(void 0===(i=1)&&(i=3),3!==i&&2!==i||(_e(me.registeredStyles),me.registeredStyles=[]),3!==i&&1!==i||(_e(me.registeredThemableStyles),me.registeredThemableStyles=[]),o=[].concat.apply([],e),me.loadStyles?me.loadStyles(ye(o).styleString,o):function(e){if("undefined"!=typeof document){var t=document.getElementsByTagName("head")[0],n=document.createElement("style"),r=ye(e),o=r.styleString,i=r.themable;n.setAttribute("data-load-themed-styles","true"),n.type="text/css",ge&&n.setAttribute("nonce",ge),n.appendChild(document.createTextNode(o)),me.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};i?me.registeredThemableStyles.push(s):me.registeredStyles.push(s)}}(o))}var o,i}()}function _e(e){e.forEach((function(e){var t=e&&e.styleElement;t&&t.parentElement&&t.parentElement.removeChild(t)}))}function ye(e){var t=me.theme,n=!1;return{styleString:(e||[]).map((function(e){var r=e.theme;if(r){n=!0;var o=t?t[r]:void 0,i=e.defaultValue||"inherit";return t&&!o&&console&&!(r in t)&&"undefined"!=typeof DEBUG&&DEBUG&&console.warn('Theming value not provided for "'+r+'". Falling back to "'+i+'".'),o||i}return e.rawString})).join(""),themable:n}}var xe=n(685),be=(0,xe.j)({}),Ce=[],Ee="theme";function Se(){var e,t,n,r=(0,de.J)();(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),be=(0,xe.j)(e,t),ve((0,ue.pi)((0,ue.pi)((0,ue.pi)((0,ue.pi)({},be.palette),be.semanticColors),be.effects),function(e){for(var t={},n=0,r=Object.keys(e.fonts);n<r.length;n++)for(var o=r[n],i=e.fonts[o],a=0,s=Object.keys(i);a<s.length;a++){var l=s[a],c=o+l.charAt(0).toUpperCase()+l.slice(1),u=i[l];"fontSize"===l&&"number"==typeof u&&(u+="px"),t[c]=u}return t}(be))),he.X.applySettings(((n={})[Ee]=be,n)),Ce.forEach((function(e){try{e(be)}catch(e){}}))}(r.FabricConfig.legacyTheme):he.X.getSettings([Ee]).theme||((null===(n=null==r?void 0:r.FabricConfig)||void 0===n?void 0:n.theme)&&(be=(0,xe.j)(r.FabricConfig.theme)),he.X.applySettings(((e={})[Ee]=be,e)))}function Ae(e){return void 0===e&&(e=!1),!0===e&&(be=(0,xe.j)({},e)),be}Se(),(0,n(6077).x)("@fluentui/style-utilities","8.10.3"),Se()},7045:function(e,t,n){n.d(t,{U:function(){return r}});var r={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"}},685:function(e,t,n){n.d(t,{j:function(){return P}});var r,o=n(7045);!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)"}(r||(r={}));var i={elevation4:r.depth4,elevation8:r.depth8,elevation16:r.depth16,elevation64:r.depth64,roundedCorner2:"2px",roundedCorner4:"4px",roundedCorner6:"6px"},a=n(4473),s=n(5499),l=n(7373),c=n(8473),u="'Segoe UI', '".concat(c.Qm.WestEuropean,"'"),d={ar:c.II.Arabic,bg:c.II.Cyrillic,cs:c.II.EastEuropean,el:c.II.Greek,et:c.II.EastEuropean,he:c.II.Hebrew,hi:c.II.Hindi,hr:c.II.EastEuropean,hu:c.II.EastEuropean,ja:c.II.Japanese,kk:c.II.EastEuropean,ko:c.II.Korean,lt:c.II.EastEuropean,lv:c.II.EastEuropean,pl:c.II.EastEuropean,ru:c.II.Cyrillic,sk:c.II.EastEuropean,"sr-latn":c.II.EastEuropean,th:c.II.Thai,tr:c.II.EastEuropean,uk:c.II.Cyrillic,vi:c.II.Vietnamese,"zh-hans":c.II.ChineseSimplified,"zh-hant":c.II.ChineseTraditional,hy:c.II.Armenian,ka:c.II.Georgian};function h(e,t,n){return{fontFamily:n,MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontSize:e,fontWeight:t}}var p,f,g,m,v,_,y=n(2874),x=n(3820),b=n(5114),C="language",E=(f=function(e){for(var t in d)if(d.hasOwnProperty(t)&&e&&0===t.indexOf(e))return d[t];return u}(function(e){if(void 0===e&&(e="sessionStorage"),void 0===p){var t=(0,y.M)(),n="localStorage"===e?function(e){var t=null;try{var n=(0,x.J)();t=n?n.localStorage.getItem(e):null}catch(e){}return t}(C):"sessionStorage"===e?b.r(C):void 0;n&&(p=n),void 0===p&&t&&(p=t.documentElement.getAttribute("lang")),void 0===p&&(p="en")}return p}()),g="".concat(f,", ").concat("'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif"),{tiny:h(c.TS.mini,c.lq.regular,g),xSmall:h(c.TS.xSmall,c.lq.regular,g),small:h(c.TS.small,c.lq.regular,g),smallPlus:h(c.TS.smallPlus,c.lq.regular,g),medium:h(c.TS.medium,c.lq.regular,g),mediumPlus:h(c.TS.mediumPlus,c.lq.regular,g),large:h(c.TS.large,c.lq.regular,g),xLarge:h(c.TS.xLarge,c.lq.semibold,g),xLargePlus:h(c.TS.xLargePlus,c.lq.semibold,g),xxLarge:h(c.TS.xxLarge,c.lq.semibold,g),xxLargePlus:h(c.TS.xxLargePlus,c.lq.semibold,g),superLarge:h(c.TS.superLarge,c.lq.semibold,g),mega:h(c.TS.mega,c.lq.semibold,g)});function S(e,t,n,r){!function(e){var t=s.Y.getInstance(),n=(0,l.dH)((0,a.Eo)(),e);if(!t.classNameFromKey(n)){var r=t.getClassName();t.insertRule("@font-face{".concat(n,"}"),!0),t.cacheClassName(r,n,[],["font-face",n])}}({fontFamily:e="'".concat(e,"'"),src:(void 0!==r?"local('".concat(r,"'),"):"")+"url('".concat(t,".woff2') format('woff2'),")+"url('".concat(t,".woff') format('woff')"),fontWeight:n,fontStyle:"normal",fontDisplay:"swap"})}function A(e,t,n,r,o){void 0===r&&(r="segoeui");var i="".concat(e,"/").concat(n,"/").concat(r);S(t,i+"-light",c.lq.light,o&&o+" Light"),S(t,i+"-semilight",c.lq.semilight,o&&o+" SemiLight"),S(t,i+"-regular",c.lq.regular,o),S(t,i+"-semibold",c.lq.semibold,o&&o+" SemiBold"),S(t,i+"-bold",c.lq.bold,o&&o+" Bold")}function L(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,o=t;r<o.length;r++)k(e||{},o[r]);return e}function k(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 o=t[r];if("object"!=typeof o||null===o||Array.isArray(o))e[r]=o;else{var i=n.indexOf(o)>-1;e[r]=i?o:k(e[r]||{},o,n)}}return n.pop(),e}!function(e){if(e){var t="".concat(e,"/fonts");A(t,c.Qm.Thai,"leelawadeeui-thai","leelawadeeui"),A(t,c.Qm.Arabic,"segoeui-arabic"),A(t,c.Qm.Cyrillic,"segoeui-cyrillic"),A(t,c.Qm.EastEuropean,"segoeui-easteuropean"),A(t,c.Qm.Greek,"segoeui-greek"),A(t,c.Qm.Hebrew,"segoeui-hebrew"),A(t,c.Qm.Vietnamese,"segoeui-vietnamese"),A(t,c.Qm.WestEuropean,"segoeui-westeuropean","segoeui","Segoe UI"),A(t,c.II.Selawik,"selawik","selawik"),A(t,c.Qm.Armenian,"segoeui-armenian"),A(t,c.Qm.Georgian,"segoeui-georgian"),S("Leelawadee UI Web","".concat(t,"/leelawadeeui-thai/leelawadeeui-semilight"),c.lq.light),S("Leelawadee UI Web","".concat(t,"/leelawadeeui-thai/leelawadeeui-bold"),c.lq.semibold)}}((_=null===(m=(0,x.J)())||void 0===m?void 0:m.FabricConfig,null!==(v=null==_?void 0:_.fontBaseUrl)&&void 0!==v?v:"https://res-1.cdn.office.net/files/fabric-cdn-prod_20230815.002/assets"));var T=n(9939);function w(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}(D(e,t,(0,T.pi)({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 D(e,t,n,r,o){void 0===o&&(o=!1);var i={},a=e||{},s=a.white,l=a.black,c=a.themePrimary,u=a.themeDark,d=a.themeDarker,h=a.themeDarkAlt,p=a.themeLighter,f=a.neutralLight,g=a.neutralLighter,m=a.neutralDark,v=a.neutralQuaternary,_=a.neutralQuaternaryAlt,y=a.neutralPrimary,x=a.neutralSecondary,b=a.neutralSecondaryAlt,C=a.neutralTertiary,E=a.neutralTertiaryAlt,S=a.neutralLighterAlt,A=a.accent;return s&&(i.bodyBackground=s,i.bodyFrameBackground=s,i.accentButtonText=s,i.buttonBackground=s,i.primaryButtonText=s,i.primaryButtonTextHovered=s,i.primaryButtonTextPressed=s,i.inputBackground=s,i.inputForegroundChecked=s,i.listBackground=s,i.menuBackground=s,i.cardStandoutBackground=s),l&&(i.bodyTextChecked=l,i.buttonTextCheckedHovered=l),c&&(i.link=c,i.primaryButtonBackground=c,i.inputBackgroundChecked=c,i.inputIcon=c,i.inputFocusBorderAlt=c,i.menuIcon=c,i.menuHeader=c,i.accentButtonBackground=c),u&&(i.primaryButtonBackgroundPressed=u,i.inputBackgroundCheckedHovered=u,i.inputIconHovered=u),d&&(i.linkHovered=d),h&&(i.primaryButtonBackgroundHovered=h),p&&(i.inputPlaceholderBackgroundChecked=p),f&&(i.bodyBackgroundChecked=f,i.bodyFrameDivider=f,i.bodyDivider=f,i.variantBorder=f,i.buttonBackgroundCheckedHovered=f,i.buttonBackgroundPressed=f,i.listItemBackgroundChecked=f,i.listHeaderBackgroundPressed=f,i.menuItemBackgroundPressed=f,i.menuItemBackgroundChecked=f),g&&(i.bodyBackgroundHovered=g,i.buttonBackgroundHovered=g,i.buttonBackgroundDisabled=g,i.buttonBorderDisabled=g,i.primaryButtonBackgroundDisabled=g,i.disabledBackground=g,i.listItemBackgroundHovered=g,i.listHeaderBackgroundHovered=g,i.menuItemBackgroundHovered=g),v&&(i.primaryButtonTextDisabled=v,i.disabledSubtext=v),_&&(i.listItemBackgroundCheckedHovered=_),C&&(i.disabledBodyText=C,i.variantBorderHovered=(null==n?void 0:n.variantBorderHovered)||C,i.buttonTextDisabled=C,i.inputIconDisabled=C,i.disabledText=C),y&&(i.bodyText=y,i.actionLink=y,i.buttonText=y,i.inputBorderHovered=y,i.inputText=y,i.listText=y,i.menuItemText=y),S&&(i.bodyStandoutBackground=S,i.defaultStateBackground=S),m&&(i.actionLinkHovered=m,i.buttonTextHovered=m,i.buttonTextChecked=m,i.buttonTextPressed=m,i.inputTextHovered=m,i.menuItemTextHovered=m),x&&(i.bodySubtext=x,i.focusBorder=x,i.inputBorder=x,i.smallInputBorder=x,i.inputPlaceholderText=x),b&&(i.buttonBorder=b),E&&(i.disabledBodySubtext=E,i.disabledBorder=E,i.buttonBackgroundChecked=E,i.menuDivider=E),A&&(i.accentButtonBackground=A),(null==t?void 0:t.elevation4)&&(i.cardShadow=t.elevation4),!r&&(null==t?void 0:t.elevation8)?i.cardShadowHovered=t.elevation8:i.variantBorderHovered&&(i.cardShadowHovered="0 0 1px "+i.variantBorderHovered),(0,T.pi)((0,T.pi)({},i),n)}var M={s2:"4px",s1:"8px",m:"16px",l1:"20px",l2:"32px"};function P(e,t){void 0===e&&(e={}),void 0===t&&(t=!1);var n=!!e.isInverted;return function(e,t){var n,r,o;void 0===t&&(t={});var i=L({},e,t,{semanticColors:D(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)&&(i.palette.accent=t.palette.themePrimary),t.defaultFontStyle)for(var a=0,s=Object.keys(i.fonts);a<s.length;a++){var l=s[a];i.fonts[l]=L(i.fonts[l],t.defaultFontStyle,null===(o=null==t?void 0:t.fonts)||void 0===o?void 0:o[l])}return i}({palette:o.U,effects:i,fonts:E,spacing:M,isInverted:n,disableGlobalClassNames:!1,semanticColors:w(o.U,i,void 0,n,t),rtl:void 0},e)}},8473:function(e,t,n){var r,o,i,a,s;n.d(t,{II:function(){return o},Qm:function(){return r},TS:function(){return i},lq:function(){return a}}),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)"}(r||(r={})),function(e){e.Arabic="'".concat(r.Arabic,"'"),e.ChineseSimplified="'Microsoft Yahei UI', Verdana, Simsun",e.ChineseTraditional="'Microsoft Jhenghei UI', Pmingliu",e.Cyrillic="'".concat(r.Cyrillic,"'"),e.EastEuropean="'".concat(r.EastEuropean,"'"),e.Greek="'".concat(r.Greek,"'"),e.Hebrew="'".concat(r.Hebrew,"'"),e.Hindi="'Nirmala UI'",e.Japanese="'Yu Gothic UI', 'Meiryo UI', Meiryo, 'MS Pgothic', Osaka",e.Korean="'Malgun Gothic', Gulim",e.Selawik="'".concat(r.Selawik,"'"),e.Thai="'Leelawadee UI Web', 'Kmer UI'",e.Vietnamese="'".concat(r.Vietnamese,"'"),e.WestEuropean="'".concat(r.WestEuropean,"'"),e.Armenian="'".concat(r.Armenian,"'"),e.Georgian="'".concat(r.Georgian,"'")}(o||(o={})),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"}(i||(i={})),function(e){e.light=100,e.semilight=300,e.regular=400,e.semibold=600,e.bold=700}(a||(a={})),function(e){e.xSmall="10px",e.small="12px",e.medium="16px",e.large="20px"}(s||(s={}))},8461:function(e,t,n){n.d(t,{y:function(){return f}});var r=n(5499),o=n(4270),i=n(3802),a=n(7373);var s=n(116),l=n(3820),c=50,u=5,d=0,h=r.Y.getInstance();h&&h.onReset&&h.onReset((function(){return d++}));var p="__retval__";function f(e){void 0===e&&(e={});var t=new Map,n=0,r=0,h=d;return function(f,g){var v;if(void 0===g&&(g={}),e.useStaticStyles&&"function"==typeof f&&f.__noStyleOverride__)return f(g);r++;var _=t,y=g.theme,x=y&&void 0!==y.rtl?y.rtl:(0,s.zg)(),b=e.disableCaching;if(h!==d&&(h=d,t=new Map,n=0),e.disableCaching||(_=m(t,f),_=m(_,g)),!b&&_[p]||(_[p]=void 0===f?{}:function(e,t){var n={subComponentStyles:{}};if(!e[0]&&e.length<=1)return{subComponentStyles:{}};var r=o.m.apply(void 0,e),s=[];for(var l in r)if(r.hasOwnProperty(l)){if("subComponentStyles"===l){n.subComponentStyles=r.subComponentStyles||{};continue}var c=r[l],u=(0,i.U)(c),d=u.classes,h=u.objects;(null==h?void 0:h.length)?(g=(0,a.aj)(t||{},{displayName:l},h))&&(s.push(g),n[l]=d.concat([g.className]).join(" ")):n[l]=d.join(" ")}for(var p=0,f=s;p<f.length;p++){var g;(g=f[p])&&(0,a.Jh)(g,null==t?void 0:t.specificityMultiplier)}return n}(["function"==typeof f?f(g):f],{rtl:!!x,specificityMultiplier:e.useStaticStyles?u:void 0}),b||n++),n>(e.cacheSize||c)){var C=(0,l.J)();(null===(v=null==C?void 0:C.FabricConfig)||void 0===v?void 0:v.enableClassNameCacheFullWarning)&&(console.warn("Styles are being recalculated too frequently. Cache miss rate is ".concat(n,"/").concat(r,".")),console.trace()),t.clear(),n=0,e.disableCaching=!0}return _[p]}}function g(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 m(e,t){if("function"==typeof t)if(t.__cachedInputs__)for(var n=0,r=t.__cachedInputs__;n<r.length;n++)e=g(e,r[n]);else e=g(e,t);else if("object"==typeof t)for(var o in t)t.hasOwnProperty(o)&&(e=g(e,t[o]));return e}},775:function(e,t,n){n.d(t,{X:function(){return f}});var r=n(9939),o=n(3820),i="__globalSettings__",a="__callbacks__",s=0,l=function(){function e(){}return e.getValue=function(e,t){var n=c();return void 0===n[e]&&(n[e]="function"==typeof t?t():t),n[e]},e.setValue=function(e,t){var n=c(),r=n[a],o=n[e];if(t!==o){n[e]=t;var i={oldValue:o,value:t,key:e};for(var s in r)r.hasOwnProperty(s)&&r[s](i)}return t},e.addChangeListener=function(e){var t=e.__id__,n=u();t||(t=e.__id__=String(s++)),n[t]=e},e.removeChangeListener=function(e){delete u()[e.__id__]},e}();function c(){var e,t=(0,o.J)()||{};return t[i]||(t[i]=((e={})[a]={},e)),t[i]}function u(){return c()[a]}var d={settings:{},scopedSettings:{},inCustomizerContext:!1},h=l.getValue("customizations",{settings:{},scopedSettings:{},inCustomizerContext:!1}),p=[],f=function(){function e(){}return e.reset=function(){h.settings={},h.scopedSettings={}},e.applySettings=function(t){h.settings=(0,r.pi)((0,r.pi)({},h.settings),t),e._raiseChange()},e.applyScopedSettings=function(t,n){h.scopedSettings[t]=(0,r.pi)((0,r.pi)({},h.scopedSettings[t]),n),e._raiseChange()},e.getSettings=function(e,t,n){void 0===n&&(n=d);for(var r={},o=t&&n.scopedSettings[t]||{},i=t&&h.scopedSettings[t]||{},a=0,s=e;a<s.length;a++){var l=s[a];r[l]=o[l]||n.settings[l]||i[l]||h.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){p.push(e)},e.unobserve=function(e){p=p.filter((function(t){return t!==e}))},e._raiseChange=function(){e._suppressUpdates||p.forEach((function(e){return e()}))},e}()},2049:function(e,t,n){n.d(t,{i:function(){return r}});var r=n(7363).createContext({customizations:{inCustomizerContext:!1,settings:{},scopedSettings:{}}})},8873:function(e,t,n){function r(){return"undefined"!=typeof window&&!(!window.document||!window.document.createElement)}n.d(t,{N:function(){return r}})},2874:function(e,t,n){n.d(t,{M:function(){return o}});var r=n(8873);function o(e){if((0,r.N)()&&"undefined"!=typeof document){var t=e;return t&&t.ownerDocument?t.ownerDocument:document}}},3820:function(e,t,n){n.d(t,{J:function(){return i}});var r=n(8873),o=void 0;try{o=window}catch(e){}function i(e){if((0,r.N)()&&void 0!==o){var t=e;return t&&t.ownerDocument&&t.ownerDocument.defaultView?t.ownerDocument.defaultView:o}}},156:function(e,t,n){n.d(t,{Ct:function(){return d},NF:function(){return u}});var r=n(5499),o=!1,i=0,a={empty:!0},s={},l="undefined"==typeof WeakMap?null:WeakMap;function c(){i++}function u(e,t,n){if(void 0===t&&(t=100),void 0===n&&(n=!1),!l)return e;if(!o){var u=r.Y.getInstance();u&&u.onReset&&r.Y.getInstance().onReset(c),o=!0}var d,p=0,f=i;return function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var l,c=d;(void 0===d||f!==i||t>0&&p>t)&&(d=h(),p=0,f=i),c=d;for(var u=0;u<r.length;u++){var g=(l=r[u])?"object"==typeof l||"function"==typeof l?l:(s[l]||(s[l]={val:l}),s[l]):a;c.map.has(g)||c.map.set(g,h()),c=c.map.get(g)}return c.hasOwnProperty("value")||(c.value=e.apply(void 0,r),p++),!n||null!==c.value&&void 0!==c.value||(c.value=e.apply(void 0,r)),c.value}}function d(e){if(!l)return e;var t=new l;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 h(){return{map:l?new l:null}}},116:function(e,t,n){n.d(t,{zg:function(){return l}});var r,o=n(2874),i=n(5114),a=n(4473),s="isRTL";function l(e){if(void 0===e&&(e={}),void 0!==e.rtl)return e.rtl;if(void 0===r){var t=(0,i.r)(s);null!==t&&function(e,t){void 0===t&&(t=!1);var n=(0,o.M)();n&&n.documentElement.setAttribute("dir",e?"rtl":"ltr"),t&&(0,i.L)(s,e?"1":"0"),r=e,(0,a.ok)(r)}(r="1"===t);var n=(0,o.M)();void 0===r&&n&&(r="rtl"===(n.body&&n.body.getAttribute("dir")||n.documentElement.getAttribute("dir")),(0,a.ok)(r))}return!!r}},5114:function(e,t,n){n.d(t,{L:function(){return i},r:function(){return o}});var r=n(3820);function o(e){var t=null;try{var n=(0,r.J)();t=n?n.sessionStorage.getItem(e):null}catch(e){}return t}function i(e,t){var n;try{null===(n=(0,r.J)())||void 0===n||n.sessionStorage.setItem(e,t)}catch(e){}}},9766:function(e,t,n){n.d(t,{G$:function(){return r}});var r="ms-Fabric--isFocusVisible"},9085:function(e,t,n){n.d(t,{z:function(){return c}});var r=n(9939),o=n(7363),i=n(4270),a=n(775),s=n(2049);var l=["theme","styles"];function c(e,t,n,c,u){var d=(c=c||{scope:"",fields:void 0}).scope,h=c.fields,p=void 0===h?l:h,f=o.forwardRef((function(l,c){var u,h,f,g,m,v,_=o.useRef(),y=(u=p,h=d,f=o.useState(0)[1],g=function(){return f((function(e){return++e}))},m=o.useContext(s.i).customizations,v=m.inCustomizerContext,o.useEffect((function(){return v||a.X.observe(g),function(){v||a.X.unobserve(g)}}),[v]),a.X.getSettings(u,h,m)),x=y.styles,b=(y.dir,(0,r._T)(y,["styles","dir"])),C=n?n(l):void 0,E=_.current&&_.current.__cachedInputs__||[],S=l.styles;if(!_.current||x!==E[1]||S!==E[2]){var A=function(e){return function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=[],o=0,a=t;o<a.length;o++){var s=a[o];s&&r.push("function"==typeof s?s(e):s)}return 1===r.length?r[0]:r.length?i.m.apply(void 0,r):{}}(e,t,x,S)};A.__cachedInputs__=[t,x,S],A.__noStyleOverride__=!x&&!S,_.current=A}return o.createElement(e,(0,r.pi)({ref:c},b,C,l,{styles:_.current}))}));f.displayName="Styled".concat(e.displayName||e.name);var g=u?o.memo(f):f;return f.displayName&&(g.displayName=f.displayName),g}},7363:function(e){e.exports=React},6775:function(e,t,n){n.d(t,{Z:function(){return i}});var r=n(9941),o=n(5795);function i(){var e,t,n=(0,o.Z)().unknown(void 0),a=n.domain,s=n.range,l=0,c=1,u=!1,d=0,h=0,p=.5;function f(){var n=a().length,r=c<l,o=r?c:l,i=r?l:c;e=(i-o)/Math.max(1,n-d+2*h),u&&(e=Math.floor(e)),o+=(i-o-e*(n-d))*p,t=e*(1-d),u&&(o=Math.round(o),t=Math.round(t));var f=function(e,t,n){e=+e,t=+t,n=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+n;for(var r=-1,o=0|Math.max(0,Math.ceil((t-e)/n)),i=new Array(o);++r<o;)i[r]=e+r*n;return i}(n).map((function(t){return o+e*t}));return s(r?f.reverse():f)}return delete n.unknown,n.domain=function(e){return arguments.length?(a(e),f()):a()},n.range=function(e){return arguments.length?([l,c]=e,l=+l,c=+c,f()):[l,c]},n.rangeRound=function(e){return[l,c]=e,l=+l,c=+c,u=!0,f()},n.bandwidth=function(){return t},n.step=function(){return e},n.round=function(e){return arguments.length?(u=!!e,f()):u},n.padding=function(e){return arguments.length?(d=Math.min(1,h=+e),f()):d},n.paddingInner=function(e){return arguments.length?(d=Math.min(1,e),f()):d},n.paddingOuter=function(e){return arguments.length?(h=+e,f()):h},n.align=function(e){return arguments.length?(p=Math.max(0,Math.min(1,e)),f()):p},n.copy=function(){return i(a(),[l,c]).round(u).paddingInner(d).paddingOuter(h).align(p)},r.o.apply(f(),arguments)}},7451:function(e,t,n){n.d(t,{JG:function(){return ie},ZP:function(){return ae}});var r=n(9785),o=n(7329);const i=(0,o.Z)(r.Z),a=i.right;i.left,(0,o.Z)((function(e){return null===e?NaN:+e})).center;var s=a;function l(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function c(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function u(){}var d=.7,h=1/d,p="\\s*([+-]?\\d+)\\s*",f="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",g="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",m=/^#([0-9a-f]{3,8})$/,v=new RegExp("^rgb\\("+[p,p,p]+"\\)$"),_=new RegExp("^rgb\\("+[g,g,g]+"\\)$"),y=new RegExp("^rgba\\("+[p,p,p,f]+"\\)$"),x=new RegExp("^rgba\\("+[g,g,g,f]+"\\)$"),b=new RegExp("^hsl\\("+[f,g,g]+"\\)$"),C=new RegExp("^hsla\\("+[f,g,g,f]+"\\)$"),E={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 S(){return this.rgb().formatHex()}function A(){return this.rgb().formatRgb()}function L(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=m.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?k(t):3===n?new D(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?new D(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?new D(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=v.exec(e))?new D(t[1],t[2],t[3],1):(t=_.exec(e))?new D(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=y.exec(e))?T(t[1],t[2],t[3],t[4]):(t=x.exec(e))?T(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=b.exec(e))?I(t[1],t[2]/100,t[3]/100,1):(t=C.exec(e))?I(t[1],t[2]/100,t[3]/100,t[4]):E.hasOwnProperty(e)?k(E[e]):"transparent"===e?new D(NaN,NaN,NaN,0):null}function k(e){return new D(e>>16&255,e>>8&255,255&e,1)}function T(e,t,n,r){return r<=0&&(e=t=n=NaN),new D(e,t,n,r)}function w(e,t,n,r){return 1===arguments.length?((o=e)instanceof u||(o=L(o)),o?new D((o=o.rgb()).r,o.g,o.b,o.opacity):new D):new D(e,t,n,null==r?1:r);var o}function D(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function M(){return"#"+F(this.r)+F(this.g)+F(this.b)}function P(){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 F(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function I(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new V(e,t,n,r)}function N(e){if(e instanceof V)return new V(e.h,e.s,e.l,e.opacity);if(e instanceof u||(e=L(e)),!e)return new V;if(e instanceof V)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,s=i-o,l=(i+o)/2;return s?(a=t===i?(n-r)/s+6*(n<r):n===i?(r-t)/s+2:(t-n)/s+4,s/=l<.5?i+o:2-i-o,a*=60):s=l>0&&l<1?0:a,new V(a,s,l,e.opacity)}function V(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function O(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 H(e,t,n,r,o){var i=e*e,a=i*e;return((1-3*e+3*i-a)*t+(4-6*i+3*a)*n+(1+3*e+3*i-3*a)*r+a*o)/6}function B(e){return function(){return e}}function R(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):B(isNaN(e)?t:e)}l(u,L,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:S,formatHex:S,formatHsl:function(){return N(this).formatHsl()},formatRgb:A,toString:A}),l(D,w,c(u,{brighter:function(e){return e=null==e?h:Math.pow(h,e),new D(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?d:Math.pow(d,e),new D(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:M,formatHex:M,formatRgb:P,toString:P})),l(V,(function(e,t,n,r){return 1===arguments.length?N(e):new V(e,t,n,null==r?1:r)}),c(u,{brighter:function(e){return e=null==e?h:Math.pow(h,e),new V(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?d:Math.pow(d,e),new V(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,o=2*n-r;return new D(O(e>=240?e-240:e+120,o,r),O(e,o,r),O(e<120?e+240:e-120,o,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 z=function e(t){var n=function(e){return 1==(e=+e)?R: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):B(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=w(e)).r,(t=w(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=R(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function W(e){return function(t){var n,r,o=t.length,i=new Array(o),a=new Array(o),s=new Array(o);for(n=0;n<o;++n)r=w(t[n]),i[n]=r.r||0,a[n]=r.g||0,s[n]=r.b||0;return i=e(i),a=e(a),s=e(s),r.opacity=1,function(e){return r.r=i(e),r.g=a(e),r.b=s(e),r+""}}}function Y(e,t){var n,r=t?t.length:0,o=e?Math.min(r,e.length):0,i=new Array(o),a=new Array(r);for(n=0;n<o;++n)i[n]=$(e[n],t[n]);for(;n<r;++n)a[n]=t[n];return function(e){for(n=0;n<o;++n)a[n]=i[n](e);return a}}function Z(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function q(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function X(e,t){var n,r={},o={};for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?r[n]=$(e[n],t[n]):o[n]=t[n];return function(e){for(n in r)o[n]=r[n](e);return o}}W((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),o=e[r],i=e[r+1],a=r>0?e[r-1]:2*o-i,s=r<t-1?e[r+2]:2*i-o;return H((n-r/t)*t,a,o,i,s)}})),W((function(e){var t=e.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*t),o=e[(r+t-1)%t],i=e[r%t],a=e[(r+1)%t],s=e[(r+2)%t];return H((n-r/t)*t,o,i,a,s)}}));var U=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,j=new RegExp(U.source,"g");function G(e,t){var n,r,o,i=U.lastIndex=j.lastIndex=0,a=-1,s=[],l=[];for(e+="",t+="";(n=U.exec(e))&&(r=j.exec(t));)(o=r.index)>i&&(o=t.slice(i,o),s[a]?s[a]+=o:s[++a]=o),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,l.push({i:a,x:q(n,r)})),i=j.lastIndex;return i<t.length&&(o=t.slice(i),s[a]?s[a]+=o:s[++a]=o),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 K(e,t){t||(t=[]);var n,r=e?Math.min(t.length,e.length):0,o=t.slice();return function(i){for(n=0;n<r;++n)o[n]=e[n]*(1-i)+t[n]*i;return o}}function $(e,t){var n,r,o=typeof t;return null==t||"boolean"===o?B(t):("number"===o?q:"string"===o?(n=L(t))?(t=n,z):G:t instanceof L?z:t instanceof Date?Z:(r=t,!ArrayBuffer.isView(r)||r instanceof DataView?Array.isArray(t)?Y:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?X:q:K))(e,t)}function J(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function Q(e){return+e}var ee=[0,1];function te(e){return e}function ne(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:(n=isNaN(t)?NaN:.5,function(){return n});var n}function re(e,t,n){var r=e[0],o=e[1],i=t[0],a=t[1];return o<r?(r=ne(o,r),i=n(a,i)):(r=ne(r,o),i=n(i,a)),function(e){return i(r(e))}}function oe(e,t,n){var r=Math.min(e.length,t.length)-1,o=new Array(r),i=new Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)o[a]=ne(e[a],e[a+1]),i[a]=n(t[a],t[a+1]);return function(t){var n=s(e,t,1,r)-1;return i[n](o[n](t))}}function ie(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function ae(){return function(){var e,t,n,r,o,i,a=ee,s=ee,l=$,c=te;function u(){var e,t,n,l=Math.min(a.length,s.length);return c!==te&&(e=a[0],t=a[l-1],e>t&&(n=e,e=t,t=n),c=function(n){return Math.max(e,Math.min(t,n))}),r=l>2?oe:re,o=i=null,d}function d(t){return null==t||isNaN(t=+t)?n:(o||(o=r(a.map(e),s,l)))(e(c(t)))}return d.invert=function(n){return c(t((i||(i=r(s,a.map(e),q)))(n)))},d.domain=function(e){return arguments.length?(a=Array.from(e,Q),u()):a.slice()},d.range=function(e){return arguments.length?(s=Array.from(e),u()):s.slice()},d.rangeRound=function(e){return s=Array.from(e),l=J,u()},d.clamp=function(e){return arguments.length?(c=!!e||te,u()):c!==te},d.interpolate=function(e){return arguments.length?(l=e,u()):l},d.unknown=function(e){return arguments.length?(n=e,d):n},function(n,r){return e=n,t=r,u()}}()(te,te)}},9941:function(e,t,n){function r(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}n.d(t,{o:function(){return r}})},8815:function(e,t,n){n.d(t,{Z:function(){return p}});var r=Math.sqrt(50),o=Math.sqrt(10),i=Math.sqrt(2);function a(e,t,n){var a=(t-e)/Math.max(0,n),s=Math.floor(Math.log(a)/Math.LN10),l=a/Math.pow(10,s);return s>=0?(l>=r?10:l>=o?5:l>=i?2:1)*Math.pow(10,s):-Math.pow(10,-s)/(l>=r?10:l>=o?5:l>=i?2:1)}var s=n(7451),l=n(9941),c=n(4116),u=n(4783),d=n(1783);function h(e){var t=e.domain;return e.ticks=function(e){var n=t();return function(e,t,n){var r,o,i,s,l=-1;if(n=+n,(e=+e)==(t=+t)&&n>0)return[e];if((r=t<e)&&(o=e,e=t,t=o),0===(s=a(e,t,n))||!isFinite(s))return[];if(s>0){let n=Math.round(e/s),r=Math.round(t/s);for(n*s<e&&++n,r*s>t&&--r,i=new Array(o=r-n+1);++l<o;)i[l]=(n+l)*s}else{s=-s;let n=Math.round(e*s),r=Math.round(t*s);for(n/s<e&&++n,r/s>t&&--r,i=new Array(o=r-n+1);++l<o;)i[l]=(n+l)/s}return r&&i.reverse(),i}(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var a=t();return function(e,t,n,a){var s,l=function(e,t,n){var a=Math.abs(t-e)/Math.max(0,n),s=Math.pow(10,Math.floor(Math.log(a)/Math.LN10)),l=a/s;return l>=r?s*=10:l>=o?s*=5:l>=i&&(s*=2),t<e?-s:s}(e,t,n);switch((a=(0,c.Z)(null==a?",f":a)).type){case"s":var h=Math.max(Math.abs(e),Math.abs(t));return null!=a.precision||isNaN(s=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor((0,u.Z)(t)/3)))-(0,u.Z)(Math.abs(e)))}(l,h))||(a.precision=s),(0,d.jH)(a,h);case"":case"e":case"g":case"p":case"r":null!=a.precision||isNaN(s=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,(0,u.Z)(t)-(0,u.Z)(e))+1}(l,Math.max(Math.abs(e),Math.abs(t))))||(a.precision=s-("e"===a.type));break;case"f":case"%":null!=a.precision||isNaN(s=function(e){return Math.max(0,-(0,u.Z)(Math.abs(e)))}(l))||(a.precision=s-2*("%"===a.type))}return(0,d.WU)(a)}(a[0],a[a.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var r,o,i=t(),s=0,l=i.length-1,c=i[s],u=i[l],d=10;for(u<c&&(o=c,c=u,u=o,o=s,s=l,l=o);d-- >0;){if((o=a(c,u,n))===r)return i[s]=c,i[l]=u,t(i);if(o>0)c=Math.floor(c/o)*o,u=Math.ceil(u/o)*o;else{if(!(o<0))break;c=Math.ceil(c*o)/o,u=Math.floor(u*o)/o}r=o}return e},e}function p(){var e=(0,s.ZP)();return e.copy=function(){return(0,s.JG)(e,p())},l.o.apply(e,arguments),h(e)}},5795:function(e,t,n){n.d(t,{Z:function(){return d}});class r extends Map{constructor(e,t=l){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(i(this,e))}has(e){return super.has(i(this,e))}set(e,t){return super.set(a(this,e),t)}delete(e){return super.delete(s(this,e))}}class o extends Set{constructor(e,t=l){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const t of e)this.add(t)}has(e){return super.has(i(this,e))}add(e){return super.add(a(this,e))}delete(e){return super.delete(s(this,e))}}function i({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function a({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function s({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(n),e.delete(r)),n}function l(e){return null!==e&&"object"==typeof e?e.valueOf():e}var c=n(9941);const u=Symbol("implicit");function d(){var e=new r,t=[],n=[],o=u;function i(r){let i=e.get(r);if(void 0===i){if(o!==u)return o;e.set(r,i=t.push(r)-1)}return n[i%n.length]}return i.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new r;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?(o=e,i):o},i.copy=function(){return d(t,n).unknown(o)},c.o.apply(i,arguments),i}},8639:function(e,t,n){n.d(t,{Z:function(){return H}});var r=Math.sqrt(50),o=Math.sqrt(10),i=Math.sqrt(2);function a(e,t,n){var a=Math.abs(t-e)/Math.max(0,n),s=Math.pow(10,Math.floor(Math.log(a)/Math.LN10)),l=a/s;return l>=r?s*=10:l>=o?s*=5:l>=i&&(s*=2),t<e?-s:s}var s=n(4827),l=n(4315),c=(0,l.Z)((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e}));c.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?(0,l.Z)((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):c:null};var u=c,d=(c.range,n(87)),h=n(4189),p=n(5401),f=n(3645),g=n(2167),m=n(9604),v=n(9507),_=(0,l.Z)((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+t*s.yB)}),(function(e,t){return(t-e)/s.yB}),(function(e){return e.getUTCMinutes()})),y=_,x=(_.range,(0,l.Z)((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+t*s.Y2)}),(function(e,t){return(t-e)/s.Y2}),(function(e){return e.getUTCHours()}))),b=x,C=(x.range,n(2605)),E=n(3787),S=(0,l.Z)((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()})),A=S,L=(S.range,n(2527));function k(e,t,n,r,o,i){const l=[[d.Z,1,s.Ym],[d.Z,5,5*s.Ym],[d.Z,15,15*s.Ym],[d.Z,30,30*s.Ym],[i,1,s.yB],[i,5,5*s.yB],[i,15,15*s.yB],[i,30,30*s.yB],[o,1,s.Y2],[o,3,3*s.Y2],[o,6,6*s.Y2],[o,12,12*s.Y2],[r,1,s.UD],[r,2,2*s.UD],[n,1,s.iM],[t,1,s.jz],[t,3,3*s.jz],[e,1,s.qz]];function c(t,n,r){const o=Math.abs(n-t)/r,i=function(e){let t=e,n=e;function r(e,t,r,o){for(null==r&&(r=0),null==o&&(o=e.length);r<o;){const i=r+o>>>1;n(e[i],t)<0?r=i+1:o=i}return r}return 1===e.length&&(t=(t,n)=>e(t)-n,n=function(e){return(t,n)=>{return(r=e(t))<(o=n)?-1:r>o?1:r>=o?0:NaN;var r,o}}(e)),{left:r,center:function(e,n,o,i){null==o&&(o=0),null==i&&(i=e.length);const a=r(e,n,o,i-1);return a>o&&t(e[a-1],n)>-t(e[a],n)?a-1:a},right:function(e,t,r,o){for(null==r&&(r=0),null==o&&(o=e.length);r<o;){const i=r+o>>>1;n(e[i],t)>0?o=i:r=i+1}return r}}}((([,,e])=>e)).right(l,o);if(i===l.length)return e.every(a(t/s.qz,n/s.qz,r));if(0===i)return u.every(Math.max(a(t,n,r),1));const[c,d]=l[o/l[i-1][2]<l[i][2]/o?i-1:i];return c.every(d)}return[function(e,t,n){const r=t<e;r&&([e,t]=[t,e]);const o=n&&"function"==typeof n.range?n:c(e,t,n),i=o?o.range(e,+t+1):[];return r?i.reverse():i},c]}const[T,w]=k(L.Z,A,E.Ox,C.Z,b,y),[D,M]=k(v.Z,m.Z,g.OM,f.Z,p.Z,h.Z);var P=n(731),F=n(7451),I=n(9941);function N(e){return new Date(e)}function V(e){return e instanceof Date?+e:+new Date(+e)}function O(e,t,n,r,o,i,a,s,l,c){var u=(0,F.ZP)(),d=u.invert,h=u.domain,p=c(".%L"),f=c(":%S"),g=c("%I:%M"),m=c("%I %p"),v=c("%a %d"),_=c("%b %d"),y=c("%B"),x=c("%Y");function b(e){return(l(e)<e?p:s(e)<e?f:a(e)<e?g:i(e)<e?m:r(e)<e?o(e)<e?v:_:n(e)<e?y:x)(e)}return u.invert=function(e){return new Date(d(e))},u.domain=function(e){return arguments.length?h(Array.from(e,V)):h().map(N)},u.ticks=function(t){var n=h();return e(n[0],n[n.length-1],null==t?10:t)},u.tickFormat=function(e,t){return null==t?b:c(t)},u.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,o=(e=e.slice()).length-1,i=e[r],a=e[o];return a<i&&(n=r,r=o,o=n,n=i,i=a,a=n),e[r]=t.floor(i),e[o]=t.ceil(a),e}(n,e)):u},u.copy=function(){return(0,F.JG)(u,O(e,t,n,r,o,i,a,s,l,c))},u}function H(){return I.o.apply(O(D,M,v.Z,m.Z,g.OM,f.Z,p.Z,h.Z,d.Z,P.i$).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};!function(){n.r(r),n.d(r,{AreaChart:function(){return xi},CartesianChart:function(){return Oo},ChartHoverCard:function(){return $t.ChartHoverCard},DataVizPalette:function(){return uo},DonutChart:function(){return bo},GaugeChart:function(){return rs},GaugeValueFormat:function(){return Ua},GroupedVerticalBarChart:function(){return Ji},HeatMapChart:function(){return ra},HorizontalBarChart:function(){return Nn},HorizontalBarChartVariant:function(){return h},HorizontalBarChartWithAxis:function(){return Qa},Legends:function(){return Ar},LineChart:function(){return ni},MultiStackedBarChart:function(){return Oi},MultiStackedBarChartVariant:function(){return Li},NodesComposition:function(){return za},PieChart:function(){return Di},SankeyChart:function(){return ka},Shape:function(){return Cr},Sparkline:function(){return Ka},StackedBarChart:function(){return Fi},Textbox:function(){return Ko},TreeChart:function(){return Xa},TreeTraverse:function(){return Wa},VerticalBarChart:function(){return qi},VerticalStackedBarChart:function(){return ji},getChartHoverCardStyles:function(){return Qi.n},getColorFromToken:function(){return _o},getNextColor:function(){return vo}});var e=n(9085),t=n(9939),o=n(7363),i=n(8461),a=n(116),s=n(3820),l=n(5499),c="__currentId__",u="id__",d=(0,s.J)()||{};void 0===d[c]&&(d[c]=0);var h,p=!1;function f(e){if(!p){var t=l.Y.getInstance();t&&t.onReset&&t.onReset(g),p=!0}var n=d[c]++;return(void 0===e?u:e)+n}function g(e){void 0===e&&(e=0),d[c]=e}function m(e,t,n){void 0===n&&(n=0);for(var r=-1,o=n;e&&o<e.length;o++)if(t(e[o],o)){r=o;break}return r}function v(e,t){var n=m(e,t);if(!(n<0))return e[n]}!function(e){e.PartToWhole="part-to-whole",e.AbsoluteScale="absolute-scale"}(h||(h={}));var _={topLeftEdge:0,topCenter:1,topRightEdge:2,topAutoEdge:3,bottomLeftEdge:4,bottomCenter:5,bottomRightEdge:6,bottomAutoEdge:7,leftTopEdge:8,leftCenter:9,leftBottomEdge:10,rightTopEdge:11,rightCenter:12,rightBottomEdge:13};function y(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 x(e,t,n){return null!=n||(n=document),e&&e!==n.body?t(e)?e:x(y(e),t):null}function b(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 o=y(t);if(o===e){r=!0;break}t=o}else e.contains&&(r=e.contains(t));return r}var C=n(2874),E="data-is-focusable",S="data-is-visible",A="data-focuszone-id",L="data-is-sub-focuszone";function k(e,t){var n=w(e,e,!0,!1,!1,!0,void 0,void 0,t);return!!n&&(V(n),!0)}function T(e,t,n,r,o,i,a,s){if(!t||!a&&t===e)return null;var l=D(t);if(o&&l&&(i||!F(t)&&!I(t))){var c=T(e,t.lastElementChild,!0,!0,!0,i,a,s);if(c){if(s&&P(c,!0)||!s)return c;var u=T(e,c.previousElementSibling,!0,!0,!0,i,a,s);if(u)return u;for(var d=c.parentElement;d&&d!==t;){var h=T(e,d.previousElementSibling,!0,!0,!0,i,a,s);if(h)return h;d=d.parentElement}}}return n&&l&&P(t,s)?t:T(e,t.previousElementSibling,!0,!0,!0,i,a,s)||(r?null:T(e,t.parentElement,!0,!1,!1,i,a,s))}function w(e,t,n,r,o,i,a,s,l){if(!t||t===e&&o&&!a)return null;var c=(l?M:D)(t);if(n&&c&&P(t,s))return t;if(!o&&c&&(i||!F(t)&&!I(t))){var u=w(e,t.firstElementChild,!0,!0,!1,i,a,s,l);if(u)return u}return t===e?null:w(e,t.nextElementSibling,!0,!0,!1,i,a,s,l)||(r?null:w(e,t.parentElement,!1,!1,!0,i,a,s,l))}function D(e){if(!e||!e.getAttribute)return!1;var t=e.getAttribute(S);return null!=t?"true"===t:0!==e.offsetHeight||null!==e.offsetParent||!0===e.isVisible}function M(e,t){var n=null!=t?t:(0,s.J)();return!!e&&D(e)&&!e.hidden&&"hidden"!==n.getComputedStyle(e).visibility}function P(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 o=e.getAttribute?e.getAttribute(E):null,i=null!==r&&n>=0,a=!!e&&"false"!==o&&("A"===e.tagName||"BUTTON"===e.tagName||"INPUT"===e.tagName||"TEXTAREA"===e.tagName||"SELECT"===e.tagName||"true"===o||i);return t?-1!==n&&a:a}function F(e){return!!(e&&e.getAttribute&&e.getAttribute(A))}function I(e){return!(!e||!e.getAttribute||"true"!==e.getAttribute(L))}var N=void 0;function V(e){if(e){var t=(0,s.J)(e);t&&(void 0!==N&&t.cancelAnimationFrame(N),N=t.requestAnimationFrame((function(){e&&e.focus(),N=void 0})))}}function O(e,t,n,r){return e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n,r)}}function H(e,n){for(var r=(0,t.pi)({},n),o=0,i=Object.keys(e);o<i.length;o++){var a=i[o];void 0===r[a]&&(r[a]=e[a])}return r}var B=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n={},r=0,o=e;r<o.length;r++)for(var i=o[r],a=0,s=Array.isArray(i)?i:Object.keys(i);a<s.length;a++)n[s[a]]=1;return n},R=B(["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"]),z=B(["accessKey","children","className","contentEditable","dir","draggable","hidden","htmlFor","id","lang","ref","role","style","tabIndex","title","translate","spellCheck","name"]),W=B(z,R),Y=(B(W,["form"]),B(W,["height","loop","muted","preload","src","width"])),Z=(B(Y,["poster"]),B(W,["start"]),B(W,["value"]),B(W,["download","href","hrefLang","media","rel","target","type"]),B(W,["autoFocus","disabled","form","formAction","formEncType","formMethod","formNoValidate","formTarget","type","value"])),q=(B(Z,["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"]),B(Z,["autoCapitalize","cols","dirname","form","maxLength","minLength","placeholder","readOnly","required","rows","wrap"]),B(Z,["form","multiple","required"]),B(W,["selected","value"]),B(W,["cellPadding","cellSpacing"]),B(W,["rowSpan","scope"]),B(W,["colSpan","headers","rowSpan","scope"]),B(W,["span"]),B(W,["span"]),B(W,["acceptCharset","action","encType","encType","method","noValidate","target"]),B(W,["allow","allowFullScreen","allowPaymentRequest","allowTransparency","csp","height","importance","referrerPolicy","sandbox","src","srcDoc","width"]),B(W,["alt","crossOrigin","height","src","srcSet","useMap","width"]),W);function X(e,t,n){for(var r=Array.isArray(t),o={},i=0,a=Object.keys(e);i<a.length;i++){var s=a[i];!(!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))||(o[s]=e[s])}return o}function U(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=[],r=0,o=e;r<o.length;r++){var i=o[r];if(i)if("string"==typeof i)n.push(i);else if(i.hasOwnProperty("toString")&&"function"==typeof i.toString)n.push(i.toString());else for(var a in i)i[a]&&n.push(a)}return n.join(" ")}function j(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return G.apply(this,[null,e].concat(t))}function G(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];t=t||{};for(var o=0,i=n;o<i.length;o++){var a=i[o];if(a)for(var s in a)!a.hasOwnProperty(s)||e&&!e(s)||(t[s]=a[s])}return t}var K,$,J,Q=n(13),ee=((0,Q.y)({overflow:"hidden !important"}),"data-is-scrollable");function te(e){for(var t=e,n=(0,C.M)(e);t&&t!==n.body;){if("true"===t.getAttribute(ee))return t;t=t.parentElement}for(t=e;t&&t!==n.body;){if("false"!==t.getAttribute(ee)){var r=getComputedStyle(t),o=r?r.getPropertyValue("overflow-y"):"";if(o&&("scroll"===o||"auto"===o))return t}t=t.parentElement}return t&&t!==n.body||(t=(0,s.J)(e)),t}!function(e){e[e.top=1]="top",e[e.bottom=-1]="bottom",e[e.left=2]="left",e[e.right=-2]="right"}($||($={})),function(e){e[e.top=0]="top",e[e.bottom=1]="bottom",e[e.start=2]="start",e[e.end=3]="end"}(J||(J={}));var ne,re=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 oe(e,t,n){return{targetEdge:e,alignmentEdge:t,isAuto:n}}var ie=((ne={})[_.topLeftEdge]=oe($.top,$.left),ne[_.topCenter]=oe($.top),ne[_.topRightEdge]=oe($.top,$.right),ne[_.topAutoEdge]=oe($.top,void 0,!0),ne[_.bottomLeftEdge]=oe($.bottom,$.left),ne[_.bottomCenter]=oe($.bottom),ne[_.bottomRightEdge]=oe($.bottom,$.right),ne[_.bottomAutoEdge]=oe($.bottom,void 0,!0),ne[_.leftTopEdge]=oe($.left,$.top),ne[_.leftCenter]=oe($.left),ne[_.leftBottomEdge]=oe($.left,$.bottom),ne[_.rightTopEdge]=oe($.right,$.top),ne[_.rightCenter]=oe($.right),ne[_.rightBottomEdge]=oe($.right,$.bottom),ne);function ae(e,t){return!(e.top<t.top||e.bottom>t.bottom||e.left<t.left||e.right>t.right)}function se(e,t){var n=[];return e.top<t.top&&n.push($.top),e.bottom>t.bottom&&n.push($.bottom),e.left<t.left&&n.push($.left),e.right>t.right&&n.push($.right),n}function le(e,t){return e[$[t]]}function ce(e,t,n){return e[$[t]]=n,e}function ue(e,t){var n=Ce(t);return(le(e,n.positiveEdge)+le(e,n.negativeEdge))/2}function de(e,t){return e>0?t:-1*t}function he(e,t){return de(e,le(t,e))}function pe(e,t,n){return de(n,le(e,n)-le(t,n))}function fe(e,t,n,r){void 0===r&&(r=!0);var o=le(e,t)-n,i=ce(e,t,n);return r&&(i=ce(e,-1*t,le(e,-1*t)-o)),i}function ge(e,t,n,r){return void 0===r&&(r=0),fe(e,n,le(t,n)+de(n,r))}function me(e,t,n){return he(n,e)>he(n,t)}function ve(e,t){for(var n=0,r=0,o=se(e,t);r<o.length;r++){var i=o[r];n+=Math.pow(pe(e,t,i),2)}return n}function _e(e,t,n,r){return void 0===r&&(r=200),(n===$.bottom||n===$.top)&&pe(e,t,n)>=r}function ye(e,t,n,r){for(var o=0,i=e;o<i.length;o++){var a=i[o],s=void 0;r&&r===-1*a?(s=fe(t.elementRectangle,a,le(n,a),!1),t.forcedInBounds=!0):me(s=ge(t.elementRectangle,n,a),n,-1*a)||(s=fe(s,-1*a,le(n,-1*a),!1),t.forcedInBounds=!0),t.elementRectangle=s}return t}function xe(e,t,n){var r=Ce(t).positiveEdge;return fe(e,r,n-(ue(e,t)-le(e,r)))}function be(e,t,n,r,o){void 0===r&&(r=0);var i=new re(e.left,e.right,e.top,e.bottom),a=n.alignmentEdge,s=n.targetEdge,l=o?s:-1*s;return i=o?ge(i,t,s,r):function(e,t,n,r){void 0===r&&(r=0);var o=de(-1*n,r);return fe(e,-1*n,le(t,n)+o)}(i,t,s,r),i=a?ge(i,t,a):xe(i,l,ue(t,s))}function Ce(e){return e===$.top||e===$.bottom?{positiveEdge:$.left,negativeEdge:$.right}:{positiveEdge:$.top,negativeEdge:$.bottom}}function Ee(e,t,n){return n&&Math.abs(pe(e,n,t))>Math.abs(pe(e,n,-1*t))?-1*t:t}function Se(e,t,n,r,o,i,a,s){var l,c={},u=ke(t),d=i?n:-1*n,h=o||Ce(n).positiveEdge;return a&&!function(e,t,n){return void 0!==n&&le(e,t)===le(n,t)}(e,(l=h,-1*l),r)||(h=Ee(e,h,r)),c[$[d]]=pe(e,u,d),c[$[h]]=pe(e,u,h),s&&(c[$[-1*d]]=pe(e,u,-1*d),c[$[-1*h]]=pe(e,u,-1*h)),c}function Ae(e,t,n){var r=ue(t,e),o=ue(n,e),i=Ce(e),a=i.positiveEdge,s=i.negativeEdge;return r<=o?a:s}function Le(e,t,n,r,o,i,s,l,c){void 0===i&&(i=!1);var u=be(e,t,r,o,c);return ae(u,n)?{elementRectangle:u,targetEdge:r.targetEdge,alignmentEdge:r.alignmentEdge}:function(e,t,n,r,o,i,s,l,c){void 0===o&&(o=!1),void 0===s&&(s=0);var u=r.alignmentEdge,d=r.alignTargetEdge,h={elementRectangle:e,targetEdge:r.targetEdge,alignmentEdge:u};l||c||(h=function(e,t,n,r,o,i,s){void 0===o&&(o=!1),void 0===s&&(s=0);var l=[$.left,$.right,$.bottom,$.top];(0,a.zg)()&&(l[0]*=-1,l[1]*=-1);for(var c,u=e,d=r.targetEdge,h=r.alignmentEdge,p=d,f=h,g=0;g<4;g++){if(me(u,n,d))return{elementRectangle:u,targetEdge:d,alignmentEdge:h};if(o&&_e(t,n,d,i)){switch(d){case $.bottom:u.bottom=n.bottom;break;case $.top:u.top=n.top}return{elementRectangle:u,targetEdge:d,alignmentEdge:h,forcedInBounds:!0}}var m=ve(u,n);(!c||m<c)&&(c=m,p=d,f=h),l.splice(l.indexOf(d),1),l.length>0&&(l.indexOf(-1*d)>-1?d*=-1:(h=d,d=l.slice(-1)[0]),u=be(e,t,{targetEdge:d,alignmentEdge:h},s))}return{elementRectangle:u=be(e,t,{targetEdge:p,alignmentEdge:f},s),targetEdge:p,alignmentEdge:f}}(e,t,n,r,o,i,s));var p=se(h.elementRectangle,n),f=l?-h.targetEdge:void 0;if(p.length>0)if(d)if(h.alignmentEdge&&p.indexOf(-1*h.alignmentEdge)>-1){var g=function(e,t,n,r){var o=e.alignmentEdge,i=e.targetEdge,a=-1*o;return{elementRectangle:be(e.elementRectangle,t,{targetEdge:i,alignmentEdge:a},n,r),targetEdge:i,alignmentEdge:a}}(h,t,s,c);if(ae(g.elementRectangle,n))return g;h=ye(se(g.elementRectangle,n),h,n,f)}else h=ye(p,h,n,f);else h=ye(p,h,n,f);return h}(u,t,n,r,i,s,o,l,c)}function ke(e){var t=e.getBoundingClientRect();return new re(t.left,t.right,t.top,t.bottom)}function Te(e,n,r,o,i,s){void 0===i&&(i=!1);var l=e.gapSpace?e.gapSpace:0,c=function(e,t){var n;if(t){if(t.preventDefault){var r=t;n=new re(r.clientX,r.clientX,r.clientY,r.clientY)}else if(t.getBoundingClientRect)n=ke(t);else{var o=t,i=o.left||o.x,a=o.top||o.y,s=o.right||i,l=o.bottom||a;n=new re(i,s,a,l)}if(!ae(n,e))for(var c=0,u=se(n,e);c<u.length;c++){var d=u[c];n[$[d]]=e[$[d]]}}else n=new re(0,0,0,0);return n}(r,e.target),u=function(e,t,n,r,o){return e.isAuto&&(e.alignmentEdge=Ae(e.targetEdge,t,n)),e.alignTargetEdge=o,e}(function(e,n,r){if(void 0===e&&(e=_.bottomAutoEdge),r)return{alignmentEdge:r.alignmentEdge,isAuto:r.isAuto,targetEdge:r.targetEdge};var o=(0,t.pi)({},ie[e]);return(0,a.zg)()?(o.alignmentEdge&&o.alignmentEdge%2==0&&(o.alignmentEdge=-1*o.alignmentEdge),void 0!==n?ie[n]:o):o}(e.directionalHint,e.directionalHintForRTL,o),c,r,e.coverTarget,e.alignTargetEdge),d=Le(ke(n),c,r,u,l,i,s,e.directionalHintFixed,e.coverTarget);return(0,t.pi)((0,t.pi)({},d),{targetRectangle:c})}function we(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=0),function(e){return Math.sqrt(e*e*2)}(e?t:0)/2+n}function De(e,n,r,o,i,a,l,c){void 0===i&&(i=!1);var u=null!=c?c:(0,s.J)(),d=e.isBeakVisible&&e.beakWidth||0,h=we(e.isBeakVisible,e.beakWidth,e.gapSpace),p=e;p.gapSpace=h;var f,g,m,v,_,y,x,b,E,S=e.bounds?(E=e.bounds,new re(E.left,E.right,E.top,E.bottom)):new re(0,u.innerWidth-function(e){if(void 0===K){var t=(0,C.M)(),n=t.createElement("div");n.style.setProperty("width","100px"),n.style.setProperty("height","100px"),n.style.setProperty("overflow","scroll"),n.style.setProperty("position","absolute"),n.style.setProperty("top","-9999px"),t.body.appendChild(n),K=n.offsetWidth-n.clientWidth,t.body.removeChild(n)}return K}(),0,u.innerHeight),A=Te(p,r,S,o,i,a),L=(f=A,g=function(e,t){var n=t.targetRectangle,r=Ce(t.targetEdge),o=r.positiveEdge,i=r.negativeEdge,a=ue(n,t.targetEdge),s=new re(e/2,t.elementRectangle.width-e/2,e/2,t.elementRectangle.height-e/2),l=new re(0,e,0,e);return me(l=xe(l=fe(l,-1*t.targetEdge,-e/2),-1*t.targetEdge,a-he(o,t.elementRectangle)),s,o)?me(l,s,i)||(l=ge(l,s,i)):l=ge(l,s,o),l}(d,A),m=S,v=-1*f.targetEdge,_=new re(0,f.elementRectangle.width,0,f.elementRectangle.height),y={},x=Ee(f.elementRectangle,f.alignmentEdge?f.alignmentEdge:Ce(v).positiveEdge,m),b=pe(f.elementRectangle,f.targetRectangle,v)>Math.abs(le(g,v)),y[$[v]]=le(g,v),y[$[x]]=pe(g,_,x),{elementPosition:(0,t.pi)({},y),closestEdge:Ae(f.targetEdge,g,_),targetEdge:v,hideBeak:!b});return(0,t.pi)((0,t.pi)({},function(e,t,n,r,o){return{elementPosition:Se(e.elementRectangle,t,e.targetEdge,n,e.alignmentEdge,r,o,e.forcedInBounds),targetEdge:e.targetEdge,alignmentEdge:e.alignmentEdge}}(A,n,S,e.coverTarget,l)),{beakPosition:L})}var Me=["TEMPLATE","STYLE","SCRIPT"];function Pe(e){var t=(0,C.M)(e);if(!t)return function(){};for(var n=[];e!==t.body&&e.parentElement;){for(var r=0,o=e.parentElement.children;r<o.length;r++){var i=o[r],a=i.getAttribute("aria-hidden");i!==e&&"true"!==(null==a?void 0:a.toLowerCase())&&-1===Me.indexOf(i.tagName)&&n.push([i,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 Fe=27,Ie=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,o=(0,s.J)(t);return this._isDisposed||(this._immediateIds||(this._immediateIds={}),r=o.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=(0,s.J)(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 o,i,a=t||0,s=!0,l=!0,c=0,u=null;n&&"boolean"==typeof n.leading&&(s=n.leading),n&&"boolean"==typeof n.trailing&&(l=n.trailing);var d=function(t){var n=Date.now(),h=n-c,p=s?a-h:a;return h>=a&&(!t||s)?(c=n,u&&(r.clearTimeout(u),u=null),o=e.apply(r._parent,i)):null===u&&l&&(u=r.setTimeout(d,p)),o};return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i=e,d(!0)}},e.prototype.debounce=function(e,t,n){var r=this;if(this._isDisposed){var o=function(){};return o.cancel=function(){},o.flush=function(){return null},o.pending=function(){return!1},o}var i,a,s=t||0,l=!1,c=!0,u=null,d=0,h=Date.now(),p=null;n&&"boolean"==typeof n.leading&&(l=n.leading),n&&"boolean"==typeof n.trailing&&(c=n.trailing),n&&"number"==typeof n.maxWait&&!isNaN(n.maxWait)&&(u=n.maxWait);var f=function(e){p&&(r.clearTimeout(p),p=null),h=e},g=function(t){f(t),i=e.apply(r._parent,a)},m=function(e){var t=Date.now(),n=!1;e&&(l&&t-d>=s&&(n=!0),d=t);var o=t-d,a=s-o,f=t-h,v=!1;return null!==u&&(f>=u&&p?v=!0:a=Math.min(a,u-f)),o>=s||v||n?g(t):null!==p&&e||!c||(p=r.setTimeout(m,a)),i},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()),i},_.pending=v,_},e.prototype.requestAnimationFrame=function(e,t){var n=this,r=0,o=(0,s.J)(t);if(!this._isDisposed){this._animationFrameIds||(this._animationFrameIds={});var i=function(){try{n._animationFrameIds&&delete n._animationFrameIds[r],e.apply(n._parent)}catch(e){n._logError(e)}};r=o.requestAnimationFrame?o.requestAnimationFrame(i):o.setTimeout(i,0),this._animationFrameIds[r]=!0}return r},e.prototype.cancelAnimationFrame=function(e,t){var n=(0,s.J)(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 Ne(){var e=o.useRef();return e.current||(e.current=new Ie),o.useEffect((function(){return function(){var t;null===(t=e.current)||void 0===t||t.dispose(),e.current=void 0}}),[]),e.current}function Ve(e,t,n,r){var i=o.useRef(n);i.current=n,o.useEffect((function(){var n=e&&"current"in e?e.current:e;if(n&&n.addEventListener)return O(n,t,(function(e){return i.current(e)}),r)}),[e,t,r])}function Oe(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=o.useCallback((function(t){r.current=t;for(var n=0,o=e;n<o.length;n++){var i=o[n];"function"==typeof i?i(t):i&&(i.current=t)}}),(0,t.ev)([],e,!0));return r}var He=o.createContext({window:"object"==typeof window?window:void 0}),Be=function(){return o.useContext(He).window},Re=function(){var e;return null===(e=o.useContext(He).window)||void 0===e?void 0:e.document};function ze(e){var t=e.originalElement,n=e.containsFocus;t&&n&&t!==(0,s.J)()&&setTimeout((function(){var e;null===(e=t.focus)||void 0===e||e.call(t)}),0)}var We=o.forwardRef((function(e,n){var r=H({shouldRestoreFocus:!0,enableAriaHiddenSiblings:!0},e),i=o.useRef(),a=Oe(i,n);!function(e,t){var n="true"===String(e["aria-modal"]).toLowerCase()&&e.enableAriaHiddenSiblings;o.useEffect((function(){if(n&&t.current)return Pe(t.current)}),[t,n])}(r,i),function(e,t){var n=e.onRestoreFocus,r=void 0===n?ze:n,i=o.useRef(),a=o.useRef(!1);o.useEffect((function(){var e,n,o;return i.current=(0,C.M)().activeElement,e=t.current,(o=(n=(0,C.M)(e))&&n.activeElement)&&b(e,o)&&(a.current=!0),function(){var e;null==r||r({originalElement:i.current,containsFocus:a.current,documentContainsFocus:(null===(e=(0,C.M)())||void 0===e?void 0:e.hasFocus())||!1}),i.current=void 0}}),[]),Ve(t,"focus",o.useCallback((function(){a.current=!0}),[]),!0),Ve(t,"blur",o.useCallback((function(e){t.current&&e.relatedTarget&&!t.current.contains(e.relatedTarget)&&(a.current=!1)}),[]),!0)}(r,i);var s=r.role,l=r.className,c=r.ariaLabel,u=r.ariaLabelledBy,d=r.ariaDescribedBy,h=r.style,p=r.children,f=r.onDismiss,g=function(e,t){var n=Ne(),r=o.useState(!1),i=r[0],a=r[1];return o.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 o=t.current.clientHeight,s=t.current.firstElementChild.clientHeight;o>0&&s>o&&(r=s-o>1)}i!==r&&a(r)}})),function(){return n.dispose()}})),i}(r,i),m=o.useCallback((function(e){e.which===Fe&&f&&(f(e),e.preventDefault(),e.stopPropagation())}),[f]);return Ve(Be(),"keydown",m),o.createElement("div",(0,t.pi)({ref:a},X(r,q),{className:l,role:s,"aria-label":c,"aria-labelledby":u,"aria-describedby":d,onKeyDown:m,style:(0,t.pi)({overflowY:g?"scroll":void 0,outline:"none"},h)}),p)}));We.displayName="Popup";var Ye=n(1786);function Ze(e){var t=o.useRef();return void 0===t.current&&(t.current={value:"function"==typeof e?e():e}),t.current.value}var qe,Xe=function(){var e;return(null!==(e=Be())&&void 0!==e?e:"undefined"!=typeof window)?window:void 0},Ue=function(e){var t,n;return(null!==(n=null===(t=null==e?void 0:e.window)||void 0===t?void 0:t.document)&&void 0!==n?n:"undefined"!=typeof document)?document:void 0},je=((qe={})[$.top]=Ye.k4.slideUpIn10,qe[$.bottom]=Ye.k4.slideDownIn10,qe[$.left]=Ye.k4.slideLeftIn10,qe[$.right]=Ye.k4.slideRightIn10,qe),Ge={opacity:0,filter:"opacity(0)",pointerEvents:"none"},Ke=["role","aria-roledescription"],$e={preventDismissOnLostFocus:!1,preventDismissOnScroll:!1,preventDismissOnResize:!1,isBeakVisible:!0,beakWidth:16,gapSpace:0,minPagePadding:8,directionalHint:_.bottomAutoEdge},Je=(0,i.y)({disableCaching:!0});function Qe(e,t,n,r){var i,a=e.calloutMaxHeight,s=e.finalHeight,l=e.directionalHint,c=e.directionalHintFixed,u=e.hidden,d=e.gapSpace,h=e.beakWidth,p=e.isBeakVisible,f=o.useState(),g=f[0],m=f[1],v=null!==(i=null==r?void 0:r.elementPosition)&&void 0!==i?i:{},_=v.top,y=v.bottom,x=(null==n?void 0:n.current)?function(e){var t,n,r,o,i=e,a=e,s=e,l=null!==(t=s.left)&&void 0!==t?t:s.x,c=null!==(n=s.top)&&void 0!==n?n:s.y,u=null!==(r=s.right)&&void 0!==r?r:l,d=null!==(o=s.bottom)&&void 0!==o?o:c;return i.stopPropagation?new re(i.clientX,i.clientX,i.clientY,i.clientY):void 0!==l&&void 0!==c?new re(l,u,c,d):ke(a)}(n.current):void 0;return o.useEffect((function(){var e,n,o=null!==(e=t())&&void 0!==e?e:{},i=o.top,s=o.bottom;(null==r?void 0:r.targetEdge)===$.top&&(null==x?void 0:x.top)&&(s=x.top-function(e,t,n){return we(e,t,n)}(p,h,d)),"number"==typeof _&&s?n=s-_:"number"==typeof y&&"number"==typeof i&&s&&(n=s-i-y),m(!a&&!u||a&&n&&a>n?n:a||void 0)}),[y,a,s,l,c,t,u,r,_,d,h,p,x]),g}function et(e,n,r,i,a,l){var c,u=o.useState(),d=u[0],h=u[1],p=o.useRef(0),f=o.useRef(),g=Ne(),m=e.hidden,v=e.target,_=e.finalHeight,y=e.calloutMaxHeight,x=e.onPositioned,b=e.directionalHint,C=e.hideOverflow,E=e.preferScrollResizePositioning,S=Xe(),A=o.useRef();A.current!==l.current&&(A.current=l.current,c=l.current?null==S?void 0:S.getComputedStyle(l.current):void 0);var L=null==c?void 0:c.overflowY;return o.useEffect((function(){if(!m){var o=g.requestAnimationFrame((function(){var o,l,c,u;if(n.current&&r){var g=(0,t.pi)((0,t.pi)({},e),{target:i.current,bounds:a()}),m=r.cloneNode(!0);m.style.maxHeight=y?"".concat(y):"",m.style.visibility="hidden",null===(o=r.parentElement)||void 0===o||o.appendChild(m);var b=f.current===v?d:void 0,A=E&&!(C||"clip"===L||"hidden"===L),k=_?function(e,t,n,r,o){return function(e,t,n,r,o){return De(e,t,n,r,!1,void 0,!0,null!=o?o:(0,s.J)())}(e,t,n,r,o)}(g,n.current,m,b,S):function(e,t,n,r,o,i,a){return De(e,t,n,r,o,void 0,void 0,a)}(g,n.current,m,b,A,0,S);null===(l=r.parentElement)||void 0===l||l.removeChild(m),!d&&k||d&&k&&(u=k,!rt((c=d).elementPosition,u.elementPosition)||!rt(c.beakPosition.elementPosition,u.beakPosition.elementPosition))&&p.current<5?(p.current++,h(k)):p.current>0&&(p.current=0,null==x||x(d))}}),r);return f.current=v,function(){g.cancelAnimationFrame(o),f.current=void 0}}h(void 0),p.current=0}),[m,b,g,r,y,n,i,_,a,x,d,e,v,C,E,L,S]),d}var tt=o.memo(o.forwardRef((function(e,n){var r=H($e,e),i=r.styles,a=r.style,s=r.ariaLabel,l=r.ariaDescribedBy,c=r.ariaLabelledBy,u=r.className,d=r.isBeakVisible,h=r.children,p=r.beakWidth,f=r.calloutWidth,g=r.calloutMaxWidth,m=r.calloutMinWidth,v=r.doNotLayer,_=r.finalHeight,y=r.hideOverflow,x=void 0===y?!!_:y,E=r.backgroundColor,S=r.calloutMaxHeight,A=r.onScroll,L=r.shouldRestoreFocus,T=void 0===L||L,w=r.target,D=r.hidden,M=r.onLayerMounted,P=r.popupProps,F=o.useRef(null),I=Oe(o.useRef(null),null==P?void 0:P.ref),N=o.useState(null),V=N[0],B=N[1],R=o.useCallback((function(e){B(e)}),[]),z=Oe(F,n),W=function(e,t){var n=o.useRef(),r=o.useRef(null),i=Be();if(!e||e!==n.current||"string"==typeof e){var a=null==t?void 0:t.current;if(e)if("string"==typeof e){var s=(0,C.M)(a);r.current=s?s.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]}(r.target,{current:V}),Y=W[0],Z=W[1],j=function(e,t,n){var r=e.bounds,i=e.minPagePadding,a=void 0===i?$e.minPagePadding:i,s=e.target,l=o.useState(!1),c=l[0],u=l[1],d=o.useRef(),h=o.useCallback((function(){if(!d.current||c){var e="function"==typeof r?n?r(s,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,o=0;if(null!==e&&e.getBoundingClientRect){var i=e.getBoundingClientRect();r=(i.left+i.right)/2,o=(i.top+i.bottom)/2}else null!==e&&(r=e.left||e.x,o=e.top||e.y);for(var a={top:0,left:0,right:0,bottom:0,width:0,height:0},s=0,l=n;s<l.length;s++){var c=l[s];r&&c.left<=r&&c.right>=r&&o&&c.top<=o&&c.bottom>=o&&(a={top:c.top,left:c.left,right:c.right,bottom:c.bottom,width:c.width,height:c.height})}return a}(e,t)}(t.current,n),e={top:e.top+a,left:e.left+a,right:e.right-a,bottom:e.bottom-a,width:e.width-2*a,height:e.height-2*a}),d.current=e,c&&u(!1)}return d.current}),[r,a,s,t,n,c]),p=Ne();return Ve(n,"resize",p.debounce((function(){u(!0)}),500,{leading:!0})),h}(r,Y,Z),G=et(r,F,V,Y,j,I),K=Qe(r,j,Y,G),$=function(e,t,n,r,i){var a=e.hidden,s=e.onDismiss,l=e.preventDismissOnScroll,c=e.preventDismissOnResize,u=e.preventDismissOnLostFocus,d=e.dismissOnTargetClick,h=e.shouldDismissOnWindowFocus,p=e.preventDismissOnEvent,f=o.useRef(!1),g=Ne(),m=Ze([function(){f.current=!0},function(){f.current=!1}]),v=!!t;return o.useEffect((function(){var e=function(e){v&&!l&&m(e)},t=function(e){c||p&&p(e)||null==s||s(e)},o=function(e){u||m(e)},m=function(e){var t=e.composedPath?e.composedPath():[],o=t.length>0?t[0]:e.target,a=n.current&&!b(n.current,o);if(a&&f.current)f.current=!1;else if(!r.current&&a||e.target!==i&&a&&(!r.current||"stopPropagation"in r.current||d||o!==r.current&&!b(r.current,o))){if(p&&p(e))return;null==s||s(e)}},_=function(e){h&&((!p||p(e))&&(p||u)||(null==i?void 0:i.document.hasFocus())||null!==e.relatedTarget||null==s||s(e))},y=new Promise((function(n){g.setTimeout((function(){if(!a&&i){var r=[O(i,"scroll",e,!0),O(i,"resize",t,!0),O(i.document.documentElement,"focus",o,!0),O(i.document.documentElement,"click",o,!0),O(i,"blur",_,!0)];n((function(){r.forEach((function(e){return e()}))}))}}),0)}));return function(){y.then((function(e){return e()}))}}),[a,g,n,r,i,s,h,d,u,c,l,v,p]),m}(r,G,F,Y,Z),J=$[0],Q=$[1],ee=(null==G?void 0:G.elementPosition.top)&&(null==G?void 0:G.elementPosition.bottom),te=(0,t.pi)((0,t.pi)({},null==G?void 0:G.elementPosition),{maxHeight:K});if(ee&&(te.bottom=void 0),function(e,t,n){var r=e.hidden,i=e.setInitialFocus,a=Ne(),s=!!t;o.useEffect((function(){if(!r&&i&&s&&n){var e=a.requestAnimationFrame((function(){return k(n)}),n);return function(){return a.cancelAnimationFrame(e)}}}),[r,s,a,n,i])}(r,G,V),o.useEffect((function(){D||null==M||M()}),[D]),!Z)return null;var ne=x,re=d&&!!w,oe=Je(i,{theme:r.theme,className:u,overflowYHidden:ne,calloutWidth:f,positions:G,beakWidth:p,backgroundColor:E,calloutMaxWidth:g,calloutMinWidth:m,doNotLayer:v}),ie=(0,t.pi)((0,t.pi)({maxHeight:S||"100%"},a),ne&&{overflowY:"hidden"}),ae=r.hidden?{visibility:"hidden"}:void 0;return o.createElement("div",{ref:z,className:oe.container,style:ae},o.createElement("div",(0,t.pi)({},X(r,q,Ke),{className:U(oe.root,G&&G.targetEdge&&je[G.targetEdge]),style:G?(0,t.pi)({},te):Ge,tabIndex:-1,ref:R}),re&&o.createElement("div",{className:oe.beak,style:nt(G)}),re&&o.createElement("div",{className:oe.beakCurtain}),o.createElement(We,(0,t.pi)({role:r.role,"aria-roledescription":r["aria-roledescription"],ariaDescribedBy:l,ariaLabel:s,ariaLabelledBy:c,className:oe.calloutMain,onDismiss:r.onDismiss,onMouseDown:J,onMouseUp:Q,onRestoreFocus:r.onRestoreFocus,onScroll:A,shouldRestoreFocus:T,style:ie},P,{ref:I}),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 nt(e){var n,r,o=(0,t.pi)((0,t.pi)({},null===(n=null==e?void 0:e.beakPosition)||void 0===n?void 0:n.elementPosition),{display:(null===(r=null==e?void 0:e.beakPosition)||void 0===r?void 0:r.hideBeak)?"none":void 0});return o.top||o.bottom||o.left||o.right||(o.left=0,o.top=0),o}function rt(e,t){for(var n in t)if(t.hasOwnProperty(n)){var r=e[n],o=t[n];if(void 0===r||void 0===o)return!1;if(r.toFixed(2)!==o.toFixed(2))return!1}return!0}function ot(e){return{height:e,width:e}}tt.displayName="CalloutContentBase";var it={container:"ms-Callout-container",root:"ms-Callout",beak:"ms-Callout-beak",beakCurtain:"ms-Callout-beakCurtain",calloutMain:"ms-Callout-main"},at=(0,e.z)(tt,(function(e){var t,n=e.theme,r=e.className,o=e.overflowYHidden,i=e.calloutWidth,a=e.beakWidth,s=e.backgroundColor,l=e.calloutMaxWidth,c=e.calloutMinWidth,u=e.doNotLayer,d=(0,Ye.Cn)(it,n),h=n.semanticColors,p=n.effects;return{container:[d.container,{position:"relative"}],root:[d.root,n.fonts.medium,{position:"absolute",display:"flex",zIndex:u?Ye.bR.Layer:void 0,boxSizing:"border-box",borderRadius:p.roundedCorner2,boxShadow:p.elevation16,selectors:(t={},t[Ye.qJ]={borderWidth:1,borderStyle:"solid",borderColor:"WindowText"},t)},(0,Ye.e2)(),r,!!i&&{width:i},!!l&&{maxWidth:l},!!c&&{minWidth:c}],beak:[d.beak,{position:"absolute",backgroundColor:h.menuBackground,boxShadow:"inherit",border:"inherit",boxSizing:"border-box",transform:"rotate(45deg)"},ot(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},o&&{overflowY:"hidden"},s&&{backgroundColor:s}]}}),void 0,{scope:"CalloutContent"}),st=o.createContext(void 0),lt=function(){return function(){}};st.Provider;var ct=ReactDOM,ut=n(156);new WeakMap,new WeakMap;var dt=o.createContext(void 0),ht=function(e){var t=e.providerRef,n=e.layerRoot,r=o.useState([])[0],i=o.useContext(dt),a=void 0!==i&&!n,s=o.useMemo((function(){return a?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,a]);return o.useEffect((function(){if(s)return s.registerProvider(s.providerRef),function(){return s.unregisterProvider(s.providerRef)}}),[s]),s?o.createElement(dt.Provider,{value:s},e.children):o.createElement(o.Fragment,null,e.children)},pt=n(775),ft=n(2049);function gt(e,n){void 0===e&&(e={});var r=mt(n)?n:function(e){return function(n){return e?(0,t.pi)((0,t.pi)({},n),e):n}}(n);return r(e)}function mt(e){return"function"==typeof e}var vt=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t._onCustomizationChange=function(){return t.forceUpdate()},t}return(0,t.ZT)(n,e),n.prototype.componentDidMount=function(){pt.X.observe(this._onCustomizationChange)},n.prototype.componentWillUnmount=function(){pt.X.unobserve(this._onCustomizationChange)},n.prototype.render=function(){var e=this,n=this.props.contextTransform;return o.createElement(ft.i.Consumer,null,(function(r){var i=function(e,n){var r,o,i,a=(n||{}).customizations,s=void 0===a?{settings:{},scopedSettings:{}}:a;return{customizations:{settings:gt(s.settings,e.settings),scopedSettings:(r=s.scopedSettings,o=e.scopedSettings,void 0===r&&(r={}),(mt(o)?o:(void 0===(i=o)&&(i={}),function(e){var n=(0,t.pi)({},e);for(var r in i)i.hasOwnProperty(r)&&(n[r]=(0,t.pi)((0,t.pi)({},e[r]),i[r]));return n}))(r)),inCustomizerContext:!0}}}(e.props,r);return n&&(i=n(i)),o.createElement(ft.i.Provider,{value:i},e.props.children)}))},n}(o.Component),_t=n(685),yt=(0,i.y)(),xt=(0,ut.NF)((function(e,n){return(0,_t.j)((0,t.pi)((0,t.pi)({},e),{rtl:n}))})),bt=o.forwardRef((function(e,n){var r=e.className,i=e.theme,s=e.applyTheme,l=e.applyThemeToBody,c=e.styles,u=yt(c,{theme:i,applyTheme:s,className:r}),d=o.useRef(null);return function(e,t,n){var r=t.bodyThemed;o.useEffect((function(){if(e){var t=(0,C.M)(n.current);if(t)return t.body.classList.add(r),function(){t.body.classList.remove(r)}}}),[r,e,n])}(l,u,d),o.createElement(o.Fragment,null,function(e,n,r,i){var s=n.root,l=e.as,c=void 0===l?"div":l,u=e.dir,d=e.theme,h=X(e,q,["dir"]),p=function(e){var t=e.theme,n=e.dir,r=(0,a.zg)(t)?"rtl":"ltr",o=(0,a.zg)()?"rtl":"ltr",i=n||r;return{rootDir:i!==r||i!==o?i:n,needsTheme:i!==r}}(e),f=p.rootDir,g=p.needsTheme,m=o.createElement(ht,{providerRef:r},o.createElement(c,(0,t.pi)({dir:f},h,{className:s,ref:Oe(r,i)})));return g&&(m=o.createElement(vt,{settings:{theme:xt(d,"rtl"===u)}},m)),m}(e,u,d,n))}));bt.displayName="FabricBase";var Ct,Et={fontFamily:"inherit"},St={root:"ms-Fabric",bodyThemed:"ms-Fabric-bodyThemed"},At=(0,e.z)(bt,(function(e){var t=e.applyTheme,n=e.className,r=e.preventBlanketFontInheritance,o=e.theme;return{root:[(0,Ye.Cn)(St,o).root,o.fonts.medium,{color:o.palette.neutralPrimary},!r&&{"& button":Et,"& input":Et,"& textarea":Et},t&&{color:o.semanticColors.bodyText,backgroundColor:o.semanticColors.bodyBackground},n],bodyThemed:[{backgroundColor:o.semanticColors.bodyBackground}]}}),void 0,{scope:"Fabric"}),Lt=n(9766),kt="data-portal-element",Tt={},wt={},Dt="fluent-default-layer-host",Mt="#".concat(Dt),Pt=n(8873),Ft=(0,Pt.N)()?o.useLayoutEffect:o.useEffect,It=void 0;function Nt(e){It?It(e):console&&console.warn&&console.warn(e)}function Vt(e,t,n,r,o){if(!0===o)for(var i=0,a=n;i<a.length;i++){var s=a[i];s in t||Nt("".concat(e," property '").concat(s,"' is required when '").concat(r,"' is used.'"))}}function Ot(e,t,n){for(var r in n)if(t&&r in t){var o="".concat(e," property '").concat(r,"' was used but has been deprecated."),i=n[r];i&&(o+=" Use '".concat(i,"' instead.")),Nt(o)}}function Ht(e,t){return void 0!==e[t]&&null!==e[t]}function Bt(e){var t=(0,o.useRef)();return(0,o.useEffect)((function(){t.current=e})),t.current}Ct={valueOnChange:{},valueDefaultValue:{},controlledToUncontrolled:{},uncontrolledToControlled:{}};var Rt=0;function zt(e){var n=e.name,r=e.props,i=e.other,a=void 0===i?[]:i,s=e.conditionallyRequired,l=e.deprecations,c=e.mutuallyExclusive,u=e.controlledUsage,d=o.useRef(!1),h=Ze((function(){return"useWarnings_".concat(Rt++)})),p=Bt(r);if(!d.current){d.current=!0;for(var f=0,g=a;f<g.length;f++)Nt(g[f]);if(s)for(var m=0,v=s;m<v.length;m++){var _=v[m];Vt(n,r,_.requiredProps,_.conditionalPropName,_.condition)}l&&Ot(n,r,l),c&&function(e,t,n){for(var r in n)if(t&&void 0!==t[r]){var o=n[r];o&&void 0!==t[o]&&Nt("".concat(e," property '").concat(r,"' is mutually exclusive with '").concat(n[r],"'. ")+"Use one or the other.")}}(n,r,c)}u&&function(e){var t=e.componentId,n=e.componentName,r=e.defaultValueProp,o=e.props,i=e.oldProps,a=e.onChangeProp,s=e.readOnlyProp,l=e.valueProp,c=i?Ht(i,l):void 0,u=Ht(o,l);if(u){var d=!!o[a],h=!(!s||!o[s]);d||h||Ct.valueOnChange[t]||(Ct.valueOnChange[t]=!0,Nt("Warning: You provided a '".concat(String(l),"' prop to a ").concat(String(n)," without an '").concat(String(a),"' handler. ")+"This will render a read-only field. If the field should be mutable use '".concat(String(r),"'. ")+"Otherwise, set '".concat(String(a),"'").concat(s?" or '".concat(String(s),"'"):"","."))),null==o[r]||Ct.valueDefaultValue[t]||(Ct.valueDefaultValue[t]=!0,Nt("Warning: You provided both '".concat(String(l),"' and '").concat(String(r),"' to a ").concat(n,". ")+"Form fields must be either controlled or uncontrolled (specify either the '".concat(String(l),"' prop, ")+"or the '".concat(String(r),"' prop, but not both). Decide between using a controlled or uncontrolled ")+"".concat(n," and remove one of these props. More info: https://fb.me/react-controlled-components")))}if(i&&u!==c){var p=c?"a controlled":"an uncontrolled",f=c?"uncontrolled":"controlled",g=c?Ct.controlledToUncontrolled:Ct.uncontrolledToControlled;g[t]||(g[t]=!0,Nt("Warning: A component is changing ".concat(p," ").concat(n," to be ").concat(f,". ")+"".concat(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"))}}((0,t.pi)((0,t.pi)({},u),{componentId:h,props:r,componentName:n,oldProps:p}))}var Wt,Yt=(0,i.y)(),Zt=o.forwardRef((function(e,n){var r,i=null!==(r=o.useContext(st))&&void 0!==r?r:lt,a=o.useRef(null),s=Oe(a,n),l=o.useRef(),c=o.useRef(null),u=o.useContext(dt),d=o.useState(!1),h=d[0],p=d[1],f=o.useCallback((function(e){var t,n=!!(null==(t=null==u?void 0:u.providerRef)?void 0:t.current)&&t.current.classList.contains(Lt.G$);e&&n&&e.classList.add(Lt.G$)}),[u]),g=e.children,m=e.className,v=e.eventBubblingEnabled,_=e.fabricProps,y=e.hostId,x=e.insertFirst,b=e.onLayerDidMount,E=void 0===b?function(){}:b,S=e.onLayerMounted,A=void 0===S?function(){}:S,L=e.onLayerWillUnmount,k=e.styles,T=e.theme,w=Oe(c,null==_?void 0:_.ref,f),D=Yt(k,{theme:T,className:m,isNotHost:!y}),M=function(){null==L||L();var e=l.current;l.current=void 0,e&&e.parentNode&&e.parentNode.removeChild(e)},P=function(){var e,t=(0,C.M)(a.current);if(t){var n=function(e){var t,n;if(y){var r=function(e){var t=wt[e];return t&&t[0]||void 0}(y);return r?null!==(t=r.rootRef.current)&&void 0!==t?t:null:null!==(n=e.getElementById(y))&&void 0!==n?n:null}var o=Mt,i=o?e.querySelector(o):null;return i||(i=function(e){var t=e.createElement("div");return t.setAttribute("id",Dt),t.style.cssText="position:fixed;z-index:1000000",null==e||e.body.appendChild(t),t}(e)),i}(t);if(n){M();var r=(null!==(e=n.ownerDocument)&&void 0!==e?e:t).createElement("div");r.className=D.root,r.setAttribute(kt,"true"),function(e,t){var n=e,r=t;n._virtual||(n._virtual={children:[]});var o=n._virtual.parent;if(o&&o!==t){var i=o._virtual.children.indexOf(n);i>-1&&o._virtual.children.splice(i,1)}n._virtual.parent=r||void 0,r&&(r._virtual||(r._virtual={children:[]}),r._virtual.children.push(n))}(r,a.current),x?n.insertBefore(r,n.firstChild):n.appendChild(r),l.current=r,p(!0)}}};return Ft((function(){P(),y&&function(e,t){Tt[e]||(Tt[e]=[]),Tt[e].push(t);var n=wt[e];if(n)for(var r=0,o=n;r<o.length;r++)o[r].notifyLayersChanged()}(y,P);var e=l.current?i(l.current):void 0;return function(){e&&e(),M(),y&&function(e,t){var n=Tt[e];if(n){var r=n.indexOf(t);r>=0&&(n.splice(r,1),0===n.length&&delete Tt[e])}var o=wt[e];if(o)for(var i=0,a=o;i<a.length;i++)a[i].notifyLayersChanged()}(y,P)}}),[y]),o.useEffect((function(){l.current&&h&&(null==A||A(),null==E||E(),p(!1))}),[h,A,E]),function(e){zt({name:"Layer",props:e,deprecations:{onLayerMounted:"onLayerDidMount"}})}(e),o.createElement("span",{className:"ms-layer",ref:s},l.current&&ct.createPortal(o.createElement(ht,{layerRoot:!0,providerRef:w},o.createElement(At,(0,t.pi)({},!v&&(Wt||(Wt={},["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 Wt[e]=qt}))),Wt),_,{className:U(D.content,null==_?void 0:_.className),ref:w}),g)),l.current))}));Zt.displayName="LayerBase";var qt=function(e){e.eventPhase===Event.BUBBLING_PHASE&&"mouseenter"!==e.type&&"mouseleave"!==e.type&&"touchstart"!==e.type&&"touchend"!==e.type&&e.stopPropagation()},Xt={root:"ms-Layer",rootNoHost:"ms-Layer--fixed",content:"ms-Layer-content"},Ut=(0,e.z)(Zt,(function(e){var t=e.className,n=e.isNotHost,r=e.theme,o=(0,Ye.Cn)(Xt,r);return{root:[o.root,r.fonts.medium,n&&[o.rootNoHost,{position:"fixed",zIndex:Ye.bR.Layer,top:0,left:0,bottom:0,right:0,visibility:"hidden"}],t],content:[o.content,{visibility:"visible"}]}}),void 0,{scope:"Layer",fields:["hostId","theme","styles"]}),jt=o.forwardRef((function(e,n){var r=e.layerProps,i=e.doNotLayer,a=(0,t._T)(e,["layerProps","doNotLayer"]),s=o.createElement(at,(0,t.pi)({},a,{doNotLayer:i,ref:n}));return i?s:o.createElement(Ut,(0,t.pi)({},r),s)}));jt.displayName="Callout";var Gt,Kt=n(3813),$t=n(8024);function Jt(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 Qt(e){!function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=Jt(e,e[n],t[n]))}(e,{componentDidMount:en,componentDidUpdate:tn,componentWillUnmount:nn})}function en(){rn(this.props.componentRef,this)}function tn(e){e.componentRef!==this.props.componentRef&&(rn(e.componentRef,null),rn(this.props.componentRef,this))}function nn(){rn(this.props.componentRef,null)}function rn(e,t){e&&("object"==typeof e?e.current=t:"function"==typeof e&&e(t))}function on(e,t,n){var r=x(e,(function(e){return t===e||e.hasAttribute(kt)}),n);return null!==r&&r.hasAttribute(kt)}!function(e){e[e.vertical=0]="vertical",e[e.horizontal=1]="horizontal",e[e.bidirectional=2]="bidirectional",e[e.domOrder=3]="domOrder"}(Gt||(Gt={}));var an,sn="data-is-focusable",ln="data-focuszone-id",cn="tabindex",un="data-no-vertical-wrap",dn="data-no-horizontal-wrap",hn=999999999,pn=-999999999;function fn(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 gn,mn={},vn=new Set,_n=["text","number","password","email","tel","url","search","textarea"],yn=!1,xn=function(e){function n(t){var r,i,s,l,c,u=this;(u=e.call(this,t)||this)._root=o.createRef(),u._mergedRef=(c={refs:[]},function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return c.resolver&&function(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}(c.refs,e)||(c.resolver=function(e){return function(t){for(var n=0,r=e.refs;n<r.length;n++){var o=r[n];"function"==typeof o?o(t):o&&(o.current=t)}}}(c)),c.refs=e,c.resolver}),u._onFocus=function(e){if(!u._portalContainsElement(e.target)){var t,n=u.props,r=n.onActiveElementChanged,o=n.doNotAllowFocusEventToPropagate,i=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(P(h)&&u._isImmediateDescendantOfZone(h)){t=h;break}h=y(h,yn)}if(l&&e.target===u._root.current){var p=c&&"function"==typeof c&&u._root.current&&c(u._root.current);p&&P(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),(i||o)&&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=y(t,yn);for(;n.length&&((t=n.pop())&&P(t)&&u._setActiveElement(t,!0),!F(t)););}},u._onKeyDown=function(e,t){if(!u._portalContainsElement(e.target)){var n=u.props,r=n.direction,o=n.disabled,i=n.isInnerZoneKeystroke,s=n.pagingSupportDisabled,l=n.shouldEnterInnerZone;if(!(o||(u.props.onKeyDown&&u.props.onKeyDown(e),e.isDefaultPrevented()||u._getDocument().activeElement===u._root.current&&u._isInnerZone))){if((l&&l(e)||i&&i(e))&&u._isImmediateDescendantOfZone(e.target)){var c=u._getFirstInnerZone();if(c){if(!c.focus(!0))return}else{if(!I(e.target))return;if(!u.focusElement(w(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!==Gt.vertical&&(u._preventDefaultWhenHandled(e),u._moveFocusLeft(t)))break;return;case 39:if(r!==Gt.vertical&&(u._preventDefaultWhenHandled(e),u._moveFocusRight(t)))break;return;case 38:if(r!==Gt.horizontal&&(u._preventDefaultWhenHandled(e),u._moveFocusUp()))break;return;case 40:if(r!==Gt.horizontal&&(u._preventDefaultWhenHandled(e),u._moveFocusDown()))break;return;case 34:if(!s&&u._moveFocusPaging(!0))break;return;case 33:if(!s&&u._moveFocusPaging(!1))break;return;case 9:if(u.props.allowTabKey||1===u.props.handleTabKey||2===u.props.handleTabKey&&u._isElementInput(e.target)){var d=!1;if(u._processingTabKey=!0,d=r!==Gt.vertical&&u._shouldWrapFocus(u._activeElement,dn)?((0,a.zg)(t)?!e.shiftKey:e.shiftKey)?u._moveFocusLeft(t):u._moveFocusRight(t):e.shiftKey?u._moveFocusUp():u._moveFocusDown(),u._processingTabKey=!1,d)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 h=u._root.current&&u._root.current.firstChild;if(u._root.current&&h&&u.focusElement(w(u._root.current,h,!0)))break;return;case 35:if(u._isContentEditableElement(e.target)||u._isElementInput(e.target)&&!u._shouldInputLoseFocus(e.target,!0))return!1;var p=u._root.current&&u._root.current.lastChild;if(u._root.current&&u.focusElement(T(u._root.current,p,!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,o=Math.floor(n.top),i=Math.floor(t.bottom),a=Math.floor(n.bottom),s=Math.floor(t.top);return e&&o>i||!e&&a<s?r>=n.left&&r<=n.left+n.width?0:Math.abs(n.left+n.width/2-r):u._shouldWrapFocus(u._activeElement,un)?hn:pn},Qt(u),Ot("FocusZone",t,{rootProps:void 0,allowTabKey:"handleTabKey",elementType:"as",ariaDescribedBy:"aria-describedby",ariaLabelledBy:"aria-labelledby"}),u._id=f("FocusZone"),u._focusAlignment={left:0,top:0},u._processingTabKey=!1;var d=null===(i=null!==(r=t.shouldRaiseClicks)&&void 0!==r?r:n.defaultProps.shouldRaiseClicks)||void 0===i||i;return u._shouldRaiseClicksOnEnter=null!==(s=t.shouldRaiseClicksOnEnter)&&void 0!==s?s:d,u._shouldRaiseClicksOnSpace=null!==(l=t.shouldRaiseClicksOnSpace)&&void 0!==l?l:d,u}return(0,t.ZT)(n,e),n.getOuterZones=function(){return vn.size},n._onKeyDownCapture=function(e){9===e.which&&vn.forEach((function(e){return e._updateTabIndexes()}))},n.prototype.componentDidMount=function(){var e=this._root.current;if(mn[this._id]=this,e){for(var t=y(e,yn);t&&t!==this._getDocument().body&&1===t.nodeType;){if(F(t)){this._isInnerZone=!0;break}t=y(t,yn)}this._isInnerZone||(vn.add(this),this._root.current&&this._root.current.addEventListener("keydown",n._onKeyDownCapture,!0)),this._root.current&&this._root.current.addEventListener("blur",this._onBlur,!0),this._updateTabIndexes(),this.props.defaultTabbableElement&&"string"==typeof this.props.defaultTabbableElement?this._activeElement=this._getDocument().querySelector(this.props.defaultTabbableElement):this.props.defaultActiveElement&&(this._activeElement=this._getDocument().querySelector(this.props.defaultActiveElement)),this.props.shouldFocusOnMount&&this.focus()}},n.prototype.componentDidUpdate=function(){var e=this._root.current,t=this._getDocument();if((this._activeElement&&!b(this._root.current,this._activeElement,yn)||this._defaultFocusElement&&!b(this._root.current,this._defaultFocusElement,yn))&&(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,o=t;r<o.length;r++){var i=o[r],a=n.children[Math.min(i,n.children.length-1)];if(!a)break;n=a}return P(n)&&D(n)?n:w(e,n,!0)||T(e,n)}(e,this._lastIndexPath);n?(this._setActiveElement(n,!0),n.focus(),this._setParkedFocus(!1)):this._setParkedFocus(!0)}},n.prototype.componentWillUnmount=function(){delete mn[this._id],this._isInnerZone||(vn.delete(this),this._root.current&&this._root.current.removeEventListener("keydown",n._onKeyDownCapture,!0)),this._root.current&&this._root.current.removeEventListener("blur",this._onBlur,!0),this._activeElement=null,this._defaultFocusElement=null},n.prototype.render=function(){var e=this,n=this.props,r=n.as,i=n.elementType,a=n.rootProps,s=n.ariaDescribedBy,l=n.ariaLabelledBy,c=n.className,u=X(this.props,W),d=r||i||"div";this._evaluateFocusBeforeRender();var h=(0,Ye.gh)();return o.createElement(d,(0,t.pi)({"aria-labelledby":l,"aria-describedby":s},u,a,{className:U((an||(an=(0,Q.y)({selectors:{":focus":{outline:"none"}}},"ms-FocusZone")),an),c),ref:this._mergedRef(this.props.elementRef,this._root),"data-focuszone-id":this._id,onKeyDown:function(t){return e._onKeyDown(t,h)},onFocus:this._onFocus,onMouseDownCapture:this._onMouseDown}),this.props.children)},n.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(sn)&&this._isInnerZone){var n=this._getOwnerZone(this._root.current);if(n!==this._root.current){var r=mn[n.getAttribute(ln)];return!!r&&r.focusElement(this._root.current)}return!1}if(!e&&this._activeElement&&b(this._root.current,this._activeElement)&&P(this._activeElement)&&(!t||M(this._activeElement)))return this._activeElement.focus(),!0;var o=this._root.current.firstChild;return this.focusElement(w(this._root.current,o,!0,void 0,void 0,void 0,void 0,void 0,t))}return!1},n.prototype.focusLast=function(){if(this._root.current){var e=this._root.current&&this._root.current.lastChild;return this.focusElement(T(this._root.current,e,!0,!0,!0))}return!1},n.prototype.focusElement=function(e,t){var n=this.props,r=n.onBeforeFocus,o=n.shouldReceiveFocus;return!(o&&!o(e)||r&&!r(e)||!e||(this._setActiveElement(e,t),this._activeElement&&this._activeElement.focus(),0))},n.prototype.setFocusAlignment=function(e){this._focusAlignment=e},Object.defineProperty(n.prototype,"defaultFocusElement",{get:function(){return this._defaultFocusElement},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"activeElement",{get:function(){return this._activeElement},enumerable:!1,configurable:!0}),n.prototype._evaluateFocusBeforeRender=function(){var e=this._root.current,t=this._getDocument();if(t){var n=t.activeElement;if(n!==e){var r=b(e,n,!1);this._lastIndexPath=r?function(e,t){for(var n=[];t&&e&&t!==e;){var r=y(t,!0);if(null===r)return[];n.unshift(Array.prototype.indexOf.call(r.children,t)),t=r}return n}(e,n):void 0}}},n.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")))},n.prototype._setActiveElement=function(e,t){var n=this._activeElement;this._activeElement=e,n&&(F(n)&&this._updateTabIndexes(n),n.tabIndex=-1),this._activeElement&&(this._focusAlignment&&!t||this._setFocusAlignment(e,!0,!0),this._activeElement.tabIndex=0)},n.prototype._preventDefaultWhenHandled=function(e){this.props.preventDefaultWhenHandled&&e.preventDefault()},n.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(sn)&&"true"!==n.getAttribute("data-disable-click-on-enter"))return fn(n,t),!0;n=y(n,yn)}while(n!==this._root.current);return!1},n.prototype._getFirstInnerZone=function(e){if(!(e=e||this._activeElement||this._root.current))return null;if(F(e))return mn[e.getAttribute(ln)];for(var t=e.firstElementChild;t;){if(F(t))return mn[t.getAttribute(ln)];var n=this._getFirstInnerZone(t);if(n)return n;t=t.nextElementSibling}return null},n.prototype._moveFocus=function(e,t,n,r){void 0===r&&(r=!0);var o=this._activeElement,i=-1,a=void 0,s=!1,l=this.props.direction===Gt.bidirectional;if(!o||!this._root.current)return!1;if(this._isElementInput(o)&&!this._shouldInputLoseFocus(o,e))return!1;var c=l?o.getBoundingClientRect():null;do{if(o=e?w(this._root.current,o):T(this._root.current,o),!l){a=o;break}if(o){var u=t(c,o.getBoundingClientRect());if(-1===u&&-1===i){a=o;break}if(u>-1&&(-1===i||u<i)&&(i=u,a=o),i>=0&&u<0)break}}while(o);if(a&&a!==this._activeElement)s=!0,this.focusElement(a);else if(this.props.isCircularNavigation&&r)return e?this.focusElement(w(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement(T(this._root.current,this._root.current.lastElementChild,!0,!0,!0));return s},n.prototype._moveFocusDown=function(){var e=this,t=-1,n=this._focusAlignment.left||this._focusAlignment.x||0;return!!this._moveFocus(!0,(function(r,o){var i=-1,a=Math.floor(o.top),s=Math.floor(r.bottom);return a<s?e._shouldWrapFocus(e._activeElement,un)?hn:pn:((-1===t&&a>=s||a===t)&&(t=a,i=n>=o.left&&n<=o.left+o.width?0:Math.abs(o.left+o.width/2-n)),i)}))&&(this._setFocusAlignment(this._activeElement,!1,!0),!0)},n.prototype._moveFocusUp=function(){var e=this,t=-1,n=this._focusAlignment.left||this._focusAlignment.x||0;return!!this._moveFocus(!1,(function(r,o){var i=-1,a=Math.floor(o.bottom),s=Math.floor(o.top),l=Math.floor(r.top);return a>l?e._shouldWrapFocus(e._activeElement,un)?hn:pn:((-1===t&&a<=l||s===t)&&(t=s,i=n>=o.left&&n<=o.left+o.width?0:Math.abs(o.left+o.width/2-n)),i)}))&&(this._setFocusAlignment(this._activeElement,!1,!0),!0)},n.prototype._moveFocusLeft=function(e){var t=this,n=this._shouldWrapFocus(this._activeElement,dn);return!!this._moveFocus((0,a.zg)(e),(function(r,o){var i=-1;return((0,a.zg)(e)?parseFloat(o.top.toFixed(3))<parseFloat(r.bottom.toFixed(3)):parseFloat(o.bottom.toFixed(3))>parseFloat(r.top.toFixed(3)))&&o.right<=r.right&&t.props.direction!==Gt.vertical?i=r.right-o.right:n||(i=pn),i}),void 0,n)&&(this._setFocusAlignment(this._activeElement,!0,!1),!0)},n.prototype._moveFocusRight=function(e){var t=this,n=this._shouldWrapFocus(this._activeElement,dn);return!!this._moveFocus(!(0,a.zg)(e),(function(r,o){var i=-1;return((0,a.zg)(e)?parseFloat(o.bottom.toFixed(3))>parseFloat(r.top.toFixed(3)):parseFloat(o.top.toFixed(3))<parseFloat(r.bottom.toFixed(3)))&&o.left>=r.left&&t.props.direction!==Gt.vertical?i=o.left-r.left:n||(i=pn),i}),void 0,n)&&(this._setFocusAlignment(this._activeElement,!0,!1),!0)},n.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=te(n);if(!r)return!1;var o=-1,i=void 0,a=-1,s=-1,l=r.clientHeight,c=n.getBoundingClientRect();do{if(n=e?w(this._root.current,n):T(this._root.current,n)){var u=n.getBoundingClientRect(),d=Math.floor(u.top),h=Math.floor(c.bottom),p=Math.floor(u.bottom),f=Math.floor(c.top),g=this._getHorizontalDistanceFromCenter(e,c,u);if(e&&d>h+l||!e&&p<f-l)break;g>-1&&(e&&d>a?(a=d,o=g,i=n):!e&&p<s?(s=p,o=g,i=n):(-1===o||g<=o)&&(o=g,i=n))}}while(n);var m=!1;if(i&&i!==this._activeElement)m=!0,this.focusElement(i),this._setFocusAlignment(i,!1,!0);else if(this.props.isCircularNavigation&&t)return e?this.focusElement(w(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement(T(this._root.current,this._root.current.lastElementChild,!0,!0,!0));return m},n.prototype._setFocusAlignment=function(e,t,n){if(this.props.direction===Gt.bidirectional&&(!this._focusAlignment||t||n)){var r=e.getBoundingClientRect(),o=r.left+r.width/2,i=r.top+r.height/2;this._focusAlignment||(this._focusAlignment={left:o,top:i}),t&&(this._focusAlignment.left=o),n&&(this._focusAlignment.top=i)}},n.prototype._isImmediateDescendantOfZone=function(e){return this._getOwnerZone(e)===this._root.current},n.prototype._getOwnerZone=function(e){for(var t=y(e,yn);t&&t!==this._root.current&&t!==this._getDocument().body;){if(F(t))return t;t=y(t,yn)}return t},n.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&&!b(e,this._activeElement)&&(this._activeElement=null)),this._activeElement&&!P(this._activeElement)&&(this._activeElement=null);for(var t=e&&e.children,n=0;t&&n<t.length;n++){var r=t[n];F(r)?"true"===r.getAttribute(sn)&&(this._isInnerZone||(this._activeElement||this._defaultFocusElement)&&this._activeElement!==r?"-1"!==r.getAttribute(cn)&&r.setAttribute(cn,"-1"):(this._defaultFocusElement=r,"0"!==r.getAttribute(cn)&&r.setAttribute(cn,"0"))):(r.getAttribute&&"false"===r.getAttribute(sn)&&r.setAttribute(cn,"-1"),P(r)?this.props.disabled?r.setAttribute(cn,"-1"):this._isInnerZone||(this._activeElement||this._defaultFocusElement)&&this._activeElement!==r?"-1"!==r.getAttribute(cn)&&r.setAttribute(cn,"-1"):(this._defaultFocusElement=r,"0"!==r.getAttribute(cn)&&r.setAttribute(cn,"0")):"svg"===r.tagName&&"false"!==r.getAttribute("focusable")&&r.setAttribute("focusable","false")),this._updateTabIndexes(r)}},n.prototype._isContentEditableElement=function(e){return e&&"true"===e.getAttribute("contenteditable")},n.prototype._isElementInput=function(e){return!(!e||!e.tagName||"input"!==e.tagName.toLowerCase()&&"textarea"!==e.tagName.toLowerCase())},n.prototype._shouldInputLoseFocus=function(e,t){if(!this._processingTabKey&&e&&e.type&&_n.indexOf(e.type.toLowerCase())>-1){var n=e.selectionStart,r=n!==e.selectionEnd,o=e.value,i=e.readOnly;if(r||n>0&&!t&&!i||n!==o.length&&t&&!i||this.props.handleTabKey&&(!this.props.shouldInputLoseFocusOnArrowKey||!this.props.shouldInputLoseFocusOnArrowKey(e)))return!1}return!0},n.prototype._shouldWrapFocus=function(e,t){return!this.props.checkForNoWrap||function(e,t,n){return"true"!==function(e,t,n){var r=x(e,(function(e){return e.hasAttribute(t)}),n);return r&&r.getAttribute(t)}(e,t,null!=n?n:(0,C.M)())}(e,t)},n.prototype._portalContainsElement=function(e){return e&&!!this._root.current&&on(e,this._root.current)},n.prototype._getDocument=function(){return(0,C.M)(this._root.current)},n.defaultProps={isCircularNavigation:!1,direction:Gt.bidirectional,shouldRaiseClicks:!0,"data-tabster":'{"uncontrolled": {}}'},n}(o.Component);function bn(e){return function(e){return e.clientWidth<e.scrollWidth}(e)||function(e){return e.clientHeight<e.scrollHeight}(e)}!function(e){e[e.Parent=0]="Parent",e[e.Self=1]="Self"}(gn||(gn={}));var Cn,En=(0,i.y)(),Sn=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t._onRenderContent=function(e){return"string"==typeof e.content?o.createElement("p",{className:t._classNames.subText},e.content):o.createElement("div",{className:t._classNames.subText},e.content)},t}return(0,t.ZT)(n,e),n.prototype.render=function(){var e=this.props,n=e.className,r=e.calloutProps,i=e.directionalHint,a=e.directionalHintForRTL,s=e.styles,l=e.id,c=e.maxWidth,u=e.onRenderContent,d=void 0===u?this._onRenderContent:u,h=e.targetElement,p=e.theme;return this._classNames=En(s,{theme:p,className:n||r&&r.className,beakWidth:r&&r.isBeakVisible?r.beakWidth:0,gapSpace:r&&r.gapSpace,maxWidth:c}),o.createElement(jt,(0,t.pi)({target:h,directionalHint:i,directionalHintForRTL:a},r,X(this.props,q,["id"]),{className:this._classNames.root}),o.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)))},n.defaultProps={directionalHint:_.topCenter,maxWidth:"364px",calloutProps:{isBeakVisible:!0,beakWidth:16,gapSpace:0,setInitialFocus:!0,doNotLayer:!1}},n}(o.Component),An=(0,e.z)(Sn,(function(e){var t=e.className,n=e.beakWidth,r=void 0===n?16:n,o=e.gapSpace,i=void 0===o?0:o,a=e.maxWidth,s=e.theme,l=s.semanticColors,c=s.fonts,u=s.effects,d=-(Math.sqrt(r*r/2)+i)+1/window.devicePixelRatio;return{root:["ms-Tooltip",s.fonts.medium,Ye.k4.fadeIn200,{background:l.menuBackground,boxShadow:u.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",c.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"}(Cn||(Cn={}));var Ln,kn,Tn=(0,i.y)(),wn=function(e){function n(t){var r=e.call(this,t)||this;return r._tooltipHost=o.createRef(),r._defaultTooltipId=f("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 gn.Parent:return r._tooltipHost.current.parentElement;case gn.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){n._currentVisibleTooltip&&n._currentVisibleTooltip!==r&&n._currentVisibleTooltip.dismiss(),n._currentVisibleTooltip=r,r._clearDismissTimer(),r._clearOpenTimer()},r._onTooltipBlur=function(e){var t;r._ignoreNextFocusEvent=(null===(t=Ue(r.context))||void 0===t?void 0:t.activeElement)===e.target,r._dismissTimerId=r._async.setTimeout((function(){r._hideTooltip()}),0)},r._onTooltipMouseEnter=function(e){var t=r.props,o=t.overflowMode,i=t.delay,a=Ue(r.context);if(n._currentVisibleTooltip&&n._currentVisibleTooltip!==r&&n._currentVisibleTooltip.dismiss(),n._currentVisibleTooltip=r,void 0!==o){var s=r._getTargetElement();if(s&&!bn(s))return}if(!e.target||!on(e.target,r._getTargetElement(),a))if(r._clearDismissTimer(),r._clearOpenTimer(),i!==Cn.zero){var l=r._getDelayTime(i);r._openTimerId=r._async.setTimeout((function(){r._toggleTooltip(!0)}),l)}else r._toggleTooltip(!0)},r._onTooltipMouseLeave=function(e){var t=r.props.closeDelay;r._clearDismissTimer(),r._clearOpenTimer(),t?r._dismissTimerId=r._async.setTimeout((function(){r._toggleTooltip(!1)}),t):r._toggleTooltip(!1),n._currentVisibleTooltip===r&&(n._currentVisibleTooltip=void 0)},r._onTooltipKeyDown=function(e){(e.which===Fe||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 Cn.medium:return 300;case Cn.long:return 500;default:return 0}},Qt(r),r.state={isAriaPlaceholderRendered:!1,isTooltipVisible:!1},r._async=new Ie(r),r}return(0,t.ZT)(n,e),n.prototype.render=function(){var e=this.props,n=e.calloutProps,r=e.children,i=e.content,a=e.directionalHint,s=e.directionalHintForRTL,l=e.hostClassName,c=e.id,u=e.setAriaDescribedBy,d=void 0===u||u,h=e.tooltipProps,p=e.styles,f=e.theme;this._classNames=Tn(p,{theme:f,className:l});var g=this.state.isTooltipVisible,m=c||this._defaultTooltipId,v=(0,t.pi)((0,t.pi)({id:"".concat(m,"--tooltip"),content:i,targetElement:this._getTargetElement(),directionalHint:a,directionalHintForRTL:s,calloutProps:j({},n,{onDismiss:this._hideTooltip,onFocus:this._onTooltipContentFocus,onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave}),onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave},X(this.props,q,["id"])),h),_=(null==h?void 0:h.onRenderContent)?h.onRenderContent(v,(function(e){return(null==e?void 0:e.content)?o.createElement(o.Fragment,null,e.content):null})):i,y=g&&!!_,x=d&&g&&_?m:void 0;return o.createElement("div",(0,t.pi)({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}),r,y&&o.createElement(An,(0,t.pi)({},v)),o.createElement("div",{hidden:!0,id:m,style:Ye.ul},_))},n.prototype.componentWillUnmount=function(){n._currentVisibleTooltip&&n._currentVisibleTooltip===this&&(n._currentVisibleTooltip=void 0),this._async.dispose()},n.defaultProps={delay:Cn.medium},n.contextType=He,n}(o.Component),Dn={root:"ms-TooltipHost",ariaPlaceholder:"ms-TooltipHost-aria-placeholder"},Mn=(0,e.z)(wn,(function(e){var t=e.className,n=e.theme;return{root:[(0,Ye.Cn)(Dn,n).root,{display:"inline"},t]}}),void 0,{scope:"TooltipHost"}),Pn=function(e){function n(t){var n=e.call(this,t)||this;return n._tooltipChild=o.createRef(),n._checkTextOverflow=function(){var e=n._getTargetElement(),t=!!e&&bn(e);t!==n.state.textOverflow&&n.setState({textOverflow:t})},n._getTargetElement=function(){if(n._tooltipChild.current&&n._tooltipChild.current.parentElement)return n._tooltipChild.current.parentElement},n.state={textOverflow:!1},n._async=new Ie(n),n}return(0,t.ZT)(n,e),n.prototype.render=function(){var e=this.props,n=e.className,r=e.content,i=e.accessibilityData;return o.createElement(Mn,{overflowMode:gn.Self,hostClassName:n,content:r},o.createElement("span",(0,t.pi)({},(0,Kt.ey)(i),{ref:this._tooltipChild,"data-is-focusable":this.state.textOverflow}),r))},n.prototype.componentDidMount=function(){var e=this._getTargetElement();window.ResizeObserver&&e&&(this._resizeObserver=new ResizeObserver(this._async.debounce(this._checkTextOverflow,500)),this._resizeObserver.observe(e))},n.prototype.componentWillUnmount=function(){var e;null===(e=this._resizeObserver)||void 0===e||e.disconnect(),this._async.dispose()},n}(o.Component),Fn=(0,i.y)(),In=function(e){function n(t){var n=e.call(this,t)||this;return n._isRTL=(0,a.zg)(),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=Fn(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?o.createElement("div",{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?"".concat(e.horizontalBarChartdata.x,"/").concat(e.horizontalBarChartdata.y):0);return(null===(t=e.callOutAccessibilityData)||void 0===t?void 0:t.ariaLabel)||(n?"".concat(n,", "):"")+"".concat(r,".")},n.state={isCalloutVisible:!1,hoverValue:"",lineColor:"",legend:"",refSelected:null,color:"",xCalloutValue:"",yCalloutValue:"",barSpacingInPercent:0},n._refArray=[],n._uniqLineText="_HorizontalLine_"+Math.random().toString(36).substring(7),n._hoverOff=n._hoverOff.bind(n),n._calloutId=f("callout"),n._emptyChartId=f("_HBC_empty"),n.barChartSvgRef=o.createRef(),n}return(0,t.ZT)(n,e),n.prototype.componentDidMount=function(){var e,t=(null===(e=this.barChartSvgRef.current)||void 0===e?void 0:e.getBoundingClientRect().width)||0;if(t){var n=3/t*100;this.setState({barSpacingInPercent:n})}},n.prototype.render=function(){var e=this,n=this.props,r=n.data,i=n.theme;this._adjustProps();var a=i.palette,s=0;return this._isChartEmpty()?o.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):o.createElement("div",{className:this._classNames.root,onMouseLeave:this._handleChartMouseLeave},r.map((function(t,n){s=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-s,y:t.chartData[0].horizontalBarChartdata.y},color:a.neutralLight};var r=e.props.variant===h.AbsoluteScale?null:e._getChartDataText(t),i=e._createBars(t,a),l=e._uniqLineText+"_"+n,c=Fn(e.props.styles,{theme:e.props.theme,width:e.props.width,showTriangle:!!t.chartData[0].data,variant:e.props.variant});return o.createElement("div",{key:n},o.createElement("div",{className:c.items},o.createElement(xn,{direction:Gt.horizontal},o.createElement("div",{className:e._classNames.chartTitle},t.chartTitle&&o.createElement(Pn,{className:e._classNames.chartTitleLeft,content:t.chartTitle,accessibilityData:t.chartTitleAccessibilityData}),r)),t.chartData[0].data&&e._createBenchmark(t),o.createElement(xn,{direction:Gt.horizontal,className:e._classNames.chartWrapper},o.createElement("svg",{ref:e.barChartSvgRef,className:e._classNames.chart,"aria-label":t.chartTitle},o.createElement("g",{id:l,key:l,ref:function(n){e._refCallback(n,t.chartData[0].legend)},onClick:function(){var e=t.chartData[0];e&&e.onClick&&e.onClick()}},i)))))})),o.createElement(jt,(0,t.pi)({target:this.state.refSelected,coverTarget:!0,isBeakVisible:!1,gapSpace:30,hidden:!(!this.props.hideTooltip&&this.state.isCalloutVisible),directionalHint:_.topAutoEdge,id:this._calloutId,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0},this.props.calloutProps,(0,Kt.ey)(this.state.callOutAccessibilityData)),o.createElement(o.Fragment,null,this.props.onRenderCalloutPerHorizontalBar?this.props.onRenderCalloutPerHorizontalBar(this.state.barCalloutProps):o.createElement($t.ChartHoverCard,{Legend:this.state.xCalloutValue?this.state.xCalloutValue:this.state.legend,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.hoverValue,color:this.state.lineColor,culture:this.props.culture}))))},n.prototype._refCallback=function(e,t){this._refArray.push({index:t,refElement:e})},n.prototype._hoverOn=function(e,t){if((!this.state.isCalloutVisible||this.state.legend!==t.legend)&&this._calloutAnchorPoint!==t){var n=v(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})}},n.prototype._hoverOff=function(){},n.prototype._getDefaultTextData=function(e){var n=this.props.culture,r=this.props.chartDataMode||"default",i=e.chartData[0],a=i.horizontalBarChartdata.x,s=i.horizontalBarChartdata.y,l=(0,Kt.ey)(e.chartDataAccessibilityData,"text",!1);switch(r){case"default":return o.createElement("div",(0,t.pi)({className:this._classNames.chartTitleRight},l),(0,Kt.Ts)(a,n));case"fraction":return o.createElement("div",(0,t.pi)({},l),o.createElement("span",{className:this._classNames.chartTitleRight},(0,Kt.Ts)(a,n)),o.createElement("span",{className:this._classNames.chartDataTextDenominator}," / "+(0,Kt.Ts)(s,n)));case"percentage":var c="".concat((0,Kt.Ts)(Math.round(a/s*100),n),"%");return o.createElement("div",(0,t.pi)({className:this._classNames.chartTitleRight},l),c)}},n.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 o.createElement("div",{className:this._classNames.benchmarkContainer},o.createElement("div",{className:this._classNames.triangle,style:r}))},n.prototype._createBars=function(e,t){var n,r=this,i=(null===(n=e.chartData)||void 0===n?void 0:n.reduce((function(e,t){return e+((t.data||0)>0?1:0)}),0))||1,a=this.state.barSpacingInPercent*(i-1),s=[t.blueLight,t.blue,t.blueMid,t.red,t.black],l=[],c=e.chartData.reduce((function(e,t){return e+(t.horizontalBarChartdata.x?t.horizontalBarChartdata.x:0)}),0),u=0,d=0,p=0;e.chartData.map((function(e,t){var n=e.horizontalBarChartdata.x?e.horizontalBarChartdata.x:0;return(d=n/c*100)<0?d=0:d<1&&0!==d&&(d=1),p+=d}));var f=0!==p?(p-a)/100:1,g=e.chartData.map((function(t,n){var i=t.color?t.color:s[Math.floor(4*Math.random()+1)],a=t.horizontalBarChartdata.x?t.horizontalBarChartdata.x:0;n>0&&(u+=d),(d=a/c*100)<0?d=0:d<1&&0!==d?d=1/f:d/=f,l.push(u);var p=t.horizontalBarChartdata.x;if(1===n&&r.props.variant===h.AbsoluteScale){if(r.props.hideLabels)return o.createElement("text",{key:n});var g=e.chartData[0].horizontalBarChartdata.x;return o.createElement("text",{key:n,x:"".concat(r._isRTL?100-l[n]:l[n],"%"),y:r._barHeight/2,dominantBaseline:"central",transform:"translate(".concat(r._isRTL?-4:4,")"),className:r._classNames.barLabel,"aria-hidden":!0},(0,Kt.cE)(g))}return o.createElement("rect",{key:n,x:"".concat(r._isRTL?100-l[n]-d-n*r.state.barSpacingInPercent:l[n]+n*r.state.barSpacingInPercent,"%"),y:0,"data-is-focusable":""!==t.legend,width:d+"%",height:r._barHeight,fill:i,onMouseOver:""!==t.legend?r._hoverOn.bind(r,p,t):void 0,onFocus:""!==t.legend?r._hoverOn.bind(r,p,t):void 0,role:"img","aria-label":r._getAriaLabel(t),onBlur:r._hoverOff,onMouseLeave:r._hoverOff,className:r._classNames.barWrapper})}));return g},n.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.length>0)},n}(o.Component),Nn=(0,e.z)(In,(function(e){var n=e.className,r=e.theme,o=e.width,i=e.barHeight,a=e.showTriangle,s=e.variant,l=e.hideLabels,c=r.palette;return{root:[{display:"flex",flexDirection:"column",width:o||"100%"},n],items:{marginBottom:a||s===h.AbsoluteScale?"16px":"10px"},chart:{width:"100%",height:i||12,display:"block",overflow:"visible"},barWrapper:{},chartTitle:(0,t.pi)((0,t.pi)({},r.fonts.small),{display:"flex",justifyContent:"space-between"}),chartTitleLeft:{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",display:"block",color:r.palette.neutralPrimary,marginBottom:s===h.AbsoluteScale?"4px":"5px"},chartTitleRight:{fontSize:Ye.TS.medium,fontWeight:Ye.lq.semibold,color:r.palette.neutralPrimary},chartDataTextDenominator:{fontSize:Ye.TS.medium,color:r.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:c.blue,marginBottom:"4px",position:"absolute"},barLabel:(0,t.pi)((0,t.pi)({},r.fonts.small),{fontWeight:Ye.lq.semibold,fill:r.palette.neutralPrimary}),chartWrapper:{paddingRight:s!==h.AbsoluteScale||l?0:40}}})),Vn={host:"ms-HoverCard-host"},On=function(){function e(t){this._id=e._uniqueId++,this._parent=t,this._eventRecords=[]}return e.raise=function(t,n,r,o,i){var a,s=null!=i?i:(0,C.M)();if(e._isElement(t)){if(void 0!==s&&s.createEvent){var l=s.createEvent("HTMLEvents");l.initEvent(n,o||!1,!0),j(l,r),a=t.dispatchEvent(l)}else if(void 0!==s&&s.createEventObject){var c=s.createEventObject(r);t.fireEvent("on"+n,c)}}else for(;t&&!1!==a;){var u=t.__events__,d=u?u[n]:null;if(d)for(var h in d)if(d.hasOwnProperty(h))for(var p=d[h],f=0;!1!==a&&f<p.length;f++){var g=p[f];g.objectCallback&&(a=g.objectCallback.call(g.parent,r))}t=o?t.parent:null}return a},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,o){var i=this;if(n.indexOf(",")>-1)for(var a=n.split(/[ ,]+/),s=0;s<a.length;s++)this.on(t,a[s],r,o);else{var l=this._parent,c={target:t,eventName:n,parent:l,callback:r,options:o};if((a=t.__events__=t.__events__||{})[n]=a[n]||{count:0},a[n][this._id]=a[n][this._id]||[],a[n][this._id].push(c),a[n].count++,e._isElement(t)){var u=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!i._isDisposed){var n;try{if(!1===(n=r.apply(l,e))&&e[0]){var o=e[0];o.preventDefault&&o.preventDefault(),o.stopPropagation&&o.stopPropagation(),o.cancelBubble=!0}}catch(o){}return n}};c.elementCallback=u,t.addEventListener?t.addEventListener(n,u,o):t.attachEvent&&t.attachEvent("on"+n,u)}else c.objectCallback=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!i._isDisposed)return r.apply(l,e)};this._eventRecords.push(c)}},e.prototype.off=function(e,t,n,r){for(var o=0;o<this._eventRecords.length;o++){var i=this._eventRecords[o];if(!(e&&e!==i.target||t&&t!==i.eventName||n&&n!==i.callback||"boolean"==typeof r&&r!==i.options)){var a=i.target.__events__,s=a[i.eventName],l=s?s[this._id]:null;l&&(1!==l.length&&n?(s.count--,l.splice(l.indexOf(i),1)):(s.count-=l.length,delete a[i.eventName][this._id]),s.count||delete a[i.eventName]),i.elementCallback&&(i.target.removeEventListener?i.target.removeEventListener(i.eventName,i.elementCallback,i.options):i.target.detachEvent&&i.target.detachEvent("on"+i.eventName,i.elementCallback)),this._eventRecords.splice(o--,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"}(Ln||(Ln={})),function(e){e.plain="PlainCard",e.expanding="ExpandingCard"}(kn||(kn={}));var Hn,Bn={root:"ms-ExpandingCard-root",compactCard:"ms-ExpandingCard-compactCard",expandedCard:"ms-ExpandingCard-expandedCard",expandedCardScroll:"ms-ExpandingCard-expandedCardScrollRegion"};function Rn(e,t){var n=o.useRef(t);return n.current||(n.current=f(e)),n.current}function zn(e){var t=o.useRef((function(){throw new Error("Cannot call an event handler while rendering")}));return Ft((function(){t.current=e}),[e]),Ze((function(){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t.current.apply(void 0,e)}}))}!function(e){e[e.compact=0]="compact",e[e.expanded=1]="expanded"}(Hn||(Hn={}));var Wn={disabled:!1,disableFirstFocus:!1,forceFocusInsideTrap:!0,isClickableOutsideFocusTrap:!1,"data-tabster":'{"uncontrolled": {"completely": true}}'},Yn=o.forwardRef((function(e,n){var r,i,a,s=o.useRef(null),l=o.useRef(null),c=o.useRef(null),u=Oe(s,n),d=Re(),h=Xe(),p=null===(r=Bt(!1))||void 0===r||r,f=H(Wn,e),g=Ze({hasFocus:!1,focusStackId:Rn("ftz-",f.id)}),m=f.children,v=f.componentRef,_=f.disabled,y=f.disableFirstFocus,x=f.forceFocusInsideTrap,C=f.focusPreviouslyFocusedInnerElement,E=f.firstFocusableSelector,S=f.firstFocusableTarget,A=f.disableRestoreFocus,L=void 0===A?f.ignoreExternalFocusing:A,k=f.isClickableOutsideFocusTrap,D=f.enableAriaHiddenSiblings,M={"aria-hidden":!0,style:{pointerEvents:"none",position:"fixed"},tabIndex:_?-1:0,"data-is-visible":!0,"data-is-focus-trap-zone-bumper":!0},P=o.useCallback((function(e){e!==l.current&&e!==c.current&&V(e)}),[]),F=zn((function(){if(s.current){var e=g.previouslyFocusedElementInTrapZone;if(C&&e&&b(s.current,e))P(e);else{var t=null;if("string"==typeof S)t=s.current.querySelector(S);else if(S)t=S(s.current);else if(E){var n="string"==typeof E?E:E();t=s.current.querySelector("."+n)}t||(t=w(s.current,s.current.firstChild,!1,!1,!1,!0)),t&&P(t)}}})),I=function(e){if(!_&&s.current){var t,n=e===g.hasFocus?(void 0===(t=!1)&&(t=!0),T(s.current,c.current,t,!1,!0,!0,!1,!0)):function(e,t,n,r){return void 0===r&&(r=!0),w(e,t,r,!1,!1,!0,!1,!0)}(s.current,l.current,0,!1);n&&(n===l.current||n===c.current?F():n.focus())}},N=zn((function(e){if(Yn.focusStack=Yn.focusStack.filter((function(e){return g.focusStackId!==e})),d){var t=d.activeElement;L||"function"!=typeof(null==e?void 0:e.focus)||!b(s.current,t)&&t!==d.body||P(e)}})),B=zn((function(e){if(!_&&g.focusStackId===Yn.focusStack.slice(-1)[0]){var t=e.target;t&&!b(s.current,t)&&(d&&d.activeElement===d.body?setTimeout((function(){d&&d.activeElement===d.body&&(F(),g.hasFocus=!0)}),0):(F(),g.hasFocus=!0),e.preventDefault(),e.stopPropagation())}}));return o.useEffect((function(){var e=[];return x&&e.push(O(h,"focus",B,!0)),k||e.push(O(h,"click",B,!0)),function(){e.forEach((function(e){return e()}))}}),[x,k,h]),o.useEffect((function(){if(!_&&(p||x)&&s.current){Yn.focusStack.push(g.focusStackId);var e=f.elementToFocusOnDismiss||d.activeElement;return y||b(s.current,e)||F(),function(){return N(e)}}}),[x,_]),o.useEffect((function(){if(!_&&D)return Pe(s.current)}),[_,D,s]),i=function(){delete g.previouslyFocusedElementInTrapZone},(a=o.useRef(i)).current=i,o.useEffect((function(){return function(){var e;null===(e=a.current)||void 0===e||e.call(a)}}),[]),function(e,t,n){o.useImperativeHandle(e,(function(){return{get previouslyFocusedElement(){return t},focus:n}}),[n,t])}(v,g.previouslyFocusedElementInTrapZone,F),o.createElement("div",(0,t.pi)({"aria-labelledby":f.ariaLabelledBy},X(f,q),{ref:u,onFocusCapture:function(e){var t;null===(t=f.onFocusCapture)||void 0===t||t.call(f,e),e.target===l.current?I(!0):e.target===c.current&&I(!1),g.hasFocus=!0,e.target!==e.currentTarget&&e.target!==l.current&&e.target!==c.current&&(g.previouslyFocusedElementInTrapZone=e.target)},onBlurCapture:function(e){var t;null===(t=f.onBlurCapture)||void 0===t||t.call(f,e);var n=e.relatedTarget;null===e.relatedTarget&&(n=d.activeElement),b(s.current,n)||(g.hasFocus=!1)}}),o.createElement("div",(0,t.pi)({},M,{ref:l})),m,o.createElement("div",(0,t.pi)({},M,{ref:c})))}));Yn.displayName="FocusTrapZone",Yn.focusStack=[];var Zn,qn=function(e){return o.createElement(jt,(0,t.pi)({},e),o.createElement(Yn,(0,t.pi)({disabled:e.hidden},e.focusTrapProps),e.children))},Xn=function(e){var n=e.gapSpace,r=void 0===n?0:n,i=e.directionalHint,a=void 0===i?_.bottomLeftEdge:i,s=e.directionalHintFixed,l=e.targetElement,c=e.firstFocus,u=e.trapFocus,d=e.onLeave,h=e.className,p=e.finalHeight,f=e.content,g=e.calloutProps,m=(0,t.pi)((0,t.pi)((0,t.pi)({},X(e,q)),{className:h,target:l,isBeakVisible:!1,directionalHint:a,directionalHintFixed:s,finalHeight:p,minPagePadding:24,onDismiss:d,gapSpace:r}),g);return o.createElement(o.Fragment,null,u?o.createElement(qn,(0,t.pi)({},m,{focusTrapProps:{forceFocusInsideTrap:!1,isClickableOutsideFocusTrap:!0,disableFirstFocus:!c}}),f):o.createElement(jt,(0,t.pi)({},m),f))},Un=(0,i.y)(),jn=function(e){function n(t){var n=e.call(this,t)||this;return n._expandedElem=o.createRef(),n._onKeyDown=function(e){e.which===Fe&&n.props.onLeave&&n.props.onLeave(e)},n._onRenderCompactCard=function(){return o.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})})),o.createElement("div",{className:n._classNames.expandedCard,ref:n._expandedElem},o.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 Ie(n),Qt(n),n.state={firstFrameRendered:!1,needsScroll:!1},n}return(0,t.ZT)(n,e),n.prototype.componentDidMount=function(){this._checkNeedsScroll()},n.prototype.componentWillUnmount=function(){this._async.dispose()},n.prototype.render=function(){var e=this.props,n=e.styles,r=e.compactCardHeight,i=e.expandedCardHeight,a=e.theme,s=e.mode,l=e.className,c=this.state,u=c.needsScroll,d=c.firstFrameRendered,h=r+i;this._classNames=Un(n,{theme:a,compactCardHeight:r,className:l,expandedCardHeight:i,needsScroll:u,expandedCardFirstFrameRendered:s===Hn.expanded&&d});var p=o.createElement("div",{onMouseEnter:this.props.onEnter,onMouseLeave:this.props.onLeave,onKeyDown:this._onKeyDown},this._onRenderCompactCard(),this._onRenderExpandedCard());return o.createElement(Xn,(0,t.pi)({},this.props,{content:p,finalHeight:h,className:this._classNames.root}))},n.defaultProps={compactCardHeight:156,expandedCardHeight:384,directionalHintFixed:!0},n}(o.Component),Gn=(0,e.z)(jn,(function(e){var t,n=e.theme,r=e.needsScroll,o=e.expandedCardFirstFrameRendered,i=e.compactCardHeight,a=e.expandedCardHeight,s=e.className,l=n.palette,c=(0,Ye.Cn)(Bn,n);return{root:[c.root,{width:320,pointerEvents:"none",selectors:(t={},t[Ye.qJ]={border:"1px solid WindowText"},t)},s],compactCard:[c.compactCard,{pointerEvents:"auto",position:"relative",height:i}],expandedCard:[c.expandedCard,{height:1,overflowY:"hidden",pointerEvents:"auto",transition:"height 0.467s cubic-bezier(0.5, 0, 0, 1)",selectors:{":before":{content:'""',position:"relative",display:"block",top:0,left:24,width:272,height:1,backgroundColor:l.neutralLighter}}},o&&{height:a}],expandedCardScroll:[c.expandedCardScroll,r&&{height:"100%",boxSizing:"border-box",overflowY:"auto"}]}}),void 0,{scope:"ExpandingCard"}),Kn={root:"ms-PlainCard-root"},$n=(0,i.y)(),Jn=function(e){function n(t){var n=e.call(this,t)||this;return n._onKeyDown=function(e){e.which===Fe&&n.props.onLeave&&n.props.onLeave(e)},Qt(n),n}return(0,t.ZT)(n,e),n.prototype.render=function(){var e=this.props,n=e.styles,r=e.theme,i=e.className;this._classNames=$n(n,{theme:r,className:i});var a=o.createElement("div",{onMouseEnter:this.props.onEnter,onMouseLeave:this.props.onLeave,onKeyDown:this._onKeyDown},this.props.onRenderPlainCard(this.props.renderData));return o.createElement(Xn,(0,t.pi)({},this.props,{content:a,className:this._classNames.root}))},n}(o.Component),Qn=(0,e.z)(Jn,(function(e){var t,n=e.theme,r=e.className;return{root:[(0,Ye.Cn)(Kn,n).root,{pointerEvents:"auto",selectors:(t={},t[Ye.qJ]={border:"1px solid WindowText"},t)},r]}}),void 0,{scope:"PlainCard"}),er=(0,i.y)(),tr=function(e){function n(t){var n=e.call(this,t)||this;return n._hoverCard=o.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:Hn.compact,openMode:"keydown"===e.type?Ln.hotKey:Ln.hover}}))}),n.props.cardOpenDelay)},n._cardDismiss=function(e,t){if(e){if(!(t instanceof MouseEvent))return;if("keydown"===t.type&&t.which!==Fe)return;n.props.sticky||n._currentMouseTarget!==t.currentTarget&&t.which!==Fe||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:Hn.compact,openMode:Ln.hover})},n._instantOpenAsExpanded=function(e){n._async.clearTimeout(n._dismissTimerId),n.setState((function(e){return e.isHoverCardVisible?e:{isHoverCardVisible:!0,mode:Hn.expanded}}))},n._setEventListeners=function(){var e=n.props,t=e.trapFocus,r=e.instantOpenOnClick,o=e.eventListenerTarget,i=o?n._getTargetElement(o):n._getTargetElement(n.props.target),a=n._nativeDismissEvent;i&&(n._events.on(i,"mouseenter",n._cardOpen),n._events.on(i,"mouseleave",a),t?n._events.on(i,"keydown",n._cardOpen):(n._events.on(i,"focus",n._cardOpen),n._events.on(i,"blur",a)),r?n._events.on(i,"click",n._instantOpenAsExpanded):(n._events.on(i,"mousedown",a),n._events.on(i,"keydown",a)))},Qt(n),n._async=new Ie(n),n._events=new On(n),n._nativeDismissEvent=n._cardDismiss.bind(n,!0),n._childDismissEvent=n._cardDismiss.bind(n,!1),n.state={isHoverCardVisible:!1,mode:Hn.compact,openMode:Ln.hover},n}return(0,t.ZT)(n,e),n.prototype.componentDidMount=function(){this._setEventListeners()},n.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},n.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:Hn.expanded},(function(){n.props.onCardExpand&&n.props.onCardExpand()}))}),this.props.expandedCardOpenDelay),this.props.onCardVisible&&this.props.onCardVisible()):(this.setState({mode:Hn.compact}),this.props.onCardHide&&this.props.onCardHide()))},n.prototype.render=function(){var e=this.props,n=e.expandingCardProps,r=e.children,i=e.id,a=e.setAriaDescribedBy,s=void 0===a||a,l=e.styles,c=e.theme,u=e.className,d=e.type,h=e.plainCardProps,p=e.trapFocus,g=e.setInitialFocus,m=this.state,v=m.isHoverCardVisible,_=m.mode,y=m.openMode,x=i||f("hoverCard");this._classNames=er(l,{theme:c,className:u});var b=(0,t.pi)((0,t.pi)({},X(this.props,q)),{id:x,trapFocus:!!p,firstFocus:g||y===Ln.hotKey,targetElement:this._getTargetElement(this.props.target),onEnter:this._cardOpen,onLeave:this._childDismissEvent}),C=(0,t.pi)((0,t.pi)((0,t.pi)({},n),b),{mode:_}),E=(0,t.pi)((0,t.pi)({},h),b);return o.createElement("div",{className:this._classNames.host,ref:this._hoverCard,"aria-describedby":s&&v?x:void 0,"data-is-focusable":!this.props.target},r,v&&(d===kn.expanding?o.createElement(Gn,(0,t.pi)({},C)):o.createElement(Qn,(0,t.pi)({},E))))},n.prototype._getTargetElement=function(e){switch(typeof e){case"string":return(0,C.M)().querySelector(e);case"object":return e;default:return this._hoverCard.current||void 0}},n.prototype._shouldBlockHoverCard=function(){return!(!this.props.shouldBlockHoverCard||!this.props.shouldBlockHoverCard())},n.defaultProps={cardOpenDelay:500,cardDismissDelay:100,expandedCardOpenDelay:1500,instantOpenOnClick:!1,setInitialFocus:!1,openHotKey:67,type:kn.expanding},n}(o.Component),nr=(0,e.z)(tr,(function(e){var t=e.className,n=e.theme;return{host:[(0,Ye.Cn)(Vn,n).host,t]}}),void 0,{scope:"HoverCard"});!function(e){e[e.horizontal=0]="horizontal",e[e.vertical=1]="vertical"}(Zn||(Zn={}));var rr=function(e){var n;void 0===e&&(n={},e={getCachedMeasurement:function(e){if(e&&e.cacheKey&&n.hasOwnProperty(e.cacheKey))return n[e.cacheKey]},addMeasurementToCache:function(e,t){e.cacheKey&&(n[e.cacheKey]=t)}});var r,o=e;function i(e,t){var n=o.getCachedMeasurement(e);if(void 0!==n)return n;var r=t();return o.addMeasurementToCache(e,r),r}function a(e,t,n){for(var a=e,s=i(e,n);s>r;){var l=t(a);if(void 0===l)return{renderedData:a,resizeDirection:void 0,dataToMeasure:void 0};if(void 0===(s=o.getCachedMeasurement(l)))return{dataToMeasure:l,resizeDirection:"shrink"};a=l}return{renderedData:a,resizeDirection:void 0,dataToMeasure:void 0}}return{getNextState:function(e,n,s,l){if(void 0!==l||void 0!==n.dataToMeasure){if(l){if(r&&n.renderedData&&!n.dataToMeasure)return(0,t.pi)((0,t.pi)({},n),function(e,n,o,i){var a;return a=e>r?i?{resizeDirection:"grow",dataToMeasure:i(o)}:{resizeDirection:"shrink",dataToMeasure:n}:{resizeDirection:"shrink",dataToMeasure:o},r=e,(0,t.pi)((0,t.pi)({},a),{measureContainer:!1})}(l,e.data,n.renderedData,e.onGrowData));r=l}var c=(0,t.pi)((0,t.pi)({},n),{measureContainer:!1});return n.dataToMeasure&&(c="grow"===n.resizeDirection&&e.onGrowData?(0,t.pi)((0,t.pi)({},c),function(e,n,s,l){for(var c=e,u=i(e,s);u<r;){var d=n(c);if(void 0===d)return{renderedData:c,resizeDirection:void 0,dataToMeasure:void 0};if(void 0===(u=o.getCachedMeasurement(d)))return{dataToMeasure:d};c=d}return(0,t.pi)({resizeDirection:"shrink"},a(c,l,s))}(n.dataToMeasure,e.onGrowData,s,e.onReduceData)):(0,t.pi)((0,t.pi)({},c),a(n.dataToMeasure,e.onReduceData,s))),c}},shouldRenderDataForMeasurement:function(e){return!(!e||void 0!==o.getCachedMeasurement(e))},getInitialResizeGroupState:function(e){return{dataToMeasure:(0,t.pi)({},e),resizeDirection:"grow",measureContainer:!0}}}},or=o.createContext({isMeasured:!1}),ir={position:"fixed",visibility:"hidden"},ar={position:"relative"};function sr(e,n){var r;switch(n.type){case"resizeData":return(0,t.pi)({},n.value);case"dataToMeasure":return(0,t.pi)((0,t.pi)({},e),{dataToMeasure:n.value,resizeDirection:"grow",measureContainer:!0});default:return(0,t.pi)((0,t.pi)({},e),((r={})[n.type]=n.value,r))}}var lr={isMeasured:!0},cr=o.forwardRef((function(e,n){var r=o.useRef(null),i=Oe(r,n),a=function(e,n){var r=Ze(rr),i=o.useRef(null),a=o.useRef(null),s=o.useRef(!1),l=Ne(),c=function(e,n,r){var i=Ze((function(){return n.getInitialResizeGroupState(e.data)})),a=o.useReducer(sr,i),s=a[0],l=a[1];o.useEffect((function(){l({type:"dataToMeasure",value:e.data})}),[e.data]);var c=o.useRef(i);return c.current=(0,t.pi)({},s),[c,o.useCallback((function(e){e&&l({type:"resizeData",value:e})}),[]),o.useCallback((function(){r.current&&l({type:"measureContainer",value:!0})}),[r])]}(e,r,n),u=c[0],d=c[1],h=c[2];o.useEffect((function(){var t;u.current.renderedData&&(s.current=!0,null===(t=e.dataDidRender)||void 0===t||t.call(e,u.current.renderedData))})),o.useEffect((function(){l.requestAnimationFrame((function(){var t=void 0;if(u.current.measureContainer&&n.current){var o=n.current.getBoundingClientRect();t=e.direction===Zn.vertical?o.height:o.width}var l=r.getNextState(e,u.current,(function(){var t=s.current?a:i;if(!t.current)return 0;var n=t.current.getBoundingClientRect();return e.direction===Zn.vertical?n.height:n.width}),t);d(l)}),n.current)})),Ve(Be(),"resize",l.debounce(h,16,{leading:!0}));var p=r.shouldRenderDataForMeasurement(u.current.dataToMeasure),f=!s.current&&p;return[u.current.dataToMeasure,u.current.renderedData,h,i,a,p,f]}(e,r),s=a[0],l=a[1],c=a[2],u=a[3],d=a[4],h=a[5],p=a[6];o.useImperativeHandle(e.componentRef,(function(){return{remeasure:c}}),[c]),function(e){zt({name:"ResizeGroup",props:e,deprecations:{styles:"className"}})}(e);var f=e.className,g=e.onRenderData,m=X(e,q,["data"]);return o.createElement("div",(0,t.pi)({},m,{className:f,ref:i}),o.createElement("div",{style:ar},h&&!p&&o.createElement("div",{style:ir,ref:d},o.createElement(or.Provider,{value:lr},g(s))),o.createElement("div",{ref:u,style:p?ir:void 0,"data-automation-id":"visibleContent"},p?g(s):l&&g(l))))}));cr.displayName="ResizeGroupBase";var ur,dr=cr;!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"}(ur||(ur={}));var hr=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 o=t?ur.PERSISTED_KEYTIP_ADDED:ur.KEYTIP_ADDED;On.raise(this,o,{keytip:n,uniqueID:r.uniqueID})}return r.uniqueID},e.prototype.update=function(e,t){var n=this.addParentOverflow(e),r=this._getUniqueKtp(n,t),o=this.keytips[t];o&&(r.keytip.visible=o.keytip.visible,this.keytips[t]=r,delete this.sequenceMapping[o.keytip.keySequences.toString()],this.sequenceMapping[r.keytip.keySequences.toString()]=r.keytip,!this.inKeytipMode&&this.delayUpdatingKeytipChange||On.raise(this,ur.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?ur.PERSISTED_KEYTIP_REMOVED:ur.KEYTIP_REMOVED;!this.inKeytipMode&&this.delayUpdatingKeytipChange||On.raise(this,r,{keytip:e,uniqueID:t})},e.prototype.enterKeytipMode=function(){On.raise(this,ur.ENTER_KEYTIP_MODE)},e.prototype.exitKeytipMode=function(){On.raise(this,ur.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 n=(0,t.ev)([],e.keySequences,!0);if(n.pop(),0!==n.length){var r=this.sequenceMapping[n.toString()];if(r&&r.overflowSetSequence)return(0,t.pi)((0,t.pi)({},e),{overflowSetSequence:r.overflowSetSequence})}return e},e.prototype.menuExecute=function(e,t){On.raise(this,ur.PERSISTED_KEYTIP_EXECUTE,{overflowButtonSequences:e,keytipSequences:t})},e.prototype._getUniqueKtp=function(e,n){return void 0===n&&(n=f()),{keytip:(0,t.pi)({},e),uniqueID:n}},e._instance=new e,e}(),pr=function(e,t,n){for(var r=0,o=e;r<o.length;r++){var i=o[r];n[t.register(i,!0)]=i}},fr=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];e.unregister(t[o],o,!0),delete t[o]}},gr=function(e){var n=hr.getInstance(),r=e.className,i=e.overflowItems,a=e.keytipSequences,s=e.itemSubMenuProvider,l=e.onRenderOverflowButton,c=Ze({}),u=o.useCallback((function(e){return s?s(e):e.subMenuProps?e.subMenuProps.items:void 0}),[s]),d=o.useMemo((function(){var e=[],r=[];return a?null==i||i.forEach((function(o){var i,s=o.keytipProps;if(s){var l={content:s.content,keySequences:s.keySequences,disabled:s.disabled||!(!o.disabled&&!o.isDisabled),hasDynamicChildren:s.hasDynamicChildren,hasMenu:s.hasMenu};s.hasDynamicChildren||u(o)?(l.onExecute=n.menuExecute.bind(n,a,null===(i=null==o?void 0:o.keytipProps)||void 0===i?void 0:i.keySequences),l.hasOverflowSubMenu=!0):l.onExecute=s.onExecute,e.push(l);var c=(0,t.pi)((0,t.pi)({},o),{keytipProps:(0,t.pi)((0,t.pi)({},s),{overflowSetSequence:a})});null==r||r.push(c)}else null==r||r.push(o)})):r=i,{modifiedOverflowItems:r,keytipsToRegister:e}}),[i,u,n,a]),h=d.modifiedOverflowItems;return function(e,t,n){var r=Bt(e);o.useEffect((function(){r&&(fr(n,r),pr(t,n,e))})),o.useEffect((function(){return pr(t,n,e),function(){fr(n,e)}}),[])}(c,d.keytipsToRegister,n),o.createElement("div",{className:r},l(h))},mr=(0,i.y)(),vr=o.forwardRef((function(e,n){var r=o.useRef(null),i=Oe(r,n);!function(e,t){var n=function(){var e;return(null!==(e=Re())&&void 0!==e?e:"undefined"!=typeof document)?document:void 0}();o.useImperativeHandle(e.componentRef,(function(){return{focus:function(e,n){var r=!1;return t.current&&(r=k(t.current,n)),r},focusElement:function(e){var r=!1;return!!e&&(t.current&&b(t.current,e)&&(e.focus(),r=(null==n?void 0:n.activeElement)===e),r)}}}),[t,n])}(e,r);var a=e.items,s=e.overflowItems,l=e.className,c=e.styles,u=e.vertical,d=e.role,h=e.overflowSide,p=void 0===h?"end":h,f=e.onRenderItem,g=mr(c,{className:l,vertical:u}),m=!!s&&s.length>0;return o.createElement("div",(0,t.pi)({},X(e,q),{role:d||"group","aria-orientation":"menubar"===d?!0===u?"vertical":"horizontal":void 0,className:g.root,ref:i}),"start"===p&&m&&o.createElement(gr,(0,t.pi)({},e,{className:g.overflowButton})),a&&a.map((function(e,t){return o.createElement("div",{className:g.item,key:e.key,role:"none"},f(e))})),"end"===p&&m&&o.createElement(gr,(0,t.pi)({},e,{className:g.overflowButton})))}));vr.displayName="OverflowSet";var _r,yr={flexShrink:0,display:"inherit"},xr=(0,e.z)(vr,(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",yr],overflowButton:["ms-OverflowSet-overflowButton",yr]}}),void 0,{scope:"OverflowSet"}),br=((_r={})["".concat(Kt.wo[Kt.wo.circle])]="M1 6 A5 5 0 1 0 12 6 M1 6 A5 5 0 0 1 12 6",_r["".concat(Kt.wo[Kt.wo.square])]="M1 1 L12 1 L12 12 L1 12 L1 1 Z",_r["".concat(Kt.wo[Kt.wo.triangle])]="M6 10L8.74228e-07 -1.04907e-06L12 0L6 10Z",_r["".concat(Kt.wo[Kt.wo.pyramid])]="M6 10L8.74228e-07 -1.04907e-06L12 0L6 10Z",_r["".concat(Kt.wo[Kt.wo.diamond])]="M2 2 L10 2 L10 10 L2 10 L2 2 Z",_r["".concat(Kt.wo[Kt.wo.hexagon])]="M9 0H3L0 5L3 10H9L12 5L9 0Z",_r["".concat(Kt.wo[Kt.wo.pentagon])]="M6.06061 0L0 4.21277L2.30303 11H9.69697L12 4.21277L6.06061 0Z",_r["".concat(Kt.wo[Kt.wo.octagon])]="M7.08333 0H2.91667L0 2.91667V7.08333L2.91667 10H7.08333L10 7.08333V2.91667L7.08333 0Z",_r["".concat(Kt.jc[Kt.jc.dottedLine])]="M0 6 H3 M5 6 H8 M10 6 H13",_r),Cr=function(e){var n=e.svgProps,r=e.pathProps,i=e.shape,a=e.classNameForNonSvg;return-1===Object.keys(br).indexOf(i)?o.createElement("div",{className:a}):o.createElement("svg",(0,t.pi)({width:14,height:14,viewBox:"-1 -1 14 14"},n,{transform:"rotate(".concat(i===Kt.wo[Kt.wo.diamond]?45:i===Kt.wo[Kt.wo.pyramid]?180:0,", 0, 0)")}),o.createElement("path",(0,t.pi)({d:br[i]},r)))},Er=(0,i.y)(),Sr=function(e){function n(n){var r,i,a=this;(a=e.call(this,n)||this)._isLegendSelected=!1,a._onRenderData=function(e){var n=a.props,r=n.overflowProps,i=n.allowFocusOnLegends,s=void 0===i||i,l=n.canSelectMultipleLegends,c=void 0!==l&&l,u={root:{justifyContent:a.props.centerLegends?"center":"unset",flexWrap:"wrap"}};return o.createElement(xn,(0,t.pi)({},s&&{role:"listbox","aria-label":"Legends","aria-multiselectable":c}),o.createElement(xr,(0,t.pi)({items:e.primary,overflowItems:e.overflow,onRenderItem:a._renderButton,onRenderOverflowButton:a._renderOverflowItems},r,{styles:(0,t.pi)((0,t.pi)({},u),null==r?void 0:r.styles)})))},a._onReduceData=function(e){if(0!==e.primary.length){var n=(0,t.ev)((0,t.ev)([],e.primary.slice(-1),!0),e.overflow,!0);return{primary:e.primary.slice(0,-1),overflow:n}}},a._onGrowData=function(e){if(0!==e.overflow.length){var n=e.overflow.slice(1);return{primary:(0,t.ev)((0,t.ev)([],e.primary,!0),e.overflow.slice(0,1),!0),overflow:n}}},a._canSelectMultipleLegends=function(e){var n=(0,t.pi)({},a.state.selectedLegends);return n[e.title]?delete n[e.title]:(n[e.title]=!0,Object.keys(n).length===a.props.legends.length&&(n={})),a.setState({selectedLegends:n}),n},a._canSelectOnlySingleLegend=function(e){var t;return a.state.selectedLegends[e.title]?(a.setState({selectedLegends:{}}),!1):(a.setState({selectedLegends:(t={},t[e.title]=!0,t)}),!0)},a._onClick=function(e,t){var n,r,o,i=a.props.canSelectMultipleLegends,s=[];if(void 0!==i&&i){var l=a._canSelectMultipleLegends(e);s=Object.keys(l)}else s=a._canSelectOnlySingleLegend(e)?[e.title]:[];null===(r=(n=a.props).onChange)||void 0===r||r.call(n,s,t,e),null===(o=e.action)||void 0===o||o.call(e)},a._onRenderCompactCard=function(e){var n=a.props,r=n.allowFocusOnLegends,i=void 0===r||r,s=n.className,l=n.styles,c=n.theme,u=n.canSelectMultipleLegends,d=void 0!==u&&u,h=[],p=Er(l,{theme:c,className:s});return e.renderData.forEach((function(e,t){var n=a._renderButton(e,t,!0);h.push(n)})),o.createElement(xn,(0,t.pi)({},i&&{role:"listbox","aria-label":"Legends","aria-multiselectable":d},{direction:Gt.vertical},a.props.focusZonePropsInHoverCard,{className:p.hoverCardRoot}),h)},a._renderOverflowItems=function(e){var n=a.props.allowFocusOnLegends,r=void 0===n||n,i=[];e.forEach((function(e,t){i.push({key:t.toString(),name:e.title,onClick:e.action})}));var s={renderData:e},l=a.props,c=l.theme,u=l.className,d=l.styles,h=l.overflowText,p=Er(d,{theme:c,className:u}),f={onRenderPlainCard:a._onRenderCompactCard,renderData:s},g=h||"more";return o.createElement(nr,{type:kn.plain,plainCardProps:f,instantOpenOnClick:!0,onCardHide:function(){a.setState({isHoverCardVisible:!1});var t=v(e,(function(e){return e.title===a.state.activeLegend}));t&&(a.setState({activeLegend:""}),t.onMouseOutAction&&t.onMouseOutAction())},setInitialFocus:!0,trapFocus:!0,onCardVisible:a._hoverCardVisible,styles:p.subComponentStyles.hoverCardStyles,cardDismissDelay:300,target:a._hoverCardRef},o.createElement("div",(0,t.pi)({className:p.overflowIndicationTextStyle,ref:function(e){return a._hoverCardRef=e}},r&&{role:"button","aria-expanded":a.state.isHoverCardVisible,"aria-label":"".concat(i.length," ").concat(g)},{"data-is-focusable":r}),i.length," ",g))},a._hoverCardVisible=function(){a.setState({isHoverCardVisible:!0})},a._onHoverOverLegend=function(e){e.hoverAction&&(a.setState({activeLegend:e.title}),e.hoverAction())},a._onLeave=function(e){e.onMouseOutAction&&(a.setState({activeLegend:""}),e.onMouseOutAction())},a._renderButton=function(e,n,r){var i=a.props.allowFocusOnLegends,s=void 0===i||i,l={title:e.title,color:e.color,shape:e.shape,action:e.action,hoverAction:e.hoverAction,onMouseOutAction:e.onMouseOutAction,stripePattern:e.stripePattern,isLineLegendInBarChart:e.isLineLegendInBarChart,opacity:e.opacity},c=a._getColor(l.title,l.color),u=a.props,d=u.theme,h=u.className,p=u.styles,f=Er(p,{theme:d,className:h,colorOnSelectedState:c,borderColor:l.color,overflow:r,stripePattern:l.stripePattern,isLineLegendInBarChart:l.isLineLegendInBarChart,opacity:l.opacity}),g=function(){a._onHoverOverLegend(l)},m=function(){a._onLeave(l)},v=a._getShape(f,l,c);return o.createElement("button",(0,t.pi)({},s&&{"aria-selected":!!a.state.selectedLegends[l.title],role:"option","aria-label":"".concat(l.title),"aria-setsize":e["aria-setsize"],"aria-posinset":e["aria-posinset"]},e.nativeButtonProps&&(0,t.pi)({},e.nativeButtonProps),{key:n,className:f.legend,onClick:function(e){a._onClick(l,e)},onMouseOver:g,onMouseOut:m,onFocus:g,onBlur:m,"data-is-focusable":s}),v,o.createElement("div",{className:f.text},l.title))};var s={};return n.canSelectMultipleLegends?s=(null===(i=n.defaultSelectedLegends)||void 0===i?void 0:i.reduce((function(e,n){var r;return(0,t.pi)(((r={})[n]=!0,r),e)}),{}))||{}:n.defaultSelectedLegend&&((r={})[n.defaultSelectedLegend]=!0,s=r),a.state={activeLegend:"",isHoverCardVisible:!1,selectedLegends:s},a}return(0,t.ZT)(n,e),n.prototype.render=function(){var e=this.props,t=e.theme,n=e.className,r=e.styles;this._classNames=Er(r,{theme:t,className:n}),this._isLegendSelected=Object.keys(this.state.selectedLegends).length>0;var i=this._generateData();return o.createElement("div",{className:this._classNames.root},this.props.enabledWrapLines?this._onRenderData(i):o.createElement(dr,{data:i,onReduceData:this._onReduceData,onRenderData:this._onRenderData,onGrowData:this._onGrowData}))},n.prototype._generateData=function(){var e=this,n=this.props.allowFocusOnLegends,r=void 0===n||n;return{primary:this.props.legends.map((function(n,o){return(0,t.pi)((0,t.pi)({},r&&{nativeButtonProps:X(n,Z,["title"]),"aria-setsize":e.props.legends.length,"aria-posinset":o+1}),{title:n.title,action:n.action,hoverAction:n.hoverAction,onMouseOutAction:n.onMouseOutAction,color:n.color,shape:n.shape,stripePattern:n.stripePattern,isLineLegendInBarChart:n.isLineLegendInBarChart,opacity:n.opacity,key:o})})),overflow:[]}},n.prototype._getShape=function(e,t,n){var r={className:e.shape},i={fill:n,strokeWidth:2,stroke:t.color};return o.createElement(Cr,{svgProps:r,pathProps:i,shape:t.shape,classNameForNonSvg:e.rect})},n.prototype._getColor=function(e,t){var n=this.props.theme.palette;return this._isLegendSelected?this.state.selectedLegends[e]?t:n.white:this.state.activeLegend===e||""===this.state.activeLegend?t:n.white},n}(o.Component),Ar=(0,e.z)(Sr,(function(e){var n,r,o=e.className,i=e.theme,a=e.isLineLegendInBarChart,s=void 0!==a&&a,l=i,c=l.palette,u=l.fonts,d={inset:void 0,position:void 0,highContrastStyle:{outlineColor:i.semanticColors.focusBorder},borderColor:"transparent",outlineColor:void 0};return{root:[{whiteSpace:"nowrap",width:"100%",alignItems:"center",margin:"-8px 0 0 -8px"},o],legend:[(0,Ye.GL)(i,d),{display:"flex",alignItems:"center",cursor:"pointer",border:"none",padding:"8px",background:"none",textTransform:"capitalize"}],rect:{selectors:(n={},n[Ye.qJ]={content:"linear-gradient(to right, ".concat(e.colorOnSelectedState,", ").concat(e.colorOnSelectedState,")"),opacity:e.colorOnSelectedState===c.white?"0.6":""},n),width:"12px",height:s?"4px":"12px",backgroundColor:e.stripePattern?"":e.colorOnSelectedState,marginRight:"8px",border:"1px solid",borderColor:e.borderColor?e.borderColor:null==i?void 0:i.semanticColors.buttonBorder,content:e.stripePattern?"repeating-linear-gradient(135deg, transparent, transparent 3px, ".concat(e.colorOnSelectedState," 1px, ").concat(e.colorOnSelectedState," 4px)"):""},shape:[{marginRight:"8px"}],triangle:{width:"0",height:"0",borderLeft:"6px solid transparent",borderRight:"6px solid transparent",borderTop:"10.4px solid",borderTopColor:e.colorOnSelectedState,marginRight:"8px",opacity:e.colorOnSelectedState===c.white?"0.6":e.opacity?e.opacity:"",selectors:(r={},r[Ye.qJ]={border:"0px",height:"10.4px",width:"10.4px",clipPath:"polygon(50% 100%, 0 0, 100% 0)",backgroundImage:"linear-gradient(to right, ".concat(e.colorOnSelectedState,", ").concat(e.colorOnSelectedState,")")},r)},text:(0,t.pi)((0,t.pi)({},u.small),{lineHeight:"16px",color:null==i?void 0:i.semanticColors.bodyText,opacity:e.colorOnSelectedState===c.white?"0.67":""}),hoverChange:{width:"12px",height:"12px",backgroundColor:"white",marginRight:"8px",border:"1px solid",borderColor:e.borderColor?e.borderColor:c.black},overflowIndicationTextStyle:[(0,Ye.GL)(i,d),(0,t.pi)((0,t.pi)({cursor:"pointer",color:null==i?void 0:i.semanticColors.bodyText},u.small),{lineHeight:"16px",padding:"8px"})],hoverCardRoot:{padding:"8px"},subComponentStyles:{hoverCardStyles:{host:[(0,Ye.GL)(i,d)]}}}}));function Lr(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function kr(e){return function(){return e}}function Tr(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function wr(e){return e}Array.prototype.slice;const Dr=Math.abs,Mr=Math.atan2,Pr=Math.cos,Fr=Math.max,Ir=Math.min,Nr=Math.sin,Vr=Math.sqrt,Or=1e-12,Hr=Math.PI,Br=Hr/2,Rr=2*Hr;function zr(e){return e>=1?Br:e<=-1?-Br:Math.asin(e)}function Wr(){var e=wr,t=Tr,n=null,r=kr(0),o=kr(Rr),i=kr(0);function a(a){var s,l,c,u,d,h=(a=Lr(a)).length,p=0,f=new Array(h),g=new Array(h),m=+r.apply(this,arguments),v=Math.min(Rr,Math.max(-Rr,o.apply(this,arguments)-m)),_=Math.min(Math.abs(v)/h,i.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,c=p?(v-h*y)/p:0;s<h;++s,m=u)l=f[s],u=m+((d=g[l])>0?d*c:0)+y,g[l]={data:a[l],index:s,value:d,startAngle:m,endAngle:u,padAngle:_};return g}return a.value=function(t){return arguments.length?(e="function"==typeof t?t:kr(+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:kr(+e),a):r},a.endAngle=function(e){return arguments.length?(o="function"==typeof e?e:kr(+e),a):o},a.padAngle=function(e){return arguments.length?(i="function"==typeof e?e:kr(+e),a):i},a}const Yr=Math.PI,Zr=2*Yr,qr=1e-6,Xr=Zr-qr;function Ur(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}class jr{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==e?Ur:function(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return Ur;const n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=Math.round(arguments[t]*n)/n+e[t]}}(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,n,r){this._append`Q${+e},${+t},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(e,t,n,r,o,i){this._append`C${+e},${+t},${+n},${+r},${this._x1=+o},${this._y1=+i}`}arcTo(e,t,n,r,o){if(e=+e,t=+t,n=+n,r=+r,(o=+o)<0)throw new Error(`negative radius: ${o}`);let i=this._x1,a=this._y1,s=n-e,l=r-t,c=i-e,u=a-t,d=c*c+u*u;if(null===this._x1)this._append`M${this._x1=e},${this._y1=t}`;else if(d>qr)if(Math.abs(u*s-l*c)>qr&&o){let h=n-i,p=r-a,f=s*s+l*l,g=h*h+p*p,m=Math.sqrt(f),v=Math.sqrt(d),_=o*Math.tan((Yr-Math.acos((f+d-g)/(2*m*v)))/2),y=_/v,x=_/m;Math.abs(y-1)>qr&&this._append`L${e+y*c},${t+y*u}`,this._append`A${o},${o},0,0,${+(u*h>c*p)},${this._x1=e+x*s},${this._y1=t+x*l}`}else this._append`L${this._x1=e},${this._y1=t}`}arc(e,t,n,r,o,i){if(e=+e,t=+t,i=!!i,(n=+n)<0)throw new Error(`negative radius: ${n}`);let a=n*Math.cos(r),s=n*Math.sin(r),l=e+a,c=t+s,u=1^i,d=i?r-o:o-r;null===this._x1?this._append`M${l},${c}`:(Math.abs(this._x1-l)>qr||Math.abs(this._y1-c)>qr)&&this._append`L${l},${c}`,n&&(d<0&&(d=d%Zr+Zr),d>Xr?this._append`A${n},${n},0,1,${u},${e-a},${t-s}A${n},${n},0,1,${u},${this._x1=l},${this._y1=c}`:d>qr&&this._append`A${n},${n},0,${+(d>=Yr)},${u},${this._x1=e+n*Math.cos(o)},${this._y1=t+n*Math.sin(o)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}}function Gr(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(null==n)t=null;else{const e=Math.floor(n);if(!(e>=0))throw new RangeError(`invalid digits: ${n}`);t=e}return e},()=>new jr(t)}function Kr(e){return e.innerRadius}function $r(e){return e.outerRadius}function Jr(e){return e.startAngle}function Qr(e){return e.endAngle}function eo(e){return e&&e.padAngle}function to(e,t,n,r,o,i,a){var s=e-n,l=t-r,c=(a?i:-i)/Vr(s*s+l*l),u=c*l,d=-c*s,h=e+u,p=t+d,f=n+u,g=r+d,m=(h+f)/2,v=(p+g)/2,_=f-h,y=g-p,x=_*_+y*y,b=o-i,C=h*g-f*p,E=(y<0?-1:1)*Vr(Fr(0,b*b*x-C*C)),S=(C*y-_*E)/x,A=(-C*_-y*E)/x,L=(C*y+_*E)/x,k=(-C*_+y*E)/x,T=S-m,w=A-v,D=L-m,M=k-v;return T*T+w*w>D*D+M*M&&(S=L,A=k),{cx:S,cy:A,x01:-u,y01:-d,x11:S*(o/b-1),y11:A*(o/b-1)}}function no(){var e=Kr,t=$r,n=kr(0),r=null,o=Jr,i=Qr,a=eo,s=null,l=Gr(c);function c(){var c,u,d,h=+e.apply(this,arguments),p=+t.apply(this,arguments),f=o.apply(this,arguments)-Br,g=i.apply(this,arguments)-Br,m=Dr(g-f),v=g>f;if(s||(s=c=l()),p<h&&(u=p,p=h,h=u),p>Or)if(m>Rr-Or)s.moveTo(p*Pr(f),p*Nr(f)),s.arc(0,0,p,f,g,!v),h>Or&&(s.moveTo(h*Pr(g),h*Nr(g)),s.arc(0,0,h,g,f,v));else{var _,y,x=f,b=g,C=f,E=g,S=m,A=m,L=a.apply(this,arguments)/2,k=L>Or&&(r?+r.apply(this,arguments):Vr(h*h+p*p)),T=Ir(Dr(p-h)/2,+n.apply(this,arguments)),w=T,D=T;if(k>Or){var M=zr(k/h*Nr(L)),P=zr(k/p*Nr(L));(S-=2*M)>Or?(C+=M*=v?1:-1,E-=M):(S=0,C=E=(f+g)/2),(A-=2*P)>Or?(x+=P*=v?1:-1,b-=P):(A=0,x=b=(f+g)/2)}var F=p*Pr(x),I=p*Nr(x),N=h*Pr(E),V=h*Nr(E);if(T>Or){var O,H=p*Pr(b),B=p*Nr(b),R=h*Pr(C),z=h*Nr(C);if(m<Hr)if(O=function(e,t,n,r,o,i,a,s){var l=n-e,c=r-t,u=a-o,d=s-i,h=d*l-u*c;if(!(h*h<Or))return[e+(h=(u*(t-i)-d*(e-o))/h)*l,t+h*c]}(F,I,R,z,H,B,N,V)){var W=F-O[0],Y=I-O[1],Z=H-O[0],q=B-O[1],X=1/Nr(((d=(W*Z+Y*q)/(Vr(W*W+Y*Y)*Vr(Z*Z+q*q)))>1?0:d<-1?Hr:Math.acos(d))/2),U=Vr(O[0]*O[0]+O[1]*O[1]);w=Ir(T,(h-U)/(X-1)),D=Ir(T,(p-U)/(X+1))}else w=D=0}A>Or?D>Or?(_=to(R,z,F,I,p,D,v),y=to(H,B,N,V,p,D,v),s.moveTo(_.cx+_.x01,_.cy+_.y01),D<T?s.arc(_.cx,_.cy,D,Mr(_.y01,_.x01),Mr(y.y01,y.x01),!v):(s.arc(_.cx,_.cy,D,Mr(_.y01,_.x01),Mr(_.y11,_.x11),!v),s.arc(0,0,p,Mr(_.cy+_.y11,_.cx+_.x11),Mr(y.cy+y.y11,y.cx+y.x11),!v),s.arc(y.cx,y.cy,D,Mr(y.y11,y.x11),Mr(y.y01,y.x01),!v))):(s.moveTo(F,I),s.arc(0,0,p,x,b,!v)):s.moveTo(F,I),h>Or&&S>Or?w>Or?(_=to(N,V,H,B,h,-w,v),y=to(F,I,R,z,h,-w,v),s.lineTo(_.cx+_.x01,_.cy+_.y01),w<T?s.arc(_.cx,_.cy,w,Mr(_.y01,_.x01),Mr(y.y01,y.x01),!v):(s.arc(_.cx,_.cy,w,Mr(_.y01,_.x01),Mr(_.y11,_.x11),!v),s.arc(0,0,h,Mr(_.cy+_.y11,_.cx+_.x11),Mr(y.cy+y.y11,y.cx+y.x11),v),s.arc(y.cx,y.cy,w,Mr(y.y11,y.x11),Mr(y.y01,y.x01),!v))):s.arc(0,0,h,E,C,v):s.lineTo(N,V)}else s.moveTo(0,0);if(s.closePath(),c)return s=null,c+""||null}return c.centroid=function(){var n=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,r=(+o.apply(this,arguments)+ +i.apply(this,arguments))/2-Hr/2;return[Pr(r)*n,Nr(r)*n]},c.innerRadius=function(t){return arguments.length?(e="function"==typeof t?t:kr(+t),c):e},c.outerRadius=function(e){return arguments.length?(t="function"==typeof e?e:kr(+e),c):t},c.cornerRadius=function(e){return arguments.length?(n="function"==typeof e?e:kr(+e),c):n},c.padRadius=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:kr(+e),c):r},c.startAngle=function(e){return arguments.length?(o="function"==typeof e?e:kr(+e),c):o},c.endAngle=function(e){return arguments.length?(i="function"==typeof e?e:kr(+e),c):i},c.padAngle=function(e){return arguments.length?(a="function"==typeof e?e:kr(+e),c):a},c.context=function(e){return arguments.length?(s=null==e?null:e,c):s},c}jr.prototype;var ro=function(e){var t=e.color,n=e.href,r=e.theme;return{root:{fill:t,cursor:n?"pointer":"default",stroke:Ye.UK.white,outline:"transparent",selectors:{"::-moz-focus-inner":{border:"0"}}},focusRing:{stroke:r.semanticColors.focusBorder,strokeWidth:4,fill:"transparent"},arcLabel:{fontSize:Ye.TS.small,fontWeight:Ye.lq.semibold,fill:r.palette.neutralPrimary}}},oo=n(1783),io=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={},t.currentRef=o.createRef(),t._isRTL=(0,a.zg)(),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,o=n.yAxisCalloutData||n.data||0;return(null===(e=n.callOutAccessibilityData)||void 0===e?void 0:e.ariaLabel)||(r?"".concat(r,", "):"")+"".concat(o,".")},t._renderArcLabel=function(e){var n=t.props,r=n.arc,i=n.data,a=n.innerRadius,s=n.outerRadius,l=n.showLabelsInPercent,c=n.totalValue,u=n.hideLabels,d=n.activeArc;if(u||Math.abs(i.endAngle-i.startAngle)<Math.PI/12||d!==i.data.legend&&""!==d)return null;var h=r.centroid(i),p=h[0],f=h[1],g=Math.sqrt(p*p+f*f),m=Math.max(a,s)+2,v=(i.startAngle+i.endAngle)/2,_=i.value;return o.createElement("text",{x:(0===g?0:p/g)*m,y:(0===g?0:f/g)*m,textAnchor:v>Math.PI!==t._isRTL?"end":"start",dominantBaseline:v>Math.PI/2&&v<3*Math.PI/2?"hanging":"auto",className:e,"aria-hidden":!0},l?(0,oo.WU)(".0%")(0===c?0:_/c):(0,Kt.cE)(_))},t}return(0,t.ZT)(n,e),n.getDerivedStateFromProps=function(e){return ao(e),null},n.prototype.updateChart=function(e){ao(e)},n.prototype.render=function(){var e,t=this.props,n=t.arc,r=t.href,a=t.focusedArcId,s=(0,i.y)()(ro,{color:this.props.color,href:r,theme:this.props.theme}),l=this.props.uniqText+this.props.data.data.legend.replace(/\s+/,"")+this.props.data.data.data,c=this.props.activeArc===this.props.data.data.legend||""===this.props.activeArc?1:.1;return o.createElement("g",{ref:this.currentRef},!!a&&a===l&&o.createElement("path",{id:l+"focusRing",d:n(this.props.focusData),className:s.focusRing}),o.createElement("path",{id:l,d:n(this.props.data),onFocus:this._onFocus.bind(this,this.props.data.data,l),className:s.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:c,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(s.arcLabel))},n.prototype._onFocus=function(e,t){this.props.onFocusCallback(e,t,this.currentRef.current)},n.prototype._hoverOn=function(e,t){t.persist(),this.props.hoverOnCallback(e,t)},n.prototype._redirectToUrl=function(e){e&&(window.location.href=e)},n.defaultProps={arc:no()},n}(o.Component);function ao(e){e.arc.innerRadius(e.innerRadius),e.arc.outerRadius(e.outerRadius)}var so=function(e){var t,n=e.theme;return{root:{},insideDonutString:{fontSize:Ye.TS.xLargePlus,fontWeight:Ye.lq.semibold,fill:n.semanticColors.bodyText,selectors:(t={},t[Ye.$v]={fill:"rgb(179, 179, 179)"},t)}}},lo=(0,i.y)(),co=function(e){function n(t){var n=e.call(this,t)||this;return n.arcGenerator=function(e,t,r,i){var a=e&&e.data&&e.data.color;return o.createElement(io,{key:t,data:e,focusData:r,innerRadius:n.props.innerRadius,outerRadius:n.props.outerRadius,color:a,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=Wr().sort(null).value((function(e){return e.data})).padAngle(0),n}return(0,t.ZT)(n,e),n.prototype.render=function(){var e=this,t=this.props,n=t.pie,r=t.data,i=this._pieForFocusRing(r),a=n(r),s="translate(".concat(this.props.width/2,", ").concat(this.props.height/2,")"),l=lo(so,{theme:this.props.theme});return this._totalValue=this._computeTotalValue(),o.createElement("g",{transform:s},a.map((function(t,n){return e.arcGenerator(t,n,i[n],e.props.href)})),this.props.valueInsideDonut&&o.createElement("text",{y:5,textAnchor:"middle",dominantBaseline:"middle",className:l.insideDonutString,"data-is-focusable":!0},this.props.valueInsideDonut))},n.prototype.componentDidUpdate=function(){var e=lo(so,{theme:this.props.theme});(0,Kt.yQ)(e.insideDonutString,2*this.props.innerRadius-5)},n.prototype._hoverCallback=function(e,t){this.props.hoverOnCallback(e,t)},n.defaultProps={pie:Wr().sort(null).value((function(e){return e.data})).padAngle(.02)},n}(o.Component),uo={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"},ho={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"]},po={qualitative:ho,semantic:{info:["#015cda"],disabled:["#dbdbdb","#4d4d4d"],highError:["#6e0811","#cc2635"],error:["#c50f1f","#dc626d"],warning:["#f7630c","#f87528"],success:["#107c10","#54b054"],highSuccess:["#094509","#218c21"]}},fo=Object.values(ho),go=Object.values(uo),mo=function(e,t){if(0===e.length)return"";var n=Number(t);return n<e.length?e[n]:e[0]},vo=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=!1);var r=fo[(e+t)%fo.length];return mo(r,n)},_o=function(e,t){if(void 0===t&&(t=!1),go.indexOf(e)>=0){var n=e.split("."),r=n[0],o=n[1],i=po[r][o];return mo(i,t)}return e},yo=(0,i.y)(),xo=function(e){function n(n){var r=e.call(this,n)||this;return r._closeCallout=function(){r.setState({showHover:!1})},r._focusCallback=function(e,t,n){r._currentHoverElement=n,r.setState({showHover:""===r.state.selectedLegend||r.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})},r._hoverCallback=function(e,t){r._calloutAnchorPoint!==e&&(r._calloutAnchorPoint=e,r._currentHoverElement=t,r.setState({showHover:""===r.state.selectedLegend||r.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}))},r._onBlur=function(){r.setState({focusedArcId:""})},r._handleChartMouseLeave=function(){r._calloutAnchorPoint=null,r.setState({showHover:!1})},r._addDefaultColors=function(e){return e?e.map((function(e,n){var o,i,a;return a=void 0===e.color?vo(n,0,null===(o=r.props.theme)||void 0===o?void 0:o.isInverted):_o(e.color,null===(i=r.props.theme)||void 0===i?void 0:i.isInverted),(0,t.pi)((0,t.pi)({},e),{color:a})})):[]},r.state={showHover:!1,value:"",legend:"",_width:r.props.width||200,_height:r.props.height||200,activeLegend:"",color:"",xCalloutValue:"",yCalloutValue:"",selectedLegend:"",focusedArcId:""},r._hoverCallback=r._hoverCallback.bind(r),r._focusCallback=r._focusCallback.bind(r),r._hoverLeave=r._hoverLeave.bind(r),r._calloutId=f("callout"),r._uniqText=f("_Pie_"),r._emptyChartId=f("_DonutChart_empty"),r}return(0,t.ZT)(n,e),n.getDerivedStateFromProps=function(e,n){var r,o;return e.width&&e.width!==n._width&&(r={_width:e.width}),e.height&&e.height!==n._height&&(o={_height:e.height-40}),(0,t.pi)((0,t.pi)({},r),o)},n.prototype.componentDidMount=function(){this._rootElem&&this.setState({_width:this._rootElem.offsetWidth,_height:this._rootElem.offsetHeight-40})},n.prototype.render=function(){var e=this,n=this.props,r=n.data,i=n.hideLegend,a=void 0!==i&&i,s=this._addDefaultColors(null==r?void 0:r.chartData);this._classNames=yo(this.props.styles,{theme:this.props.theme,width:this.state._width,height:this.state._height,color:this.state.color,className:this.props.className});var l=this._createLegends(s),c=this.props.hideLabels?0:80,u=this.props.hideLabels?0:40,d=Math.min(this.state._width-c,this.state._height-u)/2,h=s.filter((function(e){return e.data>0})),p=this._valueInsideDonut(this.props.valueInsideDonut,h);return this._isChartEmpty()?o.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):o.createElement("div",{className:this._classNames.root,ref:function(t){return e._rootElem=t},onMouseLeave:this._handleChartMouseLeave},o.createElement(xn,{direction:Gt.horizontal,handleTabKey:1},o.createElement("div",null,o.createElement("svg",{className:this._classNames.chart,"aria-label":null==r?void 0:r.chartTitle,ref:function(t){return e._setViewBox(t)}},o.createElement(co,{width:this.state._width,height:this.state._height,outerRadius:d,innerRadius:this.props.innerRadius,data:h,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(p),theme:this.props.theme,showLabelsInPercent:this.props.showLabelsInPercent,hideLabels:this.props.hideLabels})))),o.createElement(jt,(0,t.pi)({target:this._currentHoverElement,alignTargetEdge:!0,isBeakVisible:!1,directionalHint:_.topAutoEdge,gapSpace:15,hidden:!(!this.props.hideTooltip&&this.state.showHover),id:this._calloutId,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0,shouldUpdateWhenHidden:!0},this.props.calloutProps,(0,Kt.ey)(this.state.callOutAccessibilityData,"text",!1)),this.props.onRenderCalloutPerDataPoint?this.props.onRenderCalloutPerDataPoint(this.state.dataPointCalloutProps):o.createElement($t.ChartHoverCard,{Legend:this.state.xCalloutValue?this.state.xCalloutValue:this.state.legend,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.value,color:this.state.color,culture:this.props.culture})),!a&&o.createElement("div",{className:this._classNames.legendContainer},l))},n.prototype._setViewBox=function(e){var t,n;if(null!==e){var r=e.parentElement?e.parentElement.clientWidth:this.state._width,o=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,i="0 0 ".concat(r," ").concat(o);e.setAttribute("viewBox",i)}},n.prototype._createLegends=function(e){var n=this,r=e.map((function(e,t){var r=e.color;return{title:e.legend,color:r,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 o.createElement(Ar,(0,t.pi)({legends:r,centerLegends:!0,overflowProps:this.props.legendsOverflowProps,focusZonePropsInHoverCard:this.props.focusZonePropsForLegendsInHoverCard,overflowText:this.props.legendsOverflowText},this.props.legendProps))},n.prototype._hoverLeave=function(){},n.prototype._valueInsideDonut=function(e,t){var n=this,r=this._getHighlightedLegend();if(void 0===e||""===r&&!this.state.showHover)return e;var o=e;return t.map((function(e,t){(e.legend===r||n.state.showHover&&e.legend===n.state.legend)&&(o=e.yAxisCalloutData?e.yAxisCalloutData:e.data)})),o},n.prototype._toLocaleString=function(e){var t=(0,Kt.Ts)(e,this.props.culture);return t?null==t?void 0:t.toString():e},n.prototype._getHighlightedLegend=function(){return this.state.selectedLegend||this.state.activeLegend},n.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.chartData&&this.props.data.chartData.filter((function(e){return e.data>0})).length>0)},n.defaultProps={innerRadius:0,hideLabels:!0},n}(o.Component),bo=(0,e.z)(xo,(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:"".concat(n,"px")}}})),Co=n(8485),Eo=n(7329);function So(e){this._context=e}function Ao(e){return new So(e)}function Lo(e){return e[0]}function ko(e){return e[1]}function To(e,t){var n=kr(!0),r=null,o=Ao,i=null,a=Gr(s);function s(s){var l,c,u,d=(s=Lr(s)).length,h=!1;for(null==r&&(i=o(u=a())),l=0;l<=d;++l)!(l<d&&n(c=s[l],l,s))===h&&((h=!h)?i.lineStart():i.lineEnd()),h&&i.point(+e(c,l,s),+t(c,l,s));if(u)return i=null,u+""||null}return e="function"==typeof e?e:void 0===e?Lo:kr(e),t="function"==typeof t?t:void 0===t?ko:kr(t),s.x=function(t){return arguments.length?(e="function"==typeof t?t:kr(+t),s):e},s.y=function(e){return arguments.length?(t="function"==typeof e?e:kr(+e),s):t},s.defined=function(e){return arguments.length?(n="function"==typeof e?e:kr(!!e),s):n},s.curve=function(e){return arguments.length?(o=e,null!=r&&(i=o(r)),s):o},s.context=function(e){return arguments.length?(null==e?r=i=null:i=o(r=e),s):r},s}So.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 wo,Do,Mo,Po=function(e){function n(t){var r=e.call(this,t)||this;return r._tooltipHost=o.createRef(),r._tooltipHostId=f("tooltip-host"),r.show=function(){r._toggleTooltip(!0)},r.dismiss=function(){r._hideTooltip()},r._getTargetElement=function(){if(r._tooltipHost.current)return r._tooltipHost.current},r._onTooltipFocus=function(e){r._ignoreNextFocusEvent?r._ignoreNextFocusEvent=!1:r._onTooltipMouseEnter(e)},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 t=r.props.delay;if(n._currentVisibleTooltip&&n._currentVisibleTooltip!==r&&n._currentVisibleTooltip.dismiss(),n._currentVisibleTooltip=r,r.state.isOverflowing&&(!e.target||!on(e.target,r._getTargetElement())))if(r._clearDismissTimer(),r._clearOpenTimer(),t!==Cn.zero){var o=r._getDelayTime(t);r._openTimerId=r._async.setTimeout((function(){r._toggleTooltip(!0)}),o)}else r._toggleTooltip(!0)},r._onTooltipMouseLeave=function(e){var t=r.props.closeDelay;r._clearDismissTimer(),r._clearOpenTimer(),t?r._dismissTimerId=r._async.setTimeout((function(){r._toggleTooltip(!1)}),t):r._toggleTooltip(!1),n._currentVisibleTooltip===r&&(n._currentVisibleTooltip=void 0)},r._onTooltipKeyDown=function(e){(e.which===Fe||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})},r._getDelayTime=function(e){switch(e){case Cn.medium:return 300;case Cn.long:return 500;default:return 0}},r._wrapContent=function(){var e=r.props,t=e.content,n=e.wrapContent,o=e.maxWidth,i=void 0===o?Number.POSITIVE_INFINITY:o,a=e.maxHeight,s=!1;t&&n&&n(t,r._tooltipHostId,i,a)&&(s=!0),r.state.isOverflowing!==s&&r.setState({isOverflowing:s})},r.state={isTooltipVisible:!1,isOverflowing:!1},r._async=new Ie(r),r}return(0,t.ZT)(n,e),n.prototype.render=function(){var e=this.props,n=e.content,r=e.tooltipProps,i=e.textProps,a=e.shouldReceiveFocus,s=void 0===a||a,l=this.state.isTooltipVisible,c=(0,t.pi)({content:n,targetElement:this._getTargetElement(),calloutProps:{onDismiss:this._hideTooltip,onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave},onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave},r),u=!!this.props.isTooltipVisibleProp&&this.state.isOverflowing&&!!n||l&&!!n;return o.createElement(o.Fragment,null,o.createElement("text",(0,t.pi)({},i,{id:this._tooltipHostId,ref:this._tooltipHost,onFocusCapture:this._onTooltipFocus,onBlurCapture:this._onTooltipBlur,onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave,onKeyDown:this._onTooltipKeyDown,"data-is-focusable":s&&this.state.isOverflowing}),n),u&&o.createElement(An,(0,t.pi)({},c)))},n.prototype.componentDidMount=function(){this._wrapContent()},n.prototype.componentDidUpdate=function(e){this.props.maxWidth===e.maxWidth&&this.props.maxHeight===e.maxHeight||this._wrapContent()},n.prototype.componentWillUnmount=function(){n._currentVisibleTooltip&&n._currentVisibleTooltip===this&&(n._currentVisibleTooltip=void 0),this._async.dispose()},n.defaultProps={delay:Cn.medium},n}(o.Component),Fo=(0,i.y)(),Io=(0,o.lazy)((function(){return Promise.resolve().then(n.bind(n,8024)).then((function(e){return{default:e.ChartHoverCard}}))})),No=function(e){function n(n){var r,i,s,l,c,u,d,h,p,g,m,v,_,y,x,b,C,E,S,A,L,k,T,w,D,M,P=this;return(P=e.call(this,n)||this).minLegendContainerHeight=32,P._isRtl=(0,a.zg)(),P._isFirstRender=!0,P.isIntegralDataset=!0,P._multiValueCallout=function(e){var n=P._yValueHoverSubCountsExists(e.YValueHover);return o.createElement("div",{className:P._classNames.calloutContentRoot},o.createElement("div",{className:P._classNames.calloutDateTimeContainer,style:n?{marginBottom:"11px"}:{}},o.createElement("div",(0,t.pi)({className:P._classNames.calloutContentX},(0,Kt.ey)(e.xAxisCalloutAccessibilityData,"text",!1)),(0,Kt.Ts)(e.hoverXValue,P.props.culture))),o.createElement("div",{className:P._classNames.calloutInfoContainer,style:n?{display:"flex"}:{}},e.YValueHover&&e.YValueHover.map((function(e,r,i){var a=r+1===i.length,s=e.shouldDrawBorderBottom,l=void 0!==s&&s;return o.createElement("div",(0,t.pi)({},(0,Kt.ey)(e.callOutAccessibilityData,"text",!1),{key:"callout-content-".concat(r),style:n?(0,t.pi)({display:"inline-block"},l&&{borderBottom:"1px solid ".concat(P.props.theme.semanticColors.menuDivider),paddingBottom:"10px"}):(0,t.pi)({},l&&{borderBottom:"1px solid ".concat(P.props.theme.semanticColors.menuDivider),paddingBottom:"10px"})}),P._getCalloutContent(e,r,n,a))})),!!e.descriptionMessage&&o.createElement("div",{className:P._classNames.descriptionMessage},e.descriptionMessage)))},P._getData=function(e,t){P.props.getGraphData&&P.props.getGraphData(e,t,P.state.containerHeight-P.state._removalValueForTextTuncate,P.state.containerWidth,P.xAxisElement,P.yAxisElement)},P._onChartLeave=function(){P.props.onChartMouseLeave&&P.props.onChartMouseLeave()},P._calculateChartMinWidth=function(){var e=10;if(!P.props.wrapXAxisLables&&P.props.rotateXAxisLables&&P.props.xAxisType===Kt.xl.StringAxis){var t=(0,Kt.yE)(P._tickValues,".".concat(P._classNames.xAxis," text"));e+=Math.ceil(t*Math.cos(Math.PI/4))}else if(P.props.showXAxisLablesTooltip){var n=P._tickValues.map((function(e){var t=P.props.noOfCharsToTruncate||4;return e.toString().length>t?"".concat(e.toString().slice(0,t),"..."):e}));t=(0,Kt.yE)(n,".".concat(P._classNames.xAxis," text")),e+=Math.ceil(t)}else if(P.props.wrapXAxisLables){var r=[];P._tickValues.forEach((function(e){r.push.apply(r,e.toString().split(/\s+/))})),t=(0,Kt.yE)(r,".".concat(P._classNames.xAxis," text")),e+=Math.max(Math.ceil(t),10)}else t=(0,Kt.yE)(P._tickValues,".".concat(P._classNames.xAxis," text")),e+=Math.ceil(t);var o=P.margins.left+P.margins.right+e*(P._tickValues.length-1);return[Kt.$X.GroupedVerticalBarChart,Kt.$X.VerticalBarChart,Kt.$X.VerticalStackedBarChart].includes(P.props.chartType)&&(o+=16),o},P.state={containerHeight:0,containerWidth:0,_width:P.props.width||600,_height:P.props.height||350,_removalValueForTextTuncate:0,isRemoveValCalculated:!0,startFromX:0},P.idForGraph=f("chart_"),P.titleMargin=8,P.idForDefaultTabbableElement=f("defaultTabbableElement_"),P.margins={top:null!==(i=null===(r=P.props.margins)||void 0===r?void 0:r.top)&&void 0!==i?i:20,bottom:null!==(l=null===(s=P.props.margins)||void 0===s?void 0:s.bottom)&&void 0!==l?l:35,right:P._isRtl?null!==(u=null===(c=P.props.margins)||void 0===c?void 0:c.left)&&void 0!==u?u:40:(null!==(h=null===(d=P.props.margins)||void 0===d?void 0:d.right)&&void 0!==h?h:null===(p=P.props)||void 0===p?void 0:p.secondaryYScaleOptions)?40:20,left:P._isRtl?(null!==(m=null===(g=P.props.margins)||void 0===g?void 0:g.right)&&void 0!==m?m:null===(v=P.props)||void 0===v?void 0:v.secondaryYScaleOptions)?40:20:null!==(y=null===(_=P.props.margins)||void 0===_?void 0:_.left)&&void 0!==y?y:40},void 0!==P.props.xAxisTitle&&""!==P.props.xAxisTitle&&(P.margins.bottom=null!==(b=null===(x=P.props.margins)||void 0===x?void 0:x.bottom)&&void 0!==b?b:55),void 0!==P.props.yAxisTitle&&""!==P.props.yAxisTitle&&(P.margins.left=P._isRtl?(null!==(E=null===(C=P.props.margins)||void 0===C?void 0:C.right)&&void 0!==E?E:null===(S=P.props)||void 0===S?void 0:S.secondaryYAxistitle)?60:40:null!==(L=null===(A=P.props.margins)||void 0===A?void 0:A.left)&&void 0!==L?L:60,P.margins.right=P._isRtl?null!==(T=null===(k=P.props.margins)||void 0===k?void 0:k.left)&&void 0!==T?T:60:(null!==(D=null===(w=P.props.margins)||void 0===w?void 0:w.right)&&void 0!==D?D:null===(M=P.props)||void 0===M?void 0:M.secondaryYAxistitle)?60:40),P}return(0,t.ZT)(n,e),n.prototype.componentDidMount=function(){if(this._fitParentContainer(),this.props.chartType===Kt.$X.HorizontalBarChartWithAxis&&this.props.showYAxisLables&&this.yAxisElement){var e=(0,Kt.yE)(this.props.points.map((function(e){return e.y})),".".concat(this._classNames.yAxis," text"));this.state.startFromX!==e&&this.setState({startFromX:e})}else 0!==this.state.startFromX&&this.setState({startFromX:0});this.isIntegralDataset=!this.props.points.some((function(e){return e.y%1!=0}))},n.prototype.componentWillUnmount=function(){cancelAnimationFrame(this._reqID)},n.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===Kt.xl.StringAxis){var t={node:this.xAxisElement,xAxis:this._xScale},n=(0,Kt.zs)(t);this.state.isRemoveValCalculated&&this.state._removalValueForTextTuncate!==n+this.margins.bottom&&n>0&&this.setState({_removalValueForTextTuncate:n+this.margins.bottom,isRemoveValCalculated:!1})}if(this.props.chartType===Kt.$X.HorizontalBarChartWithAxis&&this.props.showYAxisLables&&this.yAxisElement){var r=(0,Kt.yE)(this.props.points.map((function(e){return e.y})),".".concat(this._classNames.yAxis," text"));this.state.startFromX!==r&&this.setState({startFromX:r})}else 0!==this.state.startFromX&&this.setState({startFromX:0});e.points!==this.props.points&&(this.isIntegralDataset=!this.props.points.some((function(e){return e.y%1!=0})))},n.prototype.render=function(){var e,n,r,i,a,s,l,c,u,d,h=this,p=this.props,f=p.calloutProps,g=p.points,m=p.chartType,v=p.chartHoverProps,_=p.svgFocusZoneProps,y=p.svgProps,x=p.culture,b=p.dateLocalizeOptions,C=p.timeFormatLocale,E=p.customDateTimeFormatter;this.props.parentRef&&this._fitParentContainer();var S=(0,t.pi)({},this.margins);this.props.chartType===Kt.$X.HorizontalBarChartWithAxis&&(this._isRtl?S.right+=this.state.startFromX:S.left+=this.state.startFromX),this.props.getmargins&&this.props.getmargins(S);var A=null,L=null;if(this.props.enableFirstRenderOptimization&&this.chartContainer||!this.props.enableFirstRenderOptimization){this._isFirstRender=!1;var k={domainNRangeValues:(0,Kt.dr)(g,this.props.getDomainMargins?this.props.getDomainMargins(this.state.containerWidth):this.margins,this.state.containerWidth,m,this._isRtl,this.props.xAxisType,this.props.barwidth,this.props.tickValues,this.state.startFromX),containerHeight:this.state.containerHeight-this.state._removalValueForTextTuncate,margins:this.margins,xAxisElement:this.xAxisElement,showRoundOffXTickValues:!0,xAxisCount:this.props.xAxisTickCount,xAxistickSize:this.props.xAxistickSize,tickPadding:this.props.tickPadding||this.props.showXAxisLablesTooltip?5:10,xAxisPadding:this.props.xAxisPadding,xAxisInnerPadding:this.props.xAxisInnerPadding,xAxisOuterPadding:this.props.xAxisOuterPadding},T={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:(0,Kt.As)(g,m,this.props.yAxisType),yAxisPadding:this.props.yAxisPadding||0},w=void 0,D=void 0;switch(this.props.xAxisType){case Kt.xl.NumericAxis:w=(e=(0,Kt.OX)(k,this.props.chartType,x)).xScale,D=e.tickValues;break;case Kt.xl.DateAxis:w=(n=(0,Kt.s8)(k,this.props.tickParams,x,b,C,E)).xScale,D=n.tickValues;break;case Kt.xl.StringAxis:w=(r=(0,Kt.R)(k,this.props.tickParams,this.props.datasetForXAxisDomain,x)).xScale,D=r.tickValues;break;default:w=(i=(0,Kt.OX)(k,this.props.chartType,x)).xScale,D=i.tickValues}if(this._xScale=w,this._tickValues=D,this.props.wrapXAxisLables||this.props.showXAxisLablesTooltip){var M={node:this.xAxisElement,xAxis:w,showXAxisLablesTooltip:this.props.showXAxisLablesTooltip||!1,noOfCharsToTruncate:this.props.noOfCharsToTruncate||4},P=w&&(0,Kt.Pu)(M);this.state.isRemoveValCalculated&&this.state._removalValueForTextTuncate!==P&&this.setState({_removalValueForTextTuncate:P,isRemoveValCalculated:!1})}var F=void 0,I=void 0,N={yAxisDomainValues:[]};if(this.props.yAxisType&&this.props.yAxisType===Kt.OH.StringAxis)F=(0,Kt.Tj)(T,this.props.stringDatasetForYAxisDomain,this._isRtl,this.props.chartType,this.props.barwidth,x);else{if(null===(a=this.props)||void 0===a?void 0:a.secondaryYScaleOptions){var V={margins:this.margins,containerWidth:this.state.containerWidth,containerHeight:this.state.containerHeight-this.state._removalValueForTextTuncate,yAxisElement:this.yAxisElementSecondary,yAxisTickFormat:this.props.yAxisTickFormat,yAxisTickCount:this.props.yAxisTickCount,yMinValue:(null===(s=this.props.secondaryYScaleOptions)||void 0===s?void 0:s.yMinValue)||0,yMaxValue:null!==(c=null===(l=this.props.secondaryYScaleOptions)||void 0===l?void 0:l.yMaxValue)&&void 0!==c?c:100,tickPadding:10,maxOfYVal:null!==(d=null===(u=this.props.secondaryYScaleOptions)||void 0===u?void 0:u.yMaxValue)&&void 0!==d?d:100,yMinMaxValues:(0,Kt.As)(g,m),yAxisPadding:this.props.yAxisPadding};I=(0,Kt.eQ)(V,this._isRtl,N,m,this.props.barwidth,this.isIntegralDataset,!0)}F=(0,Kt.eQ)(T,this._isRtl,N,m,this.props.barwidth,this.isIntegralDataset)}this.props.chartType===Kt.$X.HorizontalBarChartWithAxis&&F&&(0,Kt.Ay)(this.yAxisElement,F,this.props.noOfCharsToTruncate||4,this.props.showYAxisLablesTooltip||!1,this.state.startFromX,this._isRtl),this.props.getAxisData&&this.props.getAxisData(N),this._getData(w,F),L=this.props.children((0,t.pi)((0,t.pi)({},this.state),{xScale:w,yScale:F,yScaleSecondary:I})),!this.props.hideTooltip&&f.isCalloutVisible&&(A=this._generateCallout(f,v))}this._classNames=Fo(this.props.styles,{theme:this.props.theme,width:this.state._width,height:this.state._height,className:this.props.className,isRtl:this._isRtl});var O,H={width:this.state.containerWidth,height:this.state.containerHeight};O=this.props.focusZoneDirection===Gt.vertical||this.props.focusZoneDirection?this.props.focusZoneDirection:Gt.horizontal;var B=H.width-this.margins.left-this.margins.right-this.state.startFromX,R=H.height-this.margins.bottom-this.margins.top-this.state._removalValueForTextTuncate-this.titleMargin;return o.createElement("div",{id:this.idForGraph,className:this._classNames.root,role:"presentation",ref:function(e){return h.chartContainer=e},onMouseLeave:this._onChartLeave},!this._isFirstRender&&o.createElement("div",{id:this.idForDefaultTabbableElement}),o.createElement(xn,(0,t.pi)({direction:O,className:this._classNames.chartWrapper,defaultTabbableElement:"#".concat(this.idForDefaultTabbableElement)},_),this._isFirstRender&&o.createElement("div",{id:this.idForDefaultTabbableElement}),o.createElement("svg",(0,t.pi)({width:H.width,height:H.height,"aria-label":this.props.chartTitle,style:{display:"block"}},y),o.createElement("g",{ref:function(e){h.xAxisElement=e},id:"xAxisGElement".concat(this.idForGraph),transform:"translate(0, ".concat(H.height-this.margins.bottom-this.state._removalValueForTextTuncate,")"),className:this._classNames.xAxis}),void 0!==this.props.xAxisTitle&&""!==this.props.xAxisTitle&&o.createElement(Po,{content:this.props.xAxisTitle,textProps:{x:this.margins.left+this.state.startFromX+B/2,y:H.height-this.titleMargin,className:this._classNames.axisTitle,textAnchor:"middle"},maxWidth:B,wrapContent:Kt.nX}),o.createElement("g",{ref:function(e){h.yAxisElement=e},id:"yAxisGElement".concat(this.idForGraph),transform:"translate(".concat(this._isRtl?H.width-this.margins.right-this.state.startFromX:this.margins.left+this.state.startFromX,", 0)"),className:this._classNames.yAxis}),this.props.secondaryYScaleOptions&&o.createElement("g",null,o.createElement("g",{ref:function(e){h.yAxisElementSecondary=e},id:"yAxisGElementSecondary".concat(this.idForGraph),transform:"translate(".concat(this._isRtl?this.margins.left:H.width-this.margins.right,", 0)"),className:this._classNames.yAxis}),void 0!==this.props.secondaryYAxistitle&&""!==this.props.secondaryYAxistitle&&o.createElement(Po,{content:this.props.secondaryYAxistitle,textProps:{x:(R-this.margins.bottom)/2+this.state._removalValueForTextTuncate,y:this._isRtl?this.state.startFromX-this.titleMargin:H.width-this.margins.right,textAnchor:"middle",transform:"translate(".concat(this._isRtl?this.margins.right/2-this.titleMargin:this.margins.right/2+this.titleMargin,",\n ").concat(H.height-this.margins.bottom-this.margins.top-this.titleMargin,")rotate(-90)"),className:this._classNames.axisTitle},maxWidth:R,wrapContent:Kt.nX})),L,void 0!==this.props.yAxisTitle&&""!==this.props.yAxisTitle&&o.createElement(Po,{content:this.props.yAxisTitle,textProps:{x:(R-this.margins.bottom)/2+this.state._removalValueForTextTuncate,y:this._isRtl?H.width-this.margins.right/2+this.titleMargin:this.margins.left/2+this.state.startFromX-this.titleMargin,textAnchor:"middle",transform:"translate(0,\n ".concat(H.height-this.margins.bottom-this.margins.top-this.titleMargin,")rotate(-90)"),className:this._classNames.axisTitle},maxWidth:R,wrapContent:Kt.nX}))),!this.props.hideLegend&&o.createElement("div",{ref:function(e){return h.legendContainer=e},className:this._classNames.legendContainer},this.props.legendBars),A&&o.createElement(o.Suspense,{fallback:o.createElement("div",null,"Loading...")},A))},n.prototype._generateCallout=function(e,n){return o.createElement(jt,(0,t.pi)({hidden:!(!this.props.hideTooltip&&e.isCalloutVisible),shouldUpdateWhenHidden:!0},e),this.props.customizedCallout&&this.props.customizedCallout,!this.props.customizedCallout&&this.props.isCalloutForStack&&this._multiValueCallout(e),!this.props.customizedCallout&&!this.props.isCalloutForStack&&o.createElement(Io,(0,t.pi)({XValue:e.XValue,Legend:e.legend,YValue:e.YValue,color:e.color,culture:this.props.culture},n)))},n.prototype._yValueHoverSubCountsExists=function(e){return!!e&&e.some((function(e){return e.yAxisCalloutData&&"string"!=typeof e.yAxisCalloutData}))},n.prototype._getCalloutContent=function(e,t,n,r){var i,a=r?{}:{marginRight:"16px"},s=void 0!==e.index&&-1!==e.index,l=Fo(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:s}),c=this.props.culture,u=(0,Kt.Ts)(e.y,c);if(e.yAxisCalloutData&&"string"!=typeof e.yAxisCalloutData){var d=e.yAxisCalloutData;return o.createElement("div",{style:a},o.createElement("div",{className:"ms-fontWeight-semibold",style:{fontSize:"12pt"}},e.legend," (",u,")"),Object.keys(d).map((function(e){return o.createElement("div",{key:e,className:l.calloutBlockContainer},o.createElement("div",{className:l.calloutlegendText}," ",(0,Kt.Ts)(e,c)),o.createElement("div",{className:l.calloutContentY},(0,Kt.Ts)(d[e],c)))})))}return o.createElement("div",{style:n?a:{}},n&&o.createElement("div",{className:"ms-fontWeight-semibold",style:{fontSize:"12pt"}},e.legend," (",u,")"),o.createElement("div",{id:"".concat(t,"_").concat(e.y),className:l.calloutBlockContainer},s&&o.createElement(Cr,{svgProps:{className:l.shapeStyles},pathProps:{fill:e.color},shape:Kt.wo[e.index%Object.keys(Kt.Ml).length]}),o.createElement("div",null,o.createElement("div",{className:l.calloutlegendText}," ",e.legend),o.createElement("div",{className:l.calloutContentY},(0,Kt.Ts)(e.yAxisCalloutData?e.yAxisCalloutData:null!==(i=e.y)&&void 0!==i?i:e.data,c)))))},n.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 o=e.legendContainer&&getComputedStyle(e.legendContainer);t=(e.legendContainer&&e.legendContainer.getBoundingClientRect().height||e.minLegendContainerHeight)+parseFloat(o&&o.marginTop||"0")+parseFloat(o&&o.marginBottom||"0")}if(e.props.parentRef||e.chartContainer){var i=e.props.parentRef?e.props.parentRef:e.chartContainer,a=e.props.enableReflow&&!e._isFirstRender?Math.max(i.getBoundingClientRect().width,e._calculateChartMinWidth()):i.getBoundingClientRect().width,s=i.getBoundingClientRect().height>t?i.getBoundingClientRect().height:350;(n!==a||r!==s-t)&&e.setState({containerWidth:a,containerHeight:s-t})}}))},n}(o.Component);!function(e){e.shade30="#004578",e.shade20="#005a9e",e.shade10="#106ebe",e.primary="#0078d4",e.tint10="#2b88d8",e.tint20="#c7e0f4",e.tint30="#deecf9",e.tint40="#eff6fc"}(wo||(wo={})),function(e){e.black="#000000",e.gray220="#11100f",e.gray210="#161514",e.gray200="#1b1a19",e.gray190="#201f1e",e.gray180="#252423",e.gray170="#292827",e.gray160="#323130",e.gray150="#3b3a39",e.gray140="#484644",e.gray130="#605e5c",e.gray120="#797775",e.gray110="#8a8886",e.gray100="#979593",e.gray90="#a19f9d",e.gray80="#b3b0ad",e.gray70="#bebbb8",e.gray60="#c8c6c4",e.gray50="#d2d0ce",e.gray40="#e1dfdd",e.gray30="#edebe9",e.gray20="#f3f2f1",e.gray10="#faf9f8",e.white="#ffffff"}(Do||(Do={})),function(e){e.pinkRed10="#750b1c",e.red20="#a4262c",e.red10="#d13438",e.redOrange20="#603d30",e.redOrange10="#da3b01",e.orange30="#8e562e",e.orange20="#ca5010",e.orange10="#ffaa44",e.yellow10="#fce100",e.orangeYellow20="#986f0b",e.orangeYellow10="#c19c00",e.yellowGreen10="#8cbd18",e.green20="#0b6a0b",e.green10="#498205",e.greenCyan10="#00ad56",e.cyan40="#005e50",e.cyan30="#005b70",e.cyan20="#038387",e.cyan10="#00b7c3",e.cyanBlue20="#004e8c",e.cyanBlue10="#0078d4",e.blue10="#4f6bed",e.blueMagenta40="#373277",e.blueMagenta30="#5c2e91",e.blueMagenta20="#8764b8",e.blueMagenta10="#8378de",e.magenta20="#881798",e.magenta10="#c239b3",e.magentaPink20="#9b0062",e.magentaPink10="#e3008c",e.gray40="#393939",e.gray30="#7a7574",e.gray20="#69797e",e.gray10="#a0aeb2"}(Mo||(Mo={}));var Vo=function(){var e,t=(0,s.J)();return!!(null===(e=null==t?void 0:t.navigator)||void 0===e?void 0:e.userAgent)&&t.navigator.userAgent.indexOf("rv:11.0")>-1}(),Oo=(0,e.z)(No,(function(e){var n,r,o,i,a,s,l,c,u=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"},u],chartWrapper:{overflow:"auto"},axisTitle:[d.fonts.xSmall,{textAlign:"center",fontWeight:Ye.lq.semibold,fontStyle:"normal",lineHeight:Ye.TS.medium,color:Do.gray160,fill:d.semanticColors.bodyText}],xAxis:{selectors:{text:[d.fonts.tiny,{fill:d.semanticColors.bodyText,fontWeight:"600",selectors:(n={},n[Ye.$v]={fill:"rgb(179, 179, 179)"},n)}],line:{opacity:.2,stroke:d.semanticColors.bodyText,width:"1px",selectors:(r={},r[Ye.$v]={opacity:.1,stroke:"rgb(179, 179, 179)"},r)},path:{display:"none"}}},yAxis:{selectors:{text:[d.fonts.tiny,{fill:d.semanticColors.bodyText,fontWeight:"600",selectors:(o={},o[Ye.$v]={fill:"rgb(179, 179, 179)"},o)}],path:{display:"none"},line:{opacity:.2,stroke:d.semanticColors.bodyText,selectors:(i={},i[Ye.$v]={opacity:.1,stroke:"rgb(179, 179, 179)"},i)},g:[h&&!Vo&&{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:[(0,t.pi)((0,t.pi)({},_.small),{lineHeight:"16px",opacity:"0.8",color:d.semanticColors.bodySubtext})],calloutBlockContainer:[d.fonts.mediumPlus,{marginTop:"13px",color:d.semanticColors.bodyText},!v&&{selectors:(a={},a[Ye.qJ]={forcedColorAdjust:"none"},a),borderLeft:"4px solid ".concat(m),paddingLeft:"8px"},v&&{display:"flex"}],shapeStyles:{marginRight:"8px"},calloutlegendText:(0,t.pi)((0,t.pi)({},_.small),{lineHeight:"16px",selectors:(s={},s[Ye.$v]={color:"rgb(255, 255, 255)"},s),color:d.semanticColors.bodySubtext}),calloutContentY:[(0,t.pi)((0,t.pi)({},_.mediumPlus),{fontWeight:"bold",lineHeight:"22px",selectors:(l={},l[Ye.$v]={color:"rgb(255, 255, 255)"},l)})],descriptionMessage:[d.fonts.small,{selectors:(c={},c[Ye.$v]={color:"rgb(255, 255, 255)"},c),color:d.semanticColors.bodyText,marginTop:"10px",paddingTop:"10px",borderTop:"1px solid ".concat(d.semanticColors.menuDivider)}]}})),Ho=(0,ut.Ct)((function(e){return(0,ut.Ct)((function(t){var n=(0,ut.Ct)((function(e){return function(n){return t(n,e)}}));return function(r,o){return e(r,o?n(o):t)}}))}));function Bo(e,t){return Ho(e)(t)}var Ro=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)},zo=function(e,t){"scrollTop"in e?e.scrollTop=t:"scrollY"in e&&e.scrollTo(e.scrollX,t)},Wo="spacer-",Yo={top:-1,bottom:-1,left:-1,right:-1,width:0,height:0},Zo=function(e){return e.getBoundingClientRect()},qo=Zo,Xo=Zo,Uo=function(e){function n(n){var r=e.call(this,n)||this;return r._root=o.createRef(),r._surface=o.createRef(),r._pageRefs={},r._getDerivedStateFromProps=function(e,t){return e.items!==r.props.items||e.renderCount!==r.props.renderCount||e.startIndex!==r.props.startIndex||e.version!==r.props.version||!t.hasMounted&&r.props.renderEarly&&(0,Pt.N)()?(r._resetRequiredWindows(),r._requiredRect=null,r._measureVersion++,r._invalidatePageCache(),r._updatePages(e,t)):t},r._onRenderRoot=function(e){var n=e.rootRef,r=e.surfaceElement,i=e.divProps;return o.createElement("div",(0,t.pi)({ref:n},i),r)},r._onRenderSurface=function(e){var n=e.surfaceRef,r=e.pageElements,i=e.divProps;return o.createElement("div",(0,t.pi)({ref:n},i),r)},r._onRenderPage=function(e,n){for(var i,a=r.props,s=a.onRenderCell,l=a.onRenderCellConditional,c=a.role,u=e.page,d=u.items,h=void 0===d?[]:d,p=u.startIndex,f=(0,t._T)(e,["page"]),g=void 0===c?"listitem":"presentation",m=[],v=0;v<h.length;v++){var _=p+v,y=h[v],x=r.props.getKey?r.props.getKey(y,_):y&&y.key;null==x&&(x=_);var b=null!=l?l:s,C=null!==(i=null==b?void 0:b(y,_,r.props.ignoreScrollingState?void 0:r.state.isScrolling))&&void 0!==i?i:null;l&&!C||m.push(o.createElement("div",{role:g,className:"ms-List-cell",key:x,"data-list-index":_,"data-automationid":"ListCell"},C))}return o.createElement("div",(0,t.pi)({},f),m)},Qt(r),r.state={pages:[],isScrolling:!1,getDerivedStateFromProps:r._getDerivedStateFromProps,hasMounted:!1},r._estimatedPageHeight=0,r._totalEstimates=0,r._requiredWindowsAhead=0,r._requiredWindowsBehind=0,r._measureVersion=0,r._cachedPageHeights={},r._estimatedPageHeight=0,r._focusedIndex=-1,r._pageCache={},r}return(0,t.ZT)(n,e),n.getDerivedStateFromProps=function(e,t){return t.getDerivedStateFromProps(e,t)},Object.defineProperty(n.prototype,"pageRefs",{get:function(){return this._pageRefs},enumerable:!1,configurable:!0}),n.prototype.scrollToIndex=function(e,t,n){void 0===n&&(n=0);for(var r=this.props.startIndex,o=r+this._getRenderCount(),i=this._allowedRect,a=0,s=1,l=r;l<o;l+=s){var c=this._getPageSpecification(this.props,l,i),u=c.height;if(s=c.itemCount,l<=e&&l+s>e){if(t&&this._scrollElement){for(var d=Xo(this._scrollElement),h=Ro(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 zo(this._scrollElement,a);case 2:return void zo(this._scrollElement,m-d.height);case 3:return void zo(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&&zo(this._scrollElement,a))}a+=u}},n.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 o=Math.floor(r.height/r.itemCount);return r.startIndex+Math.floor((this._scrollTop-r.top)/o)}for(var i=0,a=r.startIndex;a<r.startIndex+r.itemCount;a++){if(o=e(a),r.top+i<=this._scrollTop&&this._scrollTop<r.top+i+o)return a;i+=o}}}return 0},n.prototype.componentDidMount=function(){this._async=new Ie(this),this._events=new On(this),this._onAsyncScrollDebounced=this._async.debounce(this._onAsyncScroll,100,{leading:!1,maxWait:500}),this._onAsyncIdleDebounced=this._async.debounce(this._onAsyncIdle,200,{leading:!1}),this._onAsyncResizeDebounced=this._async.debounce(this._onAsyncResize,16,{leading:!1}),this._onScrollingDoneDebounced=this._async.debounce(this._onScrollingDone,500,{leading:!1}),this._scrollElement=te(this._root.current),this._scrollTop=0,this.setState((0,t.pi)((0,t.pi)({},this._updatePages(this.props,this.state)),{hasMounted:!0})),this._measureVersion++;var e=function(e){var t;return(null!==(t=null==e?void 0:e.window)&&void 0!==t?t:"undefined"!=typeof window)?window:void 0}(this.context);this._events.on(e,"resize",this._onAsyncResizeDebounced),this._root.current&&this._events.on(this._root.current,"focus",this._onFocus,!0),this._scrollElement&&(this._events.on(this._scrollElement,"scroll",this._onScroll),this._events.on(this._scrollElement,"scroll",this._onAsyncScrollDebounced))},n.prototype.componentDidUpdate=function(e,t){var n=this.props,r=this.state;this.state.pagesVersion!==t.pagesVersion&&(n.getPageHeight?this._onAsyncIdleDebounced():this._updatePageMeasurements(r.pages)?(this._materializedRect=null,this._hasCompletedFirstRender?this._onAsyncScrollDebounced():(this._hasCompletedFirstRender=!0,this.setState(this._updatePages(n,r)))):this._onAsyncIdleDebounced(),n.onPagesUpdated&&n.onPagesUpdated(r.pages))},n.prototype.componentWillUnmount=function(){var e,t;null===(e=this._async)||void 0===e||e.dispose(),null===(t=this._events)||void 0===t||t.dispose(),delete this._scrollElement},n.prototype.shouldComponentUpdate=function(e,t){var n=this.state.pages,r=t.pages,o=!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 i=0;i<n.length;i++){var a=n[i],s=r[i];if(a.key!==s.key||a.itemCount!==s.itemCount){o=!0;break}}else o=!0;return o},n.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)},n.prototype.getTotalListHeight=function(){return this._surfaceRect.height},n.prototype.render=function(){for(var e=this.props,n=e.className,r=e.role,o=void 0===r?"list":r,i=e.onRenderSurface,a=e.onRenderRoot,s=this.state.pages,l=void 0===s?[]:s,c=[],u=X(this.props,q),d=0,h=l;d<h.length;d++){var p=h[d];c.push(this._renderPage(p))}var f=i?Bo(i,this._onRenderSurface):this._onRenderSurface;return(a?Bo(a,this._onRenderRoot):this._onRenderRoot)({rootRef:this._root,pages:l,surfaceElement:f({surfaceRef:this._surface,pages:l,pageElements:c,divProps:{role:"presentation",className:"ms-List-surface"}}),divProps:(0,t.pi)((0,t.pi)({},u),{className:U("ms-List",n),role:c.length>0?o:void 0,"aria-label":c.length>0?u["aria-label"]:void 0})})},n.prototype._shouldVirtualize=function(e){void 0===e&&(e=this.props);var t=e.onShouldVirtualize;return!t||t(e)},n.prototype._invalidatePageCache=function(){this._pageCache={}},n.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 o=this._getPageStyle(e),i=this.props.onRenderPage,a=(void 0===i?this._onRenderPage:i)({page:e,className:"ms-List-page",key:e.key,ref:function(t){n._pageRefs[e.key]=t},style:o,role:"presentation"},this._onRenderPage);return r&&0===e.startIndex&&(this._pageCache[e.key]={page:e,pageElement:a}),a},n.prototype._getPageStyle=function(e){var n=this.props.getPageStyle;return(0,t.pi)((0,t.pi)({},n?n(e):{}),e.items?{}:{height:e.height})},n.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=y(t)}},n.prototype._onScroll=function(){this.state.isScrolling||this.props.ignoreScrollingState||this.setState({isScrolling:!0}),this._resetRequiredWindows(),this._onScrollingDoneDebounced()},n.prototype._resetRequiredWindows=function(){this._requiredWindowsAhead=0,this._requiredWindowsBehind=0},n.prototype._onAsyncScroll=function(){var 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))},n.prototype._onAsyncIdle=function(){var e=this.props,t=e.renderedWindowsAhead,n=e.renderedWindowsBehind,r=this._requiredWindowsAhead,o=this._requiredWindowsBehind,i=Math.min(t,r+1),a=Math.min(n,o+1);i===r&&a===o||(this._requiredWindowsAhead=i,this._requiredWindowsBehind=a,this._updateRenderRects(this.props,this.state),this.setState(this._updatePages(this.props,this.state))),(t>i||n>a)&&this._onAsyncIdleDebounced()},n.prototype._onScrollingDone=function(){this.props.ignoreScrollingState||this.setState({isScrolling:!1})},n.prototype._onAsyncResize=function(){this.forceUpdate()},n.prototype._updatePages=function(e,n){this._requiredRect||this._updateRenderRects(e,n);var r=this._buildPages(e,n),o=n.pages;return this._notifyPageChanges(o,r.pages,this.props),(0,t.pi)((0,t.pi)((0,t.pi)({},n),r),{pagesVersion:{}})},n.prototype._notifyPageChanges=function(e,t,n){var r=n.onPageAdded,o=n.onPageRemoved;if(r||o){for(var i={},a=0,s=e;a<s.length;a++)(u=s[a]).items&&(i[u.startIndex]=u);for(var l=0,c=t;l<c.length;l++){var u;(u=c[l]).items&&(i[u.startIndex]?delete i[u.startIndex]:this._onPageAdded(u))}for(var d in i)i.hasOwnProperty(d)&&this._onPageRemoved(i[d])}},n.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},n.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 o={width:n.clientWidth,height:n.clientHeight};(o.height||o.width)&&(t=e.height!==o.height,e.height=o.height,this._cachedPageHeights[e.startIndex]={height:o.height,measureVersion:this._measureVersion},this._estimatedPageHeight=Math.round((this._estimatedPageHeight*this._totalEstimates+o.height)/(this._totalEstimates+1)),this._totalEstimates++)}return t},n.prototype._onPageAdded=function(e){var t=this.props.onPageAdded;t&&t(e)},n.prototype._onPageRemoved=function(e){var t=this.props.onPageRemoved;t&&t(e)},n.prototype._buildPages=function(e,n){var r=e.renderCount,o=e.items,i=e.startIndex,a=e.getPageHeight;r=this._getRenderCount(e);for(var s=(0,t.pi)({},Yo),l=[],c=1,u=0,d=null,h=this._focusedIndex,p=i+r,f=this._shouldVirtualize(e),g=0===this._estimatedPageHeight&&!a,v=this._allowedRect,_=function(t){var r=y._getPageSpecification(e,t,v),a=r.height,_=r.data,x=r.key;c=r.itemCount;var b,C,E=u+a-1,S=m(n.pages,(function(e){return!!e.items&&e.startIndex===t}))>-1,A=!v||E>=v.top&&u<=v.bottom,L=!y._requiredRect||E>=y._requiredRect.top&&u<=y._requiredRect.bottom;if(!g&&(L||A&&S)||!f||h>=t&&h<t+c||t===i){d&&(l.push(d),d=null);var k=Math.min(c,p-t),T=y._createPage(x,o.slice(t,t+k),t,void 0,void 0,_);T.top=u,T.height=a,y._visibleRect&&y._visibleRect.bottom&&(T.isVisible=E>=y._visibleRect.top&&u<=y._visibleRect.bottom),l.push(T),L&&y._allowedRect&&(b=s,C={top:u,bottom:E,height:a,left:v.left,right:v.right,width:v.width},b.top=C.top<b.top||-1===b.top?C.top:b.top,b.left=C.left<b.left||-1===b.left?C.left:b.left,b.bottom=C.bottom>b.bottom||-1===b.bottom?C.bottom:b.bottom,b.right=C.right>b.right||-1===b.right?C.right:b.right,b.width=b.right-b.left+1,b.height=b.bottom-b.top+1)}else d||(d=y._createPage(Wo+t,void 0,t,0,void 0,_,!0)),d.height=(d.height||0)+(E-u)+1,d.itemCount+=c;if(u+=E-u+1,g&&f)return"break"},y=this,x=i;x<p&&"break"!==_(x);x+=c);return d&&(d.key=Wo+"end",l.push(d)),this._materializedRect=s,(0,t.pi)((0,t.pi)({},n),{pages:l,measureVersion:this._measureVersion})},n.prototype._getPageSpecification=function(e,t,n){var r=e.getPageSpecification;if(r){var o=r(t,n,e.items),i=o.itemCount,a=void 0===i?this._getItemCountForPage(t,n):i,s=o.height;return{itemCount:a,height:void 0===s?this._getPageHeight(t,n,a):s,data:o.data,key:o.key}}return{itemCount:a=this._getItemCountForPage(t,n),height:this._getPageHeight(t,n,a)}},n.prototype._getPageHeight=function(e,t,n){if(this.props.getPageHeight)return this.props.getPageHeight(e,t,n,this.props.items);var r=this._cachedPageHeights[e];return r?r.height:this._estimatedPageHeight||30},n.prototype._getItemCountForPage=function(e,t){return(this.props.getItemCountForPage?this.props.getItemCountForPage(e,t):10)||10},n.prototype._createPage=function(e,t,n,r,o,i,a){void 0===n&&(n=-1),void 0===r&&(r=t?t.length:0),void 0===o&&(o={}),e=e||"page-"+n;var s=this._pageCache[e];return s&&s.page?s.page:{key:e,startIndex:n,itemCount:r,items:t,style:o,top:0,height:0,data:i,isSpacer:a||!1}},n.prototype._getRenderCount=function(e){var t=e||this.props,n=t.items,r=t.startIndex,o=t.renderCount;return void 0===o?n?n.length-r:0:o},n.prototype._updateRenderRects=function(e,n,r){var o=e.renderedWindowsAhead,i=e.renderedWindowsBehind,a=n.pages;if(this._shouldVirtualize(e)){var l=this._surfaceRect||(0,t.pi)({},Yo),c=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=Ro(this._scrollElement);this._surface.current&&(r||!a||!this._surfaceRect||!c||c!==this._scrollHeight||Math.abs(this._scrollTop-u)>this._estimatedPageHeight/3)&&(l=this._surfaceRect=qo(this._surface.current),this._scrollTop=u),!r&&c&&c===this._scrollHeight||this._measureVersion++,this._scrollHeight=c||0;var d=Math.max(0,-l.top),h=(0,s.J)(this._root.current),p={top:d,left:l.left,bottom:d+h.innerHeight,right:l.right,width:l.width,height:h.innerHeight};this._requiredRect=jo(p,this._requiredWindowsBehind,this._requiredWindowsAhead),this._allowedRect=jo(p,i,o),this._visibleRect=p}},n.defaultProps={startIndex:0,onRenderCell:function(e,t,n){return o.createElement(o.Fragment,null,e&&e.name||"")},onRenderCellConditional:void 0,renderedWindowsAhead:2,renderedWindowsBehind:2},n.contextType=He,n}(o.Component);function jo(e,t,n){var r=e.top-t*e.height,o=e.height+(t+n)*e.height;return{top:r,bottom:r+o,height:o,left:e.left,right:e.right,width:e.width}}var Go,Ko=function(e){var n=o.useRef(null);o.useEffect((function(){if(n.current){var t=(0,Co.Ys)(n.current),r=e.text.split(/\s+/),o=[],i=t.append("tspan"),a=0;return r.forEach((function(n){o.push(n),i.text(o.join(" "));var r=i.node();r&&r.getComputedTextLength()>e.width&&o.length>1&&(a++,o.pop(),i.text(o.join(" ")),o=[n],i=t.append("tspan").text(n).attr("dy",e.lineHeight).attr("x",e.x))})),t.attr("dy",-a*e.lineHeight),function(){t.selectAll("tspan").remove()}}})),e.lineHeight;var r=(0,t._T)(e,["lineHeight"]);return o.createElement("text",(0,t.pi)({ref:n},r))},$o=function(e){var t,n,r,i=o.useRef(null),a=o.useState(!1),s=a[0],l=a[1],c=null;if(s){var u=e.labelDef.aggregatedIdx.map((function(t){return e.lineDefs[t].onRenderCard})).filter((function(e){return!!e}));u.length>0&&(c=o.createElement(jt,{target:i.current,onDismiss:function(){return l(!1)},setInitialFocus:!0,role:"dialog"},o.createElement(xn,{isCircularNavigation:!0,direction:Gt.vertical},o.createElement(Uo,{items:u,onRenderCell:function(e){return o.createElement("div",{"data-is-focusable":!0},e&&e())}}))))}var d=e.textColor?_o(e.textColor,null===(t=e.theme)||void 0===t?void 0:t.isInverted):null===(n=e.theme)||void 0===n?void 0:n.palette.black;return r=1===e.labelDef.aggregatedIdx.length?e.lineDefs[e.labelDef.aggregatedIdx[0]].event:e.mergedLabel(e.labelDef.aggregatedIdx.length),o.createElement(o.Fragment,null,o.createElement("g",{ref:i,onClick:function(){return l(!0)},"data-is-focusable":!1,style:{cursor:"pointer"}},o.createElement(Ko,{text:r,x:e.labelDef.x,y:e.textY,width:e.textWidth,lineHeight:e.textLineHeight,textAnchor:e.labelDef.anchor,fontSize:e.textFontSize,fill:d})),c)},Jo=function(e){var n,r,i=e.labelWidth?e.labelWidth:105,a=e.chartYTop-20,s=a+7,l=e.scale.range(),c=e.events.map((function(n){return(0,t.pi)((0,t.pi)({},n),{x:e.scale(n.date)})}));c.sort((function(e,t){return+e.date-+t.date}));var u=e.strokeColor?_o(e.strokeColor,null===(n=e.theme)||void 0===n?void 0:n.isInverted):null===(r=e.theme)||void 0===r?void 0:r.palette.black,d=function(e,t){for(var n=[],r=[],o=0,i=e;o<i.length;o++){var a=i[o],s=t(a);-1===n.indexOf(s)&&(r.push(a),n.push(s))}return r}(c,(function(e){return e.date.toString()})).map((function(t,n){return o.createElement("line",{key:n,x1:t.x,x2:t.x,y1:s,y2:e.chartYBottom,stroke:u,strokeDasharray:"8"})})),h=function(e,t,n,r){var o=function(r,o){if(o===e.length)return[];var a=e[o].x,s=a-t;return a<r?[]:o===e.length-1?r<s?[{x:a,anchor:"end",aggregatedIdx:[o]}]:a+t<n?[{x:a,anchor:"start",aggregatedIdx:[o]}]:[]:i(o,r<s?"end":"start")},i=function(r,i){var a="end"===i?e[r].x:e[r].x+t,s=m(e,(function(e){return e.x>a&&(e.x-t>=a||e.x+t<n)}),r+1);-1===s&&(s=e.length);for(var l=[],c=r;c<s;c++)l.push(c);var u=o(a,s);return u.unshift({x:e[r].x,anchor:i,aggregatedIdx:l}),u};return o(r,0)}(c,i+5,l[1],l[0]).map((function(n,r){return o.createElement($o,(0,t.pi)({key:r,theme:e.theme},{lineDefs:c,labelDef:n,textY:a,textWidth:i,textLineHeight:18,textFontSize:"10pt",textColor:e.labelColor,mergedLabel:e.mergedLabel}))}));return o.createElement(o.Fragment,null,d,h)},Qo=(0,i.y)();!function(e){e[e.hoverSize=11]="hoverSize",e[e.invisibleSize=1]="invisibleSize"}(Go||(Go={}));var ei=(0,Eo.Z)((function(e){return e.x})).left,ti=function(e){function n(n){var r=e.call(this,n)||this;return r._xAxisScale="",r._yAxisScale="",r.eventLabelHeight=36,r._isRTL=(0,a.zg)(),r._injectIndexPropertyInLineChartData=function(e){var n=r.props.allowMultipleShapesForPoints,o=void 0!==n&&n;return e?e.map((function(e,n){var i,a,s;return s=void 0===e.color?vo(n,0,null===(i=r.props.theme)||void 0===i?void 0:i.isInverted):_o(e.color,null===(a=r.props.theme)||void 0===a?void 0:a.isInverted),(0,t.pi)((0,t.pi)({},e),{index:o?n:-1,color:s})})):[]},r._getCustomizedCallout=function(){return r.props.onRenderCalloutPerStack?r.props.onRenderCalloutPerStack(r.state.stackCalloutProps):r.props.onRenderCalloutPerDataPoint?r.props.onRenderCalloutPerDataPoint(r.state.dataPointCalloutProps):null},r._getMargins=function(e){r.margins=e},r._initializeLineChartData=function(e,t,n,o,i){r._xAxisScale=e,r._yAxisScale=t,r._renderedColorFillBars=r.props.colorFillBars?r._createColorFillBars(n):[],r.lines=r._createLines(i,n)},r._handleSingleLegendSelectionAction=function(e){r.state.selectedLegend===e.legend?(r.setState({selectedLegend:""}),r._handleLegendClick(e,null)):(r.setState({selectedLegend:e.legend}),r._handleLegendClick(e,e.legend))},r._onHoverCardHide=function(){r.setState({selectedLegendPoints:[],selectedColorBarLegend:[],isSelectedLegend:!1})},r._closeCallout=function(){r.setState({isCalloutVisible:!1})},r._getBoxWidthOfShape=function(e,t,n){var o=r.props,i=o.allowMultipleShapesForPoints,a=void 0!==i&&i,s=o.strokeWidth,l=void 0===s?4:s,c=r.state.activePoint;return a?c===e?Go.hoverSize:1===t||n?2.5*l:Go.invisibleSize:c===e?Go.hoverSize:Go.invisibleSize},r._getPath=function(e,t,n,o,i,a){var s=r.props.allowMultipleShapesForPoints,l=void 0!==s&&s,c=r._getBoxWidthOfShape(n,o,i),u=l?a%Object.keys(Kt.Ml).length:0,d=Kt.Ml[u].widthRatio;return function(e,t,n,r){return["M".concat(e-n/2," ").concat(t,"\n A").concat(n/2," ").concat(n/2," 0 1 0 ").concat(e+n/2," ").concat(t,"\n M").concat(e-n/2," ").concat(t,"\n A ").concat(n/2," ").concat(n/2," 0 1 1 ").concat(e+n/2," ").concat(t,"\n "),"M".concat(e-n/2," ").concat(t-n/2,"\n L").concat(e+n/2," ").concat(t-n/2,"\n L").concat(e+n/2," ").concat(t+n/2,"\n L").concat(e-n/2," ").concat(t+n/2,"\n Z"),"M".concat(e-n/2," ").concat(t-.2886*n,"\n H ").concat(e+n/2,"\n L").concat(e," ").concat(t+.5774*n," Z"),"M".concat(e," ").concat(t-n/2,"\n L").concat(e+n/2," ").concat(t,"\n L").concat(e," ").concat(t+n/2,"\n L").concat(e-n/2," ").concat(t,"\n Z"),"M".concat(e," ").concat(t-.5774*n,"\n L").concat(e+n/2," ").concat(t+.2886*n,"\n L").concat(e-n/2," ").concat(t+.2886*n," Z"),"M".concat(e-.5*n," ").concat(t-.866*n,"\n L").concat(e+.5*n," ").concat(t-.866*n,"\n L").concat(e+n," ").concat(t,"\n L").concat(e+.5*n," ").concat(t+.866*n,"\n L").concat(e-.5*n," ").concat(t+.866*n,"\n L").concat(e-n," ").concat(t,"\n Z"),"M".concat(e," ").concat(t-.851*n,"\n L").concat(e+.6884*n," ").concat(t-.2633*n,"\n L").concat(e+.5001*n," ").concat(t+.6884*n,"\n L").concat(e-.5001*n," ").concat(t+.6884*n,"\n L").concat(e-.6884*n," ").concat(t-.2633*n,"\n Z"),"M".concat(e-.5001*n," ").concat(t-1.207*n,"\n L").concat(e+.5001*n," ").concat(t-1.207*n,"\n L").concat(e+1.207*n," ").concat(t-.5001*n,"\n L").concat(e+1.207*n," ").concat(t+.5001*n,"\n L").concat(e+.5001*n," ").concat(t+1.207*n,"\n L").concat(e-.5001*n," ").concat(t+1.207*n,"\n L").concat(e-1.207*n," ").concat(t+.5001*n,"\n L").concat(e-1.207*n," ").concat(t-.5001*n,"\n Z")][r]}(e,t,c=d>1?c/d:c,u)},r._getPointFill=function(e,t,n,o){var i=r.state.activePoint,a=r.props,s=a.theme;return a.allowMultipleShapesForPoints,i===t?s.palette.white:e},r._createColorFillBars=function(e){var t,n=[];r.state.isSelectedLegend?r._colorFillBars=r.state.selectedColorBarLegend:r._colorFillBars=r.props.colorFillBars;for(var i=(0,Kt.As)(r._points,Kt.$X.LineChart),a=0;a<r._colorFillBars.length;a++){var s=r._colorFillBars[a],l=f(s.legend.replace(/\W/g,"")),c=_o(s.color,null===(t=r.props.theme)||void 0===t?void 0:t.isInverted);s.applyPattern&&n.push(r._getStripePattern(c,a));for(var u=0;u<s.data.length;u++){var d=s.data[u].startX,h=s.data[u].endX,p=r._legendHighlighted(s.legend)||r._noLegendHighlighted()||r.state.isSelectedLegend?r._getColorFillBarOpacity(s):.1;n.push(o.createElement("rect",{fill:s.applyPattern?"url(#".concat(r._colorFillBarPatternId,"_").concat(a,")"):c,fillOpacity:p,x:r._isRTL?r._xAxisScale(h):r._xAxisScale(d),y:r._yAxisScale(i.endValue)-3,width:Math.abs(r._xAxisScale(h)-r._xAxisScale(d)),height:r._yAxisScale(r.props.yMinValue||0)-r._yAxisScale(i.endValue)+3,key:"".concat(l).concat(u)}))}}return n},r._getStripePattern=function(e,t){return o.createElement("pattern",{id:"".concat(r._colorFillBarPatternId,"_").concat(t),width:16,height:16,key:"".concat(r._colorFillBarPatternId,"_").concat(t),patternUnits:"userSpaceOnUse"},o.createElement("path",{d:"M-4,4 l8,-8 M0,16 l16,-16 M12,20 l8,-8",stroke:e,strokeWidth:1.25}))},r._checkInGap=function(e,t,n){for(var r=n,o=!1;r<t.length&&e>t[r].endIndex;)r++;return r<t.length&&e>t[r].startIndex&&e<=t[r].endIndex&&(o=!0),{isInGap:o,gapIndex:r}},r._onMouseOverLargeDataset=function(e,t,n){n.persist();var o=r.props.data.lineChartData,i=r._xAxisScale.invert((0,Co.Eb)(document.getElementById(r._rectId),n)[0]),a=ei(o[e].data,i),s=o[e].data[a-1],l=o[e].data[a],c=null,u=null;if(void 0===s&&void 0!==l)c=l.x,u=a;else if(void 0!==s&&void 0===l)c=s.x,u=a-1;else{var d=void 0,h=void 0,p=void 0;switch((0,Kt.SY)(o[e].data[0].x,!0)){case Kt.xl.DateAxis:d=new Date(i).getTime(),h=s.x.getTime(),p=l.x.getTime(),c=Math.abs(d-h)>Math.abs(d-p)?l.x:s.x,u=Math.abs(d-h)>Math.abs(d-p)?a:a-1;break;case Kt.xl.NumericAxis:d=i,h=s.x,p=l.x,c=Math.abs(d-h)>Math.abs(d-p)?l.x:s.x,u=Math.abs(d-h)>Math.abs(d-p)?a:a-1}}var f=o[e].data[u],g=f.xAxisCalloutData,m=f.xAxisCalloutAccessibilityData,_=c instanceof Date?c.toLocaleString():c,y=c instanceof Date?c.getTime():c,x=v(r._calloutPoints,(function(e){return e.x===y})),b=o[e].data[u],C=null===r.state.nearestCircleToHighlight||null!==r.state.nearestCircleToHighlight&&null!==b&&(r.state.nearestCircleToHighlight.x!==b.x||r.state.nearestCircleToHighlight.y!==b.y);x&&C&&(r._uniqueCallOutID="#".concat(r._staticHighlightCircle,"_").concat(e),(0,Co.Ys)("#".concat(r._staticHighlightCircle,"_").concat(e)).attr("cx","".concat(r._xAxisScale(b.x))).attr("cy","".concat(r._yAxisScale(b.y))).attr("visibility","visibility"),(0,Co.Ys)("#".concat(r._verticalLine)).attr("transform",(function(){return"translate(".concat(r._xAxisScale(b.x),", ").concat(r._yAxisScale(b.y),")")})).attr("visibility","visibility").attr("y2","".concat(t-r._yAxisScale(b.y))),r.setState({nearestCircleToHighlight:b,isCalloutVisible:!0,refSelected:"#".concat(r._staticHighlightCircle,"_").concat(e),stackCalloutProps:x,YValueHover:x.values,dataPointCalloutProps:x,hoverXValue:g||_,xAxisCalloutAccessibilityData:m,activePoint:"",activeLine:e})),x||r.setState({isCalloutVisible:!1,nearestCircleToHighlight:b,activePoint:"",activeLine:e})},r._handleFocus=function(e,t,n,o,i){r._uniqueCallOutID=o;var a=t instanceof Date?t.toLocaleDateString():t,s=t instanceof Date?t.getTime():t,l=v(r._calloutPoints,(function(e){return e.x===s}));if(l){var c=r;(0,Co.Ys)("#".concat(r._verticalLine)).attr("transform",(function(){return"translate(".concat(c._xAxisScale(t),", 0)")})).attr("visibility","visibility"),r._refArray.forEach((function(t){t.index===e&&r.setState({isCalloutVisible:!0,refSelected:t.refElement,hoverXValue:n||""+a,YValueHover:l.values,stackCalloutProps:l,dataPointCalloutProps:l,activePoint:o,xAxisCalloutAccessibilityData:i})}))}else r.setState({activePoint:o})},r._handleHover=function(e,t,n,o,i,a,s){s.persist();var l=e instanceof Date?e.toLocaleDateString():e,c=e instanceof Date?e.getTime():e,u=r,d=v(r._calloutPoints,(function(e){return e.x===c}));d?((0,Co.Ys)("#".concat(r._verticalLine)).attr("transform",(function(){return"translate(".concat(u._xAxisScale(e),", ").concat(u._yAxisScale(t),")")})).attr("visibility","visibility").attr("y2","".concat(n-u._yAxisScale(t))),r._uniqueCallOutID!==i&&(r._uniqueCallOutID=i,r.setState({isCalloutVisible:!0,refSelected:"#".concat(i),hoverXValue:o||""+l,YValueHover:d.values,stackCalloutProps:d,dataPointCalloutProps:d,activePoint:i,xAxisCalloutAccessibilityData:a,nearestCircleToHighlight:null,activeLine:null}))):r.setState({activePoint:i,nearestCircleToHighlight:null,activeLine:null})},r._getClickHandler=function(e){return e?{onClick:e}:{}},r._handleMouseOut=function(){(0,Co.Ys)("#".concat(r._verticalLine)).attr("visibility","hidden")},r._handleChartMouseLeave=function(){r._uniqueCallOutID=null,r.setState({isCalloutVisible:!1,activePoint:"",activeLine:null})},r._handleLegendClick=function(e,t){e.onLegendClick&&e.onLegendClick(t)},r._handleMultipleLineLegendSelectionAction=function(e){var n,o=r.state.selectedLegendPoints.reduce((function(t,n,r){return t>-1||n.legend!==e.legend?t:r}),-1);n=-1===o?(0,t.ev)((0,t.ev)([],r.state.selectedLegendPoints,!0),[e],!1):r.state.selectedLegendPoints.slice(0,o).concat(r.state.selectedLegendPoints.slice(o+1)),r.props.data&&n.length===r.props.data.lineChartData.length&&(r.props.colorFillBars&&r.props.colorFillBars.length===r.state.selectedColorBarLegend.length||!r.props.colorFillBars)?r._clearMultipleLegendSelections():n.length||r.state.selectedColorBarLegend.length?r.setState({selectedLegendPoints:n,isSelectedLegend:!0}):r._clearMultipleLegendSelections();var i=n.map((function(e){return e.legend}));r._handleLegendClick(e,i)},r._handleMultipleColorFillBarLegendSelectionAction=function(e){var n,o=r.state.selectedColorBarLegend.reduce((function(t,n,r){return t>-1||n.legend!==e.legend?t:r}),-1);(n=-1===o?(0,t.ev)((0,t.ev)([],r.state.selectedColorBarLegend,!0),[e],!1):r.state.selectedColorBarLegend.slice(0,o).concat(r.state.selectedColorBarLegend.slice(o+1))).length===(r.props.colorFillBars&&r.props.colorFillBars.length)&&(r.props.data&&r.props.data.lineChartData.length===r.state.selectedLegendPoints.length||!r.props.data)?r._clearMultipleLegendSelections():n.length||r.state.selectedLegendPoints.length?r.setState({selectedColorBarLegend:n,isSelectedLegend:!0}):r._clearMultipleLegendSelections();var i=n.map((function(e){return e.legend}));r._handleLegendClick(e,i)},r._clearMultipleLegendSelections=function(){r.setState({selectedColorBarLegend:[],selectedLegendPoints:[],isSelectedLegend:!1})},r._legendHighlighted=function(e){return r.state.selectedLegend===e||""===r.state.selectedLegend&&r.state.activeLegend===e},r._noLegendHighlighted=function(){return""===r.state.selectedLegend&&""===r.state.activeLegend},r._getColorFillBarOpacity=function(e){return e.applyPattern?1:.4},r._getAriaLabel=function(e,t){var n,o=r._points[e],i=o.data[t],a=i.x instanceof Date?i.x.toLocaleString():i.x,s=i.xAxisCalloutData||a,l=o.legend,c=i.yAxisCalloutData||i.y;return(null===(n=i.callOutAccessibilityData)||void 0===n?void 0:n.ariaLabel)||"".concat(s,". ").concat(l,", ").concat(c,".")},r.state={hoverXValue:"",activeLegend:"",YValueHover:[],refSelected:"",selectedLegend:"",isCalloutVisible:!1,selectedLegendPoints:[],selectedColorBarLegend:[],isSelectedLegend:!1,activePoint:"",nearestCircleToHighlight:null,activeLine:null},r._refArray=[],r._points=r._injectIndexPropertyInLineChartData(r.props.data.lineChartData),r._colorFillBars=[],r._calloutPoints=(0,Kt.Wx)(r._points)||[],r._circleId=f("circle"),r._lineId=f("lineID"),r._borderId=f("borderID"),r._verticalLine=f("verticalLine"),r._colorFillBarPatternId=f("colorFillBarPattern"),r._tooltipId=f("LineChartTooltipId_"),r._rectId=f("containerRectLD"),r._staticHighlightCircle=f("staticHighlightCircle"),r._createLegendsMemoized=(0,ut.NF)((function(e){return r._createLegends(e)})),r._firstRenderOptimization=!0,r._emptyChartId=f("_LineChart_empty"),n.eventAnnotationProps&&n.eventAnnotationProps.labelHeight&&(r.eventLabelHeight=n.eventAnnotationProps.labelHeight),r}return(0,t.ZT)(n,e),n.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=(0,Kt.Wx)(this._points)||[])},n.prototype.render=function(){var e=this,n=this.props,r=n.tickValues,i=n.tickFormat,a=n.eventAnnotationProps,s=n.legendProps,l=n.data;this._points=this._injectIndexPropertyInLineChartData(l.lineChartData);var c=(0,Kt.V4)(this._points),u=this._points;s&&s.canSelectMultipleLegends&&(u=this.state.selectedLegendPoints.length>=1?this.state.selectedLegendPoints:this._points,this._calloutPoints=(0,Kt.Wx)(u));var d=null;this.props.hideLegend||(d=this._createLegendsMemoized(this._points));var h=(0,t.pi)({isCalloutVisible:this.state.isCalloutVisible,directionalHint:_.topAutoEdge,YValueHover:this.state.YValueHover,hoverXValue:this.state.hoverXValue,id:"toolTip".concat(this._uniqueCallOutID),target:this.state.refSelected,isBeakVisible:!1,gapSpace:15,onDismiss:this._closeCallout,preventDismissOnEvent:function(){return!0},hidden:!(!this.props.hideTooltip&&this.state.isCalloutVisible),descriptionMessage:this.props.getCalloutDescriptionMessage&&this.state.stackCalloutProps?this.props.getCalloutDescriptionMessage(this.state.stackCalloutProps):void 0,"data-is-focusable":!0,xAxisCalloutAccessibilityData:this.state.xAxisCalloutAccessibilityData},this.props.calloutProps),p={tickValues:r,tickFormat:i};return this._isChartEmpty()?o.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):o.createElement(Oo,(0,t.pi)({},this.props,{chartTitle:l.chartTitle,points:u,chartType:Kt.$X.LineChart,isCalloutForStack:!0,calloutProps:h,tickParams:p,legendBars:d,getmargins:this._getMargins,getGraphData:this._initializeLineChartData,xAxisType:c?Kt.xl.DateAxis:Kt.xl.NumericAxis,customizedCallout:this._getCustomizedCallout(),onChartMouseLeave:this._handleChartMouseLeave,enableFirstRenderOptimization:this.props.enablePerfOptimization&&this._firstRenderOptimization,children:function(n){return e._xAxisScale=n.xScale,e._yAxisScale=n.yScale,o.createElement(o.Fragment,null,o.createElement("g",null,o.createElement("line",{x1:0,y1:0,x2:0,y2:n.containerHeight,stroke:"#323130",id:e._verticalLine,visibility:"hidden",strokeDasharray:"5,5"}),e.props.optimizeLargeData?o.createElement("rect",{id:e._rectId,width:n.containerWidth,height:n.containerHeight,fill:"transparent"}):o.createElement(o.Fragment,null),o.createElement("g",null,e._renderedColorFillBars,e.lines),a&&o.createElement(Jo,(0,t.pi)({theme:e.props.theme},a,{scale:n.xScale,chartYTop:e.margins.top+e.eventLabelHeight,chartYBottom:n.containerHeight-35}))))}}))},n.prototype._createLegends=function(e){var n=this,r=this.props,i=r.legendProps,a=r.allowMultipleShapesForPoints,s=void 0!==a&&a,l=!(!i||!i.canSelectMultipleLegends),c=e.map((function(e){var r=e.color;return(0,t.pi)((0,t.pi)({title:e.legend,color:r,action:function(){l?n._handleMultipleLineLegendSelectionAction(e):n._handleSingleLegendSelectionAction(e)},onMouseOutAction:function(){n.setState({activeLegend:""})},hoverAction:function(){n._handleChartMouseLeave(),n.setState({activeLegend:e.legend})}},e.legendShape&&{shape:e.legendShape}),s&&{shape:Kt.wo[e.index%Object.keys(Kt.Ml).length]})})),u=this.props.colorFillBars?this.props.colorFillBars.map((function(e,t){var r,o=e.legend,i=_o(e.color,null===(r=n.props.theme)||void 0===r?void 0:r.isInverted);return{title:o,color:i,action:function(){l?n._handleMultipleColorFillBarLegendSelectionAction(e):n._handleSingleLegendSelectionAction(e)},onMouseOutAction:function(){n.setState({activeLegend:""})},hoverAction:function(){n._handleChartMouseLeave(),n.setState({activeLegend:o})},opacity:n._getColorFillBarOpacity(e),stripePattern:e.applyPattern}})):[];return o.createElement(Ar,(0,t.pi)({legends:(0,t.ev)((0,t.ev)([],c,!0),u,!0),enabledWrapLines:this.props.enabledLegendsWrapLines,overflowProps:this.props.legendsOverflowProps,focusZonePropsInHoverCard:this.props.focusZonePropsForLegendsInHoverCard,overflowText:this.props.legendsOverflowText},l&&{onLegendHoverCardLeave:this._onHoverCardHide},this.props.legendProps))},n.prototype._createLines=function(e,n){var r,i,a,s,l,c,u,d,h,p,f,g,m,v,_,y,x,b,C,E,S,A,L,k,T=this,w=[];this.state.isSelectedLegend?this._points=this.state.selectedLegendPoints:this._points=this._injectIndexPropertyInLineChartData(this.props.data.lineChartData);for(var D=function(e){var D=[],P=[],F=[],I=M._points[e].legend,N=M._points[e].color,V=M.state.activePoint,O=M.props.theme,H=n-M.margins.bottom+6;if(1===M._points[e].data.length){var B=M._points[e].data[0],R=B.x,z=B.y,W=B.xAxisCalloutData,Y=B.xAxisCalloutAccessibilityData,Z="".concat(M._circleId,"_").concat(e);F.push(o.createElement("circle",(0,t.pi)({id:Z,key:Z,r:V===Z?5.5:3.5,cx:M._xAxisScale(R),cy:M._yAxisScale(z),fill:V===Z?O.palette.white:N,onMouseOver:M._handleHover.bind(M,R,z,H,W,Z,Y),onMouseMove:M._handleHover.bind(M,R,z,H,W,Z,Y),onMouseOut:M._handleMouseOut,strokeWidth:V===Z?4:0,stroke:V===Z?N:"",role:"img","aria-label":M._getAriaLabel(e,0),"data-is-focusable":!0,ref:function(e){T._refCallback(e,Z)},onFocus:function(){return T._handleFocus(Z,R,W,Z,Y)},onBlur:M._handleMouseOut},M._getClickHandler(M._points[e].data[0].onDataPointClick))))}var q=0,X=null!==(i=null===(r=M._points[e].gaps)||void 0===r?void 0:r.sort((function(e,t){return e.startIndex-t.startIndex})))&&void 0!==i?i:[];if(M.props.optimizeLargeData&&M._points[e].data.length>1){for(var U=To().x((function(e){return T._xAxisScale(e[0])})).y((function(e){return T._yAxisScale(e[1])})).curve(Ao),j="".concat(M._lineId,"_").concat(e),G="".concat(M._borderId,"_").concat(e),K=(null===(a=M._points[e].lineOptions)||void 0===a?void 0:a.strokeWidth)||M.props.strokeWidth||4,$=M._legendHighlighted(I)||M._noLegendHighlighted()||M.state.isSelectedLegend,J=[],Q=0;Q<M._points[e].data.length;Q++)J.push([M._points[e].data[Q].x instanceof Date?M._points[e].data[Q].x.getTime():M._points[e].data[Q].x,M._points[e].data[Q].y]);if($){var ee=(null===(s=M._points[e].lineOptions)||void 0===s?void 0:s.lineBorderWidth)?Number.parseFloat(M._points[e].lineOptions.lineBorderWidth.toString()):0;ee>0&&P.push(o.createElement("path",{id:G,key:G,d:U(J),fill:"transparent",strokeLinecap:null!==(c=null===(l=M._points[e].lineOptions)||void 0===l?void 0:l.strokeLinecap)&&void 0!==c?c:"round",strokeWidth:Number.parseFloat(K.toString())+ee,stroke:(null===(u=M._points[e].lineOptions)||void 0===u?void 0:u.lineBorderColor)||O.palette.white,opacity:1})),D.push(o.createElement("path",(0,t.pi)({id:j,key:j,d:U(J),fill:"transparent","data-is-focusable":!0,stroke:N,strokeWidth:K,strokeLinecap:null!==(h=null===(d=M._points[e].lineOptions)||void 0===d?void 0:d.strokeLinecap)&&void 0!==h?h:"round",onMouseMove:M._onMouseOverLargeDataset.bind(M,e,H),onMouseOver:M._onMouseOverLargeDataset.bind(M,e,H),onMouseOut:M._handleMouseOut},M._getClickHandler(M._points[e].onLineClick),{opacity:1,role:"img","aria-label":"".concat(I,", series ").concat(e+1," of ").concat(M._points.length," with ").concat(M._points[e].data.length," data points.")})))}else D.push(o.createElement("path",{id:j,key:j,d:U(J),fill:"transparent","data-is-focusable":!0,stroke:N,strokeWidth:K,strokeLinecap:null!==(f=null===(p=M._points[e].lineOptions)||void 0===p?void 0:p.strokeLinecap)&&void 0!==f?f:"round",opacity:.1,role:"img","aria-label":"".concat(I,", series ").concat(e+1," of ").concat(M._points.length," with ").concat(M._points[e].data.length," data points.")}));var te=null!==M.state.activeLine&&M.state.activeLine===e;F.push(o.createElement("circle",{id:"".concat(M._staticHighlightCircle,"_").concat(e),key:"".concat(M._staticHighlightCircle,"_").concat(e),r:5.5,cx:0,cy:0,fill:O.palette.white,strokeWidth:4,stroke:N,visibility:te?"visibility":"hidden",onMouseMove:M._onMouseOverLargeDataset.bind(M,e,H),onMouseOver:M._onMouseOverLargeDataset.bind(M,e,H),onMouseOut:M._handleMouseOut}))}else if(!M.props.optimizeLargeData)for(var ne=function(n){var r=M._checkInGap(n,X,q),i=r.isInGap;q=r.gapIndex;var a="".concat(M._lineId,"_").concat(e,"_").concat(n),s="".concat(M._borderId,"_").concat(e,"_").concat(n),l="".concat(M._circleId,"_").concat(e,"_").concat(n),c=M._points[e].data[n-1],u=c.x,d=c.y,h=c.xAxisCalloutData,p=c.xAxisCalloutAccessibilityData,f=M._points[e].data[n],w=f.x,B=f.y,R=M._getPath(M._xAxisScale(u),M._yAxisScale(d),l,n,!1,M._points[e].index),z=(null===(g=M._points[e].lineOptions)||void 0===g?void 0:g.strokeWidth)||M.props.strokeWidth||4,W=M._legendHighlighted(I)||M._noLegendHighlighted()||M.state.isSelectedLegend,Y=M._points[e].hideNonActiveDots&&V!==l;if(F.push(o.createElement("path",(0,t.pi)({id:l,key:l,d:R,"data-is-focusable":!0,onMouseOver:M._handleHover.bind(M,u,d,H,h,l,p),onMouseMove:M._handleHover.bind(M,u,d,H,h,l,p),onMouseOut:M._handleMouseOut,onFocus:function(){return T._handleFocus(a,u,h,l,p)},onBlur:M._handleMouseOut},M._getClickHandler(M._points[e].data[n-1].onDataPointClick),{opacity:W&&!Y?1:.01,fill:M._getPointFill(N,l,n,!1),stroke:N,strokeWidth:z,role:"img","aria-label":M._getAriaLabel(e,n-1)}))),n+1===M._points[e].data.length){var Z="".concat(l).concat(n,"L"),U="".concat(l).concat(n,"D"),j=M._points[e].hideNonActiveDots&&V!==Z;R=M._getPath(M._xAxisScale(w),M._yAxisScale(B),Z,n,!0,M._points[e].index);var G=M._points[e].data[n],K=G.xAxisCalloutData,$=G.xAxisCalloutAccessibilityData;F.push(o.createElement(o.Fragment,{key:"".concat(Z,"_container")},o.createElement("path",(0,t.pi)({id:Z,key:Z,d:R,"data-is-focusable":!0,onMouseOver:M._handleHover.bind(M,w,B,H,K,Z,$),onMouseMove:M._handleHover.bind(M,w,B,H,K,Z,$),onMouseOut:M._handleMouseOut,onFocus:function(){return T._handleFocus(a,w,K,Z,$)},onBlur:M._handleMouseOut},M._getClickHandler(M._points[e].data[n].onDataPointClick),{opacity:W&&!j?1:.01,fill:M._getPointFill(N,Z,n,!0),stroke:N,strokeWidth:z,role:"img","aria-label":M._getAriaLabel(e,n)})),o.createElement("circle",{id:U,key:U,r:8,cx:M._xAxisScale(w),cy:M._yAxisScale(B),opacity:0,width:0,onMouseOver:M._handleHover.bind(M,w,B,H,K,Z,$),onMouseMove:M._handleHover.bind(M,w,B,H,K,Z,$),onMouseOut:M._handleMouseOut,strokeWidth:0,focusable:!1,onBlur:M._handleMouseOut})))}if(W){if(!i){var J=(null===(m=M._points[e].lineOptions)||void 0===m?void 0:m.lineBorderWidth)?Number.parseFloat(M._points[e].lineOptions.lineBorderWidth.toString()):0;J>0&&P.push(o.createElement("line",{id:s,key:s,x1:M._xAxisScale(u),y1:M._yAxisScale(d),x2:M._xAxisScale(w),y2:M._yAxisScale(B),strokeLinecap:null!==(_=null===(v=M._points[e].lineOptions)||void 0===v?void 0:v.strokeLinecap)&&void 0!==_?_:"round",strokeWidth:Number.parseFloat(z.toString())+J,stroke:(null===(y=M._points[e].lineOptions)||void 0===y?void 0:y.lineBorderColor)||O.palette.white,opacity:1})),D.push(o.createElement("line",(0,t.pi)({id:a,key:a,x1:M._xAxisScale(u),y1:M._yAxisScale(d),x2:M._xAxisScale(w),y2:M._yAxisScale(B),strokeWidth:z,ref:function(e){T._refCallback(e,a)},onMouseOver:M._handleHover.bind(M,u,d,H,h,l,p),onMouseMove:M._handleHover.bind(M,u,d,H,h,l,p),onMouseOut:M._handleMouseOut,stroke:N,strokeLinecap:null!==(b=null===(x=M._points[e].lineOptions)||void 0===x?void 0:x.strokeLinecap)&&void 0!==b?b:"round",strokeDasharray:null===(C=M._points[e].lineOptions)||void 0===C?void 0:C.strokeDasharray,strokeDashoffset:null===(E=M._points[e].lineOptions)||void 0===E?void 0:E.strokeDashoffset,opacity:1},M._getClickHandler(M._points[e].onLineClick))))}}else i||D.push(o.createElement("line",{id:a,key:a,x1:M._xAxisScale(u),y1:M._yAxisScale(d),x2:M._xAxisScale(w),y2:M._yAxisScale(B),strokeWidth:z,stroke:N,strokeLinecap:null!==(A=null===(S=M._points[e].lineOptions)||void 0===S?void 0:S.strokeLinecap)&&void 0!==A?A:"round",strokeDasharray:null===(L=M._points[e].lineOptions)||void 0===L?void 0:L.strokeDasharray,strokeDashoffset:null===(k=M._points[e].lineOptions)||void 0===k?void 0:k.strokeDashoffset,opacity:.1}))},re=1;re<M._points[e].data.length;re++)ne(re);w.push.apply(w,(0,t.ev)((0,t.ev)((0,t.ev)([],P,!1),D,!1),F,!1))},M=this,P=this._points.length-1;P>=0;P--)D(P);var F=Qo(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=(0,Co.Ys)(e).call(this._xAxisScale);try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(e){}var N={tooltipCls:F.tooltip,id:this._tooltipId,xAxis:I};I&&(0,Kt.$V)(N)}return w},n.prototype._refCallback=function(e,t){this._refArray.push({index:t,refElement:e})},n.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.lineChartData&&this.props.data.lineChartData.length>0&&this.props.data.lineChartData.filter((function(e){return e.data.length})).length>0)},n.defaultProps={enableReflow:!0},n}(o.Component),ni=(0,e.z)(ti,(function(e){return{tooltip:(0,t.pi)((0,t.pi)({},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"})}})),ri=n(8957);function oi(e,t){if((o=e.length)>1)for(var n,r,o,i=1,a=e[t[0]],s=a.length;i<o;++i)for(r=a,a=e[t[i]],n=0;n<s;++n)a[n][1]+=a[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]}function ii(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function ai(e,t){return e[t]}function si(e){const t=[];return t.key=e,t}function li(e,t,n){var r=null,o=kr(!0),i=null,a=Ao,s=null,l=Gr(c);function c(c){var u,d,h,p,f,g=(c=Lr(c)).length,m=!1,v=new Array(g),_=new Array(g);for(null==i&&(s=a(f=l())),u=0;u<=g;++u){if(!(u<g&&o(p=c[u],u,c))===m)if(m=!m)d=u,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),h=u-1;h>=d;--h)s.point(v[h],_[h]);s.lineEnd(),s.areaEnd()}m&&(v[u]=+e(p,u,c),_[u]=+t(p,u,c),s.point(r?+r(p,u,c):v[u],n?+n(p,u,c):_[u]))}if(f)return s=null,f+""||null}function u(){return To().defined(o).curve(a).context(i)}return e="function"==typeof e?e:void 0===e?Lo:kr(+e),t="function"==typeof t?t:kr(void 0===t?0:+t),n="function"==typeof n?n:void 0===n?ko:kr(+n),c.x=function(t){return arguments.length?(e="function"==typeof t?t:kr(+t),r=null,c):e},c.x0=function(t){return arguments.length?(e="function"==typeof t?t:kr(+t),c):e},c.x1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:kr(+e),c):r},c.y=function(e){return arguments.length?(t="function"==typeof e?e:kr(+e),n=null,c):t},c.y0=function(e){return arguments.length?(t="function"==typeof e?e:kr(+e),c):t},c.y1=function(e){return arguments.length?(n=null==e?null:"function"==typeof e?e:kr(+e),c):n},c.lineX0=c.lineY0=function(){return u().x(e).y(t)},c.lineY1=function(){return u().x(e).y(n)},c.lineX1=function(){return u().x(r).y(t)},c.defined=function(e){return arguments.length?(o="function"==typeof e?e:kr(!!e),c):o},c.curve=function(e){return arguments.length?(a=e,null!=i&&(s=a(i)),c):a},c.context=function(e){return arguments.length?(null==e?i=s=null:s=a(i=e),c):i},c}function ci(e){return e<0?-1:1}function ui(e,t,n){var r=e._x1-e._x0,o=t-e._x1,i=(e._y1-e._y0)/(r||o<0&&-0),a=(n-e._y1)/(o||r<0&&-0),s=(i*o+a*r)/(r+o);return(ci(i)+ci(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(s))||0}function di(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function hi(e,t,n){var r=e._x0,o=e._y0,i=e._x1,a=e._y1,s=(i-r)/3;e._context.bezierCurveTo(r+s,o+s*t,i-s,a-s*n,i,a)}function pi(e){this._context=e}function fi(e){this._context=e}function gi(e){return new pi(e)}pi.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:hi(this,this._t0,di(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,hi(this,di(this,n=ui(this,e,t)),n);break;default:hi(this,this._t0,n=ui(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 fi(e)}.prototype=Object.create(pi.prototype)).point=function(e,t){pi.prototype.point.call(this,t,e)},fi.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,o,i){this._context.bezierCurveTo(t,e,r,n,i,o)}};var mi,vi=(0,i.y)(),_i=(0,Eo.Z)((function(e){return e.x})).left;!function(e){e.show="visibility",e.hide="hidden"}(mi||(mi={}));var yi=function(e){function n(n){var r=e.call(this,n)||this;return r._getMargins=function(e){r.margins=e},r._onRectMouseMove=function(e){e.persist();var t=r.props.data.lineChartData,n=r._xAxisRectScale.invert((0,Co.Eb)(document.getElementById(r._rectId),e)[0]),o=_i(t[0].data,n),i=t[0].data[o-1],a=t[0].data[o],s=null,l=null,c=null;if(void 0===i&&void 0!==a)l=a.x,c=o;else if(void 0!==i&&void 0===a)l=i.x,c=o-1;else{var u=void 0,d=void 0,h=void 0;switch(s=(0,Kt.SY)(t[0].data[0].x,!0)){case Kt.xl.DateAxis:u=new Date(n).getTime(),d=i.x.getTime(),h=a.x.getTime(),l=Math.abs(u-d)>Math.abs(u-h)?a.x:i.x,c=Math.abs(u-d)>Math.abs(u-h)?o:o-1;break;case Kt.xl.NumericAxis:u=n,d=i.x,h=a.x,l=Math.abs(u-d)>Math.abs(u-h)?a.x:i.x,c=Math.abs(u-d)>Math.abs(u-h)?o:o-1}}var p=t[0].data[c],f=p.xAxisCalloutData,g=p.xAxisCalloutAccessibilityData,m=l instanceof Date?l.toLocaleString():l,_=l instanceof Date?l.getTime():l,y=v(r._calloutPoints,(function(e){return e.x===_})),x=s===Kt.xl.DateAxis?l.getTime():l,b=r.state.nearestCircleToHighlight!==x;y&&b&&!r.state.isShowCalloutPending&&r.setState({nearestCircleToHighlight:x,isCalloutVisible:!1,isShowCalloutPending:!0,lineXValue:r._xAxisRectScale(l),displayOfLine:mi.show,isCircleClicked:!1,stackCalloutProps:y,YValueHover:y.values,dataPointCalloutProps:y,hoverXValue:f||m,xAxisCalloutAccessibilityData:g,activePoint:""}),y||r.setState({isCalloutVisible:!1,nearestCircleToHighlight:x,displayOfLine:mi.hide,isCircleClicked:!1})},r._onRectMouseOut=function(){},r._handleChartMouseLeave=function(){r.setState({refSelected:null,isCalloutVisible:!1,nearestCircleToHighlight:null,lineXValue:0,displayOfLine:mi.hide,isCircleClicked:!1,stackCalloutProps:void 0,dataPointCalloutProps:void 0,hoverXValue:void 0,YValueHover:[]})},r._getStackedData=function(e,t){var n=function(){var e=kr([]),t=ii,n=oi,r=ai;function o(o){var i,a,s=Array.from(e.apply(this,arguments),si),l=s.length,c=-1;for(const e of o)for(i=0,++c;i<l;++i)(s[i][c]=[0,+r(e,s[i].key,c,o)]).data=e;for(i=0,a=Lr(t(s));i<l;++i)s[a[i]].index=i;return n(s,a),s}return o.keys=function(t){return arguments.length?(e="function"==typeof t?t:kr(Array.from(t)),o):e},o.value=function(e){return arguments.length?(r="function"==typeof e?e:kr(+e),o):r},o.order=function(e){return arguments.length?(t=null==e?ii:"function"==typeof e?e:kr(Array.from(e)),o):t},o.offset=function(e){return arguments.length?(n=null==e?oi:e,o):n},o}().keys(e)(t),o=(0,ri.Z)(n[n.length-1],(function(e){return e[1]})),i=[];return n.forEach((function(e){var t=[];e.forEach((function(e){t.push({values:e,xVal:e.data.xVal})})),i.push(t)})),r._isMultiStackChart=!!(i&&i.length>1),{stackedData:i,maxOfYVal:o}},r._createDataSet=function(e){if(r.props.enablePerfOptimization&&r._enableComputationOptimization){var t=[],n=[],o=[],i=[],a=(0,Kt.Wx)(e);e&&e.length&&e.forEach((function(e){o.push(e.color),i.push(e.opacity||1),t.push.apply(t,e.data)}));var s={};t.forEach((function(e){var t=e.x instanceof Date?e.x.toLocaleString():e.x;s[t]?s[t].push(e):s[t]=[e]})),Object.keys(s).forEach((function(e){var t=s[e],r={};t.forEach((function(e,t){r.xVal=e.x,r["chart".concat(t)]=e.y})),n.push(r)}));for(var l=n&&Object.keys(n[0]).length,c=[],u=0;u<l-1;u++){var d="chart".concat(u);c.push(d)}var h=r._getStackedData(c,n);return{colors:o,opacity:i,keys:c,stackedInfo:h,calloutPoints:a}}var p=[],f=[],g=[],m=[];a=(0,Kt.Wx)(e),e&&e.length&&e.forEach((function(e){g.push(e.color),m.push(e.opacity||1),p.push.apply(p,e.data)}));for(var v=p,_=function(){var e=v[0].x instanceof Date?v[0].x.toLocaleString():v[0].x,t=v.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".concat(t)]=e.y})),f.push(n);var r=v[0].x instanceof Date?v[0].x.toLocaleString():v[0].x;v=v.filter((function(e){return(e.x instanceof Date?e.x.toLocaleString():e.x)!==r}))};v.length;)_();for(l=f&&Object.keys(f[0]).length,c=[],u=0;u<l-1;u++)d="chart".concat(u),c.push(d);return h=r._getStackedData(c,f),{colors:g,opacity:m,keys:c,stackedInfo:h,calloutPoints:a}},r._getCustomizedCallout=function(){return r.props.onRenderCalloutPerStack?r.props.onRenderCalloutPerStack(r.state.stackCalloutProps):r.props.onRenderCalloutPerDataPoint?r.props.onRenderCalloutPerDataPoint(r.state.dataPointCalloutProps):null},r._getGraphData=function(e,t,n,o,i){r._chart=r._drawGraph(n,e,t,i)},r._getLegendData=function(e){var n=[];return e.forEach((function(e){var t=e.color;if(!(n.filter((function(n){return n.title===e.legend&&n.color===t})).length>0)){var o={title:e.legend,color:t,action:function(){r._onLegendClick(e.legend)},hoverAction:function(){r._handleChartMouseLeave(),r._onLegendHover(e.legend)},onMouseOutAction:function(){r._onLegendLeave()}};n.push(o)}})),o.createElement(Ar,(0,t.pi)({legends:n,overflowProps:r.props.legendsOverflowProps,enabledWrapLines:r.props.enabledLegendsWrapLines,focusZonePropsInHoverCard:r.props.focusZonePropsForLegendsInHoverCard},r.props.legendProps))},r._onDataPointClick=function(e){e&&e(),r.setState({isCircleClicked:!0})},r._getOpacity=function(e){return r._isMultiStackChart?r._legendHighlighted(e)||r._noLegendHighlighted()?.7:.1:.7},r._getLineOpacity=function(e){if(r._isMultiStackChart){var t=.3;return r.state.isCalloutVisible&&(t=1),r._noLegendHighlighted()||(t=r._legendHighlighted(e)?0:.1),t}return 1},r._updateCircleFillColor=function(e,t,n){var o=t;return r.state.nearestCircleToHighlight!==e&&r.state.activePoint!==n||(r._highlightedCircleId=n,r.state.isCircleClicked||(o=r.props.theme.palette.white)),o},r._drawGraph=function(e,n,i,a){var s,l=r._addDefaultColors(r.props.data.lineChartData),c=r.props.data,u=c.pointOptions,d=c.pointLineOptions,h=li().x((function(e){return n(e.xVal)})).y0((function(e){return i(e.values[0])})).y1((function(e){return i(e.values[1])})).curve(gi),p=To().x((function(e){return n(e.xVal)})).y((function(e){return i(e.values[1])})).curve(gi),f=[];r._stackedData.forEach((function(e,a){f.push(o.createElement(o.Fragment,{key:"".concat(a,"-graph-").concat(r._uniqueIdForGraph)},o.createElement("path",(0,t.pi)({id:"".concat(a,"-line-").concat(r._uniqueIdForGraph),d:p(e),fill:"transparent",strokeWidth:3,stroke:r._colors[a],opacity:r._getLineOpacity(l[a].legend),onMouseMove:r._onRectMouseMove,onMouseOut:r._onRectMouseOut,onMouseOver:r._onRectMouseMove},l[a].lineOptions)),1===e.length?o.createElement("circle",{id:"".concat(a,"-graph-").concat(r._uniqueIdForGraph),cx:n(e[0].xVal),cy:i(e[0].values[1]),r:6,stroke:r._colors[a],strokeWidth:3,fill:r._colors[a],opacity:r._opacity[a],fillOpacity:r._getOpacity(l[a].legend),onMouseMove:r._onRectMouseMove,onMouseOut:r._onRectMouseOut,onMouseOver:r._onRectMouseMove}):o.createElement("path",(0,t.pi)({id:"".concat(a,"-graph-").concat(r._uniqueIdForGraph),d:h(e),fill:r._colors[a],opacity:r._opacity[a],fillOpacity:r._getOpacity(l[a].legend),onMouseMove:r._onRectMouseMove,onMouseOut:r._onRectMouseOut,onMouseOver:r._onRectMouseMove},r.props.optimizeLargeData&&{"data-is-focusable":r._legendHighlighted(l[a].legend)||r._noLegendHighlighted(),role:"img","aria-label":"".concat(l[a].legend,", series ").concat(a+1," of ").concat(l.length," with ").concat(l[a].data.length," data points.")}))))}));var g=u&&u.r?Number(u.r):8;r._stackedData.forEach((function(e,a){l.length!==a&&(r.props.optimizeLargeData&&1!==e.length?e.forEach((function(e,c){var d=e.xVal instanceof Date?e.xVal.getTime():e.xVal;if(r.state.nearestCircleToHighlight===d){var h="".concat(r._circleId,"_").concat(a*r._stackedData[0].length+c);s=l[a].color,f.push(o.createElement("circle",(0,t.pi)({key:h,id:h,cx:n(e.xVal),cy:i(e.values[1]),stroke:s,strokeWidth:3,fill:r._updateCircleFillColor(d,s,h),onMouseOut:r._onRectMouseOut,onMouseOver:r._onRectMouseMove,onClick:r._onDataPointClick.bind(r,l[a].data[c].onDataPointClick)},u,{r:r._getCircleRadius(d,g,h)})))}})):f.push(o.createElement("g",{key:"".concat(a,"-dots-").concat(r._uniqueIdForGraph),d:h(e),clipPath:"url(#clip)"},e.map((function(e,c){var d="".concat(r._circleId,"_").concat(a*r._stackedData[0].length+c),h=e.xVal instanceof Date?e.xVal.getTime():e.xVal;return s=l[a].color,o.createElement("circle",(0,t.pi)({key:d,id:d,"data-is-focusable":r._legendHighlighted(l[a].legend)||r._noLegendHighlighted(),cx:n(e.xVal),cy:i(e.values[1]),stroke:s,strokeWidth:3,fill:r._updateCircleFillColor(h,s,d),onMouseOut:r._onRectMouseOut,onMouseOver:r._onRectMouseMove,onClick:r._onDataPointClick.bind(r,l[a].data[c].onDataPointClick),onFocus:function(){return r._handleFocus(a,c,d)},onBlur:r._handleBlur},u,{r:r._getCircleRadius(h,g,d),role:"img","aria-label":r._getAriaLabel(a,c)}))})))))})),f.push(o.createElement("line",(0,t.pi)({id:r._verticalLineId,key:r._verticalLineId,x1:r.state.lineXValue,y1:0,x2:r.state.lineXValue,y2:e,strokeWidth:1,strokeDasharray:5.5,stroke:s,opacity:.5,visibility:r.state.displayOfLine},d)));var m=vi(r.props.styles,{theme:r.props.theme});if(!r.props.showXAxisLablesTooltip)try{document.getElementById(r._tooltipId)&&document.getElementById(r._tooltipId).remove()}catch(e){}if(!r.props.wrapXAxisLables&&r.props.showXAxisLablesTooltip){var v=(0,Co.Ys)(a).call(n);try{document.getElementById(r._tooltipId)&&document.getElementById(r._tooltipId).remove()}catch(e){}var _={tooltipCls:m.tooltip,id:r._tooltipId,xAxis:v};v&&(0,Kt.$V)(_)}return f},r._getCircleRadius=function(e,t,n){var o=r.state,i=o.isCircleClicked,a=o.nearestCircleToHighlight,s=o.activePoint;return i&&a===e?1:a===e||s===n?t:0},r._closeCallout=function(){r.setState({isCalloutVisible:!1})},r._legendHighlighted=function(e){return r.state.selectedLegend===e||""===r.state.selectedLegend&&r.state.activeLegend===e},r._noLegendHighlighted=function(){return""===r.state.selectedLegend&&""===r.state.activeLegend},r._addDefaultColors=function(e){return e?e.map((function(e,n){var o,i,a;return a=void 0===e.color?vo(n,0,null===(o=r.props.theme)||void 0===o?void 0:o.isInverted):_o(e.color,null===(i=r.props.theme)||void 0===i?void 0:i.isInverted),(0,t.pi)((0,t.pi)({},e),{color:a})})):[]},r._handleFocus=function(e,t,n){var o=r.props.data.lineChartData[e].data[t],i=o.x,a=o.y,s=o.xAxisCalloutData,l=i instanceof Date?i.toLocaleString():i,c=i instanceof Date?i.getTime():i,u=r._calloutPoints.find((function(e){return e.x===c}));u.values=u.values.filter((function(e){return e.y===a})),r.setState({refSelected:"#".concat(n),isCalloutVisible:!0,hoverXValue:s||l,YValueHover:u.values,stackCalloutProps:u,dataPointCalloutProps:u,activePoint:n})},r._handleBlur=function(){r.setState({refSelected:null,isCalloutVisible:!1,hoverXValue:void 0,YValueHover:[],stackCalloutProps:void 0,dataPointCalloutProps:void 0,activePoint:""})},r._createSet=(0,ut.NF)(r._createDataSet),r.state={selectedLegend:"",activeLegend:"",hoverXValue:"",isCalloutVisible:!1,refSelected:null,YValueHover:[],lineXValue:0,displayOfLine:mi.hide,isCircleClicked:!1,nearestCircleToHighlight:null,isShowCalloutPending:!1,activePoint:""},Ot("AREA CHART",n,{showYAxisGridLines:"Dont use this property. Lines are drawn by default"}),r._uniqueIdForGraph=f("areaChart_"),r._verticalLineId=f("verticalLine_"),r._circleId=f("circle"),r._rectId=f("rectangle"),r._tooltipId=f("AreaChartTooltipID"),r._enableComputationOptimization=!0,r._firstRenderOptimization=!0,r._emptyChartId=f("_AreaChart_empty"),r}return(0,t.ZT)(n,e),n.prototype.componentDidUpdate=function(){this.state.isShowCalloutPending&&this.setState({refSelected:"#".concat(this._highlightedCircleId),isCalloutVisible:!0,isShowCalloutPending:!1})},n.prototype.render=function(){var e=this;if(!this._isChartEmpty()){var n=this.props.data,r=n.lineChartData,i=n.chartTitle,a=this._addDefaultColors(r),s=this._createSet(a),l=s.colors,c=s.opacity,u=s.stackedInfo,d=s.calloutPoints;this._calloutPoints=d;var h=(0,Kt.V4)(a);this._colors=l,this._opacity=c,this._stackedData=u.stackedData;var p=this._getLegendData(a),f={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat},g=(0,t.pi)({target:this.state.refSelected,isCalloutVisible:this.state.isCalloutVisible,directionalHint:_.topAutoEdge,YValueHover:this.state.YValueHover,hoverXValue:this.state.hoverXValue,id:"toolTip".concat(this._uniqueCallOutID),gapSpace:15,isBeakVisible:!1,onDismiss:this._closeCallout,"data-is-focusable":!0,xAxisCalloutAccessibilityData:this.state.xAxisCalloutAccessibilityData},this.props.calloutProps);return o.createElement(Oo,(0,t.pi)({},this.props,{chartTitle:i,points:a,chartType:Kt.$X.AreaChart,calloutProps:g,legendBars:p,isCalloutForStack:!0,xAxisType:h?Kt.xl.DateAxis:Kt.xl.NumericAxis,tickParams:f,maxOfYVal:u.maxOfYVal,getGraphData:this._getGraphData,getmargins:this._getMargins,customizedCallout:this._getCustomizedCallout(),onChartMouseLeave:this._handleChartMouseLeave,enableFirstRenderOptimization:this.props.enablePerfOptimization&&this._firstRenderOptimization,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 o.createElement(o.Fragment,null,o.createElement("g",null,o.createElement("rect",{id:e._rectId,width:r,height:i,fill:"transparent",onMouseMove:e._onRectMouseMove,onMouseOut:e._onRectMouseOut,onMouseOver:e._onRectMouseMove})),o.createElement("g",null,e._chart))}}))}return o.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"})},n.prototype._onLegendClick=function(e){this.state.selectedLegend===e?this.setState({selectedLegend:""}):this.setState({selectedLegend:e})},n.prototype._onLegendHover=function(e){this.setState({activeLegend:e})},n.prototype._onLegendLeave=function(){this.setState({activeLegend:""})},n.prototype._getAriaLabel=function(e,t){var n,r=this.props.data.lineChartData[e],o=r.data[t],i=o.x instanceof Date?o.x.toLocaleString():o.x,a=o.xAxisCalloutData||i,s=r.legend,l=o.yAxisCalloutData||o.y;return(null===(n=o.callOutAccessibilityData)||void 0===n?void 0:n.ariaLabel)||"".concat(a,". ").concat(s,", ").concat(l,".")},n.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.lineChartData&&this.props.data.lineChartData.length>0&&0===this.props.data.lineChartData.filter((function(e){return 0===e.data.length})).length)},n}(o.Component),xi=(0,e.z)(yi,(function(e){return{tooltip:(0,t.pi)((0,t.pi)({},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"})}})),bi=n(5795),Ci=function(e,t){var n=e.color;return{arcRoot:{fill:n},arcRootFocussed:{fill:n,stroke:(null==t?void 0:t.palette.black)||Ye.UK.black,strokeWidth:2},arc:{outline:"none"},arcText:{fill:(null==t?void 0:t.palette.black)||Ye.UK.black,outline:"none"}}},Ei=function(e){function n(t){var n=e.call(this,t)||this;return n.updateChart=function(e){Ai(e)},n._onFocus=function(){n.setState({isArcFocused:!0})},n._onBlur=function(){n.setState({isArcFocused:!1})},n.state={isArcFocused:!1},n._arcId=f("piechart_arc"),n}return(0,t.ZT)(n,e),n.getDerivedStateFromProps=function(e){return Ai(e),null},n.prototype.render=function(){var e,n=this,r=this.props.arc,a=(0,i.y)()((function(e){return Ci(e,n.props.theme)}),(0,t.pi)({},this.props));return o.createElement("path",{d:r(this.props.data),className:"".concat(this.state.isArcFocused?a.arcRootFocussed:a.arcRoot),onClick:null===(e=this.props.data)||void 0===e?void 0:e.data.onClick})},n.defaultProps={arc:no()},n}(o.Component),Si=function(e){function n(t){var n=e.call(this,t)||this;return n._isRTL=(0,a.zg)(),n._arcId=f("piechart_arc"),n}return(0,t.ZT)(n,e),n.prototype.render=function(){var t,n,r=this,a=this.props,s=a.data,l=a.culture,c=no().centroid({endAngle:(null==s?void 0:s.endAngle)||0,startAngle:(null==s?void 0:s.startAngle)||0,padAngle:null==s?void 0:s.padAngle,innerRadius:(null===(t=this.props)||void 0===t?void 0:t.outerRadius)||0,outerRadius:(null===(n=this.props)||void 0===n?void 0:n.outerRadius)||4}),u=c[0],d=c[1],h=(0,i.y)()((function(e){return Ci(e,r.props.theme)})),p=(((null==s?void 0:s.startAngle)||0)+((null==s?void 0:s.endAngle)||0))/2,f="".concat(null==s?void 0:s.data.x,"-").concat((0,Kt.Ts)(null==s?void 0:s.data.y,l));return o.createElement("g",{className:"".concat(h.arc," arc"),"data-is-focusable":!0,id:this._arcId,onFocus:this._onFocus,onBlur:this._onBlur,"aria-label":f,role:"img"},e.prototype.render.call(this),o.createElement(Po,{content:f,textProps:{x:u,y:d,dominantBaseline:p>Math.PI/2&&p<3*Math.PI/2?"hanging":"auto",textAnchor:!this._isRTL&&p>Math.PI||this._isRTL&&p<Math.PI?"end":"start","aria-label":"".concat(null==s?void 0:s.data.x,"-").concat((0,Kt.Ts)(null==s?void 0:s.data.y,l)),className:h.arcText},isTooltipVisibleProp:this.state.isArcFocused,shouldReceiveFocus:!1,maxWidth:40,wrapContent:Kt.nX}))},n}(Ei);function Ai(e){e.arc.innerRadius(e.innerRadius),e.arc.outerRadius(e.outerRadius)}var Li,ki=function(e){function n(t){var n=e.call(this,t)||this;return n.arcGenerator=function(e,t){return o.createElement(Si,{culture:n.props.culture,key:t,data:e,innerRadius:n.props.innerRadius,outerRadius:n.props.outerRadius,color:"".concat(n.colors(t)),theme:n.props.theme})},n}return(0,t.ZT)(n,e),n.prototype.render=function(){var e=this,t=this.props,n=t.pie,r=t.data,i=t.width,a=t.height,s=t.chartTitle,l=t.theme,c=[];if(r&&!this.props.colors)for(var u=0;u<r.length;u++)c.push(vo(u,0,null==l?void 0:l.isInverted));var d=this.props.colors,h=void 0===d?c:d;this.colors=(0,bi.Z)().range(h.map((function(e){return _o(e)})));var p=n(r),f="translate(".concat(i/2,", ").concat(a/2,")");return o.createElement(xn,{direction:Gt.domOrder},o.createElement("svg",{width:i,height:a,"aria-label":s},o.createElement("g",{className:"pie",transform:f},p.map((function(t,n){return e.arcGenerator(t,n)})))))},n.defaultProps={pie:Wr().padAngle(.01).sort(null).value((function(e){return e.y}))},n}(o.Component),Ti=(0,i.y)(),wi=function(e){function n(t){var n=e.call(this,t)||this;return n._emptyChartId=f("_PieChart_empty"),n}return(0,t.ZT)(n,e),n.prototype.render=function(){var e=this.props,t=e.data,n=e.width,r=e.height,i=e.colors,a=e.chartTitle,s=this.props,l=s.theme,c=s.className,u=s.styles,d=s.culture;this._classNames=Ti(u,{theme:l,width:n,height:r,className:c});var h=Math.min(n-80,r-32)/2;return this._isChartEmpty()?o.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):o.createElement("div",{className:this._classNames.root},this.props.chartTitle&&o.createElement("p",{className:this._classNames.chartTitle},this.props.chartTitle),o.createElement(ki,{culture:d,width:n,height:r,outerRadius:h,innerRadius:1,data:t,colors:i,chartTitle:a,theme:l}))},n.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.length>0&&this.props.data.filter((function(e){return e.y>0})).length>0)},n.defaultProps={data:[],width:600,height:350},n}(o.Component),Di=(0,e.z)(wi,(function(e){var n=e.className,r=e.theme,o=e.width+30,i=e.height+10;return{root:[r.fonts.medium,"ms-PieChart",n,{width:o+40}],chart:[{padding:20,width:o,height:i,boxSizing:"content-box"}],chartTitle:[(0,t.pi)({textAlign:"center"},r.fonts.mediumPlus)]}})),Mi=(0,i.y)(),Pi=function(e){function n(t){var n=e.call(this,t)||this;return n._isRTL=(0,a.zg)(),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?"".concat(n,", "):"")+"".concat(r,".")},n.state={isCalloutVisible:!1,selectedLegend:"",activeLegend:"",refSelected:null,dataForHoverCard:0,color:"",xCalloutValue:"",yCalloutValue:"",calloutLegend:"",barSpacingInPercent:0},n._refArray=[],n._onLeave=n._onLeave.bind(n),n._refCallback=n._refCallback.bind(n),n._onBarLeave=n._onBarLeave.bind(n),n._calloutId=f("callout"),n._emptyChartId=f("_SBC_empty"),n.barChartSvgRef=o.createRef(),n}return(0,t.ZT)(n,e),n.prototype.componentDidMount=function(){var e,t=(null===(e=this.barChartSvgRef.current)||void 0===e?void 0:e.getBoundingClientRect().width)||0;if(t){var n=3/t*100;this.setState({barSpacingInPercent:n})}},n.prototype.render=function(){if(!this._isChartEmpty()){this._adjustProps();var e=this.props,n=e.data,r=e.benchmarkData,i=e.targetData,a=e.hideNumberDisplay,s=e.ignoreFixStyle,l=e.culture,c=this.props.theme.palette,u=s||n.chartData.length>2?this.props.barHeight:12;r&&(r.color=r.color||c.neutralTertiary),i&&(i.color=i.color||c.neutralSecondary);var d=this._createBarsAndLegends(n,u,c,r,i),h=!1===a&&!s&&2===n.chartData.length,p=!1===a&&!s&&1===n.chartData.length,f=n.chartData.reduce((function(e,t){return e+(t.data?t.data:0)}),0),g=0;r&&f&&(g=r.data/f*100);var m=0;i&&f&&(m=i.data/f*100);var v=!1===this.props.hideLegend&&(s||n.chartData.length>2);this._classNames=Mi(this.props.styles,{legendColor:this.state.color,theme:this.props.theme,benchmarkColor:r?r.color:"",benchmarkRatio:g,targetColor:i?i.color:"",targetRatio:m,showTriangle:!(!r&&!i)});var y=function(){return(0,Kt.Ts)(n.chartData[0].data?n.chartData[0].data:0,l)};return o.createElement("div",{className:this._classNames.root,onMouseLeave:this._handleChartMouseLeave},o.createElement(xn,{direction:Gt.horizontal},o.createElement("div",{className:this._classNames.chartTitle},n.chartTitle&&o.createElement(Pn,{className:this._classNames.chartTitleLeft,content:n.chartTitle,accessibilityData:n.chartTitleAccessibilityData}),h&&o.createElement("div",(0,t.pi)({},(0,Kt.ey)(n.chartDataAccessibilityData,"text",!1)),o.createElement("span",{className:this._classNames.ratioNumerator},y()),!this.props.hideDenominator&&o.createElement("span",{className:this._classNames.ratioDenominator}," / "+(0,Kt.Ts)(f,l))),p&&o.createElement("div",(0,t.pi)({className:this._classNames.ratioNumerator},(0,Kt.ey)(n.chartDataAccessibilityData,"text",!1)),y())),(r||i)&&o.createElement("div",{className:this._classNames.benchmarkContainer},r&&o.createElement("div",{className:this._classNames.benchmark,role:"text"}),i&&o.createElement("div",{className:this._classNames.target,role:"text"}))),o.createElement(xn,{direction:Gt.horizontal},o.createElement("div",null,o.createElement("svg",{ref:this.barChartSvgRef,className:this._classNames.chart,"aria-label":null==n?void 0:n.chartTitle},o.createElement("g",null,d[0]),o.createElement(jt,(0,t.pi)({gapSpace:15,isBeakVisible:!1,target:this.state.refSelected,setInitialFocus:!0,hidden:!(!this.props.hideTooltip&&this.state.isCalloutVisible),directionalHint:_.topAutoEdge,id:this._calloutId,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0,shouldUpdateWhenHidden:!0},this.props.calloutProps,(0,Kt.ey)(this.state.callOutAccessibilityData,"text",!1)),o.createElement(o.Fragment,null,this.props.onRenderCalloutPerDataPoint?this.props.onRenderCalloutPerDataPoint(this.state.dataPointCalloutProps):o.createElement($t.ChartHoverCard,{Legend:this.state.xCalloutValue?this.state.xCalloutValue:this.state.calloutLegend,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard,color:this.state.color,culture:l})))))),v&&o.createElement("div",{className:this._classNames.legendContainer},d[1]))}return o.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"})},n.prototype._adjustProps=function(){this._classNames=Mi(this.props.styles,{legendColor:this.state.color,theme:this.props.theme,width:this.props.width,barHeight:this.props.barHeight,className:this.props.className})},n.prototype._createBarsAndLegends=function(e,n,r,i,a){var s,l=this,c=(null===(s=e.chartData)||void 0===s?void 0:s.reduce((function(e,t){return e+((t.data||0)>0?1:0)}),0))||1,u=this.state.barSpacingInPercent*(c-1),d=[r.blueLight,r.blue,r.blueMid,r.red,r.black],h=[],p=[],g=e.chartData.reduce((function(e,t){return e+(t.data?t.data:0)}),0),m=0,v=0,_=0;e.chartData.map((function(e,t){var n=e.data?e.data:0;return(v=n/g*100)<1&&0!==v?v=1:v>99&&100!==v&&(v=99),_+=v}));var y=0!==_?_/(100-u):1,x=e.chartData.map((function(e,t){var r=e.color?e.color:d[Math.floor(4*Math.random()+1)],i=e.data?e.data:0,a={title:e.legend,color:r,action:g>0?function(){l._onClick(e.legend)}:void 0,hoverAction:g>0?function(){l._handleChartMouseLeave(),l._onHover(e.legend)}:void 0,onMouseOutAction:g>0?function(){l._onLeave()}:void 0};e.placeHolder||h.push(a),t>0&&(m+=v),(v=i/g*100)<1&&0!==v?v=1/y:v>99&&100!==v?v=99/y:v/=y,p.push(m);var s=l.props.styles,c=!(!l._legendHighlighted(e.legend)&&!l._noLegendHighlighted());return l._classNames=Mi(s,{theme:l.props.theme,shouldHighlight:c,href:l.props.href}),o.createElement("g",{key:t,className:l._classNames.opacityChangeOnHover,ref:function(e){l._refCallback(e,a.title)},"data-is-focusable":!l.props.hideTooltip,onFocus:l._onBarFocus.bind(l,i,r,e),onBlur:l._onBarLeave,"aria-label":l._getAriaLabel(e),role:"img",onMouseOver:l._onBarHover.bind(l,i,r,e),onMouseMove:l._onBarHover.bind(l,i,r,e),onMouseLeave:l._onBarLeave,pointerEvents:"all",onClick:l.props.href?l._redirectToUrl.bind(l,l.props.href):e.onClick},o.createElement("rect",{key:t,id:f("_SBC_bar"),x:"".concat(l._isRTL?100-p[t]-v-l.state.barSpacingInPercent*t:p[t]+l.state.barSpacingInPercent*t,"%"),y:0,width:v+"%",height:n,fill:r}))}));this._addLegend(h,i),this._addLegend(h,a);var b=o.createElement(Ar,(0,t.pi)({legends:h,enabledWrapLines:this.props.enabledLegendsWrapLines,overflowProps:this.props.legendsOverflowProps,focusZonePropsInHoverCard:this.props.focusZonePropsForLegendsInHoverCard,overflowText:this.props.legendsOverflowText},this.props.legendProps));return[0===g?[this._generateEmptyBar(n,this.props.barBackgroundColor?this.props.barBackgroundColor:r.neutralLight)]:x,b]},n.prototype._onBarFocus=function(e,t,n){var r=this;this._refArray.forEach((function(o){o.index===n.legend&&r.setState({refSelected:o.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})}))},n.prototype._addLegend=function(e,t){if(t){var n={title:t.legend,color:t.color,shape:"triangle"};e.push(n)}},n.prototype._generateEmptyBar=function(e,t){return o.createElement("g",{key:0,className:this._classNames.opacityChangeOnHover},o.createElement("rect",{key:0,id:f("_SBC_empty_bar_"),x:"0%",y:0,width:"100%",height:e,fill:t}))},n.prototype._refCallback=function(e,t){this._refArray.push({index:t,refElement:e})},n.prototype._onClick=function(e){this.state.selectedLegend===e?this.setState({selectedLegend:""}):this.setState({selectedLegend:e})},n.prototype._onHover=function(e){this.setState({activeLegend:e})},n.prototype._onLeave=function(){this.setState({activeLegend:""})},n.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}))},n.prototype._onBarLeave=function(){},n.prototype._redirectToUrl=function(e){e&&(window.location.href=e)},n.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.chartData&&this.props.data.chartData.length>0)},n.defaultProps={barHeight:12,hideNumberDisplay:!1,hideLegend:!1,ignoreFixStyle:!1},n}(o.Component),Fi=(0,e.z)(Pi,(function(e){var n,r,o=e.className,i=e.width,a=e.barHeight,s=e.shouldHighlight,l=e.theme,c=e.href,u=e.benchmarkColor,d=e.benchmarkRatio,h=e.targetColor,p=e.targetRatio,f=e.showTriangle;return{root:[l.fonts.medium,"ms-StackedBarChart",{width:i||"100%",display:"flex",flexDirection:"column"},o],chart:{width:"100%",height:a||12,display:"block",marginBottom:f?"16px":"10px",overflow:"visible"},chartTitle:(0,t.pi)((0,t.pi)({},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:c?"pointer":"default",selectors:{"&:focus":{stroke:l.palette.black,strokeWidth:"2px"}}},ratioNumerator:{fontSize:Ye.TS.medium,fontWeight:Ye.lq.semibold,color:l.palette.neutralPrimary},ratioDenominator:{fontSize:Ye.TS.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:u,marginBottom:"4px",selectors:(n={},n[Ye.qJ]={border:"0px",height:"7px",width:"7px",clipPath:"polygon(50% 100%, 0 0, 100% 0)",backgroundImage:"linear-gradient(to right, ".concat(u,", ").concat(u,")")},n)},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:(r={},r[Ye.qJ]={border:"0px",height:"7px",width:"7px",clipPath:"polygon(50% 100%, 0 0, 100% 0)",backgroundImage:"linear-gradient(to right, ".concat(h,", ").concat(h,")")},r)}}}));!function(e){e.PartToWhole="part-to-whole",e.AbsoluteScale="absolute-scale"}(Li||(Li={}));var Ii,Ni=(0,i.y)(),Vi=function(e){function n(n){var r=e.call(this,n)||this;return r._isRTL=(0,a.zg)(),r._adjustProps=function(){var e=r.props,t=e.theme,n=e.className,o=e.styles,i=e.width,a=e.barHeight;r._classNames=Ni(o,{legendColor:r.state.color,theme:t,width:i,className:n,barHeight:a})},r._getLegendData=function(e,n,i){var a=[i.blueLight,i.blue,i.blueMid,i.red,i.black],s=[];return e.forEach((function(e,t){var o=e.chartData.filter((function(e){return!e.placeHolder}));o.length<3?void 0!==n[t]&&n[t]&&o.forEach((function(e){var t=e.color?e.color:a[Math.floor(4*Math.random()+1)];if(!(s.filter((function(n){return n.title===e.legend&&n.color===t})).length>0)){var n={title:e.legend,color:t,action:function(){r._onClick(e.legend)},hoverAction:function(){r._handleChartMouseLeave(),r._onHover(e.legend)},onMouseOutAction:function(){r._onLeave()}};s.push(n)}})):o.forEach((function(e){var t=e.color?e.color:a[Math.floor(4*Math.random()+1)];if(!(s.filter((function(n){return n.title===e.legend&&n.color===t})).length>0)){var n={title:e.legend,color:t,action:function(){r._onClick(e.legend)},hoverAction:function(){r._handleChartMouseLeave(),r._onHover(e.legend)},onMouseOutAction:function(){r._onLeave()}};s.push(n)}}))})),o.createElement(Ar,(0,t.pi)({legends:s,overflowProps:r.props.legendsOverflowProps,focusZonePropsInHoverCard:r.props.focusZonePropsForLegendsInHoverCard,overflowText:r.props.legendsOverflowText},r.props.legendProps))},r._handleChartMouseLeave=function(){r._calloutAnchorPoint=null,r.setState({isCalloutVisible:!1})},r._closeCallout=function(){r.setState({isCalloutVisible:!1})},r._legendHighlighted=function(e){return r.state.selectedLegend===e||""===r.state.selectedLegend&&r.state.activeLegend===e},r._noLegendHighlighted=function(){return""===r.state.selectedLegend&&""===r.state.activeLegend},r._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?"".concat(n,", "):"")+"".concat(r,".")},r._computeLongestBarTotalValue=function(){var e=0;return r.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},r.state={isCalloutVisible:!1,refArray:[],selectedLegend:"",activeLegend:"",refSelected:null,dataForHoverCard:0,color:"",xCalloutValue:"",yCalloutValue:"",calloutLegend:"",barSpacingInPercent:0},r._onLeave=r._onLeave.bind(r),r._onBarLeave=r._onBarLeave.bind(r),r._calloutId=f("callout"),r.barChartSvgRef=o.createRef(),r._emptyChartId=f("_MSBC_empty"),r._barId=f("_MSBC_rect_"),r._barIdPlaceholderPartToWhole=f("_MSBC_rect_partToWhole_"),r._barIdEmpty=f("_MSBC_rect_empty"),r}return(0,t.ZT)(n,e),n.prototype.componentDidMount=function(){var e,t=(null===(e=this.barChartSvgRef.current)||void 0===e?void 0:e.getBoundingClientRect().width)||0;if(t){var n=3/t*100;this.setState({barSpacingInPercent:n})}},n.prototype.render=function(){var e=this;if(!this._isChartEmpty()){var n=this.props,r=n.data,i=n.theme,a=n.culture;this._adjustProps();var s=i.palette,l=this._getLegendData(r,this.props.hideRatio,s),c=this.state.isCalloutVisible;this._classNames=Ni(this.props.styles,{legendColor:this.state.color,theme:i,variant:this.props.variant,hideLabels:this.props.hideLabels});var u=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=r.map((function(t,n){var r=e._createBarsAndLegends(t,e.props.barHeight,s,e.props.hideRatio[n],e.props.hideDenominator[n],e.props.href,n);return o.createElement("div",{key:n,id:"_MSBC_bar-".concat(n)},r)}));return o.createElement("div",{className:this._classNames.root,onMouseLeave:this._handleChartMouseLeave},h,!this.props.hideLegend&&o.createElement("div",{className:this._classNames.legendContainer},l),o.createElement(jt,(0,t.pi)({gapSpace:15,isBeakVisible:!1,target:this.state.refSelected,setInitialFocus:!0,hidden:!(!this.props.hideTooltip&&c),directionalHint:_.topAutoEdge,id:this._calloutId,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0,shouldUpdateWhenHidden:!0},this.props.calloutProps,(0,Kt.ey)(this.state.callOutAccessibilityData,"text",!1)),o.createElement(o.Fragment,null,this.props.onRenderCalloutPerDataPoint?this.props.onRenderCalloutPerDataPoint(this.state.dataPointCalloutProps):o.createElement($t.ChartHoverCard,{Legend:u,YValue:d,color:this.state.color,culture:a}))))}return o.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"})},n.prototype._createBarsAndLegends=function(e,n,r,i,a,s,l){var c,u,d=this,h=(null===(c=e.chartData)||void 0===c?void 0:c.reduce((function(e,t){return e+((t.data||0)>0?1:0)}),0))||1,p=this.state.barSpacingInPercent*(h-1),f=this.props.culture,g=[r.blueLight,r.blue,r.blueMid,r.red,r.black],m=[],v=e.chartData.reduce((function(e,t){return e+(t.data?t.data:0)}),0),_=this.props.variant===Li.AbsoluteScale?this._longestBarTotalValue:v,y=0;if(e.chartData.map((function(e,t){var n=(e.data?e.data:0)/_*100||0;return n<1&&0!==n?n=1:n>99&&100!==n&&(n=99),y+=n})),this.props.variant===Li.AbsoluteScale){var x=0===_?0:(_-v)/_*100;x<1&&0!==x?x=1:x>99&&100!==x&&(x=99),y+=x}var b=0!==y?y/(100-p):1,C=0,E=0,S=e.chartData.map((function(e,t){var i=e.color?e.color:e.placeHolder?r.neutralLight:g[Math.floor(4*Math.random()+1)],a=e.data?e.data:0;t>0&&(C+=E),(E=a/_*100?a/_*100:0)<1&&0!==E?E=1/b:E>99&&100!==E?E=99/b:E/=b,m.push(C);var c=d.props.styles,u=!(!d._legendHighlighted(e.legend)&&!d._noLegendHighlighted());return d._classNames=Ni(c,{theme:d.props.theme,shouldHighlight:u,href:s,variant:d.props.variant,hideLabels:d.props.hideLabels}),o.createElement("g",{key:t,className:e.placeHolder?d._classNames.placeHolderOnHover:d._classNames.opacityChangeOnHover,ref:function(t){d._refCallback(t,e.legend)},"data-is-focusable":!d.props.hideTooltip,onFocus:d._onBarFocus.bind(d,a,i,e),onBlur:d._onBarLeave,role:"img","aria-label":d._getAriaLabel(e),onMouseOver:e.placeHolder?void 0:d._onBarHover.bind(d,a,i,e),onMouseMove:e.placeHolder?void 0:d._onBarHover.bind(d,a,i,e),onMouseLeave:e.placeHolder?void 0:d._onBarLeave,onClick:s?e.placeHolder?void 0:d._redirectToUrl.bind(d,s):e.onClick},o.createElement("rect",{key:t,id:"".concat(d._barId,"-").concat(l,"-").concat(t),x:"".concat(d._isRTL?100-m[t]-E-d.state.barSpacingInPercent*t:m[t]+d.state.barSpacingInPercent*t,"%"),y:0,width:E+"%",height:n,fill:i}))}));if(this.props.variant!==Li.AbsoluteScale||this.props.hideLabels)0===e.chartData.length&&S.push(o.createElement("g",{key:0,className:this._classNames.noData,onClick:this._redirectToUrl.bind(this,s)},o.createElement("rect",{key:0,id:this._barIdPlaceholderPartToWhole,x:"0%",y:0,width:"100%",height:n,fill:r.neutralLight}))),0===v&&S.push(o.createElement("g",{key:"empty",className:this._classNames.noData,onClick:this._redirectToUrl.bind(this,s)},o.createElement("rect",{key:0,id:this._barIdEmpty,x:"0%",y:0,width:"100%",height:n,fill:r.neutralLight})));else{var A=!1,L=0;this._noLegendHighlighted()?(A=!0,L=v):null===(u=e.chartData)||void 0===u||u.forEach((function(e){d._legendHighlighted(e.legend)&&(A=!0,L+=e.data?e.data:0)})),A&&S.push(o.createElement("text",{key:"text",x:"".concat(this._isRTL?100-(m[m.length-1]||0)-E-p:(m[m.length-1]||0)+E+p,"%"),textAnchor:"start",y:n/2,dominantBaseline:"central",transform:"translate(".concat(this._isRTL?-4:4,")"),className:this._classNames.barLabel,"aria-label":"Total: ".concat(L),role:"img"},(0,Kt.cE)(L)))}var k=void 0!==i&&i,T=this.props.variant!==Li.AbsoluteScale&&!k&&2===e.chartData.length,w=this.props.variant!==Li.AbsoluteScale&&!k&&1===e.chartData.length,D=function(){return(0,Kt.Ts)(e.chartData[0].data?e.chartData[0].data:0,f)};return o.createElement("div",{className:this._classNames.singleChartRoot},o.createElement(xn,{direction:Gt.horizontal},o.createElement("div",{className:this._classNames.chartTitle},e.chartTitle&&o.createElement(Pn,{className:this._classNames.chartTitleLeft,content:e.chartTitle,accessibilityData:e.chartTitleAccessibilityData}),T&&o.createElement("div",(0,t.pi)({},(0,Kt.ey)(e.chartDataAccessibilityData,"text",!1)),o.createElement("span",{className:this._classNames.ratioNumerator},D()),!a&&o.createElement("span",{className:this._classNames.ratioDenominator}," / "+(0,Kt.Ts)(v,f))),w&&o.createElement("div",(0,t.pi)({className:this._classNames.ratioNumerator},(0,Kt.ey)(e.chartDataAccessibilityData,"text",!1)),D()))),o.createElement(xn,{direction:Gt.horizontal},o.createElement("div",{className:this._classNames.chartWrapper},o.createElement("svg",{ref:this.barChartSvgRef,className:this._classNames.chart,"aria-label":null==e?void 0:e.chartTitle},S))))},n.prototype._onBarFocus=function(e,t,n){var r=this;this.state.refArray.forEach((function(o){o.legendText===n.legend&&r.setState({refSelected:o.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})}))},n.prototype._refCallback=function(e,t){this.state.refArray.push({legendText:t,refElement:e})},n.prototype._onHover=function(e){this.setState({activeLegend:e})},n.prototype._onClick=function(e){this.state.selectedLegend===e?this.setState({selectedLegend:""}):this.setState({selectedLegend:e})},n.prototype._onLeave=function(){this.setState({activeLegend:""})},n.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}))},n.prototype._onBarLeave=function(){},n.prototype._redirectToUrl=function(e){e&&(window.location.href=e)},n.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.length>0&&0===this.props.data.filter((function(e){return e.chartData&&0===e.chartData.length&&(!e.chartTitle||""===e.chartTitle)})).length)},n.defaultProps={barHeight:12,hideRatio:[],hideDenominator:[]},n}(o.Component),Oi=(0,e.z)(Vi,(function(e){var n=e.className,r=e.width,o=e.barHeight,i=e.shouldHighlight,a=e.theme,s=e.href,l=e.variant,c=e.hideLabels;return{root:[a.fonts.medium,"ms-StackedBarChart",{display:"flex",flexDirection:"column",width:r||"100%"},n],items:{marginBottom:"11px"},chart:{width:"100%",height:o||12,display:"block",overflow:"visible"},chartTitle:(0,t.pi)((0,t.pi)({},a.fonts.small),{display:"flex",justifyContent:"space-between"}),chartTitleLeft:{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",display:"block",color:a.palette.neutralPrimary,marginBottom:l===Li.AbsoluteScale?"4px":"5px"},singleChartRoot:{width:r||"100%",display:"flex",flexDirection:"column",marginBottom:l===Li.AbsoluteScale?"16px":"10px"},opacityChangeOnHover:{opacity:i?"":"0.1",cursor:s?"pointer":"default",selectors:{"&:focus":{stroke:a.palette.black,strokeWidth:"2px"}}},ratioNumerator:{fontSize:Ye.TS.medium,fontWeight:Ye.lq.semibold,color:a.palette.neutralPrimary},ratioDenominator:{fontSize:Ye.TS.medium,color:a.palette.neutralPrimary},placeHolderOnHover:{opacity:i?"":"0.1",cursor:"default",selectors:{"&:focus":{stroke:a.palette.black,strokeWidth:"2px"}}},legendContainer:{margin:"5px 0px 0px 4px"},noData:{cursor:s?"pointer":"default"},barLabel:{fontSize:Ye.TS.small,fontWeight:Ye.lq.semibold,fill:a.palette.neutralPrimary},chartWrapper:{paddingRight:l!==Li.AbsoluteScale||c?0:40}}})),Hi=n(5561),Bi=n(8815),Ri=n(8639),zi=n(6775);!function(e){e.show="visibility",e.hide="hidden"}(Ii||(Ii={}));var Wi,Yi=(0,i.y)(),Zi=function(e){function n(n){var r=e.call(this,n)||this;return r._isRtl=(0,a.zg)(),r._createLine=function(e,t,n,i,a){var s;void 0===n&&(n=0),void 0===i&&(i=0);var l=r._xAxisType===Kt.xl.StringAxis,c=r._getScales(n,i).xBarScale,u=r._createColors(),d=r.props.theme,h=r.props,p=h.data,g=h.lineLegendColor,m=void 0===g?d.palette.yellow:g,v=h.lineLegendText,_=[],y=[];p&&p.forEach((function(e,t){var n;e.lineData&&e.lineData.y&&_.push({x:e.x,y:e.lineData.y,useSecondaryYScale:null!==(n=e.lineData.useSecondaryYScale)&&void 0!==n&&n,point:e,index:t})}));var x=To().x((function(t){return l?c(t.x)+.5*c.bandwidth():e(t.x)})).y((function(e){return e.useSecondaryYScale&&a?a(e.y):t(e.y)})),b=!(!r._legendHighlighted(v)&&!r._noLegendHighlighted()),C=(null===(s=r.props.lineOptions)||void 0===s?void 0:s.lineBorderWidth)?Number.parseFloat(r.props.lineOptions.lineBorderWidth.toString()):0;C>0&&y.push(o.createElement("path",{key:f("_VBC_line_"),id:f("_VBC_line_"),opacity:b?1:.1,d:x(_),fill:"transparent",strokeLinecap:"square",strokeWidth:3+2*C,stroke:d.palette.white})),y.push(o.createElement("path",{key:f("_VBC_line_"),id:f("_VBC_line_"),opacity:b?1:.1,d:x(_),fill:"transparent",strokeLinecap:"square",strokeWidth:3,stroke:m}));var E=_.map((function(n,i){var s;return o.createElement("circle",{key:i,id:f("_VBC_point_"),cx:l?c(n.x)+.5*c.bandwidth():e(n.x),cy:n.useSecondaryYScale&&a?a(n.y):t(n.y),onMouseOver:r._onBarHover.bind(r,n.point,u(n.y)),onMouseOut:r._onBarLeave,r:8,stroke:m,fill:r.props.theme.palette.white,strokeWidth:3,visibility:r.state.activeXdataPoint===n.x?Ii.show:Ii.hide,onClick:null===(s=n.point.lineData)||void 0===s?void 0:s.onClick})}));return o.createElement(o.Fragment,null,y,E)},r._checkForLine=function(){return r.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)}))},r._getMargins=function(e){r.margins=e},r._renderContentForBothLineAndBars=function(e){var n=r._getCalloutContentForLineAndBar(e),i=n.YValueHover,a=n.hoverXValue,s=i.map((function(e,n){return o.createElement($t.ChartHoverCard,(0,t.pi)({key:n,Legend:e.legend},0===n&&{XValue:"".concat(a||e.data)},{color:e.color,YValue:e.data||e.y,culture:r.props.culture}))}));return o.createElement(o.Fragment,null,s)},r._renderContentForOnlyBars=function(e){var t=r.props.useSingleColor,n=void 0!==t&&t;return o.createElement(o.Fragment,null,o.createElement($t.ChartHoverCard,{XValue:e.xAxisCalloutData||e.x,Legend:e.legend,YValue:e.yAxisCalloutData||e.y,color:!n&&e.color?e.color:r._createColors()(e.y),culture:r.props.culture}))},r._renderCallout=function(e){return e?r._isHavingLine?r._renderContentForBothLineAndBars(e):r._renderContentForOnlyBars(e):null},r._getCustomizedCallout=function(){return r.props.onRenderCalloutPerDataPoint?r.props.onRenderCalloutPerDataPoint(r.state.dataPointCalloutProps,r._renderCallout):null},r._getGraphData=function(e,t,n,o,i){return r._bars=r._xAxisType===Kt.xl.NumericAxis?r._createNumericBars(n,o,i):r._xAxisType===Kt.xl.DateAxis?r._createDateBars(n,o,i):r._createStringBars(n,o,i)},r._refCallback=function(e,t){r._refArray.push({index:t,refElement:e})},r._getCalloutContentForLineAndBar=function(e){var t,n,o,i,a=[],s=r.props,l=s.theme,c=s.useSingleColor,u=void 0!==c&&c,d=r.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}));r._isHavingLine&&void 0!==(null===(t=m[0].lineData)||void 0===t?void 0:t.y)&&a.push({legend:p,color:g,y:null===(n=m[0].lineData)||void 0===n?void 0:n.y,data:null===(o=m[0].lineData)||void 0===o?void 0:o.yAxisCalloutData,yAxisCalloutData:null===(i=m[0].lineData)||void 0===i?void 0:i.yAxisCalloutData}),a.push({legend:m[0].legend,y:m[0].y,color:u?r._createColors()(1):m[0].color?m[0].color:r._createColors()(m[0].y),data:m[0].yAxisCalloutData,yAxisCalloutData:m[0].yAxisCalloutData});var v=e.x instanceof Date?e.x.toLocaleString():e.x.toString();return{YValueHover:a,hoverXValue:e.xAxisCalloutData||v}},r._onBarLeave=function(){},r._handleChartMouseLeave=function(){r._calloutAnchorPoint=null,r.setState({isCalloutVisible:!1,activeXdataPoint:null,YValueHover:[],hoverXValue:""})},r._onBarFocus=function(e,t,n){var o=r._getCalloutContentForLineAndBar(e),i=o.YValueHover,a=o.hoverXValue;r._refArray.forEach((function(o,s){o.index===e.legend&&t===s&&r.setState({refSelected:o.refElement,isCalloutVisible:""===r.state.selectedLegend||r.state.selectedLegend===e.legend,calloutLegend:e.legend,dataForHoverCard:e.y,color:e.color||n,xCalloutValue:e.xAxisCalloutData||(e.x instanceof Date?e.x.toLocaleDateString():e.x.toString()),yCalloutValue:e.yAxisCalloutData,dataPointCalloutProps:e,activeXdataPoint:e.x,YValueHover:i,hoverXValue:a,callOutAccessibilityData:e.callOutAccessibilityData})}))},r._getScales=function(e,t){var n,o=(0,Bi.Z)().domain([0,r._yMax]).range([0,e-r.margins.bottom-r.margins.top]);if(r._xAxisType===Kt.xl.NumericAxis){var i=(0,ri.Z)(r._points,(function(e){return e.x})),a=(0,Hi.Z)(r._points,(function(e){return e.x}));n=(0,Bi.Z)().domain(r._isRtl?[i,a]:[a,i]).nice().range([r.margins.left+r._domainMargin,t-r.margins.right-r._barWidth-r._domainMargin])}else if(r._xAxisType===Kt.xl.DateAxis){var s=(0,Hi.Z)(r._points,(function(e){return e.x})),l=(0,ri.Z)(r._points,(function(e){return e.x}));n=(0,Ri.Z)().domain([s,l]).range([r.margins.left+r._domainMargin+r._barWidth/2,t-r.margins.right-r._barWidth/2-r._domainMargin])}else n=(0,zi.Z)().domain(r._xAxisLabels).range(r._isRtl?[t-r.margins.right-r._domainMargin,r.margins.left+r._domainMargin]:[r.margins.left+r._domainMargin,t-r.margins.right-r._domainMargin]).paddingInner(2/3);return{xBarScale:n,yBarScale:o}},r._closeCallout=function(){r.setState({isCalloutVisible:!1})},r._getLegendData=function(e,n){var i=r.props,a=i.theme,s=i.useSingleColor,l=r.props,c=l.lineLegendText,u=l.lineLegendColor,d=void 0===u?a.palette.yellow:u,h=[];if(e.forEach((function(e,t){var n=s?r._createColors()(1):e.color,o={title:e.legend,color:n,action:function(){r._onLegendClick(e.legend)},hoverAction:function(){r._handleChartMouseLeave(),r._onLegendHover(e.legend)},onMouseOutAction:function(){r._onLegendLeave()}};h.push(o)})),r._isHavingLine&&c&&d){var p={title:c,color:d,action:function(){r._onLegendClick(c)},hoverAction:function(){r._handleChartMouseLeave(),r._onLegendHover(c)},onMouseOutAction:function(){r._onLegendLeave()},isLineLegendInBarChart:!0};h.unshift(p)}return o.createElement(Ar,(0,t.pi)({legends:h,enabledWrapLines:r.props.enabledLegendsWrapLines,overflowProps:r.props.legendsOverflowProps,focusZonePropsInHoverCard:r.props.focusZonePropsForLegendsInHoverCard,overflowText:r.props.legendsOverflowText},r.props.legendProps))},r._getAxisData=function(e){if(e&&e.yAxisDomainValues.length){var t=e.yAxisDomainValues;r._yMax=Math.max(t[t.length-1],r.props.yMaxValue||0)}},r._legendHighlighted=function(e){return r.state.selectedLegend===e||""===r.state.selectedLegend&&r.state.activeLegend===e},r._noLegendHighlighted=function(){return""===r.state.selectedLegend&&""===r.state.activeLegend},r._getAriaLabel=function(e){var t,n,o,i=e.xAxisCalloutData?e.xAxisCalloutData:e.x instanceof Date?e.x.toLocaleString():e.x,a=e.legend,s=e.yAxisCalloutData||e.y,l=r.props.lineLegendText||"Line",c=(null===(t=e.lineData)||void 0===t?void 0:t.yAxisCalloutData)||(null===(n=e.lineData)||void 0===n?void 0:n.y);return(null===(o=e.callOutAccessibilityData)||void 0===o?void 0:o.ariaLabel)||"".concat(i,". ")+(a?"".concat(a,", "):"")+"".concat(s,".")+(void 0!==c?" ".concat(l,", ").concat(c,"."):"")},r._getDomainMargins=function(e){if(r._xAxisType===Kt.xl.StringAxis){var n=e-(r.margins.left+8)-(r.margins.right+8),o=Math.min(r.props.barWidth||16,24),i=(3*r._xAxisLabels.length-2)*o;r._domainMargin=8,n>=i?r._domainMargin+=(n-i)/2:o=n/(3*r._xAxisLabels.length-2),r._barWidth=o}return(0,t.pi)((0,t.pi)({},r.margins),{left:r.margins.left+r._domainMargin,right:r.margins.right+r._domainMargin})},r.state={color:"",dataForHoverCard:0,isCalloutVisible:!1,refSelected:null,selectedLegend:"",activeLegend:"",xCalloutValue:"",yCalloutValue:"",activeXdataPoint:null,YValueHover:[],hoverXValue:"",calloutLegend:""},r._isHavingLine=r._checkForLine(),r._calloutId=f("callout"),r._tooltipId=f("VCTooltipID_"),r._refArray=[],r._xAxisType=r.props.data&&r.props.data.length>0?(0,Kt.SY)(r.props.data[0].x,!0):Kt.xl.StringAxis,r._domainMargin=8,r._emptyChartId=f("_VBC_empty"),r}return(0,t.ZT)(n,e),n.prototype.render=function(){var e=this;this._adjustProps(),this._xAxisLabels=this._points.map((function(e){return e.x})),this._yMax=Math.max((0,ri.Z)(this._points,(function(e){return e.y})),this.props.yMaxValue||0);var n=this._getLegendData(this._points,this.props.theme.palette);this._classNames=Yi(this.props.styles,{theme:this.props.theme,legendColor:this.state.color});var r=(0,t.pi)((0,t.pi)((0,t.pi)((0,t.pi)({isCalloutVisible:this.state.isCalloutVisible,directionalHint:_.topAutoEdge,id:"toolTip".concat(this._calloutId),target:this.state.refSelected,isBeakVisible:!1},this._isHavingLine&&{YValueHover:this.state.YValueHover,hoverXValue:this.state.hoverXValue}),{gapSpace:15,color:this.state.color,legend:this.state.calloutLegend,XValue:this.state.xCalloutValue,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0}),this.props.calloutProps),(0,Kt.ey)(this.state.callOutAccessibilityData)),i={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return this._isChartEmpty()?o.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):o.createElement(Oo,(0,t.pi)({},this.props,{points:this._points,chartType:Kt.$X.VerticalBarChart,xAxisType:this._xAxisType,calloutProps:r,tickParams:i},this._isHavingLine&&{isCalloutForStack:!0},{legendBars:n,datasetForXAxisDomain:this._xAxisLabels,barwidth:this._barWidth,focusZoneDirection:Gt.horizontal,customizedCallout:this._getCustomizedCallout(),getmargins:this._getMargins,getGraphData:this._getGraphData,getAxisData:this._getAxisData,onChartMouseLeave:this._handleChartMouseLeave,getDomainMargins:this._getDomainMargins},this._xAxisType!==Kt.xl.NumericAxis&&{xAxisInnerPadding:2/3,xAxisOuterPadding:0},{children:function(t){return o.createElement(o.Fragment,null,o.createElement("g",null,e._bars),e._isHavingLine&&o.createElement("g",null,e._createLine(t.xScale,t.yScale,t.containerHeight,t.containerWidth,t.yScaleSecondary)))}}))},n.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()},n.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,o=n.colors;return o&&o.length>0?o[0]:r.palette.blueLight};for(var r=[],o=0;o<this._colors.length;o++)r.push(t*o*this._yMax);return(0,Bi.Z)().domain(r).range(this._colors)},n.prototype._onBarHover=function(e,t,n){n.persist();var r=this._getCalloutContentForLineAndBar(e),o=r.YValueHover,i=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 instanceof Date?e.x.toLocaleDateString():e.x.toString()),yCalloutValue:e.yAxisCalloutData,dataPointCalloutProps:e,activeXdataPoint:e.x,YValueHover:o,hoverXValue:i,callOutAccessibilityData:e.callOutAccessibilityData}))},n.prototype._createNumericBars=function(e,t,n){var r=this,i=this.props.useSingleColor,a=void 0!==i&&i,s=this._getScales(e,t),l=s.xBarScale,c=s.yBarScale,u=this._createColors(),d=this._points.map((function(t,n){var i=!(!r._legendHighlighted(t.legend)&&!r._noLegendHighlighted());r._classNames=Yi(r.props.styles,{theme:r.props.theme,legendColor:r.state.color,shouldHighlight:i});var s,d=Math.max(c(t.y),0);if(d<=0)return o.createElement(o.Fragment,{key:t.x}," ");s=d<=Math.ceil(c(r._yMax)/100)?Math.ceil(c(r._yMax)/100):d;var h=l(t.x),p=e-r.margins.bottom-s;return o.createElement("g",{key:t.x},o.createElement("rect",{id:f("_VBC_bar_"),x:h,className:r._classNames.opacityChangeOnHover,y:p,width:r._barWidth,"data-is-focusable":!r.props.hideTooltip,height:s,ref:function(e){r._refCallback(e,t.legend)},onClick:t.onClick,onMouseOver:r._onBarHover.bind(r,t,u(t.y)),"aria-label":r._getAriaLabel(t),role:"img",onMouseLeave:r._onBarLeave,onFocus:r._onBarFocus.bind(r,t,n,u(t.y)),onBlur:r._onBarLeave,fill:t.color&&!a?t.color:u(t.y)}),r._renderBarLabel(h,p,t.y,t.legend))}));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=(0,Co.Ys)(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&&(0,Kt.$V)(p)}return d},n.prototype._createStringBars=function(e,t,n){var r=this,i=this._getScales(e,t),a=i.xBarScale,s=i.yBarScale,l=this._createColors(),c=this._points.map((function(t,n){var i,c=Math.max(s(t.y),0);if(c<=0)return o.createElement(o.Fragment,{key:t.x instanceof Date?t.x.getTime():t.x}," ");i=c<=Math.ceil(s(r._yMax)/100)?Math.ceil(s(r._yMax)/100):c;var u=a(t.x),d=e-r.margins.bottom-i;return o.createElement("g",{key:t.x instanceof Date?t.x.getTime():t.x,transform:"translate(".concat(.5*(a.bandwidth()-r._barWidth),", 0)")},o.createElement("rect",{id:f("_VBC_bar_"),x:u,y:d,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,d,t.y,t.legend))}));if(!this.props.showXAxisLablesTooltip)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(e){}if(!this.props.wrapXAxisLables&&this.props.showXAxisLablesTooltip){var u=(0,Co.Ys)(n).call(a);try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(e){}var d={tooltipCls:this._classNames.tooltip,id:this._tooltipId,xAxis:u,showTooltip:this.props.showXAxisLablesTooltip};u&&(0,Kt.$V)(d)}return c},n.prototype._createDateBars=function(e,t,n){var r=this,i=this.props.useSingleColor,a=void 0!==i&&i,s=this._getScales(e,t),l=s.xBarScale,c=s.yBarScale,u=this._createColors(),d=this._points.map((function(t,n){var i=!(!r._legendHighlighted(t.legend)&&!r._noLegendHighlighted());r._classNames=Yi(r.props.styles,{theme:r.props.theme,legendColor:r.state.color,shouldHighlight:i});var s,d=Math.max(c(t.y),0);if(d<=0)return o.createElement(o.Fragment,{key:t.x instanceof Date?t.x.getTime():t.x}," ");s=d<=Math.ceil(c(r._yMax)/100)?Math.ceil(c(r._yMax)/100):d;var h=l(t.x)-r._barWidth/2,p=e-r.margins.bottom-s;return o.createElement("g",{key:t.x instanceof Date?t.x.getTime():t.x},o.createElement("rect",{id:f("_VBC_bar_"),x:h,className:r._classNames.opacityChangeOnHover,y:p,width:r._barWidth,"data-is-focusable":!r.props.hideTooltip,height:s,ref:function(e){r._refCallback(e,t.legend)},onClick:t.onClick,onMouseOver:r._onBarHover.bind(r,t,u(t.y)),"aria-label":r._getAriaLabel(t),role:"img",onMouseLeave:r._onBarLeave,onFocus:r._onBarFocus.bind(r,t,n,u(t.y)),onBlur:r._onBarLeave,fill:t.color&&!a?t.color:u(t.y)}),r._renderBarLabel(h,p,t.y,t.legend))}));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=(0,Co.Ys)(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&&(0,Kt.$V)(p)}return d},n.prototype._onLegendClick=function(e){this.state.selectedLegend===e?this.setState({selectedLegend:""}):this.setState({selectedLegend:e})},n.prototype._onLegendHover=function(e){this.setState({activeLegend:e})},n.prototype._onLegendLeave=function(){this.setState({activeLegend:""})},n.prototype._renderBarLabel=function(e,t,n,r){return this.props.hideLabels||this._barWidth<16||!this._legendHighlighted(r)&&!this._noLegendHighlighted()?null:o.createElement("text",{x:e+this._barWidth/2,y:t-6,textAnchor:"middle",className:this._classNames.barLabel,"aria-hidden":!0},(0,Kt.cE)(n))},n.prototype._isChartEmpty=function(){return 0===this._points.length||(0,ri.Z)(this._points,(function(e){return e.y}))<=0&&!this._isHavingLine},n}(o.Component),qi=(0,e.z)(Zi,(function(e){var n=e.shouldHighlight,r=e.theme;return{opacityChangeOnHover:{opacity:n?"":"0.1"},xAxisTicks:[],yAxisTicks:[{transform:"scaleX(-1)"}],yAxisDomain:[{transform:"scaleX(-1)"}],tooltip:(0,t.pi)((0,t.pi)({},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:Ye.TS.small,fontWeight:Ye.lq.semibold,fill:r.palette.neutralPrimary}}})),Xi=(0,i.y)();!function(e){e.show="visibility",e.hide="hidden"}(Wi||(Wi={}));var Ui=function(e){function n(n){var r=e.call(this,n)||this;return r._isRtl=(0,a.zg)(),r._toFocusWholeStack=function(e){var t=r.props.isCalloutForStack,n=void 0!==t&&t;return e?""===r.state.selectedLegend:n},r._getFormattedLineData=function(e){var n=[],r={};return e.forEach((function(e,r){e.lineData&&e.lineData.forEach((function(o){n.push((0,t.pi)((0,t.pi)({},o),{index:r,xItem:e}))}))})),n.forEach((function(e){r[e.legend]?r[e.legend].push(e):r[e.legend]=[e]})),r},r._getLineLegends=function(e){var t=r._lineObject,n=[];return Object.keys(t).forEach((function(e){n.push({title:e,color:t[e][0].color})})),n},r._createLines=function(e,n,i,a,s){var l,c=r._xAxisType===Kt.xl.NumericAxis,u=r._xAxisType===Kt.xl.DateAxis,d=r._getScales(i,a).xBarScale,h=r._getFormattedLineData(r.props.data),p=[],f=[],g=[],m=r.props.theme,v=(null===(l=r.props.lineOptions)||void 0===l?void 0:l.lineBorderWidth)?Number.parseFloat(r.props.lineOptions.lineBorderWidth.toString()):0,_=c||u?0:d.bandwidth()/2;return Object.keys(h).forEach((function(i,a){for(var l=r._legendHighlighted(i)||r._noLegendHighlighted(),u=1;u<h[i].length;u++){var g=c?e(h[i][u-1].xItem.xAxisPoint):d(h[i][u-1].xItem.xAxisPoint),y=h[i][u-1].useSecondaryYScale&&h[i][u].useSecondaryYScale&&s,x=y?s(h[i][u-1].y):n(h[i][u-1].y),b=c?e(h[i][u].xItem.xAxisPoint):d(h[i][u].xItem.xAxisPoint),C=y?s(h[i][u].y):n(h[i][u].y);v>0&&f.push(o.createElement("line",{key:"".concat(a,"-").concat(u,"-BorderLine"),x1:g,y1:x,x2:b,y2:C,opacity:l?1:.1,strokeWidth:3+2*v,fill:"transparent",strokeLinecap:"round",stroke:m.palette.white,transform:"translate(".concat(_,", 0)")})),p.push(o.createElement("line",(0,t.pi)({key:"".concat(a,"-").concat(u,"-line"),x1:g,y1:x,x2:b,y2:C,opacity:l?1:.1,strokeWidth:3,strokeLinecap:"round",stroke:h[i][u].color,transform:"translate(".concat(_,", 0)")},r.state.selectedLegend===i&&{onMouseOver:r._lineHover.bind(r,h[i][u-1]),onMouseLeave:r._lineHoverOut})))}})),Object.keys(h).forEach((function(i,a){h[i].forEach((function(l,u){g.push(o.createElement("circle",(0,t.pi)({key:"".concat(a,"-").concat(u,"-dot"),cx:c?e(l.xItem.xAxisPoint):d(l.xItem.xAxisPoint),cy:l.useSecondaryYScale&&s?s(l.y):n(l.y),onMouseOver:r.state.selectedLegend===i?r._lineHover.bind(r,l):r._onStackHover.bind(r,l.xItem)},r.state.selectedLegend===i&&{onMouseLeave:r._lineHoverOut},{r:r._getCircleVisibilityAndRadius(l.xItem.xAxisPoint,l.legend).radius,stroke:l.color,fill:r.props.theme.palette.white,strokeWidth:3,visibility:r._getCircleVisibilityAndRadius(l.xItem.xAxisPoint,l.legend).visibility,transform:"translate(".concat(_,", 0)")})))}))})),o.createElement(o.Fragment,null,f,p,g)},r._getCircleVisibilityAndRadius=function(e,t){var n=r.state,o=n.selectedLegend,i=n.activeXAxisDataPoint;return""!==o?e===i&&o===t?{visibility:Wi.show,radius:8}:o===t?{visibility:Wi.show,radius:.3}:{visibility:Wi.hide,radius:0}:{visibility:i===e?Wi.show:Wi.hide,radius:8}},r._getMargins=function(e){r.margins=e},r._getCustomizedCallout=function(){var e=r.props.data.some((function(e){return e.lineData&&e.lineData.length>0}));return r.props.onRenderCalloutPerStack?r.props.onRenderCalloutPerStack(r.state.stackCalloutProps):r.props.onRenderCalloutPerDataPoint&&!e?r.props.onRenderCalloutPerDataPoint(r.state.dataPointCalloutProps,r._renderCallout):null},r._lineHover=function(e,t){t.persist(),r.setState({refSelected:t,isCalloutVisible:!0,xCalloutValue:"".concat(e.xItem.xAxisPoint),yCalloutValue:"".concat(e.yAxisCalloutData||e.data||e.y),activeXAxisDataPoint:e.xItem.xAxisPoint,color:e.color})},r._lineHoverOut=function(){r.setState({refSelected:null,isCalloutVisible:!1,xCalloutValue:"",yCalloutValue:"",activeXAxisDataPoint:"",color:""})},r._handleMouseOut=function(){},r._handleChartMouseLeave=function(){r._calloutAnchorPoint=null,r.setState({isCalloutVisible:!1,activeXAxisDataPoint:""})},r._createBar=function(e,n,i,a){var s=r.props,l=s.barCornerRadius,c=void 0===l?0:l,u=s.barMinimumHeight,d=void 0===u?0:u,h=r.props.data.some((function(e){return e.lineData&&e.lineData.length>0})),p=r._toFocusWholeStack(h),f=r._points.map((function(a,s){var l=i-r.margins.bottom,u=e((r._xAxisType===Kt.xl.NumericAxis||(r._xAxisType,Kt.xl.DateAxis),a.xAxisPoint)),h=r._xAxisType===Kt.xl.NumericAxis?0:r._xAxisType===Kt.xl.DateAxis?-r._barWidth/2:(e.bandwidth()-r._barWidth)/2,f=0,g=a.chartData.filter((function(e){return e.data>0}));if(g.length){var m=r._getBarGapAndScale(g,n),v=m.gapHeight,_=m.heightValueScale;if(!(_<0)){var y=g.map((function(e,n){var i=e.color?e.color:r._colors[n],m={},y=!(!r._legendHighlighted(e.legend)&&!r._noLegendHighlighted());r._classNames=Xi(r.props.styles,{theme:r.props.theme,shouldHighlight:y,href:r.props.href});var x=!p&&{"data-is-focusable":!r.props.hideTooltip,"aria-label":r._getAriaLabel(a,e),onMouseOver:r._onRectHover.bind(r,a.xAxisPoint,e,i),onMouseMove:r._onRectHover.bind(r,a.xAxisPoint,e,i),onMouseLeave:r._handleMouseOut,onFocus:r._onRectFocus.bind(r,e,a.xAxisPoint,i,m),onBlur:r._handleMouseOut,onClick:r._onClick.bind(r,e),role:"img"},b=_*e.data;return b<Math.max(_*Math.ceil(r._yMax/100),d)&&(b=Math.max(_*Math.ceil(r._yMax/100),d)),l=l-b-(n?v:0),f+=e.data,c&&b>c&&n===g.length-1?o.createElement("path",(0,t.pi)({key:n+s+"".concat(p),className:r._classNames.opacityChangeOnHover,d:"\n M ".concat(u," ").concat(l+c,"\n a ").concat(c," ").concat(c," 0 0 1 ").concat(c," ").concat(-c,"\n h ").concat(r._barWidth-2*c,"\n a ").concat(c," ").concat(c," 0 0 1 ").concat(c," ").concat(c,"\n v ").concat(b-c,"\n h ").concat(-r._barWidth,"\n z\n "),fill:i,ref:function(e){return m.refElement=e},transform:"translate(".concat(h,", 0)")},x)):b<0?o.createElement(o.Fragment,{key:n+s}," "):o.createElement("rect",(0,t.pi)({key:n+s,className:r._classNames.opacityChangeOnHover,x:u,y:l,width:r._barWidth,height:b,fill:i,ref:function(e){return m.refElement=e}},x,{transform:"translate(".concat(h,", 0)")}))})),x={},b=p&&{"data-is-focusable":!r.props.hideTooltip,"aria-label":r._getAriaLabel(a),onMouseOver:r._onStackHover.bind(r,a),onMouseMove:r._onStackHover.bind(r,a),onMouseLeave:r._handleMouseOut,onFocus:r._onStackFocus.bind(r,a,x),onBlur:r._handleMouseOut,onClick:r._onClick.bind(r,a),role:"img"},C=!1,E=0;return r.props.hideLabels||(r._noLegendHighlighted()?(C=!0,E=f):g.forEach((function(e){r._legendHighlighted(e.legend)&&(C=!0,E+=e.data)}))),o.createElement("g",{key:s+"".concat(p)},o.createElement("g",(0,t.pi)({id:"".concat(s,"-singleBar"),ref:function(e){return x.refElement=e}},b),y),!r.props.hideLabels&&r._barWidth>=16&&C&&o.createElement("text",{x:u+r._barWidth/2,y:l-6,textAnchor:"middle",className:r._classNames.barLabel,"aria-label":"Total: ".concat(E),role:"img",transform:"translate(".concat(h,", 0)")},(0,Kt.cE)(E)))}}}));if(!r.props.showXAxisLablesTooltip)try{document.getElementById(r._tooltipId)&&document.getElementById(r._tooltipId).remove()}catch(e){}if(!r.props.wrapXAxisLables&&r.props.showXAxisLablesTooltip){var g=(0,Co.Ys)(a).call(e);try{document.getElementById(r._tooltipId)&&document.getElementById(r._tooltipId).remove()}catch(e){}var m={tooltipCls:r._classNames.tooltip,id:r._tooltipId,xAxis:g};g&&(0,Kt.$V)(m)}return f.filter((function(e){return!!e}))},r._getScales=function(e,t){var n=r._yMax,o=(0,Bi.Z)().domain([0,n]).range([0,e-r.margins.bottom-r.margins.top]);if(r._xAxisType===Kt.xl.NumericAxis){var i=(0,ri.Z)(r._dataset,(function(e){return e.x})),a=(0,Hi.Z)(r._dataset,(function(e){return e.x}));return{xBarScale:(0,Bi.Z)().domain(r._isRtl?[i,a]:[a,i]).nice().range([r.margins.left+r._domainMargin,t-r.margins.right-r._barWidth-r._domainMargin]),yBarScale:o}}if(r._xAxisType===Kt.xl.DateAxis){var s=(0,Hi.Z)(r._dataset,(function(e){return e.x})),l=(0,ri.Z)(r._dataset,(function(e){return e.x}));return{xBarScale:(0,Ri.Z)().domain([s,l]).range([r.margins.left+r._domainMargin+r._barWidth/2,t-r.margins.right-r._barWidth/2-r._domainMargin]),yBarScale:o}}return{xBarScale:(0,zi.Z)().domain(r._xAxisLabels).range([r.margins.left+r._domainMargin,t-r.margins.right-r._domainMargin]).paddingInner(2/3),yBarScale:o}},r._getGraphData=function(e,t,n,o,i){var a=r._getScales(n,o),s=a.xBarScale,l=a.yBarScale;return r._bars=r._createBar(s,l,n,i)},r._closeCallout=function(){r.setState({isCalloutVisible:!1})},r._getAxisData=function(e){if(e&&e.yAxisDomainValues.length){var t=e.yAxisDomainValues;r._yMax=Math.max(t[t.length-1],r.props.yMaxValue||0)}},r._legendHighlighted=function(e){return r.state.selectedLegend===e||""===r.state.selectedLegend&&r.state.activeLegend===e},r._noLegendHighlighted=function(){return""===r.state.selectedLegend&&""===r.state.activeLegend},r._getAriaLabel=function(e,t){var n,r,o;if(!t){var i=e.xAxisCalloutData||e.xAxisPoint,a=e.chartData.map((function(e){var t=e.legend,n=e.yAxisCalloutData||e.data;return"".concat(t,", ").concat(n,".")})).join(" "),s=null===(n=e.lineData)||void 0===n?void 0:n.map((function(e){var t=e.legend,n=e.yAxisCalloutData||e.data||e.y;return"".concat(t,", ").concat(n,".")})).join(" ");return(null===(r=e.stackCallOutAccessibilityData)||void 0===r?void 0:r.ariaLabel)||"".concat(i,". ").concat(a)+(s?" ".concat(s):"")}var l=e.xAxisCalloutData||t.xAxisCalloutData||e.xAxisPoint,c=t.legend,u=t.yAxisCalloutData||t.data;return(null===(o=t.callOutAccessibilityData)||void 0===o?void 0:o.ariaLabel)||"".concat(l,". ").concat(c,", ").concat(u,".")},r._getDomainMargins=function(e){if(r._xAxisType!==Kt.xl.NumericAxis){var n=e-(r.margins.left+8)-(r.margins.right+8),o=Math.min(r.props.barWidth||16,24),i=(3*r._xAxisLabels.length-2)*o;r._domainMargin=8,n>=i?r._domainMargin+=(n-i)/2:o=n/(3*r._xAxisLabels.length-2),r._barWidth=o}return(0,t.pi)((0,t.pi)({},r.margins),{left:r.margins.left+r._domainMargin,right:r.margins.right+r._domainMargin})},r.state={isCalloutVisible:!1,selectedLegend:"",activeLegend:"",refSelected:null,dataForHoverCard:0,color:"",hoverXValue:"",YValueHover:[],xCalloutValue:"",yCalloutValue:"",activeXAxisDataPoint:"",calloutLegend:""},Ot("VERTICAL STACKED BAR CHART",n,{colors:"IVSChartDataPoint.color",chartLabel:"use your own title for chart"}),r._handleMouseOut=r._handleMouseOut.bind(r),r._calloutId=f("callout"),r._tooltipId=f("VSBCTooltipId_"),r._isChartEmpty()&&(r._adjustProps(),r._dataset=r._createDataSetLayer()),r._createLegendsForLine=(0,ut.NF)((function(e){return r._getLineLegends(e)})),r._domainMargin=8,r._emptyChartId=f("_VSBC_empty"),r}return(0,t.ZT)(n,e),n.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())},n.prototype.render=function(){var e=this;if(!this._isChartEmpty()){this._adjustProps();var n=this.props.data.some((function(e){return e.lineData&&e.lineData.length>0})),r=this._toFocusWholeStack(n),i=this.props.isCalloutForStack,a=void 0!==i&&i;this._dataset=this._createDataSetLayer();var s=this._getLegendData(this._points,this.props.theme.palette,this._createLegendsForLine(this.props.data));this._classNames=Xi(this.props.styles,{theme:this.props.theme,href:this.props.href});var l=(0,t.pi)((0,t.pi)({isCalloutVisible:this.state.isCalloutVisible,directionalHint:_.topAutoEdge,id:"toolTip".concat(this._calloutId),target:this.state.refSelected,isBeakVisible:!1,gapSpace:15,color:this.state.color,legend:this.state.calloutLegend,XValue:this.state.xCalloutValue,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard,YValueHover:this.state.YValueHover,hoverXValue:this.state.hoverXValue,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0},this.props.calloutProps),(0,Kt.ey)(this.state.callOutAccessibilityData)),c={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return o.createElement(Oo,(0,t.pi)({},this.props,{points:this._dataset,chartType:Kt.$X.VerticalStackedBarChart,xAxisType:this._xAxisType,calloutProps:l,tickParams:c,legendBars:s,datasetForXAxisDomain:this._xAxisLabels,isCalloutForStack:r,barwidth:this._barWidth,focusZoneDirection:a||n?Gt.horizontal:Gt.vertical,getmargins:this._getMargins,getGraphData:this._getGraphData,getAxisData:this._getAxisData,customizedCallout:this._getCustomizedCallout(),onChartMouseLeave:this._handleChartMouseLeave,getDomainMargins:this._getDomainMargins},this._xAxisType!==Kt.xl.NumericAxis&&{xAxisInnerPadding:2/3,xAxisOuterPadding:0},{children:function(t){return o.createElement(o.Fragment,null,o.createElement("g",null,e._bars),o.createElement("g",null,n&&e._createLines(t.xScale,t.yScale,t.containerHeight,t.containerWidth,t.yScaleSecondary)))}}))}return o.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"})},n.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=(0,Kt.SY)(this.props.data[0].xAxisPoint,!0),this._lineObject=this._getFormattedLineData(this.props.data)},n.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},n.prototype._renderCallout=function(e){return e?o.createElement($t.ChartHoverCard,{XValue:e.xAxisCalloutData,Legend:e.legend,YValue:e.yAxisCalloutData,color:e.color,culture:this.props.culture}):null},n.prototype._onLegendClick=function(e){this.state.selectedLegend===e?this.setState({selectedLegend:""}):this.setState({selectedLegend:e})},n.prototype._onLegendHover=function(e){this.setState({activeLegend:e})},n.prototype._onLegendLeave=function(){this.setState({activeLegend:""})},n.prototype._getLegendData=function(e,n,r){var i=this;if(this.props.hideLegend)return o.createElement(o.Fragment,null);var a=[n.blueLight,n.blue,n.blueMid,n.red,n.black],s=[],l=this.props.allowHoverOnLegend,c=void 0===l||l;e.forEach((function(e){e.chartData.forEach((function(e){var t=e.color?e.color:a[Math.floor(4*Math.random()+1)];if(!(s.filter((function(n){return n.title===e.legend&&n.color===t})).length>0)){var n={title:e.legend,color:t,action:function(){i._onLegendClick(e.legend)},hoverAction:c?function(){i._handleChartMouseLeave(),i._onLegendHover(e.legend)}:void 0,onMouseOutAction:c?function(){return i._onLegendLeave()}:void 0};s.push(n)}}))}));var u=[];r&&r.length>0&&r.forEach((function(e){var t={title:e.title,color:e.color,isLineLegendInBarChart:!0,action:function(){i._onLegendClick(e.title)},hoverAction:c?function(){i._handleChartMouseLeave(),i._onLegendHover(e.title)}:void 0,onMouseOutAction:c?function(){return i._onLegendLeave()}:void 0};u.push(t)}));var d=u.concat(s);return o.createElement(Ar,(0,t.pi)({legends:d,overflowProps:this.props.legendsOverflowProps,enabledWrapLines:this.props.enabledLegendsWrapLines,focusZonePropsInHoverCard:this.props.focusZonePropsForLegendsInHoverCard,overflowText:this.props.legendsOverflowText},this.props.legendProps))},n.prototype._onRectHover=function(e,t,n,r){r.persist(),this._onRectFocusHover(e,t,n,r)},n.prototype._onRectFocusHover=function(e,t,n,r){var o,i;(null===(o=this._calloutAnchorPoint)||void 0===o?void 0:o.chartDataPoint)===t&&(null===(i=this._calloutAnchorPoint)||void 0===i?void 0:i.xAxisDataPoint)===e||(this._calloutAnchorPoint={chartDataPoint:t,xAxisDataPoint:e},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}))},n.prototype._onStackHover=function(e,t){t.persist(),this._onStackHoverFocus(e,t)},n.prototype._onStackHoverFocus=function(e,n){var r=e.lineData,o=void 0!==r&&r.length>0;o&&r.forEach((function(e){e.data=e.data||e.y,e.shouldDrawBorderBottom=!0})),this.setState({refSelected:n,isCalloutVisible:!0,YValueHover:o?(0,t.ev)((0,t.ev)([],r.sort((function(e,t){return e.data<t.data?1:-1})),!0),e.chartData.slice().reverse(),!0):e.chartData.slice().reverse(),hoverXValue:e.xAxisPoint instanceof Date?e.xAxisPoint.toLocaleDateString():e.xAxisPoint,stackCalloutProps:e,activeXAxisDataPoint:e.xAxisPoint,callOutAccessibilityData:e.stackCallOutAccessibilityData})},n.prototype._onRectFocus=function(e,t,n,r){r.refElement&&this._onRectFocusHover(t,e,n,r.refElement)},n.prototype._onStackFocus=function(e,t){t.refElement&&this._onStackHoverFocus(e,t.refElement)},n.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)},n.prototype._getBarGapAndScale=function(e,t,n){var r=this.props.barGapMax,o=void 0===r?0:r,i=e.reduce((function(e,t){return e+t.data}),0),a=null!=n?n:t(i),s=o&&e.length-1,l=s&&Math.max(1,Math.min(o,.2*a/s));return{gapHeight:l,heightValueScale:(a-l*s)/i}},n.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.length>0&&0===this.props.data.filter((function(e){return 0===e.chartData.length})).length)},n}(o.Component),ji=(0,e.z)(Ui,(function(e){var n=e.shouldHighlight,r=e.href,o=e.theme;return{opacityChangeOnHover:{opacity:n?"":"0.1",cursor:r?"pointer":"default"},tooltip:(0,t.pi)((0,t.pi)({},o.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:o.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"}),barLabel:{fontSize:Ye.TS.small,fontWeight:Ye.lq.semibold,fill:o.palette.neutralPrimary}}})),Gi=(0,i.y)(),Ki=.1/.9,$i=function(e){function n(n){var r=e.call(this,n)||this;return r._isRtl=(0,a.zg)(),r._getGraphData=function(e,t,n,o,i){var a=r._createX0Scale(o),s=r._createX1Scale(),l=[];r._datasetForBars.forEach((function(e){l.push(r._buildGraph(e,a,s,n,i))})),r._groupedVerticalBarGraph=l},r._getMargins=function(e){return r.margins=e},r._createDataSetOfGVBC=function(e){var t=[],n=e.map((function(e){return e.name}));e[0].series.forEach((function(e){t.push(e.key)}));var o=r._createDataset(e);return{keys:t,xAxisLabels:n,datasetForBars:o}},r._getCustomizedCallout=function(){return r.props.onRenderCalloutPerDataPoint?r.props.onRenderCalloutPerDataPoint(r.state.dataPointCalloutProps):null},r._getOpacity=function(e){return r._legendHighlighted(e)||r._noLegendHighlighted()?"":"0.1"},r._onBarHover=function(e,t,n){n.persist(),r._calloutAnchorPoint!==e&&(r._calloutAnchorPoint=e,r.setState({refSelected:n,isCalloutVisible:""===r.state.selectedLegend||r.state.selectedLegend===e.legend,calloutLegend:e.legend,dataForHoverCard:e.data,color:e.color,xCalloutValue:e.xAxisCalloutData,yCalloutValue:e.yAxisCalloutData,dataPointCalloutProps:e,callOutAccessibilityData:r.props.isCalloutForStack?t.stackCallOutAccessibilityData:e.callOutAccessibilityData,YValueHover:t.groupSeries,hoverXValue:e.xAxisCalloutData}))},r._onBarLeave=function(){},r._handleChartMouseLeave=function(){r._calloutAnchorPoint=null,r.setState({isCalloutVisible:!1})},r._onBarFocus=function(e,t,n){r._refArray.forEach((function(o,i){o.index===e.legend&&n===i&&r.setState({refSelected:o.refElement,isCalloutVisible:""===r.state.selectedLegend||r.state.selectedLegend===e.legend,calloutLegend:e.legend,dataForHoverCard:e.data,color:e.color,xCalloutValue:e.xAxisCalloutData,yCalloutValue:e.yAxisCalloutData,dataPointCalloutProps:e,callOutAccessibilityData:r.props.isCalloutForStack?t.stackCallOutAccessibilityData:e.callOutAccessibilityData,YValueHover:t.groupSeries,hoverXValue:e.xAxisCalloutData})}))},r._redirectToUrl=function(e){e&&(window.location.href=e)},r._buildGraph=function(e,t,n,i,a){var s=[],l=[],c=(0,Bi.Z)().domain([0,r._yMax]).range([0,i-r.margins.bottom-r.margins.top]),u=Object.keys(r._datasetForBars[0]).splice(0,r._keys.length);if(u.forEach((function(t,a){var d=e.indexNum*u.length+a,h=e[t],p=n(t)+(n.bandwidth()-r._barWidth)/2,f=Math.max(i-r.margins.bottom-c(h.data),0);h.data&&s.push(o.createElement("rect",{className:r._classNames.opacityChangeOnHover,key:"".concat(e.indexNum,"-").concat(a),height:Math.max(c(h.data),0),width:r._barWidth,x:p,y:f,"data-is-focusable":!r.props.hideTooltip,opacity:r._getOpacity(h.legend),ref:function(e){r._refCallback(e,h.legend,d)},fill:h.color,onMouseOver:r._onBarHover.bind(r,h,e),onMouseMove:r._onBarHover.bind(r,h,e),onMouseOut:r._onBarLeave,onFocus:r._onBarFocus.bind(r,h,e,d),onBlur:r._onBarLeave,onClick:r.props.href?r._redirectToUrl.bind(r,r.props.href):h.onClick,"aria-label":r._getAriaLabel(h,e.xAxisPoint),role:"img"})),h.data&&!r.props.hideLabels&&r._barWidth>=16&&(r._legendHighlighted(h.legend)||r._noLegendHighlighted())&&l.push(o.createElement("text",{x:p+r._barWidth/2,y:f-6,textAnchor:"middle",className:r._classNames.barLabel,"aria-hidden":!0},(0,Kt.cE)(h.data)))})),!r.props.wrapXAxisLables&&r.props.showXAxisLablesTooltip){var d=(0,Co.Ys)(a).call(t);try{document.getElementById(r._tooltipId)&&document.getElementById(r._tooltipId).remove()}catch(e){}var h={tooltipCls:r._classNames.tooltip,id:r._tooltipId,xAxis:d};d&&(0,Kt.$V)(h)}return o.createElement("g",{key:e.indexNum,transform:"translate(".concat(t(e.xAxisPoint)+(t.bandwidth()-r._groupWidth)/2,", 0)")},s,l)},r._createDataset=function(e){var n=[],o=[];return e.forEach((function(e,r){var i={},a={},s=[];e.series.forEach((function(e){i[e.key]=e.data,a[e.key]=(0,t.pi)({},e),s.push(e)})),a.xAxisPoint=e.name,a.indexNum=r,a.groupSeries=s,a.stackCallOutAccessibilityData=e.stackCallOutAccessibilityData,n.push(a),o.push(i)})),r._dataset=o,n},r._createX0Scale=function(e){return(0,zi.Z)().domain(r._xAxisLabels).range(r._isRtl?[e-r.margins.right-r._domainMargin,r.margins.left+r._domainMargin]:[r.margins.left+r._domainMargin,e-r.margins.right-r._domainMargin]).paddingInner(2/(2+r._keys.length+(r._keys.length-1)*Ki))},r._createX1Scale=function(){return(0,zi.Z)().domain(r._keys).range(r._isRtl?[r._groupWidth,0]:[0,r._groupWidth]).paddingInner(.1)},r._closeCallout=function(){r.setState({isCalloutVisible:!1})},r._getLegendData=function(e,n){var i=e,a=[n.blueLight,n.blue,n.blueMid,n.red,n.black],s=[];return i.forEach((function(e){e.series.forEach((function(e){var t=e.color?e.color:a[Math.floor(4*Math.random()+1)];if(!(s.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:function(){r._handleChartMouseLeave(),r._onLegendHover(e.legend)},onMouseOutAction:function(){r._onLegendLeave()}};s.push(n)}}))})),o.createElement(Ar,(0,t.pi)({legends:s,overflowProps:r.props.legendsOverflowProps,enabledWrapLines:r.props.enabledLegendsWrapLines,focusZonePropsInHoverCard:r.props.focusZonePropsForLegendsInHoverCard},r.props.legendProps))},r._getAxisData=function(e){if(e&&e.yAxisDomainValues.length){var t=e.yAxisDomainValues;r._yMax=Math.max(t[t.length-1],r.props.yMaxValue||0)}},r._legendHighlighted=function(e){return r.state.selectedLegend===e||""===r.state.selectedLegend&&r.state.activeLegend===e},r._noLegendHighlighted=function(){return""===r.state.selectedLegend&&""===r.state.activeLegend},r._getAriaLabel=function(e,t){var n,r=e.xAxisCalloutData||t,o=e.legend,i=e.yAxisCalloutData||e.data;return(null===(n=e.callOutAccessibilityData)||void 0===n?void 0:n.ariaLabel)||"".concat(r,". ").concat(o,", ").concat(i,".")},r._getDomainMargins=function(e){var n=e-(r.margins.left+8)-(r.margins.right+8),o=Math.min(r.props.barwidth||16,24),i=r._keys.length*o+(r._keys.length-1)*Ki*o,a=r._xAxisLabels.length*i+2*(r._xAxisLabels.length-1)*o;return r._domainMargin=8,n>=a?r._domainMargin+=(n-a)/2:o=(i=n/(r._xAxisLabels.length+(r._xAxisLabels.length-1)*(2/(r._keys.length+(r._keys.length-1)*Ki))))/(r._keys.length+(r._keys.length-1)*Ki),r._barWidth=o,r._groupWidth=i,(0,t.pi)((0,t.pi)({},r.margins),{left:r.margins.left+r._domainMargin,right:r.margins.right+r._domainMargin})},r._createSet=(0,ut.NF)((function(e){return r._createDataSetOfGVBC(e)})),r.state={color:"",dataForHoverCard:0,isCalloutVisible:!1,refSelected:null,selectedLegend:"",xCalloutValue:"",yCalloutValue:"",YValueHover:[],hoverXValue:"",calloutLegend:"",activeLegend:""},Ot("GROUPED VERTICAL BAR CHART",n,{showYAxisGridLines:"Dont use this property. Lines are drawn by default",showXAxisPath:"Dont use this property. Axis line removed default.",showYAxisPath:"Dont use this property. No need to display Y axis path. Handling default",showXAxisGridLines:"Dont use this property. Handling with default value.",legendColor:"Dont use this property. colour will pick from given data."}),r._refArray=[],r._calloutId=f("callout"),r._tooltipId=f("GVBCTooltipId_"),r._domainMargin=8,r._emptyChartId=f("_GVBC_empty"),r}return(0,t.ZT)(n,e),n.prototype.render=function(){var e=this,n=this.props.data,r=this._createSet(n),i=r.keys,a=r.xAxisLabels,s=r.datasetForBars;this._keys=i,this._xAxisLabels=a,this._datasetForBars=s,this._xAxisType=(0,Kt.SY)(n[0].name,!0);var l=this._getLegendData(n,this.props.theme.palette),c=(0,ri.Z)(this._dataset,(function(t){return(0,ri.Z)(e._keys,(function(e){return t[e]}))}));this._yMax=Math.max(c,this.props.yMaxValue||0),this._classNames=Gi(this.props.styles,{theme:this.props.theme,href:this.props.href});var u=(0,t.pi)((0,t.pi)((0,t.pi)({target:this.state.refSelected,isCalloutVisible:this.state.isCalloutVisible,directionalHint:_.topAutoEdge,id:"toolTip".concat(this._calloutId),gapSpace:15,isBeakVisible:!1,setInitialFocus:!0,color:this.state.color,Legend:this.state.calloutLegend,XValue:this.state.xCalloutValue,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard,YValueHover:this.state.YValueHover,hoverXValue:this.state.hoverXValue,onDismiss:this._closeCallout},this.props.calloutProps),{preventDismissOnLostFocus:!0}),(0,Kt.ey)(this.state.callOutAccessibilityData,"text",!1)),d={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return this._isChartEmpty()?o.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):o.createElement(Oo,(0,t.pi)({},this.props,{points:this._datasetForBars,chartType:Kt.$X.GroupedVerticalBarChart,calloutProps:u,legendBars:l,xAxisType:this._xAxisType,datasetForXAxisDomain:this._xAxisLabels,tickParams:d,tickPadding:this.props.tickPadding||5,maxOfYVal:this._yMax,svgFocusZoneProps:{direction:Gt.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)*Ki),xAxisOuterPadding:0,children:function(){return o.createElement("g",null,e._groupedVerticalBarGraph)}}))},n.prototype._refCallback=function(e,t,n){this._refArray[n]={index:t,refElement:e}},n.prototype._onLegendClick=function(e){this.state.selectedLegend===e?this.setState({selectedLegend:""}):this.setState({selectedLegend:e})},n.prototype._onLegendHover=function(e){this.setState({activeLegend:e})},n.prototype._onLegendLeave=function(){this.setState({activeLegend:""})},n.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.length>0&&this.props.data.filter((function(e){return e.series.length})).length>0)},n}(o.Component),Ji=(0,e.z)($i,(function(e){var n=e.theme;return{opacityChangeOnHover:{cursor:e.href?"pointer":"default"},tooltip:(0,t.pi)((0,t.pi)({},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:Ye.TS.small,fontWeight:Ye.lq.semibold,fill:n.palette.neutralPrimary}}})),Qi=n(1286),ea=n(731),ta=(0,i.y)(),na=function(e){function n(n){var r=e.call(this,n)||this;return r._rectRefArray={},r._getXandY=function(){var e="",t="";return r.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}},r._getOpacity=function(e){return r._legendHighlighted(e)||r._noLegendHighlighted()?"1":"0.1"},r._rectRefCallback=function(e,t,n){r._rectRefArray[t]={data:n,refElement:e}},r._onRectFocus=function(e,t){r.setState({target:r._rectRefArray[e].refElement,isCalloutVisible:""===r.state.selectedLegend||r.state.selectedLegend===t.legend,calloutYValue:"".concat(t.rectText),calloutTextColor:r._colorScale(t.value),calloutLegend:t.legend,ratio:t.ratio||null,descriptionMessage:t.descriptionMessage||"",calloutId:e,callOutAccessibilityData:t.callOutAccessibilityData})},r._onRectMouseOver=function(e,t,n){n.persist(),r._calloutAnchorPoint!==t&&(r._calloutAnchorPoint=t,r.setState({target:r._rectRefArray[e].refElement,isCalloutVisible:""===r.state.selectedLegend||r.state.selectedLegend===t.legend,calloutYValue:"".concat(t.rectText),calloutTextColor:r._colorScale(t.value),calloutLegend:t.legend,ratio:t.ratio||null,descriptionMessage:t.descriptionMessage||"",calloutId:e,callOutAccessibilityData:t.callOutAccessibilityData}))},r._onRectBlurOrMouseOut=function(){},r._handleChartMouseLeave=function(){r._calloutAnchorPoint=null,r.setState({isCalloutVisible:!1})},r._createRectangles=function(){var e=[];return r._stringYAxisDataPoints.slice().reverse().forEach((function(t,n){r._dataSet[t].forEach((function(t,i){var a="x".concat(n,"y").concat(i),s=o.createElement("g",{key:a,role:"img","aria-label":r._getAriaLabel(t),"data-is-focusable":!0,fillOpacity:r._getOpacity(t.legend),transform:"translate(".concat(r._xAxisScale(t.x),", ").concat(r._yAxisScale(t.y),")"),ref:function(e){r._rectRefCallback(e,a,t)},onFocus:r._onRectFocus.bind(r,a,t),onBlur:r._onRectBlurOrMouseOut,onMouseOver:r._onRectMouseOver.bind(r,a,t),onMouseOut:r._onRectBlurOrMouseOut},o.createElement("rect",{fill:r._colorScale(t.value),width:r._xAxisScale.bandwidth(),height:r._yAxisScale.bandwidth(),onClick:t.onClick}),o.createElement("text",{dominantBaseline:"middle",textAnchor:"middle",className:r._classNames.text,transform:"translate(".concat(r._xAxisScale.bandwidth()/2,", ").concat(r._yAxisScale.bandwidth()/2,")")},(0,Kt.Ts)(t.rectText,r.props.culture)));e.push(s)}))})),e},r._createLegendBars=function(){var e=r.props,n=e.data,i=e.legendProps,a=[];return n.forEach((function(e){var t={title:e.legend,color:r._colorScale(e.value),action:function(){r._onLegendClick(e.legend)},hoverAction:function(){r._handleChartMouseLeave(),r._onLegendHover(e.legend)},onMouseOutAction:function(){r._onLegendLeave()}};a.push(t)})),o.createElement(Ar,(0,t.pi)({},i,{legends:a}))},r._getColorScale=function(){var e=r.props,t=e.domainValuesForColorScale,n=e.rangeValuesForColorScale;return(0,Bi.Z)().domain(t).range(n)},r._getXIndex=function(e){return r._xAxisType===Kt.xl.DateAxis?"".concat(e.getTime()):r._xAxisType===Kt.xl.StringAxis?e:r._xAxisType===Kt.xl.NumericAxis?"".concat(e):""},r._getYIndex=function(e){return r._yAxisType===Kt.OH.DateAxis?"".concat(e.getTime()):r._yAxisType===Kt.OH.StringAxis?e:r._yAxisType===Kt.OH.NumericAxis?"".concat(e):""},r._createNewDataSet=function(e,n,o,i,a){var s=[];e.forEach((function(e){e.data.forEach((function(n){s.push((0,t.pi)((0,t.pi)({},n),{legend:e.legend}))}))}));var l={},c={},u={};return s.forEach((function(e){var n=r._getXIndex(e.x),o=r._getYIndex(e.y);u[n]="1",c[o]="1",l[o]?l[o]=(0,t.ev)((0,t.ev)([],l[o],!0),[e],!1):l[o]=[e]})),Object.keys(l).forEach((function(e){l[e].sort((function(e,t){return r._xAxisType===Kt.xl.StringAxis?e.x.toLowerCase()>t.x.toLowerCase()?1:-1:r._xAxisType===Kt.xl.DateAxis?e.x.getTime()-t.x.getTime():r._xAxisType===Kt.xl.NumericAxis?+e.x>+t.x?1:-1:e.x>t.x?1:-1})).forEach((function(e){r._xAxisType===Kt.xl.DateAxis&&(e.x=r._getStringFormattedDate(e.x,n)),r._xAxisType===Kt.xl.NumericAxis&&(e.x=r._getStringFormattedNumber(e.x,o)),r._xAxisType===Kt.xl.StringAxis&&(e.x=r._getFormattedLabelForXAxisDataPoint(e.x)),r._yAxisType===Kt.OH.DateAxis&&(e.y=r._getStringFormattedDate(e.y,i)),r._yAxisType===Kt.OH.NumericAxis&&(e.y=r._getStringFormattedNumber(e.y,a)),r._yAxisType===Kt.OH.StringAxis&&(e.y=r._getFormattedLabelForYAxisDataPoint(e.y))}))})),Object.keys(l).forEach((function(e){r._yAxisType===Kt.OH.DateAxis?l[r._getStringFormattedDate(e,i)]=l[e]:r._yAxisType===Kt.OH.NumericAxis?l["".concat(r._getStringFormattedNumber(e,a))]=l[e]:l[r._getFormattedLabelForYAxisDataPoint(e)]=l[e]})),{dataSet:l,yAxisPoints:r._getYAxisDataPoints(c),xAxisPoints:r._getXAxisDataPoints(u)}},r._getXAxisDataPoints=function(e){return Object.keys(e).sort((function(e,t){return r._xAxisType===Kt.xl.DateAxis||r._xAxisType===Kt.xl.NumericAxis?+e-+t:e.toLowerCase()>t.toLowerCase()?1:-1})).map((function(e){return r._xAxisType===Kt.xl.DateAxis?r._getStringFormattedDate(e,r.props.xAxisDateFormatString):r._xAxisType===Kt.xl.NumericAxis?r._getStringFormattedNumber(e,r.props.xAxisNumberFormatString):r._getFormattedLabelForXAxisDataPoint(e)}))},r._getYAxisDataPoints=function(e){return Object.keys(e).sort((function(e,t){return r._yAxisType===Kt.OH.DateAxis||r._yAxisType===Kt.OH.NumericAxis?+e-+t:e.toLowerCase()>t.toLowerCase()?1:-1})).map((function(e){return r._yAxisType===Kt.OH.DateAxis?r._getStringFormattedDate(e,r.props.yAxisDateFormatString):r._yAxisType===Kt.OH.NumericAxis?r._getStringFormattedNumber(e,r.props.yAxisNumberFormatString):r._getFormattedLabelForYAxisDataPoint(e)}))},r._getStringFormattedDate=function(e,t){var n=new Date;return n.setTime(+e),(0,ea.i$)(t||"%b/%d")(n)},r._getStringFormattedNumber=function(e,t){return(0,oo.WU)(t||".2~s")(+e)},r._getFormattedLabelForXAxisDataPoint=function(e){var t=r.props.xAxisStringFormatter;return t?t(e):e},r._getFormattedLabelForYAxisDataPoint=function(e){var t=r.props.yAxisStringFormatter;return t?t(e):e},r._closeCallout=function(){r.setState({isCalloutVisible:!1})},r._legendHighlighted=function(e){return r.state.selectedLegend===e||""===r.state.selectedLegend&&r.state.activeLegend===e},r._noLegendHighlighted=function(){return""===r.state.selectedLegend&&""===r.state.activeLegend},r._getAriaLabel=function(e){var t,n=e.x,r=e.y,o=e.legend,i=e.ratio?"".concat(e.ratio[0],"/").concat(e.ratio[1]):e.rectText||e.value,a=e.descriptionMessage;return(null===(t=e.callOutAccessibilityData)||void 0===t?void 0:t.ariaLabel)||"".concat(n,", ").concat(r,". ").concat(o,", ").concat(i,".")+(a?" ".concat(a,"."):"")},r._createSet=(0,ut.NF)((function(e,t,n,o,i){return r._createNewDataSet(e,t,n,o,i)})),r.state={selectedLegend:"",activeLegend:"",isCalloutVisible:!1,target:null,calloutLegend:"",calloutTextColor:"",calloutYValue:"",ratio:null,descriptionMessage:"",calloutId:""},r._emptyChartId=f("_HeatMap_empty"),r}return(0,t.ZT)(n,e),n.prototype.render=function(){var e=this,n=this._getXandY(),r=n.x,i=n.y;this._xAxisType=(0,Kt.SY)(r,!0),this._yAxisType=(0,Kt.SY)(i,!1);var a=this.props,s=a.data,l=a.xAxisDateFormatString,c=a.xAxisNumberFormatString,u=a.yAxisDateFormatString,d=a.yAxisNumberFormatString;this._colorScale=this._getColorScale();var h=this._createSet(s,l,c,u,d),p=h.dataSet,f=h.xAxisPoints,g=h.yAxisPoints;this._dataSet=p,this._stringYAxisDataPoints=g,this._stringXAxisDataPoints=f,this._classNames=ta(this.props.styles,{theme:this.props.theme});var m=(0,t.pi)((0,t.pi)((0,t.pi)((0,t.pi)({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:_.topAutoEdge,onDismiss:this._closeCallout}),(0,Kt.ey)(this.state.callOutAccessibilityData,"text",!1)),{preventDismissOnLostFocus:!0}),v=(0,t.pi)((0,t.pi)({},this.state.ratio&&{ratio:this.state.ratio}),{descriptionMessage:this.state.descriptionMessage});return this._isChartEmpty()?o.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):o.createElement(Oo,(0,t.pi)({},this.props,{points:s,chartType:Kt.$X.HeatMapChart,xAxisType:Kt.xl.StringAxis,yAxisType:Kt.OH.StringAxis,calloutProps:m,chartHoverProps:v,styles:this._classNames.subComponentStyles.cartesianStyles,datasetForXAxisDomain:this._stringXAxisDataPoints,stringDatasetForYAxisDomain:this._stringYAxisDataPoints,xAxisTickCount:this._stringXAxisDataPoints.length,xAxistickSize:0,xAxisPadding:.02,yAxisPadding:.02,svgFocusZoneProps:{direction:Gt.bidirectional},legendBars:this._createLegendBars(),onChartMouseLeave:this._handleChartMouseLeave,children:function(t){return e._xAxisScale=t.xScale,e._yAxisScale=t.yScale,e._createRectangles()}}))},n.prototype._onLegendHover=function(e){this.setState({activeLegend:e})},n.prototype._onLegendLeave=function(){this.setState({activeLegend:""})},n.prototype._onLegendClick=function(e){this.state.selectedLegend===e?this.setState({selectedLegend:""}):this.setState({selectedLegend:e})},n.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.length>0)},n}(o.Component),ra=(0,e.z)(na,(function(e){var t=e.theme;return{root:{},text:[t.fonts.medium,{pointerEvents:"none",fill:t.palette.white,fontWeight:Ye.lq.semibold}],subComponentStyles:{cartesianStyles:{},calloutStyles:{root:{maxWidth:"238px"}}}}}));function oa(e,t){let n=0;if(void 0===t)for(let t of e)(t=+t)&&(n+=t);else{let r=-1;for(let o of e)(o=+t(o,++r,e))&&(n+=o)}return n}function ia(e,t){let n=0;if(void 0===t)for(let t of e)(t=+t)&&(n+=t);else{let r=-1;for(let o of e)(o=+t(o,++r,e))&&(n+=o)}return n}function aa(e,t){let n;if(void 0===t)for(const t of e)null!=t&&(n<t||void 0===n&&t>=t)&&(n=t);else{let r=-1;for(let o of e)null!=(o=t(o,++r,e))&&(n<o||void 0===n&&o>=o)&&(n=o)}return n}function sa(e,t){return t-1-e.height}function la(e,t){return e.sourceLinks.length?e.depth:t-1}function ca(e){return function(){return e}}function ua(e,t){return ha(e.source,t.source)||e.index-t.index}function da(e,t){return ha(e.target,t.target)||e.index-t.index}function ha(e,t){return e.y0-t.y0}function pa(e){return e.value}function fa(e){return e.index}function ga(e){return e.nodes}function ma(e){return e.links}function va(e,t){const n=e.get(t);if(!n)throw new Error("missing: "+t);return n}function _a({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 ya{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 xa(e){return new ya(e,!0)}var ba=(0,i.y)(),Ca="#757575",Ea=[{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"}],Sa="#323130",Aa="#FFFFFF",La=function(e){function n(t){var n=e.call(this,t)||this;return n._isRtl=(0,a.zg)(),n._onCloseCallout=function(){n.setState({isCalloutVisible:!1,refSelected:void 0,descriptionMessage:""})},n._onBlur=function(){},n._fillNodeColors=function(e){var t=n.state;return t.selectedState?t.selectedState&&t.selectedNodes.has(e.index)&&t.selectedNode?t.selectedNode.color:t.selectedState&&!t.selectedNode?e.color:void 0:e.color},n._fillNodeBorder=function(e){var t=n.state;return t.selectedState?t.selectedState&&t.selectedNodes.has(e.index)&&t.selectedNode?t.selectedNode.borderColor:(t.selectedState&&t.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=f("callout"),n._linkId=f("link"),n._margins={top:36,right:48,bottom:32,left:48},n._preRenderLayout(),n._normalizeData=(0,ut.NF)((function(e){return n._normalizeSankeyData(e)})),n._emptyChartId=f("_SankeyChart_empty"),n}return(0,t.ZT)(n,e),n.prototype.componentDidMount=function(){this._fitParentContainer()},n.prototype.componentDidUpdate=function(e){e.shouldResize!==this.props.shouldResize&&this._fitParentContainer()},n.prototype.componentWillUnmount=function(){cancelAnimationFrame(this._reqID)},n.prototype.render=function(){var e,n=this;if(!this._isChartEmpty()){var r,i=this.props,a=i.theme,s=i.className,l=i.styles,c=i.pathColor,u=this.state,d=ba(l,{theme:a,width:u.containerWidth,height:u.containerHeight,pathColor:c,className:s}),h=this._preRenderLayout(),p=h.height,g=h.width,m=this.props.data.SankeyChartData;this._normalizeData(m),r=this._adjustPadding(this._sankey,p-6,this._nodesInColumn),this._sankey.nodePadding(r),this._sankey(m),(e=m).links.forEach((function(e){e.unnormalizedValue||(e.unnormalizedValue=e.value)})),e.nodes.forEach((function(e){e.actualValue=Math.max(oa(e.sourceLinks,(function(e){return e.unnormalizedValue})),oa(e.targetLinks,(function(e){return e.unnormalizedValue})))})),this._assignNodeColors();var v=this._createNodes(d),y=this._createLinks(),x={isCalloutVisible:u.isCalloutVisible,directionalHint:_.topAutoEdge,id:"toolTip".concat(this._calloutId),target:u.refSelected,color:u.color,XValue:u.xCalloutValue,YValue:u.yCalloutValue?u.yCalloutValue:u.dataForHoverCard,descriptionMessage:u.descriptionMessage,isBeakVisible:!1,gapSpace:15,onDismiss:this._onCloseCallout,className:d.calloutContentRoot,preventDismissOnLostFocus:!0};return o.createElement("div",{className:d.root,role:"presentation",ref:function(e){return n.chartContainer=e},onMouseLeave:this._onCloseCallout},o.createElement(xn,{direction:Gt.bidirectional,isCircularNavigation:!0,handleTabKey:1},o.createElement("svg",{width:g,height:p,id:f("sankeyChart")},o.createElement("g",{className:d.links,strokeOpacity:1},y),o.createElement("g",{className:d.nodes},v),x.isCalloutVisible&&o.createElement(jt,(0,t.pi)({},x),o.createElement($t.ChartHoverCard,{XValue:x.XValue,YValue:x.YValue,color:x.color,descriptionMessage:x.descriptionMessage?x.descriptionMessage:""})))))}return o.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"})},n.prototype._preRenderLayout=function(){var e=this.state,t=e.containerHeight,n=e.containerWidth,r=this._margins,o=r.left,i=r.right,a=r.top,s=r.bottom,l=n-i,c=t-s>0?t-s:0;return this._sankey=function(){let e,t,n,r=0,o=0,i=1,a=1,s=24,l=8,c=fa,u=la,d=ga,h=ma,p=6;function f(){const f={nodes:d.apply(null,arguments),links:h.apply(null,arguments)};return function({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)=>[c(t,n,e),t])));for(const[e,n]of t.entries()){n.index=e;let{source:t,target:o}=n;"object"!=typeof t&&(t=n.source=va(r,t)),"object"!=typeof o&&(o=n.target=va(r,o)),t.sourceLinks.push(n),o.targetLinks.push(n)}if(null!=n)for(const{sourceLinks:t,targetLinks:r}of e)t.sort(n),r.sort(n)}(f),function({nodes:e}){for(const t of e)t.value=void 0===t.fixedValue?Math.max(ia(t.sourceLinks,pa),ia(t.targetLinks,pa)):t.fixedValue}(f),function({nodes:e}){const t=e.length;let n=new Set(e),r=new Set,o=0;for(;n.size;){for(const e of n){e.depth=o;for(const{target:t}of e.sourceLinks)r.add(t)}if(++o>t)throw new Error("circular link");n=r,r=new Set}}(f),function({nodes:e}){const t=e.length;let n=new Set(e),r=new Set,o=0;for(;n.size;){for(const e of n){e.height=o;for(const{source:t}of e.targetLinks)r.add(t)}if(++o>t)throw new Error("circular link");n=r,r=new Set}}(f),function(n){const c=function({nodes:e}){const n=aa(e,(e=>e.depth))+1,o=(i-r-s)/(n-1),a=new Array(n);for(const t of e){const e=Math.max(0,Math.min(n-1,Math.floor(u.call(null,t,n))));t.layer=e,t.x0=r+e*o,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-o)/(aa(c,(e=>e.length))-1)),function(t){const n=function(e,t){let n;if(void 0===t)for(const t of e)null!=t&&(n>t||void 0===n&&t>=t)&&(n=t);else{let r=-1;for(let o of e)null!=(o=t(o,++r))&&(n>o||void 0===n&&o>=o)&&(n=o)}return n}(t,(t=>(a-o-(t.length-1)*e)/ia(t,pa)));for(const r of t){let t=o;for(const o of r){o.y0=t,o.y1=t+o.value*n,t=o.y1+e;for(const e of o.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)}b(r)}}(c);for(let e=0;e<p;++e){const t=Math.pow(.99,e),n=Math.max(1-t,(e+1)/p);m(c,t,n),g(c,t,n)}}(f),_a(f),f}function g(e,n,r){for(let o=1,i=e.length;o<i;++o){const i=e[o];for(const e of i){let t=0,r=0;for(const{source:n,value:o}of e.targetLinks){let i=o*(e.layer-n.layer);t+=C(n,e)*i,r+=i}if(!(r>0))continue;let o=(t/r-e.y0)*n;e.y0+=o,e.y1+=o,x(e)}void 0===t&&i.sort(ha),v(i,r)}}function m(e,n,r){for(let o=e.length-2;o>=0;--o){const i=e[o];for(const e of i){let t=0,r=0;for(const{target:n,value:o}of e.sourceLinks){let i=o*(n.layer-e.layer);t+=E(e,n)*i,r+=i}if(!(r>0))continue;let o=(t/r-e.y0)*n;e.y0+=o,e.y1+=o,x(e)}void 0===t&&i.sort(ha),v(i,r)}}function v(t,n){const r=t.length>>1,i=t[r];y(t,i.y0-e,r-1,n),_(t,i.y1+e,r+1,n),y(t,a,t.length-1,n),_(t,o,0,n)}function _(t,n,r,o){for(;r<t.length;++r){const i=t[r],a=(n-i.y0)*o;a>1e-6&&(i.y0+=a,i.y1+=a),n=i.y1+e}}function y(t,n,r,o){for(;r>=0;--r){const i=t[r],a=(i.y1-n)*o;a>1e-6&&(i.y0-=a,i.y1-=a),n=i.y0-e}}function x({sourceLinks:e,targetLinks:t}){if(void 0===n){for(const{source:{sourceLinks:e}}of t)e.sort(da);for(const{target:{targetLinks:t}}of e)t.sort(ua)}}function b(e){if(void 0===n)for(const{sourceLinks:t,targetLinks:n}of e)t.sort(da),n.sort(ua)}function C(t,n){let r=t.y0-(t.sourceLinks.length-1)*e/2;for(const{target:o,width:i}of t.sourceLinks){if(o===n)break;r+=i+e}for(const{source:e,width:o}of n.targetLinks){if(e===t)break;r-=o}return r}function E(t,n){let r=n.y0-(n.targetLinks.length-1)*e/2;for(const{source:o,width:i}of n.targetLinks){if(o===t)break;r+=i+e}for(const{target:e,width:o}of t.sourceLinks){if(e===n)break;r-=o}return r}return f.update=function(e){return _a(e),e},f.nodeId=function(e){return arguments.length?(c="function"==typeof e?e:ca(e),f):c},f.nodeAlign=function(e){return arguments.length?(u="function"==typeof e?e:ca(e),f):u},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:ca(e),f):d},f.links=function(e){return arguments.length?(h="function"==typeof e?e:ca(e),f):h},f.linkSort=function(e){return arguments.length?(n=e,f):n},f.size=function(e){return arguments.length?(r=o=0,i=+e[0],a=+e[1],f):[i-r,a-o]},f.extent=function(e){return arguments.length?(r=+e[0][0],i=+e[1][0],o=+e[0][1],a=+e[1][1],f):[[r,o],[i,a]]},f.iterations=function(e){return arguments.length?(p=+e,f):p},f}().nodeWidth(124).extent([[o,a],[l-1,c-6]]).nodeAlign(this._isRtl?sa:la),{height:c,width:l}},n.prototype._normalizeSankeyData=function(e){var t;t=this._nodesInColumn=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}(e,this._sankey),Object.values(t).map((function(e){return oa(e,(function(e){return e.value}))})).forEach((function(e,n){var r=0;t[n].forEach((function(t){var n=t.value/e*100;t.actualValue=t.value,n<1?(t.value=.01*e,r+=1):r+=n}));var o=0!==r?r/100:1;o>1&&t[n].forEach((function(e){e.value=e.value/o,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}))}(e,e.actualValue,e.value)}))}))},n.prototype._adjustPadding=function(e,t,n){var r=this._sankey.nodePadding();return Object.values(n).forEach((function(e){var n=.3*t;n<t-oa(e,(function(e){return e.y1-e.y0}))&&(r=Math.min(r,n/(e.length-1)))})),r},n.prototype._createLinks=function(){var e=this,t=[],n=this.props.data.SankeyChartData;if(n){var r=this._linkId;n.links.forEach((function(n,i){var a,s=[{x:(a=n).source.x1,y0:a.y0+a.width/2,y1:a.y0-a.width/2},{x:a.target.x0,y0:a.y1+a.width/2,y1:a.y1-a.width/2}],l=li().x((function(e){return e.x})).y0((function(e){return e.y0})).y1((function(e){return e.y1})).curve(xa),c="url(#gradient-".concat(r,"-").concat(i,")"),u=o.createElement("g",{key:"".concat(r,"-").concat(i)},o.createElement("defs",null,o.createElement("linearGradient",{id:"gradient-".concat(r,"-").concat(i),x1:"0%",y1:"0%",x2:"100%",y2:"0%"},o.createElement("stop",{offset:"0",stopColor:n.source.color}),o.createElement("stop",{offset:"100%",stopColor:n.target.color}))),o.createElement("path",{d:l(s),id:f("link"),fill:e._fillStreamColors(n,c),stroke:e._fillStreamBorder(n,c),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)}))}return t},n.prototype._createNodes=function(e){var t=this,n=[],r=this.props.data.SankeyChartData;if(r){var i=this.state;return r.nodes.forEach((function(r,a){var s=r.y1-r.y0>0?r.y1-r.y0:0,l=8,c=0;if(s<36){l+=6;var u=(0,Co.Ys)(".nodeName").append("text").attr("class","tempText").append("tspan").text(null);u.text(r.actualValue),null!==u.node()&&(l+=c=u.node().getComputedTextLength()),u.text(null),(0,Co.td)(".tempText").remove()}var d=t._truncateText(r.name,116,l),h="..."===d.slice(-3),p=f("tooltip"),g=(0,Co.Ys)("body").append("div").attr("id",p).attr("class",e.toolTip).style("opacity",0),m=f("nodeBar"),v=o.createElement("g",{key:a,id:f("nodeGElement")},o.createElement("rect",{x:r.x0,y:r.y0,height:s,width:r.x1-r.x0,fill:t._fillNodeColors(r),id:m,onMouseOver:t._onHover.bind(t,r),onMouseOut:function(){t._onLeave(r)},onFocus:t._onCloseCallout.bind(t),stroke:t._fillNodeBorder(r),strokeWidth:"2",opacity:"1","data-is-focusable":!0,"aria-label":"node"+"".concat(r.name)+"with weight"+"".concat(r.actualValue),role:"img"}),r.y1-r.y0>24&&o.createElement("g",{className:e.nodeTextContainer},o.createElement("g",{className:"nodeName"},o.createElement("text",{id:"".concat(m,"-name"),x:r.x0,y:r.y0,dy:"1.2em",dx:"0.4em",textAnchor:t._isRtl?"end":"start",fontWeight:"regular","aria-hidden":"true",fill:!i.selectedState||i.selectedState&&i.selectedNodes.has(r.index)&&i.selectedNode||i.selectedState&&!i.selectedNode?Aa:Sa,fontSize:10,onMouseOver:t._showTooltip.bind(t,r.name,h,g),onMouseOut:t._hideTooltip.bind(t,g)},d)),o.createElement("text",{x:s>36?r.x0:r.x1-c-8,y:r.y0,dy:s>36?"2em":"1em",dx:s>36?"0.4em":"0em",textAnchor:t._isRtl?"end":"start",fontWeight:"bold","aria-hidden":"true",fill:!i.selectedState||i.selectedState&&i.selectedNodes.has(r.index)&&i.selectedNode||i.selectedState&&!i.selectedNode?Aa:Sa,fontSize:14},r.actualValue)));n.push(v)})),n}},n.prototype._onLeave=function(e){this.state.selectedState&&this.setState({selectedState:!1,selectedNodes:new Set,selectedLinks:new Set,selectedNode:void 0})},n.prototype._onHover=function(e,t){if(t.persist(),this._onCloseCallout(),!this.state.selectedState){var n=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}(e),r=function(e){var t=[];return e.forEach((function(e){t.push(e.target),-1===t.indexOf(e.source)&&t.push(e.source)})),t}(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})}},n.prototype._onStreamHover=function(e,t){if(t.persist(),this._onCloseCallout(),!this.state.selectedState){var n=function(e){var t=new Array,n=new Set,r=new Set;for(t.push(e.source),n.add(e);t.length>0;){var o=t.shift();r.add(o),o.targetLinks&&o.targetLinks.length>0&&o.targetLinks.forEach((function(e){t.push(e.source),n.add(e)}))}for(t.push(e.target);t.length>0;)o=t.shift(),r.add(o),o.sourceLinks&&o.sourceLinks.length>0&&o.sourceLinks.forEach((function(e){t.push(e.target),n.add(e)}));return{selectedLinks:n,selectedNodes:r}}(e),r=n.selectedLinks,o=n.selectedNodes;this.setState({selectedState:!0,selectedNodes:new Set(Array.from(o).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})}},n.prototype._onStreamLeave=function(e){this.state.selectedState&&this.setState({selectedState:!1,selectedNodes:new Set,selectedLinks:new Set,selectedLink:void 0})},n.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})},n.prototype._assignNodeColors=function(){var e,t,n=this.props,r=n.colorsForNodes,o=n.borderColorsForNodes;r&&o?(e=r,t=o):(e=Ea.map((function(e){return e.fillColor})),t=Ea.map((function(e){return e.borderColor})));var i=0;this.props.data.SankeyChartData.nodes.forEach((function(n){n.color||n.borderColor?n.color&&!n.borderColor?n.borderColor="#757575":n.borderColor&&!n.color&&(n.color="#F5F5F5"):(n.color=e[i],n.borderColor=t[i]),i=(i+1)%e.length}))},n.prototype._fillStreamColors=function(e,t){var n=this.state;return n.selectedState&&n.selectedLinks.has(e.index)&&n.selectedNode?n.selectedNode.color:n.selectedState&&n.selectedLinks.has(e.index)?t:void 0},n.prototype._fillStreamBorder=function(e,t){var n=this.state;return n.selectedState?n.selectedState&&n.selectedLinks.has(e.index)&&n.selectedNode?n.selectedNode.borderColor:n.selectedState&&n.selectedLinks.has(e.index)?t:Ca:Ca},n.prototype._getOpacityStream=function(e){var t=this.state;if(t.selectedState){if(!t.selectedLinks.has(e.index))return 1;if(t.selectedLinks.has(e.index)&&!t.selectedNode)return.3}return 1},n.prototype._getOpacityStreamBorder=function(e){var t=this.state;return!t.selectedState||t.selectedLinks.has(e.index)||t.selectedNode?1:.5},n.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,o=t&&t.getBoundingClientRect().width,i=t&&t.getBoundingClientRect().height;(n!==o||r!==i)&&e.setState({containerWidth:o,containerHeight:i})}))},n.prototype._truncateText=function(e,t,n){var r=t-n,o=0,i=(0,Co.Ys)(".nodeName").append("text").attr("class","tempText").attr("font-size","10").append("tspan").text(null);if(i.text(e),null!==i.node()&&i.node().getComputedTextLength()<=r)return e;i.text(null),i.text("..."),null!==i.node()&&(o=i.node().getComputedTextLength()),i.text(null);for(var a="",s=0;s<e.length;s++)if(a+=e[s],i.text(a),null!==i.node()&&i.node().getComputedTextLength()>=r-o){a=a.slice(0,-1),a+="...";break}return i.text(null),(0,Co.td)(".tempText").remove(),a},n.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"))},n.prototype._hideTooltip=function(e){e.style("opacity",0)},n.prototype._isChartEmpty=function(){var e,t=null===(e=this.props.data)||void 0===e?void 0:e.SankeyChartData;return!(t&&t.nodes.length>0&&t.links.length>0)},n}(o.Component),ka=(0,e.z)(La,(function(e){var n,r,o,i=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"},i],links:{stroke:s||a.palette.black,fill:a?a.semanticColors.bodyBackground:"#F5F5F5",strokeWidth:3,selectors:(n={},n[Ye.$v]={fill:"#000000"},n)},nodes:{fill:"#F5F5F5",selectors:(r={},r[Ye.$v]={fill:"#000000"},r)},toolTip:(0,t.pi)((0,t.pi)({},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:(o={},o[Ye.$v]={fill:"rgb(179, 179, 179)"},o)}},marginTop:"4px",marginLeft:"8px",marginBottom:"4px",marginRight:"8px"},calloutContentRoot:{boxShadow:l.elevation4}}}));function Ta(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 wa(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=Ma)):void 0===t&&(t=Da);for(var n,r,o,i,a,s=new Ia(e),l=[s];n=l.pop();)if((o=t(n.data))&&(a=(o=Array.from(o)).length))for(n.children=o,i=a-1;i>=0;--i)l.push(r=o[i]=new Ia(o[i])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(Fa)}function Da(e){return e.children}function Ma(e){return Array.isArray(e)?e[1]:null}function Pa(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Fa(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Ia(e){this.data=e,this.depth=this.height=0,this.parent=null}function Na(e,t){return e.parent===t.parent?1:2}function Va(e){var t=e.children;return t?t[0]:e.t}function Oa(e){var t=e.children;return t?t[t.length-1]:e.t}function Ha(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 Ba(e,t,n){return e.a.parent===t.parent?e.a:n}function Ra(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}Ia.prototype=wa.prototype={constructor:Ia,count:function(){return this.eachAfter(Ta)},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,o,i=this,a=[i],s=[],l=-1;i=a.pop();)if(s.push(i),n=i.children)for(r=0,o=n.length;r<o;++r)a.push(n[r]);for(;i=s.pop();)e.call(t,i,++l,this);return this},eachBefore:function(e,t){for(var n,r,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),n=o.children)for(r=n.length-1;r>=0;--r)i.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,o=r&&r.length;--o>=0;)n+=r[o].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(),o=null;for(e=n.pop(),t=r.pop();e===t;)o=e,e=n.pop(),t=r.pop();return o}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var o=r.length;e!==n;)r.splice(o,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 wa(this).eachBefore(Pa)},[Symbol.iterator]:function*(){var e,t,n,r,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(n=0,r=t.length;n<r;++n)i.push(t[n])}while(i.length)}},Ra.prototype=Object.create(Ia.prototype);var za,Wa,Ya=(0,i.y)(),Za=function(e){function n(t,n,r,o,i,a){void 0===o&&(o=[]),void 0===i&&(i=[]);var s=e.call(this,t,r,o,i)||this;return s.composition=n,s._treeTraversal=a,s}return(0,t.ZT)(n,e),n.prototype.createTree=function(e,t){var n,r,o,i,a,s,l=(e=e<65?65:e>90?90:e)||75,c=wa(this.treeData,(function(e){return e.children})),u=(null==c?void 0:c.height)+1;(function(){var e=Na,t=1,n=1,r=null;function o(o){var l=function(e){for(var t,n,r,o,i,a=new Ra(e,0),s=[a];t=s.pop();)if(r=t._.children)for(t.children=new Array(i=r.length),o=i-1;o>=0;--o)s.push(n=t.children[o]=new Ra(r[o],o)),n.parent=t;return(a.parent=new Ra(null,0)).children=[a],a}(o);if(l.eachAfter(i),l.parent.m=-l.z,l.eachBefore(a),r)o.eachBefore(s);else{var c=o,u=o,d=o;o.eachBefore((function(e){e.x<c.x&&(c=e),e.x>u.x&&(u=e),e.depth>d.depth&&(d=e)}));var h=c===u?1:e(c,u)/2,p=h-c.x,f=t/(u.x+h+p),g=n/(d.depth||1);o.eachBefore((function(e){e.x=(e.x+p)*f,e.y=e.depth*g}))}return o}function i(t){var n=t.children,r=t.parent.children,o=t.i?r[t.i-1]:null;if(n){!function(e){for(var t,n=0,r=0,o=e.children,i=o.length;--i>=0;)(t=o[i]).z+=n,t.m+=n,n+=t.s+(r+=t.c)}(t);var i=(n[0].z+n[n.length-1].z)/2;o?(t.z=o.z+e(t._,o._),t.m=t.z-i):t.z=i}else o&&(t.z=o.z+e(t._,o._));t.parent.A=function(t,n,r){if(n){for(var o,i=t,a=t,s=n,l=i.parent.children[0],c=i.m,u=a.m,d=s.m,h=l.m;s=Oa(s),i=Va(i),s&&i;)l=Va(l),(a=Oa(a)).a=t,(o=s.z+d-i.z-c+e(s._,i._))>0&&(Ha(Ba(s,t,r),t,o),c+=o,u+=o),d+=s.m,c+=i.m,h+=l.m,u+=a.m;s&&!Oa(a)&&(a.t=s,a.m+=d-u),i&&!Va(l)&&(l.t=i,l.m+=c-h,r=t)}return r}(t,o,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 o.separation=function(t){return arguments.length?(e=t,o):e},o.size=function(e){return arguments.length?(r=!1,t=+e[0],n=+e[1],o):r?null:[t,n]},o.nodeSize=function(e){return arguments.length?(r=!0,t=+e[0],n=+e[1],o):r?[t,n]:null},o})().nodeSize([l,l/1.5]).separation((function(e,t){return e.parent===c&&t.parent===c?3.5:1}))(c).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?c.each((function(e){p(e)})):c.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: ".concat(x.parentID,"\n ").concat(d[x.parentID].dataName,"\n ").concat(d[x.parentID].subName);if(!x.children&&!v.has(x.parentID)&&3===u){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 S=null===(n=d[x.parentID])||void 0===n?void 0:n.children,A=(null===(r=d[x.parentID])||void 0===r?void 0:r.x)-C/2-10,L=(null===(o=d[x.parentID])||void 0===o?void 0:o.x)+C/2+10,k=null===(i=d[x.parentID])||void 0===i?void 0:i.x,T=null===(a=S[0])||void 0===a?void 0:a.y,w=0;w<S.length;++w){var D=S[w];void 0!==this.composition?0===this.composition?(this.addNodeShapetoSVG(D.data.name,D.data.subname,D.data.bodytext,D.data.metricName,w%2==0?1===S.length?k:A:L,T,D.data.fill,1===S.length?f:C,g,D.id,b),w%2==1&&(T+=E+m)):(this.addNodeShapetoSVG(D.data.name,D.data.subname,D.data.bodytext,D.data.metricName,k,T,D.data.fill,f,g,D.id,b),T+=E+m):S.length>2?(this.addNodeShapetoSVG(D.data.name,D.data.subname,D.data.bodytext,D.data.metricName,w%2==0?A:L,T,D.data.fill,1===S.length?f:C,g,D.id,b),w%2==1&&(T+=E+m)):(this.addNodeShapetoSVG(D.data.name,D.data.subname,D.data.bodytext,D.data.metricName,k,T,D.data.fill,f,g,D.id,b),T+=E+m)}}if((x.children||u<=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)){S=null===(s=d[x.id])||void 0===s?void 0:s.children;var M=(0,Hi.Z)(S,(function(e){return e.x})),P=(0,ri.Z)(S,(function(e){return e.x}));this.addLinktoSVG(x.id,x.x,x.y,M,x.children[0].y,!1,f,g,m,P)}}},n}(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 o,i=e.split(/\s+/).reverse(),a="",s=(0,Co.Ys)(".svgTree").append("text").attr("class","tempText").append("tspan").text(null);r&&s.attr("class",r);for(var l=[];a=i.pop();)if(l.push(a),s.text(l.join(" ")+" "),null!==s.node()&&s.node().getComputedTextLength()>t-n){l.pop(),l.push("...");break}return o=l.join(" ")+" ",s.text(null),(0,Co.td)(".tempText").remove(),o},e.prototype.addNodeShapetoSVG=function(e,t,n,r,i,a,s,l,c,u,d){var h="nodeId: ".concat(u," \nnodeMainText: ").concat(e,"\nsubText ").concat(t," ").concat(d),p=i-l/2;!r&&0===u&&n||this._nodeElements.push(o.createElement("rect",{width:l,height:c,x:p,y:a,tabIndex:0,role:"text","data-is-focusable":!0,"aria-label":h,className:this.styleClassNames.rectNode,stroke:s,key:"".concat(u).concat(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?o.createElement("tspan",{className:this.styleClassNames.rectMetricText,dy:"1.4em",x:p+l/2},r):n?o.createElement(o.Fragment,null,o.createElement("tspan",{className:this.styleClassNames.rectSubText,dy:"1.4em",x:p+l/2},t),o.createElement("tspan",{className:this.styleClassNames.rectBodyText,dy:"1.4em",x:p+l/2},n)):o.createElement("tspan",{className:this.styleClassNames.rectSubText,dy:"1.4em",x:p+l/2},t);t||r||n?this._nodeElements.push(o.createElement("text",{textAnchor:"middle",className:r?this.styleClassNames.rectSubText:this.styleClassNames.rectText,dy:r?a+c/2.5:a+c/2,x:p+l/2,key:"".concat(u).concat(this.styleClassNames.rectText)},e,f)):this._nodeElements.push(o.createElement("text",{textAnchor:"middle",className:this.styleClassNames.rectMetricText,dy:a+c/1.6,x:p+l/2,key:"".concat(u).concat(this.styleClassNames.rectText)},e))},e.prototype.createPathLink=function(e,t,n,r,o,i,a,s,l){var c="M".concat(n-i/2,",").concat(r-s," H").concat(l+i/2," M").concat(e,",").concat(r-s,"\n V").concat(t+a+s/2),u="M".concat(e,",").concat(t+a+s/2," V").concat(t+5*s,"\n H").concat(e-i/2," H").concat(e+i/2);return o?u:c},e.prototype.addLinktoSVG=function(e,t,n,r,i,a,s,l,c,u){void 0===u&&(u=0),this._linkElements.push(o.createElement("path",{className:this.styleClassNames.link,d:this.createPathLink(t,n,r,i,a,s,l,c,u),key:"".concat(e).concat(this.styleClassNames.link)}))},e}()),qa=function(e){function n(t){var n,r,o,i,a,s=this;return(s=e.call(this,t)||this)._nodeElements=[],s._linkElements=[],s._margin={top:(null===(n=s.props.margins)||void 0===n?void 0:n.top)||30,bottom:(null===(r=s.props.margins)||void 0===r?void 0:r.bottom)||30,left:(null===(o=s.props.margins)||void 0===o?void 0:o.left)||50,right:(null===(i=s.props.margins)||void 0===i?void 0:i.right)||20},s._width=s.props.width||1500,s._height=s.props.height||700,s._treeData=s.props.treeData,s._composition=null===(a=s.props)||void 0===a?void 0:a.composition,s._treeTraversal=s.props.treeTraversal,s.state={_width:s._width,_height:s._height},s}return(0,t.ZT)(n,e),n.prototype.componentDidMount=function(){var e=this.props,t=e.theme,n=e.className,r=e.styles;this._classNames=Ya(r,{theme:t,className:n}),this.createTreeChart(),this.setState({_width:this.props.width||1500,_height:this.props.height||700})},n.prototype.componentDidUpdate=function(e){if(e.layoutWidth!==this.props.layoutWidth){var t=(0,Co.td)("text"),n=(0,Co.td)("rect"),r=(0,Co.td)("path");0===this._nodeElements.length&&0===this._linkElements.length&&(t.remove(),n.remove(),r.remove()),this.createTreeChart()}},n.prototype.createTreeChart=function(){var e=[],t=[],n=new Za(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},n.prototype.render=function(){var e;return o.createElement(xn,null,o.createElement("div",{className:null===(e=this._classNames)||void 0===e?void 0:e.root},o.createElement("svg",{className:"svgTree",width:this.state._width-this._margin.left-this._margin.right,height:this.state._height-this._margin.top-this._margin.bottom},o.createElement("g",{className:"svgNode"},this._nodeElements.map((function(e){return e}))),o.createElement("g",{className:"svgLink"},this._linkElements.map((function(e){return e}))))))},n}(o.Component),Xa=(0,e.z)(qa,(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:(0,t.pi)({fill:"black"},e.theme.fonts.large),rectSubText:(0,t.pi)({fill:"#484644"},e.theme.fonts.medium),rectBodyText:(0,t.pi)({fill:"#808080"},e.theme.fonts.xSmall),rectMetricText:(0,t.pi)({fill:"#000000"},e.theme.fonts.xLarge)}}));!function(e){e[e.long=1]="long",e[e.compact=0]="compact"}(za||(za={})),function(e){e[e.preOrder=1]="preOrder",e[e.levelOrder=0]="levelOrder"}(Wa||(Wa={}));var Ua,ja=(0,i.y)(),Ga=function(e){function n(t){var n=e.call(this,t)||this;return n.margin={top:2,right:0,bottom:0,left:0},n._isRTL=(0,a.zg)(),n.state={_points:null,_width:n.props.width||80,_height:n.props.height||20,_valueTextWidth:n.props.valueTextWidth||80},n._emptyChartId=f("_SparklineChart_empty"),n}return(0,t.ZT)(n,e),n.prototype.componentDidMount=function(){var e=this;if(!this._isChartEmpty()){var t=li().x((function(t){return e.x(t.x)})).y0(this.state._height).y1((function(t){return e.y(t.y)})).curve(Ao);this.area=t;var n=To().x((function(t){return e.x(t.x)})).y((function(t){return e.y(t.y)})).curve(Ao);this.line=n;var r=this.props.data.lineChartData[0].data,o=function(e,t){let n,r;if(void 0===t)for(const t of e)null!=t&&(void 0===n?t>=t&&(n=r=t):(n>t&&(n=t),r<t&&(r=t)));else{let o=-1;for(let i of e)null!=(i=t(i,++o))&&(void 0===n?i>=i&&(n=r=i):(n>i&&(n=i),r<i&&(r=i)))}return[n,r]}(r,(function(e){return e.x})),i=o[0],a=o[1];this.x=(0,Bi.Z)().domain([i,a]).range([this.margin.left,this.state._width-this.margin.right]),this.y=(0,Bi.Z)().domain([0,(0,ri.Z)(r,(function(e){return e.y}))]).range([this.state._height-this.margin.bottom,this.margin.top]),this.setState({_points:r})}},n.prototype.drawSparkline=function(){return o.createElement(o.Fragment,null,o.createElement("path",{className:"line",d:this.line(this.state._points),fill:"transparent",opacity:1,strokeWidth:2,stroke:this.props.data.lineChartData[0].color}),o.createElement("path",{className:"area",d:this.area(this.state._points),opacity:1,fillOpacity:.2,fill:this.props.data.lineChartData[0].color,role:"img","aria-label":"Sparkline with label ".concat(this.props.data.lineChartData[0].legend)}))},n.prototype.render=function(){var e=ja(this.props.styles,{theme:this.props.theme});return this._isChartEmpty()?o.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):o.createElement(xn,{direction:Gt.horizontal,isCircularNavigation:!0,className:e.inlineBlock},o.createElement("div",{className:e.inlineBlock},this.state._width>=50&&this.state._height>=16?o.createElement("svg",{width:this.state._width,height:this.state._height,"data-is-focusable":!0},this.state._points?this.drawSparkline():null):o.createElement(o.Fragment,null),this.props.showLegend&&this.props.data.lineChartData[0].legend?o.createElement("svg",{width:this.state._valueTextWidth,height:this.state._height,"data-is-focusable":!0},o.createElement("text",{x:"0%",textAnchor:this._isRTL?"end":"start",dx:8,y:"100%",dy:-5,className:e.valueText},this.props.data.lineChartData[0].legend)):o.createElement(o.Fragment,null)))},n.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.lineChartData&&this.props.data.lineChartData.length>0&&0===this.props.data.lineChartData.filter((function(e){return 0===e.data.length})).length)},n}(o.Component),Ka=(0,e.z)(Ga,(function(e){return{inlineBlock:{display:"inline"},valueText:(0,t.pi)((0,t.pi)({},e.theme.fonts.smallPlus),{fill:e.theme.palette.black})}})),$a=(0,i.y)(),Ja=function(e){function n(n){var r=e.call(this,n)||this;return r._isRtl=(0,a.zg)(),r._getMargins=function(e){r.margins=e},r._renderContentForOnlyBars=function(e){var t,n,i,a=r.props.useSingleColor,s=void 0!==a&&a,l=0;return r.props.data.forEach((function(t,n){t.y===e.y&&(l=n)})),i=s?r.props.colors?r._createColors()(1):vo(1,0,null===(t=r.props.theme)||void 0===t?void 0:t.isInverted):e.color?e.color:r.props.colors?r._createColors()(e.x):vo(l,0,null===(n=r.props.theme)||void 0===n?void 0:n.isInverted),o.createElement(o.Fragment,null,o.createElement($t.ChartHoverCard,{XValue:e.xAxisCalloutData||e.x.toString(),Legend:e.legend,YValue:e.yAxisCalloutData||e.y,color:i,culture:r.props.culture}))},r._renderCallout=function(e){return e?r._renderContentForOnlyBars(e):null},r._getCustomizedCallout=function(){return r.props.onRenderCalloutPerDataPoint?r.props.onRenderCalloutPerDataPoint(r.state.dataPointCalloutProps,r._renderCallout):null},r._getGraphData=function(e,t,n,o,i,a){return r._bars=r._yAxisType===Kt.OH.NumericAxis?r._createNumericBars(n,o,i,a):r._createStringBars(n,o,i,a)},r._refCallback=function(e,t){r._refArray.push({index:t,refElement:e})},r._getCalloutContentForBar=function(e){var t,n,o,i=[],a=r.props.useSingleColor,s=void 0!==a&&a,l=r.props.data,c=l.filter((function(t){return t.y===e.y})),u=0;return l.forEach((function(t,n){t.y===e.y&&(u=n)})),o=s?r.props.colors?r._createColors()(1):vo(1,0,null===(t=r.props.theme)||void 0===t?void 0:t.isInverted):c[0].color?c[0].color:r.props.colors?r._createColors()(c[0].x):vo(u,0,null===(n=r.props.theme)||void 0===n?void 0:n.isInverted),i.push({legend:c[0].legend,y:c[0].x,color:o,data:c[0].yAxisCalloutData,yAxisCalloutData:c[0].yAxisCalloutData}),{YValueHover:i,hoverXValue:e.yAxisCalloutData||e.y.toString()}},r._onBarLeave=function(){},r._handleChartMouseLeave=function(){r._calloutAnchorPoint=null,r.setState({isCalloutVisible:!1,activeXdataPoint:null,YValueHover:[],hoverXValue:""})},r._onBarFocus=function(e,t,n){if(!1===r.state.isLegendSelected||r.state.isLegendSelected&&r.state.selectedLegendTitle===e.legend){var o=r._getCalloutContentForBar(e),i=o.YValueHover,a=o.hoverXValue;r._refArray.forEach((function(o,s){t===s&&r.setState({refSelected:o.refElement,isCalloutVisible:!0,selectedLegendTitle:e.legend,dataForHoverCard:e.x,color:r.props.useSingleColor?n:e.color,xCalloutValue:e.yAxisCalloutData||e.y.toString(),yCalloutValue:e.xAxisCalloutData||e.x.toString(),dataPointCalloutProps:e,activeXdataPoint:e.x,YValueHover:i,hoverXValue:a,callOutAccessibilityData:e.callOutAccessibilityData})}))}},r._getScales=function(e,t,n){if(n){var o=(0,ri.Z)(r._points,(function(e){return e.x})),i=(0,ri.Z)(r._points,(function(e){return e.y}));return{xBarScale:(0,Bi.Z)().domain(r._isRtl?[o,0]:[0,o]).nice().range([r.margins.left,t-r.margins.right]),yBarScale:a=(0,Bi.Z)().domain([0,i]).range([e-r.margins.bottom,r.margins.top])}}o=(0,ri.Z)(r._points,(function(e){return e.x}));var a=(0,zi.Z)().domain(r._yAxisLabels).range([e-r.margins.bottom-r._barHeight/2,r.margins.top+r._barHeight/2]).padding(r.props.yAxisPadding||0);return{xBarScale:(0,Bi.Z)().domain(r._isRtl?[o,0]:[0,o]).nice().range([r.margins.left,t-r.margins.right]),yBarScale:a}},r._closeCallout=function(){r.setState({isCalloutVisible:!1})},r._getLegendData=function(e,n){var i=r.props.useSingleColor,a=[];return e.forEach((function(e,t){var n,o=i?r.props.colors?r._createColors()(1):vo(1,0,null===(n=r.props.theme)||void 0===n?void 0:n.isInverted):e.color,s={title:e.legend,color:o,action:function(){r._onLegendClick(e.legend)},hoverAction:function(){r._handleChartMouseLeave(),r._onLegendHover(e.legend)},onMouseOutAction:function(e){r._onLegendLeave(e)}};a.push(s)})),o.createElement(Ar,(0,t.pi)({legends:a,enabledWrapLines:r.props.enabledLegendsWrapLines,overflowProps:r.props.legendsOverflowProps,focusZonePropsInHoverCard:r.props.focusZonePropsForLegendsInHoverCard,overflowText:r.props.legendsOverflowText},r.props.legendProps))},r._getAxisData=function(e){if(e&&e.yAxisDomainValues.length){var t=e.yAxisDomainValues;r._xMax=Math.max(t[t.length-1],r.props.xMaxValue||0)}},r._getAriaLabel=function(e){var t,n=e.xAxisCalloutData||e.x,r=e.yAxisCalloutData||e.y;return(null===(t=e.callOutAccessibilityData)||void 0===t?void 0:t.ariaLabel)||"".concat(n,". ")+"".concat(r,".")},r.state={color:"",dataForHoverCard:0,isCalloutVisible:!1,isLegendSelected:!1,isLegendHovered:!1,refSelected:null,selectedLegendTitle:"",xCalloutValue:"",yCalloutValue:"",activeXdataPoint:null,YValueHover:[],hoverXValue:""},r._calloutId=f("callout"),r._tooltipId=f("HBCWATooltipID_"),r._refArray=[],r._xAxisType=r.props.data&&r.props.data.length>0?(0,Kt.SY)(r.props.data[0].x,!0):Kt.xl.NumericAxis,r._yAxisType=r.props.data&&r.props.data.length>0?(0,Kt.SY)(r.props.data[0].y,!1):Kt.OH.StringAxis,r}return(0,t.ZT)(n,e),n.prototype.render=function(){var e=this;this._adjustProps();var n=(0,t.ev)([],this._points,!0).reverse();this._yAxisLabels=n.map((function(e){return e.y})),this._xMax=Math.max((0,ri.Z)(this._points,(function(e){return e.x})),this.props.xMaxValue||0);var r=this._getLegendData(this._points,this.props.theme.palette);this._classNames=$a(this.props.styles,{theme:this.props.theme,legendColor:this.state.color});var i=(0,t.pi)((0,t.pi)({isCalloutVisible:this.state.isCalloutVisible,directionalHint:_.topAutoEdge,id:"toolTip".concat(this._calloutId),target:this.state.refSelected,isBeakVisible:!1,gapSpace:15,color:this.state.color,legend:this.state.selectedLegendTitle,XValue:this.state.xCalloutValue,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0},this.props.calloutProps),(0,Kt.ey)(this.state.callOutAccessibilityData)),a={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return o.createElement(Oo,(0,t.pi)({},this.props,{points:this._points,chartType:Kt.$X.HorizontalBarChartWithAxis,xAxisType:this._xAxisType,yAxisType:this._yAxisType,stringDatasetForYAxisDomain:this._yAxisLabels,calloutProps:i,tickParams:a,legendBars:r,barwidth:this._barHeight,focusZoneDirection:Gt.vertical,customizedCallout:this._getCustomizedCallout(),getmargins:this._getMargins,getGraphData:this._getGraphData,getAxisData:this._getAxisData,onChartMouseLeave:this._handleChartMouseLeave,children:function(t){return o.createElement(o.Fragment,null,o.createElement("g",null,e._bars))}}))},n.prototype._adjustProps=function(){this._points=this.props.data||[],this._barHeight=this.props.barHeight||32;var e=this.props.theme.palette;this._colors=this.props.colors||[e.blueLight,e.blue,e.blueMid,e.blueDark]},n.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,o=n.colors;return o&&o.length>0?o[0]:r.palette.blueLight};for(var r=[],o=0;o<this._colors.length;o++)r.push(t*o*this._xMax);return(0,Bi.Z)().domain(r).range(this._colors)},n.prototype._onBarHover=function(e,t,n){n.persist();var r=this._getCalloutContentForBar(e),o=r.YValueHover,i=r.hoverXValue;(!1===this.state.isLegendSelected||this.state.isLegendSelected&&this.state.selectedLegendTitle===e.legend)&&this._calloutAnchorPoint!==e&&(this._calloutAnchorPoint=e,this.setState({refSelected:n,isCalloutVisible:!0,dataForHoverCard:e.x,selectedLegendTitle:e.legend,color:this.props.useSingleColor?t:e.color,xCalloutValue:e.yAxisCalloutData||e.y.toString(),yCalloutValue:e.xAxisCalloutData||e.x.toString(),dataPointCalloutProps:e,activeXdataPoint:e.x,YValueHover:o,hoverXValue:i,callOutAccessibilityData:e.callOutAccessibilityData}))},n.prototype._createNumericBars=function(e,n,r,i){var a=this,s=this.props.useSingleColor,l=void 0!==s&&s,c=this._getScales(e,n,!0),u=c.xBarScale,d=c.yBarScale,h=(0,t.ev)([],this._points,!0);h.sort((function(e,t){var n="number"==typeof e.y?e.y:parseFloat(e.y);return("number"==typeof t.y?t.y:parseFloat(t.y))-n}));var p=h.map((function(e,t){var r,i,s,c=!0;return(a.state.isLegendHovered||a.state.isLegendSelected)&&(c=a.state.selectedLegendTitle===e.legend),a._classNames=$a(a.props.styles,{theme:a.props.theme,legendColor:a.state.color,shouldHighlight:c}),Math.max(d(e.y),0)<1?o.createElement(o.Fragment,{key:e.x}," "):(s=l?a.props.colors?a._createColors()(1):vo(1,0,null===(r=a.props.theme)||void 0===r?void 0:r.isInverted):a.props.colors?a._createColors()(e.x):vo(t,0,null===(i=a.props.theme)||void 0===i?void 0:i.isInverted),o.createElement("rect",{key:e.y,x:a._isRtl?u(e.x):a.margins.left,className:a._classNames.opacityChangeOnHover,y:d(e.y)-a._barHeight/2,"data-is-focusable":!0,width:a._isRtl?n-a.margins.right-Math.max(u(e.x),0):Math.max(u(e.x),0)-a.margins.left,height:a._barHeight,ref:function(t){a._refCallback(t,e.legend)},onClick:e.onClick,onMouseOver:a._onBarHover.bind(a,e,s),"aria-label":a._getAriaLabel(e),role:"img","aria-labelledby":"toolTip".concat(a._calloutId),onMouseLeave:a._onBarLeave,onFocus:a._onBarFocus.bind(a,e,t,s),onBlur:a._onBarLeave,fill:e.color&&!l?e.color:s}))}));return p},n.prototype._tooltipOfYAxislabels=function(e){var t=this,n=e.tooltipCls,r=e.yAxis,o=e.id;if(null===r)return null;for(var i=(0,Co.Ys)("body").append("div").attr("id",o).attr("class",n).style("opacity",0),a=r.selectAll("#BaseSpan")._groups[0],s=a&&Object.keys(a).length,l=[],c=0;c<s;c++){var u=a[c].dataset&&Object.values(a[c].dataset)[0];l.push(u)}var d=r.selectAll(".tick")._groups[0],h=d&&Object.keys(d).length,p=function(e){var n=d[e];(0,Co.Ys)(n).on("mouseover",(function(n){t.state.tooltipElement||(i.style("opacity",.9),i.html(l[e]).style("left",Co.B.pageX+"px").style("top",Co.B.pageY-28+"px"))})).on("mouseout",(function(e){i.style("opacity",0)}))};for(c=0;c<h;c++)p(c)},n.prototype._createStringBars=function(e,t,n,r){var i=this,a=this._getScales(e,t,!1),s=a.xBarScale,l=a.yBarScale,c=this.props.useSingleColor,u=void 0!==c&&c,d=this._points.map((function(e,n){var r,a,c;return Math.max(l(e.y),0)<1?o.createElement(o.Fragment,{key:e.x}," "):(c=u?i.props.colors?i._createColors()(1):vo(1,0,null===(r=i.props.theme)||void 0===r?void 0:r.isInverted):i.props.colors?i._createColors()(e.x):vo(n,0,null===(a=i.props.theme)||void 0===a?void 0:a.isInverted),o.createElement("rect",{transform:"translate(0,".concat(.5*(l.bandwidth()-i._barHeight),")"),key:e.x,x:i._isRtl?s(e.x):i.margins.left,y:l(e.y),width:i._isRtl?t-i.margins.right-Math.max(s(e.x),0):Math.max(s(e.x),0)-i.margins.left,height:i._barHeight,"aria-labelledby":"toolTip".concat(i._calloutId),"aria-label":i._getAriaLabel(e),role:"img",ref:function(t){i._refCallback(t,e.legend)},onClick:e.onClick,onMouseOver:i._onBarHover.bind(i,e,c),onMouseLeave:i._onBarLeave,onBlur:i._onBarLeave,"data-is-focusable":!0,onFocus:i._onBarFocus.bind(i,e,n,c),fill:e.color&&!u?e.color:c}))}));if(!this.props.showYAxisLablesTooltip)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(e){}if(this.props.showYAxisLablesTooltip){var h=(0,Co.Ys)(r).call(l);if(!this.state.tooltipElement)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(e){}var p={tooltipCls:this._classNames.tooltip,id:this._tooltipId,yAxis:h};h&&this._tooltipOfYAxislabels(p)}return d},n.prototype._onLegendClick=function(e){this.state.isLegendSelected?this.state.selectedLegendTitle===e?this.setState({isLegendSelected:!1,selectedLegendTitle:e}):this.setState({selectedLegendTitle:e}):this.setState({isLegendSelected:!0,selectedLegendTitle:e})},n.prototype._onLegendHover=function(e){!1===this.state.isLegendSelected&&this.setState({isLegendHovered:!0,selectedLegendTitle:e})},n.prototype._onLegendLeave=function(e){(e||!1===this.state.isLegendSelected)&&this.setState({isLegendHovered:!1,selectedLegendTitle:"",isLegendSelected:!e&&this.state.isLegendSelected})},n}(o.Component),Qa=(0,e.z)(Ja,(function(e){var n=e.shouldHighlight,r=e.theme;return{opacityChangeOnHover:{opacity:n?"":"0.1"},xAxisTicks:[],tooltip:(0,t.pi)((0,t.pi)({},r.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:r.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"})}}));!function(e){e.Percentage="percentage",e.Fraction="fraction"}(Ua||(Ua={}));var es=[{minRadius:52,arcWidth:12,fontSize:20},{minRadius:70,arcWidth:16,fontSize:24},{minRadius:88,arcWidth:20,fontSize:32},{minRadius:106,arcWidth:24,fontSize:32},{minRadius:124,arcWidth:28,fontSize:40},{minRadius:142,arcWidth:32,fontSize:40}],ts=(0,i.y)(),ns=function(e){function n(n){var r=e.call(this,n)||this;return r._getMargins=function(){var e=r.props,t=e.hideMinMax;return{left:16+(t?0:40),right:16+(t?0:40),top:16+(e.chartTitle?27:2),bottom:16+(e.sublabel?20:0)}},r._getStylesBasedOnBreakpoint=function(){for(var e=es.length-1;e>=0;e-=1)if(r._outerRadius>=es[e].minRadius)return{arcWidth:es[e].arcWidth,chartValueSize:es[e].fontSize};return{arcWidth:es[0].arcWidth,chartValueSize:es[0].fontSize}},r._initProps=function(){var e=r.props,t=e.minValue,n=void 0===t?0:t,o=e.maxValue,i=e.theme,a=Array.from(r.props.segments),s=n;a.forEach((function(e,t){s+=e.size,e.color=void 0!==e.color?_o(e.color,i.isInverted):vo(t,0,i.isInverted)})),void 0!==o&&s<o&&(a.push({legend:"Unknown",size:o-s,color:i.palette.neutralLight}),s=o);var l=no().padAngle(2/r._outerRadius).padRadius(r._outerRadius),c=r._isRTL?Array.from(a).reverse():a,u=-Math.PI/2,d=c.map((function(e,t){var o=u+e.size/(s-n)*Math.PI,i=l({innerRadius:r._innerRadius,outerRadius:r._outerRadius,startAngle:u,endAngle:o});return u=o,{d:i,segmentIndex:r._isRTL?a.length-1-t:t}}));return{minValue:n,maxValue:s,segments:a,arcs:d}},r._renderNeedle=function(){var e=r._sweepFraction[0]/r._sweepFraction[1]*180,t=r._isRTL?180-e:e,n=r._outerRadius-r._innerRadius+4;return o.createElement("g",{transform:"rotate(".concat(t,", 0, 0)")},o.createElement("path",{d:"\n M 0,".concat(-4,"\n L ").concat(-n,",").concat(-2,"\n A ").concat(2,",").concat(2,",0,0,0,").concat(-n,",").concat(2,"\n L 0,").concat(4,"\n A ").concat(4,",").concat(4,",0,0,0,0,").concat(-4,"\n "),strokeWidth:2,className:r._classNames.needle,transform:"translate(".concat(2-r._innerRadius,")"),"data-is-focusable":!0,onFocus:function(e){return r._handleFocus(e,"Needle")},onBlur:r._handleBlur,onMouseEnter:function(e){return r._handleMouseOver(e,"Needle")},onMouseMove:function(e){return r._handleMouseOver(e,"Needle")}}))},r._renderLegends=function(){if(r.props.hideLegend)return null;var e=r._segments.map((function(e){return{title:e.legend,color:e.color,action:function(){r.state.selectedLegend===e.legend?r.setState({selectedLegend:""}):r.setState({selectedLegend:e.legend})},hoverAction:function(){r.setState({hoveredLegend:e.legend})},onMouseOutAction:function(){r.setState({hoveredLegend:""})}}}));return o.createElement("div",{className:r._classNames.legendsContainer},o.createElement(Ar,(0,t.pi)({legends:e,centerLegends:!0},r.props.legendProps)))},r._legendHighlighted=function(e){return r.state.selectedLegend===e||""===r.state.selectedLegend&&r.state.hoveredLegend===e},r._noLegendHighlighted=function(){return""===r.state.selectedLegend&&""===r.state.hoveredLegend},r._handleFocus=function(e,t){r._showCallout(e.target,t,!0)},r._handleBlur=function(){r._hideCallout(!0)},r._handleMouseOver=function(e,t){r._showCallout(e.target,t,!1)},r._handleMouseOut=function(){r._hideCallout(!1)},r._handleCalloutDismiss=function(){r._hideCallout(!1)},r._showCallout=function(e,n,o){if(r._calloutAnchor!==n){r._calloutAnchor=n;var i="Current value is "+(r.props.chartValueFormat===Ua.Fraction?"".concat((r._sweepFraction[0]/r._sweepFraction[1]*100).toFixed(),"%"):"".concat(r._sweepFraction[0],"/").concat(r._sweepFraction[1])),a=r._minValue,s=r._segments.map((function(e,t){var n={legend:e.legend,y:"".concat(a+(t>0?1:0)," - ").concat(a+e.size),color:e.color};return a+=e.size,n}));r.setState((0,t.pi)({calloutTarget:e,isCalloutVisible:["Needle","Chart value"].includes(n)||""===r.state.selectedLegend||r.state.selectedLegend===n,hoverXValue:i,hoverYValues:s},o?{focusedElement:n}:{}))}},r._hideCallout=function(e){r._calloutAnchor="",r.setState((0,t.pi)({calloutTarget:null,isCalloutVisible:!1,hoverXValue:"",hoverYValues:[]},e?{focusedElement:""}:{}))},r._wrapContent=function(e,t,n){var r=(0,Co.Ys)("#".concat(t));if(r.text(e),!r.node())return!1;for(var o=!1,i=r.node().getComputedTextLength();i>n&&e.length>0;)e=e.slice(0,-1),r.text(e+"..."),o=!0,i=r.node().getComputedTextLength();return o},r._multiValueCallout=function(e){var n=r._yValueHoverSubCountsExists(e.YValueHover);return o.createElement("div",{className:r._classNames.calloutContentRoot},o.createElement("div",{className:r._classNames.calloutDateTimeContainer,style:n?{marginBottom:"11px"}:{}},o.createElement("div",(0,t.pi)({className:r._classNames.calloutContentX},(0,Kt.ey)(e.xAxisCalloutAccessibilityData,"text",!1)),(0,Kt.Ts)(e.hoverXValue,r.props.culture))),o.createElement("div",{className:r._classNames.calloutInfoContainer,style:n?{display:"flex"}:{}},e.YValueHover&&e.YValueHover.map((function(e,i,a){var s=i+1===a.length,l=e.shouldDrawBorderBottom,c=void 0!==l&&l;return o.createElement("div",(0,t.pi)({},(0,Kt.ey)(e.callOutAccessibilityData,"text",!1),{key:"callout-content-".concat(i),style:n?(0,t.pi)({display:"inline-block"},c&&{borderBottom:"1px solid ".concat(r.props.theme.semanticColors.menuDivider),paddingBottom:"10px"}):(0,t.pi)({},c&&{borderBottom:"1px solid ".concat(r.props.theme.semanticColors.menuDivider),paddingBottom:"10px"})}),r._getCalloutContent(e,i,n,s))})),!!e.descriptionMessage&&o.createElement("div",{className:r._classNames.descriptionMessage},e.descriptionMessage)))},r._margins=r._getMargins(),r._legendsHeight=r.props.hideLegend?0:24,r.state={hoveredLegend:"",selectedLegend:"",focusedElement:"",calloutTarget:null,isCalloutVisible:!1,hoverXValue:"",hoverYValues:[],width:140+r._margins.left+r._margins.right,height:70+r._margins.top+r._margins.bottom+r._legendsHeight},r._isRTL=(0,a.zg)(),r._calloutAnchor="",r}return(0,t.ZT)(n,e),n.prototype.componentDidMount=function(){this._rootElem&&this.setState({width:this._rootElem.clientWidth,height:this._rootElem.clientHeight})},n.prototype.render=function(){var e=this;this._margins=this._getMargins(),this._legendsHeight=this.props.hideLegend?0:24;var n=this.props.width||this.state.width,r=this.props.height||this.state.height;this._outerRadius=Math.min((n-(this._margins.left+this._margins.right))/2,r-(this._margins.top+this._margins.bottom+this._legendsHeight));var i=this._getStylesBasedOnBreakpoint(),a=i.arcWidth,s=i.chartValueSize;this._innerRadius=this._outerRadius-a;var l=this._initProps(),c=l.minValue,u=l.maxValue,d=l.segments,h=l.arcs;return this._minValue=c,this._segments=d,this._sweepFraction=[this.props.chartValue-this._minValue,u-this._minValue],this._classNames=ts(this.props.styles,{theme:this.props.theme,className:this.props.className,chartWidth:n,chartHeight:r-this._legendsHeight,chartValueSize:s}),o.createElement("div",{className:this._classNames.root,ref:function(t){return e._rootElem=t}},o.createElement(xn,{direction:Gt.horizontal},o.createElement("svg",{className:this._classNames.chart,"aria-label":"This is a gauge chart with ".concat(this._segments.length," section represented."),onMouseLeave:this._handleMouseOut},o.createElement("g",{transform:"translate(".concat(n/2,", ").concat(r-(this._margins.bottom+this._legendsHeight),")")},this.props.chartTitle&&o.createElement("text",{x:0,y:-(this._outerRadius+11),textAnchor:"middle",className:this._classNames.chartTitle},this.props.chartTitle),!this.props.hideMinMax&&o.createElement(o.Fragment,null,o.createElement("text",{x:(this._isRTL?1:-1)*(this._outerRadius+4),y:0,textAnchor:"end",className:this._classNames.limits,role:"img","aria-label":"Min value: ".concat(this._minValue)},(0,Kt.cE)(this._minValue)),o.createElement("text",{x:(this._isRTL?-1:1)*(this._outerRadius+4),y:0,textAnchor:"start",className:this._classNames.limits,role:"img","aria-label":"Max value: ".concat(u)},(0,Kt.cE)(u))),h.map((function(n,r){return o.createElement("path",(0,t.pi)({key:r,d:n.d,fill:e._segments[n.segmentIndex].color,fillOpacity:e._legendHighlighted(e._segments[n.segmentIndex].legend)||e._noLegendHighlighted()?1:.1,strokeWidth:e.state.focusedElement===e._segments[n.segmentIndex].legend?2:0,className:e._classNames.segment},(0,Kt.ey)((0,t.pi)({ariaLabel:"".concat(e._segments[n.segmentIndex].legend,", ").concat(e._segments[n.segmentIndex].size," out of ").concat(u-e._minValue," or ").concat((e._segments[n.segmentIndex].size/(u-e._minValue)*100).toFixed(),"%")},e._segments[n.segmentIndex].accessibilityData),"img",!0),{onFocus:function(t){return e._handleFocus(t,e._segments[n.segmentIndex].legend)},onBlur:e._handleBlur,onMouseEnter:function(t){return e._handleMouseOver(t,e._segments[n.segmentIndex].legend)},onMouseMove:function(t){return e._handleMouseOver(t,e._segments[n.segmentIndex].legend)}}))})),this._renderNeedle(),o.createElement("g",{onMouseEnter:function(t){return e._handleMouseOver(t,"Chart value")},onMouseMove:function(t){return e._handleMouseOver(t,"Chart value")}},o.createElement(Po,{content:"function"==typeof this.props.chartValueFormat?this.props.chartValueFormat(this._sweepFraction):this.props.chartValueFormat===Ua.Fraction?"".concat(this._sweepFraction[0],"/").concat(this._sweepFraction[1]):"".concat((this._sweepFraction[0]/this._sweepFraction[1]*100).toFixed(),"%"),textProps:{x:0,y:0,textAnchor:"middle",className:this._classNames.chartValue,role:"img","aria-label":"Current value: ".concat(this._sweepFraction[0]," out of ").concat(this._sweepFraction[1],", or ").concat((this._sweepFraction[0]/this._sweepFraction[1]*100).toFixed(),"%")},maxWidth:2*this._innerRadius-24,wrapContent:this._wrapContent})),this.props.sublabel&&o.createElement(Po,{content:this.props.sublabel,textProps:{x:0,y:4,textAnchor:"middle",dominantBaseline:"hanging",className:this._classNames.sublabel,role:"img","aria-label":this.props.sublabel},maxWidth:2*this._innerRadius,wrapContent:this._wrapContent})))),this._renderLegends(),!this.props.hideTooltip&&this.state.isCalloutVisible&&o.createElement(jt,(0,t.pi)({target:this.state.calloutTarget,directionalHint:_.topAutoEdge,gapSpace:15,isBeakVisible:!1,onDismiss:this._handleCalloutDismiss},this.props.calloutProps),this._multiValueCallout({hoverXValue:this.state.hoverXValue,YValueHover:this.state.hoverYValues})))},n.prototype._yValueHoverSubCountsExists=function(e){return!!e&&e.some((function(e){return e.yAxisCalloutData&&"string"!=typeof e.yAxisCalloutData}))},n.prototype._getCalloutContent=function(e,t,n,r){var i=r?{}:{marginRight:"16px"},a=void 0!==e.index&&-1!==e.index,s=ts(this.props.styles,{theme:this.props.theme,lineColor:e.color,toDrawShape:a}),l=this.props.culture,c=(0,Kt.Ts)(e.y,l);if(e.yAxisCalloutData&&"string"!=typeof e.yAxisCalloutData){var u=e.yAxisCalloutData;return o.createElement("div",{style:i},o.createElement("div",{className:"ms-fontWeight-semibold",style:{fontSize:"12pt"}},e.legend," (",c,")"),Object.keys(u).map((function(e){return o.createElement("div",{key:e,className:s.calloutBlockContainer},o.createElement("div",{className:s.calloutlegendText}," ",(0,Kt.Ts)(e,l)),o.createElement("div",{className:s.calloutContentY},(0,Kt.Ts)(u[e],l)))})))}return o.createElement("div",{style:n?i:{}},n&&o.createElement("div",{className:"ms-fontWeight-semibold",style:{fontSize:"12pt"}},e.legend," (",c,")"),o.createElement("div",{id:"".concat(t,"_").concat(e.y),className:s.calloutBlockContainer},a&&o.createElement(Cr,{svgProps:{className:s.shapeStyles},pathProps:{fill:e.color},shape:Kt.wo[e.index%Object.keys(Kt.Ml).length]}),o.createElement("div",null,o.createElement("div",{className:s.calloutlegendText}," ",e.legend),o.createElement("div",{className:s.calloutContentY},(0,Kt.Ts)(e.yAxisCalloutData?e.yAxisCalloutData:e.y||e.data,l)))))},n}(o.Component),rs=(0,e.z)(ns,(function(e){var n,r,o,i,a=e.theme,s=e.chartValueSize,l=e.chartWidth,c=e.chartHeight,u=e.className,d=e.lineColor,h=e.toDrawShape;return{root:[a.fonts.medium,"ms-GaugeChart",{width:"100%",height:"100%"},u],chart:{display:"block",width:l,height:c},limits:{fontSize:Ye.TS.small,fontWeight:Ye.lq.semibold,fill:a.palette.neutralPrimary},chartValue:{fontSize:s,fontWeight:Ye.lq.semibold,fill:a.palette.neutralPrimary},sublabel:{fontSize:Ye.TS.small,fontWeight:Ye.lq.semibold,fill:a.palette.neutralPrimary},needle:{fill:a.palette.black,stroke:a.palette.white},chartTitle:{fontSize:Ye.TS.small,fill:a.palette.neutralPrimary},segment:{outline:"none",stroke:a.semanticColors.focusBorder},legendsContainer:{width:l},calloutContentRoot:[{display:"grid",overflow:"hidden",padding:"11px 16px 10px 16px",backgroundColor:a.semanticColors.bodyBackground,backgroundBlendMode:"normal, luminosity"}],calloutDateTimeContainer:{display:"flex",flexDirection:"row",justifyContent:"space-between"},calloutContentX:[(0,t.pi)((0,t.pi)({},a.fonts.small),{lineHeight:"16px",opacity:"0.8",color:a.semanticColors.bodySubtext})],calloutBlockContainer:[a.fonts.mediumPlus,{marginTop:"13px",color:a.semanticColors.bodyText},!h&&{selectors:(n={},n[Ye.qJ]={forcedColorAdjust:"none"},n),borderLeft:"4px solid ".concat(d),paddingLeft:"8px"},h&&{display:"flex"}],shapeStyles:{marginRight:"8px"},calloutlegendText:(0,t.pi)((0,t.pi)({},a.fonts.small),{lineHeight:"16px",selectors:(r={},r[Ye.$v]={color:"rgb(255, 255, 255)"},r),color:a.semanticColors.bodySubtext}),calloutContentY:[(0,t.pi)((0,t.pi)({},a.fonts.mediumPlus),{fontWeight:"bold",lineHeight:"22px",selectors:(o={},o[Ye.$v]={color:"rgb(255, 255, 255)"},o)})],descriptionMessage:[a.fonts.small,{selectors:(i={},i[Ye.$v]={color:"rgb(255, 255, 255)"},i),color:a.semanticColors.bodyText,marginTop:"10px",paddingTop:"10px",borderTop:"1px solid ".concat(a.semanticColors.menuDivider)}]}}));(0,n(6077).x)("@fluentui/react-charting","5.19.20")}(),FluentUIReactCharting=r}();
1
+ var FluentUIReactCharting;!function(){"use strict";var e={1783:function(e,t,n){n.d(t,{WU:function(){return d},jH:function(){return h}});var r,o=n(4783),i=n(4116),a=n(3074);function s(e,t){var n=(0,a.Z)(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")}var l={"%":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 s(100*e,t)},r:s,s:function(e,t){var n=(0,a.Z)(e,t);if(!n)return e+"";var o=n[0],i=n[1],s=i-(r=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,l=o.length;return s===l?o:s>l?o+new Array(s-l+1).join("0"):s>0?o.slice(0,s)+"."+o.slice(s):"0."+new Array(1-s).join("0")+(0,a.Z)(e,Math.max(0,t+s-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function c(e){return e}var u,d,h,p=Array.prototype.map,f=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];u=function(e){var t,n,a=void 0===e.grouping||void 0===e.thousands?c:(t=p.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var o=e.length,i=[],a=0,s=t[0],l=0;o>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),i.push(e.substring(o-=s,o+s)),!((l+=s+1)>r));)s=t[a=(a+1)%t.length];return i.reverse().join(n)}),s=void 0===e.currency?"":e.currency[0]+"",u=void 0===e.currency?"":e.currency[1]+"",d=void 0===e.decimal?".":e.decimal+"",h=void 0===e.numerals?c:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(p.call(e.numerals,String)),g=void 0===e.percent?"%":e.percent+"",m=void 0===e.minus?"-":e.minus+"",v=void 0===e.nan?"NaN":e.nan+"";function _(e){var t=(e=(0,i.Z)(e)).fill,n=e.align,o=e.sign,c=e.symbol,p=e.zero,_=e.width,y=e.comma,x=e.precision,b=e.trim,C=e.type;"n"===C?(y=!0,C="g"):l[C]||(void 0===x&&(x=12),b=!0,C="g"),(p||"0"===t&&"="===n)&&(p=!0,t="0",n="=");var E="$"===c?s:"#"===c&&/[boxX]/.test(C)?"0"+C.toLowerCase():"",S="$"===c?u:/[%p]/.test(C)?g:"",A=l[C],L=/[defgprs%]/.test(C);function k(e){var i,s,l,c=E,u=S;if("c"===C)u=A(e)+u,e="";else{var g=(e=+e)<0||1/e<0;if(e=isNaN(e)?v:A(Math.abs(e),x),b&&(e=function(e){e:for(var t,n=e.length,r=1,o=-1;r<n;++r)switch(e[r]){case".":o=t=r;break;case"0":0===o&&(o=r),t=r;break;default:if(!+e[r])break e;o>0&&(o=0)}return o>0?e.slice(0,o)+e.slice(t+1):e}(e)),g&&0==+e&&"+"!==o&&(g=!1),c=(g?"("===o?o:m:"-"===o||"("===o?"":o)+c,u=("s"===C?f[8+r/3]:"")+u+(g&&"("===o?")":""),L)for(i=-1,s=e.length;++i<s;)if(48>(l=e.charCodeAt(i))||l>57){u=(46===l?d+e.slice(i+1):e.slice(i))+u,e=e.slice(0,i);break}}y&&!p&&(e=a(e,1/0));var k=c.length+e.length+u.length,T=k<_?new Array(_-k+1).join(t):"";switch(y&&p&&(e=a(T+e,T.length?_-u.length:1/0),T=""),n){case"<":e=c+e+u+T;break;case"=":e=c+T+e+u;break;case"^":e=T.slice(0,k=T.length>>1)+c+e+u+T.slice(k);break;default:e=T+c+e+u}return h(e)}return x=void 0===x?6:/[gprs]/.test(C)?Math.max(1,Math.min(21,x)):Math.max(0,Math.min(20,x)),k.toString=function(){return e+""},k}return{format:_,formatPrefix:function(e,t){var n=_(((e=(0,i.Z)(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor((0,o.Z)(t)/3))),a=Math.pow(10,-r),s=f[8+r/3];return function(e){return n(a*e)+s}}}}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),d=u.format,h=u.formatPrefix},4783:function(e,t,n){n.d(t,{Z:function(){return o}});var r=n(3074);function o(e){return(e=(0,r.Z)(Math.abs(e)))?e[1]:NaN}},3074:function(e,t,n){function r(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)]}n.d(t,{Z:function(){return r}})},4116:function(e,t,n){n.d(t,{Z:function(){return o}});var r=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function o(e){if(!(t=r.exec(e)))throw new Error("invalid format: "+e);var t;return new i({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 i(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+""}o.prototype=i.prototype,i.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}},8485:function(e,t,n){n.d(t,{Eb:function(){return fe},B:function(){return te},Ys:function(){return de},td:function(){return ge}});var r="http://www.w3.org/1999/xhtml",o={svg:"http://www.w3.org/2000/svg",xhtml:r,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function i(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),o.hasOwnProperty(t)?{space:o[t],local:e}:e}function a(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===r&&t.documentElement.namespaceURI===r?t.createElement(e):t.createElementNS(n,e)}}function s(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function l(e){var t=i(e);return(t.local?s:a)(t)}function c(){}function u(e){return null==e?c:function(){return this.querySelector(e)}}function d(){return[]}var h=function(e){return function(){return this.matches(e)}};if("undefined"!=typeof document){var p=document.documentElement;if(!p.matches){var f=p.webkitMatchesSelector||p.msMatchesSelector||p.mozMatchesSelector||p.oMatchesSelector;h=function(e){return function(){return f.call(this,e)}}}}var g=h;function m(e){return new Array(e.length)}function v(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}v.prototype={constructor:v,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)}};function _(e,t,n,r,o,i){for(var a,s=0,l=t.length,c=i.length;s<c;++s)(a=t[s])?(a.__data__=i[s],r[s]=a):n[s]=new v(e,i[s]);for(;s<l;++s)(a=t[s])&&(o[s]=a)}function y(e,t,n,r,o,i,a){var s,l,c,u={},d=t.length,h=i.length,p=new Array(d);for(s=0;s<d;++s)(l=t[s])&&(p[s]=c="$"+a.call(l,l.__data__,s,t),c in u?o[s]=l:u[c]=l);for(s=0;s<h;++s)(l=u[c="$"+a.call(e,i[s],s,i)])?(r[s]=l,l.__data__=i[s],u[c]=null):n[s]=new v(e,i[s]);for(s=0;s<d;++s)(l=t[s])&&u[p[s]]===l&&(o[s]=l)}function x(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function b(e){return function(){this.removeAttribute(e)}}function C(e){return function(){this.removeAttributeNS(e.space,e.local)}}function E(e,t){return function(){this.setAttribute(e,t)}}function S(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function A(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function L(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 k(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function T(e){return function(){this.style.removeProperty(e)}}function w(e,t,n){return function(){this.style.setProperty(e,t,n)}}function D(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function M(e){return function(){delete this[e]}}function P(e,t){return function(){this[e]=t}}function F(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}function I(e){return e.trim().split(/^|\s+/)}function N(e){return e.classList||new V(e)}function V(e){this._node=e,this._names=I(e.getAttribute("class")||"")}function O(e,t){for(var n=N(e),r=-1,o=t.length;++r<o;)n.add(t[r])}function H(e,t){for(var n=N(e),r=-1,o=t.length;++r<o;)n.remove(t[r])}function B(e){return function(){O(this,e)}}function R(e){return function(){H(this,e)}}function z(e,t){return function(){(t.apply(this,arguments)?O:H)(this,e)}}function W(){this.textContent=""}function Y(e){return function(){this.textContent=e}}function Z(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}function q(){this.innerHTML=""}function X(e){return function(){this.innerHTML=e}}function U(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}function j(){this.nextSibling&&this.parentNode.appendChild(this)}function G(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function K(){return null}function $(){var e=this.parentNode;e&&e.removeChild(this)}function J(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}function Q(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}V.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 ee={},te=null;function ne(e,t,n){return e=re(e,t,n),function(t){var n=t.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||e.call(this,t)}}function re(e,t,n){return function(r){var o=te;te=r;try{e.call(this,this.__data__,t,n)}finally{te=o}}}function oe(e){return function(){var t=this.__on;if(t){for(var n,r=0,o=-1,i=t.length;r<i;++r)n=t[r],e.type&&n.type!==e.type||n.name!==e.name?t[++o]=n:this.removeEventListener(n.type,n.listener,n.capture);++o?t.length=o:delete this.__on}}}function ie(e,t,n){var r=ee.hasOwnProperty(e.type)?ne:re;return function(o,i,a){var s,l=this.__on,c=r(t,i,a);if(l)for(var u=0,d=l.length;u<d;++u)if((s=l[u]).type===e.type&&s.name===e.name)return this.removeEventListener(s.type,s.listener,s.capture),this.addEventListener(s.type,s.listener=c,s.capture=n),void(s.value=t);this.addEventListener(e.type,c,n),s={type:e.type,name:e.name,value:t,listener:c,capture:n},l?l.push(s):this.__on=[s]}}function ae(e,t,n){var r=k(e),o=r.CustomEvent;"function"==typeof o?o=new o(t,n):(o=r.document.createEvent("Event"),n?(o.initEvent(t,n.bubbles,n.cancelable),o.detail=n.detail):o.initEvent(t,!1,!1)),e.dispatchEvent(o)}function se(e,t){return function(){return ae(this,e,t)}}function le(e,t){return function(){return ae(this,e,t.apply(this,arguments))}}"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(ee={mouseenter:"mouseover",mouseleave:"mouseout"}));var ce=[null];function ue(e,t){this._groups=e,this._parents=t}function de(e){return"string"==typeof e?new ue([[document.querySelector(e)]],[document.documentElement]):new ue([[e]],ce)}ue.prototype=function(){return new ue([[document.documentElement]],ce)}.prototype={constructor:ue,select:function(e){"function"!=typeof e&&(e=u(e));for(var t=this._groups,n=t.length,r=new Array(n),o=0;o<n;++o)for(var i,a,s=t[o],l=s.length,c=r[o]=new Array(l),d=0;d<l;++d)(i=s[d])&&(a=e.call(i,i.__data__,d,s))&&("__data__"in i&&(a.__data__=i.__data__),c[d]=a);return new ue(r,this._parents)},selectAll:function(e){"function"!=typeof e&&(e=function(e){return null==e?d:function(){return this.querySelectorAll(e)}}(e));for(var t=this._groups,n=t.length,r=[],o=[],i=0;i<n;++i)for(var a,s=t[i],l=s.length,c=0;c<l;++c)(a=s[c])&&(r.push(e.call(a,a.__data__,c,s)),o.push(a));return new ue(r,o)},filter:function(e){"function"!=typeof e&&(e=g(e));for(var t=this._groups,n=t.length,r=new Array(n),o=0;o<n;++o)for(var i,a=t[o],s=a.length,l=r[o]=[],c=0;c<s;++c)(i=a[c])&&e.call(i,i.__data__,c,a)&&l.push(i);return new ue(r,this._parents)},data:function(e,t){if(!e)return f=new Array(this.size()),u=-1,this.each((function(e){f[++u]=e})),f;var n,r=t?y:_,o=this._parents,i=this._groups;"function"!=typeof e&&(n=e,e=function(){return n});for(var a=i.length,s=new Array(a),l=new Array(a),c=new Array(a),u=0;u<a;++u){var d=o[u],h=i[u],p=h.length,f=e.call(d,d&&d.__data__,u,o),g=f.length,m=l[u]=new Array(g),v=s[u]=new Array(g);r(d,h,m,v,c[u]=new Array(p),f,t);for(var x,b,C=0,E=0;C<g;++C)if(x=m[C]){for(C>=E&&(E=C+1);!(b=v[E])&&++E<g;);x._next=b||null}}return(s=new ue(s,o))._enter=l,s._exit=c,s},enter:function(){return new ue(this._enter||this._groups.map(m),this._parents)},exit:function(){return new ue(this._exit||this._groups.map(m),this._parents)},merge:function(e){for(var t=this._groups,n=e._groups,r=t.length,o=n.length,i=Math.min(r,o),a=new Array(r),s=0;s<i;++s)for(var l,c=t[s],u=n[s],d=c.length,h=a[s]=new Array(d),p=0;p<d;++p)(l=c[p]||u[p])&&(h[p]=l);for(;s<r;++s)a[s]=t[s];return new ue(a,this._parents)},order:function(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r,o=e[t],i=o.length-1,a=o[i];--i>=0;)(r=o[i])&&(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=x);for(var n=this._groups,r=n.length,o=new Array(r),i=0;i<r;++i){for(var a,s=n[i],l=s.length,c=o[i]=new Array(l),u=0;u<l;++u)(a=s[u])&&(c[u]=a);c.sort(t)}return new ue(o,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],o=0,i=r.length;o<i;++o){var a=r[o];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 o,i=t[n],a=0,s=i.length;a<s;++a)(o=i[a])&&e.call(o,o.__data__,a,i);return this},attr:function(e,t){var n=i(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?C:b:"function"==typeof t?n.local?L:A:n.local?S:E)(n,t))},style:function(e,t,n){return arguments.length>1?this.each((null==t?T:"function"==typeof t?D:w)(e,t,null==n?"":n)):function(e,t){return e.style.getPropertyValue(t)||k(e).getComputedStyle(e,null).getPropertyValue(t)}(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?M:"function"==typeof t?F:P)(e,t)):this.node()[e]},classed:function(e,t){var n=I(e+"");if(arguments.length<2){for(var r=N(this.node()),o=-1,i=n.length;++o<i;)if(!r.contains(n[o]))return!1;return!0}return this.each(("function"==typeof t?z:t?B:R)(n,t))},text:function(e){return arguments.length?this.each(null==e?W:("function"==typeof e?Z:Y)(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?q:("function"==typeof e?U:X)(e)):this.node().innerHTML},raise:function(){return this.each(j)},lower:function(){return this.each(G)},append:function(e){var t="function"==typeof e?e:l(e);return this.select((function(){return this.appendChild(t.apply(this,arguments))}))},insert:function(e,t){var n="function"==typeof e?e:l(e),r=null==t?K:"function"==typeof t?t:u(t);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each($)},clone:function(e){return this.select(e?Q:J)},datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},on:function(e,t,n){var r,o,i=function(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}}))}(e+""),a=i.length;if(!(arguments.length<2)){for(s=t?ie:oe,null==n&&(n=!1),r=0;r<a;++r)this.each(s(i[r],t,n));return this}var s=this.node().__on;if(s)for(var l,c=0,u=s.length;c<u;++c)for(r=0,l=s[c];r<a;++r)if((o=i[r]).type===l.type&&o.name===l.name)return l.value},dispatch:function(e,t){return this.each(("function"==typeof t?le:se)(e,t))}};var he=0;function pe(){this._="@"+(++he).toString(36)}function fe(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 o=e.getBoundingClientRect();return[t.clientX-o.left-e.clientLeft,t.clientY-o.top-e.clientTop]}function ge(e){return"string"==typeof e?new ue([document.querySelectorAll(e)],[document.documentElement]):new ue([null==e?[]:e],ce)}pe.prototype=function(){return new pe}.prototype={constructor:pe,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._}}},731:function(e,t,n){var r,o,i;n.d(t,{i$:function(){return o}}),i={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"]},r=(0,n(6465).Z)(i),o=r.format,r.parse,r.utcFormat,r.utcParse},6465:function(e,t,n){n.d(t,{Z:function(){return h}});var r=n(3787),o=n(2605),i=n(2167),a=n(3645),s=n(9507),l=n(2527);function c(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 u(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 d(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function h(e){var t=e.dateTime,n=e.date,s=e.time,l=e.periods,h=e.days,f=e.shortDays,g=e.months,m=e.shortMonths,v=y(l),_=x(l),J=y(h),_e=x(h),De=y(f),Me=x(f),Pe=y(g),Fe=x(g),Ie=y(m),Ne=x(m),Ve={a:function(e){return f[e.getDay()]},A:function(e){return h[e.getDay()]},b:function(e){return m[e.getMonth()]},B:function(e){return g[e.getMonth()]},c:null,d:z,e:z,f:X,g:re,G:ie,H:W,I:Y,j:Z,L:q,m:U,M:j,p:function(e){return l[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:Te,s:we,S:G,u:K,U:$,V:Q,w:ee,W:te,x:null,X:null,y:ne,Y:oe,Z:ae,"%":ke},Oe={a:function(e){return f[e.getUTCDay()]},A:function(e){return h[e.getUTCDay()]},b:function(e){return m[e.getUTCMonth()]},B:function(e){return g[e.getUTCMonth()]},c:null,d:se,e:se,f:he,g:Ee,G:Ae,H:le,I:ce,j:ue,L:de,m:pe,M:fe,p:function(e){return l[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:Te,s:we,S:ge,u:me,U:ve,V:ye,w:xe,W:be,x:null,X:null,y:Ce,Y:Se,Z:Le,"%":ke},He={a:function(e,t,n){var r=De.exec(t.slice(n));return r?(e.w=Me.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){var r=J.exec(t.slice(n));return r?(e.w=_e.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){var r=Ie.exec(t.slice(n));return r?(e.m=Ne.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){var r=Pe.exec(t.slice(n));return r?(e.m=Fe.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,n,r){return ze(e,t,n,r)},d:M,e:M,f:O,g:k,G:L,H:F,I:F,j:P,L:V,m:D,M:I,p:function(e,t,n){var r=v.exec(t.slice(n));return r?(e.p=_.get(r[0].toLowerCase()),n+r[0].length):-1},q:w,Q:B,s:R,S:N,u:C,U:E,V:S,w:b,W:A,x:function(e,t,r){return ze(e,n,t,r)},X:function(e,t,n){return ze(e,s,t,n)},y:k,Y:L,Z:T,"%":H};function Be(e,t){return function(n){var r,o,i,a=[],s=-1,l=0,c=e.length;for(n instanceof Date||(n=new Date(+n));++s<c;)37===e.charCodeAt(s)&&(a.push(e.slice(l,s)),null!=(o=p[r=e.charAt(++s)])?r=e.charAt(++s):o="e"===r?" ":"0",(i=t[r])&&(r=i(n,o)),a.push(r),l=s+1);return a.push(e.slice(l,s)),a.join("")}}function Re(e,t){return function(n){var s,l,h=d(1900,void 0,1);if(ze(h,e,n+="",0)!=n.length)return null;if("Q"in h)return new Date(h.Q);if("s"in h)return new Date(1e3*h.s+("L"in h?h.L:0));if(t&&!("Z"in h)&&(h.Z=0),"p"in h&&(h.H=h.H%12+12*h.p),void 0===h.m&&(h.m="q"in h?h.q:0),"V"in h){if(h.V<1||h.V>53)return null;"w"in h||(h.w=1),"Z"in h?(l=(s=u(d(h.y,0,1))).getUTCDay(),s=l>4||0===l?r.l6.ceil(s):(0,r.l6)(s),s=o.Z.offset(s,7*(h.V-1)),h.y=s.getUTCFullYear(),h.m=s.getUTCMonth(),h.d=s.getUTCDate()+(h.w+6)%7):(l=(s=c(d(h.y,0,1))).getDay(),s=l>4||0===l?i.wA.ceil(s):(0,i.wA)(s),s=a.Z.offset(s,7*(h.V-1)),h.y=s.getFullYear(),h.m=s.getMonth(),h.d=s.getDate()+(h.w+6)%7)}else("W"in h||"U"in h)&&("w"in h||(h.w="u"in h?h.u%7:"W"in h?1:0),l="Z"in h?u(d(h.y,0,1)).getUTCDay():c(d(h.y,0,1)).getDay(),h.m=0,h.d="W"in h?(h.w+6)%7+7*h.W-(l+5)%7:h.w+7*h.U-(l+6)%7);return"Z"in h?(h.H+=h.Z/100|0,h.M+=h.Z%100,u(h)):c(h)}}function ze(e,t,n,r){for(var o,i,a=0,s=t.length,l=n.length;a<s;){if(r>=l)return-1;if(37===(o=t.charCodeAt(a++))){if(o=t.charAt(a++),!(i=He[o in p?t.charAt(a++):o])||(r=i(e,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}return Ve.x=Be(n,Ve),Ve.X=Be(s,Ve),Ve.c=Be(t,Ve),Oe.x=Be(n,Oe),Oe.X=Be(s,Oe),Oe.c=Be(t,Oe),{format:function(e){var t=Be(e+="",Ve);return t.toString=function(){return e},t},parse:function(e){var t=Re(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=Be(e+="",Oe);return t.toString=function(){return e},t},utcParse:function(e){var t=Re(e+="",!0);return t.toString=function(){return e},t}}}var p={"-":"",_:" ",0:"0"},f=/^\s*\d+/,g=/^%/,m=/[\\^$*+?|[\]().{}]/g;function v(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",i=o.length;return r+(i<n?new Array(n-i+1).join(t)+o:o)}function _(e){return e.replace(m,"\\$&")}function y(e){return new RegExp("^(?:"+e.map(_).join("|")+")","i")}function x(e){return new Map(e.map(((e,t)=>[e.toLowerCase(),t])))}function b(e,t,n){var r=f.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function C(e,t,n){var r=f.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function E(e,t,n){var r=f.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function S(e,t,n){var r=f.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function A(e,t,n){var r=f.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function L(e,t,n){var r=f.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function k(e,t,n){var r=f.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function T(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 w(e,t,n){var r=f.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function D(e,t,n){var r=f.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function M(e,t,n){var r=f.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function P(e,t,n){var r=f.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function F(e,t,n){var r=f.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function I(e,t,n){var r=f.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function N(e,t,n){var r=f.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function V(e,t,n){var r=f.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function O(e,t,n){var r=f.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function H(e,t,n){var r=g.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function B(e,t,n){var r=f.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function R(e,t,n){var r=f.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function z(e,t){return v(e.getDate(),t,2)}function W(e,t){return v(e.getHours(),t,2)}function Y(e,t){return v(e.getHours()%12||12,t,2)}function Z(e,t){return v(1+a.Z.count((0,s.Z)(e),e),t,3)}function q(e,t){return v(e.getMilliseconds(),t,3)}function X(e,t){return q(e,t)+"000"}function U(e,t){return v(e.getMonth()+1,t,2)}function j(e,t){return v(e.getMinutes(),t,2)}function G(e,t){return v(e.getSeconds(),t,2)}function K(e){var t=e.getDay();return 0===t?7:t}function $(e,t){return v(i.OM.count((0,s.Z)(e)-1,e),t,2)}function J(e){var t=e.getDay();return t>=4||0===t?(0,i.bL)(e):i.bL.ceil(e)}function Q(e,t){return e=J(e),v(i.bL.count((0,s.Z)(e),e)+(4===(0,s.Z)(e).getDay()),t,2)}function ee(e){return e.getDay()}function te(e,t){return v(i.wA.count((0,s.Z)(e)-1,e),t,2)}function ne(e,t){return v(e.getFullYear()%100,t,2)}function re(e,t){return v((e=J(e)).getFullYear()%100,t,2)}function oe(e,t){return v(e.getFullYear()%1e4,t,4)}function ie(e,t){var n=e.getDay();return v((e=n>=4||0===n?(0,i.bL)(e):i.bL.ceil(e)).getFullYear()%1e4,t,4)}function ae(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+v(t/60|0,"0",2)+v(t%60,"0",2)}function se(e,t){return v(e.getUTCDate(),t,2)}function le(e,t){return v(e.getUTCHours(),t,2)}function ce(e,t){return v(e.getUTCHours()%12||12,t,2)}function ue(e,t){return v(1+o.Z.count((0,l.Z)(e),e),t,3)}function de(e,t){return v(e.getUTCMilliseconds(),t,3)}function he(e,t){return de(e,t)+"000"}function pe(e,t){return v(e.getUTCMonth()+1,t,2)}function fe(e,t){return v(e.getUTCMinutes(),t,2)}function ge(e,t){return v(e.getUTCSeconds(),t,2)}function me(e){var t=e.getUTCDay();return 0===t?7:t}function ve(e,t){return v(r.Ox.count((0,l.Z)(e)-1,e),t,2)}function _e(e){var t=e.getUTCDay();return t>=4||0===t?(0,r.hB)(e):r.hB.ceil(e)}function ye(e,t){return e=_e(e),v(r.hB.count((0,l.Z)(e),e)+(4===(0,l.Z)(e).getUTCDay()),t,2)}function xe(e){return e.getUTCDay()}function be(e,t){return v(r.l6.count((0,l.Z)(e)-1,e),t,2)}function Ce(e,t){return v(e.getUTCFullYear()%100,t,2)}function Ee(e,t){return v((e=_e(e)).getUTCFullYear()%100,t,2)}function Se(e,t){return v(e.getUTCFullYear()%1e4,t,4)}function Ae(e,t){var n=e.getUTCDay();return v((e=n>=4||0===n?(0,r.hB)(e):r.hB.ceil(e)).getUTCFullYear()%1e4,t,4)}function Le(){return"+0000"}function ke(){return"%"}function Te(e){return+e}function we(e){return Math.floor(+e/1e3)}},3645:function(e,t,n){var r=n(4315),o=n(4827),i=(0,r.Z)((e=>e.setHours(0,0,0,0)),((e,t)=>e.setDate(e.getDate()+t)),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*o.yB)/o.UD),(e=>e.getDate()-1));t.Z=i,i.range},4827:function(e,t,n){n.d(t,{UD:function(){return a},Y2:function(){return i},Ym:function(){return r},iM:function(){return s},jz:function(){return l},qz:function(){return c},yB:function(){return o}});const r=1e3,o=60*r,i=60*o,a=24*i,s=7*a,l=30*a,c=365*a},5401:function(e,t,n){var r=n(4315),o=n(4827),i=(0,r.Z)((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*o.Ym-e.getMinutes()*o.yB)}),(function(e,t){e.setTime(+e+t*o.Y2)}),(function(e,t){return(t-e)/o.Y2}),(function(e){return e.getHours()}));t.Z=i,i.range},4315:function(e,t,n){n.d(t,{Z:function(){return i}});var r=new Date,o=new Date;function i(e,t,n,a){function s(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return s.floor=function(t){return e(t=new Date(+t)),t},s.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},s.round=function(e){var t=s(e),n=s.ceil(e);return e-t<n-e?t:n},s.offset=function(e,n){return t(e=new Date(+e),null==n?1:Math.floor(n)),e},s.range=function(n,r,o){var i,a=[];if(n=s.ceil(n),o=null==o?1:Math.floor(o),!(n<r&&o>0))return a;do{a.push(i=new Date(+n)),t(n,o),e(n)}while(i<n&&n<r);return a},s.filter=function(n){return i((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&&(s.count=function(t,i){return r.setTime(+t),o.setTime(+i),e(r),e(o),Math.floor(n(r,o))},s.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?s.filter(a?function(t){return a(t)%e==0}:function(t){return s.count(0,t)%e==0}):s:null}),s}},4189:function(e,t,n){var r=n(4315),o=n(4827),i=(0,r.Z)((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*o.Ym)}),(function(e,t){e.setTime(+e+t*o.yB)}),(function(e,t){return(t-e)/o.yB}),(function(e){return e.getMinutes()}));t.Z=i,i.range},9604:function(e,t,n){var r=(0,n(4315).Z)((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()}));t.Z=r,r.range},87:function(e,t,n){var r=n(4315),o=n(4827),i=(0,r.Z)((function(e){e.setTime(e-e.getMilliseconds())}),(function(e,t){e.setTime(+e+t*o.Ym)}),(function(e,t){return(t-e)/o.Ym}),(function(e){return e.getUTCSeconds()}));t.Z=i,i.range},2605:function(e,t,n){var r=n(4315),o=n(4827),i=(0,r.Z)((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/o.UD}),(function(e){return e.getUTCDate()-1}));t.Z=i,i.range},3787:function(e,t,n){n.d(t,{Ox:function(){return a},hB:function(){return u},l6:function(){return s}});var r=n(4315),o=n(4827);function i(e){return(0,r.Z)((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)/o.iM}))}var a=i(0),s=i(1),l=i(2),c=i(3),u=i(4),d=i(5),h=i(6);a.range,s.range,l.range,c.range,u.range,d.range,h.range},2527:function(e,t,n){var r=n(4315),o=(0,r.Z)((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()}));o.every=function(e){return isFinite(e=Math.floor(e))&&e>0?(0,r.Z)((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},t.Z=o,o.range},2167:function(e,t,n){n.d(t,{OM:function(){return a},bL:function(){return u},wA:function(){return s}});var r=n(4315),o=n(4827);function i(e){return(0,r.Z)((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())*o.yB)/o.iM}))}var a=i(0),s=i(1),l=i(2),c=i(3),u=i(4),d=i(5),h=i(6);a.range,s.range,l.range,c.range,u.range,d.range,h.range},9507:function(e,t,n){var r=n(4315),o=(0,r.Z)((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()}));o.every=function(e){return isFinite(e=Math.floor(e))&&e>0?(0,r.Z)((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},t.Z=o,o.range},9939:function(e,t,n){n.d(t,{ZT:function(){return o},_T:function(){return a},ev:function(){return s},pi:function(){return i}});var r=function(e,t){return r=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])},r(e,t)};function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};function a(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 o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function s(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}Object.create,Object.create},4473:function(e,t,n){function r(e){i!==e&&(i=e)}function o(){return void 0===i&&(i="undefined"!=typeof document&&!!document.documentElement&&"rtl"===document.documentElement.getAttribute("dir")),i}var i;function a(){return{rtl:o()}}n.d(t,{Eo:function(){return a},ok:function(){return r}}),i=o()},5499:function(e,t,n){n.d(t,{Y:function(){return l}});var r,o=n(9939),i="__stylesheet__",a="undefined"!=typeof navigator&&/rv:11.0/.test(navigator.userAgent),s={};try{s=window||{}}catch(e){}var l=function(){function e(e,t){var n,r,i,a,s,l;this._rules=[],this._preservedRules=[],this._counter=0,this._keyToClassName={},this._onInsertRuleCallbacks=[],this._onResetCallbacks=[],this._classNameToArgs={},this._config=(0,o.pi)({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!==(i=this._config.classNameCache)&&void 0!==i?i: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(!(r=s[i])||r._lastStyleElement&&r._lastStyleElement.ownerDocument!==document){var t=(null==s?void 0:s.FabricConfig)||{},n=new e(t.mergeStyles,t.serializedStylesheet);r=n,s[i]=n}return r},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=(0,o.pi)((0,o.pi)({},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,n=e||this._config.defaultPrefix;return"".concat(t?t+"-":"").concat(n,"-").concat(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 o=r.sheet;try{o.insertRule(e,o.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(),a||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 o=this._findPlaceholderStyleTag();n=o?o.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}()},4270:function(e,t,n){n.d(t,{m:function(){return o}});var r=n(9939);function o(){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={},i={},a=0,s=e;a<s.length;a++){var l=s[a];if(l)for(var c in l)if(l.hasOwnProperty(c)){if("subComponentStyles"===c&&void 0!==l.subComponentStyles){var u=l.subComponentStyles;for(var d in u)u.hasOwnProperty(d)&&(i.hasOwnProperty(d)?i[d].push(u[d]):i[d]=[u[d]]);continue}var h=n[c],p=l[c];n[c]=void 0===h?p:(0,r.ev)((0,r.ev)([],Array.isArray(h)?h:[h],!0),Array.isArray(p)?p:[p],!0)}}if(Object.keys(i).length>0){n.subComponentStyles={};var f=n.subComponentStyles,g=function(e){if(i.hasOwnProperty(e)){var t=i[e];f[e]=function(e){return o.apply(void 0,t.map((function(t){return"function"==typeof t?t(e):t})))}}};for(var d in i)g(d)}return n}},3802:function(e,t,n){n.d(t,{U:function(){return o}});var r=n(5499);function o(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=[],o=[],i=r.Y.getInstance();return function e(t){for(var r=0,a=t;r<a.length;r++){var s=a[r];if(s)if("string"==typeof s)if(s.indexOf(" ")>=0)e(s.split(" "));else{var l=i.argsFromClassName(s);l?e(l):-1===n.indexOf(s)&&n.push(s)}else Array.isArray(s)?e(s):"object"==typeof s&&o.push(s)}}(e),{classes:n,objects:o}}},13:function(e,t,n){n.d(t,{y:function(){return a}});var r=n(3802),o=n(4473),i=n(7373);function a(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(e,t){var n=e instanceof Array?e:[e],o=(0,r.U)(n),a=o.classes,s=o.objects;return s.length&&a.push((0,i.AE)(t||{},s)),a.join(" ")}(e,(0,o.Eo)())}},7373:function(e,t,n){n.d(t,{Jh:function(){return k},dH:function(){return A},AE:function(){return T},aj:function(){return L}});var r,o=n(9939),i=n(5499),a={},s={"user-select":1};function l(e,t){var n=function(){var e;if(!r){var t="undefined"!=typeof document?document:void 0,n="undefined"!=typeof navigator?navigator:void 0,o=null===(e=null==n?void 0:n.userAgent)||void 0===e?void 0:e.toLowerCase();r=t?{isWebkit:!(!t||!("WebkitAppearance"in t.documentElement.style)),isMoz:!!(o&&o.indexOf("firefox")>-1),isOpera:!!(o&&o.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 r}(),o=e[t];if(s[o]){var i=e[t+1];s[o]&&(n.isWebkit&&e.push("-webkit-"+o,i),n.isMoz&&e.push("-moz-"+o,i),n.isMs&&e.push("-ms-"+o,i),n.isOpera&&e.push("-o-"+o,i))}}var c,u=["column-count","font-weight","flex","flex-grow","flex-shrink","fill-opacity","opacity","order","z-index","zoom"];function d(e,t){var n=e[t],r=e[t+1];if("number"==typeof r){var o=u.indexOf(n)>-1,i=n.indexOf("--")>-1,a=o||i?"":"px";e[t+1]="".concat(r).concat(a)}}var h="left",p="right",f="@noflip",g=((c={})[h]=p,c[p]=h,c),m={"w-resize":"e-resize","sw-resize":"se-resize","nw-resize":"ne-resize"};function v(e,t,n){if(e.rtl){var r=t[n];if(!r)return;var o=t[n+1];if("string"==typeof o&&o.indexOf(f)>=0)t[n+1]=o.replace(/\s*(?:\/\*\s*)?\@noflip\b(?:\s*\*\/)?\s*?/g,"");else if(r.indexOf(h)>=0)t[n]=r.replace(h,p);else if(r.indexOf(p)>=0)t[n]=r.replace(p,h);else if(String(o).indexOf(h)>=0)t[n+1]=o.replace(h,p);else if(String(o).indexOf(p)>=0)t[n+1]=o.replace(p,h);else if(g[r])t[n]=g[r];else if(m[o])t[n+1]=m[o];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"".concat(t[0]," ").concat(t[3]," ").concat(t[2]," ").concat(t[1])}return e}(o);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(" ")}(o)}}}var _="displayName",y=/\:global\((.+?)\)/g;function x(e,t){return e.indexOf(":global(")>=0?e.replace(y,"$1"):0===e.indexOf(":")?t+e:e.indexOf("&")<0?t+" "+e:e}function b(e,t,n,r){void 0===t&&(t={__order:[]}),0===n.indexOf("@")?C([r],t,n=n+"{"+e):n.indexOf(",")>-1?function(e){if(!y.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(".concat(e.trim(),")")})).join(", ")]);return t.reverse().reduce((function(e,t){var n=t[0],r=t[1],o=t[2];return e.slice(0,n)+o+e.slice(r)}),e)}(n).split(",").map((function(e){return e.trim()})).forEach((function(n){return C([r],t,x(n,e))})):C([r],t,x(n,e))}function C(e,t,n){void 0===t&&(t={__order:[]}),void 0===n&&(n="&");var r=i.Y.getInstance(),o=t[n];o||(o={},t[n]=o,t.__order.push(n));for(var a=0,s=e;a<s.length;a++){var l=s[a];if("string"==typeof l){var c=r.argsFromClassName(l);c&&C(c,t,n)}else if(Array.isArray(l))C(l,t,n);else for(var u in l)if(l.hasOwnProperty(u)){var d=l[u];if("selectors"===u){var h=l.selectors;for(var p in h)h.hasOwnProperty(p)&&b(n,t,p,h[p])}else"object"==typeof d?null!==d&&b(n,t,u,d):void 0!==d&&("margin"===u||"padding"===u?E(o,u,d):o[u]=d)}}return t}function E(e,t,n){var r="string"==typeof n?function(e){for(var t=[],n=0,r=0,o=0;o<e.length;o++)switch(e[o]){case"(":r++;break;case")":r&&r--;break;case"\t":case" ":r||(o>n&&t.push(e.substring(n,o)),n=o+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 S(e,t){return t<=0?"":1===t?e:e+S(e,t-1)}function A(e,t){if(!t)return"";var n,r,o,i=[];for(var s in t)t.hasOwnProperty(s)&&s!==_&&void 0!==t[s]&&i.push(s,t[s]);for(var c=0;c<i.length;c+=2)o=void 0,"-"!==(o=(n=i)[r=c]).charAt(0)&&(n[r]=a[o]=a[o]||o.replace(/([A-Z])/g,"-$1").toLowerCase()),d(i,c),v(e,i,c),l(i,c);for(c=1;c<i.length;c+=4)i.splice(c,1,":",i[c],";");return i.join("")}function L(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=C(t),o=function(e,t){for(var n=[e.rtl?"rtl":"ltr"],r=!1,o=0,i=t.__order;o<i.length;o++){var a=i[o];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}(e,r);if(o){var a=i.Y.getInstance(),s={className:a.classNameFromKey(o),key:o,args:t};if(!s.className){s.className=a.getClassName(function(e){var t=e&&e["&"];return t?t.displayName:void 0}(r));for(var l=[],c=0,u=r.__order;c<u.length;c++){var d=u[c];l.push(d,A(e,r[d]))}s.rulesToInsert=l}return s}}function k(e,t){void 0===t&&(t=1);var n=i.Y.getInstance(),r=e.className,o=e.key,a=e.args,s=e.rulesToInsert;if(s){for(var l=0;l<s.length;l+=2){var c=s[l+1];if(c){var u=s[l];u=u.replace(/&/g,S(".".concat(e.className),t));var d="".concat(u,"{").concat(c,"}").concat(0===u.indexOf("@")?"}":"");n.insertRule(d)}}n.cacheClassName(r,o,a,s)}}function T(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=L.apply(void 0,(0,o.ev)([e],t,!1));return r?(k(r,e.specificityMultiplier),r.className):""}},8024:function(e,t,n){n.r(t),n.d(t,{ChartHoverCard:function(){return d}});var r=n(9085),o=n(9939),i=n(7363),a=n(8461),s=n(3813),l=(0,a.y)(),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,o.ZT)(t,e),t.prototype.render=function(){var e=this.props,t=e.color,n=e.Legend,r=e.XValue,o=e.YValue,a=e.styles,c=e.theme,u=e.ratio,d=e.descriptionMessage,h=e.culture;return this._classNames=l(a,{theme:c,color:t,XValue:r,isRatioPresent:!!u}),i.createElement("div",{className:this._classNames.calloutContentRoot},i.createElement("div",{className:this._classNames.calloutDateTimeContainer},i.createElement("div",{className:this._classNames.calloutContentX},r," ")),i.createElement("div",{className:this._classNames.calloutInfoContainer},i.createElement("div",{className:this._classNames.calloutBlockContainer},i.createElement("div",{className:this._classNames.calloutlegendText},(0,s.Ts)(n,h)),i.createElement("div",{className:this._classNames.calloutContentY},(0,s.Ts)(o,h))),!!u&&i.createElement("div",{className:this._classNames.ratio},i.createElement(i.Fragment,null,i.createElement("span",{className:this._classNames.numerator},(0,s.Ts)(u[0],h)),"/",i.createElement("span",{className:this._classNames.denominator},(0,s.Ts)(u[1],h))))),!!d&&i.createElement("div",{className:this._classNames.descriptionMessage},d))},t}(i.Component),u=n(1286),d=(0,r.z)(c,u.n)},1286:function(e,t,n){n.d(t,{n:function(){return o}});var r=n(1786),o=function(e){var t=e.color,n=e.XValue,o=e.theme,i=e.isRatioPresent,a=void 0!==i&&i;return{calloutContentRoot:[{display:"grid",overflow:"hidden",padding:"11px 16px 10px 16px",backgroundColor:o.semanticColors.bodyBackground,backgroundBlendMode:"normal, luminosity"}],calloutDateTimeContainer:{display:"flex",flexDirection:"row",justifyContent:"space-between"},calloutContentX:[o.fonts.small,{lineHeight:"16px",opacity:"0.8",color:o.semanticColors.bodySubtext}],calloutBlockContainer:[o.fonts.xxLarge,{marginTop:n?"13px":"unset",paddingLeft:"8px",lineHeight:"22px",color:o.semanticColors.bodyText,borderLeft:"4px solid ".concat(t)}],calloutlegendText:[o.fonts.small,{lineHeight:"16px",color:o.semanticColors.bodyText}],calloutContentY:[o.fonts.xxLarge,{color:t||o.semanticColors.bodyText,fontWeight:"bold",lineHeight:"36px"}],calloutInfoContainer:[a&&{display:"flex",alignItems:"flex-end"}],ratio:[o.fonts.small,{marginLeft:"6px",color:o.semanticColors.bodyText}],numerator:{fontWeight:r.lq.bold},denominator:{fontWeight:r.lq.semibold},descriptionMessage:[o.fonts.small,{color:o.semanticColors.bodyText,marginTop:"10px",paddingTop:"10px",borderTop:"1px solid ".concat(o.semanticColors.menuDivider)}]}}},3813:function(e,t,n){n.d(t,{$X:function(){return b},jc:function(){return oe},wo:function(){return re},xl:function(){return C},OH:function(){return E},yE:function(){return J},Wx:function(){return j},Ts:function(){return le},s8:function(){return W},OX:function(){return R},R:function(){return Y},Tj:function(){return q},Pu:function(){return G},eQ:function(){return Z},Ay:function(){return K},cE:function(){return de},ey:function(){return se},dr:function(){return te},As:function(){return ne},SY:function(){return ie},V4:function(){return ee},Ml:function(){return ae},zs:function(){return ce},$V:function(){return Q},nX:function(){return $},yQ:function(){return ue}});var r=n(9939),o=Array.prototype.slice;function i(e){return e}var a=1,s=2,l=3,c=4,u=1e-6;function d(e){return"translate("+(e+.5)+",0)"}function h(e){return"translate(0,"+(e+.5)+")"}function p(e){return function(t){return+e(t)}}function f(e){var t=Math.max(0,e.bandwidth()-1)/2;return e.round()&&(t=Math.round(t)),function(n){return+e(n)+t}}function g(){return!this.__axis}function m(e,t){var n=[],r=null,m=null,v=6,_=6,y=3,x=e===a||e===c?-1:1,b=e===c||e===s?"x":"y",C=e===a||e===l?d:h;function E(o){var d=null==r?t.ticks?t.ticks.apply(t,n):t.domain():r,h=null==m?t.tickFormat?t.tickFormat.apply(t,n):i:m,E=Math.max(v,0)+y,S=t.range(),A=+S[0]+.5,L=+S[S.length-1]+.5,k=(t.bandwidth?f:p)(t.copy()),T=o.selection?o.selection():o,w=T.selectAll(".domain").data([null]),D=T.selectAll(".tick").data(d,t).order(),M=D.exit(),P=D.enter().append("g").attr("class","tick"),F=D.select("line"),I=D.select("text");w=w.merge(w.enter().insert("path",".tick").attr("class","domain").attr("stroke","#000")),D=D.merge(P),F=F.merge(P.append("line").attr("stroke","#000").attr(b+"2",x*v)),I=I.merge(P.append("text").attr("fill","#000").attr(b,x*E).attr("dy",e===a?"0em":e===l?"0.71em":"0.32em")),o!==T&&(w=w.transition(o),D=D.transition(o),F=F.transition(o),I=I.transition(o),M=M.transition(o).attr("opacity",u).attr("transform",(function(e){return isFinite(e=k(e))?C(e):this.getAttribute("transform")})),P.attr("opacity",u).attr("transform",(function(e){var t=this.parentNode.__axis;return C(t&&isFinite(t=t(e))?t:k(e))}))),M.remove(),w.attr("d",e===c||e==s?"M"+x*_+","+A+"H0.5V"+L+"H"+x*_:"M"+A+","+x*_+"V0.5H"+L+"V"+x*_),D.attr("opacity",1).attr("transform",(function(e){return C(k(e))})),F.attr(b+"2",x*v),I.attr(b,x*E).text(h),T.filter(g).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",e===s?"start":e===c?"end":"middle"),T.each((function(){this.__axis=k}))}return E.scale=function(e){return arguments.length?(t=e,E):t},E.ticks=function(){return n=o.call(arguments),E},E.tickArguments=function(e){return arguments.length?(n=null==e?[]:o.call(e),E):n.slice()},E.tickValues=function(e){return arguments.length?(r=null==e?null:o.call(e),E):r&&r.slice()},E.tickFormat=function(e){return arguments.length?(m=e,E):m},E.tickSize=function(e){return arguments.length?(v=_=+e,E):v},E.tickSizeInner=function(e){return arguments.length?(v=+e,E):v},E.tickSizeOuter=function(e){return arguments.length?(_=+e,E):_},E.tickPadding=function(e){return arguments.length?(y=+e,E):y},E}function v(e){return m(s,e)}function _(e){return m(l,e)}function y(e){return m(c,e)}var x,b,C,E,S=n(5561),A=n(8957),L=n(8815),k=n(8639),T=n(6775),w=n(8485),D=n(1783),M=n(731),P=n(6465),F=n(87),I=n(4189),N=n(5401),V=n(3645),O=n(9604),H=n(2167),B=n(9507);function R(e,t,n){var r=e.domainNRangeValues,o=e.showRoundOffXTickValues,i=void 0!==o&&o,a=e.xAxistickSize,s=void 0===a?6:a,l=e.tickPadding,c=void 0===l?10:l,u=e.xAxisCount,d=void 0===u?6:u,h=e.xAxisElement,p=(0,L.Z)().domain([r.dStartValue,r.dEndValue]).range([r.rStartValue,r.rEndValue]);i&&p.nice();var f=_(p).tickSize(s).tickPadding(c).ticks(d).tickFormat((function(e,t){var r="number"==typeof e?e:e.valueOf();return le(r,n)}));t===b.HorizontalBarChartWithAxis&&f.tickSizeInner(-(e.containerHeight-e.margins.top)),h&&(0,w.Ys)(h).call(f).selectAll("text").attr("aria-hidden","true");var g=p.ticks(d).map(f.tickFormat());return{xScale:p,tickValues:g}}function z(e,t){var n=t?t.format:M.i$,r=n(".%L"),o=n(":%S"),i=n("%I:%M"),a=n("%I %p"),s=n("%a %d"),l=n("%b %d"),c=n("%B"),u=n("%Y");return((0,F.Z)(e)<e?r:(0,I.Z)(e)<e?o:(0,N.Z)(e)<e?i:(0,V.Z)(e)<e?a:(0,O.Z)(e)<e?(0,H.OM)(e)<e?s:l:(0,B.Z)(e)<e?c:u)(e)}function W(e,t,n,r,o,i){var a,s=e.domainNRangeValues,l=e.xAxisElement,c=e.tickPadding,u=void 0===c?6:c,d=e.xAxistickSize,h=void 0===d?6:d,p=e.xAxisCount,f=void 0===p?6:p,g=(0,k.Z)().domain([s.dStartValue,s.dEndValue]).range([s.rStartValue,s.rEndValue]),m=_(g).tickSize(h).tickPadding(u).ticks(f);if(i)m.tickFormat((function(e,t){return i(e)}));else if(n&&r)m.tickFormat((function(e,t){return e.toLocaleString(n,r)}));else if(o){var v=(0,P.Z)(o);m.tickFormat((function(e,t){return z(e,v)}))}t.tickValues&&m.tickValues(t.tickValues),void 0===n&&t.tickFormat&&m.tickFormat((0,M.i$)(t.tickFormat)),l&&(0,w.Ys)(l).call(m).selectAll("text").attr("aria-hidden","true");var y=(null!==(a=t.tickValues)&&void 0!==a?a:g.ticks(f)).map((function(e,t){var n=m.tickFormat();return n?n(e,t):z(e)}));return{xScale:g,tickValues:y}}function Y(e,t,n,r){var o=e.domainNRangeValues,i=e.xAxisCount,a=void 0===i?6:i,s=e.xAxistickSize,l=void 0===s?6:s,c=e.tickPadding,u=void 0===c?10:c,d=e.xAxisPadding,h=void 0===d?.1:d,p=e.xAxisInnerPadding,f=e.xAxisOuterPadding,g=(0,T.Z)().domain(n).range([o.rStartValue,o.rEndValue]).paddingInner(void 0!==p?p:h).paddingOuter(void 0!==f?f:h),m=_(g).tickSize(l).tickPadding(u).ticks(a).tickFormat((function(e,t){return le(n[t],r)}));return e.xAxisElement&&(0,w.Ys)(e.xAxisElement).call(m).selectAll("text").attr("aria-hidden","true"),{xScale:g,tickValues:n.map(m.tickFormat())}}function Z(e,t,n,r,o,i,a){return void 0===a&&(a=!1),r===b.HorizontalBarChartWithAxis?function(e,t,n,r){var o=e.yMinMaxValues,i=void 0===o?{startValue:0,endValue:0}:o,a=e.yAxisElement,s=void 0===a?null:a,l=e.yMaxValue,c=void 0===l?0:l,u=e.yMinValue,d=void 0===u?0:u,h=e.containerHeight,p=e.margins,f=e.tickPadding,g=void 0===f?12:f,m=e.maxOfYVal,_=void 0===m?0:m,x=e.yAxisTickFormat,b=e.yAxisTickCount,C=void 0===b?4:b,E=_||i.endValue,S=E>c?E:c,A=i.startValue<d?0:d,k=(0,L.Z)().domain([A,S]).range([h-p.bottom,p.top]),T=(t?v(k):y(k)).tickPadding(g).ticks(C);return x?T.tickFormat(x):T.tickFormat((0,D.WU)(".2~s")),s&&(0,w.Ys)(s).call(T).selectAll("text").attr("aria-hidden","true"),k}(e,t):function(e,t,n,r,o){void 0===o&&(o=!1);var i=e.yMinMaxValues,a=void 0===i?{startValue:0,endValue:0}:i,s=e.yAxisElement,l=void 0===s?null:s,c=e.yMaxValue,u=void 0===c?0:c,d=e.yMinValue,h=void 0===d?0:d,p=e.containerHeight,f=e.containerWidth,g=e.margins,m=e.tickPadding,_=void 0===m?12:m,x=e.maxOfYVal,b=void 0===x?0:x,C=e.yAxisTickFormat,E=e.yAxisTickCount,S=void 0===E?4:E,A=e.eventAnnotationProps,k=e.eventLabelHeight,T=b||a.endValue,M=T>u?T:u,P=a.startValue<h?0:h,F=function(e,t,n,r){for(var o=r||(e-t)/n>=1?Math.ceil((e-t)/n):(e-t)/n,i=[t,t+o];i[i.length-1]<e;)i.push(i[i.length-1]+o);return i}(M,P,S,r),I=(0,L.Z)().domain([P,F[F.length-1]]).range([p-g.bottom,g.top+(A?k:0)]),N=(!t&&o||t&&!o?v(I):y(I)).tickPadding(_).tickValues(F).tickSizeInner(-(f-g.left-g.right));return C?N.tickFormat(C):N.tickFormat((0,D.WU)(".2~s")),l&&(0,w.Ys)(l).call(N).selectAll("text").attr("aria-hidden","true"),n.yAxisDomainValues=F,I}(e,t,n,i,a)}!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",e[e.HorizontalBarChartWithAxis=6]="HorizontalBarChartWithAxis"}(b||(b={})),function(e){e[e.NumericAxis=0]="NumericAxis",e[e.DateAxis=1]="DateAxis",e[e.StringAxis=2]="StringAxis"}(C||(C={})),function(e){e[e.NumericAxis=0]="NumericAxis",e[e.DateAxis=1]="DateAxis",e[e.StringAxis=2]="StringAxis"}(E||(E={}));var q=function(e,t,n,r,o,i){return r===b.HorizontalBarChartWithAxis?X(e,t,n,o,i):U(e,t,n)},X=function(e,t,n,r,o){var i=e.containerHeight,a=e.tickPadding,s=void 0===a?12:a,l=e.margins,c=e.yAxisTickFormat,u=e.yAxisElement,d=(0,T.Z)().domain(t).range([i-l.bottom-r/2,l.top+r/2]),h=(n?v(d):y(d)).tickPadding(s).ticks(t);return c&&h.tickFormat(c),u&&(0,w.Ys)(u).call(h).selectAll("text"),d},U=function(e,t,n){var r=e.containerHeight,o=e.tickPadding,i=void 0===o?12:o,a=e.margins,s=e.yAxisTickFormat,l=e.yAxisElement,c=e.yAxisPadding,u=void 0===c?0:c,d=(0,T.Z)().domain(t).range([r-a.bottom,a.top]).padding(u),h=(n?v(d):y(d)).tickPadding(i).tickValues(t).tickSize(0);return s&&h.tickFormat(s),l&&(0,w.Ys)(l).call(h).selectAll("text"),d};function j(e){var t=[];e.forEach((function(e){var n=e.data.filter((function(e){return!e.hideCallout})).map((function(t){return(0,r.pi)((0,r.pi)({},t),{legend:e.legend,color:e.color,index:e.index})}));t=t.concat(n)}));var n={};return t.forEach((function(e){var t=e.x instanceof Date?e.x.getTime():e.x;t in n?n[t].push({legend:e.legend,y:e.y,color:e.color,xAxisCalloutData:e.xAxisCalloutData,yAxisCalloutData:e.yAxisCalloutData,callOutAccessibilityData:e.callOutAccessibilityData,index:e.index}):n[t]=[{legend:e.legend,y:e.y,color:e.color,xAxisCalloutData:e.xAxisCalloutData,yAxisCalloutData:e.yAxisCalloutData,callOutAccessibilityData:e.callOutAccessibilityData,index:e.index}]})),Object.keys(n).map((function(e){return{x:Number(e),values:n[e]}}))}function G(e){var t=e.node,n=e.xAxis,r=e.noOfCharsToTruncate,o=e.showXAxisLablesTooltip;if(null!==t){var i=(0,w.Ys)(t).call(n),a=0,s=[];return i.selectAll(".tick text").each((function(){var e=(0,w.Ys)(this),t=e.text(),n="".concat(e.text().slice(0,r),"..."),l=e.text().length,c=e.text().split(/\s+/).reverse();s.push(c.length);var u="",d=[],h=0,p=e.attr("y"),f=parseFloat(e.attr("dy")),g=e.text(null).append("tspan").attr("x",0).attr("y",p).attr("id","BaseSpan").attr("dy",f+"em").attr("data-",t);if(o&&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(o&&l<=r)g=e.append("tspan").attr("id","LessLength").attr("x",0).attr("y",p).attr("dy",1.1*++h+f+"em").text(t);else{for(;u=c.pop();)d.push(u),g.text(d.join(" ")),g.node().getComputedTextLength()>10&&d.length>1&&(d.pop(),g.text(d.join(" ")),d=[u],g=e.append("tspan").attr("id","WordBreakId").attr("x",0).attr("y",p).attr("dy",1.1*++h+f+"em").text(u));var m=Math.max.apply(Math,s),v=12;i.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}}function K(e,t,n,r,o,i){null!==e&&(0,w.Ys)(e).call(t).selectAll(".tick text").each((function(){var e=(0,w.Ys)(this),t=e.text(),o=i?"...".concat(e.text().slice(0,n)):"".concat(e.text().slice(0,n),"..."),a=e.text().length,s=r?1.5:1,l=e.attr("y"),c=e.attr("x"),u=parseFloat(e.attr("dy"));e.text(null).append("tspan").attr("x",c).attr("y",l).attr("id","BaseSpan").attr("dy",u+"em").attr("data-",t),r&&a>n?e.append("tspan").attr("id","showDots").attr("x",i?0:c).attr("y",l).attr("dy",u).attr("dx",s+0+"em").text(o):e.attr("text-align","start").append("tspan").attr("id","LessLength").attr("x",i?0:c).attr("y",l).attr("dx",s+0+"em").text(t)}))}var $=function(e,t,n){var r=(0,w.Ys)("#".concat(t));if(r.text(e),!r.node())return!1;for(var o=!1,i=r.node().getComputedTextLength();i>n&&e.length>0;)e=e.slice(0,-1),r.text(e+"..."),o=!0,i=r.node().getComputedTextLength();return o},J=function(e,t){void 0===t&&(t="none");var n=0,r=document.createElement("canvas").getContext("2d");if(r){var o=document.querySelector(t);if(o){var i=window.getComputedStyle(o,null),a=i.getPropertyValue("font-weight"),s=i.getPropertyValue("font-size"),l=i.getPropertyValue("font-family");r.font="".concat(a," ").concat(s," ").concat(l)}else r.font='600 10px "Segoe UI"';e.forEach((function(e){n=Math.max(r.measureText(e.toString()).width,n)}))}return n};function Q(e){var t=e.tooltipCls,n=e.xAxis,r=e.id;if(null===n)return null;for(var o=(0,w.Ys)("body").append("div").attr("id",r).attr("class",t).style("opacity",0),i=n.selectAll("#BaseSpan")._groups[0],a=i&&Object.keys(i).length,s=[],l=0;l<a;l++){var c=i[l].dataset&&Object.values(i[l].dataset)[0];s.push(c)}var u=n.selectAll(".tick")._groups[0],d=u&&Object.keys(u).length,h=function(e){var t=u[e];(0,w.Ys)(t).on("mouseover",(function(t){o.style("opacity",.9),o.html(s[e]).style("left",w.B.pageX+"px").style("top",w.B.pageY-28+"px")})).on("mouseout",(function(e){o.style("opacity",0)}))};for(l=0;l<d;l++)h(l)}function ee(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 te(e,t,n,o,i,a,s,l,c){var u;if(a===C.NumericAxis)switch(o){case b.AreaChart:case b.LineChart:u=function(e,t,n,r){var o=(0,S.Z)(e,(function(e){return(0,S.Z)(e.data,(function(e){return e.x}))})),i=(0,A.Z)(e,(function(e){return(0,A.Z)(e.data,(function(e){return e.x}))})),a=t.left,s=n-t.right;return r?{dStartValue:i,dEndValue:o,rStartValue:a,rEndValue:s}:{dStartValue:o,dEndValue:i,rStartValue:a,rEndValue:s}}(e,t,n,i);break;case b.VerticalStackedBarChart:u=function(e,t,n,r,o){var i=(0,S.Z)(e,(function(e){return e.x})),a=(0,A.Z)(e,(function(e){return e.x})),s=t.left+o/2,l=n-t.right-o/2;return r?{dStartValue:a,dEndValue:i,rStartValue:s,rEndValue:l}:{dStartValue:i,dEndValue:a,rStartValue:s,rEndValue:l}}(e,t,n,i,s);break;case b.VerticalBarChart:u=function(e,t,n,r,o){var i=(0,A.Z)(e,(function(e){return e.x})),a=(0,S.Z)(e,(function(e){return e.x})),s=t.left+o/2,l=n-t.right-o/2;return r?{dStartValue:i,dEndValue:a,rStartValue:s,rEndValue:l}:{dStartValue:a,dEndValue:i,rStartValue:s,rEndValue:l}}(e,t,n,i,s);break;case b.HorizontalBarChartWithAxis:u=function(e,t,n,r,o){var i=(0,A.Z)(e,(function(e){return e.x})),a=r?t.left:t.left+o,s=r?n-t.right-o:n-t.right;return r?{dStartValue:i,dEndValue:0,rStartValue:a,rEndValue:s}:{dStartValue:0,dEndValue:i,rStartValue:a,rEndValue:s}}(e,t,n,i,c);break;default:u={dStartValue:0,dEndValue:0,rStartValue:0,rEndValue:0}}else if(a===C.DateAxis)switch(o){case b.AreaChart:case b.LineChart:case b.VerticalBarChart:case b.VerticalStackedBarChart:u=function(e,t,n,o,i,a,s){var l,c;void 0===i&&(i=[]),a===b.AreaChart||a===b.LineChart?(l=(0,S.Z)(e,(function(e){return(0,S.Z)(e.data,(function(e){return e.x}))})),c=(0,A.Z)(e,(function(e){return(0,A.Z)(e.data,(function(e){return e.x}))})),l=(0,S.Z)((0,r.ev)((0,r.ev)([],i,!0),[l],!1)),c=(0,A.Z)((0,r.ev)((0,r.ev)([],i,!0),[c],!1))):(l=(0,S.Z)(e,(function(e){return e.x})),c=(0,A.Z)(e,(function(e){return e.x})));var u=t.left+(s?s/2:0),d=n-t.right-(s?s/2:0);return o?{dStartValue:c,dEndValue:l,rStartValue:u,rEndValue:d}:{dStartValue:l,dEndValue:c,rStartValue:u,rEndValue:d}}(e,t,n,i,l,o,s);break;default:u={dStartValue:0,dEndValue:0,rStartValue:0,rEndValue:0}}else switch(o){case b.VerticalStackedBarChart:case b.GroupedVerticalBarChart:case b.VerticalBarChart:case b.HeatMapChart:u=function(e,t,n){var r=e.left,o=t-e.right;return n?{dStartValue:0,dEndValue:0,rStartValue:o,rEndValue:r}:{dStartValue:0,dEndValue:0,rStartValue:r,rEndValue:o}}(t,n,i);break;default:u={dStartValue:0,dEndValue:0,rStartValue:0,rEndValue:0}}return u}function ne(e,t,n){var r,o,i;switch(void 0===n&&(n=E.NumericAxis),t){case b.AreaChart:case b.LineChart:r=function(e){var t=(0,A.Z)(e,(function(e){return(0,A.Z)(e.data,(function(e){return e.y}))}));return{startValue:(0,S.Z)(e,(function(e){return(0,S.Z)(e.data,(function(e){return e.y}))})),endValue:t}}(e);break;case b.VerticalStackedBarChart:o=e,i=(0,A.Z)(o,(function(e){return e.y})),r={startValue:(0,S.Z)(o,(function(e){return e.y})),endValue:i};break;case b.VerticalBarChart:r=function(e){var t=(0,A.Z)(e,(function(e){return void 0!==e.lineData?e.y>e.lineData.y?e.y:e.lineData.y:e.y}));return{startValue:(0,S.Z)(e,(function(e){return void 0!==e.lineData?e.y<e.lineData.y?e.y:e.lineData.y:e.y})),endValue:t}}(e);break;case b.HorizontalBarChartWithAxis:r=function(e,t){if(void 0!==t&&t===E.NumericAxis){var n=(0,A.Z)(e,(function(e){return e.y}));return{startValue:(0,S.Z)(e,(function(e){return e.y})),endValue:n}}return{startValue:0,endValue:0}}(e,n);break;default:r={startValue:0,endValue:0}}return r}var re,oe,ie=function(e,t){if(t)switch(typeof e){case"string":return C.StringAxis;case"number":return C.NumericAxis;default:return C.DateAxis}else switch(typeof e){case"string":return E.StringAxis;case"number":return E.NumericAxis;default:return E.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"}(re||(re={})),function(e){e[e.dottedLine=0]="dottedLine"}(oe||(oe={}));var ae=((x={})[re.circle]={widthRatio:1},x[re.square]={widthRatio:1},x[re.triangle]={widthRatio:1},x[re.diamond]={widthRatio:1},x[re.pyramid]={widthRatio:1},x[re.hexagon]={widthRatio:2},x[re.pentagon]={widthRatio:1.168},x[re.octagon]={widthRatio:2.414},x),se=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}},le=function(e,t){return e?(t=t||void 0,"number"==typeof e?e.toLocaleString(t):"string"!=typeof e||window.isNaN(Number(e))?e instanceof Date?e.toLocaleDateString(t):e:Number(e).toLocaleString(t)):e};function ce(e){var t=e.node,n=e.xAxis;if(null!==t&&null!==n){var r=0,o=[];(0,w.Ys)(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&&(o.push(t[0]),this.setAttribute("transform","translate(".concat(t[0],",0)rotate(-45)")))}var n=this.getBoundingClientRect(),i=n&&n.height;i>r&&(r=i)}));var i=0;return(0,w.Ys)(t).call(n).selectAll(".tick").each((function(){o.length>i&&(this.setAttribute("transform","translate(".concat(o[i],",").concat(r/2,")rotate(-45)")),i+=1)})),Math.floor(r/1.414)}}function ue(e,t){var n=0;(0,w.td)(".".concat(e)).each((function(){for(var e=(0,w.Ys)(this),r=e.text().split(/\s+/).reverse(),o="",i=[],a=0,s=e.attr("y"),l=e.text(null).append("tspan").attr("id","WordBreakId-".concat(n,"-").concat(a)).attr("x",0).attr("y",s).attr("dy",1.1*a+++"em");o=r.pop();)i.push(o),l.text(i.join(" ")+" "),l.node().getComputedTextLength()>t&&i.length>1&&(i.pop(),l.text(i.join(" ")+" "),i=[o],l=e.append("tspan").attr("id","WordBreakId-".concat(n,"-").concat(a)).attr("x",0).attr("y",s).attr("dy",1.1*a+++"em").text(o));n+=1}))}function de(e){var t;return t=e<1e3?".2~":".1",(0,D.jH)(t,e)(e)}},9785:function(e,t,n){function r(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}n.d(t,{Z:function(){return r}})},7329:function(e,t,n){n.d(t,{Z:function(){return o}});var r=n(9785);function o(e){let t=e,n=e;function o(e,t,r,o){for(null==r&&(r=0),null==o&&(o=e.length);r<o;){const i=r+o>>>1;n(e[i],t)<0?r=i+1:o=i}return r}return 1===e.length&&(t=(t,n)=>e(t)-n,n=function(e){return(t,n)=>(0,r.Z)(e(t),n)}(e)),{left:o,center:function(e,n,r,i){null==r&&(r=0),null==i&&(i=e.length);const a=o(e,n,r,i-1);return a>r&&t(e[a-1],n)>-t(e[a],n)?a-1:a},right:function(e,t,r,o){for(null==r&&(r=0),null==o&&(o=e.length);r<o;){const i=r+o>>>1;n(e[i],t)>0?o=i:r=i+1}return r}}}},8957:function(e,t,n){function r(e,t){let n;if(void 0===t)for(const t of e)null!=t&&(n<t||void 0===n&&t>=t)&&(n=t);else{let r=-1;for(let o of e)null!=(o=t(o,++r,e))&&(n<o||void 0===n&&o>=o)&&(n=o)}return n}n.d(t,{Z:function(){return r}})},5561:function(e,t,n){function r(e,t){let n;if(void 0===t)for(const t of e)null!=t&&(n>t||void 0===n&&t>=t)&&(n=t);else{let r=-1;for(let o of e)null!=(o=t(o,++r,e))&&(n>o||void 0===n&&o>=o)&&(n=o)}return n}n.d(t,{Z:function(){return r}})},6077:function(e,t,n){n.d(t,{x:function(){return i}});var r={},o=void 0;try{o=window}catch(e){}function i(e,t){if(void 0!==o){var n=o.__packages__=o.__packages__||{};n[e]&&r[e]||(r[e]=t,(n[e]=n[e]||[]).push(t))}}i("@fluentui/set-version","6.0.0")},1786:function(e,t,n){n.d(t,{k4:function(){return J},UK:function(){return Q.U},TS:function(){return ee.TS},lq:function(){return ee.lq},qJ:function(){return te},$v:function(){return ne},bR:function(){return $},e2:function(){return ie},GL:function(){return oe},Cn:function(){return le},gh:function(){return Ae},ul:function(){return ae}});var r=n(13),o=n(4473),i=n(5499),a=n(7373);function s(e){var t=i.Y.getInstance(),n=[];for(var r in e)e.hasOwnProperty(r)&&n.push(r,"{",(0,a.dH)((0,o.Eo)(),e[r]),"}");var s=n.join(""),l=t.classNameFromKey(s);if(l)return l;var c=t.getClassName();return t.insertRule("@keyframes ".concat(c,"{").concat(s,"}"),!0),t.cacheClassName(c,s,[],["keyframes",s]),c}var l="cubic-bezier(.1,.9,.2,1)",c="cubic-bezier(.1,.25,.75,.9)",u="0.167s",d="0.267s",h="0.367s",p="0.467s",f=s({from:{opacity:0},to:{opacity:1}}),g=s({from:{opacity:1},to:{opacity:0,visibility:"hidden"}}),m=U(-10),v=U(-20),_=U(-40),y=U(-400),x=U(10),b=U(20),C=U(40),E=U(400),S=j(10),A=j(20),L=j(-10),k=j(-20),T=G(10),w=G(20),D=G(40),M=G(400),P=G(-10),F=G(-20),I=G(-40),N=G(-400),V=K(-10),O=K(-20),H=K(10),B=K(20),R=s({from:{transform:"scale3d(.98,.98,1)"},to:{transform:"scale3d(1,1,1)"}}),z=s({from:{transform:"scale3d(1,1,1)"},to:{transform:"scale3d(.98,.98,1)"}}),W=s({from:{transform:"scale3d(1.03,1.03,1)"},to:{transform:"scale3d(1,1,1)"}}),Y=s({from:{transform:"scale3d(1,1,1)"},to:{transform:"scale3d(1.03,1.03,1)"}}),Z=s({from:{transform:"rotateZ(0deg)"},to:{transform:"rotateZ(90deg)"}}),q=s({from:{transform:"rotateZ(0deg)"},to:{transform:"rotateZ(-90deg)"}});function X(e,t,n){return{animationName:e,animationDuration:t,animationTimingFunction:n,animationFillMode:"both"}}function U(e){return s({from:{transform:"translate3d(".concat(e,"px,0,0)"),pointerEvents:"none"},to:{transform:"translate3d(0,0,0)",pointerEvents:"auto"}})}function j(e){return s({from:{transform:"translate3d(0,".concat(e,"px,0)"),pointerEvents:"none"},to:{transform:"translate3d(0,0,0)",pointerEvents:"auto"}})}function G(e){return s({from:{transform:"translate3d(0,0,0)"},to:{transform:"translate3d(".concat(e,"px,0,0)")}})}function K(e){return s({from:{transform:"translate3d(0,0,0)"},to:{transform:"translate3d(0,".concat(e,"px,0)")}})}var $,J=function(e){var t={},n=function(n){var o;e.hasOwnProperty(n)&&Object.defineProperty(t,n,{get:function(){return void 0===o&&(o=(0,r.y)(e[n]).toString()),o},enumerable:!0,configurable:!0})};for(var o in e)n(o);return t}({slideRightIn10:X("".concat(f,",").concat(m),h,l),slideRightIn20:X("".concat(f,",").concat(v),h,l),slideRightIn40:X("".concat(f,",").concat(_),h,l),slideRightIn400:X("".concat(f,",").concat(y),h,l),slideLeftIn10:X("".concat(f,",").concat(x),h,l),slideLeftIn20:X("".concat(f,",").concat(b),h,l),slideLeftIn40:X("".concat(f,",").concat(C),h,l),slideLeftIn400:X("".concat(f,",").concat(E),h,l),slideUpIn10:X("".concat(f,",").concat(S),h,l),slideUpIn20:X("".concat(f,",").concat(A),h,l),slideDownIn10:X("".concat(f,",").concat(L),h,l),slideDownIn20:X("".concat(f,",").concat(k),h,l),slideRightOut10:X("".concat(g,",").concat(T),h,l),slideRightOut20:X("".concat(g,",").concat(w),h,l),slideRightOut40:X("".concat(g,",").concat(D),h,l),slideRightOut400:X("".concat(g,",").concat(M),h,l),slideLeftOut10:X("".concat(g,",").concat(P),h,l),slideLeftOut20:X("".concat(g,",").concat(F),h,l),slideLeftOut40:X("".concat(g,",").concat(I),h,l),slideLeftOut400:X("".concat(g,",").concat(N),h,l),slideUpOut10:X("".concat(g,",").concat(V),h,l),slideUpOut20:X("".concat(g,",").concat(O),h,l),slideDownOut10:X("".concat(g,",").concat(H),h,l),slideDownOut20:X("".concat(g,",").concat(B),h,l),scaleUpIn100:X("".concat(f,",").concat(R),h,l),scaleDownIn100:X("".concat(f,",").concat(W),h,l),scaleUpOut103:X("".concat(g,",").concat(Y),u,c),scaleDownOut98:X("".concat(g,",").concat(z),u,c),fadeIn100:X(f,u,c),fadeIn200:X(f,d,c),fadeIn400:X(f,h,c),fadeIn500:X(f,p,c),fadeOut100:X(g,u,c),fadeOut200:X(g,d,c),fadeOut400:X(g,h,c),fadeOut500:X(g,p,c),rotate90deg:X(Z,"0.1s",c),rotateN90deg:X(q,"0.1s",c)}),Q=n(7045),ee=n(8473),te="@media screen and (-ms-high-contrast: active), screen and (forced-colors: active)",ne="@media screen and (-ms-high-contrast: white-on-black), screen and (forced-colors: active) and (prefers-color-scheme: dark)",re=n(9766);function oe(e,t,n,r,o,i,a,s){return function(e,t){var n,r;void 0===t&&(t={});var o=t.borderRadius,i=t.inset,a=void 0===i?0:i,s=t.width,l=void 0===s?1:s,c=t.position,u=void 0===c?"relative":c,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:u,selectors:(n={"::-moz-focus-inner":{border:"0"}},n[".".concat(re.G$," &").concat(v?":focus":"",":after")]={content:'""',position:"absolute",pointerEvents:_,left:a+1,top:a+1,bottom:a+1,right:a+1,border:"".concat(l,"px solid ").concat(p),outline:"".concat(l,"px solid ").concat(g),zIndex:$.FocusStyle,borderRadius:o,selectors:(r={},r[te]=d,r)},n)}}(e,"number"!=typeof t&&t?t:{inset:t,position:n,highContrastStyle:r,borderColor:o,outlineColor:i,isFocusedOnly:a,borderRadius:s})}function ie(){return{selectors:{"&::-moz-focus-inner":{border:0},"&":{outline:"transparent"}}}}!function(e){e.Nav=1,e.ScrollablePane=1,e.FocusStyle=1,e.Coachmark=1e3,e.Layer=1e6,e.KeytipLayer=1000001}($||($={}));var ae={position:"absolute",width:1,height:1,margin:-1,padding:0,border:0,overflow:"hidden",whiteSpace:"nowrap"},se=(0,n(156).NF)((function(e,t){var n=i.Y.getInstance();return t?Object.keys(e).reduce((function(t,r){return t[r]=n.getClassName(e[r]),t}),{}):e}));function le(e,t,n){return se(e,void 0!==n?n:t.disableGlobalClassNames)}var ce,ue=n(9939),de=n(3820),he=n(775),pe=function(){return pe=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},pe.apply(this,arguments)},fe="undefined"==typeof window?n.g:window,ge=fe&&fe.CSPSettings&&fe.CSPSettings.nonce,me=((ce=fe.__themeState__||{theme:void 0,lastStyleElement:void 0,registeredStyles:[]}).runState||(ce=pe({},ce,{perf:{count:0,duration:0},runState:{flushTimer:0,mode:0,buffer:[]}})),ce.registeredThemableStyles||(ce=pe({},ce,{registeredThemableStyles:[]})),fe.__themeState__=ce,ce);function ve(e){me.theme=e,function(){if(me.theme){for(var e=[],t=0,n=me.registeredThemableStyles;t<n.length;t++){var r=n[t];e.push(r.themableStyle)}e.length>0&&(void 0===(i=1)&&(i=3),3!==i&&2!==i||(_e(me.registeredStyles),me.registeredStyles=[]),3!==i&&1!==i||(_e(me.registeredThemableStyles),me.registeredThemableStyles=[]),o=[].concat.apply([],e),me.loadStyles?me.loadStyles(ye(o).styleString,o):function(e){if("undefined"!=typeof document){var t=document.getElementsByTagName("head")[0],n=document.createElement("style"),r=ye(e),o=r.styleString,i=r.themable;n.setAttribute("data-load-themed-styles","true"),n.type="text/css",ge&&n.setAttribute("nonce",ge),n.appendChild(document.createTextNode(o)),me.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};i?me.registeredThemableStyles.push(s):me.registeredStyles.push(s)}}(o))}var o,i}()}function _e(e){e.forEach((function(e){var t=e&&e.styleElement;t&&t.parentElement&&t.parentElement.removeChild(t)}))}function ye(e){var t=me.theme,n=!1;return{styleString:(e||[]).map((function(e){var r=e.theme;if(r){n=!0;var o=t?t[r]:void 0,i=e.defaultValue||"inherit";return t&&!o&&console&&!(r in t)&&"undefined"!=typeof DEBUG&&DEBUG&&console.warn('Theming value not provided for "'+r+'". Falling back to "'+i+'".'),o||i}return e.rawString})).join(""),themable:n}}var xe=n(685),be=(0,xe.j)({}),Ce=[],Ee="theme";function Se(){var e,t,n,r=(0,de.J)();(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),be=(0,xe.j)(e,t),ve((0,ue.pi)((0,ue.pi)((0,ue.pi)((0,ue.pi)({},be.palette),be.semanticColors),be.effects),function(e){for(var t={},n=0,r=Object.keys(e.fonts);n<r.length;n++)for(var o=r[n],i=e.fonts[o],a=0,s=Object.keys(i);a<s.length;a++){var l=s[a],c=o+l.charAt(0).toUpperCase()+l.slice(1),u=i[l];"fontSize"===l&&"number"==typeof u&&(u+="px"),t[c]=u}return t}(be))),he.X.applySettings(((n={})[Ee]=be,n)),Ce.forEach((function(e){try{e(be)}catch(e){}}))}(r.FabricConfig.legacyTheme):he.X.getSettings([Ee]).theme||((null===(n=null==r?void 0:r.FabricConfig)||void 0===n?void 0:n.theme)&&(be=(0,xe.j)(r.FabricConfig.theme)),he.X.applySettings(((e={})[Ee]=be,e)))}function Ae(e){return void 0===e&&(e=!1),!0===e&&(be=(0,xe.j)({},e)),be}Se(),(0,n(6077).x)("@fluentui/style-utilities","8.10.3"),Se()},7045:function(e,t,n){n.d(t,{U:function(){return r}});var r={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"}},685:function(e,t,n){n.d(t,{j:function(){return P}});var r,o=n(7045);!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)"}(r||(r={}));var i={elevation4:r.depth4,elevation8:r.depth8,elevation16:r.depth16,elevation64:r.depth64,roundedCorner2:"2px",roundedCorner4:"4px",roundedCorner6:"6px"},a=n(4473),s=n(5499),l=n(7373),c=n(8473),u="'Segoe UI', '".concat(c.Qm.WestEuropean,"'"),d={ar:c.II.Arabic,bg:c.II.Cyrillic,cs:c.II.EastEuropean,el:c.II.Greek,et:c.II.EastEuropean,he:c.II.Hebrew,hi:c.II.Hindi,hr:c.II.EastEuropean,hu:c.II.EastEuropean,ja:c.II.Japanese,kk:c.II.EastEuropean,ko:c.II.Korean,lt:c.II.EastEuropean,lv:c.II.EastEuropean,pl:c.II.EastEuropean,ru:c.II.Cyrillic,sk:c.II.EastEuropean,"sr-latn":c.II.EastEuropean,th:c.II.Thai,tr:c.II.EastEuropean,uk:c.II.Cyrillic,vi:c.II.Vietnamese,"zh-hans":c.II.ChineseSimplified,"zh-hant":c.II.ChineseTraditional,hy:c.II.Armenian,ka:c.II.Georgian};function h(e,t,n){return{fontFamily:n,MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontSize:e,fontWeight:t}}var p,f,g,m,v,_,y=n(2874),x=n(3820),b=n(5114),C="language",E=(f=function(e){for(var t in d)if(d.hasOwnProperty(t)&&e&&0===t.indexOf(e))return d[t];return u}(function(e){if(void 0===e&&(e="sessionStorage"),void 0===p){var t=(0,y.M)(),n="localStorage"===e?function(e){var t=null;try{var n=(0,x.J)();t=n?n.localStorage.getItem(e):null}catch(e){}return t}(C):"sessionStorage"===e?b.r(C):void 0;n&&(p=n),void 0===p&&t&&(p=t.documentElement.getAttribute("lang")),void 0===p&&(p="en")}return p}()),g="".concat(f,", ").concat("'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif"),{tiny:h(c.TS.mini,c.lq.regular,g),xSmall:h(c.TS.xSmall,c.lq.regular,g),small:h(c.TS.small,c.lq.regular,g),smallPlus:h(c.TS.smallPlus,c.lq.regular,g),medium:h(c.TS.medium,c.lq.regular,g),mediumPlus:h(c.TS.mediumPlus,c.lq.regular,g),large:h(c.TS.large,c.lq.regular,g),xLarge:h(c.TS.xLarge,c.lq.semibold,g),xLargePlus:h(c.TS.xLargePlus,c.lq.semibold,g),xxLarge:h(c.TS.xxLarge,c.lq.semibold,g),xxLargePlus:h(c.TS.xxLargePlus,c.lq.semibold,g),superLarge:h(c.TS.superLarge,c.lq.semibold,g),mega:h(c.TS.mega,c.lq.semibold,g)});function S(e,t,n,r){!function(e){var t=s.Y.getInstance(),n=(0,l.dH)((0,a.Eo)(),e);if(!t.classNameFromKey(n)){var r=t.getClassName();t.insertRule("@font-face{".concat(n,"}"),!0),t.cacheClassName(r,n,[],["font-face",n])}}({fontFamily:e="'".concat(e,"'"),src:(void 0!==r?"local('".concat(r,"'),"):"")+"url('".concat(t,".woff2') format('woff2'),")+"url('".concat(t,".woff') format('woff')"),fontWeight:n,fontStyle:"normal",fontDisplay:"swap"})}function A(e,t,n,r,o){void 0===r&&(r="segoeui");var i="".concat(e,"/").concat(n,"/").concat(r);S(t,i+"-light",c.lq.light,o&&o+" Light"),S(t,i+"-semilight",c.lq.semilight,o&&o+" SemiLight"),S(t,i+"-regular",c.lq.regular,o),S(t,i+"-semibold",c.lq.semibold,o&&o+" SemiBold"),S(t,i+"-bold",c.lq.bold,o&&o+" Bold")}function L(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,o=t;r<o.length;r++)k(e||{},o[r]);return e}function k(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 o=t[r];if("object"!=typeof o||null===o||Array.isArray(o))e[r]=o;else{var i=n.indexOf(o)>-1;e[r]=i?o:k(e[r]||{},o,n)}}return n.pop(),e}!function(e){if(e){var t="".concat(e,"/fonts");A(t,c.Qm.Thai,"leelawadeeui-thai","leelawadeeui"),A(t,c.Qm.Arabic,"segoeui-arabic"),A(t,c.Qm.Cyrillic,"segoeui-cyrillic"),A(t,c.Qm.EastEuropean,"segoeui-easteuropean"),A(t,c.Qm.Greek,"segoeui-greek"),A(t,c.Qm.Hebrew,"segoeui-hebrew"),A(t,c.Qm.Vietnamese,"segoeui-vietnamese"),A(t,c.Qm.WestEuropean,"segoeui-westeuropean","segoeui","Segoe UI"),A(t,c.II.Selawik,"selawik","selawik"),A(t,c.Qm.Armenian,"segoeui-armenian"),A(t,c.Qm.Georgian,"segoeui-georgian"),S("Leelawadee UI Web","".concat(t,"/leelawadeeui-thai/leelawadeeui-semilight"),c.lq.light),S("Leelawadee UI Web","".concat(t,"/leelawadeeui-thai/leelawadeeui-bold"),c.lq.semibold)}}((_=null===(m=(0,x.J)())||void 0===m?void 0:m.FabricConfig,null!==(v=null==_?void 0:_.fontBaseUrl)&&void 0!==v?v:"https://res-1.cdn.office.net/files/fabric-cdn-prod_20230815.002/assets"));var T=n(9939);function w(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}(D(e,t,(0,T.pi)({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 D(e,t,n,r,o){void 0===o&&(o=!1);var i={},a=e||{},s=a.white,l=a.black,c=a.themePrimary,u=a.themeDark,d=a.themeDarker,h=a.themeDarkAlt,p=a.themeLighter,f=a.neutralLight,g=a.neutralLighter,m=a.neutralDark,v=a.neutralQuaternary,_=a.neutralQuaternaryAlt,y=a.neutralPrimary,x=a.neutralSecondary,b=a.neutralSecondaryAlt,C=a.neutralTertiary,E=a.neutralTertiaryAlt,S=a.neutralLighterAlt,A=a.accent;return s&&(i.bodyBackground=s,i.bodyFrameBackground=s,i.accentButtonText=s,i.buttonBackground=s,i.primaryButtonText=s,i.primaryButtonTextHovered=s,i.primaryButtonTextPressed=s,i.inputBackground=s,i.inputForegroundChecked=s,i.listBackground=s,i.menuBackground=s,i.cardStandoutBackground=s),l&&(i.bodyTextChecked=l,i.buttonTextCheckedHovered=l),c&&(i.link=c,i.primaryButtonBackground=c,i.inputBackgroundChecked=c,i.inputIcon=c,i.inputFocusBorderAlt=c,i.menuIcon=c,i.menuHeader=c,i.accentButtonBackground=c),u&&(i.primaryButtonBackgroundPressed=u,i.inputBackgroundCheckedHovered=u,i.inputIconHovered=u),d&&(i.linkHovered=d),h&&(i.primaryButtonBackgroundHovered=h),p&&(i.inputPlaceholderBackgroundChecked=p),f&&(i.bodyBackgroundChecked=f,i.bodyFrameDivider=f,i.bodyDivider=f,i.variantBorder=f,i.buttonBackgroundCheckedHovered=f,i.buttonBackgroundPressed=f,i.listItemBackgroundChecked=f,i.listHeaderBackgroundPressed=f,i.menuItemBackgroundPressed=f,i.menuItemBackgroundChecked=f),g&&(i.bodyBackgroundHovered=g,i.buttonBackgroundHovered=g,i.buttonBackgroundDisabled=g,i.buttonBorderDisabled=g,i.primaryButtonBackgroundDisabled=g,i.disabledBackground=g,i.listItemBackgroundHovered=g,i.listHeaderBackgroundHovered=g,i.menuItemBackgroundHovered=g),v&&(i.primaryButtonTextDisabled=v,i.disabledSubtext=v),_&&(i.listItemBackgroundCheckedHovered=_),C&&(i.disabledBodyText=C,i.variantBorderHovered=(null==n?void 0:n.variantBorderHovered)||C,i.buttonTextDisabled=C,i.inputIconDisabled=C,i.disabledText=C),y&&(i.bodyText=y,i.actionLink=y,i.buttonText=y,i.inputBorderHovered=y,i.inputText=y,i.listText=y,i.menuItemText=y),S&&(i.bodyStandoutBackground=S,i.defaultStateBackground=S),m&&(i.actionLinkHovered=m,i.buttonTextHovered=m,i.buttonTextChecked=m,i.buttonTextPressed=m,i.inputTextHovered=m,i.menuItemTextHovered=m),x&&(i.bodySubtext=x,i.focusBorder=x,i.inputBorder=x,i.smallInputBorder=x,i.inputPlaceholderText=x),b&&(i.buttonBorder=b),E&&(i.disabledBodySubtext=E,i.disabledBorder=E,i.buttonBackgroundChecked=E,i.menuDivider=E),A&&(i.accentButtonBackground=A),(null==t?void 0:t.elevation4)&&(i.cardShadow=t.elevation4),!r&&(null==t?void 0:t.elevation8)?i.cardShadowHovered=t.elevation8:i.variantBorderHovered&&(i.cardShadowHovered="0 0 1px "+i.variantBorderHovered),(0,T.pi)((0,T.pi)({},i),n)}var M={s2:"4px",s1:"8px",m:"16px",l1:"20px",l2:"32px"};function P(e,t){void 0===e&&(e={}),void 0===t&&(t=!1);var n=!!e.isInverted;return function(e,t){var n,r,o;void 0===t&&(t={});var i=L({},e,t,{semanticColors:D(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)&&(i.palette.accent=t.palette.themePrimary),t.defaultFontStyle)for(var a=0,s=Object.keys(i.fonts);a<s.length;a++){var l=s[a];i.fonts[l]=L(i.fonts[l],t.defaultFontStyle,null===(o=null==t?void 0:t.fonts)||void 0===o?void 0:o[l])}return i}({palette:o.U,effects:i,fonts:E,spacing:M,isInverted:n,disableGlobalClassNames:!1,semanticColors:w(o.U,i,void 0,n,t),rtl:void 0},e)}},8473:function(e,t,n){var r,o,i,a,s;n.d(t,{II:function(){return o},Qm:function(){return r},TS:function(){return i},lq:function(){return a}}),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)"}(r||(r={})),function(e){e.Arabic="'".concat(r.Arabic,"'"),e.ChineseSimplified="'Microsoft Yahei UI', Verdana, Simsun",e.ChineseTraditional="'Microsoft Jhenghei UI', Pmingliu",e.Cyrillic="'".concat(r.Cyrillic,"'"),e.EastEuropean="'".concat(r.EastEuropean,"'"),e.Greek="'".concat(r.Greek,"'"),e.Hebrew="'".concat(r.Hebrew,"'"),e.Hindi="'Nirmala UI'",e.Japanese="'Yu Gothic UI', 'Meiryo UI', Meiryo, 'MS Pgothic', Osaka",e.Korean="'Malgun Gothic', Gulim",e.Selawik="'".concat(r.Selawik,"'"),e.Thai="'Leelawadee UI Web', 'Kmer UI'",e.Vietnamese="'".concat(r.Vietnamese,"'"),e.WestEuropean="'".concat(r.WestEuropean,"'"),e.Armenian="'".concat(r.Armenian,"'"),e.Georgian="'".concat(r.Georgian,"'")}(o||(o={})),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"}(i||(i={})),function(e){e.light=100,e.semilight=300,e.regular=400,e.semibold=600,e.bold=700}(a||(a={})),function(e){e.xSmall="10px",e.small="12px",e.medium="16px",e.large="20px"}(s||(s={}))},8461:function(e,t,n){n.d(t,{y:function(){return f}});var r=n(5499),o=n(4270),i=n(3802),a=n(7373);var s=n(116),l=n(3820),c=50,u=5,d=0,h=r.Y.getInstance();h&&h.onReset&&h.onReset((function(){return d++}));var p="__retval__";function f(e){void 0===e&&(e={});var t=new Map,n=0,r=0,h=d;return function(f,g){var v;if(void 0===g&&(g={}),e.useStaticStyles&&"function"==typeof f&&f.__noStyleOverride__)return f(g);r++;var _=t,y=g.theme,x=y&&void 0!==y.rtl?y.rtl:(0,s.zg)(),b=e.disableCaching;if(h!==d&&(h=d,t=new Map,n=0),e.disableCaching||(_=m(t,f),_=m(_,g)),!b&&_[p]||(_[p]=void 0===f?{}:function(e,t){var n={subComponentStyles:{}};if(!e[0]&&e.length<=1)return{subComponentStyles:{}};var r=o.m.apply(void 0,e),s=[];for(var l in r)if(r.hasOwnProperty(l)){if("subComponentStyles"===l){n.subComponentStyles=r.subComponentStyles||{};continue}var c=r[l],u=(0,i.U)(c),d=u.classes,h=u.objects;(null==h?void 0:h.length)?(g=(0,a.aj)(t||{},{displayName:l},h))&&(s.push(g),n[l]=d.concat([g.className]).join(" ")):n[l]=d.join(" ")}for(var p=0,f=s;p<f.length;p++){var g;(g=f[p])&&(0,a.Jh)(g,null==t?void 0:t.specificityMultiplier)}return n}(["function"==typeof f?f(g):f],{rtl:!!x,specificityMultiplier:e.useStaticStyles?u:void 0}),b||n++),n>(e.cacheSize||c)){var C=(0,l.J)();(null===(v=null==C?void 0:C.FabricConfig)||void 0===v?void 0:v.enableClassNameCacheFullWarning)&&(console.warn("Styles are being recalculated too frequently. Cache miss rate is ".concat(n,"/").concat(r,".")),console.trace()),t.clear(),n=0,e.disableCaching=!0}return _[p]}}function g(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 m(e,t){if("function"==typeof t)if(t.__cachedInputs__)for(var n=0,r=t.__cachedInputs__;n<r.length;n++)e=g(e,r[n]);else e=g(e,t);else if("object"==typeof t)for(var o in t)t.hasOwnProperty(o)&&(e=g(e,t[o]));return e}},775:function(e,t,n){n.d(t,{X:function(){return f}});var r=n(9939),o=n(3820),i="__globalSettings__",a="__callbacks__",s=0,l=function(){function e(){}return e.getValue=function(e,t){var n=c();return void 0===n[e]&&(n[e]="function"==typeof t?t():t),n[e]},e.setValue=function(e,t){var n=c(),r=n[a],o=n[e];if(t!==o){n[e]=t;var i={oldValue:o,value:t,key:e};for(var s in r)r.hasOwnProperty(s)&&r[s](i)}return t},e.addChangeListener=function(e){var t=e.__id__,n=u();t||(t=e.__id__=String(s++)),n[t]=e},e.removeChangeListener=function(e){delete u()[e.__id__]},e}();function c(){var e,t=(0,o.J)()||{};return t[i]||(t[i]=((e={})[a]={},e)),t[i]}function u(){return c()[a]}var d={settings:{},scopedSettings:{},inCustomizerContext:!1},h=l.getValue("customizations",{settings:{},scopedSettings:{},inCustomizerContext:!1}),p=[],f=function(){function e(){}return e.reset=function(){h.settings={},h.scopedSettings={}},e.applySettings=function(t){h.settings=(0,r.pi)((0,r.pi)({},h.settings),t),e._raiseChange()},e.applyScopedSettings=function(t,n){h.scopedSettings[t]=(0,r.pi)((0,r.pi)({},h.scopedSettings[t]),n),e._raiseChange()},e.getSettings=function(e,t,n){void 0===n&&(n=d);for(var r={},o=t&&n.scopedSettings[t]||{},i=t&&h.scopedSettings[t]||{},a=0,s=e;a<s.length;a++){var l=s[a];r[l]=o[l]||n.settings[l]||i[l]||h.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){p.push(e)},e.unobserve=function(e){p=p.filter((function(t){return t!==e}))},e._raiseChange=function(){e._suppressUpdates||p.forEach((function(e){return e()}))},e}()},2049:function(e,t,n){n.d(t,{i:function(){return r}});var r=n(7363).createContext({customizations:{inCustomizerContext:!1,settings:{},scopedSettings:{}}})},8873:function(e,t,n){function r(){return"undefined"!=typeof window&&!(!window.document||!window.document.createElement)}n.d(t,{N:function(){return r}})},2874:function(e,t,n){n.d(t,{M:function(){return o}});var r=n(8873);function o(e){if((0,r.N)()&&"undefined"!=typeof document){var t=e;return t&&t.ownerDocument?t.ownerDocument:document}}},3820:function(e,t,n){n.d(t,{J:function(){return i}});var r=n(8873),o=void 0;try{o=window}catch(e){}function i(e){if((0,r.N)()&&void 0!==o){var t=e;return t&&t.ownerDocument&&t.ownerDocument.defaultView?t.ownerDocument.defaultView:o}}},156:function(e,t,n){n.d(t,{Ct:function(){return d},NF:function(){return u}});var r=n(5499),o=!1,i=0,a={empty:!0},s={},l="undefined"==typeof WeakMap?null:WeakMap;function c(){i++}function u(e,t,n){if(void 0===t&&(t=100),void 0===n&&(n=!1),!l)return e;if(!o){var u=r.Y.getInstance();u&&u.onReset&&r.Y.getInstance().onReset(c),o=!0}var d,p=0,f=i;return function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var l,c=d;(void 0===d||f!==i||t>0&&p>t)&&(d=h(),p=0,f=i),c=d;for(var u=0;u<r.length;u++){var g=(l=r[u])?"object"==typeof l||"function"==typeof l?l:(s[l]||(s[l]={val:l}),s[l]):a;c.map.has(g)||c.map.set(g,h()),c=c.map.get(g)}return c.hasOwnProperty("value")||(c.value=e.apply(void 0,r),p++),!n||null!==c.value&&void 0!==c.value||(c.value=e.apply(void 0,r)),c.value}}function d(e){if(!l)return e;var t=new l;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 h(){return{map:l?new l:null}}},116:function(e,t,n){n.d(t,{zg:function(){return l}});var r,o=n(2874),i=n(5114),a=n(4473),s="isRTL";function l(e){if(void 0===e&&(e={}),void 0!==e.rtl)return e.rtl;if(void 0===r){var t=(0,i.r)(s);null!==t&&function(e,t){void 0===t&&(t=!1);var n=(0,o.M)();n&&n.documentElement.setAttribute("dir",e?"rtl":"ltr"),t&&(0,i.L)(s,e?"1":"0"),r=e,(0,a.ok)(r)}(r="1"===t);var n=(0,o.M)();void 0===r&&n&&(r="rtl"===(n.body&&n.body.getAttribute("dir")||n.documentElement.getAttribute("dir")),(0,a.ok)(r))}return!!r}},5114:function(e,t,n){n.d(t,{L:function(){return i},r:function(){return o}});var r=n(3820);function o(e){var t=null;try{var n=(0,r.J)();t=n?n.sessionStorage.getItem(e):null}catch(e){}return t}function i(e,t){var n;try{null===(n=(0,r.J)())||void 0===n||n.sessionStorage.setItem(e,t)}catch(e){}}},9766:function(e,t,n){n.d(t,{G$:function(){return r}});var r="ms-Fabric--isFocusVisible"},9085:function(e,t,n){n.d(t,{z:function(){return c}});var r=n(9939),o=n(7363),i=n(4270),a=n(775),s=n(2049);var l=["theme","styles"];function c(e,t,n,c,u){var d=(c=c||{scope:"",fields:void 0}).scope,h=c.fields,p=void 0===h?l:h,f=o.forwardRef((function(l,c){var u,h,f,g,m,v,_=o.useRef(),y=(u=p,h=d,f=o.useState(0)[1],g=function(){return f((function(e){return++e}))},m=o.useContext(s.i).customizations,v=m.inCustomizerContext,o.useEffect((function(){return v||a.X.observe(g),function(){v||a.X.unobserve(g)}}),[v]),a.X.getSettings(u,h,m)),x=y.styles,b=(y.dir,(0,r._T)(y,["styles","dir"])),C=n?n(l):void 0,E=_.current&&_.current.__cachedInputs__||[],S=l.styles;if(!_.current||x!==E[1]||S!==E[2]){var A=function(e){return function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=[],o=0,a=t;o<a.length;o++){var s=a[o];s&&r.push("function"==typeof s?s(e):s)}return 1===r.length?r[0]:r.length?i.m.apply(void 0,r):{}}(e,t,x,S)};A.__cachedInputs__=[t,x,S],A.__noStyleOverride__=!x&&!S,_.current=A}return o.createElement(e,(0,r.pi)({ref:c},b,C,l,{styles:_.current}))}));f.displayName="Styled".concat(e.displayName||e.name);var g=u?o.memo(f):f;return f.displayName&&(g.displayName=f.displayName),g}},7363:function(e){e.exports=React},6775:function(e,t,n){n.d(t,{Z:function(){return i}});var r=n(9941),o=n(5795);function i(){var e,t,n=(0,o.Z)().unknown(void 0),a=n.domain,s=n.range,l=0,c=1,u=!1,d=0,h=0,p=.5;function f(){var n=a().length,r=c<l,o=r?c:l,i=r?l:c;e=(i-o)/Math.max(1,n-d+2*h),u&&(e=Math.floor(e)),o+=(i-o-e*(n-d))*p,t=e*(1-d),u&&(o=Math.round(o),t=Math.round(t));var f=function(e,t,n){e=+e,t=+t,n=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+n;for(var r=-1,o=0|Math.max(0,Math.ceil((t-e)/n)),i=new Array(o);++r<o;)i[r]=e+r*n;return i}(n).map((function(t){return o+e*t}));return s(r?f.reverse():f)}return delete n.unknown,n.domain=function(e){return arguments.length?(a(e),f()):a()},n.range=function(e){return arguments.length?([l,c]=e,l=+l,c=+c,f()):[l,c]},n.rangeRound=function(e){return[l,c]=e,l=+l,c=+c,u=!0,f()},n.bandwidth=function(){return t},n.step=function(){return e},n.round=function(e){return arguments.length?(u=!!e,f()):u},n.padding=function(e){return arguments.length?(d=Math.min(1,h=+e),f()):d},n.paddingInner=function(e){return arguments.length?(d=Math.min(1,e),f()):d},n.paddingOuter=function(e){return arguments.length?(h=+e,f()):h},n.align=function(e){return arguments.length?(p=Math.max(0,Math.min(1,e)),f()):p},n.copy=function(){return i(a(),[l,c]).round(u).paddingInner(d).paddingOuter(h).align(p)},r.o.apply(f(),arguments)}},7451:function(e,t,n){n.d(t,{JG:function(){return ie},ZP:function(){return ae}});var r=n(9785),o=n(7329);const i=(0,o.Z)(r.Z),a=i.right;i.left,(0,o.Z)((function(e){return null===e?NaN:+e})).center;var s=a;function l(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function c(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function u(){}var d=.7,h=1/d,p="\\s*([+-]?\\d+)\\s*",f="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",g="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",m=/^#([0-9a-f]{3,8})$/,v=new RegExp("^rgb\\("+[p,p,p]+"\\)$"),_=new RegExp("^rgb\\("+[g,g,g]+"\\)$"),y=new RegExp("^rgba\\("+[p,p,p,f]+"\\)$"),x=new RegExp("^rgba\\("+[g,g,g,f]+"\\)$"),b=new RegExp("^hsl\\("+[f,g,g]+"\\)$"),C=new RegExp("^hsla\\("+[f,g,g,f]+"\\)$"),E={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 S(){return this.rgb().formatHex()}function A(){return this.rgb().formatRgb()}function L(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=m.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?k(t):3===n?new D(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?new D(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?new D(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=v.exec(e))?new D(t[1],t[2],t[3],1):(t=_.exec(e))?new D(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=y.exec(e))?T(t[1],t[2],t[3],t[4]):(t=x.exec(e))?T(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=b.exec(e))?I(t[1],t[2]/100,t[3]/100,1):(t=C.exec(e))?I(t[1],t[2]/100,t[3]/100,t[4]):E.hasOwnProperty(e)?k(E[e]):"transparent"===e?new D(NaN,NaN,NaN,0):null}function k(e){return new D(e>>16&255,e>>8&255,255&e,1)}function T(e,t,n,r){return r<=0&&(e=t=n=NaN),new D(e,t,n,r)}function w(e,t,n,r){return 1===arguments.length?((o=e)instanceof u||(o=L(o)),o?new D((o=o.rgb()).r,o.g,o.b,o.opacity):new D):new D(e,t,n,null==r?1:r);var o}function D(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function M(){return"#"+F(this.r)+F(this.g)+F(this.b)}function P(){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 F(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function I(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new V(e,t,n,r)}function N(e){if(e instanceof V)return new V(e.h,e.s,e.l,e.opacity);if(e instanceof u||(e=L(e)),!e)return new V;if(e instanceof V)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,s=i-o,l=(i+o)/2;return s?(a=t===i?(n-r)/s+6*(n<r):n===i?(r-t)/s+2:(t-n)/s+4,s/=l<.5?i+o:2-i-o,a*=60):s=l>0&&l<1?0:a,new V(a,s,l,e.opacity)}function V(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function O(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 H(e,t,n,r,o){var i=e*e,a=i*e;return((1-3*e+3*i-a)*t+(4-6*i+3*a)*n+(1+3*e+3*i-3*a)*r+a*o)/6}function B(e){return function(){return e}}function R(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):B(isNaN(e)?t:e)}l(u,L,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:S,formatHex:S,formatHsl:function(){return N(this).formatHsl()},formatRgb:A,toString:A}),l(D,w,c(u,{brighter:function(e){return e=null==e?h:Math.pow(h,e),new D(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?d:Math.pow(d,e),new D(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:M,formatHex:M,formatRgb:P,toString:P})),l(V,(function(e,t,n,r){return 1===arguments.length?N(e):new V(e,t,n,null==r?1:r)}),c(u,{brighter:function(e){return e=null==e?h:Math.pow(h,e),new V(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?d:Math.pow(d,e),new V(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,o=2*n-r;return new D(O(e>=240?e-240:e+120,o,r),O(e,o,r),O(e<120?e+240:e-120,o,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 z=function e(t){var n=function(e){return 1==(e=+e)?R: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):B(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=w(e)).r,(t=w(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=R(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function W(e){return function(t){var n,r,o=t.length,i=new Array(o),a=new Array(o),s=new Array(o);for(n=0;n<o;++n)r=w(t[n]),i[n]=r.r||0,a[n]=r.g||0,s[n]=r.b||0;return i=e(i),a=e(a),s=e(s),r.opacity=1,function(e){return r.r=i(e),r.g=a(e),r.b=s(e),r+""}}}function Y(e,t){var n,r=t?t.length:0,o=e?Math.min(r,e.length):0,i=new Array(o),a=new Array(r);for(n=0;n<o;++n)i[n]=$(e[n],t[n]);for(;n<r;++n)a[n]=t[n];return function(e){for(n=0;n<o;++n)a[n]=i[n](e);return a}}function Z(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function q(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function X(e,t){var n,r={},o={};for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?r[n]=$(e[n],t[n]):o[n]=t[n];return function(e){for(n in r)o[n]=r[n](e);return o}}W((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),o=e[r],i=e[r+1],a=r>0?e[r-1]:2*o-i,s=r<t-1?e[r+2]:2*i-o;return H((n-r/t)*t,a,o,i,s)}})),W((function(e){var t=e.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*t),o=e[(r+t-1)%t],i=e[r%t],a=e[(r+1)%t],s=e[(r+2)%t];return H((n-r/t)*t,o,i,a,s)}}));var U=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,j=new RegExp(U.source,"g");function G(e,t){var n,r,o,i=U.lastIndex=j.lastIndex=0,a=-1,s=[],l=[];for(e+="",t+="";(n=U.exec(e))&&(r=j.exec(t));)(o=r.index)>i&&(o=t.slice(i,o),s[a]?s[a]+=o:s[++a]=o),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,l.push({i:a,x:q(n,r)})),i=j.lastIndex;return i<t.length&&(o=t.slice(i),s[a]?s[a]+=o:s[++a]=o),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 K(e,t){t||(t=[]);var n,r=e?Math.min(t.length,e.length):0,o=t.slice();return function(i){for(n=0;n<r;++n)o[n]=e[n]*(1-i)+t[n]*i;return o}}function $(e,t){var n,r,o=typeof t;return null==t||"boolean"===o?B(t):("number"===o?q:"string"===o?(n=L(t))?(t=n,z):G:t instanceof L?z:t instanceof Date?Z:(r=t,!ArrayBuffer.isView(r)||r instanceof DataView?Array.isArray(t)?Y:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?X:q:K))(e,t)}function J(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function Q(e){return+e}var ee=[0,1];function te(e){return e}function ne(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:(n=isNaN(t)?NaN:.5,function(){return n});var n}function re(e,t,n){var r=e[0],o=e[1],i=t[0],a=t[1];return o<r?(r=ne(o,r),i=n(a,i)):(r=ne(r,o),i=n(i,a)),function(e){return i(r(e))}}function oe(e,t,n){var r=Math.min(e.length,t.length)-1,o=new Array(r),i=new Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)o[a]=ne(e[a],e[a+1]),i[a]=n(t[a],t[a+1]);return function(t){var n=s(e,t,1,r)-1;return i[n](o[n](t))}}function ie(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function ae(){return function(){var e,t,n,r,o,i,a=ee,s=ee,l=$,c=te;function u(){var e,t,n,l=Math.min(a.length,s.length);return c!==te&&(e=a[0],t=a[l-1],e>t&&(n=e,e=t,t=n),c=function(n){return Math.max(e,Math.min(t,n))}),r=l>2?oe:re,o=i=null,d}function d(t){return null==t||isNaN(t=+t)?n:(o||(o=r(a.map(e),s,l)))(e(c(t)))}return d.invert=function(n){return c(t((i||(i=r(s,a.map(e),q)))(n)))},d.domain=function(e){return arguments.length?(a=Array.from(e,Q),u()):a.slice()},d.range=function(e){return arguments.length?(s=Array.from(e),u()):s.slice()},d.rangeRound=function(e){return s=Array.from(e),l=J,u()},d.clamp=function(e){return arguments.length?(c=!!e||te,u()):c!==te},d.interpolate=function(e){return arguments.length?(l=e,u()):l},d.unknown=function(e){return arguments.length?(n=e,d):n},function(n,r){return e=n,t=r,u()}}()(te,te)}},9941:function(e,t,n){function r(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}n.d(t,{o:function(){return r}})},8815:function(e,t,n){n.d(t,{Z:function(){return p}});var r=Math.sqrt(50),o=Math.sqrt(10),i=Math.sqrt(2);function a(e,t,n){var a=(t-e)/Math.max(0,n),s=Math.floor(Math.log(a)/Math.LN10),l=a/Math.pow(10,s);return s>=0?(l>=r?10:l>=o?5:l>=i?2:1)*Math.pow(10,s):-Math.pow(10,-s)/(l>=r?10:l>=o?5:l>=i?2:1)}var s=n(7451),l=n(9941),c=n(4116),u=n(4783),d=n(1783);function h(e){var t=e.domain;return e.ticks=function(e){var n=t();return function(e,t,n){var r,o,i,s,l=-1;if(n=+n,(e=+e)==(t=+t)&&n>0)return[e];if((r=t<e)&&(o=e,e=t,t=o),0===(s=a(e,t,n))||!isFinite(s))return[];if(s>0){let n=Math.round(e/s),r=Math.round(t/s);for(n*s<e&&++n,r*s>t&&--r,i=new Array(o=r-n+1);++l<o;)i[l]=(n+l)*s}else{s=-s;let n=Math.round(e*s),r=Math.round(t*s);for(n/s<e&&++n,r/s>t&&--r,i=new Array(o=r-n+1);++l<o;)i[l]=(n+l)/s}return r&&i.reverse(),i}(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var a=t();return function(e,t,n,a){var s,l=function(e,t,n){var a=Math.abs(t-e)/Math.max(0,n),s=Math.pow(10,Math.floor(Math.log(a)/Math.LN10)),l=a/s;return l>=r?s*=10:l>=o?s*=5:l>=i&&(s*=2),t<e?-s:s}(e,t,n);switch((a=(0,c.Z)(null==a?",f":a)).type){case"s":var h=Math.max(Math.abs(e),Math.abs(t));return null!=a.precision||isNaN(s=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor((0,u.Z)(t)/3)))-(0,u.Z)(Math.abs(e)))}(l,h))||(a.precision=s),(0,d.jH)(a,h);case"":case"e":case"g":case"p":case"r":null!=a.precision||isNaN(s=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,(0,u.Z)(t)-(0,u.Z)(e))+1}(l,Math.max(Math.abs(e),Math.abs(t))))||(a.precision=s-("e"===a.type));break;case"f":case"%":null!=a.precision||isNaN(s=function(e){return Math.max(0,-(0,u.Z)(Math.abs(e)))}(l))||(a.precision=s-2*("%"===a.type))}return(0,d.WU)(a)}(a[0],a[a.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var r,o,i=t(),s=0,l=i.length-1,c=i[s],u=i[l],d=10;for(u<c&&(o=c,c=u,u=o,o=s,s=l,l=o);d-- >0;){if((o=a(c,u,n))===r)return i[s]=c,i[l]=u,t(i);if(o>0)c=Math.floor(c/o)*o,u=Math.ceil(u/o)*o;else{if(!(o<0))break;c=Math.ceil(c*o)/o,u=Math.floor(u*o)/o}r=o}return e},e}function p(){var e=(0,s.ZP)();return e.copy=function(){return(0,s.JG)(e,p())},l.o.apply(e,arguments),h(e)}},5795:function(e,t,n){n.d(t,{Z:function(){return d}});class r extends Map{constructor(e,t=l){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(i(this,e))}has(e){return super.has(i(this,e))}set(e,t){return super.set(a(this,e),t)}delete(e){return super.delete(s(this,e))}}class o extends Set{constructor(e,t=l){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const t of e)this.add(t)}has(e){return super.has(i(this,e))}add(e){return super.add(a(this,e))}delete(e){return super.delete(s(this,e))}}function i({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function a({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function s({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(n),e.delete(r)),n}function l(e){return null!==e&&"object"==typeof e?e.valueOf():e}var c=n(9941);const u=Symbol("implicit");function d(){var e=new r,t=[],n=[],o=u;function i(r){let i=e.get(r);if(void 0===i){if(o!==u)return o;e.set(r,i=t.push(r)-1)}return n[i%n.length]}return i.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new r;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?(o=e,i):o},i.copy=function(){return d(t,n).unknown(o)},c.o.apply(i,arguments),i}},8639:function(e,t,n){n.d(t,{Z:function(){return H}});var r=Math.sqrt(50),o=Math.sqrt(10),i=Math.sqrt(2);function a(e,t,n){var a=Math.abs(t-e)/Math.max(0,n),s=Math.pow(10,Math.floor(Math.log(a)/Math.LN10)),l=a/s;return l>=r?s*=10:l>=o?s*=5:l>=i&&(s*=2),t<e?-s:s}var s=n(4827),l=n(4315),c=(0,l.Z)((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e}));c.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?(0,l.Z)((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):c:null};var u=c,d=(c.range,n(87)),h=n(4189),p=n(5401),f=n(3645),g=n(2167),m=n(9604),v=n(9507),_=(0,l.Z)((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+t*s.yB)}),(function(e,t){return(t-e)/s.yB}),(function(e){return e.getUTCMinutes()})),y=_,x=(_.range,(0,l.Z)((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+t*s.Y2)}),(function(e,t){return(t-e)/s.Y2}),(function(e){return e.getUTCHours()}))),b=x,C=(x.range,n(2605)),E=n(3787),S=(0,l.Z)((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()})),A=S,L=(S.range,n(2527));function k(e,t,n,r,o,i){const l=[[d.Z,1,s.Ym],[d.Z,5,5*s.Ym],[d.Z,15,15*s.Ym],[d.Z,30,30*s.Ym],[i,1,s.yB],[i,5,5*s.yB],[i,15,15*s.yB],[i,30,30*s.yB],[o,1,s.Y2],[o,3,3*s.Y2],[o,6,6*s.Y2],[o,12,12*s.Y2],[r,1,s.UD],[r,2,2*s.UD],[n,1,s.iM],[t,1,s.jz],[t,3,3*s.jz],[e,1,s.qz]];function c(t,n,r){const o=Math.abs(n-t)/r,i=function(e){let t=e,n=e;function r(e,t,r,o){for(null==r&&(r=0),null==o&&(o=e.length);r<o;){const i=r+o>>>1;n(e[i],t)<0?r=i+1:o=i}return r}return 1===e.length&&(t=(t,n)=>e(t)-n,n=function(e){return(t,n)=>{return(r=e(t))<(o=n)?-1:r>o?1:r>=o?0:NaN;var r,o}}(e)),{left:r,center:function(e,n,o,i){null==o&&(o=0),null==i&&(i=e.length);const a=r(e,n,o,i-1);return a>o&&t(e[a-1],n)>-t(e[a],n)?a-1:a},right:function(e,t,r,o){for(null==r&&(r=0),null==o&&(o=e.length);r<o;){const i=r+o>>>1;n(e[i],t)>0?o=i:r=i+1}return r}}}((([,,e])=>e)).right(l,o);if(i===l.length)return e.every(a(t/s.qz,n/s.qz,r));if(0===i)return u.every(Math.max(a(t,n,r),1));const[c,d]=l[o/l[i-1][2]<l[i][2]/o?i-1:i];return c.every(d)}return[function(e,t,n){const r=t<e;r&&([e,t]=[t,e]);const o=n&&"function"==typeof n.range?n:c(e,t,n),i=o?o.range(e,+t+1):[];return r?i.reverse():i},c]}const[T,w]=k(L.Z,A,E.Ox,C.Z,b,y),[D,M]=k(v.Z,m.Z,g.OM,f.Z,p.Z,h.Z);var P=n(731),F=n(7451),I=n(9941);function N(e){return new Date(e)}function V(e){return e instanceof Date?+e:+new Date(+e)}function O(e,t,n,r,o,i,a,s,l,c){var u=(0,F.ZP)(),d=u.invert,h=u.domain,p=c(".%L"),f=c(":%S"),g=c("%I:%M"),m=c("%I %p"),v=c("%a %d"),_=c("%b %d"),y=c("%B"),x=c("%Y");function b(e){return(l(e)<e?p:s(e)<e?f:a(e)<e?g:i(e)<e?m:r(e)<e?o(e)<e?v:_:n(e)<e?y:x)(e)}return u.invert=function(e){return new Date(d(e))},u.domain=function(e){return arguments.length?h(Array.from(e,V)):h().map(N)},u.ticks=function(t){var n=h();return e(n[0],n[n.length-1],null==t?10:t)},u.tickFormat=function(e,t){return null==t?b:c(t)},u.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,o=(e=e.slice()).length-1,i=e[r],a=e[o];return a<i&&(n=r,r=o,o=n,n=i,i=a,a=n),e[r]=t.floor(i),e[o]=t.ceil(a),e}(n,e)):u},u.copy=function(){return(0,F.JG)(u,O(e,t,n,r,o,i,a,s,l,c))},u}function H(){return I.o.apply(O(D,M,v.Z,m.Z,g.OM,f.Z,p.Z,h.Z,d.Z,P.i$).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};!function(){n.r(r),n.d(r,{AreaChart:function(){return xi},CartesianChart:function(){return Oo},ChartHoverCard:function(){return $t.ChartHoverCard},DataVizPalette:function(){return uo},DonutChart:function(){return bo},GaugeChart:function(){return rs},GaugeValueFormat:function(){return Ua},GroupedVerticalBarChart:function(){return Ji},HeatMapChart:function(){return ra},HorizontalBarChart:function(){return Nn},HorizontalBarChartVariant:function(){return h},HorizontalBarChartWithAxis:function(){return Qa},Legends:function(){return Ar},LineChart:function(){return ni},MultiStackedBarChart:function(){return Oi},MultiStackedBarChartVariant:function(){return Li},NodesComposition:function(){return za},PieChart:function(){return Di},SankeyChart:function(){return ka},Shape:function(){return Cr},Sparkline:function(){return Ka},StackedBarChart:function(){return Fi},Textbox:function(){return Ko},TreeChart:function(){return Xa},TreeTraverse:function(){return Wa},VerticalBarChart:function(){return qi},VerticalStackedBarChart:function(){return ji},getChartHoverCardStyles:function(){return Qi.n},getColorFromToken:function(){return _o},getNextColor:function(){return vo}});var e=n(9085),t=n(9939),o=n(7363),i=n(8461),a=n(116),s=n(3820),l=n(5499),c="__currentId__",u="id__",d=(0,s.J)()||{};void 0===d[c]&&(d[c]=0);var h,p=!1;function f(e){if(!p){var t=l.Y.getInstance();t&&t.onReset&&t.onReset(g),p=!0}var n=d[c]++;return(void 0===e?u:e)+n}function g(e){void 0===e&&(e=0),d[c]=e}function m(e,t,n){void 0===n&&(n=0);for(var r=-1,o=n;e&&o<e.length;o++)if(t(e[o],o)){r=o;break}return r}function v(e,t){var n=m(e,t);if(!(n<0))return e[n]}!function(e){e.PartToWhole="part-to-whole",e.AbsoluteScale="absolute-scale"}(h||(h={}));var _={topLeftEdge:0,topCenter:1,topRightEdge:2,topAutoEdge:3,bottomLeftEdge:4,bottomCenter:5,bottomRightEdge:6,bottomAutoEdge:7,leftTopEdge:8,leftCenter:9,leftBottomEdge:10,rightTopEdge:11,rightCenter:12,rightBottomEdge:13};function y(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 x(e,t,n){return null!=n||(n=document),e&&e!==n.body?t(e)?e:x(y(e),t):null}function b(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 o=y(t);if(o===e){r=!0;break}t=o}else e.contains&&(r=e.contains(t));return r}var C=n(2874),E="data-is-focusable",S="data-is-visible",A="data-focuszone-id",L="data-is-sub-focuszone";function k(e,t){var n=w(e,e,!0,!1,!1,!0,void 0,void 0,t);return!!n&&(V(n),!0)}function T(e,t,n,r,o,i,a,s){if(!t||!a&&t===e)return null;var l=D(t);if(o&&l&&(i||!F(t)&&!I(t))){var c=T(e,t.lastElementChild,!0,!0,!0,i,a,s);if(c){if(s&&P(c,!0)||!s)return c;var u=T(e,c.previousElementSibling,!0,!0,!0,i,a,s);if(u)return u;for(var d=c.parentElement;d&&d!==t;){var h=T(e,d.previousElementSibling,!0,!0,!0,i,a,s);if(h)return h;d=d.parentElement}}}return n&&l&&P(t,s)?t:T(e,t.previousElementSibling,!0,!0,!0,i,a,s)||(r?null:T(e,t.parentElement,!0,!1,!1,i,a,s))}function w(e,t,n,r,o,i,a,s,l){if(!t||t===e&&o&&!a)return null;var c=(l?M:D)(t);if(n&&c&&P(t,s))return t;if(!o&&c&&(i||!F(t)&&!I(t))){var u=w(e,t.firstElementChild,!0,!0,!1,i,a,s,l);if(u)return u}return t===e?null:w(e,t.nextElementSibling,!0,!0,!1,i,a,s,l)||(r?null:w(e,t.parentElement,!1,!1,!0,i,a,s,l))}function D(e){if(!e||!e.getAttribute)return!1;var t=e.getAttribute(S);return null!=t?"true"===t:0!==e.offsetHeight||null!==e.offsetParent||!0===e.isVisible}function M(e,t){var n=null!=t?t:(0,s.J)();return!!e&&D(e)&&!e.hidden&&"hidden"!==n.getComputedStyle(e).visibility}function P(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 o=e.getAttribute?e.getAttribute(E):null,i=null!==r&&n>=0,a=!!e&&"false"!==o&&("A"===e.tagName||"BUTTON"===e.tagName||"INPUT"===e.tagName||"TEXTAREA"===e.tagName||"SELECT"===e.tagName||"true"===o||i);return t?-1!==n&&a:a}function F(e){return!!(e&&e.getAttribute&&e.getAttribute(A))}function I(e){return!(!e||!e.getAttribute||"true"!==e.getAttribute(L))}var N=void 0;function V(e){if(e){var t=(0,s.J)(e);t&&(void 0!==N&&t.cancelAnimationFrame(N),N=t.requestAnimationFrame((function(){e&&e.focus(),N=void 0})))}}function O(e,t,n,r){return e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n,r)}}function H(e,n){for(var r=(0,t.pi)({},n),o=0,i=Object.keys(e);o<i.length;o++){var a=i[o];void 0===r[a]&&(r[a]=e[a])}return r}var B=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n={},r=0,o=e;r<o.length;r++)for(var i=o[r],a=0,s=Array.isArray(i)?i:Object.keys(i);a<s.length;a++)n[s[a]]=1;return n},R=B(["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"]),z=B(["accessKey","children","className","contentEditable","dir","draggable","hidden","htmlFor","id","lang","ref","role","style","tabIndex","title","translate","spellCheck","name"]),W=B(z,R),Y=(B(W,["form"]),B(W,["height","loop","muted","preload","src","width"])),Z=(B(Y,["poster"]),B(W,["start"]),B(W,["value"]),B(W,["download","href","hrefLang","media","rel","target","type"]),B(W,["autoFocus","disabled","form","formAction","formEncType","formMethod","formNoValidate","formTarget","type","value"])),q=(B(Z,["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"]),B(Z,["autoCapitalize","cols","dirname","form","maxLength","minLength","placeholder","readOnly","required","rows","wrap"]),B(Z,["form","multiple","required"]),B(W,["selected","value"]),B(W,["cellPadding","cellSpacing"]),B(W,["rowSpan","scope"]),B(W,["colSpan","headers","rowSpan","scope"]),B(W,["span"]),B(W,["span"]),B(W,["acceptCharset","action","encType","encType","method","noValidate","target"]),B(W,["allow","allowFullScreen","allowPaymentRequest","allowTransparency","csp","height","importance","referrerPolicy","sandbox","src","srcDoc","width"]),B(W,["alt","crossOrigin","height","src","srcSet","useMap","width"]),W);function X(e,t,n){for(var r=Array.isArray(t),o={},i=0,a=Object.keys(e);i<a.length;i++){var s=a[i];!(!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))||(o[s]=e[s])}return o}function U(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=[],r=0,o=e;r<o.length;r++){var i=o[r];if(i)if("string"==typeof i)n.push(i);else if(i.hasOwnProperty("toString")&&"function"==typeof i.toString)n.push(i.toString());else for(var a in i)i[a]&&n.push(a)}return n.join(" ")}function j(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return G.apply(this,[null,e].concat(t))}function G(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];t=t||{};for(var o=0,i=n;o<i.length;o++){var a=i[o];if(a)for(var s in a)!a.hasOwnProperty(s)||e&&!e(s)||(t[s]=a[s])}return t}var K,$,J,Q=n(13),ee=((0,Q.y)({overflow:"hidden !important"}),"data-is-scrollable");function te(e){for(var t=e,n=(0,C.M)(e);t&&t!==n.body;){if("true"===t.getAttribute(ee))return t;t=t.parentElement}for(t=e;t&&t!==n.body;){if("false"!==t.getAttribute(ee)){var r=getComputedStyle(t),o=r?r.getPropertyValue("overflow-y"):"";if(o&&("scroll"===o||"auto"===o))return t}t=t.parentElement}return t&&t!==n.body||(t=(0,s.J)(e)),t}!function(e){e[e.top=1]="top",e[e.bottom=-1]="bottom",e[e.left=2]="left",e[e.right=-2]="right"}($||($={})),function(e){e[e.top=0]="top",e[e.bottom=1]="bottom",e[e.start=2]="start",e[e.end=3]="end"}(J||(J={}));var ne,re=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 oe(e,t,n){return{targetEdge:e,alignmentEdge:t,isAuto:n}}var ie=((ne={})[_.topLeftEdge]=oe($.top,$.left),ne[_.topCenter]=oe($.top),ne[_.topRightEdge]=oe($.top,$.right),ne[_.topAutoEdge]=oe($.top,void 0,!0),ne[_.bottomLeftEdge]=oe($.bottom,$.left),ne[_.bottomCenter]=oe($.bottom),ne[_.bottomRightEdge]=oe($.bottom,$.right),ne[_.bottomAutoEdge]=oe($.bottom,void 0,!0),ne[_.leftTopEdge]=oe($.left,$.top),ne[_.leftCenter]=oe($.left),ne[_.leftBottomEdge]=oe($.left,$.bottom),ne[_.rightTopEdge]=oe($.right,$.top),ne[_.rightCenter]=oe($.right),ne[_.rightBottomEdge]=oe($.right,$.bottom),ne);function ae(e,t){return!(e.top<t.top||e.bottom>t.bottom||e.left<t.left||e.right>t.right)}function se(e,t){var n=[];return e.top<t.top&&n.push($.top),e.bottom>t.bottom&&n.push($.bottom),e.left<t.left&&n.push($.left),e.right>t.right&&n.push($.right),n}function le(e,t){return e[$[t]]}function ce(e,t,n){return e[$[t]]=n,e}function ue(e,t){var n=Ce(t);return(le(e,n.positiveEdge)+le(e,n.negativeEdge))/2}function de(e,t){return e>0?t:-1*t}function he(e,t){return de(e,le(t,e))}function pe(e,t,n){return de(n,le(e,n)-le(t,n))}function fe(e,t,n,r){void 0===r&&(r=!0);var o=le(e,t)-n,i=ce(e,t,n);return r&&(i=ce(e,-1*t,le(e,-1*t)-o)),i}function ge(e,t,n,r){return void 0===r&&(r=0),fe(e,n,le(t,n)+de(n,r))}function me(e,t,n){return he(n,e)>he(n,t)}function ve(e,t){for(var n=0,r=0,o=se(e,t);r<o.length;r++){var i=o[r];n+=Math.pow(pe(e,t,i),2)}return n}function _e(e,t,n,r){return void 0===r&&(r=200),(n===$.bottom||n===$.top)&&pe(e,t,n)>=r}function ye(e,t,n,r){for(var o=0,i=e;o<i.length;o++){var a=i[o],s=void 0;r&&r===-1*a?(s=fe(t.elementRectangle,a,le(n,a),!1),t.forcedInBounds=!0):me(s=ge(t.elementRectangle,n,a),n,-1*a)||(s=fe(s,-1*a,le(n,-1*a),!1),t.forcedInBounds=!0),t.elementRectangle=s}return t}function xe(e,t,n){var r=Ce(t).positiveEdge;return fe(e,r,n-(ue(e,t)-le(e,r)))}function be(e,t,n,r,o){void 0===r&&(r=0);var i=new re(e.left,e.right,e.top,e.bottom),a=n.alignmentEdge,s=n.targetEdge,l=o?s:-1*s;return i=o?ge(i,t,s,r):function(e,t,n,r){void 0===r&&(r=0);var o=de(-1*n,r);return fe(e,-1*n,le(t,n)+o)}(i,t,s,r),i=a?ge(i,t,a):xe(i,l,ue(t,s))}function Ce(e){return e===$.top||e===$.bottom?{positiveEdge:$.left,negativeEdge:$.right}:{positiveEdge:$.top,negativeEdge:$.bottom}}function Ee(e,t,n){return n&&Math.abs(pe(e,n,t))>Math.abs(pe(e,n,-1*t))?-1*t:t}function Se(e,t,n,r,o,i,a,s){var l,c={},u=ke(t),d=i?n:-1*n,h=o||Ce(n).positiveEdge;return a&&!function(e,t,n){return void 0!==n&&le(e,t)===le(n,t)}(e,(l=h,-1*l),r)||(h=Ee(e,h,r)),c[$[d]]=pe(e,u,d),c[$[h]]=pe(e,u,h),s&&(c[$[-1*d]]=pe(e,u,-1*d),c[$[-1*h]]=pe(e,u,-1*h)),c}function Ae(e,t,n){var r=ue(t,e),o=ue(n,e),i=Ce(e),a=i.positiveEdge,s=i.negativeEdge;return r<=o?a:s}function Le(e,t,n,r,o,i,s,l,c){void 0===i&&(i=!1);var u=be(e,t,r,o,c);return ae(u,n)?{elementRectangle:u,targetEdge:r.targetEdge,alignmentEdge:r.alignmentEdge}:function(e,t,n,r,o,i,s,l,c){void 0===o&&(o=!1),void 0===s&&(s=0);var u=r.alignmentEdge,d=r.alignTargetEdge,h={elementRectangle:e,targetEdge:r.targetEdge,alignmentEdge:u};l||c||(h=function(e,t,n,r,o,i,s){void 0===o&&(o=!1),void 0===s&&(s=0);var l=[$.left,$.right,$.bottom,$.top];(0,a.zg)()&&(l[0]*=-1,l[1]*=-1);for(var c,u=e,d=r.targetEdge,h=r.alignmentEdge,p=d,f=h,g=0;g<4;g++){if(me(u,n,d))return{elementRectangle:u,targetEdge:d,alignmentEdge:h};if(o&&_e(t,n,d,i)){switch(d){case $.bottom:u.bottom=n.bottom;break;case $.top:u.top=n.top}return{elementRectangle:u,targetEdge:d,alignmentEdge:h,forcedInBounds:!0}}var m=ve(u,n);(!c||m<c)&&(c=m,p=d,f=h),l.splice(l.indexOf(d),1),l.length>0&&(l.indexOf(-1*d)>-1?d*=-1:(h=d,d=l.slice(-1)[0]),u=be(e,t,{targetEdge:d,alignmentEdge:h},s))}return{elementRectangle:u=be(e,t,{targetEdge:p,alignmentEdge:f},s),targetEdge:p,alignmentEdge:f}}(e,t,n,r,o,i,s));var p=se(h.elementRectangle,n),f=l?-h.targetEdge:void 0;if(p.length>0)if(d)if(h.alignmentEdge&&p.indexOf(-1*h.alignmentEdge)>-1){var g=function(e,t,n,r){var o=e.alignmentEdge,i=e.targetEdge,a=-1*o;return{elementRectangle:be(e.elementRectangle,t,{targetEdge:i,alignmentEdge:a},n,r),targetEdge:i,alignmentEdge:a}}(h,t,s,c);if(ae(g.elementRectangle,n))return g;h=ye(se(g.elementRectangle,n),h,n,f)}else h=ye(p,h,n,f);else h=ye(p,h,n,f);return h}(u,t,n,r,i,s,o,l,c)}function ke(e){var t=e.getBoundingClientRect();return new re(t.left,t.right,t.top,t.bottom)}function Te(e,n,r,o,i,s){void 0===i&&(i=!1);var l=e.gapSpace?e.gapSpace:0,c=function(e,t){var n;if(t){if(t.preventDefault){var r=t;n=new re(r.clientX,r.clientX,r.clientY,r.clientY)}else if(t.getBoundingClientRect)n=ke(t);else{var o=t,i=o.left||o.x,a=o.top||o.y,s=o.right||i,l=o.bottom||a;n=new re(i,s,a,l)}if(!ae(n,e))for(var c=0,u=se(n,e);c<u.length;c++){var d=u[c];n[$[d]]=e[$[d]]}}else n=new re(0,0,0,0);return n}(r,e.target),u=function(e,t,n,r,o){return e.isAuto&&(e.alignmentEdge=Ae(e.targetEdge,t,n)),e.alignTargetEdge=o,e}(function(e,n,r){if(void 0===e&&(e=_.bottomAutoEdge),r)return{alignmentEdge:r.alignmentEdge,isAuto:r.isAuto,targetEdge:r.targetEdge};var o=(0,t.pi)({},ie[e]);return(0,a.zg)()?(o.alignmentEdge&&o.alignmentEdge%2==0&&(o.alignmentEdge=-1*o.alignmentEdge),void 0!==n?ie[n]:o):o}(e.directionalHint,e.directionalHintForRTL,o),c,r,e.coverTarget,e.alignTargetEdge),d=Le(ke(n),c,r,u,l,i,s,e.directionalHintFixed,e.coverTarget);return(0,t.pi)((0,t.pi)({},d),{targetRectangle:c})}function we(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=0),function(e){return Math.sqrt(e*e*2)}(e?t:0)/2+n}function De(e,n,r,o,i,a,l,c){void 0===i&&(i=!1);var u=null!=c?c:(0,s.J)(),d=e.isBeakVisible&&e.beakWidth||0,h=we(e.isBeakVisible,e.beakWidth,e.gapSpace),p=e;p.gapSpace=h;var f,g,m,v,_,y,x,b,E,S=e.bounds?(E=e.bounds,new re(E.left,E.right,E.top,E.bottom)):new re(0,u.innerWidth-function(e){if(void 0===K){var t=(0,C.M)(),n=t.createElement("div");n.style.setProperty("width","100px"),n.style.setProperty("height","100px"),n.style.setProperty("overflow","scroll"),n.style.setProperty("position","absolute"),n.style.setProperty("top","-9999px"),t.body.appendChild(n),K=n.offsetWidth-n.clientWidth,t.body.removeChild(n)}return K}(),0,u.innerHeight),A=Te(p,r,S,o,i,a),L=(f=A,g=function(e,t){var n=t.targetRectangle,r=Ce(t.targetEdge),o=r.positiveEdge,i=r.negativeEdge,a=ue(n,t.targetEdge),s=new re(e/2,t.elementRectangle.width-e/2,e/2,t.elementRectangle.height-e/2),l=new re(0,e,0,e);return me(l=xe(l=fe(l,-1*t.targetEdge,-e/2),-1*t.targetEdge,a-he(o,t.elementRectangle)),s,o)?me(l,s,i)||(l=ge(l,s,i)):l=ge(l,s,o),l}(d,A),m=S,v=-1*f.targetEdge,_=new re(0,f.elementRectangle.width,0,f.elementRectangle.height),y={},x=Ee(f.elementRectangle,f.alignmentEdge?f.alignmentEdge:Ce(v).positiveEdge,m),b=pe(f.elementRectangle,f.targetRectangle,v)>Math.abs(le(g,v)),y[$[v]]=le(g,v),y[$[x]]=pe(g,_,x),{elementPosition:(0,t.pi)({},y),closestEdge:Ae(f.targetEdge,g,_),targetEdge:v,hideBeak:!b});return(0,t.pi)((0,t.pi)({},function(e,t,n,r,o){return{elementPosition:Se(e.elementRectangle,t,e.targetEdge,n,e.alignmentEdge,r,o,e.forcedInBounds),targetEdge:e.targetEdge,alignmentEdge:e.alignmentEdge}}(A,n,S,e.coverTarget,l)),{beakPosition:L})}var Me=["TEMPLATE","STYLE","SCRIPT"];function Pe(e){var t=(0,C.M)(e);if(!t)return function(){};for(var n=[];e!==t.body&&e.parentElement;){for(var r=0,o=e.parentElement.children;r<o.length;r++){var i=o[r],a=i.getAttribute("aria-hidden");i!==e&&"true"!==(null==a?void 0:a.toLowerCase())&&-1===Me.indexOf(i.tagName)&&n.push([i,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 Fe=27,Ie=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,o=(0,s.J)(t);return this._isDisposed||(this._immediateIds||(this._immediateIds={}),r=o.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=(0,s.J)(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 o,i,a=t||0,s=!0,l=!0,c=0,u=null;n&&"boolean"==typeof n.leading&&(s=n.leading),n&&"boolean"==typeof n.trailing&&(l=n.trailing);var d=function(t){var n=Date.now(),h=n-c,p=s?a-h:a;return h>=a&&(!t||s)?(c=n,u&&(r.clearTimeout(u),u=null),o=e.apply(r._parent,i)):null===u&&l&&(u=r.setTimeout(d,p)),o};return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i=e,d(!0)}},e.prototype.debounce=function(e,t,n){var r=this;if(this._isDisposed){var o=function(){};return o.cancel=function(){},o.flush=function(){return null},o.pending=function(){return!1},o}var i,a,s=t||0,l=!1,c=!0,u=null,d=0,h=Date.now(),p=null;n&&"boolean"==typeof n.leading&&(l=n.leading),n&&"boolean"==typeof n.trailing&&(c=n.trailing),n&&"number"==typeof n.maxWait&&!isNaN(n.maxWait)&&(u=n.maxWait);var f=function(e){p&&(r.clearTimeout(p),p=null),h=e},g=function(t){f(t),i=e.apply(r._parent,a)},m=function(e){var t=Date.now(),n=!1;e&&(l&&t-d>=s&&(n=!0),d=t);var o=t-d,a=s-o,f=t-h,v=!1;return null!==u&&(f>=u&&p?v=!0:a=Math.min(a,u-f)),o>=s||v||n?g(t):null!==p&&e||!c||(p=r.setTimeout(m,a)),i},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()),i},_.pending=v,_},e.prototype.requestAnimationFrame=function(e,t){var n=this,r=0,o=(0,s.J)(t);if(!this._isDisposed){this._animationFrameIds||(this._animationFrameIds={});var i=function(){try{n._animationFrameIds&&delete n._animationFrameIds[r],e.apply(n._parent)}catch(e){n._logError(e)}};r=o.requestAnimationFrame?o.requestAnimationFrame(i):o.setTimeout(i,0),this._animationFrameIds[r]=!0}return r},e.prototype.cancelAnimationFrame=function(e,t){var n=(0,s.J)(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 Ne(){var e=o.useRef();return e.current||(e.current=new Ie),o.useEffect((function(){return function(){var t;null===(t=e.current)||void 0===t||t.dispose(),e.current=void 0}}),[]),e.current}function Ve(e,t,n,r){var i=o.useRef(n);i.current=n,o.useEffect((function(){var n=e&&"current"in e?e.current:e;if(n&&n.addEventListener)return O(n,t,(function(e){return i.current(e)}),r)}),[e,t,r])}function Oe(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=o.useCallback((function(t){r.current=t;for(var n=0,o=e;n<o.length;n++){var i=o[n];"function"==typeof i?i(t):i&&(i.current=t)}}),(0,t.ev)([],e,!0));return r}var He=o.createContext({window:"object"==typeof window?window:void 0}),Be=function(){return o.useContext(He).window},Re=function(){var e;return null===(e=o.useContext(He).window)||void 0===e?void 0:e.document};function ze(e){var t=e.originalElement,n=e.containsFocus;t&&n&&t!==(0,s.J)()&&setTimeout((function(){var e;null===(e=t.focus)||void 0===e||e.call(t)}),0)}var We=o.forwardRef((function(e,n){var r=H({shouldRestoreFocus:!0,enableAriaHiddenSiblings:!0},e),i=o.useRef(),a=Oe(i,n);!function(e,t){var n="true"===String(e["aria-modal"]).toLowerCase()&&e.enableAriaHiddenSiblings;o.useEffect((function(){if(n&&t.current)return Pe(t.current)}),[t,n])}(r,i),function(e,t){var n=e.onRestoreFocus,r=void 0===n?ze:n,i=o.useRef(),a=o.useRef(!1);o.useEffect((function(){var e,n,o;return i.current=(0,C.M)().activeElement,e=t.current,(o=(n=(0,C.M)(e))&&n.activeElement)&&b(e,o)&&(a.current=!0),function(){var e;null==r||r({originalElement:i.current,containsFocus:a.current,documentContainsFocus:(null===(e=(0,C.M)())||void 0===e?void 0:e.hasFocus())||!1}),i.current=void 0}}),[]),Ve(t,"focus",o.useCallback((function(){a.current=!0}),[]),!0),Ve(t,"blur",o.useCallback((function(e){t.current&&e.relatedTarget&&!t.current.contains(e.relatedTarget)&&(a.current=!1)}),[]),!0)}(r,i);var s=r.role,l=r.className,c=r.ariaLabel,u=r.ariaLabelledBy,d=r.ariaDescribedBy,h=r.style,p=r.children,f=r.onDismiss,g=function(e,t){var n=Ne(),r=o.useState(!1),i=r[0],a=r[1];return o.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 o=t.current.clientHeight,s=t.current.firstElementChild.clientHeight;o>0&&s>o&&(r=s-o>1)}i!==r&&a(r)}})),function(){return n.dispose()}})),i}(r,i),m=o.useCallback((function(e){e.which===Fe&&f&&(f(e),e.preventDefault(),e.stopPropagation())}),[f]);return Ve(Be(),"keydown",m),o.createElement("div",(0,t.pi)({ref:a},X(r,q),{className:l,role:s,"aria-label":c,"aria-labelledby":u,"aria-describedby":d,onKeyDown:m,style:(0,t.pi)({overflowY:g?"scroll":void 0,outline:"none"},h)}),p)}));We.displayName="Popup";var Ye=n(1786);function Ze(e){var t=o.useRef();return void 0===t.current&&(t.current={value:"function"==typeof e?e():e}),t.current.value}var qe,Xe=function(){var e;return(null!==(e=Be())&&void 0!==e?e:"undefined"!=typeof window)?window:void 0},Ue=function(e){var t,n;return(null!==(n=null===(t=null==e?void 0:e.window)||void 0===t?void 0:t.document)&&void 0!==n?n:"undefined"!=typeof document)?document:void 0},je=((qe={})[$.top]=Ye.k4.slideUpIn10,qe[$.bottom]=Ye.k4.slideDownIn10,qe[$.left]=Ye.k4.slideLeftIn10,qe[$.right]=Ye.k4.slideRightIn10,qe),Ge={opacity:0,filter:"opacity(0)",pointerEvents:"none"},Ke=["role","aria-roledescription"],$e={preventDismissOnLostFocus:!1,preventDismissOnScroll:!1,preventDismissOnResize:!1,isBeakVisible:!0,beakWidth:16,gapSpace:0,minPagePadding:8,directionalHint:_.bottomAutoEdge},Je=(0,i.y)({disableCaching:!0});function Qe(e,t,n,r){var i,a=e.calloutMaxHeight,s=e.finalHeight,l=e.directionalHint,c=e.directionalHintFixed,u=e.hidden,d=e.gapSpace,h=e.beakWidth,p=e.isBeakVisible,f=e.coverTarget,g=o.useState(),m=g[0],v=g[1],_=null!==(i=null==r?void 0:r.elementPosition)&&void 0!==i?i:{},y=_.top,x=_.bottom,b=(null==n?void 0:n.current)?function(e){var t,n,r,o,i=e,a=e,s=e,l=null!==(t=s.left)&&void 0!==t?t:s.x,c=null!==(n=s.top)&&void 0!==n?n:s.y,u=null!==(r=s.right)&&void 0!==r?r:l,d=null!==(o=s.bottom)&&void 0!==o?o:c;return i.stopPropagation?new re(i.clientX,i.clientX,i.clientY,i.clientY):void 0!==l&&void 0!==c?new re(l,u,c,d):ke(a)}(n.current):void 0;return o.useEffect((function(){var e,n,o=null!==(e=t())&&void 0!==e?e:{},i=o.top,s=o.bottom;(null==r?void 0:r.targetEdge)===$.top&&(null==b?void 0:b.top)&&!f&&(s=b.top-function(e,t,n){return we(e,t,n)}(p,h,d)),"number"==typeof y&&s?n=s-y:"number"==typeof x&&"number"==typeof i&&s&&(n=s-i-x),v(!a&&!u||a&&n&&a>n?n:a||void 0)}),[x,a,s,l,c,t,u,r,y,d,h,p,b,f]),m}function et(e,n,r,i,a,l){var c,u=o.useState(),d=u[0],h=u[1],p=o.useRef(0),f=o.useRef(),g=Ne(),m=e.hidden,v=e.target,_=e.finalHeight,y=e.calloutMaxHeight,x=e.onPositioned,b=e.directionalHint,C=e.hideOverflow,E=e.preferScrollResizePositioning,S=Xe(),A=o.useRef();A.current!==l.current&&(A.current=l.current,c=l.current?null==S?void 0:S.getComputedStyle(l.current):void 0);var L=null==c?void 0:c.overflowY;return o.useEffect((function(){if(!m){var o=g.requestAnimationFrame((function(){var o,l,c,u;if(n.current&&r){var g=(0,t.pi)((0,t.pi)({},e),{target:i.current,bounds:a()}),m=r.cloneNode(!0);m.style.maxHeight=y?"".concat(y):"",m.style.visibility="hidden",null===(o=r.parentElement)||void 0===o||o.appendChild(m);var b=f.current===v?d:void 0,A=E&&!(C||"clip"===L||"hidden"===L),k=_?function(e,t,n,r,o){return function(e,t,n,r,o){return De(e,t,n,r,!1,void 0,!0,null!=o?o:(0,s.J)())}(e,t,n,r,o)}(g,n.current,m,b,S):function(e,t,n,r,o,i,a){return De(e,t,n,r,o,void 0,void 0,a)}(g,n.current,m,b,A,0,S);null===(l=r.parentElement)||void 0===l||l.removeChild(m),!d&&k||d&&k&&(u=k,!rt((c=d).elementPosition,u.elementPosition)||!rt(c.beakPosition.elementPosition,u.beakPosition.elementPosition))&&p.current<5?(p.current++,h(k)):p.current>0&&(p.current=0,null==x||x(d))}}),r);return f.current=v,function(){g.cancelAnimationFrame(o),f.current=void 0}}h(void 0),p.current=0}),[m,b,g,r,y,n,i,_,a,x,d,e,v,C,E,L,S]),d}var tt=o.memo(o.forwardRef((function(e,n){var r=H($e,e),i=r.styles,a=r.style,s=r.ariaLabel,l=r.ariaDescribedBy,c=r.ariaLabelledBy,u=r.className,d=r.isBeakVisible,h=r.children,p=r.beakWidth,f=r.calloutWidth,g=r.calloutMaxWidth,m=r.calloutMinWidth,v=r.doNotLayer,_=r.finalHeight,y=r.hideOverflow,x=void 0===y?!!_:y,E=r.backgroundColor,S=r.calloutMaxHeight,A=r.onScroll,L=r.shouldRestoreFocus,T=void 0===L||L,w=r.target,D=r.hidden,M=r.onLayerMounted,P=r.popupProps,F=o.useRef(null),I=Oe(o.useRef(null),null==P?void 0:P.ref),N=o.useState(null),V=N[0],B=N[1],R=o.useCallback((function(e){B(e)}),[]),z=Oe(F,n),W=function(e,t){var n=o.useRef(),r=o.useRef(null),i=Be();if(!e||e!==n.current||"string"==typeof e){var a=null==t?void 0:t.current;if(e)if("string"==typeof e){var s=(0,C.M)(a);r.current=s?s.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]}(r.target,{current:V}),Y=W[0],Z=W[1],j=function(e,t,n){var r=e.bounds,i=e.minPagePadding,a=void 0===i?$e.minPagePadding:i,s=e.target,l=o.useState(!1),c=l[0],u=l[1],d=o.useRef(),h=o.useCallback((function(){if(!d.current||c){var e="function"==typeof r?n?r(s,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,o=0;if(null!==e&&e.getBoundingClientRect){var i=e.getBoundingClientRect();r=(i.left+i.right)/2,o=(i.top+i.bottom)/2}else null!==e&&(r=e.left||e.x,o=e.top||e.y);for(var a={top:0,left:0,right:0,bottom:0,width:0,height:0},s=0,l=n;s<l.length;s++){var c=l[s];r&&c.left<=r&&c.right>=r&&o&&c.top<=o&&c.bottom>=o&&(a={top:c.top,left:c.left,right:c.right,bottom:c.bottom,width:c.width,height:c.height})}return a}(e,t)}(t.current,n),e={top:e.top+a,left:e.left+a,right:e.right-a,bottom:e.bottom-a,width:e.width-2*a,height:e.height-2*a}),d.current=e,c&&u(!1)}return d.current}),[r,a,s,t,n,c]),p=Ne();return Ve(n,"resize",p.debounce((function(){u(!0)}),500,{leading:!0})),h}(r,Y,Z),G=et(r,F,V,Y,j,I),K=Qe(r,j,Y,G),$=function(e,t,n,r,i){var a=e.hidden,s=e.onDismiss,l=e.preventDismissOnScroll,c=e.preventDismissOnResize,u=e.preventDismissOnLostFocus,d=e.dismissOnTargetClick,h=e.shouldDismissOnWindowFocus,p=e.preventDismissOnEvent,f=o.useRef(!1),g=Ne(),m=Ze([function(){f.current=!0},function(){f.current=!1}]),v=!!t;return o.useEffect((function(){var e=function(e){v&&!l&&m(e)},t=function(e){c||p&&p(e)||null==s||s(e)},o=function(e){u||m(e)},m=function(e){var t=e.composedPath?e.composedPath():[],o=t.length>0?t[0]:e.target,a=n.current&&!b(n.current,o);if(a&&f.current)f.current=!1;else if(!r.current&&a||e.target!==i&&a&&(!r.current||"stopPropagation"in r.current||d||o!==r.current&&!b(r.current,o))){if(p&&p(e))return;null==s||s(e)}},_=function(e){h&&((!p||p(e))&&(p||u)||(null==i?void 0:i.document.hasFocus())||null!==e.relatedTarget||null==s||s(e))},y=new Promise((function(n){g.setTimeout((function(){if(!a&&i){var r=[O(i,"scroll",e,!0),O(i,"resize",t,!0),O(i.document.documentElement,"focus",o,!0),O(i.document.documentElement,"click",o,!0),O(i,"blur",_,!0)];n((function(){r.forEach((function(e){return e()}))}))}}),0)}));return function(){y.then((function(e){return e()}))}}),[a,g,n,r,i,s,h,d,u,c,l,v,p]),m}(r,G,F,Y,Z),J=$[0],Q=$[1],ee=(null==G?void 0:G.elementPosition.top)&&(null==G?void 0:G.elementPosition.bottom),te=(0,t.pi)((0,t.pi)({},null==G?void 0:G.elementPosition),{maxHeight:K});if(ee&&(te.bottom=void 0),function(e,t,n){var r=e.hidden,i=e.setInitialFocus,a=Ne(),s=!!t;o.useEffect((function(){if(!r&&i&&s&&n){var e=a.requestAnimationFrame((function(){return k(n)}),n);return function(){return a.cancelAnimationFrame(e)}}}),[r,s,a,n,i])}(r,G,V),o.useEffect((function(){D||null==M||M()}),[D]),!Z)return null;var ne=x,re=d&&!!w,oe=Je(i,{theme:r.theme,className:u,overflowYHidden:ne,calloutWidth:f,positions:G,beakWidth:p,backgroundColor:E,calloutMaxWidth:g,calloutMinWidth:m,doNotLayer:v}),ie=(0,t.pi)((0,t.pi)({maxHeight:S||"100%"},a),ne&&{overflowY:"hidden"}),ae=r.hidden?{visibility:"hidden"}:void 0;return o.createElement("div",{ref:z,className:oe.container,style:ae},o.createElement("div",(0,t.pi)({},X(r,q,Ke),{className:U(oe.root,G&&G.targetEdge&&je[G.targetEdge]),style:G?(0,t.pi)({},te):Ge,tabIndex:-1,ref:R}),re&&o.createElement("div",{className:oe.beak,style:nt(G)}),re&&o.createElement("div",{className:oe.beakCurtain}),o.createElement(We,(0,t.pi)({role:r.role,"aria-roledescription":r["aria-roledescription"],ariaDescribedBy:l,ariaLabel:s,ariaLabelledBy:c,className:oe.calloutMain,onDismiss:r.onDismiss,onMouseDown:J,onMouseUp:Q,onRestoreFocus:r.onRestoreFocus,onScroll:A,shouldRestoreFocus:T,style:ie},P,{ref:I}),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 nt(e){var n,r,o=(0,t.pi)((0,t.pi)({},null===(n=null==e?void 0:e.beakPosition)||void 0===n?void 0:n.elementPosition),{display:(null===(r=null==e?void 0:e.beakPosition)||void 0===r?void 0:r.hideBeak)?"none":void 0});return o.top||o.bottom||o.left||o.right||(o.left=0,o.top=0),o}function rt(e,t){for(var n in t)if(t.hasOwnProperty(n)){var r=e[n],o=t[n];if(void 0===r||void 0===o)return!1;if(r.toFixed(2)!==o.toFixed(2))return!1}return!0}function ot(e){return{height:e,width:e}}tt.displayName="CalloutContentBase";var it={container:"ms-Callout-container",root:"ms-Callout",beak:"ms-Callout-beak",beakCurtain:"ms-Callout-beakCurtain",calloutMain:"ms-Callout-main"},at=(0,e.z)(tt,(function(e){var t,n=e.theme,r=e.className,o=e.overflowYHidden,i=e.calloutWidth,a=e.beakWidth,s=e.backgroundColor,l=e.calloutMaxWidth,c=e.calloutMinWidth,u=e.doNotLayer,d=(0,Ye.Cn)(it,n),h=n.semanticColors,p=n.effects;return{container:[d.container,{position:"relative"}],root:[d.root,n.fonts.medium,{position:"absolute",display:"flex",zIndex:u?Ye.bR.Layer:void 0,boxSizing:"border-box",borderRadius:p.roundedCorner2,boxShadow:p.elevation16,selectors:(t={},t[Ye.qJ]={borderWidth:1,borderStyle:"solid",borderColor:"WindowText"},t)},(0,Ye.e2)(),r,!!i&&{width:i},!!l&&{maxWidth:l},!!c&&{minWidth:c}],beak:[d.beak,{position:"absolute",backgroundColor:h.menuBackground,boxShadow:"inherit",border:"inherit",boxSizing:"border-box",transform:"rotate(45deg)"},ot(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},o&&{overflowY:"hidden"},s&&{backgroundColor:s}]}}),void 0,{scope:"CalloutContent"}),st=o.createContext(void 0),lt=function(){return function(){}};st.Provider;var ct=ReactDOM,ut=n(156);new WeakMap,new WeakMap;var dt=o.createContext(void 0),ht=function(e){var t=e.providerRef,n=e.layerRoot,r=o.useState([])[0],i=o.useContext(dt),a=void 0!==i&&!n,s=o.useMemo((function(){return a?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,a]);return o.useEffect((function(){if(s)return s.registerProvider(s.providerRef),function(){return s.unregisterProvider(s.providerRef)}}),[s]),s?o.createElement(dt.Provider,{value:s},e.children):o.createElement(o.Fragment,null,e.children)},pt=n(775),ft=n(2049);function gt(e,n){void 0===e&&(e={});var r=mt(n)?n:function(e){return function(n){return e?(0,t.pi)((0,t.pi)({},n),e):n}}(n);return r(e)}function mt(e){return"function"==typeof e}var vt=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t._onCustomizationChange=function(){return t.forceUpdate()},t}return(0,t.ZT)(n,e),n.prototype.componentDidMount=function(){pt.X.observe(this._onCustomizationChange)},n.prototype.componentWillUnmount=function(){pt.X.unobserve(this._onCustomizationChange)},n.prototype.render=function(){var e=this,n=this.props.contextTransform;return o.createElement(ft.i.Consumer,null,(function(r){var i=function(e,n){var r,o,i,a=(n||{}).customizations,s=void 0===a?{settings:{},scopedSettings:{}}:a;return{customizations:{settings:gt(s.settings,e.settings),scopedSettings:(r=s.scopedSettings,o=e.scopedSettings,void 0===r&&(r={}),(mt(o)?o:(void 0===(i=o)&&(i={}),function(e){var n=(0,t.pi)({},e);for(var r in i)i.hasOwnProperty(r)&&(n[r]=(0,t.pi)((0,t.pi)({},e[r]),i[r]));return n}))(r)),inCustomizerContext:!0}}}(e.props,r);return n&&(i=n(i)),o.createElement(ft.i.Provider,{value:i},e.props.children)}))},n}(o.Component),_t=n(685),yt=(0,i.y)(),xt=(0,ut.NF)((function(e,n){return(0,_t.j)((0,t.pi)((0,t.pi)({},e),{rtl:n}))})),bt=o.forwardRef((function(e,n){var r=e.className,i=e.theme,s=e.applyTheme,l=e.applyThemeToBody,c=e.styles,u=yt(c,{theme:i,applyTheme:s,className:r}),d=o.useRef(null);return function(e,t,n){var r=t.bodyThemed;o.useEffect((function(){if(e){var t=(0,C.M)(n.current);if(t)return t.body.classList.add(r),function(){t.body.classList.remove(r)}}}),[r,e,n])}(l,u,d),o.createElement(o.Fragment,null,function(e,n,r,i){var s=n.root,l=e.as,c=void 0===l?"div":l,u=e.dir,d=e.theme,h=X(e,q,["dir"]),p=function(e){var t=e.theme,n=e.dir,r=(0,a.zg)(t)?"rtl":"ltr",o=(0,a.zg)()?"rtl":"ltr",i=n||r;return{rootDir:i!==r||i!==o?i:n,needsTheme:i!==r}}(e),f=p.rootDir,g=p.needsTheme,m=o.createElement(ht,{providerRef:r},o.createElement(c,(0,t.pi)({dir:f},h,{className:s,ref:Oe(r,i)})));return g&&(m=o.createElement(vt,{settings:{theme:xt(d,"rtl"===u)}},m)),m}(e,u,d,n))}));bt.displayName="FabricBase";var Ct,Et={fontFamily:"inherit"},St={root:"ms-Fabric",bodyThemed:"ms-Fabric-bodyThemed"},At=(0,e.z)(bt,(function(e){var t=e.applyTheme,n=e.className,r=e.preventBlanketFontInheritance,o=e.theme;return{root:[(0,Ye.Cn)(St,o).root,o.fonts.medium,{color:o.palette.neutralPrimary},!r&&{"& button":Et,"& input":Et,"& textarea":Et},t&&{color:o.semanticColors.bodyText,backgroundColor:o.semanticColors.bodyBackground},n],bodyThemed:[{backgroundColor:o.semanticColors.bodyBackground}]}}),void 0,{scope:"Fabric"}),Lt=n(9766),kt="data-portal-element",Tt={},wt={},Dt="fluent-default-layer-host",Mt="#".concat(Dt),Pt=n(8873),Ft=(0,Pt.N)()?o.useLayoutEffect:o.useEffect,It=void 0;function Nt(e){It?It(e):console&&console.warn&&console.warn(e)}function Vt(e,t,n,r,o){if(!0===o)for(var i=0,a=n;i<a.length;i++){var s=a[i];s in t||Nt("".concat(e," property '").concat(s,"' is required when '").concat(r,"' is used.'"))}}function Ot(e,t,n){for(var r in n)if(t&&r in t){var o="".concat(e," property '").concat(r,"' was used but has been deprecated."),i=n[r];i&&(o+=" Use '".concat(i,"' instead.")),Nt(o)}}function Ht(e,t){return void 0!==e[t]&&null!==e[t]}function Bt(e){var t=(0,o.useRef)();return(0,o.useEffect)((function(){t.current=e})),t.current}Ct={valueOnChange:{},valueDefaultValue:{},controlledToUncontrolled:{},uncontrolledToControlled:{}};var Rt=0;function zt(e){var n=e.name,r=e.props,i=e.other,a=void 0===i?[]:i,s=e.conditionallyRequired,l=e.deprecations,c=e.mutuallyExclusive,u=e.controlledUsage,d=o.useRef(!1),h=Ze((function(){return"useWarnings_".concat(Rt++)})),p=Bt(r);if(!d.current){d.current=!0;for(var f=0,g=a;f<g.length;f++)Nt(g[f]);if(s)for(var m=0,v=s;m<v.length;m++){var _=v[m];Vt(n,r,_.requiredProps,_.conditionalPropName,_.condition)}l&&Ot(n,r,l),c&&function(e,t,n){for(var r in n)if(t&&void 0!==t[r]){var o=n[r];o&&void 0!==t[o]&&Nt("".concat(e," property '").concat(r,"' is mutually exclusive with '").concat(n[r],"'. ")+"Use one or the other.")}}(n,r,c)}u&&function(e){var t=e.componentId,n=e.componentName,r=e.defaultValueProp,o=e.props,i=e.oldProps,a=e.onChangeProp,s=e.readOnlyProp,l=e.valueProp,c=i?Ht(i,l):void 0,u=Ht(o,l);if(u){var d=!!o[a],h=!(!s||!o[s]);d||h||Ct.valueOnChange[t]||(Ct.valueOnChange[t]=!0,Nt("Warning: You provided a '".concat(String(l),"' prop to a ").concat(String(n)," without an '").concat(String(a),"' handler. ")+"This will render a read-only field. If the field should be mutable use '".concat(String(r),"'. ")+"Otherwise, set '".concat(String(a),"'").concat(s?" or '".concat(String(s),"'"):"","."))),null==o[r]||Ct.valueDefaultValue[t]||(Ct.valueDefaultValue[t]=!0,Nt("Warning: You provided both '".concat(String(l),"' and '").concat(String(r),"' to a ").concat(n,". ")+"Form fields must be either controlled or uncontrolled (specify either the '".concat(String(l),"' prop, ")+"or the '".concat(String(r),"' prop, but not both). Decide between using a controlled or uncontrolled ")+"".concat(n," and remove one of these props. More info: https://fb.me/react-controlled-components")))}if(i&&u!==c){var p=c?"a controlled":"an uncontrolled",f=c?"uncontrolled":"controlled",g=c?Ct.controlledToUncontrolled:Ct.uncontrolledToControlled;g[t]||(g[t]=!0,Nt("Warning: A component is changing ".concat(p," ").concat(n," to be ").concat(f,". ")+"".concat(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"))}}((0,t.pi)((0,t.pi)({},u),{componentId:h,props:r,componentName:n,oldProps:p}))}var Wt,Yt=(0,i.y)(),Zt=o.forwardRef((function(e,n){var r,i=null!==(r=o.useContext(st))&&void 0!==r?r:lt,a=o.useRef(null),s=Oe(a,n),l=o.useRef(),c=o.useRef(null),u=o.useContext(dt),d=o.useState(!1),h=d[0],p=d[1],f=o.useCallback((function(e){var t,n=!!(null==(t=null==u?void 0:u.providerRef)?void 0:t.current)&&t.current.classList.contains(Lt.G$);e&&n&&e.classList.add(Lt.G$)}),[u]),g=e.children,m=e.className,v=e.eventBubblingEnabled,_=e.fabricProps,y=e.hostId,x=e.insertFirst,b=e.onLayerDidMount,E=void 0===b?function(){}:b,S=e.onLayerMounted,A=void 0===S?function(){}:S,L=e.onLayerWillUnmount,k=e.styles,T=e.theme,w=Oe(c,null==_?void 0:_.ref,f),D=Yt(k,{theme:T,className:m,isNotHost:!y}),M=function(){null==L||L();var e=l.current;l.current=void 0,e&&e.parentNode&&e.parentNode.removeChild(e)},P=function(){var e,t=(0,C.M)(a.current);if(t){var n=function(e){var t,n;if(y){var r=function(e){var t=wt[e];return t&&t[0]||void 0}(y);return r?null!==(t=r.rootRef.current)&&void 0!==t?t:null:null!==(n=e.getElementById(y))&&void 0!==n?n:null}var o=Mt,i=o?e.querySelector(o):null;return i||(i=function(e){var t=e.createElement("div");return t.setAttribute("id",Dt),t.style.cssText="position:fixed;z-index:1000000",null==e||e.body.appendChild(t),t}(e)),i}(t);if(n){M();var r=(null!==(e=n.ownerDocument)&&void 0!==e?e:t).createElement("div");r.className=D.root,r.setAttribute(kt,"true"),function(e,t){var n=e,r=t;n._virtual||(n._virtual={children:[]});var o=n._virtual.parent;if(o&&o!==t){var i=o._virtual.children.indexOf(n);i>-1&&o._virtual.children.splice(i,1)}n._virtual.parent=r||void 0,r&&(r._virtual||(r._virtual={children:[]}),r._virtual.children.push(n))}(r,a.current),x?n.insertBefore(r,n.firstChild):n.appendChild(r),l.current=r,p(!0)}}};return Ft((function(){P(),y&&function(e,t){Tt[e]||(Tt[e]=[]),Tt[e].push(t);var n=wt[e];if(n)for(var r=0,o=n;r<o.length;r++)o[r].notifyLayersChanged()}(y,P);var e=l.current?i(l.current):void 0;return function(){e&&e(),M(),y&&function(e,t){var n=Tt[e];if(n){var r=n.indexOf(t);r>=0&&(n.splice(r,1),0===n.length&&delete Tt[e])}var o=wt[e];if(o)for(var i=0,a=o;i<a.length;i++)a[i].notifyLayersChanged()}(y,P)}}),[y]),o.useEffect((function(){l.current&&h&&(null==A||A(),null==E||E(),p(!1))}),[h,A,E]),function(e){zt({name:"Layer",props:e,deprecations:{onLayerMounted:"onLayerDidMount"}})}(e),o.createElement("span",{className:"ms-layer",ref:s},l.current&&ct.createPortal(o.createElement(ht,{layerRoot:!0,providerRef:w},o.createElement(At,(0,t.pi)({},!v&&(Wt||(Wt={},["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 Wt[e]=qt}))),Wt),_,{className:U(D.content,null==_?void 0:_.className),ref:w}),g)),l.current))}));Zt.displayName="LayerBase";var qt=function(e){e.eventPhase===Event.BUBBLING_PHASE&&"mouseenter"!==e.type&&"mouseleave"!==e.type&&"touchstart"!==e.type&&"touchend"!==e.type&&e.stopPropagation()},Xt={root:"ms-Layer",rootNoHost:"ms-Layer--fixed",content:"ms-Layer-content"},Ut=(0,e.z)(Zt,(function(e){var t=e.className,n=e.isNotHost,r=e.theme,o=(0,Ye.Cn)(Xt,r);return{root:[o.root,r.fonts.medium,n&&[o.rootNoHost,{position:"fixed",zIndex:Ye.bR.Layer,top:0,left:0,bottom:0,right:0,visibility:"hidden"}],t],content:[o.content,{visibility:"visible"}]}}),void 0,{scope:"Layer",fields:["hostId","theme","styles"]}),jt=o.forwardRef((function(e,n){var r=e.layerProps,i=e.doNotLayer,a=(0,t._T)(e,["layerProps","doNotLayer"]),s=o.createElement(at,(0,t.pi)({},a,{doNotLayer:i,ref:n}));return i?s:o.createElement(Ut,(0,t.pi)({},r),s)}));jt.displayName="Callout";var Gt,Kt=n(3813),$t=n(8024);function Jt(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 Qt(e){!function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=Jt(e,e[n],t[n]))}(e,{componentDidMount:en,componentDidUpdate:tn,componentWillUnmount:nn})}function en(){rn(this.props.componentRef,this)}function tn(e){e.componentRef!==this.props.componentRef&&(rn(e.componentRef,null),rn(this.props.componentRef,this))}function nn(){rn(this.props.componentRef,null)}function rn(e,t){e&&("object"==typeof e?e.current=t:"function"==typeof e&&e(t))}function on(e,t,n){var r=x(e,(function(e){return t===e||e.hasAttribute(kt)}),n);return null!==r&&r.hasAttribute(kt)}!function(e){e[e.vertical=0]="vertical",e[e.horizontal=1]="horizontal",e[e.bidirectional=2]="bidirectional",e[e.domOrder=3]="domOrder"}(Gt||(Gt={}));var an,sn="data-is-focusable",ln="data-focuszone-id",cn="tabindex",un="data-no-vertical-wrap",dn="data-no-horizontal-wrap",hn=999999999,pn=-999999999;function fn(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 gn,mn={},vn=new Set,_n=["text","number","password","email","tel","url","search","textarea"],yn=!1,xn=function(e){function n(t){var r,i,s,l,c,u=this;(u=e.call(this,t)||this)._root=o.createRef(),u._mergedRef=(c={refs:[]},function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return c.resolver&&function(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}(c.refs,e)||(c.resolver=function(e){return function(t){for(var n=0,r=e.refs;n<r.length;n++){var o=r[n];"function"==typeof o?o(t):o&&(o.current=t)}}}(c)),c.refs=e,c.resolver}),u._onFocus=function(e){if(!u._portalContainsElement(e.target)){var t,n=u.props,r=n.onActiveElementChanged,o=n.doNotAllowFocusEventToPropagate,i=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(P(h)&&u._isImmediateDescendantOfZone(h)){t=h;break}h=y(h,yn)}if(l&&e.target===u._root.current){var p=c&&"function"==typeof c&&u._root.current&&c(u._root.current);p&&P(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),(i||o)&&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=y(t,yn);for(;n.length&&((t=n.pop())&&P(t)&&u._setActiveElement(t,!0),!F(t)););}},u._onKeyDown=function(e,t){if(!u._portalContainsElement(e.target)){var n=u.props,r=n.direction,o=n.disabled,i=n.isInnerZoneKeystroke,s=n.pagingSupportDisabled,l=n.shouldEnterInnerZone;if(!(o||(u.props.onKeyDown&&u.props.onKeyDown(e),e.isDefaultPrevented()||u._getDocument().activeElement===u._root.current&&u._isInnerZone))){if((l&&l(e)||i&&i(e))&&u._isImmediateDescendantOfZone(e.target)){var c=u._getFirstInnerZone();if(c){if(!c.focus(!0))return}else{if(!I(e.target))return;if(!u.focusElement(w(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!==Gt.vertical&&(u._preventDefaultWhenHandled(e),u._moveFocusLeft(t)))break;return;case 39:if(r!==Gt.vertical&&(u._preventDefaultWhenHandled(e),u._moveFocusRight(t)))break;return;case 38:if(r!==Gt.horizontal&&(u._preventDefaultWhenHandled(e),u._moveFocusUp()))break;return;case 40:if(r!==Gt.horizontal&&(u._preventDefaultWhenHandled(e),u._moveFocusDown()))break;return;case 34:if(!s&&u._moveFocusPaging(!0))break;return;case 33:if(!s&&u._moveFocusPaging(!1))break;return;case 9:if(u.props.allowTabKey||1===u.props.handleTabKey||2===u.props.handleTabKey&&u._isElementInput(e.target)){var d=!1;if(u._processingTabKey=!0,d=r!==Gt.vertical&&u._shouldWrapFocus(u._activeElement,dn)?((0,a.zg)(t)?!e.shiftKey:e.shiftKey)?u._moveFocusLeft(t):u._moveFocusRight(t):e.shiftKey?u._moveFocusUp():u._moveFocusDown(),u._processingTabKey=!1,d)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 h=u._root.current&&u._root.current.firstChild;if(u._root.current&&h&&u.focusElement(w(u._root.current,h,!0)))break;return;case 35:if(u._isContentEditableElement(e.target)||u._isElementInput(e.target)&&!u._shouldInputLoseFocus(e.target,!0))return!1;var p=u._root.current&&u._root.current.lastChild;if(u._root.current&&u.focusElement(T(u._root.current,p,!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,o=Math.floor(n.top),i=Math.floor(t.bottom),a=Math.floor(n.bottom),s=Math.floor(t.top);return e&&o>i||!e&&a<s?r>=n.left&&r<=n.left+n.width?0:Math.abs(n.left+n.width/2-r):u._shouldWrapFocus(u._activeElement,un)?hn:pn},Qt(u),Ot("FocusZone",t,{rootProps:void 0,allowTabKey:"handleTabKey",elementType:"as",ariaDescribedBy:"aria-describedby",ariaLabelledBy:"aria-labelledby"}),u._id=f("FocusZone"),u._focusAlignment={left:0,top:0},u._processingTabKey=!1;var d=null===(i=null!==(r=t.shouldRaiseClicks)&&void 0!==r?r:n.defaultProps.shouldRaiseClicks)||void 0===i||i;return u._shouldRaiseClicksOnEnter=null!==(s=t.shouldRaiseClicksOnEnter)&&void 0!==s?s:d,u._shouldRaiseClicksOnSpace=null!==(l=t.shouldRaiseClicksOnSpace)&&void 0!==l?l:d,u}return(0,t.ZT)(n,e),n.getOuterZones=function(){return vn.size},n._onKeyDownCapture=function(e){9===e.which&&vn.forEach((function(e){return e._updateTabIndexes()}))},n.prototype.componentDidMount=function(){var e=this._root.current;if(mn[this._id]=this,e){for(var t=y(e,yn);t&&t!==this._getDocument().body&&1===t.nodeType;){if(F(t)){this._isInnerZone=!0;break}t=y(t,yn)}this._isInnerZone||(vn.add(this),this._root.current&&this._root.current.addEventListener("keydown",n._onKeyDownCapture,!0)),this._root.current&&this._root.current.addEventListener("blur",this._onBlur,!0),this._updateTabIndexes(),this.props.defaultTabbableElement&&"string"==typeof this.props.defaultTabbableElement?this._activeElement=this._getDocument().querySelector(this.props.defaultTabbableElement):this.props.defaultActiveElement&&(this._activeElement=this._getDocument().querySelector(this.props.defaultActiveElement)),this.props.shouldFocusOnMount&&this.focus()}},n.prototype.componentDidUpdate=function(){var e=this._root.current,t=this._getDocument();if((this._activeElement&&!b(this._root.current,this._activeElement,yn)||this._defaultFocusElement&&!b(this._root.current,this._defaultFocusElement,yn))&&(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,o=t;r<o.length;r++){var i=o[r],a=n.children[Math.min(i,n.children.length-1)];if(!a)break;n=a}return P(n)&&D(n)?n:w(e,n,!0)||T(e,n)}(e,this._lastIndexPath);n?(this._setActiveElement(n,!0),n.focus(),this._setParkedFocus(!1)):this._setParkedFocus(!0)}},n.prototype.componentWillUnmount=function(){delete mn[this._id],this._isInnerZone||(vn.delete(this),this._root.current&&this._root.current.removeEventListener("keydown",n._onKeyDownCapture,!0)),this._root.current&&this._root.current.removeEventListener("blur",this._onBlur,!0),this._activeElement=null,this._defaultFocusElement=null},n.prototype.render=function(){var e=this,n=this.props,r=n.as,i=n.elementType,a=n.rootProps,s=n.ariaDescribedBy,l=n.ariaLabelledBy,c=n.className,u=X(this.props,W),d=r||i||"div";this._evaluateFocusBeforeRender();var h=(0,Ye.gh)();return o.createElement(d,(0,t.pi)({"aria-labelledby":l,"aria-describedby":s},u,a,{className:U((an||(an=(0,Q.y)({selectors:{":focus":{outline:"none"}}},"ms-FocusZone")),an),c),ref:this._mergedRef(this.props.elementRef,this._root),"data-focuszone-id":this._id,onKeyDown:function(t){return e._onKeyDown(t,h)},onFocus:this._onFocus,onMouseDownCapture:this._onMouseDown}),this.props.children)},n.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(sn)&&this._isInnerZone){var n=this._getOwnerZone(this._root.current);if(n!==this._root.current){var r=mn[n.getAttribute(ln)];return!!r&&r.focusElement(this._root.current)}return!1}if(!e&&this._activeElement&&b(this._root.current,this._activeElement)&&P(this._activeElement)&&(!t||M(this._activeElement)))return this._activeElement.focus(),!0;var o=this._root.current.firstChild;return this.focusElement(w(this._root.current,o,!0,void 0,void 0,void 0,void 0,void 0,t))}return!1},n.prototype.focusLast=function(){if(this._root.current){var e=this._root.current&&this._root.current.lastChild;return this.focusElement(T(this._root.current,e,!0,!0,!0))}return!1},n.prototype.focusElement=function(e,t){var n=this.props,r=n.onBeforeFocus,o=n.shouldReceiveFocus;return!(o&&!o(e)||r&&!r(e)||!e||(this._setActiveElement(e,t),this._activeElement&&this._activeElement.focus(),0))},n.prototype.setFocusAlignment=function(e){this._focusAlignment=e},Object.defineProperty(n.prototype,"defaultFocusElement",{get:function(){return this._defaultFocusElement},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"activeElement",{get:function(){return this._activeElement},enumerable:!1,configurable:!0}),n.prototype._evaluateFocusBeforeRender=function(){var e=this._root.current,t=this._getDocument();if(t){var n=t.activeElement;if(n!==e){var r=b(e,n,!1);this._lastIndexPath=r?function(e,t){for(var n=[];t&&e&&t!==e;){var r=y(t,!0);if(null===r)return[];n.unshift(Array.prototype.indexOf.call(r.children,t)),t=r}return n}(e,n):void 0}}},n.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")))},n.prototype._setActiveElement=function(e,t){var n=this._activeElement;this._activeElement=e,n&&(F(n)&&this._updateTabIndexes(n),n.tabIndex=-1),this._activeElement&&(this._focusAlignment&&!t||this._setFocusAlignment(e,!0,!0),this._activeElement.tabIndex=0)},n.prototype._preventDefaultWhenHandled=function(e){this.props.preventDefaultWhenHandled&&e.preventDefault()},n.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(sn)&&"true"!==n.getAttribute("data-disable-click-on-enter"))return fn(n,t),!0;n=y(n,yn)}while(n!==this._root.current);return!1},n.prototype._getFirstInnerZone=function(e){if(!(e=e||this._activeElement||this._root.current))return null;if(F(e))return mn[e.getAttribute(ln)];for(var t=e.firstElementChild;t;){if(F(t))return mn[t.getAttribute(ln)];var n=this._getFirstInnerZone(t);if(n)return n;t=t.nextElementSibling}return null},n.prototype._moveFocus=function(e,t,n,r){void 0===r&&(r=!0);var o=this._activeElement,i=-1,a=void 0,s=!1,l=this.props.direction===Gt.bidirectional;if(!o||!this._root.current)return!1;if(this._isElementInput(o)&&!this._shouldInputLoseFocus(o,e))return!1;var c=l?o.getBoundingClientRect():null;do{if(o=e?w(this._root.current,o):T(this._root.current,o),!l){a=o;break}if(o){var u=t(c,o.getBoundingClientRect());if(-1===u&&-1===i){a=o;break}if(u>-1&&(-1===i||u<i)&&(i=u,a=o),i>=0&&u<0)break}}while(o);if(a&&a!==this._activeElement)s=!0,this.focusElement(a);else if(this.props.isCircularNavigation&&r)return e?this.focusElement(w(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement(T(this._root.current,this._root.current.lastElementChild,!0,!0,!0));return s},n.prototype._moveFocusDown=function(){var e=this,t=-1,n=this._focusAlignment.left||this._focusAlignment.x||0;return!!this._moveFocus(!0,(function(r,o){var i=-1,a=Math.floor(o.top),s=Math.floor(r.bottom);return a<s?e._shouldWrapFocus(e._activeElement,un)?hn:pn:((-1===t&&a>=s||a===t)&&(t=a,i=n>=o.left&&n<=o.left+o.width?0:Math.abs(o.left+o.width/2-n)),i)}))&&(this._setFocusAlignment(this._activeElement,!1,!0),!0)},n.prototype._moveFocusUp=function(){var e=this,t=-1,n=this._focusAlignment.left||this._focusAlignment.x||0;return!!this._moveFocus(!1,(function(r,o){var i=-1,a=Math.floor(o.bottom),s=Math.floor(o.top),l=Math.floor(r.top);return a>l?e._shouldWrapFocus(e._activeElement,un)?hn:pn:((-1===t&&a<=l||s===t)&&(t=s,i=n>=o.left&&n<=o.left+o.width?0:Math.abs(o.left+o.width/2-n)),i)}))&&(this._setFocusAlignment(this._activeElement,!1,!0),!0)},n.prototype._moveFocusLeft=function(e){var t=this,n=this._shouldWrapFocus(this._activeElement,dn);return!!this._moveFocus((0,a.zg)(e),(function(r,o){var i=-1;return((0,a.zg)(e)?parseFloat(o.top.toFixed(3))<parseFloat(r.bottom.toFixed(3)):parseFloat(o.bottom.toFixed(3))>parseFloat(r.top.toFixed(3)))&&o.right<=r.right&&t.props.direction!==Gt.vertical?i=r.right-o.right:n||(i=pn),i}),void 0,n)&&(this._setFocusAlignment(this._activeElement,!0,!1),!0)},n.prototype._moveFocusRight=function(e){var t=this,n=this._shouldWrapFocus(this._activeElement,dn);return!!this._moveFocus(!(0,a.zg)(e),(function(r,o){var i=-1;return((0,a.zg)(e)?parseFloat(o.bottom.toFixed(3))>parseFloat(r.top.toFixed(3)):parseFloat(o.top.toFixed(3))<parseFloat(r.bottom.toFixed(3)))&&o.left>=r.left&&t.props.direction!==Gt.vertical?i=o.left-r.left:n||(i=pn),i}),void 0,n)&&(this._setFocusAlignment(this._activeElement,!0,!1),!0)},n.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=te(n);if(!r)return!1;var o=-1,i=void 0,a=-1,s=-1,l=r.clientHeight,c=n.getBoundingClientRect();do{if(n=e?w(this._root.current,n):T(this._root.current,n)){var u=n.getBoundingClientRect(),d=Math.floor(u.top),h=Math.floor(c.bottom),p=Math.floor(u.bottom),f=Math.floor(c.top),g=this._getHorizontalDistanceFromCenter(e,c,u);if(e&&d>h+l||!e&&p<f-l)break;g>-1&&(e&&d>a?(a=d,o=g,i=n):!e&&p<s?(s=p,o=g,i=n):(-1===o||g<=o)&&(o=g,i=n))}}while(n);var m=!1;if(i&&i!==this._activeElement)m=!0,this.focusElement(i),this._setFocusAlignment(i,!1,!0);else if(this.props.isCircularNavigation&&t)return e?this.focusElement(w(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement(T(this._root.current,this._root.current.lastElementChild,!0,!0,!0));return m},n.prototype._setFocusAlignment=function(e,t,n){if(this.props.direction===Gt.bidirectional&&(!this._focusAlignment||t||n)){var r=e.getBoundingClientRect(),o=r.left+r.width/2,i=r.top+r.height/2;this._focusAlignment||(this._focusAlignment={left:o,top:i}),t&&(this._focusAlignment.left=o),n&&(this._focusAlignment.top=i)}},n.prototype._isImmediateDescendantOfZone=function(e){return this._getOwnerZone(e)===this._root.current},n.prototype._getOwnerZone=function(e){for(var t=y(e,yn);t&&t!==this._root.current&&t!==this._getDocument().body;){if(F(t))return t;t=y(t,yn)}return t},n.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&&!b(e,this._activeElement)&&(this._activeElement=null)),this._activeElement&&!P(this._activeElement)&&(this._activeElement=null);for(var t=e&&e.children,n=0;t&&n<t.length;n++){var r=t[n];F(r)?"true"===r.getAttribute(sn)&&(this._isInnerZone||(this._activeElement||this._defaultFocusElement)&&this._activeElement!==r?"-1"!==r.getAttribute(cn)&&r.setAttribute(cn,"-1"):(this._defaultFocusElement=r,"0"!==r.getAttribute(cn)&&r.setAttribute(cn,"0"))):(r.getAttribute&&"false"===r.getAttribute(sn)&&r.setAttribute(cn,"-1"),P(r)?this.props.disabled?r.setAttribute(cn,"-1"):this._isInnerZone||(this._activeElement||this._defaultFocusElement)&&this._activeElement!==r?"-1"!==r.getAttribute(cn)&&r.setAttribute(cn,"-1"):(this._defaultFocusElement=r,"0"!==r.getAttribute(cn)&&r.setAttribute(cn,"0")):"svg"===r.tagName&&"false"!==r.getAttribute("focusable")&&r.setAttribute("focusable","false")),this._updateTabIndexes(r)}},n.prototype._isContentEditableElement=function(e){return e&&"true"===e.getAttribute("contenteditable")},n.prototype._isElementInput=function(e){return!(!e||!e.tagName||"input"!==e.tagName.toLowerCase()&&"textarea"!==e.tagName.toLowerCase())},n.prototype._shouldInputLoseFocus=function(e,t){if(!this._processingTabKey&&e&&e.type&&_n.indexOf(e.type.toLowerCase())>-1){var n=e.selectionStart,r=n!==e.selectionEnd,o=e.value,i=e.readOnly;if(r||n>0&&!t&&!i||n!==o.length&&t&&!i||this.props.handleTabKey&&(!this.props.shouldInputLoseFocusOnArrowKey||!this.props.shouldInputLoseFocusOnArrowKey(e)))return!1}return!0},n.prototype._shouldWrapFocus=function(e,t){return!this.props.checkForNoWrap||function(e,t,n){return"true"!==function(e,t,n){var r=x(e,(function(e){return e.hasAttribute(t)}),n);return r&&r.getAttribute(t)}(e,t,null!=n?n:(0,C.M)())}(e,t)},n.prototype._portalContainsElement=function(e){return e&&!!this._root.current&&on(e,this._root.current)},n.prototype._getDocument=function(){return(0,C.M)(this._root.current)},n.defaultProps={isCircularNavigation:!1,direction:Gt.bidirectional,shouldRaiseClicks:!0,"data-tabster":'{"uncontrolled": {}}'},n}(o.Component);function bn(e){return function(e){return e.clientWidth<e.scrollWidth}(e)||function(e){return e.clientHeight<e.scrollHeight}(e)}!function(e){e[e.Parent=0]="Parent",e[e.Self=1]="Self"}(gn||(gn={}));var Cn,En=(0,i.y)(),Sn=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t._onRenderContent=function(e){return"string"==typeof e.content?o.createElement("p",{className:t._classNames.subText},e.content):o.createElement("div",{className:t._classNames.subText},e.content)},t}return(0,t.ZT)(n,e),n.prototype.render=function(){var e=this.props,n=e.className,r=e.calloutProps,i=e.directionalHint,a=e.directionalHintForRTL,s=e.styles,l=e.id,c=e.maxWidth,u=e.onRenderContent,d=void 0===u?this._onRenderContent:u,h=e.targetElement,p=e.theme;return this._classNames=En(s,{theme:p,className:n||r&&r.className,beakWidth:r&&r.isBeakVisible?r.beakWidth:0,gapSpace:r&&r.gapSpace,maxWidth:c}),o.createElement(jt,(0,t.pi)({target:h,directionalHint:i,directionalHintForRTL:a},r,X(this.props,q,["id"]),{className:this._classNames.root}),o.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)))},n.defaultProps={directionalHint:_.topCenter,maxWidth:"364px",calloutProps:{isBeakVisible:!0,beakWidth:16,gapSpace:0,setInitialFocus:!0,doNotLayer:!1}},n}(o.Component),An=(0,e.z)(Sn,(function(e){var t=e.className,n=e.beakWidth,r=void 0===n?16:n,o=e.gapSpace,i=void 0===o?0:o,a=e.maxWidth,s=e.theme,l=s.semanticColors,c=s.fonts,u=s.effects,d=-(Math.sqrt(r*r/2)+i)+1/window.devicePixelRatio;return{root:["ms-Tooltip",s.fonts.medium,Ye.k4.fadeIn200,{background:l.menuBackground,boxShadow:u.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",c.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"}(Cn||(Cn={}));var Ln,kn,Tn=(0,i.y)(),wn=function(e){function n(t){var r=e.call(this,t)||this;return r._tooltipHost=o.createRef(),r._defaultTooltipId=f("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 gn.Parent:return r._tooltipHost.current.parentElement;case gn.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){n._currentVisibleTooltip&&n._currentVisibleTooltip!==r&&n._currentVisibleTooltip.dismiss(),n._currentVisibleTooltip=r,r._clearDismissTimer(),r._clearOpenTimer()},r._onTooltipBlur=function(e){var t;r._ignoreNextFocusEvent=(null===(t=Ue(r.context))||void 0===t?void 0:t.activeElement)===e.target,r._dismissTimerId=r._async.setTimeout((function(){r._hideTooltip()}),0)},r._onTooltipMouseEnter=function(e){var t=r.props,o=t.overflowMode,i=t.delay,a=Ue(r.context);if(n._currentVisibleTooltip&&n._currentVisibleTooltip!==r&&n._currentVisibleTooltip.dismiss(),n._currentVisibleTooltip=r,void 0!==o){var s=r._getTargetElement();if(s&&!bn(s))return}if(!e.target||!on(e.target,r._getTargetElement(),a))if(r._clearDismissTimer(),r._clearOpenTimer(),i!==Cn.zero){var l=r._getDelayTime(i);r._openTimerId=r._async.setTimeout((function(){r._toggleTooltip(!0)}),l)}else r._toggleTooltip(!0)},r._onTooltipMouseLeave=function(e){var t=r.props.closeDelay;r._clearDismissTimer(),r._clearOpenTimer(),t?r._dismissTimerId=r._async.setTimeout((function(){r._toggleTooltip(!1)}),t):r._toggleTooltip(!1),n._currentVisibleTooltip===r&&(n._currentVisibleTooltip=void 0)},r._onTooltipKeyDown=function(e){(e.which===Fe||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 Cn.medium:return 300;case Cn.long:return 500;default:return 0}},Qt(r),r.state={isAriaPlaceholderRendered:!1,isTooltipVisible:!1},r._async=new Ie(r),r}return(0,t.ZT)(n,e),n.prototype.render=function(){var e=this.props,n=e.calloutProps,r=e.children,i=e.content,a=e.directionalHint,s=e.directionalHintForRTL,l=e.hostClassName,c=e.id,u=e.setAriaDescribedBy,d=void 0===u||u,h=e.tooltipProps,p=e.styles,f=e.theme;this._classNames=Tn(p,{theme:f,className:l});var g=this.state.isTooltipVisible,m=c||this._defaultTooltipId,v=(0,t.pi)((0,t.pi)({id:"".concat(m,"--tooltip"),content:i,targetElement:this._getTargetElement(),directionalHint:a,directionalHintForRTL:s,calloutProps:j({},n,{onDismiss:this._hideTooltip,onFocus:this._onTooltipContentFocus,onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave}),onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave},X(this.props,q,["id"])),h),_=(null==h?void 0:h.onRenderContent)?h.onRenderContent(v,(function(e){return(null==e?void 0:e.content)?o.createElement(o.Fragment,null,e.content):null})):i,y=g&&!!_,x=d&&g&&_?m:void 0;return o.createElement("div",(0,t.pi)({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}),r,y&&o.createElement(An,(0,t.pi)({},v)),o.createElement("div",{hidden:!0,id:m,style:Ye.ul},_))},n.prototype.componentWillUnmount=function(){n._currentVisibleTooltip&&n._currentVisibleTooltip===this&&(n._currentVisibleTooltip=void 0),this._async.dispose()},n.defaultProps={delay:Cn.medium},n.contextType=He,n}(o.Component),Dn={root:"ms-TooltipHost",ariaPlaceholder:"ms-TooltipHost-aria-placeholder"},Mn=(0,e.z)(wn,(function(e){var t=e.className,n=e.theme;return{root:[(0,Ye.Cn)(Dn,n).root,{display:"inline"},t]}}),void 0,{scope:"TooltipHost"}),Pn=function(e){function n(t){var n=e.call(this,t)||this;return n._tooltipChild=o.createRef(),n._checkTextOverflow=function(){var e=n._getTargetElement(),t=!!e&&bn(e);t!==n.state.textOverflow&&n.setState({textOverflow:t})},n._getTargetElement=function(){if(n._tooltipChild.current&&n._tooltipChild.current.parentElement)return n._tooltipChild.current.parentElement},n.state={textOverflow:!1},n._async=new Ie(n),n}return(0,t.ZT)(n,e),n.prototype.render=function(){var e=this.props,n=e.className,r=e.content,i=e.accessibilityData;return o.createElement(Mn,{overflowMode:gn.Self,hostClassName:n,content:r},o.createElement("span",(0,t.pi)({},(0,Kt.ey)(i),{ref:this._tooltipChild,"data-is-focusable":this.state.textOverflow}),r))},n.prototype.componentDidMount=function(){var e=this._getTargetElement();window.ResizeObserver&&e&&(this._resizeObserver=new ResizeObserver(this._async.debounce(this._checkTextOverflow,500)),this._resizeObserver.observe(e))},n.prototype.componentWillUnmount=function(){var e;null===(e=this._resizeObserver)||void 0===e||e.disconnect(),this._async.dispose()},n}(o.Component),Fn=(0,i.y)(),In=function(e){function n(t){var n=e.call(this,t)||this;return n._isRTL=(0,a.zg)(),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=Fn(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?o.createElement("div",{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?"".concat(e.horizontalBarChartdata.x,"/").concat(e.horizontalBarChartdata.y):0);return(null===(t=e.callOutAccessibilityData)||void 0===t?void 0:t.ariaLabel)||(n?"".concat(n,", "):"")+"".concat(r,".")},n.state={isCalloutVisible:!1,hoverValue:"",lineColor:"",legend:"",refSelected:null,color:"",xCalloutValue:"",yCalloutValue:"",barSpacingInPercent:0},n._refArray=[],n._uniqLineText="_HorizontalLine_"+Math.random().toString(36).substring(7),n._hoverOff=n._hoverOff.bind(n),n._calloutId=f("callout"),n._emptyChartId=f("_HBC_empty"),n.barChartSvgRef=o.createRef(),n}return(0,t.ZT)(n,e),n.prototype.componentDidMount=function(){var e,t=(null===(e=this.barChartSvgRef.current)||void 0===e?void 0:e.getBoundingClientRect().width)||0;if(t){var n=3/t*100;this.setState({barSpacingInPercent:n})}},n.prototype.render=function(){var e=this,n=this.props,r=n.data,i=n.theme;this._adjustProps();var a=i.palette,s=0;return this._isChartEmpty()?o.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):o.createElement("div",{className:this._classNames.root,onMouseLeave:this._handleChartMouseLeave},r.map((function(t,n){s=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-s,y:t.chartData[0].horizontalBarChartdata.y},color:a.neutralLight};var r=e.props.variant===h.AbsoluteScale?null:e._getChartDataText(t),i=e._createBars(t,a),l=e._uniqLineText+"_"+n,c=Fn(e.props.styles,{theme:e.props.theme,width:e.props.width,showTriangle:!!t.chartData[0].data,variant:e.props.variant});return o.createElement("div",{key:n},o.createElement("div",{className:c.items},o.createElement(xn,{direction:Gt.horizontal},o.createElement("div",{className:e._classNames.chartTitle},t.chartTitle&&o.createElement(Pn,{className:e._classNames.chartTitleLeft,content:t.chartTitle,accessibilityData:t.chartTitleAccessibilityData}),r)),t.chartData[0].data&&e._createBenchmark(t),o.createElement(xn,{direction:Gt.horizontal,className:e._classNames.chartWrapper},o.createElement("svg",{ref:e.barChartSvgRef,className:e._classNames.chart,"aria-label":t.chartTitle},o.createElement("g",{id:l,key:l,ref:function(n){e._refCallback(n,t.chartData[0].legend)},onClick:function(){var e=t.chartData[0];e&&e.onClick&&e.onClick()}},i)))))})),o.createElement(jt,(0,t.pi)({target:this.state.refSelected,coverTarget:!0,isBeakVisible:!1,gapSpace:30,hidden:!(!this.props.hideTooltip&&this.state.isCalloutVisible),directionalHint:_.topAutoEdge,id:this._calloutId,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0},this.props.calloutProps,(0,Kt.ey)(this.state.callOutAccessibilityData)),o.createElement(o.Fragment,null,this.props.onRenderCalloutPerHorizontalBar?this.props.onRenderCalloutPerHorizontalBar(this.state.barCalloutProps):o.createElement($t.ChartHoverCard,{Legend:this.state.xCalloutValue?this.state.xCalloutValue:this.state.legend,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.hoverValue,color:this.state.lineColor,culture:this.props.culture}))))},n.prototype._refCallback=function(e,t){this._refArray.push({index:t,refElement:e})},n.prototype._hoverOn=function(e,t){if((!this.state.isCalloutVisible||this.state.legend!==t.legend)&&this._calloutAnchorPoint!==t){var n=v(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})}},n.prototype._hoverOff=function(){},n.prototype._getDefaultTextData=function(e){var n=this.props.culture,r=this.props.chartDataMode||"default",i=e.chartData[0],a=i.horizontalBarChartdata.x,s=i.horizontalBarChartdata.y,l=(0,Kt.ey)(e.chartDataAccessibilityData,"text",!1);switch(r){case"default":return o.createElement("div",(0,t.pi)({className:this._classNames.chartTitleRight},l),(0,Kt.Ts)(a,n));case"fraction":return o.createElement("div",(0,t.pi)({},l),o.createElement("span",{className:this._classNames.chartTitleRight},(0,Kt.Ts)(a,n)),o.createElement("span",{className:this._classNames.chartDataTextDenominator}," / "+(0,Kt.Ts)(s,n)));case"percentage":var c="".concat((0,Kt.Ts)(Math.round(a/s*100),n),"%");return o.createElement("div",(0,t.pi)({className:this._classNames.chartTitleRight},l),c)}},n.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 o.createElement("div",{className:this._classNames.benchmarkContainer},o.createElement("div",{className:this._classNames.triangle,style:r}))},n.prototype._createBars=function(e,t){var n,r=this,i=(null===(n=e.chartData)||void 0===n?void 0:n.reduce((function(e,t){return e+((t.data||0)>0?1:0)}),0))||1,a=this.state.barSpacingInPercent*(i-1),s=[t.blueLight,t.blue,t.blueMid,t.red,t.black],l=[],c=e.chartData.reduce((function(e,t){return e+(t.horizontalBarChartdata.x?t.horizontalBarChartdata.x:0)}),0),u=0,d=0,p=0;e.chartData.map((function(e,t){var n=e.horizontalBarChartdata.x?e.horizontalBarChartdata.x:0;return(d=n/c*100)<0?d=0:d<1&&0!==d&&(d=1),p+=d}));var f=0!==p?(p-a)/100:1,g=e.chartData.map((function(t,n){var i=t.color?t.color:s[Math.floor(4*Math.random()+1)],a=t.horizontalBarChartdata.x?t.horizontalBarChartdata.x:0;n>0&&(u+=d),(d=a/c*100)<0?d=0:d<1&&0!==d?d=1/f:d/=f,l.push(u);var p=t.horizontalBarChartdata.x;if(1===n&&r.props.variant===h.AbsoluteScale){if(r.props.hideLabels)return o.createElement("text",{key:n});var g=e.chartData[0].horizontalBarChartdata.x;return o.createElement("text",{key:n,x:"".concat(r._isRTL?100-l[n]:l[n],"%"),y:r._barHeight/2,dominantBaseline:"central",transform:"translate(".concat(r._isRTL?-4:4,")"),className:r._classNames.barLabel,"aria-hidden":!0},(0,Kt.cE)(g))}return o.createElement("rect",{key:n,x:"".concat(r._isRTL?100-l[n]-d-n*r.state.barSpacingInPercent:l[n]+n*r.state.barSpacingInPercent,"%"),y:0,"data-is-focusable":""!==t.legend,width:d+"%",height:r._barHeight,fill:i,onMouseOver:""!==t.legend?r._hoverOn.bind(r,p,t):void 0,onFocus:""!==t.legend?r._hoverOn.bind(r,p,t):void 0,role:"img","aria-label":r._getAriaLabel(t),onBlur:r._hoverOff,onMouseLeave:r._hoverOff,className:r._classNames.barWrapper})}));return g},n.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.length>0)},n}(o.Component),Nn=(0,e.z)(In,(function(e){var n=e.className,r=e.theme,o=e.width,i=e.barHeight,a=e.showTriangle,s=e.variant,l=e.hideLabels,c=r.palette;return{root:[{display:"flex",flexDirection:"column",width:o||"100%"},n],items:{marginBottom:a||s===h.AbsoluteScale?"16px":"10px"},chart:{width:"100%",height:i||12,display:"block",overflow:"visible"},barWrapper:{},chartTitle:(0,t.pi)((0,t.pi)({},r.fonts.small),{display:"flex",justifyContent:"space-between"}),chartTitleLeft:{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",display:"block",color:r.palette.neutralPrimary,marginBottom:s===h.AbsoluteScale?"4px":"5px"},chartTitleRight:{fontSize:Ye.TS.medium,fontWeight:Ye.lq.semibold,color:r.palette.neutralPrimary},chartDataTextDenominator:{fontSize:Ye.TS.medium,color:r.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:c.blue,marginBottom:"4px",position:"absolute"},barLabel:(0,t.pi)((0,t.pi)({},r.fonts.small),{fontWeight:Ye.lq.semibold,fill:r.palette.neutralPrimary}),chartWrapper:{paddingRight:s!==h.AbsoluteScale||l?0:40}}})),Vn={host:"ms-HoverCard-host"},On=function(){function e(t){this._id=e._uniqueId++,this._parent=t,this._eventRecords=[]}return e.raise=function(t,n,r,o,i){var a,s=null!=i?i:(0,C.M)();if(e._isElement(t)){if(void 0!==s&&s.createEvent){var l=s.createEvent("HTMLEvents");l.initEvent(n,o||!1,!0),j(l,r),a=t.dispatchEvent(l)}else if(void 0!==s&&s.createEventObject){var c=s.createEventObject(r);t.fireEvent("on"+n,c)}}else for(;t&&!1!==a;){var u=t.__events__,d=u?u[n]:null;if(d)for(var h in d)if(d.hasOwnProperty(h))for(var p=d[h],f=0;!1!==a&&f<p.length;f++){var g=p[f];g.objectCallback&&(a=g.objectCallback.call(g.parent,r))}t=o?t.parent:null}return a},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,o){var i=this;if(n.indexOf(",")>-1)for(var a=n.split(/[ ,]+/),s=0;s<a.length;s++)this.on(t,a[s],r,o);else{var l=this._parent,c={target:t,eventName:n,parent:l,callback:r,options:o};if((a=t.__events__=t.__events__||{})[n]=a[n]||{count:0},a[n][this._id]=a[n][this._id]||[],a[n][this._id].push(c),a[n].count++,e._isElement(t)){var u=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!i._isDisposed){var n;try{if(!1===(n=r.apply(l,e))&&e[0]){var o=e[0];o.preventDefault&&o.preventDefault(),o.stopPropagation&&o.stopPropagation(),o.cancelBubble=!0}}catch(o){}return n}};c.elementCallback=u,t.addEventListener?t.addEventListener(n,u,o):t.attachEvent&&t.attachEvent("on"+n,u)}else c.objectCallback=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!i._isDisposed)return r.apply(l,e)};this._eventRecords.push(c)}},e.prototype.off=function(e,t,n,r){for(var o=0;o<this._eventRecords.length;o++){var i=this._eventRecords[o];if(!(e&&e!==i.target||t&&t!==i.eventName||n&&n!==i.callback||"boolean"==typeof r&&r!==i.options)){var a=i.target.__events__,s=a[i.eventName],l=s?s[this._id]:null;l&&(1!==l.length&&n?(s.count--,l.splice(l.indexOf(i),1)):(s.count-=l.length,delete a[i.eventName][this._id]),s.count||delete a[i.eventName]),i.elementCallback&&(i.target.removeEventListener?i.target.removeEventListener(i.eventName,i.elementCallback,i.options):i.target.detachEvent&&i.target.detachEvent("on"+i.eventName,i.elementCallback)),this._eventRecords.splice(o--,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"}(Ln||(Ln={})),function(e){e.plain="PlainCard",e.expanding="ExpandingCard"}(kn||(kn={}));var Hn,Bn={root:"ms-ExpandingCard-root",compactCard:"ms-ExpandingCard-compactCard",expandedCard:"ms-ExpandingCard-expandedCard",expandedCardScroll:"ms-ExpandingCard-expandedCardScrollRegion"};function Rn(e,t){var n=o.useRef(t);return n.current||(n.current=f(e)),n.current}function zn(e){var t=o.useRef((function(){throw new Error("Cannot call an event handler while rendering")}));return Ft((function(){t.current=e}),[e]),Ze((function(){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t.current.apply(void 0,e)}}))}!function(e){e[e.compact=0]="compact",e[e.expanded=1]="expanded"}(Hn||(Hn={}));var Wn={disabled:!1,disableFirstFocus:!1,forceFocusInsideTrap:!0,isClickableOutsideFocusTrap:!1,"data-tabster":'{"uncontrolled": {"completely": true}}'},Yn=o.forwardRef((function(e,n){var r,i,a,s=o.useRef(null),l=o.useRef(null),c=o.useRef(null),u=Oe(s,n),d=Re(),h=Xe(),p=null===(r=Bt(!1))||void 0===r||r,f=H(Wn,e),g=Ze({hasFocus:!1,focusStackId:Rn("ftz-",f.id)}),m=f.children,v=f.componentRef,_=f.disabled,y=f.disableFirstFocus,x=f.forceFocusInsideTrap,C=f.focusPreviouslyFocusedInnerElement,E=f.firstFocusableSelector,S=f.firstFocusableTarget,A=f.disableRestoreFocus,L=void 0===A?f.ignoreExternalFocusing:A,k=f.isClickableOutsideFocusTrap,D=f.enableAriaHiddenSiblings,M={"aria-hidden":!0,style:{pointerEvents:"none",position:"fixed"},tabIndex:_?-1:0,"data-is-visible":!0,"data-is-focus-trap-zone-bumper":!0},P=o.useCallback((function(e){e!==l.current&&e!==c.current&&V(e)}),[]),F=zn((function(){if(s.current){var e=g.previouslyFocusedElementInTrapZone;if(C&&e&&b(s.current,e))P(e);else{var t=null;if("string"==typeof S)t=s.current.querySelector(S);else if(S)t=S(s.current);else if(E){var n="string"==typeof E?E:E();t=s.current.querySelector("."+n)}t||(t=w(s.current,s.current.firstChild,!1,!1,!1,!0)),t&&P(t)}}})),I=function(e){if(!_&&s.current){var t,n=e===g.hasFocus?(void 0===(t=!1)&&(t=!0),T(s.current,c.current,t,!1,!0,!0,!1,!0)):function(e,t,n,r){return void 0===r&&(r=!0),w(e,t,r,!1,!1,!0,!1,!0)}(s.current,l.current,0,!1);n&&(n===l.current||n===c.current?F():n.focus())}},N=zn((function(e){if(Yn.focusStack=Yn.focusStack.filter((function(e){return g.focusStackId!==e})),d){var t=d.activeElement;L||"function"!=typeof(null==e?void 0:e.focus)||!b(s.current,t)&&t!==d.body||P(e)}})),B=zn((function(e){if(!_&&g.focusStackId===Yn.focusStack.slice(-1)[0]){var t=e.target;t&&!b(s.current,t)&&(d&&d.activeElement===d.body?setTimeout((function(){d&&d.activeElement===d.body&&(F(),g.hasFocus=!0)}),0):(F(),g.hasFocus=!0),e.preventDefault(),e.stopPropagation())}}));return o.useEffect((function(){var e=[];return x&&e.push(O(h,"focus",B,!0)),k||e.push(O(h,"click",B,!0)),function(){e.forEach((function(e){return e()}))}}),[x,k,h]),o.useEffect((function(){if(!_&&(p||x)&&s.current){Yn.focusStack.push(g.focusStackId);var e=f.elementToFocusOnDismiss||d.activeElement;return y||b(s.current,e)||F(),function(){return N(e)}}}),[x,_]),o.useEffect((function(){if(!_&&D)return Pe(s.current)}),[_,D,s]),i=function(){delete g.previouslyFocusedElementInTrapZone},(a=o.useRef(i)).current=i,o.useEffect((function(){return function(){var e;null===(e=a.current)||void 0===e||e.call(a)}}),[]),function(e,t,n){o.useImperativeHandle(e,(function(){return{get previouslyFocusedElement(){return t},focus:n}}),[n,t])}(v,g.previouslyFocusedElementInTrapZone,F),o.createElement("div",(0,t.pi)({"aria-labelledby":f.ariaLabelledBy},X(f,q),{ref:u,onFocusCapture:function(e){var t;null===(t=f.onFocusCapture)||void 0===t||t.call(f,e),e.target===l.current?I(!0):e.target===c.current&&I(!1),g.hasFocus=!0,e.target!==e.currentTarget&&e.target!==l.current&&e.target!==c.current&&(g.previouslyFocusedElementInTrapZone=e.target)},onBlurCapture:function(e){var t;null===(t=f.onBlurCapture)||void 0===t||t.call(f,e);var n=e.relatedTarget;null===e.relatedTarget&&(n=d.activeElement),b(s.current,n)||(g.hasFocus=!1)}}),o.createElement("div",(0,t.pi)({},M,{ref:l})),m,o.createElement("div",(0,t.pi)({},M,{ref:c})))}));Yn.displayName="FocusTrapZone",Yn.focusStack=[];var Zn,qn=function(e){return o.createElement(jt,(0,t.pi)({},e),o.createElement(Yn,(0,t.pi)({disabled:e.hidden},e.focusTrapProps),e.children))},Xn=function(e){var n=e.gapSpace,r=void 0===n?0:n,i=e.directionalHint,a=void 0===i?_.bottomLeftEdge:i,s=e.directionalHintFixed,l=e.targetElement,c=e.firstFocus,u=e.trapFocus,d=e.onLeave,h=e.className,p=e.finalHeight,f=e.content,g=e.calloutProps,m=(0,t.pi)((0,t.pi)((0,t.pi)({},X(e,q)),{className:h,target:l,isBeakVisible:!1,directionalHint:a,directionalHintFixed:s,finalHeight:p,minPagePadding:24,onDismiss:d,gapSpace:r}),g);return o.createElement(o.Fragment,null,u?o.createElement(qn,(0,t.pi)({},m,{focusTrapProps:{forceFocusInsideTrap:!1,isClickableOutsideFocusTrap:!0,disableFirstFocus:!c}}),f):o.createElement(jt,(0,t.pi)({},m),f))},Un=(0,i.y)(),jn=function(e){function n(t){var n=e.call(this,t)||this;return n._expandedElem=o.createRef(),n._onKeyDown=function(e){e.which===Fe&&n.props.onLeave&&n.props.onLeave(e)},n._onRenderCompactCard=function(){return o.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})})),o.createElement("div",{className:n._classNames.expandedCard,ref:n._expandedElem},o.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 Ie(n),Qt(n),n.state={firstFrameRendered:!1,needsScroll:!1},n}return(0,t.ZT)(n,e),n.prototype.componentDidMount=function(){this._checkNeedsScroll()},n.prototype.componentWillUnmount=function(){this._async.dispose()},n.prototype.render=function(){var e=this.props,n=e.styles,r=e.compactCardHeight,i=e.expandedCardHeight,a=e.theme,s=e.mode,l=e.className,c=this.state,u=c.needsScroll,d=c.firstFrameRendered,h=r+i;this._classNames=Un(n,{theme:a,compactCardHeight:r,className:l,expandedCardHeight:i,needsScroll:u,expandedCardFirstFrameRendered:s===Hn.expanded&&d});var p=o.createElement("div",{onMouseEnter:this.props.onEnter,onMouseLeave:this.props.onLeave,onKeyDown:this._onKeyDown},this._onRenderCompactCard(),this._onRenderExpandedCard());return o.createElement(Xn,(0,t.pi)({},this.props,{content:p,finalHeight:h,className:this._classNames.root}))},n.defaultProps={compactCardHeight:156,expandedCardHeight:384,directionalHintFixed:!0},n}(o.Component),Gn=(0,e.z)(jn,(function(e){var t,n=e.theme,r=e.needsScroll,o=e.expandedCardFirstFrameRendered,i=e.compactCardHeight,a=e.expandedCardHeight,s=e.className,l=n.palette,c=(0,Ye.Cn)(Bn,n);return{root:[c.root,{width:320,pointerEvents:"none",selectors:(t={},t[Ye.qJ]={border:"1px solid WindowText"},t)},s],compactCard:[c.compactCard,{pointerEvents:"auto",position:"relative",height:i}],expandedCard:[c.expandedCard,{height:1,overflowY:"hidden",pointerEvents:"auto",transition:"height 0.467s cubic-bezier(0.5, 0, 0, 1)",selectors:{":before":{content:'""',position:"relative",display:"block",top:0,left:24,width:272,height:1,backgroundColor:l.neutralLighter}}},o&&{height:a}],expandedCardScroll:[c.expandedCardScroll,r&&{height:"100%",boxSizing:"border-box",overflowY:"auto"}]}}),void 0,{scope:"ExpandingCard"}),Kn={root:"ms-PlainCard-root"},$n=(0,i.y)(),Jn=function(e){function n(t){var n=e.call(this,t)||this;return n._onKeyDown=function(e){e.which===Fe&&n.props.onLeave&&n.props.onLeave(e)},Qt(n),n}return(0,t.ZT)(n,e),n.prototype.render=function(){var e=this.props,n=e.styles,r=e.theme,i=e.className;this._classNames=$n(n,{theme:r,className:i});var a=o.createElement("div",{onMouseEnter:this.props.onEnter,onMouseLeave:this.props.onLeave,onKeyDown:this._onKeyDown},this.props.onRenderPlainCard(this.props.renderData));return o.createElement(Xn,(0,t.pi)({},this.props,{content:a,className:this._classNames.root}))},n}(o.Component),Qn=(0,e.z)(Jn,(function(e){var t,n=e.theme,r=e.className;return{root:[(0,Ye.Cn)(Kn,n).root,{pointerEvents:"auto",selectors:(t={},t[Ye.qJ]={border:"1px solid WindowText"},t)},r]}}),void 0,{scope:"PlainCard"}),er=(0,i.y)(),tr=function(e){function n(t){var n=e.call(this,t)||this;return n._hoverCard=o.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:Hn.compact,openMode:"keydown"===e.type?Ln.hotKey:Ln.hover}}))}),n.props.cardOpenDelay)},n._cardDismiss=function(e,t){if(e){if(!(t instanceof MouseEvent))return;if("keydown"===t.type&&t.which!==Fe)return;n.props.sticky||n._currentMouseTarget!==t.currentTarget&&t.which!==Fe||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:Hn.compact,openMode:Ln.hover})},n._instantOpenAsExpanded=function(e){n._async.clearTimeout(n._dismissTimerId),n.setState((function(e){return e.isHoverCardVisible?e:{isHoverCardVisible:!0,mode:Hn.expanded}}))},n._setEventListeners=function(){var e=n.props,t=e.trapFocus,r=e.instantOpenOnClick,o=e.eventListenerTarget,i=o?n._getTargetElement(o):n._getTargetElement(n.props.target),a=n._nativeDismissEvent;i&&(n._events.on(i,"mouseenter",n._cardOpen),n._events.on(i,"mouseleave",a),t?n._events.on(i,"keydown",n._cardOpen):(n._events.on(i,"focus",n._cardOpen),n._events.on(i,"blur",a)),r?n._events.on(i,"click",n._instantOpenAsExpanded):(n._events.on(i,"mousedown",a),n._events.on(i,"keydown",a)))},Qt(n),n._async=new Ie(n),n._events=new On(n),n._nativeDismissEvent=n._cardDismiss.bind(n,!0),n._childDismissEvent=n._cardDismiss.bind(n,!1),n.state={isHoverCardVisible:!1,mode:Hn.compact,openMode:Ln.hover},n}return(0,t.ZT)(n,e),n.prototype.componentDidMount=function(){this._setEventListeners()},n.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},n.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:Hn.expanded},(function(){n.props.onCardExpand&&n.props.onCardExpand()}))}),this.props.expandedCardOpenDelay),this.props.onCardVisible&&this.props.onCardVisible()):(this.setState({mode:Hn.compact}),this.props.onCardHide&&this.props.onCardHide()))},n.prototype.render=function(){var e=this.props,n=e.expandingCardProps,r=e.children,i=e.id,a=e.setAriaDescribedBy,s=void 0===a||a,l=e.styles,c=e.theme,u=e.className,d=e.type,h=e.plainCardProps,p=e.trapFocus,g=e.setInitialFocus,m=this.state,v=m.isHoverCardVisible,_=m.mode,y=m.openMode,x=i||f("hoverCard");this._classNames=er(l,{theme:c,className:u});var b=(0,t.pi)((0,t.pi)({},X(this.props,q)),{id:x,trapFocus:!!p,firstFocus:g||y===Ln.hotKey,targetElement:this._getTargetElement(this.props.target),onEnter:this._cardOpen,onLeave:this._childDismissEvent}),C=(0,t.pi)((0,t.pi)((0,t.pi)({},n),b),{mode:_}),E=(0,t.pi)((0,t.pi)({},h),b);return o.createElement("div",{className:this._classNames.host,ref:this._hoverCard,"aria-describedby":s&&v?x:void 0,"data-is-focusable":!this.props.target},r,v&&(d===kn.expanding?o.createElement(Gn,(0,t.pi)({},C)):o.createElement(Qn,(0,t.pi)({},E))))},n.prototype._getTargetElement=function(e){switch(typeof e){case"string":return(0,C.M)().querySelector(e);case"object":return e;default:return this._hoverCard.current||void 0}},n.prototype._shouldBlockHoverCard=function(){return!(!this.props.shouldBlockHoverCard||!this.props.shouldBlockHoverCard())},n.defaultProps={cardOpenDelay:500,cardDismissDelay:100,expandedCardOpenDelay:1500,instantOpenOnClick:!1,setInitialFocus:!1,openHotKey:67,type:kn.expanding},n}(o.Component),nr=(0,e.z)(tr,(function(e){var t=e.className,n=e.theme;return{host:[(0,Ye.Cn)(Vn,n).host,t]}}),void 0,{scope:"HoverCard"});!function(e){e[e.horizontal=0]="horizontal",e[e.vertical=1]="vertical"}(Zn||(Zn={}));var rr=function(e){var n;void 0===e&&(n={},e={getCachedMeasurement:function(e){if(e&&e.cacheKey&&n.hasOwnProperty(e.cacheKey))return n[e.cacheKey]},addMeasurementToCache:function(e,t){e.cacheKey&&(n[e.cacheKey]=t)}});var r,o=e;function i(e,t){var n=o.getCachedMeasurement(e);if(void 0!==n)return n;var r=t();return o.addMeasurementToCache(e,r),r}function a(e,t,n){for(var a=e,s=i(e,n);s>r;){var l=t(a);if(void 0===l)return{renderedData:a,resizeDirection:void 0,dataToMeasure:void 0};if(void 0===(s=o.getCachedMeasurement(l)))return{dataToMeasure:l,resizeDirection:"shrink"};a=l}return{renderedData:a,resizeDirection:void 0,dataToMeasure:void 0}}return{getNextState:function(e,n,s,l){if(void 0!==l||void 0!==n.dataToMeasure){if(l){if(r&&n.renderedData&&!n.dataToMeasure)return(0,t.pi)((0,t.pi)({},n),function(e,n,o,i){var a;return a=e>r?i?{resizeDirection:"grow",dataToMeasure:i(o)}:{resizeDirection:"shrink",dataToMeasure:n}:{resizeDirection:"shrink",dataToMeasure:o},r=e,(0,t.pi)((0,t.pi)({},a),{measureContainer:!1})}(l,e.data,n.renderedData,e.onGrowData));r=l}var c=(0,t.pi)((0,t.pi)({},n),{measureContainer:!1});return n.dataToMeasure&&(c="grow"===n.resizeDirection&&e.onGrowData?(0,t.pi)((0,t.pi)({},c),function(e,n,s,l){for(var c=e,u=i(e,s);u<r;){var d=n(c);if(void 0===d)return{renderedData:c,resizeDirection:void 0,dataToMeasure:void 0};if(void 0===(u=o.getCachedMeasurement(d)))return{dataToMeasure:d};c=d}return(0,t.pi)({resizeDirection:"shrink"},a(c,l,s))}(n.dataToMeasure,e.onGrowData,s,e.onReduceData)):(0,t.pi)((0,t.pi)({},c),a(n.dataToMeasure,e.onReduceData,s))),c}},shouldRenderDataForMeasurement:function(e){return!(!e||void 0!==o.getCachedMeasurement(e))},getInitialResizeGroupState:function(e){return{dataToMeasure:(0,t.pi)({},e),resizeDirection:"grow",measureContainer:!0}}}},or=o.createContext({isMeasured:!1}),ir={position:"fixed",visibility:"hidden"},ar={position:"relative"};function sr(e,n){var r;switch(n.type){case"resizeData":return(0,t.pi)({},n.value);case"dataToMeasure":return(0,t.pi)((0,t.pi)({},e),{dataToMeasure:n.value,resizeDirection:"grow",measureContainer:!0});default:return(0,t.pi)((0,t.pi)({},e),((r={})[n.type]=n.value,r))}}var lr={isMeasured:!0},cr=o.forwardRef((function(e,n){var r=o.useRef(null),i=Oe(r,n),a=function(e,n){var r=Ze(rr),i=o.useRef(null),a=o.useRef(null),s=o.useRef(!1),l=Ne(),c=function(e,n,r){var i=Ze((function(){return n.getInitialResizeGroupState(e.data)})),a=o.useReducer(sr,i),s=a[0],l=a[1];o.useEffect((function(){l({type:"dataToMeasure",value:e.data})}),[e.data]);var c=o.useRef(i);return c.current=(0,t.pi)({},s),[c,o.useCallback((function(e){e&&l({type:"resizeData",value:e})}),[]),o.useCallback((function(){r.current&&l({type:"measureContainer",value:!0})}),[r])]}(e,r,n),u=c[0],d=c[1],h=c[2];o.useEffect((function(){var t;u.current.renderedData&&(s.current=!0,null===(t=e.dataDidRender)||void 0===t||t.call(e,u.current.renderedData))})),o.useEffect((function(){l.requestAnimationFrame((function(){var t=void 0;if(u.current.measureContainer&&n.current){var o=n.current.getBoundingClientRect();t=e.direction===Zn.vertical?o.height:o.width}var l=r.getNextState(e,u.current,(function(){var t=s.current?a:i;if(!t.current)return 0;var n=t.current.getBoundingClientRect();return e.direction===Zn.vertical?n.height:n.width}),t);d(l)}),n.current)})),Ve(Be(),"resize",l.debounce(h,16,{leading:!0}));var p=r.shouldRenderDataForMeasurement(u.current.dataToMeasure),f=!s.current&&p;return[u.current.dataToMeasure,u.current.renderedData,h,i,a,p,f]}(e,r),s=a[0],l=a[1],c=a[2],u=a[3],d=a[4],h=a[5],p=a[6];o.useImperativeHandle(e.componentRef,(function(){return{remeasure:c}}),[c]),function(e){zt({name:"ResizeGroup",props:e,deprecations:{styles:"className"}})}(e);var f=e.className,g=e.onRenderData,m=X(e,q,["data"]);return o.createElement("div",(0,t.pi)({},m,{className:f,ref:i}),o.createElement("div",{style:ar},h&&!p&&o.createElement("div",{style:ir,ref:d},o.createElement(or.Provider,{value:lr},g(s))),o.createElement("div",{ref:u,style:p?ir:void 0,"data-automation-id":"visibleContent"},p?g(s):l&&g(l))))}));cr.displayName="ResizeGroupBase";var ur,dr=cr;!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"}(ur||(ur={}));var hr=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 o=t?ur.PERSISTED_KEYTIP_ADDED:ur.KEYTIP_ADDED;On.raise(this,o,{keytip:n,uniqueID:r.uniqueID})}return r.uniqueID},e.prototype.update=function(e,t){var n=this.addParentOverflow(e),r=this._getUniqueKtp(n,t),o=this.keytips[t];o&&(r.keytip.visible=o.keytip.visible,this.keytips[t]=r,delete this.sequenceMapping[o.keytip.keySequences.toString()],this.sequenceMapping[r.keytip.keySequences.toString()]=r.keytip,!this.inKeytipMode&&this.delayUpdatingKeytipChange||On.raise(this,ur.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?ur.PERSISTED_KEYTIP_REMOVED:ur.KEYTIP_REMOVED;!this.inKeytipMode&&this.delayUpdatingKeytipChange||On.raise(this,r,{keytip:e,uniqueID:t})},e.prototype.enterKeytipMode=function(){On.raise(this,ur.ENTER_KEYTIP_MODE)},e.prototype.exitKeytipMode=function(){On.raise(this,ur.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 n=(0,t.ev)([],e.keySequences,!0);if(n.pop(),0!==n.length){var r=this.sequenceMapping[n.toString()];if(r&&r.overflowSetSequence)return(0,t.pi)((0,t.pi)({},e),{overflowSetSequence:r.overflowSetSequence})}return e},e.prototype.menuExecute=function(e,t){On.raise(this,ur.PERSISTED_KEYTIP_EXECUTE,{overflowButtonSequences:e,keytipSequences:t})},e.prototype._getUniqueKtp=function(e,n){return void 0===n&&(n=f()),{keytip:(0,t.pi)({},e),uniqueID:n}},e._instance=new e,e}(),pr=function(e,t,n){for(var r=0,o=e;r<o.length;r++){var i=o[r];n[t.register(i,!0)]=i}},fr=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];e.unregister(t[o],o,!0),delete t[o]}},gr=function(e){var n=hr.getInstance(),r=e.className,i=e.overflowItems,a=e.keytipSequences,s=e.itemSubMenuProvider,l=e.onRenderOverflowButton,c=Ze({}),u=o.useCallback((function(e){return s?s(e):e.subMenuProps?e.subMenuProps.items:void 0}),[s]),d=o.useMemo((function(){var e=[],r=[];return a?null==i||i.forEach((function(o){var i,s=o.keytipProps;if(s){var l={content:s.content,keySequences:s.keySequences,disabled:s.disabled||!(!o.disabled&&!o.isDisabled),hasDynamicChildren:s.hasDynamicChildren,hasMenu:s.hasMenu};s.hasDynamicChildren||u(o)?(l.onExecute=n.menuExecute.bind(n,a,null===(i=null==o?void 0:o.keytipProps)||void 0===i?void 0:i.keySequences),l.hasOverflowSubMenu=!0):l.onExecute=s.onExecute,e.push(l);var c=(0,t.pi)((0,t.pi)({},o),{keytipProps:(0,t.pi)((0,t.pi)({},s),{overflowSetSequence:a})});null==r||r.push(c)}else null==r||r.push(o)})):r=i,{modifiedOverflowItems:r,keytipsToRegister:e}}),[i,u,n,a]),h=d.modifiedOverflowItems;return function(e,t,n){var r=Bt(e);o.useEffect((function(){r&&(fr(n,r),pr(t,n,e))})),o.useEffect((function(){return pr(t,n,e),function(){fr(n,e)}}),[])}(c,d.keytipsToRegister,n),o.createElement("div",{className:r},l(h))},mr=(0,i.y)(),vr=o.forwardRef((function(e,n){var r=o.useRef(null),i=Oe(r,n);!function(e,t){var n=function(){var e;return(null!==(e=Re())&&void 0!==e?e:"undefined"!=typeof document)?document:void 0}();o.useImperativeHandle(e.componentRef,(function(){return{focus:function(e,n){var r=!1;return t.current&&(r=k(t.current,n)),r},focusElement:function(e){var r=!1;return!!e&&(t.current&&b(t.current,e)&&(e.focus(),r=(null==n?void 0:n.activeElement)===e),r)}}}),[t,n])}(e,r);var a=e.items,s=e.overflowItems,l=e.className,c=e.styles,u=e.vertical,d=e.role,h=e.overflowSide,p=void 0===h?"end":h,f=e.onRenderItem,g=mr(c,{className:l,vertical:u}),m=!!s&&s.length>0;return o.createElement("div",(0,t.pi)({},X(e,q),{role:d||"group","aria-orientation":"menubar"===d?!0===u?"vertical":"horizontal":void 0,className:g.root,ref:i}),"start"===p&&m&&o.createElement(gr,(0,t.pi)({},e,{className:g.overflowButton})),a&&a.map((function(e,t){return o.createElement("div",{className:g.item,key:e.key,role:"none"},f(e))})),"end"===p&&m&&o.createElement(gr,(0,t.pi)({},e,{className:g.overflowButton})))}));vr.displayName="OverflowSet";var _r,yr={flexShrink:0,display:"inherit"},xr=(0,e.z)(vr,(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",yr],overflowButton:["ms-OverflowSet-overflowButton",yr]}}),void 0,{scope:"OverflowSet"}),br=((_r={})["".concat(Kt.wo[Kt.wo.circle])]="M1 6 A5 5 0 1 0 12 6 M1 6 A5 5 0 0 1 12 6",_r["".concat(Kt.wo[Kt.wo.square])]="M1 1 L12 1 L12 12 L1 12 L1 1 Z",_r["".concat(Kt.wo[Kt.wo.triangle])]="M6 10L8.74228e-07 -1.04907e-06L12 0L6 10Z",_r["".concat(Kt.wo[Kt.wo.pyramid])]="M6 10L8.74228e-07 -1.04907e-06L12 0L6 10Z",_r["".concat(Kt.wo[Kt.wo.diamond])]="M2 2 L10 2 L10 10 L2 10 L2 2 Z",_r["".concat(Kt.wo[Kt.wo.hexagon])]="M9 0H3L0 5L3 10H9L12 5L9 0Z",_r["".concat(Kt.wo[Kt.wo.pentagon])]="M6.06061 0L0 4.21277L2.30303 11H9.69697L12 4.21277L6.06061 0Z",_r["".concat(Kt.wo[Kt.wo.octagon])]="M7.08333 0H2.91667L0 2.91667V7.08333L2.91667 10H7.08333L10 7.08333V2.91667L7.08333 0Z",_r["".concat(Kt.jc[Kt.jc.dottedLine])]="M0 6 H3 M5 6 H8 M10 6 H13",_r),Cr=function(e){var n=e.svgProps,r=e.pathProps,i=e.shape,a=e.classNameForNonSvg;return-1===Object.keys(br).indexOf(i)?o.createElement("div",{className:a}):o.createElement("svg",(0,t.pi)({width:14,height:14,viewBox:"-1 -1 14 14"},n,{transform:"rotate(".concat(i===Kt.wo[Kt.wo.diamond]?45:i===Kt.wo[Kt.wo.pyramid]?180:0,", 0, 0)")}),o.createElement("path",(0,t.pi)({d:br[i]},r)))},Er=(0,i.y)(),Sr=function(e){function n(n){var r,i,a=this;(a=e.call(this,n)||this)._isLegendSelected=!1,a._onRenderData=function(e){var n=a.props,r=n.overflowProps,i=n.allowFocusOnLegends,s=void 0===i||i,l=n.canSelectMultipleLegends,c=void 0!==l&&l,u={root:{justifyContent:a.props.centerLegends?"center":"unset",flexWrap:"wrap"}};return o.createElement(xn,(0,t.pi)({},s&&{role:"listbox","aria-label":"Legends","aria-multiselectable":c}),o.createElement(xr,(0,t.pi)({items:e.primary,overflowItems:e.overflow,onRenderItem:a._renderButton,onRenderOverflowButton:a._renderOverflowItems},r,{styles:(0,t.pi)((0,t.pi)({},u),null==r?void 0:r.styles)})))},a._onReduceData=function(e){if(0!==e.primary.length){var n=(0,t.ev)((0,t.ev)([],e.primary.slice(-1),!0),e.overflow,!0);return{primary:e.primary.slice(0,-1),overflow:n}}},a._onGrowData=function(e){if(0!==e.overflow.length){var n=e.overflow.slice(1);return{primary:(0,t.ev)((0,t.ev)([],e.primary,!0),e.overflow.slice(0,1),!0),overflow:n}}},a._canSelectMultipleLegends=function(e){var n=(0,t.pi)({},a.state.selectedLegends);return n[e.title]?delete n[e.title]:(n[e.title]=!0,Object.keys(n).length===a.props.legends.length&&(n={})),a.setState({selectedLegends:n}),n},a._canSelectOnlySingleLegend=function(e){var t;return a.state.selectedLegends[e.title]?(a.setState({selectedLegends:{}}),!1):(a.setState({selectedLegends:(t={},t[e.title]=!0,t)}),!0)},a._onClick=function(e,t){var n,r,o,i=a.props.canSelectMultipleLegends,s=[];if(void 0!==i&&i){var l=a._canSelectMultipleLegends(e);s=Object.keys(l)}else s=a._canSelectOnlySingleLegend(e)?[e.title]:[];null===(r=(n=a.props).onChange)||void 0===r||r.call(n,s,t,e),null===(o=e.action)||void 0===o||o.call(e)},a._onRenderCompactCard=function(e){var n=a.props,r=n.allowFocusOnLegends,i=void 0===r||r,s=n.className,l=n.styles,c=n.theme,u=n.canSelectMultipleLegends,d=void 0!==u&&u,h=[],p=Er(l,{theme:c,className:s});return e.renderData.forEach((function(e,t){var n=a._renderButton(e,t,!0);h.push(n)})),o.createElement(xn,(0,t.pi)({},i&&{role:"listbox","aria-label":"Legends","aria-multiselectable":d},{direction:Gt.vertical},a.props.focusZonePropsInHoverCard,{className:p.hoverCardRoot}),h)},a._renderOverflowItems=function(e){var n=a.props.allowFocusOnLegends,r=void 0===n||n,i=[];e.forEach((function(e,t){i.push({key:t.toString(),name:e.title,onClick:e.action})}));var s={renderData:e},l=a.props,c=l.theme,u=l.className,d=l.styles,h=l.overflowText,p=Er(d,{theme:c,className:u}),f={onRenderPlainCard:a._onRenderCompactCard,renderData:s},g=h||"more";return o.createElement(nr,{type:kn.plain,plainCardProps:f,instantOpenOnClick:!0,onCardHide:function(){a.setState({isHoverCardVisible:!1});var t=v(e,(function(e){return e.title===a.state.activeLegend}));t&&(a.setState({activeLegend:""}),t.onMouseOutAction&&t.onMouseOutAction())},setInitialFocus:!0,trapFocus:!0,onCardVisible:a._hoverCardVisible,styles:p.subComponentStyles.hoverCardStyles,cardDismissDelay:300,target:a._hoverCardRef},o.createElement("div",(0,t.pi)({className:p.overflowIndicationTextStyle,ref:function(e){return a._hoverCardRef=e}},r&&{role:"button","aria-expanded":a.state.isHoverCardVisible,"aria-label":"".concat(i.length," ").concat(g)},{"data-is-focusable":r}),i.length," ",g))},a._hoverCardVisible=function(){a.setState({isHoverCardVisible:!0})},a._onHoverOverLegend=function(e){e.hoverAction&&(a.setState({activeLegend:e.title}),e.hoverAction())},a._onLeave=function(e){e.onMouseOutAction&&(a.setState({activeLegend:""}),e.onMouseOutAction())},a._renderButton=function(e,n,r){var i=a.props.allowFocusOnLegends,s=void 0===i||i,l={title:e.title,color:e.color,shape:e.shape,action:e.action,hoverAction:e.hoverAction,onMouseOutAction:e.onMouseOutAction,stripePattern:e.stripePattern,isLineLegendInBarChart:e.isLineLegendInBarChart,opacity:e.opacity},c=a._getColor(l.title,l.color),u=a.props,d=u.theme,h=u.className,p=u.styles,f=Er(p,{theme:d,className:h,colorOnSelectedState:c,borderColor:l.color,overflow:r,stripePattern:l.stripePattern,isLineLegendInBarChart:l.isLineLegendInBarChart,opacity:l.opacity}),g=function(){a._onHoverOverLegend(l)},m=function(){a._onLeave(l)},v=a._getShape(f,l,c);return o.createElement("button",(0,t.pi)({},s&&{"aria-selected":!!a.state.selectedLegends[l.title],role:"option","aria-label":"".concat(l.title),"aria-setsize":e["aria-setsize"],"aria-posinset":e["aria-posinset"]},e.nativeButtonProps&&(0,t.pi)({},e.nativeButtonProps),{key:n,className:f.legend,onClick:function(e){a._onClick(l,e)},onMouseOver:g,onMouseOut:m,onFocus:g,onBlur:m,"data-is-focusable":s}),v,o.createElement("div",{className:f.text},l.title))};var s={};return n.canSelectMultipleLegends?s=(null===(i=n.defaultSelectedLegends)||void 0===i?void 0:i.reduce((function(e,n){var r;return(0,t.pi)(((r={})[n]=!0,r),e)}),{}))||{}:n.defaultSelectedLegend&&((r={})[n.defaultSelectedLegend]=!0,s=r),a.state={activeLegend:"",isHoverCardVisible:!1,selectedLegends:s},a}return(0,t.ZT)(n,e),n.prototype.render=function(){var e=this.props,t=e.theme,n=e.className,r=e.styles;this._classNames=Er(r,{theme:t,className:n}),this._isLegendSelected=Object.keys(this.state.selectedLegends).length>0;var i=this._generateData();return o.createElement("div",{className:this._classNames.root},this.props.enabledWrapLines?this._onRenderData(i):o.createElement(dr,{data:i,onReduceData:this._onReduceData,onRenderData:this._onRenderData,onGrowData:this._onGrowData}))},n.prototype._generateData=function(){var e=this,n=this.props.allowFocusOnLegends,r=void 0===n||n;return{primary:this.props.legends.map((function(n,o){return(0,t.pi)((0,t.pi)({},r&&{nativeButtonProps:X(n,Z,["title"]),"aria-setsize":e.props.legends.length,"aria-posinset":o+1}),{title:n.title,action:n.action,hoverAction:n.hoverAction,onMouseOutAction:n.onMouseOutAction,color:n.color,shape:n.shape,stripePattern:n.stripePattern,isLineLegendInBarChart:n.isLineLegendInBarChart,opacity:n.opacity,key:o})})),overflow:[]}},n.prototype._getShape=function(e,t,n){var r={className:e.shape},i={fill:n,strokeWidth:2,stroke:t.color};return o.createElement(Cr,{svgProps:r,pathProps:i,shape:t.shape,classNameForNonSvg:e.rect})},n.prototype._getColor=function(e,t){var n=this.props.theme.palette;return this._isLegendSelected?this.state.selectedLegends[e]?t:n.white:this.state.activeLegend===e||""===this.state.activeLegend?t:n.white},n}(o.Component),Ar=(0,e.z)(Sr,(function(e){var n,r,o=e.className,i=e.theme,a=e.isLineLegendInBarChart,s=void 0!==a&&a,l=i,c=l.palette,u=l.fonts,d={inset:void 0,position:void 0,highContrastStyle:{outlineColor:i.semanticColors.focusBorder},borderColor:"transparent",outlineColor:void 0};return{root:[{whiteSpace:"nowrap",width:"100%",alignItems:"center",margin:"-8px 0 0 -8px"},o],legend:[(0,Ye.GL)(i,d),{display:"flex",alignItems:"center",cursor:"pointer",border:"none",padding:"8px",background:"none",textTransform:"capitalize"}],rect:{selectors:(n={},n[Ye.qJ]={content:"linear-gradient(to right, ".concat(e.colorOnSelectedState,", ").concat(e.colorOnSelectedState,")"),opacity:e.colorOnSelectedState===c.white?"0.6":""},n),width:"12px",height:s?"4px":"12px",backgroundColor:e.stripePattern?"":e.colorOnSelectedState,marginRight:"8px",border:"1px solid",borderColor:e.borderColor?e.borderColor:null==i?void 0:i.semanticColors.buttonBorder,content:e.stripePattern?"repeating-linear-gradient(135deg, transparent, transparent 3px, ".concat(e.colorOnSelectedState," 1px, ").concat(e.colorOnSelectedState," 4px)"):""},shape:[{marginRight:"8px"}],triangle:{width:"0",height:"0",borderLeft:"6px solid transparent",borderRight:"6px solid transparent",borderTop:"10.4px solid",borderTopColor:e.colorOnSelectedState,marginRight:"8px",opacity:e.colorOnSelectedState===c.white?"0.6":e.opacity?e.opacity:"",selectors:(r={},r[Ye.qJ]={border:"0px",height:"10.4px",width:"10.4px",clipPath:"polygon(50% 100%, 0 0, 100% 0)",backgroundImage:"linear-gradient(to right, ".concat(e.colorOnSelectedState,", ").concat(e.colorOnSelectedState,")")},r)},text:(0,t.pi)((0,t.pi)({},u.small),{lineHeight:"16px",color:null==i?void 0:i.semanticColors.bodyText,opacity:e.colorOnSelectedState===c.white?"0.67":""}),hoverChange:{width:"12px",height:"12px",backgroundColor:"white",marginRight:"8px",border:"1px solid",borderColor:e.borderColor?e.borderColor:c.black},overflowIndicationTextStyle:[(0,Ye.GL)(i,d),(0,t.pi)((0,t.pi)({cursor:"pointer",color:null==i?void 0:i.semanticColors.bodyText},u.small),{lineHeight:"16px",padding:"8px"})],hoverCardRoot:{padding:"8px"},subComponentStyles:{hoverCardStyles:{host:[(0,Ye.GL)(i,d)]}}}}));function Lr(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function kr(e){return function(){return e}}function Tr(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function wr(e){return e}Array.prototype.slice;const Dr=Math.abs,Mr=Math.atan2,Pr=Math.cos,Fr=Math.max,Ir=Math.min,Nr=Math.sin,Vr=Math.sqrt,Or=1e-12,Hr=Math.PI,Br=Hr/2,Rr=2*Hr;function zr(e){return e>=1?Br:e<=-1?-Br:Math.asin(e)}function Wr(){var e=wr,t=Tr,n=null,r=kr(0),o=kr(Rr),i=kr(0);function a(a){var s,l,c,u,d,h=(a=Lr(a)).length,p=0,f=new Array(h),g=new Array(h),m=+r.apply(this,arguments),v=Math.min(Rr,Math.max(-Rr,o.apply(this,arguments)-m)),_=Math.min(Math.abs(v)/h,i.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,c=p?(v-h*y)/p:0;s<h;++s,m=u)l=f[s],u=m+((d=g[l])>0?d*c:0)+y,g[l]={data:a[l],index:s,value:d,startAngle:m,endAngle:u,padAngle:_};return g}return a.value=function(t){return arguments.length?(e="function"==typeof t?t:kr(+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:kr(+e),a):r},a.endAngle=function(e){return arguments.length?(o="function"==typeof e?e:kr(+e),a):o},a.padAngle=function(e){return arguments.length?(i="function"==typeof e?e:kr(+e),a):i},a}const Yr=Math.PI,Zr=2*Yr,qr=1e-6,Xr=Zr-qr;function Ur(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}class jr{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==e?Ur:function(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return Ur;const n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=Math.round(arguments[t]*n)/n+e[t]}}(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,n,r){this._append`Q${+e},${+t},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(e,t,n,r,o,i){this._append`C${+e},${+t},${+n},${+r},${this._x1=+o},${this._y1=+i}`}arcTo(e,t,n,r,o){if(e=+e,t=+t,n=+n,r=+r,(o=+o)<0)throw new Error(`negative radius: ${o}`);let i=this._x1,a=this._y1,s=n-e,l=r-t,c=i-e,u=a-t,d=c*c+u*u;if(null===this._x1)this._append`M${this._x1=e},${this._y1=t}`;else if(d>qr)if(Math.abs(u*s-l*c)>qr&&o){let h=n-i,p=r-a,f=s*s+l*l,g=h*h+p*p,m=Math.sqrt(f),v=Math.sqrt(d),_=o*Math.tan((Yr-Math.acos((f+d-g)/(2*m*v)))/2),y=_/v,x=_/m;Math.abs(y-1)>qr&&this._append`L${e+y*c},${t+y*u}`,this._append`A${o},${o},0,0,${+(u*h>c*p)},${this._x1=e+x*s},${this._y1=t+x*l}`}else this._append`L${this._x1=e},${this._y1=t}`}arc(e,t,n,r,o,i){if(e=+e,t=+t,i=!!i,(n=+n)<0)throw new Error(`negative radius: ${n}`);let a=n*Math.cos(r),s=n*Math.sin(r),l=e+a,c=t+s,u=1^i,d=i?r-o:o-r;null===this._x1?this._append`M${l},${c}`:(Math.abs(this._x1-l)>qr||Math.abs(this._y1-c)>qr)&&this._append`L${l},${c}`,n&&(d<0&&(d=d%Zr+Zr),d>Xr?this._append`A${n},${n},0,1,${u},${e-a},${t-s}A${n},${n},0,1,${u},${this._x1=l},${this._y1=c}`:d>qr&&this._append`A${n},${n},0,${+(d>=Yr)},${u},${this._x1=e+n*Math.cos(o)},${this._y1=t+n*Math.sin(o)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}}function Gr(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(null==n)t=null;else{const e=Math.floor(n);if(!(e>=0))throw new RangeError(`invalid digits: ${n}`);t=e}return e},()=>new jr(t)}function Kr(e){return e.innerRadius}function $r(e){return e.outerRadius}function Jr(e){return e.startAngle}function Qr(e){return e.endAngle}function eo(e){return e&&e.padAngle}function to(e,t,n,r,o,i,a){var s=e-n,l=t-r,c=(a?i:-i)/Vr(s*s+l*l),u=c*l,d=-c*s,h=e+u,p=t+d,f=n+u,g=r+d,m=(h+f)/2,v=(p+g)/2,_=f-h,y=g-p,x=_*_+y*y,b=o-i,C=h*g-f*p,E=(y<0?-1:1)*Vr(Fr(0,b*b*x-C*C)),S=(C*y-_*E)/x,A=(-C*_-y*E)/x,L=(C*y+_*E)/x,k=(-C*_+y*E)/x,T=S-m,w=A-v,D=L-m,M=k-v;return T*T+w*w>D*D+M*M&&(S=L,A=k),{cx:S,cy:A,x01:-u,y01:-d,x11:S*(o/b-1),y11:A*(o/b-1)}}function no(){var e=Kr,t=$r,n=kr(0),r=null,o=Jr,i=Qr,a=eo,s=null,l=Gr(c);function c(){var c,u,d,h=+e.apply(this,arguments),p=+t.apply(this,arguments),f=o.apply(this,arguments)-Br,g=i.apply(this,arguments)-Br,m=Dr(g-f),v=g>f;if(s||(s=c=l()),p<h&&(u=p,p=h,h=u),p>Or)if(m>Rr-Or)s.moveTo(p*Pr(f),p*Nr(f)),s.arc(0,0,p,f,g,!v),h>Or&&(s.moveTo(h*Pr(g),h*Nr(g)),s.arc(0,0,h,g,f,v));else{var _,y,x=f,b=g,C=f,E=g,S=m,A=m,L=a.apply(this,arguments)/2,k=L>Or&&(r?+r.apply(this,arguments):Vr(h*h+p*p)),T=Ir(Dr(p-h)/2,+n.apply(this,arguments)),w=T,D=T;if(k>Or){var M=zr(k/h*Nr(L)),P=zr(k/p*Nr(L));(S-=2*M)>Or?(C+=M*=v?1:-1,E-=M):(S=0,C=E=(f+g)/2),(A-=2*P)>Or?(x+=P*=v?1:-1,b-=P):(A=0,x=b=(f+g)/2)}var F=p*Pr(x),I=p*Nr(x),N=h*Pr(E),V=h*Nr(E);if(T>Or){var O,H=p*Pr(b),B=p*Nr(b),R=h*Pr(C),z=h*Nr(C);if(m<Hr)if(O=function(e,t,n,r,o,i,a,s){var l=n-e,c=r-t,u=a-o,d=s-i,h=d*l-u*c;if(!(h*h<Or))return[e+(h=(u*(t-i)-d*(e-o))/h)*l,t+h*c]}(F,I,R,z,H,B,N,V)){var W=F-O[0],Y=I-O[1],Z=H-O[0],q=B-O[1],X=1/Nr(((d=(W*Z+Y*q)/(Vr(W*W+Y*Y)*Vr(Z*Z+q*q)))>1?0:d<-1?Hr:Math.acos(d))/2),U=Vr(O[0]*O[0]+O[1]*O[1]);w=Ir(T,(h-U)/(X-1)),D=Ir(T,(p-U)/(X+1))}else w=D=0}A>Or?D>Or?(_=to(R,z,F,I,p,D,v),y=to(H,B,N,V,p,D,v),s.moveTo(_.cx+_.x01,_.cy+_.y01),D<T?s.arc(_.cx,_.cy,D,Mr(_.y01,_.x01),Mr(y.y01,y.x01),!v):(s.arc(_.cx,_.cy,D,Mr(_.y01,_.x01),Mr(_.y11,_.x11),!v),s.arc(0,0,p,Mr(_.cy+_.y11,_.cx+_.x11),Mr(y.cy+y.y11,y.cx+y.x11),!v),s.arc(y.cx,y.cy,D,Mr(y.y11,y.x11),Mr(y.y01,y.x01),!v))):(s.moveTo(F,I),s.arc(0,0,p,x,b,!v)):s.moveTo(F,I),h>Or&&S>Or?w>Or?(_=to(N,V,H,B,h,-w,v),y=to(F,I,R,z,h,-w,v),s.lineTo(_.cx+_.x01,_.cy+_.y01),w<T?s.arc(_.cx,_.cy,w,Mr(_.y01,_.x01),Mr(y.y01,y.x01),!v):(s.arc(_.cx,_.cy,w,Mr(_.y01,_.x01),Mr(_.y11,_.x11),!v),s.arc(0,0,h,Mr(_.cy+_.y11,_.cx+_.x11),Mr(y.cy+y.y11,y.cx+y.x11),v),s.arc(y.cx,y.cy,w,Mr(y.y11,y.x11),Mr(y.y01,y.x01),!v))):s.arc(0,0,h,E,C,v):s.lineTo(N,V)}else s.moveTo(0,0);if(s.closePath(),c)return s=null,c+""||null}return c.centroid=function(){var n=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,r=(+o.apply(this,arguments)+ +i.apply(this,arguments))/2-Hr/2;return[Pr(r)*n,Nr(r)*n]},c.innerRadius=function(t){return arguments.length?(e="function"==typeof t?t:kr(+t),c):e},c.outerRadius=function(e){return arguments.length?(t="function"==typeof e?e:kr(+e),c):t},c.cornerRadius=function(e){return arguments.length?(n="function"==typeof e?e:kr(+e),c):n},c.padRadius=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:kr(+e),c):r},c.startAngle=function(e){return arguments.length?(o="function"==typeof e?e:kr(+e),c):o},c.endAngle=function(e){return arguments.length?(i="function"==typeof e?e:kr(+e),c):i},c.padAngle=function(e){return arguments.length?(a="function"==typeof e?e:kr(+e),c):a},c.context=function(e){return arguments.length?(s=null==e?null:e,c):s},c}jr.prototype;var ro=function(e){var t=e.color,n=e.href,r=e.theme;return{root:{fill:t,cursor:n?"pointer":"default",stroke:Ye.UK.white,outline:"transparent",selectors:{"::-moz-focus-inner":{border:"0"}}},focusRing:{stroke:r.semanticColors.focusBorder,strokeWidth:4,fill:"transparent"},arcLabel:{fontSize:Ye.TS.small,fontWeight:Ye.lq.semibold,fill:r.palette.neutralPrimary}}},oo=n(1783),io=function(e){function n(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={},t.currentRef=o.createRef(),t._isRTL=(0,a.zg)(),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,o=n.yAxisCalloutData||n.data||0;return(null===(e=n.callOutAccessibilityData)||void 0===e?void 0:e.ariaLabel)||(r?"".concat(r,", "):"")+"".concat(o,".")},t._renderArcLabel=function(e){var n=t.props,r=n.arc,i=n.data,a=n.innerRadius,s=n.outerRadius,l=n.showLabelsInPercent,c=n.totalValue,u=n.hideLabels,d=n.activeArc;if(u||Math.abs(i.endAngle-i.startAngle)<Math.PI/12||d!==i.data.legend&&""!==d)return null;var h=r.centroid(i),p=h[0],f=h[1],g=Math.sqrt(p*p+f*f),m=Math.max(a,s)+2,v=(i.startAngle+i.endAngle)/2,_=i.value;return o.createElement("text",{x:(0===g?0:p/g)*m,y:(0===g?0:f/g)*m,textAnchor:v>Math.PI!==t._isRTL?"end":"start",dominantBaseline:v>Math.PI/2&&v<3*Math.PI/2?"hanging":"auto",className:e,"aria-hidden":!0},l?(0,oo.WU)(".0%")(0===c?0:_/c):(0,Kt.cE)(_))},t}return(0,t.ZT)(n,e),n.getDerivedStateFromProps=function(e){return ao(e),null},n.prototype.updateChart=function(e){ao(e)},n.prototype.render=function(){var e,t=this.props,n=t.arc,r=t.href,a=t.focusedArcId,s=(0,i.y)()(ro,{color:this.props.color,href:r,theme:this.props.theme}),l=this.props.uniqText+this.props.data.data.legend.replace(/\s+/,"")+this.props.data.data.data,c=this.props.activeArc===this.props.data.data.legend||""===this.props.activeArc?1:.1;return o.createElement("g",{ref:this.currentRef},!!a&&a===l&&o.createElement("path",{id:l+"focusRing",d:n(this.props.focusData),className:s.focusRing}),o.createElement("path",{id:l,d:n(this.props.data),onFocus:this._onFocus.bind(this,this.props.data.data,l),className:s.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:c,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(s.arcLabel))},n.prototype._onFocus=function(e,t){this.props.onFocusCallback(e,t,this.currentRef.current)},n.prototype._hoverOn=function(e,t){t.persist(),this.props.hoverOnCallback(e,t)},n.prototype._redirectToUrl=function(e){e&&(window.location.href=e)},n.defaultProps={arc:no()},n}(o.Component);function ao(e){e.arc.innerRadius(e.innerRadius),e.arc.outerRadius(e.outerRadius)}var so=function(e){var t,n=e.theme;return{root:{},insideDonutString:{fontSize:Ye.TS.xLargePlus,fontWeight:Ye.lq.semibold,fill:n.semanticColors.bodyText,selectors:(t={},t[Ye.$v]={fill:"rgb(179, 179, 179)"},t)}}},lo=(0,i.y)(),co=function(e){function n(t){var n=e.call(this,t)||this;return n.arcGenerator=function(e,t,r,i){var a=e&&e.data&&e.data.color;return o.createElement(io,{key:t,data:e,focusData:r,innerRadius:n.props.innerRadius,outerRadius:n.props.outerRadius,color:a,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=Wr().sort(null).value((function(e){return e.data})).padAngle(0),n}return(0,t.ZT)(n,e),n.prototype.render=function(){var e=this,t=this.props,n=t.pie,r=t.data,i=this._pieForFocusRing(r),a=n(r),s="translate(".concat(this.props.width/2,", ").concat(this.props.height/2,")"),l=lo(so,{theme:this.props.theme});return this._totalValue=this._computeTotalValue(),o.createElement("g",{transform:s},a.map((function(t,n){return e.arcGenerator(t,n,i[n],e.props.href)})),this.props.valueInsideDonut&&o.createElement("text",{y:5,textAnchor:"middle",dominantBaseline:"middle",className:l.insideDonutString,"data-is-focusable":!0},this.props.valueInsideDonut))},n.prototype.componentDidUpdate=function(){var e=lo(so,{theme:this.props.theme});(0,Kt.yQ)(e.insideDonutString,2*this.props.innerRadius-5)},n.prototype._hoverCallback=function(e,t){this.props.hoverOnCallback(e,t)},n.defaultProps={pie:Wr().sort(null).value((function(e){return e.data})).padAngle(.02)},n}(o.Component),uo={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"},ho={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"]},po={qualitative:ho,semantic:{info:["#015cda"],disabled:["#dbdbdb","#4d4d4d"],highError:["#6e0811","#cc2635"],error:["#c50f1f","#dc626d"],warning:["#f7630c","#f87528"],success:["#107c10","#54b054"],highSuccess:["#094509","#218c21"]}},fo=Object.values(ho),go=Object.values(uo),mo=function(e,t){if(0===e.length)return"";var n=Number(t);return n<e.length?e[n]:e[0]},vo=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=!1);var r=fo[(e+t)%fo.length];return mo(r,n)},_o=function(e,t){if(void 0===t&&(t=!1),go.indexOf(e)>=0){var n=e.split("."),r=n[0],o=n[1],i=po[r][o];return mo(i,t)}return e},yo=(0,i.y)(),xo=function(e){function n(n){var r=e.call(this,n)||this;return r._closeCallout=function(){r.setState({showHover:!1})},r._focusCallback=function(e,t,n){r._currentHoverElement=n,r.setState({showHover:""===r.state.selectedLegend||r.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})},r._hoverCallback=function(e,t){r._calloutAnchorPoint!==e&&(r._calloutAnchorPoint=e,r._currentHoverElement=t,r.setState({showHover:""===r.state.selectedLegend||r.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}))},r._onBlur=function(){r.setState({focusedArcId:""})},r._handleChartMouseLeave=function(){r._calloutAnchorPoint=null,r.setState({showHover:!1})},r._addDefaultColors=function(e){return e?e.map((function(e,n){var o,i,a;return a=void 0===e.color?vo(n,0,null===(o=r.props.theme)||void 0===o?void 0:o.isInverted):_o(e.color,null===(i=r.props.theme)||void 0===i?void 0:i.isInverted),(0,t.pi)((0,t.pi)({},e),{color:a})})):[]},r.state={showHover:!1,value:"",legend:"",_width:r.props.width||200,_height:r.props.height||200,activeLegend:"",color:"",xCalloutValue:"",yCalloutValue:"",selectedLegend:"",focusedArcId:""},r._hoverCallback=r._hoverCallback.bind(r),r._focusCallback=r._focusCallback.bind(r),r._hoverLeave=r._hoverLeave.bind(r),r._calloutId=f("callout"),r._uniqText=f("_Pie_"),r._emptyChartId=f("_DonutChart_empty"),r}return(0,t.ZT)(n,e),n.getDerivedStateFromProps=function(e,n){var r,o;return e.width&&e.width!==n._width&&(r={_width:e.width}),e.height&&e.height!==n._height&&(o={_height:e.height-40}),(0,t.pi)((0,t.pi)({},r),o)},n.prototype.componentDidMount=function(){this._rootElem&&this.setState({_width:this._rootElem.offsetWidth,_height:this._rootElem.offsetHeight-40})},n.prototype.render=function(){var e=this,n=this.props,r=n.data,i=n.hideLegend,a=void 0!==i&&i,s=this._addDefaultColors(null==r?void 0:r.chartData);this._classNames=yo(this.props.styles,{theme:this.props.theme,width:this.state._width,height:this.state._height,color:this.state.color,className:this.props.className});var l=this._createLegends(s),c=this.props.hideLabels?0:80,u=this.props.hideLabels?0:40,d=Math.min(this.state._width-c,this.state._height-u)/2,h=s.filter((function(e){return e.data>0})),p=this._valueInsideDonut(this.props.valueInsideDonut,h);return this._isChartEmpty()?o.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):o.createElement("div",{className:this._classNames.root,ref:function(t){return e._rootElem=t},onMouseLeave:this._handleChartMouseLeave},o.createElement(xn,{direction:Gt.horizontal,handleTabKey:1},o.createElement("div",null,o.createElement("svg",{className:this._classNames.chart,"aria-label":null==r?void 0:r.chartTitle,ref:function(t){return e._setViewBox(t)}},o.createElement(co,{width:this.state._width,height:this.state._height,outerRadius:d,innerRadius:this.props.innerRadius,data:h,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(p),theme:this.props.theme,showLabelsInPercent:this.props.showLabelsInPercent,hideLabels:this.props.hideLabels})))),o.createElement(jt,(0,t.pi)({target:this._currentHoverElement,alignTargetEdge:!0,isBeakVisible:!1,directionalHint:_.topAutoEdge,gapSpace:15,hidden:!(!this.props.hideTooltip&&this.state.showHover),id:this._calloutId,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0,shouldUpdateWhenHidden:!0},this.props.calloutProps,(0,Kt.ey)(this.state.callOutAccessibilityData,"text",!1)),this.props.onRenderCalloutPerDataPoint?this.props.onRenderCalloutPerDataPoint(this.state.dataPointCalloutProps):o.createElement($t.ChartHoverCard,{Legend:this.state.xCalloutValue?this.state.xCalloutValue:this.state.legend,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.value,color:this.state.color,culture:this.props.culture})),!a&&o.createElement("div",{className:this._classNames.legendContainer},l))},n.prototype._setViewBox=function(e){var t,n;if(null!==e){var r=e.parentElement?e.parentElement.clientWidth:this.state._width,o=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,i="0 0 ".concat(r," ").concat(o);e.setAttribute("viewBox",i)}},n.prototype._createLegends=function(e){var n=this,r=e.map((function(e,t){var r=e.color;return{title:e.legend,color:r,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 o.createElement(Ar,(0,t.pi)({legends:r,centerLegends:!0,overflowProps:this.props.legendsOverflowProps,focusZonePropsInHoverCard:this.props.focusZonePropsForLegendsInHoverCard,overflowText:this.props.legendsOverflowText},this.props.legendProps))},n.prototype._hoverLeave=function(){},n.prototype._valueInsideDonut=function(e,t){var n=this,r=this._getHighlightedLegend();if(void 0===e||""===r&&!this.state.showHover)return e;var o=e;return t.map((function(e,t){(e.legend===r||n.state.showHover&&e.legend===n.state.legend)&&(o=e.yAxisCalloutData?e.yAxisCalloutData:e.data)})),o},n.prototype._toLocaleString=function(e){var t=(0,Kt.Ts)(e,this.props.culture);return t?null==t?void 0:t.toString():e},n.prototype._getHighlightedLegend=function(){return this.state.selectedLegend||this.state.activeLegend},n.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.chartData&&this.props.data.chartData.filter((function(e){return e.data>0})).length>0)},n.defaultProps={innerRadius:0,hideLabels:!0},n}(o.Component),bo=(0,e.z)(xo,(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:"".concat(n,"px")}}})),Co=n(8485),Eo=n(7329);function So(e){this._context=e}function Ao(e){return new So(e)}function Lo(e){return e[0]}function ko(e){return e[1]}function To(e,t){var n=kr(!0),r=null,o=Ao,i=null,a=Gr(s);function s(s){var l,c,u,d=(s=Lr(s)).length,h=!1;for(null==r&&(i=o(u=a())),l=0;l<=d;++l)!(l<d&&n(c=s[l],l,s))===h&&((h=!h)?i.lineStart():i.lineEnd()),h&&i.point(+e(c,l,s),+t(c,l,s));if(u)return i=null,u+""||null}return e="function"==typeof e?e:void 0===e?Lo:kr(e),t="function"==typeof t?t:void 0===t?ko:kr(t),s.x=function(t){return arguments.length?(e="function"==typeof t?t:kr(+t),s):e},s.y=function(e){return arguments.length?(t="function"==typeof e?e:kr(+e),s):t},s.defined=function(e){return arguments.length?(n="function"==typeof e?e:kr(!!e),s):n},s.curve=function(e){return arguments.length?(o=e,null!=r&&(i=o(r)),s):o},s.context=function(e){return arguments.length?(null==e?r=i=null:i=o(r=e),s):r},s}So.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 wo,Do,Mo,Po=function(e){function n(t){var r=e.call(this,t)||this;return r._tooltipHost=o.createRef(),r._tooltipHostId=f("tooltip-host"),r.show=function(){r._toggleTooltip(!0)},r.dismiss=function(){r._hideTooltip()},r._getTargetElement=function(){if(r._tooltipHost.current)return r._tooltipHost.current},r._onTooltipFocus=function(e){r._ignoreNextFocusEvent?r._ignoreNextFocusEvent=!1:r._onTooltipMouseEnter(e)},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 t=r.props.delay;if(n._currentVisibleTooltip&&n._currentVisibleTooltip!==r&&n._currentVisibleTooltip.dismiss(),n._currentVisibleTooltip=r,r.state.isOverflowing&&(!e.target||!on(e.target,r._getTargetElement())))if(r._clearDismissTimer(),r._clearOpenTimer(),t!==Cn.zero){var o=r._getDelayTime(t);r._openTimerId=r._async.setTimeout((function(){r._toggleTooltip(!0)}),o)}else r._toggleTooltip(!0)},r._onTooltipMouseLeave=function(e){var t=r.props.closeDelay;r._clearDismissTimer(),r._clearOpenTimer(),t?r._dismissTimerId=r._async.setTimeout((function(){r._toggleTooltip(!1)}),t):r._toggleTooltip(!1),n._currentVisibleTooltip===r&&(n._currentVisibleTooltip=void 0)},r._onTooltipKeyDown=function(e){(e.which===Fe||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})},r._getDelayTime=function(e){switch(e){case Cn.medium:return 300;case Cn.long:return 500;default:return 0}},r._wrapContent=function(){var e=r.props,t=e.content,n=e.wrapContent,o=e.maxWidth,i=void 0===o?Number.POSITIVE_INFINITY:o,a=e.maxHeight,s=!1;t&&n&&n(t,r._tooltipHostId,i,a)&&(s=!0),r.state.isOverflowing!==s&&r.setState({isOverflowing:s})},r.state={isTooltipVisible:!1,isOverflowing:!1},r._async=new Ie(r),r}return(0,t.ZT)(n,e),n.prototype.render=function(){var e=this.props,n=e.content,r=e.tooltipProps,i=e.textProps,a=e.shouldReceiveFocus,s=void 0===a||a,l=this.state.isTooltipVisible,c=(0,t.pi)({content:n,targetElement:this._getTargetElement(),calloutProps:{onDismiss:this._hideTooltip,onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave},onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave},r),u=!!this.props.isTooltipVisibleProp&&this.state.isOverflowing&&!!n||l&&!!n;return o.createElement(o.Fragment,null,o.createElement("text",(0,t.pi)({},i,{id:this._tooltipHostId,ref:this._tooltipHost,onFocusCapture:this._onTooltipFocus,onBlurCapture:this._onTooltipBlur,onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave,onKeyDown:this._onTooltipKeyDown,"data-is-focusable":s&&this.state.isOverflowing}),n),u&&o.createElement(An,(0,t.pi)({},c)))},n.prototype.componentDidMount=function(){this._wrapContent()},n.prototype.componentDidUpdate=function(e){this.props.maxWidth===e.maxWidth&&this.props.maxHeight===e.maxHeight||this._wrapContent()},n.prototype.componentWillUnmount=function(){n._currentVisibleTooltip&&n._currentVisibleTooltip===this&&(n._currentVisibleTooltip=void 0),this._async.dispose()},n.defaultProps={delay:Cn.medium},n}(o.Component),Fo=(0,i.y)(),Io=(0,o.lazy)((function(){return Promise.resolve().then(n.bind(n,8024)).then((function(e){return{default:e.ChartHoverCard}}))})),No=function(e){function n(n){var r,i,s,l,c,u,d,h,p,g,m,v,_,y,x,b,C,E,S,A,L,k,T,w,D,M,P=this;return(P=e.call(this,n)||this).minLegendContainerHeight=32,P._isRtl=(0,a.zg)(),P._isFirstRender=!0,P.isIntegralDataset=!0,P._multiValueCallout=function(e){var n=P._yValueHoverSubCountsExists(e.YValueHover);return o.createElement("div",{className:P._classNames.calloutContentRoot},o.createElement("div",{className:P._classNames.calloutDateTimeContainer,style:n?{marginBottom:"11px"}:{}},o.createElement("div",(0,t.pi)({className:P._classNames.calloutContentX},(0,Kt.ey)(e.xAxisCalloutAccessibilityData,"text",!1)),(0,Kt.Ts)(e.hoverXValue,P.props.culture))),o.createElement("div",{className:P._classNames.calloutInfoContainer,style:n?{display:"flex"}:{}},e.YValueHover&&e.YValueHover.map((function(e,r,i){var a=r+1===i.length,s=e.shouldDrawBorderBottom,l=void 0!==s&&s;return o.createElement("div",(0,t.pi)({},(0,Kt.ey)(e.callOutAccessibilityData,"text",!1),{key:"callout-content-".concat(r),style:n?(0,t.pi)({display:"inline-block"},l&&{borderBottom:"1px solid ".concat(P.props.theme.semanticColors.menuDivider),paddingBottom:"10px"}):(0,t.pi)({},l&&{borderBottom:"1px solid ".concat(P.props.theme.semanticColors.menuDivider),paddingBottom:"10px"})}),P._getCalloutContent(e,r,n,a))})),!!e.descriptionMessage&&o.createElement("div",{className:P._classNames.descriptionMessage},e.descriptionMessage)))},P._getData=function(e,t){P.props.getGraphData&&P.props.getGraphData(e,t,P.state.containerHeight-P.state._removalValueForTextTuncate,P.state.containerWidth,P.xAxisElement,P.yAxisElement)},P._onChartLeave=function(){P.props.onChartMouseLeave&&P.props.onChartMouseLeave()},P._calculateChartMinWidth=function(){var e=10;if(!P.props.wrapXAxisLables&&P.props.rotateXAxisLables&&P.props.xAxisType===Kt.xl.StringAxis){var t=(0,Kt.yE)(P._tickValues,".".concat(P._classNames.xAxis," text"));e+=Math.ceil(t*Math.cos(Math.PI/4))}else if(P.props.showXAxisLablesTooltip){var n=P._tickValues.map((function(e){var t=P.props.noOfCharsToTruncate||4;return e.toString().length>t?"".concat(e.toString().slice(0,t),"..."):e}));t=(0,Kt.yE)(n,".".concat(P._classNames.xAxis," text")),e+=Math.ceil(t)}else if(P.props.wrapXAxisLables){var r=[];P._tickValues.forEach((function(e){r.push.apply(r,e.toString().split(/\s+/))})),t=(0,Kt.yE)(r,".".concat(P._classNames.xAxis," text")),e+=Math.max(Math.ceil(t),10)}else t=(0,Kt.yE)(P._tickValues,".".concat(P._classNames.xAxis," text")),e+=Math.ceil(t);var o=P.margins.left+P.margins.right+e*(P._tickValues.length-1);return[Kt.$X.GroupedVerticalBarChart,Kt.$X.VerticalBarChart,Kt.$X.VerticalStackedBarChart].includes(P.props.chartType)&&(o+=16),o},P.state={containerHeight:0,containerWidth:0,_width:P.props.width||600,_height:P.props.height||350,_removalValueForTextTuncate:0,isRemoveValCalculated:!0,startFromX:0},P.idForGraph=f("chart_"),P.titleMargin=8,P.idForDefaultTabbableElement=f("defaultTabbableElement_"),P.margins={top:null!==(i=null===(r=P.props.margins)||void 0===r?void 0:r.top)&&void 0!==i?i:20,bottom:null!==(l=null===(s=P.props.margins)||void 0===s?void 0:s.bottom)&&void 0!==l?l:35,right:P._isRtl?null!==(u=null===(c=P.props.margins)||void 0===c?void 0:c.left)&&void 0!==u?u:40:(null!==(h=null===(d=P.props.margins)||void 0===d?void 0:d.right)&&void 0!==h?h:null===(p=P.props)||void 0===p?void 0:p.secondaryYScaleOptions)?40:20,left:P._isRtl?(null!==(m=null===(g=P.props.margins)||void 0===g?void 0:g.right)&&void 0!==m?m:null===(v=P.props)||void 0===v?void 0:v.secondaryYScaleOptions)?40:20:null!==(y=null===(_=P.props.margins)||void 0===_?void 0:_.left)&&void 0!==y?y:40},void 0!==P.props.xAxisTitle&&""!==P.props.xAxisTitle&&(P.margins.bottom=null!==(b=null===(x=P.props.margins)||void 0===x?void 0:x.bottom)&&void 0!==b?b:55),void 0!==P.props.yAxisTitle&&""!==P.props.yAxisTitle&&(P.margins.left=P._isRtl?(null!==(E=null===(C=P.props.margins)||void 0===C?void 0:C.right)&&void 0!==E?E:null===(S=P.props)||void 0===S?void 0:S.secondaryYAxistitle)?60:40:null!==(L=null===(A=P.props.margins)||void 0===A?void 0:A.left)&&void 0!==L?L:60,P.margins.right=P._isRtl?null!==(T=null===(k=P.props.margins)||void 0===k?void 0:k.left)&&void 0!==T?T:60:(null!==(D=null===(w=P.props.margins)||void 0===w?void 0:w.right)&&void 0!==D?D:null===(M=P.props)||void 0===M?void 0:M.secondaryYAxistitle)?60:40),P}return(0,t.ZT)(n,e),n.prototype.componentDidMount=function(){if(this._fitParentContainer(),this.props.chartType===Kt.$X.HorizontalBarChartWithAxis&&this.props.showYAxisLables&&this.yAxisElement){var e=(0,Kt.yE)(this.props.points.map((function(e){return e.y})),".".concat(this._classNames.yAxis," text"));this.state.startFromX!==e&&this.setState({startFromX:e})}else 0!==this.state.startFromX&&this.setState({startFromX:0});this.isIntegralDataset=!this.props.points.some((function(e){return e.y%1!=0}))},n.prototype.componentWillUnmount=function(){cancelAnimationFrame(this._reqID)},n.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===Kt.xl.StringAxis){var t={node:this.xAxisElement,xAxis:this._xScale},n=(0,Kt.zs)(t);this.state.isRemoveValCalculated&&this.state._removalValueForTextTuncate!==n+this.margins.bottom&&n>0&&this.setState({_removalValueForTextTuncate:n+this.margins.bottom,isRemoveValCalculated:!1})}if(this.props.chartType===Kt.$X.HorizontalBarChartWithAxis&&this.props.showYAxisLables&&this.yAxisElement){var r=(0,Kt.yE)(this.props.points.map((function(e){return e.y})),".".concat(this._classNames.yAxis," text"));this.state.startFromX!==r&&this.setState({startFromX:r})}else 0!==this.state.startFromX&&this.setState({startFromX:0});e.points!==this.props.points&&(this.isIntegralDataset=!this.props.points.some((function(e){return e.y%1!=0})))},n.prototype.render=function(){var e,n,r,i,a,s,l,c,u,d,h=this,p=this.props,f=p.calloutProps,g=p.points,m=p.chartType,v=p.chartHoverProps,_=p.svgFocusZoneProps,y=p.svgProps,x=p.culture,b=p.dateLocalizeOptions,C=p.timeFormatLocale,E=p.customDateTimeFormatter;this.props.parentRef&&this._fitParentContainer();var S=(0,t.pi)({},this.margins);this.props.chartType===Kt.$X.HorizontalBarChartWithAxis&&(this._isRtl?S.right+=this.state.startFromX:S.left+=this.state.startFromX),this.props.getmargins&&this.props.getmargins(S);var A=null,L=null;if(this.props.enableFirstRenderOptimization&&this.chartContainer||!this.props.enableFirstRenderOptimization){this._isFirstRender=!1;var k={domainNRangeValues:(0,Kt.dr)(g,this.props.getDomainMargins?this.props.getDomainMargins(this.state.containerWidth):this.margins,this.state.containerWidth,m,this._isRtl,this.props.xAxisType,this.props.barwidth,this.props.tickValues,this.state.startFromX),containerHeight:this.state.containerHeight-this.state._removalValueForTextTuncate,margins:this.margins,xAxisElement:this.xAxisElement,showRoundOffXTickValues:!0,xAxisCount:this.props.xAxisTickCount,xAxistickSize:this.props.xAxistickSize,tickPadding:this.props.tickPadding||this.props.showXAxisLablesTooltip?5:10,xAxisPadding:this.props.xAxisPadding,xAxisInnerPadding:this.props.xAxisInnerPadding,xAxisOuterPadding:this.props.xAxisOuterPadding},T={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:(0,Kt.As)(g,m,this.props.yAxisType),yAxisPadding:this.props.yAxisPadding||0},w=void 0,D=void 0;switch(this.props.xAxisType){case Kt.xl.NumericAxis:w=(e=(0,Kt.OX)(k,this.props.chartType,x)).xScale,D=e.tickValues;break;case Kt.xl.DateAxis:w=(n=(0,Kt.s8)(k,this.props.tickParams,x,b,C,E)).xScale,D=n.tickValues;break;case Kt.xl.StringAxis:w=(r=(0,Kt.R)(k,this.props.tickParams,this.props.datasetForXAxisDomain,x)).xScale,D=r.tickValues;break;default:w=(i=(0,Kt.OX)(k,this.props.chartType,x)).xScale,D=i.tickValues}if(this._xScale=w,this._tickValues=D,this.props.wrapXAxisLables||this.props.showXAxisLablesTooltip){var M={node:this.xAxisElement,xAxis:w,showXAxisLablesTooltip:this.props.showXAxisLablesTooltip||!1,noOfCharsToTruncate:this.props.noOfCharsToTruncate||4},P=w&&(0,Kt.Pu)(M);this.state.isRemoveValCalculated&&this.state._removalValueForTextTuncate!==P&&this.setState({_removalValueForTextTuncate:P,isRemoveValCalculated:!1})}var F=void 0,I=void 0,N={yAxisDomainValues:[]};if(this.props.yAxisType&&this.props.yAxisType===Kt.OH.StringAxis)F=(0,Kt.Tj)(T,this.props.stringDatasetForYAxisDomain,this._isRtl,this.props.chartType,this.props.barwidth,x);else{if(null===(a=this.props)||void 0===a?void 0:a.secondaryYScaleOptions){var V={margins:this.margins,containerWidth:this.state.containerWidth,containerHeight:this.state.containerHeight-this.state._removalValueForTextTuncate,yAxisElement:this.yAxisElementSecondary,yAxisTickFormat:this.props.yAxisTickFormat,yAxisTickCount:this.props.yAxisTickCount,yMinValue:(null===(s=this.props.secondaryYScaleOptions)||void 0===s?void 0:s.yMinValue)||0,yMaxValue:null!==(c=null===(l=this.props.secondaryYScaleOptions)||void 0===l?void 0:l.yMaxValue)&&void 0!==c?c:100,tickPadding:10,maxOfYVal:null!==(d=null===(u=this.props.secondaryYScaleOptions)||void 0===u?void 0:u.yMaxValue)&&void 0!==d?d:100,yMinMaxValues:(0,Kt.As)(g,m),yAxisPadding:this.props.yAxisPadding};I=(0,Kt.eQ)(V,this._isRtl,N,m,this.props.barwidth,this.isIntegralDataset,!0)}F=(0,Kt.eQ)(T,this._isRtl,N,m,this.props.barwidth,this.isIntegralDataset)}this.props.chartType===Kt.$X.HorizontalBarChartWithAxis&&F&&(0,Kt.Ay)(this.yAxisElement,F,this.props.noOfCharsToTruncate||4,this.props.showYAxisLablesTooltip||!1,this.state.startFromX,this._isRtl),this.props.getAxisData&&this.props.getAxisData(N),this._getData(w,F),L=this.props.children((0,t.pi)((0,t.pi)({},this.state),{xScale:w,yScale:F,yScaleSecondary:I})),!this.props.hideTooltip&&f.isCalloutVisible&&(A=this._generateCallout(f,v))}this._classNames=Fo(this.props.styles,{theme:this.props.theme,width:this.state._width,height:this.state._height,className:this.props.className,isRtl:this._isRtl});var O,H={width:this.state.containerWidth,height:this.state.containerHeight};O=this.props.focusZoneDirection===Gt.vertical||this.props.focusZoneDirection?this.props.focusZoneDirection:Gt.horizontal;var B=H.width-this.margins.left-this.margins.right-this.state.startFromX,R=H.height-this.margins.bottom-this.margins.top-this.state._removalValueForTextTuncate-this.titleMargin;return o.createElement("div",{id:this.idForGraph,className:this._classNames.root,role:"presentation",ref:function(e){return h.chartContainer=e},onMouseLeave:this._onChartLeave},!this._isFirstRender&&o.createElement("div",{id:this.idForDefaultTabbableElement}),o.createElement(xn,(0,t.pi)({direction:O,className:this._classNames.chartWrapper,defaultTabbableElement:"#".concat(this.idForDefaultTabbableElement)},_),this._isFirstRender&&o.createElement("div",{id:this.idForDefaultTabbableElement}),o.createElement("svg",(0,t.pi)({width:H.width,height:H.height,"aria-label":this.props.chartTitle,style:{display:"block"}},y),o.createElement("g",{ref:function(e){h.xAxisElement=e},id:"xAxisGElement".concat(this.idForGraph),transform:"translate(0, ".concat(H.height-this.margins.bottom-this.state._removalValueForTextTuncate,")"),className:this._classNames.xAxis}),void 0!==this.props.xAxisTitle&&""!==this.props.xAxisTitle&&o.createElement(Po,{content:this.props.xAxisTitle,textProps:{x:this.margins.left+this.state.startFromX+B/2,y:H.height-this.titleMargin,className:this._classNames.axisTitle,textAnchor:"middle"},maxWidth:B,wrapContent:Kt.nX}),o.createElement("g",{ref:function(e){h.yAxisElement=e},id:"yAxisGElement".concat(this.idForGraph),transform:"translate(".concat(this._isRtl?H.width-this.margins.right-this.state.startFromX:this.margins.left+this.state.startFromX,", 0)"),className:this._classNames.yAxis}),this.props.secondaryYScaleOptions&&o.createElement("g",null,o.createElement("g",{ref:function(e){h.yAxisElementSecondary=e},id:"yAxisGElementSecondary".concat(this.idForGraph),transform:"translate(".concat(this._isRtl?this.margins.left:H.width-this.margins.right,", 0)"),className:this._classNames.yAxis}),void 0!==this.props.secondaryYAxistitle&&""!==this.props.secondaryYAxistitle&&o.createElement(Po,{content:this.props.secondaryYAxistitle,textProps:{x:(R-this.margins.bottom)/2+this.state._removalValueForTextTuncate,y:this._isRtl?this.state.startFromX-this.titleMargin:H.width-this.margins.right,textAnchor:"middle",transform:"translate(".concat(this._isRtl?this.margins.right/2-this.titleMargin:this.margins.right/2+this.titleMargin,",\n ").concat(H.height-this.margins.bottom-this.margins.top-this.titleMargin,")rotate(-90)"),className:this._classNames.axisTitle},maxWidth:R,wrapContent:Kt.nX})),L,void 0!==this.props.yAxisTitle&&""!==this.props.yAxisTitle&&o.createElement(Po,{content:this.props.yAxisTitle,textProps:{x:(R-this.margins.bottom)/2+this.state._removalValueForTextTuncate,y:this._isRtl?H.width-this.margins.right/2+this.titleMargin:this.margins.left/2+this.state.startFromX-this.titleMargin,textAnchor:"middle",transform:"translate(0,\n ".concat(H.height-this.margins.bottom-this.margins.top-this.titleMargin,")rotate(-90)"),className:this._classNames.axisTitle},maxWidth:R,wrapContent:Kt.nX}))),!this.props.hideLegend&&o.createElement("div",{ref:function(e){return h.legendContainer=e},className:this._classNames.legendContainer},this.props.legendBars),A&&o.createElement(o.Suspense,{fallback:o.createElement("div",null,"Loading...")},A))},n.prototype._generateCallout=function(e,n){return o.createElement(jt,(0,t.pi)({hidden:!(!this.props.hideTooltip&&e.isCalloutVisible),shouldUpdateWhenHidden:!0},e),this.props.customizedCallout&&this.props.customizedCallout,!this.props.customizedCallout&&this.props.isCalloutForStack&&this._multiValueCallout(e),!this.props.customizedCallout&&!this.props.isCalloutForStack&&o.createElement(Io,(0,t.pi)({XValue:e.XValue,Legend:e.legend,YValue:e.YValue,color:e.color,culture:this.props.culture},n)))},n.prototype._yValueHoverSubCountsExists=function(e){return!!e&&e.some((function(e){return e.yAxisCalloutData&&"string"!=typeof e.yAxisCalloutData}))},n.prototype._getCalloutContent=function(e,t,n,r){var i,a=r?{}:{marginRight:"16px"},s=void 0!==e.index&&-1!==e.index,l=Fo(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:s}),c=this.props.culture,u=(0,Kt.Ts)(e.y,c);if(e.yAxisCalloutData&&"string"!=typeof e.yAxisCalloutData){var d=e.yAxisCalloutData;return o.createElement("div",{style:a},o.createElement("div",{className:"ms-fontWeight-semibold",style:{fontSize:"12pt"}},e.legend," (",u,")"),Object.keys(d).map((function(e){return o.createElement("div",{key:e,className:l.calloutBlockContainer},o.createElement("div",{className:l.calloutlegendText}," ",(0,Kt.Ts)(e,c)),o.createElement("div",{className:l.calloutContentY},(0,Kt.Ts)(d[e],c)))})))}return o.createElement("div",{style:n?a:{}},n&&o.createElement("div",{className:"ms-fontWeight-semibold",style:{fontSize:"12pt"}},e.legend," (",u,")"),o.createElement("div",{id:"".concat(t,"_").concat(e.y),className:l.calloutBlockContainer},s&&o.createElement(Cr,{svgProps:{className:l.shapeStyles},pathProps:{fill:e.color},shape:Kt.wo[e.index%Object.keys(Kt.Ml).length]}),o.createElement("div",null,o.createElement("div",{className:l.calloutlegendText}," ",e.legend),o.createElement("div",{className:l.calloutContentY},(0,Kt.Ts)(e.yAxisCalloutData?e.yAxisCalloutData:null!==(i=e.y)&&void 0!==i?i:e.data,c)))))},n.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 o=e.legendContainer&&getComputedStyle(e.legendContainer);t=(e.legendContainer&&e.legendContainer.getBoundingClientRect().height||e.minLegendContainerHeight)+parseFloat(o&&o.marginTop||"0")+parseFloat(o&&o.marginBottom||"0")}if(e.props.parentRef||e.chartContainer){var i=e.props.parentRef?e.props.parentRef:e.chartContainer,a=e.props.enableReflow&&!e._isFirstRender?Math.max(i.getBoundingClientRect().width,e._calculateChartMinWidth()):i.getBoundingClientRect().width,s=i.getBoundingClientRect().height>t?i.getBoundingClientRect().height:350;(n!==a||r!==s-t)&&e.setState({containerWidth:a,containerHeight:s-t})}}))},n}(o.Component);!function(e){e.shade30="#004578",e.shade20="#005a9e",e.shade10="#106ebe",e.primary="#0078d4",e.tint10="#2b88d8",e.tint20="#c7e0f4",e.tint30="#deecf9",e.tint40="#eff6fc"}(wo||(wo={})),function(e){e.black="#000000",e.gray220="#11100f",e.gray210="#161514",e.gray200="#1b1a19",e.gray190="#201f1e",e.gray180="#252423",e.gray170="#292827",e.gray160="#323130",e.gray150="#3b3a39",e.gray140="#484644",e.gray130="#605e5c",e.gray120="#797775",e.gray110="#8a8886",e.gray100="#979593",e.gray90="#a19f9d",e.gray80="#b3b0ad",e.gray70="#bebbb8",e.gray60="#c8c6c4",e.gray50="#d2d0ce",e.gray40="#e1dfdd",e.gray30="#edebe9",e.gray20="#f3f2f1",e.gray10="#faf9f8",e.white="#ffffff"}(Do||(Do={})),function(e){e.pinkRed10="#750b1c",e.red20="#a4262c",e.red10="#d13438",e.redOrange20="#603d30",e.redOrange10="#da3b01",e.orange30="#8e562e",e.orange20="#ca5010",e.orange10="#ffaa44",e.yellow10="#fce100",e.orangeYellow20="#986f0b",e.orangeYellow10="#c19c00",e.yellowGreen10="#8cbd18",e.green20="#0b6a0b",e.green10="#498205",e.greenCyan10="#00ad56",e.cyan40="#005e50",e.cyan30="#005b70",e.cyan20="#038387",e.cyan10="#00b7c3",e.cyanBlue20="#004e8c",e.cyanBlue10="#0078d4",e.blue10="#4f6bed",e.blueMagenta40="#373277",e.blueMagenta30="#5c2e91",e.blueMagenta20="#8764b8",e.blueMagenta10="#8378de",e.magenta20="#881798",e.magenta10="#c239b3",e.magentaPink20="#9b0062",e.magentaPink10="#e3008c",e.gray40="#393939",e.gray30="#7a7574",e.gray20="#69797e",e.gray10="#a0aeb2"}(Mo||(Mo={}));var Vo=function(){var e,t=(0,s.J)();return!!(null===(e=null==t?void 0:t.navigator)||void 0===e?void 0:e.userAgent)&&t.navigator.userAgent.indexOf("rv:11.0")>-1}(),Oo=(0,e.z)(No,(function(e){var n,r,o,i,a,s,l,c,u=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"},u],chartWrapper:{overflow:"auto"},axisTitle:[d.fonts.xSmall,{textAlign:"center",fontWeight:Ye.lq.semibold,fontStyle:"normal",lineHeight:Ye.TS.medium,color:Do.gray160,fill:d.semanticColors.bodyText}],xAxis:{selectors:{text:[d.fonts.tiny,{fill:d.semanticColors.bodyText,fontWeight:"600",selectors:(n={},n[Ye.$v]={fill:"rgb(179, 179, 179)"},n)}],line:{opacity:.2,stroke:d.semanticColors.bodyText,width:"1px",selectors:(r={},r[Ye.$v]={opacity:.1,stroke:"rgb(179, 179, 179)"},r)},path:{display:"none"}}},yAxis:{selectors:{text:[d.fonts.tiny,{fill:d.semanticColors.bodyText,fontWeight:"600",selectors:(o={},o[Ye.$v]={fill:"rgb(179, 179, 179)"},o)}],path:{display:"none"},line:{opacity:.2,stroke:d.semanticColors.bodyText,selectors:(i={},i[Ye.$v]={opacity:.1,stroke:"rgb(179, 179, 179)"},i)},g:[h&&!Vo&&{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:[(0,t.pi)((0,t.pi)({},_.small),{lineHeight:"16px",opacity:"0.8",color:d.semanticColors.bodySubtext})],calloutBlockContainer:[d.fonts.mediumPlus,{marginTop:"13px",color:d.semanticColors.bodyText},!v&&{selectors:(a={},a[Ye.qJ]={forcedColorAdjust:"none"},a),borderLeft:"4px solid ".concat(m),paddingLeft:"8px"},v&&{display:"flex"}],shapeStyles:{marginRight:"8px"},calloutlegendText:(0,t.pi)((0,t.pi)({},_.small),{lineHeight:"16px",selectors:(s={},s[Ye.$v]={color:"rgb(255, 255, 255)"},s),color:d.semanticColors.bodySubtext}),calloutContentY:[(0,t.pi)((0,t.pi)({},_.mediumPlus),{fontWeight:"bold",lineHeight:"22px",selectors:(l={},l[Ye.$v]={color:"rgb(255, 255, 255)"},l)})],descriptionMessage:[d.fonts.small,{selectors:(c={},c[Ye.$v]={color:"rgb(255, 255, 255)"},c),color:d.semanticColors.bodyText,marginTop:"10px",paddingTop:"10px",borderTop:"1px solid ".concat(d.semanticColors.menuDivider)}]}})),Ho=(0,ut.Ct)((function(e){return(0,ut.Ct)((function(t){var n=(0,ut.Ct)((function(e){return function(n){return t(n,e)}}));return function(r,o){return e(r,o?n(o):t)}}))}));function Bo(e,t){return Ho(e)(t)}var Ro=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)},zo=function(e,t){"scrollTop"in e?e.scrollTop=t:"scrollY"in e&&e.scrollTo(e.scrollX,t)},Wo="spacer-",Yo={top:-1,bottom:-1,left:-1,right:-1,width:0,height:0},Zo=function(e){return e.getBoundingClientRect()},qo=Zo,Xo=Zo,Uo=function(e){function n(n){var r=e.call(this,n)||this;return r._root=o.createRef(),r._surface=o.createRef(),r._pageRefs={},r._getDerivedStateFromProps=function(e,t){return e.items!==r.props.items||e.renderCount!==r.props.renderCount||e.startIndex!==r.props.startIndex||e.version!==r.props.version||!t.hasMounted&&r.props.renderEarly&&(0,Pt.N)()?(r._resetRequiredWindows(),r._requiredRect=null,r._measureVersion++,r._invalidatePageCache(),r._updatePages(e,t)):t},r._onRenderRoot=function(e){var n=e.rootRef,r=e.surfaceElement,i=e.divProps;return o.createElement("div",(0,t.pi)({ref:n},i),r)},r._onRenderSurface=function(e){var n=e.surfaceRef,r=e.pageElements,i=e.divProps;return o.createElement("div",(0,t.pi)({ref:n},i),r)},r._onRenderPage=function(e,n){for(var i,a=r.props,s=a.onRenderCell,l=a.onRenderCellConditional,c=a.role,u=e.page,d=u.items,h=void 0===d?[]:d,p=u.startIndex,f=(0,t._T)(e,["page"]),g=void 0===c?"listitem":"presentation",m=[],v=0;v<h.length;v++){var _=p+v,y=h[v],x=r.props.getKey?r.props.getKey(y,_):y&&y.key;null==x&&(x=_);var b=null!=l?l:s,C=null!==(i=null==b?void 0:b(y,_,r.props.ignoreScrollingState?void 0:r.state.isScrolling))&&void 0!==i?i:null;l&&!C||m.push(o.createElement("div",{role:g,className:"ms-List-cell",key:x,"data-list-index":_,"data-automationid":"ListCell"},C))}return o.createElement("div",(0,t.pi)({},f),m)},Qt(r),r.state={pages:[],isScrolling:!1,getDerivedStateFromProps:r._getDerivedStateFromProps,hasMounted:!1},r._estimatedPageHeight=0,r._totalEstimates=0,r._requiredWindowsAhead=0,r._requiredWindowsBehind=0,r._measureVersion=0,r._cachedPageHeights={},r._estimatedPageHeight=0,r._focusedIndex=-1,r._pageCache={},r}return(0,t.ZT)(n,e),n.getDerivedStateFromProps=function(e,t){return t.getDerivedStateFromProps(e,t)},Object.defineProperty(n.prototype,"pageRefs",{get:function(){return this._pageRefs},enumerable:!1,configurable:!0}),n.prototype.scrollToIndex=function(e,t,n){void 0===n&&(n=0);for(var r=this.props.startIndex,o=r+this._getRenderCount(),i=this._allowedRect,a=0,s=1,l=r;l<o;l+=s){var c=this._getPageSpecification(this.props,l,i),u=c.height;if(s=c.itemCount,l<=e&&l+s>e){if(t&&this._scrollElement){for(var d=Xo(this._scrollElement),h=Ro(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 zo(this._scrollElement,a);case 2:return void zo(this._scrollElement,m-d.height);case 3:return void zo(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&&zo(this._scrollElement,a))}a+=u}},n.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 o=Math.floor(r.height/r.itemCount);return r.startIndex+Math.floor((this._scrollTop-r.top)/o)}for(var i=0,a=r.startIndex;a<r.startIndex+r.itemCount;a++){if(o=e(a),r.top+i<=this._scrollTop&&this._scrollTop<r.top+i+o)return a;i+=o}}}return 0},n.prototype.componentDidMount=function(){this._async=new Ie(this),this._events=new On(this),this._onAsyncScrollDebounced=this._async.debounce(this._onAsyncScroll,100,{leading:!1,maxWait:500}),this._onAsyncIdleDebounced=this._async.debounce(this._onAsyncIdle,200,{leading:!1}),this._onAsyncResizeDebounced=this._async.debounce(this._onAsyncResize,16,{leading:!1}),this._onScrollingDoneDebounced=this._async.debounce(this._onScrollingDone,500,{leading:!1}),this._scrollElement=te(this._root.current),this._scrollTop=0,this.setState((0,t.pi)((0,t.pi)({},this._updatePages(this.props,this.state)),{hasMounted:!0})),this._measureVersion++;var e=function(e){var t;return(null!==(t=null==e?void 0:e.window)&&void 0!==t?t:"undefined"!=typeof window)?window:void 0}(this.context);this._events.on(e,"resize",this._onAsyncResizeDebounced),this._root.current&&this._events.on(this._root.current,"focus",this._onFocus,!0),this._scrollElement&&(this._events.on(this._scrollElement,"scroll",this._onScroll),this._events.on(this._scrollElement,"scroll",this._onAsyncScrollDebounced))},n.prototype.componentDidUpdate=function(e,t){var n=this.props,r=this.state;this.state.pagesVersion!==t.pagesVersion&&(n.getPageHeight?this._onAsyncIdleDebounced():this._updatePageMeasurements(r.pages)?(this._materializedRect=null,this._hasCompletedFirstRender?this._onAsyncScrollDebounced():(this._hasCompletedFirstRender=!0,this.setState(this._updatePages(n,r)))):this._onAsyncIdleDebounced(),n.onPagesUpdated&&n.onPagesUpdated(r.pages))},n.prototype.componentWillUnmount=function(){var e,t;null===(e=this._async)||void 0===e||e.dispose(),null===(t=this._events)||void 0===t||t.dispose(),delete this._scrollElement},n.prototype.shouldComponentUpdate=function(e,t){var n=this.state.pages,r=t.pages,o=!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 i=0;i<n.length;i++){var a=n[i],s=r[i];if(a.key!==s.key||a.itemCount!==s.itemCount){o=!0;break}}else o=!0;return o},n.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)},n.prototype.getTotalListHeight=function(){return this._surfaceRect.height},n.prototype.render=function(){for(var e=this.props,n=e.className,r=e.role,o=void 0===r?"list":r,i=e.onRenderSurface,a=e.onRenderRoot,s=this.state.pages,l=void 0===s?[]:s,c=[],u=X(this.props,q),d=0,h=l;d<h.length;d++){var p=h[d];c.push(this._renderPage(p))}var f=i?Bo(i,this._onRenderSurface):this._onRenderSurface;return(a?Bo(a,this._onRenderRoot):this._onRenderRoot)({rootRef:this._root,pages:l,surfaceElement:f({surfaceRef:this._surface,pages:l,pageElements:c,divProps:{role:"presentation",className:"ms-List-surface"}}),divProps:(0,t.pi)((0,t.pi)({},u),{className:U("ms-List",n),role:c.length>0?o:void 0,"aria-label":c.length>0?u["aria-label"]:void 0})})},n.prototype._shouldVirtualize=function(e){void 0===e&&(e=this.props);var t=e.onShouldVirtualize;return!t||t(e)},n.prototype._invalidatePageCache=function(){this._pageCache={}},n.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 o=this._getPageStyle(e),i=this.props.onRenderPage,a=(void 0===i?this._onRenderPage:i)({page:e,className:"ms-List-page",key:e.key,ref:function(t){n._pageRefs[e.key]=t},style:o,role:"presentation"},this._onRenderPage);return r&&0===e.startIndex&&(this._pageCache[e.key]={page:e,pageElement:a}),a},n.prototype._getPageStyle=function(e){var n=this.props.getPageStyle;return(0,t.pi)((0,t.pi)({},n?n(e):{}),e.items?{}:{height:e.height})},n.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=y(t)}},n.prototype._onScroll=function(){this.state.isScrolling||this.props.ignoreScrollingState||this.setState({isScrolling:!0}),this._resetRequiredWindows(),this._onScrollingDoneDebounced()},n.prototype._resetRequiredWindows=function(){this._requiredWindowsAhead=0,this._requiredWindowsBehind=0},n.prototype._onAsyncScroll=function(){var 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))},n.prototype._onAsyncIdle=function(){var e=this.props,t=e.renderedWindowsAhead,n=e.renderedWindowsBehind,r=this._requiredWindowsAhead,o=this._requiredWindowsBehind,i=Math.min(t,r+1),a=Math.min(n,o+1);i===r&&a===o||(this._requiredWindowsAhead=i,this._requiredWindowsBehind=a,this._updateRenderRects(this.props,this.state),this.setState(this._updatePages(this.props,this.state))),(t>i||n>a)&&this._onAsyncIdleDebounced()},n.prototype._onScrollingDone=function(){this.props.ignoreScrollingState||this.setState({isScrolling:!1})},n.prototype._onAsyncResize=function(){this.forceUpdate()},n.prototype._updatePages=function(e,n){this._requiredRect||this._updateRenderRects(e,n);var r=this._buildPages(e,n),o=n.pages;return this._notifyPageChanges(o,r.pages,this.props),(0,t.pi)((0,t.pi)((0,t.pi)({},n),r),{pagesVersion:{}})},n.prototype._notifyPageChanges=function(e,t,n){var r=n.onPageAdded,o=n.onPageRemoved;if(r||o){for(var i={},a=0,s=e;a<s.length;a++)(u=s[a]).items&&(i[u.startIndex]=u);for(var l=0,c=t;l<c.length;l++){var u;(u=c[l]).items&&(i[u.startIndex]?delete i[u.startIndex]:this._onPageAdded(u))}for(var d in i)i.hasOwnProperty(d)&&this._onPageRemoved(i[d])}},n.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},n.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 o={width:n.clientWidth,height:n.clientHeight};(o.height||o.width)&&(t=e.height!==o.height,e.height=o.height,this._cachedPageHeights[e.startIndex]={height:o.height,measureVersion:this._measureVersion},this._estimatedPageHeight=Math.round((this._estimatedPageHeight*this._totalEstimates+o.height)/(this._totalEstimates+1)),this._totalEstimates++)}return t},n.prototype._onPageAdded=function(e){var t=this.props.onPageAdded;t&&t(e)},n.prototype._onPageRemoved=function(e){var t=this.props.onPageRemoved;t&&t(e)},n.prototype._buildPages=function(e,n){var r=e.renderCount,o=e.items,i=e.startIndex,a=e.getPageHeight;r=this._getRenderCount(e);for(var s=(0,t.pi)({},Yo),l=[],c=1,u=0,d=null,h=this._focusedIndex,p=i+r,f=this._shouldVirtualize(e),g=0===this._estimatedPageHeight&&!a,v=this._allowedRect,_=function(t){var r=y._getPageSpecification(e,t,v),a=r.height,_=r.data,x=r.key;c=r.itemCount;var b,C,E=u+a-1,S=m(n.pages,(function(e){return!!e.items&&e.startIndex===t}))>-1,A=!v||E>=v.top&&u<=v.bottom,L=!y._requiredRect||E>=y._requiredRect.top&&u<=y._requiredRect.bottom;if(!g&&(L||A&&S)||!f||h>=t&&h<t+c||t===i){d&&(l.push(d),d=null);var k=Math.min(c,p-t),T=y._createPage(x,o.slice(t,t+k),t,void 0,void 0,_);T.top=u,T.height=a,y._visibleRect&&y._visibleRect.bottom&&(T.isVisible=E>=y._visibleRect.top&&u<=y._visibleRect.bottom),l.push(T),L&&y._allowedRect&&(b=s,C={top:u,bottom:E,height:a,left:v.left,right:v.right,width:v.width},b.top=C.top<b.top||-1===b.top?C.top:b.top,b.left=C.left<b.left||-1===b.left?C.left:b.left,b.bottom=C.bottom>b.bottom||-1===b.bottom?C.bottom:b.bottom,b.right=C.right>b.right||-1===b.right?C.right:b.right,b.width=b.right-b.left+1,b.height=b.bottom-b.top+1)}else d||(d=y._createPage(Wo+t,void 0,t,0,void 0,_,!0)),d.height=(d.height||0)+(E-u)+1,d.itemCount+=c;if(u+=E-u+1,g&&f)return"break"},y=this,x=i;x<p&&"break"!==_(x);x+=c);return d&&(d.key=Wo+"end",l.push(d)),this._materializedRect=s,(0,t.pi)((0,t.pi)({},n),{pages:l,measureVersion:this._measureVersion})},n.prototype._getPageSpecification=function(e,t,n){var r=e.getPageSpecification;if(r){var o=r(t,n,e.items),i=o.itemCount,a=void 0===i?this._getItemCountForPage(t,n):i,s=o.height;return{itemCount:a,height:void 0===s?this._getPageHeight(t,n,a):s,data:o.data,key:o.key}}return{itemCount:a=this._getItemCountForPage(t,n),height:this._getPageHeight(t,n,a)}},n.prototype._getPageHeight=function(e,t,n){if(this.props.getPageHeight)return this.props.getPageHeight(e,t,n,this.props.items);var r=this._cachedPageHeights[e];return r?r.height:this._estimatedPageHeight||30},n.prototype._getItemCountForPage=function(e,t){return(this.props.getItemCountForPage?this.props.getItemCountForPage(e,t):10)||10},n.prototype._createPage=function(e,t,n,r,o,i,a){void 0===n&&(n=-1),void 0===r&&(r=t?t.length:0),void 0===o&&(o={}),e=e||"page-"+n;var s=this._pageCache[e];return s&&s.page?s.page:{key:e,startIndex:n,itemCount:r,items:t,style:o,top:0,height:0,data:i,isSpacer:a||!1}},n.prototype._getRenderCount=function(e){var t=e||this.props,n=t.items,r=t.startIndex,o=t.renderCount;return void 0===o?n?n.length-r:0:o},n.prototype._updateRenderRects=function(e,n,r){var o=e.renderedWindowsAhead,i=e.renderedWindowsBehind,a=n.pages;if(this._shouldVirtualize(e)){var l=this._surfaceRect||(0,t.pi)({},Yo),c=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=Ro(this._scrollElement);this._surface.current&&(r||!a||!this._surfaceRect||!c||c!==this._scrollHeight||Math.abs(this._scrollTop-u)>this._estimatedPageHeight/3)&&(l=this._surfaceRect=qo(this._surface.current),this._scrollTop=u),!r&&c&&c===this._scrollHeight||this._measureVersion++,this._scrollHeight=c||0;var d=Math.max(0,-l.top),h=(0,s.J)(this._root.current),p={top:d,left:l.left,bottom:d+h.innerHeight,right:l.right,width:l.width,height:h.innerHeight};this._requiredRect=jo(p,this._requiredWindowsBehind,this._requiredWindowsAhead),this._allowedRect=jo(p,i,o),this._visibleRect=p}},n.defaultProps={startIndex:0,onRenderCell:function(e,t,n){return o.createElement(o.Fragment,null,e&&e.name||"")},onRenderCellConditional:void 0,renderedWindowsAhead:2,renderedWindowsBehind:2},n.contextType=He,n}(o.Component);function jo(e,t,n){var r=e.top-t*e.height,o=e.height+(t+n)*e.height;return{top:r,bottom:r+o,height:o,left:e.left,right:e.right,width:e.width}}var Go,Ko=function(e){var n=o.useRef(null);o.useEffect((function(){if(n.current){var t=(0,Co.Ys)(n.current),r=e.text.split(/\s+/),o=[],i=t.append("tspan"),a=0;return r.forEach((function(n){o.push(n),i.text(o.join(" "));var r=i.node();r&&r.getComputedTextLength()>e.width&&o.length>1&&(a++,o.pop(),i.text(o.join(" ")),o=[n],i=t.append("tspan").text(n).attr("dy",e.lineHeight).attr("x",e.x))})),t.attr("dy",-a*e.lineHeight),function(){t.selectAll("tspan").remove()}}})),e.lineHeight;var r=(0,t._T)(e,["lineHeight"]);return o.createElement("text",(0,t.pi)({ref:n},r))},$o=function(e){var t,n,r,i=o.useRef(null),a=o.useState(!1),s=a[0],l=a[1],c=null;if(s){var u=e.labelDef.aggregatedIdx.map((function(t){return e.lineDefs[t].onRenderCard})).filter((function(e){return!!e}));u.length>0&&(c=o.createElement(jt,{target:i.current,onDismiss:function(){return l(!1)},setInitialFocus:!0,role:"dialog"},o.createElement(xn,{isCircularNavigation:!0,direction:Gt.vertical},o.createElement(Uo,{items:u,onRenderCell:function(e){return o.createElement("div",{"data-is-focusable":!0},e&&e())}}))))}var d=e.textColor?_o(e.textColor,null===(t=e.theme)||void 0===t?void 0:t.isInverted):null===(n=e.theme)||void 0===n?void 0:n.palette.black;return r=1===e.labelDef.aggregatedIdx.length?e.lineDefs[e.labelDef.aggregatedIdx[0]].event:e.mergedLabel(e.labelDef.aggregatedIdx.length),o.createElement(o.Fragment,null,o.createElement("g",{ref:i,onClick:function(){return l(!0)},"data-is-focusable":!1,style:{cursor:"pointer"}},o.createElement(Ko,{text:r,x:e.labelDef.x,y:e.textY,width:e.textWidth,lineHeight:e.textLineHeight,textAnchor:e.labelDef.anchor,fontSize:e.textFontSize,fill:d})),c)},Jo=function(e){var n,r,i=e.labelWidth?e.labelWidth:105,a=e.chartYTop-20,s=a+7,l=e.scale.range(),c=e.events.map((function(n){return(0,t.pi)((0,t.pi)({},n),{x:e.scale(n.date)})}));c.sort((function(e,t){return+e.date-+t.date}));var u=e.strokeColor?_o(e.strokeColor,null===(n=e.theme)||void 0===n?void 0:n.isInverted):null===(r=e.theme)||void 0===r?void 0:r.palette.black,d=function(e,t){for(var n=[],r=[],o=0,i=e;o<i.length;o++){var a=i[o],s=t(a);-1===n.indexOf(s)&&(r.push(a),n.push(s))}return r}(c,(function(e){return e.date.toString()})).map((function(t,n){return o.createElement("line",{key:n,x1:t.x,x2:t.x,y1:s,y2:e.chartYBottom,stroke:u,strokeDasharray:"8"})})),h=function(e,t,n,r){var o=function(r,o){if(o===e.length)return[];var a=e[o].x,s=a-t;return a<r?[]:o===e.length-1?r<s?[{x:a,anchor:"end",aggregatedIdx:[o]}]:a+t<n?[{x:a,anchor:"start",aggregatedIdx:[o]}]:[]:i(o,r<s?"end":"start")},i=function(r,i){var a="end"===i?e[r].x:e[r].x+t,s=m(e,(function(e){return e.x>a&&(e.x-t>=a||e.x+t<n)}),r+1);-1===s&&(s=e.length);for(var l=[],c=r;c<s;c++)l.push(c);var u=o(a,s);return u.unshift({x:e[r].x,anchor:i,aggregatedIdx:l}),u};return o(r,0)}(c,i+5,l[1],l[0]).map((function(n,r){return o.createElement($o,(0,t.pi)({key:r,theme:e.theme},{lineDefs:c,labelDef:n,textY:a,textWidth:i,textLineHeight:18,textFontSize:"10pt",textColor:e.labelColor,mergedLabel:e.mergedLabel}))}));return o.createElement(o.Fragment,null,d,h)},Qo=(0,i.y)();!function(e){e[e.hoverSize=11]="hoverSize",e[e.invisibleSize=1]="invisibleSize"}(Go||(Go={}));var ei=(0,Eo.Z)((function(e){return e.x})).left,ti=function(e){function n(n){var r=e.call(this,n)||this;return r._xAxisScale="",r._yAxisScale="",r.eventLabelHeight=36,r._isRTL=(0,a.zg)(),r._injectIndexPropertyInLineChartData=function(e){var n=r.props.allowMultipleShapesForPoints,o=void 0!==n&&n;return e?e.map((function(e,n){var i,a,s;return s=void 0===e.color?vo(n,0,null===(i=r.props.theme)||void 0===i?void 0:i.isInverted):_o(e.color,null===(a=r.props.theme)||void 0===a?void 0:a.isInverted),(0,t.pi)((0,t.pi)({},e),{index:o?n:-1,color:s})})):[]},r._getCustomizedCallout=function(){return r.props.onRenderCalloutPerStack?r.props.onRenderCalloutPerStack(r.state.stackCalloutProps):r.props.onRenderCalloutPerDataPoint?r.props.onRenderCalloutPerDataPoint(r.state.dataPointCalloutProps):null},r._getMargins=function(e){r.margins=e},r._initializeLineChartData=function(e,t,n,o,i){r._xAxisScale=e,r._yAxisScale=t,r._renderedColorFillBars=r.props.colorFillBars?r._createColorFillBars(n):[],r.lines=r._createLines(i,n)},r._handleSingleLegendSelectionAction=function(e){r.state.selectedLegend===e.legend?(r.setState({selectedLegend:""}),r._handleLegendClick(e,null)):(r.setState({selectedLegend:e.legend}),r._handleLegendClick(e,e.legend))},r._onHoverCardHide=function(){r.setState({selectedLegendPoints:[],selectedColorBarLegend:[],isSelectedLegend:!1})},r._closeCallout=function(){r.setState({isCalloutVisible:!1})},r._getBoxWidthOfShape=function(e,t,n){var o=r.props,i=o.allowMultipleShapesForPoints,a=void 0!==i&&i,s=o.strokeWidth,l=void 0===s?4:s,c=r.state.activePoint;return a?c===e?Go.hoverSize:1===t||n?2.5*l:Go.invisibleSize:c===e?Go.hoverSize:Go.invisibleSize},r._getPath=function(e,t,n,o,i,a){var s=r.props.allowMultipleShapesForPoints,l=void 0!==s&&s,c=r._getBoxWidthOfShape(n,o,i),u=l?a%Object.keys(Kt.Ml).length:0,d=Kt.Ml[u].widthRatio;return function(e,t,n,r){return["M".concat(e-n/2," ").concat(t,"\n A").concat(n/2," ").concat(n/2," 0 1 0 ").concat(e+n/2," ").concat(t,"\n M").concat(e-n/2," ").concat(t,"\n A ").concat(n/2," ").concat(n/2," 0 1 1 ").concat(e+n/2," ").concat(t,"\n "),"M".concat(e-n/2," ").concat(t-n/2,"\n L").concat(e+n/2," ").concat(t-n/2,"\n L").concat(e+n/2," ").concat(t+n/2,"\n L").concat(e-n/2," ").concat(t+n/2,"\n Z"),"M".concat(e-n/2," ").concat(t-.2886*n,"\n H ").concat(e+n/2,"\n L").concat(e," ").concat(t+.5774*n," Z"),"M".concat(e," ").concat(t-n/2,"\n L").concat(e+n/2," ").concat(t,"\n L").concat(e," ").concat(t+n/2,"\n L").concat(e-n/2," ").concat(t,"\n Z"),"M".concat(e," ").concat(t-.5774*n,"\n L").concat(e+n/2," ").concat(t+.2886*n,"\n L").concat(e-n/2," ").concat(t+.2886*n," Z"),"M".concat(e-.5*n," ").concat(t-.866*n,"\n L").concat(e+.5*n," ").concat(t-.866*n,"\n L").concat(e+n," ").concat(t,"\n L").concat(e+.5*n," ").concat(t+.866*n,"\n L").concat(e-.5*n," ").concat(t+.866*n,"\n L").concat(e-n," ").concat(t,"\n Z"),"M".concat(e," ").concat(t-.851*n,"\n L").concat(e+.6884*n," ").concat(t-.2633*n,"\n L").concat(e+.5001*n," ").concat(t+.6884*n,"\n L").concat(e-.5001*n," ").concat(t+.6884*n,"\n L").concat(e-.6884*n," ").concat(t-.2633*n,"\n Z"),"M".concat(e-.5001*n," ").concat(t-1.207*n,"\n L").concat(e+.5001*n," ").concat(t-1.207*n,"\n L").concat(e+1.207*n," ").concat(t-.5001*n,"\n L").concat(e+1.207*n," ").concat(t+.5001*n,"\n L").concat(e+.5001*n," ").concat(t+1.207*n,"\n L").concat(e-.5001*n," ").concat(t+1.207*n,"\n L").concat(e-1.207*n," ").concat(t+.5001*n,"\n L").concat(e-1.207*n," ").concat(t-.5001*n,"\n Z")][r]}(e,t,c=d>1?c/d:c,u)},r._getPointFill=function(e,t,n,o){var i=r.state.activePoint,a=r.props,s=a.theme;return a.allowMultipleShapesForPoints,i===t?s.palette.white:e},r._createColorFillBars=function(e){var t,n=[];r.state.isSelectedLegend?r._colorFillBars=r.state.selectedColorBarLegend:r._colorFillBars=r.props.colorFillBars;for(var i=(0,Kt.As)(r._points,Kt.$X.LineChart),a=0;a<r._colorFillBars.length;a++){var s=r._colorFillBars[a],l=f(s.legend.replace(/\W/g,"")),c=_o(s.color,null===(t=r.props.theme)||void 0===t?void 0:t.isInverted);s.applyPattern&&n.push(r._getStripePattern(c,a));for(var u=0;u<s.data.length;u++){var d=s.data[u].startX,h=s.data[u].endX,p=r._legendHighlighted(s.legend)||r._noLegendHighlighted()||r.state.isSelectedLegend?r._getColorFillBarOpacity(s):.1;n.push(o.createElement("rect",{fill:s.applyPattern?"url(#".concat(r._colorFillBarPatternId,"_").concat(a,")"):c,fillOpacity:p,x:r._isRTL?r._xAxisScale(h):r._xAxisScale(d),y:r._yAxisScale(i.endValue)-3,width:Math.abs(r._xAxisScale(h)-r._xAxisScale(d)),height:r._yAxisScale(r.props.yMinValue||0)-r._yAxisScale(i.endValue)+3,key:"".concat(l).concat(u)}))}}return n},r._getStripePattern=function(e,t){return o.createElement("pattern",{id:"".concat(r._colorFillBarPatternId,"_").concat(t),width:16,height:16,key:"".concat(r._colorFillBarPatternId,"_").concat(t),patternUnits:"userSpaceOnUse"},o.createElement("path",{d:"M-4,4 l8,-8 M0,16 l16,-16 M12,20 l8,-8",stroke:e,strokeWidth:1.25}))},r._checkInGap=function(e,t,n){for(var r=n,o=!1;r<t.length&&e>t[r].endIndex;)r++;return r<t.length&&e>t[r].startIndex&&e<=t[r].endIndex&&(o=!0),{isInGap:o,gapIndex:r}},r._onMouseOverLargeDataset=function(e,t,n){n.persist();var o=r.props.data.lineChartData,i=r._xAxisScale.invert((0,Co.Eb)(document.getElementById(r._rectId),n)[0]),a=ei(o[e].data,i),s=o[e].data[a-1],l=o[e].data[a],c=null,u=null;if(void 0===s&&void 0!==l)c=l.x,u=a;else if(void 0!==s&&void 0===l)c=s.x,u=a-1;else{var d=void 0,h=void 0,p=void 0;switch((0,Kt.SY)(o[e].data[0].x,!0)){case Kt.xl.DateAxis:d=new Date(i).getTime(),h=s.x.getTime(),p=l.x.getTime(),c=Math.abs(d-h)>Math.abs(d-p)?l.x:s.x,u=Math.abs(d-h)>Math.abs(d-p)?a:a-1;break;case Kt.xl.NumericAxis:d=i,h=s.x,p=l.x,c=Math.abs(d-h)>Math.abs(d-p)?l.x:s.x,u=Math.abs(d-h)>Math.abs(d-p)?a:a-1}}var f=o[e].data[u],g=f.xAxisCalloutData,m=f.xAxisCalloutAccessibilityData,_=c instanceof Date?c.toLocaleString():c,y=c instanceof Date?c.getTime():c,x=v(r._calloutPoints,(function(e){return e.x===y})),b=o[e].data[u],C=null===r.state.nearestCircleToHighlight||null!==r.state.nearestCircleToHighlight&&null!==b&&(r.state.nearestCircleToHighlight.x!==b.x||r.state.nearestCircleToHighlight.y!==b.y);x&&C&&(r._uniqueCallOutID="#".concat(r._staticHighlightCircle,"_").concat(e),(0,Co.Ys)("#".concat(r._staticHighlightCircle,"_").concat(e)).attr("cx","".concat(r._xAxisScale(b.x))).attr("cy","".concat(r._yAxisScale(b.y))).attr("visibility","visibility"),(0,Co.Ys)("#".concat(r._verticalLine)).attr("transform",(function(){return"translate(".concat(r._xAxisScale(b.x),", ").concat(r._yAxisScale(b.y),")")})).attr("visibility","visibility").attr("y2","".concat(t-r._yAxisScale(b.y))),r.setState({nearestCircleToHighlight:b,isCalloutVisible:!0,refSelected:"#".concat(r._staticHighlightCircle,"_").concat(e),stackCalloutProps:x,YValueHover:x.values,dataPointCalloutProps:x,hoverXValue:g||_,xAxisCalloutAccessibilityData:m,activePoint:"",activeLine:e})),x||r.setState({isCalloutVisible:!1,nearestCircleToHighlight:b,activePoint:"",activeLine:e})},r._handleFocus=function(e,t,n,o,i){r._uniqueCallOutID=o;var a=t instanceof Date?t.toLocaleDateString():t,s=t instanceof Date?t.getTime():t,l=v(r._calloutPoints,(function(e){return e.x===s}));if(l){var c=r;(0,Co.Ys)("#".concat(r._verticalLine)).attr("transform",(function(){return"translate(".concat(c._xAxisScale(t),", 0)")})).attr("visibility","visibility"),r._refArray.forEach((function(t){t.index===e&&r.setState({isCalloutVisible:!0,refSelected:t.refElement,hoverXValue:n||""+a,YValueHover:l.values,stackCalloutProps:l,dataPointCalloutProps:l,activePoint:o,xAxisCalloutAccessibilityData:i})}))}else r.setState({activePoint:o})},r._handleHover=function(e,t,n,o,i,a,s){s.persist();var l=e instanceof Date?e.toLocaleDateString():e,c=e instanceof Date?e.getTime():e,u=r,d=v(r._calloutPoints,(function(e){return e.x===c}));d?((0,Co.Ys)("#".concat(r._verticalLine)).attr("transform",(function(){return"translate(".concat(u._xAxisScale(e),", ").concat(u._yAxisScale(t),")")})).attr("visibility","visibility").attr("y2","".concat(n-u._yAxisScale(t))),r._uniqueCallOutID!==i&&(r._uniqueCallOutID=i,r.setState({isCalloutVisible:!0,refSelected:"#".concat(i),hoverXValue:o||""+l,YValueHover:d.values,stackCalloutProps:d,dataPointCalloutProps:d,activePoint:i,xAxisCalloutAccessibilityData:a,nearestCircleToHighlight:null,activeLine:null}))):r.setState({activePoint:i,nearestCircleToHighlight:null,activeLine:null})},r._getClickHandler=function(e){return e?{onClick:e}:{}},r._handleMouseOut=function(){(0,Co.Ys)("#".concat(r._verticalLine)).attr("visibility","hidden")},r._handleChartMouseLeave=function(){r._uniqueCallOutID=null,r.setState({isCalloutVisible:!1,activePoint:"",activeLine:null})},r._handleLegendClick=function(e,t){e.onLegendClick&&e.onLegendClick(t)},r._handleMultipleLineLegendSelectionAction=function(e){var n,o=r.state.selectedLegendPoints.reduce((function(t,n,r){return t>-1||n.legend!==e.legend?t:r}),-1);n=-1===o?(0,t.ev)((0,t.ev)([],r.state.selectedLegendPoints,!0),[e],!1):r.state.selectedLegendPoints.slice(0,o).concat(r.state.selectedLegendPoints.slice(o+1)),r.props.data&&n.length===r.props.data.lineChartData.length&&(r.props.colorFillBars&&r.props.colorFillBars.length===r.state.selectedColorBarLegend.length||!r.props.colorFillBars)?r._clearMultipleLegendSelections():n.length||r.state.selectedColorBarLegend.length?r.setState({selectedLegendPoints:n,isSelectedLegend:!0}):r._clearMultipleLegendSelections();var i=n.map((function(e){return e.legend}));r._handleLegendClick(e,i)},r._handleMultipleColorFillBarLegendSelectionAction=function(e){var n,o=r.state.selectedColorBarLegend.reduce((function(t,n,r){return t>-1||n.legend!==e.legend?t:r}),-1);(n=-1===o?(0,t.ev)((0,t.ev)([],r.state.selectedColorBarLegend,!0),[e],!1):r.state.selectedColorBarLegend.slice(0,o).concat(r.state.selectedColorBarLegend.slice(o+1))).length===(r.props.colorFillBars&&r.props.colorFillBars.length)&&(r.props.data&&r.props.data.lineChartData.length===r.state.selectedLegendPoints.length||!r.props.data)?r._clearMultipleLegendSelections():n.length||r.state.selectedLegendPoints.length?r.setState({selectedColorBarLegend:n,isSelectedLegend:!0}):r._clearMultipleLegendSelections();var i=n.map((function(e){return e.legend}));r._handleLegendClick(e,i)},r._clearMultipleLegendSelections=function(){r.setState({selectedColorBarLegend:[],selectedLegendPoints:[],isSelectedLegend:!1})},r._legendHighlighted=function(e){return r.state.selectedLegend===e||""===r.state.selectedLegend&&r.state.activeLegend===e},r._noLegendHighlighted=function(){return""===r.state.selectedLegend&&""===r.state.activeLegend},r._getColorFillBarOpacity=function(e){return e.applyPattern?1:.4},r._getAriaLabel=function(e,t){var n,o=r._points[e],i=o.data[t],a=i.x instanceof Date?i.x.toLocaleString():i.x,s=i.xAxisCalloutData||a,l=o.legend,c=i.yAxisCalloutData||i.y;return(null===(n=i.callOutAccessibilityData)||void 0===n?void 0:n.ariaLabel)||"".concat(s,". ").concat(l,", ").concat(c,".")},r.state={hoverXValue:"",activeLegend:"",YValueHover:[],refSelected:"",selectedLegend:"",isCalloutVisible:!1,selectedLegendPoints:[],selectedColorBarLegend:[],isSelectedLegend:!1,activePoint:"",nearestCircleToHighlight:null,activeLine:null},r._refArray=[],r._points=r._injectIndexPropertyInLineChartData(r.props.data.lineChartData),r._colorFillBars=[],r._calloutPoints=(0,Kt.Wx)(r._points)||[],r._circleId=f("circle"),r._lineId=f("lineID"),r._borderId=f("borderID"),r._verticalLine=f("verticalLine"),r._colorFillBarPatternId=f("colorFillBarPattern"),r._tooltipId=f("LineChartTooltipId_"),r._rectId=f("containerRectLD"),r._staticHighlightCircle=f("staticHighlightCircle"),r._createLegendsMemoized=(0,ut.NF)((function(e){return r._createLegends(e)})),r._firstRenderOptimization=!0,r._emptyChartId=f("_LineChart_empty"),n.eventAnnotationProps&&n.eventAnnotationProps.labelHeight&&(r.eventLabelHeight=n.eventAnnotationProps.labelHeight),r}return(0,t.ZT)(n,e),n.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=(0,Kt.Wx)(this._points)||[])},n.prototype.render=function(){var e=this,n=this.props,r=n.tickValues,i=n.tickFormat,a=n.eventAnnotationProps,s=n.legendProps,l=n.data;this._points=this._injectIndexPropertyInLineChartData(l.lineChartData);var c=(0,Kt.V4)(this._points),u=this._points;s&&s.canSelectMultipleLegends&&(u=this.state.selectedLegendPoints.length>=1?this.state.selectedLegendPoints:this._points,this._calloutPoints=(0,Kt.Wx)(u));var d=null;this.props.hideLegend||(d=this._createLegendsMemoized(this._points));var h=(0,t.pi)({isCalloutVisible:this.state.isCalloutVisible,directionalHint:_.topAutoEdge,YValueHover:this.state.YValueHover,hoverXValue:this.state.hoverXValue,id:"toolTip".concat(this._uniqueCallOutID),target:this.state.refSelected,isBeakVisible:!1,gapSpace:15,onDismiss:this._closeCallout,preventDismissOnEvent:function(){return!0},hidden:!(!this.props.hideTooltip&&this.state.isCalloutVisible),descriptionMessage:this.props.getCalloutDescriptionMessage&&this.state.stackCalloutProps?this.props.getCalloutDescriptionMessage(this.state.stackCalloutProps):void 0,"data-is-focusable":!0,xAxisCalloutAccessibilityData:this.state.xAxisCalloutAccessibilityData},this.props.calloutProps),p={tickValues:r,tickFormat:i};return this._isChartEmpty()?o.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):o.createElement(Oo,(0,t.pi)({},this.props,{chartTitle:l.chartTitle,points:u,chartType:Kt.$X.LineChart,isCalloutForStack:!0,calloutProps:h,tickParams:p,legendBars:d,getmargins:this._getMargins,getGraphData:this._initializeLineChartData,xAxisType:c?Kt.xl.DateAxis:Kt.xl.NumericAxis,customizedCallout:this._getCustomizedCallout(),onChartMouseLeave:this._handleChartMouseLeave,enableFirstRenderOptimization:this.props.enablePerfOptimization&&this._firstRenderOptimization,children:function(n){return e._xAxisScale=n.xScale,e._yAxisScale=n.yScale,o.createElement(o.Fragment,null,o.createElement("g",null,o.createElement("line",{x1:0,y1:0,x2:0,y2:n.containerHeight,stroke:"#323130",id:e._verticalLine,visibility:"hidden",strokeDasharray:"5,5"}),e.props.optimizeLargeData?o.createElement("rect",{id:e._rectId,width:n.containerWidth,height:n.containerHeight,fill:"transparent"}):o.createElement(o.Fragment,null),o.createElement("g",null,e._renderedColorFillBars,e.lines),a&&o.createElement(Jo,(0,t.pi)({theme:e.props.theme},a,{scale:n.xScale,chartYTop:e.margins.top+e.eventLabelHeight,chartYBottom:n.containerHeight-35}))))}}))},n.prototype._createLegends=function(e){var n=this,r=this.props,i=r.legendProps,a=r.allowMultipleShapesForPoints,s=void 0!==a&&a,l=!(!i||!i.canSelectMultipleLegends),c=e.map((function(e){var r=e.color;return(0,t.pi)((0,t.pi)({title:e.legend,color:r,action:function(){l?n._handleMultipleLineLegendSelectionAction(e):n._handleSingleLegendSelectionAction(e)},onMouseOutAction:function(){n.setState({activeLegend:""})},hoverAction:function(){n._handleChartMouseLeave(),n.setState({activeLegend:e.legend})}},e.legendShape&&{shape:e.legendShape}),s&&{shape:Kt.wo[e.index%Object.keys(Kt.Ml).length]})})),u=this.props.colorFillBars?this.props.colorFillBars.map((function(e,t){var r,o=e.legend,i=_o(e.color,null===(r=n.props.theme)||void 0===r?void 0:r.isInverted);return{title:o,color:i,action:function(){l?n._handleMultipleColorFillBarLegendSelectionAction(e):n._handleSingleLegendSelectionAction(e)},onMouseOutAction:function(){n.setState({activeLegend:""})},hoverAction:function(){n._handleChartMouseLeave(),n.setState({activeLegend:o})},opacity:n._getColorFillBarOpacity(e),stripePattern:e.applyPattern}})):[];return o.createElement(Ar,(0,t.pi)({legends:(0,t.ev)((0,t.ev)([],c,!0),u,!0),enabledWrapLines:this.props.enabledLegendsWrapLines,overflowProps:this.props.legendsOverflowProps,focusZonePropsInHoverCard:this.props.focusZonePropsForLegendsInHoverCard,overflowText:this.props.legendsOverflowText},l&&{onLegendHoverCardLeave:this._onHoverCardHide},this.props.legendProps))},n.prototype._createLines=function(e,n){var r,i,a,s,l,c,u,d,h,p,f,g,m,v,_,y,x,b,C,E,S,A,L,k,T=this,w=[];this.state.isSelectedLegend?this._points=this.state.selectedLegendPoints:this._points=this._injectIndexPropertyInLineChartData(this.props.data.lineChartData);for(var D=function(e){var D=[],P=[],F=[],I=M._points[e].legend,N=M._points[e].color,V=M.state.activePoint,O=M.props.theme,H=n-M.margins.bottom+6;if(1===M._points[e].data.length){var B=M._points[e].data[0],R=B.x,z=B.y,W=B.xAxisCalloutData,Y=B.xAxisCalloutAccessibilityData,Z="".concat(M._circleId,"_").concat(e);F.push(o.createElement("circle",(0,t.pi)({id:Z,key:Z,r:V===Z?5.5:3.5,cx:M._xAxisScale(R),cy:M._yAxisScale(z),fill:V===Z?O.palette.white:N,onMouseOver:M._handleHover.bind(M,R,z,H,W,Z,Y),onMouseMove:M._handleHover.bind(M,R,z,H,W,Z,Y),onMouseOut:M._handleMouseOut,strokeWidth:V===Z?4:0,stroke:V===Z?N:"",role:"img","aria-label":M._getAriaLabel(e,0),"data-is-focusable":!0,ref:function(e){T._refCallback(e,Z)},onFocus:function(){return T._handleFocus(Z,R,W,Z,Y)},onBlur:M._handleMouseOut},M._getClickHandler(M._points[e].data[0].onDataPointClick))))}var q=0,X=null!==(i=null===(r=M._points[e].gaps)||void 0===r?void 0:r.sort((function(e,t){return e.startIndex-t.startIndex})))&&void 0!==i?i:[];if(M.props.optimizeLargeData&&M._points[e].data.length>1){for(var U=To().x((function(e){return T._xAxisScale(e[0])})).y((function(e){return T._yAxisScale(e[1])})).curve(Ao),j="".concat(M._lineId,"_").concat(e),G="".concat(M._borderId,"_").concat(e),K=(null===(a=M._points[e].lineOptions)||void 0===a?void 0:a.strokeWidth)||M.props.strokeWidth||4,$=M._legendHighlighted(I)||M._noLegendHighlighted()||M.state.isSelectedLegend,J=[],Q=0;Q<M._points[e].data.length;Q++)J.push([M._points[e].data[Q].x instanceof Date?M._points[e].data[Q].x.getTime():M._points[e].data[Q].x,M._points[e].data[Q].y]);if($){var ee=(null===(s=M._points[e].lineOptions)||void 0===s?void 0:s.lineBorderWidth)?Number.parseFloat(M._points[e].lineOptions.lineBorderWidth.toString()):0;ee>0&&P.push(o.createElement("path",{id:G,key:G,d:U(J),fill:"transparent",strokeLinecap:null!==(c=null===(l=M._points[e].lineOptions)||void 0===l?void 0:l.strokeLinecap)&&void 0!==c?c:"round",strokeWidth:Number.parseFloat(K.toString())+ee,stroke:(null===(u=M._points[e].lineOptions)||void 0===u?void 0:u.lineBorderColor)||O.palette.white,opacity:1})),D.push(o.createElement("path",(0,t.pi)({id:j,key:j,d:U(J),fill:"transparent","data-is-focusable":!0,stroke:N,strokeWidth:K,strokeLinecap:null!==(h=null===(d=M._points[e].lineOptions)||void 0===d?void 0:d.strokeLinecap)&&void 0!==h?h:"round",onMouseMove:M._onMouseOverLargeDataset.bind(M,e,H),onMouseOver:M._onMouseOverLargeDataset.bind(M,e,H),onMouseOut:M._handleMouseOut},M._getClickHandler(M._points[e].onLineClick),{opacity:1,role:"img","aria-label":"".concat(I,", series ").concat(e+1," of ").concat(M._points.length," with ").concat(M._points[e].data.length," data points.")})))}else D.push(o.createElement("path",{id:j,key:j,d:U(J),fill:"transparent","data-is-focusable":!0,stroke:N,strokeWidth:K,strokeLinecap:null!==(f=null===(p=M._points[e].lineOptions)||void 0===p?void 0:p.strokeLinecap)&&void 0!==f?f:"round",opacity:.1,role:"img","aria-label":"".concat(I,", series ").concat(e+1," of ").concat(M._points.length," with ").concat(M._points[e].data.length," data points.")}));var te=null!==M.state.activeLine&&M.state.activeLine===e;F.push(o.createElement("circle",{id:"".concat(M._staticHighlightCircle,"_").concat(e),key:"".concat(M._staticHighlightCircle,"_").concat(e),r:5.5,cx:0,cy:0,fill:O.palette.white,strokeWidth:4,stroke:N,visibility:te?"visibility":"hidden",onMouseMove:M._onMouseOverLargeDataset.bind(M,e,H),onMouseOver:M._onMouseOverLargeDataset.bind(M,e,H),onMouseOut:M._handleMouseOut}))}else if(!M.props.optimizeLargeData)for(var ne=function(n){var r=M._checkInGap(n,X,q),i=r.isInGap;q=r.gapIndex;var a="".concat(M._lineId,"_").concat(e,"_").concat(n),s="".concat(M._borderId,"_").concat(e,"_").concat(n),l="".concat(M._circleId,"_").concat(e,"_").concat(n),c=M._points[e].data[n-1],u=c.x,d=c.y,h=c.xAxisCalloutData,p=c.xAxisCalloutAccessibilityData,f=M._points[e].data[n],w=f.x,B=f.y,R=M._getPath(M._xAxisScale(u),M._yAxisScale(d),l,n,!1,M._points[e].index),z=(null===(g=M._points[e].lineOptions)||void 0===g?void 0:g.strokeWidth)||M.props.strokeWidth||4,W=M._legendHighlighted(I)||M._noLegendHighlighted()||M.state.isSelectedLegend,Y=M._points[e].hideNonActiveDots&&V!==l;if(F.push(o.createElement("path",(0,t.pi)({id:l,key:l,d:R,"data-is-focusable":!0,onMouseOver:M._handleHover.bind(M,u,d,H,h,l,p),onMouseMove:M._handleHover.bind(M,u,d,H,h,l,p),onMouseOut:M._handleMouseOut,onFocus:function(){return T._handleFocus(a,u,h,l,p)},onBlur:M._handleMouseOut},M._getClickHandler(M._points[e].data[n-1].onDataPointClick),{opacity:W&&!Y?1:.01,fill:M._getPointFill(N,l,n,!1),stroke:N,strokeWidth:z,role:"img","aria-label":M._getAriaLabel(e,n-1)}))),n+1===M._points[e].data.length){var Z="".concat(l).concat(n,"L"),U="".concat(l).concat(n,"D"),j=M._points[e].hideNonActiveDots&&V!==Z;R=M._getPath(M._xAxisScale(w),M._yAxisScale(B),Z,n,!0,M._points[e].index);var G=M._points[e].data[n],K=G.xAxisCalloutData,$=G.xAxisCalloutAccessibilityData;F.push(o.createElement(o.Fragment,{key:"".concat(Z,"_container")},o.createElement("path",(0,t.pi)({id:Z,key:Z,d:R,"data-is-focusable":!0,onMouseOver:M._handleHover.bind(M,w,B,H,K,Z,$),onMouseMove:M._handleHover.bind(M,w,B,H,K,Z,$),onMouseOut:M._handleMouseOut,onFocus:function(){return T._handleFocus(a,w,K,Z,$)},onBlur:M._handleMouseOut},M._getClickHandler(M._points[e].data[n].onDataPointClick),{opacity:W&&!j?1:.01,fill:M._getPointFill(N,Z,n,!0),stroke:N,strokeWidth:z,role:"img","aria-label":M._getAriaLabel(e,n)})),o.createElement("circle",{id:U,key:U,r:8,cx:M._xAxisScale(w),cy:M._yAxisScale(B),opacity:0,width:0,onMouseOver:M._handleHover.bind(M,w,B,H,K,Z,$),onMouseMove:M._handleHover.bind(M,w,B,H,K,Z,$),onMouseOut:M._handleMouseOut,strokeWidth:0,focusable:!1,onBlur:M._handleMouseOut})))}if(W){if(!i){var J=(null===(m=M._points[e].lineOptions)||void 0===m?void 0:m.lineBorderWidth)?Number.parseFloat(M._points[e].lineOptions.lineBorderWidth.toString()):0;J>0&&P.push(o.createElement("line",{id:s,key:s,x1:M._xAxisScale(u),y1:M._yAxisScale(d),x2:M._xAxisScale(w),y2:M._yAxisScale(B),strokeLinecap:null!==(_=null===(v=M._points[e].lineOptions)||void 0===v?void 0:v.strokeLinecap)&&void 0!==_?_:"round",strokeWidth:Number.parseFloat(z.toString())+J,stroke:(null===(y=M._points[e].lineOptions)||void 0===y?void 0:y.lineBorderColor)||O.palette.white,opacity:1})),D.push(o.createElement("line",(0,t.pi)({id:a,key:a,x1:M._xAxisScale(u),y1:M._yAxisScale(d),x2:M._xAxisScale(w),y2:M._yAxisScale(B),strokeWidth:z,ref:function(e){T._refCallback(e,a)},onMouseOver:M._handleHover.bind(M,u,d,H,h,l,p),onMouseMove:M._handleHover.bind(M,u,d,H,h,l,p),onMouseOut:M._handleMouseOut,stroke:N,strokeLinecap:null!==(b=null===(x=M._points[e].lineOptions)||void 0===x?void 0:x.strokeLinecap)&&void 0!==b?b:"round",strokeDasharray:null===(C=M._points[e].lineOptions)||void 0===C?void 0:C.strokeDasharray,strokeDashoffset:null===(E=M._points[e].lineOptions)||void 0===E?void 0:E.strokeDashoffset,opacity:1},M._getClickHandler(M._points[e].onLineClick))))}}else i||D.push(o.createElement("line",{id:a,key:a,x1:M._xAxisScale(u),y1:M._yAxisScale(d),x2:M._xAxisScale(w),y2:M._yAxisScale(B),strokeWidth:z,stroke:N,strokeLinecap:null!==(A=null===(S=M._points[e].lineOptions)||void 0===S?void 0:S.strokeLinecap)&&void 0!==A?A:"round",strokeDasharray:null===(L=M._points[e].lineOptions)||void 0===L?void 0:L.strokeDasharray,strokeDashoffset:null===(k=M._points[e].lineOptions)||void 0===k?void 0:k.strokeDashoffset,opacity:.1}))},re=1;re<M._points[e].data.length;re++)ne(re);w.push.apply(w,(0,t.ev)((0,t.ev)((0,t.ev)([],P,!1),D,!1),F,!1))},M=this,P=this._points.length-1;P>=0;P--)D(P);var F=Qo(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=(0,Co.Ys)(e).call(this._xAxisScale);try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(e){}var N={tooltipCls:F.tooltip,id:this._tooltipId,xAxis:I};I&&(0,Kt.$V)(N)}return w},n.prototype._refCallback=function(e,t){this._refArray.push({index:t,refElement:e})},n.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.lineChartData&&this.props.data.lineChartData.length>0&&this.props.data.lineChartData.filter((function(e){return e.data.length})).length>0)},n.defaultProps={enableReflow:!0},n}(o.Component),ni=(0,e.z)(ti,(function(e){return{tooltip:(0,t.pi)((0,t.pi)({},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"})}})),ri=n(8957);function oi(e,t){if((o=e.length)>1)for(var n,r,o,i=1,a=e[t[0]],s=a.length;i<o;++i)for(r=a,a=e[t[i]],n=0;n<s;++n)a[n][1]+=a[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]}function ii(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function ai(e,t){return e[t]}function si(e){const t=[];return t.key=e,t}function li(e,t,n){var r=null,o=kr(!0),i=null,a=Ao,s=null,l=Gr(c);function c(c){var u,d,h,p,f,g=(c=Lr(c)).length,m=!1,v=new Array(g),_=new Array(g);for(null==i&&(s=a(f=l())),u=0;u<=g;++u){if(!(u<g&&o(p=c[u],u,c))===m)if(m=!m)d=u,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),h=u-1;h>=d;--h)s.point(v[h],_[h]);s.lineEnd(),s.areaEnd()}m&&(v[u]=+e(p,u,c),_[u]=+t(p,u,c),s.point(r?+r(p,u,c):v[u],n?+n(p,u,c):_[u]))}if(f)return s=null,f+""||null}function u(){return To().defined(o).curve(a).context(i)}return e="function"==typeof e?e:void 0===e?Lo:kr(+e),t="function"==typeof t?t:kr(void 0===t?0:+t),n="function"==typeof n?n:void 0===n?ko:kr(+n),c.x=function(t){return arguments.length?(e="function"==typeof t?t:kr(+t),r=null,c):e},c.x0=function(t){return arguments.length?(e="function"==typeof t?t:kr(+t),c):e},c.x1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:kr(+e),c):r},c.y=function(e){return arguments.length?(t="function"==typeof e?e:kr(+e),n=null,c):t},c.y0=function(e){return arguments.length?(t="function"==typeof e?e:kr(+e),c):t},c.y1=function(e){return arguments.length?(n=null==e?null:"function"==typeof e?e:kr(+e),c):n},c.lineX0=c.lineY0=function(){return u().x(e).y(t)},c.lineY1=function(){return u().x(e).y(n)},c.lineX1=function(){return u().x(r).y(t)},c.defined=function(e){return arguments.length?(o="function"==typeof e?e:kr(!!e),c):o},c.curve=function(e){return arguments.length?(a=e,null!=i&&(s=a(i)),c):a},c.context=function(e){return arguments.length?(null==e?i=s=null:s=a(i=e),c):i},c}function ci(e){return e<0?-1:1}function ui(e,t,n){var r=e._x1-e._x0,o=t-e._x1,i=(e._y1-e._y0)/(r||o<0&&-0),a=(n-e._y1)/(o||r<0&&-0),s=(i*o+a*r)/(r+o);return(ci(i)+ci(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(s))||0}function di(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function hi(e,t,n){var r=e._x0,o=e._y0,i=e._x1,a=e._y1,s=(i-r)/3;e._context.bezierCurveTo(r+s,o+s*t,i-s,a-s*n,i,a)}function pi(e){this._context=e}function fi(e){this._context=e}function gi(e){return new pi(e)}pi.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:hi(this,this._t0,di(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,hi(this,di(this,n=ui(this,e,t)),n);break;default:hi(this,this._t0,n=ui(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 fi(e)}.prototype=Object.create(pi.prototype)).point=function(e,t){pi.prototype.point.call(this,t,e)},fi.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,o,i){this._context.bezierCurveTo(t,e,r,n,i,o)}};var mi,vi=(0,i.y)(),_i=(0,Eo.Z)((function(e){return e.x})).left;!function(e){e.show="visibility",e.hide="hidden"}(mi||(mi={}));var yi=function(e){function n(n){var r=e.call(this,n)||this;return r._getMargins=function(e){r.margins=e},r._onRectMouseMove=function(e){e.persist();var t=r.props.data.lineChartData,n=r._xAxisRectScale.invert((0,Co.Eb)(document.getElementById(r._rectId),e)[0]),o=_i(t[0].data,n),i=t[0].data[o-1],a=t[0].data[o],s=null,l=null,c=null;if(void 0===i&&void 0!==a)l=a.x,c=o;else if(void 0!==i&&void 0===a)l=i.x,c=o-1;else{var u=void 0,d=void 0,h=void 0;switch(s=(0,Kt.SY)(t[0].data[0].x,!0)){case Kt.xl.DateAxis:u=new Date(n).getTime(),d=i.x.getTime(),h=a.x.getTime(),l=Math.abs(u-d)>Math.abs(u-h)?a.x:i.x,c=Math.abs(u-d)>Math.abs(u-h)?o:o-1;break;case Kt.xl.NumericAxis:u=n,d=i.x,h=a.x,l=Math.abs(u-d)>Math.abs(u-h)?a.x:i.x,c=Math.abs(u-d)>Math.abs(u-h)?o:o-1}}var p=t[0].data[c],f=p.xAxisCalloutData,g=p.xAxisCalloutAccessibilityData,m=l instanceof Date?l.toLocaleString():l,_=l instanceof Date?l.getTime():l,y=v(r._calloutPoints,(function(e){return e.x===_})),x=s===Kt.xl.DateAxis?l.getTime():l,b=r.state.nearestCircleToHighlight!==x;y&&b&&!r.state.isShowCalloutPending&&r.setState({nearestCircleToHighlight:x,isCalloutVisible:!1,isShowCalloutPending:!0,lineXValue:r._xAxisRectScale(l),displayOfLine:mi.show,isCircleClicked:!1,stackCalloutProps:y,YValueHover:y.values,dataPointCalloutProps:y,hoverXValue:f||m,xAxisCalloutAccessibilityData:g,activePoint:""}),y||r.setState({isCalloutVisible:!1,nearestCircleToHighlight:x,displayOfLine:mi.hide,isCircleClicked:!1})},r._onRectMouseOut=function(){},r._handleChartMouseLeave=function(){r.setState({refSelected:null,isCalloutVisible:!1,nearestCircleToHighlight:null,lineXValue:0,displayOfLine:mi.hide,isCircleClicked:!1,stackCalloutProps:void 0,dataPointCalloutProps:void 0,hoverXValue:void 0,YValueHover:[]})},r._getStackedData=function(e,t){var n=function(){var e=kr([]),t=ii,n=oi,r=ai;function o(o){var i,a,s=Array.from(e.apply(this,arguments),si),l=s.length,c=-1;for(const e of o)for(i=0,++c;i<l;++i)(s[i][c]=[0,+r(e,s[i].key,c,o)]).data=e;for(i=0,a=Lr(t(s));i<l;++i)s[a[i]].index=i;return n(s,a),s}return o.keys=function(t){return arguments.length?(e="function"==typeof t?t:kr(Array.from(t)),o):e},o.value=function(e){return arguments.length?(r="function"==typeof e?e:kr(+e),o):r},o.order=function(e){return arguments.length?(t=null==e?ii:"function"==typeof e?e:kr(Array.from(e)),o):t},o.offset=function(e){return arguments.length?(n=null==e?oi:e,o):n},o}().keys(e)(t),o=(0,ri.Z)(n[n.length-1],(function(e){return e[1]})),i=[];return n.forEach((function(e){var t=[];e.forEach((function(e){t.push({values:e,xVal:e.data.xVal})})),i.push(t)})),r._isMultiStackChart=!!(i&&i.length>1),{stackedData:i,maxOfYVal:o}},r._createDataSet=function(e){if(r.props.enablePerfOptimization&&r._enableComputationOptimization){var t=[],n=[],o=[],i=[],a=(0,Kt.Wx)(e);e&&e.length&&e.forEach((function(e){o.push(e.color),i.push(e.opacity||1),t.push.apply(t,e.data)}));var s={};t.forEach((function(e){var t=e.x instanceof Date?e.x.toLocaleString():e.x;s[t]?s[t].push(e):s[t]=[e]})),Object.keys(s).forEach((function(e){var t=s[e],r={};t.forEach((function(e,t){r.xVal=e.x,r["chart".concat(t)]=e.y})),n.push(r)}));for(var l=n&&Object.keys(n[0]).length,c=[],u=0;u<l-1;u++){var d="chart".concat(u);c.push(d)}var h=r._getStackedData(c,n);return{colors:o,opacity:i,keys:c,stackedInfo:h,calloutPoints:a}}var p=[],f=[],g=[],m=[];a=(0,Kt.Wx)(e),e&&e.length&&e.forEach((function(e){g.push(e.color),m.push(e.opacity||1),p.push.apply(p,e.data)}));for(var v=p,_=function(){var e=v[0].x instanceof Date?v[0].x.toLocaleString():v[0].x,t=v.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".concat(t)]=e.y})),f.push(n);var r=v[0].x instanceof Date?v[0].x.toLocaleString():v[0].x;v=v.filter((function(e){return(e.x instanceof Date?e.x.toLocaleString():e.x)!==r}))};v.length;)_();for(l=f&&Object.keys(f[0]).length,c=[],u=0;u<l-1;u++)d="chart".concat(u),c.push(d);return h=r._getStackedData(c,f),{colors:g,opacity:m,keys:c,stackedInfo:h,calloutPoints:a}},r._getCustomizedCallout=function(){return r.props.onRenderCalloutPerStack?r.props.onRenderCalloutPerStack(r.state.stackCalloutProps):r.props.onRenderCalloutPerDataPoint?r.props.onRenderCalloutPerDataPoint(r.state.dataPointCalloutProps):null},r._getGraphData=function(e,t,n,o,i){r._chart=r._drawGraph(n,e,t,i)},r._getLegendData=function(e){var n=[];return e.forEach((function(e){var t=e.color;if(!(n.filter((function(n){return n.title===e.legend&&n.color===t})).length>0)){var o={title:e.legend,color:t,action:function(){r._onLegendClick(e.legend)},hoverAction:function(){r._handleChartMouseLeave(),r._onLegendHover(e.legend)},onMouseOutAction:function(){r._onLegendLeave()}};n.push(o)}})),o.createElement(Ar,(0,t.pi)({legends:n,overflowProps:r.props.legendsOverflowProps,enabledWrapLines:r.props.enabledLegendsWrapLines,focusZonePropsInHoverCard:r.props.focusZonePropsForLegendsInHoverCard},r.props.legendProps))},r._onDataPointClick=function(e){e&&e(),r.setState({isCircleClicked:!0})},r._getOpacity=function(e){return r._isMultiStackChart?r._legendHighlighted(e)||r._noLegendHighlighted()?.7:.1:.7},r._getLineOpacity=function(e){if(r._isMultiStackChart){var t=.3;return r.state.isCalloutVisible&&(t=1),r._noLegendHighlighted()||(t=r._legendHighlighted(e)?0:.1),t}return 1},r._updateCircleFillColor=function(e,t,n){var o=t;return r.state.nearestCircleToHighlight!==e&&r.state.activePoint!==n||(r._highlightedCircleId=n,r.state.isCircleClicked||(o=r.props.theme.palette.white)),o},r._drawGraph=function(e,n,i,a){var s,l=r._addDefaultColors(r.props.data.lineChartData),c=r.props.data,u=c.pointOptions,d=c.pointLineOptions,h=li().x((function(e){return n(e.xVal)})).y0((function(e){return i(e.values[0])})).y1((function(e){return i(e.values[1])})).curve(gi),p=To().x((function(e){return n(e.xVal)})).y((function(e){return i(e.values[1])})).curve(gi),f=[];r._stackedData.forEach((function(e,a){f.push(o.createElement(o.Fragment,{key:"".concat(a,"-graph-").concat(r._uniqueIdForGraph)},o.createElement("path",(0,t.pi)({id:"".concat(a,"-line-").concat(r._uniqueIdForGraph),d:p(e),fill:"transparent",strokeWidth:3,stroke:r._colors[a],opacity:r._getLineOpacity(l[a].legend),onMouseMove:r._onRectMouseMove,onMouseOut:r._onRectMouseOut,onMouseOver:r._onRectMouseMove},l[a].lineOptions)),1===e.length?o.createElement("circle",{id:"".concat(a,"-graph-").concat(r._uniqueIdForGraph),cx:n(e[0].xVal),cy:i(e[0].values[1]),r:6,stroke:r._colors[a],strokeWidth:3,fill:r._colors[a],opacity:r._opacity[a],fillOpacity:r._getOpacity(l[a].legend),onMouseMove:r._onRectMouseMove,onMouseOut:r._onRectMouseOut,onMouseOver:r._onRectMouseMove}):o.createElement("path",(0,t.pi)({id:"".concat(a,"-graph-").concat(r._uniqueIdForGraph),d:h(e),fill:r._colors[a],opacity:r._opacity[a],fillOpacity:r._getOpacity(l[a].legend),onMouseMove:r._onRectMouseMove,onMouseOut:r._onRectMouseOut,onMouseOver:r._onRectMouseMove},r.props.optimizeLargeData&&{"data-is-focusable":r._legendHighlighted(l[a].legend)||r._noLegendHighlighted(),role:"img","aria-label":"".concat(l[a].legend,", series ").concat(a+1," of ").concat(l.length," with ").concat(l[a].data.length," data points.")}))))}));var g=u&&u.r?Number(u.r):8;r._stackedData.forEach((function(e,a){l.length!==a&&(r.props.optimizeLargeData&&1!==e.length?e.forEach((function(e,c){var d=e.xVal instanceof Date?e.xVal.getTime():e.xVal;if(r.state.nearestCircleToHighlight===d){var h="".concat(r._circleId,"_").concat(a*r._stackedData[0].length+c);s=l[a].color,f.push(o.createElement("circle",(0,t.pi)({key:h,id:h,cx:n(e.xVal),cy:i(e.values[1]),stroke:s,strokeWidth:3,fill:r._updateCircleFillColor(d,s,h),onMouseOut:r._onRectMouseOut,onMouseOver:r._onRectMouseMove,onClick:r._onDataPointClick.bind(r,l[a].data[c].onDataPointClick)},u,{r:r._getCircleRadius(d,g,h)})))}})):f.push(o.createElement("g",{key:"".concat(a,"-dots-").concat(r._uniqueIdForGraph),d:h(e),clipPath:"url(#clip)"},e.map((function(e,c){var d="".concat(r._circleId,"_").concat(a*r._stackedData[0].length+c),h=e.xVal instanceof Date?e.xVal.getTime():e.xVal;return s=l[a].color,o.createElement("circle",(0,t.pi)({key:d,id:d,"data-is-focusable":r._legendHighlighted(l[a].legend)||r._noLegendHighlighted(),cx:n(e.xVal),cy:i(e.values[1]),stroke:s,strokeWidth:3,fill:r._updateCircleFillColor(h,s,d),onMouseOut:r._onRectMouseOut,onMouseOver:r._onRectMouseMove,onClick:r._onDataPointClick.bind(r,l[a].data[c].onDataPointClick),onFocus:function(){return r._handleFocus(a,c,d)},onBlur:r._handleBlur},u,{r:r._getCircleRadius(h,g,d),role:"img","aria-label":r._getAriaLabel(a,c)}))})))))})),f.push(o.createElement("line",(0,t.pi)({id:r._verticalLineId,key:r._verticalLineId,x1:r.state.lineXValue,y1:0,x2:r.state.lineXValue,y2:e,strokeWidth:1,strokeDasharray:5.5,stroke:s,opacity:.5,visibility:r.state.displayOfLine},d)));var m=vi(r.props.styles,{theme:r.props.theme});if(!r.props.showXAxisLablesTooltip)try{document.getElementById(r._tooltipId)&&document.getElementById(r._tooltipId).remove()}catch(e){}if(!r.props.wrapXAxisLables&&r.props.showXAxisLablesTooltip){var v=(0,Co.Ys)(a).call(n);try{document.getElementById(r._tooltipId)&&document.getElementById(r._tooltipId).remove()}catch(e){}var _={tooltipCls:m.tooltip,id:r._tooltipId,xAxis:v};v&&(0,Kt.$V)(_)}return f},r._getCircleRadius=function(e,t,n){var o=r.state,i=o.isCircleClicked,a=o.nearestCircleToHighlight,s=o.activePoint;return i&&a===e?1:a===e||s===n?t:0},r._closeCallout=function(){r.setState({isCalloutVisible:!1})},r._legendHighlighted=function(e){return r.state.selectedLegend===e||""===r.state.selectedLegend&&r.state.activeLegend===e},r._noLegendHighlighted=function(){return""===r.state.selectedLegend&&""===r.state.activeLegend},r._addDefaultColors=function(e){return e?e.map((function(e,n){var o,i,a;return a=void 0===e.color?vo(n,0,null===(o=r.props.theme)||void 0===o?void 0:o.isInverted):_o(e.color,null===(i=r.props.theme)||void 0===i?void 0:i.isInverted),(0,t.pi)((0,t.pi)({},e),{color:a})})):[]},r._handleFocus=function(e,t,n){var o=r.props.data.lineChartData[e].data[t],i=o.x,a=o.y,s=o.xAxisCalloutData,l=i instanceof Date?i.toLocaleString():i,c=i instanceof Date?i.getTime():i,u=r._calloutPoints.find((function(e){return e.x===c}));u.values=u.values.filter((function(e){return e.y===a})),r.setState({refSelected:"#".concat(n),isCalloutVisible:!0,hoverXValue:s||l,YValueHover:u.values,stackCalloutProps:u,dataPointCalloutProps:u,activePoint:n})},r._handleBlur=function(){r.setState({refSelected:null,isCalloutVisible:!1,hoverXValue:void 0,YValueHover:[],stackCalloutProps:void 0,dataPointCalloutProps:void 0,activePoint:""})},r._createSet=(0,ut.NF)(r._createDataSet),r.state={selectedLegend:"",activeLegend:"",hoverXValue:"",isCalloutVisible:!1,refSelected:null,YValueHover:[],lineXValue:0,displayOfLine:mi.hide,isCircleClicked:!1,nearestCircleToHighlight:null,isShowCalloutPending:!1,activePoint:""},Ot("AREA CHART",n,{showYAxisGridLines:"Dont use this property. Lines are drawn by default"}),r._uniqueIdForGraph=f("areaChart_"),r._verticalLineId=f("verticalLine_"),r._circleId=f("circle"),r._rectId=f("rectangle"),r._tooltipId=f("AreaChartTooltipID"),r._enableComputationOptimization=!0,r._firstRenderOptimization=!0,r._emptyChartId=f("_AreaChart_empty"),r}return(0,t.ZT)(n,e),n.prototype.componentDidUpdate=function(){this.state.isShowCalloutPending&&this.setState({refSelected:"#".concat(this._highlightedCircleId),isCalloutVisible:!0,isShowCalloutPending:!1})},n.prototype.render=function(){var e=this;if(!this._isChartEmpty()){var n=this.props.data,r=n.lineChartData,i=n.chartTitle,a=this._addDefaultColors(r),s=this._createSet(a),l=s.colors,c=s.opacity,u=s.stackedInfo,d=s.calloutPoints;this._calloutPoints=d;var h=(0,Kt.V4)(a);this._colors=l,this._opacity=c,this._stackedData=u.stackedData;var p=this._getLegendData(a),f={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat},g=(0,t.pi)({target:this.state.refSelected,isCalloutVisible:this.state.isCalloutVisible,directionalHint:_.topAutoEdge,YValueHover:this.state.YValueHover,hoverXValue:this.state.hoverXValue,id:"toolTip".concat(this._uniqueCallOutID),gapSpace:15,isBeakVisible:!1,onDismiss:this._closeCallout,"data-is-focusable":!0,xAxisCalloutAccessibilityData:this.state.xAxisCalloutAccessibilityData},this.props.calloutProps);return o.createElement(Oo,(0,t.pi)({},this.props,{chartTitle:i,points:a,chartType:Kt.$X.AreaChart,calloutProps:g,legendBars:p,isCalloutForStack:!0,xAxisType:h?Kt.xl.DateAxis:Kt.xl.NumericAxis,tickParams:f,maxOfYVal:u.maxOfYVal,getGraphData:this._getGraphData,getmargins:this._getMargins,customizedCallout:this._getCustomizedCallout(),onChartMouseLeave:this._handleChartMouseLeave,enableFirstRenderOptimization:this.props.enablePerfOptimization&&this._firstRenderOptimization,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 o.createElement(o.Fragment,null,o.createElement("g",null,o.createElement("rect",{id:e._rectId,width:r,height:i,fill:"transparent",onMouseMove:e._onRectMouseMove,onMouseOut:e._onRectMouseOut,onMouseOver:e._onRectMouseMove})),o.createElement("g",null,e._chart))}}))}return o.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"})},n.prototype._onLegendClick=function(e){this.state.selectedLegend===e?this.setState({selectedLegend:""}):this.setState({selectedLegend:e})},n.prototype._onLegendHover=function(e){this.setState({activeLegend:e})},n.prototype._onLegendLeave=function(){this.setState({activeLegend:""})},n.prototype._getAriaLabel=function(e,t){var n,r=this.props.data.lineChartData[e],o=r.data[t],i=o.x instanceof Date?o.x.toLocaleString():o.x,a=o.xAxisCalloutData||i,s=r.legend,l=o.yAxisCalloutData||o.y;return(null===(n=o.callOutAccessibilityData)||void 0===n?void 0:n.ariaLabel)||"".concat(a,". ").concat(s,", ").concat(l,".")},n.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.lineChartData&&this.props.data.lineChartData.length>0&&0===this.props.data.lineChartData.filter((function(e){return 0===e.data.length})).length)},n}(o.Component),xi=(0,e.z)(yi,(function(e){return{tooltip:(0,t.pi)((0,t.pi)({},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"})}})),bi=n(5795),Ci=function(e,t){var n=e.color;return{arcRoot:{fill:n},arcRootFocussed:{fill:n,stroke:(null==t?void 0:t.palette.black)||Ye.UK.black,strokeWidth:2},arc:{outline:"none"},arcText:{fill:(null==t?void 0:t.palette.black)||Ye.UK.black,outline:"none"}}},Ei=function(e){function n(t){var n=e.call(this,t)||this;return n.updateChart=function(e){Ai(e)},n._onFocus=function(){n.setState({isArcFocused:!0})},n._onBlur=function(){n.setState({isArcFocused:!1})},n.state={isArcFocused:!1},n._arcId=f("piechart_arc"),n}return(0,t.ZT)(n,e),n.getDerivedStateFromProps=function(e){return Ai(e),null},n.prototype.render=function(){var e,n=this,r=this.props.arc,a=(0,i.y)()((function(e){return Ci(e,n.props.theme)}),(0,t.pi)({},this.props));return o.createElement("path",{d:r(this.props.data),className:"".concat(this.state.isArcFocused?a.arcRootFocussed:a.arcRoot),onClick:null===(e=this.props.data)||void 0===e?void 0:e.data.onClick})},n.defaultProps={arc:no()},n}(o.Component),Si=function(e){function n(t){var n=e.call(this,t)||this;return n._isRTL=(0,a.zg)(),n._arcId=f("piechart_arc"),n}return(0,t.ZT)(n,e),n.prototype.render=function(){var t,n,r=this,a=this.props,s=a.data,l=a.culture,c=no().centroid({endAngle:(null==s?void 0:s.endAngle)||0,startAngle:(null==s?void 0:s.startAngle)||0,padAngle:null==s?void 0:s.padAngle,innerRadius:(null===(t=this.props)||void 0===t?void 0:t.outerRadius)||0,outerRadius:(null===(n=this.props)||void 0===n?void 0:n.outerRadius)||4}),u=c[0],d=c[1],h=(0,i.y)()((function(e){return Ci(e,r.props.theme)})),p=(((null==s?void 0:s.startAngle)||0)+((null==s?void 0:s.endAngle)||0))/2,f="".concat(null==s?void 0:s.data.x,"-").concat((0,Kt.Ts)(null==s?void 0:s.data.y,l));return o.createElement("g",{className:"".concat(h.arc," arc"),"data-is-focusable":!0,id:this._arcId,onFocus:this._onFocus,onBlur:this._onBlur,"aria-label":f,role:"img"},e.prototype.render.call(this),o.createElement(Po,{content:f,textProps:{x:u,y:d,dominantBaseline:p>Math.PI/2&&p<3*Math.PI/2?"hanging":"auto",textAnchor:!this._isRTL&&p>Math.PI||this._isRTL&&p<Math.PI?"end":"start","aria-label":"".concat(null==s?void 0:s.data.x,"-").concat((0,Kt.Ts)(null==s?void 0:s.data.y,l)),className:h.arcText},isTooltipVisibleProp:this.state.isArcFocused,shouldReceiveFocus:!1,maxWidth:40,wrapContent:Kt.nX}))},n}(Ei);function Ai(e){e.arc.innerRadius(e.innerRadius),e.arc.outerRadius(e.outerRadius)}var Li,ki=function(e){function n(t){var n=e.call(this,t)||this;return n.arcGenerator=function(e,t){return o.createElement(Si,{culture:n.props.culture,key:t,data:e,innerRadius:n.props.innerRadius,outerRadius:n.props.outerRadius,color:"".concat(n.colors(t)),theme:n.props.theme})},n}return(0,t.ZT)(n,e),n.prototype.render=function(){var e=this,t=this.props,n=t.pie,r=t.data,i=t.width,a=t.height,s=t.chartTitle,l=t.theme,c=[];if(r&&!this.props.colors)for(var u=0;u<r.length;u++)c.push(vo(u,0,null==l?void 0:l.isInverted));var d=this.props.colors,h=void 0===d?c:d;this.colors=(0,bi.Z)().range(h.map((function(e){return _o(e)})));var p=n(r),f="translate(".concat(i/2,", ").concat(a/2,")");return o.createElement(xn,{direction:Gt.domOrder},o.createElement("svg",{width:i,height:a,"aria-label":s},o.createElement("g",{className:"pie",transform:f},p.map((function(t,n){return e.arcGenerator(t,n)})))))},n.defaultProps={pie:Wr().padAngle(.01).sort(null).value((function(e){return e.y}))},n}(o.Component),Ti=(0,i.y)(),wi=function(e){function n(t){var n=e.call(this,t)||this;return n._emptyChartId=f("_PieChart_empty"),n}return(0,t.ZT)(n,e),n.prototype.render=function(){var e=this.props,t=e.data,n=e.width,r=e.height,i=e.colors,a=e.chartTitle,s=this.props,l=s.theme,c=s.className,u=s.styles,d=s.culture;this._classNames=Ti(u,{theme:l,width:n,height:r,className:c});var h=Math.min(n-80,r-32)/2;return this._isChartEmpty()?o.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):o.createElement("div",{className:this._classNames.root},this.props.chartTitle&&o.createElement("p",{className:this._classNames.chartTitle},this.props.chartTitle),o.createElement(ki,{culture:d,width:n,height:r,outerRadius:h,innerRadius:1,data:t,colors:i,chartTitle:a,theme:l}))},n.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.length>0&&this.props.data.filter((function(e){return e.y>0})).length>0)},n.defaultProps={data:[],width:600,height:350},n}(o.Component),Di=(0,e.z)(wi,(function(e){var n=e.className,r=e.theme,o=e.width+30,i=e.height+10;return{root:[r.fonts.medium,"ms-PieChart",n,{width:o+40}],chart:[{padding:20,width:o,height:i,boxSizing:"content-box"}],chartTitle:[(0,t.pi)({textAlign:"center"},r.fonts.mediumPlus)]}})),Mi=(0,i.y)(),Pi=function(e){function n(t){var n=e.call(this,t)||this;return n._isRTL=(0,a.zg)(),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?"".concat(n,", "):"")+"".concat(r,".")},n.state={isCalloutVisible:!1,selectedLegend:"",activeLegend:"",refSelected:null,dataForHoverCard:0,color:"",xCalloutValue:"",yCalloutValue:"",calloutLegend:"",barSpacingInPercent:0},n._refArray=[],n._onLeave=n._onLeave.bind(n),n._refCallback=n._refCallback.bind(n),n._onBarLeave=n._onBarLeave.bind(n),n._calloutId=f("callout"),n._emptyChartId=f("_SBC_empty"),n.barChartSvgRef=o.createRef(),n}return(0,t.ZT)(n,e),n.prototype.componentDidMount=function(){var e,t=(null===(e=this.barChartSvgRef.current)||void 0===e?void 0:e.getBoundingClientRect().width)||0;if(t){var n=3/t*100;this.setState({barSpacingInPercent:n})}},n.prototype.render=function(){if(!this._isChartEmpty()){this._adjustProps();var e=this.props,n=e.data,r=e.benchmarkData,i=e.targetData,a=e.hideNumberDisplay,s=e.ignoreFixStyle,l=e.culture,c=this.props.theme.palette,u=s||n.chartData.length>2?this.props.barHeight:12;r&&(r.color=r.color||c.neutralTertiary),i&&(i.color=i.color||c.neutralSecondary);var d=this._createBarsAndLegends(n,u,c,r,i),h=!1===a&&!s&&2===n.chartData.length,p=!1===a&&!s&&1===n.chartData.length,f=n.chartData.reduce((function(e,t){return e+(t.data?t.data:0)}),0),g=0;r&&f&&(g=r.data/f*100);var m=0;i&&f&&(m=i.data/f*100);var v=!1===this.props.hideLegend&&(s||n.chartData.length>2);this._classNames=Mi(this.props.styles,{legendColor:this.state.color,theme:this.props.theme,benchmarkColor:r?r.color:"",benchmarkRatio:g,targetColor:i?i.color:"",targetRatio:m,showTriangle:!(!r&&!i)});var y=function(){return(0,Kt.Ts)(n.chartData[0].data?n.chartData[0].data:0,l)};return o.createElement("div",{className:this._classNames.root,onMouseLeave:this._handleChartMouseLeave},o.createElement(xn,{direction:Gt.horizontal},o.createElement("div",{className:this._classNames.chartTitle},n.chartTitle&&o.createElement(Pn,{className:this._classNames.chartTitleLeft,content:n.chartTitle,accessibilityData:n.chartTitleAccessibilityData}),h&&o.createElement("div",(0,t.pi)({},(0,Kt.ey)(n.chartDataAccessibilityData,"text",!1)),o.createElement("span",{className:this._classNames.ratioNumerator},y()),!this.props.hideDenominator&&o.createElement("span",{className:this._classNames.ratioDenominator}," / "+(0,Kt.Ts)(f,l))),p&&o.createElement("div",(0,t.pi)({className:this._classNames.ratioNumerator},(0,Kt.ey)(n.chartDataAccessibilityData,"text",!1)),y())),(r||i)&&o.createElement("div",{className:this._classNames.benchmarkContainer},r&&o.createElement("div",{className:this._classNames.benchmark,role:"text"}),i&&o.createElement("div",{className:this._classNames.target,role:"text"}))),o.createElement(xn,{direction:Gt.horizontal},o.createElement("div",null,o.createElement("svg",{ref:this.barChartSvgRef,className:this._classNames.chart,"aria-label":null==n?void 0:n.chartTitle},o.createElement("g",null,d[0]),o.createElement(jt,(0,t.pi)({gapSpace:15,isBeakVisible:!1,target:this.state.refSelected,setInitialFocus:!0,hidden:!(!this.props.hideTooltip&&this.state.isCalloutVisible),directionalHint:_.topAutoEdge,id:this._calloutId,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0,shouldUpdateWhenHidden:!0},this.props.calloutProps,(0,Kt.ey)(this.state.callOutAccessibilityData,"text",!1)),o.createElement(o.Fragment,null,this.props.onRenderCalloutPerDataPoint?this.props.onRenderCalloutPerDataPoint(this.state.dataPointCalloutProps):o.createElement($t.ChartHoverCard,{Legend:this.state.xCalloutValue?this.state.xCalloutValue:this.state.calloutLegend,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard,color:this.state.color,culture:l})))))),v&&o.createElement("div",{className:this._classNames.legendContainer},d[1]))}return o.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"})},n.prototype._adjustProps=function(){this._classNames=Mi(this.props.styles,{legendColor:this.state.color,theme:this.props.theme,width:this.props.width,barHeight:this.props.barHeight,className:this.props.className})},n.prototype._createBarsAndLegends=function(e,n,r,i,a){var s,l=this,c=(null===(s=e.chartData)||void 0===s?void 0:s.reduce((function(e,t){return e+((t.data||0)>0?1:0)}),0))||1,u=this.state.barSpacingInPercent*(c-1),d=[r.blueLight,r.blue,r.blueMid,r.red,r.black],h=[],p=[],g=e.chartData.reduce((function(e,t){return e+(t.data?t.data:0)}),0),m=0,v=0,_=0;e.chartData.map((function(e,t){var n=e.data?e.data:0;return(v=n/g*100)<1&&0!==v?v=1:v>99&&100!==v&&(v=99),_+=v}));var y=0!==_?_/(100-u):1,x=e.chartData.map((function(e,t){var r=e.color?e.color:d[Math.floor(4*Math.random()+1)],i=e.data?e.data:0,a={title:e.legend,color:r,action:g>0?function(){l._onClick(e.legend)}:void 0,hoverAction:g>0?function(){l._handleChartMouseLeave(),l._onHover(e.legend)}:void 0,onMouseOutAction:g>0?function(){l._onLeave()}:void 0};e.placeHolder||h.push(a),t>0&&(m+=v),(v=i/g*100)<1&&0!==v?v=1/y:v>99&&100!==v?v=99/y:v/=y,p.push(m);var s=l.props.styles,c=!(!l._legendHighlighted(e.legend)&&!l._noLegendHighlighted());return l._classNames=Mi(s,{theme:l.props.theme,shouldHighlight:c,href:l.props.href}),o.createElement("g",{key:t,className:l._classNames.opacityChangeOnHover,ref:function(e){l._refCallback(e,a.title)},"data-is-focusable":!l.props.hideTooltip,onFocus:l._onBarFocus.bind(l,i,r,e),onBlur:l._onBarLeave,"aria-label":l._getAriaLabel(e),role:"img",onMouseOver:l._onBarHover.bind(l,i,r,e),onMouseMove:l._onBarHover.bind(l,i,r,e),onMouseLeave:l._onBarLeave,pointerEvents:"all",onClick:l.props.href?l._redirectToUrl.bind(l,l.props.href):e.onClick},o.createElement("rect",{key:t,id:f("_SBC_bar"),x:"".concat(l._isRTL?100-p[t]-v-l.state.barSpacingInPercent*t:p[t]+l.state.barSpacingInPercent*t,"%"),y:0,width:v+"%",height:n,fill:r}))}));this._addLegend(h,i),this._addLegend(h,a);var b=o.createElement(Ar,(0,t.pi)({legends:h,enabledWrapLines:this.props.enabledLegendsWrapLines,overflowProps:this.props.legendsOverflowProps,focusZonePropsInHoverCard:this.props.focusZonePropsForLegendsInHoverCard,overflowText:this.props.legendsOverflowText},this.props.legendProps));return[0===g?[this._generateEmptyBar(n,this.props.barBackgroundColor?this.props.barBackgroundColor:r.neutralLight)]:x,b]},n.prototype._onBarFocus=function(e,t,n){var r=this;this._refArray.forEach((function(o){o.index===n.legend&&r.setState({refSelected:o.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})}))},n.prototype._addLegend=function(e,t){if(t){var n={title:t.legend,color:t.color,shape:"triangle"};e.push(n)}},n.prototype._generateEmptyBar=function(e,t){return o.createElement("g",{key:0,className:this._classNames.opacityChangeOnHover},o.createElement("rect",{key:0,id:f("_SBC_empty_bar_"),x:"0%",y:0,width:"100%",height:e,fill:t}))},n.prototype._refCallback=function(e,t){this._refArray.push({index:t,refElement:e})},n.prototype._onClick=function(e){this.state.selectedLegend===e?this.setState({selectedLegend:""}):this.setState({selectedLegend:e})},n.prototype._onHover=function(e){this.setState({activeLegend:e})},n.prototype._onLeave=function(){this.setState({activeLegend:""})},n.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}))},n.prototype._onBarLeave=function(){},n.prototype._redirectToUrl=function(e){e&&(window.location.href=e)},n.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.chartData&&this.props.data.chartData.length>0)},n.defaultProps={barHeight:12,hideNumberDisplay:!1,hideLegend:!1,ignoreFixStyle:!1},n}(o.Component),Fi=(0,e.z)(Pi,(function(e){var n,r,o=e.className,i=e.width,a=e.barHeight,s=e.shouldHighlight,l=e.theme,c=e.href,u=e.benchmarkColor,d=e.benchmarkRatio,h=e.targetColor,p=e.targetRatio,f=e.showTriangle;return{root:[l.fonts.medium,"ms-StackedBarChart",{width:i||"100%",display:"flex",flexDirection:"column"},o],chart:{width:"100%",height:a||12,display:"block",marginBottom:f?"16px":"10px",overflow:"visible"},chartTitle:(0,t.pi)((0,t.pi)({},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:c?"pointer":"default",selectors:{"&:focus":{stroke:l.palette.black,strokeWidth:"2px"}}},ratioNumerator:{fontSize:Ye.TS.medium,fontWeight:Ye.lq.semibold,color:l.palette.neutralPrimary},ratioDenominator:{fontSize:Ye.TS.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:u,marginBottom:"4px",selectors:(n={},n[Ye.qJ]={border:"0px",height:"7px",width:"7px",clipPath:"polygon(50% 100%, 0 0, 100% 0)",backgroundImage:"linear-gradient(to right, ".concat(u,", ").concat(u,")")},n)},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:(r={},r[Ye.qJ]={border:"0px",height:"7px",width:"7px",clipPath:"polygon(50% 100%, 0 0, 100% 0)",backgroundImage:"linear-gradient(to right, ".concat(h,", ").concat(h,")")},r)}}}));!function(e){e.PartToWhole="part-to-whole",e.AbsoluteScale="absolute-scale"}(Li||(Li={}));var Ii,Ni=(0,i.y)(),Vi=function(e){function n(n){var r=e.call(this,n)||this;return r._isRTL=(0,a.zg)(),r._adjustProps=function(){var e=r.props,t=e.theme,n=e.className,o=e.styles,i=e.width,a=e.barHeight;r._classNames=Ni(o,{legendColor:r.state.color,theme:t,width:i,className:n,barHeight:a})},r._getLegendData=function(e,n,i){var a=[i.blueLight,i.blue,i.blueMid,i.red,i.black],s=[];return e.forEach((function(e,t){var o=e.chartData.filter((function(e){return!e.placeHolder}));o.length<3?void 0!==n[t]&&n[t]&&o.forEach((function(e){var t=e.color?e.color:a[Math.floor(4*Math.random()+1)];if(!(s.filter((function(n){return n.title===e.legend&&n.color===t})).length>0)){var n={title:e.legend,color:t,action:function(){r._onClick(e.legend)},hoverAction:function(){r._handleChartMouseLeave(),r._onHover(e.legend)},onMouseOutAction:function(){r._onLeave()}};s.push(n)}})):o.forEach((function(e){var t=e.color?e.color:a[Math.floor(4*Math.random()+1)];if(!(s.filter((function(n){return n.title===e.legend&&n.color===t})).length>0)){var n={title:e.legend,color:t,action:function(){r._onClick(e.legend)},hoverAction:function(){r._handleChartMouseLeave(),r._onHover(e.legend)},onMouseOutAction:function(){r._onLeave()}};s.push(n)}}))})),o.createElement(Ar,(0,t.pi)({legends:s,overflowProps:r.props.legendsOverflowProps,focusZonePropsInHoverCard:r.props.focusZonePropsForLegendsInHoverCard,overflowText:r.props.legendsOverflowText},r.props.legendProps))},r._handleChartMouseLeave=function(){r._calloutAnchorPoint=null,r.setState({isCalloutVisible:!1})},r._closeCallout=function(){r.setState({isCalloutVisible:!1})},r._legendHighlighted=function(e){return r.state.selectedLegend===e||""===r.state.selectedLegend&&r.state.activeLegend===e},r._noLegendHighlighted=function(){return""===r.state.selectedLegend&&""===r.state.activeLegend},r._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?"".concat(n,", "):"")+"".concat(r,".")},r._computeLongestBarTotalValue=function(){var e=0;return r.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},r.state={isCalloutVisible:!1,refArray:[],selectedLegend:"",activeLegend:"",refSelected:null,dataForHoverCard:0,color:"",xCalloutValue:"",yCalloutValue:"",calloutLegend:"",barSpacingInPercent:0},r._onLeave=r._onLeave.bind(r),r._onBarLeave=r._onBarLeave.bind(r),r._calloutId=f("callout"),r.barChartSvgRef=o.createRef(),r._emptyChartId=f("_MSBC_empty"),r._barId=f("_MSBC_rect_"),r._barIdPlaceholderPartToWhole=f("_MSBC_rect_partToWhole_"),r._barIdEmpty=f("_MSBC_rect_empty"),r}return(0,t.ZT)(n,e),n.prototype.componentDidMount=function(){var e,t=(null===(e=this.barChartSvgRef.current)||void 0===e?void 0:e.getBoundingClientRect().width)||0;if(t){var n=3/t*100;this.setState({barSpacingInPercent:n})}},n.prototype.render=function(){var e=this;if(!this._isChartEmpty()){var n=this.props,r=n.data,i=n.theme,a=n.culture;this._adjustProps();var s=i.palette,l=this._getLegendData(r,this.props.hideRatio,s),c=this.state.isCalloutVisible;this._classNames=Ni(this.props.styles,{legendColor:this.state.color,theme:i,variant:this.props.variant,hideLabels:this.props.hideLabels});var u=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=r.map((function(t,n){var r=e._createBarsAndLegends(t,e.props.barHeight,s,e.props.hideRatio[n],e.props.hideDenominator[n],e.props.href,n);return o.createElement("div",{key:n,id:"_MSBC_bar-".concat(n)},r)}));return o.createElement("div",{className:this._classNames.root,onMouseLeave:this._handleChartMouseLeave},h,!this.props.hideLegend&&o.createElement("div",{className:this._classNames.legendContainer},l),o.createElement(jt,(0,t.pi)({gapSpace:15,isBeakVisible:!1,target:this.state.refSelected,setInitialFocus:!0,hidden:!(!this.props.hideTooltip&&c),directionalHint:_.topAutoEdge,id:this._calloutId,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0,shouldUpdateWhenHidden:!0},this.props.calloutProps,(0,Kt.ey)(this.state.callOutAccessibilityData,"text",!1)),o.createElement(o.Fragment,null,this.props.onRenderCalloutPerDataPoint?this.props.onRenderCalloutPerDataPoint(this.state.dataPointCalloutProps):o.createElement($t.ChartHoverCard,{Legend:u,YValue:d,color:this.state.color,culture:a}))))}return o.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"})},n.prototype._createBarsAndLegends=function(e,n,r,i,a,s,l){var c,u,d=this,h=(null===(c=e.chartData)||void 0===c?void 0:c.reduce((function(e,t){return e+((t.data||0)>0?1:0)}),0))||1,p=this.state.barSpacingInPercent*(h-1),f=this.props.culture,g=[r.blueLight,r.blue,r.blueMid,r.red,r.black],m=[],v=e.chartData.reduce((function(e,t){return e+(t.data?t.data:0)}),0),_=this.props.variant===Li.AbsoluteScale?this._longestBarTotalValue:v,y=0;if(e.chartData.map((function(e,t){var n=(e.data?e.data:0)/_*100||0;return n<1&&0!==n?n=1:n>99&&100!==n&&(n=99),y+=n})),this.props.variant===Li.AbsoluteScale){var x=0===_?0:(_-v)/_*100;x<1&&0!==x?x=1:x>99&&100!==x&&(x=99),y+=x}var b=0!==y?y/(100-p):1,C=0,E=0,S=e.chartData.map((function(e,t){var i=e.color?e.color:e.placeHolder?r.neutralLight:g[Math.floor(4*Math.random()+1)],a=e.data?e.data:0;t>0&&(C+=E),(E=a/_*100?a/_*100:0)<1&&0!==E?E=1/b:E>99&&100!==E?E=99/b:E/=b,m.push(C);var c=d.props.styles,u=!(!d._legendHighlighted(e.legend)&&!d._noLegendHighlighted());return d._classNames=Ni(c,{theme:d.props.theme,shouldHighlight:u,href:s,variant:d.props.variant,hideLabels:d.props.hideLabels}),o.createElement("g",{key:t,className:e.placeHolder?d._classNames.placeHolderOnHover:d._classNames.opacityChangeOnHover,ref:function(t){d._refCallback(t,e.legend)},"data-is-focusable":!d.props.hideTooltip,onFocus:d._onBarFocus.bind(d,a,i,e),onBlur:d._onBarLeave,role:"img","aria-label":d._getAriaLabel(e),onMouseOver:e.placeHolder?void 0:d._onBarHover.bind(d,a,i,e),onMouseMove:e.placeHolder?void 0:d._onBarHover.bind(d,a,i,e),onMouseLeave:e.placeHolder?void 0:d._onBarLeave,onClick:s?e.placeHolder?void 0:d._redirectToUrl.bind(d,s):e.onClick},o.createElement("rect",{key:t,id:"".concat(d._barId,"-").concat(l,"-").concat(t),x:"".concat(d._isRTL?100-m[t]-E-d.state.barSpacingInPercent*t:m[t]+d.state.barSpacingInPercent*t,"%"),y:0,width:E+"%",height:n,fill:i}))}));if(this.props.variant!==Li.AbsoluteScale||this.props.hideLabels)0===e.chartData.length&&S.push(o.createElement("g",{key:0,className:this._classNames.noData,onClick:this._redirectToUrl.bind(this,s)},o.createElement("rect",{key:0,id:this._barIdPlaceholderPartToWhole,x:"0%",y:0,width:"100%",height:n,fill:r.neutralLight}))),0===v&&S.push(o.createElement("g",{key:"empty",className:this._classNames.noData,onClick:this._redirectToUrl.bind(this,s)},o.createElement("rect",{key:0,id:this._barIdEmpty,x:"0%",y:0,width:"100%",height:n,fill:r.neutralLight})));else{var A=!1,L=0;this._noLegendHighlighted()?(A=!0,L=v):null===(u=e.chartData)||void 0===u||u.forEach((function(e){d._legendHighlighted(e.legend)&&(A=!0,L+=e.data?e.data:0)})),A&&S.push(o.createElement("text",{key:"text",x:"".concat(this._isRTL?100-(m[m.length-1]||0)-E-p:(m[m.length-1]||0)+E+p,"%"),textAnchor:"start",y:n/2,dominantBaseline:"central",transform:"translate(".concat(this._isRTL?-4:4,")"),className:this._classNames.barLabel,"aria-label":"Total: ".concat(L),role:"img"},(0,Kt.cE)(L)))}var k=void 0!==i&&i,T=this.props.variant!==Li.AbsoluteScale&&!k&&2===e.chartData.length,w=this.props.variant!==Li.AbsoluteScale&&!k&&1===e.chartData.length,D=function(){return(0,Kt.Ts)(e.chartData[0].data?e.chartData[0].data:0,f)};return o.createElement("div",{className:this._classNames.singleChartRoot},o.createElement(xn,{direction:Gt.horizontal},o.createElement("div",{className:this._classNames.chartTitle},e.chartTitle&&o.createElement(Pn,{className:this._classNames.chartTitleLeft,content:e.chartTitle,accessibilityData:e.chartTitleAccessibilityData}),T&&o.createElement("div",(0,t.pi)({},(0,Kt.ey)(e.chartDataAccessibilityData,"text",!1)),o.createElement("span",{className:this._classNames.ratioNumerator},D()),!a&&o.createElement("span",{className:this._classNames.ratioDenominator}," / "+(0,Kt.Ts)(v,f))),w&&o.createElement("div",(0,t.pi)({className:this._classNames.ratioNumerator},(0,Kt.ey)(e.chartDataAccessibilityData,"text",!1)),D()))),o.createElement(xn,{direction:Gt.horizontal},o.createElement("div",{className:this._classNames.chartWrapper},o.createElement("svg",{ref:this.barChartSvgRef,className:this._classNames.chart,"aria-label":null==e?void 0:e.chartTitle},S))))},n.prototype._onBarFocus=function(e,t,n){var r=this;this.state.refArray.forEach((function(o){o.legendText===n.legend&&r.setState({refSelected:o.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})}))},n.prototype._refCallback=function(e,t){this.state.refArray.push({legendText:t,refElement:e})},n.prototype._onHover=function(e){this.setState({activeLegend:e})},n.prototype._onClick=function(e){this.state.selectedLegend===e?this.setState({selectedLegend:""}):this.setState({selectedLegend:e})},n.prototype._onLeave=function(){this.setState({activeLegend:""})},n.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}))},n.prototype._onBarLeave=function(){},n.prototype._redirectToUrl=function(e){e&&(window.location.href=e)},n.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.length>0&&0===this.props.data.filter((function(e){return e.chartData&&0===e.chartData.length&&(!e.chartTitle||""===e.chartTitle)})).length)},n.defaultProps={barHeight:12,hideRatio:[],hideDenominator:[]},n}(o.Component),Oi=(0,e.z)(Vi,(function(e){var n=e.className,r=e.width,o=e.barHeight,i=e.shouldHighlight,a=e.theme,s=e.href,l=e.variant,c=e.hideLabels;return{root:[a.fonts.medium,"ms-StackedBarChart",{display:"flex",flexDirection:"column",width:r||"100%"},n],items:{marginBottom:"11px"},chart:{width:"100%",height:o||12,display:"block",overflow:"visible"},chartTitle:(0,t.pi)((0,t.pi)({},a.fonts.small),{display:"flex",justifyContent:"space-between"}),chartTitleLeft:{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",display:"block",color:a.palette.neutralPrimary,marginBottom:l===Li.AbsoluteScale?"4px":"5px"},singleChartRoot:{width:r||"100%",display:"flex",flexDirection:"column",marginBottom:l===Li.AbsoluteScale?"16px":"10px"},opacityChangeOnHover:{opacity:i?"":"0.1",cursor:s?"pointer":"default",selectors:{"&:focus":{stroke:a.palette.black,strokeWidth:"2px"}}},ratioNumerator:{fontSize:Ye.TS.medium,fontWeight:Ye.lq.semibold,color:a.palette.neutralPrimary},ratioDenominator:{fontSize:Ye.TS.medium,color:a.palette.neutralPrimary},placeHolderOnHover:{opacity:i?"":"0.1",cursor:"default",selectors:{"&:focus":{stroke:a.palette.black,strokeWidth:"2px"}}},legendContainer:{margin:"5px 0px 0px 4px"},noData:{cursor:s?"pointer":"default"},barLabel:{fontSize:Ye.TS.small,fontWeight:Ye.lq.semibold,fill:a.palette.neutralPrimary},chartWrapper:{paddingRight:l!==Li.AbsoluteScale||c?0:40}}})),Hi=n(5561),Bi=n(8815),Ri=n(8639),zi=n(6775);!function(e){e.show="visibility",e.hide="hidden"}(Ii||(Ii={}));var Wi,Yi=(0,i.y)(),Zi=function(e){function n(n){var r=e.call(this,n)||this;return r._isRtl=(0,a.zg)(),r._createLine=function(e,t,n,i,a){var s;void 0===n&&(n=0),void 0===i&&(i=0);var l=r._xAxisType===Kt.xl.StringAxis,c=r._getScales(n,i).xBarScale,u=r._createColors(),d=r.props.theme,h=r.props,p=h.data,g=h.lineLegendColor,m=void 0===g?d.palette.yellow:g,v=h.lineLegendText,_=[],y=[];p&&p.forEach((function(e,t){var n;e.lineData&&e.lineData.y&&_.push({x:e.x,y:e.lineData.y,useSecondaryYScale:null!==(n=e.lineData.useSecondaryYScale)&&void 0!==n&&n,point:e,index:t})}));var x=To().x((function(t){return l?c(t.x)+.5*c.bandwidth():e(t.x)})).y((function(e){return e.useSecondaryYScale&&a?a(e.y):t(e.y)})),b=!(!r._legendHighlighted(v)&&!r._noLegendHighlighted()),C=(null===(s=r.props.lineOptions)||void 0===s?void 0:s.lineBorderWidth)?Number.parseFloat(r.props.lineOptions.lineBorderWidth.toString()):0;C>0&&y.push(o.createElement("path",{key:f("_VBC_line_"),id:f("_VBC_line_"),opacity:b?1:.1,d:x(_),fill:"transparent",strokeLinecap:"square",strokeWidth:3+2*C,stroke:d.palette.white})),y.push(o.createElement("path",{key:f("_VBC_line_"),id:f("_VBC_line_"),opacity:b?1:.1,d:x(_),fill:"transparent",strokeLinecap:"square",strokeWidth:3,stroke:m}));var E=_.map((function(n,i){var s;return o.createElement("circle",{key:i,id:f("_VBC_point_"),cx:l?c(n.x)+.5*c.bandwidth():e(n.x),cy:n.useSecondaryYScale&&a?a(n.y):t(n.y),onMouseOver:r._onBarHover.bind(r,n.point,u(n.y)),onMouseOut:r._onBarLeave,r:8,stroke:m,fill:r.props.theme.palette.white,strokeWidth:3,visibility:r.state.activeXdataPoint===n.x?Ii.show:Ii.hide,onClick:null===(s=n.point.lineData)||void 0===s?void 0:s.onClick})}));return o.createElement(o.Fragment,null,y,E)},r._checkForLine=function(){return r.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)}))},r._getMargins=function(e){r.margins=e},r._renderContentForBothLineAndBars=function(e){var n=r._getCalloutContentForLineAndBar(e),i=n.YValueHover,a=n.hoverXValue,s=i.map((function(e,n){return o.createElement($t.ChartHoverCard,(0,t.pi)({key:n,Legend:e.legend},0===n&&{XValue:"".concat(a||e.data)},{color:e.color,YValue:e.data||e.y,culture:r.props.culture}))}));return o.createElement(o.Fragment,null,s)},r._renderContentForOnlyBars=function(e){var t=r.props.useSingleColor,n=void 0!==t&&t;return o.createElement(o.Fragment,null,o.createElement($t.ChartHoverCard,{XValue:e.xAxisCalloutData||e.x,Legend:e.legend,YValue:e.yAxisCalloutData||e.y,color:!n&&e.color?e.color:r._createColors()(e.y),culture:r.props.culture}))},r._renderCallout=function(e){return e?r._isHavingLine?r._renderContentForBothLineAndBars(e):r._renderContentForOnlyBars(e):null},r._getCustomizedCallout=function(){return r.props.onRenderCalloutPerDataPoint?r.props.onRenderCalloutPerDataPoint(r.state.dataPointCalloutProps,r._renderCallout):null},r._getGraphData=function(e,t,n,o,i){return r._bars=r._xAxisType===Kt.xl.NumericAxis?r._createNumericBars(n,o,i):r._xAxisType===Kt.xl.DateAxis?r._createDateBars(n,o,i):r._createStringBars(n,o,i)},r._refCallback=function(e,t){r._refArray.push({index:t,refElement:e})},r._getCalloutContentForLineAndBar=function(e){var t,n,o,i,a=[],s=r.props,l=s.theme,c=s.useSingleColor,u=void 0!==c&&c,d=r.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}));r._isHavingLine&&void 0!==(null===(t=m[0].lineData)||void 0===t?void 0:t.y)&&a.push({legend:p,color:g,y:null===(n=m[0].lineData)||void 0===n?void 0:n.y,data:null===(o=m[0].lineData)||void 0===o?void 0:o.yAxisCalloutData,yAxisCalloutData:null===(i=m[0].lineData)||void 0===i?void 0:i.yAxisCalloutData}),a.push({legend:m[0].legend,y:m[0].y,color:u?r._createColors()(1):m[0].color?m[0].color:r._createColors()(m[0].y),data:m[0].yAxisCalloutData,yAxisCalloutData:m[0].yAxisCalloutData});var v=e.x instanceof Date?e.x.toLocaleString():e.x.toString();return{YValueHover:a,hoverXValue:e.xAxisCalloutData||v}},r._onBarLeave=function(){},r._handleChartMouseLeave=function(){r._calloutAnchorPoint=null,r.setState({isCalloutVisible:!1,activeXdataPoint:null,YValueHover:[],hoverXValue:""})},r._onBarFocus=function(e,t,n){var o=r._getCalloutContentForLineAndBar(e),i=o.YValueHover,a=o.hoverXValue;r._refArray.forEach((function(o,s){o.index===e.legend&&t===s&&r.setState({refSelected:o.refElement,isCalloutVisible:""===r.state.selectedLegend||r.state.selectedLegend===e.legend,calloutLegend:e.legend,dataForHoverCard:e.y,color:e.color||n,xCalloutValue:e.xAxisCalloutData||(e.x instanceof Date?e.x.toLocaleDateString():e.x.toString()),yCalloutValue:e.yAxisCalloutData,dataPointCalloutProps:e,activeXdataPoint:e.x,YValueHover:i,hoverXValue:a,callOutAccessibilityData:e.callOutAccessibilityData})}))},r._getScales=function(e,t){var n,o=(0,Bi.Z)().domain([0,r._yMax]).range([0,e-r.margins.bottom-r.margins.top]);if(r._xAxisType===Kt.xl.NumericAxis){var i=(0,ri.Z)(r._points,(function(e){return e.x})),a=(0,Hi.Z)(r._points,(function(e){return e.x}));n=(0,Bi.Z)().domain(r._isRtl?[i,a]:[a,i]).nice().range([r.margins.left+r._domainMargin,t-r.margins.right-r._barWidth-r._domainMargin])}else if(r._xAxisType===Kt.xl.DateAxis){var s=(0,Hi.Z)(r._points,(function(e){return e.x})),l=(0,ri.Z)(r._points,(function(e){return e.x}));n=(0,Ri.Z)().domain([s,l]).range([r.margins.left+r._domainMargin+r._barWidth/2,t-r.margins.right-r._barWidth/2-r._domainMargin])}else n=(0,zi.Z)().domain(r._xAxisLabels).range(r._isRtl?[t-r.margins.right-r._domainMargin,r.margins.left+r._domainMargin]:[r.margins.left+r._domainMargin,t-r.margins.right-r._domainMargin]).paddingInner(2/3);return{xBarScale:n,yBarScale:o}},r._closeCallout=function(){r.setState({isCalloutVisible:!1})},r._getLegendData=function(e,n){var i=r.props,a=i.theme,s=i.useSingleColor,l=r.props,c=l.lineLegendText,u=l.lineLegendColor,d=void 0===u?a.palette.yellow:u,h=[];if(e.forEach((function(e,t){var n=s?r._createColors()(1):e.color,o={title:e.legend,color:n,action:function(){r._onLegendClick(e.legend)},hoverAction:function(){r._handleChartMouseLeave(),r._onLegendHover(e.legend)},onMouseOutAction:function(){r._onLegendLeave()}};h.push(o)})),r._isHavingLine&&c&&d){var p={title:c,color:d,action:function(){r._onLegendClick(c)},hoverAction:function(){r._handleChartMouseLeave(),r._onLegendHover(c)},onMouseOutAction:function(){r._onLegendLeave()},isLineLegendInBarChart:!0};h.unshift(p)}return o.createElement(Ar,(0,t.pi)({legends:h,enabledWrapLines:r.props.enabledLegendsWrapLines,overflowProps:r.props.legendsOverflowProps,focusZonePropsInHoverCard:r.props.focusZonePropsForLegendsInHoverCard,overflowText:r.props.legendsOverflowText},r.props.legendProps))},r._getAxisData=function(e){if(e&&e.yAxisDomainValues.length){var t=e.yAxisDomainValues;r._yMax=Math.max(t[t.length-1],r.props.yMaxValue||0)}},r._legendHighlighted=function(e){return r.state.selectedLegend===e||""===r.state.selectedLegend&&r.state.activeLegend===e},r._noLegendHighlighted=function(){return""===r.state.selectedLegend&&""===r.state.activeLegend},r._getAriaLabel=function(e){var t,n,o,i=e.xAxisCalloutData?e.xAxisCalloutData:e.x instanceof Date?e.x.toLocaleString():e.x,a=e.legend,s=e.yAxisCalloutData||e.y,l=r.props.lineLegendText||"Line",c=(null===(t=e.lineData)||void 0===t?void 0:t.yAxisCalloutData)||(null===(n=e.lineData)||void 0===n?void 0:n.y);return(null===(o=e.callOutAccessibilityData)||void 0===o?void 0:o.ariaLabel)||"".concat(i,". ")+(a?"".concat(a,", "):"")+"".concat(s,".")+(void 0!==c?" ".concat(l,", ").concat(c,"."):"")},r._getDomainMargins=function(e){if(r._xAxisType===Kt.xl.StringAxis){var n=e-(r.margins.left+8)-(r.margins.right+8),o=Math.min(r.props.barWidth||16,24),i=(3*r._xAxisLabels.length-2)*o;r._domainMargin=8,n>=i?r._domainMargin+=(n-i)/2:o=n/(3*r._xAxisLabels.length-2),r._barWidth=o}return(0,t.pi)((0,t.pi)({},r.margins),{left:r.margins.left+r._domainMargin,right:r.margins.right+r._domainMargin})},r.state={color:"",dataForHoverCard:0,isCalloutVisible:!1,refSelected:null,selectedLegend:"",activeLegend:"",xCalloutValue:"",yCalloutValue:"",activeXdataPoint:null,YValueHover:[],hoverXValue:"",calloutLegend:""},r._isHavingLine=r._checkForLine(),r._calloutId=f("callout"),r._tooltipId=f("VCTooltipID_"),r._refArray=[],r._xAxisType=r.props.data&&r.props.data.length>0?(0,Kt.SY)(r.props.data[0].x,!0):Kt.xl.StringAxis,r._domainMargin=8,r._emptyChartId=f("_VBC_empty"),r}return(0,t.ZT)(n,e),n.prototype.render=function(){var e=this;this._adjustProps(),this._xAxisLabels=this._points.map((function(e){return e.x})),this._yMax=Math.max((0,ri.Z)(this._points,(function(e){return e.y})),this.props.yMaxValue||0);var n=this._getLegendData(this._points,this.props.theme.palette);this._classNames=Yi(this.props.styles,{theme:this.props.theme,legendColor:this.state.color});var r=(0,t.pi)((0,t.pi)((0,t.pi)((0,t.pi)({isCalloutVisible:this.state.isCalloutVisible,directionalHint:_.topAutoEdge,id:"toolTip".concat(this._calloutId),target:this.state.refSelected,isBeakVisible:!1},this._isHavingLine&&{YValueHover:this.state.YValueHover,hoverXValue:this.state.hoverXValue}),{gapSpace:15,color:this.state.color,legend:this.state.calloutLegend,XValue:this.state.xCalloutValue,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0}),this.props.calloutProps),(0,Kt.ey)(this.state.callOutAccessibilityData)),i={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return this._isChartEmpty()?o.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):o.createElement(Oo,(0,t.pi)({},this.props,{points:this._points,chartType:Kt.$X.VerticalBarChart,xAxisType:this._xAxisType,calloutProps:r,tickParams:i},this._isHavingLine&&{isCalloutForStack:!0},{legendBars:n,datasetForXAxisDomain:this._xAxisLabels,barwidth:this._barWidth,focusZoneDirection:Gt.horizontal,customizedCallout:this._getCustomizedCallout(),getmargins:this._getMargins,getGraphData:this._getGraphData,getAxisData:this._getAxisData,onChartMouseLeave:this._handleChartMouseLeave,getDomainMargins:this._getDomainMargins},this._xAxisType!==Kt.xl.NumericAxis&&{xAxisInnerPadding:2/3,xAxisOuterPadding:0},{children:function(t){return o.createElement(o.Fragment,null,o.createElement("g",null,e._bars),e._isHavingLine&&o.createElement("g",null,e._createLine(t.xScale,t.yScale,t.containerHeight,t.containerWidth,t.yScaleSecondary)))}}))},n.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()},n.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,o=n.colors;return o&&o.length>0?o[0]:r.palette.blueLight};for(var r=[],o=0;o<this._colors.length;o++)r.push(t*o*this._yMax);return(0,Bi.Z)().domain(r).range(this._colors)},n.prototype._onBarHover=function(e,t,n){n.persist();var r=this._getCalloutContentForLineAndBar(e),o=r.YValueHover,i=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 instanceof Date?e.x.toLocaleDateString():e.x.toString()),yCalloutValue:e.yAxisCalloutData,dataPointCalloutProps:e,activeXdataPoint:e.x,YValueHover:o,hoverXValue:i,callOutAccessibilityData:e.callOutAccessibilityData}))},n.prototype._createNumericBars=function(e,t,n){var r=this,i=this.props.useSingleColor,a=void 0!==i&&i,s=this._getScales(e,t),l=s.xBarScale,c=s.yBarScale,u=this._createColors(),d=this._points.map((function(t,n){var i=!(!r._legendHighlighted(t.legend)&&!r._noLegendHighlighted());r._classNames=Yi(r.props.styles,{theme:r.props.theme,legendColor:r.state.color,shouldHighlight:i});var s,d=Math.max(c(t.y),0);if(d<=0)return o.createElement(o.Fragment,{key:t.x}," ");s=d<=Math.ceil(c(r._yMax)/100)?Math.ceil(c(r._yMax)/100):d;var h=l(t.x),p=e-r.margins.bottom-s;return o.createElement("g",{key:t.x},o.createElement("rect",{id:f("_VBC_bar_"),x:h,className:r._classNames.opacityChangeOnHover,y:p,width:r._barWidth,"data-is-focusable":!r.props.hideTooltip,height:s,ref:function(e){r._refCallback(e,t.legend)},onClick:t.onClick,onMouseOver:r._onBarHover.bind(r,t,u(t.y)),"aria-label":r._getAriaLabel(t),role:"img",onMouseLeave:r._onBarLeave,onFocus:r._onBarFocus.bind(r,t,n,u(t.y)),onBlur:r._onBarLeave,fill:t.color&&!a?t.color:u(t.y)}),r._renderBarLabel(h,p,t.y,t.legend))}));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=(0,Co.Ys)(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&&(0,Kt.$V)(p)}return d},n.prototype._createStringBars=function(e,t,n){var r=this,i=this._getScales(e,t),a=i.xBarScale,s=i.yBarScale,l=this._createColors(),c=this._points.map((function(t,n){var i,c=Math.max(s(t.y),0);if(c<=0)return o.createElement(o.Fragment,{key:t.x instanceof Date?t.x.getTime():t.x}," ");i=c<=Math.ceil(s(r._yMax)/100)?Math.ceil(s(r._yMax)/100):c;var u=a(t.x),d=e-r.margins.bottom-i;return o.createElement("g",{key:t.x instanceof Date?t.x.getTime():t.x,transform:"translate(".concat(.5*(a.bandwidth()-r._barWidth),", 0)")},o.createElement("rect",{id:f("_VBC_bar_"),x:u,y:d,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,d,t.y,t.legend))}));if(!this.props.showXAxisLablesTooltip)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(e){}if(!this.props.wrapXAxisLables&&this.props.showXAxisLablesTooltip){var u=(0,Co.Ys)(n).call(a);try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(e){}var d={tooltipCls:this._classNames.tooltip,id:this._tooltipId,xAxis:u,showTooltip:this.props.showXAxisLablesTooltip};u&&(0,Kt.$V)(d)}return c},n.prototype._createDateBars=function(e,t,n){var r=this,i=this.props.useSingleColor,a=void 0!==i&&i,s=this._getScales(e,t),l=s.xBarScale,c=s.yBarScale,u=this._createColors(),d=this._points.map((function(t,n){var i=!(!r._legendHighlighted(t.legend)&&!r._noLegendHighlighted());r._classNames=Yi(r.props.styles,{theme:r.props.theme,legendColor:r.state.color,shouldHighlight:i});var s,d=Math.max(c(t.y),0);if(d<=0)return o.createElement(o.Fragment,{key:t.x instanceof Date?t.x.getTime():t.x}," ");s=d<=Math.ceil(c(r._yMax)/100)?Math.ceil(c(r._yMax)/100):d;var h=l(t.x)-r._barWidth/2,p=e-r.margins.bottom-s;return o.createElement("g",{key:t.x instanceof Date?t.x.getTime():t.x},o.createElement("rect",{id:f("_VBC_bar_"),x:h,className:r._classNames.opacityChangeOnHover,y:p,width:r._barWidth,"data-is-focusable":!r.props.hideTooltip,height:s,ref:function(e){r._refCallback(e,t.legend)},onClick:t.onClick,onMouseOver:r._onBarHover.bind(r,t,u(t.y)),"aria-label":r._getAriaLabel(t),role:"img",onMouseLeave:r._onBarLeave,onFocus:r._onBarFocus.bind(r,t,n,u(t.y)),onBlur:r._onBarLeave,fill:t.color&&!a?t.color:u(t.y)}),r._renderBarLabel(h,p,t.y,t.legend))}));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=(0,Co.Ys)(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&&(0,Kt.$V)(p)}return d},n.prototype._onLegendClick=function(e){this.state.selectedLegend===e?this.setState({selectedLegend:""}):this.setState({selectedLegend:e})},n.prototype._onLegendHover=function(e){this.setState({activeLegend:e})},n.prototype._onLegendLeave=function(){this.setState({activeLegend:""})},n.prototype._renderBarLabel=function(e,t,n,r){return this.props.hideLabels||this._barWidth<16||!this._legendHighlighted(r)&&!this._noLegendHighlighted()?null:o.createElement("text",{x:e+this._barWidth/2,y:t-6,textAnchor:"middle",className:this._classNames.barLabel,"aria-hidden":!0},(0,Kt.cE)(n))},n.prototype._isChartEmpty=function(){return 0===this._points.length||(0,ri.Z)(this._points,(function(e){return e.y}))<=0&&!this._isHavingLine},n}(o.Component),qi=(0,e.z)(Zi,(function(e){var n=e.shouldHighlight,r=e.theme;return{opacityChangeOnHover:{opacity:n?"":"0.1"},xAxisTicks:[],yAxisTicks:[{transform:"scaleX(-1)"}],yAxisDomain:[{transform:"scaleX(-1)"}],tooltip:(0,t.pi)((0,t.pi)({},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:Ye.TS.small,fontWeight:Ye.lq.semibold,fill:r.palette.neutralPrimary}}})),Xi=(0,i.y)();!function(e){e.show="visibility",e.hide="hidden"}(Wi||(Wi={}));var Ui=function(e){function n(n){var r=e.call(this,n)||this;return r._isRtl=(0,a.zg)(),r._toFocusWholeStack=function(e){var t=r.props.isCalloutForStack,n=void 0!==t&&t;return e?""===r.state.selectedLegend:n},r._getFormattedLineData=function(e){var n=[],r={};return e.forEach((function(e,r){e.lineData&&e.lineData.forEach((function(o){n.push((0,t.pi)((0,t.pi)({},o),{index:r,xItem:e}))}))})),n.forEach((function(e){r[e.legend]?r[e.legend].push(e):r[e.legend]=[e]})),r},r._getLineLegends=function(e){var t=r._lineObject,n=[];return Object.keys(t).forEach((function(e){n.push({title:e,color:t[e][0].color})})),n},r._createLines=function(e,n,i,a,s){var l,c=r._xAxisType===Kt.xl.NumericAxis,u=r._xAxisType===Kt.xl.DateAxis,d=r._getScales(i,a).xBarScale,h=r._getFormattedLineData(r.props.data),p=[],f=[],g=[],m=r.props.theme,v=(null===(l=r.props.lineOptions)||void 0===l?void 0:l.lineBorderWidth)?Number.parseFloat(r.props.lineOptions.lineBorderWidth.toString()):0,_=c||u?0:d.bandwidth()/2;return Object.keys(h).forEach((function(i,a){for(var l=r._legendHighlighted(i)||r._noLegendHighlighted(),u=1;u<h[i].length;u++){var g=c?e(h[i][u-1].xItem.xAxisPoint):d(h[i][u-1].xItem.xAxisPoint),y=h[i][u-1].useSecondaryYScale&&h[i][u].useSecondaryYScale&&s,x=y?s(h[i][u-1].y):n(h[i][u-1].y),b=c?e(h[i][u].xItem.xAxisPoint):d(h[i][u].xItem.xAxisPoint),C=y?s(h[i][u].y):n(h[i][u].y);v>0&&f.push(o.createElement("line",{key:"".concat(a,"-").concat(u,"-BorderLine"),x1:g,y1:x,x2:b,y2:C,opacity:l?1:.1,strokeWidth:3+2*v,fill:"transparent",strokeLinecap:"round",stroke:m.palette.white,transform:"translate(".concat(_,", 0)")})),p.push(o.createElement("line",(0,t.pi)({key:"".concat(a,"-").concat(u,"-line"),x1:g,y1:x,x2:b,y2:C,opacity:l?1:.1,strokeWidth:3,strokeLinecap:"round",stroke:h[i][u].color,transform:"translate(".concat(_,", 0)")},r.state.selectedLegend===i&&{onMouseOver:r._lineHover.bind(r,h[i][u-1]),onMouseLeave:r._lineHoverOut})))}})),Object.keys(h).forEach((function(i,a){h[i].forEach((function(l,u){g.push(o.createElement("circle",(0,t.pi)({key:"".concat(a,"-").concat(u,"-dot"),cx:c?e(l.xItem.xAxisPoint):d(l.xItem.xAxisPoint),cy:l.useSecondaryYScale&&s?s(l.y):n(l.y),onMouseOver:r.state.selectedLegend===i?r._lineHover.bind(r,l):r._onStackHover.bind(r,l.xItem)},r.state.selectedLegend===i&&{onMouseLeave:r._lineHoverOut},{r:r._getCircleVisibilityAndRadius(l.xItem.xAxisPoint,l.legend).radius,stroke:l.color,fill:r.props.theme.palette.white,strokeWidth:3,visibility:r._getCircleVisibilityAndRadius(l.xItem.xAxisPoint,l.legend).visibility,transform:"translate(".concat(_,", 0)")})))}))})),o.createElement(o.Fragment,null,f,p,g)},r._getCircleVisibilityAndRadius=function(e,t){var n=r.state,o=n.selectedLegend,i=n.activeXAxisDataPoint;return""!==o?e===i&&o===t?{visibility:Wi.show,radius:8}:o===t?{visibility:Wi.show,radius:.3}:{visibility:Wi.hide,radius:0}:{visibility:i===e?Wi.show:Wi.hide,radius:8}},r._getMargins=function(e){r.margins=e},r._getCustomizedCallout=function(){var e=r.props.data.some((function(e){return e.lineData&&e.lineData.length>0}));return r.props.onRenderCalloutPerStack?r.props.onRenderCalloutPerStack(r.state.stackCalloutProps):r.props.onRenderCalloutPerDataPoint&&!e?r.props.onRenderCalloutPerDataPoint(r.state.dataPointCalloutProps,r._renderCallout):null},r._lineHover=function(e,t){t.persist(),r.setState({refSelected:t,isCalloutVisible:!0,xCalloutValue:"".concat(e.xItem.xAxisPoint),yCalloutValue:"".concat(e.yAxisCalloutData||e.data||e.y),activeXAxisDataPoint:e.xItem.xAxisPoint,color:e.color})},r._lineHoverOut=function(){r.setState({refSelected:null,isCalloutVisible:!1,xCalloutValue:"",yCalloutValue:"",activeXAxisDataPoint:"",color:""})},r._handleMouseOut=function(){},r._handleChartMouseLeave=function(){r._calloutAnchorPoint=null,r.setState({isCalloutVisible:!1,activeXAxisDataPoint:""})},r._createBar=function(e,n,i,a){var s=r.props,l=s.barCornerRadius,c=void 0===l?0:l,u=s.barMinimumHeight,d=void 0===u?0:u,h=r.props.data.some((function(e){return e.lineData&&e.lineData.length>0})),p=r._toFocusWholeStack(h),f=r._points.map((function(a,s){var l=i-r.margins.bottom,u=e((r._xAxisType===Kt.xl.NumericAxis||(r._xAxisType,Kt.xl.DateAxis),a.xAxisPoint)),h=r._xAxisType===Kt.xl.NumericAxis?0:r._xAxisType===Kt.xl.DateAxis?-r._barWidth/2:(e.bandwidth()-r._barWidth)/2,f=0,g=a.chartData.filter((function(e){return e.data>0}));if(g.length){var m=r._getBarGapAndScale(g,n),v=m.gapHeight,_=m.heightValueScale;if(!(_<0)){var y=g.map((function(e,n){var i=e.color?e.color:r._colors[n],m={},y=!(!r._legendHighlighted(e.legend)&&!r._noLegendHighlighted());r._classNames=Xi(r.props.styles,{theme:r.props.theme,shouldHighlight:y,href:r.props.href});var x=!p&&{"data-is-focusable":!r.props.hideTooltip,"aria-label":r._getAriaLabel(a,e),onMouseOver:r._onRectHover.bind(r,a.xAxisPoint,e,i),onMouseMove:r._onRectHover.bind(r,a.xAxisPoint,e,i),onMouseLeave:r._handleMouseOut,onFocus:r._onRectFocus.bind(r,e,a.xAxisPoint,i,m),onBlur:r._handleMouseOut,onClick:r._onClick.bind(r,e),role:"img"},b=_*e.data;return b<Math.max(_*Math.ceil(r._yMax/100),d)&&(b=Math.max(_*Math.ceil(r._yMax/100),d)),l=l-b-(n?v:0),f+=e.data,c&&b>c&&n===g.length-1?o.createElement("path",(0,t.pi)({key:n+s+"".concat(p),className:r._classNames.opacityChangeOnHover,d:"\n M ".concat(u," ").concat(l+c,"\n a ").concat(c," ").concat(c," 0 0 1 ").concat(c," ").concat(-c,"\n h ").concat(r._barWidth-2*c,"\n a ").concat(c," ").concat(c," 0 0 1 ").concat(c," ").concat(c,"\n v ").concat(b-c,"\n h ").concat(-r._barWidth,"\n z\n "),fill:i,ref:function(e){return m.refElement=e},transform:"translate(".concat(h,", 0)")},x)):b<0?o.createElement(o.Fragment,{key:n+s}," "):o.createElement("rect",(0,t.pi)({key:n+s,className:r._classNames.opacityChangeOnHover,x:u,y:l,width:r._barWidth,height:b,fill:i,ref:function(e){return m.refElement=e}},x,{transform:"translate(".concat(h,", 0)")}))})),x={},b=p&&{"data-is-focusable":!r.props.hideTooltip,"aria-label":r._getAriaLabel(a),onMouseOver:r._onStackHover.bind(r,a),onMouseMove:r._onStackHover.bind(r,a),onMouseLeave:r._handleMouseOut,onFocus:r._onStackFocus.bind(r,a,x),onBlur:r._handleMouseOut,onClick:r._onClick.bind(r,a),role:"img"},C=!1,E=0;return r.props.hideLabels||(r._noLegendHighlighted()?(C=!0,E=f):g.forEach((function(e){r._legendHighlighted(e.legend)&&(C=!0,E+=e.data)}))),o.createElement("g",{key:s+"".concat(p)},o.createElement("g",(0,t.pi)({id:"".concat(s,"-singleBar"),ref:function(e){return x.refElement=e}},b),y),!r.props.hideLabels&&r._barWidth>=16&&C&&o.createElement("text",{x:u+r._barWidth/2,y:l-6,textAnchor:"middle",className:r._classNames.barLabel,"aria-label":"Total: ".concat(E),role:"img",transform:"translate(".concat(h,", 0)")},(0,Kt.cE)(E)))}}}));if(!r.props.showXAxisLablesTooltip)try{document.getElementById(r._tooltipId)&&document.getElementById(r._tooltipId).remove()}catch(e){}if(!r.props.wrapXAxisLables&&r.props.showXAxisLablesTooltip){var g=(0,Co.Ys)(a).call(e);try{document.getElementById(r._tooltipId)&&document.getElementById(r._tooltipId).remove()}catch(e){}var m={tooltipCls:r._classNames.tooltip,id:r._tooltipId,xAxis:g};g&&(0,Kt.$V)(m)}return f.filter((function(e){return!!e}))},r._getScales=function(e,t){var n=r._yMax,o=(0,Bi.Z)().domain([0,n]).range([0,e-r.margins.bottom-r.margins.top]);if(r._xAxisType===Kt.xl.NumericAxis){var i=(0,ri.Z)(r._dataset,(function(e){return e.x})),a=(0,Hi.Z)(r._dataset,(function(e){return e.x}));return{xBarScale:(0,Bi.Z)().domain(r._isRtl?[i,a]:[a,i]).nice().range([r.margins.left+r._domainMargin,t-r.margins.right-r._barWidth-r._domainMargin]),yBarScale:o}}if(r._xAxisType===Kt.xl.DateAxis){var s=(0,Hi.Z)(r._dataset,(function(e){return e.x})),l=(0,ri.Z)(r._dataset,(function(e){return e.x}));return{xBarScale:(0,Ri.Z)().domain([s,l]).range([r.margins.left+r._domainMargin+r._barWidth/2,t-r.margins.right-r._barWidth/2-r._domainMargin]),yBarScale:o}}return{xBarScale:(0,zi.Z)().domain(r._xAxisLabels).range([r.margins.left+r._domainMargin,t-r.margins.right-r._domainMargin]).paddingInner(2/3),yBarScale:o}},r._getGraphData=function(e,t,n,o,i){var a=r._getScales(n,o),s=a.xBarScale,l=a.yBarScale;return r._bars=r._createBar(s,l,n,i)},r._closeCallout=function(){r.setState({isCalloutVisible:!1})},r._getAxisData=function(e){if(e&&e.yAxisDomainValues.length){var t=e.yAxisDomainValues;r._yMax=Math.max(t[t.length-1],r.props.yMaxValue||0)}},r._legendHighlighted=function(e){return r.state.selectedLegend===e||""===r.state.selectedLegend&&r.state.activeLegend===e},r._noLegendHighlighted=function(){return""===r.state.selectedLegend&&""===r.state.activeLegend},r._getAriaLabel=function(e,t){var n,r,o;if(!t){var i=e.xAxisCalloutData||e.xAxisPoint,a=e.chartData.map((function(e){var t=e.legend,n=e.yAxisCalloutData||e.data;return"".concat(t,", ").concat(n,".")})).join(" "),s=null===(n=e.lineData)||void 0===n?void 0:n.map((function(e){var t=e.legend,n=e.yAxisCalloutData||e.data||e.y;return"".concat(t,", ").concat(n,".")})).join(" ");return(null===(r=e.stackCallOutAccessibilityData)||void 0===r?void 0:r.ariaLabel)||"".concat(i,". ").concat(a)+(s?" ".concat(s):"")}var l=e.xAxisCalloutData||t.xAxisCalloutData||e.xAxisPoint,c=t.legend,u=t.yAxisCalloutData||t.data;return(null===(o=t.callOutAccessibilityData)||void 0===o?void 0:o.ariaLabel)||"".concat(l,". ").concat(c,", ").concat(u,".")},r._getDomainMargins=function(e){if(r._xAxisType!==Kt.xl.NumericAxis){var n=e-(r.margins.left+8)-(r.margins.right+8),o=Math.min(r.props.barWidth||16,24),i=(3*r._xAxisLabels.length-2)*o;r._domainMargin=8,n>=i?r._domainMargin+=(n-i)/2:o=n/(3*r._xAxisLabels.length-2),r._barWidth=o}return(0,t.pi)((0,t.pi)({},r.margins),{left:r.margins.left+r._domainMargin,right:r.margins.right+r._domainMargin})},r.state={isCalloutVisible:!1,selectedLegend:"",activeLegend:"",refSelected:null,dataForHoverCard:0,color:"",hoverXValue:"",YValueHover:[],xCalloutValue:"",yCalloutValue:"",activeXAxisDataPoint:"",calloutLegend:""},Ot("VERTICAL STACKED BAR CHART",n,{colors:"IVSChartDataPoint.color",chartLabel:"use your own title for chart"}),r._handleMouseOut=r._handleMouseOut.bind(r),r._calloutId=f("callout"),r._tooltipId=f("VSBCTooltipId_"),r._isChartEmpty()&&(r._adjustProps(),r._dataset=r._createDataSetLayer()),r._createLegendsForLine=(0,ut.NF)((function(e){return r._getLineLegends(e)})),r._domainMargin=8,r._emptyChartId=f("_VSBC_empty"),r}return(0,t.ZT)(n,e),n.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())},n.prototype.render=function(){var e=this;if(!this._isChartEmpty()){this._adjustProps();var n=this.props.data.some((function(e){return e.lineData&&e.lineData.length>0})),r=this._toFocusWholeStack(n),i=this.props.isCalloutForStack,a=void 0!==i&&i;this._dataset=this._createDataSetLayer();var s=this._getLegendData(this._points,this.props.theme.palette,this._createLegendsForLine(this.props.data));this._classNames=Xi(this.props.styles,{theme:this.props.theme,href:this.props.href});var l=(0,t.pi)((0,t.pi)({isCalloutVisible:this.state.isCalloutVisible,directionalHint:_.topAutoEdge,id:"toolTip".concat(this._calloutId),target:this.state.refSelected,isBeakVisible:!1,gapSpace:15,color:this.state.color,legend:this.state.calloutLegend,XValue:this.state.xCalloutValue,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard,YValueHover:this.state.YValueHover,hoverXValue:this.state.hoverXValue,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0},this.props.calloutProps),(0,Kt.ey)(this.state.callOutAccessibilityData)),c={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return o.createElement(Oo,(0,t.pi)({},this.props,{points:this._dataset,chartType:Kt.$X.VerticalStackedBarChart,xAxisType:this._xAxisType,calloutProps:l,tickParams:c,legendBars:s,datasetForXAxisDomain:this._xAxisLabels,isCalloutForStack:r,barwidth:this._barWidth,focusZoneDirection:a||n?Gt.horizontal:Gt.vertical,getmargins:this._getMargins,getGraphData:this._getGraphData,getAxisData:this._getAxisData,customizedCallout:this._getCustomizedCallout(),onChartMouseLeave:this._handleChartMouseLeave,getDomainMargins:this._getDomainMargins},this._xAxisType!==Kt.xl.NumericAxis&&{xAxisInnerPadding:2/3,xAxisOuterPadding:0},{children:function(t){return o.createElement(o.Fragment,null,o.createElement("g",null,e._bars),o.createElement("g",null,n&&e._createLines(t.xScale,t.yScale,t.containerHeight,t.containerWidth,t.yScaleSecondary)))}}))}return o.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"})},n.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=(0,Kt.SY)(this.props.data[0].xAxisPoint,!0),this._lineObject=this._getFormattedLineData(this.props.data)},n.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},n.prototype._renderCallout=function(e){return e?o.createElement($t.ChartHoverCard,{XValue:e.xAxisCalloutData,Legend:e.legend,YValue:e.yAxisCalloutData,color:e.color,culture:this.props.culture}):null},n.prototype._onLegendClick=function(e){this.state.selectedLegend===e?this.setState({selectedLegend:""}):this.setState({selectedLegend:e})},n.prototype._onLegendHover=function(e){this.setState({activeLegend:e})},n.prototype._onLegendLeave=function(){this.setState({activeLegend:""})},n.prototype._getLegendData=function(e,n,r){var i=this;if(this.props.hideLegend)return o.createElement(o.Fragment,null);var a=[n.blueLight,n.blue,n.blueMid,n.red,n.black],s=[],l=this.props.allowHoverOnLegend,c=void 0===l||l;e.forEach((function(e){e.chartData.forEach((function(e){var t=e.color?e.color:a[Math.floor(4*Math.random()+1)];if(!(s.filter((function(n){return n.title===e.legend&&n.color===t})).length>0)){var n={title:e.legend,color:t,action:function(){i._onLegendClick(e.legend)},hoverAction:c?function(){i._handleChartMouseLeave(),i._onLegendHover(e.legend)}:void 0,onMouseOutAction:c?function(){return i._onLegendLeave()}:void 0};s.push(n)}}))}));var u=[];r&&r.length>0&&r.forEach((function(e){var t={title:e.title,color:e.color,isLineLegendInBarChart:!0,action:function(){i._onLegendClick(e.title)},hoverAction:c?function(){i._handleChartMouseLeave(),i._onLegendHover(e.title)}:void 0,onMouseOutAction:c?function(){return i._onLegendLeave()}:void 0};u.push(t)}));var d=u.concat(s);return o.createElement(Ar,(0,t.pi)({legends:d,overflowProps:this.props.legendsOverflowProps,enabledWrapLines:this.props.enabledLegendsWrapLines,focusZonePropsInHoverCard:this.props.focusZonePropsForLegendsInHoverCard,overflowText:this.props.legendsOverflowText},this.props.legendProps))},n.prototype._onRectHover=function(e,t,n,r){r.persist(),this._onRectFocusHover(e,t,n,r)},n.prototype._onRectFocusHover=function(e,t,n,r){var o,i;(null===(o=this._calloutAnchorPoint)||void 0===o?void 0:o.chartDataPoint)===t&&(null===(i=this._calloutAnchorPoint)||void 0===i?void 0:i.xAxisDataPoint)===e||(this._calloutAnchorPoint={chartDataPoint:t,xAxisDataPoint:e},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}))},n.prototype._onStackHover=function(e,t){t.persist(),this._onStackHoverFocus(e,t)},n.prototype._onStackHoverFocus=function(e,n){var r=e.lineData,o=void 0!==r&&r.length>0;o&&r.forEach((function(e){e.data=e.data||e.y,e.shouldDrawBorderBottom=!0})),this.setState({refSelected:n,isCalloutVisible:!0,YValueHover:o?(0,t.ev)((0,t.ev)([],r.sort((function(e,t){return e.data<t.data?1:-1})),!0),e.chartData.slice().reverse(),!0):e.chartData.slice().reverse(),hoverXValue:e.xAxisPoint instanceof Date?e.xAxisPoint.toLocaleDateString():e.xAxisPoint,stackCalloutProps:e,activeXAxisDataPoint:e.xAxisPoint,callOutAccessibilityData:e.stackCallOutAccessibilityData})},n.prototype._onRectFocus=function(e,t,n,r){r.refElement&&this._onRectFocusHover(t,e,n,r.refElement)},n.prototype._onStackFocus=function(e,t){t.refElement&&this._onStackHoverFocus(e,t.refElement)},n.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)},n.prototype._getBarGapAndScale=function(e,t,n){var r=this.props.barGapMax,o=void 0===r?0:r,i=e.reduce((function(e,t){return e+t.data}),0),a=null!=n?n:t(i),s=o&&e.length-1,l=s&&Math.max(1,Math.min(o,.2*a/s));return{gapHeight:l,heightValueScale:(a-l*s)/i}},n.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.length>0&&0===this.props.data.filter((function(e){return 0===e.chartData.length})).length)},n}(o.Component),ji=(0,e.z)(Ui,(function(e){var n=e.shouldHighlight,r=e.href,o=e.theme;return{opacityChangeOnHover:{opacity:n?"":"0.1",cursor:r?"pointer":"default"},tooltip:(0,t.pi)((0,t.pi)({},o.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:o.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"}),barLabel:{fontSize:Ye.TS.small,fontWeight:Ye.lq.semibold,fill:o.palette.neutralPrimary}}})),Gi=(0,i.y)(),Ki=.1/.9,$i=function(e){function n(n){var r=e.call(this,n)||this;return r._isRtl=(0,a.zg)(),r._getGraphData=function(e,t,n,o,i){var a=r._createX0Scale(o),s=r._createX1Scale(),l=[];r._datasetForBars.forEach((function(e){l.push(r._buildGraph(e,a,s,n,i))})),r._groupedVerticalBarGraph=l},r._getMargins=function(e){return r.margins=e},r._createDataSetOfGVBC=function(e){var t=[],n=e.map((function(e){return e.name}));e[0].series.forEach((function(e){t.push(e.key)}));var o=r._createDataset(e);return{keys:t,xAxisLabels:n,datasetForBars:o}},r._getCustomizedCallout=function(){return r.props.onRenderCalloutPerDataPoint?r.props.onRenderCalloutPerDataPoint(r.state.dataPointCalloutProps):null},r._getOpacity=function(e){return r._legendHighlighted(e)||r._noLegendHighlighted()?"":"0.1"},r._onBarHover=function(e,t,n){n.persist(),r._calloutAnchorPoint!==e&&(r._calloutAnchorPoint=e,r.setState({refSelected:n,isCalloutVisible:""===r.state.selectedLegend||r.state.selectedLegend===e.legend,calloutLegend:e.legend,dataForHoverCard:e.data,color:e.color,xCalloutValue:e.xAxisCalloutData,yCalloutValue:e.yAxisCalloutData,dataPointCalloutProps:e,callOutAccessibilityData:r.props.isCalloutForStack?t.stackCallOutAccessibilityData:e.callOutAccessibilityData,YValueHover:t.groupSeries,hoverXValue:e.xAxisCalloutData}))},r._onBarLeave=function(){},r._handleChartMouseLeave=function(){r._calloutAnchorPoint=null,r.setState({isCalloutVisible:!1})},r._onBarFocus=function(e,t,n){r._refArray.forEach((function(o,i){o.index===e.legend&&n===i&&r.setState({refSelected:o.refElement,isCalloutVisible:""===r.state.selectedLegend||r.state.selectedLegend===e.legend,calloutLegend:e.legend,dataForHoverCard:e.data,color:e.color,xCalloutValue:e.xAxisCalloutData,yCalloutValue:e.yAxisCalloutData,dataPointCalloutProps:e,callOutAccessibilityData:r.props.isCalloutForStack?t.stackCallOutAccessibilityData:e.callOutAccessibilityData,YValueHover:t.groupSeries,hoverXValue:e.xAxisCalloutData})}))},r._redirectToUrl=function(e){e&&(window.location.href=e)},r._buildGraph=function(e,t,n,i,a){var s=[],l=[],c=(0,Bi.Z)().domain([0,r._yMax]).range([0,i-r.margins.bottom-r.margins.top]),u=Object.keys(r._datasetForBars[0]).splice(0,r._keys.length);if(u.forEach((function(t,a){var d=e.indexNum*u.length+a,h=e[t],p=n(t)+(n.bandwidth()-r._barWidth)/2,f=Math.max(i-r.margins.bottom-c(h.data),0);h.data&&s.push(o.createElement("rect",{className:r._classNames.opacityChangeOnHover,key:"".concat(e.indexNum,"-").concat(a),height:Math.max(c(h.data),0),width:r._barWidth,x:p,y:f,"data-is-focusable":!r.props.hideTooltip,opacity:r._getOpacity(h.legend),ref:function(e){r._refCallback(e,h.legend,d)},fill:h.color,onMouseOver:r._onBarHover.bind(r,h,e),onMouseMove:r._onBarHover.bind(r,h,e),onMouseOut:r._onBarLeave,onFocus:r._onBarFocus.bind(r,h,e,d),onBlur:r._onBarLeave,onClick:r.props.href?r._redirectToUrl.bind(r,r.props.href):h.onClick,"aria-label":r._getAriaLabel(h,e.xAxisPoint),role:"img"})),h.data&&!r.props.hideLabels&&r._barWidth>=16&&(r._legendHighlighted(h.legend)||r._noLegendHighlighted())&&l.push(o.createElement("text",{x:p+r._barWidth/2,y:f-6,textAnchor:"middle",className:r._classNames.barLabel,"aria-hidden":!0},(0,Kt.cE)(h.data)))})),!r.props.wrapXAxisLables&&r.props.showXAxisLablesTooltip){var d=(0,Co.Ys)(a).call(t);try{document.getElementById(r._tooltipId)&&document.getElementById(r._tooltipId).remove()}catch(e){}var h={tooltipCls:r._classNames.tooltip,id:r._tooltipId,xAxis:d};d&&(0,Kt.$V)(h)}return o.createElement("g",{key:e.indexNum,transform:"translate(".concat(t(e.xAxisPoint)+(t.bandwidth()-r._groupWidth)/2,", 0)")},s,l)},r._createDataset=function(e){var n=[],o=[];return e.forEach((function(e,r){var i={},a={},s=[];e.series.forEach((function(e){i[e.key]=e.data,a[e.key]=(0,t.pi)({},e),s.push(e)})),a.xAxisPoint=e.name,a.indexNum=r,a.groupSeries=s,a.stackCallOutAccessibilityData=e.stackCallOutAccessibilityData,n.push(a),o.push(i)})),r._dataset=o,n},r._createX0Scale=function(e){return(0,zi.Z)().domain(r._xAxisLabels).range(r._isRtl?[e-r.margins.right-r._domainMargin,r.margins.left+r._domainMargin]:[r.margins.left+r._domainMargin,e-r.margins.right-r._domainMargin]).paddingInner(2/(2+r._keys.length+(r._keys.length-1)*Ki))},r._createX1Scale=function(){return(0,zi.Z)().domain(r._keys).range(r._isRtl?[r._groupWidth,0]:[0,r._groupWidth]).paddingInner(.1)},r._closeCallout=function(){r.setState({isCalloutVisible:!1})},r._getLegendData=function(e,n){var i=e,a=[n.blueLight,n.blue,n.blueMid,n.red,n.black],s=[];return i.forEach((function(e){e.series.forEach((function(e){var t=e.color?e.color:a[Math.floor(4*Math.random()+1)];if(!(s.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:function(){r._handleChartMouseLeave(),r._onLegendHover(e.legend)},onMouseOutAction:function(){r._onLegendLeave()}};s.push(n)}}))})),o.createElement(Ar,(0,t.pi)({legends:s,overflowProps:r.props.legendsOverflowProps,enabledWrapLines:r.props.enabledLegendsWrapLines,focusZonePropsInHoverCard:r.props.focusZonePropsForLegendsInHoverCard},r.props.legendProps))},r._getAxisData=function(e){if(e&&e.yAxisDomainValues.length){var t=e.yAxisDomainValues;r._yMax=Math.max(t[t.length-1],r.props.yMaxValue||0)}},r._legendHighlighted=function(e){return r.state.selectedLegend===e||""===r.state.selectedLegend&&r.state.activeLegend===e},r._noLegendHighlighted=function(){return""===r.state.selectedLegend&&""===r.state.activeLegend},r._getAriaLabel=function(e,t){var n,r=e.xAxisCalloutData||t,o=e.legend,i=e.yAxisCalloutData||e.data;return(null===(n=e.callOutAccessibilityData)||void 0===n?void 0:n.ariaLabel)||"".concat(r,". ").concat(o,", ").concat(i,".")},r._getDomainMargins=function(e){var n=e-(r.margins.left+8)-(r.margins.right+8),o=Math.min(r.props.barwidth||16,24),i=r._keys.length*o+(r._keys.length-1)*Ki*o,a=r._xAxisLabels.length*i+2*(r._xAxisLabels.length-1)*o;return r._domainMargin=8,n>=a?r._domainMargin+=(n-a)/2:o=(i=n/(r._xAxisLabels.length+(r._xAxisLabels.length-1)*(2/(r._keys.length+(r._keys.length-1)*Ki))))/(r._keys.length+(r._keys.length-1)*Ki),r._barWidth=o,r._groupWidth=i,(0,t.pi)((0,t.pi)({},r.margins),{left:r.margins.left+r._domainMargin,right:r.margins.right+r._domainMargin})},r._createSet=(0,ut.NF)((function(e){return r._createDataSetOfGVBC(e)})),r.state={color:"",dataForHoverCard:0,isCalloutVisible:!1,refSelected:null,selectedLegend:"",xCalloutValue:"",yCalloutValue:"",YValueHover:[],hoverXValue:"",calloutLegend:"",activeLegend:""},Ot("GROUPED VERTICAL BAR CHART",n,{showYAxisGridLines:"Dont use this property. Lines are drawn by default",showXAxisPath:"Dont use this property. Axis line removed default.",showYAxisPath:"Dont use this property. No need to display Y axis path. Handling default",showXAxisGridLines:"Dont use this property. Handling with default value.",legendColor:"Dont use this property. colour will pick from given data."}),r._refArray=[],r._calloutId=f("callout"),r._tooltipId=f("GVBCTooltipId_"),r._domainMargin=8,r._emptyChartId=f("_GVBC_empty"),r}return(0,t.ZT)(n,e),n.prototype.render=function(){var e=this,n=this.props.data,r=this._createSet(n),i=r.keys,a=r.xAxisLabels,s=r.datasetForBars;this._keys=i,this._xAxisLabels=a,this._datasetForBars=s,this._xAxisType=(0,Kt.SY)(n[0].name,!0);var l=this._getLegendData(n,this.props.theme.palette),c=(0,ri.Z)(this._dataset,(function(t){return(0,ri.Z)(e._keys,(function(e){return t[e]}))}));this._yMax=Math.max(c,this.props.yMaxValue||0),this._classNames=Gi(this.props.styles,{theme:this.props.theme,href:this.props.href});var u=(0,t.pi)((0,t.pi)((0,t.pi)({target:this.state.refSelected,isCalloutVisible:this.state.isCalloutVisible,directionalHint:_.topAutoEdge,id:"toolTip".concat(this._calloutId),gapSpace:15,isBeakVisible:!1,setInitialFocus:!0,color:this.state.color,Legend:this.state.calloutLegend,XValue:this.state.xCalloutValue,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard,YValueHover:this.state.YValueHover,hoverXValue:this.state.hoverXValue,onDismiss:this._closeCallout},this.props.calloutProps),{preventDismissOnLostFocus:!0}),(0,Kt.ey)(this.state.callOutAccessibilityData,"text",!1)),d={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return this._isChartEmpty()?o.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):o.createElement(Oo,(0,t.pi)({},this.props,{points:this._datasetForBars,chartType:Kt.$X.GroupedVerticalBarChart,calloutProps:u,legendBars:l,xAxisType:this._xAxisType,datasetForXAxisDomain:this._xAxisLabels,tickParams:d,tickPadding:this.props.tickPadding||5,maxOfYVal:this._yMax,svgFocusZoneProps:{direction:Gt.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)*Ki),xAxisOuterPadding:0,children:function(){return o.createElement("g",null,e._groupedVerticalBarGraph)}}))},n.prototype._refCallback=function(e,t,n){this._refArray[n]={index:t,refElement:e}},n.prototype._onLegendClick=function(e){this.state.selectedLegend===e?this.setState({selectedLegend:""}):this.setState({selectedLegend:e})},n.prototype._onLegendHover=function(e){this.setState({activeLegend:e})},n.prototype._onLegendLeave=function(){this.setState({activeLegend:""})},n.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.length>0&&this.props.data.filter((function(e){return e.series.length})).length>0)},n}(o.Component),Ji=(0,e.z)($i,(function(e){var n=e.theme;return{opacityChangeOnHover:{cursor:e.href?"pointer":"default"},tooltip:(0,t.pi)((0,t.pi)({},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:Ye.TS.small,fontWeight:Ye.lq.semibold,fill:n.palette.neutralPrimary}}})),Qi=n(1286),ea=n(731),ta=(0,i.y)(),na=function(e){function n(n){var r=e.call(this,n)||this;return r._rectRefArray={},r._getXandY=function(){var e="",t="";return r.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}},r._getOpacity=function(e){return r._legendHighlighted(e)||r._noLegendHighlighted()?"1":"0.1"},r._rectRefCallback=function(e,t,n){r._rectRefArray[t]={data:n,refElement:e}},r._onRectFocus=function(e,t){r.setState({target:r._rectRefArray[e].refElement,isCalloutVisible:""===r.state.selectedLegend||r.state.selectedLegend===t.legend,calloutYValue:"".concat(t.rectText),calloutTextColor:r._colorScale(t.value),calloutLegend:t.legend,ratio:t.ratio||null,descriptionMessage:t.descriptionMessage||"",calloutId:e,callOutAccessibilityData:t.callOutAccessibilityData})},r._onRectMouseOver=function(e,t,n){n.persist(),r._calloutAnchorPoint!==t&&(r._calloutAnchorPoint=t,r.setState({target:r._rectRefArray[e].refElement,isCalloutVisible:""===r.state.selectedLegend||r.state.selectedLegend===t.legend,calloutYValue:"".concat(t.rectText),calloutTextColor:r._colorScale(t.value),calloutLegend:t.legend,ratio:t.ratio||null,descriptionMessage:t.descriptionMessage||"",calloutId:e,callOutAccessibilityData:t.callOutAccessibilityData}))},r._onRectBlurOrMouseOut=function(){},r._handleChartMouseLeave=function(){r._calloutAnchorPoint=null,r.setState({isCalloutVisible:!1})},r._createRectangles=function(){var e=[];return r._stringYAxisDataPoints.slice().reverse().forEach((function(t,n){r._dataSet[t].forEach((function(t,i){var a="x".concat(n,"y").concat(i),s=o.createElement("g",{key:a,role:"img","aria-label":r._getAriaLabel(t),"data-is-focusable":!0,fillOpacity:r._getOpacity(t.legend),transform:"translate(".concat(r._xAxisScale(t.x),", ").concat(r._yAxisScale(t.y),")"),ref:function(e){r._rectRefCallback(e,a,t)},onFocus:r._onRectFocus.bind(r,a,t),onBlur:r._onRectBlurOrMouseOut,onMouseOver:r._onRectMouseOver.bind(r,a,t),onMouseOut:r._onRectBlurOrMouseOut},o.createElement("rect",{fill:r._colorScale(t.value),width:r._xAxisScale.bandwidth(),height:r._yAxisScale.bandwidth(),onClick:t.onClick}),o.createElement("text",{dominantBaseline:"middle",textAnchor:"middle",className:r._classNames.text,transform:"translate(".concat(r._xAxisScale.bandwidth()/2,", ").concat(r._yAxisScale.bandwidth()/2,")")},(0,Kt.Ts)(t.rectText,r.props.culture)));e.push(s)}))})),e},r._createLegendBars=function(){var e=r.props,n=e.data,i=e.legendProps,a=[];return n.forEach((function(e){var t={title:e.legend,color:r._colorScale(e.value),action:function(){r._onLegendClick(e.legend)},hoverAction:function(){r._handleChartMouseLeave(),r._onLegendHover(e.legend)},onMouseOutAction:function(){r._onLegendLeave()}};a.push(t)})),o.createElement(Ar,(0,t.pi)({},i,{legends:a}))},r._getColorScale=function(){var e=r.props,t=e.domainValuesForColorScale,n=e.rangeValuesForColorScale;return(0,Bi.Z)().domain(t).range(n)},r._getXIndex=function(e){return r._xAxisType===Kt.xl.DateAxis?"".concat(e.getTime()):r._xAxisType===Kt.xl.StringAxis?e:r._xAxisType===Kt.xl.NumericAxis?"".concat(e):""},r._getYIndex=function(e){return r._yAxisType===Kt.OH.DateAxis?"".concat(e.getTime()):r._yAxisType===Kt.OH.StringAxis?e:r._yAxisType===Kt.OH.NumericAxis?"".concat(e):""},r._createNewDataSet=function(e,n,o,i,a){var s=[];e.forEach((function(e){e.data.forEach((function(n){s.push((0,t.pi)((0,t.pi)({},n),{legend:e.legend}))}))}));var l={},c={},u={};return s.forEach((function(e){var n=r._getXIndex(e.x),o=r._getYIndex(e.y);u[n]="1",c[o]="1",l[o]?l[o]=(0,t.ev)((0,t.ev)([],l[o],!0),[e],!1):l[o]=[e]})),Object.keys(l).forEach((function(e){l[e].sort((function(e,t){return r._xAxisType===Kt.xl.StringAxis?e.x.toLowerCase()>t.x.toLowerCase()?1:-1:r._xAxisType===Kt.xl.DateAxis?e.x.getTime()-t.x.getTime():r._xAxisType===Kt.xl.NumericAxis?+e.x>+t.x?1:-1:e.x>t.x?1:-1})).forEach((function(e){r._xAxisType===Kt.xl.DateAxis&&(e.x=r._getStringFormattedDate(e.x,n)),r._xAxisType===Kt.xl.NumericAxis&&(e.x=r._getStringFormattedNumber(e.x,o)),r._xAxisType===Kt.xl.StringAxis&&(e.x=r._getFormattedLabelForXAxisDataPoint(e.x)),r._yAxisType===Kt.OH.DateAxis&&(e.y=r._getStringFormattedDate(e.y,i)),r._yAxisType===Kt.OH.NumericAxis&&(e.y=r._getStringFormattedNumber(e.y,a)),r._yAxisType===Kt.OH.StringAxis&&(e.y=r._getFormattedLabelForYAxisDataPoint(e.y))}))})),Object.keys(l).forEach((function(e){r._yAxisType===Kt.OH.DateAxis?l[r._getStringFormattedDate(e,i)]=l[e]:r._yAxisType===Kt.OH.NumericAxis?l["".concat(r._getStringFormattedNumber(e,a))]=l[e]:l[r._getFormattedLabelForYAxisDataPoint(e)]=l[e]})),{dataSet:l,yAxisPoints:r._getYAxisDataPoints(c),xAxisPoints:r._getXAxisDataPoints(u)}},r._getXAxisDataPoints=function(e){return Object.keys(e).sort((function(e,t){return r._xAxisType===Kt.xl.DateAxis||r._xAxisType===Kt.xl.NumericAxis?+e-+t:e.toLowerCase()>t.toLowerCase()?1:-1})).map((function(e){return r._xAxisType===Kt.xl.DateAxis?r._getStringFormattedDate(e,r.props.xAxisDateFormatString):r._xAxisType===Kt.xl.NumericAxis?r._getStringFormattedNumber(e,r.props.xAxisNumberFormatString):r._getFormattedLabelForXAxisDataPoint(e)}))},r._getYAxisDataPoints=function(e){return Object.keys(e).sort((function(e,t){return r._yAxisType===Kt.OH.DateAxis||r._yAxisType===Kt.OH.NumericAxis?+e-+t:e.toLowerCase()>t.toLowerCase()?1:-1})).map((function(e){return r._yAxisType===Kt.OH.DateAxis?r._getStringFormattedDate(e,r.props.yAxisDateFormatString):r._yAxisType===Kt.OH.NumericAxis?r._getStringFormattedNumber(e,r.props.yAxisNumberFormatString):r._getFormattedLabelForYAxisDataPoint(e)}))},r._getStringFormattedDate=function(e,t){var n=new Date;return n.setTime(+e),(0,ea.i$)(t||"%b/%d")(n)},r._getStringFormattedNumber=function(e,t){return(0,oo.WU)(t||".2~s")(+e)},r._getFormattedLabelForXAxisDataPoint=function(e){var t=r.props.xAxisStringFormatter;return t?t(e):e},r._getFormattedLabelForYAxisDataPoint=function(e){var t=r.props.yAxisStringFormatter;return t?t(e):e},r._closeCallout=function(){r.setState({isCalloutVisible:!1})},r._legendHighlighted=function(e){return r.state.selectedLegend===e||""===r.state.selectedLegend&&r.state.activeLegend===e},r._noLegendHighlighted=function(){return""===r.state.selectedLegend&&""===r.state.activeLegend},r._getAriaLabel=function(e){var t,n=e.x,r=e.y,o=e.legend,i=e.ratio?"".concat(e.ratio[0],"/").concat(e.ratio[1]):e.rectText||e.value,a=e.descriptionMessage;return(null===(t=e.callOutAccessibilityData)||void 0===t?void 0:t.ariaLabel)||"".concat(n,", ").concat(r,". ").concat(o,", ").concat(i,".")+(a?" ".concat(a,"."):"")},r._createSet=(0,ut.NF)((function(e,t,n,o,i){return r._createNewDataSet(e,t,n,o,i)})),r.state={selectedLegend:"",activeLegend:"",isCalloutVisible:!1,target:null,calloutLegend:"",calloutTextColor:"",calloutYValue:"",ratio:null,descriptionMessage:"",calloutId:""},r._emptyChartId=f("_HeatMap_empty"),r}return(0,t.ZT)(n,e),n.prototype.render=function(){var e=this,n=this._getXandY(),r=n.x,i=n.y;this._xAxisType=(0,Kt.SY)(r,!0),this._yAxisType=(0,Kt.SY)(i,!1);var a=this.props,s=a.data,l=a.xAxisDateFormatString,c=a.xAxisNumberFormatString,u=a.yAxisDateFormatString,d=a.yAxisNumberFormatString;this._colorScale=this._getColorScale();var h=this._createSet(s,l,c,u,d),p=h.dataSet,f=h.xAxisPoints,g=h.yAxisPoints;this._dataSet=p,this._stringYAxisDataPoints=g,this._stringXAxisDataPoints=f,this._classNames=ta(this.props.styles,{theme:this.props.theme});var m=(0,t.pi)((0,t.pi)((0,t.pi)((0,t.pi)({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:_.topAutoEdge,onDismiss:this._closeCallout}),(0,Kt.ey)(this.state.callOutAccessibilityData,"text",!1)),{preventDismissOnLostFocus:!0}),v=(0,t.pi)((0,t.pi)({},this.state.ratio&&{ratio:this.state.ratio}),{descriptionMessage:this.state.descriptionMessage});return this._isChartEmpty()?o.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):o.createElement(Oo,(0,t.pi)({},this.props,{points:s,chartType:Kt.$X.HeatMapChart,xAxisType:Kt.xl.StringAxis,yAxisType:Kt.OH.StringAxis,calloutProps:m,chartHoverProps:v,styles:this._classNames.subComponentStyles.cartesianStyles,datasetForXAxisDomain:this._stringXAxisDataPoints,stringDatasetForYAxisDomain:this._stringYAxisDataPoints,xAxisTickCount:this._stringXAxisDataPoints.length,xAxistickSize:0,xAxisPadding:.02,yAxisPadding:.02,svgFocusZoneProps:{direction:Gt.bidirectional},legendBars:this._createLegendBars(),onChartMouseLeave:this._handleChartMouseLeave,children:function(t){return e._xAxisScale=t.xScale,e._yAxisScale=t.yScale,e._createRectangles()}}))},n.prototype._onLegendHover=function(e){this.setState({activeLegend:e})},n.prototype._onLegendLeave=function(){this.setState({activeLegend:""})},n.prototype._onLegendClick=function(e){this.state.selectedLegend===e?this.setState({selectedLegend:""}):this.setState({selectedLegend:e})},n.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.length>0)},n}(o.Component),ra=(0,e.z)(na,(function(e){var t=e.theme;return{root:{},text:[t.fonts.medium,{pointerEvents:"none",fill:t.palette.white,fontWeight:Ye.lq.semibold}],subComponentStyles:{cartesianStyles:{},calloutStyles:{root:{maxWidth:"238px"}}}}}));function oa(e,t){let n=0;if(void 0===t)for(let t of e)(t=+t)&&(n+=t);else{let r=-1;for(let o of e)(o=+t(o,++r,e))&&(n+=o)}return n}function ia(e,t){let n=0;if(void 0===t)for(let t of e)(t=+t)&&(n+=t);else{let r=-1;for(let o of e)(o=+t(o,++r,e))&&(n+=o)}return n}function aa(e,t){let n;if(void 0===t)for(const t of e)null!=t&&(n<t||void 0===n&&t>=t)&&(n=t);else{let r=-1;for(let o of e)null!=(o=t(o,++r,e))&&(n<o||void 0===n&&o>=o)&&(n=o)}return n}function sa(e,t){return t-1-e.height}function la(e,t){return e.sourceLinks.length?e.depth:t-1}function ca(e){return function(){return e}}function ua(e,t){return ha(e.source,t.source)||e.index-t.index}function da(e,t){return ha(e.target,t.target)||e.index-t.index}function ha(e,t){return e.y0-t.y0}function pa(e){return e.value}function fa(e){return e.index}function ga(e){return e.nodes}function ma(e){return e.links}function va(e,t){const n=e.get(t);if(!n)throw new Error("missing: "+t);return n}function _a({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 ya{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 xa(e){return new ya(e,!0)}var ba=(0,i.y)(),Ca="#757575",Ea=[{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"}],Sa="#323130",Aa="#FFFFFF",La=function(e){function n(t){var n=e.call(this,t)||this;return n._isRtl=(0,a.zg)(),n._onCloseCallout=function(){n.setState({isCalloutVisible:!1,refSelected:void 0,descriptionMessage:""})},n._onBlur=function(){},n._fillNodeColors=function(e){var t=n.state;return t.selectedState?t.selectedState&&t.selectedNodes.has(e.index)&&t.selectedNode?t.selectedNode.color:t.selectedState&&!t.selectedNode?e.color:void 0:e.color},n._fillNodeBorder=function(e){var t=n.state;return t.selectedState?t.selectedState&&t.selectedNodes.has(e.index)&&t.selectedNode?t.selectedNode.borderColor:(t.selectedState&&t.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=f("callout"),n._linkId=f("link"),n._margins={top:36,right:48,bottom:32,left:48},n._preRenderLayout(),n._normalizeData=(0,ut.NF)((function(e){return n._normalizeSankeyData(e)})),n._emptyChartId=f("_SankeyChart_empty"),n}return(0,t.ZT)(n,e),n.prototype.componentDidMount=function(){this._fitParentContainer()},n.prototype.componentDidUpdate=function(e){e.shouldResize!==this.props.shouldResize&&this._fitParentContainer()},n.prototype.componentWillUnmount=function(){cancelAnimationFrame(this._reqID)},n.prototype.render=function(){var e,n=this;if(!this._isChartEmpty()){var r,i=this.props,a=i.theme,s=i.className,l=i.styles,c=i.pathColor,u=this.state,d=ba(l,{theme:a,width:u.containerWidth,height:u.containerHeight,pathColor:c,className:s}),h=this._preRenderLayout(),p=h.height,g=h.width,m=this.props.data.SankeyChartData;this._normalizeData(m),r=this._adjustPadding(this._sankey,p-6,this._nodesInColumn),this._sankey.nodePadding(r),this._sankey(m),(e=m).links.forEach((function(e){e.unnormalizedValue||(e.unnormalizedValue=e.value)})),e.nodes.forEach((function(e){e.actualValue=Math.max(oa(e.sourceLinks,(function(e){return e.unnormalizedValue})),oa(e.targetLinks,(function(e){return e.unnormalizedValue})))})),this._assignNodeColors();var v=this._createNodes(d),y=this._createLinks(),x={isCalloutVisible:u.isCalloutVisible,directionalHint:_.topAutoEdge,id:"toolTip".concat(this._calloutId),target:u.refSelected,color:u.color,XValue:u.xCalloutValue,YValue:u.yCalloutValue?u.yCalloutValue:u.dataForHoverCard,descriptionMessage:u.descriptionMessage,isBeakVisible:!1,gapSpace:15,onDismiss:this._onCloseCallout,className:d.calloutContentRoot,preventDismissOnLostFocus:!0};return o.createElement("div",{className:d.root,role:"presentation",ref:function(e){return n.chartContainer=e},onMouseLeave:this._onCloseCallout},o.createElement(xn,{direction:Gt.bidirectional,isCircularNavigation:!0,handleTabKey:1},o.createElement("svg",{width:g,height:p,id:f("sankeyChart")},o.createElement("g",{className:d.links,strokeOpacity:1},y),o.createElement("g",{className:d.nodes},v),x.isCalloutVisible&&o.createElement(jt,(0,t.pi)({},x),o.createElement($t.ChartHoverCard,{XValue:x.XValue,YValue:x.YValue,color:x.color,descriptionMessage:x.descriptionMessage?x.descriptionMessage:""})))))}return o.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"})},n.prototype._preRenderLayout=function(){var e=this.state,t=e.containerHeight,n=e.containerWidth,r=this._margins,o=r.left,i=r.right,a=r.top,s=r.bottom,l=n-i,c=t-s>0?t-s:0;return this._sankey=function(){let e,t,n,r=0,o=0,i=1,a=1,s=24,l=8,c=fa,u=la,d=ga,h=ma,p=6;function f(){const f={nodes:d.apply(null,arguments),links:h.apply(null,arguments)};return function({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)=>[c(t,n,e),t])));for(const[e,n]of t.entries()){n.index=e;let{source:t,target:o}=n;"object"!=typeof t&&(t=n.source=va(r,t)),"object"!=typeof o&&(o=n.target=va(r,o)),t.sourceLinks.push(n),o.targetLinks.push(n)}if(null!=n)for(const{sourceLinks:t,targetLinks:r}of e)t.sort(n),r.sort(n)}(f),function({nodes:e}){for(const t of e)t.value=void 0===t.fixedValue?Math.max(ia(t.sourceLinks,pa),ia(t.targetLinks,pa)):t.fixedValue}(f),function({nodes:e}){const t=e.length;let n=new Set(e),r=new Set,o=0;for(;n.size;){for(const e of n){e.depth=o;for(const{target:t}of e.sourceLinks)r.add(t)}if(++o>t)throw new Error("circular link");n=r,r=new Set}}(f),function({nodes:e}){const t=e.length;let n=new Set(e),r=new Set,o=0;for(;n.size;){for(const e of n){e.height=o;for(const{source:t}of e.targetLinks)r.add(t)}if(++o>t)throw new Error("circular link");n=r,r=new Set}}(f),function(n){const c=function({nodes:e}){const n=aa(e,(e=>e.depth))+1,o=(i-r-s)/(n-1),a=new Array(n);for(const t of e){const e=Math.max(0,Math.min(n-1,Math.floor(u.call(null,t,n))));t.layer=e,t.x0=r+e*o,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-o)/(aa(c,(e=>e.length))-1)),function(t){const n=function(e,t){let n;if(void 0===t)for(const t of e)null!=t&&(n>t||void 0===n&&t>=t)&&(n=t);else{let r=-1;for(let o of e)null!=(o=t(o,++r))&&(n>o||void 0===n&&o>=o)&&(n=o)}return n}(t,(t=>(a-o-(t.length-1)*e)/ia(t,pa)));for(const r of t){let t=o;for(const o of r){o.y0=t,o.y1=t+o.value*n,t=o.y1+e;for(const e of o.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)}b(r)}}(c);for(let e=0;e<p;++e){const t=Math.pow(.99,e),n=Math.max(1-t,(e+1)/p);m(c,t,n),g(c,t,n)}}(f),_a(f),f}function g(e,n,r){for(let o=1,i=e.length;o<i;++o){const i=e[o];for(const e of i){let t=0,r=0;for(const{source:n,value:o}of e.targetLinks){let i=o*(e.layer-n.layer);t+=C(n,e)*i,r+=i}if(!(r>0))continue;let o=(t/r-e.y0)*n;e.y0+=o,e.y1+=o,x(e)}void 0===t&&i.sort(ha),v(i,r)}}function m(e,n,r){for(let o=e.length-2;o>=0;--o){const i=e[o];for(const e of i){let t=0,r=0;for(const{target:n,value:o}of e.sourceLinks){let i=o*(n.layer-e.layer);t+=E(e,n)*i,r+=i}if(!(r>0))continue;let o=(t/r-e.y0)*n;e.y0+=o,e.y1+=o,x(e)}void 0===t&&i.sort(ha),v(i,r)}}function v(t,n){const r=t.length>>1,i=t[r];y(t,i.y0-e,r-1,n),_(t,i.y1+e,r+1,n),y(t,a,t.length-1,n),_(t,o,0,n)}function _(t,n,r,o){for(;r<t.length;++r){const i=t[r],a=(n-i.y0)*o;a>1e-6&&(i.y0+=a,i.y1+=a),n=i.y1+e}}function y(t,n,r,o){for(;r>=0;--r){const i=t[r],a=(i.y1-n)*o;a>1e-6&&(i.y0-=a,i.y1-=a),n=i.y0-e}}function x({sourceLinks:e,targetLinks:t}){if(void 0===n){for(const{source:{sourceLinks:e}}of t)e.sort(da);for(const{target:{targetLinks:t}}of e)t.sort(ua)}}function b(e){if(void 0===n)for(const{sourceLinks:t,targetLinks:n}of e)t.sort(da),n.sort(ua)}function C(t,n){let r=t.y0-(t.sourceLinks.length-1)*e/2;for(const{target:o,width:i}of t.sourceLinks){if(o===n)break;r+=i+e}for(const{source:e,width:o}of n.targetLinks){if(e===t)break;r-=o}return r}function E(t,n){let r=n.y0-(n.targetLinks.length-1)*e/2;for(const{source:o,width:i}of n.targetLinks){if(o===t)break;r+=i+e}for(const{target:e,width:o}of t.sourceLinks){if(e===n)break;r-=o}return r}return f.update=function(e){return _a(e),e},f.nodeId=function(e){return arguments.length?(c="function"==typeof e?e:ca(e),f):c},f.nodeAlign=function(e){return arguments.length?(u="function"==typeof e?e:ca(e),f):u},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:ca(e),f):d},f.links=function(e){return arguments.length?(h="function"==typeof e?e:ca(e),f):h},f.linkSort=function(e){return arguments.length?(n=e,f):n},f.size=function(e){return arguments.length?(r=o=0,i=+e[0],a=+e[1],f):[i-r,a-o]},f.extent=function(e){return arguments.length?(r=+e[0][0],i=+e[1][0],o=+e[0][1],a=+e[1][1],f):[[r,o],[i,a]]},f.iterations=function(e){return arguments.length?(p=+e,f):p},f}().nodeWidth(124).extent([[o,a],[l-1,c-6]]).nodeAlign(this._isRtl?sa:la),{height:c,width:l}},n.prototype._normalizeSankeyData=function(e){var t;t=this._nodesInColumn=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}(e,this._sankey),Object.values(t).map((function(e){return oa(e,(function(e){return e.value}))})).forEach((function(e,n){var r=0;t[n].forEach((function(t){var n=t.value/e*100;t.actualValue=t.value,n<1?(t.value=.01*e,r+=1):r+=n}));var o=0!==r?r/100:1;o>1&&t[n].forEach((function(e){e.value=e.value/o,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}))}(e,e.actualValue,e.value)}))}))},n.prototype._adjustPadding=function(e,t,n){var r=this._sankey.nodePadding();return Object.values(n).forEach((function(e){var n=.3*t;n<t-oa(e,(function(e){return e.y1-e.y0}))&&(r=Math.min(r,n/(e.length-1)))})),r},n.prototype._createLinks=function(){var e=this,t=[],n=this.props.data.SankeyChartData;if(n){var r=this._linkId;n.links.forEach((function(n,i){var a,s=[{x:(a=n).source.x1,y0:a.y0+a.width/2,y1:a.y0-a.width/2},{x:a.target.x0,y0:a.y1+a.width/2,y1:a.y1-a.width/2}],l=li().x((function(e){return e.x})).y0((function(e){return e.y0})).y1((function(e){return e.y1})).curve(xa),c="url(#gradient-".concat(r,"-").concat(i,")"),u=o.createElement("g",{key:"".concat(r,"-").concat(i)},o.createElement("defs",null,o.createElement("linearGradient",{id:"gradient-".concat(r,"-").concat(i),x1:"0%",y1:"0%",x2:"100%",y2:"0%"},o.createElement("stop",{offset:"0",stopColor:n.source.color}),o.createElement("stop",{offset:"100%",stopColor:n.target.color}))),o.createElement("path",{d:l(s),id:f("link"),fill:e._fillStreamColors(n,c),stroke:e._fillStreamBorder(n,c),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 ".concat(n.source.name," to ").concat(n.target.name," with weight ").concat(n.unnormalizedValue),role:"img"}));t.push(u)}))}return t},n.prototype._createNodes=function(e){var t=this,n=[],r=this.props.data.SankeyChartData;if(r){var i=this.state;return r.nodes.forEach((function(r,a){var s=r.y1-r.y0>0?r.y1-r.y0:0,l=8,c=0;if(s<36){l+=6;var u=(0,Co.Ys)(".nodeName").append("text").attr("class","tempText").append("tspan").text(null);u.text(r.actualValue),null!==u.node()&&(l+=c=u.node().getComputedTextLength()),u.text(null),(0,Co.td)(".tempText").remove()}var d=t._truncateText(r.name,116,l),h="..."===d.slice(-3),p=f("tooltip"),g=(0,Co.Ys)("body").append("div").attr("id",p).attr("class",e.toolTip).style("opacity",0),m=f("nodeBar"),v=o.createElement("g",{key:a,id:f("nodeGElement")},o.createElement("rect",{x:r.x0,y:r.y0,height:s,width:r.x1-r.x0,fill:t._fillNodeColors(r),id:m,onMouseOver:t._onHover.bind(t,r),onMouseOut:function(){t._onLeave(r)},onFocus:t._onCloseCallout.bind(t),stroke:t._fillNodeBorder(r),strokeWidth:"2",opacity:"1","data-is-focusable":!0,"aria-label":"node ".concat(r.name," with weight ").concat(r.actualValue),role:"img"}),r.y1-r.y0>24&&o.createElement("g",{className:e.nodeTextContainer},o.createElement("g",{className:"nodeName"},o.createElement("text",{id:"".concat(m,"-name"),x:r.x0,y:r.y0,dy:"1.2em",dx:"0.4em",textAnchor:t._isRtl?"end":"start",fontWeight:"regular","aria-hidden":"true",fill:!i.selectedState||i.selectedState&&i.selectedNodes.has(r.index)&&i.selectedNode||i.selectedState&&!i.selectedNode?Aa:Sa,fontSize:10,onMouseOver:t._showTooltip.bind(t,r.name,h,g),onMouseOut:t._hideTooltip.bind(t,g)},d)),o.createElement("text",{x:s>36?r.x0:r.x1-c-8,y:r.y0,dy:s>36?"2em":"1em",dx:s>36?"0.4em":"0em",textAnchor:t._isRtl?"end":"start",fontWeight:"bold","aria-hidden":"true",fill:!i.selectedState||i.selectedState&&i.selectedNodes.has(r.index)&&i.selectedNode||i.selectedState&&!i.selectedNode?Aa:Sa,fontSize:14},r.actualValue)));n.push(v)})),n}},n.prototype._onLeave=function(e){this.state.selectedState&&this.setState({selectedState:!1,selectedNodes:new Set,selectedLinks:new Set,selectedNode:void 0})},n.prototype._onHover=function(e,t){if(t.persist(),this._onCloseCallout(),!this.state.selectedState){var n=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}(e),r=function(e){var t=[];return e.forEach((function(e){t.push(e.target),-1===t.indexOf(e.source)&&t.push(e.source)})),t}(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})}},n.prototype._onStreamHover=function(e,t){if(t.persist(),this._onCloseCallout(),!this.state.selectedState){var n=function(e){var t=new Array,n=new Set,r=new Set;for(t.push(e.source),n.add(e);t.length>0;){var o=t.shift();r.add(o),o.targetLinks&&o.targetLinks.length>0&&o.targetLinks.forEach((function(e){t.push(e.source),n.add(e)}))}for(t.push(e.target);t.length>0;)o=t.shift(),r.add(o),o.sourceLinks&&o.sourceLinks.length>0&&o.sourceLinks.forEach((function(e){t.push(e.target),n.add(e)}));return{selectedLinks:n,selectedNodes:r}}(e),r=n.selectedLinks,o=n.selectedNodes;this.setState({selectedState:!0,selectedNodes:new Set(Array.from(o).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})}},n.prototype._onStreamLeave=function(e){this.state.selectedState&&this.setState({selectedState:!1,selectedNodes:new Set,selectedLinks:new Set,selectedLink:void 0})},n.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})},n.prototype._assignNodeColors=function(){var e,t,n=this.props,r=n.colorsForNodes,o=n.borderColorsForNodes;r&&o?(e=r,t=o):(e=Ea.map((function(e){return e.fillColor})),t=Ea.map((function(e){return e.borderColor})));var i=0;this.props.data.SankeyChartData.nodes.forEach((function(n){n.color||n.borderColor?n.color&&!n.borderColor?n.borderColor="#757575":n.borderColor&&!n.color&&(n.color="#F5F5F5"):(n.color=e[i],n.borderColor=t[i]),i=(i+1)%e.length}))},n.prototype._fillStreamColors=function(e,t){var n=this.state;return n.selectedState&&n.selectedLinks.has(e.index)&&n.selectedNode?n.selectedNode.color:n.selectedState&&n.selectedLinks.has(e.index)?t:void 0},n.prototype._fillStreamBorder=function(e,t){var n=this.state;return n.selectedState?n.selectedState&&n.selectedLinks.has(e.index)&&n.selectedNode?n.selectedNode.borderColor:n.selectedState&&n.selectedLinks.has(e.index)?t:Ca:Ca},n.prototype._getOpacityStream=function(e){var t=this.state;if(t.selectedState){if(!t.selectedLinks.has(e.index))return 1;if(t.selectedLinks.has(e.index)&&!t.selectedNode)return.3}return 1},n.prototype._getOpacityStreamBorder=function(e){var t=this.state;return!t.selectedState||t.selectedLinks.has(e.index)||t.selectedNode?1:.5},n.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,o=t&&t.getBoundingClientRect().width,i=t&&t.getBoundingClientRect().height;(n!==o||r!==i)&&e.setState({containerWidth:o,containerHeight:i})}))},n.prototype._truncateText=function(e,t,n){var r=t-n,o=0,i=(0,Co.Ys)(".nodeName").append("text").attr("class","tempText").attr("font-size","10").append("tspan").text(null);if(i.text(e),null!==i.node()&&i.node().getComputedTextLength()<=r)return e;i.text(null),i.text("..."),null!==i.node()&&(o=i.node().getComputedTextLength()),i.text(null);for(var a="",s=0;s<e.length;s++)if(a+=e[s],i.text(a),null!==i.node()&&i.node().getComputedTextLength()>=r-o){a=a.slice(0,-1),a+="...";break}return i.text(null),(0,Co.td)(".tempText").remove(),a},n.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"))},n.prototype._hideTooltip=function(e){e.style("opacity",0)},n.prototype._isChartEmpty=function(){var e,t=null===(e=this.props.data)||void 0===e?void 0:e.SankeyChartData;return!(t&&t.nodes.length>0&&t.links.length>0)},n}(o.Component),ka=(0,e.z)(La,(function(e){var n,r,o,i=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"},i],links:{stroke:s||a.palette.black,fill:a?a.semanticColors.bodyBackground:"#F5F5F5",strokeWidth:3,selectors:(n={},n[Ye.$v]={fill:"#000000"},n)},nodes:{fill:"#F5F5F5",selectors:(r={},r[Ye.$v]={fill:"#000000"},r)},toolTip:(0,t.pi)((0,t.pi)({},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:(o={},o[Ye.$v]={fill:"rgb(179, 179, 179)"},o)}},marginTop:"4px",marginLeft:"8px",marginBottom:"4px",marginRight:"8px"},calloutContentRoot:{boxShadow:l.elevation4}}}));function Ta(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 wa(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=Ma)):void 0===t&&(t=Da);for(var n,r,o,i,a,s=new Ia(e),l=[s];n=l.pop();)if((o=t(n.data))&&(a=(o=Array.from(o)).length))for(n.children=o,i=a-1;i>=0;--i)l.push(r=o[i]=new Ia(o[i])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(Fa)}function Da(e){return e.children}function Ma(e){return Array.isArray(e)?e[1]:null}function Pa(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Fa(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Ia(e){this.data=e,this.depth=this.height=0,this.parent=null}function Na(e,t){return e.parent===t.parent?1:2}function Va(e){var t=e.children;return t?t[0]:e.t}function Oa(e){var t=e.children;return t?t[t.length-1]:e.t}function Ha(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 Ba(e,t,n){return e.a.parent===t.parent?e.a:n}function Ra(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}Ia.prototype=wa.prototype={constructor:Ia,count:function(){return this.eachAfter(Ta)},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,o,i=this,a=[i],s=[],l=-1;i=a.pop();)if(s.push(i),n=i.children)for(r=0,o=n.length;r<o;++r)a.push(n[r]);for(;i=s.pop();)e.call(t,i,++l,this);return this},eachBefore:function(e,t){for(var n,r,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),n=o.children)for(r=n.length-1;r>=0;--r)i.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,o=r&&r.length;--o>=0;)n+=r[o].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(),o=null;for(e=n.pop(),t=r.pop();e===t;)o=e,e=n.pop(),t=r.pop();return o}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var o=r.length;e!==n;)r.splice(o,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 wa(this).eachBefore(Pa)},[Symbol.iterator]:function*(){var e,t,n,r,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(n=0,r=t.length;n<r;++n)i.push(t[n])}while(i.length)}},Ra.prototype=Object.create(Ia.prototype);var za,Wa,Ya=(0,i.y)(),Za=function(e){function n(t,n,r,o,i,a){void 0===o&&(o=[]),void 0===i&&(i=[]);var s=e.call(this,t,r,o,i)||this;return s.composition=n,s._treeTraversal=a,s}return(0,t.ZT)(n,e),n.prototype.createTree=function(e,t){var n,r,o,i,a,s,l=(e=e<65?65:e>90?90:e)||75,c=wa(this.treeData,(function(e){return e.children})),u=(null==c?void 0:c.height)+1;(function(){var e=Na,t=1,n=1,r=null;function o(o){var l=function(e){for(var t,n,r,o,i,a=new Ra(e,0),s=[a];t=s.pop();)if(r=t._.children)for(t.children=new Array(i=r.length),o=i-1;o>=0;--o)s.push(n=t.children[o]=new Ra(r[o],o)),n.parent=t;return(a.parent=new Ra(null,0)).children=[a],a}(o);if(l.eachAfter(i),l.parent.m=-l.z,l.eachBefore(a),r)o.eachBefore(s);else{var c=o,u=o,d=o;o.eachBefore((function(e){e.x<c.x&&(c=e),e.x>u.x&&(u=e),e.depth>d.depth&&(d=e)}));var h=c===u?1:e(c,u)/2,p=h-c.x,f=t/(u.x+h+p),g=n/(d.depth||1);o.eachBefore((function(e){e.x=(e.x+p)*f,e.y=e.depth*g}))}return o}function i(t){var n=t.children,r=t.parent.children,o=t.i?r[t.i-1]:null;if(n){!function(e){for(var t,n=0,r=0,o=e.children,i=o.length;--i>=0;)(t=o[i]).z+=n,t.m+=n,n+=t.s+(r+=t.c)}(t);var i=(n[0].z+n[n.length-1].z)/2;o?(t.z=o.z+e(t._,o._),t.m=t.z-i):t.z=i}else o&&(t.z=o.z+e(t._,o._));t.parent.A=function(t,n,r){if(n){for(var o,i=t,a=t,s=n,l=i.parent.children[0],c=i.m,u=a.m,d=s.m,h=l.m;s=Oa(s),i=Va(i),s&&i;)l=Va(l),(a=Oa(a)).a=t,(o=s.z+d-i.z-c+e(s._,i._))>0&&(Ha(Ba(s,t,r),t,o),c+=o,u+=o),d+=s.m,c+=i.m,h+=l.m,u+=a.m;s&&!Oa(a)&&(a.t=s,a.m+=d-u),i&&!Va(l)&&(l.t=i,l.m+=c-h,r=t)}return r}(t,o,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 o.separation=function(t){return arguments.length?(e=t,o):e},o.size=function(e){return arguments.length?(r=!1,t=+e[0],n=+e[1],o):r?null:[t,n]},o.nodeSize=function(e){return arguments.length?(r=!0,t=+e[0],n=+e[1],o):r?[t,n]:null},o})().nodeSize([l,l/1.5]).separation((function(e,t){return e.parent===c&&t.parent===c?3.5:1}))(c).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?c.each((function(e){p(e)})):c.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: ".concat(x.parentID,"\n ").concat(d[x.parentID].dataName,"\n ").concat(d[x.parentID].subName);if(!x.children&&!v.has(x.parentID)&&3===u){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 S=null===(n=d[x.parentID])||void 0===n?void 0:n.children,A=(null===(r=d[x.parentID])||void 0===r?void 0:r.x)-C/2-10,L=(null===(o=d[x.parentID])||void 0===o?void 0:o.x)+C/2+10,k=null===(i=d[x.parentID])||void 0===i?void 0:i.x,T=null===(a=S[0])||void 0===a?void 0:a.y,w=0;w<S.length;++w){var D=S[w];void 0!==this.composition?0===this.composition?(this.addNodeShapetoSVG(D.data.name,D.data.subname,D.data.bodytext,D.data.metricName,w%2==0?1===S.length?k:A:L,T,D.data.fill,1===S.length?f:C,g,D.id,b),w%2==1&&(T+=E+m)):(this.addNodeShapetoSVG(D.data.name,D.data.subname,D.data.bodytext,D.data.metricName,k,T,D.data.fill,f,g,D.id,b),T+=E+m):S.length>2?(this.addNodeShapetoSVG(D.data.name,D.data.subname,D.data.bodytext,D.data.metricName,w%2==0?A:L,T,D.data.fill,1===S.length?f:C,g,D.id,b),w%2==1&&(T+=E+m)):(this.addNodeShapetoSVG(D.data.name,D.data.subname,D.data.bodytext,D.data.metricName,k,T,D.data.fill,f,g,D.id,b),T+=E+m)}}if((x.children||u<=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)){S=null===(s=d[x.id])||void 0===s?void 0:s.children;var M=(0,Hi.Z)(S,(function(e){return e.x})),P=(0,ri.Z)(S,(function(e){return e.x}));this.addLinktoSVG(x.id,x.x,x.y,M,x.children[0].y,!1,f,g,m,P)}}},n}(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 o,i=e.split(/\s+/).reverse(),a="",s=(0,Co.Ys)(".svgTree").append("text").attr("class","tempText").append("tspan").text(null);r&&s.attr("class",r);for(var l=[];a=i.pop();)if(l.push(a),s.text(l.join(" ")+" "),null!==s.node()&&s.node().getComputedTextLength()>t-n){l.pop(),l.push("...");break}return o=l.join(" ")+" ",s.text(null),(0,Co.td)(".tempText").remove(),o},e.prototype.addNodeShapetoSVG=function(e,t,n,r,i,a,s,l,c,u,d){var h="nodeId: ".concat(u," \nnodeMainText: ").concat(e,"\nsubText ").concat(t," ").concat(d),p=i-l/2;!r&&0===u&&n||this._nodeElements.push(o.createElement("rect",{width:l,height:c,x:p,y:a,tabIndex:0,role:"text","data-is-focusable":!0,"aria-label":h,className:this.styleClassNames.rectNode,stroke:s,key:"".concat(u).concat(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?o.createElement("tspan",{className:this.styleClassNames.rectMetricText,dy:"1.4em",x:p+l/2},r):n?o.createElement(o.Fragment,null,o.createElement("tspan",{className:this.styleClassNames.rectSubText,dy:"1.4em",x:p+l/2},t),o.createElement("tspan",{className:this.styleClassNames.rectBodyText,dy:"1.4em",x:p+l/2},n)):o.createElement("tspan",{className:this.styleClassNames.rectSubText,dy:"1.4em",x:p+l/2},t);t||r||n?this._nodeElements.push(o.createElement("text",{textAnchor:"middle",className:r?this.styleClassNames.rectSubText:this.styleClassNames.rectText,dy:r?a+c/2.5:a+c/2,x:p+l/2,key:"".concat(u).concat(this.styleClassNames.rectText)},e,f)):this._nodeElements.push(o.createElement("text",{textAnchor:"middle",className:this.styleClassNames.rectMetricText,dy:a+c/1.6,x:p+l/2,key:"".concat(u).concat(this.styleClassNames.rectText)},e))},e.prototype.createPathLink=function(e,t,n,r,o,i,a,s,l){var c="M".concat(n-i/2,",").concat(r-s," H").concat(l+i/2," M").concat(e,",").concat(r-s,"\n V").concat(t+a+s/2),u="M".concat(e,",").concat(t+a+s/2," V").concat(t+5*s,"\n H").concat(e-i/2," H").concat(e+i/2);return o?u:c},e.prototype.addLinktoSVG=function(e,t,n,r,i,a,s,l,c,u){void 0===u&&(u=0),this._linkElements.push(o.createElement("path",{className:this.styleClassNames.link,d:this.createPathLink(t,n,r,i,a,s,l,c,u),key:"".concat(e).concat(this.styleClassNames.link)}))},e}()),qa=function(e){function n(t){var n,r,o,i,a,s=this;return(s=e.call(this,t)||this)._nodeElements=[],s._linkElements=[],s._margin={top:(null===(n=s.props.margins)||void 0===n?void 0:n.top)||30,bottom:(null===(r=s.props.margins)||void 0===r?void 0:r.bottom)||30,left:(null===(o=s.props.margins)||void 0===o?void 0:o.left)||50,right:(null===(i=s.props.margins)||void 0===i?void 0:i.right)||20},s._width=s.props.width||1500,s._height=s.props.height||700,s._treeData=s.props.treeData,s._composition=null===(a=s.props)||void 0===a?void 0:a.composition,s._treeTraversal=s.props.treeTraversal,s.state={_width:s._width,_height:s._height},s}return(0,t.ZT)(n,e),n.prototype.componentDidMount=function(){var e=this.props,t=e.theme,n=e.className,r=e.styles;this._classNames=Ya(r,{theme:t,className:n}),this.createTreeChart(),this.setState({_width:this.props.width||1500,_height:this.props.height||700})},n.prototype.componentDidUpdate=function(e){if(e.layoutWidth!==this.props.layoutWidth){var t=(0,Co.td)("text"),n=(0,Co.td)("rect"),r=(0,Co.td)("path");0===this._nodeElements.length&&0===this._linkElements.length&&(t.remove(),n.remove(),r.remove()),this.createTreeChart()}},n.prototype.createTreeChart=function(){var e=[],t=[],n=new Za(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},n.prototype.render=function(){var e;return o.createElement(xn,null,o.createElement("div",{className:null===(e=this._classNames)||void 0===e?void 0:e.root},o.createElement("svg",{className:"svgTree",width:this.state._width-this._margin.left-this._margin.right,height:this.state._height-this._margin.top-this._margin.bottom},o.createElement("g",{className:"svgNode"},this._nodeElements.map((function(e){return e}))),o.createElement("g",{className:"svgLink"},this._linkElements.map((function(e){return e}))))))},n}(o.Component),Xa=(0,e.z)(qa,(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:(0,t.pi)({fill:"black"},e.theme.fonts.large),rectSubText:(0,t.pi)({fill:"#484644"},e.theme.fonts.medium),rectBodyText:(0,t.pi)({fill:"#808080"},e.theme.fonts.xSmall),rectMetricText:(0,t.pi)({fill:"#000000"},e.theme.fonts.xLarge)}}));!function(e){e[e.long=1]="long",e[e.compact=0]="compact"}(za||(za={})),function(e){e[e.preOrder=1]="preOrder",e[e.levelOrder=0]="levelOrder"}(Wa||(Wa={}));var Ua,ja=(0,i.y)(),Ga=function(e){function n(t){var n=e.call(this,t)||this;return n.margin={top:2,right:0,bottom:0,left:0},n._isRTL=(0,a.zg)(),n.state={_points:null,_width:n.props.width||80,_height:n.props.height||20,_valueTextWidth:n.props.valueTextWidth||80},n._emptyChartId=f("_SparklineChart_empty"),n}return(0,t.ZT)(n,e),n.prototype.componentDidMount=function(){var e=this;if(!this._isChartEmpty()){var t=li().x((function(t){return e.x(t.x)})).y0(this.state._height).y1((function(t){return e.y(t.y)})).curve(Ao);this.area=t;var n=To().x((function(t){return e.x(t.x)})).y((function(t){return e.y(t.y)})).curve(Ao);this.line=n;var r=this.props.data.lineChartData[0].data,o=function(e,t){let n,r;if(void 0===t)for(const t of e)null!=t&&(void 0===n?t>=t&&(n=r=t):(n>t&&(n=t),r<t&&(r=t)));else{let o=-1;for(let i of e)null!=(i=t(i,++o))&&(void 0===n?i>=i&&(n=r=i):(n>i&&(n=i),r<i&&(r=i)))}return[n,r]}(r,(function(e){return e.x})),i=o[0],a=o[1];this.x=(0,Bi.Z)().domain([i,a]).range([this.margin.left,this.state._width-this.margin.right]),this.y=(0,Bi.Z)().domain([0,(0,ri.Z)(r,(function(e){return e.y}))]).range([this.state._height-this.margin.bottom,this.margin.top]),this.setState({_points:r})}},n.prototype.drawSparkline=function(){return o.createElement(o.Fragment,null,o.createElement("path",{className:"line",d:this.line(this.state._points),fill:"transparent",opacity:1,strokeWidth:2,stroke:this.props.data.lineChartData[0].color}),o.createElement("path",{className:"area",d:this.area(this.state._points),opacity:1,fillOpacity:.2,fill:this.props.data.lineChartData[0].color,role:"img","aria-label":"Sparkline with label ".concat(this.props.data.lineChartData[0].legend)}))},n.prototype.render=function(){var e=ja(this.props.styles,{theme:this.props.theme});return this._isChartEmpty()?o.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):o.createElement(xn,{direction:Gt.horizontal,isCircularNavigation:!0,className:e.inlineBlock},o.createElement("div",{className:e.inlineBlock},this.state._width>=50&&this.state._height>=16?o.createElement("svg",{width:this.state._width,height:this.state._height,"data-is-focusable":!0},this.state._points?this.drawSparkline():null):o.createElement(o.Fragment,null),this.props.showLegend&&this.props.data.lineChartData[0].legend?o.createElement("svg",{width:this.state._valueTextWidth,height:this.state._height,"data-is-focusable":!0},o.createElement("text",{x:"0%",textAnchor:this._isRTL?"end":"start",dx:8,y:"100%",dy:-5,className:e.valueText},this.props.data.lineChartData[0].legend)):o.createElement(o.Fragment,null)))},n.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.lineChartData&&this.props.data.lineChartData.length>0&&0===this.props.data.lineChartData.filter((function(e){return 0===e.data.length})).length)},n}(o.Component),Ka=(0,e.z)(Ga,(function(e){return{inlineBlock:{display:"inline"},valueText:(0,t.pi)((0,t.pi)({},e.theme.fonts.smallPlus),{fill:e.theme.palette.black})}})),$a=(0,i.y)(),Ja=function(e){function n(n){var r=e.call(this,n)||this;return r._isRtl=(0,a.zg)(),r._getMargins=function(e){r.margins=e},r._renderContentForOnlyBars=function(e){var t,n,i,a=r.props.useSingleColor,s=void 0!==a&&a,l=0;return r.props.data.forEach((function(t,n){t.y===e.y&&(l=n)})),i=s?r.props.colors?r._createColors()(1):vo(1,0,null===(t=r.props.theme)||void 0===t?void 0:t.isInverted):e.color?e.color:r.props.colors?r._createColors()(e.x):vo(l,0,null===(n=r.props.theme)||void 0===n?void 0:n.isInverted),o.createElement(o.Fragment,null,o.createElement($t.ChartHoverCard,{XValue:e.xAxisCalloutData||e.x.toString(),Legend:e.legend,YValue:e.yAxisCalloutData||e.y,color:i,culture:r.props.culture}))},r._renderCallout=function(e){return e?r._renderContentForOnlyBars(e):null},r._getCustomizedCallout=function(){return r.props.onRenderCalloutPerDataPoint?r.props.onRenderCalloutPerDataPoint(r.state.dataPointCalloutProps,r._renderCallout):null},r._getGraphData=function(e,t,n,o,i,a){return r._bars=r._yAxisType===Kt.OH.NumericAxis?r._createNumericBars(n,o,i,a):r._createStringBars(n,o,i,a)},r._refCallback=function(e,t){r._refArray.push({index:t,refElement:e})},r._getCalloutContentForBar=function(e){var t,n,o,i=[],a=r.props.useSingleColor,s=void 0!==a&&a,l=r.props.data,c=l.filter((function(t){return t.y===e.y})),u=0;return l.forEach((function(t,n){t.y===e.y&&(u=n)})),o=s?r.props.colors?r._createColors()(1):vo(1,0,null===(t=r.props.theme)||void 0===t?void 0:t.isInverted):c[0].color?c[0].color:r.props.colors?r._createColors()(c[0].x):vo(u,0,null===(n=r.props.theme)||void 0===n?void 0:n.isInverted),i.push({legend:c[0].legend,y:c[0].x,color:o,data:c[0].yAxisCalloutData,yAxisCalloutData:c[0].yAxisCalloutData}),{YValueHover:i,hoverXValue:e.yAxisCalloutData||e.y.toString()}},r._onBarLeave=function(){},r._handleChartMouseLeave=function(){r._calloutAnchorPoint=null,r.setState({isCalloutVisible:!1,activeXdataPoint:null,YValueHover:[],hoverXValue:""})},r._onBarFocus=function(e,t,n){if(!1===r.state.isLegendSelected||r.state.isLegendSelected&&r.state.selectedLegendTitle===e.legend){var o=r._getCalloutContentForBar(e),i=o.YValueHover,a=o.hoverXValue;r._refArray.forEach((function(o,s){t===s&&r.setState({refSelected:o.refElement,isCalloutVisible:!0,selectedLegendTitle:e.legend,dataForHoverCard:e.x,color:r.props.useSingleColor?n:e.color,xCalloutValue:e.yAxisCalloutData||e.y.toString(),yCalloutValue:e.xAxisCalloutData||e.x.toString(),dataPointCalloutProps:e,activeXdataPoint:e.x,YValueHover:i,hoverXValue:a,callOutAccessibilityData:e.callOutAccessibilityData})}))}},r._getScales=function(e,t,n){if(n){var o=(0,ri.Z)(r._points,(function(e){return e.x})),i=(0,ri.Z)(r._points,(function(e){return e.y}));return{xBarScale:(0,Bi.Z)().domain(r._isRtl?[o,0]:[0,o]).nice().range([r.margins.left,t-r.margins.right]),yBarScale:a=(0,Bi.Z)().domain([0,i]).range([e-r.margins.bottom,r.margins.top])}}o=(0,ri.Z)(r._points,(function(e){return e.x}));var a=(0,zi.Z)().domain(r._yAxisLabels).range([e-r.margins.bottom-r._barHeight/2,r.margins.top+r._barHeight/2]).padding(r.props.yAxisPadding||0);return{xBarScale:(0,Bi.Z)().domain(r._isRtl?[o,0]:[0,o]).nice().range([r.margins.left,t-r.margins.right]),yBarScale:a}},r._closeCallout=function(){r.setState({isCalloutVisible:!1})},r._getLegendData=function(e,n){var i=r.props.useSingleColor,a=[];return e.forEach((function(e,t){var n,o=i?r.props.colors?r._createColors()(1):vo(1,0,null===(n=r.props.theme)||void 0===n?void 0:n.isInverted):e.color,s={title:e.legend,color:o,action:function(){r._onLegendClick(e.legend)},hoverAction:function(){r._handleChartMouseLeave(),r._onLegendHover(e.legend)},onMouseOutAction:function(e){r._onLegendLeave(e)}};a.push(s)})),o.createElement(Ar,(0,t.pi)({legends:a,enabledWrapLines:r.props.enabledLegendsWrapLines,overflowProps:r.props.legendsOverflowProps,focusZonePropsInHoverCard:r.props.focusZonePropsForLegendsInHoverCard,overflowText:r.props.legendsOverflowText},r.props.legendProps))},r._getAxisData=function(e){if(e&&e.yAxisDomainValues.length){var t=e.yAxisDomainValues;r._xMax=Math.max(t[t.length-1],r.props.xMaxValue||0)}},r._getAriaLabel=function(e){var t,n=e.xAxisCalloutData||e.x,r=e.yAxisCalloutData||e.y;return(null===(t=e.callOutAccessibilityData)||void 0===t?void 0:t.ariaLabel)||"".concat(n,". ")+"".concat(r,".")},r.state={color:"",dataForHoverCard:0,isCalloutVisible:!1,isLegendSelected:!1,isLegendHovered:!1,refSelected:null,selectedLegendTitle:"",xCalloutValue:"",yCalloutValue:"",activeXdataPoint:null,YValueHover:[],hoverXValue:""},r._calloutId=f("callout"),r._tooltipId=f("HBCWATooltipID_"),r._refArray=[],r._xAxisType=r.props.data&&r.props.data.length>0?(0,Kt.SY)(r.props.data[0].x,!0):Kt.xl.NumericAxis,r._yAxisType=r.props.data&&r.props.data.length>0?(0,Kt.SY)(r.props.data[0].y,!1):Kt.OH.StringAxis,r}return(0,t.ZT)(n,e),n.prototype.render=function(){var e=this;this._adjustProps();var n=(0,t.ev)([],this._points,!0).reverse();this._yAxisLabels=n.map((function(e){return e.y})),this._xMax=Math.max((0,ri.Z)(this._points,(function(e){return e.x})),this.props.xMaxValue||0);var r=this._getLegendData(this._points,this.props.theme.palette);this._classNames=$a(this.props.styles,{theme:this.props.theme,legendColor:this.state.color});var i=(0,t.pi)((0,t.pi)({isCalloutVisible:this.state.isCalloutVisible,directionalHint:_.topAutoEdge,id:"toolTip".concat(this._calloutId),target:this.state.refSelected,isBeakVisible:!1,gapSpace:15,color:this.state.color,legend:this.state.selectedLegendTitle,XValue:this.state.xCalloutValue,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0},this.props.calloutProps),(0,Kt.ey)(this.state.callOutAccessibilityData)),a={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return o.createElement(Oo,(0,t.pi)({},this.props,{points:this._points,chartType:Kt.$X.HorizontalBarChartWithAxis,xAxisType:this._xAxisType,yAxisType:this._yAxisType,stringDatasetForYAxisDomain:this._yAxisLabels,calloutProps:i,tickParams:a,legendBars:r,barwidth:this._barHeight,focusZoneDirection:Gt.vertical,customizedCallout:this._getCustomizedCallout(),getmargins:this._getMargins,getGraphData:this._getGraphData,getAxisData:this._getAxisData,onChartMouseLeave:this._handleChartMouseLeave,children:function(t){return o.createElement(o.Fragment,null,o.createElement("g",null,e._bars))}}))},n.prototype._adjustProps=function(){this._points=this.props.data||[],this._barHeight=this.props.barHeight||32;var e=this.props.theme.palette;this._colors=this.props.colors||[e.blueLight,e.blue,e.blueMid,e.blueDark]},n.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,o=n.colors;return o&&o.length>0?o[0]:r.palette.blueLight};for(var r=[],o=0;o<this._colors.length;o++)r.push(t*o*this._xMax);return(0,Bi.Z)().domain(r).range(this._colors)},n.prototype._onBarHover=function(e,t,n){n.persist();var r=this._getCalloutContentForBar(e),o=r.YValueHover,i=r.hoverXValue;(!1===this.state.isLegendSelected||this.state.isLegendSelected&&this.state.selectedLegendTitle===e.legend)&&this._calloutAnchorPoint!==e&&(this._calloutAnchorPoint=e,this.setState({refSelected:n,isCalloutVisible:!0,dataForHoverCard:e.x,selectedLegendTitle:e.legend,color:this.props.useSingleColor?t:e.color,xCalloutValue:e.yAxisCalloutData||e.y.toString(),yCalloutValue:e.xAxisCalloutData||e.x.toString(),dataPointCalloutProps:e,activeXdataPoint:e.x,YValueHover:o,hoverXValue:i,callOutAccessibilityData:e.callOutAccessibilityData}))},n.prototype._createNumericBars=function(e,n,r,i){var a=this,s=this.props.useSingleColor,l=void 0!==s&&s,c=this._getScales(e,n,!0),u=c.xBarScale,d=c.yBarScale,h=(0,t.ev)([],this._points,!0);h.sort((function(e,t){var n="number"==typeof e.y?e.y:parseFloat(e.y);return("number"==typeof t.y?t.y:parseFloat(t.y))-n}));var p=h.map((function(e,t){var r,i,s,c=!0;return(a.state.isLegendHovered||a.state.isLegendSelected)&&(c=a.state.selectedLegendTitle===e.legend),a._classNames=$a(a.props.styles,{theme:a.props.theme,legendColor:a.state.color,shouldHighlight:c}),Math.max(d(e.y),0)<1?o.createElement(o.Fragment,{key:e.x}," "):(s=l?a.props.colors?a._createColors()(1):vo(1,0,null===(r=a.props.theme)||void 0===r?void 0:r.isInverted):a.props.colors?a._createColors()(e.x):vo(t,0,null===(i=a.props.theme)||void 0===i?void 0:i.isInverted),o.createElement("rect",{key:e.y,x:a._isRtl?u(e.x):a.margins.left,className:a._classNames.opacityChangeOnHover,y:d(e.y)-a._barHeight/2,"data-is-focusable":!0,width:a._isRtl?n-a.margins.right-Math.max(u(e.x),0):Math.max(u(e.x),0)-a.margins.left,height:a._barHeight,ref:function(t){a._refCallback(t,e.legend)},onClick:e.onClick,onMouseOver:a._onBarHover.bind(a,e,s),"aria-label":a._getAriaLabel(e),role:"img","aria-labelledby":"toolTip".concat(a._calloutId),onMouseLeave:a._onBarLeave,onFocus:a._onBarFocus.bind(a,e,t,s),onBlur:a._onBarLeave,fill:e.color&&!l?e.color:s}))}));return p},n.prototype._tooltipOfYAxislabels=function(e){var t=this,n=e.tooltipCls,r=e.yAxis,o=e.id;if(null===r)return null;for(var i=(0,Co.Ys)("body").append("div").attr("id",o).attr("class",n).style("opacity",0),a=r.selectAll("#BaseSpan")._groups[0],s=a&&Object.keys(a).length,l=[],c=0;c<s;c++){var u=a[c].dataset&&Object.values(a[c].dataset)[0];l.push(u)}var d=r.selectAll(".tick")._groups[0],h=d&&Object.keys(d).length,p=function(e){var n=d[e];(0,Co.Ys)(n).on("mouseover",(function(n){t.state.tooltipElement||(i.style("opacity",.9),i.html(l[e]).style("left",Co.B.pageX+"px").style("top",Co.B.pageY-28+"px"))})).on("mouseout",(function(e){i.style("opacity",0)}))};for(c=0;c<h;c++)p(c)},n.prototype._createStringBars=function(e,t,n,r){var i=this,a=this._getScales(e,t,!1),s=a.xBarScale,l=a.yBarScale,c=this.props.useSingleColor,u=void 0!==c&&c,d=this._points.map((function(e,n){var r,a,c;return Math.max(l(e.y),0)<1?o.createElement(o.Fragment,{key:e.x}," "):(c=u?i.props.colors?i._createColors()(1):vo(1,0,null===(r=i.props.theme)||void 0===r?void 0:r.isInverted):i.props.colors?i._createColors()(e.x):vo(n,0,null===(a=i.props.theme)||void 0===a?void 0:a.isInverted),o.createElement("rect",{transform:"translate(0,".concat(.5*(l.bandwidth()-i._barHeight),")"),key:e.x,x:i._isRtl?s(e.x):i.margins.left,y:l(e.y),width:i._isRtl?t-i.margins.right-Math.max(s(e.x),0):Math.max(s(e.x),0)-i.margins.left,height:i._barHeight,"aria-labelledby":"toolTip".concat(i._calloutId),"aria-label":i._getAriaLabel(e),role:"img",ref:function(t){i._refCallback(t,e.legend)},onClick:e.onClick,onMouseOver:i._onBarHover.bind(i,e,c),onMouseLeave:i._onBarLeave,onBlur:i._onBarLeave,"data-is-focusable":!0,onFocus:i._onBarFocus.bind(i,e,n,c),fill:e.color&&!u?e.color:c}))}));if(!this.props.showYAxisLablesTooltip)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(e){}if(this.props.showYAxisLablesTooltip){var h=(0,Co.Ys)(r).call(l);if(!this.state.tooltipElement)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(e){}var p={tooltipCls:this._classNames.tooltip,id:this._tooltipId,yAxis:h};h&&this._tooltipOfYAxislabels(p)}return d},n.prototype._onLegendClick=function(e){this.state.isLegendSelected?this.state.selectedLegendTitle===e?this.setState({isLegendSelected:!1,selectedLegendTitle:e}):this.setState({selectedLegendTitle:e}):this.setState({isLegendSelected:!0,selectedLegendTitle:e})},n.prototype._onLegendHover=function(e){!1===this.state.isLegendSelected&&this.setState({isLegendHovered:!0,selectedLegendTitle:e})},n.prototype._onLegendLeave=function(e){(e||!1===this.state.isLegendSelected)&&this.setState({isLegendHovered:!1,selectedLegendTitle:"",isLegendSelected:!e&&this.state.isLegendSelected})},n}(o.Component),Qa=(0,e.z)(Ja,(function(e){var n=e.shouldHighlight,r=e.theme;return{opacityChangeOnHover:{opacity:n?"":"0.1"},xAxisTicks:[],tooltip:(0,t.pi)((0,t.pi)({},r.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:r.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"})}}));!function(e){e.Percentage="percentage",e.Fraction="fraction"}(Ua||(Ua={}));var es=[{minRadius:52,arcWidth:12,fontSize:20},{minRadius:70,arcWidth:16,fontSize:24},{minRadius:88,arcWidth:20,fontSize:32},{minRadius:106,arcWidth:24,fontSize:32},{minRadius:124,arcWidth:28,fontSize:40},{minRadius:142,arcWidth:32,fontSize:40}],ts=(0,i.y)(),ns=function(e){function n(n){var r=e.call(this,n)||this;return r._getMargins=function(){var e=r.props,t=e.hideMinMax;return{left:16+(t?0:40),right:16+(t?0:40),top:16+(e.chartTitle?27:2),bottom:16+(e.sublabel?20:0)}},r._getStylesBasedOnBreakpoint=function(){for(var e=es.length-1;e>=0;e-=1)if(r._outerRadius>=es[e].minRadius)return{arcWidth:es[e].arcWidth,chartValueSize:es[e].fontSize};return{arcWidth:es[0].arcWidth,chartValueSize:es[0].fontSize}},r._initProps=function(){var e=r.props,t=e.minValue,n=void 0===t?0:t,o=e.maxValue,i=e.theme,a=Array.from(r.props.segments),s=n;a.forEach((function(e,t){s+=e.size,e.color=void 0!==e.color?_o(e.color,i.isInverted):vo(t,0,i.isInverted)})),void 0!==o&&s<o&&(a.push({legend:"Unknown",size:o-s,color:i.palette.neutralLight}),s=o);var l=no().padAngle(2/r._outerRadius).padRadius(r._outerRadius),c=r._isRTL?Array.from(a).reverse():a,u=-Math.PI/2,d=c.map((function(e,t){var o=u+e.size/(s-n)*Math.PI,i=l({innerRadius:r._innerRadius,outerRadius:r._outerRadius,startAngle:u,endAngle:o});return u=o,{d:i,segmentIndex:r._isRTL?a.length-1-t:t}}));return{minValue:n,maxValue:s,segments:a,arcs:d}},r._renderNeedle=function(){var e=r._sweepFraction[0]/r._sweepFraction[1]*180,t=r._isRTL?180-e:e,n=r._outerRadius-r._innerRadius+4;return o.createElement("g",{transform:"rotate(".concat(t,", 0, 0)")},o.createElement("path",{d:"\n M 0,".concat(-4,"\n L ").concat(-n,",").concat(-2,"\n A ").concat(2,",").concat(2,",0,0,0,").concat(-n,",").concat(2,"\n L 0,").concat(4,"\n A ").concat(4,",").concat(4,",0,0,0,0,").concat(-4,"\n "),strokeWidth:2,className:r._classNames.needle,transform:"translate(".concat(2-r._innerRadius,")"),"data-is-focusable":!0,onFocus:function(e){return r._handleFocus(e,"Needle")},onBlur:r._handleBlur,onMouseEnter:function(e){return r._handleMouseOver(e,"Needle")},onMouseMove:function(e){return r._handleMouseOver(e,"Needle")}}))},r._renderLegends=function(){if(r.props.hideLegend)return null;var e=r._segments.map((function(e){return{title:e.legend,color:e.color,action:function(){r.state.selectedLegend===e.legend?r.setState({selectedLegend:""}):r.setState({selectedLegend:e.legend})},hoverAction:function(){r.setState({hoveredLegend:e.legend})},onMouseOutAction:function(){r.setState({hoveredLegend:""})}}}));return o.createElement("div",{className:r._classNames.legendsContainer},o.createElement(Ar,(0,t.pi)({legends:e,centerLegends:!0},r.props.legendProps)))},r._legendHighlighted=function(e){return r.state.selectedLegend===e||""===r.state.selectedLegend&&r.state.hoveredLegend===e},r._noLegendHighlighted=function(){return""===r.state.selectedLegend&&""===r.state.hoveredLegend},r._handleFocus=function(e,t){r._showCallout(e.target,t,!0)},r._handleBlur=function(){r._hideCallout(!0)},r._handleMouseOver=function(e,t){r._showCallout(e.target,t,!1)},r._handleMouseOut=function(){r._hideCallout(!1)},r._handleCalloutDismiss=function(){r._hideCallout(!1)},r._showCallout=function(e,n,o){if(r._calloutAnchor!==n){r._calloutAnchor=n;var i="Current value is "+(r.props.chartValueFormat===Ua.Fraction?"".concat((r._sweepFraction[0]/r._sweepFraction[1]*100).toFixed(),"%"):"".concat(r._sweepFraction[0],"/").concat(r._sweepFraction[1])),a=r._minValue,s=r._segments.map((function(e,t){var n={legend:e.legend,y:"".concat(a+(t>0?1:0)," - ").concat(a+e.size),color:e.color};return a+=e.size,n}));r.setState((0,t.pi)({calloutTarget:e,isCalloutVisible:["Needle","Chart value"].includes(n)||""===r.state.selectedLegend||r.state.selectedLegend===n,hoverXValue:i,hoverYValues:s},o?{focusedElement:n}:{}))}},r._hideCallout=function(e){r._calloutAnchor="",r.setState((0,t.pi)({calloutTarget:null,isCalloutVisible:!1,hoverXValue:"",hoverYValues:[]},e?{focusedElement:""}:{}))},r._wrapContent=function(e,t,n){var r=(0,Co.Ys)("#".concat(t));if(r.text(e),!r.node())return!1;for(var o=!1,i=r.node().getComputedTextLength();i>n&&e.length>0;)e=e.slice(0,-1),r.text(e+"..."),o=!0,i=r.node().getComputedTextLength();return o},r._multiValueCallout=function(e){var n=r._yValueHoverSubCountsExists(e.YValueHover);return o.createElement("div",{className:r._classNames.calloutContentRoot},o.createElement("div",{className:r._classNames.calloutDateTimeContainer,style:n?{marginBottom:"11px"}:{}},o.createElement("div",(0,t.pi)({className:r._classNames.calloutContentX},(0,Kt.ey)(e.xAxisCalloutAccessibilityData,"text",!1)),(0,Kt.Ts)(e.hoverXValue,r.props.culture))),o.createElement("div",{className:r._classNames.calloutInfoContainer,style:n?{display:"flex"}:{}},e.YValueHover&&e.YValueHover.map((function(e,i,a){var s=i+1===a.length,l=e.shouldDrawBorderBottom,c=void 0!==l&&l;return o.createElement("div",(0,t.pi)({},(0,Kt.ey)(e.callOutAccessibilityData,"text",!1),{key:"callout-content-".concat(i),style:n?(0,t.pi)({display:"inline-block"},c&&{borderBottom:"1px solid ".concat(r.props.theme.semanticColors.menuDivider),paddingBottom:"10px"}):(0,t.pi)({},c&&{borderBottom:"1px solid ".concat(r.props.theme.semanticColors.menuDivider),paddingBottom:"10px"})}),r._getCalloutContent(e,i,n,s))})),!!e.descriptionMessage&&o.createElement("div",{className:r._classNames.descriptionMessage},e.descriptionMessage)))},r._margins=r._getMargins(),r._legendsHeight=r.props.hideLegend?0:24,r.state={hoveredLegend:"",selectedLegend:"",focusedElement:"",calloutTarget:null,isCalloutVisible:!1,hoverXValue:"",hoverYValues:[],width:140+r._margins.left+r._margins.right,height:70+r._margins.top+r._margins.bottom+r._legendsHeight},r._isRTL=(0,a.zg)(),r._calloutAnchor="",r}return(0,t.ZT)(n,e),n.prototype.componentDidMount=function(){this._rootElem&&this.setState({width:this._rootElem.clientWidth,height:this._rootElem.clientHeight})},n.prototype.render=function(){var e=this;this._margins=this._getMargins(),this._legendsHeight=this.props.hideLegend?0:24;var n=this.props.width||this.state.width,r=this.props.height||this.state.height;this._outerRadius=Math.min((n-(this._margins.left+this._margins.right))/2,r-(this._margins.top+this._margins.bottom+this._legendsHeight));var i=this._getStylesBasedOnBreakpoint(),a=i.arcWidth,s=i.chartValueSize;this._innerRadius=this._outerRadius-a;var l=this._initProps(),c=l.minValue,u=l.maxValue,d=l.segments,h=l.arcs;return this._minValue=c,this._segments=d,this._sweepFraction=[this.props.chartValue-this._minValue,u-this._minValue],this._classNames=ts(this.props.styles,{theme:this.props.theme,className:this.props.className,chartWidth:n,chartHeight:r-this._legendsHeight,chartValueSize:s}),o.createElement("div",{className:this._classNames.root,ref:function(t){return e._rootElem=t}},o.createElement(xn,{direction:Gt.horizontal},o.createElement("svg",{className:this._classNames.chart,"aria-label":"This is a gauge chart with ".concat(this._segments.length," section represented."),onMouseLeave:this._handleMouseOut},o.createElement("g",{transform:"translate(".concat(n/2,", ").concat(r-(this._margins.bottom+this._legendsHeight),")")},this.props.chartTitle&&o.createElement("text",{x:0,y:-(this._outerRadius+11),textAnchor:"middle",className:this._classNames.chartTitle},this.props.chartTitle),!this.props.hideMinMax&&o.createElement(o.Fragment,null,o.createElement("text",{x:(this._isRTL?1:-1)*(this._outerRadius+4),y:0,textAnchor:"end",className:this._classNames.limits,role:"img","aria-label":"Min value: ".concat(this._minValue)},(0,Kt.cE)(this._minValue)),o.createElement("text",{x:(this._isRTL?-1:1)*(this._outerRadius+4),y:0,textAnchor:"start",className:this._classNames.limits,role:"img","aria-label":"Max value: ".concat(u)},(0,Kt.cE)(u))),h.map((function(n,r){return o.createElement("path",(0,t.pi)({key:r,d:n.d,fill:e._segments[n.segmentIndex].color,fillOpacity:e._legendHighlighted(e._segments[n.segmentIndex].legend)||e._noLegendHighlighted()?1:.1,strokeWidth:e.state.focusedElement===e._segments[n.segmentIndex].legend?2:0,className:e._classNames.segment},(0,Kt.ey)((0,t.pi)({ariaLabel:"".concat(e._segments[n.segmentIndex].legend,", ").concat(e._segments[n.segmentIndex].size," out of ").concat(u-e._minValue," or ").concat((e._segments[n.segmentIndex].size/(u-e._minValue)*100).toFixed(),"%")},e._segments[n.segmentIndex].accessibilityData),"img",!0),{onFocus:function(t){return e._handleFocus(t,e._segments[n.segmentIndex].legend)},onBlur:e._handleBlur,onMouseEnter:function(t){return e._handleMouseOver(t,e._segments[n.segmentIndex].legend)},onMouseMove:function(t){return e._handleMouseOver(t,e._segments[n.segmentIndex].legend)}}))})),this._renderNeedle(),o.createElement("g",{onMouseEnter:function(t){return e._handleMouseOver(t,"Chart value")},onMouseMove:function(t){return e._handleMouseOver(t,"Chart value")}},o.createElement(Po,{content:"function"==typeof this.props.chartValueFormat?this.props.chartValueFormat(this._sweepFraction):this.props.chartValueFormat===Ua.Fraction?"".concat(this._sweepFraction[0],"/").concat(this._sweepFraction[1]):"".concat((this._sweepFraction[0]/this._sweepFraction[1]*100).toFixed(),"%"),textProps:{x:0,y:0,textAnchor:"middle",className:this._classNames.chartValue,role:"img","aria-label":"Current value: ".concat(this._sweepFraction[0]," out of ").concat(this._sweepFraction[1],", or ").concat((this._sweepFraction[0]/this._sweepFraction[1]*100).toFixed(),"%")},maxWidth:2*this._innerRadius-24,wrapContent:this._wrapContent})),this.props.sublabel&&o.createElement(Po,{content:this.props.sublabel,textProps:{x:0,y:4,textAnchor:"middle",dominantBaseline:"hanging",className:this._classNames.sublabel,role:"img","aria-label":this.props.sublabel},maxWidth:2*this._innerRadius,wrapContent:this._wrapContent})))),this._renderLegends(),!this.props.hideTooltip&&this.state.isCalloutVisible&&o.createElement(jt,(0,t.pi)({target:this.state.calloutTarget,directionalHint:_.topAutoEdge,gapSpace:15,isBeakVisible:!1,onDismiss:this._handleCalloutDismiss},this.props.calloutProps),this._multiValueCallout({hoverXValue:this.state.hoverXValue,YValueHover:this.state.hoverYValues})))},n.prototype._yValueHoverSubCountsExists=function(e){return!!e&&e.some((function(e){return e.yAxisCalloutData&&"string"!=typeof e.yAxisCalloutData}))},n.prototype._getCalloutContent=function(e,t,n,r){var i=r?{}:{marginRight:"16px"},a=void 0!==e.index&&-1!==e.index,s=ts(this.props.styles,{theme:this.props.theme,lineColor:e.color,toDrawShape:a}),l=this.props.culture,c=(0,Kt.Ts)(e.y,l);if(e.yAxisCalloutData&&"string"!=typeof e.yAxisCalloutData){var u=e.yAxisCalloutData;return o.createElement("div",{style:i},o.createElement("div",{className:"ms-fontWeight-semibold",style:{fontSize:"12pt"}},e.legend," (",c,")"),Object.keys(u).map((function(e){return o.createElement("div",{key:e,className:s.calloutBlockContainer},o.createElement("div",{className:s.calloutlegendText}," ",(0,Kt.Ts)(e,l)),o.createElement("div",{className:s.calloutContentY},(0,Kt.Ts)(u[e],l)))})))}return o.createElement("div",{style:n?i:{}},n&&o.createElement("div",{className:"ms-fontWeight-semibold",style:{fontSize:"12pt"}},e.legend," (",c,")"),o.createElement("div",{id:"".concat(t,"_").concat(e.y),className:s.calloutBlockContainer},a&&o.createElement(Cr,{svgProps:{className:s.shapeStyles},pathProps:{fill:e.color},shape:Kt.wo[e.index%Object.keys(Kt.Ml).length]}),o.createElement("div",null,o.createElement("div",{className:s.calloutlegendText}," ",e.legend),o.createElement("div",{className:s.calloutContentY},(0,Kt.Ts)(e.yAxisCalloutData?e.yAxisCalloutData:e.y||e.data,l)))))},n}(o.Component),rs=(0,e.z)(ns,(function(e){var n,r,o,i,a=e.theme,s=e.chartValueSize,l=e.chartWidth,c=e.chartHeight,u=e.className,d=e.lineColor,h=e.toDrawShape;return{root:[a.fonts.medium,"ms-GaugeChart",{width:"100%",height:"100%"},u],chart:{display:"block",width:l,height:c},limits:{fontSize:Ye.TS.small,fontWeight:Ye.lq.semibold,fill:a.palette.neutralPrimary},chartValue:{fontSize:s,fontWeight:Ye.lq.semibold,fill:a.palette.neutralPrimary},sublabel:{fontSize:Ye.TS.small,fontWeight:Ye.lq.semibold,fill:a.palette.neutralPrimary},needle:{fill:a.palette.black,stroke:a.palette.white},chartTitle:{fontSize:Ye.TS.small,fill:a.palette.neutralPrimary},segment:{outline:"none",stroke:a.semanticColors.focusBorder},legendsContainer:{width:l},calloutContentRoot:[{display:"grid",overflow:"hidden",padding:"11px 16px 10px 16px",backgroundColor:a.semanticColors.bodyBackground,backgroundBlendMode:"normal, luminosity"}],calloutDateTimeContainer:{display:"flex",flexDirection:"row",justifyContent:"space-between"},calloutContentX:[(0,t.pi)((0,t.pi)({},a.fonts.small),{lineHeight:"16px",opacity:"0.8",color:a.semanticColors.bodySubtext})],calloutBlockContainer:[a.fonts.mediumPlus,{marginTop:"13px",color:a.semanticColors.bodyText},!h&&{selectors:(n={},n[Ye.qJ]={forcedColorAdjust:"none"},n),borderLeft:"4px solid ".concat(d),paddingLeft:"8px"},h&&{display:"flex"}],shapeStyles:{marginRight:"8px"},calloutlegendText:(0,t.pi)((0,t.pi)({},a.fonts.small),{lineHeight:"16px",selectors:(r={},r[Ye.$v]={color:"rgb(255, 255, 255)"},r),color:a.semanticColors.bodySubtext}),calloutContentY:[(0,t.pi)((0,t.pi)({},a.fonts.mediumPlus),{fontWeight:"bold",lineHeight:"22px",selectors:(o={},o[Ye.$v]={color:"rgb(255, 255, 255)"},o)})],descriptionMessage:[a.fonts.small,{selectors:(i={},i[Ye.$v]={color:"rgb(255, 255, 255)"},i),color:a.semanticColors.bodyText,marginTop:"10px",paddingTop:"10px",borderTop:"1px solid ".concat(a.semanticColors.menuDivider)}]}}));(0,n(6077).x)("@fluentui/react-charting","5.19.21")}(),FluentUIReactCharting=r}();