@fluentui/react-charting 5.19.22 → 5.19.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/CHANGELOG.json +34 -1
  2. package/CHANGELOG.md +14 -2
  3. package/dist/react-charting.d.ts +14 -1
  4. package/dist/react-charting.js +1 -1
  5. package/dist/react-charting.min.js +1 -1
  6. package/etc/react-charting.api.md +10 -1
  7. package/lib/components/GaugeChart/GaugeChart.base.d.ts +10 -3
  8. package/lib/components/GaugeChart/GaugeChart.base.js +74 -37
  9. package/lib/components/GaugeChart/GaugeChart.base.js.map +1 -1
  10. package/lib/components/GaugeChart/GaugeChart.types.d.ts +13 -1
  11. package/lib/components/GaugeChart/GaugeChart.types.js +8 -0
  12. package/lib/components/GaugeChart/GaugeChart.types.js.map +1 -1
  13. package/lib/version.js +1 -1
  14. package/lib/version.js.map +1 -1
  15. package/lib-amd/components/GaugeChart/GaugeChart.base.d.ts +10 -3
  16. package/lib-amd/components/GaugeChart/GaugeChart.base.js +77 -37
  17. package/lib-amd/components/GaugeChart/GaugeChart.base.js.map +1 -1
  18. package/lib-amd/components/GaugeChart/GaugeChart.types.d.ts +13 -1
  19. package/lib-amd/components/GaugeChart/GaugeChart.types.js +9 -1
  20. package/lib-amd/components/GaugeChart/GaugeChart.types.js.map +1 -1
  21. package/lib-amd/version.js +1 -1
  22. package/lib-amd/version.js.map +1 -1
  23. package/lib-commonjs/components/GaugeChart/GaugeChart.base.d.ts +10 -3
  24. package/lib-commonjs/components/GaugeChart/GaugeChart.base.js +77 -37
  25. package/lib-commonjs/components/GaugeChart/GaugeChart.base.js.map +1 -1
  26. package/lib-commonjs/components/GaugeChart/GaugeChart.types.d.ts +13 -1
  27. package/lib-commonjs/components/GaugeChart/GaugeChart.types.js +9 -1
  28. package/lib-commonjs/components/GaugeChart/GaugeChart.types.js.map +1 -1
  29. package/lib-commonjs/version.js +1 -1
  30. package/lib-commonjs/version.js.map +1 -1
  31. package/package.json +3 -3
  32. package/src/components/GaugeChart/GaugeChart.types.ts +15 -1
@@ -1 +1 @@
1
- var FluentUIReactCharting;!function(){"use strict";var t={1783:function(t,e,n){n.d(e,{WU:function(){return d},jH:function(){return h}});var r,i=n(4783),o=n(4116),a=n(3074);function s(t,e){var n=(0,a.Z)(t,e);if(!n)return t+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}var l={"%":function(t,e){return(100*t).toFixed(e)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.round(t).toString(10)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return s(100*t,e)},r:s,s:function(t,e){var n=(0,a.Z)(t,e);if(!n)return t+"";var i=n[0],o=n[1],s=o-(r=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,l=i.length;return s===l?i:s>l?i+new Array(s-l+1).join("0"):s>0?i.slice(0,s)+"."+i.slice(s):"0."+new Array(1-s).join("0")+(0,a.Z)(t,Math.max(0,e+s-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}};function c(t){return t}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(t){var e,n,a=void 0===t.grouping||void 0===t.thousands?c:(e=p.call(t.grouping,Number),n=t.thousands+"",function(t,r){for(var i=t.length,o=[],a=0,s=e[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),o.push(t.substring(i-=s,i+s)),!((l+=s+1)>r));)s=e[a=(a+1)%e.length];return o.reverse().join(n)}),s=void 0===t.currency?"":t.currency[0]+"",u=void 0===t.currency?"":t.currency[1]+"",d=void 0===t.decimal?".":t.decimal+"",h=void 0===t.numerals?c:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(p.call(t.numerals,String)),g=void 0===t.percent?"%":t.percent+"",m=void 0===t.minus?"-":t.minus+"",v=void 0===t.nan?"NaN":t.nan+"";function _(t){var e=(t=(0,o.Z)(t)).fill,n=t.align,i=t.sign,c=t.symbol,p=t.zero,_=t.width,y=t.comma,x=t.precision,b=t.trim,C=t.type;"n"===C?(y=!0,C="g"):l[C]||(void 0===x&&(x=12),b=!0,C="g"),(p||"0"===e&&"="===n)&&(p=!0,e="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(t){var o,s,l,c=E,u=S;if("c"===C)u=A(t)+u,t="";else{var g=(t=+t)<0||1/t<0;if(t=isNaN(t)?v:A(Math.abs(t),x),b&&(t=function(t){t:for(var e,n=t.length,r=1,i=-1;r<n;++r)switch(t[r]){case".":i=e=r;break;case"0":0===i&&(i=r),e=r;break;default:if(!+t[r])break t;i>0&&(i=0)}return i>0?t.slice(0,i)+t.slice(e+1):t}(t)),g&&0==+t&&"+"!==i&&(g=!1),c=(g?"("===i?i:m:"-"===i||"("===i?"":i)+c,u=("s"===C?f[8+r/3]:"")+u+(g&&"("===i?")":""),L)for(o=-1,s=t.length;++o<s;)if(48>(l=t.charCodeAt(o))||l>57){u=(46===l?d+t.slice(o+1):t.slice(o))+u,t=t.slice(0,o);break}}y&&!p&&(t=a(t,1/0));var k=c.length+t.length+u.length,T=k<_?new Array(_-k+1).join(e):"";switch(y&&p&&(t=a(T+t,T.length?_-u.length:1/0),T=""),n){case"<":t=c+t+u+T;break;case"=":t=c+T+t+u;break;case"^":t=T.slice(0,k=T.length>>1)+c+t+u+T.slice(k);break;default:t=T+c+t+u}return h(t)}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 t+""},k}return{format:_,formatPrefix:function(t,e){var n=_(((t=(0,o.Z)(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor((0,i.Z)(e)/3))),a=Math.pow(10,-r),s=f[8+r/3];return function(t){return n(a*t)+s}}}}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),d=u.format,h=u.formatPrefix},4783:function(t,e,n){n.d(e,{Z:function(){return i}});var r=n(3074);function i(t){return(t=(0,r.Z)(Math.abs(t)))?t[1]:NaN}},3074:function(t,e,n){function r(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}n.d(e,{Z:function(){return r}})},4116:function(t,e,n){n.d(e,{Z:function(){return i}});var r=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function i(t){if(!(e=r.exec(t)))throw new Error("invalid format: "+t);var e;return new o({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function o(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}i.prototype=o.prototype,o.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(t,e,n){n.d(e,{Eb:function(){return ft},B:function(){return et},Ys:function(){return dt},td:function(){return gt}});var r="http://www.w3.org/1999/xhtml",i={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 o(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),i.hasOwnProperty(e)?{space:i[e],local:t}:t}function a(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===r&&e.documentElement.namespaceURI===r?e.createElement(t):e.createElementNS(n,t)}}function s(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function l(t){var e=o(t);return(e.local?s:a)(e)}function c(){}function u(t){return null==t?c:function(){return this.querySelector(t)}}function d(){return[]}var h=function(t){return function(){return this.matches(t)}};if("undefined"!=typeof document){var p=document.documentElement;if(!p.matches){var f=p.webkitMatchesSelector||p.msMatchesSelector||p.mozMatchesSelector||p.oMatchesSelector;h=function(t){return function(){return f.call(this,t)}}}}var g=h;function m(t){return new Array(t.length)}function v(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}v.prototype={constructor:v,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function _(t,e,n,r,i,o){for(var a,s=0,l=e.length,c=o.length;s<c;++s)(a=e[s])?(a.__data__=o[s],r[s]=a):n[s]=new v(t,o[s]);for(;s<l;++s)(a=e[s])&&(i[s]=a)}function y(t,e,n,r,i,o,a){var s,l,c,u={},d=e.length,h=o.length,p=new Array(d);for(s=0;s<d;++s)(l=e[s])&&(p[s]=c="$"+a.call(l,l.__data__,s,e),c in u?i[s]=l:u[c]=l);for(s=0;s<h;++s)(l=u[c="$"+a.call(t,o[s],s,o)])?(r[s]=l,l.__data__=o[s],u[c]=null):n[s]=new v(t,o[s]);for(s=0;s<d;++s)(l=e[s])&&u[p[s]]===l&&(i[s]=l)}function x(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function b(t){return function(){this.removeAttribute(t)}}function C(t){return function(){this.removeAttributeNS(t.space,t.local)}}function E(t,e){return function(){this.setAttribute(t,e)}}function S(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function A(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function L(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function k(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function T(t){return function(){this.style.removeProperty(t)}}function w(t,e,n){return function(){this.style.setProperty(t,e,n)}}function D(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function M(t){return function(){delete this[t]}}function P(t,e){return function(){this[t]=e}}function F(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function I(t){return t.trim().split(/^|\s+/)}function N(t){return t.classList||new V(t)}function V(t){this._node=t,this._names=I(t.getAttribute("class")||"")}function O(t,e){for(var n=N(t),r=-1,i=e.length;++r<i;)n.add(e[r])}function B(t,e){for(var n=N(t),r=-1,i=e.length;++r<i;)n.remove(e[r])}function H(t){return function(){O(this,t)}}function R(t){return function(){B(this,t)}}function z(t,e){return function(){(e.apply(this,arguments)?O:B)(this,t)}}function W(){this.textContent=""}function Y(t){return function(){this.textContent=t}}function Z(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}function q(){this.innerHTML=""}function X(t){return function(){this.innerHTML=t}}function U(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}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 t=this.parentNode;t&&t.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(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var tt={},et=null;function nt(t,e,n){return t=rt(t,e,n),function(e){var n=e.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||t.call(this,e)}}function rt(t,e,n){return function(r){var i=et;et=r;try{t.call(this,this.__data__,e,n)}finally{et=i}}}function it(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,o=e.length;r<o;++r)n=e[r],t.type&&n.type!==t.type||n.name!==t.name?e[++i]=n:this.removeEventListener(n.type,n.listener,n.capture);++i?e.length=i:delete this.__on}}}function ot(t,e,n){var r=tt.hasOwnProperty(t.type)?nt:rt;return function(i,o,a){var s,l=this.__on,c=r(e,o,a);if(l)for(var u=0,d=l.length;u<d;++u)if((s=l[u]).type===t.type&&s.name===t.name)return this.removeEventListener(s.type,s.listener,s.capture),this.addEventListener(s.type,s.listener=c,s.capture=n),void(s.value=e);this.addEventListener(t.type,c,n),s={type:t.type,name:t.name,value:e,listener:c,capture:n},l?l.push(s):this.__on=[s]}}function at(t,e,n){var r=k(t),i=r.CustomEvent;"function"==typeof i?i=new i(e,n):(i=r.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}function st(t,e){return function(){return at(this,t,e)}}function lt(t,e){return function(){return at(this,t,e.apply(this,arguments))}}"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(tt={mouseenter:"mouseover",mouseleave:"mouseout"}));var ct=[null];function ut(t,e){this._groups=t,this._parents=e}function dt(t){return"string"==typeof t?new ut([[document.querySelector(t)]],[document.documentElement]):new ut([[t]],ct)}ut.prototype=function(){return new ut([[document.documentElement]],ct)}.prototype={constructor:ut,select:function(t){"function"!=typeof t&&(t=u(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o,a,s=e[i],l=s.length,c=r[i]=new Array(l),d=0;d<l;++d)(o=s[d])&&(a=t.call(o,o.__data__,d,s))&&("__data__"in o&&(a.__data__=o.__data__),c[d]=a);return new ut(r,this._parents)},selectAll:function(t){"function"!=typeof t&&(t=function(t){return null==t?d:function(){return this.querySelectorAll(t)}}(t));for(var e=this._groups,n=e.length,r=[],i=[],o=0;o<n;++o)for(var a,s=e[o],l=s.length,c=0;c<l;++c)(a=s[c])&&(r.push(t.call(a,a.__data__,c,s)),i.push(a));return new ut(r,i)},filter:function(t){"function"!=typeof t&&(t=g(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o,a=e[i],s=a.length,l=r[i]=[],c=0;c<s;++c)(o=a[c])&&t.call(o,o.__data__,c,a)&&l.push(o);return new ut(r,this._parents)},data:function(t,e){if(!t)return f=new Array(this.size()),u=-1,this.each((function(t){f[++u]=t})),f;var n,r=e?y:_,i=this._parents,o=this._groups;"function"!=typeof t&&(n=t,t=function(){return n});for(var a=o.length,s=new Array(a),l=new Array(a),c=new Array(a),u=0;u<a;++u){var d=i[u],h=o[u],p=h.length,f=t.call(d,d&&d.__data__,u,i),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,e);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 ut(s,i))._enter=l,s._exit=c,s},enter:function(){return new ut(this._enter||this._groups.map(m),this._parents)},exit:function(){return new ut(this._exit||this._groups.map(m),this._parents)},merge:function(t){for(var e=this._groups,n=t._groups,r=e.length,i=n.length,o=Math.min(r,i),a=new Array(r),s=0;s<o;++s)for(var l,c=e[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]=e[s];return new ut(a,this._parents)},order:function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r,i=t[e],o=i.length-1,a=i[o];--o>=0;)(r=i[o])&&(a&&a!==r.nextSibling&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=x);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o){for(var a,s=n[o],l=s.length,c=i[o]=new Array(l),u=0;u<l;++u)(a=s[u])&&(c[u]=a);c.sort(e)}return new ut(i,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){var t=new Array(this.size()),e=-1;return this.each((function(){t[++e]=this})),t},node:function(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,o=r.length;i<o;++i){var a=r[i];if(a)return a}return null},size:function(){var t=0;return this.each((function(){++t})),t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i,o=e[n],a=0,s=o.length;a<s;++a)(i=o[a])&&t.call(i,i.__data__,a,o);return this},attr:function(t,e){var n=o(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==e?n.local?C:b:"function"==typeof e?n.local?L:A:n.local?S:E)(n,e))},style:function(t,e,n){return arguments.length>1?this.each((null==e?T:"function"==typeof e?D:w)(t,e,null==n?"":n)):function(t,e){return t.style.getPropertyValue(e)||k(t).getComputedStyle(t,null).getPropertyValue(e)}(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?M:"function"==typeof e?F:P)(t,e)):this.node()[t]},classed:function(t,e){var n=I(t+"");if(arguments.length<2){for(var r=N(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"==typeof e?z:e?H:R)(n,e))},text:function(t){return arguments.length?this.each(null==t?W:("function"==typeof t?Z:Y)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?q:("function"==typeof t?U:X)(t)):this.node().innerHTML},raise:function(){return this.each(j)},lower:function(){return this.each(G)},append:function(t){var e="function"==typeof t?t:l(t);return this.select((function(){return this.appendChild(e.apply(this,arguments))}))},insert:function(t,e){var n="function"==typeof t?t:l(t),r=null==e?K:"function"==typeof e?e:u(e);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each($)},clone:function(t){return this.select(t?Q:J)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,n){var r,i,o=function(t){return t.trim().split(/^|\s+/).map((function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}))}(t+""),a=o.length;if(!(arguments.length<2)){for(s=e?ot:it,null==n&&(n=!1),r=0;r<a;++r)this.each(s(o[r],e,n));return this}var s=this.node().__on;if(s)for(var l,c=0,u=s.length;c<u;++c)for(r=0,l=s[c];r<a;++r)if((i=o[r]).type===l.type&&i.name===l.name)return l.value},dispatch:function(t,e){return this.each(("function"==typeof e?lt:st)(t,e))}};var ht=0;function pt(){this._="@"+(++ht).toString(36)}function ft(t,e){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,[(r=r.matrixTransform(t.getScreenCTM().inverse())).x,r.y]}var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}function gt(t){return"string"==typeof t?new ut([document.querySelectorAll(t)],[document.documentElement]):new ut([null==t?[]:t],ct)}pt.prototype=function(){return new pt}.prototype={constructor:pt,get:function(t){for(var e=this._;!(e in t);)if(!(t=t.parentNode))return;return t[e]},set:function(t,e){return t[this._]=e},remove:function(t){return this._ in t&&delete t[this._]},toString:function(){return this._}}},731:function(t,e,n){var r,i,o;n.d(e,{i$:function(){return i}}),o={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)(o),i=r.format,r.parse,r.utcFormat,r.utcParse},6465:function(t,e,n){n.d(e,{Z:function(){return h}});var r=n(3787),i=n(2605),o=n(2167),a=n(3645),s=n(9507),l=n(2527);function c(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function u(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function d(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}function h(t){var e=t.dateTime,n=t.date,s=t.time,l=t.periods,h=t.days,f=t.shortDays,g=t.months,m=t.shortMonths,v=y(l),_=x(l),J=y(h),_t=x(h),Dt=y(f),Mt=x(f),Pt=y(g),Ft=x(g),It=y(m),Nt=x(m),Vt={a:function(t){return f[t.getDay()]},A:function(t){return h[t.getDay()]},b:function(t){return m[t.getMonth()]},B:function(t){return g[t.getMonth()]},c:null,d:z,e:z,f:X,g:rt,G:ot,H:W,I:Y,j:Z,L:q,m:U,M:j,p:function(t){return l[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:Tt,s:wt,S:G,u:K,U:$,V:Q,w:tt,W:et,x:null,X:null,y:nt,Y:it,Z:at,"%":kt},Ot={a:function(t){return f[t.getUTCDay()]},A:function(t){return h[t.getUTCDay()]},b:function(t){return m[t.getUTCMonth()]},B:function(t){return g[t.getUTCMonth()]},c:null,d:st,e:st,f:ht,g:Et,G:At,H:lt,I:ct,j:ut,L:dt,m:pt,M:ft,p:function(t){return l[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:Tt,s:wt,S:gt,u:mt,U:vt,V:yt,w:xt,W:bt,x:null,X:null,y:Ct,Y:St,Z:Lt,"%":kt},Bt={a:function(t,e,n){var r=Dt.exec(e.slice(n));return r?(t.w=Mt.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(t,e,n){var r=J.exec(e.slice(n));return r?(t.w=_t.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(t,e,n){var r=It.exec(e.slice(n));return r?(t.m=Nt.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(t,e,n){var r=Pt.exec(e.slice(n));return r?(t.m=Ft.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(t,n,r){return zt(t,e,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(t,e,n){var r=v.exec(e.slice(n));return r?(t.p=_.get(r[0].toLowerCase()),n+r[0].length):-1},q:w,Q:H,s:R,S:N,u:C,U:E,V:S,w:b,W:A,x:function(t,e,r){return zt(t,n,e,r)},X:function(t,e,n){return zt(t,s,e,n)},y:k,Y:L,Z:T,"%":B};function Ht(t,e){return function(n){var r,i,o,a=[],s=-1,l=0,c=t.length;for(n instanceof Date||(n=new Date(+n));++s<c;)37===t.charCodeAt(s)&&(a.push(t.slice(l,s)),null!=(i=p[r=t.charAt(++s)])?r=t.charAt(++s):i="e"===r?" ":"0",(o=e[r])&&(r=o(n,i)),a.push(r),l=s+1);return a.push(t.slice(l,s)),a.join("")}}function Rt(t,e){return function(n){var s,l,h=d(1900,void 0,1);if(zt(h,t,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(e&&!("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=i.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?o.wA.ceil(s):(0,o.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 zt(t,e,n,r){for(var i,o,a=0,s=e.length,l=n.length;a<s;){if(r>=l)return-1;if(37===(i=e.charCodeAt(a++))){if(i=e.charAt(a++),!(o=Bt[i in p?e.charAt(a++):i])||(r=o(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return Vt.x=Ht(n,Vt),Vt.X=Ht(s,Vt),Vt.c=Ht(e,Vt),Ot.x=Ht(n,Ot),Ot.X=Ht(s,Ot),Ot.c=Ht(e,Ot),{format:function(t){var e=Ht(t+="",Vt);return e.toString=function(){return t},e},parse:function(t){var e=Rt(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=Ht(t+="",Ot);return e.toString=function(){return t},e},utcParse:function(t){var e=Rt(t+="",!0);return e.toString=function(){return t},e}}}var p={"-":"",_:" ",0:"0"},f=/^\s*\d+/,g=/^%/,m=/[\\^$*+?|[\]().{}]/g;function v(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(e)+i:i)}function _(t){return t.replace(m,"\\$&")}function y(t){return new RegExp("^(?:"+t.map(_).join("|")+")","i")}function x(t){return new Map(t.map(((t,e)=>[t.toLowerCase(),e])))}function b(t,e,n){var r=f.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function C(t,e,n){var r=f.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function E(t,e,n){var r=f.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function S(t,e,n){var r=f.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function A(t,e,n){var r=f.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function L(t,e,n){var r=f.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function k(t,e,n){var r=f.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function T(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function w(t,e,n){var r=f.exec(e.slice(n,n+1));return r?(t.q=3*r[0]-3,n+r[0].length):-1}function D(t,e,n){var r=f.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function M(t,e,n){var r=f.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function P(t,e,n){var r=f.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function F(t,e,n){var r=f.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function I(t,e,n){var r=f.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function N(t,e,n){var r=f.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function V(t,e,n){var r=f.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function O(t,e,n){var r=f.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function B(t,e,n){var r=g.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function H(t,e,n){var r=f.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function R(t,e,n){var r=f.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function z(t,e){return v(t.getDate(),e,2)}function W(t,e){return v(t.getHours(),e,2)}function Y(t,e){return v(t.getHours()%12||12,e,2)}function Z(t,e){return v(1+a.Z.count((0,s.Z)(t),t),e,3)}function q(t,e){return v(t.getMilliseconds(),e,3)}function X(t,e){return q(t,e)+"000"}function U(t,e){return v(t.getMonth()+1,e,2)}function j(t,e){return v(t.getMinutes(),e,2)}function G(t,e){return v(t.getSeconds(),e,2)}function K(t){var e=t.getDay();return 0===e?7:e}function $(t,e){return v(o.OM.count((0,s.Z)(t)-1,t),e,2)}function J(t){var e=t.getDay();return e>=4||0===e?(0,o.bL)(t):o.bL.ceil(t)}function Q(t,e){return t=J(t),v(o.bL.count((0,s.Z)(t),t)+(4===(0,s.Z)(t).getDay()),e,2)}function tt(t){return t.getDay()}function et(t,e){return v(o.wA.count((0,s.Z)(t)-1,t),e,2)}function nt(t,e){return v(t.getFullYear()%100,e,2)}function rt(t,e){return v((t=J(t)).getFullYear()%100,e,2)}function it(t,e){return v(t.getFullYear()%1e4,e,4)}function ot(t,e){var n=t.getDay();return v((t=n>=4||0===n?(0,o.bL)(t):o.bL.ceil(t)).getFullYear()%1e4,e,4)}function at(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+v(e/60|0,"0",2)+v(e%60,"0",2)}function st(t,e){return v(t.getUTCDate(),e,2)}function lt(t,e){return v(t.getUTCHours(),e,2)}function ct(t,e){return v(t.getUTCHours()%12||12,e,2)}function ut(t,e){return v(1+i.Z.count((0,l.Z)(t),t),e,3)}function dt(t,e){return v(t.getUTCMilliseconds(),e,3)}function ht(t,e){return dt(t,e)+"000"}function pt(t,e){return v(t.getUTCMonth()+1,e,2)}function ft(t,e){return v(t.getUTCMinutes(),e,2)}function gt(t,e){return v(t.getUTCSeconds(),e,2)}function mt(t){var e=t.getUTCDay();return 0===e?7:e}function vt(t,e){return v(r.Ox.count((0,l.Z)(t)-1,t),e,2)}function _t(t){var e=t.getUTCDay();return e>=4||0===e?(0,r.hB)(t):r.hB.ceil(t)}function yt(t,e){return t=_t(t),v(r.hB.count((0,l.Z)(t),t)+(4===(0,l.Z)(t).getUTCDay()),e,2)}function xt(t){return t.getUTCDay()}function bt(t,e){return v(r.l6.count((0,l.Z)(t)-1,t),e,2)}function Ct(t,e){return v(t.getUTCFullYear()%100,e,2)}function Et(t,e){return v((t=_t(t)).getUTCFullYear()%100,e,2)}function St(t,e){return v(t.getUTCFullYear()%1e4,e,4)}function At(t,e){var n=t.getUTCDay();return v((t=n>=4||0===n?(0,r.hB)(t):r.hB.ceil(t)).getUTCFullYear()%1e4,e,4)}function Lt(){return"+0000"}function kt(){return"%"}function Tt(t){return+t}function wt(t){return Math.floor(+t/1e3)}},3645:function(t,e,n){var r=n(4315),i=n(4827),o=(0,r.Z)((t=>t.setHours(0,0,0,0)),((t,e)=>t.setDate(t.getDate()+e)),((t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*i.yB)/i.UD),(t=>t.getDate()-1));e.Z=o,o.range},4827:function(t,e,n){n.d(e,{UD:function(){return a},Y2:function(){return o},Ym:function(){return r},iM:function(){return s},jz:function(){return l},qz:function(){return c},yB:function(){return i}});const r=1e3,i=60*r,o=60*i,a=24*o,s=7*a,l=30*a,c=365*a},5401:function(t,e,n){var r=n(4315),i=n(4827),o=(0,r.Z)((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*i.Ym-t.getMinutes()*i.yB)}),(function(t,e){t.setTime(+t+e*i.Y2)}),(function(t,e){return(e-t)/i.Y2}),(function(t){return t.getHours()}));e.Z=o,o.range},4315:function(t,e,n){n.d(e,{Z:function(){return o}});var r=new Date,i=new Date;function o(t,e,n,a){function s(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return s.floor=function(e){return t(e=new Date(+e)),e},s.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},s.round=function(t){var e=s(t),n=s.ceil(t);return t-e<n-t?e:n},s.offset=function(t,n){return e(t=new Date(+t),null==n?1:Math.floor(n)),t},s.range=function(n,r,i){var o,a=[];if(n=s.ceil(n),i=null==i?1:Math.floor(i),!(n<r&&i>0))return a;do{a.push(o=new Date(+n)),e(n,i),t(n)}while(o<n&&n<r);return a},s.filter=function(n){return o((function(e){if(e>=e)for(;t(e),!n(e);)e.setTime(e-1)}),(function(t,r){if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););}))},n&&(s.count=function(e,o){return r.setTime(+e),i.setTime(+o),t(r),t(i),Math.floor(n(r,i))},s.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?s.filter(a?function(e){return a(e)%t==0}:function(e){return s.count(0,e)%t==0}):s:null}),s}},4189:function(t,e,n){var r=n(4315),i=n(4827),o=(0,r.Z)((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*i.Ym)}),(function(t,e){t.setTime(+t+e*i.yB)}),(function(t,e){return(e-t)/i.yB}),(function(t){return t.getMinutes()}));e.Z=o,o.range},9604:function(t,e,n){var r=(0,n(4315).Z)((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,e){t.setMonth(t.getMonth()+e)}),(function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()}));e.Z=r,r.range},87:function(t,e,n){var r=n(4315),i=n(4827),o=(0,r.Z)((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,e){t.setTime(+t+e*i.Ym)}),(function(t,e){return(e-t)/i.Ym}),(function(t){return t.getUTCSeconds()}));e.Z=o,o.range},2605:function(t,e,n){var r=n(4315),i=n(4827),o=(0,r.Z)((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/i.UD}),(function(t){return t.getUTCDate()-1}));e.Z=o,o.range},3787:function(t,e,n){n.d(e,{Ox:function(){return a},hB:function(){return u},l6:function(){return s}});var r=n(4315),i=n(4827);function o(t){return(0,r.Z)((function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+7*e)}),(function(t,e){return(e-t)/i.iM}))}var a=o(0),s=o(1),l=o(2),c=o(3),u=o(4),d=o(5),h=o(6);a.range,s.range,l.range,c.range,u.range,d.range,h.range},2527:function(t,e,n){var r=n(4315),i=(0,r.Z)((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)}),(function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()}));i.every=function(t){return isFinite(t=Math.floor(t))&&t>0?(0,r.Z)((function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)})):null},e.Z=i,i.range},2167:function(t,e,n){n.d(e,{OM:function(){return a},bL:function(){return u},wA:function(){return s}});var r=n(4315),i=n(4827);function o(t){return(0,r.Z)((function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+7*e)}),(function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*i.yB)/i.iM}))}var a=o(0),s=o(1),l=o(2),c=o(3),u=o(4),d=o(5),h=o(6);a.range,s.range,l.range,c.range,u.range,d.range,h.range},9507:function(t,e,n){var r=n(4315),i=(0,r.Z)((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t,e){return e.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));i.every=function(t){return isFinite(t=Math.floor(t))&&t>0?(0,r.Z)((function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,n){e.setFullYear(e.getFullYear()+n*t)})):null},e.Z=i,i.range},9939:function(t,e,n){n.d(e,{ZT:function(){return i},_T:function(){return a},ev:function(){return s},pi:function(){return o}});var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)};function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var o=function(){return o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},o.apply(this,arguments)};function a(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}function s(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))}Object.create,Object.create},4473:function(t,e,n){function r(t){o!==t&&(o=t)}function i(){return void 0===o&&(o="undefined"!=typeof document&&!!document.documentElement&&"rtl"===document.documentElement.getAttribute("dir")),o}var o;function a(){return{rtl:i()}}n.d(e,{Eo:function(){return a},ok:function(){return r}}),o=i()},5499:function(t,e,n){n.d(e,{Y:function(){return l}});var r,i=n(9939),o="__stylesheet__",a="undefined"!=typeof navigator&&/rv:11.0/.test(navigator.userAgent),s={};try{s=window||{}}catch(t){}var l=function(){function t(t,e){var n,r,o,a,s,l;this._rules=[],this._preservedRules=[],this._counter=0,this._keyToClassName={},this._onInsertRuleCallbacks=[],this._onResetCallbacks=[],this._classNameToArgs={},this._config=(0,i.pi)({injectionMode:"undefined"==typeof document?0:1,defaultPrefix:"css",namespace:void 0,cspSettings:void 0},t),this._classNameToArgs=null!==(n=null==e?void 0:e.classNameToArgs)&&void 0!==n?n:this._classNameToArgs,this._counter=null!==(r=null==e?void 0:e.counter)&&void 0!==r?r:this._counter,this._keyToClassName=null!==(a=null!==(o=this._config.classNameCache)&&void 0!==o?o:null==e?void 0:e.keyToClassName)&&void 0!==a?a:this._keyToClassName,this._preservedRules=null!==(s=null==e?void 0:e.preservedRules)&&void 0!==s?s:this._preservedRules,this._rules=null!==(l=null==e?void 0:e.rules)&&void 0!==l?l:this._rules}return t.getInstance=function(){if(!(r=s[o])||r._lastStyleElement&&r._lastStyleElement.ownerDocument!==document){var e=(null==s?void 0:s.FabricConfig)||{},n=new t(e.mergeStyles,e.serializedStylesheet);r=n,s[o]=n}return r},t.prototype.serialize=function(){return JSON.stringify({classNameToArgs:this._classNameToArgs,counter:this._counter,keyToClassName:this._keyToClassName,preservedRules:this._preservedRules,rules:this._rules})},t.prototype.setConfig=function(t){this._config=(0,i.pi)((0,i.pi)({},this._config),t)},t.prototype.onReset=function(t){var e=this;return this._onResetCallbacks.push(t),function(){e._onResetCallbacks=e._onResetCallbacks.filter((function(e){return e!==t}))}},t.prototype.onInsertRule=function(t){var e=this;return this._onInsertRuleCallbacks.push(t),function(){e._onInsertRuleCallbacks=e._onInsertRuleCallbacks.filter((function(e){return e!==t}))}},t.prototype.getClassName=function(t){var e=this._config.namespace,n=t||this._config.defaultPrefix;return"".concat(e?e+"-":"").concat(n,"-").concat(this._counter++)},t.prototype.cacheClassName=function(t,e,n,r){this._keyToClassName[e]=t,this._classNameToArgs[t]={args:n,rules:r}},t.prototype.classNameFromKey=function(t){return this._keyToClassName[t]},t.prototype.getClassNameCache=function(){return this._keyToClassName},t.prototype.argsFromClassName=function(t){var e=this._classNameToArgs[t];return e&&e.args},t.prototype.insertedRulesFromClassName=function(t){var e=this._classNameToArgs[t];return e&&e.rules},t.prototype.insertRule=function(t,e){var n=this._config.injectionMode,r=0!==n?this._getStyleElement():void 0;if(e&&this._preservedRules.push(t),r)switch(n){case 1:var i=r.sheet;try{i.insertRule(t,i.cssRules.length)}catch(t){}break;case 2:r.appendChild(document.createTextNode(t))}else this._rules.push(t);this._config.onInsertRule&&this._config.onInsertRule(t),this._onInsertRuleCallbacks.forEach((function(t){return t()}))},t.prototype.getRules=function(t){return(t?this._preservedRules.join(""):"")+this._rules.join("")},t.prototype.reset=function(){this._rules=[],this._counter=0,this._classNameToArgs={},this._keyToClassName={},this._onResetCallbacks.forEach((function(t){return t()}))},t.prototype.resetKeys=function(){this._keyToClassName={}},t.prototype._getStyleElement=function(){var t=this;return this._styleElement||"undefined"==typeof document||(this._styleElement=this._createStyleElement(),a||window.requestAnimationFrame((function(){t._styleElement=void 0}))),this._styleElement},t.prototype._createStyleElement=function(){var t=document.head,e=document.createElement("style"),n=null;e.setAttribute("data-merge-styles","true");var r=this._config.cspSettings;if(r&&r.nonce&&e.setAttribute("nonce",r.nonce),this._lastStyleElement)n=this._lastStyleElement.nextElementSibling;else{var i=this._findPlaceholderStyleTag();n=i?i.nextElementSibling:t.childNodes[0]}return t.insertBefore(e,t.contains(n)?n:null),this._lastStyleElement=e,e},t.prototype._findPlaceholderStyleTag=function(){var t=document.head;return t?t.querySelector("style[data-merge-styles]"):null},t}()},4270:function(t,e,n){n.d(e,{m:function(){return i}});var r=n(9939);function i(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(t&&1===t.length&&t[0]&&!t[0].subComponentStyles)return t[0];for(var n={},o={},a=0,s=t;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)&&(o.hasOwnProperty(d)?o[d].push(u[d]):o[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(o).length>0){n.subComponentStyles={};var f=n.subComponentStyles,g=function(t){if(o.hasOwnProperty(t)){var e=o[t];f[t]=function(t){return i.apply(void 0,e.map((function(e){return"function"==typeof e?e(t):e})))}}};for(var d in o)g(d)}return n}},3802:function(t,e,n){n.d(e,{U:function(){return i}});var r=n(5499);function i(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=[],i=[],o=r.Y.getInstance();return function t(e){for(var r=0,a=e;r<a.length;r++){var s=a[r];if(s)if("string"==typeof s)if(s.indexOf(" ")>=0)t(s.split(" "));else{var l=o.argsFromClassName(s);l?t(l):-1===n.indexOf(s)&&n.push(s)}else Array.isArray(s)?t(s):"object"==typeof s&&i.push(s)}}(t),{classes:n,objects:i}}},13:function(t,e,n){n.d(e,{y:function(){return a}});var r=n(3802),i=n(4473),o=n(7373);function a(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(t,e){var n=t instanceof Array?t:[t],i=(0,r.U)(n),a=i.classes,s=i.objects;return s.length&&a.push((0,o.AE)(e||{},s)),a.join(" ")}(t,(0,i.Eo)())}},7373:function(t,e,n){n.d(e,{Jh:function(){return k},dH:function(){return A},AE:function(){return T},aj:function(){return L}});var r,i=n(9939),o=n(5499),a={},s={"user-select":1};function l(t,e){var n=function(){var t;if(!r){var e="undefined"!=typeof document?document:void 0,n="undefined"!=typeof navigator?navigator:void 0,i=null===(t=null==n?void 0:n.userAgent)||void 0===t?void 0:t.toLowerCase();r=e?{isWebkit:!(!e||!("WebkitAppearance"in e.documentElement.style)),isMoz:!!(i&&i.indexOf("firefox")>-1),isOpera:!!(i&&i.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}(),i=t[e];if(s[i]){var o=t[e+1];s[i]&&(n.isWebkit&&t.push("-webkit-"+i,o),n.isMoz&&t.push("-moz-"+i,o),n.isMs&&t.push("-ms-"+i,o),n.isOpera&&t.push("-o-"+i,o))}}var c,u=["column-count","font-weight","flex","flex-grow","flex-shrink","fill-opacity","opacity","order","z-index","zoom"];function d(t,e){var n=t[e],r=t[e+1];if("number"==typeof r){var i=u.indexOf(n)>-1,o=n.indexOf("--")>-1,a=i||o?"":"px";t[e+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(t,e,n){if(t.rtl){var r=e[n];if(!r)return;var i=e[n+1];if("string"==typeof i&&i.indexOf(f)>=0)e[n+1]=i.replace(/\s*(?:\/\*\s*)?\@noflip\b(?:\s*\*\/)?\s*?/g,"");else if(r.indexOf(h)>=0)e[n]=r.replace(h,p);else if(r.indexOf(p)>=0)e[n]=r.replace(p,h);else if(String(i).indexOf(h)>=0)e[n+1]=i.replace(h,p);else if(String(i).indexOf(p)>=0)e[n+1]=i.replace(p,h);else if(g[r])e[n]=g[r];else if(m[i])e[n+1]=m[i];else switch(r){case"margin":case"padding":e[n+1]=function(t){if("string"==typeof t){var e=t.split(" ");if(4===e.length)return"".concat(e[0]," ").concat(e[3]," ").concat(e[2]," ").concat(e[1])}return t}(i);break;case"box-shadow":e[n+1]=function(t,e){var n=t.split(" "),r=parseInt(n[0],10);return n[0]=n[0].replace(String(r),String(-1*r)),n.join(" ")}(i)}}}var _="displayName",y=/\:global\((.+?)\)/g;function x(t,e){return t.indexOf(":global(")>=0?t.replace(y,"$1"):0===t.indexOf(":")?e+t:t.indexOf("&")<0?e+" "+t:t}function b(t,e,n,r){void 0===e&&(e={__order:[]}),0===n.indexOf("@")?C([r],e,n=n+"{"+t):n.indexOf(",")>-1?function(t){if(!y.test(t))return t;for(var e=[],n=/\:global\((.+?)\)/g,r=null;r=n.exec(t);)r[1].indexOf(",")>-1&&e.push([r.index,r.index+r[0].length,r[1].split(",").map((function(t){return":global(".concat(t.trim(),")")})).join(", ")]);return e.reverse().reduce((function(t,e){var n=e[0],r=e[1],i=e[2];return t.slice(0,n)+i+t.slice(r)}),t)}(n).split(",").map((function(t){return t.trim()})).forEach((function(n){return C([r],e,x(n,t))})):C([r],e,x(n,t))}function C(t,e,n){void 0===e&&(e={__order:[]}),void 0===n&&(n="&");var r=o.Y.getInstance(),i=e[n];i||(i={},e[n]=i,e.__order.push(n));for(var a=0,s=t;a<s.length;a++){var l=s[a];if("string"==typeof l){var c=r.argsFromClassName(l);c&&C(c,e,n)}else if(Array.isArray(l))C(l,e,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,e,p,h[p])}else"object"==typeof d?null!==d&&b(n,e,u,d):void 0!==d&&("margin"===u||"padding"===u?E(i,u,d):i[u]=d)}}return e}function E(t,e,n){var r="string"==typeof n?function(t){for(var e=[],n=0,r=0,i=0;i<t.length;i++)switch(t[i]){case"(":r++;break;case")":r&&r--;break;case"\t":case" ":r||(i>n&&e.push(t.substring(n,i)),n=i+1)}return n<t.length&&e.push(t.substring(n)),e}(n):[n];0===r.length&&r.push(n),"!important"===r[r.length-1]&&(r=r.slice(0,-1).map((function(t){return t+" !important"}))),t[e+"Top"]=r[0],t[e+"Right"]=r[1]||r[0],t[e+"Bottom"]=r[2]||r[0],t[e+"Left"]=r[3]||r[1]||r[0]}function S(t,e){return e<=0?"":1===e?t:t+S(t,e-1)}function A(t,e){if(!e)return"";var n,r,i,o=[];for(var s in e)e.hasOwnProperty(s)&&s!==_&&void 0!==e[s]&&o.push(s,e[s]);for(var c=0;c<o.length;c+=2)i=void 0,"-"!==(i=(n=o)[r=c]).charAt(0)&&(n[r]=a[i]=a[i]||i.replace(/([A-Z])/g,"-$1").toLowerCase()),d(o,c),v(t,o,c),l(o,c);for(c=1;c<o.length;c+=4)o.splice(c,1,":",o[c],";");return o.join("")}function L(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=C(e),i=function(t,e){for(var n=[t.rtl?"rtl":"ltr"],r=!1,i=0,o=e.__order;i<o.length;i++){var a=o[i];n.push(a);var s=e[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}(t,r);if(i){var a=o.Y.getInstance(),s={className:a.classNameFromKey(i),key:i,args:e};if(!s.className){s.className=a.getClassName(function(t){var e=t&&t["&"];return e?e.displayName:void 0}(r));for(var l=[],c=0,u=r.__order;c<u.length;c++){var d=u[c];l.push(d,A(t,r[d]))}s.rulesToInsert=l}return s}}function k(t,e){void 0===e&&(e=1);var n=o.Y.getInstance(),r=t.className,i=t.key,a=t.args,s=t.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(t.className),e));var d="".concat(u,"{").concat(c,"}").concat(0===u.indexOf("@")?"}":"");n.insertRule(d)}}n.cacheClassName(r,i,a,s)}}function T(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=L.apply(void 0,(0,i.ev)([t],e,!1));return r?(k(r,t.specificityMultiplier),r.className):""}},8024:function(t,e,n){n.r(e),n.d(e,{ChartHoverCard:function(){return d}});var r=n(9085),i=n(9939),o=n(7363),a=n(8461),s=n(3813),l=(0,a.y)(),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.ZT)(e,t),e.prototype.render=function(){var t=this.props,e=t.color,n=t.Legend,r=t.XValue,i=t.YValue,a=t.styles,c=t.theme,u=t.ratio,d=t.descriptionMessage,h=t.culture;return this._classNames=l(a,{theme:c,color:e,XValue:r,isRatioPresent:!!u}),o.createElement("div",{className:this._classNames.calloutContentRoot},o.createElement("div",{className:this._classNames.calloutDateTimeContainer},o.createElement("div",{className:this._classNames.calloutContentX},r," ")),o.createElement("div",{className:this._classNames.calloutInfoContainer},o.createElement("div",{className:this._classNames.calloutBlockContainer},o.createElement("div",{className:this._classNames.calloutlegendText},(0,s.Ts)(n,h)),o.createElement("div",{className:this._classNames.calloutContentY},(0,s.Ts)(i,h))),!!u&&o.createElement("div",{className:this._classNames.ratio},o.createElement(o.Fragment,null,o.createElement("span",{className:this._classNames.numerator},(0,s.Ts)(u[0],h)),"/",o.createElement("span",{className:this._classNames.denominator},(0,s.Ts)(u[1],h))))),!!d&&o.createElement("div",{className:this._classNames.descriptionMessage},d))},e}(o.Component),u=n(1286),d=(0,r.z)(c,u.n)},1286:function(t,e,n){n.d(e,{n:function(){return i}});var r=n(1786),i=function(t){var e=t.color,n=t.XValue,i=t.theme,o=t.isRatioPresent,a=void 0!==o&&o;return{calloutContentRoot:[{display:"grid",overflow:"hidden",padding:"11px 16px 10px 16px",backgroundColor:i.semanticColors.bodyBackground,backgroundBlendMode:"normal, luminosity"}],calloutDateTimeContainer:{display:"flex",flexDirection:"row",justifyContent:"space-between"},calloutContentX:[i.fonts.small,{lineHeight:"16px",opacity:"0.8",color:i.semanticColors.bodySubtext}],calloutBlockContainer:[i.fonts.xxLarge,{marginTop:n?"13px":"unset",paddingLeft:"8px",lineHeight:"22px",color:i.semanticColors.bodyText,borderLeft:"4px solid ".concat(e)}],calloutlegendText:[i.fonts.small,{lineHeight:"16px",color:i.semanticColors.bodyText}],calloutContentY:[i.fonts.xxLarge,{color:e||i.semanticColors.bodyText,fontWeight:"bold",lineHeight:"36px"}],calloutInfoContainer:[a&&{display:"flex",alignItems:"flex-end"}],ratio:[i.fonts.small,{marginLeft:"6px",color:i.semanticColors.bodyText}],numerator:{fontWeight:r.lq.bold},denominator:{fontWeight:r.lq.semibold},descriptionMessage:[i.fonts.small,{color:i.semanticColors.bodyText,marginTop:"10px",paddingTop:"10px",borderTop:"1px solid ".concat(i.semanticColors.menuDivider)}]}}},3813:function(t,e,n){n.d(e,{$X:function(){return b},jc:function(){return it},wo:function(){return rt},xl:function(){return C},OH:function(){return E},yE:function(){return J},Wx:function(){return j},Ts:function(){return lt},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 dt},ey:function(){return st},dr:function(){return et},As:function(){return nt},SY:function(){return ot},V4:function(){return tt},Ml:function(){return at},zs:function(){return ct},$V:function(){return Q},nX:function(){return $},yQ:function(){return ut}});var r=n(9939),i=Array.prototype.slice;function o(t){return t}var a=1,s=2,l=3,c=4,u=1e-6;function d(t){return"translate("+(t+.5)+",0)"}function h(t){return"translate(0,"+(t+.5)+")"}function p(t){return function(e){return+t(e)}}function f(t){var e=Math.max(0,t.bandwidth()-1)/2;return t.round()&&(e=Math.round(e)),function(n){return+t(n)+e}}function g(){return!this.__axis}function m(t,e){var n=[],r=null,m=null,v=6,_=6,y=3,x=t===a||t===c?-1:1,b=t===c||t===s?"x":"y",C=t===a||t===l?d:h;function E(i){var d=null==r?e.ticks?e.ticks.apply(e,n):e.domain():r,h=null==m?e.tickFormat?e.tickFormat.apply(e,n):o:m,E=Math.max(v,0)+y,S=e.range(),A=+S[0]+.5,L=+S[S.length-1]+.5,k=(e.bandwidth?f:p)(e.copy()),T=i.selection?i.selection():i,w=T.selectAll(".domain").data([null]),D=T.selectAll(".tick").data(d,e).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",t===a?"0em":t===l?"0.71em":"0.32em")),i!==T&&(w=w.transition(i),D=D.transition(i),F=F.transition(i),I=I.transition(i),M=M.transition(i).attr("opacity",u).attr("transform",(function(t){return isFinite(t=k(t))?C(t):this.getAttribute("transform")})),P.attr("opacity",u).attr("transform",(function(t){var e=this.parentNode.__axis;return C(e&&isFinite(e=e(t))?e:k(t))}))),M.remove(),w.attr("d",t===c||t==s?"M"+x*_+","+A+"H0.5V"+L+"H"+x*_:"M"+A+","+x*_+"V0.5H"+L+"V"+x*_),D.attr("opacity",1).attr("transform",(function(t){return C(k(t))})),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",t===s?"start":t===c?"end":"middle"),T.each((function(){this.__axis=k}))}return E.scale=function(t){return arguments.length?(e=t,E):e},E.ticks=function(){return n=i.call(arguments),E},E.tickArguments=function(t){return arguments.length?(n=null==t?[]:i.call(t),E):n.slice()},E.tickValues=function(t){return arguments.length?(r=null==t?null:i.call(t),E):r&&r.slice()},E.tickFormat=function(t){return arguments.length?(m=t,E):m},E.tickSize=function(t){return arguments.length?(v=_=+t,E):v},E.tickSizeInner=function(t){return arguments.length?(v=+t,E):v},E.tickSizeOuter=function(t){return arguments.length?(_=+t,E):_},E.tickPadding=function(t){return arguments.length?(y=+t,E):y},E}function v(t){return m(s,t)}function _(t){return m(l,t)}function y(t){return m(c,t)}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),B=n(2167),H=n(9507);function R(t,e,n){var r=t.domainNRangeValues,i=t.showRoundOffXTickValues,o=void 0!==i&&i,a=t.xAxistickSize,s=void 0===a?6:a,l=t.tickPadding,c=void 0===l?10:l,u=t.xAxisCount,d=void 0===u?6:u,h=t.xAxisElement,p=(0,L.Z)().domain([r.dStartValue,r.dEndValue]).range([r.rStartValue,r.rEndValue]);o&&p.nice();var f=_(p).tickSize(s).tickPadding(c).ticks(d).tickFormat((function(t,e){var r="number"==typeof t?t:t.valueOf();return lt(r,n)}));e===b.HorizontalBarChartWithAxis&&f.tickSizeInner(-(t.containerHeight-t.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(t,e){var n=e?e.format:M.i$,r=n(".%L"),i=n(":%S"),o=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)(t)<t?r:(0,I.Z)(t)<t?i:(0,N.Z)(t)<t?o:(0,V.Z)(t)<t?a:(0,O.Z)(t)<t?(0,B.OM)(t)<t?s:l:(0,H.Z)(t)<t?c:u)(t)}function W(t,e,n,r,i,o){var a,s=t.domainNRangeValues,l=t.xAxisElement,c=t.tickPadding,u=void 0===c?6:c,d=t.xAxistickSize,h=void 0===d?6:d,p=t.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(o)m.tickFormat((function(t,e){return o(t)}));else if(n&&r)m.tickFormat((function(t,e){return t.toLocaleString(n,r)}));else if(i){var v=(0,P.Z)(i);m.tickFormat((function(t,e){return z(t,v)}))}e.tickValues&&m.tickValues(e.tickValues),void 0===n&&e.tickFormat&&m.tickFormat((0,M.i$)(e.tickFormat)),l&&(0,w.Ys)(l).call(m).selectAll("text").attr("aria-hidden","true");var y=(null!==(a=e.tickValues)&&void 0!==a?a:g.ticks(f)).map((function(t,e){var n=m.tickFormat();return n?n(t,e):z(t)}));return{xScale:g,tickValues:y}}function Y(t,e,n,r){var i=t.domainNRangeValues,o=t.xAxisCount,a=void 0===o?6:o,s=t.xAxistickSize,l=void 0===s?6:s,c=t.tickPadding,u=void 0===c?10:c,d=t.xAxisPadding,h=void 0===d?.1:d,p=t.xAxisInnerPadding,f=t.xAxisOuterPadding,g=(0,T.Z)().domain(n).range([i.rStartValue,i.rEndValue]).paddingInner(void 0!==p?p:h).paddingOuter(void 0!==f?f:h),m=_(g).tickSize(l).tickPadding(u).ticks(a).tickFormat((function(t,e){return lt(n[e],r)}));return t.xAxisElement&&(0,w.Ys)(t.xAxisElement).call(m).selectAll("text").attr("aria-hidden","true"),{xScale:g,tickValues:n.map(m.tickFormat())}}function Z(t,e,n,r,i,o,a){return void 0===a&&(a=!1),r===b.HorizontalBarChartWithAxis?function(t,e,n,r){var i=t.yMinMaxValues,o=void 0===i?{startValue:0,endValue:0}:i,a=t.yAxisElement,s=void 0===a?null:a,l=t.yMaxValue,c=void 0===l?0:l,u=t.yMinValue,d=void 0===u?0:u,h=t.containerHeight,p=t.margins,f=t.tickPadding,g=void 0===f?12:f,m=t.maxOfYVal,_=void 0===m?0:m,x=t.yAxisTickFormat,b=t.yAxisTickCount,C=void 0===b?4:b,E=_||o.endValue,S=E>c?E:c,A=o.startValue<d?0:d,k=(0,L.Z)().domain([A,S]).range([h-p.bottom,p.top]),T=(e?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}(t,e):function(t,e,n,r,i){void 0===i&&(i=!1);var o=t.yMinMaxValues,a=void 0===o?{startValue:0,endValue:0}:o,s=t.yAxisElement,l=void 0===s?null:s,c=t.yMaxValue,u=void 0===c?0:c,d=t.yMinValue,h=void 0===d?0:d,p=t.containerHeight,f=t.containerWidth,g=t.margins,m=t.tickPadding,_=void 0===m?12:m,x=t.maxOfYVal,b=void 0===x?0:x,C=t.yAxisTickFormat,E=t.yAxisTickCount,S=void 0===E?4:E,A=t.eventAnnotationProps,k=t.eventLabelHeight,T=b||a.endValue,M=T>u?T:u,P=a.startValue<h?0:h,F=function(t,e,n,r){for(var i=r||(t-e)/n>=1?Math.ceil((t-e)/n):(t-e)/n,o=[e,e+i];o[o.length-1]<t;)o.push(o[o.length-1]+i);return o}(M,P,S,r),I=(0,L.Z)().domain([P,F[F.length-1]]).range([p-g.bottom,g.top+(A?k:0)]),N=(!e&&i||e&&!i?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}(t,e,n,o,a)}!function(t){t[t.AreaChart=0]="AreaChart",t[t.LineChart=1]="LineChart",t[t.VerticalBarChart=2]="VerticalBarChart",t[t.VerticalStackedBarChart=3]="VerticalStackedBarChart",t[t.GroupedVerticalBarChart=4]="GroupedVerticalBarChart",t[t.HeatMapChart=5]="HeatMapChart",t[t.HorizontalBarChartWithAxis=6]="HorizontalBarChartWithAxis"}(b||(b={})),function(t){t[t.NumericAxis=0]="NumericAxis",t[t.DateAxis=1]="DateAxis",t[t.StringAxis=2]="StringAxis"}(C||(C={})),function(t){t[t.NumericAxis=0]="NumericAxis",t[t.DateAxis=1]="DateAxis",t[t.StringAxis=2]="StringAxis"}(E||(E={}));var q=function(t,e,n,r,i,o){return r===b.HorizontalBarChartWithAxis?X(t,e,n,i,o):U(t,e,n)},X=function(t,e,n,r,i){var o=t.containerHeight,a=t.tickPadding,s=void 0===a?12:a,l=t.margins,c=t.yAxisTickFormat,u=t.yAxisElement,d=(0,T.Z)().domain(e).range([o-l.bottom-r/2,l.top+r/2]),h=(n?v(d):y(d)).tickPadding(s).ticks(e);return c&&h.tickFormat(c),u&&(0,w.Ys)(u).call(h).selectAll("text"),d},U=function(t,e,n){var r=t.containerHeight,i=t.tickPadding,o=void 0===i?12:i,a=t.margins,s=t.yAxisTickFormat,l=t.yAxisElement,c=t.yAxisPadding,u=void 0===c?0:c,d=(0,T.Z)().domain(e).range([r-a.bottom,a.top]).padding(u),h=(n?v(d):y(d)).tickPadding(o).tickValues(e).tickSize(0);return s&&h.tickFormat(s),l&&(0,w.Ys)(l).call(h).selectAll("text"),d};function j(t){var e=[];t.forEach((function(t){var n=t.data.filter((function(t){return!t.hideCallout})).map((function(e){return(0,r.pi)((0,r.pi)({},e),{legend:t.legend,color:t.color,index:t.index})}));e=e.concat(n)}));var n={};return e.forEach((function(t){var e=t.x instanceof Date?t.x.getTime():t.x;e in n?n[e].push({legend:t.legend,y:t.y,color:t.color,xAxisCalloutData:t.xAxisCalloutData,yAxisCalloutData:t.yAxisCalloutData,callOutAccessibilityData:t.callOutAccessibilityData,index:t.index}):n[e]=[{legend:t.legend,y:t.y,color:t.color,xAxisCalloutData:t.xAxisCalloutData,yAxisCalloutData:t.yAxisCalloutData,callOutAccessibilityData:t.callOutAccessibilityData,index:t.index}]})),Object.keys(n).map((function(t){return{x:Number(t),values:n[t]}}))}function G(t){var e=t.node,n=t.xAxis,r=t.noOfCharsToTruncate,i=t.showXAxisLablesTooltip;if(null!==e){var o=(0,w.Ys)(e).call(n),a=0,s=[];return o.selectAll(".tick text").each((function(){var t=(0,w.Ys)(this),e=t.text(),n="".concat(t.text().slice(0,r),"..."),l=t.text().length,c=t.text().split(/\s+/).reverse();s.push(c.length);var u="",d=[],h=0,p=t.attr("y"),f=parseFloat(t.attr("dy")),g=t.text(null).append("tspan").attr("x",0).attr("y",p).attr("id","BaseSpan").attr("dy",f+"em").attr("data-",e);if(i&&l>r)g=t.append("tspan").attr("id","showDots").attr("x",0).attr("y",p).attr("dy",1.1*++h+f+"em").text(n);else if(i&&l<=r)g=t.append("tspan").attr("id","LessLength").attr("x",0).attr("y",p).attr("dy",1.1*++h+f+"em").text(e);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=t.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;o.selectAll("text").each((function(){var t=document.getElementById("WordBreakId"),e=t&&t.getBoundingClientRect(),n=e&&e.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(t,e,n,r,i,o){null!==t&&(0,w.Ys)(t).call(e).selectAll(".tick text").each((function(){var t=(0,w.Ys)(this),e=t.text(),i=o?"...".concat(t.text().slice(0,n)):"".concat(t.text().slice(0,n),"..."),a=t.text().length,s=r?1.5:1,l=t.attr("y"),c=t.attr("x"),u=parseFloat(t.attr("dy"));t.text(null).append("tspan").attr("x",c).attr("y",l).attr("id","BaseSpan").attr("dy",u+"em").attr("data-",e),r&&a>n?t.append("tspan").attr("id","showDots").attr("x",o?0:c).attr("y",l).attr("dy",u).attr("dx",s+0+"em").text(i):t.attr("text-align","start").append("tspan").attr("id","LessLength").attr("x",o?0:c).attr("y",l).attr("dx",s+0+"em").text(e)}))}var $=function(t,e,n){var r=(0,w.Ys)("#".concat(e));if(r.text(t),!r.node())return!1;for(var i=!1,o=r.node().getComputedTextLength();o>n&&t.length>0;)t=t.slice(0,-1),r.text(t+"..."),i=!0,o=r.node().getComputedTextLength();return i},J=function(t,e){void 0===e&&(e="none");var n=0,r=document.createElement("canvas").getContext("2d");if(r){var i=document.querySelector(e);if(i){var o=window.getComputedStyle(i,null),a=o.getPropertyValue("font-weight"),s=o.getPropertyValue("font-size"),l=o.getPropertyValue("font-family");r.font="".concat(a," ").concat(s," ").concat(l)}else r.font='600 10px "Segoe UI"';t.forEach((function(t){n=Math.max(r.measureText(t.toString()).width,n)}))}return n};function Q(t){var e=t.tooltipCls,n=t.xAxis,r=t.id;if(null===n)return null;for(var i=(0,w.Ys)("body").append("div").attr("id",r).attr("class",e).style("opacity",0),o=n.selectAll("#BaseSpan")._groups[0],a=o&&Object.keys(o).length,s=[],l=0;l<a;l++){var c=o[l].dataset&&Object.values(o[l].dataset)[0];s.push(c)}var u=n.selectAll(".tick")._groups[0],d=u&&Object.keys(u).length,h=function(t){var e=u[t];(0,w.Ys)(e).on("mouseover",(function(e){i.style("opacity",.9),i.html(s[t]).style("left",w.B.pageX+"px").style("top",w.B.pageY-28+"px")})).on("mouseout",(function(t){i.style("opacity",0)}))};for(l=0;l<d;l++)h(l)}function tt(t){var e=!1;return t&&t.length>0&&t.forEach((function(t){t.data.length>0&&(e=t.data[0].x instanceof Date)})),e}function et(t,e,n,i,o,a,s,l,c){var u;if(a===C.NumericAxis)switch(i){case b.AreaChart:case b.LineChart:u=function(t,e,n,r){var i=(0,S.Z)(t,(function(t){return(0,S.Z)(t.data,(function(t){return t.x}))})),o=(0,A.Z)(t,(function(t){return(0,A.Z)(t.data,(function(t){return t.x}))})),a=e.left,s=n-e.right;return r?{dStartValue:o,dEndValue:i,rStartValue:a,rEndValue:s}:{dStartValue:i,dEndValue:o,rStartValue:a,rEndValue:s}}(t,e,n,o);break;case b.VerticalStackedBarChart:u=function(t,e,n,r,i){var o=(0,S.Z)(t,(function(t){return t.x})),a=(0,A.Z)(t,(function(t){return t.x})),s=e.left+i/2,l=n-e.right-i/2;return r?{dStartValue:a,dEndValue:o,rStartValue:s,rEndValue:l}:{dStartValue:o,dEndValue:a,rStartValue:s,rEndValue:l}}(t,e,n,o,s);break;case b.VerticalBarChart:u=function(t,e,n,r,i){var o=(0,A.Z)(t,(function(t){return t.x})),a=(0,S.Z)(t,(function(t){return t.x})),s=e.left+i/2,l=n-e.right-i/2;return r?{dStartValue:o,dEndValue:a,rStartValue:s,rEndValue:l}:{dStartValue:a,dEndValue:o,rStartValue:s,rEndValue:l}}(t,e,n,o,s);break;case b.HorizontalBarChartWithAxis:u=function(t,e,n,r,i){var o=(0,A.Z)(t,(function(t){return t.x})),a=r?e.left:e.left+i,s=r?n-e.right-i:n-e.right;return r?{dStartValue:o,dEndValue:0,rStartValue:a,rEndValue:s}:{dStartValue:0,dEndValue:o,rStartValue:a,rEndValue:s}}(t,e,n,o,c);break;default:u={dStartValue:0,dEndValue:0,rStartValue:0,rEndValue:0}}else if(a===C.DateAxis)switch(i){case b.AreaChart:case b.LineChart:case b.VerticalBarChart:case b.VerticalStackedBarChart:u=function(t,e,n,i,o,a,s){var l,c;void 0===o&&(o=[]),a===b.AreaChart||a===b.LineChart?(l=(0,S.Z)(t,(function(t){return(0,S.Z)(t.data,(function(t){return t.x}))})),c=(0,A.Z)(t,(function(t){return(0,A.Z)(t.data,(function(t){return t.x}))})),l=(0,S.Z)((0,r.ev)((0,r.ev)([],o,!0),[l],!1)),c=(0,A.Z)((0,r.ev)((0,r.ev)([],o,!0),[c],!1))):(l=(0,S.Z)(t,(function(t){return t.x})),c=(0,A.Z)(t,(function(t){return t.x})));var u=e.left+(s?s/2:0),d=n-e.right-(s?s/2:0);return i?{dStartValue:c,dEndValue:l,rStartValue:u,rEndValue:d}:{dStartValue:l,dEndValue:c,rStartValue:u,rEndValue:d}}(t,e,n,o,l,i,s);break;default:u={dStartValue:0,dEndValue:0,rStartValue:0,rEndValue:0}}else switch(i){case b.VerticalStackedBarChart:case b.GroupedVerticalBarChart:case b.VerticalBarChart:case b.HeatMapChart:u=function(t,e,n){var r=t.left,i=e-t.right;return n?{dStartValue:0,dEndValue:0,rStartValue:i,rEndValue:r}:{dStartValue:0,dEndValue:0,rStartValue:r,rEndValue:i}}(e,n,o);break;default:u={dStartValue:0,dEndValue:0,rStartValue:0,rEndValue:0}}return u}function nt(t,e,n){var r,i,o;switch(void 0===n&&(n=E.NumericAxis),e){case b.AreaChart:case b.LineChart:r=function(t){var e=(0,A.Z)(t,(function(t){return(0,A.Z)(t.data,(function(t){return t.y}))}));return{startValue:(0,S.Z)(t,(function(t){return(0,S.Z)(t.data,(function(t){return t.y}))})),endValue:e}}(t);break;case b.VerticalStackedBarChart:i=t,o=(0,A.Z)(i,(function(t){return t.y})),r={startValue:(0,S.Z)(i,(function(t){return t.y})),endValue:o};break;case b.VerticalBarChart:r=function(t){var e=(0,A.Z)(t,(function(t){return void 0!==t.lineData?t.y>t.lineData.y?t.y:t.lineData.y:t.y}));return{startValue:(0,S.Z)(t,(function(t){return void 0!==t.lineData?t.y<t.lineData.y?t.y:t.lineData.y:t.y})),endValue:e}}(t);break;case b.HorizontalBarChartWithAxis:r=function(t,e){if(void 0!==e&&e===E.NumericAxis){var n=(0,A.Z)(t,(function(t){return t.y}));return{startValue:(0,S.Z)(t,(function(t){return t.y})),endValue:n}}return{startValue:0,endValue:0}}(t,n);break;default:r={startValue:0,endValue:0}}return r}var rt,it,ot=function(t,e){if(e)switch(typeof t){case"string":return C.StringAxis;case"number":return C.NumericAxis;default:return C.DateAxis}else switch(typeof t){case"string":return E.StringAxis;case"number":return E.NumericAxis;default:return E.DateAxis}};!function(t){t[t.circle=0]="circle",t[t.square=1]="square",t[t.triangle=2]="triangle",t[t.diamond=3]="diamond",t[t.pyramid=4]="pyramid",t[t.hexagon=5]="hexagon",t[t.pentagon=6]="pentagon",t[t.octagon=7]="octagon"}(rt||(rt={})),function(t){t[t.dottedLine=0]="dottedLine"}(it||(it={}));var at=((x={})[rt.circle]={widthRatio:1},x[rt.square]={widthRatio:1},x[rt.triangle]={widthRatio:1},x[rt.diamond]={widthRatio:1},x[rt.pyramid]={widthRatio:1},x[rt.hexagon]={widthRatio:2},x[rt.pentagon]={widthRatio:1.168},x[rt.octagon]={widthRatio:2.414},x),st=function(t,e,n){return void 0===e&&(e="text"),void 0===n&&(n=!0),{role:e,"data-is-focusable":n,"aria-label":(t=null!=t?t:{}).ariaLabel,"aria-labelledby":t.ariaLabelledBy,"aria-describedby":t.ariaDescribedBy}},lt=function(t,e){return t?(e=e||void 0,"number"==typeof t?t.toLocaleString(e):"string"!=typeof t||window.isNaN(Number(t))?t instanceof Date?t.toLocaleDateString(e):t:Number(t).toLocaleString(e)):t};function ct(t){var e=t.node,n=t.xAxis;if(null!==e&&null!==n){var r=0,i=[];(0,w.Ys)(e).call(n).selectAll(".tick").each((function(){var t=this.getAttribute("transform");if(-1===(null==t?void 0:t.indexOf("rotate"))){var e=t.substring(t.indexOf("(")+1,t.indexOf(")")).split(",");2===e.length&&(i.push(e[0]),this.setAttribute("transform","translate(".concat(e[0],",0)rotate(-45)")))}var n=this.getBoundingClientRect(),o=n&&n.height;o>r&&(r=o)}));var o=0;return(0,w.Ys)(e).call(n).selectAll(".tick").each((function(){i.length>o&&(this.setAttribute("transform","translate(".concat(i[o],",").concat(r/2,")rotate(-45)")),o+=1)})),Math.floor(r/1.414)}}function ut(t,e){var n=0;(0,w.td)(".".concat(t)).each((function(){for(var t=(0,w.Ys)(this),r=t.text().split(/\s+/).reverse(),i="",o=[],a=0,s=t.attr("y"),l=t.text(null).append("tspan").attr("id","WordBreakId-".concat(n,"-").concat(a)).attr("x",0).attr("y",s).attr("dy",1.1*a+++"em");i=r.pop();)o.push(i),l.text(o.join(" ")+" "),l.node().getComputedTextLength()>e&&o.length>1&&(o.pop(),l.text(o.join(" ")+" "),o=[i],l=t.append("tspan").attr("id","WordBreakId-".concat(n,"-").concat(a)).attr("x",0).attr("y",s).attr("dy",1.1*a+++"em").text(i));n+=1}))}function dt(t){var e;return e=t<1e3?".2~":".1",(0,D.jH)(e,t)(t)}},9785:function(t,e,n){function r(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}n.d(e,{Z:function(){return r}})},7329:function(t,e,n){n.d(e,{Z:function(){return i}});var r=n(9785);function i(t){let e=t,n=t;function i(t,e,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r<i;){const o=r+i>>>1;n(t[o],e)<0?r=o+1:i=o}return r}return 1===t.length&&(e=(e,n)=>t(e)-n,n=function(t){return(e,n)=>(0,r.Z)(t(e),n)}(t)),{left:i,center:function(t,n,r,o){null==r&&(r=0),null==o&&(o=t.length);const a=i(t,n,r,o-1);return a>r&&e(t[a-1],n)>-e(t[a],n)?a-1:a},right:function(t,e,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r<i;){const o=r+i>>>1;n(t[o],e)>0?i=o:r=o+1}return r}}}},8957:function(t,e,n){function r(t,e){let n;if(void 0===e)for(const e of t)null!=e&&(n<e||void 0===n&&e>=e)&&(n=e);else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(n<i||void 0===n&&i>=i)&&(n=i)}return n}n.d(e,{Z:function(){return r}})},5561:function(t,e,n){function r(t,e){let n;if(void 0===e)for(const e of t)null!=e&&(n>e||void 0===n&&e>=e)&&(n=e);else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(n>i||void 0===n&&i>=i)&&(n=i)}return n}n.d(e,{Z:function(){return r}})},6077:function(t,e,n){n.d(e,{x:function(){return o}});var r={},i=void 0;try{i=window}catch(t){}function o(t,e){if(void 0!==i){var n=i.__packages__=i.__packages__||{};n[t]&&r[t]||(r[t]=e,(n[t]=n[t]||[]).push(e))}}o("@fluentui/set-version","6.0.0")},1786:function(t,e,n){n.d(e,{k4:function(){return J},UK:function(){return Q.U},TS:function(){return tt.TS},lq:function(){return tt.lq},qJ:function(){return et},$v:function(){return nt},bR:function(){return $},e2:function(){return ot},GL:function(){return it},Cn:function(){return lt},gh:function(){return At},ul:function(){return at}});var r=n(13),i=n(4473),o=n(5499),a=n(7373);function s(t){var e=o.Y.getInstance(),n=[];for(var r in t)t.hasOwnProperty(r)&&n.push(r,"{",(0,a.dH)((0,i.Eo)(),t[r]),"}");var s=n.join(""),l=e.classNameFromKey(s);if(l)return l;var c=e.getClassName();return e.insertRule("@keyframes ".concat(c,"{").concat(s,"}"),!0),e.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),B=K(10),H=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(t,e,n){return{animationName:t,animationDuration:e,animationTimingFunction:n,animationFillMode:"both"}}function U(t){return s({from:{transform:"translate3d(".concat(t,"px,0,0)"),pointerEvents:"none"},to:{transform:"translate3d(0,0,0)",pointerEvents:"auto"}})}function j(t){return s({from:{transform:"translate3d(0,".concat(t,"px,0)"),pointerEvents:"none"},to:{transform:"translate3d(0,0,0)",pointerEvents:"auto"}})}function G(t){return s({from:{transform:"translate3d(0,0,0)"},to:{transform:"translate3d(".concat(t,"px,0,0)")}})}function K(t){return s({from:{transform:"translate3d(0,0,0)"},to:{transform:"translate3d(0,".concat(t,"px,0)")}})}var $,J=function(t){var e={},n=function(n){var i;t.hasOwnProperty(n)&&Object.defineProperty(e,n,{get:function(){return void 0===i&&(i=(0,r.y)(t[n]).toString()),i},enumerable:!0,configurable:!0})};for(var i in t)n(i);return e}({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(B),h,l),slideDownOut20:X("".concat(g,",").concat(H),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),tt=n(8473),et="@media screen and (-ms-high-contrast: active), screen and (forced-colors: active)",nt="@media screen and (-ms-high-contrast: white-on-black), screen and (forced-colors: active) and (prefers-color-scheme: dark)",rt=n(9766);function it(t,e,n,r,i,o,a,s){return function(t,e){var n,r;void 0===e&&(e={});var i=e.borderRadius,o=e.inset,a=void 0===o?0:o,s=e.width,l=void 0===s?1:s,c=e.position,u=void 0===c?"relative":c,d=e.highContrastStyle,h=e.borderColor,p=void 0===h?t.palette.white:h,f=e.outlineColor,g=void 0===f?t.palette.neutralSecondary:f,m=e.isFocusedOnly,v=void 0===m||m,_=e.pointerEvents;return{outline:"transparent",position:u,selectors:(n={"::-moz-focus-inner":{border:"0"}},n[".".concat(rt.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:i,selectors:(r={},r[et]=d,r)},n)}}(t,"number"!=typeof e&&e?e:{inset:e,position:n,highContrastStyle:r,borderColor:i,outlineColor:o,isFocusedOnly:a,borderRadius:s})}function ot(){return{selectors:{"&::-moz-focus-inner":{border:0},"&":{outline:"transparent"}}}}!function(t){t.Nav=1,t.ScrollablePane=1,t.FocusStyle=1,t.Coachmark=1e3,t.Layer=1e6,t.KeytipLayer=1000001}($||($={}));var at={position:"absolute",width:1,height:1,margin:-1,padding:0,border:0,overflow:"hidden",whiteSpace:"nowrap"},st=(0,n(156).NF)((function(t,e){var n=o.Y.getInstance();return e?Object.keys(t).reduce((function(e,r){return e[r]=n.getClassName(t[r]),e}),{}):t}));function lt(t,e,n){return st(t,void 0!==n?n:e.disableGlobalClassNames)}var ct,ut=n(9939),dt=n(3820),ht=n(775),pt=function(){return pt=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},pt.apply(this,arguments)},ft="undefined"==typeof window?n.g:window,gt=ft&&ft.CSPSettings&&ft.CSPSettings.nonce,mt=((ct=ft.__themeState__||{theme:void 0,lastStyleElement:void 0,registeredStyles:[]}).runState||(ct=pt({},ct,{perf:{count:0,duration:0},runState:{flushTimer:0,mode:0,buffer:[]}})),ct.registeredThemableStyles||(ct=pt({},ct,{registeredThemableStyles:[]})),ft.__themeState__=ct,ct);function vt(t){mt.theme=t,function(){if(mt.theme){for(var t=[],e=0,n=mt.registeredThemableStyles;e<n.length;e++){var r=n[e];t.push(r.themableStyle)}t.length>0&&(void 0===(o=1)&&(o=3),3!==o&&2!==o||(_t(mt.registeredStyles),mt.registeredStyles=[]),3!==o&&1!==o||(_t(mt.registeredThemableStyles),mt.registeredThemableStyles=[]),i=[].concat.apply([],t),mt.loadStyles?mt.loadStyles(yt(i).styleString,i):function(t){if("undefined"!=typeof document){var e=document.getElementsByTagName("head")[0],n=document.createElement("style"),r=yt(t),i=r.styleString,o=r.themable;n.setAttribute("data-load-themed-styles","true"),n.type="text/css",gt&&n.setAttribute("nonce",gt),n.appendChild(document.createTextNode(i)),mt.perf.count++,e.appendChild(n);var a=document.createEvent("HTMLEvents");a.initEvent("styleinsert",!0,!1),a.args={newStyle:n},document.dispatchEvent(a);var s={styleElement:n,themableStyle:t};o?mt.registeredThemableStyles.push(s):mt.registeredStyles.push(s)}}(i))}var i,o}()}function _t(t){t.forEach((function(t){var e=t&&t.styleElement;e&&e.parentElement&&e.parentElement.removeChild(e)}))}function yt(t){var e=mt.theme,n=!1;return{styleString:(t||[]).map((function(t){var r=t.theme;if(r){n=!0;var i=e?e[r]:void 0,o=t.defaultValue||"inherit";return e&&!i&&console&&!(r in e)&&"undefined"!=typeof DEBUG&&DEBUG&&console.warn('Theming value not provided for "'+r+'". Falling back to "'+o+'".'),i||o}return t.rawString})).join(""),themable:n}}var xt=n(685),bt=(0,xt.j)({}),Ct=[],Et="theme";function St(){var t,e,n,r=(0,dt.J)();(null===(e=null==r?void 0:r.FabricConfig)||void 0===e?void 0:e.legacyTheme)?function(t,e){var n;void 0===e&&(e=!1),bt=(0,xt.j)(t,e),vt((0,ut.pi)((0,ut.pi)((0,ut.pi)((0,ut.pi)({},bt.palette),bt.semanticColors),bt.effects),function(t){for(var e={},n=0,r=Object.keys(t.fonts);n<r.length;n++)for(var i=r[n],o=t.fonts[i],a=0,s=Object.keys(o);a<s.length;a++){var l=s[a],c=i+l.charAt(0).toUpperCase()+l.slice(1),u=o[l];"fontSize"===l&&"number"==typeof u&&(u+="px"),e[c]=u}return e}(bt))),ht.X.applySettings(((n={})[Et]=bt,n)),Ct.forEach((function(t){try{t(bt)}catch(t){}}))}(r.FabricConfig.legacyTheme):ht.X.getSettings([Et]).theme||((null===(n=null==r?void 0:r.FabricConfig)||void 0===n?void 0:n.theme)&&(bt=(0,xt.j)(r.FabricConfig.theme)),ht.X.applySettings(((t={})[Et]=bt,t)))}function At(t){return void 0===t&&(t=!1),!0===t&&(bt=(0,xt.j)({},t)),bt}St(),(0,n(6077).x)("@fluentui/style-utilities","8.10.3"),St()},7045:function(t,e,n){n.d(e,{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(t,e,n){n.d(e,{j:function(){return P}});var r,i=n(7045);!function(t){t.depth0="0 0 0 0 transparent",t.depth4="0 1.6px 3.6px 0 rgba(0, 0, 0, 0.132), 0 0.3px 0.9px 0 rgba(0, 0, 0, 0.108)",t.depth8="0 3.2px 7.2px 0 rgba(0, 0, 0, 0.132), 0 0.6px 1.8px 0 rgba(0, 0, 0, 0.108)",t.depth16="0 6.4px 14.4px 0 rgba(0, 0, 0, 0.132), 0 1.2px 3.6px 0 rgba(0, 0, 0, 0.108)",t.depth64="0 25.6px 57.6px 0 rgba(0, 0, 0, 0.22), 0 4.8px 14.4px 0 rgba(0, 0, 0, 0.18)"}(r||(r={}));var o={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(t,e,n){return{fontFamily:n,MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontSize:t,fontWeight:e}}var p,f,g,m,v,_,y=n(2874),x=n(3820),b=n(5114),C="language",E=(f=function(t){for(var e in d)if(d.hasOwnProperty(e)&&t&&0===e.indexOf(t))return d[e];return u}(function(t){if(void 0===t&&(t="sessionStorage"),void 0===p){var e=(0,y.M)(),n="localStorage"===t?function(t){var e=null;try{var n=(0,x.J)();e=n?n.localStorage.getItem(t):null}catch(t){}return e}(C):"sessionStorage"===t?b.r(C):void 0;n&&(p=n),void 0===p&&e&&(p=e.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(t,e,n,r){!function(t){var e=s.Y.getInstance(),n=(0,l.dH)((0,a.Eo)(),t);if(!e.classNameFromKey(n)){var r=e.getClassName();e.insertRule("@font-face{".concat(n,"}"),!0),e.cacheClassName(r,n,[],["font-face",n])}}({fontFamily:t="'".concat(t,"'"),src:(void 0!==r?"local('".concat(r,"'),"):"")+"url('".concat(e,".woff2') format('woff2'),")+"url('".concat(e,".woff') format('woff')"),fontWeight:n,fontStyle:"normal",fontDisplay:"swap"})}function A(t,e,n,r,i){void 0===r&&(r="segoeui");var o="".concat(t,"/").concat(n,"/").concat(r);S(e,o+"-light",c.lq.light,i&&i+" Light"),S(e,o+"-semilight",c.lq.semilight,i&&i+" SemiLight"),S(e,o+"-regular",c.lq.regular,i),S(e,o+"-semibold",c.lq.semibold,i&&i+" SemiBold"),S(e,o+"-bold",c.lq.bold,i&&i+" Bold")}function L(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=0,i=e;r<i.length;r++)k(t||{},i[r]);return t}function k(t,e,n){for(var r in void 0===n&&(n=[]),n.push(e),e)if(e.hasOwnProperty(r)&&"__proto__"!==r&&"constructor"!==r&&"prototype"!==r){var i=e[r];if("object"!=typeof i||null===i||Array.isArray(i))t[r]=i;else{var o=n.indexOf(i)>-1;t[r]=o?i:k(t[r]||{},i,n)}}return n.pop(),t}!function(t){if(t){var e="".concat(t,"/fonts");A(e,c.Qm.Thai,"leelawadeeui-thai","leelawadeeui"),A(e,c.Qm.Arabic,"segoeui-arabic"),A(e,c.Qm.Cyrillic,"segoeui-cyrillic"),A(e,c.Qm.EastEuropean,"segoeui-easteuropean"),A(e,c.Qm.Greek,"segoeui-greek"),A(e,c.Qm.Hebrew,"segoeui-hebrew"),A(e,c.Qm.Vietnamese,"segoeui-vietnamese"),A(e,c.Qm.WestEuropean,"segoeui-westeuropean","segoeui","Segoe UI"),A(e,c.II.Selawik,"selawik","selawik"),A(e,c.Qm.Armenian,"segoeui-armenian"),A(e,c.Qm.Georgian,"segoeui-georgian"),S("Leelawadee UI Web","".concat(e,"/leelawadeeui-thai/leelawadeeui-semilight"),c.lq.light),S("Leelawadee UI Web","".concat(e,"/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(t,e,n,r,i){return void 0===i&&(i=!1),function(t,e){var n="";return!0===e&&(n=" /* @deprecated */"),t.listTextColor=t.listText+n,t.menuItemBackgroundChecked+=n,t.warningHighlight+=n,t.warningText=t.messageText+n,t.successText+=n,t}(D(t,e,(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),i)}function D(t,e,n,r,i){void 0===i&&(i=!1);var o={},a=t||{},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&&(o.bodyBackground=s,o.bodyFrameBackground=s,o.accentButtonText=s,o.buttonBackground=s,o.primaryButtonText=s,o.primaryButtonTextHovered=s,o.primaryButtonTextPressed=s,o.inputBackground=s,o.inputForegroundChecked=s,o.listBackground=s,o.menuBackground=s,o.cardStandoutBackground=s),l&&(o.bodyTextChecked=l,o.buttonTextCheckedHovered=l),c&&(o.link=c,o.primaryButtonBackground=c,o.inputBackgroundChecked=c,o.inputIcon=c,o.inputFocusBorderAlt=c,o.menuIcon=c,o.menuHeader=c,o.accentButtonBackground=c),u&&(o.primaryButtonBackgroundPressed=u,o.inputBackgroundCheckedHovered=u,o.inputIconHovered=u),d&&(o.linkHovered=d),h&&(o.primaryButtonBackgroundHovered=h),p&&(o.inputPlaceholderBackgroundChecked=p),f&&(o.bodyBackgroundChecked=f,o.bodyFrameDivider=f,o.bodyDivider=f,o.variantBorder=f,o.buttonBackgroundCheckedHovered=f,o.buttonBackgroundPressed=f,o.listItemBackgroundChecked=f,o.listHeaderBackgroundPressed=f,o.menuItemBackgroundPressed=f,o.menuItemBackgroundChecked=f),g&&(o.bodyBackgroundHovered=g,o.buttonBackgroundHovered=g,o.buttonBackgroundDisabled=g,o.buttonBorderDisabled=g,o.primaryButtonBackgroundDisabled=g,o.disabledBackground=g,o.listItemBackgroundHovered=g,o.listHeaderBackgroundHovered=g,o.menuItemBackgroundHovered=g),v&&(o.primaryButtonTextDisabled=v,o.disabledSubtext=v),_&&(o.listItemBackgroundCheckedHovered=_),C&&(o.disabledBodyText=C,o.variantBorderHovered=(null==n?void 0:n.variantBorderHovered)||C,o.buttonTextDisabled=C,o.inputIconDisabled=C,o.disabledText=C),y&&(o.bodyText=y,o.actionLink=y,o.buttonText=y,o.inputBorderHovered=y,o.inputText=y,o.listText=y,o.menuItemText=y),S&&(o.bodyStandoutBackground=S,o.defaultStateBackground=S),m&&(o.actionLinkHovered=m,o.buttonTextHovered=m,o.buttonTextChecked=m,o.buttonTextPressed=m,o.inputTextHovered=m,o.menuItemTextHovered=m),x&&(o.bodySubtext=x,o.focusBorder=x,o.inputBorder=x,o.smallInputBorder=x,o.inputPlaceholderText=x),b&&(o.buttonBorder=b),E&&(o.disabledBodySubtext=E,o.disabledBorder=E,o.buttonBackgroundChecked=E,o.menuDivider=E),A&&(o.accentButtonBackground=A),(null==e?void 0:e.elevation4)&&(o.cardShadow=e.elevation4),!r&&(null==e?void 0:e.elevation8)?o.cardShadowHovered=e.elevation8:o.variantBorderHovered&&(o.cardShadowHovered="0 0 1px "+o.variantBorderHovered),(0,T.pi)((0,T.pi)({},o),n)}var M={s2:"4px",s1:"8px",m:"16px",l1:"20px",l2:"32px"};function P(t,e){void 0===t&&(t={}),void 0===e&&(e=!1);var n=!!t.isInverted;return function(t,e){var n,r,i;void 0===e&&(e={});var o=L({},t,e,{semanticColors:D(e.palette,e.effects,e.semanticColors,void 0===e.isInverted?t.isInverted:e.isInverted)});if((null===(n=e.palette)||void 0===n?void 0:n.themePrimary)&&!(null===(r=e.palette)||void 0===r?void 0:r.accent)&&(o.palette.accent=e.palette.themePrimary),e.defaultFontStyle)for(var a=0,s=Object.keys(o.fonts);a<s.length;a++){var l=s[a];o.fonts[l]=L(o.fonts[l],e.defaultFontStyle,null===(i=null==e?void 0:e.fonts)||void 0===i?void 0:i[l])}return o}({palette:i.U,effects:o,fonts:E,spacing:M,isInverted:n,disableGlobalClassNames:!1,semanticColors:w(i.U,o,void 0,n,e),rtl:void 0},t)}},8473:function(t,e,n){var r,i,o,a,s;n.d(e,{II:function(){return i},Qm:function(){return r},TS:function(){return o},lq:function(){return a}}),function(t){t.Arabic="Segoe UI Web (Arabic)",t.Cyrillic="Segoe UI Web (Cyrillic)",t.EastEuropean="Segoe UI Web (East European)",t.Greek="Segoe UI Web (Greek)",t.Hebrew="Segoe UI Web (Hebrew)",t.Thai="Leelawadee UI Web",t.Vietnamese="Segoe UI Web (Vietnamese)",t.WestEuropean="Segoe UI Web (West European)",t.Selawik="Selawik Web",t.Armenian="Segoe UI Web (Armenian)",t.Georgian="Segoe UI Web (Georgian)"}(r||(r={})),function(t){t.Arabic="'".concat(r.Arabic,"'"),t.ChineseSimplified="'Microsoft Yahei UI', Verdana, Simsun",t.ChineseTraditional="'Microsoft Jhenghei UI', Pmingliu",t.Cyrillic="'".concat(r.Cyrillic,"'"),t.EastEuropean="'".concat(r.EastEuropean,"'"),t.Greek="'".concat(r.Greek,"'"),t.Hebrew="'".concat(r.Hebrew,"'"),t.Hindi="'Nirmala UI'",t.Japanese="'Yu Gothic UI', 'Meiryo UI', Meiryo, 'MS Pgothic', Osaka",t.Korean="'Malgun Gothic', Gulim",t.Selawik="'".concat(r.Selawik,"'"),t.Thai="'Leelawadee UI Web', 'Kmer UI'",t.Vietnamese="'".concat(r.Vietnamese,"'"),t.WestEuropean="'".concat(r.WestEuropean,"'"),t.Armenian="'".concat(r.Armenian,"'"),t.Georgian="'".concat(r.Georgian,"'")}(i||(i={})),function(t){t.size10="10px",t.size12="12px",t.size14="14px",t.size16="16px",t.size18="18px",t.size20="20px",t.size24="24px",t.size28="28px",t.size32="32px",t.size42="42px",t.size68="68px",t.mini="10px",t.xSmall="10px",t.small="12px",t.smallPlus="12px",t.medium="14px",t.mediumPlus="16px",t.icon="16px",t.large="18px",t.xLarge="20px",t.xLargePlus="24px",t.xxLarge="28px",t.xxLargePlus="32px",t.superLarge="42px",t.mega="68px"}(o||(o={})),function(t){t.light=100,t.semilight=300,t.regular=400,t.semibold=600,t.bold=700}(a||(a={})),function(t){t.xSmall="10px",t.small="12px",t.medium="16px",t.large="20px"}(s||(s={}))},8461:function(t,e,n){n.d(e,{y:function(){return f}});var r=n(5499),i=n(4270),o=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(t){void 0===t&&(t={});var e=new Map,n=0,r=0,h=d;return function(f,g){var v;if(void 0===g&&(g={}),t.useStaticStyles&&"function"==typeof f&&f.__noStyleOverride__)return f(g);r++;var _=e,y=g.theme,x=y&&void 0!==y.rtl?y.rtl:(0,s.zg)(),b=t.disableCaching;if(h!==d&&(h=d,e=new Map,n=0),t.disableCaching||(_=m(e,f),_=m(_,g)),!b&&_[p]||(_[p]=void 0===f?{}:function(t,e){var n={subComponentStyles:{}};if(!t[0]&&t.length<=1)return{subComponentStyles:{}};var r=i.m.apply(void 0,t),s=[];for(var l in r)if(r.hasOwnProperty(l)){if("subComponentStyles"===l){n.subComponentStyles=r.subComponentStyles||{};continue}var c=r[l],u=(0,o.U)(c),d=u.classes,h=u.objects;(null==h?void 0:h.length)?(g=(0,a.aj)(e||{},{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==e?void 0:e.specificityMultiplier)}return n}(["function"==typeof f?f(g):f],{rtl:!!x,specificityMultiplier:t.useStaticStyles?u:void 0}),b||n++),n>(t.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()),e.clear(),n=0,t.disableCaching=!0}return _[p]}}function g(t,e){return e=function(t){switch(t){case void 0:return"__undefined__";case null:return"__null__";default:return t}}(e),t.has(e)||t.set(e,new Map),t.get(e)}function m(t,e){if("function"==typeof e)if(e.__cachedInputs__)for(var n=0,r=e.__cachedInputs__;n<r.length;n++)t=g(t,r[n]);else t=g(t,e);else if("object"==typeof e)for(var i in e)e.hasOwnProperty(i)&&(t=g(t,e[i]));return t}},775:function(t,e,n){n.d(e,{X:function(){return f}});var r=n(9939),i=n(3820),o="__globalSettings__",a="__callbacks__",s=0,l=function(){function t(){}return t.getValue=function(t,e){var n=c();return void 0===n[t]&&(n[t]="function"==typeof e?e():e),n[t]},t.setValue=function(t,e){var n=c(),r=n[a],i=n[t];if(e!==i){n[t]=e;var o={oldValue:i,value:e,key:t};for(var s in r)r.hasOwnProperty(s)&&r[s](o)}return e},t.addChangeListener=function(t){var e=t.__id__,n=u();e||(e=t.__id__=String(s++)),n[e]=t},t.removeChangeListener=function(t){delete u()[t.__id__]},t}();function c(){var t,e=(0,i.J)()||{};return e[o]||(e[o]=((t={})[a]={},t)),e[o]}function u(){return c()[a]}var d={settings:{},scopedSettings:{},inCustomizerContext:!1},h=l.getValue("customizations",{settings:{},scopedSettings:{},inCustomizerContext:!1}),p=[],f=function(){function t(){}return t.reset=function(){h.settings={},h.scopedSettings={}},t.applySettings=function(e){h.settings=(0,r.pi)((0,r.pi)({},h.settings),e),t._raiseChange()},t.applyScopedSettings=function(e,n){h.scopedSettings[e]=(0,r.pi)((0,r.pi)({},h.scopedSettings[e]),n),t._raiseChange()},t.getSettings=function(t,e,n){void 0===n&&(n=d);for(var r={},i=e&&n.scopedSettings[e]||{},o=e&&h.scopedSettings[e]||{},a=0,s=t;a<s.length;a++){var l=s[a];r[l]=i[l]||n.settings[l]||o[l]||h.settings[l]}return r},t.applyBatchedUpdates=function(e,n){t._suppressUpdates=!0;try{e()}catch(t){}t._suppressUpdates=!1,n||t._raiseChange()},t.observe=function(t){p.push(t)},t.unobserve=function(t){p=p.filter((function(e){return e!==t}))},t._raiseChange=function(){t._suppressUpdates||p.forEach((function(t){return t()}))},t}()},2049:function(t,e,n){n.d(e,{i:function(){return r}});var r=n(7363).createContext({customizations:{inCustomizerContext:!1,settings:{},scopedSettings:{}}})},8873:function(t,e,n){function r(){return"undefined"!=typeof window&&!(!window.document||!window.document.createElement)}n.d(e,{N:function(){return r}})},2874:function(t,e,n){n.d(e,{M:function(){return i}});var r=n(8873);function i(t){if((0,r.N)()&&"undefined"!=typeof document){var e=t;return e&&e.ownerDocument?e.ownerDocument:document}}},3820:function(t,e,n){n.d(e,{J:function(){return o}});var r=n(8873),i=void 0;try{i=window}catch(t){}function o(t){if((0,r.N)()&&void 0!==i){var e=t;return e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:i}}},156:function(t,e,n){n.d(e,{Ct:function(){return d},NF:function(){return u}});var r=n(5499),i=!1,o=0,a={empty:!0},s={},l="undefined"==typeof WeakMap?null:WeakMap;function c(){o++}function u(t,e,n){if(void 0===e&&(e=100),void 0===n&&(n=!1),!l)return t;if(!i){var u=r.Y.getInstance();u&&u.onReset&&r.Y.getInstance().onReset(c),i=!0}var d,p=0,f=o;return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var l,c=d;(void 0===d||f!==o||e>0&&p>e)&&(d=h(),p=0,f=o),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=t.apply(void 0,r),p++),!n||null!==c.value&&void 0!==c.value||(c.value=t.apply(void 0,r)),c.value}}function d(t){if(!l)return t;var e=new l;return function(n){if(!n||"function"!=typeof n&&"object"!=typeof n)return t(n);if(e.has(n))return e.get(n);var r=t(n);return e.set(n,r),r}}function h(){return{map:l?new l:null}}},116:function(t,e,n){n.d(e,{zg:function(){return l}});var r,i=n(2874),o=n(5114),a=n(4473),s="isRTL";function l(t){if(void 0===t&&(t={}),void 0!==t.rtl)return t.rtl;if(void 0===r){var e=(0,o.r)(s);null!==e&&function(t,e){void 0===e&&(e=!1);var n=(0,i.M)();n&&n.documentElement.setAttribute("dir",t?"rtl":"ltr"),e&&(0,o.L)(s,t?"1":"0"),r=t,(0,a.ok)(r)}(r="1"===e);var n=(0,i.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(t,e,n){n.d(e,{L:function(){return o},r:function(){return i}});var r=n(3820);function i(t){var e=null;try{var n=(0,r.J)();e=n?n.sessionStorage.getItem(t):null}catch(t){}return e}function o(t,e){var n;try{null===(n=(0,r.J)())||void 0===n||n.sessionStorage.setItem(t,e)}catch(t){}}},9766:function(t,e,n){n.d(e,{G$:function(){return r}});var r="ms-Fabric--isFocusVisible"},9085:function(t,e,n){n.d(e,{z:function(){return c}});var r=n(9939),i=n(7363),o=n(4270),a=n(775),s=n(2049);var l=["theme","styles"];function c(t,e,n,c,u){var d=(c=c||{scope:"",fields:void 0}).scope,h=c.fields,p=void 0===h?l:h,f=i.forwardRef((function(l,c){var u,h,f,g,m,v,_=i.useRef(),y=(u=p,h=d,f=i.useState(0)[1],g=function(){return f((function(t){return++t}))},m=i.useContext(s.i).customizations,v=m.inCustomizerContext,i.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(t){return function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=[],i=0,a=e;i<a.length;i++){var s=a[i];s&&r.push("function"==typeof s?s(t):s)}return 1===r.length?r[0]:r.length?o.m.apply(void 0,r):{}}(t,e,x,S)};A.__cachedInputs__=[e,x,S],A.__noStyleOverride__=!x&&!S,_.current=A}return i.createElement(t,(0,r.pi)({ref:c},b,C,l,{styles:_.current}))}));f.displayName="Styled".concat(t.displayName||t.name);var g=u?i.memo(f):f;return f.displayName&&(g.displayName=f.displayName),g}},7363:function(t){t.exports=React},6775:function(t,e,n){n.d(e,{Z:function(){return o}});var r=n(9941),i=n(5795);function o(){var t,e,n=(0,i.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,i=r?c:l,o=r?l:c;t=(o-i)/Math.max(1,n-d+2*h),u&&(t=Math.floor(t)),i+=(o-i-t*(n-d))*p,e=t*(1-d),u&&(i=Math.round(i),e=Math.round(e));var f=function(t,e,n){t=+t,e=+e,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((e-t)/n)),o=new Array(i);++r<i;)o[r]=t+r*n;return o}(n).map((function(e){return i+t*e}));return s(r?f.reverse():f)}return delete n.unknown,n.domain=function(t){return arguments.length?(a(t),f()):a()},n.range=function(t){return arguments.length?([l,c]=t,l=+l,c=+c,f()):[l,c]},n.rangeRound=function(t){return[l,c]=t,l=+l,c=+c,u=!0,f()},n.bandwidth=function(){return e},n.step=function(){return t},n.round=function(t){return arguments.length?(u=!!t,f()):u},n.padding=function(t){return arguments.length?(d=Math.min(1,h=+t),f()):d},n.paddingInner=function(t){return arguments.length?(d=Math.min(1,t),f()):d},n.paddingOuter=function(t){return arguments.length?(h=+t,f()):h},n.align=function(t){return arguments.length?(p=Math.max(0,Math.min(1,t)),f()):p},n.copy=function(){return o(a(),[l,c]).round(u).paddingInner(d).paddingOuter(h).align(p)},r.o.apply(f(),arguments)}},7451:function(t,e,n){n.d(e,{JG:function(){return ot},ZP:function(){return at}});var r=n(9785),i=n(7329);const o=(0,i.Z)(r.Z),a=o.right;o.left,(0,i.Z)((function(t){return null===t?NaN:+t})).center;var s=a;function l(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function c(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[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(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=m.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?k(e):3===n?new D(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?new D(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?new D(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=v.exec(t))?new D(e[1],e[2],e[3],1):(e=_.exec(t))?new D(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=y.exec(t))?T(e[1],e[2],e[3],e[4]):(e=x.exec(t))?T(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=b.exec(t))?I(e[1],e[2]/100,e[3]/100,1):(e=C.exec(t))?I(e[1],e[2]/100,e[3]/100,e[4]):E.hasOwnProperty(t)?k(E[t]):"transparent"===t?new D(NaN,NaN,NaN,0):null}function k(t){return new D(t>>16&255,t>>8&255,255&t,1)}function T(t,e,n,r){return r<=0&&(t=e=n=NaN),new D(t,e,n,r)}function w(t,e,n,r){return 1===arguments.length?((i=t)instanceof u||(i=L(i)),i?new D((i=i.rgb()).r,i.g,i.b,i.opacity):new D):new D(t,e,n,null==r?1:r);var i}function D(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function M(){return"#"+F(this.r)+F(this.g)+F(this.b)}function P(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"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===t?")":", "+t+")")}function F(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function I(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new V(t,e,n,r)}function N(t){if(t instanceof V)return new V(t.h,t.s,t.l,t.opacity);if(t instanceof u||(t=L(t)),!t)return new V;if(t instanceof V)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),a=NaN,s=o-i,l=(o+i)/2;return s?(a=e===o?(n-r)/s+6*(n<r):n===o?(r-e)/s+2:(e-n)/s+4,s/=l<.5?o+i:2-o-i,a*=60):s=l>0&&l<1?0:a,new V(a,s,l,t.opacity)}function V(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function O(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function B(t,e,n,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*n+(1+3*t+3*o-3*a)*r+a*i)/6}function H(t){return function(){return t}}function R(t,e){var n=e-t;return n?function(t,e){return function(n){return t+n*e}}(t,n):H(isNaN(t)?e:t)}l(u,L,{copy:function(t){return Object.assign(new this.constructor,this,t)},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(t){return t=null==t?h:Math.pow(h,t),new D(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?d:Math.pow(d,t),new D(this.r*t,this.g*t,this.b*t,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(t,e,n,r){return 1===arguments.length?N(t):new V(t,e,n,null==r?1:r)}),c(u,{brighter:function(t){return t=null==t?h:Math.pow(h,t),new V(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?d:Math.pow(d,t),new V(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new D(O(t>=240?t-240:t+120,i,r),O(t,i,r),O(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var z=function t(e){var n=function(t){return 1==(t=+t)?R:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):H(isNaN(e)?n:e)}}(e);function r(t,e){var r=n((t=w(t)).r,(e=w(e)).r),i=n(t.g,e.g),o=n(t.b,e.b),a=R(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=o(e),t.opacity=a(e),t+""}}return r.gamma=t,r}(1);function W(t){return function(e){var n,r,i=e.length,o=new Array(i),a=new Array(i),s=new Array(i);for(n=0;n<i;++n)r=w(e[n]),o[n]=r.r||0,a[n]=r.g||0,s[n]=r.b||0;return o=t(o),a=t(a),s=t(s),r.opacity=1,function(t){return r.r=o(t),r.g=a(t),r.b=s(t),r+""}}}function Y(t,e){var n,r=e?e.length:0,i=t?Math.min(r,t.length):0,o=new Array(i),a=new Array(r);for(n=0;n<i;++n)o[n]=$(t[n],e[n]);for(;n<r;++n)a[n]=e[n];return function(t){for(n=0;n<i;++n)a[n]=o[n](t);return a}}function Z(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}function q(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function X(t,e){var n,r={},i={};for(n in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)n in t?r[n]=$(t[n],e[n]):i[n]=e[n];return function(t){for(n in r)i[n]=r[n](t);return i}}W((function(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),i=t[r],o=t[r+1],a=r>0?t[r-1]:2*i-o,s=r<e-1?t[r+2]:2*o-i;return B((n-r/e)*e,a,i,o,s)}})),W((function(t){var e=t.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*e),i=t[(r+e-1)%e],o=t[r%e],a=t[(r+1)%e],s=t[(r+2)%e];return B((n-r/e)*e,i,o,a,s)}}));var U=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,j=new RegExp(U.source,"g");function G(t,e){var n,r,i,o=U.lastIndex=j.lastIndex=0,a=-1,s=[],l=[];for(t+="",e+="";(n=U.exec(t))&&(r=j.exec(e));)(i=r.index)>o&&(i=e.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,l.push({i:a,x:q(n,r)})),o=j.lastIndex;return o<e.length&&(i=e.slice(o),s[a]?s[a]+=i:s[++a]=i),s.length<2?l[0]?function(t){return function(e){return t(e)+""}}(l[0].x):function(t){return function(){return t}}(e):(e=l.length,function(t){for(var n,r=0;r<e;++r)s[(n=l[r]).i]=n.x(t);return s.join("")})}function K(t,e){e||(e=[]);var n,r=t?Math.min(e.length,t.length):0,i=e.slice();return function(o){for(n=0;n<r;++n)i[n]=t[n]*(1-o)+e[n]*o;return i}}function $(t,e){var n,r,i=typeof e;return null==e||"boolean"===i?H(e):("number"===i?q:"string"===i?(n=L(e))?(e=n,z):G:e instanceof L?z:e instanceof Date?Z:(r=e,!ArrayBuffer.isView(r)||r instanceof DataView?Array.isArray(e)?Y:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?X:q:K))(t,e)}function J(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}function Q(t){return+t}var tt=[0,1];function et(t){return t}function nt(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:(n=isNaN(e)?NaN:.5,function(){return n});var n}function rt(t,e,n){var r=t[0],i=t[1],o=e[0],a=e[1];return i<r?(r=nt(i,r),o=n(a,o)):(r=nt(r,i),o=n(o,a)),function(t){return o(r(t))}}function it(t,e,n){var r=Math.min(t.length,e.length)-1,i=new Array(r),o=new Array(r),a=-1;for(t[r]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++a<r;)i[a]=nt(t[a],t[a+1]),o[a]=n(e[a],e[a+1]);return function(e){var n=s(t,e,1,r)-1;return o[n](i[n](e))}}function ot(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function at(){return function(){var t,e,n,r,i,o,a=tt,s=tt,l=$,c=et;function u(){var t,e,n,l=Math.min(a.length,s.length);return c!==et&&(t=a[0],e=a[l-1],t>e&&(n=t,t=e,e=n),c=function(n){return Math.max(t,Math.min(e,n))}),r=l>2?it:rt,i=o=null,d}function d(e){return null==e||isNaN(e=+e)?n:(i||(i=r(a.map(t),s,l)))(t(c(e)))}return d.invert=function(n){return c(e((o||(o=r(s,a.map(t),q)))(n)))},d.domain=function(t){return arguments.length?(a=Array.from(t,Q),u()):a.slice()},d.range=function(t){return arguments.length?(s=Array.from(t),u()):s.slice()},d.rangeRound=function(t){return s=Array.from(t),l=J,u()},d.clamp=function(t){return arguments.length?(c=!!t||et,u()):c!==et},d.interpolate=function(t){return arguments.length?(l=t,u()):l},d.unknown=function(t){return arguments.length?(n=t,d):n},function(n,r){return t=n,e=r,u()}}()(et,et)}},9941:function(t,e,n){function r(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}n.d(e,{o:function(){return r}})},8815:function(t,e,n){n.d(e,{Z:function(){return p}});var r=Math.sqrt(50),i=Math.sqrt(10),o=Math.sqrt(2);function a(t,e,n){var a=(e-t)/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>=i?5:l>=o?2:1)*Math.pow(10,s):-Math.pow(10,-s)/(l>=r?10:l>=i?5:l>=o?2:1)}var s=n(7451),l=n(9941),c=n(4116),u=n(4783),d=n(1783);function h(t){var e=t.domain;return t.ticks=function(t){var n=e();return function(t,e,n){var r,i,o,s,l=-1;if(n=+n,(t=+t)==(e=+e)&&n>0)return[t];if((r=e<t)&&(i=t,t=e,e=i),0===(s=a(t,e,n))||!isFinite(s))return[];if(s>0){let n=Math.round(t/s),r=Math.round(e/s);for(n*s<t&&++n,r*s>e&&--r,o=new Array(i=r-n+1);++l<i;)o[l]=(n+l)*s}else{s=-s;let n=Math.round(t*s),r=Math.round(e*s);for(n/s<t&&++n,r/s>e&&--r,o=new Array(i=r-n+1);++l<i;)o[l]=(n+l)/s}return r&&o.reverse(),o}(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var a=e();return function(t,e,n,a){var s,l=function(t,e,n){var a=Math.abs(e-t)/Math.max(0,n),s=Math.pow(10,Math.floor(Math.log(a)/Math.LN10)),l=a/s;return l>=r?s*=10:l>=i?s*=5:l>=o&&(s*=2),e<t?-s:s}(t,e,n);switch((a=(0,c.Z)(null==a?",f":a)).type){case"s":var h=Math.max(Math.abs(t),Math.abs(e));return null!=a.precision||isNaN(s=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor((0,u.Z)(e)/3)))-(0,u.Z)(Math.abs(t)))}(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(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,(0,u.Z)(e)-(0,u.Z)(t))+1}(l,Math.max(Math.abs(t),Math.abs(e))))||(a.precision=s-("e"===a.type));break;case"f":case"%":null!=a.precision||isNaN(s=function(t){return Math.max(0,-(0,u.Z)(Math.abs(t)))}(l))||(a.precision=s-2*("%"===a.type))}return(0,d.WU)(a)}(a[0],a[a.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10);var r,i,o=e(),s=0,l=o.length-1,c=o[s],u=o[l],d=10;for(u<c&&(i=c,c=u,u=i,i=s,s=l,l=i);d-- >0;){if((i=a(c,u,n))===r)return o[s]=c,o[l]=u,e(o);if(i>0)c=Math.floor(c/i)*i,u=Math.ceil(u/i)*i;else{if(!(i<0))break;c=Math.ceil(c*i)/i,u=Math.floor(u*i)/i}r=i}return t},t}function p(){var t=(0,s.ZP)();return t.copy=function(){return(0,s.JG)(t,p())},l.o.apply(t,arguments),h(t)}},5795:function(t,e,n){n.d(e,{Z:function(){return d}});class r extends Map{constructor(t,e=l){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(const[e,n]of t)this.set(e,n)}get(t){return super.get(o(this,t))}has(t){return super.has(o(this,t))}set(t,e){return super.set(a(this,t),e)}delete(t){return super.delete(s(this,t))}}class i extends Set{constructor(t,e=l){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(const e of t)this.add(e)}has(t){return super.has(o(this,t))}add(t){return super.add(a(this,t))}delete(t){return super.delete(s(this,t))}}function o({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):n}function a({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):(t.set(r,n),n)}function s({_intern:t,_key:e},n){const r=e(n);return t.has(r)&&(n=t.get(n),t.delete(r)),n}function l(t){return null!==t&&"object"==typeof t?t.valueOf():t}var c=n(9941);const u=Symbol("implicit");function d(){var t=new r,e=[],n=[],i=u;function o(r){let o=t.get(r);if(void 0===o){if(i!==u)return i;t.set(r,o=e.push(r)-1)}return n[o%n.length]}return o.domain=function(n){if(!arguments.length)return e.slice();e=[],t=new r;for(const r of n)t.has(r)||t.set(r,e.push(r)-1);return o},o.range=function(t){return arguments.length?(n=Array.from(t),o):n.slice()},o.unknown=function(t){return arguments.length?(i=t,o):i},o.copy=function(){return d(e,n).unknown(i)},c.o.apply(o,arguments),o}},8639:function(t,e,n){n.d(e,{Z:function(){return B}});var r=Math.sqrt(50),i=Math.sqrt(10),o=Math.sqrt(2);function a(t,e,n){var a=Math.abs(e-t)/Math.max(0,n),s=Math.pow(10,Math.floor(Math.log(a)/Math.LN10)),l=a/s;return l>=r?s*=10:l>=i?s*=5:l>=o&&(s*=2),e<t?-s:s}var s=n(4827),l=n(4315),c=(0,l.Z)((function(){}),(function(t,e){t.setTime(+t+e)}),(function(t,e){return e-t}));c.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?(0,l.Z)((function(e){e.setTime(Math.floor(e/t)*t)}),(function(e,n){e.setTime(+e+n*t)}),(function(e,n){return(n-e)/t})):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(t){t.setUTCSeconds(0,0)}),(function(t,e){t.setTime(+t+e*s.yB)}),(function(t,e){return(e-t)/s.yB}),(function(t){return t.getUTCMinutes()})),y=_,x=(_.range,(0,l.Z)((function(t){t.setUTCMinutes(0,0,0)}),(function(t,e){t.setTime(+t+e*s.Y2)}),(function(t,e){return(e-t)/s.Y2}),(function(t){return t.getUTCHours()}))),b=x,C=(x.range,n(2605)),E=n(3787),S=(0,l.Z)((function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCMonth(t.getUTCMonth()+e)}),(function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()})),A=S,L=(S.range,n(2527));function k(t,e,n,r,i,o){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],[o,1,s.yB],[o,5,5*s.yB],[o,15,15*s.yB],[o,30,30*s.yB],[i,1,s.Y2],[i,3,3*s.Y2],[i,6,6*s.Y2],[i,12,12*s.Y2],[r,1,s.UD],[r,2,2*s.UD],[n,1,s.iM],[e,1,s.jz],[e,3,3*s.jz],[t,1,s.qz]];function c(e,n,r){const i=Math.abs(n-e)/r,o=function(t){let e=t,n=t;function r(t,e,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r<i;){const o=r+i>>>1;n(t[o],e)<0?r=o+1:i=o}return r}return 1===t.length&&(e=(e,n)=>t(e)-n,n=function(t){return(e,n)=>{return(r=t(e))<(i=n)?-1:r>i?1:r>=i?0:NaN;var r,i}}(t)),{left:r,center:function(t,n,i,o){null==i&&(i=0),null==o&&(o=t.length);const a=r(t,n,i,o-1);return a>i&&e(t[a-1],n)>-e(t[a],n)?a-1:a},right:function(t,e,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r<i;){const o=r+i>>>1;n(t[o],e)>0?i=o:r=o+1}return r}}}((([,,t])=>t)).right(l,i);if(o===l.length)return t.every(a(e/s.qz,n/s.qz,r));if(0===o)return u.every(Math.max(a(e,n,r),1));const[c,d]=l[i/l[o-1][2]<l[o][2]/i?o-1:o];return c.every(d)}return[function(t,e,n){const r=e<t;r&&([t,e]=[e,t]);const i=n&&"function"==typeof n.range?n:c(t,e,n),o=i?i.range(t,+e+1):[];return r?o.reverse():o},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(t){return new Date(t)}function V(t){return t instanceof Date?+t:+new Date(+t)}function O(t,e,n,r,i,o,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(t){return(l(t)<t?p:s(t)<t?f:a(t)<t?g:o(t)<t?m:r(t)<t?i(t)<t?v:_:n(t)<t?y:x)(t)}return u.invert=function(t){return new Date(d(t))},u.domain=function(t){return arguments.length?h(Array.from(t,V)):h().map(N)},u.ticks=function(e){var n=h();return t(n[0],n[n.length-1],null==e?10:e)},u.tickFormat=function(t,e){return null==e?b:c(e)},u.nice=function(t){var n=h();return t&&"function"==typeof t.range||(t=e(n[0],n[n.length-1],null==t?10:t)),t?h(function(t,e){var n,r=0,i=(t=t.slice()).length-1,o=t[r],a=t[i];return a<o&&(n=r,r=i,i=n,n=o,o=a,a=n),t[r]=e.floor(o),t[i]=e.ceil(a),t}(n,t)):u},u.copy=function(){return(0,F.JG)(u,O(t,e,n,r,i,o,a,s,l,c))},u}function B(){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)}}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var o=e[r]={exports:{}};return t[r](o,o.exports,n),o.exports}n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,{a:e}),e},n.d=function(t,e){for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};!function(){n.r(r),n.d(r,{AreaChart:function(){return ho},CartesianChart:function(){return Ti},ChartHoverCard:function(){return We.ChartHoverCard},DataVizPalette:function(){return ni},DonutChart:function(){return hi},GaugeChart:function(){return Ga},GaugeValueFormat:function(){return Ha},GroupedVerticalBarChart:function(){return Zo},HeatMapChart:function(){return Go},HorizontalBarChart:function(){return Ln},HorizontalBarChartVariant:function(){return h},HorizontalBarChartWithAxis:function(){return qa},Legends:function(){return vr},LineChart:function(){return Ui},MultiStackedBarChart:function(){return wo},MultiStackedBarChartVariant:function(){return _o},NodesComposition:function(){return Fa},PieChart:function(){return Co},SankeyChart:function(){return ya},Shape:function(){return fr},Sparkline:function(){return Wa},StackedBarChart:function(){return Ao},Textbox:function(){return zi},TreeChart:function(){return Ba},TreeTraverse:function(){return Ia},VerticalBarChart:function(){return Oo},VerticalStackedBarChart:function(){return Ro},getChartHoverCardStyles:function(){return qo.n},getColorFromToken:function(){return ci},getNextColor:function(){return li}});var t=n(9085),e=n(9939),i=n(7363),o=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(t){if(!p){var e=l.Y.getInstance();e&&e.onReset&&e.onReset(g),p=!0}var n=d[c]++;return(void 0===t?u:t)+n}function g(t){void 0===t&&(t=0),d[c]=t}function m(t,e,n){void 0===n&&(n=0);for(var r=-1,i=n;t&&i<t.length;i++)if(e(t[i],i)){r=i;break}return r}function v(t,e){var n=m(t,e);if(!(n<0))return t[n]}!function(t){t.PartToWhole="part-to-whole",t.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(t,e){return void 0===e&&(e=!0),t&&(e&&function(t){var e,n;return t&&(n=t)&&n._virtual&&(e=t._virtual.parent),e}(t)||t.parentNode&&t.parentNode)}function x(t,e,n){return null!=n||(n=document),t&&t!==n.body?e(t)?t:x(y(t),e):null}function b(t,e,n){void 0===n&&(n=!0);var r=!1;if(t&&e)if(n)if(t===e)r=!0;else for(r=!1;e;){var i=y(e);if(i===t){r=!0;break}e=i}else t.contains&&(r=t.contains(e));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(t,e){var n=w(t,t,!0,!1,!1,!0,void 0,void 0,e);return!!n&&(V(n),!0)}function T(t,e,n,r,i,o,a,s){if(!e||!a&&e===t)return null;var l=D(e);if(i&&l&&(o||!F(e)&&!I(e))){var c=T(t,e.lastElementChild,!0,!0,!0,o,a,s);if(c){if(s&&P(c,!0)||!s)return c;var u=T(t,c.previousElementSibling,!0,!0,!0,o,a,s);if(u)return u;for(var d=c.parentElement;d&&d!==e;){var h=T(t,d.previousElementSibling,!0,!0,!0,o,a,s);if(h)return h;d=d.parentElement}}}return n&&l&&P(e,s)?e:T(t,e.previousElementSibling,!0,!0,!0,o,a,s)||(r?null:T(t,e.parentElement,!0,!1,!1,o,a,s))}function w(t,e,n,r,i,o,a,s,l){if(!e||e===t&&i&&!a)return null;var c=(l?M:D)(e);if(n&&c&&P(e,s))return e;if(!i&&c&&(o||!F(e)&&!I(e))){var u=w(t,e.firstElementChild,!0,!0,!1,o,a,s,l);if(u)return u}return e===t?null:w(t,e.nextElementSibling,!0,!0,!1,o,a,s,l)||(r?null:w(t,e.parentElement,!1,!1,!0,o,a,s,l))}function D(t){if(!t||!t.getAttribute)return!1;var e=t.getAttribute(S);return null!=e?"true"===e:0!==t.offsetHeight||null!==t.offsetParent||!0===t.isVisible}function M(t,e){var n=null!=e?e:(0,s.J)();return!!t&&D(t)&&!t.hidden&&"hidden"!==n.getComputedStyle(t).visibility}function P(t,e){if(!t||t.disabled)return!1;var n=0,r=null;t&&t.getAttribute&&(r=t.getAttribute("tabIndex"))&&(n=parseInt(r,10));var i=t.getAttribute?t.getAttribute(E):null,o=null!==r&&n>=0,a=!!t&&"false"!==i&&("A"===t.tagName||"BUTTON"===t.tagName||"INPUT"===t.tagName||"TEXTAREA"===t.tagName||"SELECT"===t.tagName||"true"===i||o);return e?-1!==n&&a:a}function F(t){return!!(t&&t.getAttribute&&t.getAttribute(A))}function I(t){return!(!t||!t.getAttribute||"true"!==t.getAttribute(L))}var N=void 0;function V(t){if(t){var e=(0,s.J)(t);e&&(void 0!==N&&e.cancelAnimationFrame(N),N=e.requestAnimationFrame((function(){t&&t.focus(),N=void 0})))}}function O(t,e,n,r){return t.addEventListener(e,n,r),function(){return t.removeEventListener(e,n,r)}}function B(t,n){for(var r=(0,e.pi)({},n),i=0,o=Object.keys(t);i<o.length;i++){var a=o[i];void 0===r[a]&&(r[a]=t[a])}return r}var H=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n={},r=0,i=t;r<i.length;r++)for(var o=i[r],a=0,s=Array.isArray(o)?o:Object.keys(o);a<s.length;a++)n[s[a]]=1;return n},R=H(["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=H(["accessKey","children","className","contentEditable","dir","draggable","hidden","htmlFor","id","lang","ref","role","style","tabIndex","title","translate","spellCheck","name"]),W=H(z,R),Y=(H(W,["form"]),H(W,["height","loop","muted","preload","src","width"])),Z=(H(Y,["poster"]),H(W,["start"]),H(W,["value"]),H(W,["download","href","hrefLang","media","rel","target","type"]),H(W,["autoFocus","disabled","form","formAction","formEncType","formMethod","formNoValidate","formTarget","type","value"])),q=(H(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"]),H(Z,["autoCapitalize","cols","dirname","form","maxLength","minLength","placeholder","readOnly","required","rows","wrap"]),H(Z,["form","multiple","required"]),H(W,["selected","value"]),H(W,["cellPadding","cellSpacing"]),H(W,["rowSpan","scope"]),H(W,["colSpan","headers","rowSpan","scope"]),H(W,["span"]),H(W,["span"]),H(W,["acceptCharset","action","encType","encType","method","noValidate","target"]),H(W,["allow","allowFullScreen","allowPaymentRequest","allowTransparency","csp","height","importance","referrerPolicy","sandbox","src","srcDoc","width"]),H(W,["alt","crossOrigin","height","src","srcSet","useMap","width"]),W);function X(t,e,n){for(var r=Array.isArray(e),i={},o=0,a=Object.keys(t);o<a.length;o++){var s=a[o];!(!r&&e[s]||r&&e.indexOf(s)>=0||0===s.indexOf("data-")||0===s.indexOf("aria-"))||n&&-1!==(null==n?void 0:n.indexOf(s))||(i[s]=t[s])}return i}function U(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=[],r=0,i=t;r<i.length;r++){var o=i[r];if(o)if("string"==typeof o)n.push(o);else if(o.hasOwnProperty("toString")&&"function"==typeof o.toString)n.push(o.toString());else for(var a in o)o[a]&&n.push(a)}return n.join(" ")}function j(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return G.apply(this,[null,t].concat(e))}function G(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];e=e||{};for(var i=0,o=n;i<o.length;i++){var a=o[i];if(a)for(var s in a)!a.hasOwnProperty(s)||t&&!t(s)||(e[s]=a[s])}return e}var K,$,J,Q=n(13),tt=((0,Q.y)({overflow:"hidden !important"}),"data-is-scrollable");function et(t){for(var e=t,n=(0,C.M)(t);e&&e!==n.body;){if("true"===e.getAttribute(tt))return e;e=e.parentElement}for(e=t;e&&e!==n.body;){if("false"!==e.getAttribute(tt)){var r=getComputedStyle(e),i=r?r.getPropertyValue("overflow-y"):"";if(i&&("scroll"===i||"auto"===i))return e}e=e.parentElement}return e&&e!==n.body||(e=(0,s.J)(t)),e}!function(t){t[t.top=1]="top",t[t.bottom=-1]="bottom",t[t.left=2]="left",t[t.right=-2]="right"}($||($={})),function(t){t[t.top=0]="top",t[t.bottom=1]="bottom",t[t.start=2]="start",t[t.end=3]="end"}(J||(J={}));var nt,rt=function(){function t(t,e,n,r){void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0),void 0===r&&(r=0),this.top=n,this.bottom=r,this.left=t,this.right=e}return Object.defineProperty(t.prototype,"width",{get:function(){return this.right-this.left},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.bottom-this.top},enumerable:!1,configurable:!0}),t.prototype.equals=function(t){return parseFloat(this.top.toFixed(4))===parseFloat(t.top.toFixed(4))&&parseFloat(this.bottom.toFixed(4))===parseFloat(t.bottom.toFixed(4))&&parseFloat(this.left.toFixed(4))===parseFloat(t.left.toFixed(4))&&parseFloat(this.right.toFixed(4))===parseFloat(t.right.toFixed(4))},t}();function it(t,e,n){return{targetEdge:t,alignmentEdge:e,isAuto:n}}var ot=((nt={})[_.topLeftEdge]=it($.top,$.left),nt[_.topCenter]=it($.top),nt[_.topRightEdge]=it($.top,$.right),nt[_.topAutoEdge]=it($.top,void 0,!0),nt[_.bottomLeftEdge]=it($.bottom,$.left),nt[_.bottomCenter]=it($.bottom),nt[_.bottomRightEdge]=it($.bottom,$.right),nt[_.bottomAutoEdge]=it($.bottom,void 0,!0),nt[_.leftTopEdge]=it($.left,$.top),nt[_.leftCenter]=it($.left),nt[_.leftBottomEdge]=it($.left,$.bottom),nt[_.rightTopEdge]=it($.right,$.top),nt[_.rightCenter]=it($.right),nt[_.rightBottomEdge]=it($.right,$.bottom),nt);function at(t,e){return!(t.top<e.top||t.bottom>e.bottom||t.left<e.left||t.right>e.right)}function st(t,e){var n=[];return t.top<e.top&&n.push($.top),t.bottom>e.bottom&&n.push($.bottom),t.left<e.left&&n.push($.left),t.right>e.right&&n.push($.right),n}function lt(t,e){return t[$[e]]}function ct(t,e,n){return t[$[e]]=n,t}function ut(t,e){var n=Ct(e);return(lt(t,n.positiveEdge)+lt(t,n.negativeEdge))/2}function dt(t,e){return t>0?e:-1*e}function ht(t,e){return dt(t,lt(e,t))}function pt(t,e,n){return dt(n,lt(t,n)-lt(e,n))}function ft(t,e,n,r){void 0===r&&(r=!0);var i=lt(t,e)-n,o=ct(t,e,n);return r&&(o=ct(t,-1*e,lt(t,-1*e)-i)),o}function gt(t,e,n,r){return void 0===r&&(r=0),ft(t,n,lt(e,n)+dt(n,r))}function mt(t,e,n){return ht(n,t)>ht(n,e)}function vt(t,e){for(var n=0,r=0,i=st(t,e);r<i.length;r++){var o=i[r];n+=Math.pow(pt(t,e,o),2)}return n}function _t(t,e,n,r){return void 0===r&&(r=200),(n===$.bottom||n===$.top)&&pt(t,e,n)>=r}function yt(t,e,n,r){for(var i=0,o=t;i<o.length;i++){var a=o[i],s=void 0;r&&r===-1*a?(s=ft(e.elementRectangle,a,lt(n,a),!1),e.forcedInBounds=!0):mt(s=gt(e.elementRectangle,n,a),n,-1*a)||(s=ft(s,-1*a,lt(n,-1*a),!1),e.forcedInBounds=!0),e.elementRectangle=s}return e}function xt(t,e,n){var r=Ct(e).positiveEdge;return ft(t,r,n-(ut(t,e)-lt(t,r)))}function bt(t,e,n,r,i){void 0===r&&(r=0);var o=new rt(t.left,t.right,t.top,t.bottom),a=n.alignmentEdge,s=n.targetEdge,l=i?s:-1*s;return o=i?gt(o,e,s,r):function(t,e,n,r){void 0===r&&(r=0);var i=dt(-1*n,r);return ft(t,-1*n,lt(e,n)+i)}(o,e,s,r),o=a?gt(o,e,a):xt(o,l,ut(e,s))}function Ct(t){return t===$.top||t===$.bottom?{positiveEdge:$.left,negativeEdge:$.right}:{positiveEdge:$.top,negativeEdge:$.bottom}}function Et(t,e,n){return n&&Math.abs(pt(t,n,e))>Math.abs(pt(t,n,-1*e))?-1*e:e}function St(t,e,n,r,i,o,a,s){var l,c={},u=kt(e),d=o?n:-1*n,h=i||Ct(n).positiveEdge;return a&&!function(t,e,n){return void 0!==n&&lt(t,e)===lt(n,e)}(t,(l=h,-1*l),r)||(h=Et(t,h,r)),c[$[d]]=pt(t,u,d),c[$[h]]=pt(t,u,h),s&&(c[$[-1*d]]=pt(t,u,-1*d),c[$[-1*h]]=pt(t,u,-1*h)),c}function At(t,e,n){var r=ut(e,t),i=ut(n,t),o=Ct(t),a=o.positiveEdge,s=o.negativeEdge;return r<=i?a:s}function Lt(t,e,n,r,i,o,s,l,c){void 0===o&&(o=!1);var u=bt(t,e,r,i,c);return at(u,n)?{elementRectangle:u,targetEdge:r.targetEdge,alignmentEdge:r.alignmentEdge}:function(t,e,n,r,i,o,s,l,c){void 0===i&&(i=!1),void 0===s&&(s=0);var u=r.alignmentEdge,d=r.alignTargetEdge,h={elementRectangle:t,targetEdge:r.targetEdge,alignmentEdge:u};l||c||(h=function(t,e,n,r,i,o,s){void 0===i&&(i=!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=t,d=r.targetEdge,h=r.alignmentEdge,p=d,f=h,g=0;g<4;g++){if(mt(u,n,d))return{elementRectangle:u,targetEdge:d,alignmentEdge:h};if(i&&_t(e,n,d,o)){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=vt(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=bt(t,e,{targetEdge:d,alignmentEdge:h},s))}return{elementRectangle:u=bt(t,e,{targetEdge:p,alignmentEdge:f},s),targetEdge:p,alignmentEdge:f}}(t,e,n,r,i,o,s));var p=st(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(t,e,n,r){var i=t.alignmentEdge,o=t.targetEdge,a=-1*i;return{elementRectangle:bt(t.elementRectangle,e,{targetEdge:o,alignmentEdge:a},n,r),targetEdge:o,alignmentEdge:a}}(h,e,s,c);if(at(g.elementRectangle,n))return g;h=yt(st(g.elementRectangle,n),h,n,f)}else h=yt(p,h,n,f);else h=yt(p,h,n,f);return h}(u,e,n,r,o,s,i,l,c)}function kt(t){var e=t.getBoundingClientRect();return new rt(e.left,e.right,e.top,e.bottom)}function Tt(t,n,r,i,o,s){void 0===o&&(o=!1);var l=t.gapSpace?t.gapSpace:0,c=function(t,e){var n;if(e){if(e.preventDefault){var r=e;n=new rt(r.clientX,r.clientX,r.clientY,r.clientY)}else if(e.getBoundingClientRect)n=kt(e);else{var i=e,o=i.left||i.x,a=i.top||i.y,s=i.right||o,l=i.bottom||a;n=new rt(o,s,a,l)}if(!at(n,t))for(var c=0,u=st(n,t);c<u.length;c++){var d=u[c];n[$[d]]=t[$[d]]}}else n=new rt(0,0,0,0);return n}(r,t.target),u=function(t,e,n,r,i){return t.isAuto&&(t.alignmentEdge=At(t.targetEdge,e,n)),t.alignTargetEdge=i,t}(function(t,n,r){if(void 0===t&&(t=_.bottomAutoEdge),r)return{alignmentEdge:r.alignmentEdge,isAuto:r.isAuto,targetEdge:r.targetEdge};var i=(0,e.pi)({},ot[t]);return(0,a.zg)()?(i.alignmentEdge&&i.alignmentEdge%2==0&&(i.alignmentEdge=-1*i.alignmentEdge),void 0!==n?ot[n]:i):i}(t.directionalHint,t.directionalHintForRTL,i),c,r,t.coverTarget,t.alignTargetEdge),d=Lt(kt(n),c,r,u,l,o,s,t.directionalHintFixed,t.coverTarget);return(0,e.pi)((0,e.pi)({},d),{targetRectangle:c})}function wt(t,e,n){return void 0===e&&(e=0),void 0===n&&(n=0),function(t){return Math.sqrt(t*t*2)}(t?e:0)/2+n}function Dt(t,n,r,i,o,a,l,c){void 0===o&&(o=!1);var u=null!=c?c:(0,s.J)(),d=t.isBeakVisible&&t.beakWidth||0,h=wt(t.isBeakVisible,t.beakWidth,t.gapSpace),p=t;p.gapSpace=h;var f,g,m,v,_,y,x,b,E,S=t.bounds?(E=t.bounds,new rt(E.left,E.right,E.top,E.bottom)):new rt(0,u.innerWidth-function(t){if(void 0===K){var e=(0,C.M)(),n=e.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"),e.body.appendChild(n),K=n.offsetWidth-n.clientWidth,e.body.removeChild(n)}return K}(),0,u.innerHeight),A=Tt(p,r,S,i,o,a),L=(f=A,g=function(t,e){var n=e.targetRectangle,r=Ct(e.targetEdge),i=r.positiveEdge,o=r.negativeEdge,a=ut(n,e.targetEdge),s=new rt(t/2,e.elementRectangle.width-t/2,t/2,e.elementRectangle.height-t/2),l=new rt(0,t,0,t);return mt(l=xt(l=ft(l,-1*e.targetEdge,-t/2),-1*e.targetEdge,a-ht(i,e.elementRectangle)),s,i)?mt(l,s,o)||(l=gt(l,s,o)):l=gt(l,s,i),l}(d,A),m=S,v=-1*f.targetEdge,_=new rt(0,f.elementRectangle.width,0,f.elementRectangle.height),y={},x=Et(f.elementRectangle,f.alignmentEdge?f.alignmentEdge:Ct(v).positiveEdge,m),b=pt(f.elementRectangle,f.targetRectangle,v)>Math.abs(lt(g,v)),y[$[v]]=lt(g,v),y[$[x]]=pt(g,_,x),{elementPosition:(0,e.pi)({},y),closestEdge:At(f.targetEdge,g,_),targetEdge:v,hideBeak:!b});return(0,e.pi)((0,e.pi)({},function(t,e,n,r,i){return{elementPosition:St(t.elementRectangle,e,t.targetEdge,n,t.alignmentEdge,r,i,t.forcedInBounds),targetEdge:t.targetEdge,alignmentEdge:t.alignmentEdge}}(A,n,S,t.coverTarget,l)),{beakPosition:L})}var Mt=["TEMPLATE","STYLE","SCRIPT"];function Pt(t){var e=(0,C.M)(t);if(!e)return function(){};for(var n=[];t!==e.body&&t.parentElement;){for(var r=0,i=t.parentElement.children;r<i.length;r++){var o=i[r],a=o.getAttribute("aria-hidden");o!==t&&"true"!==(null==a?void 0:a.toLowerCase())&&-1===Mt.indexOf(o.tagName)&&n.push([o,a])}t=t.parentElement}return n.forEach((function(t){t[0].setAttribute("aria-hidden","true")})),function(){!function(t){t.forEach((function(t){var e=t[0],n=t[1];n?e.setAttribute("aria-hidden",n):e.removeAttribute("aria-hidden")}))}(n),n=[]}}var Ft=27,It=function(){function t(t,e){this._timeoutIds=null,this._immediateIds=null,this._intervalIds=null,this._animationFrameIds=null,this._isDisposed=!1,this._parent=t||null,this._onErrorHandler=e,this._noop=function(){}}return t.prototype.dispose=function(){var t;if(this._isDisposed=!0,this._parent=null,this._timeoutIds){for(t in this._timeoutIds)this._timeoutIds.hasOwnProperty(t)&&this.clearTimeout(parseInt(t,10));this._timeoutIds=null}if(this._immediateIds){for(t in this._immediateIds)this._immediateIds.hasOwnProperty(t)&&this.clearImmediate(parseInt(t,10));this._immediateIds=null}if(this._intervalIds){for(t in this._intervalIds)this._intervalIds.hasOwnProperty(t)&&this.clearInterval(parseInt(t,10));this._intervalIds=null}if(this._animationFrameIds){for(t in this._animationFrameIds)this._animationFrameIds.hasOwnProperty(t)&&this.cancelAnimationFrame(parseInt(t,10));this._animationFrameIds=null}},t.prototype.setTimeout=function(t,e){var n=this,r=0;return this._isDisposed||(this._timeoutIds||(this._timeoutIds={}),r=setTimeout((function(){try{n._timeoutIds&&delete n._timeoutIds[r],t.apply(n._parent)}catch(t){n._logError(t)}}),e),this._timeoutIds[r]=!0),r},t.prototype.clearTimeout=function(t){this._timeoutIds&&this._timeoutIds[t]&&(clearTimeout(t),delete this._timeoutIds[t])},t.prototype.setImmediate=function(t,e){var n=this,r=0,i=(0,s.J)(e);return this._isDisposed||(this._immediateIds||(this._immediateIds={}),r=i.setTimeout((function(){try{n._immediateIds&&delete n._immediateIds[r],t.apply(n._parent)}catch(t){n._logError(t)}}),0),this._immediateIds[r]=!0),r},t.prototype.clearImmediate=function(t,e){var n=(0,s.J)(e);this._immediateIds&&this._immediateIds[t]&&(n.clearTimeout(t),delete this._immediateIds[t])},t.prototype.setInterval=function(t,e){var n=this,r=0;return this._isDisposed||(this._intervalIds||(this._intervalIds={}),r=setInterval((function(){try{t.apply(n._parent)}catch(t){n._logError(t)}}),e),this._intervalIds[r]=!0),r},t.prototype.clearInterval=function(t){this._intervalIds&&this._intervalIds[t]&&(clearInterval(t),delete this._intervalIds[t])},t.prototype.throttle=function(t,e,n){var r=this;if(this._isDisposed)return this._noop;var i,o,a=e||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(e){var n=Date.now(),h=n-c,p=s?a-h:a;return h>=a&&(!e||s)?(c=n,u&&(r.clearTimeout(u),u=null),i=t.apply(r._parent,o)):null===u&&l&&(u=r.setTimeout(d,p)),i};return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return o=t,d(!0)}},t.prototype.debounce=function(t,e,n){var r=this;if(this._isDisposed){var i=function(){};return i.cancel=function(){},i.flush=function(){return null},i.pending=function(){return!1},i}var o,a,s=e||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(t){p&&(r.clearTimeout(p),p=null),h=t},g=function(e){f(e),o=t.apply(r._parent,a)},m=function(t){var e=Date.now(),n=!1;t&&(l&&e-d>=s&&(n=!0),d=e);var i=e-d,a=s-i,f=e-h,v=!1;return null!==u&&(f>=u&&p?v=!0:a=Math.min(a,u-f)),i>=s||v||n?g(e):null!==p&&t||!c||(p=r.setTimeout(m,a)),o},v=function(){return!!p},_=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return a=t,m(!0)};return _.cancel=function(){v()&&f(Date.now())},_.flush=function(){return v()&&g(Date.now()),o},_.pending=v,_},t.prototype.requestAnimationFrame=function(t,e){var n=this,r=0,i=(0,s.J)(e);if(!this._isDisposed){this._animationFrameIds||(this._animationFrameIds={});var o=function(){try{n._animationFrameIds&&delete n._animationFrameIds[r],t.apply(n._parent)}catch(t){n._logError(t)}};r=i.requestAnimationFrame?i.requestAnimationFrame(o):i.setTimeout(o,0),this._animationFrameIds[r]=!0}return r},t.prototype.cancelAnimationFrame=function(t,e){var n=(0,s.J)(e);this._animationFrameIds&&this._animationFrameIds[t]&&(n.cancelAnimationFrame?n.cancelAnimationFrame(t):n.clearTimeout(t),delete this._animationFrameIds[t])},t.prototype._logError=function(t){this._onErrorHandler&&this._onErrorHandler(t)},t}();function Nt(){var t=i.useRef();return t.current||(t.current=new It),i.useEffect((function(){return function(){var e;null===(e=t.current)||void 0===e||e.dispose(),t.current=void 0}}),[]),t.current}function Vt(t,e,n,r){var o=i.useRef(n);o.current=n,i.useEffect((function(){var n=t&&"current"in t?t.current:t;if(n&&n.addEventListener)return O(n,e,(function(t){return o.current(t)}),r)}),[t,e,r])}function Ot(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=i.useCallback((function(e){r.current=e;for(var n=0,i=t;n<i.length;n++){var o=i[n];"function"==typeof o?o(e):o&&(o.current=e)}}),(0,e.ev)([],t,!0));return r}var Bt=i.createContext({window:"object"==typeof window?window:void 0}),Ht=function(){return i.useContext(Bt).window},Rt=function(){var t;return null===(t=i.useContext(Bt).window)||void 0===t?void 0:t.document};function zt(t){var e=t.originalElement,n=t.containsFocus;e&&n&&e!==(0,s.J)()&&setTimeout((function(){var t;null===(t=e.focus)||void 0===t||t.call(e)}),0)}var Wt=i.forwardRef((function(t,n){var r=B({shouldRestoreFocus:!0,enableAriaHiddenSiblings:!0},t),o=i.useRef(),a=Ot(o,n);!function(t,e){var n="true"===String(t["aria-modal"]).toLowerCase()&&t.enableAriaHiddenSiblings;i.useEffect((function(){if(n&&e.current)return Pt(e.current)}),[e,n])}(r,o),function(t,e){var n=t.onRestoreFocus,r=void 0===n?zt:n,o=i.useRef(),a=i.useRef(!1);i.useEffect((function(){var t,n,i;return o.current=(0,C.M)().activeElement,t=e.current,(i=(n=(0,C.M)(t))&&n.activeElement)&&b(t,i)&&(a.current=!0),function(){var t;null==r||r({originalElement:o.current,containsFocus:a.current,documentContainsFocus:(null===(t=(0,C.M)())||void 0===t?void 0:t.hasFocus())||!1}),o.current=void 0}}),[]),Vt(e,"focus",i.useCallback((function(){a.current=!0}),[]),!0),Vt(e,"blur",i.useCallback((function(t){e.current&&t.relatedTarget&&!e.current.contains(t.relatedTarget)&&(a.current=!1)}),[]),!0)}(r,o);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(t,e){var n=Nt(),r=i.useState(!1),o=r[0],a=r[1];return i.useEffect((function(){return n.requestAnimationFrame((function(){var n;if(!t.style||!t.style.overflowY){var r=!1;if(e&&e.current&&(null===(n=e.current)||void 0===n?void 0:n.firstElementChild)){var i=e.current.clientHeight,s=e.current.firstElementChild.clientHeight;i>0&&s>i&&(r=s-i>1)}o!==r&&a(r)}})),function(){return n.dispose()}})),o}(r,o),m=i.useCallback((function(t){t.which===Ft&&f&&(f(t),t.preventDefault(),t.stopPropagation())}),[f]);return Vt(Ht(),"keydown",m),i.createElement("div",(0,e.pi)({ref:a},X(r,q),{className:l,role:s,"aria-label":c,"aria-labelledby":u,"aria-describedby":d,onKeyDown:m,style:(0,e.pi)({overflowY:g?"scroll":void 0,outline:"none"},h)}),p)}));Wt.displayName="Popup";var Yt=n(1786);function Zt(t){var e=i.useRef();return void 0===e.current&&(e.current={value:"function"==typeof t?t():t}),e.current.value}var qt,Xt=function(){var t;return(null!==(t=Ht())&&void 0!==t?t:"undefined"!=typeof window)?window:void 0},Ut=function(t){var e,n;return(null!==(n=null===(e=null==t?void 0:t.window)||void 0===e?void 0:e.document)&&void 0!==n?n:"undefined"!=typeof document)?document:void 0},jt=((qt={})[$.top]=Yt.k4.slideUpIn10,qt[$.bottom]=Yt.k4.slideDownIn10,qt[$.left]=Yt.k4.slideLeftIn10,qt[$.right]=Yt.k4.slideRightIn10,qt),Gt={opacity:0,filter:"opacity(0)",pointerEvents:"none"},Kt=["role","aria-roledescription"],$t={preventDismissOnLostFocus:!1,preventDismissOnScroll:!1,preventDismissOnResize:!1,isBeakVisible:!0,beakWidth:16,gapSpace:0,minPagePadding:8,directionalHint:_.bottomAutoEdge},Jt=(0,o.y)({disableCaching:!0});function Qt(t,e,n,r){var o,a=t.calloutMaxHeight,s=t.finalHeight,l=t.directionalHint,c=t.directionalHintFixed,u=t.hidden,d=t.gapSpace,h=t.beakWidth,p=t.isBeakVisible,f=t.coverTarget,g=i.useState(),m=g[0],v=g[1],_=null!==(o=null==r?void 0:r.elementPosition)&&void 0!==o?o:{},y=_.top,x=_.bottom,b=(null==n?void 0:n.current)?function(t){var e,n,r,i,o=t,a=t,s=t,l=null!==(e=s.left)&&void 0!==e?e: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!==(i=s.bottom)&&void 0!==i?i:c;return o.stopPropagation?new rt(o.clientX,o.clientX,o.clientY,o.clientY):void 0!==l&&void 0!==c?new rt(l,u,c,d):kt(a)}(n.current):void 0;return i.useEffect((function(){var t,n,i=null!==(t=e())&&void 0!==t?t:{},o=i.top,s=i.bottom;(null==r?void 0:r.targetEdge)===$.top&&(null==b?void 0:b.top)&&!f&&(s=b.top-function(t,e,n){return wt(t,e,n)}(p,h,d)),"number"==typeof y&&s?n=s-y:"number"==typeof x&&"number"==typeof o&&s&&(n=s-o-x),v(!a&&!u||a&&n&&a>n?n:a||void 0)}),[x,a,s,l,c,e,u,r,y,d,h,p,b,f]),m}function te(t,n,r,o,a,l){var c,u=i.useState(),d=u[0],h=u[1],p=i.useRef(0),f=i.useRef(),g=Nt(),m=t.hidden,v=t.target,_=t.finalHeight,y=t.calloutMaxHeight,x=t.onPositioned,b=t.directionalHint,C=t.hideOverflow,E=t.preferScrollResizePositioning,S=Xt(),A=i.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 i.useEffect((function(){if(!m){var i=g.requestAnimationFrame((function(){var i,l,c,u;if(n.current&&r){var g=(0,e.pi)((0,e.pi)({},t),{target:o.current,bounds:a()}),m=r.cloneNode(!0);m.style.maxHeight=y?"".concat(y):"",m.style.visibility="hidden",null===(i=r.parentElement)||void 0===i||i.appendChild(m);var b=f.current===v?d:void 0,A=E&&!(C||"clip"===L||"hidden"===L),k=_?function(t,e,n,r,i){return function(t,e,n,r,i){return Dt(t,e,n,r,!1,void 0,!0,null!=i?i:(0,s.J)())}(t,e,n,r,i)}(g,n.current,m,b,S):function(t,e,n,r,i,o,a){return Dt(t,e,n,r,i,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,!re((c=d).elementPosition,u.elementPosition)||!re(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(i),f.current=void 0}}h(void 0),p.current=0}),[m,b,g,r,y,n,o,_,a,x,d,t,v,C,E,L,S]),d}var ee=i.memo(i.forwardRef((function(t,n){var r=B($t,t),o=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=i.useRef(null),I=Ot(i.useRef(null),null==P?void 0:P.ref),N=i.useState(null),V=N[0],H=N[1],R=i.useCallback((function(t){H(t)}),[]),z=Ot(F,n),W=function(t,e){var n=i.useRef(),r=i.useRef(null),o=Ht();if(!t||t!==n.current||"string"==typeof t){var a=null==e?void 0:e.current;if(t)if("string"==typeof t){var s=(0,C.M)(a);r.current=s?s.querySelector(t):null}else r.current="stopPropagation"in t||"getBoundingClientRect"in t?t:"current"in t?t.current:t;n.current=t}return[r,o]}(r.target,{current:V}),Y=W[0],Z=W[1],j=function(t,e,n){var r=t.bounds,o=t.minPagePadding,a=void 0===o?$t.minPagePadding:o,s=t.target,l=i.useState(!1),c=l[0],u=l[1],d=i.useRef(),h=i.useCallback((function(){if(!d.current||c){var t="function"==typeof r?n?r(s,n):void 0:r;!t&&n&&(t=function(t,e){return function(t,e){var n=void 0;if(e.getWindowSegments&&(n=e.getWindowSegments()),void 0===n||n.length<=1)return{top:0,left:0,right:e.innerWidth,bottom:e.innerHeight,width:e.innerWidth,height:e.innerHeight};var r=0,i=0;if(null!==t&&t.getBoundingClientRect){var o=t.getBoundingClientRect();r=(o.left+o.right)/2,i=(o.top+o.bottom)/2}else null!==t&&(r=t.left||t.x,i=t.top||t.y);for(var a={top:0,left:0,right:0,bottom:0,width:0,height:0},s=0,l=n;s<l.length;s++){var c=l[s];r&&c.left<=r&&c.right>=r&&i&&c.top<=i&&c.bottom>=i&&(a={top:c.top,left:c.left,right:c.right,bottom:c.bottom,width:c.width,height:c.height})}return a}(t,e)}(e.current,n),t={top:t.top+a,left:t.left+a,right:t.right-a,bottom:t.bottom-a,width:t.width-2*a,height:t.height-2*a}),d.current=t,c&&u(!1)}return d.current}),[r,a,s,e,n,c]),p=Nt();return Vt(n,"resize",p.debounce((function(){u(!0)}),500,{leading:!0})),h}(r,Y,Z),G=te(r,F,V,Y,j,I),K=Qt(r,j,Y,G),$=function(t,e,n,r,o){var a=t.hidden,s=t.onDismiss,l=t.preventDismissOnScroll,c=t.preventDismissOnResize,u=t.preventDismissOnLostFocus,d=t.dismissOnTargetClick,h=t.shouldDismissOnWindowFocus,p=t.preventDismissOnEvent,f=i.useRef(!1),g=Nt(),m=Zt([function(){f.current=!0},function(){f.current=!1}]),v=!!e;return i.useEffect((function(){var t=function(t){v&&!l&&m(t)},e=function(t){c||p&&p(t)||null==s||s(t)},i=function(t){u||m(t)},m=function(t){var e=t.composedPath?t.composedPath():[],i=e.length>0?e[0]:t.target,a=n.current&&!b(n.current,i);if(a&&f.current)f.current=!1;else if(!r.current&&a||t.target!==o&&a&&(!r.current||"stopPropagation"in r.current||d||i!==r.current&&!b(r.current,i))){if(p&&p(t))return;null==s||s(t)}},_=function(t){h&&((!p||p(t))&&(p||u)||(null==o?void 0:o.document.hasFocus())||null!==t.relatedTarget||null==s||s(t))},y=new Promise((function(n){g.setTimeout((function(){if(!a&&o){var r=[O(o,"scroll",t,!0),O(o,"resize",e,!0),O(o.document.documentElement,"focus",i,!0),O(o.document.documentElement,"click",i,!0),O(o,"blur",_,!0)];n((function(){r.forEach((function(t){return t()}))}))}}),0)}));return function(){y.then((function(t){return t()}))}}),[a,g,n,r,o,s,h,d,u,c,l,v,p]),m}(r,G,F,Y,Z),J=$[0],Q=$[1],tt=(null==G?void 0:G.elementPosition.top)&&(null==G?void 0:G.elementPosition.bottom),et=(0,e.pi)((0,e.pi)({},null==G?void 0:G.elementPosition),{maxHeight:K});if(tt&&(et.bottom=void 0),function(t,e,n){var r=t.hidden,o=t.setInitialFocus,a=Nt(),s=!!e;i.useEffect((function(){if(!r&&o&&s&&n){var t=a.requestAnimationFrame((function(){return k(n)}),n);return function(){return a.cancelAnimationFrame(t)}}}),[r,s,a,n,o])}(r,G,V),i.useEffect((function(){D||null==M||M()}),[D]),!Z)return null;var nt=x,rt=d&&!!w,it=Jt(o,{theme:r.theme,className:u,overflowYHidden:nt,calloutWidth:f,positions:G,beakWidth:p,backgroundColor:E,calloutMaxWidth:g,calloutMinWidth:m,doNotLayer:v}),ot=(0,e.pi)((0,e.pi)({maxHeight:S||"100%"},a),nt&&{overflowY:"hidden"}),at=r.hidden?{visibility:"hidden"}:void 0;return i.createElement("div",{ref:z,className:it.container,style:at},i.createElement("div",(0,e.pi)({},X(r,q,Kt),{className:U(it.root,G&&G.targetEdge&&jt[G.targetEdge]),style:G?(0,e.pi)({},et):Gt,tabIndex:-1,ref:R}),rt&&i.createElement("div",{className:it.beak,style:ne(G)}),rt&&i.createElement("div",{className:it.beakCurtain}),i.createElement(Wt,(0,e.pi)({role:r.role,"aria-roledescription":r["aria-roledescription"],ariaDescribedBy:l,ariaLabel:s,ariaLabelledBy:c,className:it.calloutMain,onDismiss:r.onDismiss,onMouseDown:J,onMouseUp:Q,onRestoreFocus:r.onRestoreFocus,onScroll:A,shouldRestoreFocus:T,style:ot},P,{ref:I}),h)))})),(function(t,e){return!(e.shouldUpdateWhenHidden||!t.hidden||!e.hidden)||function(t,e){if(!t||!e)return!t&&!e;for(var n in t)if(t.hasOwnProperty(n)&&(!e.hasOwnProperty(n)||e[n]!==t[n]))return!1;for(var n in e)if(e.hasOwnProperty(n)&&!t.hasOwnProperty(n))return!1;return!0}(t,e)}));function ne(t){var n,r,i=(0,e.pi)((0,e.pi)({},null===(n=null==t?void 0:t.beakPosition)||void 0===n?void 0:n.elementPosition),{display:(null===(r=null==t?void 0:t.beakPosition)||void 0===r?void 0:r.hideBeak)?"none":void 0});return i.top||i.bottom||i.left||i.right||(i.left=0,i.top=0),i}function re(t,e){for(var n in e)if(e.hasOwnProperty(n)){var r=t[n],i=e[n];if(void 0===r||void 0===i)return!1;if(r.toFixed(2)!==i.toFixed(2))return!1}return!0}function ie(t){return{height:t,width:t}}ee.displayName="CalloutContentBase";var oe={container:"ms-Callout-container",root:"ms-Callout",beak:"ms-Callout-beak",beakCurtain:"ms-Callout-beakCurtain",calloutMain:"ms-Callout-main"},ae=(0,t.z)(ee,(function(t){var e,n=t.theme,r=t.className,i=t.overflowYHidden,o=t.calloutWidth,a=t.beakWidth,s=t.backgroundColor,l=t.calloutMaxWidth,c=t.calloutMinWidth,u=t.doNotLayer,d=(0,Yt.Cn)(oe,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?Yt.bR.Layer:void 0,boxSizing:"border-box",borderRadius:p.roundedCorner2,boxShadow:p.elevation16,selectors:(e={},e[Yt.qJ]={borderWidth:1,borderStyle:"solid",borderColor:"WindowText"},e)},(0,Yt.e2)(),r,!!o&&{width:o},!!l&&{maxWidth:l},!!c&&{minWidth:c}],beak:[d.beak,{position:"absolute",backgroundColor:h.menuBackground,boxShadow:"inherit",border:"inherit",boxSizing:"border-box",transform:"rotate(45deg)"},ie(a),s&&{backgroundColor:s}],beakCurtain:[d.beakCurtain,{position:"absolute",top:0,right:0,bottom:0,left:0,backgroundColor:h.menuBackground,borderRadius:p.roundedCorner2}],calloutMain:[d.calloutMain,{backgroundColor:h.menuBackground,overflowX:"hidden",overflowY:"auto",position:"relative",width:"100%",borderRadius:p.roundedCorner2},i&&{overflowY:"hidden"},s&&{backgroundColor:s}]}}),void 0,{scope:"CalloutContent"}),se=i.createContext(void 0),le=function(){return function(){}};se.Provider;var ce=ReactDOM,ue=n(156);new WeakMap,new WeakMap;var de=i.createContext(void 0),he=function(t){var e=t.providerRef,n=t.layerRoot,r=i.useState([])[0],o=i.useContext(de),a=void 0!==o&&!n,s=i.useMemo((function(){return a?void 0:{providerRef:e,registeredProviders:r,registerProvider:function(t){r.push(t),null==o||o.registerProvider(t)},unregisterProvider:function(t){null==o||o.unregisterProvider(t);var e=r.indexOf(t);e>=0&&r.splice(e,1)}}}),[e,r,o,a]);return i.useEffect((function(){if(s)return s.registerProvider(s.providerRef),function(){return s.unregisterProvider(s.providerRef)}}),[s]),s?i.createElement(de.Provider,{value:s},t.children):i.createElement(i.Fragment,null,t.children)},pe=n(775),fe=n(2049);function ge(t,n){void 0===t&&(t={});var r=me(n)?n:function(t){return function(n){return t?(0,e.pi)((0,e.pi)({},n),t):n}}(n);return r(t)}function me(t){return"function"==typeof t}var ve=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e._onCustomizationChange=function(){return e.forceUpdate()},e}return(0,e.ZT)(n,t),n.prototype.componentDidMount=function(){pe.X.observe(this._onCustomizationChange)},n.prototype.componentWillUnmount=function(){pe.X.unobserve(this._onCustomizationChange)},n.prototype.render=function(){var t=this,n=this.props.contextTransform;return i.createElement(fe.i.Consumer,null,(function(r){var o=function(t,n){var r,i,o,a=(n||{}).customizations,s=void 0===a?{settings:{},scopedSettings:{}}:a;return{customizations:{settings:ge(s.settings,t.settings),scopedSettings:(r=s.scopedSettings,i=t.scopedSettings,void 0===r&&(r={}),(me(i)?i:(void 0===(o=i)&&(o={}),function(t){var n=(0,e.pi)({},t);for(var r in o)o.hasOwnProperty(r)&&(n[r]=(0,e.pi)((0,e.pi)({},t[r]),o[r]));return n}))(r)),inCustomizerContext:!0}}}(t.props,r);return n&&(o=n(o)),i.createElement(fe.i.Provider,{value:o},t.props.children)}))},n}(i.Component),_e=n(685),ye=(0,o.y)(),xe=(0,ue.NF)((function(t,n){return(0,_e.j)((0,e.pi)((0,e.pi)({},t),{rtl:n}))})),be=i.forwardRef((function(t,n){var r=t.className,o=t.theme,s=t.applyTheme,l=t.applyThemeToBody,c=t.styles,u=ye(c,{theme:o,applyTheme:s,className:r}),d=i.useRef(null);return function(t,e,n){var r=e.bodyThemed;i.useEffect((function(){if(t){var e=(0,C.M)(n.current);if(e)return e.body.classList.add(r),function(){e.body.classList.remove(r)}}}),[r,t,n])}(l,u,d),i.createElement(i.Fragment,null,function(t,n,r,o){var s=n.root,l=t.as,c=void 0===l?"div":l,u=t.dir,d=t.theme,h=X(t,q,["dir"]),p=function(t){var e=t.theme,n=t.dir,r=(0,a.zg)(e)?"rtl":"ltr",i=(0,a.zg)()?"rtl":"ltr",o=n||r;return{rootDir:o!==r||o!==i?o:n,needsTheme:o!==r}}(t),f=p.rootDir,g=p.needsTheme,m=i.createElement(he,{providerRef:r},i.createElement(c,(0,e.pi)({dir:f},h,{className:s,ref:Ot(r,o)})));return g&&(m=i.createElement(ve,{settings:{theme:xe(d,"rtl"===u)}},m)),m}(t,u,d,n))}));be.displayName="FabricBase";var Ce,Ee={fontFamily:"inherit"},Se={root:"ms-Fabric",bodyThemed:"ms-Fabric-bodyThemed"},Ae=(0,t.z)(be,(function(t){var e=t.applyTheme,n=t.className,r=t.preventBlanketFontInheritance,i=t.theme;return{root:[(0,Yt.Cn)(Se,i).root,i.fonts.medium,{color:i.palette.neutralPrimary},!r&&{"& button":Ee,"& input":Ee,"& textarea":Ee},e&&{color:i.semanticColors.bodyText,backgroundColor:i.semanticColors.bodyBackground},n],bodyThemed:[{backgroundColor:i.semanticColors.bodyBackground}]}}),void 0,{scope:"Fabric"}),Le=n(9766),ke="data-portal-element",Te={},we={},De="fluent-default-layer-host",Me="#".concat(De),Pe=n(8873),Fe=(0,Pe.N)()?i.useLayoutEffect:i.useEffect,Ie=(0,o.y)(),Ne=i.forwardRef((function(t,n){var r,o=null!==(r=i.useContext(se))&&void 0!==r?r:le,a=i.useRef(null),s=Ot(a,n),l=i.useRef(),c=i.useRef(null),u=i.useContext(de),d=i.useState(!1),h=d[0],p=d[1],f=i.useCallback((function(t){var e,n=!!(null==(e=null==u?void 0:u.providerRef)?void 0:e.current)&&e.current.classList.contains(Le.G$);t&&n&&t.classList.add(Le.G$)}),[u]),g=t.children,m=t.className,v=t.eventBubblingEnabled,_=t.fabricProps,y=t.hostId,x=t.insertFirst,b=t.onLayerDidMount,E=void 0===b?function(){}:b,S=t.onLayerMounted,A=void 0===S?function(){}:S,L=t.onLayerWillUnmount,k=t.styles,T=t.theme,w=Ot(c,null==_?void 0:_.ref,f),D=Ie(k,{theme:T,className:m,isNotHost:!y}),M=function(){null==L||L();var t=l.current;l.current=void 0,t&&t.parentNode&&t.parentNode.removeChild(t)},P=function(){var t,e=(0,C.M)(a.current);if(e){var n=function(t){var e,n;if(y){var r=function(t){var e=we[t];return e&&e[0]||void 0}(y);return r?null!==(e=r.rootRef.current)&&void 0!==e?e:null:null!==(n=t.getElementById(y))&&void 0!==n?n:null}var i=Me,o=i?t.querySelector(i):null;return o||(o=function(t){var e=t.createElement("div");return e.setAttribute("id",De),e.style.cssText="position:fixed;z-index:1000000",null==t||t.body.appendChild(e),e}(t)),o}(e);if(n){M();var r=(null!==(t=n.ownerDocument)&&void 0!==t?t:e).createElement("div");r.className=D.root,r.setAttribute(ke,"true"),function(t,e){var n=t,r=e;n._virtual||(n._virtual={children:[]});var i=n._virtual.parent;if(i&&i!==e){var o=i._virtual.children.indexOf(n);o>-1&&i._virtual.children.splice(o,1)}n._virtual.parent=r||void 0,r&&(r._virtual||(r._virtual={children:[]}),r._virtual.children.push(n))}(r,a.current),x?n.insertBefore(r,n.firstChild):n.appendChild(r),l.current=r,p(!0)}}};return Fe((function(){P(),y&&function(t,e){Te[t]||(Te[t]=[]),Te[t].push(e);var n=we[t];if(n)for(var r=0,i=n;r<i.length;r++)i[r].notifyLayersChanged()}(y,P);var t=l.current?o(l.current):void 0;return function(){t&&t(),M(),y&&function(t,e){var n=Te[t];if(n){var r=n.indexOf(e);r>=0&&(n.splice(r,1),0===n.length&&delete Te[t])}var i=we[t];if(i)for(var o=0,a=i;o<a.length;o++)a[o].notifyLayersChanged()}(y,P)}}),[y]),i.useEffect((function(){l.current&&h&&(null==A||A(),null==E||E(),p(!1))}),[h,A,E]),i.createElement("span",{className:"ms-layer",ref:s},l.current&&ce.createPortal(i.createElement(he,{layerRoot:!0,providerRef:w},i.createElement(Ae,(0,e.pi)({},!v&&(Ce||(Ce={},["onClick","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOver","onMouseOut","onMouseUp","onTouchMove","onTouchStart","onTouchCancel","onTouchEnd","onKeyDown","onKeyPress","onKeyUp","onFocus","onBlur","onChange","onInput","onInvalid","onSubmit"].forEach((function(t){return Ce[t]=Ve}))),Ce),_,{className:U(D.content,null==_?void 0:_.className),ref:w}),g)),l.current))}));Ne.displayName="LayerBase";var Ve=function(t){t.eventPhase===Event.BUBBLING_PHASE&&"mouseenter"!==t.type&&"mouseleave"!==t.type&&"touchstart"!==t.type&&"touchend"!==t.type&&t.stopPropagation()},Oe={root:"ms-Layer",rootNoHost:"ms-Layer--fixed",content:"ms-Layer-content"},Be=(0,t.z)(Ne,(function(t){var e=t.className,n=t.isNotHost,r=t.theme,i=(0,Yt.Cn)(Oe,r);return{root:[i.root,r.fonts.medium,n&&[i.rootNoHost,{position:"fixed",zIndex:Yt.bR.Layer,top:0,left:0,bottom:0,right:0,visibility:"hidden"}],e],content:[i.content,{visibility:"visible"}]}}),void 0,{scope:"Layer",fields:["hostId","theme","styles"]}),He=i.forwardRef((function(t,n){var r=t.layerProps,o=t.doNotLayer,a=(0,e._T)(t,["layerProps","doNotLayer"]),s=i.createElement(ae,(0,e.pi)({},a,{doNotLayer:o,ref:n}));return o?s:i.createElement(Be,(0,e.pi)({},r),s)}));He.displayName="Callout";var Re,ze=n(3813),We=n(8024);function Ye(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.length<2?e[0]:function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];e.forEach((function(e){return e&&e.apply(t,n)}))}}function Ze(t){!function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=Ye(t,t[n],e[n]))}(t,{componentDidMount:qe,componentDidUpdate:Xe,componentWillUnmount:Ue})}function qe(){je(this.props.componentRef,this)}function Xe(t){t.componentRef!==this.props.componentRef&&(je(t.componentRef,null),je(this.props.componentRef,this))}function Ue(){je(this.props.componentRef,null)}function je(t,e){t&&("object"==typeof t?t.current=e:"function"==typeof t&&t(e))}function Ge(t,e,n){var r=x(t,(function(t){return e===t||t.hasAttribute(ke)}),n);return null!==r&&r.hasAttribute(ke)}!function(t){t[t.vertical=0]="vertical",t[t.horizontal=1]="horizontal",t[t.bidirectional=2]="bidirectional",t[t.domOrder=3]="domOrder"}(Re||(Re={}));var Ke,$e="data-is-focusable",Je="data-focuszone-id",Qe="tabindex",tn="data-no-vertical-wrap",en="data-no-horizontal-wrap",nn=999999999,rn=-999999999;function on(t,e){var n;"function"==typeof MouseEvent?n=new MouseEvent("click",{ctrlKey:null==e?void 0:e.ctrlKey,metaKey:null==e?void 0:e.metaKey,shiftKey:null==e?void 0:e.shiftKey,altKey:null==e?void 0:e.altKey,bubbles:null==e?void 0:e.bubbles,cancelable:null==e?void 0:e.cancelable}):(n=document.createEvent("MouseEvents")).initMouseEvent("click",!!e&&e.bubbles,!!e&&e.cancelable,window,0,0,0,0,0,!!e&&e.ctrlKey,!!e&&e.altKey,!!e&&e.shiftKey,!!e&&e.metaKey,0,null),t.dispatchEvent(n)}var an,sn={},ln=new Set,cn=["text","number","password","email","tel","url","search","textarea"],un=!1,dn=function(t){function n(e){var r,o,s,l,c,u=this;(u=t.call(this,e)||this)._root=i.createRef(),u._mergedRef=(c={refs:[]},function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return c.resolver&&function(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}(c.refs,t)||(c.resolver=function(t){return function(e){for(var n=0,r=t.refs;n<r.length;n++){var i=r[n];"function"==typeof i?i(e):i&&(i.current=e)}}}(c)),c.refs=t,c.resolver}),u._onFocus=function(t){if(!u._portalContainsElement(t.target)){var e,n=u.props,r=n.onActiveElementChanged,i=n.doNotAllowFocusEventToPropagate,o=n.stopFocusPropagation,a=n.onFocusNotification,s=n.onFocus,l=n.shouldFocusInnerElementWhenReceivedFocus,c=n.defaultTabbableElement,d=u._isImmediateDescendantOfZone(t.target);if(d)e=t.target;else for(var h=t.target;h&&h!==u._root.current;){if(P(h)&&u._isImmediateDescendantOfZone(h)){e=h;break}h=y(h,un)}if(l&&t.target===u._root.current){var p=c&&"function"==typeof c&&u._root.current&&c(u._root.current);p&&P(p)?(e=p,p.focus()):(u.focus(!0),u._activeElement&&(e=null))}var f=!u._activeElement;e&&e!==u._activeElement&&((d||f)&&u._setFocusAlignment(e,!0,!0),u._activeElement=e,f&&u._updateTabIndexes()),r&&r(u._activeElement,t),(o||i)&&t.stopPropagation(),s?s(t):a&&a()}},u._onBlur=function(){u._setParkedFocus(!1)},u._onMouseDown=function(t){if(!u._portalContainsElement(t.target)&&!u.props.disabled){for(var e=t.target,n=[];e&&e!==u._root.current;)n.push(e),e=y(e,un);for(;n.length&&((e=n.pop())&&P(e)&&u._setActiveElement(e,!0),!F(e)););}},u._onKeyDown=function(t,e){if(!u._portalContainsElement(t.target)){var n=u.props,r=n.direction,i=n.disabled,o=n.isInnerZoneKeystroke,s=n.pagingSupportDisabled,l=n.shouldEnterInnerZone;if(!(i||(u.props.onKeyDown&&u.props.onKeyDown(t),t.isDefaultPrevented()||u._getDocument().activeElement===u._root.current&&u._isInnerZone))){if((l&&l(t)||o&&o(t))&&u._isImmediateDescendantOfZone(t.target)){var c=u._getFirstInnerZone();if(c){if(!c.focus(!0))return}else{if(!I(t.target))return;if(!u.focusElement(w(t.target,t.target.firstChild,!0)))return}}else{if(t.altKey)return;switch(t.which){case 32:if(u._shouldRaiseClicksOnSpace&&u._tryInvokeClickForFocusable(t.target,t))break;return;case 37:if(r!==Re.vertical&&(u._preventDefaultWhenHandled(t),u._moveFocusLeft(e)))break;return;case 39:if(r!==Re.vertical&&(u._preventDefaultWhenHandled(t),u._moveFocusRight(e)))break;return;case 38:if(r!==Re.horizontal&&(u._preventDefaultWhenHandled(t),u._moveFocusUp()))break;return;case 40:if(r!==Re.horizontal&&(u._preventDefaultWhenHandled(t),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(t.target)){var d=!1;if(u._processingTabKey=!0,d=r!==Re.vertical&&u._shouldWrapFocus(u._activeElement,en)?((0,a.zg)(e)?!t.shiftKey:t.shiftKey)?u._moveFocusLeft(e):u._moveFocusRight(e):t.shiftKey?u._moveFocusUp():u._moveFocusDown(),u._processingTabKey=!1,d)break;u.props.shouldResetActiveElementWhenTabFromZone&&(u._activeElement=null)}return;case 36:if(u._isContentEditableElement(t.target)||u._isElementInput(t.target)&&!u._shouldInputLoseFocus(t.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(t.target)||u._isElementInput(t.target)&&!u._shouldInputLoseFocus(t.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(t.target,t))break;return;default:return}}t.preventDefault(),t.stopPropagation()}}},u._getHorizontalDistanceFromCenter=function(t,e,n){var r=u._focusAlignment.left||u._focusAlignment.x||0,i=Math.floor(n.top),o=Math.floor(e.bottom),a=Math.floor(n.bottom),s=Math.floor(e.top);return t&&i>o||!t&&a<s?r>=n.left&&r<=n.left+n.width?0:Math.abs(n.left+n.width/2-r):u._shouldWrapFocus(u._activeElement,tn)?nn:rn},Ze(u),u._id=f("FocusZone"),u._focusAlignment={left:0,top:0},u._processingTabKey=!1;var d=null===(o=null!==(r=e.shouldRaiseClicks)&&void 0!==r?r:n.defaultProps.shouldRaiseClicks)||void 0===o||o;return u._shouldRaiseClicksOnEnter=null!==(s=e.shouldRaiseClicksOnEnter)&&void 0!==s?s:d,u._shouldRaiseClicksOnSpace=null!==(l=e.shouldRaiseClicksOnSpace)&&void 0!==l?l:d,u}return(0,e.ZT)(n,t),n.getOuterZones=function(){return ln.size},n._onKeyDownCapture=function(t){9===t.which&&ln.forEach((function(t){return t._updateTabIndexes()}))},n.prototype.componentDidMount=function(){var t=this._root.current;if(sn[this._id]=this,t){for(var e=y(t,un);e&&e!==this._getDocument().body&&1===e.nodeType;){if(F(e)){this._isInnerZone=!0;break}e=y(e,un)}this._isInnerZone||(ln.add(this),this._root.current&&this._root.current.addEventListener("keydown",n._onKeyDownCapture,!0)),this._root.current&&this._root.current.addEventListener("blur",this._onBlur,!0),this._updateTabIndexes(),this.props.defaultTabbableElement&&"string"==typeof this.props.defaultTabbableElement?this._activeElement=this._getDocument().querySelector(this.props.defaultTabbableElement):this.props.defaultActiveElement&&(this._activeElement=this._getDocument().querySelector(this.props.defaultActiveElement)),this.props.shouldFocusOnMount&&this.focus()}},n.prototype.componentDidUpdate=function(){var t=this._root.current,e=this._getDocument();if((this._activeElement&&!b(this._root.current,this._activeElement,un)||this._defaultFocusElement&&!b(this._root.current,this._defaultFocusElement,un))&&(this._activeElement=null,this._defaultFocusElement=null,this._updateTabIndexes()),!this.props.preventFocusRestoration&&e&&this._lastIndexPath&&(e.activeElement===e.body||null===e.activeElement||e.activeElement===t)){var n=function(t,e){for(var n=t,r=0,i=e;r<i.length;r++){var o=i[r],a=n.children[Math.min(o,n.children.length-1)];if(!a)break;n=a}return P(n)&&D(n)?n:w(t,n,!0)||T(t,n)}(t,this._lastIndexPath);n?(this._setActiveElement(n,!0),n.focus(),this._setParkedFocus(!1)):this._setParkedFocus(!0)}},n.prototype.componentWillUnmount=function(){delete sn[this._id],this._isInnerZone||(ln.delete(this),this._root.current&&this._root.current.removeEventListener("keydown",n._onKeyDownCapture,!0)),this._root.current&&this._root.current.removeEventListener("blur",this._onBlur,!0),this._activeElement=null,this._defaultFocusElement=null},n.prototype.render=function(){var t=this,n=this.props,r=n.as,o=n.elementType,a=n.rootProps,s=n.ariaDescribedBy,l=n.ariaLabelledBy,c=n.className,u=X(this.props,W),d=r||o||"div";this._evaluateFocusBeforeRender();var h=(0,Yt.gh)();return i.createElement(d,(0,e.pi)({"aria-labelledby":l,"aria-describedby":s},u,a,{className:U((Ke||(Ke=(0,Q.y)({selectors:{":focus":{outline:"none"}}},"ms-FocusZone")),Ke),c),ref:this._mergedRef(this.props.elementRef,this._root),"data-focuszone-id":this._id,onKeyDown:function(e){return t._onKeyDown(e,h)},onFocus:this._onFocus,onMouseDownCapture:this._onMouseDown}),this.props.children)},n.prototype.focus=function(t,e){if(void 0===t&&(t=!1),void 0===e&&(e=!1),this._root.current){if(!t&&"true"===this._root.current.getAttribute($e)&&this._isInnerZone){var n=this._getOwnerZone(this._root.current);if(n!==this._root.current){var r=sn[n.getAttribute(Je)];return!!r&&r.focusElement(this._root.current)}return!1}if(!t&&this._activeElement&&b(this._root.current,this._activeElement)&&P(this._activeElement)&&(!e||M(this._activeElement)))return this._activeElement.focus(),!0;var i=this._root.current.firstChild;return this.focusElement(w(this._root.current,i,!0,void 0,void 0,void 0,void 0,void 0,e))}return!1},n.prototype.focusLast=function(){if(this._root.current){var t=this._root.current&&this._root.current.lastChild;return this.focusElement(T(this._root.current,t,!0,!0,!0))}return!1},n.prototype.focusElement=function(t,e){var n=this.props,r=n.onBeforeFocus,i=n.shouldReceiveFocus;return!(i&&!i(t)||r&&!r(t)||!t||(this._setActiveElement(t,e),this._activeElement&&this._activeElement.focus(),0))},n.prototype.setFocusAlignment=function(t){this._focusAlignment=t},Object.defineProperty(n.prototype,"defaultFocusElement",{get:function(){return this._defaultFocusElement},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"activeElement",{get:function(){return this._activeElement},enumerable:!1,configurable:!0}),n.prototype._evaluateFocusBeforeRender=function(){var t=this._root.current,e=this._getDocument();if(e){var n=e.activeElement;if(n!==t){var r=b(t,n,!1);this._lastIndexPath=r?function(t,e){for(var n=[];e&&t&&e!==t;){var r=y(e,!0);if(null===r)return[];n.unshift(Array.prototype.indexOf.call(r.children,e)),e=r}return n}(t,n):void 0}}},n.prototype._setParkedFocus=function(t){var e=this._root.current;e&&this._isParked!==t&&(this._isParked=t,t?(this.props.allowFocusRoot||(this._parkedTabIndex=e.getAttribute("tabindex"),e.setAttribute("tabindex","-1")),e.focus()):this.props.allowFocusRoot||(this._parkedTabIndex?(e.setAttribute("tabindex",this._parkedTabIndex),this._parkedTabIndex=void 0):e.removeAttribute("tabindex")))},n.prototype._setActiveElement=function(t,e){var n=this._activeElement;this._activeElement=t,n&&(F(n)&&this._updateTabIndexes(n),n.tabIndex=-1),this._activeElement&&(this._focusAlignment&&!e||this._setFocusAlignment(t,!0,!0),this._activeElement.tabIndex=0)},n.prototype._preventDefaultWhenHandled=function(t){this.props.preventDefaultWhenHandled&&t.preventDefault()},n.prototype._tryInvokeClickForFocusable=function(t,e){var n=t;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($e)&&"true"!==n.getAttribute("data-disable-click-on-enter"))return on(n,e),!0;n=y(n,un)}while(n!==this._root.current);return!1},n.prototype._getFirstInnerZone=function(t){if(!(t=t||this._activeElement||this._root.current))return null;if(F(t))return sn[t.getAttribute(Je)];for(var e=t.firstElementChild;e;){if(F(e))return sn[e.getAttribute(Je)];var n=this._getFirstInnerZone(e);if(n)return n;e=e.nextElementSibling}return null},n.prototype._moveFocus=function(t,e,n,r){void 0===r&&(r=!0);var i=this._activeElement,o=-1,a=void 0,s=!1,l=this.props.direction===Re.bidirectional;if(!i||!this._root.current)return!1;if(this._isElementInput(i)&&!this._shouldInputLoseFocus(i,t))return!1;var c=l?i.getBoundingClientRect():null;do{if(i=t?w(this._root.current,i):T(this._root.current,i),!l){a=i;break}if(i){var u=e(c,i.getBoundingClientRect());if(-1===u&&-1===o){a=i;break}if(u>-1&&(-1===o||u<o)&&(o=u,a=i),o>=0&&u<0)break}}while(i);if(a&&a!==this._activeElement)s=!0,this.focusElement(a);else if(this.props.isCircularNavigation&&r)return t?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 t=this,e=-1,n=this._focusAlignment.left||this._focusAlignment.x||0;return!!this._moveFocus(!0,(function(r,i){var o=-1,a=Math.floor(i.top),s=Math.floor(r.bottom);return a<s?t._shouldWrapFocus(t._activeElement,tn)?nn:rn:((-1===e&&a>=s||a===e)&&(e=a,o=n>=i.left&&n<=i.left+i.width?0:Math.abs(i.left+i.width/2-n)),o)}))&&(this._setFocusAlignment(this._activeElement,!1,!0),!0)},n.prototype._moveFocusUp=function(){var t=this,e=-1,n=this._focusAlignment.left||this._focusAlignment.x||0;return!!this._moveFocus(!1,(function(r,i){var o=-1,a=Math.floor(i.bottom),s=Math.floor(i.top),l=Math.floor(r.top);return a>l?t._shouldWrapFocus(t._activeElement,tn)?nn:rn:((-1===e&&a<=l||s===e)&&(e=s,o=n>=i.left&&n<=i.left+i.width?0:Math.abs(i.left+i.width/2-n)),o)}))&&(this._setFocusAlignment(this._activeElement,!1,!0),!0)},n.prototype._moveFocusLeft=function(t){var e=this,n=this._shouldWrapFocus(this._activeElement,en);return!!this._moveFocus((0,a.zg)(t),(function(r,i){var o=-1;return((0,a.zg)(t)?parseFloat(i.top.toFixed(3))<parseFloat(r.bottom.toFixed(3)):parseFloat(i.bottom.toFixed(3))>parseFloat(r.top.toFixed(3)))&&i.right<=r.right&&e.props.direction!==Re.vertical?o=r.right-i.right:n||(o=rn),o}),void 0,n)&&(this._setFocusAlignment(this._activeElement,!0,!1),!0)},n.prototype._moveFocusRight=function(t){var e=this,n=this._shouldWrapFocus(this._activeElement,en);return!!this._moveFocus(!(0,a.zg)(t),(function(r,i){var o=-1;return((0,a.zg)(t)?parseFloat(i.bottom.toFixed(3))>parseFloat(r.top.toFixed(3)):parseFloat(i.top.toFixed(3))<parseFloat(r.bottom.toFixed(3)))&&i.left>=r.left&&e.props.direction!==Re.vertical?o=i.left-r.left:n||(o=rn),o}),void 0,n)&&(this._setFocusAlignment(this._activeElement,!0,!1),!0)},n.prototype._moveFocusPaging=function(t,e){void 0===e&&(e=!0);var n=this._activeElement;if(!n||!this._root.current)return!1;if(this._isElementInput(n)&&!this._shouldInputLoseFocus(n,t))return!1;var r=et(n);if(!r)return!1;var i=-1,o=void 0,a=-1,s=-1,l=r.clientHeight,c=n.getBoundingClientRect();do{if(n=t?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(t,c,u);if(t&&d>h+l||!t&&p<f-l)break;g>-1&&(t&&d>a?(a=d,i=g,o=n):!t&&p<s?(s=p,i=g,o=n):(-1===i||g<=i)&&(i=g,o=n))}}while(n);var m=!1;if(o&&o!==this._activeElement)m=!0,this.focusElement(o),this._setFocusAlignment(o,!1,!0);else if(this.props.isCircularNavigation&&e)return t?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(t,e,n){if(this.props.direction===Re.bidirectional&&(!this._focusAlignment||e||n)){var r=t.getBoundingClientRect(),i=r.left+r.width/2,o=r.top+r.height/2;this._focusAlignment||(this._focusAlignment={left:i,top:o}),e&&(this._focusAlignment.left=i),n&&(this._focusAlignment.top=o)}},n.prototype._isImmediateDescendantOfZone=function(t){return this._getOwnerZone(t)===this._root.current},n.prototype._getOwnerZone=function(t){for(var e=y(t,un);e&&e!==this._root.current&&e!==this._getDocument().body;){if(F(e))return e;e=y(e,un)}return e},n.prototype._updateTabIndexes=function(t){!this._activeElement&&this.props.defaultTabbableElement&&"function"==typeof this.props.defaultTabbableElement&&(this._activeElement=this.props.defaultTabbableElement(this._root.current)),!t&&this._root.current&&(this._defaultFocusElement=null,t=this._root.current,this._activeElement&&!b(t,this._activeElement)&&(this._activeElement=null)),this._activeElement&&!P(this._activeElement)&&(this._activeElement=null);for(var e=t&&t.children,n=0;e&&n<e.length;n++){var r=e[n];F(r)?"true"===r.getAttribute($e)&&(this._isInnerZone||(this._activeElement||this._defaultFocusElement)&&this._activeElement!==r?"-1"!==r.getAttribute(Qe)&&r.setAttribute(Qe,"-1"):(this._defaultFocusElement=r,"0"!==r.getAttribute(Qe)&&r.setAttribute(Qe,"0"))):(r.getAttribute&&"false"===r.getAttribute($e)&&r.setAttribute(Qe,"-1"),P(r)?this.props.disabled?r.setAttribute(Qe,"-1"):this._isInnerZone||(this._activeElement||this._defaultFocusElement)&&this._activeElement!==r?"-1"!==r.getAttribute(Qe)&&r.setAttribute(Qe,"-1"):(this._defaultFocusElement=r,"0"!==r.getAttribute(Qe)&&r.setAttribute(Qe,"0")):"svg"===r.tagName&&"false"!==r.getAttribute("focusable")&&r.setAttribute("focusable","false")),this._updateTabIndexes(r)}},n.prototype._isContentEditableElement=function(t){return t&&"true"===t.getAttribute("contenteditable")},n.prototype._isElementInput=function(t){return!(!t||!t.tagName||"input"!==t.tagName.toLowerCase()&&"textarea"!==t.tagName.toLowerCase())},n.prototype._shouldInputLoseFocus=function(t,e){if(!this._processingTabKey&&t&&t.type&&cn.indexOf(t.type.toLowerCase())>-1){var n=t.selectionStart,r=n!==t.selectionEnd,i=t.value,o=t.readOnly;if(r||n>0&&!e&&!o||n!==i.length&&e&&!o||this.props.handleTabKey&&(!this.props.shouldInputLoseFocusOnArrowKey||!this.props.shouldInputLoseFocusOnArrowKey(t)))return!1}return!0},n.prototype._shouldWrapFocus=function(t,e){return!this.props.checkForNoWrap||function(t,e,n){return"true"!==function(t,e,n){var r=x(t,(function(t){return t.hasAttribute(e)}),n);return r&&r.getAttribute(e)}(t,e,null!=n?n:(0,C.M)())}(t,e)},n.prototype._portalContainsElement=function(t){return t&&!!this._root.current&&Ge(t,this._root.current)},n.prototype._getDocument=function(){return(0,C.M)(this._root.current)},n.defaultProps={isCircularNavigation:!1,direction:Re.bidirectional,shouldRaiseClicks:!0,"data-tabster":'{"uncontrolled": {}}'},n}(i.Component);function hn(t){return function(t){return t.clientWidth<t.scrollWidth}(t)||function(t){return t.clientHeight<t.scrollHeight}(t)}!function(t){t[t.Parent=0]="Parent",t[t.Self=1]="Self"}(an||(an={}));var pn,fn=(0,o.y)(),gn=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e._onRenderContent=function(t){return"string"==typeof t.content?i.createElement("p",{className:e._classNames.subText},t.content):i.createElement("div",{className:e._classNames.subText},t.content)},e}return(0,e.ZT)(n,t),n.prototype.render=function(){var t=this.props,n=t.className,r=t.calloutProps,o=t.directionalHint,a=t.directionalHintForRTL,s=t.styles,l=t.id,c=t.maxWidth,u=t.onRenderContent,d=void 0===u?this._onRenderContent:u,h=t.targetElement,p=t.theme;return this._classNames=fn(s,{theme:p,className:n||r&&r.className,beakWidth:r&&r.isBeakVisible?r.beakWidth:0,gapSpace:r&&r.gapSpace,maxWidth:c}),i.createElement(He,(0,e.pi)({target:h,directionalHint:o,directionalHintForRTL:a},r,X(this.props,q,["id"]),{className:this._classNames.root}),i.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}(i.Component),mn=(0,t.z)(gn,(function(t){var e=t.className,n=t.beakWidth,r=void 0===n?16:n,i=t.gapSpace,o=void 0===i?0:i,a=t.maxWidth,s=t.theme,l=s.semanticColors,c=s.fonts,u=s.effects,d=-(Math.sqrt(r*r/2)+o)+1/window.devicePixelRatio;return{root:["ms-Tooltip",s.fonts.medium,Yt.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}}},e],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(t){t[t.zero=0]="zero",t[t.medium=1]="medium",t[t.long=2]="long"}(pn||(pn={}));var vn,_n,yn=(0,o.y)(),xn=function(t){function n(e){var r=t.call(this,e)||this;return r._tooltipHost=i.createRef(),r._defaultTooltipId=f("tooltip"),r.show=function(){r._toggleTooltip(!0)},r.dismiss=function(){r._hideTooltip()},r._getTargetElement=function(){if(r._tooltipHost.current){var t=r.props.overflowMode;if(void 0!==t)switch(t){case an.Parent:return r._tooltipHost.current.parentElement;case an.Self:return r._tooltipHost.current}return r._tooltipHost.current}},r._onTooltipFocus=function(t){r._ignoreNextFocusEvent?r._ignoreNextFocusEvent=!1:r._onTooltipMouseEnter(t)},r._onTooltipContentFocus=function(t){n._currentVisibleTooltip&&n._currentVisibleTooltip!==r&&n._currentVisibleTooltip.dismiss(),n._currentVisibleTooltip=r,r._clearDismissTimer(),r._clearOpenTimer()},r._onTooltipBlur=function(t){var e;r._ignoreNextFocusEvent=(null===(e=Ut(r.context))||void 0===e?void 0:e.activeElement)===t.target,r._dismissTimerId=r._async.setTimeout((function(){r._hideTooltip()}),0)},r._onTooltipMouseEnter=function(t){var e=r.props,i=e.overflowMode,o=e.delay,a=Ut(r.context);if(n._currentVisibleTooltip&&n._currentVisibleTooltip!==r&&n._currentVisibleTooltip.dismiss(),n._currentVisibleTooltip=r,void 0!==i){var s=r._getTargetElement();if(s&&!hn(s))return}if(!t.target||!Ge(t.target,r._getTargetElement(),a))if(r._clearDismissTimer(),r._clearOpenTimer(),o!==pn.zero){var l=r._getDelayTime(o);r._openTimerId=r._async.setTimeout((function(){r._toggleTooltip(!0)}),l)}else r._toggleTooltip(!0)},r._onTooltipMouseLeave=function(t){var e=r.props.closeDelay;r._clearDismissTimer(),r._clearOpenTimer(),e?r._dismissTimerId=r._async.setTimeout((function(){r._toggleTooltip(!1)}),e):r._toggleTooltip(!1),n._currentVisibleTooltip===r&&(n._currentVisibleTooltip=void 0)},r._onTooltipKeyDown=function(t){(t.which===Ft||t.ctrlKey)&&r.state.isTooltipVisible&&(r._hideTooltip(),t.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(t){r.state.isTooltipVisible!==t&&r.setState({isTooltipVisible:t},(function(){return r.props.onTooltipToggle&&r.props.onTooltipToggle(t)}))},r._getDelayTime=function(t){switch(t){case pn.medium:return 300;case pn.long:return 500;default:return 0}},Ze(r),r.state={isAriaPlaceholderRendered:!1,isTooltipVisible:!1},r._async=new It(r),r}return(0,e.ZT)(n,t),n.prototype.render=function(){var t=this.props,n=t.calloutProps,r=t.children,o=t.content,a=t.directionalHint,s=t.directionalHintForRTL,l=t.hostClassName,c=t.id,u=t.setAriaDescribedBy,d=void 0===u||u,h=t.tooltipProps,p=t.styles,f=t.theme;this._classNames=yn(p,{theme:f,className:l});var g=this.state.isTooltipVisible,m=c||this._defaultTooltipId,v=(0,e.pi)((0,e.pi)({id:"".concat(m,"--tooltip"),content:o,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(t){return(null==t?void 0:t.content)?i.createElement(i.Fragment,null,t.content):null})):o,y=g&&!!_,x=d&&g&&_?m:void 0;return i.createElement("div",(0,e.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&&i.createElement(mn,(0,e.pi)({},v)),i.createElement("div",{hidden:!0,id:m,style:Yt.ul},_))},n.prototype.componentWillUnmount=function(){n._currentVisibleTooltip&&n._currentVisibleTooltip===this&&(n._currentVisibleTooltip=void 0),this._async.dispose()},n.defaultProps={delay:pn.medium},n.contextType=Bt,n}(i.Component),bn={root:"ms-TooltipHost",ariaPlaceholder:"ms-TooltipHost-aria-placeholder"},Cn=(0,t.z)(xn,(function(t){var e=t.className,n=t.theme;return{root:[(0,Yt.Cn)(bn,n).root,{display:"inline"},e]}}),void 0,{scope:"TooltipHost"}),En=function(t){function n(e){var n=t.call(this,e)||this;return n._tooltipChild=i.createRef(),n._checkTextOverflow=function(){var t=n._getTargetElement(),e=!!t&&hn(t);e!==n.state.textOverflow&&n.setState({textOverflow:e})},n._getTargetElement=function(){if(n._tooltipChild.current&&n._tooltipChild.current.parentElement)return n._tooltipChild.current.parentElement},n.state={textOverflow:!1},n._async=new It(n),n}return(0,e.ZT)(n,t),n.prototype.render=function(){var t=this.props,n=t.className,r=t.content,o=t.accessibilityData;return i.createElement(Cn,{overflowMode:an.Self,hostClassName:n,content:r},i.createElement("span",(0,e.pi)({},(0,ze.ey)(o),{ref:this._tooltipChild,"data-is-focusable":this.state.textOverflow}),r))},n.prototype.componentDidMount=function(){var t=this._getTargetElement();window.ResizeObserver&&t&&(this._resizeObserver=new ResizeObserver(this._async.debounce(this._checkTextOverflow,500)),this._resizeObserver.observe(t))},n.prototype.componentWillUnmount=function(){var t;null===(t=this._resizeObserver)||void 0===t||t.disconnect(),this._async.dispose()},n}(i.Component),Sn=(0,o.y)(),An=function(t){function n(e){var n=t.call(this,e)||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=Sn(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(t){return n.props.barChartCustomData?i.createElement("div",{role:"text"},n.props.barChartCustomData(t)):n._getDefaultTextData(t)},n._closeCallout=function(){n.setState({isCalloutVisible:!1})},n._getAriaLabel=function(t){var e,n=t.xAxisCalloutData||t.legend,r=t.yAxisCalloutData||(t.horizontalBarChartdata?"".concat(t.horizontalBarChartdata.x,"/").concat(t.horizontalBarChartdata.y):0);return(null===(e=t.callOutAccessibilityData)||void 0===e?void 0:e.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=i.createRef(),n}return(0,e.ZT)(n,t),n.prototype.componentDidMount=function(){var t,e=(null===(t=this.barChartSvgRef.current)||void 0===t?void 0:t.getBoundingClientRect().width)||0;if(e){var n=3/e*100;this.setState({barSpacingInPercent:n})}},n.prototype.render=function(){var t=this,n=this.props,r=n.data,o=n.theme;this._adjustProps();var a=o.palette,s=0;return this._isChartEmpty()?i.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):i.createElement("div",{className:this._classNames.root,onMouseLeave:this._handleChartMouseLeave},r.map((function(e,n){s=e.chartData&&e.chartData[0]&&e.chartData[0].horizontalBarChartdata.x?e.chartData[0].horizontalBarChartdata.x:0,e.chartData[1]={legend:"",horizontalBarChartdata:{x:e.chartData[0].horizontalBarChartdata.y-s,y:e.chartData[0].horizontalBarChartdata.y},color:a.neutralLight};var r=t.props.variant===h.AbsoluteScale?null:t._getChartDataText(e),o=t._createBars(e,a),l=t._uniqLineText+"_"+n,c=Sn(t.props.styles,{theme:t.props.theme,width:t.props.width,showTriangle:!!e.chartData[0].data,variant:t.props.variant});return i.createElement("div",{key:n},i.createElement("div",{className:c.items},i.createElement(dn,{direction:Re.horizontal},i.createElement("div",{className:t._classNames.chartTitle},e.chartTitle&&i.createElement(En,{className:t._classNames.chartTitleLeft,content:e.chartTitle,accessibilityData:e.chartTitleAccessibilityData}),r)),e.chartData[0].data&&t._createBenchmark(e),i.createElement(dn,{direction:Re.horizontal,className:t._classNames.chartWrapper},i.createElement("svg",{ref:t.barChartSvgRef,className:t._classNames.chart,"aria-label":e.chartTitle},i.createElement("g",{id:l,key:l,ref:function(n){t._refCallback(n,e.chartData[0].legend)},onClick:function(){var t=e.chartData[0];t&&t.onClick&&t.onClick()}},o)))))})),i.createElement(He,(0,e.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,ze.ey)(this.state.callOutAccessibilityData)),i.createElement(i.Fragment,null,this.props.onRenderCalloutPerHorizontalBar?this.props.onRenderCalloutPerHorizontalBar(this.state.barCalloutProps):i.createElement(We.ChartHoverCard,{Legend:this.state.xCalloutValue?this.state.xCalloutValue:this.state.legend,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.hoverValue,color:this.state.lineColor,culture:this.props.culture}))))},n.prototype._refCallback=function(t,e){this._refArray.push({index:e,refElement:t})},n.prototype._hoverOn=function(t,e){if((!this.state.isCalloutVisible||this.state.legend!==e.legend)&&this._calloutAnchorPoint!==e){var n=v(this._refArray,(function(t){return t.index===e.legend}));this._calloutAnchorPoint=e,this.setState({isCalloutVisible:!0,hoverValue:t,lineColor:e.color,legend:e.legend,refSelected:n.refElement,xCalloutValue:e.xAxisCalloutData,yCalloutValue:e.yAxisCalloutData,barCalloutProps:e,callOutAccessibilityData:e.callOutAccessibilityData})}},n.prototype._hoverOff=function(){},n.prototype._getDefaultTextData=function(t){var n=this.props.culture,r=this.props.chartDataMode||"default",o=t.chartData[0],a=o.horizontalBarChartdata.x,s=o.horizontalBarChartdata.y,l=(0,ze.ey)(t.chartDataAccessibilityData,"text",!1);switch(r){case"default":return i.createElement("div",(0,e.pi)({className:this._classNames.chartTitleRight},l),(0,ze.Ts)(a,n));case"fraction":return i.createElement("div",(0,e.pi)({},l),i.createElement("span",{className:this._classNames.chartTitleRight},(0,ze.Ts)(a,n)),i.createElement("span",{className:this._classNames.chartDataTextDenominator}," / "+(0,ze.Ts)(s,n)));case"percentage":var c="".concat((0,ze.Ts)(Math.round(a/s*100),n),"%");return i.createElement("div",(0,e.pi)({className:this._classNames.chartTitleRight},l),c)}},n.prototype._createBenchmark=function(t){var e=t.chartData[0].horizontalBarChartdata.y,n=t.chartData[0].data,r={left:"calc("+Math.round((n||0)/e*100)+"% - 4px)"};return i.createElement("div",{className:this._classNames.benchmarkContainer},i.createElement("div",{className:this._classNames.triangle,style:r}))},n.prototype._createBars=function(t,e){var n,r=this,o=(null===(n=t.chartData)||void 0===n?void 0:n.reduce((function(t,e){return t+((e.data||0)>0?1:0)}),0))||1,a=this.state.barSpacingInPercent*(o-1),s=[e.blueLight,e.blue,e.blueMid,e.red,e.black],l=[],c=t.chartData.reduce((function(t,e){return t+(e.horizontalBarChartdata.x?e.horizontalBarChartdata.x:0)}),0),u=0,d=0,p=0;t.chartData.map((function(t,e){var n=t.horizontalBarChartdata.x?t.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=t.chartData.map((function(e,n){var o=e.color?e.color:s[Math.floor(4*Math.random()+1)],a=e.horizontalBarChartdata.x?e.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=e.horizontalBarChartdata.x;if(1===n&&r.props.variant===h.AbsoluteScale){if(r.props.hideLabels)return i.createElement("text",{key:n});var g=t.chartData[0].horizontalBarChartdata.x;return i.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,ze.cE)(g))}return i.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":""!==e.legend,width:d+"%",height:r._barHeight,fill:o,onMouseOver:""!==e.legend?r._hoverOn.bind(r,p,e):void 0,onFocus:""!==e.legend?r._hoverOn.bind(r,p,e):void 0,role:"img","aria-label":r._getAriaLabel(e),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}(i.Component),Ln=(0,t.z)(An,(function(t){var n=t.className,r=t.theme,i=t.width,o=t.barHeight,a=t.showTriangle,s=t.variant,l=t.hideLabels,c=r.palette;return{root:[{display:"flex",flexDirection:"column",width:i||"100%"},n],items:{marginBottom:a||s===h.AbsoluteScale?"16px":"10px"},chart:{width:"100%",height:o||12,display:"block",overflow:"visible"},barWrapper:{},chartTitle:(0,e.pi)((0,e.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:Yt.TS.medium,fontWeight:Yt.lq.semibold,color:r.palette.neutralPrimary},chartDataTextDenominator:{fontSize:Yt.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,e.pi)((0,e.pi)({},r.fonts.small),{fontWeight:Yt.lq.semibold,fill:r.palette.neutralPrimary}),chartWrapper:{paddingRight:s!==h.AbsoluteScale||l?0:40}}})),kn={host:"ms-HoverCard-host"},Tn=function(){function t(e){this._id=t._uniqueId++,this._parent=e,this._eventRecords=[]}return t.raise=function(e,n,r,i,o){var a,s=null!=o?o:(0,C.M)();if(t._isElement(e)){if(void 0!==s&&s.createEvent){var l=s.createEvent("HTMLEvents");l.initEvent(n,i||!1,!0),j(l,r),a=e.dispatchEvent(l)}else if(void 0!==s&&s.createEventObject){var c=s.createEventObject(r);e.fireEvent("on"+n,c)}}else for(;e&&!1!==a;){var u=e.__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))}e=i?e.parent:null}return a},t.isObserved=function(t,e){var n=t&&t.__events__;return!!n&&!!n[e]},t.isDeclared=function(t,e){var n=t&&t.__declaredEvents;return!!n&&!!n[e]},t.stopPropagation=function(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0},t._isElement=function(t){return!!t&&(!!t.addEventListener||"undefined"!=typeof HTMLElement&&t instanceof HTMLElement)},t.prototype.dispose=function(){this._isDisposed||(this._isDisposed=!0,this.off(),this._parent=null)},t.prototype.onAll=function(t,e,n){for(var r in e)e.hasOwnProperty(r)&&this.on(t,r,e[r],n)},t.prototype.on=function(e,n,r,i){var o=this;if(n.indexOf(",")>-1)for(var a=n.split(/[ ,]+/),s=0;s<a.length;s++)this.on(e,a[s],r,i);else{var l=this._parent,c={target:e,eventName:n,parent:l,callback:r,options:i};if((a=e.__events__=e.__events__||{})[n]=a[n]||{count:0},a[n][this._id]=a[n][this._id]||[],a[n][this._id].push(c),a[n].count++,t._isElement(e)){var u=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(!o._isDisposed){var n;try{if(!1===(n=r.apply(l,t))&&t[0]){var i=t[0];i.preventDefault&&i.preventDefault(),i.stopPropagation&&i.stopPropagation(),i.cancelBubble=!0}}catch(i){}return n}};c.elementCallback=u,e.addEventListener?e.addEventListener(n,u,i):e.attachEvent&&e.attachEvent("on"+n,u)}else c.objectCallback=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(!o._isDisposed)return r.apply(l,t)};this._eventRecords.push(c)}},t.prototype.off=function(t,e,n,r){for(var i=0;i<this._eventRecords.length;i++){var o=this._eventRecords[i];if(!(t&&t!==o.target||e&&e!==o.eventName||n&&n!==o.callback||"boolean"==typeof r&&r!==o.options)){var a=o.target.__events__,s=a[o.eventName],l=s?s[this._id]:null;l&&(1!==l.length&&n?(s.count--,l.splice(l.indexOf(o),1)):(s.count-=l.length,delete a[o.eventName][this._id]),s.count||delete a[o.eventName]),o.elementCallback&&(o.target.removeEventListener?o.target.removeEventListener(o.eventName,o.elementCallback,o.options):o.target.detachEvent&&o.target.detachEvent("on"+o.eventName,o.elementCallback)),this._eventRecords.splice(i--,1)}}},t.prototype.raise=function(e,n,r){return t.raise(this._parent,e,n,r)},t.prototype.declare=function(t){var e=this._parent.__declaredEvents=this._parent.__declaredEvents||{};if("string"==typeof t)e[t]=!0;else for(var n=0;n<t.length;n++)e[t[n]]=!0},t._uniqueId=0,t}();!function(t){t[t.hover=0]="hover",t[t.hotKey=1]="hotKey"}(vn||(vn={})),function(t){t.plain="PlainCard",t.expanding="ExpandingCard"}(_n||(_n={}));var wn,Dn={root:"ms-ExpandingCard-root",compactCard:"ms-ExpandingCard-compactCard",expandedCard:"ms-ExpandingCard-expandedCard",expandedCardScroll:"ms-ExpandingCard-expandedCardScrollRegion"};function Mn(t){var e=(0,i.useRef)();return(0,i.useEffect)((function(){e.current=t})),e.current}function Pn(t,e){var n=i.useRef(e);return n.current||(n.current=f(t)),n.current}function Fn(t){var e=i.useRef((function(){throw new Error("Cannot call an event handler while rendering")}));return Fe((function(){e.current=t}),[t]),Zt((function(){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.current.apply(void 0,t)}}))}!function(t){t[t.compact=0]="compact",t[t.expanded=1]="expanded"}(wn||(wn={}));var In={disabled:!1,disableFirstFocus:!1,forceFocusInsideTrap:!0,isClickableOutsideFocusTrap:!1,"data-tabster":'{"uncontrolled": {"completely": true}}'},Nn=i.forwardRef((function(t,n){var r,o,a,s=i.useRef(null),l=i.useRef(null),c=i.useRef(null),u=Ot(s,n),d=Rt(),h=Xt(),p=null===(r=Mn(!1))||void 0===r||r,f=B(In,t),g=Zt({hasFocus:!1,focusStackId:Pn("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=i.useCallback((function(t){t!==l.current&&t!==c.current&&V(t)}),[]),F=Fn((function(){if(s.current){var t=g.previouslyFocusedElementInTrapZone;if(C&&t&&b(s.current,t))P(t);else{var e=null;if("string"==typeof S)e=s.current.querySelector(S);else if(S)e=S(s.current);else if(E){var n="string"==typeof E?E:E();e=s.current.querySelector("."+n)}e||(e=w(s.current,s.current.firstChild,!1,!1,!1,!0)),e&&P(e)}}})),I=function(t){if(!_&&s.current){var e,n=t===g.hasFocus?(void 0===(e=!1)&&(e=!0),T(s.current,c.current,e,!1,!0,!0,!1,!0)):function(t,e,n,r){return void 0===r&&(r=!0),w(t,e,r,!1,!1,!0,!1,!0)}(s.current,l.current,0,!1);n&&(n===l.current||n===c.current?F():n.focus())}},N=Fn((function(t){if(Nn.focusStack=Nn.focusStack.filter((function(t){return g.focusStackId!==t})),d){var e=d.activeElement;L||"function"!=typeof(null==t?void 0:t.focus)||!b(s.current,e)&&e!==d.body||P(t)}})),H=Fn((function(t){if(!_&&g.focusStackId===Nn.focusStack.slice(-1)[0]){var e=t.target;e&&!b(s.current,e)&&(d&&d.activeElement===d.body?setTimeout((function(){d&&d.activeElement===d.body&&(F(),g.hasFocus=!0)}),0):(F(),g.hasFocus=!0),t.preventDefault(),t.stopPropagation())}}));return i.useEffect((function(){var t=[];return x&&t.push(O(h,"focus",H,!0)),k||t.push(O(h,"click",H,!0)),function(){t.forEach((function(t){return t()}))}}),[x,k,h]),i.useEffect((function(){if(!_&&(p||x)&&s.current){Nn.focusStack.push(g.focusStackId);var t=f.elementToFocusOnDismiss||d.activeElement;return y||b(s.current,t)||F(),function(){return N(t)}}}),[x,_]),i.useEffect((function(){if(!_&&D)return Pt(s.current)}),[_,D,s]),o=function(){delete g.previouslyFocusedElementInTrapZone},(a=i.useRef(o)).current=o,i.useEffect((function(){return function(){var t;null===(t=a.current)||void 0===t||t.call(a)}}),[]),function(t,e,n){i.useImperativeHandle(t,(function(){return{get previouslyFocusedElement(){return e},focus:n}}),[n,e])}(v,g.previouslyFocusedElementInTrapZone,F),i.createElement("div",(0,e.pi)({"aria-labelledby":f.ariaLabelledBy},X(f,q),{ref:u,onFocusCapture:function(t){var e;null===(e=f.onFocusCapture)||void 0===e||e.call(f,t),t.target===l.current?I(!0):t.target===c.current&&I(!1),g.hasFocus=!0,t.target!==t.currentTarget&&t.target!==l.current&&t.target!==c.current&&(g.previouslyFocusedElementInTrapZone=t.target)},onBlurCapture:function(t){var e;null===(e=f.onBlurCapture)||void 0===e||e.call(f,t);var n=t.relatedTarget;null===t.relatedTarget&&(n=d.activeElement),b(s.current,n)||(g.hasFocus=!1)}}),i.createElement("div",(0,e.pi)({},M,{ref:l})),m,i.createElement("div",(0,e.pi)({},M,{ref:c})))}));Nn.displayName="FocusTrapZone",Nn.focusStack=[];var Vn,On=function(t){return i.createElement(He,(0,e.pi)({},t),i.createElement(Nn,(0,e.pi)({disabled:t.hidden},t.focusTrapProps),t.children))},Bn=function(t){var n=t.gapSpace,r=void 0===n?0:n,o=t.directionalHint,a=void 0===o?_.bottomLeftEdge:o,s=t.directionalHintFixed,l=t.targetElement,c=t.firstFocus,u=t.trapFocus,d=t.onLeave,h=t.className,p=t.finalHeight,f=t.content,g=t.calloutProps,m=(0,e.pi)((0,e.pi)((0,e.pi)({},X(t,q)),{className:h,target:l,isBeakVisible:!1,directionalHint:a,directionalHintFixed:s,finalHeight:p,minPagePadding:24,onDismiss:d,gapSpace:r}),g);return i.createElement(i.Fragment,null,u?i.createElement(On,(0,e.pi)({},m,{focusTrapProps:{forceFocusInsideTrap:!1,isClickableOutsideFocusTrap:!0,disableFirstFocus:!c}}),f):i.createElement(He,(0,e.pi)({},m),f))},Hn=(0,o.y)(),Rn=function(t){function n(e){var n=t.call(this,e)||this;return n._expandedElem=i.createRef(),n._onKeyDown=function(t){t.which===Ft&&n.props.onLeave&&n.props.onLeave(t)},n._onRenderCompactCard=function(){return i.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})})),i.createElement("div",{className:n._classNames.expandedCard,ref:n._expandedElem},i.createElement("div",{className:n._classNames.expandedCardScroll},n.props.onRenderExpandedCard&&n.props.onRenderExpandedCard(n.props.renderData)))},n._checkNeedsScroll=function(){var t=n.props.expandedCardHeight;n._async.requestAnimationFrame((function(){n._expandedElem.current&&n._expandedElem.current.scrollHeight>=t&&n.setState({needsScroll:!0})}))},n._async=new It(n),Ze(n),n.state={firstFrameRendered:!1,needsScroll:!1},n}return(0,e.ZT)(n,t),n.prototype.componentDidMount=function(){this._checkNeedsScroll()},n.prototype.componentWillUnmount=function(){this._async.dispose()},n.prototype.render=function(){var t=this.props,n=t.styles,r=t.compactCardHeight,o=t.expandedCardHeight,a=t.theme,s=t.mode,l=t.className,c=this.state,u=c.needsScroll,d=c.firstFrameRendered,h=r+o;this._classNames=Hn(n,{theme:a,compactCardHeight:r,className:l,expandedCardHeight:o,needsScroll:u,expandedCardFirstFrameRendered:s===wn.expanded&&d});var p=i.createElement("div",{onMouseEnter:this.props.onEnter,onMouseLeave:this.props.onLeave,onKeyDown:this._onKeyDown},this._onRenderCompactCard(),this._onRenderExpandedCard());return i.createElement(Bn,(0,e.pi)({},this.props,{content:p,finalHeight:h,className:this._classNames.root}))},n.defaultProps={compactCardHeight:156,expandedCardHeight:384,directionalHintFixed:!0},n}(i.Component),zn=(0,t.z)(Rn,(function(t){var e,n=t.theme,r=t.needsScroll,i=t.expandedCardFirstFrameRendered,o=t.compactCardHeight,a=t.expandedCardHeight,s=t.className,l=n.palette,c=(0,Yt.Cn)(Dn,n);return{root:[c.root,{width:320,pointerEvents:"none",selectors:(e={},e[Yt.qJ]={border:"1px solid WindowText"},e)},s],compactCard:[c.compactCard,{pointerEvents:"auto",position:"relative",height:o}],expandedCard:[c.expandedCard,{height:1,overflowY:"hidden",pointerEvents:"auto",transition:"height 0.467s cubic-bezier(0.5, 0, 0, 1)",selectors:{":before":{content:'""',position:"relative",display:"block",top:0,left:24,width:272,height:1,backgroundColor:l.neutralLighter}}},i&&{height:a}],expandedCardScroll:[c.expandedCardScroll,r&&{height:"100%",boxSizing:"border-box",overflowY:"auto"}]}}),void 0,{scope:"ExpandingCard"}),Wn={root:"ms-PlainCard-root"},Yn=(0,o.y)(),Zn=function(t){function n(e){var n=t.call(this,e)||this;return n._onKeyDown=function(t){t.which===Ft&&n.props.onLeave&&n.props.onLeave(t)},Ze(n),n}return(0,e.ZT)(n,t),n.prototype.render=function(){var t=this.props,n=t.styles,r=t.theme,o=t.className;this._classNames=Yn(n,{theme:r,className:o});var a=i.createElement("div",{onMouseEnter:this.props.onEnter,onMouseLeave:this.props.onLeave,onKeyDown:this._onKeyDown},this.props.onRenderPlainCard(this.props.renderData));return i.createElement(Bn,(0,e.pi)({},this.props,{content:a,className:this._classNames.root}))},n}(i.Component),qn=(0,t.z)(Zn,(function(t){var e,n=t.theme,r=t.className;return{root:[(0,Yt.Cn)(Wn,n).root,{pointerEvents:"auto",selectors:(e={},e[Yt.qJ]={border:"1px solid WindowText"},e)},r]}}),void 0,{scope:"PlainCard"}),Xn=(0,o.y)(),Un=function(t){function n(e){var n=t.call(this,e)||this;return n._hoverCard=i.createRef(),n.dismiss=function(t){n._async.clearTimeout(n._openTimerId),n._async.clearTimeout(n._dismissTimerId),t?n._dismissTimerId=n._async.setTimeout((function(){n._setDismissedState()}),n.props.cardDismissDelay):n._setDismissedState()},n._cardOpen=function(t){n._shouldBlockHoverCard()||"keydown"===t.type&&t.which!==n.props.openHotKey||(n._async.clearTimeout(n._dismissTimerId),"mouseenter"===t.type&&(n._currentMouseTarget=t.currentTarget),n._executeCardOpen(t))},n._executeCardOpen=function(t){n._async.clearTimeout(n._openTimerId),n._openTimerId=n._async.setTimeout((function(){n.setState((function(e){return e.isHoverCardVisible?e:{isHoverCardVisible:!0,mode:wn.compact,openMode:"keydown"===t.type?vn.hotKey:vn.hover}}))}),n.props.cardOpenDelay)},n._cardDismiss=function(t,e){if(t){if(!(e instanceof MouseEvent))return;if("keydown"===e.type&&e.which!==Ft)return;n.props.sticky||n._currentMouseTarget!==e.currentTarget&&e.which!==Ft||n.dismiss(!0)}else{if(n.props.sticky&&!(e instanceof MouseEvent)&&e.nativeEvent instanceof MouseEvent&&"mouseleave"===e.type)return;n.dismiss(!0)}},n._setDismissedState=function(){n.setState({isHoverCardVisible:!1,mode:wn.compact,openMode:vn.hover})},n._instantOpenAsExpanded=function(t){n._async.clearTimeout(n._dismissTimerId),n.setState((function(t){return t.isHoverCardVisible?t:{isHoverCardVisible:!0,mode:wn.expanded}}))},n._setEventListeners=function(){var t=n.props,e=t.trapFocus,r=t.instantOpenOnClick,i=t.eventListenerTarget,o=i?n._getTargetElement(i):n._getTargetElement(n.props.target),a=n._nativeDismissEvent;o&&(n._events.on(o,"mouseenter",n._cardOpen),n._events.on(o,"mouseleave",a),e?n._events.on(o,"keydown",n._cardOpen):(n._events.on(o,"focus",n._cardOpen),n._events.on(o,"blur",a)),r?n._events.on(o,"click",n._instantOpenAsExpanded):(n._events.on(o,"mousedown",a),n._events.on(o,"keydown",a)))},Ze(n),n._async=new It(n),n._events=new Tn(n),n._nativeDismissEvent=n._cardDismiss.bind(n,!0),n._childDismissEvent=n._cardDismiss.bind(n,!1),n.state={isHoverCardVisible:!1,mode:wn.compact,openMode:vn.hover},n}return(0,e.ZT)(n,t),n.prototype.componentDidMount=function(){this._setEventListeners()},n.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},n.prototype.componentDidUpdate=function(t,e){var n=this;t.target!==this.props.target&&(this._events.off(),this._setEventListeners()),e.isHoverCardVisible!==this.state.isHoverCardVisible&&(this.state.isHoverCardVisible?(this._async.setTimeout((function(){n.setState({mode:wn.expanded},(function(){n.props.onCardExpand&&n.props.onCardExpand()}))}),this.props.expandedCardOpenDelay),this.props.onCardVisible&&this.props.onCardVisible()):(this.setState({mode:wn.compact}),this.props.onCardHide&&this.props.onCardHide()))},n.prototype.render=function(){var t=this.props,n=t.expandingCardProps,r=t.children,o=t.id,a=t.setAriaDescribedBy,s=void 0===a||a,l=t.styles,c=t.theme,u=t.className,d=t.type,h=t.plainCardProps,p=t.trapFocus,g=t.setInitialFocus,m=this.state,v=m.isHoverCardVisible,_=m.mode,y=m.openMode,x=o||f("hoverCard");this._classNames=Xn(l,{theme:c,className:u});var b=(0,e.pi)((0,e.pi)({},X(this.props,q)),{id:x,trapFocus:!!p,firstFocus:g||y===vn.hotKey,targetElement:this._getTargetElement(this.props.target),onEnter:this._cardOpen,onLeave:this._childDismissEvent}),C=(0,e.pi)((0,e.pi)((0,e.pi)({},n),b),{mode:_}),E=(0,e.pi)((0,e.pi)({},h),b);return i.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===_n.expanding?i.createElement(zn,(0,e.pi)({},C)):i.createElement(qn,(0,e.pi)({},E))))},n.prototype._getTargetElement=function(t){switch(typeof t){case"string":return(0,C.M)().querySelector(t);case"object":return t;default:return this._hoverCard.current||void 0}},n.prototype._shouldBlockHoverCard=function(){return!(!this.props.shouldBlockHoverCard||!this.props.shouldBlockHoverCard())},n.defaultProps={cardOpenDelay:500,cardDismissDelay:100,expandedCardOpenDelay:1500,instantOpenOnClick:!1,setInitialFocus:!1,openHotKey:67,type:_n.expanding},n}(i.Component),jn=(0,t.z)(Un,(function(t){var e=t.className,n=t.theme;return{host:[(0,Yt.Cn)(kn,n).host,e]}}),void 0,{scope:"HoverCard"});!function(t){t[t.horizontal=0]="horizontal",t[t.vertical=1]="vertical"}(Vn||(Vn={}));var Gn=function(t){var n;void 0===t&&(n={},t={getCachedMeasurement:function(t){if(t&&t.cacheKey&&n.hasOwnProperty(t.cacheKey))return n[t.cacheKey]},addMeasurementToCache:function(t,e){t.cacheKey&&(n[t.cacheKey]=e)}});var r,i=t;function o(t,e){var n=i.getCachedMeasurement(t);if(void 0!==n)return n;var r=e();return i.addMeasurementToCache(t,r),r}function a(t,e,n){for(var a=t,s=o(t,n);s>r;){var l=e(a);if(void 0===l)return{renderedData:a,resizeDirection:void 0,dataToMeasure:void 0};if(void 0===(s=i.getCachedMeasurement(l)))return{dataToMeasure:l,resizeDirection:"shrink"};a=l}return{renderedData:a,resizeDirection:void 0,dataToMeasure:void 0}}return{getNextState:function(t,n,s,l){if(void 0!==l||void 0!==n.dataToMeasure){if(l){if(r&&n.renderedData&&!n.dataToMeasure)return(0,e.pi)((0,e.pi)({},n),function(t,n,i,o){var a;return a=t>r?o?{resizeDirection:"grow",dataToMeasure:o(i)}:{resizeDirection:"shrink",dataToMeasure:n}:{resizeDirection:"shrink",dataToMeasure:i},r=t,(0,e.pi)((0,e.pi)({},a),{measureContainer:!1})}(l,t.data,n.renderedData,t.onGrowData));r=l}var c=(0,e.pi)((0,e.pi)({},n),{measureContainer:!1});return n.dataToMeasure&&(c="grow"===n.resizeDirection&&t.onGrowData?(0,e.pi)((0,e.pi)({},c),function(t,n,s,l){for(var c=t,u=o(t,s);u<r;){var d=n(c);if(void 0===d)return{renderedData:c,resizeDirection:void 0,dataToMeasure:void 0};if(void 0===(u=i.getCachedMeasurement(d)))return{dataToMeasure:d};c=d}return(0,e.pi)({resizeDirection:"shrink"},a(c,l,s))}(n.dataToMeasure,t.onGrowData,s,t.onReduceData)):(0,e.pi)((0,e.pi)({},c),a(n.dataToMeasure,t.onReduceData,s))),c}},shouldRenderDataForMeasurement:function(t){return!(!t||void 0!==i.getCachedMeasurement(t))},getInitialResizeGroupState:function(t){return{dataToMeasure:(0,e.pi)({},t),resizeDirection:"grow",measureContainer:!0}}}},Kn=i.createContext({isMeasured:!1}),$n={position:"fixed",visibility:"hidden"},Jn={position:"relative"};function Qn(t,n){var r;switch(n.type){case"resizeData":return(0,e.pi)({},n.value);case"dataToMeasure":return(0,e.pi)((0,e.pi)({},t),{dataToMeasure:n.value,resizeDirection:"grow",measureContainer:!0});default:return(0,e.pi)((0,e.pi)({},t),((r={})[n.type]=n.value,r))}}var tr={isMeasured:!0},er=i.forwardRef((function(t,n){var r=i.useRef(null),o=Ot(r,n),a=function(t,n){var r=Zt(Gn),o=i.useRef(null),a=i.useRef(null),s=i.useRef(!1),l=Nt(),c=function(t,n,r){var o=Zt((function(){return n.getInitialResizeGroupState(t.data)})),a=i.useReducer(Qn,o),s=a[0],l=a[1];i.useEffect((function(){l({type:"dataToMeasure",value:t.data})}),[t.data]);var c=i.useRef(o);return c.current=(0,e.pi)({},s),[c,i.useCallback((function(t){t&&l({type:"resizeData",value:t})}),[]),i.useCallback((function(){r.current&&l({type:"measureContainer",value:!0})}),[r])]}(t,r,n),u=c[0],d=c[1],h=c[2];i.useEffect((function(){var e;u.current.renderedData&&(s.current=!0,null===(e=t.dataDidRender)||void 0===e||e.call(t,u.current.renderedData))})),i.useEffect((function(){l.requestAnimationFrame((function(){var e=void 0;if(u.current.measureContainer&&n.current){var i=n.current.getBoundingClientRect();e=t.direction===Vn.vertical?i.height:i.width}var l=r.getNextState(t,u.current,(function(){var e=s.current?a:o;if(!e.current)return 0;var n=e.current.getBoundingClientRect();return t.direction===Vn.vertical?n.height:n.width}),e);d(l)}),n.current)})),Vt(Ht(),"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,o,a,p,f]}(t,r),s=a[0],l=a[1],c=a[2],u=a[3],d=a[4],h=a[5],p=a[6];i.useImperativeHandle(t.componentRef,(function(){return{remeasure:c}}),[c]);var f=t.className,g=t.onRenderData,m=X(t,q,["data"]);return i.createElement("div",(0,e.pi)({},m,{className:f,ref:o}),i.createElement("div",{style:Jn},h&&!p&&i.createElement("div",{style:$n,ref:d},i.createElement(Kn.Provider,{value:tr},g(s))),i.createElement("div",{ref:u,style:p?$n:void 0,"data-automation-id":"visibleContent"},p?g(s):l&&g(l))))}));er.displayName="ResizeGroupBase";var nr,rr=er;!function(t){t.KEYTIP_ADDED="keytipAdded",t.KEYTIP_REMOVED="keytipRemoved",t.KEYTIP_UPDATED="keytipUpdated",t.PERSISTED_KEYTIP_ADDED="persistedKeytipAdded",t.PERSISTED_KEYTIP_REMOVED="persistedKeytipRemoved",t.PERSISTED_KEYTIP_EXECUTE="persistedKeytipExecute",t.ENTER_KEYTIP_MODE="enterKeytipMode",t.EXIT_KEYTIP_MODE="exitKeytipMode"}(nr||(nr={}));var ir=function(){function t(){this.keytips={},this.persistedKeytips={},this.sequenceMapping={},this.inKeytipMode=!1,this.shouldEnterKeytipMode=!0,this.delayUpdatingKeytipChange=!1}return t.getInstance=function(){return this._instance},t.prototype.init=function(t){this.delayUpdatingKeytipChange=t},t.prototype.register=function(t,e){void 0===e&&(e=!1);var n=t;e||(n=this.addParentOverflow(t),this.sequenceMapping[n.keySequences.toString()]=n);var r=this._getUniqueKtp(n);if(e?this.persistedKeytips[r.uniqueID]=r:this.keytips[r.uniqueID]=r,this.inKeytipMode||!this.delayUpdatingKeytipChange){var i=e?nr.PERSISTED_KEYTIP_ADDED:nr.KEYTIP_ADDED;Tn.raise(this,i,{keytip:n,uniqueID:r.uniqueID})}return r.uniqueID},t.prototype.update=function(t,e){var n=this.addParentOverflow(t),r=this._getUniqueKtp(n,e),i=this.keytips[e];i&&(r.keytip.visible=i.keytip.visible,this.keytips[e]=r,delete this.sequenceMapping[i.keytip.keySequences.toString()],this.sequenceMapping[r.keytip.keySequences.toString()]=r.keytip,!this.inKeytipMode&&this.delayUpdatingKeytipChange||Tn.raise(this,nr.KEYTIP_UPDATED,{keytip:r.keytip,uniqueID:r.uniqueID}))},t.prototype.unregister=function(t,e,n){void 0===n&&(n=!1),n?delete this.persistedKeytips[e]:delete this.keytips[e],!n&&delete this.sequenceMapping[t.keySequences.toString()];var r=n?nr.PERSISTED_KEYTIP_REMOVED:nr.KEYTIP_REMOVED;!this.inKeytipMode&&this.delayUpdatingKeytipChange||Tn.raise(this,r,{keytip:t,uniqueID:e})},t.prototype.enterKeytipMode=function(){Tn.raise(this,nr.ENTER_KEYTIP_MODE)},t.prototype.exitKeytipMode=function(){Tn.raise(this,nr.EXIT_KEYTIP_MODE)},t.prototype.getKeytips=function(){var t=this;return Object.keys(this.keytips).map((function(e){return t.keytips[e].keytip}))},t.prototype.addParentOverflow=function(t){var n=(0,e.ev)([],t.keySequences,!0);if(n.pop(),0!==n.length){var r=this.sequenceMapping[n.toString()];if(r&&r.overflowSetSequence)return(0,e.pi)((0,e.pi)({},t),{overflowSetSequence:r.overflowSetSequence})}return t},t.prototype.menuExecute=function(t,e){Tn.raise(this,nr.PERSISTED_KEYTIP_EXECUTE,{overflowButtonSequences:t,keytipSequences:e})},t.prototype._getUniqueKtp=function(t,n){return void 0===n&&(n=f()),{keytip:(0,e.pi)({},t),uniqueID:n}},t._instance=new t,t}(),or=function(t,e,n){for(var r=0,i=t;r<i.length;r++){var o=i[r];n[e.register(o,!0)]=o}},ar=function(t,e){for(var n=0,r=Object.keys(e);n<r.length;n++){var i=r[n];t.unregister(e[i],i,!0),delete e[i]}},sr=function(t){var n=ir.getInstance(),r=t.className,o=t.overflowItems,a=t.keytipSequences,s=t.itemSubMenuProvider,l=t.onRenderOverflowButton,c=Zt({}),u=i.useCallback((function(t){return s?s(t):t.subMenuProps?t.subMenuProps.items:void 0}),[s]),d=i.useMemo((function(){var t=[],r=[];return a?null==o||o.forEach((function(i){var o,s=i.keytipProps;if(s){var l={content:s.content,keySequences:s.keySequences,disabled:s.disabled||!(!i.disabled&&!i.isDisabled),hasDynamicChildren:s.hasDynamicChildren,hasMenu:s.hasMenu};s.hasDynamicChildren||u(i)?(l.onExecute=n.menuExecute.bind(n,a,null===(o=null==i?void 0:i.keytipProps)||void 0===o?void 0:o.keySequences),l.hasOverflowSubMenu=!0):l.onExecute=s.onExecute,t.push(l);var c=(0,e.pi)((0,e.pi)({},i),{keytipProps:(0,e.pi)((0,e.pi)({},s),{overflowSetSequence:a})});null==r||r.push(c)}else null==r||r.push(i)})):r=o,{modifiedOverflowItems:r,keytipsToRegister:t}}),[o,u,n,a]),h=d.modifiedOverflowItems;return function(t,e,n){var r=Mn(t);i.useEffect((function(){r&&(ar(n,r),or(e,n,t))})),i.useEffect((function(){return or(e,n,t),function(){ar(n,t)}}),[])}(c,d.keytipsToRegister,n),i.createElement("div",{className:r},l(h))},lr=(0,o.y)(),cr=i.forwardRef((function(t,n){var r=i.useRef(null),o=Ot(r,n);!function(t,e){var n=function(){var t;return(null!==(t=Rt())&&void 0!==t?t:"undefined"!=typeof document)?document:void 0}();i.useImperativeHandle(t.componentRef,(function(){return{focus:function(t,n){var r=!1;return e.current&&(r=k(e.current,n)),r},focusElement:function(t){var r=!1;return!!t&&(e.current&&b(e.current,t)&&(t.focus(),r=(null==n?void 0:n.activeElement)===t),r)}}}),[e,n])}(t,r);var a=t.items,s=t.overflowItems,l=t.className,c=t.styles,u=t.vertical,d=t.role,h=t.overflowSide,p=void 0===h?"end":h,f=t.onRenderItem,g=lr(c,{className:l,vertical:u}),m=!!s&&s.length>0;return i.createElement("div",(0,e.pi)({},X(t,q),{role:d||"group","aria-orientation":"menubar"===d?!0===u?"vertical":"horizontal":void 0,className:g.root,ref:o}),"start"===p&&m&&i.createElement(sr,(0,e.pi)({},t,{className:g.overflowButton})),a&&a.map((function(t,e){return i.createElement("div",{className:g.item,key:t.key,role:"none"},f(t))})),"end"===p&&m&&i.createElement(sr,(0,e.pi)({},t,{className:g.overflowButton})))}));cr.displayName="OverflowSet";var ur,dr={flexShrink:0,display:"inherit"},hr=(0,t.z)(cr,(function(t){var e=t.className;return{root:["ms-OverflowSet",{position:"relative",display:"flex",flexWrap:"nowrap"},t.vertical&&{flexDirection:"column"},e],item:["ms-OverflowSet-item",dr],overflowButton:["ms-OverflowSet-overflowButton",dr]}}),void 0,{scope:"OverflowSet"}),pr=((ur={})["".concat(ze.wo[ze.wo.circle])]="M1 6 A5 5 0 1 0 12 6 M1 6 A5 5 0 0 1 12 6",ur["".concat(ze.wo[ze.wo.square])]="M1 1 L12 1 L12 12 L1 12 L1 1 Z",ur["".concat(ze.wo[ze.wo.triangle])]="M6 10L8.74228e-07 -1.04907e-06L12 0L6 10Z",ur["".concat(ze.wo[ze.wo.pyramid])]="M6 10L8.74228e-07 -1.04907e-06L12 0L6 10Z",ur["".concat(ze.wo[ze.wo.diamond])]="M2 2 L10 2 L10 10 L2 10 L2 2 Z",ur["".concat(ze.wo[ze.wo.hexagon])]="M9 0H3L0 5L3 10H9L12 5L9 0Z",ur["".concat(ze.wo[ze.wo.pentagon])]="M6.06061 0L0 4.21277L2.30303 11H9.69697L12 4.21277L6.06061 0Z",ur["".concat(ze.wo[ze.wo.octagon])]="M7.08333 0H2.91667L0 2.91667V7.08333L2.91667 10H7.08333L10 7.08333V2.91667L7.08333 0Z",ur["".concat(ze.jc[ze.jc.dottedLine])]="M0 6 H3 M5 6 H8 M10 6 H13",ur),fr=function(t){var n=t.svgProps,r=t.pathProps,o=t.shape,a=t.classNameForNonSvg;return-1===Object.keys(pr).indexOf(o)?i.createElement("div",{className:a}):i.createElement("svg",(0,e.pi)({width:14,height:14,viewBox:"-1 -1 14 14"},n,{transform:"rotate(".concat(o===ze.wo[ze.wo.diamond]?45:o===ze.wo[ze.wo.pyramid]?180:0,", 0, 0)")}),i.createElement("path",(0,e.pi)({d:pr[o]},r)))},gr=(0,o.y)(),mr=function(t){function n(n){var r,o,a=this;(a=t.call(this,n)||this)._isLegendSelected=!1,a._onRenderData=function(t){var n=a.props,r=n.overflowProps,o=n.allowFocusOnLegends,s=void 0===o||o,l=n.canSelectMultipleLegends,c=void 0!==l&&l,u={root:{justifyContent:a.props.centerLegends?"center":"unset",flexWrap:"wrap"}};return i.createElement(dn,(0,e.pi)({},s&&{role:"listbox","aria-label":"Legends","aria-multiselectable":c}),i.createElement(hr,(0,e.pi)({items:t.primary,overflowItems:t.overflow,onRenderItem:a._renderButton,onRenderOverflowButton:a._renderOverflowItems},r,{styles:(0,e.pi)((0,e.pi)({},u),null==r?void 0:r.styles)})))},a._onReduceData=function(t){if(0!==t.primary.length){var n=(0,e.ev)((0,e.ev)([],t.primary.slice(-1),!0),t.overflow,!0);return{primary:t.primary.slice(0,-1),overflow:n}}},a._onGrowData=function(t){if(0!==t.overflow.length){var n=t.overflow.slice(1);return{primary:(0,e.ev)((0,e.ev)([],t.primary,!0),t.overflow.slice(0,1),!0),overflow:n}}},a._canSelectMultipleLegends=function(t){var n=(0,e.pi)({},a.state.selectedLegends);return n[t.title]?delete n[t.title]:(n[t.title]=!0,Object.keys(n).length===a.props.legends.length&&(n={})),a.setState({selectedLegends:n}),n},a._canSelectOnlySingleLegend=function(t){var e;return a.state.selectedLegends[t.title]?(a.setState({selectedLegends:{}}),!1):(a.setState({selectedLegends:(e={},e[t.title]=!0,e)}),!0)},a._onClick=function(t,e){var n,r,i,o=a.props.canSelectMultipleLegends,s=[];if(void 0!==o&&o){var l=a._canSelectMultipleLegends(t);s=Object.keys(l)}else s=a._canSelectOnlySingleLegend(t)?[t.title]:[];null===(r=(n=a.props).onChange)||void 0===r||r.call(n,s,e,t),null===(i=t.action)||void 0===i||i.call(t)},a._onRenderCompactCard=function(t){var n=a.props,r=n.allowFocusOnLegends,o=void 0===r||r,s=n.className,l=n.styles,c=n.theme,u=n.canSelectMultipleLegends,d=void 0!==u&&u,h=[],p=gr(l,{theme:c,className:s});return t.renderData.forEach((function(t,e){var n=a._renderButton(t,e,!0);h.push(n)})),i.createElement(dn,(0,e.pi)({},o&&{role:"listbox","aria-label":"Legends","aria-multiselectable":d},{direction:Re.vertical},a.props.focusZonePropsInHoverCard,{className:p.hoverCardRoot}),h)},a._renderOverflowItems=function(t){var n=a.props.allowFocusOnLegends,r=void 0===n||n,o=[];t.forEach((function(t,e){o.push({key:e.toString(),name:t.title,onClick:t.action})}));var s={renderData:t},l=a.props,c=l.theme,u=l.className,d=l.styles,h=l.overflowText,p=gr(d,{theme:c,className:u}),f={onRenderPlainCard:a._onRenderCompactCard,renderData:s},g=h||"more";return i.createElement(jn,{type:_n.plain,plainCardProps:f,instantOpenOnClick:!0,onCardHide:function(){a.setState({isHoverCardVisible:!1});var e=v(t,(function(t){return t.title===a.state.activeLegend}));e&&(a.setState({activeLegend:""}),e.onMouseOutAction&&e.onMouseOutAction())},setInitialFocus:!0,trapFocus:!0,onCardVisible:a._hoverCardVisible,styles:p.subComponentStyles.hoverCardStyles,cardDismissDelay:300,target:a._hoverCardRef},i.createElement("div",(0,e.pi)({className:p.overflowIndicationTextStyle,ref:function(t){return a._hoverCardRef=t}},r&&{role:"button","aria-expanded":a.state.isHoverCardVisible,"aria-label":"".concat(o.length," ").concat(g)},{"data-is-focusable":r}),o.length," ",g))},a._hoverCardVisible=function(){a.setState({isHoverCardVisible:!0})},a._onHoverOverLegend=function(t){t.hoverAction&&(a.setState({activeLegend:t.title}),t.hoverAction())},a._onLeave=function(t){t.onMouseOutAction&&(a.setState({activeLegend:""}),t.onMouseOutAction())},a._renderButton=function(t,n,r){var o=a.props.allowFocusOnLegends,s=void 0===o||o,l={title:t.title,color:t.color,shape:t.shape,action:t.action,hoverAction:t.hoverAction,onMouseOutAction:t.onMouseOutAction,stripePattern:t.stripePattern,isLineLegendInBarChart:t.isLineLegendInBarChart,opacity:t.opacity},c=a._getColor(l.title,l.color),u=a.props,d=u.theme,h=u.className,p=u.styles,f=gr(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 i.createElement("button",(0,e.pi)({},s&&{"aria-selected":!!a.state.selectedLegends[l.title],role:"option","aria-label":"".concat(l.title),"aria-setsize":t["aria-setsize"],"aria-posinset":t["aria-posinset"]},t.nativeButtonProps&&(0,e.pi)({},t.nativeButtonProps),{key:n,className:f.legend,onClick:function(t){a._onClick(l,t)},onMouseOver:g,onMouseOut:m,onFocus:g,onBlur:m,"data-is-focusable":s}),v,i.createElement("div",{className:f.text},l.title))};var s={};return n.canSelectMultipleLegends?s=(null===(o=n.defaultSelectedLegends)||void 0===o?void 0:o.reduce((function(t,n){var r;return(0,e.pi)(((r={})[n]=!0,r),t)}),{}))||{}:n.defaultSelectedLegend&&((r={})[n.defaultSelectedLegend]=!0,s=r),a.state={activeLegend:"",isHoverCardVisible:!1,selectedLegends:s},a}return(0,e.ZT)(n,t),n.prototype.render=function(){var t=this.props,e=t.theme,n=t.className,r=t.styles;this._classNames=gr(r,{theme:e,className:n}),this._isLegendSelected=Object.keys(this.state.selectedLegends).length>0;var o=this._generateData();return i.createElement("div",{className:this._classNames.root},this.props.enabledWrapLines?this._onRenderData(o):i.createElement(rr,{data:o,onReduceData:this._onReduceData,onRenderData:this._onRenderData,onGrowData:this._onGrowData}))},n.prototype._generateData=function(){var t=this,n=this.props.allowFocusOnLegends,r=void 0===n||n;return{primary:this.props.legends.map((function(n,i){return(0,e.pi)((0,e.pi)({},r&&{nativeButtonProps:X(n,Z,["title"]),"aria-setsize":t.props.legends.length,"aria-posinset":i+1}),{title:n.title,action:n.action,hoverAction:n.hoverAction,onMouseOutAction:n.onMouseOutAction,color:n.color,shape:n.shape,stripePattern:n.stripePattern,isLineLegendInBarChart:n.isLineLegendInBarChart,opacity:n.opacity,key:i})})),overflow:[]}},n.prototype._getShape=function(t,e,n){var r={className:t.shape},o={fill:n,strokeWidth:2,stroke:e.color};return i.createElement(fr,{svgProps:r,pathProps:o,shape:e.shape,classNameForNonSvg:t.rect})},n.prototype._getColor=function(t,e){var n=this.props.theme;return this._isLegendSelected?this.state.selectedLegends[t]?e:n.semanticColors.buttonBackground:this.state.activeLegend===t||""===this.state.activeLegend?e:n.semanticColors.buttonBackground},n}(i.Component),vr=(0,t.z)(mr,(function(t){var n,r,i=t.className,o=t.theme,a=t.isLineLegendInBarChart,s=void 0!==a&&a,l=o,c=l.palette,u=l.fonts,d={inset:void 0,position:void 0,highContrastStyle:{outlineColor:o.semanticColors.focusBorder},borderColor:"transparent",outlineColor:void 0};return{root:[{whiteSpace:"nowrap",width:"100%",alignItems:"center",margin:"-8px 0 0 -8px"},i],legend:[(0,Yt.GL)(o,d),{display:"flex",alignItems:"center",cursor:"pointer",border:"none",padding:"8px",background:"none",textTransform:"capitalize"}],rect:{selectors:(n={},n[Yt.qJ]={content:"linear-gradient(to right, ".concat(t.colorOnSelectedState,", ").concat(t.colorOnSelectedState,")"),opacity:t.colorOnSelectedState===o.semanticColors.buttonBackground?"0.6":""},n),width:"12px",height:s?"4px":"12px",backgroundColor:t.stripePattern?"":t.colorOnSelectedState,marginRight:"8px",border:"1px solid",borderColor:t.borderColor?t.borderColor:null==o?void 0:o.semanticColors.buttonBorder,content:t.stripePattern?"repeating-linear-gradient(135deg, transparent, transparent 3px, ".concat(t.colorOnSelectedState," 1px, ").concat(t.colorOnSelectedState," 4px)"):""},shape:[{marginRight:"8px"}],triangle:{width:"0",height:"0",borderLeft:"6px solid transparent",borderRight:"6px solid transparent",borderTop:"10.4px solid",borderTopColor:t.colorOnSelectedState,marginRight:"8px",opacity:t.colorOnSelectedState===o.semanticColors.buttonBackground?"0.6":t.opacity?t.opacity:"",selectors:(r={},r[Yt.qJ]={border:"0px",height:"10.4px",width:"10.4px",clipPath:"polygon(50% 100%, 0 0, 100% 0)",backgroundImage:"linear-gradient(to right, ".concat(t.colorOnSelectedState,", ").concat(t.colorOnSelectedState,")")},r)},text:(0,e.pi)((0,e.pi)({},u.small),{lineHeight:"16px",color:null==o?void 0:o.semanticColors.bodyText,opacity:t.colorOnSelectedState===o.semanticColors.buttonBackground?"0.67":""}),hoverChange:{width:"12px",height:"12px",backgroundColor:o.semanticColors.buttonBackground,marginRight:"8px",border:"1px solid",borderColor:t.borderColor?t.borderColor:c.black},overflowIndicationTextStyle:[(0,Yt.GL)(o,d),(0,e.pi)((0,e.pi)({cursor:"pointer",color:null==o?void 0:o.semanticColors.bodyText},u.small),{lineHeight:"16px",padding:"8px"})],hoverCardRoot:{padding:"8px"},subComponentStyles:{hoverCardStyles:{host:[(0,Yt.GL)(o,d)]}}}}));function _r(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function yr(t){return function(){return t}}function xr(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function br(t){return t}Array.prototype.slice;const Cr=Math.abs,Er=Math.atan2,Sr=Math.cos,Ar=Math.max,Lr=Math.min,kr=Math.sin,Tr=Math.sqrt,wr=1e-12,Dr=Math.PI,Mr=Dr/2,Pr=2*Dr;function Fr(t){return t>=1?Mr:t<=-1?-Mr:Math.asin(t)}function Ir(){var t=br,e=xr,n=null,r=yr(0),i=yr(Pr),o=yr(0);function a(a){var s,l,c,u,d,h=(a=_r(a)).length,p=0,f=new Array(h),g=new Array(h),m=+r.apply(this,arguments),v=Math.min(Pr,Math.max(-Pr,i.apply(this,arguments)-m)),_=Math.min(Math.abs(v)/h,o.apply(this,arguments)),y=_*(v<0?-1:1);for(s=0;s<h;++s)(d=g[f[s]=s]=+t(a[s],s,a))>0&&(p+=d);for(null!=e?f.sort((function(t,n){return e(g[t],g[n])})):null!=n&&f.sort((function(t,e){return n(a[t],a[e])})),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(e){return arguments.length?(t="function"==typeof e?e:yr(+e),a):t},a.sortValues=function(t){return arguments.length?(e=t,n=null,a):e},a.sort=function(t){return arguments.length?(n=t,e=null,a):n},a.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:yr(+t),a):r},a.endAngle=function(t){return arguments.length?(i="function"==typeof t?t:yr(+t),a):i},a.padAngle=function(t){return arguments.length?(o="function"==typeof t?t:yr(+t),a):o},a}const Nr=Math.PI,Vr=2*Nr,Or=1e-6,Br=Vr-Or;function Hr(t){this._+=t[0];for(let e=1,n=t.length;e<n;++e)this._+=arguments[e]+t[e]}class Rr{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==t?Hr:function(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return Hr;const n=10**e;return function(t){this._+=t[0];for(let e=1,r=t.length;e<r;++e)this._+=Math.round(arguments[e]*n)/n+t[e]}}(t)}moveTo(t,e){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,e){this._append`L${this._x1=+t},${this._y1=+e}`}quadraticCurveTo(t,e,n,r){this._append`Q${+t},${+e},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(t,e,n,r,i,o){this._append`C${+t},${+e},${+n},${+r},${this._x1=+i},${this._y1=+o}`}arcTo(t,e,n,r,i){if(t=+t,e=+e,n=+n,r=+r,(i=+i)<0)throw new Error(`negative radius: ${i}`);let o=this._x1,a=this._y1,s=n-t,l=r-e,c=o-t,u=a-e,d=c*c+u*u;if(null===this._x1)this._append`M${this._x1=t},${this._y1=e}`;else if(d>Or)if(Math.abs(u*s-l*c)>Or&&i){let h=n-o,p=r-a,f=s*s+l*l,g=h*h+p*p,m=Math.sqrt(f),v=Math.sqrt(d),_=i*Math.tan((Nr-Math.acos((f+d-g)/(2*m*v)))/2),y=_/v,x=_/m;Math.abs(y-1)>Or&&this._append`L${t+y*c},${e+y*u}`,this._append`A${i},${i},0,0,${+(u*h>c*p)},${this._x1=t+x*s},${this._y1=e+x*l}`}else this._append`L${this._x1=t},${this._y1=e}`}arc(t,e,n,r,i,o){if(t=+t,e=+e,o=!!o,(n=+n)<0)throw new Error(`negative radius: ${n}`);let a=n*Math.cos(r),s=n*Math.sin(r),l=t+a,c=e+s,u=1^o,d=o?r-i:i-r;null===this._x1?this._append`M${l},${c}`:(Math.abs(this._x1-l)>Or||Math.abs(this._y1-c)>Or)&&this._append`L${l},${c}`,n&&(d<0&&(d=d%Vr+Vr),d>Br?this._append`A${n},${n},0,1,${u},${t-a},${e-s}A${n},${n},0,1,${u},${this._x1=l},${this._y1=c}`:d>Or&&this._append`A${n},${n},0,${+(d>=Nr)},${u},${this._x1=t+n*Math.cos(i)},${this._y1=e+n*Math.sin(i)}`)}rect(t,e,n,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}}function zr(t){let e=3;return t.digits=function(n){if(!arguments.length)return e;if(null==n)e=null;else{const t=Math.floor(n);if(!(t>=0))throw new RangeError(`invalid digits: ${n}`);e=t}return t},()=>new Rr(e)}function Wr(t){return t.innerRadius}function Yr(t){return t.outerRadius}function Zr(t){return t.startAngle}function qr(t){return t.endAngle}function Xr(t){return t&&t.padAngle}function Ur(t,e,n,r,i,o,a){var s=t-n,l=e-r,c=(a?o:-o)/Tr(s*s+l*l),u=c*l,d=-c*s,h=t+u,p=e+d,f=n+u,g=r+d,m=(h+f)/2,v=(p+g)/2,_=f-h,y=g-p,x=_*_+y*y,b=i-o,C=h*g-f*p,E=(y<0?-1:1)*Tr(Ar(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*(i/b-1),y11:A*(i/b-1)}}function jr(){var t=Wr,e=Yr,n=yr(0),r=null,i=Zr,o=qr,a=Xr,s=null,l=zr(c);function c(){var c,u,d,h=+t.apply(this,arguments),p=+e.apply(this,arguments),f=i.apply(this,arguments)-Mr,g=o.apply(this,arguments)-Mr,m=Cr(g-f),v=g>f;if(s||(s=c=l()),p<h&&(u=p,p=h,h=u),p>wr)if(m>Pr-wr)s.moveTo(p*Sr(f),p*kr(f)),s.arc(0,0,p,f,g,!v),h>wr&&(s.moveTo(h*Sr(g),h*kr(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>wr&&(r?+r.apply(this,arguments):Tr(h*h+p*p)),T=Lr(Cr(p-h)/2,+n.apply(this,arguments)),w=T,D=T;if(k>wr){var M=Fr(k/h*kr(L)),P=Fr(k/p*kr(L));(S-=2*M)>wr?(C+=M*=v?1:-1,E-=M):(S=0,C=E=(f+g)/2),(A-=2*P)>wr?(x+=P*=v?1:-1,b-=P):(A=0,x=b=(f+g)/2)}var F=p*Sr(x),I=p*kr(x),N=h*Sr(E),V=h*kr(E);if(T>wr){var O,B=p*Sr(b),H=p*kr(b),R=h*Sr(C),z=h*kr(C);if(m<Dr)if(O=function(t,e,n,r,i,o,a,s){var l=n-t,c=r-e,u=a-i,d=s-o,h=d*l-u*c;if(!(h*h<wr))return[t+(h=(u*(e-o)-d*(t-i))/h)*l,e+h*c]}(F,I,R,z,B,H,N,V)){var W=F-O[0],Y=I-O[1],Z=B-O[0],q=H-O[1],X=1/kr(((d=(W*Z+Y*q)/(Tr(W*W+Y*Y)*Tr(Z*Z+q*q)))>1?0:d<-1?Dr:Math.acos(d))/2),U=Tr(O[0]*O[0]+O[1]*O[1]);w=Lr(T,(h-U)/(X-1)),D=Lr(T,(p-U)/(X+1))}else w=D=0}A>wr?D>wr?(_=Ur(R,z,F,I,p,D,v),y=Ur(B,H,N,V,p,D,v),s.moveTo(_.cx+_.x01,_.cy+_.y01),D<T?s.arc(_.cx,_.cy,D,Er(_.y01,_.x01),Er(y.y01,y.x01),!v):(s.arc(_.cx,_.cy,D,Er(_.y01,_.x01),Er(_.y11,_.x11),!v),s.arc(0,0,p,Er(_.cy+_.y11,_.cx+_.x11),Er(y.cy+y.y11,y.cx+y.x11),!v),s.arc(y.cx,y.cy,D,Er(y.y11,y.x11),Er(y.y01,y.x01),!v))):(s.moveTo(F,I),s.arc(0,0,p,x,b,!v)):s.moveTo(F,I),h>wr&&S>wr?w>wr?(_=Ur(N,V,B,H,h,-w,v),y=Ur(F,I,R,z,h,-w,v),s.lineTo(_.cx+_.x01,_.cy+_.y01),w<T?s.arc(_.cx,_.cy,w,Er(_.y01,_.x01),Er(y.y01,y.x01),!v):(s.arc(_.cx,_.cy,w,Er(_.y01,_.x01),Er(_.y11,_.x11),!v),s.arc(0,0,h,Er(_.cy+_.y11,_.cx+_.x11),Er(y.cy+y.y11,y.cx+y.x11),v),s.arc(y.cx,y.cy,w,Er(y.y11,y.x11),Er(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=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,r=(+i.apply(this,arguments)+ +o.apply(this,arguments))/2-Dr/2;return[Sr(r)*n,kr(r)*n]},c.innerRadius=function(e){return arguments.length?(t="function"==typeof e?e:yr(+e),c):t},c.outerRadius=function(t){return arguments.length?(e="function"==typeof t?t:yr(+t),c):e},c.cornerRadius=function(t){return arguments.length?(n="function"==typeof t?t:yr(+t),c):n},c.padRadius=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:yr(+t),c):r},c.startAngle=function(t){return arguments.length?(i="function"==typeof t?t:yr(+t),c):i},c.endAngle=function(t){return arguments.length?(o="function"==typeof t?t:yr(+t),c):o},c.padAngle=function(t){return arguments.length?(a="function"==typeof t?t:yr(+t),c):a},c.context=function(t){return arguments.length?(s=null==t?null:t,c):s},c}Rr.prototype;var Gr=function(t){var e=t.color,n=t.href,r=t.theme;return{root:{fill:e,cursor:n?"pointer":"default",stroke:r.semanticColors.bodyBackground,outline:"transparent",selectors:{"::-moz-focus-inner":{border:"0"}}},focusRing:{stroke:r.semanticColors.focusBorder,strokeWidth:4,fill:"transparent"},arcLabel:{fontSize:Yt.TS.small,fontWeight:Yt.lq.semibold,fill:r.palette.neutralPrimary}}},Kr=n(1783),$r=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.state={},e.currentRef=i.createRef(),e._isRTL=(0,a.zg)(),e._hoverOff=function(){e.props.hoverLeaveCallback()},e._onBlur=function(){e.props.onBlurCallback()},e._getAriaLabel=function(){var t,n=e.props.data.data,r=n.xAxisCalloutData||n.legend,i=n.yAxisCalloutData||n.data||0;return(null===(t=n.callOutAccessibilityData)||void 0===t?void 0:t.ariaLabel)||(r?"".concat(r,", "):"")+"".concat(i,".")},e._renderArcLabel=function(t){var n=e.props,r=n.arc,o=n.data,a=n.innerRadius,s=n.outerRadius,l=n.showLabelsInPercent,c=n.totalValue,u=n.hideLabels,d=n.activeArc;if(u||Math.abs(o.endAngle-o.startAngle)<Math.PI/12||d!==o.data.legend&&""!==d)return null;var h=r.centroid(o),p=h[0],f=h[1],g=Math.sqrt(p*p+f*f),m=Math.max(a,s)+2,v=(o.startAngle+o.endAngle)/2,_=o.value;return i.createElement("text",{x:(0===g?0:p/g)*m,y:(0===g?0:f/g)*m,textAnchor:v>Math.PI!==e._isRTL?"end":"start",dominantBaseline:v>Math.PI/2&&v<3*Math.PI/2?"hanging":"auto",className:t,"aria-hidden":!0},l?(0,Kr.WU)(".0%")(0===c?0:_/c):(0,ze.cE)(_))},e}return(0,e.ZT)(n,t),n.getDerivedStateFromProps=function(t){return Jr(t),null},n.prototype.updateChart=function(t){Jr(t)},n.prototype.render=function(){var t,e=this.props,n=e.arc,r=e.href,a=e.focusedArcId,s=(0,o.y)()(Gr,{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 i.createElement("g",{ref:this.currentRef},!!a&&a===l&&i.createElement("path",{id:l+"focusRing",d:n(this.props.focusData),className:s.focusRing}),i.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===(t=this.props.data)||void 0===t?void 0:t.data.onClick,"aria-label":this._getAriaLabel(),role:"img"}),this._renderArcLabel(s.arcLabel))},n.prototype._onFocus=function(t,e){this.props.onFocusCallback(t,e,this.currentRef.current)},n.prototype._hoverOn=function(t,e){e.persist(),this.props.hoverOnCallback(t,e)},n.prototype._redirectToUrl=function(t){t&&(window.location.href=t)},n.defaultProps={arc:jr()},n}(i.Component);function Jr(t){t.arc.innerRadius(t.innerRadius),t.arc.outerRadius(t.outerRadius)}var Qr=function(t){var e,n=t.theme;return{root:{},insideDonutString:{fontSize:Yt.TS.xLargePlus,fontWeight:Yt.lq.semibold,fill:n.semanticColors.bodyText,selectors:(e={},e[Yt.$v]={fill:"rgb(179, 179, 179)"},e)}}},ti=(0,o.y)(),ei=function(t){function n(e){var n=t.call(this,e)||this;return n.arcGenerator=function(t,e,r,o){var a=t&&t.data&&t.data.color;return i.createElement($r,{key:e,data:t,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:o,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(t,e,r){n.props.onFocusCallback(t,e,r)},n._computeTotalValue=function(){var t=0;return n.props.data.forEach((function(e){t+=e.data})),t},n._hoverCallback=n._hoverCallback.bind(n),n._pieForFocusRing=Ir().sort(null).value((function(t){return t.data})).padAngle(0),n}return(0,e.ZT)(n,t),n.prototype.render=function(){var t=this,e=this.props,n=e.pie,r=e.data,o=this._pieForFocusRing(r),a=n(r),s="translate(".concat(this.props.width/2,", ").concat(this.props.height/2,")"),l=ti(Qr,{theme:this.props.theme});return this._totalValue=this._computeTotalValue(),i.createElement("g",{transform:s},a.map((function(e,n){return t.arcGenerator(e,n,o[n],t.props.href)})),this.props.valueInsideDonut&&i.createElement("text",{y:5,textAnchor:"middle",dominantBaseline:"middle",className:l.insideDonutString,"data-is-focusable":!0},this.props.valueInsideDonut))},n.prototype.componentDidUpdate=function(){var t=ti(Qr,{theme:this.props.theme});(0,ze.yQ)(t.insideDonutString,2*this.props.innerRadius-5)},n.prototype._hoverCallback=function(t,e){this.props.hoverOnCallback(t,e)},n.defaultProps={pie:Ir().sort(null).value((function(t){return t.data})).padAngle(.02)},n}(i.Component),ni={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"},ri={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"]},ii={qualitative:ri,semantic:{info:["#015cda"],disabled:["#dbdbdb","#4d4d4d"],highError:["#6e0811","#cc2635"],error:["#c50f1f","#dc626d"],warning:["#f7630c","#f87528"],success:["#107c10","#54b054"],highSuccess:["#094509","#218c21"]}},oi=Object.values(ri),ai=Object.values(ni),si=function(t,e){if(0===t.length)return"";var n=Number(e);return n<t.length?t[n]:t[0]},li=function(t,e,n){void 0===e&&(e=0),void 0===n&&(n=!1);var r=oi[(t+e)%oi.length];return si(r,n)},ci=function(t,e){if(void 0===e&&(e=!1),ai.indexOf(t)>=0){var n=t.split("."),r=n[0],i=n[1],o=ii[r][i];return si(o,e)}return t},ui=(0,o.y)(),di=function(t){function n(n){var r=t.call(this,n)||this;return r._closeCallout=function(){r.setState({showHover:!1})},r._focusCallback=function(t,e,n){r._currentHoverElement=n,r.setState({showHover:""===r.state.selectedLegend||r.state.selectedLegend===t.legend,value:t.data.toString(),legend:t.legend,color:t.color,xCalloutValue:t.xAxisCalloutData,yCalloutValue:t.yAxisCalloutData,focusedArcId:e,dataPointCalloutProps:t,callOutAccessibilityData:t.callOutAccessibilityData})},r._hoverCallback=function(t,e){r._calloutAnchorPoint!==t&&(r._calloutAnchorPoint=t,r._currentHoverElement=e,r.setState({showHover:""===r.state.selectedLegend||r.state.selectedLegend===t.legend,value:t.data.toString(),legend:t.legend,color:t.color,xCalloutValue:t.xAxisCalloutData,yCalloutValue:t.yAxisCalloutData,dataPointCalloutProps:t,callOutAccessibilityData:t.callOutAccessibilityData}))},r._onBlur=function(){r.setState({focusedArcId:""})},r._handleChartMouseLeave=function(){r._calloutAnchorPoint=null,r.setState({showHover:!1})},r._addDefaultColors=function(t){return t?t.map((function(t,n){var i,o,a;return a=void 0===t.color?li(n,0,null===(i=r.props.theme)||void 0===i?void 0:i.isInverted):ci(t.color,null===(o=r.props.theme)||void 0===o?void 0:o.isInverted),(0,e.pi)((0,e.pi)({},t),{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,e.ZT)(n,t),n.getDerivedStateFromProps=function(t,n){var r,i;return t.width&&t.width!==n._width&&(r={_width:t.width}),t.height&&t.height!==n._height&&(i={_height:t.height-40}),(0,e.pi)((0,e.pi)({},r),i)},n.prototype.componentDidMount=function(){this._rootElem&&this.setState({_width:this._rootElem.offsetWidth,_height:this._rootElem.offsetHeight-40})},n.prototype.render=function(){var t=this,n=this.props,r=n.data,o=n.hideLegend,a=void 0!==o&&o,s=this._addDefaultColors(null==r?void 0:r.chartData);this._classNames=ui(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(t){return t.data>0})),p=this._valueInsideDonut(this.props.valueInsideDonut,h);return this._isChartEmpty()?i.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):i.createElement("div",{className:this._classNames.root,ref:function(e){return t._rootElem=e},onMouseLeave:this._handleChartMouseLeave},i.createElement(dn,{direction:Re.horizontal,handleTabKey:1},i.createElement("div",null,i.createElement("svg",{className:this._classNames.chart,"aria-label":null==r?void 0:r.chartTitle,ref:function(e){return t._setViewBox(e)}},i.createElement(ei,{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})))),i.createElement(He,(0,e.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,ze.ey)(this.state.callOutAccessibilityData,"text",!1)),this.props.onRenderCalloutPerDataPoint?this.props.onRenderCalloutPerDataPoint(this.state.dataPointCalloutProps):i.createElement(We.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&&i.createElement("div",{className:this._classNames.legendContainer},l))},n.prototype._setViewBox=function(t){var e,n;if(null!==t){var r=t.parentElement?t.parentElement.clientWidth:this.state._width,i=t.parentElement&&(null===(e=t.parentElement)||void 0===e?void 0:e.offsetHeight)>this.state._height?null===(n=t.parentElement)||void 0===n?void 0:n.offsetHeight:this.state._height,o="0 0 ".concat(r," ").concat(i);t.setAttribute("viewBox",o)}},n.prototype._createLegends=function(t){var n=this,r=t.map((function(t,e){var r=t.color;return{title:t.legend,color:r,action:function(){n.state.selectedLegend===t.legend?n.setState({selectedLegend:""}):n.setState({selectedLegend:t.legend})},hoverAction:function(){n._handleChartMouseLeave(),n.setState({activeLegend:t.legend})},onMouseOutAction:function(){n.setState({activeLegend:""})}}}));return i.createElement(vr,(0,e.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(t,e){var n=this,r=this._getHighlightedLegend();if(void 0===t||""===r&&!this.state.showHover)return t;var i=t;return e.map((function(t,e){(t.legend===r||n.state.showHover&&t.legend===n.state.legend)&&(i=t.yAxisCalloutData?t.yAxisCalloutData:t.data)})),i},n.prototype._toLocaleString=function(t){var e=(0,ze.Ts)(t,this.props.culture);return e?null==e?void 0:e.toString():t},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(t){return t.data>0})).length>0)},n.defaultProps={innerRadius:0,hideLabels:!0},n}(i.Component),hi=(0,t.z)(di,(function(t){var e=t.className,n=t.width,r=t.height;return{root:[t.theme.fonts.medium,"ms-DonutChart",{alignItems:"center",display:"flex",flexDirection:"column",width:"100%",height:"100%"},e],chart:{width:n,height:r,boxSizing:"content-box",overflow:"visible",alignmentAdjust:"center",display:"block"},legendContainer:{paddingTop:"16px",width:"".concat(n,"px")}}})),pi=n(8485),fi=n(7329);function gi(t){this._context=t}function mi(t){return new gi(t)}function vi(t){return t[0]}function _i(t){return t[1]}function yi(t,e){var n=yr(!0),r=null,i=mi,o=null,a=zr(s);function s(s){var l,c,u,d=(s=_r(s)).length,h=!1;for(null==r&&(o=i(u=a())),l=0;l<=d;++l)!(l<d&&n(c=s[l],l,s))===h&&((h=!h)?o.lineStart():o.lineEnd()),h&&o.point(+t(c,l,s),+e(c,l,s));if(u)return o=null,u+""||null}return t="function"==typeof t?t:void 0===t?vi:yr(t),e="function"==typeof e?e:void 0===e?_i:yr(e),s.x=function(e){return arguments.length?(t="function"==typeof e?e:yr(+e),s):t},s.y=function(t){return arguments.length?(e="function"==typeof t?t:yr(+t),s):e},s.defined=function(t){return arguments.length?(n="function"==typeof t?t:yr(!!t),s):n},s.curve=function(t){return arguments.length?(i=t,null!=r&&(o=i(r)),s):i},s.context=function(t){return arguments.length?(null==t?r=o=null:o=i(r=t),s):r},s}gi.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}};var xi,bi,Ci,Ei=function(t){function n(e){var r=t.call(this,e)||this;return r._tooltipHost=i.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(t){r._ignoreNextFocusEvent?r._ignoreNextFocusEvent=!1:r._onTooltipMouseEnter(t)},r._onTooltipBlur=function(t){r._ignoreNextFocusEvent=(null===document||void 0===document?void 0:document.activeElement)===t.target,r._dismissTimerId=r._async.setTimeout((function(){r._hideTooltip()}),0)},r._onTooltipMouseEnter=function(t){var e=r.props.delay;if(n._currentVisibleTooltip&&n._currentVisibleTooltip!==r&&n._currentVisibleTooltip.dismiss(),n._currentVisibleTooltip=r,r.state.isOverflowing&&(!t.target||!Ge(t.target,r._getTargetElement())))if(r._clearDismissTimer(),r._clearOpenTimer(),e!==pn.zero){var i=r._getDelayTime(e);r._openTimerId=r._async.setTimeout((function(){r._toggleTooltip(!0)}),i)}else r._toggleTooltip(!0)},r._onTooltipMouseLeave=function(t){var e=r.props.closeDelay;r._clearDismissTimer(),r._clearOpenTimer(),e?r._dismissTimerId=r._async.setTimeout((function(){r._toggleTooltip(!1)}),e):r._toggleTooltip(!1),n._currentVisibleTooltip===r&&(n._currentVisibleTooltip=void 0)},r._onTooltipKeyDown=function(t){(t.which===Ft||t.ctrlKey)&&r.state.isTooltipVisible&&(r._hideTooltip(),t.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(t){r.state.isTooltipVisible!==t&&r.setState({isTooltipVisible:t})},r._getDelayTime=function(t){switch(t){case pn.medium:return 300;case pn.long:return 500;default:return 0}},r._wrapContent=function(){var t=r.props,e=t.content,n=t.wrapContent,i=t.maxWidth,o=void 0===i?Number.POSITIVE_INFINITY:i,a=t.maxHeight,s=!1;e&&n&&n(e,r._tooltipHostId,o,a)&&(s=!0),r.state.isOverflowing!==s&&r.setState({isOverflowing:s})},r.state={isTooltipVisible:!1,isOverflowing:!1},r._async=new It(r),r}return(0,e.ZT)(n,t),n.prototype.render=function(){var t=this.props,n=t.content,r=t.tooltipProps,o=t.textProps,a=t.shouldReceiveFocus,s=void 0===a||a,l=this.state.isTooltipVisible,c=(0,e.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 i.createElement(i.Fragment,null,i.createElement("text",(0,e.pi)({},o,{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&&i.createElement(mn,(0,e.pi)({},c)))},n.prototype.componentDidMount=function(){this._wrapContent()},n.prototype.componentDidUpdate=function(t){this.props.maxWidth===t.maxWidth&&this.props.maxHeight===t.maxHeight||this._wrapContent()},n.prototype.componentWillUnmount=function(){n._currentVisibleTooltip&&n._currentVisibleTooltip===this&&(n._currentVisibleTooltip=void 0),this._async.dispose()},n.defaultProps={delay:pn.medium},n}(i.Component),Si=(0,o.y)(),Ai=(0,i.lazy)((function(){return Promise.resolve().then(n.bind(n,8024)).then((function(t){return{default:t.ChartHoverCard}}))})),Li=function(t){function n(n){var r,o,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=t.call(this,n)||this).minLegendContainerHeight=32,P._isRtl=(0,a.zg)(),P._isFirstRender=!0,P.isIntegralDataset=!0,P._multiValueCallout=function(t){var n=P._yValueHoverSubCountsExists(t.YValueHover);return i.createElement("div",{className:P._classNames.calloutContentRoot},i.createElement("div",{className:P._classNames.calloutDateTimeContainer,style:n?{marginBottom:"11px"}:{}},i.createElement("div",(0,e.pi)({className:P._classNames.calloutContentX},(0,ze.ey)(t.xAxisCalloutAccessibilityData,"text",!1)),(0,ze.Ts)(t.hoverXValue,P.props.culture))),i.createElement("div",{className:P._classNames.calloutInfoContainer,style:n?{display:"flex"}:{}},t.YValueHover&&t.YValueHover.map((function(t,r,o){var a=r+1===o.length,s=t.shouldDrawBorderBottom,l=void 0!==s&&s;return i.createElement("div",(0,e.pi)({},(0,ze.ey)(t.callOutAccessibilityData,"text",!1),{key:"callout-content-".concat(r),style:n?(0,e.pi)({display:"inline-block"},l&&{borderBottom:"1px solid ".concat(P.props.theme.semanticColors.menuDivider),paddingBottom:"10px"}):(0,e.pi)({},l&&{borderBottom:"1px solid ".concat(P.props.theme.semanticColors.menuDivider),paddingBottom:"10px"})}),P._getCalloutContent(t,r,n,a))})),!!t.descriptionMessage&&i.createElement("div",{className:P._classNames.descriptionMessage},t.descriptionMessage)))},P._getData=function(t,e){P.props.getGraphData&&P.props.getGraphData(t,e,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 t=10;if(!P.props.wrapXAxisLables&&P.props.rotateXAxisLables&&P.props.xAxisType===ze.xl.StringAxis){var e=(0,ze.yE)(P._tickValues,".".concat(P._classNames.xAxis," text"));t+=Math.ceil(e*Math.cos(Math.PI/4))}else if(P.props.showXAxisLablesTooltip){var n=P._tickValues.map((function(t){var e=P.props.noOfCharsToTruncate||4;return t.toString().length>e?"".concat(t.toString().slice(0,e),"..."):t}));e=(0,ze.yE)(n,".".concat(P._classNames.xAxis," text")),t+=Math.ceil(e)}else if(P.props.wrapXAxisLables){var r=[];P._tickValues.forEach((function(t){r.push.apply(r,t.toString().split(/\s+/))})),e=(0,ze.yE)(r,".".concat(P._classNames.xAxis," text")),t+=Math.max(Math.ceil(e),10)}else e=(0,ze.yE)(P._tickValues,".".concat(P._classNames.xAxis," text")),t+=Math.ceil(e);var i=P.margins.left+P.margins.right+t*(P._tickValues.length-1);return[ze.$X.GroupedVerticalBarChart,ze.$X.VerticalBarChart,ze.$X.VerticalStackedBarChart].includes(P.props.chartType)&&(i+=16),i},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!==(o=null===(r=P.props.margins)||void 0===r?void 0:r.top)&&void 0!==o?o: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,e.ZT)(n,t),n.prototype.componentDidMount=function(){if(this._fitParentContainer(),this.props.chartType===ze.$X.HorizontalBarChartWithAxis&&this.props.showYAxisLables&&this.yAxisElement){var t=(0,ze.yE)(this.props.points.map((function(t){return t.y})),".".concat(this._classNames.yAxis," text"));this.state.startFromX!==t&&this.setState({startFromX:t})}else 0!==this.state.startFromX&&this.setState({startFromX:0});this.isIntegralDataset=!this.props.points.some((function(t){return t.y%1!=0}))},n.prototype.componentWillUnmount=function(){cancelAnimationFrame(this._reqID)},n.prototype.componentDidUpdate=function(t){if(t.height===this.props.height&&t.width===this.props.width||this._fitParentContainer(),!this.props.wrapXAxisLables&&this.props.rotateXAxisLables&&this.props.xAxisType===ze.xl.StringAxis){var e={node:this.xAxisElement,xAxis:this._xScale},n=(0,ze.zs)(e);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===ze.$X.HorizontalBarChartWithAxis&&this.props.showYAxisLables&&this.yAxisElement){var r=(0,ze.yE)(this.props.points.map((function(t){return t.y})),".".concat(this._classNames.yAxis," text"));this.state.startFromX!==r&&this.setState({startFromX:r})}else 0!==this.state.startFromX&&this.setState({startFromX:0});t.points!==this.props.points&&(this.isIntegralDataset=!this.props.points.some((function(t){return t.y%1!=0})))},n.prototype.render=function(){var t,n,r,o,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,e.pi)({},this.margins);this.props.chartType===ze.$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,ze.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,ze.As)(g,m,this.props.yAxisType),yAxisPadding:this.props.yAxisPadding||0},w=void 0,D=void 0;switch(this.props.xAxisType){case ze.xl.NumericAxis:w=(t=(0,ze.OX)(k,this.props.chartType,x)).xScale,D=t.tickValues;break;case ze.xl.DateAxis:w=(n=(0,ze.s8)(k,this.props.tickParams,x,b,C,E)).xScale,D=n.tickValues;break;case ze.xl.StringAxis:w=(r=(0,ze.R)(k,this.props.tickParams,this.props.datasetForXAxisDomain,x)).xScale,D=r.tickValues;break;default:w=(o=(0,ze.OX)(k,this.props.chartType,x)).xScale,D=o.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,ze.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===ze.OH.StringAxis)F=(0,ze.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,ze.As)(g,m),yAxisPadding:this.props.yAxisPadding};I=(0,ze.eQ)(V,this._isRtl,N,m,this.props.barwidth,this.isIntegralDataset,!0)}F=(0,ze.eQ)(T,this._isRtl,N,m,this.props.barwidth,this.isIntegralDataset)}this.props.chartType===ze.$X.HorizontalBarChartWithAxis&&F&&(0,ze.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,e.pi)((0,e.pi)({},this.state),{xScale:w,yScale:F,yScaleSecondary:I})),!this.props.hideTooltip&&f.isCalloutVisible&&(A=this._generateCallout(f,v))}this._classNames=Si(this.props.styles,{theme:this.props.theme,width:this.state._width,height:this.state._height,className:this.props.className,isRtl:this._isRtl});var O,B={width:this.state.containerWidth,height:this.state.containerHeight};O=this.props.focusZoneDirection===Re.vertical||this.props.focusZoneDirection?this.props.focusZoneDirection:Re.horizontal;var H=B.width-this.margins.left-this.margins.right-this.state.startFromX,R=B.height-this.margins.bottom-this.margins.top-this.state._removalValueForTextTuncate-this.titleMargin;return i.createElement("div",{id:this.idForGraph,className:this._classNames.root,role:"presentation",ref:function(t){return h.chartContainer=t},onMouseLeave:this._onChartLeave},!this._isFirstRender&&i.createElement("div",{id:this.idForDefaultTabbableElement}),i.createElement(dn,(0,e.pi)({direction:O,className:this._classNames.chartWrapper,defaultTabbableElement:"#".concat(this.idForDefaultTabbableElement)},_),this._isFirstRender&&i.createElement("div",{id:this.idForDefaultTabbableElement}),i.createElement("svg",(0,e.pi)({width:B.width,height:B.height,"aria-label":this.props.chartTitle,style:{display:"block"}},y),i.createElement("g",{ref:function(t){h.xAxisElement=t},id:"xAxisGElement".concat(this.idForGraph),transform:"translate(0, ".concat(B.height-this.margins.bottom-this.state._removalValueForTextTuncate,")"),className:this._classNames.xAxis}),void 0!==this.props.xAxisTitle&&""!==this.props.xAxisTitle&&i.createElement(Ei,{content:this.props.xAxisTitle,textProps:{x:this.margins.left+this.state.startFromX+H/2,y:B.height-this.titleMargin,className:this._classNames.axisTitle,textAnchor:"middle"},maxWidth:H,wrapContent:ze.nX}),i.createElement("g",{ref:function(t){h.yAxisElement=t},id:"yAxisGElement".concat(this.idForGraph),transform:"translate(".concat(this._isRtl?B.width-this.margins.right-this.state.startFromX:this.margins.left+this.state.startFromX,", 0)"),className:this._classNames.yAxis}),this.props.secondaryYScaleOptions&&i.createElement("g",null,i.createElement("g",{ref:function(t){h.yAxisElementSecondary=t},id:"yAxisGElementSecondary".concat(this.idForGraph),transform:"translate(".concat(this._isRtl?this.margins.left:B.width-this.margins.right,", 0)"),className:this._classNames.yAxis}),void 0!==this.props.secondaryYAxistitle&&""!==this.props.secondaryYAxistitle&&i.createElement(Ei,{content:this.props.secondaryYAxistitle,textProps:{x:(R-this.margins.bottom)/2+this.state._removalValueForTextTuncate,y:this._isRtl?this.state.startFromX-this.titleMargin:B.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(B.height-this.margins.bottom-this.margins.top-this.titleMargin,")rotate(-90)"),className:this._classNames.axisTitle},maxWidth:R,wrapContent:ze.nX})),L,void 0!==this.props.yAxisTitle&&""!==this.props.yAxisTitle&&i.createElement(Ei,{content:this.props.yAxisTitle,textProps:{x:(R-this.margins.bottom)/2+this.state._removalValueForTextTuncate,y:this._isRtl?B.width-this.margins.right/2+this.titleMargin:this.margins.left/2+this.state.startFromX-this.titleMargin,textAnchor:"middle",transform:"translate(0,\n ".concat(B.height-this.margins.bottom-this.margins.top-this.titleMargin,")rotate(-90)"),className:this._classNames.axisTitle},maxWidth:R,wrapContent:ze.nX}))),!this.props.hideLegend&&i.createElement("div",{ref:function(t){return h.legendContainer=t},className:this._classNames.legendContainer},this.props.legendBars),A&&i.createElement(i.Suspense,{fallback:i.createElement("div",null,"Loading...")},A))},n.prototype._generateCallout=function(t,n){return i.createElement(He,(0,e.pi)({hidden:!(!this.props.hideTooltip&&t.isCalloutVisible),shouldUpdateWhenHidden:!0},t),this.props.customizedCallout&&this.props.customizedCallout,!this.props.customizedCallout&&this.props.isCalloutForStack&&this._multiValueCallout(t),!this.props.customizedCallout&&!this.props.isCalloutForStack&&i.createElement(Ai,(0,e.pi)({XValue:t.XValue,Legend:t.legend,YValue:t.YValue,color:t.color,culture:this.props.culture},n)))},n.prototype._yValueHoverSubCountsExists=function(t){return!!t&&t.some((function(t){return t.yAxisCalloutData&&"string"!=typeof t.yAxisCalloutData}))},n.prototype._getCalloutContent=function(t,e,n,r){var o,a=r?{}:{marginRight:"16px"},s=void 0!==t.index&&-1!==t.index,l=Si(this.props.styles,{theme:this.props.theme,width:this.state._width,height:this.state._height,className:this.props.className,isRtl:this._isRtl,lineColor:t.color,toDrawShape:s}),c=this.props.culture,u=(0,ze.Ts)(t.y,c);if(t.yAxisCalloutData&&"string"!=typeof t.yAxisCalloutData){var d=t.yAxisCalloutData;return i.createElement("div",{style:a},i.createElement("div",{className:"ms-fontWeight-semibold",style:{fontSize:"12pt"}},t.legend," (",u,")"),Object.keys(d).map((function(t){return i.createElement("div",{key:t,className:l.calloutBlockContainer},i.createElement("div",{className:l.calloutlegendText}," ",(0,ze.Ts)(t,c)),i.createElement("div",{className:l.calloutContentY},(0,ze.Ts)(d[t],c)))})))}return i.createElement("div",{style:n?a:{}},n&&i.createElement("div",{className:"ms-fontWeight-semibold",style:{fontSize:"12pt"}},t.legend," (",u,")"),i.createElement("div",{id:"".concat(e,"_").concat(t.y),className:l.calloutBlockContainer},s&&i.createElement(fr,{svgProps:{className:l.shapeStyles},pathProps:{fill:t.color},shape:ze.wo[t.index%Object.keys(ze.Ml).length]}),i.createElement("div",null,i.createElement("div",{className:l.calloutlegendText}," ",t.legend),i.createElement("div",{className:l.calloutContentY},(0,ze.Ts)(t.yAxisCalloutData?t.yAxisCalloutData:null!==(o=t.y)&&void 0!==o?o:t.data,c)))))},n.prototype._fitParentContainer=function(){var t=this,e=this.state,n=e.containerWidth,r=e.containerHeight;this._reqID=requestAnimationFrame((function(){var e;if(t.props.hideLegend)e=0;else{var i=t.legendContainer&&getComputedStyle(t.legendContainer);e=(t.legendContainer&&t.legendContainer.getBoundingClientRect().height||t.minLegendContainerHeight)+parseFloat(i&&i.marginTop||"0")+parseFloat(i&&i.marginBottom||"0")}if(t.props.parentRef||t.chartContainer){var o=t.props.parentRef?t.props.parentRef:t.chartContainer,a=t.props.enableReflow&&!t._isFirstRender?Math.max(o.getBoundingClientRect().width,t._calculateChartMinWidth()):o.getBoundingClientRect().width,s=o.getBoundingClientRect().height>e?o.getBoundingClientRect().height:350;(n!==a||r!==s-e)&&t.setState({containerWidth:a,containerHeight:s-e})}}))},n}(i.Component);!function(t){t.shade30="#004578",t.shade20="#005a9e",t.shade10="#106ebe",t.primary="#0078d4",t.tint10="#2b88d8",t.tint20="#c7e0f4",t.tint30="#deecf9",t.tint40="#eff6fc"}(xi||(xi={})),function(t){t.black="#000000",t.gray220="#11100f",t.gray210="#161514",t.gray200="#1b1a19",t.gray190="#201f1e",t.gray180="#252423",t.gray170="#292827",t.gray160="#323130",t.gray150="#3b3a39",t.gray140="#484644",t.gray130="#605e5c",t.gray120="#797775",t.gray110="#8a8886",t.gray100="#979593",t.gray90="#a19f9d",t.gray80="#b3b0ad",t.gray70="#bebbb8",t.gray60="#c8c6c4",t.gray50="#d2d0ce",t.gray40="#e1dfdd",t.gray30="#edebe9",t.gray20="#f3f2f1",t.gray10="#faf9f8",t.white="#ffffff"}(bi||(bi={})),function(t){t.pinkRed10="#750b1c",t.red20="#a4262c",t.red10="#d13438",t.redOrange20="#603d30",t.redOrange10="#da3b01",t.orange30="#8e562e",t.orange20="#ca5010",t.orange10="#ffaa44",t.yellow10="#fce100",t.orangeYellow20="#986f0b",t.orangeYellow10="#c19c00",t.yellowGreen10="#8cbd18",t.green20="#0b6a0b",t.green10="#498205",t.greenCyan10="#00ad56",t.cyan40="#005e50",t.cyan30="#005b70",t.cyan20="#038387",t.cyan10="#00b7c3",t.cyanBlue20="#004e8c",t.cyanBlue10="#0078d4",t.blue10="#4f6bed",t.blueMagenta40="#373277",t.blueMagenta30="#5c2e91",t.blueMagenta20="#8764b8",t.blueMagenta10="#8378de",t.magenta20="#881798",t.magenta10="#c239b3",t.magentaPink20="#9b0062",t.magentaPink10="#e3008c",t.gray40="#393939",t.gray30="#7a7574",t.gray20="#69797e",t.gray10="#a0aeb2"}(Ci||(Ci={}));var ki=function(){var t,e=(0,s.J)();return!!(null===(t=null==e?void 0:e.navigator)||void 0===t?void 0:t.userAgent)&&e.navigator.userAgent.indexOf("rv:11.0")>-1}(),Ti=(0,t.z)(Li,(function(t){var n,r,i,o,a,s,l,c,u=t.className,d=t.theme,h=t.isRtl,p=t.shouldHighlight,f=t.href,g=t.lineColor,m=void 0===g?"transparent":g,v=t.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:Yt.lq.semibold,fontStyle:"normal",lineHeight:Yt.TS.medium,color:bi.gray160,fill:d.semanticColors.bodyText}],xAxis:{selectors:{text:[d.fonts.tiny,{fill:d.semanticColors.bodyText,fontWeight:"600",selectors:(n={},n[Yt.$v]={fill:"rgb(179, 179, 179)"},n)}],line:{opacity:.2,stroke:d.semanticColors.bodyText,width:"1px",selectors:(r={},r[Yt.$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:(i={},i[Yt.$v]={fill:"rgb(179, 179, 179)"},i)}],path:{display:"none"},line:{opacity:.2,stroke:d.semanticColors.bodyText,selectors:(o={},o[Yt.$v]={opacity:.1,stroke:"rgb(179, 179, 179)"},o)},g:[h&&!ki&&{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,e.pi)((0,e.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[Yt.qJ]={forcedColorAdjust:"none"},a),borderLeft:"4px solid ".concat(m),paddingLeft:"8px"},v&&{display:"flex"}],shapeStyles:{marginRight:"8px"},calloutlegendText:(0,e.pi)((0,e.pi)({},_.small),{lineHeight:"16px",selectors:(s={},s[Yt.$v]={color:"rgb(255, 255, 255)"},s),color:d.semanticColors.bodySubtext}),calloutContentY:[(0,e.pi)((0,e.pi)({},_.mediumPlus),{fontWeight:"bold",lineHeight:"22px",selectors:(l={},l[Yt.$v]={color:"rgb(255, 255, 255)"},l)})],descriptionMessage:[d.fonts.small,{selectors:(c={},c[Yt.$v]={color:"rgb(255, 255, 255)"},c),color:d.semanticColors.bodyText,marginTop:"10px",paddingTop:"10px",borderTop:"1px solid ".concat(d.semanticColors.menuDivider)}]}})),wi=(0,ue.Ct)((function(t){return(0,ue.Ct)((function(e){var n=(0,ue.Ct)((function(t){return function(n){return e(n,t)}}));return function(r,i){return t(r,i?n(i):e)}}))}));function Di(t,e){return wi(t)(e)}var Mi=function(t){if(void 0===t)return 0;var e=0;return"scrollTop"in t?e=t.scrollTop:"scrollY"in t&&(e=t.scrollY),Math.ceil(e)},Pi=function(t,e){"scrollTop"in t?t.scrollTop=e:"scrollY"in t&&t.scrollTo(t.scrollX,e)},Fi="spacer-",Ii={top:-1,bottom:-1,left:-1,right:-1,width:0,height:0},Ni=function(t){return t.getBoundingClientRect()},Vi=Ni,Oi=Ni,Bi=function(t){function n(n){var r=t.call(this,n)||this;return r._root=i.createRef(),r._surface=i.createRef(),r._pageRefs={},r._getDerivedStateFromProps=function(t,e){return t.items!==r.props.items||t.renderCount!==r.props.renderCount||t.startIndex!==r.props.startIndex||t.version!==r.props.version||!e.hasMounted&&r.props.renderEarly&&(0,Pe.N)()?(r._resetRequiredWindows(),r._requiredRect=null,r._measureVersion++,r._invalidatePageCache(),r._updatePages(t,e)):e},r._onRenderRoot=function(t){var n=t.rootRef,r=t.surfaceElement,o=t.divProps;return i.createElement("div",(0,e.pi)({ref:n},o),r)},r._onRenderSurface=function(t){var n=t.surfaceRef,r=t.pageElements,o=t.divProps;return i.createElement("div",(0,e.pi)({ref:n},o),r)},r._onRenderPage=function(t,n){for(var o,a=r.props,s=a.onRenderCell,l=a.onRenderCellConditional,c=a.role,u=t.page,d=u.items,h=void 0===d?[]:d,p=u.startIndex,f=(0,e._T)(t,["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!==(o=null==b?void 0:b(y,_,r.props.ignoreScrollingState?void 0:r.state.isScrolling))&&void 0!==o?o:null;l&&!C||m.push(i.createElement("div",{role:g,className:"ms-List-cell",key:x,"data-list-index":_,"data-automationid":"ListCell"},C))}return i.createElement("div",(0,e.pi)({},f),m)},Ze(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,e.ZT)(n,t),n.getDerivedStateFromProps=function(t,e){return e.getDerivedStateFromProps(t,e)},Object.defineProperty(n.prototype,"pageRefs",{get:function(){return this._pageRefs},enumerable:!1,configurable:!0}),n.prototype.scrollToIndex=function(t,e,n){void 0===n&&(n=0);for(var r=this.props.startIndex,i=r+this._getRenderCount(),o=this._allowedRect,a=0,s=1,l=r;l<i;l+=s){var c=this._getPageSpecification(this.props,l,o),u=c.height;if(s=c.itemCount,l<=t&&l+s>t){if(e&&this._scrollElement){for(var d=Oi(this._scrollElement),h=Mi(this._scrollElement),p={top:h,bottom:h+d.height},f=t-l,g=0;g<f;++g)a+=e(l+g);var m=a+e(t);switch(n){case 1:return void Pi(this._scrollElement,a);case 2:return void Pi(this._scrollElement,m-d.height);case 3:return void Pi(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&&Pi(this._scrollElement,a))}a+=u}},n.prototype.getStartItemIndexInView=function(t){for(var e=0,n=this.state.pages||[];e<n.length;e++){var r=n[e];if(!r.isSpacer&&(this._scrollTop||0)>=r.top&&(this._scrollTop||0)<=r.top+r.height){if(!t){var i=Math.floor(r.height/r.itemCount);return r.startIndex+Math.floor((this._scrollTop-r.top)/i)}for(var o=0,a=r.startIndex;a<r.startIndex+r.itemCount;a++){if(i=t(a),r.top+o<=this._scrollTop&&this._scrollTop<r.top+o+i)return a;o+=i}}}return 0},n.prototype.componentDidMount=function(){this._async=new It(this),this._events=new Tn(this),this._onAsyncScrollDebounced=this._async.debounce(this._onAsyncScroll,100,{leading:!1,maxWait:500}),this._onAsyncIdleDebounced=this._async.debounce(this._onAsyncIdle,200,{leading:!1}),this._onAsyncResizeDebounced=this._async.debounce(this._onAsyncResize,16,{leading:!1}),this._onScrollingDoneDebounced=this._async.debounce(this._onScrollingDone,500,{leading:!1}),this._scrollElement=et(this._root.current),this._scrollTop=0,this.setState((0,e.pi)((0,e.pi)({},this._updatePages(this.props,this.state)),{hasMounted:!0})),this._measureVersion++;var t=function(t){var e;return(null!==(e=null==t?void 0:t.window)&&void 0!==e?e:"undefined"!=typeof window)?window:void 0}(this.context);this._events.on(t,"resize",this._onAsyncResizeDebounced),this._root.current&&this._events.on(this._root.current,"focus",this._onFocus,!0),this._scrollElement&&(this._events.on(this._scrollElement,"scroll",this._onScroll),this._events.on(this._scrollElement,"scroll",this._onAsyncScrollDebounced))},n.prototype.componentDidUpdate=function(t,e){var n=this.props,r=this.state;this.state.pagesVersion!==e.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 t,e;null===(t=this._async)||void 0===t||t.dispose(),null===(e=this._events)||void 0===e||e.dispose(),delete this._scrollElement},n.prototype.shouldComponentUpdate=function(t,e){var n=this.state.pages,r=e.pages,i=!1;if(!e.isScrolling&&this.state.isScrolling)return!0;if(t.version!==this.props.version)return!0;if(t.className!==this.props.className)return!0;if(t.items===this.props.items&&n.length===r.length)for(var o=0;o<n.length;o++){var a=n[o],s=r[o];if(a.key!==s.key||a.itemCount!==s.itemCount){i=!0;break}}else i=!0;return i},n.prototype.forceUpdate=function(){this._invalidatePageCache(),this._updateRenderRects(this.props,this.state,!0),this.setState(this._updatePages(this.props,this.state)),this._measureVersion++,t.prototype.forceUpdate.call(this)},n.prototype.getTotalListHeight=function(){return this._surfaceRect.height},n.prototype.render=function(){for(var t=this.props,n=t.className,r=t.role,i=void 0===r?"list":r,o=t.onRenderSurface,a=t.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=o?Di(o,this._onRenderSurface):this._onRenderSurface;return(a?Di(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,e.pi)((0,e.pi)({},u),{className:U("ms-List",n),role:c.length>0?i:void 0,"aria-label":c.length>0?u["aria-label"]:void 0})})},n.prototype._shouldVirtualize=function(t){void 0===t&&(t=this.props);var e=t.onShouldVirtualize;return!e||e(t)},n.prototype._invalidatePageCache=function(){this._pageCache={}},n.prototype._renderPage=function(t){var e,n=this,r=this.props.usePageCache;if(r&&(e=this._pageCache[t.key])&&e.pageElement)return e.pageElement;var i=this._getPageStyle(t),o=this.props.onRenderPage,a=(void 0===o?this._onRenderPage:o)({page:t,className:"ms-List-page",key:t.key,ref:function(e){n._pageRefs[t.key]=e},style:i,role:"presentation"},this._onRenderPage);return r&&0===t.startIndex&&(this._pageCache[t.key]={page:t,pageElement:a}),a},n.prototype._getPageStyle=function(t){var n=this.props.getPageStyle;return(0,e.pi)((0,e.pi)({},n?n(t):{}),t.items?{}:{height:t.height})},n.prototype._onFocus=function(t){for(var e=t.target;e!==this._surface.current;){var n=e.getAttribute("data-list-index");if(n){this._focusedIndex=Number(n);break}e=y(e)}},n.prototype._onScroll=function(){this.state.isScrolling||this.props.ignoreScrollingState||this.setState({isScrolling:!0}),this._resetRequiredWindows(),this._onScrollingDoneDebounced()},n.prototype._resetRequiredWindows=function(){this._requiredWindowsAhead=0,this._requiredWindowsBehind=0},n.prototype._onAsyncScroll=function(){var t,e;this._updateRenderRects(this.props,this.state),this._materializedRect&&(t=this._requiredRect,e=this._materializedRect,t.top>=e.top&&t.left>=e.left&&t.bottom<=e.bottom&&t.right<=e.right)||this.setState(this._updatePages(this.props,this.state))},n.prototype._onAsyncIdle=function(){var t=this.props,e=t.renderedWindowsAhead,n=t.renderedWindowsBehind,r=this._requiredWindowsAhead,i=this._requiredWindowsBehind,o=Math.min(e,r+1),a=Math.min(n,i+1);o===r&&a===i||(this._requiredWindowsAhead=o,this._requiredWindowsBehind=a,this._updateRenderRects(this.props,this.state),this.setState(this._updatePages(this.props,this.state))),(e>o||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(t,n){this._requiredRect||this._updateRenderRects(t,n);var r=this._buildPages(t,n),i=n.pages;return this._notifyPageChanges(i,r.pages,this.props),(0,e.pi)((0,e.pi)((0,e.pi)({},n),r),{pagesVersion:{}})},n.prototype._notifyPageChanges=function(t,e,n){var r=n.onPageAdded,i=n.onPageRemoved;if(r||i){for(var o={},a=0,s=t;a<s.length;a++)(u=s[a]).items&&(o[u.startIndex]=u);for(var l=0,c=e;l<c.length;l++){var u;(u=c[l]).items&&(o[u.startIndex]?delete o[u.startIndex]:this._onPageAdded(u))}for(var d in o)o.hasOwnProperty(d)&&this._onPageRemoved(o[d])}},n.prototype._updatePageMeasurements=function(t){var e=!1;if(!this._shouldVirtualize())return e;for(var n=0;n<t.length;n++){var r=t[n];r.items&&(e=this._measurePage(r)||e)}return e},n.prototype._measurePage=function(t){var e=!1,n=this._pageRefs[t.key],r=this._cachedPageHeights[t.startIndex];if(n&&this._shouldVirtualize()&&(!r||r.measureVersion!==this._measureVersion)){var i={width:n.clientWidth,height:n.clientHeight};(i.height||i.width)&&(e=t.height!==i.height,t.height=i.height,this._cachedPageHeights[t.startIndex]={height:i.height,measureVersion:this._measureVersion},this._estimatedPageHeight=Math.round((this._estimatedPageHeight*this._totalEstimates+i.height)/(this._totalEstimates+1)),this._totalEstimates++)}return e},n.prototype._onPageAdded=function(t){var e=this.props.onPageAdded;e&&e(t)},n.prototype._onPageRemoved=function(t){var e=this.props.onPageRemoved;e&&e(t)},n.prototype._buildPages=function(t,n){var r=t.renderCount,i=t.items,o=t.startIndex,a=t.getPageHeight;r=this._getRenderCount(t);for(var s=(0,e.pi)({},Ii),l=[],c=1,u=0,d=null,h=this._focusedIndex,p=o+r,f=this._shouldVirtualize(t),g=0===this._estimatedPageHeight&&!a,v=this._allowedRect,_=function(e){var r=y._getPageSpecification(t,e,v),a=r.height,_=r.data,x=r.key;c=r.itemCount;var b,C,E=u+a-1,S=m(n.pages,(function(t){return!!t.items&&t.startIndex===e}))>-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>=e&&h<e+c||e===o){d&&(l.push(d),d=null);var k=Math.min(c,p-e),T=y._createPage(x,i.slice(e,e+k),e,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(Fi+e,void 0,e,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=o;x<p&&"break"!==_(x);x+=c);return d&&(d.key=Fi+"end",l.push(d)),this._materializedRect=s,(0,e.pi)((0,e.pi)({},n),{pages:l,measureVersion:this._measureVersion})},n.prototype._getPageSpecification=function(t,e,n){var r=t.getPageSpecification;if(r){var i=r(e,n,t.items),o=i.itemCount,a=void 0===o?this._getItemCountForPage(e,n):o,s=i.height;return{itemCount:a,height:void 0===s?this._getPageHeight(e,n,a):s,data:i.data,key:i.key}}return{itemCount:a=this._getItemCountForPage(e,n),height:this._getPageHeight(e,n,a)}},n.prototype._getPageHeight=function(t,e,n){if(this.props.getPageHeight)return this.props.getPageHeight(t,e,n,this.props.items);var r=this._cachedPageHeights[t];return r?r.height:this._estimatedPageHeight||30},n.prototype._getItemCountForPage=function(t,e){return(this.props.getItemCountForPage?this.props.getItemCountForPage(t,e):10)||10},n.prototype._createPage=function(t,e,n,r,i,o,a){void 0===n&&(n=-1),void 0===r&&(r=e?e.length:0),void 0===i&&(i={}),t=t||"page-"+n;var s=this._pageCache[t];return s&&s.page?s.page:{key:t,startIndex:n,itemCount:r,items:e,style:i,top:0,height:0,data:o,isSpacer:a||!1}},n.prototype._getRenderCount=function(t){var e=t||this.props,n=e.items,r=e.startIndex,i=e.renderCount;return void 0===i?n?n.length-r:0:i},n.prototype._updateRenderRects=function(t,n,r){var i=t.renderedWindowsAhead,o=t.renderedWindowsBehind,a=n.pages;if(this._shouldVirtualize(t)){var l=this._surfaceRect||(0,e.pi)({},Ii),c=function(t){if(void 0===t)return 0;var e=0;return"scrollHeight"in t?e=t.scrollHeight:"document"in t&&(e=t.document.documentElement.scrollHeight),e}(this._scrollElement),u=Mi(this._scrollElement);this._surface.current&&(r||!a||!this._surfaceRect||!c||c!==this._scrollHeight||Math.abs(this._scrollTop-u)>this._estimatedPageHeight/3)&&(l=this._surfaceRect=Vi(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=Hi(p,this._requiredWindowsBehind,this._requiredWindowsAhead),this._allowedRect=Hi(p,o,i),this._visibleRect=p}},n.defaultProps={startIndex:0,onRenderCell:function(t,e,n){return i.createElement(i.Fragment,null,t&&t.name||"")},onRenderCellConditional:void 0,renderedWindowsAhead:2,renderedWindowsBehind:2},n.contextType=Bt,n}(i.Component);function Hi(t,e,n){var r=t.top-e*t.height,i=t.height+(e+n)*t.height;return{top:r,bottom:r+i,height:i,left:t.left,right:t.right,width:t.width}}var Ri,zi=function(t){var n=i.useRef(null);i.useEffect((function(){if(n.current){var e=(0,pi.Ys)(n.current),r=t.text.split(/\s+/),i=[],o=e.append("tspan"),a=0;return r.forEach((function(n){i.push(n),o.text(i.join(" "));var r=o.node();r&&r.getComputedTextLength()>t.width&&i.length>1&&(a++,i.pop(),o.text(i.join(" ")),i=[n],o=e.append("tspan").text(n).attr("dy",t.lineHeight).attr("x",t.x))})),e.attr("dy",-a*t.lineHeight),function(){e.selectAll("tspan").remove()}}})),t.lineHeight;var r=(0,e._T)(t,["lineHeight"]);return i.createElement("text",(0,e.pi)({ref:n},r))},Wi=function(t){var e,n,r,o=i.useRef(null),a=i.useState(!1),s=a[0],l=a[1],c=null;if(s){var u=t.labelDef.aggregatedIdx.map((function(e){return t.lineDefs[e].onRenderCard})).filter((function(t){return!!t}));u.length>0&&(c=i.createElement(He,{target:o.current,onDismiss:function(){return l(!1)},setInitialFocus:!0,role:"dialog"},i.createElement(dn,{isCircularNavigation:!0,direction:Re.vertical},i.createElement(Bi,{items:u,onRenderCell:function(t){return i.createElement("div",{"data-is-focusable":!0},t&&t())}}))))}var d=t.textColor?ci(t.textColor,null===(e=t.theme)||void 0===e?void 0:e.isInverted):null===(n=t.theme)||void 0===n?void 0:n.semanticColors.messageText;return r=1===t.labelDef.aggregatedIdx.length?t.lineDefs[t.labelDef.aggregatedIdx[0]].event:t.mergedLabel(t.labelDef.aggregatedIdx.length),i.createElement(i.Fragment,null,i.createElement("g",{ref:o,onClick:function(){return l(!0)},"data-is-focusable":!1,style:{cursor:"pointer"}},i.createElement(zi,{text:r,x:t.labelDef.x,y:t.textY,width:t.textWidth,lineHeight:t.textLineHeight,textAnchor:t.labelDef.anchor,fontSize:t.textFontSize,fill:d})),c)},Yi=function(t){var n,r,o=t.labelWidth?t.labelWidth:105,a=t.chartYTop-20,s=a+7,l=t.scale.range(),c=t.events.map((function(n){return(0,e.pi)((0,e.pi)({},n),{x:t.scale(n.date)})}));c.sort((function(t,e){return+t.date-+e.date}));var u=t.strokeColor?ci(t.strokeColor,null===(n=t.theme)||void 0===n?void 0:n.isInverted):null===(r=t.theme)||void 0===r?void 0:r.palette.black,d=function(t,e){for(var n=[],r=[],i=0,o=t;i<o.length;i++){var a=o[i],s=e(a);-1===n.indexOf(s)&&(r.push(a),n.push(s))}return r}(c,(function(t){return t.date.toString()})).map((function(e,n){return i.createElement("line",{key:n,x1:e.x,x2:e.x,y1:s,y2:t.chartYBottom,stroke:u,strokeDasharray:"8"})})),h=function(t,e,n,r){var i=function(r,i){if(i===t.length)return[];var a=t[i].x,s=a-e;return a<r?[]:i===t.length-1?r<s?[{x:a,anchor:"end",aggregatedIdx:[i]}]:a+e<n?[{x:a,anchor:"start",aggregatedIdx:[i]}]:[]:o(i,r<s?"end":"start")},o=function(r,o){var a="end"===o?t[r].x:t[r].x+e,s=m(t,(function(t){return t.x>a&&(t.x-e>=a||t.x+e<n)}),r+1);-1===s&&(s=t.length);for(var l=[],c=r;c<s;c++)l.push(c);var u=i(a,s);return u.unshift({x:t[r].x,anchor:o,aggregatedIdx:l}),u};return i(r,0)}(c,o+5,l[1],l[0]).map((function(n,r){return i.createElement(Wi,(0,e.pi)({key:r,theme:t.theme},{lineDefs:c,labelDef:n,textY:a,textWidth:o,textLineHeight:18,textFontSize:"10pt",textColor:t.labelColor,mergedLabel:t.mergedLabel}))}));return i.createElement(i.Fragment,null,d,h)},Zi=(0,o.y)();!function(t){t[t.hoverSize=11]="hoverSize",t[t.invisibleSize=1]="invisibleSize"}(Ri||(Ri={}));var qi=(0,fi.Z)((function(t){return t.x})).left,Xi=function(t){function n(n){var r=t.call(this,n)||this;return r._xAxisScale="",r._yAxisScale="",r.eventLabelHeight=36,r._isRTL=(0,a.zg)(),r._injectIndexPropertyInLineChartData=function(t){var n=r.props.allowMultipleShapesForPoints,i=void 0!==n&&n;return t?t.map((function(t,n){var o,a,s;return s=void 0===t.color?li(n,0,null===(o=r.props.theme)||void 0===o?void 0:o.isInverted):ci(t.color,null===(a=r.props.theme)||void 0===a?void 0:a.isInverted),(0,e.pi)((0,e.pi)({},t),{index:i?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(t){r.margins=t},r._initializeLineChartData=function(t,e,n,i,o){r._xAxisScale=t,r._yAxisScale=e,r._renderedColorFillBars=r.props.colorFillBars?r._createColorFillBars(n):[],r.lines=r._createLines(o,n)},r._handleSingleLegendSelectionAction=function(t){r.state.selectedLegend===t.legend?(r.setState({selectedLegend:""}),r._handleLegendClick(t,null)):(r.setState({selectedLegend:t.legend}),r._handleLegendClick(t,t.legend))},r._onHoverCardHide=function(){r.setState({selectedLegendPoints:[],selectedColorBarLegend:[],isSelectedLegend:!1})},r._closeCallout=function(){r.setState({isCalloutVisible:!1})},r._getBoxWidthOfShape=function(t,e,n){var i=r.props,o=i.allowMultipleShapesForPoints,a=void 0!==o&&o,s=i.strokeWidth,l=void 0===s?4:s,c=r.state.activePoint;return a?c===t?Ri.hoverSize:1===e||n?2.5*l:Ri.invisibleSize:c===t?Ri.hoverSize:Ri.invisibleSize},r._getPath=function(t,e,n,i,o,a){var s=r.props.allowMultipleShapesForPoints,l=void 0!==s&&s,c=r._getBoxWidthOfShape(n,i,o),u=l?a%Object.keys(ze.Ml).length:0,d=ze.Ml[u].widthRatio;return function(t,e,n,r){return["M".concat(t-n/2," ").concat(e,"\n A").concat(n/2," ").concat(n/2," 0 1 0 ").concat(t+n/2," ").concat(e,"\n M").concat(t-n/2," ").concat(e,"\n A ").concat(n/2," ").concat(n/2," 0 1 1 ").concat(t+n/2," ").concat(e,"\n "),"M".concat(t-n/2," ").concat(e-n/2,"\n L").concat(t+n/2," ").concat(e-n/2,"\n L").concat(t+n/2," ").concat(e+n/2,"\n L").concat(t-n/2," ").concat(e+n/2,"\n Z"),"M".concat(t-n/2," ").concat(e-.2886*n,"\n H ").concat(t+n/2,"\n L").concat(t," ").concat(e+.5774*n," Z"),"M".concat(t," ").concat(e-n/2,"\n L").concat(t+n/2," ").concat(e,"\n L").concat(t," ").concat(e+n/2,"\n L").concat(t-n/2," ").concat(e,"\n Z"),"M".concat(t," ").concat(e-.5774*n,"\n L").concat(t+n/2," ").concat(e+.2886*n,"\n L").concat(t-n/2," ").concat(e+.2886*n," Z"),"M".concat(t-.5*n," ").concat(e-.866*n,"\n L").concat(t+.5*n," ").concat(e-.866*n,"\n L").concat(t+n," ").concat(e,"\n L").concat(t+.5*n," ").concat(e+.866*n,"\n L").concat(t-.5*n," ").concat(e+.866*n,"\n L").concat(t-n," ").concat(e,"\n Z"),"M".concat(t," ").concat(e-.851*n,"\n L").concat(t+.6884*n," ").concat(e-.2633*n,"\n L").concat(t+.5001*n," ").concat(e+.6884*n,"\n L").concat(t-.5001*n," ").concat(e+.6884*n,"\n L").concat(t-.6884*n," ").concat(e-.2633*n,"\n Z"),"M".concat(t-.5001*n," ").concat(e-1.207*n,"\n L").concat(t+.5001*n," ").concat(e-1.207*n,"\n L").concat(t+1.207*n," ").concat(e-.5001*n,"\n L").concat(t+1.207*n," ").concat(e+.5001*n,"\n L").concat(t+.5001*n," ").concat(e+1.207*n,"\n L").concat(t-.5001*n," ").concat(e+1.207*n,"\n L").concat(t-1.207*n," ").concat(e+.5001*n,"\n L").concat(t-1.207*n," ").concat(e-.5001*n,"\n Z")][r]}(t,e,c=d>1?c/d:c,u)},r._getPointFill=function(t,e,n,i){var o=r.state.activePoint,a=r.props,s=a.theme;return a.allowMultipleShapesForPoints,o===e?s.semanticColors.bodyBackground:t},r._createColorFillBars=function(t){var e,n=[];r.state.isSelectedLegend?r._colorFillBars=r.state.selectedColorBarLegend:r._colorFillBars=r.props.colorFillBars;for(var o=(0,ze.As)(r._points,ze.$X.LineChart),a=0;a<r._colorFillBars.length;a++){var s=r._colorFillBars[a],l=f(s.legend.replace(/\W/g,"")),c=ci(s.color,null===(e=r.props.theme)||void 0===e?void 0:e.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(i.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(o.endValue)-3,width:Math.abs(r._xAxisScale(h)-r._xAxisScale(d)),height:r._yAxisScale(r.props.yMinValue||0)-r._yAxisScale(o.endValue)+3,key:"".concat(l).concat(u)}))}}return n},r._getStripePattern=function(t,e){return i.createElement("pattern",{id:"".concat(r._colorFillBarPatternId,"_").concat(e),width:16,height:16,key:"".concat(r._colorFillBarPatternId,"_").concat(e),patternUnits:"userSpaceOnUse"},i.createElement("path",{d:"M-4,4 l8,-8 M0,16 l16,-16 M12,20 l8,-8",stroke:t,strokeWidth:1.25}))},r._checkInGap=function(t,e,n){for(var r=n,i=!1;r<e.length&&t>e[r].endIndex;)r++;return r<e.length&&t>e[r].startIndex&&t<=e[r].endIndex&&(i=!0),{isInGap:i,gapIndex:r}},r._onMouseOverLargeDataset=function(t,e,n){n.persist();var i=r.props.data.lineChartData,o=r._xAxisScale.invert((0,pi.Eb)(document.getElementById(r._rectId),n)[0]),a=qi(i[t].data,o),s=i[t].data[a-1],l=i[t].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,ze.SY)(i[t].data[0].x,!0)){case ze.xl.DateAxis:d=new Date(o).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 ze.xl.NumericAxis:d=o,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=i[t].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(t){return t.x===y})),b=i[t].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(t),(0,pi.Ys)("#".concat(r._staticHighlightCircle,"_").concat(t)).attr("cx","".concat(r._xAxisScale(b.x))).attr("cy","".concat(r._yAxisScale(b.y))).attr("visibility","visibility"),(0,pi.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(e-r._yAxisScale(b.y))),r.setState({nearestCircleToHighlight:b,isCalloutVisible:!0,refSelected:"#".concat(r._staticHighlightCircle,"_").concat(t),stackCalloutProps:x,YValueHover:x.values,dataPointCalloutProps:x,hoverXValue:g||_,xAxisCalloutAccessibilityData:m,activePoint:"",activeLine:t})),x||r.setState({isCalloutVisible:!1,nearestCircleToHighlight:b,activePoint:"",activeLine:t})},r._handleFocus=function(t,e,n,i,o){r._uniqueCallOutID=i;var a=e instanceof Date?e.toLocaleDateString():e,s=e instanceof Date?e.getTime():e,l=v(r._calloutPoints,(function(t){return t.x===s}));if(l){var c=r;(0,pi.Ys)("#".concat(r._verticalLine)).attr("transform",(function(){return"translate(".concat(c._xAxisScale(e),", 0)")})).attr("visibility","visibility"),r._refArray.forEach((function(e){e.index===t&&r.setState({isCalloutVisible:!0,refSelected:e.refElement,hoverXValue:n||""+a,YValueHover:l.values,stackCalloutProps:l,dataPointCalloutProps:l,activePoint:i,xAxisCalloutAccessibilityData:o})}))}else r.setState({activePoint:i})},r._handleHover=function(t,e,n,i,o,a,s){s.persist();var l=t instanceof Date?t.toLocaleDateString():t,c=t instanceof Date?t.getTime():t,u=r,d=v(r._calloutPoints,(function(t){return t.x===c}));d?((0,pi.Ys)("#".concat(r._verticalLine)).attr("transform",(function(){return"translate(".concat(u._xAxisScale(t),", ").concat(u._yAxisScale(e),")")})).attr("visibility","visibility").attr("y2","".concat(n-u._yAxisScale(e))),r._uniqueCallOutID!==o&&(r._uniqueCallOutID=o,r.setState({isCalloutVisible:!0,refSelected:"#".concat(o),hoverXValue:i||""+l,YValueHover:d.values,stackCalloutProps:d,dataPointCalloutProps:d,activePoint:o,xAxisCalloutAccessibilityData:a,nearestCircleToHighlight:null,activeLine:null}))):r.setState({activePoint:o,nearestCircleToHighlight:null,activeLine:null})},r._getClickHandler=function(t){return t?{onClick:t}:{}},r._handleMouseOut=function(){(0,pi.Ys)("#".concat(r._verticalLine)).attr("visibility","hidden")},r._handleChartMouseLeave=function(){r._uniqueCallOutID=null,r.setState({isCalloutVisible:!1,activePoint:"",activeLine:null})},r._handleLegendClick=function(t,e){t.onLegendClick&&t.onLegendClick(e)},r._handleMultipleLineLegendSelectionAction=function(t){var n,i=r.state.selectedLegendPoints.reduce((function(e,n,r){return e>-1||n.legend!==t.legend?e:r}),-1);n=-1===i?(0,e.ev)((0,e.ev)([],r.state.selectedLegendPoints,!0),[t],!1):r.state.selectedLegendPoints.slice(0,i).concat(r.state.selectedLegendPoints.slice(i+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 o=n.map((function(t){return t.legend}));r._handleLegendClick(t,o)},r._handleMultipleColorFillBarLegendSelectionAction=function(t){var n,i=r.state.selectedColorBarLegend.reduce((function(e,n,r){return e>-1||n.legend!==t.legend?e:r}),-1);(n=-1===i?(0,e.ev)((0,e.ev)([],r.state.selectedColorBarLegend,!0),[t],!1):r.state.selectedColorBarLegend.slice(0,i).concat(r.state.selectedColorBarLegend.slice(i+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 o=n.map((function(t){return t.legend}));r._handleLegendClick(t,o)},r._clearMultipleLegendSelections=function(){r.setState({selectedColorBarLegend:[],selectedLegendPoints:[],isSelectedLegend:!1})},r._legendHighlighted=function(t){return r.state.selectedLegend===t||""===r.state.selectedLegend&&r.state.activeLegend===t},r._noLegendHighlighted=function(){return""===r.state.selectedLegend&&""===r.state.activeLegend},r._getColorFillBarOpacity=function(t){return t.applyPattern?1:.4},r._getAriaLabel=function(t,e){var n,i=r._points[t],o=i.data[e],a=o.x instanceof Date?o.x.toLocaleString():o.x,s=o.xAxisCalloutData||a,l=i.legend,c=o.yAxisCalloutData||o.y;return(null===(n=o.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,ze.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,ue.NF)((function(t){return r._createLegends(t)})),r._firstRenderOptimization=!0,r._emptyChartId=f("_LineChart_empty"),n.eventAnnotationProps&&n.eventAnnotationProps.labelHeight&&(r.eventLabelHeight=n.eventAnnotationProps.labelHeight),r}return(0,e.ZT)(n,t),n.prototype.componentDidUpdate=function(t){t.height===this.props.height&&t.width===this.props.width&&t.data===this.props.data||(this._points=this._injectIndexPropertyInLineChartData(this.props.data.lineChartData),this._calloutPoints=(0,ze.Wx)(this._points)||[])},n.prototype.render=function(){var t=this,n=this.props,r=n.tickValues,o=n.tickFormat,a=n.eventAnnotationProps,s=n.legendProps,l=n.data;this._points=this._injectIndexPropertyInLineChartData(l.lineChartData);var c=(0,ze.V4)(this._points),u=this._points;s&&s.canSelectMultipleLegends&&(u=this.state.selectedLegendPoints.length>=1?this.state.selectedLegendPoints:this._points,this._calloutPoints=(0,ze.Wx)(u));var d=null;this.props.hideLegend||(d=this._createLegendsMemoized(this._points));var h=(0,e.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:o};return this._isChartEmpty()?i.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):i.createElement(Ti,(0,e.pi)({},this.props,{chartTitle:l.chartTitle,points:u,chartType:ze.$X.LineChart,isCalloutForStack:!0,calloutProps:h,tickParams:p,legendBars:d,getmargins:this._getMargins,getGraphData:this._initializeLineChartData,xAxisType:c?ze.xl.DateAxis:ze.xl.NumericAxis,customizedCallout:this._getCustomizedCallout(),onChartMouseLeave:this._handleChartMouseLeave,enableFirstRenderOptimization:this.props.enablePerfOptimization&&this._firstRenderOptimization,children:function(n){return t._xAxisScale=n.xScale,t._yAxisScale=n.yScale,i.createElement(i.Fragment,null,i.createElement("g",null,i.createElement("line",{x1:0,y1:0,x2:0,y2:n.containerHeight,stroke:"#323130",id:t._verticalLine,visibility:"hidden",strokeDasharray:"5,5"}),t.props.optimizeLargeData?i.createElement("rect",{id:t._rectId,width:n.containerWidth,height:n.containerHeight,fill:"transparent"}):i.createElement(i.Fragment,null),i.createElement("g",null,t._renderedColorFillBars,t.lines),a&&i.createElement(Yi,(0,e.pi)({theme:t.props.theme},a,{scale:n.xScale,chartYTop:t.margins.top+t.eventLabelHeight,chartYBottom:n.containerHeight-35}))))}}))},n.prototype._createLegends=function(t){var n=this,r=this.props,o=r.legendProps,a=r.allowMultipleShapesForPoints,s=void 0!==a&&a,l=!(!o||!o.canSelectMultipleLegends),c=t.map((function(t){var r=t.color;return(0,e.pi)((0,e.pi)({title:t.legend,color:r,action:function(){l?n._handleMultipleLineLegendSelectionAction(t):n._handleSingleLegendSelectionAction(t)},onMouseOutAction:function(){n.setState({activeLegend:""})},hoverAction:function(){n._handleChartMouseLeave(),n.setState({activeLegend:t.legend})}},t.legendShape&&{shape:t.legendShape}),s&&{shape:ze.wo[t.index%Object.keys(ze.Ml).length]})})),u=this.props.colorFillBars?this.props.colorFillBars.map((function(t,e){var r,i=t.legend,o=ci(t.color,null===(r=n.props.theme)||void 0===r?void 0:r.isInverted);return{title:i,color:o,action:function(){l?n._handleMultipleColorFillBarLegendSelectionAction(t):n._handleSingleLegendSelectionAction(t)},onMouseOutAction:function(){n.setState({activeLegend:""})},hoverAction:function(){n._handleChartMouseLeave(),n.setState({activeLegend:i})},opacity:n._getColorFillBarOpacity(t),stripePattern:t.applyPattern}})):[];return i.createElement(vr,(0,e.pi)({legends:(0,e.ev)((0,e.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(t,n){var r,o,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(t){var D=[],P=[],F=[],I=M._points[t].legend,N=M._points[t].color,V=M.state.activePoint,O=M.props.theme,B=n-M.margins.bottom+6;if(1===M._points[t].data.length){var H=M._points[t].data[0],R=H.x,z=H.y,W=H.xAxisCalloutData,Y=H.xAxisCalloutAccessibilityData,Z="".concat(M._circleId,"_").concat(t);F.push(i.createElement("circle",(0,e.pi)({id:Z,key:Z,r:V===Z?5.5:3.5,cx:M._xAxisScale(R),cy:M._yAxisScale(z),fill:V===Z?O.semanticColors.bodyBackground:N,onMouseOver:M._handleHover.bind(M,R,z,B,W,Z,Y),onMouseMove:M._handleHover.bind(M,R,z,B,W,Z,Y),onMouseOut:M._handleMouseOut,strokeWidth:V===Z?4:0,stroke:V===Z?N:"",role:"img","aria-label":M._getAriaLabel(t,0),"data-is-focusable":!0,ref:function(t){T._refCallback(t,Z)},onFocus:function(){return T._handleFocus(Z,R,W,Z,Y)},onBlur:M._handleMouseOut},M._getClickHandler(M._points[t].data[0].onDataPointClick))))}var q=0,X=null!==(o=null===(r=M._points[t].gaps)||void 0===r?void 0:r.sort((function(t,e){return t.startIndex-e.startIndex})))&&void 0!==o?o:[];if(M.props.optimizeLargeData&&M._points[t].data.length>1){for(var U=yi().x((function(t){return T._xAxisScale(t[0])})).y((function(t){return T._yAxisScale(t[1])})).curve(mi),j="".concat(M._lineId,"_").concat(t),G="".concat(M._borderId,"_").concat(t),K=(null===(a=M._points[t].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[t].data.length;Q++)J.push([M._points[t].data[Q].x instanceof Date?M._points[t].data[Q].x.getTime():M._points[t].data[Q].x,M._points[t].data[Q].y]);if($){var tt=(null===(s=M._points[t].lineOptions)||void 0===s?void 0:s.lineBorderWidth)?Number.parseFloat(M._points[t].lineOptions.lineBorderWidth.toString()):0;tt>0&&P.push(i.createElement("path",{id:G,key:G,d:U(J),fill:"transparent",strokeLinecap:null!==(c=null===(l=M._points[t].lineOptions)||void 0===l?void 0:l.strokeLinecap)&&void 0!==c?c:"round",strokeWidth:Number.parseFloat(K.toString())+tt,stroke:(null===(u=M._points[t].lineOptions)||void 0===u?void 0:u.lineBorderColor)||O.semanticColors.bodyBackground,opacity:1})),D.push(i.createElement("path",(0,e.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[t].lineOptions)||void 0===d?void 0:d.strokeLinecap)&&void 0!==h?h:"round",onMouseMove:M._onMouseOverLargeDataset.bind(M,t,B),onMouseOver:M._onMouseOverLargeDataset.bind(M,t,B),onMouseOut:M._handleMouseOut},M._getClickHandler(M._points[t].onLineClick),{opacity:1,role:"img","aria-label":"".concat(I,", series ").concat(t+1," of ").concat(M._points.length," with ").concat(M._points[t].data.length," data points.")})))}else D.push(i.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[t].lineOptions)||void 0===p?void 0:p.strokeLinecap)&&void 0!==f?f:"round",opacity:.1,role:"img","aria-label":"".concat(I,", series ").concat(t+1," of ").concat(M._points.length," with ").concat(M._points[t].data.length," data points.")}));var et=null!==M.state.activeLine&&M.state.activeLine===t;F.push(i.createElement("circle",{id:"".concat(M._staticHighlightCircle,"_").concat(t),key:"".concat(M._staticHighlightCircle,"_").concat(t),r:5.5,cx:0,cy:0,fill:O.semanticColors.bodyBackground,strokeWidth:4,stroke:N,visibility:et?"visibility":"hidden",onMouseMove:M._onMouseOverLargeDataset.bind(M,t,B),onMouseOver:M._onMouseOverLargeDataset.bind(M,t,B),onMouseOut:M._handleMouseOut}))}else if(!M.props.optimizeLargeData)for(var nt=function(n){var r=M._checkInGap(n,X,q),o=r.isInGap;q=r.gapIndex;var a="".concat(M._lineId,"_").concat(t,"_").concat(n),s="".concat(M._borderId,"_").concat(t,"_").concat(n),l="".concat(M._circleId,"_").concat(t,"_").concat(n),c=M._points[t].data[n-1],u=c.x,d=c.y,h=c.xAxisCalloutData,p=c.xAxisCalloutAccessibilityData,f=M._points[t].data[n],w=f.x,H=f.y,R=M._getPath(M._xAxisScale(u),M._yAxisScale(d),l,n,!1,M._points[t].index),z=(null===(g=M._points[t].lineOptions)||void 0===g?void 0:g.strokeWidth)||M.props.strokeWidth||4,W=M._legendHighlighted(I)||M._noLegendHighlighted()||M.state.isSelectedLegend,Y=M._points[t].hideNonActiveDots&&V!==l;if(F.push(i.createElement("path",(0,e.pi)({id:l,key:l,d:R,"data-is-focusable":!0,onMouseOver:M._handleHover.bind(M,u,d,B,h,l,p),onMouseMove:M._handleHover.bind(M,u,d,B,h,l,p),onMouseOut:M._handleMouseOut,onFocus:function(){return T._handleFocus(a,u,h,l,p)},onBlur:M._handleMouseOut},M._getClickHandler(M._points[t].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(t,n-1)}))),n+1===M._points[t].data.length){var Z="".concat(l).concat(n,"L"),U="".concat(l).concat(n,"D"),j=M._points[t].hideNonActiveDots&&V!==Z;R=M._getPath(M._xAxisScale(w),M._yAxisScale(H),Z,n,!0,M._points[t].index);var G=M._points[t].data[n],K=G.xAxisCalloutData,$=G.xAxisCalloutAccessibilityData;F.push(i.createElement(i.Fragment,{key:"".concat(Z,"_container")},i.createElement("path",(0,e.pi)({id:Z,key:Z,d:R,"data-is-focusable":!0,onMouseOver:M._handleHover.bind(M,w,H,B,K,Z,$),onMouseMove:M._handleHover.bind(M,w,H,B,K,Z,$),onMouseOut:M._handleMouseOut,onFocus:function(){return T._handleFocus(a,w,K,Z,$)},onBlur:M._handleMouseOut},M._getClickHandler(M._points[t].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(t,n)})),i.createElement("circle",{id:U,key:U,r:8,cx:M._xAxisScale(w),cy:M._yAxisScale(H),opacity:0,width:0,onMouseOver:M._handleHover.bind(M,w,H,B,K,Z,$),onMouseMove:M._handleHover.bind(M,w,H,B,K,Z,$),onMouseOut:M._handleMouseOut,strokeWidth:0,focusable:!1,onBlur:M._handleMouseOut})))}if(W){if(!o){var J=(null===(m=M._points[t].lineOptions)||void 0===m?void 0:m.lineBorderWidth)?Number.parseFloat(M._points[t].lineOptions.lineBorderWidth.toString()):0;J>0&&P.push(i.createElement("line",{id:s,key:s,x1:M._xAxisScale(u),y1:M._yAxisScale(d),x2:M._xAxisScale(w),y2:M._yAxisScale(H),strokeLinecap:null!==(_=null===(v=M._points[t].lineOptions)||void 0===v?void 0:v.strokeLinecap)&&void 0!==_?_:"round",strokeWidth:Number.parseFloat(z.toString())+J,stroke:(null===(y=M._points[t].lineOptions)||void 0===y?void 0:y.lineBorderColor)||O.semanticColors.bodyBackground,opacity:1})),D.push(i.createElement("line",(0,e.pi)({id:a,key:a,x1:M._xAxisScale(u),y1:M._yAxisScale(d),x2:M._xAxisScale(w),y2:M._yAxisScale(H),strokeWidth:z,ref:function(t){T._refCallback(t,a)},onMouseOver:M._handleHover.bind(M,u,d,B,h,l,p),onMouseMove:M._handleHover.bind(M,u,d,B,h,l,p),onMouseOut:M._handleMouseOut,stroke:N,strokeLinecap:null!==(b=null===(x=M._points[t].lineOptions)||void 0===x?void 0:x.strokeLinecap)&&void 0!==b?b:"round",strokeDasharray:null===(C=M._points[t].lineOptions)||void 0===C?void 0:C.strokeDasharray,strokeDashoffset:null===(E=M._points[t].lineOptions)||void 0===E?void 0:E.strokeDashoffset,opacity:1},M._getClickHandler(M._points[t].onLineClick))))}}else o||D.push(i.createElement("line",{id:a,key:a,x1:M._xAxisScale(u),y1:M._yAxisScale(d),x2:M._xAxisScale(w),y2:M._yAxisScale(H),strokeWidth:z,stroke:N,strokeLinecap:null!==(A=null===(S=M._points[t].lineOptions)||void 0===S?void 0:S.strokeLinecap)&&void 0!==A?A:"round",strokeDasharray:null===(L=M._points[t].lineOptions)||void 0===L?void 0:L.strokeDasharray,strokeDashoffset:null===(k=M._points[t].lineOptions)||void 0===k?void 0:k.strokeDashoffset,opacity:.1}))},rt=1;rt<M._points[t].data.length;rt++)nt(rt);w.push.apply(w,(0,e.ev)((0,e.ev)((0,e.ev)([],P,!1),D,!1),F,!1))},M=this,P=this._points.length-1;P>=0;P--)D(P);var F=Zi(this.props.styles,{theme:this.props.theme});if(!this.props.showXAxisLablesTooltip)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}if(!this.props.wrapXAxisLables&&this.props.showXAxisLablesTooltip){var I=(0,pi.Ys)(t).call(this._xAxisScale);try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}var N={tooltipCls:F.tooltip,id:this._tooltipId,xAxis:I};I&&(0,ze.$V)(N)}return w},n.prototype._refCallback=function(t,e){this._refArray.push({index:e,refElement:t})},n.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.lineChartData&&this.props.data.lineChartData.length>0&&this.props.data.lineChartData.filter((function(t){return t.data.length})).length>0)},n.defaultProps={enableReflow:!0},n}(i.Component),Ui=(0,t.z)(Xi,(function(t){return{tooltip:(0,e.pi)((0,e.pi)({},t.theme.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:t.theme.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"})}})),ji=n(8957);function Gi(t,e){if((i=t.length)>1)for(var n,r,i,o=1,a=t[e[0]],s=a.length;o<i;++o)for(r=a,a=t[e[o]],n=0;n<s;++n)a[n][1]+=a[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]}function Ki(t){for(var e=t.length,n=new Array(e);--e>=0;)n[e]=e;return n}function $i(t,e){return t[e]}function Ji(t){const e=[];return e.key=t,e}function Qi(t,e,n){var r=null,i=yr(!0),o=null,a=mi,s=null,l=zr(c);function c(c){var u,d,h,p,f,g=(c=_r(c)).length,m=!1,v=new Array(g),_=new Array(g);for(null==o&&(s=a(f=l())),u=0;u<=g;++u){if(!(u<g&&i(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]=+t(p,u,c),_[u]=+e(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 yi().defined(i).curve(a).context(o)}return t="function"==typeof t?t:void 0===t?vi:yr(+t),e="function"==typeof e?e:yr(void 0===e?0:+e),n="function"==typeof n?n:void 0===n?_i:yr(+n),c.x=function(e){return arguments.length?(t="function"==typeof e?e:yr(+e),r=null,c):t},c.x0=function(e){return arguments.length?(t="function"==typeof e?e:yr(+e),c):t},c.x1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:yr(+t),c):r},c.y=function(t){return arguments.length?(e="function"==typeof t?t:yr(+t),n=null,c):e},c.y0=function(t){return arguments.length?(e="function"==typeof t?t:yr(+t),c):e},c.y1=function(t){return arguments.length?(n=null==t?null:"function"==typeof t?t:yr(+t),c):n},c.lineX0=c.lineY0=function(){return u().x(t).y(e)},c.lineY1=function(){return u().x(t).y(n)},c.lineX1=function(){return u().x(r).y(e)},c.defined=function(t){return arguments.length?(i="function"==typeof t?t:yr(!!t),c):i},c.curve=function(t){return arguments.length?(a=t,null!=o&&(s=a(o)),c):a},c.context=function(t){return arguments.length?(null==t?o=s=null:s=a(o=t),c):o},c}function to(t){return t<0?-1:1}function eo(t,e,n){var r=t._x1-t._x0,i=e-t._x1,o=(t._y1-t._y0)/(r||i<0&&-0),a=(n-t._y1)/(i||r<0&&-0),s=(o*i+a*r)/(r+i);return(to(o)+to(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function no(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function ro(t,e,n){var r=t._x0,i=t._y0,o=t._x1,a=t._y1,s=(o-r)/3;t._context.bezierCurveTo(r+s,i+s*e,o-s,a-s*n,o,a)}function io(t){this._context=t}function oo(t){this._context=t}function ao(t){return new io(t)}io.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:ro(this,this._t0,no(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,ro(this,no(this,n=eo(this,t,e)),n);break;default:ro(this,this._t0,n=eo(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}},(function(t){this._context=new oo(t)}.prototype=Object.create(io.prototype)).point=function(t,e){io.prototype.point.call(this,e,t)},oo.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,r,i,o){this._context.bezierCurveTo(e,t,r,n,o,i)}};var so,lo=(0,o.y)(),co=(0,fi.Z)((function(t){return t.x})).left;!function(t){t.show="visibility",t.hide="hidden"}(so||(so={}));var uo=function(t){function n(n){var r=t.call(this,n)||this;return r._getMargins=function(t){r.margins=t},r._onRectMouseMove=function(t){t.persist();var e=r.props.data.lineChartData,n=r._xAxisRectScale.invert((0,pi.Eb)(document.getElementById(r._rectId),t)[0]),i=co(e[0].data,n),o=e[0].data[i-1],a=e[0].data[i],s=null,l=null,c=null;if(void 0===o&&void 0!==a)l=a.x,c=i;else if(void 0!==o&&void 0===a)l=o.x,c=i-1;else{var u=void 0,d=void 0,h=void 0;switch(s=(0,ze.SY)(e[0].data[0].x,!0)){case ze.xl.DateAxis:u=new Date(n).getTime(),d=o.x.getTime(),h=a.x.getTime(),l=Math.abs(u-d)>Math.abs(u-h)?a.x:o.x,c=Math.abs(u-d)>Math.abs(u-h)?i:i-1;break;case ze.xl.NumericAxis:u=n,d=o.x,h=a.x,l=Math.abs(u-d)>Math.abs(u-h)?a.x:o.x,c=Math.abs(u-d)>Math.abs(u-h)?i:i-1}}var p=e[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(t){return t.x===_})),x=s===ze.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:so.show,isCircleClicked:!1,stackCalloutProps:y,YValueHover:y.values,dataPointCalloutProps:y,hoverXValue:f||m,xAxisCalloutAccessibilityData:g,activePoint:""}),y||r.setState({isCalloutVisible:!1,nearestCircleToHighlight:x,displayOfLine:so.hide,isCircleClicked:!1})},r._onRectMouseOut=function(){},r._handleChartMouseLeave=function(){r.setState({refSelected:null,isCalloutVisible:!1,nearestCircleToHighlight:null,lineXValue:0,displayOfLine:so.hide,isCircleClicked:!1,stackCalloutProps:void 0,dataPointCalloutProps:void 0,hoverXValue:void 0,YValueHover:[]})},r._getStackedData=function(t,e){var n=function(){var t=yr([]),e=Ki,n=Gi,r=$i;function i(i){var o,a,s=Array.from(t.apply(this,arguments),Ji),l=s.length,c=-1;for(const t of i)for(o=0,++c;o<l;++o)(s[o][c]=[0,+r(t,s[o].key,c,i)]).data=t;for(o=0,a=_r(e(s));o<l;++o)s[a[o]].index=o;return n(s,a),s}return i.keys=function(e){return arguments.length?(t="function"==typeof e?e:yr(Array.from(e)),i):t},i.value=function(t){return arguments.length?(r="function"==typeof t?t:yr(+t),i):r},i.order=function(t){return arguments.length?(e=null==t?Ki:"function"==typeof t?t:yr(Array.from(t)),i):e},i.offset=function(t){return arguments.length?(n=null==t?Gi:t,i):n},i}().keys(t)(e),i=(0,ji.Z)(n[n.length-1],(function(t){return t[1]})),o=[];return n.forEach((function(t){var e=[];t.forEach((function(t){e.push({values:t,xVal:t.data.xVal})})),o.push(e)})),r._isMultiStackChart=!!(o&&o.length>1),{stackedData:o,maxOfYVal:i}},r._createDataSet=function(t){if(r.props.enablePerfOptimization&&r._enableComputationOptimization){var e=[],n=[],i=[],o=[],a=(0,ze.Wx)(t);t&&t.length&&t.forEach((function(t){i.push(t.color),o.push(t.opacity||1),e.push.apply(e,t.data)}));var s={};e.forEach((function(t){var e=t.x instanceof Date?t.x.toLocaleString():t.x;s[e]?s[e].push(t):s[e]=[t]})),Object.keys(s).forEach((function(t){var e=s[t],r={};e.forEach((function(t,e){r.xVal=t.x,r["chart".concat(e)]=t.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:i,opacity:o,keys:c,stackedInfo:h,calloutPoints:a}}var p=[],f=[],g=[],m=[];a=(0,ze.Wx)(t),t&&t.length&&t.forEach((function(t){g.push(t.color),m.push(t.opacity||1),p.push.apply(p,t.data)}));for(var v=p,_=function(){var t=v[0].x instanceof Date?v[0].x.toLocaleString():v[0].x,e=v.filter((function(e){return(e.x instanceof Date?e.x.toLocaleString():e.x)===t})),n={};e.forEach((function(t,e){n.xVal=t.x,n["chart".concat(e)]=t.y})),f.push(n);var r=v[0].x instanceof Date?v[0].x.toLocaleString():v[0].x;v=v.filter((function(t){return(t.x instanceof Date?t.x.toLocaleString():t.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(t,e,n,i,o){r._chart=r._drawGraph(n,t,e,o)},r._getLegendData=function(t){var n=[];return t.forEach((function(t){var e=t.color;if(!(n.filter((function(n){return n.title===t.legend&&n.color===e})).length>0)){var i={title:t.legend,color:e,action:function(){r._onLegendClick(t.legend)},hoverAction:function(){r._handleChartMouseLeave(),r._onLegendHover(t.legend)},onMouseOutAction:function(){r._onLegendLeave()}};n.push(i)}})),i.createElement(vr,(0,e.pi)({legends:n,overflowProps:r.props.legendsOverflowProps,enabledWrapLines:r.props.enabledLegendsWrapLines,focusZonePropsInHoverCard:r.props.focusZonePropsForLegendsInHoverCard},r.props.legendProps))},r._onDataPointClick=function(t){t&&t(),r.setState({isCircleClicked:!0})},r._getOpacity=function(t){return r._isMultiStackChart?r._legendHighlighted(t)||r._noLegendHighlighted()?.7:.1:.7},r._getLineOpacity=function(t){if(r._isMultiStackChart){var e=.3;return r.state.isCalloutVisible&&(e=1),r._noLegendHighlighted()||(e=r._legendHighlighted(t)?0:.1),e}return 1},r._updateCircleFillColor=function(t,e,n){var i=e;return r.state.nearestCircleToHighlight!==t&&r.state.activePoint!==n||(r._highlightedCircleId=n,r.state.isCircleClicked||(i=r.props.theme.semanticColors.bodyBackground)),i},r._drawGraph=function(t,n,o,a){var s,l=r._addDefaultColors(r.props.data.lineChartData),c=r.props.data,u=c.pointOptions,d=c.pointLineOptions,h=Qi().x((function(t){return n(t.xVal)})).y0((function(t){return o(t.values[0])})).y1((function(t){return o(t.values[1])})).curve(ao),p=yi().x((function(t){return n(t.xVal)})).y((function(t){return o(t.values[1])})).curve(ao),f=[];r._stackedData.forEach((function(t,a){f.push(i.createElement(i.Fragment,{key:"".concat(a,"-graph-").concat(r._uniqueIdForGraph)},i.createElement("path",(0,e.pi)({id:"".concat(a,"-line-").concat(r._uniqueIdForGraph),d:p(t),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===t.length?i.createElement("circle",{id:"".concat(a,"-graph-").concat(r._uniqueIdForGraph),cx:n(t[0].xVal),cy:o(t[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}):i.createElement("path",(0,e.pi)({id:"".concat(a,"-graph-").concat(r._uniqueIdForGraph),d:h(t),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(t,a){l.length!==a&&(r.props.optimizeLargeData&&1!==t.length?t.forEach((function(t,c){var d=t.xVal instanceof Date?t.xVal.getTime():t.xVal;if(r.state.nearestCircleToHighlight===d){var h="".concat(r._circleId,"_").concat(a*r._stackedData[0].length+c);s=l[a].color,f.push(i.createElement("circle",(0,e.pi)({key:h,id:h,cx:n(t.xVal),cy:o(t.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(i.createElement("g",{key:"".concat(a,"-dots-").concat(r._uniqueIdForGraph),d:h(t),clipPath:"url(#clip)"},t.map((function(t,c){var d="".concat(r._circleId,"_").concat(a*r._stackedData[0].length+c),h=t.xVal instanceof Date?t.xVal.getTime():t.xVal;return s=l[a].color,i.createElement("circle",(0,e.pi)({key:d,id:d,"data-is-focusable":r._legendHighlighted(l[a].legend)||r._noLegendHighlighted(),cx:n(t.xVal),cy:o(t.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(i.createElement("line",(0,e.pi)({id:r._verticalLineId,key:r._verticalLineId,x1:r.state.lineXValue,y1:0,x2:r.state.lineXValue,y2:t,strokeWidth:1,strokeDasharray:5.5,stroke:s,opacity:.5,visibility:r.state.displayOfLine},d)));var m=lo(r.props.styles,{theme:r.props.theme});if(!r.props.showXAxisLablesTooltip)try{document.getElementById(r._tooltipId)&&document.getElementById(r._tooltipId).remove()}catch(t){}if(!r.props.wrapXAxisLables&&r.props.showXAxisLablesTooltip){var v=(0,pi.Ys)(a).call(n);try{document.getElementById(r._tooltipId)&&document.getElementById(r._tooltipId).remove()}catch(t){}var _={tooltipCls:m.tooltip,id:r._tooltipId,xAxis:v};v&&(0,ze.$V)(_)}return f},r._getCircleRadius=function(t,e,n){var i=r.state,o=i.isCircleClicked,a=i.nearestCircleToHighlight,s=i.activePoint;return o&&a===t?1:a===t||s===n?e:0},r._closeCallout=function(){r.setState({isCalloutVisible:!1})},r._legendHighlighted=function(t){return r.state.selectedLegend===t||""===r.state.selectedLegend&&r.state.activeLegend===t},r._noLegendHighlighted=function(){return""===r.state.selectedLegend&&""===r.state.activeLegend},r._addDefaultColors=function(t){return t?t.map((function(t,n){var i,o,a;return a=void 0===t.color?li(n,0,null===(i=r.props.theme)||void 0===i?void 0:i.isInverted):ci(t.color,null===(o=r.props.theme)||void 0===o?void 0:o.isInverted),(0,e.pi)((0,e.pi)({},t),{color:a})})):[]},r._handleFocus=function(t,e,n){var i=r.props.data.lineChartData[t].data[e],o=i.x,a=i.y,s=i.xAxisCalloutData,l=o instanceof Date?o.toLocaleString():o,c=o instanceof Date?o.getTime():o,u=r._calloutPoints.find((function(t){return t.x===c}));u.values=u.values.filter((function(t){return t.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,ue.NF)(r._createDataSet),r.state={selectedLegend:"",activeLegend:"",hoverXValue:"",isCalloutVisible:!1,refSelected:null,YValueHover:[],lineXValue:0,displayOfLine:so.hide,isCircleClicked:!1,nearestCircleToHighlight:null,isShowCalloutPending:!1,activePoint:""},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,e.ZT)(n,t),n.prototype.componentDidUpdate=function(){this.state.isShowCalloutPending&&this.setState({refSelected:"#".concat(this._highlightedCircleId),isCalloutVisible:!0,isShowCalloutPending:!1})},n.prototype.render=function(){var t=this;if(!this._isChartEmpty()){var n=this.props.data,r=n.lineChartData,o=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,ze.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,e.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 i.createElement(Ti,(0,e.pi)({},this.props,{chartTitle:o,points:a,chartType:ze.$X.AreaChart,calloutProps:g,legendBars:p,isCalloutForStack:!0,xAxisType:h?ze.xl.DateAxis:ze.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(e){t._xAxisRectScale=e.xScale;var n=t._xAxisRectScale.ticks(),r=t._xAxisRectScale(n[n.length-1]),o=e.containerHeight-t.margins.top;return i.createElement(i.Fragment,null,i.createElement("g",null,i.createElement("rect",{id:t._rectId,width:r,height:o,fill:"transparent",onMouseMove:t._onRectMouseMove,onMouseOut:t._onRectMouseOut,onMouseOver:t._onRectMouseMove})),i.createElement("g",null,t._chart))}}))}return i.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"})},n.prototype._onLegendClick=function(t){this.state.selectedLegend===t?this.setState({selectedLegend:""}):this.setState({selectedLegend:t})},n.prototype._onLegendHover=function(t){this.setState({activeLegend:t})},n.prototype._onLegendLeave=function(){this.setState({activeLegend:""})},n.prototype._getAriaLabel=function(t,e){var n,r=this.props.data.lineChartData[t],i=r.data[e],o=i.x instanceof Date?i.x.toLocaleString():i.x,a=i.xAxisCalloutData||o,s=r.legend,l=i.yAxisCalloutData||i.y;return(null===(n=i.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(t){return 0===t.data.length})).length)},n}(i.Component),ho=(0,t.z)(uo,(function(t){return{tooltip:(0,e.pi)((0,e.pi)({},t.theme.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:t.theme.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"})}})),po=n(5795),fo=function(t,e){var n=t.color;return{arcRoot:{fill:n},arcRootFocussed:{fill:n,stroke:(null==e?void 0:e.palette.black)||Yt.UK.black,strokeWidth:2},arc:{outline:"none"},arcText:{fill:(null==e?void 0:e.palette.black)||Yt.UK.black,outline:"none"}}},go=function(t){function n(e){var n=t.call(this,e)||this;return n.updateChart=function(t){vo(t)},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,e.ZT)(n,t),n.getDerivedStateFromProps=function(t){return vo(t),null},n.prototype.render=function(){var t,n=this,r=this.props.arc,a=(0,o.y)()((function(t){return fo(t,n.props.theme)}),(0,e.pi)({},this.props));return i.createElement("path",{d:r(this.props.data),className:"".concat(this.state.isArcFocused?a.arcRootFocussed:a.arcRoot),onClick:null===(t=this.props.data)||void 0===t?void 0:t.data.onClick})},n.defaultProps={arc:jr()},n}(i.Component),mo=function(t){function n(e){var n=t.call(this,e)||this;return n._isRTL=(0,a.zg)(),n._arcId=f("piechart_arc"),n}return(0,e.ZT)(n,t),n.prototype.render=function(){var e,n,r=this,a=this.props,s=a.data,l=a.culture,c=jr().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===(e=this.props)||void 0===e?void 0:e.outerRadius)||0,outerRadius:(null===(n=this.props)||void 0===n?void 0:n.outerRadius)||4}),u=c[0],d=c[1],h=(0,o.y)()((function(t){return fo(t,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,ze.Ts)(null==s?void 0:s.data.y,l));return i.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"},t.prototype.render.call(this),i.createElement(Ei,{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,ze.Ts)(null==s?void 0:s.data.y,l)),className:h.arcText},isTooltipVisibleProp:this.state.isArcFocused,shouldReceiveFocus:!1,maxWidth:40,wrapContent:ze.nX}))},n}(go);function vo(t){t.arc.innerRadius(t.innerRadius),t.arc.outerRadius(t.outerRadius)}var _o,yo=function(t){function n(e){var n=t.call(this,e)||this;return n.arcGenerator=function(t,e){return i.createElement(mo,{culture:n.props.culture,key:e,data:t,innerRadius:n.props.innerRadius,outerRadius:n.props.outerRadius,color:"".concat(n.colors(e)),theme:n.props.theme})},n}return(0,e.ZT)(n,t),n.prototype.render=function(){var t=this,e=this.props,n=e.pie,r=e.data,o=e.width,a=e.height,s=e.chartTitle,l=e.theme,c=[];if(r&&!this.props.colors)for(var u=0;u<r.length;u++)c.push(li(u,0,null==l?void 0:l.isInverted));var d=this.props.colors,h=void 0===d?c:d;this.colors=(0,po.Z)().range(h.map((function(t){return ci(t)})));var p=n(r),f="translate(".concat(o/2,", ").concat(a/2,")");return i.createElement(dn,{direction:Re.domOrder},i.createElement("svg",{width:o,height:a,"aria-label":s},i.createElement("g",{className:"pie",transform:f},p.map((function(e,n){return t.arcGenerator(e,n)})))))},n.defaultProps={pie:Ir().padAngle(.01).sort(null).value((function(t){return t.y}))},n}(i.Component),xo=(0,o.y)(),bo=function(t){function n(e){var n=t.call(this,e)||this;return n._emptyChartId=f("_PieChart_empty"),n}return(0,e.ZT)(n,t),n.prototype.render=function(){var t=this.props,e=t.data,n=t.width,r=t.height,o=t.colors,a=t.chartTitle,s=this.props,l=s.theme,c=s.className,u=s.styles,d=s.culture;this._classNames=xo(u,{theme:l,width:n,height:r,className:c});var h=Math.min(n-80,r-32)/2;return this._isChartEmpty()?i.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):i.createElement("div",{className:this._classNames.root},this.props.chartTitle&&i.createElement("p",{className:this._classNames.chartTitle},this.props.chartTitle),i.createElement(yo,{culture:d,width:n,height:r,outerRadius:h,innerRadius:1,data:e,colors:o,chartTitle:a,theme:l}))},n.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.length>0&&this.props.data.filter((function(t){return t.y>0})).length>0)},n.defaultProps={data:[],width:600,height:350},n}(i.Component),Co=(0,t.z)(bo,(function(t){var n=t.className,r=t.theme,i=t.width+30,o=t.height+10;return{root:[r.fonts.medium,"ms-PieChart",n,{width:i+40}],chart:[{padding:20,width:i,height:o,boxSizing:"content-box"}],chartTitle:[(0,e.pi)({textAlign:"center"},r.fonts.mediumPlus)]}})),Eo=(0,o.y)(),So=function(t){function n(e){var n=t.call(this,e)||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(t){return n.state.selectedLegend===t||""===n.state.selectedLegend&&n.state.activeLegend===t},n._noLegendHighlighted=function(){return""===n.state.selectedLegend&&""===n.state.activeLegend},n._getAriaLabel=function(t){var e,n=t.xAxisCalloutData||t.legend,r=t.yAxisCalloutData||t.data||0;return(null===(e=t.callOutAccessibilityData)||void 0===e?void 0:e.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=i.createRef(),n}return(0,e.ZT)(n,t),n.prototype.componentDidMount=function(){var t,e=(null===(t=this.barChartSvgRef.current)||void 0===t?void 0:t.getBoundingClientRect().width)||0;if(e){var n=3/e*100;this.setState({barSpacingInPercent:n})}},n.prototype.render=function(){if(!this._isChartEmpty()){this._adjustProps();var t=this.props,n=t.data,r=t.benchmarkData,o=t.targetData,a=t.hideNumberDisplay,s=t.ignoreFixStyle,l=t.culture,c=this.props.theme.palette,u=s||n.chartData.length>2?this.props.barHeight:12;r&&(r.color=r.color||c.neutralTertiary),o&&(o.color=o.color||c.neutralSecondary);var d=this._createBarsAndLegends(n,u,c,r,o),h=!1===a&&!s&&2===n.chartData.length,p=!1===a&&!s&&1===n.chartData.length,f=n.chartData.reduce((function(t,e){return t+(e.data?e.data:0)}),0),g=0;r&&f&&(g=r.data/f*100);var m=0;o&&f&&(m=o.data/f*100);var v=!1===this.props.hideLegend&&(s||n.chartData.length>2);this._classNames=Eo(this.props.styles,{legendColor:this.state.color,theme:this.props.theme,benchmarkColor:r?r.color:"",benchmarkRatio:g,targetColor:o?o.color:"",targetRatio:m,showTriangle:!(!r&&!o)});var y=function(){return(0,ze.Ts)(n.chartData[0].data?n.chartData[0].data:0,l)};return i.createElement("div",{className:this._classNames.root,onMouseLeave:this._handleChartMouseLeave},i.createElement(dn,{direction:Re.horizontal},i.createElement("div",{className:this._classNames.chartTitle},n.chartTitle&&i.createElement(En,{className:this._classNames.chartTitleLeft,content:n.chartTitle,accessibilityData:n.chartTitleAccessibilityData}),h&&i.createElement("div",(0,e.pi)({},(0,ze.ey)(n.chartDataAccessibilityData,"text",!1)),i.createElement("span",{className:this._classNames.ratioNumerator},y()),!this.props.hideDenominator&&i.createElement("span",{className:this._classNames.ratioDenominator}," / "+(0,ze.Ts)(f,l))),p&&i.createElement("div",(0,e.pi)({className:this._classNames.ratioNumerator},(0,ze.ey)(n.chartDataAccessibilityData,"text",!1)),y())),(r||o)&&i.createElement("div",{className:this._classNames.benchmarkContainer},r&&i.createElement("div",{className:this._classNames.benchmark,role:"text"}),o&&i.createElement("div",{className:this._classNames.target,role:"text"}))),i.createElement(dn,{direction:Re.horizontal},i.createElement("div",null,i.createElement("svg",{ref:this.barChartSvgRef,className:this._classNames.chart,"aria-label":null==n?void 0:n.chartTitle},i.createElement("g",null,d[0]),i.createElement(He,(0,e.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,ze.ey)(this.state.callOutAccessibilityData,"text",!1)),i.createElement(i.Fragment,null,this.props.onRenderCalloutPerDataPoint?this.props.onRenderCalloutPerDataPoint(this.state.dataPointCalloutProps):i.createElement(We.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&&i.createElement("div",{className:this._classNames.legendContainer},d[1]))}return i.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"})},n.prototype._adjustProps=function(){this._classNames=Eo(this.props.styles,{legendColor:this.state.color,theme:this.props.theme,width:this.props.width,barHeight:this.props.barHeight,className:this.props.className})},n.prototype._createBarsAndLegends=function(t,n,r,o,a){var s,l=this,c=(null===(s=t.chartData)||void 0===s?void 0:s.reduce((function(t,e){return t+((e.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=t.chartData.reduce((function(t,e){return t+(e.data?e.data:0)}),0),m=0,v=0,_=0;t.chartData.map((function(t,e){var n=t.data?t.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=t.chartData.map((function(t,e){var r=t.color?t.color:d[Math.floor(4*Math.random()+1)],o=t.data?t.data:0,a={title:t.legend,color:r,action:g>0?function(){l._onClick(t.legend)}:void 0,hoverAction:g>0?function(){l._handleChartMouseLeave(),l._onHover(t.legend)}:void 0,onMouseOutAction:g>0?function(){l._onLeave()}:void 0};t.placeHolder||h.push(a),e>0&&(m+=v),(v=o/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(t.legend)&&!l._noLegendHighlighted());return l._classNames=Eo(s,{theme:l.props.theme,shouldHighlight:c,href:l.props.href}),i.createElement("g",{key:e,className:l._classNames.opacityChangeOnHover,ref:function(t){l._refCallback(t,a.title)},"data-is-focusable":!l.props.hideTooltip,onFocus:l._onBarFocus.bind(l,o,r,t),onBlur:l._onBarLeave,"aria-label":l._getAriaLabel(t),role:"img",onMouseOver:l._onBarHover.bind(l,o,r,t),onMouseMove:l._onBarHover.bind(l,o,r,t),onMouseLeave:l._onBarLeave,pointerEvents:"all",onClick:l.props.href?l._redirectToUrl.bind(l,l.props.href):t.onClick},i.createElement("rect",{key:e,id:f("_SBC_bar"),x:"".concat(l._isRTL?100-p[e]-v-l.state.barSpacingInPercent*e:p[e]+l.state.barSpacingInPercent*e,"%"),y:0,width:v+"%",height:n,fill:r}))}));this._addLegend(h,o),this._addLegend(h,a);var b=i.createElement(vr,(0,e.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(t,e,n){var r=this;this._refArray.forEach((function(i){i.index===n.legend&&r.setState({refSelected:i.refElement,isCalloutVisible:""===r.state.selectedLegend||r.state.selectedLegend===n.legend,calloutLegend:n.legend,dataForHoverCard:t,color:e,xCalloutValue:n.xAxisCalloutData,yCalloutValue:n.yAxisCalloutData,dataPointCalloutProps:n,callOutAccessibilityData:n.callOutAccessibilityData})}))},n.prototype._addLegend=function(t,e){if(e){var n={title:e.legend,color:e.color,shape:"triangle"};t.push(n)}},n.prototype._generateEmptyBar=function(t,e){return i.createElement("g",{key:0,className:this._classNames.opacityChangeOnHover},i.createElement("rect",{key:0,id:f("_SBC_empty_bar_"),x:"0%",y:0,width:"100%",height:t,fill:e}))},n.prototype._refCallback=function(t,e){this._refArray.push({index:e,refElement:t})},n.prototype._onClick=function(t){this.state.selectedLegend===t?this.setState({selectedLegend:""}):this.setState({selectedLegend:t})},n.prototype._onHover=function(t){this.setState({activeLegend:t})},n.prototype._onLeave=function(){this.setState({activeLegend:""})},n.prototype._onBarHover=function(t,e,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:t,color:e,xCalloutValue:n.xAxisCalloutData,yCalloutValue:n.yAxisCalloutData,dataPointCalloutProps:n,callOutAccessibilityData:n.callOutAccessibilityData}))},n.prototype._onBarLeave=function(){},n.prototype._redirectToUrl=function(t){t&&(window.location.href=t)},n.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.chartData&&this.props.data.chartData.length>0)},n.defaultProps={barHeight:12,hideNumberDisplay:!1,hideLegend:!1,ignoreFixStyle:!1},n}(i.Component),Ao=(0,t.z)(So,(function(t){var n,r,i=t.className,o=t.width,a=t.barHeight,s=t.shouldHighlight,l=t.theme,c=t.href,u=t.benchmarkColor,d=t.benchmarkRatio,h=t.targetColor,p=t.targetRatio,f=t.showTriangle;return{root:[l.fonts.medium,"ms-StackedBarChart",{width:o||"100%",display:"flex",flexDirection:"column"},i],chart:{width:"100%",height:a||12,display:"block",marginBottom:f?"16px":"10px",overflow:"visible"},chartTitle:(0,e.pi)((0,e.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:Yt.TS.medium,fontWeight:Yt.lq.semibold,color:l.palette.neutralPrimary},ratioDenominator:{fontSize:Yt.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[Yt.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[Yt.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(t){t.PartToWhole="part-to-whole",t.AbsoluteScale="absolute-scale"}(_o||(_o={}));var Lo,ko=(0,o.y)(),To=function(t){function n(n){var r=t.call(this,n)||this;return r._isRTL=(0,a.zg)(),r._adjustProps=function(){var t=r.props,e=t.theme,n=t.className,i=t.styles,o=t.width,a=t.barHeight;r._classNames=ko(i,{legendColor:r.state.color,theme:e,width:o,className:n,barHeight:a})},r._getLegendData=function(t,n,o){var a=[o.blueLight,o.blue,o.blueMid,o.red,o.black],s=[];return t.forEach((function(t,e){var i=t.chartData.filter((function(t){return!t.placeHolder}));i.length<3?void 0!==n[e]&&n[e]&&i.forEach((function(t){var e=t.color?t.color:a[Math.floor(4*Math.random()+1)];if(!(s.filter((function(n){return n.title===t.legend&&n.color===e})).length>0)){var n={title:t.legend,color:e,action:function(){r._onClick(t.legend)},hoverAction:function(){r._handleChartMouseLeave(),r._onHover(t.legend)},onMouseOutAction:function(){r._onLeave()}};s.push(n)}})):i.forEach((function(t){var e=t.color?t.color:a[Math.floor(4*Math.random()+1)];if(!(s.filter((function(n){return n.title===t.legend&&n.color===e})).length>0)){var n={title:t.legend,color:e,action:function(){r._onClick(t.legend)},hoverAction:function(){r._handleChartMouseLeave(),r._onHover(t.legend)},onMouseOutAction:function(){r._onLeave()}};s.push(n)}}))})),i.createElement(vr,(0,e.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(t){return r.state.selectedLegend===t||""===r.state.selectedLegend&&r.state.activeLegend===t},r._noLegendHighlighted=function(){return""===r.state.selectedLegend&&""===r.state.activeLegend},r._getAriaLabel=function(t){var e,n=t.xAxisCalloutData||t.legend,r=t.yAxisCalloutData||t.data||0;return(null===(e=t.callOutAccessibilityData)||void 0===e?void 0:e.ariaLabel)||(n?"".concat(n,", "):"")+"".concat(r,".")},r._computeLongestBarTotalValue=function(){var t=0;return r.props.data.forEach((function(e){var n=e.chartData.reduce((function(t,e){return t+(e.data?e.data:0)}),0);t=Math.max(t,n)})),t},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=i.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,e.ZT)(n,t),n.prototype.componentDidMount=function(){var t,e=(null===(t=this.barChartSvgRef.current)||void 0===t?void 0:t.getBoundingClientRect().width)||0;if(e){var n=3/e*100;this.setState({barSpacingInPercent:n})}},n.prototype.render=function(){var t=this;if(!this._isChartEmpty()){var n=this.props,r=n.data,o=n.theme,a=n.culture;this._adjustProps();var s=o.palette,l=this._getLegendData(r,this.props.hideRatio,s),c=this.state.isCalloutVisible;this._classNames=ko(this.props.styles,{legendColor:this.state.color,theme:o,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(e,n){var r=t._createBarsAndLegends(e,t.props.barHeight,s,t.props.hideRatio[n],t.props.hideDenominator[n],t.props.href,n);return i.createElement("div",{key:n,id:"_MSBC_bar-".concat(n)},r)}));return i.createElement("div",{className:this._classNames.root,onMouseLeave:this._handleChartMouseLeave},h,!this.props.hideLegend&&i.createElement("div",{className:this._classNames.legendContainer},l),i.createElement(He,(0,e.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,ze.ey)(this.state.callOutAccessibilityData,"text",!1)),i.createElement(i.Fragment,null,this.props.onRenderCalloutPerDataPoint?this.props.onRenderCalloutPerDataPoint(this.state.dataPointCalloutProps):i.createElement(We.ChartHoverCard,{Legend:u,YValue:d,color:this.state.color,culture:a}))))}return i.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"})},n.prototype._createBarsAndLegends=function(t,n,r,o,a,s,l){var c,u,d=this,h=(null===(c=t.chartData)||void 0===c?void 0:c.reduce((function(t,e){return t+((e.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=t.chartData.reduce((function(t,e){return t+(e.data?e.data:0)}),0),_=this.props.variant===_o.AbsoluteScale?this._longestBarTotalValue:v,y=0;if(t.chartData.map((function(t,e){var n=(t.data?t.data:0)/_*100||0;return n<1&&0!==n?n=1:n>99&&100!==n&&(n=99),y+=n})),this.props.variant===_o.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=t.chartData.map((function(t,e){var o=t.color?t.color:t.placeHolder?r.neutralLight:g[Math.floor(4*Math.random()+1)],a=t.data?t.data:0;e>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(t.legend)&&!d._noLegendHighlighted());return d._classNames=ko(c,{theme:d.props.theme,shouldHighlight:u,href:s,variant:d.props.variant,hideLabels:d.props.hideLabels}),i.createElement("g",{key:e,className:t.placeHolder?d._classNames.placeHolderOnHover:d._classNames.opacityChangeOnHover,ref:function(e){d._refCallback(e,t.legend)},"data-is-focusable":!d.props.hideTooltip,onFocus:d._onBarFocus.bind(d,a,o,t),onBlur:d._onBarLeave,role:"img","aria-label":d._getAriaLabel(t),onMouseOver:t.placeHolder?void 0:d._onBarHover.bind(d,a,o,t),onMouseMove:t.placeHolder?void 0:d._onBarHover.bind(d,a,o,t),onMouseLeave:t.placeHolder?void 0:d._onBarLeave,onClick:s?t.placeHolder?void 0:d._redirectToUrl.bind(d,s):t.onClick},i.createElement("rect",{key:e,id:"".concat(d._barId,"-").concat(l,"-").concat(e),x:"".concat(d._isRTL?100-m[e]-E-d.state.barSpacingInPercent*e:m[e]+d.state.barSpacingInPercent*e,"%"),y:0,width:E+"%",height:n,fill:o}))}));if(this.props.variant!==_o.AbsoluteScale||this.props.hideLabels)0===t.chartData.length&&S.push(i.createElement("g",{key:0,className:this._classNames.noData,onClick:this._redirectToUrl.bind(this,s)},i.createElement("rect",{key:0,id:this._barIdPlaceholderPartToWhole,x:"0%",y:0,width:"100%",height:n,fill:r.neutralLight}))),0===v&&S.push(i.createElement("g",{key:"empty",className:this._classNames.noData,onClick:this._redirectToUrl.bind(this,s)},i.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=t.chartData)||void 0===u||u.forEach((function(t){d._legendHighlighted(t.legend)&&(A=!0,L+=t.data?t.data:0)})),A&&S.push(i.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,ze.cE)(L)))}var k=void 0!==o&&o,T=this.props.variant!==_o.AbsoluteScale&&!k&&2===t.chartData.length,w=this.props.variant!==_o.AbsoluteScale&&!k&&1===t.chartData.length,D=function(){return(0,ze.Ts)(t.chartData[0].data?t.chartData[0].data:0,f)};return i.createElement("div",{className:this._classNames.singleChartRoot},i.createElement(dn,{direction:Re.horizontal},i.createElement("div",{className:this._classNames.chartTitle},t.chartTitle&&i.createElement(En,{className:this._classNames.chartTitleLeft,content:t.chartTitle,accessibilityData:t.chartTitleAccessibilityData}),T&&i.createElement("div",(0,e.pi)({},(0,ze.ey)(t.chartDataAccessibilityData,"text",!1)),i.createElement("span",{className:this._classNames.ratioNumerator},D()),!a&&i.createElement("span",{className:this._classNames.ratioDenominator}," / "+(0,ze.Ts)(v,f))),w&&i.createElement("div",(0,e.pi)({className:this._classNames.ratioNumerator},(0,ze.ey)(t.chartDataAccessibilityData,"text",!1)),D()))),i.createElement(dn,{direction:Re.horizontal},i.createElement("div",{className:this._classNames.chartWrapper},i.createElement("svg",{ref:this.barChartSvgRef,className:this._classNames.chart,"aria-label":null==t?void 0:t.chartTitle},S))))},n.prototype._onBarFocus=function(t,e,n){var r=this;this.state.refArray.forEach((function(i){i.legendText===n.legend&&r.setState({refSelected:i.refElement,isCalloutVisible:""===r.state.selectedLegend||r.state.selectedLegend===n.legend,calloutLegend:n.legend,dataForHoverCard:t,color:e,xCalloutValue:n.xAxisCalloutData,yCalloutValue:n.yAxisCalloutData,dataPointCalloutProps:n,callOutAccessibilityData:n.callOutAccessibilityData})}))},n.prototype._refCallback=function(t,e){this.state.refArray.push({legendText:e,refElement:t})},n.prototype._onHover=function(t){this.setState({activeLegend:t})},n.prototype._onClick=function(t){this.state.selectedLegend===t?this.setState({selectedLegend:""}):this.setState({selectedLegend:t})},n.prototype._onLeave=function(){this.setState({activeLegend:""})},n.prototype._onBarHover=function(t,e,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:t,color:e,xCalloutValue:n.xAxisCalloutData,yCalloutValue:n.yAxisCalloutData,dataPointCalloutProps:n,callOutAccessibilityData:n.callOutAccessibilityData}))},n.prototype._onBarLeave=function(){},n.prototype._redirectToUrl=function(t){t&&(window.location.href=t)},n.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.length>0&&0===this.props.data.filter((function(t){return t.chartData&&0===t.chartData.length&&(!t.chartTitle||""===t.chartTitle)})).length)},n.defaultProps={barHeight:12,hideRatio:[],hideDenominator:[]},n}(i.Component),wo=(0,t.z)(To,(function(t){var n=t.className,r=t.width,i=t.barHeight,o=t.shouldHighlight,a=t.theme,s=t.href,l=t.variant,c=t.hideLabels;return{root:[a.fonts.medium,"ms-StackedBarChart",{display:"flex",flexDirection:"column",width:r||"100%"},n],items:{marginBottom:"11px"},chart:{width:"100%",height:i||12,display:"block",overflow:"visible"},chartTitle:(0,e.pi)((0,e.pi)({},a.fonts.small),{display:"flex",justifyContent:"space-between"}),chartTitleLeft:{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",display:"block",color:a.palette.neutralPrimary,marginBottom:l===_o.AbsoluteScale?"4px":"5px"},singleChartRoot:{width:r||"100%",display:"flex",flexDirection:"column",marginBottom:l===_o.AbsoluteScale?"16px":"10px"},opacityChangeOnHover:{opacity:o?"":"0.1",cursor:s?"pointer":"default",selectors:{"&:focus":{stroke:a.palette.black,strokeWidth:"2px"}}},ratioNumerator:{fontSize:Yt.TS.medium,fontWeight:Yt.lq.semibold,color:a.palette.neutralPrimary},ratioDenominator:{fontSize:Yt.TS.medium,color:a.palette.neutralPrimary},placeHolderOnHover:{opacity:o?"":"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:Yt.TS.small,fontWeight:Yt.lq.semibold,fill:a.palette.neutralPrimary},chartWrapper:{paddingRight:l!==_o.AbsoluteScale||c?0:40}}})),Do=n(5561),Mo=n(8815),Po=n(8639),Fo=n(6775);!function(t){t.show="visibility",t.hide="hidden"}(Lo||(Lo={}));var Io,No=(0,o.y)(),Vo=function(t){function n(n){var r=t.call(this,n)||this;return r._isRtl=(0,a.zg)(),r._createLine=function(t,e,n,o,a){var s;void 0===n&&(n=0),void 0===o&&(o=0);var l=r._xAxisType===ze.xl.StringAxis,c=r._getScales(n,o).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(t,e){var n;t.lineData&&t.lineData.y&&_.push({x:t.x,y:t.lineData.y,useSecondaryYScale:null!==(n=t.lineData.useSecondaryYScale)&&void 0!==n&&n,point:t,index:e})}));var x=yi().x((function(e){return l?c(e.x)+.5*c.bandwidth():t(e.x)})).y((function(t){return t.useSecondaryYScale&&a?a(t.y):e(t.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(i.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.semanticColors.bodyBackground})),y.push(i.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,o){var s;return i.createElement("circle",{key:o,id:f("_VBC_point_"),cx:l?c(n.x)+.5*c.bandwidth():t(n.x),cy:n.useSecondaryYScale&&a?a(n.y):e(n.y),onMouseOver:r._onBarHover.bind(r,n.point,u(n.y)),onMouseOut:r._onBarLeave,r:8,stroke:m,fill:r.props.theme.semanticColors.bodyBackground,strokeWidth:3,visibility:r.state.activeXdataPoint===n.x?Lo.show:Lo.hide,onClick:null===(s=n.point.lineData)||void 0===s?void 0:s.onClick})}));return i.createElement(i.Fragment,null,y,E)},r._checkForLine=function(){return r.props.data.some((function(t){var e;return void 0!==(null===(e=null==t?void 0:t.lineData)||void 0===e?void 0:e.y)}))},r._getMargins=function(t){r.margins=t},r._renderContentForBothLineAndBars=function(t){var n=r._getCalloutContentForLineAndBar(t),o=n.YValueHover,a=n.hoverXValue,s=o.map((function(t,n){return i.createElement(We.ChartHoverCard,(0,e.pi)({key:n,Legend:t.legend},0===n&&{XValue:"".concat(a||t.data)},{color:t.color,YValue:t.data||t.y,culture:r.props.culture}))}));return i.createElement(i.Fragment,null,s)},r._renderContentForOnlyBars=function(t){var e=r.props.useSingleColor,n=void 0!==e&&e;return i.createElement(i.Fragment,null,i.createElement(We.ChartHoverCard,{XValue:t.xAxisCalloutData||t.x,Legend:t.legend,YValue:t.yAxisCalloutData||t.y,color:!n&&t.color?t.color:r._createColors()(t.y),culture:r.props.culture}))},r._renderCallout=function(t){return t?r._isHavingLine?r._renderContentForBothLineAndBars(t):r._renderContentForOnlyBars(t):null},r._getCustomizedCallout=function(){return r.props.onRenderCalloutPerDataPoint?r.props.onRenderCalloutPerDataPoint(r.state.dataPointCalloutProps,r._renderCallout):null},r._getGraphData=function(t,e,n,i,o){return r._bars=r._xAxisType===ze.xl.NumericAxis?r._createNumericBars(n,i,o):r._xAxisType===ze.xl.DateAxis?r._createDateBars(n,i,o):r._createStringBars(n,i,o)},r._refCallback=function(t,e){r._refArray.push({index:e,refElement:t})},r._getCalloutContentForLineAndBar=function(t){var e,n,i,o,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(e){return e.x===t.x}));r._isHavingLine&&void 0!==(null===(e=m[0].lineData)||void 0===e?void 0:e.y)&&a.push({legend:p,color:g,y:null===(n=m[0].lineData)||void 0===n?void 0:n.y,data:null===(i=m[0].lineData)||void 0===i?void 0:i.yAxisCalloutData,yAxisCalloutData:null===(o=m[0].lineData)||void 0===o?void 0:o.yAxisCalloutData}),a.push({legend:m[0].legend,y:m[0].y,color: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=t.x instanceof Date?t.x.toLocaleString():t.x.toString();return{YValueHover:a,hoverXValue:t.xAxisCalloutData||v}},r._onBarLeave=function(){},r._handleChartMouseLeave=function(){r._calloutAnchorPoint=null,r.setState({isCalloutVisible:!1,activeXdataPoint:null,YValueHover:[],hoverXValue:""})},r._onBarFocus=function(t,e,n){var i=r._getCalloutContentForLineAndBar(t),o=i.YValueHover,a=i.hoverXValue;r._refArray.forEach((function(i,s){i.index===t.legend&&e===s&&r.setState({refSelected:i.refElement,isCalloutVisible:""===r.state.selectedLegend||r.state.selectedLegend===t.legend,calloutLegend:t.legend,dataForHoverCard:t.y,color:t.color||n,xCalloutValue:t.xAxisCalloutData||(t.x instanceof Date?t.x.toLocaleDateString():t.x.toString()),yCalloutValue:t.yAxisCalloutData,dataPointCalloutProps:t,activeXdataPoint:t.x,YValueHover:o,hoverXValue:a,callOutAccessibilityData:t.callOutAccessibilityData})}))},r._getScales=function(t,e){var n,i=(0,Mo.Z)().domain([0,r._yMax]).range([0,t-r.margins.bottom-r.margins.top]);if(r._xAxisType===ze.xl.NumericAxis){var o=(0,ji.Z)(r._points,(function(t){return t.x})),a=(0,Do.Z)(r._points,(function(t){return t.x}));n=(0,Mo.Z)().domain(r._isRtl?[o,a]:[a,o]).nice().range([r.margins.left+r._domainMargin,e-r.margins.right-r._barWidth-r._domainMargin])}else if(r._xAxisType===ze.xl.DateAxis){var s=(0,Do.Z)(r._points,(function(t){return t.x})),l=(0,ji.Z)(r._points,(function(t){return t.x}));n=(0,Po.Z)().domain([s,l]).range([r.margins.left+r._domainMargin+r._barWidth/2,e-r.margins.right-r._barWidth/2-r._domainMargin])}else n=(0,Fo.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/3);return{xBarScale:n,yBarScale:i}},r._closeCallout=function(){r.setState({isCalloutVisible:!1})},r._getLegendData=function(t,n){var o=r.props,a=o.theme,s=o.useSingleColor,l=r.props,c=l.lineLegendText,u=l.lineLegendColor,d=void 0===u?a.palette.yellow:u,h=[];if(t.forEach((function(t,e){var n=s?r._createColors()(1):t.color,i={title:t.legend,color:n,action:function(){r._onLegendClick(t.legend)},hoverAction:function(){r._handleChartMouseLeave(),r._onLegendHover(t.legend)},onMouseOutAction:function(){r._onLegendLeave()}};h.push(i)})),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 i.createElement(vr,(0,e.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(t){if(t&&t.yAxisDomainValues.length){var e=t.yAxisDomainValues;r._yMax=Math.max(e[e.length-1],r.props.yMaxValue||0)}},r._legendHighlighted=function(t){return r.state.selectedLegend===t||""===r.state.selectedLegend&&r.state.activeLegend===t},r._noLegendHighlighted=function(){return""===r.state.selectedLegend&&""===r.state.activeLegend},r._getAriaLabel=function(t){var e,n,i,o=t.xAxisCalloutData?t.xAxisCalloutData:t.x instanceof Date?t.x.toLocaleString():t.x,a=t.legend,s=t.yAxisCalloutData||t.y,l=r.props.lineLegendText||"Line",c=(null===(e=t.lineData)||void 0===e?void 0:e.yAxisCalloutData)||(null===(n=t.lineData)||void 0===n?void 0:n.y);return(null===(i=t.callOutAccessibilityData)||void 0===i?void 0:i.ariaLabel)||"".concat(o,". ")+(a?"".concat(a,", "):"")+"".concat(s,".")+(void 0!==c?" ".concat(l,", ").concat(c,"."):"")},r._getDomainMargins=function(t){if(r._xAxisType===ze.xl.StringAxis){var n=t-(r.margins.left+8)-(r.margins.right+8),i=Math.min(r.props.barWidth||16,24),o=(3*r._xAxisLabels.length-2)*i;r._domainMargin=8,n>=o?r._domainMargin+=(n-o)/2:i=n/(3*r._xAxisLabels.length-2),r._barWidth=i}return(0,e.pi)((0,e.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,ze.SY)(r.props.data[0].x,!0):ze.xl.StringAxis,r._domainMargin=8,r._emptyChartId=f("_VBC_empty"),r}return(0,e.ZT)(n,t),n.prototype.render=function(){var t=this;this._adjustProps(),this._xAxisLabels=this._points.map((function(t){return t.x})),this._yMax=Math.max((0,ji.Z)(this._points,(function(t){return t.y})),this.props.yMaxValue||0);var n=this._getLegendData(this._points,this.props.theme.palette);this._classNames=No(this.props.styles,{theme:this.props.theme,legendColor:this.state.color});var r=(0,e.pi)((0,e.pi)((0,e.pi)((0,e.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,ze.ey)(this.state.callOutAccessibilityData)),o={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return this._isChartEmpty()?i.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):i.createElement(Ti,(0,e.pi)({},this.props,{points:this._points,chartType:ze.$X.VerticalBarChart,xAxisType:this._xAxisType,calloutProps:r,tickParams:o},this._isHavingLine&&{isCalloutForStack:!0},{legendBars:n,datasetForXAxisDomain:this._xAxisLabels,barwidth:this._barWidth,focusZoneDirection:Re.horizontal,customizedCallout:this._getCustomizedCallout(),getmargins:this._getMargins,getGraphData:this._getGraphData,getAxisData:this._getAxisData,onChartMouseLeave:this._handleChartMouseLeave,getDomainMargins:this._getDomainMargins},this._xAxisType!==ze.xl.NumericAxis&&{xAxisInnerPadding:2/3,xAxisOuterPadding:0},{children:function(e){return i.createElement(i.Fragment,null,i.createElement("g",null,t._bars),t._isHavingLine&&i.createElement("g",null,t._createLine(e.xScale,e.yScale,e.containerHeight,e.containerWidth,e.yScaleSecondary)))}}))},n.prototype._adjustProps=function(){this._points=this.props.data||[],this._barWidth=this.props.barWidth||16;var t=this.props.theme.palette;this._colors=this.props.colors||[t.blueLight,t.blue,t.blueMid,t.blueDark],this._isHavingLine=this._checkForLine()},n.prototype._createColors=function(){var t=this,e=this._colors.length<=1?1:1/(this._colors.length-1),n=this.props.useSingleColor;if(void 0!==n&&n)return function(e){var n=t.props,r=n.theme,i=n.colors;return i&&i.length>0?i[0]:r.palette.blueLight};for(var r=[],i=0;i<this._colors.length;i++)r.push(e*i*this._yMax);return(0,Mo.Z)().domain(r).range(this._colors)},n.prototype._onBarHover=function(t,e,n){n.persist();var r=this._getCalloutContentForLineAndBar(t),i=r.YValueHover,o=r.hoverXValue;this._calloutAnchorPoint!==t&&(this._calloutAnchorPoint=t,this.setState({refSelected:n,isCalloutVisible:""===this.state.selectedLegend||this.state.selectedLegend===t.legend,dataForHoverCard:t.y,calloutLegend:t.legend,color:t.color||e,xCalloutValue:t.xAxisCalloutData||(t.x instanceof Date?t.x.toLocaleDateString():t.x.toString()),yCalloutValue:t.yAxisCalloutData,dataPointCalloutProps:t,activeXdataPoint:t.x,YValueHover:i,hoverXValue:o,callOutAccessibilityData:t.callOutAccessibilityData}))},n.prototype._createNumericBars=function(t,e,n){var r=this,o=this.props.useSingleColor,a=void 0!==o&&o,s=this._getScales(t,e),l=s.xBarScale,c=s.yBarScale,u=this._createColors(),d=this._points.map((function(e,n){var o=!(!r._legendHighlighted(e.legend)&&!r._noLegendHighlighted());r._classNames=No(r.props.styles,{theme:r.props.theme,legendColor:r.state.color,shouldHighlight:o});var s,d=Math.max(c(e.y),0);if(d<=0)return i.createElement(i.Fragment,{key:e.x}," ");s=d<=Math.ceil(c(r._yMax)/100)?Math.ceil(c(r._yMax)/100):d;var h=l(e.x),p=t-r.margins.bottom-s;return i.createElement("g",{key:e.x},i.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(t){r._refCallback(t,e.legend)},onClick:e.onClick,onMouseOver:r._onBarHover.bind(r,e,u(e.y)),"aria-label":r._getAriaLabel(e),role:"img",onMouseLeave:r._onBarLeave,onFocus:r._onBarFocus.bind(r,e,n,u(e.y)),onBlur:r._onBarLeave,fill:e.color&&!a?e.color:u(e.y)}),r._renderBarLabel(h,p,e.y,e.legend))}));if(!this.props.showXAxisLablesTooltip)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}if(!this.props.wrapXAxisLables&&this.props.showXAxisLablesTooltip){var h=(0,pi.Ys)(n).call(l);try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}var p={tooltipCls:this._classNames.tooltip,id:this._tooltipId,xAxis:h};h&&(0,ze.$V)(p)}return d},n.prototype._createStringBars=function(t,e,n){var r=this,o=this._getScales(t,e),a=o.xBarScale,s=o.yBarScale,l=this._createColors(),c=this._points.map((function(e,n){var o,c=Math.max(s(e.y),0);if(c<=0)return i.createElement(i.Fragment,{key:e.x instanceof Date?e.x.getTime():e.x}," ");o=c<=Math.ceil(s(r._yMax)/100)?Math.ceil(s(r._yMax)/100):c;var u=a(e.x),d=t-r.margins.bottom-o;return i.createElement("g",{key:e.x instanceof Date?e.x.getTime():e.x,transform:"translate(".concat(.5*(a.bandwidth()-r._barWidth),", 0)")},i.createElement("rect",{id:f("_VBC_bar_"),x:u,y:d,width:r._barWidth,height:o,"aria-label":r._getAriaLabel(e),role:"img",ref:function(t){r._refCallback(t,e.legend)},onClick:e.onClick,onMouseOver:r._onBarHover.bind(r,e,l(e.y)),onMouseLeave:r._onBarLeave,onBlur:r._onBarLeave,"data-is-focusable":!r.props.hideTooltip,onFocus:r._onBarFocus.bind(r,e,n,l(e.y)),fill:e.color?e.color:l(e.y)}),r._renderBarLabel(u,d,e.y,e.legend))}));if(!this.props.showXAxisLablesTooltip)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}if(!this.props.wrapXAxisLables&&this.props.showXAxisLablesTooltip){var u=(0,pi.Ys)(n).call(a);try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}var d={tooltipCls:this._classNames.tooltip,id:this._tooltipId,xAxis:u,showTooltip:this.props.showXAxisLablesTooltip};u&&(0,ze.$V)(d)}return c},n.prototype._createDateBars=function(t,e,n){var r=this,o=this.props.useSingleColor,a=void 0!==o&&o,s=this._getScales(t,e),l=s.xBarScale,c=s.yBarScale,u=this._createColors(),d=this._points.map((function(e,n){var o=!(!r._legendHighlighted(e.legend)&&!r._noLegendHighlighted());r._classNames=No(r.props.styles,{theme:r.props.theme,legendColor:r.state.color,shouldHighlight:o});var s,d=Math.max(c(e.y),0);if(d<=0)return i.createElement(i.Fragment,{key:e.x instanceof Date?e.x.getTime():e.x}," ");s=d<=Math.ceil(c(r._yMax)/100)?Math.ceil(c(r._yMax)/100):d;var h=l(e.x)-r._barWidth/2,p=t-r.margins.bottom-s;return i.createElement("g",{key:e.x instanceof Date?e.x.getTime():e.x},i.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(t){r._refCallback(t,e.legend)},onClick:e.onClick,onMouseOver:r._onBarHover.bind(r,e,u(e.y)),"aria-label":r._getAriaLabel(e),role:"img",onMouseLeave:r._onBarLeave,onFocus:r._onBarFocus.bind(r,e,n,u(e.y)),onBlur:r._onBarLeave,fill:e.color&&!a?e.color:u(e.y)}),r._renderBarLabel(h,p,e.y,e.legend))}));if(!this.props.showXAxisLablesTooltip)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}if(!this.props.wrapXAxisLables&&this.props.showXAxisLablesTooltip){var h=(0,pi.Ys)(n).call(l);try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}var p={tooltipCls:this._classNames.tooltip,id:this._tooltipId,xAxis:h};h&&(0,ze.$V)(p)}return d},n.prototype._onLegendClick=function(t){this.state.selectedLegend===t?this.setState({selectedLegend:""}):this.setState({selectedLegend:t})},n.prototype._onLegendHover=function(t){this.setState({activeLegend:t})},n.prototype._onLegendLeave=function(){this.setState({activeLegend:""})},n.prototype._renderBarLabel=function(t,e,n,r){return this.props.hideLabels||this._barWidth<16||!this._legendHighlighted(r)&&!this._noLegendHighlighted()?null:i.createElement("text",{x:t+this._barWidth/2,y:e-6,textAnchor:"middle",className:this._classNames.barLabel,"aria-hidden":!0},(0,ze.cE)(n))},n.prototype._isChartEmpty=function(){return 0===this._points.length||(0,ji.Z)(this._points,(function(t){return t.y}))<=0&&!this._isHavingLine},n}(i.Component),Oo=(0,t.z)(Vo,(function(t){var n=t.shouldHighlight,r=t.theme;return{opacityChangeOnHover:{opacity:n?"":"0.1"},xAxisTicks:[],yAxisTicks:[{transform:"scaleX(-1)"}],yAxisDomain:[{transform:"scaleX(-1)"}],tooltip:(0,e.pi)((0,e.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:Yt.TS.small,fontWeight:Yt.lq.semibold,fill:r.palette.neutralPrimary}}})),Bo=(0,o.y)();!function(t){t.show="visibility",t.hide="hidden"}(Io||(Io={}));var Ho=function(t){function n(n){var r=t.call(this,n)||this;return r._isRtl=(0,a.zg)(),r._toFocusWholeStack=function(t){var e=r.props.isCalloutForStack,n=void 0!==e&&e;return t?""===r.state.selectedLegend:n},r._getFormattedLineData=function(t){var n=[],r={};return t.forEach((function(t,r){t.lineData&&t.lineData.forEach((function(i){n.push((0,e.pi)((0,e.pi)({},i),{index:r,xItem:t}))}))})),n.forEach((function(t){r[t.legend]?r[t.legend].push(t):r[t.legend]=[t]})),r},r._getLineLegends=function(t){var e=r._lineObject,n=[];return Object.keys(e).forEach((function(t){n.push({title:t,color:e[t][0].color})})),n},r._createLines=function(t,n,o,a,s){var l,c=r._xAxisType===ze.xl.NumericAxis,u=r._xAxisType===ze.xl.DateAxis,d=r._getScales(o,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(o,a){for(var l=r._legendHighlighted(o)||r._noLegendHighlighted(),u=1;u<h[o].length;u++){var g=c?t(h[o][u-1].xItem.xAxisPoint):d(h[o][u-1].xItem.xAxisPoint),y=h[o][u-1].useSecondaryYScale&&h[o][u].useSecondaryYScale&&s,x=y?s(h[o][u-1].y):n(h[o][u-1].y),b=c?t(h[o][u].xItem.xAxisPoint):d(h[o][u].xItem.xAxisPoint),C=y?s(h[o][u].y):n(h[o][u].y);v>0&&f.push(i.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.semanticColors.bodyBackground,transform:"translate(".concat(_,", 0)")})),p.push(i.createElement("line",(0,e.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[o][u].color,transform:"translate(".concat(_,", 0)")},r.state.selectedLegend===o&&{onMouseOver:r._lineHover.bind(r,h[o][u-1]),onMouseLeave:r._lineHoverOut})))}})),Object.keys(h).forEach((function(o,a){h[o].forEach((function(l,u){g.push(i.createElement("circle",(0,e.pi)({key:"".concat(a,"-").concat(u,"-dot"),cx:c?t(l.xItem.xAxisPoint):d(l.xItem.xAxisPoint),cy:l.useSecondaryYScale&&s?s(l.y):n(l.y),onMouseOver:r.state.selectedLegend===o?r._lineHover.bind(r,l):r._onStackHover.bind(r,l.xItem)},r.state.selectedLegend===o&&{onMouseLeave:r._lineHoverOut},{r:r._getCircleVisibilityAndRadius(l.xItem.xAxisPoint,l.legend).radius,stroke:l.color,fill:r.props.theme.semanticColors.bodyBackground,strokeWidth:3,visibility:r._getCircleVisibilityAndRadius(l.xItem.xAxisPoint,l.legend).visibility,transform:"translate(".concat(_,", 0)")})))}))})),i.createElement(i.Fragment,null,f,p,g)},r._getCircleVisibilityAndRadius=function(t,e){var n=r.state,i=n.selectedLegend,o=n.activeXAxisDataPoint;return""!==i?t===o&&i===e?{visibility:Io.show,radius:8}:i===e?{visibility:Io.show,radius:.3}:{visibility:Io.hide,radius:0}:{visibility:o===t?Io.show:Io.hide,radius:8}},r._getMargins=function(t){r.margins=t},r._getCustomizedCallout=function(){var t=r.props.data.some((function(t){return t.lineData&&t.lineData.length>0}));return r.props.onRenderCalloutPerStack?r.props.onRenderCalloutPerStack(r.state.stackCalloutProps):r.props.onRenderCalloutPerDataPoint&&!t?r.props.onRenderCalloutPerDataPoint(r.state.dataPointCalloutProps,r._renderCallout):null},r._lineHover=function(t,e){e.persist(),r.setState({refSelected:e,isCalloutVisible:!0,xCalloutValue:"".concat(t.xItem.xAxisPoint),yCalloutValue:"".concat(t.yAxisCalloutData||t.data||t.y),activeXAxisDataPoint:t.xItem.xAxisPoint,color:t.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(t,n,o,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(t){return t.lineData&&t.lineData.length>0})),p=r._toFocusWholeStack(h),f=r._points.map((function(a,s){var l=o-r.margins.bottom,u=t((r._xAxisType===ze.xl.NumericAxis||(r._xAxisType,ze.xl.DateAxis),a.xAxisPoint)),h=r._xAxisType===ze.xl.NumericAxis?0:r._xAxisType===ze.xl.DateAxis?-r._barWidth/2:(t.bandwidth()-r._barWidth)/2,f=0,g=a.chartData.filter((function(t){return t.data>0}));if(g.length){var m=r._getBarGapAndScale(g,n),v=m.gapHeight,_=m.heightValueScale;if(!(_<0)){var y=g.map((function(t,n){var o=t.color?t.color:r._colors[n],m={},y=!(!r._legendHighlighted(t.legend)&&!r._noLegendHighlighted());r._classNames=Bo(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,t),onMouseOver:r._onRectHover.bind(r,a.xAxisPoint,t,o),onMouseMove:r._onRectHover.bind(r,a.xAxisPoint,t,o),onMouseLeave:r._handleMouseOut,onFocus:r._onRectFocus.bind(r,t,a.xAxisPoint,o,m),onBlur:r._handleMouseOut,onClick:r._onClick.bind(r,t),role:"img"},b=_*t.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+=t.data,c&&b>c&&n===g.length-1?i.createElement("path",(0,e.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:o,ref:function(t){return m.refElement=t},transform:"translate(".concat(h,", 0)")},x)):b<0?i.createElement(i.Fragment,{key:n+s}," "):i.createElement("rect",(0,e.pi)({key:n+s,className:r._classNames.opacityChangeOnHover,x:u,y:l,width:r._barWidth,height:b,fill:o,ref:function(t){return m.refElement=t}},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(t){r._legendHighlighted(t.legend)&&(C=!0,E+=t.data)}))),i.createElement("g",{key:s+"".concat(p)},i.createElement("g",(0,e.pi)({id:"".concat(s,"-singleBar"),ref:function(t){return x.refElement=t}},b),y),!r.props.hideLabels&&r._barWidth>=16&&C&&i.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,ze.cE)(E)))}}}));if(!r.props.showXAxisLablesTooltip)try{document.getElementById(r._tooltipId)&&document.getElementById(r._tooltipId).remove()}catch(t){}if(!r.props.wrapXAxisLables&&r.props.showXAxisLablesTooltip){var g=(0,pi.Ys)(a).call(t);try{document.getElementById(r._tooltipId)&&document.getElementById(r._tooltipId).remove()}catch(t){}var m={tooltipCls:r._classNames.tooltip,id:r._tooltipId,xAxis:g};g&&(0,ze.$V)(m)}return f.filter((function(t){return!!t}))},r._getScales=function(t,e){var n=r._yMax,i=(0,Mo.Z)().domain([0,n]).range([0,t-r.margins.bottom-r.margins.top]);if(r._xAxisType===ze.xl.NumericAxis){var o=(0,ji.Z)(r._dataset,(function(t){return t.x})),a=(0,Do.Z)(r._dataset,(function(t){return t.x}));return{xBarScale:(0,Mo.Z)().domain(r._isRtl?[o,a]:[a,o]).nice().range([r.margins.left+r._domainMargin,e-r.margins.right-r._barWidth-r._domainMargin]),yBarScale:i}}if(r._xAxisType===ze.xl.DateAxis){var s=(0,Do.Z)(r._dataset,(function(t){return t.x})),l=(0,ji.Z)(r._dataset,(function(t){return t.x}));return{xBarScale:(0,Po.Z)().domain([s,l]).range([r.margins.left+r._domainMargin+r._barWidth/2,e-r.margins.right-r._barWidth/2-r._domainMargin]),yBarScale:i}}return{xBarScale:(0,Fo.Z)().domain(r._xAxisLabels).range([r.margins.left+r._domainMargin,e-r.margins.right-r._domainMargin]).paddingInner(2/3),yBarScale:i}},r._getGraphData=function(t,e,n,i,o){var a=r._getScales(n,i),s=a.xBarScale,l=a.yBarScale;return r._bars=r._createBar(s,l,n,o)},r._closeCallout=function(){r.setState({isCalloutVisible:!1})},r._getAxisData=function(t){if(t&&t.yAxisDomainValues.length){var e=t.yAxisDomainValues;r._yMax=Math.max(e[e.length-1],r.props.yMaxValue||0)}},r._legendHighlighted=function(t){return r.state.selectedLegend===t||""===r.state.selectedLegend&&r.state.activeLegend===t},r._noLegendHighlighted=function(){return""===r.state.selectedLegend&&""===r.state.activeLegend},r._getAriaLabel=function(t,e){var n,r,i;if(!e){var o=t.xAxisCalloutData||t.xAxisPoint,a=t.chartData.map((function(t){var e=t.legend,n=t.yAxisCalloutData||t.data;return"".concat(e,", ").concat(n,".")})).join(" "),s=null===(n=t.lineData)||void 0===n?void 0:n.map((function(t){var e=t.legend,n=t.yAxisCalloutData||t.data||t.y;return"".concat(e,", ").concat(n,".")})).join(" ");return(null===(r=t.stackCallOutAccessibilityData)||void 0===r?void 0:r.ariaLabel)||"".concat(o,". ").concat(a)+(s?" ".concat(s):"")}var l=t.xAxisCalloutData||e.xAxisCalloutData||t.xAxisPoint,c=e.legend,u=e.yAxisCalloutData||e.data;return(null===(i=e.callOutAccessibilityData)||void 0===i?void 0:i.ariaLabel)||"".concat(l,". ").concat(c,", ").concat(u,".")},r._getDomainMargins=function(t){if(r._xAxisType!==ze.xl.NumericAxis){var n=t-(r.margins.left+8)-(r.margins.right+8),i=Math.min(r.props.barWidth||16,24),o=(3*r._xAxisLabels.length-2)*i;r._domainMargin=8,n>=o?r._domainMargin+=(n-o)/2:i=n/(3*r._xAxisLabels.length-2),r._barWidth=i}return(0,e.pi)((0,e.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:""},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,ue.NF)((function(t){return r._getLineLegends(t)})),r._domainMargin=8,r._emptyChartId=f("_VSBC_empty"),r}return(0,e.ZT)(n,t),n.prototype.componentDidUpdate=function(t){t.height===this.props.height&&t.width===this.props.width&&t.data===this.props.data||(this._adjustProps(),this._dataset=this._createDataSetLayer())},n.prototype.render=function(){var t=this;if(!this._isChartEmpty()){this._adjustProps();var n=this.props.data.some((function(t){return t.lineData&&t.lineData.length>0})),r=this._toFocusWholeStack(n),o=this.props.isCalloutForStack,a=void 0!==o&&o;this._dataset=this._createDataSetLayer();var s=this._getLegendData(this._points,this.props.theme.palette,this._createLegendsForLine(this.props.data));this._classNames=Bo(this.props.styles,{theme:this.props.theme,href:this.props.href});var l=(0,e.pi)((0,e.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,ze.ey)(this.state.callOutAccessibilityData)),c={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return i.createElement(Ti,(0,e.pi)({},this.props,{points:this._dataset,chartType:ze.$X.VerticalStackedBarChart,xAxisType:this._xAxisType,calloutProps:l,tickParams:c,legendBars:s,datasetForXAxisDomain:this._xAxisLabels,isCalloutForStack:r,barwidth:this._barWidth,focusZoneDirection:a||n?Re.horizontal:Re.vertical,getmargins:this._getMargins,getGraphData:this._getGraphData,getAxisData:this._getAxisData,customizedCallout:this._getCustomizedCallout(),onChartMouseLeave:this._handleChartMouseLeave,getDomainMargins:this._getDomainMargins},this._xAxisType!==ze.xl.NumericAxis&&{xAxisInnerPadding:2/3,xAxisOuterPadding:0},{children:function(e){return i.createElement(i.Fragment,null,i.createElement("g",null,t._bars),i.createElement("g",null,n&&t._createLines(e.xScale,e.yScale,e.containerHeight,e.containerWidth,e.yScaleSecondary)))}}))}return i.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 t=this.props.theme.palette;this._colors=this.props.colors||[t.blueLight,t.blue,t.blueMid,t.red,t.black],this._xAxisType=(0,ze.SY)(this.props.data[0].xAxisPoint,!0),this._lineObject=this._getFormattedLineData(this.props.data)},n.prototype._createDataSetLayer=function(){var t=[],e=this._points.map((function(e){var n=0;return e.chartData.forEach((function(t){n+=t.data})),t.push(e.xAxisPoint),{x:e.xAxisPoint,y:n}}));return this._xAxisLabels=t,e},n.prototype._renderCallout=function(t){return t?i.createElement(We.ChartHoverCard,{XValue:t.xAxisCalloutData,Legend:t.legend,YValue:t.yAxisCalloutData,color:t.color,culture:this.props.culture}):null},n.prototype._onLegendClick=function(t){this.state.selectedLegend===t?this.setState({selectedLegend:""}):this.setState({selectedLegend:t})},n.prototype._onLegendHover=function(t){this.setState({activeLegend:t})},n.prototype._onLegendLeave=function(){this.setState({activeLegend:""})},n.prototype._getLegendData=function(t,n,r){var o=this;if(this.props.hideLegend)return i.createElement(i.Fragment,null);var a=[n.blueLight,n.blue,n.blueMid,n.red,n.black],s=[],l=this.props.allowHoverOnLegend,c=void 0===l||l;t.forEach((function(t){t.chartData.forEach((function(t){var e=t.color?t.color:a[Math.floor(4*Math.random()+1)];if(!(s.filter((function(n){return n.title===t.legend&&n.color===e})).length>0)){var n={title:t.legend,color:e,action:function(){o._onLegendClick(t.legend)},hoverAction:c?function(){o._handleChartMouseLeave(),o._onLegendHover(t.legend)}:void 0,onMouseOutAction:c?function(){return o._onLegendLeave()}:void 0};s.push(n)}}))}));var u=[];r&&r.length>0&&r.forEach((function(t){var e={title:t.title,color:t.color,isLineLegendInBarChart:!0,action:function(){o._onLegendClick(t.title)},hoverAction:c?function(){o._handleChartMouseLeave(),o._onLegendHover(t.title)}:void 0,onMouseOutAction:c?function(){return o._onLegendLeave()}:void 0};u.push(e)}));var d=u.concat(s);return i.createElement(vr,(0,e.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(t,e,n,r){r.persist(),this._onRectFocusHover(t,e,n,r)},n.prototype._onRectFocusHover=function(t,e,n,r){var i,o;(null===(i=this._calloutAnchorPoint)||void 0===i?void 0:i.chartDataPoint)===e&&(null===(o=this._calloutAnchorPoint)||void 0===o?void 0:o.xAxisDataPoint)===t||(this._calloutAnchorPoint={chartDataPoint:e,xAxisDataPoint:t},this.setState({refSelected:r,isCalloutVisible:""===this.state.selectedLegend||this.state.selectedLegend===e.legend,calloutLegend:e.legend,dataForHoverCard:e.data,color:n,xCalloutValue:e.xAxisCalloutData?e.xAxisCalloutData:t,yCalloutValue:e.yAxisCalloutData,dataPointCalloutProps:e,callOutAccessibilityData:e.callOutAccessibilityData}))},n.prototype._onStackHover=function(t,e){e.persist(),this._onStackHoverFocus(t,e)},n.prototype._onStackHoverFocus=function(t,n){var r=t.lineData,i=void 0!==r&&r.length>0;i&&r.forEach((function(t){t.data=t.data||t.y,t.shouldDrawBorderBottom=!0})),this.setState({refSelected:n,isCalloutVisible:!0,YValueHover:i?(0,e.ev)((0,e.ev)([],r.sort((function(t,e){return t.data<e.data?1:-1})),!0),t.chartData.slice().reverse(),!0):t.chartData.slice().reverse(),hoverXValue:t.xAxisPoint instanceof Date?t.xAxisPoint.toLocaleDateString():t.xAxisPoint,stackCalloutProps:t,activeXAxisDataPoint:t.xAxisPoint,callOutAccessibilityData:t.stackCallOutAccessibilityData})},n.prototype._onRectFocus=function(t,e,n,r){r.refElement&&this._onRectFocusHover(e,t,n,r.refElement)},n.prototype._onStackFocus=function(t,e){e.refElement&&this._onStackHoverFocus(t,e.refElement)},n.prototype._onClick=function(t,e){var n,r;null===(r=(n=this.props).onBarClick)||void 0===r||r.call(n,e,t),this.props.href&&(window.location.href=this.props.href)},n.prototype._getBarGapAndScale=function(t,e,n){var r=this.props.barGapMax,i=void 0===r?0:r,o=t.reduce((function(t,e){return t+e.data}),0),a=null!=n?n:e(o),s=i&&t.length-1,l=s&&Math.max(1,Math.min(i,.2*a/s));return{gapHeight:l,heightValueScale:(a-l*s)/o}},n.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.length>0&&0===this.props.data.filter((function(t){return 0===t.chartData.length})).length)},n}(i.Component),Ro=(0,t.z)(Ho,(function(t){var n=t.shouldHighlight,r=t.href,i=t.theme;return{opacityChangeOnHover:{opacity:n?"":"0.1",cursor:r?"pointer":"default"},tooltip:(0,e.pi)((0,e.pi)({},i.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:i.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"}),barLabel:{fontSize:Yt.TS.small,fontWeight:Yt.lq.semibold,fill:i.palette.neutralPrimary}}})),zo=(0,o.y)(),Wo=.1/.9,Yo=function(t){function n(n){var r=t.call(this,n)||this;return r._isRtl=(0,a.zg)(),r._getGraphData=function(t,e,n,i,o){var a=r._createX0Scale(i),s=r._createX1Scale(),l=[];r._datasetForBars.forEach((function(t){l.push(r._buildGraph(t,a,s,n,o))})),r._groupedVerticalBarGraph=l},r._getMargins=function(t){return r.margins=t},r._createDataSetOfGVBC=function(t){var e=[],n=t.map((function(t){return t.name}));t[0].series.forEach((function(t){e.push(t.key)}));var i=r._createDataset(t);return{keys:e,xAxisLabels:n,datasetForBars:i}},r._getCustomizedCallout=function(){return r.props.onRenderCalloutPerDataPoint?r.props.onRenderCalloutPerDataPoint(r.state.dataPointCalloutProps):null},r._getOpacity=function(t){return r._legendHighlighted(t)||r._noLegendHighlighted()?"":"0.1"},r._onBarHover=function(t,e,n){n.persist(),r._calloutAnchorPoint!==t&&(r._calloutAnchorPoint=t,r.setState({refSelected:n,isCalloutVisible:""===r.state.selectedLegend||r.state.selectedLegend===t.legend,calloutLegend:t.legend,dataForHoverCard:t.data,color:t.color,xCalloutValue:t.xAxisCalloutData,yCalloutValue:t.yAxisCalloutData,dataPointCalloutProps:t,callOutAccessibilityData:r.props.isCalloutForStack?e.stackCallOutAccessibilityData:t.callOutAccessibilityData,YValueHover:e.groupSeries,hoverXValue:t.xAxisCalloutData}))},r._onBarLeave=function(){},r._handleChartMouseLeave=function(){r._calloutAnchorPoint=null,r.setState({isCalloutVisible:!1})},r._onBarFocus=function(t,e,n){r._refArray.forEach((function(i,o){i.index===t.legend&&n===o&&r.setState({refSelected:i.refElement,isCalloutVisible:""===r.state.selectedLegend||r.state.selectedLegend===t.legend,calloutLegend:t.legend,dataForHoverCard:t.data,color:t.color,xCalloutValue:t.xAxisCalloutData,yCalloutValue:t.yAxisCalloutData,dataPointCalloutProps:t,callOutAccessibilityData:r.props.isCalloutForStack?e.stackCallOutAccessibilityData:t.callOutAccessibilityData,YValueHover:e.groupSeries,hoverXValue:t.xAxisCalloutData})}))},r._redirectToUrl=function(t){t&&(window.location.href=t)},r._buildGraph=function(t,e,n,o,a){var s=[],l=[],c=(0,Mo.Z)().domain([0,r._yMax]).range([0,o-r.margins.bottom-r.margins.top]),u=Object.keys(r._datasetForBars[0]).splice(0,r._keys.length);if(u.forEach((function(e,a){var d=t.indexNum*u.length+a,h=t[e],p=n(e)+(n.bandwidth()-r._barWidth)/2,f=Math.max(o-r.margins.bottom-c(h.data),0);h.data&&s.push(i.createElement("rect",{className:r._classNames.opacityChangeOnHover,key:"".concat(t.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(t){r._refCallback(t,h.legend,d)},fill:h.color,onMouseOver:r._onBarHover.bind(r,h,t),onMouseMove:r._onBarHover.bind(r,h,t),onMouseOut:r._onBarLeave,onFocus:r._onBarFocus.bind(r,h,t,d),onBlur:r._onBarLeave,onClick:r.props.href?r._redirectToUrl.bind(r,r.props.href):h.onClick,"aria-label":r._getAriaLabel(h,t.xAxisPoint),role:"img"})),h.data&&!r.props.hideLabels&&r._barWidth>=16&&(r._legendHighlighted(h.legend)||r._noLegendHighlighted())&&l.push(i.createElement("text",{x:p+r._barWidth/2,y:f-6,textAnchor:"middle",className:r._classNames.barLabel,"aria-hidden":!0},(0,ze.cE)(h.data)))})),!r.props.wrapXAxisLables&&r.props.showXAxisLablesTooltip){var d=(0,pi.Ys)(a).call(e);try{document.getElementById(r._tooltipId)&&document.getElementById(r._tooltipId).remove()}catch(t){}var h={tooltipCls:r._classNames.tooltip,id:r._tooltipId,xAxis:d};d&&(0,ze.$V)(h)}return i.createElement("g",{key:t.indexNum,transform:"translate(".concat(e(t.xAxisPoint)+(e.bandwidth()-r._groupWidth)/2,", 0)")},s,l)},r._createDataset=function(t){var n=[],i=[];return t.forEach((function(t,r){var o={},a={},s=[];t.series.forEach((function(t){o[t.key]=t.data,a[t.key]=(0,e.pi)({},t),s.push(t)})),a.xAxisPoint=t.name,a.indexNum=r,a.groupSeries=s,a.stackCallOutAccessibilityData=t.stackCallOutAccessibilityData,n.push(a),i.push(o)})),r._dataset=i,n},r._createX0Scale=function(t){return(0,Fo.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/(2+r._keys.length+(r._keys.length-1)*Wo))},r._createX1Scale=function(){return(0,Fo.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(t,n){var o=t,a=[n.blueLight,n.blue,n.blueMid,n.red,n.black],s=[];return o.forEach((function(t){t.series.forEach((function(t){var e=t.color?t.color:a[Math.floor(4*Math.random()+1)];if(!(s.filter((function(n){return n.title===t.legend&&n.color===e})).length>0)){var n={title:t.legend,color:e,action:function(){r._onLegendClick(t.legend)},hoverAction:function(){r._handleChartMouseLeave(),r._onLegendHover(t.legend)},onMouseOutAction:function(){r._onLegendLeave()}};s.push(n)}}))})),i.createElement(vr,(0,e.pi)({legends:s,overflowProps:r.props.legendsOverflowProps,enabledWrapLines:r.props.enabledLegendsWrapLines,focusZonePropsInHoverCard:r.props.focusZonePropsForLegendsInHoverCard},r.props.legendProps))},r._getAxisData=function(t){if(t&&t.yAxisDomainValues.length){var e=t.yAxisDomainValues;r._yMax=Math.max(e[e.length-1],r.props.yMaxValue||0)}},r._legendHighlighted=function(t){return r.state.selectedLegend===t||""===r.state.selectedLegend&&r.state.activeLegend===t},r._noLegendHighlighted=function(){return""===r.state.selectedLegend&&""===r.state.activeLegend},r._getAriaLabel=function(t,e){var n,r=t.xAxisCalloutData||e,i=t.legend,o=t.yAxisCalloutData||t.data;return(null===(n=t.callOutAccessibilityData)||void 0===n?void 0:n.ariaLabel)||"".concat(r,". ").concat(i,", ").concat(o,".")},r._getDomainMargins=function(t){var n=t-(r.margins.left+8)-(r.margins.right+8),i=Math.min(r.props.barwidth||16,24),o=r._keys.length*i+(r._keys.length-1)*Wo*i,a=r._xAxisLabels.length*o+2*(r._xAxisLabels.length-1)*i;return r._domainMargin=8,n>=a?r._domainMargin+=(n-a)/2:i=(o=n/(r._xAxisLabels.length+(r._xAxisLabels.length-1)*(2/(r._keys.length+(r._keys.length-1)*Wo))))/(r._keys.length+(r._keys.length-1)*Wo),r._barWidth=i,r._groupWidth=o,(0,e.pi)((0,e.pi)({},r.margins),{left:r.margins.left+r._domainMargin,right:r.margins.right+r._domainMargin})},r._createSet=(0,ue.NF)((function(t){return r._createDataSetOfGVBC(t)})),r.state={color:"",dataForHoverCard:0,isCalloutVisible:!1,refSelected:null,selectedLegend:"",xCalloutValue:"",yCalloutValue:"",YValueHover:[],hoverXValue:"",calloutLegend:"",activeLegend:""},r._refArray=[],r._calloutId=f("callout"),r._tooltipId=f("GVBCTooltipId_"),r._domainMargin=8,r._emptyChartId=f("_GVBC_empty"),r}return(0,e.ZT)(n,t),n.prototype.render=function(){var t=this,n=this.props.data,r=this._createSet(n),o=r.keys,a=r.xAxisLabels,s=r.datasetForBars;this._keys=o,this._xAxisLabels=a,this._datasetForBars=s,this._xAxisType=(0,ze.SY)(n[0].name,!0);var l=this._getLegendData(n,this.props.theme.palette),c=(0,ji.Z)(this._dataset,(function(e){return(0,ji.Z)(t._keys,(function(t){return e[t]}))}));this._yMax=Math.max(c,this.props.yMaxValue||0),this._classNames=zo(this.props.styles,{theme:this.props.theme,href:this.props.href});var u=(0,e.pi)((0,e.pi)((0,e.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,ze.ey)(this.state.callOutAccessibilityData,"text",!1)),d={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return this._isChartEmpty()?i.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):i.createElement(Ti,(0,e.pi)({},this.props,{points:this._datasetForBars,chartType:ze.$X.GroupedVerticalBarChart,calloutProps:u,legendBars:l,xAxisType:this._xAxisType,datasetForXAxisDomain:this._xAxisLabels,tickParams:d,tickPadding:this.props.tickPadding||5,maxOfYVal:this._yMax,svgFocusZoneProps:{direction:Re.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)*Wo),xAxisOuterPadding:0,children:function(){return i.createElement("g",null,t._groupedVerticalBarGraph)}}))},n.prototype._refCallback=function(t,e,n){this._refArray[n]={index:e,refElement:t}},n.prototype._onLegendClick=function(t){this.state.selectedLegend===t?this.setState({selectedLegend:""}):this.setState({selectedLegend:t})},n.prototype._onLegendHover=function(t){this.setState({activeLegend:t})},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(t){return t.series.length})).length>0)},n}(i.Component),Zo=(0,t.z)(Yo,(function(t){var n=t.theme;return{opacityChangeOnHover:{cursor:t.href?"pointer":"default"},tooltip:(0,e.pi)((0,e.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:Yt.TS.small,fontWeight:Yt.lq.semibold,fill:n.palette.neutralPrimary}}})),qo=n(1286),Xo=n(731),Uo=(0,o.y)(),jo=function(t){function n(n){var r=t.call(this,n)||this;return r._rectRefArray={},r._getXandY=function(){var t="",e="";return r.props.data.forEach((function(n){if(n.data&&n.data.length>0)return t=n.data[0].x,e=n.data[0].y,{x:t,y:e}})),{x:t,y:e}},r._getOpacity=function(t){return r._legendHighlighted(t)||r._noLegendHighlighted()?"1":"0.1"},r._rectRefCallback=function(t,e,n){r._rectRefArray[e]={data:n,refElement:t}},r._onRectFocus=function(t,e){r.setState({target:r._rectRefArray[t].refElement,isCalloutVisible:""===r.state.selectedLegend||r.state.selectedLegend===e.legend,calloutYValue:"".concat(e.rectText),calloutTextColor:r._colorScale(e.value),calloutLegend:e.legend,ratio:e.ratio||null,descriptionMessage:e.descriptionMessage||"",calloutId:t,callOutAccessibilityData:e.callOutAccessibilityData})},r._onRectMouseOver=function(t,e,n){n.persist(),r._calloutAnchorPoint!==e&&(r._calloutAnchorPoint=e,r.setState({target:r._rectRefArray[t].refElement,isCalloutVisible:""===r.state.selectedLegend||r.state.selectedLegend===e.legend,calloutYValue:"".concat(e.rectText),calloutTextColor:r._colorScale(e.value),calloutLegend:e.legend,ratio:e.ratio||null,descriptionMessage:e.descriptionMessage||"",calloutId:t,callOutAccessibilityData:e.callOutAccessibilityData}))},r._onRectBlurOrMouseOut=function(){},r._handleChartMouseLeave=function(){r._calloutAnchorPoint=null,r.setState({isCalloutVisible:!1})},r._createRectangles=function(){var t=[];return r._stringYAxisDataPoints.slice().reverse().forEach((function(e,n){r._dataSet[e].forEach((function(e,o){var a="x".concat(n,"y").concat(o),s=i.createElement("g",{key:a,role:"img","aria-label":r._getAriaLabel(e),"data-is-focusable":!0,fillOpacity:r._getOpacity(e.legend),transform:"translate(".concat(r._xAxisScale(e.x),", ").concat(r._yAxisScale(e.y),")"),ref:function(t){r._rectRefCallback(t,a,e)},onFocus:r._onRectFocus.bind(r,a,e),onBlur:r._onRectBlurOrMouseOut,onMouseOver:r._onRectMouseOver.bind(r,a,e),onMouseOut:r._onRectBlurOrMouseOut},i.createElement("rect",{fill:r._colorScale(e.value),width:r._xAxisScale.bandwidth(),height:r._yAxisScale.bandwidth(),onClick:e.onClick}),i.createElement("text",{dominantBaseline:"middle",textAnchor:"middle",className:r._classNames.text,transform:"translate(".concat(r._xAxisScale.bandwidth()/2,", ").concat(r._yAxisScale.bandwidth()/2,")")},(0,ze.Ts)(e.rectText,r.props.culture)));t.push(s)}))})),t},r._createLegendBars=function(){var t=r.props,n=t.data,o=t.legendProps,a=[];return n.forEach((function(t){var e={title:t.legend,color:r._colorScale(t.value),action:function(){r._onLegendClick(t.legend)},hoverAction:function(){r._handleChartMouseLeave(),r._onLegendHover(t.legend)},onMouseOutAction:function(){r._onLegendLeave()}};a.push(e)})),i.createElement(vr,(0,e.pi)({},o,{legends:a}))},r._getColorScale=function(){var t=r.props,e=t.domainValuesForColorScale,n=t.rangeValuesForColorScale;return(0,Mo.Z)().domain(e).range(n)},r._getXIndex=function(t){return r._xAxisType===ze.xl.DateAxis?"".concat(t.getTime()):r._xAxisType===ze.xl.StringAxis?t:r._xAxisType===ze.xl.NumericAxis?"".concat(t):""},r._getYIndex=function(t){return r._yAxisType===ze.OH.DateAxis?"".concat(t.getTime()):r._yAxisType===ze.OH.StringAxis?t:r._yAxisType===ze.OH.NumericAxis?"".concat(t):""},r._createNewDataSet=function(t,n,i,o,a){var s=[];t.forEach((function(t){t.data.forEach((function(n){s.push((0,e.pi)((0,e.pi)({},n),{legend:t.legend}))}))}));var l={},c={},u={};return s.forEach((function(t){var n=r._getXIndex(t.x),i=r._getYIndex(t.y);u[n]="1",c[i]="1",l[i]?l[i]=(0,e.ev)((0,e.ev)([],l[i],!0),[t],!1):l[i]=[t]})),Object.keys(l).forEach((function(t){l[t].sort((function(t,e){return r._xAxisType===ze.xl.StringAxis?t.x.toLowerCase()>e.x.toLowerCase()?1:-1:r._xAxisType===ze.xl.DateAxis?t.x.getTime()-e.x.getTime():r._xAxisType===ze.xl.NumericAxis?+t.x>+e.x?1:-1:t.x>e.x?1:-1})).forEach((function(t){r._xAxisType===ze.xl.DateAxis&&(t.x=r._getStringFormattedDate(t.x,n)),r._xAxisType===ze.xl.NumericAxis&&(t.x=r._getStringFormattedNumber(t.x,i)),r._xAxisType===ze.xl.StringAxis&&(t.x=r._getFormattedLabelForXAxisDataPoint(t.x)),r._yAxisType===ze.OH.DateAxis&&(t.y=r._getStringFormattedDate(t.y,o)),r._yAxisType===ze.OH.NumericAxis&&(t.y=r._getStringFormattedNumber(t.y,a)),r._yAxisType===ze.OH.StringAxis&&(t.y=r._getFormattedLabelForYAxisDataPoint(t.y))}))})),Object.keys(l).forEach((function(t){r._yAxisType===ze.OH.DateAxis?l[r._getStringFormattedDate(t,o)]=l[t]:r._yAxisType===ze.OH.NumericAxis?l["".concat(r._getStringFormattedNumber(t,a))]=l[t]:l[r._getFormattedLabelForYAxisDataPoint(t)]=l[t]})),{dataSet:l,yAxisPoints:r._getYAxisDataPoints(c),xAxisPoints:r._getXAxisDataPoints(u)}},r._getXAxisDataPoints=function(t){return Object.keys(t).sort((function(t,e){return r._xAxisType===ze.xl.DateAxis||r._xAxisType===ze.xl.NumericAxis?+t-+e:t.toLowerCase()>e.toLowerCase()?1:-1})).map((function(t){return r._xAxisType===ze.xl.DateAxis?r._getStringFormattedDate(t,r.props.xAxisDateFormatString):r._xAxisType===ze.xl.NumericAxis?r._getStringFormattedNumber(t,r.props.xAxisNumberFormatString):r._getFormattedLabelForXAxisDataPoint(t)}))},r._getYAxisDataPoints=function(t){return Object.keys(t).sort((function(t,e){return r._yAxisType===ze.OH.DateAxis||r._yAxisType===ze.OH.NumericAxis?+t-+e:t.toLowerCase()>e.toLowerCase()?1:-1})).map((function(t){return r._yAxisType===ze.OH.DateAxis?r._getStringFormattedDate(t,r.props.yAxisDateFormatString):r._yAxisType===ze.OH.NumericAxis?r._getStringFormattedNumber(t,r.props.yAxisNumberFormatString):r._getFormattedLabelForYAxisDataPoint(t)}))},r._getStringFormattedDate=function(t,e){var n=new Date;return n.setTime(+t),(0,Xo.i$)(e||"%b/%d")(n)},r._getStringFormattedNumber=function(t,e){return(0,Kr.WU)(e||".2~s")(+t)},r._getFormattedLabelForXAxisDataPoint=function(t){var e=r.props.xAxisStringFormatter;return e?e(t):t},r._getFormattedLabelForYAxisDataPoint=function(t){var e=r.props.yAxisStringFormatter;return e?e(t):t},r._closeCallout=function(){r.setState({isCalloutVisible:!1})},r._legendHighlighted=function(t){return r.state.selectedLegend===t||""===r.state.selectedLegend&&r.state.activeLegend===t},r._noLegendHighlighted=function(){return""===r.state.selectedLegend&&""===r.state.activeLegend},r._getAriaLabel=function(t){var e,n=t.x,r=t.y,i=t.legend,o=t.ratio?"".concat(t.ratio[0],"/").concat(t.ratio[1]):t.rectText||t.value,a=t.descriptionMessage;return(null===(e=t.callOutAccessibilityData)||void 0===e?void 0:e.ariaLabel)||"".concat(n,", ").concat(r,". ").concat(i,", ").concat(o,".")+(a?" ".concat(a,"."):"")},r._createSet=(0,ue.NF)((function(t,e,n,i,o){return r._createNewDataSet(t,e,n,i,o)})),r.state={selectedLegend:"",activeLegend:"",isCalloutVisible:!1,target:null,calloutLegend:"",calloutTextColor:"",calloutYValue:"",ratio:null,descriptionMessage:"",calloutId:""},r._emptyChartId=f("_HeatMap_empty"),r}return(0,e.ZT)(n,t),n.prototype.render=function(){var t=this,n=this._getXandY(),r=n.x,o=n.y;this._xAxisType=(0,ze.SY)(r,!0),this._yAxisType=(0,ze.SY)(o,!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=Uo(this.props.styles,{theme:this.props.theme});var m=(0,e.pi)((0,e.pi)((0,e.pi)((0,e.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,ze.ey)(this.state.callOutAccessibilityData,"text",!1)),{preventDismissOnLostFocus:!0}),v=(0,e.pi)((0,e.pi)({},this.state.ratio&&{ratio:this.state.ratio}),{descriptionMessage:this.state.descriptionMessage});return this._isChartEmpty()?i.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):i.createElement(Ti,(0,e.pi)({},this.props,{points:s,chartType:ze.$X.HeatMapChart,xAxisType:ze.xl.StringAxis,yAxisType:ze.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:Re.bidirectional},legendBars:this._createLegendBars(),onChartMouseLeave:this._handleChartMouseLeave,children:function(e){return t._xAxisScale=e.xScale,t._yAxisScale=e.yScale,t._createRectangles()}}))},n.prototype._onLegendHover=function(t){this.setState({activeLegend:t})},n.prototype._onLegendLeave=function(){this.setState({activeLegend:""})},n.prototype._onLegendClick=function(t){this.state.selectedLegend===t?this.setState({selectedLegend:""}):this.setState({selectedLegend:t})},n.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.length>0)},n}(i.Component),Go=(0,t.z)(jo,(function(t){var e=t.theme;return{root:{},text:[e.fonts.medium,{pointerEvents:"none",fill:e.palette.white,fontWeight:Yt.lq.semibold}],subComponentStyles:{cartesianStyles:{},calloutStyles:{root:{maxWidth:"238px"}}}}}));function Ko(t,e){let n=0;if(void 0===e)for(let e of t)(e=+e)&&(n+=e);else{let r=-1;for(let i of t)(i=+e(i,++r,t))&&(n+=i)}return n}function $o(t,e){let n=0;if(void 0===e)for(let e of t)(e=+e)&&(n+=e);else{let r=-1;for(let i of t)(i=+e(i,++r,t))&&(n+=i)}return n}function Jo(t,e){let n;if(void 0===e)for(const e of t)null!=e&&(n<e||void 0===n&&e>=e)&&(n=e);else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(n<i||void 0===n&&i>=i)&&(n=i)}return n}function Qo(t,e){return e-1-t.height}function ta(t,e){return t.sourceLinks.length?t.depth:e-1}function ea(t){return function(){return t}}function na(t,e){return ia(t.source,e.source)||t.index-e.index}function ra(t,e){return ia(t.target,e.target)||t.index-e.index}function ia(t,e){return t.y0-e.y0}function oa(t){return t.value}function aa(t){return t.index}function sa(t){return t.nodes}function la(t){return t.links}function ca(t,e){const n=t.get(e);if(!n)throw new Error("missing: "+e);return n}function ua({nodes:t}){for(const e of t){let t=e.y0,n=t;for(const n of e.sourceLinks)n.y0=t+n.width/2,t+=n.width;for(const t of e.targetLinks)t.y1=n+t.width/2,n+=t.width}}class da{constructor(t,e){this._context=t,this._x=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,e,t,e):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+e)/2,t,this._y0,t,e)}this._x0=t,this._y0=e}}function ha(t){return new da(t,!0)}var pa=(0,o.y)(),fa="#757575",ga=[{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"}],ma="#323130",va="#FFFFFF",_a=function(t){function n(e){var n=t.call(this,e)||this;return n._isRtl=(0,a.zg)(),n._onCloseCallout=function(){n.setState({isCalloutVisible:!1,refSelected:void 0,descriptionMessage:""})},n._onBlur=function(){},n._fillNodeColors=function(t){var e=n.state;return e.selectedState?e.selectedState&&e.selectedNodes.has(t.index)&&e.selectedNode?e.selectedNode.color:e.selectedState&&!e.selectedNode?t.color:void 0:t.color},n._fillNodeBorder=function(t){var e=n.state;return e.selectedState?e.selectedState&&e.selectedNodes.has(t.index)&&e.selectedNode?e.selectedNode.borderColor:(e.selectedState&&e.selectedNodes.has(t.index),t.borderColor):t.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,ue.NF)((function(t){return n._normalizeSankeyData(t)})),n._emptyChartId=f("_SankeyChart_empty"),n}return(0,e.ZT)(n,t),n.prototype.componentDidMount=function(){this._fitParentContainer()},n.prototype.componentDidUpdate=function(t){t.shouldResize!==this.props.shouldResize&&this._fitParentContainer()},n.prototype.componentWillUnmount=function(){cancelAnimationFrame(this._reqID)},n.prototype.render=function(){var t,n=this;if(!this._isChartEmpty()){var r,o=this.props,a=o.theme,s=o.className,l=o.styles,c=o.pathColor,u=this.state,d=pa(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),(t=m).links.forEach((function(t){t.unnormalizedValue||(t.unnormalizedValue=t.value)})),t.nodes.forEach((function(t){t.actualValue=Math.max(Ko(t.sourceLinks,(function(t){return t.unnormalizedValue})),Ko(t.targetLinks,(function(t){return t.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 i.createElement("div",{className:d.root,role:"presentation",ref:function(t){return n.chartContainer=t},onMouseLeave:this._onCloseCallout},i.createElement(dn,{direction:Re.bidirectional,isCircularNavigation:!0,handleTabKey:1},i.createElement("svg",{width:g,height:p,id:f("sankeyChart")},i.createElement("g",{className:d.links,strokeOpacity:1},y),i.createElement("g",{className:d.nodes},v),x.isCalloutVisible&&i.createElement(He,(0,e.pi)({},x),i.createElement(We.ChartHoverCard,{XValue:x.XValue,YValue:x.YValue,color:x.color,descriptionMessage:x.descriptionMessage?x.descriptionMessage:""})))))}return i.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"})},n.prototype._preRenderLayout=function(){var t=this.state,e=t.containerHeight,n=t.containerWidth,r=this._margins,i=r.left,o=r.right,a=r.top,s=r.bottom,l=n-o,c=e-s>0?e-s:0;return this._sankey=function(){let t,e,n,r=0,i=0,o=1,a=1,s=24,l=8,c=aa,u=ta,d=sa,h=la,p=6;function f(){const f={nodes:d.apply(null,arguments),links:h.apply(null,arguments)};return function({nodes:t,links:e}){for(const[e,n]of t.entries())n.index=e,n.sourceLinks=[],n.targetLinks=[];const r=new Map(t.map(((e,n)=>[c(e,n,t),e])));for(const[t,n]of e.entries()){n.index=t;let{source:e,target:i}=n;"object"!=typeof e&&(e=n.source=ca(r,e)),"object"!=typeof i&&(i=n.target=ca(r,i)),e.sourceLinks.push(n),i.targetLinks.push(n)}if(null!=n)for(const{sourceLinks:e,targetLinks:r}of t)e.sort(n),r.sort(n)}(f),function({nodes:t}){for(const e of t)e.value=void 0===e.fixedValue?Math.max($o(e.sourceLinks,oa),$o(e.targetLinks,oa)):e.fixedValue}(f),function({nodes:t}){const e=t.length;let n=new Set(t),r=new Set,i=0;for(;n.size;){for(const t of n){t.depth=i;for(const{target:e}of t.sourceLinks)r.add(e)}if(++i>e)throw new Error("circular link");n=r,r=new Set}}(f),function({nodes:t}){const e=t.length;let n=new Set(t),r=new Set,i=0;for(;n.size;){for(const t of n){t.height=i;for(const{source:e}of t.targetLinks)r.add(e)}if(++i>e)throw new Error("circular link");n=r,r=new Set}}(f),function(n){const c=function({nodes:t}){const n=Jo(t,(t=>t.depth))+1,i=(o-r-s)/(n-1),a=new Array(n);for(const e of t){const t=Math.max(0,Math.min(n-1,Math.floor(u.call(null,e,n))));e.layer=t,e.x0=r+t*i,e.x1=e.x0+s,a[t]?a[t].push(e):a[t]=[e]}if(e)for(const t of a)t.sort(e);return a}(n);t=Math.min(l,(a-i)/(Jo(c,(t=>t.length))-1)),function(e){const n=function(t,e){let n;if(void 0===e)for(const e of t)null!=e&&(n>e||void 0===n&&e>=e)&&(n=e);else{let r=-1;for(let i of t)null!=(i=e(i,++r))&&(n>i||void 0===n&&i>=i)&&(n=i)}return n}(e,(e=>(a-i-(e.length-1)*t)/$o(e,oa)));for(const r of e){let e=i;for(const i of r){i.y0=e,i.y1=e+i.value*n,e=i.y1+t;for(const t of i.sourceLinks)t.width=t.value*n}e=(a-e+t)/(r.length+1);for(let t=0;t<r.length;++t){const n=r[t];n.y0+=e*(t+1),n.y1+=e*(t+1)}b(r)}}(c);for(let t=0;t<p;++t){const e=Math.pow(.99,t),n=Math.max(1-e,(t+1)/p);m(c,e,n),g(c,e,n)}}(f),ua(f),f}function g(t,n,r){for(let i=1,o=t.length;i<o;++i){const o=t[i];for(const t of o){let e=0,r=0;for(const{source:n,value:i}of t.targetLinks){let o=i*(t.layer-n.layer);e+=C(n,t)*o,r+=o}if(!(r>0))continue;let i=(e/r-t.y0)*n;t.y0+=i,t.y1+=i,x(t)}void 0===e&&o.sort(ia),v(o,r)}}function m(t,n,r){for(let i=t.length-2;i>=0;--i){const o=t[i];for(const t of o){let e=0,r=0;for(const{target:n,value:i}of t.sourceLinks){let o=i*(n.layer-t.layer);e+=E(t,n)*o,r+=o}if(!(r>0))continue;let i=(e/r-t.y0)*n;t.y0+=i,t.y1+=i,x(t)}void 0===e&&o.sort(ia),v(o,r)}}function v(e,n){const r=e.length>>1,o=e[r];y(e,o.y0-t,r-1,n),_(e,o.y1+t,r+1,n),y(e,a,e.length-1,n),_(e,i,0,n)}function _(e,n,r,i){for(;r<e.length;++r){const o=e[r],a=(n-o.y0)*i;a>1e-6&&(o.y0+=a,o.y1+=a),n=o.y1+t}}function y(e,n,r,i){for(;r>=0;--r){const o=e[r],a=(o.y1-n)*i;a>1e-6&&(o.y0-=a,o.y1-=a),n=o.y0-t}}function x({sourceLinks:t,targetLinks:e}){if(void 0===n){for(const{source:{sourceLinks:t}}of e)t.sort(ra);for(const{target:{targetLinks:e}}of t)e.sort(na)}}function b(t){if(void 0===n)for(const{sourceLinks:e,targetLinks:n}of t)e.sort(ra),n.sort(na)}function C(e,n){let r=e.y0-(e.sourceLinks.length-1)*t/2;for(const{target:i,width:o}of e.sourceLinks){if(i===n)break;r+=o+t}for(const{source:t,width:i}of n.targetLinks){if(t===e)break;r-=i}return r}function E(e,n){let r=n.y0-(n.targetLinks.length-1)*t/2;for(const{source:i,width:o}of n.targetLinks){if(i===e)break;r+=o+t}for(const{target:t,width:i}of e.sourceLinks){if(t===n)break;r-=i}return r}return f.update=function(t){return ua(t),t},f.nodeId=function(t){return arguments.length?(c="function"==typeof t?t:ea(t),f):c},f.nodeAlign=function(t){return arguments.length?(u="function"==typeof t?t:ea(t),f):u},f.nodeSort=function(t){return arguments.length?(e=t,f):e},f.nodeWidth=function(t){return arguments.length?(s=+t,f):s},f.nodePadding=function(e){return arguments.length?(l=t=+e,f):l},f.nodes=function(t){return arguments.length?(d="function"==typeof t?t:ea(t),f):d},f.links=function(t){return arguments.length?(h="function"==typeof t?t:ea(t),f):h},f.linkSort=function(t){return arguments.length?(n=t,f):n},f.size=function(t){return arguments.length?(r=i=0,o=+t[0],a=+t[1],f):[o-r,a-i]},f.extent=function(t){return arguments.length?(r=+t[0][0],o=+t[1][0],i=+t[0][1],a=+t[1][1],f):[[r,i],[o,a]]},f.iterations=function(t){return arguments.length?(p=+t,f):p},f}().nodeWidth(124).extent([[i,a],[l-1,c-6]]).nodeAlign(this._isRtl?Qo:ta),{height:c,width:l}},n.prototype._normalizeSankeyData=function(t){var e;e=this._nodesInColumn=function(t,e){e(t);var n={};return t.nodes.forEach((function(t){var e=t.layer;n[e]?n[e].push(t):n[e]=[t]})),n}(t,this._sankey),Object.values(e).map((function(t){return Ko(t,(function(t){return t.value}))})).forEach((function(t,n){var r=0;e[n].forEach((function(e){var n=e.value/t*100;e.actualValue=e.value,n<1?(e.value=.01*t,r+=1):r+=n}));var i=0!==r?r/100:1;i>1&&e[n].forEach((function(t){t.value=t.value/i,function(t,e,n){t.sourceLinks.forEach((function(t){t.unnormalizedValue=t.value;var r=t.value/e;t.value=n*r})),t.targetLinks.forEach((function(t){t.unnormalizedValue=t.value;var r=t.value/e;t.value=n*r}))}(t,t.actualValue,t.value)}))}))},n.prototype._adjustPadding=function(t,e,n){var r=this._sankey.nodePadding();return Object.values(n).forEach((function(t){var n=.3*e;n<e-Ko(t,(function(t){return t.y1-t.y0}))&&(r=Math.min(r,n/(t.length-1)))})),r},n.prototype._createLinks=function(){var t=this,e=[],n=this.props.data.SankeyChartData;if(n){var r=this._linkId;n.links.forEach((function(n,o){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=Qi().x((function(t){return t.x})).y0((function(t){return t.y0})).y1((function(t){return t.y1})).curve(ha),c="url(#gradient-".concat(r,"-").concat(o,")"),u=i.createElement("g",{key:"".concat(r,"-").concat(o)},i.createElement("defs",null,i.createElement("linearGradient",{id:"gradient-".concat(r,"-").concat(o),x1:"0%",y1:"0%",x2:"100%",y2:"0%"},i.createElement("stop",{offset:"0",stopColor:n.source.color}),i.createElement("stop",{offset:"100%",stopColor:n.target.color}))),i.createElement("path",{d:l(s),id:f("link"),fill:t._fillStreamColors(n,c),stroke:t._fillStreamBorder(n,c),strokeWidth:"2",strokeOpacity:t._getOpacityStreamBorder(n),onMouseOver:t._onStreamHover.bind(t,n),onMouseOut:function(){t._onStreamLeave(n)},onFocus:t._onFocusLink.bind(t,n),onBlur:t._onBlur,fillOpacity:t._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"}));e.push(u)}))}return e},n.prototype._createNodes=function(t){var e=this,n=[],r=this.props.data.SankeyChartData;if(r){var o=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,pi.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,pi.td)(".tempText").remove()}var d=e._truncateText(r.name,116,l),h="..."===d.slice(-3),p=f("tooltip"),g=(0,pi.Ys)("body").append("div").attr("id",p).attr("class",t.toolTip).style("opacity",0),m=f("nodeBar"),v=i.createElement("g",{key:a,id:f("nodeGElement")},i.createElement("rect",{x:r.x0,y:r.y0,height:s,width:r.x1-r.x0,fill:e._fillNodeColors(r),id:m,onMouseOver:e._onHover.bind(e,r),onMouseOut:function(){e._onLeave(r)},onFocus:e._onCloseCallout.bind(e),stroke:e._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&&i.createElement("g",{className:t.nodeTextContainer},i.createElement("g",{className:"nodeName"},i.createElement("text",{id:"".concat(m,"-name"),x:r.x0,y:r.y0,dy:"1.2em",dx:"0.4em",textAnchor:e._isRtl?"end":"start",fontWeight:"regular","aria-hidden":"true",fill:!o.selectedState||o.selectedState&&o.selectedNodes.has(r.index)&&o.selectedNode||o.selectedState&&!o.selectedNode?va:ma,fontSize:10,onMouseOver:e._showTooltip.bind(e,r.name,h,g),onMouseOut:e._hideTooltip.bind(e,g)},d)),i.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:e._isRtl?"end":"start",fontWeight:"bold","aria-hidden":"true",fill:!o.selectedState||o.selectedState&&o.selectedNodes.has(r.index)&&o.selectedNode||o.selectedState&&!o.selectedNode?va:ma,fontSize:14},r.actualValue)));n.push(v)})),n}},n.prototype._onLeave=function(t){this.state.selectedState&&this.setState({selectedState:!1,selectedNodes:new Set,selectedLinks:new Set,selectedNode:void 0})},n.prototype._onHover=function(t,e){if(e.persist(),this._onCloseCallout(),!this.state.selectedState){var n=function(t){var e=new Array,n=new Set;for(t.sourceLinks.forEach((function(t){e.push(t),n.add(t)}));e.length>0;)(r=e.shift().target)&&r.sourceLinks&&r.sourceLinks.forEach((function(t){n.add(t),e.push(t)}));for(t.targetLinks&&t.targetLinks.forEach((function(t){e.push(t),n.add(t)}));e.length>0;){var r;(r=e.shift().source)&&r.targetLinks&&r.targetLinks.forEach((function(t){n.add(t),e.push(t)}))}return n}(t),r=function(t){var e=[];return t.forEach((function(t){e.push(t.target),-1===e.indexOf(t.source)&&e.push(t.source)})),e}(n);r.push(t),this.setState({selectedState:!0,selectedNodes:new Set(Array.from(r).map((function(t){return t.index}))),selectedLinks:new Set(Array.from(n).map((function(t){return t.index}))),selectedNode:t,refSelected:e,isCalloutVisible:t.y1-t.y0<24,color:t.color,xCalloutValue:t.name,yCalloutValue:t.actualValue})}},n.prototype._onStreamHover=function(t,e){if(e.persist(),this._onCloseCallout(),!this.state.selectedState){var n=function(t){var e=new Array,n=new Set,r=new Set;for(e.push(t.source),n.add(t);e.length>0;){var i=e.shift();r.add(i),i.targetLinks&&i.targetLinks.length>0&&i.targetLinks.forEach((function(t){e.push(t.source),n.add(t)}))}for(e.push(t.target);e.length>0;)i=e.shift(),r.add(i),i.sourceLinks&&i.sourceLinks.length>0&&i.sourceLinks.forEach((function(t){e.push(t.target),n.add(t)}));return{selectedLinks:n,selectedNodes:r}}(t),r=n.selectedLinks,i=n.selectedNodes;this.setState({selectedState:!0,selectedNodes:new Set(Array.from(i).map((function(t){return t.index}))),selectedLinks:new Set(Array.from(r).map((function(t){return t.index}))),refSelected:e,selectedLink:t,isCalloutVisible:!0,color:t.source.color,xCalloutValue:t.target.name,yCalloutValue:t.unnormalizedValue.toString(),descriptionMessage:"from "+t.source.name})}},n.prototype._onStreamLeave=function(t){this.state.selectedState&&this.setState({selectedState:!1,selectedNodes:new Set,selectedLinks:new Set,selectedLink:void 0})},n.prototype._onFocusLink=function(t,e){e.persist(),this._onCloseCallout(),this.setState({refSelected:e.currentTarget,selectedLink:t,isCalloutVisible:!0,color:t.source.color,xCalloutValue:t.target.name,yCalloutValue:t.source.actualValue,descriptionMessage:"from "+t.source.name})},n.prototype._assignNodeColors=function(){var t,e,n=this.props,r=n.colorsForNodes,i=n.borderColorsForNodes;r&&i?(t=r,e=i):(t=ga.map((function(t){return t.fillColor})),e=ga.map((function(t){return t.borderColor})));var o=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=t[o],n.borderColor=e[o]),o=(o+1)%t.length}))},n.prototype._fillStreamColors=function(t,e){var n=this.state;return n.selectedState&&n.selectedLinks.has(t.index)&&n.selectedNode?n.selectedNode.color:n.selectedState&&n.selectedLinks.has(t.index)?e:void 0},n.prototype._fillStreamBorder=function(t,e){var n=this.state;return n.selectedState?n.selectedState&&n.selectedLinks.has(t.index)&&n.selectedNode?n.selectedNode.borderColor:n.selectedState&&n.selectedLinks.has(t.index)?e:fa:fa},n.prototype._getOpacityStream=function(t){var e=this.state;if(e.selectedState){if(!e.selectedLinks.has(t.index))return 1;if(e.selectedLinks.has(t.index)&&!e.selectedNode)return.3}return 1},n.prototype._getOpacityStreamBorder=function(t){var e=this.state;return!e.selectedState||e.selectedLinks.has(t.index)||e.selectedNode?1:.5},n.prototype._fitParentContainer=function(){var t=this,e=this.state,n=e.containerWidth,r=e.containerHeight;this._reqID=requestAnimationFrame((function(){var e=t.props.parentRef?t.props.parentRef:t.chartContainer,i=e&&e.getBoundingClientRect().width,o=e&&e.getBoundingClientRect().height;(n!==i||r!==o)&&t.setState({containerWidth:i,containerHeight:o})}))},n.prototype._truncateText=function(t,e,n){var r=e-n,i=0,o=(0,pi.Ys)(".nodeName").append("text").attr("class","tempText").attr("font-size","10").append("tspan").text(null);if(o.text(t),null!==o.node()&&o.node().getComputedTextLength()<=r)return t;o.text(null),o.text("..."),null!==o.node()&&(i=o.node().getComputedTextLength()),o.text(null);for(var a="",s=0;s<t.length;s++)if(a+=t[s],o.text(a),null!==o.node()&&o.node().getComputedTextLength()>=r-i){a=a.slice(0,-1),a+="...";break}return o.text(null),(0,pi.td)(".tempText").remove(),a},n.prototype._showTooltip=function(t,e,n,r){e&&(n.style("opacity",.9),n.html(t).style("left",r.pageX+"px").style("top",r.pageY-28+"px"))},n.prototype._hideTooltip=function(t){t.style("opacity",0)},n.prototype._isChartEmpty=function(){var t,e=null===(t=this.props.data)||void 0===t?void 0:t.SankeyChartData;return!(e&&e.nodes.length>0&&e.links.length>0)},n}(i.Component),ya=(0,t.z)(_a,(function(t){var n,r,i,o=t.className,a=t.theme,s=t.pathColor,l=a.effects;return{root:[a.fonts.medium,{display:"flex",width:"100%",height:"100%",flexDirection:"column",overflow:"hidden"},o],links:{stroke:s||a.palette.black,fill:a?a.semanticColors.bodyBackground:"#F5F5F5",strokeWidth:3,selectors:(n={},n[Yt.$v]={fill:"#000000"},n)},nodes:{fill:"#F5F5F5",selectors:(r={},r[Yt.$v]={fill:"#000000"},r)},toolTip:(0,e.pi)((0,e.pi)({},t.theme.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:t.theme.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"}),nodeTextContainer:{selectors:{text:{selectors:(i={},i[Yt.$v]={fill:"rgb(179, 179, 179)"},i)}},marginTop:"4px",marginLeft:"8px",marginBottom:"4px",marginRight:"8px"},calloutContentRoot:{boxShadow:l.elevation4}}}));function xa(t){var e=0,n=t.children,r=n&&n.length;if(r)for(;--r>=0;)e+=n[r].value;else e=1;t.value=e}function ba(t,e){t instanceof Map?(t=[void 0,t],void 0===e&&(e=Ea)):void 0===e&&(e=Ca);for(var n,r,i,o,a,s=new La(t),l=[s];n=l.pop();)if((i=e(n.data))&&(a=(i=Array.from(i)).length))for(n.children=i,o=a-1;o>=0;--o)l.push(r=i[o]=new La(i[o])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(Aa)}function Ca(t){return t.children}function Ea(t){return Array.isArray(t)?t[1]:null}function Sa(t){void 0!==t.data.value&&(t.value=t.data.value),t.data=t.data.data}function Aa(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function La(t){this.data=t,this.depth=this.height=0,this.parent=null}function ka(t,e){return t.parent===e.parent?1:2}function Ta(t){var e=t.children;return e?e[0]:t.t}function wa(t){var e=t.children;return e?e[e.length-1]:t.t}function Da(t,e,n){var r=n/(e.i-t.i);e.c-=r,e.s+=n,t.c+=r,e.z+=n,e.m+=n}function Ma(t,e,n){return t.a.parent===e.parent?t.a:n}function Pa(t,e){this._=t,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=e}La.prototype=ba.prototype={constructor:La,count:function(){return this.eachAfter(xa)},each:function(t,e){let n=-1;for(const r of this)t.call(e,r,++n,this);return this},eachAfter:function(t,e){for(var n,r,i,o=this,a=[o],s=[],l=-1;o=a.pop();)if(s.push(o),n=o.children)for(r=0,i=n.length;r<i;++r)a.push(n[r]);for(;o=s.pop();)t.call(e,o,++l,this);return this},eachBefore:function(t,e){for(var n,r,i=this,o=[i],a=-1;i=o.pop();)if(t.call(e,i,++a,this),n=i.children)for(r=n.length-1;r>=0;--r)o.push(n[r]);return this},find:function(t,e){let n=-1;for(const r of this)if(t.call(e,r,++n,this))return r},sum:function(t){return this.eachAfter((function(e){for(var n=+t(e.data)||0,r=e.children,i=r&&r.length;--i>=0;)n+=r[i].value;e.value=n}))},sort:function(t){return this.eachBefore((function(e){e.children&&e.children.sort(t)}))},path:function(t){for(var e=this,n=function(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;for(t=n.pop(),e=r.pop();t===e;)i=t,t=n.pop(),e=r.pop();return i}(e,t),r=[e];e!==n;)e=e.parent,r.push(e);for(var i=r.length;t!==n;)r.splice(i,0,t),t=t.parent;return r},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function(){return Array.from(this)},leaves:function(){var t=[];return this.eachBefore((function(e){e.children||t.push(e)})),t},links:function(){var t=this,e=[];return t.each((function(n){n!==t&&e.push({source:n.parent,target:n})})),e},copy:function(){return ba(this).eachBefore(Sa)},[Symbol.iterator]:function*(){var t,e,n,r,i=this,o=[i];do{for(t=o.reverse(),o=[];i=t.pop();)if(yield i,e=i.children)for(n=0,r=e.length;n<r;++n)o.push(e[n])}while(o.length)}},Pa.prototype=Object.create(La.prototype);var Fa,Ia,Na=(0,o.y)(),Va=function(t){function n(e,n,r,i,o,a){void 0===i&&(i=[]),void 0===o&&(o=[]);var s=t.call(this,e,r,i,o)||this;return s.composition=n,s._treeTraversal=a,s}return(0,e.ZT)(n,t),n.prototype.createTree=function(t,e){var n,r,i,o,a,s,l=(t=t<65?65:t>90?90:t)||75,c=ba(this.treeData,(function(t){return t.children})),u=(null==c?void 0:c.height)+1;(function(){var t=ka,e=1,n=1,r=null;function i(i){var l=function(t){for(var e,n,r,i,o,a=new Pa(t,0),s=[a];e=s.pop();)if(r=e._.children)for(e.children=new Array(o=r.length),i=o-1;i>=0;--i)s.push(n=e.children[i]=new Pa(r[i],i)),n.parent=e;return(a.parent=new Pa(null,0)).children=[a],a}(i);if(l.eachAfter(o),l.parent.m=-l.z,l.eachBefore(a),r)i.eachBefore(s);else{var c=i,u=i,d=i;i.eachBefore((function(t){t.x<c.x&&(c=t),t.x>u.x&&(u=t),t.depth>d.depth&&(d=t)}));var h=c===u?1:t(c,u)/2,p=h-c.x,f=e/(u.x+h+p),g=n/(d.depth||1);i.eachBefore((function(t){t.x=(t.x+p)*f,t.y=t.depth*g}))}return i}function o(e){var n=e.children,r=e.parent.children,i=e.i?r[e.i-1]:null;if(n){!function(t){for(var e,n=0,r=0,i=t.children,o=i.length;--o>=0;)(e=i[o]).z+=n,e.m+=n,n+=e.s+(r+=e.c)}(e);var o=(n[0].z+n[n.length-1].z)/2;i?(e.z=i.z+t(e._,i._),e.m=e.z-o):e.z=o}else i&&(e.z=i.z+t(e._,i._));e.parent.A=function(e,n,r){if(n){for(var i,o=e,a=e,s=n,l=o.parent.children[0],c=o.m,u=a.m,d=s.m,h=l.m;s=wa(s),o=Ta(o),s&&o;)l=Ta(l),(a=wa(a)).a=e,(i=s.z+d-o.z-c+t(s._,o._))>0&&(Da(Ma(s,e,r),e,i),c+=i,u+=i),d+=s.m,c+=o.m,h+=l.m,u+=a.m;s&&!wa(a)&&(a.t=s,a.m+=d-u),o&&!Ta(l)&&(l.t=o,l.m+=c-h,r=e)}return r}(e,i,e.parent.A||r[0])}function a(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function s(t){t.x*=e,t.y=t.depth*n}return i.separation=function(e){return arguments.length?(t=e,i):t},i.size=function(t){return arguments.length?(r=!1,e=+t[0],n=+t[1],i):r?null:[e,n]},i.nodeSize=function(t){return arguments.length?(r=!0,e=+t[0],n=+t[1],i):r?[e,n]:null},i})().nodeSize([l,l/1.5]).separation((function(t,e){return t.parent===c&&e.parent===c?3.5:1}))(c).descendants().forEach((function(t){t.y=0===t.depth?10:130*t.depth,t.x+=e/2}));var d=[],h=0,p=function(t){var e,n;t.id=h,d.push({id:h,children:t.children,dataName:t.data.name,subName:t.data.subname,bodyText:t.data.bodytext,metricName:null===(e=t.data)||void 0===e?void 0:e.metric,fill:t.data.fill,x:t.x,y:t.y,parentID:null===(n=t.parent)||void 0===n?void 0:n.id}),h++};0===this._treeTraversal?c.each((function(t){p(t)})):c.eachBefore((function(t){p(t)}));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===(i=d[x.parentID])||void 0===i?void 0:i.x)+C/2+10,k=null===(o=d[x.parentID])||void 0===o?void 0:o.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,Do.Z)(S,(function(t){return t.x})),P=(0,ji.Z)(S,(function(t){return t.x}));this.addLinktoSVG(x.id,x.x,x.y,M,x.children[0].y,!1,f,g,m,P)}}},n}(function(){function t(t,e,n,r){void 0===n&&(n=[]),void 0===r&&(r=[]),this._nodeElements=[],this._linkElements=[],this.treeData=t,this.styleClassNames=e,this._nodeElements=n,this._linkElements=r}return t.prototype.truncateText=function(t,e,n,r){var i,o=t.split(/\s+/).reverse(),a="",s=(0,pi.Ys)(".svgTree").append("text").attr("class","tempText").append("tspan").text(null);r&&s.attr("class",r);for(var l=[];a=o.pop();)if(l.push(a),s.text(l.join(" ")+" "),null!==s.node()&&s.node().getComputedTextLength()>e-n){l.pop(),l.push("...");break}return i=l.join(" ")+" ",s.text(null),(0,pi.td)(".tempText").remove(),i},t.prototype.addNodeShapetoSVG=function(t,e,n,r,o,a,s,l,c,u,d){var h="nodeId: ".concat(u," \nnodeMainText: ").concat(t,"\nsubText ").concat(e," ").concat(d),p=o-l/2;!r&&0===u&&n||this._nodeElements.push(i.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)})),e&&(e=this.truncateText(e,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)),t=this.truncateText(t,l,l/4,this.styleClassNames.rectText);var f=r?i.createElement("tspan",{className:this.styleClassNames.rectMetricText,dy:"1.4em",x:p+l/2},r):n?i.createElement(i.Fragment,null,i.createElement("tspan",{className:this.styleClassNames.rectSubText,dy:"1.4em",x:p+l/2},e),i.createElement("tspan",{className:this.styleClassNames.rectBodyText,dy:"1.4em",x:p+l/2},n)):i.createElement("tspan",{className:this.styleClassNames.rectSubText,dy:"1.4em",x:p+l/2},e);e||r||n?this._nodeElements.push(i.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)},t,f)):this._nodeElements.push(i.createElement("text",{textAnchor:"middle",className:this.styleClassNames.rectMetricText,dy:a+c/1.6,x:p+l/2,key:"".concat(u).concat(this.styleClassNames.rectText)},t))},t.prototype.createPathLink=function(t,e,n,r,i,o,a,s,l){var c="M".concat(n-o/2,",").concat(r-s," H").concat(l+o/2," M").concat(t,",").concat(r-s,"\n V").concat(e+a+s/2),u="M".concat(t,",").concat(e+a+s/2," V").concat(e+5*s,"\n H").concat(t-o/2," H").concat(t+o/2);return i?u:c},t.prototype.addLinktoSVG=function(t,e,n,r,o,a,s,l,c,u){void 0===u&&(u=0),this._linkElements.push(i.createElement("path",{className:this.styleClassNames.link,d:this.createPathLink(e,n,r,o,a,s,l,c,u),key:"".concat(t).concat(this.styleClassNames.link)}))},t}()),Oa=function(t){function n(e){var n,r,i,o,a,s=this;return(s=t.call(this,e)||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===(i=s.props.margins)||void 0===i?void 0:i.left)||50,right:(null===(o=s.props.margins)||void 0===o?void 0:o.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,e.ZT)(n,t),n.prototype.componentDidMount=function(){var t=this.props,e=t.theme,n=t.className,r=t.styles;this._classNames=Na(r,{theme:e,className:n}),this.createTreeChart(),this.setState({_width:this.props.width||1500,_height:this.props.height||700})},n.prototype.componentDidUpdate=function(t){if(t.layoutWidth!==this.props.layoutWidth){var e=(0,pi.td)("text"),n=(0,pi.td)("rect"),r=(0,pi.td)("path");0===this._nodeElements.length&&0===this._linkElements.length&&(e.remove(),n.remove(),r.remove()),this.createTreeChart()}},n.prototype.createTreeChart=function(){var t=[],e=[],n=new Va(this._treeData,this._composition,this._classNames,t,e,this._treeTraversal),r=this.state._width-this._margin.left-this._margin.right;n.createTree(this.props.layoutWidth,r),this._nodeElements=t,this._linkElements=e},n.prototype.render=function(){var t;return i.createElement(dn,null,i.createElement("div",{className:null===(t=this._classNames)||void 0===t?void 0:t.root},i.createElement("svg",{className:"svgTree",width:this.state._width-this._margin.left-this._margin.right,height:this.state._height-this._margin.top-this._margin.bottom},i.createElement("g",{className:"svgNode"},this._nodeElements.map((function(t){return t}))),i.createElement("g",{className:"svgLink"},this._linkElements.map((function(t){return t}))))))},n}(i.Component),Ba=(0,t.z)(Oa,(function(t){return{root:[t.theme.spacing,"ms-TreeChart",t.className,{overflow:"scroll"}],link:{fill:"none",stroke:"#A1A1A1",strokeWidth:"2px"},rectNode:{strokeWidth:"2px",fill:t.theme.semanticColors.bodyBackground,padding:"10px",rx:"2px"},rectText:(0,e.pi)({fill:t.theme.palette.neutralDark},t.theme.fonts.large),rectSubText:(0,e.pi)({fill:t.theme.palette.neutralPrimary},t.theme.fonts.medium),rectBodyText:(0,e.pi)({fill:t.theme.palette.neutralPrimaryAlt},t.theme.fonts.xSmall),rectMetricText:(0,e.pi)({fill:t.theme.palette.neutralDark},t.theme.fonts.xLarge)}}));!function(t){t[t.long=1]="long",t[t.compact=0]="compact"}(Fa||(Fa={})),function(t){t[t.preOrder=1]="preOrder",t[t.levelOrder=0]="levelOrder"}(Ia||(Ia={}));var Ha,Ra=(0,o.y)(),za=function(t){function n(e){var n=t.call(this,e)||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,e.ZT)(n,t),n.prototype.componentDidMount=function(){var t=this;if(!this._isChartEmpty()){var e=Qi().x((function(e){return t.x(e.x)})).y0(this.state._height).y1((function(e){return t.y(e.y)})).curve(mi);this.area=e;var n=yi().x((function(e){return t.x(e.x)})).y((function(e){return t.y(e.y)})).curve(mi);this.line=n;var r=this.props.data.lineChartData[0].data,i=function(t,e){let n,r;if(void 0===e)for(const e of t)null!=e&&(void 0===n?e>=e&&(n=r=e):(n>e&&(n=e),r<e&&(r=e)));else{let i=-1;for(let o of t)null!=(o=e(o,++i))&&(void 0===n?o>=o&&(n=r=o):(n>o&&(n=o),r<o&&(r=o)))}return[n,r]}(r,(function(t){return t.x})),o=i[0],a=i[1];this.x=(0,Mo.Z)().domain([o,a]).range([this.margin.left,this.state._width-this.margin.right]),this.y=(0,Mo.Z)().domain([0,(0,ji.Z)(r,(function(t){return t.y}))]).range([this.state._height-this.margin.bottom,this.margin.top]),this.setState({_points:r})}},n.prototype.drawSparkline=function(){return i.createElement(i.Fragment,null,i.createElement("path",{className:"line",d:this.line(this.state._points),fill:"transparent",opacity:1,strokeWidth:2,stroke:this.props.data.lineChartData[0].color}),i.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 t=Ra(this.props.styles,{theme:this.props.theme});return this._isChartEmpty()?i.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):i.createElement(dn,{direction:Re.horizontal,isCircularNavigation:!0,className:t.inlineBlock},i.createElement("div",{className:t.inlineBlock},this.state._width>=50&&this.state._height>=16?i.createElement("svg",{width:this.state._width,height:this.state._height,"data-is-focusable":!0},this.state._points?this.drawSparkline():null):i.createElement(i.Fragment,null),this.props.showLegend&&this.props.data.lineChartData[0].legend?i.createElement("svg",{width:this.state._valueTextWidth,height:this.state._height,"data-is-focusable":!0},i.createElement("text",{x:"0%",textAnchor:this._isRTL?"end":"start",dx:8,y:"100%",dy:-5,className:t.valueText},this.props.data.lineChartData[0].legend)):i.createElement(i.Fragment,null)))},n.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.lineChartData&&this.props.data.lineChartData.length>0&&0===this.props.data.lineChartData.filter((function(t){return 0===t.data.length})).length)},n}(i.Component),Wa=(0,t.z)(za,(function(t){return{inlineBlock:{display:"inline"},valueText:(0,e.pi)((0,e.pi)({},t.theme.fonts.smallPlus),{fill:t.theme.semanticColors.messageText})}})),Ya=(0,o.y)(),Za=function(t){function n(n){var r=t.call(this,n)||this;return r._isRtl=(0,a.zg)(),r._getMargins=function(t){r.margins=t},r._renderContentForOnlyBars=function(t){var e,n,o,a=r.props.useSingleColor,s=void 0!==a&&a,l=0;return r.props.data.forEach((function(e,n){e.y===t.y&&(l=n)})),o=s?r.props.colors?r._createColors()(1):li(1,0,null===(e=r.props.theme)||void 0===e?void 0:e.isInverted):t.color?t.color:r.props.colors?r._createColors()(t.x):li(l,0,null===(n=r.props.theme)||void 0===n?void 0:n.isInverted),i.createElement(i.Fragment,null,i.createElement(We.ChartHoverCard,{XValue:t.xAxisCalloutData||t.x.toString(),Legend:t.legend,YValue:t.yAxisCalloutData||t.y,color:o,culture:r.props.culture}))},r._renderCallout=function(t){return t?r._renderContentForOnlyBars(t):null},r._getCustomizedCallout=function(){return r.props.onRenderCalloutPerDataPoint?r.props.onRenderCalloutPerDataPoint(r.state.dataPointCalloutProps,r._renderCallout):null},r._getGraphData=function(t,e,n,i,o,a){return r._bars=r._yAxisType===ze.OH.NumericAxis?r._createNumericBars(n,i,o,a):r._createStringBars(n,i,o,a)},r._refCallback=function(t,e){r._refArray.push({index:e,refElement:t})},r._getCalloutContentForBar=function(t){var e,n,i,o=[],a=r.props.useSingleColor,s=void 0!==a&&a,l=r.props.data,c=l.filter((function(e){return e.y===t.y})),u=0;return l.forEach((function(e,n){e.y===t.y&&(u=n)})),i=s?r.props.colors?r._createColors()(1):li(1,0,null===(e=r.props.theme)||void 0===e?void 0:e.isInverted):c[0].color?c[0].color:r.props.colors?r._createColors()(c[0].x):li(u,0,null===(n=r.props.theme)||void 0===n?void 0:n.isInverted),o.push({legend:c[0].legend,y:c[0].x,color:i,data:c[0].yAxisCalloutData,yAxisCalloutData:c[0].yAxisCalloutData}),{YValueHover:o,hoverXValue:t.yAxisCalloutData||t.y.toString()}},r._onBarLeave=function(){},r._handleChartMouseLeave=function(){r._calloutAnchorPoint=null,r.setState({isCalloutVisible:!1,activeXdataPoint:null,YValueHover:[],hoverXValue:""})},r._onBarFocus=function(t,e,n){if(!1===r.state.isLegendSelected||r.state.isLegendSelected&&r.state.selectedLegendTitle===t.legend){var i=r._getCalloutContentForBar(t),o=i.YValueHover,a=i.hoverXValue;r._refArray.forEach((function(i,s){e===s&&r.setState({refSelected:i.refElement,isCalloutVisible:!0,selectedLegendTitle:t.legend,dataForHoverCard:t.x,color:r.props.useSingleColor?n:t.color,xCalloutValue:t.yAxisCalloutData||t.y.toString(),yCalloutValue:t.xAxisCalloutData||t.x.toString(),dataPointCalloutProps:t,activeXdataPoint:t.x,YValueHover:o,hoverXValue:a,callOutAccessibilityData:t.callOutAccessibilityData})}))}},r._getScales=function(t,e,n){if(n){var i=(0,ji.Z)(r._points,(function(t){return t.x})),o=(0,ji.Z)(r._points,(function(t){return t.y}));return{xBarScale:(0,Mo.Z)().domain(r._isRtl?[i,0]:[0,i]).nice().range([r.margins.left,e-r.margins.right]),yBarScale:a=(0,Mo.Z)().domain([0,o]).range([t-r.margins.bottom,r.margins.top])}}i=(0,ji.Z)(r._points,(function(t){return t.x}));var a=(0,Fo.Z)().domain(r._yAxisLabels).range([t-r.margins.bottom-r._barHeight/2,r.margins.top+r._barHeight/2]).padding(r.props.yAxisPadding||0);return{xBarScale:(0,Mo.Z)().domain(r._isRtl?[i,0]:[0,i]).nice().range([r.margins.left,e-r.margins.right]),yBarScale:a}},r._closeCallout=function(){r.setState({isCalloutVisible:!1})},r._getLegendData=function(t,n){var o=r.props.useSingleColor,a=[];return t.forEach((function(t,e){var n,i=o?r.props.colors?r._createColors()(1):li(1,0,null===(n=r.props.theme)||void 0===n?void 0:n.isInverted):t.color,s={title:t.legend,color:i,action:function(){r._onLegendClick(t.legend)},hoverAction:function(){r._handleChartMouseLeave(),r._onLegendHover(t.legend)},onMouseOutAction:function(t){r._onLegendLeave(t)}};a.push(s)})),i.createElement(vr,(0,e.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(t){if(t&&t.yAxisDomainValues.length){var e=t.yAxisDomainValues;r._xMax=Math.max(e[e.length-1],r.props.xMaxValue||0)}},r._getAriaLabel=function(t){var e,n=t.xAxisCalloutData||t.x,r=t.yAxisCalloutData||t.y;return(null===(e=t.callOutAccessibilityData)||void 0===e?void 0:e.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,ze.SY)(r.props.data[0].x,!0):ze.xl.NumericAxis,r._yAxisType=r.props.data&&r.props.data.length>0?(0,ze.SY)(r.props.data[0].y,!1):ze.OH.StringAxis,r}return(0,e.ZT)(n,t),n.prototype.render=function(){var t=this;this._adjustProps();var n=(0,e.ev)([],this._points,!0).reverse();this._yAxisLabels=n.map((function(t){return t.y})),this._xMax=Math.max((0,ji.Z)(this._points,(function(t){return t.x})),this.props.xMaxValue||0);var r=this._getLegendData(this._points,this.props.theme.palette);this._classNames=Ya(this.props.styles,{theme:this.props.theme,legendColor:this.state.color});var o=(0,e.pi)((0,e.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,ze.ey)(this.state.callOutAccessibilityData)),a={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return i.createElement(Ti,(0,e.pi)({},this.props,{points:this._points,chartType:ze.$X.HorizontalBarChartWithAxis,xAxisType:this._xAxisType,yAxisType:this._yAxisType,stringDatasetForYAxisDomain:this._yAxisLabels,calloutProps:o,tickParams:a,legendBars:r,barwidth:this._barHeight,focusZoneDirection:Re.vertical,customizedCallout:this._getCustomizedCallout(),getmargins:this._getMargins,getGraphData:this._getGraphData,getAxisData:this._getAxisData,onChartMouseLeave:this._handleChartMouseLeave,children:function(e){return i.createElement(i.Fragment,null,i.createElement("g",null,t._bars))}}))},n.prototype._adjustProps=function(){this._points=this.props.data||[],this._barHeight=this.props.barHeight||32;var t=this.props.theme.palette;this._colors=this.props.colors||[t.blueLight,t.blue,t.blueMid,t.blueDark]},n.prototype._createColors=function(){var t=this,e=this._colors.length<=1?1:1/(this._colors.length-1),n=this.props.useSingleColor;if(void 0!==n&&n)return function(e){var n=t.props,r=n.theme,i=n.colors;return i&&i.length>0?i[0]:r.palette.blueLight};for(var r=[],i=0;i<this._colors.length;i++)r.push(e*i*this._xMax);return(0,Mo.Z)().domain(r).range(this._colors)},n.prototype._onBarHover=function(t,e,n){n.persist();var r=this._getCalloutContentForBar(t),i=r.YValueHover,o=r.hoverXValue;(!1===this.state.isLegendSelected||this.state.isLegendSelected&&this.state.selectedLegendTitle===t.legend)&&this._calloutAnchorPoint!==t&&(this._calloutAnchorPoint=t,this.setState({refSelected:n,isCalloutVisible:!0,dataForHoverCard:t.x,selectedLegendTitle:t.legend,color:this.props.useSingleColor?e:t.color,xCalloutValue:t.yAxisCalloutData||t.y.toString(),yCalloutValue:t.xAxisCalloutData||t.x.toString(),dataPointCalloutProps:t,activeXdataPoint:t.x,YValueHover:i,hoverXValue:o,callOutAccessibilityData:t.callOutAccessibilityData}))},n.prototype._createNumericBars=function(t,n,r,o){var a=this,s=this.props.useSingleColor,l=void 0!==s&&s,c=this._getScales(t,n,!0),u=c.xBarScale,d=c.yBarScale,h=(0,e.ev)([],this._points,!0);h.sort((function(t,e){var n="number"==typeof t.y?t.y:parseFloat(t.y);return("number"==typeof e.y?e.y:parseFloat(e.y))-n}));var p=h.map((function(t,e){var r,o,s,c=!0;return(a.state.isLegendHovered||a.state.isLegendSelected)&&(c=a.state.selectedLegendTitle===t.legend),a._classNames=Ya(a.props.styles,{theme:a.props.theme,legendColor:a.state.color,shouldHighlight:c}),Math.max(d(t.y),0)<1?i.createElement(i.Fragment,{key:t.x}," "):(s=l?a.props.colors?a._createColors()(1):li(1,0,null===(r=a.props.theme)||void 0===r?void 0:r.isInverted):a.props.colors?a._createColors()(t.x):li(e,0,null===(o=a.props.theme)||void 0===o?void 0:o.isInverted),i.createElement("rect",{key:t.y,x:a._isRtl?u(t.x):a.margins.left,className:a._classNames.opacityChangeOnHover,y:d(t.y)-a._barHeight/2,"data-is-focusable":!0,width:a._isRtl?n-a.margins.right-Math.max(u(t.x),0):Math.max(u(t.x),0)-a.margins.left,height:a._barHeight,ref:function(e){a._refCallback(e,t.legend)},onClick:t.onClick,onMouseOver:a._onBarHover.bind(a,t,s),"aria-label":a._getAriaLabel(t),role:"img","aria-labelledby":"toolTip".concat(a._calloutId),onMouseLeave:a._onBarLeave,onFocus:a._onBarFocus.bind(a,t,e,s),onBlur:a._onBarLeave,fill:t.color&&!l?t.color:s}))}));return p},n.prototype._tooltipOfYAxislabels=function(t){var e=this,n=t.tooltipCls,r=t.yAxis,i=t.id;if(null===r)return null;for(var o=(0,pi.Ys)("body").append("div").attr("id",i).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(t){var n=d[t];(0,pi.Ys)(n).on("mouseover",(function(n){e.state.tooltipElement||(o.style("opacity",.9),o.html(l[t]).style("left",pi.B.pageX+"px").style("top",pi.B.pageY-28+"px"))})).on("mouseout",(function(t){o.style("opacity",0)}))};for(c=0;c<h;c++)p(c)},n.prototype._createStringBars=function(t,e,n,r){var o=this,a=this._getScales(t,e,!1),s=a.xBarScale,l=a.yBarScale,c=this.props.useSingleColor,u=void 0!==c&&c,d=this._points.map((function(t,n){var r,a,c;return Math.max(l(t.y),0)<1?i.createElement(i.Fragment,{key:t.x}," "):(c=u?o.props.colors?o._createColors()(1):li(1,0,null===(r=o.props.theme)||void 0===r?void 0:r.isInverted):o.props.colors?o._createColors()(t.x):li(n,0,null===(a=o.props.theme)||void 0===a?void 0:a.isInverted),i.createElement("rect",{transform:"translate(0,".concat(.5*(l.bandwidth()-o._barHeight),")"),key:t.x,x:o._isRtl?s(t.x):o.margins.left,y:l(t.y),width:o._isRtl?e-o.margins.right-Math.max(s(t.x),0):Math.max(s(t.x),0)-o.margins.left,height:o._barHeight,"aria-labelledby":"toolTip".concat(o._calloutId),"aria-label":o._getAriaLabel(t),role:"img",ref:function(e){o._refCallback(e,t.legend)},onClick:t.onClick,onMouseOver:o._onBarHover.bind(o,t,c),onMouseLeave:o._onBarLeave,onBlur:o._onBarLeave,"data-is-focusable":!0,onFocus:o._onBarFocus.bind(o,t,n,c),fill:t.color&&!u?t.color:c}))}));if(!this.props.showYAxisLablesTooltip)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}if(this.props.showYAxisLablesTooltip){var h=(0,pi.Ys)(r).call(l);if(!this.state.tooltipElement)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}var p={tooltipCls:this._classNames.tooltip,id:this._tooltipId,yAxis:h};h&&this._tooltipOfYAxislabels(p)}return d},n.prototype._onLegendClick=function(t){this.state.isLegendSelected?this.state.selectedLegendTitle===t?this.setState({isLegendSelected:!1,selectedLegendTitle:t}):this.setState({selectedLegendTitle:t}):this.setState({isLegendSelected:!0,selectedLegendTitle:t})},n.prototype._onLegendHover=function(t){!1===this.state.isLegendSelected&&this.setState({isLegendHovered:!0,selectedLegendTitle:t})},n.prototype._onLegendLeave=function(t){(t||!1===this.state.isLegendSelected)&&this.setState({isLegendHovered:!1,selectedLegendTitle:"",isLegendSelected:!t&&this.state.isLegendSelected})},n}(i.Component),qa=(0,t.z)(Za,(function(t){var n=t.shouldHighlight,r=t.theme;return{opacityChangeOnHover:{opacity:n?"":"0.1"},xAxisTicks:[],tooltip:(0,e.pi)((0,e.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(t){t.Percentage="percentage",t.Fraction="fraction"}(Ha||(Ha={}));var Xa=[{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}],Ua=(0,o.y)(),ja=function(t){function n(n){var r=t.call(this,n)||this;return r._getMargins=function(){var t=r.props,e=t.hideMinMax;return{left:16+(e?0:40),right:16+(e?0:40),top:16+(t.chartTitle?27:2),bottom:16+(t.sublabel?20:0)}},r._getStylesBasedOnBreakpoint=function(){for(var t=Xa.length-1;t>=0;t-=1)if(r._outerRadius>=Xa[t].minRadius)return{arcWidth:Xa[t].arcWidth,chartValueSize:Xa[t].fontSize};return{arcWidth:Xa[0].arcWidth,chartValueSize:Xa[0].fontSize}},r._initProps=function(){var t=r.props,e=t.minValue,n=void 0===e?0:e,i=t.maxValue,o=t.theme,a=Array.from(r.props.segments),s=n;a.forEach((function(t,e){s+=t.size,t.color=void 0!==t.color?ci(t.color,o.isInverted):li(e,0,o.isInverted)})),void 0!==i&&s<i&&(a.push({legend:"Unknown",size:i-s,color:o.palette.neutralLight}),s=i);var l=jr().padAngle(2/r._outerRadius).padRadius(r._outerRadius),c=r._isRTL?Array.from(a).reverse():a,u=-Math.PI/2,d=c.map((function(t,e){var i=u+t.size/(s-n)*Math.PI,o=l({innerRadius:r._innerRadius,outerRadius:r._outerRadius,startAngle:u,endAngle:i});return u=i,{d:o,segmentIndex:r._isRTL?a.length-1-e:e}}));return{minValue:n,maxValue:s,segments:a,arcs:d}},r._renderNeedle=function(){var t=r._sweepFraction[0]/r._sweepFraction[1]*180,e=r._isRTL?180-t:t,n=r._outerRadius-r._innerRadius+4;return i.createElement("g",{transform:"rotate(".concat(e,", 0, 0)")},i.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(t){return r._handleFocus(t,"Needle")},onBlur:r._handleBlur,onMouseEnter:function(t){return r._handleMouseOver(t,"Needle")},onMouseMove:function(t){return r._handleMouseOver(t,"Needle")}}))},r._renderLegends=function(){if(r.props.hideLegend)return null;var t=r._segments.map((function(t){return{title:t.legend,color:t.color,action:function(){r.state.selectedLegend===t.legend?r.setState({selectedLegend:""}):r.setState({selectedLegend:t.legend})},hoverAction:function(){r.setState({hoveredLegend:t.legend})},onMouseOutAction:function(){r.setState({hoveredLegend:""})}}}));return i.createElement("div",{className:r._classNames.legendsContainer},i.createElement(vr,(0,e.pi)({legends:t,centerLegends:!0},r.props.legendProps)))},r._legendHighlighted=function(t){return r.state.selectedLegend===t||""===r.state.selectedLegend&&r.state.hoveredLegend===t},r._noLegendHighlighted=function(){return""===r.state.selectedLegend&&""===r.state.hoveredLegend},r._handleFocus=function(t,e){r._showCallout(t.target,e,!0)},r._handleBlur=function(){r._hideCallout(!0)},r._handleMouseOver=function(t,e){r._showCallout(t.target,e,!1)},r._handleMouseOut=function(){r._hideCallout(!1)},r._handleCalloutDismiss=function(){r._hideCallout(!1)},r._showCallout=function(t,n,i){if(r._calloutAnchor!==n){r._calloutAnchor=n;var o="Current value is "+(r.props.chartValueFormat===Ha.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(t,e){var n={legend:t.legend,y:"".concat(a+(e>0?1:0)," - ").concat(a+t.size),color:t.color};return a+=t.size,n}));r.setState((0,e.pi)({calloutTarget:t,isCalloutVisible:["Needle","Chart value"].includes(n)||""===r.state.selectedLegend||r.state.selectedLegend===n,hoverXValue:o,hoverYValues:s},i?{focusedElement:n}:{}))}},r._hideCallout=function(t){r._calloutAnchor="",r.setState((0,e.pi)({calloutTarget:null,isCalloutVisible:!1,hoverXValue:"",hoverYValues:[]},t?{focusedElement:""}:{}))},r._wrapContent=function(t,e,n){var r=(0,pi.Ys)("#".concat(e));if(r.text(t),!r.node())return!1;for(var i=!1,o=r.node().getComputedTextLength();o>n&&t.length>0;)t=t.slice(0,-1),r.text(t+"..."),i=!0,o=r.node().getComputedTextLength();return i},r._multiValueCallout=function(t){var n=r._yValueHoverSubCountsExists(t.YValueHover);return i.createElement("div",{className:r._classNames.calloutContentRoot},i.createElement("div",{className:r._classNames.calloutDateTimeContainer,style:n?{marginBottom:"11px"}:{}},i.createElement("div",(0,e.pi)({className:r._classNames.calloutContentX},(0,ze.ey)(t.xAxisCalloutAccessibilityData,"text",!1)),(0,ze.Ts)(t.hoverXValue,r.props.culture))),i.createElement("div",{className:r._classNames.calloutInfoContainer,style:n?{display:"flex"}:{}},t.YValueHover&&t.YValueHover.map((function(t,o,a){var s=o+1===a.length,l=t.shouldDrawBorderBottom,c=void 0!==l&&l;return i.createElement("div",(0,e.pi)({},(0,ze.ey)(t.callOutAccessibilityData,"text",!1),{key:"callout-content-".concat(o),style:n?(0,e.pi)({display:"inline-block"},c&&{borderBottom:"1px solid ".concat(r.props.theme.semanticColors.menuDivider),paddingBottom:"10px"}):(0,e.pi)({},c&&{borderBottom:"1px solid ".concat(r.props.theme.semanticColors.menuDivider),paddingBottom:"10px"})}),r._getCalloutContent(t,o,n,s))})),!!t.descriptionMessage&&i.createElement("div",{className:r._classNames.descriptionMessage},t.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,e.ZT)(n,t),n.prototype.componentDidMount=function(){this._rootElem&&this.setState({width:this._rootElem.clientWidth,height:this._rootElem.clientHeight})},n.prototype.render=function(){var t=this;this._margins=this._getMargins(),this._legendsHeight=this.props.hideLegend?0:24;var n=this.props.width||this.state.width,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 o=this._getStylesBasedOnBreakpoint(),a=o.arcWidth,s=o.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=Ua(this.props.styles,{theme:this.props.theme,className:this.props.className,chartWidth:n,chartHeight:r-this._legendsHeight,chartValueSize:s}),i.createElement("div",{className:this._classNames.root,ref:function(e){return t._rootElem=e}},i.createElement(dn,{direction:Re.horizontal},i.createElement("svg",{className:this._classNames.chart,"aria-label":"This is a gauge chart with ".concat(this._segments.length," section represented."),onMouseLeave:this._handleMouseOut},i.createElement("g",{transform:"translate(".concat(n/2,", ").concat(r-(this._margins.bottom+this._legendsHeight),")")},this.props.chartTitle&&i.createElement("text",{x:0,y:-(this._outerRadius+11),textAnchor:"middle",className:this._classNames.chartTitle},this.props.chartTitle),!this.props.hideMinMax&&i.createElement(i.Fragment,null,i.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,ze.cE)(this._minValue)),i.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,ze.cE)(u))),h.map((function(n,r){return i.createElement("path",(0,e.pi)({key:r,d:n.d,fill:t._segments[n.segmentIndex].color,fillOpacity:t._legendHighlighted(t._segments[n.segmentIndex].legend)||t._noLegendHighlighted()?1:.1,strokeWidth:t.state.focusedElement===t._segments[n.segmentIndex].legend?2:0,className:t._classNames.segment},(0,ze.ey)((0,e.pi)({ariaLabel:"".concat(t._segments[n.segmentIndex].legend,", ").concat(t._segments[n.segmentIndex].size," out of ").concat(u-t._minValue," or ").concat((t._segments[n.segmentIndex].size/(u-t._minValue)*100).toFixed(),"%")},t._segments[n.segmentIndex].accessibilityData),"img",!0),{onFocus:function(e){return t._handleFocus(e,t._segments[n.segmentIndex].legend)},onBlur:t._handleBlur,onMouseEnter:function(e){return t._handleMouseOver(e,t._segments[n.segmentIndex].legend)},onMouseMove:function(e){return t._handleMouseOver(e,t._segments[n.segmentIndex].legend)}}))})),this._renderNeedle(),i.createElement("g",{onMouseEnter:function(e){return t._handleMouseOver(e,"Chart value")},onMouseMove:function(e){return t._handleMouseOver(e,"Chart value")}},i.createElement(Ei,{content:"function"==typeof this.props.chartValueFormat?this.props.chartValueFormat(this._sweepFraction):this.props.chartValueFormat===Ha.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&&i.createElement(Ei,{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&&i.createElement(He,(0,e.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(t){return!!t&&t.some((function(t){return t.yAxisCalloutData&&"string"!=typeof t.yAxisCalloutData}))},n.prototype._getCalloutContent=function(t,e,n,r){var o=r?{}:{marginRight:"16px"},a=void 0!==t.index&&-1!==t.index,s=Ua(this.props.styles,{theme:this.props.theme,lineColor:t.color,toDrawShape:a}),l=this.props.culture,c=(0,ze.Ts)(t.y,l);if(t.yAxisCalloutData&&"string"!=typeof t.yAxisCalloutData){var u=t.yAxisCalloutData;return i.createElement("div",{style:o},i.createElement("div",{className:"ms-fontWeight-semibold",style:{fontSize:"12pt"}},t.legend," (",c,")"),Object.keys(u).map((function(t){return i.createElement("div",{key:t,className:s.calloutBlockContainer},i.createElement("div",{className:s.calloutlegendText}," ",(0,ze.Ts)(t,l)),i.createElement("div",{className:s.calloutContentY},(0,ze.Ts)(u[t],l)))})))}return i.createElement("div",{style:n?o:{}},n&&i.createElement("div",{className:"ms-fontWeight-semibold",style:{fontSize:"12pt"}},t.legend," (",c,")"),i.createElement("div",{id:"".concat(e,"_").concat(t.y),className:s.calloutBlockContainer},a&&i.createElement(fr,{svgProps:{className:s.shapeStyles},pathProps:{fill:t.color},shape:ze.wo[t.index%Object.keys(ze.Ml).length]}),i.createElement("div",null,i.createElement("div",{className:s.calloutlegendText}," ",t.legend),i.createElement("div",{className:s.calloutContentY},(0,ze.Ts)(t.yAxisCalloutData?t.yAxisCalloutData:t.y||t.data,l)))))},n}(i.Component),Ga=(0,t.z)(ja,(function(t){var n,r,i,o,a=t.theme,s=t.chartValueSize,l=t.chartWidth,c=t.chartHeight,u=t.className,d=t.lineColor,h=t.toDrawShape;return{root:[a.fonts.medium,"ms-GaugeChart",{width:"100%",height:"100%"},u],chart:{display:"block",width:l,height:c},limits:{fontSize:Yt.TS.small,fontWeight:Yt.lq.semibold,fill:a.palette.neutralPrimary},chartValue:{fontSize:s,fontWeight:Yt.lq.semibold,fill:a.palette.neutralPrimary},sublabel:{fontSize:Yt.TS.small,fontWeight:Yt.lq.semibold,fill:a.palette.neutralPrimary},needle:{fill:a.palette.black,stroke:a.semanticColors.bodyBackground},chartTitle:{fontSize:Yt.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,e.pi)((0,e.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[Yt.qJ]={forcedColorAdjust:"none"},n),borderLeft:"4px solid ".concat(d),paddingLeft:"8px"},h&&{display:"flex"}],shapeStyles:{marginRight:"8px"},calloutlegendText:(0,e.pi)((0,e.pi)({},a.fonts.small),{lineHeight:"16px",selectors:(r={},r[Yt.$v]={color:"rgb(255, 255, 255)"},r),color:a.semanticColors.bodySubtext}),calloutContentY:[(0,e.pi)((0,e.pi)({},a.fonts.mediumPlus),{fontWeight:"bold",lineHeight:"22px",selectors:(i={},i[Yt.$v]={color:"rgb(255, 255, 255)"},i)})],descriptionMessage:[a.fonts.small,{selectors:(o={},o[Yt.$v]={color:"rgb(255, 255, 255)"},o),color:a.semanticColors.bodyText,marginTop:"10px",paddingTop:"10px",borderTop:"1px solid ".concat(a.semanticColors.menuDivider)}]}}));(0,n(6077).x)("@fluentui/react-charting","5.19.22")}(),FluentUIReactCharting=r}();
1
+ var t;!function(){"use strict";var n={1783:function(t,n,i){i.d(n,{WU:function(){return f},jH:function(){return h}});var e,r=i(4783),o=i(4116),u=i(3074);function a(t,n){var i=(0,u.Z)(t,n);if(!i)return t+"";var e=i[0],r=i[1];return r<0?"0."+new Array(-r).join("0")+e:e.length>r+1?e.slice(0,r+1)+"."+e.slice(r+1):e+new Array(r-e.length+2).join("0")}var s={"%":function(t,n){return(100*t).toFixed(n)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.round(t).toString(10)},e:function(t,n){return t.toExponential(n)},f:function(t,n){return t.toFixed(n)},g:function(t,n){return t.toPrecision(n)},o:function(t){return Math.round(t).toString(8)},p:function(t,n){return a(100*t,n)},r:a,s:function(t,n){var i=(0,u.Z)(t,n);if(!i)return t+"";var r=i[0],o=i[1],a=o-(e=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,s=r.length;return a===s?r:a>s?r+new Array(a-s+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+(0,u.Z)(t,Math.max(0,n+a-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}};function l(t){return t}var c,f,h,d=Array.prototype.map,v=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];c=function(t){var n,i,u=void 0===t.grouping||void 0===t.thousands?l:(n=d.call(t.grouping,Number),i=t.thousands+"",function(t,e){for(var r=t.length,o=[],u=0,a=n[0],s=0;r>0&&a>0&&(s+a+1>e&&(a=Math.max(1,e-s)),o.push(t.substring(r-=a,r+a)),!((s+=a+1)>e));)a=n[u=(u+1)%n.length];return o.reverse().join(i)}),a=void 0===t.currency?"":t.currency[0]+"",c=void 0===t.currency?"":t.currency[1]+"",f=void 0===t.decimal?".":t.decimal+"",h=void 0===t.numerals?l:function(t){return function(n){return n.replace(/[0-9]/g,(function(n){return t[+n]}))}}(d.call(t.numerals,String)),p=void 0===t.percent?"%":t.percent+"",g=void 0===t.minus?"-":t.minus+"",m=void 0===t.nan?"NaN":t.nan+"";function y(t){var n=(t=(0,o.Z)(t)).fill,i=t.align,r=t.sign,l=t.symbol,d=t.zero,y=t.width,b=t.comma,x=t.precision,w=t.trim,C=t.type;"n"===C?(b=!0,C="g"):s[C]||(void 0===x&&(x=12),w=!0,C="g"),(d||"0"===n&&"="===i)&&(d=!0,n="0",i="=");var M="$"===l?a:"#"===l&&/[boxX]/.test(C)?"0"+C.toLowerCase():"",k="$"===l?c:/[%p]/.test(C)?p:"",L=s[C],V=/[defgprs%]/.test(C);function S(t){var o,a,s,l=M,c=k;if("c"===C)c=L(t)+c,t="";else{var p=(t=+t)<0||1/t<0;if(t=isNaN(t)?m:L(Math.abs(t),x),w&&(t=function(t){t:for(var n,i=t.length,e=1,r=-1;e<i;++e)switch(t[e]){case".":r=n=e;break;case"0":0===r&&(r=e),n=e;break;default:if(!+t[e])break t;r>0&&(r=0)}return r>0?t.slice(0,r)+t.slice(n+1):t}(t)),p&&0==+t&&"+"!==r&&(p=!1),l=(p?"("===r?r:g:"-"===r||"("===r?"":r)+l,c=("s"===C?v[8+e/3]:"")+c+(p&&"("===r?")":""),V)for(o=-1,a=t.length;++o<a;)if(48>(s=t.charCodeAt(o))||s>57){c=(46===s?f+t.slice(o+1):t.slice(o))+c,t=t.slice(0,o);break}}b&&!d&&(t=u(t,1/0));var S=l.length+t.length+c.length,N=S<y?new Array(y-S+1).join(n):"";switch(b&&d&&(t=u(N+t,N.length?y-c.length:1/0),N=""),i){case"<":t=l+t+c+N;break;case"=":t=l+N+t+c;break;case"^":t=N.slice(0,S=N.length>>1)+l+t+c+N.slice(S);break;default:t=N+l+t+c}return h(t)}return x=void 0===x?6:/[gprs]/.test(C)?Math.max(1,Math.min(21,x)):Math.max(0,Math.min(20,x)),S.toString=function(){return t+""},S}return{format:y,formatPrefix:function(t,n){var i=y(((t=(0,o.Z)(t)).type="f",t)),e=3*Math.max(-8,Math.min(8,Math.floor((0,r.Z)(n)/3))),u=Math.pow(10,-e),a=v[8+e/3];return function(t){return i(u*t)+a}}}}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),f=c.format,h=c.formatPrefix},4783:function(t,n,i){i.d(n,{Z:function(){return r}});var e=i(3074);function r(t){return(t=(0,e.Z)(Math.abs(t)))?t[1]:NaN}},3074:function(t,n,i){function e(t,n){if((i=(t=n?t.toExponential(n-1):t.toExponential()).indexOf("e"))<0)return null;var i,e=t.slice(0,i);return[e.length>1?e[0]+e.slice(2):e,+t.slice(i+1)]}i.d(n,{Z:function(){return e}})},4116:function(t,n,i){i.d(n,{Z:function(){return r}});var e=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function r(t){if(!(n=e.exec(t)))throw new Error("invalid format: "+t);var n;return new o({fill:n[1],align:n[2],sign:n[3],symbol:n[4],zero:n[5],width:n[6],comma:n[7],precision:n[8]&&n[8].slice(1),trim:n[9],type:n[10]})}function o(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}r.prototype=o.prototype,o.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(t,n,i){i.d(n,{Eb:function(){return vt},B:function(){return nt},Ys:function(){return ft},td:function(){return pt}});var e="http://www.w3.org/1999/xhtml",r={svg:"http://www.w3.org/2000/svg",xhtml:e,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function o(t){var n=t+="",i=n.indexOf(":");return i>=0&&"xmlns"!==(n=t.slice(0,i))&&(t=t.slice(i+1)),r.hasOwnProperty(n)?{space:r[n],local:t}:t}function u(t){return function(){var n=this.ownerDocument,i=this.namespaceURI;return i===e&&n.documentElement.namespaceURI===e?n.createElement(t):n.createElementNS(i,t)}}function a(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function s(t){var n=o(t);return(n.local?a:u)(n)}function l(){}function c(t){return null==t?l:function(){return this.querySelector(t)}}function f(){return[]}var h=function(t){return function(){return this.matches(t)}};if("undefined"!=typeof document){var d=document.documentElement;if(!d.matches){var v=d.webkitMatchesSelector||d.msMatchesSelector||d.mozMatchesSelector||d.oMatchesSelector;h=function(t){return function(){return v.call(this,t)}}}}var p=h;function g(t){return new Array(t.length)}function m(t,n){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=n}m.prototype={constructor:m,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,n){return this._parent.insertBefore(t,n)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function y(t,n,i,e,r,o){for(var u,a=0,s=n.length,l=o.length;a<l;++a)(u=n[a])?(u.__data__=o[a],e[a]=u):i[a]=new m(t,o[a]);for(;a<s;++a)(u=n[a])&&(r[a]=u)}function b(t,n,i,e,r,o,u){var a,s,l,c={},f=n.length,h=o.length,d=new Array(f);for(a=0;a<f;++a)(s=n[a])&&(d[a]=l="$"+u.call(s,s.__data__,a,n),l in c?r[a]=s:c[l]=s);for(a=0;a<h;++a)(s=c[l="$"+u.call(t,o[a],a,o)])?(e[a]=s,s.__data__=o[a],c[l]=null):i[a]=new m(t,o[a]);for(a=0;a<f;++a)(s=n[a])&&c[d[a]]===s&&(r[a]=s)}function x(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}function w(t){return function(){this.removeAttribute(t)}}function C(t){return function(){this.removeAttributeNS(t.space,t.local)}}function M(t,n){return function(){this.setAttribute(t,n)}}function k(t,n){return function(){this.setAttributeNS(t.space,t.local,n)}}function L(t,n){return function(){var i=n.apply(this,arguments);null==i?this.removeAttribute(t):this.setAttribute(t,i)}}function V(t,n){return function(){var i=n.apply(this,arguments);null==i?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,i)}}function S(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function N(t){return function(){this.style.removeProperty(t)}}function A(t,n,i){return function(){this.style.setProperty(t,n,i)}}function D(t,n,i){return function(){var e=n.apply(this,arguments);null==e?this.style.removeProperty(t):this.style.setProperty(t,e,i)}}function T(t){return function(){delete this[t]}}function O(t,n){return function(){this[t]=n}}function P(t,n){return function(){var i=n.apply(this,arguments);null==i?delete this[t]:this[t]=i}}function E(t){return t.trim().split(/^|\s+/)}function F(t){return t.classList||new B(t)}function B(t){this._node=t,this._names=E(t.getAttribute("class")||"")}function H(t,n){for(var i=F(t),e=-1,r=n.length;++e<r;)i.add(n[e])}function _(t,n){for(var i=F(t),e=-1,r=n.length;++e<r;)i.remove(n[e])}function I(t){return function(){H(this,t)}}function W(t){return function(){_(this,t)}}function R(t,n){return function(){(n.apply(this,arguments)?H:_)(this,t)}}function z(){this.textContent=""}function j(t){return function(){this.textContent=t}}function X(t){return function(){var n=t.apply(this,arguments);this.textContent=null==n?"":n}}function Y(){this.innerHTML=""}function q(t){return function(){this.innerHTML=t}}function $(t){return function(){var n=t.apply(this,arguments);this.innerHTML=null==n?"":n}}function U(){this.nextSibling&&this.parentNode.appendChild(this)}function Z(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function G(){return null}function K(){var t=this.parentNode;t&&t.removeChild(this)}function J(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}function Q(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}B.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var n=this._names.indexOf(t);n>=0&&(this._names.splice(n,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var tt={},nt=null;function it(t,n,i){return t=et(t,n,i),function(n){var i=n.relatedTarget;i&&(i===this||8&i.compareDocumentPosition(this))||t.call(this,n)}}function et(t,n,i){return function(e){var r=nt;nt=e;try{t.call(this,this.__data__,n,i)}finally{nt=r}}}function rt(t){return function(){var n=this.__on;if(n){for(var i,e=0,r=-1,o=n.length;e<o;++e)i=n[e],t.type&&i.type!==t.type||i.name!==t.name?n[++r]=i:this.removeEventListener(i.type,i.listener,i.capture);++r?n.length=r:delete this.__on}}}function ot(t,n,i){var e=tt.hasOwnProperty(t.type)?it:et;return function(r,o,u){var a,s=this.__on,l=e(n,o,u);if(s)for(var c=0,f=s.length;c<f;++c)if((a=s[c]).type===t.type&&a.name===t.name)return this.removeEventListener(a.type,a.listener,a.capture),this.addEventListener(a.type,a.listener=l,a.capture=i),void(a.value=n);this.addEventListener(t.type,l,i),a={type:t.type,name:t.name,value:n,listener:l,capture:i},s?s.push(a):this.__on=[a]}}function ut(t,n,i){var e=S(t),r=e.CustomEvent;"function"==typeof r?r=new r(n,i):(r=e.document.createEvent("Event"),i?(r.initEvent(n,i.bubbles,i.cancelable),r.detail=i.detail):r.initEvent(n,!1,!1)),t.dispatchEvent(r)}function at(t,n){return function(){return ut(this,t,n)}}function st(t,n){return function(){return ut(this,t,n.apply(this,arguments))}}"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(tt={mouseenter:"mouseover",mouseleave:"mouseout"}));var lt=[null];function ct(t,n){this._groups=t,this._parents=n}function ft(t){return"string"==typeof t?new ct([[document.querySelector(t)]],[document.documentElement]):new ct([[t]],lt)}ct.prototype=function(){return new ct([[document.documentElement]],lt)}.prototype={constructor:ct,select:function(t){"function"!=typeof t&&(t=c(t));for(var n=this._groups,i=n.length,e=new Array(i),r=0;r<i;++r)for(var o,u,a=n[r],s=a.length,l=e[r]=new Array(s),f=0;f<s;++f)(o=a[f])&&(u=t.call(o,o.__data__,f,a))&&("__data__"in o&&(u.__data__=o.__data__),l[f]=u);return new ct(e,this._parents)},selectAll:function(t){"function"!=typeof t&&(t=function(t){return null==t?f:function(){return this.querySelectorAll(t)}}(t));for(var n=this._groups,i=n.length,e=[],r=[],o=0;o<i;++o)for(var u,a=n[o],s=a.length,l=0;l<s;++l)(u=a[l])&&(e.push(t.call(u,u.__data__,l,a)),r.push(u));return new ct(e,r)},filter:function(t){"function"!=typeof t&&(t=p(t));for(var n=this._groups,i=n.length,e=new Array(i),r=0;r<i;++r)for(var o,u=n[r],a=u.length,s=e[r]=[],l=0;l<a;++l)(o=u[l])&&t.call(o,o.__data__,l,u)&&s.push(o);return new ct(e,this._parents)},data:function(t,n){if(!t)return v=new Array(this.size()),c=-1,this.each((function(t){v[++c]=t})),v;var i,e=n?b:y,r=this._parents,o=this._groups;"function"!=typeof t&&(i=t,t=function(){return i});for(var u=o.length,a=new Array(u),s=new Array(u),l=new Array(u),c=0;c<u;++c){var f=r[c],h=o[c],d=h.length,v=t.call(f,f&&f.__data__,c,r),p=v.length,g=s[c]=new Array(p),m=a[c]=new Array(p);e(f,h,g,m,l[c]=new Array(d),v,n);for(var x,w,C=0,M=0;C<p;++C)if(x=g[C]){for(C>=M&&(M=C+1);!(w=m[M])&&++M<p;);x._next=w||null}}return(a=new ct(a,r))._enter=s,a._exit=l,a},enter:function(){return new ct(this._enter||this._groups.map(g),this._parents)},exit:function(){return new ct(this._exit||this._groups.map(g),this._parents)},merge:function(t){for(var n=this._groups,i=t._groups,e=n.length,r=i.length,o=Math.min(e,r),u=new Array(e),a=0;a<o;++a)for(var s,l=n[a],c=i[a],f=l.length,h=u[a]=new Array(f),d=0;d<f;++d)(s=l[d]||c[d])&&(h[d]=s);for(;a<e;++a)u[a]=n[a];return new ct(u,this._parents)},order:function(){for(var t=this._groups,n=-1,i=t.length;++n<i;)for(var e,r=t[n],o=r.length-1,u=r[o];--o>=0;)(e=r[o])&&(u&&u!==e.nextSibling&&u.parentNode.insertBefore(e,u),u=e);return this},sort:function(t){function n(n,i){return n&&i?t(n.__data__,i.__data__):!n-!i}t||(t=x);for(var i=this._groups,e=i.length,r=new Array(e),o=0;o<e;++o){for(var u,a=i[o],s=a.length,l=r[o]=new Array(s),c=0;c<s;++c)(u=a[c])&&(l[c]=u);l.sort(n)}return new ct(r,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){var t=new Array(this.size()),n=-1;return this.each((function(){t[++n]=this})),t},node:function(){for(var t=this._groups,n=0,i=t.length;n<i;++n)for(var e=t[n],r=0,o=e.length;r<o;++r){var u=e[r];if(u)return u}return null},size:function(){var t=0;return this.each((function(){++t})),t},empty:function(){return!this.node()},each:function(t){for(var n=this._groups,i=0,e=n.length;i<e;++i)for(var r,o=n[i],u=0,a=o.length;u<a;++u)(r=o[u])&&t.call(r,r.__data__,u,o);return this},attr:function(t,n){var i=o(t);if(arguments.length<2){var e=this.node();return i.local?e.getAttributeNS(i.space,i.local):e.getAttribute(i)}return this.each((null==n?i.local?C:w:"function"==typeof n?i.local?V:L:i.local?k:M)(i,n))},style:function(t,n,i){return arguments.length>1?this.each((null==n?N:"function"==typeof n?D:A)(t,n,null==i?"":i)):function(t,n){return t.style.getPropertyValue(n)||S(t).getComputedStyle(t,null).getPropertyValue(n)}(this.node(),t)},property:function(t,n){return arguments.length>1?this.each((null==n?T:"function"==typeof n?P:O)(t,n)):this.node()[t]},classed:function(t,n){var i=E(t+"");if(arguments.length<2){for(var e=F(this.node()),r=-1,o=i.length;++r<o;)if(!e.contains(i[r]))return!1;return!0}return this.each(("function"==typeof n?R:n?I:W)(i,n))},text:function(t){return arguments.length?this.each(null==t?z:("function"==typeof t?X:j)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?Y:("function"==typeof t?$:q)(t)):this.node().innerHTML},raise:function(){return this.each(U)},lower:function(){return this.each(Z)},append:function(t){var n="function"==typeof t?t:s(t);return this.select((function(){return this.appendChild(n.apply(this,arguments))}))},insert:function(t,n){var i="function"==typeof t?t:s(t),e=null==n?G:"function"==typeof n?n:c(n);return this.select((function(){return this.insertBefore(i.apply(this,arguments),e.apply(this,arguments)||null)}))},remove:function(){return this.each(K)},clone:function(t){return this.select(t?Q:J)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,n,i){var e,r,o=function(t){return t.trim().split(/^|\s+/).map((function(t){var n="",i=t.indexOf(".");return i>=0&&(n=t.slice(i+1),t=t.slice(0,i)),{type:t,name:n}}))}(t+""),u=o.length;if(!(arguments.length<2)){for(a=n?ot:rt,null==i&&(i=!1),e=0;e<u;++e)this.each(a(o[e],n,i));return this}var a=this.node().__on;if(a)for(var s,l=0,c=a.length;l<c;++l)for(e=0,s=a[l];e<u;++e)if((r=o[e]).type===s.type&&r.name===s.name)return s.value},dispatch:function(t,n){return this.each(("function"==typeof n?st:at)(t,n))}};var ht=0;function dt(){this._="@"+(++ht).toString(36)}function vt(t,n){var i=t.ownerSVGElement||t;if(i.createSVGPoint){var e=i.createSVGPoint();return e.x=n.clientX,e.y=n.clientY,[(e=e.matrixTransform(t.getScreenCTM().inverse())).x,e.y]}var r=t.getBoundingClientRect();return[n.clientX-r.left-t.clientLeft,n.clientY-r.top-t.clientTop]}function pt(t){return"string"==typeof t?new ct([document.querySelectorAll(t)],[document.documentElement]):new ct([null==t?[]:t],lt)}dt.prototype=function(){return new dt}.prototype={constructor:dt,get:function(t){for(var n=this._;!(n in t);)if(!(t=t.parentNode))return;return t[n]},set:function(t,n){return t[this._]=n},remove:function(t){return this._ in t&&delete t[this._]},toString:function(){return this._}}},731:function(t,n,i){var e,r,o;i.d(n,{i$:function(){return r}}),o={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"]},e=(0,i(6465).Z)(o),r=e.format,e.parse,e.utcFormat,e.utcParse},6465:function(t,n,i){i.d(n,{Z:function(){return h}});var e=i(3787),r=i(2605),o=i(2167),u=i(3645),a=i(9507),s=i(2527);function l(t){if(0<=t.y&&t.y<100){var n=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return n.setFullYear(t.y),n}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function c(t){if(0<=t.y&&t.y<100){var n=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return n.setUTCFullYear(t.y),n}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function f(t,n,i){return{y:t,m:n,d:i,H:0,M:0,S:0,L:0}}function h(t){var n=t.dateTime,i=t.date,a=t.time,s=t.periods,h=t.days,v=t.shortDays,p=t.months,g=t.shortMonths,m=b(s),y=x(s),J=b(h),yt=x(h),Dt=b(v),Tt=x(v),Ot=b(p),Pt=x(p),Et=b(g),Ft=x(g),Bt={a:function(t){return v[t.getDay()]},A:function(t){return h[t.getDay()]},b:function(t){return g[t.getMonth()]},B:function(t){return p[t.getMonth()]},c:null,d:R,e:R,f:q,g:et,G:ot,H:z,I:j,j:X,L:Y,m:$,M:U,p:function(t){return s[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:Nt,s:At,S:Z,u:G,U:K,V:Q,w:tt,W:nt,x:null,X:null,y:it,Y:rt,Z:ut,"%":St},Ht={a:function(t){return v[t.getUTCDay()]},A:function(t){return h[t.getUTCDay()]},b:function(t){return g[t.getUTCMonth()]},B:function(t){return p[t.getUTCMonth()]},c:null,d:at,e:at,f:ht,g:Mt,G:Lt,H:st,I:lt,j:ct,L:ft,m:dt,M:vt,p:function(t){return s[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:Nt,s:At,S:pt,u:gt,U:mt,V:bt,w:xt,W:wt,x:null,X:null,y:Ct,Y:kt,Z:Vt,"%":St},_t={a:function(t,n,i){var e=Dt.exec(n.slice(i));return e?(t.w=Tt.get(e[0].toLowerCase()),i+e[0].length):-1},A:function(t,n,i){var e=J.exec(n.slice(i));return e?(t.w=yt.get(e[0].toLowerCase()),i+e[0].length):-1},b:function(t,n,i){var e=Et.exec(n.slice(i));return e?(t.m=Ft.get(e[0].toLowerCase()),i+e[0].length):-1},B:function(t,n,i){var e=Ot.exec(n.slice(i));return e?(t.m=Pt.get(e[0].toLowerCase()),i+e[0].length):-1},c:function(t,i,e){return Rt(t,n,i,e)},d:T,e:T,f:H,g:S,G:V,H:P,I:P,j:O,L:B,m:D,M:E,p:function(t,n,i){var e=m.exec(n.slice(i));return e?(t.p=y.get(e[0].toLowerCase()),i+e[0].length):-1},q:A,Q:I,s:W,S:F,u:C,U:M,V:k,w:w,W:L,x:function(t,n,e){return Rt(t,i,n,e)},X:function(t,n,i){return Rt(t,a,n,i)},y:S,Y:V,Z:N,"%":_};function It(t,n){return function(i){var e,r,o,u=[],a=-1,s=0,l=t.length;for(i instanceof Date||(i=new Date(+i));++a<l;)37===t.charCodeAt(a)&&(u.push(t.slice(s,a)),null!=(r=d[e=t.charAt(++a)])?e=t.charAt(++a):r="e"===e?" ":"0",(o=n[e])&&(e=o(i,r)),u.push(e),s=a+1);return u.push(t.slice(s,a)),u.join("")}}function Wt(t,n){return function(i){var a,s,h=f(1900,void 0,1);if(Rt(h,t,i+="",0)!=i.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(n&&!("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?(s=(a=c(f(h.y,0,1))).getUTCDay(),a=s>4||0===s?e.l6.ceil(a):(0,e.l6)(a),a=r.Z.offset(a,7*(h.V-1)),h.y=a.getUTCFullYear(),h.m=a.getUTCMonth(),h.d=a.getUTCDate()+(h.w+6)%7):(s=(a=l(f(h.y,0,1))).getDay(),a=s>4||0===s?o.wA.ceil(a):(0,o.wA)(a),a=u.Z.offset(a,7*(h.V-1)),h.y=a.getFullYear(),h.m=a.getMonth(),h.d=a.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),s="Z"in h?c(f(h.y,0,1)).getUTCDay():l(f(h.y,0,1)).getDay(),h.m=0,h.d="W"in h?(h.w+6)%7+7*h.W-(s+5)%7:h.w+7*h.U-(s+6)%7);return"Z"in h?(h.H+=h.Z/100|0,h.M+=h.Z%100,c(h)):l(h)}}function Rt(t,n,i,e){for(var r,o,u=0,a=n.length,s=i.length;u<a;){if(e>=s)return-1;if(37===(r=n.charCodeAt(u++))){if(r=n.charAt(u++),!(o=_t[r in d?n.charAt(u++):r])||(e=o(t,i,e))<0)return-1}else if(r!=i.charCodeAt(e++))return-1}return e}return Bt.x=It(i,Bt),Bt.X=It(a,Bt),Bt.c=It(n,Bt),Ht.x=It(i,Ht),Ht.X=It(a,Ht),Ht.c=It(n,Ht),{format:function(t){var n=It(t+="",Bt);return n.toString=function(){return t},n},parse:function(t){var n=Wt(t+="",!1);return n.toString=function(){return t},n},utcFormat:function(t){var n=It(t+="",Ht);return n.toString=function(){return t},n},utcParse:function(t){var n=Wt(t+="",!0);return n.toString=function(){return t},n}}}var d={"-":"",_:" ",0:"0"},v=/^\s*\d+/,p=/^%/,g=/[\\^$*+?|[\]().{}]/g;function m(t,n,i){var e=t<0?"-":"",r=(e?-t:t)+"",o=r.length;return e+(o<i?new Array(i-o+1).join(n)+r:r)}function y(t){return t.replace(g,"\\$&")}function b(t){return new RegExp("^(?:"+t.map(y).join("|")+")","i")}function x(t){return new Map(t.map(((t,n)=>[t.toLowerCase(),n])))}function w(t,n,i){var e=v.exec(n.slice(i,i+1));return e?(t.w=+e[0],i+e[0].length):-1}function C(t,n,i){var e=v.exec(n.slice(i,i+1));return e?(t.u=+e[0],i+e[0].length):-1}function M(t,n,i){var e=v.exec(n.slice(i,i+2));return e?(t.U=+e[0],i+e[0].length):-1}function k(t,n,i){var e=v.exec(n.slice(i,i+2));return e?(t.V=+e[0],i+e[0].length):-1}function L(t,n,i){var e=v.exec(n.slice(i,i+2));return e?(t.W=+e[0],i+e[0].length):-1}function V(t,n,i){var e=v.exec(n.slice(i,i+4));return e?(t.y=+e[0],i+e[0].length):-1}function S(t,n,i){var e=v.exec(n.slice(i,i+2));return e?(t.y=+e[0]+(+e[0]>68?1900:2e3),i+e[0].length):-1}function N(t,n,i){var e=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(n.slice(i,i+6));return e?(t.Z=e[1]?0:-(e[2]+(e[3]||"00")),i+e[0].length):-1}function A(t,n,i){var e=v.exec(n.slice(i,i+1));return e?(t.q=3*e[0]-3,i+e[0].length):-1}function D(t,n,i){var e=v.exec(n.slice(i,i+2));return e?(t.m=e[0]-1,i+e[0].length):-1}function T(t,n,i){var e=v.exec(n.slice(i,i+2));return e?(t.d=+e[0],i+e[0].length):-1}function O(t,n,i){var e=v.exec(n.slice(i,i+3));return e?(t.m=0,t.d=+e[0],i+e[0].length):-1}function P(t,n,i){var e=v.exec(n.slice(i,i+2));return e?(t.H=+e[0],i+e[0].length):-1}function E(t,n,i){var e=v.exec(n.slice(i,i+2));return e?(t.M=+e[0],i+e[0].length):-1}function F(t,n,i){var e=v.exec(n.slice(i,i+2));return e?(t.S=+e[0],i+e[0].length):-1}function B(t,n,i){var e=v.exec(n.slice(i,i+3));return e?(t.L=+e[0],i+e[0].length):-1}function H(t,n,i){var e=v.exec(n.slice(i,i+6));return e?(t.L=Math.floor(e[0]/1e3),i+e[0].length):-1}function _(t,n,i){var e=p.exec(n.slice(i,i+1));return e?i+e[0].length:-1}function I(t,n,i){var e=v.exec(n.slice(i));return e?(t.Q=+e[0],i+e[0].length):-1}function W(t,n,i){var e=v.exec(n.slice(i));return e?(t.s=+e[0],i+e[0].length):-1}function R(t,n){return m(t.getDate(),n,2)}function z(t,n){return m(t.getHours(),n,2)}function j(t,n){return m(t.getHours()%12||12,n,2)}function X(t,n){return m(1+u.Z.count((0,a.Z)(t),t),n,3)}function Y(t,n){return m(t.getMilliseconds(),n,3)}function q(t,n){return Y(t,n)+"000"}function $(t,n){return m(t.getMonth()+1,n,2)}function U(t,n){return m(t.getMinutes(),n,2)}function Z(t,n){return m(t.getSeconds(),n,2)}function G(t){var n=t.getDay();return 0===n?7:n}function K(t,n){return m(o.OM.count((0,a.Z)(t)-1,t),n,2)}function J(t){var n=t.getDay();return n>=4||0===n?(0,o.bL)(t):o.bL.ceil(t)}function Q(t,n){return t=J(t),m(o.bL.count((0,a.Z)(t),t)+(4===(0,a.Z)(t).getDay()),n,2)}function tt(t){return t.getDay()}function nt(t,n){return m(o.wA.count((0,a.Z)(t)-1,t),n,2)}function it(t,n){return m(t.getFullYear()%100,n,2)}function et(t,n){return m((t=J(t)).getFullYear()%100,n,2)}function rt(t,n){return m(t.getFullYear()%1e4,n,4)}function ot(t,n){var i=t.getDay();return m((t=i>=4||0===i?(0,o.bL)(t):o.bL.ceil(t)).getFullYear()%1e4,n,4)}function ut(t){var n=t.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+m(n/60|0,"0",2)+m(n%60,"0",2)}function at(t,n){return m(t.getUTCDate(),n,2)}function st(t,n){return m(t.getUTCHours(),n,2)}function lt(t,n){return m(t.getUTCHours()%12||12,n,2)}function ct(t,n){return m(1+r.Z.count((0,s.Z)(t),t),n,3)}function ft(t,n){return m(t.getUTCMilliseconds(),n,3)}function ht(t,n){return ft(t,n)+"000"}function dt(t,n){return m(t.getUTCMonth()+1,n,2)}function vt(t,n){return m(t.getUTCMinutes(),n,2)}function pt(t,n){return m(t.getUTCSeconds(),n,2)}function gt(t){var n=t.getUTCDay();return 0===n?7:n}function mt(t,n){return m(e.Ox.count((0,s.Z)(t)-1,t),n,2)}function yt(t){var n=t.getUTCDay();return n>=4||0===n?(0,e.hB)(t):e.hB.ceil(t)}function bt(t,n){return t=yt(t),m(e.hB.count((0,s.Z)(t),t)+(4===(0,s.Z)(t).getUTCDay()),n,2)}function xt(t){return t.getUTCDay()}function wt(t,n){return m(e.l6.count((0,s.Z)(t)-1,t),n,2)}function Ct(t,n){return m(t.getUTCFullYear()%100,n,2)}function Mt(t,n){return m((t=yt(t)).getUTCFullYear()%100,n,2)}function kt(t,n){return m(t.getUTCFullYear()%1e4,n,4)}function Lt(t,n){var i=t.getUTCDay();return m((t=i>=4||0===i?(0,e.hB)(t):e.hB.ceil(t)).getUTCFullYear()%1e4,n,4)}function Vt(){return"+0000"}function St(){return"%"}function Nt(t){return+t}function At(t){return Math.floor(+t/1e3)}},3645:function(t,n,i){var e=i(4315),r=i(4827),o=(0,e.Z)((t=>t.setHours(0,0,0,0)),((t,n)=>t.setDate(t.getDate()+n)),((t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*r.yB)/r.UD),(t=>t.getDate()-1));n.Z=o,o.range},4827:function(t,n,i){i.d(n,{UD:function(){return u},Y2:function(){return o},Ym:function(){return e},iM:function(){return a},jz:function(){return s},qz:function(){return l},yB:function(){return r}});const e=1e3,r=60*e,o=60*r,u=24*o,a=7*u,s=30*u,l=365*u},5401:function(t,n,i){var e=i(4315),r=i(4827),o=(0,e.Z)((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*r.Ym-t.getMinutes()*r.yB)}),(function(t,n){t.setTime(+t+n*r.Y2)}),(function(t,n){return(n-t)/r.Y2}),(function(t){return t.getHours()}));n.Z=o,o.range},4315:function(t,n,i){i.d(n,{Z:function(){return o}});var e=new Date,r=new Date;function o(t,n,i,u){function a(n){return t(n=0===arguments.length?new Date:new Date(+n)),n}return a.floor=function(n){return t(n=new Date(+n)),n},a.ceil=function(i){return t(i=new Date(i-1)),n(i,1),t(i),i},a.round=function(t){var n=a(t),i=a.ceil(t);return t-n<i-t?n:i},a.offset=function(t,i){return n(t=new Date(+t),null==i?1:Math.floor(i)),t},a.range=function(i,e,r){var o,u=[];if(i=a.ceil(i),r=null==r?1:Math.floor(r),!(i<e&&r>0))return u;do{u.push(o=new Date(+i)),n(i,r),t(i)}while(o<i&&i<e);return u},a.filter=function(i){return o((function(n){if(n>=n)for(;t(n),!i(n);)n.setTime(n-1)}),(function(t,e){if(t>=t)if(e<0)for(;++e<=0;)for(;n(t,-1),!i(t););else for(;--e>=0;)for(;n(t,1),!i(t););}))},i&&(a.count=function(n,o){return e.setTime(+n),r.setTime(+o),t(e),t(r),Math.floor(i(e,r))},a.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?a.filter(u?function(n){return u(n)%t==0}:function(n){return a.count(0,n)%t==0}):a:null}),a}},4189:function(t,n,i){var e=i(4315),r=i(4827),o=(0,e.Z)((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*r.Ym)}),(function(t,n){t.setTime(+t+n*r.yB)}),(function(t,n){return(n-t)/r.yB}),(function(t){return t.getMinutes()}));n.Z=o,o.range},9604:function(t,n,i){var e=(0,i(4315).Z)((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,n){t.setMonth(t.getMonth()+n)}),(function(t,n){return n.getMonth()-t.getMonth()+12*(n.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()}));n.Z=e,e.range},87:function(t,n,i){var e=i(4315),r=i(4827),o=(0,e.Z)((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,n){t.setTime(+t+n*r.Ym)}),(function(t,n){return(n-t)/r.Ym}),(function(t){return t.getUTCSeconds()}));n.Z=o,o.range},2605:function(t,n,i){var e=i(4315),r=i(4827),o=(0,e.Z)((function(t){t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCDate(t.getUTCDate()+n)}),(function(t,n){return(n-t)/r.UD}),(function(t){return t.getUTCDate()-1}));n.Z=o,o.range},3787:function(t,n,i){i.d(n,{Ox:function(){return u},hB:function(){return c},l6:function(){return a}});var e=i(4315),r=i(4827);function o(t){return(0,e.Z)((function(n){n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-t)%7),n.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCDate(t.getUTCDate()+7*n)}),(function(t,n){return(n-t)/r.iM}))}var u=o(0),a=o(1),s=o(2),l=o(3),c=o(4),f=o(5),h=o(6);u.range,a.range,s.range,l.range,c.range,f.range,h.range},2527:function(t,n,i){var e=i(4315),r=(0,e.Z)((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n)}),(function(t,n){return n.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()}));r.every=function(t){return isFinite(t=Math.floor(t))&&t>0?(0,e.Z)((function(n){n.setUTCFullYear(Math.floor(n.getUTCFullYear()/t)*t),n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)}),(function(n,i){n.setUTCFullYear(n.getUTCFullYear()+i*t)})):null},n.Z=r,r.range},2167:function(t,n,i){i.d(n,{OM:function(){return u},bL:function(){return c},wA:function(){return a}});var e=i(4315),r=i(4827);function o(t){return(0,e.Z)((function(n){n.setDate(n.getDate()-(n.getDay()+7-t)%7),n.setHours(0,0,0,0)}),(function(t,n){t.setDate(t.getDate()+7*n)}),(function(t,n){return(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*r.yB)/r.iM}))}var u=o(0),a=o(1),s=o(2),l=o(3),c=o(4),f=o(5),h=o(6);u.range,a.range,s.range,l.range,c.range,f.range,h.range},9507:function(t,n,i){var e=i(4315),r=(0,e.Z)((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n)}),(function(t,n){return n.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));r.every=function(t){return isFinite(t=Math.floor(t))&&t>0?(0,e.Z)((function(n){n.setFullYear(Math.floor(n.getFullYear()/t)*t),n.setMonth(0,1),n.setHours(0,0,0,0)}),(function(n,i){n.setFullYear(n.getFullYear()+i*t)})):null},n.Z=r,r.range},9939:function(t,n,i){i.d(n,{ZT:function(){return r},_T:function(){return u},ev:function(){return a},pi:function(){return o}});var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])},e(t,n)};function r(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}var o=function(){return o=Object.assign||function(t){for(var n,i=1,e=arguments.length;i<e;i++)for(var r in n=arguments[i])Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);return t},o.apply(this,arguments)};function u(t,n){var i={};for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&n.indexOf(e)<0&&(i[e]=t[e]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(e=Object.getOwnPropertySymbols(t);r<e.length;r++)n.indexOf(e[r])<0&&Object.prototype.propertyIsEnumerable.call(t,e[r])&&(i[e[r]]=t[e[r]])}return i}function a(t,n,i){if(i||2===arguments.length)for(var e,r=0,o=n.length;r<o;r++)!e&&r in n||(e||(e=Array.prototype.slice.call(n,0,r)),e[r]=n[r]);return t.concat(e||Array.prototype.slice.call(n))}Object.create,Object.create},4473:function(t,n,i){function e(t){o!==t&&(o=t)}function r(){return void 0===o&&(o="undefined"!=typeof document&&!!document.documentElement&&"rtl"===document.documentElement.getAttribute("dir")),o}var o;function u(){return{rtl:r()}}i.d(n,{Eo:function(){return u},ok:function(){return e}}),o=r()},5499:function(t,n,i){i.d(n,{Y:function(){return s}});var e,r=i(9939),o="__stylesheet__",u="undefined"!=typeof navigator&&/rv:11.0/.test(navigator.userAgent),a={};try{a=window||{}}catch(t){}var s=function(){function t(t,n){var i,e,o,u,a,s;this._rules=[],this._preservedRules=[],this._counter=0,this._keyToClassName={},this._onInsertRuleCallbacks=[],this._onResetCallbacks=[],this._classNameToArgs={},this._config=(0,r.pi)({injectionMode:"undefined"==typeof document?0:1,defaultPrefix:"css",namespace:void 0,cspSettings:void 0},t),this._classNameToArgs=null!==(i=null==n?void 0:n.classNameToArgs)&&void 0!==i?i:this._classNameToArgs,this._counter=null!==(e=null==n?void 0:n.counter)&&void 0!==e?e:this._counter,this._keyToClassName=null!==(u=null!==(o=this._config.classNameCache)&&void 0!==o?o:null==n?void 0:n.keyToClassName)&&void 0!==u?u:this._keyToClassName,this._preservedRules=null!==(a=null==n?void 0:n.preservedRules)&&void 0!==a?a:this._preservedRules,this._rules=null!==(s=null==n?void 0:n.rules)&&void 0!==s?s:this._rules}return t.getInstance=function(){if(!(e=a[o])||e._lastStyleElement&&e._lastStyleElement.ownerDocument!==document){var n=(null==a?void 0:a.FabricConfig)||{},i=new t(n.mergeStyles,n.serializedStylesheet);e=i,a[o]=i}return e},t.prototype.serialize=function(){return JSON.stringify({classNameToArgs:this._classNameToArgs,counter:this._counter,keyToClassName:this._keyToClassName,preservedRules:this._preservedRules,rules:this._rules})},t.prototype.setConfig=function(t){this._config=(0,r.pi)((0,r.pi)({},this._config),t)},t.prototype.onReset=function(t){var n=this;return this._onResetCallbacks.push(t),function(){n._onResetCallbacks=n._onResetCallbacks.filter((function(n){return n!==t}))}},t.prototype.onInsertRule=function(t){var n=this;return this._onInsertRuleCallbacks.push(t),function(){n._onInsertRuleCallbacks=n._onInsertRuleCallbacks.filter((function(n){return n!==t}))}},t.prototype.getClassName=function(t){var n=this._config.namespace,i=t||this._config.defaultPrefix;return"".concat(n?n+"-":"").concat(i,"-").concat(this._counter++)},t.prototype.cacheClassName=function(t,n,i,e){this._keyToClassName[n]=t,this._classNameToArgs[t]={args:i,rules:e}},t.prototype.classNameFromKey=function(t){return this._keyToClassName[t]},t.prototype.getClassNameCache=function(){return this._keyToClassName},t.prototype.argsFromClassName=function(t){var n=this._classNameToArgs[t];return n&&n.args},t.prototype.insertedRulesFromClassName=function(t){var n=this._classNameToArgs[t];return n&&n.rules},t.prototype.insertRule=function(t,n){var i=this._config.injectionMode,e=0!==i?this._getStyleElement():void 0;if(n&&this._preservedRules.push(t),e)switch(i){case 1:var r=e.sheet;try{r.insertRule(t,r.cssRules.length)}catch(t){}break;case 2:e.appendChild(document.createTextNode(t))}else this._rules.push(t);this._config.onInsertRule&&this._config.onInsertRule(t),this._onInsertRuleCallbacks.forEach((function(t){return t()}))},t.prototype.getRules=function(t){return(t?this._preservedRules.join(""):"")+this._rules.join("")},t.prototype.reset=function(){this._rules=[],this._counter=0,this._classNameToArgs={},this._keyToClassName={},this._onResetCallbacks.forEach((function(t){return t()}))},t.prototype.resetKeys=function(){this._keyToClassName={}},t.prototype._getStyleElement=function(){var t=this;return this._styleElement||"undefined"==typeof document||(this._styleElement=this._createStyleElement(),u||window.requestAnimationFrame((function(){t._styleElement=void 0}))),this._styleElement},t.prototype._createStyleElement=function(){var t=document.head,n=document.createElement("style"),i=null;n.setAttribute("data-merge-styles","true");var e=this._config.cspSettings;if(e&&e.nonce&&n.setAttribute("nonce",e.nonce),this._lastStyleElement)i=this._lastStyleElement.nextElementSibling;else{var r=this._findPlaceholderStyleTag();i=r?r.nextElementSibling:t.childNodes[0]}return t.insertBefore(n,t.contains(i)?i:null),this._lastStyleElement=n,n},t.prototype._findPlaceholderStyleTag=function(){var t=document.head;return t?t.querySelector("style[data-merge-styles]"):null},t}()},4270:function(t,n,i){i.d(n,{m:function(){return r}});var e=i(9939);function r(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(t&&1===t.length&&t[0]&&!t[0].subComponentStyles)return t[0];for(var i={},o={},u=0,a=t;u<a.length;u++){var s=a[u];if(s)for(var l in s)if(s.hasOwnProperty(l)){if("subComponentStyles"===l&&void 0!==s.subComponentStyles){var c=s.subComponentStyles;for(var f in c)c.hasOwnProperty(f)&&(o.hasOwnProperty(f)?o[f].push(c[f]):o[f]=[c[f]]);continue}var h=i[l],d=s[l];i[l]=void 0===h?d:(0,e.ev)((0,e.ev)([],Array.isArray(h)?h:[h],!0),Array.isArray(d)?d:[d],!0)}}if(Object.keys(o).length>0){i.subComponentStyles={};var v=i.subComponentStyles,p=function(t){if(o.hasOwnProperty(t)){var n=o[t];v[t]=function(t){return r.apply(void 0,n.map((function(n){return"function"==typeof n?n(t):n})))}}};for(var f in o)p(f)}return i}},3802:function(t,n,i){i.d(n,{U:function(){return r}});var e=i(5499);function r(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var i=[],r=[],o=e.Y.getInstance();return function t(n){for(var e=0,u=n;e<u.length;e++){var a=u[e];if(a)if("string"==typeof a)if(a.indexOf(" ")>=0)t(a.split(" "));else{var s=o.argsFromClassName(a);s?t(s):-1===i.indexOf(a)&&i.push(a)}else Array.isArray(a)?t(a):"object"==typeof a&&r.push(a)}}(t),{classes:i,objects:r}}},13:function(t,n,i){i.d(n,{y:function(){return u}});var e=i(3802),r=i(4473),o=i(7373);function u(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return function(t,n){var i=t instanceof Array?t:[t],r=(0,e.U)(i),u=r.classes,a=r.objects;return a.length&&u.push((0,o.AE)(n||{},a)),u.join(" ")}(t,(0,r.Eo)())}},7373:function(t,n,i){i.d(n,{Jh:function(){return S},dH:function(){return L},AE:function(){return N},aj:function(){return V}});var e,r=i(9939),o=i(5499),u={},a={"user-select":1};function s(t,n){var i=function(){var t;if(!e){var n="undefined"!=typeof document?document:void 0,i="undefined"!=typeof navigator?navigator:void 0,r=null===(t=null==i?void 0:i.userAgent)||void 0===t?void 0:t.toLowerCase();e=n?{isWebkit:!(!n||!("WebkitAppearance"in n.documentElement.style)),isMoz:!!(r&&r.indexOf("firefox")>-1),isOpera:!!(r&&r.indexOf("opera")>-1),isMs:!(!i||!/rv:11.0/i.test(i.userAgent)&&!/Edge\/\d./i.test(navigator.userAgent))}:{isWebkit:!0,isMoz:!0,isOpera:!0,isMs:!0}}return e}(),r=t[n];if(a[r]){var o=t[n+1];a[r]&&(i.isWebkit&&t.push("-webkit-"+r,o),i.isMoz&&t.push("-moz-"+r,o),i.isMs&&t.push("-ms-"+r,o),i.isOpera&&t.push("-o-"+r,o))}}var l,c=["column-count","font-weight","flex","flex-grow","flex-shrink","fill-opacity","opacity","order","z-index","zoom"];function f(t,n){var i=t[n],e=t[n+1];if("number"==typeof e){var r=c.indexOf(i)>-1,o=i.indexOf("--")>-1,u=r||o?"":"px";t[n+1]="".concat(e).concat(u)}}var h="left",d="right",v="@noflip",p=((l={})[h]=d,l[d]=h,l),g={"w-resize":"e-resize","sw-resize":"se-resize","nw-resize":"ne-resize"};function m(t,n,i){if(t.rtl){var e=n[i];if(!e)return;var r=n[i+1];if("string"==typeof r&&r.indexOf(v)>=0)n[i+1]=r.replace(/\s*(?:\/\*\s*)?\@noflip\b(?:\s*\*\/)?\s*?/g,"");else if(e.indexOf(h)>=0)n[i]=e.replace(h,d);else if(e.indexOf(d)>=0)n[i]=e.replace(d,h);else if(String(r).indexOf(h)>=0)n[i+1]=r.replace(h,d);else if(String(r).indexOf(d)>=0)n[i+1]=r.replace(d,h);else if(p[e])n[i]=p[e];else if(g[r])n[i+1]=g[r];else switch(e){case"margin":case"padding":n[i+1]=function(t){if("string"==typeof t){var n=t.split(" ");if(4===n.length)return"".concat(n[0]," ").concat(n[3]," ").concat(n[2]," ").concat(n[1])}return t}(r);break;case"box-shadow":n[i+1]=function(t,n){var i=t.split(" "),e=parseInt(i[0],10);return i[0]=i[0].replace(String(e),String(-1*e)),i.join(" ")}(r)}}}var y="displayName",b=/\:global\((.+?)\)/g;function x(t,n){return t.indexOf(":global(")>=0?t.replace(b,"$1"):0===t.indexOf(":")?n+t:t.indexOf("&")<0?n+" "+t:t}function w(t,n,i,e){void 0===n&&(n={__order:[]}),0===i.indexOf("@")?C([e],n,i=i+"{"+t):i.indexOf(",")>-1?function(t){if(!b.test(t))return t;for(var n=[],i=/\:global\((.+?)\)/g,e=null;e=i.exec(t);)e[1].indexOf(",")>-1&&n.push([e.index,e.index+e[0].length,e[1].split(",").map((function(t){return":global(".concat(t.trim(),")")})).join(", ")]);return n.reverse().reduce((function(t,n){var i=n[0],e=n[1],r=n[2];return t.slice(0,i)+r+t.slice(e)}),t)}(i).split(",").map((function(t){return t.trim()})).forEach((function(i){return C([e],n,x(i,t))})):C([e],n,x(i,t))}function C(t,n,i){void 0===n&&(n={__order:[]}),void 0===i&&(i="&");var e=o.Y.getInstance(),r=n[i];r||(r={},n[i]=r,n.__order.push(i));for(var u=0,a=t;u<a.length;u++){var s=a[u];if("string"==typeof s){var l=e.argsFromClassName(s);l&&C(l,n,i)}else if(Array.isArray(s))C(s,n,i);else for(var c in s)if(s.hasOwnProperty(c)){var f=s[c];if("selectors"===c){var h=s.selectors;for(var d in h)h.hasOwnProperty(d)&&w(i,n,d,h[d])}else"object"==typeof f?null!==f&&w(i,n,c,f):void 0!==f&&("margin"===c||"padding"===c?M(r,c,f):r[c]=f)}}return n}function M(t,n,i){var e="string"==typeof i?function(t){for(var n=[],i=0,e=0,r=0;r<t.length;r++)switch(t[r]){case"(":e++;break;case")":e&&e--;break;case"\t":case" ":e||(r>i&&n.push(t.substring(i,r)),i=r+1)}return i<t.length&&n.push(t.substring(i)),n}(i):[i];0===e.length&&e.push(i),"!important"===e[e.length-1]&&(e=e.slice(0,-1).map((function(t){return t+" !important"}))),t[n+"Top"]=e[0],t[n+"Right"]=e[1]||e[0],t[n+"Bottom"]=e[2]||e[0],t[n+"Left"]=e[3]||e[1]||e[0]}function k(t,n){return n<=0?"":1===n?t:t+k(t,n-1)}function L(t,n){if(!n)return"";var i,e,r,o=[];for(var a in n)n.hasOwnProperty(a)&&a!==y&&void 0!==n[a]&&o.push(a,n[a]);for(var l=0;l<o.length;l+=2)r=void 0,"-"!==(r=(i=o)[e=l]).charAt(0)&&(i[e]=u[r]=u[r]||r.replace(/([A-Z])/g,"-$1").toLowerCase()),f(o,l),m(t,o,l),s(o,l);for(l=1;l<o.length;l+=4)o.splice(l,1,":",o[l],";");return o.join("")}function V(t){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var e=C(n),r=function(t,n){for(var i=[t.rtl?"rtl":"ltr"],e=!1,r=0,o=n.__order;r<o.length;r++){var u=o[r];i.push(u);var a=n[u];for(var s in a)a.hasOwnProperty(s)&&void 0!==a[s]&&(e=!0,i.push(s,a[s]))}return e?i.join(""):void 0}(t,e);if(r){var u=o.Y.getInstance(),a={className:u.classNameFromKey(r),key:r,args:n};if(!a.className){a.className=u.getClassName(function(t){var n=t&&t["&"];return n?n.displayName:void 0}(e));for(var s=[],l=0,c=e.__order;l<c.length;l++){var f=c[l];s.push(f,L(t,e[f]))}a.rulesToInsert=s}return a}}function S(t,n){void 0===n&&(n=1);var i=o.Y.getInstance(),e=t.className,r=t.key,u=t.args,a=t.rulesToInsert;if(a){for(var s=0;s<a.length;s+=2){var l=a[s+1];if(l){var c=a[s];c=c.replace(/&/g,k(".".concat(t.className),n));var f="".concat(c,"{").concat(l,"}").concat(0===c.indexOf("@")?"}":"");i.insertRule(f)}}i.cacheClassName(e,r,u,a)}}function N(t){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var e=V.apply(void 0,(0,r.ev)([t],n,!1));return e?(S(e,t.specificityMultiplier),e.className):""}},8024:function(t,n,i){i.r(n),i.d(n,{ChartHoverCard:function(){return f}});var e=i(9085),r=i(9939),o=i(7363),u=i(8461),a=i(3813),s=(0,u.y)(),l=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return(0,r.ZT)(n,t),n.prototype.render=function(){var t=this.props,n=t.color,i=t.Legend,e=t.XValue,r=t.YValue,u=t.styles,l=t.theme,c=t.ratio,f=t.descriptionMessage,h=t.culture;return this._classNames=s(u,{theme:l,color:n,XValue:e,isRatioPresent:!!c}),o.createElement("div",{className:this._classNames.calloutContentRoot},o.createElement("div",{className:this._classNames.calloutDateTimeContainer},o.createElement("div",{className:this._classNames.calloutContentX},e," ")),o.createElement("div",{className:this._classNames.calloutInfoContainer},o.createElement("div",{className:this._classNames.calloutBlockContainer},o.createElement("div",{className:this._classNames.calloutlegendText},(0,a.Ts)(i,h)),o.createElement("div",{className:this._classNames.calloutContentY},(0,a.Ts)(r,h))),!!c&&o.createElement("div",{className:this._classNames.ratio},o.createElement(o.Fragment,null,o.createElement("span",{className:this._classNames.numerator},(0,a.Ts)(c[0],h)),"/",o.createElement("span",{className:this._classNames.denominator},(0,a.Ts)(c[1],h))))),!!f&&o.createElement("div",{className:this._classNames.descriptionMessage},f))},n}(o.Component),c=i(1286),f=(0,e.z)(l,c.n)},1286:function(t,n,i){i.d(n,{n:function(){return r}});var e=i(1786),r=function(t){var n=t.color,i=t.XValue,r=t.theme,o=t.isRatioPresent,u=void 0!==o&&o;return{calloutContentRoot:[{display:"grid",overflow:"hidden",padding:"11px 16px 10px 16px",backgroundColor:r.semanticColors.bodyBackground,backgroundBlendMode:"normal, luminosity"}],calloutDateTimeContainer:{display:"flex",flexDirection:"row",justifyContent:"space-between"},calloutContentX:[r.fonts.small,{lineHeight:"16px",opacity:"0.8",color:r.semanticColors.bodySubtext}],calloutBlockContainer:[r.fonts.xxLarge,{marginTop:i?"13px":"unset",paddingLeft:"8px",lineHeight:"22px",color:r.semanticColors.bodyText,borderLeft:"4px solid ".concat(n)}],calloutlegendText:[r.fonts.small,{lineHeight:"16px",color:r.semanticColors.bodyText}],calloutContentY:[r.fonts.xxLarge,{color:n||r.semanticColors.bodyText,fontWeight:"bold",lineHeight:"36px"}],calloutInfoContainer:[u&&{display:"flex",alignItems:"flex-end"}],ratio:[r.fonts.small,{marginLeft:"6px",color:r.semanticColors.bodyText}],numerator:{fontWeight:e.lq.bold},denominator:{fontWeight:e.lq.semibold},descriptionMessage:[r.fonts.small,{color:r.semanticColors.bodyText,marginTop:"10px",paddingTop:"10px",borderTop:"1px solid ".concat(r.semanticColors.menuDivider)}]}}},3813:function(t,n,i){i.d(n,{$X:function(){return w},jc:function(){return rt},wo:function(){return et},xl:function(){return C},OH:function(){return M},yE:function(){return J},Wx:function(){return U},Ts:function(){return st},s8:function(){return z},OX:function(){return W},R:function(){return j},Tj:function(){return Y},Pu:function(){return Z},eQ:function(){return X},Ay:function(){return G},cE:function(){return ft},ey:function(){return at},dr:function(){return nt},As:function(){return it},SY:function(){return ot},V4:function(){return tt},Ml:function(){return ut},zs:function(){return lt},$V:function(){return Q},nX:function(){return K},yQ:function(){return ct}});var e=i(9939),r=Array.prototype.slice;function o(t){return t}var u=1,a=2,s=3,l=4,c=1e-6;function f(t){return"translate("+(t+.5)+",0)"}function h(t){return"translate(0,"+(t+.5)+")"}function d(t){return function(n){return+t(n)}}function v(t){var n=Math.max(0,t.bandwidth()-1)/2;return t.round()&&(n=Math.round(n)),function(i){return+t(i)+n}}function p(){return!this.__axis}function g(t,n){var i=[],e=null,g=null,m=6,y=6,b=3,x=t===u||t===l?-1:1,w=t===l||t===a?"x":"y",C=t===u||t===s?f:h;function M(r){var f=null==e?n.ticks?n.ticks.apply(n,i):n.domain():e,h=null==g?n.tickFormat?n.tickFormat.apply(n,i):o:g,M=Math.max(m,0)+b,k=n.range(),L=+k[0]+.5,V=+k[k.length-1]+.5,S=(n.bandwidth?v:d)(n.copy()),N=r.selection?r.selection():r,A=N.selectAll(".domain").data([null]),D=N.selectAll(".tick").data(f,n).order(),T=D.exit(),O=D.enter().append("g").attr("class","tick"),P=D.select("line"),E=D.select("text");A=A.merge(A.enter().insert("path",".tick").attr("class","domain").attr("stroke","#000")),D=D.merge(O),P=P.merge(O.append("line").attr("stroke","#000").attr(w+"2",x*m)),E=E.merge(O.append("text").attr("fill","#000").attr(w,x*M).attr("dy",t===u?"0em":t===s?"0.71em":"0.32em")),r!==N&&(A=A.transition(r),D=D.transition(r),P=P.transition(r),E=E.transition(r),T=T.transition(r).attr("opacity",c).attr("transform",(function(t){return isFinite(t=S(t))?C(t):this.getAttribute("transform")})),O.attr("opacity",c).attr("transform",(function(t){var n=this.parentNode.__axis;return C(n&&isFinite(n=n(t))?n:S(t))}))),T.remove(),A.attr("d",t===l||t==a?"M"+x*y+","+L+"H0.5V"+V+"H"+x*y:"M"+L+","+x*y+"V0.5H"+V+"V"+x*y),D.attr("opacity",1).attr("transform",(function(t){return C(S(t))})),P.attr(w+"2",x*m),E.attr(w,x*M).text(h),N.filter(p).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===a?"start":t===l?"end":"middle"),N.each((function(){this.__axis=S}))}return M.scale=function(t){return arguments.length?(n=t,M):n},M.ticks=function(){return i=r.call(arguments),M},M.tickArguments=function(t){return arguments.length?(i=null==t?[]:r.call(t),M):i.slice()},M.tickValues=function(t){return arguments.length?(e=null==t?null:r.call(t),M):e&&e.slice()},M.tickFormat=function(t){return arguments.length?(g=t,M):g},M.tickSize=function(t){return arguments.length?(m=y=+t,M):m},M.tickSizeInner=function(t){return arguments.length?(m=+t,M):m},M.tickSizeOuter=function(t){return arguments.length?(y=+t,M):y},M.tickPadding=function(t){return arguments.length?(b=+t,M):b},M}function m(t){return g(a,t)}function y(t){return g(s,t)}function b(t){return g(l,t)}var x,w,C,M,k=i(5561),L=i(8957),V=i(8815),S=i(8639),N=i(6775),A=i(8485),D=i(1783),T=i(731),O=i(6465),P=i(87),E=i(4189),F=i(5401),B=i(3645),H=i(9604),_=i(2167),I=i(9507);function W(t,n,i){var e=t.domainNRangeValues,r=t.showRoundOffXTickValues,o=void 0!==r&&r,u=t.xAxistickSize,a=void 0===u?6:u,s=t.tickPadding,l=void 0===s?10:s,c=t.xAxisCount,f=void 0===c?6:c,h=t.xAxisElement,d=(0,V.Z)().domain([e.dStartValue,e.dEndValue]).range([e.rStartValue,e.rEndValue]);o&&d.nice();var v=y(d).tickSize(a).tickPadding(l).ticks(f).tickFormat((function(t,n){var e="number"==typeof t?t:t.valueOf();return st(e,i)}));n===w.HorizontalBarChartWithAxis&&v.tickSizeInner(-(t.containerHeight-t.margins.top)),h&&(0,A.Ys)(h).call(v).selectAll("text").attr("aria-hidden","true");var p=d.ticks(f).map(v.tickFormat());return{xScale:d,tickValues:p}}function R(t,n){var i=n?n.format:T.i$,e=i(".%L"),r=i(":%S"),o=i("%I:%M"),u=i("%I %p"),a=i("%a %d"),s=i("%b %d"),l=i("%B"),c=i("%Y");return((0,P.Z)(t)<t?e:(0,E.Z)(t)<t?r:(0,F.Z)(t)<t?o:(0,B.Z)(t)<t?u:(0,H.Z)(t)<t?(0,_.OM)(t)<t?a:s:(0,I.Z)(t)<t?l:c)(t)}function z(t,n,i,e,r,o){var u,a=t.domainNRangeValues,s=t.xAxisElement,l=t.tickPadding,c=void 0===l?6:l,f=t.xAxistickSize,h=void 0===f?6:f,d=t.xAxisCount,v=void 0===d?6:d,p=(0,S.Z)().domain([a.dStartValue,a.dEndValue]).range([a.rStartValue,a.rEndValue]),g=y(p).tickSize(h).tickPadding(c).ticks(v);if(o)g.tickFormat((function(t,n){return o(t)}));else if(i&&e)g.tickFormat((function(t,n){return t.toLocaleString(i,e)}));else if(r){var m=(0,O.Z)(r);g.tickFormat((function(t,n){return R(t,m)}))}n.tickValues&&g.tickValues(n.tickValues),void 0===i&&n.tickFormat&&g.tickFormat((0,T.i$)(n.tickFormat)),s&&(0,A.Ys)(s).call(g).selectAll("text").attr("aria-hidden","true");var b=(null!==(u=n.tickValues)&&void 0!==u?u:p.ticks(v)).map((function(t,n){var i=g.tickFormat();return i?i(t,n):R(t)}));return{xScale:p,tickValues:b}}function j(t,n,i,e){var r=t.domainNRangeValues,o=t.xAxisCount,u=void 0===o?6:o,a=t.xAxistickSize,s=void 0===a?6:a,l=t.tickPadding,c=void 0===l?10:l,f=t.xAxisPadding,h=void 0===f?.1:f,d=t.xAxisInnerPadding,v=t.xAxisOuterPadding,p=(0,N.Z)().domain(i).range([r.rStartValue,r.rEndValue]).paddingInner(void 0!==d?d:h).paddingOuter(void 0!==v?v:h),g=y(p).tickSize(s).tickPadding(c).ticks(u).tickFormat((function(t,n){return st(i[n],e)}));return t.xAxisElement&&(0,A.Ys)(t.xAxisElement).call(g).selectAll("text").attr("aria-hidden","true"),{xScale:p,tickValues:i.map(g.tickFormat())}}function X(t,n,i,e,r,o,u){return void 0===u&&(u=!1),e===w.HorizontalBarChartWithAxis?function(t,n,i,e){var r=t.yMinMaxValues,o=void 0===r?{startValue:0,endValue:0}:r,u=t.yAxisElement,a=void 0===u?null:u,s=t.yMaxValue,l=void 0===s?0:s,c=t.yMinValue,f=void 0===c?0:c,h=t.containerHeight,d=t.margins,v=t.tickPadding,p=void 0===v?12:v,g=t.maxOfYVal,y=void 0===g?0:g,x=t.yAxisTickFormat,w=t.yAxisTickCount,C=void 0===w?4:w,M=y||o.endValue,k=M>l?M:l,L=o.startValue<f?0:f,S=(0,V.Z)().domain([L,k]).range([h-d.bottom,d.top]),N=(n?m(S):b(S)).tickPadding(p).ticks(C);return x?N.tickFormat(x):N.tickFormat((0,D.WU)(".2~s")),a&&(0,A.Ys)(a).call(N).selectAll("text").attr("aria-hidden","true"),S}(t,n):function(t,n,i,e,r){void 0===r&&(r=!1);var o=t.yMinMaxValues,u=void 0===o?{startValue:0,endValue:0}:o,a=t.yAxisElement,s=void 0===a?null:a,l=t.yMaxValue,c=void 0===l?0:l,f=t.yMinValue,h=void 0===f?0:f,d=t.containerHeight,v=t.containerWidth,p=t.margins,g=t.tickPadding,y=void 0===g?12:g,x=t.maxOfYVal,w=void 0===x?0:x,C=t.yAxisTickFormat,M=t.yAxisTickCount,k=void 0===M?4:M,L=t.eventAnnotationProps,S=t.eventLabelHeight,N=w||u.endValue,T=N>c?N:c,O=u.startValue<h?0:h,P=function(t,n,i,e){for(var r=e||(t-n)/i>=1?Math.ceil((t-n)/i):(t-n)/i,o=[n,n+r];o[o.length-1]<t;)o.push(o[o.length-1]+r);return o}(T,O,k,e),E=(0,V.Z)().domain([O,P[P.length-1]]).range([d-p.bottom,p.top+(L?S:0)]),F=(!n&&r||n&&!r?m(E):b(E)).tickPadding(y).tickValues(P).tickSizeInner(-(v-p.left-p.right));return C?F.tickFormat(C):F.tickFormat((0,D.WU)(".2~s")),s&&(0,A.Ys)(s).call(F).selectAll("text").attr("aria-hidden","true"),i.yAxisDomainValues=P,E}(t,n,i,o,u)}!function(t){t[t.AreaChart=0]="AreaChart",t[t.LineChart=1]="LineChart",t[t.VerticalBarChart=2]="VerticalBarChart",t[t.VerticalStackedBarChart=3]="VerticalStackedBarChart",t[t.GroupedVerticalBarChart=4]="GroupedVerticalBarChart",t[t.HeatMapChart=5]="HeatMapChart",t[t.HorizontalBarChartWithAxis=6]="HorizontalBarChartWithAxis"}(w||(w={})),function(t){t[t.NumericAxis=0]="NumericAxis",t[t.DateAxis=1]="DateAxis",t[t.StringAxis=2]="StringAxis"}(C||(C={})),function(t){t[t.NumericAxis=0]="NumericAxis",t[t.DateAxis=1]="DateAxis",t[t.StringAxis=2]="StringAxis"}(M||(M={}));var Y=function(t,n,i,e,r,o){return e===w.HorizontalBarChartWithAxis?q(t,n,i,r,o):$(t,n,i)},q=function(t,n,i,e,r){var o=t.containerHeight,u=t.tickPadding,a=void 0===u?12:u,s=t.margins,l=t.yAxisTickFormat,c=t.yAxisElement,f=(0,N.Z)().domain(n).range([o-s.bottom-e/2,s.top+e/2]),h=(i?m(f):b(f)).tickPadding(a).ticks(n);return l&&h.tickFormat(l),c&&(0,A.Ys)(c).call(h).selectAll("text"),f},$=function(t,n,i){var e=t.containerHeight,r=t.tickPadding,o=void 0===r?12:r,u=t.margins,a=t.yAxisTickFormat,s=t.yAxisElement,l=t.yAxisPadding,c=void 0===l?0:l,f=(0,N.Z)().domain(n).range([e-u.bottom,u.top]).padding(c),h=(i?m(f):b(f)).tickPadding(o).tickValues(n).tickSize(0);return a&&h.tickFormat(a),s&&(0,A.Ys)(s).call(h).selectAll("text"),f};function U(t){var n=[];t.forEach((function(t){var i=t.data.filter((function(t){return!t.hideCallout})).map((function(n){return(0,e.pi)((0,e.pi)({},n),{legend:t.legend,color:t.color,index:t.index})}));n=n.concat(i)}));var i={};return n.forEach((function(t){var n=t.x instanceof Date?t.x.getTime():t.x;n in i?i[n].push({legend:t.legend,y:t.y,color:t.color,xAxisCalloutData:t.xAxisCalloutData,yAxisCalloutData:t.yAxisCalloutData,callOutAccessibilityData:t.callOutAccessibilityData,index:t.index}):i[n]=[{legend:t.legend,y:t.y,color:t.color,xAxisCalloutData:t.xAxisCalloutData,yAxisCalloutData:t.yAxisCalloutData,callOutAccessibilityData:t.callOutAccessibilityData,index:t.index}]})),Object.keys(i).map((function(t){return{x:Number(t),values:i[t]}}))}function Z(t){var n=t.node,i=t.xAxis,e=t.noOfCharsToTruncate,r=t.showXAxisLablesTooltip;if(null!==n){var o=(0,A.Ys)(n).call(i),u=0,a=[];return o.selectAll(".tick text").each((function(){var t=(0,A.Ys)(this),n=t.text(),i="".concat(t.text().slice(0,e),"..."),s=t.text().length,l=t.text().split(/\s+/).reverse();a.push(l.length);var c="",f=[],h=0,d=t.attr("y"),v=parseFloat(t.attr("dy")),p=t.text(null).append("tspan").attr("x",0).attr("y",d).attr("id","BaseSpan").attr("dy",v+"em").attr("data-",n);if(r&&s>e)p=t.append("tspan").attr("id","showDots").attr("x",0).attr("y",d).attr("dy",1.1*++h+v+"em").text(i);else if(r&&s<=e)p=t.append("tspan").attr("id","LessLength").attr("x",0).attr("y",d).attr("dy",1.1*++h+v+"em").text(n);else{for(;c=l.pop();)f.push(c),p.text(f.join(" ")),p.node().getComputedTextLength()>10&&f.length>1&&(f.pop(),p.text(f.join(" ")),f=[c],p=t.append("tspan").attr("id","WordBreakId").attr("x",0).attr("y",d).attr("dy",1.1*++h+v+"em").text(c));var g=Math.max.apply(Math,a),m=12;o.selectAll("text").each((function(){var t=document.getElementById("WordBreakId"),n=t&&t.getBoundingClientRect(),i=n&&n.height;i>m&&(m=i)}));var y=4;g<=2?y=1:g>2&&g<=6?y=2:g>6&&g<=9&&(y=3),u=(g-y)*m}})),u>0?u:0}}function G(t,n,i,e,r,o){null!==t&&(0,A.Ys)(t).call(n).selectAll(".tick text").each((function(){var t=(0,A.Ys)(this),n=t.text(),r=o?"...".concat(t.text().slice(0,i)):"".concat(t.text().slice(0,i),"..."),u=t.text().length,a=e?1.5:1,s=t.attr("y"),l=t.attr("x"),c=parseFloat(t.attr("dy"));t.text(null).append("tspan").attr("x",l).attr("y",s).attr("id","BaseSpan").attr("dy",c+"em").attr("data-",n),e&&u>i?t.append("tspan").attr("id","showDots").attr("x",o?0:l).attr("y",s).attr("dy",c).attr("dx",a+0+"em").text(r):t.attr("text-align","start").append("tspan").attr("id","LessLength").attr("x",o?0:l).attr("y",s).attr("dx",a+0+"em").text(n)}))}var K=function(t,n,i){var e=(0,A.Ys)("#".concat(n));if(e.text(t),!e.node())return!1;for(var r=!1,o=e.node().getComputedTextLength();o>i&&t.length>0;)t=t.slice(0,-1),e.text(t+"..."),r=!0,o=e.node().getComputedTextLength();return r},J=function(t,n){void 0===n&&(n="none");var i=0,e=document.createElement("canvas").getContext("2d");if(e){var r=document.querySelector(n);if(r){var o=window.getComputedStyle(r,null),u=o.getPropertyValue("font-weight"),a=o.getPropertyValue("font-size"),s=o.getPropertyValue("font-family");e.font="".concat(u," ").concat(a," ").concat(s)}else e.font='600 10px "Segoe UI"';t.forEach((function(t){i=Math.max(e.measureText(t.toString()).width,i)}))}return i};function Q(t){var n=t.tooltipCls,i=t.xAxis,e=t.id;if(null===i)return null;for(var r=(0,A.Ys)("body").append("div").attr("id",e).attr("class",n).style("opacity",0),o=i.selectAll("#BaseSpan")._groups[0],u=o&&Object.keys(o).length,a=[],s=0;s<u;s++){var l=o[s].dataset&&Object.values(o[s].dataset)[0];a.push(l)}var c=i.selectAll(".tick")._groups[0],f=c&&Object.keys(c).length,h=function(t){var n=c[t];(0,A.Ys)(n).on("mouseover",(function(n){r.style("opacity",.9),r.html(a[t]).style("left",A.B.pageX+"px").style("top",A.B.pageY-28+"px")})).on("mouseout",(function(t){r.style("opacity",0)}))};for(s=0;s<f;s++)h(s)}function tt(t){var n=!1;return t&&t.length>0&&t.forEach((function(t){t.data.length>0&&(n=t.data[0].x instanceof Date)})),n}function nt(t,n,i,r,o,u,a,s,l){var c;if(u===C.NumericAxis)switch(r){case w.AreaChart:case w.LineChart:c=function(t,n,i,e){var r=(0,k.Z)(t,(function(t){return(0,k.Z)(t.data,(function(t){return t.x}))})),o=(0,L.Z)(t,(function(t){return(0,L.Z)(t.data,(function(t){return t.x}))})),u=n.left,a=i-n.right;return e?{dStartValue:o,dEndValue:r,rStartValue:u,rEndValue:a}:{dStartValue:r,dEndValue:o,rStartValue:u,rEndValue:a}}(t,n,i,o);break;case w.VerticalStackedBarChart:c=function(t,n,i,e,r){var o=(0,k.Z)(t,(function(t){return t.x})),u=(0,L.Z)(t,(function(t){return t.x})),a=n.left+r/2,s=i-n.right-r/2;return e?{dStartValue:u,dEndValue:o,rStartValue:a,rEndValue:s}:{dStartValue:o,dEndValue:u,rStartValue:a,rEndValue:s}}(t,n,i,o,a);break;case w.VerticalBarChart:c=function(t,n,i,e,r){var o=(0,L.Z)(t,(function(t){return t.x})),u=(0,k.Z)(t,(function(t){return t.x})),a=n.left+r/2,s=i-n.right-r/2;return e?{dStartValue:o,dEndValue:u,rStartValue:a,rEndValue:s}:{dStartValue:u,dEndValue:o,rStartValue:a,rEndValue:s}}(t,n,i,o,a);break;case w.HorizontalBarChartWithAxis:c=function(t,n,i,e,r){var o=(0,L.Z)(t,(function(t){return t.x})),u=e?n.left:n.left+r,a=e?i-n.right-r:i-n.right;return e?{dStartValue:o,dEndValue:0,rStartValue:u,rEndValue:a}:{dStartValue:0,dEndValue:o,rStartValue:u,rEndValue:a}}(t,n,i,o,l);break;default:c={dStartValue:0,dEndValue:0,rStartValue:0,rEndValue:0}}else if(u===C.DateAxis)switch(r){case w.AreaChart:case w.LineChart:case w.VerticalBarChart:case w.VerticalStackedBarChart:c=function(t,n,i,r,o,u,a){var s,l;void 0===o&&(o=[]),u===w.AreaChart||u===w.LineChart?(s=(0,k.Z)(t,(function(t){return(0,k.Z)(t.data,(function(t){return t.x}))})),l=(0,L.Z)(t,(function(t){return(0,L.Z)(t.data,(function(t){return t.x}))})),s=(0,k.Z)((0,e.ev)((0,e.ev)([],o,!0),[s],!1)),l=(0,L.Z)((0,e.ev)((0,e.ev)([],o,!0),[l],!1))):(s=(0,k.Z)(t,(function(t){return t.x})),l=(0,L.Z)(t,(function(t){return t.x})));var c=n.left+(a?a/2:0),f=i-n.right-(a?a/2:0);return r?{dStartValue:l,dEndValue:s,rStartValue:c,rEndValue:f}:{dStartValue:s,dEndValue:l,rStartValue:c,rEndValue:f}}(t,n,i,o,s,r,a);break;default:c={dStartValue:0,dEndValue:0,rStartValue:0,rEndValue:0}}else switch(r){case w.VerticalStackedBarChart:case w.GroupedVerticalBarChart:case w.VerticalBarChart:case w.HeatMapChart:c=function(t,n,i){var e=t.left,r=n-t.right;return i?{dStartValue:0,dEndValue:0,rStartValue:r,rEndValue:e}:{dStartValue:0,dEndValue:0,rStartValue:e,rEndValue:r}}(n,i,o);break;default:c={dStartValue:0,dEndValue:0,rStartValue:0,rEndValue:0}}return c}function it(t,n,i){var e,r,o;switch(void 0===i&&(i=M.NumericAxis),n){case w.AreaChart:case w.LineChart:e=function(t){var n=(0,L.Z)(t,(function(t){return(0,L.Z)(t.data,(function(t){return t.y}))}));return{startValue:(0,k.Z)(t,(function(t){return(0,k.Z)(t.data,(function(t){return t.y}))})),endValue:n}}(t);break;case w.VerticalStackedBarChart:r=t,o=(0,L.Z)(r,(function(t){return t.y})),e={startValue:(0,k.Z)(r,(function(t){return t.y})),endValue:o};break;case w.VerticalBarChart:e=function(t){var n=(0,L.Z)(t,(function(t){return void 0!==t.lineData?t.y>t.lineData.y?t.y:t.lineData.y:t.y}));return{startValue:(0,k.Z)(t,(function(t){return void 0!==t.lineData?t.y<t.lineData.y?t.y:t.lineData.y:t.y})),endValue:n}}(t);break;case w.HorizontalBarChartWithAxis:e=function(t,n){if(void 0!==n&&n===M.NumericAxis){var i=(0,L.Z)(t,(function(t){return t.y}));return{startValue:(0,k.Z)(t,(function(t){return t.y})),endValue:i}}return{startValue:0,endValue:0}}(t,i);break;default:e={startValue:0,endValue:0}}return e}var et,rt,ot=function(t,n){if(n)switch(typeof t){case"string":return C.StringAxis;case"number":return C.NumericAxis;default:return C.DateAxis}else switch(typeof t){case"string":return M.StringAxis;case"number":return M.NumericAxis;default:return M.DateAxis}};!function(t){t[t.circle=0]="circle",t[t.square=1]="square",t[t.triangle=2]="triangle",t[t.diamond=3]="diamond",t[t.pyramid=4]="pyramid",t[t.hexagon=5]="hexagon",t[t.pentagon=6]="pentagon",t[t.octagon=7]="octagon"}(et||(et={})),function(t){t[t.dottedLine=0]="dottedLine"}(rt||(rt={}));var ut=((x={})[et.circle]={widthRatio:1},x[et.square]={widthRatio:1},x[et.triangle]={widthRatio:1},x[et.diamond]={widthRatio:1},x[et.pyramid]={widthRatio:1},x[et.hexagon]={widthRatio:2},x[et.pentagon]={widthRatio:1.168},x[et.octagon]={widthRatio:2.414},x),at=function(t,n,i){return void 0===n&&(n="text"),void 0===i&&(i=!0),{role:n,"data-is-focusable":i,"aria-label":(t=null!=t?t:{}).ariaLabel,"aria-labelledby":t.ariaLabelledBy,"aria-describedby":t.ariaDescribedBy}},st=function(t,n){return t?(n=n||void 0,"number"==typeof t?t.toLocaleString(n):"string"!=typeof t||window.isNaN(Number(t))?t instanceof Date?t.toLocaleDateString(n):t:Number(t).toLocaleString(n)):t};function lt(t){var n=t.node,i=t.xAxis;if(null!==n&&null!==i){var e=0,r=[];(0,A.Ys)(n).call(i).selectAll(".tick").each((function(){var t=this.getAttribute("transform");if(-1===(null==t?void 0:t.indexOf("rotate"))){var n=t.substring(t.indexOf("(")+1,t.indexOf(")")).split(",");2===n.length&&(r.push(n[0]),this.setAttribute("transform","translate(".concat(n[0],",0)rotate(-45)")))}var i=this.getBoundingClientRect(),o=i&&i.height;o>e&&(e=o)}));var o=0;return(0,A.Ys)(n).call(i).selectAll(".tick").each((function(){r.length>o&&(this.setAttribute("transform","translate(".concat(r[o],",").concat(e/2,")rotate(-45)")),o+=1)})),Math.floor(e/1.414)}}function ct(t,n){var i=0;(0,A.td)(".".concat(t)).each((function(){for(var t=(0,A.Ys)(this),e=t.text().split(/\s+/).reverse(),r="",o=[],u=0,a=t.attr("y"),s=t.text(null).append("tspan").attr("id","WordBreakId-".concat(i,"-").concat(u)).attr("x",0).attr("y",a).attr("dy",1.1*u+++"em");r=e.pop();)o.push(r),s.text(o.join(" ")+" "),s.node().getComputedTextLength()>n&&o.length>1&&(o.pop(),s.text(o.join(" ")+" "),o=[r],s=t.append("tspan").attr("id","WordBreakId-".concat(i,"-").concat(u)).attr("x",0).attr("y",a).attr("dy",1.1*u+++"em").text(r));i+=1}))}function ft(t){var n;return n=t<1e3?".2~":".1",(0,D.jH)(n,t)(t)}},9785:function(t,n,i){function e(t,n){return t<n?-1:t>n?1:t>=n?0:NaN}i.d(n,{Z:function(){return e}})},7329:function(t,n,i){i.d(n,{Z:function(){return r}});var e=i(9785);function r(t){let n=t,i=t;function r(t,n,e,r){for(null==e&&(e=0),null==r&&(r=t.length);e<r;){const o=e+r>>>1;i(t[o],n)<0?e=o+1:r=o}return e}return 1===t.length&&(n=(n,i)=>t(n)-i,i=function(t){return(n,i)=>(0,e.Z)(t(n),i)}(t)),{left:r,center:function(t,i,e,o){null==e&&(e=0),null==o&&(o=t.length);const u=r(t,i,e,o-1);return u>e&&n(t[u-1],i)>-n(t[u],i)?u-1:u},right:function(t,n,e,r){for(null==e&&(e=0),null==r&&(r=t.length);e<r;){const o=e+r>>>1;i(t[o],n)>0?r=o:e=o+1}return e}}}},8957:function(t,n,i){function e(t,n){let i;if(void 0===n)for(const n of t)null!=n&&(i<n||void 0===i&&n>=n)&&(i=n);else{let e=-1;for(let r of t)null!=(r=n(r,++e,t))&&(i<r||void 0===i&&r>=r)&&(i=r)}return i}i.d(n,{Z:function(){return e}})},5561:function(t,n,i){function e(t,n){let i;if(void 0===n)for(const n of t)null!=n&&(i>n||void 0===i&&n>=n)&&(i=n);else{let e=-1;for(let r of t)null!=(r=n(r,++e,t))&&(i>r||void 0===i&&r>=r)&&(i=r)}return i}i.d(n,{Z:function(){return e}})},6077:function(t,n,i){i.d(n,{x:function(){return o}});var e={},r=void 0;try{r=window}catch(t){}function o(t,n){if(void 0!==r){var i=r.__packages__=r.__packages__||{};i[t]&&e[t]||(e[t]=n,(i[t]=i[t]||[]).push(n))}}o("@fluentui/set-version","6.0.0")},1786:function(t,n,i){i.d(n,{k4:function(){return J},UK:function(){return Q.U},TS:function(){return tt.TS},lq:function(){return tt.lq},qJ:function(){return nt},$v:function(){return it},bR:function(){return K},e2:function(){return ot},GL:function(){return rt},Cn:function(){return st},gh:function(){return Lt},ul:function(){return ut}});var e=i(13),r=i(4473),o=i(5499),u=i(7373);function a(t){var n=o.Y.getInstance(),i=[];for(var e in t)t.hasOwnProperty(e)&&i.push(e,"{",(0,u.dH)((0,r.Eo)(),t[e]),"}");var a=i.join(""),s=n.classNameFromKey(a);if(s)return s;var l=n.getClassName();return n.insertRule("@keyframes ".concat(l,"{").concat(a,"}"),!0),n.cacheClassName(l,a,[],["keyframes",a]),l}var s="cubic-bezier(.1,.9,.2,1)",l="cubic-bezier(.1,.25,.75,.9)",c="0.167s",f="0.267s",h="0.367s",d="0.467s",v=a({from:{opacity:0},to:{opacity:1}}),p=a({from:{opacity:1},to:{opacity:0,visibility:"hidden"}}),g=$(-10),m=$(-20),y=$(-40),b=$(-400),x=$(10),w=$(20),C=$(40),M=$(400),k=U(10),L=U(20),V=U(-10),S=U(-20),N=Z(10),A=Z(20),D=Z(40),T=Z(400),O=Z(-10),P=Z(-20),E=Z(-40),F=Z(-400),B=G(-10),H=G(-20),_=G(10),I=G(20),W=a({from:{transform:"scale3d(.98,.98,1)"},to:{transform:"scale3d(1,1,1)"}}),R=a({from:{transform:"scale3d(1,1,1)"},to:{transform:"scale3d(.98,.98,1)"}}),z=a({from:{transform:"scale3d(1.03,1.03,1)"},to:{transform:"scale3d(1,1,1)"}}),j=a({from:{transform:"scale3d(1,1,1)"},to:{transform:"scale3d(1.03,1.03,1)"}}),X=a({from:{transform:"rotateZ(0deg)"},to:{transform:"rotateZ(90deg)"}}),Y=a({from:{transform:"rotateZ(0deg)"},to:{transform:"rotateZ(-90deg)"}});function q(t,n,i){return{animationName:t,animationDuration:n,animationTimingFunction:i,animationFillMode:"both"}}function $(t){return a({from:{transform:"translate3d(".concat(t,"px,0,0)"),pointerEvents:"none"},to:{transform:"translate3d(0,0,0)",pointerEvents:"auto"}})}function U(t){return a({from:{transform:"translate3d(0,".concat(t,"px,0)"),pointerEvents:"none"},to:{transform:"translate3d(0,0,0)",pointerEvents:"auto"}})}function Z(t){return a({from:{transform:"translate3d(0,0,0)"},to:{transform:"translate3d(".concat(t,"px,0,0)")}})}function G(t){return a({from:{transform:"translate3d(0,0,0)"},to:{transform:"translate3d(0,".concat(t,"px,0)")}})}var K,J=function(t){var n={},i=function(i){var r;t.hasOwnProperty(i)&&Object.defineProperty(n,i,{get:function(){return void 0===r&&(r=(0,e.y)(t[i]).toString()),r},enumerable:!0,configurable:!0})};for(var r in t)i(r);return n}({slideRightIn10:q("".concat(v,",").concat(g),h,s),slideRightIn20:q("".concat(v,",").concat(m),h,s),slideRightIn40:q("".concat(v,",").concat(y),h,s),slideRightIn400:q("".concat(v,",").concat(b),h,s),slideLeftIn10:q("".concat(v,",").concat(x),h,s),slideLeftIn20:q("".concat(v,",").concat(w),h,s),slideLeftIn40:q("".concat(v,",").concat(C),h,s),slideLeftIn400:q("".concat(v,",").concat(M),h,s),slideUpIn10:q("".concat(v,",").concat(k),h,s),slideUpIn20:q("".concat(v,",").concat(L),h,s),slideDownIn10:q("".concat(v,",").concat(V),h,s),slideDownIn20:q("".concat(v,",").concat(S),h,s),slideRightOut10:q("".concat(p,",").concat(N),h,s),slideRightOut20:q("".concat(p,",").concat(A),h,s),slideRightOut40:q("".concat(p,",").concat(D),h,s),slideRightOut400:q("".concat(p,",").concat(T),h,s),slideLeftOut10:q("".concat(p,",").concat(O),h,s),slideLeftOut20:q("".concat(p,",").concat(P),h,s),slideLeftOut40:q("".concat(p,",").concat(E),h,s),slideLeftOut400:q("".concat(p,",").concat(F),h,s),slideUpOut10:q("".concat(p,",").concat(B),h,s),slideUpOut20:q("".concat(p,",").concat(H),h,s),slideDownOut10:q("".concat(p,",").concat(_),h,s),slideDownOut20:q("".concat(p,",").concat(I),h,s),scaleUpIn100:q("".concat(v,",").concat(W),h,s),scaleDownIn100:q("".concat(v,",").concat(z),h,s),scaleUpOut103:q("".concat(p,",").concat(j),c,l),scaleDownOut98:q("".concat(p,",").concat(R),c,l),fadeIn100:q(v,c,l),fadeIn200:q(v,f,l),fadeIn400:q(v,h,l),fadeIn500:q(v,d,l),fadeOut100:q(p,c,l),fadeOut200:q(p,f,l),fadeOut400:q(p,h,l),fadeOut500:q(p,d,l),rotate90deg:q(X,"0.1s",l),rotateN90deg:q(Y,"0.1s",l)}),Q=i(7045),tt=i(8473),nt="@media screen and (-ms-high-contrast: active), screen and (forced-colors: active)",it="@media screen and (-ms-high-contrast: white-on-black), screen and (forced-colors: active) and (prefers-color-scheme: dark)",et=i(9766);function rt(t,n,i,e,r,o,u,a){return function(t,n){var i,e;void 0===n&&(n={});var r=n.borderRadius,o=n.inset,u=void 0===o?0:o,a=n.width,s=void 0===a?1:a,l=n.position,c=void 0===l?"relative":l,f=n.highContrastStyle,h=n.borderColor,d=void 0===h?t.palette.white:h,v=n.outlineColor,p=void 0===v?t.palette.neutralSecondary:v,g=n.isFocusedOnly,m=void 0===g||g,y=n.pointerEvents;return{outline:"transparent",position:c,selectors:(i={"::-moz-focus-inner":{border:"0"}},i[".".concat(et.G$," &").concat(m?":focus":"",":after")]={content:'""',position:"absolute",pointerEvents:y,left:u+1,top:u+1,bottom:u+1,right:u+1,border:"".concat(s,"px solid ").concat(d),outline:"".concat(s,"px solid ").concat(p),zIndex:K.FocusStyle,borderRadius:r,selectors:(e={},e[nt]=f,e)},i)}}(t,"number"!=typeof n&&n?n:{inset:n,position:i,highContrastStyle:e,borderColor:r,outlineColor:o,isFocusedOnly:u,borderRadius:a})}function ot(){return{selectors:{"&::-moz-focus-inner":{border:0},"&":{outline:"transparent"}}}}!function(t){t.Nav=1,t.ScrollablePane=1,t.FocusStyle=1,t.Coachmark=1e3,t.Layer=1e6,t.KeytipLayer=1000001}(K||(K={}));var ut={position:"absolute",width:1,height:1,margin:-1,padding:0,border:0,overflow:"hidden",whiteSpace:"nowrap"},at=(0,i(156).NF)((function(t,n){var i=o.Y.getInstance();return n?Object.keys(t).reduce((function(n,e){return n[e]=i.getClassName(t[e]),n}),{}):t}));function st(t,n,i){return at(t,void 0!==i?i:n.disableGlobalClassNames)}var lt,ct=i(9939),ft=i(3820),ht=i(775),dt=function(){return dt=Object.assign||function(t){for(var n,i=1,e=arguments.length;i<e;i++)for(var r in n=arguments[i])Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r]);return t},dt.apply(this,arguments)},vt="undefined"==typeof window?i.g:window,pt=vt&&vt.CSPSettings&&vt.CSPSettings.nonce,gt=((lt=vt.__themeState__||{theme:void 0,lastStyleElement:void 0,registeredStyles:[]}).runState||(lt=dt({},lt,{perf:{count:0,duration:0},runState:{flushTimer:0,mode:0,buffer:[]}})),lt.registeredThemableStyles||(lt=dt({},lt,{registeredThemableStyles:[]})),vt.__themeState__=lt,lt);function mt(t){gt.theme=t,function(){if(gt.theme){for(var t=[],n=0,i=gt.registeredThemableStyles;n<i.length;n++){var e=i[n];t.push(e.themableStyle)}t.length>0&&(void 0===(o=1)&&(o=3),3!==o&&2!==o||(yt(gt.registeredStyles),gt.registeredStyles=[]),3!==o&&1!==o||(yt(gt.registeredThemableStyles),gt.registeredThemableStyles=[]),r=[].concat.apply([],t),gt.loadStyles?gt.loadStyles(bt(r).styleString,r):function(t){if("undefined"!=typeof document){var n=document.getElementsByTagName("head")[0],i=document.createElement("style"),e=bt(t),r=e.styleString,o=e.themable;i.setAttribute("data-load-themed-styles","true"),i.type="text/css",pt&&i.setAttribute("nonce",pt),i.appendChild(document.createTextNode(r)),gt.perf.count++,n.appendChild(i);var u=document.createEvent("HTMLEvents");u.initEvent("styleinsert",!0,!1),u.args={newStyle:i},document.dispatchEvent(u);var a={styleElement:i,themableStyle:t};o?gt.registeredThemableStyles.push(a):gt.registeredStyles.push(a)}}(r))}var r,o}()}function yt(t){t.forEach((function(t){var n=t&&t.styleElement;n&&n.parentElement&&n.parentElement.removeChild(n)}))}function bt(t){var n=gt.theme,i=!1;return{styleString:(t||[]).map((function(t){var e=t.theme;if(e){i=!0;var r=n?n[e]:void 0,o=t.defaultValue||"inherit";return n&&!r&&console&&!(e in n)&&"undefined"!=typeof DEBUG&&DEBUG&&console.warn('Theming value not provided for "'+e+'". Falling back to "'+o+'".'),r||o}return t.rawString})).join(""),themable:i}}var xt=i(685),wt=(0,xt.j)({}),Ct=[],Mt="theme";function kt(){var t,n,i,e=(0,ft.J)();(null===(n=null==e?void 0:e.FabricConfig)||void 0===n?void 0:n.legacyTheme)?function(t,n){var i;void 0===n&&(n=!1),wt=(0,xt.j)(t,n),mt((0,ct.pi)((0,ct.pi)((0,ct.pi)((0,ct.pi)({},wt.palette),wt.semanticColors),wt.effects),function(t){for(var n={},i=0,e=Object.keys(t.fonts);i<e.length;i++)for(var r=e[i],o=t.fonts[r],u=0,a=Object.keys(o);u<a.length;u++){var s=a[u],l=r+s.charAt(0).toUpperCase()+s.slice(1),c=o[s];"fontSize"===s&&"number"==typeof c&&(c+="px"),n[l]=c}return n}(wt))),ht.X.applySettings(((i={})[Mt]=wt,i)),Ct.forEach((function(t){try{t(wt)}catch(t){}}))}(e.FabricConfig.legacyTheme):ht.X.getSettings([Mt]).theme||((null===(i=null==e?void 0:e.FabricConfig)||void 0===i?void 0:i.theme)&&(wt=(0,xt.j)(e.FabricConfig.theme)),ht.X.applySettings(((t={})[Mt]=wt,t)))}function Lt(t){return void 0===t&&(t=!1),!0===t&&(wt=(0,xt.j)({},t)),wt}kt(),(0,i(6077).x)("@fluentui/style-utilities","8.10.3"),kt()},7045:function(t,n,i){i.d(n,{U:function(){return e}});var e={themeDarker:"#004578",themeDark:"#005a9e",themeDarkAlt:"#106ebe",themePrimary:"#0078d4",themeSecondary:"#2b88d8",themeTertiary:"#71afe5",themeLight:"#c7e0f4",themeLighter:"#deecf9",themeLighterAlt:"#eff6fc",black:"#000000",blackTranslucent40:"rgba(0,0,0,.4)",neutralDark:"#201f1e",neutralPrimary:"#323130",neutralPrimaryAlt:"#3b3a39",neutralSecondary:"#605e5c",neutralSecondaryAlt:"#8a8886",neutralTertiary:"#a19f9d",neutralTertiaryAlt:"#c8c6c4",neutralQuaternary:"#d2d0ce",neutralQuaternaryAlt:"#e1dfdd",neutralLight:"#edebe9",neutralLighter:"#f3f2f1",neutralLighterAlt:"#faf9f8",accent:"#0078d4",white:"#ffffff",whiteTranslucent40:"rgba(255,255,255,.4)",yellowDark:"#d29200",yellow:"#ffb900",yellowLight:"#fff100",orange:"#d83b01",orangeLight:"#ea4300",orangeLighter:"#ff8c00",redDark:"#a4262c",red:"#e81123",magentaDark:"#5c005c",magenta:"#b4009e",magentaLight:"#e3008c",purpleDark:"#32145a",purple:"#5c2d91",purpleLight:"#b4a0ff",blueDark:"#002050",blueMid:"#00188f",blue:"#0078d4",blueLight:"#00bcf2",tealDark:"#004b50",teal:"#008272",tealLight:"#00b294",greenDark:"#004b1c",green:"#107c10",greenLight:"#bad80a"}},685:function(t,n,i){i.d(n,{j:function(){return O}});var e,r=i(7045);!function(t){t.depth0="0 0 0 0 transparent",t.depth4="0 1.6px 3.6px 0 rgba(0, 0, 0, 0.132), 0 0.3px 0.9px 0 rgba(0, 0, 0, 0.108)",t.depth8="0 3.2px 7.2px 0 rgba(0, 0, 0, 0.132), 0 0.6px 1.8px 0 rgba(0, 0, 0, 0.108)",t.depth16="0 6.4px 14.4px 0 rgba(0, 0, 0, 0.132), 0 1.2px 3.6px 0 rgba(0, 0, 0, 0.108)",t.depth64="0 25.6px 57.6px 0 rgba(0, 0, 0, 0.22), 0 4.8px 14.4px 0 rgba(0, 0, 0, 0.18)"}(e||(e={}));var o={elevation4:e.depth4,elevation8:e.depth8,elevation16:e.depth16,elevation64:e.depth64,roundedCorner2:"2px",roundedCorner4:"4px",roundedCorner6:"6px"},u=i(4473),a=i(5499),s=i(7373),l=i(8473),c="'Segoe UI', '".concat(l.Qm.WestEuropean,"'"),f={ar:l.II.Arabic,bg:l.II.Cyrillic,cs:l.II.EastEuropean,el:l.II.Greek,et:l.II.EastEuropean,he:l.II.Hebrew,hi:l.II.Hindi,hr:l.II.EastEuropean,hu:l.II.EastEuropean,ja:l.II.Japanese,kk:l.II.EastEuropean,ko:l.II.Korean,lt:l.II.EastEuropean,lv:l.II.EastEuropean,pl:l.II.EastEuropean,ru:l.II.Cyrillic,sk:l.II.EastEuropean,"sr-latn":l.II.EastEuropean,th:l.II.Thai,tr:l.II.EastEuropean,uk:l.II.Cyrillic,vi:l.II.Vietnamese,"zh-hans":l.II.ChineseSimplified,"zh-hant":l.II.ChineseTraditional,hy:l.II.Armenian,ka:l.II.Georgian};function h(t,n,i){return{fontFamily:i,MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontSize:t,fontWeight:n}}var d,v,p,g,m,y,b=i(2874),x=i(3820),w=i(5114),C="language",M=(v=function(t){for(var n in f)if(f.hasOwnProperty(n)&&t&&0===n.indexOf(t))return f[n];return c}(function(t){if(void 0===t&&(t="sessionStorage"),void 0===d){var n=(0,b.M)(),i="localStorage"===t?function(t){var n=null;try{var i=(0,x.J)();n=i?i.localStorage.getItem(t):null}catch(t){}return n}(C):"sessionStorage"===t?w.r(C):void 0;i&&(d=i),void 0===d&&n&&(d=n.documentElement.getAttribute("lang")),void 0===d&&(d="en")}return d}()),p="".concat(v,", ").concat("'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif"),{tiny:h(l.TS.mini,l.lq.regular,p),xSmall:h(l.TS.xSmall,l.lq.regular,p),small:h(l.TS.small,l.lq.regular,p),smallPlus:h(l.TS.smallPlus,l.lq.regular,p),medium:h(l.TS.medium,l.lq.regular,p),mediumPlus:h(l.TS.mediumPlus,l.lq.regular,p),large:h(l.TS.large,l.lq.regular,p),xLarge:h(l.TS.xLarge,l.lq.semibold,p),xLargePlus:h(l.TS.xLargePlus,l.lq.semibold,p),xxLarge:h(l.TS.xxLarge,l.lq.semibold,p),xxLargePlus:h(l.TS.xxLargePlus,l.lq.semibold,p),superLarge:h(l.TS.superLarge,l.lq.semibold,p),mega:h(l.TS.mega,l.lq.semibold,p)});function k(t,n,i,e){!function(t){var n=a.Y.getInstance(),i=(0,s.dH)((0,u.Eo)(),t);if(!n.classNameFromKey(i)){var e=n.getClassName();n.insertRule("@font-face{".concat(i,"}"),!0),n.cacheClassName(e,i,[],["font-face",i])}}({fontFamily:t="'".concat(t,"'"),src:(void 0!==e?"local('".concat(e,"'),"):"")+"url('".concat(n,".woff2') format('woff2'),")+"url('".concat(n,".woff') format('woff')"),fontWeight:i,fontStyle:"normal",fontDisplay:"swap"})}function L(t,n,i,e,r){void 0===e&&(e="segoeui");var o="".concat(t,"/").concat(i,"/").concat(e);k(n,o+"-light",l.lq.light,r&&r+" Light"),k(n,o+"-semilight",l.lq.semilight,r&&r+" SemiLight"),k(n,o+"-regular",l.lq.regular,r),k(n,o+"-semibold",l.lq.semibold,r&&r+" SemiBold"),k(n,o+"-bold",l.lq.bold,r&&r+" Bold")}function V(t){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];for(var e=0,r=n;e<r.length;e++)S(t||{},r[e]);return t}function S(t,n,i){for(var e in void 0===i&&(i=[]),i.push(n),n)if(n.hasOwnProperty(e)&&"__proto__"!==e&&"constructor"!==e&&"prototype"!==e){var r=n[e];if("object"!=typeof r||null===r||Array.isArray(r))t[e]=r;else{var o=i.indexOf(r)>-1;t[e]=o?r:S(t[e]||{},r,i)}}return i.pop(),t}!function(t){if(t){var n="".concat(t,"/fonts");L(n,l.Qm.Thai,"leelawadeeui-thai","leelawadeeui"),L(n,l.Qm.Arabic,"segoeui-arabic"),L(n,l.Qm.Cyrillic,"segoeui-cyrillic"),L(n,l.Qm.EastEuropean,"segoeui-easteuropean"),L(n,l.Qm.Greek,"segoeui-greek"),L(n,l.Qm.Hebrew,"segoeui-hebrew"),L(n,l.Qm.Vietnamese,"segoeui-vietnamese"),L(n,l.Qm.WestEuropean,"segoeui-westeuropean","segoeui","Segoe UI"),L(n,l.II.Selawik,"selawik","selawik"),L(n,l.Qm.Armenian,"segoeui-armenian"),L(n,l.Qm.Georgian,"segoeui-georgian"),k("Leelawadee UI Web","".concat(n,"/leelawadeeui-thai/leelawadeeui-semilight"),l.lq.light),k("Leelawadee UI Web","".concat(n,"/leelawadeeui-thai/leelawadeeui-bold"),l.lq.semibold)}}((y=null===(g=(0,x.J)())||void 0===g?void 0:g.FabricConfig,null!==(m=null==y?void 0:y.fontBaseUrl)&&void 0!==m?m:"https://res-1.cdn.office.net/files/fabric-cdn-prod_20230815.002/assets"));var N=i(9939);function A(t,n,i,e,r){return void 0===r&&(r=!1),function(t,n){var i="";return!0===n&&(i=" /* @deprecated */"),t.listTextColor=t.listText+i,t.menuItemBackgroundChecked+=i,t.warningHighlight+=i,t.warningText=t.messageText+i,t.successText+=i,t}(D(t,n,(0,N.pi)({primaryButtonBorder:"transparent",errorText:e?"#F1707B":"#a4262c",messageText:e?"#F3F2F1":"#323130",messageLink:e?"#6CB8F6":"#005A9E",messageLinkHovered:e?"#82C7FF":"#004578",infoIcon:e?"#C8C6C4":"#605e5c",errorIcon:e?"#F1707B":"#A80000",blockingIcon:e?"#442726":"#FDE7E9",warningIcon:e?"#C8C6C4":"#797775",severeWarningIcon:e?"#FCE100":"#D83B01",successIcon:e?"#92C353":"#107C10",infoBackground:e?"#323130":"#f3f2f1",errorBackground:e?"#442726":"#FDE7E9",blockingBackground:e?"#442726":"#FDE7E9",warningBackground:e?"#433519":"#FFF4CE",severeWarningBackground:e?"#4F2A0F":"#FED9CC",successBackground:e?"#393D1B":"#DFF6DD",warningHighlight:e?"#fff100":"#ffb900",successText:e?"#92c353":"#107C10"},i),e),r)}function D(t,n,i,e,r){void 0===r&&(r=!1);var o={},u=t||{},a=u.white,s=u.black,l=u.themePrimary,c=u.themeDark,f=u.themeDarker,h=u.themeDarkAlt,d=u.themeLighter,v=u.neutralLight,p=u.neutralLighter,g=u.neutralDark,m=u.neutralQuaternary,y=u.neutralQuaternaryAlt,b=u.neutralPrimary,x=u.neutralSecondary,w=u.neutralSecondaryAlt,C=u.neutralTertiary,M=u.neutralTertiaryAlt,k=u.neutralLighterAlt,L=u.accent;return a&&(o.bodyBackground=a,o.bodyFrameBackground=a,o.accentButtonText=a,o.buttonBackground=a,o.primaryButtonText=a,o.primaryButtonTextHovered=a,o.primaryButtonTextPressed=a,o.inputBackground=a,o.inputForegroundChecked=a,o.listBackground=a,o.menuBackground=a,o.cardStandoutBackground=a),s&&(o.bodyTextChecked=s,o.buttonTextCheckedHovered=s),l&&(o.link=l,o.primaryButtonBackground=l,o.inputBackgroundChecked=l,o.inputIcon=l,o.inputFocusBorderAlt=l,o.menuIcon=l,o.menuHeader=l,o.accentButtonBackground=l),c&&(o.primaryButtonBackgroundPressed=c,o.inputBackgroundCheckedHovered=c,o.inputIconHovered=c),f&&(o.linkHovered=f),h&&(o.primaryButtonBackgroundHovered=h),d&&(o.inputPlaceholderBackgroundChecked=d),v&&(o.bodyBackgroundChecked=v,o.bodyFrameDivider=v,o.bodyDivider=v,o.variantBorder=v,o.buttonBackgroundCheckedHovered=v,o.buttonBackgroundPressed=v,o.listItemBackgroundChecked=v,o.listHeaderBackgroundPressed=v,o.menuItemBackgroundPressed=v,o.menuItemBackgroundChecked=v),p&&(o.bodyBackgroundHovered=p,o.buttonBackgroundHovered=p,o.buttonBackgroundDisabled=p,o.buttonBorderDisabled=p,o.primaryButtonBackgroundDisabled=p,o.disabledBackground=p,o.listItemBackgroundHovered=p,o.listHeaderBackgroundHovered=p,o.menuItemBackgroundHovered=p),m&&(o.primaryButtonTextDisabled=m,o.disabledSubtext=m),y&&(o.listItemBackgroundCheckedHovered=y),C&&(o.disabledBodyText=C,o.variantBorderHovered=(null==i?void 0:i.variantBorderHovered)||C,o.buttonTextDisabled=C,o.inputIconDisabled=C,o.disabledText=C),b&&(o.bodyText=b,o.actionLink=b,o.buttonText=b,o.inputBorderHovered=b,o.inputText=b,o.listText=b,o.menuItemText=b),k&&(o.bodyStandoutBackground=k,o.defaultStateBackground=k),g&&(o.actionLinkHovered=g,o.buttonTextHovered=g,o.buttonTextChecked=g,o.buttonTextPressed=g,o.inputTextHovered=g,o.menuItemTextHovered=g),x&&(o.bodySubtext=x,o.focusBorder=x,o.inputBorder=x,o.smallInputBorder=x,o.inputPlaceholderText=x),w&&(o.buttonBorder=w),M&&(o.disabledBodySubtext=M,o.disabledBorder=M,o.buttonBackgroundChecked=M,o.menuDivider=M),L&&(o.accentButtonBackground=L),(null==n?void 0:n.elevation4)&&(o.cardShadow=n.elevation4),!e&&(null==n?void 0:n.elevation8)?o.cardShadowHovered=n.elevation8:o.variantBorderHovered&&(o.cardShadowHovered="0 0 1px "+o.variantBorderHovered),(0,N.pi)((0,N.pi)({},o),i)}var T={s2:"4px",s1:"8px",m:"16px",l1:"20px",l2:"32px"};function O(t,n){void 0===t&&(t={}),void 0===n&&(n=!1);var i=!!t.isInverted;return function(t,n){var i,e,r;void 0===n&&(n={});var o=V({},t,n,{semanticColors:D(n.palette,n.effects,n.semanticColors,void 0===n.isInverted?t.isInverted:n.isInverted)});if((null===(i=n.palette)||void 0===i?void 0:i.themePrimary)&&!(null===(e=n.palette)||void 0===e?void 0:e.accent)&&(o.palette.accent=n.palette.themePrimary),n.defaultFontStyle)for(var u=0,a=Object.keys(o.fonts);u<a.length;u++){var s=a[u];o.fonts[s]=V(o.fonts[s],n.defaultFontStyle,null===(r=null==n?void 0:n.fonts)||void 0===r?void 0:r[s])}return o}({palette:r.U,effects:o,fonts:M,spacing:T,isInverted:i,disableGlobalClassNames:!1,semanticColors:A(r.U,o,void 0,i,n),rtl:void 0},t)}},8473:function(t,n,i){var e,r,o,u,a;i.d(n,{II:function(){return r},Qm:function(){return e},TS:function(){return o},lq:function(){return u}}),function(t){t.Arabic="Segoe UI Web (Arabic)",t.Cyrillic="Segoe UI Web (Cyrillic)",t.EastEuropean="Segoe UI Web (East European)",t.Greek="Segoe UI Web (Greek)",t.Hebrew="Segoe UI Web (Hebrew)",t.Thai="Leelawadee UI Web",t.Vietnamese="Segoe UI Web (Vietnamese)",t.WestEuropean="Segoe UI Web (West European)",t.Selawik="Selawik Web",t.Armenian="Segoe UI Web (Armenian)",t.Georgian="Segoe UI Web (Georgian)"}(e||(e={})),function(t){t.Arabic="'".concat(e.Arabic,"'"),t.ChineseSimplified="'Microsoft Yahei UI', Verdana, Simsun",t.ChineseTraditional="'Microsoft Jhenghei UI', Pmingliu",t.Cyrillic="'".concat(e.Cyrillic,"'"),t.EastEuropean="'".concat(e.EastEuropean,"'"),t.Greek="'".concat(e.Greek,"'"),t.Hebrew="'".concat(e.Hebrew,"'"),t.Hindi="'Nirmala UI'",t.Japanese="'Yu Gothic UI', 'Meiryo UI', Meiryo, 'MS Pgothic', Osaka",t.Korean="'Malgun Gothic', Gulim",t.Selawik="'".concat(e.Selawik,"'"),t.Thai="'Leelawadee UI Web', 'Kmer UI'",t.Vietnamese="'".concat(e.Vietnamese,"'"),t.WestEuropean="'".concat(e.WestEuropean,"'"),t.Armenian="'".concat(e.Armenian,"'"),t.Georgian="'".concat(e.Georgian,"'")}(r||(r={})),function(t){t.size10="10px",t.size12="12px",t.size14="14px",t.size16="16px",t.size18="18px",t.size20="20px",t.size24="24px",t.size28="28px",t.size32="32px",t.size42="42px",t.size68="68px",t.mini="10px",t.xSmall="10px",t.small="12px",t.smallPlus="12px",t.medium="14px",t.mediumPlus="16px",t.icon="16px",t.large="18px",t.xLarge="20px",t.xLargePlus="24px",t.xxLarge="28px",t.xxLargePlus="32px",t.superLarge="42px",t.mega="68px"}(o||(o={})),function(t){t.light=100,t.semilight=300,t.regular=400,t.semibold=600,t.bold=700}(u||(u={})),function(t){t.xSmall="10px",t.small="12px",t.medium="16px",t.large="20px"}(a||(a={}))},8461:function(t,n,i){i.d(n,{y:function(){return v}});var e=i(5499),r=i(4270),o=i(3802),u=i(7373);var a=i(116),s=i(3820),l=50,c=5,f=0,h=e.Y.getInstance();h&&h.onReset&&h.onReset((function(){return f++}));var d="__retval__";function v(t){void 0===t&&(t={});var n=new Map,i=0,e=0,h=f;return function(v,p){var m;if(void 0===p&&(p={}),t.useStaticStyles&&"function"==typeof v&&v.__noStyleOverride__)return v(p);e++;var y=n,b=p.theme,x=b&&void 0!==b.rtl?b.rtl:(0,a.zg)(),w=t.disableCaching;if(h!==f&&(h=f,n=new Map,i=0),t.disableCaching||(y=g(n,v),y=g(y,p)),!w&&y[d]||(y[d]=void 0===v?{}:function(t,n){var i={subComponentStyles:{}};if(!t[0]&&t.length<=1)return{subComponentStyles:{}};var e=r.m.apply(void 0,t),a=[];for(var s in e)if(e.hasOwnProperty(s)){if("subComponentStyles"===s){i.subComponentStyles=e.subComponentStyles||{};continue}var l=e[s],c=(0,o.U)(l),f=c.classes,h=c.objects;(null==h?void 0:h.length)?(p=(0,u.aj)(n||{},{displayName:s},h))&&(a.push(p),i[s]=f.concat([p.className]).join(" ")):i[s]=f.join(" ")}for(var d=0,v=a;d<v.length;d++){var p;(p=v[d])&&(0,u.Jh)(p,null==n?void 0:n.specificityMultiplier)}return i}(["function"==typeof v?v(p):v],{rtl:!!x,specificityMultiplier:t.useStaticStyles?c:void 0}),w||i++),i>(t.cacheSize||l)){var C=(0,s.J)();(null===(m=null==C?void 0:C.FabricConfig)||void 0===m?void 0:m.enableClassNameCacheFullWarning)&&(console.warn("Styles are being recalculated too frequently. Cache miss rate is ".concat(i,"/").concat(e,".")),console.trace()),n.clear(),i=0,t.disableCaching=!0}return y[d]}}function p(t,n){return n=function(t){switch(t){case void 0:return"__undefined__";case null:return"__null__";default:return t}}(n),t.has(n)||t.set(n,new Map),t.get(n)}function g(t,n){if("function"==typeof n)if(n.__cachedInputs__)for(var i=0,e=n.__cachedInputs__;i<e.length;i++)t=p(t,e[i]);else t=p(t,n);else if("object"==typeof n)for(var r in n)n.hasOwnProperty(r)&&(t=p(t,n[r]));return t}},775:function(t,n,i){i.d(n,{X:function(){return v}});var e=i(9939),r=i(3820),o="__globalSettings__",u="__callbacks__",a=0,s=function(){function t(){}return t.getValue=function(t,n){var i=l();return void 0===i[t]&&(i[t]="function"==typeof n?n():n),i[t]},t.setValue=function(t,n){var i=l(),e=i[u],r=i[t];if(n!==r){i[t]=n;var o={oldValue:r,value:n,key:t};for(var a in e)e.hasOwnProperty(a)&&e[a](o)}return n},t.addChangeListener=function(t){var n=t.__id__,i=c();n||(n=t.__id__=String(a++)),i[n]=t},t.removeChangeListener=function(t){delete c()[t.__id__]},t}();function l(){var t,n=(0,r.J)()||{};return n[o]||(n[o]=((t={})[u]={},t)),n[o]}function c(){return l()[u]}var f={settings:{},scopedSettings:{},inCustomizerContext:!1},h=s.getValue("customizations",{settings:{},scopedSettings:{},inCustomizerContext:!1}),d=[],v=function(){function t(){}return t.reset=function(){h.settings={},h.scopedSettings={}},t.applySettings=function(n){h.settings=(0,e.pi)((0,e.pi)({},h.settings),n),t._raiseChange()},t.applyScopedSettings=function(n,i){h.scopedSettings[n]=(0,e.pi)((0,e.pi)({},h.scopedSettings[n]),i),t._raiseChange()},t.getSettings=function(t,n,i){void 0===i&&(i=f);for(var e={},r=n&&i.scopedSettings[n]||{},o=n&&h.scopedSettings[n]||{},u=0,a=t;u<a.length;u++){var s=a[u];e[s]=r[s]||i.settings[s]||o[s]||h.settings[s]}return e},t.applyBatchedUpdates=function(n,i){t._suppressUpdates=!0;try{n()}catch(t){}t._suppressUpdates=!1,i||t._raiseChange()},t.observe=function(t){d.push(t)},t.unobserve=function(t){d=d.filter((function(n){return n!==t}))},t._raiseChange=function(){t._suppressUpdates||d.forEach((function(t){return t()}))},t}()},2049:function(t,n,i){i.d(n,{i:function(){return e}});var e=i(7363).createContext({customizations:{inCustomizerContext:!1,settings:{},scopedSettings:{}}})},8873:function(t,n,i){function e(){return"undefined"!=typeof window&&!(!window.document||!window.document.createElement)}i.d(n,{N:function(){return e}})},2874:function(t,n,i){i.d(n,{M:function(){return r}});var e=i(8873);function r(t){if((0,e.N)()&&"undefined"!=typeof document){var n=t;return n&&n.ownerDocument?n.ownerDocument:document}}},3820:function(t,n,i){i.d(n,{J:function(){return o}});var e=i(8873),r=void 0;try{r=window}catch(t){}function o(t){if((0,e.N)()&&void 0!==r){var n=t;return n&&n.ownerDocument&&n.ownerDocument.defaultView?n.ownerDocument.defaultView:r}}},156:function(t,n,i){i.d(n,{Ct:function(){return f},NF:function(){return c}});var e=i(5499),r=!1,o=0,u={empty:!0},a={},s="undefined"==typeof WeakMap?null:WeakMap;function l(){o++}function c(t,n,i){if(void 0===n&&(n=100),void 0===i&&(i=!1),!s)return t;if(!r){var c=e.Y.getInstance();c&&c.onReset&&e.Y.getInstance().onReset(l),r=!0}var f,d=0,v=o;return function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var s,l=f;(void 0===f||v!==o||n>0&&d>n)&&(f=h(),d=0,v=o),l=f;for(var c=0;c<e.length;c++){var p=(s=e[c])?"object"==typeof s||"function"==typeof s?s:(a[s]||(a[s]={val:s}),a[s]):u;l.map.has(p)||l.map.set(p,h()),l=l.map.get(p)}return l.hasOwnProperty("value")||(l.value=t.apply(void 0,e),d++),!i||null!==l.value&&void 0!==l.value||(l.value=t.apply(void 0,e)),l.value}}function f(t){if(!s)return t;var n=new s;return function(i){if(!i||"function"!=typeof i&&"object"!=typeof i)return t(i);if(n.has(i))return n.get(i);var e=t(i);return n.set(i,e),e}}function h(){return{map:s?new s:null}}},116:function(t,n,i){i.d(n,{zg:function(){return s}});var e,r=i(2874),o=i(5114),u=i(4473),a="isRTL";function s(t){if(void 0===t&&(t={}),void 0!==t.rtl)return t.rtl;if(void 0===e){var n=(0,o.r)(a);null!==n&&function(t,n){void 0===n&&(n=!1);var i=(0,r.M)();i&&i.documentElement.setAttribute("dir",t?"rtl":"ltr"),n&&(0,o.L)(a,t?"1":"0"),e=t,(0,u.ok)(e)}(e="1"===n);var i=(0,r.M)();void 0===e&&i&&(e="rtl"===(i.body&&i.body.getAttribute("dir")||i.documentElement.getAttribute("dir")),(0,u.ok)(e))}return!!e}},5114:function(t,n,i){i.d(n,{L:function(){return o},r:function(){return r}});var e=i(3820);function r(t){var n=null;try{var i=(0,e.J)();n=i?i.sessionStorage.getItem(t):null}catch(t){}return n}function o(t,n){var i;try{null===(i=(0,e.J)())||void 0===i||i.sessionStorage.setItem(t,n)}catch(t){}}},9766:function(t,n,i){i.d(n,{G$:function(){return e}});var e="ms-Fabric--isFocusVisible"},9085:function(t,n,i){i.d(n,{z:function(){return l}});var e=i(9939),r=i(7363),o=i(4270),u=i(775),a=i(2049);var s=["theme","styles"];function l(t,n,i,l,c){var f=(l=l||{scope:"",fields:void 0}).scope,h=l.fields,d=void 0===h?s:h,v=r.forwardRef((function(s,l){var c,h,v,p,g,m,y=r.useRef(),b=(c=d,h=f,v=r.useState(0)[1],p=function(){return v((function(t){return++t}))},g=r.useContext(a.i).customizations,m=g.inCustomizerContext,r.useEffect((function(){return m||u.X.observe(p),function(){m||u.X.unobserve(p)}}),[m]),u.X.getSettings(c,h,g)),x=b.styles,w=(b.dir,(0,e._T)(b,["styles","dir"])),C=i?i(s):void 0,M=y.current&&y.current.__cachedInputs__||[],k=s.styles;if(!y.current||x!==M[1]||k!==M[2]){var L=function(t){return function(t){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];for(var e=[],r=0,u=n;r<u.length;r++){var a=u[r];a&&e.push("function"==typeof a?a(t):a)}return 1===e.length?e[0]:e.length?o.m.apply(void 0,e):{}}(t,n,x,k)};L.__cachedInputs__=[n,x,k],L.__noStyleOverride__=!x&&!k,y.current=L}return r.createElement(t,(0,e.pi)({ref:l},w,C,s,{styles:y.current}))}));v.displayName="Styled".concat(t.displayName||t.name);var p=c?r.memo(v):v;return v.displayName&&(p.displayName=v.displayName),p}},7363:function(t){t.exports=React},6775:function(t,n,i){i.d(n,{Z:function(){return o}});var e=i(9941),r=i(5795);function o(){var t,n,i=(0,r.Z)().unknown(void 0),u=i.domain,a=i.range,s=0,l=1,c=!1,f=0,h=0,d=.5;function v(){var i=u().length,e=l<s,r=e?l:s,o=e?s:l;t=(o-r)/Math.max(1,i-f+2*h),c&&(t=Math.floor(t)),r+=(o-r-t*(i-f))*d,n=t*(1-f),c&&(r=Math.round(r),n=Math.round(n));var v=function(t,n,i){t=+t,n=+n,i=(r=arguments.length)<2?(n=t,t=0,1):r<3?1:+i;for(var e=-1,r=0|Math.max(0,Math.ceil((n-t)/i)),o=new Array(r);++e<r;)o[e]=t+e*i;return o}(i).map((function(n){return r+t*n}));return a(e?v.reverse():v)}return delete i.unknown,i.domain=function(t){return arguments.length?(u(t),v()):u()},i.range=function(t){return arguments.length?([s,l]=t,s=+s,l=+l,v()):[s,l]},i.rangeRound=function(t){return[s,l]=t,s=+s,l=+l,c=!0,v()},i.bandwidth=function(){return n},i.step=function(){return t},i.round=function(t){return arguments.length?(c=!!t,v()):c},i.padding=function(t){return arguments.length?(f=Math.min(1,h=+t),v()):f},i.paddingInner=function(t){return arguments.length?(f=Math.min(1,t),v()):f},i.paddingOuter=function(t){return arguments.length?(h=+t,v()):h},i.align=function(t){return arguments.length?(d=Math.max(0,Math.min(1,t)),v()):d},i.copy=function(){return o(u(),[s,l]).round(c).paddingInner(f).paddingOuter(h).align(d)},e.o.apply(v(),arguments)}},7451:function(t,n,i){i.d(n,{JG:function(){return ot},ZP:function(){return ut}});var e=i(9785),r=i(7329);const o=(0,r.Z)(e.Z),u=o.right;o.left,(0,r.Z)((function(t){return null===t?NaN:+t})).center;var a=u;function s(t,n,i){t.prototype=n.prototype=i,i.constructor=t}function l(t,n){var i=Object.create(t.prototype);for(var e in n)i[e]=n[e];return i}function c(){}var f=.7,h=1/f,d="\\s*([+-]?\\d+)\\s*",v="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",p="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",g=/^#([0-9a-f]{3,8})$/,m=new RegExp("^rgb\\("+[d,d,d]+"\\)$"),y=new RegExp("^rgb\\("+[p,p,p]+"\\)$"),b=new RegExp("^rgba\\("+[d,d,d,v]+"\\)$"),x=new RegExp("^rgba\\("+[p,p,p,v]+"\\)$"),w=new RegExp("^hsl\\("+[v,p,p]+"\\)$"),C=new RegExp("^hsla\\("+[v,p,p,v]+"\\)$"),M={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 k(){return this.rgb().formatHex()}function L(){return this.rgb().formatRgb()}function V(t){var n,i;return t=(t+"").trim().toLowerCase(),(n=g.exec(t))?(i=n[1].length,n=parseInt(n[1],16),6===i?S(n):3===i?new D(n>>8&15|n>>4&240,n>>4&15|240&n,(15&n)<<4|15&n,1):8===i?new D(n>>24&255,n>>16&255,n>>8&255,(255&n)/255):4===i?new D(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|240&n,((15&n)<<4|15&n)/255):null):(n=m.exec(t))?new D(n[1],n[2],n[3],1):(n=y.exec(t))?new D(255*n[1]/100,255*n[2]/100,255*n[3]/100,1):(n=b.exec(t))?N(n[1],n[2],n[3],n[4]):(n=x.exec(t))?N(255*n[1]/100,255*n[2]/100,255*n[3]/100,n[4]):(n=w.exec(t))?E(n[1],n[2]/100,n[3]/100,1):(n=C.exec(t))?E(n[1],n[2]/100,n[3]/100,n[4]):M.hasOwnProperty(t)?S(M[t]):"transparent"===t?new D(NaN,NaN,NaN,0):null}function S(t){return new D(t>>16&255,t>>8&255,255&t,1)}function N(t,n,i,e){return e<=0&&(t=n=i=NaN),new D(t,n,i,e)}function A(t,n,i,e){return 1===arguments.length?((r=t)instanceof c||(r=V(r)),r?new D((r=r.rgb()).r,r.g,r.b,r.opacity):new D):new D(t,n,i,null==e?1:e);var r}function D(t,n,i,e){this.r=+t,this.g=+n,this.b=+i,this.opacity=+e}function T(){return"#"+P(this.r)+P(this.g)+P(this.b)}function O(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"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===t?")":", "+t+")")}function P(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function E(t,n,i,e){return e<=0?t=n=i=NaN:i<=0||i>=1?t=n=NaN:n<=0&&(t=NaN),new B(t,n,i,e)}function F(t){if(t instanceof B)return new B(t.h,t.s,t.l,t.opacity);if(t instanceof c||(t=V(t)),!t)return new B;if(t instanceof B)return t;var n=(t=t.rgb()).r/255,i=t.g/255,e=t.b/255,r=Math.min(n,i,e),o=Math.max(n,i,e),u=NaN,a=o-r,s=(o+r)/2;return a?(u=n===o?(i-e)/a+6*(i<e):i===o?(e-n)/a+2:(n-i)/a+4,a/=s<.5?o+r:2-o-r,u*=60):a=s>0&&s<1?0:u,new B(u,a,s,t.opacity)}function B(t,n,i,e){this.h=+t,this.s=+n,this.l=+i,this.opacity=+e}function H(t,n,i){return 255*(t<60?n+(i-n)*t/60:t<180?i:t<240?n+(i-n)*(240-t)/60:n)}function _(t,n,i,e,r){var o=t*t,u=o*t;return((1-3*t+3*o-u)*n+(4-6*o+3*u)*i+(1+3*t+3*o-3*u)*e+u*r)/6}function I(t){return function(){return t}}function W(t,n){var i=n-t;return i?function(t,n){return function(i){return t+i*n}}(t,i):I(isNaN(t)?n:t)}s(c,V,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:k,formatHex:k,formatHsl:function(){return F(this).formatHsl()},formatRgb:L,toString:L}),s(D,A,l(c,{brighter:function(t){return t=null==t?h:Math.pow(h,t),new D(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?f:Math.pow(f,t),new D(this.r*t,this.g*t,this.b*t,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:T,formatHex:T,formatRgb:O,toString:O})),s(B,(function(t,n,i,e){return 1===arguments.length?F(t):new B(t,n,i,null==e?1:e)}),l(c,{brighter:function(t){return t=null==t?h:Math.pow(h,t),new B(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?f:Math.pow(f,t),new B(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),n=isNaN(t)||isNaN(this.s)?0:this.s,i=this.l,e=i+(i<.5?i:1-i)*n,r=2*i-e;return new D(H(t>=240?t-240:t+120,r,e),H(t,r,e),H(t<120?t+240:t-120,r,e),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 t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var R=function t(n){var i=function(t){return 1==(t=+t)?W:function(n,i){return i-n?function(t,n,i){return t=Math.pow(t,i),n=Math.pow(n,i)-t,i=1/i,function(e){return Math.pow(t+e*n,i)}}(n,i,t):I(isNaN(n)?i:n)}}(n);function e(t,n){var e=i((t=A(t)).r,(n=A(n)).r),r=i(t.g,n.g),o=i(t.b,n.b),u=W(t.opacity,n.opacity);return function(n){return t.r=e(n),t.g=r(n),t.b=o(n),t.opacity=u(n),t+""}}return e.gamma=t,e}(1);function z(t){return function(n){var i,e,r=n.length,o=new Array(r),u=new Array(r),a=new Array(r);for(i=0;i<r;++i)e=A(n[i]),o[i]=e.r||0,u[i]=e.g||0,a[i]=e.b||0;return o=t(o),u=t(u),a=t(a),e.opacity=1,function(t){return e.r=o(t),e.g=u(t),e.b=a(t),e+""}}}function j(t,n){var i,e=n?n.length:0,r=t?Math.min(e,t.length):0,o=new Array(r),u=new Array(e);for(i=0;i<r;++i)o[i]=K(t[i],n[i]);for(;i<e;++i)u[i]=n[i];return function(t){for(i=0;i<r;++i)u[i]=o[i](t);return u}}function X(t,n){var i=new Date;return t=+t,n=+n,function(e){return i.setTime(t*(1-e)+n*e),i}}function Y(t,n){return t=+t,n=+n,function(i){return t*(1-i)+n*i}}function q(t,n){var i,e={},r={};for(i in null!==t&&"object"==typeof t||(t={}),null!==n&&"object"==typeof n||(n={}),n)i in t?e[i]=K(t[i],n[i]):r[i]=n[i];return function(t){for(i in e)r[i]=e[i](t);return r}}z((function(t){var n=t.length-1;return function(i){var e=i<=0?i=0:i>=1?(i=1,n-1):Math.floor(i*n),r=t[e],o=t[e+1],u=e>0?t[e-1]:2*r-o,a=e<n-1?t[e+2]:2*o-r;return _((i-e/n)*n,u,r,o,a)}})),z((function(t){var n=t.length;return function(i){var e=Math.floor(((i%=1)<0?++i:i)*n),r=t[(e+n-1)%n],o=t[e%n],u=t[(e+1)%n],a=t[(e+2)%n];return _((i-e/n)*n,r,o,u,a)}}));var $=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,U=new RegExp($.source,"g");function Z(t,n){var i,e,r,o=$.lastIndex=U.lastIndex=0,u=-1,a=[],s=[];for(t+="",n+="";(i=$.exec(t))&&(e=U.exec(n));)(r=e.index)>o&&(r=n.slice(o,r),a[u]?a[u]+=r:a[++u]=r),(i=i[0])===(e=e[0])?a[u]?a[u]+=e:a[++u]=e:(a[++u]=null,s.push({i:u,x:Y(i,e)})),o=U.lastIndex;return o<n.length&&(r=n.slice(o),a[u]?a[u]+=r:a[++u]=r),a.length<2?s[0]?function(t){return function(n){return t(n)+""}}(s[0].x):function(t){return function(){return t}}(n):(n=s.length,function(t){for(var i,e=0;e<n;++e)a[(i=s[e]).i]=i.x(t);return a.join("")})}function G(t,n){n||(n=[]);var i,e=t?Math.min(n.length,t.length):0,r=n.slice();return function(o){for(i=0;i<e;++i)r[i]=t[i]*(1-o)+n[i]*o;return r}}function K(t,n){var i,e,r=typeof n;return null==n||"boolean"===r?I(n):("number"===r?Y:"string"===r?(i=V(n))?(n=i,R):Z:n instanceof V?R:n instanceof Date?X:(e=n,!ArrayBuffer.isView(e)||e instanceof DataView?Array.isArray(n)?j:"function"!=typeof n.valueOf&&"function"!=typeof n.toString||isNaN(n)?q:Y:G))(t,n)}function J(t,n){return t=+t,n=+n,function(i){return Math.round(t*(1-i)+n*i)}}function Q(t){return+t}var tt=[0,1];function nt(t){return t}function it(t,n){return(n-=t=+t)?function(i){return(i-t)/n}:(i=isNaN(n)?NaN:.5,function(){return i});var i}function et(t,n,i){var e=t[0],r=t[1],o=n[0],u=n[1];return r<e?(e=it(r,e),o=i(u,o)):(e=it(e,r),o=i(o,u)),function(t){return o(e(t))}}function rt(t,n,i){var e=Math.min(t.length,n.length)-1,r=new Array(e),o=new Array(e),u=-1;for(t[e]<t[0]&&(t=t.slice().reverse(),n=n.slice().reverse());++u<e;)r[u]=it(t[u],t[u+1]),o[u]=i(n[u],n[u+1]);return function(n){var i=a(t,n,1,e)-1;return o[i](r[i](n))}}function ot(t,n){return n.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function ut(){return function(){var t,n,i,e,r,o,u=tt,a=tt,s=K,l=nt;function c(){var t,n,i,s=Math.min(u.length,a.length);return l!==nt&&(t=u[0],n=u[s-1],t>n&&(i=t,t=n,n=i),l=function(i){return Math.max(t,Math.min(n,i))}),e=s>2?rt:et,r=o=null,f}function f(n){return null==n||isNaN(n=+n)?i:(r||(r=e(u.map(t),a,s)))(t(l(n)))}return f.invert=function(i){return l(n((o||(o=e(a,u.map(t),Y)))(i)))},f.domain=function(t){return arguments.length?(u=Array.from(t,Q),c()):u.slice()},f.range=function(t){return arguments.length?(a=Array.from(t),c()):a.slice()},f.rangeRound=function(t){return a=Array.from(t),s=J,c()},f.clamp=function(t){return arguments.length?(l=!!t||nt,c()):l!==nt},f.interpolate=function(t){return arguments.length?(s=t,c()):s},f.unknown=function(t){return arguments.length?(i=t,f):i},function(i,e){return t=i,n=e,c()}}()(nt,nt)}},9941:function(t,n,i){function e(t,n){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(n).domain(t)}return this}i.d(n,{o:function(){return e}})},8815:function(t,n,i){i.d(n,{Z:function(){return d}});var e=Math.sqrt(50),r=Math.sqrt(10),o=Math.sqrt(2);function u(t,n,i){var u=(n-t)/Math.max(0,i),a=Math.floor(Math.log(u)/Math.LN10),s=u/Math.pow(10,a);return a>=0?(s>=e?10:s>=r?5:s>=o?2:1)*Math.pow(10,a):-Math.pow(10,-a)/(s>=e?10:s>=r?5:s>=o?2:1)}var a=i(7451),s=i(9941),l=i(4116),c=i(4783),f=i(1783);function h(t){var n=t.domain;return t.ticks=function(t){var i=n();return function(t,n,i){var e,r,o,a,s=-1;if(i=+i,(t=+t)==(n=+n)&&i>0)return[t];if((e=n<t)&&(r=t,t=n,n=r),0===(a=u(t,n,i))||!isFinite(a))return[];if(a>0){let i=Math.round(t/a),e=Math.round(n/a);for(i*a<t&&++i,e*a>n&&--e,o=new Array(r=e-i+1);++s<r;)o[s]=(i+s)*a}else{a=-a;let i=Math.round(t*a),e=Math.round(n*a);for(i/a<t&&++i,e/a>n&&--e,o=new Array(r=e-i+1);++s<r;)o[s]=(i+s)/a}return e&&o.reverse(),o}(i[0],i[i.length-1],null==t?10:t)},t.tickFormat=function(t,i){var u=n();return function(t,n,i,u){var a,s=function(t,n,i){var u=Math.abs(n-t)/Math.max(0,i),a=Math.pow(10,Math.floor(Math.log(u)/Math.LN10)),s=u/a;return s>=e?a*=10:s>=r?a*=5:s>=o&&(a*=2),n<t?-a:a}(t,n,i);switch((u=(0,l.Z)(null==u?",f":u)).type){case"s":var h=Math.max(Math.abs(t),Math.abs(n));return null!=u.precision||isNaN(a=function(t,n){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor((0,c.Z)(n)/3)))-(0,c.Z)(Math.abs(t)))}(s,h))||(u.precision=a),(0,f.jH)(u,h);case"":case"e":case"g":case"p":case"r":null!=u.precision||isNaN(a=function(t,n){return t=Math.abs(t),n=Math.abs(n)-t,Math.max(0,(0,c.Z)(n)-(0,c.Z)(t))+1}(s,Math.max(Math.abs(t),Math.abs(n))))||(u.precision=a-("e"===u.type));break;case"f":case"%":null!=u.precision||isNaN(a=function(t){return Math.max(0,-(0,c.Z)(Math.abs(t)))}(s))||(u.precision=a-2*("%"===u.type))}return(0,f.WU)(u)}(u[0],u[u.length-1],null==t?10:t,i)},t.nice=function(i){null==i&&(i=10);var e,r,o=n(),a=0,s=o.length-1,l=o[a],c=o[s],f=10;for(c<l&&(r=l,l=c,c=r,r=a,a=s,s=r);f-- >0;){if((r=u(l,c,i))===e)return o[a]=l,o[s]=c,n(o);if(r>0)l=Math.floor(l/r)*r,c=Math.ceil(c/r)*r;else{if(!(r<0))break;l=Math.ceil(l*r)/r,c=Math.floor(c*r)/r}e=r}return t},t}function d(){var t=(0,a.ZP)();return t.copy=function(){return(0,a.JG)(t,d())},s.o.apply(t,arguments),h(t)}},5795:function(t,n,i){i.d(n,{Z:function(){return f}});class e extends Map{constructor(t,n=s){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),null!=t)for(const[n,i]of t)this.set(n,i)}get(t){return super.get(o(this,t))}has(t){return super.has(o(this,t))}set(t,n){return super.set(u(this,t),n)}delete(t){return super.delete(a(this,t))}}class r extends Set{constructor(t,n=s){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),null!=t)for(const n of t)this.add(n)}has(t){return super.has(o(this,t))}add(t){return super.add(u(this,t))}delete(t){return super.delete(a(this,t))}}function o({_intern:t,_key:n},i){const e=n(i);return t.has(e)?t.get(e):i}function u({_intern:t,_key:n},i){const e=n(i);return t.has(e)?t.get(e):(t.set(e,i),i)}function a({_intern:t,_key:n},i){const e=n(i);return t.has(e)&&(i=t.get(i),t.delete(e)),i}function s(t){return null!==t&&"object"==typeof t?t.valueOf():t}var l=i(9941);const c=Symbol("implicit");function f(){var t=new e,n=[],i=[],r=c;function o(e){let o=t.get(e);if(void 0===o){if(r!==c)return r;t.set(e,o=n.push(e)-1)}return i[o%i.length]}return o.domain=function(i){if(!arguments.length)return n.slice();n=[],t=new e;for(const e of i)t.has(e)||t.set(e,n.push(e)-1);return o},o.range=function(t){return arguments.length?(i=Array.from(t),o):i.slice()},o.unknown=function(t){return arguments.length?(r=t,o):r},o.copy=function(){return f(n,i).unknown(r)},l.o.apply(o,arguments),o}},8639:function(t,n,i){i.d(n,{Z:function(){return _}});var e=Math.sqrt(50),r=Math.sqrt(10),o=Math.sqrt(2);function u(t,n,i){var u=Math.abs(n-t)/Math.max(0,i),a=Math.pow(10,Math.floor(Math.log(u)/Math.LN10)),s=u/a;return s>=e?a*=10:s>=r?a*=5:s>=o&&(a*=2),n<t?-a:a}var a=i(4827),s=i(4315),l=(0,s.Z)((function(){}),(function(t,n){t.setTime(+t+n)}),(function(t,n){return n-t}));l.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?(0,s.Z)((function(n){n.setTime(Math.floor(n/t)*t)}),(function(n,i){n.setTime(+n+i*t)}),(function(n,i){return(i-n)/t})):l:null};var c=l,f=(l.range,i(87)),h=i(4189),d=i(5401),v=i(3645),p=i(2167),g=i(9604),m=i(9507),y=(0,s.Z)((function(t){t.setUTCSeconds(0,0)}),(function(t,n){t.setTime(+t+n*a.yB)}),(function(t,n){return(n-t)/a.yB}),(function(t){return t.getUTCMinutes()})),b=y,x=(y.range,(0,s.Z)((function(t){t.setUTCMinutes(0,0,0)}),(function(t,n){t.setTime(+t+n*a.Y2)}),(function(t,n){return(n-t)/a.Y2}),(function(t){return t.getUTCHours()}))),w=x,C=(x.range,i(2605)),M=i(3787),k=(0,s.Z)((function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCMonth(t.getUTCMonth()+n)}),(function(t,n){return n.getUTCMonth()-t.getUTCMonth()+12*(n.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()})),L=k,V=(k.range,i(2527));function S(t,n,i,e,r,o){const s=[[f.Z,1,a.Ym],[f.Z,5,5*a.Ym],[f.Z,15,15*a.Ym],[f.Z,30,30*a.Ym],[o,1,a.yB],[o,5,5*a.yB],[o,15,15*a.yB],[o,30,30*a.yB],[r,1,a.Y2],[r,3,3*a.Y2],[r,6,6*a.Y2],[r,12,12*a.Y2],[e,1,a.UD],[e,2,2*a.UD],[i,1,a.iM],[n,1,a.jz],[n,3,3*a.jz],[t,1,a.qz]];function l(n,i,e){const r=Math.abs(i-n)/e,o=function(t){let n=t,i=t;function e(t,n,e,r){for(null==e&&(e=0),null==r&&(r=t.length);e<r;){const o=e+r>>>1;i(t[o],n)<0?e=o+1:r=o}return e}return 1===t.length&&(n=(n,i)=>t(n)-i,i=function(t){return(n,i)=>{return(e=t(n))<(r=i)?-1:e>r?1:e>=r?0:NaN;var e,r}}(t)),{left:e,center:function(t,i,r,o){null==r&&(r=0),null==o&&(o=t.length);const u=e(t,i,r,o-1);return u>r&&n(t[u-1],i)>-n(t[u],i)?u-1:u},right:function(t,n,e,r){for(null==e&&(e=0),null==r&&(r=t.length);e<r;){const o=e+r>>>1;i(t[o],n)>0?r=o:e=o+1}return e}}}((([,,t])=>t)).right(s,r);if(o===s.length)return t.every(u(n/a.qz,i/a.qz,e));if(0===o)return c.every(Math.max(u(n,i,e),1));const[l,f]=s[r/s[o-1][2]<s[o][2]/r?o-1:o];return l.every(f)}return[function(t,n,i){const e=n<t;e&&([t,n]=[n,t]);const r=i&&"function"==typeof i.range?i:l(t,n,i),o=r?r.range(t,+n+1):[];return e?o.reverse():o},l]}const[N,A]=S(V.Z,L,M.Ox,C.Z,w,b),[D,T]=S(m.Z,g.Z,p.OM,v.Z,d.Z,h.Z);var O=i(731),P=i(7451),E=i(9941);function F(t){return new Date(t)}function B(t){return t instanceof Date?+t:+new Date(+t)}function H(t,n,i,e,r,o,u,a,s,l){var c=(0,P.ZP)(),f=c.invert,h=c.domain,d=l(".%L"),v=l(":%S"),p=l("%I:%M"),g=l("%I %p"),m=l("%a %d"),y=l("%b %d"),b=l("%B"),x=l("%Y");function w(t){return(s(t)<t?d:a(t)<t?v:u(t)<t?p:o(t)<t?g:e(t)<t?r(t)<t?m:y:i(t)<t?b:x)(t)}return c.invert=function(t){return new Date(f(t))},c.domain=function(t){return arguments.length?h(Array.from(t,B)):h().map(F)},c.ticks=function(n){var i=h();return t(i[0],i[i.length-1],null==n?10:n)},c.tickFormat=function(t,n){return null==n?w:l(n)},c.nice=function(t){var i=h();return t&&"function"==typeof t.range||(t=n(i[0],i[i.length-1],null==t?10:t)),t?h(function(t,n){var i,e=0,r=(t=t.slice()).length-1,o=t[e],u=t[r];return u<o&&(i=e,e=r,r=i,i=o,o=u,u=i),t[e]=n.floor(o),t[r]=n.ceil(u),t}(i,t)):c},c.copy=function(){return(0,P.JG)(c,H(t,n,i,e,r,o,u,a,s,l))},c}function _(){return E.o.apply(H(D,T,m.Z,g.Z,p.OM,v.Z,d.Z,h.Z,f.Z,O.i$).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}}},i={};function e(t){var r=i[t];if(void 0!==r)return r.exports;var o=i[t]={exports:{}};return n[t](o,o.exports,e),o.exports}e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,{a:n}),n},e.d=function(t,n){for(var i in n)e.o(n,i)&&!e.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:n[i]})},e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};!function(){e.r(r),e.d(r,{AreaChart:function(){return fo},CartesianChart:function(){return Nr},ChartHoverCard:function(){return jn.ChartHoverCard},DataVizPalette:function(){return ir},DonutChart:function(){return hr},GaugeChart:function(){return Ju},GaugeChartVariant:function(){return Wu},GaugeValueFormat:function(){return Iu},GroupedVerticalBarChart:function(){return Xo},HeatMapChart:function(){return Zo},HorizontalBarChart:function(){return Vi},HorizontalBarChartVariant:function(){return h},HorizontalBarChartWithAxis:function(){return qu},Legends:function(){return me},LineChart:function(){return $r},MultiStackedBarChart:function(){return Ao},MultiStackedBarChartVariant:function(){return yo},NodesComposition:function(){return Pu},PieChart:function(){return Co},SankeyChart:function(){return bu},Shape:function(){return ve},Sparkline:function(){return ju},StackedBarChart:function(){return Lo},Textbox:function(){return Rr},TreeChart:function(){return _u},TreeTraverse:function(){return Eu},VerticalBarChart:function(){return Ho},VerticalStackedBarChart:function(){return Wo},getChartHoverCardStyles:function(){return Yo.n},getColorFromToken:function(){return lr},getNextColor:function(){return sr}});var t=e(9085),n=e(9939),i=e(7363),o=e(8461),u=e(116),a=e(3820),s=e(5499),l="__currentId__",c="id__",f=(0,a.J)()||{};void 0===f[l]&&(f[l]=0);var h,d=!1;function v(t){if(!d){var n=s.Y.getInstance();n&&n.onReset&&n.onReset(p),d=!0}var i=f[l]++;return(void 0===t?c:t)+i}function p(t){void 0===t&&(t=0),f[l]=t}function g(t,n,i){void 0===i&&(i=0);for(var e=-1,r=i;t&&r<t.length;r++)if(n(t[r],r)){e=r;break}return e}function m(t,n){var i=g(t,n);if(!(i<0))return t[i]}!function(t){t.PartToWhole="part-to-whole",t.AbsoluteScale="absolute-scale"}(h||(h={}));var y={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 b(t,n){return void 0===n&&(n=!0),t&&(n&&function(t){var n,i;return t&&(i=t)&&i._virtual&&(n=t._virtual.parent),n}(t)||t.parentNode&&t.parentNode)}function x(t,n,i){return null!=i||(i=document),t&&t!==i.body?n(t)?t:x(b(t),n):null}function w(t,n,i){void 0===i&&(i=!0);var e=!1;if(t&&n)if(i)if(t===n)e=!0;else for(e=!1;n;){var r=b(n);if(r===t){e=!0;break}n=r}else t.contains&&(e=t.contains(n));return e}var C=e(2874),M="data-is-focusable",k="data-is-visible",L="data-focuszone-id",V="data-is-sub-focuszone";function S(t,n){var i=A(t,t,!0,!1,!1,!0,void 0,void 0,n);return!!i&&(B(i),!0)}function N(t,n,i,e,r,o,u,a){if(!n||!u&&n===t)return null;var s=D(n);if(r&&s&&(o||!P(n)&&!E(n))){var l=N(t,n.lastElementChild,!0,!0,!0,o,u,a);if(l){if(a&&O(l,!0)||!a)return l;var c=N(t,l.previousElementSibling,!0,!0,!0,o,u,a);if(c)return c;for(var f=l.parentElement;f&&f!==n;){var h=N(t,f.previousElementSibling,!0,!0,!0,o,u,a);if(h)return h;f=f.parentElement}}}return i&&s&&O(n,a)?n:N(t,n.previousElementSibling,!0,!0,!0,o,u,a)||(e?null:N(t,n.parentElement,!0,!1,!1,o,u,a))}function A(t,n,i,e,r,o,u,a,s){if(!n||n===t&&r&&!u)return null;var l=(s?T:D)(n);if(i&&l&&O(n,a))return n;if(!r&&l&&(o||!P(n)&&!E(n))){var c=A(t,n.firstElementChild,!0,!0,!1,o,u,a,s);if(c)return c}return n===t?null:A(t,n.nextElementSibling,!0,!0,!1,o,u,a,s)||(e?null:A(t,n.parentElement,!1,!1,!0,o,u,a,s))}function D(t){if(!t||!t.getAttribute)return!1;var n=t.getAttribute(k);return null!=n?"true"===n:0!==t.offsetHeight||null!==t.offsetParent||!0===t.isVisible}function T(t,n){var i=null!=n?n:(0,a.J)();return!!t&&D(t)&&!t.hidden&&"hidden"!==i.getComputedStyle(t).visibility}function O(t,n){if(!t||t.disabled)return!1;var i=0,e=null;t&&t.getAttribute&&(e=t.getAttribute("tabIndex"))&&(i=parseInt(e,10));var r=t.getAttribute?t.getAttribute(M):null,o=null!==e&&i>=0,u=!!t&&"false"!==r&&("A"===t.tagName||"BUTTON"===t.tagName||"INPUT"===t.tagName||"TEXTAREA"===t.tagName||"SELECT"===t.tagName||"true"===r||o);return n?-1!==i&&u:u}function P(t){return!!(t&&t.getAttribute&&t.getAttribute(L))}function E(t){return!(!t||!t.getAttribute||"true"!==t.getAttribute(V))}var F=void 0;function B(t){if(t){var n=(0,a.J)(t);n&&(void 0!==F&&n.cancelAnimationFrame(F),F=n.requestAnimationFrame((function(){t&&t.focus(),F=void 0})))}}function H(t,n,i,e){return t.addEventListener(n,i,e),function(){return t.removeEventListener(n,i,e)}}function _(t,i){for(var e=(0,n.pi)({},i),r=0,o=Object.keys(t);r<o.length;r++){var u=o[r];void 0===e[u]&&(e[u]=t[u])}return e}var I=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var i={},e=0,r=t;e<r.length;e++)for(var o=r[e],u=0,a=Array.isArray(o)?o:Object.keys(o);u<a.length;u++)i[a[u]]=1;return i},W=I(["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"]),R=I(["accessKey","children","className","contentEditable","dir","draggable","hidden","htmlFor","id","lang","ref","role","style","tabIndex","title","translate","spellCheck","name"]),z=I(R,W),j=(I(z,["form"]),I(z,["height","loop","muted","preload","src","width"])),X=(I(j,["poster"]),I(z,["start"]),I(z,["value"]),I(z,["download","href","hrefLang","media","rel","target","type"]),I(z,["autoFocus","disabled","form","formAction","formEncType","formMethod","formNoValidate","formTarget","type","value"])),Y=(I(X,["accept","alt","autoCapitalize","autoComplete","checked","dirname","form","height","inputMode","list","max","maxLength","min","minLength","multiple","pattern","placeholder","readOnly","required","src","step","size","type","value","width"]),I(X,["autoCapitalize","cols","dirname","form","maxLength","minLength","placeholder","readOnly","required","rows","wrap"]),I(X,["form","multiple","required"]),I(z,["selected","value"]),I(z,["cellPadding","cellSpacing"]),I(z,["rowSpan","scope"]),I(z,["colSpan","headers","rowSpan","scope"]),I(z,["span"]),I(z,["span"]),I(z,["acceptCharset","action","encType","encType","method","noValidate","target"]),I(z,["allow","allowFullScreen","allowPaymentRequest","allowTransparency","csp","height","importance","referrerPolicy","sandbox","src","srcDoc","width"]),I(z,["alt","crossOrigin","height","src","srcSet","useMap","width"]),z);function q(t,n,i){for(var e=Array.isArray(n),r={},o=0,u=Object.keys(t);o<u.length;o++){var a=u[o];!(!e&&n[a]||e&&n.indexOf(a)>=0||0===a.indexOf("data-")||0===a.indexOf("aria-"))||i&&-1!==(null==i?void 0:i.indexOf(a))||(r[a]=t[a])}return r}function $(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var i=[],e=0,r=t;e<r.length;e++){var o=r[e];if(o)if("string"==typeof o)i.push(o);else if(o.hasOwnProperty("toString")&&"function"==typeof o.toString)i.push(o.toString());else for(var u in o)o[u]&&i.push(u)}return i.join(" ")}function U(t){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];return Z.apply(this,[null,t].concat(n))}function Z(t,n){for(var i=[],e=2;e<arguments.length;e++)i[e-2]=arguments[e];n=n||{};for(var r=0,o=i;r<o.length;r++){var u=o[r];if(u)for(var a in u)!u.hasOwnProperty(a)||t&&!t(a)||(n[a]=u[a])}return n}var G,K,J,Q=e(13),tt=((0,Q.y)({overflow:"hidden !important"}),"data-is-scrollable");function nt(t){for(var n=t,i=(0,C.M)(t);n&&n!==i.body;){if("true"===n.getAttribute(tt))return n;n=n.parentElement}for(n=t;n&&n!==i.body;){if("false"!==n.getAttribute(tt)){var e=getComputedStyle(n),r=e?e.getPropertyValue("overflow-y"):"";if(r&&("scroll"===r||"auto"===r))return n}n=n.parentElement}return n&&n!==i.body||(n=(0,a.J)(t)),n}!function(t){t[t.top=1]="top",t[t.bottom=-1]="bottom",t[t.left=2]="left",t[t.right=-2]="right"}(K||(K={})),function(t){t[t.top=0]="top",t[t.bottom=1]="bottom",t[t.start=2]="start",t[t.end=3]="end"}(J||(J={}));var it,et=function(){function t(t,n,i,e){void 0===t&&(t=0),void 0===n&&(n=0),void 0===i&&(i=0),void 0===e&&(e=0),this.top=i,this.bottom=e,this.left=t,this.right=n}return Object.defineProperty(t.prototype,"width",{get:function(){return this.right-this.left},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.bottom-this.top},enumerable:!1,configurable:!0}),t.prototype.equals=function(t){return parseFloat(this.top.toFixed(4))===parseFloat(t.top.toFixed(4))&&parseFloat(this.bottom.toFixed(4))===parseFloat(t.bottom.toFixed(4))&&parseFloat(this.left.toFixed(4))===parseFloat(t.left.toFixed(4))&&parseFloat(this.right.toFixed(4))===parseFloat(t.right.toFixed(4))},t}();function rt(t,n,i){return{targetEdge:t,alignmentEdge:n,isAuto:i}}var ot=((it={})[y.topLeftEdge]=rt(K.top,K.left),it[y.topCenter]=rt(K.top),it[y.topRightEdge]=rt(K.top,K.right),it[y.topAutoEdge]=rt(K.top,void 0,!0),it[y.bottomLeftEdge]=rt(K.bottom,K.left),it[y.bottomCenter]=rt(K.bottom),it[y.bottomRightEdge]=rt(K.bottom,K.right),it[y.bottomAutoEdge]=rt(K.bottom,void 0,!0),it[y.leftTopEdge]=rt(K.left,K.top),it[y.leftCenter]=rt(K.left),it[y.leftBottomEdge]=rt(K.left,K.bottom),it[y.rightTopEdge]=rt(K.right,K.top),it[y.rightCenter]=rt(K.right),it[y.rightBottomEdge]=rt(K.right,K.bottom),it);function ut(t,n){return!(t.top<n.top||t.bottom>n.bottom||t.left<n.left||t.right>n.right)}function at(t,n){var i=[];return t.top<n.top&&i.push(K.top),t.bottom>n.bottom&&i.push(K.bottom),t.left<n.left&&i.push(K.left),t.right>n.right&&i.push(K.right),i}function st(t,n){return t[K[n]]}function lt(t,n,i){return t[K[n]]=i,t}function ct(t,n){var i=Ct(n);return(st(t,i.positiveEdge)+st(t,i.negativeEdge))/2}function ft(t,n){return t>0?n:-1*n}function ht(t,n){return ft(t,st(n,t))}function dt(t,n,i){return ft(i,st(t,i)-st(n,i))}function vt(t,n,i,e){void 0===e&&(e=!0);var r=st(t,n)-i,o=lt(t,n,i);return e&&(o=lt(t,-1*n,st(t,-1*n)-r)),o}function pt(t,n,i,e){return void 0===e&&(e=0),vt(t,i,st(n,i)+ft(i,e))}function gt(t,n,i){return ht(i,t)>ht(i,n)}function mt(t,n){for(var i=0,e=0,r=at(t,n);e<r.length;e++){var o=r[e];i+=Math.pow(dt(t,n,o),2)}return i}function yt(t,n,i,e){return void 0===e&&(e=200),(i===K.bottom||i===K.top)&&dt(t,n,i)>=e}function bt(t,n,i,e){for(var r=0,o=t;r<o.length;r++){var u=o[r],a=void 0;e&&e===-1*u?(a=vt(n.elementRectangle,u,st(i,u),!1),n.forcedInBounds=!0):gt(a=pt(n.elementRectangle,i,u),i,-1*u)||(a=vt(a,-1*u,st(i,-1*u),!1),n.forcedInBounds=!0),n.elementRectangle=a}return n}function xt(t,n,i){var e=Ct(n).positiveEdge;return vt(t,e,i-(ct(t,n)-st(t,e)))}function wt(t,n,i,e,r){void 0===e&&(e=0);var o=new et(t.left,t.right,t.top,t.bottom),u=i.alignmentEdge,a=i.targetEdge,s=r?a:-1*a;return o=r?pt(o,n,a,e):function(t,n,i,e){void 0===e&&(e=0);var r=ft(-1*i,e);return vt(t,-1*i,st(n,i)+r)}(o,n,a,e),o=u?pt(o,n,u):xt(o,s,ct(n,a))}function Ct(t){return t===K.top||t===K.bottom?{positiveEdge:K.left,negativeEdge:K.right}:{positiveEdge:K.top,negativeEdge:K.bottom}}function Mt(t,n,i){return i&&Math.abs(dt(t,i,n))>Math.abs(dt(t,i,-1*n))?-1*n:n}function kt(t,n,i,e,r,o,u,a){var s,l={},c=St(n),f=o?i:-1*i,h=r||Ct(i).positiveEdge;return u&&!function(t,n,i){return void 0!==i&&st(t,n)===st(i,n)}(t,(s=h,-1*s),e)||(h=Mt(t,h,e)),l[K[f]]=dt(t,c,f),l[K[h]]=dt(t,c,h),a&&(l[K[-1*f]]=dt(t,c,-1*f),l[K[-1*h]]=dt(t,c,-1*h)),l}function Lt(t,n,i){var e=ct(n,t),r=ct(i,t),o=Ct(t),u=o.positiveEdge,a=o.negativeEdge;return e<=r?u:a}function Vt(t,n,i,e,r,o,a,s,l){void 0===o&&(o=!1);var c=wt(t,n,e,r,l);return ut(c,i)?{elementRectangle:c,targetEdge:e.targetEdge,alignmentEdge:e.alignmentEdge}:function(t,n,i,e,r,o,a,s,l){void 0===r&&(r=!1),void 0===a&&(a=0);var c=e.alignmentEdge,f=e.alignTargetEdge,h={elementRectangle:t,targetEdge:e.targetEdge,alignmentEdge:c};s||l||(h=function(t,n,i,e,r,o,a){void 0===r&&(r=!1),void 0===a&&(a=0);var s=[K.left,K.right,K.bottom,K.top];(0,u.zg)()&&(s[0]*=-1,s[1]*=-1);for(var l,c=t,f=e.targetEdge,h=e.alignmentEdge,d=f,v=h,p=0;p<4;p++){if(gt(c,i,f))return{elementRectangle:c,targetEdge:f,alignmentEdge:h};if(r&&yt(n,i,f,o)){switch(f){case K.bottom:c.bottom=i.bottom;break;case K.top:c.top=i.top}return{elementRectangle:c,targetEdge:f,alignmentEdge:h,forcedInBounds:!0}}var g=mt(c,i);(!l||g<l)&&(l=g,d=f,v=h),s.splice(s.indexOf(f),1),s.length>0&&(s.indexOf(-1*f)>-1?f*=-1:(h=f,f=s.slice(-1)[0]),c=wt(t,n,{targetEdge:f,alignmentEdge:h},a))}return{elementRectangle:c=wt(t,n,{targetEdge:d,alignmentEdge:v},a),targetEdge:d,alignmentEdge:v}}(t,n,i,e,r,o,a));var d=at(h.elementRectangle,i),v=s?-h.targetEdge:void 0;if(d.length>0)if(f)if(h.alignmentEdge&&d.indexOf(-1*h.alignmentEdge)>-1){var p=function(t,n,i,e){var r=t.alignmentEdge,o=t.targetEdge,u=-1*r;return{elementRectangle:wt(t.elementRectangle,n,{targetEdge:o,alignmentEdge:u},i,e),targetEdge:o,alignmentEdge:u}}(h,n,a,l);if(ut(p.elementRectangle,i))return p;h=bt(at(p.elementRectangle,i),h,i,v)}else h=bt(d,h,i,v);else h=bt(d,h,i,v);return h}(c,n,i,e,o,a,r,s,l)}function St(t){var n=t.getBoundingClientRect();return new et(n.left,n.right,n.top,n.bottom)}function Nt(t,i,e,r,o,a){void 0===o&&(o=!1);var s=t.gapSpace?t.gapSpace:0,l=function(t,n){var i;if(n){if(n.preventDefault){var e=n;i=new et(e.clientX,e.clientX,e.clientY,e.clientY)}else if(n.getBoundingClientRect)i=St(n);else{var r=n,o=r.left||r.x,u=r.top||r.y,a=r.right||o,s=r.bottom||u;i=new et(o,a,u,s)}if(!ut(i,t))for(var l=0,c=at(i,t);l<c.length;l++){var f=c[l];i[K[f]]=t[K[f]]}}else i=new et(0,0,0,0);return i}(e,t.target),c=function(t,n,i,e,r){return t.isAuto&&(t.alignmentEdge=Lt(t.targetEdge,n,i)),t.alignTargetEdge=r,t}(function(t,i,e){if(void 0===t&&(t=y.bottomAutoEdge),e)return{alignmentEdge:e.alignmentEdge,isAuto:e.isAuto,targetEdge:e.targetEdge};var r=(0,n.pi)({},ot[t]);return(0,u.zg)()?(r.alignmentEdge&&r.alignmentEdge%2==0&&(r.alignmentEdge=-1*r.alignmentEdge),void 0!==i?ot[i]:r):r}(t.directionalHint,t.directionalHintForRTL,r),l,e,t.coverTarget,t.alignTargetEdge),f=Vt(St(i),l,e,c,s,o,a,t.directionalHintFixed,t.coverTarget);return(0,n.pi)((0,n.pi)({},f),{targetRectangle:l})}function At(t,n,i){return void 0===n&&(n=0),void 0===i&&(i=0),function(t){return Math.sqrt(t*t*2)}(t?n:0)/2+i}function Dt(t,i,e,r,o,u,s,l){void 0===o&&(o=!1);var c=null!=l?l:(0,a.J)(),f=t.isBeakVisible&&t.beakWidth||0,h=At(t.isBeakVisible,t.beakWidth,t.gapSpace),d=t;d.gapSpace=h;var v,p,g,m,y,b,x,w,M,k=t.bounds?(M=t.bounds,new et(M.left,M.right,M.top,M.bottom)):new et(0,c.innerWidth-function(t){if(void 0===G){var n=(0,C.M)(),i=n.createElement("div");i.style.setProperty("width","100px"),i.style.setProperty("height","100px"),i.style.setProperty("overflow","scroll"),i.style.setProperty("position","absolute"),i.style.setProperty("top","-9999px"),n.body.appendChild(i),G=i.offsetWidth-i.clientWidth,n.body.removeChild(i)}return G}(),0,c.innerHeight),L=Nt(d,e,k,r,o,u),V=(v=L,p=function(t,n){var i=n.targetRectangle,e=Ct(n.targetEdge),r=e.positiveEdge,o=e.negativeEdge,u=ct(i,n.targetEdge),a=new et(t/2,n.elementRectangle.width-t/2,t/2,n.elementRectangle.height-t/2),s=new et(0,t,0,t);return gt(s=xt(s=vt(s,-1*n.targetEdge,-t/2),-1*n.targetEdge,u-ht(r,n.elementRectangle)),a,r)?gt(s,a,o)||(s=pt(s,a,o)):s=pt(s,a,r),s}(f,L),g=k,m=-1*v.targetEdge,y=new et(0,v.elementRectangle.width,0,v.elementRectangle.height),b={},x=Mt(v.elementRectangle,v.alignmentEdge?v.alignmentEdge:Ct(m).positiveEdge,g),w=dt(v.elementRectangle,v.targetRectangle,m)>Math.abs(st(p,m)),b[K[m]]=st(p,m),b[K[x]]=dt(p,y,x),{elementPosition:(0,n.pi)({},b),closestEdge:Lt(v.targetEdge,p,y),targetEdge:m,hideBeak:!w});return(0,n.pi)((0,n.pi)({},function(t,n,i,e,r){return{elementPosition:kt(t.elementRectangle,n,t.targetEdge,i,t.alignmentEdge,e,r,t.forcedInBounds),targetEdge:t.targetEdge,alignmentEdge:t.alignmentEdge}}(L,i,k,t.coverTarget,s)),{beakPosition:V})}var Tt=["TEMPLATE","STYLE","SCRIPT"];function Ot(t){var n=(0,C.M)(t);if(!n)return function(){};for(var i=[];t!==n.body&&t.parentElement;){for(var e=0,r=t.parentElement.children;e<r.length;e++){var o=r[e],u=o.getAttribute("aria-hidden");o!==t&&"true"!==(null==u?void 0:u.toLowerCase())&&-1===Tt.indexOf(o.tagName)&&i.push([o,u])}t=t.parentElement}return i.forEach((function(t){t[0].setAttribute("aria-hidden","true")})),function(){!function(t){t.forEach((function(t){var n=t[0],i=t[1];i?n.setAttribute("aria-hidden",i):n.removeAttribute("aria-hidden")}))}(i),i=[]}}var Pt=27,Et=function(){function t(t,n){this._timeoutIds=null,this._immediateIds=null,this._intervalIds=null,this._animationFrameIds=null,this._isDisposed=!1,this._parent=t||null,this._onErrorHandler=n,this._noop=function(){}}return t.prototype.dispose=function(){var t;if(this._isDisposed=!0,this._parent=null,this._timeoutIds){for(t in this._timeoutIds)this._timeoutIds.hasOwnProperty(t)&&this.clearTimeout(parseInt(t,10));this._timeoutIds=null}if(this._immediateIds){for(t in this._immediateIds)this._immediateIds.hasOwnProperty(t)&&this.clearImmediate(parseInt(t,10));this._immediateIds=null}if(this._intervalIds){for(t in this._intervalIds)this._intervalIds.hasOwnProperty(t)&&this.clearInterval(parseInt(t,10));this._intervalIds=null}if(this._animationFrameIds){for(t in this._animationFrameIds)this._animationFrameIds.hasOwnProperty(t)&&this.cancelAnimationFrame(parseInt(t,10));this._animationFrameIds=null}},t.prototype.setTimeout=function(t,n){var i=this,e=0;return this._isDisposed||(this._timeoutIds||(this._timeoutIds={}),e=setTimeout((function(){try{i._timeoutIds&&delete i._timeoutIds[e],t.apply(i._parent)}catch(t){i._logError(t)}}),n),this._timeoutIds[e]=!0),e},t.prototype.clearTimeout=function(t){this._timeoutIds&&this._timeoutIds[t]&&(clearTimeout(t),delete this._timeoutIds[t])},t.prototype.setImmediate=function(t,n){var i=this,e=0,r=(0,a.J)(n);return this._isDisposed||(this._immediateIds||(this._immediateIds={}),e=r.setTimeout((function(){try{i._immediateIds&&delete i._immediateIds[e],t.apply(i._parent)}catch(t){i._logError(t)}}),0),this._immediateIds[e]=!0),e},t.prototype.clearImmediate=function(t,n){var i=(0,a.J)(n);this._immediateIds&&this._immediateIds[t]&&(i.clearTimeout(t),delete this._immediateIds[t])},t.prototype.setInterval=function(t,n){var i=this,e=0;return this._isDisposed||(this._intervalIds||(this._intervalIds={}),e=setInterval((function(){try{t.apply(i._parent)}catch(t){i._logError(t)}}),n),this._intervalIds[e]=!0),e},t.prototype.clearInterval=function(t){this._intervalIds&&this._intervalIds[t]&&(clearInterval(t),delete this._intervalIds[t])},t.prototype.throttle=function(t,n,i){var e=this;if(this._isDisposed)return this._noop;var r,o,u=n||0,a=!0,s=!0,l=0,c=null;i&&"boolean"==typeof i.leading&&(a=i.leading),i&&"boolean"==typeof i.trailing&&(s=i.trailing);var f=function(n){var i=Date.now(),h=i-l,d=a?u-h:u;return h>=u&&(!n||a)?(l=i,c&&(e.clearTimeout(c),c=null),r=t.apply(e._parent,o)):null===c&&s&&(c=e.setTimeout(f,d)),r};return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return o=t,f(!0)}},t.prototype.debounce=function(t,n,i){var e=this;if(this._isDisposed){var r=function(){};return r.cancel=function(){},r.flush=function(){return null},r.pending=function(){return!1},r}var o,u,a=n||0,s=!1,l=!0,c=null,f=0,h=Date.now(),d=null;i&&"boolean"==typeof i.leading&&(s=i.leading),i&&"boolean"==typeof i.trailing&&(l=i.trailing),i&&"number"==typeof i.maxWait&&!isNaN(i.maxWait)&&(c=i.maxWait);var v=function(t){d&&(e.clearTimeout(d),d=null),h=t},p=function(n){v(n),o=t.apply(e._parent,u)},g=function(t){var n=Date.now(),i=!1;t&&(s&&n-f>=a&&(i=!0),f=n);var r=n-f,u=a-r,v=n-h,m=!1;return null!==c&&(v>=c&&d?m=!0:u=Math.min(u,c-v)),r>=a||m||i?p(n):null!==d&&t||!l||(d=e.setTimeout(g,u)),o},m=function(){return!!d},y=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return u=t,g(!0)};return y.cancel=function(){m()&&v(Date.now())},y.flush=function(){return m()&&p(Date.now()),o},y.pending=m,y},t.prototype.requestAnimationFrame=function(t,n){var i=this,e=0,r=(0,a.J)(n);if(!this._isDisposed){this._animationFrameIds||(this._animationFrameIds={});var o=function(){try{i._animationFrameIds&&delete i._animationFrameIds[e],t.apply(i._parent)}catch(t){i._logError(t)}};e=r.requestAnimationFrame?r.requestAnimationFrame(o):r.setTimeout(o,0),this._animationFrameIds[e]=!0}return e},t.prototype.cancelAnimationFrame=function(t,n){var i=(0,a.J)(n);this._animationFrameIds&&this._animationFrameIds[t]&&(i.cancelAnimationFrame?i.cancelAnimationFrame(t):i.clearTimeout(t),delete this._animationFrameIds[t])},t.prototype._logError=function(t){this._onErrorHandler&&this._onErrorHandler(t)},t}();function Ft(){var t=i.useRef();return t.current||(t.current=new Et),i.useEffect((function(){return function(){var n;null===(n=t.current)||void 0===n||n.dispose(),t.current=void 0}}),[]),t.current}function Bt(t,n,e,r){var o=i.useRef(e);o.current=e,i.useEffect((function(){var i=t&&"current"in t?t.current:t;if(i&&i.addEventListener)return H(i,n,(function(t){return o.current(t)}),r)}),[t,n,r])}function Ht(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=i.useCallback((function(n){r.current=n;for(var i=0,e=t;i<e.length;i++){var o=e[i];"function"==typeof o?o(n):o&&(o.current=n)}}),(0,n.ev)([],t,!0));return r}var _t=i.createContext({window:"object"==typeof window?window:void 0}),It=function(){return i.useContext(_t).window},Wt=function(){var t;return null===(t=i.useContext(_t).window)||void 0===t?void 0:t.document};function Rt(t){var n=t.originalElement,i=t.containsFocus;n&&i&&n!==(0,a.J)()&&setTimeout((function(){var t;null===(t=n.focus)||void 0===t||t.call(n)}),0)}var zt=i.forwardRef((function(t,e){var r=_({shouldRestoreFocus:!0,enableAriaHiddenSiblings:!0},t),o=i.useRef(),u=Ht(o,e);!function(t,n){var e="true"===String(t["aria-modal"]).toLowerCase()&&t.enableAriaHiddenSiblings;i.useEffect((function(){if(e&&n.current)return Ot(n.current)}),[n,e])}(r,o),function(t,n){var e=t.onRestoreFocus,r=void 0===e?Rt:e,o=i.useRef(),u=i.useRef(!1);i.useEffect((function(){var t,i,e;return o.current=(0,C.M)().activeElement,t=n.current,(e=(i=(0,C.M)(t))&&i.activeElement)&&w(t,e)&&(u.current=!0),function(){var t;null==r||r({originalElement:o.current,containsFocus:u.current,documentContainsFocus:(null===(t=(0,C.M)())||void 0===t?void 0:t.hasFocus())||!1}),o.current=void 0}}),[]),Bt(n,"focus",i.useCallback((function(){u.current=!0}),[]),!0),Bt(n,"blur",i.useCallback((function(t){n.current&&t.relatedTarget&&!n.current.contains(t.relatedTarget)&&(u.current=!1)}),[]),!0)}(r,o);var a=r.role,s=r.className,l=r.ariaLabel,c=r.ariaLabelledBy,f=r.ariaDescribedBy,h=r.style,d=r.children,v=r.onDismiss,p=function(t,n){var e=Ft(),r=i.useState(!1),o=r[0],u=r[1];return i.useEffect((function(){return e.requestAnimationFrame((function(){var i;if(!t.style||!t.style.overflowY){var e=!1;if(n&&n.current&&(null===(i=n.current)||void 0===i?void 0:i.firstElementChild)){var r=n.current.clientHeight,a=n.current.firstElementChild.clientHeight;r>0&&a>r&&(e=a-r>1)}o!==e&&u(e)}})),function(){return e.dispose()}})),o}(r,o),g=i.useCallback((function(t){t.which===Pt&&v&&(v(t),t.preventDefault(),t.stopPropagation())}),[v]);return Bt(It(),"keydown",g),i.createElement("div",(0,n.pi)({ref:u},q(r,Y),{className:s,role:a,"aria-label":l,"aria-labelledby":c,"aria-describedby":f,onKeyDown:g,style:(0,n.pi)({overflowY:p?"scroll":void 0,outline:"none"},h)}),d)}));zt.displayName="Popup";var jt=e(1786);function Xt(t){var n=i.useRef();return void 0===n.current&&(n.current={value:"function"==typeof t?t():t}),n.current.value}var Yt,qt=function(){var t;return(null!==(t=It())&&void 0!==t?t:"undefined"!=typeof window)?window:void 0},$t=function(t){var n,i;return(null!==(i=null===(n=null==t?void 0:t.window)||void 0===n?void 0:n.document)&&void 0!==i?i:"undefined"!=typeof document)?document:void 0},Ut=((Yt={})[K.top]=jt.k4.slideUpIn10,Yt[K.bottom]=jt.k4.slideDownIn10,Yt[K.left]=jt.k4.slideLeftIn10,Yt[K.right]=jt.k4.slideRightIn10,Yt),Zt={opacity:0,filter:"opacity(0)",pointerEvents:"none"},Gt=["role","aria-roledescription"],Kt={preventDismissOnLostFocus:!1,preventDismissOnScroll:!1,preventDismissOnResize:!1,isBeakVisible:!0,beakWidth:16,gapSpace:0,minPagePadding:8,directionalHint:y.bottomAutoEdge},Jt=(0,o.y)({disableCaching:!0});function Qt(t,n,e,r){var o,u=t.calloutMaxHeight,a=t.finalHeight,s=t.directionalHint,l=t.directionalHintFixed,c=t.hidden,f=t.gapSpace,h=t.beakWidth,d=t.isBeakVisible,v=t.coverTarget,p=i.useState(),g=p[0],m=p[1],y=null!==(o=null==r?void 0:r.elementPosition)&&void 0!==o?o:{},b=y.top,x=y.bottom,w=(null==e?void 0:e.current)?function(t){var n,i,e,r,o=t,u=t,a=t,s=null!==(n=a.left)&&void 0!==n?n:a.x,l=null!==(i=a.top)&&void 0!==i?i:a.y,c=null!==(e=a.right)&&void 0!==e?e:s,f=null!==(r=a.bottom)&&void 0!==r?r:l;return o.stopPropagation?new et(o.clientX,o.clientX,o.clientY,o.clientY):void 0!==s&&void 0!==l?new et(s,c,l,f):St(u)}(e.current):void 0;return i.useEffect((function(){var t,i,e=null!==(t=n())&&void 0!==t?t:{},o=e.top,a=e.bottom;(null==r?void 0:r.targetEdge)===K.top&&(null==w?void 0:w.top)&&!v&&(a=w.top-function(t,n,i){return At(t,n,i)}(d,h,f)),"number"==typeof b&&a?i=a-b:"number"==typeof x&&"number"==typeof o&&a&&(i=a-o-x),m(!u&&!c||u&&i&&u>i?i:u||void 0)}),[x,u,a,s,l,n,c,r,b,f,h,d,w,v]),g}function tn(t,e,r,o,u,s){var l,c=i.useState(),f=c[0],h=c[1],d=i.useRef(0),v=i.useRef(),p=Ft(),g=t.hidden,m=t.target,y=t.finalHeight,b=t.calloutMaxHeight,x=t.onPositioned,w=t.directionalHint,C=t.hideOverflow,M=t.preferScrollResizePositioning,k=qt(),L=i.useRef();L.current!==s.current&&(L.current=s.current,l=s.current?null==k?void 0:k.getComputedStyle(s.current):void 0);var V=null==l?void 0:l.overflowY;return i.useEffect((function(){if(!g){var i=p.requestAnimationFrame((function(){var i,s,l,c;if(e.current&&r){var p=(0,n.pi)((0,n.pi)({},t),{target:o.current,bounds:u()}),g=r.cloneNode(!0);g.style.maxHeight=b?"".concat(b):"",g.style.visibility="hidden",null===(i=r.parentElement)||void 0===i||i.appendChild(g);var w=v.current===m?f:void 0,L=M&&!(C||"clip"===V||"hidden"===V),S=y?function(t,n,i,e,r){return function(t,n,i,e,r){return Dt(t,n,i,e,!1,void 0,!0,null!=r?r:(0,a.J)())}(t,n,i,e,r)}(p,e.current,g,w,k):function(t,n,i,e,r,o,u){return Dt(t,n,i,e,r,void 0,void 0,u)}(p,e.current,g,w,L,0,k);null===(s=r.parentElement)||void 0===s||s.removeChild(g),!f&&S||f&&S&&(c=S,!rn((l=f).elementPosition,c.elementPosition)||!rn(l.beakPosition.elementPosition,c.beakPosition.elementPosition))&&d.current<5?(d.current++,h(S)):d.current>0&&(d.current=0,null==x||x(f))}}),r);return v.current=m,function(){p.cancelAnimationFrame(i),v.current=void 0}}h(void 0),d.current=0}),[g,w,p,r,b,e,o,y,u,x,f,t,m,C,M,V,k]),f}var nn=i.memo(i.forwardRef((function(t,e){var r=_(Kt,t),o=r.styles,u=r.style,a=r.ariaLabel,s=r.ariaDescribedBy,l=r.ariaLabelledBy,c=r.className,f=r.isBeakVisible,h=r.children,d=r.beakWidth,v=r.calloutWidth,p=r.calloutMaxWidth,g=r.calloutMinWidth,m=r.doNotLayer,y=r.finalHeight,b=r.hideOverflow,x=void 0===b?!!y:b,M=r.backgroundColor,k=r.calloutMaxHeight,L=r.onScroll,V=r.shouldRestoreFocus,N=void 0===V||V,A=r.target,D=r.hidden,T=r.onLayerMounted,O=r.popupProps,P=i.useRef(null),E=Ht(i.useRef(null),null==O?void 0:O.ref),F=i.useState(null),B=F[0],I=F[1],W=i.useCallback((function(t){I(t)}),[]),R=Ht(P,e),z=function(t,n){var e=i.useRef(),r=i.useRef(null),o=It();if(!t||t!==e.current||"string"==typeof t){var u=null==n?void 0:n.current;if(t)if("string"==typeof t){var a=(0,C.M)(u);r.current=a?a.querySelector(t):null}else r.current="stopPropagation"in t||"getBoundingClientRect"in t?t:"current"in t?t.current:t;e.current=t}return[r,o]}(r.target,{current:B}),j=z[0],X=z[1],U=function(t,n,e){var r=t.bounds,o=t.minPagePadding,u=void 0===o?Kt.minPagePadding:o,a=t.target,s=i.useState(!1),l=s[0],c=s[1],f=i.useRef(),h=i.useCallback((function(){if(!f.current||l){var t="function"==typeof r?e?r(a,e):void 0:r;!t&&e&&(t=function(t,n){return function(t,n){var i=void 0;if(n.getWindowSegments&&(i=n.getWindowSegments()),void 0===i||i.length<=1)return{top:0,left:0,right:n.innerWidth,bottom:n.innerHeight,width:n.innerWidth,height:n.innerHeight};var e=0,r=0;if(null!==t&&t.getBoundingClientRect){var o=t.getBoundingClientRect();e=(o.left+o.right)/2,r=(o.top+o.bottom)/2}else null!==t&&(e=t.left||t.x,r=t.top||t.y);for(var u={top:0,left:0,right:0,bottom:0,width:0,height:0},a=0,s=i;a<s.length;a++){var l=s[a];e&&l.left<=e&&l.right>=e&&r&&l.top<=r&&l.bottom>=r&&(u={top:l.top,left:l.left,right:l.right,bottom:l.bottom,width:l.width,height:l.height})}return u}(t,n)}(n.current,e),t={top:t.top+u,left:t.left+u,right:t.right-u,bottom:t.bottom-u,width:t.width-2*u,height:t.height-2*u}),f.current=t,l&&c(!1)}return f.current}),[r,u,a,n,e,l]),d=Ft();return Bt(e,"resize",d.debounce((function(){c(!0)}),500,{leading:!0})),h}(r,j,X),Z=tn(r,P,B,j,U,E),G=Qt(r,U,j,Z),K=function(t,n,e,r,o){var u=t.hidden,a=t.onDismiss,s=t.preventDismissOnScroll,l=t.preventDismissOnResize,c=t.preventDismissOnLostFocus,f=t.dismissOnTargetClick,h=t.shouldDismissOnWindowFocus,d=t.preventDismissOnEvent,v=i.useRef(!1),p=Ft(),g=Xt([function(){v.current=!0},function(){v.current=!1}]),m=!!n;return i.useEffect((function(){var t=function(t){m&&!s&&g(t)},n=function(t){l||d&&d(t)||null==a||a(t)},i=function(t){c||g(t)},g=function(t){var n=t.composedPath?t.composedPath():[],i=n.length>0?n[0]:t.target,u=e.current&&!w(e.current,i);if(u&&v.current)v.current=!1;else if(!r.current&&u||t.target!==o&&u&&(!r.current||"stopPropagation"in r.current||f||i!==r.current&&!w(r.current,i))){if(d&&d(t))return;null==a||a(t)}},y=function(t){h&&((!d||d(t))&&(d||c)||(null==o?void 0:o.document.hasFocus())||null!==t.relatedTarget||null==a||a(t))},b=new Promise((function(e){p.setTimeout((function(){if(!u&&o){var r=[H(o,"scroll",t,!0),H(o,"resize",n,!0),H(o.document.documentElement,"focus",i,!0),H(o.document.documentElement,"click",i,!0),H(o,"blur",y,!0)];e((function(){r.forEach((function(t){return t()}))}))}}),0)}));return function(){b.then((function(t){return t()}))}}),[u,p,e,r,o,a,h,f,c,l,s,m,d]),g}(r,Z,P,j,X),J=K[0],Q=K[1],tt=(null==Z?void 0:Z.elementPosition.top)&&(null==Z?void 0:Z.elementPosition.bottom),nt=(0,n.pi)((0,n.pi)({},null==Z?void 0:Z.elementPosition),{maxHeight:G});if(tt&&(nt.bottom=void 0),function(t,n,e){var r=t.hidden,o=t.setInitialFocus,u=Ft(),a=!!n;i.useEffect((function(){if(!r&&o&&a&&e){var t=u.requestAnimationFrame((function(){return S(e)}),e);return function(){return u.cancelAnimationFrame(t)}}}),[r,a,u,e,o])}(r,Z,B),i.useEffect((function(){D||null==T||T()}),[D]),!X)return null;var it=x,et=f&&!!A,rt=Jt(o,{theme:r.theme,className:c,overflowYHidden:it,calloutWidth:v,positions:Z,beakWidth:d,backgroundColor:M,calloutMaxWidth:p,calloutMinWidth:g,doNotLayer:m}),ot=(0,n.pi)((0,n.pi)({maxHeight:k||"100%"},u),it&&{overflowY:"hidden"}),ut=r.hidden?{visibility:"hidden"}:void 0;return i.createElement("div",{ref:R,className:rt.container,style:ut},i.createElement("div",(0,n.pi)({},q(r,Y,Gt),{className:$(rt.root,Z&&Z.targetEdge&&Ut[Z.targetEdge]),style:Z?(0,n.pi)({},nt):Zt,tabIndex:-1,ref:W}),et&&i.createElement("div",{className:rt.beak,style:en(Z)}),et&&i.createElement("div",{className:rt.beakCurtain}),i.createElement(zt,(0,n.pi)({role:r.role,"aria-roledescription":r["aria-roledescription"],ariaDescribedBy:s,ariaLabel:a,ariaLabelledBy:l,className:rt.calloutMain,onDismiss:r.onDismiss,onMouseDown:J,onMouseUp:Q,onRestoreFocus:r.onRestoreFocus,onScroll:L,shouldRestoreFocus:N,style:ot},O,{ref:E}),h)))})),(function(t,n){return!(n.shouldUpdateWhenHidden||!t.hidden||!n.hidden)||function(t,n){if(!t||!n)return!t&&!n;for(var i in t)if(t.hasOwnProperty(i)&&(!n.hasOwnProperty(i)||n[i]!==t[i]))return!1;for(var i in n)if(n.hasOwnProperty(i)&&!t.hasOwnProperty(i))return!1;return!0}(t,n)}));function en(t){var i,e,r=(0,n.pi)((0,n.pi)({},null===(i=null==t?void 0:t.beakPosition)||void 0===i?void 0:i.elementPosition),{display:(null===(e=null==t?void 0:t.beakPosition)||void 0===e?void 0:e.hideBeak)?"none":void 0});return r.top||r.bottom||r.left||r.right||(r.left=0,r.top=0),r}function rn(t,n){for(var i in n)if(n.hasOwnProperty(i)){var e=t[i],r=n[i];if(void 0===e||void 0===r)return!1;if(e.toFixed(2)!==r.toFixed(2))return!1}return!0}function on(t){return{height:t,width:t}}nn.displayName="CalloutContentBase";var un={container:"ms-Callout-container",root:"ms-Callout",beak:"ms-Callout-beak",beakCurtain:"ms-Callout-beakCurtain",calloutMain:"ms-Callout-main"},an=(0,t.z)(nn,(function(t){var n,i=t.theme,e=t.className,r=t.overflowYHidden,o=t.calloutWidth,u=t.beakWidth,a=t.backgroundColor,s=t.calloutMaxWidth,l=t.calloutMinWidth,c=t.doNotLayer,f=(0,jt.Cn)(un,i),h=i.semanticColors,d=i.effects;return{container:[f.container,{position:"relative"}],root:[f.root,i.fonts.medium,{position:"absolute",display:"flex",zIndex:c?jt.bR.Layer:void 0,boxSizing:"border-box",borderRadius:d.roundedCorner2,boxShadow:d.elevation16,selectors:(n={},n[jt.qJ]={borderWidth:1,borderStyle:"solid",borderColor:"WindowText"},n)},(0,jt.e2)(),e,!!o&&{width:o},!!s&&{maxWidth:s},!!l&&{minWidth:l}],beak:[f.beak,{position:"absolute",backgroundColor:h.menuBackground,boxShadow:"inherit",border:"inherit",boxSizing:"border-box",transform:"rotate(45deg)"},on(u),a&&{backgroundColor:a}],beakCurtain:[f.beakCurtain,{position:"absolute",top:0,right:0,bottom:0,left:0,backgroundColor:h.menuBackground,borderRadius:d.roundedCorner2}],calloutMain:[f.calloutMain,{backgroundColor:h.menuBackground,overflowX:"hidden",overflowY:"auto",position:"relative",width:"100%",borderRadius:d.roundedCorner2},r&&{overflowY:"hidden"},a&&{backgroundColor:a}]}}),void 0,{scope:"CalloutContent"}),sn=i.createContext(void 0),ln=function(){return function(){}};sn.Provider;var cn=ReactDOM,fn=e(156);new WeakMap,new WeakMap;var hn=i.createContext(void 0),dn=function(t){var n=t.providerRef,e=t.layerRoot,r=i.useState([])[0],o=i.useContext(hn),u=void 0!==o&&!e,a=i.useMemo((function(){return u?void 0:{providerRef:n,registeredProviders:r,registerProvider:function(t){r.push(t),null==o||o.registerProvider(t)},unregisterProvider:function(t){null==o||o.unregisterProvider(t);var n=r.indexOf(t);n>=0&&r.splice(n,1)}}}),[n,r,o,u]);return i.useEffect((function(){if(a)return a.registerProvider(a.providerRef),function(){return a.unregisterProvider(a.providerRef)}}),[a]),a?i.createElement(hn.Provider,{value:a},t.children):i.createElement(i.Fragment,null,t.children)},vn=e(775),pn=e(2049);function gn(t,i){void 0===t&&(t={});var e=mn(i)?i:function(t){return function(i){return t?(0,n.pi)((0,n.pi)({},i),t):i}}(i);return e(t)}function mn(t){return"function"==typeof t}var yn=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n._onCustomizationChange=function(){return n.forceUpdate()},n}return(0,n.ZT)(e,t),e.prototype.componentDidMount=function(){vn.X.observe(this._onCustomizationChange)},e.prototype.componentWillUnmount=function(){vn.X.unobserve(this._onCustomizationChange)},e.prototype.render=function(){var t=this,e=this.props.contextTransform;return i.createElement(pn.i.Consumer,null,(function(r){var o=function(t,i){var e,r,o,u=(i||{}).customizations,a=void 0===u?{settings:{},scopedSettings:{}}:u;return{customizations:{settings:gn(a.settings,t.settings),scopedSettings:(e=a.scopedSettings,r=t.scopedSettings,void 0===e&&(e={}),(mn(r)?r:(void 0===(o=r)&&(o={}),function(t){var i=(0,n.pi)({},t);for(var e in o)o.hasOwnProperty(e)&&(i[e]=(0,n.pi)((0,n.pi)({},t[e]),o[e]));return i}))(e)),inCustomizerContext:!0}}}(t.props,r);return e&&(o=e(o)),i.createElement(pn.i.Provider,{value:o},t.props.children)}))},e}(i.Component),bn=e(685),xn=(0,o.y)(),wn=(0,fn.NF)((function(t,i){return(0,bn.j)((0,n.pi)((0,n.pi)({},t),{rtl:i}))})),Cn=i.forwardRef((function(t,e){var r=t.className,o=t.theme,a=t.applyTheme,s=t.applyThemeToBody,l=t.styles,c=xn(l,{theme:o,applyTheme:a,className:r}),f=i.useRef(null);return function(t,n,e){var r=n.bodyThemed;i.useEffect((function(){if(t){var n=(0,C.M)(e.current);if(n)return n.body.classList.add(r),function(){n.body.classList.remove(r)}}}),[r,t,e])}(s,c,f),i.createElement(i.Fragment,null,function(t,e,r,o){var a=e.root,s=t.as,l=void 0===s?"div":s,c=t.dir,f=t.theme,h=q(t,Y,["dir"]),d=function(t){var n=t.theme,i=t.dir,e=(0,u.zg)(n)?"rtl":"ltr",r=(0,u.zg)()?"rtl":"ltr",o=i||e;return{rootDir:o!==e||o!==r?o:i,needsTheme:o!==e}}(t),v=d.rootDir,p=d.needsTheme,g=i.createElement(dn,{providerRef:r},i.createElement(l,(0,n.pi)({dir:v},h,{className:a,ref:Ht(r,o)})));return p&&(g=i.createElement(yn,{settings:{theme:wn(f,"rtl"===c)}},g)),g}(t,c,f,e))}));Cn.displayName="FabricBase";var Mn,kn={fontFamily:"inherit"},Ln={root:"ms-Fabric",bodyThemed:"ms-Fabric-bodyThemed"},Vn=(0,t.z)(Cn,(function(t){var n=t.applyTheme,i=t.className,e=t.preventBlanketFontInheritance,r=t.theme;return{root:[(0,jt.Cn)(Ln,r).root,r.fonts.medium,{color:r.palette.neutralPrimary},!e&&{"& button":kn,"& input":kn,"& textarea":kn},n&&{color:r.semanticColors.bodyText,backgroundColor:r.semanticColors.bodyBackground},i],bodyThemed:[{backgroundColor:r.semanticColors.bodyBackground}]}}),void 0,{scope:"Fabric"}),Sn=e(9766),Nn="data-portal-element",An={},Dn={},Tn="fluent-default-layer-host",On="#".concat(Tn),Pn=e(8873),En=(0,Pn.N)()?i.useLayoutEffect:i.useEffect,Fn=(0,o.y)(),Bn=i.forwardRef((function(t,e){var r,o=null!==(r=i.useContext(sn))&&void 0!==r?r:ln,u=i.useRef(null),a=Ht(u,e),s=i.useRef(),l=i.useRef(null),c=i.useContext(hn),f=i.useState(!1),h=f[0],d=f[1],v=i.useCallback((function(t){var n,i=!!(null==(n=null==c?void 0:c.providerRef)?void 0:n.current)&&n.current.classList.contains(Sn.G$);t&&i&&t.classList.add(Sn.G$)}),[c]),p=t.children,g=t.className,m=t.eventBubblingEnabled,y=t.fabricProps,b=t.hostId,x=t.insertFirst,w=t.onLayerDidMount,M=void 0===w?function(){}:w,k=t.onLayerMounted,L=void 0===k?function(){}:k,V=t.onLayerWillUnmount,S=t.styles,N=t.theme,A=Ht(l,null==y?void 0:y.ref,v),D=Fn(S,{theme:N,className:g,isNotHost:!b}),T=function(){null==V||V();var t=s.current;s.current=void 0,t&&t.parentNode&&t.parentNode.removeChild(t)},O=function(){var t,n=(0,C.M)(u.current);if(n){var i=function(t){var n,i;if(b){var e=function(t){var n=Dn[t];return n&&n[0]||void 0}(b);return e?null!==(n=e.rootRef.current)&&void 0!==n?n:null:null!==(i=t.getElementById(b))&&void 0!==i?i:null}var r=On,o=r?t.querySelector(r):null;return o||(o=function(t){var n=t.createElement("div");return n.setAttribute("id",Tn),n.style.cssText="position:fixed;z-index:1000000",null==t||t.body.appendChild(n),n}(t)),o}(n);if(i){T();var e=(null!==(t=i.ownerDocument)&&void 0!==t?t:n).createElement("div");e.className=D.root,e.setAttribute(Nn,"true"),function(t,n){var i=t,e=n;i._virtual||(i._virtual={children:[]});var r=i._virtual.parent;if(r&&r!==n){var o=r._virtual.children.indexOf(i);o>-1&&r._virtual.children.splice(o,1)}i._virtual.parent=e||void 0,e&&(e._virtual||(e._virtual={children:[]}),e._virtual.children.push(i))}(e,u.current),x?i.insertBefore(e,i.firstChild):i.appendChild(e),s.current=e,d(!0)}}};return En((function(){O(),b&&function(t,n){An[t]||(An[t]=[]),An[t].push(n);var i=Dn[t];if(i)for(var e=0,r=i;e<r.length;e++)r[e].notifyLayersChanged()}(b,O);var t=s.current?o(s.current):void 0;return function(){t&&t(),T(),b&&function(t,n){var i=An[t];if(i){var e=i.indexOf(n);e>=0&&(i.splice(e,1),0===i.length&&delete An[t])}var r=Dn[t];if(r)for(var o=0,u=r;o<u.length;o++)u[o].notifyLayersChanged()}(b,O)}}),[b]),i.useEffect((function(){s.current&&h&&(null==L||L(),null==M||M(),d(!1))}),[h,L,M]),i.createElement("span",{className:"ms-layer",ref:a},s.current&&cn.createPortal(i.createElement(dn,{layerRoot:!0,providerRef:A},i.createElement(Vn,(0,n.pi)({},!m&&(Mn||(Mn={},["onClick","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOver","onMouseOut","onMouseUp","onTouchMove","onTouchStart","onTouchCancel","onTouchEnd","onKeyDown","onKeyPress","onKeyUp","onFocus","onBlur","onChange","onInput","onInvalid","onSubmit"].forEach((function(t){return Mn[t]=Hn}))),Mn),y,{className:$(D.content,null==y?void 0:y.className),ref:A}),p)),s.current))}));Bn.displayName="LayerBase";var Hn=function(t){t.eventPhase===Event.BUBBLING_PHASE&&"mouseenter"!==t.type&&"mouseleave"!==t.type&&"touchstart"!==t.type&&"touchend"!==t.type&&t.stopPropagation()},_n={root:"ms-Layer",rootNoHost:"ms-Layer--fixed",content:"ms-Layer-content"},In=(0,t.z)(Bn,(function(t){var n=t.className,i=t.isNotHost,e=t.theme,r=(0,jt.Cn)(_n,e);return{root:[r.root,e.fonts.medium,i&&[r.rootNoHost,{position:"fixed",zIndex:jt.bR.Layer,top:0,left:0,bottom:0,right:0,visibility:"hidden"}],n],content:[r.content,{visibility:"visible"}]}}),void 0,{scope:"Layer",fields:["hostId","theme","styles"]}),Wn=i.forwardRef((function(t,e){var r=t.layerProps,o=t.doNotLayer,u=(0,n._T)(t,["layerProps","doNotLayer"]),a=i.createElement(an,(0,n.pi)({},u,{doNotLayer:o,ref:e}));return o?a:i.createElement(In,(0,n.pi)({},r),a)}));Wn.displayName="Callout";var Rn,zn=e(3813),jn=e(8024);function Xn(t){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];return n.length<2?n[0]:function(){for(var i=[],e=0;e<arguments.length;e++)i[e]=arguments[e];n.forEach((function(n){return n&&n.apply(t,i)}))}}function Yn(t){!function(t,n){for(var i in n)n.hasOwnProperty(i)&&(t[i]=Xn(t,t[i],n[i]))}(t,{componentDidMount:qn,componentDidUpdate:$n,componentWillUnmount:Un})}function qn(){Zn(this.props.componentRef,this)}function $n(t){t.componentRef!==this.props.componentRef&&(Zn(t.componentRef,null),Zn(this.props.componentRef,this))}function Un(){Zn(this.props.componentRef,null)}function Zn(t,n){t&&("object"==typeof t?t.current=n:"function"==typeof t&&t(n))}function Gn(t,n,i){var e=x(t,(function(t){return n===t||t.hasAttribute(Nn)}),i);return null!==e&&e.hasAttribute(Nn)}!function(t){t[t.vertical=0]="vertical",t[t.horizontal=1]="horizontal",t[t.bidirectional=2]="bidirectional",t[t.domOrder=3]="domOrder"}(Rn||(Rn={}));var Kn,Jn="data-is-focusable",Qn="data-focuszone-id",ti="tabindex",ni="data-no-vertical-wrap",ii="data-no-horizontal-wrap",ei=999999999,ri=-999999999;function oi(t,n){var i;"function"==typeof MouseEvent?i=new MouseEvent("click",{ctrlKey:null==n?void 0:n.ctrlKey,metaKey:null==n?void 0:n.metaKey,shiftKey:null==n?void 0:n.shiftKey,altKey:null==n?void 0:n.altKey,bubbles:null==n?void 0:n.bubbles,cancelable:null==n?void 0:n.cancelable}):(i=document.createEvent("MouseEvents")).initMouseEvent("click",!!n&&n.bubbles,!!n&&n.cancelable,window,0,0,0,0,0,!!n&&n.ctrlKey,!!n&&n.altKey,!!n&&n.shiftKey,!!n&&n.metaKey,0,null),t.dispatchEvent(i)}var ui,ai={},si=new Set,li=["text","number","password","email","tel","url","search","textarea"],ci=!1,fi=function(t){function e(n){var r,o,a,s,l,c=this;(c=t.call(this,n)||this)._root=i.createRef(),c._mergedRef=(l={refs:[]},function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return l.resolver&&function(t,n){if(t.length!==n.length)return!1;for(var i=0;i<t.length;i++)if(t[i]!==n[i])return!1;return!0}(l.refs,t)||(l.resolver=function(t){return function(n){for(var i=0,e=t.refs;i<e.length;i++){var r=e[i];"function"==typeof r?r(n):r&&(r.current=n)}}}(l)),l.refs=t,l.resolver}),c._onFocus=function(t){if(!c._portalContainsElement(t.target)){var n,i=c.props,e=i.onActiveElementChanged,r=i.doNotAllowFocusEventToPropagate,o=i.stopFocusPropagation,u=i.onFocusNotification,a=i.onFocus,s=i.shouldFocusInnerElementWhenReceivedFocus,l=i.defaultTabbableElement,f=c._isImmediateDescendantOfZone(t.target);if(f)n=t.target;else for(var h=t.target;h&&h!==c._root.current;){if(O(h)&&c._isImmediateDescendantOfZone(h)){n=h;break}h=b(h,ci)}if(s&&t.target===c._root.current){var d=l&&"function"==typeof l&&c._root.current&&l(c._root.current);d&&O(d)?(n=d,d.focus()):(c.focus(!0),c._activeElement&&(n=null))}var v=!c._activeElement;n&&n!==c._activeElement&&((f||v)&&c._setFocusAlignment(n,!0,!0),c._activeElement=n,v&&c._updateTabIndexes()),e&&e(c._activeElement,t),(o||r)&&t.stopPropagation(),a?a(t):u&&u()}},c._onBlur=function(){c._setParkedFocus(!1)},c._onMouseDown=function(t){if(!c._portalContainsElement(t.target)&&!c.props.disabled){for(var n=t.target,i=[];n&&n!==c._root.current;)i.push(n),n=b(n,ci);for(;i.length&&((n=i.pop())&&O(n)&&c._setActiveElement(n,!0),!P(n)););}},c._onKeyDown=function(t,n){if(!c._portalContainsElement(t.target)){var i=c.props,e=i.direction,r=i.disabled,o=i.isInnerZoneKeystroke,a=i.pagingSupportDisabled,s=i.shouldEnterInnerZone;if(!(r||(c.props.onKeyDown&&c.props.onKeyDown(t),t.isDefaultPrevented()||c._getDocument().activeElement===c._root.current&&c._isInnerZone))){if((s&&s(t)||o&&o(t))&&c._isImmediateDescendantOfZone(t.target)){var l=c._getFirstInnerZone();if(l){if(!l.focus(!0))return}else{if(!E(t.target))return;if(!c.focusElement(A(t.target,t.target.firstChild,!0)))return}}else{if(t.altKey)return;switch(t.which){case 32:if(c._shouldRaiseClicksOnSpace&&c._tryInvokeClickForFocusable(t.target,t))break;return;case 37:if(e!==Rn.vertical&&(c._preventDefaultWhenHandled(t),c._moveFocusLeft(n)))break;return;case 39:if(e!==Rn.vertical&&(c._preventDefaultWhenHandled(t),c._moveFocusRight(n)))break;return;case 38:if(e!==Rn.horizontal&&(c._preventDefaultWhenHandled(t),c._moveFocusUp()))break;return;case 40:if(e!==Rn.horizontal&&(c._preventDefaultWhenHandled(t),c._moveFocusDown()))break;return;case 34:if(!a&&c._moveFocusPaging(!0))break;return;case 33:if(!a&&c._moveFocusPaging(!1))break;return;case 9:if(c.props.allowTabKey||1===c.props.handleTabKey||2===c.props.handleTabKey&&c._isElementInput(t.target)){var f=!1;if(c._processingTabKey=!0,f=e!==Rn.vertical&&c._shouldWrapFocus(c._activeElement,ii)?((0,u.zg)(n)?!t.shiftKey:t.shiftKey)?c._moveFocusLeft(n):c._moveFocusRight(n):t.shiftKey?c._moveFocusUp():c._moveFocusDown(),c._processingTabKey=!1,f)break;c.props.shouldResetActiveElementWhenTabFromZone&&(c._activeElement=null)}return;case 36:if(c._isContentEditableElement(t.target)||c._isElementInput(t.target)&&!c._shouldInputLoseFocus(t.target,!1))return!1;var h=c._root.current&&c._root.current.firstChild;if(c._root.current&&h&&c.focusElement(A(c._root.current,h,!0)))break;return;case 35:if(c._isContentEditableElement(t.target)||c._isElementInput(t.target)&&!c._shouldInputLoseFocus(t.target,!0))return!1;var d=c._root.current&&c._root.current.lastChild;if(c._root.current&&c.focusElement(N(c._root.current,d,!0,!0,!0)))break;return;case 13:if(c._shouldRaiseClicksOnEnter&&c._tryInvokeClickForFocusable(t.target,t))break;return;default:return}}t.preventDefault(),t.stopPropagation()}}},c._getHorizontalDistanceFromCenter=function(t,n,i){var e=c._focusAlignment.left||c._focusAlignment.x||0,r=Math.floor(i.top),o=Math.floor(n.bottom),u=Math.floor(i.bottom),a=Math.floor(n.top);return t&&r>o||!t&&u<a?e>=i.left&&e<=i.left+i.width?0:Math.abs(i.left+i.width/2-e):c._shouldWrapFocus(c._activeElement,ni)?ei:ri},Yn(c),c._id=v("FocusZone"),c._focusAlignment={left:0,top:0},c._processingTabKey=!1;var f=null===(o=null!==(r=n.shouldRaiseClicks)&&void 0!==r?r:e.defaultProps.shouldRaiseClicks)||void 0===o||o;return c._shouldRaiseClicksOnEnter=null!==(a=n.shouldRaiseClicksOnEnter)&&void 0!==a?a:f,c._shouldRaiseClicksOnSpace=null!==(s=n.shouldRaiseClicksOnSpace)&&void 0!==s?s:f,c}return(0,n.ZT)(e,t),e.getOuterZones=function(){return si.size},e._onKeyDownCapture=function(t){9===t.which&&si.forEach((function(t){return t._updateTabIndexes()}))},e.prototype.componentDidMount=function(){var t=this._root.current;if(ai[this._id]=this,t){for(var n=b(t,ci);n&&n!==this._getDocument().body&&1===n.nodeType;){if(P(n)){this._isInnerZone=!0;break}n=b(n,ci)}this._isInnerZone||(si.add(this),this._root.current&&this._root.current.addEventListener("keydown",e._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()}},e.prototype.componentDidUpdate=function(){var t=this._root.current,n=this._getDocument();if((this._activeElement&&!w(this._root.current,this._activeElement,ci)||this._defaultFocusElement&&!w(this._root.current,this._defaultFocusElement,ci))&&(this._activeElement=null,this._defaultFocusElement=null,this._updateTabIndexes()),!this.props.preventFocusRestoration&&n&&this._lastIndexPath&&(n.activeElement===n.body||null===n.activeElement||n.activeElement===t)){var i=function(t,n){for(var i=t,e=0,r=n;e<r.length;e++){var o=r[e],u=i.children[Math.min(o,i.children.length-1)];if(!u)break;i=u}return O(i)&&D(i)?i:A(t,i,!0)||N(t,i)}(t,this._lastIndexPath);i?(this._setActiveElement(i,!0),i.focus(),this._setParkedFocus(!1)):this._setParkedFocus(!0)}},e.prototype.componentWillUnmount=function(){delete ai[this._id],this._isInnerZone||(si.delete(this),this._root.current&&this._root.current.removeEventListener("keydown",e._onKeyDownCapture,!0)),this._root.current&&this._root.current.removeEventListener("blur",this._onBlur,!0),this._activeElement=null,this._defaultFocusElement=null},e.prototype.render=function(){var t=this,e=this.props,r=e.as,o=e.elementType,u=e.rootProps,a=e.ariaDescribedBy,s=e.ariaLabelledBy,l=e.className,c=q(this.props,z),f=r||o||"div";this._evaluateFocusBeforeRender();var h=(0,jt.gh)();return i.createElement(f,(0,n.pi)({"aria-labelledby":s,"aria-describedby":a},c,u,{className:$((Kn||(Kn=(0,Q.y)({selectors:{":focus":{outline:"none"}}},"ms-FocusZone")),Kn),l),ref:this._mergedRef(this.props.elementRef,this._root),"data-focuszone-id":this._id,onKeyDown:function(n){return t._onKeyDown(n,h)},onFocus:this._onFocus,onMouseDownCapture:this._onMouseDown}),this.props.children)},e.prototype.focus=function(t,n){if(void 0===t&&(t=!1),void 0===n&&(n=!1),this._root.current){if(!t&&"true"===this._root.current.getAttribute(Jn)&&this._isInnerZone){var i=this._getOwnerZone(this._root.current);if(i!==this._root.current){var e=ai[i.getAttribute(Qn)];return!!e&&e.focusElement(this._root.current)}return!1}if(!t&&this._activeElement&&w(this._root.current,this._activeElement)&&O(this._activeElement)&&(!n||T(this._activeElement)))return this._activeElement.focus(),!0;var r=this._root.current.firstChild;return this.focusElement(A(this._root.current,r,!0,void 0,void 0,void 0,void 0,void 0,n))}return!1},e.prototype.focusLast=function(){if(this._root.current){var t=this._root.current&&this._root.current.lastChild;return this.focusElement(N(this._root.current,t,!0,!0,!0))}return!1},e.prototype.focusElement=function(t,n){var i=this.props,e=i.onBeforeFocus,r=i.shouldReceiveFocus;return!(r&&!r(t)||e&&!e(t)||!t||(this._setActiveElement(t,n),this._activeElement&&this._activeElement.focus(),0))},e.prototype.setFocusAlignment=function(t){this._focusAlignment=t},Object.defineProperty(e.prototype,"defaultFocusElement",{get:function(){return this._defaultFocusElement},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeElement",{get:function(){return this._activeElement},enumerable:!1,configurable:!0}),e.prototype._evaluateFocusBeforeRender=function(){var t=this._root.current,n=this._getDocument();if(n){var i=n.activeElement;if(i!==t){var e=w(t,i,!1);this._lastIndexPath=e?function(t,n){for(var i=[];n&&t&&n!==t;){var e=b(n,!0);if(null===e)return[];i.unshift(Array.prototype.indexOf.call(e.children,n)),n=e}return i}(t,i):void 0}}},e.prototype._setParkedFocus=function(t){var n=this._root.current;n&&this._isParked!==t&&(this._isParked=t,t?(this.props.allowFocusRoot||(this._parkedTabIndex=n.getAttribute("tabindex"),n.setAttribute("tabindex","-1")),n.focus()):this.props.allowFocusRoot||(this._parkedTabIndex?(n.setAttribute("tabindex",this._parkedTabIndex),this._parkedTabIndex=void 0):n.removeAttribute("tabindex")))},e.prototype._setActiveElement=function(t,n){var i=this._activeElement;this._activeElement=t,i&&(P(i)&&this._updateTabIndexes(i),i.tabIndex=-1),this._activeElement&&(this._focusAlignment&&!n||this._setFocusAlignment(t,!0,!0),this._activeElement.tabIndex=0)},e.prototype._preventDefaultWhenHandled=function(t){this.props.preventDefaultWhenHandled&&t.preventDefault()},e.prototype._tryInvokeClickForFocusable=function(t,n){var i=t;if(i===this._root.current)return!1;do{if("BUTTON"===i.tagName||"A"===i.tagName||"INPUT"===i.tagName||"TEXTAREA"===i.tagName||"SUMMARY"===i.tagName)return!1;if(this._isImmediateDescendantOfZone(i)&&"true"===i.getAttribute(Jn)&&"true"!==i.getAttribute("data-disable-click-on-enter"))return oi(i,n),!0;i=b(i,ci)}while(i!==this._root.current);return!1},e.prototype._getFirstInnerZone=function(t){if(!(t=t||this._activeElement||this._root.current))return null;if(P(t))return ai[t.getAttribute(Qn)];for(var n=t.firstElementChild;n;){if(P(n))return ai[n.getAttribute(Qn)];var i=this._getFirstInnerZone(n);if(i)return i;n=n.nextElementSibling}return null},e.prototype._moveFocus=function(t,n,i,e){void 0===e&&(e=!0);var r=this._activeElement,o=-1,u=void 0,a=!1,s=this.props.direction===Rn.bidirectional;if(!r||!this._root.current)return!1;if(this._isElementInput(r)&&!this._shouldInputLoseFocus(r,t))return!1;var l=s?r.getBoundingClientRect():null;do{if(r=t?A(this._root.current,r):N(this._root.current,r),!s){u=r;break}if(r){var c=n(l,r.getBoundingClientRect());if(-1===c&&-1===o){u=r;break}if(c>-1&&(-1===o||c<o)&&(o=c,u=r),o>=0&&c<0)break}}while(r);if(u&&u!==this._activeElement)a=!0,this.focusElement(u);else if(this.props.isCircularNavigation&&e)return t?this.focusElement(A(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement(N(this._root.current,this._root.current.lastElementChild,!0,!0,!0));return a},e.prototype._moveFocusDown=function(){var t=this,n=-1,i=this._focusAlignment.left||this._focusAlignment.x||0;return!!this._moveFocus(!0,(function(e,r){var o=-1,u=Math.floor(r.top),a=Math.floor(e.bottom);return u<a?t._shouldWrapFocus(t._activeElement,ni)?ei:ri:((-1===n&&u>=a||u===n)&&(n=u,o=i>=r.left&&i<=r.left+r.width?0:Math.abs(r.left+r.width/2-i)),o)}))&&(this._setFocusAlignment(this._activeElement,!1,!0),!0)},e.prototype._moveFocusUp=function(){var t=this,n=-1,i=this._focusAlignment.left||this._focusAlignment.x||0;return!!this._moveFocus(!1,(function(e,r){var o=-1,u=Math.floor(r.bottom),a=Math.floor(r.top),s=Math.floor(e.top);return u>s?t._shouldWrapFocus(t._activeElement,ni)?ei:ri:((-1===n&&u<=s||a===n)&&(n=a,o=i>=r.left&&i<=r.left+r.width?0:Math.abs(r.left+r.width/2-i)),o)}))&&(this._setFocusAlignment(this._activeElement,!1,!0),!0)},e.prototype._moveFocusLeft=function(t){var n=this,i=this._shouldWrapFocus(this._activeElement,ii);return!!this._moveFocus((0,u.zg)(t),(function(e,r){var o=-1;return((0,u.zg)(t)?parseFloat(r.top.toFixed(3))<parseFloat(e.bottom.toFixed(3)):parseFloat(r.bottom.toFixed(3))>parseFloat(e.top.toFixed(3)))&&r.right<=e.right&&n.props.direction!==Rn.vertical?o=e.right-r.right:i||(o=ri),o}),void 0,i)&&(this._setFocusAlignment(this._activeElement,!0,!1),!0)},e.prototype._moveFocusRight=function(t){var n=this,i=this._shouldWrapFocus(this._activeElement,ii);return!!this._moveFocus(!(0,u.zg)(t),(function(e,r){var o=-1;return((0,u.zg)(t)?parseFloat(r.bottom.toFixed(3))>parseFloat(e.top.toFixed(3)):parseFloat(r.top.toFixed(3))<parseFloat(e.bottom.toFixed(3)))&&r.left>=e.left&&n.props.direction!==Rn.vertical?o=r.left-e.left:i||(o=ri),o}),void 0,i)&&(this._setFocusAlignment(this._activeElement,!0,!1),!0)},e.prototype._moveFocusPaging=function(t,n){void 0===n&&(n=!0);var i=this._activeElement;if(!i||!this._root.current)return!1;if(this._isElementInput(i)&&!this._shouldInputLoseFocus(i,t))return!1;var e=nt(i);if(!e)return!1;var r=-1,o=void 0,u=-1,a=-1,s=e.clientHeight,l=i.getBoundingClientRect();do{if(i=t?A(this._root.current,i):N(this._root.current,i)){var c=i.getBoundingClientRect(),f=Math.floor(c.top),h=Math.floor(l.bottom),d=Math.floor(c.bottom),v=Math.floor(l.top),p=this._getHorizontalDistanceFromCenter(t,l,c);if(t&&f>h+s||!t&&d<v-s)break;p>-1&&(t&&f>u?(u=f,r=p,o=i):!t&&d<a?(a=d,r=p,o=i):(-1===r||p<=r)&&(r=p,o=i))}}while(i);var g=!1;if(o&&o!==this._activeElement)g=!0,this.focusElement(o),this._setFocusAlignment(o,!1,!0);else if(this.props.isCircularNavigation&&n)return t?this.focusElement(A(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement(N(this._root.current,this._root.current.lastElementChild,!0,!0,!0));return g},e.prototype._setFocusAlignment=function(t,n,i){if(this.props.direction===Rn.bidirectional&&(!this._focusAlignment||n||i)){var e=t.getBoundingClientRect(),r=e.left+e.width/2,o=e.top+e.height/2;this._focusAlignment||(this._focusAlignment={left:r,top:o}),n&&(this._focusAlignment.left=r),i&&(this._focusAlignment.top=o)}},e.prototype._isImmediateDescendantOfZone=function(t){return this._getOwnerZone(t)===this._root.current},e.prototype._getOwnerZone=function(t){for(var n=b(t,ci);n&&n!==this._root.current&&n!==this._getDocument().body;){if(P(n))return n;n=b(n,ci)}return n},e.prototype._updateTabIndexes=function(t){!this._activeElement&&this.props.defaultTabbableElement&&"function"==typeof this.props.defaultTabbableElement&&(this._activeElement=this.props.defaultTabbableElement(this._root.current)),!t&&this._root.current&&(this._defaultFocusElement=null,t=this._root.current,this._activeElement&&!w(t,this._activeElement)&&(this._activeElement=null)),this._activeElement&&!O(this._activeElement)&&(this._activeElement=null);for(var n=t&&t.children,i=0;n&&i<n.length;i++){var e=n[i];P(e)?"true"===e.getAttribute(Jn)&&(this._isInnerZone||(this._activeElement||this._defaultFocusElement)&&this._activeElement!==e?"-1"!==e.getAttribute(ti)&&e.setAttribute(ti,"-1"):(this._defaultFocusElement=e,"0"!==e.getAttribute(ti)&&e.setAttribute(ti,"0"))):(e.getAttribute&&"false"===e.getAttribute(Jn)&&e.setAttribute(ti,"-1"),O(e)?this.props.disabled?e.setAttribute(ti,"-1"):this._isInnerZone||(this._activeElement||this._defaultFocusElement)&&this._activeElement!==e?"-1"!==e.getAttribute(ti)&&e.setAttribute(ti,"-1"):(this._defaultFocusElement=e,"0"!==e.getAttribute(ti)&&e.setAttribute(ti,"0")):"svg"===e.tagName&&"false"!==e.getAttribute("focusable")&&e.setAttribute("focusable","false")),this._updateTabIndexes(e)}},e.prototype._isContentEditableElement=function(t){return t&&"true"===t.getAttribute("contenteditable")},e.prototype._isElementInput=function(t){return!(!t||!t.tagName||"input"!==t.tagName.toLowerCase()&&"textarea"!==t.tagName.toLowerCase())},e.prototype._shouldInputLoseFocus=function(t,n){if(!this._processingTabKey&&t&&t.type&&li.indexOf(t.type.toLowerCase())>-1){var i=t.selectionStart,e=i!==t.selectionEnd,r=t.value,o=t.readOnly;if(e||i>0&&!n&&!o||i!==r.length&&n&&!o||this.props.handleTabKey&&(!this.props.shouldInputLoseFocusOnArrowKey||!this.props.shouldInputLoseFocusOnArrowKey(t)))return!1}return!0},e.prototype._shouldWrapFocus=function(t,n){return!this.props.checkForNoWrap||function(t,n,i){return"true"!==function(t,n,i){var e=x(t,(function(t){return t.hasAttribute(n)}),i);return e&&e.getAttribute(n)}(t,n,null!=i?i:(0,C.M)())}(t,n)},e.prototype._portalContainsElement=function(t){return t&&!!this._root.current&&Gn(t,this._root.current)},e.prototype._getDocument=function(){return(0,C.M)(this._root.current)},e.defaultProps={isCircularNavigation:!1,direction:Rn.bidirectional,shouldRaiseClicks:!0,"data-tabster":'{"uncontrolled": {}}'},e}(i.Component);function hi(t){return function(t){return t.clientWidth<t.scrollWidth}(t)||function(t){return t.clientHeight<t.scrollHeight}(t)}!function(t){t[t.Parent=0]="Parent",t[t.Self=1]="Self"}(ui||(ui={}));var di,vi=(0,o.y)(),pi=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n._onRenderContent=function(t){return"string"==typeof t.content?i.createElement("p",{className:n._classNames.subText},t.content):i.createElement("div",{className:n._classNames.subText},t.content)},n}return(0,n.ZT)(e,t),e.prototype.render=function(){var t=this.props,e=t.className,r=t.calloutProps,o=t.directionalHint,u=t.directionalHintForRTL,a=t.styles,s=t.id,l=t.maxWidth,c=t.onRenderContent,f=void 0===c?this._onRenderContent:c,h=t.targetElement,d=t.theme;return this._classNames=vi(a,{theme:d,className:e||r&&r.className,beakWidth:r&&r.isBeakVisible?r.beakWidth:0,gapSpace:r&&r.gapSpace,maxWidth:l}),i.createElement(Wn,(0,n.pi)({target:h,directionalHint:o,directionalHintForRTL:u},r,q(this.props,Y,["id"]),{className:this._classNames.root}),i.createElement("div",{className:this._classNames.content,id:s,onFocus:this.props.onFocus,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave},f(this.props,this._onRenderContent)))},e.defaultProps={directionalHint:y.topCenter,maxWidth:"364px",calloutProps:{isBeakVisible:!0,beakWidth:16,gapSpace:0,setInitialFocus:!0,doNotLayer:!1}},e}(i.Component),gi=(0,t.z)(pi,(function(t){var n=t.className,i=t.beakWidth,e=void 0===i?16:i,r=t.gapSpace,o=void 0===r?0:r,u=t.maxWidth,a=t.theme,s=a.semanticColors,l=a.fonts,c=a.effects,f=-(Math.sqrt(e*e/2)+o)+1/window.devicePixelRatio;return{root:["ms-Tooltip",a.fonts.medium,jt.k4.fadeIn200,{background:s.menuBackground,boxShadow:c.elevation8,padding:"8px",maxWidth:u,selectors:{":after":{content:"''",position:"absolute",bottom:f,left:f,right:f,top:f,zIndex:0}}},n],content:["ms-Tooltip-content",l.small,{position:"relative",zIndex:1,color:s.menuItemText,wordWrap:"break-word",overflowWrap:"break-word",overflow:"hidden"}],subText:["ms-Tooltip-subtext",{fontSize:"inherit",fontWeight:"inherit",color:"inherit",margin:0}]}}),void 0,{scope:"Tooltip"});!function(t){t[t.zero=0]="zero",t[t.medium=1]="medium",t[t.long=2]="long"}(di||(di={}));var mi,yi,bi=(0,o.y)(),xi=function(t){function e(n){var r=t.call(this,n)||this;return r._tooltipHost=i.createRef(),r._defaultTooltipId=v("tooltip"),r.show=function(){r._toggleTooltip(!0)},r.dismiss=function(){r._hideTooltip()},r._getTargetElement=function(){if(r._tooltipHost.current){var t=r.props.overflowMode;if(void 0!==t)switch(t){case ui.Parent:return r._tooltipHost.current.parentElement;case ui.Self:return r._tooltipHost.current}return r._tooltipHost.current}},r._onTooltipFocus=function(t){r._ignoreNextFocusEvent?r._ignoreNextFocusEvent=!1:r._onTooltipMouseEnter(t)},r._onTooltipContentFocus=function(t){e._currentVisibleTooltip&&e._currentVisibleTooltip!==r&&e._currentVisibleTooltip.dismiss(),e._currentVisibleTooltip=r,r._clearDismissTimer(),r._clearOpenTimer()},r._onTooltipBlur=function(t){var n;r._ignoreNextFocusEvent=(null===(n=$t(r.context))||void 0===n?void 0:n.activeElement)===t.target,r._dismissTimerId=r._async.setTimeout((function(){r._hideTooltip()}),0)},r._onTooltipMouseEnter=function(t){var n=r.props,i=n.overflowMode,o=n.delay,u=$t(r.context);if(e._currentVisibleTooltip&&e._currentVisibleTooltip!==r&&e._currentVisibleTooltip.dismiss(),e._currentVisibleTooltip=r,void 0!==i){var a=r._getTargetElement();if(a&&!hi(a))return}if(!t.target||!Gn(t.target,r._getTargetElement(),u))if(r._clearDismissTimer(),r._clearOpenTimer(),o!==di.zero){var s=r._getDelayTime(o);r._openTimerId=r._async.setTimeout((function(){r._toggleTooltip(!0)}),s)}else r._toggleTooltip(!0)},r._onTooltipMouseLeave=function(t){var n=r.props.closeDelay;r._clearDismissTimer(),r._clearOpenTimer(),n?r._dismissTimerId=r._async.setTimeout((function(){r._toggleTooltip(!1)}),n):r._toggleTooltip(!1),e._currentVisibleTooltip===r&&(e._currentVisibleTooltip=void 0)},r._onTooltipKeyDown=function(t){(t.which===Pt||t.ctrlKey)&&r.state.isTooltipVisible&&(r._hideTooltip(),t.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(t){r.state.isTooltipVisible!==t&&r.setState({isTooltipVisible:t},(function(){return r.props.onTooltipToggle&&r.props.onTooltipToggle(t)}))},r._getDelayTime=function(t){switch(t){case di.medium:return 300;case di.long:return 500;default:return 0}},Yn(r),r.state={isAriaPlaceholderRendered:!1,isTooltipVisible:!1},r._async=new Et(r),r}return(0,n.ZT)(e,t),e.prototype.render=function(){var t=this.props,e=t.calloutProps,r=t.children,o=t.content,u=t.directionalHint,a=t.directionalHintForRTL,s=t.hostClassName,l=t.id,c=t.setAriaDescribedBy,f=void 0===c||c,h=t.tooltipProps,d=t.styles,v=t.theme;this._classNames=bi(d,{theme:v,className:s});var p=this.state.isTooltipVisible,g=l||this._defaultTooltipId,m=(0,n.pi)((0,n.pi)({id:"".concat(g,"--tooltip"),content:o,targetElement:this._getTargetElement(),directionalHint:u,directionalHintForRTL:a,calloutProps:U({},e,{onDismiss:this._hideTooltip,onFocus:this._onTooltipContentFocus,onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave}),onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave},q(this.props,Y,["id"])),h),y=(null==h?void 0:h.onRenderContent)?h.onRenderContent(m,(function(t){return(null==t?void 0:t.content)?i.createElement(i.Fragment,null,t.content):null})):o,b=p&&!!y,x=f&&p&&y?g:void 0;return i.createElement("div",(0,n.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,b&&i.createElement(gi,(0,n.pi)({},m)),i.createElement("div",{hidden:!0,id:g,style:jt.ul},y))},e.prototype.componentWillUnmount=function(){e._currentVisibleTooltip&&e._currentVisibleTooltip===this&&(e._currentVisibleTooltip=void 0),this._async.dispose()},e.defaultProps={delay:di.medium},e.contextType=_t,e}(i.Component),wi={root:"ms-TooltipHost",ariaPlaceholder:"ms-TooltipHost-aria-placeholder"},Ci=(0,t.z)(xi,(function(t){var n=t.className,i=t.theme;return{root:[(0,jt.Cn)(wi,i).root,{display:"inline"},n]}}),void 0,{scope:"TooltipHost"}),Mi=function(t){function e(n){var e=t.call(this,n)||this;return e._tooltipChild=i.createRef(),e._checkTextOverflow=function(){var t=e._getTargetElement(),n=!!t&&hi(t);n!==e.state.textOverflow&&e.setState({textOverflow:n})},e._getTargetElement=function(){if(e._tooltipChild.current&&e._tooltipChild.current.parentElement)return e._tooltipChild.current.parentElement},e.state={textOverflow:!1},e._async=new Et(e),e}return(0,n.ZT)(e,t),e.prototype.render=function(){var t=this.props,e=t.className,r=t.content,o=t.accessibilityData;return i.createElement(Ci,{overflowMode:ui.Self,hostClassName:e,content:r},i.createElement("span",(0,n.pi)({},(0,zn.ey)(o),{ref:this._tooltipChild,"data-is-focusable":this.state.textOverflow}),r))},e.prototype.componentDidMount=function(){var t=this._getTargetElement();window.ResizeObserver&&t&&(this._resizeObserver=new ResizeObserver(this._async.debounce(this._checkTextOverflow,500)),this._resizeObserver.observe(t))},e.prototype.componentWillUnmount=function(){var t;null===(t=this._resizeObserver)||void 0===t||t.disconnect(),this._async.dispose()},e}(i.Component),ki=(0,o.y)(),Li=function(t){function e(n){var e=t.call(this,n)||this;return e._isRTL=(0,u.zg)(),e._handleChartMouseLeave=function(){e._calloutAnchorPoint=null,e.state.isCalloutVisible&&e.setState({isCalloutVisible:!1,hoverValue:"",refSelected:null,lineColor:"",legend:""})},e._adjustProps=function(){e._barHeight=e.props.barHeight||12,e._classNames=ki(e.props.styles,{theme:e.props.theme,width:e.props.width,className:e.props.className,barHeight:e._barHeight,color:e.state.lineColor,variant:e.props.variant,hideLabels:e.props.hideLabels})},e._getChartDataText=function(t){return e.props.barChartCustomData?i.createElement("div",{role:"text"},e.props.barChartCustomData(t)):e._getDefaultTextData(t)},e._closeCallout=function(){e.setState({isCalloutVisible:!1})},e._getAriaLabel=function(t){var n,i=t.xAxisCalloutData||t.legend,e=t.yAxisCalloutData||(t.horizontalBarChartdata?"".concat(t.horizontalBarChartdata.x,"/").concat(t.horizontalBarChartdata.y):0);return(null===(n=t.callOutAccessibilityData)||void 0===n?void 0:n.ariaLabel)||(i?"".concat(i,", "):"")+"".concat(e,".")},e.state={isCalloutVisible:!1,hoverValue:"",lineColor:"",legend:"",refSelected:null,color:"",xCalloutValue:"",yCalloutValue:"",barSpacingInPercent:0},e._refArray=[],e._uniqLineText="_HorizontalLine_"+Math.random().toString(36).substring(7),e._hoverOff=e._hoverOff.bind(e),e._calloutId=v("callout"),e._emptyChartId=v("_HBC_empty"),e.barChartSvgRef=i.createRef(),e}return(0,n.ZT)(e,t),e.prototype.componentDidMount=function(){var t,n=(null===(t=this.barChartSvgRef.current)||void 0===t?void 0:t.getBoundingClientRect().width)||0;if(n){var i=3/n*100;this.setState({barSpacingInPercent:i})}},e.prototype.render=function(){var t=this,e=this.props,r=e.data,o=e.theme;this._adjustProps();var u=o.palette,a=0;return this._isChartEmpty()?i.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):i.createElement("div",{className:this._classNames.root,onMouseLeave:this._handleChartMouseLeave},r.map((function(n,e){a=n.chartData&&n.chartData[0]&&n.chartData[0].horizontalBarChartdata.x?n.chartData[0].horizontalBarChartdata.x:0,n.chartData[1]={legend:"",horizontalBarChartdata:{x:n.chartData[0].horizontalBarChartdata.y-a,y:n.chartData[0].horizontalBarChartdata.y},color:u.neutralLight};var r=t.props.variant===h.AbsoluteScale?null:t._getChartDataText(n),o=t._createBars(n,u),s=t._uniqLineText+"_"+e,l=ki(t.props.styles,{theme:t.props.theme,width:t.props.width,showTriangle:!!n.chartData[0].data,variant:t.props.variant});return i.createElement("div",{key:e},i.createElement("div",{className:l.items},i.createElement(fi,{direction:Rn.horizontal},i.createElement("div",{className:t._classNames.chartTitle},n.chartTitle&&i.createElement(Mi,{className:t._classNames.chartTitleLeft,content:n.chartTitle,accessibilityData:n.chartTitleAccessibilityData}),r)),n.chartData[0].data&&t._createBenchmark(n),i.createElement(fi,{direction:Rn.horizontal,className:t._classNames.chartWrapper},i.createElement("svg",{ref:t.barChartSvgRef,className:t._classNames.chart,"aria-label":n.chartTitle},i.createElement("g",{id:s,key:s,ref:function(i){t._refCallback(i,n.chartData[0].legend)},onClick:function(){var t=n.chartData[0];t&&t.onClick&&t.onClick()}},o)))))})),i.createElement(Wn,(0,n.pi)({target:this.state.refSelected,coverTarget:!0,isBeakVisible:!1,gapSpace:30,hidden:!(!this.props.hideTooltip&&this.state.isCalloutVisible),directionalHint:y.topAutoEdge,id:this._calloutId,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0},this.props.calloutProps,(0,zn.ey)(this.state.callOutAccessibilityData)),i.createElement(i.Fragment,null,this.props.onRenderCalloutPerHorizontalBar?this.props.onRenderCalloutPerHorizontalBar(this.state.barCalloutProps):i.createElement(jn.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}))))},e.prototype._refCallback=function(t,n){this._refArray.push({index:n,refElement:t})},e.prototype._hoverOn=function(t,n){if((!this.state.isCalloutVisible||this.state.legend!==n.legend)&&this._calloutAnchorPoint!==n){var i=m(this._refArray,(function(t){return t.index===n.legend}));this._calloutAnchorPoint=n,this.setState({isCalloutVisible:!0,hoverValue:t,lineColor:n.color,legend:n.legend,refSelected:i.refElement,xCalloutValue:n.xAxisCalloutData,yCalloutValue:n.yAxisCalloutData,barCalloutProps:n,callOutAccessibilityData:n.callOutAccessibilityData})}},e.prototype._hoverOff=function(){},e.prototype._getDefaultTextData=function(t){var e=this.props.culture,r=this.props.chartDataMode||"default",o=t.chartData[0],u=o.horizontalBarChartdata.x,a=o.horizontalBarChartdata.y,s=(0,zn.ey)(t.chartDataAccessibilityData,"text",!1);switch(r){case"default":return i.createElement("div",(0,n.pi)({className:this._classNames.chartTitleRight},s),(0,zn.Ts)(u,e));case"fraction":return i.createElement("div",(0,n.pi)({},s),i.createElement("span",{className:this._classNames.chartTitleRight},(0,zn.Ts)(u,e)),i.createElement("span",{className:this._classNames.chartDataTextDenominator}," / "+(0,zn.Ts)(a,e)));case"percentage":var l="".concat((0,zn.Ts)(Math.round(u/a*100),e),"%");return i.createElement("div",(0,n.pi)({className:this._classNames.chartTitleRight},s),l)}},e.prototype._createBenchmark=function(t){var n=t.chartData[0].horizontalBarChartdata.y,e=t.chartData[0].data,r={left:"calc("+Math.round((e||0)/n*100)+"% - 4px)"};return i.createElement("div",{className:this._classNames.benchmarkContainer},i.createElement("div",{className:this._classNames.triangle,style:r}))},e.prototype._createBars=function(t,n){var e,r=this,o=(null===(e=t.chartData)||void 0===e?void 0:e.reduce((function(t,n){return t+((n.data||0)>0?1:0)}),0))||1,u=this.state.barSpacingInPercent*(o-1),a=[n.blueLight,n.blue,n.blueMid,n.red,n.black],s=[],l=t.chartData.reduce((function(t,n){return t+(n.horizontalBarChartdata.x?n.horizontalBarChartdata.x:0)}),0),c=0,f=0,d=0;t.chartData.map((function(t,n){var i=t.horizontalBarChartdata.x?t.horizontalBarChartdata.x:0;return(f=i/l*100)<0?f=0:f<1&&0!==f&&(f=1),d+=f}));var v=0!==d?(d-u)/100:1,p=t.chartData.map((function(n,e){var o=n.color?n.color:a[Math.floor(4*Math.random()+1)],u=n.horizontalBarChartdata.x?n.horizontalBarChartdata.x:0;e>0&&(c+=f),(f=u/l*100)<0?f=0:f<1&&0!==f?f=1/v:f/=v,s.push(c);var d=n.horizontalBarChartdata.x;if(1===e&&r.props.variant===h.AbsoluteScale){if(r.props.hideLabels)return i.createElement("text",{key:e});var p=t.chartData[0].horizontalBarChartdata.x;return i.createElement("text",{key:e,x:"".concat(r._isRTL?100-s[e]:s[e],"%"),y:r._barHeight/2,dominantBaseline:"central",transform:"translate(".concat(r._isRTL?-4:4,")"),className:r._classNames.barLabel,"aria-hidden":!0},(0,zn.cE)(p))}return i.createElement("rect",{key:e,x:"".concat(r._isRTL?100-s[e]-f-e*r.state.barSpacingInPercent:s[e]+e*r.state.barSpacingInPercent,"%"),y:0,"data-is-focusable":""!==n.legend,width:f+"%",height:r._barHeight,fill:o,onMouseOver:""!==n.legend?r._hoverOn.bind(r,d,n):void 0,onFocus:""!==n.legend?r._hoverOn.bind(r,d,n):void 0,role:"img","aria-label":r._getAriaLabel(n),onBlur:r._hoverOff,onMouseLeave:r._hoverOff,className:r._classNames.barWrapper})}));return p},e.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.length>0)},e}(i.Component),Vi=(0,t.z)(Li,(function(t){var i=t.className,e=t.theme,r=t.width,o=t.barHeight,u=t.showTriangle,a=t.variant,s=t.hideLabels,l=e.palette;return{root:[{display:"flex",flexDirection:"column",width:r||"100%"},i],items:{marginBottom:u||a===h.AbsoluteScale?"16px":"10px"},chart:{width:"100%",height:o||12,display:"block",overflow:"visible"},barWrapper:{},chartTitle:(0,n.pi)((0,n.pi)({},e.fonts.small),{display:"flex",justifyContent:"space-between"}),chartTitleLeft:{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",display:"block",color:e.palette.neutralPrimary,marginBottom:a===h.AbsoluteScale?"4px":"5px"},chartTitleRight:{fontSize:jt.TS.medium,fontWeight:jt.lq.semibold,color:e.palette.neutralPrimary},chartDataTextDenominator:{fontSize:jt.TS.medium,color:e.palette.neutralPrimary},benchmarkContainer:{position:"relative",height:"7px",marginTop:"-3px",marginBottom:"-1px"},triangle:{width:"0",height:"0",borderLeft:"4px solid transparent",borderRight:"4px solid transparent",borderTop:"7px solid",borderTopColor:l.blue,marginBottom:"4px",position:"absolute"},barLabel:(0,n.pi)((0,n.pi)({},e.fonts.small),{fontWeight:jt.lq.semibold,fill:e.palette.neutralPrimary}),chartWrapper:{paddingRight:a!==h.AbsoluteScale||s?0:40}}})),Si={host:"ms-HoverCard-host"},Ni=function(){function t(n){this._id=t._uniqueId++,this._parent=n,this._eventRecords=[]}return t.raise=function(n,i,e,r,o){var u,a=null!=o?o:(0,C.M)();if(t._isElement(n)){if(void 0!==a&&a.createEvent){var s=a.createEvent("HTMLEvents");s.initEvent(i,r||!1,!0),U(s,e),u=n.dispatchEvent(s)}else if(void 0!==a&&a.createEventObject){var l=a.createEventObject(e);n.fireEvent("on"+i,l)}}else for(;n&&!1!==u;){var c=n.__events__,f=c?c[i]:null;if(f)for(var h in f)if(f.hasOwnProperty(h))for(var d=f[h],v=0;!1!==u&&v<d.length;v++){var p=d[v];p.objectCallback&&(u=p.objectCallback.call(p.parent,e))}n=r?n.parent:null}return u},t.isObserved=function(t,n){var i=t&&t.__events__;return!!i&&!!i[n]},t.isDeclared=function(t,n){var i=t&&t.__declaredEvents;return!!i&&!!i[n]},t.stopPropagation=function(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0},t._isElement=function(t){return!!t&&(!!t.addEventListener||"undefined"!=typeof HTMLElement&&t instanceof HTMLElement)},t.prototype.dispose=function(){this._isDisposed||(this._isDisposed=!0,this.off(),this._parent=null)},t.prototype.onAll=function(t,n,i){for(var e in n)n.hasOwnProperty(e)&&this.on(t,e,n[e],i)},t.prototype.on=function(n,i,e,r){var o=this;if(i.indexOf(",")>-1)for(var u=i.split(/[ ,]+/),a=0;a<u.length;a++)this.on(n,u[a],e,r);else{var s=this._parent,l={target:n,eventName:i,parent:s,callback:e,options:r};if((u=n.__events__=n.__events__||{})[i]=u[i]||{count:0},u[i][this._id]=u[i][this._id]||[],u[i][this._id].push(l),u[i].count++,t._isElement(n)){var c=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(!o._isDisposed){var i;try{if(!1===(i=e.apply(s,t))&&t[0]){var r=t[0];r.preventDefault&&r.preventDefault(),r.stopPropagation&&r.stopPropagation(),r.cancelBubble=!0}}catch(r){}return i}};l.elementCallback=c,n.addEventListener?n.addEventListener(i,c,r):n.attachEvent&&n.attachEvent("on"+i,c)}else l.objectCallback=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(!o._isDisposed)return e.apply(s,t)};this._eventRecords.push(l)}},t.prototype.off=function(t,n,i,e){for(var r=0;r<this._eventRecords.length;r++){var o=this._eventRecords[r];if(!(t&&t!==o.target||n&&n!==o.eventName||i&&i!==o.callback||"boolean"==typeof e&&e!==o.options)){var u=o.target.__events__,a=u[o.eventName],s=a?a[this._id]:null;s&&(1!==s.length&&i?(a.count--,s.splice(s.indexOf(o),1)):(a.count-=s.length,delete u[o.eventName][this._id]),a.count||delete u[o.eventName]),o.elementCallback&&(o.target.removeEventListener?o.target.removeEventListener(o.eventName,o.elementCallback,o.options):o.target.detachEvent&&o.target.detachEvent("on"+o.eventName,o.elementCallback)),this._eventRecords.splice(r--,1)}}},t.prototype.raise=function(n,i,e){return t.raise(this._parent,n,i,e)},t.prototype.declare=function(t){var n=this._parent.__declaredEvents=this._parent.__declaredEvents||{};if("string"==typeof t)n[t]=!0;else for(var i=0;i<t.length;i++)n[t[i]]=!0},t._uniqueId=0,t}();!function(t){t[t.hover=0]="hover",t[t.hotKey=1]="hotKey"}(mi||(mi={})),function(t){t.plain="PlainCard",t.expanding="ExpandingCard"}(yi||(yi={}));var Ai,Di={root:"ms-ExpandingCard-root",compactCard:"ms-ExpandingCard-compactCard",expandedCard:"ms-ExpandingCard-expandedCard",expandedCardScroll:"ms-ExpandingCard-expandedCardScrollRegion"};function Ti(t){var n=(0,i.useRef)();return(0,i.useEffect)((function(){n.current=t})),n.current}function Oi(t,n){var e=i.useRef(n);return e.current||(e.current=v(t)),e.current}function Pi(t){var n=i.useRef((function(){throw new Error("Cannot call an event handler while rendering")}));return En((function(){n.current=t}),[t]),Xt((function(){return function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];return n.current.apply(void 0,t)}}))}!function(t){t[t.compact=0]="compact",t[t.expanded=1]="expanded"}(Ai||(Ai={}));var Ei={disabled:!1,disableFirstFocus:!1,forceFocusInsideTrap:!0,isClickableOutsideFocusTrap:!1,"data-tabster":'{"uncontrolled": {"completely": true}}'},Fi=i.forwardRef((function(t,e){var r,o,u,a=i.useRef(null),s=i.useRef(null),l=i.useRef(null),c=Ht(a,e),f=Wt(),h=qt(),d=null===(r=Ti(!1))||void 0===r||r,v=_(Ei,t),p=Xt({hasFocus:!1,focusStackId:Oi("ftz-",v.id)}),g=v.children,m=v.componentRef,y=v.disabled,b=v.disableFirstFocus,x=v.forceFocusInsideTrap,C=v.focusPreviouslyFocusedInnerElement,M=v.firstFocusableSelector,k=v.firstFocusableTarget,L=v.disableRestoreFocus,V=void 0===L?v.ignoreExternalFocusing:L,S=v.isClickableOutsideFocusTrap,D=v.enableAriaHiddenSiblings,T={"aria-hidden":!0,style:{pointerEvents:"none",position:"fixed"},tabIndex:y?-1:0,"data-is-visible":!0,"data-is-focus-trap-zone-bumper":!0},O=i.useCallback((function(t){t!==s.current&&t!==l.current&&B(t)}),[]),P=Pi((function(){if(a.current){var t=p.previouslyFocusedElementInTrapZone;if(C&&t&&w(a.current,t))O(t);else{var n=null;if("string"==typeof k)n=a.current.querySelector(k);else if(k)n=k(a.current);else if(M){var i="string"==typeof M?M:M();n=a.current.querySelector("."+i)}n||(n=A(a.current,a.current.firstChild,!1,!1,!1,!0)),n&&O(n)}}})),E=function(t){if(!y&&a.current){var n,i=t===p.hasFocus?(void 0===(n=!1)&&(n=!0),N(a.current,l.current,n,!1,!0,!0,!1,!0)):function(t,n,i,e){return void 0===e&&(e=!0),A(t,n,e,!1,!1,!0,!1,!0)}(a.current,s.current,0,!1);i&&(i===s.current||i===l.current?P():i.focus())}},F=Pi((function(t){if(Fi.focusStack=Fi.focusStack.filter((function(t){return p.focusStackId!==t})),f){var n=f.activeElement;V||"function"!=typeof(null==t?void 0:t.focus)||!w(a.current,n)&&n!==f.body||O(t)}})),I=Pi((function(t){if(!y&&p.focusStackId===Fi.focusStack.slice(-1)[0]){var n=t.target;n&&!w(a.current,n)&&(f&&f.activeElement===f.body?setTimeout((function(){f&&f.activeElement===f.body&&(P(),p.hasFocus=!0)}),0):(P(),p.hasFocus=!0),t.preventDefault(),t.stopPropagation())}}));return i.useEffect((function(){var t=[];return x&&t.push(H(h,"focus",I,!0)),S||t.push(H(h,"click",I,!0)),function(){t.forEach((function(t){return t()}))}}),[x,S,h]),i.useEffect((function(){if(!y&&(d||x)&&a.current){Fi.focusStack.push(p.focusStackId);var t=v.elementToFocusOnDismiss||f.activeElement;return b||w(a.current,t)||P(),function(){return F(t)}}}),[x,y]),i.useEffect((function(){if(!y&&D)return Ot(a.current)}),[y,D,a]),o=function(){delete p.previouslyFocusedElementInTrapZone},(u=i.useRef(o)).current=o,i.useEffect((function(){return function(){var t;null===(t=u.current)||void 0===t||t.call(u)}}),[]),function(t,n,e){i.useImperativeHandle(t,(function(){return{get previouslyFocusedElement(){return n},focus:e}}),[e,n])}(m,p.previouslyFocusedElementInTrapZone,P),i.createElement("div",(0,n.pi)({"aria-labelledby":v.ariaLabelledBy},q(v,Y),{ref:c,onFocusCapture:function(t){var n;null===(n=v.onFocusCapture)||void 0===n||n.call(v,t),t.target===s.current?E(!0):t.target===l.current&&E(!1),p.hasFocus=!0,t.target!==t.currentTarget&&t.target!==s.current&&t.target!==l.current&&(p.previouslyFocusedElementInTrapZone=t.target)},onBlurCapture:function(t){var n;null===(n=v.onBlurCapture)||void 0===n||n.call(v,t);var i=t.relatedTarget;null===t.relatedTarget&&(i=f.activeElement),w(a.current,i)||(p.hasFocus=!1)}}),i.createElement("div",(0,n.pi)({},T,{ref:s})),g,i.createElement("div",(0,n.pi)({},T,{ref:l})))}));Fi.displayName="FocusTrapZone",Fi.focusStack=[];var Bi,Hi=function(t){return i.createElement(Wn,(0,n.pi)({},t),i.createElement(Fi,(0,n.pi)({disabled:t.hidden},t.focusTrapProps),t.children))},_i=function(t){var e=t.gapSpace,r=void 0===e?0:e,o=t.directionalHint,u=void 0===o?y.bottomLeftEdge:o,a=t.directionalHintFixed,s=t.targetElement,l=t.firstFocus,c=t.trapFocus,f=t.onLeave,h=t.className,d=t.finalHeight,v=t.content,p=t.calloutProps,g=(0,n.pi)((0,n.pi)((0,n.pi)({},q(t,Y)),{className:h,target:s,isBeakVisible:!1,directionalHint:u,directionalHintFixed:a,finalHeight:d,minPagePadding:24,onDismiss:f,gapSpace:r}),p);return i.createElement(i.Fragment,null,c?i.createElement(Hi,(0,n.pi)({},g,{focusTrapProps:{forceFocusInsideTrap:!1,isClickableOutsideFocusTrap:!0,disableFirstFocus:!l}}),v):i.createElement(Wn,(0,n.pi)({},g),v))},Ii=(0,o.y)(),Wi=function(t){function e(n){var e=t.call(this,n)||this;return e._expandedElem=i.createRef(),e._onKeyDown=function(t){t.which===Pt&&e.props.onLeave&&e.props.onLeave(t)},e._onRenderCompactCard=function(){return i.createElement("div",{className:e._classNames.compactCard},e.props.onRenderCompactCard(e.props.renderData))},e._onRenderExpandedCard=function(){return!e.state.firstFrameRendered&&e._async.requestAnimationFrame((function(){e.setState({firstFrameRendered:!0})})),i.createElement("div",{className:e._classNames.expandedCard,ref:e._expandedElem},i.createElement("div",{className:e._classNames.expandedCardScroll},e.props.onRenderExpandedCard&&e.props.onRenderExpandedCard(e.props.renderData)))},e._checkNeedsScroll=function(){var t=e.props.expandedCardHeight;e._async.requestAnimationFrame((function(){e._expandedElem.current&&e._expandedElem.current.scrollHeight>=t&&e.setState({needsScroll:!0})}))},e._async=new Et(e),Yn(e),e.state={firstFrameRendered:!1,needsScroll:!1},e}return(0,n.ZT)(e,t),e.prototype.componentDidMount=function(){this._checkNeedsScroll()},e.prototype.componentWillUnmount=function(){this._async.dispose()},e.prototype.render=function(){var t=this.props,e=t.styles,r=t.compactCardHeight,o=t.expandedCardHeight,u=t.theme,a=t.mode,s=t.className,l=this.state,c=l.needsScroll,f=l.firstFrameRendered,h=r+o;this._classNames=Ii(e,{theme:u,compactCardHeight:r,className:s,expandedCardHeight:o,needsScroll:c,expandedCardFirstFrameRendered:a===Ai.expanded&&f});var d=i.createElement("div",{onMouseEnter:this.props.onEnter,onMouseLeave:this.props.onLeave,onKeyDown:this._onKeyDown},this._onRenderCompactCard(),this._onRenderExpandedCard());return i.createElement(_i,(0,n.pi)({},this.props,{content:d,finalHeight:h,className:this._classNames.root}))},e.defaultProps={compactCardHeight:156,expandedCardHeight:384,directionalHintFixed:!0},e}(i.Component),Ri=(0,t.z)(Wi,(function(t){var n,i=t.theme,e=t.needsScroll,r=t.expandedCardFirstFrameRendered,o=t.compactCardHeight,u=t.expandedCardHeight,a=t.className,s=i.palette,l=(0,jt.Cn)(Di,i);return{root:[l.root,{width:320,pointerEvents:"none",selectors:(n={},n[jt.qJ]={border:"1px solid WindowText"},n)},a],compactCard:[l.compactCard,{pointerEvents:"auto",position:"relative",height:o}],expandedCard:[l.expandedCard,{height:1,overflowY:"hidden",pointerEvents:"auto",transition:"height 0.467s cubic-bezier(0.5, 0, 0, 1)",selectors:{":before":{content:'""',position:"relative",display:"block",top:0,left:24,width:272,height:1,backgroundColor:s.neutralLighter}}},r&&{height:u}],expandedCardScroll:[l.expandedCardScroll,e&&{height:"100%",boxSizing:"border-box",overflowY:"auto"}]}}),void 0,{scope:"ExpandingCard"}),zi={root:"ms-PlainCard-root"},ji=(0,o.y)(),Xi=function(t){function e(n){var i=t.call(this,n)||this;return i._onKeyDown=function(t){t.which===Pt&&i.props.onLeave&&i.props.onLeave(t)},Yn(i),i}return(0,n.ZT)(e,t),e.prototype.render=function(){var t=this.props,e=t.styles,r=t.theme,o=t.className;this._classNames=ji(e,{theme:r,className:o});var u=i.createElement("div",{onMouseEnter:this.props.onEnter,onMouseLeave:this.props.onLeave,onKeyDown:this._onKeyDown},this.props.onRenderPlainCard(this.props.renderData));return i.createElement(_i,(0,n.pi)({},this.props,{content:u,className:this._classNames.root}))},e}(i.Component),Yi=(0,t.z)(Xi,(function(t){var n,i=t.theme,e=t.className;return{root:[(0,jt.Cn)(zi,i).root,{pointerEvents:"auto",selectors:(n={},n[jt.qJ]={border:"1px solid WindowText"},n)},e]}}),void 0,{scope:"PlainCard"}),qi=(0,o.y)(),$i=function(t){function e(n){var e=t.call(this,n)||this;return e._hoverCard=i.createRef(),e.dismiss=function(t){e._async.clearTimeout(e._openTimerId),e._async.clearTimeout(e._dismissTimerId),t?e._dismissTimerId=e._async.setTimeout((function(){e._setDismissedState()}),e.props.cardDismissDelay):e._setDismissedState()},e._cardOpen=function(t){e._shouldBlockHoverCard()||"keydown"===t.type&&t.which!==e.props.openHotKey||(e._async.clearTimeout(e._dismissTimerId),"mouseenter"===t.type&&(e._currentMouseTarget=t.currentTarget),e._executeCardOpen(t))},e._executeCardOpen=function(t){e._async.clearTimeout(e._openTimerId),e._openTimerId=e._async.setTimeout((function(){e.setState((function(n){return n.isHoverCardVisible?n:{isHoverCardVisible:!0,mode:Ai.compact,openMode:"keydown"===t.type?mi.hotKey:mi.hover}}))}),e.props.cardOpenDelay)},e._cardDismiss=function(t,n){if(t){if(!(n instanceof MouseEvent))return;if("keydown"===n.type&&n.which!==Pt)return;e.props.sticky||e._currentMouseTarget!==n.currentTarget&&n.which!==Pt||e.dismiss(!0)}else{if(e.props.sticky&&!(n instanceof MouseEvent)&&n.nativeEvent instanceof MouseEvent&&"mouseleave"===n.type)return;e.dismiss(!0)}},e._setDismissedState=function(){e.setState({isHoverCardVisible:!1,mode:Ai.compact,openMode:mi.hover})},e._instantOpenAsExpanded=function(t){e._async.clearTimeout(e._dismissTimerId),e.setState((function(t){return t.isHoverCardVisible?t:{isHoverCardVisible:!0,mode:Ai.expanded}}))},e._setEventListeners=function(){var t=e.props,n=t.trapFocus,i=t.instantOpenOnClick,r=t.eventListenerTarget,o=r?e._getTargetElement(r):e._getTargetElement(e.props.target),u=e._nativeDismissEvent;o&&(e._events.on(o,"mouseenter",e._cardOpen),e._events.on(o,"mouseleave",u),n?e._events.on(o,"keydown",e._cardOpen):(e._events.on(o,"focus",e._cardOpen),e._events.on(o,"blur",u)),i?e._events.on(o,"click",e._instantOpenAsExpanded):(e._events.on(o,"mousedown",u),e._events.on(o,"keydown",u)))},Yn(e),e._async=new Et(e),e._events=new Ni(e),e._nativeDismissEvent=e._cardDismiss.bind(e,!0),e._childDismissEvent=e._cardDismiss.bind(e,!1),e.state={isHoverCardVisible:!1,mode:Ai.compact,openMode:mi.hover},e}return(0,n.ZT)(e,t),e.prototype.componentDidMount=function(){this._setEventListeners()},e.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},e.prototype.componentDidUpdate=function(t,n){var i=this;t.target!==this.props.target&&(this._events.off(),this._setEventListeners()),n.isHoverCardVisible!==this.state.isHoverCardVisible&&(this.state.isHoverCardVisible?(this._async.setTimeout((function(){i.setState({mode:Ai.expanded},(function(){i.props.onCardExpand&&i.props.onCardExpand()}))}),this.props.expandedCardOpenDelay),this.props.onCardVisible&&this.props.onCardVisible()):(this.setState({mode:Ai.compact}),this.props.onCardHide&&this.props.onCardHide()))},e.prototype.render=function(){var t=this.props,e=t.expandingCardProps,r=t.children,o=t.id,u=t.setAriaDescribedBy,a=void 0===u||u,s=t.styles,l=t.theme,c=t.className,f=t.type,h=t.plainCardProps,d=t.trapFocus,p=t.setInitialFocus,g=this.state,m=g.isHoverCardVisible,y=g.mode,b=g.openMode,x=o||v("hoverCard");this._classNames=qi(s,{theme:l,className:c});var w=(0,n.pi)((0,n.pi)({},q(this.props,Y)),{id:x,trapFocus:!!d,firstFocus:p||b===mi.hotKey,targetElement:this._getTargetElement(this.props.target),onEnter:this._cardOpen,onLeave:this._childDismissEvent}),C=(0,n.pi)((0,n.pi)((0,n.pi)({},e),w),{mode:y}),M=(0,n.pi)((0,n.pi)({},h),w);return i.createElement("div",{className:this._classNames.host,ref:this._hoverCard,"aria-describedby":a&&m?x:void 0,"data-is-focusable":!this.props.target},r,m&&(f===yi.expanding?i.createElement(Ri,(0,n.pi)({},C)):i.createElement(Yi,(0,n.pi)({},M))))},e.prototype._getTargetElement=function(t){switch(typeof t){case"string":return(0,C.M)().querySelector(t);case"object":return t;default:return this._hoverCard.current||void 0}},e.prototype._shouldBlockHoverCard=function(){return!(!this.props.shouldBlockHoverCard||!this.props.shouldBlockHoverCard())},e.defaultProps={cardOpenDelay:500,cardDismissDelay:100,expandedCardOpenDelay:1500,instantOpenOnClick:!1,setInitialFocus:!1,openHotKey:67,type:yi.expanding},e}(i.Component),Ui=(0,t.z)($i,(function(t){var n=t.className,i=t.theme;return{host:[(0,jt.Cn)(Si,i).host,n]}}),void 0,{scope:"HoverCard"});!function(t){t[t.horizontal=0]="horizontal",t[t.vertical=1]="vertical"}(Bi||(Bi={}));var Zi=function(t){var i;void 0===t&&(i={},t={getCachedMeasurement:function(t){if(t&&t.cacheKey&&i.hasOwnProperty(t.cacheKey))return i[t.cacheKey]},addMeasurementToCache:function(t,n){t.cacheKey&&(i[t.cacheKey]=n)}});var e,r=t;function o(t,n){var i=r.getCachedMeasurement(t);if(void 0!==i)return i;var e=n();return r.addMeasurementToCache(t,e),e}function u(t,n,i){for(var u=t,a=o(t,i);a>e;){var s=n(u);if(void 0===s)return{renderedData:u,resizeDirection:void 0,dataToMeasure:void 0};if(void 0===(a=r.getCachedMeasurement(s)))return{dataToMeasure:s,resizeDirection:"shrink"};u=s}return{renderedData:u,resizeDirection:void 0,dataToMeasure:void 0}}return{getNextState:function(t,i,a,s){if(void 0!==s||void 0!==i.dataToMeasure){if(s){if(e&&i.renderedData&&!i.dataToMeasure)return(0,n.pi)((0,n.pi)({},i),function(t,i,r,o){var u;return u=t>e?o?{resizeDirection:"grow",dataToMeasure:o(r)}:{resizeDirection:"shrink",dataToMeasure:i}:{resizeDirection:"shrink",dataToMeasure:r},e=t,(0,n.pi)((0,n.pi)({},u),{measureContainer:!1})}(s,t.data,i.renderedData,t.onGrowData));e=s}var l=(0,n.pi)((0,n.pi)({},i),{measureContainer:!1});return i.dataToMeasure&&(l="grow"===i.resizeDirection&&t.onGrowData?(0,n.pi)((0,n.pi)({},l),function(t,i,a,s){for(var l=t,c=o(t,a);c<e;){var f=i(l);if(void 0===f)return{renderedData:l,resizeDirection:void 0,dataToMeasure:void 0};if(void 0===(c=r.getCachedMeasurement(f)))return{dataToMeasure:f};l=f}return(0,n.pi)({resizeDirection:"shrink"},u(l,s,a))}(i.dataToMeasure,t.onGrowData,a,t.onReduceData)):(0,n.pi)((0,n.pi)({},l),u(i.dataToMeasure,t.onReduceData,a))),l}},shouldRenderDataForMeasurement:function(t){return!(!t||void 0!==r.getCachedMeasurement(t))},getInitialResizeGroupState:function(t){return{dataToMeasure:(0,n.pi)({},t),resizeDirection:"grow",measureContainer:!0}}}},Gi=i.createContext({isMeasured:!1}),Ki={position:"fixed",visibility:"hidden"},Ji={position:"relative"};function Qi(t,i){var e;switch(i.type){case"resizeData":return(0,n.pi)({},i.value);case"dataToMeasure":return(0,n.pi)((0,n.pi)({},t),{dataToMeasure:i.value,resizeDirection:"grow",measureContainer:!0});default:return(0,n.pi)((0,n.pi)({},t),((e={})[i.type]=i.value,e))}}var te={isMeasured:!0},ne=i.forwardRef((function(t,e){var r=i.useRef(null),o=Ht(r,e),u=function(t,e){var r=Xt(Zi),o=i.useRef(null),u=i.useRef(null),a=i.useRef(!1),s=Ft(),l=function(t,e,r){var o=Xt((function(){return e.getInitialResizeGroupState(t.data)})),u=i.useReducer(Qi,o),a=u[0],s=u[1];i.useEffect((function(){s({type:"dataToMeasure",value:t.data})}),[t.data]);var l=i.useRef(o);return l.current=(0,n.pi)({},a),[l,i.useCallback((function(t){t&&s({type:"resizeData",value:t})}),[]),i.useCallback((function(){r.current&&s({type:"measureContainer",value:!0})}),[r])]}(t,r,e),c=l[0],f=l[1],h=l[2];i.useEffect((function(){var n;c.current.renderedData&&(a.current=!0,null===(n=t.dataDidRender)||void 0===n||n.call(t,c.current.renderedData))})),i.useEffect((function(){s.requestAnimationFrame((function(){var n=void 0;if(c.current.measureContainer&&e.current){var i=e.current.getBoundingClientRect();n=t.direction===Bi.vertical?i.height:i.width}var s=r.getNextState(t,c.current,(function(){var n=a.current?u:o;if(!n.current)return 0;var i=n.current.getBoundingClientRect();return t.direction===Bi.vertical?i.height:i.width}),n);f(s)}),e.current)})),Bt(It(),"resize",s.debounce(h,16,{leading:!0}));var d=r.shouldRenderDataForMeasurement(c.current.dataToMeasure),v=!a.current&&d;return[c.current.dataToMeasure,c.current.renderedData,h,o,u,d,v]}(t,r),a=u[0],s=u[1],l=u[2],c=u[3],f=u[4],h=u[5],d=u[6];i.useImperativeHandle(t.componentRef,(function(){return{remeasure:l}}),[l]);var v=t.className,p=t.onRenderData,g=q(t,Y,["data"]);return i.createElement("div",(0,n.pi)({},g,{className:v,ref:o}),i.createElement("div",{style:Ji},h&&!d&&i.createElement("div",{style:Ki,ref:f},i.createElement(Gi.Provider,{value:te},p(a))),i.createElement("div",{ref:c,style:d?Ki:void 0,"data-automation-id":"visibleContent"},d?p(a):s&&p(s))))}));ne.displayName="ResizeGroupBase";var ie,ee=ne;!function(t){t.KEYTIP_ADDED="keytipAdded",t.KEYTIP_REMOVED="keytipRemoved",t.KEYTIP_UPDATED="keytipUpdated",t.PERSISTED_KEYTIP_ADDED="persistedKeytipAdded",t.PERSISTED_KEYTIP_REMOVED="persistedKeytipRemoved",t.PERSISTED_KEYTIP_EXECUTE="persistedKeytipExecute",t.ENTER_KEYTIP_MODE="enterKeytipMode",t.EXIT_KEYTIP_MODE="exitKeytipMode"}(ie||(ie={}));var re=function(){function t(){this.keytips={},this.persistedKeytips={},this.sequenceMapping={},this.inKeytipMode=!1,this.shouldEnterKeytipMode=!0,this.delayUpdatingKeytipChange=!1}return t.getInstance=function(){return this._instance},t.prototype.init=function(t){this.delayUpdatingKeytipChange=t},t.prototype.register=function(t,n){void 0===n&&(n=!1);var i=t;n||(i=this.addParentOverflow(t),this.sequenceMapping[i.keySequences.toString()]=i);var e=this._getUniqueKtp(i);if(n?this.persistedKeytips[e.uniqueID]=e:this.keytips[e.uniqueID]=e,this.inKeytipMode||!this.delayUpdatingKeytipChange){var r=n?ie.PERSISTED_KEYTIP_ADDED:ie.KEYTIP_ADDED;Ni.raise(this,r,{keytip:i,uniqueID:e.uniqueID})}return e.uniqueID},t.prototype.update=function(t,n){var i=this.addParentOverflow(t),e=this._getUniqueKtp(i,n),r=this.keytips[n];r&&(e.keytip.visible=r.keytip.visible,this.keytips[n]=e,delete this.sequenceMapping[r.keytip.keySequences.toString()],this.sequenceMapping[e.keytip.keySequences.toString()]=e.keytip,!this.inKeytipMode&&this.delayUpdatingKeytipChange||Ni.raise(this,ie.KEYTIP_UPDATED,{keytip:e.keytip,uniqueID:e.uniqueID}))},t.prototype.unregister=function(t,n,i){void 0===i&&(i=!1),i?delete this.persistedKeytips[n]:delete this.keytips[n],!i&&delete this.sequenceMapping[t.keySequences.toString()];var e=i?ie.PERSISTED_KEYTIP_REMOVED:ie.KEYTIP_REMOVED;!this.inKeytipMode&&this.delayUpdatingKeytipChange||Ni.raise(this,e,{keytip:t,uniqueID:n})},t.prototype.enterKeytipMode=function(){Ni.raise(this,ie.ENTER_KEYTIP_MODE)},t.prototype.exitKeytipMode=function(){Ni.raise(this,ie.EXIT_KEYTIP_MODE)},t.prototype.getKeytips=function(){var t=this;return Object.keys(this.keytips).map((function(n){return t.keytips[n].keytip}))},t.prototype.addParentOverflow=function(t){var i=(0,n.ev)([],t.keySequences,!0);if(i.pop(),0!==i.length){var e=this.sequenceMapping[i.toString()];if(e&&e.overflowSetSequence)return(0,n.pi)((0,n.pi)({},t),{overflowSetSequence:e.overflowSetSequence})}return t},t.prototype.menuExecute=function(t,n){Ni.raise(this,ie.PERSISTED_KEYTIP_EXECUTE,{overflowButtonSequences:t,keytipSequences:n})},t.prototype._getUniqueKtp=function(t,i){return void 0===i&&(i=v()),{keytip:(0,n.pi)({},t),uniqueID:i}},t._instance=new t,t}(),oe=function(t,n,i){for(var e=0,r=t;e<r.length;e++){var o=r[e];i[n.register(o,!0)]=o}},ue=function(t,n){for(var i=0,e=Object.keys(n);i<e.length;i++){var r=e[i];t.unregister(n[r],r,!0),delete n[r]}},ae=function(t){var e=re.getInstance(),r=t.className,o=t.overflowItems,u=t.keytipSequences,a=t.itemSubMenuProvider,s=t.onRenderOverflowButton,l=Xt({}),c=i.useCallback((function(t){return a?a(t):t.subMenuProps?t.subMenuProps.items:void 0}),[a]),f=i.useMemo((function(){var t=[],i=[];return u?null==o||o.forEach((function(r){var o,a=r.keytipProps;if(a){var s={content:a.content,keySequences:a.keySequences,disabled:a.disabled||!(!r.disabled&&!r.isDisabled),hasDynamicChildren:a.hasDynamicChildren,hasMenu:a.hasMenu};a.hasDynamicChildren||c(r)?(s.onExecute=e.menuExecute.bind(e,u,null===(o=null==r?void 0:r.keytipProps)||void 0===o?void 0:o.keySequences),s.hasOverflowSubMenu=!0):s.onExecute=a.onExecute,t.push(s);var l=(0,n.pi)((0,n.pi)({},r),{keytipProps:(0,n.pi)((0,n.pi)({},a),{overflowSetSequence:u})});null==i||i.push(l)}else null==i||i.push(r)})):i=o,{modifiedOverflowItems:i,keytipsToRegister:t}}),[o,c,e,u]),h=f.modifiedOverflowItems;return function(t,n,e){var r=Ti(t);i.useEffect((function(){r&&(ue(e,r),oe(n,e,t))})),i.useEffect((function(){return oe(n,e,t),function(){ue(e,t)}}),[])}(l,f.keytipsToRegister,e),i.createElement("div",{className:r},s(h))},se=(0,o.y)(),le=i.forwardRef((function(t,e){var r=i.useRef(null),o=Ht(r,e);!function(t,n){var e=function(){var t;return(null!==(t=Wt())&&void 0!==t?t:"undefined"!=typeof document)?document:void 0}();i.useImperativeHandle(t.componentRef,(function(){return{focus:function(t,i){var e=!1;return n.current&&(e=S(n.current,i)),e},focusElement:function(t){var i=!1;return!!t&&(n.current&&w(n.current,t)&&(t.focus(),i=(null==e?void 0:e.activeElement)===t),i)}}}),[n,e])}(t,r);var u=t.items,a=t.overflowItems,s=t.className,l=t.styles,c=t.vertical,f=t.role,h=t.overflowSide,d=void 0===h?"end":h,v=t.onRenderItem,p=se(l,{className:s,vertical:c}),g=!!a&&a.length>0;return i.createElement("div",(0,n.pi)({},q(t,Y),{role:f||"group","aria-orientation":"menubar"===f?!0===c?"vertical":"horizontal":void 0,className:p.root,ref:o}),"start"===d&&g&&i.createElement(ae,(0,n.pi)({},t,{className:p.overflowButton})),u&&u.map((function(t,n){return i.createElement("div",{className:p.item,key:t.key,role:"none"},v(t))})),"end"===d&&g&&i.createElement(ae,(0,n.pi)({},t,{className:p.overflowButton})))}));le.displayName="OverflowSet";var ce,fe={flexShrink:0,display:"inherit"},he=(0,t.z)(le,(function(t){var n=t.className;return{root:["ms-OverflowSet",{position:"relative",display:"flex",flexWrap:"nowrap"},t.vertical&&{flexDirection:"column"},n],item:["ms-OverflowSet-item",fe],overflowButton:["ms-OverflowSet-overflowButton",fe]}}),void 0,{scope:"OverflowSet"}),de=((ce={})["".concat(zn.wo[zn.wo.circle])]="M1 6 A5 5 0 1 0 12 6 M1 6 A5 5 0 0 1 12 6",ce["".concat(zn.wo[zn.wo.square])]="M1 1 L12 1 L12 12 L1 12 L1 1 Z",ce["".concat(zn.wo[zn.wo.triangle])]="M6 10L8.74228e-07 -1.04907e-06L12 0L6 10Z",ce["".concat(zn.wo[zn.wo.pyramid])]="M6 10L8.74228e-07 -1.04907e-06L12 0L6 10Z",ce["".concat(zn.wo[zn.wo.diamond])]="M2 2 L10 2 L10 10 L2 10 L2 2 Z",ce["".concat(zn.wo[zn.wo.hexagon])]="M9 0H3L0 5L3 10H9L12 5L9 0Z",ce["".concat(zn.wo[zn.wo.pentagon])]="M6.06061 0L0 4.21277L2.30303 11H9.69697L12 4.21277L6.06061 0Z",ce["".concat(zn.wo[zn.wo.octagon])]="M7.08333 0H2.91667L0 2.91667V7.08333L2.91667 10H7.08333L10 7.08333V2.91667L7.08333 0Z",ce["".concat(zn.jc[zn.jc.dottedLine])]="M0 6 H3 M5 6 H8 M10 6 H13",ce),ve=function(t){var e=t.svgProps,r=t.pathProps,o=t.shape,u=t.classNameForNonSvg;return-1===Object.keys(de).indexOf(o)?i.createElement("div",{className:u}):i.createElement("svg",(0,n.pi)({width:14,height:14,viewBox:"-1 -1 14 14"},e,{transform:"rotate(".concat(o===zn.wo[zn.wo.diamond]?45:o===zn.wo[zn.wo.pyramid]?180:0,", 0, 0)")}),i.createElement("path",(0,n.pi)({d:de[o]},r)))},pe=(0,o.y)(),ge=function(t){function e(e){var r,o,u=this;(u=t.call(this,e)||this)._isLegendSelected=!1,u._onRenderData=function(t){var e=u.props,r=e.overflowProps,o=e.allowFocusOnLegends,a=void 0===o||o,s=e.canSelectMultipleLegends,l=void 0!==s&&s,c={root:{justifyContent:u.props.centerLegends?"center":"unset",flexWrap:"wrap"}};return i.createElement(fi,(0,n.pi)({},a&&{role:"listbox","aria-label":"Legends","aria-multiselectable":l}),i.createElement(he,(0,n.pi)({items:t.primary,overflowItems:t.overflow,onRenderItem:u._renderButton,onRenderOverflowButton:u._renderOverflowItems},r,{styles:(0,n.pi)((0,n.pi)({},c),null==r?void 0:r.styles)})))},u._onReduceData=function(t){if(0!==t.primary.length){var i=(0,n.ev)((0,n.ev)([],t.primary.slice(-1),!0),t.overflow,!0);return{primary:t.primary.slice(0,-1),overflow:i}}},u._onGrowData=function(t){if(0!==t.overflow.length){var i=t.overflow.slice(1);return{primary:(0,n.ev)((0,n.ev)([],t.primary,!0),t.overflow.slice(0,1),!0),overflow:i}}},u._canSelectMultipleLegends=function(t){var i=(0,n.pi)({},u.state.selectedLegends);return i[t.title]?delete i[t.title]:(i[t.title]=!0,Object.keys(i).length===u.props.legends.length&&(i={})),u.setState({selectedLegends:i}),i},u._canSelectOnlySingleLegend=function(t){var n;return u.state.selectedLegends[t.title]?(u.setState({selectedLegends:{}}),!1):(u.setState({selectedLegends:(n={},n[t.title]=!0,n)}),!0)},u._onClick=function(t,n){var i,e,r,o=u.props.canSelectMultipleLegends,a=[];if(void 0!==o&&o){var s=u._canSelectMultipleLegends(t);a=Object.keys(s)}else a=u._canSelectOnlySingleLegend(t)?[t.title]:[];null===(e=(i=u.props).onChange)||void 0===e||e.call(i,a,n,t),null===(r=t.action)||void 0===r||r.call(t)},u._onRenderCompactCard=function(t){var e=u.props,r=e.allowFocusOnLegends,o=void 0===r||r,a=e.className,s=e.styles,l=e.theme,c=e.canSelectMultipleLegends,f=void 0!==c&&c,h=[],d=pe(s,{theme:l,className:a});return t.renderData.forEach((function(t,n){var i=u._renderButton(t,n,!0);h.push(i)})),i.createElement(fi,(0,n.pi)({},o&&{role:"listbox","aria-label":"Legends","aria-multiselectable":f},{direction:Rn.vertical},u.props.focusZonePropsInHoverCard,{className:d.hoverCardRoot}),h)},u._renderOverflowItems=function(t){var e=u.props.allowFocusOnLegends,r=void 0===e||e,o=[];t.forEach((function(t,n){o.push({key:n.toString(),name:t.title,onClick:t.action})}));var a={renderData:t},s=u.props,l=s.theme,c=s.className,f=s.styles,h=s.overflowText,d=pe(f,{theme:l,className:c}),v={onRenderPlainCard:u._onRenderCompactCard,renderData:a},p=h||"more";return i.createElement(Ui,{type:yi.plain,plainCardProps:v,instantOpenOnClick:!0,onCardHide:function(){u.setState({isHoverCardVisible:!1});var n=m(t,(function(t){return t.title===u.state.activeLegend}));n&&(u.setState({activeLegend:""}),n.onMouseOutAction&&n.onMouseOutAction())},setInitialFocus:!0,trapFocus:!0,onCardVisible:u._hoverCardVisible,styles:d.subComponentStyles.hoverCardStyles,cardDismissDelay:300,target:u._hoverCardRef},i.createElement("div",(0,n.pi)({className:d.overflowIndicationTextStyle,ref:function(t){return u._hoverCardRef=t}},r&&{role:"button","aria-expanded":u.state.isHoverCardVisible,"aria-label":"".concat(o.length," ").concat(p)},{"data-is-focusable":r}),o.length," ",p))},u._hoverCardVisible=function(){u.setState({isHoverCardVisible:!0})},u._onHoverOverLegend=function(t){t.hoverAction&&(u.setState({activeLegend:t.title}),t.hoverAction())},u._onLeave=function(t){t.onMouseOutAction&&(u.setState({activeLegend:""}),t.onMouseOutAction())},u._renderButton=function(t,e,r){var o=u.props.allowFocusOnLegends,a=void 0===o||o,s={title:t.title,color:t.color,shape:t.shape,action:t.action,hoverAction:t.hoverAction,onMouseOutAction:t.onMouseOutAction,stripePattern:t.stripePattern,isLineLegendInBarChart:t.isLineLegendInBarChart,opacity:t.opacity},l=u._getColor(s.title,s.color),c=u.props,f=c.theme,h=c.className,d=c.styles,v=pe(d,{theme:f,className:h,colorOnSelectedState:l,borderColor:s.color,overflow:r,stripePattern:s.stripePattern,isLineLegendInBarChart:s.isLineLegendInBarChart,opacity:s.opacity}),p=function(){u._onHoverOverLegend(s)},g=function(){u._onLeave(s)},m=u._getShape(v,s,l);return i.createElement("button",(0,n.pi)({},a&&{"aria-selected":!!u.state.selectedLegends[s.title],role:"option","aria-label":"".concat(s.title),"aria-setsize":t["aria-setsize"],"aria-posinset":t["aria-posinset"]},t.nativeButtonProps&&(0,n.pi)({},t.nativeButtonProps),{key:e,className:v.legend,onClick:function(t){u._onClick(s,t)},onMouseOver:p,onMouseOut:g,onFocus:p,onBlur:g,"data-is-focusable":a}),m,i.createElement("div",{className:v.text},s.title))};var a={};return e.canSelectMultipleLegends?a=(null===(o=e.defaultSelectedLegends)||void 0===o?void 0:o.reduce((function(t,i){var e;return(0,n.pi)(((e={})[i]=!0,e),t)}),{}))||{}:e.defaultSelectedLegend&&((r={})[e.defaultSelectedLegend]=!0,a=r),u.state={activeLegend:"",isHoverCardVisible:!1,selectedLegends:a},u}return(0,n.ZT)(e,t),e.prototype.render=function(){var t=this.props,n=t.theme,e=t.className,r=t.styles;this._classNames=pe(r,{theme:n,className:e}),this._isLegendSelected=Object.keys(this.state.selectedLegends).length>0;var o=this._generateData();return i.createElement("div",{className:this._classNames.root},this.props.enabledWrapLines?this._onRenderData(o):i.createElement(ee,{data:o,onReduceData:this._onReduceData,onRenderData:this._onRenderData,onGrowData:this._onGrowData}))},e.prototype._generateData=function(){var t=this,i=this.props.allowFocusOnLegends,e=void 0===i||i;return{primary:this.props.legends.map((function(i,r){return(0,n.pi)((0,n.pi)({},e&&{nativeButtonProps:q(i,X,["title"]),"aria-setsize":t.props.legends.length,"aria-posinset":r+1}),{title:i.title,action:i.action,hoverAction:i.hoverAction,onMouseOutAction:i.onMouseOutAction,color:i.color,shape:i.shape,stripePattern:i.stripePattern,isLineLegendInBarChart:i.isLineLegendInBarChart,opacity:i.opacity,key:r})})),overflow:[]}},e.prototype._getShape=function(t,n,e){var r={className:t.shape},o={fill:e,strokeWidth:2,stroke:n.color};return i.createElement(ve,{svgProps:r,pathProps:o,shape:n.shape,classNameForNonSvg:t.rect})},e.prototype._getColor=function(t,n){var i=this.props.theme;return this._isLegendSelected?this.state.selectedLegends[t]?n:i.semanticColors.buttonBackground:this.state.activeLegend===t||""===this.state.activeLegend?n:i.semanticColors.buttonBackground},e}(i.Component),me=(0,t.z)(ge,(function(t){var i,e,r=t.className,o=t.theme,u=t.isLineLegendInBarChart,a=void 0!==u&&u,s=o,l=s.palette,c=s.fonts,f={inset:void 0,position:void 0,highContrastStyle:{outlineColor:o.semanticColors.focusBorder},borderColor:"transparent",outlineColor:void 0};return{root:[{whiteSpace:"nowrap",width:"100%",alignItems:"center",margin:"-8px 0 0 -8px"},r],legend:[(0,jt.GL)(o,f),{display:"flex",alignItems:"center",cursor:"pointer",border:"none",padding:"8px",background:"none",textTransform:"capitalize"}],rect:{selectors:(i={},i[jt.qJ]={content:"linear-gradient(to right, ".concat(t.colorOnSelectedState,", ").concat(t.colorOnSelectedState,")"),opacity:t.colorOnSelectedState===o.semanticColors.buttonBackground?"0.6":""},i),width:"12px",height:a?"4px":"12px",backgroundColor:t.stripePattern?"":t.colorOnSelectedState,marginRight:"8px",border:"1px solid",borderColor:t.borderColor?t.borderColor:null==o?void 0:o.semanticColors.buttonBorder,content:t.stripePattern?"repeating-linear-gradient(135deg, transparent, transparent 3px, ".concat(t.colorOnSelectedState," 1px, ").concat(t.colorOnSelectedState," 4px)"):""},shape:[{marginRight:"8px"}],triangle:{width:"0",height:"0",borderLeft:"6px solid transparent",borderRight:"6px solid transparent",borderTop:"10.4px solid",borderTopColor:t.colorOnSelectedState,marginRight:"8px",opacity:t.colorOnSelectedState===o.semanticColors.buttonBackground?"0.6":t.opacity?t.opacity:"",selectors:(e={},e[jt.qJ]={border:"0px",height:"10.4px",width:"10.4px",clipPath:"polygon(50% 100%, 0 0, 100% 0)",backgroundImage:"linear-gradient(to right, ".concat(t.colorOnSelectedState,", ").concat(t.colorOnSelectedState,")")},e)},text:(0,n.pi)((0,n.pi)({},c.small),{lineHeight:"16px",color:null==o?void 0:o.semanticColors.bodyText,opacity:t.colorOnSelectedState===o.semanticColors.buttonBackground?"0.67":""}),hoverChange:{width:"12px",height:"12px",backgroundColor:o.semanticColors.buttonBackground,marginRight:"8px",border:"1px solid",borderColor:t.borderColor?t.borderColor:l.black},overflowIndicationTextStyle:[(0,jt.GL)(o,f),(0,n.pi)((0,n.pi)({cursor:"pointer",color:null==o?void 0:o.semanticColors.bodyText},c.small),{lineHeight:"16px",padding:"8px"})],hoverCardRoot:{padding:"8px"},subComponentStyles:{hoverCardStyles:{host:[(0,jt.GL)(o,f)]}}}}));function ye(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function be(t){return function(){return t}}function xe(t,n){return n<t?-1:n>t?1:n>=t?0:NaN}function we(t){return t}Array.prototype.slice;const Ce=Math.abs,Me=Math.atan2,ke=Math.cos,Le=Math.max,Ve=Math.min,Se=Math.sin,Ne=Math.sqrt,Ae=1e-12,De=Math.PI,Te=De/2,Oe=2*De;function Pe(t){return t>=1?Te:t<=-1?-Te:Math.asin(t)}function Ee(){var t=we,n=xe,i=null,e=be(0),r=be(Oe),o=be(0);function u(u){var a,s,l,c,f,h=(u=ye(u)).length,d=0,v=new Array(h),p=new Array(h),g=+e.apply(this,arguments),m=Math.min(Oe,Math.max(-Oe,r.apply(this,arguments)-g)),y=Math.min(Math.abs(m)/h,o.apply(this,arguments)),b=y*(m<0?-1:1);for(a=0;a<h;++a)(f=p[v[a]=a]=+t(u[a],a,u))>0&&(d+=f);for(null!=n?v.sort((function(t,i){return n(p[t],p[i])})):null!=i&&v.sort((function(t,n){return i(u[t],u[n])})),a=0,l=d?(m-h*b)/d:0;a<h;++a,g=c)s=v[a],c=g+((f=p[s])>0?f*l:0)+b,p[s]={data:u[s],index:a,value:f,startAngle:g,endAngle:c,padAngle:y};return p}return u.value=function(n){return arguments.length?(t="function"==typeof n?n:be(+n),u):t},u.sortValues=function(t){return arguments.length?(n=t,i=null,u):n},u.sort=function(t){return arguments.length?(i=t,n=null,u):i},u.startAngle=function(t){return arguments.length?(e="function"==typeof t?t:be(+t),u):e},u.endAngle=function(t){return arguments.length?(r="function"==typeof t?t:be(+t),u):r},u.padAngle=function(t){return arguments.length?(o="function"==typeof t?t:be(+t),u):o},u}const Fe=Math.PI,Be=2*Fe,He=1e-6,_e=Be-He;function Ie(t){this._+=t[0];for(let n=1,i=t.length;n<i;++n)this._+=arguments[n]+t[n]}class We{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==t?Ie:function(t){let n=Math.floor(t);if(!(n>=0))throw new Error(`invalid digits: ${t}`);if(n>15)return Ie;const i=10**n;return function(t){this._+=t[0];for(let n=1,e=t.length;n<e;++n)this._+=Math.round(arguments[n]*i)/i+t[n]}}(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,i,e){this._append`Q${+t},${+n},${this._x1=+i},${this._y1=+e}`}bezierCurveTo(t,n,i,e,r,o){this._append`C${+t},${+n},${+i},${+e},${this._x1=+r},${this._y1=+o}`}arcTo(t,n,i,e,r){if(t=+t,n=+n,i=+i,e=+e,(r=+r)<0)throw new Error(`negative radius: ${r}`);let o=this._x1,u=this._y1,a=i-t,s=e-n,l=o-t,c=u-n,f=l*l+c*c;if(null===this._x1)this._append`M${this._x1=t},${this._y1=n}`;else if(f>He)if(Math.abs(c*a-s*l)>He&&r){let h=i-o,d=e-u,v=a*a+s*s,p=h*h+d*d,g=Math.sqrt(v),m=Math.sqrt(f),y=r*Math.tan((Fe-Math.acos((v+f-p)/(2*g*m)))/2),b=y/m,x=y/g;Math.abs(b-1)>He&&this._append`L${t+b*l},${n+b*c}`,this._append`A${r},${r},0,0,${+(c*h>l*d)},${this._x1=t+x*a},${this._y1=n+x*s}`}else this._append`L${this._x1=t},${this._y1=n}`}arc(t,n,i,e,r,o){if(t=+t,n=+n,o=!!o,(i=+i)<0)throw new Error(`negative radius: ${i}`);let u=i*Math.cos(e),a=i*Math.sin(e),s=t+u,l=n+a,c=1^o,f=o?e-r:r-e;null===this._x1?this._append`M${s},${l}`:(Math.abs(this._x1-s)>He||Math.abs(this._y1-l)>He)&&this._append`L${s},${l}`,i&&(f<0&&(f=f%Be+Be),f>_e?this._append`A${i},${i},0,1,${c},${t-u},${n-a}A${i},${i},0,1,${c},${this._x1=s},${this._y1=l}`:f>He&&this._append`A${i},${i},0,${+(f>=Fe)},${c},${this._x1=t+i*Math.cos(r)},${this._y1=n+i*Math.sin(r)}`)}rect(t,n,i,e){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${i=+i}v${+e}h${-i}Z`}toString(){return this._}}function Re(t){let n=3;return t.digits=function(i){if(!arguments.length)return n;if(null==i)n=null;else{const t=Math.floor(i);if(!(t>=0))throw new RangeError(`invalid digits: ${i}`);n=t}return t},()=>new We(n)}function ze(t){return t.innerRadius}function je(t){return t.outerRadius}function Xe(t){return t.startAngle}function Ye(t){return t.endAngle}function qe(t){return t&&t.padAngle}function $e(t,n,i,e,r,o,u){var a=t-i,s=n-e,l=(u?o:-o)/Ne(a*a+s*s),c=l*s,f=-l*a,h=t+c,d=n+f,v=i+c,p=e+f,g=(h+v)/2,m=(d+p)/2,y=v-h,b=p-d,x=y*y+b*b,w=r-o,C=h*p-v*d,M=(b<0?-1:1)*Ne(Le(0,w*w*x-C*C)),k=(C*b-y*M)/x,L=(-C*y-b*M)/x,V=(C*b+y*M)/x,S=(-C*y+b*M)/x,N=k-g,A=L-m,D=V-g,T=S-m;return N*N+A*A>D*D+T*T&&(k=V,L=S),{cx:k,cy:L,x01:-c,y01:-f,x11:k*(r/w-1),y11:L*(r/w-1)}}function Ue(){var t=ze,n=je,i=be(0),e=null,r=Xe,o=Ye,u=qe,a=null,s=Re(l);function l(){var l,c,f,h=+t.apply(this,arguments),d=+n.apply(this,arguments),v=r.apply(this,arguments)-Te,p=o.apply(this,arguments)-Te,g=Ce(p-v),m=p>v;if(a||(a=l=s()),d<h&&(c=d,d=h,h=c),d>Ae)if(g>Oe-Ae)a.moveTo(d*ke(v),d*Se(v)),a.arc(0,0,d,v,p,!m),h>Ae&&(a.moveTo(h*ke(p),h*Se(p)),a.arc(0,0,h,p,v,m));else{var y,b,x=v,w=p,C=v,M=p,k=g,L=g,V=u.apply(this,arguments)/2,S=V>Ae&&(e?+e.apply(this,arguments):Ne(h*h+d*d)),N=Ve(Ce(d-h)/2,+i.apply(this,arguments)),A=N,D=N;if(S>Ae){var T=Pe(S/h*Se(V)),O=Pe(S/d*Se(V));(k-=2*T)>Ae?(C+=T*=m?1:-1,M-=T):(k=0,C=M=(v+p)/2),(L-=2*O)>Ae?(x+=O*=m?1:-1,w-=O):(L=0,x=w=(v+p)/2)}var P=d*ke(x),E=d*Se(x),F=h*ke(M),B=h*Se(M);if(N>Ae){var H,_=d*ke(w),I=d*Se(w),W=h*ke(C),R=h*Se(C);if(g<De)if(H=function(t,n,i,e,r,o,u,a){var s=i-t,l=e-n,c=u-r,f=a-o,h=f*s-c*l;if(!(h*h<Ae))return[t+(h=(c*(n-o)-f*(t-r))/h)*s,n+h*l]}(P,E,W,R,_,I,F,B)){var z=P-H[0],j=E-H[1],X=_-H[0],Y=I-H[1],q=1/Se(((f=(z*X+j*Y)/(Ne(z*z+j*j)*Ne(X*X+Y*Y)))>1?0:f<-1?De:Math.acos(f))/2),$=Ne(H[0]*H[0]+H[1]*H[1]);A=Ve(N,(h-$)/(q-1)),D=Ve(N,(d-$)/(q+1))}else A=D=0}L>Ae?D>Ae?(y=$e(W,R,P,E,d,D,m),b=$e(_,I,F,B,d,D,m),a.moveTo(y.cx+y.x01,y.cy+y.y01),D<N?a.arc(y.cx,y.cy,D,Me(y.y01,y.x01),Me(b.y01,b.x01),!m):(a.arc(y.cx,y.cy,D,Me(y.y01,y.x01),Me(y.y11,y.x11),!m),a.arc(0,0,d,Me(y.cy+y.y11,y.cx+y.x11),Me(b.cy+b.y11,b.cx+b.x11),!m),a.arc(b.cx,b.cy,D,Me(b.y11,b.x11),Me(b.y01,b.x01),!m))):(a.moveTo(P,E),a.arc(0,0,d,x,w,!m)):a.moveTo(P,E),h>Ae&&k>Ae?A>Ae?(y=$e(F,B,_,I,h,-A,m),b=$e(P,E,W,R,h,-A,m),a.lineTo(y.cx+y.x01,y.cy+y.y01),A<N?a.arc(y.cx,y.cy,A,Me(y.y01,y.x01),Me(b.y01,b.x01),!m):(a.arc(y.cx,y.cy,A,Me(y.y01,y.x01),Me(y.y11,y.x11),!m),a.arc(0,0,h,Me(y.cy+y.y11,y.cx+y.x11),Me(b.cy+b.y11,b.cx+b.x11),m),a.arc(b.cx,b.cy,A,Me(b.y11,b.x11),Me(b.y01,b.x01),!m))):a.arc(0,0,h,M,C,m):a.lineTo(F,B)}else a.moveTo(0,0);if(a.closePath(),l)return a=null,l+""||null}return l.centroid=function(){var i=(+t.apply(this,arguments)+ +n.apply(this,arguments))/2,e=(+r.apply(this,arguments)+ +o.apply(this,arguments))/2-De/2;return[ke(e)*i,Se(e)*i]},l.innerRadius=function(n){return arguments.length?(t="function"==typeof n?n:be(+n),l):t},l.outerRadius=function(t){return arguments.length?(n="function"==typeof t?t:be(+t),l):n},l.cornerRadius=function(t){return arguments.length?(i="function"==typeof t?t:be(+t),l):i},l.padRadius=function(t){return arguments.length?(e=null==t?null:"function"==typeof t?t:be(+t),l):e},l.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:be(+t),l):r},l.endAngle=function(t){return arguments.length?(o="function"==typeof t?t:be(+t),l):o},l.padAngle=function(t){return arguments.length?(u="function"==typeof t?t:be(+t),l):u},l.context=function(t){return arguments.length?(a=null==t?null:t,l):a},l}We.prototype;var Ze=function(t){var n=t.color,i=t.href,e=t.theme;return{root:{fill:n,cursor:i?"pointer":"default",stroke:e.semanticColors.bodyBackground,outline:"transparent",selectors:{"::-moz-focus-inner":{border:"0"}}},focusRing:{stroke:e.semanticColors.focusBorder,strokeWidth:4,fill:"transparent"},arcLabel:{fontSize:jt.TS.small,fontWeight:jt.lq.semibold,fill:e.palette.neutralPrimary}}},Ge=e(1783),Ke=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.state={},n.currentRef=i.createRef(),n._isRTL=(0,u.zg)(),n._hoverOff=function(){n.props.hoverLeaveCallback()},n._onBlur=function(){n.props.onBlurCallback()},n._getAriaLabel=function(){var t,i=n.props.data.data,e=i.xAxisCalloutData||i.legend,r=i.yAxisCalloutData||i.data||0;return(null===(t=i.callOutAccessibilityData)||void 0===t?void 0:t.ariaLabel)||(e?"".concat(e,", "):"")+"".concat(r,".")},n._renderArcLabel=function(t){var e=n.props,r=e.arc,o=e.data,u=e.innerRadius,a=e.outerRadius,s=e.showLabelsInPercent,l=e.totalValue,c=e.hideLabels,f=e.activeArc;if(c||Math.abs(o.endAngle-o.startAngle)<Math.PI/12||f!==o.data.legend&&""!==f)return null;var h=r.centroid(o),d=h[0],v=h[1],p=Math.sqrt(d*d+v*v),g=Math.max(u,a)+2,m=(o.startAngle+o.endAngle)/2,y=o.value;return i.createElement("text",{x:(0===p?0:d/p)*g,y:(0===p?0:v/p)*g,textAnchor:m>Math.PI!==n._isRTL?"end":"start",dominantBaseline:m>Math.PI/2&&m<3*Math.PI/2?"hanging":"auto",className:t,"aria-hidden":!0},s?(0,Ge.WU)(".0%")(0===l?0:y/l):(0,zn.cE)(y))},n}return(0,n.ZT)(e,t),e.getDerivedStateFromProps=function(t){return Je(t),null},e.prototype.updateChart=function(t){Je(t)},e.prototype.render=function(){var t,n=this.props,e=n.arc,r=n.href,u=n.focusedArcId,a=(0,o.y)()(Ze,{color:this.props.color,href:r,theme:this.props.theme}),s=this.props.uniqText+this.props.data.data.legend.replace(/\s+/,"")+this.props.data.data.data,l=this.props.activeArc===this.props.data.data.legend||""===this.props.activeArc?1:.1;return i.createElement("g",{ref:this.currentRef},!!u&&u===s&&i.createElement("path",{id:s+"focusRing",d:e(this.props.focusData),className:a.focusRing}),i.createElement("path",{id:s,d:e(this.props.data),onFocus:this._onFocus.bind(this,this.props.data.data,s),className:a.root,"data-is-focusable":!0,onMouseOver:this._hoverOn.bind(this,this.props.data.data),onMouseMove:this._hoverOn.bind(this,this.props.data.data),onMouseLeave:this._hoverOff,onBlur:this._onBlur,opacity:l,onClick:r?this._redirectToUrl.bind(this,r):null===(t=this.props.data)||void 0===t?void 0:t.data.onClick,"aria-label":this._getAriaLabel(),role:"img"}),this._renderArcLabel(a.arcLabel))},e.prototype._onFocus=function(t,n){this.props.onFocusCallback(t,n,this.currentRef.current)},e.prototype._hoverOn=function(t,n){n.persist(),this.props.hoverOnCallback(t,n)},e.prototype._redirectToUrl=function(t){t&&(window.location.href=t)},e.defaultProps={arc:Ue()},e}(i.Component);function Je(t){t.arc.innerRadius(t.innerRadius),t.arc.outerRadius(t.outerRadius)}var Qe=function(t){var n,i=t.theme;return{root:{},insideDonutString:{fontSize:jt.TS.xLargePlus,fontWeight:jt.lq.semibold,fill:i.semanticColors.bodyText,selectors:(n={},n[jt.$v]={fill:"rgb(179, 179, 179)"},n)}}},tr=(0,o.y)(),nr=function(t){function e(n){var e=t.call(this,n)||this;return e.arcGenerator=function(t,n,r,o){var u=t&&t.data&&t.data.color;return i.createElement(Ke,{key:n,data:t,focusData:r,innerRadius:e.props.innerRadius,outerRadius:e.props.outerRadius,color:u,onFocusCallback:e._focusCallback,hoverOnCallback:e._hoverCallback,onBlurCallback:e.props.onBlurCallback,hoverLeaveCallback:e.props.hoverLeaveCallback,uniqText:e.props.uniqText,activeArc:e.props.activeArc,href:o,calloutId:e.props.calloutId,valueInsideDonut:e.props.valueInsideDonut,theme:e.props.theme,focusedArcId:e.props.focusedArcId,showLabelsInPercent:e.props.showLabelsInPercent,totalValue:e._totalValue,hideLabels:e.props.hideLabels})},e._focusCallback=function(t,n,i){e.props.onFocusCallback(t,n,i)},e._computeTotalValue=function(){var t=0;return e.props.data.forEach((function(n){t+=n.data})),t},e._hoverCallback=e._hoverCallback.bind(e),e._pieForFocusRing=Ee().sort(null).value((function(t){return t.data})).padAngle(0),e}return(0,n.ZT)(e,t),e.prototype.render=function(){var t=this,n=this.props,e=n.pie,r=n.data,o=this._pieForFocusRing(r),u=e(r),a="translate(".concat(this.props.width/2,", ").concat(this.props.height/2,")"),s=tr(Qe,{theme:this.props.theme});return this._totalValue=this._computeTotalValue(),i.createElement("g",{transform:a},u.map((function(n,i){return t.arcGenerator(n,i,o[i],t.props.href)})),this.props.valueInsideDonut&&i.createElement("text",{y:5,textAnchor:"middle",dominantBaseline:"middle",className:s.insideDonutString,"data-is-focusable":!0},this.props.valueInsideDonut))},e.prototype.componentDidUpdate=function(){var t=tr(Qe,{theme:this.props.theme});(0,zn.yQ)(t.insideDonutString,2*this.props.innerRadius-5)},e.prototype._hoverCallback=function(t,n){this.props.hoverOnCallback(t,n)},e.defaultProps={pie:Ee().sort(null).value((function(t){return t.data})).padAngle(.02)},e}(i.Component),ir={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"},er={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"]},rr={qualitative:er,semantic:{info:["#015cda"],disabled:["#dbdbdb","#4d4d4d"],highError:["#6e0811","#cc2635"],error:["#c50f1f","#dc626d"],warning:["#f7630c","#f87528"],success:["#107c10","#54b054"],highSuccess:["#094509","#218c21"]}},or=Object.values(er),ur=Object.values(ir),ar=function(t,n){if(0===t.length)return"";var i=Number(n);return i<t.length?t[i]:t[0]},sr=function(t,n,i){void 0===n&&(n=0),void 0===i&&(i=!1);var e=or[(t+n)%or.length];return ar(e,i)},lr=function(t,n){if(void 0===n&&(n=!1),ur.indexOf(t)>=0){var i=t.split("."),e=i[0],r=i[1],o=rr[e][r];return ar(o,n)}return t},cr=(0,o.y)(),fr=function(t){function e(i){var e=t.call(this,i)||this;return e._closeCallout=function(){e.setState({showHover:!1})},e._focusCallback=function(t,n,i){e._currentHoverElement=i,e.setState({showHover:""===e.state.selectedLegend||e.state.selectedLegend===t.legend,value:t.data.toString(),legend:t.legend,color:t.color,xCalloutValue:t.xAxisCalloutData,yCalloutValue:t.yAxisCalloutData,focusedArcId:n,dataPointCalloutProps:t,callOutAccessibilityData:t.callOutAccessibilityData})},e._hoverCallback=function(t,n){e._calloutAnchorPoint!==t&&(e._calloutAnchorPoint=t,e._currentHoverElement=n,e.setState({showHover:""===e.state.selectedLegend||e.state.selectedLegend===t.legend,value:t.data.toString(),legend:t.legend,color:t.color,xCalloutValue:t.xAxisCalloutData,yCalloutValue:t.yAxisCalloutData,dataPointCalloutProps:t,callOutAccessibilityData:t.callOutAccessibilityData}))},e._onBlur=function(){e.setState({focusedArcId:""})},e._handleChartMouseLeave=function(){e._calloutAnchorPoint=null,e.setState({showHover:!1})},e._addDefaultColors=function(t){return t?t.map((function(t,i){var r,o,u;return u=void 0===t.color?sr(i,0,null===(r=e.props.theme)||void 0===r?void 0:r.isInverted):lr(t.color,null===(o=e.props.theme)||void 0===o?void 0:o.isInverted),(0,n.pi)((0,n.pi)({},t),{color:u})})):[]},e.state={showHover:!1,value:"",legend:"",_width:e.props.width||200,_height:e.props.height||200,activeLegend:"",color:"",xCalloutValue:"",yCalloutValue:"",selectedLegend:"",focusedArcId:""},e._hoverCallback=e._hoverCallback.bind(e),e._focusCallback=e._focusCallback.bind(e),e._hoverLeave=e._hoverLeave.bind(e),e._calloutId=v("callout"),e._uniqText=v("_Pie_"),e._emptyChartId=v("_DonutChart_empty"),e}return(0,n.ZT)(e,t),e.getDerivedStateFromProps=function(t,i){var e,r;return t.width&&t.width!==i._width&&(e={_width:t.width}),t.height&&t.height!==i._height&&(r={_height:t.height-40}),(0,n.pi)((0,n.pi)({},e),r)},e.prototype.componentDidMount=function(){this._rootElem&&this.setState({_width:this._rootElem.offsetWidth,_height:this._rootElem.offsetHeight-40})},e.prototype.render=function(){var t=this,e=this.props,r=e.data,o=e.hideLegend,u=void 0!==o&&o,a=this._addDefaultColors(null==r?void 0:r.chartData);this._classNames=cr(this.props.styles,{theme:this.props.theme,width:this.state._width,height:this.state._height,color:this.state.color,className:this.props.className});var s=this._createLegends(a),l=this.props.hideLabels?0:80,c=this.props.hideLabels?0:40,f=Math.min(this.state._width-l,this.state._height-c)/2,h=a.filter((function(t){return t.data>0})),d=this._valueInsideDonut(this.props.valueInsideDonut,h);return this._isChartEmpty()?i.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):i.createElement("div",{className:this._classNames.root,ref:function(n){return t._rootElem=n},onMouseLeave:this._handleChartMouseLeave},i.createElement(fi,{direction:Rn.horizontal,handleTabKey:1},i.createElement("div",null,i.createElement("svg",{className:this._classNames.chart,"aria-label":null==r?void 0:r.chartTitle,ref:function(n){return t._setViewBox(n)}},i.createElement(nr,{width:this.state._width,height:this.state._height,outerRadius:f,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(d),theme:this.props.theme,showLabelsInPercent:this.props.showLabelsInPercent,hideLabels:this.props.hideLabels})))),i.createElement(Wn,(0,n.pi)({target:this._currentHoverElement,alignTargetEdge:!0,isBeakVisible:!1,directionalHint:y.topAutoEdge,gapSpace:15,hidden:!(!this.props.hideTooltip&&this.state.showHover),id:this._calloutId,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0,shouldUpdateWhenHidden:!0},this.props.calloutProps,(0,zn.ey)(this.state.callOutAccessibilityData,"text",!1)),this.props.onRenderCalloutPerDataPoint?this.props.onRenderCalloutPerDataPoint(this.state.dataPointCalloutProps):i.createElement(jn.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})),!u&&i.createElement("div",{className:this._classNames.legendContainer},s))},e.prototype._setViewBox=function(t){var n,i;if(null!==t){var e=t.parentElement?t.parentElement.clientWidth:this.state._width,r=t.parentElement&&(null===(n=t.parentElement)||void 0===n?void 0:n.offsetHeight)>this.state._height?null===(i=t.parentElement)||void 0===i?void 0:i.offsetHeight:this.state._height,o="0 0 ".concat(e," ").concat(r);t.setAttribute("viewBox",o)}},e.prototype._createLegends=function(t){var e=this,r=t.map((function(t,n){var i=t.color;return{title:t.legend,color:i,action:function(){e.state.selectedLegend===t.legend?e.setState({selectedLegend:""}):e.setState({selectedLegend:t.legend})},hoverAction:function(){e._handleChartMouseLeave(),e.setState({activeLegend:t.legend})},onMouseOutAction:function(){e.setState({activeLegend:""})}}}));return i.createElement(me,(0,n.pi)({legends:r,centerLegends:!0,overflowProps:this.props.legendsOverflowProps,focusZonePropsInHoverCard:this.props.focusZonePropsForLegendsInHoverCard,overflowText:this.props.legendsOverflowText},this.props.legendProps))},e.prototype._hoverLeave=function(){},e.prototype._valueInsideDonut=function(t,n){var i=this,e=this._getHighlightedLegend();if(void 0===t||""===e&&!this.state.showHover)return t;var r=t;return n.map((function(t,n){(t.legend===e||i.state.showHover&&t.legend===i.state.legend)&&(r=t.yAxisCalloutData?t.yAxisCalloutData:t.data)})),r},e.prototype._toLocaleString=function(t){var n=(0,zn.Ts)(t,this.props.culture);return n?null==n?void 0:n.toString():t},e.prototype._getHighlightedLegend=function(){return this.state.selectedLegend||this.state.activeLegend},e.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.chartData&&this.props.data.chartData.filter((function(t){return t.data>0})).length>0)},e.defaultProps={innerRadius:0,hideLabels:!0},e}(i.Component),hr=(0,t.z)(fr,(function(t){var n=t.className,i=t.width,e=t.height;return{root:[t.theme.fonts.medium,"ms-DonutChart",{alignItems:"center",display:"flex",flexDirection:"column",width:"100%",height:"100%"},n],chart:{width:i,height:e,boxSizing:"content-box",overflow:"visible",alignmentAdjust:"center",display:"block"},legendContainer:{paddingTop:"16px",width:"".concat(i,"px")}}})),dr=e(8485),vr=e(7329);function pr(t){this._context=t}function gr(t){return new pr(t)}function mr(t){return t[0]}function yr(t){return t[1]}function br(t,n){var i=be(!0),e=null,r=gr,o=null,u=Re(a);function a(a){var s,l,c,f=(a=ye(a)).length,h=!1;for(null==e&&(o=r(c=u())),s=0;s<=f;++s)!(s<f&&i(l=a[s],s,a))===h&&((h=!h)?o.lineStart():o.lineEnd()),h&&o.point(+t(l,s,a),+n(l,s,a));if(c)return o=null,c+""||null}return t="function"==typeof t?t:void 0===t?mr:be(t),n="function"==typeof n?n:void 0===n?yr:be(n),a.x=function(n){return arguments.length?(t="function"==typeof n?n:be(+n),a):t},a.y=function(t){return arguments.length?(n="function"==typeof t?t:be(+t),a):n},a.defined=function(t){return arguments.length?(i="function"==typeof t?t:be(!!t),a):i},a.curve=function(t){return arguments.length?(r=t,null!=e&&(o=r(e)),a):r},a.context=function(t){return arguments.length?(null==t?e=o=null:o=r(e=t),a):e},a}pr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:this._context.lineTo(t,n)}}};var xr,wr,Cr,Mr=function(t){function e(n){var r=t.call(this,n)||this;return r._tooltipHost=i.createRef(),r._tooltipHostId=v("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(t){r._ignoreNextFocusEvent?r._ignoreNextFocusEvent=!1:r._onTooltipMouseEnter(t)},r._onTooltipBlur=function(t){r._ignoreNextFocusEvent=(null===document||void 0===document?void 0:document.activeElement)===t.target,r._dismissTimerId=r._async.setTimeout((function(){r._hideTooltip()}),0)},r._onTooltipMouseEnter=function(t){var n=r.props.delay;if(e._currentVisibleTooltip&&e._currentVisibleTooltip!==r&&e._currentVisibleTooltip.dismiss(),e._currentVisibleTooltip=r,r.state.isOverflowing&&(!t.target||!Gn(t.target,r._getTargetElement())))if(r._clearDismissTimer(),r._clearOpenTimer(),n!==di.zero){var i=r._getDelayTime(n);r._openTimerId=r._async.setTimeout((function(){r._toggleTooltip(!0)}),i)}else r._toggleTooltip(!0)},r._onTooltipMouseLeave=function(t){var n=r.props.closeDelay;r._clearDismissTimer(),r._clearOpenTimer(),n?r._dismissTimerId=r._async.setTimeout((function(){r._toggleTooltip(!1)}),n):r._toggleTooltip(!1),e._currentVisibleTooltip===r&&(e._currentVisibleTooltip=void 0)},r._onTooltipKeyDown=function(t){(t.which===Pt||t.ctrlKey)&&r.state.isTooltipVisible&&(r._hideTooltip(),t.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(t){r.state.isTooltipVisible!==t&&r.setState({isTooltipVisible:t})},r._getDelayTime=function(t){switch(t){case di.medium:return 300;case di.long:return 500;default:return 0}},r._wrapContent=function(){var t=r.props,n=t.content,i=t.wrapContent,e=t.maxWidth,o=void 0===e?Number.POSITIVE_INFINITY:e,u=t.maxHeight,a=!1;n&&i&&i(n,r._tooltipHostId,o,u)&&(a=!0),r.state.isOverflowing!==a&&r.setState({isOverflowing:a})},r.state={isTooltipVisible:!1,isOverflowing:!1},r._async=new Et(r),r}return(0,n.ZT)(e,t),e.prototype.render=function(){var t=this.props,e=t.content,r=t.tooltipProps,o=t.textProps,u=t.shouldReceiveFocus,a=void 0===u||u,s=this.state.isTooltipVisible,l=(0,n.pi)({content:e,targetElement:this._getTargetElement(),calloutProps:{onDismiss:this._hideTooltip,onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave},onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave},r),c=!!this.props.isTooltipVisibleProp&&this.state.isOverflowing&&!!e||s&&!!e;return i.createElement(i.Fragment,null,i.createElement("text",(0,n.pi)({},o,{id:this._tooltipHostId,ref:this._tooltipHost,onFocusCapture:this._onTooltipFocus,onBlurCapture:this._onTooltipBlur,onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave,onKeyDown:this._onTooltipKeyDown,"data-is-focusable":a&&this.state.isOverflowing}),e),c&&i.createElement(gi,(0,n.pi)({},l)))},e.prototype.componentDidMount=function(){this._wrapContent()},e.prototype.componentDidUpdate=function(t){this.props.maxWidth===t.maxWidth&&this.props.maxHeight===t.maxHeight||this._wrapContent()},e.prototype.componentWillUnmount=function(){e._currentVisibleTooltip&&e._currentVisibleTooltip===this&&(e._currentVisibleTooltip=void 0),this._async.dispose()},e.defaultProps={delay:di.medium},e}(i.Component),kr=(0,o.y)(),Lr=(0,i.lazy)((function(){return Promise.resolve().then(e.bind(e,8024)).then((function(t){return{default:t.ChartHoverCard}}))})),Vr=function(t){function e(e){var r,o,a,s,l,c,f,h,d,p,g,m,y,b,x,w,C,M,k,L,V,S,N,A,D,T,O=this;return(O=t.call(this,e)||this).minLegendContainerHeight=32,O._isRtl=(0,u.zg)(),O._isFirstRender=!0,O.isIntegralDataset=!0,O._multiValueCallout=function(t){var e=O._yValueHoverSubCountsExists(t.YValueHover);return i.createElement("div",{className:O._classNames.calloutContentRoot},i.createElement("div",{className:O._classNames.calloutDateTimeContainer,style:e?{marginBottom:"11px"}:{}},i.createElement("div",(0,n.pi)({className:O._classNames.calloutContentX},(0,zn.ey)(t.xAxisCalloutAccessibilityData,"text",!1)),(0,zn.Ts)(t.hoverXValue,O.props.culture))),i.createElement("div",{className:O._classNames.calloutInfoContainer,style:e?{display:"flex"}:{}},t.YValueHover&&t.YValueHover.map((function(t,r,o){var u=r+1===o.length,a=t.shouldDrawBorderBottom,s=void 0!==a&&a;return i.createElement("div",(0,n.pi)({},(0,zn.ey)(t.callOutAccessibilityData,"text",!1),{key:"callout-content-".concat(r),style:e?(0,n.pi)({display:"inline-block"},s&&{borderBottom:"1px solid ".concat(O.props.theme.semanticColors.menuDivider),paddingBottom:"10px"}):(0,n.pi)({},s&&{borderBottom:"1px solid ".concat(O.props.theme.semanticColors.menuDivider),paddingBottom:"10px"})}),O._getCalloutContent(t,r,e,u))})),!!t.descriptionMessage&&i.createElement("div",{className:O._classNames.descriptionMessage},t.descriptionMessage)))},O._getData=function(t,n){O.props.getGraphData&&O.props.getGraphData(t,n,O.state.containerHeight-O.state._removalValueForTextTuncate,O.state.containerWidth,O.xAxisElement,O.yAxisElement)},O._onChartLeave=function(){O.props.onChartMouseLeave&&O.props.onChartMouseLeave()},O._calculateChartMinWidth=function(){var t=10;if(!O.props.wrapXAxisLables&&O.props.rotateXAxisLables&&O.props.xAxisType===zn.xl.StringAxis){var n=(0,zn.yE)(O._tickValues,".".concat(O._classNames.xAxis," text"));t+=Math.ceil(n*Math.cos(Math.PI/4))}else if(O.props.showXAxisLablesTooltip){var i=O._tickValues.map((function(t){var n=O.props.noOfCharsToTruncate||4;return t.toString().length>n?"".concat(t.toString().slice(0,n),"..."):t}));n=(0,zn.yE)(i,".".concat(O._classNames.xAxis," text")),t+=Math.ceil(n)}else if(O.props.wrapXAxisLables){var e=[];O._tickValues.forEach((function(t){e.push.apply(e,t.toString().split(/\s+/))})),n=(0,zn.yE)(e,".".concat(O._classNames.xAxis," text")),t+=Math.max(Math.ceil(n),10)}else n=(0,zn.yE)(O._tickValues,".".concat(O._classNames.xAxis," text")),t+=Math.ceil(n);var r=O.margins.left+O.margins.right+t*(O._tickValues.length-1);return[zn.$X.GroupedVerticalBarChart,zn.$X.VerticalBarChart,zn.$X.VerticalStackedBarChart].includes(O.props.chartType)&&(r+=16),r},O.state={containerHeight:0,containerWidth:0,_width:O.props.width||600,_height:O.props.height||350,_removalValueForTextTuncate:0,isRemoveValCalculated:!0,startFromX:0},O.idForGraph=v("chart_"),O.titleMargin=8,O.idForDefaultTabbableElement=v("defaultTabbableElement_"),O.margins={top:null!==(o=null===(r=O.props.margins)||void 0===r?void 0:r.top)&&void 0!==o?o:20,bottom:null!==(s=null===(a=O.props.margins)||void 0===a?void 0:a.bottom)&&void 0!==s?s:35,right:O._isRtl?null!==(c=null===(l=O.props.margins)||void 0===l?void 0:l.left)&&void 0!==c?c:40:(null!==(h=null===(f=O.props.margins)||void 0===f?void 0:f.right)&&void 0!==h?h:null===(d=O.props)||void 0===d?void 0:d.secondaryYScaleOptions)?40:20,left:O._isRtl?(null!==(g=null===(p=O.props.margins)||void 0===p?void 0:p.right)&&void 0!==g?g:null===(m=O.props)||void 0===m?void 0:m.secondaryYScaleOptions)?40:20:null!==(b=null===(y=O.props.margins)||void 0===y?void 0:y.left)&&void 0!==b?b:40},void 0!==O.props.xAxisTitle&&""!==O.props.xAxisTitle&&(O.margins.bottom=null!==(w=null===(x=O.props.margins)||void 0===x?void 0:x.bottom)&&void 0!==w?w:55),void 0!==O.props.yAxisTitle&&""!==O.props.yAxisTitle&&(O.margins.left=O._isRtl?(null!==(M=null===(C=O.props.margins)||void 0===C?void 0:C.right)&&void 0!==M?M:null===(k=O.props)||void 0===k?void 0:k.secondaryYAxistitle)?60:40:null!==(V=null===(L=O.props.margins)||void 0===L?void 0:L.left)&&void 0!==V?V:60,O.margins.right=O._isRtl?null!==(N=null===(S=O.props.margins)||void 0===S?void 0:S.left)&&void 0!==N?N:60:(null!==(D=null===(A=O.props.margins)||void 0===A?void 0:A.right)&&void 0!==D?D:null===(T=O.props)||void 0===T?void 0:T.secondaryYAxistitle)?60:40),O}return(0,n.ZT)(e,t),e.prototype.componentDidMount=function(){if(this._fitParentContainer(),this.props.chartType===zn.$X.HorizontalBarChartWithAxis&&this.props.showYAxisLables&&this.yAxisElement){var t=(0,zn.yE)(this.props.points.map((function(t){return t.y})),".".concat(this._classNames.yAxis," text"));this.state.startFromX!==t&&this.setState({startFromX:t})}else 0!==this.state.startFromX&&this.setState({startFromX:0});this.isIntegralDataset=!this.props.points.some((function(t){return t.y%1!=0}))},e.prototype.componentWillUnmount=function(){cancelAnimationFrame(this._reqID)},e.prototype.componentDidUpdate=function(t){if(t.height===this.props.height&&t.width===this.props.width||this._fitParentContainer(),!this.props.wrapXAxisLables&&this.props.rotateXAxisLables&&this.props.xAxisType===zn.xl.StringAxis){var n={node:this.xAxisElement,xAxis:this._xScale},i=(0,zn.zs)(n);this.state.isRemoveValCalculated&&this.state._removalValueForTextTuncate!==i+this.margins.bottom&&i>0&&this.setState({_removalValueForTextTuncate:i+this.margins.bottom,isRemoveValCalculated:!1})}if(this.props.chartType===zn.$X.HorizontalBarChartWithAxis&&this.props.showYAxisLables&&this.yAxisElement){var e=(0,zn.yE)(this.props.points.map((function(t){return t.y})),".".concat(this._classNames.yAxis," text"));this.state.startFromX!==e&&this.setState({startFromX:e})}else 0!==this.state.startFromX&&this.setState({startFromX:0});t.points!==this.props.points&&(this.isIntegralDataset=!this.props.points.some((function(t){return t.y%1!=0})))},e.prototype.render=function(){var t,e,r,o,u,a,s,l,c,f,h=this,d=this.props,v=d.calloutProps,p=d.points,g=d.chartType,m=d.chartHoverProps,y=d.svgFocusZoneProps,b=d.svgProps,x=d.culture,w=d.dateLocalizeOptions,C=d.timeFormatLocale,M=d.customDateTimeFormatter;this.props.parentRef&&this._fitParentContainer();var k=(0,n.pi)({},this.margins);this.props.chartType===zn.$X.HorizontalBarChartWithAxis&&(this._isRtl?k.right+=this.state.startFromX:k.left+=this.state.startFromX),this.props.getmargins&&this.props.getmargins(k);var L=null,V=null;if(this.props.enableFirstRenderOptimization&&this.chartContainer||!this.props.enableFirstRenderOptimization){this._isFirstRender=!1;var S={domainNRangeValues:(0,zn.dr)(p,this.props.getDomainMargins?this.props.getDomainMargins(this.state.containerWidth):this.margins,this.state.containerWidth,g,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},N={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,zn.As)(p,g,this.props.yAxisType),yAxisPadding:this.props.yAxisPadding||0},A=void 0,D=void 0;switch(this.props.xAxisType){case zn.xl.NumericAxis:A=(t=(0,zn.OX)(S,this.props.chartType,x)).xScale,D=t.tickValues;break;case zn.xl.DateAxis:A=(e=(0,zn.s8)(S,this.props.tickParams,x,w,C,M)).xScale,D=e.tickValues;break;case zn.xl.StringAxis:A=(r=(0,zn.R)(S,this.props.tickParams,this.props.datasetForXAxisDomain,x)).xScale,D=r.tickValues;break;default:A=(o=(0,zn.OX)(S,this.props.chartType,x)).xScale,D=o.tickValues}if(this._xScale=A,this._tickValues=D,this.props.wrapXAxisLables||this.props.showXAxisLablesTooltip){var T={node:this.xAxisElement,xAxis:A,showXAxisLablesTooltip:this.props.showXAxisLablesTooltip||!1,noOfCharsToTruncate:this.props.noOfCharsToTruncate||4},O=A&&(0,zn.Pu)(T);this.state.isRemoveValCalculated&&this.state._removalValueForTextTuncate!==O&&this.setState({_removalValueForTextTuncate:O,isRemoveValCalculated:!1})}var P=void 0,E=void 0,F={yAxisDomainValues:[]};if(this.props.yAxisType&&this.props.yAxisType===zn.OH.StringAxis)P=(0,zn.Tj)(N,this.props.stringDatasetForYAxisDomain,this._isRtl,this.props.chartType,this.props.barwidth,x);else{if(null===(u=this.props)||void 0===u?void 0:u.secondaryYScaleOptions){var B={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===(a=this.props.secondaryYScaleOptions)||void 0===a?void 0:a.yMinValue)||0,yMaxValue:null!==(l=null===(s=this.props.secondaryYScaleOptions)||void 0===s?void 0:s.yMaxValue)&&void 0!==l?l:100,tickPadding:10,maxOfYVal:null!==(f=null===(c=this.props.secondaryYScaleOptions)||void 0===c?void 0:c.yMaxValue)&&void 0!==f?f:100,yMinMaxValues:(0,zn.As)(p,g),yAxisPadding:this.props.yAxisPadding};E=(0,zn.eQ)(B,this._isRtl,F,g,this.props.barwidth,this.isIntegralDataset,!0)}P=(0,zn.eQ)(N,this._isRtl,F,g,this.props.barwidth,this.isIntegralDataset)}this.props.chartType===zn.$X.HorizontalBarChartWithAxis&&P&&(0,zn.Ay)(this.yAxisElement,P,this.props.noOfCharsToTruncate||4,this.props.showYAxisLablesTooltip||!1,this.state.startFromX,this._isRtl),this.props.getAxisData&&this.props.getAxisData(F),this._getData(A,P),V=this.props.children((0,n.pi)((0,n.pi)({},this.state),{xScale:A,yScale:P,yScaleSecondary:E})),!this.props.hideTooltip&&v.isCalloutVisible&&(L=this._generateCallout(v,m))}this._classNames=kr(this.props.styles,{theme:this.props.theme,width:this.state._width,height:this.state._height,className:this.props.className,isRtl:this._isRtl});var H,_={width:this.state.containerWidth,height:this.state.containerHeight};H=this.props.focusZoneDirection===Rn.vertical||this.props.focusZoneDirection?this.props.focusZoneDirection:Rn.horizontal;var I=_.width-this.margins.left-this.margins.right-this.state.startFromX,W=_.height-this.margins.bottom-this.margins.top-this.state._removalValueForTextTuncate-this.titleMargin;return i.createElement("div",{id:this.idForGraph,className:this._classNames.root,role:"presentation",ref:function(t){return h.chartContainer=t},onMouseLeave:this._onChartLeave},!this._isFirstRender&&i.createElement("div",{id:this.idForDefaultTabbableElement}),i.createElement(fi,(0,n.pi)({direction:H,className:this._classNames.chartWrapper,defaultTabbableElement:"#".concat(this.idForDefaultTabbableElement)},y),this._isFirstRender&&i.createElement("div",{id:this.idForDefaultTabbableElement}),i.createElement("svg",(0,n.pi)({width:_.width,height:_.height,"aria-label":this.props.chartTitle,style:{display:"block"}},b),i.createElement("g",{ref:function(t){h.xAxisElement=t},id:"xAxisGElement".concat(this.idForGraph),transform:"translate(0, ".concat(_.height-this.margins.bottom-this.state._removalValueForTextTuncate,")"),className:this._classNames.xAxis}),void 0!==this.props.xAxisTitle&&""!==this.props.xAxisTitle&&i.createElement(Mr,{content:this.props.xAxisTitle,textProps:{x:this.margins.left+this.state.startFromX+I/2,y:_.height-this.titleMargin,className:this._classNames.axisTitle,textAnchor:"middle"},maxWidth:I,wrapContent:zn.nX}),i.createElement("g",{ref:function(t){h.yAxisElement=t},id:"yAxisGElement".concat(this.idForGraph),transform:"translate(".concat(this._isRtl?_.width-this.margins.right-this.state.startFromX:this.margins.left+this.state.startFromX,", 0)"),className:this._classNames.yAxis}),this.props.secondaryYScaleOptions&&i.createElement("g",null,i.createElement("g",{ref:function(t){h.yAxisElementSecondary=t},id:"yAxisGElementSecondary".concat(this.idForGraph),transform:"translate(".concat(this._isRtl?this.margins.left:_.width-this.margins.right,", 0)"),className:this._classNames.yAxis}),void 0!==this.props.secondaryYAxistitle&&""!==this.props.secondaryYAxistitle&&i.createElement(Mr,{content:this.props.secondaryYAxistitle,textProps:{x:(W-this.margins.bottom)/2+this.state._removalValueForTextTuncate,y:this._isRtl?this.state.startFromX-this.titleMargin:_.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(_.height-this.margins.bottom-this.margins.top-this.titleMargin,")rotate(-90)"),className:this._classNames.axisTitle},maxWidth:W,wrapContent:zn.nX})),V,void 0!==this.props.yAxisTitle&&""!==this.props.yAxisTitle&&i.createElement(Mr,{content:this.props.yAxisTitle,textProps:{x:(W-this.margins.bottom)/2+this.state._removalValueForTextTuncate,y:this._isRtl?_.width-this.margins.right/2+this.titleMargin:this.margins.left/2+this.state.startFromX-this.titleMargin,textAnchor:"middle",transform:"translate(0,\n ".concat(_.height-this.margins.bottom-this.margins.top-this.titleMargin,")rotate(-90)"),className:this._classNames.axisTitle},maxWidth:W,wrapContent:zn.nX}))),!this.props.hideLegend&&i.createElement("div",{ref:function(t){return h.legendContainer=t},className:this._classNames.legendContainer},this.props.legendBars),L&&i.createElement(i.Suspense,{fallback:i.createElement("div",null,"Loading...")},L))},e.prototype._generateCallout=function(t,e){return i.createElement(Wn,(0,n.pi)({hidden:!(!this.props.hideTooltip&&t.isCalloutVisible),shouldUpdateWhenHidden:!0},t),this.props.customizedCallout&&this.props.customizedCallout,!this.props.customizedCallout&&this.props.isCalloutForStack&&this._multiValueCallout(t),!this.props.customizedCallout&&!this.props.isCalloutForStack&&i.createElement(Lr,(0,n.pi)({XValue:t.XValue,Legend:t.legend,YValue:t.YValue,color:t.color,culture:this.props.culture},e)))},e.prototype._yValueHoverSubCountsExists=function(t){return!!t&&t.some((function(t){return t.yAxisCalloutData&&"string"!=typeof t.yAxisCalloutData}))},e.prototype._getCalloutContent=function(t,n,e,r){var o,u=r?{}:{marginRight:"16px"},a=void 0!==t.index&&-1!==t.index,s=kr(this.props.styles,{theme:this.props.theme,width:this.state._width,height:this.state._height,className:this.props.className,isRtl:this._isRtl,lineColor:t.color,toDrawShape:a}),l=this.props.culture,c=(0,zn.Ts)(t.y,l);if(t.yAxisCalloutData&&"string"!=typeof t.yAxisCalloutData){var f=t.yAxisCalloutData;return i.createElement("div",{style:u},i.createElement("div",{className:"ms-fontWeight-semibold",style:{fontSize:"12pt"}},t.legend," (",c,")"),Object.keys(f).map((function(t){return i.createElement("div",{key:t,className:s.calloutBlockContainer},i.createElement("div",{className:s.calloutlegendText}," ",(0,zn.Ts)(t,l)),i.createElement("div",{className:s.calloutContentY},(0,zn.Ts)(f[t],l)))})))}return i.createElement("div",{style:e?u:{}},e&&i.createElement("div",{className:"ms-fontWeight-semibold",style:{fontSize:"12pt"}},t.legend," (",c,")"),i.createElement("div",{id:"".concat(n,"_").concat(t.y),className:s.calloutBlockContainer},a&&i.createElement(ve,{svgProps:{className:s.shapeStyles},pathProps:{fill:t.color},shape:zn.wo[t.index%Object.keys(zn.Ml).length]}),i.createElement("div",null,i.createElement("div",{className:s.calloutlegendText}," ",t.legend),i.createElement("div",{className:s.calloutContentY},(0,zn.Ts)(t.yAxisCalloutData?t.yAxisCalloutData:null!==(o=t.y)&&void 0!==o?o:t.data,l)))))},e.prototype._fitParentContainer=function(){var t=this,n=this.state,i=n.containerWidth,e=n.containerHeight;this._reqID=requestAnimationFrame((function(){var n;if(t.props.hideLegend)n=0;else{var r=t.legendContainer&&getComputedStyle(t.legendContainer);n=(t.legendContainer&&t.legendContainer.getBoundingClientRect().height||t.minLegendContainerHeight)+parseFloat(r&&r.marginTop||"0")+parseFloat(r&&r.marginBottom||"0")}if(t.props.parentRef||t.chartContainer){var o=t.props.parentRef?t.props.parentRef:t.chartContainer,u=t.props.enableReflow&&!t._isFirstRender?Math.max(o.getBoundingClientRect().width,t._calculateChartMinWidth()):o.getBoundingClientRect().width,a=o.getBoundingClientRect().height>n?o.getBoundingClientRect().height:350;(i!==u||e!==a-n)&&t.setState({containerWidth:u,containerHeight:a-n})}}))},e}(i.Component);!function(t){t.shade30="#004578",t.shade20="#005a9e",t.shade10="#106ebe",t.primary="#0078d4",t.tint10="#2b88d8",t.tint20="#c7e0f4",t.tint30="#deecf9",t.tint40="#eff6fc"}(xr||(xr={})),function(t){t.black="#000000",t.gray220="#11100f",t.gray210="#161514",t.gray200="#1b1a19",t.gray190="#201f1e",t.gray180="#252423",t.gray170="#292827",t.gray160="#323130",t.gray150="#3b3a39",t.gray140="#484644",t.gray130="#605e5c",t.gray120="#797775",t.gray110="#8a8886",t.gray100="#979593",t.gray90="#a19f9d",t.gray80="#b3b0ad",t.gray70="#bebbb8",t.gray60="#c8c6c4",t.gray50="#d2d0ce",t.gray40="#e1dfdd",t.gray30="#edebe9",t.gray20="#f3f2f1",t.gray10="#faf9f8",t.white="#ffffff"}(wr||(wr={})),function(t){t.pinkRed10="#750b1c",t.red20="#a4262c",t.red10="#d13438",t.redOrange20="#603d30",t.redOrange10="#da3b01",t.orange30="#8e562e",t.orange20="#ca5010",t.orange10="#ffaa44",t.yellow10="#fce100",t.orangeYellow20="#986f0b",t.orangeYellow10="#c19c00",t.yellowGreen10="#8cbd18",t.green20="#0b6a0b",t.green10="#498205",t.greenCyan10="#00ad56",t.cyan40="#005e50",t.cyan30="#005b70",t.cyan20="#038387",t.cyan10="#00b7c3",t.cyanBlue20="#004e8c",t.cyanBlue10="#0078d4",t.blue10="#4f6bed",t.blueMagenta40="#373277",t.blueMagenta30="#5c2e91",t.blueMagenta20="#8764b8",t.blueMagenta10="#8378de",t.magenta20="#881798",t.magenta10="#c239b3",t.magentaPink20="#9b0062",t.magentaPink10="#e3008c",t.gray40="#393939",t.gray30="#7a7574",t.gray20="#69797e",t.gray10="#a0aeb2"}(Cr||(Cr={}));var Sr=function(){var t,n=(0,a.J)();return!!(null===(t=null==n?void 0:n.navigator)||void 0===t?void 0:t.userAgent)&&n.navigator.userAgent.indexOf("rv:11.0")>-1}(),Nr=(0,t.z)(Vr,(function(t){var i,e,r,o,u,a,s,l,c=t.className,f=t.theme,h=t.isRtl,d=t.shouldHighlight,v=t.href,p=t.lineColor,g=void 0===p?"transparent":p,m=t.toDrawShape,y=f.fonts;return{root:[f.fonts.medium,{display:"flex",width:"100%",height:"100%",flexDirection:"column",overflow:"hidden"},c],chartWrapper:{overflow:"auto"},axisTitle:[f.fonts.xSmall,{textAlign:"center",fontWeight:jt.lq.semibold,fontStyle:"normal",lineHeight:jt.TS.medium,color:wr.gray160,fill:f.semanticColors.bodyText}],xAxis:{selectors:{text:[f.fonts.tiny,{fill:f.semanticColors.bodyText,fontWeight:"600",selectors:(i={},i[jt.$v]={fill:"rgb(179, 179, 179)"},i)}],line:{opacity:.2,stroke:f.semanticColors.bodyText,width:"1px",selectors:(e={},e[jt.$v]={opacity:.1,stroke:"rgb(179, 179, 179)"},e)},path:{display:"none"}}},yAxis:{selectors:{text:[f.fonts.tiny,{fill:f.semanticColors.bodyText,fontWeight:"600",selectors:(r={},r[jt.$v]={fill:"rgb(179, 179, 179)"},r)}],path:{display:"none"},line:{opacity:.2,stroke:f.semanticColors.bodyText,selectors:(o={},o[jt.$v]={opacity:.1,stroke:"rgb(179, 179, 179)"},o)},g:[h&&!Sr&&{textAnchor:"end"}]}},opacityChangeOnHover:{opacity:d?"":"0.1",cursor:v?"pointer":"default"},legendContainer:[{marginTop:"8px",marginLeft:"20px"}],calloutContentRoot:[{display:"grid",overflow:"hidden",padding:"11px 16px 10px 16px",backgroundColor:f.semanticColors.bodyBackground,backgroundBlendMode:"normal, luminosity"}],calloutDateTimeContainer:{display:"flex",flexDirection:"row",justifyContent:"space-between"},calloutContentX:[(0,n.pi)((0,n.pi)({},y.small),{lineHeight:"16px",opacity:"0.8",color:f.semanticColors.bodySubtext})],calloutBlockContainer:[f.fonts.mediumPlus,{marginTop:"13px",color:f.semanticColors.bodyText},!m&&{selectors:(u={},u[jt.qJ]={forcedColorAdjust:"none"},u),borderLeft:"4px solid ".concat(g),paddingLeft:"8px"},m&&{display:"flex"}],shapeStyles:{marginRight:"8px"},calloutlegendText:(0,n.pi)((0,n.pi)({},y.small),{lineHeight:"16px",selectors:(a={},a[jt.$v]={color:"rgb(255, 255, 255)"},a),color:f.semanticColors.bodySubtext}),calloutContentY:[(0,n.pi)((0,n.pi)({},y.mediumPlus),{fontWeight:"bold",lineHeight:"22px",selectors:(s={},s[jt.$v]={color:"rgb(255, 255, 255)"},s)})],descriptionMessage:[f.fonts.small,{selectors:(l={},l[jt.$v]={color:"rgb(255, 255, 255)"},l),color:f.semanticColors.bodyText,marginTop:"10px",paddingTop:"10px",borderTop:"1px solid ".concat(f.semanticColors.menuDivider)}]}})),Ar=(0,fn.Ct)((function(t){return(0,fn.Ct)((function(n){var i=(0,fn.Ct)((function(t){return function(i){return n(i,t)}}));return function(e,r){return t(e,r?i(r):n)}}))}));function Dr(t,n){return Ar(t)(n)}var Tr=function(t){if(void 0===t)return 0;var n=0;return"scrollTop"in t?n=t.scrollTop:"scrollY"in t&&(n=t.scrollY),Math.ceil(n)},Or=function(t,n){"scrollTop"in t?t.scrollTop=n:"scrollY"in t&&t.scrollTo(t.scrollX,n)},Pr="spacer-",Er={top:-1,bottom:-1,left:-1,right:-1,width:0,height:0},Fr=function(t){return t.getBoundingClientRect()},Br=Fr,Hr=Fr,_r=function(t){function e(e){var r=t.call(this,e)||this;return r._root=i.createRef(),r._surface=i.createRef(),r._pageRefs={},r._getDerivedStateFromProps=function(t,n){return t.items!==r.props.items||t.renderCount!==r.props.renderCount||t.startIndex!==r.props.startIndex||t.version!==r.props.version||!n.hasMounted&&r.props.renderEarly&&(0,Pn.N)()?(r._resetRequiredWindows(),r._requiredRect=null,r._measureVersion++,r._invalidatePageCache(),r._updatePages(t,n)):n},r._onRenderRoot=function(t){var e=t.rootRef,r=t.surfaceElement,o=t.divProps;return i.createElement("div",(0,n.pi)({ref:e},o),r)},r._onRenderSurface=function(t){var e=t.surfaceRef,r=t.pageElements,o=t.divProps;return i.createElement("div",(0,n.pi)({ref:e},o),r)},r._onRenderPage=function(t,e){for(var o,u=r.props,a=u.onRenderCell,s=u.onRenderCellConditional,l=u.role,c=t.page,f=c.items,h=void 0===f?[]:f,d=c.startIndex,v=(0,n._T)(t,["page"]),p=void 0===l?"listitem":"presentation",g=[],m=0;m<h.length;m++){var y=d+m,b=h[m],x=r.props.getKey?r.props.getKey(b,y):b&&b.key;null==x&&(x=y);var w=null!=s?s:a,C=null!==(o=null==w?void 0:w(b,y,r.props.ignoreScrollingState?void 0:r.state.isScrolling))&&void 0!==o?o:null;s&&!C||g.push(i.createElement("div",{role:p,className:"ms-List-cell",key:x,"data-list-index":y,"data-automationid":"ListCell"},C))}return i.createElement("div",(0,n.pi)({},v),g)},Yn(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,n.ZT)(e,t),e.getDerivedStateFromProps=function(t,n){return n.getDerivedStateFromProps(t,n)},Object.defineProperty(e.prototype,"pageRefs",{get:function(){return this._pageRefs},enumerable:!1,configurable:!0}),e.prototype.scrollToIndex=function(t,n,i){void 0===i&&(i=0);for(var e=this.props.startIndex,r=e+this._getRenderCount(),o=this._allowedRect,u=0,a=1,s=e;s<r;s+=a){var l=this._getPageSpecification(this.props,s,o),c=l.height;if(a=l.itemCount,s<=t&&s+a>t){if(n&&this._scrollElement){for(var f=Hr(this._scrollElement),h=Tr(this._scrollElement),d={top:h,bottom:h+f.height},v=t-s,p=0;p<v;++p)u+=n(s+p);var g=u+n(t);switch(i){case 1:return void Or(this._scrollElement,u);case 2:return void Or(this._scrollElement,g-f.height);case 3:return void Or(this._scrollElement,(u+g-f.height)/2)}if(u>=d.top&&g<=d.bottom)return;u<d.top||g>d.bottom&&(u=g-f.height)}return void(this._scrollElement&&Or(this._scrollElement,u))}u+=c}},e.prototype.getStartItemIndexInView=function(t){for(var n=0,i=this.state.pages||[];n<i.length;n++){var e=i[n];if(!e.isSpacer&&(this._scrollTop||0)>=e.top&&(this._scrollTop||0)<=e.top+e.height){if(!t){var r=Math.floor(e.height/e.itemCount);return e.startIndex+Math.floor((this._scrollTop-e.top)/r)}for(var o=0,u=e.startIndex;u<e.startIndex+e.itemCount;u++){if(r=t(u),e.top+o<=this._scrollTop&&this._scrollTop<e.top+o+r)return u;o+=r}}}return 0},e.prototype.componentDidMount=function(){this._async=new Et(this),this._events=new Ni(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=nt(this._root.current),this._scrollTop=0,this.setState((0,n.pi)((0,n.pi)({},this._updatePages(this.props,this.state)),{hasMounted:!0})),this._measureVersion++;var t=function(t){var n;return(null!==(n=null==t?void 0:t.window)&&void 0!==n?n:"undefined"!=typeof window)?window:void 0}(this.context);this._events.on(t,"resize",this._onAsyncResizeDebounced),this._root.current&&this._events.on(this._root.current,"focus",this._onFocus,!0),this._scrollElement&&(this._events.on(this._scrollElement,"scroll",this._onScroll),this._events.on(this._scrollElement,"scroll",this._onAsyncScrollDebounced))},e.prototype.componentDidUpdate=function(t,n){var i=this.props,e=this.state;this.state.pagesVersion!==n.pagesVersion&&(i.getPageHeight?this._onAsyncIdleDebounced():this._updatePageMeasurements(e.pages)?(this._materializedRect=null,this._hasCompletedFirstRender?this._onAsyncScrollDebounced():(this._hasCompletedFirstRender=!0,this.setState(this._updatePages(i,e)))):this._onAsyncIdleDebounced(),i.onPagesUpdated&&i.onPagesUpdated(e.pages))},e.prototype.componentWillUnmount=function(){var t,n;null===(t=this._async)||void 0===t||t.dispose(),null===(n=this._events)||void 0===n||n.dispose(),delete this._scrollElement},e.prototype.shouldComponentUpdate=function(t,n){var i=this.state.pages,e=n.pages,r=!1;if(!n.isScrolling&&this.state.isScrolling)return!0;if(t.version!==this.props.version)return!0;if(t.className!==this.props.className)return!0;if(t.items===this.props.items&&i.length===e.length)for(var o=0;o<i.length;o++){var u=i[o],a=e[o];if(u.key!==a.key||u.itemCount!==a.itemCount){r=!0;break}}else r=!0;return r},e.prototype.forceUpdate=function(){this._invalidatePageCache(),this._updateRenderRects(this.props,this.state,!0),this.setState(this._updatePages(this.props,this.state)),this._measureVersion++,t.prototype.forceUpdate.call(this)},e.prototype.getTotalListHeight=function(){return this._surfaceRect.height},e.prototype.render=function(){for(var t=this.props,i=t.className,e=t.role,r=void 0===e?"list":e,o=t.onRenderSurface,u=t.onRenderRoot,a=this.state.pages,s=void 0===a?[]:a,l=[],c=q(this.props,Y),f=0,h=s;f<h.length;f++){var d=h[f];l.push(this._renderPage(d))}var v=o?Dr(o,this._onRenderSurface):this._onRenderSurface;return(u?Dr(u,this._onRenderRoot):this._onRenderRoot)({rootRef:this._root,pages:s,surfaceElement:v({surfaceRef:this._surface,pages:s,pageElements:l,divProps:{role:"presentation",className:"ms-List-surface"}}),divProps:(0,n.pi)((0,n.pi)({},c),{className:$("ms-List",i),role:l.length>0?r:void 0,"aria-label":l.length>0?c["aria-label"]:void 0})})},e.prototype._shouldVirtualize=function(t){void 0===t&&(t=this.props);var n=t.onShouldVirtualize;return!n||n(t)},e.prototype._invalidatePageCache=function(){this._pageCache={}},e.prototype._renderPage=function(t){var n,i=this,e=this.props.usePageCache;if(e&&(n=this._pageCache[t.key])&&n.pageElement)return n.pageElement;var r=this._getPageStyle(t),o=this.props.onRenderPage,u=(void 0===o?this._onRenderPage:o)({page:t,className:"ms-List-page",key:t.key,ref:function(n){i._pageRefs[t.key]=n},style:r,role:"presentation"},this._onRenderPage);return e&&0===t.startIndex&&(this._pageCache[t.key]={page:t,pageElement:u}),u},e.prototype._getPageStyle=function(t){var i=this.props.getPageStyle;return(0,n.pi)((0,n.pi)({},i?i(t):{}),t.items?{}:{height:t.height})},e.prototype._onFocus=function(t){for(var n=t.target;n!==this._surface.current;){var i=n.getAttribute("data-list-index");if(i){this._focusedIndex=Number(i);break}n=b(n)}},e.prototype._onScroll=function(){this.state.isScrolling||this.props.ignoreScrollingState||this.setState({isScrolling:!0}),this._resetRequiredWindows(),this._onScrollingDoneDebounced()},e.prototype._resetRequiredWindows=function(){this._requiredWindowsAhead=0,this._requiredWindowsBehind=0},e.prototype._onAsyncScroll=function(){var t,n;this._updateRenderRects(this.props,this.state),this._materializedRect&&(t=this._requiredRect,n=this._materializedRect,t.top>=n.top&&t.left>=n.left&&t.bottom<=n.bottom&&t.right<=n.right)||this.setState(this._updatePages(this.props,this.state))},e.prototype._onAsyncIdle=function(){var t=this.props,n=t.renderedWindowsAhead,i=t.renderedWindowsBehind,e=this._requiredWindowsAhead,r=this._requiredWindowsBehind,o=Math.min(n,e+1),u=Math.min(i,r+1);o===e&&u===r||(this._requiredWindowsAhead=o,this._requiredWindowsBehind=u,this._updateRenderRects(this.props,this.state),this.setState(this._updatePages(this.props,this.state))),(n>o||i>u)&&this._onAsyncIdleDebounced()},e.prototype._onScrollingDone=function(){this.props.ignoreScrollingState||this.setState({isScrolling:!1})},e.prototype._onAsyncResize=function(){this.forceUpdate()},e.prototype._updatePages=function(t,i){this._requiredRect||this._updateRenderRects(t,i);var e=this._buildPages(t,i),r=i.pages;return this._notifyPageChanges(r,e.pages,this.props),(0,n.pi)((0,n.pi)((0,n.pi)({},i),e),{pagesVersion:{}})},e.prototype._notifyPageChanges=function(t,n,i){var e=i.onPageAdded,r=i.onPageRemoved;if(e||r){for(var o={},u=0,a=t;u<a.length;u++)(c=a[u]).items&&(o[c.startIndex]=c);for(var s=0,l=n;s<l.length;s++){var c;(c=l[s]).items&&(o[c.startIndex]?delete o[c.startIndex]:this._onPageAdded(c))}for(var f in o)o.hasOwnProperty(f)&&this._onPageRemoved(o[f])}},e.prototype._updatePageMeasurements=function(t){var n=!1;if(!this._shouldVirtualize())return n;for(var i=0;i<t.length;i++){var e=t[i];e.items&&(n=this._measurePage(e)||n)}return n},e.prototype._measurePage=function(t){var n=!1,i=this._pageRefs[t.key],e=this._cachedPageHeights[t.startIndex];if(i&&this._shouldVirtualize()&&(!e||e.measureVersion!==this._measureVersion)){var r={width:i.clientWidth,height:i.clientHeight};(r.height||r.width)&&(n=t.height!==r.height,t.height=r.height,this._cachedPageHeights[t.startIndex]={height:r.height,measureVersion:this._measureVersion},this._estimatedPageHeight=Math.round((this._estimatedPageHeight*this._totalEstimates+r.height)/(this._totalEstimates+1)),this._totalEstimates++)}return n},e.prototype._onPageAdded=function(t){var n=this.props.onPageAdded;n&&n(t)},e.prototype._onPageRemoved=function(t){var n=this.props.onPageRemoved;n&&n(t)},e.prototype._buildPages=function(t,i){var e=t.renderCount,r=t.items,o=t.startIndex,u=t.getPageHeight;e=this._getRenderCount(t);for(var a=(0,n.pi)({},Er),s=[],l=1,c=0,f=null,h=this._focusedIndex,d=o+e,v=this._shouldVirtualize(t),p=0===this._estimatedPageHeight&&!u,m=this._allowedRect,y=function(n){var e=b._getPageSpecification(t,n,m),u=e.height,y=e.data,x=e.key;l=e.itemCount;var w,C,M=c+u-1,k=g(i.pages,(function(t){return!!t.items&&t.startIndex===n}))>-1,L=!m||M>=m.top&&c<=m.bottom,V=!b._requiredRect||M>=b._requiredRect.top&&c<=b._requiredRect.bottom;if(!p&&(V||L&&k)||!v||h>=n&&h<n+l||n===o){f&&(s.push(f),f=null);var S=Math.min(l,d-n),N=b._createPage(x,r.slice(n,n+S),n,void 0,void 0,y);N.top=c,N.height=u,b._visibleRect&&b._visibleRect.bottom&&(N.isVisible=M>=b._visibleRect.top&&c<=b._visibleRect.bottom),s.push(N),V&&b._allowedRect&&(w=a,C={top:c,bottom:M,height:u,left:m.left,right:m.right,width:m.width},w.top=C.top<w.top||-1===w.top?C.top:w.top,w.left=C.left<w.left||-1===w.left?C.left:w.left,w.bottom=C.bottom>w.bottom||-1===w.bottom?C.bottom:w.bottom,w.right=C.right>w.right||-1===w.right?C.right:w.right,w.width=w.right-w.left+1,w.height=w.bottom-w.top+1)}else f||(f=b._createPage(Pr+n,void 0,n,0,void 0,y,!0)),f.height=(f.height||0)+(M-c)+1,f.itemCount+=l;if(c+=M-c+1,p&&v)return"break"},b=this,x=o;x<d&&"break"!==y(x);x+=l);return f&&(f.key=Pr+"end",s.push(f)),this._materializedRect=a,(0,n.pi)((0,n.pi)({},i),{pages:s,measureVersion:this._measureVersion})},e.prototype._getPageSpecification=function(t,n,i){var e=t.getPageSpecification;if(e){var r=e(n,i,t.items),o=r.itemCount,u=void 0===o?this._getItemCountForPage(n,i):o,a=r.height;return{itemCount:u,height:void 0===a?this._getPageHeight(n,i,u):a,data:r.data,key:r.key}}return{itemCount:u=this._getItemCountForPage(n,i),height:this._getPageHeight(n,i,u)}},e.prototype._getPageHeight=function(t,n,i){if(this.props.getPageHeight)return this.props.getPageHeight(t,n,i,this.props.items);var e=this._cachedPageHeights[t];return e?e.height:this._estimatedPageHeight||30},e.prototype._getItemCountForPage=function(t,n){return(this.props.getItemCountForPage?this.props.getItemCountForPage(t,n):10)||10},e.prototype._createPage=function(t,n,i,e,r,o,u){void 0===i&&(i=-1),void 0===e&&(e=n?n.length:0),void 0===r&&(r={}),t=t||"page-"+i;var a=this._pageCache[t];return a&&a.page?a.page:{key:t,startIndex:i,itemCount:e,items:n,style:r,top:0,height:0,data:o,isSpacer:u||!1}},e.prototype._getRenderCount=function(t){var n=t||this.props,i=n.items,e=n.startIndex,r=n.renderCount;return void 0===r?i?i.length-e:0:r},e.prototype._updateRenderRects=function(t,i,e){var r=t.renderedWindowsAhead,o=t.renderedWindowsBehind,u=i.pages;if(this._shouldVirtualize(t)){var s=this._surfaceRect||(0,n.pi)({},Er),l=function(t){if(void 0===t)return 0;var n=0;return"scrollHeight"in t?n=t.scrollHeight:"document"in t&&(n=t.document.documentElement.scrollHeight),n}(this._scrollElement),c=Tr(this._scrollElement);this._surface.current&&(e||!u||!this._surfaceRect||!l||l!==this._scrollHeight||Math.abs(this._scrollTop-c)>this._estimatedPageHeight/3)&&(s=this._surfaceRect=Br(this._surface.current),this._scrollTop=c),!e&&l&&l===this._scrollHeight||this._measureVersion++,this._scrollHeight=l||0;var f=Math.max(0,-s.top),h=(0,a.J)(this._root.current),d={top:f,left:s.left,bottom:f+h.innerHeight,right:s.right,width:s.width,height:h.innerHeight};this._requiredRect=Ir(d,this._requiredWindowsBehind,this._requiredWindowsAhead),this._allowedRect=Ir(d,o,r),this._visibleRect=d}},e.defaultProps={startIndex:0,onRenderCell:function(t,n,e){return i.createElement(i.Fragment,null,t&&t.name||"")},onRenderCellConditional:void 0,renderedWindowsAhead:2,renderedWindowsBehind:2},e.contextType=_t,e}(i.Component);function Ir(t,n,i){var e=t.top-n*t.height,r=t.height+(n+i)*t.height;return{top:e,bottom:e+r,height:r,left:t.left,right:t.right,width:t.width}}var Wr,Rr=function(t){var e=i.useRef(null);i.useEffect((function(){if(e.current){var n=(0,dr.Ys)(e.current),i=t.text.split(/\s+/),r=[],o=n.append("tspan"),u=0;return i.forEach((function(i){r.push(i),o.text(r.join(" "));var e=o.node();e&&e.getComputedTextLength()>t.width&&r.length>1&&(u++,r.pop(),o.text(r.join(" ")),r=[i],o=n.append("tspan").text(i).attr("dy",t.lineHeight).attr("x",t.x))})),n.attr("dy",-u*t.lineHeight),function(){n.selectAll("tspan").remove()}}})),t.lineHeight;var r=(0,n._T)(t,["lineHeight"]);return i.createElement("text",(0,n.pi)({ref:e},r))},zr=function(t){var n,e,r,o=i.useRef(null),u=i.useState(!1),a=u[0],s=u[1],l=null;if(a){var c=t.labelDef.aggregatedIdx.map((function(n){return t.lineDefs[n].onRenderCard})).filter((function(t){return!!t}));c.length>0&&(l=i.createElement(Wn,{target:o.current,onDismiss:function(){return s(!1)},setInitialFocus:!0,role:"dialog"},i.createElement(fi,{isCircularNavigation:!0,direction:Rn.vertical},i.createElement(_r,{items:c,onRenderCell:function(t){return i.createElement("div",{"data-is-focusable":!0},t&&t())}}))))}var f=t.textColor?lr(t.textColor,null===(n=t.theme)||void 0===n?void 0:n.isInverted):null===(e=t.theme)||void 0===e?void 0:e.semanticColors.messageText;return r=1===t.labelDef.aggregatedIdx.length?t.lineDefs[t.labelDef.aggregatedIdx[0]].event:t.mergedLabel(t.labelDef.aggregatedIdx.length),i.createElement(i.Fragment,null,i.createElement("g",{ref:o,onClick:function(){return s(!0)},"data-is-focusable":!1,style:{cursor:"pointer"}},i.createElement(Rr,{text:r,x:t.labelDef.x,y:t.textY,width:t.textWidth,lineHeight:t.textLineHeight,textAnchor:t.labelDef.anchor,fontSize:t.textFontSize,fill:f})),l)},jr=function(t){var e,r,o=t.labelWidth?t.labelWidth:105,u=t.chartYTop-20,a=u+7,s=t.scale.range(),l=t.events.map((function(i){return(0,n.pi)((0,n.pi)({},i),{x:t.scale(i.date)})}));l.sort((function(t,n){return+t.date-+n.date}));var c=t.strokeColor?lr(t.strokeColor,null===(e=t.theme)||void 0===e?void 0:e.isInverted):null===(r=t.theme)||void 0===r?void 0:r.palette.black,f=function(t,n){for(var i=[],e=[],r=0,o=t;r<o.length;r++){var u=o[r],a=n(u);-1===i.indexOf(a)&&(e.push(u),i.push(a))}return e}(l,(function(t){return t.date.toString()})).map((function(n,e){return i.createElement("line",{key:e,x1:n.x,x2:n.x,y1:a,y2:t.chartYBottom,stroke:c,strokeDasharray:"8"})})),h=function(t,n,i,e){var r=function(e,r){if(r===t.length)return[];var u=t[r].x,a=u-n;return u<e?[]:r===t.length-1?e<a?[{x:u,anchor:"end",aggregatedIdx:[r]}]:u+n<i?[{x:u,anchor:"start",aggregatedIdx:[r]}]:[]:o(r,e<a?"end":"start")},o=function(e,o){var u="end"===o?t[e].x:t[e].x+n,a=g(t,(function(t){return t.x>u&&(t.x-n>=u||t.x+n<i)}),e+1);-1===a&&(a=t.length);for(var s=[],l=e;l<a;l++)s.push(l);var c=r(u,a);return c.unshift({x:t[e].x,anchor:o,aggregatedIdx:s}),c};return r(e,0)}(l,o+5,s[1],s[0]).map((function(e,r){return i.createElement(zr,(0,n.pi)({key:r,theme:t.theme},{lineDefs:l,labelDef:e,textY:u,textWidth:o,textLineHeight:18,textFontSize:"10pt",textColor:t.labelColor,mergedLabel:t.mergedLabel}))}));return i.createElement(i.Fragment,null,f,h)},Xr=(0,o.y)();!function(t){t[t.hoverSize=11]="hoverSize",t[t.invisibleSize=1]="invisibleSize"}(Wr||(Wr={}));var Yr=(0,vr.Z)((function(t){return t.x})).left,qr=function(t){function e(e){var r=t.call(this,e)||this;return r._xAxisScale="",r._yAxisScale="",r.eventLabelHeight=36,r._isRTL=(0,u.zg)(),r._injectIndexPropertyInLineChartData=function(t){var i=r.props.allowMultipleShapesForPoints,e=void 0!==i&&i;return t?t.map((function(t,i){var o,u,a;return a=void 0===t.color?sr(i,0,null===(o=r.props.theme)||void 0===o?void 0:o.isInverted):lr(t.color,null===(u=r.props.theme)||void 0===u?void 0:u.isInverted),(0,n.pi)((0,n.pi)({},t),{index:e?i:-1,color: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._getMargins=function(t){r.margins=t},r._initializeLineChartData=function(t,n,i,e,o){r._xAxisScale=t,r._yAxisScale=n,r._renderedColorFillBars=r.props.colorFillBars?r._createColorFillBars(i):[],r.lines=r._createLines(o,i)},r._handleSingleLegendSelectionAction=function(t){r.state.selectedLegend===t.legend?(r.setState({selectedLegend:""}),r._handleLegendClick(t,null)):(r.setState({selectedLegend:t.legend}),r._handleLegendClick(t,t.legend))},r._onHoverCardHide=function(){r.setState({selectedLegendPoints:[],selectedColorBarLegend:[],isSelectedLegend:!1})},r._closeCallout=function(){r.setState({isCalloutVisible:!1})},r._getBoxWidthOfShape=function(t,n,i){var e=r.props,o=e.allowMultipleShapesForPoints,u=void 0!==o&&o,a=e.strokeWidth,s=void 0===a?4:a,l=r.state.activePoint;return u?l===t?Wr.hoverSize:1===n||i?2.5*s:Wr.invisibleSize:l===t?Wr.hoverSize:Wr.invisibleSize},r._getPath=function(t,n,i,e,o,u){var a=r.props.allowMultipleShapesForPoints,s=void 0!==a&&a,l=r._getBoxWidthOfShape(i,e,o),c=s?u%Object.keys(zn.Ml).length:0,f=zn.Ml[c].widthRatio;return function(t,n,i,e){return["M".concat(t-i/2," ").concat(n,"\n A").concat(i/2," ").concat(i/2," 0 1 0 ").concat(t+i/2," ").concat(n,"\n M").concat(t-i/2," ").concat(n,"\n A ").concat(i/2," ").concat(i/2," 0 1 1 ").concat(t+i/2," ").concat(n,"\n "),"M".concat(t-i/2," ").concat(n-i/2,"\n L").concat(t+i/2," ").concat(n-i/2,"\n L").concat(t+i/2," ").concat(n+i/2,"\n L").concat(t-i/2," ").concat(n+i/2,"\n Z"),"M".concat(t-i/2," ").concat(n-.2886*i,"\n H ").concat(t+i/2,"\n L").concat(t," ").concat(n+.5774*i," Z"),"M".concat(t," ").concat(n-i/2,"\n L").concat(t+i/2," ").concat(n,"\n L").concat(t," ").concat(n+i/2,"\n L").concat(t-i/2," ").concat(n,"\n Z"),"M".concat(t," ").concat(n-.5774*i,"\n L").concat(t+i/2," ").concat(n+.2886*i,"\n L").concat(t-i/2," ").concat(n+.2886*i," Z"),"M".concat(t-.5*i," ").concat(n-.866*i,"\n L").concat(t+.5*i," ").concat(n-.866*i,"\n L").concat(t+i," ").concat(n,"\n L").concat(t+.5*i," ").concat(n+.866*i,"\n L").concat(t-.5*i," ").concat(n+.866*i,"\n L").concat(t-i," ").concat(n,"\n Z"),"M".concat(t," ").concat(n-.851*i,"\n L").concat(t+.6884*i," ").concat(n-.2633*i,"\n L").concat(t+.5001*i," ").concat(n+.6884*i,"\n L").concat(t-.5001*i," ").concat(n+.6884*i,"\n L").concat(t-.6884*i," ").concat(n-.2633*i,"\n Z"),"M".concat(t-.5001*i," ").concat(n-1.207*i,"\n L").concat(t+.5001*i," ").concat(n-1.207*i,"\n L").concat(t+1.207*i," ").concat(n-.5001*i,"\n L").concat(t+1.207*i," ").concat(n+.5001*i,"\n L").concat(t+.5001*i," ").concat(n+1.207*i,"\n L").concat(t-.5001*i," ").concat(n+1.207*i,"\n L").concat(t-1.207*i," ").concat(n+.5001*i,"\n L").concat(t-1.207*i," ").concat(n-.5001*i,"\n Z")][e]}(t,n,l=f>1?l/f:l,c)},r._getPointFill=function(t,n,i,e){var o=r.state.activePoint,u=r.props,a=u.theme;return u.allowMultipleShapesForPoints,o===n?a.semanticColors.bodyBackground:t},r._createColorFillBars=function(t){var n,e=[];r.state.isSelectedLegend?r._colorFillBars=r.state.selectedColorBarLegend:r._colorFillBars=r.props.colorFillBars;for(var o=(0,zn.As)(r._points,zn.$X.LineChart),u=0;u<r._colorFillBars.length;u++){var a=r._colorFillBars[u],s=v(a.legend.replace(/\W/g,"")),l=lr(a.color,null===(n=r.props.theme)||void 0===n?void 0:n.isInverted);a.applyPattern&&e.push(r._getStripePattern(l,u));for(var c=0;c<a.data.length;c++){var f=a.data[c].startX,h=a.data[c].endX,d=r._legendHighlighted(a.legend)||r._noLegendHighlighted()||r.state.isSelectedLegend?r._getColorFillBarOpacity(a):.1;e.push(i.createElement("rect",{fill:a.applyPattern?"url(#".concat(r._colorFillBarPatternId,"_").concat(u,")"):l,fillOpacity:d,x:r._isRTL?r._xAxisScale(h):r._xAxisScale(f),y:r._yAxisScale(o.endValue)-3,width:Math.abs(r._xAxisScale(h)-r._xAxisScale(f)),height:r._yAxisScale(r.props.yMinValue||0)-r._yAxisScale(o.endValue)+3,key:"".concat(s).concat(c)}))}}return e},r._getStripePattern=function(t,n){return i.createElement("pattern",{id:"".concat(r._colorFillBarPatternId,"_").concat(n),width:16,height:16,key:"".concat(r._colorFillBarPatternId,"_").concat(n),patternUnits:"userSpaceOnUse"},i.createElement("path",{d:"M-4,4 l8,-8 M0,16 l16,-16 M12,20 l8,-8",stroke:t,strokeWidth:1.25}))},r._checkInGap=function(t,n,i){for(var e=i,r=!1;e<n.length&&t>n[e].endIndex;)e++;return e<n.length&&t>n[e].startIndex&&t<=n[e].endIndex&&(r=!0),{isInGap:r,gapIndex:e}},r._onMouseOverLargeDataset=function(t,n,i){i.persist();var e=r.props.data.lineChartData,o=r._xAxisScale.invert((0,dr.Eb)(document.getElementById(r._rectId),i)[0]),u=Yr(e[t].data,o),a=e[t].data[u-1],s=e[t].data[u],l=null,c=null;if(void 0===a&&void 0!==s)l=s.x,c=u;else if(void 0!==a&&void 0===s)l=a.x,c=u-1;else{var f=void 0,h=void 0,d=void 0;switch((0,zn.SY)(e[t].data[0].x,!0)){case zn.xl.DateAxis:f=new Date(o).getTime(),h=a.x.getTime(),d=s.x.getTime(),l=Math.abs(f-h)>Math.abs(f-d)?s.x:a.x,c=Math.abs(f-h)>Math.abs(f-d)?u:u-1;break;case zn.xl.NumericAxis:f=o,h=a.x,d=s.x,l=Math.abs(f-h)>Math.abs(f-d)?s.x:a.x,c=Math.abs(f-h)>Math.abs(f-d)?u:u-1}}var v=e[t].data[c],p=v.xAxisCalloutData,g=v.xAxisCalloutAccessibilityData,y=l instanceof Date?l.toLocaleString():l,b=l instanceof Date?l.getTime():l,x=m(r._calloutPoints,(function(t){return t.x===b})),w=e[t].data[c],C=null===r.state.nearestCircleToHighlight||null!==r.state.nearestCircleToHighlight&&null!==w&&(r.state.nearestCircleToHighlight.x!==w.x||r.state.nearestCircleToHighlight.y!==w.y);x&&C&&(r._uniqueCallOutID="#".concat(r._staticHighlightCircle,"_").concat(t),(0,dr.Ys)("#".concat(r._staticHighlightCircle,"_").concat(t)).attr("cx","".concat(r._xAxisScale(w.x))).attr("cy","".concat(r._yAxisScale(w.y))).attr("visibility","visibility"),(0,dr.Ys)("#".concat(r._verticalLine)).attr("transform",(function(){return"translate(".concat(r._xAxisScale(w.x),", ").concat(r._yAxisScale(w.y),")")})).attr("visibility","visibility").attr("y2","".concat(n-r._yAxisScale(w.y))),r.setState({nearestCircleToHighlight:w,isCalloutVisible:!0,refSelected:"#".concat(r._staticHighlightCircle,"_").concat(t),stackCalloutProps:x,YValueHover:x.values,dataPointCalloutProps:x,hoverXValue:p||y,xAxisCalloutAccessibilityData:g,activePoint:"",activeLine:t})),x||r.setState({isCalloutVisible:!1,nearestCircleToHighlight:w,activePoint:"",activeLine:t})},r._handleFocus=function(t,n,i,e,o){r._uniqueCallOutID=e;var u=n instanceof Date?n.toLocaleDateString():n,a=n instanceof Date?n.getTime():n,s=m(r._calloutPoints,(function(t){return t.x===a}));if(s){var l=r;(0,dr.Ys)("#".concat(r._verticalLine)).attr("transform",(function(){return"translate(".concat(l._xAxisScale(n),", 0)")})).attr("visibility","visibility"),r._refArray.forEach((function(n){n.index===t&&r.setState({isCalloutVisible:!0,refSelected:n.refElement,hoverXValue:i||""+u,YValueHover:s.values,stackCalloutProps:s,dataPointCalloutProps:s,activePoint:e,xAxisCalloutAccessibilityData:o})}))}else r.setState({activePoint:e})},r._handleHover=function(t,n,i,e,o,u,a){a.persist();var s=t instanceof Date?t.toLocaleDateString():t,l=t instanceof Date?t.getTime():t,c=r,f=m(r._calloutPoints,(function(t){return t.x===l}));f?((0,dr.Ys)("#".concat(r._verticalLine)).attr("transform",(function(){return"translate(".concat(c._xAxisScale(t),", ").concat(c._yAxisScale(n),")")})).attr("visibility","visibility").attr("y2","".concat(i-c._yAxisScale(n))),r._uniqueCallOutID!==o&&(r._uniqueCallOutID=o,r.setState({isCalloutVisible:!0,refSelected:"#".concat(o),hoverXValue:e||""+s,YValueHover:f.values,stackCalloutProps:f,dataPointCalloutProps:f,activePoint:o,xAxisCalloutAccessibilityData:u,nearestCircleToHighlight:null,activeLine:null}))):r.setState({activePoint:o,nearestCircleToHighlight:null,activeLine:null})},r._getClickHandler=function(t){return t?{onClick:t}:{}},r._handleMouseOut=function(){(0,dr.Ys)("#".concat(r._verticalLine)).attr("visibility","hidden")},r._handleChartMouseLeave=function(){r._uniqueCallOutID=null,r.setState({isCalloutVisible:!1,activePoint:"",activeLine:null})},r._handleLegendClick=function(t,n){t.onLegendClick&&t.onLegendClick(n)},r._handleMultipleLineLegendSelectionAction=function(t){var i,e=r.state.selectedLegendPoints.reduce((function(n,i,e){return n>-1||i.legend!==t.legend?n:e}),-1);i=-1===e?(0,n.ev)((0,n.ev)([],r.state.selectedLegendPoints,!0),[t],!1):r.state.selectedLegendPoints.slice(0,e).concat(r.state.selectedLegendPoints.slice(e+1)),r.props.data&&i.length===r.props.data.lineChartData.length&&(r.props.colorFillBars&&r.props.colorFillBars.length===r.state.selectedColorBarLegend.length||!r.props.colorFillBars)?r._clearMultipleLegendSelections():i.length||r.state.selectedColorBarLegend.length?r.setState({selectedLegendPoints:i,isSelectedLegend:!0}):r._clearMultipleLegendSelections();var o=i.map((function(t){return t.legend}));r._handleLegendClick(t,o)},r._handleMultipleColorFillBarLegendSelectionAction=function(t){var i,e=r.state.selectedColorBarLegend.reduce((function(n,i,e){return n>-1||i.legend!==t.legend?n:e}),-1);(i=-1===e?(0,n.ev)((0,n.ev)([],r.state.selectedColorBarLegend,!0),[t],!1):r.state.selectedColorBarLegend.slice(0,e).concat(r.state.selectedColorBarLegend.slice(e+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():i.length||r.state.selectedLegendPoints.length?r.setState({selectedColorBarLegend:i,isSelectedLegend:!0}):r._clearMultipleLegendSelections();var o=i.map((function(t){return t.legend}));r._handleLegendClick(t,o)},r._clearMultipleLegendSelections=function(){r.setState({selectedColorBarLegend:[],selectedLegendPoints:[],isSelectedLegend:!1})},r._legendHighlighted=function(t){return r.state.selectedLegend===t||""===r.state.selectedLegend&&r.state.activeLegend===t},r._noLegendHighlighted=function(){return""===r.state.selectedLegend&&""===r.state.activeLegend},r._getColorFillBarOpacity=function(t){return t.applyPattern?1:.4},r._getAriaLabel=function(t,n){var i,e=r._points[t],o=e.data[n],u=o.x instanceof Date?o.x.toLocaleString():o.x,a=o.xAxisCalloutData||u,s=e.legend,l=o.yAxisCalloutData||o.y;return(null===(i=o.callOutAccessibilityData)||void 0===i?void 0:i.ariaLabel)||"".concat(a,". ").concat(s,", ").concat(l,".")},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,zn.Wx)(r._points)||[],r._circleId=v("circle"),r._lineId=v("lineID"),r._borderId=v("borderID"),r._verticalLine=v("verticalLine"),r._colorFillBarPatternId=v("colorFillBarPattern"),r._tooltipId=v("LineChartTooltipId_"),r._rectId=v("containerRectLD"),r._staticHighlightCircle=v("staticHighlightCircle"),r._createLegendsMemoized=(0,fn.NF)((function(t){return r._createLegends(t)})),r._firstRenderOptimization=!0,r._emptyChartId=v("_LineChart_empty"),e.eventAnnotationProps&&e.eventAnnotationProps.labelHeight&&(r.eventLabelHeight=e.eventAnnotationProps.labelHeight),r}return(0,n.ZT)(e,t),e.prototype.componentDidUpdate=function(t){t.height===this.props.height&&t.width===this.props.width&&t.data===this.props.data||(this._points=this._injectIndexPropertyInLineChartData(this.props.data.lineChartData),this._calloutPoints=(0,zn.Wx)(this._points)||[])},e.prototype.render=function(){var t=this,e=this.props,r=e.tickValues,o=e.tickFormat,u=e.eventAnnotationProps,a=e.legendProps,s=e.data;this._points=this._injectIndexPropertyInLineChartData(s.lineChartData);var l=(0,zn.V4)(this._points),c=this._points;a&&a.canSelectMultipleLegends&&(c=this.state.selectedLegendPoints.length>=1?this.state.selectedLegendPoints:this._points,this._calloutPoints=(0,zn.Wx)(c));var f=null;this.props.hideLegend||(f=this._createLegendsMemoized(this._points));var h=(0,n.pi)({isCalloutVisible:this.state.isCalloutVisible,directionalHint:y.topAutoEdge,YValueHover:this.state.YValueHover,hoverXValue:this.state.hoverXValue,id:"toolTip".concat(this._uniqueCallOutID),target:this.state.refSelected,isBeakVisible:!1,gapSpace:15,onDismiss:this._closeCallout,preventDismissOnEvent:function(){return!0},hidden:!(!this.props.hideTooltip&&this.state.isCalloutVisible),descriptionMessage:this.props.getCalloutDescriptionMessage&&this.state.stackCalloutProps?this.props.getCalloutDescriptionMessage(this.state.stackCalloutProps):void 0,"data-is-focusable":!0,xAxisCalloutAccessibilityData:this.state.xAxisCalloutAccessibilityData},this.props.calloutProps),d={tickValues:r,tickFormat:o};return this._isChartEmpty()?i.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):i.createElement(Nr,(0,n.pi)({},this.props,{chartTitle:s.chartTitle,points:c,chartType:zn.$X.LineChart,isCalloutForStack:!0,calloutProps:h,tickParams:d,legendBars:f,getmargins:this._getMargins,getGraphData:this._initializeLineChartData,xAxisType:l?zn.xl.DateAxis:zn.xl.NumericAxis,customizedCallout:this._getCustomizedCallout(),onChartMouseLeave:this._handleChartMouseLeave,enableFirstRenderOptimization:this.props.enablePerfOptimization&&this._firstRenderOptimization,children:function(e){return t._xAxisScale=e.xScale,t._yAxisScale=e.yScale,i.createElement(i.Fragment,null,i.createElement("g",null,i.createElement("line",{x1:0,y1:0,x2:0,y2:e.containerHeight,stroke:"#323130",id:t._verticalLine,visibility:"hidden",strokeDasharray:"5,5"}),t.props.optimizeLargeData?i.createElement("rect",{id:t._rectId,width:e.containerWidth,height:e.containerHeight,fill:"transparent"}):i.createElement(i.Fragment,null),i.createElement("g",null,t._renderedColorFillBars,t.lines),u&&i.createElement(jr,(0,n.pi)({theme:t.props.theme},u,{scale:e.xScale,chartYTop:t.margins.top+t.eventLabelHeight,chartYBottom:e.containerHeight-35}))))}}))},e.prototype._createLegends=function(t){var e=this,r=this.props,o=r.legendProps,u=r.allowMultipleShapesForPoints,a=void 0!==u&&u,s=!(!o||!o.canSelectMultipleLegends),l=t.map((function(t){var i=t.color;return(0,n.pi)((0,n.pi)({title:t.legend,color:i,action:function(){s?e._handleMultipleLineLegendSelectionAction(t):e._handleSingleLegendSelectionAction(t)},onMouseOutAction:function(){e.setState({activeLegend:""})},hoverAction:function(){e._handleChartMouseLeave(),e.setState({activeLegend:t.legend})}},t.legendShape&&{shape:t.legendShape}),a&&{shape:zn.wo[t.index%Object.keys(zn.Ml).length]})})),c=this.props.colorFillBars?this.props.colorFillBars.map((function(t,n){var i,r=t.legend,o=lr(t.color,null===(i=e.props.theme)||void 0===i?void 0:i.isInverted);return{title:r,color:o,action:function(){s?e._handleMultipleColorFillBarLegendSelectionAction(t):e._handleSingleLegendSelectionAction(t)},onMouseOutAction:function(){e.setState({activeLegend:""})},hoverAction:function(){e._handleChartMouseLeave(),e.setState({activeLegend:r})},opacity:e._getColorFillBarOpacity(t),stripePattern:t.applyPattern}})):[];return i.createElement(me,(0,n.pi)({legends:(0,n.ev)((0,n.ev)([],l,!0),c,!0),enabledWrapLines:this.props.enabledLegendsWrapLines,overflowProps:this.props.legendsOverflowProps,focusZonePropsInHoverCard:this.props.focusZonePropsForLegendsInHoverCard,overflowText:this.props.legendsOverflowText},s&&{onLegendHoverCardLeave:this._onHoverCardHide},this.props.legendProps))},e.prototype._createLines=function(t,e){var r,o,u,a,s,l,c,f,h,d,v,p,g,m,y,b,x,w,C,M,k,L,V,S,N=this,A=[];this.state.isSelectedLegend?this._points=this.state.selectedLegendPoints:this._points=this._injectIndexPropertyInLineChartData(this.props.data.lineChartData);for(var D=function(t){var D=[],O=[],P=[],E=T._points[t].legend,F=T._points[t].color,B=T.state.activePoint,H=T.props.theme,_=e-T.margins.bottom+6;if(1===T._points[t].data.length){var I=T._points[t].data[0],W=I.x,R=I.y,z=I.xAxisCalloutData,j=I.xAxisCalloutAccessibilityData,X="".concat(T._circleId,"_").concat(t);P.push(i.createElement("circle",(0,n.pi)({id:X,key:X,r:B===X?5.5:3.5,cx:T._xAxisScale(W),cy:T._yAxisScale(R),fill:B===X?H.semanticColors.bodyBackground:F,onMouseOver:T._handleHover.bind(T,W,R,_,z,X,j),onMouseMove:T._handleHover.bind(T,W,R,_,z,X,j),onMouseOut:T._handleMouseOut,strokeWidth:B===X?4:0,stroke:B===X?F:"",role:"img","aria-label":T._getAriaLabel(t,0),"data-is-focusable":!0,ref:function(t){N._refCallback(t,X)},onFocus:function(){return N._handleFocus(X,W,z,X,j)},onBlur:T._handleMouseOut},T._getClickHandler(T._points[t].data[0].onDataPointClick))))}var Y=0,q=null!==(o=null===(r=T._points[t].gaps)||void 0===r?void 0:r.sort((function(t,n){return t.startIndex-n.startIndex})))&&void 0!==o?o:[];if(T.props.optimizeLargeData&&T._points[t].data.length>1){for(var $=br().x((function(t){return N._xAxisScale(t[0])})).y((function(t){return N._yAxisScale(t[1])})).curve(gr),U="".concat(T._lineId,"_").concat(t),Z="".concat(T._borderId,"_").concat(t),G=(null===(u=T._points[t].lineOptions)||void 0===u?void 0:u.strokeWidth)||T.props.strokeWidth||4,K=T._legendHighlighted(E)||T._noLegendHighlighted()||T.state.isSelectedLegend,J=[],Q=0;Q<T._points[t].data.length;Q++)J.push([T._points[t].data[Q].x instanceof Date?T._points[t].data[Q].x.getTime():T._points[t].data[Q].x,T._points[t].data[Q].y]);if(K){var tt=(null===(a=T._points[t].lineOptions)||void 0===a?void 0:a.lineBorderWidth)?Number.parseFloat(T._points[t].lineOptions.lineBorderWidth.toString()):0;tt>0&&O.push(i.createElement("path",{id:Z,key:Z,d:$(J),fill:"transparent",strokeLinecap:null!==(l=null===(s=T._points[t].lineOptions)||void 0===s?void 0:s.strokeLinecap)&&void 0!==l?l:"round",strokeWidth:Number.parseFloat(G.toString())+tt,stroke:(null===(c=T._points[t].lineOptions)||void 0===c?void 0:c.lineBorderColor)||H.semanticColors.bodyBackground,opacity:1})),D.push(i.createElement("path",(0,n.pi)({id:U,key:U,d:$(J),fill:"transparent","data-is-focusable":!0,stroke:F,strokeWidth:G,strokeLinecap:null!==(h=null===(f=T._points[t].lineOptions)||void 0===f?void 0:f.strokeLinecap)&&void 0!==h?h:"round",onMouseMove:T._onMouseOverLargeDataset.bind(T,t,_),onMouseOver:T._onMouseOverLargeDataset.bind(T,t,_),onMouseOut:T._handleMouseOut},T._getClickHandler(T._points[t].onLineClick),{opacity:1,role:"img","aria-label":"".concat(E,", series ").concat(t+1," of ").concat(T._points.length," with ").concat(T._points[t].data.length," data points.")})))}else D.push(i.createElement("path",{id:U,key:U,d:$(J),fill:"transparent","data-is-focusable":!0,stroke:F,strokeWidth:G,strokeLinecap:null!==(v=null===(d=T._points[t].lineOptions)||void 0===d?void 0:d.strokeLinecap)&&void 0!==v?v:"round",opacity:.1,role:"img","aria-label":"".concat(E,", series ").concat(t+1," of ").concat(T._points.length," with ").concat(T._points[t].data.length," data points.")}));var nt=null!==T.state.activeLine&&T.state.activeLine===t;P.push(i.createElement("circle",{id:"".concat(T._staticHighlightCircle,"_").concat(t),key:"".concat(T._staticHighlightCircle,"_").concat(t),r:5.5,cx:0,cy:0,fill:H.semanticColors.bodyBackground,strokeWidth:4,stroke:F,visibility:nt?"visibility":"hidden",onMouseMove:T._onMouseOverLargeDataset.bind(T,t,_),onMouseOver:T._onMouseOverLargeDataset.bind(T,t,_),onMouseOut:T._handleMouseOut}))}else if(!T.props.optimizeLargeData)for(var it=function(e){var r=T._checkInGap(e,q,Y),o=r.isInGap;Y=r.gapIndex;var u="".concat(T._lineId,"_").concat(t,"_").concat(e),a="".concat(T._borderId,"_").concat(t,"_").concat(e),s="".concat(T._circleId,"_").concat(t,"_").concat(e),l=T._points[t].data[e-1],c=l.x,f=l.y,h=l.xAxisCalloutData,d=l.xAxisCalloutAccessibilityData,v=T._points[t].data[e],A=v.x,I=v.y,W=T._getPath(T._xAxisScale(c),T._yAxisScale(f),s,e,!1,T._points[t].index),R=(null===(p=T._points[t].lineOptions)||void 0===p?void 0:p.strokeWidth)||T.props.strokeWidth||4,z=T._legendHighlighted(E)||T._noLegendHighlighted()||T.state.isSelectedLegend,j=T._points[t].hideNonActiveDots&&B!==s;if(P.push(i.createElement("path",(0,n.pi)({id:s,key:s,d:W,"data-is-focusable":!0,onMouseOver:T._handleHover.bind(T,c,f,_,h,s,d),onMouseMove:T._handleHover.bind(T,c,f,_,h,s,d),onMouseOut:T._handleMouseOut,onFocus:function(){return N._handleFocus(u,c,h,s,d)},onBlur:T._handleMouseOut},T._getClickHandler(T._points[t].data[e-1].onDataPointClick),{opacity:z&&!j?1:.01,fill:T._getPointFill(F,s,e,!1),stroke:F,strokeWidth:R,role:"img","aria-label":T._getAriaLabel(t,e-1)}))),e+1===T._points[t].data.length){var X="".concat(s).concat(e,"L"),$="".concat(s).concat(e,"D"),U=T._points[t].hideNonActiveDots&&B!==X;W=T._getPath(T._xAxisScale(A),T._yAxisScale(I),X,e,!0,T._points[t].index);var Z=T._points[t].data[e],G=Z.xAxisCalloutData,K=Z.xAxisCalloutAccessibilityData;P.push(i.createElement(i.Fragment,{key:"".concat(X,"_container")},i.createElement("path",(0,n.pi)({id:X,key:X,d:W,"data-is-focusable":!0,onMouseOver:T._handleHover.bind(T,A,I,_,G,X,K),onMouseMove:T._handleHover.bind(T,A,I,_,G,X,K),onMouseOut:T._handleMouseOut,onFocus:function(){return N._handleFocus(u,A,G,X,K)},onBlur:T._handleMouseOut},T._getClickHandler(T._points[t].data[e].onDataPointClick),{opacity:z&&!U?1:.01,fill:T._getPointFill(F,X,e,!0),stroke:F,strokeWidth:R,role:"img","aria-label":T._getAriaLabel(t,e)})),i.createElement("circle",{id:$,key:$,r:8,cx:T._xAxisScale(A),cy:T._yAxisScale(I),opacity:0,width:0,onMouseOver:T._handleHover.bind(T,A,I,_,G,X,K),onMouseMove:T._handleHover.bind(T,A,I,_,G,X,K),onMouseOut:T._handleMouseOut,strokeWidth:0,focusable:!1,onBlur:T._handleMouseOut})))}if(z){if(!o){var J=(null===(g=T._points[t].lineOptions)||void 0===g?void 0:g.lineBorderWidth)?Number.parseFloat(T._points[t].lineOptions.lineBorderWidth.toString()):0;J>0&&O.push(i.createElement("line",{id:a,key:a,x1:T._xAxisScale(c),y1:T._yAxisScale(f),x2:T._xAxisScale(A),y2:T._yAxisScale(I),strokeLinecap:null!==(y=null===(m=T._points[t].lineOptions)||void 0===m?void 0:m.strokeLinecap)&&void 0!==y?y:"round",strokeWidth:Number.parseFloat(R.toString())+J,stroke:(null===(b=T._points[t].lineOptions)||void 0===b?void 0:b.lineBorderColor)||H.semanticColors.bodyBackground,opacity:1})),D.push(i.createElement("line",(0,n.pi)({id:u,key:u,x1:T._xAxisScale(c),y1:T._yAxisScale(f),x2:T._xAxisScale(A),y2:T._yAxisScale(I),strokeWidth:R,ref:function(t){N._refCallback(t,u)},onMouseOver:T._handleHover.bind(T,c,f,_,h,s,d),onMouseMove:T._handleHover.bind(T,c,f,_,h,s,d),onMouseOut:T._handleMouseOut,stroke:F,strokeLinecap:null!==(w=null===(x=T._points[t].lineOptions)||void 0===x?void 0:x.strokeLinecap)&&void 0!==w?w:"round",strokeDasharray:null===(C=T._points[t].lineOptions)||void 0===C?void 0:C.strokeDasharray,strokeDashoffset:null===(M=T._points[t].lineOptions)||void 0===M?void 0:M.strokeDashoffset,opacity:1},T._getClickHandler(T._points[t].onLineClick))))}}else o||D.push(i.createElement("line",{id:u,key:u,x1:T._xAxisScale(c),y1:T._yAxisScale(f),x2:T._xAxisScale(A),y2:T._yAxisScale(I),strokeWidth:R,stroke:F,strokeLinecap:null!==(L=null===(k=T._points[t].lineOptions)||void 0===k?void 0:k.strokeLinecap)&&void 0!==L?L:"round",strokeDasharray:null===(V=T._points[t].lineOptions)||void 0===V?void 0:V.strokeDasharray,strokeDashoffset:null===(S=T._points[t].lineOptions)||void 0===S?void 0:S.strokeDashoffset,opacity:.1}))},et=1;et<T._points[t].data.length;et++)it(et);A.push.apply(A,(0,n.ev)((0,n.ev)((0,n.ev)([],O,!1),D,!1),P,!1))},T=this,O=this._points.length-1;O>=0;O--)D(O);var P=Xr(this.props.styles,{theme:this.props.theme});if(!this.props.showXAxisLablesTooltip)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}if(!this.props.wrapXAxisLables&&this.props.showXAxisLablesTooltip){var E=(0,dr.Ys)(t).call(this._xAxisScale);try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}var F={tooltipCls:P.tooltip,id:this._tooltipId,xAxis:E};E&&(0,zn.$V)(F)}return A},e.prototype._refCallback=function(t,n){this._refArray.push({index:n,refElement:t})},e.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.lineChartData&&this.props.data.lineChartData.length>0&&this.props.data.lineChartData.filter((function(t){return t.data.length})).length>0)},e.defaultProps={enableReflow:!0},e}(i.Component),$r=(0,t.z)(qr,(function(t){return{tooltip:(0,n.pi)((0,n.pi)({},t.theme.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:t.theme.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"})}})),Ur=e(8957);function Zr(t,n){if((r=t.length)>1)for(var i,e,r,o=1,u=t[n[0]],a=u.length;o<r;++o)for(e=u,u=t[n[o]],i=0;i<a;++i)u[i][1]+=u[i][0]=isNaN(e[i][1])?e[i][0]:e[i][1]}function Gr(t){for(var n=t.length,i=new Array(n);--n>=0;)i[n]=n;return i}function Kr(t,n){return t[n]}function Jr(t){const n=[];return n.key=t,n}function Qr(t,n,i){var e=null,r=be(!0),o=null,u=gr,a=null,s=Re(l);function l(l){var c,f,h,d,v,p=(l=ye(l)).length,g=!1,m=new Array(p),y=new Array(p);for(null==o&&(a=u(v=s())),c=0;c<=p;++c){if(!(c<p&&r(d=l[c],c,l))===g)if(g=!g)f=c,a.areaStart(),a.lineStart();else{for(a.lineEnd(),a.lineStart(),h=c-1;h>=f;--h)a.point(m[h],y[h]);a.lineEnd(),a.areaEnd()}g&&(m[c]=+t(d,c,l),y[c]=+n(d,c,l),a.point(e?+e(d,c,l):m[c],i?+i(d,c,l):y[c]))}if(v)return a=null,v+""||null}function c(){return br().defined(r).curve(u).context(o)}return t="function"==typeof t?t:void 0===t?mr:be(+t),n="function"==typeof n?n:be(void 0===n?0:+n),i="function"==typeof i?i:void 0===i?yr:be(+i),l.x=function(n){return arguments.length?(t="function"==typeof n?n:be(+n),e=null,l):t},l.x0=function(n){return arguments.length?(t="function"==typeof n?n:be(+n),l):t},l.x1=function(t){return arguments.length?(e=null==t?null:"function"==typeof t?t:be(+t),l):e},l.y=function(t){return arguments.length?(n="function"==typeof t?t:be(+t),i=null,l):n},l.y0=function(t){return arguments.length?(n="function"==typeof t?t:be(+t),l):n},l.y1=function(t){return arguments.length?(i=null==t?null:"function"==typeof t?t:be(+t),l):i},l.lineX0=l.lineY0=function(){return c().x(t).y(n)},l.lineY1=function(){return c().x(t).y(i)},l.lineX1=function(){return c().x(e).y(n)},l.defined=function(t){return arguments.length?(r="function"==typeof t?t:be(!!t),l):r},l.curve=function(t){return arguments.length?(u=t,null!=o&&(a=u(o)),l):u},l.context=function(t){return arguments.length?(null==t?o=a=null:a=u(o=t),l):o},l}function to(t){return t<0?-1:1}function no(t,n,i){var e=t._x1-t._x0,r=n-t._x1,o=(t._y1-t._y0)/(e||r<0&&-0),u=(i-t._y1)/(r||e<0&&-0),a=(o*r+u*e)/(e+r);return(to(o)+to(u))*Math.min(Math.abs(o),Math.abs(u),.5*Math.abs(a))||0}function io(t,n){var i=t._x1-t._x0;return i?(3*(t._y1-t._y0)/i-n)/2:n}function eo(t,n,i){var e=t._x0,r=t._y0,o=t._x1,u=t._y1,a=(o-e)/3;t._context.bezierCurveTo(e+a,r+a*n,o-a,u-a*i,o,u)}function ro(t){this._context=t}function oo(t){this._context=t}function uo(t){return new ro(t)}ro.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:eo(this,this._t0,io(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,n){var i=NaN;if(n=+n,(t=+t)!==this._x1||n!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3,eo(this,io(this,i=no(this,t,n)),i);break;default:eo(this,this._t0,i=no(this,t,n))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=n,this._t0=i}}},(function(t){this._context=new oo(t)}.prototype=Object.create(ro.prototype)).point=function(t,n){ro.prototype.point.call(this,n,t)},oo.prototype={moveTo:function(t,n){this._context.moveTo(n,t)},closePath:function(){this._context.closePath()},lineTo:function(t,n){this._context.lineTo(n,t)},bezierCurveTo:function(t,n,i,e,r,o){this._context.bezierCurveTo(n,t,e,i,o,r)}};var ao,so=(0,o.y)(),lo=(0,vr.Z)((function(t){return t.x})).left;!function(t){t.show="visibility",t.hide="hidden"}(ao||(ao={}));var co=function(t){function e(e){var r=t.call(this,e)||this;return r._getMargins=function(t){r.margins=t},r._onRectMouseMove=function(t){t.persist();var n=r.props.data.lineChartData,i=r._xAxisRectScale.invert((0,dr.Eb)(document.getElementById(r._rectId),t)[0]),e=lo(n[0].data,i),o=n[0].data[e-1],u=n[0].data[e],a=null,s=null,l=null;if(void 0===o&&void 0!==u)s=u.x,l=e;else if(void 0!==o&&void 0===u)s=o.x,l=e-1;else{var c=void 0,f=void 0,h=void 0;switch(a=(0,zn.SY)(n[0].data[0].x,!0)){case zn.xl.DateAxis:c=new Date(i).getTime(),f=o.x.getTime(),h=u.x.getTime(),s=Math.abs(c-f)>Math.abs(c-h)?u.x:o.x,l=Math.abs(c-f)>Math.abs(c-h)?e:e-1;break;case zn.xl.NumericAxis:c=i,f=o.x,h=u.x,s=Math.abs(c-f)>Math.abs(c-h)?u.x:o.x,l=Math.abs(c-f)>Math.abs(c-h)?e:e-1}}var d=n[0].data[l],v=d.xAxisCalloutData,p=d.xAxisCalloutAccessibilityData,g=s instanceof Date?s.toLocaleString():s,y=s instanceof Date?s.getTime():s,b=m(r._calloutPoints,(function(t){return t.x===y})),x=a===zn.xl.DateAxis?s.getTime():s,w=r.state.nearestCircleToHighlight!==x;b&&w&&!r.state.isShowCalloutPending&&r.setState({nearestCircleToHighlight:x,isCalloutVisible:!1,isShowCalloutPending:!0,lineXValue:r._xAxisRectScale(s),displayOfLine:ao.show,isCircleClicked:!1,stackCalloutProps:b,YValueHover:b.values,dataPointCalloutProps:b,hoverXValue:v||g,xAxisCalloutAccessibilityData:p,activePoint:""}),b||r.setState({isCalloutVisible:!1,nearestCircleToHighlight:x,displayOfLine:ao.hide,isCircleClicked:!1})},r._onRectMouseOut=function(){},r._handleChartMouseLeave=function(){r.setState({refSelected:null,isCalloutVisible:!1,nearestCircleToHighlight:null,lineXValue:0,displayOfLine:ao.hide,isCircleClicked:!1,stackCalloutProps:void 0,dataPointCalloutProps:void 0,hoverXValue:void 0,YValueHover:[]})},r._getStackedData=function(t,n){var i=function(){var t=be([]),n=Gr,i=Zr,e=Kr;function r(r){var o,u,a=Array.from(t.apply(this,arguments),Jr),s=a.length,l=-1;for(const t of r)for(o=0,++l;o<s;++o)(a[o][l]=[0,+e(t,a[o].key,l,r)]).data=t;for(o=0,u=ye(n(a));o<s;++o)a[u[o]].index=o;return i(a,u),a}return r.keys=function(n){return arguments.length?(t="function"==typeof n?n:be(Array.from(n)),r):t},r.value=function(t){return arguments.length?(e="function"==typeof t?t:be(+t),r):e},r.order=function(t){return arguments.length?(n=null==t?Gr:"function"==typeof t?t:be(Array.from(t)),r):n},r.offset=function(t){return arguments.length?(i=null==t?Zr:t,r):i},r}().keys(t)(n),e=(0,Ur.Z)(i[i.length-1],(function(t){return t[1]})),o=[];return i.forEach((function(t){var n=[];t.forEach((function(t){n.push({values:t,xVal:t.data.xVal})})),o.push(n)})),r._isMultiStackChart=!!(o&&o.length>1),{stackedData:o,maxOfYVal:e}},r._createDataSet=function(t){if(r.props.enablePerfOptimization&&r._enableComputationOptimization){var n=[],i=[],e=[],o=[],u=(0,zn.Wx)(t);t&&t.length&&t.forEach((function(t){e.push(t.color),o.push(t.opacity||1),n.push.apply(n,t.data)}));var a={};n.forEach((function(t){var n=t.x instanceof Date?t.x.toLocaleString():t.x;a[n]?a[n].push(t):a[n]=[t]})),Object.keys(a).forEach((function(t){var n=a[t],e={};n.forEach((function(t,n){e.xVal=t.x,e["chart".concat(n)]=t.y})),i.push(e)}));for(var s=i&&Object.keys(i[0]).length,l=[],c=0;c<s-1;c++){var f="chart".concat(c);l.push(f)}var h=r._getStackedData(l,i);return{colors:e,opacity:o,keys:l,stackedInfo:h,calloutPoints:u}}var d=[],v=[],p=[],g=[];u=(0,zn.Wx)(t),t&&t.length&&t.forEach((function(t){p.push(t.color),g.push(t.opacity||1),d.push.apply(d,t.data)}));for(var m=d,y=function(){var t=m[0].x instanceof Date?m[0].x.toLocaleString():m[0].x,n=m.filter((function(n){return(n.x instanceof Date?n.x.toLocaleString():n.x)===t})),i={};n.forEach((function(t,n){i.xVal=t.x,i["chart".concat(n)]=t.y})),v.push(i);var e=m[0].x instanceof Date?m[0].x.toLocaleString():m[0].x;m=m.filter((function(t){return(t.x instanceof Date?t.x.toLocaleString():t.x)!==e}))};m.length;)y();for(s=v&&Object.keys(v[0]).length,l=[],c=0;c<s-1;c++)f="chart".concat(c),l.push(f);return h=r._getStackedData(l,v),{colors:p,opacity:g,keys:l,stackedInfo:h,calloutPoints:u}},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(t,n,i,e,o){r._chart=r._drawGraph(i,t,n,o)},r._getLegendData=function(t){var e=[];return t.forEach((function(t){var n=t.color;if(!(e.filter((function(i){return i.title===t.legend&&i.color===n})).length>0)){var i={title:t.legend,color:n,action:function(){r._onLegendClick(t.legend)},hoverAction:function(){r._handleChartMouseLeave(),r._onLegendHover(t.legend)},onMouseOutAction:function(){r._onLegendLeave()}};e.push(i)}})),i.createElement(me,(0,n.pi)({legends:e,overflowProps:r.props.legendsOverflowProps,enabledWrapLines:r.props.enabledLegendsWrapLines,focusZonePropsInHoverCard:r.props.focusZonePropsForLegendsInHoverCard},r.props.legendProps))},r._onDataPointClick=function(t){t&&t(),r.setState({isCircleClicked:!0})},r._getOpacity=function(t){return r._isMultiStackChart?r._legendHighlighted(t)||r._noLegendHighlighted()?.7:.1:.7},r._getLineOpacity=function(t){if(r._isMultiStackChart){var n=.3;return r.state.isCalloutVisible&&(n=1),r._noLegendHighlighted()||(n=r._legendHighlighted(t)?0:.1),n}return 1},r._updateCircleFillColor=function(t,n,i){var e=n;return r.state.nearestCircleToHighlight!==t&&r.state.activePoint!==i||(r._highlightedCircleId=i,r.state.isCircleClicked||(e=r.props.theme.semanticColors.bodyBackground)),e},r._drawGraph=function(t,e,o,u){var a,s=r._addDefaultColors(r.props.data.lineChartData),l=r.props.data,c=l.pointOptions,f=l.pointLineOptions,h=Qr().x((function(t){return e(t.xVal)})).y0((function(t){return o(t.values[0])})).y1((function(t){return o(t.values[1])})).curve(uo),d=br().x((function(t){return e(t.xVal)})).y((function(t){return o(t.values[1])})).curve(uo),v=[];r._stackedData.forEach((function(t,u){v.push(i.createElement(i.Fragment,{key:"".concat(u,"-graph-").concat(r._uniqueIdForGraph)},i.createElement("path",(0,n.pi)({id:"".concat(u,"-line-").concat(r._uniqueIdForGraph),d:d(t),fill:"transparent",strokeWidth:3,stroke:r._colors[u],opacity:r._getLineOpacity(s[u].legend),onMouseMove:r._onRectMouseMove,onMouseOut:r._onRectMouseOut,onMouseOver:r._onRectMouseMove},s[u].lineOptions)),1===t.length?i.createElement("circle",{id:"".concat(u,"-graph-").concat(r._uniqueIdForGraph),cx:e(t[0].xVal),cy:o(t[0].values[1]),r:6,stroke:r._colors[u],strokeWidth:3,fill:r._colors[u],opacity:r._opacity[u],fillOpacity:r._getOpacity(s[u].legend),onMouseMove:r._onRectMouseMove,onMouseOut:r._onRectMouseOut,onMouseOver:r._onRectMouseMove}):i.createElement("path",(0,n.pi)({id:"".concat(u,"-graph-").concat(r._uniqueIdForGraph),d:h(t),fill:r._colors[u],opacity:r._opacity[u],fillOpacity:r._getOpacity(s[u].legend),onMouseMove:r._onRectMouseMove,onMouseOut:r._onRectMouseOut,onMouseOver:r._onRectMouseMove},r.props.optimizeLargeData&&{"data-is-focusable":r._legendHighlighted(s[u].legend)||r._noLegendHighlighted(),role:"img","aria-label":"".concat(s[u].legend,", series ").concat(u+1," of ").concat(s.length," with ").concat(s[u].data.length," data points.")}))))}));var p=c&&c.r?Number(c.r):8;r._stackedData.forEach((function(t,u){s.length!==u&&(r.props.optimizeLargeData&&1!==t.length?t.forEach((function(t,l){var f=t.xVal instanceof Date?t.xVal.getTime():t.xVal;if(r.state.nearestCircleToHighlight===f){var h="".concat(r._circleId,"_").concat(u*r._stackedData[0].length+l);a=s[u].color,v.push(i.createElement("circle",(0,n.pi)({key:h,id:h,cx:e(t.xVal),cy:o(t.values[1]),stroke:a,strokeWidth:3,fill:r._updateCircleFillColor(f,a,h),onMouseOut:r._onRectMouseOut,onMouseOver:r._onRectMouseMove,onClick:r._onDataPointClick.bind(r,s[u].data[l].onDataPointClick)},c,{r:r._getCircleRadius(f,p,h)})))}})):v.push(i.createElement("g",{key:"".concat(u,"-dots-").concat(r._uniqueIdForGraph),d:h(t),clipPath:"url(#clip)"},t.map((function(t,l){var f="".concat(r._circleId,"_").concat(u*r._stackedData[0].length+l),h=t.xVal instanceof Date?t.xVal.getTime():t.xVal;return a=s[u].color,i.createElement("circle",(0,n.pi)({key:f,id:f,"data-is-focusable":r._legendHighlighted(s[u].legend)||r._noLegendHighlighted(),cx:e(t.xVal),cy:o(t.values[1]),stroke:a,strokeWidth:3,fill:r._updateCircleFillColor(h,a,f),onMouseOut:r._onRectMouseOut,onMouseOver:r._onRectMouseMove,onClick:r._onDataPointClick.bind(r,s[u].data[l].onDataPointClick),onFocus:function(){return r._handleFocus(u,l,f)},onBlur:r._handleBlur},c,{r:r._getCircleRadius(h,p,f),role:"img","aria-label":r._getAriaLabel(u,l)}))})))))})),v.push(i.createElement("line",(0,n.pi)({id:r._verticalLineId,key:r._verticalLineId,x1:r.state.lineXValue,y1:0,x2:r.state.lineXValue,y2:t,strokeWidth:1,strokeDasharray:5.5,stroke:a,opacity:.5,visibility:r.state.displayOfLine},f)));var g=so(r.props.styles,{theme:r.props.theme});if(!r.props.showXAxisLablesTooltip)try{document.getElementById(r._tooltipId)&&document.getElementById(r._tooltipId).remove()}catch(t){}if(!r.props.wrapXAxisLables&&r.props.showXAxisLablesTooltip){var m=(0,dr.Ys)(u).call(e);try{document.getElementById(r._tooltipId)&&document.getElementById(r._tooltipId).remove()}catch(t){}var y={tooltipCls:g.tooltip,id:r._tooltipId,xAxis:m};m&&(0,zn.$V)(y)}return v},r._getCircleRadius=function(t,n,i){var e=r.state,o=e.isCircleClicked,u=e.nearestCircleToHighlight,a=e.activePoint;return o&&u===t?1:u===t||a===i?n:0},r._closeCallout=function(){r.setState({isCalloutVisible:!1})},r._legendHighlighted=function(t){return r.state.selectedLegend===t||""===r.state.selectedLegend&&r.state.activeLegend===t},r._noLegendHighlighted=function(){return""===r.state.selectedLegend&&""===r.state.activeLegend},r._addDefaultColors=function(t){return t?t.map((function(t,i){var e,o,u;return u=void 0===t.color?sr(i,0,null===(e=r.props.theme)||void 0===e?void 0:e.isInverted):lr(t.color,null===(o=r.props.theme)||void 0===o?void 0:o.isInverted),(0,n.pi)((0,n.pi)({},t),{color:u})})):[]},r._handleFocus=function(t,n,i){var e=r.props.data.lineChartData[t].data[n],o=e.x,u=e.y,a=e.xAxisCalloutData,s=o instanceof Date?o.toLocaleString():o,l=o instanceof Date?o.getTime():o,c=r._calloutPoints.find((function(t){return t.x===l}));c.values=c.values.filter((function(t){return t.y===u})),r.setState({refSelected:"#".concat(i),isCalloutVisible:!0,hoverXValue:a||s,YValueHover:c.values,stackCalloutProps:c,dataPointCalloutProps:c,activePoint:i})},r._handleBlur=function(){r.setState({refSelected:null,isCalloutVisible:!1,hoverXValue:void 0,YValueHover:[],stackCalloutProps:void 0,dataPointCalloutProps:void 0,activePoint:""})},r._createSet=(0,fn.NF)(r._createDataSet),r.state={selectedLegend:"",activeLegend:"",hoverXValue:"",isCalloutVisible:!1,refSelected:null,YValueHover:[],lineXValue:0,displayOfLine:ao.hide,isCircleClicked:!1,nearestCircleToHighlight:null,isShowCalloutPending:!1,activePoint:""},r._uniqueIdForGraph=v("areaChart_"),r._verticalLineId=v("verticalLine_"),r._circleId=v("circle"),r._rectId=v("rectangle"),r._tooltipId=v("AreaChartTooltipID"),r._enableComputationOptimization=!0,r._firstRenderOptimization=!0,r._emptyChartId=v("_AreaChart_empty"),r}return(0,n.ZT)(e,t),e.prototype.componentDidUpdate=function(){this.state.isShowCalloutPending&&this.setState({refSelected:"#".concat(this._highlightedCircleId),isCalloutVisible:!0,isShowCalloutPending:!1})},e.prototype.render=function(){var t=this;if(!this._isChartEmpty()){var e=this.props.data,r=e.lineChartData,o=e.chartTitle,u=this._addDefaultColors(r),a=this._createSet(u),s=a.colors,l=a.opacity,c=a.stackedInfo,f=a.calloutPoints;this._calloutPoints=f;var h=(0,zn.V4)(u);this._colors=s,this._opacity=l,this._stackedData=c.stackedData;var d=this._getLegendData(u),v={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat},p=(0,n.pi)({target:this.state.refSelected,isCalloutVisible:this.state.isCalloutVisible,directionalHint:y.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 i.createElement(Nr,(0,n.pi)({},this.props,{chartTitle:o,points:u,chartType:zn.$X.AreaChart,calloutProps:p,legendBars:d,isCalloutForStack:!0,xAxisType:h?zn.xl.DateAxis:zn.xl.NumericAxis,tickParams:v,maxOfYVal:c.maxOfYVal,getGraphData:this._getGraphData,getmargins:this._getMargins,customizedCallout:this._getCustomizedCallout(),onChartMouseLeave:this._handleChartMouseLeave,enableFirstRenderOptimization:this.props.enablePerfOptimization&&this._firstRenderOptimization,children:function(n){t._xAxisRectScale=n.xScale;var e=t._xAxisRectScale.ticks(),r=t._xAxisRectScale(e[e.length-1]),o=n.containerHeight-t.margins.top;return i.createElement(i.Fragment,null,i.createElement("g",null,i.createElement("rect",{id:t._rectId,width:r,height:o,fill:"transparent",onMouseMove:t._onRectMouseMove,onMouseOut:t._onRectMouseOut,onMouseOver:t._onRectMouseMove})),i.createElement("g",null,t._chart))}}))}return i.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"})},e.prototype._onLegendClick=function(t){this.state.selectedLegend===t?this.setState({selectedLegend:""}):this.setState({selectedLegend:t})},e.prototype._onLegendHover=function(t){this.setState({activeLegend:t})},e.prototype._onLegendLeave=function(){this.setState({activeLegend:""})},e.prototype._getAriaLabel=function(t,n){var i,e=this.props.data.lineChartData[t],r=e.data[n],o=r.x instanceof Date?r.x.toLocaleString():r.x,u=r.xAxisCalloutData||o,a=e.legend,s=r.yAxisCalloutData||r.y;return(null===(i=r.callOutAccessibilityData)||void 0===i?void 0:i.ariaLabel)||"".concat(u,". ").concat(a,", ").concat(s,".")},e.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.lineChartData&&this.props.data.lineChartData.length>0&&0===this.props.data.lineChartData.filter((function(t){return 0===t.data.length})).length)},e}(i.Component),fo=(0,t.z)(co,(function(t){return{tooltip:(0,n.pi)((0,n.pi)({},t.theme.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:t.theme.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"})}})),ho=e(5795),vo=function(t,n){var i=t.color;return{arcRoot:{fill:i},arcRootFocussed:{fill:i,stroke:(null==n?void 0:n.palette.black)||jt.UK.black,strokeWidth:2},arc:{outline:"none"},arcText:{fill:(null==n?void 0:n.palette.black)||jt.UK.black,outline:"none"}}},po=function(t){function e(n){var i=t.call(this,n)||this;return i.updateChart=function(t){mo(t)},i._onFocus=function(){i.setState({isArcFocused:!0})},i._onBlur=function(){i.setState({isArcFocused:!1})},i.state={isArcFocused:!1},i._arcId=v("piechart_arc"),i}return(0,n.ZT)(e,t),e.getDerivedStateFromProps=function(t){return mo(t),null},e.prototype.render=function(){var t,e=this,r=this.props.arc,u=(0,o.y)()((function(t){return vo(t,e.props.theme)}),(0,n.pi)({},this.props));return i.createElement("path",{d:r(this.props.data),className:"".concat(this.state.isArcFocused?u.arcRootFocussed:u.arcRoot),onClick:null===(t=this.props.data)||void 0===t?void 0:t.data.onClick})},e.defaultProps={arc:Ue()},e}(i.Component),go=function(t){function e(n){var i=t.call(this,n)||this;return i._isRTL=(0,u.zg)(),i._arcId=v("piechart_arc"),i}return(0,n.ZT)(e,t),e.prototype.render=function(){var n,e,r=this,u=this.props,a=u.data,s=u.culture,l=Ue().centroid({endAngle:(null==a?void 0:a.endAngle)||0,startAngle:(null==a?void 0:a.startAngle)||0,padAngle:null==a?void 0:a.padAngle,innerRadius:(null===(n=this.props)||void 0===n?void 0:n.outerRadius)||0,outerRadius:(null===(e=this.props)||void 0===e?void 0:e.outerRadius)||4}),c=l[0],f=l[1],h=(0,o.y)()((function(t){return vo(t,r.props.theme)})),d=(((null==a?void 0:a.startAngle)||0)+((null==a?void 0:a.endAngle)||0))/2,v="".concat(null==a?void 0:a.data.x,"-").concat((0,zn.Ts)(null==a?void 0:a.data.y,s));return i.createElement("g",{className:"".concat(h.arc," arc"),"data-is-focusable":!0,id:this._arcId,onFocus:this._onFocus,onBlur:this._onBlur,"aria-label":v,role:"img"},t.prototype.render.call(this),i.createElement(Mr,{content:v,textProps:{x:c,y:f,dominantBaseline:d>Math.PI/2&&d<3*Math.PI/2?"hanging":"auto",textAnchor:!this._isRTL&&d>Math.PI||this._isRTL&&d<Math.PI?"end":"start","aria-label":"".concat(null==a?void 0:a.data.x,"-").concat((0,zn.Ts)(null==a?void 0:a.data.y,s)),className:h.arcText},isTooltipVisibleProp:this.state.isArcFocused,shouldReceiveFocus:!1,maxWidth:40,wrapContent:zn.nX}))},e}(po);function mo(t){t.arc.innerRadius(t.innerRadius),t.arc.outerRadius(t.outerRadius)}var yo,bo=function(t){function e(n){var e=t.call(this,n)||this;return e.arcGenerator=function(t,n){return i.createElement(go,{culture:e.props.culture,key:n,data:t,innerRadius:e.props.innerRadius,outerRadius:e.props.outerRadius,color:"".concat(e.colors(n)),theme:e.props.theme})},e}return(0,n.ZT)(e,t),e.prototype.render=function(){var t=this,n=this.props,e=n.pie,r=n.data,o=n.width,u=n.height,a=n.chartTitle,s=n.theme,l=[];if(r&&!this.props.colors)for(var c=0;c<r.length;c++)l.push(sr(c,0,null==s?void 0:s.isInverted));var f=this.props.colors,h=void 0===f?l:f;this.colors=(0,ho.Z)().range(h.map((function(t){return lr(t)})));var d=e(r),v="translate(".concat(o/2,", ").concat(u/2,")");return i.createElement(fi,{direction:Rn.domOrder},i.createElement("svg",{width:o,height:u,"aria-label":a},i.createElement("g",{className:"pie",transform:v},d.map((function(n,i){return t.arcGenerator(n,i)})))))},e.defaultProps={pie:Ee().padAngle(.01).sort(null).value((function(t){return t.y}))},e}(i.Component),xo=(0,o.y)(),wo=function(t){function e(n){var i=t.call(this,n)||this;return i._emptyChartId=v("_PieChart_empty"),i}return(0,n.ZT)(e,t),e.prototype.render=function(){var t=this.props,n=t.data,e=t.width,r=t.height,o=t.colors,u=t.chartTitle,a=this.props,s=a.theme,l=a.className,c=a.styles,f=a.culture;this._classNames=xo(c,{theme:s,width:e,height:r,className:l});var h=Math.min(e-80,r-32)/2;return this._isChartEmpty()?i.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):i.createElement("div",{className:this._classNames.root},this.props.chartTitle&&i.createElement("p",{className:this._classNames.chartTitle},this.props.chartTitle),i.createElement(bo,{culture:f,width:e,height:r,outerRadius:h,innerRadius:1,data:n,colors:o,chartTitle:u,theme:s}))},e.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.length>0&&this.props.data.filter((function(t){return t.y>0})).length>0)},e.defaultProps={data:[],width:600,height:350},e}(i.Component),Co=(0,t.z)(wo,(function(t){var i=t.className,e=t.theme,r=t.width+30,o=t.height+10;return{root:[e.fonts.medium,"ms-PieChart",i,{width:r+40}],chart:[{padding:20,width:r,height:o,boxSizing:"content-box"}],chartTitle:[(0,n.pi)({textAlign:"center"},e.fonts.mediumPlus)]}})),Mo=(0,o.y)(),ko=function(t){function e(n){var e=t.call(this,n)||this;return e._isRTL=(0,u.zg)(),e._handleChartMouseLeave=function(){e._calloutAnchorPoint=null,e.setState({isCalloutVisible:!1})},e._closeCallout=function(){e.setState({isCalloutVisible:!1})},e._legendHighlighted=function(t){return e.state.selectedLegend===t||""===e.state.selectedLegend&&e.state.activeLegend===t},e._noLegendHighlighted=function(){return""===e.state.selectedLegend&&""===e.state.activeLegend},e._getAriaLabel=function(t){var n,i=t.xAxisCalloutData||t.legend,e=t.yAxisCalloutData||t.data||0;return(null===(n=t.callOutAccessibilityData)||void 0===n?void 0:n.ariaLabel)||(i?"".concat(i,", "):"")+"".concat(e,".")},e.state={isCalloutVisible:!1,selectedLegend:"",activeLegend:"",refSelected:null,dataForHoverCard:0,color:"",xCalloutValue:"",yCalloutValue:"",calloutLegend:"",barSpacingInPercent:0},e._refArray=[],e._onLeave=e._onLeave.bind(e),e._refCallback=e._refCallback.bind(e),e._onBarLeave=e._onBarLeave.bind(e),e._calloutId=v("callout"),e._emptyChartId=v("_SBC_empty"),e.barChartSvgRef=i.createRef(),e}return(0,n.ZT)(e,t),e.prototype.componentDidMount=function(){var t,n=(null===(t=this.barChartSvgRef.current)||void 0===t?void 0:t.getBoundingClientRect().width)||0;if(n){var i=3/n*100;this.setState({barSpacingInPercent:i})}},e.prototype.render=function(){if(!this._isChartEmpty()){this._adjustProps();var t=this.props,e=t.data,r=t.benchmarkData,o=t.targetData,u=t.hideNumberDisplay,a=t.ignoreFixStyle,s=t.culture,l=this.props.theme.palette,c=a||e.chartData.length>2?this.props.barHeight:12;r&&(r.color=r.color||l.neutralTertiary),o&&(o.color=o.color||l.neutralSecondary);var f=this._createBarsAndLegends(e,c,l,r,o),h=!1===u&&!a&&2===e.chartData.length,d=!1===u&&!a&&1===e.chartData.length,v=e.chartData.reduce((function(t,n){return t+(n.data?n.data:0)}),0),p=0;r&&v&&(p=r.data/v*100);var g=0;o&&v&&(g=o.data/v*100);var m=!1===this.props.hideLegend&&(a||e.chartData.length>2);this._classNames=Mo(this.props.styles,{legendColor:this.state.color,theme:this.props.theme,benchmarkColor:r?r.color:"",benchmarkRatio:p,targetColor:o?o.color:"",targetRatio:g,showTriangle:!(!r&&!o)});var b=function(){return(0,zn.Ts)(e.chartData[0].data?e.chartData[0].data:0,s)};return i.createElement("div",{className:this._classNames.root,onMouseLeave:this._handleChartMouseLeave},i.createElement(fi,{direction:Rn.horizontal},i.createElement("div",{className:this._classNames.chartTitle},e.chartTitle&&i.createElement(Mi,{className:this._classNames.chartTitleLeft,content:e.chartTitle,accessibilityData:e.chartTitleAccessibilityData}),h&&i.createElement("div",(0,n.pi)({},(0,zn.ey)(e.chartDataAccessibilityData,"text",!1)),i.createElement("span",{className:this._classNames.ratioNumerator},b()),!this.props.hideDenominator&&i.createElement("span",{className:this._classNames.ratioDenominator}," / "+(0,zn.Ts)(v,s))),d&&i.createElement("div",(0,n.pi)({className:this._classNames.ratioNumerator},(0,zn.ey)(e.chartDataAccessibilityData,"text",!1)),b())),(r||o)&&i.createElement("div",{className:this._classNames.benchmarkContainer},r&&i.createElement("div",{className:this._classNames.benchmark,role:"text"}),o&&i.createElement("div",{className:this._classNames.target,role:"text"}))),i.createElement(fi,{direction:Rn.horizontal},i.createElement("div",null,i.createElement("svg",{ref:this.barChartSvgRef,className:this._classNames.chart,"aria-label":null==e?void 0:e.chartTitle},i.createElement("g",null,f[0]),i.createElement(Wn,(0,n.pi)({gapSpace:15,isBeakVisible:!1,target:this.state.refSelected,setInitialFocus:!0,hidden:!(!this.props.hideTooltip&&this.state.isCalloutVisible),directionalHint:y.topAutoEdge,id:this._calloutId,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0,shouldUpdateWhenHidden:!0},this.props.calloutProps,(0,zn.ey)(this.state.callOutAccessibilityData,"text",!1)),i.createElement(i.Fragment,null,this.props.onRenderCalloutPerDataPoint?this.props.onRenderCalloutPerDataPoint(this.state.dataPointCalloutProps):i.createElement(jn.ChartHoverCard,{Legend:this.state.xCalloutValue?this.state.xCalloutValue:this.state.calloutLegend,YValue:this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard,color:this.state.color,culture:s})))))),m&&i.createElement("div",{className:this._classNames.legendContainer},f[1]))}return i.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"})},e.prototype._adjustProps=function(){this._classNames=Mo(this.props.styles,{legendColor:this.state.color,theme:this.props.theme,width:this.props.width,barHeight:this.props.barHeight,className:this.props.className})},e.prototype._createBarsAndLegends=function(t,e,r,o,u){var a,s=this,l=(null===(a=t.chartData)||void 0===a?void 0:a.reduce((function(t,n){return t+((n.data||0)>0?1:0)}),0))||1,c=this.state.barSpacingInPercent*(l-1),f=[r.blueLight,r.blue,r.blueMid,r.red,r.black],h=[],d=[],p=t.chartData.reduce((function(t,n){return t+(n.data?n.data:0)}),0),g=0,m=0,y=0;t.chartData.map((function(t,n){var i=t.data?t.data:0;return(m=i/p*100)<1&&0!==m?m=1:m>99&&100!==m&&(m=99),y+=m}));var b=0!==y?y/(100-c):1,x=t.chartData.map((function(t,n){var r=t.color?t.color:f[Math.floor(4*Math.random()+1)],o=t.data?t.data:0,u={title:t.legend,color:r,action:p>0?function(){s._onClick(t.legend)}:void 0,hoverAction:p>0?function(){s._handleChartMouseLeave(),s._onHover(t.legend)}:void 0,onMouseOutAction:p>0?function(){s._onLeave()}:void 0};t.placeHolder||h.push(u),n>0&&(g+=m),(m=o/p*100)<1&&0!==m?m=1/b:m>99&&100!==m?m=99/b:m/=b,d.push(g);var a=s.props.styles,l=!(!s._legendHighlighted(t.legend)&&!s._noLegendHighlighted());return s._classNames=Mo(a,{theme:s.props.theme,shouldHighlight:l,href:s.props.href}),i.createElement("g",{key:n,className:s._classNames.opacityChangeOnHover,ref:function(t){s._refCallback(t,u.title)},"data-is-focusable":!s.props.hideTooltip,onFocus:s._onBarFocus.bind(s,o,r,t),onBlur:s._onBarLeave,"aria-label":s._getAriaLabel(t),role:"img",onMouseOver:s._onBarHover.bind(s,o,r,t),onMouseMove:s._onBarHover.bind(s,o,r,t),onMouseLeave:s._onBarLeave,pointerEvents:"all",onClick:s.props.href?s._redirectToUrl.bind(s,s.props.href):t.onClick},i.createElement("rect",{key:n,id:v("_SBC_bar"),x:"".concat(s._isRTL?100-d[n]-m-s.state.barSpacingInPercent*n:d[n]+s.state.barSpacingInPercent*n,"%"),y:0,width:m+"%",height:e,fill:r}))}));this._addLegend(h,o),this._addLegend(h,u);var w=i.createElement(me,(0,n.pi)({legends:h,enabledWrapLines:this.props.enabledLegendsWrapLines,overflowProps:this.props.legendsOverflowProps,focusZonePropsInHoverCard:this.props.focusZonePropsForLegendsInHoverCard,overflowText:this.props.legendsOverflowText},this.props.legendProps));return[0===p?[this._generateEmptyBar(e,this.props.barBackgroundColor?this.props.barBackgroundColor:r.neutralLight)]:x,w]},e.prototype._onBarFocus=function(t,n,i){var e=this;this._refArray.forEach((function(r){r.index===i.legend&&e.setState({refSelected:r.refElement,isCalloutVisible:""===e.state.selectedLegend||e.state.selectedLegend===i.legend,calloutLegend:i.legend,dataForHoverCard:t,color:n,xCalloutValue:i.xAxisCalloutData,yCalloutValue:i.yAxisCalloutData,dataPointCalloutProps:i,callOutAccessibilityData:i.callOutAccessibilityData})}))},e.prototype._addLegend=function(t,n){if(n){var i={title:n.legend,color:n.color,shape:"triangle"};t.push(i)}},e.prototype._generateEmptyBar=function(t,n){return i.createElement("g",{key:0,className:this._classNames.opacityChangeOnHover},i.createElement("rect",{key:0,id:v("_SBC_empty_bar_"),x:"0%",y:0,width:"100%",height:t,fill:n}))},e.prototype._refCallback=function(t,n){this._refArray.push({index:n,refElement:t})},e.prototype._onClick=function(t){this.state.selectedLegend===t?this.setState({selectedLegend:""}):this.setState({selectedLegend:t})},e.prototype._onHover=function(t){this.setState({activeLegend:t})},e.prototype._onLeave=function(){this.setState({activeLegend:""})},e.prototype._onBarHover=function(t,n,i,e){e.persist(),this._calloutAnchorPoint!==i&&(this._calloutAnchorPoint=i,this.setState({refSelected:e,isCalloutVisible:""===this.state.selectedLegend||this.state.selectedLegend===i.legend,calloutLegend:i.legend,dataForHoverCard:t,color:n,xCalloutValue:i.xAxisCalloutData,yCalloutValue:i.yAxisCalloutData,dataPointCalloutProps:i,callOutAccessibilityData:i.callOutAccessibilityData}))},e.prototype._onBarLeave=function(){},e.prototype._redirectToUrl=function(t){t&&(window.location.href=t)},e.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.chartData&&this.props.data.chartData.length>0)},e.defaultProps={barHeight:12,hideNumberDisplay:!1,hideLegend:!1,ignoreFixStyle:!1},e}(i.Component),Lo=(0,t.z)(ko,(function(t){var i,e,r=t.className,o=t.width,u=t.barHeight,a=t.shouldHighlight,s=t.theme,l=t.href,c=t.benchmarkColor,f=t.benchmarkRatio,h=t.targetColor,d=t.targetRatio,v=t.showTriangle;return{root:[s.fonts.medium,"ms-StackedBarChart",{width:o||"100%",display:"flex",flexDirection:"column"},r],chart:{width:"100%",height:u||12,display:"block",marginBottom:v?"16px":"10px",overflow:"visible"},chartTitle:(0,n.pi)((0,n.pi)({},s.fonts.small),{display:"flex",justifyContent:"space-between"}),chartTitleLeft:{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",display:"block",color:s.palette.neutralPrimary,marginBottom:"5px"},legendContainer:{margin:"4px 0px 0px 4px"},opacityChangeOnHover:{opacity:a?"":"0.1",cursor:l?"pointer":"default",selectors:{"&:focus":{stroke:s.palette.black,strokeWidth:"2px"}}},ratioNumerator:{fontSize:jt.TS.medium,fontWeight:jt.lq.semibold,color:s.palette.neutralPrimary},ratioDenominator:{fontSize:jt.TS.medium,color:s.palette.neutralPrimary},benchmarkContainer:{position:"relative",height:"7px",marginTop:"-3px",marginBottom:"-1px"},benchmark:{position:"absolute",left:"calc("+f+"% - 4px)",width:"0",height:"0",borderLeft:"4px solid transparent",borderRight:"4px solid transparent",borderTop:"7px solid",borderTopColor:c,marginBottom:"4px",selectors:(i={},i[jt.qJ]={border:"0px",height:"7px",width:"7px",clipPath:"polygon(50% 100%, 0 0, 100% 0)",backgroundImage:"linear-gradient(to right, ".concat(c,", ").concat(c,")")},i)},target:{position:"absolute",left:"calc("+d+"% - 4px)",width:"0",height:"0",borderLeft:"4px solid transparent",borderRight:"4px solid transparent",borderTop:"7px solid",borderTopColor:h,marginBottom:"4px",selectors:(e={},e[jt.qJ]={border:"0px",height:"7px",width:"7px",clipPath:"polygon(50% 100%, 0 0, 100% 0)",backgroundImage:"linear-gradient(to right, ".concat(h,", ").concat(h,")")},e)}}}));!function(t){t.PartToWhole="part-to-whole",t.AbsoluteScale="absolute-scale"}(yo||(yo={}));var Vo,So=(0,o.y)(),No=function(t){function e(e){var r=t.call(this,e)||this;return r._isRTL=(0,u.zg)(),r._adjustProps=function(){var t=r.props,n=t.theme,i=t.className,e=t.styles,o=t.width,u=t.barHeight;r._classNames=So(e,{legendColor:r.state.color,theme:n,width:o,className:i,barHeight:u})},r._getLegendData=function(t,e,o){var u=[o.blueLight,o.blue,o.blueMid,o.red,o.black],a=[];return t.forEach((function(t,n){var i=t.chartData.filter((function(t){return!t.placeHolder}));i.length<3?void 0!==e[n]&&e[n]&&i.forEach((function(t){var n=t.color?t.color:u[Math.floor(4*Math.random()+1)];if(!(a.filter((function(i){return i.title===t.legend&&i.color===n})).length>0)){var i={title:t.legend,color:n,action:function(){r._onClick(t.legend)},hoverAction:function(){r._handleChartMouseLeave(),r._onHover(t.legend)},onMouseOutAction:function(){r._onLeave()}};a.push(i)}})):i.forEach((function(t){var n=t.color?t.color:u[Math.floor(4*Math.random()+1)];if(!(a.filter((function(i){return i.title===t.legend&&i.color===n})).length>0)){var i={title:t.legend,color:n,action:function(){r._onClick(t.legend)},hoverAction:function(){r._handleChartMouseLeave(),r._onHover(t.legend)},onMouseOutAction:function(){r._onLeave()}};a.push(i)}}))})),i.createElement(me,(0,n.pi)({legends:a,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(t){return r.state.selectedLegend===t||""===r.state.selectedLegend&&r.state.activeLegend===t},r._noLegendHighlighted=function(){return""===r.state.selectedLegend&&""===r.state.activeLegend},r._getAriaLabel=function(t){var n,i=t.xAxisCalloutData||t.legend,e=t.yAxisCalloutData||t.data||0;return(null===(n=t.callOutAccessibilityData)||void 0===n?void 0:n.ariaLabel)||(i?"".concat(i,", "):"")+"".concat(e,".")},r._computeLongestBarTotalValue=function(){var t=0;return r.props.data.forEach((function(n){var i=n.chartData.reduce((function(t,n){return t+(n.data?n.data:0)}),0);t=Math.max(t,i)})),t},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=v("callout"),r.barChartSvgRef=i.createRef(),r._emptyChartId=v("_MSBC_empty"),r._barId=v("_MSBC_rect_"),r._barIdPlaceholderPartToWhole=v("_MSBC_rect_partToWhole_"),r._barIdEmpty=v("_MSBC_rect_empty"),r}return(0,n.ZT)(e,t),e.prototype.componentDidMount=function(){var t,n=(null===(t=this.barChartSvgRef.current)||void 0===t?void 0:t.getBoundingClientRect().width)||0;if(n){var i=3/n*100;this.setState({barSpacingInPercent:i})}},e.prototype.render=function(){var t=this;if(!this._isChartEmpty()){var e=this.props,r=e.data,o=e.theme,u=e.culture;this._adjustProps();var a=o.palette,s=this._getLegendData(r,this.props.hideRatio,a),l=this.state.isCalloutVisible;this._classNames=So(this.props.styles,{legendColor:this.state.color,theme:o,variant:this.props.variant,hideLabels:this.props.hideLabels});var c=this.state.xCalloutValue?this.state.xCalloutValue:this.state.calloutLegend,f=this.state.yCalloutValue?this.state.yCalloutValue:this.state.dataForHoverCard;this._longestBarTotalValue=this._computeLongestBarTotalValue();var h=r.map((function(n,e){var r=t._createBarsAndLegends(n,t.props.barHeight,a,t.props.hideRatio[e],t.props.hideDenominator[e],t.props.href,e);return i.createElement("div",{key:e,id:"_MSBC_bar-".concat(e)},r)}));return i.createElement("div",{className:this._classNames.root,onMouseLeave:this._handleChartMouseLeave},h,!this.props.hideLegend&&i.createElement("div",{className:this._classNames.legendContainer},s),i.createElement(Wn,(0,n.pi)({gapSpace:15,isBeakVisible:!1,target:this.state.refSelected,setInitialFocus:!0,hidden:!(!this.props.hideTooltip&&l),directionalHint:y.topAutoEdge,id:this._calloutId,onDismiss:this._closeCallout,preventDismissOnLostFocus:!0,shouldUpdateWhenHidden:!0},this.props.calloutProps,(0,zn.ey)(this.state.callOutAccessibilityData,"text",!1)),i.createElement(i.Fragment,null,this.props.onRenderCalloutPerDataPoint?this.props.onRenderCalloutPerDataPoint(this.state.dataPointCalloutProps):i.createElement(jn.ChartHoverCard,{Legend:c,YValue:f,color:this.state.color,culture:u}))))}return i.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"})},e.prototype._createBarsAndLegends=function(t,e,r,o,u,a,s){var l,c,f=this,h=(null===(l=t.chartData)||void 0===l?void 0:l.reduce((function(t,n){return t+((n.data||0)>0?1:0)}),0))||1,d=this.state.barSpacingInPercent*(h-1),v=this.props.culture,p=[r.blueLight,r.blue,r.blueMid,r.red,r.black],g=[],m=t.chartData.reduce((function(t,n){return t+(n.data?n.data:0)}),0),y=this.props.variant===yo.AbsoluteScale?this._longestBarTotalValue:m,b=0;if(t.chartData.map((function(t,n){var i=(t.data?t.data:0)/y*100||0;return i<1&&0!==i?i=1:i>99&&100!==i&&(i=99),b+=i})),this.props.variant===yo.AbsoluteScale){var x=0===y?0:(y-m)/y*100;x<1&&0!==x?x=1:x>99&&100!==x&&(x=99),b+=x}var w=0!==b?b/(100-d):1,C=0,M=0,k=t.chartData.map((function(t,n){var o=t.color?t.color:t.placeHolder?r.neutralLight:p[Math.floor(4*Math.random()+1)],u=t.data?t.data:0;n>0&&(C+=M),(M=u/y*100?u/y*100:0)<1&&0!==M?M=1/w:M>99&&100!==M?M=99/w:M/=w,g.push(C);var l=f.props.styles,c=!(!f._legendHighlighted(t.legend)&&!f._noLegendHighlighted());return f._classNames=So(l,{theme:f.props.theme,shouldHighlight:c,href:a,variant:f.props.variant,hideLabels:f.props.hideLabels}),i.createElement("g",{key:n,className:t.placeHolder?f._classNames.placeHolderOnHover:f._classNames.opacityChangeOnHover,ref:function(n){f._refCallback(n,t.legend)},"data-is-focusable":!f.props.hideTooltip,onFocus:f._onBarFocus.bind(f,u,o,t),onBlur:f._onBarLeave,role:"img","aria-label":f._getAriaLabel(t),onMouseOver:t.placeHolder?void 0:f._onBarHover.bind(f,u,o,t),onMouseMove:t.placeHolder?void 0:f._onBarHover.bind(f,u,o,t),onMouseLeave:t.placeHolder?void 0:f._onBarLeave,onClick:a?t.placeHolder?void 0:f._redirectToUrl.bind(f,a):t.onClick},i.createElement("rect",{key:n,id:"".concat(f._barId,"-").concat(s,"-").concat(n),x:"".concat(f._isRTL?100-g[n]-M-f.state.barSpacingInPercent*n:g[n]+f.state.barSpacingInPercent*n,"%"),y:0,width:M+"%",height:e,fill:o}))}));if(this.props.variant!==yo.AbsoluteScale||this.props.hideLabels)0===t.chartData.length&&k.push(i.createElement("g",{key:0,className:this._classNames.noData,onClick:this._redirectToUrl.bind(this,a)},i.createElement("rect",{key:0,id:this._barIdPlaceholderPartToWhole,x:"0%",y:0,width:"100%",height:e,fill:r.neutralLight}))),0===m&&k.push(i.createElement("g",{key:"empty",className:this._classNames.noData,onClick:this._redirectToUrl.bind(this,a)},i.createElement("rect",{key:0,id:this._barIdEmpty,x:"0%",y:0,width:"100%",height:e,fill:r.neutralLight})));else{var L=!1,V=0;this._noLegendHighlighted()?(L=!0,V=m):null===(c=t.chartData)||void 0===c||c.forEach((function(t){f._legendHighlighted(t.legend)&&(L=!0,V+=t.data?t.data:0)})),L&&k.push(i.createElement("text",{key:"text",x:"".concat(this._isRTL?100-(g[g.length-1]||0)-M-d:(g[g.length-1]||0)+M+d,"%"),textAnchor:"start",y:e/2,dominantBaseline:"central",transform:"translate(".concat(this._isRTL?-4:4,")"),className:this._classNames.barLabel,"aria-label":"Total: ".concat(V),role:"img"},(0,zn.cE)(V)))}var S=void 0!==o&&o,N=this.props.variant!==yo.AbsoluteScale&&!S&&2===t.chartData.length,A=this.props.variant!==yo.AbsoluteScale&&!S&&1===t.chartData.length,D=function(){return(0,zn.Ts)(t.chartData[0].data?t.chartData[0].data:0,v)};return i.createElement("div",{className:this._classNames.singleChartRoot},i.createElement(fi,{direction:Rn.horizontal},i.createElement("div",{className:this._classNames.chartTitle},t.chartTitle&&i.createElement(Mi,{className:this._classNames.chartTitleLeft,content:t.chartTitle,accessibilityData:t.chartTitleAccessibilityData}),N&&i.createElement("div",(0,n.pi)({},(0,zn.ey)(t.chartDataAccessibilityData,"text",!1)),i.createElement("span",{className:this._classNames.ratioNumerator},D()),!u&&i.createElement("span",{className:this._classNames.ratioDenominator}," / "+(0,zn.Ts)(m,v))),A&&i.createElement("div",(0,n.pi)({className:this._classNames.ratioNumerator},(0,zn.ey)(t.chartDataAccessibilityData,"text",!1)),D()))),i.createElement(fi,{direction:Rn.horizontal},i.createElement("div",{className:this._classNames.chartWrapper},i.createElement("svg",{ref:this.barChartSvgRef,className:this._classNames.chart,"aria-label":null==t?void 0:t.chartTitle},k))))},e.prototype._onBarFocus=function(t,n,i){var e=this;this.state.refArray.forEach((function(r){r.legendText===i.legend&&e.setState({refSelected:r.refElement,isCalloutVisible:""===e.state.selectedLegend||e.state.selectedLegend===i.legend,calloutLegend:i.legend,dataForHoverCard:t,color:n,xCalloutValue:i.xAxisCalloutData,yCalloutValue:i.yAxisCalloutData,dataPointCalloutProps:i,callOutAccessibilityData:i.callOutAccessibilityData})}))},e.prototype._refCallback=function(t,n){this.state.refArray.push({legendText:n,refElement:t})},e.prototype._onHover=function(t){this.setState({activeLegend:t})},e.prototype._onClick=function(t){this.state.selectedLegend===t?this.setState({selectedLegend:""}):this.setState({selectedLegend:t})},e.prototype._onLeave=function(){this.setState({activeLegend:""})},e.prototype._onBarHover=function(t,n,i,e){e.persist(),this._calloutAnchorPoint!==i&&(this._calloutAnchorPoint=i,this.setState({refSelected:e,isCalloutVisible:""===this.state.selectedLegend||this.state.selectedLegend===i.legend,calloutLegend:i.legend,dataForHoverCard:t,color:n,xCalloutValue:i.xAxisCalloutData,yCalloutValue:i.yAxisCalloutData,dataPointCalloutProps:i,callOutAccessibilityData:i.callOutAccessibilityData}))},e.prototype._onBarLeave=function(){},e.prototype._redirectToUrl=function(t){t&&(window.location.href=t)},e.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.length>0&&0===this.props.data.filter((function(t){return t.chartData&&0===t.chartData.length&&(!t.chartTitle||""===t.chartTitle)})).length)},e.defaultProps={barHeight:12,hideRatio:[],hideDenominator:[]},e}(i.Component),Ao=(0,t.z)(No,(function(t){var i=t.className,e=t.width,r=t.barHeight,o=t.shouldHighlight,u=t.theme,a=t.href,s=t.variant,l=t.hideLabels;return{root:[u.fonts.medium,"ms-StackedBarChart",{display:"flex",flexDirection:"column",width:e||"100%"},i],items:{marginBottom:"11px"},chart:{width:"100%",height:r||12,display:"block",overflow:"visible"},chartTitle:(0,n.pi)((0,n.pi)({},u.fonts.small),{display:"flex",justifyContent:"space-between"}),chartTitleLeft:{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",display:"block",color:u.palette.neutralPrimary,marginBottom:s===yo.AbsoluteScale?"4px":"5px"},singleChartRoot:{width:e||"100%",display:"flex",flexDirection:"column",marginBottom:s===yo.AbsoluteScale?"16px":"10px"},opacityChangeOnHover:{opacity:o?"":"0.1",cursor:a?"pointer":"default",selectors:{"&:focus":{stroke:u.palette.black,strokeWidth:"2px"}}},ratioNumerator:{fontSize:jt.TS.medium,fontWeight:jt.lq.semibold,color:u.palette.neutralPrimary},ratioDenominator:{fontSize:jt.TS.medium,color:u.palette.neutralPrimary},placeHolderOnHover:{opacity:o?"":"0.1",cursor:"default",selectors:{"&:focus":{stroke:u.palette.black,strokeWidth:"2px"}}},legendContainer:{margin:"5px 0px 0px 4px"},noData:{cursor:a?"pointer":"default"},barLabel:{fontSize:jt.TS.small,fontWeight:jt.lq.semibold,fill:u.palette.neutralPrimary},chartWrapper:{paddingRight:s!==yo.AbsoluteScale||l?0:40}}})),Do=e(5561),To=e(8815),Oo=e(8639),Po=e(6775);!function(t){t.show="visibility",t.hide="hidden"}(Vo||(Vo={}));var Eo,Fo=(0,o.y)(),Bo=function(t){function e(e){var r=t.call(this,e)||this;return r._isRtl=(0,u.zg)(),r._createLine=function(t,n,e,o,u){var a;void 0===e&&(e=0),void 0===o&&(o=0);var s=r._xAxisType===zn.xl.StringAxis,l=r._getScales(e,o).xBarScale,c=r._createColors(),f=r.props.theme,h=r.props,d=h.data,p=h.lineLegendColor,g=void 0===p?f.palette.yellow:p,m=h.lineLegendText,y=[],b=[];d&&d.forEach((function(t,n){var i;t.lineData&&t.lineData.y&&y.push({x:t.x,y:t.lineData.y,useSecondaryYScale:null!==(i=t.lineData.useSecondaryYScale)&&void 0!==i&&i,point:t,index:n})}));var x=br().x((function(n){return s?l(n.x)+.5*l.bandwidth():t(n.x)})).y((function(t){return t.useSecondaryYScale&&u?u(t.y):n(t.y)})),w=!(!r._legendHighlighted(m)&&!r._noLegendHighlighted()),C=(null===(a=r.props.lineOptions)||void 0===a?void 0:a.lineBorderWidth)?Number.parseFloat(r.props.lineOptions.lineBorderWidth.toString()):0;C>0&&b.push(i.createElement("path",{key:v("_VBC_line_"),id:v("_VBC_line_"),opacity:w?1:.1,d:x(y),fill:"transparent",strokeLinecap:"square",strokeWidth:3+2*C,stroke:f.semanticColors.bodyBackground})),b.push(i.createElement("path",{key:v("_VBC_line_"),id:v("_VBC_line_"),opacity:w?1:.1,d:x(y),fill:"transparent",strokeLinecap:"square",strokeWidth:3,stroke:g}));var M=y.map((function(e,o){var a;return i.createElement("circle",{key:o,id:v("_VBC_point_"),cx:s?l(e.x)+.5*l.bandwidth():t(e.x),cy:e.useSecondaryYScale&&u?u(e.y):n(e.y),onMouseOver:r._onBarHover.bind(r,e.point,c(e.y)),onMouseOut:r._onBarLeave,r:8,stroke:g,fill:r.props.theme.semanticColors.bodyBackground,strokeWidth:3,visibility:r.state.activeXdataPoint===e.x?Vo.show:Vo.hide,onClick:null===(a=e.point.lineData)||void 0===a?void 0:a.onClick})}));return i.createElement(i.Fragment,null,b,M)},r._checkForLine=function(){return r.props.data.some((function(t){var n;return void 0!==(null===(n=null==t?void 0:t.lineData)||void 0===n?void 0:n.y)}))},r._getMargins=function(t){r.margins=t},r._renderContentForBothLineAndBars=function(t){var e=r._getCalloutContentForLineAndBar(t),o=e.YValueHover,u=e.hoverXValue,a=o.map((function(t,e){return i.createElement(jn.ChartHoverCard,(0,n.pi)({key:e,Legend:t.legend},0===e&&{XValue:"".concat(u||t.data)},{color:t.color,YValue:t.data||t.y,culture:r.props.culture}))}));return i.createElement(i.Fragment,null,a)},r._renderContentForOnlyBars=function(t){var n=r.props.useSingleColor,e=void 0!==n&&n;return i.createElement(i.Fragment,null,i.createElement(jn.ChartHoverCard,{XValue:t.xAxisCalloutData||t.x,Legend:t.legend,YValue:t.yAxisCalloutData||t.y,color:!e&&t.color?t.color:r._createColors()(t.y),culture:r.props.culture}))},r._renderCallout=function(t){return t?r._isHavingLine?r._renderContentForBothLineAndBars(t):r._renderContentForOnlyBars(t):null},r._getCustomizedCallout=function(){return r.props.onRenderCalloutPerDataPoint?r.props.onRenderCalloutPerDataPoint(r.state.dataPointCalloutProps,r._renderCallout):null},r._getGraphData=function(t,n,i,e,o){return r._bars=r._xAxisType===zn.xl.NumericAxis?r._createNumericBars(i,e,o):r._xAxisType===zn.xl.DateAxis?r._createDateBars(i,e,o):r._createStringBars(i,e,o)},r._refCallback=function(t,n){r._refArray.push({index:n,refElement:t})},r._getCalloutContentForLineAndBar=function(t){var n,i,e,o,u=[],a=r.props,s=a.theme,l=a.useSingleColor,c=void 0!==l&&l,f=r.props,h=f.data,d=f.lineLegendText,v=f.lineLegendColor,p=void 0===v?s.palette.yellow:v,g=h.filter((function(n){return n.x===t.x}));r._isHavingLine&&void 0!==(null===(n=g[0].lineData)||void 0===n?void 0:n.y)&&u.push({legend:d,color:p,y:null===(i=g[0].lineData)||void 0===i?void 0:i.y,data:null===(e=g[0].lineData)||void 0===e?void 0:e.yAxisCalloutData,yAxisCalloutData:null===(o=g[0].lineData)||void 0===o?void 0:o.yAxisCalloutData}),u.push({legend:g[0].legend,y:g[0].y,color:c?r._createColors()(1):g[0].color?g[0].color:r._createColors()(g[0].y),data:g[0].yAxisCalloutData,yAxisCalloutData:g[0].yAxisCalloutData});var m=t.x instanceof Date?t.x.toLocaleString():t.x.toString();return{YValueHover:u,hoverXValue:t.xAxisCalloutData||m}},r._onBarLeave=function(){},r._handleChartMouseLeave=function(){r._calloutAnchorPoint=null,r.setState({isCalloutVisible:!1,activeXdataPoint:null,YValueHover:[],hoverXValue:""})},r._onBarFocus=function(t,n,i){var e=r._getCalloutContentForLineAndBar(t),o=e.YValueHover,u=e.hoverXValue;r._refArray.forEach((function(e,a){e.index===t.legend&&n===a&&r.setState({refSelected:e.refElement,isCalloutVisible:""===r.state.selectedLegend||r.state.selectedLegend===t.legend,calloutLegend:t.legend,dataForHoverCard:t.y,color:t.color||i,xCalloutValue:t.xAxisCalloutData||(t.x instanceof Date?t.x.toLocaleDateString():t.x.toString()),yCalloutValue:t.yAxisCalloutData,dataPointCalloutProps:t,activeXdataPoint:t.x,YValueHover:o,hoverXValue:u,callOutAccessibilityData:t.callOutAccessibilityData})}))},r._getScales=function(t,n){var i,e=(0,To.Z)().domain([0,r._yMax]).range([0,t-r.margins.bottom-r.margins.top]);if(r._xAxisType===zn.xl.NumericAxis){var o=(0,Ur.Z)(r._points,(function(t){return t.x})),u=(0,Do.Z)(r._points,(function(t){return t.x}));i=(0,To.Z)().domain(r._isRtl?[o,u]:[u,o]).nice().range([r.margins.left+r._domainMargin,n-r.margins.right-r._barWidth-r._domainMargin])}else if(r._xAxisType===zn.xl.DateAxis){var a=(0,Do.Z)(r._points,(function(t){return t.x})),s=(0,Ur.Z)(r._points,(function(t){return t.x}));i=(0,Oo.Z)().domain([a,s]).range([r.margins.left+r._domainMargin+r._barWidth/2,n-r.margins.right-r._barWidth/2-r._domainMargin])}else i=(0,Po.Z)().domain(r._xAxisLabels).range(r._isRtl?[n-r.margins.right-r._domainMargin,r.margins.left+r._domainMargin]:[r.margins.left+r._domainMargin,n-r.margins.right-r._domainMargin]).paddingInner(2/3);return{xBarScale:i,yBarScale:e}},r._closeCallout=function(){r.setState({isCalloutVisible:!1})},r._getLegendData=function(t,e){var o=r.props,u=o.theme,a=o.useSingleColor,s=r.props,l=s.lineLegendText,c=s.lineLegendColor,f=void 0===c?u.palette.yellow:c,h=[];if(t.forEach((function(t,n){var i=a?r._createColors()(1):t.color,e={title:t.legend,color:i,action:function(){r._onLegendClick(t.legend)},hoverAction:function(){r._handleChartMouseLeave(),r._onLegendHover(t.legend)},onMouseOutAction:function(){r._onLegendLeave()}};h.push(e)})),r._isHavingLine&&l&&f){var d={title:l,color:f,action:function(){r._onLegendClick(l)},hoverAction:function(){r._handleChartMouseLeave(),r._onLegendHover(l)},onMouseOutAction:function(){r._onLegendLeave()},isLineLegendInBarChart:!0};h.unshift(d)}return i.createElement(me,(0,n.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(t){if(t&&t.yAxisDomainValues.length){var n=t.yAxisDomainValues;r._yMax=Math.max(n[n.length-1],r.props.yMaxValue||0)}},r._legendHighlighted=function(t){return r.state.selectedLegend===t||""===r.state.selectedLegend&&r.state.activeLegend===t},r._noLegendHighlighted=function(){return""===r.state.selectedLegend&&""===r.state.activeLegend},r._getAriaLabel=function(t){var n,i,e,o=t.xAxisCalloutData?t.xAxisCalloutData:t.x instanceof Date?t.x.toLocaleString():t.x,u=t.legend,a=t.yAxisCalloutData||t.y,s=r.props.lineLegendText||"Line",l=(null===(n=t.lineData)||void 0===n?void 0:n.yAxisCalloutData)||(null===(i=t.lineData)||void 0===i?void 0:i.y);return(null===(e=t.callOutAccessibilityData)||void 0===e?void 0:e.ariaLabel)||"".concat(o,". ")+(u?"".concat(u,", "):"")+"".concat(a,".")+(void 0!==l?" ".concat(s,", ").concat(l,"."):"")},r._getDomainMargins=function(t){if(r._xAxisType===zn.xl.StringAxis){var i=t-(r.margins.left+8)-(r.margins.right+8),e=Math.min(r.props.barWidth||16,24),o=(3*r._xAxisLabels.length-2)*e;r._domainMargin=8,i>=o?r._domainMargin+=(i-o)/2:e=i/(3*r._xAxisLabels.length-2),r._barWidth=e}return(0,n.pi)((0,n.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=v("callout"),r._tooltipId=v("VCTooltipID_"),r._refArray=[],r._xAxisType=r.props.data&&r.props.data.length>0?(0,zn.SY)(r.props.data[0].x,!0):zn.xl.StringAxis,r._domainMargin=8,r._emptyChartId=v("_VBC_empty"),r}return(0,n.ZT)(e,t),e.prototype.render=function(){var t=this;this._adjustProps(),this._xAxisLabels=this._points.map((function(t){return t.x})),this._yMax=Math.max((0,Ur.Z)(this._points,(function(t){return t.y})),this.props.yMaxValue||0);var e=this._getLegendData(this._points,this.props.theme.palette);this._classNames=Fo(this.props.styles,{theme:this.props.theme,legendColor:this.state.color});var r=(0,n.pi)((0,n.pi)((0,n.pi)((0,n.pi)({isCalloutVisible:this.state.isCalloutVisible,directionalHint:y.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,zn.ey)(this.state.callOutAccessibilityData)),o={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return this._isChartEmpty()?i.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):i.createElement(Nr,(0,n.pi)({},this.props,{points:this._points,chartType:zn.$X.VerticalBarChart,xAxisType:this._xAxisType,calloutProps:r,tickParams:o},this._isHavingLine&&{isCalloutForStack:!0},{legendBars:e,datasetForXAxisDomain:this._xAxisLabels,barwidth:this._barWidth,focusZoneDirection:Rn.horizontal,customizedCallout:this._getCustomizedCallout(),getmargins:this._getMargins,getGraphData:this._getGraphData,getAxisData:this._getAxisData,onChartMouseLeave:this._handleChartMouseLeave,getDomainMargins:this._getDomainMargins},this._xAxisType!==zn.xl.NumericAxis&&{xAxisInnerPadding:2/3,xAxisOuterPadding:0},{children:function(n){return i.createElement(i.Fragment,null,i.createElement("g",null,t._bars),t._isHavingLine&&i.createElement("g",null,t._createLine(n.xScale,n.yScale,n.containerHeight,n.containerWidth,n.yScaleSecondary)))}}))},e.prototype._adjustProps=function(){this._points=this.props.data||[],this._barWidth=this.props.barWidth||16;var t=this.props.theme.palette;this._colors=this.props.colors||[t.blueLight,t.blue,t.blueMid,t.blueDark],this._isHavingLine=this._checkForLine()},e.prototype._createColors=function(){var t=this,n=this._colors.length<=1?1:1/(this._colors.length-1),i=this.props.useSingleColor;if(void 0!==i&&i)return function(n){var i=t.props,e=i.theme,r=i.colors;return r&&r.length>0?r[0]:e.palette.blueLight};for(var e=[],r=0;r<this._colors.length;r++)e.push(n*r*this._yMax);return(0,To.Z)().domain(e).range(this._colors)},e.prototype._onBarHover=function(t,n,i){i.persist();var e=this._getCalloutContentForLineAndBar(t),r=e.YValueHover,o=e.hoverXValue;this._calloutAnchorPoint!==t&&(this._calloutAnchorPoint=t,this.setState({refSelected:i,isCalloutVisible:""===this.state.selectedLegend||this.state.selectedLegend===t.legend,dataForHoverCard:t.y,calloutLegend:t.legend,color:t.color||n,xCalloutValue:t.xAxisCalloutData||(t.x instanceof Date?t.x.toLocaleDateString():t.x.toString()),yCalloutValue:t.yAxisCalloutData,dataPointCalloutProps:t,activeXdataPoint:t.x,YValueHover:r,hoverXValue:o,callOutAccessibilityData:t.callOutAccessibilityData}))},e.prototype._createNumericBars=function(t,n,e){var r=this,o=this.props.useSingleColor,u=void 0!==o&&o,a=this._getScales(t,n),s=a.xBarScale,l=a.yBarScale,c=this._createColors(),f=this._points.map((function(n,e){var o=!(!r._legendHighlighted(n.legend)&&!r._noLegendHighlighted());r._classNames=Fo(r.props.styles,{theme:r.props.theme,legendColor:r.state.color,shouldHighlight:o});var a,f=Math.max(l(n.y),0);if(f<=0)return i.createElement(i.Fragment,{key:n.x}," ");a=f<=Math.ceil(l(r._yMax)/100)?Math.ceil(l(r._yMax)/100):f;var h=s(n.x),d=t-r.margins.bottom-a;return i.createElement("g",{key:n.x},i.createElement("rect",{id:v("_VBC_bar_"),x:h,className:r._classNames.opacityChangeOnHover,y:d,width:r._barWidth,"data-is-focusable":!r.props.hideTooltip,height:a,ref:function(t){r._refCallback(t,n.legend)},onClick:n.onClick,onMouseOver:r._onBarHover.bind(r,n,c(n.y)),"aria-label":r._getAriaLabel(n),role:"img",onMouseLeave:r._onBarLeave,onFocus:r._onBarFocus.bind(r,n,e,c(n.y)),onBlur:r._onBarLeave,fill:n.color&&!u?n.color:c(n.y)}),r._renderBarLabel(h,d,n.y,n.legend))}));if(!this.props.showXAxisLablesTooltip)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}if(!this.props.wrapXAxisLables&&this.props.showXAxisLablesTooltip){var h=(0,dr.Ys)(e).call(s);try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}var d={tooltipCls:this._classNames.tooltip,id:this._tooltipId,xAxis:h};h&&(0,zn.$V)(d)}return f},e.prototype._createStringBars=function(t,n,e){var r=this,o=this._getScales(t,n),u=o.xBarScale,a=o.yBarScale,s=this._createColors(),l=this._points.map((function(n,e){var o,l=Math.max(a(n.y),0);if(l<=0)return i.createElement(i.Fragment,{key:n.x instanceof Date?n.x.getTime():n.x}," ");o=l<=Math.ceil(a(r._yMax)/100)?Math.ceil(a(r._yMax)/100):l;var c=u(n.x),f=t-r.margins.bottom-o;return i.createElement("g",{key:n.x instanceof Date?n.x.getTime():n.x,transform:"translate(".concat(.5*(u.bandwidth()-r._barWidth),", 0)")},i.createElement("rect",{id:v("_VBC_bar_"),x:c,y:f,width:r._barWidth,height:o,"aria-label":r._getAriaLabel(n),role:"img",ref:function(t){r._refCallback(t,n.legend)},onClick:n.onClick,onMouseOver:r._onBarHover.bind(r,n,s(n.y)),onMouseLeave:r._onBarLeave,onBlur:r._onBarLeave,"data-is-focusable":!r.props.hideTooltip,onFocus:r._onBarFocus.bind(r,n,e,s(n.y)),fill:n.color?n.color:s(n.y)}),r._renderBarLabel(c,f,n.y,n.legend))}));if(!this.props.showXAxisLablesTooltip)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}if(!this.props.wrapXAxisLables&&this.props.showXAxisLablesTooltip){var c=(0,dr.Ys)(e).call(u);try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}var f={tooltipCls:this._classNames.tooltip,id:this._tooltipId,xAxis:c,showTooltip:this.props.showXAxisLablesTooltip};c&&(0,zn.$V)(f)}return l},e.prototype._createDateBars=function(t,n,e){var r=this,o=this.props.useSingleColor,u=void 0!==o&&o,a=this._getScales(t,n),s=a.xBarScale,l=a.yBarScale,c=this._createColors(),f=this._points.map((function(n,e){var o=!(!r._legendHighlighted(n.legend)&&!r._noLegendHighlighted());r._classNames=Fo(r.props.styles,{theme:r.props.theme,legendColor:r.state.color,shouldHighlight:o});var a,f=Math.max(l(n.y),0);if(f<=0)return i.createElement(i.Fragment,{key:n.x instanceof Date?n.x.getTime():n.x}," ");a=f<=Math.ceil(l(r._yMax)/100)?Math.ceil(l(r._yMax)/100):f;var h=s(n.x)-r._barWidth/2,d=t-r.margins.bottom-a;return i.createElement("g",{key:n.x instanceof Date?n.x.getTime():n.x},i.createElement("rect",{id:v("_VBC_bar_"),x:h,className:r._classNames.opacityChangeOnHover,y:d,width:r._barWidth,"data-is-focusable":!r.props.hideTooltip,height:a,ref:function(t){r._refCallback(t,n.legend)},onClick:n.onClick,onMouseOver:r._onBarHover.bind(r,n,c(n.y)),"aria-label":r._getAriaLabel(n),role:"img",onMouseLeave:r._onBarLeave,onFocus:r._onBarFocus.bind(r,n,e,c(n.y)),onBlur:r._onBarLeave,fill:n.color&&!u?n.color:c(n.y)}),r._renderBarLabel(h,d,n.y,n.legend))}));if(!this.props.showXAxisLablesTooltip)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}if(!this.props.wrapXAxisLables&&this.props.showXAxisLablesTooltip){var h=(0,dr.Ys)(e).call(s);try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}var d={tooltipCls:this._classNames.tooltip,id:this._tooltipId,xAxis:h};h&&(0,zn.$V)(d)}return f},e.prototype._onLegendClick=function(t){this.state.selectedLegend===t?this.setState({selectedLegend:""}):this.setState({selectedLegend:t})},e.prototype._onLegendHover=function(t){this.setState({activeLegend:t})},e.prototype._onLegendLeave=function(){this.setState({activeLegend:""})},e.prototype._renderBarLabel=function(t,n,e,r){return this.props.hideLabels||this._barWidth<16||!this._legendHighlighted(r)&&!this._noLegendHighlighted()?null:i.createElement("text",{x:t+this._barWidth/2,y:n-6,textAnchor:"middle",className:this._classNames.barLabel,"aria-hidden":!0},(0,zn.cE)(e))},e.prototype._isChartEmpty=function(){return 0===this._points.length||(0,Ur.Z)(this._points,(function(t){return t.y}))<=0&&!this._isHavingLine},e}(i.Component),Ho=(0,t.z)(Bo,(function(t){var i=t.shouldHighlight,e=t.theme;return{opacityChangeOnHover:{opacity:i?"":"0.1"},xAxisTicks:[],yAxisTicks:[{transform:"scaleX(-1)"}],yAxisDomain:[{transform:"scaleX(-1)"}],tooltip:(0,n.pi)((0,n.pi)({},e.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:e.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"}),barLabel:{fontSize:jt.TS.small,fontWeight:jt.lq.semibold,fill:e.palette.neutralPrimary}}})),_o=(0,o.y)();!function(t){t.show="visibility",t.hide="hidden"}(Eo||(Eo={}));var Io=function(t){function e(e){var r=t.call(this,e)||this;return r._isRtl=(0,u.zg)(),r._toFocusWholeStack=function(t){var n=r.props.isCalloutForStack,i=void 0!==n&&n;return t?""===r.state.selectedLegend:i},r._getFormattedLineData=function(t){var i=[],e={};return t.forEach((function(t,e){t.lineData&&t.lineData.forEach((function(r){i.push((0,n.pi)((0,n.pi)({},r),{index:e,xItem:t}))}))})),i.forEach((function(t){e[t.legend]?e[t.legend].push(t):e[t.legend]=[t]})),e},r._getLineLegends=function(t){var n=r._lineObject,i=[];return Object.keys(n).forEach((function(t){i.push({title:t,color:n[t][0].color})})),i},r._createLines=function(t,e,o,u,a){var s,l=r._xAxisType===zn.xl.NumericAxis,c=r._xAxisType===zn.xl.DateAxis,f=r._getScales(o,u).xBarScale,h=r._getFormattedLineData(r.props.data),d=[],v=[],p=[],g=r.props.theme,m=(null===(s=r.props.lineOptions)||void 0===s?void 0:s.lineBorderWidth)?Number.parseFloat(r.props.lineOptions.lineBorderWidth.toString()):0,y=l||c?0:f.bandwidth()/2;return Object.keys(h).forEach((function(o,u){for(var s=r._legendHighlighted(o)||r._noLegendHighlighted(),c=1;c<h[o].length;c++){var p=l?t(h[o][c-1].xItem.xAxisPoint):f(h[o][c-1].xItem.xAxisPoint),b=h[o][c-1].useSecondaryYScale&&h[o][c].useSecondaryYScale&&a,x=b?a(h[o][c-1].y):e(h[o][c-1].y),w=l?t(h[o][c].xItem.xAxisPoint):f(h[o][c].xItem.xAxisPoint),C=b?a(h[o][c].y):e(h[o][c].y);m>0&&v.push(i.createElement("line",{key:"".concat(u,"-").concat(c,"-BorderLine"),x1:p,y1:x,x2:w,y2:C,opacity:s?1:.1,strokeWidth:3+2*m,fill:"transparent",strokeLinecap:"round",stroke:g.semanticColors.bodyBackground,transform:"translate(".concat(y,", 0)")})),d.push(i.createElement("line",(0,n.pi)({key:"".concat(u,"-").concat(c,"-line"),x1:p,y1:x,x2:w,y2:C,opacity:s?1:.1,strokeWidth:3,strokeLinecap:"round",stroke:h[o][c].color,transform:"translate(".concat(y,", 0)")},r.state.selectedLegend===o&&{onMouseOver:r._lineHover.bind(r,h[o][c-1]),onMouseLeave:r._lineHoverOut})))}})),Object.keys(h).forEach((function(o,u){h[o].forEach((function(s,c){p.push(i.createElement("circle",(0,n.pi)({key:"".concat(u,"-").concat(c,"-dot"),cx:l?t(s.xItem.xAxisPoint):f(s.xItem.xAxisPoint),cy:s.useSecondaryYScale&&a?a(s.y):e(s.y),onMouseOver:r.state.selectedLegend===o?r._lineHover.bind(r,s):r._onStackHover.bind(r,s.xItem)},r.state.selectedLegend===o&&{onMouseLeave:r._lineHoverOut},{r:r._getCircleVisibilityAndRadius(s.xItem.xAxisPoint,s.legend).radius,stroke:s.color,fill:r.props.theme.semanticColors.bodyBackground,strokeWidth:3,visibility:r._getCircleVisibilityAndRadius(s.xItem.xAxisPoint,s.legend).visibility,transform:"translate(".concat(y,", 0)")})))}))})),i.createElement(i.Fragment,null,v,d,p)},r._getCircleVisibilityAndRadius=function(t,n){var i=r.state,e=i.selectedLegend,o=i.activeXAxisDataPoint;return""!==e?t===o&&e===n?{visibility:Eo.show,radius:8}:e===n?{visibility:Eo.show,radius:.3}:{visibility:Eo.hide,radius:0}:{visibility:o===t?Eo.show:Eo.hide,radius:8}},r._getMargins=function(t){r.margins=t},r._getCustomizedCallout=function(){var t=r.props.data.some((function(t){return t.lineData&&t.lineData.length>0}));return r.props.onRenderCalloutPerStack?r.props.onRenderCalloutPerStack(r.state.stackCalloutProps):r.props.onRenderCalloutPerDataPoint&&!t?r.props.onRenderCalloutPerDataPoint(r.state.dataPointCalloutProps,r._renderCallout):null},r._lineHover=function(t,n){n.persist(),r.setState({refSelected:n,isCalloutVisible:!0,xCalloutValue:"".concat(t.xItem.xAxisPoint),yCalloutValue:"".concat(t.yAxisCalloutData||t.data||t.y),activeXAxisDataPoint:t.xItem.xAxisPoint,color:t.color})},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(t,e,o,u){var a=r.props,s=a.barCornerRadius,l=void 0===s?0:s,c=a.barMinimumHeight,f=void 0===c?0:c,h=r.props.data.some((function(t){return t.lineData&&t.lineData.length>0})),d=r._toFocusWholeStack(h),v=r._points.map((function(u,a){var s=o-r.margins.bottom,c=t((r._xAxisType===zn.xl.NumericAxis||(r._xAxisType,zn.xl.DateAxis),u.xAxisPoint)),h=r._xAxisType===zn.xl.NumericAxis?0:r._xAxisType===zn.xl.DateAxis?-r._barWidth/2:(t.bandwidth()-r._barWidth)/2,v=0,p=u.chartData.filter((function(t){return t.data>0}));if(p.length){var g=r._getBarGapAndScale(p,e),m=g.gapHeight,y=g.heightValueScale;if(!(y<0)){var b=p.map((function(t,e){var o=t.color?t.color:r._colors[e],g={},b=!(!r._legendHighlighted(t.legend)&&!r._noLegendHighlighted());r._classNames=_o(r.props.styles,{theme:r.props.theme,shouldHighlight:b,href:r.props.href});var x=!d&&{"data-is-focusable":!r.props.hideTooltip,"aria-label":r._getAriaLabel(u,t),onMouseOver:r._onRectHover.bind(r,u.xAxisPoint,t,o),onMouseMove:r._onRectHover.bind(r,u.xAxisPoint,t,o),onMouseLeave:r._handleMouseOut,onFocus:r._onRectFocus.bind(r,t,u.xAxisPoint,o,g),onBlur:r._handleMouseOut,onClick:r._onClick.bind(r,t),role:"img"},w=y*t.data;return w<Math.max(y*Math.ceil(r._yMax/100),f)&&(w=Math.max(y*Math.ceil(r._yMax/100),f)),s=s-w-(e?m:0),v+=t.data,l&&w>l&&e===p.length-1?i.createElement("path",(0,n.pi)({key:e+a+"".concat(d),className:r._classNames.opacityChangeOnHover,d:"\n M ".concat(c," ").concat(s+l,"\n a ").concat(l," ").concat(l," 0 0 1 ").concat(l," ").concat(-l,"\n h ").concat(r._barWidth-2*l,"\n a ").concat(l," ").concat(l," 0 0 1 ").concat(l," ").concat(l,"\n v ").concat(w-l,"\n h ").concat(-r._barWidth,"\n z\n "),fill:o,ref:function(t){return g.refElement=t},transform:"translate(".concat(h,", 0)")},x)):w<0?i.createElement(i.Fragment,{key:e+a}," "):i.createElement("rect",(0,n.pi)({key:e+a,className:r._classNames.opacityChangeOnHover,x:c,y:s,width:r._barWidth,height:w,fill:o,ref:function(t){return g.refElement=t}},x,{transform:"translate(".concat(h,", 0)")}))})),x={},w=d&&{"data-is-focusable":!r.props.hideTooltip,"aria-label":r._getAriaLabel(u),onMouseOver:r._onStackHover.bind(r,u),onMouseMove:r._onStackHover.bind(r,u),onMouseLeave:r._handleMouseOut,onFocus:r._onStackFocus.bind(r,u,x),onBlur:r._handleMouseOut,onClick:r._onClick.bind(r,u),role:"img"},C=!1,M=0;return r.props.hideLabels||(r._noLegendHighlighted()?(C=!0,M=v):p.forEach((function(t){r._legendHighlighted(t.legend)&&(C=!0,M+=t.data)}))),i.createElement("g",{key:a+"".concat(d)},i.createElement("g",(0,n.pi)({id:"".concat(a,"-singleBar"),ref:function(t){return x.refElement=t}},w),b),!r.props.hideLabels&&r._barWidth>=16&&C&&i.createElement("text",{x:c+r._barWidth/2,y:s-6,textAnchor:"middle",className:r._classNames.barLabel,"aria-label":"Total: ".concat(M),role:"img",transform:"translate(".concat(h,", 0)")},(0,zn.cE)(M)))}}}));if(!r.props.showXAxisLablesTooltip)try{document.getElementById(r._tooltipId)&&document.getElementById(r._tooltipId).remove()}catch(t){}if(!r.props.wrapXAxisLables&&r.props.showXAxisLablesTooltip){var p=(0,dr.Ys)(u).call(t);try{document.getElementById(r._tooltipId)&&document.getElementById(r._tooltipId).remove()}catch(t){}var g={tooltipCls:r._classNames.tooltip,id:r._tooltipId,xAxis:p};p&&(0,zn.$V)(g)}return v.filter((function(t){return!!t}))},r._getScales=function(t,n){var i=r._yMax,e=(0,To.Z)().domain([0,i]).range([0,t-r.margins.bottom-r.margins.top]);if(r._xAxisType===zn.xl.NumericAxis){var o=(0,Ur.Z)(r._dataset,(function(t){return t.x})),u=(0,Do.Z)(r._dataset,(function(t){return t.x}));return{xBarScale:(0,To.Z)().domain(r._isRtl?[o,u]:[u,o]).nice().range([r.margins.left+r._domainMargin,n-r.margins.right-r._barWidth-r._domainMargin]),yBarScale:e}}if(r._xAxisType===zn.xl.DateAxis){var a=(0,Do.Z)(r._dataset,(function(t){return t.x})),s=(0,Ur.Z)(r._dataset,(function(t){return t.x}));return{xBarScale:(0,Oo.Z)().domain([a,s]).range([r.margins.left+r._domainMargin+r._barWidth/2,n-r.margins.right-r._barWidth/2-r._domainMargin]),yBarScale:e}}return{xBarScale:(0,Po.Z)().domain(r._xAxisLabels).range([r.margins.left+r._domainMargin,n-r.margins.right-r._domainMargin]).paddingInner(2/3),yBarScale:e}},r._getGraphData=function(t,n,i,e,o){var u=r._getScales(i,e),a=u.xBarScale,s=u.yBarScale;return r._bars=r._createBar(a,s,i,o)},r._closeCallout=function(){r.setState({isCalloutVisible:!1})},r._getAxisData=function(t){if(t&&t.yAxisDomainValues.length){var n=t.yAxisDomainValues;r._yMax=Math.max(n[n.length-1],r.props.yMaxValue||0)}},r._legendHighlighted=function(t){return r.state.selectedLegend===t||""===r.state.selectedLegend&&r.state.activeLegend===t},r._noLegendHighlighted=function(){return""===r.state.selectedLegend&&""===r.state.activeLegend},r._getAriaLabel=function(t,n){var i,e,r;if(!n){var o=t.xAxisCalloutData||t.xAxisPoint,u=t.chartData.map((function(t){var n=t.legend,i=t.yAxisCalloutData||t.data;return"".concat(n,", ").concat(i,".")})).join(" "),a=null===(i=t.lineData)||void 0===i?void 0:i.map((function(t){var n=t.legend,i=t.yAxisCalloutData||t.data||t.y;return"".concat(n,", ").concat(i,".")})).join(" ");return(null===(e=t.stackCallOutAccessibilityData)||void 0===e?void 0:e.ariaLabel)||"".concat(o,". ").concat(u)+(a?" ".concat(a):"")}var s=t.xAxisCalloutData||n.xAxisCalloutData||t.xAxisPoint,l=n.legend,c=n.yAxisCalloutData||n.data;return(null===(r=n.callOutAccessibilityData)||void 0===r?void 0:r.ariaLabel)||"".concat(s,". ").concat(l,", ").concat(c,".")},r._getDomainMargins=function(t){if(r._xAxisType!==zn.xl.NumericAxis){var i=t-(r.margins.left+8)-(r.margins.right+8),e=Math.min(r.props.barWidth||16,24),o=(3*r._xAxisLabels.length-2)*e;r._domainMargin=8,i>=o?r._domainMargin+=(i-o)/2:e=i/(3*r._xAxisLabels.length-2),r._barWidth=e}return(0,n.pi)((0,n.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:""},r._handleMouseOut=r._handleMouseOut.bind(r),r._calloutId=v("callout"),r._tooltipId=v("VSBCTooltipId_"),r._isChartEmpty()&&(r._adjustProps(),r._dataset=r._createDataSetLayer()),r._createLegendsForLine=(0,fn.NF)((function(t){return r._getLineLegends(t)})),r._domainMargin=8,r._emptyChartId=v("_VSBC_empty"),r}return(0,n.ZT)(e,t),e.prototype.componentDidUpdate=function(t){t.height===this.props.height&&t.width===this.props.width&&t.data===this.props.data||(this._adjustProps(),this._dataset=this._createDataSetLayer())},e.prototype.render=function(){var t=this;if(!this._isChartEmpty()){this._adjustProps();var e=this.props.data.some((function(t){return t.lineData&&t.lineData.length>0})),r=this._toFocusWholeStack(e),o=this.props.isCalloutForStack,u=void 0!==o&&o;this._dataset=this._createDataSetLayer();var a=this._getLegendData(this._points,this.props.theme.palette,this._createLegendsForLine(this.props.data));this._classNames=_o(this.props.styles,{theme:this.props.theme,href:this.props.href});var s=(0,n.pi)((0,n.pi)({isCalloutVisible:this.state.isCalloutVisible,directionalHint:y.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,zn.ey)(this.state.callOutAccessibilityData)),l={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return i.createElement(Nr,(0,n.pi)({},this.props,{points:this._dataset,chartType:zn.$X.VerticalStackedBarChart,xAxisType:this._xAxisType,calloutProps:s,tickParams:l,legendBars:a,datasetForXAxisDomain:this._xAxisLabels,isCalloutForStack:r,barwidth:this._barWidth,focusZoneDirection:u||e?Rn.horizontal:Rn.vertical,getmargins:this._getMargins,getGraphData:this._getGraphData,getAxisData:this._getAxisData,customizedCallout:this._getCustomizedCallout(),onChartMouseLeave:this._handleChartMouseLeave,getDomainMargins:this._getDomainMargins},this._xAxisType!==zn.xl.NumericAxis&&{xAxisInnerPadding:2/3,xAxisOuterPadding:0},{children:function(n){return i.createElement(i.Fragment,null,i.createElement("g",null,t._bars),i.createElement("g",null,e&&t._createLines(n.xScale,n.yScale,n.containerHeight,n.containerWidth,n.yScaleSecondary)))}}))}return i.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"})},e.prototype._adjustProps=function(){this._points=this.props.data||[],this._barWidth=this.props.barWidth||16;var t=this.props.theme.palette;this._colors=this.props.colors||[t.blueLight,t.blue,t.blueMid,t.red,t.black],this._xAxisType=(0,zn.SY)(this.props.data[0].xAxisPoint,!0),this._lineObject=this._getFormattedLineData(this.props.data)},e.prototype._createDataSetLayer=function(){var t=[],n=this._points.map((function(n){var i=0;return n.chartData.forEach((function(t){i+=t.data})),t.push(n.xAxisPoint),{x:n.xAxisPoint,y:i}}));return this._xAxisLabels=t,n},e.prototype._renderCallout=function(t){return t?i.createElement(jn.ChartHoverCard,{XValue:t.xAxisCalloutData,Legend:t.legend,YValue:t.yAxisCalloutData,color:t.color,culture:this.props.culture}):null},e.prototype._onLegendClick=function(t){this.state.selectedLegend===t?this.setState({selectedLegend:""}):this.setState({selectedLegend:t})},e.prototype._onLegendHover=function(t){this.setState({activeLegend:t})},e.prototype._onLegendLeave=function(){this.setState({activeLegend:""})},e.prototype._getLegendData=function(t,e,r){var o=this;if(this.props.hideLegend)return i.createElement(i.Fragment,null);var u=[e.blueLight,e.blue,e.blueMid,e.red,e.black],a=[],s=this.props.allowHoverOnLegend,l=void 0===s||s;t.forEach((function(t){t.chartData.forEach((function(t){var n=t.color?t.color:u[Math.floor(4*Math.random()+1)];if(!(a.filter((function(i){return i.title===t.legend&&i.color===n})).length>0)){var i={title:t.legend,color:n,action:function(){o._onLegendClick(t.legend)},hoverAction:l?function(){o._handleChartMouseLeave(),o._onLegendHover(t.legend)}:void 0,onMouseOutAction:l?function(){return o._onLegendLeave()}:void 0};a.push(i)}}))}));var c=[];r&&r.length>0&&r.forEach((function(t){var n={title:t.title,color:t.color,isLineLegendInBarChart:!0,action:function(){o._onLegendClick(t.title)},hoverAction:l?function(){o._handleChartMouseLeave(),o._onLegendHover(t.title)}:void 0,onMouseOutAction:l?function(){return o._onLegendLeave()}:void 0};c.push(n)}));var f=c.concat(a);return i.createElement(me,(0,n.pi)({legends:f,overflowProps:this.props.legendsOverflowProps,enabledWrapLines:this.props.enabledLegendsWrapLines,focusZonePropsInHoverCard:this.props.focusZonePropsForLegendsInHoverCard,overflowText:this.props.legendsOverflowText},this.props.legendProps))},e.prototype._onRectHover=function(t,n,i,e){e.persist(),this._onRectFocusHover(t,n,i,e)},e.prototype._onRectFocusHover=function(t,n,i,e){var r,o;(null===(r=this._calloutAnchorPoint)||void 0===r?void 0:r.chartDataPoint)===n&&(null===(o=this._calloutAnchorPoint)||void 0===o?void 0:o.xAxisDataPoint)===t||(this._calloutAnchorPoint={chartDataPoint:n,xAxisDataPoint:t},this.setState({refSelected:e,isCalloutVisible:""===this.state.selectedLegend||this.state.selectedLegend===n.legend,calloutLegend:n.legend,dataForHoverCard:n.data,color:i,xCalloutValue:n.xAxisCalloutData?n.xAxisCalloutData:t,yCalloutValue:n.yAxisCalloutData,dataPointCalloutProps:n,callOutAccessibilityData:n.callOutAccessibilityData}))},e.prototype._onStackHover=function(t,n){n.persist(),this._onStackHoverFocus(t,n)},e.prototype._onStackHoverFocus=function(t,i){var e=t.lineData,r=void 0!==e&&e.length>0;r&&e.forEach((function(t){t.data=t.data||t.y,t.shouldDrawBorderBottom=!0})),this.setState({refSelected:i,isCalloutVisible:!0,YValueHover:r?(0,n.ev)((0,n.ev)([],e.sort((function(t,n){return t.data<n.data?1:-1})),!0),t.chartData.slice().reverse(),!0):t.chartData.slice().reverse(),hoverXValue:t.xAxisPoint instanceof Date?t.xAxisPoint.toLocaleDateString():t.xAxisPoint,stackCalloutProps:t,activeXAxisDataPoint:t.xAxisPoint,callOutAccessibilityData:t.stackCallOutAccessibilityData})},e.prototype._onRectFocus=function(t,n,i,e){e.refElement&&this._onRectFocusHover(n,t,i,e.refElement)},e.prototype._onStackFocus=function(t,n){n.refElement&&this._onStackHoverFocus(t,n.refElement)},e.prototype._onClick=function(t,n){var i,e;null===(e=(i=this.props).onBarClick)||void 0===e||e.call(i,n,t),this.props.href&&(window.location.href=this.props.href)},e.prototype._getBarGapAndScale=function(t,n,i){var e=this.props.barGapMax,r=void 0===e?0:e,o=t.reduce((function(t,n){return t+n.data}),0),u=null!=i?i:n(o),a=r&&t.length-1,s=a&&Math.max(1,Math.min(r,.2*u/a));return{gapHeight:s,heightValueScale:(u-s*a)/o}},e.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.length>0&&0===this.props.data.filter((function(t){return 0===t.chartData.length})).length)},e}(i.Component),Wo=(0,t.z)(Io,(function(t){var i=t.shouldHighlight,e=t.href,r=t.theme;return{opacityChangeOnHover:{opacity:i?"":"0.1",cursor:e?"pointer":"default"},tooltip:(0,n.pi)((0,n.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:jt.TS.small,fontWeight:jt.lq.semibold,fill:r.palette.neutralPrimary}}})),Ro=(0,o.y)(),zo=.1/.9,jo=function(t){function e(e){var r=t.call(this,e)||this;return r._isRtl=(0,u.zg)(),r._getGraphData=function(t,n,i,e,o){var u=r._createX0Scale(e),a=r._createX1Scale(),s=[];r._datasetForBars.forEach((function(t){s.push(r._buildGraph(t,u,a,i,o))})),r._groupedVerticalBarGraph=s},r._getMargins=function(t){return r.margins=t},r._createDataSetOfGVBC=function(t){var n=[],i=t.map((function(t){return t.name}));t[0].series.forEach((function(t){n.push(t.key)}));var e=r._createDataset(t);return{keys:n,xAxisLabels:i,datasetForBars:e}},r._getCustomizedCallout=function(){return r.props.onRenderCalloutPerDataPoint?r.props.onRenderCalloutPerDataPoint(r.state.dataPointCalloutProps):null},r._getOpacity=function(t){return r._legendHighlighted(t)||r._noLegendHighlighted()?"":"0.1"},r._onBarHover=function(t,n,i){i.persist(),r._calloutAnchorPoint!==t&&(r._calloutAnchorPoint=t,r.setState({refSelected:i,isCalloutVisible:""===r.state.selectedLegend||r.state.selectedLegend===t.legend,calloutLegend:t.legend,dataForHoverCard:t.data,color:t.color,xCalloutValue:t.xAxisCalloutData,yCalloutValue:t.yAxisCalloutData,dataPointCalloutProps:t,callOutAccessibilityData:r.props.isCalloutForStack?n.stackCallOutAccessibilityData:t.callOutAccessibilityData,YValueHover:n.groupSeries,hoverXValue:t.xAxisCalloutData}))},r._onBarLeave=function(){},r._handleChartMouseLeave=function(){r._calloutAnchorPoint=null,r.setState({isCalloutVisible:!1})},r._onBarFocus=function(t,n,i){r._refArray.forEach((function(e,o){e.index===t.legend&&i===o&&r.setState({refSelected:e.refElement,isCalloutVisible:""===r.state.selectedLegend||r.state.selectedLegend===t.legend,calloutLegend:t.legend,dataForHoverCard:t.data,color:t.color,xCalloutValue:t.xAxisCalloutData,yCalloutValue:t.yAxisCalloutData,dataPointCalloutProps:t,callOutAccessibilityData:r.props.isCalloutForStack?n.stackCallOutAccessibilityData:t.callOutAccessibilityData,YValueHover:n.groupSeries,hoverXValue:t.xAxisCalloutData})}))},r._redirectToUrl=function(t){t&&(window.location.href=t)},r._buildGraph=function(t,n,e,o,u){var a=[],s=[],l=(0,To.Z)().domain([0,r._yMax]).range([0,o-r.margins.bottom-r.margins.top]),c=Object.keys(r._datasetForBars[0]).splice(0,r._keys.length);if(c.forEach((function(n,u){var f=t.indexNum*c.length+u,h=t[n],d=e(n)+(e.bandwidth()-r._barWidth)/2,v=Math.max(o-r.margins.bottom-l(h.data),0);h.data&&a.push(i.createElement("rect",{className:r._classNames.opacityChangeOnHover,key:"".concat(t.indexNum,"-").concat(u),height:Math.max(l(h.data),0),width:r._barWidth,x:d,y:v,"data-is-focusable":!r.props.hideTooltip,opacity:r._getOpacity(h.legend),ref:function(t){r._refCallback(t,h.legend,f)},fill:h.color,onMouseOver:r._onBarHover.bind(r,h,t),onMouseMove:r._onBarHover.bind(r,h,t),onMouseOut:r._onBarLeave,onFocus:r._onBarFocus.bind(r,h,t,f),onBlur:r._onBarLeave,onClick:r.props.href?r._redirectToUrl.bind(r,r.props.href):h.onClick,"aria-label":r._getAriaLabel(h,t.xAxisPoint),role:"img"})),h.data&&!r.props.hideLabels&&r._barWidth>=16&&(r._legendHighlighted(h.legend)||r._noLegendHighlighted())&&s.push(i.createElement("text",{x:d+r._barWidth/2,y:v-6,textAnchor:"middle",className:r._classNames.barLabel,"aria-hidden":!0},(0,zn.cE)(h.data)))})),!r.props.wrapXAxisLables&&r.props.showXAxisLablesTooltip){var f=(0,dr.Ys)(u).call(n);try{document.getElementById(r._tooltipId)&&document.getElementById(r._tooltipId).remove()}catch(t){}var h={tooltipCls:r._classNames.tooltip,id:r._tooltipId,xAxis:f};f&&(0,zn.$V)(h)}return i.createElement("g",{key:t.indexNum,transform:"translate(".concat(n(t.xAxisPoint)+(n.bandwidth()-r._groupWidth)/2,", 0)")},a,s)},r._createDataset=function(t){var i=[],e=[];return t.forEach((function(t,r){var o={},u={},a=[];t.series.forEach((function(t){o[t.key]=t.data,u[t.key]=(0,n.pi)({},t),a.push(t)})),u.xAxisPoint=t.name,u.indexNum=r,u.groupSeries=a,u.stackCallOutAccessibilityData=t.stackCallOutAccessibilityData,i.push(u),e.push(o)})),r._dataset=e,i},r._createX0Scale=function(t){return(0,Po.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/(2+r._keys.length+(r._keys.length-1)*zo))},r._createX1Scale=function(){return(0,Po.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(t,e){var o=t,u=[e.blueLight,e.blue,e.blueMid,e.red,e.black],a=[];return o.forEach((function(t){t.series.forEach((function(t){var n=t.color?t.color:u[Math.floor(4*Math.random()+1)];if(!(a.filter((function(i){return i.title===t.legend&&i.color===n})).length>0)){var i={title:t.legend,color:n,action:function(){r._onLegendClick(t.legend)},hoverAction:function(){r._handleChartMouseLeave(),r._onLegendHover(t.legend)},onMouseOutAction:function(){r._onLegendLeave()}};a.push(i)}}))})),i.createElement(me,(0,n.pi)({legends:a,overflowProps:r.props.legendsOverflowProps,enabledWrapLines:r.props.enabledLegendsWrapLines,focusZonePropsInHoverCard:r.props.focusZonePropsForLegendsInHoverCard},r.props.legendProps))},r._getAxisData=function(t){if(t&&t.yAxisDomainValues.length){var n=t.yAxisDomainValues;r._yMax=Math.max(n[n.length-1],r.props.yMaxValue||0)}},r._legendHighlighted=function(t){return r.state.selectedLegend===t||""===r.state.selectedLegend&&r.state.activeLegend===t},r._noLegendHighlighted=function(){return""===r.state.selectedLegend&&""===r.state.activeLegend},r._getAriaLabel=function(t,n){var i,e=t.xAxisCalloutData||n,r=t.legend,o=t.yAxisCalloutData||t.data;return(null===(i=t.callOutAccessibilityData)||void 0===i?void 0:i.ariaLabel)||"".concat(e,". ").concat(r,", ").concat(o,".")},r._getDomainMargins=function(t){var i=t-(r.margins.left+8)-(r.margins.right+8),e=Math.min(r.props.barwidth||16,24),o=r._keys.length*e+(r._keys.length-1)*zo*e,u=r._xAxisLabels.length*o+2*(r._xAxisLabels.length-1)*e;return r._domainMargin=8,i>=u?r._domainMargin+=(i-u)/2:e=(o=i/(r._xAxisLabels.length+(r._xAxisLabels.length-1)*(2/(r._keys.length+(r._keys.length-1)*zo))))/(r._keys.length+(r._keys.length-1)*zo),r._barWidth=e,r._groupWidth=o,(0,n.pi)((0,n.pi)({},r.margins),{left:r.margins.left+r._domainMargin,right:r.margins.right+r._domainMargin})},r._createSet=(0,fn.NF)((function(t){return r._createDataSetOfGVBC(t)})),r.state={color:"",dataForHoverCard:0,isCalloutVisible:!1,refSelected:null,selectedLegend:"",xCalloutValue:"",yCalloutValue:"",YValueHover:[],hoverXValue:"",calloutLegend:"",activeLegend:""},r._refArray=[],r._calloutId=v("callout"),r._tooltipId=v("GVBCTooltipId_"),r._domainMargin=8,r._emptyChartId=v("_GVBC_empty"),r}return(0,n.ZT)(e,t),e.prototype.render=function(){var t=this,e=this.props.data,r=this._createSet(e),o=r.keys,u=r.xAxisLabels,a=r.datasetForBars;this._keys=o,this._xAxisLabels=u,this._datasetForBars=a,this._xAxisType=(0,zn.SY)(e[0].name,!0);var s=this._getLegendData(e,this.props.theme.palette),l=(0,Ur.Z)(this._dataset,(function(n){return(0,Ur.Z)(t._keys,(function(t){return n[t]}))}));this._yMax=Math.max(l,this.props.yMaxValue||0),this._classNames=Ro(this.props.styles,{theme:this.props.theme,href:this.props.href});var c=(0,n.pi)((0,n.pi)((0,n.pi)({target:this.state.refSelected,isCalloutVisible:this.state.isCalloutVisible,directionalHint:y.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,zn.ey)(this.state.callOutAccessibilityData,"text",!1)),f={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return this._isChartEmpty()?i.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):i.createElement(Nr,(0,n.pi)({},this.props,{points:this._datasetForBars,chartType:zn.$X.GroupedVerticalBarChart,calloutProps:c,legendBars:s,xAxisType:this._xAxisType,datasetForXAxisDomain:this._xAxisLabels,tickParams:f,tickPadding:this.props.tickPadding||5,maxOfYVal:this._yMax,svgFocusZoneProps:{direction:Rn.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)*zo),xAxisOuterPadding:0,children:function(){return i.createElement("g",null,t._groupedVerticalBarGraph)}}))},e.prototype._refCallback=function(t,n,i){this._refArray[i]={index:n,refElement:t}},e.prototype._onLegendClick=function(t){this.state.selectedLegend===t?this.setState({selectedLegend:""}):this.setState({selectedLegend:t})},e.prototype._onLegendHover=function(t){this.setState({activeLegend:t})},e.prototype._onLegendLeave=function(){this.setState({activeLegend:""})},e.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.length>0&&this.props.data.filter((function(t){return t.series.length})).length>0)},e}(i.Component),Xo=(0,t.z)(jo,(function(t){var i=t.theme;return{opacityChangeOnHover:{cursor:t.href?"pointer":"default"},tooltip:(0,n.pi)((0,n.pi)({},i.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:i.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"}),barLabel:{fontSize:jt.TS.small,fontWeight:jt.lq.semibold,fill:i.palette.neutralPrimary}}})),Yo=e(1286),qo=e(731),$o=(0,o.y)(),Uo=function(t){function e(e){var r=t.call(this,e)||this;return r._rectRefArray={},r._getXandY=function(){var t="",n="";return r.props.data.forEach((function(i){if(i.data&&i.data.length>0)return t=i.data[0].x,n=i.data[0].y,{x:t,y:n}})),{x:t,y:n}},r._getOpacity=function(t){return r._legendHighlighted(t)||r._noLegendHighlighted()?"1":"0.1"},r._rectRefCallback=function(t,n,i){r._rectRefArray[n]={data:i,refElement:t}},r._onRectFocus=function(t,n){r.setState({target:r._rectRefArray[t].refElement,isCalloutVisible:""===r.state.selectedLegend||r.state.selectedLegend===n.legend,calloutYValue:"".concat(n.rectText),calloutTextColor:r._colorScale(n.value),calloutLegend:n.legend,ratio:n.ratio||null,descriptionMessage:n.descriptionMessage||"",calloutId:t,callOutAccessibilityData:n.callOutAccessibilityData})},r._onRectMouseOver=function(t,n,i){i.persist(),r._calloutAnchorPoint!==n&&(r._calloutAnchorPoint=n,r.setState({target:r._rectRefArray[t].refElement,isCalloutVisible:""===r.state.selectedLegend||r.state.selectedLegend===n.legend,calloutYValue:"".concat(n.rectText),calloutTextColor:r._colorScale(n.value),calloutLegend:n.legend,ratio:n.ratio||null,descriptionMessage:n.descriptionMessage||"",calloutId:t,callOutAccessibilityData:n.callOutAccessibilityData}))},r._onRectBlurOrMouseOut=function(){},r._handleChartMouseLeave=function(){r._calloutAnchorPoint=null,r.setState({isCalloutVisible:!1})},r._createRectangles=function(){var t=[];return r._stringYAxisDataPoints.slice().reverse().forEach((function(n,e){r._dataSet[n].forEach((function(n,o){var u="x".concat(e,"y").concat(o),a=i.createElement("g",{key:u,role:"img","aria-label":r._getAriaLabel(n),"data-is-focusable":!0,fillOpacity:r._getOpacity(n.legend),transform:"translate(".concat(r._xAxisScale(n.x),", ").concat(r._yAxisScale(n.y),")"),ref:function(t){r._rectRefCallback(t,u,n)},onFocus:r._onRectFocus.bind(r,u,n),onBlur:r._onRectBlurOrMouseOut,onMouseOver:r._onRectMouseOver.bind(r,u,n),onMouseOut:r._onRectBlurOrMouseOut},i.createElement("rect",{fill:r._colorScale(n.value),width:r._xAxisScale.bandwidth(),height:r._yAxisScale.bandwidth(),onClick:n.onClick}),i.createElement("text",{dominantBaseline:"middle",textAnchor:"middle",className:r._classNames.text,transform:"translate(".concat(r._xAxisScale.bandwidth()/2,", ").concat(r._yAxisScale.bandwidth()/2,")")},(0,zn.Ts)(n.rectText,r.props.culture)));t.push(a)}))})),t},r._createLegendBars=function(){var t=r.props,e=t.data,o=t.legendProps,u=[];return e.forEach((function(t){var n={title:t.legend,color:r._colorScale(t.value),action:function(){r._onLegendClick(t.legend)},hoverAction:function(){r._handleChartMouseLeave(),r._onLegendHover(t.legend)},onMouseOutAction:function(){r._onLegendLeave()}};u.push(n)})),i.createElement(me,(0,n.pi)({},o,{legends:u}))},r._getColorScale=function(){var t=r.props,n=t.domainValuesForColorScale,i=t.rangeValuesForColorScale;return(0,To.Z)().domain(n).range(i)},r._getXIndex=function(t){return r._xAxisType===zn.xl.DateAxis?"".concat(t.getTime()):r._xAxisType===zn.xl.StringAxis?t:r._xAxisType===zn.xl.NumericAxis?"".concat(t):""},r._getYIndex=function(t){return r._yAxisType===zn.OH.DateAxis?"".concat(t.getTime()):r._yAxisType===zn.OH.StringAxis?t:r._yAxisType===zn.OH.NumericAxis?"".concat(t):""},r._createNewDataSet=function(t,i,e,o,u){var a=[];t.forEach((function(t){t.data.forEach((function(i){a.push((0,n.pi)((0,n.pi)({},i),{legend:t.legend}))}))}));var s={},l={},c={};return a.forEach((function(t){var i=r._getXIndex(t.x),e=r._getYIndex(t.y);c[i]="1",l[e]="1",s[e]?s[e]=(0,n.ev)((0,n.ev)([],s[e],!0),[t],!1):s[e]=[t]})),Object.keys(s).forEach((function(t){s[t].sort((function(t,n){return r._xAxisType===zn.xl.StringAxis?t.x.toLowerCase()>n.x.toLowerCase()?1:-1:r._xAxisType===zn.xl.DateAxis?t.x.getTime()-n.x.getTime():r._xAxisType===zn.xl.NumericAxis?+t.x>+n.x?1:-1:t.x>n.x?1:-1})).forEach((function(t){r._xAxisType===zn.xl.DateAxis&&(t.x=r._getStringFormattedDate(t.x,i)),r._xAxisType===zn.xl.NumericAxis&&(t.x=r._getStringFormattedNumber(t.x,e)),r._xAxisType===zn.xl.StringAxis&&(t.x=r._getFormattedLabelForXAxisDataPoint(t.x)),r._yAxisType===zn.OH.DateAxis&&(t.y=r._getStringFormattedDate(t.y,o)),r._yAxisType===zn.OH.NumericAxis&&(t.y=r._getStringFormattedNumber(t.y,u)),r._yAxisType===zn.OH.StringAxis&&(t.y=r._getFormattedLabelForYAxisDataPoint(t.y))}))})),Object.keys(s).forEach((function(t){r._yAxisType===zn.OH.DateAxis?s[r._getStringFormattedDate(t,o)]=s[t]:r._yAxisType===zn.OH.NumericAxis?s["".concat(r._getStringFormattedNumber(t,u))]=s[t]:s[r._getFormattedLabelForYAxisDataPoint(t)]=s[t]})),{dataSet:s,yAxisPoints:r._getYAxisDataPoints(l),xAxisPoints:r._getXAxisDataPoints(c)}},r._getXAxisDataPoints=function(t){return Object.keys(t).sort((function(t,n){return r._xAxisType===zn.xl.DateAxis||r._xAxisType===zn.xl.NumericAxis?+t-+n:t.toLowerCase()>n.toLowerCase()?1:-1})).map((function(t){return r._xAxisType===zn.xl.DateAxis?r._getStringFormattedDate(t,r.props.xAxisDateFormatString):r._xAxisType===zn.xl.NumericAxis?r._getStringFormattedNumber(t,r.props.xAxisNumberFormatString):r._getFormattedLabelForXAxisDataPoint(t)}))},r._getYAxisDataPoints=function(t){return Object.keys(t).sort((function(t,n){return r._yAxisType===zn.OH.DateAxis||r._yAxisType===zn.OH.NumericAxis?+t-+n:t.toLowerCase()>n.toLowerCase()?1:-1})).map((function(t){return r._yAxisType===zn.OH.DateAxis?r._getStringFormattedDate(t,r.props.yAxisDateFormatString):r._yAxisType===zn.OH.NumericAxis?r._getStringFormattedNumber(t,r.props.yAxisNumberFormatString):r._getFormattedLabelForYAxisDataPoint(t)}))},r._getStringFormattedDate=function(t,n){var i=new Date;return i.setTime(+t),(0,qo.i$)(n||"%b/%d")(i)},r._getStringFormattedNumber=function(t,n){return(0,Ge.WU)(n||".2~s")(+t)},r._getFormattedLabelForXAxisDataPoint=function(t){var n=r.props.xAxisStringFormatter;return n?n(t):t},r._getFormattedLabelForYAxisDataPoint=function(t){var n=r.props.yAxisStringFormatter;return n?n(t):t},r._closeCallout=function(){r.setState({isCalloutVisible:!1})},r._legendHighlighted=function(t){return r.state.selectedLegend===t||""===r.state.selectedLegend&&r.state.activeLegend===t},r._noLegendHighlighted=function(){return""===r.state.selectedLegend&&""===r.state.activeLegend},r._getAriaLabel=function(t){var n,i=t.x,e=t.y,r=t.legend,o=t.ratio?"".concat(t.ratio[0],"/").concat(t.ratio[1]):t.rectText||t.value,u=t.descriptionMessage;return(null===(n=t.callOutAccessibilityData)||void 0===n?void 0:n.ariaLabel)||"".concat(i,", ").concat(e,". ").concat(r,", ").concat(o,".")+(u?" ".concat(u,"."):"")},r._createSet=(0,fn.NF)((function(t,n,i,e,o){return r._createNewDataSet(t,n,i,e,o)})),r.state={selectedLegend:"",activeLegend:"",isCalloutVisible:!1,target:null,calloutLegend:"",calloutTextColor:"",calloutYValue:"",ratio:null,descriptionMessage:"",calloutId:""},r._emptyChartId=v("_HeatMap_empty"),r}return(0,n.ZT)(e,t),e.prototype.render=function(){var t=this,e=this._getXandY(),r=e.x,o=e.y;this._xAxisType=(0,zn.SY)(r,!0),this._yAxisType=(0,zn.SY)(o,!1);var u=this.props,a=u.data,s=u.xAxisDateFormatString,l=u.xAxisNumberFormatString,c=u.yAxisDateFormatString,f=u.yAxisNumberFormatString;this._colorScale=this._getColorScale();var h=this._createSet(a,s,l,c,f),d=h.dataSet,v=h.xAxisPoints,p=h.yAxisPoints;this._dataSet=d,this._stringYAxisDataPoints=p,this._stringXAxisDataPoints=v,this._classNames=$o(this.props.styles,{theme:this.props.theme});var g=(0,n.pi)((0,n.pi)((0,n.pi)((0,n.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:y.topAutoEdge,onDismiss:this._closeCallout}),(0,zn.ey)(this.state.callOutAccessibilityData,"text",!1)),{preventDismissOnLostFocus:!0}),m=(0,n.pi)((0,n.pi)({},this.state.ratio&&{ratio:this.state.ratio}),{descriptionMessage:this.state.descriptionMessage});return this._isChartEmpty()?i.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):i.createElement(Nr,(0,n.pi)({},this.props,{points:a,chartType:zn.$X.HeatMapChart,xAxisType:zn.xl.StringAxis,yAxisType:zn.OH.StringAxis,calloutProps:g,chartHoverProps:m,styles:this._classNames.subComponentStyles.cartesianStyles,datasetForXAxisDomain:this._stringXAxisDataPoints,stringDatasetForYAxisDomain:this._stringYAxisDataPoints,xAxisTickCount:this._stringXAxisDataPoints.length,xAxistickSize:0,xAxisPadding:.02,yAxisPadding:.02,svgFocusZoneProps:{direction:Rn.bidirectional},legendBars:this._createLegendBars(),onChartMouseLeave:this._handleChartMouseLeave,children:function(n){return t._xAxisScale=n.xScale,t._yAxisScale=n.yScale,t._createRectangles()}}))},e.prototype._onLegendHover=function(t){this.setState({activeLegend:t})},e.prototype._onLegendLeave=function(){this.setState({activeLegend:""})},e.prototype._onLegendClick=function(t){this.state.selectedLegend===t?this.setState({selectedLegend:""}):this.setState({selectedLegend:t})},e.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.length>0)},e}(i.Component),Zo=(0,t.z)(Uo,(function(t){var n=t.theme;return{root:{},text:[n.fonts.medium,{pointerEvents:"none",fill:n.palette.white,fontWeight:jt.lq.semibold}],subComponentStyles:{cartesianStyles:{},calloutStyles:{root:{maxWidth:"238px"}}}}}));function Go(t,n){let i=0;if(void 0===n)for(let n of t)(n=+n)&&(i+=n);else{let e=-1;for(let r of t)(r=+n(r,++e,t))&&(i+=r)}return i}function Ko(t,n){let i=0;if(void 0===n)for(let n of t)(n=+n)&&(i+=n);else{let e=-1;for(let r of t)(r=+n(r,++e,t))&&(i+=r)}return i}function Jo(t,n){let i;if(void 0===n)for(const n of t)null!=n&&(i<n||void 0===i&&n>=n)&&(i=n);else{let e=-1;for(let r of t)null!=(r=n(r,++e,t))&&(i<r||void 0===i&&r>=r)&&(i=r)}return i}function Qo(t,n){return n-1-t.height}function tu(t,n){return t.sourceLinks.length?t.depth:n-1}function nu(t){return function(){return t}}function iu(t,n){return ru(t.source,n.source)||t.index-n.index}function eu(t,n){return ru(t.target,n.target)||t.index-n.index}function ru(t,n){return t.y0-n.y0}function ou(t){return t.value}function uu(t){return t.index}function au(t){return t.nodes}function su(t){return t.links}function lu(t,n){const i=t.get(n);if(!i)throw new Error("missing: "+n);return i}function cu({nodes:t}){for(const n of t){let t=n.y0,i=t;for(const i of n.sourceLinks)i.y0=t+i.width/2,t+=i.width;for(const t of n.targetLinks)t.y1=i+t.width/2,i+=t.width}}class fu{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,n){switch(t=+t,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n)}this._x0=t,this._y0=n}}function hu(t){return new fu(t,!0)}var du=(0,o.y)(),vu="#757575",pu=[{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"}],gu="#323130",mu="#FFFFFF",yu=function(t){function e(n){var i=t.call(this,n)||this;return i._isRtl=(0,u.zg)(),i._onCloseCallout=function(){i.setState({isCalloutVisible:!1,refSelected:void 0,descriptionMessage:""})},i._onBlur=function(){},i._fillNodeColors=function(t){var n=i.state;return n.selectedState?n.selectedState&&n.selectedNodes.has(t.index)&&n.selectedNode?n.selectedNode.color:n.selectedState&&!n.selectedNode?t.color:void 0:t.color},i._fillNodeBorder=function(t){var n=i.state;return n.selectedState?n.selectedState&&n.selectedNodes.has(t.index)&&n.selectedNode?n.selectedNode.borderColor:(n.selectedState&&n.selectedNodes.has(t.index),t.borderColor):t.borderColor},i.state={containerHeight:468,containerWidth:912,selectedState:!1,selectedLinks:new Set,selectedNodes:new Set,shouldOverflow:!1,isCalloutVisible:!1},i._calloutId=v("callout"),i._linkId=v("link"),i._margins={top:36,right:48,bottom:32,left:48},i._preRenderLayout(),i._normalizeData=(0,fn.NF)((function(t){return i._normalizeSankeyData(t)})),i._emptyChartId=v("_SankeyChart_empty"),i}return(0,n.ZT)(e,t),e.prototype.componentDidMount=function(){this._fitParentContainer()},e.prototype.componentDidUpdate=function(t){t.shouldResize!==this.props.shouldResize&&this._fitParentContainer()},e.prototype.componentWillUnmount=function(){cancelAnimationFrame(this._reqID)},e.prototype.render=function(){var t,e=this;if(!this._isChartEmpty()){var r,o=this.props,u=o.theme,a=o.className,s=o.styles,l=o.pathColor,c=this.state,f=du(s,{theme:u,width:c.containerWidth,height:c.containerHeight,pathColor:l,className:a}),h=this._preRenderLayout(),d=h.height,p=h.width,g=this.props.data.SankeyChartData;this._normalizeData(g),r=this._adjustPadding(this._sankey,d-6,this._nodesInColumn),this._sankey.nodePadding(r),this._sankey(g),(t=g).links.forEach((function(t){t.unnormalizedValue||(t.unnormalizedValue=t.value)})),t.nodes.forEach((function(t){t.actualValue=Math.max(Go(t.sourceLinks,(function(t){return t.unnormalizedValue})),Go(t.targetLinks,(function(t){return t.unnormalizedValue})))})),this._assignNodeColors();var m=this._createNodes(f),b=this._createLinks(),x={isCalloutVisible:c.isCalloutVisible,directionalHint:y.topAutoEdge,id:"toolTip".concat(this._calloutId),target:c.refSelected,color:c.color,XValue:c.xCalloutValue,YValue:c.yCalloutValue?c.yCalloutValue:c.dataForHoverCard,descriptionMessage:c.descriptionMessage,isBeakVisible:!1,gapSpace:15,onDismiss:this._onCloseCallout,className:f.calloutContentRoot,preventDismissOnLostFocus:!0};return i.createElement("div",{className:f.root,role:"presentation",ref:function(t){return e.chartContainer=t},onMouseLeave:this._onCloseCallout},i.createElement(fi,{direction:Rn.bidirectional,isCircularNavigation:!0,handleTabKey:1},i.createElement("svg",{width:p,height:d,id:v("sankeyChart")},i.createElement("g",{className:f.links,strokeOpacity:1},b),i.createElement("g",{className:f.nodes},m),x.isCalloutVisible&&i.createElement(Wn,(0,n.pi)({},x),i.createElement(jn.ChartHoverCard,{XValue:x.XValue,YValue:x.YValue,color:x.color,descriptionMessage:x.descriptionMessage?x.descriptionMessage:""})))))}return i.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"})},e.prototype._preRenderLayout=function(){var t=this.state,n=t.containerHeight,i=t.containerWidth,e=this._margins,r=e.left,o=e.right,u=e.top,a=e.bottom,s=i-o,l=n-a>0?n-a:0;return this._sankey=function(){let t,n,i,e=0,r=0,o=1,u=1,a=24,s=8,l=uu,c=tu,f=au,h=su,d=6;function v(){const v={nodes:f.apply(null,arguments),links:h.apply(null,arguments)};return function({nodes:t,links:n}){for(const[n,i]of t.entries())i.index=n,i.sourceLinks=[],i.targetLinks=[];const e=new Map(t.map(((n,i)=>[l(n,i,t),n])));for(const[t,i]of n.entries()){i.index=t;let{source:n,target:r}=i;"object"!=typeof n&&(n=i.source=lu(e,n)),"object"!=typeof r&&(r=i.target=lu(e,r)),n.sourceLinks.push(i),r.targetLinks.push(i)}if(null!=i)for(const{sourceLinks:n,targetLinks:e}of t)n.sort(i),e.sort(i)}(v),function({nodes:t}){for(const n of t)n.value=void 0===n.fixedValue?Math.max(Ko(n.sourceLinks,ou),Ko(n.targetLinks,ou)):n.fixedValue}(v),function({nodes:t}){const n=t.length;let i=new Set(t),e=new Set,r=0;for(;i.size;){for(const t of i){t.depth=r;for(const{target:n}of t.sourceLinks)e.add(n)}if(++r>n)throw new Error("circular link");i=e,e=new Set}}(v),function({nodes:t}){const n=t.length;let i=new Set(t),e=new Set,r=0;for(;i.size;){for(const t of i){t.height=r;for(const{source:n}of t.targetLinks)e.add(n)}if(++r>n)throw new Error("circular link");i=e,e=new Set}}(v),function(i){const l=function({nodes:t}){const i=Jo(t,(t=>t.depth))+1,r=(o-e-a)/(i-1),u=new Array(i);for(const n of t){const t=Math.max(0,Math.min(i-1,Math.floor(c.call(null,n,i))));n.layer=t,n.x0=e+t*r,n.x1=n.x0+a,u[t]?u[t].push(n):u[t]=[n]}if(n)for(const t of u)t.sort(n);return u}(i);t=Math.min(s,(u-r)/(Jo(l,(t=>t.length))-1)),function(n){const i=function(t,n){let i;if(void 0===n)for(const n of t)null!=n&&(i>n||void 0===i&&n>=n)&&(i=n);else{let e=-1;for(let r of t)null!=(r=n(r,++e))&&(i>r||void 0===i&&r>=r)&&(i=r)}return i}(n,(n=>(u-r-(n.length-1)*t)/Ko(n,ou)));for(const e of n){let n=r;for(const r of e){r.y0=n,r.y1=n+r.value*i,n=r.y1+t;for(const t of r.sourceLinks)t.width=t.value*i}n=(u-n+t)/(e.length+1);for(let t=0;t<e.length;++t){const i=e[t];i.y0+=n*(t+1),i.y1+=n*(t+1)}w(e)}}(l);for(let t=0;t<d;++t){const n=Math.pow(.99,t),i=Math.max(1-n,(t+1)/d);g(l,n,i),p(l,n,i)}}(v),cu(v),v}function p(t,i,e){for(let r=1,o=t.length;r<o;++r){const o=t[r];for(const t of o){let n=0,e=0;for(const{source:i,value:r}of t.targetLinks){let o=r*(t.layer-i.layer);n+=C(i,t)*o,e+=o}if(!(e>0))continue;let r=(n/e-t.y0)*i;t.y0+=r,t.y1+=r,x(t)}void 0===n&&o.sort(ru),m(o,e)}}function g(t,i,e){for(let r=t.length-2;r>=0;--r){const o=t[r];for(const t of o){let n=0,e=0;for(const{target:i,value:r}of t.sourceLinks){let o=r*(i.layer-t.layer);n+=M(t,i)*o,e+=o}if(!(e>0))continue;let r=(n/e-t.y0)*i;t.y0+=r,t.y1+=r,x(t)}void 0===n&&o.sort(ru),m(o,e)}}function m(n,i){const e=n.length>>1,o=n[e];b(n,o.y0-t,e-1,i),y(n,o.y1+t,e+1,i),b(n,u,n.length-1,i),y(n,r,0,i)}function y(n,i,e,r){for(;e<n.length;++e){const o=n[e],u=(i-o.y0)*r;u>1e-6&&(o.y0+=u,o.y1+=u),i=o.y1+t}}function b(n,i,e,r){for(;e>=0;--e){const o=n[e],u=(o.y1-i)*r;u>1e-6&&(o.y0-=u,o.y1-=u),i=o.y0-t}}function x({sourceLinks:t,targetLinks:n}){if(void 0===i){for(const{source:{sourceLinks:t}}of n)t.sort(eu);for(const{target:{targetLinks:n}}of t)n.sort(iu)}}function w(t){if(void 0===i)for(const{sourceLinks:n,targetLinks:i}of t)n.sort(eu),i.sort(iu)}function C(n,i){let e=n.y0-(n.sourceLinks.length-1)*t/2;for(const{target:r,width:o}of n.sourceLinks){if(r===i)break;e+=o+t}for(const{source:t,width:r}of i.targetLinks){if(t===n)break;e-=r}return e}function M(n,i){let e=i.y0-(i.targetLinks.length-1)*t/2;for(const{source:r,width:o}of i.targetLinks){if(r===n)break;e+=o+t}for(const{target:t,width:r}of n.sourceLinks){if(t===i)break;e-=r}return e}return v.update=function(t){return cu(t),t},v.nodeId=function(t){return arguments.length?(l="function"==typeof t?t:nu(t),v):l},v.nodeAlign=function(t){return arguments.length?(c="function"==typeof t?t:nu(t),v):c},v.nodeSort=function(t){return arguments.length?(n=t,v):n},v.nodeWidth=function(t){return arguments.length?(a=+t,v):a},v.nodePadding=function(n){return arguments.length?(s=t=+n,v):s},v.nodes=function(t){return arguments.length?(f="function"==typeof t?t:nu(t),v):f},v.links=function(t){return arguments.length?(h="function"==typeof t?t:nu(t),v):h},v.linkSort=function(t){return arguments.length?(i=t,v):i},v.size=function(t){return arguments.length?(e=r=0,o=+t[0],u=+t[1],v):[o-e,u-r]},v.extent=function(t){return arguments.length?(e=+t[0][0],o=+t[1][0],r=+t[0][1],u=+t[1][1],v):[[e,r],[o,u]]},v.iterations=function(t){return arguments.length?(d=+t,v):d},v}().nodeWidth(124).extent([[r,u],[s-1,l-6]]).nodeAlign(this._isRtl?Qo:tu),{height:l,width:s}},e.prototype._normalizeSankeyData=function(t){var n;n=this._nodesInColumn=function(t,n){n(t);var i={};return t.nodes.forEach((function(t){var n=t.layer;i[n]?i[n].push(t):i[n]=[t]})),i}(t,this._sankey),Object.values(n).map((function(t){return Go(t,(function(t){return t.value}))})).forEach((function(t,i){var e=0;n[i].forEach((function(n){var i=n.value/t*100;n.actualValue=n.value,i<1?(n.value=.01*t,e+=1):e+=i}));var r=0!==e?e/100:1;r>1&&n[i].forEach((function(t){t.value=t.value/r,function(t,n,i){t.sourceLinks.forEach((function(t){t.unnormalizedValue=t.value;var e=t.value/n;t.value=i*e})),t.targetLinks.forEach((function(t){t.unnormalizedValue=t.value;var e=t.value/n;t.value=i*e}))}(t,t.actualValue,t.value)}))}))},e.prototype._adjustPadding=function(t,n,i){var e=this._sankey.nodePadding();return Object.values(i).forEach((function(t){var i=.3*n;i<n-Go(t,(function(t){return t.y1-t.y0}))&&(e=Math.min(e,i/(t.length-1)))})),e},e.prototype._createLinks=function(){var t=this,n=[],e=this.props.data.SankeyChartData;if(e){var r=this._linkId;e.links.forEach((function(e,o){var u,a=[{x:(u=e).source.x1,y0:u.y0+u.width/2,y1:u.y0-u.width/2},{x:u.target.x0,y0:u.y1+u.width/2,y1:u.y1-u.width/2}],s=Qr().x((function(t){return t.x})).y0((function(t){return t.y0})).y1((function(t){return t.y1})).curve(hu),l="url(#gradient-".concat(r,"-").concat(o,")"),c=i.createElement("g",{key:"".concat(r,"-").concat(o)},i.createElement("defs",null,i.createElement("linearGradient",{id:"gradient-".concat(r,"-").concat(o),x1:"0%",y1:"0%",x2:"100%",y2:"0%"},i.createElement("stop",{offset:"0",stopColor:e.source.color}),i.createElement("stop",{offset:"100%",stopColor:e.target.color}))),i.createElement("path",{d:s(a),id:v("link"),fill:t._fillStreamColors(e,l),stroke:t._fillStreamBorder(e,l),strokeWidth:"2",strokeOpacity:t._getOpacityStreamBorder(e),onMouseOver:t._onStreamHover.bind(t,e),onMouseOut:function(){t._onStreamLeave(e)},onFocus:t._onFocusLink.bind(t,e),onBlur:t._onBlur,fillOpacity:t._getOpacityStream(e),"data-is-focusable":!0,"aria-label":"link from ".concat(e.source.name," to ").concat(e.target.name," with weight ").concat(e.unnormalizedValue),role:"img"}));n.push(c)}))}return n},e.prototype._createNodes=function(t){var n=this,e=[],r=this.props.data.SankeyChartData;if(r){var o=this.state;return r.nodes.forEach((function(r,u){var a=r.y1-r.y0>0?r.y1-r.y0:0,s=8,l=0;if(a<36){s+=6;var c=(0,dr.Ys)(".nodeName").append("text").attr("class","tempText").append("tspan").text(null);c.text(r.actualValue),null!==c.node()&&(s+=l=c.node().getComputedTextLength()),c.text(null),(0,dr.td)(".tempText").remove()}var f=n.v(r.name,116,s),h="..."===f.slice(-3),d=v("tooltip"),p=(0,dr.Ys)("body").append("div").attr("id",d).attr("class",t.toolTip).style("opacity",0),g=v("nodeBar"),m=i.createElement("g",{key:u,id:v("nodeGElement")},i.createElement("rect",{x:r.x0,y:r.y0,height:a,width:r.x1-r.x0,fill:n._fillNodeColors(r),id:g,onMouseOver:n._onHover.bind(n,r),onMouseOut:function(){n._onLeave(r)},onFocus:n._onCloseCallout.bind(n),stroke:n._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&&i.createElement("g",{className:t.nodeTextContainer},i.createElement("g",{className:"nodeName"},i.createElement("text",{id:"".concat(g,"-name"),x:r.x0,y:r.y0,dy:"1.2em",dx:"0.4em",textAnchor:n._isRtl?"end":"start",fontWeight:"regular","aria-hidden":"true",fill:!o.selectedState||o.selectedState&&o.selectedNodes.has(r.index)&&o.selectedNode||o.selectedState&&!o.selectedNode?mu:gu,fontSize:10,onMouseOver:n._showTooltip.bind(n,r.name,h,p),onMouseOut:n._hideTooltip.bind(n,p)},f)),i.createElement("text",{x:a>36?r.x0:r.x1-l-8,y:r.y0,dy:a>36?"2em":"1em",dx:a>36?"0.4em":"0em",textAnchor:n._isRtl?"end":"start",fontWeight:"bold","aria-hidden":"true",fill:!o.selectedState||o.selectedState&&o.selectedNodes.has(r.index)&&o.selectedNode||o.selectedState&&!o.selectedNode?mu:gu,fontSize:14},r.actualValue)));e.push(m)})),e}},e.prototype._onLeave=function(t){this.state.selectedState&&this.setState({selectedState:!1,selectedNodes:new Set,selectedLinks:new Set,selectedNode:void 0})},e.prototype._onHover=function(t,n){if(n.persist(),this._onCloseCallout(),!this.state.selectedState){var i=function(t){var n=new Array,i=new Set;for(t.sourceLinks.forEach((function(t){n.push(t),i.add(t)}));n.length>0;)(e=n.shift().target)&&e.sourceLinks&&e.sourceLinks.forEach((function(t){i.add(t),n.push(t)}));for(t.targetLinks&&t.targetLinks.forEach((function(t){n.push(t),i.add(t)}));n.length>0;){var e;(e=n.shift().source)&&e.targetLinks&&e.targetLinks.forEach((function(t){i.add(t),n.push(t)}))}return i}(t),e=function(t){var n=[];return t.forEach((function(t){n.push(t.target),-1===n.indexOf(t.source)&&n.push(t.source)})),n}(i);e.push(t),this.setState({selectedState:!0,selectedNodes:new Set(Array.from(e).map((function(t){return t.index}))),selectedLinks:new Set(Array.from(i).map((function(t){return t.index}))),selectedNode:t,refSelected:n,isCalloutVisible:t.y1-t.y0<24,color:t.color,xCalloutValue:t.name,yCalloutValue:t.actualValue})}},e.prototype._onStreamHover=function(t,n){if(n.persist(),this._onCloseCallout(),!this.state.selectedState){var i=function(t){var n=new Array,i=new Set,e=new Set;for(n.push(t.source),i.add(t);n.length>0;){var r=n.shift();e.add(r),r.targetLinks&&r.targetLinks.length>0&&r.targetLinks.forEach((function(t){n.push(t.source),i.add(t)}))}for(n.push(t.target);n.length>0;)r=n.shift(),e.add(r),r.sourceLinks&&r.sourceLinks.length>0&&r.sourceLinks.forEach((function(t){n.push(t.target),i.add(t)}));return{selectedLinks:i,selectedNodes:e}}(t),e=i.selectedLinks,r=i.selectedNodes;this.setState({selectedState:!0,selectedNodes:new Set(Array.from(r).map((function(t){return t.index}))),selectedLinks:new Set(Array.from(e).map((function(t){return t.index}))),refSelected:n,selectedLink:t,isCalloutVisible:!0,color:t.source.color,xCalloutValue:t.target.name,yCalloutValue:t.unnormalizedValue.toString(),descriptionMessage:"from "+t.source.name})}},e.prototype._onStreamLeave=function(t){this.state.selectedState&&this.setState({selectedState:!1,selectedNodes:new Set,selectedLinks:new Set,selectedLink:void 0})},e.prototype._onFocusLink=function(t,n){n.persist(),this._onCloseCallout(),this.setState({refSelected:n.currentTarget,selectedLink:t,isCalloutVisible:!0,color:t.source.color,xCalloutValue:t.target.name,yCalloutValue:t.source.actualValue,descriptionMessage:"from "+t.source.name})},e.prototype._assignNodeColors=function(){var t,n,i=this.props,e=i.colorsForNodes,r=i.borderColorsForNodes;e&&r?(t=e,n=r):(t=pu.map((function(t){return t.fillColor})),n=pu.map((function(t){return t.borderColor})));var o=0;this.props.data.SankeyChartData.nodes.forEach((function(i){i.color||i.borderColor?i.color&&!i.borderColor?i.borderColor="#757575":i.borderColor&&!i.color&&(i.color="#F5F5F5"):(i.color=t[o],i.borderColor=n[o]),o=(o+1)%t.length}))},e.prototype._fillStreamColors=function(t,n){var i=this.state;return i.selectedState&&i.selectedLinks.has(t.index)&&i.selectedNode?i.selectedNode.color:i.selectedState&&i.selectedLinks.has(t.index)?n:void 0},e.prototype._fillStreamBorder=function(t,n){var i=this.state;return i.selectedState?i.selectedState&&i.selectedLinks.has(t.index)&&i.selectedNode?i.selectedNode.borderColor:i.selectedState&&i.selectedLinks.has(t.index)?n:vu:vu},e.prototype._getOpacityStream=function(t){var n=this.state;if(n.selectedState){if(!n.selectedLinks.has(t.index))return 1;if(n.selectedLinks.has(t.index)&&!n.selectedNode)return.3}return 1},e.prototype._getOpacityStreamBorder=function(t){var n=this.state;return!n.selectedState||n.selectedLinks.has(t.index)||n.selectedNode?1:.5},e.prototype._fitParentContainer=function(){var t=this,n=this.state,i=n.containerWidth,e=n.containerHeight;this._reqID=requestAnimationFrame((function(){var n=t.props.parentRef?t.props.parentRef:t.chartContainer,r=n&&n.getBoundingClientRect().width,o=n&&n.getBoundingClientRect().height;(i!==r||e!==o)&&t.setState({containerWidth:r,containerHeight:o})}))},e.prototype.v=function(t,n,i){var e=n-i,r=0,o=(0,dr.Ys)(".nodeName").append("text").attr("class","tempText").attr("font-size","10").append("tspan").text(null);if(o.text(t),null!==o.node()&&o.node().getComputedTextLength()<=e)return t;o.text(null),o.text("..."),null!==o.node()&&(r=o.node().getComputedTextLength()),o.text(null);for(var u="",a=0;a<t.length;a++)if(u+=t[a],o.text(u),null!==o.node()&&o.node().getComputedTextLength()>=e-r){u=u.slice(0,-1),u+="...";break}return o.text(null),(0,dr.td)(".tempText").remove(),u},e.prototype._showTooltip=function(t,n,i,e){n&&(i.style("opacity",.9),i.html(t).style("left",e.pageX+"px").style("top",e.pageY-28+"px"))},e.prototype._hideTooltip=function(t){t.style("opacity",0)},e.prototype._isChartEmpty=function(){var t,n=null===(t=this.props.data)||void 0===t?void 0:t.SankeyChartData;return!(n&&n.nodes.length>0&&n.links.length>0)},e}(i.Component),bu=(0,t.z)(yu,(function(t){var i,e,r,o=t.className,u=t.theme,a=t.pathColor,s=u.effects;return{root:[u.fonts.medium,{display:"flex",width:"100%",height:"100%",flexDirection:"column",overflow:"hidden"},o],links:{stroke:a||u.palette.black,fill:u?u.semanticColors.bodyBackground:"#F5F5F5",strokeWidth:3,selectors:(i={},i[jt.$v]={fill:"#000000"},i)},nodes:{fill:"#F5F5F5",selectors:(e={},e[jt.$v]={fill:"#000000"},e)},toolTip:(0,n.pi)((0,n.pi)({},t.theme.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:t.theme.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"}),nodeTextContainer:{selectors:{text:{selectors:(r={},r[jt.$v]={fill:"rgb(179, 179, 179)"},r)}},marginTop:"4px",marginLeft:"8px",marginBottom:"4px",marginRight:"8px"},calloutContentRoot:{boxShadow:s.elevation4}}}));function xu(t){var n=0,i=t.children,e=i&&i.length;if(e)for(;--e>=0;)n+=i[e].value;else n=1;t.value=n}function wu(t,n){t instanceof Map?(t=[void 0,t],void 0===n&&(n=Mu)):void 0===n&&(n=Cu);for(var i,e,r,o,u,a=new Vu(t),s=[a];i=s.pop();)if((r=n(i.data))&&(u=(r=Array.from(r)).length))for(i.children=r,o=u-1;o>=0;--o)s.push(e=r[o]=new Vu(r[o])),e.parent=i,e.depth=i.depth+1;return a.eachBefore(Lu)}function Cu(t){return t.children}function Mu(t){return Array.isArray(t)?t[1]:null}function ku(t){void 0!==t.data.value&&(t.value=t.data.value),t.data=t.data.data}function Lu(t){var n=0;do{t.height=n}while((t=t.parent)&&t.height<++n)}function Vu(t){this.data=t,this.depth=this.height=0,this.parent=null}function Su(t,n){return t.parent===n.parent?1:2}function Nu(t){var n=t.children;return n?n[0]:t.t}function Au(t){var n=t.children;return n?n[n.length-1]:t.t}function Du(t,n,i){var e=i/(n.i-t.i);n.c-=e,n.s+=i,t.c+=e,n.z+=i,n.m+=i}function Tu(t,n,i){return t.a.parent===n.parent?t.a:i}function Ou(t,n){this._=t,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=n}Vu.prototype=wu.prototype={constructor:Vu,count:function(){return this.eachAfter(xu)},each:function(t,n){let i=-1;for(const e of this)t.call(n,e,++i,this);return this},eachAfter:function(t,n){for(var i,e,r,o=this,u=[o],a=[],s=-1;o=u.pop();)if(a.push(o),i=o.children)for(e=0,r=i.length;e<r;++e)u.push(i[e]);for(;o=a.pop();)t.call(n,o,++s,this);return this},eachBefore:function(t,n){for(var i,e,r=this,o=[r],u=-1;r=o.pop();)if(t.call(n,r,++u,this),i=r.children)for(e=i.length-1;e>=0;--e)o.push(i[e]);return this},find:function(t,n){let i=-1;for(const e of this)if(t.call(n,e,++i,this))return e},sum:function(t){return this.eachAfter((function(n){for(var i=+t(n.data)||0,e=n.children,r=e&&e.length;--r>=0;)i+=e[r].value;n.value=i}))},sort:function(t){return this.eachBefore((function(n){n.children&&n.children.sort(t)}))},path:function(t){for(var n=this,i=function(t,n){if(t===n)return t;var i=t.ancestors(),e=n.ancestors(),r=null;for(t=i.pop(),n=e.pop();t===n;)r=t,t=i.pop(),n=e.pop();return r}(n,t),e=[n];n!==i;)n=n.parent,e.push(n);for(var r=e.length;t!==i;)e.splice(r,0,t),t=t.parent;return e},ancestors:function(){for(var t=this,n=[t];t=t.parent;)n.push(t);return n},descendants:function(){return Array.from(this)},leaves:function(){var t=[];return this.eachBefore((function(n){n.children||t.push(n)})),t},links:function(){var t=this,n=[];return t.each((function(i){i!==t&&n.push({source:i.parent,target:i})})),n},copy:function(){return wu(this).eachBefore(ku)},[Symbol.iterator]:function*(){var t,n,i,e,r=this,o=[r];do{for(t=o.reverse(),o=[];r=t.pop();)if(yield r,n=r.children)for(i=0,e=n.length;i<e;++i)o.push(n[i])}while(o.length)}},Ou.prototype=Object.create(Vu.prototype);var Pu,Eu,Fu=(0,o.y)(),Bu=function(t){function i(n,i,e,r,o,u){void 0===r&&(r=[]),void 0===o&&(o=[]);var a=t.call(this,n,e,r,o)||this;return a.composition=i,a._treeTraversal=u,a}return(0,n.ZT)(i,t),i.prototype.C=function(t,n){var i,e,r,o,u,a,s=(t=t<65?65:t>90?90:t)||75,l=wu(this.treeData,(function(t){return t.children})),c=(null==l?void 0:l.height)+1;(function(){var t=Su,n=1,i=1,e=null;function r(r){var s=function(t){for(var n,i,e,r,o,u=new Ou(t,0),a=[u];n=a.pop();)if(e=n._.children)for(n.children=new Array(o=e.length),r=o-1;r>=0;--r)a.push(i=n.children[r]=new Ou(e[r],r)),i.parent=n;return(u.parent=new Ou(null,0)).children=[u],u}(r);if(s.eachAfter(o),s.parent.m=-s.z,s.eachBefore(u),e)r.eachBefore(a);else{var l=r,c=r,f=r;r.eachBefore((function(t){t.x<l.x&&(l=t),t.x>c.x&&(c=t),t.depth>f.depth&&(f=t)}));var h=l===c?1:t(l,c)/2,d=h-l.x,v=n/(c.x+h+d),p=i/(f.depth||1);r.eachBefore((function(t){t.x=(t.x+d)*v,t.y=t.depth*p}))}return r}function o(n){var i=n.children,e=n.parent.children,r=n.i?e[n.i-1]:null;if(i){!function(t){for(var n,i=0,e=0,r=t.children,o=r.length;--o>=0;)(n=r[o]).z+=i,n.m+=i,i+=n.s+(e+=n.c)}(n);var o=(i[0].z+i[i.length-1].z)/2;r?(n.z=r.z+t(n._,r._),n.m=n.z-o):n.z=o}else r&&(n.z=r.z+t(n._,r._));n.parent.A=function(n,i,e){if(i){for(var r,o=n,u=n,a=i,s=o.parent.children[0],l=o.m,c=u.m,f=a.m,h=s.m;a=Au(a),o=Nu(o),a&&o;)s=Nu(s),(u=Au(u)).a=n,(r=a.z+f-o.z-l+t(a._,o._))>0&&(Du(Tu(a,n,e),n,r),l+=r,c+=r),f+=a.m,l+=o.m,h+=s.m,c+=u.m;a&&!Au(u)&&(u.t=a,u.m+=f-c),o&&!Nu(s)&&(s.t=o,s.m+=l-h,e=n)}return e}(n,r,n.parent.A||e[0])}function u(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function a(t){t.x*=n,t.y=t.depth*i}return r.separation=function(n){return arguments.length?(t=n,r):t},r.size=function(t){return arguments.length?(e=!1,n=+t[0],i=+t[1],r):e?null:[n,i]},r.nodeSize=function(t){return arguments.length?(e=!0,n=+t[0],i=+t[1],r):e?[n,i]:null},r})().nodeSize([s,s/1.5]).separation((function(t,n){return t.parent===l&&n.parent===l?3.5:1}))(l).descendants().forEach((function(t){t.y=0===t.depth?10:130*t.depth,t.x+=n/2}));var f=[],h=0,d=function(t){var n,i;t.id=h,f.push({id:h,children:t.children,dataName:t.data.name,subName:t.data.subname,bodyText:t.data.bodytext,metricName:null===(n=t.data)||void 0===n?void 0:n.metric,fill:t.data.fill,x:t.x,y:t.y,parentID:null===(i=t.parent)||void 0===i?void 0:i.id}),h++};0===this._treeTraversal?l.each((function(t){d(t)})):l.eachBefore((function(t){d(t)}));for(var v=3*s,p=v/3.45,g=20,m=new Set,y=0,b=f;y<b.length;y++){var x=b[y],w=0===x.id?"Root Node":"Parent info parentId: ".concat(x.parentID,"\n ").concat(f[x.parentID].dataName,"\n ").concat(f[x.parentID].subName);if(!x.children&&!m.has(x.parentID)&&3===c){var C=(v-g)/2,M=p;m.add(x.parentID),this.k(x.id,f[x.parentID].x,f[x.parentID].y,f[x.id].x,f[x.id].y,!0,v,p,g);for(var k=null===(i=f[x.parentID])||void 0===i?void 0:i.children,L=(null===(e=f[x.parentID])||void 0===e?void 0:e.x)-C/2-10,V=(null===(r=f[x.parentID])||void 0===r?void 0:r.x)+C/2+10,S=null===(o=f[x.parentID])||void 0===o?void 0:o.x,N=null===(u=k[0])||void 0===u?void 0:u.y,A=0;A<k.length;++A){var D=k[A];void 0!==this.composition?0===this.composition?(this.D(D.data.name,D.data.subname,D.data.bodytext,D.data.metricName,A%2==0?1===k.length?S:L:V,N,D.data.fill,1===k.length?v:C,p,D.id,w),A%2==1&&(N+=M+g)):(this.D(D.data.name,D.data.subname,D.data.bodytext,D.data.metricName,S,N,D.data.fill,v,p,D.id,w),N+=M+g):k.length>2?(this.D(D.data.name,D.data.subname,D.data.bodytext,D.data.metricName,A%2==0?L:V,N,D.data.fill,1===k.length?v:C,p,D.id,w),A%2==1&&(N+=M+g)):(this.D(D.data.name,D.data.subname,D.data.bodytext,D.data.metricName,S,N,D.data.fill,v,p,D.id,w),N+=M+g)}}if((x.children||c<=2)&&(this.D(x.dataName,x.subName,x.bodyText,x.metricName,x.x,x.y,x.fill,v,p,x.id,w),0===x.id&&x.children)){k=null===(a=f[x.id])||void 0===a?void 0:a.children;var T=(0,Do.Z)(k,(function(t){return t.x})),O=(0,Ur.Z)(k,(function(t){return t.x}));this.k(x.id,x.x,x.y,T,x.children[0].y,!1,v,p,g,O)}}},i}(function(){function t(t,n,i,e){void 0===i&&(i=[]),void 0===e&&(e=[]),this._nodeElements=[],this._linkElements=[],this.treeData=t,this.styleClassNames=n,this._nodeElements=i,this._linkElements=e}return t.prototype.T=function(t,n,i,e){var r,o=t.split(/\s+/).reverse(),u="",a=(0,dr.Ys)(".svgTree").append("text").attr("class","tempText").append("tspan").text(null);e&&a.attr("class",e);for(var s=[];u=o.pop();)if(s.push(u),a.text(s.join(" ")+" "),null!==a.node()&&a.node().getComputedTextLength()>n-i){s.pop(),s.push("...");break}return r=s.join(" ")+" ",a.text(null),(0,dr.td)(".tempText").remove(),r},t.prototype.D=function(t,n,e,r,o,u,a,s,l,c,f){var h="nodeId: ".concat(c," \nnodeMainText: ").concat(t,"\nsubText ").concat(n," ").concat(f),d=o-s/2;!r&&0===c&&e||this._nodeElements.push(i.createElement("rect",{width:s,height:l,x:d,y:u,tabIndex:0,role:"text","data-is-focusable":!0,"aria-label":h,className:this.styleClassNames.rectNode,stroke:a,key:"".concat(c).concat(this.styleClassNames.rectNode)})),n&&(n=this.T(n,s,s/4,this.styleClassNames.rectSubText)),e&&(e=this.T(e,s,s/4,this.styleClassNames.rectBodyText)),r&&(r=this.T(r,s,s/4,this.styleClassNames.rectMetricText)),t=this.T(t,s,s/4,this.styleClassNames.rectText);var v=r?i.createElement("tspan",{className:this.styleClassNames.rectMetricText,dy:"1.4em",x:d+s/2},r):e?i.createElement(i.Fragment,null,i.createElement("tspan",{className:this.styleClassNames.rectSubText,dy:"1.4em",x:d+s/2},n),i.createElement("tspan",{className:this.styleClassNames.rectBodyText,dy:"1.4em",x:d+s/2},e)):i.createElement("tspan",{className:this.styleClassNames.rectSubText,dy:"1.4em",x:d+s/2},n);n||r||e?this._nodeElements.push(i.createElement("text",{textAnchor:"middle",className:r?this.styleClassNames.rectSubText:this.styleClassNames.rectText,dy:r?u+l/2.5:u+l/2,x:d+s/2,key:"".concat(c).concat(this.styleClassNames.rectText)},t,v)):this._nodeElements.push(i.createElement("text",{textAnchor:"middle",className:this.styleClassNames.rectMetricText,dy:u+l/1.6,x:d+s/2,key:"".concat(c).concat(this.styleClassNames.rectText)},t))},t.prototype.O=function(t,n,i,e,r,o,u,a,s){var l="M".concat(i-o/2,",").concat(e-a," H").concat(s+o/2," M").concat(t,",").concat(e-a,"\n V").concat(n+u+a/2),c="M".concat(t,",").concat(n+u+a/2," V").concat(n+5*a,"\n H").concat(t-o/2," H").concat(t+o/2);return r?c:l},t.prototype.k=function(t,n,e,r,o,u,a,s,l,c){void 0===c&&(c=0),this._linkElements.push(i.createElement("path",{className:this.styleClassNames.link,d:this.O(n,e,r,o,u,a,s,l,c),key:"".concat(t).concat(this.styleClassNames.link)}))},t}()),Hu=function(t){function e(n){var i,e,r,o,u,a=this;return(a=t.call(this,n)||this)._nodeElements=[],a._linkElements=[],a._margin={top:(null===(i=a.props.margins)||void 0===i?void 0:i.top)||30,bottom:(null===(e=a.props.margins)||void 0===e?void 0:e.bottom)||30,left:(null===(r=a.props.margins)||void 0===r?void 0:r.left)||50,right:(null===(o=a.props.margins)||void 0===o?void 0:o.right)||20},a._width=a.props.width||1500,a._height=a.props.height||700,a._treeData=a.props.treeData,a._composition=null===(u=a.props)||void 0===u?void 0:u.composition,a._treeTraversal=a.props.treeTraversal,a.state={_width:a._width,_height:a._height},a}return(0,n.ZT)(e,t),e.prototype.componentDidMount=function(){var t=this.props,n=t.theme,i=t.className,e=t.styles;this._classNames=Fu(e,{theme:n,className:i}),this.P(),this.setState({_width:this.props.width||1500,_height:this.props.height||700})},e.prototype.componentDidUpdate=function(t){if(t.layoutWidth!==this.props.layoutWidth){var n=(0,dr.td)("text"),i=(0,dr.td)("rect"),e=(0,dr.td)("path");0===this._nodeElements.length&&0===this._linkElements.length&&(n.remove(),i.remove(),e.remove()),this.P()}},e.prototype.P=function(){var t=[],n=[],i=new Bu(this._treeData,this._composition,this._classNames,t,n,this._treeTraversal),e=this.state._width-this._margin.left-this._margin.right;i.C(this.props.layoutWidth,e),this._nodeElements=t,this._linkElements=n},e.prototype.render=function(){var t;return i.createElement(fi,null,i.createElement("div",{className:null===(t=this._classNames)||void 0===t?void 0:t.root},i.createElement("svg",{className:"svgTree",width:this.state._width-this._margin.left-this._margin.right,height:this.state._height-this._margin.top-this._margin.bottom},i.createElement("g",{className:"svgNode"},this._nodeElements.map((function(t){return t}))),i.createElement("g",{className:"svgLink"},this._linkElements.map((function(t){return t}))))))},e}(i.Component),_u=(0,t.z)(Hu,(function(t){return{root:[t.theme.spacing,"ms-TreeChart",t.className,{overflow:"scroll"}],link:{fill:"none",stroke:"#A1A1A1",strokeWidth:"2px"},rectNode:{strokeWidth:"2px",fill:t.theme.semanticColors.bodyBackground,padding:"10px",rx:"2px"},rectText:(0,n.pi)({fill:t.theme.palette.neutralDark},t.theme.fonts.large),rectSubText:(0,n.pi)({fill:t.theme.palette.neutralPrimary},t.theme.fonts.medium),rectBodyText:(0,n.pi)({fill:t.theme.palette.neutralPrimaryAlt},t.theme.fonts.xSmall),rectMetricText:(0,n.pi)({fill:t.theme.palette.neutralDark},t.theme.fonts.xLarge)}}));!function(t){t[t.long=1]="long",t[t.compact=0]="compact"}(Pu||(Pu={})),function(t){t[t.preOrder=1]="preOrder",t[t.levelOrder=0]="levelOrder"}(Eu||(Eu={}));var Iu,Wu,Ru=(0,o.y)(),zu=function(t){function e(n){var i=t.call(this,n)||this;return i.margin={top:2,right:0,bottom:0,left:0},i._isRTL=(0,u.zg)(),i.state={_points:null,_width:i.props.width||80,_height:i.props.height||20,_valueTextWidth:i.props.valueTextWidth||80},i._emptyChartId=v("_SparklineChart_empty"),i}return(0,n.ZT)(e,t),e.prototype.componentDidMount=function(){var t=this;if(!this._isChartEmpty()){var n=Qr().x((function(n){return t.x(n.x)})).y0(this.state._height).y1((function(n){return t.y(n.y)})).curve(gr);this.area=n;var i=br().x((function(n){return t.x(n.x)})).y((function(n){return t.y(n.y)})).curve(gr);this.line=i;var e=this.props.data.lineChartData[0].data,r=function(t,n){let i,e;if(void 0===n)for(const n of t)null!=n&&(void 0===i?n>=n&&(i=e=n):(i>n&&(i=n),e<n&&(e=n)));else{let r=-1;for(let o of t)null!=(o=n(o,++r))&&(void 0===i?o>=o&&(i=e=o):(i>o&&(i=o),e<o&&(e=o)))}return[i,e]}(e,(function(t){return t.x})),o=r[0],u=r[1];this.x=(0,To.Z)().domain([o,u]).range([this.margin.left,this.state._width-this.margin.right]),this.y=(0,To.Z)().domain([0,(0,Ur.Z)(e,(function(t){return t.y}))]).range([this.state._height-this.margin.bottom,this.margin.top]),this.setState({_points:e})}},e.prototype.drawSparkline=function(){return i.createElement(i.Fragment,null,i.createElement("path",{className:"line",d:this.line(this.state._points),fill:"transparent",opacity:1,strokeWidth:2,stroke:this.props.data.lineChartData[0].color}),i.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)}))},e.prototype.render=function(){var t=Ru(this.props.styles,{theme:this.props.theme});return this._isChartEmpty()?i.createElement("div",{id:this._emptyChartId,role:"alert",style:{opacity:"0"},"aria-label":"Graph has no data to display"}):i.createElement(fi,{direction:Rn.horizontal,isCircularNavigation:!0,className:t.inlineBlock},i.createElement("div",{className:t.inlineBlock},this.state._width>=50&&this.state._height>=16?i.createElement("svg",{width:this.state._width,height:this.state._height,"data-is-focusable":!0},this.state._points?this.drawSparkline():null):i.createElement(i.Fragment,null),this.props.showLegend&&this.props.data.lineChartData[0].legend?i.createElement("svg",{width:this.state._valueTextWidth,height:this.state._height,"data-is-focusable":!0},i.createElement("text",{x:"0%",textAnchor:this._isRTL?"end":"start",dx:8,y:"100%",dy:-5,className:t.valueText},this.props.data.lineChartData[0].legend)):i.createElement(i.Fragment,null)))},e.prototype._isChartEmpty=function(){return!(this.props.data&&this.props.data.lineChartData&&this.props.data.lineChartData.length>0&&0===this.props.data.lineChartData.filter((function(t){return 0===t.data.length})).length)},e}(i.Component),ju=(0,t.z)(zu,(function(t){return{inlineBlock:{display:"inline"},valueText:(0,n.pi)((0,n.pi)({},t.theme.fonts.smallPlus),{fill:t.theme.semanticColors.messageText})}})),Xu=(0,o.y)(),Yu=function(t){function e(e){var r=t.call(this,e)||this;return r._isRtl=(0,u.zg)(),r._getMargins=function(t){r.margins=t},r._renderContentForOnlyBars=function(t){var n,e,o,u=r.props.useSingleColor,a=void 0!==u&&u,s=0;return r.props.data.forEach((function(n,i){n.y===t.y&&(s=i)})),o=a?r.props.colors?r._createColors()(1):sr(1,0,null===(n=r.props.theme)||void 0===n?void 0:n.isInverted):t.color?t.color:r.props.colors?r._createColors()(t.x):sr(s,0,null===(e=r.props.theme)||void 0===e?void 0:e.isInverted),i.createElement(i.Fragment,null,i.createElement(jn.ChartHoverCard,{XValue:t.xAxisCalloutData||t.x.toString(),Legend:t.legend,YValue:t.yAxisCalloutData||t.y,color:o,culture:r.props.culture}))},r._renderCallout=function(t){return t?r._renderContentForOnlyBars(t):null},r._getCustomizedCallout=function(){return r.props.onRenderCalloutPerDataPoint?r.props.onRenderCalloutPerDataPoint(r.state.dataPointCalloutProps,r._renderCallout):null},r._getGraphData=function(t,n,i,e,o,u){return r._bars=r._yAxisType===zn.OH.NumericAxis?r._createNumericBars(i,e,o,u):r._createStringBars(i,e,o,u)},r._refCallback=function(t,n){r._refArray.push({index:n,refElement:t})},r._getCalloutContentForBar=function(t){var n,i,e,o=[],u=r.props.useSingleColor,a=void 0!==u&&u,s=r.props.data,l=s.filter((function(n){return n.y===t.y})),c=0;return s.forEach((function(n,i){n.y===t.y&&(c=i)})),e=a?r.props.colors?r._createColors()(1):sr(1,0,null===(n=r.props.theme)||void 0===n?void 0:n.isInverted):l[0].color?l[0].color:r.props.colors?r._createColors()(l[0].x):sr(c,0,null===(i=r.props.theme)||void 0===i?void 0:i.isInverted),o.push({legend:l[0].legend,y:l[0].x,color:e,data:l[0].yAxisCalloutData,yAxisCalloutData:l[0].yAxisCalloutData}),{YValueHover:o,hoverXValue:t.yAxisCalloutData||t.y.toString()}},r._onBarLeave=function(){},r._handleChartMouseLeave=function(){r._calloutAnchorPoint=null,r.setState({isCalloutVisible:!1,activeXdataPoint:null,YValueHover:[],hoverXValue:""})},r._onBarFocus=function(t,n,i){if(!1===r.state.isLegendSelected||r.state.isLegendSelected&&r.state.selectedLegendTitle===t.legend){var e=r._getCalloutContentForBar(t),o=e.YValueHover,u=e.hoverXValue;r._refArray.forEach((function(e,a){n===a&&r.setState({refSelected:e.refElement,isCalloutVisible:!0,selectedLegendTitle:t.legend,dataForHoverCard:t.x,color:r.props.useSingleColor?i:t.color,xCalloutValue:t.yAxisCalloutData||t.y.toString(),yCalloutValue:t.xAxisCalloutData||t.x.toString(),dataPointCalloutProps:t,activeXdataPoint:t.x,YValueHover:o,hoverXValue:u,callOutAccessibilityData:t.callOutAccessibilityData})}))}},r._getScales=function(t,n,i){if(i){var e=(0,Ur.Z)(r._points,(function(t){return t.x})),o=(0,Ur.Z)(r._points,(function(t){return t.y}));return{xBarScale:(0,To.Z)().domain(r._isRtl?[e,0]:[0,e]).nice().range([r.margins.left,n-r.margins.right]),yBarScale:u=(0,To.Z)().domain([0,o]).range([t-r.margins.bottom,r.margins.top])}}e=(0,Ur.Z)(r._points,(function(t){return t.x}));var u=(0,Po.Z)().domain(r._yAxisLabels).range([t-r.margins.bottom-r._barHeight/2,r.margins.top+r._barHeight/2]).padding(r.props.yAxisPadding||0);return{xBarScale:(0,To.Z)().domain(r._isRtl?[e,0]:[0,e]).nice().range([r.margins.left,n-r.margins.right]),yBarScale:u}},r._closeCallout=function(){r.setState({isCalloutVisible:!1})},r._getLegendData=function(t,e){var o=r.props.useSingleColor,u=[];return t.forEach((function(t,n){var i,e=o?r.props.colors?r._createColors()(1):sr(1,0,null===(i=r.props.theme)||void 0===i?void 0:i.isInverted):t.color,a={title:t.legend,color:e,action:function(){r._onLegendClick(t.legend)},hoverAction:function(){r._handleChartMouseLeave(),r._onLegendHover(t.legend)},onMouseOutAction:function(t){r._onLegendLeave(t)}};u.push(a)})),i.createElement(me,(0,n.pi)({legends:u,enabledWrapLines:r.props.enabledLegendsWrapLines,overflowProps:r.props.legendsOverflowProps,focusZonePropsInHoverCard:r.props.focusZonePropsForLegendsInHoverCard,overflowText:r.props.legendsOverflowText},r.props.legendProps))},r._getAxisData=function(t){if(t&&t.yAxisDomainValues.length){var n=t.yAxisDomainValues;r._xMax=Math.max(n[n.length-1],r.props.xMaxValue||0)}},r._getAriaLabel=function(t){var n,i=t.xAxisCalloutData||t.x,e=t.yAxisCalloutData||t.y;return(null===(n=t.callOutAccessibilityData)||void 0===n?void 0:n.ariaLabel)||"".concat(i,". ")+"".concat(e,".")},r.state={color:"",dataForHoverCard:0,isCalloutVisible:!1,isLegendSelected:!1,isLegendHovered:!1,refSelected:null,selectedLegendTitle:"",xCalloutValue:"",yCalloutValue:"",activeXdataPoint:null,YValueHover:[],hoverXValue:""},r._calloutId=v("callout"),r._tooltipId=v("HBCWATooltipID_"),r._refArray=[],r._xAxisType=r.props.data&&r.props.data.length>0?(0,zn.SY)(r.props.data[0].x,!0):zn.xl.NumericAxis,r._yAxisType=r.props.data&&r.props.data.length>0?(0,zn.SY)(r.props.data[0].y,!1):zn.OH.StringAxis,r}return(0,n.ZT)(e,t),e.prototype.render=function(){var t=this;this._adjustProps();var e=(0,n.ev)([],this._points,!0).reverse();this._yAxisLabels=e.map((function(t){return t.y})),this._xMax=Math.max((0,Ur.Z)(this._points,(function(t){return t.x})),this.props.xMaxValue||0);var r=this._getLegendData(this._points,this.props.theme.palette);this._classNames=Xu(this.props.styles,{theme:this.props.theme,legendColor:this.state.color});var o=(0,n.pi)((0,n.pi)({isCalloutVisible:this.state.isCalloutVisible,directionalHint:y.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,zn.ey)(this.state.callOutAccessibilityData)),u={tickValues:this.props.tickValues,tickFormat:this.props.tickFormat};return i.createElement(Nr,(0,n.pi)({},this.props,{points:this._points,chartType:zn.$X.HorizontalBarChartWithAxis,xAxisType:this._xAxisType,yAxisType:this._yAxisType,stringDatasetForYAxisDomain:this._yAxisLabels,calloutProps:o,tickParams:u,legendBars:r,barwidth:this._barHeight,focusZoneDirection:Rn.vertical,customizedCallout:this._getCustomizedCallout(),getmargins:this._getMargins,getGraphData:this._getGraphData,getAxisData:this._getAxisData,onChartMouseLeave:this._handleChartMouseLeave,children:function(n){return i.createElement(i.Fragment,null,i.createElement("g",null,t._bars))}}))},e.prototype._adjustProps=function(){this._points=this.props.data||[],this._barHeight=this.props.barHeight||32;var t=this.props.theme.palette;this._colors=this.props.colors||[t.blueLight,t.blue,t.blueMid,t.blueDark]},e.prototype._createColors=function(){var t=this,n=this._colors.length<=1?1:1/(this._colors.length-1),i=this.props.useSingleColor;if(void 0!==i&&i)return function(n){var i=t.props,e=i.theme,r=i.colors;return r&&r.length>0?r[0]:e.palette.blueLight};for(var e=[],r=0;r<this._colors.length;r++)e.push(n*r*this._xMax);return(0,To.Z)().domain(e).range(this._colors)},e.prototype._onBarHover=function(t,n,i){i.persist();var e=this._getCalloutContentForBar(t),r=e.YValueHover,o=e.hoverXValue;(!1===this.state.isLegendSelected||this.state.isLegendSelected&&this.state.selectedLegendTitle===t.legend)&&this._calloutAnchorPoint!==t&&(this._calloutAnchorPoint=t,this.setState({refSelected:i,isCalloutVisible:!0,dataForHoverCard:t.x,selectedLegendTitle:t.legend,color:this.props.useSingleColor?n:t.color,xCalloutValue:t.yAxisCalloutData||t.y.toString(),yCalloutValue:t.xAxisCalloutData||t.x.toString(),dataPointCalloutProps:t,activeXdataPoint:t.x,YValueHover:r,hoverXValue:o,callOutAccessibilityData:t.callOutAccessibilityData}))},e.prototype._createNumericBars=function(t,e,r,o){var u=this,a=this.props.useSingleColor,s=void 0!==a&&a,l=this._getScales(t,e,!0),c=l.xBarScale,f=l.yBarScale,h=(0,n.ev)([],this._points,!0);h.sort((function(t,n){var i="number"==typeof t.y?t.y:parseFloat(t.y);return("number"==typeof n.y?n.y:parseFloat(n.y))-i}));var d=h.map((function(t,n){var r,o,a,l=!0;return(u.state.isLegendHovered||u.state.isLegendSelected)&&(l=u.state.selectedLegendTitle===t.legend),u._classNames=Xu(u.props.styles,{theme:u.props.theme,legendColor:u.state.color,shouldHighlight:l}),Math.max(f(t.y),0)<1?i.createElement(i.Fragment,{key:t.x}," "):(a=s?u.props.colors?u._createColors()(1):sr(1,0,null===(r=u.props.theme)||void 0===r?void 0:r.isInverted):u.props.colors?u._createColors()(t.x):sr(n,0,null===(o=u.props.theme)||void 0===o?void 0:o.isInverted),i.createElement("rect",{key:t.y,x:u._isRtl?c(t.x):u.margins.left,className:u._classNames.opacityChangeOnHover,y:f(t.y)-u._barHeight/2,"data-is-focusable":!0,width:u._isRtl?e-u.margins.right-Math.max(c(t.x),0):Math.max(c(t.x),0)-u.margins.left,height:u._barHeight,ref:function(n){u._refCallback(n,t.legend)},onClick:t.onClick,onMouseOver:u._onBarHover.bind(u,t,a),"aria-label":u._getAriaLabel(t),role:"img","aria-labelledby":"toolTip".concat(u._calloutId),onMouseLeave:u._onBarLeave,onFocus:u._onBarFocus.bind(u,t,n,a),onBlur:u._onBarLeave,fill:t.color&&!s?t.color:a}))}));return d},e.prototype._tooltipOfYAxislabels=function(t){var n=this,i=t.tooltipCls,e=t.yAxis,r=t.id;if(null===e)return null;for(var o=(0,dr.Ys)("body").append("div").attr("id",r).attr("class",i).style("opacity",0),u=e.selectAll("#BaseSpan")._groups[0],a=u&&Object.keys(u).length,s=[],l=0;l<a;l++){var c=u[l].dataset&&Object.values(u[l].dataset)[0];s.push(c)}var f=e.selectAll(".tick")._groups[0],h=f&&Object.keys(f).length,d=function(t){var i=f[t];(0,dr.Ys)(i).on("mouseover",(function(i){n.state.tooltipElement||(o.style("opacity",.9),o.html(s[t]).style("left",dr.B.pageX+"px").style("top",dr.B.pageY-28+"px"))})).on("mouseout",(function(t){o.style("opacity",0)}))};for(l=0;l<h;l++)d(l)},e.prototype._createStringBars=function(t,n,e,r){var o=this,u=this._getScales(t,n,!1),a=u.xBarScale,s=u.yBarScale,l=this.props.useSingleColor,c=void 0!==l&&l,f=this._points.map((function(t,e){var r,u,l;return Math.max(s(t.y),0)<1?i.createElement(i.Fragment,{key:t.x}," "):(l=c?o.props.colors?o._createColors()(1):sr(1,0,null===(r=o.props.theme)||void 0===r?void 0:r.isInverted):o.props.colors?o._createColors()(t.x):sr(e,0,null===(u=o.props.theme)||void 0===u?void 0:u.isInverted),i.createElement("rect",{transform:"translate(0,".concat(.5*(s.bandwidth()-o._barHeight),")"),key:t.x,x:o._isRtl?a(t.x):o.margins.left,y:s(t.y),width:o._isRtl?n-o.margins.right-Math.max(a(t.x),0):Math.max(a(t.x),0)-o.margins.left,height:o._barHeight,"aria-labelledby":"toolTip".concat(o._calloutId),"aria-label":o._getAriaLabel(t),role:"img",ref:function(n){o._refCallback(n,t.legend)},onClick:t.onClick,onMouseOver:o._onBarHover.bind(o,t,l),onMouseLeave:o._onBarLeave,onBlur:o._onBarLeave,"data-is-focusable":!0,onFocus:o._onBarFocus.bind(o,t,e,l),fill:t.color&&!c?t.color:l}))}));if(!this.props.showYAxisLablesTooltip)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}if(this.props.showYAxisLablesTooltip){var h=(0,dr.Ys)(r).call(s);if(!this.state.tooltipElement)try{document.getElementById(this._tooltipId)&&document.getElementById(this._tooltipId).remove()}catch(t){}var d={tooltipCls:this._classNames.tooltip,id:this._tooltipId,yAxis:h};h&&this._tooltipOfYAxislabels(d)}return f},e.prototype._onLegendClick=function(t){this.state.isLegendSelected?this.state.selectedLegendTitle===t?this.setState({isLegendSelected:!1,selectedLegendTitle:t}):this.setState({selectedLegendTitle:t}):this.setState({isLegendSelected:!0,selectedLegendTitle:t})},e.prototype._onLegendHover=function(t){!1===this.state.isLegendSelected&&this.setState({isLegendHovered:!0,selectedLegendTitle:t})},e.prototype._onLegendLeave=function(t){(t||!1===this.state.isLegendSelected)&&this.setState({isLegendHovered:!1,selectedLegendTitle:"",isLegendSelected:!t&&this.state.isLegendSelected})},e}(i.Component),qu=(0,t.z)(Yu,(function(t){var i=t.shouldHighlight,e=t.theme;return{opacityChangeOnHover:{opacity:i?"":"0.1"},xAxisTicks:[],tooltip:(0,n.pi)((0,n.pi)({},e.fonts.medium),{display:"flex",flexDirection:"column",padding:"8px",position:"absolute",textAlign:"center",top:"0px",background:e.semanticColors.bodyBackground,borderRadius:"2px",pointerEvents:"none"})}}));!function(t){t.Percentage="percentage",t.Fraction="fraction"}(Iu||(Iu={})),function(t){t.SingleSegment="single-segment",t.MultipleSegments="multiple-segments"}(Wu||(Wu={}));var $u=[{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}],Uu=(0,o.y)(),Zu=function(t,n,i,e,r){return void 0===r&&(r=!1),r?0===n&&e===Wu.SingleSegment?"".concat(t.legend,", ").concat(t.size," out of ").concat(i," or ").concat((t.size/i*100).toFixed(),"%"):"".concat(t.legend,", ").concat(t.start," to ").concat(t.end):0===n&&e===Wu.SingleSegment?"".concat(t.size," (").concat((t.size/i*100).toFixed(),"%)"):"".concat(t.start," - ").concat(t.end)},Gu=function(t,n,i,e,r){return void 0===r&&(r=!1),r?0!==n?t.toString():e===Iu.Fraction?"".concat((t/i*100).toFixed(),"%"):"".concat(t,"/").concat(i):"function"==typeof e?e([t-n,i-n]):0!==n?t.toString():e===Iu.Fraction?"".concat(t,"/").concat(i):"".concat((t/i*100).toFixed(),"%")},Ku=function(t){function e(e){var r=t.call(this,e)||this;return r._getMargins=function(){var t=r.props,n=t.hideMinMax;return{left:16+(n?0:40),right:16+(n?0:40),top:16+(t.chartTitle?27:2),bottom:16+(t.sublabel?20:0)}},r._getStylesBasedOnBreakpoint=function(){for(var t=$u.length-1;t>=0;t-=1)if(r._outerRadius>=$u[t].minRadius)return{arcWidth:$u[t].arcWidth,chartValueSize:$u[t].fontSize};return{arcWidth:$u[0].arcWidth,chartValueSize:$u[0].fontSize}},r._processProps=function(){var t=r.props,n=t.minValue,i=void 0===n?0:n,e=t.maxValue,o=t.theme,u=i,a=r.props.segments.map((function(t,n){var i=Math.max(t.size,0);return u+=i,{legend:t.legend,size:i,color:void 0!==t.color?lr(t.color,o.isInverted):sr(n,0,o.isInverted),accessibilityData:t.accessibilityData,start:u-i,end:u}}));void 0!==e&&u<e&&(a.push({legend:"Unknown",size:e-u,color:o.palette.neutralLight,start:u,end:e}),u=e);var s=Ue().padAngle(2/r._outerRadius).padRadius(r._outerRadius),l=r._isRTL?Array.from(a).reverse():a,c=-Math.PI/2,f=l.map((function(t,n){var e=c+t.size/(u-i)*Math.PI,o=s({innerRadius:r._innerRadius,outerRadius:r._outerRadius,startAngle:c,endAngle:e});return c=e,{d:o,segmentIndex:r._isRTL?a.length-1-n:n}}));return r._minValue=i,r._maxValue=u,r._segments=a,{arcs:f}},r._renderNeedle=function(){var t=function(t,n,i){var e=(t-n)/(i-n)*180;return e<0?e=0:e>180&&(e=180),e}(r.props.chartValue,r._minValue,r._maxValue),n=r._isRTL?180-t:t,e=r._outerRadius-r._innerRadius+4;return i.createElement("g",{transform:"rotate(".concat(n,", 0, 0)")},i.createElement("path",{d:"\n M 0,".concat(-4,"\n L ").concat(-e,",").concat(-2,"\n A ").concat(2,",").concat(2,",0,0,0,").concat(-e,",").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(t){return r._handleFocus(t,"Needle")},onBlur:r._handleBlur,onMouseEnter:function(t){return r._handleMouseOver(t,"Needle")},onMouseMove:function(t){return r._handleMouseOver(t,"Needle")}}))},r._renderLegends=function(){if(r.props.hideLegend)return null;var t=r._segments.map((function(t){return{title:t.legend,color:t.color,action:function(){r.state.selectedLegend===t.legend?r.setState({selectedLegend:""}):r.setState({selectedLegend:t.legend})},hoverAction:function(){r.setState({hoveredLegend:t.legend})},onMouseOutAction:function(){r.setState({hoveredLegend:""})}}}));return i.createElement("div",{className:r._classNames.legendsContainer},i.createElement(me,(0,n.pi)({legends:t,centerLegends:!0},r.props.legendProps)))},r._legendHighlighted=function(t){return r.state.selectedLegend===t||""===r.state.selectedLegend&&r.state.hoveredLegend===t},r._noLegendHighlighted=function(){return""===r.state.selectedLegend&&""===r.state.hoveredLegend},r._handleFocus=function(t,n){r._showCallout(t.target,n,!0)},r._handleBlur=function(){r._hideCallout(!0)},r._handleMouseOver=function(t,n){r._showCallout(t.target,n,!1)},r._handleMouseOut=function(){r._hideCallout(!1)},r._handleCalloutDismiss=function(){r._hideCallout(!1)},r._showCallout=function(t,i,e){if(r._calloutAnchor!==i){r._calloutAnchor=i;var o="Current value is "+Gu(r.props.chartValue,r._minValue,r._maxValue,r.props.chartValueFormat,!0),u=r._segments.map((function(t){return{legend:t.legend,y:Zu(t,r._minValue,r._maxValue,r.props.variant),color:t.color}}));r.setState((0,n.pi)({calloutTarget:t,isCalloutVisible:["Needle","Chart value"].includes(i)||""===r.state.selectedLegend||r.state.selectedLegend===i,hoverXValue:o,hoverYValues:u},e?{focusedElement:i}:{}))}},r._hideCallout=function(t){r._calloutAnchor="",r.setState((0,n.pi)({calloutTarget:null,isCalloutVisible:!1,hoverXValue:"",hoverYValues:[]},t?{focusedElement:""}:{}))},r._wrapContent=function(t,n,i){var e=(0,dr.Ys)("#".concat(n));if(e.text(t),!e.node())return!1;for(var r=!1,o=e.node().getComputedTextLength();o>i&&t.length>0;)t=t.slice(0,-1),e.text(t+"..."),r=!0,o=e.node().getComputedTextLength();return r},r._multiValueCallout=function(t){var e=r._yValueHoverSubCountsExists(t.YValueHover);return i.createElement("div",{className:r._classNames.calloutContentRoot},i.createElement("div",{className:r._classNames.calloutDateTimeContainer,style:e?{marginBottom:"11px"}:{}},i.createElement("div",(0,n.pi)({className:r._classNames.calloutContentX},(0,zn.ey)(t.xAxisCalloutAccessibilityData,"text",!1)),(0,zn.Ts)(t.hoverXValue,r.props.culture))),i.createElement("div",{className:r._classNames.calloutInfoContainer,style:e?{display:"flex"}:{}},t.YValueHover&&t.YValueHover.map((function(t,o,u){var a=o+1===u.length,s=t.shouldDrawBorderBottom,l=void 0!==s&&s;return i.createElement("div",(0,n.pi)({},(0,zn.ey)(t.callOutAccessibilityData,"text",!1),{key:"callout-content-".concat(o),style:e?(0,n.pi)({display:"inline-block"},l&&{borderBottom:"1px solid ".concat(r.props.theme.semanticColors.menuDivider),paddingBottom:"10px"}):(0,n.pi)({},l&&{borderBottom:"1px solid ".concat(r.props.theme.semanticColors.menuDivider),paddingBottom:"10px"})}),r._getCalloutContent(t,o,e,a))})),!!t.descriptionMessage&&i.createElement("div",{className:r._classNames.descriptionMessage},t.descriptionMessage)))},r._margins=r._getMargins(),r._legendsHeight=e.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,u.zg)(e.theme),r._calloutAnchor="",r}return(0,n.ZT)(e,t),e.prototype.componentDidMount=function(){this._rootElem&&this.setState({width:this._rootElem.clientWidth,height:this._rootElem.clientHeight})},e.prototype.render=function(){var t=this;this._margins=this._getMargins(),this._legendsHeight=this.props.hideLegend?0:24;var e=this.props.width||this.state.width,r=this.props.height||this.state.height;this._outerRadius=Math.min((e-(this._margins.left+this._margins.right))/2,r-(this._margins.top+this._margins.bottom+this._legendsHeight));var o=this._getStylesBasedOnBreakpoint(),u=o.arcWidth,a=o.chartValueSize;this._innerRadius=this._outerRadius-u;var s=this._processProps().arcs;return this._classNames=Uu(this.props.styles,{theme:this.props.theme,className:this.props.className,chartWidth:e,chartHeight:r-this._legendsHeight,chartValueSize:a}),i.createElement("div",{className:this._classNames.root,ref:function(n){return t._rootElem=n}},i.createElement(fi,{direction:Rn.horizontal},i.createElement("svg",{className:this._classNames.chart,"aria-label":"This is a gauge chart with ".concat(this._segments.length," section represented."),onMouseLeave:this._handleMouseOut},i.createElement("g",{transform:"translate(".concat(e/2,", ").concat(r-(this._margins.bottom+this._legendsHeight),")")},this.props.chartTitle&&i.createElement("text",{x:0,y:-(this._outerRadius+11),textAnchor:"middle",className:this._classNames.chartTitle},this.props.chartTitle),!this.props.hideMinMax&&i.createElement(i.Fragment,null,i.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,zn.cE)(this._minValue)),i.createElement("text",{x:(this._isRTL?-1:1)*(this._outerRadius+4),y:0,textAnchor:"start",className:this._classNames.limits,role:"img","aria-label":"Max value: ".concat(this._maxValue)},(0,zn.cE)(this._maxValue))),s.map((function(e,r){var o=t._segments[e.segmentIndex];return i.createElement("path",(0,n.pi)({key:r,d:e.d,fill:o.color,fillOpacity:t._legendHighlighted(o.legend)||t._noLegendHighlighted()?1:.1,strokeWidth:t.state.focusedElement===o.legend?2:0,className:t._classNames.segment},(0,zn.ey)((0,n.pi)({ariaLabel:Zu(o,t._minValue,t._maxValue,t.props.variant,!0)},o.accessibilityData),"img",!0),{onFocus:function(n){return t._handleFocus(n,o.legend)},onBlur:t._handleBlur,onMouseEnter:function(n){return t._handleMouseOver(n,o.legend)},onMouseMove:function(n){return t._handleMouseOver(n,o.legend)}}))})),this._renderNeedle(),i.createElement("g",{onMouseEnter:function(n){return t._handleMouseOver(n,"Chart value")},onMouseMove:function(n){return t._handleMouseOver(n,"Chart value")}},i.createElement(Mr,{content:Gu(this.props.chartValue,this._minValue,this._maxValue,this.props.chartValueFormat),textProps:{x:0,y:0,textAnchor:"middle",className:this._classNames.chartValue,role:"img","aria-label":"Current value: "+Gu(this.props.chartValue,this._minValue,this._maxValue,this.props.chartValueFormat)},maxWidth:2*this._innerRadius-24,wrapContent:this._wrapContent})),this.props.sublabel&&i.createElement(Mr,{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&&i.createElement(Wn,(0,n.pi)({target:this.state.calloutTarget,directionalHint:y.topAutoEdge,gapSpace:15,isBeakVisible:!1,onDismiss:this._handleCalloutDismiss},this.props.calloutProps),this._multiValueCallout({hoverXValue:this.state.hoverXValue,YValueHover:this.state.hoverYValues})))},e.prototype._yValueHoverSubCountsExists=function(t){return!!t&&t.some((function(t){return t.yAxisCalloutData&&"string"!=typeof t.yAxisCalloutData}))},e.prototype._getCalloutContent=function(t,n,e,r){var o=r?{}:{marginRight:"16px"},u=void 0!==t.index&&-1!==t.index,a=Uu(this.props.styles,{theme:this.props.theme,lineColor:t.color,toDrawShape:u}),s=this.props.culture,l=(0,zn.Ts)(t.y,s);if(t.yAxisCalloutData&&"string"!=typeof t.yAxisCalloutData){var c=t.yAxisCalloutData;return i.createElement("div",{style:o},i.createElement("div",{className:"ms-fontWeight-semibold",style:{fontSize:"12pt"}},t.legend," (",l,")"),Object.keys(c).map((function(t){return i.createElement("div",{key:t,className:a.calloutBlockContainer},i.createElement("div",{className:a.calloutlegendText}," ",(0,zn.Ts)(t,s)),i.createElement("div",{className:a.calloutContentY},(0,zn.Ts)(c[t],s)))})))}return i.createElement("div",{style:e?o:{}},e&&i.createElement("div",{className:"ms-fontWeight-semibold",style:{fontSize:"12pt"}},t.legend," (",l,")"),i.createElement("div",{id:"".concat(n,"_").concat(t.y),className:a.calloutBlockContainer},u&&i.createElement(ve,{svgProps:{className:a.shapeStyles},pathProps:{fill:t.color},shape:zn.wo[t.index%Object.keys(zn.Ml).length]}),i.createElement("div",null,i.createElement("div",{className:a.calloutlegendText}," ",t.legend),i.createElement("div",{className:a.calloutContentY},(0,zn.Ts)(t.yAxisCalloutData?t.yAxisCalloutData:t.y||t.data,s)))))},e}(i.Component),Ju=(0,t.z)(Ku,(function(t){var i,e,r,o,u=t.theme,a=t.chartValueSize,s=t.chartWidth,l=t.chartHeight,c=t.className,f=t.lineColor,h=t.toDrawShape;return{root:[u.fonts.medium,"ms-GaugeChart",{width:"100%",height:"100%"},c],chart:{display:"block",width:s,height:l},limits:{fontSize:jt.TS.small,fontWeight:jt.lq.semibold,fill:u.palette.neutralPrimary},chartValue:{fontSize:a,fontWeight:jt.lq.semibold,fill:u.palette.neutralPrimary},sublabel:{fontSize:jt.TS.small,fontWeight:jt.lq.semibold,fill:u.palette.neutralPrimary},needle:{fill:u.palette.black,stroke:u.semanticColors.bodyBackground},chartTitle:{fontSize:jt.TS.small,fill:u.palette.neutralPrimary},segment:{outline:"none",stroke:u.semanticColors.focusBorder},legendsContainer:{width:s},calloutContentRoot:[{display:"grid",overflow:"hidden",padding:"11px 16px 10px 16px",backgroundColor:u.semanticColors.bodyBackground,backgroundBlendMode:"normal, luminosity"}],calloutDateTimeContainer:{display:"flex",flexDirection:"row",justifyContent:"space-between"},calloutContentX:[(0,n.pi)((0,n.pi)({},u.fonts.small),{lineHeight:"16px",opacity:"0.8",color:u.semanticColors.bodySubtext})],calloutBlockContainer:[u.fonts.mediumPlus,{marginTop:"13px",color:u.semanticColors.bodyText},!h&&{selectors:(i={},i[jt.qJ]={forcedColorAdjust:"none"},i),borderLeft:"4px solid ".concat(f),paddingLeft:"8px"},h&&{display:"flex"}],shapeStyles:{marginRight:"8px"},calloutlegendText:(0,n.pi)((0,n.pi)({},u.fonts.small),{lineHeight:"16px",selectors:(e={},e[jt.$v]={color:"rgb(255, 255, 255)"},e),color:u.semanticColors.bodySubtext}),calloutContentY:[(0,n.pi)((0,n.pi)({},u.fonts.mediumPlus),{fontWeight:"bold",lineHeight:"22px",selectors:(r={},r[jt.$v]={color:"rgb(255, 255, 255)"},r)})],descriptionMessage:[u.fonts.small,{selectors:(o={},o[jt.$v]={color:"rgb(255, 255, 255)"},o),color:u.semanticColors.bodyText,marginTop:"10px",paddingTop:"10px",borderTop:"1px solid ".concat(u.semanticColors.menuDivider)}]}}));(0,e(6077).x)("@fluentui/react-charting","5.19.23")}(),t=r}();