@patternfly/react-table 4.93.13 → 4.93.14
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/dist/umd/react-table.js +2 -4
- package/dist/umd/react-table.min.js +1 -1
- package/package.json +6 -6
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
|
+
## 4.93.14 (2022-07-11)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @patternfly/react-table
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## 4.93.13 (2022-07-11)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @patternfly/react-table
|
package/dist/umd/react-table.js
CHANGED
|
@@ -1512,10 +1512,8 @@
|
|
|
1512
1512
|
* @param {string} variant Optional variant to add to the generated ID
|
|
1513
1513
|
*/
|
|
1514
1514
|
const useOUIAId = (componentType, id, variant) => {
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
}
|
|
1518
|
-
return React.useMemo(() => getDefaultOUIAId(componentType, variant), [componentType, variant]);
|
|
1515
|
+
const defaultOUIAId = React.useMemo(() => getDefaultOUIAId(componentType, variant), [componentType, variant]);
|
|
1516
|
+
return id !== null && id !== void 0 ? id : defaultOUIAId;
|
|
1519
1517
|
};
|
|
1520
1518
|
/**
|
|
1521
1519
|
* Returns a generated id based on the URL location
|
|
@@ -36,7 +36,7 @@ function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r
|
|
|
36
36
|
* focus-trap 6.9.2
|
|
37
37
|
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
|
|
38
38
|
*/
|
|
39
|
-
function W(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function K(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?W(Object(n),!0).forEach((function(t){G(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):W(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function G(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var U,X=(U=[],{activateTrap:function(e){if(U.length>0){var t=U[U.length-1];t!==e&&t.pause()}var n=U.indexOf(e);-1===n||U.splice(n,1),U.push(e)},deactivateTrap:function(e){var t=U.indexOf(e);-1!==t&&U.splice(t,1),U.length>0&&U[U.length-1].unpause()}}),q=function(e){return setTimeout(e,0)},Y=function(e,t){var n=-1;return e.every((function(e,r){return!t(e)||(n=r,!1)})),n},J=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return"function"==typeof e?e.apply(void 0,n):e},Q=function(e){return e.target.shadowRoot&&"function"==typeof e.composedPath?e.composedPath()[0]:e.target},Z=function(e,t){var n,r=(null==t?void 0:t.document)||document,o=K({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0},t),i={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0},a=function(e,t,n){return e&&void 0!==e[t]?e[t]:o[n||t]},s=function(e){return i.containerGroups.findIndex((function(t){var n=t.container,r=t.tabbableNodes;return n.contains(e)||r.find((function(t){return t===e}))}))},l=function(e){var t=o[e];if("function"==typeof t){for(var n=arguments.length,i=new Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];t=t.apply(void 0,i)}if(!0===t&&(t=void 0),!t){if(void 0===t||!1===t)return t;throw new Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var s=t;if("string"==typeof t&&!(s=r.querySelector(t)))throw new Error("`".concat(e,"` as selector refers to no known node"));return s},c=function(){var e=l("initialFocus");if(!1===e)return!1;if(void 0===e)if(s(r.activeElement)>=0)e=r.activeElement;else{var t=i.tabbableGroups[0];e=t&&t.firstTabbableNode||l("fallbackFocus")}if(!e)throw new Error("Your focus-trap needs to have at least one focusable element");return e},p=function(){if(i.containerGroups=i.containers.map((function(e){var t,n,r=V(e,o.tabbableOptions),i=(t=e,(n=(n=o.tabbableOptions)||{}).getShadowRoot?k([t],n.includeContainer,{filter:L.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):R(t,n.includeContainer,L.bind(null,n)));return{container:e,tabbableNodes:r,focusableNodes:i,firstTabbableNode:r.length>0?r[0]:null,lastTabbableNode:r.length>0?r[r.length-1]:null,nextTabbableNode:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=i.findIndex((function(t){return t===e}));if(!(n<0))return t?i.slice(n+1).find((function(e){return z(e,o.tabbableOptions)})):i.slice(0,n).reverse().find((function(e){return z(e,o.tabbableOptions)}))}}})),i.tabbableGroups=i.containerGroups.filter((function(e){return e.tabbableNodes.length>0})),i.tabbableGroups.length<=0&&!l("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")},d=function e(t){!1!==t&&t!==r.activeElement&&(t&&t.focus?(t.focus({preventScroll:!!o.preventScroll}),i.mostRecentlyFocusedNode=t,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select}(t)&&t.select()):e(c()))},u=function(e){var t=l("setReturnFocus",e);return t||!1!==t&&e},f=function(e){var t=Q(e);s(t)>=0||(J(o.clickOutsideDeactivates,e)?n.deactivate({returnFocus:o.returnFocusOnDeactivate&&!$(t,o.tabbableOptions)}):J(o.allowOutsideClick,e)||e.preventDefault())},m=function(e){var t=Q(e),n=s(t)>=0;n||t instanceof Document?n&&(i.mostRecentlyFocusedNode=t):(e.stopImmediatePropagation(),d(i.mostRecentlyFocusedNode||c()))},h=function(e){if(function(e){return"Escape"===e.key||"Esc"===e.key||27===e.keyCode}(e)&&!1!==J(o.escapeDeactivates,e))return e.preventDefault(),void n.deactivate();(function(e){return"Tab"===e.key||9===e.keyCode})(e)&&function(e){var t=Q(e);p();var n=null;if(i.tabbableGroups.length>0){var r=s(t),a=r>=0?i.containerGroups[r]:void 0;if(r<0)n=e.shiftKey?i.tabbableGroups[i.tabbableGroups.length-1].lastTabbableNode:i.tabbableGroups[0].firstTabbableNode;else if(e.shiftKey){var c=Y(i.tabbableGroups,(function(e){var n=e.firstTabbableNode;return t===n}));if(c<0&&(a.container===t||$(t,o.tabbableOptions)&&!z(t,o.tabbableOptions)&&!a.nextTabbableNode(t,!1))&&(c=r),c>=0){var u=0===c?i.tabbableGroups.length-1:c-1;n=i.tabbableGroups[u].lastTabbableNode}}else{var f=Y(i.tabbableGroups,(function(e){var n=e.lastTabbableNode;return t===n}));if(f<0&&(a.container===t||$(t,o.tabbableOptions)&&!z(t,o.tabbableOptions)&&!a.nextTabbableNode(t))&&(f=r),f>=0){var m=f===i.tabbableGroups.length-1?0:f+1;n=i.tabbableGroups[m].firstTabbableNode}}}else n=l("fallbackFocus");n&&(e.preventDefault(),d(n))}(e)},b=function(e){var t=Q(e);s(t)>=0||J(o.clickOutsideDeactivates,e)||J(o.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},g=function(){if(i.active)return X.activateTrap(n),i.delayInitialFocusTimer=o.delayInitialFocus?q((function(){d(c())})):d(c()),r.addEventListener("focusin",m,!0),r.addEventListener("mousedown",f,{capture:!0,passive:!1}),r.addEventListener("touchstart",f,{capture:!0,passive:!1}),r.addEventListener("click",b,{capture:!0,passive:!1}),r.addEventListener("keydown",h,{capture:!0,passive:!1}),n},v=function(){if(i.active)return r.removeEventListener("focusin",m,!0),r.removeEventListener("mousedown",f,!0),r.removeEventListener("touchstart",f,!0),r.removeEventListener("click",b,!0),r.removeEventListener("keydown",h,!0),n};return(n={get active(){return i.active},get paused(){return i.paused},activate:function(e){if(i.active)return this;var t=a(e,"onActivate"),n=a(e,"onPostActivate"),o=a(e,"checkCanFocusTrap");o||p(),i.active=!0,i.paused=!1,i.nodeFocusedBeforeActivation=r.activeElement,t&&t();var s=function(){o&&p(),g(),n&&n()};return o?(o(i.containers.concat()).then(s,s),this):(s(),this)},deactivate:function(e){if(!i.active)return this;var t=K({onDeactivate:o.onDeactivate,onPostDeactivate:o.onPostDeactivate,checkCanReturnFocus:o.checkCanReturnFocus},e);clearTimeout(i.delayInitialFocusTimer),i.delayInitialFocusTimer=void 0,v(),i.active=!1,i.paused=!1,X.deactivateTrap(n);var r=a(t,"onDeactivate"),s=a(t,"onPostDeactivate"),l=a(t,"checkCanReturnFocus"),c=a(t,"returnFocus","returnFocusOnDeactivate");r&&r();var p=function(){q((function(){c&&d(u(i.nodeFocusedBeforeActivation)),s&&s()}))};return c&&l?(l(u(i.nodeFocusedBeforeActivation)).then(p,p),this):(p(),this)},pause:function(){return i.paused||!i.active||(i.paused=!0,v()),this},unpause:function(){return i.paused&&i.active?(i.paused=!1,p(),g(),this):this},updateContainerElements:function(e){var t=[].concat(e).filter(Boolean);return i.containers=t.map((function(e){return"string"==typeof e?r.querySelector(e):e})),i.active&&p(),this}}).updateContainerElements(e),n};class ee extends o.Component{constructor(e){super(e),this.divRef=o.createRef(),"undefined"!=typeof document&&(this.previouslyFocusedElement=document.activeElement)}componentDidMount(){this.focusTrap=Z(this.divRef.current,Object.assign(Object.assign({},this.props.focusTrapOptions),{returnFocusOnDeactivate:!1})),this.props.active&&this.focusTrap.activate(),this.props.paused&&this.focusTrap.pause()}componentDidUpdate(e){e.active&&!this.props.active?this.focusTrap.deactivate():!e.active&&this.props.active&&this.focusTrap.activate(),e.paused&&!this.props.paused?this.focusTrap.unpause():!e.paused&&this.props.paused&&this.focusTrap.pause()}componentWillUnmount(){this.focusTrap.deactivate(),!1!==this.props.focusTrapOptions.returnFocusOnDeactivate&&this.previouslyFocusedElement&&this.previouslyFocusedElement.focus&&this.previouslyFocusedElement.focus({preventScroll:this.props.preventScrollOnDeactivate})}render(){const e=this.props,{children:t,className:n,focusTrapOptions:r,active:i,paused:a,preventScrollOnDeactivate:l}=e,c=s(e,["children","className","focusTrapOptions","active","paused","preventScrollOnDeactivate"]);return o.createElement("div",Object.assign({ref:this.divRef,className:n},c),t)}}ee.displayName="FocusTrap",ee.defaultProps={active:!0,paused:!1,focusTrapOptions:{},preventScrollOnDeactivate:!1};let te=0;class ne extends o.Component{constructor(){super(...arguments),this.id=`${this.props.prefix}${te++}`}render(){return this.props.children(this.id)}}ne.displayName="GenerateId",ne.defaultProps={prefix:"pf-random-id-"};let re=0;const oe="OUIA-Generated-",ie={};function ae(e,t,n=!0){return{"data-ouia-component-type":`PF4/${e}`,"data-ouia-safe":n,"data-ouia-component-id":t}}const se=(e,t,n=!0,r)=>({"data-ouia-component-type":`PF4/${e}`,"data-ouia-safe":n,"data-ouia-component-id":le(e,t,r)}),le=(e,n,r)=>void 0!==n?n:t.useMemo((()=>ce(e,r)),[e,r]);function ce(e,t){try{let n;return n="undefined"!=typeof window?`${window.location.href}-${e}-${t||""}`:`${e}-${t||""}`,ie[n]||(ie[n]=0),`${oe}${e}-${t?`${t}-`:""}${++ie[n]}`}catch(n){return`${oe}${e}-${t?`${t}-`:""}${++re}`}}function pe(e="pf"){return`${e}-${(new Date).getTime()+Math.random().toString(36).slice(2)}`}function de(e,t){let n;return(...r)=>{clearTimeout(n),n=setTimeout((()=>e.apply(this,r)),t)}}function ue(e,t,n,r,o,a=!1){if(!Array.isArray(o))return;const s=r.filter((e=>e))[0].constructor===Array;let l=e,c=t;if("up"===n?l=0===e?o.length-1:e-1:"down"===n?l=e===o.length-1?0:e+1:"left"===n?c=0===t?r[e].length-1:t-1:"right"===n&&(c=t===r[e].length-1?0:t+1),null===r[l]||void 0===r[l]||s&&(null===r[l][c]||void 0===r[l][c]))ue(l,c,n,r,o,a);else if(a){r[l].focus&&r[l].focus();i.findDOMNode(r[l]).focus()}else"tab"!==n&&(s?r[l][c].focus():r[l].focus())}function fe(e,t){const n=e.current.querySelectorAll(t);return Array.prototype.filter.call(n,(function(e){return e.tabIndex>="0"}))}function me(e,t,n){let r;return r="up"===t?0===e?n.length-1:e-1:e===n.length-1?0:e+1,void 0===n[r]||null===n[r][0]?me(r,t,n):r}const he=(e,t,n="",r)=>{if(!e)return"";if(r){if(r in e)return t.modifiers[ge(`${n}${e[r]}`)];const o=["2xl","xl","lg","md","sm","default"];for(let i=o.indexOf(r);i<o.length;i++)if(o[i]in e)return t.modifiers[ge(`${n}${e[o[i]]}`)];return""}return Object.entries(e||{}).map((([e,t])=>`${n}${t}${"default"!==e?`-on-${e}`:""}`)).map(ge).map((e=>e.replace(/-?(\dxl)/gi,((e,t)=>`_${t}`)))).map((e=>t.modifiers[e])).filter(Boolean).join(" ")},be=e=>e.toUpperCase().replace("-","").replace("_",""),ge=e=>e.replace(/([-_][a-z])/gi,be),ve=!("undefined"==typeof window||!window.document||!window.document.createElement),ye=(e,t)=>{const n=getComputedStyle(t),r=document.createElement("canvas").getContext("2d");return r.font=n.font||(()=>{let e="";const t={"50%":"ultra-condensed","62.5%":"extra-condensed","75%":"condensed","87.5%":"semi-condensed","100%":"normal","112.5%":"semi-expanded","125%":"expanded","150%":"extra-expanded","200%":"ultra-expanded"};let r;return r=n.fontStretch in t?t[n.fontStretch]:"normal",e=n.fontStyle+" "+n.fontVariant+" "+n.fontWeight+" "+r+" "+n.fontSize+"/"+n.lineHeight+" "+n.fontFamily,e})(),r.measureText(e).width},we=(e,t)=>{const n=(e=>{const t=getComputedStyle(e);let n=e.clientWidth,r=e.clientHeight;return r-=parseFloat(t.paddingTop)+parseFloat(t.paddingBottom),n-=parseFloat(t.paddingLeft)+parseFloat(t.paddingRight),{height:r,width:n}})(e).width;let r=t;if(ye(t,e)>n){for(;ye(`...${r}`,e)>n;)r=r.substring(1);e.value?e.value=`...${r}`:e.innerText=`...${r}`}else e.value?e.value=t:e.innerText=t};class xe extends o.Component{componentDidMount(){const e=i.findDOMNode(this);this.props.onFoundRef(e)}render(){return this.props.children||null}}function Oe(e){const t=e.getBoundingClientRect();return{width:t.width,height:t.height,top:t.top,right:t.right,bottom:t.bottom,left:t.left,x:t.left,y:t.top}}function Ce(e){if("[object Window]"!==e.toString()){const t=e.ownerDocument;return t?t.defaultView:window}return e}function Ee(e){const t=Ce(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Ne(e){return e instanceof Ce(e).Element||e instanceof Element}function _e(e){return e instanceof Ce(e).HTMLElement||e instanceof HTMLElement}function Se(e){return e?(e.nodeName||"").toLowerCase():null}function Te(e){return(Ne(e)?e.ownerDocument:e.document).documentElement}function Re(e){return Oe(Te(e)).left+Ee(e).scrollLeft}function ke(e){return Ce(e).getComputedStyle(e)}function Ie(e){const{overflow:t,overflowX:n,overflowY:r}=ke(e);return/auto|scroll|overlay|hidden/.test(t+r+n)}function De(e,t,n=!1){const r=Te(t),o=Oe(e),i=_e(t);let a={scrollLeft:0,scrollTop:0},s={x:0,y:0};var l,c;return(i||!i&&!n)&&(("body"!==Se(t)||Ie(r))&&(a=(l=t)!==Ce(l)&&_e(l)?{scrollLeft:(c=l).scrollLeft,scrollTop:c.scrollTop}:Ee(l)),_e(t)?(s=Oe(t),s.x+=t.clientLeft,s.y+=t.clientTop):r&&(s.x=Re(r))),{x:o.left+a.scrollLeft-s.x,y:o.top+a.scrollTop-s.y,width:o.width,height:o.height}}function je(e){return{x:e.offsetLeft,y:e.offsetTop,width:e.offsetWidth,height:e.offsetHeight}}function Pe(e){return"html"===Se(e)?e:e.assignedSlot||e.parentNode||e.host||Te(e)}function Ae(e){return["html","body","#document"].indexOf(Se(e))>=0?e.ownerDocument.body:_e(e)&&Ie(e)?e:Ae(Pe(e))}function Le(e,t=[]){const n=Ae(e),r="body"===Se(n),o=Ce(n),i=r?[o].concat(o.visualViewport||[],Ie(n)?n:[]):n,a=t.concat(i);return r?a:a.concat(Le(Pe(i)))}function Fe(e){return["table","td","th"].indexOf(Se(e))>=0}function Me(e){if(!_e(e)||"fixed"===ke(e).position)return null;const t=e.offsetParent;if(t){const e=Te(t);if("body"===Se(t)&&"static"===ke(t).position&&"static"!==ke(e).position)return e}return t}function Be(e){const t=Ce(e);let n=Me(e);for(;n&&Fe(n)&&"static"===ke(n).position;)n=Me(n);return n&&"body"===Se(n)&&"static"===ke(n).position?t:n||function(e){let t=Pe(e);for(;_e(t)&&["html","body"].indexOf(Se(t))<0;){const e=ke(t);if("none"!==e.transform||"none"!==e.perspective||e.willChange&&"auto"!==e.willChange)return t;t=t.parentNode}return null}(e)||t}xe.displayName="FindRefWrapper";const Ve="top",ze="bottom",He="right",$e="left",We="auto",Ke=[Ve,ze,He,$e],Ge="start",Ue="end",Xe="clippingParents",qe="viewport",Ye="popper",Je=Ke.reduce(((e,t)=>e.concat([`${t}-start`,`${t}-end`])),[]),Qe=[...Ke,We].reduce(((e,t)=>e.concat([t,`${t}-start`,`${t}-end`])),[]),Ze=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function et(e){const t=new Map,n=new Set,r=[];function o(e){n.add(e.name);[...e.requires||[],...e.requiresIfExists||[]].forEach((e=>{if(!n.has(e)){const n=t.get(e);n&&o(n)}})),r.push(e)}return e.forEach((e=>{t.set(e.name,e)})),e.forEach((e=>{n.has(e.name)||o(e)})),r}function tt(e){let t;return()=>(t||(t=new Promise((n=>{Promise.resolve().then((()=>{t=void 0,n(e())}))}))),t)}function nt(e){return e.split("-")[0]}function rt(e,t){const n=Boolean(t.getRootNode&&t.getRootNode().host);if(e.contains(t))return!0;if(n){let n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function ot(e){return Object.assign(Object.assign({},e),{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function it(e,t){return t===qe?ot(function(e){const t=Ce(e),n=Te(e),r=t.visualViewport;let o=n.clientWidth,i=n.clientHeight,a=0,s=0;return r&&(o=r.width,i=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=r.offsetLeft,s=r.offsetTop)),{width:o,height:i,x:a+Re(e),y:s}}(e)):_e(t)?function(e){const t=Oe(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):ot(function(e){const t=Te(e),n=Ee(e),r=e.ownerDocument.body,o=Math.max(t.scrollWidth,t.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),i=Math.max(t.scrollHeight,t.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0);let a=-n.scrollLeft+Re(e);const s=-n.scrollTop;return"rtl"===ke(r||t).direction&&(a+=Math.max(t.clientWidth,r?r.clientWidth:0)-o),{width:o,height:i,x:a,y:s}}(Te(e)))}function at(e,t,n){const r="clippingParents"===t?function(e){const t=Le(Pe(e)),n=["absolute","fixed"].indexOf(ke(e).position)>=0&&_e(e)?Be(e):e;return Ne(n)?t.filter((e=>Ne(e)&&rt(e,n)&&"body"!==Se(e))):[]}(e):[].concat(t),o=[...r,n],i=o[0],a=o.reduce(((t,n)=>{const r=it(e,n);return t.top=Math.max(r.top,t.top),t.right=Math.min(r.right,t.right),t.bottom=Math.min(r.bottom,t.bottom),t.left=Math.max(r.left,t.left),t}),it(e,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function st(e){return e.split("-")[1]}function lt(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ct({reference:e,element:t,placement:n}){const r=n?nt(n):null,o=n?st(n):null,i=e.x+e.width/2-t.width/2,a=e.y+e.height/2-t.height/2;let s;switch(r){case Ve:s={x:i,y:e.y-t.height};break;case ze:s={x:i,y:e.y+e.height};break;case He:s={x:e.x+e.width,y:a};break;case $e:s={x:e.x-t.width,y:a};break;default:s={x:e.x,y:e.y}}const l=r?lt(r):null;if(null!=l){const n="y"===l?"height":"width";switch(o){case Ge:s[l]=Math.floor(s[l])-Math.floor(e[n]/2-t[n]/2);break;case Ue:s[l]=Math.floor(s[l])+Math.ceil(e[n]/2-t[n]/2)}}return s}function pt(e){return Object.assign(Object.assign({},{top:0,right:0,bottom:0,left:0}),e)}function dt(e,t){return t.reduce(((t,n)=>(t[n]=e,t)),{})}function ut(e,t={}){const{placement:n=e.placement,boundary:r=Xe,rootBoundary:o=qe,elementContext:i=Ye,altBoundary:a=!1,padding:s=0}=t,l=pt("number"!=typeof s?s:dt(s,Ke)),c=i===Ye?"reference":Ye,p=e.elements.reference,d=e.rects.popper,u=e.elements[a?c:i],f=at(Ne(u)?u:u.contextElement||Te(e.elements.popper),r,o),m=Oe(p),h=ct({reference:m,element:d,strategy:"absolute",placement:n}),b=ot(Object.assign(Object.assign({},d),h)),g=i===Ye?b:m,v={top:f.top-g.top+l.top,bottom:g.bottom-f.bottom+l.bottom,left:f.left-g.left+l.left,right:g.right-f.right+l.right},y=e.modifiersData.offset;if(i===Ye&&y){const e=y[n];Object.keys(v).forEach((t=>{const n=[He,ze].indexOf(t)>=0?1:-1,r=[Ve,ze].indexOf(t)>=0?"y":"x";v[t]+=e[r]*n}))}return v}const ft={placement:"bottom",modifiers:[],strategy:"absolute"};function mt(...e){return!e.some((e=>!(e&&"function"==typeof e.getBoundingClientRect)))}const ht={passive:!0};const bt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function gt({popper:e,popperRect:t,placement:n,offsets:r,position:o,gpuAcceleration:i,adaptive:a}){let{x:s,y:l}=function({x:e,y:t}){const n=window.devicePixelRatio||1;return{x:Math.round(e*n)/n||0,y:Math.round(t*n)/n||0}}(r);const c=r.hasOwnProperty("x"),p=r.hasOwnProperty("y");let d=$e,u=Ve;const f=window;if(a){let r=Be(e);r===Ce(e)&&(r=Te(e)),n===Ve&&(u=ze,l-=r.clientHeight-t.height,l*=i?1:-1),n===$e&&(d=He,s-=r.clientWidth-t.width,s*=i?1:-1)}const m=Object.assign({position:o},a&&bt);return i?Object.assign(Object.assign({},m),{[u]:p?"0":"",[d]:c?"0":"",transform:(f.devicePixelRatio||1)<2?`translate(${s}px, ${l}px)`:`translate3d(${s}px, ${l}px, 0)`}):Object.assign(Object.assign({},m),{[u]:p?`${l}px`:"",[d]:c?`${s}px`:"",transform:""})}var vt={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function({state:e,options:t,name:n}){const{offset:r=[0,0]}=t,o=Qe.reduce(((t,n)=>(t[n]=function(e,t,n){const r=nt(e),o=[$e,Ve].indexOf(r)>=0?-1:1;let[i,a]="function"==typeof n?n(Object.assign(Object.assign({},t),{placement:e})):n;return i=i||0,a=(a||0)*o,[$e,He].indexOf(r)>=0?{x:a,y:i}:{x:i,y:a}}(n,e.rects,r),t)),{}),{x:i,y:a}=o[e.placement];null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=i,e.modifiersData.popperOffsets.y+=a),e.modifiersData[n]=o}};const yt={left:"right",right:"left",bottom:"top",top:"bottom"};function wt(e){return e.replace(/left|right|bottom|top/g,(e=>yt[e]))}const xt={start:"end",end:"start"};function Ot(e){return e.replace(/start|end/g,(e=>xt[e]))}function Ct(e,t={}){const{placement:n,boundary:r,rootBoundary:o,padding:i,flipVariations:a,allowedAutoPlacements:s=Qe}=t,l=st(n),c=l?a?Je:Je.filter((e=>st(e)===l)):Ke;let p=c.filter((e=>s.indexOf(e)>=0));0===p.length&&(p=c);const d=p.reduce(((t,n)=>(t[n]=ut(e,{placement:n,boundary:r,rootBoundary:o,padding:i})[nt(n)],t)),{});return Object.keys(d).sort(((e,t)=>d[e]-d[t]))}var Et={name:"flip",enabled:!0,phase:"main",fn:function({state:e,options:t,name:n}){if(e.modifiersData[n]._skip)return;const{mainAxis:r=!0,altAxis:o=!0,fallbackPlacements:i,padding:a,boundary:s,rootBoundary:l,altBoundary:c,flipVariations:p=!0,allowedAutoPlacements:d}=t,u=e.options.placement,f=nt(u),m=[u,...i||(f===u||!p?[wt(u)]:function(e){if(nt(e)===We)return[];const t=wt(e);return[Ot(e),t,Ot(t)]}(u))].reduce(((t,n)=>t.concat(nt(n)===We?Ct(e,{placement:n,boundary:s,rootBoundary:l,padding:a,flipVariations:p,allowedAutoPlacements:d}):n)),[]),h=e.rects.reference,b=e.rects.popper,g=new Map;let v=!0,y=m[0];for(let t=0;t<m.length;t++){const n=m[t],i=nt(n),p=st(n)===Ge,d=[Ve,ze].indexOf(i)>=0,u=d?"width":"height",f=ut(e,{placement:n,boundary:s,rootBoundary:l,altBoundary:c,padding:a});let w=d?p?He:$e:p?ze:Ve;h[u]>b[u]&&(w=wt(w));const x=wt(w),O=[];if(r&&O.push(f[i]<=0),o&&O.push(f[w]<=0,f[x]<=0),O.every((e=>e))){y=n,v=!1;break}g.set(n,O)}if(v){for(let e=p?3:1;e>0;e--){const t=m.find((t=>{const n=g.get(t);if(n)return n.slice(0,e).every((e=>e))}));if(t){y=t;break}}}e.placement!==y&&(e.modifiersData[n]._skip=!0,e.placement=y,e.reset=!0)},requiresIfExists:["offset"],data:{_skip:!1}};function Nt(e,t,n){return Math.max(e,Math.min(t,n))}var _t={name:"preventOverflow",enabled:!0,phase:"main",fn:function({state:e,options:t,name:n}){const{mainAxis:r=!0,altAxis:o=!1,boundary:i,rootBoundary:a,altBoundary:s,padding:l,tether:c=!0,tetherOffset:p=0}=t,d=ut(e,{boundary:i,rootBoundary:a,padding:l,altBoundary:s}),u=nt(e.placement),f=st(e.placement),m=!f,h=lt(u),b="x"===h?"y":"x",g=e.modifiersData.popperOffsets,v=e.rects.reference,y=e.rects.popper,w="function"==typeof p?p(Object.assign(Object.assign({},e.rects),{placement:e.placement})):p,x={x:0,y:0};if(g){if(r){const t="y"===h?Ve:$e,n="y"===h?ze:He,r="y"===h?"height":"width",o=g[h],i=g[h]+d[t],a=g[h]-d[n],s=c?-y[r]/2:0,l=f===Ge?v[r]:y[r],p=f===Ge?-y[r]:-v[r],u=e.elements.arrow,b=c&&u?je(u):{width:0,height:0},O=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},C=O[t],E=O[n],N=Nt(0,v[r],b[r]),_=m?v[r]/2-s-N-C-w:l-N-C-w,S=m?-v[r]/2+s+N+E+w:p+N+E+w,T=e.elements.arrow&&Be(e.elements.arrow),R=T?"y"===h?T.clientTop||0:T.clientLeft||0:0,k=e.modifiersData.offset?e.modifiersData.offset[e.placement][h]:0,I=g[h]+_-k-R,D=g[h]+S-k,j=Nt(c?Math.min(i,I):i,o,c?Math.max(a,D):a);g[h]=j,x[h]=j-o}if(o){const e="x"===h?Ve:$e,t="x"===h?ze:He,n=g[b],r=Nt(n+d[e],n,n-d[t]);g[b]=r,x[b]=r-n}e.modifiersData[n]=x}},requiresIfExists:["offset"]};var St={name:"arrow",enabled:!0,phase:"main",fn:function({state:e,name:t}){const n=e.elements.arrow,r=e.modifiersData.popperOffsets,o=nt(e.placement),i=lt(o),a=[$e,He].indexOf(o)>=0?"height":"width";if(!n||!r)return;const s=e.modifiersData[`${t}#persistent`].padding,l=je(n),c="y"===i?Ve:$e,p="y"===i?ze:He,d=e.rects.reference[a]+e.rects.reference[i]-r[i]-e.rects.popper[a],u=r[i]-e.rects.reference[i],f=Be(n),m=f?"y"===i?f.clientHeight||0:f.clientWidth||0:0,h=d/2-u/2,b=s[c],g=m-l[a]-s[p],v=m/2-l[a]/2+h,y=Nt(b,v,g),w=i;e.modifiersData[t]={[w]:y,centerOffset:y-v}},effect:function({state:e,options:t,name:n}){let{element:r="[data-popper-arrow]",padding:o=0}=t;null!=r&&("string"!=typeof r||(r=e.elements.popper.querySelector(r),r))&&rt(e.elements.popper,r)&&(e.elements.arrow=r,e.modifiersData[`${n}#persistent`]={padding:pt("number"!=typeof o?o:dt(o,Ke))})},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Tt(e,t,n={x:0,y:0}){return{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Rt(e){return[Ve,He,ze,$e].some((t=>e[t]>=0))}const kt=function(e={}){const{defaultModifiers:t=[],defaultOptions:n=ft}=e;return function(e,r,o=n){let i={placement:"bottom",orderedModifiers:[],options:Object.assign(Object.assign({},ft),n),modifiersData:{},elements:{reference:e,popper:r},attributes:{},styles:{}},a=[],s=!1;const l={state:i,setOptions(o){c(),i.options=Object.assign(Object.assign(Object.assign({},n),i.options),o),i.scrollParents={reference:Ne(e)?Le(e):e.contextElement?Le(e.contextElement):[],popper:Le(r)};const s=function(e){const t=et(e);return Ze.reduce(((e,n)=>e.concat(t.filter((e=>e.phase===n)))),[])}(function(e){const t=e.reduce(((e,t)=>{const n=e[t.name];return e[t.name]=n?Object.assign(Object.assign(Object.assign({},n),t),{options:Object.assign(Object.assign({},n.options),t.options),data:Object.assign(Object.assign({},n.data),t.data)}):t,e}),{});return Object.keys(t).map((e=>t[e]))}([...t,...i.options.modifiers]));return i.orderedModifiers=s.filter((e=>e.enabled)),i.orderedModifiers.forEach((({name:e,options:t={},effect:n})=>{if("function"==typeof n){const r=n({state:i,name:e,instance:l,options:t}),o=()=>{};a.push(r||o)}})),l.update()},forceUpdate(){if(s)return;const{reference:e,popper:t}=i.elements;if(mt(e,t)){i.rects={reference:De(e,Be(t),"fixed"===i.options.strategy),popper:je(t)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach((e=>i.modifiersData[e.name]=Object.assign({},e.data)));for(let e=0;e<i.orderedModifiers.length;e++){if(!0===i.reset){i.reset=!1,e=-1;continue}const{fn:t,options:n={},name:r}=i.orderedModifiers[e];"function"==typeof t&&(i=t({state:i,options:n,name:r,instance:l})||i)}}},update:tt((()=>new Promise((e=>{l.forceUpdate(),e(i)})))),destroy(){c(),s=!0}};if(!mt(e,r))return l;function c(){a.forEach((e=>e())),a=[]}return l.setOptions(o).then((e=>{!s&&o.onFirstUpdate&&o.onFirstUpdate(e)})),l}}({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:()=>{},effect:function({state:e,instance:t,options:n}){const{scroll:r=!0,resize:o=!0}=n,i=Ce(e.elements.popper),a=[...e.scrollParents.reference,...e.scrollParents.popper];return r&&a.forEach((e=>{e.addEventListener("scroll",t.update,ht)})),o&&i.addEventListener("resize",t.update,ht),()=>{r&&a.forEach((e=>{e.removeEventListener("scroll",t.update,ht)})),o&&i.removeEventListener("resize",t.update,ht)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function({state:e,name:t}){e.modifiersData[t]=ct({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function({state:e,options:t}){const{gpuAcceleration:n=!0,adaptive:r=!0}=t,o={placement:nt(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:n};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign(Object.assign({},e.styles.popper),gt(Object.assign(Object.assign({},o),{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:r})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign(Object.assign({},e.styles.arrow),gt(Object.assign(Object.assign({},o),{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1})))),e.attributes.popper=Object.assign(Object.assign({},e.attributes.popper),{"data-popper-placement":e.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function({state:e}){Object.keys(e.elements).forEach((t=>{const n=e.styles[t]||{},r=e.attributes[t]||{},o=e.elements[t];_e(o)&&Se(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((e=>{const t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function({state:e}){const t={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,t.popper),e.elements.arrow&&Object.assign(e.elements.arrow.style,t.arrow),()=>{Object.keys(e.elements).forEach((n=>{const r=e.elements[n],o=e.attributes[n]||{},i=Object.keys(e.styles.hasOwnProperty(n)?e.styles[n]:t[n]).reduce(((e,t)=>(e[t]="",e)),{});_e(r)&&Se(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((e=>{r.removeAttribute(e)})))}))}},requires:["computeStyles"]},vt,Et,_t,St,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function({state:e,name:t}){const n=e.rects.reference,r=e.rects.popper,o=e.modifiersData.preventOverflow,i=ut(e,{elementContext:"reference"}),a=ut(e,{altBoundary:!0}),s=Tt(i,n),l=Tt(a,r,o),c=Rt(s),p=Rt(l);e.modifiersData[t]={referenceClippingOffsets:s,popperEscapeOffsets:l,isReferenceHidden:c,hasPopperEscaped:p},e.attributes.popper=Object.assign(Object.assign({},e.attributes.popper),{"data-popper-reference-hidden":c,"data-popper-escaped":p})}}]}),It=ve?o.useLayoutEffect:o.useEffect,Dt=e=>e.reduce(((e,[t,n])=>(e[t]=n,e)),{}),jt=[],Pt=(e,t,n={})=>{const r=o.useRef(null),i={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||jt},[a,s]=o.useState({styles:{popper:{position:i.strategy,left:"0",top:"0"}},attributes:{}}),l=o.useMemo((()=>({name:"updateState",enabled:!0,phase:"write",fn:({state:e})=>{const t=Object.keys(e.elements);s({styles:Dt(t.map((t=>[t,e.styles[t]||{}]))),attributes:Dt(t.map((t=>[t,e.attributes[t]])))})},requires:["computeStyles"]})),[]),c=o.useMemo((()=>{const e={onFirstUpdate:i.onFirstUpdate,placement:i.placement,strategy:i.strategy,modifiers:[...i.modifiers,l,{name:"applyStyles",enabled:!1}]};return t=r.current,n=e,JSON.stringify(t)===JSON.stringify(n)?r.current||e:(r.current=e,e);var t,n}),[i.onFirstUpdate,i.placement,i.strategy,i.modifiers,l]),p=o.useRef();return It((()=>{p&&p.current&&p.current.setOptions(c)}),[c]),It((()=>{if(null==e||null==t)return;const r=(n.createPopper||kt)(e,t,c);return p.current=r,()=>{r.destroy(),p.current=null}}),[e,t,n.createPopper]),{state:p.current?p.current.state:null,styles:a.styles,attributes:a.attributes,update:p.current?p.current.update:null,forceUpdate:p.current?p.current.forceUpdate:null}},At={left:"right",right:"left",bottom:"top",top:"bottom"},Lt=e=>`opacity ${e}ms cubic-bezier(.54, 1.5, .38, 1.11)`,Ft=({trigger:e,popper:t,popperMatchesTriggerWidth:n=!0,direction:r="down",position:a="left",placement:s,appendTo:c=(()=>document.body),zIndex:p=9999,isVisible:d=!0,positionModifiers:u,distance:f=0,onMouseEnter:m,onMouseLeave:h,onFocus:b,onBlur:g,onDocumentClick:v,onTriggerClick:y,onTriggerEnter:w,onPopperClick:x,onPopperMouseEnter:O,onPopperMouseLeave:C,onDocumentKeyDown:E,enableFlip:N=!0,flipBehavior:_="flip",reference:S})=>{const[T,R]=o.useState(null),[k,I]=o.useState(null),[D,j]=o.useState(null),[P,A]=o.useState(!1),L=k||T,F=o.useCallback((e=>v(e,L,D)),[d,T,k,D,v]);o.useEffect((()=>{A(!0)}),[]),o.useEffect((()=>{S&&(S.current?I(S.current):"function"==typeof S&&I(S()))}),[S]);const M=(e,t,n)=>{e&&t&&t.addEventListener(n,e)},B=(e,t,n)=>{e&&t&&t.removeEventListener(n,e)};o.useEffect((()=>{M(m,L,"mouseenter"),M(h,L,"mouseleave"),M(b,L,"focus"),M(g,L,"blur"),M(y,L,"click"),M(w,L,"keydown"),M(x,D,"click"),M(O,D,"mouseenter"),M(C,D,"mouseleave"),v&&M(F,document,"click"),M(E,document,"keydown");const e=new MutationObserver((()=>{G&&G()}));return D&&e.observe(D,{attributes:!0,childList:!0,subtree:!0}),()=>{B(m,L,"mouseenter"),B(h,L,"mouseleave"),B(b,L,"focus"),B(g,L,"blur"),B(y,L,"click"),B(w,L,"keydown"),B(x,D,"click"),B(O,D,"mouseenter"),B(C,D,"mouseleave"),v&&B(F,document,"click"),B(E,document,"keydown"),e.disconnect()}}),[T,D,m,h,b,g,y,w,x,O,C,v,E,k]);const V=()=>{if(s)return s;let e="up"===r?"top":"bottom";return"center"!==a&&(e=`${e}-${"right"===a?"end":"start"}`),e},z=o.useMemo(V,[r,a,s]),H=o.useMemo((()=>(e=>e.replace(/left|right|bottom|top/g,(e=>At[e])))(V())),[r,a,s]),$=o.useMemo((()=>({name:"sameWidth",enabled:n,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{e.styles.popper.width=`${e.rects.reference.width}px`},effect:({state:e})=>(e.elements.popper.style.width=`${e.elements.reference.offsetWidth}px`,()=>{})})),[n]),{styles:W,attributes:K,update:G}=Pt(L,D,{placement:z,modifiers:[{name:"offset",options:{offset:[0,f]}},{name:"preventOverflow",enabled:!1},{name:"hide",enabled:!0},{name:"flip",enabled:z.startsWith("auto")||N,options:{fallbackPlacements:"flip"===_?[H]:_}},$]}),U=o.cloneElement(t,Object.assign({className:l(t.props&&t.props.className,u&&(()=>{if(K&&K.popper&&K.popper["data-popper-placement"]){const e=K.popper["data-popper-placement"];return u[e]}return u.top})()),style:Object.assign(Object.assign(Object.assign({},t.props&&t.props.style||{}),W.popper),{zIndex:p})},K.popper));return o.createElement(o.Fragment,null,!S&&e&&o.createElement(xe,{onFoundRef:e=>R(e)},e),P&&d&&i.createPortal(o.createElement(xe,{onFoundRef:e=>j(e)},U),"function"==typeof c?c():c))};Ft.displayName="Popper";const Mt=(e,t,n=(e=>document.activeElement.contains(e)),r=(e=>e),o=["A","BUTTON","INPUT"],i=!1,a=!1,s=!0,l=!0)=>{const c=document.activeElement,p=e.key;let d=null;if(!i&&["ArrowUp","ArrowDown"].includes(p)){e.preventDefault(),e.stopImmediatePropagation();let o=-1;t.forEach(((e,i)=>{if(n(e)){let e=0;for(;!d&&e<t.length&&-1*e<t.length;)"ArrowUp"===p?e--:e++,o=i+e,o>=t.length&&(o=0),o<0&&(o=t.length-1),d=r(t[o])}}))}if(!a&&["ArrowLeft","ArrowRight"].includes(p)){e.preventDefault(),e.stopImmediatePropagation();let r=-1;t.forEach(((i,a)=>{if(n(i)){const n=t[a].querySelectorAll(o.join(","));if(!n.length||l){let e=c;for(;e;)if(e="ArrowLeft"===p?e.previousElementSibling:e.nextElementSibling,e&&o.includes(e.tagName)){d=e;break}}else n.forEach(((t,o)=>{if(e.target===t){r=o+("ArrowLeft"===p?-1:1),r>=n.length&&(r=0),r<0&&(r=n.length-1),d=n[r]}}))}}))}d&&(s&&(c.tabIndex=-1,d.tabIndex=0),d.focus())};class Bt extends o.Component{constructor(){super(...arguments),this.keyHandler=e=>{const{isEventFromContainer:t}=this.props;if(t?!t(e):!this._isEventFromContainer(e))return;const{isActiveElement:n,getFocusableElement:r,noVerticalArrowHandling:o,noHorizontalArrowHandling:i,noEnterHandling:a,noSpaceHandling:s,updateTabIndex:l,validSiblingTags:c,additionalKeyHandler:p,createNavigableElements:d,onlyTraverseSiblings:u}=this.props;p&&p(e);const f=d();if(!f)return void console.warn("No navigable elements have been passed to the KeyboardHandler. Keyboard navigation provided by this component will be ignored.");const m=e.key;a||"Enter"===m&&(e.preventDefault(),e.stopImmediatePropagation(),document.activeElement.click()),s||" "===m&&(e.preventDefault(),e.stopImmediatePropagation(),document.activeElement.click()),Mt(e,f,n,r,c,o,i,l,u)},this._isEventFromContainer=e=>{const{containerRef:t}=this.props;return t.current&&t.current.contains(e.target)}}componentDidMount(){ve&&window.addEventListener("keydown",this.keyHandler)}componentWillUnmount(){ve&&window.removeEventListener("keydown",this.keyHandler)}render(){return null}}Bt.displayName="KeyboardHandler",Bt.defaultProps={containerRef:null,createNavigableElements:()=>null,isActiveElement:e=>document.activeElement===e,getFocusableElement:e=>e,validSiblingTags:["BUTTON","A"],onlyTraverseSiblings:!0,updateTabIndex:!0,noHorizontalArrowHandling:!1,noVerticalArrowHandling:!1,noEnterHandling:!1,noSpaceHandling:!1};Promise.resolve().then((function(){return Fu}));var Vt="pf-l-bullseye";Promise.resolve().then((function(){return Mu}));var zt,Ht,$t={modifiers:{"4xl":"pf-m-4xl","3xl":"pf-m-3xl","2xl":"pf-m-2xl",xl:"pf-m-xl",lg:"pf-m-lg",md:"pf-m-md",overpassFont:"pf-m-overpass-font"},title:"pf-c-title"};!function(e){e.md="md",e.lg="lg",e.xl="xl",e["2xl"]="2xl",e["3xl"]="3xl",e["4xl"]="4xl"}(zt||(zt={})),function(e){e.h1="2xl",e.h2="xl",e.h3="lg",e.h4="md",e.h5="md",e.h6="md"}(Ht||(Ht={}));const Wt=e=>{var{className:t="",children:n="",headingLevel:r,size:i=Ht[r],ouiaId:a,ouiaSafe:c=!0}=e,p=s(e,["className","children","headingLevel","size","ouiaId","ouiaSafe"]);const d=se(Wt.displayName,a,c);return o.createElement(r,Object.assign({},d,p,{className:l($t.title,i&&$t.modifiers[i],t)}),n)};Wt.displayName="Title",Promise.resolve().then((function(){return Bu}));var Kt={button:"pf-c-button",buttonIcon:"pf-c-button__icon",buttonProgress:"pf-c-button__progress",modifiers:{active:"pf-m-active",block:"pf-m-block",small:"pf-m-small",primary:"pf-m-primary",displayLg:"pf-m-display-lg",secondary:"pf-m-secondary",tertiary:"pf-m-tertiary",link:"pf-m-link",inline:"pf-m-inline",danger:"pf-m-danger",warning:"pf-m-warning",control:"pf-m-control",expanded:"pf-m-expanded",plain:"pf-m-plain",disabled:"pf-m-disabled",ariaDisabled:"pf-m-aria-disabled",progress:"pf-m-progress",inProgress:"pf-m-in-progress",start:"pf-m-start",end:"pf-m-end",overpassFont:"pf-m-overpass-font"},spinner:"pf-c-spinner",themeDark:"pf-theme-dark"};Promise.resolve().then((function(){return Vu}));var Gt,Ut={modifiers:{sm:"pf-m-sm",md:"pf-m-md",lg:"pf-m-lg",xl:"pf-m-xl"},spinner:"pf-c-spinner",spinnerClipper:"pf-c-spinner__clipper",spinnerLeadBall:"pf-c-spinner__lead-ball",spinnerPath:"pf-c-spinner__path",spinnerTailBall:"pf-c-spinner__tail-ball"};!function(e){e.sm="sm",e.md="md",e.lg="lg",e.xl="xl"}(Gt||(Gt={}));const Xt=e=>{var{className:t="",size:n="xl","aria-valuetext":r="Loading...",isSVG:i=!1,diameter:a,"aria-label":c,"aria-labelledBy":p}=e,d=s(e,["className","size","aria-valuetext","isSVG","diameter","aria-label","aria-labelledBy"]);const u=i?"svg":"span";return o.createElement(u,Object.assign({className:l(Ut.spinner,Ut.modifiers[n],t),role:"progressbar","aria-valuetext":r},i&&{viewBox:"0 0 100 100"},a&&{style:{"--pf-c-spinner--diameter":a}},c&&{"aria-label":c},p&&{"aria-labelledBy":p},!c&&!p&&{"aria-label":"Contents"},d),i?o.createElement("circle",{className:Ut.spinnerPath,cx:"50",cy:"50",r:"45",fill:"none"}):o.createElement(o.Fragment,null,o.createElement("span",{className:l(Ut.spinnerClipper)}),o.createElement("span",{className:l(Ut.spinnerLeadBall)}),o.createElement("span",{className:l(Ut.spinnerTailBall)})))};var qt,Yt;Xt.displayName="Spinner",function(e){e.primary="primary",e.secondary="secondary",e.tertiary="tertiary",e.danger="danger",e.warning="warning",e.link="link",e.plain="plain",e.control="control"}(qt||(qt={})),function(e){e.button="button",e.submit="submit",e.reset="reset"}(Yt||(Yt={}));const Jt=e=>{var{children:t=null,className:n="",component:r="button",isActive:i=!1,isBlock:a=!1,isDisabled:c=!1,isAriaDisabled:p=!1,isLoading:d=null,isDanger:u=!1,spinnerAriaValueText:f,spinnerAriaLabelledBy:m,spinnerAriaLabel:h,isSmall:b=!1,isLarge:g=!1,inoperableEvents:v=["onClick","onKeyPress"],isInline:y=!1,type:w=Yt.button,variant:x=qt.primary,iconPosition:O="left","aria-label":C=null,icon:E=null,ouiaId:N,ouiaSafe:_=!0,tabIndex:S=null,innerRef:T}=e,R=s(e,["children","className","component","isActive","isBlock","isDisabled","isAriaDisabled","isLoading","isDanger","spinnerAriaValueText","spinnerAriaLabelledBy","spinnerAriaLabel","isSmall","isLarge","inoperableEvents","isInline","type","variant","iconPosition","aria-label","icon","ouiaId","ouiaSafe","tabIndex","innerRef"]);const k=se(Qt.displayName,N,_,x),I=r,D="button"===I,j=y&&"span"===I,P=v.reduce(((e,t)=>Object.assign(Object.assign({},e),{[t]:e=>{e.preventDefault()}})),{});return o.createElement(I,Object.assign({},R,p?P:null,{"aria-disabled":c||p,"aria-label":C,className:l(Kt.button,Kt.modifiers[x],a&&Kt.modifiers.block,c&&Kt.modifiers.disabled,p&&Kt.modifiers.ariaDisabled,i&&Kt.modifiers.active,y&&x===qt.link&&Kt.modifiers.inline,u&&(x===qt.secondary||x===qt.link)&&Kt.modifiers.danger,null!==d&&null!==t&&Kt.modifiers.progress,d&&Kt.modifiers.inProgress,b&&Kt.modifiers.small,g&&Kt.modifiers.displayLg,n),disabled:D?c:null,tabIndex:null!==S?S:c?D?null:-1:p?null:j?0:void 0,type:D||j?w:null,role:j?"button":null,ref:T},k),d&&o.createElement("span",{className:l(Kt.buttonProgress)},o.createElement(Xt,{size:Gt.md,"aria-valuetext":f,"aria-label":h,"aria-labelledby":m})),x===qt.plain&&null===t&&E?E:null,x!==qt.plain&&E&&"left"===O&&o.createElement("span",{className:l(Kt.buttonIcon,Kt.modifiers.start)},E),t,x!==qt.plain&&E&&"right"===O&&o.createElement("span",{className:l(Kt.buttonIcon,Kt.modifiers.end)},E))},Qt=o.forwardRef(((e,t)=>o.createElement(Jt,Object.assign({innerRef:t},e))));var Zt;Qt.displayName="Button",function(e){e.sm="sm",e.md="md",e.lg="lg",e.xl="xl"}(Zt||(Zt={}));let en=0;function tn({name:e,xOffset:t=0,yOffset:n=0,width:r,height:i,svgPath:a}){var s;return s=class extends o.Component{constructor(){super(...arguments),this.id="icon-title-"+en++}render(){const e=this.props,{size:s,color:l,title:c,noVerticalAlign:p}=e,d=
|
|
39
|
+
function W(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function K(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?W(Object(n),!0).forEach((function(t){G(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):W(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function G(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var U,X=(U=[],{activateTrap:function(e){if(U.length>0){var t=U[U.length-1];t!==e&&t.pause()}var n=U.indexOf(e);-1===n||U.splice(n,1),U.push(e)},deactivateTrap:function(e){var t=U.indexOf(e);-1!==t&&U.splice(t,1),U.length>0&&U[U.length-1].unpause()}}),q=function(e){return setTimeout(e,0)},Y=function(e,t){var n=-1;return e.every((function(e,r){return!t(e)||(n=r,!1)})),n},J=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return"function"==typeof e?e.apply(void 0,n):e},Q=function(e){return e.target.shadowRoot&&"function"==typeof e.composedPath?e.composedPath()[0]:e.target},Z=function(e,t){var n,r=(null==t?void 0:t.document)||document,o=K({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0},t),i={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0},a=function(e,t,n){return e&&void 0!==e[t]?e[t]:o[n||t]},s=function(e){return i.containerGroups.findIndex((function(t){var n=t.container,r=t.tabbableNodes;return n.contains(e)||r.find((function(t){return t===e}))}))},l=function(e){var t=o[e];if("function"==typeof t){for(var n=arguments.length,i=new Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];t=t.apply(void 0,i)}if(!0===t&&(t=void 0),!t){if(void 0===t||!1===t)return t;throw new Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var s=t;if("string"==typeof t&&!(s=r.querySelector(t)))throw new Error("`".concat(e,"` as selector refers to no known node"));return s},c=function(){var e=l("initialFocus");if(!1===e)return!1;if(void 0===e)if(s(r.activeElement)>=0)e=r.activeElement;else{var t=i.tabbableGroups[0];e=t&&t.firstTabbableNode||l("fallbackFocus")}if(!e)throw new Error("Your focus-trap needs to have at least one focusable element");return e},p=function(){if(i.containerGroups=i.containers.map((function(e){var t,n,r=V(e,o.tabbableOptions),i=(t=e,(n=(n=o.tabbableOptions)||{}).getShadowRoot?k([t],n.includeContainer,{filter:L.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):R(t,n.includeContainer,L.bind(null,n)));return{container:e,tabbableNodes:r,focusableNodes:i,firstTabbableNode:r.length>0?r[0]:null,lastTabbableNode:r.length>0?r[r.length-1]:null,nextTabbableNode:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=i.findIndex((function(t){return t===e}));if(!(n<0))return t?i.slice(n+1).find((function(e){return z(e,o.tabbableOptions)})):i.slice(0,n).reverse().find((function(e){return z(e,o.tabbableOptions)}))}}})),i.tabbableGroups=i.containerGroups.filter((function(e){return e.tabbableNodes.length>0})),i.tabbableGroups.length<=0&&!l("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")},d=function e(t){!1!==t&&t!==r.activeElement&&(t&&t.focus?(t.focus({preventScroll:!!o.preventScroll}),i.mostRecentlyFocusedNode=t,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select}(t)&&t.select()):e(c()))},u=function(e){var t=l("setReturnFocus",e);return t||!1!==t&&e},f=function(e){var t=Q(e);s(t)>=0||(J(o.clickOutsideDeactivates,e)?n.deactivate({returnFocus:o.returnFocusOnDeactivate&&!$(t,o.tabbableOptions)}):J(o.allowOutsideClick,e)||e.preventDefault())},m=function(e){var t=Q(e),n=s(t)>=0;n||t instanceof Document?n&&(i.mostRecentlyFocusedNode=t):(e.stopImmediatePropagation(),d(i.mostRecentlyFocusedNode||c()))},h=function(e){if(function(e){return"Escape"===e.key||"Esc"===e.key||27===e.keyCode}(e)&&!1!==J(o.escapeDeactivates,e))return e.preventDefault(),void n.deactivate();(function(e){return"Tab"===e.key||9===e.keyCode})(e)&&function(e){var t=Q(e);p();var n=null;if(i.tabbableGroups.length>0){var r=s(t),a=r>=0?i.containerGroups[r]:void 0;if(r<0)n=e.shiftKey?i.tabbableGroups[i.tabbableGroups.length-1].lastTabbableNode:i.tabbableGroups[0].firstTabbableNode;else if(e.shiftKey){var c=Y(i.tabbableGroups,(function(e){var n=e.firstTabbableNode;return t===n}));if(c<0&&(a.container===t||$(t,o.tabbableOptions)&&!z(t,o.tabbableOptions)&&!a.nextTabbableNode(t,!1))&&(c=r),c>=0){var u=0===c?i.tabbableGroups.length-1:c-1;n=i.tabbableGroups[u].lastTabbableNode}}else{var f=Y(i.tabbableGroups,(function(e){var n=e.lastTabbableNode;return t===n}));if(f<0&&(a.container===t||$(t,o.tabbableOptions)&&!z(t,o.tabbableOptions)&&!a.nextTabbableNode(t))&&(f=r),f>=0){var m=f===i.tabbableGroups.length-1?0:f+1;n=i.tabbableGroups[m].firstTabbableNode}}}else n=l("fallbackFocus");n&&(e.preventDefault(),d(n))}(e)},b=function(e){var t=Q(e);s(t)>=0||J(o.clickOutsideDeactivates,e)||J(o.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},g=function(){if(i.active)return X.activateTrap(n),i.delayInitialFocusTimer=o.delayInitialFocus?q((function(){d(c())})):d(c()),r.addEventListener("focusin",m,!0),r.addEventListener("mousedown",f,{capture:!0,passive:!1}),r.addEventListener("touchstart",f,{capture:!0,passive:!1}),r.addEventListener("click",b,{capture:!0,passive:!1}),r.addEventListener("keydown",h,{capture:!0,passive:!1}),n},v=function(){if(i.active)return r.removeEventListener("focusin",m,!0),r.removeEventListener("mousedown",f,!0),r.removeEventListener("touchstart",f,!0),r.removeEventListener("click",b,!0),r.removeEventListener("keydown",h,!0),n};return(n={get active(){return i.active},get paused(){return i.paused},activate:function(e){if(i.active)return this;var t=a(e,"onActivate"),n=a(e,"onPostActivate"),o=a(e,"checkCanFocusTrap");o||p(),i.active=!0,i.paused=!1,i.nodeFocusedBeforeActivation=r.activeElement,t&&t();var s=function(){o&&p(),g(),n&&n()};return o?(o(i.containers.concat()).then(s,s),this):(s(),this)},deactivate:function(e){if(!i.active)return this;var t=K({onDeactivate:o.onDeactivate,onPostDeactivate:o.onPostDeactivate,checkCanReturnFocus:o.checkCanReturnFocus},e);clearTimeout(i.delayInitialFocusTimer),i.delayInitialFocusTimer=void 0,v(),i.active=!1,i.paused=!1,X.deactivateTrap(n);var r=a(t,"onDeactivate"),s=a(t,"onPostDeactivate"),l=a(t,"checkCanReturnFocus"),c=a(t,"returnFocus","returnFocusOnDeactivate");r&&r();var p=function(){q((function(){c&&d(u(i.nodeFocusedBeforeActivation)),s&&s()}))};return c&&l?(l(u(i.nodeFocusedBeforeActivation)).then(p,p),this):(p(),this)},pause:function(){return i.paused||!i.active||(i.paused=!0,v()),this},unpause:function(){return i.paused&&i.active?(i.paused=!1,p(),g(),this):this},updateContainerElements:function(e){var t=[].concat(e).filter(Boolean);return i.containers=t.map((function(e){return"string"==typeof e?r.querySelector(e):e})),i.active&&p(),this}}).updateContainerElements(e),n};class ee extends o.Component{constructor(e){super(e),this.divRef=o.createRef(),"undefined"!=typeof document&&(this.previouslyFocusedElement=document.activeElement)}componentDidMount(){this.focusTrap=Z(this.divRef.current,Object.assign(Object.assign({},this.props.focusTrapOptions),{returnFocusOnDeactivate:!1})),this.props.active&&this.focusTrap.activate(),this.props.paused&&this.focusTrap.pause()}componentDidUpdate(e){e.active&&!this.props.active?this.focusTrap.deactivate():!e.active&&this.props.active&&this.focusTrap.activate(),e.paused&&!this.props.paused?this.focusTrap.unpause():!e.paused&&this.props.paused&&this.focusTrap.pause()}componentWillUnmount(){this.focusTrap.deactivate(),!1!==this.props.focusTrapOptions.returnFocusOnDeactivate&&this.previouslyFocusedElement&&this.previouslyFocusedElement.focus&&this.previouslyFocusedElement.focus({preventScroll:this.props.preventScrollOnDeactivate})}render(){const e=this.props,{children:t,className:n,focusTrapOptions:r,active:i,paused:a,preventScrollOnDeactivate:l}=e,c=s(e,["children","className","focusTrapOptions","active","paused","preventScrollOnDeactivate"]);return o.createElement("div",Object.assign({ref:this.divRef,className:n},c),t)}}ee.displayName="FocusTrap",ee.defaultProps={active:!0,paused:!1,focusTrapOptions:{},preventScrollOnDeactivate:!1};let te=0;class ne extends o.Component{constructor(){super(...arguments),this.id=`${this.props.prefix}${te++}`}render(){return this.props.children(this.id)}}ne.displayName="GenerateId",ne.defaultProps={prefix:"pf-random-id-"};let re=0;const oe="OUIA-Generated-",ie={};function ae(e,t,n=!0){return{"data-ouia-component-type":`PF4/${e}`,"data-ouia-safe":n,"data-ouia-component-id":t}}const se=(e,t,n=!0,r)=>({"data-ouia-component-type":`PF4/${e}`,"data-ouia-safe":n,"data-ouia-component-id":le(e,t,r)}),le=(e,n,r)=>{const o=t.useMemo((()=>ce(e,r)),[e,r]);return null!=n?n:o};function ce(e,t){try{let n;return n="undefined"!=typeof window?`${window.location.href}-${e}-${t||""}`:`${e}-${t||""}`,ie[n]||(ie[n]=0),`${oe}${e}-${t?`${t}-`:""}${++ie[n]}`}catch(n){return`${oe}${e}-${t?`${t}-`:""}${++re}`}}function pe(e="pf"){return`${e}-${(new Date).getTime()+Math.random().toString(36).slice(2)}`}function de(e,t){let n;return(...r)=>{clearTimeout(n),n=setTimeout((()=>e.apply(this,r)),t)}}function ue(e,t,n,r,o,a=!1){if(!Array.isArray(o))return;const s=r.filter((e=>e))[0].constructor===Array;let l=e,c=t;if("up"===n?l=0===e?o.length-1:e-1:"down"===n?l=e===o.length-1?0:e+1:"left"===n?c=0===t?r[e].length-1:t-1:"right"===n&&(c=t===r[e].length-1?0:t+1),null===r[l]||void 0===r[l]||s&&(null===r[l][c]||void 0===r[l][c]))ue(l,c,n,r,o,a);else if(a){r[l].focus&&r[l].focus();i.findDOMNode(r[l]).focus()}else"tab"!==n&&(s?r[l][c].focus():r[l].focus())}function fe(e,t){const n=e.current.querySelectorAll(t);return Array.prototype.filter.call(n,(function(e){return e.tabIndex>="0"}))}function me(e,t,n){let r;return r="up"===t?0===e?n.length-1:e-1:e===n.length-1?0:e+1,void 0===n[r]||null===n[r][0]?me(r,t,n):r}const he=(e,t,n="",r)=>{if(!e)return"";if(r){if(r in e)return t.modifiers[ge(`${n}${e[r]}`)];const o=["2xl","xl","lg","md","sm","default"];for(let i=o.indexOf(r);i<o.length;i++)if(o[i]in e)return t.modifiers[ge(`${n}${e[o[i]]}`)];return""}return Object.entries(e||{}).map((([e,t])=>`${n}${t}${"default"!==e?`-on-${e}`:""}`)).map(ge).map((e=>e.replace(/-?(\dxl)/gi,((e,t)=>`_${t}`)))).map((e=>t.modifiers[e])).filter(Boolean).join(" ")},be=e=>e.toUpperCase().replace("-","").replace("_",""),ge=e=>e.replace(/([-_][a-z])/gi,be),ve=!("undefined"==typeof window||!window.document||!window.document.createElement),ye=(e,t)=>{const n=getComputedStyle(t),r=document.createElement("canvas").getContext("2d");return r.font=n.font||(()=>{let e="";const t={"50%":"ultra-condensed","62.5%":"extra-condensed","75%":"condensed","87.5%":"semi-condensed","100%":"normal","112.5%":"semi-expanded","125%":"expanded","150%":"extra-expanded","200%":"ultra-expanded"};let r;return r=n.fontStretch in t?t[n.fontStretch]:"normal",e=n.fontStyle+" "+n.fontVariant+" "+n.fontWeight+" "+r+" "+n.fontSize+"/"+n.lineHeight+" "+n.fontFamily,e})(),r.measureText(e).width},we=(e,t)=>{const n=(e=>{const t=getComputedStyle(e);let n=e.clientWidth,r=e.clientHeight;return r-=parseFloat(t.paddingTop)+parseFloat(t.paddingBottom),n-=parseFloat(t.paddingLeft)+parseFloat(t.paddingRight),{height:r,width:n}})(e).width;let r=t;if(ye(t,e)>n){for(;ye(`...${r}`,e)>n;)r=r.substring(1);e.value?e.value=`...${r}`:e.innerText=`...${r}`}else e.value?e.value=t:e.innerText=t};class xe extends o.Component{componentDidMount(){const e=i.findDOMNode(this);this.props.onFoundRef(e)}render(){return this.props.children||null}}function Oe(e){const t=e.getBoundingClientRect();return{width:t.width,height:t.height,top:t.top,right:t.right,bottom:t.bottom,left:t.left,x:t.left,y:t.top}}function Ce(e){if("[object Window]"!==e.toString()){const t=e.ownerDocument;return t?t.defaultView:window}return e}function Ee(e){const t=Ce(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Ne(e){return e instanceof Ce(e).Element||e instanceof Element}function _e(e){return e instanceof Ce(e).HTMLElement||e instanceof HTMLElement}function Se(e){return e?(e.nodeName||"").toLowerCase():null}function Te(e){return(Ne(e)?e.ownerDocument:e.document).documentElement}function Re(e){return Oe(Te(e)).left+Ee(e).scrollLeft}function ke(e){return Ce(e).getComputedStyle(e)}function Ie(e){const{overflow:t,overflowX:n,overflowY:r}=ke(e);return/auto|scroll|overlay|hidden/.test(t+r+n)}function De(e,t,n=!1){const r=Te(t),o=Oe(e),i=_e(t);let a={scrollLeft:0,scrollTop:0},s={x:0,y:0};var l,c;return(i||!i&&!n)&&(("body"!==Se(t)||Ie(r))&&(a=(l=t)!==Ce(l)&&_e(l)?{scrollLeft:(c=l).scrollLeft,scrollTop:c.scrollTop}:Ee(l)),_e(t)?(s=Oe(t),s.x+=t.clientLeft,s.y+=t.clientTop):r&&(s.x=Re(r))),{x:o.left+a.scrollLeft-s.x,y:o.top+a.scrollTop-s.y,width:o.width,height:o.height}}function je(e){return{x:e.offsetLeft,y:e.offsetTop,width:e.offsetWidth,height:e.offsetHeight}}function Pe(e){return"html"===Se(e)?e:e.assignedSlot||e.parentNode||e.host||Te(e)}function Ae(e){return["html","body","#document"].indexOf(Se(e))>=0?e.ownerDocument.body:_e(e)&&Ie(e)?e:Ae(Pe(e))}function Le(e,t=[]){const n=Ae(e),r="body"===Se(n),o=Ce(n),i=r?[o].concat(o.visualViewport||[],Ie(n)?n:[]):n,a=t.concat(i);return r?a:a.concat(Le(Pe(i)))}function Fe(e){return["table","td","th"].indexOf(Se(e))>=0}function Me(e){if(!_e(e)||"fixed"===ke(e).position)return null;const t=e.offsetParent;if(t){const e=Te(t);if("body"===Se(t)&&"static"===ke(t).position&&"static"!==ke(e).position)return e}return t}function Be(e){const t=Ce(e);let n=Me(e);for(;n&&Fe(n)&&"static"===ke(n).position;)n=Me(n);return n&&"body"===Se(n)&&"static"===ke(n).position?t:n||function(e){let t=Pe(e);for(;_e(t)&&["html","body"].indexOf(Se(t))<0;){const e=ke(t);if("none"!==e.transform||"none"!==e.perspective||e.willChange&&"auto"!==e.willChange)return t;t=t.parentNode}return null}(e)||t}xe.displayName="FindRefWrapper";const Ve="top",ze="bottom",He="right",$e="left",We="auto",Ke=[Ve,ze,He,$e],Ge="start",Ue="end",Xe="clippingParents",qe="viewport",Ye="popper",Je=Ke.reduce(((e,t)=>e.concat([`${t}-start`,`${t}-end`])),[]),Qe=[...Ke,We].reduce(((e,t)=>e.concat([t,`${t}-start`,`${t}-end`])),[]),Ze=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function et(e){const t=new Map,n=new Set,r=[];function o(e){n.add(e.name);[...e.requires||[],...e.requiresIfExists||[]].forEach((e=>{if(!n.has(e)){const n=t.get(e);n&&o(n)}})),r.push(e)}return e.forEach((e=>{t.set(e.name,e)})),e.forEach((e=>{n.has(e.name)||o(e)})),r}function tt(e){let t;return()=>(t||(t=new Promise((n=>{Promise.resolve().then((()=>{t=void 0,n(e())}))}))),t)}function nt(e){return e.split("-")[0]}function rt(e,t){const n=Boolean(t.getRootNode&&t.getRootNode().host);if(e.contains(t))return!0;if(n){let n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function ot(e){return Object.assign(Object.assign({},e),{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function it(e,t){return t===qe?ot(function(e){const t=Ce(e),n=Te(e),r=t.visualViewport;let o=n.clientWidth,i=n.clientHeight,a=0,s=0;return r&&(o=r.width,i=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=r.offsetLeft,s=r.offsetTop)),{width:o,height:i,x:a+Re(e),y:s}}(e)):_e(t)?function(e){const t=Oe(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):ot(function(e){const t=Te(e),n=Ee(e),r=e.ownerDocument.body,o=Math.max(t.scrollWidth,t.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),i=Math.max(t.scrollHeight,t.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0);let a=-n.scrollLeft+Re(e);const s=-n.scrollTop;return"rtl"===ke(r||t).direction&&(a+=Math.max(t.clientWidth,r?r.clientWidth:0)-o),{width:o,height:i,x:a,y:s}}(Te(e)))}function at(e,t,n){const r="clippingParents"===t?function(e){const t=Le(Pe(e)),n=["absolute","fixed"].indexOf(ke(e).position)>=0&&_e(e)?Be(e):e;return Ne(n)?t.filter((e=>Ne(e)&&rt(e,n)&&"body"!==Se(e))):[]}(e):[].concat(t),o=[...r,n],i=o[0],a=o.reduce(((t,n)=>{const r=it(e,n);return t.top=Math.max(r.top,t.top),t.right=Math.min(r.right,t.right),t.bottom=Math.min(r.bottom,t.bottom),t.left=Math.max(r.left,t.left),t}),it(e,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function st(e){return e.split("-")[1]}function lt(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ct({reference:e,element:t,placement:n}){const r=n?nt(n):null,o=n?st(n):null,i=e.x+e.width/2-t.width/2,a=e.y+e.height/2-t.height/2;let s;switch(r){case Ve:s={x:i,y:e.y-t.height};break;case ze:s={x:i,y:e.y+e.height};break;case He:s={x:e.x+e.width,y:a};break;case $e:s={x:e.x-t.width,y:a};break;default:s={x:e.x,y:e.y}}const l=r?lt(r):null;if(null!=l){const n="y"===l?"height":"width";switch(o){case Ge:s[l]=Math.floor(s[l])-Math.floor(e[n]/2-t[n]/2);break;case Ue:s[l]=Math.floor(s[l])+Math.ceil(e[n]/2-t[n]/2)}}return s}function pt(e){return Object.assign(Object.assign({},{top:0,right:0,bottom:0,left:0}),e)}function dt(e,t){return t.reduce(((t,n)=>(t[n]=e,t)),{})}function ut(e,t={}){const{placement:n=e.placement,boundary:r=Xe,rootBoundary:o=qe,elementContext:i=Ye,altBoundary:a=!1,padding:s=0}=t,l=pt("number"!=typeof s?s:dt(s,Ke)),c=i===Ye?"reference":Ye,p=e.elements.reference,d=e.rects.popper,u=e.elements[a?c:i],f=at(Ne(u)?u:u.contextElement||Te(e.elements.popper),r,o),m=Oe(p),h=ct({reference:m,element:d,strategy:"absolute",placement:n}),b=ot(Object.assign(Object.assign({},d),h)),g=i===Ye?b:m,v={top:f.top-g.top+l.top,bottom:g.bottom-f.bottom+l.bottom,left:f.left-g.left+l.left,right:g.right-f.right+l.right},y=e.modifiersData.offset;if(i===Ye&&y){const e=y[n];Object.keys(v).forEach((t=>{const n=[He,ze].indexOf(t)>=0?1:-1,r=[Ve,ze].indexOf(t)>=0?"y":"x";v[t]+=e[r]*n}))}return v}const ft={placement:"bottom",modifiers:[],strategy:"absolute"};function mt(...e){return!e.some((e=>!(e&&"function"==typeof e.getBoundingClientRect)))}const ht={passive:!0};const bt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function gt({popper:e,popperRect:t,placement:n,offsets:r,position:o,gpuAcceleration:i,adaptive:a}){let{x:s,y:l}=function({x:e,y:t}){const n=window.devicePixelRatio||1;return{x:Math.round(e*n)/n||0,y:Math.round(t*n)/n||0}}(r);const c=r.hasOwnProperty("x"),p=r.hasOwnProperty("y");let d=$e,u=Ve;const f=window;if(a){let r=Be(e);r===Ce(e)&&(r=Te(e)),n===Ve&&(u=ze,l-=r.clientHeight-t.height,l*=i?1:-1),n===$e&&(d=He,s-=r.clientWidth-t.width,s*=i?1:-1)}const m=Object.assign({position:o},a&&bt);return i?Object.assign(Object.assign({},m),{[u]:p?"0":"",[d]:c?"0":"",transform:(f.devicePixelRatio||1)<2?`translate(${s}px, ${l}px)`:`translate3d(${s}px, ${l}px, 0)`}):Object.assign(Object.assign({},m),{[u]:p?`${l}px`:"",[d]:c?`${s}px`:"",transform:""})}var vt={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function({state:e,options:t,name:n}){const{offset:r=[0,0]}=t,o=Qe.reduce(((t,n)=>(t[n]=function(e,t,n){const r=nt(e),o=[$e,Ve].indexOf(r)>=0?-1:1;let[i,a]="function"==typeof n?n(Object.assign(Object.assign({},t),{placement:e})):n;return i=i||0,a=(a||0)*o,[$e,He].indexOf(r)>=0?{x:a,y:i}:{x:i,y:a}}(n,e.rects,r),t)),{}),{x:i,y:a}=o[e.placement];null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=i,e.modifiersData.popperOffsets.y+=a),e.modifiersData[n]=o}};const yt={left:"right",right:"left",bottom:"top",top:"bottom"};function wt(e){return e.replace(/left|right|bottom|top/g,(e=>yt[e]))}const xt={start:"end",end:"start"};function Ot(e){return e.replace(/start|end/g,(e=>xt[e]))}function Ct(e,t={}){const{placement:n,boundary:r,rootBoundary:o,padding:i,flipVariations:a,allowedAutoPlacements:s=Qe}=t,l=st(n),c=l?a?Je:Je.filter((e=>st(e)===l)):Ke;let p=c.filter((e=>s.indexOf(e)>=0));0===p.length&&(p=c);const d=p.reduce(((t,n)=>(t[n]=ut(e,{placement:n,boundary:r,rootBoundary:o,padding:i})[nt(n)],t)),{});return Object.keys(d).sort(((e,t)=>d[e]-d[t]))}var Et={name:"flip",enabled:!0,phase:"main",fn:function({state:e,options:t,name:n}){if(e.modifiersData[n]._skip)return;const{mainAxis:r=!0,altAxis:o=!0,fallbackPlacements:i,padding:a,boundary:s,rootBoundary:l,altBoundary:c,flipVariations:p=!0,allowedAutoPlacements:d}=t,u=e.options.placement,f=nt(u),m=[u,...i||(f===u||!p?[wt(u)]:function(e){if(nt(e)===We)return[];const t=wt(e);return[Ot(e),t,Ot(t)]}(u))].reduce(((t,n)=>t.concat(nt(n)===We?Ct(e,{placement:n,boundary:s,rootBoundary:l,padding:a,flipVariations:p,allowedAutoPlacements:d}):n)),[]),h=e.rects.reference,b=e.rects.popper,g=new Map;let v=!0,y=m[0];for(let t=0;t<m.length;t++){const n=m[t],i=nt(n),p=st(n)===Ge,d=[Ve,ze].indexOf(i)>=0,u=d?"width":"height",f=ut(e,{placement:n,boundary:s,rootBoundary:l,altBoundary:c,padding:a});let w=d?p?He:$e:p?ze:Ve;h[u]>b[u]&&(w=wt(w));const x=wt(w),O=[];if(r&&O.push(f[i]<=0),o&&O.push(f[w]<=0,f[x]<=0),O.every((e=>e))){y=n,v=!1;break}g.set(n,O)}if(v){for(let e=p?3:1;e>0;e--){const t=m.find((t=>{const n=g.get(t);if(n)return n.slice(0,e).every((e=>e))}));if(t){y=t;break}}}e.placement!==y&&(e.modifiersData[n]._skip=!0,e.placement=y,e.reset=!0)},requiresIfExists:["offset"],data:{_skip:!1}};function Nt(e,t,n){return Math.max(e,Math.min(t,n))}var _t={name:"preventOverflow",enabled:!0,phase:"main",fn:function({state:e,options:t,name:n}){const{mainAxis:r=!0,altAxis:o=!1,boundary:i,rootBoundary:a,altBoundary:s,padding:l,tether:c=!0,tetherOffset:p=0}=t,d=ut(e,{boundary:i,rootBoundary:a,padding:l,altBoundary:s}),u=nt(e.placement),f=st(e.placement),m=!f,h=lt(u),b="x"===h?"y":"x",g=e.modifiersData.popperOffsets,v=e.rects.reference,y=e.rects.popper,w="function"==typeof p?p(Object.assign(Object.assign({},e.rects),{placement:e.placement})):p,x={x:0,y:0};if(g){if(r){const t="y"===h?Ve:$e,n="y"===h?ze:He,r="y"===h?"height":"width",o=g[h],i=g[h]+d[t],a=g[h]-d[n],s=c?-y[r]/2:0,l=f===Ge?v[r]:y[r],p=f===Ge?-y[r]:-v[r],u=e.elements.arrow,b=c&&u?je(u):{width:0,height:0},O=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},C=O[t],E=O[n],N=Nt(0,v[r],b[r]),_=m?v[r]/2-s-N-C-w:l-N-C-w,S=m?-v[r]/2+s+N+E+w:p+N+E+w,T=e.elements.arrow&&Be(e.elements.arrow),R=T?"y"===h?T.clientTop||0:T.clientLeft||0:0,k=e.modifiersData.offset?e.modifiersData.offset[e.placement][h]:0,I=g[h]+_-k-R,D=g[h]+S-k,j=Nt(c?Math.min(i,I):i,o,c?Math.max(a,D):a);g[h]=j,x[h]=j-o}if(o){const e="x"===h?Ve:$e,t="x"===h?ze:He,n=g[b],r=Nt(n+d[e],n,n-d[t]);g[b]=r,x[b]=r-n}e.modifiersData[n]=x}},requiresIfExists:["offset"]};var St={name:"arrow",enabled:!0,phase:"main",fn:function({state:e,name:t}){const n=e.elements.arrow,r=e.modifiersData.popperOffsets,o=nt(e.placement),i=lt(o),a=[$e,He].indexOf(o)>=0?"height":"width";if(!n||!r)return;const s=e.modifiersData[`${t}#persistent`].padding,l=je(n),c="y"===i?Ve:$e,p="y"===i?ze:He,d=e.rects.reference[a]+e.rects.reference[i]-r[i]-e.rects.popper[a],u=r[i]-e.rects.reference[i],f=Be(n),m=f?"y"===i?f.clientHeight||0:f.clientWidth||0:0,h=d/2-u/2,b=s[c],g=m-l[a]-s[p],v=m/2-l[a]/2+h,y=Nt(b,v,g),w=i;e.modifiersData[t]={[w]:y,centerOffset:y-v}},effect:function({state:e,options:t,name:n}){let{element:r="[data-popper-arrow]",padding:o=0}=t;null!=r&&("string"!=typeof r||(r=e.elements.popper.querySelector(r),r))&&rt(e.elements.popper,r)&&(e.elements.arrow=r,e.modifiersData[`${n}#persistent`]={padding:pt("number"!=typeof o?o:dt(o,Ke))})},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Tt(e,t,n={x:0,y:0}){return{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Rt(e){return[Ve,He,ze,$e].some((t=>e[t]>=0))}const kt=function(e={}){const{defaultModifiers:t=[],defaultOptions:n=ft}=e;return function(e,r,o=n){let i={placement:"bottom",orderedModifiers:[],options:Object.assign(Object.assign({},ft),n),modifiersData:{},elements:{reference:e,popper:r},attributes:{},styles:{}},a=[],s=!1;const l={state:i,setOptions(o){c(),i.options=Object.assign(Object.assign(Object.assign({},n),i.options),o),i.scrollParents={reference:Ne(e)?Le(e):e.contextElement?Le(e.contextElement):[],popper:Le(r)};const s=function(e){const t=et(e);return Ze.reduce(((e,n)=>e.concat(t.filter((e=>e.phase===n)))),[])}(function(e){const t=e.reduce(((e,t)=>{const n=e[t.name];return e[t.name]=n?Object.assign(Object.assign(Object.assign({},n),t),{options:Object.assign(Object.assign({},n.options),t.options),data:Object.assign(Object.assign({},n.data),t.data)}):t,e}),{});return Object.keys(t).map((e=>t[e]))}([...t,...i.options.modifiers]));return i.orderedModifiers=s.filter((e=>e.enabled)),i.orderedModifiers.forEach((({name:e,options:t={},effect:n})=>{if("function"==typeof n){const r=n({state:i,name:e,instance:l,options:t}),o=()=>{};a.push(r||o)}})),l.update()},forceUpdate(){if(s)return;const{reference:e,popper:t}=i.elements;if(mt(e,t)){i.rects={reference:De(e,Be(t),"fixed"===i.options.strategy),popper:je(t)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach((e=>i.modifiersData[e.name]=Object.assign({},e.data)));for(let e=0;e<i.orderedModifiers.length;e++){if(!0===i.reset){i.reset=!1,e=-1;continue}const{fn:t,options:n={},name:r}=i.orderedModifiers[e];"function"==typeof t&&(i=t({state:i,options:n,name:r,instance:l})||i)}}},update:tt((()=>new Promise((e=>{l.forceUpdate(),e(i)})))),destroy(){c(),s=!0}};if(!mt(e,r))return l;function c(){a.forEach((e=>e())),a=[]}return l.setOptions(o).then((e=>{!s&&o.onFirstUpdate&&o.onFirstUpdate(e)})),l}}({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:()=>{},effect:function({state:e,instance:t,options:n}){const{scroll:r=!0,resize:o=!0}=n,i=Ce(e.elements.popper),a=[...e.scrollParents.reference,...e.scrollParents.popper];return r&&a.forEach((e=>{e.addEventListener("scroll",t.update,ht)})),o&&i.addEventListener("resize",t.update,ht),()=>{r&&a.forEach((e=>{e.removeEventListener("scroll",t.update,ht)})),o&&i.removeEventListener("resize",t.update,ht)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function({state:e,name:t}){e.modifiersData[t]=ct({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function({state:e,options:t}){const{gpuAcceleration:n=!0,adaptive:r=!0}=t,o={placement:nt(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:n};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign(Object.assign({},e.styles.popper),gt(Object.assign(Object.assign({},o),{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:r})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign(Object.assign({},e.styles.arrow),gt(Object.assign(Object.assign({},o),{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1})))),e.attributes.popper=Object.assign(Object.assign({},e.attributes.popper),{"data-popper-placement":e.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function({state:e}){Object.keys(e.elements).forEach((t=>{const n=e.styles[t]||{},r=e.attributes[t]||{},o=e.elements[t];_e(o)&&Se(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((e=>{const t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function({state:e}){const t={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,t.popper),e.elements.arrow&&Object.assign(e.elements.arrow.style,t.arrow),()=>{Object.keys(e.elements).forEach((n=>{const r=e.elements[n],o=e.attributes[n]||{},i=Object.keys(e.styles.hasOwnProperty(n)?e.styles[n]:t[n]).reduce(((e,t)=>(e[t]="",e)),{});_e(r)&&Se(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((e=>{r.removeAttribute(e)})))}))}},requires:["computeStyles"]},vt,Et,_t,St,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function({state:e,name:t}){const n=e.rects.reference,r=e.rects.popper,o=e.modifiersData.preventOverflow,i=ut(e,{elementContext:"reference"}),a=ut(e,{altBoundary:!0}),s=Tt(i,n),l=Tt(a,r,o),c=Rt(s),p=Rt(l);e.modifiersData[t]={referenceClippingOffsets:s,popperEscapeOffsets:l,isReferenceHidden:c,hasPopperEscaped:p},e.attributes.popper=Object.assign(Object.assign({},e.attributes.popper),{"data-popper-reference-hidden":c,"data-popper-escaped":p})}}]}),It=ve?o.useLayoutEffect:o.useEffect,Dt=e=>e.reduce(((e,[t,n])=>(e[t]=n,e)),{}),jt=[],Pt=(e,t,n={})=>{const r=o.useRef(null),i={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||jt},[a,s]=o.useState({styles:{popper:{position:i.strategy,left:"0",top:"0"}},attributes:{}}),l=o.useMemo((()=>({name:"updateState",enabled:!0,phase:"write",fn:({state:e})=>{const t=Object.keys(e.elements);s({styles:Dt(t.map((t=>[t,e.styles[t]||{}]))),attributes:Dt(t.map((t=>[t,e.attributes[t]])))})},requires:["computeStyles"]})),[]),c=o.useMemo((()=>{const e={onFirstUpdate:i.onFirstUpdate,placement:i.placement,strategy:i.strategy,modifiers:[...i.modifiers,l,{name:"applyStyles",enabled:!1}]};return t=r.current,n=e,JSON.stringify(t)===JSON.stringify(n)?r.current||e:(r.current=e,e);var t,n}),[i.onFirstUpdate,i.placement,i.strategy,i.modifiers,l]),p=o.useRef();return It((()=>{p&&p.current&&p.current.setOptions(c)}),[c]),It((()=>{if(null==e||null==t)return;const r=(n.createPopper||kt)(e,t,c);return p.current=r,()=>{r.destroy(),p.current=null}}),[e,t,n.createPopper]),{state:p.current?p.current.state:null,styles:a.styles,attributes:a.attributes,update:p.current?p.current.update:null,forceUpdate:p.current?p.current.forceUpdate:null}},At={left:"right",right:"left",bottom:"top",top:"bottom"},Lt=e=>`opacity ${e}ms cubic-bezier(.54, 1.5, .38, 1.11)`,Ft=({trigger:e,popper:t,popperMatchesTriggerWidth:n=!0,direction:r="down",position:a="left",placement:s,appendTo:c=(()=>document.body),zIndex:p=9999,isVisible:d=!0,positionModifiers:u,distance:f=0,onMouseEnter:m,onMouseLeave:h,onFocus:b,onBlur:g,onDocumentClick:v,onTriggerClick:y,onTriggerEnter:w,onPopperClick:x,onPopperMouseEnter:O,onPopperMouseLeave:C,onDocumentKeyDown:E,enableFlip:N=!0,flipBehavior:_="flip",reference:S})=>{const[T,R]=o.useState(null),[k,I]=o.useState(null),[D,j]=o.useState(null),[P,A]=o.useState(!1),L=k||T,F=o.useCallback((e=>v(e,L,D)),[d,T,k,D,v]);o.useEffect((()=>{A(!0)}),[]),o.useEffect((()=>{S&&(S.current?I(S.current):"function"==typeof S&&I(S()))}),[S]);const M=(e,t,n)=>{e&&t&&t.addEventListener(n,e)},B=(e,t,n)=>{e&&t&&t.removeEventListener(n,e)};o.useEffect((()=>{M(m,L,"mouseenter"),M(h,L,"mouseleave"),M(b,L,"focus"),M(g,L,"blur"),M(y,L,"click"),M(w,L,"keydown"),M(x,D,"click"),M(O,D,"mouseenter"),M(C,D,"mouseleave"),v&&M(F,document,"click"),M(E,document,"keydown");const e=new MutationObserver((()=>{G&&G()}));return D&&e.observe(D,{attributes:!0,childList:!0,subtree:!0}),()=>{B(m,L,"mouseenter"),B(h,L,"mouseleave"),B(b,L,"focus"),B(g,L,"blur"),B(y,L,"click"),B(w,L,"keydown"),B(x,D,"click"),B(O,D,"mouseenter"),B(C,D,"mouseleave"),v&&B(F,document,"click"),B(E,document,"keydown"),e.disconnect()}}),[T,D,m,h,b,g,y,w,x,O,C,v,E,k]);const V=()=>{if(s)return s;let e="up"===r?"top":"bottom";return"center"!==a&&(e=`${e}-${"right"===a?"end":"start"}`),e},z=o.useMemo(V,[r,a,s]),H=o.useMemo((()=>(e=>e.replace(/left|right|bottom|top/g,(e=>At[e])))(V())),[r,a,s]),$=o.useMemo((()=>({name:"sameWidth",enabled:n,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{e.styles.popper.width=`${e.rects.reference.width}px`},effect:({state:e})=>(e.elements.popper.style.width=`${e.elements.reference.offsetWidth}px`,()=>{})})),[n]),{styles:W,attributes:K,update:G}=Pt(L,D,{placement:z,modifiers:[{name:"offset",options:{offset:[0,f]}},{name:"preventOverflow",enabled:!1},{name:"hide",enabled:!0},{name:"flip",enabled:z.startsWith("auto")||N,options:{fallbackPlacements:"flip"===_?[H]:_}},$]}),U=o.cloneElement(t,Object.assign({className:l(t.props&&t.props.className,u&&(()=>{if(K&&K.popper&&K.popper["data-popper-placement"]){const e=K.popper["data-popper-placement"];return u[e]}return u.top})()),style:Object.assign(Object.assign(Object.assign({},t.props&&t.props.style||{}),W.popper),{zIndex:p})},K.popper));return o.createElement(o.Fragment,null,!S&&e&&o.createElement(xe,{onFoundRef:e=>R(e)},e),P&&d&&i.createPortal(o.createElement(xe,{onFoundRef:e=>j(e)},U),"function"==typeof c?c():c))};Ft.displayName="Popper";const Mt=(e,t,n=(e=>document.activeElement.contains(e)),r=(e=>e),o=["A","BUTTON","INPUT"],i=!1,a=!1,s=!0,l=!0)=>{const c=document.activeElement,p=e.key;let d=null;if(!i&&["ArrowUp","ArrowDown"].includes(p)){e.preventDefault(),e.stopImmediatePropagation();let o=-1;t.forEach(((e,i)=>{if(n(e)){let e=0;for(;!d&&e<t.length&&-1*e<t.length;)"ArrowUp"===p?e--:e++,o=i+e,o>=t.length&&(o=0),o<0&&(o=t.length-1),d=r(t[o])}}))}if(!a&&["ArrowLeft","ArrowRight"].includes(p)){e.preventDefault(),e.stopImmediatePropagation();let r=-1;t.forEach(((i,a)=>{if(n(i)){const n=t[a].querySelectorAll(o.join(","));if(!n.length||l){let e=c;for(;e;)if(e="ArrowLeft"===p?e.previousElementSibling:e.nextElementSibling,e&&o.includes(e.tagName)){d=e;break}}else n.forEach(((t,o)=>{if(e.target===t){r=o+("ArrowLeft"===p?-1:1),r>=n.length&&(r=0),r<0&&(r=n.length-1),d=n[r]}}))}}))}d&&(s&&(c.tabIndex=-1,d.tabIndex=0),d.focus())};class Bt extends o.Component{constructor(){super(...arguments),this.keyHandler=e=>{const{isEventFromContainer:t}=this.props;if(t?!t(e):!this._isEventFromContainer(e))return;const{isActiveElement:n,getFocusableElement:r,noVerticalArrowHandling:o,noHorizontalArrowHandling:i,noEnterHandling:a,noSpaceHandling:s,updateTabIndex:l,validSiblingTags:c,additionalKeyHandler:p,createNavigableElements:d,onlyTraverseSiblings:u}=this.props;p&&p(e);const f=d();if(!f)return void console.warn("No navigable elements have been passed to the KeyboardHandler. Keyboard navigation provided by this component will be ignored.");const m=e.key;a||"Enter"===m&&(e.preventDefault(),e.stopImmediatePropagation(),document.activeElement.click()),s||" "===m&&(e.preventDefault(),e.stopImmediatePropagation(),document.activeElement.click()),Mt(e,f,n,r,c,o,i,l,u)},this._isEventFromContainer=e=>{const{containerRef:t}=this.props;return t.current&&t.current.contains(e.target)}}componentDidMount(){ve&&window.addEventListener("keydown",this.keyHandler)}componentWillUnmount(){ve&&window.removeEventListener("keydown",this.keyHandler)}render(){return null}}Bt.displayName="KeyboardHandler",Bt.defaultProps={containerRef:null,createNavigableElements:()=>null,isActiveElement:e=>document.activeElement===e,getFocusableElement:e=>e,validSiblingTags:["BUTTON","A"],onlyTraverseSiblings:!0,updateTabIndex:!0,noHorizontalArrowHandling:!1,noVerticalArrowHandling:!1,noEnterHandling:!1,noSpaceHandling:!1};Promise.resolve().then((function(){return Fu}));var Vt="pf-l-bullseye";Promise.resolve().then((function(){return Mu}));var zt,Ht,$t={modifiers:{"4xl":"pf-m-4xl","3xl":"pf-m-3xl","2xl":"pf-m-2xl",xl:"pf-m-xl",lg:"pf-m-lg",md:"pf-m-md",overpassFont:"pf-m-overpass-font"},title:"pf-c-title"};!function(e){e.md="md",e.lg="lg",e.xl="xl",e["2xl"]="2xl",e["3xl"]="3xl",e["4xl"]="4xl"}(zt||(zt={})),function(e){e.h1="2xl",e.h2="xl",e.h3="lg",e.h4="md",e.h5="md",e.h6="md"}(Ht||(Ht={}));const Wt=e=>{var{className:t="",children:n="",headingLevel:r,size:i=Ht[r],ouiaId:a,ouiaSafe:c=!0}=e,p=s(e,["className","children","headingLevel","size","ouiaId","ouiaSafe"]);const d=se(Wt.displayName,a,c);return o.createElement(r,Object.assign({},d,p,{className:l($t.title,i&&$t.modifiers[i],t)}),n)};Wt.displayName="Title",Promise.resolve().then((function(){return Bu}));var Kt={button:"pf-c-button",buttonIcon:"pf-c-button__icon",buttonProgress:"pf-c-button__progress",modifiers:{active:"pf-m-active",block:"pf-m-block",small:"pf-m-small",primary:"pf-m-primary",displayLg:"pf-m-display-lg",secondary:"pf-m-secondary",tertiary:"pf-m-tertiary",link:"pf-m-link",inline:"pf-m-inline",danger:"pf-m-danger",warning:"pf-m-warning",control:"pf-m-control",expanded:"pf-m-expanded",plain:"pf-m-plain",disabled:"pf-m-disabled",ariaDisabled:"pf-m-aria-disabled",progress:"pf-m-progress",inProgress:"pf-m-in-progress",start:"pf-m-start",end:"pf-m-end",overpassFont:"pf-m-overpass-font"},spinner:"pf-c-spinner",themeDark:"pf-theme-dark"};Promise.resolve().then((function(){return Vu}));var Gt,Ut={modifiers:{sm:"pf-m-sm",md:"pf-m-md",lg:"pf-m-lg",xl:"pf-m-xl"},spinner:"pf-c-spinner",spinnerClipper:"pf-c-spinner__clipper",spinnerLeadBall:"pf-c-spinner__lead-ball",spinnerPath:"pf-c-spinner__path",spinnerTailBall:"pf-c-spinner__tail-ball"};!function(e){e.sm="sm",e.md="md",e.lg="lg",e.xl="xl"}(Gt||(Gt={}));const Xt=e=>{var{className:t="",size:n="xl","aria-valuetext":r="Loading...",isSVG:i=!1,diameter:a,"aria-label":c,"aria-labelledBy":p}=e,d=s(e,["className","size","aria-valuetext","isSVG","diameter","aria-label","aria-labelledBy"]);const u=i?"svg":"span";return o.createElement(u,Object.assign({className:l(Ut.spinner,Ut.modifiers[n],t),role:"progressbar","aria-valuetext":r},i&&{viewBox:"0 0 100 100"},a&&{style:{"--pf-c-spinner--diameter":a}},c&&{"aria-label":c},p&&{"aria-labelledBy":p},!c&&!p&&{"aria-label":"Contents"},d),i?o.createElement("circle",{className:Ut.spinnerPath,cx:"50",cy:"50",r:"45",fill:"none"}):o.createElement(o.Fragment,null,o.createElement("span",{className:l(Ut.spinnerClipper)}),o.createElement("span",{className:l(Ut.spinnerLeadBall)}),o.createElement("span",{className:l(Ut.spinnerTailBall)})))};var qt,Yt;Xt.displayName="Spinner",function(e){e.primary="primary",e.secondary="secondary",e.tertiary="tertiary",e.danger="danger",e.warning="warning",e.link="link",e.plain="plain",e.control="control"}(qt||(qt={})),function(e){e.button="button",e.submit="submit",e.reset="reset"}(Yt||(Yt={}));const Jt=e=>{var{children:t=null,className:n="",component:r="button",isActive:i=!1,isBlock:a=!1,isDisabled:c=!1,isAriaDisabled:p=!1,isLoading:d=null,isDanger:u=!1,spinnerAriaValueText:f,spinnerAriaLabelledBy:m,spinnerAriaLabel:h,isSmall:b=!1,isLarge:g=!1,inoperableEvents:v=["onClick","onKeyPress"],isInline:y=!1,type:w=Yt.button,variant:x=qt.primary,iconPosition:O="left","aria-label":C=null,icon:E=null,ouiaId:N,ouiaSafe:_=!0,tabIndex:S=null,innerRef:T}=e,R=s(e,["children","className","component","isActive","isBlock","isDisabled","isAriaDisabled","isLoading","isDanger","spinnerAriaValueText","spinnerAriaLabelledBy","spinnerAriaLabel","isSmall","isLarge","inoperableEvents","isInline","type","variant","iconPosition","aria-label","icon","ouiaId","ouiaSafe","tabIndex","innerRef"]);const k=se(Qt.displayName,N,_,x),I=r,D="button"===I,j=y&&"span"===I,P=v.reduce(((e,t)=>Object.assign(Object.assign({},e),{[t]:e=>{e.preventDefault()}})),{});return o.createElement(I,Object.assign({},R,p?P:null,{"aria-disabled":c||p,"aria-label":C,className:l(Kt.button,Kt.modifiers[x],a&&Kt.modifiers.block,c&&Kt.modifiers.disabled,p&&Kt.modifiers.ariaDisabled,i&&Kt.modifiers.active,y&&x===qt.link&&Kt.modifiers.inline,u&&(x===qt.secondary||x===qt.link)&&Kt.modifiers.danger,null!==d&&null!==t&&Kt.modifiers.progress,d&&Kt.modifiers.inProgress,b&&Kt.modifiers.small,g&&Kt.modifiers.displayLg,n),disabled:D?c:null,tabIndex:null!==S?S:c?D?null:-1:p?null:j?0:void 0,type:D||j?w:null,role:j?"button":null,ref:T},k),d&&o.createElement("span",{className:l(Kt.buttonProgress)},o.createElement(Xt,{size:Gt.md,"aria-valuetext":f,"aria-label":h,"aria-labelledby":m})),x===qt.plain&&null===t&&E?E:null,x!==qt.plain&&E&&"left"===O&&o.createElement("span",{className:l(Kt.buttonIcon,Kt.modifiers.start)},E),t,x!==qt.plain&&E&&"right"===O&&o.createElement("span",{className:l(Kt.buttonIcon,Kt.modifiers.end)},E))},Qt=o.forwardRef(((e,t)=>o.createElement(Jt,Object.assign({innerRef:t},e))));var Zt;Qt.displayName="Button",function(e){e.sm="sm",e.md="md",e.lg="lg",e.xl="xl"}(Zt||(Zt={}));let en=0;function tn({name:e,xOffset:t=0,yOffset:n=0,width:r,height:i,svgPath:a}){var s;return s=class extends o.Component{constructor(){super(...arguments),this.id="icon-title-"+en++}render(){const e=this.props,{size:s,color:l,title:c,noVerticalAlign:p}=e,d=
|
|
40
40
|
/*! *****************************************************************************
|
|
41
41
|
Copyright (c) Microsoft Corporation.
|
|
42
42
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@patternfly/react-table",
|
|
3
|
-
"version": "4.93.
|
|
3
|
+
"version": "4.93.14",
|
|
4
4
|
"description": "This library provides a set of React table components for use with the PatternFly 4",
|
|
5
5
|
"main": "dist/js/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -31,10 +31,10 @@
|
|
|
31
31
|
"clean": "rimraf dist"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@patternfly/react-core": "^4.224.
|
|
35
|
-
"@patternfly/react-icons": "^4.75.
|
|
36
|
-
"@patternfly/react-styles": "^4.74.
|
|
37
|
-
"@patternfly/react-tokens": "^4.76.
|
|
34
|
+
"@patternfly/react-core": "^4.224.14",
|
|
35
|
+
"@patternfly/react-icons": "^4.75.14",
|
|
36
|
+
"@patternfly/react-styles": "^4.74.14",
|
|
37
|
+
"@patternfly/react-tokens": "^4.76.14",
|
|
38
38
|
"lodash": "^4.17.19",
|
|
39
39
|
"tslib": "^2.0.0"
|
|
40
40
|
},
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"react": "^16.8.0 || ^17.0.0",
|
|
47
47
|
"react-dom": "^16.8.0 || ^17.0.0"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "71e3dd5504c0309222ada3cf612717ac220c29fd"
|
|
50
50
|
}
|