@patternfly/react-table 5.4.0-prerelease.27 → 5.4.0-prerelease.29
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/components/package.json +1 -1
- package/deprecated/package.json +1 -1
- package/dist/dynamic/components/Table/package.json +1 -1
- package/dist/dynamic/components/Table/utils/decorators/package.json +1 -1
- package/dist/dynamic/components/Table/utils/package.json +1 -1
- package/dist/dynamic/deprecated/components/Table/base/package.json +1 -1
- package/dist/dynamic/deprecated/components/Table/package.json +1 -1
- package/dist/dynamic/deprecated/components/package.json +1 -1
- package/dist/umd/assets/{output-CqEv-4xo.css → output-BF7G1OOO.css} +12931 -12931
- package/dist/umd/react-table.min.js +1 -1
- package/package.json +3 -3
- package/src/components/Table/examples/Table.md +11 -0
- package/src/components/Table/examples/TableEditable.tsx +313 -0
|
@@ -7,4 +7,4 @@
|
|
|
7
7
|
* focus-trap 7.5.4
|
|
8
8
|
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
|
|
9
9
|
*/
|
|
10
|
-
function fe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function me(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fe(Object(n),!0).forEach((function(t){he(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function he(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var be=function(e,t){if(e.length>0){var n=e[e.length-1];n!==t&&n.pause()}var i=e.indexOf(t);-1===i||e.splice(i,1),e.push(t)},ge=function(e,t){var n=e.indexOf(t);-1!==n&&e.splice(n,1),e.length>0&&e[e.length-1].unpause()},ve=function(e){return"Tab"===(null==e?void 0:e.key)||9===(null==e?void 0:e.keyCode)},ye=function(e){return ve(e)&&!e.shiftKey},xe=function(e){return ve(e)&&e.shiftKey},we=function(e){return setTimeout(e,0)},Ee=function(e,t){var n=-1;return e.every((function(e,i){return!t(e)||(n=i,!1)})),n},Oe=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return"function"==typeof e?e.apply(void 0,n):e},Ce=function(e){return e.target.shadowRoot&&"function"==typeof e.composedPath?e.composedPath()[0]:e.target},Ne=[],Se=function(e,t){var n,i=(null==t?void 0:t.document)||document,a=(null==t?void 0:t.trapStack)||Ne,o=me({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:ye,isKeyBackward:xe},t),r={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},l=function(e,t,n){return e&&void 0!==e[t]?e[t]:o[n||t]},s=function(e,t){var n="function"==typeof(null==t?void 0:t.composedPath)?t.composedPath():void 0;return r.containerGroups.findIndex((function(t){var i=t.container,a=t.tabbableNodes;return i.contains(e)||(null==n?void 0:n.includes(i))||a.find((function(t){return t===e}))}))},c=function(e){var t=o[e];if("function"==typeof t){for(var n=arguments.length,a=new Array(n>1?n-1:0),r=1;r<n;r++)a[r-1]=arguments[r];t=t.apply(void 0,a)}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 l=t;if("string"==typeof t&&!(l=i.querySelector(t)))throw new Error("`".concat(e,"` as selector refers to no known node"));return l},d=function(){var e=c("initialFocus");if(!1===e)return!1;if(void 0===e||!ue(e,o.tabbableOptions))if(s(i.activeElement)>=0)e=i.activeElement;else{var t=r.tabbableGroups[0];e=t&&t.firstTabbableNode||c("fallbackFocus")}if(!e)throw new Error("Your focus-trap needs to have at least one focusable element");return e},p=function(){if(r.containerGroups=r.containers.map((function(e){var t=function(e,t){var n;return n=(t=t||{}).getShadowRoot?Z([e],t.includeContainer,{filter:le.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:se}):J(e,t.includeContainer,le.bind(null,t)),ce(n)}(e,o.tabbableOptions),n=function(e,t){return(t=t||{}).getShadowRoot?Z([e],t.includeContainer,{filter:re.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):J(e,t.includeContainer,re.bind(null,t))}(e,o.tabbableOptions),i=t.length>0?t[0]:void 0,a=t.length>0?t[t.length-1]:void 0,r=n.find((function(e){return de(e)})),l=n.slice().reverse().find((function(e){return de(e)})),s=!!t.find((function(e){return ee(e)>0}));return{container:e,tabbableNodes:t,focusableNodes:n,posTabIndexesFound:s,firstTabbableNode:i,lastTabbableNode:a,firstDomTabbableNode:r,lastDomTabbableNode:l,nextTabbableNode:function(e){var i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a=t.indexOf(e);return a<0?i?n.slice(n.indexOf(e)+1).find((function(e){return de(e)})):n.slice(0,n.indexOf(e)).reverse().find((function(e){return de(e)})):t[a+(i?1:-1)]}}})),r.tabbableGroups=r.containerGroups.filter((function(e){return e.tabbableNodes.length>0})),r.tabbableGroups.length<=0&&!c("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(r.containerGroups.find((function(e){return e.posTabIndexesFound}))&&r.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},u=function e(t){var n=t.activeElement;if(n)return n.shadowRoot&&null!==n.shadowRoot.activeElement?e(n.shadowRoot):n},f=function e(t){!1!==t&&t!==u(document)&&(t&&t.focus?(t.focus({preventScroll:!!o.preventScroll}),r.mostRecentlyFocusedNode=t,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select}(t)&&t.select()):e(d()))},m=function(e){var t=c("setReturnFocus",e);return t||!1!==t&&e},h=function(e){var t=e.target,n=e.event,i=e.isBackward,a=void 0!==i&&i;t=t||Ce(n),p();var l=null;if(r.tabbableGroups.length>0){var d=s(t,n),u=d>=0?r.containerGroups[d]:void 0;if(d<0)l=a?r.tabbableGroups[r.tabbableGroups.length-1].lastTabbableNode:r.tabbableGroups[0].firstTabbableNode;else if(a){var f=Ee(r.tabbableGroups,(function(e){var n=e.firstTabbableNode;return t===n}));if(f<0&&(u.container===t||ue(t,o.tabbableOptions)&&!de(t,o.tabbableOptions)&&!u.nextTabbableNode(t,!1))&&(f=d),f>=0){var m=0===f?r.tabbableGroups.length-1:f-1,h=r.tabbableGroups[m];l=ee(t)>=0?h.lastTabbableNode:h.lastDomTabbableNode}else ve(n)||(l=u.nextTabbableNode(t,!1))}else{var b=Ee(r.tabbableGroups,(function(e){var n=e.lastTabbableNode;return t===n}));if(b<0&&(u.container===t||ue(t,o.tabbableOptions)&&!de(t,o.tabbableOptions)&&!u.nextTabbableNode(t))&&(b=d),b>=0){var g=b===r.tabbableGroups.length-1?0:b+1,v=r.tabbableGroups[g];l=ee(t)>=0?v.firstTabbableNode:v.firstDomTabbableNode}else ve(n)||(l=u.nextTabbableNode(t))}}else l=c("fallbackFocus");return l},b=function(e){var t=Ce(e);s(t,e)>=0||(Oe(o.clickOutsideDeactivates,e)?n.deactivate({returnFocus:o.returnFocusOnDeactivate}):Oe(o.allowOutsideClick,e)||e.preventDefault())},g=function(e){var t=Ce(e),n=s(t,e)>=0;if(n||t instanceof Document)n&&(r.mostRecentlyFocusedNode=t);else{var i;e.stopImmediatePropagation();var a=!0;if(r.mostRecentlyFocusedNode)if(ee(r.mostRecentlyFocusedNode)>0){var l=s(r.mostRecentlyFocusedNode),c=r.containerGroups[l].tabbableNodes;if(c.length>0){var p=c.findIndex((function(e){return e===r.mostRecentlyFocusedNode}));p>=0&&(o.isKeyForward(r.recentNavEvent)?p+1<c.length&&(i=c[p+1],a=!1):p-1>=0&&(i=c[p-1],a=!1))}}else r.containerGroups.some((function(e){return e.tabbableNodes.some((function(e){return ee(e)>0}))}))||(a=!1);else a=!1;a&&(i=h({target:r.mostRecentlyFocusedNode,isBackward:o.isKeyBackward(r.recentNavEvent)})),f(i||(r.mostRecentlyFocusedNode||d()))}r.recentNavEvent=void 0},v=function(e){if(!(t=e,"Escape"!==(null==t?void 0:t.key)&&"Esc"!==(null==t?void 0:t.key)&&27!==(null==t?void 0:t.keyCode)||!1===Oe(o.escapeDeactivates,e)))return e.preventDefault(),void n.deactivate();var t;(o.isKeyForward(e)||o.isKeyBackward(e))&&function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];r.recentNavEvent=e;var n=h({event:e,isBackward:t});n&&(ve(e)&&e.preventDefault(),f(n))}(e,o.isKeyBackward(e))},y=function(e){var t=Ce(e);s(t,e)>=0||Oe(o.clickOutsideDeactivates,e)||Oe(o.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},x=function(){if(r.active)return be(a,n),r.delayInitialFocusTimer=o.delayInitialFocus?we((function(){f(d())})):f(d()),i.addEventListener("focusin",g,!0),i.addEventListener("mousedown",b,{capture:!0,passive:!1}),i.addEventListener("touchstart",b,{capture:!0,passive:!1}),i.addEventListener("click",y,{capture:!0,passive:!1}),i.addEventListener("keydown",v,{capture:!0,passive:!1}),n},w=function(){if(r.active)return i.removeEventListener("focusin",g,!0),i.removeEventListener("mousedown",b,!0),i.removeEventListener("touchstart",b,!0),i.removeEventListener("click",y,!0),i.removeEventListener("keydown",v,!0),n},E="undefined"!=typeof window&&"MutationObserver"in window?new MutationObserver((function(e){e.some((function(e){return Array.from(e.removedNodes).some((function(e){return e===r.mostRecentlyFocusedNode}))}))&&f(d())})):void 0,O=function(){E&&(E.disconnect(),r.active&&!r.paused&&r.containers.map((function(e){E.observe(e,{subtree:!0,childList:!0})})))};return(n={get active(){return r.active},get paused(){return r.paused},activate:function(e){if(r.active)return this;var t=l(e,"onActivate"),n=l(e,"onPostActivate"),a=l(e,"checkCanFocusTrap");a||p(),r.active=!0,r.paused=!1,r.nodeFocusedBeforeActivation=i.activeElement,null==t||t();var o=function(){a&&p(),x(),O(),null==n||n()};return a?(a(r.containers.concat()).then(o,o),this):(o(),this)},deactivate:function(e){if(!r.active)return this;var t=me({onDeactivate:o.onDeactivate,onPostDeactivate:o.onPostDeactivate,checkCanReturnFocus:o.checkCanReturnFocus},e);clearTimeout(r.delayInitialFocusTimer),r.delayInitialFocusTimer=void 0,w(),r.active=!1,r.paused=!1,O(),ge(a,n);var i=l(t,"onDeactivate"),s=l(t,"onPostDeactivate"),c=l(t,"checkCanReturnFocus"),d=l(t,"returnFocus","returnFocusOnDeactivate");null==i||i();var p=function(){we((function(){d&&f(m(r.nodeFocusedBeforeActivation)),null==s||s()}))};return d&&c?(c(m(r.nodeFocusedBeforeActivation)).then(p,p),this):(p(),this)},pause:function(e){if(r.paused||!r.active)return this;var t=l(e,"onPause"),n=l(e,"onPostPause");return r.paused=!0,null==t||t(),w(),O(),null==n||n(),this},unpause:function(e){if(!r.paused||!r.active)return this;var t=l(e,"onUnpause"),n=l(e,"onPostUnpause");return r.paused=!1,null==t||t(),p(),x(),O(),null==n||n(),this},updateContainerElements:function(e){var t=[].concat(e).filter(Boolean);return r.containers=t.map((function(e){return"string"==typeof e?i.querySelector(e):e})),r.active&&p(),O(),this}}).updateContainerElements(e),n};const ke=t.forwardRef((function(e,n){var{active:i=!0,paused:a=!1,focusTrapOptions:o={},preventScrollOnDeactivate:l=!1}=e,s=r(e,["active","paused","focusTrapOptions","preventScrollOnDeactivate"]);const c=t.useRef(null);t.useImperativeHandle(n,(()=>c.current));const d=t.useRef(null);t.useEffect((()=>{const e=Se(c.current,Object.assign(Object.assign({},o),{returnFocusOnDeactivate:!1}));return d.current=e,()=>{e.deactivate()}}),[]),t.useEffect((()=>{const e=d.current;i?null==e||e.activate():null==e||e.deactivate()}),[i]),t.useEffect((()=>{const e=d.current;a?null==e||e.pause():null==e||e.unpause()}),[a]);const p=t.useRef("undefined"!=typeof document?document.activeElement:null);return function(e){const n=t.useRef(e);n.current=e,t.useEffect((()=>()=>{n.current()}),[])}((()=>{!1!==o.returnFocusOnDeactivate&&p.current instanceof HTMLElement&&p.current.focus({preventScroll:l})})),t.createElement("div",Object.assign({ref:c},s))}));function Re(e="pf"){return`${e}-${(new Date).getTime()+Math.random().toString(36).slice(2)}`}function Ie(e,t){let n;return(...i)=>{clearTimeout(n),n=setTimeout((()=>e.apply(this,i)),t)}}function Te(e,t,n,i,a,r=!1){if(!Array.isArray(a))return;const l=i.filter((e=>e))[0].constructor===Array;let s=e,c=t;if("up"===n?s=0===e?a.length-1:e-1:"down"===n?s=e===a.length-1?0:e+1:"left"===n?c=0===t?i[e].length-1:t-1:"right"===n&&(c=t===i[e].length-1?0:t+1),null===i[s]||void 0===i[s]||l&&(null===i[s][c]||void 0===i[s][c]))Te(s,c,n,i,a,r);else if(r){i[s].focus&&i[s].focus();o.findDOMNode(i[s]).focus()}else"tab"!==n&&(l?i[s][c].focus():i[s].focus())}function _e(e,t){const n=e.current.querySelectorAll(t);return Array.prototype.filter.call(n,(function(e){return e.tabIndex>="0"}))}function De(e,t,n){let i;return i="up"===t?0===e?n.length-1:e-1:e===n.length-1?0:e+1,void 0===n[i]||null===n[i][0]?De(i,t,n):i}ke.displayName="FocusTrap";const Pe=(e,t,n="",i,a)=>e?Object.entries(e||{}).map((([e,t])=>`${n}${t}${"default"!==e?`-on-${e}`:""}`)).map(je).map((e=>e.replace(/-?(\dxl)/gi,((e,t)=>`_${t}`)))).map((e=>t.modifiers[e])).filter(Boolean).join(" "):"",Le=e=>e.toUpperCase().replace("-","").replace("_",""),je=e=>e.replace(/([-_][a-z])/gi,Le),Fe=!("undefined"==typeof window||!window.document||!window.document.createElement),Ae=(e,t)=>{const n=getComputedStyle(t),i=document.createElement("canvas").getContext("2d");return i.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 i;return i=n.fontStretch in t?t[n.fontStretch]:"normal",e=n.fontStyle+" "+n.fontVariant+" "+n.fontWeight+" "+i+" "+n.fontSize+"/"+n.lineHeight+" "+n.fontFamily,e})(),i.measureText(e).width},Me=(e,t)=>{const n=(e=>{const t=getComputedStyle(e);let n=e.clientWidth,i=e.clientHeight;return i-=parseFloat(t.paddingTop)+parseFloat(t.paddingBottom),n-=parseFloat(t.paddingLeft)+parseFloat(t.paddingRight),{height:i,width:n}})(e).width;let i=t;if(Ae(t,e)>n){for(;Ae(`...${i}`,e)>n;)i=i.substring(1);e.value?e.value=`...${i}`:e.innerText=`...${i}`}else e.value?e.value=t:e.innerText=t},Be=e=>{e.forEach((e=>{e.current&&clearTimeout(e.current)}))};let He=0;class Ve extends a.Component{constructor(){super(...arguments),this.uniqueElement=this.props.isRandom?"undefined"!=typeof crypto&&crypto.randomUUID?crypto.randomUUID():Re():He++,this.id=`${this.props.prefix}${this.uniqueElement}`}render(){return this.props.children(this.id)}}Ve.displayName="GenerateId",Ve.defaultProps={prefix:"pf-random-id-",isRandom:!1};let ze=0;const $e="OUIA-Generated-",We={};function Ke(e,t,n=!0){return{"data-ouia-component-type":`PF5/${e}`,"data-ouia-safe":n,"data-ouia-component-id":t}}const Ge=(e,t,n=!0,i)=>({"data-ouia-component-type":`PF5/${e}`,"data-ouia-safe":n,"data-ouia-component-id":Ue(e,t,i)}),Ue=(e,n,i)=>{const a=t.useMemo((()=>qe(e,i)),[e,i]);return null!=n?n:a};function qe(e,t){try{let n;return n="undefined"!=typeof window?`${window.location.href}-${e}-${t||""}`:`${e}-${t||""}`,We[n]||(We[n]=0),`${$e}${e}-${t?`${t}-`:""}${++We[n]}`}catch(n){return`${$e}${e}-${t?`${t}-`:""}${++ze}`}}function Xe(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 Ye(e){if("[object Window]"!==e.toString()){const t=e.ownerDocument;return t?t.defaultView:window}return e}function Je(e){const t=Ye(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Ze(e){return e instanceof Ye(e).Element||e instanceof Element}function Qe(e){return e instanceof Ye(e).HTMLElement||e instanceof HTMLElement}function et(e){return e?(e.nodeName||"").toLowerCase():null}function tt(e){return(Ze(e)?e.ownerDocument:e.document).documentElement}function nt(e){return Xe(tt(e)).left+Je(e).scrollLeft}function it(e){return Ye(e).getComputedStyle(e)}function at(e){const{overflow:t,overflowX:n,overflowY:i}=it(e);return/auto|scroll|overlay|hidden/.test(t+i+n)}function ot(e,t,n=!1){const i=tt(t),a=Xe(e),o=Qe(t);let r={scrollLeft:0,scrollTop:0},l={x:0,y:0};var s,c;return(o||!o&&!n)&&(("body"!==et(t)||at(i))&&(r=(s=t)!==Ye(s)&&Qe(s)?{scrollLeft:(c=s).scrollLeft,scrollTop:c.scrollTop}:Je(s)),Qe(t)?(l=Xe(t),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=nt(i))),{x:a.left+r.scrollLeft-l.x,y:a.top+r.scrollTop-l.y,width:a.width,height:a.height}}function rt(e){return{x:e.offsetLeft,y:e.offsetTop,width:e.offsetWidth,height:e.offsetHeight}}function lt(e){return"html"===et(e)?e:e.assignedSlot||e.parentNode||e.host||tt(e)}function st(e){return["html","body","#document"].indexOf(et(e))>=0?e.ownerDocument.body:Qe(e)&&at(e)?e:st(lt(e))}function ct(e,t=[]){const n=st(e),i="body"===et(n),a=Ye(n),o=i?[a].concat(a.visualViewport||[],at(n)?n:[]):n,r=t.concat(o);return i?r:r.concat(ct(lt(o)))}function dt(e){return["table","td","th"].indexOf(et(e))>=0}function pt(e){if(!Qe(e)||"fixed"===it(e).position)return null;const t=e.offsetParent;if(t){const e=tt(t);if("body"===et(t)&&"static"===it(t).position&&"static"!==it(e).position)return e}return t}function ut(e){const t=Ye(e);let n=pt(e);for(;n&&dt(n)&&"static"===it(n).position;)n=pt(n);return n&&"body"===et(n)&&"static"===it(n).position?t:n||function(e){let t=lt(e);for(;Qe(t)&&["html","body"].indexOf(et(t))<0;){const e=it(t);if("none"!==e.transform||"none"!==e.perspective||e.willChange&&"auto"!==e.willChange)return t;t=t.parentNode}return null}(e)||t}const ft="top",mt="bottom",ht="right",bt="left",gt="auto",vt=[ft,mt,ht,bt],yt="start",xt="end",wt="clippingParents",Et="viewport",Ot="popper",Ct="reference",Nt=vt.reduce(((e,t)=>e.concat([`${t}-${yt}`,`${t}-${xt}`])),[]),St=[...vt,gt].reduce(((e,t)=>e.concat([t,`${t}-${yt}`,`${t}-${xt}`])),[]),kt=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Rt(e){const t=new Map,n=new Set,i=[];function a(e){n.add(e.name);[...e.requires||[],...e.requiresIfExists||[]].forEach((e=>{if(!n.has(e)){const n=t.get(e);n&&a(n)}})),i.push(e)}return e.forEach((e=>{t.set(e.name,e)})),e.forEach((e=>{n.has(e.name)||a(e)})),i}function It(e){let t;return()=>(t||(t=new Promise((n=>{Promise.resolve().then((()=>{t=void 0,n(e())}))}))),t)}function Tt(e){return e.split("-")[0]}function _t(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 Dt(e){return Object.assign(Object.assign({},e),{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Pt(e,t){return t===Et?Dt(function(e){const t=Ye(e),n=tt(e),i=t.visualViewport;let a=n.clientWidth,o=n.clientHeight,r=0,l=0;return i&&(a=i.width,o=i.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(r=i.offsetLeft,l=i.offsetTop)),{width:a,height:o,x:r+nt(e),y:l}}(e)):Qe(t)?function(e){const t=Xe(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):Dt(function(e){const t=tt(e),n=Je(e),i=e.ownerDocument.body,a=Math.max(t.scrollWidth,t.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=Math.max(t.scrollHeight,t.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0);let r=-n.scrollLeft+nt(e);const l=-n.scrollTop;return"rtl"===it(i||t).direction&&(r+=Math.max(t.clientWidth,i?i.clientWidth:0)-a),{width:a,height:o,x:r,y:l}}(tt(e)))}function Lt(e,t,n){const i="clippingParents"===t?function(e){const t=ct(lt(e)),n=["absolute","fixed"].indexOf(it(e).position)>=0&&Qe(e)?ut(e):e;return Ze(n)?t.filter((e=>Ze(e)&&_t(e,n)&&"body"!==et(e))):[]}(e):[].concat(t),a=[...i,n],o=a[0],r=a.reduce(((t,n)=>{const i=Pt(e,n);return t.top=Math.max(i.top,t.top),t.right=Math.min(i.right,t.right),t.bottom=Math.min(i.bottom,t.bottom),t.left=Math.max(i.left,t.left),t}),Pt(e,o));return r.width=r.right-r.left,r.height=r.bottom-r.top,r.x=r.left,r.y=r.top,r}function jt(e){return e.split("-")[1]}function Ft(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function At({reference:e,element:t,placement:n}){const i=n?Tt(n):null,a=n?jt(n):null,o=e.x+e.width/2-t.width/2,r=e.y+e.height/2-t.height/2;let l;switch(i){case ft:l={x:o,y:e.y-t.height};break;case mt:l={x:o,y:e.y+e.height};break;case ht:l={x:e.x+e.width,y:r};break;case bt:l={x:e.x-t.width,y:r};break;default:l={x:e.x,y:e.y}}const s=i?Ft(i):null;if(null!=s){const n="y"===s?"height":"width";switch(a){case yt:l[s]=Math.floor(l[s])-Math.floor(e[n]/2-t[n]/2);break;case xt:l[s]=Math.floor(l[s])+Math.ceil(e[n]/2-t[n]/2)}}return l}function Mt(e){return Object.assign(Object.assign({},{top:0,right:0,bottom:0,left:0}),e)}function Bt(e,t){return t.reduce(((t,n)=>(t[n]=e,t)),{})}function Ht(e,t={}){const{placement:n=e.placement,boundary:i=wt,rootBoundary:a=Et,elementContext:o=Ot,altBoundary:r=!1,padding:l=0}=t,s=Mt("number"!=typeof l?l:Bt(l,vt)),c=o===Ot?Ct:Ot,d=e.elements.reference,p=e.rects.popper,u=e.elements[r?c:o],f=Lt(Ze(u)?u:u.contextElement||tt(e.elements.popper),i,a),m=Xe(d),h=At({reference:m,element:p,strategy:"absolute",placement:n}),b=Dt(Object.assign(Object.assign({},p),h)),g=o===Ot?b:m,v={top:f.top-g.top+s.top,bottom:g.bottom-f.bottom+s.bottom,left:f.left-g.left+s.left,right:g.right-f.right+s.right},y=e.modifiersData.offset;if(o===Ot&&y){const e=y[n];Object.keys(v).forEach((t=>{const n=[ht,mt].indexOf(t)>=0?1:-1,i=[ft,mt].indexOf(t)>=0?"y":"x";v[t]+=e[i]*n}))}return v}const Vt={placement:"bottom",modifiers:[],strategy:"absolute"};function zt(...e){return!e.some((e=>!(e&&"function"==typeof e.getBoundingClientRect)))}const $t={passive:!0};const Wt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Kt({popper:e,popperRect:t,placement:n,offsets:i,position:a,gpuAcceleration:o,adaptive:r}){let{x:l,y:s}=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}}(i);const c=i.hasOwnProperty("x"),d=i.hasOwnProperty("y");let p=bt,u=ft;const f=window;if(r){let i=ut(e);i===Ye(e)&&(i=tt(e)),n===ft&&(u=mt,s-=i.clientHeight-t.height,s*=o?1:-1),n===bt&&(p=ht,l-=i.clientWidth-t.width,l*=o?1:-1)}const m=Object.assign({position:a},r&&Wt);return o?Object.assign(Object.assign({},m),{[u]:d?"0":"",[p]:c?"0":"",transform:(f.devicePixelRatio||1)<2?`translate(${l}px, ${s}px)`:`translate3d(${l}px, ${s}px, 0)`}):Object.assign(Object.assign({},m),{[u]:d?`${s}px`:"",[p]:c?`${l}px`:"",transform:""})}var Gt={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function({state:e,options:t,name:n}){const{offset:i=[0,0]}=t,a=St.reduce(((t,n)=>(t[n]=function(e,t,n){const i=Tt(e),a=[bt,ft].indexOf(i)>=0?-1:1;let[o,r]="function"==typeof n?n(Object.assign(Object.assign({},t),{placement:e})):n;return o=o||0,r=(r||0)*a,[bt,ht].indexOf(i)>=0?{x:r,y:o}:{x:o,y:r}}(n,e.rects,i),t)),{}),{x:o,y:r}=a[e.placement];null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=o,e.modifiersData.popperOffsets.y+=r),e.modifiersData[n]=a}};const Ut={left:"right",right:"left",bottom:"top",top:"bottom"};function qt(e){return e.replace(/left|right|bottom|top/g,(e=>Ut[e]))}const Xt={start:"end",end:"start"};function Yt(e){return e.replace(/start|end/g,(e=>Xt[e]))}function Jt(e,t={}){const{placement:n,boundary:i,rootBoundary:a,padding:o,flipVariations:r,allowedAutoPlacements:l=St}=t,s=jt(n),c=s?r?Nt:Nt.filter((e=>jt(e)===s)):vt;let d=c.filter((e=>l.indexOf(e)>=0));0===d.length&&(d=c);const p=d.reduce(((t,n)=>(t[n]=Ht(e,{placement:n,boundary:i,rootBoundary:a,padding:o})[Tt(n)],t)),{});return Object.keys(p).sort(((e,t)=>p[e]-p[t]))}var Zt={name:"flip",enabled:!0,phase:"main",fn:function({state:e,options:t,name:n}){if(e.modifiersData[n]._skip)return;const{mainAxis:i=!0,altAxis:a=!0,fallbackPlacements:o,padding:r,boundary:l,rootBoundary:s,altBoundary:c,flipVariations:d=!0,allowedAutoPlacements:p}=t,u=e.options.placement,f=Tt(u),m=[u,...o||(f===u||!d?[qt(u)]:function(e){if(Tt(e)===gt)return[];const t=qt(e);return[Yt(e),t,Yt(t)]}(u))].reduce(((t,n)=>t.concat(Tt(n)===gt?Jt(e,{placement:n,boundary:l,rootBoundary:s,padding:r,flipVariations:d,allowedAutoPlacements:p}):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],o=Tt(n),d=jt(n)===yt,p=[ft,mt].indexOf(o)>=0,u=p?"width":"height",f=Ht(e,{placement:n,boundary:l,rootBoundary:s,altBoundary:c,padding:r});let x=p?d?ht:bt:d?mt:ft;h[u]>b[u]&&(x=qt(x));const w=qt(x),E=[];if(i&&E.push(f[o]<=0),a&&E.push(f[x]<=0,f[w]<=0),E.every((e=>e))){y=n,v=!1;break}g.set(n,E)}if(v){for(let e=d?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 Qt(e,t,n){return Math.max(e,Math.min(t,n))}var en={name:"preventOverflow",enabled:!0,phase:"main",fn:function({state:e,options:t,name:n}){const{mainAxis:i=!0,altAxis:a=!1,boundary:o,rootBoundary:r,altBoundary:l,padding:s,tether:c=!0,tetherOffset:d=0}=t,p=Ht(e,{boundary:o,rootBoundary:r,padding:s,altBoundary:l}),u=Tt(e.placement),f=jt(e.placement),m=!f,h=Ft(u),b="x"===h?"y":"x",g=e.modifiersData.popperOffsets,v=e.rects.reference,y=e.rects.popper,x="function"==typeof d?d(Object.assign(Object.assign({},e.rects),{placement:e.placement})):d,w={x:0,y:0};if(g){if(i){const t="y"===h?ft:bt,n="y"===h?mt:ht,i="y"===h?"height":"width",a=g[h],o=g[h]+p[t],r=g[h]-p[n],l=c?-y[i]/2:0,s=f===yt?v[i]:y[i],d=f===yt?-y[i]:-v[i],u=e.elements.arrow,b=c&&u?rt(u):{width:0,height:0},E=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},O=E[t],C=E[n],N=Qt(0,v[i],b[i]),S=m?v[i]/2-l-N-O-x:s-N-O-x,k=m?-v[i]/2+l+N+C+x:d+N+C+x,R=e.elements.arrow&&ut(e.elements.arrow),I=R?"y"===h?R.clientTop||0:R.clientLeft||0:0,T=e.modifiersData.offset?e.modifiersData.offset[e.placement][h]:0,_=g[h]+S-T-I,D=g[h]+k-T,P=Qt(c?Math.min(o,_):o,a,c?Math.max(r,D):r);g[h]=P,w[h]=P-a}if(a){const e="x"===h?ft:bt,t="x"===h?mt:ht,n=g[b],i=Qt(n+p[e],n,n-p[t]);g[b]=i,w[b]=i-n}e.modifiersData[n]=w}},requiresIfExists:["offset"]};var tn={name:"arrow",enabled:!0,phase:"main",fn:function({state:e,name:t}){const n=e.elements.arrow,i=e.modifiersData.popperOffsets,a=Tt(e.placement),o=Ft(a),r=[bt,ht].indexOf(a)>=0?"height":"width";if(!n||!i)return;const l=e.modifiersData[`${t}#persistent`].padding,s=rt(n),c="y"===o?ft:bt,d="y"===o?mt:ht,p=e.rects.reference[r]+e.rects.reference[o]-i[o]-e.rects.popper[r],u=i[o]-e.rects.reference[o],f=ut(n),m=f?"y"===o?f.clientHeight||0:f.clientWidth||0:0,h=p/2-u/2,b=l[c],g=m-s[r]-l[d],v=m/2-s[r]/2+h,y=Qt(b,v,g),x=o;e.modifiersData[t]={[x]:y,centerOffset:y-v}},effect:function({state:e,options:t,name:n}){let{element:i="[data-popper-arrow]",padding:a=0}=t;null!=i&&("string"!=typeof i||(i=e.elements.popper.querySelector(i),i))&&_t(e.elements.popper,i)&&(e.elements.arrow=i,e.modifiersData[`${n}#persistent`]={padding:Mt("number"!=typeof a?a:Bt(a,vt))})},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function nn(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 an(e){return[ft,ht,mt,bt].some((t=>e[t]>=0))}const on=function(e={}){const{defaultModifiers:t=[],defaultOptions:n=Vt}=e;return function(e,i,a=n){let o={placement:"bottom",orderedModifiers:[],options:Object.assign(Object.assign({},Vt),n),modifiersData:{},elements:{reference:e,popper:i},attributes:{},styles:{}},r=[],l=!1;const s={state:o,setOptions(a){c(),o.options=Object.assign(Object.assign(Object.assign({},n),o.options),a),o.scrollParents={reference:Ze(e)?ct(e):e.contextElement?ct(e.contextElement):[],popper:ct(i)};const l=function(e){const t=Rt(e);return kt.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,...o.options.modifiers]));return o.orderedModifiers=l.filter((e=>e.enabled)),o.orderedModifiers.forEach((({name:e,options:t={},effect:n})=>{if("function"==typeof n){const i=n({state:o,name:e,instance:s,options:t}),a=()=>{};r.push(i||a)}})),s.update()},forceUpdate(){if(l)return;const{reference:e,popper:t}=o.elements;if(zt(e,t)){o.rects={reference:ot(e,ut(t),"fixed"===o.options.strategy),popper:rt(t)},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach((e=>o.modifiersData[e.name]=Object.assign({},e.data)));for(let e=0;e<o.orderedModifiers.length;e++){if(!0===o.reset){o.reset=!1,e=-1;continue}const{fn:t,options:n={},name:i}=o.orderedModifiers[e];"function"==typeof t&&(o=t({state:o,options:n,name:i,instance:s})||o)}}},update:It((()=>new Promise((e=>{s.forceUpdate(),e(o)})))),destroy(){c(),l=!0}};if(!zt(e,i))return s;function c(){r.forEach((e=>e())),r=[]}return s.setOptions(a).then((e=>{!l&&a.onFirstUpdate&&a.onFirstUpdate(e)})),s}}({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:()=>{},effect:function({state:e,instance:t,options:n}){const{scroll:i=!0,resize:a=!0}=n,o=Ye(e.elements.popper),r=[...e.scrollParents.reference,...e.scrollParents.popper];return i&&r.forEach((e=>{e.addEventListener("scroll",t.update,$t)})),a&&o.addEventListener("resize",t.update,$t),()=>{i&&r.forEach((e=>{e.removeEventListener("scroll",t.update,$t)})),a&&o.removeEventListener("resize",t.update,$t)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function({state:e,name:t}){e.modifiersData[t]=At({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:i=!0}=t,a={placement:Tt(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),Kt(Object.assign(Object.assign({},a),{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:i})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign(Object.assign({},e.styles.arrow),Kt(Object.assign(Object.assign({},a),{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]||{},i=e.attributes[t]||{},a=e.elements[t];Qe(a)&&et(a)&&(Object.assign(a.style,n),Object.keys(i).forEach((e=>{const t=i[e];!1===t?a.removeAttribute(e):a.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 i=e.elements[n],a=e.attributes[n]||{},o=Object.keys(e.styles.hasOwnProperty(n)?e.styles[n]:t[n]).reduce(((e,t)=>(e[t]="",e)),{});Qe(i)&&et(i)&&(Object.assign(i.style,o),Object.keys(a).forEach((e=>{i.removeAttribute(e)})))}))}},requires:["computeStyles"]},Gt,Zt,en,tn,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function({state:e,name:t}){const n=e.rects.reference,i=e.rects.popper,a=e.modifiersData.preventOverflow,o=Ht(e,{elementContext:"reference"}),r=Ht(e,{altBoundary:!0}),l=nn(o,n),s=nn(r,i,a),c=an(l),d=an(s);e.modifiersData[t]={referenceClippingOffsets:l,popperEscapeOffsets:s,isReferenceHidden:c,hasPopperEscaped:d},e.attributes.popper=Object.assign(Object.assign({},e.attributes.popper),{"data-popper-reference-hidden":c,"data-popper-escaped":d})}}]}),rn=Fe?a.useLayoutEffect:a.useEffect,ln=e=>e.reduce(((e,[t,n])=>(e[t]=n,e)),{}),sn=[],cn=(e,t,n={})=>{const i=a.useRef(null),o={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||sn},[r,l]=a.useState({styles:{popper:{position:o.strategy,left:"0",top:"0"}},attributes:{}}),s=a.useMemo((()=>({name:"updateState",enabled:!0,phase:"write",fn:({state:e})=>{const t=Object.keys(e.elements);l({styles:ln(t.map((t=>[t,e.styles[t]||{}]))),attributes:ln(t.map((t=>[t,e.attributes[t]])))})},requires:["computeStyles"]})),[]),c=a.useMemo((()=>{const e={onFirstUpdate:o.onFirstUpdate,placement:o.placement,strategy:o.strategy,modifiers:[...o.modifiers,s,{name:"applyStyles",enabled:!1}]};return t=i.current,n=e,JSON.stringify(t)===JSON.stringify(n)?i.current||e:(i.current=e,e);var t,n}),[o.onFirstUpdate,o.placement,o.strategy,o.modifiers,s]),d=a.useRef();return rn((()=>{d&&d.current&&d.current.setOptions(c)}),[c]),rn((()=>{if(null==e||null==t)return;const i=(n.createPopper||on)(e,t,c);return d.current=i,()=>{i.destroy(),d.current=null}}),[e,t,n.createPopper]),{state:d.current?d.current.state:null,styles:r.styles,attributes:r.attributes,update:d.current?d.current.update:null,forceUpdate:d.current?d.current.forceUpdate:null}},dn={left:"right",right:"left",bottom:"top",top:"bottom","top-start":"bottom-end","top-end":"bottom-start","bottom-start":"top-end","bottom-end":"top-start","left-start":"right-end","left-end":"right-start","right-start":"left-end","right-end":"left-start"},pn=e=>`opacity ${e}ms cubic-bezier(.54, 1.5, .38, 1.11)`,un=({trigger:e,popper:t,direction:n="down",position:i="start",placement:r,width:s,minWidth:c="trigger",maxWidth:d,appendTo:p="inline",zIndex:u=9999,isVisible:f=!0,positionModifiers:m,distance:h=0,onMouseEnter:b,onMouseLeave:g,onFocus:v,onBlur:y,onDocumentClick:x,onTriggerClick:w,onTriggerEnter:E,onPopperClick:O,onPopperMouseEnter:C,onPopperMouseLeave:N,onDocumentKeyDown:S,enableFlip:k=!0,flipBehavior:R="flip",triggerRef:I,popperRef:T,animationDuration:_=0,entryDelay:D=0,exitDelay:P=0,onHidden:L=(()=>{}),onHide:j=(()=>{}),onMount:F=(()=>{}),onShow:A=(()=>{}),onShown:M=(()=>{}),preventOverflow:B=!1})=>{var H;const[V,z]=a.useState(null),[$,W]=a.useState(null),[K,G]=a.useState(null),[U,q]=a.useState(null),[X,Y]=a.useState(!1),[J,Z]=a.useState(0),[Q,ee]=a.useState(f),te=a.useRef(null),ne=a.useRef(null),ie=a.useRef(null),ae=a.useRef(),oe=$||V,re=f||Q,le=((e,t="ltr")=>{if(!e)return t;const n=getComputedStyle(e).getPropertyValue("direction");return["ltr","rtl"].includes(n)?n:t})(null===(H=(null==I?void 0:I.current)||V)||void 0===H?void 0:H.parentElement),se=a.useMemo((()=>{const e={left:"left",right:"right",center:"center"};return{ltr:Object.assign({start:"left",end:"right"},e),rtl:Object.assign({start:"right",end:"left"},e)}[le][i]}),[i,le]),ce=a.useCallback((e=>x(e,oe,K)),[re,V,$,K,x]);a.useEffect((()=>{Y(!0),F()}),[]),a.useEffect((()=>()=>{Be([te,ie,ne])}),[]),a.useEffect((()=>{I&&(I.current?W(I.current):"function"==typeof I&&W(I()))}),[I,e]),a.useEffect((()=>{T&&(T.current?G(T.current):"function"==typeof T&&G(T()))}),[re,T]),a.useEffect((()=>{const e=new MutationObserver((()=>{ve&&ve()}));return K&&e.observe(K,{attributes:!0,childList:!0,subtree:!0}),()=>{e.disconnect()}}),[K]);const de=(e,t,n,i=!1)=>{e&&t&&t.addEventListener(n,e,{capture:i})},pe=(e,t,n,i=!1)=>{e&&t&&t.removeEventListener(n,e,{capture:i})};a.useEffect((()=>(de(b,oe,"mouseenter"),de(g,oe,"mouseleave"),de(v,oe,"focus"),de(y,oe,"blur"),de(w,oe,"click"),de(E,oe,"keydown"),de(O,K,"click"),de(C,K,"mouseenter"),de(N,K,"mouseleave"),x&&de(ce,document,"click",!0),de(S,document,"keydown",!0),()=>{pe(b,oe,"mouseenter"),pe(g,oe,"mouseleave"),pe(v,oe,"focus"),pe(y,oe,"blur"),pe(w,oe,"click"),pe(E,oe,"keydown"),pe(O,K,"click"),pe(C,K,"mouseenter"),pe(N,K,"mouseleave"),x&&pe(ce,document,"click",!0),pe(S,document,"keydown",!0)})),[V,K,b,g,v,y,w,E,O,C,N,x,S,$]);const ue=()=>{if(r)return r;let e="up"===n?"top":"bottom";return"center"!==se&&(e=`${e}-${"right"===se?"end":"start"}`),e},fe=a.useMemo(ue,[n,se,r]),me=a.useMemo((()=>(e=>e.replace(/left|right|bottom|top|top-start|top-end|bottom-start|bottom-end|right-start|right-end|left-start|left-end/g,(e=>dn[e])))(ue())),[n,se,r]),he=a.useMemo((()=>({name:"widthMods",enabled:void 0!==s||void 0!==c||void 0!==d,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{const t=e.rects.reference.width;s&&(e.styles.popper.width="trigger"===s?`${t}px`:s),c&&(e.styles.popper.minWidth="trigger"===c?`${t}px`:c),d&&(e.styles.popper.maxWidth="trigger"===d?`${t}px`:d)},effect:({state:e})=>{const t=e.elements.reference.offsetWidth;return s&&(e.elements.popper.style.width="trigger"===s?`${t}px`:s),c&&(e.elements.popper.style.minWidth="trigger"===c?`${t}px`:c),d&&(e.elements.popper.style.maxWidth="trigger"===d?`${t}px`:d),()=>{}}})),[s,c,d]),{styles:be,attributes:ge,update:ve,forceUpdate:ye}=cn(oe,K,{placement:fe,modifiers:[{name:"offset",options:{offset:[0,h]}},{name:"preventOverflow",enabled:B},{name:"hide",enabled:!0},{name:"flip",enabled:fe.startsWith("auto")||k,options:{fallbackPlacements:"flip"===R?[me]:R}},he]});a.useEffect((()=>{var e,n,i,a,o,r,l;const s=(null===(a=null===(i=null===(n=null===(e=null==t?void 0:t.props)||void 0===e?void 0:e.children)||void 0===n?void 0:n[1])||void 0===i?void 0:i.props)||void 0===a?void 0:a.children)||(null===(l=null===(r=null===(o=null==t?void 0:t.props)||void 0===o?void 0:o.children)||void 0===r?void 0:r.props)||void 0===l?void 0:l.children);q(s),s&&U&&s!==U&&ye&&ye()}),[t]),a.useEffect((()=>{ae.current<P&&(Be([te,ie]),ie.current=setTimeout((()=>{te.current=setTimeout((()=>{ee(!1)}),_)}),P)),ae.current=P}),[P]);a.useEffect((()=>{f?(A(),Be([te,ie]),ne.current=setTimeout((()=>{ee(!0),Z(1),M()}),D)):(j(),Be([ne]),ie.current=setTimeout((()=>{Z(0),te.current=setTimeout((()=>{ee(!1),L()}),_)}),P))}),[f]);const xe=Object.assign({className:l(t.props&&t.props.className,m&&(()=>{if(ge&&ge.popper&&ge.popper["data-popper-placement"]){const e=ge.popper["data-popper-placement"];return m[e]}return m.top})()),style:Object.assign(Object.assign(Object.assign({},t.props&&t.props.style||{}),be.popper),{zIndex:u,opacity:J,transition:pn(_)})},ge.popper),we=()=>{const e=a.cloneElement(t,xe);return T?e:a.createElement("div",{style:{display:"contents"},ref:e=>G(null==e?void 0:e.firstElementChild)},e)};return a.createElement(a.Fragment,null,!I&&e&&a.isValidElement(e)&&a.createElement("div",{style:{display:"contents"},ref:e=>z(null==e?void 0:e.firstElementChild)},e),I&&e&&a.isValidElement(e)&&e,X&&re&&(()=>{if("inline"===p)return we();{const e="function"==typeof p?p():p;return o.createPortal(we(),e)}})())};un.displayName="Popper";const fn=(e,t,n=(e=>document.activeElement.contains(e)),i=(e=>e),a=["A","BUTTON","INPUT"],o=!1,r=!1,l=!0,s=!0)=>{const c=document.activeElement,d=e.key;let p=null;if(!o&&["ArrowUp","ArrowDown"].includes(d)){e.preventDefault(),e.stopImmediatePropagation();let a=-1;t.forEach(((e,o)=>{if(n(e)){let e=0;for(;!p&&e<t.length&&-1*e<t.length;)"ArrowUp"===d?e--:e++,a=o+e,a>=t.length&&(a=0),a<0&&(a=t.length-1),p=i(t[a])}}))}if(!r&&["ArrowLeft","ArrowRight"].includes(d)){e.preventDefault(),e.stopImmediatePropagation();let i=-1;t.forEach(((o,r)=>{if(n(o)){const n=t[r].querySelectorAll(a.join(","));if(!n.length||s){let e=c;for(;e;)if(e="ArrowLeft"===d?e.previousElementSibling:e.nextElementSibling,e&&a.includes(e.tagName)){p=e;break}}else n.forEach(((t,a)=>{if(e.target===t){i=a+("ArrowLeft"===d?-1:1),i>=n.length&&(i=0),i<0&&(i=n.length-1),p=n[i]}}))}}))}p&&(l&&(c.tabIndex=-1,p.tabIndex=0),p.focus())};class mn extends a.Component{constructor(){super(...arguments),this.keyHandler=e=>{const{isEventFromContainer:t}=this.props;if(t?!t(e):!this._isEventFromContainer(e))return;const{isActiveElement:n,getFocusableElement:i,noVerticalArrowHandling:a,noHorizontalArrowHandling:o,noEnterHandling:r,noSpaceHandling:l,updateTabIndex:s,validSiblingTags:c,additionalKeyHandler:d,createNavigableElements:p,onlyTraverseSiblings:u}=this.props;d&&d(e);const f=p();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;r||"Enter"===m&&(e.preventDefault(),e.stopImmediatePropagation(),document.activeElement.click()),l||" "===m&&(e.preventDefault(),e.stopImmediatePropagation(),document.activeElement.click()),fn(e,f,n,i,c,a,o,s,u)},this._isEventFromContainer=e=>{const{containerRef:t}=this.props;return t.current&&t.current.contains(e.target)}}componentDidMount(){Fe&&window.addEventListener("keydown",this.keyHandler)}componentWillUnmount(){Fe&&window.removeEventListener("keydown",this.keyHandler)}render(){return null}}mn.displayName="KeyboardHandler",mn.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};const hn=a.createContext({menuId:null,parentMenu:null,onActionClick:()=>null,onSelect:()=>null,activeItemId:null,selected:null,drilledInMenus:[],drilldownItemPath:[],onDrillIn:null,onDrillOut:null,onGetMenuHeight:()=>null,flyoutRef:null,setFlyoutRef:()=>null,disableHover:!1,role:"menu"}),bn=a.createContext({itemId:null,isDisabled:!1});class gn extends a.Component{constructor(e){super(e),this.menuRef=a.createRef(),this.activeMenu=null,this.state={ouiaStateId:qe(vn.displayName),transitionMoveTarget:null,flyoutRef:null,disableHover:!1,currentDrilldownMenuId:this.props.id},this.handleDrilldownTransition=e=>{const t=this.menuRef.current;if(t&&(t===e.target.closest(`.${c}`)||Array.from(t.getElementsByClassName(c)).includes(e.target.closest(`.${c}`))))if(this.state.transitionMoveTarget)this.state.transitionMoveTarget.focus(),this.setState({transitionMoveTarget:null});else{const e=t.querySelector("#"+this.props.activeMenu)||t||null,n=e.getElementsByTagName("UL");if(0===n.length)return;const i=Array.from(n[0].children);if(this.state.currentDrilldownMenuId&&e.id===this.state.currentDrilldownMenuId)return;this.setState({currentDrilldownMenuId:e.id});const a=i.filter((e=>!(e.classList.contains("pf-m-disabled")||e.classList.contains(s))))[0].firstChild;a.focus(),a.tabIndex=0}},this.handleExtraKeys=e=>{const t=this.props.containsDrilldown,n=document.activeElement;if(e.target.closest(`.${c}`)===this.activeMenu||e.target.classList.contains(S)||(this.activeMenu=e.target.closest(`.${c}`),this.setState({disableHover:!0})),"INPUT"===e.target.tagName)return;const i=this.activeMenu,a=e.key,o=n.classList.contains(S)||n.classList.contains(T);if(" "===a||"Enter"===a){if(e.preventDefault(),t&&!o){if(n.closest("li").classList.contains("pf-m-current-path")&&"LI"===i.parentElement.tagName)n.tabIndex=-1,i.parentElement.firstChild.tabIndex=0,this.setState({transitionMoveTarget:i.parentElement.firstChild});else if(n.nextElementSibling&&n.nextElementSibling.classList.contains(c)){const e=Array.from(n.nextElementSibling.getElementsByTagName("UL")[0].children).filter((e=>!(e.classList.contains("pf-m-disabled")||e.classList.contains(s))));n.tabIndex=-1,e[0].firstChild.tabIndex=0,this.setState({transitionMoveTarget:e[0].firstChild})}}document.activeElement.click()}},this.createNavigableElements=()=>this.props.containsDrilldown?this.activeMenu?Array.from(this.activeMenu.getElementsByTagName("UL")[0].children).filter((e=>!(e.classList.contains("pf-m-disabled")||e.classList.contains(s)))):[]:this.menuRef.current?Array.from(this.menuRef.current.getElementsByTagName("LI")).filter((e=>!(e.classList.contains("pf-m-disabled")||e.classList.contains(s)))):[],e.innerRef&&(this.menuRef=e.innerRef)}allowTabFirstItem(){const e=this.menuRef.current;if(e){const t=e.querySelector("ul button:not(:disabled), ul a:not(:disabled)");t&&(t.tabIndex=0)}}componentDidMount(){this.context&&this.setState({disableHover:this.context.disableHover}),Fe&&window.addEventListener("transitionend",this.props.isRootMenu?this.handleDrilldownTransition:null),this.allowTabFirstItem()}componentWillUnmount(){Fe&&window.removeEventListener("transitionend",this.handleDrilldownTransition)}componentDidUpdate(e){e.children!==this.props.children&&this.allowTabFirstItem()}render(){const e=this.props,{id:t,children:n,className:i,onSelect:o,selected:s=null,onActionClick:d,ouiaId:p,ouiaSafe:u,containsFlyout:f,isNavFlyout:m,containsDrilldown:h,isMenuDrilledIn:b,isPlain:g,isScrollable:v,drilldownItemPath:y,drilledInMenus:x,onDrillIn:w,onDrillOut:E,onGetMenuHeight:O,parentMenu:k=null,activeItemId:R=null,innerRef:I,isRootMenu:_,activeMenu:D,role:P}=e,L=r(e,["id","children","className","onSelect","selected","onActionClick","ouiaId","ouiaSafe","containsFlyout","isNavFlyout","containsDrilldown","isMenuDrilledIn","isPlain","isScrollable","drilldownItemPath","drilledInMenus","onDrillIn","onDrillOut","onGetMenuHeight","parentMenu","activeItemId","innerRef","isRootMenu","activeMenu","role"]),j=b||x&&x.includes(t)||!1;return a.createElement(hn.Provider,{value:{menuId:t,parentMenu:k||t,onSelect:o,onActionClick:d,activeItemId:R,selected:s,drilledInMenus:x,drilldownItemPath:y,onDrillIn:w,onDrillOut:E,onGetMenuHeight:O,flyoutRef:this.state.flyoutRef,setFlyoutRef:e=>this.setState({flyoutRef:e}),disableHover:this.state.disableHover,role:P}},_&&a.createElement(mn,{containerRef:this.menuRef||null,additionalKeyHandler:this.handleExtraKeys,createNavigableElements:this.createNavigableElements,isActiveElement:e=>document.activeElement.closest("li")===e||document.activeElement.parentElement===e||document.activeElement.closest(`.${C}`)===e||document.activeElement.closest("ol")&&document.activeElement.closest("ol").firstChild===e,getFocusableElement:e=>{var t,n;return"DIV"===(null==e?void 0:e.tagName)&&e.querySelector("input")||"LABEL"===(null===(t=e.firstChild)||void 0===t?void 0:t.tagName)&&e.querySelector("input")||"DIV"===(null===(n=e.firstChild)||void 0===n?void 0:n.tagName)&&e.querySelector("a, button, input")||e.firstChild},noHorizontalArrowHandling:document.activeElement&&(document.activeElement.classList.contains(S)||document.activeElement.classList.contains(T)||"INPUT"===document.activeElement.tagName),noEnterHandling:!0,noSpaceHandling:!0}),a.createElement("div",Object.assign({id:t,className:l(c,g&&N.plain,v&&N.scrollable,f&&N.flyout,m&&N.nav,h&&N.drilldown,j&&N.drilledIn,i),ref:this.menuRef},Ke(vn.displayName,void 0!==p?p:this.state.ouiaStateId,u),L),n))}}gn.displayName="Menu",gn.contextType=hn,gn.defaultProps={ouiaSafe:!0,isRootMenu:!0,isPlain:!1,isScrollable:!1,role:"menu"};const vn=a.forwardRef(((e,t)=>a.createElement(gn,Object.assign({},e,{innerRef:t}))));vn.displayName="Menu";const yn="--pf-v5-c-menu__content--Height",xn="--pf-v5-c-menu__content--MaxHeight",wn=a.forwardRef(((e,t)=>{const{getHeight:n,children:i,menuHeight:o,maxMenuHeight:s}=e,c=r(e,["getHeight","children","menuHeight","maxMenuHeight"]),p=a.createRef();return a.createElement(hn.Consumer,null,(({menuId:r,onGetMenuHeight:u})=>a.createElement("div",Object.assign({},c,{className:l(d,e.className),ref:e=>((e,i,a)=>{if(e){let t=e.clientHeight,o=null,r=e.closest(`.${E}`);for(;null!==r&&1===r.nodeType;)r.classList.contains(E)&&(o=r),r=r.parentElement;if(o){const e=getComputedStyle(o);t+=parseFloat(e.getPropertyValue("padding-top").replace(/px/g,""))+parseFloat(e.getPropertyValue("padding-bottom").replace(/px/g,""))+parseFloat(getComputedStyle(o.parentElement).getPropertyValue("border-bottom-width").replace(/px/g,""))}a&&a(i,t),n&&n(t.toString())}return t||p})(e,r,u),style:Object.assign(Object.assign({},o&&{[yn]:o}),s&&{[xn]:s})}),i)))}));wn.displayName="MenuContent";const En="--pf-v5-c-menu--m-flyout__menu--top-offset",On="--pf-v5-c-menu--m-flyout__menu--m-left--right-offset",Cn="--pf-v5-c-menu--m-flyout__menu--left-offset";let Nn=0;function Sn({name:e,xOffset:t=0,yOffset:n=0,width:i,height:o,svgPath:l}){var s;return s=class extends a.Component{constructor(){super(...arguments),this.id="icon-title-"+Nn++}render(){const e=this.props,{title:s,className:c}=e,d=r(e,["title","className"]),p=c?`pf-v5-svg ${c}`:"pf-v5-svg",u=Boolean(s),f=[t,n,i,o].join(" ");return a.createElement("svg",Object.assign({className:p,viewBox:f,fill:"currentColor","aria-labelledby":u?this.id:null,"aria-hidden":!u||null,role:"img",width:"1em",height:"1em"},d),u&&a.createElement("title",{id:this.id},s),a.createElement("path",{d:l}))}},s.displayName=e,s}const kn=Sn({name:"ExternalLinkAltIcon",height:512,width:512,svgPath:"M432,320H400a16,16,0,0,0-16,16V448H64V128H208a16,16,0,0,0,16-16V80a16,16,0,0,0-16-16H48A48,48,0,0,0,0,112V464a48,48,0,0,0,48,48H400a48,48,0,0,0,48-48V336A16,16,0,0,0,432,320ZM488,0h-128c-21.37,0-32.05,25.91-17,41l35.73,35.73L135,320.37a24,24,0,0,0,0,34L157.67,377a24,24,0,0,0,34,0L435.28,133.32,471,169c15,15,41,4.5,41-17V24A24,24,0,0,0,488,0Z",yOffset:0,xOffset:0}),Rn=Sn({name:"AngleRightIcon",height:512,width:256,svgPath:"M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34z",yOffset:0,xOffset:0}),In=Sn({name:"AngleLeftIcon",height:512,width:256,svgPath:"M31.7 239l136-136c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9L127.9 256l96.4 96.4c9.4 9.4 9.4 24.6 0 33.9L201.7 409c-9.4 9.4-24.6 9.4-33.9 0l-136-136c-9.5-9.4-9.5-24.6-.1-34z",yOffset:0,xOffset:0}),Tn=Sn({name:"CheckIcon",height:512,width:512,svgPath:"M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z",yOffset:0,xOffset:0});var _n="pf-v5-c-check",Dn="pf-v5-c-check__body",Pn="pf-v5-c-check__description",Ln="pf-v5-c-check__input",jn="pf-v5-c-check__label",Fn="pf-v5-c-check__label-required",An={standalone:"pf-m-standalone",disabled:"pf-m-disabled"};const Mn=()=>{};class Bn extends a.Component{constructor(e){super(e),this.handleChange=e=>{this.props.onChange(e,e.currentTarget.checked)},this.state={ouiaStateId:qe(Bn.displayName)}}render(){const e=this.props,{"aria-label":t,className:n,inputClassName:i,onChange:o,isLabelWrapped:s,isLabelBeforeButton:c,isValid:d,isDisabled:p,isRequired:u,isChecked:f,label:m,checked:h,defaultChecked:b,description:g,body:v,ouiaId:y,ouiaSafe:x,component:w}=e,E=r(e,["aria-label","className","inputClassName","onChange","isLabelWrapped","isLabelBeforeButton","isValid","isDisabled","isRequired","isChecked","label","checked","defaultChecked","description","body","ouiaId","ouiaSafe","component"]);E.id||console.error("Checkbox:","id is required to make input accessible");const O={};([!0,!1].includes(h)||!0===f)&&(O.checked=h||f),o!==Mn&&(O.checked=f),[!1,!0].includes(b)&&(O.defaultChecked=b);const C=a.createElement("input",Object.assign({},E,{className:l(Ln,i),type:"checkbox",onChange:this.handleChange,"aria-invalid":!d,"aria-label":t,disabled:p,required:u,ref:e=>e&&(e.indeterminate=null===f)},O,Ke(Bn.displayName,void 0!==y?y:this.state.ouiaStateId,x))),N=s&&!w||"label"===w,S=N?"span":"label",k=m?a.createElement(S,{className:l(jn,p&&An.disabled),htmlFor:N?void 0:E.id},m,u&&a.createElement("span",{className:l(Fn),"aria-hidden":"true"},"*")):null,R=null!=w?w:N?"label":"div";return O.checked=null!==O.checked&&O.checked,a.createElement(R,{className:l(_n,!m&&An.standalone,n),htmlFor:N?E.id:void 0},c?a.createElement(a.Fragment,null,k,C):a.createElement(a.Fragment,null,C,k),g&&a.createElement("span",{className:l(Pn)},g),v&&a.createElement("span",{className:l(Dn)},v))}}Bn.displayName="Checkbox",Bn.defaultProps={className:"",isLabelWrapped:!1,isValid:!0,isDisabled:!1,isRequired:!1,isChecked:!1,onChange:Mn,ouiaSafe:!0};const Hn=Sn({name:"StarIcon",height:512,width:576,svgPath:"M259.3 17.8L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0z",yOffset:0,xOffset:0}),Vn=e=>{var{className:t="",icon:n,onClick:i,"aria-label":o,isFavorited:s=null,isDisabled:c,actionId:d,innerRef:p}=e,m=r(e,["className","icon","onClick","aria-label","isFavorited","isDisabled","actionId","innerRef"]);return a.createElement(hn.Consumer,null,(({onActionClick:e})=>a.createElement(bn.Consumer,null,(({itemId:r,isDisabled:h})=>a.createElement("button",Object.assign({className:l(u,null!==s&&N.favorite,s&&N.favorited,t),"aria-label":o,onClick:t=>{i&&i(t),e&&e(t,r,d)}},(!0===c||!0===h)&&{disabled:!0},{ref:p,tabIndex:-1},m),a.createElement("span",{className:l(f)},"favorites"===n||null!==s?a.createElement(Hn,{"aria-hidden":!0}):n))))))},zn=a.forwardRef(((e,t)=>a.createElement(Vn,Object.assign({},e,{innerRef:t}))));zn.displayName="MenuItemAction";var $n={top:"pf-m-top",topLeft:"pf-m-top-left",topRight:"pf-m-top-right",bottom:"pf-m-bottom",bottomLeft:"pf-m-bottom-left",bottomRight:"pf-m-bottom-right",left:"pf-m-left",leftTop:"pf-m-left-top",leftBottom:"pf-m-left-bottom",right:"pf-m-right",rightTop:"pf-m-right-top",rightBottom:"pf-m-right-bottom",textAlignLeft:"pf-m-text-align-left"},Wn="pf-v5-c-tooltip",Kn="pf-v5-c-tooltip__arrow",Gn="pf-v5-c-tooltip__content";const Un=e=>{var{className:t,children:n,isLeftAligned:i}=e,o=r(e,["className","children","isLeftAligned"]);return a.createElement("div",Object.assign({className:l(Gn,i&&$n.textAlignLeft,t)},o),n)};Un.displayName="TooltipContent";const qn=e=>{var{className:t}=e,n=r(e,["className"]);return a.createElement("div",Object.assign({className:l(Kn,t)},n))};qn.displayName="TooltipArrow";const Xn={name:"--pf-v5-c-tooltip--MaxWidth",value:"18.75rem",var:"var(--pf-v5-c-tooltip--MaxWidth)"};var Yn;!function(e){e.auto="auto",e.top="top",e.bottom="bottom",e.left="left",e.right="right",e.topStart="top-start",e.topEnd="top-end",e.bottomStart="bottom-start",e.bottomEnd="bottom-end",e.leftStart="left-start",e.leftEnd="left-end",e.rightStart="right-start",e.rightEnd="right-end"}(Yn||(Yn={}));let Jn=1;const Zn=e=>{var{content:t,position:n="top",trigger:i="mouseenter focus",isVisible:o=!1,isContentLeftAligned:s=!1,enableFlip:c=!0,className:d="",entryDelay:p=300,exitDelay:u=300,appendTo:f=(()=>document.body),zIndex:m=9999,minWidth:h,maxWidth:b=Xn.value,distance:g=15,aria:v="describedby",flipBehavior:y=["top","right","bottom","left","top","right","bottom"],id:x="pf-tooltip-"+Jn++,children:w,animationDuration:E=300,triggerRef:O,"aria-live":C=(O?"polite":"off"),onTooltipHidden:N=(()=>{})}=e,S=r(e,["content","position","trigger","isVisible","isContentLeftAligned","enableFlip","className","entryDelay","exitDelay","appendTo","zIndex","minWidth","maxWidth","distance","aria","flipBehavior","id","children","animationDuration","triggerRef","aria-live","onTooltipHidden"]);const k=i.includes("mouseenter"),R=i.includes("focus"),I=i.includes("click"),T="manual"===i,[_,D]=a.useState(!1),P=a.createRef();a.useEffect((()=>{o?L():j()}),[o]);const L=()=>{D(!0)},j=()=>{D(!1)},F={top:$n.top,bottom:$n.bottom,left:$n.left,right:$n.right,"top-start":$n.topLeft,"top-end":$n.topRight,"bottom-start":$n.bottomLeft,"bottom-end":$n.bottomRight,"left-start":$n.leftTop,"left-end":$n.leftBottom,"right-start":$n.rightTop,"right-end":$n.rightBottom},A=b!==Xn.value,M=a.createElement("div",Object.assign({"aria-live":C,className:l(Wn,d),role:"tooltip",id:x,style:{maxWidth:A?b:null},ref:P},S),a.createElement(qn,null),a.createElement(Un,{isLeftAligned:s},t));return a.createElement(un,{trigger:"none"!==v&&_?"describedby"===v&&w&&w.props&&!w.props["aria-describedby"]?a.cloneElement(w,{"aria-describedby":x}):"labelledby"===v&&w.props&&!w.props["aria-labelledby"]?a.cloneElement(w,{"aria-labelledby":x}):w:w,triggerRef:O,popper:M,popperRef:P,minWidth:void 0!==h?h:"revert",appendTo:f,isVisible:_,positionModifiers:F,distance:g,placement:n,onMouseEnter:k&&L,onMouseLeave:k&&j,onPopperMouseEnter:k&&L,onPopperMouseLeave:k&&j,onFocus:R&&L,onBlur:R&&j,onDocumentClick:I&&((e,t)=>{_?j():e.target===t&&L()}),onDocumentKeyDown:T?null:e=>{T||e.key===B&&_&&j()},onTriggerEnter:T?null:e=>{e.key===H&&(_?j():L())},enableFlip:c,zIndex:m,flipBehavior:y,animationDuration:E,entryDelay:p,exitDelay:u,onHidden:N})};Zn.displayName="Tooltip";const Qn=a.createContext({direction:"right"}),ei=e=>{var{children:t,className:n,itemId:i=null,to:o,hasCheckbox:d=!1,isActive:u=null,isFavorited:f=null,isLoadButton:E=!1,isLoading:C=!1,flyoutMenu:S,direction:k,description:R=null,onClick:I=(()=>{}),component:T="button",isDisabled:_=!1,isAriaDisabled:D=!1,isExternalLink:P=!1,isSelected:L=null,isFocused:j,isDanger:F=!1,icon:A,actions:M,onShowFlyout:B,drilldownMenu:H,isOnPath:V,innerRef:z,id:$,"aria-label":W,tooltipProps:K,rel:G,target:U,download:q}=e,X=r(e,["children","className","itemId","to","hasCheckbox","isActive","isFavorited","isLoadButton","isLoading","flyoutMenu","direction","description","onClick","component","isDisabled","isAriaDisabled","isExternalLink","isSelected","isFocused","isDanger","icon","actions","onShowFlyout","drilldownMenu","isOnPath","innerRef","id","aria-label","tooltipProps","rel","target","download"]);const{menuId:Y,parentMenu:J,onSelect:Z,onActionClick:Q,activeItemId:ee,selected:te,drilldownItemPath:ne,onDrillIn:ie,onDrillOut:ae,flyoutRef:oe,setFlyoutRef:re,disableHover:le,role:se}=a.useContext(hn);let ce=o?"a":T;d&&!o&&(ce="label");const[de,pe]=a.useState(null),ue=a.useContext(Qn),[fe,me]=a.useState(ue.direction),he=a.useRef(),be=he===oe,ge=void 0!==S,ve=e=>{!be&&e?re(he):be&&!e&&re(null),B&&e&&B()};rn((()=>{if(ge&&he.current&&Fe){const e=he.current.lastElementChild;if(e&&e.classList.contains(c)){const t=he.current.getClientRects()[0],n=e.getClientRects()[0];if(t&&n){const i=t.x-n.width,a=window.innerWidth-t.x-t.width-n.width;let o=fe;a<0&&"left"!==o?(me("left"),o="left"):i<0&&"right"!==o&&(me("right"),o="right");let r=0;i<0&&a<0&&(r="right"===o?-a:-i),"left"===o?(e.classList.add(N.left),e.style.setProperty(On,`-${r}px`)):e.style.setProperty(Cn,`-${r}px`);const l=window.innerHeight-t.y-n.height;window.innerHeight-n.height<0&&l<0||l<0&&e.style.setProperty(En,`${l}px`)}}}}),[be,S]),a.useEffect((()=>{me(ue.direction)}),[ue]),a.useEffect((()=>{if(de)if(be){const e=de.nextElementSibling;Array.from(e.getElementsByTagName("UL")[0].children).filter((e=>!(e.classList.contains("pf-m-disabled")||e.classList.contains(s))))[0].firstChild.focus()}else de.focus()}),[be,de]);const ye=e=>{const t=e.key,n=e.target,i=e.type;" "!==t&&"Enter"!==t&&"ArrowRight"!==t&&"click"!==i||(e.stopPropagation(),e.preventDefault(),be||(ve(!0),pe(n))),"Escape"!==t&&"ArrowLeft"!==t||be&&(e.stopPropagation(),ve(!1))},xe=(e,t)=>{D||(t&&t(e,i),I&&I(e))},we=V&&V||ne&&ne.includes(i)||!1;let Ee;k&&(Ee="down"===k?e=>ie&&ie(e,Y,"function"==typeof H?H().props.id:H.props.id,i):e=>ae&&ae(e,J,i));let Oe={};"a"===ce?Oe={href:o,"aria-disabled":!(!_&&!D)||null,disabled:null,target:P?"_blank":U,rel:G,download:q}:"button"===ce&&(Oe={type:"button","aria-disabled":!!D||null}),V?Oe["aria-expanded"]=!0:ge&&(Oe["aria-haspopup"]="menu",Oe["aria-expanded"]=be);const Ce=()=>null!==L?L:null!==te&&null!==i&&(Array.isArray(te)&&te.includes(i)||i===te);a.useEffect((()=>{if(j&&he.current){const e=he.current,t=e.parentElement;if(t){const n=e.offsetTop-t.offsetTop<t.scrollTop,i=e.offsetTop-t.offsetTop+e.clientHeight;(n||i)&&e.scrollIntoView({behavior:"auto",block:"nearest"})}}}),[j]);const Ne="listbox"===se,Se=a.createElement(a.Fragment,null,a.createElement(Ve,null,(e=>a.createElement(ce,Object.assign({id:$,tabIndex:-1,className:l(p,Ce()&&!d&&N.selected,n),"aria-current":null!==u?u?"page":null:null!==i&&null!==ee?i===ee:null},!d&&{disabled:_,"aria-label":W},!d&&!S&&{role:Ne?"option":"menuitem"},!d&&!S&&Ne&&{"aria-selected":Ce()},{ref:z},!d&&{onClick:e=>{D?e.preventDefault():(xe(e,Z),Ee&&Ee(e),S&&ye(e))}},d&&{htmlFor:e},Oe),a.createElement("span",{className:l(v)},"up"===k&&a.createElement("span",{className:l(w)},a.createElement(In,{"aria-hidden":!0})),A&&a.createElement("span",{className:l(g)},A),d&&a.createElement("span",{className:l(m)},a.createElement(Bn,{id:e,component:"span",isChecked:L||!1,onChange:e=>xe(e,Z),isDisabled:_,"aria-disabled":D})),a.createElement("span",{className:l(x)},t),P&&a.createElement("span",{className:l(b)},a.createElement(kn,{"aria-hidden":!0})),(S||"down"===k)&&a.createElement("span",{className:l(w)},a.createElement(Rn,{"aria-hidden":!0})),Ce()&&a.createElement("span",{className:l(y)},a.createElement(Tn,{"aria-hidden":!0}))),R&&"up"!==k&&a.createElement("span",{className:l(h)},a.createElement("span",null,R))))),be&&a.createElement(hn.Provider,{value:{disableHover:le}},a.createElement(Qn.Provider,{value:{direction:fe}},S)),"function"==typeof H?H():H,a.createElement(bn.Provider,{value:{itemId:i,isDisabled:_}},M,null!==f&&a.createElement(zn,{icon:"favorites",isFavorited:f,"aria-label":f?"starred":"not starred",onClick:e=>Q(e,i),tabIndex:-1,actionId:"fav"})));return a.createElement("li",Object.assign({className:l(O,_&&N.disabled,D&&N.ariaDisabled,we&&N.currentPath,E&&N.load,C&&N.loading,j&&N.focus,F&&N.danger,n),onMouseOver:()=>{D||le||(ge?ve(!0):re(null))}},S&&!D&&{onKeyDown:ye},{ref:he,role:d?"menuitem":"none"},d&&{"aria-label":W},X),K?a.createElement(Zn,Object.assign({},K),Se):Se)},ti=a.forwardRef(((e,t)=>a.createElement(ei,Object.assign({},e,{innerRef:t}))));ti.displayName="MenuItem";const ni=e=>{var{children:t=null,className:n,isAriaMultiselectable:i=!1,"aria-label":o}=e,s=r(e,["children","className","isAriaMultiselectable","aria-label"]);const{role:c}=a.useContext(hn);return a.createElement("ul",Object.assign({role:c},"listbox"===c&&{"aria-multiselectable":i},{className:l(E,n),"aria-label":o},s),t)};ni.displayName="MenuList";const ii=e=>{var{children:n,className:i,onSelect:a,isOpen:o,toggle:s,shouldFocusToggleOnSelect:c=!1,onOpenChange:d,isPlain:p,isScrollable:u,innerRef:f,ouiaId:m,ouiaSafe:h=!0,zIndex:b=9999,popperProps:g,onOpenChangeKeys:v=["Escape","Tab"],menuHeight:y,maxMenuHeight:x,shouldFocusFirstItemOnOpen:w=!0}=e,E=r(e,["children","className","onSelect","isOpen","toggle","shouldFocusToggleOnSelect","onOpenChange","isPlain","isScrollable","innerRef","ouiaId","ouiaSafe","zIndex","popperProps","onOpenChangeKeys","menuHeight","maxMenuHeight","shouldFocusFirstItemOnOpen"]);const O=t.useRef(),C=t.useRef(),N=Ge(ai.displayName,m,h),S=f||O,k="function"==typeof s||"function"!=typeof s&&!s.toggleRef?C:null==s?void 0:s.toggleRef;t.useEffect((()=>{const e=e=>{var t,n,i;o&&d&&((null===(t=S.current)||void 0===t?void 0:t.contains(e.target))||(null===(n=k.current)||void 0===n?void 0:n.contains(e.target)))&&v.includes(e.key)&&(d(!1),null===(i=k.current)||void 0===i||i.focus())},t=e=>{var t,n,i;o&&w&&(null===(t=k.current)||void 0===t?void 0:t.contains(e.target))&&setTimeout((()=>{var e;const t=null===(e=null==S?void 0:S.current)||void 0===e?void 0:e.querySelector('li button:not(:disabled),li input:not(:disabled),li a:not([aria-disabled="true"])');t&&t.focus()}),0),o&&d&&!(null===(n=null==k?void 0:k.current)||void 0===n?void 0:n.contains(e.target))&&o&&!(null===(i=S.current)||void 0===i?void 0:i.contains(e.target))&&d(!1)};return window.addEventListener("keydown",e),window.addEventListener("click",t),()=>{window.removeEventListener("keydown",e),window.removeEventListener("click",t)}}),[o,S,k,d,v]);const R=void 0!==x||void 0!==y||u,I=t.createElement(vn,Object.assign({className:l(i),ref:S,onSelect:(e,t)=>{a&&a(e,t),c&&k.current.focus()},isPlain:p,isScrollable:R},E,N),t.createElement(wn,{menuHeight:y,maxMenuHeight:x},n));return t.createElement(un,Object.assign({trigger:"function"==typeof s?s(k):s.toggleNode,triggerRef:k,popper:I,popperRef:S,isVisible:o,zIndex:b},g))},ai=t.forwardRef(((e,n)=>t.createElement(ii,Object.assign({innerRef:n},e))));ai.displayName="Dropdown";const oi=e=>{var{children:n,className:i,description:a,isDisabled:o,isAriaDisabled:s,value:c,onClick:d,ouiaId:p,ouiaSafe:u,innerRef:f,tooltipProps:m}=e,h=r(e,["children","className","description","isDisabled","isAriaDisabled","value","onClick","ouiaId","ouiaSafe","innerRef","tooltipProps"]);const b=Ge(ri.displayName,p,u);return t.createElement(ti,Object.assign({className:l(i),description:a,isDisabled:o,isAriaDisabled:s,itemId:c,onClick:d,tooltipProps:m,ref:f},b,h),n)},ri=t.forwardRef(((e,n)=>t.createElement(oi,Object.assign({},e,{innerRef:n}))));ri.displayName="DropdownItem";const li=e=>{var{children:n,className:i}=e,a=r(e,["children","className"]);return t.createElement(ni,Object.assign({className:l(i)},a),n)};li.displayName="DropdownList";var si={badge:"pf-v5-c-badge",button:"pf-v5-c-button",buttonCount:"pf-v5-c-button__count",buttonIcon:"pf-v5-c-button__icon",buttonProgress:"pf-v5-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",unread:"pf-m-unread",inline:"pf-m-inline",danger:"pf-m-danger",warning:"pf-m-warning",control:"pf-m-control",expanded:"pf-m-expanded",plain:"pf-m-plain",noPadding:"pf-m-no-padding",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"},spinner:"pf-v5-c-spinner",themeDark:"pf-v5-theme-dark"},ci={modifiers:{inline:"pf-m-inline",sm:"pf-m-sm",md:"pf-m-md",lg:"pf-m-lg",xl:"pf-m-xl"},spinner:"pf-v5-c-spinner",spinnerPath:"pf-v5-c-spinner__path"};const di="--pf-v5-c-spinner--diameter";var pi;!function(e){e.sm="sm",e.md="md",e.lg="lg",e.xl="xl"}(pi||(pi={}));const ui=e=>{var{className:t="",size:n="xl","aria-valuetext":i="Loading...",diameter:o,isInline:s=!1,"aria-label":c,"aria-labelledBy":d}=e,p=r(e,["className","size","aria-valuetext","diameter","isInline","aria-label","aria-labelledBy"]);return a.createElement("svg",Object.assign({className:l(ci.spinner,s?ci.modifiers.inline:ci.modifiers[n],t),role:"progressbar","aria-valuetext":i,viewBox:"0 0 100 100"},o&&{style:{[di]:o}},c&&{"aria-label":c},d&&{"aria-labelledBy":d},!c&&!d&&{"aria-label":"Contents"},p),a.createElement("circle",{className:ci.spinnerPath,cx:"50",cy:"50",r:"45",fill:"none"}))};ui.displayName="Spinner";var fi="pf-v5-c-badge",mi={read:"pf-m-read",unread:"pf-m-unread"};const hi=e=>{var{isRead:t=!1,className:n="",children:i="",screenReaderText:o}=e,s=r(e,["isRead","className","children","screenReaderText"]);return a.createElement("span",Object.assign({},s,{className:l(fi,t?mi.read:mi.unread,n)}),i,o&&a.createElement("span",{className:"pf-v5-screen-reader"},o))};var bi,gi,vi;hi.displayName="Badge",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"}(bi||(bi={})),function(e){e.button="button",e.submit="submit",e.reset="reset"}(gi||(gi={})),function(e){e.default="default",e.sm="sm",e.lg="lg"}(vi||(vi={}));const yi=e=>{var{children:t=null,className:n="",component:i="button",isActive:o=!1,isBlock:s=!1,isDisabled:c=!1,isAriaDisabled:d=!1,isLoading:p=null,isDanger:u=!1,spinnerAriaValueText:f,spinnerAriaLabelledBy:m,spinnerAriaLabel:h,size:b=vi.default,inoperableEvents:g=["onClick","onKeyPress"],isInline:v=!1,type:y=gi.button,variant:x=bi.primary,iconPosition:w="start","aria-label":E=null,icon:O=null,ouiaId:C,ouiaSafe:N=!0,tabIndex:S=null,innerRef:k,countOptions:R}=e,I=r(e,["children","className","component","isActive","isBlock","isDisabled","isAriaDisabled","isLoading","isDanger","spinnerAriaValueText","spinnerAriaLabelledBy","spinnerAriaLabel","size","inoperableEvents","isInline","type","variant","iconPosition","aria-label","icon","ouiaId","ouiaSafe","tabIndex","innerRef","countOptions"]);const T=Ge(xi.displayName,C,N,x),_=i,D="button"===_,P=v&&"span"===_,L=g.reduce(((e,t)=>Object.assign(Object.assign({},e),{[t]:e=>{e.preventDefault()}})),{});return a.createElement(_,Object.assign({},I,d?L:null,{"aria-disabled":c||d,"aria-label":E,className:l(si.button,si.modifiers[x],s&&si.modifiers.block,c&&si.modifiers.disabled,d&&si.modifiers.ariaDisabled,o&&si.modifiers.active,v&&x===bi.link&&si.modifiers.inline,u&&(x===bi.secondary||x===bi.link)&&si.modifiers.danger,null!==p&&x!==bi.plain&&si.modifiers.progress,p&&si.modifiers.inProgress,b===vi.sm&&si.modifiers.small,b===vi.lg&&si.modifiers.displayLg,n),disabled:D?c:null,tabIndex:null!==S?S:c?D?null:-1:d?null:P?0:void 0,type:D||P?y:null,role:P?"button":null,ref:k},T),p&&a.createElement("span",{className:l(si.buttonProgress)},a.createElement(ui,{size:pi.md,isInline:v,"aria-valuetext":f,"aria-label":h,"aria-labelledby":m})),x===bi.plain&&null===t&&O?O:null,x!==bi.plain&&O&&("start"===w||"left"===w)&&a.createElement("span",{className:l(si.buttonIcon,si.modifiers.start)},O),t,x!==bi.plain&&O&&("end"===w||"right"===w)&&a.createElement("span",{className:l(si.buttonIcon,si.modifiers.end)},O),R&&a.createElement("span",{className:l(si.buttonCount,R.className)},a.createElement(hi,{isRead:R.isRead},R.count)))},xi=a.forwardRef(((e,t)=>a.createElement(yi,Object.assign({innerRef:t},e))));xi.displayName="Button";var wi,Ei={divider:"pf-v5-c-divider",modifiers:{hidden:"pf-m-hidden",hiddenOnSm:"pf-m-hidden-on-sm",visibleOnSm:"pf-m-visible-on-sm",hiddenOnMd:"pf-m-hidden-on-md",visibleOnMd:"pf-m-visible-on-md",hiddenOnLg:"pf-m-hidden-on-lg",visibleOnLg:"pf-m-visible-on-lg",hiddenOnXl:"pf-m-hidden-on-xl",visibleOnXl:"pf-m-visible-on-xl",hiddenOn_2xl:"pf-m-hidden-on-2xl",visibleOn_2xl:"pf-m-visible-on-2xl",vertical:"pf-m-vertical",insetNone:"pf-m-inset-none",insetXs:"pf-m-inset-xs",insetSm:"pf-m-inset-sm",insetMd:"pf-m-inset-md",insetLg:"pf-m-inset-lg",insetXl:"pf-m-inset-xl",inset_2xl:"pf-m-inset-2xl",inset_3xl:"pf-m-inset-3xl",horizontalOnSm:"pf-m-horizontal-on-sm",verticalOnSm:"pf-m-vertical-on-sm",insetNoneOnSm:"pf-m-inset-none-on-sm",insetXsOnSm:"pf-m-inset-xs-on-sm",insetSmOnSm:"pf-m-inset-sm-on-sm",insetMdOnSm:"pf-m-inset-md-on-sm",insetLgOnSm:"pf-m-inset-lg-on-sm",insetXlOnSm:"pf-m-inset-xl-on-sm",inset_2xlOnSm:"pf-m-inset-2xl-on-sm",inset_3xlOnSm:"pf-m-inset-3xl-on-sm",horizontalOnMd:"pf-m-horizontal-on-md",verticalOnMd:"pf-m-vertical-on-md",insetNoneOnMd:"pf-m-inset-none-on-md",insetXsOnMd:"pf-m-inset-xs-on-md",insetSmOnMd:"pf-m-inset-sm-on-md",insetMdOnMd:"pf-m-inset-md-on-md",insetLgOnMd:"pf-m-inset-lg-on-md",insetXlOnMd:"pf-m-inset-xl-on-md",inset_2xlOnMd:"pf-m-inset-2xl-on-md",inset_3xlOnMd:"pf-m-inset-3xl-on-md",horizontalOnLg:"pf-m-horizontal-on-lg",verticalOnLg:"pf-m-vertical-on-lg",insetNoneOnLg:"pf-m-inset-none-on-lg",insetXsOnLg:"pf-m-inset-xs-on-lg",insetSmOnLg:"pf-m-inset-sm-on-lg",insetMdOnLg:"pf-m-inset-md-on-lg",insetLgOnLg:"pf-m-inset-lg-on-lg",insetXlOnLg:"pf-m-inset-xl-on-lg",inset_2xlOnLg:"pf-m-inset-2xl-on-lg",inset_3xlOnLg:"pf-m-inset-3xl-on-lg",horizontalOnXl:"pf-m-horizontal-on-xl",verticalOnXl:"pf-m-vertical-on-xl",insetNoneOnXl:"pf-m-inset-none-on-xl",insetXsOnXl:"pf-m-inset-xs-on-xl",insetSmOnXl:"pf-m-inset-sm-on-xl",insetMdOnXl:"pf-m-inset-md-on-xl",insetLgOnXl:"pf-m-inset-lg-on-xl",insetXlOnXl:"pf-m-inset-xl-on-xl",inset_2xlOnXl:"pf-m-inset-2xl-on-xl",inset_3xlOnXl:"pf-m-inset-3xl-on-xl",horizontalOn_2xl:"pf-m-horizontal-on-2xl",verticalOn_2xl:"pf-m-vertical-on-2xl",insetNoneOn_2xl:"pf-m-inset-none-on-2xl",insetXsOn_2xl:"pf-m-inset-xs-on-2xl",insetSmOn_2xl:"pf-m-inset-sm-on-2xl",insetMdOn_2xl:"pf-m-inset-md-on-2xl",insetLgOn_2xl:"pf-m-inset-lg-on-2xl",insetXlOn_2xl:"pf-m-inset-xl-on-2xl",inset_2xlOn_2xl:"pf-m-inset-2xl-on-2xl",inset_3xlOn_2xl:"pf-m-inset-3xl-on-2xl"}};!function(e){e.hr="hr",e.li="li",e.div="div"}(wi||(wi={}));const Oi=e=>{var{className:t,component:n=wi.hr,inset:i,orientation:o}=e,s=r(e,["className","component","inset","orientation"]);const c=n;return a.createElement(c,Object.assign({className:l(Ei.divider,Pe(i,Ei),Pe(o,Ei),t)},"hr"!==n&&{role:"separator"},s))};Oi.displayName="Divider";var Ci={check:"pf-v5-c-check",checkInput:"pf-v5-c-check__input",menuToggle:"pf-v5-c-menu-toggle",menuToggleButton:"pf-v5-c-menu-toggle__button",menuToggleControls:"pf-v5-c-menu-toggle__controls",menuToggleCount:"pf-v5-c-menu-toggle__count",menuToggleIcon:"pf-v5-c-menu-toggle__icon",menuToggleStatusIcon:"pf-v5-c-menu-toggle__status-icon",menuToggleText:"pf-v5-c-menu-toggle__text",menuToggleToggleIcon:"pf-v5-c-menu-toggle__toggle-icon",modifiers:{primary:"pf-m-primary",secondary:"pf-m-secondary",expanded:"pf-m-expanded",plain:"pf-m-plain",text:"pf-m-text",fullHeight:"pf-m-full-height",disabled:"pf-m-disabled",typeahead:"pf-m-typeahead",splitButton:"pf-m-split-button",action:"pf-m-action",active:"pf-m-active",fullWidth:"pf-m-full-width",success:"pf-m-success",warning:"pf-m-warning",danger:"pf-m-danger"},textInputGroup:"pf-v5-c-text-input-group",themeDark:"pf-v5-theme-dark"};const Ni=Sn({name:"CaretDownIcon",height:512,width:320,svgPath:"M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z",yOffset:0,xOffset:0}),Si=Sn({name:"CheckCircleIcon",height:512,width:512,svgPath:"M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z",yOffset:0,xOffset:0}),ki=Sn({name:"ExclamationCircleIcon",height:512,width:512,svgPath:"M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zm-248 50c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z",yOffset:0,xOffset:0}),Ri=Sn({name:"ExclamationTriangleIcon",height:512,width:576,svgPath:"M569.517 440.013C587.975 472.007 564.806 512 527.94 512H48.054c-36.937 0-59.999-40.055-41.577-71.987L246.423 23.985c18.467-32.009 64.72-31.951 83.154 0l239.94 416.028zM288 354c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z",yOffset:0,xOffset:0});var Ii;!function(e){e.success="success",e.danger="danger",e.warning="warning"}(Ii||(Ii={}));class Ti extends a.Component{constructor(){super(...arguments),this.displayName="MenuToggleBase",this.state={ouiaStateId:qe(_i.displayName,this.props.variant)}}render(){const e=this.props,{children:t,className:n,icon:i,badge:o,isExpanded:s,isDisabled:c,isFullHeight:d,isFullWidth:p,splitButtonOptions:u,variant:f,status:m,statusIcon:h,innerRef:b,onClick:g,"aria-label":v,ouiaId:y,ouiaSafe:x}=e,w=r(e,["children","className","icon","badge","isExpanded","isDisabled","isFullHeight","isFullWidth","splitButtonOptions","variant","status","statusIcon","innerRef","onClick","aria-label","ouiaId","ouiaSafe"]),E="plain"===f,O="plainText"===f,C="typeahead"===f,N=Ke(_i.displayName,null!=y?y:this.state.ouiaStateId,x);let S=h;if(!h)switch(m){case Ii.success:S=a.createElement(Si,{"aria-hidden":"true"});break;case Ii.warning:S=a.createElement(Ri,{"aria-hidden":"true"});break;case Ii.danger:S=a.createElement(ki,{"aria-hidden":"true"})}const k=a.createElement("span",{className:l(Ci.menuToggleControls)},void 0!==m&&a.createElement("span",{className:l(Ci.menuToggleStatusIcon)},S),a.createElement("span",{className:l(Ci.menuToggleToggleIcon)},a.createElement(Ni,{"aria-hidden":!0}))),R=a.createElement(a.Fragment,null,i&&a.createElement("span",{className:l(Ci.menuToggleIcon)},i),C?t:a.createElement("span",{className:l(Ci.menuToggleText)},t),a.isValidElement(o)&&a.createElement("span",{className:l(Ci.menuToggleCount)},o),C?a.createElement("button",Object.assign({type:"button",className:l(Ci.menuToggleButton),"aria-expanded":s,onClick:g,"aria-label":v||"Menu toggle",tabIndex:-1},N),k):k),I=l(Ci.menuToggle,s&&Ci.modifiers.expanded,"primary"===f&&Ci.modifiers.primary,"secondary"===f&&Ci.modifiers.secondary,m&&Ci.modifiers[m],(E||O)&&Ci.modifiers.plain,O&&Ci.modifiers.text,d&&Ci.modifiers.fullHeight,p&&Ci.modifiers.fullWidth,c&&Ci.modifiers.disabled,n),T=Object.assign(Object.assign({children:E?t:R},c&&{disabled:!0}),w);return C?a.createElement("div",Object.assign({ref:b,className:l(I,Ci.modifiers.typeahead)},T)):u?a.createElement("div",{ref:b,className:l(I,Ci.modifiers.splitButton,"action"===(null==u?void 0:u.variant)&&Ci.modifiers.action)},null==u?void 0:u.items,a.createElement("button",Object.assign({className:l(Ci.menuToggleButton),type:"button","aria-expanded":s,"aria-label":v,disabled:c,onClick:g},t&&{style:{display:"flex",paddingLeft:"var(--pf-v5-global--spacer--sm)"}},w,N),t&&a.createElement("span",{className:l(Ci.menuToggleText)},t),k)):a.createElement("button",Object.assign({className:l(I),type:"button","aria-label":v,"aria-expanded":s,ref:b,disabled:c,onClick:g},T,N))}}Ti.defaultProps={className:"",isExpanded:!1,isDisabled:!1,isFullWidth:!1,isFullHeight:!1,ouiaSafe:!0};const _i=a.forwardRef(((e,t)=>a.createElement(Ti,Object.assign({innerRef:t},e))));_i.displayName="MenuToggle";const Di=Sn({name:"EllipsisVIcon",height:512,width:192,svgPath:"M96 184c39.8 0 72 32.2 72 72s-32.2 72-72 72-72-32.2-72-72 32.2-72 72-72zM24 80c0 39.8 32.2 72 72 72s72-32.2 72-72S135.8 8 96 8 24 40.2 24 80zm0 352c0 39.8 32.2 72 72 72s72-32.2 72-72-32.2-72-72-72-72 32.2-72 72z",yOffset:0,xOffset:0}),Pi=e=>{var{items:t,isDisabled:n,rowData:i,extraData:o,actionsToggle:l,popperProps:s={position:"end",direction:"down"},innerRef:c,firstActionItemRef:d,isOnOpenChangeDisabled:p=!1}=e,u=r(e,["items","isDisabled","rowData","extraData","actionsToggle","popperProps","innerRef","firstActionItemRef","isOnOpenChangeDisabled"]);const[f,m]=a.useState(!1),h=()=>{m(!f)},b=(e,t)=>{t&&(e.preventDefault(),t(e,o&&o.rowIndex,i,o))};return a.createElement(a.Fragment,null,t.filter((e=>e.isOutsideDropdown)).map(((e,t)=>{var{title:i,itemKey:o,onClick:l,isOutsideDropdown:s}=e,c=r(e,["title","itemKey","onClick","isOutsideDropdown"]);return"string"==typeof i?a.createElement(xi,Object.assign({onClick:e=>b(e,l)},c,{isDisabled:n,key:o||`outside_dropdown_${t}`,"data-key":o||`outside_dropdown_${t}`}),i):a.cloneElement(i,Object.assign({onClick:l,isDisabled:n},c))})),a.createElement(ai,Object.assign({isOpen:f,onOpenChange:p?void 0:e=>m(e),toggle:e=>l?l({onToggle:h,isOpen:f,isDisabled:n,toggleRef:e}):a.createElement(_i,{"aria-label":"Kebab toggle",ref:e,onClick:h,isExpanded:f,isDisabled:n,variant:"plain"},a.createElement(Di,null))},i&&i.actionProps,{ref:c},u,{popperProps:s}),a.createElement(li,null,t.filter((e=>!e.isOutsideDropdown)).map(((e,t)=>{var{title:n,itemKey:i,onClick:o,tooltipProps:l,isSeparator:s,shouldCloseOnClick:c=!0}=e,p=r(e,["title","itemKey","onClick","tooltipProps","isSeparator","shouldCloseOnClick"]);if(s)return a.createElement(Oi,{key:i||t,"data-key":i||t});const u=a.createElement(ri,Object.assign({onClick:e=>{b(e,o),c&&h()}},p,{key:i||t,"data-key":i||t,ref:0===t?d:void 0}),n);return(null==l?void 0:l.content)?a.createElement(Zn,Object.assign({key:i||t},l),u):u})))))},Li=a.forwardRef(((e,t)=>a.createElement(Pi,Object.assign({},e,{innerRef:t}))));Li.displayName="ActionsColumn";const ji=Sn({name:"AngleDownIcon",height:512,width:320,svgPath:"M143 352.3L7 216.3c-9.4-9.4-9.4-24.6 0-33.9l22.6-22.6c9.4-9.4 24.6-9.4 33.9 0l96.4 96.4 96.4-96.4c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9l-136 136c-9.2 9.4-24.4 9.4-33.8 0z",yOffset:0,xOffset:0});var Fi={button:"pf-v5-c-button",check:"pf-v5-c-check",checkInput:"pf-v5-c-check__input",dirRtl:"pf-v5-m-dir-rtl",modifiers:{hidden:"pf-m-hidden",hiddenOnSm:"pf-m-hidden-on-sm",visibleOnSm:"pf-m-visible-on-sm",hiddenOnMd:"pf-m-hidden-on-md",visibleOnMd:"pf-m-visible-on-md",hiddenOnLg:"pf-m-hidden-on-lg",visibleOnLg:"pf-m-visible-on-lg",hiddenOnXl:"pf-m-hidden-on-xl",visibleOnXl:"pf-m-visible-on-xl",hiddenOn_2xl:"pf-m-hidden-on-2xl",visibleOn_2xl:"pf-m-visible-on-2xl",fixed:"pf-m-fixed",stickyHeader:"pf-m-sticky-header",nestedColumnHeader:"pf-m-nested-column-header",borderRow:"pf-m-border-row",striped:"pf-m-striped",expandable:"pf-m-expandable",stripedEven:"pf-m-striped-even",ghostRow:"pf-m-ghost-row",center:"pf-m-center",help:"pf-m-help",favorite:"pf-m-favorite",borderRight:"pf-m-border-right",borderLeft:"pf-m-border-left",expanded:"pf-m-expanded",truncate:"pf-m-truncate",wrap:"pf-m-wrap",nowrap:"pf-m-nowrap",fitContent:"pf-m-fit-content",breakWord:"pf-m-break-word",noBorderRows:"pf-m-no-border-rows",clickable:"pf-m-clickable",selected:"pf-m-selected",firstCellOffsetReset:"pf-m-first-cell-offset-reset",dragOver:"pf-m-drag-over",standalone:"pf-m-standalone",favorited:"pf-m-favorited",noPadding:"pf-m-no-padding",compact:"pf-m-compact",width_10:"pf-m-width-10",width_15:"pf-m-width-15",width_20:"pf-m-width-20",width_25:"pf-m-width-25",width_30:"pf-m-width-30",width_35:"pf-m-width-35",width_40:"pf-m-width-40",width_45:"pf-m-width-45",width_50:"pf-m-width-50",width_60:"pf-m-width-60",width_70:"pf-m-width-70",width_80:"pf-m-width-80",width_90:"pf-m-width-90",width_100:"pf-m-width-100"},table:"pf-v5-c-table",tableAction:"pf-v5-c-table__action",tableButton:"pf-v5-c-table__button",tableButtonContent:"pf-v5-c-table__button-content",tableCaption:"pf-v5-c-table__caption",tableCheck:"pf-v5-c-table__check",tableColumnHelp:"pf-v5-c-table__column-help",tableColumnHelpAction:"pf-v5-c-table__column-help-action",tableCompoundExpansionToggle:"pf-v5-c-table__compound-expansion-toggle",tableControlRow:"pf-v5-c-table__control-row",tableDraggable:"pf-v5-c-table__draggable",tableExpandableRow:"pf-v5-c-table__expandable-row",tableExpandableRowContent:"pf-v5-c-table__expandable-row-content",tableFavorite:"pf-v5-c-table__favorite",tableIcon:"pf-v5-c-table__icon",tableIconInline:"pf-v5-c-table__icon-inline",tableInlineEditAction:"pf-v5-c-table__inline-edit-action",tableSort:"pf-v5-c-table__sort",tableSortIndicator:"pf-v5-c-table__sort-indicator",tableSubhead:"pf-v5-c-table__subhead",tableTbody:"pf-v5-c-table__tbody",tableTd:"pf-v5-c-table__td",tableText:"pf-v5-c-table__text",tableTh:"pf-v5-c-table__th",tableThead:"pf-v5-c-table__thead",tableToggle:"pf-v5-c-table__toggle",tableToggleIcon:"pf-v5-c-table__toggle-icon",tableTr:"pf-v5-c-table__tr",themeDark:"pf-v5-theme-dark"};const Ai=e=>{var{className:t="",children:n=null,isOpen:i,onToggle:o}=e,s=r(e,["className","children","isOpen","onToggle"]);return a.createElement(a.Fragment,null,void 0!==i&&a.createElement(xi,Object.assign({className:l(t,i&&Fi.modifiers.expanded)},s,{variant:"plain","aria-label":s["aria-label"]||"Details",onClick:o,"aria-expanded":i}),a.createElement("div",{className:l(Fi.tableToggleIcon)},a.createElement(ji,null))),n)};Ai.displayName="CollapseColumn";const Mi=Sn({name:"GripVerticalIcon",height:512,width:320,svgPath:"M96 32H32C14.33 32 0 46.33 0 64v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32V64c0-17.67-14.33-32-32-32zm0 160H32c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32zm0 160H32c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32zM288 32h-64c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32V64c0-17.67-14.33-32-32-32zm0 160h-64c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32zm0 160h-64c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32z",yOffset:0,xOffset:0}),Bi=e=>{var{className:t,onClick:n,"aria-label":i,id:o}=e,l=r(e,["className","onClick","aria-label","id"]);return a.createElement(xi,Object.assign({id:o,variant:"plain",className:t,type:"button","aria-label":i||"Draggable row draggable button",onClick:n},l),a.createElement(Mi,{"aria-hidden":!0}))};Bi.displayName="DraggableCell";var Hi={invalid:"pf-m-invalid",success:"pf-m-success",warning:"pf-m-warning",disabled:"pf-m-disabled",active:"pf-m-active",expanded:"pf-m-expanded",plain:"pf-m-plain",typeahead:"pf-m-typeahead",placeholder:"pf-m-placeholder",top:"pf-m-top",alignRight:"pf-m-align-right",static:"pf-m-static",favorite:"pf-m-favorite",favoriteAction:"pf-m-favorite-action",focus:"pf-m-focus",link:"pf-m-link",action:"pf-m-action",selected:"pf-m-selected",description:"pf-m-description",load:"pf-m-load",loading:"pf-m-loading"},Vi="pf-v5-c-select",zi="pf-v5-c-select__list-item",$i="pf-v5-c-select__menu",Wi="pf-v5-c-select__menu-fieldset",Ki="pf-v5-c-select__menu-footer",Gi="pf-v5-c-select__menu-group",Ui="pf-v5-c-select__menu-group-title",qi="pf-v5-c-select__menu-item",Xi="pf-v5-c-select__menu-item-action-icon",Yi="pf-v5-c-select__menu-item-count",Ji="pf-v5-c-select__menu-item-description",Zi="pf-v5-c-select__menu-item-icon",Qi="pf-v5-c-select__menu-item-main",ea="pf-v5-c-select__menu-item-row",ta="pf-v5-c-select__menu-item-text",na="pf-v5-c-select__menu-search",ia="pf-v5-c-select__menu-wrapper",aa="pf-v5-c-select__toggle",oa="pf-v5-c-select__toggle-arrow",ra="pf-v5-c-select__toggle-badge",la="pf-v5-c-select__toggle-button",sa="pf-v5-c-select__toggle-clear",ca="pf-v5-c-select__toggle-icon",da="pf-v5-c-select__toggle-status-icon",pa="pf-v5-c-select__toggle-text",ua="pf-v5-c-select__toggle-typeahead",fa="pf-v5-c-select__toggle-wrapper",ma={formControl:"pf-v5-c-form-control",formControlIcon:"pf-v5-c-form-control__icon",formControlToggleIcon:"pf-v5-c-form-control__toggle-icon",formControlUtilities:"pf-v5-c-form-control__utilities",modifiers:{readonly:"pf-m-readonly",success:"pf-m-success",warning:"pf-m-warning",error:"pf-m-error",plain:"pf-m-plain",expanded:"pf-m-expanded",disabled:"pf-m-disabled",icon:"pf-m-icon",placeholder:"pf-m-placeholder",resizeVertical:"pf-m-resize-vertical",resizeHorizontal:"pf-m-resize-horizontal",resizeBoth:"pf-m-resize-both",status:"pf-m-status"},themeDark:"pf-v5-theme-dark"};const ha=Sn({name:"TimesCircleIcon",height:512,width:512,svgPath:"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm121.6 313.1c4.7 4.7 4.7 12.3 0 17L338 377.6c-4.7 4.7-12.3 4.7-17 0L256 312l-65.1 65.6c-4.7 4.7-12.3 4.7-17 0L134.4 338c-4.7-4.7-4.7-12.3 0-17l65.6-65-65.6-65.1c-4.7-4.7-4.7-12.3 0-17l39.6-39.6c4.7-4.7 12.3-4.7 17 0l65 65.7 65.1-65.6c4.7-4.7 12.3-4.7 17 0l39.6 39.6c4.7 4.7 4.7 12.3 0 17L312 256l65.6 65.1z",yOffset:0,xOffset:0});var ba="pf-v5-c-form__fieldset",ga="pf-v5-c-form__helper-text",va={horizontal:"pf-m-horizontal",alignRight:"pf-m-align-right",noPaddingTop:"pf-m-no-padding-top",info:"pf-m-info",horizontalOnXs:"pf-m-horizontal-on-xs",horizontalOnSm:"pf-m-horizontal-on-sm",horizontalOnMd:"pf-m-horizontal-on-md",horizontalOnLg:"pf-m-horizontal-on-lg",horizontalOnXl:"pf-m-horizontal-on-xl",horizontalOn_2xl:"pf-m-horizontal-on-2xl",limitWidth:"pf-m-limit-width",action:"pf-m-action",disabled:"pf-m-disabled",inline:"pf-m-inline",stack:"pf-m-stack",error:"pf-m-error",success:"pf-m-success",warning:"pf-m-warning",inactive:"pf-m-inactive",hidden:"pf-m-hidden",expanded:"pf-m-expanded"};const ya=a.createContext(null);ya.Provider;const xa=ya.Consumer;var wa,Ea,Oa;!function(e){e.single="single",e.checkbox="checkbox",e.typeahead="typeahead",e.typeaheadMulti="typeaheadmulti"}(wa||(wa={})),function(e){e.right="right",e.left="left"}(Ea||(Ea={})),function(e){e.up="up",e.down="down"}(Oa||(Oa={}));const Ca="input, button, select, textarea, a[href]";class Na extends a.Component{constructor(){super(...arguments),this.ref=a.createRef(),this.liRef=a.createRef(),this.favoriteRef=a.createRef(),this.onKeyDown=(e,t,n,i)=>{const{index:a,keyHandler:o,isLastOptionBeforeFooter:r}=this.props;let l=!1;void 0!==r&&(l=r(a)),e.key===A&&(i&&!l?(e.shiftKey?o(a,t,"up"):o(a,t,"down"),e.stopPropagation()):e.shiftKey?o(a,t,"up"):o(a,t,"tab")),e.preventDefault(),e.key===V?o(a,t,"up"):e.key===z?o(a,t,"down"):e.key===$?o(a,t,"left"):e.key===W?o(a,t,"right"):e.key===H&&(void 0!==n?n():this.ref.current.click())}}componentDidMount(){this.props.sendRef(this.props.isDisabled?null:this.ref.current,this.props.isDisabled?null:this.favoriteRef.current,this.props.isDisabled?null:this.liRef.current,this.props.index)}componentDidUpdate(){this.props.sendRef(this.props.isDisabled?null:this.ref.current,this.props.isDisabled?null:this.favoriteRef.current,this.props.isDisabled?null:this.liRef.current,this.props.index)}render(){const e=this.props,{children:t,className:n,id:i,description:o,itemCount:s,value:c,onClick:d,isDisabled:p,isPlaceholder:u,isNoResultsOption:f,isSelected:m,isChecked:h,isFocused:b,sendRef:g,keyHandler:v,index:y,component:x,inputId:w,isFavorite:E,ariaIsFavoriteLabel:O="starred",ariaIsNotFavoriteLabel:C="not starred",isLoad:N,isLoading:S,setViewMoreNextIndex:k,isLastOptionBeforeFooter:R,isGrouped:I=!1}=e,T=r(e,["children","className","id","description","itemCount","value","onClick","isDisabled","isPlaceholder","isNoResultsOption","isSelected","isChecked","isFocused","sendRef","keyHandler","index","component","inputId","isFavorite","ariaIsFavoriteLabel","ariaIsNotFavoriteLabel","isLoad","isLoading","setViewMoreNextIndex","isLastOptionBeforeFooter","isGrouped"]),_=x;i||null===E||console.error("Please provide an id to use the favorites feature.");const D=i||Re("select-option"),P=e=>a.createElement("button",{className:l(qi,Hi.action,Hi.favoriteAction),"aria-label":E?O:C,onClick:()=>{e(D.replace("favorite-",""),E)},onKeyDown:t=>{this.onKeyDown(t,1,(()=>e(D.replace("favorite-",""),E)))},ref:this.favoriteRef},a.createElement("span",{className:l(Xi)},a.createElement(Hn,null))),L=s?a.createElement("span",{className:l(ea)},a.createElement("span",{className:l(ta)},t||c&&c.toString&&c.toString()),a.createElement("span",{className:l(Yi)},s)):t||c.toString(),j=e=>{k(),d(e)},F=(e,r,s,g,v,y)=>s!==wa.checkbox&&S&&I?a.createElement("div",{role:"presentation",className:l(zi,S&&Hi.loading,n)},t):s!==wa.checkbox&&N&&I?a.createElement("div",null,a.createElement("button",Object.assign({},T,{role:"presentation",className:l(qi,Hi.load,n),onClick:e=>{j(e),e.stopPropagation()},ref:this.ref,type:"button"}),t||c.toString())):s!==wa.checkbox?a.createElement("li",{id:D,role:"presentation",className:l(S&&zi,!S&&ia,E&&Hi.favorite,b&&Hi.focus,S&&Hi.loading),ref:this.liRef},S&&t,N&&!I&&a.createElement("button",Object.assign({},T,{className:l(qi,Hi.load,n),onClick:e=>{j(e),e.stopPropagation()},ref:this.ref,onKeyDown:e=>{this.onKeyDown(e,0)},type:"button"}),L),!S&&!N&&a.createElement(a.Fragment,null,a.createElement(_,Object.assign({},T,{className:l(qi,N&&Hi.load,m&&Hi.selected,p&&Hi.disabled,o&&Hi.description,null!==E&&Hi.link,n),onClick:t=>{p||(d(t),e(t,c,u),y&&r())},role:"option","aria-selected":m||null,ref:this.ref,onKeyDown:e=>{this.onKeyDown(e,0)},type:"button"}),o&&a.createElement(a.Fragment,null,a.createElement("span",{className:l(Qi)},L,m&&a.createElement("span",{className:l(Zi)},a.createElement(Tn,{"aria-hidden":!0}))),a.createElement("span",{className:l(Ji)},o)),!o&&a.createElement(a.Fragment,null,L,m&&a.createElement("span",{className:l(Zi)},a.createElement(Tn,{"aria-hidden":!0})))),null!==E&&i&&P(v))):s===wa.checkbox&&N?a.createElement("button",{className:l(qi,Hi.load,b&&Hi.focus,n),onKeyDown:e=>{this.onKeyDown(e,0,void 0,!0)},onClick:e=>{j(e),e.stopPropagation()},ref:this.ref},t||c&&c.toString&&c.toString()):s===wa.checkbox&&S?a.createElement("div",{className:l(zi,S&&Hi.loading,n)},t):s!==wa.checkbox||f||S||N?s!==wa.checkbox||!f||S||N?void 0:a.createElement("div",null,a.createElement(_,Object.assign({},T,{className:l(qi,m&&Hi.selected,p&&Hi.disabled,n),role:"option","aria-selected":m||null,ref:this.ref,onKeyDown:e=>{this.onKeyDown(e,0,void 0,!0)},type:"button"}),L)):a.createElement("label",Object.assign({},T,{className:l(_n,qi,p&&Hi.disabled,o&&Hi.description,n),onKeyDown:e=>{this.onKeyDown(e,0,void 0,!0)}}),a.createElement("input",{id:w||`${g}-${c.toString()}`,className:l(Ln),type:"checkbox",onChange:t=>{p||(d(t),e(t,c))},ref:this.ref,checked:h||!1,disabled:p}),a.createElement("span",{className:l(jn,p&&Hi.disabled)},L),o&&a.createElement("div",{className:l(Pn)},o));return a.createElement(xa,null,(({onSelect:e,onClose:t,variant:n,inputIdPrefix:i,onFavorite:o,shouldResetOnSelect:r})=>a.createElement(a.Fragment,null,F(e,t,n,i,o,r))))}}Na.displayName="SelectOption",Na.defaultProps={className:"",value:"",index:0,isDisabled:!1,isPlaceholder:!1,isSelected:!1,isChecked:!1,isNoResultsOption:!1,component:"button",onClick:()=>{},sendRef:()=>{},keyHandler:()=>{},inputId:"",isFavorite:null,isLoad:!1,isLoading:!1,setViewMoreNextIndex:()=>{},isLastOptionBeforeFooter:()=>!1};const Sa=e=>{var{children:t=[],className:n="",label:i="",titleId:o=""}=e,s=r(e,["children","className","label","titleId"]);return a.createElement(xa,null,(({variant:e})=>a.createElement("div",Object.assign({},s,{className:l(Gi,n)}),a.createElement("div",{className:l(Ui),id:o,"aria-hidden":!0},i),e===wa.checkbox?t:a.createElement("ul",{role:"listbox"},t))))};Sa.displayName="SelectGroup";class ka extends a.Component{extendChildren(e){const{children:t,hasInlineFilter:n,isGrouped:i}=this.props,o=t;let r=n?1:0;return i?a.Children.map(o,(t=>t.type===Sa?a.cloneElement(t,{titleId:t.props.label&&t.props.label.replace(/\W/g,"-"),children:a.Children.map(t.props.children,(t=>this.cloneOption(t,r++,e)))}):this.cloneOption(t,r++,e))):a.Children.map(o,(t=>this.cloneOption(t,r++,e)))}cloneOption(e,t,n){const{selected:i,sendRef:o,keyHandler:r}=this.props,l=this.checkForValue(e.props.value,i);return e.type===Oi?e:a.cloneElement(e,{inputId:`${n}-${t}`,isSelected:l,sendRef:o,keyHandler:r,index:t})}checkForValue(e,t){if(!t||!e)return!1;const n="string"!=typeof e&&e.toString&&e.compareTo;return Array.isArray(t)?n?t.some((t=>t.compareTo(e))):t.includes(e):n?t.compareTo(e):t===e}extendCheckboxChildren(e){const{isGrouped:t,checked:n,sendRef:i,keyHandler:o,hasInlineFilter:r,isLastOptionBeforeFooter:s}=this.props;let c=r?1:0;return t?a.Children.map(e,(e=>e.type===Oi?e:e.type===Na?a.cloneElement(e,{isChecked:this.checkForValue(e.props.value,n),sendRef:i,keyHandler:o,index:c++,isLastOptionBeforeFooter:s}):a.cloneElement(e,{titleId:e.props.label&&e.props.label.replace(/\W/g,"-"),children:e.props.children?a.createElement("fieldset",{"aria-labelledby":e.props.label&&e.props.label.replace(/\W/g,"-"),className:l(Wi)},a.Children.map(e.props.children,(e=>e.type===Oi?e:a.cloneElement(e,{isChecked:this.checkForValue(e.props.value,n),sendRef:i,keyHandler:o,index:c++,isLastOptionBeforeFooter:s})))):null}))):a.Children.map(e,(e=>e.type===Oi?e:a.cloneElement(e,{isChecked:this.checkForValue(e.props.value,n),sendRef:i,keyHandler:o,index:c++,isLastOptionBeforeFooter:s})))}renderSelectMenu({variant:e,inputIdPrefix:t}){const n=this.props,{children:i,isCustomContent:o,className:s,isExpanded:c,openedOnEnter:d,selected:p,checked:u,isGrouped:f,position:m,sendRef:h,keyHandler:b,maxHeight:g,noResultsFoundText:v,createText:y,"aria-label":x,"aria-labelledby":w,hasInlineFilter:E,innerRef:O,footer:C,footerRef:N,isLastOptionBeforeFooter:S}=n,k=r(n,["children","isCustomContent","className","isExpanded","openedOnEnter","selected","checked","isGrouped","position","sendRef","keyHandler","maxHeight","noResultsFoundText","createText","aria-label","aria-labelledby","hasInlineFilter","innerRef","footer","footerRef","isLastOptionBeforeFooter"]);let R="div";const I=Object.assign({ref:O,className:l(C?`${$i}-list`:$i,m===Ea.right&&Hi.alignRight,s)},g&&{style:{maxHeight:g,overflow:"auto"}}),T=()=>e===wa.checkbox?this.extendCheckboxChildren(i):this.extendChildren(t);return o?I.children=i:E?0===a.Children.count(i)?I.children=a.createElement("fieldset",{className:l(Wi)}):I.children=a.createElement("fieldset",{"aria-label":x,"aria-labelledby":!x&&w||null,className:l(ba)},i.shift(),T()):(I.children=T(),f||(R="ul",I.role="listbox",I["aria-label"]=x,I["aria-labelledby"]=!x&&w||null)),a.createElement(a.Fragment,null,a.createElement(R,Object.assign({},I,k)),C&&a.createElement("div",{className:l(Ki),ref:N},C))}render(){return a.createElement(xa,null,(e=>this.renderSelectMenu(e)))}}ka.displayName="SelectMenu",ka.defaultProps={className:"",isExpanded:!1,isGrouped:!1,openedOnEnter:!1,selected:"",maxHeight:"",position:Ea.left,sendRef:()=>{},keyHandler:()=>{},isCustomContent:!1,hasInlineFilter:!1,isLastOptionBeforeFooter:()=>{}};const Ra=a.forwardRef(((e,t)=>a.createElement(ka,Object.assign({innerRef:t},e),e.children)));class Ia extends a.Component{constructor(e){super(e),this.onDocClick=e=>{const{parentRef:t,menuRef:n,footerRef:i,isOpen:a,onToggle:o,onClose:r}=this.props,l=t&&t.current&&t.current.contains(e.target),s=n&&n.current&&n.current.contains&&n.current.contains(e.target),c=i&&i.current&&i.current.contains&&i.current.contains(e.target);a&&!(l||s||c)&&(o(e,!1),r())},this.handleGlobalKeys=e=>{const{parentRef:t,menuRef:n,hasFooter:i,footerRef:a,isOpen:o,variant:r,onToggle:l,onClose:s,moveFocusToLastMenuItem:c}=this.props,d=t&&t.current&&t.current.contains(e.target),p=n&&n.current&&n.current.contains&&n.current.contains(e.target);if(o&&e.key===A&&(r===wa.typeahead||r===wa.typeaheadMulti))return this.props.handleTypeaheadKeys("tab",e.shiftKey),void e.preventDefault();if(o&&e.key===A&&i){const t=_e(a,Ca);if(t.length<=0)return l(e,!1),s(),void this.toggle.current.focus();{const n=t.findIndex((e=>e===document.activeElement));if(-1===n){if(!e.shiftKey)return void t[0].focus();"checkbox"!==r&&(l(e,!1),s(),this.toggle.current.focus())}return e.shiftKey?void(0===n&&(c(),e.preventDefault())):(n+1<t.length?t[n+1].focus():(l(e,!1),s(),this.toggle.current.focus()),void e.preventDefault())}}!o||e.key!==B&&e.key!==A||!d&&!p||(l(e,!1),s(),this.toggle.current.focus())},this.onKeyDown=e=>{const{isOpen:t,onToggle:n,variant:i,onClose:a,onEnter:o,handleTypeaheadKeys:r}=this.props;i!==wa.typeahead&&i!==wa.typeaheadMulti||(e.key===z||e.key===V?(r(e.key===z?"down":e.key===V&&"up"),e.preventDefault()):e.key===H&&(t?r("enter"):n(e,!t))),i===wa.typeahead||i===wa.typeaheadMulti||e.key===A&&!t||e.key!==H&&e.key!==M||(e.preventDefault(),e.key!==A&&e.key!==H&&e.key!==M||!t?e.key!==H&&e.key!==M||t||(n(e,!t),o()):(n(e,!t),a(),this.toggle.current.focus()))};const{variant:t}=e;t===wa.typeahead||wa.typeaheadMulti;this.props.innerRef?this.toggle=this.props.innerRef:this.toggle=a.createRef()}componentDidMount(){document.addEventListener("click",this.onDocClick,{capture:!0}),document.addEventListener("touchstart",this.onDocClick),document.addEventListener("keydown",this.handleGlobalKeys)}componentWillUnmount(){document.removeEventListener("click",this.onDocClick,{capture:!0}),document.removeEventListener("touchstart",this.onDocClick),document.removeEventListener("keydown",this.handleGlobalKeys)}render(){const e=this.props,{className:t,children:n,isOpen:i,isActive:o,isPlain:s,isDisabled:c,hasPlaceholderStyle:d,variant:p,onToggle:u,onEnter:f,onClose:m,onBlur:h,onClickTypeaheadToggleButton:b,handleTypeaheadKeys:g,moveFocusToLastMenuItem:v,parentRef:y,menuRef:x,id:w,type:E,hasClearButton:O,"aria-labelledby":C,"aria-label":N,hasFooter:S,footerRef:k,toggleIndicator:R,innerRef:I}=e,T=r(e,["className","children","isOpen","isActive","isPlain","isDisabled","hasPlaceholderStyle","variant","onToggle","onEnter","onClose","onBlur","onClickTypeaheadToggleButton","handleTypeaheadKeys","moveFocusToLastMenuItem","parentRef","menuRef","id","type","hasClearButton","aria-labelledby","aria-label","hasFooter","footerRef","toggleIndicator","innerRef"]),_=p===wa.typeahead||p===wa.typeaheadMulti||O,D={id:w,"aria-labelledby":C,"aria-expanded":i,"aria-haspopup":p!==wa.checkbox?"listbox":null};return a.createElement(a.Fragment,null,!_&&a.createElement("button",Object.assign({},T,D,{ref:this.toggle,type:E,className:l(aa,d&&Hi.placeholder,c&&Hi.disabled,s&&Hi.plain,o&&Hi.active,t),"aria-label":N,onBlur:h,onClick:e=>{u(e,!i),i&&m()},onKeyDown:this.onKeyDown,disabled:c}),n,a.createElement("span",{className:l(oa)},null!=R?R:a.createElement(Ni,null))),_&&a.createElement("div",Object.assign({},T,{ref:this.toggle,className:l(aa,d&&Hi.placeholder,c&&Hi.disabled,s&&Hi.plain,_&&Hi.typeahead,t),onBlur:h,onClick:e=>{c||(u(e,!i),i&&m())},onKeyDown:this.onKeyDown}),n,a.createElement("button",Object.assign({},D,{type:E,className:l(si.button,la,Hi.plain),"aria-label":N,onClick:e=>{u(e,!i),i&&m(),b()}},(p===wa.typeahead||p===wa.typeaheadMulti)&&{tabIndex:-1},{disabled:c}),null!=R?R:a.createElement(Ni,{className:l(oa)}))))}}Ia.displayName="SelectToggle",Ia.defaultProps={className:"",isOpen:!1,isActive:!1,isPlain:!1,isDisabled:!1,hasPlaceholderStyle:!1,hasClearButton:!1,hasFooter:!1,variant:"single","aria-labelledby":"","aria-label":"",type:"button",onToggle:()=>{},onEnter:()=>{},onClose:()=>{},onClickTypeaheadToggleButton:()=>{}};const Ta=a.forwardRef(((e,t)=>a.createElement(Ia,Object.assign({innerRef:t},e)))),_a=Sn({name:"TimesIcon",height:512,width:352,svgPath:"M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z",yOffset:0,xOffset:0});var Da="pf-v5-c-chip",Pa="pf-v5-c-chip__actions",La="pf-v5-c-chip__content",ja="pf-v5-c-chip__text",Fa={overflow:"pf-m-overflow",draggable:"pf-m-draggable"};const Aa="--pf-v5-c-chip__text--MaxWidth";class Ma extends a.Component{constructor(e){super(e),this.span=a.createRef(),this.setChipStyle=()=>({[Aa]:this.props.textMaxWidth}),this.renderOverflowChip=()=>{const e=this.props,{badge:t,children:n,className:i,onClick:o,ouiaId:s,textMaxWidth:c,style:d,component:p,tooltipPosition:u,isOverflowChip:f,closeBtnAriaLabel:m,isReadOnly:h}=e,b=r(e,["badge","children","className","onClick","ouiaId","textMaxWidth","style","component","tooltipPosition","isOverflowChip","closeBtnAriaLabel","isReadOnly"]),g=p;return a.createElement(g,Object.assign({onClick:o},c&&Object.assign({style:this.setChipStyle()},d),{className:l(Da,Fa.overflow,i)},"button"===p?{type:"button"}:{},Ke("OverflowChip",void 0!==s?s:this.state.ouiaStateId),b),a.createElement("span",{className:l(La)},a.createElement("span",{className:l(ja)},n),t&&t))},this.renderChip=e=>{const{children:t,tooltipPosition:n}=this.props;return this.state.isTooltipVisible?a.createElement(Zn,{position:n,content:t},this.renderInnerChip(e)):this.renderInnerChip(e)},this.state={isTooltipVisible:!1,ouiaStateId:qe(Ma.displayName)}}componentDidMount(){this.setState({isTooltipVisible:Boolean(this.span.current&&this.span.current.offsetWidth<this.span.current.scrollWidth)})}componentDidUpdate(e,t){const n=Boolean(this.span.current&&this.span.current.offsetWidth<this.span.current.scrollWidth);t.isTooltipVisible!==n&&this.setState({isTooltipVisible:n})}renderInnerChip(e){const t=this.props,{badge:n,children:i,className:o,onClick:s,closeBtnAriaLabel:c,isReadOnly:d,isOverflowChip:p,tooltipPosition:u,id:f,component:m,ouiaId:h,textMaxWidth:b}=t,g=r(t,["badge","children","className","onClick","closeBtnAriaLabel","isReadOnly","isOverflowChip","tooltipPosition","id","component","ouiaId","textMaxWidth"]),v=m;return a.createElement(v,Object.assign({},b&&{style:this.setChipStyle()},{className:l(Da,o)},this.state.isTooltipVisible&&{tabIndex:0},Ke(Ma.displayName,void 0!==h?h:this.state.ouiaStateId),g),a.createElement("span",{className:l(La)},a.createElement("span",{ref:this.span,className:l(ja),id:e},i),n&&n),!d&&a.createElement("span",{className:l(Pa)},a.createElement(xi,{onClick:s,variant:"plain","aria-label":c,id:`remove_${e}`,"aria-labelledby":`remove_${e} ${e}`,ouiaId:h||c},a.createElement(_a,{"aria-hidden":"true"}))))}render(){const{isOverflowChip:e}=this.props;return a.createElement(Ve,null,(t=>e?this.renderOverflowChip():this.renderChip(this.props.id||t)))}}Ma.displayName="Chip",Ma.defaultProps={closeBtnAriaLabel:"close",className:"",isOverflowChip:!1,isReadOnly:!1,tooltipPosition:"top",onClick:e=>{},component:"div"};var Ba,Ha,Va="pf-v5-c-chip-group",za="pf-v5-c-chip-group__close",$a="pf-v5-c-chip-group__label",Wa="pf-v5-c-chip-group__list",Ka="pf-v5-c-chip-group__list-item",Ga="pf-v5-c-chip-group__main",Ua={category:"pf-m-category"};class qa extends a.Component{constructor(e){super(e),this.headingRef=a.createRef(),this.toggleCollapse=()=>{this.setState((e=>({isOpen:!e.isOpen,isTooltipVisible:Boolean(this.headingRef.current&&this.headingRef.current.offsetWidth<this.headingRef.current.scrollWidth)})))},this.state={isOpen:this.props.defaultIsOpen,isTooltipVisible:!1}}componentDidMount(){this.setState({isTooltipVisible:Boolean(this.headingRef.current&&this.headingRef.current.offsetWidth<this.headingRef.current.scrollWidth)})}renderLabel(e){const{categoryName:t,tooltipPosition:n}=this.props,{isTooltipVisible:i}=this.state;return i?a.createElement(Zn,{position:n,content:t},a.createElement("span",{tabIndex:0,ref:this.headingRef,className:l($a)},a.createElement("span",{id:e},t))):a.createElement("span",{ref:this.headingRef,className:l($a),id:e},t)}render(){const e=this.props,{categoryName:t,children:n,className:i,isClosable:o,closeBtnAriaLabel:s,"aria-label":c,onClick:d,onOverflowChipClick:p,numChips:u,expandedText:f,collapsedText:m,ouiaId:h,defaultIsOpen:b,tooltipPosition:g}=e,v=r(e,["categoryName","children","className","isClosable","closeBtnAriaLabel","aria-label","onClick","onOverflowChipClick","numChips","expandedText","collapsedText","ouiaId","defaultIsOpen","tooltipPosition"]),{isOpen:y}=this.state,x=a.Children.count(n),w=(E=m,O={remaining:a.Children.count(n)-u},E.replace(/\${(.*?)}/g,((e,t)=>O[t]||"")));var E,O;const C=e=>{const r=y?a.Children.toArray(n):a.Children.toArray(n).slice(0,u);return a.createElement("div",Object.assign({className:l(Va,i,t&&Ua.category),role:"group"},t&&{"aria-labelledby":e},!t&&{"aria-label":c},Ke(qa.displayName,h)),a.createElement("div",{className:l(Ga)},t&&this.renderLabel(e),a.createElement("ul",Object.assign({className:l(Wa)},t&&{"aria-labelledby":e},!t&&{"aria-label":c},{role:"list"},v),r.map(((e,t)=>a.createElement("li",{className:l(Ka),key:t},e))),x>u&&a.createElement("li",{className:l(Ka)},a.createElement(Ma,{isOverflowChip:!0,onClick:e=>{this.toggleCollapse(),p(e)},component:"button"},y?f:w)))),o&&a.createElement("div",{className:l(za)},a.createElement(xi,{variant:"plain","aria-label":s,onClick:d,id:`remove_group_${e}`,"aria-labelledby":`remove_group_${e} ${e}`,ouiaId:h||s},a.createElement(ha,{"aria-hidden":"true"}))))};return 0===x?null:a.createElement(Ve,null,(e=>C(this.props.id||e)))}}qa.displayName="ChipGroup",qa.defaultProps={expandedText:"Show Less",collapsedText:"${remaining} more",categoryName:"",defaultIsOpen:!1,numChips:3,isClosable:!1,onClick:e=>{},onOverflowChipClick:e=>{},closeBtnAriaLabel:"Close chip group",tooltipPosition:"top","aria-label":"Chip group category"},function(e){e.right="right",e.left="left"}(Ba||(Ba={})),function(e){e.up="up",e.down="down"}(Ha||(Ha={}));const Xa=a.createContext({onSelect:e=>{},id:"",toggleIndicatorClass:"",toggleIconClass:"",toggleTextClass:"",menuClass:"",itemClass:"",toggleClass:"",baseClass:"",baseComponent:"div",sectionClass:"",sectionTitleClass:"",sectionComponent:"section",disabledClass:"",plainTextClass:"",menuComponent:"ul"}),Ya=a.createContext({keyHandler:null,sendRef:null});class Ja extends a.Component{constructor(){super(...arguments),this.ref=a.createRef(),this.additionalRef=a.createRef(),this.getInnerNode=e=>e&&e.childNodes&&e.childNodes.length?e.childNodes[0]:e,this.onKeyDown=e=>{var t,n,i,a,o,r,l,s,c,d;const p=e.target===this.ref.current?0:1;this.props.customChild||e.preventDefault(),"ArrowUp"===e.key?(null===(n=null===(t=this.props.context)||void 0===t?void 0:t.keyHandler)||void 0===n||n.call(t,this.props.index,p,D),e.stopPropagation()):"ArrowDown"===e.key?(null===(a=null===(i=this.props.context)||void 0===i?void 0:i.keyHandler)||void 0===a||a.call(i,this.props.index,p,P),e.stopPropagation()):"ArrowRight"===e.key?(null===(r=null===(o=this.props.context)||void 0===o?void 0:o.keyHandler)||void 0===r||r.call(o,this.props.index,p,L),e.stopPropagation()):"ArrowLeft"===e.key?(null===(s=null===(l=this.props.context)||void 0===l?void 0:l.keyHandler)||void 0===s||s.call(l,this.props.index,p,j),e.stopPropagation()):"Enter"!==e.key&&" "!==e.key||(e.target.click(),this.props.enterTriggersArrowDown&&(null===(d=null===(c=this.props.context)||void 0===c?void 0:c.keyHandler)||void 0===d||d.call(c,this.props.index,p,P)))},this.componentRef=e=>{this.ref.current=e;const{component:t}=this.props,n=t.ref;n&&("function"==typeof n?n(e):n.current=e)}}componentDidMount(){var e;const{context:t,index:n,isDisabled:i,role:a,customChild:o,autoFocus:r}=this.props,l=o?this.getInnerNode(this.ref.current):this.ref.current;null===(e=null==t?void 0:t.sendRef)||void 0===e||e.call(t,n,[l,o?l:this.additionalRef.current],i,"separator"===a),r&&setTimeout((()=>l.focus()))}componentDidUpdate(){var e;const{context:t,index:n,isDisabled:i,role:a,customChild:o}=this.props,r=o?this.getInnerNode(this.ref.current):this.ref.current;null===(e=null==t?void 0:t.sendRef)||void 0===e||e.call(t,n,[r,o?r:this.additionalRef.current],i,"separator"===a)}extendAdditionalChildRef(){const{additionalChild:e}=this.props;return a.cloneElement(e,{ref:this.additionalRef})}render(){const e=this.props,{className:t,children:n,context:i,onClick:o,component:s,role:c,isDisabled:d,isAriaDisabled:p,isPlainText:u,index:f,href:m,tooltip:h,tooltipProps:b,id:g,componentID:v,listItemClassName:y,additionalChild:x,customChild:w,enterTriggersArrowDown:E,icon:O,autoFocus:C,styleChildren:N,description:S,inoperableEvents:T}=e,D=r(e,["className","children","context","onClick","component","role","isDisabled","isAriaDisabled","isPlainText","index","href","tooltip","tooltipProps","id","componentID","listItemClassName","additionalChild","customChild","enterTriggersArrowDown","icon","autoFocus","styleChildren","description","inoperableEvents"]);let P=l(O&&_.icon,p&&_.ariaDisabled,t);"a"===s?D["aria-disabled"]=d||p:"button"===s&&(D["aria-disabled"]=d||p,D.type=D.type||"button");const L=e=>a.cloneElement(e,Object.assign(Object.assign({},N&&{className:l(e.props.className,P)}),"separator"!==this.props.role&&{role:c,ref:this.componentRef})),j=e=>{const t=e,i=S?a.createElement(a.Fragment,null,a.createElement("div",{className:I},O&&a.createElement("span",{className:l(R)},O),n),a.createElement("div",{className:k},S)):a.createElement(a.Fragment,null,O&&a.createElement("span",{className:l(R)},O),n);return a.createElement(t,Object.assign({},D,d||p?T.reduce(((e,t)=>Object.assign(Object.assign({},e),{[t]:e=>{e.preventDefault()}})),{}):null,{href:m,ref:this.ref,className:P,id:v,role:c}),i)};return a.createElement(Xa.Consumer,null,(({onSelect:e,itemClass:t,disabledClass:n,plainTextClass:i})=>{return"separator"!==this.props.role&&(P=l(P,d&&n,u&&i,t,S&&_.description)),w?a.cloneElement(w,{ref:this.ref,onKeyDown:this.onKeyDown}):a.createElement("li",Object.assign({},y&&{className:y},{role:"none",onKeyDown:this.onKeyDown,onClick:t=>{d||p||(null==o||o(t),null==e||e(t))},id:g}),(r=a.isValidElement(s)?L(s):j(s),h?a.createElement(Zn,Object.assign({content:h},b),r):r),x&&this.extendAdditionalChildRef());var r}))}}Ja.displayName="InternalDropdownItem",Ja.defaultProps={className:"",component:"a",role:"none",isDisabled:!1,isPlainText:!1,tooltipProps:{},onClick:e=>{},index:-1,context:{keyHandler:()=>{},sendRef:()=>{}},enterTriggersArrowDown:!1,icon:null,styleChildren:!0,description:null,inoperableEvents:["onClick","onKeyPress"]};const Za=e=>{var{className:t="",ref:n,ouiaId:i,ouiaSafe:o}=e,l=r(e,["className","ref","ouiaId","ouiaSafe"]);const s=Ge(Za.displayName,i,o);return a.createElement(Ya.Consumer,null,(e=>a.createElement(Ja,Object.assign({},l,{context:e,component:a.createElement(Oi,{component:wi.div}),className:t,role:"separator"},s))))};Za.displayName="DropdownSeparator";const Qa=e=>{var t=r(e,["children"]);return a.createElement(Za,Object.assign({},t))};Qa.displayName="ApplicationLauncherSeparator";const eo={success:Si,error:ki,warning:Ri},to=e=>{var{status:t,customIcon:n,className:i}=e,o=r(e,["status","customIcon","className"]);const s=t&&eo[t];return a.createElement("span",Object.assign({className:l(ma.formControlIcon,t&&ma.modifiers.status,i)},o),n||a.createElement(s,null))};var no,io;!function(e){e.text="text",e.date="date",e.datetimeLocal="datetime-local",e.email="email",e.month="month",e.number="number",e.password="password",e.search="search",e.tel="tel",e.time="time",e.url="url"}(no||(no={})),function(e){e.default="default",e.plain="plain"}(io||(io={}));class ao extends a.Component{constructor(e){super(e),this.inputRef=a.createRef(),this.observer=()=>{},this.handleChange=e=>{this.props.onChange&&this.props.onChange(e,e.currentTarget.value)},this.handleResize=()=>{const e=this.props.innerRef||this.inputRef;e&&e.current&&Me(e.current,String(this.props.value))},this.restoreText=()=>{const e=this.props.innerRef||this.inputRef;e.current.value=String(this.props.value),e.current.scrollLeft=e.current.scrollWidth},this.onFocus=e=>{const{isLeftTruncated:t,isStartTruncated:n,onFocus:i}=this.props;(t||n)&&this.restoreText(),i&&i(e)},this.onBlur=e=>{const{isLeftTruncated:t,isStartTruncated:n,onBlur:i}=this.props;(t||n)&&this.handleResize(),i&&i(e)},this.sanitizeInputValue=e=>"string"==typeof e?e.replace(/\n/g," "):e,e.id||e["aria-label"]||e["aria-labelledby"]||console.error("Text input:","Text input requires either an id or aria-label to be specified"),this.state={ouiaStateId:qe(ao.displayName)}}componentDidMount(){if(this.props.isLeftTruncated||this.props.isStartTruncated){const e=this.props.innerRef||this.inputRef;this.observer=((e,t,n)=>{let i;if(Fe){const{ResizeObserver:n}=window;if(e&&n){const t=new n((e=>{window.requestAnimationFrame((()=>{Array.isArray(e)&&e.length}))}));t.observe(e),i=()=>t.unobserve(e)}else window.addEventListener("resize",t),i=()=>window.removeEventListener("resize",t)}return()=>{i&&i()}})(e.current,this.handleResize),this.handleResize()}}componentWillUnmount(){(this.props.isLeftTruncated||this.props.isStartTruncated)&&this.observer()}render(){const e=this.props,{innerRef:t,className:n,type:i,value:o,placeholder:s,validated:c,onChange:d,onFocus:p,onBlur:u,isLeftTruncated:f,isStartTruncated:m,isExpanded:h,expandedProps:b,readOnly:g,readOnlyVariant:v,isRequired:y,isDisabled:x,customIcon:w,ouiaId:E,ouiaSafe:O}=e,C=r(e,["innerRef","className","type","value","placeholder","validated","onChange","onFocus","onBlur","isLeftTruncated","isStartTruncated","isExpanded","expandedProps","readOnly","readOnlyVariant","isRequired","isDisabled","customIcon","ouiaId","ouiaSafe"]),N=["success","error","warning"].includes(c),S=b?{"aria-expanded":null==b?void 0:b.isExpanded,"aria-controls":null==b?void 0:b.ariaControls,role:"combobox"}:{};return a.createElement("span",{className:l(ma.formControl,v&&ma.modifiers.readonly,"plain"===v&&ma.modifiers.plain,x&&ma.modifiers.disabled,(h||(null==b?void 0:b.isExpanded))&&ma.modifiers.expanded,w&&ma.modifiers.icon,N&&ma.modifiers[c],n)},a.createElement("input",Object.assign({},C,{onFocus:this.onFocus,onBlur:this.onBlur,onChange:this.handleChange,type:i,value:this.sanitizeInputValue(o),"aria-invalid":C["aria-invalid"]?C["aria-invalid"]:c===F.error},S,{required:y,disabled:x,readOnly:!!v||g,ref:t||this.inputRef,placeholder:s},Ke(oo.displayName,void 0!==E?E:this.state.ouiaStateId,O))),(w||N)&&a.createElement("span",{className:l(ma.formControlUtilities)},w&&a.createElement(to,{customIcon:w}),N&&a.createElement(to,{status:c})))}}ao.displayName="TextInputBase",ao.defaultProps={"aria-label":null,isRequired:!1,validated:"default",isDisabled:!1,isExpanded:!1,type:no.text,isLeftTruncated:!1,isStartTruncated:!1,onChange:()=>{},ouiaSafe:!0};const oo=a.forwardRef(((e,t)=>a.createElement(ao,Object.assign({},e,{innerRef:t}))));oo.displayName="TextInput";let ro=0;class lo extends a.Component{constructor(){super(...arguments),this.parentRef=a.createRef(),this.menuComponentRef=a.createRef(),this.filterRef=a.createRef(),this.clearRef=a.createRef(),this.inputRef=a.createRef(),this.refCollection=[[]],this.optionContainerRefCollection=[],this.footerRef=a.createRef(),this.state={focusFirstOption:!1,typeaheadInputValue:null,typeaheadFilteredChildren:a.Children.toArray(this.props.children),favoritesGroup:[],typeaheadCurrIndex:-1,typeaheadStoredIndex:-1,creatableValue:"",tabbedIntoFavoritesMenu:!1,ouiaStateId:qe(lo.displayName,this.props.variant),viewMoreNextIndex:-1},this.getTypeaheadActiveChild=e=>this.refCollection[e]?this.refCollection[e][0]:null,this.componentDidUpdate=(e,t)=>{if(this.props.hasInlineFilter&&(this.refCollection[0][0]=this.filterRef.current),t.focusFirstOption||!this.state.focusFirstOption||this.props.customContent)-1!==this.state.viewMoreNextIndex&&this.refCollection.length>this.state.viewMoreNextIndex&&"spinner"!==this.props.loadingVariant&&this.refCollection[this.state.viewMoreNextIndex][0]&&"typeahead"!==this.props.variant&&"typeaheadmulti"!==this.props.variant&&(this.refCollection[this.state.viewMoreNextIndex][0].focus(),this.setState({viewMoreNextIndex:-1}));else{const e=this.refCollection.find((e=>null!==e&&e[0]));e&&e[0]&&e[0].focus()}const n=(e,t)=>Array.from(e).some(((e,n)=>{const i=e.props,a=t[n],{props:o}=a;return i&&o?i.value!==o.value||i.label!==o.label||i.isDisabled!==o.isDisabled||i.isPlaceholder!==o.isPlaceholder:e!==a}));if((e.children.length!==this.props.children.length||n(e.children,this.props.children)||this.props.isGrouped&&Array.from(e.children).some(((e,t)=>e.type===Sa&&e.props.children&&this.props.children[t].props.children&&(e.props.children.length!==this.props.children[t].props.children.length||n(e.props.children,this.props.children[t].props.children)))))&&this.updateTypeAheadFilteredChildren(t.typeaheadInputValue||"",null),this.props.onFavorite&&(this.props.favorites.length!==e.favorites.length||this.state.typeaheadFilteredChildren!==t.typeaheadFilteredChildren)){const e=((e,t,n,i)=>{if(t){const t=[];return e.forEach((e=>{if(n.length>0)return e.props.children&&e.props.children.filter((e=>n.includes(e.props.id))).map((e=>t.push(a.cloneElement(e,{isFavorite:!0,id:`favorite-${e.props.id}`}))))})),t}return e.filter((e=>n.includes(e.props.id))).map((e=>a.cloneElement(e,{isFavorite:!0,enterTriggersArrowDown:i})))})("typeahead"===this.props.variant||"typeaheadmulti"===this.props.variant?this.state.typeaheadFilteredChildren:this.props.children,this.props.isGrouped,this.props.favorites),t=e.length?[a.createElement(Sa,{key:"favorites",label:this.props.favoritesLabel},e),a.createElement(Oi,{key:"favorites-group-divider"})]:[];this.setState({favoritesGroup:t})}},this.onEnter=()=>{this.setState({focusFirstOption:!0})},this.onToggle=(e,t)=>{const{isInputValuePersisted:n,onSelect:i,onToggle:a,hasInlineFilter:o}=this.props;!t&&n&&i&&i(void 0,this.inputRef.current?this.inputRef.current.value:""),t&&o&&this.setState({focusFirstOption:!0}),a(e,t)},this.onClose=()=>{const{isInputFilterPersisted:e}=this.props;this.setState(Object.assign(Object.assign({focusFirstOption:!1,typeaheadInputValue:null},!e&&{typeaheadFilteredChildren:a.Children.toArray(this.props.children)}),{typeaheadCurrIndex:-1,tabbedIntoFavoritesMenu:!1,viewMoreNextIndex:-1}))},this.onChange=e=>{""===e.target.value.toString()||this.props.isOpen||this.onToggle(e,!0),this.props.onTypeaheadInputChanged&&this.props.onTypeaheadInputChanged(e.target.value.toString()),this.setState({typeaheadCurrIndex:-1,typeaheadInputValue:e.target.value,creatableValue:e.target.value}),this.updateTypeAheadFilteredChildren(e.target.value.toString(),e),this.refCollection=[[]]},this.updateTypeAheadFilteredChildren=(e,t)=>{let n;const{onFilter:i,isCreatable:o,isCreateOptionOnTop:r,onCreateOption:l,createText:s,noResultsFoundText:c,children:d,isGrouped:p,isCreateSelectOptionObject:u,loadingVariant:f}=this.props;if(i)n=i(t,t?t.target.value:e)||d;else{let t;try{t=new RegExp(e.toString(),"i")}catch(n){t=new RegExp(e.toString().replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"i")}const i=a.Children.toArray(d);if(p){const o=e=>e.props.value&&e.props.value.toString&&0===this.getDisplay(e.props.value.toString(),"text").search(t);n=""!==e.toString()?a.Children.map(d,(e=>{if(!a.isValidElement(e)||e.type!==Sa)return a.Children.toArray(e).filter(o);{const t=a.Children.toArray(e.props.children).filter(o);if(t.length>0)return a.cloneElement(e,{titleId:e.props.label&&e.props.label.replace(/\W/g,"-"),children:t})}})):i}else n=""!==e.toString()?i.filter((n=>{const i=n.props.value;if(!i)return!0;const a="string"!=typeof i&&i.toString&&i.compareTo;return"spinner"!==f&&(null==f?void 0:f.text)===i||("spinner"===f&&"loading"===i||(a?i.compareTo(e):0===this.getDisplay(n.props.value.toString(),"text").search(t)))})):i}if(n||(n=[]),0===n.length&&!o&&n.push(a.createElement(Na,{isDisabled:!0,key:"no-results",value:c,isNoResultsOption:!0})),o&&""!==e){const t=e;if(!n.find((e=>e.props.value&&e.props.value.toString().toLowerCase()===t.toString().toLowerCase()))){const e=u?{toString:()=>t,compareTo:e=>this.toString().toLowerCase().includes(e.toString().toLowerCase())}:t,i=a.createElement(Na,{key:`create ${t}`,value:e,onClick:()=>l&&l(t)},s,' "',t,'"');r?n.unshift(i):n.push(i)}}this.setState({typeaheadFilteredChildren:n})},this.onClick=e=>{this.props.isOpen||this.onToggle(e,!0)},this.clearSelection=e=>{this.setState({typeaheadInputValue:null,typeaheadFilteredChildren:a.Children.toArray(this.props.children),typeaheadCurrIndex:-1})},this.sendRef=(e,t,n,i)=>{this.refCollection[i]=[e,t],this.optionContainerRefCollection[i]=n},this.handleMenuKeys=(e,t,n)=>{Te(e,t,n,this.refCollection,this.refCollection),this.props.variant!==wa.typeahead&&this.props.variant!==wa.typeaheadMulti||"tab"!==n&&this.handleTypeaheadKeys(n)},this.moveFocus=(e,t=!0)=>{const{isCreatable:n,createText:i}=this.props,a=Boolean(this.refCollection[e][0]&&this.refCollection[e][0].classList.contains("pf-m-description")),o=Boolean(this.refCollection[e][0]&&this.refCollection[e][0].classList.contains("pf-m-load")),r=a?this.refCollection[e][0].firstElementChild:this.refCollection[e][0];let l="";n&&r.textContent.includes(i)?l=this.state.creatableValue:r&&!o&&(l=r.textContent),this.setState((n=>({typeaheadCurrIndex:t?e:n.typeaheadCurrIndex,typeaheadStoredIndex:e,typeaheadInputValue:l})))},this.switchFocusToFavoriteMenu=()=>{const{typeaheadCurrIndex:e,typeaheadStoredIndex:t}=this.state;let n=0;-1!==e?n=e:-1!==t&&(n=t),null!==this.refCollection[n]&&null!==this.refCollection[n][0]?this.refCollection[n][0].focus():this.clearRef.current.focus(),this.setState({tabbedIntoFavoritesMenu:!0,typeaheadCurrIndex:-1})},this.moveFocusToLastMenuItem=()=>{const e=this.refCollection.length;e>0&&null!==this.refCollection[e-1]&&null!==this.refCollection[e-1][0]&&this.refCollection[e-1][0].focus()},this.handleTypeaheadKeys=(e,t=!1)=>{const{isOpen:n,onFavorite:i,isCreatable:a}=this.props,{typeaheadCurrIndex:o,tabbedIntoFavoritesMenu:r}=this.state,l=this.getTypeaheadActiveChild(o);if(n)if("enter"===e){if((-1!==o||a&&1===this.refCollection.length)&&(l||this.refCollection[0]&&this.refCollection[0][0])){if(l){if(!l.classList.contains("pf-m-load")){const e=l.childElementCount>1?l.firstChild.textContent:l.textContent;this.setState({typeaheadInputValue:e})}}else this.refCollection[0]&&this.refCollection[0][0]&&this.setState({typeaheadInputValue:this.refCollection[0][0].textContent});l?l.click():this.refCollection[0][0].click()}}else if("tab"===e)if(i)if(this.inputRef.current===document.activeElement)if(this.props.footer&&t){const e=_e(this.footerRef,Ca);e.length>0&&e[e.length-1]&&e[e.length-1].focus()}else this.switchFocusToFavoriteMenu();else if(this.props.footer){let e=!1;const n=_e(this.footerRef,Ca);if(n.length>0){const i=n.findIndex((e=>e===document.activeElement));-1===i?t?this.inputRef.current.focus():n[0].focus():t?0===i?(this.switchFocusToFavoriteMenu(),e=!0):n[i-1].focus():n[i+1]?n[i+1].focus():this.inputRef.current.focus()}else this.inputRef.current.focus(),e=!1;this.setState({tabbedIntoFavoritesMenu:e})}else this.inputRef.current.focus(),this.setState({tabbedIntoFavoritesMenu:!1});else if(this.props.footer){const e=_e(this.footerRef,Ca),n=e.findIndex((e=>e===document.activeElement));this.inputRef.current===document.activeElement?t?(this.onToggle(null,!1),this.onClose()):e[0]?e[0].focus():(this.onToggle(null,!1),this.onClose()):t?0===n?this.inputRef.current.focus():e[n-1].focus():e[n+1]?e[n+1].focus():(this.onToggle(null,!1),this.inputRef.current.focus(),this.onClose())}else this.onToggle(null,!1),this.onClose();else if(r){const e=this.refCollection.findIndex((e=>void 0!==e&&(e[0]===document.activeElement||e[1]===document.activeElement)));this.moveFocus(e)}else{if(null===this.refCollection[0][0])return;let t;if(t=-1===o&&"down"===e?0:-1===o&&"up"===e?this.refCollection.length-1:"left"!==e&&"right"!==e?De(o,e,this.refCollection):o,null===this.refCollection[t])return;this.moveFocus(t)}},this.onClickTypeaheadToggleButton=()=>{this.inputRef&&this.inputRef.current&&this.inputRef.current.focus()},this.getDisplay=(e,t="node")=>{if(!e)return;const n=this.props.isGrouped?a.Children.toArray(this.props.children).reduce(((e,t)=>[...e,...a.Children.toArray(t.props.children)]),[]).find((t=>t.props.value.toString()===e.toString())):a.Children.toArray(this.props.children).find((t=>t.props.value&&t.props.value.toString()===e.toString()));return n?n&&n.props.children?"node"===t?n.props.children:this.findText(n):n.props.value.toString():e.toString()},this.findText=e=>{if("string"==typeof e)return e;if(a.isValidElement(e)){const t=[];return a.Children.toArray(e.props.children).forEach((e=>t.push(this.findText(e)))),t.join("")}return""},this.generateSelectedBadge=()=>{const{customBadgeText:e,selections:t}=this.props;return null!==e?e:Array.isArray(t)&&t.length>0?t.length:null},this.setVieMoreNextIndex=()=>{this.setState({viewMoreNextIndex:this.refCollection.length-1})},this.isLastOptionBeforeFooter=e=>!(!this.props.footer||e!==this.refCollection.length-1)}extendTypeaheadChildren(e,t){const{isGrouped:n,onFavorite:i,createText:o}=this.props,r=t?t.concat(this.state.typeaheadFilteredChildren):this.state.typeaheadFilteredChildren,l=this.optionContainerRefCollection[e];let s=this.getTypeaheadActiveChild(e);return s&&s.classList.contains("pf-m-description")&&(s=s.firstElementChild),this.refCollection=[[]],this.optionContainerRefCollection=[],n?a.Children.map(r,(e=>e.type===Oi?e:e.type===Sa&&i?a.cloneElement(e,{titleId:e.props.label&&e.props.label.replace(/\W/g,"-"),children:a.Children.map(e.props.children,(t=>t.type===Oi?t:a.cloneElement(t,{isFocused:l&&(l.id===t.props.id||this.props.isCreatable&&s.textContent===`${o} "${e.props.value}"`)})))}):e.type===Sa?a.cloneElement(e,{titleId:e.props.label&&e.props.label.replace(/\W/g,"-"),children:a.Children.map(e.props.children,(e=>e.type===Oi?e:a.cloneElement(e,{isFocused:s&&(s.textContent===e.props.value.toString()||this.props.isCreatable&&s.textContent===`${o} "${e.props.value}"`)})))}):a.cloneElement(e,{isFocused:s&&(s.textContent===e.props.value.toString()||this.props.isCreatable&&s.textContent===`${o} "${e.props.value}"`)}))):r.map(((t,n)=>"Divider"===t.type.displayName?t:a.cloneElement(t,{isFocused:s?s.textContent===t.props.value.toString()||this.props.isCreatable&&s.textContent===`${o} "${t.props.value}"`:n===e})))}render(){const e=this.props,{children:t,chipGroupProps:n,chipGroupComponent:i,className:o,customContent:s,variant:c,direction:d,onSelect:p,onClear:u,onBlur:f,toggleId:m,toggleRef:h,isOpen:b,isGrouped:g,isPlain:v,isDisabled:y,hasPlaceholderStyle:x,validated:w,selections:E,typeAheadAriaLabel:O,typeAheadAriaDescribedby:C,clearSelectionsAriaLabel:N,toggleAriaLabel:S,removeSelectionAriaLabel:k,"aria-label":R,"aria-labelledby":I,"aria-describedby":T,"aria-invalid":_,placeholderText:D,width:P,maxHeight:L,toggleIcon:j,toggleIndicator:M,ouiaId:B,ouiaSafe:K,hasInlineFilter:G,isCheckboxSelectionBadgeHidden:U,inlineFilterPlaceholderText:q,onFilter:X,onTypeaheadInputChanged:Y,onCreateOption:J,isCreatable:Z,onToggle:Q,createText:ee,noResultsFoundText:te,customBadgeText:ne,inputIdPrefix:ie,inputAutoComplete:ae,isInputValuePersisted:oe,isInputFilterPersisted:re,menuAppendTo:le,favorites:se,onFavorite:ce,favoritesLabel:de,footer:pe,loadingVariant:ue,isCreateSelectOptionObject:fe,isCreateOptionOnTop:me,shouldResetOnSelect:he,isFlipEnabled:be,zIndex:ge}=e,ve=r(e,["children","chipGroupProps","chipGroupComponent","className","customContent","variant","direction","onSelect","onClear","onBlur","toggleId","toggleRef","isOpen","isGrouped","isPlain","isDisabled","hasPlaceholderStyle","validated","selections","typeAheadAriaLabel","typeAheadAriaDescribedby","clearSelectionsAriaLabel","toggleAriaLabel","removeSelectionAriaLabel","aria-label","aria-labelledby","aria-describedby","aria-invalid","placeholderText","width","maxHeight","toggleIcon","toggleIndicator","ouiaId","ouiaSafe","hasInlineFilter","isCheckboxSelectionBadgeHidden","inlineFilterPlaceholderText","onFilter","onTypeaheadInputChanged","onCreateOption","isCreatable","onToggle","createText","noResultsFoundText","customBadgeText","inputIdPrefix","inputAutoComplete","isInputValuePersisted","isInputFilterPersisted","menuAppendTo","favorites","onFavorite","favoritesLabel","footer","loadingVariant","isCreateSelectOptionObject","isCreateOptionOnTop","shouldResetOnSelect","isFlipEnabled","zIndex"]),{focusFirstOption:ye,typeaheadCurrIndex:xe,typeaheadInputValue:we,typeaheadFilteredChildren:Ee,favoritesGroup:Oe}=this.state,Ce=m||"pf-select-toggle-id-"+ro++,Ne=Array.isArray(E)?E:[E],Se=a.Children.toArray(t).find((e=>e.props.value===Ne[0])),ke=Se&&Se.props.isPlaceholder,Re=Boolean(Ne[0]&&""!==Ne[0]),Ie=this.getTypeaheadActiveChild(xe);let Te=null,De=[];if(ce){let e=t;"typeahead"===c||"typeaheadmulti"===c?e=this.extendTypeaheadChildren(xe,Oe):ce&&(e=Oe.concat(t)),De=((e,t,n)=>t?e.map((e=>a.cloneElement(e,{children:a.Children.map(e.props.children,(e=>e.type===Qa||e.type===Oi?e:a.cloneElement(e,{isFavorite:n.some((t=>t===e.props.id||`favorite-${t}`===e.props.id))})))}))):e.map((e=>a.cloneElement(e,{isFavorite:n.some((t=>t===e.props.id))}))))(e,g,se)}else De=t;if(!s&&!Re&&!D){const e=a.Children.toArray(t).filter((e=>!0===e.props.isPlaceholder));Te=e[0]&&this.getDisplay(e[0].props.value,"node")||t[0]&&this.getDisplay(t[0].props.value,"node")}b&&void 0===De.find((e=>"loading"===(null==e?void 0:e.key)))&&("spinner"===ue?De.push(a.createElement(Na,{isLoading:!0,key:"loading",value:"loading"},a.createElement(ui,{size:"lg"}))):(null==ue?void 0:ue.text)&&De.push(a.createElement(Na,{isLoad:!0,key:"loading",value:ue.text,setViewMoreNextIndex:this.setVieMoreNextIndex,onClick:null==ue?void 0:ue.onClick})));const Pe=u!==lo.defaultProps.onClear,Le=a.createElement("button",{className:l(si.button,si.modifiers.plain,sa),onClick:e=>{this.clearSelection(e),u(e),e.stopPropagation()},"aria-label":N,type:"button",disabled:y,ref:this.clearRef,onKeyDown:e=>{e.key===H&&this.clearRef.current.click()}},a.createElement(ha,{"aria-hidden":!0}));let je,Fe,Ae=null;if(c===wa.typeaheadMulti&&(Ae=i||a.createElement(qa,Object.assign({},n),Ne&&Ne.map((e=>a.createElement(Ma,{key:e,onClick:t=>p(t,e),closeBtnAriaLabel:k},this.getDisplay(e,"node")))))),G){De=[a.createElement(a.Fragment,null,a.createElement("div",{key:"inline-filter",className:l(na)},a.createElement("div",{key:"inline-filter",className:l(ma.formControl)},a.createElement("input",{key:"inline-filter-input",type:"search",onChange:this.onChange,placeholder:q,onKeyDown:e=>{if(e.key===V)this.handleMenuKeys(0,0,"up"),e.preventDefault();else if(e.key===z)this.handleMenuKeys(0,0,"down"),e.preventDefault();else if(e.key===$)this.handleMenuKeys(0,0,"left"),e.preventDefault();else if(e.key===W)this.handleMenuKeys(0,0,"right"),e.preventDefault();else if(e.key===A&&c!==wa.checkbox&&this.props.footer)if(e.shiftKey)this.onToggle(e,!1);else{const t=_e(this.footerRef,Ca);t.length>0?(t[0].focus(),e.stopPropagation(),e.preventDefault()):this.onToggle(e,!1)}else e.key===A&&c===wa.checkbox&&(e.shiftKey?this.handleMenuKeys(0,0,"up"):this.handleMenuKeys(0,0,"down"),e.stopPropagation(),e.preventDefault())},ref:this.filterRef,autoComplete:ae}))),a.createElement(Oi,{key:"inline-filter-divider"})),...Ee].map(((e,t)=>a.cloneElement(e,{key:t})))}if(s)je={selected:Ne,openedOnEnter:ye,isCustomContent:!0},Fe=s;else switch(c){case"single":je={selected:Ne[0],hasInlineFilter:G,openedOnEnter:ye},Fe=De;break;case"checkbox":je={checked:Ne,isGrouped:g,hasInlineFilter:G,openedOnEnter:ye},Fe=De;break;case"typeahead":je={selected:Ne[0],openedOnEnter:ye},Fe=ce?De:this.extendTypeaheadChildren(xe),0===Fe.length&&Fe.push(a.createElement(Na,{isDisabled:!0,key:0,value:te,isNoResultsOption:!0}));break;case"typeaheadmulti":je={selected:Ne,openedOnEnter:ye},Fe=ce?De:this.extendTypeaheadChildren(xe),0===Fe.length&&Fe.push(a.createElement(Na,{isDisabled:!0,key:0,value:te,isNoResultsOption:!0}))}const Me=be&&"inline"!==le,Be=a.createElement(Ra,Object.assign({className:l(Me&&Hi.static)},ve,{isGrouped:g,selected:Ne},je,{openedOnEnter:ye,"aria-label":R,"aria-labelledby":I,sendRef:this.sendRef,keyHandler:this.handleMenuKeys,maxHeight:L,ref:this.menuComponentRef,footer:pe,footerRef:this.footerRef,isLastOptionBeforeFooter:this.isLastOptionBeforeFooter}),Fe),He=pe?a.createElement("div",{className:l($i)}," ",Be," "):Be,ze=a.createRef(),$e=a.createElement("div",Object.assign({className:l(Vi,b&&Hi.expanded,w===F.success&&Hi.success,w===F.warning&&Hi.warning,w===F.error&&Hi.invalid,d===Oa.up&&Hi.top,o),ref:ze},P&&{style:{width:P}},w!==F.default&&{"aria-invalid":_}),b&&He),We=a.createElement("div",Object.assign({className:l(Vi,b&&Hi.expanded,w===F.success&&Hi.success,w===F.warning&&Hi.warning,w===F.error&&Hi.invalid,d===Oa.up&&Hi.top,o),ref:this.parentRef},Ke(lo.displayName,void 0!==B?B:this.state.ouiaStateId,K),P&&{style:{width:P}},w!==F.default&&{"aria-invalid":_}),a.createElement(Ta,Object.assign({id:Ce,parentRef:this.parentRef,menuRef:this.menuComponentRef,ref:h},pe&&{footerRef:this.footerRef},{isOpen:b,isPlain:v,hasPlaceholderStyle:x&&(!Ne.length||null===Ne[0]||ke),onToggle:this.onToggle,onEnter:this.onEnter,onClose:this.onClose,onBlur:f,variant:c,toggleIndicator:M,"aria-labelledby":`${I||""} ${Ce}`,"aria-label":S},T&&{"aria-describedby":T},{handleTypeaheadKeys:this.handleTypeaheadKeys,moveFocusToLastMenuItem:this.moveFocusToLastMenuItem,isDisabled:y,hasClearButton:Pe,hasFooter:void 0!==pe,onClickTypeaheadToggleButton:this.onClickTypeaheadToggleButton}),s&&a.createElement("div",{className:l(fa)},j&&a.createElement("span",{className:l(ca)},j),a.createElement("span",{className:l(pa)},D)),c===wa.single&&!s&&a.createElement(a.Fragment,null,a.createElement("div",{className:l(fa)},j&&a.createElement("span",{className:l(ca)},j),a.createElement("span",{className:l(pa)},this.getDisplay(Ne[0],"node")||D||Te)),Pe&&Re&&Le),c===wa.checkbox&&!s&&a.createElement(a.Fragment,null,a.createElement("div",{className:l(fa)},j&&a.createElement("span",{className:l(ca)},j),a.createElement("span",{className:l(pa)},D),!U&&Re&&a.createElement("div",{className:l(ra)},a.createElement("span",{className:l(fi,mi.read)},this.generateSelectedBadge()))),Pe&&Re&&Le),c===wa.typeahead&&!s&&a.createElement(a.Fragment,null,a.createElement("div",{className:l(fa)},j&&a.createElement("span",{className:l(ca)},j),a.createElement(oo,Object.assign({className:l(ua),"aria-activedescendant":Ie&&Ie.id,id:`${Ce}-select-typeahead`,"aria-label":O},C&&{"aria-describedby":C},{placeholder:D,value:null!==we?we:this.getDisplay(Ne[0],"text")||"",onChange:e=>this.onChange(e),onClick:this.onClick,autoComplete:ae,isDisabled:y,ref:this.inputRef}))),Pe&&(Ne[0]||we)&&Le),c===wa.typeaheadMulti&&!s&&a.createElement(a.Fragment,null,a.createElement("div",{className:l(fa)},j&&a.createElement("span",{className:l(ca)},j),Ne&&Array.isArray(Ne)&&Ne.length>0&&Ae,a.createElement(oo,Object.assign({className:l(ua),"aria-activedescendant":Ie&&Ie.id,id:`${Ce}-select-multi-typeahead-typeahead`,"aria-label":O,"aria-invalid":w===F.error},C&&{"aria-describedby":C},{placeholder:D,value:null!==we?we:"",onChange:e=>this.onChange(e),onClick:this.onClick,autoComplete:ae,isDisabled:y,ref:this.inputRef}))),Pe&&(Ne&&Ne.length>0||we)&&Le),w===F.success&&a.createElement("span",{className:l(da)},a.createElement(Si,{"aria-hidden":"true"})),w===F.error&&a.createElement("span",{className:l(da)},a.createElement(ki,{"aria-hidden":"true"})),w===F.warning&&a.createElement("span",{className:l(da)},a.createElement(Ri,{"aria-hidden":"true"}))),b&&"inline"===le&&He),Ge=()=>this.parentRef&&this.parentRef.current?this.parentRef.current.parentElement:null;return a.createElement(Ve,null,(e=>a.createElement(ya.Provider,{value:{onSelect:p,onFavorite:ce,onClose:this.onClose,variant:c,inputIdPrefix:ie||e,shouldResetOnSelect:he}},"inline"===le?We:a.createElement(un,{width:"auto",trigger:We,triggerRef:this.parentRef,popper:$e,popperRef:ze,direction:d,appendTo:"parent"===le?Ge():le,isVisible:b,zIndex:ge}))))}}lo.displayName="Select",lo.defaultProps={children:[],className:"",position:Ea.left,direction:Oa.down,toggleId:null,isOpen:!1,isGrouped:!1,isPlain:!1,isDisabled:!1,hasPlaceholderStyle:!1,isCreatable:!1,isCreateOptionOnTop:!1,validated:"default","aria-label":"","aria-labelledby":"","aria-describedby":"","aria-invalid":!1,typeAheadAriaLabel:"",typeAheadAriaDescribedby:"",clearSelectionsAriaLabel:"Clear all",toggleAriaLabel:"Options menu",removeSelectionAriaLabel:"Remove",selections:[],createText:"Create",placeholderText:"",noResultsFoundText:"No results found",variant:wa.single,width:"",onClear:()=>{},onCreateOption:()=>{},toggleIcon:null,toggleIndicator:null,onFilter:null,onTypeaheadInputChanged:null,customContent:null,hasInlineFilter:!1,inlineFilterPlaceholderText:null,customBadgeText:null,inputIdPrefix:"",inputAutoComplete:"off",menuAppendTo:"inline",favorites:[],favoritesLabel:"Favorites",ouiaSafe:!0,chipGroupComponent:null,isInputValuePersisted:!1,isInputFilterPersisted:!1,isCreateSelectOptionObject:!1,shouldResetOnSelect:!0,isFlipEnabled:!0,zIndex:9999};var so="pf-v5-c-inline-edit__action",co="pf-v5-c-inline-edit__group",po="pf-v5-c-inline-edit__input",uo="pf-v5-c-inline-edit__value",fo={iconGroup:"pf-m-icon-group",footer:"pf-m-footer",column:"pf-m-column",valid:"pf-m-valid",plain:"pf-m-plain",actionGroup:"pf-m-action-group",enableEditable:"pf-m-enable-editable",inlineEditable:"pf-m-inline-editable",enable:"pf-m-enable",bold:"pf-m-bold"};const mo=({value:e,rowIndex:t,cellIndex:n,onSelect:i=(()=>{}),clearSelection:o,isOpen:r=!1,onToggle:s=(()=>{}),selections:c=[""],options:d=[],props:p})=>{const u=a.createElement(lo,Object.assign({},p.editableSelectProps,{onSelect:(e,a,o)=>{i(e,a,t,n,o)}},o&&{onClear:e=>{o(e,t,n)}},{isOpen:r,onToggle:s,selections:c}),d);return a.createElement(a.Fragment,null,a.createElement("div",{className:uo},Array.isArray(e)?e.join(", "):e),a.createElement("div",{className:po},u,a.createElement("div",{className:l(ga,va.error),"aria-live":"polite"},p.errorText)))};mo.displayName="EditableSelectInputCell";const ho=({value:e,rowIndex:t,cellIndex:n,props:i,handleTextInputChange:o,inputAriaLabel:r,isDisabled:s=!1})=>a.createElement(a.Fragment,null,a.createElement("div",{className:uo},e),a.createElement("div",{className:po},a.createElement(oo,{isDisabled:s,value:void 0!==i.editableValue?i.editableValue:e,validated:!1!==i.isValid?"default":"error",type:"text",onChange:(e,i)=>{o(i,e,t,n)},"aria-label":r}),a.createElement("div",{className:l(ga,va.error),"aria-live":"polite"},i.errorText)));ho.displayName="EditableTextCell";const bo=e=>{var{children:t=null}=e,n=r(e,["children"]);return a.createElement("div",Object.assign({},n,{className:l(Fi.tableExpandableRowContent)}),t)};bo.displayName="ExpandableRowContent";const go=Sn({name:"HelpIcon",height:1024,width:1024,svgPath:"M521.3,576 C627.5,576 713.7,502 713.7,413.7 C713.7,325.4 627.6,253.6 521.3,253.6 C366,253.6 334.5,337.7 329.2,407.2 C329.2,414.3 335.2,416 343.5,416 L445,416 C450.5,416 458,415.5 460.8,406.5 C460.8,362.6 582.9,357.1 582.9,413.6 C582.9,441.9 556.2,470.9 521.3,473 C486.4,475.1 447.3,479.8 447.3,521.7 L447.3,553.8 C447.3,570.8 456.1,576 472,576 C487.9,576 521.3,576 521.3,576 M575.3,751.3 L575.3,655.3 C575.313862,651.055109 573.620137,646.982962 570.6,644 C567.638831,640.947672 563.552355,639.247987 559.3,639.29884 L463.3,639.29884 C459.055109,639.286138 454.982962,640.979863 452,644 C448.947672,646.961169 447.247987,651.047645 447.29884,655.3 L447.29884,751.3 C447.286138,755.544891 448.979863,759.617038 452,762.6 C454.961169,765.652328 459.047645,767.352013 463.3,767.30116 L559.3,767.30116 C563.544891,767.313862 567.617038,765.620137 570.6,762.6 C573.659349,759.643612 575.360354,755.553963 575.3,751.3 M512,896 C300.2,896 128,723.9 128,512 C128,300.3 300.2,128 512,128 C723.8,128 896,300.2 896,512 C896,723.8 723.7,896 512,896 M512.1,0 C229.7,0 0,229.8 0,512 C0,794.2 229.8,1024 512.1,1024 C794.4,1024 1024,794.3 1024,512 C1024,229.7 794.4,0 512.1,0",yOffset:0,xOffset:0});var vo={noPadding:"pf-m-no-padding",widthAuto:"pf-m-width-auto",top:"pf-m-top",topLeft:"pf-m-top-left",topRight:"pf-m-top-right",bottom:"pf-m-bottom",bottomLeft:"pf-m-bottom-left",bottomRight:"pf-m-bottom-right",left:"pf-m-left",leftTop:"pf-m-left-top",leftBottom:"pf-m-left-bottom",right:"pf-m-right",rightTop:"pf-m-right-top",rightBottom:"pf-m-right-bottom",danger:"pf-m-danger",warning:"pf-m-warning",success:"pf-m-success",custom:"pf-m-custom",info:"pf-m-info"},yo="pf-v5-c-popover",xo="pf-v5-c-popover__arrow",wo="pf-v5-c-popover__body",Eo="pf-v5-c-popover__close",Oo="pf-v5-c-popover__content",Co="pf-v5-c-popover__footer",No="pf-v5-c-popover__header",So="pf-v5-c-popover__title",ko="pf-v5-c-popover__title-icon",Ro="pf-v5-c-popover__title-text";const Io=a.createContext({}),To=e=>{var{className:t=null,children:n}=e,i=r(e,["className","children"]);return a.createElement("div",Object.assign({className:l(Oo,t)},i),n)};To.displayName="PopoverContent";const _o=e=>{var{children:t,id:n,className:i}=e,o=r(e,["children","id","className"]);return a.createElement("div",Object.assign({className:l(wo,i),id:n},o),t)};_o.displayName="PopoverBody";const Do=e=>{var{children:t,className:n}=e,i=r(e,["children","className"]);return a.createElement("span",Object.assign({className:l(ko,n)},i),t)};Do.displayName="PopoverHeaderIcon";const Po=e=>{var{children:t,className:n,headingLevel:i}=e,o=r(e,["children","className","headingLevel"]);const s=i;return a.createElement(s,Object.assign({className:l(Ro,n)},o),t)};Po.displayName="PopoverHeaderText";const Lo=e=>{var{children:t,icon:n,className:i,titleHeadingLevel:o="h6",alertSeverityVariant:s,id:c,alertSeverityScreenReaderText:d}=e,p=r(e,["children","icon","className","titleHeadingLevel","alertSeverityVariant","id","alertSeverityScreenReaderText"]);return a.createElement("header",Object.assign({className:l(No,i)},p),a.createElement("div",{className:l(So),id:c},n&&a.createElement(Do,null,n),a.createElement(Po,{headingLevel:o},s&&d&&a.createElement("span",{className:"pf-v5-screen-reader"},d),t)))};Lo.displayName="PopoverHeader";const jo=e=>{var{children:t,className:n=""}=e,i=r(e,["children","className"]);return a.createElement("footer",Object.assign({className:l(Co,n)},i),t)};jo.displayName="PopoverFooter";const Fo=e=>{var{onClose:t=(()=>{})}=e,n=r(e,["onClose"]);return a.createElement("div",{className:l(Eo)},a.createElement(xi,Object.assign({onClick:t,variant:"plain","aria-label":!0},n,{style:{pointerEvents:"auto"}}),a.createElement(_a,null)))};Fo.displayName="PopoverCloseButton";const Ao=e=>{var{className:t=""}=e,n=r(e,["className"]);return a.createElement("div",Object.assign({className:l(xo,t)},n))};Ao.displayName="PopoverArrow";const Mo={name:"--pf-v5-c-popover--MaxWidth",value:"none",var:"var(--pf-v5-c-popover--MaxWidth)"},Bo={name:"--pf-v5-c-popover--MinWidth",value:"auto",var:"var(--pf-v5-c-popover--MinWidth)"};var Ho;!function(e){e.auto="auto",e.top="top",e.bottom="bottom",e.left="left",e.right="right",e.topStart="top-start",e.topEnd="top-end",e.bottomStart="bottom-start",e.bottomEnd="bottom-end",e.leftStart="left-start",e.leftEnd="left-end",e.rightStart="right-start",e.rightEnd="right-end"}(Ho||(Ho={}));const Vo={custom:vo.custom,info:vo.info,success:vo.success,warning:vo.warning,danger:vo.danger},zo=e=>{var{children:t,position:n="top",enableFlip:i=!0,className:o="",isVisible:s=null,shouldClose:c=(()=>null),shouldOpen:d=(()=>null),"aria-label":p="",bodyContent:u,headerContent:f=null,headerComponent:m="h6",headerIcon:h=null,alertSeverityVariant:b,alertSeverityScreenReaderText:g,footerContent:v=null,appendTo:y=(()=>document.body),hideOnOutsideClick:x=!0,onHide:w=(()=>null),onHidden:E=(()=>null),onShow:O=(()=>null),onShown:C=(()=>null),onMount:N=(()=>null),zIndex:S=9999,triggerAction:k="click",minWidth:R=Bo&&Bo.value,maxWidth:I=Mo&&Mo.value,closeBtnAriaLabel:T="Close",showClose:_=!0,distance:D=25,flipBehavior:P=["top","bottom","left","right","top-start","top-end","bottom-start","bottom-end","left-start","left-end","right-start","right-end"],animationDuration:L=300,id:j,withFocusTrap:F,triggerRef:A,hasNoPadding:M=!1,hasAutoWidth:H=!1,elementToFocus:V}=e,z=r(e,["children","position","enableFlip","className","isVisible","shouldClose","shouldOpen","aria-label","bodyContent","headerContent","headerComponent","headerIcon","alertSeverityVariant","alertSeverityScreenReaderText","footerContent","appendTo","hideOnOutsideClick","onHide","onHidden","onShow","onShown","onMount","zIndex","triggerAction","minWidth","maxWidth","closeBtnAriaLabel","showClose","distance","flipBehavior","animationDuration","id","withFocusTrap","triggerRef","hasNoPadding","hasAutoWidth","elementToFocus"]);const $=j||Re(),W=null!==s,[K,G]=a.useState(!1),[U,q]=a.useState(Boolean(F)),X=a.useRef(null);a.useEffect((()=>{N()}),[]),a.useEffect((()=>{W&&(s?Y(void 0,!0):J())}),[s,W]);const Y=(e,t)=>{e&&O(e),G(!0),!1!==F&&t&&q(!0)},J=e=>{e&&w(e),G(!1)},Z={top:vo.top,bottom:vo.bottom,left:vo.left,right:vo.right,"top-start":vo.topLeft,"top-end":vo.topRight,"bottom-start":vo.bottomLeft,"bottom-end":vo.bottomRight,"left-start":vo.leftTop,"left-end":vo.leftBottom,"right-start":vo.rightTop,"right-end":vo.rightBottom},Q=R!==Bo.value,ee=I!==Mo.value,te=e=>{W?d(e,Y):Y(e,!1)},ne=e=>{W?c(e,J):J(e)},ie=a.createElement(ke,Object.assign({ref:X,active:U,focusTrapOptions:{returnFocusOnDeactivate:!1!==F,clickOutsideDeactivates:!0,initialFocus:V||void 0,checkCanFocusTrap:e=>new Promise((t=>{const n=setInterval((()=>{e.every((e=>"hidden"!==getComputedStyle(e).visibility))&&(t(),clearInterval(n))}),10)})),tabbableOptions:{displayCheck:"none"},fallbackFocus:()=>{let e=null;return document&&document.activeElement&&(e=document.activeElement),e}},preventScrollOnDeactivate:!0,className:l(yo,b&&Vo[b],M&&vo.noPadding,H&&vo.widthAuto,o),role:"dialog","aria-modal":"true","aria-label":f?void 0:p,"aria-labelledby":f?`popover-${$}-header`:void 0,"aria-describedby":`popover-${$}-body`,onMouseDown:()=>{U&&q(!1)},style:{minWidth:Q?R:null,maxWidth:ee?I:null}},z),a.createElement(Ao,null),a.createElement(To,null,_&&"click"===k&&a.createElement(Fo,{onClose:e=>{e.stopPropagation(),W?c(e,J):J(e)},"aria-label":T}),f&&a.createElement(Lo,{id:`popover-${$}-header`,icon:h,alertSeverityVariant:b,alertSeverityScreenReaderText:g||`${b} alert:`,titleHeadingLevel:m},"function"==typeof f?f(J):f),a.createElement(_o,{id:`popover-${$}-body`},"function"==typeof u?u(J):u),v&&a.createElement(jo,{id:`popover-${$}-footer`},"function"==typeof v?v(J):v)));return a.createElement(Io.Provider,{value:{headerComponent:m}},a.createElement(un,{trigger:t,triggerRef:A,popper:ie,popperRef:X,minWidth:R,appendTo:y,isVisible:K,onMouseEnter:"hover"===k&&te,onMouseLeave:"hover"===k&&ne,onPopperMouseEnter:"hover"===k&&te,onPopperMouseLeave:"hover"===k&&ne,onFocus:"hover"===k&&(e=>{W?d(e,Y):Y(e,!1)}),onBlur:"hover"===k&&(e=>{W?c(e,J):J(e)}),positionModifiers:Z,distance:D,placement:n,onTriggerClick:"click"===k&&(e=>{W?K?c(e,J):d(e,Y):K?J(e):Y(e,!0)}),onDocumentClick:(e,t,n)=>{if(x&&K){const i=n&&n.contains(e.target),a=t&&t.contains(e.target);if(i||a)return;W?c(e,J):J(e)}},onDocumentKeyDown:e=>{e.key===B&&K&&(W?c(e,J):J(e))},enableFlip:i,zIndex:S,flipBehavior:P,animationDuration:L,onHidden:E,onShown:C,onHide:()=>q(!1)}))};var $o,Wo;zo.displayName="Popover",e.TableTextVariant=void 0,($o=e.TableTextVariant||(e.TableTextVariant={})).div="div",$o.nav="nav",e.WrapModifier=void 0,(Wo=e.WrapModifier||(e.WrapModifier={})).wrap="wrap",Wo.nowrap="nowrap",Wo.truncate="truncate",Wo.breakWord="breakWord",Wo.fitContent="fitContent";const Ko=e=>{var{children:t=null,className:n="",variant:i="span",wrapModifier:o=null,tooltip:s="",tooltipProps:c={},onMouseEnter:d=(()=>{}),focused:p=!1,tooltipHasDefaultBehavior:u=!1}=e,f=r(e,["children","className","variant","wrapModifier","tooltip","tooltipProps","onMouseEnter","focused","tooltipHasDefaultBehavior"]);const m=i,h=a.createRef(),[b,g]=a.useState(s),v=a.createElement(m,Object.assign({ref:h,onMouseEnter:u?void 0:e=>{e.target.offsetWidth<e.target.scrollWidth?g(s||e.target.innerText):g(""),d(e)},className:l(n,o&&Fi.modifiers[o],Fi.tableText)},f),t);return a.useEffect((()=>{var e;u||(p&&(e=h.current).offsetWidth<e.scrollWidth?g(s||e.innerText):g(""))}),[p,u]),""!==b?a.createElement(Zn,Object.assign({triggerRef:h,content:b},!u&&{isVisible:!0},c),v):v};Ko.displayName="TableText";const Go=({children:e,info:t,className:n,variant:i="tooltip",popoverProps:o,tooltipProps:r,ariaLabel:s})=>a.createElement("div",{className:l(Fi.tableColumnHelp,n)},"string"==typeof e?a.createElement(Ko,null,e):e,a.createElement("span",{className:l(Fi.tableColumnHelpAction)},"tooltip"===i?a.createElement(Zn,Object.assign({content:t},r),a.createElement(xi,{variant:"plain","aria-label":s||"string"==typeof t&&t||"More info"},a.createElement(go,null))):a.createElement(zo,Object.assign({bodyContent:t},o),a.createElement(xi,{variant:"plain","aria-label":s||"string"==typeof t&&t||"More info"},a.createElement(go,null)))));Go.displayName="HeaderCellInfoWrapper";var Uo,qo={grid:"pf-m-grid",compact:"pf-m-compact",expanded:"pf-m-expanded",selected:"pf-m-selected",noPadding:"pf-m-no-padding",hoverable:"pf-m-hoverable",nowrap:"pf-m-nowrap",fitContent:"pf-m-fit-content",truncate:"pf-m-truncate",gridMd:"pf-m-grid-md",gridLg:"pf-m-grid-lg",gridXl:"pf-m-grid-xl",grid_2xl:"pf-m-grid-2xl"},Xo={treeView:"pf-m-tree-view",noInset:"pf-m-no-inset",treeViewGrid:"pf-m-tree-view-grid",treeViewDetailsExpanded:"pf-m-tree-view-details-expanded",treeViewGridMd:"pf-m-tree-view-grid-md",treeViewGridLg:"pf-m-tree-view-grid-lg",treeViewGridXl:"pf-m-tree-view-grid-xl",treeViewGrid_2xl:"pf-m-tree-view-grid-2xl"},Yo="pf-v5-c-table__check",Jo="pf-v5-c-table__toggle",Zo="pf-v5-c-table__toggle-icon",Qo="pf-v5-c-table__tree-view-details-toggle",er="pf-v5-c-table__tree-view-icon",tr="pf-v5-c-table__tree-view-main",nr="pf-v5-c-table__tree-view-text",ir="pf-v5-c-table__tree-view-title-cell";e.RowSelectVariant=void 0,(Uo=e.RowSelectVariant||(e.RowSelectVariant={})).radio="radio",Uo.checkbox="checkbox";const ar=e=>{var{children:t=null,className:n,onSelect:i=null,selectVariant:o,tooltip:l,tooltipProps:s}=e,c=r(e,["children","className","onSelect","selectVariant","tooltip","tooltipProps"]);const d=a.createRef(),p=a.createElement(a.Fragment,null,a.createElement("label",null,a.createElement("input",Object.assign({},c,{ref:d,type:o,onChange:i}))),t);return l?a.createElement(Zn,Object.assign({triggerRef:d,content:l},s),p):p};ar.displayName="SelectColumn";const or=(t,{rowIndex:n,columnIndex:i,rowData:o,column:r,property:s,tooltip:c})=>{const{extraParams:{onSelect:d,selectVariant:p,allRowsSelected:u,isHeaderSelectDisabled:f}}=r,m={rowIndex:n,columnIndex:i,column:r,property:s};if(o&&o.hasOwnProperty("parent")&&!o.showSelect&&!o.fullWidth)return{component:"td",isVisible:!0};const h=void 0!==n?n:-1;const b=Object.assign(Object.assign(Object.assign({},-1!==h?{checked:o&&!!o.selected,"aria-label":`Select row ${n}`}:{checked:u,"aria-label":"Select all rows"}),o&&(o.disableCheckbox||o.disableSelection)&&{disabled:!0,className:Ln}),!o&&f&&{disabled:!0});let g="check-all";return-1!==h&&p===e.RowSelectVariant.checkbox?g=`checkrow${n}`:-1!==h&&(g="radioGroup"),{className:l(Fi.tableCheck),component:-1!==h?"td":"th",isVisible:!o||!o.fullWidth,children:a.createElement(ar,Object.assign({},b,{selectVariant:p,onSelect:function(e){const t=void 0===n?e.currentTarget.checked:o&&!o.selected;d&&d(e,t,h,o,m)},name:g,tooltip:c}),t)}},rr=Sn({name:"LongArrowAltUpIcon",height:512,width:256,svgPath:"M88 166.059V468c0 6.627 5.373 12 12 12h56c6.627 0 12-5.373 12-12V166.059h46.059c21.382 0 32.09-25.851 16.971-40.971l-86.059-86.059c-9.373-9.373-24.569-9.373-33.941 0l-86.059 86.059c-15.119 15.119-4.411 40.971 16.971 40.971H88z",yOffset:0,xOffset:0}),lr=Sn({name:"LongArrowAltDownIcon",height:512,width:256,svgPath:"M168 345.941V44c0-6.627-5.373-12-12-12h-56c-6.627 0-12 5.373-12 12v301.941H41.941c-21.382 0-32.09 25.851-16.971 40.971l86.059 86.059c9.373 9.373 24.569 9.373 33.941 0l86.059-86.059c15.119-15.119 4.411-40.971-16.971-40.971H168z",yOffset:0,xOffset:0}),sr=Sn({name:"ArrowsAltVIcon",height:512,width:256,svgPath:"M214.059 377.941H168V134.059h46.059c21.382 0 32.09-25.851 16.971-40.971L144.971 7.029c-9.373-9.373-24.568-9.373-33.941 0L24.971 93.088c-15.119 15.119-4.411 40.971 16.971 40.971H88v243.882H41.941c-21.382 0-32.09 25.851-16.971 40.971l86.059 86.059c9.373 9.373 24.568 9.373 33.941 0l86.059-86.059c15.12-15.119 4.412-40.971-16.97-40.971z",yOffset:0,xOffset:0});var cr;e.SortByDirection=void 0,(cr=e.SortByDirection||(e.SortByDirection={})).asc="asc",cr.desc="desc";const dr=t=>{var{children:n=null,className:i="",isSortedBy:o=!1,onSort:s=null,sortDirection:c="",type:d="button",tooltip:p,tooltipProps:u,tooltipHasDefaultBehavior:f}=t,m=r(t,["children","className","isSortedBy","onSort","sortDirection","type","tooltip","tooltipProps","tooltipHasDefaultBehavior"]);let h;const[b,g]=a.useState(!1);return h=o?c===e.SortByDirection.asc?rr:lr:sr,a.createElement("button",Object.assign({},m,{type:d,className:l(i,Fi.tableButton),onClick:e=>s&&s(e),onFocus:()=>g(!0),onBlur:()=>g(!1)}),a.createElement("div",{className:l(i,Fi.tableButtonContent)},a.createElement(Ko,{tooltip:p,tooltipProps:u,tooltipHasDefaultBehavior:f,focused:b},n),a.createElement("span",{className:l(Fi.tableSortIndicator)},a.createElement(h,null))))};dr.displayName="SortColumn";const pr=e=>()=>ur(a.createElement(Hn,{"aria-hidden":!0}),{columnIndex:e.columnIndex,className:Fi.modifiers.favorite,ariaLabel:"Sort favorites",column:{extraParams:{sortBy:e.sortBy,onSort:null==e?void 0:e.onSort}},tooltip:e.tooltip,tooltipProps:e.tooltipProps,tooltipHasDefaultBehavior:!0}),ur=(t,{columnIndex:n,column:i,property:o,className:r,ariaLabel:s,tooltip:c,tooltipProps:d,tooltipHasDefaultBehavior:p})=>{const{extraParams:{sortBy:u,onSort:f}}=i,m={columnIndex:n,column:i,property:o},h=u&&n===u.index;return{className:l(Fi.tableSort,h&&Fi.modifiers.selected,r),"aria-sort":h?`${u.direction}ending`:"none",children:a.createElement(dr,{isSortedBy:h,sortDirection:h?u.direction:"",onSort:function(t){let i;i=h?u.direction===e.SortByDirection.asc?e.SortByDirection.desc:e.SortByDirection.asc:u.defaultDirection?u.defaultDirection:e.SortByDirection.asc,f&&f(t,n,i,m)},"aria-label":s,tooltip:c,tooltipProps:d,tooltipHasDefaultBehavior:p},t)}},fr=(e,t,n,i)=>"function"==typeof e?e(n,i):t,mr=(e,t,n)=>(i,{rowData:o,column:r,rowIndex:s,columnIndex:c,column:{extraParams:{actionsToggle:d,actionsPopperProps:p}},property:u})=>{const f={rowIndex:s,columnIndex:c,column:r,property:u},m=fr(t,e,o,f),h=fr(n,o&&o.disableActions,o,f),b=m&&m.length>0?{children:a.createElement(Li,{items:m,isDisabled:h,rowData:o,extraData:f,actionsToggle:d,popperProps:p},i)}:{};return Object.assign({className:l(Fi.tableAction),style:{paddingRight:0},isVisible:!0},b)},hr=(e,t)=>t.filter((t=>t.name===e))[0].errorText,br=e=>e.toUpperCase().replace("-","").replace("_",""),gr=e=>e.replace(/([-_][a-z])/gi,br);function vr(e){return e[0].toUpperCase()+e.substring(1)}const yr=e=>()=>({className:l(Fi.modifiers["number"==typeof e?`width_${e}`:`width${vr(e)}`])}),xr=Sn({name:"PencilAltIcon",height:512,width:512,svgPath:"M497.9 142.1l-46.1 46.1c-4.7 4.7-12.3 4.7-17 0l-111-111c-4.7-4.7-4.7-12.3 0-17l46.1-46.1c18.7-18.7 49.1-18.7 67.9 0l60.1 60.1c18.8 18.7 18.8 49.1 0 67.9zM284.2 99.8L21.6 362.4.4 483.9c-2.9 16.4 11.4 30.6 27.8 27.8l121.5-21.3 262.6-262.6c4.7-4.7 4.7-12.3 0-17l-111-111c-4.8-4.7-12.4-4.7-17.1 0zM124.1 339.9c-5.5-5.5-5.5-14.3 0-19.8l154-154c5.5-5.5 14.3-5.5 19.8 0s5.5 14.3 0 19.8l-154 154c-5.5 5.5-14.3 5.5-19.8 0zM88 424h48v36.3l-64.5 11.3-31.1-31.1L51.7 376H88v48z",yOffset:0,xOffset:0}),wr=e=>{var{onClick:t=null,className:n="",editing:i,valid:o,saveAriaLabel:s,cancelAriaLabel:c,editAriaLabel:d}=e,p=r(e,["onClick","className","editing","valid","saveAriaLabel","cancelAriaLabel","editAriaLabel"]);return a.createElement(a.Fragment,null,a.createElement("div",{className:l(co,fo.iconGroup,"pf-m-action-group")},a.createElement("div",{className:l(so)},a.createElement(xi,Object.assign({"aria-label":s},p,{onClick:e=>t(e,"save"),variant:"plain"}),a.createElement(Tn,null))),a.createElement("div",{className:l(so)},a.createElement(xi,Object.assign({"aria-label":c},p,{onClick:e=>t(e,"cancel"),variant:"plain"}),a.createElement(_a,null)))),a.createElement("div",{className:l(so,fo.enableEditable)},a.createElement(xi,Object.assign({"aria-label":d},p,{onClick:e=>t(e,"edit"),variant:"plain"}),a.createElement(xr,null))))};wr.displayName="EditColumn";const Er=(e,{rowIndex:t,rowData:n,column:i})=>{const{extraParams:{onRowEdit:o}}=i;function r(e,t){let n;switch(t){case"cancel":n=`Cancel row edits for row ${e}`;break;case"save":n=`Save row edits for row ${e}`;break;default:n=`Place row ${e} in edit mode`}return n}return{className:Fi.tableInlineEditAction,component:"td",isVisible:!0,children:a.createElement(wr,{saveAriaLabel:n&&n.rowSaveBtnAriaLabel&&n.rowSaveBtnAriaLabel(t)||r(t,"save"),cancelAriaLabel:n&&n.rowCancelBtnAriaLabel&&n.rowCancelBtnAriaLabel(t)||r(t,"cancel"),editAriaLabel:n&&n.rowEditBtnAriaLabel&&n.rowEditBtnAriaLabel(t)||r(t,"edit"),valid:n&&n.isValid,editing:n&&n.isEditable,onClick:(e,i)=>{let a={};"save"===i&&(a=n.rowEditValidationRules&&n.rowEditValidationRules.reduce(((e,t)=>{const i=n.cells.filter((e=>{const n=""===e.props.editableValue?"":e.props.editableValue||e.props.value;let i=!1;return i=Array.isArray(n)&&n.length?n.reduce(((e,n)=>!0===e||!t.validator(n)),i):Array.isArray(n)&&!n.length?!t.validator(""):!t.validator(n),i&&(e.props.isValid=!1),i}));return i.length&&(e[t.name]=i.map((e=>e.props.name))),e}),{})),o(e,i,n&&n.isEditable,t,a)}})}},Or=(e,{rowIndex:t,columnIndex:n,rowData:i,column:o,property:r})=>{const{extraParams:{onCollapse:s,rowLabeledBy:c="simple-node",expandId:d="expand-toggle",allRowsExpanded:p,collapseAllAriaLabel:u}}=o,f={rowIndex:t,columnIndex:n,column:o,property:r},m=void 0!==t?t:-1,h=Object.assign({},-1!==m?{isOpen:null==i?void 0:i.isOpen,"aria-labelledby":`${c}${m} ${d}${m}`}:{isOpen:p,"aria-label":u||"Expand all rows"});return{className:(void 0!==(null==i?void 0:i.isOpen)||-1===m)&&l(Fi.tableToggle),isVisible:!(null==i?void 0:i.fullWidth),children:a.createElement(Ai,Object.assign({"aria-labelledby":`${c}${m} ${d}${m}`,onToggle:function(e){const n=i?!i.isOpen:!p;s&&s(e,t,n,i,f)},id:d+m},h),e)}},Cr=(e,t=0)=>(n,{columnIndex:i,rowIndex:a,rowData:o,column:{extraParams:{contentId:r="expanded-content"}}})=>n&&o.hasOwnProperty("parent")&&{colSpan:o.cells&&1!==o.cells.length?1:e+(o.fullWidth?t+1:0),id:r+a+(i?"-"+i:""),className:o.noPadding&&l(Fi.modifiers.noPadding)},Nr=(e,{rowIndex:t,columnIndex:n,rowData:i,column:o,property:r})=>{if(!e)return null;const{title:s,props:c}=e,{extraParams:{onExpand:d,expandId:p="expand-toggle"}}=o,u={rowIndex:t,columnIndex:n,column:o,property:r};return{className:l(Fi.tableCompoundExpansionToggle,c.isOpen&&Fi.modifiers.expanded),children:void 0!==c.isOpen&&a.createElement("button",{type:"button",className:l(Fi.tableButton),onClick:function(e){d&&d(e,t,n,c.isOpen,i,u)},"aria-expanded":c.isOpen,"aria-controls":c.ariaControls,id:`${p}-${t}-${n}`},a.createElement(Ko,null,s))}},Sr=["hidden","hiddenOnSm","hiddenOnMd","hiddenOnLg","hiddenOnXl","hiddenOn_2xl","visibleOnSm","visibleOnMd","visibleOnLg","visibleOnXl","visibleOn_2xl"].filter((e=>Fi.modifiers[e])).reduce(((e,t)=>(e[t.replace("_2xl","2Xl")]=Fi.modifiers[t],e)),{}),kr=(...e)=>()=>({className:l(...e)}),Rr=({tooltip:e,tooltipProps:t,popover:n,popoverProps:i,className:o,ariaLabel:r})=>l=>({className:Fi.modifiers.help,children:e?a.createElement(Go,{variant:"tooltip",info:e,tooltipProps:t,ariaLabel:r,className:o},l):a.createElement(Go,{variant:"popover",info:n,popoverProps:i,ariaLabel:r,className:o},l)}),Ir=e=>{var{className:t="",onFavorite:n,isFavorited:i,rowIndex:o}=e,l=r(e,["className","onFavorite","isFavorited","rowIndex"]);const s=void 0===o?{}:{id:`favorites-button-${o}`,"aria-labelledby":`favorites-button-${o}`};return a.createElement(xi,Object.assign({variant:"plain",className:t,type:"button","aria-label":i?"Starred":"Not starred",onClick:n},s,l),a.createElement(Hn,{"aria-hidden":!0}))};Ir.displayName="FavoritesCell";const Tr=(e,{rowIndex:t,columnIndex:n,rowData:i,column:o,property:r})=>{const{extraParams:{onFavorite:s}}=o,c={rowIndex:t,columnIndex:n,column:o,property:r};if(i&&i.hasOwnProperty("parent")&&!i.fullWidth)return{component:"td",isVisible:!0};const d=i.favoritesProps||{};return{className:l(Fi.tableFavorite,i&&i.favorited&&Fi.modifiers.favorited),isVisible:!i||!i.fullWidth,children:a.createElement(Ir,Object.assign({rowIndex:t,onFavorite:function(e){s&&s(e,i&&!i.favorited,t,i,c)},isFavorited:i&&i.favorited},d))}},_r=Sn({name:"EllipsisHIcon",height:512,width:512,svgPath:"M328 256c0 39.8-32.2 72-72 72s-72-32.2-72-72 32.2-72 72-72 72 32.2 72 72zm104-72c-39.8 0-72 32.2-72 72s32.2 72 72 72 72-32.2 72-72-32.2-72-72-72zm-352 0c-39.8 0-72 32.2-72 72s32.2 72 72 72 72-32.2 72-72-32.2-72-72-72z",yOffset:0,xOffset:0}),Dr=(e,t,n)=>(i,{rowIndex:o,rowData:r})=>{const{isExpanded:s,isDetailsExpanded:c,"aria-level":d,"aria-setsize":p,toggleAriaLabel:u,checkAriaLabel:f,showDetailsAriaLabel:m,isChecked:h,checkboxId:b,icon:g}=r.props,v=i.title||i,y=a.createElement("div",{className:l(nr),key:"tree-view-text"},g&&a.createElement("span",{className:l(er),key:"tree-view-text-icon"},g),a.createElement("span",{className:Fi.tableText,key:"table-text"},v));return{component:"th",className:ir,children:void 0!==d?a.createElement("div",{className:l(tr)},p>0&&a.createElement("span",{className:l(Jo),key:"table-toggle"},a.createElement(xi,{variant:"plain",onClick:t=>e&&e(t,o,v,r),className:l(s&&Fi.modifiers.expanded),"aria-expanded":s,"aria-label":u||`${s?"Collapse":"Expand"} row ${o}`},a.createElement("div",{className:l(Zo)},a.createElement(ji,{"aria-hidden":"true"})))),!!t&&a.createElement("span",{className:l(Yo),key:"table-check"},a.createElement("label",{htmlFor:b||`checkbox_${o}`},a.createElement(Bn,{id:b||`checkbox_${o}`,"aria-label":f||`Row ${o} checkbox`,isChecked:h,onChange:(e,n)=>((e,n)=>{t(n,e,o,v,r)})(n,e)}))),y,!!n&&a.createElement("span",{className:l(Qo),key:"view-details-toggle"},a.createElement(xi,{variant:"plain","aria-expanded":c,"aria-label":m||"Show row details",onClick:e=>n&&n(e,o,v,r)},a.createElement("span",{className:`${Fi.table}__details-toggle-icon`},a.createElement(_r,{"aria-hidden":!0}))))):y}},Pr=()=>({component:"td"}),Lr=()=>({scope:"col"}),jr=e=>Object.assign({},e?{}:{scope:""}),Fr=(e,{rowData:t})=>({parentId:t.parent}),Ar=(e,{property:t,rowData:n})=>Object.assign({},n[t]&&n[t].props),Mr=e=>e&&e.hasOwnProperty("title")?e.title:e,Br=({transforms:e,formatters:t,columnTransforms:n,header:i},a)=>Object.assign(Object.assign({},i),{label:a,transforms:[Lr,jr,...e||[],...n||[],...i&&i.hasOwnProperty("transforms")?i.transforms:[]],formatters:[...t||[],...i&&i.hasOwnProperty("formatters")?i.formatters:[]]}),Hr=({cellFormatters:e,cellTransforms:t,columnTransforms:n,cell:i},a)=>Object.assign(Object.assign({},i),{transforms:[...t||[],...n||[],...i&&i.hasOwnProperty("transforms")?i.transforms:[],Ar],formatters:[Mr,...e||[],...i&&i.hasOwnProperty("formatters")?i.formatters:[]]}),Vr=({onSelect:e,canSelectAll:t})=>[...e?[{title:"",transforms:t&&[or]||null,cellTransforms:[or]}]:[]],zr=({onFavorite:e,onSort:t,sortBy:n,canSortFavorites:i,firstUserColumnIndex:a})=>[...e?[{title:"",transforms:t&&i?[Lr,pr({onSort:t,columnIndex:a-1,sortBy:n})]:[Pr],cellTransforms:[Tr]}]:[]],$r=({actions:e,actionResolver:t,areActionsDisabled:n})=>[...t||e?[{title:"",transforms:[Pr],cellTransforms:[mr(e,t,n)]}]:[]],Wr=(e,{onCollapse:t,canCollapseAll:n,firstUserColumnIndex:i})=>[...t?[{title:"",transforms:n&&[Or]||null,cellTransforms:[Or,Cr(e.length,i)]}]:[]],Kr=(e,t)=>Object.assign(Object.assign({},e.hasOwnProperty("title")?e:{title:e}),{cellTransforms:[...e.hasOwnProperty("cellTransforms")?e.cellTransforms:[],t]}),Gr=(e,t)=>t.onCollapse||t.onExpand?e.map((t=>{const n=Kr(t,Fr);return Kr(n,Cr(e.length))})):e,Ur=({onRowEdit:e})=>[...e?[{title:"",cellTransforms:[Er]}]:[]];var qr,Xr="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Yr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}e.TableGridBreakpoint=void 0,(qr=e.TableGridBreakpoint||(e.TableGridBreakpoint={})).none="",qr.grid="grid",qr.gridMd="grid-md",qr.gridLg="grid-lg",qr.gridXl="grid-xl",qr.grid2xl="grid-2xl",e.TableVariant=void 0,(e.TableVariant||(e.TableVariant={})).compact="compact";const Jr=a.createContext({registerSelectableRow:()=>{}}),Zr=t=>{var n,i,{children:o,className:s,variant:c,borders:d=!0,isStickyHeader:p=!1,gridBreakPoint:u=e.TableGridBreakpoint.gridMd,"aria-label":f,role:m="grid",innerRef:h,ouiaId:b,ouiaSafe:g=!0,isTreeTable:v=!1,isNested:y=!1,isStriped:x=!1,isExpandable:w=!1,hasNoInset:E=!1,nestedHeaderColumnSpans:O,selectableRowCaptionText:C}=t,N=r(t,["children","className","variant","borders","isStickyHeader","gridBreakPoint","aria-label","role","innerRef","ouiaId","ouiaSafe","isTreeTable","isNested","isStriped","isExpandable","hasNoInset","nestedHeaderColumnSpans","selectableRowCaptionText"]);const S=a.useRef(null),k=h||S,[R,I]=a.useState(!1),[T,_]=a.useState();a.useEffect((()=>{if(document.addEventListener("keydown",F),k&&k.current&&k.current.classList.contains("pf-m-tree-view")){const t=k.current.querySelector("tbody");t&&((e=Array.from(t.querySelectorAll("button, a, input")))&&e.length>0&&(e.forEach((e=>{e.tabIndex=-1})),e[0].tabIndex=0))}var e;return function(){document.removeEventListener("keydown",F)}}),[k,k.current]),a.useEffect((()=>{_(C?a.createElement("caption",null,C,a.createElement("div",{className:"pf-v5-screen-reader"},"This table has selectable rows. It can be navigated by row using tab, and each row can be selected using space or enter.")):a.createElement("caption",{className:"pf-v5-screen-reader"},"This table has selectable rows. It can be navigated by row using tab, and each row can be selected using space or enter."))}),[C]);const D=Ge("Table",b,g),P=null===(n=qo)||void 0===n?void 0:n[gr(u||"").replace(/-?2xl/,"_2xl")],L=`treeView${u.charAt(0).toUpperCase()+u.slice(1)}`,j=null===(i=Xo)||void 0===i?void 0:i[gr(L||"").replace(/-?2xl/,"_2xl")],F=e=>{if(y||!(k&&k.current&&k.current.classList.contains(Xo.treeView))||k&&k.current!==e.target.closest(`.${Fi.table}:not(.pf-m-nested)`))return;const t=document.activeElement,n=e.key,i=Array.from(k.current.querySelectorAll("tbody tr")).filter((e=>!e.classList.contains("pf-m-disabled")&&!e.hidden));"Space"!==n&&"Enter"!==n||(t.click(),e.preventDefault());fn(e,i,(e=>e===t.closest("tr")),(e=>e.querySelectorAll("button:not(:disabled), input:not(:disabled), a:not(:disabled)")[0]),["button","input","a"],void 0,!1,!0,!1)};return a.createElement(Jr.Provider,{value:{registerSelectableRow:()=>{!R&&I(!0)}}},a.createElement("table",Object.assign({"aria-label":f,role:m,className:l(s,Fi.table,v?j:P,Fi.modifiers[c],!d&&Fi.modifiers.noBorderRows,p&&Fi.modifiers.stickyHeader,v&&Xo.treeView,x&&Fi.modifiers.striped,w&&Fi.modifiers.expandable,E&&Xo.noInset,y&&"pf-m-nested"),ref:k},v&&{role:"treegrid"},D,N),R&&T,o))},Qr=a.forwardRef(((e,t)=>a.createElement(Zr,Object.assign({},e,{innerRef:t}))));Qr.displayName="Table";const el=e=>{var{children:t,className:n,isExpanded:i,isEditable:o,isHidden:s=!1,isClickable:c=!1,isRowSelected:d=!1,isStriped:p=!1,isBorderRow:u=!1,isControlRow:f=!1,innerRef:m,ouiaId:h,ouiaSafe:b=!0,resetOffset:g=!1,onRowClick:v,isSelectable:y,"aria-label":x}=e,w=r(e,["children","className","isExpanded","isEditable","isHidden","isClickable","isRowSelected","isStriped","isBorderRow","isControlRow","innerRef","ouiaId","ouiaSafe","resetOffset","onRowClick","isSelectable","aria-label"]);const E=Ge("TableRow",h,b),[O,C]=a.useState("");let N=null;v&&(N=e=>{"Enter"!==e.key&&" "!==e.key||(v(e),e.preventDefault())});const S=s||void 0!==i&&!i,{registerSelectableRow:k}=a.useContext(Jr);a.useEffect((()=>{y&&!S?(C(""+(d?"Row selected":"")),k()):C(void 0)}),[d,y,k,S]);const R=x||O;return a.createElement(a.Fragment,null,a.createElement("tr",Object.assign({className:l(Fi.tableTr,n,void 0!==i&&Fi.tableExpandableRow,i&&Fi.modifiers.expanded,o&&fo.inlineEditable,c&&Fi.modifiers.clickable,d&&Fi.modifiers.selected,p&&Fi.modifiers.striped,u&&Fi.modifiers.borderRow,f&&Fi.tableControlRow,g&&Fi.modifiers.firstCellOffsetReset),hidden:S},c&&{tabIndex:0},{"aria-label":R,ref:m},v&&{onClick:v,onKeyDown:N},E,w),t))},tl=a.forwardRef(((e,t)=>a.createElement(el,Object.assign({},e,{innerRef:t}))));tl.displayName="Tr";class nl extends a.Component{constructor(e){super(e),this.handleScroll=e=>{this._unmounted||this.props.onScroll(e)},this.handleResize=e=>{this._unmounted||this.props.onResize(e)},e.onScroll&&(this.handleScroll=Ie(this.handleScroll,100)),e.onResize&&(this.handleResize=Ie(this.handleResize,100))}componentDidMount(){this._unmounted=!1,Fe&&(this.props.onScroll&&window.addEventListener("scroll",this.handleScroll),this.props.onResize&&window.addEventListener("resize",this.handleResize))}componentWillUnmount(){this._unmounted=!0,Fe&&(this.props.onScroll&&window.removeEventListener("scroll",this.handleScroll),this.props.onResize&&window.removeEventListener("resize",this.handleResize))}render(){const e=this.props,{onScroll:t,onResize:n,row:{isExpanded:i,isEditable:o,isClickable:l,isRowSelected:s},rowProps:c,trRef:d,className:p,ouiaId:u}=e,f=r(e,["onScroll","onResize","row","rowProps","trRef","className","ouiaId"]);return a.createElement(tl,Object.assign({},f,{ref:d,isExpanded:i,isEditable:o,className:p,ouiaId:u,isClickable:l,isRowSelected:s}))}}nl.displayName="RowWrapper",nl.defaultProps={className:"",row:{isOpen:void 0,isExpanded:void 0,isHeightAuto:void 0,isEditable:void 0},rowProps:null};const il=e=>{var{className:t,rowProps:n,row:i}=e,o=r(e,["className","rowProps","row"]);const{"aria-level":s,"aria-posinset":c,"aria-setsize":d,isExpanded:p,isDetailsExpanded:u,isHidden:f}=i.props;return a.createElement(tl,Object.assign({"aria-level":s,"aria-posinset":c,"aria-setsize":d,"aria-expanded":!!p,isHidden:f,className:l(t,p&&Fi.modifiers.expanded,u&&Xo.treeViewDetailsExpanded)},o))};il.displayName="TreeRowWrapper";const al=e=>{var{children:t,className:n,noWrap:i=!1,innerRef:o,hasNestedHeader:s}=e,c=r(e,["children","className","noWrap","innerRef","hasNestedHeader"]);return a.createElement("thead",Object.assign({className:l(Fi.tableThead,n,i&&Fi.modifiers.nowrap,s&&Fi.modifiers.nestedColumnHeader),ref:o},c),t)},ol=a.forwardRef(((e,t)=>a.createElement(al,Object.assign({},e,{innerRef:t}))));ol.displayName="Thead";const rl=e=>{var{children:t,className:n,isExpanded:i,innerRef:o,isEvenStriped:s=!1,isOddStriped:c=!1}=e,d=r(e,["children","className","isExpanded","innerRef","isEvenStriped","isOddStriped"]);return a.createElement("tbody",Object.assign({role:"rowgroup",className:l(Fi.tableTbody,n,i&&Fi.modifiers.expanded,c&&Fi.modifiers.striped,s&&Fi.modifiers.stripedEven),ref:o},d),t)},ll=a.forwardRef(((e,t)=>a.createElement(rl,Object.assign({},e,{innerRef:t}))));ll.displayName="Tbody";var sl={borderRight:"pf-m-border-right",borderLeft:"pf-m-border-left",right:"pf-m-right",inlineEnd:"pf-m-inline-end",left:"pf-m-left",inlineStart:"pf-m-inline-start"},cl="pf-v5-c-scroll-inner-wrapper",dl="pf-v5-c-scroll-outer-wrapper",pl="pf-v5-c-table__sticky-cell";var ul=function(){this.__data__=[],this.size=0};var fl=function(e,t){return e===t||e!=e&&t!=t},ml=fl;var hl=function(e,t){for(var n=e.length;n--;)if(ml(e[n][0],t))return n;return-1},bl=hl,gl=Array.prototype.splice;var vl=hl;var yl=hl;var xl=hl;var wl=ul,El=function(e){var t=this.__data__,n=bl(t,e);return!(n<0)&&(n==t.length-1?t.pop():gl.call(t,n,1),--this.size,!0)},Ol=function(e){var t=this.__data__,n=vl(t,e);return n<0?void 0:t[n][1]},Cl=function(e){return yl(this.__data__,e)>-1},Nl=function(e,t){var n=this.__data__,i=xl(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this};function Sl(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}Sl.prototype.clear=wl,Sl.prototype.delete=El,Sl.prototype.get=Ol,Sl.prototype.has=Cl,Sl.prototype.set=Nl;var kl=Sl,Rl=kl;var Il=function(){this.__data__=new Rl,this.size=0};var Tl=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var _l=function(e){return this.__data__.get(e)};var Dl=function(e){return this.__data__.has(e)},Pl="object"==typeof Xr&&Xr&&Xr.Object===Object&&Xr,Ll=Pl,jl="object"==typeof self&&self&&self.Object===Object&&self,Fl=Ll||jl||Function("return this")(),Al=Fl.Symbol,Ml=Al,Bl=Object.prototype,Hl=Bl.hasOwnProperty,Vl=Bl.toString,zl=Ml?Ml.toStringTag:void 0;var $l=function(e){var t=Hl.call(e,zl),n=e[zl];try{e[zl]=void 0;var i=!0}catch(e){}var a=Vl.call(e);return i&&(t?e[zl]=n:delete e[zl]),a},Wl=Object.prototype.toString;var Kl=$l,Gl=function(e){return Wl.call(e)},Ul=Al?Al.toStringTag:void 0;var ql=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Ul&&Ul in Object(e)?Kl(e):Gl(e)};var Xl=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},Yl=ql,Jl=Xl;var Zl=function(e){if(!Jl(e))return!1;var t=Yl(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},Ql=Fl["__core-js_shared__"],es=function(){var e=/[^.]+$/.exec(Ql&&Ql.keys&&Ql.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var ts=function(e){return!!es&&es in e},ns=Function.prototype.toString;var is=Zl,as=ts,os=Xl,rs=function(e){if(null!=e){try{return ns.call(e)}catch(e){}try{return e+""}catch(e){}}return""},ls=/^\[object .+?Constructor\]$/,ss=Function.prototype,cs=Object.prototype,ds=ss.toString,ps=cs.hasOwnProperty,us=RegExp("^"+ds.call(ps).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var fs=function(e){return!(!os(e)||as(e))&&(is(e)?us:ls).test(rs(e))},ms=function(e,t){return null==e?void 0:e[t]};var hs=function(e,t){var n=ms(e,t);return fs(n)?n:void 0},bs=hs(Fl,"Map"),gs=hs(Object,"create"),vs=gs;var ys=function(){this.__data__=vs?vs(null):{},this.size=0};var xs=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ws=gs,Es=Object.prototype.hasOwnProperty;var Os=function(e){var t=this.__data__;if(ws){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Es.call(t,e)?t[e]:void 0},Cs=gs,Ns=Object.prototype.hasOwnProperty;var Ss=gs;var ks=ys,Rs=xs,Is=Os,Ts=function(e){var t=this.__data__;return Cs?void 0!==t[e]:Ns.call(t,e)},_s=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Ss&&void 0===t?"__lodash_hash_undefined__":t,this};function Ds(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}Ds.prototype.clear=ks,Ds.prototype.delete=Rs,Ds.prototype.get=Is,Ds.prototype.has=Ts,Ds.prototype.set=_s;var Ps=Ds,Ls=kl,js=bs;var Fs=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var As=function(e,t){var n=e.__data__;return Fs(t)?n["string"==typeof t?"string":"hash"]:n.map},Ms=As;var Bs=As;var Hs=As;var Vs=As;var zs=function(){this.size=0,this.__data__={hash:new Ps,map:new(js||Ls),string:new Ps}},$s=function(e){var t=Ms(this,e).delete(e);return this.size-=t?1:0,t},Ws=function(e){return Bs(this,e).get(e)},Ks=function(e){return Hs(this,e).has(e)},Gs=function(e,t){var n=Vs(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this};function Us(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}Us.prototype.clear=zs,Us.prototype.delete=$s,Us.prototype.get=Ws,Us.prototype.has=Ks,Us.prototype.set=Gs;var qs=kl,Xs=bs,Ys=Us;var Js=kl,Zs=Il,Qs=Tl,ec=_l,tc=Dl,nc=function(e,t){var n=this.__data__;if(n instanceof qs){var i=n.__data__;if(!Xs||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new Ys(i)}return n.set(e,t),this.size=n.size,this};function ic(e){var t=this.__data__=new Js(e);this.size=t.size}ic.prototype.clear=Zs,ic.prototype.delete=Qs,ic.prototype.get=ec,ic.prototype.has=tc,ic.prototype.set=nc;var ac=ic,oc=hs,rc=function(){try{var e=oc(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),lc=rc;var sc=function(e,t,n){"__proto__"==t&&lc?lc(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},cc=sc,dc=fl;var pc=function(e,t,n){(void 0!==n&&!dc(e[t],n)||void 0===n&&!(t in e))&&cc(e,t,n)};var uc=function(e){return function(t,n,i){for(var a=-1,o=Object(t),r=i(t),l=r.length;l--;){var s=r[e?l:++a];if(!1===n(o[s],s,o))break}return t}}(),fc={exports:{}};!function(e,t){var n=Fl,i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,o=a&&a.exports===i?n.Buffer:void 0,r=o?o.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,i=r?r(n):new e.constructor(n);return e.copy(i),i}}(fc,fc.exports);var mc=fc.exports,hc=Fl.Uint8Array;var bc=function(e){var t=new e.constructor(e.byteLength);return new hc(t).set(new hc(e)),t};var gc=function(e,t){var n=t?bc(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};var vc=function(e,t){var n=-1,i=e.length;for(t||(t=Array(i));++n<i;)t[n]=e[n];return t},yc=Xl,xc=Object.create,wc=function(){function e(){}return function(t){if(!yc(t))return{};if(xc)return xc(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();var Ec=function(e,t){return function(n){return e(t(n))}}(Object.getPrototypeOf,Object),Oc=Object.prototype;var Cc=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Oc)},Nc=wc,Sc=Ec,kc=Cc;var Rc=function(e){return"function"!=typeof e.constructor||kc(e)?{}:Nc(Sc(e))};var Ic=function(e){return null!=e&&"object"==typeof e},Tc=ql,_c=Ic;var Dc=function(e){return _c(e)&&"[object Arguments]"==Tc(e)},Pc=Ic,Lc=Object.prototype,jc=Lc.hasOwnProperty,Fc=Lc.propertyIsEnumerable,Ac=Dc(function(){return arguments}())?Dc:function(e){return Pc(e)&&jc.call(e,"callee")&&!Fc.call(e,"callee")},Mc=Ac,Bc=Array.isArray;var Hc=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},Vc=Zl,zc=Hc;var $c=function(e){return null!=e&&zc(e.length)&&!Vc(e)},Wc=$c,Kc=Ic;var Gc=function(e){return Kc(e)&&Wc(e)},Uc={exports:{}};var qc=function(){return!1};!function(e,t){var n=Fl,i=qc,a=t&&!t.nodeType&&t,o=a&&e&&!e.nodeType&&e,r=o&&o.exports===a?n.Buffer:void 0,l=(r?r.isBuffer:void 0)||i;e.exports=l}(Uc,Uc.exports);var Xc=Uc.exports,Yc=ql,Jc=Ec,Zc=Ic,Qc=Function.prototype,ed=Object.prototype,td=Qc.toString,nd=ed.hasOwnProperty,id=td.call(Object);var ad=function(e){if(!Zc(e)||"[object Object]"!=Yc(e))return!1;var t=Jc(e);if(null===t)return!0;var n=nd.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&td.call(n)==id},od=ql,rd=Hc,ld=Ic,sd={};sd["[object Float32Array]"]=sd["[object Float64Array]"]=sd["[object Int8Array]"]=sd["[object Int16Array]"]=sd["[object Int32Array]"]=sd["[object Uint8Array]"]=sd["[object Uint8ClampedArray]"]=sd["[object Uint16Array]"]=sd["[object Uint32Array]"]=!0,sd["[object Arguments]"]=sd["[object Array]"]=sd["[object ArrayBuffer]"]=sd["[object Boolean]"]=sd["[object DataView]"]=sd["[object Date]"]=sd["[object Error]"]=sd["[object Function]"]=sd["[object Map]"]=sd["[object Number]"]=sd["[object Object]"]=sd["[object RegExp]"]=sd["[object Set]"]=sd["[object String]"]=sd["[object WeakMap]"]=!1;var cd=function(e){return ld(e)&&rd(e.length)&&!!sd[od(e)]};var dd=function(e){return function(t){return e(t)}},pd={exports:{}};!function(e,t){var n=Pl,i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,o=a&&a.exports===i&&n.process,r=function(){try{var e=a&&a.require&&a.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=r}(pd,pd.exports);var ud=pd.exports,fd=cd,md=dd,hd=ud&&ud.isTypedArray,bd=hd?md(hd):fd;var gd=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},vd=sc,yd=fl,xd=Object.prototype.hasOwnProperty;var wd=function(e,t,n){var i=e[t];xd.call(e,t)&&yd(i,n)&&(void 0!==n||t in e)||vd(e,t,n)},Ed=sc;var Od=function(e,t,n,i){var a=!n;n||(n={});for(var o=-1,r=t.length;++o<r;){var l=t[o],s=i?i(n[l],e[l],l,n,e):void 0;void 0===s&&(s=e[l]),a?Ed(n,l,s):wd(n,l,s)}return n};var Cd=/^(?:0|[1-9]\d*)$/;var Nd=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&Cd.test(e))&&e>-1&&e%1==0&&e<t},Sd=function(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i},kd=Mc,Rd=Bc,Id=Xc,Td=Nd,_d=bd,Dd=Object.prototype.hasOwnProperty;var Pd=function(e,t){var n=Rd(e),i=!n&&kd(e),a=!n&&!i&&Id(e),o=!n&&!i&&!a&&_d(e),r=n||i||a||o,l=r?Sd(e.length,String):[],s=l.length;for(var c in e)!t&&!Dd.call(e,c)||r&&("length"==c||a&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Td(c,s))||l.push(c);return l};var Ld=Xl,jd=Cc,Fd=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},Ad=Object.prototype.hasOwnProperty;var Md=Pd,Bd=function(e){if(!Ld(e))return Fd(e);var t=jd(e),n=[];for(var i in e)("constructor"!=i||!t&&Ad.call(e,i))&&n.push(i);return n},Hd=$c;var Vd=function(e){return Hd(e)?Md(e,!0):Bd(e)},zd=Od,$d=Vd;var Wd=pc,Kd=mc,Gd=gc,Ud=vc,qd=Rc,Xd=Mc,Yd=Bc,Jd=Gc,Zd=Xc,Qd=Zl,ep=Xl,tp=ad,np=bd,ip=gd,ap=function(e){return zd(e,$d(e))};var op=ac,rp=pc,lp=uc,sp=function(e,t,n,i,a,o,r){var l=ip(e,n),s=ip(t,n),c=r.get(s);if(c)Wd(e,n,c);else{var d=o?o(l,s,n+"",e,t,r):void 0,p=void 0===d;if(p){var u=Yd(s),f=!u&&Zd(s),m=!u&&!f&&np(s);d=s,u||f||m?Yd(l)?d=l:Jd(l)?d=Ud(l):f?(p=!1,d=Kd(s,!0)):m?(p=!1,d=Gd(s,!0)):d=[]:tp(s)||Xd(s)?(d=l,Xd(l)?d=ap(l):ep(l)&&!Qd(l)||(d=qd(s))):p=!1}p&&(r.set(s,d),a(d,s,i,o,r),r.delete(s)),Wd(e,n,d)}},cp=Xl,dp=Vd,pp=gd;var up=function e(t,n,i,a,o){t!==n&&lp(n,(function(r,l){if(o||(o=new op),cp(r))sp(t,n,l,i,e,a,o);else{var s=a?a(pp(t,l),r,l+"",t,n,o):void 0;void 0===s&&(s=r),rp(t,l,s)}}),dp)};var fp=function(e){return e};var mp=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)},hp=Math.max;var bp=function(e,t,n){return t=hp(void 0===t?e.length-1:t,0),function(){for(var i=arguments,a=-1,o=hp(i.length-t,0),r=Array(o);++a<o;)r[a]=i[t+a];a=-1;for(var l=Array(t+1);++a<t;)l[a]=i[a];return l[t]=n(r),mp(e,this,l)}};var gp=function(e){return function(){return e}},vp=rc,yp=vp?function(e,t){return vp(e,"toString",{configurable:!0,enumerable:!1,value:gp(t),writable:!0})}:fp,xp=Date.now;var wp=function(e){var t=0,n=0;return function(){var i=xp(),a=16-(i-n);if(n=i,a>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}},Ep=wp(yp),Op=fp,Cp=bp,Np=Ep;var Sp=function(e,t){return Np(Cp(e,t,Op),e+"")},kp=fl,Rp=$c,Ip=Nd,Tp=Xl;var _p=Sp,Dp=function(e,t,n){if(!Tp(n))return!1;var i=typeof t;return!!("number"==i?Rp(n)&&Ip(t,n.length):"string"==i&&t in n)&&kp(n[t],e)};var Pp=up,Lp=Yr(function(e){return _p((function(t,n){var i=-1,a=n.length,o=a>1?n[a-1]:void 0,r=a>2?n[2]:void 0;for(o=e.length>3&&"function"==typeof o?(a--,o):void 0,r&&Dp(n[0],n[1],r)&&(o=a<3?void 0:o,a=1),t=Object(t);++i<a;){var l=n[i];l&&e(t,l,i,o)}return t}))}((function(e,t,n,i){Pp(e,t,n,i)})));function jp(...e){const t=e[0],n=e.slice(1);return n.length?Lp(Lp({},t),...n,((e,t,n)=>"children"===n?e&&t?a.cloneElement(e,{children:t}):Object.assign(Object.assign({},t),e):"className"===n?l(e,t):void 0)):Lp({},t)}const Fp="--pf-v5-c-table__sticky-cell--MinWidth",Ap="--pf-v5-c-table__sticky-cell--Left",Mp="--pf-v5-c-table__sticky-cell--Right",Bp=e=>{var{children:t,className:n,component:i="th",dataLabel:o,scope:s="col",textCenter:c=!1,sort:d=null,modifier:p,select:u=null,expand:f=null,tooltip:m="",tooltipProps:h,onMouseEnter:b=(()=>{}),width:g,visibility:v,innerRef:y,info:x,isStickyColumn:w=!1,hasRightBorder:E=!1,hasLeftBorder:O=!1,stickyMinWidth:C="120px",stickyLeftOffset:N,stickyRightOffset:S,isSubheader:k=!1,screenReaderText:R,"aria-label":I}=e,T=r(e,["children","className","component","dataLabel","scope","textCenter","sort","modifier","select","expand","tooltip","tooltipProps","onMouseEnter","width","visibility","innerRef","info","isStickyColumn","hasRightBorder","hasLeftBorder","stickyMinWidth","stickyLeftOffset","stickyRightOffset","isSubheader","screenReaderText","aria-label"]);t||R||I||console.warn("Th: Table headers must have an accessible name. If the Th is intended to be visually empty, pass in screenReaderText. If the Th contains only non-text, interactive content such as a checkbox or expand toggle, pass in an aria-label.");const[_,D]=a.useState(!1),[P,L]=a.useState(!1),j=y||a.createRef(),F=e=>{e.target.offsetWidth<e.target.scrollWidth?!_&&D(!0):_&&D(!1),b(e)};let A=null;d&&(A=d.isFavorites?pr({onSort:null==d?void 0:d.onSort,columnIndex:d.columnIndex,sortBy:d.sortBy,tooltip:m,tooltipProps:h})():ur(t,{columnIndex:d.columnIndex,column:{extraParams:{sortBy:d.sortBy,onSort:null==d?void 0:d.onSort}},tooltip:m,tooltipProps:h}));const M=u?or(t,{rowData:{selected:u.isSelected,disableSelection:null==u?void 0:u.isDisabled,props:null==u?void 0:u.props},column:{extraParams:{onSelect:null==u?void 0:u.onSelect,selectVariant:"checkbox",allRowsSelected:u.isSelected,isHeaderSelectDisabled:!!u.isHeaderSelectDisabled}},tooltip:m,tooltipProps:h}):null,B=f?Or(t,{column:{extraParams:{onCollapse:null==f?void 0:f.onToggle,allRowsExpanded:!f.areAllExpanded,collapseAllAriaLabel:""}}}):null,H=g?yr(g)():null,V=v?kr(...v.map((e=>Sr[e])))():null;let z=(null==A?void 0:A.children)||(null==M?void 0:M.children)||(null==B?void 0:B.children)||t,$=null;x&&($=Rr(x)(z),z=$.children);const W=jp(A,M,B,H,V,$),{children:K=null,isVisible:G=null,className:U="",component:q=i}=W,X=r(W,["children","isVisible","className","component"]);a.useEffect((()=>{L(j.current.offsetWidth<j.current.scrollWidth)}),[j]);const Y=a.createElement(q,Object.assign({tabIndex:d||u||!P?-1:0,onFocus:null!==m?F:b,onBlur:()=>D(!1),"data-label":o,onMouseEnter:null!==m?F:b,scope:"th"===i?s:null,ref:j,"aria-label":I,className:l(Fi.tableTh,n,c&&Fi.modifiers.center,k&&Fi.tableSubhead,w&&pl,E&&sl.borderRight,O&&sl.borderLeft,p&&Fi.modifiers[p],U)},X,T,w&&{style:Object.assign({[Fp]:C||void 0,[Ap]:N||0,[Mp]:S||0},T.style)}),z||R&&a.createElement("span",{className:"pf-v5-screen-reader"},R));return null!==m&&(""!==m||"string"==typeof z)&&!(A||M)&&_?a.createElement(a.Fragment,null,Y,a.createElement(Zn,Object.assign({triggerRef:j,content:m||""===m&&t,isVisible:!0},h))):Y},Hp=a.forwardRef(((e,t)=>a.createElement(Bp,Object.assign({},e,{innerRef:t}))));Hp.displayName="Th";const Vp=e=>{var{children:t,className:n,isActionCell:i=!1,component:o="td",dataLabel:s,textCenter:c=!1,modifier:d,select:p=null,actions:u=null,expand:f=null,treeRow:m=null,compoundExpand:h=null,noPadding:b,width:g,visibility:v,innerRef:y,favorites:x=null,draggableRow:w=null,tooltip:E="",onMouseEnter:O=(()=>{}),isStickyColumn:C=!1,hasRightBorder:N=!1,hasLeftBorder:S=!1,stickyMinWidth:k="120px",stickyLeftOffset:R,stickyRightOffset:I}=e,T=r(e,["children","className","isActionCell","component","dataLabel","textCenter","modifier","select","actions","expand","treeRow","compoundExpand","noPadding","width","visibility","innerRef","favorites","draggableRow","tooltip","onMouseEnter","isStickyColumn","hasRightBorder","hasLeftBorder","stickyMinWidth","stickyLeftOffset","stickyRightOffset"]);const[_,D]=a.useState(!1),[P,L]=a.useState(!1),j=y||a.createRef(),F=e=>{e.target.offsetWidth<e.target.scrollWidth?!_&&D(!0):_&&D(!1),O(e)},A=p?or(t,{rowIndex:p.rowIndex,rowData:{selected:p.isSelected,disableSelection:null==p?void 0:p.isDisabled,props:null==p?void 0:p.props},column:{extraParams:{onSelect:null==p?void 0:p.onSelect,selectVariant:p.variant||"checkbox"}}}):null,M=x?Tr(0,{rowIndex:null==x?void 0:x.rowIndex,rowData:{favorited:x.isFavorited,favoritesProps:null==x?void 0:x.props},column:{extraParams:{onFavorite:null==x?void 0:x.onFavorite}}}):null,B=null!==w?((e,{rowData:t})=>{const{id:n}=t;return{className:"",children:a.createElement(Bi,{id:n})}})(0,{rowData:{id:w.id}}):null,H=u?mr(u.items,null,null):null,V=jp(A,H?H(null,{rowIndex:null==u?void 0:u.rowIndex,rowData:{disableActions:null==u?void 0:u.isDisabled},column:{extraParams:{dropdownPosition:null==u?void 0:u.dropdownPosition,dropdownDirection:null==u?void 0:u.dropdownDirection,menuAppendTo:null==u?void 0:u.menuAppendTo,actionsToggle:null==u?void 0:u.actionsToggle}}}):null,null!==f?Or(null,{rowIndex:f.rowIndex,columnIndex:null==f?void 0:f.columnIndex,rowData:{isOpen:f.isExpanded},column:{extraParams:{onCollapse:null==f?void 0:f.onToggle,expandId:null==f?void 0:f.expandId}}}):null,null!==h?Nr({title:t,props:{isOpen:h.isExpanded}},{rowIndex:null==h?void 0:h.rowIndex,columnIndex:null==h?void 0:h.columnIndex,column:{extraParams:{onExpand:null==h?void 0:h.onToggle,expandId:null==h?void 0:h.expandId}}}):null,g?yr(g)():null,v?kr(...v.map((e=>Sr[e])))():null,M,null!==m?Dr(m.onCollapse,m.onCheckChange,m.onToggleRowDetails)({title:t},{rowIndex:m.rowIndex,rowData:{props:m.props}}):null,B),{isVisible:z=null,children:$=null,className:W="",component:K=o}=V,G=r(V,["isVisible","children","className","component"]),U=n&&n.includes(ir)||W&&W.includes(ir);a.useEffect((()=>{L(j.current.offsetWidth<j.current.scrollWidth)}),[j]);const q=a.createElement(K,Object.assign({tabIndex:!p&&P||"truncate"===d?0:-1},!U&&{"data-label":s},{onFocus:null!==E?F:O,onBlur:()=>D(!1),onMouseEnter:null!==E?F:O,className:l(Fi.tableTd,n,i&&Fi.tableAction,c&&Fi.modifiers.center,b&&Fi.modifiers.noPadding,C&&pl,N&&sl.borderRight,S&&sl.borderLeft,Fi.modifiers[d],B&&Fi.tableDraggable,W),ref:j},G,T,C&&{style:Object.assign({[Fp]:k||void 0,[Ap]:R||0,[Mp]:I||0},T.style)}),$||t);return null!==E&&(""!==E||"string"==typeof t)&&_?a.createElement(a.Fragment,null,q,a.createElement(Zn,{triggerRef:j,content:E||""===E&&t,isVisible:!0})):q},zp=a.forwardRef(((e,t)=>a.createElement(Vp,Object.assign({},e,{innerRef:t}))));zp.displayName="Td";const $p=e=>{var{children:t,className:n}=e,i=r(e,["children","className"]);return a.createElement("caption",Object.assign({className:l(Fi.tableCaption,n)},i),t)};$p.displayName="Caption";const Wp=e=>{var{children:t,className:n}=e,i=r(e,["children","className"]);return a.createElement("div",Object.assign({className:l(n,dl)},i),t)};Wp.displayName="OuterScrollContainer";const Kp=e=>{var{children:t,className:n}=e,i=r(e,["children","className"]);return a.createElement("div",Object.assign({className:l(n,cl)},i),t)};Kp.displayName="InnerScrollContainer",e.ActionsColumn=Li,e.Caption=$p,e.CollapseColumn=Ai,e.DraggableCell=Bi,e.EditableSelectInputCell=mo,e.EditableTextCell=ho,e.ExpandableRowContent=bo,e.FavoritesCell=Ir,e.HeaderCellInfoWrapper=Go,e.InnerScrollContainer=Kp,e.OuterScrollContainer=Wp,e.RowWrapper=nl,e.SelectColumn=ar,e.SortColumn=dr,e.Table=Qr,e.TableContext=Jr,e.TableText=Ko,e.Tbody=ll,e.Td=zp,e.Th=Hp,e.Thead=ol,e.Tr=tl,e.TreeRowWrapper=il,e.Visibility=Sr,e.applyCellEdits=(e,t)=>(e.cells.forEach((e=>{delete e.props.errorText;const n=void 0!==e.props.value&&null!==e.props.value,i=void 0!==e.props.editableValue&&null!==e.props.editableValue;n&&!i&&(e.props.editableValue=e.props.value),e.props&&n&&i&&("save"===t&&(e.props.value=e.props.editableValue,e.props.isValid=!0,delete e.props.errorText),delete e.props.editableValue)})),e.isEditable=!e.isEditable,e.isValid=!0,e),e.breakWord=()=>({className:Fi.modifiers.breakWord}),e.calculateColumns=(e,t)=>e&&[...Wr(e,t),...Vr(t),...zr(t),...Gr(e,t),...Ur(t),...$r(t)].map(((e,n)=>Object.assign({},((e,t,n,...i)=>{const a=e.hasOwnProperty("title")?e.title:e;let o=`column-${n}`;return e.hasOwnProperty("dataLabel")?o=e.dataLabel:"string"==typeof a&&(o=a),{property:"string"==typeof a&&a.toLowerCase().trim().replace(/\s/g,"-")||`column-${n}`,extraParams:t,data:e.data,header:Br(e,a),cell:Hr(e),props:Object.assign(Object.assign({"data-label":o,"data-key":n},e.hasOwnProperty("props")?e.props:{}),i)}})(e,t,n)))),e.cancelCellEdits=e=>(e.cells.forEach((e=>{delete e.props.errorText,delete e.props.editableValue,e.props.isValid=!0,e.props.selected&&(e.props.selected=e.props.value)})),e.isEditable=!e.isEditable,e.isValid=!0,e),e.capitalize=vr,e.cellActions=mr,e.cellWidth=yr,e.classNames=kr,e.collapsible=Or,e.compoundExpand=Nr,e.defaultTitle=Mr,e.editable=Er,e.emptyCol=jr,e.emptyTD=Pr,e.expandable=(e,{rowData:t})=>t&&t.hasOwnProperty("parent")?a.createElement(bo,null,e):e,e.expandedRow=Cr,e.favoritable=Tr,e.fitContent=()=>({className:Fi.modifiers.fitContent}),e.getErrorTextByValidator=hr,e.headerCol=(e="simple-node")=>(t,{rowIndex:n}={})=>{const i="object"==typeof t?t.title:t;return{component:"th",children:a.createElement("div",{id:`${e}${n}`},i)}},e.info=Rr,e.isRowExpanded=(e,t)=>{if(void 0!==e.parent)return e.hasOwnProperty("compoundParent")?((e,t,n)=>{for(const i of n){if(!n[e].hasOwnProperty("parent"))return n[e].cells[t].props.isOpen;e=n[e].parent}return!1})(e.parent,e.compoundParent,t):((e,t)=>{for(const n of t){if(!t[e].hasOwnProperty("parent"))return t[e].isOpen;e=t[e].parent}return!1})(e.parent,t)&&t[e.parent].isOpen},e.mapOpenedRows=(e,t)=>e.reduce(((e,n,i)=>{if(n.hasOwnProperty("parent")){e.length>0&&e[e.length-1]&&(e[e.length-1].rows=[...e[e.length-1].rows,t[i]],n.hasOwnProperty("compoundParent")&&(e[e.length-1].isOpen=e[e.length-1].rows.some((e=>e.props.rowData.cells.some((e=>e.props&&e.props.isOpen))))))}else e=[...e,Object.assign(Object.assign({},n),{rows:[t[i]]})];return e}),[]),e.mapProps=Ar,e.nowrap=()=>({className:Fi.modifiers.nowrap}),e.parentId=Fr,e.scopeColTransformer=Lr,e.selectable=or,e.sortable=ur,e.sortableFavorites=pr,e.textCenter=()=>({textCenter:!0}),e.toCamel=gr,e.treeRow=Dr,e.truncate=()=>({className:Fi.modifiers.truncate}),e.validateCellEdits=(e,t,n,i="Validation requires unique name property for row cells")=>(e.isValid=!Object.keys(n).length,e.cells.forEach((a=>{delete a.props.errorText;const o=void 0!==a.props.value&&null!==a.props.value,r=void 0!==a.props.editableValue&&null!==a.props.editableValue;if(a.props&&o&&r&&"save"===t){const t=Object.keys(n).filter((e=>n[e].includes(a.props.name))).map((t=>hr(t,e.rowEditValidationRules)));t.length?(a.props.errorText=a.props.name?t.join(", "):i,void 0===a.props.name&&console.warn("Row edit validation reporting requires cell definitions to have a unique name property.")):(delete a.props.errorText,a.props.isValid=!0)}})),e),e.wrappable=()=>({className:Fi.modifiers.wrap})}));
|
|
10
|
+
function fe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function me(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fe(Object(n),!0).forEach((function(t){he(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function he(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var be=function(e,t){if(e.length>0){var n=e[e.length-1];n!==t&&n.pause()}var i=e.indexOf(t);-1===i||e.splice(i,1),e.push(t)},ge=function(e,t){var n=e.indexOf(t);-1!==n&&e.splice(n,1),e.length>0&&e[e.length-1].unpause()},ve=function(e){return"Tab"===(null==e?void 0:e.key)||9===(null==e?void 0:e.keyCode)},ye=function(e){return ve(e)&&!e.shiftKey},xe=function(e){return ve(e)&&e.shiftKey},we=function(e){return setTimeout(e,0)},Ee=function(e,t){var n=-1;return e.every((function(e,i){return!t(e)||(n=i,!1)})),n},Oe=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return"function"==typeof e?e.apply(void 0,n):e},Ce=function(e){return e.target.shadowRoot&&"function"==typeof e.composedPath?e.composedPath()[0]:e.target},Ne=[],Se=function(e,t){var n,i=(null==t?void 0:t.document)||document,a=(null==t?void 0:t.trapStack)||Ne,o=me({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:ye,isKeyBackward:xe},t),r={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},l=function(e,t,n){return e&&void 0!==e[t]?e[t]:o[n||t]},s=function(e,t){var n="function"==typeof(null==t?void 0:t.composedPath)?t.composedPath():void 0;return r.containerGroups.findIndex((function(t){var i=t.container,a=t.tabbableNodes;return i.contains(e)||(null==n?void 0:n.includes(i))||a.find((function(t){return t===e}))}))},c=function(e){var t=o[e];if("function"==typeof t){for(var n=arguments.length,a=new Array(n>1?n-1:0),r=1;r<n;r++)a[r-1]=arguments[r];t=t.apply(void 0,a)}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 l=t;if("string"==typeof t&&!(l=i.querySelector(t)))throw new Error("`".concat(e,"` as selector refers to no known node"));return l},d=function(){var e=c("initialFocus");if(!1===e)return!1;if(void 0===e||!ue(e,o.tabbableOptions))if(s(i.activeElement)>=0)e=i.activeElement;else{var t=r.tabbableGroups[0];e=t&&t.firstTabbableNode||c("fallbackFocus")}if(!e)throw new Error("Your focus-trap needs to have at least one focusable element");return e},p=function(){if(r.containerGroups=r.containers.map((function(e){var t=function(e,t){var n;return n=(t=t||{}).getShadowRoot?Z([e],t.includeContainer,{filter:le.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:se}):J(e,t.includeContainer,le.bind(null,t)),ce(n)}(e,o.tabbableOptions),n=function(e,t){return(t=t||{}).getShadowRoot?Z([e],t.includeContainer,{filter:re.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):J(e,t.includeContainer,re.bind(null,t))}(e,o.tabbableOptions),i=t.length>0?t[0]:void 0,a=t.length>0?t[t.length-1]:void 0,r=n.find((function(e){return de(e)})),l=n.slice().reverse().find((function(e){return de(e)})),s=!!t.find((function(e){return ee(e)>0}));return{container:e,tabbableNodes:t,focusableNodes:n,posTabIndexesFound:s,firstTabbableNode:i,lastTabbableNode:a,firstDomTabbableNode:r,lastDomTabbableNode:l,nextTabbableNode:function(e){var i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a=t.indexOf(e);return a<0?i?n.slice(n.indexOf(e)+1).find((function(e){return de(e)})):n.slice(0,n.indexOf(e)).reverse().find((function(e){return de(e)})):t[a+(i?1:-1)]}}})),r.tabbableGroups=r.containerGroups.filter((function(e){return e.tabbableNodes.length>0})),r.tabbableGroups.length<=0&&!c("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(r.containerGroups.find((function(e){return e.posTabIndexesFound}))&&r.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},u=function e(t){var n=t.activeElement;if(n)return n.shadowRoot&&null!==n.shadowRoot.activeElement?e(n.shadowRoot):n},f=function e(t){!1!==t&&t!==u(document)&&(t&&t.focus?(t.focus({preventScroll:!!o.preventScroll}),r.mostRecentlyFocusedNode=t,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select}(t)&&t.select()):e(d()))},m=function(e){var t=c("setReturnFocus",e);return t||!1!==t&&e},h=function(e){var t=e.target,n=e.event,i=e.isBackward,a=void 0!==i&&i;t=t||Ce(n),p();var l=null;if(r.tabbableGroups.length>0){var d=s(t,n),u=d>=0?r.containerGroups[d]:void 0;if(d<0)l=a?r.tabbableGroups[r.tabbableGroups.length-1].lastTabbableNode:r.tabbableGroups[0].firstTabbableNode;else if(a){var f=Ee(r.tabbableGroups,(function(e){var n=e.firstTabbableNode;return t===n}));if(f<0&&(u.container===t||ue(t,o.tabbableOptions)&&!de(t,o.tabbableOptions)&&!u.nextTabbableNode(t,!1))&&(f=d),f>=0){var m=0===f?r.tabbableGroups.length-1:f-1,h=r.tabbableGroups[m];l=ee(t)>=0?h.lastTabbableNode:h.lastDomTabbableNode}else ve(n)||(l=u.nextTabbableNode(t,!1))}else{var b=Ee(r.tabbableGroups,(function(e){var n=e.lastTabbableNode;return t===n}));if(b<0&&(u.container===t||ue(t,o.tabbableOptions)&&!de(t,o.tabbableOptions)&&!u.nextTabbableNode(t))&&(b=d),b>=0){var g=b===r.tabbableGroups.length-1?0:b+1,v=r.tabbableGroups[g];l=ee(t)>=0?v.firstTabbableNode:v.firstDomTabbableNode}else ve(n)||(l=u.nextTabbableNode(t))}}else l=c("fallbackFocus");return l},b=function(e){var t=Ce(e);s(t,e)>=0||(Oe(o.clickOutsideDeactivates,e)?n.deactivate({returnFocus:o.returnFocusOnDeactivate}):Oe(o.allowOutsideClick,e)||e.preventDefault())},g=function(e){var t=Ce(e),n=s(t,e)>=0;if(n||t instanceof Document)n&&(r.mostRecentlyFocusedNode=t);else{var i;e.stopImmediatePropagation();var a=!0;if(r.mostRecentlyFocusedNode)if(ee(r.mostRecentlyFocusedNode)>0){var l=s(r.mostRecentlyFocusedNode),c=r.containerGroups[l].tabbableNodes;if(c.length>0){var p=c.findIndex((function(e){return e===r.mostRecentlyFocusedNode}));p>=0&&(o.isKeyForward(r.recentNavEvent)?p+1<c.length&&(i=c[p+1],a=!1):p-1>=0&&(i=c[p-1],a=!1))}}else r.containerGroups.some((function(e){return e.tabbableNodes.some((function(e){return ee(e)>0}))}))||(a=!1);else a=!1;a&&(i=h({target:r.mostRecentlyFocusedNode,isBackward:o.isKeyBackward(r.recentNavEvent)})),f(i||(r.mostRecentlyFocusedNode||d()))}r.recentNavEvent=void 0},v=function(e){if(!(t=e,"Escape"!==(null==t?void 0:t.key)&&"Esc"!==(null==t?void 0:t.key)&&27!==(null==t?void 0:t.keyCode)||!1===Oe(o.escapeDeactivates,e)))return e.preventDefault(),void n.deactivate();var t;(o.isKeyForward(e)||o.isKeyBackward(e))&&function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];r.recentNavEvent=e;var n=h({event:e,isBackward:t});n&&(ve(e)&&e.preventDefault(),f(n))}(e,o.isKeyBackward(e))},y=function(e){var t=Ce(e);s(t,e)>=0||Oe(o.clickOutsideDeactivates,e)||Oe(o.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},x=function(){if(r.active)return be(a,n),r.delayInitialFocusTimer=o.delayInitialFocus?we((function(){f(d())})):f(d()),i.addEventListener("focusin",g,!0),i.addEventListener("mousedown",b,{capture:!0,passive:!1}),i.addEventListener("touchstart",b,{capture:!0,passive:!1}),i.addEventListener("click",y,{capture:!0,passive:!1}),i.addEventListener("keydown",v,{capture:!0,passive:!1}),n},w=function(){if(r.active)return i.removeEventListener("focusin",g,!0),i.removeEventListener("mousedown",b,!0),i.removeEventListener("touchstart",b,!0),i.removeEventListener("click",y,!0),i.removeEventListener("keydown",v,!0),n},E="undefined"!=typeof window&&"MutationObserver"in window?new MutationObserver((function(e){e.some((function(e){return Array.from(e.removedNodes).some((function(e){return e===r.mostRecentlyFocusedNode}))}))&&f(d())})):void 0,O=function(){E&&(E.disconnect(),r.active&&!r.paused&&r.containers.map((function(e){E.observe(e,{subtree:!0,childList:!0})})))};return(n={get active(){return r.active},get paused(){return r.paused},activate:function(e){if(r.active)return this;var t=l(e,"onActivate"),n=l(e,"onPostActivate"),a=l(e,"checkCanFocusTrap");a||p(),r.active=!0,r.paused=!1,r.nodeFocusedBeforeActivation=i.activeElement,null==t||t();var o=function(){a&&p(),x(),O(),null==n||n()};return a?(a(r.containers.concat()).then(o,o),this):(o(),this)},deactivate:function(e){if(!r.active)return this;var t=me({onDeactivate:o.onDeactivate,onPostDeactivate:o.onPostDeactivate,checkCanReturnFocus:o.checkCanReturnFocus},e);clearTimeout(r.delayInitialFocusTimer),r.delayInitialFocusTimer=void 0,w(),r.active=!1,r.paused=!1,O(),ge(a,n);var i=l(t,"onDeactivate"),s=l(t,"onPostDeactivate"),c=l(t,"checkCanReturnFocus"),d=l(t,"returnFocus","returnFocusOnDeactivate");null==i||i();var p=function(){we((function(){d&&f(m(r.nodeFocusedBeforeActivation)),null==s||s()}))};return d&&c?(c(m(r.nodeFocusedBeforeActivation)).then(p,p),this):(p(),this)},pause:function(e){if(r.paused||!r.active)return this;var t=l(e,"onPause"),n=l(e,"onPostPause");return r.paused=!0,null==t||t(),w(),O(),null==n||n(),this},unpause:function(e){if(!r.paused||!r.active)return this;var t=l(e,"onUnpause"),n=l(e,"onPostUnpause");return r.paused=!1,null==t||t(),p(),x(),O(),null==n||n(),this},updateContainerElements:function(e){var t=[].concat(e).filter(Boolean);return r.containers=t.map((function(e){return"string"==typeof e?i.querySelector(e):e})),r.active&&p(),O(),this}}).updateContainerElements(e),n};const ke=t.forwardRef((function(e,n){var{active:i=!0,paused:a=!1,focusTrapOptions:o={},preventScrollOnDeactivate:l=!1}=e,s=r(e,["active","paused","focusTrapOptions","preventScrollOnDeactivate"]);const c=t.useRef(null);t.useImperativeHandle(n,(()=>c.current));const d=t.useRef(null);t.useEffect((()=>{const e=Se(c.current,Object.assign(Object.assign({},o),{returnFocusOnDeactivate:!1}));return d.current=e,()=>{e.deactivate()}}),[]),t.useEffect((()=>{const e=d.current;i?null==e||e.activate():null==e||e.deactivate()}),[i]),t.useEffect((()=>{const e=d.current;a?null==e||e.pause():null==e||e.unpause()}),[a]);const p=t.useRef("undefined"!=typeof document?document.activeElement:null);return function(e){const n=t.useRef(e);n.current=e,t.useEffect((()=>()=>{n.current()}),[])}((()=>{!1!==o.returnFocusOnDeactivate&&p.current instanceof HTMLElement&&p.current.focus({preventScroll:l})})),t.createElement("div",Object.assign({ref:c},s))}));function Re(e="pf"){return`${e}-${(new Date).getTime()+Math.random().toString(36).slice(2)}`}function Ie(e,t){let n;return(...i)=>{clearTimeout(n),n=setTimeout((()=>e.apply(this,i)),t)}}function Te(e,t,n,i,a,r=!1){if(!Array.isArray(a))return;const l=i.filter((e=>e))[0].constructor===Array;let s=e,c=t;if("up"===n?s=0===e?a.length-1:e-1:"down"===n?s=e===a.length-1?0:e+1:"left"===n?c=0===t?i[e].length-1:t-1:"right"===n&&(c=t===i[e].length-1?0:t+1),null===i[s]||void 0===i[s]||l&&(null===i[s][c]||void 0===i[s][c]))Te(s,c,n,i,a,r);else if(r){i[s].focus&&i[s].focus();o.findDOMNode(i[s]).focus()}else"tab"!==n&&(l?i[s][c].focus():i[s].focus())}function _e(e,t){const n=e.current.querySelectorAll(t);return Array.prototype.filter.call(n,(function(e){return e.tabIndex>="0"}))}function De(e,t,n){let i;return i="up"===t?0===e?n.length-1:e-1:e===n.length-1?0:e+1,void 0===n[i]||null===n[i][0]?De(i,t,n):i}ke.displayName="FocusTrap";const Pe=(e,t,n="",i,a)=>e?Object.entries(e||{}).map((([e,t])=>`${n}${t}${"default"!==e?`-on-${e}`:""}`)).map(je).map((e=>e.replace(/-?(\dxl)/gi,((e,t)=>`_${t}`)))).map((e=>t.modifiers[e])).filter(Boolean).join(" "):"",Le=e=>e.toUpperCase().replace("-","").replace("_",""),je=e=>e.replace(/([-_][a-z])/gi,Le),Fe=!("undefined"==typeof window||!window.document||!window.document.createElement),Ae=(e,t)=>{const n=getComputedStyle(t),i=document.createElement("canvas").getContext("2d");return i.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 i;return i=n.fontStretch in t?t[n.fontStretch]:"normal",e=n.fontStyle+" "+n.fontVariant+" "+n.fontWeight+" "+i+" "+n.fontSize+"/"+n.lineHeight+" "+n.fontFamily,e})(),i.measureText(e).width},Me=(e,t)=>{const n=(e=>{const t=getComputedStyle(e);let n=e.clientWidth,i=e.clientHeight;return i-=parseFloat(t.paddingTop)+parseFloat(t.paddingBottom),n-=parseFloat(t.paddingLeft)+parseFloat(t.paddingRight),{height:i,width:n}})(e).width;let i=t;if(Ae(t,e)>n){for(;Ae(`...${i}`,e)>n;)i=i.substring(1);e.value?e.value=`...${i}`:e.innerText=`...${i}`}else e.value?e.value=t:e.innerText=t},Be=e=>{e.forEach((e=>{e.current&&clearTimeout(e.current)}))};let He=0;class Ve extends a.Component{constructor(){super(...arguments),this.uniqueElement=this.props.isRandom?"undefined"!=typeof crypto&&crypto.randomUUID?crypto.randomUUID():Re():He++,this.id=`${this.props.prefix}${this.uniqueElement}`}render(){return this.props.children(this.id)}}Ve.displayName="GenerateId",Ve.defaultProps={prefix:"pf-random-id-",isRandom:!1};let ze=0;const $e="OUIA-Generated-",We={};function Ke(e,t,n=!0){return{"data-ouia-component-type":`PF5/${e}`,"data-ouia-safe":n,"data-ouia-component-id":t}}const Ge=(e,t,n=!0,i)=>({"data-ouia-component-type":`PF5/${e}`,"data-ouia-safe":n,"data-ouia-component-id":Ue(e,t,i)}),Ue=(e,n,i)=>{const a=t.useMemo((()=>qe(e,i)),[e,i]);return null!=n?n:a};function qe(e,t){try{let n;return n="undefined"!=typeof window?`${window.location.href}-${e}-${t||""}`:`${e}-${t||""}`,We[n]||(We[n]=0),`${$e}${e}-${t?`${t}-`:""}${++We[n]}`}catch(n){return`${$e}${e}-${t?`${t}-`:""}${++ze}`}}function Xe(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 Ye(e){if("[object Window]"!==e.toString()){const t=e.ownerDocument;return t?t.defaultView:window}return e}function Je(e){const t=Ye(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Ze(e){return e instanceof Ye(e).Element||e instanceof Element}function Qe(e){return e instanceof Ye(e).HTMLElement||e instanceof HTMLElement}function et(e){return e?(e.nodeName||"").toLowerCase():null}function tt(e){return(Ze(e)?e.ownerDocument:e.document).documentElement}function nt(e){return Xe(tt(e)).left+Je(e).scrollLeft}function it(e){return Ye(e).getComputedStyle(e)}function at(e){const{overflow:t,overflowX:n,overflowY:i}=it(e);return/auto|scroll|overlay|hidden/.test(t+i+n)}function ot(e,t,n=!1){const i=tt(t),a=Xe(e),o=Qe(t);let r={scrollLeft:0,scrollTop:0},l={x:0,y:0};var s,c;return(o||!o&&!n)&&(("body"!==et(t)||at(i))&&(r=(s=t)!==Ye(s)&&Qe(s)?{scrollLeft:(c=s).scrollLeft,scrollTop:c.scrollTop}:Je(s)),Qe(t)?(l=Xe(t),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=nt(i))),{x:a.left+r.scrollLeft-l.x,y:a.top+r.scrollTop-l.y,width:a.width,height:a.height}}function rt(e){return{x:e.offsetLeft,y:e.offsetTop,width:e.offsetWidth,height:e.offsetHeight}}function lt(e){return"html"===et(e)?e:e.assignedSlot||e.parentNode||e.host||tt(e)}function st(e){return["html","body","#document"].indexOf(et(e))>=0?e.ownerDocument.body:Qe(e)&&at(e)?e:st(lt(e))}function ct(e,t=[]){const n=st(e),i="body"===et(n),a=Ye(n),o=i?[a].concat(a.visualViewport||[],at(n)?n:[]):n,r=t.concat(o);return i?r:r.concat(ct(lt(o)))}function dt(e){return["table","td","th"].indexOf(et(e))>=0}function pt(e){if(!Qe(e)||"fixed"===it(e).position)return null;const t=e.offsetParent;if(t){const e=tt(t);if("body"===et(t)&&"static"===it(t).position&&"static"!==it(e).position)return e}return t}function ut(e){const t=Ye(e);let n=pt(e);for(;n&&dt(n)&&"static"===it(n).position;)n=pt(n);return n&&"body"===et(n)&&"static"===it(n).position?t:n||function(e){let t=lt(e);for(;Qe(t)&&["html","body"].indexOf(et(t))<0;){const e=it(t);if("none"!==e.transform||"none"!==e.perspective||e.willChange&&"auto"!==e.willChange)return t;t=t.parentNode}return null}(e)||t}const ft="top",mt="bottom",ht="right",bt="left",gt="auto",vt=[ft,mt,ht,bt],yt="start",xt="end",wt="clippingParents",Et="viewport",Ot="popper",Ct="reference",Nt=vt.reduce(((e,t)=>e.concat([`${t}-${yt}`,`${t}-${xt}`])),[]),St=[...vt,gt].reduce(((e,t)=>e.concat([t,`${t}-${yt}`,`${t}-${xt}`])),[]),kt=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Rt(e){const t=new Map,n=new Set,i=[];function a(e){n.add(e.name);[...e.requires||[],...e.requiresIfExists||[]].forEach((e=>{if(!n.has(e)){const n=t.get(e);n&&a(n)}})),i.push(e)}return e.forEach((e=>{t.set(e.name,e)})),e.forEach((e=>{n.has(e.name)||a(e)})),i}function It(e){let t;return()=>(t||(t=new Promise((n=>{Promise.resolve().then((()=>{t=void 0,n(e())}))}))),t)}function Tt(e){return e.split("-")[0]}function _t(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 Dt(e){return Object.assign(Object.assign({},e),{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Pt(e,t){return t===Et?Dt(function(e){const t=Ye(e),n=tt(e),i=t.visualViewport;let a=n.clientWidth,o=n.clientHeight,r=0,l=0;return i&&(a=i.width,o=i.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(r=i.offsetLeft,l=i.offsetTop)),{width:a,height:o,x:r+nt(e),y:l}}(e)):Qe(t)?function(e){const t=Xe(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):Dt(function(e){const t=tt(e),n=Je(e),i=e.ownerDocument.body,a=Math.max(t.scrollWidth,t.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=Math.max(t.scrollHeight,t.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0);let r=-n.scrollLeft+nt(e);const l=-n.scrollTop;return"rtl"===it(i||t).direction&&(r+=Math.max(t.clientWidth,i?i.clientWidth:0)-a),{width:a,height:o,x:r,y:l}}(tt(e)))}function Lt(e,t,n){const i="clippingParents"===t?function(e){const t=ct(lt(e)),n=["absolute","fixed"].indexOf(it(e).position)>=0&&Qe(e)?ut(e):e;return Ze(n)?t.filter((e=>Ze(e)&&_t(e,n)&&"body"!==et(e))):[]}(e):[].concat(t),a=[...i,n],o=a[0],r=a.reduce(((t,n)=>{const i=Pt(e,n);return t.top=Math.max(i.top,t.top),t.right=Math.min(i.right,t.right),t.bottom=Math.min(i.bottom,t.bottom),t.left=Math.max(i.left,t.left),t}),Pt(e,o));return r.width=r.right-r.left,r.height=r.bottom-r.top,r.x=r.left,r.y=r.top,r}function jt(e){return e.split("-")[1]}function Ft(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function At({reference:e,element:t,placement:n}){const i=n?Tt(n):null,a=n?jt(n):null,o=e.x+e.width/2-t.width/2,r=e.y+e.height/2-t.height/2;let l;switch(i){case ft:l={x:o,y:e.y-t.height};break;case mt:l={x:o,y:e.y+e.height};break;case ht:l={x:e.x+e.width,y:r};break;case bt:l={x:e.x-t.width,y:r};break;default:l={x:e.x,y:e.y}}const s=i?Ft(i):null;if(null!=s){const n="y"===s?"height":"width";switch(a){case yt:l[s]=Math.floor(l[s])-Math.floor(e[n]/2-t[n]/2);break;case xt:l[s]=Math.floor(l[s])+Math.ceil(e[n]/2-t[n]/2)}}return l}function Mt(e){return Object.assign(Object.assign({},{top:0,right:0,bottom:0,left:0}),e)}function Bt(e,t){return t.reduce(((t,n)=>(t[n]=e,t)),{})}function Ht(e,t={}){const{placement:n=e.placement,boundary:i=wt,rootBoundary:a=Et,elementContext:o=Ot,altBoundary:r=!1,padding:l=0}=t,s=Mt("number"!=typeof l?l:Bt(l,vt)),c=o===Ot?Ct:Ot,d=e.elements.reference,p=e.rects.popper,u=e.elements[r?c:o],f=Lt(Ze(u)?u:u.contextElement||tt(e.elements.popper),i,a),m=Xe(d),h=At({reference:m,element:p,strategy:"absolute",placement:n}),b=Dt(Object.assign(Object.assign({},p),h)),g=o===Ot?b:m,v={top:f.top-g.top+s.top,bottom:g.bottom-f.bottom+s.bottom,left:f.left-g.left+s.left,right:g.right-f.right+s.right},y=e.modifiersData.offset;if(o===Ot&&y){const e=y[n];Object.keys(v).forEach((t=>{const n=[ht,mt].indexOf(t)>=0?1:-1,i=[ft,mt].indexOf(t)>=0?"y":"x";v[t]+=e[i]*n}))}return v}const Vt={placement:"bottom",modifiers:[],strategy:"absolute"};function zt(...e){return!e.some((e=>!(e&&"function"==typeof e.getBoundingClientRect)))}const $t={passive:!0};const Wt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Kt({popper:e,popperRect:t,placement:n,offsets:i,position:a,gpuAcceleration:o,adaptive:r}){let{x:l,y:s}=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}}(i);const c=i.hasOwnProperty("x"),d=i.hasOwnProperty("y");let p=bt,u=ft;const f=window;if(r){let i=ut(e);i===Ye(e)&&(i=tt(e)),n===ft&&(u=mt,s-=i.clientHeight-t.height,s*=o?1:-1),n===bt&&(p=ht,l-=i.clientWidth-t.width,l*=o?1:-1)}const m=Object.assign({position:a},r&&Wt);return o?Object.assign(Object.assign({},m),{[u]:d?"0":"",[p]:c?"0":"",transform:(f.devicePixelRatio||1)<2?`translate(${l}px, ${s}px)`:`translate3d(${l}px, ${s}px, 0)`}):Object.assign(Object.assign({},m),{[u]:d?`${s}px`:"",[p]:c?`${l}px`:"",transform:""})}var Gt={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function({state:e,options:t,name:n}){const{offset:i=[0,0]}=t,a=St.reduce(((t,n)=>(t[n]=function(e,t,n){const i=Tt(e),a=[bt,ft].indexOf(i)>=0?-1:1;let[o,r]="function"==typeof n?n(Object.assign(Object.assign({},t),{placement:e})):n;return o=o||0,r=(r||0)*a,[bt,ht].indexOf(i)>=0?{x:r,y:o}:{x:o,y:r}}(n,e.rects,i),t)),{}),{x:o,y:r}=a[e.placement];null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=o,e.modifiersData.popperOffsets.y+=r),e.modifiersData[n]=a}};const Ut={left:"right",right:"left",bottom:"top",top:"bottom"};function qt(e){return e.replace(/left|right|bottom|top/g,(e=>Ut[e]))}const Xt={start:"end",end:"start"};function Yt(e){return e.replace(/start|end/g,(e=>Xt[e]))}function Jt(e,t={}){const{placement:n,boundary:i,rootBoundary:a,padding:o,flipVariations:r,allowedAutoPlacements:l=St}=t,s=jt(n),c=s?r?Nt:Nt.filter((e=>jt(e)===s)):vt;let d=c.filter((e=>l.indexOf(e)>=0));0===d.length&&(d=c);const p=d.reduce(((t,n)=>(t[n]=Ht(e,{placement:n,boundary:i,rootBoundary:a,padding:o})[Tt(n)],t)),{});return Object.keys(p).sort(((e,t)=>p[e]-p[t]))}var Zt={name:"flip",enabled:!0,phase:"main",fn:function({state:e,options:t,name:n}){if(e.modifiersData[n]._skip)return;const{mainAxis:i=!0,altAxis:a=!0,fallbackPlacements:o,padding:r,boundary:l,rootBoundary:s,altBoundary:c,flipVariations:d=!0,allowedAutoPlacements:p}=t,u=e.options.placement,f=Tt(u),m=[u,...o||(f===u||!d?[qt(u)]:function(e){if(Tt(e)===gt)return[];const t=qt(e);return[Yt(e),t,Yt(t)]}(u))].reduce(((t,n)=>t.concat(Tt(n)===gt?Jt(e,{placement:n,boundary:l,rootBoundary:s,padding:r,flipVariations:d,allowedAutoPlacements:p}):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],o=Tt(n),d=jt(n)===yt,p=[ft,mt].indexOf(o)>=0,u=p?"width":"height",f=Ht(e,{placement:n,boundary:l,rootBoundary:s,altBoundary:c,padding:r});let x=p?d?ht:bt:d?mt:ft;h[u]>b[u]&&(x=qt(x));const w=qt(x),E=[];if(i&&E.push(f[o]<=0),a&&E.push(f[x]<=0,f[w]<=0),E.every((e=>e))){y=n,v=!1;break}g.set(n,E)}if(v){for(let e=d?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 Qt(e,t,n){return Math.max(e,Math.min(t,n))}var en={name:"preventOverflow",enabled:!0,phase:"main",fn:function({state:e,options:t,name:n}){const{mainAxis:i=!0,altAxis:a=!1,boundary:o,rootBoundary:r,altBoundary:l,padding:s,tether:c=!0,tetherOffset:d=0}=t,p=Ht(e,{boundary:o,rootBoundary:r,padding:s,altBoundary:l}),u=Tt(e.placement),f=jt(e.placement),m=!f,h=Ft(u),b="x"===h?"y":"x",g=e.modifiersData.popperOffsets,v=e.rects.reference,y=e.rects.popper,x="function"==typeof d?d(Object.assign(Object.assign({},e.rects),{placement:e.placement})):d,w={x:0,y:0};if(g){if(i){const t="y"===h?ft:bt,n="y"===h?mt:ht,i="y"===h?"height":"width",a=g[h],o=g[h]+p[t],r=g[h]-p[n],l=c?-y[i]/2:0,s=f===yt?v[i]:y[i],d=f===yt?-y[i]:-v[i],u=e.elements.arrow,b=c&&u?rt(u):{width:0,height:0},E=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},O=E[t],C=E[n],N=Qt(0,v[i],b[i]),S=m?v[i]/2-l-N-O-x:s-N-O-x,k=m?-v[i]/2+l+N+C+x:d+N+C+x,R=e.elements.arrow&&ut(e.elements.arrow),I=R?"y"===h?R.clientTop||0:R.clientLeft||0:0,T=e.modifiersData.offset?e.modifiersData.offset[e.placement][h]:0,_=g[h]+S-T-I,D=g[h]+k-T,P=Qt(c?Math.min(o,_):o,a,c?Math.max(r,D):r);g[h]=P,w[h]=P-a}if(a){const e="x"===h?ft:bt,t="x"===h?mt:ht,n=g[b],i=Qt(n+p[e],n,n-p[t]);g[b]=i,w[b]=i-n}e.modifiersData[n]=w}},requiresIfExists:["offset"]};var tn={name:"arrow",enabled:!0,phase:"main",fn:function({state:e,name:t}){const n=e.elements.arrow,i=e.modifiersData.popperOffsets,a=Tt(e.placement),o=Ft(a),r=[bt,ht].indexOf(a)>=0?"height":"width";if(!n||!i)return;const l=e.modifiersData[`${t}#persistent`].padding,s=rt(n),c="y"===o?ft:bt,d="y"===o?mt:ht,p=e.rects.reference[r]+e.rects.reference[o]-i[o]-e.rects.popper[r],u=i[o]-e.rects.reference[o],f=ut(n),m=f?"y"===o?f.clientHeight||0:f.clientWidth||0:0,h=p/2-u/2,b=l[c],g=m-s[r]-l[d],v=m/2-s[r]/2+h,y=Qt(b,v,g),x=o;e.modifiersData[t]={[x]:y,centerOffset:y-v}},effect:function({state:e,options:t,name:n}){let{element:i="[data-popper-arrow]",padding:a=0}=t;null!=i&&("string"!=typeof i||(i=e.elements.popper.querySelector(i),i))&&_t(e.elements.popper,i)&&(e.elements.arrow=i,e.modifiersData[`${n}#persistent`]={padding:Mt("number"!=typeof a?a:Bt(a,vt))})},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function nn(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 an(e){return[ft,ht,mt,bt].some((t=>e[t]>=0))}const on=function(e={}){const{defaultModifiers:t=[],defaultOptions:n=Vt}=e;return function(e,i,a=n){let o={placement:"bottom",orderedModifiers:[],options:Object.assign(Object.assign({},Vt),n),modifiersData:{},elements:{reference:e,popper:i},attributes:{},styles:{}},r=[],l=!1;const s={state:o,setOptions(a){c(),o.options=Object.assign(Object.assign(Object.assign({},n),o.options),a),o.scrollParents={reference:Ze(e)?ct(e):e.contextElement?ct(e.contextElement):[],popper:ct(i)};const l=function(e){const t=Rt(e);return kt.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,...o.options.modifiers]));return o.orderedModifiers=l.filter((e=>e.enabled)),o.orderedModifiers.forEach((({name:e,options:t={},effect:n})=>{if("function"==typeof n){const i=n({state:o,name:e,instance:s,options:t}),a=()=>{};r.push(i||a)}})),s.update()},forceUpdate(){if(l)return;const{reference:e,popper:t}=o.elements;if(zt(e,t)){o.rects={reference:ot(e,ut(t),"fixed"===o.options.strategy),popper:rt(t)},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach((e=>o.modifiersData[e.name]=Object.assign({},e.data)));for(let e=0;e<o.orderedModifiers.length;e++){if(!0===o.reset){o.reset=!1,e=-1;continue}const{fn:t,options:n={},name:i}=o.orderedModifiers[e];"function"==typeof t&&(o=t({state:o,options:n,name:i,instance:s})||o)}}},update:It((()=>new Promise((e=>{s.forceUpdate(),e(o)})))),destroy(){c(),l=!0}};if(!zt(e,i))return s;function c(){r.forEach((e=>e())),r=[]}return s.setOptions(a).then((e=>{!l&&a.onFirstUpdate&&a.onFirstUpdate(e)})),s}}({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:()=>{},effect:function({state:e,instance:t,options:n}){const{scroll:i=!0,resize:a=!0}=n,o=Ye(e.elements.popper),r=[...e.scrollParents.reference,...e.scrollParents.popper];return i&&r.forEach((e=>{e.addEventListener("scroll",t.update,$t)})),a&&o.addEventListener("resize",t.update,$t),()=>{i&&r.forEach((e=>{e.removeEventListener("scroll",t.update,$t)})),a&&o.removeEventListener("resize",t.update,$t)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function({state:e,name:t}){e.modifiersData[t]=At({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:i=!0}=t,a={placement:Tt(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),Kt(Object.assign(Object.assign({},a),{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:i})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign(Object.assign({},e.styles.arrow),Kt(Object.assign(Object.assign({},a),{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]||{},i=e.attributes[t]||{},a=e.elements[t];Qe(a)&&et(a)&&(Object.assign(a.style,n),Object.keys(i).forEach((e=>{const t=i[e];!1===t?a.removeAttribute(e):a.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 i=e.elements[n],a=e.attributes[n]||{},o=Object.keys(e.styles.hasOwnProperty(n)?e.styles[n]:t[n]).reduce(((e,t)=>(e[t]="",e)),{});Qe(i)&&et(i)&&(Object.assign(i.style,o),Object.keys(a).forEach((e=>{i.removeAttribute(e)})))}))}},requires:["computeStyles"]},Gt,Zt,en,tn,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function({state:e,name:t}){const n=e.rects.reference,i=e.rects.popper,a=e.modifiersData.preventOverflow,o=Ht(e,{elementContext:"reference"}),r=Ht(e,{altBoundary:!0}),l=nn(o,n),s=nn(r,i,a),c=an(l),d=an(s);e.modifiersData[t]={referenceClippingOffsets:l,popperEscapeOffsets:s,isReferenceHidden:c,hasPopperEscaped:d},e.attributes.popper=Object.assign(Object.assign({},e.attributes.popper),{"data-popper-reference-hidden":c,"data-popper-escaped":d})}}]}),rn=Fe?a.useLayoutEffect:a.useEffect,ln=e=>e.reduce(((e,[t,n])=>(e[t]=n,e)),{}),sn=[],cn=(e,t,n={})=>{const i=a.useRef(null),o={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||sn},[r,l]=a.useState({styles:{popper:{position:o.strategy,left:"0",top:"0"}},attributes:{}}),s=a.useMemo((()=>({name:"updateState",enabled:!0,phase:"write",fn:({state:e})=>{const t=Object.keys(e.elements);l({styles:ln(t.map((t=>[t,e.styles[t]||{}]))),attributes:ln(t.map((t=>[t,e.attributes[t]])))})},requires:["computeStyles"]})),[]),c=a.useMemo((()=>{const e={onFirstUpdate:o.onFirstUpdate,placement:o.placement,strategy:o.strategy,modifiers:[...o.modifiers,s,{name:"applyStyles",enabled:!1}]};return t=i.current,n=e,JSON.stringify(t)===JSON.stringify(n)?i.current||e:(i.current=e,e);var t,n}),[o.onFirstUpdate,o.placement,o.strategy,o.modifiers,s]),d=a.useRef();return rn((()=>{d&&d.current&&d.current.setOptions(c)}),[c]),rn((()=>{if(null==e||null==t)return;const i=(n.createPopper||on)(e,t,c);return d.current=i,()=>{i.destroy(),d.current=null}}),[e,t,n.createPopper]),{state:d.current?d.current.state:null,styles:r.styles,attributes:r.attributes,update:d.current?d.current.update:null,forceUpdate:d.current?d.current.forceUpdate:null}},dn={left:"right",right:"left",bottom:"top",top:"bottom","top-start":"bottom-end","top-end":"bottom-start","bottom-start":"top-end","bottom-end":"top-start","left-start":"right-end","left-end":"right-start","right-start":"left-end","right-end":"left-start"},pn=e=>`opacity ${e}ms cubic-bezier(.54, 1.5, .38, 1.11)`,un=({trigger:e,popper:t,direction:n="down",position:i="start",placement:r,width:s,minWidth:c="trigger",maxWidth:d,appendTo:p="inline",zIndex:u=9999,isVisible:f=!0,positionModifiers:m,distance:h=0,onMouseEnter:b,onMouseLeave:g,onFocus:v,onBlur:y,onDocumentClick:x,onTriggerClick:w,onTriggerEnter:E,onPopperClick:O,onPopperMouseEnter:C,onPopperMouseLeave:N,onDocumentKeyDown:S,enableFlip:k=!0,flipBehavior:R="flip",triggerRef:I,popperRef:T,animationDuration:_=0,entryDelay:D=0,exitDelay:P=0,onHidden:L=(()=>{}),onHide:j=(()=>{}),onMount:F=(()=>{}),onShow:A=(()=>{}),onShown:M=(()=>{}),preventOverflow:B=!1})=>{var H;const[V,z]=a.useState(null),[$,W]=a.useState(null),[K,G]=a.useState(null),[U,q]=a.useState(null),[X,Y]=a.useState(!1),[J,Z]=a.useState(0),[Q,ee]=a.useState(f),te=a.useRef(null),ne=a.useRef(null),ie=a.useRef(null),ae=a.useRef(),oe=$||V,re=f||Q,le=((e,t="ltr")=>{if(!e)return t;const n=getComputedStyle(e).getPropertyValue("direction");return["ltr","rtl"].includes(n)?n:t})(null===(H=(null==I?void 0:I.current)||V)||void 0===H?void 0:H.parentElement),se=a.useMemo((()=>{const e={left:"left",right:"right",center:"center"};return{ltr:Object.assign({start:"left",end:"right"},e),rtl:Object.assign({start:"right",end:"left"},e)}[le][i]}),[i,le]),ce=a.useCallback((e=>x(e,oe,K)),[re,V,$,K,x]);a.useEffect((()=>{Y(!0),F()}),[]),a.useEffect((()=>()=>{Be([te,ie,ne])}),[]),a.useEffect((()=>{I&&(I.current?W(I.current):"function"==typeof I&&W(I()))}),[I,e]),a.useEffect((()=>{T&&(T.current?G(T.current):"function"==typeof T&&G(T()))}),[re,T]),a.useEffect((()=>{const e=new MutationObserver((()=>{ve&&ve()}));return K&&e.observe(K,{attributes:!0,childList:!0,subtree:!0}),()=>{e.disconnect()}}),[K]);const de=(e,t,n,i=!1)=>{e&&t&&t.addEventListener(n,e,{capture:i})},pe=(e,t,n,i=!1)=>{e&&t&&t.removeEventListener(n,e,{capture:i})};a.useEffect((()=>(de(b,oe,"mouseenter"),de(g,oe,"mouseleave"),de(v,oe,"focus"),de(y,oe,"blur"),de(w,oe,"click"),de(E,oe,"keydown"),de(O,K,"click"),de(C,K,"mouseenter"),de(N,K,"mouseleave"),x&&de(ce,document,"click",!0),de(S,document,"keydown",!0),()=>{pe(b,oe,"mouseenter"),pe(g,oe,"mouseleave"),pe(v,oe,"focus"),pe(y,oe,"blur"),pe(w,oe,"click"),pe(E,oe,"keydown"),pe(O,K,"click"),pe(C,K,"mouseenter"),pe(N,K,"mouseleave"),x&&pe(ce,document,"click",!0),pe(S,document,"keydown",!0)})),[V,K,b,g,v,y,w,E,O,C,N,x,S,$]);const ue=()=>{if(r)return r;let e="up"===n?"top":"bottom";return"center"!==se&&(e=`${e}-${"right"===se?"end":"start"}`),e},fe=a.useMemo(ue,[n,se,r]),me=a.useMemo((()=>(e=>e.replace(/left|right|bottom|top|top-start|top-end|bottom-start|bottom-end|right-start|right-end|left-start|left-end/g,(e=>dn[e])))(ue())),[n,se,r]),he=a.useMemo((()=>({name:"widthMods",enabled:void 0!==s||void 0!==c||void 0!==d,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{const t=e.rects.reference.width;s&&(e.styles.popper.width="trigger"===s?`${t}px`:s),c&&(e.styles.popper.minWidth="trigger"===c?`${t}px`:c),d&&(e.styles.popper.maxWidth="trigger"===d?`${t}px`:d)},effect:({state:e})=>{const t=e.elements.reference.offsetWidth;return s&&(e.elements.popper.style.width="trigger"===s?`${t}px`:s),c&&(e.elements.popper.style.minWidth="trigger"===c?`${t}px`:c),d&&(e.elements.popper.style.maxWidth="trigger"===d?`${t}px`:d),()=>{}}})),[s,c,d]),{styles:be,attributes:ge,update:ve,forceUpdate:ye}=cn(oe,K,{placement:fe,modifiers:[{name:"offset",options:{offset:[0,h]}},{name:"preventOverflow",enabled:B},{name:"hide",enabled:!0},{name:"flip",enabled:fe.startsWith("auto")||k,options:{fallbackPlacements:"flip"===R?[me]:R}},he]});a.useEffect((()=>{var e,n,i,a,o,r,l;const s=(null===(a=null===(i=null===(n=null===(e=null==t?void 0:t.props)||void 0===e?void 0:e.children)||void 0===n?void 0:n[1])||void 0===i?void 0:i.props)||void 0===a?void 0:a.children)||(null===(l=null===(r=null===(o=null==t?void 0:t.props)||void 0===o?void 0:o.children)||void 0===r?void 0:r.props)||void 0===l?void 0:l.children);q(s),s&&U&&s!==U&&ye&&ye()}),[t]),a.useEffect((()=>{ae.current<P&&(Be([te,ie]),ie.current=setTimeout((()=>{te.current=setTimeout((()=>{ee(!1)}),_)}),P)),ae.current=P}),[P]);a.useEffect((()=>{f?(A(),Be([te,ie]),ne.current=setTimeout((()=>{ee(!0),Z(1),M()}),D)):(j(),Be([ne]),ie.current=setTimeout((()=>{Z(0),te.current=setTimeout((()=>{ee(!1),L()}),_)}),P))}),[f]);const xe=Object.assign({className:l(t.props&&t.props.className,m&&(()=>{if(ge&&ge.popper&&ge.popper["data-popper-placement"]){const e=ge.popper["data-popper-placement"];return m[e]}return m.top})()),style:Object.assign(Object.assign(Object.assign({},t.props&&t.props.style||{}),be.popper),{zIndex:u,opacity:J,transition:pn(_)})},ge.popper),we=()=>{const e=a.cloneElement(t,xe);return T?e:a.createElement("div",{style:{display:"contents"},ref:e=>G(null==e?void 0:e.firstElementChild)},e)};return a.createElement(a.Fragment,null,!I&&e&&a.isValidElement(e)&&a.createElement("div",{style:{display:"contents"},ref:e=>z(null==e?void 0:e.firstElementChild)},e),I&&e&&a.isValidElement(e)&&e,X&&re&&(()=>{if("inline"===p)return we();{const e="function"==typeof p?p():p;return o.createPortal(we(),e)}})())};un.displayName="Popper";const fn=(e,t,n=(e=>document.activeElement.contains(e)),i=(e=>e),a=["A","BUTTON","INPUT"],o=!1,r=!1,l=!0,s=!0)=>{const c=document.activeElement,d=e.key;let p=null;if(!o&&["ArrowUp","ArrowDown"].includes(d)){e.preventDefault(),e.stopImmediatePropagation();let a=-1;t.forEach(((e,o)=>{if(n(e)){let e=0;for(;!p&&e<t.length&&-1*e<t.length;)"ArrowUp"===d?e--:e++,a=o+e,a>=t.length&&(a=0),a<0&&(a=t.length-1),p=i(t[a])}}))}if(!r&&["ArrowLeft","ArrowRight"].includes(d)){e.preventDefault(),e.stopImmediatePropagation();let i=-1;t.forEach(((o,r)=>{if(n(o)){const n=t[r].querySelectorAll(a.join(","));if(!n.length||s){let e=c;for(;e;)if(e="ArrowLeft"===d?e.previousElementSibling:e.nextElementSibling,e&&a.includes(e.tagName)){p=e;break}}else n.forEach(((t,a)=>{if(e.target===t){i=a+("ArrowLeft"===d?-1:1),i>=n.length&&(i=0),i<0&&(i=n.length-1),p=n[i]}}))}}))}p&&(l&&(c.tabIndex=-1,p.tabIndex=0),p.focus())};class mn extends a.Component{constructor(){super(...arguments),this.keyHandler=e=>{const{isEventFromContainer:t}=this.props;if(t?!t(e):!this._isEventFromContainer(e))return;const{isActiveElement:n,getFocusableElement:i,noVerticalArrowHandling:a,noHorizontalArrowHandling:o,noEnterHandling:r,noSpaceHandling:l,updateTabIndex:s,validSiblingTags:c,additionalKeyHandler:d,createNavigableElements:p,onlyTraverseSiblings:u}=this.props;d&&d(e);const f=p();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;r||"Enter"===m&&(e.preventDefault(),e.stopImmediatePropagation(),document.activeElement.click()),l||" "===m&&(e.preventDefault(),e.stopImmediatePropagation(),document.activeElement.click()),fn(e,f,n,i,c,a,o,s,u)},this._isEventFromContainer=e=>{const{containerRef:t}=this.props;return t.current&&t.current.contains(e.target)}}componentDidMount(){Fe&&window.addEventListener("keydown",this.keyHandler)}componentWillUnmount(){Fe&&window.removeEventListener("keydown",this.keyHandler)}render(){return null}}mn.displayName="KeyboardHandler",mn.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};const hn=a.createContext({menuId:null,parentMenu:null,onActionClick:()=>null,onSelect:()=>null,activeItemId:null,selected:null,drilledInMenus:[],drilldownItemPath:[],onDrillIn:null,onDrillOut:null,onGetMenuHeight:()=>null,flyoutRef:null,setFlyoutRef:()=>null,disableHover:!1,role:"menu"}),bn=a.createContext({itemId:null,isDisabled:!1});class gn extends a.Component{constructor(e){super(e),this.menuRef=a.createRef(),this.activeMenu=null,this.state={ouiaStateId:qe(vn.displayName),transitionMoveTarget:null,flyoutRef:null,disableHover:!1,currentDrilldownMenuId:this.props.id},this.handleDrilldownTransition=e=>{const t=this.menuRef.current;if(t&&(t===e.target.closest(`.${c}`)||Array.from(t.getElementsByClassName(c)).includes(e.target.closest(`.${c}`))))if(this.state.transitionMoveTarget)this.state.transitionMoveTarget.focus(),this.setState({transitionMoveTarget:null});else{const e=t.querySelector("#"+this.props.activeMenu)||t||null,n=e.getElementsByTagName("UL");if(0===n.length)return;const i=Array.from(n[0].children);if(this.state.currentDrilldownMenuId&&e.id===this.state.currentDrilldownMenuId)return;this.setState({currentDrilldownMenuId:e.id});const a=i.filter((e=>!(e.classList.contains("pf-m-disabled")||e.classList.contains(s))))[0].firstChild;a.focus(),a.tabIndex=0}},this.handleExtraKeys=e=>{const t=this.props.containsDrilldown,n=document.activeElement;if(e.target.closest(`.${c}`)===this.activeMenu||e.target.classList.contains(S)||(this.activeMenu=e.target.closest(`.${c}`),this.setState({disableHover:!0})),"INPUT"===e.target.tagName)return;const i=this.activeMenu,a=e.key,o=n.classList.contains(S)||n.classList.contains(T);if(" "===a||"Enter"===a){if(e.preventDefault(),t&&!o){if(n.closest("li").classList.contains("pf-m-current-path")&&"LI"===i.parentElement.tagName)n.tabIndex=-1,i.parentElement.firstChild.tabIndex=0,this.setState({transitionMoveTarget:i.parentElement.firstChild});else if(n.nextElementSibling&&n.nextElementSibling.classList.contains(c)){const e=Array.from(n.nextElementSibling.getElementsByTagName("UL")[0].children).filter((e=>!(e.classList.contains("pf-m-disabled")||e.classList.contains(s))));n.tabIndex=-1,e[0].firstChild.tabIndex=0,this.setState({transitionMoveTarget:e[0].firstChild})}}document.activeElement.click()}},this.createNavigableElements=()=>this.props.containsDrilldown?this.activeMenu?Array.from(this.activeMenu.getElementsByTagName("UL")[0].children).filter((e=>!(e.classList.contains("pf-m-disabled")||e.classList.contains(s)))):[]:this.menuRef.current?Array.from(this.menuRef.current.getElementsByTagName("LI")).filter((e=>!(e.classList.contains("pf-m-disabled")||e.classList.contains(s)))):[],e.innerRef&&(this.menuRef=e.innerRef)}allowTabFirstItem(){const e=this.menuRef.current;if(e){const t=e.querySelector("ul button:not(:disabled), ul a:not(:disabled)");t&&(t.tabIndex=0)}}componentDidMount(){this.context&&this.setState({disableHover:this.context.disableHover}),Fe&&window.addEventListener("transitionend",this.props.isRootMenu?this.handleDrilldownTransition:null),this.allowTabFirstItem()}componentWillUnmount(){Fe&&window.removeEventListener("transitionend",this.handleDrilldownTransition)}componentDidUpdate(e){e.children!==this.props.children&&this.allowTabFirstItem()}render(){const e=this.props,{id:t,children:n,className:i,onSelect:o,selected:s=null,onActionClick:d,ouiaId:p,ouiaSafe:u,containsFlyout:f,isNavFlyout:m,containsDrilldown:h,isMenuDrilledIn:b,isPlain:g,isScrollable:v,drilldownItemPath:y,drilledInMenus:x,onDrillIn:w,onDrillOut:E,onGetMenuHeight:O,parentMenu:k=null,activeItemId:R=null,innerRef:I,isRootMenu:_,activeMenu:D,role:P}=e,L=r(e,["id","children","className","onSelect","selected","onActionClick","ouiaId","ouiaSafe","containsFlyout","isNavFlyout","containsDrilldown","isMenuDrilledIn","isPlain","isScrollable","drilldownItemPath","drilledInMenus","onDrillIn","onDrillOut","onGetMenuHeight","parentMenu","activeItemId","innerRef","isRootMenu","activeMenu","role"]),j=b||x&&x.includes(t)||!1;return a.createElement(hn.Provider,{value:{menuId:t,parentMenu:k||t,onSelect:o,onActionClick:d,activeItemId:R,selected:s,drilledInMenus:x,drilldownItemPath:y,onDrillIn:w,onDrillOut:E,onGetMenuHeight:O,flyoutRef:this.state.flyoutRef,setFlyoutRef:e=>this.setState({flyoutRef:e}),disableHover:this.state.disableHover,role:P}},_&&a.createElement(mn,{containerRef:this.menuRef||null,additionalKeyHandler:this.handleExtraKeys,createNavigableElements:this.createNavigableElements,isActiveElement:e=>document.activeElement.closest("li")===e||document.activeElement.parentElement===e||document.activeElement.closest(`.${C}`)===e||document.activeElement.closest("ol")&&document.activeElement.closest("ol").firstChild===e,getFocusableElement:e=>{var t,n;return"DIV"===(null==e?void 0:e.tagName)&&e.querySelector("input")||"LABEL"===(null===(t=e.firstChild)||void 0===t?void 0:t.tagName)&&e.querySelector("input")||"DIV"===(null===(n=e.firstChild)||void 0===n?void 0:n.tagName)&&e.querySelector("a, button, input")||e.firstChild},noHorizontalArrowHandling:document.activeElement&&(document.activeElement.classList.contains(S)||document.activeElement.classList.contains(T)||"INPUT"===document.activeElement.tagName),noEnterHandling:!0,noSpaceHandling:!0}),a.createElement("div",Object.assign({id:t,className:l(c,g&&N.plain,v&&N.scrollable,f&&N.flyout,m&&N.nav,h&&N.drilldown,j&&N.drilledIn,i),ref:this.menuRef},Ke(vn.displayName,void 0!==p?p:this.state.ouiaStateId,u),L),n))}}gn.displayName="Menu",gn.contextType=hn,gn.defaultProps={ouiaSafe:!0,isRootMenu:!0,isPlain:!1,isScrollable:!1,role:"menu"};const vn=a.forwardRef(((e,t)=>a.createElement(gn,Object.assign({},e,{innerRef:t}))));vn.displayName="Menu";const yn="--pf-v5-c-menu__content--Height",xn="--pf-v5-c-menu__content--MaxHeight",wn=a.forwardRef(((e,t)=>{const{getHeight:n,children:i,menuHeight:o,maxMenuHeight:s}=e,c=r(e,["getHeight","children","menuHeight","maxMenuHeight"]),p=a.createRef();return a.createElement(hn.Consumer,null,(({menuId:r,onGetMenuHeight:u})=>a.createElement("div",Object.assign({},c,{className:l(d,e.className),ref:e=>((e,i,a)=>{if(e){let t=e.clientHeight,o=null,r=e.closest(`.${E}`);for(;null!==r&&1===r.nodeType;)r.classList.contains(E)&&(o=r),r=r.parentElement;if(o){const e=getComputedStyle(o);t+=parseFloat(e.getPropertyValue("padding-top").replace(/px/g,""))+parseFloat(e.getPropertyValue("padding-bottom").replace(/px/g,""))+parseFloat(getComputedStyle(o.parentElement).getPropertyValue("border-bottom-width").replace(/px/g,""))}a&&a(i,t),n&&n(t.toString())}return t||p})(e,r,u),style:Object.assign(Object.assign({},o&&{[yn]:o}),s&&{[xn]:s})}),i)))}));wn.displayName="MenuContent";const En="--pf-v5-c-menu--m-flyout__menu--top-offset",On="--pf-v5-c-menu--m-flyout__menu--m-left--right-offset",Cn="--pf-v5-c-menu--m-flyout__menu--left-offset";let Nn=0;function Sn({name:e,xOffset:t=0,yOffset:n=0,width:i,height:o,svgPath:l}){var s;return s=class extends a.Component{constructor(){super(...arguments),this.id="icon-title-"+Nn++}render(){const e=this.props,{title:s,className:c}=e,d=r(e,["title","className"]),p=c?`pf-v5-svg ${c}`:"pf-v5-svg",u=Boolean(s),f=[t,n,i,o].join(" ");return a.createElement("svg",Object.assign({className:p,viewBox:f,fill:"currentColor","aria-labelledby":u?this.id:null,"aria-hidden":!u||null,role:"img",width:"1em",height:"1em"},d),u&&a.createElement("title",{id:this.id},s),a.createElement("path",{d:l}))}},s.displayName=e,s}const kn=Sn({name:"ExternalLinkAltIcon",height:512,width:512,svgPath:"M432,320H400a16,16,0,0,0-16,16V448H64V128H208a16,16,0,0,0,16-16V80a16,16,0,0,0-16-16H48A48,48,0,0,0,0,112V464a48,48,0,0,0,48,48H400a48,48,0,0,0,48-48V336A16,16,0,0,0,432,320ZM488,0h-128c-21.37,0-32.05,25.91-17,41l35.73,35.73L135,320.37a24,24,0,0,0,0,34L157.67,377a24,24,0,0,0,34,0L435.28,133.32,471,169c15,15,41,4.5,41-17V24A24,24,0,0,0,488,0Z",yOffset:0,xOffset:0}),Rn=Sn({name:"AngleRightIcon",height:512,width:256,svgPath:"M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34z",yOffset:0,xOffset:0}),In=Sn({name:"AngleLeftIcon",height:512,width:256,svgPath:"M31.7 239l136-136c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9L127.9 256l96.4 96.4c9.4 9.4 9.4 24.6 0 33.9L201.7 409c-9.4 9.4-24.6 9.4-33.9 0l-136-136c-9.5-9.4-9.5-24.6-.1-34z",yOffset:0,xOffset:0}),Tn=Sn({name:"CheckIcon",height:512,width:512,svgPath:"M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z",yOffset:0,xOffset:0});var _n="pf-v5-c-check",Dn="pf-v5-c-check__body",Pn="pf-v5-c-check__description",Ln="pf-v5-c-check__input",jn="pf-v5-c-check__label",Fn="pf-v5-c-check__label-required",An={standalone:"pf-m-standalone",disabled:"pf-m-disabled"};const Mn=()=>{};class Bn extends a.Component{constructor(e){super(e),this.handleChange=e=>{this.props.onChange(e,e.currentTarget.checked)},this.state={ouiaStateId:qe(Bn.displayName)}}render(){const e=this.props,{"aria-label":t,className:n,inputClassName:i,onChange:o,isLabelWrapped:s,isLabelBeforeButton:c,isValid:d,isDisabled:p,isRequired:u,isChecked:f,label:m,checked:h,defaultChecked:b,description:g,body:v,ouiaId:y,ouiaSafe:x,component:w}=e,E=r(e,["aria-label","className","inputClassName","onChange","isLabelWrapped","isLabelBeforeButton","isValid","isDisabled","isRequired","isChecked","label","checked","defaultChecked","description","body","ouiaId","ouiaSafe","component"]);E.id||console.error("Checkbox:","id is required to make input accessible");const O={};([!0,!1].includes(h)||!0===f)&&(O.checked=h||f),o!==Mn&&(O.checked=f),[!1,!0].includes(b)&&(O.defaultChecked=b);const C=a.createElement("input",Object.assign({},E,{className:l(Ln,i),type:"checkbox",onChange:this.handleChange,"aria-invalid":!d,"aria-label":t,disabled:p,required:u,ref:e=>e&&(e.indeterminate=null===f)},O,Ke(Bn.displayName,void 0!==y?y:this.state.ouiaStateId,x))),N=s&&!w||"label"===w,S=N?"span":"label",k=m?a.createElement(S,{className:l(jn,p&&An.disabled),htmlFor:N?void 0:E.id},m,u&&a.createElement("span",{className:l(Fn),"aria-hidden":"true"},"*")):null,R=null!=w?w:N?"label":"div";return O.checked=null!==O.checked&&O.checked,a.createElement(R,{className:l(_n,!m&&An.standalone,n),htmlFor:N?E.id:void 0},c?a.createElement(a.Fragment,null,k,C):a.createElement(a.Fragment,null,C,k),g&&a.createElement("span",{className:l(Pn)},g),v&&a.createElement("span",{className:l(Dn)},v))}}Bn.displayName="Checkbox",Bn.defaultProps={className:"",isLabelWrapped:!1,isValid:!0,isDisabled:!1,isRequired:!1,isChecked:!1,onChange:Mn,ouiaSafe:!0};const Hn=Sn({name:"StarIcon",height:512,width:576,svgPath:"M259.3 17.8L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0z",yOffset:0,xOffset:0}),Vn=e=>{var{className:t="",icon:n,onClick:i,"aria-label":o,isFavorited:s=null,isDisabled:c,actionId:d,innerRef:p}=e,m=r(e,["className","icon","onClick","aria-label","isFavorited","isDisabled","actionId","innerRef"]);return a.createElement(hn.Consumer,null,(({onActionClick:e})=>a.createElement(bn.Consumer,null,(({itemId:r,isDisabled:h})=>a.createElement("button",Object.assign({className:l(u,null!==s&&N.favorite,s&&N.favorited,t),"aria-label":o,onClick:t=>{i&&i(t),e&&e(t,r,d)}},(!0===c||!0===h)&&{disabled:!0},{ref:p,tabIndex:-1},m),a.createElement("span",{className:l(f)},"favorites"===n||null!==s?a.createElement(Hn,{"aria-hidden":!0}):n))))))},zn=a.forwardRef(((e,t)=>a.createElement(Vn,Object.assign({},e,{innerRef:t}))));zn.displayName="MenuItemAction";var $n={top:"pf-m-top",topLeft:"pf-m-top-left",topRight:"pf-m-top-right",bottom:"pf-m-bottom",bottomLeft:"pf-m-bottom-left",bottomRight:"pf-m-bottom-right",left:"pf-m-left",leftTop:"pf-m-left-top",leftBottom:"pf-m-left-bottom",right:"pf-m-right",rightTop:"pf-m-right-top",rightBottom:"pf-m-right-bottom",textAlignLeft:"pf-m-text-align-left"},Wn="pf-v5-c-tooltip",Kn="pf-v5-c-tooltip__arrow",Gn="pf-v5-c-tooltip__content";const Un=e=>{var{className:t,children:n,isLeftAligned:i}=e,o=r(e,["className","children","isLeftAligned"]);return a.createElement("div",Object.assign({className:l(Gn,i&&$n.textAlignLeft,t)},o),n)};Un.displayName="TooltipContent";const qn=e=>{var{className:t}=e,n=r(e,["className"]);return a.createElement("div",Object.assign({className:l(Kn,t)},n))};qn.displayName="TooltipArrow";const Xn={name:"--pf-v5-c-tooltip--MaxWidth",value:"18.75rem",var:"var(--pf-v5-c-tooltip--MaxWidth)"};var Yn;!function(e){e.auto="auto",e.top="top",e.bottom="bottom",e.left="left",e.right="right",e.topStart="top-start",e.topEnd="top-end",e.bottomStart="bottom-start",e.bottomEnd="bottom-end",e.leftStart="left-start",e.leftEnd="left-end",e.rightStart="right-start",e.rightEnd="right-end"}(Yn||(Yn={}));let Jn=1;const Zn=e=>{var{content:t,position:n="top",trigger:i="mouseenter focus",isVisible:o=!1,isContentLeftAligned:s=!1,enableFlip:c=!0,className:d="",entryDelay:p=300,exitDelay:u=300,appendTo:f=(()=>document.body),zIndex:m=9999,minWidth:h,maxWidth:b=Xn.value,distance:g=15,aria:v="describedby",flipBehavior:y=["top","right","bottom","left","top","right","bottom"],id:x="pf-tooltip-"+Jn++,children:w,animationDuration:E=300,triggerRef:O,"aria-live":C=(O?"polite":"off"),onTooltipHidden:N=(()=>{})}=e,S=r(e,["content","position","trigger","isVisible","isContentLeftAligned","enableFlip","className","entryDelay","exitDelay","appendTo","zIndex","minWidth","maxWidth","distance","aria","flipBehavior","id","children","animationDuration","triggerRef","aria-live","onTooltipHidden"]);const k=i.includes("mouseenter"),R=i.includes("focus"),I=i.includes("click"),T="manual"===i,[_,D]=a.useState(!1),P=a.createRef();a.useEffect((()=>{o?L():j()}),[o]);const L=()=>{D(!0)},j=()=>{D(!1)},F={top:$n.top,bottom:$n.bottom,left:$n.left,right:$n.right,"top-start":$n.topLeft,"top-end":$n.topRight,"bottom-start":$n.bottomLeft,"bottom-end":$n.bottomRight,"left-start":$n.leftTop,"left-end":$n.leftBottom,"right-start":$n.rightTop,"right-end":$n.rightBottom},A=b!==Xn.value,M=a.createElement("div",Object.assign({"aria-live":C,className:l(Wn,d),role:"tooltip",id:x,style:{maxWidth:A?b:null},ref:P},S),a.createElement(qn,null),a.createElement(Un,{isLeftAligned:s},t));return a.createElement(un,{trigger:"none"!==v&&_?"describedby"===v&&w&&w.props&&!w.props["aria-describedby"]?a.cloneElement(w,{"aria-describedby":x}):"labelledby"===v&&w.props&&!w.props["aria-labelledby"]?a.cloneElement(w,{"aria-labelledby":x}):w:w,triggerRef:O,popper:M,popperRef:P,minWidth:void 0!==h?h:"revert",appendTo:f,isVisible:_,positionModifiers:F,distance:g,placement:n,onMouseEnter:k&&L,onMouseLeave:k&&j,onPopperMouseEnter:k&&L,onPopperMouseLeave:k&&j,onFocus:R&&L,onBlur:R&&j,onDocumentClick:I&&((e,t)=>{_?j():e.target===t&&L()}),onDocumentKeyDown:T?null:e=>{T||e.key===B&&_&&j()},onTriggerEnter:T?null:e=>{e.key===H&&(_?j():L())},enableFlip:c,zIndex:m,flipBehavior:y,animationDuration:E,entryDelay:p,exitDelay:u,onHidden:N})};Zn.displayName="Tooltip";const Qn=a.createContext({direction:"right"}),ei=e=>{var{children:t,className:n,itemId:i=null,to:o,hasCheckbox:d=!1,isActive:u=null,isFavorited:f=null,isLoadButton:E=!1,isLoading:C=!1,flyoutMenu:S,direction:k,description:R=null,onClick:I=(()=>{}),component:T="button",isDisabled:_=!1,isAriaDisabled:D=!1,isExternalLink:P=!1,isSelected:L=null,isFocused:j,isDanger:F=!1,icon:A,actions:M,onShowFlyout:B,drilldownMenu:H,isOnPath:V,innerRef:z,id:$,"aria-label":W,tooltipProps:K,rel:G,target:U,download:q}=e,X=r(e,["children","className","itemId","to","hasCheckbox","isActive","isFavorited","isLoadButton","isLoading","flyoutMenu","direction","description","onClick","component","isDisabled","isAriaDisabled","isExternalLink","isSelected","isFocused","isDanger","icon","actions","onShowFlyout","drilldownMenu","isOnPath","innerRef","id","aria-label","tooltipProps","rel","target","download"]);const{menuId:Y,parentMenu:J,onSelect:Z,onActionClick:Q,activeItemId:ee,selected:te,drilldownItemPath:ne,onDrillIn:ie,onDrillOut:ae,flyoutRef:oe,setFlyoutRef:re,disableHover:le,role:se}=a.useContext(hn);let ce=o?"a":T;d&&!o&&(ce="label");const[de,pe]=a.useState(null),ue=a.useContext(Qn),[fe,me]=a.useState(ue.direction),he=a.useRef(),be=he===oe,ge=void 0!==S,ve=e=>{!be&&e?re(he):be&&!e&&re(null),B&&e&&B()};rn((()=>{if(ge&&he.current&&Fe){const e=he.current.lastElementChild;if(e&&e.classList.contains(c)){const t=he.current.getClientRects()[0],n=e.getClientRects()[0];if(t&&n){const i=t.x-n.width,a=window.innerWidth-t.x-t.width-n.width;let o=fe;a<0&&"left"!==o?(me("left"),o="left"):i<0&&"right"!==o&&(me("right"),o="right");let r=0;i<0&&a<0&&(r="right"===o?-a:-i),"left"===o?(e.classList.add(N.left),e.style.setProperty(On,`-${r}px`)):e.style.setProperty(Cn,`-${r}px`);const l=window.innerHeight-t.y-n.height;window.innerHeight-n.height<0&&l<0||l<0&&e.style.setProperty(En,`${l}px`)}}}}),[be,S]),a.useEffect((()=>{me(ue.direction)}),[ue]),a.useEffect((()=>{if(de)if(be){const e=de.nextElementSibling;Array.from(e.getElementsByTagName("UL")[0].children).filter((e=>!(e.classList.contains("pf-m-disabled")||e.classList.contains(s))))[0].firstChild.focus()}else de.focus()}),[be,de]);const ye=e=>{const t=e.key,n=e.target,i=e.type;" "!==t&&"Enter"!==t&&"ArrowRight"!==t&&"click"!==i||(e.stopPropagation(),e.preventDefault(),be||(ve(!0),pe(n))),"Escape"!==t&&"ArrowLeft"!==t||be&&(e.stopPropagation(),ve(!1))},xe=(e,t)=>{D||(t&&t(e,i),I&&I(e))},we=V&&V||ne&&ne.includes(i)||!1;let Ee;k&&(Ee="down"===k?e=>ie&&ie(e,Y,"function"==typeof H?H().props.id:H.props.id,i):e=>ae&&ae(e,J,i));let Oe={};"a"===ce?Oe={href:o,"aria-disabled":!(!_&&!D)||null,disabled:null,target:P?"_blank":U,rel:G,download:q}:"button"===ce&&(Oe={type:"button","aria-disabled":!!D||null}),V?Oe["aria-expanded"]=!0:ge&&(Oe["aria-haspopup"]="menu",Oe["aria-expanded"]=be);const Ce=()=>null!==L?L:null!==te&&null!==i&&(Array.isArray(te)&&te.includes(i)||i===te);a.useEffect((()=>{if(j&&he.current){const e=he.current,t=e.parentElement;if(t){const n=e.offsetTop-t.offsetTop<t.scrollTop,i=e.offsetTop-t.offsetTop+e.clientHeight;(n||i)&&e.scrollIntoView({behavior:"auto",block:"nearest"})}}}),[j]);const Ne="listbox"===se,Se=a.createElement(a.Fragment,null,a.createElement(Ve,null,(e=>a.createElement(ce,Object.assign({id:$,tabIndex:-1,className:l(p,Ce()&&!d&&N.selected,n),"aria-current":null!==u?u?"page":null:null!==i&&null!==ee?i===ee:null},!d&&{disabled:_,"aria-label":W},!d&&!S&&{role:Ne?"option":"menuitem"},!d&&!S&&Ne&&{"aria-selected":Ce()},{ref:z},!d&&{onClick:e=>{D?e.preventDefault():(xe(e,Z),Ee&&Ee(e),S&&ye(e))}},d&&{htmlFor:e},Oe),a.createElement("span",{className:l(v)},"up"===k&&a.createElement("span",{className:l(w)},a.createElement(In,{"aria-hidden":!0})),A&&a.createElement("span",{className:l(g)},A),d&&a.createElement("span",{className:l(m)},a.createElement(Bn,{id:e,component:"span",isChecked:L||!1,onChange:e=>xe(e,Z),isDisabled:_,"aria-disabled":D})),a.createElement("span",{className:l(x)},t),P&&a.createElement("span",{className:l(b)},a.createElement(kn,{"aria-hidden":!0})),(S||"down"===k)&&a.createElement("span",{className:l(w)},a.createElement(Rn,{"aria-hidden":!0})),Ce()&&a.createElement("span",{className:l(y)},a.createElement(Tn,{"aria-hidden":!0}))),R&&"up"!==k&&a.createElement("span",{className:l(h)},a.createElement("span",null,R))))),be&&a.createElement(hn.Provider,{value:{disableHover:le}},a.createElement(Qn.Provider,{value:{direction:fe}},S)),"function"==typeof H?H():H,a.createElement(bn.Provider,{value:{itemId:i,isDisabled:_}},M,null!==f&&a.createElement(zn,{icon:"favorites",isFavorited:f,"aria-label":f?"starred":"not starred",onClick:e=>Q(e,i),tabIndex:-1,actionId:"fav"})));return a.createElement("li",Object.assign({className:l(O,_&&N.disabled,D&&N.ariaDisabled,we&&N.currentPath,E&&N.load,C&&N.loading,j&&N.focus,F&&N.danger,n),onMouseOver:()=>{D||le||(ge?ve(!0):re(null))}},S&&!D&&{onKeyDown:ye},{ref:he,role:d?"menuitem":"none"},d&&{"aria-label":W},X),K?a.createElement(Zn,Object.assign({},K),Se):Se)},ti=a.forwardRef(((e,t)=>a.createElement(ei,Object.assign({},e,{innerRef:t}))));ti.displayName="MenuItem";const ni=e=>{var{children:t=null,className:n,isAriaMultiselectable:i=!1,"aria-label":o}=e,s=r(e,["children","className","isAriaMultiselectable","aria-label"]);const{role:c}=a.useContext(hn);return a.createElement("ul",Object.assign({role:c},"listbox"===c&&{"aria-multiselectable":i},{className:l(E,n),"aria-label":o},s),t)};ni.displayName="MenuList";const ii=e=>{var{children:n,className:i,onSelect:a,isOpen:o,toggle:s,shouldFocusToggleOnSelect:c=!1,onOpenChange:d,isPlain:p,isScrollable:u,innerRef:f,ouiaId:m,ouiaSafe:h=!0,zIndex:b=9999,popperProps:g,onOpenChangeKeys:v=["Escape","Tab"],menuHeight:y,maxMenuHeight:x,shouldFocusFirstItemOnOpen:w=!0}=e,E=r(e,["children","className","onSelect","isOpen","toggle","shouldFocusToggleOnSelect","onOpenChange","isPlain","isScrollable","innerRef","ouiaId","ouiaSafe","zIndex","popperProps","onOpenChangeKeys","menuHeight","maxMenuHeight","shouldFocusFirstItemOnOpen"]);const O=t.useRef(),C=t.useRef(),N=Ge(ai.displayName,m,h),S=f||O,k="function"==typeof s||"function"!=typeof s&&!s.toggleRef?C:null==s?void 0:s.toggleRef;t.useEffect((()=>{const e=e=>{var t,n,i;o&&d&&((null===(t=S.current)||void 0===t?void 0:t.contains(e.target))||(null===(n=k.current)||void 0===n?void 0:n.contains(e.target)))&&v.includes(e.key)&&(d(!1),null===(i=k.current)||void 0===i||i.focus())},t=e=>{var t,n,i;o&&w&&(null===(t=k.current)||void 0===t?void 0:t.contains(e.target))&&setTimeout((()=>{var e;const t=null===(e=null==S?void 0:S.current)||void 0===e?void 0:e.querySelector('li button:not(:disabled),li input:not(:disabled),li a:not([aria-disabled="true"])');t&&t.focus()}),0),o&&d&&!(null===(n=null==k?void 0:k.current)||void 0===n?void 0:n.contains(e.target))&&o&&!(null===(i=S.current)||void 0===i?void 0:i.contains(e.target))&&d(!1)};return window.addEventListener("keydown",e),window.addEventListener("click",t),()=>{window.removeEventListener("keydown",e),window.removeEventListener("click",t)}}),[o,S,k,d,v]);const R=void 0!==x||void 0!==y||u,I=t.createElement(vn,Object.assign({className:l(i),ref:S,onSelect:(e,t)=>{a&&a(e,t),c&&k.current.focus()},isPlain:p,isScrollable:R},E,N),t.createElement(wn,{menuHeight:y,maxMenuHeight:x},n));return t.createElement(un,Object.assign({trigger:"function"==typeof s?s(k):s.toggleNode,triggerRef:k,popper:I,popperRef:S,isVisible:o,zIndex:b},g))},ai=t.forwardRef(((e,n)=>t.createElement(ii,Object.assign({innerRef:n},e))));ai.displayName="Dropdown";const oi=e=>{var{children:n,className:i,description:a,isDisabled:o,isAriaDisabled:s,value:c,onClick:d,ouiaId:p,ouiaSafe:u,innerRef:f,tooltipProps:m}=e,h=r(e,["children","className","description","isDisabled","isAriaDisabled","value","onClick","ouiaId","ouiaSafe","innerRef","tooltipProps"]);const b=Ge(ri.displayName,p,u);return t.createElement(ti,Object.assign({className:l(i),description:a,isDisabled:o,isAriaDisabled:s,itemId:c,onClick:d,tooltipProps:m,ref:f},b,h),n)},ri=t.forwardRef(((e,n)=>t.createElement(oi,Object.assign({},e,{innerRef:n}))));ri.displayName="DropdownItem";const li=e=>{var{children:n,className:i}=e,a=r(e,["children","className"]);return t.createElement(ni,Object.assign({className:l(i)},a),n)};li.displayName="DropdownList";var si={badge:"pf-v5-c-badge",button:"pf-v5-c-button",buttonCount:"pf-v5-c-button__count",buttonIcon:"pf-v5-c-button__icon",buttonProgress:"pf-v5-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",unread:"pf-m-unread",inline:"pf-m-inline",danger:"pf-m-danger",warning:"pf-m-warning",control:"pf-m-control",expanded:"pf-m-expanded",plain:"pf-m-plain",noPadding:"pf-m-no-padding",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"},spinner:"pf-v5-c-spinner",themeDark:"pf-v5-theme-dark"},ci={modifiers:{inline:"pf-m-inline",sm:"pf-m-sm",md:"pf-m-md",lg:"pf-m-lg",xl:"pf-m-xl"},spinner:"pf-v5-c-spinner",spinnerPath:"pf-v5-c-spinner__path"};const di="--pf-v5-c-spinner--diameter";var pi;!function(e){e.sm="sm",e.md="md",e.lg="lg",e.xl="xl"}(pi||(pi={}));const ui=e=>{var{className:t="",size:n="xl","aria-valuetext":i="Loading...",diameter:o,isInline:s=!1,"aria-label":c,"aria-labelledBy":d}=e,p=r(e,["className","size","aria-valuetext","diameter","isInline","aria-label","aria-labelledBy"]);return a.createElement("svg",Object.assign({className:l(ci.spinner,s?ci.modifiers.inline:ci.modifiers[n],t),role:"progressbar","aria-valuetext":i,viewBox:"0 0 100 100"},o&&{style:{[di]:o}},c&&{"aria-label":c},d&&{"aria-labelledBy":d},!c&&!d&&{"aria-label":"Contents"},p),a.createElement("circle",{className:ci.spinnerPath,cx:"50",cy:"50",r:"45",fill:"none"}))};ui.displayName="Spinner";var fi="pf-v5-c-badge",mi={read:"pf-m-read",unread:"pf-m-unread"};const hi=e=>{var{isRead:t=!1,className:n="",children:i="",screenReaderText:o}=e,s=r(e,["isRead","className","children","screenReaderText"]);return a.createElement("span",Object.assign({},s,{className:l(fi,t?mi.read:mi.unread,n)}),i,o&&a.createElement("span",{className:"pf-v5-screen-reader"},o))};var bi,gi,vi;hi.displayName="Badge",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"}(bi||(bi={})),function(e){e.button="button",e.submit="submit",e.reset="reset"}(gi||(gi={})),function(e){e.default="default",e.sm="sm",e.lg="lg"}(vi||(vi={}));const yi=e=>{var{children:t=null,className:n="",component:i="button",isActive:o=!1,isBlock:s=!1,isDisabled:c=!1,isAriaDisabled:d=!1,isLoading:p=null,isDanger:u=!1,spinnerAriaValueText:f,spinnerAriaLabelledBy:m,spinnerAriaLabel:h,size:b=vi.default,inoperableEvents:g=["onClick","onKeyPress"],isInline:v=!1,type:y=gi.button,variant:x=bi.primary,iconPosition:w="start","aria-label":E=null,icon:O=null,ouiaId:C,ouiaSafe:N=!0,tabIndex:S=null,innerRef:k,countOptions:R}=e,I=r(e,["children","className","component","isActive","isBlock","isDisabled","isAriaDisabled","isLoading","isDanger","spinnerAriaValueText","spinnerAriaLabelledBy","spinnerAriaLabel","size","inoperableEvents","isInline","type","variant","iconPosition","aria-label","icon","ouiaId","ouiaSafe","tabIndex","innerRef","countOptions"]);const T=Ge(xi.displayName,C,N,x),_=i,D="button"===_,P=v&&"span"===_,L=g.reduce(((e,t)=>Object.assign(Object.assign({},e),{[t]:e=>{e.preventDefault()}})),{});return a.createElement(_,Object.assign({},I,d?L:null,{"aria-disabled":c||d,"aria-label":E,className:l(si.button,si.modifiers[x],s&&si.modifiers.block,c&&si.modifiers.disabled,d&&si.modifiers.ariaDisabled,o&&si.modifiers.active,v&&x===bi.link&&si.modifiers.inline,u&&(x===bi.secondary||x===bi.link)&&si.modifiers.danger,null!==p&&x!==bi.plain&&si.modifiers.progress,p&&si.modifiers.inProgress,b===vi.sm&&si.modifiers.small,b===vi.lg&&si.modifiers.displayLg,n),disabled:D?c:null,tabIndex:null!==S?S:c?D?null:-1:d?null:P?0:void 0,type:D||P?y:null,role:P?"button":null,ref:k},T),p&&a.createElement("span",{className:l(si.buttonProgress)},a.createElement(ui,{size:pi.md,isInline:v,"aria-valuetext":f,"aria-label":h,"aria-labelledby":m})),x===bi.plain&&null===t&&O?O:null,x!==bi.plain&&O&&("start"===w||"left"===w)&&a.createElement("span",{className:l(si.buttonIcon,si.modifiers.start)},O),t,x!==bi.plain&&O&&("end"===w||"right"===w)&&a.createElement("span",{className:l(si.buttonIcon,si.modifiers.end)},O),R&&a.createElement("span",{className:l(si.buttonCount,R.className)},a.createElement(hi,{isRead:R.isRead},R.count)))},xi=a.forwardRef(((e,t)=>a.createElement(yi,Object.assign({innerRef:t},e))));xi.displayName="Button";var wi,Ei={divider:"pf-v5-c-divider",modifiers:{hidden:"pf-m-hidden",hiddenOnSm:"pf-m-hidden-on-sm",visibleOnSm:"pf-m-visible-on-sm",hiddenOnMd:"pf-m-hidden-on-md",visibleOnMd:"pf-m-visible-on-md",hiddenOnLg:"pf-m-hidden-on-lg",visibleOnLg:"pf-m-visible-on-lg",hiddenOnXl:"pf-m-hidden-on-xl",visibleOnXl:"pf-m-visible-on-xl",hiddenOn_2xl:"pf-m-hidden-on-2xl",visibleOn_2xl:"pf-m-visible-on-2xl",vertical:"pf-m-vertical",insetNone:"pf-m-inset-none",insetXs:"pf-m-inset-xs",insetSm:"pf-m-inset-sm",insetMd:"pf-m-inset-md",insetLg:"pf-m-inset-lg",insetXl:"pf-m-inset-xl",inset_2xl:"pf-m-inset-2xl",inset_3xl:"pf-m-inset-3xl",horizontalOnSm:"pf-m-horizontal-on-sm",verticalOnSm:"pf-m-vertical-on-sm",insetNoneOnSm:"pf-m-inset-none-on-sm",insetXsOnSm:"pf-m-inset-xs-on-sm",insetSmOnSm:"pf-m-inset-sm-on-sm",insetMdOnSm:"pf-m-inset-md-on-sm",insetLgOnSm:"pf-m-inset-lg-on-sm",insetXlOnSm:"pf-m-inset-xl-on-sm",inset_2xlOnSm:"pf-m-inset-2xl-on-sm",inset_3xlOnSm:"pf-m-inset-3xl-on-sm",horizontalOnMd:"pf-m-horizontal-on-md",verticalOnMd:"pf-m-vertical-on-md",insetNoneOnMd:"pf-m-inset-none-on-md",insetXsOnMd:"pf-m-inset-xs-on-md",insetSmOnMd:"pf-m-inset-sm-on-md",insetMdOnMd:"pf-m-inset-md-on-md",insetLgOnMd:"pf-m-inset-lg-on-md",insetXlOnMd:"pf-m-inset-xl-on-md",inset_2xlOnMd:"pf-m-inset-2xl-on-md",inset_3xlOnMd:"pf-m-inset-3xl-on-md",horizontalOnLg:"pf-m-horizontal-on-lg",verticalOnLg:"pf-m-vertical-on-lg",insetNoneOnLg:"pf-m-inset-none-on-lg",insetXsOnLg:"pf-m-inset-xs-on-lg",insetSmOnLg:"pf-m-inset-sm-on-lg",insetMdOnLg:"pf-m-inset-md-on-lg",insetLgOnLg:"pf-m-inset-lg-on-lg",insetXlOnLg:"pf-m-inset-xl-on-lg",inset_2xlOnLg:"pf-m-inset-2xl-on-lg",inset_3xlOnLg:"pf-m-inset-3xl-on-lg",horizontalOnXl:"pf-m-horizontal-on-xl",verticalOnXl:"pf-m-vertical-on-xl",insetNoneOnXl:"pf-m-inset-none-on-xl",insetXsOnXl:"pf-m-inset-xs-on-xl",insetSmOnXl:"pf-m-inset-sm-on-xl",insetMdOnXl:"pf-m-inset-md-on-xl",insetLgOnXl:"pf-m-inset-lg-on-xl",insetXlOnXl:"pf-m-inset-xl-on-xl",inset_2xlOnXl:"pf-m-inset-2xl-on-xl",inset_3xlOnXl:"pf-m-inset-3xl-on-xl",horizontalOn_2xl:"pf-m-horizontal-on-2xl",verticalOn_2xl:"pf-m-vertical-on-2xl",insetNoneOn_2xl:"pf-m-inset-none-on-2xl",insetXsOn_2xl:"pf-m-inset-xs-on-2xl",insetSmOn_2xl:"pf-m-inset-sm-on-2xl",insetMdOn_2xl:"pf-m-inset-md-on-2xl",insetLgOn_2xl:"pf-m-inset-lg-on-2xl",insetXlOn_2xl:"pf-m-inset-xl-on-2xl",inset_2xlOn_2xl:"pf-m-inset-2xl-on-2xl",inset_3xlOn_2xl:"pf-m-inset-3xl-on-2xl"}};!function(e){e.hr="hr",e.li="li",e.div="div"}(wi||(wi={}));const Oi=e=>{var{className:t,component:n=wi.hr,inset:i,orientation:o}=e,s=r(e,["className","component","inset","orientation"]);const c=n;return a.createElement(c,Object.assign({className:l(Ei.divider,Pe(i,Ei),Pe(o,Ei),t)},"hr"!==n&&{role:"separator"},s))};Oi.displayName="Divider";var Ci={check:"pf-v5-c-check",checkInput:"pf-v5-c-check__input",menuToggle:"pf-v5-c-menu-toggle",menuToggleButton:"pf-v5-c-menu-toggle__button",menuToggleControls:"pf-v5-c-menu-toggle__controls",menuToggleCount:"pf-v5-c-menu-toggle__count",menuToggleIcon:"pf-v5-c-menu-toggle__icon",menuToggleStatusIcon:"pf-v5-c-menu-toggle__status-icon",menuToggleText:"pf-v5-c-menu-toggle__text",menuToggleToggleIcon:"pf-v5-c-menu-toggle__toggle-icon",modifiers:{primary:"pf-m-primary",secondary:"pf-m-secondary",expanded:"pf-m-expanded",plain:"pf-m-plain",text:"pf-m-text",fullHeight:"pf-m-full-height",disabled:"pf-m-disabled",typeahead:"pf-m-typeahead",splitButton:"pf-m-split-button",action:"pf-m-action",active:"pf-m-active",fullWidth:"pf-m-full-width",success:"pf-m-success",warning:"pf-m-warning",danger:"pf-m-danger"},textInputGroup:"pf-v5-c-text-input-group",themeDark:"pf-v5-theme-dark"};const Ni=Sn({name:"CaretDownIcon",height:512,width:320,svgPath:"M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z",yOffset:0,xOffset:0}),Si=Sn({name:"CheckCircleIcon",height:512,width:512,svgPath:"M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z",yOffset:0,xOffset:0}),ki=Sn({name:"ExclamationCircleIcon",height:512,width:512,svgPath:"M504 256c0 136.997-111.043 248-248 248S8 392.997 8 256C8 119.083 119.043 8 256 8s248 111.083 248 248zm-248 50c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z",yOffset:0,xOffset:0}),Ri=Sn({name:"ExclamationTriangleIcon",height:512,width:576,svgPath:"M569.517 440.013C587.975 472.007 564.806 512 527.94 512H48.054c-36.937 0-59.999-40.055-41.577-71.987L246.423 23.985c18.467-32.009 64.72-31.951 83.154 0l239.94 416.028zM288 354c-25.405 0-46 20.595-46 46s20.595 46 46 46 46-20.595 46-46-20.595-46-46-46zm-43.673-165.346l7.418 136c.347 6.364 5.609 11.346 11.982 11.346h48.546c6.373 0 11.635-4.982 11.982-11.346l7.418-136c.375-6.874-5.098-12.654-11.982-12.654h-63.383c-6.884 0-12.356 5.78-11.981 12.654z",yOffset:0,xOffset:0});var Ii;!function(e){e.success="success",e.danger="danger",e.warning="warning"}(Ii||(Ii={}));class Ti extends a.Component{constructor(){super(...arguments),this.displayName="MenuToggleBase",this.state={ouiaStateId:qe(_i.displayName,this.props.variant)}}render(){const e=this.props,{children:t,className:n,icon:i,badge:o,isExpanded:s,isDisabled:c,isFullHeight:d,isFullWidth:p,splitButtonOptions:u,variant:f,status:m,statusIcon:h,innerRef:b,onClick:g,"aria-label":v,ouiaId:y,ouiaSafe:x}=e,w=r(e,["children","className","icon","badge","isExpanded","isDisabled","isFullHeight","isFullWidth","splitButtonOptions","variant","status","statusIcon","innerRef","onClick","aria-label","ouiaId","ouiaSafe"]),E="plain"===f,O="plainText"===f,C="typeahead"===f,N=Ke(_i.displayName,null!=y?y:this.state.ouiaStateId,x);let S=h;if(!h)switch(m){case Ii.success:S=a.createElement(Si,{"aria-hidden":"true"});break;case Ii.warning:S=a.createElement(Ri,{"aria-hidden":"true"});break;case Ii.danger:S=a.createElement(ki,{"aria-hidden":"true"})}const k=a.createElement("span",{className:l(Ci.menuToggleControls)},void 0!==m&&a.createElement("span",{className:l(Ci.menuToggleStatusIcon)},S),a.createElement("span",{className:l(Ci.menuToggleToggleIcon)},a.createElement(Ni,{"aria-hidden":!0}))),R=a.createElement(a.Fragment,null,i&&a.createElement("span",{className:l(Ci.menuToggleIcon)},i),C?t:a.createElement("span",{className:l(Ci.menuToggleText)},t),a.isValidElement(o)&&a.createElement("span",{className:l(Ci.menuToggleCount)},o),C?a.createElement("button",Object.assign({type:"button",className:l(Ci.menuToggleButton),"aria-expanded":s,onClick:g,"aria-label":v||"Menu toggle",tabIndex:-1},N),k):k),I=l(Ci.menuToggle,s&&Ci.modifiers.expanded,"primary"===f&&Ci.modifiers.primary,"secondary"===f&&Ci.modifiers.secondary,m&&Ci.modifiers[m],(E||O)&&Ci.modifiers.plain,O&&Ci.modifiers.text,d&&Ci.modifiers.fullHeight,p&&Ci.modifiers.fullWidth,c&&Ci.modifiers.disabled,n),T=Object.assign(Object.assign({children:E?t:R},c&&{disabled:!0}),w);return C?a.createElement("div",Object.assign({ref:b,className:l(I,Ci.modifiers.typeahead)},T)):u?a.createElement("div",{ref:b,className:l(I,Ci.modifiers.splitButton,"action"===(null==u?void 0:u.variant)&&Ci.modifiers.action)},null==u?void 0:u.items,a.createElement("button",Object.assign({className:l(Ci.menuToggleButton,t&&Ci.modifiers.text),type:"button","aria-expanded":s,"aria-label":v,disabled:c,onClick:g},w,N),t&&a.createElement("span",{className:l(Ci.menuToggleText)},t),k)):a.createElement("button",Object.assign({className:l(I),type:"button","aria-label":v,"aria-expanded":s,ref:b,disabled:c,onClick:g},T,N))}}Ti.defaultProps={className:"",isExpanded:!1,isDisabled:!1,isFullWidth:!1,isFullHeight:!1,ouiaSafe:!0};const _i=a.forwardRef(((e,t)=>a.createElement(Ti,Object.assign({innerRef:t},e))));_i.displayName="MenuToggle";const Di=Sn({name:"EllipsisVIcon",height:512,width:192,svgPath:"M96 184c39.8 0 72 32.2 72 72s-32.2 72-72 72-72-32.2-72-72 32.2-72 72-72zM24 80c0 39.8 32.2 72 72 72s72-32.2 72-72S135.8 8 96 8 24 40.2 24 80zm0 352c0 39.8 32.2 72 72 72s72-32.2 72-72-32.2-72-72-72-72 32.2-72 72z",yOffset:0,xOffset:0}),Pi=e=>{var{items:t,isDisabled:n,rowData:i,extraData:o,actionsToggle:l,popperProps:s={position:"end",direction:"down"},innerRef:c,firstActionItemRef:d,isOnOpenChangeDisabled:p=!1}=e,u=r(e,["items","isDisabled","rowData","extraData","actionsToggle","popperProps","innerRef","firstActionItemRef","isOnOpenChangeDisabled"]);const[f,m]=a.useState(!1),h=()=>{m(!f)},b=(e,t)=>{t&&(e.preventDefault(),t(e,o&&o.rowIndex,i,o))};return a.createElement(a.Fragment,null,t.filter((e=>e.isOutsideDropdown)).map(((e,t)=>{var{title:i,itemKey:o,onClick:l,isOutsideDropdown:s}=e,c=r(e,["title","itemKey","onClick","isOutsideDropdown"]);return"string"==typeof i?a.createElement(xi,Object.assign({onClick:e=>b(e,l)},c,{isDisabled:n,key:o||`outside_dropdown_${t}`,"data-key":o||`outside_dropdown_${t}`}),i):a.cloneElement(i,Object.assign({onClick:l,isDisabled:n},c))})),a.createElement(ai,Object.assign({isOpen:f,onOpenChange:p?void 0:e=>m(e),toggle:e=>l?l({onToggle:h,isOpen:f,isDisabled:n,toggleRef:e}):a.createElement(_i,{"aria-label":"Kebab toggle",ref:e,onClick:h,isExpanded:f,isDisabled:n,variant:"plain"},a.createElement(Di,null))},i&&i.actionProps,{ref:c},u,{popperProps:s}),a.createElement(li,null,t.filter((e=>!e.isOutsideDropdown)).map(((e,t)=>{var{title:n,itemKey:i,onClick:o,tooltipProps:l,isSeparator:s,shouldCloseOnClick:c=!0}=e,p=r(e,["title","itemKey","onClick","tooltipProps","isSeparator","shouldCloseOnClick"]);if(s)return a.createElement(Oi,{key:i||t,"data-key":i||t});const u=a.createElement(ri,Object.assign({onClick:e=>{b(e,o),c&&h()}},p,{key:i||t,"data-key":i||t,ref:0===t?d:void 0}),n);return(null==l?void 0:l.content)?a.createElement(Zn,Object.assign({key:i||t},l),u):u})))))},Li=a.forwardRef(((e,t)=>a.createElement(Pi,Object.assign({},e,{innerRef:t}))));Li.displayName="ActionsColumn";const ji=Sn({name:"AngleDownIcon",height:512,width:320,svgPath:"M143 352.3L7 216.3c-9.4-9.4-9.4-24.6 0-33.9l22.6-22.6c9.4-9.4 24.6-9.4 33.9 0l96.4 96.4 96.4-96.4c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9l-136 136c-9.2 9.4-24.4 9.4-33.8 0z",yOffset:0,xOffset:0});var Fi={button:"pf-v5-c-button",check:"pf-v5-c-check",checkInput:"pf-v5-c-check__input",dirRtl:"pf-v5-m-dir-rtl",modifiers:{hidden:"pf-m-hidden",hiddenOnSm:"pf-m-hidden-on-sm",visibleOnSm:"pf-m-visible-on-sm",hiddenOnMd:"pf-m-hidden-on-md",visibleOnMd:"pf-m-visible-on-md",hiddenOnLg:"pf-m-hidden-on-lg",visibleOnLg:"pf-m-visible-on-lg",hiddenOnXl:"pf-m-hidden-on-xl",visibleOnXl:"pf-m-visible-on-xl",hiddenOn_2xl:"pf-m-hidden-on-2xl",visibleOn_2xl:"pf-m-visible-on-2xl",fixed:"pf-m-fixed",stickyHeader:"pf-m-sticky-header",nestedColumnHeader:"pf-m-nested-column-header",borderRow:"pf-m-border-row",striped:"pf-m-striped",expandable:"pf-m-expandable",stripedEven:"pf-m-striped-even",ghostRow:"pf-m-ghost-row",center:"pf-m-center",help:"pf-m-help",favorite:"pf-m-favorite",borderRight:"pf-m-border-right",borderLeft:"pf-m-border-left",expanded:"pf-m-expanded",truncate:"pf-m-truncate",wrap:"pf-m-wrap",nowrap:"pf-m-nowrap",fitContent:"pf-m-fit-content",breakWord:"pf-m-break-word",noBorderRows:"pf-m-no-border-rows",clickable:"pf-m-clickable",selected:"pf-m-selected",firstCellOffsetReset:"pf-m-first-cell-offset-reset",dragOver:"pf-m-drag-over",standalone:"pf-m-standalone",favorited:"pf-m-favorited",noPadding:"pf-m-no-padding",compact:"pf-m-compact",width_10:"pf-m-width-10",width_15:"pf-m-width-15",width_20:"pf-m-width-20",width_25:"pf-m-width-25",width_30:"pf-m-width-30",width_35:"pf-m-width-35",width_40:"pf-m-width-40",width_45:"pf-m-width-45",width_50:"pf-m-width-50",width_60:"pf-m-width-60",width_70:"pf-m-width-70",width_80:"pf-m-width-80",width_90:"pf-m-width-90",width_100:"pf-m-width-100"},table:"pf-v5-c-table",tableAction:"pf-v5-c-table__action",tableButton:"pf-v5-c-table__button",tableButtonContent:"pf-v5-c-table__button-content",tableCaption:"pf-v5-c-table__caption",tableCheck:"pf-v5-c-table__check",tableColumnHelp:"pf-v5-c-table__column-help",tableColumnHelpAction:"pf-v5-c-table__column-help-action",tableCompoundExpansionToggle:"pf-v5-c-table__compound-expansion-toggle",tableControlRow:"pf-v5-c-table__control-row",tableDraggable:"pf-v5-c-table__draggable",tableExpandableRow:"pf-v5-c-table__expandable-row",tableExpandableRowContent:"pf-v5-c-table__expandable-row-content",tableFavorite:"pf-v5-c-table__favorite",tableIcon:"pf-v5-c-table__icon",tableIconInline:"pf-v5-c-table__icon-inline",tableInlineEditAction:"pf-v5-c-table__inline-edit-action",tableSort:"pf-v5-c-table__sort",tableSortIndicator:"pf-v5-c-table__sort-indicator",tableSubhead:"pf-v5-c-table__subhead",tableTbody:"pf-v5-c-table__tbody",tableTd:"pf-v5-c-table__td",tableText:"pf-v5-c-table__text",tableTh:"pf-v5-c-table__th",tableThead:"pf-v5-c-table__thead",tableToggle:"pf-v5-c-table__toggle",tableToggleIcon:"pf-v5-c-table__toggle-icon",tableTr:"pf-v5-c-table__tr",themeDark:"pf-v5-theme-dark"};const Ai=e=>{var{className:t="",children:n=null,isOpen:i,onToggle:o}=e,s=r(e,["className","children","isOpen","onToggle"]);return a.createElement(a.Fragment,null,void 0!==i&&a.createElement(xi,Object.assign({className:l(t,i&&Fi.modifiers.expanded)},s,{variant:"plain","aria-label":s["aria-label"]||"Details",onClick:o,"aria-expanded":i}),a.createElement("div",{className:l(Fi.tableToggleIcon)},a.createElement(ji,null))),n)};Ai.displayName="CollapseColumn";const Mi=Sn({name:"GripVerticalIcon",height:512,width:320,svgPath:"M96 32H32C14.33 32 0 46.33 0 64v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32V64c0-17.67-14.33-32-32-32zm0 160H32c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32zm0 160H32c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32zM288 32h-64c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32V64c0-17.67-14.33-32-32-32zm0 160h-64c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32zm0 160h-64c-17.67 0-32 14.33-32 32v64c0 17.67 14.33 32 32 32h64c17.67 0 32-14.33 32-32v-64c0-17.67-14.33-32-32-32z",yOffset:0,xOffset:0}),Bi=e=>{var{className:t,onClick:n,"aria-label":i,id:o}=e,l=r(e,["className","onClick","aria-label","id"]);return a.createElement(xi,Object.assign({id:o,variant:"plain",className:t,type:"button","aria-label":i||"Draggable row draggable button",onClick:n},l),a.createElement(Mi,{"aria-hidden":!0}))};Bi.displayName="DraggableCell";var Hi={invalid:"pf-m-invalid",success:"pf-m-success",warning:"pf-m-warning",disabled:"pf-m-disabled",active:"pf-m-active",expanded:"pf-m-expanded",plain:"pf-m-plain",typeahead:"pf-m-typeahead",placeholder:"pf-m-placeholder",top:"pf-m-top",alignRight:"pf-m-align-right",static:"pf-m-static",favorite:"pf-m-favorite",favoriteAction:"pf-m-favorite-action",focus:"pf-m-focus",link:"pf-m-link",action:"pf-m-action",selected:"pf-m-selected",description:"pf-m-description",load:"pf-m-load",loading:"pf-m-loading"},Vi="pf-v5-c-select",zi="pf-v5-c-select__list-item",$i="pf-v5-c-select__menu",Wi="pf-v5-c-select__menu-fieldset",Ki="pf-v5-c-select__menu-footer",Gi="pf-v5-c-select__menu-group",Ui="pf-v5-c-select__menu-group-title",qi="pf-v5-c-select__menu-item",Xi="pf-v5-c-select__menu-item-action-icon",Yi="pf-v5-c-select__menu-item-count",Ji="pf-v5-c-select__menu-item-description",Zi="pf-v5-c-select__menu-item-icon",Qi="pf-v5-c-select__menu-item-main",ea="pf-v5-c-select__menu-item-row",ta="pf-v5-c-select__menu-item-text",na="pf-v5-c-select__menu-search",ia="pf-v5-c-select__menu-wrapper",aa="pf-v5-c-select__toggle",oa="pf-v5-c-select__toggle-arrow",ra="pf-v5-c-select__toggle-badge",la="pf-v5-c-select__toggle-button",sa="pf-v5-c-select__toggle-clear",ca="pf-v5-c-select__toggle-icon",da="pf-v5-c-select__toggle-status-icon",pa="pf-v5-c-select__toggle-text",ua="pf-v5-c-select__toggle-typeahead",fa="pf-v5-c-select__toggle-wrapper",ma={formControl:"pf-v5-c-form-control",formControlIcon:"pf-v5-c-form-control__icon",formControlToggleIcon:"pf-v5-c-form-control__toggle-icon",formControlUtilities:"pf-v5-c-form-control__utilities",modifiers:{readonly:"pf-m-readonly",success:"pf-m-success",warning:"pf-m-warning",error:"pf-m-error",plain:"pf-m-plain",expanded:"pf-m-expanded",disabled:"pf-m-disabled",icon:"pf-m-icon",placeholder:"pf-m-placeholder",resizeVertical:"pf-m-resize-vertical",resizeHorizontal:"pf-m-resize-horizontal",resizeBoth:"pf-m-resize-both",status:"pf-m-status"},themeDark:"pf-v5-theme-dark"};const ha=Sn({name:"TimesCircleIcon",height:512,width:512,svgPath:"M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm121.6 313.1c4.7 4.7 4.7 12.3 0 17L338 377.6c-4.7 4.7-12.3 4.7-17 0L256 312l-65.1 65.6c-4.7 4.7-12.3 4.7-17 0L134.4 338c-4.7-4.7-4.7-12.3 0-17l65.6-65-65.6-65.1c-4.7-4.7-4.7-12.3 0-17l39.6-39.6c4.7-4.7 12.3-4.7 17 0l65 65.7 65.1-65.6c4.7-4.7 12.3-4.7 17 0l39.6 39.6c4.7 4.7 4.7 12.3 0 17L312 256l65.6 65.1z",yOffset:0,xOffset:0});var ba="pf-v5-c-form__fieldset",ga="pf-v5-c-form__helper-text",va={horizontal:"pf-m-horizontal",alignRight:"pf-m-align-right",noPaddingTop:"pf-m-no-padding-top",info:"pf-m-info",horizontalOnXs:"pf-m-horizontal-on-xs",horizontalOnSm:"pf-m-horizontal-on-sm",horizontalOnMd:"pf-m-horizontal-on-md",horizontalOnLg:"pf-m-horizontal-on-lg",horizontalOnXl:"pf-m-horizontal-on-xl",horizontalOn_2xl:"pf-m-horizontal-on-2xl",limitWidth:"pf-m-limit-width",action:"pf-m-action",disabled:"pf-m-disabled",inline:"pf-m-inline",stack:"pf-m-stack",error:"pf-m-error",success:"pf-m-success",warning:"pf-m-warning",inactive:"pf-m-inactive",hidden:"pf-m-hidden",expanded:"pf-m-expanded"};const ya=a.createContext(null);ya.Provider;const xa=ya.Consumer;var wa,Ea,Oa;!function(e){e.single="single",e.checkbox="checkbox",e.typeahead="typeahead",e.typeaheadMulti="typeaheadmulti"}(wa||(wa={})),function(e){e.right="right",e.left="left"}(Ea||(Ea={})),function(e){e.up="up",e.down="down"}(Oa||(Oa={}));const Ca="input, button, select, textarea, a[href]";class Na extends a.Component{constructor(){super(...arguments),this.ref=a.createRef(),this.liRef=a.createRef(),this.favoriteRef=a.createRef(),this.onKeyDown=(e,t,n,i)=>{const{index:a,keyHandler:o,isLastOptionBeforeFooter:r}=this.props;let l=!1;void 0!==r&&(l=r(a)),e.key===A&&(i&&!l?(e.shiftKey?o(a,t,"up"):o(a,t,"down"),e.stopPropagation()):e.shiftKey?o(a,t,"up"):o(a,t,"tab")),e.preventDefault(),e.key===V?o(a,t,"up"):e.key===z?o(a,t,"down"):e.key===$?o(a,t,"left"):e.key===W?o(a,t,"right"):e.key===H&&(void 0!==n?n():this.ref.current.click())}}componentDidMount(){this.props.sendRef(this.props.isDisabled?null:this.ref.current,this.props.isDisabled?null:this.favoriteRef.current,this.props.isDisabled?null:this.liRef.current,this.props.index)}componentDidUpdate(){this.props.sendRef(this.props.isDisabled?null:this.ref.current,this.props.isDisabled?null:this.favoriteRef.current,this.props.isDisabled?null:this.liRef.current,this.props.index)}render(){const e=this.props,{children:t,className:n,id:i,description:o,itemCount:s,value:c,onClick:d,isDisabled:p,isPlaceholder:u,isNoResultsOption:f,isSelected:m,isChecked:h,isFocused:b,sendRef:g,keyHandler:v,index:y,component:x,inputId:w,isFavorite:E,ariaIsFavoriteLabel:O="starred",ariaIsNotFavoriteLabel:C="not starred",isLoad:N,isLoading:S,setViewMoreNextIndex:k,isLastOptionBeforeFooter:R,isGrouped:I=!1}=e,T=r(e,["children","className","id","description","itemCount","value","onClick","isDisabled","isPlaceholder","isNoResultsOption","isSelected","isChecked","isFocused","sendRef","keyHandler","index","component","inputId","isFavorite","ariaIsFavoriteLabel","ariaIsNotFavoriteLabel","isLoad","isLoading","setViewMoreNextIndex","isLastOptionBeforeFooter","isGrouped"]),_=x;i||null===E||console.error("Please provide an id to use the favorites feature.");const D=i||Re("select-option"),P=e=>a.createElement("button",{className:l(qi,Hi.action,Hi.favoriteAction),"aria-label":E?O:C,onClick:()=>{e(D.replace("favorite-",""),E)},onKeyDown:t=>{this.onKeyDown(t,1,(()=>e(D.replace("favorite-",""),E)))},ref:this.favoriteRef},a.createElement("span",{className:l(Xi)},a.createElement(Hn,null))),L=s?a.createElement("span",{className:l(ea)},a.createElement("span",{className:l(ta)},t||c&&c.toString&&c.toString()),a.createElement("span",{className:l(Yi)},s)):t||c.toString(),j=e=>{k(),d(e)},F=(e,r,s,g,v,y)=>s!==wa.checkbox&&S&&I?a.createElement("div",{role:"presentation",className:l(zi,S&&Hi.loading,n)},t):s!==wa.checkbox&&N&&I?a.createElement("div",null,a.createElement("button",Object.assign({},T,{role:"presentation",className:l(qi,Hi.load,n),onClick:e=>{j(e),e.stopPropagation()},ref:this.ref,type:"button"}),t||c.toString())):s!==wa.checkbox?a.createElement("li",{id:D,role:"presentation",className:l(S&&zi,!S&&ia,E&&Hi.favorite,b&&Hi.focus,S&&Hi.loading),ref:this.liRef},S&&t,N&&!I&&a.createElement("button",Object.assign({},T,{className:l(qi,Hi.load,n),onClick:e=>{j(e),e.stopPropagation()},ref:this.ref,onKeyDown:e=>{this.onKeyDown(e,0)},type:"button"}),L),!S&&!N&&a.createElement(a.Fragment,null,a.createElement(_,Object.assign({},T,{className:l(qi,N&&Hi.load,m&&Hi.selected,p&&Hi.disabled,o&&Hi.description,null!==E&&Hi.link,n),onClick:t=>{p||(d(t),e(t,c,u),y&&r())},role:"option","aria-selected":m||null,ref:this.ref,onKeyDown:e=>{this.onKeyDown(e,0)},type:"button"}),o&&a.createElement(a.Fragment,null,a.createElement("span",{className:l(Qi)},L,m&&a.createElement("span",{className:l(Zi)},a.createElement(Tn,{"aria-hidden":!0}))),a.createElement("span",{className:l(Ji)},o)),!o&&a.createElement(a.Fragment,null,L,m&&a.createElement("span",{className:l(Zi)},a.createElement(Tn,{"aria-hidden":!0})))),null!==E&&i&&P(v))):s===wa.checkbox&&N?a.createElement("button",{className:l(qi,Hi.load,b&&Hi.focus,n),onKeyDown:e=>{this.onKeyDown(e,0,void 0,!0)},onClick:e=>{j(e),e.stopPropagation()},ref:this.ref},t||c&&c.toString&&c.toString()):s===wa.checkbox&&S?a.createElement("div",{className:l(zi,S&&Hi.loading,n)},t):s!==wa.checkbox||f||S||N?s!==wa.checkbox||!f||S||N?void 0:a.createElement("div",null,a.createElement(_,Object.assign({},T,{className:l(qi,m&&Hi.selected,p&&Hi.disabled,n),role:"option","aria-selected":m||null,ref:this.ref,onKeyDown:e=>{this.onKeyDown(e,0,void 0,!0)},type:"button"}),L)):a.createElement("label",Object.assign({},T,{className:l(_n,qi,p&&Hi.disabled,o&&Hi.description,n),onKeyDown:e=>{this.onKeyDown(e,0,void 0,!0)}}),a.createElement("input",{id:w||`${g}-${c.toString()}`,className:l(Ln),type:"checkbox",onChange:t=>{p||(d(t),e(t,c))},ref:this.ref,checked:h||!1,disabled:p}),a.createElement("span",{className:l(jn,p&&Hi.disabled)},L),o&&a.createElement("div",{className:l(Pn)},o));return a.createElement(xa,null,(({onSelect:e,onClose:t,variant:n,inputIdPrefix:i,onFavorite:o,shouldResetOnSelect:r})=>a.createElement(a.Fragment,null,F(e,t,n,i,o,r))))}}Na.displayName="SelectOption",Na.defaultProps={className:"",value:"",index:0,isDisabled:!1,isPlaceholder:!1,isSelected:!1,isChecked:!1,isNoResultsOption:!1,component:"button",onClick:()=>{},sendRef:()=>{},keyHandler:()=>{},inputId:"",isFavorite:null,isLoad:!1,isLoading:!1,setViewMoreNextIndex:()=>{},isLastOptionBeforeFooter:()=>!1};const Sa=e=>{var{children:t=[],className:n="",label:i="",titleId:o=""}=e,s=r(e,["children","className","label","titleId"]);return a.createElement(xa,null,(({variant:e})=>a.createElement("div",Object.assign({},s,{className:l(Gi,n)}),a.createElement("div",{className:l(Ui),id:o,"aria-hidden":!0},i),e===wa.checkbox?t:a.createElement("ul",{role:"listbox"},t))))};Sa.displayName="SelectGroup";class ka extends a.Component{extendChildren(e){const{children:t,hasInlineFilter:n,isGrouped:i}=this.props,o=t;let r=n?1:0;return i?a.Children.map(o,(t=>t.type===Sa?a.cloneElement(t,{titleId:t.props.label&&t.props.label.replace(/\W/g,"-"),children:a.Children.map(t.props.children,(t=>this.cloneOption(t,r++,e)))}):this.cloneOption(t,r++,e))):a.Children.map(o,(t=>this.cloneOption(t,r++,e)))}cloneOption(e,t,n){const{selected:i,sendRef:o,keyHandler:r}=this.props,l=this.checkForValue(e.props.value,i);return e.type===Oi?e:a.cloneElement(e,{inputId:`${n}-${t}`,isSelected:l,sendRef:o,keyHandler:r,index:t})}checkForValue(e,t){if(!t||!e)return!1;const n="string"!=typeof e&&e.toString&&e.compareTo;return Array.isArray(t)?n?t.some((t=>t.compareTo(e))):t.includes(e):n?t.compareTo(e):t===e}extendCheckboxChildren(e){const{isGrouped:t,checked:n,sendRef:i,keyHandler:o,hasInlineFilter:r,isLastOptionBeforeFooter:s}=this.props;let c=r?1:0;return t?a.Children.map(e,(e=>e.type===Oi?e:e.type===Na?a.cloneElement(e,{isChecked:this.checkForValue(e.props.value,n),sendRef:i,keyHandler:o,index:c++,isLastOptionBeforeFooter:s}):a.cloneElement(e,{titleId:e.props.label&&e.props.label.replace(/\W/g,"-"),children:e.props.children?a.createElement("fieldset",{"aria-labelledby":e.props.label&&e.props.label.replace(/\W/g,"-"),className:l(Wi)},a.Children.map(e.props.children,(e=>e.type===Oi?e:a.cloneElement(e,{isChecked:this.checkForValue(e.props.value,n),sendRef:i,keyHandler:o,index:c++,isLastOptionBeforeFooter:s})))):null}))):a.Children.map(e,(e=>e.type===Oi?e:a.cloneElement(e,{isChecked:this.checkForValue(e.props.value,n),sendRef:i,keyHandler:o,index:c++,isLastOptionBeforeFooter:s})))}renderSelectMenu({variant:e,inputIdPrefix:t}){const n=this.props,{children:i,isCustomContent:o,className:s,isExpanded:c,openedOnEnter:d,selected:p,checked:u,isGrouped:f,position:m,sendRef:h,keyHandler:b,maxHeight:g,noResultsFoundText:v,createText:y,"aria-label":x,"aria-labelledby":w,hasInlineFilter:E,innerRef:O,footer:C,footerRef:N,isLastOptionBeforeFooter:S}=n,k=r(n,["children","isCustomContent","className","isExpanded","openedOnEnter","selected","checked","isGrouped","position","sendRef","keyHandler","maxHeight","noResultsFoundText","createText","aria-label","aria-labelledby","hasInlineFilter","innerRef","footer","footerRef","isLastOptionBeforeFooter"]);let R="div";const I=Object.assign({ref:O,className:l(C?`${$i}-list`:$i,m===Ea.right&&Hi.alignRight,s)},g&&{style:{maxHeight:g,overflow:"auto"}}),T=()=>e===wa.checkbox?this.extendCheckboxChildren(i):this.extendChildren(t);return o?I.children=i:E?0===a.Children.count(i)?I.children=a.createElement("fieldset",{className:l(Wi)}):I.children=a.createElement("fieldset",{"aria-label":x,"aria-labelledby":!x&&w||null,className:l(ba)},i.shift(),T()):(I.children=T(),f||(R="ul",I.role="listbox",I["aria-label"]=x,I["aria-labelledby"]=!x&&w||null)),a.createElement(a.Fragment,null,a.createElement(R,Object.assign({},I,k)),C&&a.createElement("div",{className:l(Ki),ref:N},C))}render(){return a.createElement(xa,null,(e=>this.renderSelectMenu(e)))}}ka.displayName="SelectMenu",ka.defaultProps={className:"",isExpanded:!1,isGrouped:!1,openedOnEnter:!1,selected:"",maxHeight:"",position:Ea.left,sendRef:()=>{},keyHandler:()=>{},isCustomContent:!1,hasInlineFilter:!1,isLastOptionBeforeFooter:()=>{}};const Ra=a.forwardRef(((e,t)=>a.createElement(ka,Object.assign({innerRef:t},e),e.children)));class Ia extends a.Component{constructor(e){super(e),this.onDocClick=e=>{const{parentRef:t,menuRef:n,footerRef:i,isOpen:a,onToggle:o,onClose:r}=this.props,l=t&&t.current&&t.current.contains(e.target),s=n&&n.current&&n.current.contains&&n.current.contains(e.target),c=i&&i.current&&i.current.contains&&i.current.contains(e.target);a&&!(l||s||c)&&(o(e,!1),r())},this.handleGlobalKeys=e=>{const{parentRef:t,menuRef:n,hasFooter:i,footerRef:a,isOpen:o,variant:r,onToggle:l,onClose:s,moveFocusToLastMenuItem:c}=this.props,d=t&&t.current&&t.current.contains(e.target),p=n&&n.current&&n.current.contains&&n.current.contains(e.target);if(o&&e.key===A&&(r===wa.typeahead||r===wa.typeaheadMulti))return this.props.handleTypeaheadKeys("tab",e.shiftKey),void e.preventDefault();if(o&&e.key===A&&i){const t=_e(a,Ca);if(t.length<=0)return l(e,!1),s(),void this.toggle.current.focus();{const n=t.findIndex((e=>e===document.activeElement));if(-1===n){if(!e.shiftKey)return void t[0].focus();"checkbox"!==r&&(l(e,!1),s(),this.toggle.current.focus())}return e.shiftKey?void(0===n&&(c(),e.preventDefault())):(n+1<t.length?t[n+1].focus():(l(e,!1),s(),this.toggle.current.focus()),void e.preventDefault())}}!o||e.key!==B&&e.key!==A||!d&&!p||(l(e,!1),s(),this.toggle.current.focus())},this.onKeyDown=e=>{const{isOpen:t,onToggle:n,variant:i,onClose:a,onEnter:o,handleTypeaheadKeys:r}=this.props;i!==wa.typeahead&&i!==wa.typeaheadMulti||(e.key===z||e.key===V?(r(e.key===z?"down":e.key===V&&"up"),e.preventDefault()):e.key===H&&(t?r("enter"):n(e,!t))),i===wa.typeahead||i===wa.typeaheadMulti||e.key===A&&!t||e.key!==H&&e.key!==M||(e.preventDefault(),e.key!==A&&e.key!==H&&e.key!==M||!t?e.key!==H&&e.key!==M||t||(n(e,!t),o()):(n(e,!t),a(),this.toggle.current.focus()))};const{variant:t}=e;t===wa.typeahead||wa.typeaheadMulti;this.props.innerRef?this.toggle=this.props.innerRef:this.toggle=a.createRef()}componentDidMount(){document.addEventListener("click",this.onDocClick,{capture:!0}),document.addEventListener("touchstart",this.onDocClick),document.addEventListener("keydown",this.handleGlobalKeys)}componentWillUnmount(){document.removeEventListener("click",this.onDocClick,{capture:!0}),document.removeEventListener("touchstart",this.onDocClick),document.removeEventListener("keydown",this.handleGlobalKeys)}render(){const e=this.props,{className:t,children:n,isOpen:i,isActive:o,isPlain:s,isDisabled:c,hasPlaceholderStyle:d,variant:p,onToggle:u,onEnter:f,onClose:m,onBlur:h,onClickTypeaheadToggleButton:b,handleTypeaheadKeys:g,moveFocusToLastMenuItem:v,parentRef:y,menuRef:x,id:w,type:E,hasClearButton:O,"aria-labelledby":C,"aria-label":N,hasFooter:S,footerRef:k,toggleIndicator:R,innerRef:I}=e,T=r(e,["className","children","isOpen","isActive","isPlain","isDisabled","hasPlaceholderStyle","variant","onToggle","onEnter","onClose","onBlur","onClickTypeaheadToggleButton","handleTypeaheadKeys","moveFocusToLastMenuItem","parentRef","menuRef","id","type","hasClearButton","aria-labelledby","aria-label","hasFooter","footerRef","toggleIndicator","innerRef"]),_=p===wa.typeahead||p===wa.typeaheadMulti||O,D={id:w,"aria-labelledby":C,"aria-expanded":i,"aria-haspopup":p!==wa.checkbox?"listbox":null};return a.createElement(a.Fragment,null,!_&&a.createElement("button",Object.assign({},T,D,{ref:this.toggle,type:E,className:l(aa,d&&Hi.placeholder,c&&Hi.disabled,s&&Hi.plain,o&&Hi.active,t),"aria-label":N,onBlur:h,onClick:e=>{u(e,!i),i&&m()},onKeyDown:this.onKeyDown,disabled:c}),n,a.createElement("span",{className:l(oa)},null!=R?R:a.createElement(Ni,null))),_&&a.createElement("div",Object.assign({},T,{ref:this.toggle,className:l(aa,d&&Hi.placeholder,c&&Hi.disabled,s&&Hi.plain,_&&Hi.typeahead,t),onBlur:h,onClick:e=>{c||(u(e,!i),i&&m())},onKeyDown:this.onKeyDown}),n,a.createElement("button",Object.assign({},D,{type:E,className:l(si.button,la,Hi.plain),"aria-label":N,onClick:e=>{u(e,!i),i&&m(),b()}},(p===wa.typeahead||p===wa.typeaheadMulti)&&{tabIndex:-1},{disabled:c}),null!=R?R:a.createElement(Ni,{className:l(oa)}))))}}Ia.displayName="SelectToggle",Ia.defaultProps={className:"",isOpen:!1,isActive:!1,isPlain:!1,isDisabled:!1,hasPlaceholderStyle:!1,hasClearButton:!1,hasFooter:!1,variant:"single","aria-labelledby":"","aria-label":"",type:"button",onToggle:()=>{},onEnter:()=>{},onClose:()=>{},onClickTypeaheadToggleButton:()=>{}};const Ta=a.forwardRef(((e,t)=>a.createElement(Ia,Object.assign({innerRef:t},e)))),_a=Sn({name:"TimesIcon",height:512,width:352,svgPath:"M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z",yOffset:0,xOffset:0});var Da="pf-v5-c-chip",Pa="pf-v5-c-chip__actions",La="pf-v5-c-chip__content",ja="pf-v5-c-chip__text",Fa={overflow:"pf-m-overflow",draggable:"pf-m-draggable"};const Aa="--pf-v5-c-chip__text--MaxWidth";class Ma extends a.Component{constructor(e){super(e),this.span=a.createRef(),this.setChipStyle=()=>({[Aa]:this.props.textMaxWidth}),this.renderOverflowChip=()=>{const e=this.props,{badge:t,children:n,className:i,onClick:o,ouiaId:s,textMaxWidth:c,style:d,component:p,tooltipPosition:u,isOverflowChip:f,closeBtnAriaLabel:m,isReadOnly:h}=e,b=r(e,["badge","children","className","onClick","ouiaId","textMaxWidth","style","component","tooltipPosition","isOverflowChip","closeBtnAriaLabel","isReadOnly"]),g=p;return a.createElement(g,Object.assign({onClick:o},c&&Object.assign({style:this.setChipStyle()},d),{className:l(Da,Fa.overflow,i)},"button"===p?{type:"button"}:{},Ke("OverflowChip",void 0!==s?s:this.state.ouiaStateId),b),a.createElement("span",{className:l(La)},a.createElement("span",{className:l(ja)},n),t&&t))},this.renderChip=e=>{const{children:t,tooltipPosition:n}=this.props;return this.state.isTooltipVisible?a.createElement(Zn,{position:n,content:t},this.renderInnerChip(e)):this.renderInnerChip(e)},this.state={isTooltipVisible:!1,ouiaStateId:qe(Ma.displayName)}}componentDidMount(){this.setState({isTooltipVisible:Boolean(this.span.current&&this.span.current.offsetWidth<this.span.current.scrollWidth)})}componentDidUpdate(e,t){const n=Boolean(this.span.current&&this.span.current.offsetWidth<this.span.current.scrollWidth);t.isTooltipVisible!==n&&this.setState({isTooltipVisible:n})}renderInnerChip(e){const t=this.props,{badge:n,children:i,className:o,onClick:s,closeBtnAriaLabel:c,isReadOnly:d,isOverflowChip:p,tooltipPosition:u,id:f,component:m,ouiaId:h,textMaxWidth:b}=t,g=r(t,["badge","children","className","onClick","closeBtnAriaLabel","isReadOnly","isOverflowChip","tooltipPosition","id","component","ouiaId","textMaxWidth"]),v=m;return a.createElement(v,Object.assign({},b&&{style:this.setChipStyle()},{className:l(Da,o)},this.state.isTooltipVisible&&{tabIndex:0},Ke(Ma.displayName,void 0!==h?h:this.state.ouiaStateId),g),a.createElement("span",{className:l(La)},a.createElement("span",{ref:this.span,className:l(ja),id:e},i),n&&n),!d&&a.createElement("span",{className:l(Pa)},a.createElement(xi,{onClick:s,variant:"plain","aria-label":c,id:`remove_${e}`,"aria-labelledby":`remove_${e} ${e}`,ouiaId:h||c},a.createElement(_a,{"aria-hidden":"true"}))))}render(){const{isOverflowChip:e}=this.props;return a.createElement(Ve,null,(t=>e?this.renderOverflowChip():this.renderChip(this.props.id||t)))}}Ma.displayName="Chip",Ma.defaultProps={closeBtnAriaLabel:"close",className:"",isOverflowChip:!1,isReadOnly:!1,tooltipPosition:"top",onClick:e=>{},component:"div"};var Ba,Ha,Va="pf-v5-c-chip-group",za="pf-v5-c-chip-group__close",$a="pf-v5-c-chip-group__label",Wa="pf-v5-c-chip-group__list",Ka="pf-v5-c-chip-group__list-item",Ga="pf-v5-c-chip-group__main",Ua={category:"pf-m-category"};class qa extends a.Component{constructor(e){super(e),this.headingRef=a.createRef(),this.toggleCollapse=()=>{this.setState((e=>({isOpen:!e.isOpen,isTooltipVisible:Boolean(this.headingRef.current&&this.headingRef.current.offsetWidth<this.headingRef.current.scrollWidth)})))},this.state={isOpen:this.props.defaultIsOpen,isTooltipVisible:!1}}componentDidMount(){this.setState({isTooltipVisible:Boolean(this.headingRef.current&&this.headingRef.current.offsetWidth<this.headingRef.current.scrollWidth)})}renderLabel(e){const{categoryName:t,tooltipPosition:n}=this.props,{isTooltipVisible:i}=this.state;return i?a.createElement(Zn,{position:n,content:t},a.createElement("span",{tabIndex:0,ref:this.headingRef,className:l($a)},a.createElement("span",{id:e},t))):a.createElement("span",{ref:this.headingRef,className:l($a),id:e},t)}render(){const e=this.props,{categoryName:t,children:n,className:i,isClosable:o,closeBtnAriaLabel:s,"aria-label":c,onClick:d,onOverflowChipClick:p,numChips:u,expandedText:f,collapsedText:m,ouiaId:h,defaultIsOpen:b,tooltipPosition:g}=e,v=r(e,["categoryName","children","className","isClosable","closeBtnAriaLabel","aria-label","onClick","onOverflowChipClick","numChips","expandedText","collapsedText","ouiaId","defaultIsOpen","tooltipPosition"]),{isOpen:y}=this.state,x=a.Children.count(n),w=(E=m,O={remaining:a.Children.count(n)-u},E.replace(/\${(.*?)}/g,((e,t)=>O[t]||"")));var E,O;const C=e=>{const r=y?a.Children.toArray(n):a.Children.toArray(n).slice(0,u);return a.createElement("div",Object.assign({className:l(Va,i,t&&Ua.category),role:"group"},t&&{"aria-labelledby":e},!t&&{"aria-label":c},Ke(qa.displayName,h)),a.createElement("div",{className:l(Ga)},t&&this.renderLabel(e),a.createElement("ul",Object.assign({className:l(Wa)},t&&{"aria-labelledby":e},!t&&{"aria-label":c},{role:"list"},v),r.map(((e,t)=>a.createElement("li",{className:l(Ka),key:t},e))),x>u&&a.createElement("li",{className:l(Ka)},a.createElement(Ma,{isOverflowChip:!0,onClick:e=>{this.toggleCollapse(),p(e)},component:"button"},y?f:w)))),o&&a.createElement("div",{className:l(za)},a.createElement(xi,{variant:"plain","aria-label":s,onClick:d,id:`remove_group_${e}`,"aria-labelledby":`remove_group_${e} ${e}`,ouiaId:h||s},a.createElement(ha,{"aria-hidden":"true"}))))};return 0===x?null:a.createElement(Ve,null,(e=>C(this.props.id||e)))}}qa.displayName="ChipGroup",qa.defaultProps={expandedText:"Show Less",collapsedText:"${remaining} more",categoryName:"",defaultIsOpen:!1,numChips:3,isClosable:!1,onClick:e=>{},onOverflowChipClick:e=>{},closeBtnAriaLabel:"Close chip group",tooltipPosition:"top","aria-label":"Chip group category"},function(e){e.right="right",e.left="left"}(Ba||(Ba={})),function(e){e.up="up",e.down="down"}(Ha||(Ha={}));const Xa=a.createContext({onSelect:e=>{},id:"",toggleIndicatorClass:"",toggleIconClass:"",toggleTextClass:"",menuClass:"",itemClass:"",toggleClass:"",baseClass:"",baseComponent:"div",sectionClass:"",sectionTitleClass:"",sectionComponent:"section",disabledClass:"",plainTextClass:"",menuComponent:"ul"}),Ya=a.createContext({keyHandler:null,sendRef:null});class Ja extends a.Component{constructor(){super(...arguments),this.ref=a.createRef(),this.additionalRef=a.createRef(),this.getInnerNode=e=>e&&e.childNodes&&e.childNodes.length?e.childNodes[0]:e,this.onKeyDown=e=>{var t,n,i,a,o,r,l,s,c,d;const p=e.target===this.ref.current?0:1;this.props.customChild||e.preventDefault(),"ArrowUp"===e.key?(null===(n=null===(t=this.props.context)||void 0===t?void 0:t.keyHandler)||void 0===n||n.call(t,this.props.index,p,D),e.stopPropagation()):"ArrowDown"===e.key?(null===(a=null===(i=this.props.context)||void 0===i?void 0:i.keyHandler)||void 0===a||a.call(i,this.props.index,p,P),e.stopPropagation()):"ArrowRight"===e.key?(null===(r=null===(o=this.props.context)||void 0===o?void 0:o.keyHandler)||void 0===r||r.call(o,this.props.index,p,L),e.stopPropagation()):"ArrowLeft"===e.key?(null===(s=null===(l=this.props.context)||void 0===l?void 0:l.keyHandler)||void 0===s||s.call(l,this.props.index,p,j),e.stopPropagation()):"Enter"!==e.key&&" "!==e.key||(e.target.click(),this.props.enterTriggersArrowDown&&(null===(d=null===(c=this.props.context)||void 0===c?void 0:c.keyHandler)||void 0===d||d.call(c,this.props.index,p,P)))},this.componentRef=e=>{this.ref.current=e;const{component:t}=this.props,n=t.ref;n&&("function"==typeof n?n(e):n.current=e)}}componentDidMount(){var e;const{context:t,index:n,isDisabled:i,role:a,customChild:o,autoFocus:r}=this.props,l=o?this.getInnerNode(this.ref.current):this.ref.current;null===(e=null==t?void 0:t.sendRef)||void 0===e||e.call(t,n,[l,o?l:this.additionalRef.current],i,"separator"===a),r&&setTimeout((()=>l.focus()))}componentDidUpdate(){var e;const{context:t,index:n,isDisabled:i,role:a,customChild:o}=this.props,r=o?this.getInnerNode(this.ref.current):this.ref.current;null===(e=null==t?void 0:t.sendRef)||void 0===e||e.call(t,n,[r,o?r:this.additionalRef.current],i,"separator"===a)}extendAdditionalChildRef(){const{additionalChild:e}=this.props;return a.cloneElement(e,{ref:this.additionalRef})}render(){const e=this.props,{className:t,children:n,context:i,onClick:o,component:s,role:c,isDisabled:d,isAriaDisabled:p,isPlainText:u,index:f,href:m,tooltip:h,tooltipProps:b,id:g,componentID:v,listItemClassName:y,additionalChild:x,customChild:w,enterTriggersArrowDown:E,icon:O,autoFocus:C,styleChildren:N,description:S,inoperableEvents:T}=e,D=r(e,["className","children","context","onClick","component","role","isDisabled","isAriaDisabled","isPlainText","index","href","tooltip","tooltipProps","id","componentID","listItemClassName","additionalChild","customChild","enterTriggersArrowDown","icon","autoFocus","styleChildren","description","inoperableEvents"]);let P=l(O&&_.icon,p&&_.ariaDisabled,t);"a"===s?D["aria-disabled"]=d||p:"button"===s&&(D["aria-disabled"]=d||p,D.type=D.type||"button");const L=e=>a.cloneElement(e,Object.assign(Object.assign({},N&&{className:l(e.props.className,P)}),"separator"!==this.props.role&&{role:c,ref:this.componentRef})),j=e=>{const t=e,i=S?a.createElement(a.Fragment,null,a.createElement("div",{className:I},O&&a.createElement("span",{className:l(R)},O),n),a.createElement("div",{className:k},S)):a.createElement(a.Fragment,null,O&&a.createElement("span",{className:l(R)},O),n);return a.createElement(t,Object.assign({},D,d||p?T.reduce(((e,t)=>Object.assign(Object.assign({},e),{[t]:e=>{e.preventDefault()}})),{}):null,{href:m,ref:this.ref,className:P,id:v,role:c}),i)};return a.createElement(Xa.Consumer,null,(({onSelect:e,itemClass:t,disabledClass:n,plainTextClass:i})=>{return"separator"!==this.props.role&&(P=l(P,d&&n,u&&i,t,S&&_.description)),w?a.cloneElement(w,{ref:this.ref,onKeyDown:this.onKeyDown}):a.createElement("li",Object.assign({},y&&{className:y},{role:"none",onKeyDown:this.onKeyDown,onClick:t=>{d||p||(null==o||o(t),null==e||e(t))},id:g}),(r=a.isValidElement(s)?L(s):j(s),h?a.createElement(Zn,Object.assign({content:h},b),r):r),x&&this.extendAdditionalChildRef());var r}))}}Ja.displayName="InternalDropdownItem",Ja.defaultProps={className:"",component:"a",role:"none",isDisabled:!1,isPlainText:!1,tooltipProps:{},onClick:e=>{},index:-1,context:{keyHandler:()=>{},sendRef:()=>{}},enterTriggersArrowDown:!1,icon:null,styleChildren:!0,description:null,inoperableEvents:["onClick","onKeyPress"]};const Za=e=>{var{className:t="",ref:n,ouiaId:i,ouiaSafe:o}=e,l=r(e,["className","ref","ouiaId","ouiaSafe"]);const s=Ge(Za.displayName,i,o);return a.createElement(Ya.Consumer,null,(e=>a.createElement(Ja,Object.assign({},l,{context:e,component:a.createElement(Oi,{component:wi.div}),className:t,role:"separator"},s))))};Za.displayName="DropdownSeparator";const Qa=e=>{var t=r(e,["children"]);return a.createElement(Za,Object.assign({},t))};Qa.displayName="ApplicationLauncherSeparator";const eo={success:Si,error:ki,warning:Ri},to=e=>{var{status:t,customIcon:n,className:i}=e,o=r(e,["status","customIcon","className"]);const s=t&&eo[t];return a.createElement("span",Object.assign({className:l(ma.formControlIcon,t&&ma.modifiers.status,i)},o),n||a.createElement(s,null))};var no,io;!function(e){e.text="text",e.date="date",e.datetimeLocal="datetime-local",e.email="email",e.month="month",e.number="number",e.password="password",e.search="search",e.tel="tel",e.time="time",e.url="url"}(no||(no={})),function(e){e.default="default",e.plain="plain"}(io||(io={}));class ao extends a.Component{constructor(e){super(e),this.inputRef=a.createRef(),this.observer=()=>{},this.handleChange=e=>{this.props.onChange&&this.props.onChange(e,e.currentTarget.value)},this.handleResize=()=>{const e=this.props.innerRef||this.inputRef;e&&e.current&&Me(e.current,String(this.props.value))},this.restoreText=()=>{const e=this.props.innerRef||this.inputRef;e.current.value=String(this.props.value),e.current.scrollLeft=e.current.scrollWidth},this.onFocus=e=>{const{isLeftTruncated:t,isStartTruncated:n,onFocus:i}=this.props;(t||n)&&this.restoreText(),i&&i(e)},this.onBlur=e=>{const{isLeftTruncated:t,isStartTruncated:n,onBlur:i}=this.props;(t||n)&&this.handleResize(),i&&i(e)},this.sanitizeInputValue=e=>"string"==typeof e?e.replace(/\n/g," "):e,e.id||e["aria-label"]||e["aria-labelledby"]||console.error("Text input:","Text input requires either an id or aria-label to be specified"),this.state={ouiaStateId:qe(ao.displayName)}}componentDidMount(){if(this.props.isLeftTruncated||this.props.isStartTruncated){const e=this.props.innerRef||this.inputRef;this.observer=((e,t,n)=>{let i;if(Fe){const{ResizeObserver:n}=window;if(e&&n){const t=new n((e=>{window.requestAnimationFrame((()=>{Array.isArray(e)&&e.length}))}));t.observe(e),i=()=>t.unobserve(e)}else window.addEventListener("resize",t),i=()=>window.removeEventListener("resize",t)}return()=>{i&&i()}})(e.current,this.handleResize),this.handleResize()}}componentWillUnmount(){(this.props.isLeftTruncated||this.props.isStartTruncated)&&this.observer()}render(){const e=this.props,{innerRef:t,className:n,type:i,value:o,placeholder:s,validated:c,onChange:d,onFocus:p,onBlur:u,isLeftTruncated:f,isStartTruncated:m,isExpanded:h,expandedProps:b,readOnly:g,readOnlyVariant:v,isRequired:y,isDisabled:x,customIcon:w,ouiaId:E,ouiaSafe:O}=e,C=r(e,["innerRef","className","type","value","placeholder","validated","onChange","onFocus","onBlur","isLeftTruncated","isStartTruncated","isExpanded","expandedProps","readOnly","readOnlyVariant","isRequired","isDisabled","customIcon","ouiaId","ouiaSafe"]),N=["success","error","warning"].includes(c),S=b?{"aria-expanded":null==b?void 0:b.isExpanded,"aria-controls":null==b?void 0:b.ariaControls,role:"combobox"}:{};return a.createElement("span",{className:l(ma.formControl,v&&ma.modifiers.readonly,"plain"===v&&ma.modifiers.plain,x&&ma.modifiers.disabled,(h||(null==b?void 0:b.isExpanded))&&ma.modifiers.expanded,w&&ma.modifiers.icon,N&&ma.modifiers[c],n)},a.createElement("input",Object.assign({},C,{onFocus:this.onFocus,onBlur:this.onBlur,onChange:this.handleChange,type:i,value:this.sanitizeInputValue(o),"aria-invalid":C["aria-invalid"]?C["aria-invalid"]:c===F.error},S,{required:y,disabled:x,readOnly:!!v||g,ref:t||this.inputRef,placeholder:s},Ke(oo.displayName,void 0!==E?E:this.state.ouiaStateId,O))),(w||N)&&a.createElement("span",{className:l(ma.formControlUtilities)},w&&a.createElement(to,{customIcon:w}),N&&a.createElement(to,{status:c})))}}ao.displayName="TextInputBase",ao.defaultProps={"aria-label":null,isRequired:!1,validated:"default",isDisabled:!1,isExpanded:!1,type:no.text,isLeftTruncated:!1,isStartTruncated:!1,onChange:()=>{},ouiaSafe:!0};const oo=a.forwardRef(((e,t)=>a.createElement(ao,Object.assign({},e,{innerRef:t}))));oo.displayName="TextInput";let ro=0;class lo extends a.Component{constructor(){super(...arguments),this.parentRef=a.createRef(),this.menuComponentRef=a.createRef(),this.filterRef=a.createRef(),this.clearRef=a.createRef(),this.inputRef=a.createRef(),this.refCollection=[[]],this.optionContainerRefCollection=[],this.footerRef=a.createRef(),this.state={focusFirstOption:!1,typeaheadInputValue:null,typeaheadFilteredChildren:a.Children.toArray(this.props.children),favoritesGroup:[],typeaheadCurrIndex:-1,typeaheadStoredIndex:-1,creatableValue:"",tabbedIntoFavoritesMenu:!1,ouiaStateId:qe(lo.displayName,this.props.variant),viewMoreNextIndex:-1},this.getTypeaheadActiveChild=e=>this.refCollection[e]?this.refCollection[e][0]:null,this.componentDidUpdate=(e,t)=>{if(this.props.hasInlineFilter&&(this.refCollection[0][0]=this.filterRef.current),t.focusFirstOption||!this.state.focusFirstOption||this.props.customContent)-1!==this.state.viewMoreNextIndex&&this.refCollection.length>this.state.viewMoreNextIndex&&"spinner"!==this.props.loadingVariant&&this.refCollection[this.state.viewMoreNextIndex][0]&&"typeahead"!==this.props.variant&&"typeaheadmulti"!==this.props.variant&&(this.refCollection[this.state.viewMoreNextIndex][0].focus(),this.setState({viewMoreNextIndex:-1}));else{const e=this.refCollection.find((e=>null!==e&&e[0]));e&&e[0]&&e[0].focus()}const n=(e,t)=>Array.from(e).some(((e,n)=>{const i=e.props,a=t[n],{props:o}=a;return i&&o?i.value!==o.value||i.label!==o.label||i.isDisabled!==o.isDisabled||i.isPlaceholder!==o.isPlaceholder:e!==a}));if((e.children.length!==this.props.children.length||n(e.children,this.props.children)||this.props.isGrouped&&Array.from(e.children).some(((e,t)=>e.type===Sa&&e.props.children&&this.props.children[t].props.children&&(e.props.children.length!==this.props.children[t].props.children.length||n(e.props.children,this.props.children[t].props.children)))))&&this.updateTypeAheadFilteredChildren(t.typeaheadInputValue||"",null),this.props.onFavorite&&(this.props.favorites.length!==e.favorites.length||this.state.typeaheadFilteredChildren!==t.typeaheadFilteredChildren)){const e=((e,t,n,i)=>{if(t){const t=[];return e.forEach((e=>{if(n.length>0)return e.props.children&&e.props.children.filter((e=>n.includes(e.props.id))).map((e=>t.push(a.cloneElement(e,{isFavorite:!0,id:`favorite-${e.props.id}`}))))})),t}return e.filter((e=>n.includes(e.props.id))).map((e=>a.cloneElement(e,{isFavorite:!0,enterTriggersArrowDown:i})))})("typeahead"===this.props.variant||"typeaheadmulti"===this.props.variant?this.state.typeaheadFilteredChildren:this.props.children,this.props.isGrouped,this.props.favorites),t=e.length?[a.createElement(Sa,{key:"favorites",label:this.props.favoritesLabel},e),a.createElement(Oi,{key:"favorites-group-divider"})]:[];this.setState({favoritesGroup:t})}},this.onEnter=()=>{this.setState({focusFirstOption:!0})},this.onToggle=(e,t)=>{const{isInputValuePersisted:n,onSelect:i,onToggle:a,hasInlineFilter:o}=this.props;!t&&n&&i&&i(void 0,this.inputRef.current?this.inputRef.current.value:""),t&&o&&this.setState({focusFirstOption:!0}),a(e,t)},this.onClose=()=>{const{isInputFilterPersisted:e}=this.props;this.setState(Object.assign(Object.assign({focusFirstOption:!1,typeaheadInputValue:null},!e&&{typeaheadFilteredChildren:a.Children.toArray(this.props.children)}),{typeaheadCurrIndex:-1,tabbedIntoFavoritesMenu:!1,viewMoreNextIndex:-1}))},this.onChange=e=>{""===e.target.value.toString()||this.props.isOpen||this.onToggle(e,!0),this.props.onTypeaheadInputChanged&&this.props.onTypeaheadInputChanged(e.target.value.toString()),this.setState({typeaheadCurrIndex:-1,typeaheadInputValue:e.target.value,creatableValue:e.target.value}),this.updateTypeAheadFilteredChildren(e.target.value.toString(),e),this.refCollection=[[]]},this.updateTypeAheadFilteredChildren=(e,t)=>{let n;const{onFilter:i,isCreatable:o,isCreateOptionOnTop:r,onCreateOption:l,createText:s,noResultsFoundText:c,children:d,isGrouped:p,isCreateSelectOptionObject:u,loadingVariant:f}=this.props;if(i)n=i(t,t?t.target.value:e)||d;else{let t;try{t=new RegExp(e.toString(),"i")}catch(n){t=new RegExp(e.toString().replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"i")}const i=a.Children.toArray(d);if(p){const o=e=>e.props.value&&e.props.value.toString&&0===this.getDisplay(e.props.value.toString(),"text").search(t);n=""!==e.toString()?a.Children.map(d,(e=>{if(!a.isValidElement(e)||e.type!==Sa)return a.Children.toArray(e).filter(o);{const t=a.Children.toArray(e.props.children).filter(o);if(t.length>0)return a.cloneElement(e,{titleId:e.props.label&&e.props.label.replace(/\W/g,"-"),children:t})}})):i}else n=""!==e.toString()?i.filter((n=>{const i=n.props.value;if(!i)return!0;const a="string"!=typeof i&&i.toString&&i.compareTo;return"spinner"!==f&&(null==f?void 0:f.text)===i||("spinner"===f&&"loading"===i||(a?i.compareTo(e):0===this.getDisplay(n.props.value.toString(),"text").search(t)))})):i}if(n||(n=[]),0===n.length&&!o&&n.push(a.createElement(Na,{isDisabled:!0,key:"no-results",value:c,isNoResultsOption:!0})),o&&""!==e){const t=e;if(!n.find((e=>e.props.value&&e.props.value.toString().toLowerCase()===t.toString().toLowerCase()))){const e=u?{toString:()=>t,compareTo:e=>this.toString().toLowerCase().includes(e.toString().toLowerCase())}:t,i=a.createElement(Na,{key:`create ${t}`,value:e,onClick:()=>l&&l(t)},s,' "',t,'"');r?n.unshift(i):n.push(i)}}this.setState({typeaheadFilteredChildren:n})},this.onClick=e=>{this.props.isOpen||this.onToggle(e,!0)},this.clearSelection=e=>{this.setState({typeaheadInputValue:null,typeaheadFilteredChildren:a.Children.toArray(this.props.children),typeaheadCurrIndex:-1})},this.sendRef=(e,t,n,i)=>{this.refCollection[i]=[e,t],this.optionContainerRefCollection[i]=n},this.handleMenuKeys=(e,t,n)=>{Te(e,t,n,this.refCollection,this.refCollection),this.props.variant!==wa.typeahead&&this.props.variant!==wa.typeaheadMulti||"tab"!==n&&this.handleTypeaheadKeys(n)},this.moveFocus=(e,t=!0)=>{const{isCreatable:n,createText:i}=this.props,a=Boolean(this.refCollection[e][0]&&this.refCollection[e][0].classList.contains("pf-m-description")),o=Boolean(this.refCollection[e][0]&&this.refCollection[e][0].classList.contains("pf-m-load")),r=a?this.refCollection[e][0].firstElementChild:this.refCollection[e][0];let l="";n&&r.textContent.includes(i)?l=this.state.creatableValue:r&&!o&&(l=r.textContent),this.setState((n=>({typeaheadCurrIndex:t?e:n.typeaheadCurrIndex,typeaheadStoredIndex:e,typeaheadInputValue:l})))},this.switchFocusToFavoriteMenu=()=>{const{typeaheadCurrIndex:e,typeaheadStoredIndex:t}=this.state;let n=0;-1!==e?n=e:-1!==t&&(n=t),null!==this.refCollection[n]&&null!==this.refCollection[n][0]?this.refCollection[n][0].focus():this.clearRef.current.focus(),this.setState({tabbedIntoFavoritesMenu:!0,typeaheadCurrIndex:-1})},this.moveFocusToLastMenuItem=()=>{const e=this.refCollection.length;e>0&&null!==this.refCollection[e-1]&&null!==this.refCollection[e-1][0]&&this.refCollection[e-1][0].focus()},this.handleTypeaheadKeys=(e,t=!1)=>{const{isOpen:n,onFavorite:i,isCreatable:a}=this.props,{typeaheadCurrIndex:o,tabbedIntoFavoritesMenu:r}=this.state,l=this.getTypeaheadActiveChild(o);if(n)if("enter"===e){if((-1!==o||a&&1===this.refCollection.length)&&(l||this.refCollection[0]&&this.refCollection[0][0])){if(l){if(!l.classList.contains("pf-m-load")){const e=l.childElementCount>1?l.firstChild.textContent:l.textContent;this.setState({typeaheadInputValue:e})}}else this.refCollection[0]&&this.refCollection[0][0]&&this.setState({typeaheadInputValue:this.refCollection[0][0].textContent});l?l.click():this.refCollection[0][0].click()}}else if("tab"===e)if(i)if(this.inputRef.current===document.activeElement)if(this.props.footer&&t){const e=_e(this.footerRef,Ca);e.length>0&&e[e.length-1]&&e[e.length-1].focus()}else this.switchFocusToFavoriteMenu();else if(this.props.footer){let e=!1;const n=_e(this.footerRef,Ca);if(n.length>0){const i=n.findIndex((e=>e===document.activeElement));-1===i?t?this.inputRef.current.focus():n[0].focus():t?0===i?(this.switchFocusToFavoriteMenu(),e=!0):n[i-1].focus():n[i+1]?n[i+1].focus():this.inputRef.current.focus()}else this.inputRef.current.focus(),e=!1;this.setState({tabbedIntoFavoritesMenu:e})}else this.inputRef.current.focus(),this.setState({tabbedIntoFavoritesMenu:!1});else if(this.props.footer){const e=_e(this.footerRef,Ca),n=e.findIndex((e=>e===document.activeElement));this.inputRef.current===document.activeElement?t?(this.onToggle(null,!1),this.onClose()):e[0]?e[0].focus():(this.onToggle(null,!1),this.onClose()):t?0===n?this.inputRef.current.focus():e[n-1].focus():e[n+1]?e[n+1].focus():(this.onToggle(null,!1),this.inputRef.current.focus(),this.onClose())}else this.onToggle(null,!1),this.onClose();else if(r){const e=this.refCollection.findIndex((e=>void 0!==e&&(e[0]===document.activeElement||e[1]===document.activeElement)));this.moveFocus(e)}else{if(null===this.refCollection[0][0])return;let t;if(t=-1===o&&"down"===e?0:-1===o&&"up"===e?this.refCollection.length-1:"left"!==e&&"right"!==e?De(o,e,this.refCollection):o,null===this.refCollection[t])return;this.moveFocus(t)}},this.onClickTypeaheadToggleButton=()=>{this.inputRef&&this.inputRef.current&&this.inputRef.current.focus()},this.getDisplay=(e,t="node")=>{if(!e)return;const n=this.props.isGrouped?a.Children.toArray(this.props.children).reduce(((e,t)=>[...e,...a.Children.toArray(t.props.children)]),[]).find((t=>t.props.value.toString()===e.toString())):a.Children.toArray(this.props.children).find((t=>t.props.value&&t.props.value.toString()===e.toString()));return n?n&&n.props.children?"node"===t?n.props.children:this.findText(n):n.props.value.toString():e.toString()},this.findText=e=>{if("string"==typeof e)return e;if(a.isValidElement(e)){const t=[];return a.Children.toArray(e.props.children).forEach((e=>t.push(this.findText(e)))),t.join("")}return""},this.generateSelectedBadge=()=>{const{customBadgeText:e,selections:t}=this.props;return null!==e?e:Array.isArray(t)&&t.length>0?t.length:null},this.setVieMoreNextIndex=()=>{this.setState({viewMoreNextIndex:this.refCollection.length-1})},this.isLastOptionBeforeFooter=e=>!(!this.props.footer||e!==this.refCollection.length-1)}extendTypeaheadChildren(e,t){const{isGrouped:n,onFavorite:i,createText:o}=this.props,r=t?t.concat(this.state.typeaheadFilteredChildren):this.state.typeaheadFilteredChildren,l=this.optionContainerRefCollection[e];let s=this.getTypeaheadActiveChild(e);return s&&s.classList.contains("pf-m-description")&&(s=s.firstElementChild),this.refCollection=[[]],this.optionContainerRefCollection=[],n?a.Children.map(r,(e=>e.type===Oi?e:e.type===Sa&&i?a.cloneElement(e,{titleId:e.props.label&&e.props.label.replace(/\W/g,"-"),children:a.Children.map(e.props.children,(t=>t.type===Oi?t:a.cloneElement(t,{isFocused:l&&(l.id===t.props.id||this.props.isCreatable&&s.textContent===`${o} "${e.props.value}"`)})))}):e.type===Sa?a.cloneElement(e,{titleId:e.props.label&&e.props.label.replace(/\W/g,"-"),children:a.Children.map(e.props.children,(e=>e.type===Oi?e:a.cloneElement(e,{isFocused:s&&(s.textContent===e.props.value.toString()||this.props.isCreatable&&s.textContent===`${o} "${e.props.value}"`)})))}):a.cloneElement(e,{isFocused:s&&(s.textContent===e.props.value.toString()||this.props.isCreatable&&s.textContent===`${o} "${e.props.value}"`)}))):r.map(((t,n)=>"Divider"===t.type.displayName?t:a.cloneElement(t,{isFocused:s?s.textContent===t.props.value.toString()||this.props.isCreatable&&s.textContent===`${o} "${t.props.value}"`:n===e})))}render(){const e=this.props,{children:t,chipGroupProps:n,chipGroupComponent:i,className:o,customContent:s,variant:c,direction:d,onSelect:p,onClear:u,onBlur:f,toggleId:m,toggleRef:h,isOpen:b,isGrouped:g,isPlain:v,isDisabled:y,hasPlaceholderStyle:x,validated:w,selections:E,typeAheadAriaLabel:O,typeAheadAriaDescribedby:C,clearSelectionsAriaLabel:N,toggleAriaLabel:S,removeSelectionAriaLabel:k,"aria-label":R,"aria-labelledby":I,"aria-describedby":T,"aria-invalid":_,placeholderText:D,width:P,maxHeight:L,toggleIcon:j,toggleIndicator:M,ouiaId:B,ouiaSafe:K,hasInlineFilter:G,isCheckboxSelectionBadgeHidden:U,inlineFilterPlaceholderText:q,onFilter:X,onTypeaheadInputChanged:Y,onCreateOption:J,isCreatable:Z,onToggle:Q,createText:ee,noResultsFoundText:te,customBadgeText:ne,inputIdPrefix:ie,inputAutoComplete:ae,isInputValuePersisted:oe,isInputFilterPersisted:re,menuAppendTo:le,favorites:se,onFavorite:ce,favoritesLabel:de,footer:pe,loadingVariant:ue,isCreateSelectOptionObject:fe,isCreateOptionOnTop:me,shouldResetOnSelect:he,isFlipEnabled:be,zIndex:ge}=e,ve=r(e,["children","chipGroupProps","chipGroupComponent","className","customContent","variant","direction","onSelect","onClear","onBlur","toggleId","toggleRef","isOpen","isGrouped","isPlain","isDisabled","hasPlaceholderStyle","validated","selections","typeAheadAriaLabel","typeAheadAriaDescribedby","clearSelectionsAriaLabel","toggleAriaLabel","removeSelectionAriaLabel","aria-label","aria-labelledby","aria-describedby","aria-invalid","placeholderText","width","maxHeight","toggleIcon","toggleIndicator","ouiaId","ouiaSafe","hasInlineFilter","isCheckboxSelectionBadgeHidden","inlineFilterPlaceholderText","onFilter","onTypeaheadInputChanged","onCreateOption","isCreatable","onToggle","createText","noResultsFoundText","customBadgeText","inputIdPrefix","inputAutoComplete","isInputValuePersisted","isInputFilterPersisted","menuAppendTo","favorites","onFavorite","favoritesLabel","footer","loadingVariant","isCreateSelectOptionObject","isCreateOptionOnTop","shouldResetOnSelect","isFlipEnabled","zIndex"]),{focusFirstOption:ye,typeaheadCurrIndex:xe,typeaheadInputValue:we,typeaheadFilteredChildren:Ee,favoritesGroup:Oe}=this.state,Ce=m||"pf-select-toggle-id-"+ro++,Ne=Array.isArray(E)?E:[E],Se=a.Children.toArray(t).find((e=>e.props.value===Ne[0])),ke=Se&&Se.props.isPlaceholder,Re=Boolean(Ne[0]&&""!==Ne[0]),Ie=this.getTypeaheadActiveChild(xe);let Te=null,De=[];if(ce){let e=t;"typeahead"===c||"typeaheadmulti"===c?e=this.extendTypeaheadChildren(xe,Oe):ce&&(e=Oe.concat(t)),De=((e,t,n)=>t?e.map((e=>a.cloneElement(e,{children:a.Children.map(e.props.children,(e=>e.type===Qa||e.type===Oi?e:a.cloneElement(e,{isFavorite:n.some((t=>t===e.props.id||`favorite-${t}`===e.props.id))})))}))):e.map((e=>a.cloneElement(e,{isFavorite:n.some((t=>t===e.props.id))}))))(e,g,se)}else De=t;if(!s&&!Re&&!D){const e=a.Children.toArray(t).filter((e=>!0===e.props.isPlaceholder));Te=e[0]&&this.getDisplay(e[0].props.value,"node")||t[0]&&this.getDisplay(t[0].props.value,"node")}b&&void 0===De.find((e=>"loading"===(null==e?void 0:e.key)))&&("spinner"===ue?De.push(a.createElement(Na,{isLoading:!0,key:"loading",value:"loading"},a.createElement(ui,{size:"lg"}))):(null==ue?void 0:ue.text)&&De.push(a.createElement(Na,{isLoad:!0,key:"loading",value:ue.text,setViewMoreNextIndex:this.setVieMoreNextIndex,onClick:null==ue?void 0:ue.onClick})));const Pe=u!==lo.defaultProps.onClear,Le=a.createElement("button",{className:l(si.button,si.modifiers.plain,sa),onClick:e=>{this.clearSelection(e),u(e),e.stopPropagation()},"aria-label":N,type:"button",disabled:y,ref:this.clearRef,onKeyDown:e=>{e.key===H&&this.clearRef.current.click()}},a.createElement(ha,{"aria-hidden":!0}));let je,Fe,Ae=null;if(c===wa.typeaheadMulti&&(Ae=i||a.createElement(qa,Object.assign({},n),Ne&&Ne.map((e=>a.createElement(Ma,{key:e,onClick:t=>p(t,e),closeBtnAriaLabel:k},this.getDisplay(e,"node")))))),G){De=[a.createElement(a.Fragment,null,a.createElement("div",{key:"inline-filter",className:l(na)},a.createElement("div",{key:"inline-filter",className:l(ma.formControl)},a.createElement("input",{key:"inline-filter-input",type:"search",onChange:this.onChange,placeholder:q,onKeyDown:e=>{if(e.key===V)this.handleMenuKeys(0,0,"up"),e.preventDefault();else if(e.key===z)this.handleMenuKeys(0,0,"down"),e.preventDefault();else if(e.key===$)this.handleMenuKeys(0,0,"left"),e.preventDefault();else if(e.key===W)this.handleMenuKeys(0,0,"right"),e.preventDefault();else if(e.key===A&&c!==wa.checkbox&&this.props.footer)if(e.shiftKey)this.onToggle(e,!1);else{const t=_e(this.footerRef,Ca);t.length>0?(t[0].focus(),e.stopPropagation(),e.preventDefault()):this.onToggle(e,!1)}else e.key===A&&c===wa.checkbox&&(e.shiftKey?this.handleMenuKeys(0,0,"up"):this.handleMenuKeys(0,0,"down"),e.stopPropagation(),e.preventDefault())},ref:this.filterRef,autoComplete:ae}))),a.createElement(Oi,{key:"inline-filter-divider"})),...Ee].map(((e,t)=>a.cloneElement(e,{key:t})))}if(s)je={selected:Ne,openedOnEnter:ye,isCustomContent:!0},Fe=s;else switch(c){case"single":je={selected:Ne[0],hasInlineFilter:G,openedOnEnter:ye},Fe=De;break;case"checkbox":je={checked:Ne,isGrouped:g,hasInlineFilter:G,openedOnEnter:ye},Fe=De;break;case"typeahead":je={selected:Ne[0],openedOnEnter:ye},Fe=ce?De:this.extendTypeaheadChildren(xe),0===Fe.length&&Fe.push(a.createElement(Na,{isDisabled:!0,key:0,value:te,isNoResultsOption:!0}));break;case"typeaheadmulti":je={selected:Ne,openedOnEnter:ye},Fe=ce?De:this.extendTypeaheadChildren(xe),0===Fe.length&&Fe.push(a.createElement(Na,{isDisabled:!0,key:0,value:te,isNoResultsOption:!0}))}const Me=be&&"inline"!==le,Be=a.createElement(Ra,Object.assign({className:l(Me&&Hi.static)},ve,{isGrouped:g,selected:Ne},je,{openedOnEnter:ye,"aria-label":R,"aria-labelledby":I,sendRef:this.sendRef,keyHandler:this.handleMenuKeys,maxHeight:L,ref:this.menuComponentRef,footer:pe,footerRef:this.footerRef,isLastOptionBeforeFooter:this.isLastOptionBeforeFooter}),Fe),He=pe?a.createElement("div",{className:l($i)}," ",Be," "):Be,ze=a.createRef(),$e=a.createElement("div",Object.assign({className:l(Vi,b&&Hi.expanded,w===F.success&&Hi.success,w===F.warning&&Hi.warning,w===F.error&&Hi.invalid,d===Oa.up&&Hi.top,o),ref:ze},P&&{style:{width:P}},w!==F.default&&{"aria-invalid":_}),b&&He),We=a.createElement("div",Object.assign({className:l(Vi,b&&Hi.expanded,w===F.success&&Hi.success,w===F.warning&&Hi.warning,w===F.error&&Hi.invalid,d===Oa.up&&Hi.top,o),ref:this.parentRef},Ke(lo.displayName,void 0!==B?B:this.state.ouiaStateId,K),P&&{style:{width:P}},w!==F.default&&{"aria-invalid":_}),a.createElement(Ta,Object.assign({id:Ce,parentRef:this.parentRef,menuRef:this.menuComponentRef,ref:h},pe&&{footerRef:this.footerRef},{isOpen:b,isPlain:v,hasPlaceholderStyle:x&&(!Ne.length||null===Ne[0]||ke),onToggle:this.onToggle,onEnter:this.onEnter,onClose:this.onClose,onBlur:f,variant:c,toggleIndicator:M,"aria-labelledby":`${I||""} ${Ce}`,"aria-label":S},T&&{"aria-describedby":T},{handleTypeaheadKeys:this.handleTypeaheadKeys,moveFocusToLastMenuItem:this.moveFocusToLastMenuItem,isDisabled:y,hasClearButton:Pe,hasFooter:void 0!==pe,onClickTypeaheadToggleButton:this.onClickTypeaheadToggleButton}),s&&a.createElement("div",{className:l(fa)},j&&a.createElement("span",{className:l(ca)},j),a.createElement("span",{className:l(pa)},D)),c===wa.single&&!s&&a.createElement(a.Fragment,null,a.createElement("div",{className:l(fa)},j&&a.createElement("span",{className:l(ca)},j),a.createElement("span",{className:l(pa)},this.getDisplay(Ne[0],"node")||D||Te)),Pe&&Re&&Le),c===wa.checkbox&&!s&&a.createElement(a.Fragment,null,a.createElement("div",{className:l(fa)},j&&a.createElement("span",{className:l(ca)},j),a.createElement("span",{className:l(pa)},D),!U&&Re&&a.createElement("div",{className:l(ra)},a.createElement("span",{className:l(fi,mi.read)},this.generateSelectedBadge()))),Pe&&Re&&Le),c===wa.typeahead&&!s&&a.createElement(a.Fragment,null,a.createElement("div",{className:l(fa)},j&&a.createElement("span",{className:l(ca)},j),a.createElement(oo,Object.assign({className:l(ua),"aria-activedescendant":Ie&&Ie.id,id:`${Ce}-select-typeahead`,"aria-label":O},C&&{"aria-describedby":C},{placeholder:D,value:null!==we?we:this.getDisplay(Ne[0],"text")||"",onChange:e=>this.onChange(e),onClick:this.onClick,autoComplete:ae,isDisabled:y,ref:this.inputRef}))),Pe&&(Ne[0]||we)&&Le),c===wa.typeaheadMulti&&!s&&a.createElement(a.Fragment,null,a.createElement("div",{className:l(fa)},j&&a.createElement("span",{className:l(ca)},j),Ne&&Array.isArray(Ne)&&Ne.length>0&&Ae,a.createElement(oo,Object.assign({className:l(ua),"aria-activedescendant":Ie&&Ie.id,id:`${Ce}-select-multi-typeahead-typeahead`,"aria-label":O,"aria-invalid":w===F.error},C&&{"aria-describedby":C},{placeholder:D,value:null!==we?we:"",onChange:e=>this.onChange(e),onClick:this.onClick,autoComplete:ae,isDisabled:y,ref:this.inputRef}))),Pe&&(Ne&&Ne.length>0||we)&&Le),w===F.success&&a.createElement("span",{className:l(da)},a.createElement(Si,{"aria-hidden":"true"})),w===F.error&&a.createElement("span",{className:l(da)},a.createElement(ki,{"aria-hidden":"true"})),w===F.warning&&a.createElement("span",{className:l(da)},a.createElement(Ri,{"aria-hidden":"true"}))),b&&"inline"===le&&He),Ge=()=>this.parentRef&&this.parentRef.current?this.parentRef.current.parentElement:null;return a.createElement(Ve,null,(e=>a.createElement(ya.Provider,{value:{onSelect:p,onFavorite:ce,onClose:this.onClose,variant:c,inputIdPrefix:ie||e,shouldResetOnSelect:he}},"inline"===le?We:a.createElement(un,{width:"auto",trigger:We,triggerRef:this.parentRef,popper:$e,popperRef:ze,direction:d,appendTo:"parent"===le?Ge():le,isVisible:b,zIndex:ge}))))}}lo.displayName="Select",lo.defaultProps={children:[],className:"",position:Ea.left,direction:Oa.down,toggleId:null,isOpen:!1,isGrouped:!1,isPlain:!1,isDisabled:!1,hasPlaceholderStyle:!1,isCreatable:!1,isCreateOptionOnTop:!1,validated:"default","aria-label":"","aria-labelledby":"","aria-describedby":"","aria-invalid":!1,typeAheadAriaLabel:"",typeAheadAriaDescribedby:"",clearSelectionsAriaLabel:"Clear all",toggleAriaLabel:"Options menu",removeSelectionAriaLabel:"Remove",selections:[],createText:"Create",placeholderText:"",noResultsFoundText:"No results found",variant:wa.single,width:"",onClear:()=>{},onCreateOption:()=>{},toggleIcon:null,toggleIndicator:null,onFilter:null,onTypeaheadInputChanged:null,customContent:null,hasInlineFilter:!1,inlineFilterPlaceholderText:null,customBadgeText:null,inputIdPrefix:"",inputAutoComplete:"off",menuAppendTo:"inline",favorites:[],favoritesLabel:"Favorites",ouiaSafe:!0,chipGroupComponent:null,isInputValuePersisted:!1,isInputFilterPersisted:!1,isCreateSelectOptionObject:!1,shouldResetOnSelect:!0,isFlipEnabled:!0,zIndex:9999};var so="pf-v5-c-inline-edit__action",co="pf-v5-c-inline-edit__group",po="pf-v5-c-inline-edit__input",uo="pf-v5-c-inline-edit__value",fo={iconGroup:"pf-m-icon-group",footer:"pf-m-footer",column:"pf-m-column",valid:"pf-m-valid",plain:"pf-m-plain",actionGroup:"pf-m-action-group",enableEditable:"pf-m-enable-editable",inlineEditable:"pf-m-inline-editable",enable:"pf-m-enable",bold:"pf-m-bold"};const mo=({value:e,rowIndex:t,cellIndex:n,onSelect:i=(()=>{}),clearSelection:o,isOpen:r=!1,onToggle:s=(()=>{}),selections:c=[""],options:d=[],props:p})=>{const u=a.createElement(lo,Object.assign({},p.editableSelectProps,{onSelect:(e,a,o)=>{i(e,a,t,n,o)}},o&&{onClear:e=>{o(e,t,n)}},{isOpen:r,onToggle:s,selections:c}),d);return a.createElement(a.Fragment,null,a.createElement("div",{className:uo},Array.isArray(e)?e.join(", "):e),a.createElement("div",{className:po},u,a.createElement("div",{className:l(ga,va.error),"aria-live":"polite"},p.errorText)))};mo.displayName="EditableSelectInputCell";const ho=({value:e,rowIndex:t,cellIndex:n,props:i,handleTextInputChange:o,inputAriaLabel:r,isDisabled:s=!1})=>a.createElement(a.Fragment,null,a.createElement("div",{className:uo},e),a.createElement("div",{className:po},a.createElement(oo,{isDisabled:s,value:void 0!==i.editableValue?i.editableValue:e,validated:!1!==i.isValid?"default":"error",type:"text",onChange:(e,i)=>{o(i,e,t,n)},"aria-label":r}),a.createElement("div",{className:l(ga,va.error),"aria-live":"polite"},i.errorText)));ho.displayName="EditableTextCell";const bo=e=>{var{children:t=null}=e,n=r(e,["children"]);return a.createElement("div",Object.assign({},n,{className:l(Fi.tableExpandableRowContent)}),t)};bo.displayName="ExpandableRowContent";const go=Sn({name:"HelpIcon",height:1024,width:1024,svgPath:"M521.3,576 C627.5,576 713.7,502 713.7,413.7 C713.7,325.4 627.6,253.6 521.3,253.6 C366,253.6 334.5,337.7 329.2,407.2 C329.2,414.3 335.2,416 343.5,416 L445,416 C450.5,416 458,415.5 460.8,406.5 C460.8,362.6 582.9,357.1 582.9,413.6 C582.9,441.9 556.2,470.9 521.3,473 C486.4,475.1 447.3,479.8 447.3,521.7 L447.3,553.8 C447.3,570.8 456.1,576 472,576 C487.9,576 521.3,576 521.3,576 M575.3,751.3 L575.3,655.3 C575.313862,651.055109 573.620137,646.982962 570.6,644 C567.638831,640.947672 563.552355,639.247987 559.3,639.29884 L463.3,639.29884 C459.055109,639.286138 454.982962,640.979863 452,644 C448.947672,646.961169 447.247987,651.047645 447.29884,655.3 L447.29884,751.3 C447.286138,755.544891 448.979863,759.617038 452,762.6 C454.961169,765.652328 459.047645,767.352013 463.3,767.30116 L559.3,767.30116 C563.544891,767.313862 567.617038,765.620137 570.6,762.6 C573.659349,759.643612 575.360354,755.553963 575.3,751.3 M512,896 C300.2,896 128,723.9 128,512 C128,300.3 300.2,128 512,128 C723.8,128 896,300.2 896,512 C896,723.8 723.7,896 512,896 M512.1,0 C229.7,0 0,229.8 0,512 C0,794.2 229.8,1024 512.1,1024 C794.4,1024 1024,794.3 1024,512 C1024,229.7 794.4,0 512.1,0",yOffset:0,xOffset:0});var vo={noPadding:"pf-m-no-padding",widthAuto:"pf-m-width-auto",top:"pf-m-top",topLeft:"pf-m-top-left",topRight:"pf-m-top-right",bottom:"pf-m-bottom",bottomLeft:"pf-m-bottom-left",bottomRight:"pf-m-bottom-right",left:"pf-m-left",leftTop:"pf-m-left-top",leftBottom:"pf-m-left-bottom",right:"pf-m-right",rightTop:"pf-m-right-top",rightBottom:"pf-m-right-bottom",danger:"pf-m-danger",warning:"pf-m-warning",success:"pf-m-success",custom:"pf-m-custom",info:"pf-m-info"},yo="pf-v5-c-popover",xo="pf-v5-c-popover__arrow",wo="pf-v5-c-popover__body",Eo="pf-v5-c-popover__close",Oo="pf-v5-c-popover__content",Co="pf-v5-c-popover__footer",No="pf-v5-c-popover__header",So="pf-v5-c-popover__title",ko="pf-v5-c-popover__title-icon",Ro="pf-v5-c-popover__title-text";const Io=a.createContext({}),To=e=>{var{className:t=null,children:n}=e,i=r(e,["className","children"]);return a.createElement("div",Object.assign({className:l(Oo,t)},i),n)};To.displayName="PopoverContent";const _o=e=>{var{children:t,id:n,className:i}=e,o=r(e,["children","id","className"]);return a.createElement("div",Object.assign({className:l(wo,i),id:n},o),t)};_o.displayName="PopoverBody";const Do=e=>{var{children:t,className:n}=e,i=r(e,["children","className"]);return a.createElement("span",Object.assign({className:l(ko,n)},i),t)};Do.displayName="PopoverHeaderIcon";const Po=e=>{var{children:t,className:n,headingLevel:i}=e,o=r(e,["children","className","headingLevel"]);const s=i;return a.createElement(s,Object.assign({className:l(Ro,n)},o),t)};Po.displayName="PopoverHeaderText";const Lo=e=>{var{children:t,icon:n,className:i,titleHeadingLevel:o="h6",alertSeverityVariant:s,id:c,alertSeverityScreenReaderText:d}=e,p=r(e,["children","icon","className","titleHeadingLevel","alertSeverityVariant","id","alertSeverityScreenReaderText"]);return a.createElement("header",Object.assign({className:l(No,i)},p),a.createElement("div",{className:l(So),id:c},n&&a.createElement(Do,null,n),a.createElement(Po,{headingLevel:o},s&&d&&a.createElement("span",{className:"pf-v5-screen-reader"},d),t)))};Lo.displayName="PopoverHeader";const jo=e=>{var{children:t,className:n=""}=e,i=r(e,["children","className"]);return a.createElement("footer",Object.assign({className:l(Co,n)},i),t)};jo.displayName="PopoverFooter";const Fo=e=>{var{onClose:t=(()=>{})}=e,n=r(e,["onClose"]);return a.createElement("div",{className:l(Eo)},a.createElement(xi,Object.assign({onClick:t,variant:"plain","aria-label":!0},n,{style:{pointerEvents:"auto"}}),a.createElement(_a,null)))};Fo.displayName="PopoverCloseButton";const Ao=e=>{var{className:t=""}=e,n=r(e,["className"]);return a.createElement("div",Object.assign({className:l(xo,t)},n))};Ao.displayName="PopoverArrow";const Mo={name:"--pf-v5-c-popover--MaxWidth",value:"none",var:"var(--pf-v5-c-popover--MaxWidth)"},Bo={name:"--pf-v5-c-popover--MinWidth",value:"auto",var:"var(--pf-v5-c-popover--MinWidth)"};var Ho;!function(e){e.auto="auto",e.top="top",e.bottom="bottom",e.left="left",e.right="right",e.topStart="top-start",e.topEnd="top-end",e.bottomStart="bottom-start",e.bottomEnd="bottom-end",e.leftStart="left-start",e.leftEnd="left-end",e.rightStart="right-start",e.rightEnd="right-end"}(Ho||(Ho={}));const Vo={custom:vo.custom,info:vo.info,success:vo.success,warning:vo.warning,danger:vo.danger},zo=e=>{var{children:t,position:n="top",enableFlip:i=!0,className:o="",isVisible:s=null,shouldClose:c=(()=>null),shouldOpen:d=(()=>null),"aria-label":p="",bodyContent:u,headerContent:f=null,headerComponent:m="h6",headerIcon:h=null,alertSeverityVariant:b,alertSeverityScreenReaderText:g,footerContent:v=null,appendTo:y=(()=>document.body),hideOnOutsideClick:x=!0,onHide:w=(()=>null),onHidden:E=(()=>null),onShow:O=(()=>null),onShown:C=(()=>null),onMount:N=(()=>null),zIndex:S=9999,triggerAction:k="click",minWidth:R=Bo&&Bo.value,maxWidth:I=Mo&&Mo.value,closeBtnAriaLabel:T="Close",showClose:_=!0,distance:D=25,flipBehavior:P=["top","bottom","left","right","top-start","top-end","bottom-start","bottom-end","left-start","left-end","right-start","right-end"],animationDuration:L=300,id:j,withFocusTrap:F,triggerRef:A,hasNoPadding:M=!1,hasAutoWidth:H=!1,elementToFocus:V}=e,z=r(e,["children","position","enableFlip","className","isVisible","shouldClose","shouldOpen","aria-label","bodyContent","headerContent","headerComponent","headerIcon","alertSeverityVariant","alertSeverityScreenReaderText","footerContent","appendTo","hideOnOutsideClick","onHide","onHidden","onShow","onShown","onMount","zIndex","triggerAction","minWidth","maxWidth","closeBtnAriaLabel","showClose","distance","flipBehavior","animationDuration","id","withFocusTrap","triggerRef","hasNoPadding","hasAutoWidth","elementToFocus"]);const $=j||Re(),W=null!==s,[K,G]=a.useState(!1),[U,q]=a.useState(Boolean(F)),X=a.useRef(null);a.useEffect((()=>{N()}),[]),a.useEffect((()=>{W&&(s?Y(void 0,!0):J())}),[s,W]);const Y=(e,t)=>{e&&O(e),G(!0),!1!==F&&t&&q(!0)},J=e=>{e&&w(e),G(!1)},Z={top:vo.top,bottom:vo.bottom,left:vo.left,right:vo.right,"top-start":vo.topLeft,"top-end":vo.topRight,"bottom-start":vo.bottomLeft,"bottom-end":vo.bottomRight,"left-start":vo.leftTop,"left-end":vo.leftBottom,"right-start":vo.rightTop,"right-end":vo.rightBottom},Q=R!==Bo.value,ee=I!==Mo.value,te=e=>{W?d(e,Y):Y(e,!1)},ne=e=>{W?c(e,J):J(e)},ie=a.createElement(ke,Object.assign({ref:X,active:U,focusTrapOptions:{returnFocusOnDeactivate:!1!==F,clickOutsideDeactivates:!0,initialFocus:V||void 0,checkCanFocusTrap:e=>new Promise((t=>{const n=setInterval((()=>{e.every((e=>"hidden"!==getComputedStyle(e).visibility))&&(t(),clearInterval(n))}),10)})),tabbableOptions:{displayCheck:"none"},fallbackFocus:()=>{let e=null;return document&&document.activeElement&&(e=document.activeElement),e}},preventScrollOnDeactivate:!0,className:l(yo,b&&Vo[b],M&&vo.noPadding,H&&vo.widthAuto,o),role:"dialog","aria-modal":"true","aria-label":f?void 0:p,"aria-labelledby":f?`popover-${$}-header`:void 0,"aria-describedby":`popover-${$}-body`,onMouseDown:()=>{U&&q(!1)},style:{minWidth:Q?R:null,maxWidth:ee?I:null}},z),a.createElement(Ao,null),a.createElement(To,null,_&&"click"===k&&a.createElement(Fo,{onClose:e=>{e.stopPropagation(),W?c(e,J):J(e)},"aria-label":T}),f&&a.createElement(Lo,{id:`popover-${$}-header`,icon:h,alertSeverityVariant:b,alertSeverityScreenReaderText:g||`${b} alert:`,titleHeadingLevel:m},"function"==typeof f?f(J):f),a.createElement(_o,{id:`popover-${$}-body`},"function"==typeof u?u(J):u),v&&a.createElement(jo,{id:`popover-${$}-footer`},"function"==typeof v?v(J):v)));return a.createElement(Io.Provider,{value:{headerComponent:m}},a.createElement(un,{trigger:t,triggerRef:A,popper:ie,popperRef:X,minWidth:R,appendTo:y,isVisible:K,onMouseEnter:"hover"===k&&te,onMouseLeave:"hover"===k&&ne,onPopperMouseEnter:"hover"===k&&te,onPopperMouseLeave:"hover"===k&&ne,onFocus:"hover"===k&&(e=>{W?d(e,Y):Y(e,!1)}),onBlur:"hover"===k&&(e=>{W?c(e,J):J(e)}),positionModifiers:Z,distance:D,placement:n,onTriggerClick:"click"===k&&(e=>{W?K?c(e,J):d(e,Y):K?J(e):Y(e,!0)}),onDocumentClick:(e,t,n)=>{if(x&&K){const i=n&&n.contains(e.target),a=t&&t.contains(e.target);if(i||a)return;W?c(e,J):J(e)}},onDocumentKeyDown:e=>{e.key===B&&K&&(W?c(e,J):J(e))},enableFlip:i,zIndex:S,flipBehavior:P,animationDuration:L,onHidden:E,onShown:C,onHide:()=>q(!1)}))};var $o,Wo;zo.displayName="Popover",e.TableTextVariant=void 0,($o=e.TableTextVariant||(e.TableTextVariant={})).div="div",$o.nav="nav",e.WrapModifier=void 0,(Wo=e.WrapModifier||(e.WrapModifier={})).wrap="wrap",Wo.nowrap="nowrap",Wo.truncate="truncate",Wo.breakWord="breakWord",Wo.fitContent="fitContent";const Ko=e=>{var{children:t=null,className:n="",variant:i="span",wrapModifier:o=null,tooltip:s="",tooltipProps:c={},onMouseEnter:d=(()=>{}),focused:p=!1,tooltipHasDefaultBehavior:u=!1}=e,f=r(e,["children","className","variant","wrapModifier","tooltip","tooltipProps","onMouseEnter","focused","tooltipHasDefaultBehavior"]);const m=i,h=a.createRef(),[b,g]=a.useState(s),v=a.createElement(m,Object.assign({ref:h,onMouseEnter:u?void 0:e=>{e.target.offsetWidth<e.target.scrollWidth?g(s||e.target.innerText):g(""),d(e)},className:l(n,o&&Fi.modifiers[o],Fi.tableText)},f),t);return a.useEffect((()=>{var e;u||(p&&(e=h.current).offsetWidth<e.scrollWidth?g(s||e.innerText):g(""))}),[p,u]),""!==b?a.createElement(Zn,Object.assign({triggerRef:h,content:b},!u&&{isVisible:!0},c),v):v};Ko.displayName="TableText";const Go=({children:e,info:t,className:n,variant:i="tooltip",popoverProps:o,tooltipProps:r,ariaLabel:s})=>a.createElement("div",{className:l(Fi.tableColumnHelp,n)},"string"==typeof e?a.createElement(Ko,null,e):e,a.createElement("span",{className:l(Fi.tableColumnHelpAction)},"tooltip"===i?a.createElement(Zn,Object.assign({content:t},r),a.createElement(xi,{variant:"plain","aria-label":s||"string"==typeof t&&t||"More info"},a.createElement(go,null))):a.createElement(zo,Object.assign({bodyContent:t},o),a.createElement(xi,{variant:"plain","aria-label":s||"string"==typeof t&&t||"More info"},a.createElement(go,null)))));Go.displayName="HeaderCellInfoWrapper";var Uo,qo={grid:"pf-m-grid",compact:"pf-m-compact",expanded:"pf-m-expanded",selected:"pf-m-selected",noPadding:"pf-m-no-padding",hoverable:"pf-m-hoverable",nowrap:"pf-m-nowrap",fitContent:"pf-m-fit-content",truncate:"pf-m-truncate",gridMd:"pf-m-grid-md",gridLg:"pf-m-grid-lg",gridXl:"pf-m-grid-xl",grid_2xl:"pf-m-grid-2xl"},Xo={treeView:"pf-m-tree-view",noInset:"pf-m-no-inset",treeViewGrid:"pf-m-tree-view-grid",treeViewDetailsExpanded:"pf-m-tree-view-details-expanded",treeViewGridMd:"pf-m-tree-view-grid-md",treeViewGridLg:"pf-m-tree-view-grid-lg",treeViewGridXl:"pf-m-tree-view-grid-xl",treeViewGrid_2xl:"pf-m-tree-view-grid-2xl"},Yo="pf-v5-c-table__check",Jo="pf-v5-c-table__toggle",Zo="pf-v5-c-table__toggle-icon",Qo="pf-v5-c-table__tree-view-details-toggle",er="pf-v5-c-table__tree-view-icon",tr="pf-v5-c-table__tree-view-main",nr="pf-v5-c-table__tree-view-text",ir="pf-v5-c-table__tree-view-title-cell";e.RowSelectVariant=void 0,(Uo=e.RowSelectVariant||(e.RowSelectVariant={})).radio="radio",Uo.checkbox="checkbox";const ar=e=>{var{children:t=null,className:n,onSelect:i=null,selectVariant:o,tooltip:l,tooltipProps:s}=e,c=r(e,["children","className","onSelect","selectVariant","tooltip","tooltipProps"]);const d=a.createRef(),p=a.createElement(a.Fragment,null,a.createElement("label",null,a.createElement("input",Object.assign({},c,{ref:d,type:o,onChange:i}))),t);return l?a.createElement(Zn,Object.assign({triggerRef:d,content:l},s),p):p};ar.displayName="SelectColumn";const or=(t,{rowIndex:n,columnIndex:i,rowData:o,column:r,property:s,tooltip:c})=>{const{extraParams:{onSelect:d,selectVariant:p,allRowsSelected:u,isHeaderSelectDisabled:f}}=r,m={rowIndex:n,columnIndex:i,column:r,property:s};if(o&&o.hasOwnProperty("parent")&&!o.showSelect&&!o.fullWidth)return{component:"td",isVisible:!0};const h=void 0!==n?n:-1;const b=Object.assign(Object.assign(Object.assign({},-1!==h?{checked:o&&!!o.selected,"aria-label":`Select row ${n}`}:{checked:u,"aria-label":"Select all rows"}),o&&(o.disableCheckbox||o.disableSelection)&&{disabled:!0,className:Ln}),!o&&f&&{disabled:!0});let g="check-all";return-1!==h&&p===e.RowSelectVariant.checkbox?g=`checkrow${n}`:-1!==h&&(g="radioGroup"),{className:l(Fi.tableCheck),component:-1!==h?"td":"th",isVisible:!o||!o.fullWidth,children:a.createElement(ar,Object.assign({},b,{selectVariant:p,onSelect:function(e){const t=void 0===n?e.currentTarget.checked:o&&!o.selected;d&&d(e,t,h,o,m)},name:g,tooltip:c}),t)}},rr=Sn({name:"LongArrowAltUpIcon",height:512,width:256,svgPath:"M88 166.059V468c0 6.627 5.373 12 12 12h56c6.627 0 12-5.373 12-12V166.059h46.059c21.382 0 32.09-25.851 16.971-40.971l-86.059-86.059c-9.373-9.373-24.569-9.373-33.941 0l-86.059 86.059c-15.119 15.119-4.411 40.971 16.971 40.971H88z",yOffset:0,xOffset:0}),lr=Sn({name:"LongArrowAltDownIcon",height:512,width:256,svgPath:"M168 345.941V44c0-6.627-5.373-12-12-12h-56c-6.627 0-12 5.373-12 12v301.941H41.941c-21.382 0-32.09 25.851-16.971 40.971l86.059 86.059c9.373 9.373 24.569 9.373 33.941 0l86.059-86.059c15.119-15.119 4.411-40.971-16.971-40.971H168z",yOffset:0,xOffset:0}),sr=Sn({name:"ArrowsAltVIcon",height:512,width:256,svgPath:"M214.059 377.941H168V134.059h46.059c21.382 0 32.09-25.851 16.971-40.971L144.971 7.029c-9.373-9.373-24.568-9.373-33.941 0L24.971 93.088c-15.119 15.119-4.411 40.971 16.971 40.971H88v243.882H41.941c-21.382 0-32.09 25.851-16.971 40.971l86.059 86.059c9.373 9.373 24.568 9.373 33.941 0l86.059-86.059c15.12-15.119 4.412-40.971-16.97-40.971z",yOffset:0,xOffset:0});var cr;e.SortByDirection=void 0,(cr=e.SortByDirection||(e.SortByDirection={})).asc="asc",cr.desc="desc";const dr=t=>{var{children:n=null,className:i="",isSortedBy:o=!1,onSort:s=null,sortDirection:c="",type:d="button",tooltip:p,tooltipProps:u,tooltipHasDefaultBehavior:f}=t,m=r(t,["children","className","isSortedBy","onSort","sortDirection","type","tooltip","tooltipProps","tooltipHasDefaultBehavior"]);let h;const[b,g]=a.useState(!1);return h=o?c===e.SortByDirection.asc?rr:lr:sr,a.createElement("button",Object.assign({},m,{type:d,className:l(i,Fi.tableButton),onClick:e=>s&&s(e),onFocus:()=>g(!0),onBlur:()=>g(!1)}),a.createElement("div",{className:l(i,Fi.tableButtonContent)},a.createElement(Ko,{tooltip:p,tooltipProps:u,tooltipHasDefaultBehavior:f,focused:b},n),a.createElement("span",{className:l(Fi.tableSortIndicator)},a.createElement(h,null))))};dr.displayName="SortColumn";const pr=e=>()=>ur(a.createElement(Hn,{"aria-hidden":!0}),{columnIndex:e.columnIndex,className:Fi.modifiers.favorite,ariaLabel:"Sort favorites",column:{extraParams:{sortBy:e.sortBy,onSort:null==e?void 0:e.onSort}},tooltip:e.tooltip,tooltipProps:e.tooltipProps,tooltipHasDefaultBehavior:!0}),ur=(t,{columnIndex:n,column:i,property:o,className:r,ariaLabel:s,tooltip:c,tooltipProps:d,tooltipHasDefaultBehavior:p})=>{const{extraParams:{sortBy:u,onSort:f}}=i,m={columnIndex:n,column:i,property:o},h=u&&n===u.index;return{className:l(Fi.tableSort,h&&Fi.modifiers.selected,r),"aria-sort":h?`${u.direction}ending`:"none",children:a.createElement(dr,{isSortedBy:h,sortDirection:h?u.direction:"",onSort:function(t){let i;i=h?u.direction===e.SortByDirection.asc?e.SortByDirection.desc:e.SortByDirection.asc:u.defaultDirection?u.defaultDirection:e.SortByDirection.asc,f&&f(t,n,i,m)},"aria-label":s,tooltip:c,tooltipProps:d,tooltipHasDefaultBehavior:p},t)}},fr=(e,t,n,i)=>"function"==typeof e?e(n,i):t,mr=(e,t,n)=>(i,{rowData:o,column:r,rowIndex:s,columnIndex:c,column:{extraParams:{actionsToggle:d,actionsPopperProps:p}},property:u})=>{const f={rowIndex:s,columnIndex:c,column:r,property:u},m=fr(t,e,o,f),h=fr(n,o&&o.disableActions,o,f),b=m&&m.length>0?{children:a.createElement(Li,{items:m,isDisabled:h,rowData:o,extraData:f,actionsToggle:d,popperProps:p},i)}:{};return Object.assign({className:l(Fi.tableAction),style:{paddingRight:0},isVisible:!0},b)},hr=(e,t)=>t.filter((t=>t.name===e))[0].errorText,br=e=>e.toUpperCase().replace("-","").replace("_",""),gr=e=>e.replace(/([-_][a-z])/gi,br);function vr(e){return e[0].toUpperCase()+e.substring(1)}const yr=e=>()=>({className:l(Fi.modifiers["number"==typeof e?`width_${e}`:`width${vr(e)}`])}),xr=Sn({name:"PencilAltIcon",height:512,width:512,svgPath:"M497.9 142.1l-46.1 46.1c-4.7 4.7-12.3 4.7-17 0l-111-111c-4.7-4.7-4.7-12.3 0-17l46.1-46.1c18.7-18.7 49.1-18.7 67.9 0l60.1 60.1c18.8 18.7 18.8 49.1 0 67.9zM284.2 99.8L21.6 362.4.4 483.9c-2.9 16.4 11.4 30.6 27.8 27.8l121.5-21.3 262.6-262.6c4.7-4.7 4.7-12.3 0-17l-111-111c-4.8-4.7-12.4-4.7-17.1 0zM124.1 339.9c-5.5-5.5-5.5-14.3 0-19.8l154-154c5.5-5.5 14.3-5.5 19.8 0s5.5 14.3 0 19.8l-154 154c-5.5 5.5-14.3 5.5-19.8 0zM88 424h48v36.3l-64.5 11.3-31.1-31.1L51.7 376H88v48z",yOffset:0,xOffset:0}),wr=e=>{var{onClick:t=null,className:n="",editing:i,valid:o,saveAriaLabel:s,cancelAriaLabel:c,editAriaLabel:d}=e,p=r(e,["onClick","className","editing","valid","saveAriaLabel","cancelAriaLabel","editAriaLabel"]);return a.createElement(a.Fragment,null,a.createElement("div",{className:l(co,fo.iconGroup,"pf-m-action-group")},a.createElement("div",{className:l(so)},a.createElement(xi,Object.assign({"aria-label":s},p,{onClick:e=>t(e,"save"),variant:"plain"}),a.createElement(Tn,null))),a.createElement("div",{className:l(so)},a.createElement(xi,Object.assign({"aria-label":c},p,{onClick:e=>t(e,"cancel"),variant:"plain"}),a.createElement(_a,null)))),a.createElement("div",{className:l(so,fo.enableEditable)},a.createElement(xi,Object.assign({"aria-label":d},p,{onClick:e=>t(e,"edit"),variant:"plain"}),a.createElement(xr,null))))};wr.displayName="EditColumn";const Er=(e,{rowIndex:t,rowData:n,column:i})=>{const{extraParams:{onRowEdit:o}}=i;function r(e,t){let n;switch(t){case"cancel":n=`Cancel row edits for row ${e}`;break;case"save":n=`Save row edits for row ${e}`;break;default:n=`Place row ${e} in edit mode`}return n}return{className:Fi.tableInlineEditAction,component:"td",isVisible:!0,children:a.createElement(wr,{saveAriaLabel:n&&n.rowSaveBtnAriaLabel&&n.rowSaveBtnAriaLabel(t)||r(t,"save"),cancelAriaLabel:n&&n.rowCancelBtnAriaLabel&&n.rowCancelBtnAriaLabel(t)||r(t,"cancel"),editAriaLabel:n&&n.rowEditBtnAriaLabel&&n.rowEditBtnAriaLabel(t)||r(t,"edit"),valid:n&&n.isValid,editing:n&&n.isEditable,onClick:(e,i)=>{let a={};"save"===i&&(a=n.rowEditValidationRules&&n.rowEditValidationRules.reduce(((e,t)=>{const i=n.cells.filter((e=>{const n=""===e.props.editableValue?"":e.props.editableValue||e.props.value;let i=!1;return i=Array.isArray(n)&&n.length?n.reduce(((e,n)=>!0===e||!t.validator(n)),i):Array.isArray(n)&&!n.length?!t.validator(""):!t.validator(n),i&&(e.props.isValid=!1),i}));return i.length&&(e[t.name]=i.map((e=>e.props.name))),e}),{})),o(e,i,n&&n.isEditable,t,a)}})}},Or=(e,{rowIndex:t,columnIndex:n,rowData:i,column:o,property:r})=>{const{extraParams:{onCollapse:s,rowLabeledBy:c="simple-node",expandId:d="expand-toggle",allRowsExpanded:p,collapseAllAriaLabel:u}}=o,f={rowIndex:t,columnIndex:n,column:o,property:r},m=void 0!==t?t:-1,h=Object.assign({},-1!==m?{isOpen:null==i?void 0:i.isOpen,"aria-labelledby":`${c}${m} ${d}${m}`}:{isOpen:p,"aria-label":u||"Expand all rows"});return{className:(void 0!==(null==i?void 0:i.isOpen)||-1===m)&&l(Fi.tableToggle),isVisible:!(null==i?void 0:i.fullWidth),children:a.createElement(Ai,Object.assign({"aria-labelledby":`${c}${m} ${d}${m}`,onToggle:function(e){const n=i?!i.isOpen:!p;s&&s(e,t,n,i,f)},id:d+m},h),e)}},Cr=(e,t=0)=>(n,{columnIndex:i,rowIndex:a,rowData:o,column:{extraParams:{contentId:r="expanded-content"}}})=>n&&o.hasOwnProperty("parent")&&{colSpan:o.cells&&1!==o.cells.length?1:e+(o.fullWidth?t+1:0),id:r+a+(i?"-"+i:""),className:o.noPadding&&l(Fi.modifiers.noPadding)},Nr=(e,{rowIndex:t,columnIndex:n,rowData:i,column:o,property:r})=>{if(!e)return null;const{title:s,props:c}=e,{extraParams:{onExpand:d,expandId:p="expand-toggle"}}=o,u={rowIndex:t,columnIndex:n,column:o,property:r};return{className:l(Fi.tableCompoundExpansionToggle,c.isOpen&&Fi.modifiers.expanded),children:void 0!==c.isOpen&&a.createElement("button",{type:"button",className:l(Fi.tableButton),onClick:function(e){d&&d(e,t,n,c.isOpen,i,u)},"aria-expanded":c.isOpen,"aria-controls":c.ariaControls,id:`${p}-${t}-${n}`},a.createElement(Ko,null,s))}},Sr=["hidden","hiddenOnSm","hiddenOnMd","hiddenOnLg","hiddenOnXl","hiddenOn_2xl","visibleOnSm","visibleOnMd","visibleOnLg","visibleOnXl","visibleOn_2xl"].filter((e=>Fi.modifiers[e])).reduce(((e,t)=>(e[t.replace("_2xl","2Xl")]=Fi.modifiers[t],e)),{}),kr=(...e)=>()=>({className:l(...e)}),Rr=({tooltip:e,tooltipProps:t,popover:n,popoverProps:i,className:o,ariaLabel:r})=>l=>({className:Fi.modifiers.help,children:e?a.createElement(Go,{variant:"tooltip",info:e,tooltipProps:t,ariaLabel:r,className:o},l):a.createElement(Go,{variant:"popover",info:n,popoverProps:i,ariaLabel:r,className:o},l)}),Ir=e=>{var{className:t="",onFavorite:n,isFavorited:i,rowIndex:o}=e,l=r(e,["className","onFavorite","isFavorited","rowIndex"]);const s=void 0===o?{}:{id:`favorites-button-${o}`,"aria-labelledby":`favorites-button-${o}`};return a.createElement(xi,Object.assign({variant:"plain",className:t,type:"button","aria-label":i?"Starred":"Not starred",onClick:n},s,l),a.createElement(Hn,{"aria-hidden":!0}))};Ir.displayName="FavoritesCell";const Tr=(e,{rowIndex:t,columnIndex:n,rowData:i,column:o,property:r})=>{const{extraParams:{onFavorite:s}}=o,c={rowIndex:t,columnIndex:n,column:o,property:r};if(i&&i.hasOwnProperty("parent")&&!i.fullWidth)return{component:"td",isVisible:!0};const d=i.favoritesProps||{};return{className:l(Fi.tableFavorite,i&&i.favorited&&Fi.modifiers.favorited),isVisible:!i||!i.fullWidth,children:a.createElement(Ir,Object.assign({rowIndex:t,onFavorite:function(e){s&&s(e,i&&!i.favorited,t,i,c)},isFavorited:i&&i.favorited},d))}},_r=Sn({name:"EllipsisHIcon",height:512,width:512,svgPath:"M328 256c0 39.8-32.2 72-72 72s-72-32.2-72-72 32.2-72 72-72 72 32.2 72 72zm104-72c-39.8 0-72 32.2-72 72s32.2 72 72 72 72-32.2 72-72-32.2-72-72-72zm-352 0c-39.8 0-72 32.2-72 72s32.2 72 72 72 72-32.2 72-72-32.2-72-72-72z",yOffset:0,xOffset:0}),Dr=(e,t,n)=>(i,{rowIndex:o,rowData:r})=>{const{isExpanded:s,isDetailsExpanded:c,"aria-level":d,"aria-setsize":p,toggleAriaLabel:u,checkAriaLabel:f,showDetailsAriaLabel:m,isChecked:h,checkboxId:b,icon:g}=r.props,v=i.title||i,y=a.createElement("div",{className:l(nr),key:"tree-view-text"},g&&a.createElement("span",{className:l(er),key:"tree-view-text-icon"},g),a.createElement("span",{className:Fi.tableText,key:"table-text"},v));return{component:"th",className:ir,children:void 0!==d?a.createElement("div",{className:l(tr)},p>0&&a.createElement("span",{className:l(Jo),key:"table-toggle"},a.createElement(xi,{variant:"plain",onClick:t=>e&&e(t,o,v,r),className:l(s&&Fi.modifiers.expanded),"aria-expanded":s,"aria-label":u||`${s?"Collapse":"Expand"} row ${o}`},a.createElement("div",{className:l(Zo)},a.createElement(ji,{"aria-hidden":"true"})))),!!t&&a.createElement("span",{className:l(Yo),key:"table-check"},a.createElement("label",{htmlFor:b||`checkbox_${o}`},a.createElement(Bn,{id:b||`checkbox_${o}`,"aria-label":f||`Row ${o} checkbox`,isChecked:h,onChange:(e,n)=>((e,n)=>{t(n,e,o,v,r)})(n,e)}))),y,!!n&&a.createElement("span",{className:l(Qo),key:"view-details-toggle"},a.createElement(xi,{variant:"plain","aria-expanded":c,"aria-label":m||"Show row details",onClick:e=>n&&n(e,o,v,r)},a.createElement("span",{className:`${Fi.table}__details-toggle-icon`},a.createElement(_r,{"aria-hidden":!0}))))):y}},Pr=()=>({component:"td"}),Lr=()=>({scope:"col"}),jr=e=>Object.assign({},e?{}:{scope:""}),Fr=(e,{rowData:t})=>({parentId:t.parent}),Ar=(e,{property:t,rowData:n})=>Object.assign({},n[t]&&n[t].props),Mr=e=>e&&e.hasOwnProperty("title")?e.title:e,Br=({transforms:e,formatters:t,columnTransforms:n,header:i},a)=>Object.assign(Object.assign({},i),{label:a,transforms:[Lr,jr,...e||[],...n||[],...i&&i.hasOwnProperty("transforms")?i.transforms:[]],formatters:[...t||[],...i&&i.hasOwnProperty("formatters")?i.formatters:[]]}),Hr=({cellFormatters:e,cellTransforms:t,columnTransforms:n,cell:i},a)=>Object.assign(Object.assign({},i),{transforms:[...t||[],...n||[],...i&&i.hasOwnProperty("transforms")?i.transforms:[],Ar],formatters:[Mr,...e||[],...i&&i.hasOwnProperty("formatters")?i.formatters:[]]}),Vr=({onSelect:e,canSelectAll:t})=>[...e?[{title:"",transforms:t&&[or]||null,cellTransforms:[or]}]:[]],zr=({onFavorite:e,onSort:t,sortBy:n,canSortFavorites:i,firstUserColumnIndex:a})=>[...e?[{title:"",transforms:t&&i?[Lr,pr({onSort:t,columnIndex:a-1,sortBy:n})]:[Pr],cellTransforms:[Tr]}]:[]],$r=({actions:e,actionResolver:t,areActionsDisabled:n})=>[...t||e?[{title:"",transforms:[Pr],cellTransforms:[mr(e,t,n)]}]:[]],Wr=(e,{onCollapse:t,canCollapseAll:n,firstUserColumnIndex:i})=>[...t?[{title:"",transforms:n&&[Or]||null,cellTransforms:[Or,Cr(e.length,i)]}]:[]],Kr=(e,t)=>Object.assign(Object.assign({},e.hasOwnProperty("title")?e:{title:e}),{cellTransforms:[...e.hasOwnProperty("cellTransforms")?e.cellTransforms:[],t]}),Gr=(e,t)=>t.onCollapse||t.onExpand?e.map((t=>{const n=Kr(t,Fr);return Kr(n,Cr(e.length))})):e,Ur=({onRowEdit:e})=>[...e?[{title:"",cellTransforms:[Er]}]:[]];var qr,Xr="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Yr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}e.TableGridBreakpoint=void 0,(qr=e.TableGridBreakpoint||(e.TableGridBreakpoint={})).none="",qr.grid="grid",qr.gridMd="grid-md",qr.gridLg="grid-lg",qr.gridXl="grid-xl",qr.grid2xl="grid-2xl",e.TableVariant=void 0,(e.TableVariant||(e.TableVariant={})).compact="compact";const Jr=a.createContext({registerSelectableRow:()=>{}}),Zr=t=>{var n,i,{children:o,className:s,variant:c,borders:d=!0,isStickyHeader:p=!1,gridBreakPoint:u=e.TableGridBreakpoint.gridMd,"aria-label":f,role:m="grid",innerRef:h,ouiaId:b,ouiaSafe:g=!0,isTreeTable:v=!1,isNested:y=!1,isStriped:x=!1,isExpandable:w=!1,hasNoInset:E=!1,nestedHeaderColumnSpans:O,selectableRowCaptionText:C}=t,N=r(t,["children","className","variant","borders","isStickyHeader","gridBreakPoint","aria-label","role","innerRef","ouiaId","ouiaSafe","isTreeTable","isNested","isStriped","isExpandable","hasNoInset","nestedHeaderColumnSpans","selectableRowCaptionText"]);const S=a.useRef(null),k=h||S,[R,I]=a.useState(!1),[T,_]=a.useState();a.useEffect((()=>{if(document.addEventListener("keydown",F),k&&k.current&&k.current.classList.contains("pf-m-tree-view")){const t=k.current.querySelector("tbody");t&&((e=Array.from(t.querySelectorAll("button, a, input")))&&e.length>0&&(e.forEach((e=>{e.tabIndex=-1})),e[0].tabIndex=0))}var e;return function(){document.removeEventListener("keydown",F)}}),[k,k.current]),a.useEffect((()=>{_(C?a.createElement("caption",null,C,a.createElement("div",{className:"pf-v5-screen-reader"},"This table has selectable rows. It can be navigated by row using tab, and each row can be selected using space or enter.")):a.createElement("caption",{className:"pf-v5-screen-reader"},"This table has selectable rows. It can be navigated by row using tab, and each row can be selected using space or enter."))}),[C]);const D=Ge("Table",b,g),P=null===(n=qo)||void 0===n?void 0:n[gr(u||"").replace(/-?2xl/,"_2xl")],L=`treeView${u.charAt(0).toUpperCase()+u.slice(1)}`,j=null===(i=Xo)||void 0===i?void 0:i[gr(L||"").replace(/-?2xl/,"_2xl")],F=e=>{if(y||!(k&&k.current&&k.current.classList.contains(Xo.treeView))||k&&k.current!==e.target.closest(`.${Fi.table}:not(.pf-m-nested)`))return;const t=document.activeElement,n=e.key,i=Array.from(k.current.querySelectorAll("tbody tr")).filter((e=>!e.classList.contains("pf-m-disabled")&&!e.hidden));"Space"!==n&&"Enter"!==n||(t.click(),e.preventDefault());fn(e,i,(e=>e===t.closest("tr")),(e=>e.querySelectorAll("button:not(:disabled), input:not(:disabled), a:not(:disabled)")[0]),["button","input","a"],void 0,!1,!0,!1)};return a.createElement(Jr.Provider,{value:{registerSelectableRow:()=>{!R&&I(!0)}}},a.createElement("table",Object.assign({"aria-label":f,role:m,className:l(s,Fi.table,v?j:P,Fi.modifiers[c],!d&&Fi.modifiers.noBorderRows,p&&Fi.modifiers.stickyHeader,v&&Xo.treeView,x&&Fi.modifiers.striped,w&&Fi.modifiers.expandable,E&&Xo.noInset,y&&"pf-m-nested"),ref:k},v&&{role:"treegrid"},D,N),R&&T,o))},Qr=a.forwardRef(((e,t)=>a.createElement(Zr,Object.assign({},e,{innerRef:t}))));Qr.displayName="Table";const el=e=>{var{children:t,className:n,isExpanded:i,isEditable:o,isHidden:s=!1,isClickable:c=!1,isRowSelected:d=!1,isStriped:p=!1,isBorderRow:u=!1,isControlRow:f=!1,innerRef:m,ouiaId:h,ouiaSafe:b=!0,resetOffset:g=!1,onRowClick:v,isSelectable:y,"aria-label":x}=e,w=r(e,["children","className","isExpanded","isEditable","isHidden","isClickable","isRowSelected","isStriped","isBorderRow","isControlRow","innerRef","ouiaId","ouiaSafe","resetOffset","onRowClick","isSelectable","aria-label"]);const E=Ge("TableRow",h,b),[O,C]=a.useState("");let N=null;v&&(N=e=>{"Enter"!==e.key&&" "!==e.key||(v(e),e.preventDefault())});const S=s||void 0!==i&&!i,{registerSelectableRow:k}=a.useContext(Jr);a.useEffect((()=>{y&&!S?(C(""+(d?"Row selected":"")),k()):C(void 0)}),[d,y,k,S]);const R=x||O;return a.createElement(a.Fragment,null,a.createElement("tr",Object.assign({className:l(Fi.tableTr,n,void 0!==i&&Fi.tableExpandableRow,i&&Fi.modifiers.expanded,o&&fo.inlineEditable,c&&Fi.modifiers.clickable,d&&Fi.modifiers.selected,p&&Fi.modifiers.striped,u&&Fi.modifiers.borderRow,f&&Fi.tableControlRow,g&&Fi.modifiers.firstCellOffsetReset),hidden:S},c&&{tabIndex:0},{"aria-label":R,ref:m},v&&{onClick:v,onKeyDown:N},E,w),t))},tl=a.forwardRef(((e,t)=>a.createElement(el,Object.assign({},e,{innerRef:t}))));tl.displayName="Tr";class nl extends a.Component{constructor(e){super(e),this.handleScroll=e=>{this._unmounted||this.props.onScroll(e)},this.handleResize=e=>{this._unmounted||this.props.onResize(e)},e.onScroll&&(this.handleScroll=Ie(this.handleScroll,100)),e.onResize&&(this.handleResize=Ie(this.handleResize,100))}componentDidMount(){this._unmounted=!1,Fe&&(this.props.onScroll&&window.addEventListener("scroll",this.handleScroll),this.props.onResize&&window.addEventListener("resize",this.handleResize))}componentWillUnmount(){this._unmounted=!0,Fe&&(this.props.onScroll&&window.removeEventListener("scroll",this.handleScroll),this.props.onResize&&window.removeEventListener("resize",this.handleResize))}render(){const e=this.props,{onScroll:t,onResize:n,row:{isExpanded:i,isEditable:o,isClickable:l,isRowSelected:s},rowProps:c,trRef:d,className:p,ouiaId:u}=e,f=r(e,["onScroll","onResize","row","rowProps","trRef","className","ouiaId"]);return a.createElement(tl,Object.assign({},f,{ref:d,isExpanded:i,isEditable:o,className:p,ouiaId:u,isClickable:l,isRowSelected:s}))}}nl.displayName="RowWrapper",nl.defaultProps={className:"",row:{isOpen:void 0,isExpanded:void 0,isHeightAuto:void 0,isEditable:void 0},rowProps:null};const il=e=>{var{className:t,rowProps:n,row:i}=e,o=r(e,["className","rowProps","row"]);const{"aria-level":s,"aria-posinset":c,"aria-setsize":d,isExpanded:p,isDetailsExpanded:u,isHidden:f}=i.props;return a.createElement(tl,Object.assign({"aria-level":s,"aria-posinset":c,"aria-setsize":d,"aria-expanded":!!p,isHidden:f,className:l(t,p&&Fi.modifiers.expanded,u&&Xo.treeViewDetailsExpanded)},o))};il.displayName="TreeRowWrapper";const al=e=>{var{children:t,className:n,noWrap:i=!1,innerRef:o,hasNestedHeader:s}=e,c=r(e,["children","className","noWrap","innerRef","hasNestedHeader"]);return a.createElement("thead",Object.assign({className:l(Fi.tableThead,n,i&&Fi.modifiers.nowrap,s&&Fi.modifiers.nestedColumnHeader),ref:o},c),t)},ol=a.forwardRef(((e,t)=>a.createElement(al,Object.assign({},e,{innerRef:t}))));ol.displayName="Thead";const rl=e=>{var{children:t,className:n,isExpanded:i,innerRef:o,isEvenStriped:s=!1,isOddStriped:c=!1}=e,d=r(e,["children","className","isExpanded","innerRef","isEvenStriped","isOddStriped"]);return a.createElement("tbody",Object.assign({role:"rowgroup",className:l(Fi.tableTbody,n,i&&Fi.modifiers.expanded,c&&Fi.modifiers.striped,s&&Fi.modifiers.stripedEven),ref:o},d),t)},ll=a.forwardRef(((e,t)=>a.createElement(rl,Object.assign({},e,{innerRef:t}))));ll.displayName="Tbody";var sl={borderRight:"pf-m-border-right",borderLeft:"pf-m-border-left",right:"pf-m-right",inlineEnd:"pf-m-inline-end",left:"pf-m-left",inlineStart:"pf-m-inline-start"},cl="pf-v5-c-scroll-inner-wrapper",dl="pf-v5-c-scroll-outer-wrapper",pl="pf-v5-c-table__sticky-cell";var ul=function(){this.__data__=[],this.size=0};var fl=function(e,t){return e===t||e!=e&&t!=t},ml=fl;var hl=function(e,t){for(var n=e.length;n--;)if(ml(e[n][0],t))return n;return-1},bl=hl,gl=Array.prototype.splice;var vl=hl;var yl=hl;var xl=hl;var wl=ul,El=function(e){var t=this.__data__,n=bl(t,e);return!(n<0)&&(n==t.length-1?t.pop():gl.call(t,n,1),--this.size,!0)},Ol=function(e){var t=this.__data__,n=vl(t,e);return n<0?void 0:t[n][1]},Cl=function(e){return yl(this.__data__,e)>-1},Nl=function(e,t){var n=this.__data__,i=xl(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this};function Sl(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}Sl.prototype.clear=wl,Sl.prototype.delete=El,Sl.prototype.get=Ol,Sl.prototype.has=Cl,Sl.prototype.set=Nl;var kl=Sl,Rl=kl;var Il=function(){this.__data__=new Rl,this.size=0};var Tl=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var _l=function(e){return this.__data__.get(e)};var Dl=function(e){return this.__data__.has(e)},Pl="object"==typeof Xr&&Xr&&Xr.Object===Object&&Xr,Ll=Pl,jl="object"==typeof self&&self&&self.Object===Object&&self,Fl=Ll||jl||Function("return this")(),Al=Fl.Symbol,Ml=Al,Bl=Object.prototype,Hl=Bl.hasOwnProperty,Vl=Bl.toString,zl=Ml?Ml.toStringTag:void 0;var $l=function(e){var t=Hl.call(e,zl),n=e[zl];try{e[zl]=void 0;var i=!0}catch(e){}var a=Vl.call(e);return i&&(t?e[zl]=n:delete e[zl]),a},Wl=Object.prototype.toString;var Kl=$l,Gl=function(e){return Wl.call(e)},Ul=Al?Al.toStringTag:void 0;var ql=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Ul&&Ul in Object(e)?Kl(e):Gl(e)};var Xl=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},Yl=ql,Jl=Xl;var Zl=function(e){if(!Jl(e))return!1;var t=Yl(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},Ql=Fl["__core-js_shared__"],es=function(){var e=/[^.]+$/.exec(Ql&&Ql.keys&&Ql.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var ts=function(e){return!!es&&es in e},ns=Function.prototype.toString;var is=Zl,as=ts,os=Xl,rs=function(e){if(null!=e){try{return ns.call(e)}catch(e){}try{return e+""}catch(e){}}return""},ls=/^\[object .+?Constructor\]$/,ss=Function.prototype,cs=Object.prototype,ds=ss.toString,ps=cs.hasOwnProperty,us=RegExp("^"+ds.call(ps).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var fs=function(e){return!(!os(e)||as(e))&&(is(e)?us:ls).test(rs(e))},ms=function(e,t){return null==e?void 0:e[t]};var hs=function(e,t){var n=ms(e,t);return fs(n)?n:void 0},bs=hs(Fl,"Map"),gs=hs(Object,"create"),vs=gs;var ys=function(){this.__data__=vs?vs(null):{},this.size=0};var xs=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ws=gs,Es=Object.prototype.hasOwnProperty;var Os=function(e){var t=this.__data__;if(ws){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Es.call(t,e)?t[e]:void 0},Cs=gs,Ns=Object.prototype.hasOwnProperty;var Ss=gs;var ks=ys,Rs=xs,Is=Os,Ts=function(e){var t=this.__data__;return Cs?void 0!==t[e]:Ns.call(t,e)},_s=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Ss&&void 0===t?"__lodash_hash_undefined__":t,this};function Ds(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}Ds.prototype.clear=ks,Ds.prototype.delete=Rs,Ds.prototype.get=Is,Ds.prototype.has=Ts,Ds.prototype.set=_s;var Ps=Ds,Ls=kl,js=bs;var Fs=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var As=function(e,t){var n=e.__data__;return Fs(t)?n["string"==typeof t?"string":"hash"]:n.map},Ms=As;var Bs=As;var Hs=As;var Vs=As;var zs=function(){this.size=0,this.__data__={hash:new Ps,map:new(js||Ls),string:new Ps}},$s=function(e){var t=Ms(this,e).delete(e);return this.size-=t?1:0,t},Ws=function(e){return Bs(this,e).get(e)},Ks=function(e){return Hs(this,e).has(e)},Gs=function(e,t){var n=Vs(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this};function Us(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}Us.prototype.clear=zs,Us.prototype.delete=$s,Us.prototype.get=Ws,Us.prototype.has=Ks,Us.prototype.set=Gs;var qs=kl,Xs=bs,Ys=Us;var Js=kl,Zs=Il,Qs=Tl,ec=_l,tc=Dl,nc=function(e,t){var n=this.__data__;if(n instanceof qs){var i=n.__data__;if(!Xs||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new Ys(i)}return n.set(e,t),this.size=n.size,this};function ic(e){var t=this.__data__=new Js(e);this.size=t.size}ic.prototype.clear=Zs,ic.prototype.delete=Qs,ic.prototype.get=ec,ic.prototype.has=tc,ic.prototype.set=nc;var ac=ic,oc=hs,rc=function(){try{var e=oc(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),lc=rc;var sc=function(e,t,n){"__proto__"==t&&lc?lc(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},cc=sc,dc=fl;var pc=function(e,t,n){(void 0!==n&&!dc(e[t],n)||void 0===n&&!(t in e))&&cc(e,t,n)};var uc=function(e){return function(t,n,i){for(var a=-1,o=Object(t),r=i(t),l=r.length;l--;){var s=r[e?l:++a];if(!1===n(o[s],s,o))break}return t}}(),fc={exports:{}};!function(e,t){var n=Fl,i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,o=a&&a.exports===i?n.Buffer:void 0,r=o?o.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,i=r?r(n):new e.constructor(n);return e.copy(i),i}}(fc,fc.exports);var mc=fc.exports,hc=Fl.Uint8Array;var bc=function(e){var t=new e.constructor(e.byteLength);return new hc(t).set(new hc(e)),t};var gc=function(e,t){var n=t?bc(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};var vc=function(e,t){var n=-1,i=e.length;for(t||(t=Array(i));++n<i;)t[n]=e[n];return t},yc=Xl,xc=Object.create,wc=function(){function e(){}return function(t){if(!yc(t))return{};if(xc)return xc(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();var Ec=function(e,t){return function(n){return e(t(n))}}(Object.getPrototypeOf,Object),Oc=Object.prototype;var Cc=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Oc)},Nc=wc,Sc=Ec,kc=Cc;var Rc=function(e){return"function"!=typeof e.constructor||kc(e)?{}:Nc(Sc(e))};var Ic=function(e){return null!=e&&"object"==typeof e},Tc=ql,_c=Ic;var Dc=function(e){return _c(e)&&"[object Arguments]"==Tc(e)},Pc=Ic,Lc=Object.prototype,jc=Lc.hasOwnProperty,Fc=Lc.propertyIsEnumerable,Ac=Dc(function(){return arguments}())?Dc:function(e){return Pc(e)&&jc.call(e,"callee")&&!Fc.call(e,"callee")},Mc=Ac,Bc=Array.isArray;var Hc=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},Vc=Zl,zc=Hc;var $c=function(e){return null!=e&&zc(e.length)&&!Vc(e)},Wc=$c,Kc=Ic;var Gc=function(e){return Kc(e)&&Wc(e)},Uc={exports:{}};var qc=function(){return!1};!function(e,t){var n=Fl,i=qc,a=t&&!t.nodeType&&t,o=a&&e&&!e.nodeType&&e,r=o&&o.exports===a?n.Buffer:void 0,l=(r?r.isBuffer:void 0)||i;e.exports=l}(Uc,Uc.exports);var Xc=Uc.exports,Yc=ql,Jc=Ec,Zc=Ic,Qc=Function.prototype,ed=Object.prototype,td=Qc.toString,nd=ed.hasOwnProperty,id=td.call(Object);var ad=function(e){if(!Zc(e)||"[object Object]"!=Yc(e))return!1;var t=Jc(e);if(null===t)return!0;var n=nd.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&td.call(n)==id},od=ql,rd=Hc,ld=Ic,sd={};sd["[object Float32Array]"]=sd["[object Float64Array]"]=sd["[object Int8Array]"]=sd["[object Int16Array]"]=sd["[object Int32Array]"]=sd["[object Uint8Array]"]=sd["[object Uint8ClampedArray]"]=sd["[object Uint16Array]"]=sd["[object Uint32Array]"]=!0,sd["[object Arguments]"]=sd["[object Array]"]=sd["[object ArrayBuffer]"]=sd["[object Boolean]"]=sd["[object DataView]"]=sd["[object Date]"]=sd["[object Error]"]=sd["[object Function]"]=sd["[object Map]"]=sd["[object Number]"]=sd["[object Object]"]=sd["[object RegExp]"]=sd["[object Set]"]=sd["[object String]"]=sd["[object WeakMap]"]=!1;var cd=function(e){return ld(e)&&rd(e.length)&&!!sd[od(e)]};var dd=function(e){return function(t){return e(t)}},pd={exports:{}};!function(e,t){var n=Pl,i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,o=a&&a.exports===i&&n.process,r=function(){try{var e=a&&a.require&&a.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=r}(pd,pd.exports);var ud=pd.exports,fd=cd,md=dd,hd=ud&&ud.isTypedArray,bd=hd?md(hd):fd;var gd=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},vd=sc,yd=fl,xd=Object.prototype.hasOwnProperty;var wd=function(e,t,n){var i=e[t];xd.call(e,t)&&yd(i,n)&&(void 0!==n||t in e)||vd(e,t,n)},Ed=sc;var Od=function(e,t,n,i){var a=!n;n||(n={});for(var o=-1,r=t.length;++o<r;){var l=t[o],s=i?i(n[l],e[l],l,n,e):void 0;void 0===s&&(s=e[l]),a?Ed(n,l,s):wd(n,l,s)}return n};var Cd=/^(?:0|[1-9]\d*)$/;var Nd=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&Cd.test(e))&&e>-1&&e%1==0&&e<t},Sd=function(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i},kd=Mc,Rd=Bc,Id=Xc,Td=Nd,_d=bd,Dd=Object.prototype.hasOwnProperty;var Pd=function(e,t){var n=Rd(e),i=!n&&kd(e),a=!n&&!i&&Id(e),o=!n&&!i&&!a&&_d(e),r=n||i||a||o,l=r?Sd(e.length,String):[],s=l.length;for(var c in e)!t&&!Dd.call(e,c)||r&&("length"==c||a&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Td(c,s))||l.push(c);return l};var Ld=Xl,jd=Cc,Fd=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},Ad=Object.prototype.hasOwnProperty;var Md=Pd,Bd=function(e){if(!Ld(e))return Fd(e);var t=jd(e),n=[];for(var i in e)("constructor"!=i||!t&&Ad.call(e,i))&&n.push(i);return n},Hd=$c;var Vd=function(e){return Hd(e)?Md(e,!0):Bd(e)},zd=Od,$d=Vd;var Wd=pc,Kd=mc,Gd=gc,Ud=vc,qd=Rc,Xd=Mc,Yd=Bc,Jd=Gc,Zd=Xc,Qd=Zl,ep=Xl,tp=ad,np=bd,ip=gd,ap=function(e){return zd(e,$d(e))};var op=ac,rp=pc,lp=uc,sp=function(e,t,n,i,a,o,r){var l=ip(e,n),s=ip(t,n),c=r.get(s);if(c)Wd(e,n,c);else{var d=o?o(l,s,n+"",e,t,r):void 0,p=void 0===d;if(p){var u=Yd(s),f=!u&&Zd(s),m=!u&&!f&&np(s);d=s,u||f||m?Yd(l)?d=l:Jd(l)?d=Ud(l):f?(p=!1,d=Kd(s,!0)):m?(p=!1,d=Gd(s,!0)):d=[]:tp(s)||Xd(s)?(d=l,Xd(l)?d=ap(l):ep(l)&&!Qd(l)||(d=qd(s))):p=!1}p&&(r.set(s,d),a(d,s,i,o,r),r.delete(s)),Wd(e,n,d)}},cp=Xl,dp=Vd,pp=gd;var up=function e(t,n,i,a,o){t!==n&&lp(n,(function(r,l){if(o||(o=new op),cp(r))sp(t,n,l,i,e,a,o);else{var s=a?a(pp(t,l),r,l+"",t,n,o):void 0;void 0===s&&(s=r),rp(t,l,s)}}),dp)};var fp=function(e){return e};var mp=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)},hp=Math.max;var bp=function(e,t,n){return t=hp(void 0===t?e.length-1:t,0),function(){for(var i=arguments,a=-1,o=hp(i.length-t,0),r=Array(o);++a<o;)r[a]=i[t+a];a=-1;for(var l=Array(t+1);++a<t;)l[a]=i[a];return l[t]=n(r),mp(e,this,l)}};var gp=function(e){return function(){return e}},vp=rc,yp=vp?function(e,t){return vp(e,"toString",{configurable:!0,enumerable:!1,value:gp(t),writable:!0})}:fp,xp=Date.now;var wp=function(e){var t=0,n=0;return function(){var i=xp(),a=16-(i-n);if(n=i,a>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}},Ep=wp(yp),Op=fp,Cp=bp,Np=Ep;var Sp=function(e,t){return Np(Cp(e,t,Op),e+"")},kp=fl,Rp=$c,Ip=Nd,Tp=Xl;var _p=Sp,Dp=function(e,t,n){if(!Tp(n))return!1;var i=typeof t;return!!("number"==i?Rp(n)&&Ip(t,n.length):"string"==i&&t in n)&&kp(n[t],e)};var Pp=up,Lp=Yr(function(e){return _p((function(t,n){var i=-1,a=n.length,o=a>1?n[a-1]:void 0,r=a>2?n[2]:void 0;for(o=e.length>3&&"function"==typeof o?(a--,o):void 0,r&&Dp(n[0],n[1],r)&&(o=a<3?void 0:o,a=1),t=Object(t);++i<a;){var l=n[i];l&&e(t,l,i,o)}return t}))}((function(e,t,n,i){Pp(e,t,n,i)})));function jp(...e){const t=e[0],n=e.slice(1);return n.length?Lp(Lp({},t),...n,((e,t,n)=>"children"===n?e&&t?a.cloneElement(e,{children:t}):Object.assign(Object.assign({},t),e):"className"===n?l(e,t):void 0)):Lp({},t)}const Fp="--pf-v5-c-table__sticky-cell--MinWidth",Ap="--pf-v5-c-table__sticky-cell--Left",Mp="--pf-v5-c-table__sticky-cell--Right",Bp=e=>{var{children:t,className:n,component:i="th",dataLabel:o,scope:s="col",textCenter:c=!1,sort:d=null,modifier:p,select:u=null,expand:f=null,tooltip:m="",tooltipProps:h,onMouseEnter:b=(()=>{}),width:g,visibility:v,innerRef:y,info:x,isStickyColumn:w=!1,hasRightBorder:E=!1,hasLeftBorder:O=!1,stickyMinWidth:C="120px",stickyLeftOffset:N,stickyRightOffset:S,isSubheader:k=!1,screenReaderText:R,"aria-label":I}=e,T=r(e,["children","className","component","dataLabel","scope","textCenter","sort","modifier","select","expand","tooltip","tooltipProps","onMouseEnter","width","visibility","innerRef","info","isStickyColumn","hasRightBorder","hasLeftBorder","stickyMinWidth","stickyLeftOffset","stickyRightOffset","isSubheader","screenReaderText","aria-label"]);t||R||I||console.warn("Th: Table headers must have an accessible name. If the Th is intended to be visually empty, pass in screenReaderText. If the Th contains only non-text, interactive content such as a checkbox or expand toggle, pass in an aria-label.");const[_,D]=a.useState(!1),[P,L]=a.useState(!1),j=y||a.createRef(),F=e=>{e.target.offsetWidth<e.target.scrollWidth?!_&&D(!0):_&&D(!1),b(e)};let A=null;d&&(A=d.isFavorites?pr({onSort:null==d?void 0:d.onSort,columnIndex:d.columnIndex,sortBy:d.sortBy,tooltip:m,tooltipProps:h})():ur(t,{columnIndex:d.columnIndex,column:{extraParams:{sortBy:d.sortBy,onSort:null==d?void 0:d.onSort}},tooltip:m,tooltipProps:h}));const M=u?or(t,{rowData:{selected:u.isSelected,disableSelection:null==u?void 0:u.isDisabled,props:null==u?void 0:u.props},column:{extraParams:{onSelect:null==u?void 0:u.onSelect,selectVariant:"checkbox",allRowsSelected:u.isSelected,isHeaderSelectDisabled:!!u.isHeaderSelectDisabled}},tooltip:m,tooltipProps:h}):null,B=f?Or(t,{column:{extraParams:{onCollapse:null==f?void 0:f.onToggle,allRowsExpanded:!f.areAllExpanded,collapseAllAriaLabel:""}}}):null,H=g?yr(g)():null,V=v?kr(...v.map((e=>Sr[e])))():null;let z=(null==A?void 0:A.children)||(null==M?void 0:M.children)||(null==B?void 0:B.children)||t,$=null;x&&($=Rr(x)(z),z=$.children);const W=jp(A,M,B,H,V,$),{children:K=null,isVisible:G=null,className:U="",component:q=i}=W,X=r(W,["children","isVisible","className","component"]);a.useEffect((()=>{L(j.current.offsetWidth<j.current.scrollWidth)}),[j]);const Y=a.createElement(q,Object.assign({tabIndex:d||u||!P?-1:0,onFocus:null!==m?F:b,onBlur:()=>D(!1),"data-label":o,onMouseEnter:null!==m?F:b,scope:"th"===i?s:null,ref:j,"aria-label":I,className:l(Fi.tableTh,n,c&&Fi.modifiers.center,k&&Fi.tableSubhead,w&&pl,E&&sl.borderRight,O&&sl.borderLeft,p&&Fi.modifiers[p],U)},X,T,w&&{style:Object.assign({[Fp]:C||void 0,[Ap]:N||0,[Mp]:S||0},T.style)}),z||R&&a.createElement("span",{className:"pf-v5-screen-reader"},R));return null!==m&&(""!==m||"string"==typeof z)&&!(A||M)&&_?a.createElement(a.Fragment,null,Y,a.createElement(Zn,Object.assign({triggerRef:j,content:m||""===m&&t,isVisible:!0},h))):Y},Hp=a.forwardRef(((e,t)=>a.createElement(Bp,Object.assign({},e,{innerRef:t}))));Hp.displayName="Th";const Vp=e=>{var{children:t,className:n,isActionCell:i=!1,component:o="td",dataLabel:s,textCenter:c=!1,modifier:d,select:p=null,actions:u=null,expand:f=null,treeRow:m=null,compoundExpand:h=null,noPadding:b,width:g,visibility:v,innerRef:y,favorites:x=null,draggableRow:w=null,tooltip:E="",onMouseEnter:O=(()=>{}),isStickyColumn:C=!1,hasRightBorder:N=!1,hasLeftBorder:S=!1,stickyMinWidth:k="120px",stickyLeftOffset:R,stickyRightOffset:I}=e,T=r(e,["children","className","isActionCell","component","dataLabel","textCenter","modifier","select","actions","expand","treeRow","compoundExpand","noPadding","width","visibility","innerRef","favorites","draggableRow","tooltip","onMouseEnter","isStickyColumn","hasRightBorder","hasLeftBorder","stickyMinWidth","stickyLeftOffset","stickyRightOffset"]);const[_,D]=a.useState(!1),[P,L]=a.useState(!1),j=y||a.createRef(),F=e=>{e.target.offsetWidth<e.target.scrollWidth?!_&&D(!0):_&&D(!1),O(e)},A=p?or(t,{rowIndex:p.rowIndex,rowData:{selected:p.isSelected,disableSelection:null==p?void 0:p.isDisabled,props:null==p?void 0:p.props},column:{extraParams:{onSelect:null==p?void 0:p.onSelect,selectVariant:p.variant||"checkbox"}}}):null,M=x?Tr(0,{rowIndex:null==x?void 0:x.rowIndex,rowData:{favorited:x.isFavorited,favoritesProps:null==x?void 0:x.props},column:{extraParams:{onFavorite:null==x?void 0:x.onFavorite}}}):null,B=null!==w?((e,{rowData:t})=>{const{id:n}=t;return{className:"",children:a.createElement(Bi,{id:n})}})(0,{rowData:{id:w.id}}):null,H=u?mr(u.items,null,null):null,V=jp(A,H?H(null,{rowIndex:null==u?void 0:u.rowIndex,rowData:{disableActions:null==u?void 0:u.isDisabled},column:{extraParams:{dropdownPosition:null==u?void 0:u.dropdownPosition,dropdownDirection:null==u?void 0:u.dropdownDirection,menuAppendTo:null==u?void 0:u.menuAppendTo,actionsToggle:null==u?void 0:u.actionsToggle}}}):null,null!==f?Or(null,{rowIndex:f.rowIndex,columnIndex:null==f?void 0:f.columnIndex,rowData:{isOpen:f.isExpanded},column:{extraParams:{onCollapse:null==f?void 0:f.onToggle,expandId:null==f?void 0:f.expandId}}}):null,null!==h?Nr({title:t,props:{isOpen:h.isExpanded}},{rowIndex:null==h?void 0:h.rowIndex,columnIndex:null==h?void 0:h.columnIndex,column:{extraParams:{onExpand:null==h?void 0:h.onToggle,expandId:null==h?void 0:h.expandId}}}):null,g?yr(g)():null,v?kr(...v.map((e=>Sr[e])))():null,M,null!==m?Dr(m.onCollapse,m.onCheckChange,m.onToggleRowDetails)({title:t},{rowIndex:m.rowIndex,rowData:{props:m.props}}):null,B),{isVisible:z=null,children:$=null,className:W="",component:K=o}=V,G=r(V,["isVisible","children","className","component"]),U=n&&n.includes(ir)||W&&W.includes(ir);a.useEffect((()=>{L(j.current.offsetWidth<j.current.scrollWidth)}),[j]);const q=a.createElement(K,Object.assign({tabIndex:!p&&P||"truncate"===d?0:-1},!U&&{"data-label":s},{onFocus:null!==E?F:O,onBlur:()=>D(!1),onMouseEnter:null!==E?F:O,className:l(Fi.tableTd,n,i&&Fi.tableAction,c&&Fi.modifiers.center,b&&Fi.modifiers.noPadding,C&&pl,N&&sl.borderRight,S&&sl.borderLeft,Fi.modifiers[d],B&&Fi.tableDraggable,W),ref:j},G,T,C&&{style:Object.assign({[Fp]:k||void 0,[Ap]:R||0,[Mp]:I||0},T.style)}),$||t);return null!==E&&(""!==E||"string"==typeof t)&&_?a.createElement(a.Fragment,null,q,a.createElement(Zn,{triggerRef:j,content:E||""===E&&t,isVisible:!0})):q},zp=a.forwardRef(((e,t)=>a.createElement(Vp,Object.assign({},e,{innerRef:t}))));zp.displayName="Td";const $p=e=>{var{children:t,className:n}=e,i=r(e,["children","className"]);return a.createElement("caption",Object.assign({className:l(Fi.tableCaption,n)},i),t)};$p.displayName="Caption";const Wp=e=>{var{children:t,className:n}=e,i=r(e,["children","className"]);return a.createElement("div",Object.assign({className:l(n,dl)},i),t)};Wp.displayName="OuterScrollContainer";const Kp=e=>{var{children:t,className:n}=e,i=r(e,["children","className"]);return a.createElement("div",Object.assign({className:l(n,cl)},i),t)};Kp.displayName="InnerScrollContainer",e.ActionsColumn=Li,e.Caption=$p,e.CollapseColumn=Ai,e.DraggableCell=Bi,e.EditableSelectInputCell=mo,e.EditableTextCell=ho,e.ExpandableRowContent=bo,e.FavoritesCell=Ir,e.HeaderCellInfoWrapper=Go,e.InnerScrollContainer=Kp,e.OuterScrollContainer=Wp,e.RowWrapper=nl,e.SelectColumn=ar,e.SortColumn=dr,e.Table=Qr,e.TableContext=Jr,e.TableText=Ko,e.Tbody=ll,e.Td=zp,e.Th=Hp,e.Thead=ol,e.Tr=tl,e.TreeRowWrapper=il,e.Visibility=Sr,e.applyCellEdits=(e,t)=>(e.cells.forEach((e=>{delete e.props.errorText;const n=void 0!==e.props.value&&null!==e.props.value,i=void 0!==e.props.editableValue&&null!==e.props.editableValue;n&&!i&&(e.props.editableValue=e.props.value),e.props&&n&&i&&("save"===t&&(e.props.value=e.props.editableValue,e.props.isValid=!0,delete e.props.errorText),delete e.props.editableValue)})),e.isEditable=!e.isEditable,e.isValid=!0,e),e.breakWord=()=>({className:Fi.modifiers.breakWord}),e.calculateColumns=(e,t)=>e&&[...Wr(e,t),...Vr(t),...zr(t),...Gr(e,t),...Ur(t),...$r(t)].map(((e,n)=>Object.assign({},((e,t,n,...i)=>{const a=e.hasOwnProperty("title")?e.title:e;let o=`column-${n}`;return e.hasOwnProperty("dataLabel")?o=e.dataLabel:"string"==typeof a&&(o=a),{property:"string"==typeof a&&a.toLowerCase().trim().replace(/\s/g,"-")||`column-${n}`,extraParams:t,data:e.data,header:Br(e,a),cell:Hr(e),props:Object.assign(Object.assign({"data-label":o,"data-key":n},e.hasOwnProperty("props")?e.props:{}),i)}})(e,t,n)))),e.cancelCellEdits=e=>(e.cells.forEach((e=>{delete e.props.errorText,delete e.props.editableValue,e.props.isValid=!0,e.props.selected&&(e.props.selected=e.props.value)})),e.isEditable=!e.isEditable,e.isValid=!0,e),e.capitalize=vr,e.cellActions=mr,e.cellWidth=yr,e.classNames=kr,e.collapsible=Or,e.compoundExpand=Nr,e.defaultTitle=Mr,e.editable=Er,e.emptyCol=jr,e.emptyTD=Pr,e.expandable=(e,{rowData:t})=>t&&t.hasOwnProperty("parent")?a.createElement(bo,null,e):e,e.expandedRow=Cr,e.favoritable=Tr,e.fitContent=()=>({className:Fi.modifiers.fitContent}),e.getErrorTextByValidator=hr,e.headerCol=(e="simple-node")=>(t,{rowIndex:n}={})=>{const i="object"==typeof t?t.title:t;return{component:"th",children:a.createElement("div",{id:`${e}${n}`},i)}},e.info=Rr,e.isRowExpanded=(e,t)=>{if(void 0!==e.parent)return e.hasOwnProperty("compoundParent")?((e,t,n)=>{for(const i of n){if(!n[e].hasOwnProperty("parent"))return n[e].cells[t].props.isOpen;e=n[e].parent}return!1})(e.parent,e.compoundParent,t):((e,t)=>{for(const n of t){if(!t[e].hasOwnProperty("parent"))return t[e].isOpen;e=t[e].parent}return!1})(e.parent,t)&&t[e.parent].isOpen},e.mapOpenedRows=(e,t)=>e.reduce(((e,n,i)=>{if(n.hasOwnProperty("parent")){e.length>0&&e[e.length-1]&&(e[e.length-1].rows=[...e[e.length-1].rows,t[i]],n.hasOwnProperty("compoundParent")&&(e[e.length-1].isOpen=e[e.length-1].rows.some((e=>e.props.rowData.cells.some((e=>e.props&&e.props.isOpen))))))}else e=[...e,Object.assign(Object.assign({},n),{rows:[t[i]]})];return e}),[]),e.mapProps=Ar,e.nowrap=()=>({className:Fi.modifiers.nowrap}),e.parentId=Fr,e.scopeColTransformer=Lr,e.selectable=or,e.sortable=ur,e.sortableFavorites=pr,e.textCenter=()=>({textCenter:!0}),e.toCamel=gr,e.treeRow=Dr,e.truncate=()=>({className:Fi.modifiers.truncate}),e.validateCellEdits=(e,t,n,i="Validation requires unique name property for row cells")=>(e.isValid=!Object.keys(n).length,e.cells.forEach((a=>{delete a.props.errorText;const o=void 0!==a.props.value&&null!==a.props.value,r=void 0!==a.props.editableValue&&null!==a.props.editableValue;if(a.props&&o&&r&&"save"===t){const t=Object.keys(n).filter((e=>n[e].includes(a.props.name))).map((t=>hr(t,e.rowEditValidationRules)));t.length?(a.props.errorText=a.props.name?t.join(", "):i,void 0===a.props.name&&console.warn("Row edit validation reporting requires cell definitions to have a unique name property.")):(delete a.props.errorText,a.props.isValid=!0)}})),e),e.wrappable=()=>({className:Fi.modifiers.wrap})}));
|