es-components 21.6.84 → 21.6.85-pre-prod.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/bundle/main.min.js +1 -1
- package/cjs/index.js +8 -6
- package/lib/index.js +8 -6
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## <small>21.6.85-pre-prod.0 (2022-05-12)</small>
|
|
7
|
+
|
|
8
|
+
* Merge pull request #620 from WTW-IM/drawers-effect-fix ([2440656](https://github.com/wtw-im/es-components/commit/2440656)), closes [#620](https://github.com/wtw-im/es-components/issues/620)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## <small>21.6.84 (2022-05-12)</small>
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package es-components
|
package/bundle/main.min.js
CHANGED
|
@@ -10,7 +10,7 @@ Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.pr
|
|
|
10
10
|
Licensed under the MIT License (MIT), see
|
|
11
11
|
http://jedwatson.github.io/classnames
|
|
12
12
|
*/
|
|
13
|
-
!function(){var t={}.hasOwnProperty;function r(){for(var e=[],n=0;n<arguments.length;n++){var o=arguments[n];if(!o)continue;var a=typeof o;if("string"===a||"number"===a)e.push(o);else if(Array.isArray(o)){if(o.length){var i=r.apply(null,o);i&&e.push(i)}}else if("object"===a)if(o.toString===Object.prototype.toString)for(var c in o)t.call(o,c)&&o[c]&&e.push(c);else e.push(o.toString())}return e.join(" ")}e.exports?(r.default=r,e.exports=r):window.classNames=r}()})),wh=f((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),a=l(i.default),c=l(yh),u=l(bh);function l(e){return e&&e.__esModule?e:{default:e}}function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var d={animating:"rah-animating",animatingUp:"rah-animating--up",animatingDown:"rah-animating--down",animatingToHeightZero:"rah-animating--to-height-zero",animatingToHeightAuto:"rah-animating--to-height-auto",animatingToHeightSpecific:"rah-animating--to-height-specific",static:"rah-static",staticHeightZero:"rah-static--height-zero",staticHeightAuto:"rah-static--height-auto",staticHeightSpecific:"rah-static--height-specific"},f=["animateOpacity","animationStateClasses","applyInlineTransitions","children","contentClassName","delay","duration","easing","height","onAnimationEnd","onAnimationStart"];function p(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];if(!r.length)return e;for(var o={},a=Object.keys(e),i=0;i<a.length;i++){var c=a[i];-1===r.indexOf(c)&&(o[c]=e[c])}return o}function h(e){e.forEach((function(e){return cancelAnimationFrame(e)}))}function m(e){return!isNaN(parseFloat(e))&&isFinite(e)}function v(e){return"string"==typeof e&&e.search("%")===e.length-1&&m(e.substr(0,e.length-1))}function g(e,t){e&&"function"==typeof e&&e(t)}var y=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));r.animationFrameIDs=[];var o="auto",a="visible";m(e.height)?(o=e.height<0||"0"===e.height?0:e.height,a="hidden"):v(e.height)&&(o="0%"===e.height?0:e.height,a="hidden"),r.animationStateClasses=n({},d,e.animationStateClasses);var i=r.getStaticStateClasses(o);return"undefined"!=typeof window&&window.matchMedia&&(r.prefersReducedMotion=window.matchMedia("(prefers-reduced-motion)").matches),r.state={animationStateClasses:i,height:o,overflow:a,shouldUseTransitions:!1},r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"componentDidMount",value:function(){var e=this.state.height;this.contentElement&&this.contentElement.style&&this.hideContent(e)}},{key:"componentDidUpdate",value:function(e,t){var r,n,o=this,a=this.props,i=a.height,c=a.onAnimationEnd,l=a.onAnimationStart,d=this.getTimings(),f=d.duration,p=d.delay;if(this.contentElement&&i!==e.height){var y;this.showContent(t.height),this.contentElement.style.overflow="hidden";var b=this.contentElement.offsetHeight;this.contentElement.style.overflow="";var w=f+p,x=null,k={height:null,overflow:"hidden"},_="auto"===t.height;m(i)?(x=i<0||"0"===i?0:i,k.height=x):v(i)?(x="0%"===i?0:i,k.height=x):(x=b,k.height="auto",k.overflow=null),_&&(k.height=x,x=b);var S=(0,u.default)((s(y={},this.animationStateClasses.animating,!0),s(y,this.animationStateClasses.animatingUp,"auto"===e.height||i<e.height),s(y,this.animationStateClasses.animatingDown,"auto"===i||i>e.height),s(y,this.animationStateClasses.animatingToHeightZero,0===k.height),s(y,this.animationStateClasses.animatingToHeightAuto,"auto"===k.height),s(y,this.animationStateClasses.animatingToHeightSpecific,k.height>0),y)),C=this.getStaticStateClasses(k.height);this.setState({animationStateClasses:S,height:x,overflow:"hidden",shouldUseTransitions:!_}),clearTimeout(this.timeoutID),clearTimeout(this.animationClassesTimeoutID),_?(k.shouldUseTransitions=!0,h(this.animationFrameIDs),this.animationFrameIDs=(r=function(){o.setState(k),g(l,{newHeight:k.height})},(n=[])[0]=requestAnimationFrame((function(){n[1]=requestAnimationFrame((function(){r()}))})),n),this.animationClassesTimeoutID=setTimeout((function(){o.setState({animationStateClasses:C,shouldUseTransitions:!1}),o.hideContent(k.height),g(c,{newHeight:k.height})}),w)):(g(l,{newHeight:x}),this.timeoutID=setTimeout((function(){k.animationStateClasses=C,k.shouldUseTransitions=!1,o.setState(k),"auto"!==i&&o.hideContent(x),g(c,{newHeight:x})}),w))}}},{key:"componentWillUnmount",value:function(){h(this.animationFrameIDs),clearTimeout(this.timeoutID),clearTimeout(this.animationClassesTimeoutID),this.timeoutID=null}},{key:"getTimings",value:function(){if(this.prefersReducedMotion)return{delay:0,duration:0};var e=this.props;return{delay:e.delay,duration:e.duration}}},{key:"showContent",value:function(e){0===e&&(this.contentElement.style.display="")}},{key:"hideContent",value:function(e){0===e&&(this.contentElement.style.display="none")}},{key:"getStaticStateClasses",value:function(e){var t;return(0,u.default)((s(t={},this.animationStateClasses.static,!0),s(t,this.animationStateClasses.staticHeightZero,0===e),s(t,this.animationStateClasses.staticHeightSpecific,e>0),s(t,this.animationStateClasses.staticHeightAuto,"auto"===e),t))}},{key:"render",value:function(){var e,t=this,r=this.props,o=r.animateOpacity,i=r.applyInlineTransitions,c=r.children,l=r.className,d=r.contentClassName,h=r.easing,m=r.id,v=r.style,g=this.state,y=g.height,b=g.overflow,w=g.animationStateClasses,x=g.shouldUseTransitions,k=this.getTimings(),_=k.duration,S=k.delay,C=n({},v,{height:y,overflow:b||v.overflow});x&&i&&(C.transition="height "+_+"ms "+h+" "+S+"ms",v.transition&&(C.transition=v.transition+", "+C.transition),C.WebkitTransition=C.transition);var E={};o&&(E.transition="opacity "+_+"ms "+h+" "+S+"ms",E.WebkitTransition=E.transition,0===y&&(E.opacity=0));var O=(0,u.default)((s(e={},w,!0),s(e,l,l),e)),T="undefined"!=typeof this.props["aria-hidden"]?this.props["aria-hidden"]:0===y;return a.default.createElement("div",n({},p.apply(void 0,[this.props].concat(f)),{"aria-hidden":T,className:O,id:m,style:C}),a.default.createElement("div",{className:d,style:E,ref:function(e){return t.contentElement=e}},c))}}]),t}(a.default.Component);y.propTypes={"aria-hidden":c.default.bool,animateOpacity:c.default.bool,animationStateClasses:c.default.object,applyInlineTransitions:c.default.bool,children:c.default.any.isRequired,className:c.default.string,contentClassName:c.default.string,delay:c.default.number,duration:c.default.number,easing:c.default.string,height:function(e,t,n){var o=e[t];if("number"==typeof o&&o>=0||v(o)||"auto"===o)return null;return new TypeError('value "'+o+'" of type "'+("undefined"==typeof o?"undefined":r(o))+'" is invalid type for '+t+" in "+n+'. It needs to be a positive number, string "auto" or percentage string (e.g. "15%").')},id:c.default.string,onAnimationEnd:c.default.func,onAnimationStart:c.default.func,style:c.default.object},y.defaultProps={animateOpacity:!1,animationStateClasses:d,applyInlineTransitions:!0,duration:250,delay:0,easing:"ease",style:{}},t.default=y})),xh=d(wh);function kh(){for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",t="",r=0;r<6;r++)t+=e.charAt(Math.floor(Math.random()*e.length));return t}function _h(e){return t.useRef(e||kh()).current}var Sh=["id","panelKey","open","onChange"];function Ch(e,t){var r=ln(e);if(xa){var n=xa(e);t&&(n=Pa(n).call(n,(function(t){return Aa(e,t).enumerable}))),r.push.apply(r,n)}return r}function Eh(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ch(Object(r),!0).forEach((function(t){Ha(e,t,r[t])})):Fa?Object.defineProperties(e,Fa(r)):Ch(Object(r)).forEach((function(t){Object.defineProperty(e,t,Aa(r,t))}))}return e}var Oh=function(){},Th=t.createContext({open:!1,itemId:void 0,toggleOpen:function(){}}),Dh=function(){return t.useContext(Th)},Ph=function(e){var r=e.id,n=e.panelKey,o=e.open,a=e.onChange,c=li(e,Sh),u=t.useContext(Vp),l=u.activeKeys,s=u.toggleActiveKey,d=u.setActiveKey,f=u.unsetActiveKey,p=_h(r),h=_h(n),m=t.useCallback((function(){return s(h)}),[h,s]),v=t.useRef(a);v.current=a;var g=t.useRef(!1),y=t.useState(Lp(l).call(l,h)),b=yu(y,2),w=b[0],x=b[1],k=t.useState({open:w,itemKey:h,toggleOpen:m}),_=yu(k,2),S=_[0],C=_[1];return t.useEffect((function(){var e=Lp(l).call(l,h);x(e)}),[l]),t.useEffect((function(){if("undefined"==typeof o)return;(o?d:f)(h)}),[o]),t.useEffect((function(){if(!g.current)return;(v.current||Oh)(w)}),[w]),t.useEffect((function(){C({open:w,itemId:p,toggleOpen:m})}),[w,p,m]),t.useEffect((function(){g.current=!0}),[]),i.default.createElement(Th.Provider,Qa({},c,{value:S}))};Ph.defaultProps={open:void 0,id:void 0,panelKey:void 0};var Mh=function(e){var t=Dh(),r=t.open,n=t.itemId,o=r?"auto":0;return i.default.createElement(xh,Qa({height:o,duration:300,id:"".concat(n,"-region"),role:"region"},e))},jh=function(e){var r=e.children;try{var n,o=i.default.Children.only(r),a=(null==o||null===(n=o.props)||void 0===n?void 0:n.onClick)||Oh,c=t.useContext(Th),u=c.open,l=c.toggleOpen,s=c.itemId,d=t.useCallback((function(e){a(e),l()}),[l,a]);return i.default.cloneElement(o,Eh(Eh({},o.props),{},{onClick:d,"aria-expanded":u,"aria-controls":"".concat(s,"-region")}))}catch(e){return console.error("Drawer.ItemOpener could not set onClick. Please ensure it has only one root child component."),r}},Nh=Zd.onFreeze,Ah=Object.freeze,Rh=Xe((function(){Ah(1)}));Yr({target:"Object",stat:!0,forced:Rh,sham:!Jd},{freeze:function(e){return Ah&&Ct(e)?Ah(Nh(e)):e}});var Ih=Et.Object.freeze,Fh=wn.f;Yr({target:"Object",stat:!0,forced:Object.defineProperties!==Fh,sham:!lt},{defineProperties:Fh});var Lh=f((function(e){var t=Et.Object,r=e.exports=function(e,r){return t.defineProperties(e,r)};t.defineProperties.sham&&(r.sham=!0)})),zh=Lh,Uh=d(f((function(e){e.exports=function(e,t){return t||(t=Zc(e).call(e,0)),Ih(zh(e,{raw:{value:Ih(t)}}))},e.exports.__esModule=!0,e.exports.default=e.exports}))),Bh=["size","level"],Hh=["level"];function Yh(e,t){var r=ln(e);if(xa){var n=xa(e);t&&(n=Pa(n).call(n,(function(t){return Aa(e,t).enumerable}))),r.push.apply(r,n)}return r}function Wh(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Yh(Object(r),!0).forEach((function(t){Ha(e,t,r[t])})):Fa?Object.defineProperties(e,Fa(r)):Yh(Object(r)).forEach((function(t){Object.defineProperty(e,t,Aa(r,t))}))}return e}var qh=n.css(["background-color:",";color:white;padding:20px 15px;"],(function(e){return e.theme.colors.primary})),Vh=function(e){return function(t){var r=t.size,n=t.level,o=void 0===n?1:n,a=li(t,Bh);return e(Wh(Wh({},a),{},{size:r,level:o,adjustedSize:r||o}))}},Kh=l.default.h1([""]),$h=l.default((function(e){var t=e.level,r=void 0===t?1:t,n=li(e,Hh);return i.default.createElement(Kh,Qa({as:"h".concat(r)},n))}))(["border-bottom:",";color:inherit;font-family:'Source Sans Pro','Segoe UI',Segoe,Calibri,Tahoma,sans-serif;font-size:",";font-weight:300;line-height:1.1;margin-bottom:0.45em;margin-top:0;padding-bottom:",";&&{","}small{font-size:",";line-height:1;}@media (min-width:","){font-size:",";}"],(function(e){return e.underlineColor&&"2px solid ".concat(e.underlineColor,";")}),Vh((function(e){var t=e.theme,r=e.adjustedSize;return t.font.headingMobile[r]})),(function(e){return e.underlineColor&&"0.22em"}),(function(e){return e.isKnockoutStyle&&qh}),Vh((function(e){return e.adjustedSize>3?"75%":"65%"})),(function(e){return e.theme.screenSize.tablet}),Vh((function(e){var t=e.adjustedSize;return e.theme.font.headingDesktop[t]})));$h.propTypes={children:yh.node,level:yh.oneOf([1,2,3,4,5,6]).isRequired,size:yh.oneOf([1,2,3,4,5,6]),isKnockoutStyle:yh.bool,underlineColor:yh.string},$h.defaultProps={children:void 0,size:void 0,isKnockoutStyle:!1,underlineColor:null};var Gh,Qh,Xh,Jh=$h,Zh=l.default($h).attrs({isKnockoutStyle:!0,level:1})([""]),em=["openedIconName","closedIconName"],tm=["children","noPadding","title","titleAside","headingLevel","panelKey","open","openedIconName","closedIconName"],rm=l.default.div(["border-bottom:1px solid ",";"],(function(e){return e.theme.colors.gray3})),nm=l.default.button(["background:none;border:0;color:",";cursor:pointer;display:flex;font-size:18px;justify-content:space-between;padding:10px 15px;width:100%;@media (hover:hover),(-ms-high-contrast:none){&:hover{background-color:",";color:",";}}"],(function(e){return e.theme.colors.primary}),(function(e){return e.theme.colors.gray2}),(function(e){return e.theme.brandColors.brandPrimary1})),om=l.default((function(e){var t=e.openedIconName,r=e.closedIconName,n=li(e,em),o=Dh().open;return i.default.createElement(Vf,Qa({name:o?t:r},n))}))(["margin-right:0.4em;position:relative;top:-2px;"]),am=(Qh=n.css(["background-color:",";color:",";> div{border-bottom:4px solid ",";padding:",";}"],(function(e){return e.theme.colors.white}),(function(e){return e.theme.colors.gray9}),(function(e){return e.theme.colors.gray3}),(function(e){return e.noPadding?"0":"10px 10px 10px 40px"})),(Xh=l.default(Mh)).withConfig=Xh.withConfig||function(){return Xh},Xh.withConfig({shouldForwardProp:function(e){return!["noPadding","panelKey"].some((function(t){return e===t}))}})(Gh||(Gh=Uh(["\n ","\n "])),Qh)),im=i.default.forwardRef((function(e,r){var n=e.children,o=e.noPadding,a=e.title,c=e.titleAside,u=e.headingLevel,l=e.panelKey,s=e.open,d=e.openedIconName,f=e.closedIconName,p=li(e,tm),h=t.useRef();t.useImperativeHandle(r,(function(){return{focusHeaderButton:function(){return h.current.focus()}}}));var m=_h(p.id),v="".concat(m,"-heading"),g={id:m,panelKey:l,open:s};return i.default.createElement(Ph,g,i.default.createElement(rm,p,i.default.createElement("div",{id:v,role:"heading","aria-level":u},i.default.createElement(jh,null,i.default.createElement(nm,{ref:h},i.default.createElement("span",null,i.default.createElement(om,{closedIconName:f,openedIconName:d}),a),c&&i.default.createElement("aside",null,c)))),i.default.createElement(am,{"aria-labelledby":v,noPadding:o},n)))}));im.defaultProps={noPadding:!1,titleAside:void 0,headingLevel:2,panelKey:void 0,open:void 0,closedIconName:"add",openedIconName:"minus"};var cm=im,um=["activeKeys","children","closedIconName","isAccordion","onActiveKeysChanged","openedIconName","useDefaultStyles"];function lm(e,t){var r=ln(e);if(xa){var n=xa(e);t&&(n=Pa(n).call(n,(function(t){return Aa(e,t).enumerable}))),r.push.apply(r,n)}return r}function sm(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?lm(Object(r),!0).forEach((function(t){Ha(e,t,r[t])})):Fa?Object.defineProperties(e,Fa(r)):lm(Object(r)).forEach((function(t){Object.defineProperty(e,t,Aa(r,t))}))}return e}var dm=l.default.div(["background-color:",";border-top:1px solid ",";box-shadow:0 1px 1px ",";margin-bottom:25px;"],(function(e){return e.theme.colors.white}),(function(e){return e.theme.colors.gray3}),(function(e){return e.theme.colors.boxShadowLight})),fm=l.default.div([""]),pm=function(e,t){return(null==e?void 0:e.length)===(null==t?void 0:t.length)&&(null==e?void 0:e.every((function(e){return null==t?void 0:Lp(t).call(t,e)})))},hm=function(e,t){var r;if(null!=t&&Lp(t).call(t,e))return t;return Cp(new zp(id(r=[e]).call(r,Cp(t))))},mm=function(e,t){if(null==t||!Lp(t).call(t,e))return t;var r=null==t?void 0:Pa(t).call(t,(function(t){return t!==e}));return r};function vm(e){var r,n=e.activeKeys,o=e.children,a=e.closedIconName,c=e.isAccordion,u=e.onActiveKeysChanged,l=e.openedIconName,s=e.useDefaultStyles,d=li(e,um),f=t.useRef(u);f.current=u;var p=t.useState(n||[]),h=yu(p,2),m=h[0],v=h[1],g=t.useCallback((function(e){return v((function(t){var r=e(t),n=r.length&&c?[r[0]]:r;return pm(t,n)?t:n}))}),[c]),y=t.useRef(g);y.current=g;var b=t.useCallback((function(e){return y.current((function(t){return hm(e,t)}))}),[]),w=t.useCallback((function(e){return y.current((function(t){return mm(e,t)}))}),[]),x=t.useCallback((function(e){y.current((function(t){return(Lp(t).call(t,e)?mm:hm)(e,t)}))}),[]),k=t.useState({activeKeys:m,setActiveKey:b,unsetActiveKey:w,toggleActiveKey:x}),_=yu(k,2),S=_[0],C=_[1];t.useEffect((function(){if(!n)return;y.current((function(){return n}))}),[n]),t.useEffect((function(){if(pm(m,n))return;f.current(m)}),[m,n]),t.useEffect((function(){C({activeKeys:m,setActiveKey:b,unsetActiveKey:w,toggleActiveKey:x})}),[m,b,w,x]);var E=s?dm:fm;return i.default.createElement(Vp.Provider,{value:S},i.default.createElement(E,d,qp(r=i.default.Children).call(r,o,(function(e,t){if(!e)return e;if(!(e.type===cm||e.type.target===cm))return e;var r=e.key,n="".concat(t+1),o=r||n;return i.default.cloneElement(e,sm(sm({},e.props),{},{openedIconName:l,closedIconName:a,panelKey:o}))}))))}vm.defaultProps={activeKeys:void 0,isAccordion:!1,closedIconName:"add",openedIconName:"minus",children:void 0,useDefaultStyles:!0,onActiveKeysChanged:function(){}},vm.Panel=cm,vm.Item=Ph,vm.ItemOpener=jh,vm.ItemBody=Mh;var gm=i.default.createContext("stacked"),ym=["legendContent","children"],bm=l.default.div(["display:flex;flex-wrap:wrap;flex-direction:column;margin-bottom:25px;width:100%;> *:last-child{margin-bottom:0;}",";"],(function(e){return"inline"===e.orientation&&n.css(["@media (min-width:","){align-items:baseline;flex-direction:row;}"],e.theme.screenSize.tablet)})),wm=l.default.div(["color:",";flex:0 0 auto;font-size:21.6px;line-height:",";margin:0 0 10px 0;width:100%;"],(function(e){return e.theme.colors.black}),(function(e){return e.theme.font.baseLineHeight}));function xm(e){var t=e.legendContent,r=e.children,n=li(e,ym),o=t?kh():void 0,a=i.default.useContext(gm);return i.default.createElement(bm,Qa({role:"group","aria-labelledby":o,orientation:a},n),t&&i.default.createElement(wm,{id:o},t),r)}xm.defaultProps={legendContent:null,children:void 0},xm.Legend=wm;var km=c.createContext(),_m=c.createContext();function Sm(e){var t=e.children,r=c.useState(null),n=r[0],o=r[1],a=c.useRef(!1);c.useEffect((function(){return function(){a.current=!0}}),[]);var i=c.useCallback((function(e){a.current||o(e)}),[]);return c.createElement(km.Provider,{value:n},c.createElement(_m.Provider,{value:i},t))}var Cm=function(e){return Array.isArray(e)?e[0]:e},Em=function(e){if("function"==typeof e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return e.apply(void 0,r)}},Om=function(e,t){if("function"==typeof e)return Em(e,t);null!=e&&(e.current=t)},Tm=function(e){return e.reduce((function(e,t){var r=t[0],n=t[1];return e[r]=n,e}),{})},Dm="undefined"!=typeof window&&window.document&&window.document.createElement?c.useLayoutEffect:c.useEffect,Pm="top",Mm="bottom",jm="right",Nm="left",Am="auto",Rm=[Pm,Mm,jm,Nm],Im="start",Fm="end",Lm="viewport",zm="popper",Um=Rm.reduce((function(e,t){return e.concat([t+"-"+Im,t+"-"+Fm])}),[]),Bm=[].concat(Rm,[Am]).reduce((function(e,t){return e.concat([t,t+"-"+Im,t+"-"+Fm])}),[]),Hm=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Ym(e){return e?(e.nodeName||"").toLowerCase():null}function Wm(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function qm(e){return e instanceof Wm(e).Element||e instanceof Element}function Vm(e){return e instanceof Wm(e).HTMLElement||e instanceof HTMLElement}function Km(e){if("undefined"==typeof ShadowRoot)return!1;return e instanceof Wm(e).ShadowRoot||e instanceof ShadowRoot}var $m={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var r=t.styles[e]||{},n=t.attributes[e]||{},o=t.elements[e];if(!Vm(o)||!Ym(o))return;Object.assign(o.style,r),Object.keys(n).forEach((function(e){var t=n[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)}))}))},effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach((function(e){var n=t.elements[e],o=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:r[e]).reduce((function(e,t){return e[t]="",e}),{});if(!Vm(n)||!Ym(n))return;Object.assign(n.style,a),Object.keys(o).forEach((function(e){n.removeAttribute(e)}))}))}},requires:["computeStyles"]};function Gm(e){return e.split("-")[0]}function Qm(e,t){var r=e.getBoundingClientRect();return{width:r.width/1,height:r.height/1,top:r.top/1,right:r.right/1,bottom:r.bottom/1,left:r.left/1,x:r.left/1,y:r.top/1}}function Xm(e){var t=Qm(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function Jm(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Km(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Zm(e){return Wm(e).getComputedStyle(e)}function ev(e){return["table","td","th"].indexOf(Ym(e))>=0}function tv(e){return((qm(e)?e.ownerDocument:e.document)||window.document).documentElement}function rv(e){if("html"===Ym(e))return e;return e.assignedSlot||e.parentNode||(Km(e)?e.host:null)||tv(e)}function nv(e){if(!Vm(e)||"fixed"===Zm(e).position)return null;return e.offsetParent}function ov(e){for(var t=Wm(e),r=nv(e);r&&ev(r)&&"static"===Zm(r).position;)r=nv(r);if(r&&("html"===Ym(r)||"body"===Ym(r)&&"static"===Zm(r).position))return t;return r||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&Vm(e)&&"fixed"===Zm(e).position)return null;for(var r=rv(e);Vm(r)&&["html","body"].indexOf(Ym(r))<0;){var n=Zm(r);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return r;r=r.parentNode}return null}(e)||t}function av(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}var iv=Math.max,cv=Math.min,uv=Math.round;function lv(e,t,r){return iv(e,cv(t,r))}function sv(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function dv(e,t){return t.reduce((function(t,r){return t[r]=e,t}),{})}var fv={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,r=e.state,n=e.name,o=e.options,a=r.elements.arrow,i=r.modifiersData.popperOffsets,c=Gm(r.placement),u=av(c),l=[Nm,jm].indexOf(c)>=0?"height":"width";if(!a||!i)return;var s=function(e,t){return sv("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:dv(e,Rm))}(o.padding,r),d=Xm(a),f="y"===u?Pm:Nm,p="y"===u?Mm:jm,h=r.rects.reference[l]+r.rects.reference[u]-i[u]-r.rects.popper[l],m=i[u]-r.rects.reference[u],v=ov(a),g=v?"y"===u?v.clientHeight||0:v.clientWidth||0:0,y=h/2-m/2,b=s[f],w=g-d[l]-s[p],x=g/2-d[l]/2+y,k=lv(b,x,w),_=u;r.modifiersData[n]=((t={})[_]=k,t.centerOffset=k-x,t)},effect:function(e){var t=e.state,r=e.options.element,n=void 0===r?"[data-popper-arrow]":r;if(null==n)return;if("string"==typeof n&&!(n=t.elements.popper.querySelector(n)))return;if(!Jm(t.elements.popper,n))return;t.elements.arrow=n},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function pv(e){return e.split("-")[1]}var hv={top:"auto",right:"auto",bottom:"auto",left:"auto"};function mv(e){var t,r=e.popper,n=e.popperRect,o=e.placement,a=e.variation,i=e.offsets,c=e.position,u=e.gpuAcceleration,l=e.adaptive,s=e.roundOffsets,d=!0===s?function(e){var t=e.x,r=e.y,n=window.devicePixelRatio||1;return{x:uv(uv(t*n)/n)||0,y:uv(uv(r*n)/n)||0}}(i):"function"==typeof s?s(i):i,f=d.x,p=void 0===f?0:f,h=d.y,m=void 0===h?0:h,v=i.hasOwnProperty("x"),g=i.hasOwnProperty("y"),y=Nm,b=Pm,w=window;if(l){var x=ov(r),k="clientHeight",_="clientWidth";x===Wm(r)&&"static"!==Zm(x=tv(r)).position&&"absolute"===c&&(k="scrollHeight",_="scrollWidth"),x=x,o!==Pm&&(o!==Nm&&o!==jm||a!==Fm)||(b=Mm,m-=x[k]-n.height,m*=u?1:-1),o!==Nm&&(o!==Pm&&o!==Mm||a!==Fm)||(y=jm,p-=x[_]-n.width,p*=u?1:-1)}var S,C=Object.assign({position:c},l&&hv);if(u)return Object.assign({},C,((S={})[b]=g?"0":"",S[y]=v?"0":"",S.transform=(w.devicePixelRatio||1)<=1?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",S));return Object.assign({},C,((t={})[b]=g?m+"px":"",t[y]=v?p+"px":"",t.transform="",t))}var vv={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=void 0===n||n,a=r.adaptive,i=void 0===a||a,c=r.roundOffsets,u=void 0===c||c,l={placement:Gm(t.placement),variation:pv(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,mv(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:u})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,mv(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},gv={passive:!0};var yv={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,a=void 0===o||o,i=n.resize,c=void 0===i||i,u=Wm(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&l.forEach((function(e){e.addEventListener("scroll",r.update,gv)})),c&&u.addEventListener("resize",r.update,gv),function(){a&&l.forEach((function(e){e.removeEventListener("scroll",r.update,gv)})),c&&u.removeEventListener("resize",r.update,gv)}},data:{}},bv={left:"right",right:"left",bottom:"top",top:"bottom"};function wv(e){return e.replace(/left|right|bottom|top/g,(function(e){return bv[e]}))}var xv={start:"end",end:"start"};function kv(e){return e.replace(/start|end/g,(function(e){return xv[e]}))}function _v(e){var t=Wm(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Sv(e){return Qm(tv(e)).left+_v(e).scrollLeft}function Cv(e){var t=Zm(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function Ev(e){if(["html","body","#document"].indexOf(Ym(e))>=0)return e.ownerDocument.body;if(Vm(e)&&Cv(e))return e;return Ev(rv(e))}function Ov(e,t){var r;void 0===t&&(t=[]);var n=Ev(e),o=n===(null==(r=e.ownerDocument)?void 0:r.body),a=Wm(n),i=o?[a].concat(a.visualViewport||[],Cv(n)?n:[]):n,c=t.concat(i);return o?c:c.concat(Ov(rv(i)))}function Tv(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Dv(e,t){return t===Lm?Tv(function(e){var t=Wm(e),r=tv(e),n=t.visualViewport,o=r.clientWidth,a=r.clientHeight,i=0,c=0;return n&&(o=n.width,a=n.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(i=n.offsetLeft,c=n.offsetTop)),{width:o,height:a,x:i+Sv(e),y:c}}(e)):Vm(t)?function(e){var t=Qm(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):Tv(function(e){var t,r=tv(e),n=_v(e),o=null==(t=e.ownerDocument)?void 0:t.body,a=iv(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=iv(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),c=-n.scrollLeft+Sv(e),u=-n.scrollTop;return"rtl"===Zm(o||r).direction&&(c+=iv(r.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:c,y:u}}(tv(e)))}function Pv(e,t,r){var n="clippingParents"===t?function(e){var t=Ov(rv(e)),r=["absolute","fixed"].indexOf(Zm(e).position)>=0&&Vm(e)?ov(e):e;if(!qm(r))return[];return t.filter((function(e){return qm(e)&&Jm(e,r)&&"body"!==Ym(e)}))}(e):[].concat(t),o=[].concat(n,[r]),a=o[0],i=o.reduce((function(t,r){var n=Dv(e,r);return t.top=iv(n.top,t.top),t.right=cv(n.right,t.right),t.bottom=cv(n.bottom,t.bottom),t.left=iv(n.left,t.left),t}),Dv(e,a));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}function Mv(e){var t,r=e.reference,n=e.element,o=e.placement,a=o?Gm(o):null,i=o?pv(o):null,c=r.x+r.width/2-n.width/2,u=r.y+r.height/2-n.height/2;switch(a){case Pm:t={x:c,y:r.y-n.height};break;case Mm:t={x:c,y:r.y+r.height};break;case jm:t={x:r.x+r.width,y:u};break;case Nm:t={x:r.x-n.width,y:u};break;default:t={x:r.x,y:r.y}}var l=a?av(a):null;if(null!=l){var s="y"===l?"height":"width";switch(i){case Im:t[l]=t[l]-(r[s]/2-n[s]/2);break;case Fm:t[l]=t[l]+(r[s]/2-n[s]/2)}}return t}function jv(e,t){void 0===t&&(t={});var r=t,n=r.placement,o=void 0===n?e.placement:n,a=r.boundary,i=void 0===a?"clippingParents":a,c=r.rootBoundary,u=void 0===c?Lm:c,l=r.elementContext,s=void 0===l?zm:l,d=r.altBoundary,f=void 0!==d&&d,p=r.padding,h=void 0===p?0:p,m=sv("number"!=typeof h?h:dv(h,Rm)),v=s===zm?"reference":zm,g=e.rects.popper,y=e.elements[f?v:s],b=Pv(qm(y)?y:y.contextElement||tv(e.elements.popper),i,u),w=Qm(e.elements.reference),x=Mv({reference:w,element:g,strategy:"absolute",placement:o}),k=Tv(Object.assign({},g,x)),_=s===zm?k:w,S={top:b.top-_.top+m.top,bottom:_.bottom-b.bottom+m.bottom,left:b.left-_.left+m.left,right:_.right-b.right+m.right},C=e.modifiersData.offset;if(s===zm&&C){var E=C[o];Object.keys(S).forEach((function(e){var t=[jm,Mm].indexOf(e)>=0?1:-1,r=[Pm,Mm].indexOf(e)>=0?"y":"x";S[e]+=E[r]*t}))}return S}var Nv={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name;if(t.modifiersData[n]._skip)return;for(var o=r.mainAxis,a=void 0===o||o,i=r.altAxis,c=void 0===i||i,u=r.fallbackPlacements,l=r.padding,s=r.boundary,d=r.rootBoundary,f=r.altBoundary,p=r.flipVariations,h=void 0===p||p,m=r.allowedAutoPlacements,v=t.options.placement,g=Gm(v),y=u||(g===v||!h?[wv(v)]:function(e){if(Gm(e)===Am)return[];var t=wv(e);return[kv(e),t,kv(t)]}(v)),b=[v].concat(y).reduce((function(e,r){return e.concat(Gm(r)===Am?function(e,t){void 0===t&&(t={});var r=t,n=r.placement,o=r.boundary,a=r.rootBoundary,i=r.padding,c=r.flipVariations,u=r.allowedAutoPlacements,l=void 0===u?Bm:u,s=pv(n),d=s?c?Um:Um.filter((function(e){return pv(e)===s})):Rm,f=d.filter((function(e){return l.indexOf(e)>=0}));0===f.length&&(f=d);var p=f.reduce((function(t,r){return t[r]=jv(e,{placement:r,boundary:o,rootBoundary:a,padding:i})[Gm(r)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:r,boundary:s,rootBoundary:d,padding:l,flipVariations:h,allowedAutoPlacements:m}):r)}),[]),w=t.rects.reference,x=t.rects.popper,k=new Map,_=!0,S=b[0],C=0;C<b.length;C++){var E=b[C],O=Gm(E),T=pv(E)===Im,D=[Pm,Mm].indexOf(O)>=0,P=D?"width":"height",M=jv(t,{placement:E,boundary:s,rootBoundary:d,altBoundary:f,padding:l}),j=D?T?jm:Nm:T?Mm:Pm;w[P]>x[P]&&(j=wv(j));var N=wv(j),A=[];if(a&&A.push(M[O]<=0),c&&A.push(M[j]<=0,M[N]<=0),A.every((function(e){return e}))){S=E,_=!1;break}k.set(E,A)}if(_)for(var R=function(e){var t=b.find((function(t){var r=k.get(t);if(r)return r.slice(0,e).every((function(e){return e}))}));if(t)return S=t,"break"},I=h?3:1;I>0;I--){if("break"===R(I))break}t.placement!==S&&(t.modifiersData[n]._skip=!0,t.placement=S,t.reset=!0)},requiresIfExists:["offset"],data:{_skip:!1}};function Av(e,t,r){return void 0===r&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function Rv(e){return[Pm,jm,Mm,Nm].some((function(t){return e[t]>=0}))}var Iv={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,r=e.options,n=e.name,o=r.offset,a=void 0===o?[0,0]:o,i=Bm.reduce((function(e,r){return e[r]=function(e,t,r){var n=Gm(e),o=[Nm,Pm].indexOf(n)>=0?-1:1,a="function"==typeof r?r(Object.assign({},t,{placement:e})):r,i=a[0],c=a[1];return i=i||0,c=(c||0)*o,[Nm,jm].indexOf(n)>=0?{x:c,y:i}:{x:i,y:c}}(r,t.rects,a),e}),{}),c=i[t.placement],u=c.x,l=c.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=l),t.modifiersData[n]=i}};var Fv={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,a=void 0===o||o,i=r.altAxis,c=void 0!==i&&i,u=r.boundary,l=r.rootBoundary,s=r.altBoundary,d=r.padding,f=r.tether,p=void 0===f||f,h=r.tetherOffset,m=void 0===h?0:h,v=jv(t,{boundary:u,rootBoundary:l,padding:d,altBoundary:s}),g=Gm(t.placement),y=pv(t.placement),b=!y,w=av(g),x="x"===w?"y":"x",k=t.modifiersData.popperOffsets,_=t.rects.reference,S=t.rects.popper,C="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,E={x:0,y:0};if(!k)return;if(a||c){var O="y"===w?Pm:Nm,T="y"===w?Mm:jm,D="y"===w?"height":"width",P=k[w],M=k[w]+v[O],j=k[w]-v[T],N=p?-S[D]/2:0,A=y===Im?_[D]:S[D],R=y===Im?-S[D]:-_[D],I=t.elements.arrow,F=p&&I?Xm(I):{width:0,height:0},L=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},z=L[O],U=L[T],B=lv(0,_[D],F[D]),H=b?_[D]/2-N-B-z-C:A-B-z-C,Y=b?-_[D]/2+N+B+U+C:R+B+U+C,W=t.elements.arrow&&ov(t.elements.arrow),q=W?"y"===w?W.clientTop||0:W.clientLeft||0:0,V=t.modifiersData.offset?t.modifiersData.offset[t.placement][w]:0,K=k[w]+H-V-q,$=k[w]+Y-V;if(a){var G=lv(p?cv(M,K):M,P,p?iv(j,$):j);k[w]=G,E[w]=G-P}if(c){var Q="x"===w?Pm:Nm,X="x"===w?Mm:jm,J=k[x],Z=J+v[Q],ee=J-v[X],te=lv(p?cv(Z,K):Z,J,p?iv(ee,$):ee);k[x]=te,E[x]=te-J}}t.modifiersData[n]=E},requiresIfExists:["offset"]};function Lv(e,t,r){void 0===r&&(r=!1);var n=Vm(t);Vm(t)&&function(e){var t=e.getBoundingClientRect(),r=t.width/e.offsetWidth||1,n=t.height/e.offsetHeight||1}(t);var o=tv(t),a=Qm(e),i={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(n||!n&&!r)&&(("body"!==Ym(t)||Cv(o))&&(i=function(e){return e!==Wm(e)&&Vm(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:_v(e);var t}(t)),Vm(t)?((c=Qm(t)).x+=t.clientLeft,c.y+=t.clientTop):o&&(c.x=Sv(o))),{x:a.left+i.scrollLeft-c.x,y:a.top+i.scrollTop-c.y,width:a.width,height:a.height}}function zv(e){var t=new Map,r=new Set,n=[];function o(e){r.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!r.has(e)){var n=t.get(e);n&&o(n)}})),n.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){r.has(e.name)||o(e)})),n}var Uv={placement:"bottom",modifiers:[],strategy:"absolute"};function Bv(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function Hv(e){void 0===e&&(e={});var t=e,r=t.defaultModifiers,n=void 0===r?[]:r,o=t.defaultOptions,a=void 0===o?Uv:o;return function(e,t,r){void 0===r&&(r=a);var o,i,c={placement:"bottom",orderedModifiers:[],options:Object.assign({},Uv,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},u=[],l=!1,s={state:c,setOptions:function(r){var o="function"==typeof r?r(c.options):r;d(),c.options=Object.assign({},a,c.options,o),c.scrollParents={reference:qm(e)?Ov(e):e.contextElement?Ov(e.contextElement):[],popper:Ov(t)};var i=function(e){var t=zv(e);return Hm.reduce((function(e,r){return e.concat(t.filter((function(e){return e.phase===r})))}),[])}(function(e){var t=e.reduce((function(e,t){var r=e[t.name];return e[t.name]=r?Object.assign({},r,t,{options:Object.assign({},r.options,t.options),data:Object.assign({},r.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(n,c.options.modifiers)));return c.orderedModifiers=i.filter((function(e){return e.enabled})),c.orderedModifiers.forEach((function(e){var t=e.name,r=e.options,n=void 0===r?{}:r,o=e.effect;if("function"==typeof o){var a=o({state:c,name:t,instance:s,options:n}),i=function(){};u.push(a||i)}})),s.update()},forceUpdate:function(){if(l)return;var e=c.elements,t=e.reference,r=e.popper;if(!Bv(t,r))return;c.rects={reference:Lv(t,ov(r),"fixed"===c.options.strategy),popper:Xm(r)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach((function(e){return c.modifiersData[e.name]=Object.assign({},e.data)}));for(var n=0;n<c.orderedModifiers.length;n++){if(!0===c.reset){c.reset=!1,n=-1;continue}var o=c.orderedModifiers[n],a=o.fn,i=o.options,u=void 0===i?{}:i,d=o.name;"function"==typeof a&&(c=a({state:c,options:u,name:d,instance:s})||c)}},update:(o=function(){return new Promise((function(e){s.forceUpdate(),e(c)}))},function(){return i||(i=new Promise((function(e){Promise.resolve().then((function(){i=void 0,e(o())}))}))),i}),destroy:function(){d(),l=!0}};if(!Bv(e,t))return s;function d(){u.forEach((function(e){return e()})),u=[]}return s.setOptions(r).then((function(e){!l&&r.onFirstUpdate&&r.onFirstUpdate(e)})),s}}var Yv=Hv({defaultModifiers:[yv,{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,r=e.name;t.modifiersData[r]=Mv({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},vv,$m,Iv,Nv,Fv,fv,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,i=jv(t,{elementContext:"reference"}),c=jv(t,{altBoundary:!0}),u=Av(i,n),l=Av(c,o,a),s=Rv(u),d=Rv(l);t.modifiersData[r]={referenceClippingOffsets:u,popperEscapeOffsets:l,isReferenceHidden:s,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":s,"data-popper-escaped":d})}}]}),Wv="undefined"!=typeof Element,qv="function"==typeof Map,Vv="function"==typeof Set,Kv="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function $v(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(e.constructor!==t.constructor)return!1;var r,n,o,a;if(Array.isArray(e)){if((r=e.length)!=t.length)return!1;for(n=r;0!=n--;)if(!$v(e[n],t[n]))return!1;return!0}if(qv&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(a=e.entries();!(n=a.next()).done;)if(!t.has(n.value[0]))return!1;for(a=e.entries();!(n=a.next()).done;)if(!$v(n.value[1],t.get(n.value[0])))return!1;return!0}if(Vv&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(a=e.entries();!(n=a.next()).done;)if(!t.has(n.value[0]))return!1;return!0}if(Kv&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if((r=e.length)!=t.length)return!1;for(n=r;0!=n--;)if(e[n]!==t[n])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if((r=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(n=r;0!=n--;)if(!Object.prototype.hasOwnProperty.call(t,o[n]))return!1;if(Wv&&e instanceof Element)return!1;for(n=r;0!=n--;){if(("_owner"===o[n]||"__v"===o[n]||"__o"===o[n])&&e.$$typeof)continue;if(!$v(e[o[n]],t[o[n]]))return!1}return!0}return e!=e&&t!=t}var Gv=function(e,t){try{return $v(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}},Qv=[],Xv=function(){return},Jv=function(){return Promise.resolve(null)},Zv=[];function eg(e){var t=e.placement,r=void 0===t?"bottom":t,n=e.strategy,o=void 0===n?"absolute":n,a=e.modifiers,i=void 0===a?Zv:a,u=e.referenceElement,l=e.onFirstUpdate,s=e.innerRef,d=e.children,f=c.useContext(km),p=c.useState(null),h=p[0],m=p[1],v=c.useState(null),g=v[0],y=v[1];c.useEffect((function(){Om(s,h)}),[s,h]);var b=c.useMemo((function(){return{placement:r,strategy:o,onFirstUpdate:l,modifiers:[].concat(i,[{name:"arrow",enabled:null!=g,options:{element:g}}])}}),[r,o,l,i,g]),w=function(e,t,r){void 0===r&&(r={});var n=c.useRef(null),o={onFirstUpdate:r.onFirstUpdate,placement:r.placement||"bottom",strategy:r.strategy||"absolute",modifiers:r.modifiers||Qv},a=c.useState({styles:{popper:{position:o.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),i=a[0],u=a[1],l=c.useMemo((function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(e){var t=e.state,r=Object.keys(t.elements);u({styles:Tm(r.map((function(e){return[e,t.styles[e]||{}]}))),attributes:Tm(r.map((function(e){return[e,t.attributes[e]]})))})},requires:["computeStyles"]}}),[]),s=c.useMemo((function(){var e={onFirstUpdate:o.onFirstUpdate,placement:o.placement,strategy:o.strategy,modifiers:[].concat(o.modifiers,[l,{name:"applyStyles",enabled:!1}])};return Gv(n.current,e)?n.current||e:(n.current=e,e)}),[o.onFirstUpdate,o.placement,o.strategy,o.modifiers,l]),d=c.useRef();return Dm((function(){d.current&&d.current.setOptions(s)}),[s]),Dm((function(){if(null==e||null==t)return;var n=(r.createPopper||Yv)(e,t,s);return d.current=n,function(){n.destroy(),d.current=null}}),[e,t,r.createPopper]),{state:d.current?d.current.state:null,styles:i.styles,attributes:i.attributes,update:d.current?d.current.update:null,forceUpdate:d.current?d.current.forceUpdate:null}}(u||f,h,b),x=w.state,k=w.styles,_=w.forceUpdate,S=w.update,C=c.useMemo((function(){return{ref:m,style:k.popper,placement:x?x.placement:r,hasPopperEscaped:x&&x.modifiersData.hide?x.modifiersData.hide.hasPopperEscaped:null,isReferenceHidden:x&&x.modifiersData.hide?x.modifiersData.hide.isReferenceHidden:null,arrowProps:{style:k.arrow,ref:y},forceUpdate:_||Xv,update:S||Jv}}),[m,y,r,x,k,S,_]);return Cm(d)(C)}var tg=function(){};function rg(e){var t=e.children,r=e.innerRef,n=c.useContext(_m),o=c.useCallback((function(e){Om(r,e),Em(n,e)}),[r,n]);return c.useEffect((function(){return function(){return Om(r,null)}})),c.useEffect((function(){}),[n]),Cm(t)({ref:o})}function ng(e,t){return ng=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ng(e,t)}var og=!1,ag=i.default.createContext(null),ig="unmounted",cg="exited",ug="entering",lg="entered",sg="exiting",dg=function(e){var t,r;function n(t,r){var n;n=e.call(this,t,r)||this;var o,a=r&&!r.isMounting?t.enter:t.appear;return n.appearStatus=null,t.in?a?(o=cg,n.appearStatus=ug):o=lg:o=t.unmountOnExit||t.mountOnEnter?ig:cg,n.state={status:o},n.nextCallback=null,n}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,ng(t,r),n.getDerivedStateFromProps=function(e,t){if(e.in&&t.status===ig)return{status:cg};return null};var o=n.prototype;return o.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},o.componentDidUpdate=function(e){var t=null;if(e!==this.props){var r=this.state.status;this.props.in?r!==ug&&r!==lg&&(t=ug):r!==ug&&r!==lg||(t=sg)}this.updateStatus(!1,t)},o.componentWillUnmount=function(){this.cancelNextCallback()},o.getTimeouts=function(){var e,t,r,n=this.props.timeout;return e=t=r=n,null!=n&&"number"!=typeof n&&(e=n.exit,t=n.enter,r=void 0!==n.appear?n.appear:t),{exit:e,enter:t,appear:r}},o.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),t===ug?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&this.state.status===cg&&this.setState({status:ig})},o.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,o=this.props.nodeRef?[n]:[u.default.findDOMNode(this),n],a=o[0],i=o[1],c=this.getTimeouts(),l=n?c.appear:c.enter;if(!e&&!r||og)return void this.safeSetState({status:lg},(function(){t.props.onEntered(a)}));this.props.onEnter(a,i),this.safeSetState({status:ug},(function(){t.props.onEntering(a,i),t.onTransitionEnd(l,(function(){t.safeSetState({status:lg},(function(){t.props.onEntered(a,i)}))}))}))},o.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts(),n=this.props.nodeRef?void 0:u.default.findDOMNode(this);if(!t||og)return void this.safeSetState({status:cg},(function(){e.props.onExited(n)}));this.props.onExit(n),this.safeSetState({status:sg},(function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,(function(){e.safeSetState({status:cg},(function(){e.props.onExited(n)}))}))}))},o.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},o.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},o.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},o.onTransitionEnd=function(e,t){this.setNextCallback(t);var r=this.props.nodeRef?this.props.nodeRef.current:u.default.findDOMNode(this),n=null==e&&!this.props.addEndListener;if(!r||n)return void setTimeout(this.nextCallback,0);if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],a=o[0],i=o[1];this.props.addEndListener(a,i)}null!=e&&setTimeout(this.nextCallback,e)},o.render=function(){var e=this.state.status;if(e===ig)return null;var t=this.props,r=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var n=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++){if(r=a[n],t.indexOf(r)>=0)continue;o[r]=e[r]}return o}(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return i.default.createElement(ag.Provider,{value:null},"function"==typeof r?r(e,n):i.default.cloneElement(i.default.Children.only(r),n))},n}(i.default.Component);function fg(){}dg.contextType=ag,dg.propTypes={},dg.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:fg,onEntering:fg,onEntered:fg,onExit:fg,onExiting:fg,onExited:fg},dg.UNMOUNTED=ig,dg.EXITED=cg,dg.ENTERING=ug,dg.ENTERED=lg,dg.EXITING=sg;var pg=["children","duration","opacity"];function hg(e,t){var r=ln(e);if(xa){var n=xa(e);t&&(n=Pa(n).call(n,(function(t){return Aa(e,t).enumerable}))),r.push.apply(r,n)}return r}function mg(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?hg(Object(r),!0).forEach((function(t){Ha(e,t,r[t])})):Fa?Object.defineProperties(e,Fa(r)):hg(Object(r)).forEach((function(t){Object.defineProperty(e,t,Aa(r,t))}))}return e}var vg=function(e){var t=e.children,r=e.duration,n=e.opacity,o=li(e,pg),a={transition:"opacity ".concat(r,"ms linear"),opacity:0},c={entering:{opacity:n},entered:{opacity:n}};return i.default.createElement(dg,Qa({},o,{timeout:r}),(function(e,r){return i.default.cloneElement(t,mg(mg({},r),{},{style:mg(mg(mg({},t.props.style),a),c[e])}))}))};vg.defaultProps={duration:150,opacity:1};var gg=vg,yg=["children","styleType","suppressUnderline"],bg=l.default(Ai)(["text-underline-position:under;text-decoration-skip-ink:none;text-decoration:",";&:hover,:focus{text-decoration:",";}"],(function(e){return e.suppressUnderline?"none":"dashed underline"}),(function(e){return e.suppressUnderline?"none":"solid underline"})),wg=i.default.forwardRef((function(e,t){var r=e.children,n=e.styleType,o=e.suppressUnderline,a=li(e,yg),c=di().buttonStyles.linkButton.variant[n];return i.default.createElement(bg,Qa({ref:t,variant:c,suppressUnderline:o},a),r)}));wg.defaultProps={styleType:"primary",suppressUnderline:!1};var xg=wg,kg=["name","disableHover","disableFocus","position","content","styleType","children"],_g=l.default.div(["position:absolute;z-index:999;"]),Sg=l.default.div(["background-color:",";border-radius:2px;color:",";font-family:'Source Sans Pro','Segoe UI',Segoe,Calibri,Tahoma,sans-serif;font-size:15px;line-height:",";max-width:250px;padding:3px 8px;text-align:left;"],(function(e){return e.theme.colors.primary}),(function(e){return e.theme.colors.white}),(function(e){return e.theme.font.baseLineHeight})),Cg=l.default.div(["border-color:transparent;border-style:solid;height:0;position:absolute;width:0;"]),Eg=l.default(_g)(["padding:5px 0;"]),Og=l.default(_g)(["padding:0 5px;"]),Tg=l.default(_g)(["padding:5px 0;"]),Dg=l.default(_g)(["padding:0 5px;"]),Pg=l.default(Cg)(["border-top-color:",";border-width:5px 5px 0;bottom:0;"],(function(e){return e.theme.colors.primary})),Mg=l.default(Cg)(["border-right-color:",";border-width:5px 5px 5px 0;left:0;"],(function(e){return e.theme.colors.primary})),jg=l.default(Cg)(["border-bottom-color:",";border-width:0 5px 5px;top:0;"],(function(e){return e.theme.colors.primary})),Ng=l.default(Cg)(["border-left-color:",";border-width:5px 0 5px 5px;right:0;"],(function(e){return e.theme.colors.primary})),Ag=Zf("div");function Rg(e){var r,n,o=t.useState(!1),a=yu(o,2),c=a[0],l=a[1],s=e.name,d=e.disableHover,f=e.disableFocus,p=e.position,h=e.content,m=e.styleType,v=e.children,g=li(e,kg),y=s?"es-tooltip__".concat(s):void 0,b=gd(document.body),w=yu(b,2),x=w[0],k=w[1];switch(p){case"right":r=Og,n=Mg;break;case"bottom":r=Tg,n=jg;break;case"left":r=Dg,n=Ng;break;default:r=Eg,n=Pg}function _(){l(!0)}function S(){l(!1)}function C(){l(!c)}function E(e){27===e.keyCode&&l(!1)}var O="".concat(_h(g.id),"-description");return i.default.createElement(Sm,null,i.default.createElement(rg,null,(function(e){var t=e.ref;return i.default.createElement(xg,{ref:function(e){t(e),k(e)},onBlur:S,onFocus:f?void 0:_,onMouseEnter:d?void 0:_,onMouseLeave:d?void 0:S,onKeyDown:E,onClick:C,"aria-describedby":O,styleType:m},v)})),c&&i.default.createElement(Ag,{id:O},h),u.default.createPortal(i.default.createElement(eg,{placement:p},(function(e){var t=e.ref,o=e.style;e.placement;var a=e.arrowProps;return i.default.createElement(gg,{in:c,mountOnEnter:!0,unmountOnExit:!0},i.default.createElement(r,Qa({ref:t,role:"tooltip",id:y,style:o,"aria-live":"polite"},g),i.default.createElement(n,{ref:a.ref,style:a.style}),i.default.createElement(Sg,null,h)))})),x))}Rg.defaultProps={position:"top",disableHover:!1,disableFocus:!1,styleType:void 0};var Ig,Fg,Lg,zg={}.propertyIsEnumerable,Ug=Object.getOwnPropertyDescriptor,Bg={f:Ug&&!zg.call({1:2},1)?function(e){var t=Ug(this,e);return!!t&&t.enumerable}:zg},Hg=function(e){return M(j(e))},Yg=Object.getOwnPropertyDescriptor,Wg={f:Ne?Yg:function(e,t){if(e=Hg(e),t=Ue(t),Ae)try{return Yg(e,t)}catch(e){}if(V(e,t))return Ye(!Bg.f.call(e,t),e[t])}},qg=v.WeakMap,Vg=y(qg)&&/native code/.test(ye(qg)),Kg=W("keys"),$g=function(e){return Kg[e]||(Kg[e]=G(e))},Gg={},Qg="Object already initialized",Xg=v.WeakMap;if(Vg||Y.state){var Jg=Y.state||(Y.state=new Xg),Zg=Jg.get,ey=Jg.has,ty=Jg.set;Ig=function(e,t){if(ey.call(Jg,e))throw new TypeError(Qg);return t.facade=e,ty.call(Jg,e,t),t},Fg=function(e){return Zg.call(Jg,e)||{}},Lg=function(e){return ey.call(Jg,e)}}else{var ry=$g("state");Gg[ry]=!0,Ig=function(e,t){if(V(e,ry))throw new TypeError(Qg);return t.facade=e,We(e,ry,t),t},Fg=function(e){return V(e,ry)?e[ry]:{}},Lg=function(e){return V(e,ry)}}var ny,oy={set:Ig,get:Fg,has:Lg,enforce:function(e){return Lg(e)?Fg(e):Ig(e,{})},getterFor:function(e){return function(t){var r;if(!b(t)||(r=Fg(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return r}}},ay=f((function(e){var t=sd.CONFIGURABLE,r=oy.get,n=oy.enforce,o=String(String).split("String");(e.exports=function(e,r,a,i){var c,u=!!i&&!!i.unsafe,l=!!i&&!!i.enumerable,s=!!i&&!!i.noTargetGet,d=i&&void 0!==i.name?i.name:r;if(y(a)&&("Symbol("===String(d).slice(0,7)&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!V(a,"name")||t&&a.name!==d)&&We(a,"name",d),(c=n(a)).source||(c.source=o.join("string"==typeof d?d:""))),e===v)return void(l?e[r]=a:B(r,a));u?!s&&e[r]&&(l=!0):delete e[r],l?e[r]=a:We(e,r,a)})(Function.prototype,"toString",(function(){return y(this)&&r(this).source||ye(this)}))})),iy=Math.max,cy=Math.min,uy=function(e){return function(t,r,n){var o,a=Hg(t),i=z(a),c=function(e,t){var r=I(e);return r<0?iy(r+t,0):cy(r,t)}(n,i);if(e&&r!=r){for(;i>c;)if((o=a[c++])!=o)return!0}else for(;i>c;c++)if((e||c in a)&&a[c]===r)return e||c||0;return!e&&-1}},ly={includes:uy(!0),indexOf:uy(!1)}.indexOf,sy=function(e,t){var r,n=Hg(e),o=0,a=[];for(r in n)!V(Gg,r)&&V(n,r)&&a.push(r);for(;t.length>o;)V(n,r=t[o++])&&(~ly(a,r)||a.push(r));return a},dy=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],fy=dy.concat("length","prototype"),py={f:Object.getOwnPropertyNames||function(e){return sy(e,fy)}},hy={f:Object.getOwnPropertySymbols},my=X("Reflect","ownKeys")||function(e){var t=py.f(Re(e)),r=hy.f;return r?t.concat(r(e)):t},vy=function(e,t){for(var r=my(t),n=He.f,o=Wg.f,a=0;a<r.length;a++){var i=r[a];V(e,i)||n(e,i,o(t,i))}},gy=/#|\.prototype\./,yy=function(e,t){var r=wy[by(e)];return r==ky||r!=xy&&(y(t)?O(t):!!t)},by=yy.normalize=function(e){return String(e).replace(gy,".").toLowerCase()},wy=yy.data={},xy=yy.NATIVE="N",ky=yy.POLYFILL="P",_y=yy,Sy=Wg.f,Cy=function(e,t){var r,n,o,a,i,c=e.target,u=e.global,l=e.stat;if(r=u?v:l?v[c]||B(c,{}):(v[c]||{}).prototype)for(n in t){if(a=t[n],o=e.noTargetGet?(i=Sy(r,n))&&i.value:r[n],!_y(u?n:c+(l?".":"#")+n,e.forced)&&void 0!==o){if(typeof a==typeof o)continue;vy(a,o)}(e.sham||o&&o.sham)&&We(a,"sham",!0),ay(r,n,a,e)}},Ey=function(e){if("Symbol"===he(e))throw TypeError("Cannot convert a Symbol value to a string");return String(e)},Oy=function(){var e=Re(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},Ty=v.RegExp,Dy={UNSUPPORTED_Y:O((function(){var e=Ty("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),BROKEN_CARET:O((function(){var e=Ty("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},Py=Object.keys||function(e){return sy(e,dy)},My=Ne?Object.defineProperties:function(e,t){Re(e);for(var r,n=Py(t),o=n.length,a=0;o>a;)He.f(e,r=n[a++],t[r]);return e},jy=X("document","documentElement"),Ny=$g("IE_PROTO"),Ay=function(){},Ry=function(e){return"<script>"+e+"</"+"script>"},Iy=function(e){e.write(Ry("")),e.close();var t=e.parentWindow.Object;return e=null,t},Fy=function(){try{ny=new ActiveXObject("htmlfile")}catch(e){}var e,t;Fy="undefined"!=typeof document?document.domain&&ny?Iy(ny):((t=k("iframe")).style.display="none",jy.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Ry("document.F=Object")),e.close(),e.F):Iy(ny);for(var r=dy.length;r--;)delete Fy.prototype[dy[r]];return Fy()};Gg[Ny]=!0;var Ly,zy,Uy=Object.create||function(e,t){var r;return null!==e?(Ay.prototype=Re(e),r=new Ay,Ay.prototype=null,r[Ny]=e):r=Fy(),void 0===t?r:My(r,t)},By=v.RegExp,Hy=O((function(){var e=By(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),Yy=v.RegExp,Wy=O((function(){var e=Yy("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),qy=oy.get,Vy=RegExp.prototype.exec,Ky=W("native-string-replace",String.prototype.replace),$y=Vy,Gy=(Ly=/a/,zy=/b*/g,Vy.call(Ly,"a"),Vy.call(zy,"a"),0!==Ly.lastIndex||0!==zy.lastIndex),Qy=Dy.UNSUPPORTED_Y||Dy.BROKEN_CARET,Xy=void 0!==/()??/.exec("")[1];(Gy||Xy||Qy||Hy||Wy)&&($y=function(e){var t,r,n,o,a,i,c,u=this,l=qy(u),s=Ey(e),d=l.raw;if(d)return d.lastIndex=u.lastIndex,t=$y.call(d,s),u.lastIndex=d.lastIndex,t;var f=l.groups,p=Qy&&u.sticky,h=Oy.call(u),m=u.source,v=0,g=s;if(p&&(-1===(h=h.replace("y","")).indexOf("g")&&(h+="g"),g=s.slice(u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&"\n"!==s.charAt(u.lastIndex-1))&&(m="(?: "+m+")",g=" "+g,v++),r=new RegExp("^(?:"+m+")",h)),Xy&&(r=new RegExp("^"+m+"$(?!\\s)",h)),Gy&&(n=u.lastIndex),o=Vy.call(p?r:u,g),p?o?(o.input=o.input.slice(v),o[0]=o[0].slice(v),o.index=u.lastIndex,u.lastIndex+=o[0].length):u.lastIndex=0:Gy&&o&&(u.lastIndex=u.global?o.index+o[0].length:n),Xy&&o&&o.length>1&&Ky.call(o[0],r,(function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(o[a]=void 0)})),o&&f)for(o.groups=i=Uy(null),a=0;a<f.length;a++)i[(c=f[a])[0]]=o[c[1]];return o});var Jy=$y;Cy({target:"RegExp",proto:!0,forced:/./.exec!==Jy},{exec:Jy});var Zy=le("species"),eb=RegExp.prototype,tb=function(e,t,r,n){var o=le(e),a=!O((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),i=a&&!O((function(){var t=!1,r=/a/;return"split"===e&&((r={}).constructor={},r.constructor[Zy]=function(){return r},r.flags="",r[o]=/./[o]),r.exec=function(){return t=!0,null},r[o](""),!t}));if(!a||!i||r){var c=/./[o],u=t(o,""[e],(function(e,t,r,n,o){var i=t.exec;if(i===Jy||i===eb.exec){if(a&&!o)return{done:!0,value:c.call(t,r,n)};return{done:!0,value:e.call(r,t,n)}}return{done:!1}}));ay(String.prototype,e,u[0]),ay(eb,o,u[1])}n&&We(eb[o],"sham",!0)},rb=function(e){return function(t,r){var n,o,a=Ey(j(t)),i=I(r),c=a.length;if(i<0||i>=c)return e?"":void 0;return(n=a.charCodeAt(i))<55296||n>56319||i+1===c||(o=a.charCodeAt(i+1))<56320||o>57343?e?a.charAt(i):n:e?a.slice(i,i+2):o-56320+(n-55296<<10)+65536}},nb={codeAt:rb(!1),charAt:rb(!0)}.charAt,ob=function(e,t,r){return t+(r?nb(e,t).length:1)},ab=function(e,t){var r=e.exec;if(y(r)){var n=r.call(e,t);return null!==n&&Re(n),n}if("RegExp"===D(e))return Jy.call(e,t);throw TypeError("RegExp#exec called on incompatible receiver")};tb("match",(function(e,t,r){return[function(t){var r=j(this),n=null==t?void 0:Fe(t,e);return n?n.call(t,r):new RegExp(t)[e](Ey(r))},function(e){var n=Re(this),o=Ey(e),a=r(t,n,o);if(a.done)return a.value;if(!n.global)return ab(n,o);var i=n.unicode;n.lastIndex=0;for(var c,u=[],l=0;null!==(c=ab(n,o));){var s=Ey(c[0]);u[l]=s,""===s&&(n.lastIndex=ob(o,L(n.lastIndex),i)),l++}return 0===l?null:u}]}));var ib=["name","trigger","children","position","arrowSize","hasTitle","transitionIn","transitionTimeout","disableFlipping","popperRef","enableEvents","strategy","keepTogether"],cb=l.default.div(["border:1px solid rgba(0,0,0,0.3);box-shadow:0 5px 10px rgba(0,0,0,0.3);border-radius:2px;max-width:350px;min-width:270px;position:absolute;text-align:center;z-index:99999;"]),ub=l.default.div(["position:absolute;&::before,&::after{border:solid transparent;content:'';position:absolute;}&[data-placement*='bottom']{top:0;left:0;margin-top:-","px;&::before{border-width:",";border-color:transparent;border-bottom-color:",";margin-left:-","px;}&::after{border-width:",";border-color:transparent;border-bottom-color:",";margin-left:-","px;}}&[data-placement*='top']{&::before{border-width:","px;border-color:transparent;border-top-color:",";margin-left:-","px;}&::after{border-width:","px;border-color:transparent;border-top-color:",";margin-left:-","px;}}&[data-placement*='right']{margin-left:-","px;&::before{border-width:",";border-color:transparent;border-right-color:",";margin-top:-","px;}&::after{border-width:",";border-color:transparent;border-right-color:",";margin-top:-","px;}}&[data-placement*='left']{right:0;&::before{border-width:","px;border-color:transparent;border-left-color:",";margin-top:-","px;}&::after{border-width:","px;border-color:transparent;border-left-color:",";margin-top:-","px;}}"],(function(e){return e.arrowSize.size}),(function(e){return e.arrowSize.bottomBorderWidth}),(function(e){return e.arrowSize.borderColor}),(function(e){return e.arrowSize.borderSize}),(function(e){return e.arrowSize.bottomWidth}),(function(e){return e.hasTitle?e.theme.colors.primary:e.theme.colors.white}),(function(e){return e.arrowSize.size}),(function(e){return e.arrowSize.borderSize}),(function(e){return e.arrowSize.borderColor}),(function(e){return e.arrowSize.borderSize}),(function(e){return e.arrowSize.size}),(function(e){return e.theme.colors.white}),(function(e){return e.arrowSize.size}),(function(e){return e.arrowSize.size}),(function(e){return e.arrowSize.rightBorderWidth}),(function(e){return e.arrowSize.borderColor}),(function(e){return e.arrowSize.borderSize}),(function(e){return e.arrowSize.rightWidth}),(function(e){return e.theme.colors.white}),(function(e){return e.arrowSize.size}),(function(e){return e.arrowSize.borderSize}),(function(e){return e.arrowSize.borderColor}),(function(e){return e.arrowSize.borderSize}),(function(e){return e.arrowSize.size}),(function(e){return e.theme.colors.white}),(function(e){return e.arrowSize.size})),lb={size:"5",borderSize:"6",marginSize:"10",bottomWidth:"0 5px 5px",bottomBorderWidth:"0 6px 5px",rightWidth:"5px 5px 5px 0",rightBorderWidth:"6px 5px 6px 0",borderColor:"rgba(0, 0, 0, 0.3)"},sb={size:"10",borderSize:"11",marginSize:"15",bottomWidth:"0 10px 10px",bottomBorderWidth:"0 11px 10px",rightWidth:"10px 10px 10px 0",rightBorderWidth:"11px 10px 11px 0",borderColor:"rgba(0, 0, 0, 0.3)"},db={size:"20",borderSize:"21",marginSize:"30",bottomWidth:"0 20px 20px",bottomBorderWidth:"0 21px 20px",rightWidth:"20px 20px 20px 0",rightBorderWidth:"21px 20px 21px 0",borderColor:"rgba(0, 0, 0, 0.3)"},fb={size:"0",borderSize:"0",marginSize:"10"};function pb(e){var t=e.name,r=e.trigger,n=e.children,o=e.position,a=e.arrowSize,c=e.hasTitle,l=e.transitionIn,s=e.transitionTimeout,d=e.disableFlipping,f=e.popperRef,p=e.enableEvents,h=e.strategy,m=e.keepTogether,v=li(e,ib),g=function(e){switch(e){case"sm":return lb;case"lg":return db;case"none":return fb;default:return sb}}(a),y=gd(document.body),b=yu(y,2),w=b[0],x=b[1];return i.default.createElement(Sm,null,i.default.createElement(rg,null,(function(e){var n=e.ref;return i.default.createElement("div",{className:"".concat(t,"-popper__trigger"),ref:function(e){n(e),x(e)}},r)})),u.default.createPortal(i.default.createElement(eg,{className:"".concat(t,"-popper"),placement:o,modifiers:[{name:"preventOverflow",options:{boundariesElement:document.body,tether:m}},{name:"flip",options:{enabled:!d,fallbackPlacements:["left","right","top","bottom"]}},{name:"offset",options:{offset:[0,g.marginSize]}}],innerRef:f,eventsEnabled:p,positionFixed:"fixed"===h},(function(e){var t=e.ref,r=e.style,o=e.placement,a=e.arrowProps;return i.default.createElement(gg,{in:l,duration:s,mountOnEnter:!0,unmountOnExit:!0},i.default.createElement(cb,Qa({ref:t,style:r,arrowSize:g},v),n,i.default.createElement(ub,{ref:a.ref,"data-placement":o,style:a.style,arrowSize:g,hasTitle:c})))})),w))}pb.defaultProps={name:"",trigger:void 0,children:void 0,position:"bottom",arrowSize:"default",transitionIn:!1,transitionTimeout:150,hasTitle:!1,disableFlipping:!1,popperRef:void 0,enableEvents:!0,strategy:"absolute",keepTogether:!0};var hb=!("undefined"==typeof window||!window.document||!window.document.createElement),mb=!1,vb=!1;try{var gb={get passive(){return mb=!0},get once(){return vb=mb=!0}};hb&&(window.addEventListener("test",gb,gb),window.removeEventListener("test",gb,!0))}catch(Qp){}function yb(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function bb(e){this.setState(function(t){var r=this.constructor.getDerivedStateFromProps(e,t);return null!=r?r:null}.bind(this))}function wb(e,t){try{var r=this.props,n=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(r,n)}finally{this.props=r,this.state=n}}yb.__suppressDeprecationWarning=!0,bb.__suppressDeprecationWarning=!0,wb.__suppressDeprecationWarning=!0;var xb=Object.freeze({__proto__:null,polyfill:function(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var r=null,n=null,o=null;if("function"==typeof t.componentWillMount?r="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(r="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?n="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(n="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?o="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(o="UNSAFE_componentWillUpdate"),null!==r||null!==n||null!==o){var a=e.displayName||e.name,i="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+a+" uses "+i+" but also contains the following legacy lifecycles:"+(null!==r?"\n "+r:"")+(null!==n?"\n "+n:"")+(null!==o?"\n "+o:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=yb,t.componentWillReceiveProps=bb),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=wb;var c=t.componentDidUpdate;t.componentDidUpdate=function(e,t,r){var n=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:r;c.call(this,e,t,n)}}return e}});function kb(e){var r=function(e){var r=t.useRef(e);return t.useEffect((function(){r.current=e}),[e]),r}(e);return t.useCallback((function(){return r.current&&r.current.apply(r,arguments)}),[r])}function _b(e,t,r,n){return function(e,t,r,n){if(n&&"boolean"!=typeof n&&!vb){var o=n.once,a=n.capture,i=r;!vb&&o&&(i=r.__once||function e(n){this.removeEventListener(t,e,a),r.call(this,n)},r.__once=i),e.addEventListener(t,i,mb?n:a)}e.addEventListener(t,r,n)}(e,t,r,n),function(){!function(e,t,r,n){var o=n&&"boolean"!=typeof n?n.capture:n;e.removeEventListener(t,r,o),r.__once&&e.removeEventListener(t,r.__once,o)}(e,t,r,n)}}var Sb=function(e){return function(e){return e&&e.ownerDocument||document}(function(e){if(e&&"setState"in e)return u.default.findDOMNode(e);return null!=e?e:null}(e))},Cb=function(){};var Eb=function(e){return e&&("current"in e?e.current:e)};var Ob,Tb=function(e){var r=e.children,n=e.onRootClose,o=e.disabled,a=e.className,c=t.useRef();return function(e,r,n){var o=void 0===n?{}:n,a=o.disabled,i=o.clickTrigger,c=void 0===i?"click":i,u=t.useRef(!1),l=r||Cb,s=t.useCallback((function(t){var r,n=Eb(e);u.current=!(n&&(r=t,!(r.metaKey||r.altKey||r.ctrlKey||r.shiftKey))&&function(e){return 0===e.button}(t)&&!function(e,t){if(e.contains)return e.contains(t);if(e.compareDocumentPosition)return e===t||!!(16&e.compareDocumentPosition(t))}(n,t.target))}),[e]),d=kb((function(e){u.current||l(e)})),f=kb((function(e){27===e.keyCode&&l(e)}));t.useEffect((function(){if(a||null==e)return;var t=window.event,r=Sb(Eb(e)),n=_b(r,c,s,!0),o=_b(r,c,(function(e){if(e===t)return void(t=void 0);d(e)})),i=_b(r,"keyup",(function(e){if(e===t)return void(t=void 0);f(e)})),u=[];return"ontouchstart"in r.documentElement&&(u=[].slice.call(r.body.children).map((function(e){return _b(e,"mousemove",Cb)}))),function(){n(),o(),i(),u.forEach((function(e){return e()}))}}),[e,a,c,s,d,f])}(c,n,{disabled:o}),i.default.createElement("div",{ref:c,className:"root-close-wrapper ".concat(a)},r)},Db=["name","title","content","renderContent","placement","arrowSize","renderTrigger","hasCloseButton","hasAltCloseButton","disableCloseOnScroll","disableRootClose","disableFlipping","enableEvents","keepTogether","strategy","popoverWrapperClassName","styleType"],Pb=(null===(Ob=i.default.version.match(/\d+/))||void 0===Ob?void 0:Ob[0])||"0",Mb=parseInt(Pb,10),jb=l.default.div(["display:inline-block;"]),Nb=l.default.div(["background-color:",";color:",";display:flex;justify-content:space-between;line-height:",";outline:none;"],(function(e){return e.hasTitle?e.theme.colors[e.styleType]:e.theme.colors.white}),(function(e){return e.theme.colors.white}),(function(e){return e.theme.font.baseLineHeight})),Ab=l.default.h3(["flex:1 1;font-size:18px;margin:0;padding:8px 14px;text-align:left;"]),Rb=l.default.div(["background:",";color:",";font-size:18px;font-weight:normal;line-height:",";padding:",";text-align:right;"],(function(e){return e.theme.colors.white}),(function(e){return e.theme.colors.gray9}),(function(e){return e.theme.font.baseLineHeight}),(function(e){return e.hasAltCloseWithNoTitle?"0 14px 8px":"8px 14px"})),Ib=l.default.div(["margin-bottom:",";text-align:left;"],(function(e){return e.showCloseButton?"8px":"0"})),Fb=l.default(Ei)(["display:inline-block;margin:5px 0;width:auto;"]),Lb=l.default(rp)(["color:",";flex:0 1;margin-left:auto;padding:8px;"],(function(e){return e.hasTitle?e.theme.colors.white:e.theme.colors.black})),zb=l.default.span(["color:transparent;flex:none;height:1px;outline:0;width:1px;"]);function Ub(e){var r=e.name,n=e.title,o=e.content,a=e.renderContent,c=e.placement,u=e.arrowSize,l=e.renderTrigger,s=e.hasCloseButton,d=e.hasAltCloseButton,f=e.disableCloseOnScroll,p=e.disableRootClose,h=e.disableFlipping,m=e.enableEvents,v=e.keepTogether,g=e.strategy,y=e.popoverWrapperClassName,b=e.styleType,w=li(e,Db),x=void 0!==n,k=!x&&d,_=s&&!d,S=t.useRef(!0),C=t.useRef(null),E=t.useRef(null),O=t.useRef(null),T=t.useRef(null),D=t.useRef(null),P=t.useRef(null),M=t.useState(!1),j=yu(M,2),N=j[0],A=j[1];function R(e){e.preventDefault(),Mb<=16&&e.stopPropagation(),A(!N)}function I(){setInterval((function(){if(E.current){var e=E.current.getBoundingClientRect();!(e.top>=0&&e.bottom<=window.innerHeight)&&N&&A(!1)}}),100)}t.useEffect((function(){if(S.current)return void(S.current=!1);null!==P.current&&clearTimeout(P.current),N?P.current=setTimeout((function(){D.current?D.current.focus():T.current&&T.current.focus()}),100):C.current.focus()}),[N]),t.useEffect((function(){if(f)return Xf;return N&&window.addEventListener("scroll",I),function(){return window.removeEventListener("scroll",I)}}),[N,f]);var F=i.default.createElement(Fb,{onClick:R,ref:D},"Close"),L=i.default.createElement(Lb,{"aria-label":"Close",hasTitle:x,onClick:R,ref:D});return i.default.createElement(jb,null,i.default.createElement(pb,Qa({name:r,trigger:l({ref:C,toggleShow:R,isOpen:N}),position:c,arrowSize:u,transitionIn:N,hasTitle:x,disableFlipping:h,popperRef:function(e){E.current=e},enableEvents:m,strategy:g,keepTogether:v},w),i.default.createElement(Tb,{onRootClose:function(e){N&&("click"!==e.type&&C.current.focus(),A(!1))},disabled:p,className:y},i.default.createElement("div",{role:"dialog",ref:O},i.default.createElement(Nb,{hasTitle:x,styleType:b},x&&i.default.createElement(Ab,null,n),d&&L,i.default.createElement(zb,{tabIndex:-1,ref:T,"aria-label":"Press escape to close the Popover"})),i.default.createElement(Rb,{hasAltCloseWithNoTitle:k},i.default.createElement(Ib,{showCloseButton:_},a?a({toggleShow:R}):o),_&&F)))))}Ub.defaultProps={placement:"bottom",arrowSize:"default",disableRootClose:!1,hasCloseButton:!1,hasAltCloseButton:!1,disableFlipping:!1,disableCloseOnScroll:!1,title:void 0,enableEvents:!0,strategy:"absolute",keepTogether:!0,styleType:"primary",popoverWrapperClassName:"popover--active"};var Bb=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},Hb="object"==typeof s&&s&&s.Object===Object&&s,Yb="object"==typeof self&&self&&self.Object===Object&&self,Wb=Hb||Yb||Function("return this")(),qb=function(){return Wb.Date.now()},Vb=/\s/;var Kb=function(e){for(var t=e.length;t--&&Vb.test(e.charAt(t)););return t},$b=/^\s+/;var Gb=function(e){return e?e.slice(0,Kb(e)+1).replace($b,""):e},Qb=Wb.Symbol,Xb=Object.prototype,Jb=Xb.hasOwnProperty,Zb=Xb.toString,ew=Qb?Qb.toStringTag:void 0;var tw=function(e){var t=Jb.call(e,ew),r=e[ew];try{e[ew]=void 0;var n=!0}catch(e){}var o=Zb.call(e);return n&&(t?e[ew]=r:delete e[ew]),o},rw=Object.prototype.toString;var nw=function(e){return rw.call(e)},ow=Qb?Qb.toStringTag:void 0;var aw=function(e){if(null==e)return void 0===e?"[object Undefined]":"[object Null]";return ow&&ow in Object(e)?tw(e):nw(e)};var iw=function(e){return null!=e&&"object"==typeof e};var cw=function(e){return"symbol"==typeof e||iw(e)&&"[object Symbol]"==aw(e)},uw=/^[-+]0x[0-9a-f]+$/i,lw=/^0b[01]+$/i,sw=/^0o[0-7]+$/i,dw=parseInt;var fw=function(e){if("number"==typeof e)return e;if(cw(e))return NaN;if(Bb(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Bb(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Gb(e);var r=lw.test(e);return r||sw.test(e)?dw(e.slice(2),r?2:8):uw.test(e)?NaN:+e},pw=Math.max,hw=Math.min;var mw=function(e,t,r){var n,o,a,i,c,u,l=0,s=!1,d=!1,f=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var r=n,a=o;return n=o=void 0,l=t,i=e.apply(a,r)}function h(e){return l=e,c=setTimeout(v,t),s?p(e):i}function m(e){var r=e-u;return void 0===u||r>=t||r<0||d&&e-l>=a}function v(){var e=qb();if(m(e))return g(e);c=setTimeout(v,function(e){var r=t-(e-u);return d?hw(r,a-(e-l)):r}(e))}function g(e){if(c=void 0,f&&n)return p(e);return n=o=void 0,i}function y(){var e=qb(),r=m(e);if(n=arguments,o=this,u=e,r){if(void 0===c)return h(u);if(d)return clearTimeout(c),c=setTimeout(v,t),p(u)}return void 0===c&&(c=setTimeout(v,t)),i}return t=fw(t)||0,Bb(r)&&(s=!!r.leading,a=(d="maxWait"in r)?pw(fw(r.maxWait)||0,t):a,f="trailing"in r?!!r.trailing:f),y.cancel=function(){void 0!==c&&clearTimeout(c),l=0,n=u=o=c=void 0},y.flush=function(){return void 0===c?i:g(qb())},y},vw=f((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){var r=[].slice.call(t.querySelectorAll("*"),0).reduce((function(t,r){return t.concat(r.shadowRoot?e(r.shadowRoot):[r])}),[]);return r.filter(a)};
|
|
13
|
+
!function(){var t={}.hasOwnProperty;function r(){for(var e=[],n=0;n<arguments.length;n++){var o=arguments[n];if(!o)continue;var a=typeof o;if("string"===a||"number"===a)e.push(o);else if(Array.isArray(o)){if(o.length){var i=r.apply(null,o);i&&e.push(i)}}else if("object"===a)if(o.toString===Object.prototype.toString)for(var c in o)t.call(o,c)&&o[c]&&e.push(c);else e.push(o.toString())}return e.join(" ")}e.exports?(r.default=r,e.exports=r):window.classNames=r}()})),wh=f((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),a=l(i.default),c=l(yh),u=l(bh);function l(e){return e&&e.__esModule?e:{default:e}}function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var d={animating:"rah-animating",animatingUp:"rah-animating--up",animatingDown:"rah-animating--down",animatingToHeightZero:"rah-animating--to-height-zero",animatingToHeightAuto:"rah-animating--to-height-auto",animatingToHeightSpecific:"rah-animating--to-height-specific",static:"rah-static",staticHeightZero:"rah-static--height-zero",staticHeightAuto:"rah-static--height-auto",staticHeightSpecific:"rah-static--height-specific"},f=["animateOpacity","animationStateClasses","applyInlineTransitions","children","contentClassName","delay","duration","easing","height","onAnimationEnd","onAnimationStart"];function p(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];if(!r.length)return e;for(var o={},a=Object.keys(e),i=0;i<a.length;i++){var c=a[i];-1===r.indexOf(c)&&(o[c]=e[c])}return o}function h(e){e.forEach((function(e){return cancelAnimationFrame(e)}))}function m(e){return!isNaN(parseFloat(e))&&isFinite(e)}function v(e){return"string"==typeof e&&e.search("%")===e.length-1&&m(e.substr(0,e.length-1))}function g(e,t){e&&"function"==typeof e&&e(t)}var y=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));r.animationFrameIDs=[];var o="auto",a="visible";m(e.height)?(o=e.height<0||"0"===e.height?0:e.height,a="hidden"):v(e.height)&&(o="0%"===e.height?0:e.height,a="hidden"),r.animationStateClasses=n({},d,e.animationStateClasses);var i=r.getStaticStateClasses(o);return"undefined"!=typeof window&&window.matchMedia&&(r.prefersReducedMotion=window.matchMedia("(prefers-reduced-motion)").matches),r.state={animationStateClasses:i,height:o,overflow:a,shouldUseTransitions:!1},r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"componentDidMount",value:function(){var e=this.state.height;this.contentElement&&this.contentElement.style&&this.hideContent(e)}},{key:"componentDidUpdate",value:function(e,t){var r,n,o=this,a=this.props,i=a.height,c=a.onAnimationEnd,l=a.onAnimationStart,d=this.getTimings(),f=d.duration,p=d.delay;if(this.contentElement&&i!==e.height){var y;this.showContent(t.height),this.contentElement.style.overflow="hidden";var b=this.contentElement.offsetHeight;this.contentElement.style.overflow="";var w=f+p,x=null,k={height:null,overflow:"hidden"},_="auto"===t.height;m(i)?(x=i<0||"0"===i?0:i,k.height=x):v(i)?(x="0%"===i?0:i,k.height=x):(x=b,k.height="auto",k.overflow=null),_&&(k.height=x,x=b);var S=(0,u.default)((s(y={},this.animationStateClasses.animating,!0),s(y,this.animationStateClasses.animatingUp,"auto"===e.height||i<e.height),s(y,this.animationStateClasses.animatingDown,"auto"===i||i>e.height),s(y,this.animationStateClasses.animatingToHeightZero,0===k.height),s(y,this.animationStateClasses.animatingToHeightAuto,"auto"===k.height),s(y,this.animationStateClasses.animatingToHeightSpecific,k.height>0),y)),C=this.getStaticStateClasses(k.height);this.setState({animationStateClasses:S,height:x,overflow:"hidden",shouldUseTransitions:!_}),clearTimeout(this.timeoutID),clearTimeout(this.animationClassesTimeoutID),_?(k.shouldUseTransitions=!0,h(this.animationFrameIDs),this.animationFrameIDs=(r=function(){o.setState(k),g(l,{newHeight:k.height})},(n=[])[0]=requestAnimationFrame((function(){n[1]=requestAnimationFrame((function(){r()}))})),n),this.animationClassesTimeoutID=setTimeout((function(){o.setState({animationStateClasses:C,shouldUseTransitions:!1}),o.hideContent(k.height),g(c,{newHeight:k.height})}),w)):(g(l,{newHeight:x}),this.timeoutID=setTimeout((function(){k.animationStateClasses=C,k.shouldUseTransitions=!1,o.setState(k),"auto"!==i&&o.hideContent(x),g(c,{newHeight:x})}),w))}}},{key:"componentWillUnmount",value:function(){h(this.animationFrameIDs),clearTimeout(this.timeoutID),clearTimeout(this.animationClassesTimeoutID),this.timeoutID=null}},{key:"getTimings",value:function(){if(this.prefersReducedMotion)return{delay:0,duration:0};var e=this.props;return{delay:e.delay,duration:e.duration}}},{key:"showContent",value:function(e){0===e&&(this.contentElement.style.display="")}},{key:"hideContent",value:function(e){0===e&&(this.contentElement.style.display="none")}},{key:"getStaticStateClasses",value:function(e){var t;return(0,u.default)((s(t={},this.animationStateClasses.static,!0),s(t,this.animationStateClasses.staticHeightZero,0===e),s(t,this.animationStateClasses.staticHeightSpecific,e>0),s(t,this.animationStateClasses.staticHeightAuto,"auto"===e),t))}},{key:"render",value:function(){var e,t=this,r=this.props,o=r.animateOpacity,i=r.applyInlineTransitions,c=r.children,l=r.className,d=r.contentClassName,h=r.easing,m=r.id,v=r.style,g=this.state,y=g.height,b=g.overflow,w=g.animationStateClasses,x=g.shouldUseTransitions,k=this.getTimings(),_=k.duration,S=k.delay,C=n({},v,{height:y,overflow:b||v.overflow});x&&i&&(C.transition="height "+_+"ms "+h+" "+S+"ms",v.transition&&(C.transition=v.transition+", "+C.transition),C.WebkitTransition=C.transition);var E={};o&&(E.transition="opacity "+_+"ms "+h+" "+S+"ms",E.WebkitTransition=E.transition,0===y&&(E.opacity=0));var O=(0,u.default)((s(e={},w,!0),s(e,l,l),e)),T="undefined"!=typeof this.props["aria-hidden"]?this.props["aria-hidden"]:0===y;return a.default.createElement("div",n({},p.apply(void 0,[this.props].concat(f)),{"aria-hidden":T,className:O,id:m,style:C}),a.default.createElement("div",{className:d,style:E,ref:function(e){return t.contentElement=e}},c))}}]),t}(a.default.Component);y.propTypes={"aria-hidden":c.default.bool,animateOpacity:c.default.bool,animationStateClasses:c.default.object,applyInlineTransitions:c.default.bool,children:c.default.any.isRequired,className:c.default.string,contentClassName:c.default.string,delay:c.default.number,duration:c.default.number,easing:c.default.string,height:function(e,t,n){var o=e[t];if("number"==typeof o&&o>=0||v(o)||"auto"===o)return null;return new TypeError('value "'+o+'" of type "'+("undefined"==typeof o?"undefined":r(o))+'" is invalid type for '+t+" in "+n+'. It needs to be a positive number, string "auto" or percentage string (e.g. "15%").')},id:c.default.string,onAnimationEnd:c.default.func,onAnimationStart:c.default.func,style:c.default.object},y.defaultProps={animateOpacity:!1,animationStateClasses:d,applyInlineTransitions:!0,duration:250,delay:0,easing:"ease",style:{}},t.default=y})),xh=d(wh);function kh(){for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",t="",r=0;r<6;r++)t+=e.charAt(Math.floor(Math.random()*e.length));return t}function _h(e){return t.useRef(e||kh()).current}var Sh=["id","panelKey","open","onChange"];function Ch(e,t){var r=ln(e);if(xa){var n=xa(e);t&&(n=Pa(n).call(n,(function(t){return Aa(e,t).enumerable}))),r.push.apply(r,n)}return r}function Eh(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ch(Object(r),!0).forEach((function(t){Ha(e,t,r[t])})):Fa?Object.defineProperties(e,Fa(r)):Ch(Object(r)).forEach((function(t){Object.defineProperty(e,t,Aa(r,t))}))}return e}var Oh=function(){},Th=t.createContext({open:!1,itemId:void 0,toggleOpen:function(){}}),Dh=function(){return t.useContext(Th)},Ph=function(e){var r=e.id,n=e.panelKey,o=e.open,a=e.onChange,c=li(e,Sh),u=t.useContext(Vp),l=u.activeKeys,s=u.toggleActiveKey,d=u.setActiveKey,f=u.unsetActiveKey,p=_h(r),h=_h(n),m=t.useCallback((function(){return s(h)}),[h,s]),v=t.useRef(a);v.current=a;var g=t.useRef(!1),y=t.useState(Lp(l).call(l,h)),b=yu(y,2),w=b[0],x=b[1],k=t.useState({open:w,itemKey:h,toggleOpen:m}),_=yu(k,2),S=_[0],C=_[1];return t.useEffect((function(){var e=Lp(l).call(l,h);x(e)}),[l]),t.useEffect((function(){if("undefined"==typeof o)return;(o?d:f)(h)}),[o]),t.useEffect((function(){if(!g.current)return;(v.current||Oh)(w)}),[w]),t.useEffect((function(){C({open:w,itemId:p,toggleOpen:m})}),[w,p,m]),t.useEffect((function(){g.current=!0}),[]),i.default.createElement(Th.Provider,Qa({},c,{value:S}))};Ph.defaultProps={open:void 0,id:void 0,panelKey:void 0};var Mh=function(e){var t=Dh(),r=t.open,n=t.itemId,o=r?"auto":0;return i.default.createElement(xh,Qa({height:o,duration:300,id:"".concat(n,"-region"),role:"region"},e))},jh=function(e){var r=e.children;try{var n,o=i.default.Children.only(r),a=(null==o||null===(n=o.props)||void 0===n?void 0:n.onClick)||Oh,c=t.useContext(Th),u=c.open,l=c.toggleOpen,s=c.itemId,d=t.useCallback((function(e){a(e),l()}),[l,a]);return i.default.cloneElement(o,Eh(Eh({},o.props),{},{onClick:d,"aria-expanded":u,"aria-controls":"".concat(s,"-region")}))}catch(e){return console.error("Drawer.ItemOpener could not set onClick. Please ensure it has only one root child component."),r}},Nh=Zd.onFreeze,Ah=Object.freeze,Rh=Xe((function(){Ah(1)}));Yr({target:"Object",stat:!0,forced:Rh,sham:!Jd},{freeze:function(e){return Ah&&Ct(e)?Ah(Nh(e)):e}});var Ih=Et.Object.freeze,Fh=wn.f;Yr({target:"Object",stat:!0,forced:Object.defineProperties!==Fh,sham:!lt},{defineProperties:Fh});var Lh=f((function(e){var t=Et.Object,r=e.exports=function(e,r){return t.defineProperties(e,r)};t.defineProperties.sham&&(r.sham=!0)})),zh=Lh,Uh=d(f((function(e){e.exports=function(e,t){return t||(t=Zc(e).call(e,0)),Ih(zh(e,{raw:{value:Ih(t)}}))},e.exports.__esModule=!0,e.exports.default=e.exports}))),Bh=["size","level"],Hh=["level"];function Yh(e,t){var r=ln(e);if(xa){var n=xa(e);t&&(n=Pa(n).call(n,(function(t){return Aa(e,t).enumerable}))),r.push.apply(r,n)}return r}function Wh(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Yh(Object(r),!0).forEach((function(t){Ha(e,t,r[t])})):Fa?Object.defineProperties(e,Fa(r)):Yh(Object(r)).forEach((function(t){Object.defineProperty(e,t,Aa(r,t))}))}return e}var qh=n.css(["background-color:",";color:white;padding:20px 15px;"],(function(e){return e.theme.colors.primary})),Vh=function(e){return function(t){var r=t.size,n=t.level,o=void 0===n?1:n,a=li(t,Bh);return e(Wh(Wh({},a),{},{size:r,level:o,adjustedSize:r||o}))}},Kh=l.default.h1([""]),$h=l.default((function(e){var t=e.level,r=void 0===t?1:t,n=li(e,Hh);return i.default.createElement(Kh,Qa({as:"h".concat(r)},n))}))(["border-bottom:",";color:inherit;font-family:'Source Sans Pro','Segoe UI',Segoe,Calibri,Tahoma,sans-serif;font-size:",";font-weight:300;line-height:1.1;margin-bottom:0.45em;margin-top:0;padding-bottom:",";&&{","}small{font-size:",";line-height:1;}@media (min-width:","){font-size:",";}"],(function(e){return e.underlineColor&&"2px solid ".concat(e.underlineColor,";")}),Vh((function(e){var t=e.theme,r=e.adjustedSize;return t.font.headingMobile[r]})),(function(e){return e.underlineColor&&"0.22em"}),(function(e){return e.isKnockoutStyle&&qh}),Vh((function(e){return e.adjustedSize>3?"75%":"65%"})),(function(e){return e.theme.screenSize.tablet}),Vh((function(e){var t=e.adjustedSize;return e.theme.font.headingDesktop[t]})));$h.propTypes={children:yh.node,level:yh.oneOf([1,2,3,4,5,6]).isRequired,size:yh.oneOf([1,2,3,4,5,6]),isKnockoutStyle:yh.bool,underlineColor:yh.string},$h.defaultProps={children:void 0,size:void 0,isKnockoutStyle:!1,underlineColor:null};var Gh,Qh,Xh,Jh=$h,Zh=l.default($h).attrs({isKnockoutStyle:!0,level:1})([""]),em=["openedIconName","closedIconName"],tm=["children","noPadding","title","titleAside","headingLevel","panelKey","open","openedIconName","closedIconName"],rm=l.default.div(["border-bottom:1px solid ",";"],(function(e){return e.theme.colors.gray3})),nm=l.default.button(["background:none;border:0;color:",";cursor:pointer;display:flex;font-size:18px;justify-content:space-between;padding:10px 15px;width:100%;@media (hover:hover),(-ms-high-contrast:none){&:hover{background-color:",";color:",";}}"],(function(e){return e.theme.colors.primary}),(function(e){return e.theme.colors.gray2}),(function(e){return e.theme.brandColors.brandPrimary1})),om=l.default((function(e){var t=e.openedIconName,r=e.closedIconName,n=li(e,em),o=Dh().open;return i.default.createElement(Vf,Qa({name:o?t:r},n))}))(["margin-right:0.4em;position:relative;top:-2px;"]),am=(Qh=n.css(["background-color:",";color:",";> div{border-bottom:4px solid ",";padding:",";}"],(function(e){return e.theme.colors.white}),(function(e){return e.theme.colors.gray9}),(function(e){return e.theme.colors.gray3}),(function(e){return e.noPadding?"0":"10px 10px 10px 40px"})),(Xh=l.default(Mh)).withConfig=Xh.withConfig||function(){return Xh},Xh.withConfig({shouldForwardProp:function(e){return!["noPadding","panelKey"].some((function(t){return e===t}))}})(Gh||(Gh=Uh(["\n ","\n "])),Qh)),im=i.default.forwardRef((function(e,r){var n=e.children,o=e.noPadding,a=e.title,c=e.titleAside,u=e.headingLevel,l=e.panelKey,s=e.open,d=e.openedIconName,f=e.closedIconName,p=li(e,tm),h=t.useRef();t.useImperativeHandle(r,(function(){return{focusHeaderButton:function(){return h.current.focus()}}}));var m=_h(p.id),v="".concat(m,"-heading"),g={id:m,panelKey:l,open:s};return i.default.createElement(Ph,g,i.default.createElement(rm,p,i.default.createElement("div",{id:v,role:"heading","aria-level":u},i.default.createElement(jh,null,i.default.createElement(nm,{ref:h},i.default.createElement("span",null,i.default.createElement(om,{closedIconName:f,openedIconName:d}),a),c&&i.default.createElement("aside",null,c)))),i.default.createElement(am,{"aria-labelledby":v,noPadding:o},n)))}));im.defaultProps={noPadding:!1,titleAside:void 0,headingLevel:2,panelKey:void 0,open:void 0,closedIconName:"add",openedIconName:"minus"};var cm=im,um=["activeKeys","children","closedIconName","isAccordion","onActiveKeysChanged","openedIconName","useDefaultStyles"];function lm(e,t){var r=ln(e);if(xa){var n=xa(e);t&&(n=Pa(n).call(n,(function(t){return Aa(e,t).enumerable}))),r.push.apply(r,n)}return r}function sm(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?lm(Object(r),!0).forEach((function(t){Ha(e,t,r[t])})):Fa?Object.defineProperties(e,Fa(r)):lm(Object(r)).forEach((function(t){Object.defineProperty(e,t,Aa(r,t))}))}return e}var dm=l.default.div(["background-color:",";border-top:1px solid ",";box-shadow:0 1px 1px ",";margin-bottom:25px;"],(function(e){return e.theme.colors.white}),(function(e){return e.theme.colors.gray3}),(function(e){return e.theme.colors.boxShadowLight})),fm=l.default.div([""]),pm=function(e,t){return(null==e?void 0:e.length)===(null==t?void 0:t.length)&&(null==e?void 0:e.every((function(e){return null==t?void 0:Lp(t).call(t,e)})))},hm=function(e,t){var r;if(null!=t&&Lp(t).call(t,e))return t;return Cp(new zp(id(r=[e]).call(r,Cp(t))))},mm=function(e,t){if(null==t||!Lp(t).call(t,e))return t;var r=null==t?void 0:Pa(t).call(t,(function(t){return t!==e}));return r};function vm(e){var r,n=e.activeKeys,o=e.children,a=e.closedIconName,c=e.isAccordion,u=e.onActiveKeysChanged,l=e.openedIconName,s=e.useDefaultStyles,d=li(e,um),f=t.useRef(u);f.current=u;var p=t.useRef(n);p.current=n;var h=t.useState(n||[]),m=yu(h,2),v=m[0],g=m[1],y=t.useCallback((function(e){return g((function(t){var r=e(t),n=r.length&&c?[r[0]]:r;return pm(t,n)?t:n}))}),[c]),b=t.useRef(y);b.current=y;var w=t.useCallback((function(e){return b.current((function(t){return hm(e,t)}))}),[]),x=t.useCallback((function(e){return b.current((function(t){return mm(e,t)}))}),[]),k=t.useCallback((function(e){b.current((function(t){return(Lp(t).call(t,e)?mm:hm)(e,t)}))}),[]),_=t.useState({activeKeys:v,setActiveKey:w,unsetActiveKey:x,toggleActiveKey:k}),S=yu(_,2),C=S[0],E=S[1];t.useEffect((function(){if(pm(v,p.current))return;f.current(v)}),[v]),t.useEffect((function(){if(!n)return;b.current((function(e){return pm(e,n)?e:n}))}),[n]),t.useEffect((function(){E({activeKeys:v,setActiveKey:w,unsetActiveKey:x,toggleActiveKey:k})}),[v,w,x,k]);var O=s?dm:fm;return i.default.createElement(Vp.Provider,{value:C},i.default.createElement(O,d,qp(r=i.default.Children).call(r,o,(function(e,t){if(!e)return e;if(!(e.type===cm||e.type.target===cm))return e;var r=e.key,n="".concat(t+1),o=r||n;return i.default.cloneElement(e,sm(sm({},e.props),{},{openedIconName:l,closedIconName:a,panelKey:o}))}))))}vm.defaultProps={activeKeys:void 0,isAccordion:!1,closedIconName:"add",openedIconName:"minus",children:void 0,useDefaultStyles:!0,onActiveKeysChanged:function(){}},vm.Panel=cm,vm.Item=Ph,vm.ItemOpener=jh,vm.ItemBody=Mh;var gm=i.default.createContext("stacked"),ym=["legendContent","children"],bm=l.default.div(["display:flex;flex-wrap:wrap;flex-direction:column;margin-bottom:25px;width:100%;> *:last-child{margin-bottom:0;}",";"],(function(e){return"inline"===e.orientation&&n.css(["@media (min-width:","){align-items:baseline;flex-direction:row;}"],e.theme.screenSize.tablet)})),wm=l.default.div(["color:",";flex:0 0 auto;font-size:21.6px;line-height:",";margin:0 0 10px 0;width:100%;"],(function(e){return e.theme.colors.black}),(function(e){return e.theme.font.baseLineHeight}));function xm(e){var t=e.legendContent,r=e.children,n=li(e,ym),o=t?kh():void 0,a=i.default.useContext(gm);return i.default.createElement(bm,Qa({role:"group","aria-labelledby":o,orientation:a},n),t&&i.default.createElement(wm,{id:o},t),r)}xm.defaultProps={legendContent:null,children:void 0},xm.Legend=wm;var km=c.createContext(),_m=c.createContext();function Sm(e){var t=e.children,r=c.useState(null),n=r[0],o=r[1],a=c.useRef(!1);c.useEffect((function(){return function(){a.current=!0}}),[]);var i=c.useCallback((function(e){a.current||o(e)}),[]);return c.createElement(km.Provider,{value:n},c.createElement(_m.Provider,{value:i},t))}var Cm=function(e){return Array.isArray(e)?e[0]:e},Em=function(e){if("function"==typeof e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return e.apply(void 0,r)}},Om=function(e,t){if("function"==typeof e)return Em(e,t);null!=e&&(e.current=t)},Tm=function(e){return e.reduce((function(e,t){var r=t[0],n=t[1];return e[r]=n,e}),{})},Dm="undefined"!=typeof window&&window.document&&window.document.createElement?c.useLayoutEffect:c.useEffect,Pm="top",Mm="bottom",jm="right",Nm="left",Am="auto",Rm=[Pm,Mm,jm,Nm],Im="start",Fm="end",Lm="viewport",zm="popper",Um=Rm.reduce((function(e,t){return e.concat([t+"-"+Im,t+"-"+Fm])}),[]),Bm=[].concat(Rm,[Am]).reduce((function(e,t){return e.concat([t,t+"-"+Im,t+"-"+Fm])}),[]),Hm=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Ym(e){return e?(e.nodeName||"").toLowerCase():null}function Wm(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function qm(e){return e instanceof Wm(e).Element||e instanceof Element}function Vm(e){return e instanceof Wm(e).HTMLElement||e instanceof HTMLElement}function Km(e){if("undefined"==typeof ShadowRoot)return!1;return e instanceof Wm(e).ShadowRoot||e instanceof ShadowRoot}var $m={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var r=t.styles[e]||{},n=t.attributes[e]||{},o=t.elements[e];if(!Vm(o)||!Ym(o))return;Object.assign(o.style,r),Object.keys(n).forEach((function(e){var t=n[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)}))}))},effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach((function(e){var n=t.elements[e],o=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:r[e]).reduce((function(e,t){return e[t]="",e}),{});if(!Vm(n)||!Ym(n))return;Object.assign(n.style,a),Object.keys(o).forEach((function(e){n.removeAttribute(e)}))}))}},requires:["computeStyles"]};function Gm(e){return e.split("-")[0]}function Qm(e,t){var r=e.getBoundingClientRect();return{width:r.width/1,height:r.height/1,top:r.top/1,right:r.right/1,bottom:r.bottom/1,left:r.left/1,x:r.left/1,y:r.top/1}}function Xm(e){var t=Qm(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function Jm(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Km(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Zm(e){return Wm(e).getComputedStyle(e)}function ev(e){return["table","td","th"].indexOf(Ym(e))>=0}function tv(e){return((qm(e)?e.ownerDocument:e.document)||window.document).documentElement}function rv(e){if("html"===Ym(e))return e;return e.assignedSlot||e.parentNode||(Km(e)?e.host:null)||tv(e)}function nv(e){if(!Vm(e)||"fixed"===Zm(e).position)return null;return e.offsetParent}function ov(e){for(var t=Wm(e),r=nv(e);r&&ev(r)&&"static"===Zm(r).position;)r=nv(r);if(r&&("html"===Ym(r)||"body"===Ym(r)&&"static"===Zm(r).position))return t;return r||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&Vm(e)&&"fixed"===Zm(e).position)return null;for(var r=rv(e);Vm(r)&&["html","body"].indexOf(Ym(r))<0;){var n=Zm(r);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return r;r=r.parentNode}return null}(e)||t}function av(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}var iv=Math.max,cv=Math.min,uv=Math.round;function lv(e,t,r){return iv(e,cv(t,r))}function sv(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function dv(e,t){return t.reduce((function(t,r){return t[r]=e,t}),{})}var fv={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,r=e.state,n=e.name,o=e.options,a=r.elements.arrow,i=r.modifiersData.popperOffsets,c=Gm(r.placement),u=av(c),l=[Nm,jm].indexOf(c)>=0?"height":"width";if(!a||!i)return;var s=function(e,t){return sv("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:dv(e,Rm))}(o.padding,r),d=Xm(a),f="y"===u?Pm:Nm,p="y"===u?Mm:jm,h=r.rects.reference[l]+r.rects.reference[u]-i[u]-r.rects.popper[l],m=i[u]-r.rects.reference[u],v=ov(a),g=v?"y"===u?v.clientHeight||0:v.clientWidth||0:0,y=h/2-m/2,b=s[f],w=g-d[l]-s[p],x=g/2-d[l]/2+y,k=lv(b,x,w),_=u;r.modifiersData[n]=((t={})[_]=k,t.centerOffset=k-x,t)},effect:function(e){var t=e.state,r=e.options.element,n=void 0===r?"[data-popper-arrow]":r;if(null==n)return;if("string"==typeof n&&!(n=t.elements.popper.querySelector(n)))return;if(!Jm(t.elements.popper,n))return;t.elements.arrow=n},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function pv(e){return e.split("-")[1]}var hv={top:"auto",right:"auto",bottom:"auto",left:"auto"};function mv(e){var t,r=e.popper,n=e.popperRect,o=e.placement,a=e.variation,i=e.offsets,c=e.position,u=e.gpuAcceleration,l=e.adaptive,s=e.roundOffsets,d=!0===s?function(e){var t=e.x,r=e.y,n=window.devicePixelRatio||1;return{x:uv(uv(t*n)/n)||0,y:uv(uv(r*n)/n)||0}}(i):"function"==typeof s?s(i):i,f=d.x,p=void 0===f?0:f,h=d.y,m=void 0===h?0:h,v=i.hasOwnProperty("x"),g=i.hasOwnProperty("y"),y=Nm,b=Pm,w=window;if(l){var x=ov(r),k="clientHeight",_="clientWidth";x===Wm(r)&&"static"!==Zm(x=tv(r)).position&&"absolute"===c&&(k="scrollHeight",_="scrollWidth"),x=x,o!==Pm&&(o!==Nm&&o!==jm||a!==Fm)||(b=Mm,m-=x[k]-n.height,m*=u?1:-1),o!==Nm&&(o!==Pm&&o!==Mm||a!==Fm)||(y=jm,p-=x[_]-n.width,p*=u?1:-1)}var S,C=Object.assign({position:c},l&&hv);if(u)return Object.assign({},C,((S={})[b]=g?"0":"",S[y]=v?"0":"",S.transform=(w.devicePixelRatio||1)<=1?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",S));return Object.assign({},C,((t={})[b]=g?m+"px":"",t[y]=v?p+"px":"",t.transform="",t))}var vv={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=void 0===n||n,a=r.adaptive,i=void 0===a||a,c=r.roundOffsets,u=void 0===c||c,l={placement:Gm(t.placement),variation:pv(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,mv(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:u})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,mv(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},gv={passive:!0};var yv={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,a=void 0===o||o,i=n.resize,c=void 0===i||i,u=Wm(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&l.forEach((function(e){e.addEventListener("scroll",r.update,gv)})),c&&u.addEventListener("resize",r.update,gv),function(){a&&l.forEach((function(e){e.removeEventListener("scroll",r.update,gv)})),c&&u.removeEventListener("resize",r.update,gv)}},data:{}},bv={left:"right",right:"left",bottom:"top",top:"bottom"};function wv(e){return e.replace(/left|right|bottom|top/g,(function(e){return bv[e]}))}var xv={start:"end",end:"start"};function kv(e){return e.replace(/start|end/g,(function(e){return xv[e]}))}function _v(e){var t=Wm(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Sv(e){return Qm(tv(e)).left+_v(e).scrollLeft}function Cv(e){var t=Zm(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function Ev(e){if(["html","body","#document"].indexOf(Ym(e))>=0)return e.ownerDocument.body;if(Vm(e)&&Cv(e))return e;return Ev(rv(e))}function Ov(e,t){var r;void 0===t&&(t=[]);var n=Ev(e),o=n===(null==(r=e.ownerDocument)?void 0:r.body),a=Wm(n),i=o?[a].concat(a.visualViewport||[],Cv(n)?n:[]):n,c=t.concat(i);return o?c:c.concat(Ov(rv(i)))}function Tv(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Dv(e,t){return t===Lm?Tv(function(e){var t=Wm(e),r=tv(e),n=t.visualViewport,o=r.clientWidth,a=r.clientHeight,i=0,c=0;return n&&(o=n.width,a=n.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(i=n.offsetLeft,c=n.offsetTop)),{width:o,height:a,x:i+Sv(e),y:c}}(e)):Vm(t)?function(e){var t=Qm(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):Tv(function(e){var t,r=tv(e),n=_v(e),o=null==(t=e.ownerDocument)?void 0:t.body,a=iv(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=iv(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),c=-n.scrollLeft+Sv(e),u=-n.scrollTop;return"rtl"===Zm(o||r).direction&&(c+=iv(r.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:c,y:u}}(tv(e)))}function Pv(e,t,r){var n="clippingParents"===t?function(e){var t=Ov(rv(e)),r=["absolute","fixed"].indexOf(Zm(e).position)>=0&&Vm(e)?ov(e):e;if(!qm(r))return[];return t.filter((function(e){return qm(e)&&Jm(e,r)&&"body"!==Ym(e)}))}(e):[].concat(t),o=[].concat(n,[r]),a=o[0],i=o.reduce((function(t,r){var n=Dv(e,r);return t.top=iv(n.top,t.top),t.right=cv(n.right,t.right),t.bottom=cv(n.bottom,t.bottom),t.left=iv(n.left,t.left),t}),Dv(e,a));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}function Mv(e){var t,r=e.reference,n=e.element,o=e.placement,a=o?Gm(o):null,i=o?pv(o):null,c=r.x+r.width/2-n.width/2,u=r.y+r.height/2-n.height/2;switch(a){case Pm:t={x:c,y:r.y-n.height};break;case Mm:t={x:c,y:r.y+r.height};break;case jm:t={x:r.x+r.width,y:u};break;case Nm:t={x:r.x-n.width,y:u};break;default:t={x:r.x,y:r.y}}var l=a?av(a):null;if(null!=l){var s="y"===l?"height":"width";switch(i){case Im:t[l]=t[l]-(r[s]/2-n[s]/2);break;case Fm:t[l]=t[l]+(r[s]/2-n[s]/2)}}return t}function jv(e,t){void 0===t&&(t={});var r=t,n=r.placement,o=void 0===n?e.placement:n,a=r.boundary,i=void 0===a?"clippingParents":a,c=r.rootBoundary,u=void 0===c?Lm:c,l=r.elementContext,s=void 0===l?zm:l,d=r.altBoundary,f=void 0!==d&&d,p=r.padding,h=void 0===p?0:p,m=sv("number"!=typeof h?h:dv(h,Rm)),v=s===zm?"reference":zm,g=e.rects.popper,y=e.elements[f?v:s],b=Pv(qm(y)?y:y.contextElement||tv(e.elements.popper),i,u),w=Qm(e.elements.reference),x=Mv({reference:w,element:g,strategy:"absolute",placement:o}),k=Tv(Object.assign({},g,x)),_=s===zm?k:w,S={top:b.top-_.top+m.top,bottom:_.bottom-b.bottom+m.bottom,left:b.left-_.left+m.left,right:_.right-b.right+m.right},C=e.modifiersData.offset;if(s===zm&&C){var E=C[o];Object.keys(S).forEach((function(e){var t=[jm,Mm].indexOf(e)>=0?1:-1,r=[Pm,Mm].indexOf(e)>=0?"y":"x";S[e]+=E[r]*t}))}return S}var Nv={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name;if(t.modifiersData[n]._skip)return;for(var o=r.mainAxis,a=void 0===o||o,i=r.altAxis,c=void 0===i||i,u=r.fallbackPlacements,l=r.padding,s=r.boundary,d=r.rootBoundary,f=r.altBoundary,p=r.flipVariations,h=void 0===p||p,m=r.allowedAutoPlacements,v=t.options.placement,g=Gm(v),y=u||(g===v||!h?[wv(v)]:function(e){if(Gm(e)===Am)return[];var t=wv(e);return[kv(e),t,kv(t)]}(v)),b=[v].concat(y).reduce((function(e,r){return e.concat(Gm(r)===Am?function(e,t){void 0===t&&(t={});var r=t,n=r.placement,o=r.boundary,a=r.rootBoundary,i=r.padding,c=r.flipVariations,u=r.allowedAutoPlacements,l=void 0===u?Bm:u,s=pv(n),d=s?c?Um:Um.filter((function(e){return pv(e)===s})):Rm,f=d.filter((function(e){return l.indexOf(e)>=0}));0===f.length&&(f=d);var p=f.reduce((function(t,r){return t[r]=jv(e,{placement:r,boundary:o,rootBoundary:a,padding:i})[Gm(r)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:r,boundary:s,rootBoundary:d,padding:l,flipVariations:h,allowedAutoPlacements:m}):r)}),[]),w=t.rects.reference,x=t.rects.popper,k=new Map,_=!0,S=b[0],C=0;C<b.length;C++){var E=b[C],O=Gm(E),T=pv(E)===Im,D=[Pm,Mm].indexOf(O)>=0,P=D?"width":"height",M=jv(t,{placement:E,boundary:s,rootBoundary:d,altBoundary:f,padding:l}),j=D?T?jm:Nm:T?Mm:Pm;w[P]>x[P]&&(j=wv(j));var N=wv(j),A=[];if(a&&A.push(M[O]<=0),c&&A.push(M[j]<=0,M[N]<=0),A.every((function(e){return e}))){S=E,_=!1;break}k.set(E,A)}if(_)for(var R=function(e){var t=b.find((function(t){var r=k.get(t);if(r)return r.slice(0,e).every((function(e){return e}))}));if(t)return S=t,"break"},I=h?3:1;I>0;I--){if("break"===R(I))break}t.placement!==S&&(t.modifiersData[n]._skip=!0,t.placement=S,t.reset=!0)},requiresIfExists:["offset"],data:{_skip:!1}};function Av(e,t,r){return void 0===r&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function Rv(e){return[Pm,jm,Mm,Nm].some((function(t){return e[t]>=0}))}var Iv={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,r=e.options,n=e.name,o=r.offset,a=void 0===o?[0,0]:o,i=Bm.reduce((function(e,r){return e[r]=function(e,t,r){var n=Gm(e),o=[Nm,Pm].indexOf(n)>=0?-1:1,a="function"==typeof r?r(Object.assign({},t,{placement:e})):r,i=a[0],c=a[1];return i=i||0,c=(c||0)*o,[Nm,jm].indexOf(n)>=0?{x:c,y:i}:{x:i,y:c}}(r,t.rects,a),e}),{}),c=i[t.placement],u=c.x,l=c.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=l),t.modifiersData[n]=i}};var Fv={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,a=void 0===o||o,i=r.altAxis,c=void 0!==i&&i,u=r.boundary,l=r.rootBoundary,s=r.altBoundary,d=r.padding,f=r.tether,p=void 0===f||f,h=r.tetherOffset,m=void 0===h?0:h,v=jv(t,{boundary:u,rootBoundary:l,padding:d,altBoundary:s}),g=Gm(t.placement),y=pv(t.placement),b=!y,w=av(g),x="x"===w?"y":"x",k=t.modifiersData.popperOffsets,_=t.rects.reference,S=t.rects.popper,C="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,E={x:0,y:0};if(!k)return;if(a||c){var O="y"===w?Pm:Nm,T="y"===w?Mm:jm,D="y"===w?"height":"width",P=k[w],M=k[w]+v[O],j=k[w]-v[T],N=p?-S[D]/2:0,A=y===Im?_[D]:S[D],R=y===Im?-S[D]:-_[D],I=t.elements.arrow,F=p&&I?Xm(I):{width:0,height:0},L=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},z=L[O],U=L[T],B=lv(0,_[D],F[D]),H=b?_[D]/2-N-B-z-C:A-B-z-C,Y=b?-_[D]/2+N+B+U+C:R+B+U+C,W=t.elements.arrow&&ov(t.elements.arrow),q=W?"y"===w?W.clientTop||0:W.clientLeft||0:0,V=t.modifiersData.offset?t.modifiersData.offset[t.placement][w]:0,K=k[w]+H-V-q,$=k[w]+Y-V;if(a){var G=lv(p?cv(M,K):M,P,p?iv(j,$):j);k[w]=G,E[w]=G-P}if(c){var Q="x"===w?Pm:Nm,X="x"===w?Mm:jm,J=k[x],Z=J+v[Q],ee=J-v[X],te=lv(p?cv(Z,K):Z,J,p?iv(ee,$):ee);k[x]=te,E[x]=te-J}}t.modifiersData[n]=E},requiresIfExists:["offset"]};function Lv(e,t,r){void 0===r&&(r=!1);var n=Vm(t);Vm(t)&&function(e){var t=e.getBoundingClientRect(),r=t.width/e.offsetWidth||1,n=t.height/e.offsetHeight||1}(t);var o=tv(t),a=Qm(e),i={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(n||!n&&!r)&&(("body"!==Ym(t)||Cv(o))&&(i=function(e){return e!==Wm(e)&&Vm(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:_v(e);var t}(t)),Vm(t)?((c=Qm(t)).x+=t.clientLeft,c.y+=t.clientTop):o&&(c.x=Sv(o))),{x:a.left+i.scrollLeft-c.x,y:a.top+i.scrollTop-c.y,width:a.width,height:a.height}}function zv(e){var t=new Map,r=new Set,n=[];function o(e){r.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!r.has(e)){var n=t.get(e);n&&o(n)}})),n.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){r.has(e.name)||o(e)})),n}var Uv={placement:"bottom",modifiers:[],strategy:"absolute"};function Bv(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function Hv(e){void 0===e&&(e={});var t=e,r=t.defaultModifiers,n=void 0===r?[]:r,o=t.defaultOptions,a=void 0===o?Uv:o;return function(e,t,r){void 0===r&&(r=a);var o,i,c={placement:"bottom",orderedModifiers:[],options:Object.assign({},Uv,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},u=[],l=!1,s={state:c,setOptions:function(r){var o="function"==typeof r?r(c.options):r;d(),c.options=Object.assign({},a,c.options,o),c.scrollParents={reference:qm(e)?Ov(e):e.contextElement?Ov(e.contextElement):[],popper:Ov(t)};var i=function(e){var t=zv(e);return Hm.reduce((function(e,r){return e.concat(t.filter((function(e){return e.phase===r})))}),[])}(function(e){var t=e.reduce((function(e,t){var r=e[t.name];return e[t.name]=r?Object.assign({},r,t,{options:Object.assign({},r.options,t.options),data:Object.assign({},r.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(n,c.options.modifiers)));return c.orderedModifiers=i.filter((function(e){return e.enabled})),c.orderedModifiers.forEach((function(e){var t=e.name,r=e.options,n=void 0===r?{}:r,o=e.effect;if("function"==typeof o){var a=o({state:c,name:t,instance:s,options:n}),i=function(){};u.push(a||i)}})),s.update()},forceUpdate:function(){if(l)return;var e=c.elements,t=e.reference,r=e.popper;if(!Bv(t,r))return;c.rects={reference:Lv(t,ov(r),"fixed"===c.options.strategy),popper:Xm(r)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach((function(e){return c.modifiersData[e.name]=Object.assign({},e.data)}));for(var n=0;n<c.orderedModifiers.length;n++){if(!0===c.reset){c.reset=!1,n=-1;continue}var o=c.orderedModifiers[n],a=o.fn,i=o.options,u=void 0===i?{}:i,d=o.name;"function"==typeof a&&(c=a({state:c,options:u,name:d,instance:s})||c)}},update:(o=function(){return new Promise((function(e){s.forceUpdate(),e(c)}))},function(){return i||(i=new Promise((function(e){Promise.resolve().then((function(){i=void 0,e(o())}))}))),i}),destroy:function(){d(),l=!0}};if(!Bv(e,t))return s;function d(){u.forEach((function(e){return e()})),u=[]}return s.setOptions(r).then((function(e){!l&&r.onFirstUpdate&&r.onFirstUpdate(e)})),s}}var Yv=Hv({defaultModifiers:[yv,{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,r=e.name;t.modifiersData[r]=Mv({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},vv,$m,Iv,Nv,Fv,fv,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,i=jv(t,{elementContext:"reference"}),c=jv(t,{altBoundary:!0}),u=Av(i,n),l=Av(c,o,a),s=Rv(u),d=Rv(l);t.modifiersData[r]={referenceClippingOffsets:u,popperEscapeOffsets:l,isReferenceHidden:s,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":s,"data-popper-escaped":d})}}]}),Wv="undefined"!=typeof Element,qv="function"==typeof Map,Vv="function"==typeof Set,Kv="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function $v(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(e.constructor!==t.constructor)return!1;var r,n,o,a;if(Array.isArray(e)){if((r=e.length)!=t.length)return!1;for(n=r;0!=n--;)if(!$v(e[n],t[n]))return!1;return!0}if(qv&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(a=e.entries();!(n=a.next()).done;)if(!t.has(n.value[0]))return!1;for(a=e.entries();!(n=a.next()).done;)if(!$v(n.value[1],t.get(n.value[0])))return!1;return!0}if(Vv&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(a=e.entries();!(n=a.next()).done;)if(!t.has(n.value[0]))return!1;return!0}if(Kv&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if((r=e.length)!=t.length)return!1;for(n=r;0!=n--;)if(e[n]!==t[n])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if((r=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(n=r;0!=n--;)if(!Object.prototype.hasOwnProperty.call(t,o[n]))return!1;if(Wv&&e instanceof Element)return!1;for(n=r;0!=n--;){if(("_owner"===o[n]||"__v"===o[n]||"__o"===o[n])&&e.$$typeof)continue;if(!$v(e[o[n]],t[o[n]]))return!1}return!0}return e!=e&&t!=t}var Gv=function(e,t){try{return $v(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}},Qv=[],Xv=function(){return},Jv=function(){return Promise.resolve(null)},Zv=[];function eg(e){var t=e.placement,r=void 0===t?"bottom":t,n=e.strategy,o=void 0===n?"absolute":n,a=e.modifiers,i=void 0===a?Zv:a,u=e.referenceElement,l=e.onFirstUpdate,s=e.innerRef,d=e.children,f=c.useContext(km),p=c.useState(null),h=p[0],m=p[1],v=c.useState(null),g=v[0],y=v[1];c.useEffect((function(){Om(s,h)}),[s,h]);var b=c.useMemo((function(){return{placement:r,strategy:o,onFirstUpdate:l,modifiers:[].concat(i,[{name:"arrow",enabled:null!=g,options:{element:g}}])}}),[r,o,l,i,g]),w=function(e,t,r){void 0===r&&(r={});var n=c.useRef(null),o={onFirstUpdate:r.onFirstUpdate,placement:r.placement||"bottom",strategy:r.strategy||"absolute",modifiers:r.modifiers||Qv},a=c.useState({styles:{popper:{position:o.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),i=a[0],u=a[1],l=c.useMemo((function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(e){var t=e.state,r=Object.keys(t.elements);u({styles:Tm(r.map((function(e){return[e,t.styles[e]||{}]}))),attributes:Tm(r.map((function(e){return[e,t.attributes[e]]})))})},requires:["computeStyles"]}}),[]),s=c.useMemo((function(){var e={onFirstUpdate:o.onFirstUpdate,placement:o.placement,strategy:o.strategy,modifiers:[].concat(o.modifiers,[l,{name:"applyStyles",enabled:!1}])};return Gv(n.current,e)?n.current||e:(n.current=e,e)}),[o.onFirstUpdate,o.placement,o.strategy,o.modifiers,l]),d=c.useRef();return Dm((function(){d.current&&d.current.setOptions(s)}),[s]),Dm((function(){if(null==e||null==t)return;var n=(r.createPopper||Yv)(e,t,s);return d.current=n,function(){n.destroy(),d.current=null}}),[e,t,r.createPopper]),{state:d.current?d.current.state:null,styles:i.styles,attributes:i.attributes,update:d.current?d.current.update:null,forceUpdate:d.current?d.current.forceUpdate:null}}(u||f,h,b),x=w.state,k=w.styles,_=w.forceUpdate,S=w.update,C=c.useMemo((function(){return{ref:m,style:k.popper,placement:x?x.placement:r,hasPopperEscaped:x&&x.modifiersData.hide?x.modifiersData.hide.hasPopperEscaped:null,isReferenceHidden:x&&x.modifiersData.hide?x.modifiersData.hide.isReferenceHidden:null,arrowProps:{style:k.arrow,ref:y},forceUpdate:_||Xv,update:S||Jv}}),[m,y,r,x,k,S,_]);return Cm(d)(C)}var tg=function(){};function rg(e){var t=e.children,r=e.innerRef,n=c.useContext(_m),o=c.useCallback((function(e){Om(r,e),Em(n,e)}),[r,n]);return c.useEffect((function(){return function(){return Om(r,null)}})),c.useEffect((function(){}),[n]),Cm(t)({ref:o})}function ng(e,t){return ng=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ng(e,t)}var og=!1,ag=i.default.createContext(null),ig="unmounted",cg="exited",ug="entering",lg="entered",sg="exiting",dg=function(e){var t,r;function n(t,r){var n;n=e.call(this,t,r)||this;var o,a=r&&!r.isMounting?t.enter:t.appear;return n.appearStatus=null,t.in?a?(o=cg,n.appearStatus=ug):o=lg:o=t.unmountOnExit||t.mountOnEnter?ig:cg,n.state={status:o},n.nextCallback=null,n}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,ng(t,r),n.getDerivedStateFromProps=function(e,t){if(e.in&&t.status===ig)return{status:cg};return null};var o=n.prototype;return o.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},o.componentDidUpdate=function(e){var t=null;if(e!==this.props){var r=this.state.status;this.props.in?r!==ug&&r!==lg&&(t=ug):r!==ug&&r!==lg||(t=sg)}this.updateStatus(!1,t)},o.componentWillUnmount=function(){this.cancelNextCallback()},o.getTimeouts=function(){var e,t,r,n=this.props.timeout;return e=t=r=n,null!=n&&"number"!=typeof n&&(e=n.exit,t=n.enter,r=void 0!==n.appear?n.appear:t),{exit:e,enter:t,appear:r}},o.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),t===ug?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&this.state.status===cg&&this.setState({status:ig})},o.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,o=this.props.nodeRef?[n]:[u.default.findDOMNode(this),n],a=o[0],i=o[1],c=this.getTimeouts(),l=n?c.appear:c.enter;if(!e&&!r||og)return void this.safeSetState({status:lg},(function(){t.props.onEntered(a)}));this.props.onEnter(a,i),this.safeSetState({status:ug},(function(){t.props.onEntering(a,i),t.onTransitionEnd(l,(function(){t.safeSetState({status:lg},(function(){t.props.onEntered(a,i)}))}))}))},o.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts(),n=this.props.nodeRef?void 0:u.default.findDOMNode(this);if(!t||og)return void this.safeSetState({status:cg},(function(){e.props.onExited(n)}));this.props.onExit(n),this.safeSetState({status:sg},(function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,(function(){e.safeSetState({status:cg},(function(){e.props.onExited(n)}))}))}))},o.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},o.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},o.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},o.onTransitionEnd=function(e,t){this.setNextCallback(t);var r=this.props.nodeRef?this.props.nodeRef.current:u.default.findDOMNode(this),n=null==e&&!this.props.addEndListener;if(!r||n)return void setTimeout(this.nextCallback,0);if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],a=o[0],i=o[1];this.props.addEndListener(a,i)}null!=e&&setTimeout(this.nextCallback,e)},o.render=function(){var e=this.state.status;if(e===ig)return null;var t=this.props,r=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var n=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++){if(r=a[n],t.indexOf(r)>=0)continue;o[r]=e[r]}return o}(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return i.default.createElement(ag.Provider,{value:null},"function"==typeof r?r(e,n):i.default.cloneElement(i.default.Children.only(r),n))},n}(i.default.Component);function fg(){}dg.contextType=ag,dg.propTypes={},dg.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:fg,onEntering:fg,onEntered:fg,onExit:fg,onExiting:fg,onExited:fg},dg.UNMOUNTED=ig,dg.EXITED=cg,dg.ENTERING=ug,dg.ENTERED=lg,dg.EXITING=sg;var pg=["children","duration","opacity"];function hg(e,t){var r=ln(e);if(xa){var n=xa(e);t&&(n=Pa(n).call(n,(function(t){return Aa(e,t).enumerable}))),r.push.apply(r,n)}return r}function mg(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?hg(Object(r),!0).forEach((function(t){Ha(e,t,r[t])})):Fa?Object.defineProperties(e,Fa(r)):hg(Object(r)).forEach((function(t){Object.defineProperty(e,t,Aa(r,t))}))}return e}var vg=function(e){var t=e.children,r=e.duration,n=e.opacity,o=li(e,pg),a={transition:"opacity ".concat(r,"ms linear"),opacity:0},c={entering:{opacity:n},entered:{opacity:n}};return i.default.createElement(dg,Qa({},o,{timeout:r}),(function(e,r){return i.default.cloneElement(t,mg(mg({},r),{},{style:mg(mg(mg({},t.props.style),a),c[e])}))}))};vg.defaultProps={duration:150,opacity:1};var gg=vg,yg=["children","styleType","suppressUnderline"],bg=l.default(Ai)(["text-underline-position:under;text-decoration-skip-ink:none;text-decoration:",";&:hover,:focus{text-decoration:",";}"],(function(e){return e.suppressUnderline?"none":"dashed underline"}),(function(e){return e.suppressUnderline?"none":"solid underline"})),wg=i.default.forwardRef((function(e,t){var r=e.children,n=e.styleType,o=e.suppressUnderline,a=li(e,yg),c=di().buttonStyles.linkButton.variant[n];return i.default.createElement(bg,Qa({ref:t,variant:c,suppressUnderline:o},a),r)}));wg.defaultProps={styleType:"primary",suppressUnderline:!1};var xg=wg,kg=["name","disableHover","disableFocus","position","content","styleType","children"],_g=l.default.div(["position:absolute;z-index:999;"]),Sg=l.default.div(["background-color:",";border-radius:2px;color:",";font-family:'Source Sans Pro','Segoe UI',Segoe,Calibri,Tahoma,sans-serif;font-size:15px;line-height:",";max-width:250px;padding:3px 8px;text-align:left;"],(function(e){return e.theme.colors.primary}),(function(e){return e.theme.colors.white}),(function(e){return e.theme.font.baseLineHeight})),Cg=l.default.div(["border-color:transparent;border-style:solid;height:0;position:absolute;width:0;"]),Eg=l.default(_g)(["padding:5px 0;"]),Og=l.default(_g)(["padding:0 5px;"]),Tg=l.default(_g)(["padding:5px 0;"]),Dg=l.default(_g)(["padding:0 5px;"]),Pg=l.default(Cg)(["border-top-color:",";border-width:5px 5px 0;bottom:0;"],(function(e){return e.theme.colors.primary})),Mg=l.default(Cg)(["border-right-color:",";border-width:5px 5px 5px 0;left:0;"],(function(e){return e.theme.colors.primary})),jg=l.default(Cg)(["border-bottom-color:",";border-width:0 5px 5px;top:0;"],(function(e){return e.theme.colors.primary})),Ng=l.default(Cg)(["border-left-color:",";border-width:5px 0 5px 5px;right:0;"],(function(e){return e.theme.colors.primary})),Ag=Zf("div");function Rg(e){var r,n,o=t.useState(!1),a=yu(o,2),c=a[0],l=a[1],s=e.name,d=e.disableHover,f=e.disableFocus,p=e.position,h=e.content,m=e.styleType,v=e.children,g=li(e,kg),y=s?"es-tooltip__".concat(s):void 0,b=gd(document.body),w=yu(b,2),x=w[0],k=w[1];switch(p){case"right":r=Og,n=Mg;break;case"bottom":r=Tg,n=jg;break;case"left":r=Dg,n=Ng;break;default:r=Eg,n=Pg}function _(){l(!0)}function S(){l(!1)}function C(){l(!c)}function E(e){27===e.keyCode&&l(!1)}var O="".concat(_h(g.id),"-description");return i.default.createElement(Sm,null,i.default.createElement(rg,null,(function(e){var t=e.ref;return i.default.createElement(xg,{ref:function(e){t(e),k(e)},onBlur:S,onFocus:f?void 0:_,onMouseEnter:d?void 0:_,onMouseLeave:d?void 0:S,onKeyDown:E,onClick:C,"aria-describedby":O,styleType:m},v)})),c&&i.default.createElement(Ag,{id:O},h),u.default.createPortal(i.default.createElement(eg,{placement:p},(function(e){var t=e.ref,o=e.style;e.placement;var a=e.arrowProps;return i.default.createElement(gg,{in:c,mountOnEnter:!0,unmountOnExit:!0},i.default.createElement(r,Qa({ref:t,role:"tooltip",id:y,style:o,"aria-live":"polite"},g),i.default.createElement(n,{ref:a.ref,style:a.style}),i.default.createElement(Sg,null,h)))})),x))}Rg.defaultProps={position:"top",disableHover:!1,disableFocus:!1,styleType:void 0};var Ig,Fg,Lg,zg={}.propertyIsEnumerable,Ug=Object.getOwnPropertyDescriptor,Bg={f:Ug&&!zg.call({1:2},1)?function(e){var t=Ug(this,e);return!!t&&t.enumerable}:zg},Hg=function(e){return M(j(e))},Yg=Object.getOwnPropertyDescriptor,Wg={f:Ne?Yg:function(e,t){if(e=Hg(e),t=Ue(t),Ae)try{return Yg(e,t)}catch(e){}if(V(e,t))return Ye(!Bg.f.call(e,t),e[t])}},qg=v.WeakMap,Vg=y(qg)&&/native code/.test(ye(qg)),Kg=W("keys"),$g=function(e){return Kg[e]||(Kg[e]=G(e))},Gg={},Qg="Object already initialized",Xg=v.WeakMap;if(Vg||Y.state){var Jg=Y.state||(Y.state=new Xg),Zg=Jg.get,ey=Jg.has,ty=Jg.set;Ig=function(e,t){if(ey.call(Jg,e))throw new TypeError(Qg);return t.facade=e,ty.call(Jg,e,t),t},Fg=function(e){return Zg.call(Jg,e)||{}},Lg=function(e){return ey.call(Jg,e)}}else{var ry=$g("state");Gg[ry]=!0,Ig=function(e,t){if(V(e,ry))throw new TypeError(Qg);return t.facade=e,We(e,ry,t),t},Fg=function(e){return V(e,ry)?e[ry]:{}},Lg=function(e){return V(e,ry)}}var ny,oy={set:Ig,get:Fg,has:Lg,enforce:function(e){return Lg(e)?Fg(e):Ig(e,{})},getterFor:function(e){return function(t){var r;if(!b(t)||(r=Fg(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return r}}},ay=f((function(e){var t=sd.CONFIGURABLE,r=oy.get,n=oy.enforce,o=String(String).split("String");(e.exports=function(e,r,a,i){var c,u=!!i&&!!i.unsafe,l=!!i&&!!i.enumerable,s=!!i&&!!i.noTargetGet,d=i&&void 0!==i.name?i.name:r;if(y(a)&&("Symbol("===String(d).slice(0,7)&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!V(a,"name")||t&&a.name!==d)&&We(a,"name",d),(c=n(a)).source||(c.source=o.join("string"==typeof d?d:""))),e===v)return void(l?e[r]=a:B(r,a));u?!s&&e[r]&&(l=!0):delete e[r],l?e[r]=a:We(e,r,a)})(Function.prototype,"toString",(function(){return y(this)&&r(this).source||ye(this)}))})),iy=Math.max,cy=Math.min,uy=function(e){return function(t,r,n){var o,a=Hg(t),i=z(a),c=function(e,t){var r=I(e);return r<0?iy(r+t,0):cy(r,t)}(n,i);if(e&&r!=r){for(;i>c;)if((o=a[c++])!=o)return!0}else for(;i>c;c++)if((e||c in a)&&a[c]===r)return e||c||0;return!e&&-1}},ly={includes:uy(!0),indexOf:uy(!1)}.indexOf,sy=function(e,t){var r,n=Hg(e),o=0,a=[];for(r in n)!V(Gg,r)&&V(n,r)&&a.push(r);for(;t.length>o;)V(n,r=t[o++])&&(~ly(a,r)||a.push(r));return a},dy=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],fy=dy.concat("length","prototype"),py={f:Object.getOwnPropertyNames||function(e){return sy(e,fy)}},hy={f:Object.getOwnPropertySymbols},my=X("Reflect","ownKeys")||function(e){var t=py.f(Re(e)),r=hy.f;return r?t.concat(r(e)):t},vy=function(e,t){for(var r=my(t),n=He.f,o=Wg.f,a=0;a<r.length;a++){var i=r[a];V(e,i)||n(e,i,o(t,i))}},gy=/#|\.prototype\./,yy=function(e,t){var r=wy[by(e)];return r==ky||r!=xy&&(y(t)?O(t):!!t)},by=yy.normalize=function(e){return String(e).replace(gy,".").toLowerCase()},wy=yy.data={},xy=yy.NATIVE="N",ky=yy.POLYFILL="P",_y=yy,Sy=Wg.f,Cy=function(e,t){var r,n,o,a,i,c=e.target,u=e.global,l=e.stat;if(r=u?v:l?v[c]||B(c,{}):(v[c]||{}).prototype)for(n in t){if(a=t[n],o=e.noTargetGet?(i=Sy(r,n))&&i.value:r[n],!_y(u?n:c+(l?".":"#")+n,e.forced)&&void 0!==o){if(typeof a==typeof o)continue;vy(a,o)}(e.sham||o&&o.sham)&&We(a,"sham",!0),ay(r,n,a,e)}},Ey=function(e){if("Symbol"===he(e))throw TypeError("Cannot convert a Symbol value to a string");return String(e)},Oy=function(){var e=Re(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},Ty=v.RegExp,Dy={UNSUPPORTED_Y:O((function(){var e=Ty("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),BROKEN_CARET:O((function(){var e=Ty("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},Py=Object.keys||function(e){return sy(e,dy)},My=Ne?Object.defineProperties:function(e,t){Re(e);for(var r,n=Py(t),o=n.length,a=0;o>a;)He.f(e,r=n[a++],t[r]);return e},jy=X("document","documentElement"),Ny=$g("IE_PROTO"),Ay=function(){},Ry=function(e){return"<script>"+e+"</"+"script>"},Iy=function(e){e.write(Ry("")),e.close();var t=e.parentWindow.Object;return e=null,t},Fy=function(){try{ny=new ActiveXObject("htmlfile")}catch(e){}var e,t;Fy="undefined"!=typeof document?document.domain&&ny?Iy(ny):((t=k("iframe")).style.display="none",jy.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(Ry("document.F=Object")),e.close(),e.F):Iy(ny);for(var r=dy.length;r--;)delete Fy.prototype[dy[r]];return Fy()};Gg[Ny]=!0;var Ly,zy,Uy=Object.create||function(e,t){var r;return null!==e?(Ay.prototype=Re(e),r=new Ay,Ay.prototype=null,r[Ny]=e):r=Fy(),void 0===t?r:My(r,t)},By=v.RegExp,Hy=O((function(){var e=By(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),Yy=v.RegExp,Wy=O((function(){var e=Yy("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),qy=oy.get,Vy=RegExp.prototype.exec,Ky=W("native-string-replace",String.prototype.replace),$y=Vy,Gy=(Ly=/a/,zy=/b*/g,Vy.call(Ly,"a"),Vy.call(zy,"a"),0!==Ly.lastIndex||0!==zy.lastIndex),Qy=Dy.UNSUPPORTED_Y||Dy.BROKEN_CARET,Xy=void 0!==/()??/.exec("")[1];(Gy||Xy||Qy||Hy||Wy)&&($y=function(e){var t,r,n,o,a,i,c,u=this,l=qy(u),s=Ey(e),d=l.raw;if(d)return d.lastIndex=u.lastIndex,t=$y.call(d,s),u.lastIndex=d.lastIndex,t;var f=l.groups,p=Qy&&u.sticky,h=Oy.call(u),m=u.source,v=0,g=s;if(p&&(-1===(h=h.replace("y","")).indexOf("g")&&(h+="g"),g=s.slice(u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&"\n"!==s.charAt(u.lastIndex-1))&&(m="(?: "+m+")",g=" "+g,v++),r=new RegExp("^(?:"+m+")",h)),Xy&&(r=new RegExp("^"+m+"$(?!\\s)",h)),Gy&&(n=u.lastIndex),o=Vy.call(p?r:u,g),p?o?(o.input=o.input.slice(v),o[0]=o[0].slice(v),o.index=u.lastIndex,u.lastIndex+=o[0].length):u.lastIndex=0:Gy&&o&&(u.lastIndex=u.global?o.index+o[0].length:n),Xy&&o&&o.length>1&&Ky.call(o[0],r,(function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(o[a]=void 0)})),o&&f)for(o.groups=i=Uy(null),a=0;a<f.length;a++)i[(c=f[a])[0]]=o[c[1]];return o});var Jy=$y;Cy({target:"RegExp",proto:!0,forced:/./.exec!==Jy},{exec:Jy});var Zy=le("species"),eb=RegExp.prototype,tb=function(e,t,r,n){var o=le(e),a=!O((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),i=a&&!O((function(){var t=!1,r=/a/;return"split"===e&&((r={}).constructor={},r.constructor[Zy]=function(){return r},r.flags="",r[o]=/./[o]),r.exec=function(){return t=!0,null},r[o](""),!t}));if(!a||!i||r){var c=/./[o],u=t(o,""[e],(function(e,t,r,n,o){var i=t.exec;if(i===Jy||i===eb.exec){if(a&&!o)return{done:!0,value:c.call(t,r,n)};return{done:!0,value:e.call(r,t,n)}}return{done:!1}}));ay(String.prototype,e,u[0]),ay(eb,o,u[1])}n&&We(eb[o],"sham",!0)},rb=function(e){return function(t,r){var n,o,a=Ey(j(t)),i=I(r),c=a.length;if(i<0||i>=c)return e?"":void 0;return(n=a.charCodeAt(i))<55296||n>56319||i+1===c||(o=a.charCodeAt(i+1))<56320||o>57343?e?a.charAt(i):n:e?a.slice(i,i+2):o-56320+(n-55296<<10)+65536}},nb={codeAt:rb(!1),charAt:rb(!0)}.charAt,ob=function(e,t,r){return t+(r?nb(e,t).length:1)},ab=function(e,t){var r=e.exec;if(y(r)){var n=r.call(e,t);return null!==n&&Re(n),n}if("RegExp"===D(e))return Jy.call(e,t);throw TypeError("RegExp#exec called on incompatible receiver")};tb("match",(function(e,t,r){return[function(t){var r=j(this),n=null==t?void 0:Fe(t,e);return n?n.call(t,r):new RegExp(t)[e](Ey(r))},function(e){var n=Re(this),o=Ey(e),a=r(t,n,o);if(a.done)return a.value;if(!n.global)return ab(n,o);var i=n.unicode;n.lastIndex=0;for(var c,u=[],l=0;null!==(c=ab(n,o));){var s=Ey(c[0]);u[l]=s,""===s&&(n.lastIndex=ob(o,L(n.lastIndex),i)),l++}return 0===l?null:u}]}));var ib=["name","trigger","children","position","arrowSize","hasTitle","transitionIn","transitionTimeout","disableFlipping","popperRef","enableEvents","strategy","keepTogether"],cb=l.default.div(["border:1px solid rgba(0,0,0,0.3);box-shadow:0 5px 10px rgba(0,0,0,0.3);border-radius:2px;max-width:350px;min-width:270px;position:absolute;text-align:center;z-index:99999;"]),ub=l.default.div(["position:absolute;&::before,&::after{border:solid transparent;content:'';position:absolute;}&[data-placement*='bottom']{top:0;left:0;margin-top:-","px;&::before{border-width:",";border-color:transparent;border-bottom-color:",";margin-left:-","px;}&::after{border-width:",";border-color:transparent;border-bottom-color:",";margin-left:-","px;}}&[data-placement*='top']{&::before{border-width:","px;border-color:transparent;border-top-color:",";margin-left:-","px;}&::after{border-width:","px;border-color:transparent;border-top-color:",";margin-left:-","px;}}&[data-placement*='right']{margin-left:-","px;&::before{border-width:",";border-color:transparent;border-right-color:",";margin-top:-","px;}&::after{border-width:",";border-color:transparent;border-right-color:",";margin-top:-","px;}}&[data-placement*='left']{right:0;&::before{border-width:","px;border-color:transparent;border-left-color:",";margin-top:-","px;}&::after{border-width:","px;border-color:transparent;border-left-color:",";margin-top:-","px;}}"],(function(e){return e.arrowSize.size}),(function(e){return e.arrowSize.bottomBorderWidth}),(function(e){return e.arrowSize.borderColor}),(function(e){return e.arrowSize.borderSize}),(function(e){return e.arrowSize.bottomWidth}),(function(e){return e.hasTitle?e.theme.colors.primary:e.theme.colors.white}),(function(e){return e.arrowSize.size}),(function(e){return e.arrowSize.borderSize}),(function(e){return e.arrowSize.borderColor}),(function(e){return e.arrowSize.borderSize}),(function(e){return e.arrowSize.size}),(function(e){return e.theme.colors.white}),(function(e){return e.arrowSize.size}),(function(e){return e.arrowSize.size}),(function(e){return e.arrowSize.rightBorderWidth}),(function(e){return e.arrowSize.borderColor}),(function(e){return e.arrowSize.borderSize}),(function(e){return e.arrowSize.rightWidth}),(function(e){return e.theme.colors.white}),(function(e){return e.arrowSize.size}),(function(e){return e.arrowSize.borderSize}),(function(e){return e.arrowSize.borderColor}),(function(e){return e.arrowSize.borderSize}),(function(e){return e.arrowSize.size}),(function(e){return e.theme.colors.white}),(function(e){return e.arrowSize.size})),lb={size:"5",borderSize:"6",marginSize:"10",bottomWidth:"0 5px 5px",bottomBorderWidth:"0 6px 5px",rightWidth:"5px 5px 5px 0",rightBorderWidth:"6px 5px 6px 0",borderColor:"rgba(0, 0, 0, 0.3)"},sb={size:"10",borderSize:"11",marginSize:"15",bottomWidth:"0 10px 10px",bottomBorderWidth:"0 11px 10px",rightWidth:"10px 10px 10px 0",rightBorderWidth:"11px 10px 11px 0",borderColor:"rgba(0, 0, 0, 0.3)"},db={size:"20",borderSize:"21",marginSize:"30",bottomWidth:"0 20px 20px",bottomBorderWidth:"0 21px 20px",rightWidth:"20px 20px 20px 0",rightBorderWidth:"21px 20px 21px 0",borderColor:"rgba(0, 0, 0, 0.3)"},fb={size:"0",borderSize:"0",marginSize:"10"};function pb(e){var t=e.name,r=e.trigger,n=e.children,o=e.position,a=e.arrowSize,c=e.hasTitle,l=e.transitionIn,s=e.transitionTimeout,d=e.disableFlipping,f=e.popperRef,p=e.enableEvents,h=e.strategy,m=e.keepTogether,v=li(e,ib),g=function(e){switch(e){case"sm":return lb;case"lg":return db;case"none":return fb;default:return sb}}(a),y=gd(document.body),b=yu(y,2),w=b[0],x=b[1];return i.default.createElement(Sm,null,i.default.createElement(rg,null,(function(e){var n=e.ref;return i.default.createElement("div",{className:"".concat(t,"-popper__trigger"),ref:function(e){n(e),x(e)}},r)})),u.default.createPortal(i.default.createElement(eg,{className:"".concat(t,"-popper"),placement:o,modifiers:[{name:"preventOverflow",options:{boundariesElement:document.body,tether:m}},{name:"flip",options:{enabled:!d,fallbackPlacements:["left","right","top","bottom"]}},{name:"offset",options:{offset:[0,g.marginSize]}}],innerRef:f,eventsEnabled:p,positionFixed:"fixed"===h},(function(e){var t=e.ref,r=e.style,o=e.placement,a=e.arrowProps;return i.default.createElement(gg,{in:l,duration:s,mountOnEnter:!0,unmountOnExit:!0},i.default.createElement(cb,Qa({ref:t,style:r,arrowSize:g},v),n,i.default.createElement(ub,{ref:a.ref,"data-placement":o,style:a.style,arrowSize:g,hasTitle:c})))})),w))}pb.defaultProps={name:"",trigger:void 0,children:void 0,position:"bottom",arrowSize:"default",transitionIn:!1,transitionTimeout:150,hasTitle:!1,disableFlipping:!1,popperRef:void 0,enableEvents:!0,strategy:"absolute",keepTogether:!0};var hb=!("undefined"==typeof window||!window.document||!window.document.createElement),mb=!1,vb=!1;try{var gb={get passive(){return mb=!0},get once(){return vb=mb=!0}};hb&&(window.addEventListener("test",gb,gb),window.removeEventListener("test",gb,!0))}catch(Qp){}function yb(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function bb(e){this.setState(function(t){var r=this.constructor.getDerivedStateFromProps(e,t);return null!=r?r:null}.bind(this))}function wb(e,t){try{var r=this.props,n=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(r,n)}finally{this.props=r,this.state=n}}yb.__suppressDeprecationWarning=!0,bb.__suppressDeprecationWarning=!0,wb.__suppressDeprecationWarning=!0;var xb=Object.freeze({__proto__:null,polyfill:function(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var r=null,n=null,o=null;if("function"==typeof t.componentWillMount?r="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(r="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?n="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(n="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?o="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(o="UNSAFE_componentWillUpdate"),null!==r||null!==n||null!==o){var a=e.displayName||e.name,i="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+a+" uses "+i+" but also contains the following legacy lifecycles:"+(null!==r?"\n "+r:"")+(null!==n?"\n "+n:"")+(null!==o?"\n "+o:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=yb,t.componentWillReceiveProps=bb),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=wb;var c=t.componentDidUpdate;t.componentDidUpdate=function(e,t,r){var n=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:r;c.call(this,e,t,n)}}return e}});function kb(e){var r=function(e){var r=t.useRef(e);return t.useEffect((function(){r.current=e}),[e]),r}(e);return t.useCallback((function(){return r.current&&r.current.apply(r,arguments)}),[r])}function _b(e,t,r,n){return function(e,t,r,n){if(n&&"boolean"!=typeof n&&!vb){var o=n.once,a=n.capture,i=r;!vb&&o&&(i=r.__once||function e(n){this.removeEventListener(t,e,a),r.call(this,n)},r.__once=i),e.addEventListener(t,i,mb?n:a)}e.addEventListener(t,r,n)}(e,t,r,n),function(){!function(e,t,r,n){var o=n&&"boolean"!=typeof n?n.capture:n;e.removeEventListener(t,r,o),r.__once&&e.removeEventListener(t,r.__once,o)}(e,t,r,n)}}var Sb=function(e){return function(e){return e&&e.ownerDocument||document}(function(e){if(e&&"setState"in e)return u.default.findDOMNode(e);return null!=e?e:null}(e))},Cb=function(){};var Eb=function(e){return e&&("current"in e?e.current:e)};var Ob,Tb=function(e){var r=e.children,n=e.onRootClose,o=e.disabled,a=e.className,c=t.useRef();return function(e,r,n){var o=void 0===n?{}:n,a=o.disabled,i=o.clickTrigger,c=void 0===i?"click":i,u=t.useRef(!1),l=r||Cb,s=t.useCallback((function(t){var r,n=Eb(e);u.current=!(n&&(r=t,!(r.metaKey||r.altKey||r.ctrlKey||r.shiftKey))&&function(e){return 0===e.button}(t)&&!function(e,t){if(e.contains)return e.contains(t);if(e.compareDocumentPosition)return e===t||!!(16&e.compareDocumentPosition(t))}(n,t.target))}),[e]),d=kb((function(e){u.current||l(e)})),f=kb((function(e){27===e.keyCode&&l(e)}));t.useEffect((function(){if(a||null==e)return;var t=window.event,r=Sb(Eb(e)),n=_b(r,c,s,!0),o=_b(r,c,(function(e){if(e===t)return void(t=void 0);d(e)})),i=_b(r,"keyup",(function(e){if(e===t)return void(t=void 0);f(e)})),u=[];return"ontouchstart"in r.documentElement&&(u=[].slice.call(r.body.children).map((function(e){return _b(e,"mousemove",Cb)}))),function(){n(),o(),i(),u.forEach((function(e){return e()}))}}),[e,a,c,s,d,f])}(c,n,{disabled:o}),i.default.createElement("div",{ref:c,className:"root-close-wrapper ".concat(a)},r)},Db=["name","title","content","renderContent","placement","arrowSize","renderTrigger","hasCloseButton","hasAltCloseButton","disableCloseOnScroll","disableRootClose","disableFlipping","enableEvents","keepTogether","strategy","popoverWrapperClassName","styleType"],Pb=(null===(Ob=i.default.version.match(/\d+/))||void 0===Ob?void 0:Ob[0])||"0",Mb=parseInt(Pb,10),jb=l.default.div(["display:inline-block;"]),Nb=l.default.div(["background-color:",";color:",";display:flex;justify-content:space-between;line-height:",";outline:none;"],(function(e){return e.hasTitle?e.theme.colors[e.styleType]:e.theme.colors.white}),(function(e){return e.theme.colors.white}),(function(e){return e.theme.font.baseLineHeight})),Ab=l.default.h3(["flex:1 1;font-size:18px;margin:0;padding:8px 14px;text-align:left;"]),Rb=l.default.div(["background:",";color:",";font-size:18px;font-weight:normal;line-height:",";padding:",";text-align:right;"],(function(e){return e.theme.colors.white}),(function(e){return e.theme.colors.gray9}),(function(e){return e.theme.font.baseLineHeight}),(function(e){return e.hasAltCloseWithNoTitle?"0 14px 8px":"8px 14px"})),Ib=l.default.div(["margin-bottom:",";text-align:left;"],(function(e){return e.showCloseButton?"8px":"0"})),Fb=l.default(Ei)(["display:inline-block;margin:5px 0;width:auto;"]),Lb=l.default(rp)(["color:",";flex:0 1;margin-left:auto;padding:8px;"],(function(e){return e.hasTitle?e.theme.colors.white:e.theme.colors.black})),zb=l.default.span(["color:transparent;flex:none;height:1px;outline:0;width:1px;"]);function Ub(e){var r=e.name,n=e.title,o=e.content,a=e.renderContent,c=e.placement,u=e.arrowSize,l=e.renderTrigger,s=e.hasCloseButton,d=e.hasAltCloseButton,f=e.disableCloseOnScroll,p=e.disableRootClose,h=e.disableFlipping,m=e.enableEvents,v=e.keepTogether,g=e.strategy,y=e.popoverWrapperClassName,b=e.styleType,w=li(e,Db),x=void 0!==n,k=!x&&d,_=s&&!d,S=t.useRef(!0),C=t.useRef(null),E=t.useRef(null),O=t.useRef(null),T=t.useRef(null),D=t.useRef(null),P=t.useRef(null),M=t.useState(!1),j=yu(M,2),N=j[0],A=j[1];function R(e){e.preventDefault(),Mb<=16&&e.stopPropagation(),A(!N)}function I(){setInterval((function(){if(E.current){var e=E.current.getBoundingClientRect();!(e.top>=0&&e.bottom<=window.innerHeight)&&N&&A(!1)}}),100)}t.useEffect((function(){if(S.current)return void(S.current=!1);null!==P.current&&clearTimeout(P.current),N?P.current=setTimeout((function(){D.current?D.current.focus():T.current&&T.current.focus()}),100):C.current.focus()}),[N]),t.useEffect((function(){if(f)return Xf;return N&&window.addEventListener("scroll",I),function(){return window.removeEventListener("scroll",I)}}),[N,f]);var F=i.default.createElement(Fb,{onClick:R,ref:D},"Close"),L=i.default.createElement(Lb,{"aria-label":"Close",hasTitle:x,onClick:R,ref:D});return i.default.createElement(jb,null,i.default.createElement(pb,Qa({name:r,trigger:l({ref:C,toggleShow:R,isOpen:N}),position:c,arrowSize:u,transitionIn:N,hasTitle:x,disableFlipping:h,popperRef:function(e){E.current=e},enableEvents:m,strategy:g,keepTogether:v},w),i.default.createElement(Tb,{onRootClose:function(e){N&&("click"!==e.type&&C.current.focus(),A(!1))},disabled:p,className:y},i.default.createElement("div",{role:"dialog",ref:O},i.default.createElement(Nb,{hasTitle:x,styleType:b},x&&i.default.createElement(Ab,null,n),d&&L,i.default.createElement(zb,{tabIndex:-1,ref:T,"aria-label":"Press escape to close the Popover"})),i.default.createElement(Rb,{hasAltCloseWithNoTitle:k},i.default.createElement(Ib,{showCloseButton:_},a?a({toggleShow:R}):o),_&&F)))))}Ub.defaultProps={placement:"bottom",arrowSize:"default",disableRootClose:!1,hasCloseButton:!1,hasAltCloseButton:!1,disableFlipping:!1,disableCloseOnScroll:!1,title:void 0,enableEvents:!0,strategy:"absolute",keepTogether:!0,styleType:"primary",popoverWrapperClassName:"popover--active"};var Bb=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},Hb="object"==typeof s&&s&&s.Object===Object&&s,Yb="object"==typeof self&&self&&self.Object===Object&&self,Wb=Hb||Yb||Function("return this")(),qb=function(){return Wb.Date.now()},Vb=/\s/;var Kb=function(e){for(var t=e.length;t--&&Vb.test(e.charAt(t)););return t},$b=/^\s+/;var Gb=function(e){return e?e.slice(0,Kb(e)+1).replace($b,""):e},Qb=Wb.Symbol,Xb=Object.prototype,Jb=Xb.hasOwnProperty,Zb=Xb.toString,ew=Qb?Qb.toStringTag:void 0;var tw=function(e){var t=Jb.call(e,ew),r=e[ew];try{e[ew]=void 0;var n=!0}catch(e){}var o=Zb.call(e);return n&&(t?e[ew]=r:delete e[ew]),o},rw=Object.prototype.toString;var nw=function(e){return rw.call(e)},ow=Qb?Qb.toStringTag:void 0;var aw=function(e){if(null==e)return void 0===e?"[object Undefined]":"[object Null]";return ow&&ow in Object(e)?tw(e):nw(e)};var iw=function(e){return null!=e&&"object"==typeof e};var cw=function(e){return"symbol"==typeof e||iw(e)&&"[object Symbol]"==aw(e)},uw=/^[-+]0x[0-9a-f]+$/i,lw=/^0b[01]+$/i,sw=/^0o[0-7]+$/i,dw=parseInt;var fw=function(e){if("number"==typeof e)return e;if(cw(e))return NaN;if(Bb(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Bb(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Gb(e);var r=lw.test(e);return r||sw.test(e)?dw(e.slice(2),r?2:8):uw.test(e)?NaN:+e},pw=Math.max,hw=Math.min;var mw=function(e,t,r){var n,o,a,i,c,u,l=0,s=!1,d=!1,f=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var r=n,a=o;return n=o=void 0,l=t,i=e.apply(a,r)}function h(e){return l=e,c=setTimeout(v,t),s?p(e):i}function m(e){var r=e-u;return void 0===u||r>=t||r<0||d&&e-l>=a}function v(){var e=qb();if(m(e))return g(e);c=setTimeout(v,function(e){var r=t-(e-u);return d?hw(r,a-(e-l)):r}(e))}function g(e){if(c=void 0,f&&n)return p(e);return n=o=void 0,i}function y(){var e=qb(),r=m(e);if(n=arguments,o=this,u=e,r){if(void 0===c)return h(u);if(d)return clearTimeout(c),c=setTimeout(v,t),p(u)}return void 0===c&&(c=setTimeout(v,t)),i}return t=fw(t)||0,Bb(r)&&(s=!!r.leading,a=(d="maxWait"in r)?pw(fw(r.maxWait)||0,t):a,f="trailing"in r?!!r.trailing:f),y.cancel=function(){void 0!==c&&clearTimeout(c),l=0,n=u=o=c=void 0},y.flush=function(){return void 0===c?i:g(qb())},y},vw=f((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){var r=[].slice.call(t.querySelectorAll("*"),0).reduce((function(t,r){return t.concat(r.shadowRoot?e(r.shadowRoot):[r])}),[]);return r.filter(a)};
|
|
14
14
|
/*!
|
|
15
15
|
* Adapted from jQuery UI core
|
|
16
16
|
*
|
package/cjs/index.js
CHANGED
|
@@ -1503,6 +1503,8 @@ function Drawer(props) {
|
|
|
1503
1503
|
|
|
1504
1504
|
var keysChangedCallback = React.useRef(onActiveKeysChanged);
|
|
1505
1505
|
keysChangedCallback.current = onActiveKeysChanged;
|
|
1506
|
+
var currentActiveKeysProp = React.useRef(activeKeysProp);
|
|
1507
|
+
currentActiveKeysProp.current = activeKeysProp;
|
|
1506
1508
|
|
|
1507
1509
|
var _useState = React.useState(activeKeysProp || []),
|
|
1508
1510
|
_useState2 = _slicedToArray__default["default"](_useState, 2),
|
|
@@ -1546,16 +1548,16 @@ function Drawer(props) {
|
|
|
1546
1548
|
drawerState = _useState4[0],
|
|
1547
1549
|
setDrawerState = _useState4[1];
|
|
1548
1550
|
|
|
1551
|
+
React.useEffect(function () {
|
|
1552
|
+
if (simpleArraysEqual(activeKeys, currentActiveKeysProp.current)) return;
|
|
1553
|
+
keysChangedCallback.current(activeKeys);
|
|
1554
|
+
}, [activeKeys]);
|
|
1549
1555
|
React.useEffect(function () {
|
|
1550
1556
|
if (!activeKeysProp) return;
|
|
1551
|
-
resetActiveKeysCallback.current(function () {
|
|
1552
|
-
return activeKeysProp;
|
|
1557
|
+
resetActiveKeysCallback.current(function (oldKeys) {
|
|
1558
|
+
return simpleArraysEqual(oldKeys, activeKeysProp) ? oldKeys : activeKeysProp;
|
|
1553
1559
|
});
|
|
1554
1560
|
}, [activeKeysProp]);
|
|
1555
|
-
React.useEffect(function () {
|
|
1556
|
-
if (simpleArraysEqual(activeKeys, activeKeysProp)) return;
|
|
1557
|
-
keysChangedCallback.current(activeKeys);
|
|
1558
|
-
}, [activeKeys, activeKeysProp]);
|
|
1559
1561
|
React.useEffect(function () {
|
|
1560
1562
|
setDrawerState({
|
|
1561
1563
|
activeKeys: activeKeys,
|
package/lib/index.js
CHANGED
|
@@ -1445,6 +1445,8 @@ function Drawer(props) {
|
|
|
1445
1445
|
|
|
1446
1446
|
var keysChangedCallback = useRef(onActiveKeysChanged);
|
|
1447
1447
|
keysChangedCallback.current = onActiveKeysChanged;
|
|
1448
|
+
var currentActiveKeysProp = useRef(activeKeysProp);
|
|
1449
|
+
currentActiveKeysProp.current = activeKeysProp;
|
|
1448
1450
|
|
|
1449
1451
|
var _useState = useState(activeKeysProp || []),
|
|
1450
1452
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -1488,16 +1490,16 @@ function Drawer(props) {
|
|
|
1488
1490
|
drawerState = _useState4[0],
|
|
1489
1491
|
setDrawerState = _useState4[1];
|
|
1490
1492
|
|
|
1493
|
+
useEffect(function () {
|
|
1494
|
+
if (simpleArraysEqual(activeKeys, currentActiveKeysProp.current)) return;
|
|
1495
|
+
keysChangedCallback.current(activeKeys);
|
|
1496
|
+
}, [activeKeys]);
|
|
1491
1497
|
useEffect(function () {
|
|
1492
1498
|
if (!activeKeysProp) return;
|
|
1493
|
-
resetActiveKeysCallback.current(function () {
|
|
1494
|
-
return activeKeysProp;
|
|
1499
|
+
resetActiveKeysCallback.current(function (oldKeys) {
|
|
1500
|
+
return simpleArraysEqual(oldKeys, activeKeysProp) ? oldKeys : activeKeysProp;
|
|
1495
1501
|
});
|
|
1496
1502
|
}, [activeKeysProp]);
|
|
1497
|
-
useEffect(function () {
|
|
1498
|
-
if (simpleArraysEqual(activeKeys, activeKeysProp)) return;
|
|
1499
|
-
keysChangedCallback.current(activeKeys);
|
|
1500
|
-
}, [activeKeys, activeKeysProp]);
|
|
1501
1503
|
useEffect(function () {
|
|
1502
1504
|
setDrawerState({
|
|
1503
1505
|
activeKeys: activeKeys,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "es-components",
|
|
3
|
-
"version": "21.6.
|
|
3
|
+
"version": "21.6.85-pre-prod.0",
|
|
4
4
|
"description": "React components built for Exchange Solutions products",
|
|
5
5
|
"author": "Willis Towers Watson - Individual Marketplace",
|
|
6
6
|
"license": "MIT",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"bl": "^1.2.3",
|
|
69
69
|
"concurrently": "^6.0.2",
|
|
70
70
|
"cypress": "^9.6.0",
|
|
71
|
-
"es-components-via-theme": "^21.6.
|
|
71
|
+
"es-components-via-theme": "^21.6.85-pre-prod.0",
|
|
72
72
|
"eslint": "^7.24.0",
|
|
73
73
|
"eslint-config-airbnb": "^18.2.1",
|
|
74
74
|
"eslint-config-prettier": "^8.2.0",
|
|
@@ -125,5 +125,5 @@
|
|
|
125
125
|
"ast-types": "^0.14.0",
|
|
126
126
|
"bl": "^1.2.3"
|
|
127
127
|
},
|
|
128
|
-
"gitHead": "
|
|
128
|
+
"gitHead": "59b3ff2834eafa0b5717d7bc6d7938aa8cbf0bd6"
|
|
129
129
|
}
|