@patternfly/react-table 6.5.0-prerelease.4 → 6.5.0-prerelease.5
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 +6 -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/esm/components/Table/Table.d.ts +2 -0
- package/dist/esm/components/Table/Table.d.ts.map +1 -1
- package/dist/esm/components/Table/Table.js +3 -3
- package/dist/esm/components/Table/Table.js.map +1 -1
- package/dist/js/components/Table/Table.d.ts +2 -0
- package/dist/js/components/Table/Table.d.ts.map +1 -1
- package/dist/js/components/Table/Table.js +3 -3
- package/dist/js/components/Table/Table.js.map +1 -1
- package/dist/umd/assets/{output-D_A9f7KQ.css → output-CHkV-iRK.css} +4819 -4819
- package/dist/umd/react-table.min.js +1 -1
- package/package.json +3 -3
- package/src/components/Table/Table.tsx +4 -0
- package/src/components/Table/examples/Table.md +3 -0
- package/src/components/Table/examples/TablePlain.tsx +52 -0
|
@@ -7,4 +7,4 @@
|
|
|
7
7
|
* focus-trap 7.6.4
|
|
8
8
|
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
|
|
9
9
|
*/
|
|
10
|
-
function ve(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function be(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t);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:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ge(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 xe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ge(Object(n),!0).forEach((function(t){be(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ge(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ye(e){return function(e){if(Array.isArray(e))return ve(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return ve(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ve(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var we=function(e,t){if(e.length>0){var n=e[e.length-1];n!==t&&n._setPausedState(!0)}var i=e.indexOf(t);-1===i||e.splice(i,1),e.push(t)},Oe=function(e,t){var n=e.indexOf(t);-1!==n&&e.splice(n,1),e.length>0&&!e[e.length-1]._isManuallyPaused()&&e[e.length-1]._setPausedState(!1)},je=function(e){return"Tab"===(null==e?void 0:e.key)||9===(null==e?void 0:e.keyCode)},Ne=function(e){return je(e)&&!e.shiftKey},Ce=function(e){return je(e)&&e.shiftKey},Se=function(e){return setTimeout(e,0)},_e=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},Ee=function(e){return e.target.shadowRoot&&"function"==typeof e.composedPath?e.composedPath()[0]:e.target},Ie=[],Te=function(e,t){var n,i=(null==t?void 0:t.document)||document,o=(null==t?void 0:t.trapStack)||Ie,r=xe({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:Ne,isKeyBackward:Ce},t),a={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},s=function(e,t,n){return e&&void 0!==e[t]?e[t]:r[n||t]},l=function(e,t){var n="function"==typeof(null==t?void 0:t.composedPath)?t.composedPath():void 0;return a.containerGroups.findIndex((function(t){var i=t.container,o=t.tabbableNodes;return i.contains(e)||(null==n?void 0:n.includes(i))||o.find((function(t){return t===e}))}))},c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.hasFallback,o=void 0!==n&&n,a=t.params,s=void 0===a?[]:a,l=r[e];if("function"==typeof l&&(l=l.apply(void 0,ye(s))),!0===l&&(l=void 0),!l){if(void 0===l||!1===l)return l;throw new Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var c=l;if("string"==typeof l){try{c=i.querySelector(l)}catch(t){throw new Error("`".concat(e,'` appears to be an invalid selector; error="').concat(t.message,'"'))}if(!c&&!o)throw new Error("`".concat(e,"` as selector refers to no known node"))}return c},d=function(){var e=c("initialFocus",{hasFallback:!0});if(!1===e)return!1;if(void 0===e||e&&!he(e,r.tabbableOptions))if(l(i.activeElement)>=0)e=i.activeElement;else{var t=a.tabbableGroups[0];e=t&&t.firstTabbableNode||c("fallbackFocus")}else null===e&&(e=c("fallbackFocus"));if(!e)throw new Error("Your focus-trap needs to have at least one focusable element");return e},p=function(){if(a.containerGroups=a.containers.map((function(e){var t=function(e,t){var n;return n=(t=t||{}).getShadowRoot?te([e],t.includeContainer,{filter:de.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:pe}):ee(e,t.includeContainer,de.bind(null,t)),ue(n)}(e,r.tabbableOptions),n=function(e,t){return(t=t||{}).getShadowRoot?te([e],t.includeContainer,{filter:ce.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):ee(e,t.includeContainer,ce.bind(null,t))}(e,r.tabbableOptions),i=t.length>0?t[0]:void 0,o=t.length>0?t[t.length-1]:void 0,a=n.find((function(e){return fe(e)})),s=n.slice().reverse().find((function(e){return fe(e)})),l=!!t.find((function(e){return ie(e)>0}));return{container:e,tabbableNodes:t,focusableNodes:n,posTabIndexesFound:l,firstTabbableNode:i,lastTabbableNode:o,firstDomTabbableNode:a,lastDomTabbableNode:s,nextTabbableNode:function(e){var i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=t.indexOf(e);return o<0?i?n.slice(n.indexOf(e)+1).find((function(e){return fe(e)})):n.slice(0,n.indexOf(e)).reverse().find((function(e){return fe(e)})):t[o+(i?1:-1)]}}})),a.tabbableGroups=a.containerGroups.filter((function(e){return e.tabbableNodes.length>0})),a.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(a.containerGroups.find((function(e){return e.posTabIndexesFound}))&&a.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){var t=e.activeElement;if(t)return t.shadowRoot&&null!==t.shadowRoot.activeElement?u(t.shadowRoot):t},f=function(e){!1!==e&&e!==u(document)&&(e&&e.focus?(e.focus({preventScroll:!!r.preventScroll}),a.mostRecentlyFocusedNode=e,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select}(e)&&e.select()):f(d()))},m=function(e){var t=c("setReturnFocus",{params:[e]});return t||!1!==t&&e},h=function(e){var t=e.target,n=e.event,i=e.isBackward,o=void 0!==i&&i;t=t||Ee(n),p();var s=null;if(a.tabbableGroups.length>0){var d=l(t,n),u=d>=0?a.containerGroups[d]:void 0;if(d<0)s=o?a.tabbableGroups[a.tabbableGroups.length-1].lastTabbableNode:a.tabbableGroups[0].firstTabbableNode;else if(o){var f=a.tabbableGroups.findIndex((function(e){var n=e.firstTabbableNode;return t===n}));if(f<0&&(u.container===t||he(t,r.tabbableOptions)&&!fe(t,r.tabbableOptions)&&!u.nextTabbableNode(t,!1))&&(f=d),f>=0){var m=0===f?a.tabbableGroups.length-1:f-1,h=a.tabbableGroups[m];s=ie(t)>=0?h.lastTabbableNode:h.lastDomTabbableNode}else je(n)||(s=u.nextTabbableNode(t,!1))}else{var v=a.tabbableGroups.findIndex((function(e){var n=e.lastTabbableNode;return t===n}));if(v<0&&(u.container===t||he(t,r.tabbableOptions)&&!fe(t,r.tabbableOptions)&&!u.nextTabbableNode(t))&&(v=d),v>=0){var b=v===a.tabbableGroups.length-1?0:v+1,g=a.tabbableGroups[b];s=ie(t)>=0?g.firstTabbableNode:g.firstDomTabbableNode}else je(n)||(s=u.nextTabbableNode(t))}}else s=c("fallbackFocus");return s},v=function(e){var t=Ee(e);l(t,e)>=0||(_e(r.clickOutsideDeactivates,e)?n.deactivate({returnFocus:r.returnFocusOnDeactivate}):_e(r.allowOutsideClick,e)||e.preventDefault())},b=function(e){var t=Ee(e),n=l(t,e)>=0;if(n||t instanceof Document)n&&(a.mostRecentlyFocusedNode=t);else{var i;e.stopImmediatePropagation();var o=!0;if(a.mostRecentlyFocusedNode)if(ie(a.mostRecentlyFocusedNode)>0){var s=l(a.mostRecentlyFocusedNode),c=a.containerGroups[s].tabbableNodes;if(c.length>0){var p=c.findIndex((function(e){return e===a.mostRecentlyFocusedNode}));p>=0&&(r.isKeyForward(a.recentNavEvent)?p+1<c.length&&(i=c[p+1],o=!1):p-1>=0&&(i=c[p-1],o=!1))}}else a.containerGroups.some((function(e){return e.tabbableNodes.some((function(e){return ie(e)>0}))}))||(o=!1);else o=!1;o&&(i=h({target:a.mostRecentlyFocusedNode,isBackward:r.isKeyBackward(a.recentNavEvent)})),f(i||(a.mostRecentlyFocusedNode||d()))}a.recentNavEvent=void 0},g=function(e){(r.isKeyForward(e)||r.isKeyBackward(e))&&function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];a.recentNavEvent=e;var n=h({event:e,isBackward:t});n&&(je(e)&&e.preventDefault(),f(n))}(e,r.isKeyBackward(e))},x=function(e){var t;"Escape"!==(null==(t=e)?void 0:t.key)&&"Esc"!==(null==t?void 0:t.key)&&27!==(null==t?void 0:t.keyCode)||!1===_e(r.escapeDeactivates,e)||(e.preventDefault(),n.deactivate())},y=function(e){var t=Ee(e);l(t,e)>=0||_e(r.clickOutsideDeactivates,e)||_e(r.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},w=function(){if(a.active)return we(o,n),a.delayInitialFocusTimer=r.delayInitialFocus?Se((function(){f(d())})):f(d()),i.addEventListener("focusin",b,!0),i.addEventListener("mousedown",v,{capture:!0,passive:!1}),i.addEventListener("touchstart",v,{capture:!0,passive:!1}),i.addEventListener("click",y,{capture:!0,passive:!1}),i.addEventListener("keydown",g,{capture:!0,passive:!1}),i.addEventListener("keydown",x),n},O=function(){if(a.active)return i.removeEventListener("focusin",b,!0),i.removeEventListener("mousedown",v,!0),i.removeEventListener("touchstart",v,!0),i.removeEventListener("click",y,!0),i.removeEventListener("keydown",g,!0),i.removeEventListener("keydown",x),n},j="undefined"!=typeof window&&"MutationObserver"in window?new MutationObserver((function(e){e.some((function(e){return Array.from(e.removedNodes).some((function(e){return e===a.mostRecentlyFocusedNode}))}))&&f(d())})):void 0,N=function(){j&&(j.disconnect(),a.active&&!a.paused&&a.containers.map((function(e){j.observe(e,{subtree:!0,childList:!0})})))};return n={get active(){return a.active},get paused(){return a.paused},activate:function(e){if(a.active)return this;var t=s(e,"onActivate"),n=s(e,"onPostActivate"),o=s(e,"checkCanFocusTrap");o||p(),a.active=!0,a.paused=!1,a.nodeFocusedBeforeActivation=i.activeElement,null==t||t();var r=function(){o&&p(),w(),N(),null==n||n()};return o?(o(a.containers.concat()).then(r,r),this):(r(),this)},deactivate:function(e){if(!a.active)return this;var t=xe({onDeactivate:r.onDeactivate,onPostDeactivate:r.onPostDeactivate,checkCanReturnFocus:r.checkCanReturnFocus},e);clearTimeout(a.delayInitialFocusTimer),a.delayInitialFocusTimer=void 0,O(),a.active=!1,a.paused=!1,N(),Oe(o,n);var i=s(t,"onDeactivate"),l=s(t,"onPostDeactivate"),c=s(t,"checkCanReturnFocus"),d=s(t,"returnFocus","returnFocusOnDeactivate");null==i||i();var p=function(){Se((function(){d&&f(m(a.nodeFocusedBeforeActivation)),null==l||l()}))};return d&&c?(c(m(a.nodeFocusedBeforeActivation)).then(p,p),this):(p(),this)},pause:function(e){return a.active?(a.manuallyPaused=!0,this._setPausedState(!0,e)):this},unpause:function(e){return a.active?(a.manuallyPaused=!1,o[o.length-1]!==this?this:this._setPausedState(!1,e)):this},updateContainerElements:function(e){var t=[].concat(e).filter(Boolean);return a.containers=t.map((function(e){return"string"==typeof e?i.querySelector(e):e})),a.active&&p(),N(),this}},Object.defineProperties(n,{_isManuallyPaused:{value:function(){return a.manuallyPaused}},_setPausedState:{value:function(e,t){if(a.paused===e)return this;if(a.paused=e,e){var n=s(t,"onPause"),i=s(t,"onPostPause");null==n||n(),O(),N(),null==i||i()}else{var o=s(t,"onUnpause"),r=s(t,"onPostUnpause");null==o||o(),p(),w(),N(),null==r||r()}return this}}}),n.updateContainerElements(e),n};const Re=t.forwardRef((function(e,n){var{active:i=!0,paused:o=!1,focusTrapOptions:a={},preventScrollOnDeactivate:s=!1}=e,l=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=Te(c.current,Object.assign(Object.assign({},a),{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;o?null==e||e.pause():null==e||e.unpause()}),[o]);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!==a.returnFocusOnDeactivate&&p.current instanceof HTMLElement&&p.current.focus({preventScroll:s})})),b.jsx("div",Object.assign({ref:c},l))}));function ke(e="pf"){return`${e}-${(new Date).getTime()+Math.random().toString(36).slice(2)}`}function Pe(e,t){let n;return(...i)=>{clearTimeout(n),n=setTimeout((()=>e.apply(this,i)),t)}}Re.displayName="FocusTrap";const Le=(e,t,n="",i,o)=>e?Object.entries(e||{}).map((([e,t])=>`${n}${t}${"default"!==e?`-on-${e}`:""}`)).map(Ae).map((e=>e.replace(/-?(\dxl)/gi,((e,t)=>`_${t}`)))).map((e=>t.modifiers[e])).filter(Boolean).join(" "):"",De=e=>e.toUpperCase().replace("-","").replace("_",""),Ae=e=>e.replace(/([-_][a-z])/gi,De),Me=!("undefined"==typeof window||!window.document||!window.document.createElement),Fe=(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},Be=(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(Fe(t,e)>n){for(;Fe(`...${i}`,e)>n;)i=i.substring(1);e.value?e.value=`...${i}`:e.innerText=`...${i}`}else e.value?e.value=t:e.innerText=t},He=e=>{e.forEach((e=>{e.current&&clearTimeout(e.current)}))};let ze=0;class Ve extends t.Component{constructor(){super(...arguments),this.uniqueElement=this.props.isRandom?"undefined"!=typeof crypto&&crypto.randomUUID?crypto.randomUUID():ke():ze++,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 $e=0;const We="OUIA-Generated-",Ue={};function qe(e,t,n=!0){return{"data-ouia-component-type":`PF6/${e}`,"data-ouia-safe":n,"data-ouia-component-id":t}}const Ge=(e,t,n=!0,i)=>({"data-ouia-component-type":`PF6/${e}`,"data-ouia-safe":n,"data-ouia-component-id":Ke(e,t,i)}),Ke=(e,n,i)=>{const o=t.useMemo((()=>Xe(e,i)),[e,i]);return null!=n?n:o};function Xe(e,t){try{let n;return n="undefined"!=typeof window?`${window.location.href}-${e}-${t||""}`:`${e}-${t||""}`,Ue[n]||(Ue[n]=0),`${We}${e}-${t?`${t}-`:""}${++Ue[n]}`}catch(n){return`${We}${e}-${t?`${t}-`:""}${++$e}`}}function Ye(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 Ze(e){if("[object Window]"!==e.toString()){const t=e.ownerDocument;return t?t.defaultView:window}return e}function Je(e){const t=Ze(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Qe(e){return e instanceof Ze(e).Element||e instanceof Element}function et(e){return e instanceof Ze(e).HTMLElement||e instanceof HTMLElement}function tt(e){return e?(e.nodeName||"").toLowerCase():null}function nt(e){return(Qe(e)?e.ownerDocument:e.document).documentElement}function it(e){return Ye(nt(e)).left+Je(e).scrollLeft}function ot(e){return Ze(e).getComputedStyle(e)}function rt(e){const{overflow:t,overflowX:n,overflowY:i}=ot(e);return/auto|scroll|overlay|hidden/.test(t+i+n)}function at(e,t,n=!1){const i=nt(t),o=Ye(e),r=et(t);let a={scrollLeft:0,scrollTop:0},s={x:0,y:0};var l,c;return(r||!r&&!n)&&(("body"!==tt(t)||rt(i))&&(a=(l=t)!==Ze(l)&&et(l)?{scrollLeft:(c=l).scrollLeft,scrollTop:c.scrollTop}:Je(l)),et(t)?(s=Ye(t),s.x+=t.clientLeft,s.y+=t.clientTop):i&&(s.x=it(i))),{x:o.left+a.scrollLeft-s.x,y:o.top+a.scrollTop-s.y,width:o.width,height:o.height}}function st(e){return{x:e.offsetLeft,y:e.offsetTop,width:e.offsetWidth,height:e.offsetHeight}}function lt(e){return"html"===tt(e)?e:e.assignedSlot||e.parentNode||e.host||nt(e)}function ct(e){return["html","body","#document"].indexOf(tt(e))>=0?e.ownerDocument.body:et(e)&&rt(e)?e:ct(lt(e))}function dt(e,t=[]){const n=ct(e),i="body"===tt(n),o=Ze(n),r=i?[o].concat(o.visualViewport||[],rt(n)?n:[]):n,a=t.concat(r);return i?a:a.concat(dt(lt(r)))}function pt(e){return["table","td","th"].indexOf(tt(e))>=0}function ut(e){if(!et(e)||"fixed"===ot(e).position)return null;const t=e.offsetParent;if(t){const e=nt(t);if("body"===tt(t)&&"static"===ot(t).position&&"static"!==ot(e).position)return e}return t}function ft(e){const t=Ze(e);let n=ut(e);for(;n&&pt(n)&&"static"===ot(n).position;)n=ut(n);return n&&"body"===tt(n)&&"static"===ot(n).position?t:n||function(e){let t=lt(e);for(;et(t)&&["html","body"].indexOf(tt(t))<0;){const e=ot(t);if("none"!==e.transform||"none"!==e.perspective||e.willChange&&"auto"!==e.willChange)return t;t=t.parentNode}return null}(e)||t}const mt="top",ht="bottom",vt="right",bt="left",gt="auto",xt=[mt,ht,vt,bt],yt="start",wt="end",Ot="clippingParents",jt="viewport",Nt="popper",Ct="reference",St=xt.reduce(((e,t)=>e.concat([`${t}-${yt}`,`${t}-${wt}`])),[]),_t=[...xt,gt].reduce(((e,t)=>e.concat([t,`${t}-${yt}`,`${t}-${wt}`])),[]),Et=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function It(e){const t=new Map,n=new Set,i=[];function o(e){n.add(e.name);[...e.requires||[],...e.requiresIfExists||[]].forEach((e=>{if(!n.has(e)){const n=t.get(e);n&&o(n)}})),i.push(e)}return e.forEach((e=>{t.set(e.name,e)})),e.forEach((e=>{n.has(e.name)||o(e)})),i}function Tt(e){let t;return()=>(t||(t=new Promise((n=>{Promise.resolve().then((()=>{t=void 0,n(e())}))}))),t)}function Rt(e){return e.split("-")[0]}function kt(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 Pt(e){return Object.assign(Object.assign({},e),{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Lt(e,t){return t===jt?Pt(function(e){const t=Ze(e),n=nt(e),i=t.visualViewport;let o=n.clientWidth,r=n.clientHeight,a=0,s=0;return i&&(o=i.width,r=i.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=i.offsetLeft,s=i.offsetTop)),{width:o,height:r,x:a+it(e),y:s}}(e)):et(t)?function(e){const t=Ye(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):Pt(function(e){const t=nt(e),n=Je(e),i=e.ownerDocument.body,o=Math.max(t.scrollWidth,t.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),r=Math.max(t.scrollHeight,t.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0);let a=-n.scrollLeft+it(e);const s=-n.scrollTop;return"rtl"===ot(i||t).direction&&(a+=Math.max(t.clientWidth,i?i.clientWidth:0)-o),{width:o,height:r,x:a,y:s}}(nt(e)))}function Dt(e,t,n){const i="clippingParents"===t?function(e){const t=dt(lt(e)),n=["absolute","fixed"].indexOf(ot(e).position)>=0&&et(e)?ft(e):e;return Qe(n)?t.filter((e=>Qe(e)&&kt(e,n)&&"body"!==tt(e))):[]}(e):[].concat(t),o=[...i,n],r=o[0],a=o.reduce(((t,n)=>{const i=Lt(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}),Lt(e,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function At(e){return e.split("-")[1]}function Mt(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ft({reference:e,element:t,placement:n}){const i=n?Rt(n):null,o=n?At(n):null,r=e.x+e.width/2-t.width/2,a=e.y+e.height/2-t.height/2;let s;switch(i){case mt:s={x:r,y:e.y-t.height};break;case ht:s={x:r,y:e.y+e.height};break;case vt:s={x:e.x+e.width,y:a};break;case bt:s={x:e.x-t.width,y:a};break;default:s={x:e.x,y:e.y}}const l=i?Mt(i):null;if(null!=l){const n="y"===l?"height":"width";switch(o){case yt:s[l]=Math.floor(s[l])-Math.floor(e[n]/2-t[n]/2);break;case wt:s[l]=Math.floor(s[l])+Math.ceil(e[n]/2-t[n]/2)}}return s}function Bt(e){return Object.assign(Object.assign({},{top:0,right:0,bottom:0,left:0}),e)}function Ht(e,t){return t.reduce(((t,n)=>(t[n]=e,t)),{})}function zt(e,t={}){const{placement:n=e.placement,boundary:i=Ot,rootBoundary:o=jt,elementContext:r=Nt,altBoundary:a=!1,padding:s=0}=t,l=Bt("number"!=typeof s?s:Ht(s,xt)),c=r===Nt?Ct:Nt,d=e.elements.reference,p=e.rects.popper,u=e.elements[a?c:r],f=Dt(Qe(u)?u:u.contextElement||nt(e.elements.popper),i,o),m=Ye(d),h=Ft({reference:m,element:p,placement:n}),v=Pt(Object.assign(Object.assign({},p),h)),b=r===Nt?v:m,g={top:f.top-b.top+l.top,bottom:b.bottom-f.bottom+l.bottom,left:f.left-b.left+l.left,right:b.right-f.right+l.right},x=e.modifiersData.offset;if(r===Nt&&x){const e=x[n];Object.keys(g).forEach((t=>{const n=[vt,ht].indexOf(t)>=0?1:-1,i=[mt,ht].indexOf(t)>=0?"y":"x";g[t]+=e[i]*n}))}return g}const Vt={placement:"bottom",modifiers:[],strategy:"absolute"};function $t(...e){return!e.some((e=>!(e&&"function"==typeof e.getBoundingClientRect)))}function Wt(e={}){const{defaultModifiers:t=[],defaultOptions:n=Vt}=e;return function(e,i,o=n){let r={placement:"bottom",orderedModifiers:[],options:Object.assign(Object.assign({},Vt),n),modifiersData:{},elements:{reference:e,popper:i},attributes:{},styles:{}},a=[],s=!1;const l={state:r,setOptions(o){c(),r.options=Object.assign(Object.assign(Object.assign({},n),r.options),o),r.scrollParents={reference:Qe(e)?dt(e):e.contextElement?dt(e.contextElement):[],popper:dt(i)};const s=function(e){const t=It(e);return Et.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,...r.options.modifiers]));return r.orderedModifiers=s.filter((e=>e.enabled)),r.orderedModifiers.forEach((({name:e,options:t={},effect:n})=>{if("function"==typeof n){const i=n({state:r,name:e,instance:l,options:t}),o=()=>{};a.push(i||o)}})),l.update()},forceUpdate(){if(s)return;const{reference:e,popper:t}=r.elements;if($t(e,t)){r.rects={reference:at(e,ft(t),"fixed"===r.options.strategy),popper:st(t)},r.reset=!1,r.placement=r.options.placement,r.orderedModifiers.forEach((e=>r.modifiersData[e.name]=Object.assign({},e.data)));for(let e=0;e<r.orderedModifiers.length;e++){if(!0===r.reset){r.reset=!1,e=-1;continue}const{fn:t,options:n={},name:i}=r.orderedModifiers[e];"function"==typeof t&&(r=t({state:r,options:n,name:i,instance:l})||r)}}},update:Tt((()=>new Promise((e=>{l.forceUpdate(),e(r)})))),destroy(){c(),s=!0}};if(!$t(e,i))return l;function c(){a.forEach((e=>e())),a=[]}return l.setOptions(o).then((e=>{!s&&o.onFirstUpdate&&o.onFirstUpdate(e)})),l}}Wt();const Ut={passive:!0};const qt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Gt({popper:e,popperRect:t,placement:n,offsets:i,position:o,gpuAcceleration:r,adaptive:a}){let{x:s,y:l}=function({x:e,y:t}){const n=window.devicePixelRatio||1;return{x:Math.round(e*n)/n||0,y:Math.round(t*n)/n||0}}(i);const c=i.hasOwnProperty("x"),d=i.hasOwnProperty("y");let p=bt,u=mt;const f=window;if(a){let i=ft(e);i===Ze(e)&&(i=nt(e)),n===mt&&(u=ht,l-=i.clientHeight-t.height,l*=r?1:-1),n===bt&&(p=vt,s-=i.clientWidth-t.width,s*=r?1:-1)}const m=Object.assign({position:o},a&&qt);return r?Object.assign(Object.assign({},m),{[u]:d?"0":"",[p]:c?"0":"",transform:(f.devicePixelRatio||1)<2?`translate(${s}px, ${l}px)`:`translate3d(${s}px, ${l}px, 0)`}):Object.assign(Object.assign({},m),{[u]:d?`${l}px`:"",[p]:c?`${s}px`:"",transform:""})}var Kt={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function({state:e,options:t,name:n}){const{offset:i=[0,0]}=t,o=_t.reduce(((t,n)=>(t[n]=function(e,t,n){const i=Rt(e),o=[bt,mt].indexOf(i)>=0?-1:1;let[r,a]="function"==typeof n?n(Object.assign(Object.assign({},t),{placement:e})):n;return r=r||0,a=(a||0)*o,[bt,vt].indexOf(i)>=0?{x:a,y:r}:{x:r,y:a}}(n,e.rects,i),t)),{}),{x:r,y:a}=o[e.placement];null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=r,e.modifiersData.popperOffsets.y+=a),e.modifiersData[n]=o}};const Xt={left:"right",right:"left",bottom:"top",top:"bottom"};function Yt(e){return e.replace(/left|right|bottom|top/g,(e=>Xt[e]))}const Zt={start:"end",end:"start"};function Jt(e){return e.replace(/start|end/g,(e=>Zt[e]))}function Qt(e,t={}){const{placement:n,boundary:i,rootBoundary:o,padding:r,flipVariations:a,allowedAutoPlacements:s=_t}=t,l=At(n),c=l?a?St:St.filter((e=>At(e)===l)):xt;let d=c.filter((e=>s.indexOf(e)>=0));0===d.length&&(d=c);const p=d.reduce(((t,n)=>(t[n]=zt(e,{placement:n,boundary:i,rootBoundary:o,padding:r})[Rt(n)],t)),{});return Object.keys(p).sort(((e,t)=>p[e]-p[t]))}var en={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:o=!0,fallbackPlacements:r,padding:a,boundary:s,rootBoundary:l,altBoundary:c,flipVariations:d=!0,allowedAutoPlacements:p}=t,u=e.options.placement,f=Rt(u),m=[u,...r||(f===u||!d?[Yt(u)]:function(e){if(Rt(e)===gt)return[];const t=Yt(e);return[Jt(e),t,Jt(t)]}(u))].reduce(((t,n)=>t.concat(Rt(n)===gt?Qt(e,{placement:n,boundary:s,rootBoundary:l,padding:a,flipVariations:d,allowedAutoPlacements:p}):n)),[]),h=e.rects.reference,v=e.rects.popper,b=new Map;let g=!0,x=m[0];for(let t=0;t<m.length;t++){const n=m[t],r=Rt(n),d=At(n)===yt,p=[mt,ht].indexOf(r)>=0,u=p?"width":"height",f=zt(e,{placement:n,boundary:s,rootBoundary:l,altBoundary:c,padding:a});let y=p?d?vt:bt:d?ht:mt;h[u]>v[u]&&(y=Yt(y));const w=Yt(y),O=[];if(i&&O.push(f[r]<=0),o&&O.push(f[y]<=0,f[w]<=0),O.every((e=>e))){x=n,g=!1;break}b.set(n,O)}if(g){for(let e=d?3:1;e>0;e--){const t=m.find((t=>{const n=b.get(t);if(n)return n.slice(0,e).every((e=>e))}));if(t){x=t;break}}}e.placement!==x&&(e.modifiersData[n]._skip=!0,e.placement=x,e.reset=!0)},requiresIfExists:["offset"],data:{_skip:!1}};function tn(e,t,n){return Math.max(e,Math.min(t,n))}var nn={name:"preventOverflow",enabled:!0,phase:"main",fn:function({state:e,options:t,name:n}){const{mainAxis:i=!0,altAxis:o=!1,boundary:r,rootBoundary:a,altBoundary:s,padding:l,tether:c=!0,tetherOffset:d=0}=t,p=zt(e,{boundary:r,rootBoundary:a,padding:l,altBoundary:s}),u=Rt(e.placement),f=At(e.placement),m=!f,h=Mt(u),v="x"===h?"y":"x",b=e.modifiersData.popperOffsets,g=e.rects.reference,x=e.rects.popper,y="function"==typeof d?d(Object.assign(Object.assign({},e.rects),{placement:e.placement})):d,w={x:0,y:0};if(b){if(i){const t="y"===h?mt:bt,n="y"===h?ht:vt,i="y"===h?"height":"width",o=b[h],r=b[h]+p[t],a=b[h]-p[n],s=c?-x[i]/2:0,l=f===yt?g[i]:x[i],d=f===yt?-x[i]:-g[i],u=e.elements.arrow,v=c&&u?st(u):{width:0,height:0},O=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},j=O[t],N=O[n],C=tn(0,g[i],v[i]),S=m?g[i]/2-s-C-j-y:l-C-j-y,_=m?-g[i]/2+s+C+N+y:d+C+N+y,E=e.elements.arrow&&ft(e.elements.arrow),I=E?"y"===h?E.clientTop||0:E.clientLeft||0:0,T=e.modifiersData.offset?e.modifiersData.offset[e.placement][h]:0,R=b[h]+S-T-I,k=b[h]+_-T,P=tn(c?Math.min(r,R):r,o,c?Math.max(a,k):a);b[h]=P,w[h]=P-o}if(o){const e="x"===h?mt:bt,t="x"===h?ht:vt,n=b[v],i=tn(n+p[e],n,n-p[t]);b[v]=i,w[v]=i-n}e.modifiersData[n]=w}},requiresIfExists:["offset"]};var on={name:"arrow",enabled:!0,phase:"main",fn:function({state:e,name:t}){const n=e.elements.arrow,i=e.modifiersData.popperOffsets,o=Rt(e.placement),r=Mt(o),a=[bt,vt].indexOf(o)>=0?"height":"width";if(!n||!i)return;const s=e.modifiersData[`${t}#persistent`].padding,l=st(n),c="y"===r?mt:bt,d="y"===r?ht:vt,p=e.rects.reference[a]+e.rects.reference[r]-i[r]-e.rects.popper[a],u=i[r]-e.rects.reference[r],f=ft(n),m=f?"y"===r?f.clientHeight||0:f.clientWidth||0:0,h=p/2-u/2,v=s[c],b=m-l[a]-s[d],g=m/2-l[a]/2+h,x=tn(v,g,b),y=r;e.modifiersData[t]={[y]:x,centerOffset:x-g}},effect:function({state:e,options:t,name:n}){let{element:i="[data-popper-arrow]",padding:o=0}=t;null!=i&&("string"!=typeof i||(i=e.elements.popper.querySelector(i),i))&&kt(e.elements.popper,i)&&(e.elements.arrow=i,e.modifiersData[`${n}#persistent`]={padding:Bt("number"!=typeof o?o:Ht(o,xt))})},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function rn(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[mt,vt,ht,bt].some((t=>e[t]>=0))}const sn=Wt({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:()=>{},effect:function({state:e,instance:t,options:n}){const{scroll:i=!0,resize:o=!0}=n,r=Ze(e.elements.popper),a=[...e.scrollParents.reference,...e.scrollParents.popper];return i&&a.forEach((e=>{e.addEventListener("scroll",t.update,Ut)})),o&&r.addEventListener("resize",t.update,Ut),()=>{i&&a.forEach((e=>{e.removeEventListener("scroll",t.update,Ut)})),o&&r.removeEventListener("resize",t.update,Ut)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function({state:e,name:t}){e.modifiersData[t]=Ft({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function({state:e,options:t}){const{gpuAcceleration:n=!0,adaptive:i=!0}=t,o={placement:Rt(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:n};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign(Object.assign({},e.styles.popper),Gt(Object.assign(Object.assign({},o),{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:i})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign(Object.assign({},e.styles.arrow),Gt(Object.assign(Object.assign({},o),{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1})))),e.attributes.popper=Object.assign(Object.assign({},e.attributes.popper),{"data-popper-placement":e.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function({state:e}){Object.keys(e.elements).forEach((t=>{const n=e.styles[t]||{},i=e.attributes[t]||{},o=e.elements[t];et(o)&&tt(o)&&(Object.assign(o.style,n),Object.keys(i).forEach((e=>{const t=i[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function({state:e}){const t={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,t.popper),e.elements.arrow&&Object.assign(e.elements.arrow.style,t.arrow),()=>{Object.keys(e.elements).forEach((n=>{const i=e.elements[n],o=e.attributes[n]||{},r=Object.keys(e.styles.hasOwnProperty(n)?e.styles[n]:t[n]).reduce(((e,t)=>(e[t]="",e)),{});et(i)&&tt(i)&&(Object.assign(i.style,r),Object.keys(o).forEach((e=>{i.removeAttribute(e)})))}))}},requires:["computeStyles"]},Kt,en,nn,on,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function({state:e,name:t}){const n=e.rects.reference,i=e.rects.popper,o=e.modifiersData.preventOverflow,r=zt(e,{elementContext:"reference"}),a=zt(e,{altBoundary:!0}),s=rn(r,n),l=rn(a,i,o),c=an(s),d=an(l);e.modifiersData[t]={referenceClippingOffsets:s,popperEscapeOffsets:l,isReferenceHidden:c,hasPopperEscaped:d},e.attributes.popper=Object.assign(Object.assign({},e.attributes.popper),{"data-popper-reference-hidden":c,"data-popper-escaped":d})}}]}),ln=Me?t.useLayoutEffect:t.useEffect,cn=e=>e.reduce(((e,[t,n])=>(e[t]=n,e)),{}),dn=[],pn=(e,n,i={})=>{const o=t.useRef(null),r={onFirstUpdate:i.onFirstUpdate,placement:i.placement||"bottom",strategy:i.strategy||"absolute",modifiers:i.modifiers||dn},[a,s]=t.useState({styles:{popper:{position:r.strategy,left:"0",top:"0"}},attributes:{}}),l=t.useMemo((()=>({name:"updateState",enabled:!0,phase:"write",fn:({state:e})=>{const t=Object.keys(e.elements);s({styles:cn(t.map((t=>[t,e.styles[t]||{}]))),attributes:cn(t.map((t=>[t,e.attributes[t]])))})},requires:["computeStyles"]})),[]),c=t.useMemo((()=>{const e={onFirstUpdate:r.onFirstUpdate,placement:r.placement,strategy:r.strategy,modifiers:[...r.modifiers,l,{name:"applyStyles",enabled:!1}]};return t=o.current,n=e,JSON.stringify(t)===JSON.stringify(n)?o.current||e:(o.current=e,e);var t,n}),[r.onFirstUpdate,r.placement,r.strategy,r.modifiers,l]),d=t.useRef(void 0);return ln((()=>{d&&d.current&&d.current.setOptions(c)}),[c]),ln((()=>{if(null==e||null==n)return;const t=(i.createPopper||sn)(e,n,c);return d.current=t,()=>{t.destroy(),d.current=null}}),[e,n,i.createPopper]),{state:d.current?d.current.state:null,styles:a.styles,attributes:a.attributes,update:d.current?d.current.update:null,forceUpdate:d.current?d.current.forceUpdate:null}},un={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"},fn=e=>`opacity ${e}ms cubic-bezier(.54, 1.5, .38, 1.11)`,mn=({trigger:e,popper:n,direction:i="down",position:r="start",placement:a,width:s,minWidth:l="trigger",maxWidth:c,appendTo:d=(()=>document.body),zIndex:p=9999,isVisible:u=!0,positionModifiers:f,distance:m=0,offset:h,onMouseEnter:v,onMouseLeave:x,onFocus:y,onBlur:w,onDocumentClick:O,onTriggerClick:j,onTriggerEnter:N,onPopperClick:C,onPopperMouseEnter:S,onPopperMouseLeave:_,onDocumentKeyDown:E,enableFlip:I=!0,flipBehavior:T="flip",triggerRef:R,popperRef:k,animationDuration:P=0,entryDelay:L=0,exitDelay:D=0,onHidden:A=(()=>{}),onHide:M=(()=>{}),onMount:F=(()=>{}),onShow:B=(()=>{}),onShown:H=(()=>{}),preventOverflow:z=!1})=>{var V;const[$,W]=t.useState(null),[U,q]=t.useState(null),[G,K]=t.useState(null),[X,Y]=t.useState(null),[Z,J]=t.useState(!1),[Q,ee]=t.useState(0),[te,ne]=t.useState(u),ie=t.useRef(null),oe=t.useRef(null),re=t.useRef(null),ae=t.useRef(void 0),se=U||$,le=u||te,ce=((e,t="ltr")=>{if(!e)return t;const n=getComputedStyle(e).getPropertyValue("direction");return["ltr","rtl"].includes(n)?n:t})(null===(V=(null==R?void 0:R.current)||$)||void 0===V?void 0:V.parentElement),de=t.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)}[ce][r]}),[r,ce]),pe=t.useCallback((e=>O(e,se,G)),[le,$,U,G,O]);t.useEffect((()=>{J(!0),F()}),[]),t.useEffect((()=>()=>{He([ie,re,oe])}),[]),t.useEffect((()=>{R&&(R.current?q(R.current):"function"==typeof R&&q(R()))}),[R,e]),t.useEffect((()=>{k&&(k.current?K(k.current):"function"==typeof k&&K(k()))}),[le,k]),t.useEffect((()=>{const e=new MutationObserver((()=>{ye&&ye()}));return G&&e.observe(G,{attributes:!0,childList:!0,subtree:!0}),()=>{e.disconnect()}}),[G]);const ue=(e,t,n,i=!1)=>{e&&t&&t.addEventListener(n,e,{capture:i})},fe=(e,t,n,i=!1)=>{e&&t&&t.removeEventListener(n,e,{capture:i})};t.useEffect((()=>(ue(v,se,"mouseenter"),ue(x,se,"mouseleave"),ue(y,se,"focus"),ue(w,se,"blur"),ue(j,se,"click"),ue(N,se,"keydown"),ue(C,G,"click"),ue(S,G,"mouseenter"),ue(_,G,"mouseleave"),O&&ue(pe,document,"click",!0),ue(E,document,"keydown",!0),()=>{fe(v,se,"mouseenter"),fe(x,se,"mouseleave"),fe(y,se,"focus"),fe(w,se,"blur"),fe(j,se,"click"),fe(N,se,"keydown"),fe(C,G,"click"),fe(S,G,"mouseenter"),fe(_,G,"mouseleave"),O&&fe(pe,document,"click",!0),fe(E,document,"keydown",!0)})),[$,G,v,x,y,w,j,N,C,S,_,O,E,U]);const me=()=>{if(a)return a;let e="up"===i?"top":"bottom";return"center"!==de&&(e=`${e}-${"right"===de?"end":"start"}`),e},he=t.useMemo(me,[i,de,a]),ve=t.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=>un[e])))(me())),[i,de,a]),be=t.useMemo((()=>({name:"widthMods",enabled:void 0!==s||void 0!==l||void 0!==c,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{const t=e.rects.reference.width;s&&(e.styles.popper.width="trigger"===s?`${t}px`:s),l&&(e.styles.popper.minWidth="trigger"===l?`${t}px`:l),c&&(e.styles.popper.maxWidth="trigger"===c?`${t}px`:c)},effect:({state:e})=>{const t=e.elements.reference.offsetWidth;return s&&(e.elements.popper.style.width="trigger"===s?`${t}px`:s),l&&(e.elements.popper.style.minWidth="trigger"===l?`${t}px`:l),c&&(e.elements.popper.style.maxWidth="trigger"===c?`${t}px`:c),()=>{}}})),[s,l,c]),{styles:ge,attributes:xe,update:ye,forceUpdate:we}=pn(se,G,{placement:he,modifiers:[{name:"offset",options:{offset:h||[0,m]}},{name:"preventOverflow",enabled:z},{name:"hide",enabled:!0},{name:"flip",enabled:he.startsWith("auto")||I,options:{fallbackPlacements:"flip"===T?[ve]:T}},be]});t.useEffect((()=>{var e,t,i,o,r,a,s;const l=(null===(o=null===(i=null===(t=null===(e=null==n?void 0:n.props)||void 0===e?void 0:e.children)||void 0===t?void 0:t[1])||void 0===i?void 0:i.props)||void 0===o?void 0:o.children)||(null===(s=null===(a=null===(r=null==n?void 0:n.props)||void 0===r?void 0:r.children)||void 0===a?void 0:a.props)||void 0===s?void 0:s.children);Y(l),l&&X&&l!==X&&we&&we()}),[n]),t.useEffect((()=>{ae.current<D&&(He([ie,re]),re.current=setTimeout((()=>{ie.current=setTimeout((()=>{ne(!1)}),P)}),D)),ae.current=D}),[D]);t.useEffect((()=>{u?(B(),He([ie,re]),oe.current=setTimeout((()=>{ne(!0),ee(1),H()}),L)):(M(),He([oe]),re.current=setTimeout((()=>{ee(0),ie.current=setTimeout((()=>{ne(!1),K(null),A()}),P)}),D))}),[u]);const Oe=Object.assign({className:g(n.props&&n.props.className,f&&(()=>{if(xe&&xe.popper&&xe.popper["data-popper-placement"]){const e=xe.popper["data-popper-placement"];return f[e]}return f.top})()),style:Object.assign(Object.assign(Object.assign({},n.props&&n.props.style||{}),ge.popper),{zIndex:p,opacity:Q,transition:fn(P)})},xe.popper),je=()=>{const e=t.cloneElement(n,Oe);return k?e:b.jsx("div",{style:{display:"contents"},ref:e=>{K(null==e?void 0:e.firstElementChild)},children:e})};return b.jsxs(b.Fragment,{children:[!R&&e&&t.isValidElement(e)&&b.jsx("div",{style:{display:"contents"},ref:e=>{W(null==e?void 0:e.firstElementChild)},children:e}),R&&e&&t.isValidElement(e)&&e,Z&&le&&(()=>{if("inline"===d)return je();{const e="function"==typeof d?d():d;return o.createPortal(je(),e)}})()]})};mn.displayName="Popper";const hn=(e,t,n=(e=>document.activeElement.contains(e)),i=(e=>e),o=["A","BUTTON","INPUT"],r=!1,a=!1,s=!0,l=!0)=>{const c=document.activeElement,d=e.key;let p=null;if(!r&&["ArrowUp","ArrowDown"].includes(d)){e.preventDefault(),e.stopImmediatePropagation();let o=-1;t.forEach(((e,r)=>{if(n(e)){let e=0;for(;!p&&e<t.length&&-1*e<t.length;)"ArrowUp"===d?e--:e++,o=r+e,o>=t.length&&(o=0),o<0&&(o=t.length-1),p=i(t[o])}}))}if(!a&&["ArrowLeft","ArrowRight"].includes(d)){e.preventDefault(),e.stopImmediatePropagation();let i=-1;t.forEach(((r,a)=>{var s;if(n(r)){const n=t[a].querySelectorAll(o.join(","));if(!n.length||l){let e=c;for(;e;){const t=e.parentElement===r?e:e.parentElement;if(e="ArrowLeft"===d?t.previousElementSibling:t.nextElementSibling,e){if(o.includes(null==e?void 0:e.tagName)){p=e;break}if(o.includes(null===(s=e.children[0])||void 0===s?void 0:s.tagName)){p=e.children[0];break}}}}else n.forEach(((t,o)=>{if(e.target===t){i=o+("ArrowLeft"===d?-1:1),i>=n.length&&(i=0),i<0&&(i=n.length-1),p=n[i]}}))}}))}p&&(s&&(c.tabIndex=-1,p.tabIndex=0),p.focus())},vn=(e,t)=>{var n;if("ArrowDown"!==e.key&&"ArrowUp"!==e.key)return;e.preventDefault();const i=Array.from(null===(n=t.current)||void 0===n?void 0:n.querySelectorAll("li")).map((e=>e.querySelector('button:not(:disabled),input:not(:disabled),a:not([aria-disabled="true"])'))).filter((e=>null!==e));let o;o="ArrowDown"===e.key?i[0]:i[i.length-1],o&&o.focus()};class bn extends t.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:o,noHorizontalArrowHandling:r,noEnterHandling:a,noSpaceHandling:s,updateTabIndex:l,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;a||"Enter"===m&&(e.preventDefault(),e.stopImmediatePropagation(),document.activeElement.click()),s||" "===m&&(e.preventDefault(),e.stopImmediatePropagation(),document.activeElement.click()),hn(e,f,n,i,c,o,r,l,u)},this._isEventFromContainer=e=>{const{containerRef:t}=this.props;return t.current&&t.current.contains(e.target)}}componentDidMount(){Me&&window.addEventListener("keydown",this.keyHandler)}componentWillUnmount(){Me&&window.removeEventListener("keydown",this.keyHandler)}render(){return null}}bn.displayName="KeyboardHandler",bn.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 gn=t.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"}),xn=t.createContext({itemId:null,isDisabled:!1});class yn extends t.Component{constructor(e){super(e),this.menuRef=t.createRef(),this.activeMenu=null,this.state={ouiaStateId:Xe(wn.displayName),transitionMoveTarget:null,flyoutRef:null,currentDrilldownMenuId:this.props.id},this.handleDrilldownTransition=e=>{const t=this.menuRef.current;if(t&&(t===e.target.closest(`.${y}`)||Array.from(t.getElementsByClassName(y)).includes(e.target.closest(`.${y}`))))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 o=i.filter((e=>!(e.classList.contains("pf-m-disabled")||e.classList.contains(x))))[0].firstChild;o.focus(),o.tabIndex=0}},this.handleExtraKeys=e=>{const t=this.props.containsDrilldown,n=document.activeElement;if(e.target.closest(`.${y}`)===this.activeMenu||e.target.classList.contains(A)||(this.activeMenu=e.target.closest(`.${y}`)),"INPUT"===e.target.tagName)return;const i=this.activeMenu,o=e.key,r=n.classList.contains(A);if(" "===o||"Enter"===o){if(e.preventDefault(),t&&!r){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(y)){const e=Array.from(n.nextElementSibling.getElementsByTagName("UL")[0].children).filter((e=>!(e.classList.contains("pf-m-disabled")||e.classList.contains(x))));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(x)))):[]:this.menuRef.current?Array.from(this.menuRef.current.getElementsByTagName("LI")).filter((e=>!(e.classList.contains("pf-m-disabled")||e.classList.contains(x)))):[],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(){Me&&this.props.containsDrilldown&&this.props.isRootMenu&&window.addEventListener("transitionend",this.handleDrilldownTransition),this.allowTabFirstItem()}componentWillUnmount(){Me&&this.props.containsDrilldown&&this.props.isRootMenu&&window.removeEventListener("transitionend",this.handleDrilldownTransition)}componentDidUpdate(e){e.children!==this.props.children&&this.allowTabFirstItem()}render(){var e,t;const n=this.props,{id:i,children:o,className:a,onSelect:s,selected:l=null,onActionClick:c,ouiaId:d,ouiaSafe:p,containsFlyout:u,containsDrilldown:f,isMenuDrilledIn:m,isPlain:h,isScrollable:v,drilldownItemPath:x,drilledInMenus:w,onDrillIn:O,onDrillOut:j,onGetMenuHeight:N,parentMenu:C=null,activeItemId:S=null,innerRef:_,isRootMenu:E,activeMenu:I,role:T,isNavFlyout:R}=n,k=r(n,["id","children","className","onSelect","selected","onActionClick","ouiaId","ouiaSafe","containsFlyout","containsDrilldown","isMenuDrilledIn","isPlain","isScrollable","drilldownItemPath","drilledInMenus","onDrillIn","onDrillOut","onGetMenuHeight","parentMenu","activeItemId","innerRef","isRootMenu","activeMenu","role","isNavFlyout"]),P=m||w&&w.includes(i)||!1;return b.jsxs(gn.Provider,{value:{menuId:i,parentMenu:C||i,onSelect:s,onActionClick:c,activeItemId:S,selected:l,drilledInMenus:w,drilldownItemPath:x,onDrillIn:O,onDrillOut:j,onGetMenuHeight:N,flyoutRef:this.state.flyoutRef,setFlyoutRef:e=>this.setState({flyoutRef:e}),disableHover:null!==(t=null===(e=this.context)||void 0===e?void 0:e.disableHover)&&void 0!==t&&t,role:T},children:[E&&b.jsx(bn,{containerRef:this.menuRef||null,additionalKeyHandler:this.handleExtraKeys,createNavigableElements:this.createNavigableElements,isActiveElement:e=>document.activeElement.closest("li")===e||document.activeElement.parentElement===e||document.activeElement.closest(`.${L}`)===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(A)||"INPUT"===document.activeElement.tagName),noEnterHandling:!0,noSpaceHandling:!0}),b.jsx("div",Object.assign({id:i,className:g(y,h&&D.plain,v&&D.scrollable,u&&D.flyout,R&&"pf-m-nav",f&&D.drilldown,P&&D.drilledIn,a),ref:this.menuRef},qe(wn.displayName,void 0!==d?d:this.state.ouiaStateId,p),k,{children:o}))]})}}yn.displayName="Menu",yn.contextType=gn,yn.defaultProps={ouiaSafe:!0,isRootMenu:!0,isPlain:!1,isScrollable:!1,role:"menu"};const wn=t.forwardRef(((e,t)=>b.jsx(yn,Object.assign({},e,{innerRef:t}))));wn.displayName="Menu";const On="--pf-v6-c-menu__content--Height",jn="--pf-v6-c-menu__content--MaxHeight",Nn=t.forwardRef(((e,n)=>{const{getHeight:i,children:o,menuHeight:a,maxMenuHeight:s}=e,l=r(e,["getHeight","children","menuHeight","maxMenuHeight"]);t.createRef();return b.jsx(gn.Consumer,{children:({menuId:t,onGetMenuHeight:n})=>b.jsx("div",Object.assign({},l,{className:g(w,e.className),ref:e=>{((e,t,n)=>{if(e){let o=e.clientHeight,r=null,a=e.closest(`.${k}`);for(;null!==a&&1===a.nodeType;)a.classList.contains(k)&&(r=a),a=a.parentElement;if(r){const e=getComputedStyle(r);o+=parseFloat(e.getPropertyValue("padding-top").replace(/px/g,""))+parseFloat(e.getPropertyValue("padding-bottom").replace(/px/g,""))+parseFloat(getComputedStyle(r.parentElement).getPropertyValue("border-bottom-width").replace(/px/g,""))}n&&n(t,o),i&&i(o.toString())}})(e,t,n)},style:Object.assign(Object.assign({},a&&{[On]:a}),s&&{[jn]:s}),children:o}))})}));Nn.displayName="MenuContent";const Cn="--pf-v6-c-menu--m-flyout__menu--top-offset",Sn="--pf-v6-c-menu--m-flyout__menu--m-left--right-offset",_n="--pf-v6-c-menu--m-flyout__menu--left-offset",En=H({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,svgClassName:void 0}),In=H({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,svgClassName:void 0}),Tn=H({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,svgClassName:void 0}),Rn=H({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,svgClassName:void 0});var kn="pf-v6-c-check",Pn="pf-v6-c-check__body",Ln="pf-v6-c-check__description",Dn="pf-v6-c-check__input",An="pf-v6-c-check__label",Mn="pf-v6-c-check__label-required",Fn={standalone:"pf-m-standalone",disabled:"pf-m-disabled"};const Bn=()=>{};class Hn extends t.Component{constructor(e){super(e),this.handleChange=e=>{this.props.onChange(e,e.currentTarget.checked)},this.state={ouiaStateId:Xe(Hn.displayName),descriptionId:ke("pf-checkbox-description")}}render(){const e=this.props,{"aria-label":t,"aria-describedby":n,className:i,inputClassName:o,onChange:a,isLabelWrapped:s,labelPosition:l="end",isValid:c,isDisabled:d,isRequired:p,isChecked:u,label:f,checked:m,defaultChecked:h,description:v,body:x,ouiaId:y,ouiaSafe:w,component:O}=e,j=r(e,["aria-label","aria-describedby","className","inputClassName","onChange","isLabelWrapped","labelPosition","isValid","isDisabled","isRequired","isChecked","label","checked","defaultChecked","description","body","ouiaId","ouiaSafe","component"]);j.id||console.error("Checkbox:","id is required to make input accessible");const N={};let C;([!0,!1].includes(m)||!0===u)&&(N.checked=m||u),a!==Bn&&(N.checked=u),[!1,!0].includes(h)&&(N.defaultChecked=h),void 0!==n?C=""===n?void 0:n:v&&(C=this.state.descriptionId);const S=b.jsx("input",Object.assign({},j,{className:g(Dn,o),type:"checkbox",onChange:this.handleChange,"aria-invalid":!c,"aria-label":t,"aria-describedby":C,disabled:d,required:p,ref:e=>{e&&(e.indeterminate=null===u)}},N,qe(Hn.displayName,void 0!==y?y:this.state.ouiaStateId,w))),_=s&&!O||"label"===O,E=_?"span":"label",I=f?b.jsxs(E,{className:g(An,d&&Fn.disabled),htmlFor:_?void 0:j.id,children:[f,p&&b.jsx("span",{className:g(Mn),"aria-hidden":"true",children:"*"})]}):null,T=null!=O?O:_?"label":"div";return N.checked=null!==N.checked&&N.checked,b.jsxs(T,{className:g(kn,!f&&Fn.standalone,i),htmlFor:_?j.id:void 0,children:["start"===l?b.jsxs(b.Fragment,{children:[I,S]}):b.jsxs(b.Fragment,{children:[S,I]}),v&&b.jsx("span",{id:this.state.descriptionId,className:g(Ln),children:v}),x&&b.jsx("span",{className:g(Pn),children:x})]})}}Hn.displayName="Checkbox",Hn.defaultProps={className:"",isLabelWrapped:!1,isValid:!0,isDisabled:!1,isRequired:!1,isChecked:!1,onChange:Bn,ouiaSafe:!0};var zn={button:"pf-v6-c-button",buttonCount:"pf-v6-c-button__count",buttonHamburgerIcon:"pf-v6-c-button--hamburger-icon",buttonHamburgerIconArrow:"pf-v6-c-button--hamburger-icon--arrow",buttonHamburgerIconBottom:"pf-v6-c-button--hamburger-icon--bottom",buttonHamburgerIconMiddle:"pf-v6-c-button--hamburger-icon--middle",buttonHamburgerIconTop:"pf-v6-c-button--hamburger-icon--top",buttonIcon:"pf-v6-c-button__icon",buttonProgress:"pf-v6-c-button__progress",modifiers:{primary:"pf-m-primary",unread:"pf-m-unread",secondary:"pf-m-secondary",danger:"pf-m-danger",tertiary:"pf-m-tertiary",link:"pf-m-link",inline:"pf-m-inline",displayLg:"pf-m-display-lg",warning:"pf-m-warning",control:"pf-m-control",stateful:"pf-m-stateful",read:"pf-m-read",attention:"pf-m-attention",plain:"pf-m-plain",noPadding:"pf-m-no-padding",block:"pf-m-block",small:"pf-m-small",favorite:"pf-m-favorite",favorited:"pf-m-favorited",settings:"pf-m-settings",hamburger:"pf-m-hamburger",expand:"pf-m-expand",collapse:"pf-m-collapse",circle:"pf-m-circle",clicked:"pf-m-clicked",disabled:"pf-m-disabled",ariaDisabled:"pf-m-aria-disabled",progress:"pf-m-progress",inProgress:"pf-m-in-progress",notify:"pf-m-notify",start:"pf-m-start",end:"pf-m-end"}},Vn={modifiers:{inline:"pf-m-inline",xs:"pf-m-xs",sm:"pf-m-sm",md:"pf-m-md",lg:"pf-m-lg",xl:"pf-m-xl"},spinner:"pf-v6-c-spinner",spinnerPath:"pf-v6-c-spinner__path"};const $n="--pf-v6-c-spinner--diameter";var Wn;!function(e){e.sm="sm",e.md="md",e.lg="lg",e.xl="xl"}(Wn||(Wn={}));const Un=e=>{var{className:t="",size:n="xl","aria-valuetext":i="Loading...",diameter:o,isInline:a=!1,"aria-label":s,"aria-labelledBy":l}=e,c=r(e,["className","size","aria-valuetext","diameter","isInline","aria-label","aria-labelledBy"]);return b.jsx("svg",Object.assign({className:g(Vn.spinner,a?Vn.modifiers.inline:Vn.modifiers[n],t),role:"progressbar","aria-valuetext":i,viewBox:"0 0 100 100"},o&&{style:{[$n]:o}},s&&{"aria-label":s},l&&{"aria-labelledBy":l},!s&&!l&&{"aria-label":"Contents"},c,{children:b.jsx("circle",{className:Vn.spinnerPath,cx:"50",cy:"50",r:"45",fill:"none"})}))};Un.displayName="Spinner";var qn="pf-v6-c-badge",Gn={read:"pf-m-read",unread:"pf-m-unread",disabled:"pf-m-disabled"};const Kn=e=>{var{isRead:t=!1,isDisabled:n=!1,className:i="",children:o="",screenReaderText:a}=e,s=r(e,["isRead","isDisabled","className","children","screenReaderText"]);return b.jsxs("span",Object.assign({},s,{className:g(qn,t?Gn.read:Gn.unread,n&&Gn.disabled,i),children:[o,a&&b.jsx("span",{className:"pf-v6-screen-reader",children:a})]}))};Kn.displayName="Badge";const Xn=H({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,svgClassName:void 0}),Yn=H({name:"OutlinedStarIcon",height:512,width:576,svgPath:"M528.1 171.5L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0L194 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.6zM388.6 312.3l23.7 138.4L288 385.4l-124.3 65.3 23.7-138.4-100.6-98 139-20.2 62.2-126 62.2 126 139 20.2-100.6 98z",yOffset:0,xOffset:0,svgClassName:void 0}),Zn=H({name:"CogIcon",height:512,width:512,svgPath:"M487.4 315.7l-42.6-24.6c4.3-23.2 4.3-47 0-70.2l42.6-24.6c4.9-2.8 7.1-8.6 5.5-14-11.1-35.6-30-67.8-54.7-94.6-3.8-4.1-10-5.1-14.8-2.3L380.8 110c-17.9-15.4-38.5-27.3-60.8-35.1V25.8c0-5.6-3.9-10.5-9.4-11.7-36.7-8.2-74.3-7.8-109.2 0-5.5 1.2-9.4 6.1-9.4 11.7V75c-22.2 7.9-42.8 19.8-60.8 35.1L88.7 85.5c-4.9-2.8-11-1.9-14.8 2.3-24.7 26.7-43.6 58.9-54.7 94.6-1.7 5.4.6 11.2 5.5 14L67.3 221c-4.3 23.2-4.3 47 0 70.2l-42.6 24.6c-4.9 2.8-7.1 8.6-5.5 14 11.1 35.6 30 67.8 54.7 94.6 3.8 4.1 10 5.1 14.8 2.3l42.6-24.6c17.9 15.4 38.5 27.3 60.8 35.1v49.2c0 5.6 3.9 10.5 9.4 11.7 36.7 8.2 74.3 7.8 109.2 0 5.5-1.2 9.4-6.1 9.4-11.7v-49.2c22.2-7.9 42.8-19.8 60.8-35.1l42.6 24.6c4.9 2.8 11 1.9 14.8-2.3 24.7-26.7 43.6-58.9 54.7-94.6 1.5-5.5-.7-11.3-5.6-14.1zM256 336c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z",yOffset:0,xOffset:0,svgClassName:void 0}),Jn=b.jsxs("svg",{viewBox:"0 0 10 10",className:g(zn.buttonHamburgerIcon,"pf-v6-svg"),width:"1em",height:"1em",children:[b.jsx("path",{className:g(zn.buttonHamburgerIconTop),d:"M1,1 L9,1"}),b.jsx("path",{className:g(zn.buttonHamburgerIconMiddle),d:"M1,5 L9,5"}),b.jsx("path",{className:g(zn.buttonHamburgerIconArrow),d:"M1,5 L1,5 L1,5"}),b.jsx("path",{className:g(zn.buttonHamburgerIconBottom),d:"M9,9 L1,9"})]});var Qn,ei,ti,ni;!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",e.stateful="stateful"}(Qn||(Qn={})),function(e){e.button="button",e.submit="submit",e.reset="reset"}(ei||(ei={})),function(e){e.default="default",e.sm="sm",e.lg="lg"}(ti||(ti={})),function(e){e.read="read",e.unread="unread",e.attention="attention"}(ni||(ni={}));const ii=e=>{var{children:t=null,className:n="",component:i="button",isClicked:o=!1,isBlock:a=!1,isDisabled:s=!1,isAriaDisabled:l=!1,isLoading:c=null,isDanger:d=!1,isExpanded:p,isSettings:u,isHamburger:f,hamburgerVariant:m,isCircle:h,spinnerAriaValueText:v,spinnerAriaLabelledBy:x,spinnerAriaLabel:y,size:w=ti.default,inoperableEvents:O=["onClick","onKeyPress"],isInline:j=!1,isFavorite:N=!1,isFavorited:C=!1,type:S=ei.button,variant:_=Qn.primary,state:E=ni.unread,hasNoPadding:I=!1,iconPosition:T="start","aria-label":R=null,icon:k=null,role:P,ouiaId:L,ouiaSafe:D=!0,tabIndex:A=null,innerRef:M,countOptions:F}=e,B=r(e,["children","className","component","isClicked","isBlock","isDisabled","isAriaDisabled","isLoading","isDanger","isExpanded","isSettings","isHamburger","hamburgerVariant","isCircle","spinnerAriaValueText","spinnerAriaLabelledBy","spinnerAriaLabel","size","inoperableEvents","isInline","isFavorite","isFavorited","type","variant","state","hasNoPadding","iconPosition","aria-label","icon","role","ouiaId","ouiaSafe","tabIndex","innerRef","countOptions"]);f&&![!0,!1].includes(p)&&console.error("Button: when the isHamburger property is passed in, you must also pass in a boolean value to the isExpanded property. It is expected that a hamburger button controls the expansion of other content."),!(u||f||N)||R||t||B["aria-labelledby"]||console.error("Button: you must provide either visible text content or an accessible name via the aria-label or aria-labelledby properties.");const H=Ge(oi.displayName,L,D,_),z=i,V="button"===z,$=j&&"span"===z,W="end"===T||"right"===T,U=u||f||N,q=O.reduce(((e,t)=>Object.assign(Object.assign({},e),{[t]:e=>{e.preventDefault()}})),{}),G=(()=>{let e;return N&&(e=b.jsxs(b.Fragment,{children:[b.jsx("span",{className:g("pf-v6-c-button__icon-favorite"),children:b.jsx(Yn,{})}),b.jsx("span",{className:g("pf-v6-c-button__icon-favorited"),children:b.jsx(Xn,{})})]})),u&&(e=b.jsx(Zn,{})),f&&(e=Jn),k&&!U&&(e=k),e&&b.jsx("span",{className:g(zn.buttonIcon,t&&zn.modifiers[W?"end":"start"]),children:e})})(),K=t&&b.jsx("span",{className:g("pf-v6-c-button__text"),children:t}),X=l||!V&&s;return b.jsxs(z,Object.assign({"aria-expanded":p},B,l?q:null,X&&{"aria-disabled":!0},{"aria-label":R,className:g(zn.button,zn.modifiers[_],u&&zn.modifiers.settings,f&&zn.modifiers.hamburger,f&&m&&zn.modifiers[m],a&&zn.modifiers.block,s&&!V&&zn.modifiers.disabled,l&&zn.modifiers.ariaDisabled,o&&zn.modifiers.clicked,j&&_===Qn.link&&zn.modifiers.inline,N&&zn.modifiers.favorite,N&&C&&zn.modifiers.favorited,d&&(_===Qn.secondary||_===Qn.link)&&zn.modifiers.danger,null!==c&&_!==Qn.plain&&zn.modifiers.progress,c&&zn.modifiers.inProgress,I&&_===Qn.plain&&zn.modifiers.noPadding,_===Qn.stateful&&zn.modifiers[E],w===ti.sm&&zn.modifiers.small,w===ti.lg&&zn.modifiers.displayLg,h&&zn.modifiers.circle,n),disabled:V?s:null,tabIndex:null!==A?A:s?V?null:-1:l?null:$?0:void 0,type:V||$?S:null,role:$?"button":P,ref:M},H,{children:[c&&b.jsx("span",{className:g(zn.buttonProgress),children:b.jsx(Un,{size:Wn.md,isInline:j,"aria-valuetext":v,"aria-label":y,"aria-labelledby":x})}),W?b.jsxs(b.Fragment,{children:[K,G]}):b.jsxs(b.Fragment,{children:[G,K]}),F&&b.jsx("span",{className:g(zn.buttonCount,F.className),children:b.jsx(Kn,{isRead:F.isRead,isDisabled:s,children:F.count})})]}))},oi=t.forwardRef(((e,t)=>b.jsx(ii,Object.assign({innerRef:t},e))));oi.displayName="Button";const ri=e=>{var{className:t,icon:n,onClick:i,"aria-label":o,isFavorited:a=null,isDisabled:s,actionId:l,innerRef:c}=e,d=r(e,["className","icon","onClick","aria-label","isFavorited","isDisabled","actionId","innerRef"]);return b.jsx(gn.Consumer,{children:({onActionClick:e})=>b.jsx(xn.Consumer,{children:({itemId:r,isDisabled:p})=>b.jsx("div",Object.assign({className:g(j,null!==a&&"pf-m-favorite",a&&D.favorited,t)},d,{children:b.jsx(oi,{"aria-label":o,onClick:t=>{i&&i(t),e&&e(t,r,l)},ref:c,role:"menuitem",variant:"plain",isFavorite:null!==a,isFavorited:null!=a&&a,tabIndex:-1,isDisabled:s||p,icon:null===a?n:void 0})}))})})},ai=t.forwardRef(((e,t)=>b.jsx(ri,Object.assign({},e,{innerRef:t}))));ai.displayName="MenuItemAction";var si={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"},li="pf-v6-c-tooltip",ci="pf-v6-c-tooltip__arrow",di="pf-v6-c-tooltip__content";const pi=e=>{var{className:t,children:n,isLeftAligned:i}=e,o=r(e,["className","children","isLeftAligned"]);return b.jsx("div",Object.assign({className:g(di,i&&si.textAlignLeft,t)},o,{children:n}))};pi.displayName="TooltipContent";const ui=e=>{var{className:t}=e,n=r(e,["className"]);return b.jsx("div",Object.assign({className:g(ci,t)},n))};ui.displayName="TooltipArrow";const fi={value:"18.75rem"};var mi;!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"}(mi||(mi={}));let hi=1;const vi=e=>{var{content:n,position:i="top",trigger:o="mouseenter focus",isVisible:a=!1,isContentLeftAligned:s=!1,enableFlip:l=!0,className:c="",entryDelay:d=300,exitDelay:p=300,appendTo:u=(()=>document.body),zIndex:f=9999,minWidth:m,maxWidth:h=fi.value,distance:v=15,aria:x="describedby",flipBehavior:y=["top","right","bottom","left","top","right","bottom"],id:w="pf-tooltip-"+hi++,children:O,animationDuration:j=300,triggerRef:N,"aria-live":C=(N?"polite":"off"),onTooltipHidden:S=(()=>{})}=e,_=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 E=o.includes("mouseenter"),I=o.includes("focus"),T=o.includes("click"),R="manual"===o,[k,P]=t.useState(!1),L=t.createRef(),D=()=>"none"!==x?`aria-${x}`:null,A=e=>{if("none"===x||!N||O)return;const t="function"==typeof N?N():N&&"object"==typeof N&&"current"in N?N.current:N instanceof HTMLElement?N:null;t&&(e?(e=>{const t=D();if(!e||!t)return;const n=e.getAttribute(t);if(!n||!n.includes(w)){const i=n?`${n} ${w}`:w;e.setAttribute(t,i)}})(t):(e=>{const t=D();if(!e||!t)return;const n=e.getAttribute(t);if(!n)return;const i=n.replace(new RegExp(`\\b${w}\\b`,"g"),"").trim();i?e.setAttribute(t,i):e.removeAttribute(t)})(t))};t.useEffect((()=>(A(k),()=>{A(!1)})),[k,x,N,O,w]);t.useEffect((()=>{a?M():F()}),[a]);const M=()=>{P(!0)},F=()=>{P(!1)},B={top:si.top,bottom:si.bottom,left:si.left,right:si.right,"top-start":si.topLeft,"top-end":si.topRight,"bottom-start":si.bottomLeft,"bottom-end":si.bottomRight,"left-start":si.leftTop,"left-end":si.leftBottom,"right-start":si.rightTop,"right-end":si.rightBottom},H=h!==fi.value,z=b.jsxs("div",Object.assign({"aria-live":C,className:g(li,c),role:"tooltip",id:w,style:{maxWidth:H?h:null},ref:L},_,{children:[b.jsx(ui,{}),b.jsx(pi,{isLeftAligned:s,children:n})]}));return b.jsx(mn,{trigger:"none"!==x&&k?(()=>{if(O)return"describedby"===x&&O.props&&!O.props["aria-describedby"]?t.cloneElement(O,{"aria-describedby":w}):"labelledby"===x&&O.props&&!O.props["aria-labelledby"]?t.cloneElement(O,{"aria-labelledby":w}):O})():O,triggerRef:N,popper:z,popperRef:L,minWidth:void 0!==m?m:"revert",appendTo:u,isVisible:k,positionModifiers:B,distance:v,placement:i,onMouseEnter:E&&M,onMouseLeave:E&&F,onPopperMouseEnter:E&&M,onPopperMouseLeave:E&&F,onFocus:I&&M,onBlur:I&&F,onDocumentClick:T&&((e,t)=>{k?F():e.target===t&&M()}),onDocumentKeyDown:R?null:e=>{R||e.key===q&&k&&F()},onTriggerEnter:R?null:e=>{e.key===G&&(k?F():M())},enableFlip:l,zIndex:f,flipBehavior:y,animationDuration:j,entryDelay:d,exitDelay:p,onHidden:S})};vi.displayName="Tooltip";const bi=t.createContext({direction:"right"}),gi=e=>{var{children:n,className:i,itemId:o=null,to:a,hasCheckbox:s=!1,isActive:l=null,isFavorited:c=null,isLoadButton:d=!1,isLoading:p=!1,flyoutMenu:u,direction:f,description:m=null,onClick:h=(()=>{}),component:v="button",isDisabled:w=!1,isAriaDisabled:j=!1,isExternalLink:k=!1,isSelected:L=null,isFocused:A,isDanger:M=!1,icon:F,actions:B,onShowFlyout:H,drilldownMenu:z,isOnPath:V,innerRef:$,id:W,"aria-label":U,tooltipProps:q,rel:G,target:K,download:X}=e,Y=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:Z,parentMenu:J,onSelect:Q,onActionClick:ee,activeItemId:te,selected:ne,drilldownItemPath:ie,onDrillIn:oe,onDrillOut:re,flyoutRef:ae,setFlyoutRef:se,disableHover:le,role:ce}=t.useContext(gn);let de=a?"a":v;s&&!a&&(de="label");const[pe,ue]=t.useState(null),fe=t.useContext(bi),[me,he]=t.useState(fe.direction),ve=t.useRef(void 0),be=t.useRef(void 0),ge=$||be,xe=ve===ae,ye=void 0!==u,we=e=>{!xe&&e?se(ve):xe&&!e&&se(null),H&&e&&H()};ln((()=>{if(ye&&ve.current&&Me){const e=ve.current.lastElementChild;if(e&&e.classList.contains(y)){const t=ve.current.getClientRects()[0],n=e.getClientRects()[0];if(t&&n){const i=t.x-n.width,o=window.innerWidth-t.x-t.width-n.width;let r=me;o<0&&"left"!==r?(he("left"),r="left"):i<0&&"right"!==r&&(he("right"),r="right");let a=0;i<0&&o<0&&(a="right"===r?-o:-i),"left"===r?(e.classList.add(D.left),e.style.setProperty(Sn,`-${a}px`)):e.style.setProperty(_n,`-${a}px`);const s=window.innerHeight-t.y-n.height;window.innerHeight-n.height<0&&s<0||s<0&&e.style.setProperty(Cn,`${s}px`)}}}}),[xe,u]),t.useEffect((()=>{he(fe.direction)}),[fe]),t.useEffect((()=>{var e,t,n;if(pe)if(xe){const i=pe.nextElementSibling;null===(n=null===(t=Array.from((null===(e=null==i?void 0:i.getElementsByTagName("UL")[0])||void 0===e?void 0:e.children)||[]).filter((e=>!(e.classList.contains("pf-m-disabled")||e.classList.contains(x))))[0])||void 0===t?void 0:t.firstChild)||void 0===n||n.focus()}else pe.focus()}),[xe,pe]);const Oe=e=>{const t=e.key,n=e.target,i=e.type;" "!==t&&"Enter"!==t&&"ArrowRight"!==t&&"click"!==i||(e.stopPropagation(),e.preventDefault(),xe||(we(!0),ue(n))),"Escape"!==t&&"ArrowLeft"!==t||xe&&(e.stopPropagation(),we(!1))},je=(e,t)=>{j||(t&&t(e,o),h&&h(e))},Ne=V&&V||ie&&ie.includes(o)||!1;let Ce;f&&(Ce="down"===f?e=>oe&&oe(e,Z,"function"==typeof z?z().props.id:z.props.id,o):e=>re&&re(e,J,o));let Se={};"a"===de?Se={href:a,"aria-disabled":!(!w&&!j)||null,disabled:null,target:k?"_blank":K,rel:G,download:X}:"button"===de&&(Se={type:"button","aria-disabled":!!j||null}),V?Se["aria-expanded"]=!0:ye&&(Se["aria-haspopup"]="menu",Se["aria-expanded"]=xe);const _e=()=>null!==L?L:null!==ne&&null!==o&&(Array.isArray(ne)&&ne.includes(o)||o===ne);t.useEffect((()=>{if(A&&ve.current){const e=ve.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"})}}}),[A]);const Ee="listbox"===ce,Ie=b.jsxs(b.Fragment,{children:[b.jsx(Ve,{children:e=>b.jsxs(de,Object.assign({id:W,tabIndex:-1,className:g(O,_e()&&!s&&D.selected,i),"aria-current":null!==l?l?"page":null:null!==o&&null!==te?o===te:null},!s&&{disabled:w,"aria-label":U},!s&&!u&&{role:Ee?"option":"menuitem"},!s&&!u&&Ee&&{"aria-selected":_e()},{ref:ge},!s&&{onClick:e=>{j?e.preventDefault():(je(e,Q),Ce&&Ce(e),u&&Oe(e))}},s&&{htmlFor:e},Se,{children:[b.jsxs("span",{className:g(E),children:["up"===f&&b.jsx("span",{className:g(R),children:b.jsx(Tn,{})}),F&&b.jsx("span",{className:g(_),children:F}),s&&b.jsx("span",{className:g(N),children:b.jsx(Hn,{id:e,component:"span",isChecked:L||!1,onChange:e=>je(e,Q),isDisabled:w,"aria-disabled":j})}),b.jsx("span",{className:g(T),children:n}),k&&b.jsx("span",{className:g(S),children:b.jsx(En,{})}),(u||"down"===f)&&b.jsx("span",{className:g(R),children:b.jsx(In,{})}),_e()&&b.jsx("span",{className:g(I),children:b.jsx(Rn,{})})]}),m&&"up"!==f&&b.jsx("span",{className:g(C),children:b.jsx("span",{children:m})})]}))}),xe&&b.jsx(gn.Provider,{value:{disableHover:le},children:b.jsx(bi.Provider,{value:{direction:me},children:u})}),"function"==typeof z?z():z,b.jsxs(xn.Provider,{value:{itemId:o,isDisabled:w},children:[B,null!==c&&b.jsx(ai,{icon:"favorites",isFavorited:c,"aria-label":c?"starred":"not starred",onClick:e=>ee(e,o),tabIndex:-1,actionId:"fav"})]})]});return b.jsxs(b.Fragment,{children:[b.jsx("li",Object.assign({className:g(P,w&&D.disabled,j&&D.ariaDisabled,Ne&&D.currentPath,d&&D.load,p&&D.loading,A&&"pf-m-focus",M&&D.danger,i),onMouseOver:()=>{j||le||(ye?we(!0):se(null))}},u&&!j&&{onKeyDown:Oe},{ref:ve,role:s?"menuitem":"none"},s&&{"aria-label":U},Y,{children:Ie})),q&&b.jsx(vi,Object.assign({},q,{triggerRef:ge}))]})},xi=t.forwardRef(((e,t)=>b.jsx(gi,Object.assign({},e,{innerRef:t}))));xi.displayName="MenuItem";const yi=e=>{var{children:n=null,className:i,isAriaMultiselectable:o=!1,"aria-label":a}=e,s=r(e,["children","className","isAriaMultiselectable","aria-label"]);const{role:l}=t.useContext(gn);return b.jsx("ul",Object.assign({role:l},"listbox"===l&&{"aria-multiselectable":o},{className:g(k,i),"aria-label":a},s,{children:n}))};yi.displayName="MenuList";const wi=e=>{var{children:n,className:i,onSelect:o,isOpen:a,toggle:s,shouldFocusToggleOnSelect:l=!1,onOpenChange:c,onToggleKeydown:d,isPlain:p,isScrollable:u,innerRef:f,ouiaId:m,ouiaSafe:h=!0,zIndex:v=9999,popperProps:x,onOpenChangeKeys:y=["Escape","Tab"],menuHeight:w,maxMenuHeight:O,shouldFocusFirstItemOnOpen:j=!1,shouldPreventScrollOnItemFocus:N=!0,focusTimeoutDelay:C=0}=e,S=r(e,["children","className","onSelect","isOpen","toggle","shouldFocusToggleOnSelect","onOpenChange","onToggleKeydown","isPlain","isScrollable","innerRef","ouiaId","ouiaSafe","zIndex","popperProps","onOpenChangeKeys","menuHeight","maxMenuHeight","shouldFocusFirstItemOnOpen","shouldPreventScrollOnItemFocus","focusTimeoutDelay"]);const _=t.useRef(void 0),E=t.useRef(void 0),I=Ge(Oi.displayName,m,h),T=f||_,R="function"==typeof s||"function"!=typeof s&&!s.toggleRef?E:null==s?void 0:s.toggleRef,k=t.useRef(a);t.useEffect((()=>{!1===k.current&&!0===a&&j&&setTimeout((()=>{var e;const t=null===(e=null==T?void 0:T.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({preventScroll:N})}),C),k.current=a}),[a]),t.useEffect((()=>{const e=e=>{var t,n,i,o;a&&c&&((null===(t=T.current)||void 0===t?void 0:t.contains(e.target))||(null===(n=R.current)||void 0===n?void 0:n.contains(e.target)))&&y.includes(e.key)&&(c(!1),null===(i=R.current)||void 0===i||i.focus()),(null===(o=R.current)||void 0===o?void 0:o.contains(e.target))&&(d?d(e):a&&vn(e,T))},t=e=>{var t,n;a&&c&&!(null===(t=null==R?void 0:R.current)||void 0===t?void 0:t.contains(e.target))&&a&&!(null===(n=T.current)||void 0===n?void 0:n.contains(e.target))&&c(!1)};return window.addEventListener("keydown",e),window.addEventListener("click",t),()=>{window.removeEventListener("keydown",e),window.removeEventListener("click",t)}}),[a,T,R,c,y,d,N,j,C]);const P=void 0!==O||void 0!==w||u,L=b.jsx(wn,Object.assign({className:g(i),ref:T,onSelect:(e,t)=>{var n;o&&o(e,t),l&&(null===(n=R.current)||void 0===n||n.focus())},isPlain:p,isScrollable:P},S,I,{children:b.jsx(Nn,{menuHeight:w,maxMenuHeight:O,children:n})}));return b.jsx(mn,Object.assign({trigger:"function"==typeof s?s(R):s.toggleNode,triggerRef:R,popper:L,popperRef:T,isVisible:a,zIndex:v},x))},Oi=t.forwardRef(((e,t)=>b.jsx(wi,Object.assign({innerRef:t},e))));Oi.displayName="Dropdown";const ji=e=>{var{children:t,className:n,description:i,isDisabled:o,isAriaDisabled:a,value:s,onClick:l,ouiaId:c,ouiaSafe:d,innerRef:p,tooltipProps:u}=e,f=r(e,["children","className","description","isDisabled","isAriaDisabled","value","onClick","ouiaId","ouiaSafe","innerRef","tooltipProps"]);const m=Ge(Ni.displayName,c,d);return b.jsx(xi,Object.assign({className:g(n),description:i,isDisabled:o,isAriaDisabled:a,itemId:s,onClick:l,tooltipProps:u,ref:p},m,f,{children:t}))},Ni=t.forwardRef(((e,t)=>b.jsx(ji,Object.assign({},e,{innerRef:t}))));Ni.displayName="DropdownItem";const Ci=e=>{var{children:t,className:n}=e,i=r(e,["children","className"]);return b.jsx(yi,Object.assign({className:g(n)},i,{children:t}))};Ci.displayName="DropdownList";var Si,_i={divider:"pf-v6-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",horizontal:"pf-m-horizontal",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"}(Si||(Si={}));const Ei=e=>{var{className:t,component:n=Si.hr,inset:i,orientation:o,role:a="separator"}=e,s=r(e,["className","component","inset","orientation","role"]);const l=n;return b.jsx(l,Object.assign({className:g(_i.divider,Le(i,_i),Le(o,_i),t)},"hr"!==n&&{role:a},s))};Ei.displayName="Divider";var Ii={menuToggle:"pf-v6-c-menu-toggle",menuToggleButton:"pf-v6-c-menu-toggle__button",menuToggleControls:"pf-v6-c-menu-toggle__controls",menuToggleCount:"pf-v6-c-menu-toggle__count",menuToggleIcon:"pf-v6-c-menu-toggle__icon",menuToggleStatusIcon:"pf-v6-c-menu-toggle__status-icon",menuToggleText:"pf-v6-c-menu-toggle__text",menuToggleToggleIcon:"pf-v6-c-menu-toggle__toggle-icon",modifiers:{primary:"pf-m-primary",secondary:"pf-m-secondary",fullHeight:"pf-m-full-height",fullWidth:"pf-m-full-width",plain:"pf-m-plain",circle:"pf-m-circle",expanded:"pf-m-expanded",disabled:"pf-m-disabled",small:"pf-m-small",success:"pf-m-success",warning:"pf-m-warning",danger:"pf-m-danger",settings:"pf-m-settings",placeholder:"pf-m-placeholder",splitButton:"pf-m-split-button",standalone:"pf-m-standalone",typeahead:"pf-m-typeahead",text:"pf-m-text",avatar:"pf-m-avatar"}};const Ti=H({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,svgClassName:void 0});var Ri,ki;!function(e){e.success="success",e.danger="danger",e.warning="warning"}(Ri||(Ri={})),function(e){e.default="default",e.sm="sm"}(ki||(ki={}));class Pi extends t.Component{constructor(){super(...arguments),this.displayName="MenuToggleBase",this.state={ouiaStateId:Xe(Li.displayName,this.props.variant)}}render(){const e=this.props,{children:n,className:i,icon:o,badge:a,isExpanded:s,isDisabled:l,isFullHeight:c,isFullWidth:d,isPlaceholder:p,isCircle:u,isSettings:f,splitButtonItems:m,variant:h,status:v,statusIcon:x,innerRef:y,onClick:w,"aria-label":O,ouiaId:j,ouiaSafe:N,size:C}=e,S=r(e,["children","className","icon","badge","isExpanded","isDisabled","isFullHeight","isFullWidth","isPlaceholder","isCircle","isSettings","splitButtonItems","variant","status","statusIcon","innerRef","onClick","aria-label","ouiaId","ouiaSafe","size"]),_="plain"===h,E="plainText"===h,I="typeahead"===h,T=qe(Li.displayName,null!=j?j:this.state.ouiaStateId,N);let R=x;if(!x)switch(v){case Ri.success:R=b.jsx(z,{});break;case Ri.warning:R=b.jsx($,{});break;case Ri.danger:R=b.jsx(V,{})}const k=b.jsxs("span",{className:g(Ii.menuToggleControls),children:[void 0!==v&&b.jsx("span",{className:g(Ii.menuToggleStatusIcon),children:R}),b.jsx("span",{className:g(Ii.menuToggleToggleIcon),children:b.jsx(Ti,{})})]}),P=b.jsxs(b.Fragment,{children:[(o||f)&&b.jsx("span",{className:g(Ii.menuToggleIcon),children:f?b.jsx(Zn,{}):o}),I?n:n&&b.jsx("span",{className:g(Ii.menuToggleText),children:n}),t.isValidElement(a)&&b.jsx("span",{className:g(Ii.menuToggleCount),children:a}),I?b.jsx("button",Object.assign({type:"button",className:g(Ii.menuToggleButton),"aria-expanded":s,onClick:w,"aria-label":O||"Menu toggle",tabIndex:-1},T,{children:k})):!_&&k]}),L=g(Ii.menuToggle,s&&Ii.modifiers.expanded,"primary"===h&&Ii.modifiers.primary,"secondary"===h&&Ii.modifiers.secondary,v&&Ii.modifiers[v],(_||E)&&Ii.modifiers.plain,E&&"pf-m-text",c&&Ii.modifiers.fullHeight,d&&Ii.modifiers.fullWidth,l&&Ii.modifiers.disabled,p&&Ii.modifiers.placeholder,f&&Ii.modifiers.settings,C===ki.sm&&Ii.modifiers.small,i),D=Object.assign(Object.assign({children:P},l&&{disabled:!0}),S);return I?b.jsx("div",Object.assign({ref:y,className:g(L,Ii.modifiers.typeahead)},D)):m?b.jsxs("div",{ref:y,className:g(L,Ii.modifiers.splitButton),children:[m,b.jsxs("button",Object.assign({className:g(Ii.menuToggleButton,n&&Ii.modifiers.text),type:"button","aria-expanded":s,"aria-label":O,disabled:l,onClick:w},S,T,{children:[n&&b.jsx("span",{className:g(Ii.menuToggleText),children:n}),k]}))]}):b.jsx("button",Object.assign({className:g(L,u&&_&&Ii.modifiers.circle),type:"button","aria-label":O,"aria-expanded":s,ref:y,disabled:l,onClick:w},D,T))}}Pi.defaultProps={className:"",isExpanded:!1,isDisabled:!1,isFullWidth:!1,isFullHeight:!1,isPlaceholder:!1,isCircle:!1,size:"default",ouiaSafe:!0};const Li=t.forwardRef(((e,t)=>b.jsx(Pi,Object.assign({innerRef:t},e))));Li.displayName="MenuToggle";const Di=H({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,svgClassName:void 0}),Ai=e=>{var{items:n,isDisabled:i,rowData:o,extraData:a,actionsToggle:s,popperProps:l={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]=t.useState(!1),h=()=>{m(!f)},v=(e,t)=>{t&&(e.preventDefault(),t(e,a&&a.rowIndex,o,a))};return b.jsxs(t.Fragment,{children:[n.filter((e=>e.isOutsideDropdown)).map(((e,n)=>{var{title:o,itemKey:a,onClick:s,isOutsideDropdown:l}=e,c=r(e,["title","itemKey","onClick","isOutsideDropdown"]);return"string"==typeof o?t.createElement(oi,Object.assign({onClick:e=>v(e,s)},c,{isDisabled:i,key:a||`outside_dropdown_${n}`,"data-key":a||`outside_dropdown_${n}`}),o):t.cloneElement(o,Object.assign({onClick:s,isDisabled:i},c))})),b.jsx(Oi,Object.assign({isOpen:f,onOpenChange:p?void 0:e=>m(e),toggle:e=>s?s({onToggle:h,isOpen:f,isDisabled:i,toggleRef:e}):b.jsx(Li,{"aria-label":"Kebab toggle",ref:e,onClick:h,isExpanded:f,isDisabled:i,variant:"plain",icon:b.jsx(Di,{})})},o&&o.actionProps,{ref:c},u,{popperProps:l,children:b.jsx(Ci,{children:n.filter((e=>!e.isOutsideDropdown)).map(((e,n)=>{var{title:i,itemKey:o,onClick:a,tooltipProps:s,isSeparator:l,shouldCloseOnClick:c=!0}=e,p=r(e,["title","itemKey","onClick","tooltipProps","isSeparator","shouldCloseOnClick"]);if(l)return b.jsx(Ei,{"data-key":o||n},o||n);const u=t.createElement(Ni,Object.assign({onClick:e=>{v(e,a),c&&h()}},p,{key:o||n,"data-key":o||n,ref:0===n?d:void 0}),i);return(null==s?void 0:s.content)?b.jsx(vi,Object.assign({},s,{children:u}),o||n):u}))})}))]})},Mi=t.forwardRef(((e,t)=>b.jsx(Ai,Object.assign({},e,{innerRef:t}))));Mi.displayName="ActionsColumn";const Fi=H({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,svgClassName:void 0});var Bi={modifiers:{fixed:"pf-m-fixed",stickyHeader:"pf-m-sticky-header",nestedColumnHeader:"pf-m-nested-column-header",plain:"pf-m-plain",striped:"pf-m-striped",expandable:"pf-m-expandable",stripedEven:"pf-m-striped-even",ghostRow:"pf-m-ghost-row",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",center:"pf-m-center",help:"pf-m-help",favorite:"pf-m-favorite",borderRight:"pf-m-border-right",borderLeft:"pf-m-border-left",action:"pf-m-action",noBorderRows:"pf-m-no-border-rows",expanded:"pf-m-expanded",clickable:"pf-m-clickable",selected:"pf-m-selected",firstCellOffsetReset:"pf-m-first-cell-offset-reset",dragOver:"pf-m-drag-over",animateExpand:"pf-m-animate-expand",noAnimateExpand:"pf-m-no-animate-expand",truncate:"pf-m-truncate",wrap:"pf-m-wrap",nowrap:"pf-m-nowrap",fitContent:"pf-m-fit-content",breakWord:"pf-m-break-word",standalone:"pf-m-standalone",favorited:"pf-m-favorited",noPadding:"pf-m-no-padding",noBackground:"pf-m-no-background",compact:"pf-m-compact",borderRow:"pf-m-border-row",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-v6-c-table",tableAction:"pf-v6-c-table__action",tableButton:"pf-v6-c-table__button",tableButtonContent:"pf-v6-c-table__button-content",tableCaption:"pf-v6-c-table__caption",tableCheck:"pf-v6-c-table__check",tableColumnHelp:"pf-v6-c-table__column-help",tableColumnHelpAction:"pf-v6-c-table__column-help-action",tableCompoundExpansionToggle:"pf-v6-c-table__compound-expansion-toggle",tableControlRow:"pf-v6-c-table__control-row",tableDraggable:"pf-v6-c-table__draggable",tableExpandableRow:"pf-v6-c-table__expandable-row",tableExpandableRowContent:"pf-v6-c-table__expandable-row-content",tableFavorite:"pf-v6-c-table__favorite",tableInlineEditAction:"pf-v6-c-table__inline-edit-action",tableSort:"pf-v6-c-table__sort",tableSortIndicator:"pf-v6-c-table__sort-indicator",tableSubhead:"pf-v6-c-table__subhead",tableTbody:"pf-v6-c-table__tbody",tableTd:"pf-v6-c-table__td",tableText:"pf-v6-c-table__text",tableTh:"pf-v6-c-table__th",tableThead:"pf-v6-c-table__thead",tableToggle:"pf-v6-c-table__toggle",tableToggleIcon:"pf-v6-c-table__toggle-icon",tableTr:"pf-v6-c-table__tr"};const Hi=e=>{var{className:n="",children:i=null,isOpen:o,onToggle:a,variant:s}=e,l=r(e,["className","children","isOpen","onToggle","variant"]);return b.jsxs(t.Fragment,{children:[void 0!==o&&b.jsx(oi,Object.assign({className:g(n,o&&Bi.modifiers.expanded),size:"compact"===s?"sm":void 0},l,{variant:"plain","aria-label":l["aria-label"]||"Details",onClick:a,"aria-expanded":o,icon:b.jsx("div",{className:g(Bi.tableToggleIcon),children:b.jsx(Fi,{})})})),i]})};Hi.displayName="CollapseColumn";const zi=H({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,svgClassName:void 0}),Vi=e=>{var{className:t,onClick:n,"aria-label":i,id:o}=e,a=r(e,["className","onClick","aria-label","id"]);return b.jsx(oi,Object.assign({id:o,variant:"plain",className:t,type:"button","aria-label":i||"Draggable row draggable button",onClick:n},a,{icon:b.jsx(zi,{})}))};Vi.displayName="DraggableCell";const $i=e=>{var{children:n,className:i,onSelect:o,isOpen:a,selected:s,toggle:l,shouldFocusToggleOnSelect:c=!1,shouldFocusFirstItemOnOpen:d=!1,onOpenChange:p,onOpenChangeKeys:u=["Escape","Tab"],onToggleKeydown:f,variant:m,isPlain:h,innerRef:v,zIndex:x=9999,role:y="listbox",popperProps:w,menuHeight:O,maxMenuHeight:j,isScrollable:N,shouldPreventScrollOnItemFocus:C=!0,focusTimeoutDelay:S=0}=e,_=r(e,["children","className","onSelect","isOpen","selected","toggle","shouldFocusToggleOnSelect","shouldFocusFirstItemOnOpen","onOpenChange","onOpenChangeKeys","onToggleKeydown","variant","isPlain","innerRef","zIndex","role","popperProps","menuHeight","maxMenuHeight","isScrollable","shouldPreventScrollOnItemFocus","focusTimeoutDelay"]);const E=t.useRef(void 0),I=t.useRef(void 0),T=v||E,R="function"==typeof l||"function"!=typeof l&&!l.toggleRef?I:null==l?void 0:l.toggleRef,k=t.useRef(a);t.useEffect((()=>{!1===k.current&&!0===a&&d&&setTimeout((()=>{var e;const t=null===(e=null==T?void 0:T.current)||void 0===e?void 0:e.querySelector("li button:not(:disabled),li input:not(:disabled)");t&&t.focus({preventScroll:C})}),S),k.current=a}),[a]),t.useEffect((()=>{const e=e=>{var t,n,i,o;a&&p&&((null===(t=T.current)||void 0===t?void 0:t.contains(e.target))||(null===(n=R.current)||void 0===n?void 0:n.contains(e.target)))&&u.includes(e.key)&&(e.preventDefault(),p(!1),null===(i=R.current)||void 0===i||i.focus()),(null===(o=R.current)||void 0===o?void 0:o.contains(e.target))&&(f?f(e):a&&"typeahead"!==m&&vn(e,T))},t=e=>{var t,n;a&&p&&!(null===(t=null==R?void 0:R.current)||void 0===t?void 0:t.contains(e.target))&&a&&!(null===(n=T.current)||void 0===n?void 0:n.contains(e.target))&&p(!1)};return window.addEventListener("keydown",e),window.addEventListener("click",t),()=>{window.removeEventListener("keydown",e),window.removeEventListener("click",t)}}),[a,T,R,p,u,f,C,d,S]);const P=b.jsx(wn,Object.assign({role:y,className:g(i),ref:T,onSelect:(e,t)=>{o&&o(e,t),c&&R.current.focus()},isPlain:h,selected:s,isScrollable:null!=N?N:void 0!==O||void 0!==j},qe(Wi.displayName,void 0!==_.ouiaId?_.ouiaId:Xe(Wi.displayName),void 0===_.ouiaSafe||_.ouiaSafe),_,{children:b.jsx(Nn,{menuHeight:O,maxMenuHeight:j,children:n})}));return b.jsx(mn,Object.assign({trigger:"function"==typeof l?l(R):l.toggleNode,triggerRef:R,popper:P,popperRef:T,isVisible:a,zIndex:x},w))},Wi=t.forwardRef(((e,t)=>b.jsx($i,Object.assign({innerRef:t},e))));Wi.displayName="Select";const Ui=e=>{var{children:t,className:n,isAriaMultiselectable:i=!1}=e,o=r(e,["children","className","isAriaMultiselectable"]);return b.jsx(yi,Object.assign({isAriaMultiselectable:i,className:g(n)},o,{children:t}))};Ui.displayName="SelectList";var qi="pf-v6-c-inline-edit__action",Gi="pf-v6-c-inline-edit__group",Ki="pf-v6-c-inline-edit__input",Xi="pf-v6-c-inline-edit__value",Yi={iconGroup:"pf-m-icon-group",enableEditable:"pf-m-enable-editable",inlineEditable:"pf-m-inline-editable"},Zi="pf-v6-c-form__helper-text";const Ji=({value:e,rowIndex:n,cellIndex:i,onSelect:o=(()=>{}),clearSelection:r,isOpen:a=!1,isPlaceholder:s=!1,onToggle:l=(()=>{}),selections:c=[""],options:d=[],props:p})=>{const u=b.jsx(Wi,Object.assign({onSelect:(e,t)=>{o(e,t,n,i,s)}},r&&{onClear:e=>{r(e,n,i)}},{isOpen:a,selected:c,toggle:e=>b.jsx(Li,{ref:e,onClick:l,isExpanded:a,isPlaceholder:s,children:a?"Expanded":"Collapsed"})},p.editableSelectProps,{children:b.jsx(Ui,{children:d})}));return b.jsxs(t.Fragment,{children:[b.jsx("div",{className:Xi,children:Array.isArray(e)?e.join(", "):e}),b.jsxs("div",{className:Ki,children:[u,b.jsx("div",{className:g(Zi),"aria-live":"polite",children:p.errorText})]})]})};Ji.displayName="EditableSelectInputCell";var Qi={formControl:"pf-v6-c-form-control",formControlIcon:"pf-v6-c-form-control__icon",formControlUtilities:"pf-v6-c-form-control__utilities",modifiers:{textarea:"pf-m-textarea",success:"pf-m-success",warning:"pf-m-warning",error:"pf-m-error",readonly:"pf-m-readonly",plain:"pf-m-plain",expanded:"pf-m-expanded",disabled:"pf-m-disabled",status:"pf-m-status",icon:"pf-m-icon",placeholder:"pf-m-placeholder",resizeVertical:"pf-m-resize-vertical",resizeHorizontal:"pf-m-resize-horizontal",resizeBoth:"pf-m-resize-both"}};const eo={success:z,error:V,warning:$},to=e=>{var{status:t,customIcon:n,className:i}=e,o=r(e,["status","customIcon","className"]);const a=t&&eo[t];return b.jsx("span",Object.assign({className:g(Qi.formControlIcon,t&&Qi.modifiers.status,i)},o,{children:n||b.jsx(a,{})}))};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 oo extends t.Component{constructor(e){super(e),this.inputRef=t.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&&Be(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:Xe(oo.displayName)}}componentDidMount(){if(this.props.isLeftTruncated||this.props.isStartTruncated){const e=this.props.innerRef||this.inputRef;this.observer=((e,t,n)=>{let i;if(Me){const{ResizeObserver:n}=window;if(e&&n){const o=new n((e=>{window.requestAnimationFrame((()=>{Array.isArray(e)&&e.length>0&&t()}))}));o.observe(e),i=()=>o.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:a,validated:s,onChange:l,onFocus:c,onBlur:d,isLeftTruncated:p,isStartTruncated:u,isExpanded:f,expandedProps:m,readOnly:h,readOnlyVariant:v,isRequired:x,isDisabled:y,customIcon:w,ouiaId:O,ouiaSafe:j}=e,N=r(e,["innerRef","className","type","value","placeholder","validated","onChange","onFocus","onBlur","isLeftTruncated","isStartTruncated","isExpanded","expandedProps","readOnly","readOnlyVariant","isRequired","isDisabled","customIcon","ouiaId","ouiaSafe"]),C=["success","error","warning"].includes(s),S=m?{"aria-expanded":null==m?void 0:m.isExpanded,"aria-controls":null==m?void 0:m.ariaControls,role:"combobox"}:{};return b.jsxs("span",{className:g(Qi.formControl,v&&Qi.modifiers.readonly,"plain"===v&&Qi.modifiers.plain,y&&Qi.modifiers.disabled,(f||(null==m?void 0:m.isExpanded))&&Qi.modifiers.expanded,w&&Qi.modifiers.icon,C&&Qi.modifiers[s],n),children:[b.jsx("input",Object.assign({},N,{onFocus:this.onFocus,onBlur:this.onBlur,onChange:this.handleChange,type:i,value:this.sanitizeInputValue(o),"aria-invalid":N["aria-invalid"]?N["aria-invalid"]:s===W.error},S,{required:x,disabled:y,readOnly:!!v||h,ref:t||this.inputRef,placeholder:a},qe(ro.displayName,void 0!==O?O:this.state.ouiaStateId,j))),(w||C)&&b.jsxs("span",{className:g(Qi.formControlUtilities),children:[w&&b.jsx(to,{customIcon:w}),C&&b.jsx(to,{status:s})]})]})}}oo.displayName="TextInputBase",oo.defaultProps={"aria-label":null,isRequired:!1,validated:"default",isDisabled:!1,isExpanded:!1,type:no.text,isLeftTruncated:!1,isStartTruncated:!1,onChange:()=>{},ouiaSafe:!0};const ro=t.forwardRef(((e,t)=>b.jsx(oo,Object.assign({},e,{innerRef:t}))));ro.displayName="TextInput";const ao=({value:e,rowIndex:n,cellIndex:i,props:o,handleTextInputChange:r,inputAriaLabel:a,isDisabled:s=!1})=>b.jsxs(t.Fragment,{children:[b.jsx("div",{className:Xi,children:e}),b.jsxs("div",{className:Ki,children:[b.jsx(ro,{isDisabled:s,value:void 0!==o.editableValue?o.editableValue:e,validated:!1!==o.isValid?"default":"error",type:"text",onChange:(e,t)=>{r(t,e,n,i)},"aria-label":a}),b.jsx("div",{className:g(Zi),"aria-live":"polite",children:o.errorText})]})]});ao.displayName="EditableTextCell";const so=e=>{var{children:t=null,hasNoBackground:n}=e,i=r(e,["children","hasNoBackground"]);return b.jsx("div",Object.assign({},i,{className:g(Bi.tableExpandableRowContent,n&&Bi.modifiers.noBackground),children:t}))};so.displayName="ExpandableRowContent";const lo=H({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,svgClassName:void 0});var co={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"},po="pf-v6-c-popover",uo="pf-v6-c-popover__arrow",fo="pf-v6-c-popover__body",mo="pf-v6-c-popover__close",ho="pf-v6-c-popover__content",vo="pf-v6-c-popover__footer",bo="pf-v6-c-popover__header",go="pf-v6-c-popover__title",xo="pf-v6-c-popover__title-icon",yo="pf-v6-c-popover__title-text";const wo=t.createContext({}),Oo=e=>{var{className:t=null,children:n}=e,i=r(e,["className","children"]);return b.jsx("div",Object.assign({className:g(ho,t)},i,{children:n}))};Oo.displayName="PopoverContent";const jo=e=>{var{children:t,id:n,className:i}=e,o=r(e,["children","id","className"]);return b.jsx("div",Object.assign({className:g(fo,i),id:n},o,{children:t}))};jo.displayName="PopoverBody";const No=e=>{var{children:t,className:n}=e,i=r(e,["children","className"]);return b.jsx("span",Object.assign({className:g(xo,n)},i,{children:t}))};No.displayName="PopoverHeaderIcon";const Co=e=>{var{children:t,className:n,headingLevel:i}=e,o=r(e,["children","className","headingLevel"]);const a=i;return b.jsx(a,Object.assign({className:g(yo,n)},o,{children:t}))};Co.displayName="PopoverHeaderText";const So=e=>{var{children:t,icon:n,className:i,titleHeadingLevel:o="h6",alertSeverityVariant:a,id:s,alertSeverityScreenReaderText:l}=e,c=r(e,["children","icon","className","titleHeadingLevel","alertSeverityVariant","id","alertSeverityScreenReaderText"]);return b.jsx("header",Object.assign({className:g(bo,i)},c,{children:b.jsxs("div",{className:g(go),id:s,children:[n&&b.jsx(No,{children:n}),b.jsxs(Co,{headingLevel:o,children:[a&&l&&b.jsx("span",{className:"pf-v6-screen-reader",children:l}),t]})]})}))};So.displayName="PopoverHeader";const _o=e=>{var{children:t,className:n=""}=e,i=r(e,["children","className"]);return b.jsx("footer",Object.assign({className:g(vo,n)},i,{children:t}))};_o.displayName="PopoverFooter";const Eo=H({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,svgClassName:void 0}),Io=e=>{var{onClose:t=(()=>{})}=e,n=r(e,["onClose"]);return b.jsx("div",{className:g(mo),children:b.jsx(oi,Object.assign({onClick:t,variant:"plain","aria-label":!0},n,{style:{pointerEvents:"auto"},icon:b.jsx(Eo,{})}))})};Io.displayName="PopoverCloseButton";const To=e=>{var{className:t=""}=e,n=r(e,["className"]);return b.jsx("div",Object.assign({className:g(uo,t)},n))};To.displayName="PopoverArrow";const Ro={name:"--pf-v6-c-popover--MaxWidth",value:"none",var:"var(--pf-v6-c-popover--MaxWidth)"},ko={name:"--pf-v6-c-popover--MinWidth",value:"auto",var:"var(--pf-v6-c-popover--MinWidth)"};var Po;!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"}(Po||(Po={}));const Lo={custom:co.custom,info:co.info,success:co.success,warning:co.warning,danger:co.danger},Do=e=>{var{children:n,position:i="top",enableFlip:o=!0,className:a="",isVisible:s=null,shouldClose:l=(()=>null),shouldOpen:c=(()=>null),"aria-label":d="",bodyContent:p,headerContent:u=null,headerComponent:f="h6",headerIcon:m=null,alertSeverityVariant:h,alertSeverityScreenReaderText:v,footerContent:x=null,appendTo:y=(()=>document.body),hideOnOutsideClick:w=!0,onHide:O=(()=>null),onHidden:j=(()=>null),onShow:N=(()=>null),onShown:C=(()=>null),onMount:S=(()=>null),zIndex:_=9999,triggerAction:E="click",minWidth:I=ko&&ko.value,maxWidth:T=Ro&&Ro.value,closeBtnAriaLabel:R="Close",showClose:k=!0,distance:P=25,flipBehavior:L=["top","bottom","left","right","top-start","top-end","bottom-start","bottom-end","left-start","left-end","right-start","right-end"],animationDuration:D=300,id:A,withFocusTrap:M,triggerRef:F,hasNoPadding:B=!1,hasAutoWidth:H=!1,elementToFocus:z}=e,V=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 $=A||ke(),W=null!==s,[U,G]=t.useState(!1),[K,X]=t.useState(Boolean(M)),Y=t.useRef(null);t.useEffect((()=>{S()}),[]),t.useEffect((()=>{W&&(s?Z(void 0,!0):J())}),[s,W]);const Z=(e,t)=>{e&&N(e),G(!0),!1!==M&&t&&X(!0)},J=e=>{e&&O(e),G(!1)},Q={top:co.top,bottom:co.bottom,left:co.left,right:co.right,"top-start":co.topLeft,"top-end":co.topRight,"bottom-start":co.bottomLeft,"bottom-end":co.bottomRight,"left-start":co.leftTop,"left-end":co.leftBottom,"right-start":co.rightTop,"right-end":co.rightBottom},ee=I!==ko.value,te=T!==Ro.value,ne=e=>{W?c(e,Z):Z(e,!1)},ie=e=>{W?l(e,J):J(e)},oe=b.jsxs(Re,Object.assign({ref:Y,active:K,focusTrapOptions:{returnFocusOnDeactivate:!1!==M,clickOutsideDeactivates:!0,initialFocus:z||void 0,checkCanFocusTrap:e=>new Promise((t=>{const n=setInterval((()=>{e.every((e=>"hidden"!==getComputedStyle(e).visibility))&&(clearInterval(n),t())}),10),i=setTimeout((()=>{clearInterval(n),t()}),5e3);t._cleanup=()=>{clearInterval(n),clearTimeout(i)}})),tabbableOptions:{displayCheck:"none"},fallbackFocus:()=>{let e=null;return document&&document.activeElement&&(e=document.activeElement),e}},preventScrollOnDeactivate:!0,className:g(po,h&&Lo[h],B&&co.noPadding,H&&co.widthAuto,a),role:"dialog","aria-modal":"true","aria-label":u?void 0:d,"aria-labelledby":u?`popover-${$}-header`:void 0,"aria-describedby":`popover-${$}-body`,onMouseDown:()=>{K&&X(!1)},style:{minWidth:ee?I:null,maxWidth:te?T:null}},V,{children:[b.jsx(To,{}),b.jsxs(Oo,{children:[k&&"click"===E&&b.jsx(Io,{onClose:e=>{e.stopPropagation(),W?l(e,J):J(e)},"aria-label":R}),u&&b.jsx(So,{id:`popover-${$}-header`,icon:m,alertSeverityVariant:h,alertSeverityScreenReaderText:v||`${h} alert:`,titleHeadingLevel:f,children:"function"==typeof u?u(J):u}),b.jsx(jo,{id:`popover-${$}-body`,children:"function"==typeof p?p(J):p}),x&&b.jsx(_o,{id:`popover-${$}-footer`,children:"function"==typeof x?x(J):x})]})]}));return b.jsx(wo.Provider,{value:{headerComponent:f},children:b.jsx(mn,{trigger:n,triggerRef:F,popper:oe,popperRef:Y,minWidth:I,appendTo:y,isVisible:U,onMouseEnter:"hover"===E&&ne,onMouseLeave:"hover"===E&&ie,onPopperMouseEnter:"hover"===E&&ne,onPopperMouseLeave:"hover"===E&&ie,onFocus:"hover"===E&&(e=>{W?c(e,Z):Z(e,!1)}),onBlur:"hover"===E&&(e=>{W?l(e,J):J(e)}),positionModifiers:Q,distance:P,placement:i,onTriggerClick:"click"===E&&(e=>{W?U?l(e,J):c(e,Z):U?J(e):Z(e,!0)}),onDocumentClick:(e,t,n)=>{if(w&&U){const i=n&&n.contains(e.target),o=t&&t.contains(e.target);if(i||o)return;W?l(e,J):J(e)}},onDocumentKeyDown:e=>{e.key===q&&U&&(W?l(e,J):J(e))},enableFlip:o,zIndex:_,flipBehavior:L,animationDuration:D,onHidden:j,onShown:C,onHide:()=>X(!1)})})};var Ao,Mo;Do.displayName="Popover",e.TableTextVariant=void 0,(Ao=e.TableTextVariant||(e.TableTextVariant={})).div="div",Ao.nav="nav",e.WrapModifier=void 0,(Mo=e.WrapModifier||(e.WrapModifier={})).wrap="wrap",Mo.nowrap="nowrap",Mo.truncate="truncate",Mo.breakWord="breakWord",Mo.fitContent="fitContent";const Fo=e=>{var{children:n=null,className:i="",variant:o="span",wrapModifier:a=null,tooltip:s="",tooltipProps:l={},onMouseEnter:c=(()=>{}),focused:d=!1,tooltipHasDefaultBehavior:p=!1}=e,u=r(e,["children","className","variant","wrapModifier","tooltip","tooltipProps","onMouseEnter","focused","tooltipHasDefaultBehavior"]);const f=o,m=t.createRef(),[h,v]=t.useState(s),x=b.jsx(f,Object.assign({ref:m,onMouseEnter:p?void 0:e=>{e.target.offsetWidth<e.target.scrollWidth?v(s||e.target.innerText):v(""),c(e)},className:g(i,a&&Bi.modifiers[a],Bi.tableText)},u,{children:n}));return t.useEffect((()=>{var e;p||(d&&(e=m.current).offsetWidth<e.scrollWidth?v(s||e.innerText):v(""))}),[d,p]),""!==h?b.jsx(vi,Object.assign({triggerRef:m,content:h},!p&&{isVisible:!0},l,{children:x})):x};Fo.displayName="TableText";const Bo=({children:e,info:t,className:n,variant:i="tooltip",popoverProps:o,tooltipProps:r,ariaLabel:a})=>b.jsxs("div",{className:g(Bi.tableColumnHelp,n),children:["string"==typeof e?b.jsx(Fo,{children:e}):e,b.jsx("span",{className:g(Bi.tableColumnHelpAction),children:"tooltip"===i?b.jsx(vi,Object.assign({content:t},r,{children:b.jsx(oi,{variant:"plain",hasNoPadding:!0,"aria-label":a||"string"==typeof t&&t||"More info",icon:b.jsx(lo,{})})})):b.jsx(Do,Object.assign({bodyContent:t},o,{children:b.jsx(oi,{variant:"plain",hasNoPadding:!0,"aria-label":a||"string"==typeof t&&t||"More info",icon:b.jsx(lo,{})})}))})]});Bo.displayName="HeaderCellInfoWrapper";var Ho,zo={grid:"pf-m-grid",animateExpand:"pf-m-animate-expand",expanded:"pf-m-expanded",expandable:"pf-m-expandable",selected:"pf-m-selected",compact:"pf-m-compact",action:"pf-m-action",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"},Vo={treeView:"pf-m-tree-view",noInset:"pf-m-no-inset",treeViewGrid:"pf-m-tree-view-grid",borderRight:"pf-m-border-right",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"},$o="pf-v6-c-table__check",Wo="pf-v6-c-table__toggle",Uo="pf-v6-c-table__toggle-icon",qo="pf-v6-c-table__tree-view-details-toggle",Go="pf-v6-c-table__tree-view-icon",Ko="pf-v6-c-table__tree-view-main",Xo="pf-v6-c-table__tree-view-text",Yo="pf-v6-c-table__tree-view-title-cell",Zo={standalone:"pf-m-standalone",disabled:"pf-m-disabled"},Jo="pf-v6-c-radio",Qo="pf-v6-c-radio__body",er="pf-v6-c-radio__description",tr="pf-v6-c-radio__input",nr="pf-v6-c-radio__label";class ir extends t.Component{constructor(e){super(e),this.handleChange=e=>{this.props.onChange(e,e.currentTarget.checked)},e.label||e["aria-label"]||console.error("Radio:","Radio requires an aria-label to be specified"),this.state={ouiaStateId:Xe(ir.displayName),descriptionId:ke("pf-radio-description")}}render(){const e=this.props,{"aria-label":t,"aria-describedby":n,checked:i,className:o,inputClassName:a,defaultChecked:s,isLabelWrapped:l,labelPosition:c="end",isChecked:d,isDisabled:p,isValid:u,label:f,onChange:m,description:h,body:v,ouiaId:x,ouiaSafe:y=!0,component:w}=e,O=r(e,["aria-label","aria-describedby","checked","className","inputClassName","defaultChecked","isLabelWrapped","labelPosition","isChecked","isDisabled","isValid","label","onChange","description","body","ouiaId","ouiaSafe","component"]);let j;O.id||console.error("Radio:","id is required to make input accessible"),void 0!==n?j=""===n?void 0:n:h&&(j=this.state.descriptionId);const N=b.jsx("input",Object.assign({},O,{className:g(tr,a),type:"radio",onChange:this.handleChange,"aria-invalid":!u,"aria-describedby":j,disabled:p,checked:i||d},void 0===i&&{defaultChecked:s},!f&&{"aria-label":t},qe(ir.displayName,void 0!==x?x:this.state.ouiaStateId,y))),C=l&&!w||"label"===w,S=C?"span":"label",_=f?b.jsx(S,{className:g(nr,p&&Zo.disabled),htmlFor:C?void 0:O.id,children:f}):null,E=null!=w?w:C?"label":"div";return b.jsxs(E,{className:g(Jo,!f&&Zo.standalone,o),htmlFor:C?O.id:void 0,children:["start"===c?b.jsxs(b.Fragment,{children:[_,N]}):b.jsxs(b.Fragment,{children:[N,_]}),h&&b.jsx("span",{id:this.state.descriptionId,className:g(er),children:h}),v&&b.jsx("span",{className:g(Qo),children:v})]})}}ir.displayName="Radio",ir.defaultProps={className:"",isDisabled:!1,isValid:!0,onChange:()=>{}},e.RowSelectVariant=void 0,(Ho=e.RowSelectVariant||(e.RowSelectVariant={})).radio="radio",Ho.checkbox="checkbox";const or=n=>{var{children:i=null,className:o,onSelect:a=null,selectVariant:s,tooltip:l,tooltipProps:c,id:d,name:p}=n,u=r(n,["children","className","onSelect","selectVariant","tooltip","tooltipProps","id","name"]);const f=t.createRef(),m=Object.assign(Object.assign({},u),{id:d,ref:f,onChange:(e,t)=>{a&&a(e)}}),h=b.jsxs(t.Fragment,{children:[s===e.RowSelectVariant.checkbox?b.jsx(Hn,Object.assign({},m)):b.jsx(ir,Object.assign({},m,{name:p})),i]});return l?b.jsx(vi,Object.assign({triggerRef:f,content:l},c,{children:h})):h};or.displayName="SelectColumn";const rr=(t,{rowIndex:n,columnIndex:i,rowData:o,column:r,property:a,tooltip:s})=>{const{extraParams:{onSelect:l,selectVariant:c,allRowsSelected:d,isHeaderSelectDisabled:p}}=r,u={rowIndex:n,columnIndex:i,column:r,property:a};if(o&&o.hasOwnProperty("parent")&&!o.showSelect&&!o.fullWidth)return{component:"td",isVisible:!0};const f=void 0!==n?n:-1;const m=Object.assign(Object.assign(Object.assign({id:-1!==f?`select-${n}`:"select-all"},-1!==f?{isChecked:o&&!!o.selected,"aria-label":`Select row ${n}`}:{isChecked:d,"aria-label":"Select all rows"}),o&&(o.disableCheckbox||o.disableSelection)&&{isDisabled:!0,className:Dn}),!o&&p&&{isDisabled:!0});let h="check-all";return-1!==f&&c===e.RowSelectVariant.checkbox?h=`checkrow${n}`:-1!==f&&(h="radioGroup"),{className:g(Bi.tableCheck),component:-1!==f?"td":"th",isVisible:!o||!o.fullWidth,children:b.jsx(or,Object.assign({},m,{selectVariant:c,onSelect:function(e){const t=void 0===n?e.currentTarget.checked:!(o&&o.selected);l&&l(e,t,f,o,u)},name:h,tooltip:s,children:t}))}},ar=H({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,svgClassName:void 0}),sr=H({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,svgClassName:void 0}),lr=H({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,svgClassName:void 0});var cr="pf-v6-c-action-list",dr={icons:"pf-m-icons",vertical:"pf-m-vertical"};const pr=e=>{var{children:t,isIconList:n,className:i,isVertical:o=!1}=e,a=r(e,["children","isIconList","className","isVertical"]);return b.jsx("div",Object.assign({className:g(cr,n&&dr.icons,o&&dr.vertical,i)},a,{children:t}))};pr.displayName="ActionList";const ur=e=>{var{children:t,className:n}=e,i=r(e,["children","className"]);return b.jsx("div",Object.assign({className:g(`${cr}__item`,n)},i,{children:t}))};var fr;ur.displayName="ActionListItem",e.SortByDirection=void 0,(fr=e.SortByDirection||(e.SortByDirection={})).asc="asc",fr.desc="desc";const mr=n=>{var{children:i=null,className:o="",isSortedBy:a=!1,onSort:s=null,sortDirection:l="",type:c="button",tooltip:d,tooltipProps:p,tooltipHasDefaultBehavior:u,favoriteButtonProps:f}=n,m=r(n,["children","className","isSortedBy","onSort","sortDirection","type","tooltip","tooltipProps","tooltipHasDefaultBehavior","favoriteButtonProps"]);let h;const[v,x]=t.useState(!1);if(h=a?l===e.SortByDirection.asc?ar:sr:lr,f){const{favorited:e}=f,t=r(f,["favorited"]);return b.jsxs(pr,{isIconList:!0,children:[b.jsx(ur,{children:b.jsx(oi,Object.assign({variant:"plain",isFavorite:!0,isFavorited:e},t))}),b.jsx(ur,{children:b.jsx(oi,Object.assign({variant:"plain",icon:b.jsx("span",{className:g(Bi.tableSortIndicator),children:b.jsx(h,{})}),onClick:e=>s&&s(e)},m))})]})}return b.jsx("button",Object.assign({},m,{type:c,className:g(o,Bi.tableButton),onClick:e=>s&&s(e),onFocus:()=>x(!0),onBlur:()=>x(!1),children:b.jsxs("div",{className:g(o,Bi.tableButtonContent),children:[b.jsx(Fo,{tooltip:d,tooltipProps:p,tooltipHasDefaultBehavior:u,focused:v,children:i}),b.jsx("span",{className:g(Bi.tableSortIndicator),children:b.jsx(h,{})})]})}))};mr.displayName="SortColumn";const hr=e=>()=>{var t;return vr(b.jsx(Xn,{}),{columnIndex:e.columnIndex,className:Bi.tableFavorite,ariaLabel:null!==(t=e.ariaLabel)&&void 0!==t?t:"Sort favorites",column:{extraParams:{sortBy:e.sortBy,onSort:e.onSort,favoriteButtonProps:e.favoriteButtonProps}},tooltip:e.tooltip,tooltipProps:e.tooltipProps,tooltipHasDefaultBehavior:!0})},vr=(t,{columnIndex:n,column:i,property:o,className:r,ariaLabel:a,tooltip:s,tooltipProps:l,tooltipHasDefaultBehavior:c})=>{const{extraParams:{sortBy:d,onSort:p,favoriteButtonProps:u}}=i,f={columnIndex:n,column:i,property:o},m=d&&n===d.index;return Object.assign(Object.assign({className:g(Bi.tableSort,m&&Bi.modifiers.selected,r)},m&&{"aria-sort":`${d.direction}ending`}),{children:b.jsx(mr,{isSortedBy:m,sortDirection:m?d.direction:"",onSort:function(t){let i;i=m?d.direction===e.SortByDirection.asc?e.SortByDirection.desc:e.SortByDirection.asc:d.defaultDirection?d.defaultDirection:e.SortByDirection.asc,p&&p(t,n,i,f)},"aria-label":a,tooltip:s,tooltipProps:l,tooltipHasDefaultBehavior:c,favoriteButtonProps:u,children:t})})},br=(e,t,n,i)=>"function"==typeof e?e(n,i):t,gr=(e,t,n)=>(i,{rowData:o,column:r,rowIndex:a,columnIndex:s,column:{extraParams:{actionsToggle:l,actionsPopperProps:c}},property:d})=>{const p={rowIndex:a,columnIndex:s,column:r,property:d},u=br(t,e,o,p),f=br(n,o&&o.disableActions,o,p),m=u&&u.length>0?{children:b.jsx(Mi,{items:u,isDisabled:f,rowData:o,extraData:p,actionsToggle:l,popperProps:c,children:i})}:{};return Object.assign({className:g(Bi.tableAction),style:{paddingRight:0},isVisible:!0},m)},xr=(e,t)=>t.filter((t=>t.name===e))[0].errorText,yr=e=>e.toUpperCase().replace("-","").replace("_",""),wr=e=>e.replace(/([-_][a-z])/gi,yr);function Or(e){return e[0].toUpperCase()+e.substring(1)}const jr=e=>()=>({className:g(Bi.modifiers["number"==typeof e?`width_${e}`:`width${Or(e)}`])}),Nr=H({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,svgClassName:void 0}),Cr=e=>{var{onClick:n=null,className:i="",editing:o,valid:a,saveAriaLabel:s,cancelAriaLabel:l,editAriaLabel:c}=e,d=r(e,["onClick","className","editing","valid","saveAriaLabel","cancelAriaLabel","editAriaLabel"]);return b.jsxs(t.Fragment,{children:[b.jsxs("div",{className:g(Gi,Yi.iconGroup,"pf-m-action-group"),children:[b.jsx("div",{className:g(qi),children:b.jsx(oi,Object.assign({"aria-label":s},d,{onClick:e=>n(e,"save"),variant:"plain",icon:b.jsx(Rn,{})}))}),b.jsx("div",{className:g(qi),children:b.jsx(oi,Object.assign({"aria-label":l},d,{onClick:e=>n(e,"cancel"),variant:"plain",icon:b.jsx(Eo,{})}))})]}),b.jsx("div",{className:g(qi,Yi.enableEditable),children:b.jsx(oi,Object.assign({"aria-label":c},d,{onClick:e=>n(e,"edit"),variant:"plain",icon:b.jsx(Nr,{})}))})]})};Cr.displayName="EditColumn";const Sr=(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:Bi.tableInlineEditAction,component:"td",isVisible:!0,children:b.jsx(Cr,{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 r={};"save"===i&&(r=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,r)}})}},_r=(e,{rowIndex:t,columnIndex:n,rowData:i,column:o,property:r})=>{const{extraParams:{onCollapse:a,rowLabeledBy:s="simple-node",expandId:l="expand-toggle",allRowsExpanded:c,collapseAllAriaLabel:d,variant:p}}=o,u={rowIndex:t,columnIndex:n,column:o,property:r},f=void 0!==t?t:-1,m=Object.assign({},-1!==f?{isOpen:null==i?void 0:i.isOpen,"aria-labelledby":`${s}${f} ${l}${f}`}:{isOpen:c,"aria-label":d||"Expand all rows"});return{className:(void 0!==(null==i?void 0:i.isOpen)||-1===f)&&g(Bi.tableToggle),isVisible:!(null==i?void 0:i.fullWidth),children:b.jsx(Hi,Object.assign({"aria-labelledby":`${s}${f} ${l}${f}`,onToggle:function(e){const n=i?!i.isOpen:!c;a&&a(e,t,n,i,u)},id:l+f,variant:p},m,{children:e}))}},Er=(e,t=0)=>(n,{columnIndex:i,rowIndex:o,rowData:r,column:{extraParams:{contentId:a="expanded-content"}}})=>n&&r.hasOwnProperty("parent")&&{colSpan:r.cells&&1!==r.cells.length?1:e+(r.fullWidth?t+1:0),id:a+o+(i?"-"+i:""),className:r.noPadding&&g(Bi.modifiers.noPadding)},Ir=(e,{rowIndex:t,columnIndex:n,rowData:i,column:o,property:r})=>{if(!e)return null;const{title:a,props:s}=e,{extraParams:{onExpand:l,expandId:c="expand-toggle"}}=o,d={rowIndex:t,columnIndex:n,column:o,property:r};return{className:g(Bi.tableCompoundExpansionToggle,s.isOpen&&Bi.modifiers.expanded),children:void 0!==s.isOpen&&b.jsx("button",{type:"button",className:g(Bi.tableButton),onClick:function(e){l&&l(e,t,n,s.isOpen,i,d)},"aria-expanded":s.isOpen,"aria-controls":s.ariaControls,id:`${c}-${t}-${n}`,children:b.jsx(Fo,{children:a})})}},Tr=["hidden","hiddenOnSm","hiddenOnMd","hiddenOnLg","hiddenOnXl","hiddenOn_2xl","visibleOnSm","visibleOnMd","visibleOnLg","visibleOnXl","visibleOn_2xl"].filter((e=>Bi.modifiers[e])).reduce(((e,t)=>(e[t.replace("_2xl","2Xl")]=Bi.modifiers[t],e)),{}),Rr=(...e)=>()=>({className:g(...e)}),kr=({tooltip:e,tooltipProps:t,popover:n,popoverProps:i,className:o,ariaLabel:r})=>a=>({className:Bi.modifiers.help,children:e?b.jsx(Bo,{variant:"tooltip",info:e,tooltipProps:t,ariaLabel:r,className:o,children:a}):b.jsx(Bo,{variant:"popover",info:n,popoverProps:i,ariaLabel:r,className:o,children:a})}),Pr=e=>{var{className:t="",onFavorite:n,isFavorited:i,rowIndex:o}=e,a=r(e,["className","onFavorite","isFavorited","rowIndex"]);const s=void 0===o?{}:{id:`favorites-button-${o}`,"aria-labelledby":`favorites-button-${o}`};return b.jsx(oi,Object.assign({variant:"plain",className:t,type:"button","aria-label":i?"Starred":"Not starred",onClick:n,isFavorite:!0,isFavorited:i},s,a))};Pr.displayName="FavoritesCell";const Lr=(e,{rowIndex:t,columnIndex:n,rowData:i,column:o,property:r})=>{const{extraParams:{onFavorite:a}}=o,s={rowIndex:t,columnIndex:n,column:o,property:r};if(i&&i.hasOwnProperty("parent")&&!i.fullWidth)return{component:"td",isVisible:!0};const l=i.favoritesProps||{};return{className:g(Bi.tableFavorite,i&&i.favorited&&Bi.modifiers.favorited),isVisible:!i||!i.fullWidth,children:b.jsx(Pr,Object.assign({rowIndex:t,onFavorite:function(e){a&&a(e,i&&!i.favorited,t,i,s)},isFavorited:i&&i.favorited},l))}},Dr=H({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,svgClassName:void 0}),Ar=(e,t,n)=>(i,{rowIndex:o,rowData:r})=>{const{isExpanded:a,isDetailsExpanded:s,"aria-level":l,"aria-setsize":c,toggleAriaLabel:d,checkAriaLabel:p,showDetailsAriaLabel:u,isChecked:f,checkboxId:m,icon:h}=r.props,v=i.title||i,x=b.jsxs("div",{className:g(Xo),children:[h&&b.jsx("span",{className:g(Go),children:h},"tree-view-text-icon"),b.jsx("span",{className:Bi.tableText,children:v},"table-text")]},"tree-view-text");return{component:"th",className:Yo,children:void 0!==l?b.jsxs("div",{className:g(Ko),children:[c>0&&b.jsx("span",{className:g(Wo),children:b.jsx(oi,{variant:"plain",onClick:t=>e&&e(t,o,v,r),className:g(a&&Bi.modifiers.expanded),"aria-expanded":a,"aria-label":d||`${a?"Collapse":"Expand"} row ${o}`,icon:b.jsx("div",{className:g(Uo),children:b.jsx(Fi,{})})})},"table-toggle"),!!t&&b.jsx("span",{className:g($o),children:b.jsx("label",{htmlFor:m||`checkbox_${o}`,children:b.jsx(Hn,{id:m||`checkbox_${o}`,"aria-label":p||`Row ${o} checkbox`,isChecked:f,onChange:(e,n)=>((e,n)=>{t(n,e,o,v,r)})(n,e)})})},"table-check"),x,!!n&&b.jsx("span",{className:g(qo),children:b.jsx(oi,{variant:"plain","aria-expanded":s,"aria-label":u||"Show row details",onClick:e=>n&&n(e,o,v,r),icon:b.jsx("span",{className:`${Bi.table}__details-toggle-icon`,children:b.jsx(Dr,{})})})},"view-details-toggle")]}):x}},Mr=()=>({component:"td"}),Fr=()=>({scope:"col"}),Br=e=>Object.assign({},e?{}:{scope:""}),Hr=(e,{rowData:t})=>({parentId:t.parent}),zr=(e,{property:t,rowData:n})=>Object.assign({},n[t]&&n[t].props),Vr=e=>e&&e.hasOwnProperty("title")?e.title:e,$r=({transforms:e,formatters:t,columnTransforms:n,header:i},o)=>Object.assign(Object.assign({},i),{label:o,transforms:[Fr,Br,...e||[],...n||[],...i&&i.hasOwnProperty("transforms")?i.transforms:[]],formatters:[...t||[],...i&&i.hasOwnProperty("formatters")?i.formatters:[]]}),Wr=({cellFormatters:e,cellTransforms:t,columnTransforms:n,cell:i},o)=>Object.assign(Object.assign({},i),{transforms:[...t||[],...n||[],...i&&i.hasOwnProperty("transforms")?i.transforms:[],zr],formatters:[Vr,...e||[],...i&&i.hasOwnProperty("formatters")?i.formatters:[]]}),Ur=({onSelect:e,canSelectAll:t})=>[...e?[{title:"",transforms:t&&[rr]||null,cellTransforms:[rr]}]:[]],qr=({onFavorite:e,onSort:t,sortBy:n,canSortFavorites:i,firstUserColumnIndex:o})=>[...e?[{title:"",transforms:t&&i?[Fr,hr({onSort:t,columnIndex:o-1,sortBy:n})]:[Mr],cellTransforms:[Lr]}]:[]],Gr=({actions:e,actionResolver:t,areActionsDisabled:n})=>[...t||e?[{title:"",transforms:[Mr],cellTransforms:[gr(e,t,n)]}]:[]],Kr=(e,{onCollapse:t,canCollapseAll:n,firstUserColumnIndex:i})=>[...t?[{title:"",transforms:n&&[_r]||null,cellTransforms:[_r,Er(e.length,i)]}]:[]],Xr=(e,t)=>Object.assign(Object.assign({},e.hasOwnProperty("title")?e:{title:e}),{cellTransforms:[...e.hasOwnProperty("cellTransforms")?e.cellTransforms:[],t]}),Yr=(e,t)=>t.onCollapse||t.onExpand?e.map((t=>{const n=Xr(t,Hr);return Xr(n,Er(e.length))})):e,Zr=({onRowEdit:e})=>[...e?[{title:"",cellTransforms:[Sr]}]:[]];var Jr;e.TableGridBreakpoint=void 0,(Jr=e.TableGridBreakpoint||(e.TableGridBreakpoint={})).none="",Jr.grid="grid",Jr.gridMd="grid-md",Jr.gridLg="grid-lg",Jr.gridXl="grid-xl",Jr.grid2xl="grid-2xl",e.TableVariant=void 0,(e.TableVariant||(e.TableVariant={})).compact="compact";const Qr=t.createContext({registerSelectableRow:()=>{},hasAnimations:!1,variant:void 0}),ea=n=>{var i,o,{children:a,className:s,variant:l,borders:c=!0,isStickyHeader:d=!1,gridBreakPoint:p=e.TableGridBreakpoint.gridMd,"aria-label":u,role:f="grid",innerRef:m,ouiaId:h,ouiaSafe:v=!0,isTreeTable:x=!1,isNested:y=!1,isStriped:w=!1,isExpandable:O=!1,hasAnimations:j,hasNoInset:N=!1,nestedHeaderColumnSpans:C,selectableRowCaptionText:S}=n,_=r(n,["children","className","variant","borders","isStickyHeader","gridBreakPoint","aria-label","role","innerRef","ouiaId","ouiaSafe","isTreeTable","isNested","isStriped","isExpandable","hasAnimations","hasNoInset","nestedHeaderColumnSpans","selectableRowCaptionText"]);const E=F(j),I=t.useRef(null),T=m||I,[R,k]=t.useState(!1),[P,L]=t.useState();t.useEffect((()=>{if(document.addEventListener("keydown",H),T&&T.current&&T.current.classList.contains("pf-m-tree-view")){const t=T.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",H)}}),[T,T.current]),t.useEffect((()=>{L(S?b.jsxs("caption",{children:[S,b.jsx("div",{className:"pf-v6-screen-reader",children:"This table has selectable rows. It can be navigated by row using tab, and each row can be selected using space or enter."})]}):b.jsx("caption",{className:"pf-v6-screen-reader",children:"This table has selectable rows. It can be navigated by row using tab, and each row can be selected using space or enter."}))}),[S]);const D=Ge("Table",h,v),A=null===(i=zo)||void 0===i?void 0:i[wr(p||"").replace(/-?2xl/,"_2xl")],M=`treeView${p.charAt(0).toUpperCase()+p.slice(1)}`,B=null===(o=Vo)||void 0===o?void 0:o[wr(M||"").replace(/-?2xl/,"_2xl")],H=e=>{if(y||!(T&&T.current&&T.current.classList.contains(Vo.treeView))||T&&T.current!==e.target.closest(`.${Bi.table}:not(.pf-m-nested)`))return;const t=document.activeElement,n=e.key,i=Array.from(T.current.querySelectorAll("tbody tr")).filter((e=>!e.classList.contains("pf-m-disabled")&&!e.hidden));n!==U&&n!==G||(t.click(),e.preventDefault());hn(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 b.jsx(Qr.Provider,{value:{registerSelectableRow:()=>{!R&&k(!0)},hasAnimations:E,variant:l},children:b.jsxs("table",Object.assign({"aria-label":u,role:f,className:g(s,Bi.table,x?B:A,Bi.modifiers[l],!c&&Bi.modifiers.noBorderRows,d&&Bi.modifiers.stickyHeader,x&&Vo.treeView,w&&Bi.modifiers.striped,O&&Bi.modifiers.expandable,N&&Vo.noInset,y&&"pf-m-nested",E&&Bi.modifiers.animateExpand),ref:T},x&&{role:"treegrid"},D,_,{children:[R&&P,a]}))})},ta=t.forwardRef(((e,t)=>b.jsx(ea,Object.assign({},e,{innerRef:t}))));ta.displayName="Table";const na=e=>{var{children:n,className:i,isExpanded:o,isContentExpanded:a,isEditable:s,isHidden:l=!1,isClickable:c=!1,isRowSelected:d=!1,isStriped:p=!1,isBorderRow:u=!1,isControlRow:f=!1,innerRef:m,ouiaId:h,ouiaSafe:v=!0,resetOffset:x=!1,onRowClick:y,isSelectable:w,"aria-label":O}=e,j=r(e,["children","className","isExpanded","isContentExpanded","isEditable","isHidden","isClickable","isRowSelected","isStriped","isBorderRow","isControlRow","innerRef","ouiaId","ouiaSafe","resetOffset","onRowClick","isSelectable","aria-label"]);const N=Ge("TableRow",h,v),[C,S]=t.useState("");let _=null;y&&(_=e=>{"Enter"!==e.key&&" "!==e.key||(y(e),e.preventDefault())});const E=l||void 0!==o&&!o,{registerSelectableRow:I,hasAnimations:T}=t.useContext(Qr);t.useEffect((()=>{w&&!E?(S(""+(d?"Row selected":"")),I()):S(void 0)}),[d,w,I,E]);const R=O||C;return b.jsx(b.Fragment,{children:b.jsx("tr",Object.assign({className:g(Bi.tableTr,i,void 0!==o&&Bi.tableExpandableRow,(o||a)&&Bi.modifiers.expanded,s&&Yi.inlineEditable,c&&Bi.modifiers.clickable,d&&Bi.modifiers.selected,p&&Bi.modifiers.striped,u&&Bi.modifiers.borderRow,f&&Bi.tableControlRow,x&&Bi.modifiers.firstCellOffsetReset),hidden:E},c&&{tabIndex:0},{"aria-label":R,ref:m},T&&E&&{inert:""},y&&{onClick:y,onKeyDown:_},N,j,{children:n}))})},ia=t.forwardRef(((e,t)=>b.jsx(na,Object.assign({},e,{innerRef:t}))));ia.displayName="Tr";class oa extends t.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=Pe(this.handleScroll,100)),e.onResize&&(this.handleResize=Pe(this.handleResize,100))}componentDidMount(){this._unmounted=!1,Me&&(this.props.onScroll&&window.addEventListener("scroll",this.handleScroll),this.props.onResize&&window.addEventListener("resize",this.handleResize))}componentWillUnmount(){this._unmounted=!0,Me&&(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:a,isRowSelected:s},rowProps:l,trRef:c,className:d,ouiaId:p}=e,u=r(e,["onScroll","onResize","row","rowProps","trRef","className","ouiaId"]);return b.jsx(ia,Object.assign({},u,{ref:c,isExpanded:i,isEditable:o,className:d,ouiaId:p,isClickable:a,isRowSelected:s}))}}oa.displayName="RowWrapper",oa.defaultProps={className:"",row:{isOpen:void 0,isExpanded:void 0,isHeightAuto:void 0,isEditable:void 0},rowProps:null};const ra=e=>{var{className:t,rowProps:n,row:i}=e,o=r(e,["className","rowProps","row"]);const{"aria-level":a,"aria-posinset":s,"aria-setsize":l,isExpanded:c,isDetailsExpanded:d,isHidden:p}=i.props;return b.jsx(ia,Object.assign({"aria-level":a,"aria-posinset":s,"aria-setsize":l,"aria-expanded":!!c,isHidden:p,className:g(t,c&&Bi.modifiers.expanded,d&&Vo.treeViewDetailsExpanded)},o))};ra.displayName="TreeRowWrapper";const aa=e=>{var{children:t,className:n,noWrap:i=!1,innerRef:o,hasNestedHeader:a}=e,s=r(e,["children","className","noWrap","innerRef","hasNestedHeader"]);return b.jsx("thead",Object.assign({className:g(Bi.tableThead,n,i&&Bi.modifiers.nowrap,a&&Bi.modifiers.nestedColumnHeader),ref:o},s,{children:t}))},sa=t.forwardRef(((e,t)=>b.jsx(aa,Object.assign({},e,{innerRef:t}))));sa.displayName="Thead";const la=e=>{var{children:t,className:n,isExpanded:i,innerRef:o,isEvenStriped:a=!1,isOddStriped:s=!1}=e,l=r(e,["children","className","isExpanded","innerRef","isEvenStriped","isOddStriped"]);return b.jsx("tbody",Object.assign({role:"rowgroup",className:g(Bi.tableTbody,n,i&&Bi.modifiers.expanded,s&&Bi.modifiers.striped,a&&Bi.modifiers.stripedEven),ref:o},l,{children:t}))},ca=t.forwardRef(((e,t)=>b.jsx(la,Object.assign({},e,{innerRef:t}))));ca.displayName="Tbody";var da={borderRight:"pf-m-border-right",borderLeft:"pf-m-border-left"},pa="pf-v6-c-scroll-inner-wrapper",ua="pf-v6-c-scroll-outer-wrapper",fa="pf-v6-c-table__sticky-cell",ma="pf-v6-u-screen-reader";var ha=function(){this.__data__=[],this.size=0};var va=function(e,t){return e===t||e!=e&&t!=t},ba=va;var ga=function(e,t){for(var n=e.length;n--;)if(ba(e[n][0],t))return n;return-1},xa=ga,ya=Array.prototype.splice;var wa=ga;var Oa=ga;var ja=ga;var Na=ha,Ca=function(e){var t=this.__data__,n=xa(t,e);return!(n<0)&&(n==t.length-1?t.pop():ya.call(t,n,1),--this.size,!0)},Sa=function(e){var t=this.__data__,n=wa(t,e);return n<0?void 0:t[n][1]},_a=function(e){return Oa(this.__data__,e)>-1},Ea=function(e,t){var n=this.__data__,i=ja(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this};function Ia(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])}}Ia.prototype.clear=Na,Ia.prototype.delete=Ca,Ia.prototype.get=Sa,Ia.prototype.has=_a,Ia.prototype.set=Ea;var Ta=Ia,Ra=Ta;var ka=function(){this.__data__=new Ra,this.size=0};var Pa=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var La=function(e){return this.__data__.get(e)};var Da=function(e){return this.__data__.has(e)},Aa="object"==typeof a&&a&&a.Object===Object&&a,Ma=Aa,Fa="object"==typeof self&&self&&self.Object===Object&&self,Ba=Ma||Fa||Function("return this")(),Ha=Ba.Symbol,za=Ha,Va=Object.prototype,$a=Va.hasOwnProperty,Wa=Va.toString,Ua=za?za.toStringTag:void 0;var qa=function(e){var t=$a.call(e,Ua),n=e[Ua];try{e[Ua]=void 0;var i=!0}catch(e){}var o=Wa.call(e);return i&&(t?e[Ua]=n:delete e[Ua]),o},Ga=Object.prototype.toString;var Ka=qa,Xa=function(e){return Ga.call(e)},Ya=Ha?Ha.toStringTag:void 0;var Za=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Ya&&Ya in Object(e)?Ka(e):Xa(e)};var Ja=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},Qa=Za,es=Ja;var ts=function(e){if(!es(e))return!1;var t=Qa(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},ns=Ba["__core-js_shared__"],is=function(){var e=/[^.]+$/.exec(ns&&ns.keys&&ns.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var os=function(e){return!!is&&is in e},rs=Function.prototype.toString;var as=ts,ss=os,ls=Ja,cs=function(e){if(null!=e){try{return rs.call(e)}catch(e){}try{return e+""}catch(e){}}return""},ds=/^\[object .+?Constructor\]$/,ps=Function.prototype,us=Object.prototype,fs=ps.toString,ms=us.hasOwnProperty,hs=RegExp("^"+fs.call(ms).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var vs=function(e){return!(!ls(e)||ss(e))&&(as(e)?hs:ds).test(cs(e))},bs=function(e,t){return null==e?void 0:e[t]};var gs=function(e,t){var n=bs(e,t);return vs(n)?n:void 0},xs=gs(Ba,"Map"),ys=gs(Object,"create"),ws=ys;var Os=function(){this.__data__=ws?ws(null):{},this.size=0};var js=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Ns=ys,Cs=Object.prototype.hasOwnProperty;var Ss=function(e){var t=this.__data__;if(Ns){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Cs.call(t,e)?t[e]:void 0},_s=ys,Es=Object.prototype.hasOwnProperty;var Is=ys;var Ts=Os,Rs=js,ks=Ss,Ps=function(e){var t=this.__data__;return _s?void 0!==t[e]:Es.call(t,e)},Ls=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Is&&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=Ts,Ds.prototype.delete=Rs,Ds.prototype.get=ks,Ds.prototype.has=Ps,Ds.prototype.set=Ls;var As=Ds,Ms=Ta,Fs=xs;var Bs=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var Hs=function(e,t){var n=e.__data__;return Bs(t)?n["string"==typeof t?"string":"hash"]:n.map},zs=Hs;var Vs=Hs;var $s=Hs;var Ws=Hs;var Us=function(){this.size=0,this.__data__={hash:new As,map:new(Fs||Ms),string:new As}},qs=function(e){var t=zs(this,e).delete(e);return this.size-=t?1:0,t},Gs=function(e){return Vs(this,e).get(e)},Ks=function(e){return $s(this,e).has(e)},Xs=function(e,t){var n=Ws(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this};function Ys(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])}}Ys.prototype.clear=Us,Ys.prototype.delete=qs,Ys.prototype.get=Gs,Ys.prototype.has=Ks,Ys.prototype.set=Xs;var Zs=Ta,Js=xs,Qs=Ys;var el=Ta,tl=ka,nl=Pa,il=La,ol=Da,rl=function(e,t){var n=this.__data__;if(n instanceof Zs){var i=n.__data__;if(!Js||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new Qs(i)}return n.set(e,t),this.size=n.size,this};function al(e){var t=this.__data__=new el(e);this.size=t.size}al.prototype.clear=tl,al.prototype.delete=nl,al.prototype.get=il,al.prototype.has=ol,al.prototype.set=rl;var sl=al,ll=gs,cl=function(){try{var e=ll(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),dl=cl;var pl=function(e,t,n){"__proto__"==t&&dl?dl(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},ul=pl,fl=va;var ml=function(e,t,n){(void 0!==n&&!fl(e[t],n)||void 0===n&&!(t in e))&&ul(e,t,n)};var hl=function(e){return function(t,n,i){for(var o=-1,r=Object(t),a=i(t),s=a.length;s--;){var l=a[e?s:++o];if(!1===n(r[l],l,r))break}return t}}(),vl={exports:{}};!function(e,t){var n=Ba,i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,r=o&&o.exports===i?n.Buffer:void 0,a=r?r.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,i=a?a(n):new e.constructor(n);return e.copy(i),i}}(vl,vl.exports);var bl=vl.exports,gl=Ba.Uint8Array;var xl=function(e){var t=new e.constructor(e.byteLength);return new gl(t).set(new gl(e)),t};var yl=function(e,t){var n=t?xl(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};var wl=function(e,t){var n=-1,i=e.length;for(t||(t=Array(i));++n<i;)t[n]=e[n];return t},Ol=Ja,jl=Object.create,Nl=function(){function e(){}return function(t){if(!Ol(t))return{};if(jl)return jl(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();var Cl=function(e,t){return function(n){return e(t(n))}}(Object.getPrototypeOf,Object),Sl=Object.prototype;var _l=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Sl)},El=Nl,Il=Cl,Tl=_l;var Rl=function(e){return"function"!=typeof e.constructor||Tl(e)?{}:El(Il(e))};var kl=function(e){return null!=e&&"object"==typeof e},Pl=Za,Ll=kl;var Dl=function(e){return Ll(e)&&"[object Arguments]"==Pl(e)},Al=kl,Ml=Object.prototype,Fl=Ml.hasOwnProperty,Bl=Ml.propertyIsEnumerable,Hl=Dl(function(){return arguments}())?Dl:function(e){return Al(e)&&Fl.call(e,"callee")&&!Bl.call(e,"callee")},zl=Hl,Vl=Array.isArray;var $l=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},Wl=ts,Ul=$l;var ql=function(e){return null!=e&&Ul(e.length)&&!Wl(e)},Gl=ql,Kl=kl;var Xl=function(e){return Kl(e)&&Gl(e)},Yl={exports:{}};var Zl=function(){return!1};!function(e,t){var n=Ba,i=Zl,o=t&&!t.nodeType&&t,r=o&&e&&!e.nodeType&&e,a=r&&r.exports===o?n.Buffer:void 0,s=(a?a.isBuffer:void 0)||i;e.exports=s}(Yl,Yl.exports);var Jl=Yl.exports,Ql=Za,ec=Cl,tc=kl,nc=Function.prototype,ic=Object.prototype,oc=nc.toString,rc=ic.hasOwnProperty,ac=oc.call(Object);var sc=function(e){if(!tc(e)||"[object Object]"!=Ql(e))return!1;var t=ec(e);if(null===t)return!0;var n=rc.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&oc.call(n)==ac},lc=Za,cc=$l,dc=kl,pc={};pc["[object Float32Array]"]=pc["[object Float64Array]"]=pc["[object Int8Array]"]=pc["[object Int16Array]"]=pc["[object Int32Array]"]=pc["[object Uint8Array]"]=pc["[object Uint8ClampedArray]"]=pc["[object Uint16Array]"]=pc["[object Uint32Array]"]=!0,pc["[object Arguments]"]=pc["[object Array]"]=pc["[object ArrayBuffer]"]=pc["[object Boolean]"]=pc["[object DataView]"]=pc["[object Date]"]=pc["[object Error]"]=pc["[object Function]"]=pc["[object Map]"]=pc["[object Number]"]=pc["[object Object]"]=pc["[object RegExp]"]=pc["[object Set]"]=pc["[object String]"]=pc["[object WeakMap]"]=!1;var uc=function(e){return dc(e)&&cc(e.length)&&!!pc[lc(e)]};var fc=function(e){return function(t){return e(t)}},mc={exports:{}};!function(e,t){var n=Aa,i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,r=o&&o.exports===i&&n.process,a=function(){try{var e=o&&o.require&&o.require("util").types;return e||r&&r.binding&&r.binding("util")}catch(e){}}();e.exports=a}(mc,mc.exports);var hc=mc.exports,vc=uc,bc=fc,gc=hc&&hc.isTypedArray,xc=gc?bc(gc):vc;var yc=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},wc=pl,Oc=va,jc=Object.prototype.hasOwnProperty;var Nc=function(e,t,n){var i=e[t];jc.call(e,t)&&Oc(i,n)&&(void 0!==n||t in e)||wc(e,t,n)},Cc=pl;var Sc=function(e,t,n,i){var o=!n;n||(n={});for(var r=-1,a=t.length;++r<a;){var s=t[r],l=i?i(n[s],e[s],s,n,e):void 0;void 0===l&&(l=e[s]),o?Cc(n,s,l):Nc(n,s,l)}return n};var _c=function(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i},Ec=/^(?:0|[1-9]\d*)$/;var Ic=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&Ec.test(e))&&e>-1&&e%1==0&&e<t},Tc=_c,Rc=zl,kc=Vl,Pc=Jl,Lc=Ic,Dc=xc,Ac=Object.prototype.hasOwnProperty;var Mc=function(e,t){var n=kc(e),i=!n&&Rc(e),o=!n&&!i&&Pc(e),r=!n&&!i&&!o&&Dc(e),a=n||i||o||r,s=a?Tc(e.length,String):[],l=s.length;for(var c in e)!t&&!Ac.call(e,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||r&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Lc(c,l))||s.push(c);return s};var Fc=Ja,Bc=_l,Hc=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},zc=Object.prototype.hasOwnProperty;var Vc=Mc,$c=function(e){if(!Fc(e))return Hc(e);var t=Bc(e),n=[];for(var i in e)("constructor"!=i||!t&&zc.call(e,i))&&n.push(i);return n},Wc=ql;var Uc=function(e){return Wc(e)?Vc(e,!0):$c(e)},qc=Sc,Gc=Uc;var Kc=ml,Xc=bl,Yc=yl,Zc=wl,Jc=Rl,Qc=zl,ed=Vl,td=Xl,nd=Jl,id=ts,od=Ja,rd=sc,ad=xc,sd=yc,ld=function(e){return qc(e,Gc(e))};var cd=sl,dd=ml,pd=hl,ud=function(e,t,n,i,o,r,a){var s=sd(e,n),l=sd(t,n),c=a.get(l);if(c)Kc(e,n,c);else{var d=r?r(s,l,n+"",e,t,a):void 0,p=void 0===d;if(p){var u=ed(l),f=!u&&nd(l),m=!u&&!f&&ad(l);d=l,u||f||m?ed(s)?d=s:td(s)?d=Zc(s):f?(p=!1,d=Xc(l,!0)):m?(p=!1,d=Yc(l,!0)):d=[]:rd(l)||Qc(l)?(d=s,Qc(s)?d=ld(s):od(s)&&!id(s)||(d=Jc(l))):p=!1}p&&(a.set(l,d),o(d,l,i,r,a),a.delete(l)),Kc(e,n,d)}},fd=Ja,md=Uc,hd=yc;var vd=function e(t,n,i,o,r){t!==n&&pd(n,(function(a,s){if(r||(r=new cd),fd(a))ud(t,n,s,i,e,o,r);else{var l=o?o(hd(t,s),a,s+"",t,n,r):void 0;void 0===l&&(l=a),dd(t,s,l)}}),md)};var bd=function(e){return e};var gd=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)},xd=Math.max;var yd=function(e,t,n){return t=xd(void 0===t?e.length-1:t,0),function(){for(var i=arguments,o=-1,r=xd(i.length-t,0),a=Array(r);++o<r;)a[o]=i[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=i[o];return s[t]=n(a),gd(e,this,s)}};var wd=function(e){return function(){return e}},Od=cl,jd=Od?function(e,t){return Od(e,"toString",{configurable:!0,enumerable:!1,value:wd(t),writable:!0})}:bd,Nd=Date.now;var Cd=function(e){var t=0,n=0;return function(){var i=Nd(),o=16-(i-n);if(n=i,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}},Sd=Cd(jd),_d=bd,Ed=yd,Id=Sd;var Td=function(e,t){return Id(Ed(e,t,_d),e+"")},Rd=va,kd=ql,Pd=Ic,Ld=Ja;var Dd=Td,Ad=function(e,t,n){if(!Ld(n))return!1;var i=typeof t;return!!("number"==i?kd(n)&&Pd(t,n.length):"string"==i&&t in n)&&Rd(n[t],e)};var Md=vd,Fd=s(function(e){return Dd((function(t,n){var i=-1,o=n.length,r=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(r=e.length>3&&"function"==typeof r?(o--,r):void 0,a&&Ad(n[0],n[1],a)&&(r=o<3?void 0:r,o=1),t=Object(t);++i<o;){var s=n[i];s&&e(t,s,i,r)}return t}))}((function(e,t,n,i){Md(e,t,n,i)})));function Bd(...e){const n=e[0],i=e.slice(1);return i.length?Fd(Fd({},n),...i,((e,n,i)=>"children"===i?e&&n?t.cloneElement(e,{children:n}):Object.assign(Object.assign({},n),e):"className"===i?g(e,n):void 0)):Fd({},n)}const Hd="--pf-v6-c-table__sticky-cell--MinWidth",zd="--pf-v6-c-table__sticky-cell--InsetInlineStart",Vd="--pf-v6-c-table__sticky-cell--InsetInlineEnd",$d=e=>{var n,{children:i,className:o,component:a="th",dataLabel:s,scope:l="col",textCenter:c=!1,sort:d=null,modifier:p,select:u=null,expand:f=null,tooltip:m="",tooltipProps:h,onMouseEnter:v=(()=>{}),width:x,visibility:y,innerRef:w,info:O,isStickyColumn:j=!1,hasRightBorder:N=!1,hasLeftBorder:C=!1,stickyMinWidth:S="120px",stickyLeftOffset:_,stickyRightOffset:E,isSubheader:I=!1,screenReaderText:T,"aria-label":R,additionalContent:k}=e,P=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","additionalContent"]);const{variant:L}=t.useContext(Qr);i||T||R||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]=t.useState(!1),[M,F]=t.useState(!1),B=w||t.createRef(),H=e=>{e.target.offsetWidth<e.target.scrollWidth?!D&&A(!0):D&&A(!1),v(e)};let z=null;d&&(z=d.isFavorites?hr({onSort:d.onSort,columnIndex:d.columnIndex,sortBy:d.sortBy,tooltip:m,tooltipProps:h,ariaLabel:d["aria-label"],favoriteButtonProps:d.favoriteButtonProps})():vr(i,{columnIndex:d.columnIndex,column:{extraParams:{sortBy:d.sortBy,onSort:null==d?void 0:d.onSort}},tooltip:m,tooltipProps:h}));const V=u?rr(i,{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}):null,$=f?_r(i,{column:{extraParams:{onCollapse:null==f?void 0:f.onToggle,allRowsExpanded:!f.areAllExpanded,collapseAllAriaLabel:"",variant:L}}}):null,W=x?jr(x)():null,U=y?Rr(...y.map((e=>Tr[e])))():null;let q=(null==z?void 0:z.children)||(null==V?void 0:V.children)||(null==$?void 0:$.children)||i,G=null;O&&(G=kr(O)(q),q=G.children);const K=Bd(z,V,$,W,U,G),{children:X=null,isVisible:Y=null,className:Z="",component:J=a}=K,Q=r(K,["children","isVisible","className","component"]);t.useEffect((()=>{F(B.current.offsetWidth<B.current.scrollWidth)}),[B]);const ee=b.jsxs(J,Object.assign({tabIndex:d||u||!M?-1:0,onFocus:null!==m?H:v,onBlur:()=>A(!1),"data-label":s,onMouseEnter:null!==m?H:v,scope:"th"===a?l:null,ref:B,"aria-label":R,className:g(Bi.tableTh,o,c&&Bi.modifiers.center,I&&Bi.tableSubhead,j&&fa,N&&da.borderRight,C&&da.borderLeft,p&&Bi.modifiers[p],(null===(n=null==d?void 0:d.favoriteButtonProps)||void 0===n?void 0:n.favorited)&&Bi.modifiers.favorited,Z)},Q,P,j&&{style:Object.assign({[Hd]:S||void 0,[zd]:_||0,[Vd]:E||0},P.style)},{children:[q||T&&b.jsx("span",{className:ma,children:T}),k&&k]}));return null!==m&&(""!==m||"string"==typeof q)&&!(z||V)&&D?b.jsxs(b.Fragment,{children:[ee,b.jsx(vi,Object.assign({triggerRef:B,content:m||""===m&&i,isVisible:!0},h))]}):ee},Wd=t.forwardRef(((e,t)=>b.jsx($d,Object.assign({},e,{innerRef:t}))));Wd.displayName="Th";const Ud=e=>{var{children:n,className:i,isActionCell:o=!1,hasAction:a=!1,component:s="td",dataLabel:l,textCenter:c=!1,modifier:d,select:p=null,actions:u=null,expand:f=null,treeRow:m=null,compoundExpand:h=null,noPadding:v,width:x,visibility:y,innerRef:w,favorites:O=null,draggableRow:j=null,tooltip:N="",onMouseEnter:C=(()=>{}),isStickyColumn:S=!1,hasRightBorder:_=!1,hasLeftBorder:E=!1,stickyMinWidth:I="120px",stickyLeftOffset:T,stickyRightOffset:R}=e,k=r(e,["children","className","isActionCell","hasAction","component","dataLabel","textCenter","modifier","select","actions","expand","treeRow","compoundExpand","noPadding","width","visibility","innerRef","favorites","draggableRow","tooltip","onMouseEnter","isStickyColumn","hasRightBorder","hasLeftBorder","stickyMinWidth","stickyLeftOffset","stickyRightOffset"]);const[P,L]=t.useState(!1),[D,A]=t.useState(!1),M=w||t.createRef(),F=e=>{e.target.offsetWidth<e.target.scrollWidth?!P&&L(!0):P&&L(!1),C(e)},B=p?rr(n,{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,H=O?Lr(0,{rowIndex:null==O?void 0:O.rowIndex,rowData:{favorited:O.isFavorited,favoritesProps:null==O?void 0:O.props},column:{extraParams:{onFavorite:null==O?void 0:O.onFavorite}}}):null,z=null!==j?((e,{rowData:t})=>{const{id:n}=t;return{className:"",children:b.jsx(Vi,{id:n})}})(0,{rowData:{id:j.id}}):null,V=u?gr(u.items,null,null):null,$=V?V(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,{hasAnimations:W,variant:U}=t.useContext(Qr),q=null!==f?_r(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,variant:U}}}):null,G=null!==h?Ir({title:n,props:{isOpen:h.isExpanded}},{rowIndex:null==h?void 0:h.rowIndex,columnIndex:null==h?void 0:h.columnIndex,column:{extraParams:{onExpand:(e,t,n,i,o,r)=>{W&&(()=>{var e,t;const n=null===(e=null==M?void 0:M.current)||void 0===e?void 0:e.closest(`.${Bi.tableTr}.${Bi.tableControlRow}`);if(!n.classList.contains(Bi.modifiers.expanded))return;(null===(t=null==M?void 0:M.current)||void 0===t?void 0:t.classList.contains(Bi.modifiers.expanded))?n.classList.remove(Bi.modifiers.noAnimateExpand):n.classList.add(Bi.modifiers.noAnimateExpand)})(),null==h||h.onToggle(e,t,n,i,o,r)},expandId:null==h?void 0:h.expandId}}}):null,K=Bd(B,$,q,G,x?jr(x)():null,y?Rr(...y.map((e=>Tr[e])))():null,H,null!==m?Ar(m.onCollapse,m.onCheckChange,m.onToggleRowDetails)({title:n},{rowIndex:m.rowIndex,rowData:{props:m.props}}):null,z),{isVisible:X=null,children:Y=null,className:Z="",component:J=s}=K,Q=r(K,["isVisible","children","className","component"]),ee=i&&i.includes(Yo)||Z&&Z.includes(Yo);t.useEffect((()=>{A(M.current.offsetWidth<M.current.scrollWidth)}),[M]);const te=b.jsx(J,Object.assign({tabIndex:!p&&D||"truncate"===d?0:-1},!ee&&{"data-label":l},{onFocus:null!==N?F:C,onBlur:()=>L(!1),onMouseEnter:null!==N?F:C,className:g(Bi.tableTd,i,o&&Bi.tableAction,a&&Bi.modifiers.action,c&&Bi.modifiers.center,v&&Bi.modifiers.noPadding,S&&fa,_&&da.borderRight,E&&da.borderLeft,Bi.modifiers[d],z&&Bi.tableDraggable,Z),ref:M},Q,k,S&&{style:Object.assign({[Hd]:I||void 0,[zd]:T||0,[Vd]:R||0},k.style)},{children:Y||n}));return null!==N&&(""!==N||"string"==typeof n)&&P?b.jsxs(b.Fragment,{children:[te,b.jsx(vi,{triggerRef:M,content:N||""===N&&n,isVisible:!0})]}):te},qd=t.forwardRef(((e,t)=>b.jsx(Ud,Object.assign({},e,{innerRef:t}))));qd.displayName="Td";const Gd=e=>{var{children:t,className:n}=e,i=r(e,["children","className"]);return b.jsx("caption",Object.assign({className:g(Bi.tableCaption,n)},i,{children:t}))};Gd.displayName="Caption";const Kd=e=>{var{children:t,className:n}=e,i=r(e,["children","className"]);return b.jsx("div",Object.assign({className:g(n,ua)},i,{children:t}))};Kd.displayName="OuterScrollContainer";const Xd=e=>{var{children:t,className:n}=e,i=r(e,["children","className"]);return b.jsx("div",Object.assign({className:g(n,pa)},i,{children:t}))};Xd.displayName="InnerScrollContainer",e.ActionsColumn=Mi,e.Caption=Gd,e.CollapseColumn=Hi,e.DraggableCell=Vi,e.EditableSelectInputCell=Ji,e.EditableTextCell=ao,e.ExpandableRowContent=so,e.FavoritesCell=Pr,e.HeaderCellInfoWrapper=Bo,e.InnerScrollContainer=Xd,e.OuterScrollContainer=Kd,e.RowWrapper=oa,e.SelectColumn=or,e.SortColumn=mr,e.Table=ta,e.TableContext=Qr,e.TableText=Fo,e.Tbody=ca,e.Td=qd,e.Th=Wd,e.Thead=sa,e.Tr=ia,e.TreeRowWrapper=ra,e.Visibility=Tr,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:Bi.modifiers.breakWord}),e.calculateColumns=(e,t)=>e&&[...Kr(e,t),...Ur(t),...qr(t),...Yr(e,t),...Zr(t),...Gr(t)].map(((e,n)=>Object.assign({},((e,t,n,...i)=>{const o=e.hasOwnProperty("title")?e.title:e;let r=`column-${n}`;return e.hasOwnProperty("dataLabel")?r=e.dataLabel:"string"==typeof o&&(r=o),{property:"string"==typeof o&&o.toLowerCase().trim().replace(/\s/g,"-")||`column-${n}`,extraParams:t,data:e.data,header:$r(e,o),cell:Wr(e),props:Object.assign(Object.assign({"data-label":r,"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=Or,e.cellActions=gr,e.cellWidth=jr,e.classNames=Rr,e.collapsible=_r,e.compoundExpand=Ir,e.defaultTitle=Vr,e.editable=Sr,e.emptyCol=Br,e.emptyTD=Mr,e.expandable=(e,{rowData:t})=>t&&t.hasOwnProperty("parent")?b.jsx(so,{children:e}):e,e.expandedRow=Er,e.favoritable=Lr,e.fitContent=()=>({className:Bi.modifiers.fitContent}),e.getErrorTextByValidator=xr,e.headerCol=(e="simple-node")=>(t,{rowIndex:n}={})=>{const i="object"==typeof t?t.title:t;return{component:"th",children:b.jsx("div",{id:`${e}${n}`,children:i})}},e.info=kr,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=zr,e.nowrap=()=>({className:Bi.modifiers.nowrap}),e.parentId=Hr,e.scopeColTransformer=Fr,e.selectable=rr,e.sortable=vr,e.sortableFavorites=hr,e.textCenter=()=>({textCenter:!0}),e.toCamel=wr,e.treeRow=Ar,e.truncate=()=>({className:Bi.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((o=>{delete o.props.errorText;const r=void 0!==o.props.value&&null!==o.props.value,a=void 0!==o.props.editableValue&&null!==o.props.editableValue;if(o.props&&r&&a&&"save"===t){const t=Object.keys(n).filter((e=>n[e].includes(o.props.name))).map((t=>xr(t,e.rowEditValidationRules)));t.length?(o.props.errorText=o.props.name?t.join(", "):i,void 0===o.props.name&&console.warn("Row edit validation reporting requires cell definitions to have a unique name property.")):(delete o.props.errorText,o.props.isValid=!0)}})),e),e.wrappable=()=>({className:Bi.modifiers.wrap})}));
|
|
10
|
+
function ve(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function be(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t);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:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ge(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 xe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ge(Object(n),!0).forEach((function(t){be(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ge(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ye(e){return function(e){if(Array.isArray(e))return ve(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return ve(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ve(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var we=function(e,t){if(e.length>0){var n=e[e.length-1];n!==t&&n._setPausedState(!0)}var i=e.indexOf(t);-1===i||e.splice(i,1),e.push(t)},Oe=function(e,t){var n=e.indexOf(t);-1!==n&&e.splice(n,1),e.length>0&&!e[e.length-1]._isManuallyPaused()&&e[e.length-1]._setPausedState(!1)},je=function(e){return"Tab"===(null==e?void 0:e.key)||9===(null==e?void 0:e.keyCode)},Ne=function(e){return je(e)&&!e.shiftKey},Ce=function(e){return je(e)&&e.shiftKey},Se=function(e){return setTimeout(e,0)},_e=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},Ee=function(e){return e.target.shadowRoot&&"function"==typeof e.composedPath?e.composedPath()[0]:e.target},Ie=[],Te=function(e,t){var n,i=(null==t?void 0:t.document)||document,o=(null==t?void 0:t.trapStack)||Ie,r=xe({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:Ne,isKeyBackward:Ce},t),a={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},s=function(e,t,n){return e&&void 0!==e[t]?e[t]:r[n||t]},l=function(e,t){var n="function"==typeof(null==t?void 0:t.composedPath)?t.composedPath():void 0;return a.containerGroups.findIndex((function(t){var i=t.container,o=t.tabbableNodes;return i.contains(e)||(null==n?void 0:n.includes(i))||o.find((function(t){return t===e}))}))},c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.hasFallback,o=void 0!==n&&n,a=t.params,s=void 0===a?[]:a,l=r[e];if("function"==typeof l&&(l=l.apply(void 0,ye(s))),!0===l&&(l=void 0),!l){if(void 0===l||!1===l)return l;throw new Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var c=l;if("string"==typeof l){try{c=i.querySelector(l)}catch(t){throw new Error("`".concat(e,'` appears to be an invalid selector; error="').concat(t.message,'"'))}if(!c&&!o)throw new Error("`".concat(e,"` as selector refers to no known node"))}return c},d=function(){var e=c("initialFocus",{hasFallback:!0});if(!1===e)return!1;if(void 0===e||e&&!he(e,r.tabbableOptions))if(l(i.activeElement)>=0)e=i.activeElement;else{var t=a.tabbableGroups[0];e=t&&t.firstTabbableNode||c("fallbackFocus")}else null===e&&(e=c("fallbackFocus"));if(!e)throw new Error("Your focus-trap needs to have at least one focusable element");return e},p=function(){if(a.containerGroups=a.containers.map((function(e){var t=function(e,t){var n;return n=(t=t||{}).getShadowRoot?te([e],t.includeContainer,{filter:de.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:pe}):ee(e,t.includeContainer,de.bind(null,t)),ue(n)}(e,r.tabbableOptions),n=function(e,t){return(t=t||{}).getShadowRoot?te([e],t.includeContainer,{filter:ce.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):ee(e,t.includeContainer,ce.bind(null,t))}(e,r.tabbableOptions),i=t.length>0?t[0]:void 0,o=t.length>0?t[t.length-1]:void 0,a=n.find((function(e){return fe(e)})),s=n.slice().reverse().find((function(e){return fe(e)})),l=!!t.find((function(e){return ie(e)>0}));return{container:e,tabbableNodes:t,focusableNodes:n,posTabIndexesFound:l,firstTabbableNode:i,lastTabbableNode:o,firstDomTabbableNode:a,lastDomTabbableNode:s,nextTabbableNode:function(e){var i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=t.indexOf(e);return o<0?i?n.slice(n.indexOf(e)+1).find((function(e){return fe(e)})):n.slice(0,n.indexOf(e)).reverse().find((function(e){return fe(e)})):t[o+(i?1:-1)]}}})),a.tabbableGroups=a.containerGroups.filter((function(e){return e.tabbableNodes.length>0})),a.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(a.containerGroups.find((function(e){return e.posTabIndexesFound}))&&a.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){var t=e.activeElement;if(t)return t.shadowRoot&&null!==t.shadowRoot.activeElement?u(t.shadowRoot):t},f=function(e){!1!==e&&e!==u(document)&&(e&&e.focus?(e.focus({preventScroll:!!r.preventScroll}),a.mostRecentlyFocusedNode=e,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select}(e)&&e.select()):f(d()))},m=function(e){var t=c("setReturnFocus",{params:[e]});return t||!1!==t&&e},h=function(e){var t=e.target,n=e.event,i=e.isBackward,o=void 0!==i&&i;t=t||Ee(n),p();var s=null;if(a.tabbableGroups.length>0){var d=l(t,n),u=d>=0?a.containerGroups[d]:void 0;if(d<0)s=o?a.tabbableGroups[a.tabbableGroups.length-1].lastTabbableNode:a.tabbableGroups[0].firstTabbableNode;else if(o){var f=a.tabbableGroups.findIndex((function(e){var n=e.firstTabbableNode;return t===n}));if(f<0&&(u.container===t||he(t,r.tabbableOptions)&&!fe(t,r.tabbableOptions)&&!u.nextTabbableNode(t,!1))&&(f=d),f>=0){var m=0===f?a.tabbableGroups.length-1:f-1,h=a.tabbableGroups[m];s=ie(t)>=0?h.lastTabbableNode:h.lastDomTabbableNode}else je(n)||(s=u.nextTabbableNode(t,!1))}else{var v=a.tabbableGroups.findIndex((function(e){var n=e.lastTabbableNode;return t===n}));if(v<0&&(u.container===t||he(t,r.tabbableOptions)&&!fe(t,r.tabbableOptions)&&!u.nextTabbableNode(t))&&(v=d),v>=0){var b=v===a.tabbableGroups.length-1?0:v+1,g=a.tabbableGroups[b];s=ie(t)>=0?g.firstTabbableNode:g.firstDomTabbableNode}else je(n)||(s=u.nextTabbableNode(t))}}else s=c("fallbackFocus");return s},v=function(e){var t=Ee(e);l(t,e)>=0||(_e(r.clickOutsideDeactivates,e)?n.deactivate({returnFocus:r.returnFocusOnDeactivate}):_e(r.allowOutsideClick,e)||e.preventDefault())},b=function(e){var t=Ee(e),n=l(t,e)>=0;if(n||t instanceof Document)n&&(a.mostRecentlyFocusedNode=t);else{var i;e.stopImmediatePropagation();var o=!0;if(a.mostRecentlyFocusedNode)if(ie(a.mostRecentlyFocusedNode)>0){var s=l(a.mostRecentlyFocusedNode),c=a.containerGroups[s].tabbableNodes;if(c.length>0){var p=c.findIndex((function(e){return e===a.mostRecentlyFocusedNode}));p>=0&&(r.isKeyForward(a.recentNavEvent)?p+1<c.length&&(i=c[p+1],o=!1):p-1>=0&&(i=c[p-1],o=!1))}}else a.containerGroups.some((function(e){return e.tabbableNodes.some((function(e){return ie(e)>0}))}))||(o=!1);else o=!1;o&&(i=h({target:a.mostRecentlyFocusedNode,isBackward:r.isKeyBackward(a.recentNavEvent)})),f(i||(a.mostRecentlyFocusedNode||d()))}a.recentNavEvent=void 0},g=function(e){(r.isKeyForward(e)||r.isKeyBackward(e))&&function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];a.recentNavEvent=e;var n=h({event:e,isBackward:t});n&&(je(e)&&e.preventDefault(),f(n))}(e,r.isKeyBackward(e))},x=function(e){var t;"Escape"!==(null==(t=e)?void 0:t.key)&&"Esc"!==(null==t?void 0:t.key)&&27!==(null==t?void 0:t.keyCode)||!1===_e(r.escapeDeactivates,e)||(e.preventDefault(),n.deactivate())},y=function(e){var t=Ee(e);l(t,e)>=0||_e(r.clickOutsideDeactivates,e)||_e(r.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},w=function(){if(a.active)return we(o,n),a.delayInitialFocusTimer=r.delayInitialFocus?Se((function(){f(d())})):f(d()),i.addEventListener("focusin",b,!0),i.addEventListener("mousedown",v,{capture:!0,passive:!1}),i.addEventListener("touchstart",v,{capture:!0,passive:!1}),i.addEventListener("click",y,{capture:!0,passive:!1}),i.addEventListener("keydown",g,{capture:!0,passive:!1}),i.addEventListener("keydown",x),n},O=function(){if(a.active)return i.removeEventListener("focusin",b,!0),i.removeEventListener("mousedown",v,!0),i.removeEventListener("touchstart",v,!0),i.removeEventListener("click",y,!0),i.removeEventListener("keydown",g,!0),i.removeEventListener("keydown",x),n},j="undefined"!=typeof window&&"MutationObserver"in window?new MutationObserver((function(e){e.some((function(e){return Array.from(e.removedNodes).some((function(e){return e===a.mostRecentlyFocusedNode}))}))&&f(d())})):void 0,N=function(){j&&(j.disconnect(),a.active&&!a.paused&&a.containers.map((function(e){j.observe(e,{subtree:!0,childList:!0})})))};return n={get active(){return a.active},get paused(){return a.paused},activate:function(e){if(a.active)return this;var t=s(e,"onActivate"),n=s(e,"onPostActivate"),o=s(e,"checkCanFocusTrap");o||p(),a.active=!0,a.paused=!1,a.nodeFocusedBeforeActivation=i.activeElement,null==t||t();var r=function(){o&&p(),w(),N(),null==n||n()};return o?(o(a.containers.concat()).then(r,r),this):(r(),this)},deactivate:function(e){if(!a.active)return this;var t=xe({onDeactivate:r.onDeactivate,onPostDeactivate:r.onPostDeactivate,checkCanReturnFocus:r.checkCanReturnFocus},e);clearTimeout(a.delayInitialFocusTimer),a.delayInitialFocusTimer=void 0,O(),a.active=!1,a.paused=!1,N(),Oe(o,n);var i=s(t,"onDeactivate"),l=s(t,"onPostDeactivate"),c=s(t,"checkCanReturnFocus"),d=s(t,"returnFocus","returnFocusOnDeactivate");null==i||i();var p=function(){Se((function(){d&&f(m(a.nodeFocusedBeforeActivation)),null==l||l()}))};return d&&c?(c(m(a.nodeFocusedBeforeActivation)).then(p,p),this):(p(),this)},pause:function(e){return a.active?(a.manuallyPaused=!0,this._setPausedState(!0,e)):this},unpause:function(e){return a.active?(a.manuallyPaused=!1,o[o.length-1]!==this?this:this._setPausedState(!1,e)):this},updateContainerElements:function(e){var t=[].concat(e).filter(Boolean);return a.containers=t.map((function(e){return"string"==typeof e?i.querySelector(e):e})),a.active&&p(),N(),this}},Object.defineProperties(n,{_isManuallyPaused:{value:function(){return a.manuallyPaused}},_setPausedState:{value:function(e,t){if(a.paused===e)return this;if(a.paused=e,e){var n=s(t,"onPause"),i=s(t,"onPostPause");null==n||n(),O(),N(),null==i||i()}else{var o=s(t,"onUnpause"),r=s(t,"onPostUnpause");null==o||o(),p(),w(),N(),null==r||r()}return this}}}),n.updateContainerElements(e),n};const Re=t.forwardRef((function(e,n){var{active:i=!0,paused:o=!1,focusTrapOptions:a={},preventScrollOnDeactivate:s=!1}=e,l=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=Te(c.current,Object.assign(Object.assign({},a),{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;o?null==e||e.pause():null==e||e.unpause()}),[o]);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!==a.returnFocusOnDeactivate&&p.current instanceof HTMLElement&&p.current.focus({preventScroll:s})})),b.jsx("div",Object.assign({ref:c},l))}));function ke(e="pf"){return`${e}-${(new Date).getTime()+Math.random().toString(36).slice(2)}`}function Pe(e,t){let n;return(...i)=>{clearTimeout(n),n=setTimeout((()=>e.apply(this,i)),t)}}Re.displayName="FocusTrap";const Le=(e,t,n="",i,o)=>e?Object.entries(e||{}).map((([e,t])=>`${n}${t}${"default"!==e?`-on-${e}`:""}`)).map(Ae).map((e=>e.replace(/-?(\dxl)/gi,((e,t)=>`_${t}`)))).map((e=>t.modifiers[e])).filter(Boolean).join(" "):"",De=e=>e.toUpperCase().replace("-","").replace("_",""),Ae=e=>e.replace(/([-_][a-z])/gi,De),Me=!("undefined"==typeof window||!window.document||!window.document.createElement),Fe=(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},Be=(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(Fe(t,e)>n){for(;Fe(`...${i}`,e)>n;)i=i.substring(1);e.value?e.value=`...${i}`:e.innerText=`...${i}`}else e.value?e.value=t:e.innerText=t},He=e=>{e.forEach((e=>{e.current&&clearTimeout(e.current)}))};let ze=0;class Ve extends t.Component{constructor(){super(...arguments),this.uniqueElement=this.props.isRandom?"undefined"!=typeof crypto&&crypto.randomUUID?crypto.randomUUID():ke():ze++,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 $e=0;const We="OUIA-Generated-",Ue={};function qe(e,t,n=!0){return{"data-ouia-component-type":`PF6/${e}`,"data-ouia-safe":n,"data-ouia-component-id":t}}const Ge=(e,t,n=!0,i)=>({"data-ouia-component-type":`PF6/${e}`,"data-ouia-safe":n,"data-ouia-component-id":Ke(e,t,i)}),Ke=(e,n,i)=>{const o=t.useMemo((()=>Xe(e,i)),[e,i]);return null!=n?n:o};function Xe(e,t){try{let n;return n="undefined"!=typeof window?`${window.location.href}-${e}-${t||""}`:`${e}-${t||""}`,Ue[n]||(Ue[n]=0),`${We}${e}-${t?`${t}-`:""}${++Ue[n]}`}catch(n){return`${We}${e}-${t?`${t}-`:""}${++$e}`}}function Ye(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 Ze(e){if("[object Window]"!==e.toString()){const t=e.ownerDocument;return t?t.defaultView:window}return e}function Je(e){const t=Ze(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Qe(e){return e instanceof Ze(e).Element||e instanceof Element}function et(e){return e instanceof Ze(e).HTMLElement||e instanceof HTMLElement}function tt(e){return e?(e.nodeName||"").toLowerCase():null}function nt(e){return(Qe(e)?e.ownerDocument:e.document).documentElement}function it(e){return Ye(nt(e)).left+Je(e).scrollLeft}function ot(e){return Ze(e).getComputedStyle(e)}function rt(e){const{overflow:t,overflowX:n,overflowY:i}=ot(e);return/auto|scroll|overlay|hidden/.test(t+i+n)}function at(e,t,n=!1){const i=nt(t),o=Ye(e),r=et(t);let a={scrollLeft:0,scrollTop:0},s={x:0,y:0};var l,c;return(r||!r&&!n)&&(("body"!==tt(t)||rt(i))&&(a=(l=t)!==Ze(l)&&et(l)?{scrollLeft:(c=l).scrollLeft,scrollTop:c.scrollTop}:Je(l)),et(t)?(s=Ye(t),s.x+=t.clientLeft,s.y+=t.clientTop):i&&(s.x=it(i))),{x:o.left+a.scrollLeft-s.x,y:o.top+a.scrollTop-s.y,width:o.width,height:o.height}}function st(e){return{x:e.offsetLeft,y:e.offsetTop,width:e.offsetWidth,height:e.offsetHeight}}function lt(e){return"html"===tt(e)?e:e.assignedSlot||e.parentNode||e.host||nt(e)}function ct(e){return["html","body","#document"].indexOf(tt(e))>=0?e.ownerDocument.body:et(e)&&rt(e)?e:ct(lt(e))}function dt(e,t=[]){const n=ct(e),i="body"===tt(n),o=Ze(n),r=i?[o].concat(o.visualViewport||[],rt(n)?n:[]):n,a=t.concat(r);return i?a:a.concat(dt(lt(r)))}function pt(e){return["table","td","th"].indexOf(tt(e))>=0}function ut(e){if(!et(e)||"fixed"===ot(e).position)return null;const t=e.offsetParent;if(t){const e=nt(t);if("body"===tt(t)&&"static"===ot(t).position&&"static"!==ot(e).position)return e}return t}function ft(e){const t=Ze(e);let n=ut(e);for(;n&&pt(n)&&"static"===ot(n).position;)n=ut(n);return n&&"body"===tt(n)&&"static"===ot(n).position?t:n||function(e){let t=lt(e);for(;et(t)&&["html","body"].indexOf(tt(t))<0;){const e=ot(t);if("none"!==e.transform||"none"!==e.perspective||e.willChange&&"auto"!==e.willChange)return t;t=t.parentNode}return null}(e)||t}const mt="top",ht="bottom",vt="right",bt="left",gt="auto",xt=[mt,ht,vt,bt],yt="start",wt="end",Ot="clippingParents",jt="viewport",Nt="popper",Ct="reference",St=xt.reduce(((e,t)=>e.concat([`${t}-${yt}`,`${t}-${wt}`])),[]),_t=[...xt,gt].reduce(((e,t)=>e.concat([t,`${t}-${yt}`,`${t}-${wt}`])),[]),Et=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function It(e){const t=new Map,n=new Set,i=[];function o(e){n.add(e.name);[...e.requires||[],...e.requiresIfExists||[]].forEach((e=>{if(!n.has(e)){const n=t.get(e);n&&o(n)}})),i.push(e)}return e.forEach((e=>{t.set(e.name,e)})),e.forEach((e=>{n.has(e.name)||o(e)})),i}function Tt(e){let t;return()=>(t||(t=new Promise((n=>{Promise.resolve().then((()=>{t=void 0,n(e())}))}))),t)}function Rt(e){return e.split("-")[0]}function kt(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 Pt(e){return Object.assign(Object.assign({},e),{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Lt(e,t){return t===jt?Pt(function(e){const t=Ze(e),n=nt(e),i=t.visualViewport;let o=n.clientWidth,r=n.clientHeight,a=0,s=0;return i&&(o=i.width,r=i.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=i.offsetLeft,s=i.offsetTop)),{width:o,height:r,x:a+it(e),y:s}}(e)):et(t)?function(e){const t=Ye(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):Pt(function(e){const t=nt(e),n=Je(e),i=e.ownerDocument.body,o=Math.max(t.scrollWidth,t.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),r=Math.max(t.scrollHeight,t.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0);let a=-n.scrollLeft+it(e);const s=-n.scrollTop;return"rtl"===ot(i||t).direction&&(a+=Math.max(t.clientWidth,i?i.clientWidth:0)-o),{width:o,height:r,x:a,y:s}}(nt(e)))}function Dt(e,t,n){const i="clippingParents"===t?function(e){const t=dt(lt(e)),n=["absolute","fixed"].indexOf(ot(e).position)>=0&&et(e)?ft(e):e;return Qe(n)?t.filter((e=>Qe(e)&&kt(e,n)&&"body"!==tt(e))):[]}(e):[].concat(t),o=[...i,n],r=o[0],a=o.reduce(((t,n)=>{const i=Lt(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}),Lt(e,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function At(e){return e.split("-")[1]}function Mt(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ft({reference:e,element:t,placement:n}){const i=n?Rt(n):null,o=n?At(n):null,r=e.x+e.width/2-t.width/2,a=e.y+e.height/2-t.height/2;let s;switch(i){case mt:s={x:r,y:e.y-t.height};break;case ht:s={x:r,y:e.y+e.height};break;case vt:s={x:e.x+e.width,y:a};break;case bt:s={x:e.x-t.width,y:a};break;default:s={x:e.x,y:e.y}}const l=i?Mt(i):null;if(null!=l){const n="y"===l?"height":"width";switch(o){case yt:s[l]=Math.floor(s[l])-Math.floor(e[n]/2-t[n]/2);break;case wt:s[l]=Math.floor(s[l])+Math.ceil(e[n]/2-t[n]/2)}}return s}function Bt(e){return Object.assign(Object.assign({},{top:0,right:0,bottom:0,left:0}),e)}function Ht(e,t){return t.reduce(((t,n)=>(t[n]=e,t)),{})}function zt(e,t={}){const{placement:n=e.placement,boundary:i=Ot,rootBoundary:o=jt,elementContext:r=Nt,altBoundary:a=!1,padding:s=0}=t,l=Bt("number"!=typeof s?s:Ht(s,xt)),c=r===Nt?Ct:Nt,d=e.elements.reference,p=e.rects.popper,u=e.elements[a?c:r],f=Dt(Qe(u)?u:u.contextElement||nt(e.elements.popper),i,o),m=Ye(d),h=Ft({reference:m,element:p,placement:n}),v=Pt(Object.assign(Object.assign({},p),h)),b=r===Nt?v:m,g={top:f.top-b.top+l.top,bottom:b.bottom-f.bottom+l.bottom,left:f.left-b.left+l.left,right:b.right-f.right+l.right},x=e.modifiersData.offset;if(r===Nt&&x){const e=x[n];Object.keys(g).forEach((t=>{const n=[vt,ht].indexOf(t)>=0?1:-1,i=[mt,ht].indexOf(t)>=0?"y":"x";g[t]+=e[i]*n}))}return g}const Vt={placement:"bottom",modifiers:[],strategy:"absolute"};function $t(...e){return!e.some((e=>!(e&&"function"==typeof e.getBoundingClientRect)))}function Wt(e={}){const{defaultModifiers:t=[],defaultOptions:n=Vt}=e;return function(e,i,o=n){let r={placement:"bottom",orderedModifiers:[],options:Object.assign(Object.assign({},Vt),n),modifiersData:{},elements:{reference:e,popper:i},attributes:{},styles:{}},a=[],s=!1;const l={state:r,setOptions(o){c(),r.options=Object.assign(Object.assign(Object.assign({},n),r.options),o),r.scrollParents={reference:Qe(e)?dt(e):e.contextElement?dt(e.contextElement):[],popper:dt(i)};const s=function(e){const t=It(e);return Et.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,...r.options.modifiers]));return r.orderedModifiers=s.filter((e=>e.enabled)),r.orderedModifiers.forEach((({name:e,options:t={},effect:n})=>{if("function"==typeof n){const i=n({state:r,name:e,instance:l,options:t}),o=()=>{};a.push(i||o)}})),l.update()},forceUpdate(){if(s)return;const{reference:e,popper:t}=r.elements;if($t(e,t)){r.rects={reference:at(e,ft(t),"fixed"===r.options.strategy),popper:st(t)},r.reset=!1,r.placement=r.options.placement,r.orderedModifiers.forEach((e=>r.modifiersData[e.name]=Object.assign({},e.data)));for(let e=0;e<r.orderedModifiers.length;e++){if(!0===r.reset){r.reset=!1,e=-1;continue}const{fn:t,options:n={},name:i}=r.orderedModifiers[e];"function"==typeof t&&(r=t({state:r,options:n,name:i,instance:l})||r)}}},update:Tt((()=>new Promise((e=>{l.forceUpdate(),e(r)})))),destroy(){c(),s=!0}};if(!$t(e,i))return l;function c(){a.forEach((e=>e())),a=[]}return l.setOptions(o).then((e=>{!s&&o.onFirstUpdate&&o.onFirstUpdate(e)})),l}}Wt();const Ut={passive:!0};const qt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Gt({popper:e,popperRect:t,placement:n,offsets:i,position:o,gpuAcceleration:r,adaptive:a}){let{x:s,y:l}=function({x:e,y:t}){const n=window.devicePixelRatio||1;return{x:Math.round(e*n)/n||0,y:Math.round(t*n)/n||0}}(i);const c=i.hasOwnProperty("x"),d=i.hasOwnProperty("y");let p=bt,u=mt;const f=window;if(a){let i=ft(e);i===Ze(e)&&(i=nt(e)),n===mt&&(u=ht,l-=i.clientHeight-t.height,l*=r?1:-1),n===bt&&(p=vt,s-=i.clientWidth-t.width,s*=r?1:-1)}const m=Object.assign({position:o},a&&qt);return r?Object.assign(Object.assign({},m),{[u]:d?"0":"",[p]:c?"0":"",transform:(f.devicePixelRatio||1)<2?`translate(${s}px, ${l}px)`:`translate3d(${s}px, ${l}px, 0)`}):Object.assign(Object.assign({},m),{[u]:d?`${l}px`:"",[p]:c?`${s}px`:"",transform:""})}var Kt={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function({state:e,options:t,name:n}){const{offset:i=[0,0]}=t,o=_t.reduce(((t,n)=>(t[n]=function(e,t,n){const i=Rt(e),o=[bt,mt].indexOf(i)>=0?-1:1;let[r,a]="function"==typeof n?n(Object.assign(Object.assign({},t),{placement:e})):n;return r=r||0,a=(a||0)*o,[bt,vt].indexOf(i)>=0?{x:a,y:r}:{x:r,y:a}}(n,e.rects,i),t)),{}),{x:r,y:a}=o[e.placement];null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=r,e.modifiersData.popperOffsets.y+=a),e.modifiersData[n]=o}};const Xt={left:"right",right:"left",bottom:"top",top:"bottom"};function Yt(e){return e.replace(/left|right|bottom|top/g,(e=>Xt[e]))}const Zt={start:"end",end:"start"};function Jt(e){return e.replace(/start|end/g,(e=>Zt[e]))}function Qt(e,t={}){const{placement:n,boundary:i,rootBoundary:o,padding:r,flipVariations:a,allowedAutoPlacements:s=_t}=t,l=At(n),c=l?a?St:St.filter((e=>At(e)===l)):xt;let d=c.filter((e=>s.indexOf(e)>=0));0===d.length&&(d=c);const p=d.reduce(((t,n)=>(t[n]=zt(e,{placement:n,boundary:i,rootBoundary:o,padding:r})[Rt(n)],t)),{});return Object.keys(p).sort(((e,t)=>p[e]-p[t]))}var en={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:o=!0,fallbackPlacements:r,padding:a,boundary:s,rootBoundary:l,altBoundary:c,flipVariations:d=!0,allowedAutoPlacements:p}=t,u=e.options.placement,f=Rt(u),m=[u,...r||(f===u||!d?[Yt(u)]:function(e){if(Rt(e)===gt)return[];const t=Yt(e);return[Jt(e),t,Jt(t)]}(u))].reduce(((t,n)=>t.concat(Rt(n)===gt?Qt(e,{placement:n,boundary:s,rootBoundary:l,padding:a,flipVariations:d,allowedAutoPlacements:p}):n)),[]),h=e.rects.reference,v=e.rects.popper,b=new Map;let g=!0,x=m[0];for(let t=0;t<m.length;t++){const n=m[t],r=Rt(n),d=At(n)===yt,p=[mt,ht].indexOf(r)>=0,u=p?"width":"height",f=zt(e,{placement:n,boundary:s,rootBoundary:l,altBoundary:c,padding:a});let y=p?d?vt:bt:d?ht:mt;h[u]>v[u]&&(y=Yt(y));const w=Yt(y),O=[];if(i&&O.push(f[r]<=0),o&&O.push(f[y]<=0,f[w]<=0),O.every((e=>e))){x=n,g=!1;break}b.set(n,O)}if(g){for(let e=d?3:1;e>0;e--){const t=m.find((t=>{const n=b.get(t);if(n)return n.slice(0,e).every((e=>e))}));if(t){x=t;break}}}e.placement!==x&&(e.modifiersData[n]._skip=!0,e.placement=x,e.reset=!0)},requiresIfExists:["offset"],data:{_skip:!1}};function tn(e,t,n){return Math.max(e,Math.min(t,n))}var nn={name:"preventOverflow",enabled:!0,phase:"main",fn:function({state:e,options:t,name:n}){const{mainAxis:i=!0,altAxis:o=!1,boundary:r,rootBoundary:a,altBoundary:s,padding:l,tether:c=!0,tetherOffset:d=0}=t,p=zt(e,{boundary:r,rootBoundary:a,padding:l,altBoundary:s}),u=Rt(e.placement),f=At(e.placement),m=!f,h=Mt(u),v="x"===h?"y":"x",b=e.modifiersData.popperOffsets,g=e.rects.reference,x=e.rects.popper,y="function"==typeof d?d(Object.assign(Object.assign({},e.rects),{placement:e.placement})):d,w={x:0,y:0};if(b){if(i){const t="y"===h?mt:bt,n="y"===h?ht:vt,i="y"===h?"height":"width",o=b[h],r=b[h]+p[t],a=b[h]-p[n],s=c?-x[i]/2:0,l=f===yt?g[i]:x[i],d=f===yt?-x[i]:-g[i],u=e.elements.arrow,v=c&&u?st(u):{width:0,height:0},O=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},j=O[t],N=O[n],C=tn(0,g[i],v[i]),S=m?g[i]/2-s-C-j-y:l-C-j-y,_=m?-g[i]/2+s+C+N+y:d+C+N+y,E=e.elements.arrow&&ft(e.elements.arrow),I=E?"y"===h?E.clientTop||0:E.clientLeft||0:0,T=e.modifiersData.offset?e.modifiersData.offset[e.placement][h]:0,R=b[h]+S-T-I,k=b[h]+_-T,P=tn(c?Math.min(r,R):r,o,c?Math.max(a,k):a);b[h]=P,w[h]=P-o}if(o){const e="x"===h?mt:bt,t="x"===h?ht:vt,n=b[v],i=tn(n+p[e],n,n-p[t]);b[v]=i,w[v]=i-n}e.modifiersData[n]=w}},requiresIfExists:["offset"]};var on={name:"arrow",enabled:!0,phase:"main",fn:function({state:e,name:t}){const n=e.elements.arrow,i=e.modifiersData.popperOffsets,o=Rt(e.placement),r=Mt(o),a=[bt,vt].indexOf(o)>=0?"height":"width";if(!n||!i)return;const s=e.modifiersData[`${t}#persistent`].padding,l=st(n),c="y"===r?mt:bt,d="y"===r?ht:vt,p=e.rects.reference[a]+e.rects.reference[r]-i[r]-e.rects.popper[a],u=i[r]-e.rects.reference[r],f=ft(n),m=f?"y"===r?f.clientHeight||0:f.clientWidth||0:0,h=p/2-u/2,v=s[c],b=m-l[a]-s[d],g=m/2-l[a]/2+h,x=tn(v,g,b),y=r;e.modifiersData[t]={[y]:x,centerOffset:x-g}},effect:function({state:e,options:t,name:n}){let{element:i="[data-popper-arrow]",padding:o=0}=t;null!=i&&("string"!=typeof i||(i=e.elements.popper.querySelector(i),i))&&kt(e.elements.popper,i)&&(e.elements.arrow=i,e.modifiersData[`${n}#persistent`]={padding:Bt("number"!=typeof o?o:Ht(o,xt))})},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function rn(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[mt,vt,ht,bt].some((t=>e[t]>=0))}const sn=Wt({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:()=>{},effect:function({state:e,instance:t,options:n}){const{scroll:i=!0,resize:o=!0}=n,r=Ze(e.elements.popper),a=[...e.scrollParents.reference,...e.scrollParents.popper];return i&&a.forEach((e=>{e.addEventListener("scroll",t.update,Ut)})),o&&r.addEventListener("resize",t.update,Ut),()=>{i&&a.forEach((e=>{e.removeEventListener("scroll",t.update,Ut)})),o&&r.removeEventListener("resize",t.update,Ut)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function({state:e,name:t}){e.modifiersData[t]=Ft({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function({state:e,options:t}){const{gpuAcceleration:n=!0,adaptive:i=!0}=t,o={placement:Rt(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:n};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign(Object.assign({},e.styles.popper),Gt(Object.assign(Object.assign({},o),{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:i})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign(Object.assign({},e.styles.arrow),Gt(Object.assign(Object.assign({},o),{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1})))),e.attributes.popper=Object.assign(Object.assign({},e.attributes.popper),{"data-popper-placement":e.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function({state:e}){Object.keys(e.elements).forEach((t=>{const n=e.styles[t]||{},i=e.attributes[t]||{},o=e.elements[t];et(o)&&tt(o)&&(Object.assign(o.style,n),Object.keys(i).forEach((e=>{const t=i[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function({state:e}){const t={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,t.popper),e.elements.arrow&&Object.assign(e.elements.arrow.style,t.arrow),()=>{Object.keys(e.elements).forEach((n=>{const i=e.elements[n],o=e.attributes[n]||{},r=Object.keys(e.styles.hasOwnProperty(n)?e.styles[n]:t[n]).reduce(((e,t)=>(e[t]="",e)),{});et(i)&&tt(i)&&(Object.assign(i.style,r),Object.keys(o).forEach((e=>{i.removeAttribute(e)})))}))}},requires:["computeStyles"]},Kt,en,nn,on,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function({state:e,name:t}){const n=e.rects.reference,i=e.rects.popper,o=e.modifiersData.preventOverflow,r=zt(e,{elementContext:"reference"}),a=zt(e,{altBoundary:!0}),s=rn(r,n),l=rn(a,i,o),c=an(s),d=an(l);e.modifiersData[t]={referenceClippingOffsets:s,popperEscapeOffsets:l,isReferenceHidden:c,hasPopperEscaped:d},e.attributes.popper=Object.assign(Object.assign({},e.attributes.popper),{"data-popper-reference-hidden":c,"data-popper-escaped":d})}}]}),ln=Me?t.useLayoutEffect:t.useEffect,cn=e=>e.reduce(((e,[t,n])=>(e[t]=n,e)),{}),dn=[],pn=(e,n,i={})=>{const o=t.useRef(null),r={onFirstUpdate:i.onFirstUpdate,placement:i.placement||"bottom",strategy:i.strategy||"absolute",modifiers:i.modifiers||dn},[a,s]=t.useState({styles:{popper:{position:r.strategy,left:"0",top:"0"}},attributes:{}}),l=t.useMemo((()=>({name:"updateState",enabled:!0,phase:"write",fn:({state:e})=>{const t=Object.keys(e.elements);s({styles:cn(t.map((t=>[t,e.styles[t]||{}]))),attributes:cn(t.map((t=>[t,e.attributes[t]])))})},requires:["computeStyles"]})),[]),c=t.useMemo((()=>{const e={onFirstUpdate:r.onFirstUpdate,placement:r.placement,strategy:r.strategy,modifiers:[...r.modifiers,l,{name:"applyStyles",enabled:!1}]};return t=o.current,n=e,JSON.stringify(t)===JSON.stringify(n)?o.current||e:(o.current=e,e);var t,n}),[r.onFirstUpdate,r.placement,r.strategy,r.modifiers,l]),d=t.useRef(void 0);return ln((()=>{d&&d.current&&d.current.setOptions(c)}),[c]),ln((()=>{if(null==e||null==n)return;const t=(i.createPopper||sn)(e,n,c);return d.current=t,()=>{t.destroy(),d.current=null}}),[e,n,i.createPopper]),{state:d.current?d.current.state:null,styles:a.styles,attributes:a.attributes,update:d.current?d.current.update:null,forceUpdate:d.current?d.current.forceUpdate:null}},un={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"},fn=e=>`opacity ${e}ms cubic-bezier(.54, 1.5, .38, 1.11)`,mn=({trigger:e,popper:n,direction:i="down",position:r="start",placement:a,width:s,minWidth:l="trigger",maxWidth:c,appendTo:d=(()=>document.body),zIndex:p=9999,isVisible:u=!0,positionModifiers:f,distance:m=0,offset:h,onMouseEnter:v,onMouseLeave:x,onFocus:y,onBlur:w,onDocumentClick:O,onTriggerClick:j,onTriggerEnter:N,onPopperClick:C,onPopperMouseEnter:S,onPopperMouseLeave:_,onDocumentKeyDown:E,enableFlip:I=!0,flipBehavior:T="flip",triggerRef:R,popperRef:k,animationDuration:P=0,entryDelay:L=0,exitDelay:D=0,onHidden:A=(()=>{}),onHide:M=(()=>{}),onMount:F=(()=>{}),onShow:B=(()=>{}),onShown:H=(()=>{}),preventOverflow:z=!1})=>{var V;const[$,W]=t.useState(null),[U,q]=t.useState(null),[G,K]=t.useState(null),[X,Y]=t.useState(null),[Z,J]=t.useState(!1),[Q,ee]=t.useState(0),[te,ne]=t.useState(u),ie=t.useRef(null),oe=t.useRef(null),re=t.useRef(null),ae=t.useRef(void 0),se=U||$,le=u||te,ce=((e,t="ltr")=>{if(!e)return t;const n=getComputedStyle(e).getPropertyValue("direction");return["ltr","rtl"].includes(n)?n:t})(null===(V=(null==R?void 0:R.current)||$)||void 0===V?void 0:V.parentElement),de=t.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)}[ce][r]}),[r,ce]),pe=t.useCallback((e=>O(e,se,G)),[le,$,U,G,O]);t.useEffect((()=>{J(!0),F()}),[]),t.useEffect((()=>()=>{He([ie,re,oe])}),[]),t.useEffect((()=>{R&&(R.current?q(R.current):"function"==typeof R&&q(R()))}),[R,e]),t.useEffect((()=>{k&&(k.current?K(k.current):"function"==typeof k&&K(k()))}),[le,k]),t.useEffect((()=>{const e=new MutationObserver((()=>{ye&&ye()}));return G&&e.observe(G,{attributes:!0,childList:!0,subtree:!0}),()=>{e.disconnect()}}),[G]);const ue=(e,t,n,i=!1)=>{e&&t&&t.addEventListener(n,e,{capture:i})},fe=(e,t,n,i=!1)=>{e&&t&&t.removeEventListener(n,e,{capture:i})};t.useEffect((()=>(ue(v,se,"mouseenter"),ue(x,se,"mouseleave"),ue(y,se,"focus"),ue(w,se,"blur"),ue(j,se,"click"),ue(N,se,"keydown"),ue(C,G,"click"),ue(S,G,"mouseenter"),ue(_,G,"mouseleave"),O&&ue(pe,document,"click",!0),ue(E,document,"keydown",!0),()=>{fe(v,se,"mouseenter"),fe(x,se,"mouseleave"),fe(y,se,"focus"),fe(w,se,"blur"),fe(j,se,"click"),fe(N,se,"keydown"),fe(C,G,"click"),fe(S,G,"mouseenter"),fe(_,G,"mouseleave"),O&&fe(pe,document,"click",!0),fe(E,document,"keydown",!0)})),[$,G,v,x,y,w,j,N,C,S,_,O,E,U]);const me=()=>{if(a)return a;let e="up"===i?"top":"bottom";return"center"!==de&&(e=`${e}-${"right"===de?"end":"start"}`),e},he=t.useMemo(me,[i,de,a]),ve=t.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=>un[e])))(me())),[i,de,a]),be=t.useMemo((()=>({name:"widthMods",enabled:void 0!==s||void 0!==l||void 0!==c,phase:"beforeWrite",requires:["computeStyles"],fn:({state:e})=>{const t=e.rects.reference.width;s&&(e.styles.popper.width="trigger"===s?`${t}px`:s),l&&(e.styles.popper.minWidth="trigger"===l?`${t}px`:l),c&&(e.styles.popper.maxWidth="trigger"===c?`${t}px`:c)},effect:({state:e})=>{const t=e.elements.reference.offsetWidth;return s&&(e.elements.popper.style.width="trigger"===s?`${t}px`:s),l&&(e.elements.popper.style.minWidth="trigger"===l?`${t}px`:l),c&&(e.elements.popper.style.maxWidth="trigger"===c?`${t}px`:c),()=>{}}})),[s,l,c]),{styles:ge,attributes:xe,update:ye,forceUpdate:we}=pn(se,G,{placement:he,modifiers:[{name:"offset",options:{offset:h||[0,m]}},{name:"preventOverflow",enabled:z},{name:"hide",enabled:!0},{name:"flip",enabled:he.startsWith("auto")||I,options:{fallbackPlacements:"flip"===T?[ve]:T}},be]});t.useEffect((()=>{var e,t,i,o,r,a,s;const l=(null===(o=null===(i=null===(t=null===(e=null==n?void 0:n.props)||void 0===e?void 0:e.children)||void 0===t?void 0:t[1])||void 0===i?void 0:i.props)||void 0===o?void 0:o.children)||(null===(s=null===(a=null===(r=null==n?void 0:n.props)||void 0===r?void 0:r.children)||void 0===a?void 0:a.props)||void 0===s?void 0:s.children);Y(l),l&&X&&l!==X&&we&&we()}),[n]),t.useEffect((()=>{ae.current<D&&(He([ie,re]),re.current=setTimeout((()=>{ie.current=setTimeout((()=>{ne(!1)}),P)}),D)),ae.current=D}),[D]);t.useEffect((()=>{u?(B(),He([ie,re]),oe.current=setTimeout((()=>{ne(!0),ee(1),H()}),L)):(M(),He([oe]),re.current=setTimeout((()=>{ee(0),ie.current=setTimeout((()=>{ne(!1),K(null),A()}),P)}),D))}),[u]);const Oe=Object.assign({className:g(n.props&&n.props.className,f&&(()=>{if(xe&&xe.popper&&xe.popper["data-popper-placement"]){const e=xe.popper["data-popper-placement"];return f[e]}return f.top})()),style:Object.assign(Object.assign(Object.assign({},n.props&&n.props.style||{}),ge.popper),{zIndex:p,opacity:Q,transition:fn(P)})},xe.popper),je=()=>{const e=t.cloneElement(n,Oe);return k?e:b.jsx("div",{style:{display:"contents"},ref:e=>{K(null==e?void 0:e.firstElementChild)},children:e})};return b.jsxs(b.Fragment,{children:[!R&&e&&t.isValidElement(e)&&b.jsx("div",{style:{display:"contents"},ref:e=>{W(null==e?void 0:e.firstElementChild)},children:e}),R&&e&&t.isValidElement(e)&&e,Z&&le&&(()=>{if("inline"===d)return je();{const e="function"==typeof d?d():d;return o.createPortal(je(),e)}})()]})};mn.displayName="Popper";const hn=(e,t,n=(e=>document.activeElement.contains(e)),i=(e=>e),o=["A","BUTTON","INPUT"],r=!1,a=!1,s=!0,l=!0)=>{const c=document.activeElement,d=e.key;let p=null;if(!r&&["ArrowUp","ArrowDown"].includes(d)){e.preventDefault(),e.stopImmediatePropagation();let o=-1;t.forEach(((e,r)=>{if(n(e)){let e=0;for(;!p&&e<t.length&&-1*e<t.length;)"ArrowUp"===d?e--:e++,o=r+e,o>=t.length&&(o=0),o<0&&(o=t.length-1),p=i(t[o])}}))}if(!a&&["ArrowLeft","ArrowRight"].includes(d)){e.preventDefault(),e.stopImmediatePropagation();let i=-1;t.forEach(((r,a)=>{var s;if(n(r)){const n=t[a].querySelectorAll(o.join(","));if(!n.length||l){let e=c;for(;e;){const t=e.parentElement===r?e:e.parentElement;if(e="ArrowLeft"===d?t.previousElementSibling:t.nextElementSibling,e){if(o.includes(null==e?void 0:e.tagName)){p=e;break}if(o.includes(null===(s=e.children[0])||void 0===s?void 0:s.tagName)){p=e.children[0];break}}}}else n.forEach(((t,o)=>{if(e.target===t){i=o+("ArrowLeft"===d?-1:1),i>=n.length&&(i=0),i<0&&(i=n.length-1),p=n[i]}}))}}))}p&&(s&&(c.tabIndex=-1,p.tabIndex=0),p.focus())},vn=(e,t)=>{var n;if("ArrowDown"!==e.key&&"ArrowUp"!==e.key)return;e.preventDefault();const i=Array.from(null===(n=t.current)||void 0===n?void 0:n.querySelectorAll("li")).map((e=>e.querySelector('button:not(:disabled),input:not(:disabled),a:not([aria-disabled="true"])'))).filter((e=>null!==e));let o;o="ArrowDown"===e.key?i[0]:i[i.length-1],o&&o.focus()};class bn extends t.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:o,noHorizontalArrowHandling:r,noEnterHandling:a,noSpaceHandling:s,updateTabIndex:l,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;a||"Enter"===m&&(e.preventDefault(),e.stopImmediatePropagation(),document.activeElement.click()),s||" "===m&&(e.preventDefault(),e.stopImmediatePropagation(),document.activeElement.click()),hn(e,f,n,i,c,o,r,l,u)},this._isEventFromContainer=e=>{const{containerRef:t}=this.props;return t.current&&t.current.contains(e.target)}}componentDidMount(){Me&&window.addEventListener("keydown",this.keyHandler)}componentWillUnmount(){Me&&window.removeEventListener("keydown",this.keyHandler)}render(){return null}}bn.displayName="KeyboardHandler",bn.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 gn=t.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"}),xn=t.createContext({itemId:null,isDisabled:!1});class yn extends t.Component{constructor(e){super(e),this.menuRef=t.createRef(),this.activeMenu=null,this.state={ouiaStateId:Xe(wn.displayName),transitionMoveTarget:null,flyoutRef:null,currentDrilldownMenuId:this.props.id},this.handleDrilldownTransition=e=>{const t=this.menuRef.current;if(t&&(t===e.target.closest(`.${y}`)||Array.from(t.getElementsByClassName(y)).includes(e.target.closest(`.${y}`))))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 o=i.filter((e=>!(e.classList.contains("pf-m-disabled")||e.classList.contains(x))))[0].firstChild;o.focus(),o.tabIndex=0}},this.handleExtraKeys=e=>{const t=this.props.containsDrilldown,n=document.activeElement;if(e.target.closest(`.${y}`)===this.activeMenu||e.target.classList.contains(A)||(this.activeMenu=e.target.closest(`.${y}`)),"INPUT"===e.target.tagName)return;const i=this.activeMenu,o=e.key,r=n.classList.contains(A);if(" "===o||"Enter"===o){if(e.preventDefault(),t&&!r){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(y)){const e=Array.from(n.nextElementSibling.getElementsByTagName("UL")[0].children).filter((e=>!(e.classList.contains("pf-m-disabled")||e.classList.contains(x))));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(x)))):[]:this.menuRef.current?Array.from(this.menuRef.current.getElementsByTagName("LI")).filter((e=>!(e.classList.contains("pf-m-disabled")||e.classList.contains(x)))):[],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(){Me&&this.props.containsDrilldown&&this.props.isRootMenu&&window.addEventListener("transitionend",this.handleDrilldownTransition),this.allowTabFirstItem()}componentWillUnmount(){Me&&this.props.containsDrilldown&&this.props.isRootMenu&&window.removeEventListener("transitionend",this.handleDrilldownTransition)}componentDidUpdate(e){e.children!==this.props.children&&this.allowTabFirstItem()}render(){var e,t;const n=this.props,{id:i,children:o,className:a,onSelect:s,selected:l=null,onActionClick:c,ouiaId:d,ouiaSafe:p,containsFlyout:u,containsDrilldown:f,isMenuDrilledIn:m,isPlain:h,isScrollable:v,drilldownItemPath:x,drilledInMenus:w,onDrillIn:O,onDrillOut:j,onGetMenuHeight:N,parentMenu:C=null,activeItemId:S=null,innerRef:_,isRootMenu:E,activeMenu:I,role:T,isNavFlyout:R}=n,k=r(n,["id","children","className","onSelect","selected","onActionClick","ouiaId","ouiaSafe","containsFlyout","containsDrilldown","isMenuDrilledIn","isPlain","isScrollable","drilldownItemPath","drilledInMenus","onDrillIn","onDrillOut","onGetMenuHeight","parentMenu","activeItemId","innerRef","isRootMenu","activeMenu","role","isNavFlyout"]),P=m||w&&w.includes(i)||!1;return b.jsxs(gn.Provider,{value:{menuId:i,parentMenu:C||i,onSelect:s,onActionClick:c,activeItemId:S,selected:l,drilledInMenus:w,drilldownItemPath:x,onDrillIn:O,onDrillOut:j,onGetMenuHeight:N,flyoutRef:this.state.flyoutRef,setFlyoutRef:e=>this.setState({flyoutRef:e}),disableHover:null!==(t=null===(e=this.context)||void 0===e?void 0:e.disableHover)&&void 0!==t&&t,role:T},children:[E&&b.jsx(bn,{containerRef:this.menuRef||null,additionalKeyHandler:this.handleExtraKeys,createNavigableElements:this.createNavigableElements,isActiveElement:e=>document.activeElement.closest("li")===e||document.activeElement.parentElement===e||document.activeElement.closest(`.${L}`)===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(A)||"INPUT"===document.activeElement.tagName),noEnterHandling:!0,noSpaceHandling:!0}),b.jsx("div",Object.assign({id:i,className:g(y,h&&D.plain,v&&D.scrollable,u&&D.flyout,R&&"pf-m-nav",f&&D.drilldown,P&&D.drilledIn,a),ref:this.menuRef},qe(wn.displayName,void 0!==d?d:this.state.ouiaStateId,p),k,{children:o}))]})}}yn.displayName="Menu",yn.contextType=gn,yn.defaultProps={ouiaSafe:!0,isRootMenu:!0,isPlain:!1,isScrollable:!1,role:"menu"};const wn=t.forwardRef(((e,t)=>b.jsx(yn,Object.assign({},e,{innerRef:t}))));wn.displayName="Menu";const On="--pf-v6-c-menu__content--Height",jn="--pf-v6-c-menu__content--MaxHeight",Nn=t.forwardRef(((e,n)=>{const{getHeight:i,children:o,menuHeight:a,maxMenuHeight:s}=e,l=r(e,["getHeight","children","menuHeight","maxMenuHeight"]);t.createRef();return b.jsx(gn.Consumer,{children:({menuId:t,onGetMenuHeight:n})=>b.jsx("div",Object.assign({},l,{className:g(w,e.className),ref:e=>{((e,t,n)=>{if(e){let o=e.clientHeight,r=null,a=e.closest(`.${k}`);for(;null!==a&&1===a.nodeType;)a.classList.contains(k)&&(r=a),a=a.parentElement;if(r){const e=getComputedStyle(r);o+=parseFloat(e.getPropertyValue("padding-top").replace(/px/g,""))+parseFloat(e.getPropertyValue("padding-bottom").replace(/px/g,""))+parseFloat(getComputedStyle(r.parentElement).getPropertyValue("border-bottom-width").replace(/px/g,""))}n&&n(t,o),i&&i(o.toString())}})(e,t,n)},style:Object.assign(Object.assign({},a&&{[On]:a}),s&&{[jn]:s}),children:o}))})}));Nn.displayName="MenuContent";const Cn="--pf-v6-c-menu--m-flyout__menu--top-offset",Sn="--pf-v6-c-menu--m-flyout__menu--m-left--right-offset",_n="--pf-v6-c-menu--m-flyout__menu--left-offset",En=H({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,svgClassName:void 0}),In=H({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,svgClassName:void 0}),Tn=H({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,svgClassName:void 0}),Rn=H({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,svgClassName:void 0});var kn="pf-v6-c-check",Pn="pf-v6-c-check__body",Ln="pf-v6-c-check__description",Dn="pf-v6-c-check__input",An="pf-v6-c-check__label",Mn="pf-v6-c-check__label-required",Fn={standalone:"pf-m-standalone",disabled:"pf-m-disabled"};const Bn=()=>{};class Hn extends t.Component{constructor(e){super(e),this.handleChange=e=>{this.props.onChange(e,e.currentTarget.checked)},this.state={ouiaStateId:Xe(Hn.displayName),descriptionId:ke("pf-checkbox-description")}}render(){const e=this.props,{"aria-label":t,"aria-describedby":n,className:i,inputClassName:o,onChange:a,isLabelWrapped:s,labelPosition:l="end",isValid:c,isDisabled:d,isRequired:p,isChecked:u,label:f,checked:m,defaultChecked:h,description:v,body:x,ouiaId:y,ouiaSafe:w,component:O}=e,j=r(e,["aria-label","aria-describedby","className","inputClassName","onChange","isLabelWrapped","labelPosition","isValid","isDisabled","isRequired","isChecked","label","checked","defaultChecked","description","body","ouiaId","ouiaSafe","component"]);j.id||console.error("Checkbox:","id is required to make input accessible");const N={};let C;([!0,!1].includes(m)||!0===u)&&(N.checked=m||u),a!==Bn&&(N.checked=u),[!1,!0].includes(h)&&(N.defaultChecked=h),void 0!==n?C=""===n?void 0:n:v&&(C=this.state.descriptionId);const S=b.jsx("input",Object.assign({},j,{className:g(Dn,o),type:"checkbox",onChange:this.handleChange,"aria-invalid":!c,"aria-label":t,"aria-describedby":C,disabled:d,required:p,ref:e=>{e&&(e.indeterminate=null===u)}},N,qe(Hn.displayName,void 0!==y?y:this.state.ouiaStateId,w))),_=s&&!O||"label"===O,E=_?"span":"label",I=f?b.jsxs(E,{className:g(An,d&&Fn.disabled),htmlFor:_?void 0:j.id,children:[f,p&&b.jsx("span",{className:g(Mn),"aria-hidden":"true",children:"*"})]}):null,T=null!=O?O:_?"label":"div";return N.checked=null!==N.checked&&N.checked,b.jsxs(T,{className:g(kn,!f&&Fn.standalone,i),htmlFor:_?j.id:void 0,children:["start"===l?b.jsxs(b.Fragment,{children:[I,S]}):b.jsxs(b.Fragment,{children:[S,I]}),v&&b.jsx("span",{id:this.state.descriptionId,className:g(Ln),children:v}),x&&b.jsx("span",{className:g(Pn),children:x})]})}}Hn.displayName="Checkbox",Hn.defaultProps={className:"",isLabelWrapped:!1,isValid:!0,isDisabled:!1,isRequired:!1,isChecked:!1,onChange:Bn,ouiaSafe:!0};var zn={button:"pf-v6-c-button",buttonCount:"pf-v6-c-button__count",buttonHamburgerIcon:"pf-v6-c-button--hamburger-icon",buttonHamburgerIconArrow:"pf-v6-c-button--hamburger-icon--arrow",buttonHamburgerIconBottom:"pf-v6-c-button--hamburger-icon--bottom",buttonHamburgerIconMiddle:"pf-v6-c-button--hamburger-icon--middle",buttonHamburgerIconTop:"pf-v6-c-button--hamburger-icon--top",buttonIcon:"pf-v6-c-button__icon",buttonProgress:"pf-v6-c-button__progress",modifiers:{primary:"pf-m-primary",unread:"pf-m-unread",secondary:"pf-m-secondary",danger:"pf-m-danger",tertiary:"pf-m-tertiary",link:"pf-m-link",inline:"pf-m-inline",displayLg:"pf-m-display-lg",warning:"pf-m-warning",control:"pf-m-control",stateful:"pf-m-stateful",read:"pf-m-read",attention:"pf-m-attention",plain:"pf-m-plain",noPadding:"pf-m-no-padding",block:"pf-m-block",small:"pf-m-small",favorite:"pf-m-favorite",favorited:"pf-m-favorited",settings:"pf-m-settings",hamburger:"pf-m-hamburger",expand:"pf-m-expand",collapse:"pf-m-collapse",circle:"pf-m-circle",clicked:"pf-m-clicked",disabled:"pf-m-disabled",ariaDisabled:"pf-m-aria-disabled",progress:"pf-m-progress",inProgress:"pf-m-in-progress",notify:"pf-m-notify",start:"pf-m-start",end:"pf-m-end"}},Vn={modifiers:{inline:"pf-m-inline",xs:"pf-m-xs",sm:"pf-m-sm",md:"pf-m-md",lg:"pf-m-lg",xl:"pf-m-xl"},spinner:"pf-v6-c-spinner",spinnerPath:"pf-v6-c-spinner__path"};const $n="--pf-v6-c-spinner--diameter";var Wn;!function(e){e.sm="sm",e.md="md",e.lg="lg",e.xl="xl"}(Wn||(Wn={}));const Un=e=>{var{className:t="",size:n="xl","aria-valuetext":i="Loading...",diameter:o,isInline:a=!1,"aria-label":s,"aria-labelledBy":l}=e,c=r(e,["className","size","aria-valuetext","diameter","isInline","aria-label","aria-labelledBy"]);return b.jsx("svg",Object.assign({className:g(Vn.spinner,a?Vn.modifiers.inline:Vn.modifiers[n],t),role:"progressbar","aria-valuetext":i,viewBox:"0 0 100 100"},o&&{style:{[$n]:o}},s&&{"aria-label":s},l&&{"aria-labelledBy":l},!s&&!l&&{"aria-label":"Contents"},c,{children:b.jsx("circle",{className:Vn.spinnerPath,cx:"50",cy:"50",r:"45",fill:"none"})}))};Un.displayName="Spinner";var qn="pf-v6-c-badge",Gn={read:"pf-m-read",unread:"pf-m-unread",disabled:"pf-m-disabled"};const Kn=e=>{var{isRead:t=!1,isDisabled:n=!1,className:i="",children:o="",screenReaderText:a}=e,s=r(e,["isRead","isDisabled","className","children","screenReaderText"]);return b.jsxs("span",Object.assign({},s,{className:g(qn,t?Gn.read:Gn.unread,n&&Gn.disabled,i),children:[o,a&&b.jsx("span",{className:"pf-v6-screen-reader",children:a})]}))};Kn.displayName="Badge";const Xn=H({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,svgClassName:void 0}),Yn=H({name:"OutlinedStarIcon",height:512,width:576,svgPath:"M528.1 171.5L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0L194 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.6zM388.6 312.3l23.7 138.4L288 385.4l-124.3 65.3 23.7-138.4-100.6-98 139-20.2 62.2-126 62.2 126 139 20.2-100.6 98z",yOffset:0,xOffset:0,svgClassName:void 0}),Zn=H({name:"CogIcon",height:512,width:512,svgPath:"M487.4 315.7l-42.6-24.6c4.3-23.2 4.3-47 0-70.2l42.6-24.6c4.9-2.8 7.1-8.6 5.5-14-11.1-35.6-30-67.8-54.7-94.6-3.8-4.1-10-5.1-14.8-2.3L380.8 110c-17.9-15.4-38.5-27.3-60.8-35.1V25.8c0-5.6-3.9-10.5-9.4-11.7-36.7-8.2-74.3-7.8-109.2 0-5.5 1.2-9.4 6.1-9.4 11.7V75c-22.2 7.9-42.8 19.8-60.8 35.1L88.7 85.5c-4.9-2.8-11-1.9-14.8 2.3-24.7 26.7-43.6 58.9-54.7 94.6-1.7 5.4.6 11.2 5.5 14L67.3 221c-4.3 23.2-4.3 47 0 70.2l-42.6 24.6c-4.9 2.8-7.1 8.6-5.5 14 11.1 35.6 30 67.8 54.7 94.6 3.8 4.1 10 5.1 14.8 2.3l42.6-24.6c17.9 15.4 38.5 27.3 60.8 35.1v49.2c0 5.6 3.9 10.5 9.4 11.7 36.7 8.2 74.3 7.8 109.2 0 5.5-1.2 9.4-6.1 9.4-11.7v-49.2c22.2-7.9 42.8-19.8 60.8-35.1l42.6 24.6c4.9 2.8 11 1.9 14.8-2.3 24.7-26.7 43.6-58.9 54.7-94.6 1.5-5.5-.7-11.3-5.6-14.1zM256 336c-44.1 0-80-35.9-80-80s35.9-80 80-80 80 35.9 80 80-35.9 80-80 80z",yOffset:0,xOffset:0,svgClassName:void 0}),Jn=b.jsxs("svg",{viewBox:"0 0 10 10",className:g(zn.buttonHamburgerIcon,"pf-v6-svg"),width:"1em",height:"1em",children:[b.jsx("path",{className:g(zn.buttonHamburgerIconTop),d:"M1,1 L9,1"}),b.jsx("path",{className:g(zn.buttonHamburgerIconMiddle),d:"M1,5 L9,5"}),b.jsx("path",{className:g(zn.buttonHamburgerIconArrow),d:"M1,5 L1,5 L1,5"}),b.jsx("path",{className:g(zn.buttonHamburgerIconBottom),d:"M9,9 L1,9"})]});var Qn,ei,ti,ni;!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",e.stateful="stateful"}(Qn||(Qn={})),function(e){e.button="button",e.submit="submit",e.reset="reset"}(ei||(ei={})),function(e){e.default="default",e.sm="sm",e.lg="lg"}(ti||(ti={})),function(e){e.read="read",e.unread="unread",e.attention="attention"}(ni||(ni={}));const ii=e=>{var{children:t=null,className:n="",component:i="button",isClicked:o=!1,isBlock:a=!1,isDisabled:s=!1,isAriaDisabled:l=!1,isLoading:c=null,isDanger:d=!1,isExpanded:p,isSettings:u,isHamburger:f,hamburgerVariant:m,isCircle:h,spinnerAriaValueText:v,spinnerAriaLabelledBy:x,spinnerAriaLabel:y,size:w=ti.default,inoperableEvents:O=["onClick","onKeyPress"],isInline:j=!1,isFavorite:N=!1,isFavorited:C=!1,type:S=ei.button,variant:_=Qn.primary,state:E=ni.unread,hasNoPadding:I=!1,iconPosition:T="start","aria-label":R=null,icon:k=null,role:P,ouiaId:L,ouiaSafe:D=!0,tabIndex:A=null,innerRef:M,countOptions:F}=e,B=r(e,["children","className","component","isClicked","isBlock","isDisabled","isAriaDisabled","isLoading","isDanger","isExpanded","isSettings","isHamburger","hamburgerVariant","isCircle","spinnerAriaValueText","spinnerAriaLabelledBy","spinnerAriaLabel","size","inoperableEvents","isInline","isFavorite","isFavorited","type","variant","state","hasNoPadding","iconPosition","aria-label","icon","role","ouiaId","ouiaSafe","tabIndex","innerRef","countOptions"]);f&&![!0,!1].includes(p)&&console.error("Button: when the isHamburger property is passed in, you must also pass in a boolean value to the isExpanded property. It is expected that a hamburger button controls the expansion of other content."),!(u||f||N)||R||t||B["aria-labelledby"]||console.error("Button: you must provide either visible text content or an accessible name via the aria-label or aria-labelledby properties.");const H=Ge(oi.displayName,L,D,_),z=i,V="button"===z,$=j&&"span"===z,W="end"===T||"right"===T,U=u||f||N,q=O.reduce(((e,t)=>Object.assign(Object.assign({},e),{[t]:e=>{e.preventDefault()}})),{}),G=(()=>{let e;return N&&(e=b.jsxs(b.Fragment,{children:[b.jsx("span",{className:g("pf-v6-c-button__icon-favorite"),children:b.jsx(Yn,{})}),b.jsx("span",{className:g("pf-v6-c-button__icon-favorited"),children:b.jsx(Xn,{})})]})),u&&(e=b.jsx(Zn,{})),f&&(e=Jn),k&&!U&&(e=k),e&&b.jsx("span",{className:g(zn.buttonIcon,t&&zn.modifiers[W?"end":"start"]),children:e})})(),K=t&&b.jsx("span",{className:g("pf-v6-c-button__text"),children:t}),X=l||!V&&s;return b.jsxs(z,Object.assign({"aria-expanded":p},B,l?q:null,X&&{"aria-disabled":!0},{"aria-label":R,className:g(zn.button,zn.modifiers[_],u&&zn.modifiers.settings,f&&zn.modifiers.hamburger,f&&m&&zn.modifiers[m],a&&zn.modifiers.block,s&&!V&&zn.modifiers.disabled,l&&zn.modifiers.ariaDisabled,o&&zn.modifiers.clicked,j&&_===Qn.link&&zn.modifiers.inline,N&&zn.modifiers.favorite,N&&C&&zn.modifiers.favorited,d&&(_===Qn.secondary||_===Qn.link)&&zn.modifiers.danger,null!==c&&_!==Qn.plain&&zn.modifiers.progress,c&&zn.modifiers.inProgress,I&&_===Qn.plain&&zn.modifiers.noPadding,_===Qn.stateful&&zn.modifiers[E],w===ti.sm&&zn.modifiers.small,w===ti.lg&&zn.modifiers.displayLg,h&&zn.modifiers.circle,n),disabled:V?s:null,tabIndex:null!==A?A:s?V?null:-1:l?null:$?0:void 0,type:V||$?S:null,role:$?"button":P,ref:M},H,{children:[c&&b.jsx("span",{className:g(zn.buttonProgress),children:b.jsx(Un,{size:Wn.md,isInline:j,"aria-valuetext":v,"aria-label":y,"aria-labelledby":x})}),W?b.jsxs(b.Fragment,{children:[K,G]}):b.jsxs(b.Fragment,{children:[G,K]}),F&&b.jsx("span",{className:g(zn.buttonCount,F.className),children:b.jsx(Kn,{isRead:F.isRead,isDisabled:s,children:F.count})})]}))},oi=t.forwardRef(((e,t)=>b.jsx(ii,Object.assign({innerRef:t},e))));oi.displayName="Button";const ri=e=>{var{className:t,icon:n,onClick:i,"aria-label":o,isFavorited:a=null,isDisabled:s,actionId:l,innerRef:c}=e,d=r(e,["className","icon","onClick","aria-label","isFavorited","isDisabled","actionId","innerRef"]);return b.jsx(gn.Consumer,{children:({onActionClick:e})=>b.jsx(xn.Consumer,{children:({itemId:r,isDisabled:p})=>b.jsx("div",Object.assign({className:g(j,null!==a&&"pf-m-favorite",a&&D.favorited,t)},d,{children:b.jsx(oi,{"aria-label":o,onClick:t=>{i&&i(t),e&&e(t,r,l)},ref:c,role:"menuitem",variant:"plain",isFavorite:null!==a,isFavorited:null!=a&&a,tabIndex:-1,isDisabled:s||p,icon:null===a?n:void 0})}))})})},ai=t.forwardRef(((e,t)=>b.jsx(ri,Object.assign({},e,{innerRef:t}))));ai.displayName="MenuItemAction";var si={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"},li="pf-v6-c-tooltip",ci="pf-v6-c-tooltip__arrow",di="pf-v6-c-tooltip__content";const pi=e=>{var{className:t,children:n,isLeftAligned:i}=e,o=r(e,["className","children","isLeftAligned"]);return b.jsx("div",Object.assign({className:g(di,i&&si.textAlignLeft,t)},o,{children:n}))};pi.displayName="TooltipContent";const ui=e=>{var{className:t}=e,n=r(e,["className"]);return b.jsx("div",Object.assign({className:g(ci,t)},n))};ui.displayName="TooltipArrow";const fi={value:"18.75rem"};var mi;!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"}(mi||(mi={}));let hi=1;const vi=e=>{var{content:n,position:i="top",trigger:o="mouseenter focus",isVisible:a=!1,isContentLeftAligned:s=!1,enableFlip:l=!0,className:c="",entryDelay:d=300,exitDelay:p=300,appendTo:u=(()=>document.body),zIndex:f=9999,minWidth:m,maxWidth:h=fi.value,distance:v=15,aria:x="describedby",flipBehavior:y=["top","right","bottom","left","top","right","bottom"],id:w="pf-tooltip-"+hi++,children:O,animationDuration:j=300,triggerRef:N,"aria-live":C=(N?"polite":"off"),onTooltipHidden:S=(()=>{})}=e,_=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 E=o.includes("mouseenter"),I=o.includes("focus"),T=o.includes("click"),R="manual"===o,[k,P]=t.useState(!1),L=t.createRef(),D=()=>"none"!==x?`aria-${x}`:null,A=e=>{if("none"===x||!N||O)return;const t="function"==typeof N?N():N&&"object"==typeof N&&"current"in N?N.current:N instanceof HTMLElement?N:null;t&&(e?(e=>{const t=D();if(!e||!t)return;const n=e.getAttribute(t);if(!n||!n.includes(w)){const i=n?`${n} ${w}`:w;e.setAttribute(t,i)}})(t):(e=>{const t=D();if(!e||!t)return;const n=e.getAttribute(t);if(!n)return;const i=n.replace(new RegExp(`\\b${w}\\b`,"g"),"").trim();i?e.setAttribute(t,i):e.removeAttribute(t)})(t))};t.useEffect((()=>(A(k),()=>{A(!1)})),[k,x,N,O,w]);t.useEffect((()=>{a?M():F()}),[a]);const M=()=>{P(!0)},F=()=>{P(!1)},B={top:si.top,bottom:si.bottom,left:si.left,right:si.right,"top-start":si.topLeft,"top-end":si.topRight,"bottom-start":si.bottomLeft,"bottom-end":si.bottomRight,"left-start":si.leftTop,"left-end":si.leftBottom,"right-start":si.rightTop,"right-end":si.rightBottom},H=h!==fi.value,z=b.jsxs("div",Object.assign({"aria-live":C,className:g(li,c),role:"tooltip",id:w,style:{maxWidth:H?h:null},ref:L},_,{children:[b.jsx(ui,{}),b.jsx(pi,{isLeftAligned:s,children:n})]}));return b.jsx(mn,{trigger:"none"!==x&&k?(()=>{if(O)return"describedby"===x&&O.props&&!O.props["aria-describedby"]?t.cloneElement(O,{"aria-describedby":w}):"labelledby"===x&&O.props&&!O.props["aria-labelledby"]?t.cloneElement(O,{"aria-labelledby":w}):O})():O,triggerRef:N,popper:z,popperRef:L,minWidth:void 0!==m?m:"revert",appendTo:u,isVisible:k,positionModifiers:B,distance:v,placement:i,onMouseEnter:E&&M,onMouseLeave:E&&F,onPopperMouseEnter:E&&M,onPopperMouseLeave:E&&F,onFocus:I&&M,onBlur:I&&F,onDocumentClick:T&&((e,t)=>{k?F():e.target===t&&M()}),onDocumentKeyDown:R?null:e=>{R||e.key===q&&k&&F()},onTriggerEnter:R?null:e=>{e.key===G&&(k?F():M())},enableFlip:l,zIndex:f,flipBehavior:y,animationDuration:j,entryDelay:d,exitDelay:p,onHidden:S})};vi.displayName="Tooltip";const bi=t.createContext({direction:"right"}),gi=e=>{var{children:n,className:i,itemId:o=null,to:a,hasCheckbox:s=!1,isActive:l=null,isFavorited:c=null,isLoadButton:d=!1,isLoading:p=!1,flyoutMenu:u,direction:f,description:m=null,onClick:h=(()=>{}),component:v="button",isDisabled:w=!1,isAriaDisabled:j=!1,isExternalLink:k=!1,isSelected:L=null,isFocused:A,isDanger:M=!1,icon:F,actions:B,onShowFlyout:H,drilldownMenu:z,isOnPath:V,innerRef:$,id:W,"aria-label":U,tooltipProps:q,rel:G,target:K,download:X}=e,Y=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:Z,parentMenu:J,onSelect:Q,onActionClick:ee,activeItemId:te,selected:ne,drilldownItemPath:ie,onDrillIn:oe,onDrillOut:re,flyoutRef:ae,setFlyoutRef:se,disableHover:le,role:ce}=t.useContext(gn);let de=a?"a":v;s&&!a&&(de="label");const[pe,ue]=t.useState(null),fe=t.useContext(bi),[me,he]=t.useState(fe.direction),ve=t.useRef(void 0),be=t.useRef(void 0),ge=$||be,xe=ve===ae,ye=void 0!==u,we=e=>{!xe&&e?se(ve):xe&&!e&&se(null),H&&e&&H()};ln((()=>{if(ye&&ve.current&&Me){const e=ve.current.lastElementChild;if(e&&e.classList.contains(y)){const t=ve.current.getClientRects()[0],n=e.getClientRects()[0];if(t&&n){const i=t.x-n.width,o=window.innerWidth-t.x-t.width-n.width;let r=me;o<0&&"left"!==r?(he("left"),r="left"):i<0&&"right"!==r&&(he("right"),r="right");let a=0;i<0&&o<0&&(a="right"===r?-o:-i),"left"===r?(e.classList.add(D.left),e.style.setProperty(Sn,`-${a}px`)):e.style.setProperty(_n,`-${a}px`);const s=window.innerHeight-t.y-n.height;window.innerHeight-n.height<0&&s<0||s<0&&e.style.setProperty(Cn,`${s}px`)}}}}),[xe,u]),t.useEffect((()=>{he(fe.direction)}),[fe]),t.useEffect((()=>{var e,t,n;if(pe)if(xe){const i=pe.nextElementSibling;null===(n=null===(t=Array.from((null===(e=null==i?void 0:i.getElementsByTagName("UL")[0])||void 0===e?void 0:e.children)||[]).filter((e=>!(e.classList.contains("pf-m-disabled")||e.classList.contains(x))))[0])||void 0===t?void 0:t.firstChild)||void 0===n||n.focus()}else pe.focus()}),[xe,pe]);const Oe=e=>{const t=e.key,n=e.target,i=e.type;" "!==t&&"Enter"!==t&&"ArrowRight"!==t&&"click"!==i||(e.stopPropagation(),e.preventDefault(),xe||(we(!0),ue(n))),"Escape"!==t&&"ArrowLeft"!==t||xe&&(e.stopPropagation(),we(!1))},je=(e,t)=>{j||(t&&t(e,o),h&&h(e))},Ne=V&&V||ie&&ie.includes(o)||!1;let Ce;f&&(Ce="down"===f?e=>oe&&oe(e,Z,"function"==typeof z?z().props.id:z.props.id,o):e=>re&&re(e,J,o));let Se={};"a"===de?Se={href:a,"aria-disabled":!(!w&&!j)||null,disabled:null,target:k?"_blank":K,rel:G,download:X}:"button"===de&&(Se={type:"button","aria-disabled":!!j||null}),V?Se["aria-expanded"]=!0:ye&&(Se["aria-haspopup"]="menu",Se["aria-expanded"]=xe);const _e=()=>null!==L?L:null!==ne&&null!==o&&(Array.isArray(ne)&&ne.includes(o)||o===ne);t.useEffect((()=>{if(A&&ve.current){const e=ve.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"})}}}),[A]);const Ee="listbox"===ce,Ie=b.jsxs(b.Fragment,{children:[b.jsx(Ve,{children:e=>b.jsxs(de,Object.assign({id:W,tabIndex:-1,className:g(O,_e()&&!s&&D.selected,i),"aria-current":null!==l?l?"page":null:null!==o&&null!==te?o===te:null},!s&&{disabled:w,"aria-label":U},!s&&!u&&{role:Ee?"option":"menuitem"},!s&&!u&&Ee&&{"aria-selected":_e()},{ref:ge},!s&&{onClick:e=>{j?e.preventDefault():(je(e,Q),Ce&&Ce(e),u&&Oe(e))}},s&&{htmlFor:e},Se,{children:[b.jsxs("span",{className:g(E),children:["up"===f&&b.jsx("span",{className:g(R),children:b.jsx(Tn,{})}),F&&b.jsx("span",{className:g(_),children:F}),s&&b.jsx("span",{className:g(N),children:b.jsx(Hn,{id:e,component:"span",isChecked:L||!1,onChange:e=>je(e,Q),isDisabled:w,"aria-disabled":j})}),b.jsx("span",{className:g(T),children:n}),k&&b.jsx("span",{className:g(S),children:b.jsx(En,{})}),(u||"down"===f)&&b.jsx("span",{className:g(R),children:b.jsx(In,{})}),_e()&&b.jsx("span",{className:g(I),children:b.jsx(Rn,{})})]}),m&&"up"!==f&&b.jsx("span",{className:g(C),children:b.jsx("span",{children:m})})]}))}),xe&&b.jsx(gn.Provider,{value:{disableHover:le},children:b.jsx(bi.Provider,{value:{direction:me},children:u})}),"function"==typeof z?z():z,b.jsxs(xn.Provider,{value:{itemId:o,isDisabled:w},children:[B,null!==c&&b.jsx(ai,{icon:"favorites",isFavorited:c,"aria-label":c?"starred":"not starred",onClick:e=>ee(e,o),tabIndex:-1,actionId:"fav"})]})]});return b.jsxs(b.Fragment,{children:[b.jsx("li",Object.assign({className:g(P,w&&D.disabled,j&&D.ariaDisabled,Ne&&D.currentPath,d&&D.load,p&&D.loading,A&&"pf-m-focus",M&&D.danger,i),onMouseOver:()=>{j||le||(ye?we(!0):se(null))}},u&&!j&&{onKeyDown:Oe},{ref:ve,role:s?"menuitem":"none"},s&&{"aria-label":U},Y,{children:Ie})),q&&b.jsx(vi,Object.assign({},q,{triggerRef:ge}))]})},xi=t.forwardRef(((e,t)=>b.jsx(gi,Object.assign({},e,{innerRef:t}))));xi.displayName="MenuItem";const yi=e=>{var{children:n=null,className:i,isAriaMultiselectable:o=!1,"aria-label":a}=e,s=r(e,["children","className","isAriaMultiselectable","aria-label"]);const{role:l}=t.useContext(gn);return b.jsx("ul",Object.assign({role:l},"listbox"===l&&{"aria-multiselectable":o},{className:g(k,i),"aria-label":a},s,{children:n}))};yi.displayName="MenuList";const wi=e=>{var{children:n,className:i,onSelect:o,isOpen:a,toggle:s,shouldFocusToggleOnSelect:l=!1,onOpenChange:c,onToggleKeydown:d,isPlain:p,isScrollable:u,innerRef:f,ouiaId:m,ouiaSafe:h=!0,zIndex:v=9999,popperProps:x,onOpenChangeKeys:y=["Escape","Tab"],menuHeight:w,maxMenuHeight:O,shouldFocusFirstItemOnOpen:j=!1,shouldPreventScrollOnItemFocus:N=!0,focusTimeoutDelay:C=0}=e,S=r(e,["children","className","onSelect","isOpen","toggle","shouldFocusToggleOnSelect","onOpenChange","onToggleKeydown","isPlain","isScrollable","innerRef","ouiaId","ouiaSafe","zIndex","popperProps","onOpenChangeKeys","menuHeight","maxMenuHeight","shouldFocusFirstItemOnOpen","shouldPreventScrollOnItemFocus","focusTimeoutDelay"]);const _=t.useRef(void 0),E=t.useRef(void 0),I=Ge(Oi.displayName,m,h),T=f||_,R="function"==typeof s||"function"!=typeof s&&!s.toggleRef?E:null==s?void 0:s.toggleRef,k=t.useRef(a);t.useEffect((()=>{!1===k.current&&!0===a&&j&&setTimeout((()=>{var e;const t=null===(e=null==T?void 0:T.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({preventScroll:N})}),C),k.current=a}),[a]),t.useEffect((()=>{const e=e=>{var t,n,i,o;a&&c&&((null===(t=T.current)||void 0===t?void 0:t.contains(e.target))||(null===(n=R.current)||void 0===n?void 0:n.contains(e.target)))&&y.includes(e.key)&&(c(!1),null===(i=R.current)||void 0===i||i.focus()),(null===(o=R.current)||void 0===o?void 0:o.contains(e.target))&&(d?d(e):a&&vn(e,T))},t=e=>{var t,n;a&&c&&!(null===(t=null==R?void 0:R.current)||void 0===t?void 0:t.contains(e.target))&&a&&!(null===(n=T.current)||void 0===n?void 0:n.contains(e.target))&&c(!1)};return window.addEventListener("keydown",e),window.addEventListener("click",t),()=>{window.removeEventListener("keydown",e),window.removeEventListener("click",t)}}),[a,T,R,c,y,d,N,j,C]);const P=void 0!==O||void 0!==w||u,L=b.jsx(wn,Object.assign({className:g(i),ref:T,onSelect:(e,t)=>{var n;o&&o(e,t),l&&(null===(n=R.current)||void 0===n||n.focus())},isPlain:p,isScrollable:P},S,I,{children:b.jsx(Nn,{menuHeight:w,maxMenuHeight:O,children:n})}));return b.jsx(mn,Object.assign({trigger:"function"==typeof s?s(R):s.toggleNode,triggerRef:R,popper:L,popperRef:T,isVisible:a,zIndex:v},x))},Oi=t.forwardRef(((e,t)=>b.jsx(wi,Object.assign({innerRef:t},e))));Oi.displayName="Dropdown";const ji=e=>{var{children:t,className:n,description:i,isDisabled:o,isAriaDisabled:a,value:s,onClick:l,ouiaId:c,ouiaSafe:d,innerRef:p,tooltipProps:u}=e,f=r(e,["children","className","description","isDisabled","isAriaDisabled","value","onClick","ouiaId","ouiaSafe","innerRef","tooltipProps"]);const m=Ge(Ni.displayName,c,d);return b.jsx(xi,Object.assign({className:g(n),description:i,isDisabled:o,isAriaDisabled:a,itemId:s,onClick:l,tooltipProps:u,ref:p},m,f,{children:t}))},Ni=t.forwardRef(((e,t)=>b.jsx(ji,Object.assign({},e,{innerRef:t}))));Ni.displayName="DropdownItem";const Ci=e=>{var{children:t,className:n}=e,i=r(e,["children","className"]);return b.jsx(yi,Object.assign({className:g(n)},i,{children:t}))};Ci.displayName="DropdownList";var Si,_i={divider:"pf-v6-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",horizontal:"pf-m-horizontal",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"}(Si||(Si={}));const Ei=e=>{var{className:t,component:n=Si.hr,inset:i,orientation:o,role:a="separator"}=e,s=r(e,["className","component","inset","orientation","role"]);const l=n;return b.jsx(l,Object.assign({className:g(_i.divider,Le(i,_i),Le(o,_i),t)},"hr"!==n&&{role:a},s))};Ei.displayName="Divider";var Ii={menuToggle:"pf-v6-c-menu-toggle",menuToggleButton:"pf-v6-c-menu-toggle__button",menuToggleControls:"pf-v6-c-menu-toggle__controls",menuToggleCount:"pf-v6-c-menu-toggle__count",menuToggleIcon:"pf-v6-c-menu-toggle__icon",menuToggleStatusIcon:"pf-v6-c-menu-toggle__status-icon",menuToggleText:"pf-v6-c-menu-toggle__text",menuToggleToggleIcon:"pf-v6-c-menu-toggle__toggle-icon",modifiers:{primary:"pf-m-primary",secondary:"pf-m-secondary",fullHeight:"pf-m-full-height",fullWidth:"pf-m-full-width",plain:"pf-m-plain",circle:"pf-m-circle",expanded:"pf-m-expanded",disabled:"pf-m-disabled",small:"pf-m-small",success:"pf-m-success",warning:"pf-m-warning",danger:"pf-m-danger",settings:"pf-m-settings",placeholder:"pf-m-placeholder",splitButton:"pf-m-split-button",standalone:"pf-m-standalone",typeahead:"pf-m-typeahead",text:"pf-m-text",avatar:"pf-m-avatar"}};const Ti=H({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,svgClassName:void 0});var Ri,ki;!function(e){e.success="success",e.danger="danger",e.warning="warning"}(Ri||(Ri={})),function(e){e.default="default",e.sm="sm"}(ki||(ki={}));class Pi extends t.Component{constructor(){super(...arguments),this.displayName="MenuToggleBase",this.state={ouiaStateId:Xe(Li.displayName,this.props.variant)}}render(){const e=this.props,{children:n,className:i,icon:o,badge:a,isExpanded:s,isDisabled:l,isFullHeight:c,isFullWidth:d,isPlaceholder:p,isCircle:u,isSettings:f,splitButtonItems:m,variant:h,status:v,statusIcon:x,innerRef:y,onClick:w,"aria-label":O,ouiaId:j,ouiaSafe:N,size:C}=e,S=r(e,["children","className","icon","badge","isExpanded","isDisabled","isFullHeight","isFullWidth","isPlaceholder","isCircle","isSettings","splitButtonItems","variant","status","statusIcon","innerRef","onClick","aria-label","ouiaId","ouiaSafe","size"]),_="plain"===h,E="plainText"===h,I="typeahead"===h,T=qe(Li.displayName,null!=j?j:this.state.ouiaStateId,N);let R=x;if(!x)switch(v){case Ri.success:R=b.jsx(z,{});break;case Ri.warning:R=b.jsx($,{});break;case Ri.danger:R=b.jsx(V,{})}const k=b.jsxs("span",{className:g(Ii.menuToggleControls),children:[void 0!==v&&b.jsx("span",{className:g(Ii.menuToggleStatusIcon),children:R}),b.jsx("span",{className:g(Ii.menuToggleToggleIcon),children:b.jsx(Ti,{})})]}),P=b.jsxs(b.Fragment,{children:[(o||f)&&b.jsx("span",{className:g(Ii.menuToggleIcon),children:f?b.jsx(Zn,{}):o}),I?n:n&&b.jsx("span",{className:g(Ii.menuToggleText),children:n}),t.isValidElement(a)&&b.jsx("span",{className:g(Ii.menuToggleCount),children:a}),I?b.jsx("button",Object.assign({type:"button",className:g(Ii.menuToggleButton),"aria-expanded":s,onClick:w,"aria-label":O||"Menu toggle",tabIndex:-1},T,{children:k})):!_&&k]}),L=g(Ii.menuToggle,s&&Ii.modifiers.expanded,"primary"===h&&Ii.modifiers.primary,"secondary"===h&&Ii.modifiers.secondary,v&&Ii.modifiers[v],(_||E)&&Ii.modifiers.plain,E&&"pf-m-text",c&&Ii.modifiers.fullHeight,d&&Ii.modifiers.fullWidth,l&&Ii.modifiers.disabled,p&&Ii.modifiers.placeholder,f&&Ii.modifiers.settings,C===ki.sm&&Ii.modifiers.small,i),D=Object.assign(Object.assign({children:P},l&&{disabled:!0}),S);return I?b.jsx("div",Object.assign({ref:y,className:g(L,Ii.modifiers.typeahead)},D)):m?b.jsxs("div",{ref:y,className:g(L,Ii.modifiers.splitButton),children:[m,b.jsxs("button",Object.assign({className:g(Ii.menuToggleButton,n&&Ii.modifiers.text),type:"button","aria-expanded":s,"aria-label":O,disabled:l,onClick:w},S,T,{children:[n&&b.jsx("span",{className:g(Ii.menuToggleText),children:n}),k]}))]}):b.jsx("button",Object.assign({className:g(L,u&&_&&Ii.modifiers.circle),type:"button","aria-label":O,"aria-expanded":s,ref:y,disabled:l,onClick:w},D,T))}}Pi.defaultProps={className:"",isExpanded:!1,isDisabled:!1,isFullWidth:!1,isFullHeight:!1,isPlaceholder:!1,isCircle:!1,size:"default",ouiaSafe:!0};const Li=t.forwardRef(((e,t)=>b.jsx(Pi,Object.assign({innerRef:t},e))));Li.displayName="MenuToggle";const Di=H({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,svgClassName:void 0}),Ai=e=>{var{items:n,isDisabled:i,rowData:o,extraData:a,actionsToggle:s,popperProps:l={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]=t.useState(!1),h=()=>{m(!f)},v=(e,t)=>{t&&(e.preventDefault(),t(e,a&&a.rowIndex,o,a))};return b.jsxs(t.Fragment,{children:[n.filter((e=>e.isOutsideDropdown)).map(((e,n)=>{var{title:o,itemKey:a,onClick:s,isOutsideDropdown:l}=e,c=r(e,["title","itemKey","onClick","isOutsideDropdown"]);return"string"==typeof o?t.createElement(oi,Object.assign({onClick:e=>v(e,s)},c,{isDisabled:i,key:a||`outside_dropdown_${n}`,"data-key":a||`outside_dropdown_${n}`}),o):t.cloneElement(o,Object.assign({onClick:s,isDisabled:i},c))})),b.jsx(Oi,Object.assign({isOpen:f,onOpenChange:p?void 0:e=>m(e),toggle:e=>s?s({onToggle:h,isOpen:f,isDisabled:i,toggleRef:e}):b.jsx(Li,{"aria-label":"Kebab toggle",ref:e,onClick:h,isExpanded:f,isDisabled:i,variant:"plain",icon:b.jsx(Di,{})})},o&&o.actionProps,{ref:c},u,{popperProps:l,children:b.jsx(Ci,{children:n.filter((e=>!e.isOutsideDropdown)).map(((e,n)=>{var{title:i,itemKey:o,onClick:a,tooltipProps:s,isSeparator:l,shouldCloseOnClick:c=!0}=e,p=r(e,["title","itemKey","onClick","tooltipProps","isSeparator","shouldCloseOnClick"]);if(l)return b.jsx(Ei,{"data-key":o||n},o||n);const u=t.createElement(Ni,Object.assign({onClick:e=>{v(e,a),c&&h()}},p,{key:o||n,"data-key":o||n,ref:0===n?d:void 0}),i);return(null==s?void 0:s.content)?b.jsx(vi,Object.assign({},s,{children:u}),o||n):u}))})}))]})},Mi=t.forwardRef(((e,t)=>b.jsx(Ai,Object.assign({},e,{innerRef:t}))));Mi.displayName="ActionsColumn";const Fi=H({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,svgClassName:void 0});var Bi={modifiers:{fixed:"pf-m-fixed",stickyHeader:"pf-m-sticky-header",nestedColumnHeader:"pf-m-nested-column-header",plain:"pf-m-plain",striped:"pf-m-striped",expandable:"pf-m-expandable",stripedEven:"pf-m-striped-even",ghostRow:"pf-m-ghost-row",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",center:"pf-m-center",help:"pf-m-help",favorite:"pf-m-favorite",borderRight:"pf-m-border-right",borderLeft:"pf-m-border-left",action:"pf-m-action",noBorderRows:"pf-m-no-border-rows",expanded:"pf-m-expanded",clickable:"pf-m-clickable",selected:"pf-m-selected",firstCellOffsetReset:"pf-m-first-cell-offset-reset",dragOver:"pf-m-drag-over",animateExpand:"pf-m-animate-expand",noAnimateExpand:"pf-m-no-animate-expand",truncate:"pf-m-truncate",wrap:"pf-m-wrap",nowrap:"pf-m-nowrap",fitContent:"pf-m-fit-content",breakWord:"pf-m-break-word",standalone:"pf-m-standalone",favorited:"pf-m-favorited",noPadding:"pf-m-no-padding",noBackground:"pf-m-no-background",compact:"pf-m-compact",borderRow:"pf-m-border-row",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-v6-c-table",tableAction:"pf-v6-c-table__action",tableButton:"pf-v6-c-table__button",tableButtonContent:"pf-v6-c-table__button-content",tableCaption:"pf-v6-c-table__caption",tableCheck:"pf-v6-c-table__check",tableColumnHelp:"pf-v6-c-table__column-help",tableColumnHelpAction:"pf-v6-c-table__column-help-action",tableCompoundExpansionToggle:"pf-v6-c-table__compound-expansion-toggle",tableControlRow:"pf-v6-c-table__control-row",tableDraggable:"pf-v6-c-table__draggable",tableExpandableRow:"pf-v6-c-table__expandable-row",tableExpandableRowContent:"pf-v6-c-table__expandable-row-content",tableFavorite:"pf-v6-c-table__favorite",tableInlineEditAction:"pf-v6-c-table__inline-edit-action",tableSort:"pf-v6-c-table__sort",tableSortIndicator:"pf-v6-c-table__sort-indicator",tableSubhead:"pf-v6-c-table__subhead",tableTbody:"pf-v6-c-table__tbody",tableTd:"pf-v6-c-table__td",tableText:"pf-v6-c-table__text",tableTh:"pf-v6-c-table__th",tableThead:"pf-v6-c-table__thead",tableToggle:"pf-v6-c-table__toggle",tableToggleIcon:"pf-v6-c-table__toggle-icon",tableTr:"pf-v6-c-table__tr"};const Hi=e=>{var{className:n="",children:i=null,isOpen:o,onToggle:a,variant:s}=e,l=r(e,["className","children","isOpen","onToggle","variant"]);return b.jsxs(t.Fragment,{children:[void 0!==o&&b.jsx(oi,Object.assign({className:g(n,o&&Bi.modifiers.expanded),size:"compact"===s?"sm":void 0},l,{variant:"plain","aria-label":l["aria-label"]||"Details",onClick:a,"aria-expanded":o,icon:b.jsx("div",{className:g(Bi.tableToggleIcon),children:b.jsx(Fi,{})})})),i]})};Hi.displayName="CollapseColumn";const zi=H({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,svgClassName:void 0}),Vi=e=>{var{className:t,onClick:n,"aria-label":i,id:o}=e,a=r(e,["className","onClick","aria-label","id"]);return b.jsx(oi,Object.assign({id:o,variant:"plain",className:t,type:"button","aria-label":i||"Draggable row draggable button",onClick:n},a,{icon:b.jsx(zi,{})}))};Vi.displayName="DraggableCell";const $i=e=>{var{children:n,className:i,onSelect:o,isOpen:a,selected:s,toggle:l,shouldFocusToggleOnSelect:c=!1,shouldFocusFirstItemOnOpen:d=!1,onOpenChange:p,onOpenChangeKeys:u=["Escape","Tab"],onToggleKeydown:f,variant:m,isPlain:h,innerRef:v,zIndex:x=9999,role:y="listbox",popperProps:w,menuHeight:O,maxMenuHeight:j,isScrollable:N,shouldPreventScrollOnItemFocus:C=!0,focusTimeoutDelay:S=0}=e,_=r(e,["children","className","onSelect","isOpen","selected","toggle","shouldFocusToggleOnSelect","shouldFocusFirstItemOnOpen","onOpenChange","onOpenChangeKeys","onToggleKeydown","variant","isPlain","innerRef","zIndex","role","popperProps","menuHeight","maxMenuHeight","isScrollable","shouldPreventScrollOnItemFocus","focusTimeoutDelay"]);const E=t.useRef(void 0),I=t.useRef(void 0),T=v||E,R="function"==typeof l||"function"!=typeof l&&!l.toggleRef?I:null==l?void 0:l.toggleRef,k=t.useRef(a);t.useEffect((()=>{!1===k.current&&!0===a&&d&&setTimeout((()=>{var e;const t=null===(e=null==T?void 0:T.current)||void 0===e?void 0:e.querySelector("li button:not(:disabled),li input:not(:disabled)");t&&t.focus({preventScroll:C})}),S),k.current=a}),[a]),t.useEffect((()=>{const e=e=>{var t,n,i,o;a&&p&&((null===(t=T.current)||void 0===t?void 0:t.contains(e.target))||(null===(n=R.current)||void 0===n?void 0:n.contains(e.target)))&&u.includes(e.key)&&(e.preventDefault(),p(!1),null===(i=R.current)||void 0===i||i.focus()),(null===(o=R.current)||void 0===o?void 0:o.contains(e.target))&&(f?f(e):a&&"typeahead"!==m&&vn(e,T))},t=e=>{var t,n;a&&p&&!(null===(t=null==R?void 0:R.current)||void 0===t?void 0:t.contains(e.target))&&a&&!(null===(n=T.current)||void 0===n?void 0:n.contains(e.target))&&p(!1)};return window.addEventListener("keydown",e),window.addEventListener("click",t),()=>{window.removeEventListener("keydown",e),window.removeEventListener("click",t)}}),[a,T,R,p,u,f,C,d,S]);const P=b.jsx(wn,Object.assign({role:y,className:g(i),ref:T,onSelect:(e,t)=>{o&&o(e,t),c&&R.current.focus()},isPlain:h,selected:s,isScrollable:null!=N?N:void 0!==O||void 0!==j},qe(Wi.displayName,void 0!==_.ouiaId?_.ouiaId:Xe(Wi.displayName),void 0===_.ouiaSafe||_.ouiaSafe),_,{children:b.jsx(Nn,{menuHeight:O,maxMenuHeight:j,children:n})}));return b.jsx(mn,Object.assign({trigger:"function"==typeof l?l(R):l.toggleNode,triggerRef:R,popper:P,popperRef:T,isVisible:a,zIndex:x},w))},Wi=t.forwardRef(((e,t)=>b.jsx($i,Object.assign({innerRef:t},e))));Wi.displayName="Select";const Ui=e=>{var{children:t,className:n,isAriaMultiselectable:i=!1}=e,o=r(e,["children","className","isAriaMultiselectable"]);return b.jsx(yi,Object.assign({isAriaMultiselectable:i,className:g(n)},o,{children:t}))};Ui.displayName="SelectList";var qi="pf-v6-c-inline-edit__action",Gi="pf-v6-c-inline-edit__group",Ki="pf-v6-c-inline-edit__input",Xi="pf-v6-c-inline-edit__value",Yi={iconGroup:"pf-m-icon-group",enableEditable:"pf-m-enable-editable",inlineEditable:"pf-m-inline-editable"},Zi="pf-v6-c-form__helper-text";const Ji=({value:e,rowIndex:n,cellIndex:i,onSelect:o=(()=>{}),clearSelection:r,isOpen:a=!1,isPlaceholder:s=!1,onToggle:l=(()=>{}),selections:c=[""],options:d=[],props:p})=>{const u=b.jsx(Wi,Object.assign({onSelect:(e,t)=>{o(e,t,n,i,s)}},r&&{onClear:e=>{r(e,n,i)}},{isOpen:a,selected:c,toggle:e=>b.jsx(Li,{ref:e,onClick:l,isExpanded:a,isPlaceholder:s,children:a?"Expanded":"Collapsed"})},p.editableSelectProps,{children:b.jsx(Ui,{children:d})}));return b.jsxs(t.Fragment,{children:[b.jsx("div",{className:Xi,children:Array.isArray(e)?e.join(", "):e}),b.jsxs("div",{className:Ki,children:[u,b.jsx("div",{className:g(Zi),"aria-live":"polite",children:p.errorText})]})]})};Ji.displayName="EditableSelectInputCell";var Qi={formControl:"pf-v6-c-form-control",formControlIcon:"pf-v6-c-form-control__icon",formControlUtilities:"pf-v6-c-form-control__utilities",modifiers:{textarea:"pf-m-textarea",success:"pf-m-success",warning:"pf-m-warning",error:"pf-m-error",readonly:"pf-m-readonly",plain:"pf-m-plain",expanded:"pf-m-expanded",disabled:"pf-m-disabled",status:"pf-m-status",icon:"pf-m-icon",placeholder:"pf-m-placeholder",resizeVertical:"pf-m-resize-vertical",resizeHorizontal:"pf-m-resize-horizontal",resizeBoth:"pf-m-resize-both"}};const eo={success:z,error:V,warning:$},to=e=>{var{status:t,customIcon:n,className:i}=e,o=r(e,["status","customIcon","className"]);const a=t&&eo[t];return b.jsx("span",Object.assign({className:g(Qi.formControlIcon,t&&Qi.modifiers.status,i)},o,{children:n||b.jsx(a,{})}))};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 oo extends t.Component{constructor(e){super(e),this.inputRef=t.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&&Be(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:Xe(oo.displayName)}}componentDidMount(){if(this.props.isLeftTruncated||this.props.isStartTruncated){const e=this.props.innerRef||this.inputRef;this.observer=((e,t,n)=>{let i;if(Me){const{ResizeObserver:n}=window;if(e&&n){const o=new n((e=>{window.requestAnimationFrame((()=>{Array.isArray(e)&&e.length>0&&t()}))}));o.observe(e),i=()=>o.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:a,validated:s,onChange:l,onFocus:c,onBlur:d,isLeftTruncated:p,isStartTruncated:u,isExpanded:f,expandedProps:m,readOnly:h,readOnlyVariant:v,isRequired:x,isDisabled:y,customIcon:w,ouiaId:O,ouiaSafe:j}=e,N=r(e,["innerRef","className","type","value","placeholder","validated","onChange","onFocus","onBlur","isLeftTruncated","isStartTruncated","isExpanded","expandedProps","readOnly","readOnlyVariant","isRequired","isDisabled","customIcon","ouiaId","ouiaSafe"]),C=["success","error","warning"].includes(s),S=m?{"aria-expanded":null==m?void 0:m.isExpanded,"aria-controls":null==m?void 0:m.ariaControls,role:"combobox"}:{};return b.jsxs("span",{className:g(Qi.formControl,v&&Qi.modifiers.readonly,"plain"===v&&Qi.modifiers.plain,y&&Qi.modifiers.disabled,(f||(null==m?void 0:m.isExpanded))&&Qi.modifiers.expanded,w&&Qi.modifiers.icon,C&&Qi.modifiers[s],n),children:[b.jsx("input",Object.assign({},N,{onFocus:this.onFocus,onBlur:this.onBlur,onChange:this.handleChange,type:i,value:this.sanitizeInputValue(o),"aria-invalid":N["aria-invalid"]?N["aria-invalid"]:s===W.error},S,{required:x,disabled:y,readOnly:!!v||h,ref:t||this.inputRef,placeholder:a},qe(ro.displayName,void 0!==O?O:this.state.ouiaStateId,j))),(w||C)&&b.jsxs("span",{className:g(Qi.formControlUtilities),children:[w&&b.jsx(to,{customIcon:w}),C&&b.jsx(to,{status:s})]})]})}}oo.displayName="TextInputBase",oo.defaultProps={"aria-label":null,isRequired:!1,validated:"default",isDisabled:!1,isExpanded:!1,type:no.text,isLeftTruncated:!1,isStartTruncated:!1,onChange:()=>{},ouiaSafe:!0};const ro=t.forwardRef(((e,t)=>b.jsx(oo,Object.assign({},e,{innerRef:t}))));ro.displayName="TextInput";const ao=({value:e,rowIndex:n,cellIndex:i,props:o,handleTextInputChange:r,inputAriaLabel:a,isDisabled:s=!1})=>b.jsxs(t.Fragment,{children:[b.jsx("div",{className:Xi,children:e}),b.jsxs("div",{className:Ki,children:[b.jsx(ro,{isDisabled:s,value:void 0!==o.editableValue?o.editableValue:e,validated:!1!==o.isValid?"default":"error",type:"text",onChange:(e,t)=>{r(t,e,n,i)},"aria-label":a}),b.jsx("div",{className:g(Zi),"aria-live":"polite",children:o.errorText})]})]});ao.displayName="EditableTextCell";const so=e=>{var{children:t=null,hasNoBackground:n}=e,i=r(e,["children","hasNoBackground"]);return b.jsx("div",Object.assign({},i,{className:g(Bi.tableExpandableRowContent,n&&Bi.modifiers.noBackground),children:t}))};so.displayName="ExpandableRowContent";const lo=H({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,svgClassName:void 0});var co={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"},po="pf-v6-c-popover",uo="pf-v6-c-popover__arrow",fo="pf-v6-c-popover__body",mo="pf-v6-c-popover__close",ho="pf-v6-c-popover__content",vo="pf-v6-c-popover__footer",bo="pf-v6-c-popover__header",go="pf-v6-c-popover__title",xo="pf-v6-c-popover__title-icon",yo="pf-v6-c-popover__title-text";const wo=t.createContext({}),Oo=e=>{var{className:t=null,children:n}=e,i=r(e,["className","children"]);return b.jsx("div",Object.assign({className:g(ho,t)},i,{children:n}))};Oo.displayName="PopoverContent";const jo=e=>{var{children:t,id:n,className:i}=e,o=r(e,["children","id","className"]);return b.jsx("div",Object.assign({className:g(fo,i),id:n},o,{children:t}))};jo.displayName="PopoverBody";const No=e=>{var{children:t,className:n}=e,i=r(e,["children","className"]);return b.jsx("span",Object.assign({className:g(xo,n)},i,{children:t}))};No.displayName="PopoverHeaderIcon";const Co=e=>{var{children:t,className:n,headingLevel:i}=e,o=r(e,["children","className","headingLevel"]);const a=i;return b.jsx(a,Object.assign({className:g(yo,n)},o,{children:t}))};Co.displayName="PopoverHeaderText";const So=e=>{var{children:t,icon:n,className:i,titleHeadingLevel:o="h6",alertSeverityVariant:a,id:s,alertSeverityScreenReaderText:l}=e,c=r(e,["children","icon","className","titleHeadingLevel","alertSeverityVariant","id","alertSeverityScreenReaderText"]);return b.jsx("header",Object.assign({className:g(bo,i)},c,{children:b.jsxs("div",{className:g(go),id:s,children:[n&&b.jsx(No,{children:n}),b.jsxs(Co,{headingLevel:o,children:[a&&l&&b.jsx("span",{className:"pf-v6-screen-reader",children:l}),t]})]})}))};So.displayName="PopoverHeader";const _o=e=>{var{children:t,className:n=""}=e,i=r(e,["children","className"]);return b.jsx("footer",Object.assign({className:g(vo,n)},i,{children:t}))};_o.displayName="PopoverFooter";const Eo=H({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,svgClassName:void 0}),Io=e=>{var{onClose:t=(()=>{})}=e,n=r(e,["onClose"]);return b.jsx("div",{className:g(mo),children:b.jsx(oi,Object.assign({onClick:t,variant:"plain","aria-label":!0},n,{style:{pointerEvents:"auto"},icon:b.jsx(Eo,{})}))})};Io.displayName="PopoverCloseButton";const To=e=>{var{className:t=""}=e,n=r(e,["className"]);return b.jsx("div",Object.assign({className:g(uo,t)},n))};To.displayName="PopoverArrow";const Ro={name:"--pf-v6-c-popover--MaxWidth",value:"none",var:"var(--pf-v6-c-popover--MaxWidth)"},ko={name:"--pf-v6-c-popover--MinWidth",value:"auto",var:"var(--pf-v6-c-popover--MinWidth)"};var Po;!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"}(Po||(Po={}));const Lo={custom:co.custom,info:co.info,success:co.success,warning:co.warning,danger:co.danger},Do=e=>{var{children:n,position:i="top",enableFlip:o=!0,className:a="",isVisible:s=null,shouldClose:l=(()=>null),shouldOpen:c=(()=>null),"aria-label":d="",bodyContent:p,headerContent:u=null,headerComponent:f="h6",headerIcon:m=null,alertSeverityVariant:h,alertSeverityScreenReaderText:v,footerContent:x=null,appendTo:y=(()=>document.body),hideOnOutsideClick:w=!0,onHide:O=(()=>null),onHidden:j=(()=>null),onShow:N=(()=>null),onShown:C=(()=>null),onMount:S=(()=>null),zIndex:_=9999,triggerAction:E="click",minWidth:I=ko&&ko.value,maxWidth:T=Ro&&Ro.value,closeBtnAriaLabel:R="Close",showClose:k=!0,distance:P=25,flipBehavior:L=["top","bottom","left","right","top-start","top-end","bottom-start","bottom-end","left-start","left-end","right-start","right-end"],animationDuration:D=300,id:A,withFocusTrap:M,triggerRef:F,hasNoPadding:B=!1,hasAutoWidth:H=!1,elementToFocus:z}=e,V=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 $=A||ke(),W=null!==s,[U,G]=t.useState(!1),[K,X]=t.useState(Boolean(M)),Y=t.useRef(null);t.useEffect((()=>{S()}),[]),t.useEffect((()=>{W&&(s?Z(void 0,!0):J())}),[s,W]);const Z=(e,t)=>{e&&N(e),G(!0),!1!==M&&t&&X(!0)},J=e=>{e&&O(e),G(!1)},Q={top:co.top,bottom:co.bottom,left:co.left,right:co.right,"top-start":co.topLeft,"top-end":co.topRight,"bottom-start":co.bottomLeft,"bottom-end":co.bottomRight,"left-start":co.leftTop,"left-end":co.leftBottom,"right-start":co.rightTop,"right-end":co.rightBottom},ee=I!==ko.value,te=T!==Ro.value,ne=e=>{W?c(e,Z):Z(e,!1)},ie=e=>{W?l(e,J):J(e)},oe=b.jsxs(Re,Object.assign({ref:Y,active:K,focusTrapOptions:{returnFocusOnDeactivate:!1!==M,clickOutsideDeactivates:!0,initialFocus:z||void 0,checkCanFocusTrap:e=>new Promise((t=>{const n=setInterval((()=>{e.every((e=>"hidden"!==getComputedStyle(e).visibility))&&(clearInterval(n),t())}),10),i=setTimeout((()=>{clearInterval(n),t()}),5e3);t._cleanup=()=>{clearInterval(n),clearTimeout(i)}})),tabbableOptions:{displayCheck:"none"},fallbackFocus:()=>{let e=null;return document&&document.activeElement&&(e=document.activeElement),e}},preventScrollOnDeactivate:!0,className:g(po,h&&Lo[h],B&&co.noPadding,H&&co.widthAuto,a),role:"dialog","aria-modal":"true","aria-label":u?void 0:d,"aria-labelledby":u?`popover-${$}-header`:void 0,"aria-describedby":`popover-${$}-body`,onMouseDown:()=>{K&&X(!1)},style:{minWidth:ee?I:null,maxWidth:te?T:null}},V,{children:[b.jsx(To,{}),b.jsxs(Oo,{children:[k&&"click"===E&&b.jsx(Io,{onClose:e=>{e.stopPropagation(),W?l(e,J):J(e)},"aria-label":R}),u&&b.jsx(So,{id:`popover-${$}-header`,icon:m,alertSeverityVariant:h,alertSeverityScreenReaderText:v||`${h} alert:`,titleHeadingLevel:f,children:"function"==typeof u?u(J):u}),b.jsx(jo,{id:`popover-${$}-body`,children:"function"==typeof p?p(J):p}),x&&b.jsx(_o,{id:`popover-${$}-footer`,children:"function"==typeof x?x(J):x})]})]}));return b.jsx(wo.Provider,{value:{headerComponent:f},children:b.jsx(mn,{trigger:n,triggerRef:F,popper:oe,popperRef:Y,minWidth:I,appendTo:y,isVisible:U,onMouseEnter:"hover"===E&&ne,onMouseLeave:"hover"===E&&ie,onPopperMouseEnter:"hover"===E&&ne,onPopperMouseLeave:"hover"===E&&ie,onFocus:"hover"===E&&(e=>{W?c(e,Z):Z(e,!1)}),onBlur:"hover"===E&&(e=>{W?l(e,J):J(e)}),positionModifiers:Q,distance:P,placement:i,onTriggerClick:"click"===E&&(e=>{W?U?l(e,J):c(e,Z):U?J(e):Z(e,!0)}),onDocumentClick:(e,t,n)=>{if(w&&U){const i=n&&n.contains(e.target),o=t&&t.contains(e.target);if(i||o)return;W?l(e,J):J(e)}},onDocumentKeyDown:e=>{e.key===q&&U&&(W?l(e,J):J(e))},enableFlip:o,zIndex:_,flipBehavior:L,animationDuration:D,onHidden:j,onShown:C,onHide:()=>X(!1)})})};var Ao,Mo;Do.displayName="Popover",e.TableTextVariant=void 0,(Ao=e.TableTextVariant||(e.TableTextVariant={})).div="div",Ao.nav="nav",e.WrapModifier=void 0,(Mo=e.WrapModifier||(e.WrapModifier={})).wrap="wrap",Mo.nowrap="nowrap",Mo.truncate="truncate",Mo.breakWord="breakWord",Mo.fitContent="fitContent";const Fo=e=>{var{children:n=null,className:i="",variant:o="span",wrapModifier:a=null,tooltip:s="",tooltipProps:l={},onMouseEnter:c=(()=>{}),focused:d=!1,tooltipHasDefaultBehavior:p=!1}=e,u=r(e,["children","className","variant","wrapModifier","tooltip","tooltipProps","onMouseEnter","focused","tooltipHasDefaultBehavior"]);const f=o,m=t.createRef(),[h,v]=t.useState(s),x=b.jsx(f,Object.assign({ref:m,onMouseEnter:p?void 0:e=>{e.target.offsetWidth<e.target.scrollWidth?v(s||e.target.innerText):v(""),c(e)},className:g(i,a&&Bi.modifiers[a],Bi.tableText)},u,{children:n}));return t.useEffect((()=>{var e;p||(d&&(e=m.current).offsetWidth<e.scrollWidth?v(s||e.innerText):v(""))}),[d,p]),""!==h?b.jsx(vi,Object.assign({triggerRef:m,content:h},!p&&{isVisible:!0},l,{children:x})):x};Fo.displayName="TableText";const Bo=({children:e,info:t,className:n,variant:i="tooltip",popoverProps:o,tooltipProps:r,ariaLabel:a})=>b.jsxs("div",{className:g(Bi.tableColumnHelp,n),children:["string"==typeof e?b.jsx(Fo,{children:e}):e,b.jsx("span",{className:g(Bi.tableColumnHelpAction),children:"tooltip"===i?b.jsx(vi,Object.assign({content:t},r,{children:b.jsx(oi,{variant:"plain",hasNoPadding:!0,"aria-label":a||"string"==typeof t&&t||"More info",icon:b.jsx(lo,{})})})):b.jsx(Do,Object.assign({bodyContent:t},o,{children:b.jsx(oi,{variant:"plain",hasNoPadding:!0,"aria-label":a||"string"==typeof t&&t||"More info",icon:b.jsx(lo,{})})}))})]});Bo.displayName="HeaderCellInfoWrapper";var Ho,zo={grid:"pf-m-grid",animateExpand:"pf-m-animate-expand",expanded:"pf-m-expanded",expandable:"pf-m-expandable",selected:"pf-m-selected",compact:"pf-m-compact",action:"pf-m-action",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"},Vo={treeView:"pf-m-tree-view",noInset:"pf-m-no-inset",treeViewGrid:"pf-m-tree-view-grid",borderRight:"pf-m-border-right",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"},$o="pf-v6-c-table__check",Wo="pf-v6-c-table__toggle",Uo="pf-v6-c-table__toggle-icon",qo="pf-v6-c-table__tree-view-details-toggle",Go="pf-v6-c-table__tree-view-icon",Ko="pf-v6-c-table__tree-view-main",Xo="pf-v6-c-table__tree-view-text",Yo="pf-v6-c-table__tree-view-title-cell",Zo={standalone:"pf-m-standalone",disabled:"pf-m-disabled"},Jo="pf-v6-c-radio",Qo="pf-v6-c-radio__body",er="pf-v6-c-radio__description",tr="pf-v6-c-radio__input",nr="pf-v6-c-radio__label";class ir extends t.Component{constructor(e){super(e),this.handleChange=e=>{this.props.onChange(e,e.currentTarget.checked)},e.label||e["aria-label"]||console.error("Radio:","Radio requires an aria-label to be specified"),this.state={ouiaStateId:Xe(ir.displayName),descriptionId:ke("pf-radio-description")}}render(){const e=this.props,{"aria-label":t,"aria-describedby":n,checked:i,className:o,inputClassName:a,defaultChecked:s,isLabelWrapped:l,labelPosition:c="end",isChecked:d,isDisabled:p,isValid:u,label:f,onChange:m,description:h,body:v,ouiaId:x,ouiaSafe:y=!0,component:w}=e,O=r(e,["aria-label","aria-describedby","checked","className","inputClassName","defaultChecked","isLabelWrapped","labelPosition","isChecked","isDisabled","isValid","label","onChange","description","body","ouiaId","ouiaSafe","component"]);let j;O.id||console.error("Radio:","id is required to make input accessible"),void 0!==n?j=""===n?void 0:n:h&&(j=this.state.descriptionId);const N=b.jsx("input",Object.assign({},O,{className:g(tr,a),type:"radio",onChange:this.handleChange,"aria-invalid":!u,"aria-describedby":j,disabled:p,checked:i||d},void 0===i&&{defaultChecked:s},!f&&{"aria-label":t},qe(ir.displayName,void 0!==x?x:this.state.ouiaStateId,y))),C=l&&!w||"label"===w,S=C?"span":"label",_=f?b.jsx(S,{className:g(nr,p&&Zo.disabled),htmlFor:C?void 0:O.id,children:f}):null,E=null!=w?w:C?"label":"div";return b.jsxs(E,{className:g(Jo,!f&&Zo.standalone,o),htmlFor:C?O.id:void 0,children:["start"===c?b.jsxs(b.Fragment,{children:[_,N]}):b.jsxs(b.Fragment,{children:[N,_]}),h&&b.jsx("span",{id:this.state.descriptionId,className:g(er),children:h}),v&&b.jsx("span",{className:g(Qo),children:v})]})}}ir.displayName="Radio",ir.defaultProps={className:"",isDisabled:!1,isValid:!0,onChange:()=>{}},e.RowSelectVariant=void 0,(Ho=e.RowSelectVariant||(e.RowSelectVariant={})).radio="radio",Ho.checkbox="checkbox";const or=n=>{var{children:i=null,className:o,onSelect:a=null,selectVariant:s,tooltip:l,tooltipProps:c,id:d,name:p}=n,u=r(n,["children","className","onSelect","selectVariant","tooltip","tooltipProps","id","name"]);const f=t.createRef(),m=Object.assign(Object.assign({},u),{id:d,ref:f,onChange:(e,t)=>{a&&a(e)}}),h=b.jsxs(t.Fragment,{children:[s===e.RowSelectVariant.checkbox?b.jsx(Hn,Object.assign({},m)):b.jsx(ir,Object.assign({},m,{name:p})),i]});return l?b.jsx(vi,Object.assign({triggerRef:f,content:l},c,{children:h})):h};or.displayName="SelectColumn";const rr=(t,{rowIndex:n,columnIndex:i,rowData:o,column:r,property:a,tooltip:s})=>{const{extraParams:{onSelect:l,selectVariant:c,allRowsSelected:d,isHeaderSelectDisabled:p}}=r,u={rowIndex:n,columnIndex:i,column:r,property:a};if(o&&o.hasOwnProperty("parent")&&!o.showSelect&&!o.fullWidth)return{component:"td",isVisible:!0};const f=void 0!==n?n:-1;const m=Object.assign(Object.assign(Object.assign({id:-1!==f?`select-${n}`:"select-all"},-1!==f?{isChecked:o&&!!o.selected,"aria-label":`Select row ${n}`}:{isChecked:d,"aria-label":"Select all rows"}),o&&(o.disableCheckbox||o.disableSelection)&&{isDisabled:!0,className:Dn}),!o&&p&&{isDisabled:!0});let h="check-all";return-1!==f&&c===e.RowSelectVariant.checkbox?h=`checkrow${n}`:-1!==f&&(h="radioGroup"),{className:g(Bi.tableCheck),component:-1!==f?"td":"th",isVisible:!o||!o.fullWidth,children:b.jsx(or,Object.assign({},m,{selectVariant:c,onSelect:function(e){const t=void 0===n?e.currentTarget.checked:!(o&&o.selected);l&&l(e,t,f,o,u)},name:h,tooltip:s,children:t}))}},ar=H({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,svgClassName:void 0}),sr=H({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,svgClassName:void 0}),lr=H({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,svgClassName:void 0});var cr="pf-v6-c-action-list",dr={icons:"pf-m-icons",vertical:"pf-m-vertical"};const pr=e=>{var{children:t,isIconList:n,className:i,isVertical:o=!1}=e,a=r(e,["children","isIconList","className","isVertical"]);return b.jsx("div",Object.assign({className:g(cr,n&&dr.icons,o&&dr.vertical,i)},a,{children:t}))};pr.displayName="ActionList";const ur=e=>{var{children:t,className:n}=e,i=r(e,["children","className"]);return b.jsx("div",Object.assign({className:g(`${cr}__item`,n)},i,{children:t}))};var fr;ur.displayName="ActionListItem",e.SortByDirection=void 0,(fr=e.SortByDirection||(e.SortByDirection={})).asc="asc",fr.desc="desc";const mr=n=>{var{children:i=null,className:o="",isSortedBy:a=!1,onSort:s=null,sortDirection:l="",type:c="button",tooltip:d,tooltipProps:p,tooltipHasDefaultBehavior:u,favoriteButtonProps:f}=n,m=r(n,["children","className","isSortedBy","onSort","sortDirection","type","tooltip","tooltipProps","tooltipHasDefaultBehavior","favoriteButtonProps"]);let h;const[v,x]=t.useState(!1);if(h=a?l===e.SortByDirection.asc?ar:sr:lr,f){const{favorited:e}=f,t=r(f,["favorited"]);return b.jsxs(pr,{isIconList:!0,children:[b.jsx(ur,{children:b.jsx(oi,Object.assign({variant:"plain",isFavorite:!0,isFavorited:e},t))}),b.jsx(ur,{children:b.jsx(oi,Object.assign({variant:"plain",icon:b.jsx("span",{className:g(Bi.tableSortIndicator),children:b.jsx(h,{})}),onClick:e=>s&&s(e)},m))})]})}return b.jsx("button",Object.assign({},m,{type:c,className:g(o,Bi.tableButton),onClick:e=>s&&s(e),onFocus:()=>x(!0),onBlur:()=>x(!1),children:b.jsxs("div",{className:g(o,Bi.tableButtonContent),children:[b.jsx(Fo,{tooltip:d,tooltipProps:p,tooltipHasDefaultBehavior:u,focused:v,children:i}),b.jsx("span",{className:g(Bi.tableSortIndicator),children:b.jsx(h,{})})]})}))};mr.displayName="SortColumn";const hr=e=>()=>{var t;return vr(b.jsx(Xn,{}),{columnIndex:e.columnIndex,className:Bi.tableFavorite,ariaLabel:null!==(t=e.ariaLabel)&&void 0!==t?t:"Sort favorites",column:{extraParams:{sortBy:e.sortBy,onSort:e.onSort,favoriteButtonProps:e.favoriteButtonProps}},tooltip:e.tooltip,tooltipProps:e.tooltipProps,tooltipHasDefaultBehavior:!0})},vr=(t,{columnIndex:n,column:i,property:o,className:r,ariaLabel:a,tooltip:s,tooltipProps:l,tooltipHasDefaultBehavior:c})=>{const{extraParams:{sortBy:d,onSort:p,favoriteButtonProps:u}}=i,f={columnIndex:n,column:i,property:o},m=d&&n===d.index;return Object.assign(Object.assign({className:g(Bi.tableSort,m&&Bi.modifiers.selected,r)},m&&{"aria-sort":`${d.direction}ending`}),{children:b.jsx(mr,{isSortedBy:m,sortDirection:m?d.direction:"",onSort:function(t){let i;i=m?d.direction===e.SortByDirection.asc?e.SortByDirection.desc:e.SortByDirection.asc:d.defaultDirection?d.defaultDirection:e.SortByDirection.asc,p&&p(t,n,i,f)},"aria-label":a,tooltip:s,tooltipProps:l,tooltipHasDefaultBehavior:c,favoriteButtonProps:u,children:t})})},br=(e,t,n,i)=>"function"==typeof e?e(n,i):t,gr=(e,t,n)=>(i,{rowData:o,column:r,rowIndex:a,columnIndex:s,column:{extraParams:{actionsToggle:l,actionsPopperProps:c}},property:d})=>{const p={rowIndex:a,columnIndex:s,column:r,property:d},u=br(t,e,o,p),f=br(n,o&&o.disableActions,o,p),m=u&&u.length>0?{children:b.jsx(Mi,{items:u,isDisabled:f,rowData:o,extraData:p,actionsToggle:l,popperProps:c,children:i})}:{};return Object.assign({className:g(Bi.tableAction),style:{paddingRight:0},isVisible:!0},m)},xr=(e,t)=>t.filter((t=>t.name===e))[0].errorText,yr=e=>e.toUpperCase().replace("-","").replace("_",""),wr=e=>e.replace(/([-_][a-z])/gi,yr);function Or(e){return e[0].toUpperCase()+e.substring(1)}const jr=e=>()=>({className:g(Bi.modifiers["number"==typeof e?`width_${e}`:`width${Or(e)}`])}),Nr=H({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,svgClassName:void 0}),Cr=e=>{var{onClick:n=null,className:i="",editing:o,valid:a,saveAriaLabel:s,cancelAriaLabel:l,editAriaLabel:c}=e,d=r(e,["onClick","className","editing","valid","saveAriaLabel","cancelAriaLabel","editAriaLabel"]);return b.jsxs(t.Fragment,{children:[b.jsxs("div",{className:g(Gi,Yi.iconGroup,"pf-m-action-group"),children:[b.jsx("div",{className:g(qi),children:b.jsx(oi,Object.assign({"aria-label":s},d,{onClick:e=>n(e,"save"),variant:"plain",icon:b.jsx(Rn,{})}))}),b.jsx("div",{className:g(qi),children:b.jsx(oi,Object.assign({"aria-label":l},d,{onClick:e=>n(e,"cancel"),variant:"plain",icon:b.jsx(Eo,{})}))})]}),b.jsx("div",{className:g(qi,Yi.enableEditable),children:b.jsx(oi,Object.assign({"aria-label":c},d,{onClick:e=>n(e,"edit"),variant:"plain",icon:b.jsx(Nr,{})}))})]})};Cr.displayName="EditColumn";const Sr=(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:Bi.tableInlineEditAction,component:"td",isVisible:!0,children:b.jsx(Cr,{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 r={};"save"===i&&(r=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,r)}})}},_r=(e,{rowIndex:t,columnIndex:n,rowData:i,column:o,property:r})=>{const{extraParams:{onCollapse:a,rowLabeledBy:s="simple-node",expandId:l="expand-toggle",allRowsExpanded:c,collapseAllAriaLabel:d,variant:p}}=o,u={rowIndex:t,columnIndex:n,column:o,property:r},f=void 0!==t?t:-1,m=Object.assign({},-1!==f?{isOpen:null==i?void 0:i.isOpen,"aria-labelledby":`${s}${f} ${l}${f}`}:{isOpen:c,"aria-label":d||"Expand all rows"});return{className:(void 0!==(null==i?void 0:i.isOpen)||-1===f)&&g(Bi.tableToggle),isVisible:!(null==i?void 0:i.fullWidth),children:b.jsx(Hi,Object.assign({"aria-labelledby":`${s}${f} ${l}${f}`,onToggle:function(e){const n=i?!i.isOpen:!c;a&&a(e,t,n,i,u)},id:l+f,variant:p},m,{children:e}))}},Er=(e,t=0)=>(n,{columnIndex:i,rowIndex:o,rowData:r,column:{extraParams:{contentId:a="expanded-content"}}})=>n&&r.hasOwnProperty("parent")&&{colSpan:r.cells&&1!==r.cells.length?1:e+(r.fullWidth?t+1:0),id:a+o+(i?"-"+i:""),className:r.noPadding&&g(Bi.modifiers.noPadding)},Ir=(e,{rowIndex:t,columnIndex:n,rowData:i,column:o,property:r})=>{if(!e)return null;const{title:a,props:s}=e,{extraParams:{onExpand:l,expandId:c="expand-toggle"}}=o,d={rowIndex:t,columnIndex:n,column:o,property:r};return{className:g(Bi.tableCompoundExpansionToggle,s.isOpen&&Bi.modifiers.expanded),children:void 0!==s.isOpen&&b.jsx("button",{type:"button",className:g(Bi.tableButton),onClick:function(e){l&&l(e,t,n,s.isOpen,i,d)},"aria-expanded":s.isOpen,"aria-controls":s.ariaControls,id:`${c}-${t}-${n}`,children:b.jsx(Fo,{children:a})})}},Tr=["hidden","hiddenOnSm","hiddenOnMd","hiddenOnLg","hiddenOnXl","hiddenOn_2xl","visibleOnSm","visibleOnMd","visibleOnLg","visibleOnXl","visibleOn_2xl"].filter((e=>Bi.modifiers[e])).reduce(((e,t)=>(e[t.replace("_2xl","2Xl")]=Bi.modifiers[t],e)),{}),Rr=(...e)=>()=>({className:g(...e)}),kr=({tooltip:e,tooltipProps:t,popover:n,popoverProps:i,className:o,ariaLabel:r})=>a=>({className:Bi.modifiers.help,children:e?b.jsx(Bo,{variant:"tooltip",info:e,tooltipProps:t,ariaLabel:r,className:o,children:a}):b.jsx(Bo,{variant:"popover",info:n,popoverProps:i,ariaLabel:r,className:o,children:a})}),Pr=e=>{var{className:t="",onFavorite:n,isFavorited:i,rowIndex:o}=e,a=r(e,["className","onFavorite","isFavorited","rowIndex"]);const s=void 0===o?{}:{id:`favorites-button-${o}`,"aria-labelledby":`favorites-button-${o}`};return b.jsx(oi,Object.assign({variant:"plain",className:t,type:"button","aria-label":i?"Starred":"Not starred",onClick:n,isFavorite:!0,isFavorited:i},s,a))};Pr.displayName="FavoritesCell";const Lr=(e,{rowIndex:t,columnIndex:n,rowData:i,column:o,property:r})=>{const{extraParams:{onFavorite:a}}=o,s={rowIndex:t,columnIndex:n,column:o,property:r};if(i&&i.hasOwnProperty("parent")&&!i.fullWidth)return{component:"td",isVisible:!0};const l=i.favoritesProps||{};return{className:g(Bi.tableFavorite,i&&i.favorited&&Bi.modifiers.favorited),isVisible:!i||!i.fullWidth,children:b.jsx(Pr,Object.assign({rowIndex:t,onFavorite:function(e){a&&a(e,i&&!i.favorited,t,i,s)},isFavorited:i&&i.favorited},l))}},Dr=H({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,svgClassName:void 0}),Ar=(e,t,n)=>(i,{rowIndex:o,rowData:r})=>{const{isExpanded:a,isDetailsExpanded:s,"aria-level":l,"aria-setsize":c,toggleAriaLabel:d,checkAriaLabel:p,showDetailsAriaLabel:u,isChecked:f,checkboxId:m,icon:h}=r.props,v=i.title||i,x=b.jsxs("div",{className:g(Xo),children:[h&&b.jsx("span",{className:g(Go),children:h},"tree-view-text-icon"),b.jsx("span",{className:Bi.tableText,children:v},"table-text")]},"tree-view-text");return{component:"th",className:Yo,children:void 0!==l?b.jsxs("div",{className:g(Ko),children:[c>0&&b.jsx("span",{className:g(Wo),children:b.jsx(oi,{variant:"plain",onClick:t=>e&&e(t,o,v,r),className:g(a&&Bi.modifiers.expanded),"aria-expanded":a,"aria-label":d||`${a?"Collapse":"Expand"} row ${o}`,icon:b.jsx("div",{className:g(Uo),children:b.jsx(Fi,{})})})},"table-toggle"),!!t&&b.jsx("span",{className:g($o),children:b.jsx("label",{htmlFor:m||`checkbox_${o}`,children:b.jsx(Hn,{id:m||`checkbox_${o}`,"aria-label":p||`Row ${o} checkbox`,isChecked:f,onChange:(e,n)=>((e,n)=>{t(n,e,o,v,r)})(n,e)})})},"table-check"),x,!!n&&b.jsx("span",{className:g(qo),children:b.jsx(oi,{variant:"plain","aria-expanded":s,"aria-label":u||"Show row details",onClick:e=>n&&n(e,o,v,r),icon:b.jsx("span",{className:`${Bi.table}__details-toggle-icon`,children:b.jsx(Dr,{})})})},"view-details-toggle")]}):x}},Mr=()=>({component:"td"}),Fr=()=>({scope:"col"}),Br=e=>Object.assign({},e?{}:{scope:""}),Hr=(e,{rowData:t})=>({parentId:t.parent}),zr=(e,{property:t,rowData:n})=>Object.assign({},n[t]&&n[t].props),Vr=e=>e&&e.hasOwnProperty("title")?e.title:e,$r=({transforms:e,formatters:t,columnTransforms:n,header:i},o)=>Object.assign(Object.assign({},i),{label:o,transforms:[Fr,Br,...e||[],...n||[],...i&&i.hasOwnProperty("transforms")?i.transforms:[]],formatters:[...t||[],...i&&i.hasOwnProperty("formatters")?i.formatters:[]]}),Wr=({cellFormatters:e,cellTransforms:t,columnTransforms:n,cell:i},o)=>Object.assign(Object.assign({},i),{transforms:[...t||[],...n||[],...i&&i.hasOwnProperty("transforms")?i.transforms:[],zr],formatters:[Vr,...e||[],...i&&i.hasOwnProperty("formatters")?i.formatters:[]]}),Ur=({onSelect:e,canSelectAll:t})=>[...e?[{title:"",transforms:t&&[rr]||null,cellTransforms:[rr]}]:[]],qr=({onFavorite:e,onSort:t,sortBy:n,canSortFavorites:i,firstUserColumnIndex:o})=>[...e?[{title:"",transforms:t&&i?[Fr,hr({onSort:t,columnIndex:o-1,sortBy:n})]:[Mr],cellTransforms:[Lr]}]:[]],Gr=({actions:e,actionResolver:t,areActionsDisabled:n})=>[...t||e?[{title:"",transforms:[Mr],cellTransforms:[gr(e,t,n)]}]:[]],Kr=(e,{onCollapse:t,canCollapseAll:n,firstUserColumnIndex:i})=>[...t?[{title:"",transforms:n&&[_r]||null,cellTransforms:[_r,Er(e.length,i)]}]:[]],Xr=(e,t)=>Object.assign(Object.assign({},e.hasOwnProperty("title")?e:{title:e}),{cellTransforms:[...e.hasOwnProperty("cellTransforms")?e.cellTransforms:[],t]}),Yr=(e,t)=>t.onCollapse||t.onExpand?e.map((t=>{const n=Xr(t,Hr);return Xr(n,Er(e.length))})):e,Zr=({onRowEdit:e})=>[...e?[{title:"",cellTransforms:[Sr]}]:[]];var Jr;e.TableGridBreakpoint=void 0,(Jr=e.TableGridBreakpoint||(e.TableGridBreakpoint={})).none="",Jr.grid="grid",Jr.gridMd="grid-md",Jr.gridLg="grid-lg",Jr.gridXl="grid-xl",Jr.grid2xl="grid-2xl",e.TableVariant=void 0,(e.TableVariant||(e.TableVariant={})).compact="compact";const Qr=t.createContext({registerSelectableRow:()=>{},hasAnimations:!1,variant:void 0}),ea=n=>{var i,o,{children:a,className:s,variant:l,borders:c=!0,isStickyHeader:d=!1,isPlain:p=!1,gridBreakPoint:u=e.TableGridBreakpoint.gridMd,"aria-label":f,role:m="grid",innerRef:h,ouiaId:v,ouiaSafe:x=!0,isTreeTable:y=!1,isNested:w=!1,isStriped:O=!1,isExpandable:j=!1,hasAnimations:N,hasNoInset:C=!1,nestedHeaderColumnSpans:S,selectableRowCaptionText:_}=n,E=r(n,["children","className","variant","borders","isStickyHeader","isPlain","gridBreakPoint","aria-label","role","innerRef","ouiaId","ouiaSafe","isTreeTable","isNested","isStriped","isExpandable","hasAnimations","hasNoInset","nestedHeaderColumnSpans","selectableRowCaptionText"]);const I=F(N),T=t.useRef(null),R=h||T,[k,P]=t.useState(!1),[L,D]=t.useState();t.useEffect((()=>{if(document.addEventListener("keydown",z),R&&R.current&&R.current.classList.contains("pf-m-tree-view")){const t=R.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",z)}}),[R,R.current]),t.useEffect((()=>{D(_?b.jsxs("caption",{children:[_,b.jsx("div",{className:"pf-v6-screen-reader",children:"This table has selectable rows. It can be navigated by row using tab, and each row can be selected using space or enter."})]}):b.jsx("caption",{className:"pf-v6-screen-reader",children:"This table has selectable rows. It can be navigated by row using tab, and each row can be selected using space or enter."}))}),[_]);const A=Ge("Table",v,x),M=null===(i=zo)||void 0===i?void 0:i[wr(u||"").replace(/-?2xl/,"_2xl")],B=`treeView${u.charAt(0).toUpperCase()+u.slice(1)}`,H=null===(o=Vo)||void 0===o?void 0:o[wr(B||"").replace(/-?2xl/,"_2xl")],z=e=>{if(w||!(R&&R.current&&R.current.classList.contains(Vo.treeView))||R&&R.current!==e.target.closest(`.${Bi.table}:not(.pf-m-nested)`))return;const t=document.activeElement,n=e.key,i=Array.from(R.current.querySelectorAll("tbody tr")).filter((e=>!e.classList.contains("pf-m-disabled")&&!e.hidden));n!==U&&n!==G||(t.click(),e.preventDefault());hn(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 b.jsx(Qr.Provider,{value:{registerSelectableRow:()=>{!k&&P(!0)},hasAnimations:I,variant:l},children:b.jsxs("table",Object.assign({"aria-label":f,role:m,className:g(s,Bi.table,y?H:M,Bi.modifiers[l],!c&&Bi.modifiers.noBorderRows,d&&Bi.modifiers.stickyHeader,y&&Vo.treeView,O&&Bi.modifiers.striped,j&&Bi.modifiers.expandable,p&&Bi.modifiers.plain,C&&Vo.noInset,w&&"pf-m-nested",I&&Bi.modifiers.animateExpand),ref:R},y&&{role:"treegrid"},A,E,{children:[k&&L,a]}))})},ta=t.forwardRef(((e,t)=>b.jsx(ea,Object.assign({},e,{innerRef:t}))));ta.displayName="Table";const na=e=>{var{children:n,className:i,isExpanded:o,isContentExpanded:a,isEditable:s,isHidden:l=!1,isClickable:c=!1,isRowSelected:d=!1,isStriped:p=!1,isBorderRow:u=!1,isControlRow:f=!1,innerRef:m,ouiaId:h,ouiaSafe:v=!0,resetOffset:x=!1,onRowClick:y,isSelectable:w,"aria-label":O}=e,j=r(e,["children","className","isExpanded","isContentExpanded","isEditable","isHidden","isClickable","isRowSelected","isStriped","isBorderRow","isControlRow","innerRef","ouiaId","ouiaSafe","resetOffset","onRowClick","isSelectable","aria-label"]);const N=Ge("TableRow",h,v),[C,S]=t.useState("");let _=null;y&&(_=e=>{"Enter"!==e.key&&" "!==e.key||(y(e),e.preventDefault())});const E=l||void 0!==o&&!o,{registerSelectableRow:I,hasAnimations:T}=t.useContext(Qr);t.useEffect((()=>{w&&!E?(S(""+(d?"Row selected":"")),I()):S(void 0)}),[d,w,I,E]);const R=O||C;return b.jsx(b.Fragment,{children:b.jsx("tr",Object.assign({className:g(Bi.tableTr,i,void 0!==o&&Bi.tableExpandableRow,(o||a)&&Bi.modifiers.expanded,s&&Yi.inlineEditable,c&&Bi.modifiers.clickable,d&&Bi.modifiers.selected,p&&Bi.modifiers.striped,u&&Bi.modifiers.borderRow,f&&Bi.tableControlRow,x&&Bi.modifiers.firstCellOffsetReset),hidden:E},c&&{tabIndex:0},{"aria-label":R,ref:m},T&&E&&{inert:""},y&&{onClick:y,onKeyDown:_},N,j,{children:n}))})},ia=t.forwardRef(((e,t)=>b.jsx(na,Object.assign({},e,{innerRef:t}))));ia.displayName="Tr";class oa extends t.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=Pe(this.handleScroll,100)),e.onResize&&(this.handleResize=Pe(this.handleResize,100))}componentDidMount(){this._unmounted=!1,Me&&(this.props.onScroll&&window.addEventListener("scroll",this.handleScroll),this.props.onResize&&window.addEventListener("resize",this.handleResize))}componentWillUnmount(){this._unmounted=!0,Me&&(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:a,isRowSelected:s},rowProps:l,trRef:c,className:d,ouiaId:p}=e,u=r(e,["onScroll","onResize","row","rowProps","trRef","className","ouiaId"]);return b.jsx(ia,Object.assign({},u,{ref:c,isExpanded:i,isEditable:o,className:d,ouiaId:p,isClickable:a,isRowSelected:s}))}}oa.displayName="RowWrapper",oa.defaultProps={className:"",row:{isOpen:void 0,isExpanded:void 0,isHeightAuto:void 0,isEditable:void 0},rowProps:null};const ra=e=>{var{className:t,rowProps:n,row:i}=e,o=r(e,["className","rowProps","row"]);const{"aria-level":a,"aria-posinset":s,"aria-setsize":l,isExpanded:c,isDetailsExpanded:d,isHidden:p}=i.props;return b.jsx(ia,Object.assign({"aria-level":a,"aria-posinset":s,"aria-setsize":l,"aria-expanded":!!c,isHidden:p,className:g(t,c&&Bi.modifiers.expanded,d&&Vo.treeViewDetailsExpanded)},o))};ra.displayName="TreeRowWrapper";const aa=e=>{var{children:t,className:n,noWrap:i=!1,innerRef:o,hasNestedHeader:a}=e,s=r(e,["children","className","noWrap","innerRef","hasNestedHeader"]);return b.jsx("thead",Object.assign({className:g(Bi.tableThead,n,i&&Bi.modifiers.nowrap,a&&Bi.modifiers.nestedColumnHeader),ref:o},s,{children:t}))},sa=t.forwardRef(((e,t)=>b.jsx(aa,Object.assign({},e,{innerRef:t}))));sa.displayName="Thead";const la=e=>{var{children:t,className:n,isExpanded:i,innerRef:o,isEvenStriped:a=!1,isOddStriped:s=!1}=e,l=r(e,["children","className","isExpanded","innerRef","isEvenStriped","isOddStriped"]);return b.jsx("tbody",Object.assign({role:"rowgroup",className:g(Bi.tableTbody,n,i&&Bi.modifiers.expanded,s&&Bi.modifiers.striped,a&&Bi.modifiers.stripedEven),ref:o},l,{children:t}))},ca=t.forwardRef(((e,t)=>b.jsx(la,Object.assign({},e,{innerRef:t}))));ca.displayName="Tbody";var da={borderRight:"pf-m-border-right",borderLeft:"pf-m-border-left"},pa="pf-v6-c-scroll-inner-wrapper",ua="pf-v6-c-scroll-outer-wrapper",fa="pf-v6-c-table__sticky-cell",ma="pf-v6-u-screen-reader";var ha=function(){this.__data__=[],this.size=0};var va=function(e,t){return e===t||e!=e&&t!=t},ba=va;var ga=function(e,t){for(var n=e.length;n--;)if(ba(e[n][0],t))return n;return-1},xa=ga,ya=Array.prototype.splice;var wa=ga;var Oa=ga;var ja=ga;var Na=ha,Ca=function(e){var t=this.__data__,n=xa(t,e);return!(n<0)&&(n==t.length-1?t.pop():ya.call(t,n,1),--this.size,!0)},Sa=function(e){var t=this.__data__,n=wa(t,e);return n<0?void 0:t[n][1]},_a=function(e){return Oa(this.__data__,e)>-1},Ea=function(e,t){var n=this.__data__,i=ja(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this};function Ia(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])}}Ia.prototype.clear=Na,Ia.prototype.delete=Ca,Ia.prototype.get=Sa,Ia.prototype.has=_a,Ia.prototype.set=Ea;var Ta=Ia,Ra=Ta;var ka=function(){this.__data__=new Ra,this.size=0};var Pa=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var La=function(e){return this.__data__.get(e)};var Da=function(e){return this.__data__.has(e)},Aa="object"==typeof a&&a&&a.Object===Object&&a,Ma=Aa,Fa="object"==typeof self&&self&&self.Object===Object&&self,Ba=Ma||Fa||Function("return this")(),Ha=Ba.Symbol,za=Ha,Va=Object.prototype,$a=Va.hasOwnProperty,Wa=Va.toString,Ua=za?za.toStringTag:void 0;var qa=function(e){var t=$a.call(e,Ua),n=e[Ua];try{e[Ua]=void 0;var i=!0}catch(e){}var o=Wa.call(e);return i&&(t?e[Ua]=n:delete e[Ua]),o},Ga=Object.prototype.toString;var Ka=qa,Xa=function(e){return Ga.call(e)},Ya=Ha?Ha.toStringTag:void 0;var Za=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Ya&&Ya in Object(e)?Ka(e):Xa(e)};var Ja=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},Qa=Za,es=Ja;var ts=function(e){if(!es(e))return!1;var t=Qa(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},ns=Ba["__core-js_shared__"],is=function(){var e=/[^.]+$/.exec(ns&&ns.keys&&ns.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var os=function(e){return!!is&&is in e},rs=Function.prototype.toString;var as=ts,ss=os,ls=Ja,cs=function(e){if(null!=e){try{return rs.call(e)}catch(e){}try{return e+""}catch(e){}}return""},ds=/^\[object .+?Constructor\]$/,ps=Function.prototype,us=Object.prototype,fs=ps.toString,ms=us.hasOwnProperty,hs=RegExp("^"+fs.call(ms).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var vs=function(e){return!(!ls(e)||ss(e))&&(as(e)?hs:ds).test(cs(e))},bs=function(e,t){return null==e?void 0:e[t]};var gs=function(e,t){var n=bs(e,t);return vs(n)?n:void 0},xs=gs(Ba,"Map"),ys=gs(Object,"create"),ws=ys;var Os=function(){this.__data__=ws?ws(null):{},this.size=0};var js=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Ns=ys,Cs=Object.prototype.hasOwnProperty;var Ss=function(e){var t=this.__data__;if(Ns){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Cs.call(t,e)?t[e]:void 0},_s=ys,Es=Object.prototype.hasOwnProperty;var Is=ys;var Ts=Os,Rs=js,ks=Ss,Ps=function(e){var t=this.__data__;return _s?void 0!==t[e]:Es.call(t,e)},Ls=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Is&&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=Ts,Ds.prototype.delete=Rs,Ds.prototype.get=ks,Ds.prototype.has=Ps,Ds.prototype.set=Ls;var As=Ds,Ms=Ta,Fs=xs;var Bs=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var Hs=function(e,t){var n=e.__data__;return Bs(t)?n["string"==typeof t?"string":"hash"]:n.map},zs=Hs;var Vs=Hs;var $s=Hs;var Ws=Hs;var Us=function(){this.size=0,this.__data__={hash:new As,map:new(Fs||Ms),string:new As}},qs=function(e){var t=zs(this,e).delete(e);return this.size-=t?1:0,t},Gs=function(e){return Vs(this,e).get(e)},Ks=function(e){return $s(this,e).has(e)},Xs=function(e,t){var n=Ws(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this};function Ys(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])}}Ys.prototype.clear=Us,Ys.prototype.delete=qs,Ys.prototype.get=Gs,Ys.prototype.has=Ks,Ys.prototype.set=Xs;var Zs=Ta,Js=xs,Qs=Ys;var el=Ta,tl=ka,nl=Pa,il=La,ol=Da,rl=function(e,t){var n=this.__data__;if(n instanceof Zs){var i=n.__data__;if(!Js||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new Qs(i)}return n.set(e,t),this.size=n.size,this};function al(e){var t=this.__data__=new el(e);this.size=t.size}al.prototype.clear=tl,al.prototype.delete=nl,al.prototype.get=il,al.prototype.has=ol,al.prototype.set=rl;var sl=al,ll=gs,cl=function(){try{var e=ll(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),dl=cl;var pl=function(e,t,n){"__proto__"==t&&dl?dl(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},ul=pl,fl=va;var ml=function(e,t,n){(void 0!==n&&!fl(e[t],n)||void 0===n&&!(t in e))&&ul(e,t,n)};var hl=function(e){return function(t,n,i){for(var o=-1,r=Object(t),a=i(t),s=a.length;s--;){var l=a[e?s:++o];if(!1===n(r[l],l,r))break}return t}}(),vl={exports:{}};!function(e,t){var n=Ba,i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,r=o&&o.exports===i?n.Buffer:void 0,a=r?r.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,i=a?a(n):new e.constructor(n);return e.copy(i),i}}(vl,vl.exports);var bl=vl.exports,gl=Ba.Uint8Array;var xl=function(e){var t=new e.constructor(e.byteLength);return new gl(t).set(new gl(e)),t};var yl=function(e,t){var n=t?xl(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};var wl=function(e,t){var n=-1,i=e.length;for(t||(t=Array(i));++n<i;)t[n]=e[n];return t},Ol=Ja,jl=Object.create,Nl=function(){function e(){}return function(t){if(!Ol(t))return{};if(jl)return jl(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();var Cl=function(e,t){return function(n){return e(t(n))}}(Object.getPrototypeOf,Object),Sl=Object.prototype;var _l=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Sl)},El=Nl,Il=Cl,Tl=_l;var Rl=function(e){return"function"!=typeof e.constructor||Tl(e)?{}:El(Il(e))};var kl=function(e){return null!=e&&"object"==typeof e},Pl=Za,Ll=kl;var Dl=function(e){return Ll(e)&&"[object Arguments]"==Pl(e)},Al=kl,Ml=Object.prototype,Fl=Ml.hasOwnProperty,Bl=Ml.propertyIsEnumerable,Hl=Dl(function(){return arguments}())?Dl:function(e){return Al(e)&&Fl.call(e,"callee")&&!Bl.call(e,"callee")},zl=Hl,Vl=Array.isArray;var $l=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},Wl=ts,Ul=$l;var ql=function(e){return null!=e&&Ul(e.length)&&!Wl(e)},Gl=ql,Kl=kl;var Xl=function(e){return Kl(e)&&Gl(e)},Yl={exports:{}};var Zl=function(){return!1};!function(e,t){var n=Ba,i=Zl,o=t&&!t.nodeType&&t,r=o&&e&&!e.nodeType&&e,a=r&&r.exports===o?n.Buffer:void 0,s=(a?a.isBuffer:void 0)||i;e.exports=s}(Yl,Yl.exports);var Jl=Yl.exports,Ql=Za,ec=Cl,tc=kl,nc=Function.prototype,ic=Object.prototype,oc=nc.toString,rc=ic.hasOwnProperty,ac=oc.call(Object);var sc=function(e){if(!tc(e)||"[object Object]"!=Ql(e))return!1;var t=ec(e);if(null===t)return!0;var n=rc.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&oc.call(n)==ac},lc=Za,cc=$l,dc=kl,pc={};pc["[object Float32Array]"]=pc["[object Float64Array]"]=pc["[object Int8Array]"]=pc["[object Int16Array]"]=pc["[object Int32Array]"]=pc["[object Uint8Array]"]=pc["[object Uint8ClampedArray]"]=pc["[object Uint16Array]"]=pc["[object Uint32Array]"]=!0,pc["[object Arguments]"]=pc["[object Array]"]=pc["[object ArrayBuffer]"]=pc["[object Boolean]"]=pc["[object DataView]"]=pc["[object Date]"]=pc["[object Error]"]=pc["[object Function]"]=pc["[object Map]"]=pc["[object Number]"]=pc["[object Object]"]=pc["[object RegExp]"]=pc["[object Set]"]=pc["[object String]"]=pc["[object WeakMap]"]=!1;var uc=function(e){return dc(e)&&cc(e.length)&&!!pc[lc(e)]};var fc=function(e){return function(t){return e(t)}},mc={exports:{}};!function(e,t){var n=Aa,i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,r=o&&o.exports===i&&n.process,a=function(){try{var e=o&&o.require&&o.require("util").types;return e||r&&r.binding&&r.binding("util")}catch(e){}}();e.exports=a}(mc,mc.exports);var hc=mc.exports,vc=uc,bc=fc,gc=hc&&hc.isTypedArray,xc=gc?bc(gc):vc;var yc=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},wc=pl,Oc=va,jc=Object.prototype.hasOwnProperty;var Nc=function(e,t,n){var i=e[t];jc.call(e,t)&&Oc(i,n)&&(void 0!==n||t in e)||wc(e,t,n)},Cc=pl;var Sc=function(e,t,n,i){var o=!n;n||(n={});for(var r=-1,a=t.length;++r<a;){var s=t[r],l=i?i(n[s],e[s],s,n,e):void 0;void 0===l&&(l=e[s]),o?Cc(n,s,l):Nc(n,s,l)}return n};var _c=function(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i},Ec=/^(?:0|[1-9]\d*)$/;var Ic=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&Ec.test(e))&&e>-1&&e%1==0&&e<t},Tc=_c,Rc=zl,kc=Vl,Pc=Jl,Lc=Ic,Dc=xc,Ac=Object.prototype.hasOwnProperty;var Mc=function(e,t){var n=kc(e),i=!n&&Rc(e),o=!n&&!i&&Pc(e),r=!n&&!i&&!o&&Dc(e),a=n||i||o||r,s=a?Tc(e.length,String):[],l=s.length;for(var c in e)!t&&!Ac.call(e,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||r&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Lc(c,l))||s.push(c);return s};var Fc=Ja,Bc=_l,Hc=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},zc=Object.prototype.hasOwnProperty;var Vc=Mc,$c=function(e){if(!Fc(e))return Hc(e);var t=Bc(e),n=[];for(var i in e)("constructor"!=i||!t&&zc.call(e,i))&&n.push(i);return n},Wc=ql;var Uc=function(e){return Wc(e)?Vc(e,!0):$c(e)},qc=Sc,Gc=Uc;var Kc=ml,Xc=bl,Yc=yl,Zc=wl,Jc=Rl,Qc=zl,ed=Vl,td=Xl,nd=Jl,id=ts,od=Ja,rd=sc,ad=xc,sd=yc,ld=function(e){return qc(e,Gc(e))};var cd=sl,dd=ml,pd=hl,ud=function(e,t,n,i,o,r,a){var s=sd(e,n),l=sd(t,n),c=a.get(l);if(c)Kc(e,n,c);else{var d=r?r(s,l,n+"",e,t,a):void 0,p=void 0===d;if(p){var u=ed(l),f=!u&&nd(l),m=!u&&!f&&ad(l);d=l,u||f||m?ed(s)?d=s:td(s)?d=Zc(s):f?(p=!1,d=Xc(l,!0)):m?(p=!1,d=Yc(l,!0)):d=[]:rd(l)||Qc(l)?(d=s,Qc(s)?d=ld(s):od(s)&&!id(s)||(d=Jc(l))):p=!1}p&&(a.set(l,d),o(d,l,i,r,a),a.delete(l)),Kc(e,n,d)}},fd=Ja,md=Uc,hd=yc;var vd=function e(t,n,i,o,r){t!==n&&pd(n,(function(a,s){if(r||(r=new cd),fd(a))ud(t,n,s,i,e,o,r);else{var l=o?o(hd(t,s),a,s+"",t,n,r):void 0;void 0===l&&(l=a),dd(t,s,l)}}),md)};var bd=function(e){return e};var gd=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)},xd=Math.max;var yd=function(e,t,n){return t=xd(void 0===t?e.length-1:t,0),function(){for(var i=arguments,o=-1,r=xd(i.length-t,0),a=Array(r);++o<r;)a[o]=i[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=i[o];return s[t]=n(a),gd(e,this,s)}};var wd=function(e){return function(){return e}},Od=cl,jd=Od?function(e,t){return Od(e,"toString",{configurable:!0,enumerable:!1,value:wd(t),writable:!0})}:bd,Nd=Date.now;var Cd=function(e){var t=0,n=0;return function(){var i=Nd(),o=16-(i-n);if(n=i,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}},Sd=Cd(jd),_d=bd,Ed=yd,Id=Sd;var Td=function(e,t){return Id(Ed(e,t,_d),e+"")},Rd=va,kd=ql,Pd=Ic,Ld=Ja;var Dd=Td,Ad=function(e,t,n){if(!Ld(n))return!1;var i=typeof t;return!!("number"==i?kd(n)&&Pd(t,n.length):"string"==i&&t in n)&&Rd(n[t],e)};var Md=vd,Fd=s(function(e){return Dd((function(t,n){var i=-1,o=n.length,r=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(r=e.length>3&&"function"==typeof r?(o--,r):void 0,a&&Ad(n[0],n[1],a)&&(r=o<3?void 0:r,o=1),t=Object(t);++i<o;){var s=n[i];s&&e(t,s,i,r)}return t}))}((function(e,t,n,i){Md(e,t,n,i)})));function Bd(...e){const n=e[0],i=e.slice(1);return i.length?Fd(Fd({},n),...i,((e,n,i)=>"children"===i?e&&n?t.cloneElement(e,{children:n}):Object.assign(Object.assign({},n),e):"className"===i?g(e,n):void 0)):Fd({},n)}const Hd="--pf-v6-c-table__sticky-cell--MinWidth",zd="--pf-v6-c-table__sticky-cell--InsetInlineStart",Vd="--pf-v6-c-table__sticky-cell--InsetInlineEnd",$d=e=>{var n,{children:i,className:o,component:a="th",dataLabel:s,scope:l="col",textCenter:c=!1,sort:d=null,modifier:p,select:u=null,expand:f=null,tooltip:m="",tooltipProps:h,onMouseEnter:v=(()=>{}),width:x,visibility:y,innerRef:w,info:O,isStickyColumn:j=!1,hasRightBorder:N=!1,hasLeftBorder:C=!1,stickyMinWidth:S="120px",stickyLeftOffset:_,stickyRightOffset:E,isSubheader:I=!1,screenReaderText:T,"aria-label":R,additionalContent:k}=e,P=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","additionalContent"]);const{variant:L}=t.useContext(Qr);i||T||R||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]=t.useState(!1),[M,F]=t.useState(!1),B=w||t.createRef(),H=e=>{e.target.offsetWidth<e.target.scrollWidth?!D&&A(!0):D&&A(!1),v(e)};let z=null;d&&(z=d.isFavorites?hr({onSort:d.onSort,columnIndex:d.columnIndex,sortBy:d.sortBy,tooltip:m,tooltipProps:h,ariaLabel:d["aria-label"],favoriteButtonProps:d.favoriteButtonProps})():vr(i,{columnIndex:d.columnIndex,column:{extraParams:{sortBy:d.sortBy,onSort:null==d?void 0:d.onSort}},tooltip:m,tooltipProps:h}));const V=u?rr(i,{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}):null,$=f?_r(i,{column:{extraParams:{onCollapse:null==f?void 0:f.onToggle,allRowsExpanded:!f.areAllExpanded,collapseAllAriaLabel:"",variant:L}}}):null,W=x?jr(x)():null,U=y?Rr(...y.map((e=>Tr[e])))():null;let q=(null==z?void 0:z.children)||(null==V?void 0:V.children)||(null==$?void 0:$.children)||i,G=null;O&&(G=kr(O)(q),q=G.children);const K=Bd(z,V,$,W,U,G),{children:X=null,isVisible:Y=null,className:Z="",component:J=a}=K,Q=r(K,["children","isVisible","className","component"]);t.useEffect((()=>{F(B.current.offsetWidth<B.current.scrollWidth)}),[B]);const ee=b.jsxs(J,Object.assign({tabIndex:d||u||!M?-1:0,onFocus:null!==m?H:v,onBlur:()=>A(!1),"data-label":s,onMouseEnter:null!==m?H:v,scope:"th"===a?l:null,ref:B,"aria-label":R,className:g(Bi.tableTh,o,c&&Bi.modifiers.center,I&&Bi.tableSubhead,j&&fa,N&&da.borderRight,C&&da.borderLeft,p&&Bi.modifiers[p],(null===(n=null==d?void 0:d.favoriteButtonProps)||void 0===n?void 0:n.favorited)&&Bi.modifiers.favorited,Z)},Q,P,j&&{style:Object.assign({[Hd]:S||void 0,[zd]:_||0,[Vd]:E||0},P.style)},{children:[q||T&&b.jsx("span",{className:ma,children:T}),k&&k]}));return null!==m&&(""!==m||"string"==typeof q)&&!(z||V)&&D?b.jsxs(b.Fragment,{children:[ee,b.jsx(vi,Object.assign({triggerRef:B,content:m||""===m&&i,isVisible:!0},h))]}):ee},Wd=t.forwardRef(((e,t)=>b.jsx($d,Object.assign({},e,{innerRef:t}))));Wd.displayName="Th";const Ud=e=>{var{children:n,className:i,isActionCell:o=!1,hasAction:a=!1,component:s="td",dataLabel:l,textCenter:c=!1,modifier:d,select:p=null,actions:u=null,expand:f=null,treeRow:m=null,compoundExpand:h=null,noPadding:v,width:x,visibility:y,innerRef:w,favorites:O=null,draggableRow:j=null,tooltip:N="",onMouseEnter:C=(()=>{}),isStickyColumn:S=!1,hasRightBorder:_=!1,hasLeftBorder:E=!1,stickyMinWidth:I="120px",stickyLeftOffset:T,stickyRightOffset:R}=e,k=r(e,["children","className","isActionCell","hasAction","component","dataLabel","textCenter","modifier","select","actions","expand","treeRow","compoundExpand","noPadding","width","visibility","innerRef","favorites","draggableRow","tooltip","onMouseEnter","isStickyColumn","hasRightBorder","hasLeftBorder","stickyMinWidth","stickyLeftOffset","stickyRightOffset"]);const[P,L]=t.useState(!1),[D,A]=t.useState(!1),M=w||t.createRef(),F=e=>{e.target.offsetWidth<e.target.scrollWidth?!P&&L(!0):P&&L(!1),C(e)},B=p?rr(n,{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,H=O?Lr(0,{rowIndex:null==O?void 0:O.rowIndex,rowData:{favorited:O.isFavorited,favoritesProps:null==O?void 0:O.props},column:{extraParams:{onFavorite:null==O?void 0:O.onFavorite}}}):null,z=null!==j?((e,{rowData:t})=>{const{id:n}=t;return{className:"",children:b.jsx(Vi,{id:n})}})(0,{rowData:{id:j.id}}):null,V=u?gr(u.items,null,null):null,$=V?V(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,{hasAnimations:W,variant:U}=t.useContext(Qr),q=null!==f?_r(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,variant:U}}}):null,G=null!==h?Ir({title:n,props:{isOpen:h.isExpanded}},{rowIndex:null==h?void 0:h.rowIndex,columnIndex:null==h?void 0:h.columnIndex,column:{extraParams:{onExpand:(e,t,n,i,o,r)=>{W&&(()=>{var e,t;const n=null===(e=null==M?void 0:M.current)||void 0===e?void 0:e.closest(`.${Bi.tableTr}.${Bi.tableControlRow}`);if(!n.classList.contains(Bi.modifiers.expanded))return;(null===(t=null==M?void 0:M.current)||void 0===t?void 0:t.classList.contains(Bi.modifiers.expanded))?n.classList.remove(Bi.modifiers.noAnimateExpand):n.classList.add(Bi.modifiers.noAnimateExpand)})(),null==h||h.onToggle(e,t,n,i,o,r)},expandId:null==h?void 0:h.expandId}}}):null,K=Bd(B,$,q,G,x?jr(x)():null,y?Rr(...y.map((e=>Tr[e])))():null,H,null!==m?Ar(m.onCollapse,m.onCheckChange,m.onToggleRowDetails)({title:n},{rowIndex:m.rowIndex,rowData:{props:m.props}}):null,z),{isVisible:X=null,children:Y=null,className:Z="",component:J=s}=K,Q=r(K,["isVisible","children","className","component"]),ee=i&&i.includes(Yo)||Z&&Z.includes(Yo);t.useEffect((()=>{A(M.current.offsetWidth<M.current.scrollWidth)}),[M]);const te=b.jsx(J,Object.assign({tabIndex:!p&&D||"truncate"===d?0:-1},!ee&&{"data-label":l},{onFocus:null!==N?F:C,onBlur:()=>L(!1),onMouseEnter:null!==N?F:C,className:g(Bi.tableTd,i,o&&Bi.tableAction,a&&Bi.modifiers.action,c&&Bi.modifiers.center,v&&Bi.modifiers.noPadding,S&&fa,_&&da.borderRight,E&&da.borderLeft,Bi.modifiers[d],z&&Bi.tableDraggable,Z),ref:M},Q,k,S&&{style:Object.assign({[Hd]:I||void 0,[zd]:T||0,[Vd]:R||0},k.style)},{children:Y||n}));return null!==N&&(""!==N||"string"==typeof n)&&P?b.jsxs(b.Fragment,{children:[te,b.jsx(vi,{triggerRef:M,content:N||""===N&&n,isVisible:!0})]}):te},qd=t.forwardRef(((e,t)=>b.jsx(Ud,Object.assign({},e,{innerRef:t}))));qd.displayName="Td";const Gd=e=>{var{children:t,className:n}=e,i=r(e,["children","className"]);return b.jsx("caption",Object.assign({className:g(Bi.tableCaption,n)},i,{children:t}))};Gd.displayName="Caption";const Kd=e=>{var{children:t,className:n}=e,i=r(e,["children","className"]);return b.jsx("div",Object.assign({className:g(n,ua)},i,{children:t}))};Kd.displayName="OuterScrollContainer";const Xd=e=>{var{children:t,className:n}=e,i=r(e,["children","className"]);return b.jsx("div",Object.assign({className:g(n,pa)},i,{children:t}))};Xd.displayName="InnerScrollContainer",e.ActionsColumn=Mi,e.Caption=Gd,e.CollapseColumn=Hi,e.DraggableCell=Vi,e.EditableSelectInputCell=Ji,e.EditableTextCell=ao,e.ExpandableRowContent=so,e.FavoritesCell=Pr,e.HeaderCellInfoWrapper=Bo,e.InnerScrollContainer=Xd,e.OuterScrollContainer=Kd,e.RowWrapper=oa,e.SelectColumn=or,e.SortColumn=mr,e.Table=ta,e.TableContext=Qr,e.TableText=Fo,e.Tbody=ca,e.Td=qd,e.Th=Wd,e.Thead=sa,e.Tr=ia,e.TreeRowWrapper=ra,e.Visibility=Tr,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:Bi.modifiers.breakWord}),e.calculateColumns=(e,t)=>e&&[...Kr(e,t),...Ur(t),...qr(t),...Yr(e,t),...Zr(t),...Gr(t)].map(((e,n)=>Object.assign({},((e,t,n,...i)=>{const o=e.hasOwnProperty("title")?e.title:e;let r=`column-${n}`;return e.hasOwnProperty("dataLabel")?r=e.dataLabel:"string"==typeof o&&(r=o),{property:"string"==typeof o&&o.toLowerCase().trim().replace(/\s/g,"-")||`column-${n}`,extraParams:t,data:e.data,header:$r(e,o),cell:Wr(e),props:Object.assign(Object.assign({"data-label":r,"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=Or,e.cellActions=gr,e.cellWidth=jr,e.classNames=Rr,e.collapsible=_r,e.compoundExpand=Ir,e.defaultTitle=Vr,e.editable=Sr,e.emptyCol=Br,e.emptyTD=Mr,e.expandable=(e,{rowData:t})=>t&&t.hasOwnProperty("parent")?b.jsx(so,{children:e}):e,e.expandedRow=Er,e.favoritable=Lr,e.fitContent=()=>({className:Bi.modifiers.fitContent}),e.getErrorTextByValidator=xr,e.headerCol=(e="simple-node")=>(t,{rowIndex:n}={})=>{const i="object"==typeof t?t.title:t;return{component:"th",children:b.jsx("div",{id:`${e}${n}`,children:i})}},e.info=kr,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=zr,e.nowrap=()=>({className:Bi.modifiers.nowrap}),e.parentId=Hr,e.scopeColTransformer=Fr,e.selectable=rr,e.sortable=vr,e.sortableFavorites=hr,e.textCenter=()=>({textCenter:!0}),e.toCamel=wr,e.treeRow=Ar,e.truncate=()=>({className:Bi.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((o=>{delete o.props.errorText;const r=void 0!==o.props.value&&null!==o.props.value,a=void 0!==o.props.editableValue&&null!==o.props.editableValue;if(o.props&&r&&a&&"save"===t){const t=Object.keys(n).filter((e=>n[e].includes(o.props.name))).map((t=>xr(t,e.rowEditValidationRules)));t.length?(o.props.errorText=o.props.name?t.join(", "):i,void 0===o.props.name&&console.warn("Row edit validation reporting requires cell definitions to have a unique name property.")):(delete o.props.errorText,o.props.isValid=!0)}})),e),e.wrappable=()=>({className:Bi.modifiers.wrap})}));
|